@apolitical/component-library 3.5.8 → 3.5.10-ac.13

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
@@ -130,15 +130,15 @@ var ot = {};
130
130
  var wr;
131
131
  function Is() {
132
132
  return wr || (wr = 1, process.env.NODE_ENV !== "production" && function() {
133
- var t = Y, e = Symbol.for("react.element"), n = Symbol.for("react.portal"), r = Symbol.for("react.fragment"), s = Symbol.for("react.strict_mode"), i = Symbol.for("react.profiler"), o = Symbol.for("react.provider"), c = Symbol.for("react.context"), d = Symbol.for("react.forward_ref"), l = Symbol.for("react.suspense"), u = Symbol.for("react.suspense_list"), f = Symbol.for("react.memo"), m = Symbol.for("react.lazy"), p = Symbol.for("react.offscreen"), g = Symbol.iterator, y = "@@iterator";
133
+ var t = Y, e = Symbol.for("react.element"), n = Symbol.for("react.portal"), r = Symbol.for("react.fragment"), s = Symbol.for("react.strict_mode"), i = Symbol.for("react.profiler"), o = Symbol.for("react.provider"), c = Symbol.for("react.context"), d = Symbol.for("react.forward_ref"), l = Symbol.for("react.suspense"), u = Symbol.for("react.suspense_list"), f = Symbol.for("react.memo"), m = Symbol.for("react.lazy"), p = Symbol.for("react.offscreen"), g = Symbol.iterator, v = "@@iterator";
134
134
  function _(h) {
135
135
  if (h === null || typeof h != "object")
136
136
  return null;
137
- var M = g && h[g] || h[y];
137
+ var M = g && h[g] || h[v];
138
138
  return typeof M == "function" ? M : null;
139
139
  }
140
- var v = t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
141
- function b(h) {
140
+ var y = t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
141
+ function x(h) {
142
142
  {
143
143
  for (var M = arguments.length, I = new Array(M > 1 ? M - 1 : 0), ne = 1; ne < M; ne++)
144
144
  I[ne - 1] = arguments[ne];
@@ -147,7 +147,7 @@ function Is() {
147
147
  }
148
148
  function E(h, M, I) {
149
149
  {
150
- var ne = v.ReactDebugCurrentFrame, le = ne.getStackAddendum();
150
+ var ne = y.ReactDebugCurrentFrame, le = ne.getStackAddendum();
151
151
  le !== "" && (M += "%s", I = I.concat([le]));
152
152
  var me = I.map(function(ce) {
153
153
  return String(ce);
@@ -155,10 +155,10 @@ function Is() {
155
155
  me.unshift("Warning: " + M), Function.prototype.apply.call(console[h], console, me);
156
156
  }
157
157
  }
158
- var k = !1, w = !1, D = !1, R = !1, Q = !1, B;
158
+ var w = !1, b = !1, F = !1, R = !1, Q = !1, B;
159
159
  B = Symbol.for("react.module.reference");
160
160
  function $(h) {
161
- return !!(typeof h == "string" || typeof h == "function" || h === r || h === i || Q || h === s || h === l || h === u || R || h === p || k || w || D || typeof h == "object" && h !== null && (h.$$typeof === m || h.$$typeof === f || h.$$typeof === o || h.$$typeof === c || h.$$typeof === d || // This needs to include all possible module reference object
161
+ return !!(typeof h == "string" || typeof h == "function" || h === r || h === i || Q || h === s || h === l || h === u || R || h === p || w || b || F || typeof h == "object" && h !== null && (h.$$typeof === m || h.$$typeof === f || h.$$typeof === o || h.$$typeof === c || h.$$typeof === d || // This needs to include all possible module reference object
162
162
  // types supported by any Flight configuration anywhere since
163
163
  // we don't know which Flight build this will end up being used
164
164
  // with.
@@ -171,13 +171,13 @@ function Is() {
171
171
  var le = M.displayName || M.name || "";
172
172
  return le !== "" ? I + "(" + le + ")" : I;
173
173
  }
174
- function j(h) {
174
+ function k(h) {
175
175
  return h.displayName || "Context";
176
176
  }
177
- function x(h) {
177
+ function j(h) {
178
178
  if (h == null)
179
179
  return null;
180
- if (typeof h.tag == "number" && b("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof h == "function")
180
+ if (typeof h.tag == "number" && x("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof h == "function")
181
181
  return h.displayName || h.name || null;
182
182
  if (typeof h == "string")
183
183
  return h;
@@ -199,19 +199,19 @@ function Is() {
199
199
  switch (h.$$typeof) {
200
200
  case c:
201
201
  var M = h;
202
- return j(M) + ".Consumer";
202
+ return k(M) + ".Consumer";
203
203
  case o:
204
204
  var I = h;
205
- return j(I._context) + ".Provider";
205
+ return k(I._context) + ".Provider";
206
206
  case d:
207
207
  return C(h, h.render, "ForwardRef");
208
208
  case f:
209
209
  var ne = h.displayName || null;
210
- return ne !== null ? ne : x(h.type) || "Memo";
210
+ return ne !== null ? ne : j(h.type) || "Memo";
211
211
  case m: {
212
212
  var le = h, me = le._payload, ce = le._init;
213
213
  try {
214
- return x(ce(me));
214
+ return j(ce(me));
215
215
  } catch {
216
216
  return null;
217
217
  }
@@ -219,13 +219,13 @@ function Is() {
219
219
  }
220
220
  return null;
221
221
  }
222
- var N = Object.assign, O = 0, W, Z, z, K, T, P, q;
222
+ var N = Object.assign, A = 0, W, Z, z, K, T, P, q;
223
223
  function L() {
224
224
  }
225
225
  L.__reactDisabledLog = !0;
226
226
  function U() {
227
227
  {
228
- if (O === 0) {
228
+ if (A === 0) {
229
229
  W = console.log, Z = console.info, z = console.warn, K = console.error, T = console.group, P = console.groupCollapsed, q = console.groupEnd;
230
230
  var h = {
231
231
  configurable: !0,
@@ -243,12 +243,12 @@ function Is() {
243
243
  groupEnd: h
244
244
  });
245
245
  }
246
- O++;
246
+ A++;
247
247
  }
248
248
  }
249
249
  function te() {
250
250
  {
251
- if (O--, O === 0) {
251
+ if (A--, A === 0) {
252
252
  var h = {
253
253
  configurable: !0,
254
254
  enumerable: !0,
@@ -278,10 +278,10 @@ function Is() {
278
278
  })
279
279
  });
280
280
  }
281
- O < 0 && b("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
281
+ A < 0 && x("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
282
282
  }
283
283
  }
284
- var G = v.ReactCurrentDispatcher, V;
284
+ var G = y.ReactCurrentDispatcher, V;
285
285
  function ee(h, M, I) {
286
286
  {
287
287
  if (V === void 0)
@@ -295,16 +295,16 @@ function Is() {
295
295
  ` + V + h;
296
296
  }
297
297
  }
298
- var re = !1, F;
298
+ var re = !1, O;
299
299
  {
300
300
  var oe = typeof WeakMap == "function" ? WeakMap : Map;
301
- F = new oe();
301
+ O = new oe();
302
302
  }
303
- function A(h, M) {
303
+ function D(h, M) {
304
304
  if (!h || re)
305
305
  return "";
306
306
  {
307
- var I = F.get(h);
307
+ var I = O.get(h);
308
308
  if (I !== void 0)
309
309
  return I;
310
310
  }
@@ -359,7 +359,7 @@ function Is() {
359
359
  if (he--, ge--, ge < 0 || ie[he] !== xe[ge]) {
360
360
  var ke = `
361
361
  ` + ie[he].replace(" at new ", " at ");
362
- return h.displayName && ke.includes("<anonymous>") && (ke = ke.replace("<anonymous>", h.displayName)), typeof h == "function" && F.set(h, ke), ke;
362
+ return h.displayName && ke.includes("<anonymous>") && (ke = ke.replace("<anonymous>", h.displayName)), typeof h == "function" && O.set(h, ke), ke;
363
363
  }
364
364
  while (he >= 1 && ge >= 0);
365
365
  break;
@@ -369,10 +369,10 @@ function Is() {
369
369
  re = !1, G.current = me, te(), Error.prepareStackTrace = le;
370
370
  }
371
371
  var Ge = h ? h.displayName || h.name : "", _r = Ge ? ee(Ge) : "";
372
- return typeof h == "function" && F.set(h, _r), _r;
372
+ return typeof h == "function" && O.set(h, _r), _r;
373
373
  }
374
374
  function ve(h, M, I) {
375
- return A(h, !1);
375
+ return D(h, !1);
376
376
  }
377
377
  function Ne(h) {
378
378
  var M = h.prototype;
@@ -382,7 +382,7 @@ function Is() {
382
382
  if (h == null)
383
383
  return "";
384
384
  if (typeof h == "function")
385
- return A(h, Ne(h));
385
+ return D(h, Ne(h));
386
386
  if (typeof h == "string")
387
387
  return ee(h);
388
388
  switch (h) {
@@ -407,7 +407,7 @@ function Is() {
407
407
  }
408
408
  return "";
409
409
  }
410
- var Ue = Object.prototype.hasOwnProperty, cr = {}, lr = v.ReactDebugCurrentFrame;
410
+ var Ue = Object.prototype.hasOwnProperty, cr = {}, lr = y.ReactDebugCurrentFrame;
411
411
  function Et(h) {
412
412
  if (h) {
413
413
  var M = h._owner, I = Ce(h.type, h._source, M ? M.type : null);
@@ -430,7 +430,7 @@ function Is() {
430
430
  } catch (he) {
431
431
  ie = he;
432
432
  }
433
- ie && !(ie instanceof Error) && (Et(le), b("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", ne || "React class", I, ce, typeof ie), Et(null)), ie instanceof Error && !(ie.message in cr) && (cr[ie.message] = !0, Et(le), b("Failed %s type: %s", I, ie.message), Et(null));
433
+ ie && !(ie instanceof Error) && (Et(le), x("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", ne || "React class", I, ce, typeof ie), Et(null)), ie instanceof Error && !(ie.message in cr) && (cr[ie.message] = !0, Et(le), x("Failed %s type: %s", I, ie.message), Et(null));
434
434
  }
435
435
  }
436
436
  }
@@ -456,9 +456,9 @@ function Is() {
456
456
  }
457
457
  function dr(h) {
458
458
  if (as(h))
459
- return b("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", rs(h)), ur(h);
459
+ return x("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", rs(h)), ur(h);
460
460
  }
461
- var st = v.ReactCurrentOwner, ss = {
461
+ var st = y.ReactCurrentOwner, ss = {
462
462
  key: !0,
463
463
  ref: !0,
464
464
  __self: !0,
@@ -483,14 +483,14 @@ function Is() {
483
483
  }
484
484
  function cs(h, M) {
485
485
  if (typeof h.ref == "string" && st.current && M && st.current.stateNode !== M) {
486
- var I = x(st.current.type);
487
- un[I] || (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', x(st.current.type), h.ref), un[I] = !0);
486
+ var I = j(st.current.type);
487
+ un[I] || (x('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref', j(st.current.type), h.ref), un[I] = !0);
488
488
  }
489
489
  }
490
490
  function ls(h, M) {
491
491
  {
492
492
  var I = function() {
493
- fr || (fr = !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)", M));
493
+ fr || (fr = !0, x("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", M));
494
494
  };
495
495
  I.isReactWarning = !0, Object.defineProperty(h, "key", {
496
496
  get: I,
@@ -501,7 +501,7 @@ function Is() {
501
501
  function us(h, M) {
502
502
  {
503
503
  var I = function() {
504
- mr || (mr = !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)", M));
504
+ mr || (mr = !0, x("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", M));
505
505
  };
506
506
  I.isReactWarning = !0, Object.defineProperty(h, "ref", {
507
507
  get: I,
@@ -556,7 +556,7 @@ function Is() {
556
556
  return ds(h, ie, xe, le, ne, st.current, ce);
557
557
  }
558
558
  }
559
- var dn = v.ReactCurrentOwner, pr = v.ReactDebugCurrentFrame;
559
+ var dn = y.ReactCurrentOwner, pr = y.ReactDebugCurrentFrame;
560
560
  function Ke(h) {
561
561
  if (h) {
562
562
  var M = h._owner, I = Ce(h.type, h._source, M ? M.type : null);
@@ -572,7 +572,7 @@ function Is() {
572
572
  function hr() {
573
573
  {
574
574
  if (dn.current) {
575
- var h = x(dn.current.type);
575
+ var h = j(dn.current.type);
576
576
  if (h)
577
577
  return `
578
578
 
@@ -615,7 +615,7 @@ Check the top-level render call using <` + I + ">.");
615
615
  return;
616
616
  gr[I] = !0;
617
617
  var ne = "";
618
- h && h._owner && h._owner !== dn.current && (ne = " It was passed a child from " + x(h._owner.type) + "."), Ke(h), b('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', I, ne), Ke(null);
618
+ h && h._owner && h._owner !== dn.current && (ne = " It was passed a child from " + j(h._owner.type) + "."), Ke(h), x('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', I, ne), Ke(null);
619
619
  }
620
620
  }
621
621
  function br(h, M) {
@@ -652,14 +652,14 @@ Check the top-level render call using <` + I + ">.");
652
652
  else
653
653
  return;
654
654
  if (I) {
655
- var ne = x(M);
655
+ var ne = j(M);
656
656
  ts(I, h.props, "prop", ne, h);
657
657
  } else if (M.PropTypes !== void 0 && !fn) {
658
658
  fn = !0;
659
- var le = x(M);
660
- b("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", le || "Unknown");
659
+ var le = j(M);
660
+ x("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", le || "Unknown");
661
661
  }
662
- typeof M.getDefaultProps == "function" && !M.getDefaultProps.isReactClassApproved && b("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
662
+ typeof M.getDefaultProps == "function" && !M.getDefaultProps.isReactClassApproved && x("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
663
663
  }
664
664
  }
665
665
  function gs(h) {
@@ -667,11 +667,11 @@ Check the top-level render call using <` + I + ">.");
667
667
  for (var M = Object.keys(h.props), I = 0; I < M.length; I++) {
668
668
  var ne = M[I];
669
669
  if (ne !== "children" && ne !== "key") {
670
- Ke(h), b("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", ne), Ke(null);
670
+ Ke(h), x("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", ne), Ke(null);
671
671
  break;
672
672
  }
673
673
  }
674
- h.ref !== null && (Ke(h), b("Invalid attribute `ref` supplied to `React.Fragment`."), Ke(null));
674
+ h.ref !== null && (Ke(h), x("Invalid attribute `ref` supplied to `React.Fragment`."), Ke(null));
675
675
  }
676
676
  }
677
677
  function yr(h, M, I, ne, le, me) {
@@ -683,7 +683,7 @@ Check the top-level render call using <` + I + ">.");
683
683
  var xe = ms(le);
684
684
  xe ? ie += xe : ie += hr();
685
685
  var he;
686
- h === null ? he = "null" : ln(h) ? he = "array" : h !== void 0 && h.$$typeof === e ? (he = "<" + (x(h.type) || "Unknown") + " />", ie = " Did you accidentally export a JSX literal instead of a component?") : he = typeof h, b("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", he, ie);
686
+ h === null ? he = "null" : ln(h) ? he = "array" : h !== void 0 && h.$$typeof === e ? (he = "<" + (j(h.type) || "Unknown") + " />", ie = " Did you accidentally export a JSX literal instead of a component?") : he = typeof h, x("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", he, ie);
687
687
  }
688
688
  var ge = fs(h, M, I, le, me);
689
689
  if (ge == null)
@@ -697,7 +697,7 @@ Check the top-level render call using <` + I + ">.");
697
697
  br(ke[Ge], h);
698
698
  Object.freeze && Object.freeze(ke);
699
699
  } else
700
- 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.");
700
+ x("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
701
701
  else
702
702
  br(ke, h);
703
703
  }
@@ -737,43 +737,43 @@ function Bs(t, e, n) {
737
737
  if (typeof t != "function")
738
738
  throw new TypeError("Expected a function");
739
739
  e = +e || 0;
740
- var g = !!(n = n || {}).leading, y = !("trailing" in n) || !!n.trailing, _ = "maxWait" in n, v = "debounceOnServer" in n && !!n.debounceOnServer, b = _ ? Math.max(+n.maxWait || 0, e) : null;
740
+ var g = !!(n = n || {}).leading, v = !("trailing" in n) || !!n.trailing, _ = "maxWait" in n, y = "debounceOnServer" in n && !!n.debounceOnServer, x = _ ? Math.max(+n.maxWait || 0, e) : null;
741
741
  ae(function() {
742
742
  return f.current = !0, function() {
743
743
  f.current = !1;
744
744
  };
745
745
  }, []);
746
746
  var E = wt(function() {
747
- var k = function($) {
748
- var C = c.current, j = d.current;
749
- return c.current = d.current = null, i.current = $, l.current = u.current.apply(j, C);
750
- }, w = function($, C) {
747
+ var w = function($) {
748
+ var C = c.current, k = d.current;
749
+ return c.current = d.current = null, i.current = $, l.current = u.current.apply(k, C);
750
+ }, b = function($, C) {
751
751
  p && cancelAnimationFrame(o.current), o.current = p ? requestAnimationFrame($) : setTimeout($, C);
752
- }, D = function($) {
752
+ }, F = function($) {
753
753
  if (!f.current)
754
754
  return !1;
755
755
  var C = $ - s.current;
756
- return !s.current || C >= e || C < 0 || _ && $ - i.current >= b;
756
+ return !s.current || C >= e || C < 0 || _ && $ - i.current >= x;
757
757
  }, R = function($) {
758
- return o.current = null, y && c.current ? k($) : (c.current = d.current = null, l.current);
758
+ return o.current = null, v && c.current ? w($) : (c.current = d.current = null, l.current);
759
759
  }, Q = function $() {
760
760
  var C = Date.now();
761
- if (D(C))
761
+ if (F(C))
762
762
  return R(C);
763
763
  if (f.current) {
764
- var j = e - (C - s.current), x = _ ? Math.min(j, b - (C - i.current)) : j;
765
- w($, x);
764
+ var k = e - (C - s.current), j = _ ? Math.min(k, x - (C - i.current)) : k;
765
+ b($, j);
766
766
  }
767
767
  }, B = function() {
768
- if (m || v) {
769
- var $ = Date.now(), C = D($);
768
+ if (m || y) {
769
+ var $ = Date.now(), C = F($);
770
770
  if (c.current = [].slice.call(arguments), d.current = r, s.current = $, C) {
771
771
  if (!o.current && f.current)
772
- return i.current = s.current, w(Q, e), g ? k(s.current) : l.current;
772
+ return i.current = s.current, b(Q, e), g ? w(s.current) : l.current;
773
773
  if (_)
774
- return w(Q, e), k(s.current);
774
+ return b(Q, e), w(s.current);
775
775
  }
776
- return o.current || w(Q, e), l.current;
776
+ return o.current || b(Q, e), l.current;
777
777
  }
778
778
  };
779
779
  return B.cancel = function() {
@@ -783,7 +783,7 @@ function Bs(t, e, n) {
783
783
  }, B.flush = function() {
784
784
  return o.current ? R(Date.now()) : l.current;
785
785
  }, B;
786
- }, [g, _, e, b, y, p, m, v]);
786
+ }, [g, _, e, x, v, p, m, y]);
787
787
  return E;
788
788
  }
789
789
  function fa(t, e, n) {
@@ -983,10 +983,13 @@ const ze = {
983
983
  card_member_type_member: "Member",
984
984
  card_member_count: "{count} members",
985
985
  card_cta_people: "View profile",
986
+ card_cta_communityPage: "Join now",
986
987
  card_cta_event: "Register now",
987
988
  card_cta_microcourse: "Enrol now",
989
+ card_cta_communityPage_loading: "Joining...",
988
990
  card_cta_event_loading: "Registering...",
989
991
  card_cta_microcourse_loading: "Enrolling...",
992
+ card_cta_communityPage_done: "Joined",
990
993
  card_cta_event_done: "Registered",
991
994
  card_cta_microcourse_done: "Enrolled",
992
995
  carousel_pagination_previous: "Previous",
@@ -1451,12 +1454,12 @@ Thank you for helping to protect the Apolitical community from abusive content.`
1451
1454
  }) => {
1452
1455
  const p = jt(typeof e == "object");
1453
1456
  if (typeof e == "object" && typeof p == "number") {
1454
- const _ = Object.assign({}, e), v = pa(Object.keys(_));
1455
- e = ha(p, v, _);
1457
+ const _ = Object.assign({}, e), y = pa(Object.keys(_));
1458
+ e = ha(p, y, _);
1456
1459
  }
1457
1460
  const g = [];
1458
1461
  typeof e == "string" && g.push(e), r && (g.push("icon"), typeof r == "object" ? (g.push(r.icon), r.position ? g.push(r.position) : g.push("left"), r.hover && g.push(`hover_${r.hover}`), r.animate && (g.push("animate"), typeof r.animate == "string" && g.push(r.animate))) : (g.push(r), !r.includes("right") && !r.includes("left") && g.push("left"))), n.muted && g.push("muted"), n.fullWidth && g.push("full-width");
1459
- const y = {
1462
+ const v = {
1460
1463
  ...f,
1461
1464
  className: S(t, c, g, {
1462
1465
  "no-text": !u,
@@ -1468,9 +1471,9 @@ Thank you for helping to protect the Apolitical community from abusive content.`
1468
1471
  },
1469
1472
  disabled: typeof d == "object" && "isClickable" in d ? !d.isClickable : d
1470
1473
  };
1471
- return s && (i = "a", y.href = s), Y.createElement(
1474
+ return s && (i = "a", v.href = s), Y.createElement(
1472
1475
  i,
1473
- y,
1476
+ v,
1474
1477
  u || (l ? /* @__PURE__ */ a.jsx(be, { showOnFocus: !1, children: l }) : null)
1475
1478
  );
1476
1479
  }, kt = ({ buttons: t, className: e = "", ...n }) => {
@@ -1614,7 +1617,7 @@ const Tt = ({ image: t, className: e, testId: n }) => {
1614
1617
  loading: l,
1615
1618
  decoding: u,
1616
1619
  fetchPriority: f
1617
- } = t, { range: m, sizes: p } = ri(t), g = hn({ format: "avif", query: o, range: m, url: c }), y = hn({ format: "webp", query: o, range: m, url: c }), _ = hn({ format: "", query: o, range: m, url: c });
1620
+ } = t, { range: m, sizes: p } = ri(t), g = hn({ format: "avif", query: o, range: m, url: c }), v = hn({ format: "webp", query: o, range: m, url: c }), _ = hn({ format: "", query: o, range: m, url: c });
1618
1621
  return /* @__PURE__ */ a.jsxs("picture", { className: e, children: [
1619
1622
  i !== "image/gif" && /* @__PURE__ */ a.jsx(
1620
1623
  "source",
@@ -1625,7 +1628,7 @@ const Tt = ({ image: t, className: e, testId: n }) => {
1625
1628
  "data-testid": "source"
1626
1629
  }
1627
1630
  ),
1628
- /* @__PURE__ */ a.jsx("source", { type: "image/webp", srcSet: y, sizes: p, "data-testid": "source" }),
1631
+ /* @__PURE__ */ a.jsx("source", { type: "image/webp", srcSet: v, sizes: p, "data-testid": "source" }),
1629
1632
  /* @__PURE__ */ a.jsx(
1630
1633
  "img",
1631
1634
  {
@@ -2251,7 +2254,7 @@ const Xn = ({
2251
2254
  if (!t || typeof t != "number")
2252
2255
  return null;
2253
2256
  const c = (u) => {
2254
- const f = u / 60, m = Math.floor(f), p = (f - m) * 60, g = Math.round(p), y = `${i.formatMessage(
2257
+ const f = u / 60, m = Math.floor(f), p = (f - m) * 60, g = Math.round(p), v = `${i.formatMessage(
2255
2258
  { id: `${o}hours` },
2256
2259
  { time: m }
2257
2260
  )}${m > 0 && g > 0 ? ", " : ""}${i.formatMessage(
@@ -2261,7 +2264,7 @@ const Xn = ({
2261
2264
  return { text: `${m > 0 ? `${i.formatMessage(
2262
2265
  { id: `${o}hours_short` },
2263
2266
  { time: m }
2264
- )} ` : ""}${g > 0 ? i.formatMessage({ id: `${o}minutes_short` }, { time: g }) : ""}`, ariaText: y };
2267
+ )} ` : ""}${g > 0 ? i.formatMessage({ id: `${o}minutes_short` }, { time: g }) : ""}`, ariaText: v };
2265
2268
  };
2266
2269
  let { text: d, ariaText: l } = c(t);
2267
2270
  if (e) {
@@ -2964,16 +2967,16 @@ const Pr = {
2964
2967
  className: S("contributors", l, s, { "has-gap": i }),
2965
2968
  children: /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
2966
2969
  /* @__PURE__ */ a.jsx("ul", { children: n.map((m, p) => {
2967
- let g, y = "";
2970
+ let g, v = "";
2968
2971
  if (p < c) {
2969
- const { name: _ = "", image: v = "" } = ka(m);
2972
+ const { name: _ = "", image: y = "" } = ka(m);
2970
2973
  if (o)
2971
2974
  return /* @__PURE__ */ a.jsx(Se, { element: "li", className: "contributor" }, p);
2972
2975
  g = /* @__PURE__ */ a.jsx(
2973
2976
  Ye,
2974
2977
  {
2975
2978
  name: _,
2976
- src: v,
2979
+ src: y,
2977
2980
  width: Pr[s || "medium"],
2978
2981
  height: Pr[s || "medium"]
2979
2982
  }
@@ -2989,9 +2992,9 @@ const Pr = {
2989
2992
  ei(_, 0)
2990
2993
  ]
2991
2994
  }
2992
- ), y = "number-left";
2995
+ ), v = "number-left";
2993
2996
  }
2994
- return g ? /* @__PURE__ */ a.jsx("li", { className: S("contributor", y), children: g }, p) : null;
2997
+ return g ? /* @__PURE__ */ a.jsx("li", { className: S("contributor", v), children: g }, p) : null;
2995
2998
  }) }),
2996
2999
  r && /* @__PURE__ */ a.jsx("span", { className: "label", children: typeof r == "string" ? r : n.length === 1 ? typeof n[0] == "string" ? f.formatMessage({ id: `member_${n[0]}` }) : et(n[0].name || "", 20) : d || null })
2997
3000
  ] })
@@ -3012,7 +3015,7 @@ const $t = "emailHelperTextBox_", Oi = ({
3012
3015
  }), [c, d] = X(!1), l = sa(
3013
3016
  (p) => {
3014
3017
  p.preventDefault(), p.stopPropagation();
3015
- const g = (y) => {
3018
+ const g = (v) => {
3016
3019
  o({
3017
3020
  path: `${$t}error_verificationFailedToSend`,
3018
3021
  type: "error",
@@ -3030,7 +3033,7 @@ const $t = "emailHelperTextBox_", Oi = ({
3030
3033
  "data-gtm-event-context": "ErrorVerifyingBox",
3031
3034
  "data-gtm-event-type": "email-concierge-click"
3032
3035
  },
3033
- error: y
3036
+ error: v
3034
3037
  });
3035
3038
  };
3036
3039
  if (typeof r != "function") {
@@ -3039,8 +3042,8 @@ const $t = "emailHelperTextBox_", Oi = ({
3039
3042
  }
3040
3043
  d(!0), r(e).then(() => {
3041
3044
  localStorage.setItem("email", e), window.location.href = n || "/signup/verify-email";
3042
- }).catch((y) => {
3043
- g(y.message);
3045
+ }).catch((v) => {
3046
+ g(v.message);
3044
3047
  }).finally(() => {
3045
3048
  d(!1);
3046
3049
  });
@@ -3050,13 +3053,13 @@ const $t = "emailHelperTextBox_", Oi = ({
3050
3053
  );
3051
3054
  ae(
3052
3055
  () => {
3053
- let p = $t, g = "default", y = {}, _ = {};
3056
+ let p = $t, g = "default", v = {}, _ = {};
3054
3057
  switch (t) {
3055
3058
  case "gov":
3056
3059
  p += "autoApproved", g = "success";
3057
3060
  break;
3058
3061
  case "nonGov":
3059
- p += "unrecognisedEmail", g = "error", y = {
3062
+ p += "unrecognisedEmail", g = "error", v = {
3060
3063
  href: "https://about.apolitical.co/who-can-join-the-community",
3061
3064
  "data-gtm-event-context": "NonGovEmailHelperTextBox",
3062
3065
  "data-gtm-event-type": "LearnMoreClick"
@@ -3071,17 +3074,17 @@ const $t = "emailHelperTextBox_", Oi = ({
3071
3074
  };
3072
3075
  break;
3073
3076
  case "verify":
3074
- p += "emailUnverified", g = "error", y = {
3077
+ p += "emailUnverified", g = "error", v = {
3075
3078
  href: "#",
3076
3079
  "data-gtm-event-context": "VerifyEmailBox",
3077
3080
  "data-gtm-event-type": "SendEmailClick",
3078
3081
  className: "gtm-trackable",
3079
- onClick: (v) => l(v),
3082
+ onClick: (y) => l(y),
3080
3083
  "data-testid": "send-verify-email-click"
3081
3084
  };
3082
3085
  break;
3083
3086
  case "exists":
3084
- p += "emailAlreadyExists", g = "error", y = {
3087
+ p += "emailAlreadyExists", g = "error", v = {
3085
3088
  href: "/user-onboarding/login",
3086
3089
  "data-gtm-event-context": "EmailExistsBox",
3087
3090
  "data-gtm-event-type": "login-click"
@@ -3093,14 +3096,14 @@ const $t = "emailHelperTextBox_", Oi = ({
3093
3096
  };
3094
3097
  break;
3095
3098
  default:
3096
- p += "default", y = {
3099
+ p += "default", v = {
3097
3100
  href: "https://about.apolitical.co/who-can-join-the-community",
3098
3101
  "data-gtm-event-context": "DefaultEmailHelperTextBox",
3099
3102
  "data-gtm-event-type": "LearnMoreClick"
3100
3103
  };
3101
3104
  break;
3102
3105
  }
3103
- o({ ...i, path: p, type: g, link: y, mail: _ });
3106
+ o({ ...i, path: p, type: g, link: v, mail: _ });
3104
3107
  },
3105
3108
  /* eslint-disable react-hooks/exhaustive-deps */
3106
3109
  [t]
@@ -3173,70 +3176,119 @@ const Qe = {
3173
3176
  DOWN: "ArrowDown",
3174
3177
  ENTER: "Enter"
3175
3178
  }, Ai = 500, Di = ({
3176
- value: t,
3177
- placeholder: e,
3178
- functions: n = {
3179
+ id: t,
3180
+ name: e = t,
3181
+ value: n,
3182
+ placeholder: r,
3183
+ functions: s = {
3179
3184
  onChange: () => {
3180
3185
  },
3181
3186
  onKeyInput: async () => new Promise(() => {
3182
3187
  })
3183
- }
3188
+ },
3189
+ ...i
3184
3190
  }) => {
3185
- const { onChange: r = () => {
3186
- }, onKeyInput: s = async () => {
3187
- } } = n, [{ input: i, displayInput: o, debouncedInput: c }, d] = X({
3188
- input: t,
3189
- displayInput: t,
3190
- debouncedInput: t
3191
- }), [{ predictions: l, activePredictionIndex: u, isPredictionSelected: f }, m] = X({
3191
+ const { onChange: o = () => {
3192
+ }, onKeyInput: c = async () => {
3193
+ } } = s, [{ input: d, displayInput: l, debouncedInput: u }, f] = X({
3194
+ input: n,
3195
+ displayInput: n,
3196
+ debouncedInput: n
3197
+ }), [
3198
+ { predictions: m, activePredictionIndex: p, isPredictionSelected: g },
3199
+ v
3200
+ ] = X({
3192
3201
  predictions: [],
3193
3202
  activePredictionIndex: -1,
3194
- isPredictionSelected: !!t
3195
- }), { formatMessage: p } = H();
3196
- e || (e = p({ id: "inputAutocomplete_placeholder" })), ae(() => {
3197
- const v = setTimeout(() => {
3198
- f || d((b) => ({ ...b, debouncedInput: i }));
3203
+ isPredictionSelected: !!n
3204
+ }), { formatMessage: _ } = H();
3205
+ r || (r = _({ id: "inputAutocomplete_placeholder" })), ae(() => {
3206
+ const w = setTimeout(() => {
3207
+ g || f((b) => ({ ...b, debouncedInput: d }));
3199
3208
  }, Ai);
3200
3209
  return () => {
3201
- clearTimeout(v);
3210
+ clearTimeout(w);
3202
3211
  };
3203
- }, [i, f]), ae(() => {
3204
- c && !f ? (async () => {
3212
+ }, [d, g]), ae(() => {
3213
+ u && !g ? (async () => {
3205
3214
  try {
3206
- const b = await s(c) || [];
3207
- m((E) => ({ ...E, predictions: b }));
3215
+ const b = await c(u) || [];
3216
+ v((F) => ({
3217
+ ...F,
3218
+ predictions: b
3219
+ }));
3208
3220
  } catch (b) {
3209
- console.error("Error fetching predictions:", b), m((E) => ({ ...E, predictions: [] }));
3210
- }
3211
- })() : m((v) => ({ ...v, predictions: [] }));
3212
- }, [c, f]), ae(() => {
3213
- u >= 0 && l[u] && d((v) => ({ ...v, displayInput: l[u].description }));
3214
- }, [u, l]);
3215
- const g = (v) => {
3216
- [Qe.DOWN, Qe.UP, Qe.ENTER].includes(v.key) && (v.preventDefault(), v.key === Qe.DOWN && u < l.length - 1 ? m((b) => ({ ...b, activePredictionIndex: u + 1 })) : v.key === Qe.UP && u > 0 ? m((b) => ({ ...b, activePredictionIndex: u - 1 })) : v.key === Qe.ENTER && u > -1 && (r(l[u].description), d((b) => ({ ...b, input: l[u].description })), m((b) => ({ ...b, predictions: [], isPredictionSelected: !0 }))));
3217
- }, y = (v) => {
3218
- r(v.target.value), d((b) => ({ ...b, input: v.target.value, displayInput: v.target.value })), m((b) => ({ ...b, activePredictionIndex: -1, isPredictionSelected: !1 }));
3219
- }, _ = (v) => {
3220
- r(v.description), d((b) => ({ ...b, input: v.description, displayInput: v.description })), m((b) => ({ ...b, isPredictionSelected: !0, predictions: [] }));
3221
+ console.error("Error fetching predictions:", b), v((F) => ({ ...F, predictions: [] }));
3222
+ }
3223
+ })() : v((w) => ({ ...w, predictions: [] }));
3224
+ }, [u, g]), ae(() => {
3225
+ p >= 0 && m[p] && f((w) => ({
3226
+ ...w,
3227
+ displayInput: m[p].description
3228
+ }));
3229
+ }, [p, m]);
3230
+ const y = (w) => {
3231
+ [Qe.DOWN, Qe.UP, Qe.ENTER].includes(w.key) && (w.preventDefault(), w.key === Qe.DOWN && p < m.length - 1 ? v((b) => ({
3232
+ ...b,
3233
+ activePredictionIndex: p + 1
3234
+ })) : w.key === Qe.UP && p > 0 ? v((b) => ({
3235
+ ...b,
3236
+ activePredictionIndex: p - 1
3237
+ })) : w.key === Qe.ENTER && p > -1 && (o(m[p].description), f((b) => ({
3238
+ ...b,
3239
+ input: m[p].description
3240
+ })), v((b) => ({
3241
+ ...b,
3242
+ predictions: [],
3243
+ isPredictionSelected: !0
3244
+ }))));
3245
+ }, x = (w) => {
3246
+ o(w.target.value), f((b) => ({
3247
+ ...b,
3248
+ input: w.target.value,
3249
+ displayInput: w.target.value
3250
+ })), v((b) => ({
3251
+ ...b,
3252
+ activePredictionIndex: -1,
3253
+ isPredictionSelected: !1
3254
+ }));
3255
+ }, E = (w) => {
3256
+ o(w.description), f((b) => ({
3257
+ ...b,
3258
+ input: w.description,
3259
+ displayInput: w.description
3260
+ })), v((b) => ({
3261
+ ...b,
3262
+ isPredictionSelected: !0,
3263
+ predictions: []
3264
+ }));
3221
3265
  };
3222
3266
  return /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
3223
3267
  /* @__PURE__ */ a.jsx(
3224
3268
  "input",
3225
3269
  {
3226
3270
  type: "text",
3227
- value: o,
3228
- onChange: y,
3229
- onKeyDown: g,
3230
- placeholder: e
3271
+ value: l,
3272
+ onChange: x,
3273
+ onKeyDown: y,
3274
+ placeholder: r,
3275
+ name: e,
3276
+ id: t,
3277
+ ...i
3231
3278
  }
3232
3279
  ),
3233
- /* @__PURE__ */ a.jsx("ul", { className: "predictions-list", children: l.map((v, b) => /* @__PURE__ */ a.jsx(
3280
+ /* @__PURE__ */ a.jsx("ul", { className: "predictions-list", children: m.map((w, b) => /* @__PURE__ */ a.jsx(
3234
3281
  "li",
3235
3282
  {
3236
- onClick: () => _(v),
3237
- onMouseEnter: () => m((E) => ({ ...E, activePredictionIndex: b })),
3238
- className: S("predictions-list-item", { active: b === u }),
3239
- children: v.description
3283
+ onClick: () => E(w),
3284
+ onMouseEnter: () => v((F) => ({
3285
+ ...F,
3286
+ activePredictionIndex: b
3287
+ })),
3288
+ className: S("predictions-list-item", {
3289
+ active: b === p
3290
+ }),
3291
+ children: w.description
3240
3292
  },
3241
3293
  b
3242
3294
  )) })
@@ -3257,7 +3309,7 @@ const Ea = ({
3257
3309
  value: u,
3258
3310
  ...f
3259
3311
  }) => {
3260
- const m = H(), { onChange: p, ...g } = r, y = () => {
3312
+ const m = H(), { onChange: p, ...g } = r, v = () => {
3261
3313
  e || p(u ? null : d);
3262
3314
  }, _ = /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
3263
3315
  /* @__PURE__ */ a.jsx(
@@ -3269,8 +3321,8 @@ const Ea = ({
3269
3321
  type: l,
3270
3322
  value: d,
3271
3323
  checked: u,
3272
- onKeyDown: (v) => {
3273
- (v.key === "Enter" || v.code === "Space") && (v.preventDefault(), v.stopPropagation(), y());
3324
+ onKeyDown: (y) => {
3325
+ (y.key === "Enter" || y.code === "Space") && (y.preventDefault(), y.stopPropagation(), v());
3274
3326
  },
3275
3327
  readOnly: !0,
3276
3328
  disabled: e
@@ -3284,9 +3336,9 @@ const Ea = ({
3284
3336
  return Y.createElement(
3285
3337
  n,
3286
3338
  {
3287
- onClick: (v) => {
3288
- const b = v.target;
3289
- b.nodeName.toLowerCase() === "a" || b.parentNode && b.parentNode.nodeName.toLowerCase() === "a" || (v.preventDefault(), v.stopPropagation(), y());
3339
+ onClick: (y) => {
3340
+ const x = y.target;
3341
+ x.nodeName.toLowerCase() === "a" || x.parentNode && x.parentNode.nodeName.toLowerCase() === "a" || (y.preventDefault(), y.stopPropagation(), v());
3290
3342
  },
3291
3343
  className: S("checkbox-wrapper", t),
3292
3344
  ...f,
@@ -3319,23 +3371,23 @@ const Li = ({
3319
3371
  multiSelectOptions: d,
3320
3372
  id: l
3321
3373
  }) => {
3322
- const u = H(), [f, m] = X(!1), p = r || n, g = Array.isArray(p) ? [...p] : p ? [p] : [], [y, _] = X(g);
3323
- let v;
3324
- Array.isArray(y) && y.length === 1 && typeof y[0] == "string" ? v = e && y ? e.find((R) => R.id === y[0]) : e ? e[0] : { id: "", label: "" } : Array.isArray(y) && y.length === 1 && typeof y[0] != "string" ? v = y[0] : v = { id: "", label: "" }, ae(() => {
3374
+ const u = H(), [f, m] = X(!1), p = r || n, g = Array.isArray(p) ? [...p] : p ? [p] : [], [v, _] = X(g);
3375
+ let y;
3376
+ Array.isArray(v) && v.length === 1 && typeof v[0] == "string" ? y = e && v ? e.find((R) => R.id === v[0]) : e ? e[0] : { id: "", label: "" } : Array.isArray(v) && v.length === 1 && typeof v[0] != "string" ? y = v[0] : y = { id: "", label: "" }, ae(() => {
3325
3377
  _(g);
3326
3378
  }, [r, n]);
3327
- const { onChange: b, onMultiSelectSubmit: E, ...k } = s, w = (R) => {
3379
+ const { onChange: x, onMultiSelectSubmit: E, ...w } = s, b = (R) => {
3328
3380
  if (c) {
3329
3381
  let Q = [];
3330
- y != null && y.includes(R.id) ? Q = y.filter((B) => B !== R.id) : Q = [...y, R.id], _([...Q]), b && b([...Q]);
3382
+ v != null && v.includes(R.id) ? Q = v.filter((B) => B !== R.id) : Q = [...v, R.id], _([...Q]), x && x([...Q]);
3331
3383
  } else
3332
- _([R]), b && b(R.id), m(!1);
3333
- }, D = (R) => {
3384
+ _([R]), x && x(R.id), m(!1);
3385
+ }, F = (R) => {
3334
3386
  if (R === "all") {
3335
3387
  const Q = (e == null ? void 0 : e.map((B) => B.id)) || [];
3336
- _(Q), b && b(Q);
3388
+ _(Q), x && x(Q);
3337
3389
  } else
3338
- _([]), b && b([]);
3390
+ _([]), x && x([]);
3339
3391
  };
3340
3392
  return /* @__PURE__ */ a.jsxs("div", { className: S("dropdown-wrapper", t), children: [
3341
3393
  /* @__PURE__ */ a.jsxs(
@@ -3349,9 +3401,9 @@ const Li = ({
3349
3401
  R.preventDefault(), R.stopPropagation(), m(!f);
3350
3402
  },
3351
3403
  "data-testid": "dropdown-selector",
3352
- ...k,
3404
+ ...w,
3353
3405
  children: [
3354
- c ? `${o} · ${y.length}` : v.label,
3406
+ c ? `${o} · ${v.length}` : y.label,
3355
3407
  /* @__PURE__ */ a.jsx(Ii, { direction: f ? "up" : "down" })
3356
3408
  ]
3357
3409
  }
@@ -3359,14 +3411,14 @@ const Li = ({
3359
3411
  /* @__PURE__ */ a.jsx(
3360
3412
  "select",
3361
3413
  {
3362
- defaultValue: v.id,
3414
+ defaultValue: y.id,
3363
3415
  onChange: (R) => {
3364
3416
  R.preventDefault(), R.stopPropagation();
3365
3417
  const Q = e && e.find((B) => B.id === R.target.value);
3366
- w(Q);
3418
+ b(Q);
3367
3419
  },
3368
3420
  hidden: !f,
3369
- ...k,
3421
+ ...w,
3370
3422
  children: e == null ? void 0 : e.map((R) => /* @__PURE__ */ a.jsx("option", { value: R.id, children: R.label }, R.id))
3371
3423
  }
3372
3424
  ),
@@ -3379,14 +3431,14 @@ const Li = ({
3379
3431
  children: [
3380
3432
  /* @__PURE__ */ a.jsxs("div", { className: "dropdown-menu-list", children: [
3381
3433
  (d == null ? void 0 : d.topbar) && /* @__PURE__ */ a.jsxs("div", { className: "action-bar", children: [
3382
- /* @__PURE__ */ a.jsx("p", { children: `${y == null ? void 0 : y.length} selected` }),
3434
+ /* @__PURE__ */ a.jsx("p", { children: `${v == null ? void 0 : v.length} selected` }),
3383
3435
  /* @__PURE__ */ a.jsxs("ul", { children: [
3384
3436
  /* @__PURE__ */ a.jsx("li", { children: /* @__PURE__ */ a.jsx(
3385
3437
  se,
3386
3438
  {
3387
3439
  variant: "tertiary",
3388
3440
  size: "small",
3389
- onClick: () => D("all"),
3441
+ onClick: () => F("all"),
3390
3442
  className: "gtm-trackable",
3391
3443
  children: u.formatMessage({ id: "dropdown_menu_multiselect_all" })
3392
3444
  }
@@ -3396,7 +3448,7 @@ const Li = ({
3396
3448
  {
3397
3449
  variant: "tertiary",
3398
3450
  size: "small",
3399
- onClick: () => D("none"),
3451
+ onClick: () => F("none"),
3400
3452
  className: "gtm-trackable",
3401
3453
  children: u.formatMessage({ id: "dropdown_menu_multiselect_none" })
3402
3454
  }
@@ -3404,7 +3456,7 @@ const Li = ({
3404
3456
  ] })
3405
3457
  ] }),
3406
3458
  /* @__PURE__ */ a.jsx("ul", { children: e == null ? void 0 : e.map((R) => {
3407
- const Q = R.id === v.id || (y == null ? void 0 : y.includes(R)) || (y == null ? void 0 : y.includes(R.id));
3459
+ const Q = R.id === y.id || (v == null ? void 0 : v.includes(R)) || (v == null ? void 0 : v.includes(R.id));
3408
3460
  return /* @__PURE__ */ a.jsx("li", { "data-testid": "dropdown-options", children: /* @__PURE__ */ a.jsxs(
3409
3461
  "button",
3410
3462
  {
@@ -3415,7 +3467,7 @@ const Li = ({
3415
3467
  "data-gtm-event-type": `${R}-click`,
3416
3468
  "data-gtm-event-context": i,
3417
3469
  onClick: (B) => {
3418
- B.preventDefault(), B.stopPropagation(), w(R);
3470
+ B.preventDefault(), B.stopPropagation(), b(R);
3419
3471
  },
3420
3472
  role: "menuitem",
3421
3473
  "aria-current": Q,
@@ -3433,11 +3485,11 @@ const Li = ({
3433
3485
  {
3434
3486
  variant: "secondary",
3435
3487
  onClick: () => {
3436
- E && E(y), document.dispatchEvent(
3488
+ E && E(v), document.dispatchEvent(
3437
3489
  new CustomEvent("dropdownMultiSelectSubmit", {
3438
3490
  detail: {
3439
3491
  id: l || "dropdown-multi-select",
3440
- value: y
3492
+ value: v
3441
3493
  }
3442
3494
  })
3443
3495
  ), m(!1);
@@ -3474,21 +3526,21 @@ const Bi = ({
3474
3526
  "data-testid": `ul-${r}`,
3475
3527
  children: c == null ? void 0 : c.map(
3476
3528
  ({
3477
- id: y,
3529
+ id: v,
3478
3530
  label: _ = !1,
3479
- value: v = y,
3480
- disabled: b = !1
3531
+ value: y = v,
3532
+ disabled: x = !1
3481
3533
  }) => {
3482
- const E = `${r}_${y}`, k = () => {
3483
- if (b)
3534
+ const E = `${r}_${v}`, w = () => {
3535
+ if (x)
3484
3536
  return;
3485
- let w;
3537
+ let b;
3486
3538
  if (i) {
3487
- const D = p == null ? void 0 : p.indexOf(v);
3488
- Array.isArray(p) && D >= 0 ? (w = p, w.splice(D, 1)) : (!p || p.length === 0 ? w = [] : w = p, w.push(v));
3539
+ const F = p == null ? void 0 : p.indexOf(y);
3540
+ Array.isArray(p) && F >= 0 ? (b = p, b.splice(F, 1)) : (!p || p.length === 0 ? b = [] : b = p, b.push(y));
3489
3541
  } else
3490
- w = g === v ? void 0 : v;
3491
- e.onChange(w);
3542
+ b = g === y ? void 0 : y;
3543
+ e.onChange(b);
3492
3544
  };
3493
3545
  return /* @__PURE__ */ a.jsx(
3494
3546
  Ea,
@@ -3496,17 +3548,17 @@ const Bi = ({
3496
3548
  element: "li",
3497
3549
  id: E,
3498
3550
  type: l === "checkboxes" ? "checkbox" : "radio",
3499
- shownValue: v,
3500
- value: i ? p == null ? void 0 : p.includes(v) : g === v,
3551
+ shownValue: y,
3552
+ value: i ? p == null ? void 0 : p.includes(y) : g === y,
3501
3553
  functions: {
3502
3554
  ...e,
3503
- onChange: k
3555
+ onChange: w
3504
3556
  },
3505
3557
  intlPath: n,
3506
3558
  label: _ || m.formatMessage({
3507
- id: n ? `${n}_${y}` : y
3559
+ id: n ? `${n}_${v}` : v
3508
3560
  }),
3509
- disabled: b
3561
+ disabled: x
3510
3562
  },
3511
3563
  E
3512
3564
  );
@@ -3570,8 +3622,8 @@ const Je = {
3570
3622
  value: l,
3571
3623
  ...u
3572
3624
  }) => {
3573
- const f = H(), m = d && d.some(({ condition: k }) => k === "required"), p = (l == null ? void 0 : l.toString().length) || 0, g = c && Je[c] && Je[c].component ? Je[c].component : gt, y = {};
3574
- c && ["checkboxes"].includes(c) ? y.element = "span" : y.htmlFor = t;
3625
+ const f = H(), m = d && d.some(({ condition: w }) => w === "required"), p = (l == null ? void 0 : l.toString().length) || 0, g = c && Je[c] && Je[c].component ? Je[c].component : gt, v = {};
3626
+ c && ["checkboxes"].includes(c) ? v.element = "span" : v.htmlFor = t;
3575
3627
  let _ = {
3576
3628
  ...u,
3577
3629
  id: t,
@@ -3583,17 +3635,17 @@ const Je = {
3583
3635
  functions: pt(s),
3584
3636
  value: l
3585
3637
  };
3586
- i > 0 && (_["data-character-limit"] = i, _.functions && (_.functions.onChange = (k) => {
3587
- ((k == null ? void 0 : k.toString().length) || 0) > i && (k = k == null ? void 0 : k.toString().slice(0, i)), s.onChange(k);
3638
+ i > 0 && (_["data-character-limit"] = i, _.functions && (_.functions.onChange = (w) => {
3639
+ ((w == null ? void 0 : w.toString().length) || 0) > i && (w = w == null ? void 0 : w.toString().slice(0, i)), s.onChange(w);
3588
3640
  })), c && Je[c] && Je[c].props && (_ = { ..._, ...Je[c].props }), c && ["checkboxes"].includes(c) && (_.intlPath = `${e}_${t}`), r && (_["aria-invalid"] = !0, _["aria-describedby"] = `error-${t}`);
3589
- const v = u.label || f.formatMessage({ id: e ? `${e}_${t}` : t }), b = ({ ...k }) => r ? Y.createElement(
3590
- k.as || "dd",
3641
+ const y = u.label || f.formatMessage({ id: e ? `${e}_${t}` : t }), x = ({ ...w }) => r ? Y.createElement(
3642
+ w.as || "dd",
3591
3643
  {
3592
3644
  id: `error-${t}`,
3593
3645
  className: "error text-small",
3594
3646
  role: "alert",
3595
3647
  "aria-live": "assertive",
3596
- ...k
3648
+ ...w
3597
3649
  },
3598
3650
  r
3599
3651
  ) : null;
@@ -3603,20 +3655,20 @@ const Je = {
3603
3655
  g,
3604
3656
  {
3605
3657
  ..._,
3606
- label: v,
3658
+ label: y,
3607
3659
  className: S("field-wrapper", n)
3608
3660
  }
3609
3661
  ),
3610
- /* @__PURE__ */ a.jsx(b, { as: "p" })
3662
+ /* @__PURE__ */ a.jsx(x, { as: "p" })
3611
3663
  ] });
3612
- const E = (k) => Y.createElement(k.element || "label", {
3613
- ...k,
3664
+ const E = (w) => Y.createElement(w.element || "label", {
3665
+ ...w,
3614
3666
  className: "checkboxes-label text-small",
3615
3667
  "data-testid": `label-${t}`
3616
3668
  });
3617
3669
  return /* @__PURE__ */ a.jsxs("dl", { className: S("field-wrapper text-medium", n), children: [
3618
- /* @__PURE__ */ a.jsx("dt", { children: /* @__PURE__ */ a.jsxs(E, { ...y, children: [
3619
- v,
3670
+ /* @__PURE__ */ a.jsx("dt", { children: /* @__PURE__ */ a.jsxs(E, { ...v, children: [
3671
+ y,
3620
3672
  m && o && /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
3621
3673
  " ",
3622
3674
  /* @__PURE__ */ a.jsxs("small", { children: [
@@ -3644,7 +3696,7 @@ const Je = {
3644
3696
  }
3645
3697
  ) : null
3646
3698
  ] }),
3647
- /* @__PURE__ */ a.jsx(b, {})
3699
+ /* @__PURE__ */ a.jsx(x, {})
3648
3700
  ] });
3649
3701
  }, Wi = (t, e) => {
3650
3702
  const { type: n, payload: r } = e, s = t.errors ? pt(t.errors) : {}, i = t.values ? pt(t.values) : {};
@@ -3687,27 +3739,27 @@ const Je = {
3687
3739
  for (const m of o)
3688
3740
  if (m.validation)
3689
3741
  for (let p = 0; p < m.validation.length; p++) {
3690
- const { condition: g = "required", error: y = !1 } = m.validation[p];
3742
+ const { condition: g = "required", error: v = !1 } = m.validation[p];
3691
3743
  let _ = !1;
3692
3744
  if (typeof g == "function") {
3693
- const v = g(i);
3694
- v && (_ = y || v);
3745
+ const y = g(i);
3746
+ y && (_ = v || y);
3695
3747
  } else {
3696
- const v = i[m.id];
3748
+ const y = i[m.id];
3697
3749
  switch (g) {
3698
3750
  case "required":
3699
- (!v || typeof v == "string" && v.trim().length === 0) && (_ = y || (u == null ? void 0 : u.formatMessage({ id: "form_error_required" })));
3751
+ (!y || typeof y == "string" && y.trim().length === 0) && (_ = v || (u == null ? void 0 : u.formatMessage({ id: "form_error_required" })));
3700
3752
  break;
3701
3753
  case "no-numbers": {
3702
- v && !/^([^0-9]*)$/.test(v) && (_ = y || (u == null ? void 0 : u.formatMessage({ id: "form_error_numbers" })));
3754
+ y && !/^([^0-9]*)$/.test(y) && (_ = v || (u == null ? void 0 : u.formatMessage({ id: "form_error_numbers" })));
3703
3755
  break;
3704
3756
  }
3705
3757
  case "valid-email": {
3706
- v && !/^(([^<>()[\]\\.,;:\s@"]+(\.[^<>()[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/.test(v) && (_ = y || (u == null ? void 0 : u.formatMessage({ id: "form_error_email" })));
3758
+ y && !/^(([^<>()[\]\\.,;:\s@"]+(\.[^<>()[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/.test(y) && (_ = v || (u == null ? void 0 : u.formatMessage({ id: "form_error_email" })));
3707
3759
  break;
3708
3760
  }
3709
3761
  case "valid-url": {
3710
- v && !/^(?:http(s)?:\/\/)?[\w.-]+(?:\.[\w\.-]+)+[\w\-\._~:/?#[\]@!\$&'\(\)\*\+,;=.]+$/.test(v) && (_ = y || (u == null ? void 0 : u.formatMessage({ id: "form_error_url" })));
3762
+ y && !/^(?:http(s)?:\/\/)?[\w.-]+(?:\.[\w\.-]+)+[\w\-\._~:/?#[\]@!\$&'\(\)\*\+,;=.]+$/.test(y) && (_ = v || (u == null ? void 0 : u.formatMessage({ id: "form_error_url" })));
3711
3763
  break;
3712
3764
  }
3713
3765
  default:
@@ -3783,12 +3835,12 @@ const rn = ({
3783
3835
  },
3784
3836
  ...p
3785
3837
  }) => {
3786
- const { customOnSubmit: g, hideButton: y, ..._ } = i, v = 40, {
3787
- shouldShowCancelButton: b = !1,
3838
+ const { customOnSubmit: g, hideButton: v, ..._ } = i, y = 40, {
3839
+ shouldShowCancelButton: x = !1,
3788
3840
  shouldReset: E = !0,
3789
- showRequiredLabels: k = !0,
3790
- showSuccessMessage: w = !1
3791
- } = c || {}, D = H(), R = {};
3841
+ showRequiredLabels: w = !0,
3842
+ showSuccessMessage: b = !1
3843
+ } = c || {}, F = H(), R = {};
3792
3844
  t.length && t.forEach((z) => {
3793
3845
  const K = z.id || z.name;
3794
3846
  K && (R[K] = z.value || "");
@@ -3798,15 +3850,15 @@ const rn = ({
3798
3850
  formSubmitted: !1,
3799
3851
  errors: {},
3800
3852
  values: R
3801
- }), { errors: $, isSubmitting: C, formSubmitted: j, values: x } = Q;
3853
+ }), { errors: $, isSubmitting: C, formSubmitted: k, values: j } = Q;
3802
3854
  ae(() => {
3803
- E && j && (bn = setTimeout(() => {
3855
+ E && k && (bn = setTimeout(() => {
3804
3856
  B({
3805
3857
  type: "updateValue",
3806
3858
  payload: { key: "formSubmitted", value: !1 }
3807
3859
  });
3808
3860
  }, 3e3));
3809
- }, [j]), ae(() => () => {
3861
+ }, [k]), ae(() => () => {
3810
3862
  bn && clearTimeout(bn);
3811
3863
  }, []), ae(() => {
3812
3864
  const z = (K) => {
@@ -3825,32 +3877,32 @@ const rn = ({
3825
3877
  );
3826
3878
  };
3827
3879
  }, []);
3828
- const N = pe(null), O = r || N;
3880
+ const N = pe(null), A = r || N;
3829
3881
  if (!t.length)
3830
3882
  return null;
3831
- i.text || (i.text = D.formatMessage({ id: "form_submit" }));
3883
+ i.text || (i.text = F.formatMessage({ id: "form_submit" }));
3832
3884
  const Z = [
3833
3885
  {
3834
3886
  ..._,
3835
- icon: j ? { icon: "tick", position: "left" } : !1,
3887
+ icon: k ? { icon: "tick", position: "left" } : !1,
3836
3888
  className: "gtm-trackable",
3837
3889
  onClick: (z) => {
3838
3890
  var P;
3839
3891
  if (z.preventDefault(), z.stopPropagation(), C)
3840
3892
  return;
3841
3893
  let K = 0;
3842
- if ((P = O == null ? void 0 : O.current) != null && P.id) {
3843
- const q = document.getElementById(O.current.id);
3894
+ if ((P = A == null ? void 0 : A.current) != null && P.id) {
3895
+ const q = document.getElementById(A.current.id);
3844
3896
  q && (K = q.getBoundingClientRect().top + window.scrollY);
3845
3897
  }
3846
3898
  const T = document.getElementById("header");
3847
- if (T && (K = K - T.offsetHeight - v), K < 0 && (K = 0), window.scrollTo({ top: K, behavior: "smooth" }), B({ type: "toggleSubmitting" }), i.disabled) {
3899
+ if (T && (K = K - T.offsetHeight - y), K < 0 && (K = 0), window.scrollTo({ top: K, behavior: "smooth" }), B({ type: "toggleSubmitting" }), i.disabled) {
3848
3900
  typeof i.disabled == "object" && i.disabled.isClickable && B({
3849
3901
  type: "submitForm",
3850
3902
  payload: {
3851
3903
  fields: t,
3852
3904
  dispatch: B,
3853
- intl: D
3905
+ intl: F
3854
3906
  }
3855
3907
  });
3856
3908
  return;
@@ -3876,26 +3928,26 @@ const rn = ({
3876
3928
  payload: { key: "isSubmitting", value: !1 }
3877
3929
  });
3878
3930
  },
3879
- intl: D
3931
+ intl: F
3880
3932
  }
3881
3933
  });
3882
3934
  },
3883
- disabled: C || j || i.disabled,
3935
+ disabled: C || k || i.disabled,
3884
3936
  "data-gtm-event-context": d.context,
3885
3937
  "data-gtm-event-type": d.event,
3886
- children: C || j ? D.formatMessage({
3938
+ children: C || k ? F.formatMessage({
3887
3939
  id: `form_${C ? "submitting" : "submitted"}`
3888
3940
  }) : i.text
3889
3941
  }
3890
3942
  ];
3891
- return b && Z.unshift({
3943
+ return x && Z.unshift({
3892
3944
  ...o,
3893
3945
  className: "gtm-trackable",
3894
3946
  "data-gtm-event-context": d.context,
3895
3947
  "data-gtm-event-type": d.event,
3896
- disabled: C || j,
3948
+ disabled: C || k,
3897
3949
  onClick: u,
3898
- children: o.text || D.formatMessage({ id: "form_cancel" })
3950
+ children: o.text || F.formatMessage({ id: "form_cancel" })
3899
3951
  }), /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
3900
3952
  /* @__PURE__ */ a.jsxs(
3901
3953
  "form",
@@ -3903,16 +3955,16 @@ const rn = ({
3903
3955
  ...p,
3904
3956
  id: n,
3905
3957
  className: S("form", e),
3906
- ref: O,
3958
+ ref: A,
3907
3959
  children: [
3908
3960
  $ != null && $.general ? /* @__PURE__ */ a.jsx(
3909
3961
  He,
3910
3962
  {
3911
3963
  variant: "error",
3912
- text: D.formatMessage({ id: "form_error_generalError" })
3964
+ text: F.formatMessage({ id: "form_error_generalError" })
3913
3965
  }
3914
3966
  ) : null,
3915
- (!E || !C && !j || g) && t.map((z, K) => {
3967
+ (!E || !C && !k || g) && t.map((z, K) => {
3916
3968
  const {
3917
3969
  id: T = z.name || K,
3918
3970
  component: P,
@@ -3921,13 +3973,13 @@ const rn = ({
3921
3973
  } = z;
3922
3974
  if (P)
3923
3975
  return /* @__PURE__ */ a.jsx(P, { ...z.props || {} }, `component-${T}-${K}`);
3924
- const L = x ? x[T] : "";
3976
+ const L = j ? j[T] : "";
3925
3977
  return /* @__PURE__ */ a.jsx(
3926
3978
  Ui,
3927
3979
  {
3928
3980
  intlPath: s,
3929
3981
  ...z,
3930
- showRequiredLabels: k,
3982
+ showRequiredLabels: w,
3931
3983
  value: L,
3932
3984
  error: $ == null ? void 0 : $[T],
3933
3985
  functions: {
@@ -3940,12 +3992,12 @@ const rn = ({
3940
3992
  T
3941
3993
  );
3942
3994
  }),
3943
- y ? null : (C || j) && g ? g : /* @__PURE__ */ a.jsx(
3995
+ v ? null : (C || k) && g ? g : /* @__PURE__ */ a.jsx(
3944
3996
  kt,
3945
3997
  {
3946
3998
  className: S("cta", {
3947
- center: C || j,
3948
- submitted: j
3999
+ center: C || k,
4000
+ submitted: k
3949
4001
  }),
3950
4002
  buttons: Z
3951
4003
  }
@@ -3953,7 +4005,7 @@ const rn = ({
3953
4005
  ]
3954
4006
  }
3955
4007
  ),
3956
- w && j && /* @__PURE__ */ a.jsx(Wt, { className: "success", children: typeof w == "string" ? w : D.formatMessage({ id: "form_success" }) })
4008
+ b && k && /* @__PURE__ */ a.jsx(Wt, { className: "success", children: typeof b == "string" ? b : F.formatMessage({ id: "form_success" }) })
3957
4009
  ] });
3958
4010
  };
3959
4011
  const Nt = "passwordRules_", Sa = "isMoreThanEightCharacters", Ca = "includesNumberAndSymbol", $a = "includesLowerAndUppercase", zi = {
@@ -4013,67 +4065,67 @@ const Vl = ({
4013
4065
  disabled: !0
4014
4066
  }), u = async () => {
4015
4067
  try {
4016
- const v = await n();
4017
- l((b) => ({
4018
- ...b,
4068
+ const y = await n();
4069
+ l((x) => ({
4070
+ ...x,
4019
4071
  setUp: !0,
4020
- id: v && v.id,
4072
+ id: y && y.id,
4021
4073
  disabled: !1
4022
4074
  }));
4023
- } catch (v) {
4024
- l((b) => ({ ...b, setUp: !0, disabled: !0 })), s(v);
4075
+ } catch (y) {
4076
+ l((x) => ({ ...x, setUp: !0, disabled: !0 })), s(y);
4025
4077
  }
4026
4078
  };
4027
4079
  if (ae(() => {
4028
4080
  o && !d.setUp && u();
4029
4081
  }, [o]), !o)
4030
4082
  return /* @__PURE__ */ a.jsx(Se, { className: "rating-placeholder" });
4031
- const { id: f, rating: m, disabled: p } = d, g = "ratings_", y = {
4083
+ const { id: f, rating: m, disabled: p } = d, g = "ratings_", v = {
4032
4084
  text: c.formatMessage({ id: `${g}text` }),
4033
4085
  low: c.formatMessage({ id: `${g}low` }),
4034
4086
  high: c.formatMessage({ id: `${g}high` }),
4035
4087
  success: c.formatMessage({ id: `${g}success` }),
4036
4088
  ...t
4037
- }, _ = async (v) => {
4089
+ }, _ = async (y) => {
4038
4090
  if (!(!f || p))
4039
4091
  try {
4040
- l((b) => ({ ...b, rating: v, disabled: !0 })), await r({ id: f, value: v });
4041
- } catch (b) {
4042
- l((E) => ({ ...E, rating: null })), s(b);
4092
+ l((x) => ({ ...x, rating: y, disabled: !0 })), await r({ id: f, value: y });
4093
+ } catch (x) {
4094
+ l((E) => ({ ...E, rating: null })), s(x);
4043
4095
  } finally {
4044
- l((b) => ({ ...b, disabled: !1 }));
4096
+ l((x) => ({ ...x, disabled: !1 }));
4045
4097
  }
4046
4098
  };
4047
4099
  return /* @__PURE__ */ a.jsxs("div", { className: S("rating", i), children: [
4048
- /* @__PURE__ */ a.jsx("span", { className: "label", children: y[m ? "success" : "text"] }),
4049
- /* @__PURE__ */ a.jsx("ol", { children: Array.from(new Array(e).keys()).map((v) => {
4050
- const b = v + 1;
4100
+ /* @__PURE__ */ a.jsx("span", { className: "label", children: v[m ? "success" : "text"] }),
4101
+ /* @__PURE__ */ a.jsx("ol", { children: Array.from(new Array(e).keys()).map((y) => {
4102
+ const x = y + 1;
4051
4103
  return /* @__PURE__ */ a.jsx(
4052
4104
  "li",
4053
4105
  {
4054
- className: S({ selected: m && b <= m }),
4106
+ className: S({ selected: m && x <= m }),
4055
4107
  children: /* @__PURE__ */ a.jsx(
4056
4108
  se,
4057
4109
  {
4058
4110
  variant: "tertiary",
4059
4111
  size: "small",
4060
4112
  icon: {
4061
- icon: `star${!m || b > m ? "_empty" : ""}`,
4113
+ icon: `star${!m || x > m ? "_empty" : ""}`,
4062
4114
  position: "left",
4063
4115
  hover: "star"
4064
4116
  },
4065
4117
  screenreaderText: `${c.formatMessage(
4066
4118
  { id: `${g}stars` },
4067
- { number: b, total: e }
4068
- )}${b === 1 || b === e ? ` - ${y[b === 1 ? "low" : "high"]}` : ""}`,
4119
+ { number: x, total: e }
4120
+ )}${x === 1 || x === e ? ` - ${v[x === 1 ? "low" : "high"]}` : ""}`,
4069
4121
  onClick: (E) => {
4070
- E.preventDefault(), E.stopPropagation(), _(b);
4122
+ E.preventDefault(), E.stopPropagation(), _(x);
4071
4123
  },
4072
4124
  disabled: p
4073
4125
  }
4074
4126
  )
4075
4127
  },
4076
- `rating-${b}`
4128
+ `rating-${x}`
4077
4129
  );
4078
4130
  }) })
4079
4131
  ] });
@@ -4145,8 +4197,8 @@ function Kl({ className: t = "", userId: e, userName: n, src: r, setUserImage: s
4145
4197
  if (!p || !e)
4146
4198
  throw c(!1), new Error("Image file or userID is missing");
4147
4199
  const g = await i({ fileObject: p, userId: e });
4148
- s((y) => ({
4149
- ...y,
4200
+ s((v) => ({
4201
+ ...v,
4150
4202
  image: {
4151
4203
  thumbnail: g.thumbnailURL,
4152
4204
  full: g.originalURL
@@ -4249,26 +4301,26 @@ const Yi = ({
4249
4301
  initialFormStatus: l = "NOT_SUBMITTED"
4250
4302
  /* NOT_SUBMITTED */
4251
4303
  }) => {
4252
- const [u, f] = X([]), [m, p] = X(!0), [g, y] = X(l), { formatMessage: _ } = H(), v = async (k) => {
4253
- k.preventDefault();
4304
+ const [u, f] = X([]), [m, p] = X(!0), [g, v] = X(l), { formatMessage: _ } = H(), y = async (w) => {
4305
+ w.preventDefault();
4254
4306
  try {
4255
- await d(u), f([]), y(
4307
+ await d(u), f([]), v(
4256
4308
  "SUCCESS"
4257
4309
  /* SUCCESS */
4258
4310
  );
4259
- } catch (w) {
4260
- y(
4311
+ } catch (b) {
4312
+ v(
4261
4313
  "ERROR"
4262
4314
  /* ERROR */
4263
- ), c(w);
4315
+ ), c(b);
4264
4316
  }
4265
- }, b = (k) => {
4266
- k.preventDefault(), y(
4317
+ }, x = (w) => {
4318
+ w.preventDefault(), v(
4267
4319
  "NOT_SUBMITTED"
4268
4320
  /* NOT_SUBMITTED */
4269
4321
  ), p(!0), f([]);
4270
- }, E = (k) => {
4271
- k.preventDefault(), o(), y(
4322
+ }, E = (w) => {
4323
+ w.preventDefault(), o(), v(
4272
4324
  "CLOSED"
4273
4325
  /* CLOSED */
4274
4326
  );
@@ -4280,14 +4332,14 @@ const Yi = ({
4280
4332
  ] }) }),
4281
4333
  /* @__PURE__ */ a.jsx(Oe, {}),
4282
4334
  /* @__PURE__ */ a.jsx("div", { className: "footer", children: g === "SUCCESS" ? /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
4283
- /* @__PURE__ */ a.jsx(se, { variant: "secondary", onClick: b, children: _({ id: "inviteForm_ctaSendMoreInvites" }) }),
4335
+ /* @__PURE__ */ a.jsx(se, { variant: "secondary", onClick: x, children: _({ id: "inviteForm_ctaSendMoreInvites" }) }),
4284
4336
  /* @__PURE__ */ a.jsx(se, { onClick: E, children: _({ id: "inviteForm_ctaDone" }) })
4285
- ] }) : /* @__PURE__ */ a.jsx(se, { onClick: b, children: _({ id: "inviteForm_ctaTryAgain" }) }) })
4337
+ ] }) : /* @__PURE__ */ a.jsx(se, { onClick: x, children: _({ id: "inviteForm_ctaTryAgain" }) }) })
4286
4338
  ] }) : /* @__PURE__ */ a.jsx("div", { className: "invite-form-wrapper", children: /* @__PURE__ */ a.jsxs(
4287
4339
  "form",
4288
4340
  {
4289
4341
  style: { backgroundColor: i },
4290
- onSubmit: v,
4342
+ onSubmit: y,
4291
4343
  className: S("invite-form gtm-trackable"),
4292
4344
  children: [
4293
4345
  /* @__PURE__ */ a.jsxs("fieldset", { className: "content", children: [
@@ -4300,12 +4352,12 @@ const Yi = ({
4300
4352
  inputClassName: "email-input input",
4301
4353
  placeholder: _({ id: "inviteForm_email_placeholder" }),
4302
4354
  emails: u,
4303
- onChange: (k) => {
4304
- f(k), p(!k.length);
4355
+ onChange: (w) => {
4356
+ f(w), p(!w.length);
4305
4357
  },
4306
4358
  autoFocus: !1,
4307
- getLabel: (k, w, D) => /* @__PURE__ */ a.jsxs("div", { className: "email text-medium", children: [
4308
- /* @__PURE__ */ a.jsx("div", { "data-tag-item": !0, children: k }),
4359
+ getLabel: (w, b, F) => /* @__PURE__ */ a.jsxs("div", { className: "email text-medium", children: [
4360
+ /* @__PURE__ */ a.jsx("div", { "data-tag-item": !0, children: w }),
4309
4361
  /* @__PURE__ */ a.jsx(
4310
4362
  se,
4311
4363
  {
@@ -4313,13 +4365,13 @@ const Yi = ({
4313
4365
  size: "small",
4314
4366
  icon: { icon: "close" },
4315
4367
  onClick: () => {
4316
- D(w), p(!u.length);
4368
+ F(b), p(!u.length);
4317
4369
  },
4318
4370
  className: "remove-email-button",
4319
4371
  screenreaderText: _({ id: "overlay_close" })
4320
4372
  }
4321
4373
  )
4322
- ] }, w)
4374
+ ] }, b)
4323
4375
  }
4324
4376
  )
4325
4377
  ] }),
@@ -4689,11 +4741,11 @@ const Ki = ({
4689
4741
  if (!p)
4690
4742
  return;
4691
4743
  const g = [];
4692
- ["name", "email"].forEach((y) => {
4693
- o.validFields[y] !== i[y].current.validity.valid && (g.push({
4694
- type: `validFields.${y}`,
4695
- value: i[y].current.validity.valid
4696
- }), y === "email" && Mr({ ref: i.email, validateEmail: r, dispatch: c }));
4744
+ ["name", "email"].forEach((v) => {
4745
+ o.validFields[v] !== i[v].current.validity.valid && (g.push({
4746
+ type: `validFields.${v}`,
4747
+ value: i[v].current.validity.valid
4748
+ }), v === "email" && Mr({ ref: i.email, validateEmail: r, dispatch: c }));
4697
4749
  }), g.length && c(g);
4698
4750
  }
4699
4751
  },
@@ -4762,14 +4814,14 @@ const eo = {
4762
4814
  url: f,
4763
4815
  logInButton: m,
4764
4816
  successMessage: p
4765
- }, [y, _] = Yn(ma, eo), {
4766
- validFields: v,
4767
- emailDetails: b,
4817
+ }, [v, _] = Yn(ma, eo), {
4818
+ validFields: y,
4819
+ emailDetails: x,
4768
4820
  shouldManuallyApprove: E,
4769
- shouldDisableButton: k,
4770
- showSuccessMessage: w,
4771
- showError: D
4772
- } = y, [R, Q] = oa([
4821
+ shouldDisableButton: w,
4822
+ showSuccessMessage: b,
4823
+ showError: F
4824
+ } = v, [R, Q] = oa([
4773
4825
  "signup-this-session",
4774
4826
  "functional-cookie-consent"
4775
4827
  ]), B = {
@@ -4786,30 +4838,30 @@ const eo = {
4786
4838
  }, [E]), ae(() => {
4787
4839
  R["signup-this-session"] && _([{ type: "showSuccessMessage", value: !0 }]);
4788
4840
  }, [R]), ae(() => {
4789
- w && R["functional-cookie-consent"] && Q("signup-this-session", "true", {
4841
+ b && R["functional-cookie-consent"] && Q("signup-this-session", "true", {
4790
4842
  path: "/",
4791
4843
  maxAge: 3600
4792
4844
  });
4793
- }, [w]);
4845
+ }, [b]);
4794
4846
  const $ = wt(() => Ji({
4795
4847
  placeholders: n,
4796
4848
  labels: e,
4797
4849
  shouldShow: g,
4798
4850
  functions: r,
4799
4851
  refs: B,
4800
- state: y,
4852
+ state: v,
4801
4853
  dispatch: _,
4802
4854
  dataToSubmit: o,
4803
4855
  intl: d
4804
- }), [o, r, d, B, g, y]), C = k ? !0 : E ? !Object.values(v).every((j) => j === !0) : !v.name || !v.email || ["exists", "pending", "verify"].includes(b.boxType);
4805
- return g.successMessage && w ? /* @__PURE__ */ a.jsx(Xi, { className: t }) : /* @__PURE__ */ a.jsxs(
4856
+ }), [o, r, d, B, g, v]), C = w ? !0 : E ? !Object.values(y).every((k) => k === !0) : !y.name || !y.email || ["exists", "pending", "verify"].includes(x.boxType);
4857
+ return g.successMessage && b ? /* @__PURE__ */ a.jsx(Xi, { className: t }) : /* @__PURE__ */ a.jsxs(
4806
4858
  "fieldset",
4807
4859
  {
4808
4860
  className: S("signup-form-fieldset", t),
4809
4861
  "data-testid": "signup-form",
4810
4862
  children: [
4811
4863
  g.title && /* @__PURE__ */ a.jsx("p", { className: "signup-title", children: /* @__PURE__ */ a.jsx(ye, { id: "signup_title" }) }),
4812
- D && /* @__PURE__ */ a.jsx(
4864
+ F && /* @__PURE__ */ a.jsx(
4813
4865
  He,
4814
4866
  {
4815
4867
  variant: "error",
@@ -4859,11 +4911,11 @@ const eo = {
4859
4911
  createAccount: r.createAccount,
4860
4912
  onSuccess: r.onSuccess,
4861
4913
  dispatch: _,
4862
- state: y
4914
+ state: v
4863
4915
  });
4864
4916
  },
4865
- onCatch: (j) => {
4866
- r.handleError(j), _([
4917
+ onCatch: (k) => {
4918
+ r.handleError(k), _([
4867
4919
  { type: "showSuccessMessage", value: !1 },
4868
4920
  { type: "showError", value: !0 }
4869
4921
  ]);
@@ -4890,66 +4942,66 @@ function to() {
4890
4942
  if (Rr)
4891
4943
  return ue;
4892
4944
  Rr = 1;
4893
- var t = typeof Symbol == "function" && Symbol.for, e = t ? Symbol.for("react.element") : 60103, n = t ? Symbol.for("react.portal") : 60106, r = t ? Symbol.for("react.fragment") : 60107, s = t ? Symbol.for("react.strict_mode") : 60108, i = t ? Symbol.for("react.profiler") : 60114, o = t ? Symbol.for("react.provider") : 60109, c = t ? Symbol.for("react.context") : 60110, d = t ? Symbol.for("react.async_mode") : 60111, l = t ? Symbol.for("react.concurrent_mode") : 60111, u = t ? Symbol.for("react.forward_ref") : 60112, f = t ? Symbol.for("react.suspense") : 60113, m = t ? Symbol.for("react.suspense_list") : 60120, p = t ? Symbol.for("react.memo") : 60115, g = t ? Symbol.for("react.lazy") : 60116, y = t ? Symbol.for("react.block") : 60121, _ = t ? Symbol.for("react.fundamental") : 60117, v = t ? Symbol.for("react.responder") : 60118, b = t ? Symbol.for("react.scope") : 60119;
4894
- function E(w) {
4895
- if (typeof w == "object" && w !== null) {
4896
- var D = w.$$typeof;
4897
- switch (D) {
4945
+ var t = typeof Symbol == "function" && Symbol.for, e = t ? Symbol.for("react.element") : 60103, n = t ? Symbol.for("react.portal") : 60106, r = t ? Symbol.for("react.fragment") : 60107, s = t ? Symbol.for("react.strict_mode") : 60108, i = t ? Symbol.for("react.profiler") : 60114, o = t ? Symbol.for("react.provider") : 60109, c = t ? Symbol.for("react.context") : 60110, d = t ? Symbol.for("react.async_mode") : 60111, l = t ? Symbol.for("react.concurrent_mode") : 60111, u = t ? Symbol.for("react.forward_ref") : 60112, f = t ? Symbol.for("react.suspense") : 60113, m = t ? Symbol.for("react.suspense_list") : 60120, p = t ? Symbol.for("react.memo") : 60115, g = t ? Symbol.for("react.lazy") : 60116, v = t ? Symbol.for("react.block") : 60121, _ = t ? Symbol.for("react.fundamental") : 60117, y = t ? Symbol.for("react.responder") : 60118, x = t ? Symbol.for("react.scope") : 60119;
4946
+ function E(b) {
4947
+ if (typeof b == "object" && b !== null) {
4948
+ var F = b.$$typeof;
4949
+ switch (F) {
4898
4950
  case e:
4899
- switch (w = w.type, w) {
4951
+ switch (b = b.type, b) {
4900
4952
  case d:
4901
4953
  case l:
4902
4954
  case r:
4903
4955
  case i:
4904
4956
  case s:
4905
4957
  case f:
4906
- return w;
4958
+ return b;
4907
4959
  default:
4908
- switch (w = w && w.$$typeof, w) {
4960
+ switch (b = b && b.$$typeof, b) {
4909
4961
  case c:
4910
4962
  case u:
4911
4963
  case g:
4912
4964
  case p:
4913
4965
  case o:
4914
- return w;
4966
+ return b;
4915
4967
  default:
4916
- return D;
4968
+ return F;
4917
4969
  }
4918
4970
  }
4919
4971
  case n:
4920
- return D;
4972
+ return F;
4921
4973
  }
4922
4974
  }
4923
4975
  }
4924
- function k(w) {
4925
- return E(w) === l;
4976
+ function w(b) {
4977
+ return E(b) === l;
4926
4978
  }
4927
- return ue.AsyncMode = d, ue.ConcurrentMode = l, ue.ContextConsumer = c, ue.ContextProvider = o, ue.Element = e, ue.ForwardRef = u, ue.Fragment = r, ue.Lazy = g, ue.Memo = p, ue.Portal = n, ue.Profiler = i, ue.StrictMode = s, ue.Suspense = f, ue.isAsyncMode = function(w) {
4928
- return k(w) || E(w) === d;
4929
- }, ue.isConcurrentMode = k, ue.isContextConsumer = function(w) {
4930
- return E(w) === c;
4931
- }, ue.isContextProvider = function(w) {
4932
- return E(w) === o;
4933
- }, ue.isElement = function(w) {
4934
- return typeof w == "object" && w !== null && w.$$typeof === e;
4935
- }, ue.isForwardRef = function(w) {
4936
- return E(w) === u;
4937
- }, ue.isFragment = function(w) {
4938
- return E(w) === r;
4939
- }, ue.isLazy = function(w) {
4940
- return E(w) === g;
4941
- }, ue.isMemo = function(w) {
4942
- return E(w) === p;
4943
- }, ue.isPortal = function(w) {
4944
- return E(w) === n;
4945
- }, ue.isProfiler = function(w) {
4946
- return E(w) === i;
4947
- }, ue.isStrictMode = function(w) {
4948
- return E(w) === s;
4949
- }, ue.isSuspense = function(w) {
4950
- return E(w) === f;
4951
- }, ue.isValidElementType = function(w) {
4952
- return typeof w == "string" || typeof w == "function" || w === r || w === l || w === i || w === s || w === f || w === m || typeof w == "object" && w !== null && (w.$$typeof === g || w.$$typeof === p || w.$$typeof === o || w.$$typeof === c || w.$$typeof === u || w.$$typeof === _ || w.$$typeof === v || w.$$typeof === b || w.$$typeof === y);
4979
+ return ue.AsyncMode = d, ue.ConcurrentMode = l, ue.ContextConsumer = c, ue.ContextProvider = o, ue.Element = e, ue.ForwardRef = u, ue.Fragment = r, ue.Lazy = g, ue.Memo = p, ue.Portal = n, ue.Profiler = i, ue.StrictMode = s, ue.Suspense = f, ue.isAsyncMode = function(b) {
4980
+ return w(b) || E(b) === d;
4981
+ }, ue.isConcurrentMode = w, ue.isContextConsumer = function(b) {
4982
+ return E(b) === c;
4983
+ }, ue.isContextProvider = function(b) {
4984
+ return E(b) === o;
4985
+ }, ue.isElement = function(b) {
4986
+ return typeof b == "object" && b !== null && b.$$typeof === e;
4987
+ }, ue.isForwardRef = function(b) {
4988
+ return E(b) === u;
4989
+ }, ue.isFragment = function(b) {
4990
+ return E(b) === r;
4991
+ }, ue.isLazy = function(b) {
4992
+ return E(b) === g;
4993
+ }, ue.isMemo = function(b) {
4994
+ return E(b) === p;
4995
+ }, ue.isPortal = function(b) {
4996
+ return E(b) === n;
4997
+ }, ue.isProfiler = function(b) {
4998
+ return E(b) === i;
4999
+ }, ue.isStrictMode = function(b) {
5000
+ return E(b) === s;
5001
+ }, ue.isSuspense = function(b) {
5002
+ return E(b) === f;
5003
+ }, ue.isValidElementType = function(b) {
5004
+ return typeof b == "string" || typeof b == "function" || b === r || b === l || b === i || b === s || b === f || b === m || typeof b == "object" && b !== null && (b.$$typeof === g || b.$$typeof === p || b.$$typeof === o || b.$$typeof === c || b.$$typeof === u || b.$$typeof === _ || b.$$typeof === y || b.$$typeof === x || b.$$typeof === v);
4953
5005
  }, ue.typeOf = E, ue;
4954
5006
  }
4955
5007
  var de = {};
@@ -4964,17 +5016,17 @@ var de = {};
4964
5016
  var Fr;
4965
5017
  function no() {
4966
5018
  return Fr || (Fr = 1, process.env.NODE_ENV !== "production" && function() {
4967
- var t = typeof Symbol == "function" && Symbol.for, e = t ? Symbol.for("react.element") : 60103, n = t ? Symbol.for("react.portal") : 60106, r = t ? Symbol.for("react.fragment") : 60107, s = t ? Symbol.for("react.strict_mode") : 60108, i = t ? Symbol.for("react.profiler") : 60114, o = t ? Symbol.for("react.provider") : 60109, c = t ? Symbol.for("react.context") : 60110, d = t ? Symbol.for("react.async_mode") : 60111, l = t ? Symbol.for("react.concurrent_mode") : 60111, u = t ? Symbol.for("react.forward_ref") : 60112, f = t ? Symbol.for("react.suspense") : 60113, m = t ? Symbol.for("react.suspense_list") : 60120, p = t ? Symbol.for("react.memo") : 60115, g = t ? Symbol.for("react.lazy") : 60116, y = t ? Symbol.for("react.block") : 60121, _ = t ? Symbol.for("react.fundamental") : 60117, v = t ? Symbol.for("react.responder") : 60118, b = t ? Symbol.for("react.scope") : 60119;
4968
- function E(A) {
4969
- return typeof A == "string" || typeof A == "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
4970
- A === r || A === l || A === i || A === s || A === f || A === m || typeof A == "object" && A !== null && (A.$$typeof === g || A.$$typeof === p || A.$$typeof === o || A.$$typeof === c || A.$$typeof === u || A.$$typeof === _ || A.$$typeof === v || A.$$typeof === b || A.$$typeof === y);
4971
- }
4972
- function k(A) {
4973
- if (typeof A == "object" && A !== null) {
4974
- var ve = A.$$typeof;
5019
+ var t = typeof Symbol == "function" && Symbol.for, e = t ? Symbol.for("react.element") : 60103, n = t ? Symbol.for("react.portal") : 60106, r = t ? Symbol.for("react.fragment") : 60107, s = t ? Symbol.for("react.strict_mode") : 60108, i = t ? Symbol.for("react.profiler") : 60114, o = t ? Symbol.for("react.provider") : 60109, c = t ? Symbol.for("react.context") : 60110, d = t ? Symbol.for("react.async_mode") : 60111, l = t ? Symbol.for("react.concurrent_mode") : 60111, u = t ? Symbol.for("react.forward_ref") : 60112, f = t ? Symbol.for("react.suspense") : 60113, m = t ? Symbol.for("react.suspense_list") : 60120, p = t ? Symbol.for("react.memo") : 60115, g = t ? Symbol.for("react.lazy") : 60116, v = t ? Symbol.for("react.block") : 60121, _ = t ? Symbol.for("react.fundamental") : 60117, y = t ? Symbol.for("react.responder") : 60118, x = t ? Symbol.for("react.scope") : 60119;
5020
+ function E(D) {
5021
+ return typeof D == "string" || typeof D == "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
5022
+ D === r || D === l || D === i || D === s || D === f || D === m || typeof D == "object" && D !== null && (D.$$typeof === g || D.$$typeof === p || D.$$typeof === o || D.$$typeof === c || D.$$typeof === u || D.$$typeof === _ || D.$$typeof === y || D.$$typeof === x || D.$$typeof === v);
5023
+ }
5024
+ function w(D) {
5025
+ if (typeof D == "object" && D !== null) {
5026
+ var ve = D.$$typeof;
4975
5027
  switch (ve) {
4976
5028
  case e:
4977
- var Ne = A.type;
5029
+ var Ne = D.type;
4978
5030
  switch (Ne) {
4979
5031
  case d:
4980
5032
  case l:
@@ -5001,47 +5053,47 @@ function no() {
5001
5053
  }
5002
5054
  }
5003
5055
  }
5004
- var w = d, D = l, R = c, Q = o, B = e, $ = u, C = r, j = g, x = p, N = n, O = i, W = s, Z = f, z = !1;
5005
- function K(A) {
5006
- return z || (z = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")), T(A) || k(A) === d;
5056
+ var b = d, F = l, R = c, Q = o, B = e, $ = u, C = r, k = g, j = p, N = n, A = i, W = s, Z = f, z = !1;
5057
+ function K(D) {
5058
+ return z || (z = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")), T(D) || w(D) === d;
5007
5059
  }
5008
- function T(A) {
5009
- return k(A) === l;
5060
+ function T(D) {
5061
+ return w(D) === l;
5010
5062
  }
5011
- function P(A) {
5012
- return k(A) === c;
5063
+ function P(D) {
5064
+ return w(D) === c;
5013
5065
  }
5014
- function q(A) {
5015
- return k(A) === o;
5066
+ function q(D) {
5067
+ return w(D) === o;
5016
5068
  }
5017
- function L(A) {
5018
- return typeof A == "object" && A !== null && A.$$typeof === e;
5069
+ function L(D) {
5070
+ return typeof D == "object" && D !== null && D.$$typeof === e;
5019
5071
  }
5020
- function U(A) {
5021
- return k(A) === u;
5072
+ function U(D) {
5073
+ return w(D) === u;
5022
5074
  }
5023
- function te(A) {
5024
- return k(A) === r;
5075
+ function te(D) {
5076
+ return w(D) === r;
5025
5077
  }
5026
- function G(A) {
5027
- return k(A) === g;
5078
+ function G(D) {
5079
+ return w(D) === g;
5028
5080
  }
5029
- function V(A) {
5030
- return k(A) === p;
5081
+ function V(D) {
5082
+ return w(D) === p;
5031
5083
  }
5032
- function ee(A) {
5033
- return k(A) === n;
5084
+ function ee(D) {
5085
+ return w(D) === n;
5034
5086
  }
5035
- function re(A) {
5036
- return k(A) === i;
5087
+ function re(D) {
5088
+ return w(D) === i;
5037
5089
  }
5038
- function F(A) {
5039
- return k(A) === s;
5090
+ function O(D) {
5091
+ return w(D) === s;
5040
5092
  }
5041
- function oe(A) {
5042
- return k(A) === f;
5093
+ function oe(D) {
5094
+ return w(D) === f;
5043
5095
  }
5044
- de.AsyncMode = w, de.ConcurrentMode = D, de.ContextConsumer = R, de.ContextProvider = Q, de.Element = B, de.ForwardRef = $, de.Fragment = C, de.Lazy = j, de.Memo = x, de.Portal = N, de.Profiler = O, de.StrictMode = W, de.Suspense = Z, de.isAsyncMode = K, de.isConcurrentMode = T, de.isContextConsumer = P, de.isContextProvider = q, de.isElement = L, de.isForwardRef = U, de.isFragment = te, de.isLazy = G, de.isMemo = V, de.isPortal = ee, de.isProfiler = re, de.isStrictMode = F, de.isSuspense = oe, de.isValidElementType = E, de.typeOf = k;
5096
+ de.AsyncMode = b, de.ConcurrentMode = F, de.ContextConsumer = R, de.ContextProvider = Q, de.Element = B, de.ForwardRef = $, de.Fragment = C, de.Lazy = k, de.Memo = j, de.Portal = N, de.Profiler = A, de.StrictMode = W, de.Suspense = Z, de.isAsyncMode = K, de.isConcurrentMode = T, de.isContextConsumer = P, de.isContextProvider = q, de.isElement = L, de.isForwardRef = U, de.isFragment = te, de.isLazy = G, de.isMemo = V, de.isPortal = ee, de.isProfiler = re, de.isStrictMode = O, de.isSuspense = oe, de.isValidElementType = E, de.typeOf = w;
5045
5097
  }()), de;
5046
5098
  }
5047
5099
  var Or;
@@ -5188,63 +5240,63 @@ function so() {
5188
5240
  return P;
5189
5241
  }
5190
5242
  var m = "<<anonymous>>", p = {
5191
- array: v("array"),
5192
- bigint: v("bigint"),
5193
- bool: v("boolean"),
5194
- func: v("function"),
5195
- number: v("number"),
5196
- object: v("object"),
5197
- string: v("string"),
5198
- symbol: v("symbol"),
5199
- any: b(),
5243
+ array: y("array"),
5244
+ bigint: y("bigint"),
5245
+ bool: y("boolean"),
5246
+ func: y("function"),
5247
+ number: y("number"),
5248
+ object: y("object"),
5249
+ string: y("string"),
5250
+ symbol: y("symbol"),
5251
+ any: x(),
5200
5252
  arrayOf: E,
5201
- element: k(),
5202
- elementType: w(),
5203
- instanceOf: D,
5253
+ element: w(),
5254
+ elementType: b(),
5255
+ instanceOf: F,
5204
5256
  node: $(),
5205
5257
  objectOf: Q,
5206
5258
  oneOf: R,
5207
5259
  oneOfType: B,
5208
- shape: j,
5209
- exact: x
5260
+ shape: k,
5261
+ exact: j
5210
5262
  };
5211
5263
  function g(T, P) {
5212
5264
  return T === P ? T !== 0 || 1 / T === 1 / P : T !== T && P !== P;
5213
5265
  }
5214
- function y(T, P) {
5266
+ function v(T, P) {
5215
5267
  this.message = T, this.data = P && typeof P == "object" ? P : {}, this.stack = "";
5216
5268
  }
5217
- y.prototype = Error.prototype;
5269
+ v.prototype = Error.prototype;
5218
5270
  function _(T) {
5219
5271
  if (process.env.NODE_ENV !== "production")
5220
5272
  var P = {}, q = 0;
5221
- function L(te, G, V, ee, re, F, oe) {
5222
- if (ee = ee || m, F = F || V, oe !== n) {
5273
+ function L(te, G, V, ee, re, O, oe) {
5274
+ if (ee = ee || m, O = O || V, oe !== n) {
5223
5275
  if (d) {
5224
- var A = new Error(
5276
+ var D = new Error(
5225
5277
  "Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types"
5226
5278
  );
5227
- throw A.name = "Invariant Violation", A;
5279
+ throw D.name = "Invariant Violation", D;
5228
5280
  } else if (process.env.NODE_ENV !== "production" && typeof console < "u") {
5229
5281
  var ve = ee + ":" + V;
5230
5282
  !P[ve] && // Avoid spamming the console because they are often not actionable except for lib authors
5231
5283
  q < 3 && (i(
5232
- "You are manually calling a React.PropTypes validation function for the `" + F + "` prop on `" + ee + "`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."
5284
+ "You are manually calling a React.PropTypes validation function for the `" + O + "` prop on `" + ee + "`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."
5233
5285
  ), P[ve] = !0, q++);
5234
5286
  }
5235
5287
  }
5236
- return G[V] == null ? te ? G[V] === null ? new y("The " + re + " `" + F + "` is marked as required " + ("in `" + ee + "`, but its value is `null`.")) : new y("The " + re + " `" + F + "` is marked as required in " + ("`" + ee + "`, but its value is `undefined`.")) : null : T(G, V, ee, re, F);
5288
+ return G[V] == null ? te ? G[V] === null ? new v("The " + re + " `" + O + "` is marked as required " + ("in `" + ee + "`, but its value is `null`.")) : new v("The " + re + " `" + O + "` is marked as required in " + ("`" + ee + "`, but its value is `undefined`.")) : null : T(G, V, ee, re, O);
5237
5289
  }
5238
5290
  var U = L.bind(null, !1);
5239
5291
  return U.isRequired = L.bind(null, !0), U;
5240
5292
  }
5241
- function v(T) {
5293
+ function y(T) {
5242
5294
  function P(q, L, U, te, G, V) {
5243
5295
  var ee = q[L], re = W(ee);
5244
5296
  if (re !== T) {
5245
- var F = Z(ee);
5246
- return new y(
5247
- "Invalid " + te + " `" + G + "` of type " + ("`" + F + "` supplied to `" + U + "`, expected ") + ("`" + T + "`."),
5297
+ var O = Z(ee);
5298
+ return new v(
5299
+ "Invalid " + te + " `" + G + "` of type " + ("`" + O + "` supplied to `" + U + "`, expected ") + ("`" + T + "`."),
5248
5300
  { expectedType: T }
5249
5301
  );
5250
5302
  }
@@ -5252,54 +5304,54 @@ function so() {
5252
5304
  }
5253
5305
  return _(P);
5254
5306
  }
5255
- function b() {
5307
+ function x() {
5256
5308
  return _(o);
5257
5309
  }
5258
5310
  function E(T) {
5259
5311
  function P(q, L, U, te, G) {
5260
5312
  if (typeof T != "function")
5261
- return new y("Property `" + G + "` of component `" + U + "` has invalid PropType notation inside arrayOf.");
5313
+ return new v("Property `" + G + "` of component `" + U + "` has invalid PropType notation inside arrayOf.");
5262
5314
  var V = q[L];
5263
5315
  if (!Array.isArray(V)) {
5264
5316
  var ee = W(V);
5265
- return new y("Invalid " + te + " `" + G + "` of type " + ("`" + ee + "` supplied to `" + U + "`, expected an array."));
5317
+ return new v("Invalid " + te + " `" + G + "` of type " + ("`" + ee + "` supplied to `" + U + "`, expected an array."));
5266
5318
  }
5267
5319
  for (var re = 0; re < V.length; re++) {
5268
- var F = T(V, re, U, te, G + "[" + re + "]", n);
5269
- if (F instanceof Error)
5270
- return F;
5320
+ var O = T(V, re, U, te, G + "[" + re + "]", n);
5321
+ if (O instanceof Error)
5322
+ return O;
5271
5323
  }
5272
5324
  return null;
5273
5325
  }
5274
5326
  return _(P);
5275
5327
  }
5276
- function k() {
5328
+ function w() {
5277
5329
  function T(P, q, L, U, te) {
5278
5330
  var G = P[q];
5279
5331
  if (!c(G)) {
5280
5332
  var V = W(G);
5281
- return new y("Invalid " + U + " `" + te + "` of type " + ("`" + V + "` supplied to `" + L + "`, expected a single ReactElement."));
5333
+ return new v("Invalid " + U + " `" + te + "` of type " + ("`" + V + "` supplied to `" + L + "`, expected a single ReactElement."));
5282
5334
  }
5283
5335
  return null;
5284
5336
  }
5285
5337
  return _(T);
5286
5338
  }
5287
- function w() {
5339
+ function b() {
5288
5340
  function T(P, q, L, U, te) {
5289
5341
  var G = P[q];
5290
5342
  if (!t.isValidElementType(G)) {
5291
5343
  var V = W(G);
5292
- return new y("Invalid " + U + " `" + te + "` of type " + ("`" + V + "` supplied to `" + L + "`, expected a single ReactElement type."));
5344
+ return new v("Invalid " + U + " `" + te + "` of type " + ("`" + V + "` supplied to `" + L + "`, expected a single ReactElement type."));
5293
5345
  }
5294
5346
  return null;
5295
5347
  }
5296
5348
  return _(T);
5297
5349
  }
5298
- function D(T) {
5350
+ function F(T) {
5299
5351
  function P(q, L, U, te, G) {
5300
5352
  if (!(q[L] instanceof T)) {
5301
5353
  var V = T.name || m, ee = K(q[L]);
5302
- return new y("Invalid " + te + " `" + G + "` of type " + ("`" + ee + "` supplied to `" + U + "`, expected ") + ("instance of `" + V + "`."));
5354
+ return new v("Invalid " + te + " `" + G + "` of type " + ("`" + ee + "` supplied to `" + U + "`, expected ") + ("instance of `" + V + "`."));
5303
5355
  }
5304
5356
  return null;
5305
5357
  }
@@ -5314,26 +5366,26 @@ function so() {
5314
5366
  for (var V = q[L], ee = 0; ee < T.length; ee++)
5315
5367
  if (g(V, T[ee]))
5316
5368
  return null;
5317
- var re = JSON.stringify(T, function(oe, A) {
5318
- var ve = Z(A);
5319
- return ve === "symbol" ? String(A) : A;
5369
+ var re = JSON.stringify(T, function(oe, D) {
5370
+ var ve = Z(D);
5371
+ return ve === "symbol" ? String(D) : D;
5320
5372
  });
5321
- return new y("Invalid " + te + " `" + G + "` of value `" + String(V) + "` " + ("supplied to `" + U + "`, expected one of " + re + "."));
5373
+ return new v("Invalid " + te + " `" + G + "` of value `" + String(V) + "` " + ("supplied to `" + U + "`, expected one of " + re + "."));
5322
5374
  }
5323
5375
  return _(P);
5324
5376
  }
5325
5377
  function Q(T) {
5326
5378
  function P(q, L, U, te, G) {
5327
5379
  if (typeof T != "function")
5328
- return new y("Property `" + G + "` of component `" + U + "` has invalid PropType notation inside objectOf.");
5380
+ return new v("Property `" + G + "` of component `" + U + "` has invalid PropType notation inside objectOf.");
5329
5381
  var V = q[L], ee = W(V);
5330
5382
  if (ee !== "object")
5331
- return new y("Invalid " + te + " `" + G + "` of type " + ("`" + ee + "` supplied to `" + U + "`, expected an object."));
5383
+ return new v("Invalid " + te + " `" + G + "` of type " + ("`" + ee + "` supplied to `" + U + "`, expected an object."));
5332
5384
  for (var re in V)
5333
5385
  if (r(V, re)) {
5334
- var F = T(V, re, U, te, G + "." + re, n);
5335
- if (F instanceof Error)
5336
- return F;
5386
+ var O = T(V, re, U, te, G + "." + re, n);
5387
+ if (O instanceof Error)
5388
+ return O;
5337
5389
  }
5338
5390
  return null;
5339
5391
  }
@@ -5350,38 +5402,38 @@ function so() {
5350
5402
  ), o;
5351
5403
  }
5352
5404
  function L(U, te, G, V, ee) {
5353
- for (var re = [], F = 0; F < T.length; F++) {
5354
- var oe = T[F], A = oe(U, te, G, V, ee, n);
5355
- if (A == null)
5405
+ for (var re = [], O = 0; O < T.length; O++) {
5406
+ var oe = T[O], D = oe(U, te, G, V, ee, n);
5407
+ if (D == null)
5356
5408
  return null;
5357
- A.data && r(A.data, "expectedType") && re.push(A.data.expectedType);
5409
+ D.data && r(D.data, "expectedType") && re.push(D.data.expectedType);
5358
5410
  }
5359
5411
  var ve = re.length > 0 ? ", expected one of type [" + re.join(", ") + "]" : "";
5360
- return new y("Invalid " + V + " `" + ee + "` supplied to " + ("`" + G + "`" + ve + "."));
5412
+ return new v("Invalid " + V + " `" + ee + "` supplied to " + ("`" + G + "`" + ve + "."));
5361
5413
  }
5362
5414
  return _(L);
5363
5415
  }
5364
5416
  function $() {
5365
5417
  function T(P, q, L, U, te) {
5366
- return N(P[q]) ? null : new y("Invalid " + U + " `" + te + "` supplied to " + ("`" + L + "`, expected a ReactNode."));
5418
+ return N(P[q]) ? null : new v("Invalid " + U + " `" + te + "` supplied to " + ("`" + L + "`, expected a ReactNode."));
5367
5419
  }
5368
5420
  return _(T);
5369
5421
  }
5370
5422
  function C(T, P, q, L, U) {
5371
- return new y(
5423
+ return new v(
5372
5424
  (T || "React class") + ": " + P + " type `" + q + "." + L + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + U + "`."
5373
5425
  );
5374
5426
  }
5375
- function j(T) {
5427
+ function k(T) {
5376
5428
  function P(q, L, U, te, G) {
5377
5429
  var V = q[L], ee = W(V);
5378
5430
  if (ee !== "object")
5379
- return new y("Invalid " + te + " `" + G + "` of type `" + ee + "` " + ("supplied to `" + U + "`, expected `object`."));
5431
+ return new v("Invalid " + te + " `" + G + "` of type `" + ee + "` " + ("supplied to `" + U + "`, expected `object`."));
5380
5432
  for (var re in T) {
5381
- var F = T[re];
5382
- if (typeof F != "function")
5383
- return C(U, te, G, re, Z(F));
5384
- var oe = F(V, re, U, te, G + "." + re, n);
5433
+ var O = T[re];
5434
+ if (typeof O != "function")
5435
+ return C(U, te, G, re, Z(O));
5436
+ var oe = O(V, re, U, te, G + "." + re, n);
5385
5437
  if (oe)
5386
5438
  return oe;
5387
5439
  }
@@ -5389,24 +5441,24 @@ function so() {
5389
5441
  }
5390
5442
  return _(P);
5391
5443
  }
5392
- function x(T) {
5444
+ function j(T) {
5393
5445
  function P(q, L, U, te, G) {
5394
5446
  var V = q[L], ee = W(V);
5395
5447
  if (ee !== "object")
5396
- return new y("Invalid " + te + " `" + G + "` of type `" + ee + "` " + ("supplied to `" + U + "`, expected `object`."));
5448
+ return new v("Invalid " + te + " `" + G + "` of type `" + ee + "` " + ("supplied to `" + U + "`, expected `object`."));
5397
5449
  var re = e({}, q[L], T);
5398
- for (var F in re) {
5399
- var oe = T[F];
5400
- if (r(T, F) && typeof oe != "function")
5401
- return C(U, te, G, F, Z(oe));
5450
+ for (var O in re) {
5451
+ var oe = T[O];
5452
+ if (r(T, O) && typeof oe != "function")
5453
+ return C(U, te, G, O, Z(oe));
5402
5454
  if (!oe)
5403
- return new y(
5404
- "Invalid " + te + " `" + G + "` key `" + F + "` supplied to `" + U + "`.\nBad object: " + JSON.stringify(q[L], null, " ") + `
5455
+ return new v(
5456
+ "Invalid " + te + " `" + G + "` key `" + O + "` supplied to `" + U + "`.\nBad object: " + JSON.stringify(q[L], null, " ") + `
5405
5457
  Valid keys: ` + JSON.stringify(Object.keys(T), null, " ")
5406
5458
  );
5407
- var A = oe(V, F, U, te, G + "." + F, n);
5408
- if (A)
5409
- return A;
5459
+ var D = oe(V, O, U, te, G + "." + O, n);
5460
+ if (D)
5461
+ return D;
5410
5462
  }
5411
5463
  return null;
5412
5464
  }
@@ -5445,12 +5497,12 @@ Valid keys: ` + JSON.stringify(Object.keys(T), null, " ")
5445
5497
  return !1;
5446
5498
  }
5447
5499
  }
5448
- function O(T, P) {
5500
+ function A(T, P) {
5449
5501
  return T === "symbol" ? !0 : P ? P["@@toStringTag"] === "Symbol" || typeof Symbol == "function" && P instanceof Symbol : !1;
5450
5502
  }
5451
5503
  function W(T) {
5452
5504
  var P = typeof T;
5453
- return Array.isArray(T) ? "array" : T instanceof RegExp ? "object" : O(P, T) ? "symbol" : P;
5505
+ return Array.isArray(T) ? "array" : T instanceof RegExp ? "object" : A(P, T) ? "symbol" : P;
5454
5506
  }
5455
5507
  function Z(T) {
5456
5508
  if (typeof T > "u" || T === null)
@@ -5870,67 +5922,67 @@ var Zr = {
5870
5922
  delayInitialFocusTimer: void 0,
5871
5923
  // the most recent KeyboardEvent for the configured nav key (typically [SHIFT+]TAB), if any
5872
5924
  recentNavEvent: void 0
5873
- }, c, d = function(j, x, N) {
5874
- return j && j[x] !== void 0 ? j[x] : i[N || x];
5875
- }, l = function(j, x) {
5876
- var N = typeof (x == null ? void 0 : x.composedPath) == "function" ? x.composedPath() : void 0;
5877
- return o.containerGroups.findIndex(function(O) {
5878
- var W = O.container, Z = O.tabbableNodes;
5879
- return W.contains(j) || // fall back to explicit tabbable search which will take into consideration any
5925
+ }, c, d = function(k, j, N) {
5926
+ return k && k[j] !== void 0 ? k[j] : i[N || j];
5927
+ }, l = function(k, j) {
5928
+ var N = typeof (j == null ? void 0 : j.composedPath) == "function" ? j.composedPath() : void 0;
5929
+ return o.containerGroups.findIndex(function(A) {
5930
+ var W = A.container, Z = A.tabbableNodes;
5931
+ return W.contains(k) || // fall back to explicit tabbable search which will take into consideration any
5880
5932
  // web components if the `tabbableOptions.getShadowRoot` option was used for
5881
5933
  // the trap, enabling shadow DOM support in tabbable (`Node.contains()` doesn't
5882
5934
  // look inside web components even if open)
5883
5935
  (N == null ? void 0 : N.includes(W)) || Z.find(function(z) {
5884
- return z === j;
5936
+ return z === k;
5885
5937
  });
5886
5938
  });
5887
- }, u = function(j) {
5888
- var x = i[j];
5889
- if (typeof x == "function") {
5890
- for (var N = arguments.length, O = new Array(N > 1 ? N - 1 : 0), W = 1; W < N; W++)
5891
- O[W - 1] = arguments[W];
5892
- x = x.apply(void 0, O);
5893
- }
5894
- if (x === !0 && (x = void 0), !x) {
5895
- if (x === void 0 || x === !1)
5896
- return x;
5897
- throw new Error("`".concat(j, "` was specified but was not a node, or did not return a node"));
5898
- }
5899
- var Z = x;
5900
- if (typeof x == "string" && (Z = r.querySelector(x), !Z))
5901
- throw new Error("`".concat(j, "` as selector refers to no known node"));
5939
+ }, u = function(k) {
5940
+ var j = i[k];
5941
+ if (typeof j == "function") {
5942
+ for (var N = arguments.length, A = new Array(N > 1 ? N - 1 : 0), W = 1; W < N; W++)
5943
+ A[W - 1] = arguments[W];
5944
+ j = j.apply(void 0, A);
5945
+ }
5946
+ if (j === !0 && (j = void 0), !j) {
5947
+ if (j === void 0 || j === !1)
5948
+ return j;
5949
+ throw new Error("`".concat(k, "` was specified but was not a node, or did not return a node"));
5950
+ }
5951
+ var Z = j;
5952
+ if (typeof j == "string" && (Z = r.querySelector(j), !Z))
5953
+ throw new Error("`".concat(k, "` as selector refers to no known node"));
5902
5954
  return Z;
5903
5955
  }, f = function() {
5904
- var j = u("initialFocus");
5905
- if (j === !1)
5956
+ var k = u("initialFocus");
5957
+ if (k === !1)
5906
5958
  return !1;
5907
- if (j === void 0 || !qt(j, i.tabbableOptions))
5959
+ if (k === void 0 || !qt(k, i.tabbableOptions))
5908
5960
  if (l(r.activeElement) >= 0)
5909
- j = r.activeElement;
5961
+ k = r.activeElement;
5910
5962
  else {
5911
- var x = o.tabbableGroups[0], N = x && x.firstTabbableNode;
5912
- j = N || u("fallbackFocus");
5963
+ var j = o.tabbableGroups[0], N = j && j.firstTabbableNode;
5964
+ k = N || u("fallbackFocus");
5913
5965
  }
5914
- if (!j)
5966
+ if (!k)
5915
5967
  throw new Error("Your focus-trap needs to have at least one focusable element");
5916
- return j;
5968
+ return k;
5917
5969
  }, m = function() {
5918
- if (o.containerGroups = o.containers.map(function(j) {
5919
- var x = Ia(j, i.tabbableOptions), N = La(j, i.tabbableOptions), O = x.length > 0 ? x[0] : void 0, W = x.length > 0 ? x[x.length - 1] : void 0, Z = N.find(function(T) {
5970
+ if (o.containerGroups = o.containers.map(function(k) {
5971
+ var j = Ia(k, i.tabbableOptions), N = La(k, i.tabbableOptions), A = j.length > 0 ? j[0] : void 0, W = j.length > 0 ? j[j.length - 1] : void 0, Z = N.find(function(T) {
5920
5972
  return We(T);
5921
5973
  }), z = N.slice().reverse().find(function(T) {
5922
5974
  return We(T);
5923
- }), K = !!x.find(function(T) {
5975
+ }), K = !!j.find(function(T) {
5924
5976
  return Ie(T) > 0;
5925
5977
  });
5926
5978
  return {
5927
- container: j,
5928
- tabbableNodes: x,
5979
+ container: k,
5980
+ tabbableNodes: j,
5929
5981
  focusableNodes: N,
5930
5982
  /** True if at least one node with positive `tabindex` was found in this container. */
5931
5983
  posTabIndexesFound: K,
5932
5984
  /** First tabbable node in container, __tabindex__ order; `undefined` if none. */
5933
- firstTabbableNode: O,
5985
+ firstTabbableNode: A,
5934
5986
  /** Last tabbable node in container, __tabindex__ order; `undefined` if none. */
5935
5987
  lastTabbableNode: W,
5936
5988
  // NOTE: DOM order is NOT NECESSARILY "document position" order, but figuring that out
@@ -5953,75 +6005,75 @@ var Zr = {
5953
6005
  * @returns {HTMLElement|undefined} The next tabbable node, if any.
5954
6006
  */
5955
6007
  nextTabbableNode: function(P) {
5956
- var q = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !0, L = x.indexOf(P);
6008
+ var q = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !0, L = j.indexOf(P);
5957
6009
  return L < 0 ? q ? N.slice(N.indexOf(P) + 1).find(function(U) {
5958
6010
  return We(U);
5959
6011
  }) : N.slice(0, N.indexOf(P)).reverse().find(function(U) {
5960
6012
  return We(U);
5961
- }) : x[L + (q ? 1 : -1)];
6013
+ }) : j[L + (q ? 1 : -1)];
5962
6014
  }
5963
6015
  };
5964
- }), o.tabbableGroups = o.containerGroups.filter(function(j) {
5965
- return j.tabbableNodes.length > 0;
6016
+ }), o.tabbableGroups = o.containerGroups.filter(function(k) {
6017
+ return k.tabbableNodes.length > 0;
5966
6018
  }), o.tabbableGroups.length <= 0 && !u("fallbackFocus"))
5967
6019
  throw new Error("Your focus-trap must have at least one container with at least one tabbable node in it at all times");
5968
- if (o.containerGroups.find(function(j) {
5969
- return j.posTabIndexesFound;
6020
+ if (o.containerGroups.find(function(k) {
6021
+ return k.posTabIndexesFound;
5970
6022
  }) && o.containerGroups.length > 1)
5971
6023
  throw new Error("At least one node with a positive tabindex was found in one of your focus-trap's multiple containers. Positive tabindexes are only supported in single-container focus-traps.");
5972
- }, p = function C(j) {
5973
- var x = j.activeElement;
5974
- if (x)
5975
- return x.shadowRoot && x.shadowRoot.activeElement !== null ? C(x.shadowRoot) : x;
5976
- }, g = function C(j) {
5977
- if (j !== !1 && j !== p(document)) {
5978
- if (!j || !j.focus) {
6024
+ }, p = function C(k) {
6025
+ var j = k.activeElement;
6026
+ if (j)
6027
+ return j.shadowRoot && j.shadowRoot.activeElement !== null ? C(j.shadowRoot) : j;
6028
+ }, g = function C(k) {
6029
+ if (k !== !1 && k !== p(document)) {
6030
+ if (!k || !k.focus) {
5979
6031
  C(f());
5980
6032
  return;
5981
6033
  }
5982
- j.focus({
6034
+ k.focus({
5983
6035
  preventScroll: !!i.preventScroll
5984
- }), o.mostRecentlyFocusedNode = j, No(j) && j.select();
5985
- }
5986
- }, y = function(j) {
5987
- var x = u("setReturnFocus", j);
5988
- return x || (x === !1 ? !1 : j);
5989
- }, _ = function(j) {
5990
- var x = j.target, N = j.event, O = j.isBackward, W = O === void 0 ? !1 : O;
5991
- x = x || Mt(N), m();
6036
+ }), o.mostRecentlyFocusedNode = k, No(k) && k.select();
6037
+ }
6038
+ }, v = function(k) {
6039
+ var j = u("setReturnFocus", k);
6040
+ return j || (j === !1 ? !1 : k);
6041
+ }, _ = function(k) {
6042
+ var j = k.target, N = k.event, A = k.isBackward, W = A === void 0 ? !1 : A;
6043
+ j = j || Mt(N), m();
5992
6044
  var Z = null;
5993
6045
  if (o.tabbableGroups.length > 0) {
5994
- var z = l(x, N), K = z >= 0 ? o.containerGroups[z] : void 0;
6046
+ var z = l(j, N), K = z >= 0 ? o.containerGroups[z] : void 0;
5995
6047
  if (z < 0)
5996
6048
  W ? Z = o.tabbableGroups[o.tabbableGroups.length - 1].lastTabbableNode : Z = o.tabbableGroups[0].firstTabbableNode;
5997
6049
  else if (W) {
5998
6050
  var T = Vr(o.tabbableGroups, function(G) {
5999
6051
  var V = G.firstTabbableNode;
6000
- return x === V;
6052
+ return j === V;
6001
6053
  });
6002
- if (T < 0 && (K.container === x || qt(x, i.tabbableOptions) && !We(x, i.tabbableOptions) && !K.nextTabbableNode(x, !1)) && (T = z), T >= 0) {
6054
+ if (T < 0 && (K.container === j || qt(j, i.tabbableOptions) && !We(j, i.tabbableOptions) && !K.nextTabbableNode(j, !1)) && (T = z), T >= 0) {
6003
6055
  var P = T === 0 ? o.tabbableGroups.length - 1 : T - 1, q = o.tabbableGroups[P];
6004
- Z = Ie(x) >= 0 ? q.lastTabbableNode : q.lastDomTabbableNode;
6056
+ Z = Ie(j) >= 0 ? q.lastTabbableNode : q.lastDomTabbableNode;
6005
6057
  } else
6006
- vt(N) || (Z = K.nextTabbableNode(x, !1));
6058
+ vt(N) || (Z = K.nextTabbableNode(j, !1));
6007
6059
  } else {
6008
6060
  var L = Vr(o.tabbableGroups, function(G) {
6009
6061
  var V = G.lastTabbableNode;
6010
- return x === V;
6062
+ return j === V;
6011
6063
  });
6012
- if (L < 0 && (K.container === x || qt(x, i.tabbableOptions) && !We(x, i.tabbableOptions) && !K.nextTabbableNode(x)) && (L = z), L >= 0) {
6064
+ if (L < 0 && (K.container === j || qt(j, i.tabbableOptions) && !We(j, i.tabbableOptions) && !K.nextTabbableNode(j)) && (L = z), L >= 0) {
6013
6065
  var U = L === o.tabbableGroups.length - 1 ? 0 : L + 1, te = o.tabbableGroups[U];
6014
- Z = Ie(x) >= 0 ? te.firstTabbableNode : te.firstDomTabbableNode;
6066
+ Z = Ie(j) >= 0 ? te.firstTabbableNode : te.firstDomTabbableNode;
6015
6067
  } else
6016
- vt(N) || (Z = K.nextTabbableNode(x));
6068
+ vt(N) || (Z = K.nextTabbableNode(j));
6017
6069
  }
6018
6070
  } else
6019
6071
  Z = u("fallbackFocus");
6020
6072
  return Z;
6021
- }, v = function(j) {
6022
- var x = Mt(j);
6023
- if (!(l(x, j) >= 0)) {
6024
- if (lt(i.clickOutsideDeactivates, j)) {
6073
+ }, y = function(k) {
6074
+ var j = Mt(k);
6075
+ if (!(l(j, k) >= 0)) {
6076
+ if (lt(i.clickOutsideDeactivates, k)) {
6025
6077
  c.deactivate({
6026
6078
  // NOTE: by setting `returnFocus: false`, deactivate() will do nothing,
6027
6079
  // which will result in the outside click setting focus to the node
@@ -6033,15 +6085,15 @@ var Zr = {
6033
6085
  });
6034
6086
  return;
6035
6087
  }
6036
- lt(i.allowOutsideClick, j) || j.preventDefault();
6088
+ lt(i.allowOutsideClick, k) || k.preventDefault();
6037
6089
  }
6038
- }, b = function(j) {
6039
- var x = Mt(j), N = l(x, j) >= 0;
6040
- if (N || x instanceof Document)
6041
- N && (o.mostRecentlyFocusedNode = x);
6090
+ }, x = function(k) {
6091
+ var j = Mt(k), N = l(j, k) >= 0;
6092
+ if (N || j instanceof Document)
6093
+ N && (o.mostRecentlyFocusedNode = j);
6042
6094
  else {
6043
- j.stopImmediatePropagation();
6044
- var O, W = !0;
6095
+ k.stopImmediatePropagation();
6096
+ var A, W = !0;
6045
6097
  if (o.mostRecentlyFocusedNode)
6046
6098
  if (Ie(o.mostRecentlyFocusedNode) > 0) {
6047
6099
  var Z = l(o.mostRecentlyFocusedNode), z = o.containerGroups[Z].tabbableNodes;
@@ -6049,7 +6101,7 @@ var Zr = {
6049
6101
  var K = z.findIndex(function(T) {
6050
6102
  return T === o.mostRecentlyFocusedNode;
6051
6103
  });
6052
- K >= 0 && (i.isKeyForward(o.recentNavEvent) ? K + 1 < z.length && (O = z[K + 1], W = !1) : K - 1 >= 0 && (O = z[K - 1], W = !1));
6104
+ K >= 0 && (i.isKeyForward(o.recentNavEvent) ? K + 1 < z.length && (A = z[K + 1], W = !1) : K - 1 >= 0 && (A = z[K - 1], W = !1));
6053
6105
  }
6054
6106
  } else
6055
6107
  o.containerGroups.some(function(T) {
@@ -6059,62 +6111,62 @@ var Zr = {
6059
6111
  }) || (W = !1);
6060
6112
  else
6061
6113
  W = !1;
6062
- W && (O = _({
6114
+ W && (A = _({
6063
6115
  // move FROM the MRU node, not event-related node (which will be the node that is
6064
6116
  // outside the trap causing the focus escape we're trying to fix)
6065
6117
  target: o.mostRecentlyFocusedNode,
6066
6118
  isBackward: i.isKeyBackward(o.recentNavEvent)
6067
- })), g(O || o.mostRecentlyFocusedNode || f());
6119
+ })), g(A || o.mostRecentlyFocusedNode || f());
6068
6120
  }
6069
6121
  o.recentNavEvent = void 0;
6070
- }, E = function(j) {
6071
- var x = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !1;
6072
- o.recentNavEvent = j;
6122
+ }, E = function(k) {
6123
+ var j = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !1;
6124
+ o.recentNavEvent = k;
6073
6125
  var N = _({
6074
- event: j,
6075
- isBackward: x
6126
+ event: k,
6127
+ isBackward: j
6076
6128
  });
6077
- N && (vt(j) && j.preventDefault(), g(N));
6078
- }, k = function(j) {
6079
- if (Po(j) && lt(i.escapeDeactivates, j) !== !1) {
6080
- j.preventDefault(), c.deactivate();
6129
+ N && (vt(k) && k.preventDefault(), g(N));
6130
+ }, w = function(k) {
6131
+ if (Po(k) && lt(i.escapeDeactivates, k) !== !1) {
6132
+ k.preventDefault(), c.deactivate();
6081
6133
  return;
6082
6134
  }
6083
- (i.isKeyForward(j) || i.isKeyBackward(j)) && E(j, i.isKeyBackward(j));
6084
- }, w = function(j) {
6085
- var x = Mt(j);
6086
- l(x, j) >= 0 || lt(i.clickOutsideDeactivates, j) || lt(i.allowOutsideClick, j) || (j.preventDefault(), j.stopImmediatePropagation());
6087
- }, D = function() {
6135
+ (i.isKeyForward(k) || i.isKeyBackward(k)) && E(k, i.isKeyBackward(k));
6136
+ }, b = function(k) {
6137
+ var j = Mt(k);
6138
+ l(j, k) >= 0 || lt(i.clickOutsideDeactivates, k) || lt(i.allowOutsideClick, k) || (k.preventDefault(), k.stopImmediatePropagation());
6139
+ }, F = function() {
6088
6140
  if (o.active)
6089
6141
  return Zr.activateTrap(s, c), o.delayInitialFocusTimer = i.delayInitialFocus ? Hr(function() {
6090
6142
  g(f());
6091
- }) : g(f()), r.addEventListener("focusin", b, !0), r.addEventListener("mousedown", v, {
6143
+ }) : g(f()), r.addEventListener("focusin", x, !0), r.addEventListener("mousedown", y, {
6092
6144
  capture: !0,
6093
6145
  passive: !1
6094
- }), r.addEventListener("touchstart", v, {
6146
+ }), r.addEventListener("touchstart", y, {
6095
6147
  capture: !0,
6096
6148
  passive: !1
6097
- }), r.addEventListener("click", w, {
6149
+ }), r.addEventListener("click", b, {
6098
6150
  capture: !0,
6099
6151
  passive: !1
6100
- }), r.addEventListener("keydown", k, {
6152
+ }), r.addEventListener("keydown", w, {
6101
6153
  capture: !0,
6102
6154
  passive: !1
6103
6155
  }), c;
6104
6156
  }, R = function() {
6105
6157
  if (o.active)
6106
- return r.removeEventListener("focusin", b, !0), r.removeEventListener("mousedown", v, !0), r.removeEventListener("touchstart", v, !0), r.removeEventListener("click", w, !0), r.removeEventListener("keydown", k, !0), c;
6107
- }, Q = function(j) {
6108
- var x = j.some(function(N) {
6109
- var O = Array.from(N.removedNodes);
6110
- return O.some(function(W) {
6158
+ return r.removeEventListener("focusin", x, !0), r.removeEventListener("mousedown", y, !0), r.removeEventListener("touchstart", y, !0), r.removeEventListener("click", b, !0), r.removeEventListener("keydown", w, !0), c;
6159
+ }, Q = function(k) {
6160
+ var j = k.some(function(N) {
6161
+ var A = Array.from(N.removedNodes);
6162
+ return A.some(function(W) {
6111
6163
  return W === o.mostRecentlyFocusedNode;
6112
6164
  });
6113
6165
  });
6114
- x && g(f());
6166
+ j && g(f());
6115
6167
  }, B = typeof window < "u" && "MutationObserver" in window ? new MutationObserver(Q) : void 0, $ = function() {
6116
- B && (B.disconnect(), o.active && !o.paused && o.containers.map(function(j) {
6117
- B.observe(j, {
6168
+ B && (B.disconnect(), o.active && !o.paused && o.containers.map(function(k) {
6169
+ B.observe(k, {
6118
6170
  subtree: !0,
6119
6171
  childList: !0
6120
6172
  });
@@ -6127,49 +6179,49 @@ var Zr = {
6127
6179
  get paused() {
6128
6180
  return o.paused;
6129
6181
  },
6130
- activate: function(j) {
6182
+ activate: function(k) {
6131
6183
  if (o.active)
6132
6184
  return this;
6133
- var x = d(j, "onActivate"), N = d(j, "onPostActivate"), O = d(j, "checkCanFocusTrap");
6134
- O || m(), o.active = !0, o.paused = !1, o.nodeFocusedBeforeActivation = r.activeElement, x == null || x();
6185
+ var j = d(k, "onActivate"), N = d(k, "onPostActivate"), A = d(k, "checkCanFocusTrap");
6186
+ A || m(), o.active = !0, o.paused = !1, o.nodeFocusedBeforeActivation = r.activeElement, j == null || j();
6135
6187
  var W = function() {
6136
- O && m(), D(), $(), N == null || N();
6188
+ A && m(), F(), $(), N == null || N();
6137
6189
  };
6138
- return O ? (O(o.containers.concat()).then(W, W), this) : (W(), this);
6190
+ return A ? (A(o.containers.concat()).then(W, W), this) : (W(), this);
6139
6191
  },
6140
- deactivate: function(j) {
6192
+ deactivate: function(k) {
6141
6193
  if (!o.active)
6142
6194
  return this;
6143
- var x = zr({
6195
+ var j = zr({
6144
6196
  onDeactivate: i.onDeactivate,
6145
6197
  onPostDeactivate: i.onPostDeactivate,
6146
6198
  checkCanReturnFocus: i.checkCanReturnFocus
6147
- }, j);
6199
+ }, k);
6148
6200
  clearTimeout(o.delayInitialFocusTimer), o.delayInitialFocusTimer = void 0, R(), o.active = !1, o.paused = !1, $(), Zr.deactivateTrap(s, c);
6149
- var N = d(x, "onDeactivate"), O = d(x, "onPostDeactivate"), W = d(x, "checkCanReturnFocus"), Z = d(x, "returnFocus", "returnFocusOnDeactivate");
6201
+ var N = d(j, "onDeactivate"), A = d(j, "onPostDeactivate"), W = d(j, "checkCanReturnFocus"), Z = d(j, "returnFocus", "returnFocusOnDeactivate");
6150
6202
  N == null || N();
6151
6203
  var z = function() {
6152
6204
  Hr(function() {
6153
- Z && g(y(o.nodeFocusedBeforeActivation)), O == null || O();
6205
+ Z && g(v(o.nodeFocusedBeforeActivation)), A == null || A();
6154
6206
  });
6155
6207
  };
6156
- return Z && W ? (W(y(o.nodeFocusedBeforeActivation)).then(z, z), this) : (z(), this);
6208
+ return Z && W ? (W(v(o.nodeFocusedBeforeActivation)).then(z, z), this) : (z(), this);
6157
6209
  },
6158
- pause: function(j) {
6210
+ pause: function(k) {
6159
6211
  if (o.paused || !o.active)
6160
6212
  return this;
6161
- var x = d(j, "onPause"), N = d(j, "onPostPause");
6162
- return o.paused = !0, x == null || x(), R(), $(), N == null || N(), this;
6213
+ var j = d(k, "onPause"), N = d(k, "onPostPause");
6214
+ return o.paused = !0, j == null || j(), R(), $(), N == null || N(), this;
6163
6215
  },
6164
- unpause: function(j) {
6216
+ unpause: function(k) {
6165
6217
  if (!o.paused || !o.active)
6166
6218
  return this;
6167
- var x = d(j, "onUnpause"), N = d(j, "onPostUnpause");
6168
- return o.paused = !1, x == null || x(), m(), D(), $(), N == null || N(), this;
6219
+ var j = d(k, "onUnpause"), N = d(k, "onPostUnpause");
6220
+ return o.paused = !1, j == null || j(), m(), F(), $(), N == null || N(), this;
6169
6221
  },
6170
- updateContainerElements: function(j) {
6171
- var x = [].concat(j).filter(Boolean);
6172
- return o.containers = x.map(function(N) {
6222
+ updateContainerElements: function(k) {
6223
+ var j = [].concat(k).filter(Boolean);
6224
+ return o.containers = j.map(function(N) {
6173
6225
  return typeof N == "string" ? r.querySelector(N) : N;
6174
6226
  }), o.active && m(), $(), this;
6175
6227
  }
@@ -6534,19 +6586,19 @@ const an = ({
6534
6586
  className: u = "",
6535
6587
  gtmContext: f = "Modal"
6536
6588
  }) => {
6537
- const m = H(), [p, g] = X(e), y = (b) => {
6538
- b.key === "Escape" && _(!1);
6589
+ const m = H(), [p, g] = X(e), v = (x) => {
6590
+ x.key === "Escape" && _(!1);
6539
6591
  };
6540
- ae(() => (window.addEventListener("keyup", y), () => {
6541
- window.removeEventListener("keyup", y);
6592
+ ae(() => (window.addEventListener("keyup", v), () => {
6593
+ window.removeEventListener("keyup", v);
6542
6594
  }));
6543
- const _ = (b) => {
6544
- g(b), b ? (s(), document.body.classList.add("has-overlay")) : (i(), document.body.classList.remove("has-overlay"));
6595
+ const _ = (x) => {
6596
+ g(x), x ? (s(), document.body.classList.add("has-overlay")) : (i(), document.body.classList.remove("has-overlay"));
6545
6597
  };
6546
6598
  ae(() => {
6547
6599
  _(e);
6548
6600
  }, [e]);
6549
- const v = r ? { "--max-width": `${r / 16}rem` } : {};
6601
+ const y = r ? { "--max-width": `${r / 16}rem` } : {};
6550
6602
  return /* @__PURE__ */ a.jsx("div", { className: S("overlay", { open: p }), role: "dialog", children: /* @__PURE__ */ a.jsx(
6551
6603
  qa,
6552
6604
  {
@@ -6555,7 +6607,7 @@ const an = ({
6555
6607
  "has-max-width": r
6556
6608
  }),
6557
6609
  hidden: !p,
6558
- style: v,
6610
+ style: y,
6559
6611
  children: e && /* @__PURE__ */ a.jsx(Jo, { children: /* @__PURE__ */ a.jsxs("div", { className: "overlay-content", children: [
6560
6612
  /* @__PURE__ */ a.jsxs("div", { className: "top", children: [
6561
6613
  c && /* @__PURE__ */ a.jsx("h2", { className: "modal-title", children: c }),
@@ -6786,17 +6838,17 @@ const Xl = ({ members: t }) => {
6786
6838
  gtmEvent: "learning-hub"
6787
6839
  }
6788
6840
  }, tc = ({ data: t, cta: e, link: n, gtmContext: r }) => {
6789
- var y;
6841
+ var v, _;
6790
6842
  const s = H(), [i, o] = X({
6791
6843
  loading: !1,
6792
6844
  registered: t.registered || !1
6793
6845
  });
6794
6846
  ae(() => {
6795
- t.registered && o((_) => ({ ..._, registered: !0 }));
6847
+ t.registered && o((y) => ({ ...y, registered: !0 }));
6796
6848
  }, [t.registered]);
6797
6849
  const { customLinkText: c, startDate: d, dateHasPassed: l, pill: u, slug: f } = t, m = t.contentType;
6798
6850
  let p = "";
6799
- if ((y = Kt[m]) != null && y.gtmEvent && (p = Kt[m].gtmEvent), d && l)
6851
+ if ((v = Kt[m]) != null && v.gtmEvent && (p = Kt[m].gtmEvent), d && l)
6800
6852
  return n ? /* @__PURE__ */ a.jsx(
6801
6853
  "a",
6802
6854
  {
@@ -6820,32 +6872,32 @@ const Xl = ({ members: t }) => {
6820
6872
  children: c || s.formatMessage({ id: "card_cta_people" })
6821
6873
  }
6822
6874
  ) : null;
6823
- const g = ["microcourse", "event"];
6875
+ const g = ["communityPage", "microcourse", "event"];
6824
6876
  if (e && e.onClick && g.includes(m) && u !== "premium") {
6825
- const _ = i.loading || i.registered, v = async (b) => {
6826
- if (b.preventDefault(), b.stopPropagation(), !(_ || !e || !e.onClick)) {
6827
- o((E) => ({ ...E, loading: !0 }));
6877
+ const y = i.loading || i.registered || ((_ = t == null ? void 0 : t.members) == null ? void 0 : _.isMember), x = async (E) => {
6878
+ if (E.preventDefault(), E.stopPropagation(), !(y || !e || !e.onClick)) {
6879
+ o((w) => ({ ...w, loading: !0 }));
6828
6880
  try {
6829
- const E = await e.onClick(t);
6830
- o(E === "success" ? () => ({ registered: !0, loading: !1 }) : (k) => ({ ...k, loading: !1 }));
6881
+ const w = await e.onClick(t);
6882
+ o(w === "success" ? () => ({ registered: !0, loading: !1 }) : (b) => ({ ...b, loading: !1 }));
6831
6883
  } catch {
6832
- o((k) => ({ ...k, loading: !1 }));
6884
+ o((b) => ({ ...b, loading: !1 }));
6833
6885
  }
6834
6886
  }
6835
6887
  };
6836
- return /* @__PURE__ */ a.jsx("p", { className: "cta-wrapper", children: /* @__PURE__ */ a.jsx(
6888
+ return /* @__PURE__ */ a.jsx("p", { className: `cta-wrapper ${(t == null ? void 0 : t.members) && "has-member-section"}`, children: /* @__PURE__ */ a.jsx(
6837
6889
  se,
6838
6890
  {
6839
- onClick: v,
6891
+ onClick: x,
6840
6892
  className: "gtm-trackable",
6841
6893
  size: "small",
6842
6894
  styling: { fullWidth: !0 },
6843
- disabled: _,
6895
+ disabled: y,
6844
6896
  "data-gtm-event-context": `${r}Page-${m}: ${f}`,
6845
6897
  "data-gtm-event-type": `${r}-${m}-register-click`,
6846
6898
  "data-testid": "in-card-button",
6847
6899
  children: c || s.formatMessage({
6848
- id: `card_cta_${m}${_ ? `_${i.loading ? "loading" : "done"}` : ""}`
6900
+ id: `card_cta_${m}${y ? `_${i.loading ? "loading" : "done"}` : ""}`
6849
6901
  })
6850
6902
  }
6851
6903
  ) });
@@ -6890,43 +6942,43 @@ const nc = {
6890
6942
  text: c.formatMessage({ id: `card_cta_${e.contentType}` }),
6891
6943
  onClick: o
6892
6944
  });
6893
- const { contentType: y } = m;
6894
- if (!y || !Kt[y])
6945
+ const { contentType: v } = m;
6946
+ if (!v || !Kt[v])
6895
6947
  return /* @__PURE__ */ a.jsx(Se, { element: "li", className: "card-wrapper" });
6896
6948
  const {
6897
6949
  basePath: _ = "",
6898
- className: v,
6899
- length: b,
6950
+ className: y,
6951
+ length: x,
6900
6952
  gtmEvent: E
6901
- } = Kt[y];
6902
- let k = m.slug ? `${_}${m.slug}` : !1;
6903
- m.slug && (m.slug.slice(0, 4) === "http" || m.slug.slice(0, 2) === "//" || m.slug.slice(0, 6) === "mailto" || m.slug.slice(0, 3) === "tel") && (k = m.slug);
6904
- const w = { ...nc, ...b };
6905
- let D = { className: "card" };
6906
- return k && (D = {
6907
- href: k,
6953
+ } = Kt[v];
6954
+ let w = m.slug ? `${_}${m.slug}` : !1;
6955
+ m.slug && (m.slug.slice(0, 4) === "http" || m.slug.slice(0, 2) === "//" || m.slug.slice(0, 6) === "mailto" || m.slug.slice(0, 3) === "tel") && (w = m.slug);
6956
+ const b = { ...nc, ...x };
6957
+ let F = { className: "card" };
6958
+ return w && (F = {
6959
+ href: w,
6908
6960
  className: "card gtm-trackable",
6909
6961
  "data-gtm-event-context": `${s}-CarouselCard`,
6910
6962
  "data-gtm-event-type": `${E}-click`,
6911
6963
  "data-testid": "link"
6912
- }, m.openInNewTab && (D.target = "_blank")), /* @__PURE__ */ a.jsx(
6964
+ }, m.openInNewTab && (F.target = "_blank")), /* @__PURE__ */ a.jsx(
6913
6965
  "li",
6914
6966
  {
6915
- className: S("card-wrapper text-medium", v, i, {
6916
- "has-link": k,
6917
- "no-link": !k,
6967
+ className: S("card-wrapper text-medium", y, i, {
6968
+ "has-link": w,
6969
+ "no-link": !w,
6918
6970
  "has-image": m.banner
6919
6971
  }),
6920
- "data-testid": `${y}-card`,
6972
+ "data-testid": `${v}-card`,
6921
6973
  children: Y.createElement(
6922
- k ? "a" : "div",
6923
- D,
6974
+ w ? "a" : "div",
6975
+ F,
6924
6976
  /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
6925
6977
  /* @__PURE__ */ a.jsx(
6926
6978
  oi,
6927
6979
  {
6928
6980
  className: "card-label",
6929
- contentType: y,
6981
+ contentType: v,
6930
6982
  customIcon: m.customIcon,
6931
6983
  customLabel: m.customLabel
6932
6984
  }
@@ -6943,7 +6995,7 @@ const nc = {
6943
6995
  m.banner ? /* @__PURE__ */ a.jsxs("p", { className: "img", children: [
6944
6996
  m.registered && /* @__PURE__ */ a.jsx(ht, { size: "small", variant: "registered", children: c.formatMessage({ id: "card_registered" }) }),
6945
6997
  /* @__PURE__ */ a.jsx(Tt, { image: m.banner })
6946
- ] }) : v === "people" ? /* @__PURE__ */ a.jsx(
6998
+ ] }) : y === "people" ? /* @__PURE__ */ a.jsx(
6947
6999
  Ye,
6948
7000
  {
6949
7001
  name: m.title || "",
@@ -6957,24 +7009,24 @@ const nc = {
6957
7009
  contributors: { data: m.contributors },
6958
7010
  styling: {
6959
7011
  size: "small",
6960
- showGap: v !== "question",
7012
+ showGap: y !== "question",
6961
7013
  showText: !0
6962
7014
  },
6963
- multipleText: ["event", "solutionArticle"].includes(y) ? c.formatMessage({ id: `card_contributors_${y}` }) : void 0,
7015
+ multipleText: ["event", "solutionArticle"].includes(v) ? c.formatMessage({ id: `card_contributors_${v}` }) : void 0,
6964
7016
  "data-testid": "contributors"
6965
7017
  }
6966
7018
  ),
6967
7019
  m.partner && /* @__PURE__ */ a.jsx("p", { className: "partners", "data-testid": "partners", children: m.partner.length > 1 ? c.formatMessage(
6968
7020
  { id: "card_partner" },
6969
7021
  { partner: m.partner[0], number: m.partner.length - 1 }
6970
- ) : et(m.partner[0], w.partner) }),
7022
+ ) : et(m.partner[0], b.partner) }),
6971
7023
  /* Text */
6972
7024
  ["title", "text", "secondaryText"].map(($) => {
6973
7025
  const C = m[$];
6974
7026
  if (!C)
6975
7027
  return null;
6976
- const j = Ws($);
6977
- return /* @__PURE__ */ a.jsx("p", { className: j, "data-testid": j, children: et(C, w[$]) }, $);
7028
+ const k = Ws($);
7029
+ return /* @__PURE__ */ a.jsx("p", { className: k, "data-testid": k, children: et(C, b[$]) }, $);
6978
7030
  }),
6979
7031
  (m == null ? void 0 : m.members) && /* @__PURE__ */ a.jsxs("span", { className: "member-information", children: [
6980
7032
  ((R = m == null ? void 0 : m.members) == null ? void 0 : R.isMember) && /* @__PURE__ */ a.jsx(
@@ -6994,8 +7046,8 @@ const nc = {
6994
7046
  { count: m == null ? void 0 : m.members.count }
6995
7047
  ) })
6996
7048
  ] }),
6997
- /* @__PURE__ */ a.jsx(ec, { type: v || "", data: m }),
6998
- /* @__PURE__ */ a.jsx(tc, { data: m, cta: r, link: k || "", gtmContext: s })
7049
+ /* @__PURE__ */ a.jsx(ec, { type: y || "", data: m }),
7050
+ /* @__PURE__ */ a.jsx(tc, { data: m, cta: r, link: w || "", gtmContext: s })
6999
7051
  ] })
7000
7052
  )
7001
7053
  }
@@ -7061,53 +7113,53 @@ const ic = ({
7061
7113
  }), { cardsPerPage: f, isLoading: m } = l, [p, g] = X({
7062
7114
  currentPage: 0,
7063
7115
  loadedPages: [0]
7064
- }), { currentPage: y, loadedPages: _ } = p, v = e.length, b = Math.ceil(v / f), E = pe(null), k = jt(!0, !0, E == null ? void 0 : E.current);
7116
+ }), { currentPage: v, loadedPages: _ } = p, y = e.length, x = Math.ceil(y / f), E = pe(null), w = jt(!0, !0, E == null ? void 0 : E.current);
7065
7117
  ae(() => {
7066
7118
  let $ = 1;
7067
- k && (k >= En.fourCards ? $ = 4 : k >= En.threeCards ? $ = 3 : k >= En.twoCards && ($ = 2), $ > v && ($ = v)), u((C) => ({
7119
+ w && (w >= En.fourCards ? $ = 4 : w >= En.threeCards ? $ = 3 : w >= En.twoCards && ($ = 2), $ > y && ($ = y)), u((C) => ({
7068
7120
  ...C,
7069
7121
  cardsPerPage: $,
7070
7122
  isLoading: !1
7071
7123
  }));
7072
- }, [k, v]);
7073
- const w = ($ = "next") => {
7074
- let C = y;
7124
+ }, [w, y]);
7125
+ const b = ($ = "next") => {
7126
+ let C = v;
7075
7127
  if (typeof $ == "string")
7076
7128
  if ($ === "next")
7077
- if (y < b - 1)
7078
- C = y + 1;
7129
+ if (v < x - 1)
7130
+ C = v + 1;
7079
7131
  else
7080
7132
  return;
7081
- else if (y > 0)
7082
- C = y - 1;
7133
+ else if (v > 0)
7134
+ C = v - 1;
7083
7135
  else
7084
7136
  return;
7085
7137
  else
7086
7138
  C = $;
7087
- g((j) => ({
7088
- ...j,
7139
+ g((k) => ({
7140
+ ...k,
7089
7141
  currentPage: C,
7090
7142
  loadedPages: [.../* @__PURE__ */ new Set([..._, C])]
7091
7143
  }));
7092
- }, D = ($) => {
7144
+ }, F = ($) => {
7093
7145
  Ft = $.touches[0].clientX;
7094
7146
  }, R = ($) => {
7095
7147
  if (Ft === null)
7096
7148
  return;
7097
- const C = $.touches[0].clientX, j = Ft - C;
7098
- j > 5 ? w("next") : j < -5 && w("previous"), Ft = null;
7149
+ const C = $.touches[0].clientX, k = Ft - C;
7150
+ k > 5 ? b("next") : k < -5 && b("previous"), Ft = null;
7099
7151
  }, Q = {
7100
- "--width": `${k || 0}px`,
7101
- "--total-cards": v,
7152
+ "--width": `${w || 0}px`,
7153
+ "--total-cards": y,
7102
7154
  "--cards-per-page": f,
7103
- "--page": y
7155
+ "--page": v
7104
7156
  };
7105
7157
  if (m)
7106
7158
  return /* @__PURE__ */ a.jsx(wa, { layout: `carousel${s ? "-with-title" : ""}` });
7107
7159
  const B = ($, C) => {
7108
- var x;
7109
- let j = null;
7110
- return (x = $ == null ? void 0 : $.sys) != null && x.id ? j = `card-${$.sys.id}` : $ != null && $.slug ? j = `card-${$.slug}` : [n[C], $.contentType].includes("customCard") && (j = `card-${window.btoa(`${$.title} ${$.createdAt}`)}-${C}`), j;
7160
+ var j;
7161
+ let k = null;
7162
+ return (j = $ == null ? void 0 : $.sys) != null && j.id ? k = `card-${$.sys.id}` : $ != null && $.slug ? k = `card-${$.slug}` : [n[C], $.contentType].includes("customCard") && (k = `card-${window.btoa(`${$.title} ${$.createdAt}`)}-${C}`), k;
7111
7163
  };
7112
7164
  return /* @__PURE__ */ a.jsxs(
7113
7165
  "section",
@@ -7121,35 +7173,35 @@ const ic = ({
7121
7173
  "ul",
7122
7174
  {
7123
7175
  className: "carousel",
7124
- onTouchStart: D,
7176
+ onTouchStart: F,
7125
7177
  onTouchMove: R,
7126
7178
  style: Q,
7127
7179
  "data-testid": "carousel-list",
7128
7180
  children: e.map(($, C) => {
7129
- let j = B($, C);
7130
- return j && ac(C, f, y, _) ? /* @__PURE__ */ a.jsx(
7181
+ let k = B($, C);
7182
+ return k && ac(C, f, v, _) ? /* @__PURE__ */ a.jsx(
7131
7183
  Ua,
7132
7184
  {
7133
- id: j,
7185
+ id: k,
7134
7186
  card: { ...$, contentType: n[C] },
7135
7187
  buildCardData: r,
7136
7188
  gtmContext: o,
7137
7189
  ...c
7138
7190
  },
7139
- j
7140
- ) : (j = j || `${t}-card-${C}`, /* @__PURE__ */ a.jsx(
7191
+ k
7192
+ ) : (k = k || `${t}-card-${C}`, /* @__PURE__ */ a.jsx(
7141
7193
  Se,
7142
7194
  {
7143
7195
  element: "li",
7144
7196
  className: "card-wrapper",
7145
7197
  "data-testid": "card-placeholder"
7146
7198
  },
7147
- j
7199
+ k
7148
7200
  ));
7149
7201
  })
7150
7202
  }
7151
7203
  ),
7152
- b <= 1 ? null : /* @__PURE__ */ a.jsxs("ul", { className: "controls", "data-testid": "carousel-controls", children: [
7204
+ x <= 1 ? null : /* @__PURE__ */ a.jsxs("ul", { className: "controls", "data-testid": "carousel-controls", children: [
7153
7205
  /* @__PURE__ */ a.jsx("li", { className: "arrow previous", children: /* @__PURE__ */ a.jsx(
7154
7206
  se,
7155
7207
  {
@@ -7157,26 +7209,26 @@ const ic = ({
7157
7209
  size: "large",
7158
7210
  icon: { icon: "chevron_left" },
7159
7211
  onClick: ($) => {
7160
- $.preventDefault(), $.stopPropagation(), w("previous");
7212
+ $.preventDefault(), $.stopPropagation(), b("previous");
7161
7213
  },
7162
7214
  screenreaderText: d.formatMessage({
7163
7215
  id: "carousel_pagination_previous"
7164
7216
  }),
7165
- disabled: y <= 0
7217
+ disabled: v <= 0
7166
7218
  }
7167
7219
  ) }),
7168
- [...Array(b)].map(($, C) => /* @__PURE__ */ a.jsx("li", { "data-testid": "carousel-controls-button", children: /* @__PURE__ */ a.jsx(
7220
+ [...Array(x)].map(($, C) => /* @__PURE__ */ a.jsx("li", { "data-testid": "carousel-controls-button", children: /* @__PURE__ */ a.jsx(
7169
7221
  "button",
7170
7222
  {
7171
7223
  className: S("page-indicator", {
7172
- selected: C === y
7224
+ selected: C === v
7173
7225
  }),
7174
- onClick: (j) => {
7175
- j.preventDefault(), j.stopPropagation(), w(C);
7226
+ onClick: (k) => {
7227
+ k.preventDefault(), k.stopPropagation(), b(C);
7176
7228
  },
7177
7229
  children: /* @__PURE__ */ a.jsx(be, { showOnFocus: !1, children: d.formatMessage(
7178
7230
  { id: "carousel_pagination_page" },
7179
- { number: C + 1, total: b }
7231
+ { number: C + 1, total: x }
7180
7232
  ) })
7181
7233
  }
7182
7234
  ) }, `page-indicator-${C}`)),
@@ -7187,10 +7239,10 @@ const ic = ({
7187
7239
  size: "large",
7188
7240
  icon: { icon: "chevron_right" },
7189
7241
  onClick: ($) => {
7190
- $.preventDefault(), $.stopPropagation(), w("next");
7242
+ $.preventDefault(), $.stopPropagation(), b("next");
7191
7243
  },
7192
7244
  screenreaderText: d.formatMessage({ id: "carousel_pagination_next" }),
7193
- disabled: y >= b - 1
7245
+ disabled: v >= x - 1
7194
7246
  }
7195
7247
  ) })
7196
7248
  ] })
@@ -7361,8 +7413,8 @@ const ru = ({
7361
7413
  "button",
7362
7414
  {
7363
7415
  className: S(u, { selected: c.includes(u) }),
7364
- onClick: (y) => {
7365
- y.preventDefault(), y.stopPropagation(), l(u, p);
7416
+ onClick: (v) => {
7417
+ v.preventDefault(), v.stopPropagation(), l(u, p);
7366
7418
  },
7367
7419
  ...g,
7368
7420
  children: f
@@ -7400,7 +7452,7 @@ const Ot = "languageSwitcher_", au = ({
7400
7452
  (_) => _ && _.post_name
7401
7453
  ))
7402
7454
  return null;
7403
- const g = Object.keys(r), y = f !== t;
7455
+ const g = Object.keys(r), v = f !== t;
7404
7456
  return /* @__PURE__ */ a.jsxs("div", { className: S("language-switcher text-small", o, d), children: [
7405
7457
  /* @__PURE__ */ a.jsxs("nav", { children: [
7406
7458
  o !== "short" && /* @__PURE__ */ a.jsx("p", { children: c || l.formatMessage({ id: `${Ot}label` }) }),
@@ -7408,33 +7460,33 @@ const Ot = "languageSwitcher_", au = ({
7408
7460
  var E;
7409
7461
  if (!gn[_])
7410
7462
  return null;
7411
- const v = (E = r[_]) == null ? void 0 : E.post_name;
7412
- let b = { className: _ };
7463
+ const y = (E = r[_]) == null ? void 0 : E.post_name;
7464
+ let x = { className: _ };
7413
7465
  if (f === _)
7414
- b["aria-label"] = l.formatMessage(
7466
+ x["aria-label"] = l.formatMessage(
7415
7467
  { id: `${Ot}selected` },
7416
7468
  { language: gn[_] }
7417
7469
  );
7418
7470
  else {
7419
- const k = oc(_, v, i);
7420
- b = {
7421
- ...b,
7422
- href: typeof k == "string" ? k : k.url,
7423
- onClick: (w) => {
7424
- m(_), u(_), typeof s < "u" && (w.preventDefault(), w.stopPropagation(), s(
7471
+ const w = oc(_, y, i);
7472
+ x = {
7473
+ ...x,
7474
+ href: typeof w == "string" ? w : w.url,
7475
+ onClick: (b) => {
7476
+ m(_), u(_), typeof s < "u" && (b.preventDefault(), b.stopPropagation(), s(
7425
7477
  _,
7426
- typeof k == "string" ? k : k.urlForRouter
7478
+ typeof w == "string" ? w : w.urlForRouter
7427
7479
  ));
7428
7480
  }
7429
7481
  };
7430
7482
  }
7431
- return /* @__PURE__ */ a.jsx("li", { children: /* @__PURE__ */ a.jsx(at, { ...b, fallbackElement: "span", children: gn[_] }) }, _);
7483
+ return /* @__PURE__ */ a.jsx("li", { children: /* @__PURE__ */ a.jsx(at, { ...x, fallbackElement: "span", children: gn[_] }) }, _);
7432
7484
  }) }),
7433
- o !== "short" && !y && /* @__PURE__ */ a.jsx("p", { children: l.formatMessage({
7485
+ o !== "short" && !v && /* @__PURE__ */ a.jsx("p", { children: l.formatMessage({
7434
7486
  id: `${Ot}translation_${e ? "original" : n ? "human" : "machine"}`
7435
7487
  }) })
7436
7488
  ] }),
7437
- o !== "short" && !y && !e && !n && /* @__PURE__ */ a.jsx("small", {
7489
+ o !== "short" && !v && !e && !n && /* @__PURE__ */ a.jsx("small", {
7438
7490
  // eslint-disable-next-line @typescript-eslint/ban-ts-comment
7439
7491
  // @ts-ignore
7440
7492
  // `values` are throwing a type error: https://github.com/formatjs/formatjs/issues/3633
@@ -7443,8 +7495,8 @@ const Ot = "languageSwitcher_", au = ({
7443
7495
  {
7444
7496
  email: ft.support,
7445
7497
  link: (_) => {
7446
- const v = `mailto:${_}`;
7447
- return /* @__PURE__ */ a.jsx("a", { href: v, children: _ });
7498
+ const y = `mailto:${_}`;
7499
+ return /* @__PURE__ */ a.jsx("a", { href: y, children: _ });
7448
7500
  }
7449
7501
  }
7450
7502
  )
@@ -7539,7 +7591,7 @@ const cc = ({
7539
7591
  }
7540
7592
  ),
7541
7593
  /* @__PURE__ */ a.jsx("ul", { id: e, hidden: !o, children: n.map(({ href: l, onClick: u, text: f, icon: m, ...p }, g) => {
7542
- const y = {
7594
+ const v = {
7543
7595
  ...p,
7544
7596
  onClick: (_) => {
7545
7597
  c(!1), typeof u == "function" && u(_);
@@ -7553,13 +7605,13 @@ const cc = ({
7553
7605
  }, 100);
7554
7606
  }
7555
7607
  };
7556
- return l && (y.href = l), /* @__PURE__ */ a.jsx("li", { children: /* @__PURE__ */ a.jsx(
7608
+ return l && (v.href = l), /* @__PURE__ */ a.jsx("li", { children: /* @__PURE__ */ a.jsx(
7557
7609
  se,
7558
7610
  {
7559
7611
  variant: "tertiary",
7560
7612
  size: "medium",
7561
7613
  icon: m ? { icon: m, position: "left" } : !1,
7562
- ...y,
7614
+ ...v,
7563
7615
  children: f
7564
7616
  }
7565
7617
  ) }, `${window.btoa(f)}_${g}`);
@@ -7687,7 +7739,7 @@ const mc = "shareLinks_", su = ({
7687
7739
  if (typeof m == "function" && !m())
7688
7740
  return null;
7689
7741
  const g = {};
7690
- return p && (g.onClick = (y) => p(y, f)), /* @__PURE__ */ a.jsx("li", { children: /* @__PURE__ */ a.jsx(
7742
+ return p && (g.onClick = (v) => p(v, f)), /* @__PURE__ */ a.jsx("li", { children: /* @__PURE__ */ a.jsx(
7691
7743
  se,
7692
7744
  {
7693
7745
  size: s,
@@ -7733,11 +7785,11 @@ const iu = ({ tabs: t, className: e = "", preventLocationChange: n }) => {
7733
7785
  }
7734
7786
  }, [i]);
7735
7787
  const c = [], d = [];
7736
- return t.forEach(({ id: u, text: f, content: m, href: p, hasCarousel: g }, y) => {
7737
- u = r(u, f, y);
7738
- const _ = i === u, v = {};
7739
- p || (v["aria-controls"] = u, v.onClick = (b) => {
7740
- b.preventDefault(), b.stopPropagation(), o(u), !n && (window.location.hash = `#${u}`);
7788
+ return t.forEach(({ id: u, text: f, content: m, href: p, hasCarousel: g }, v) => {
7789
+ u = r(u, f, v);
7790
+ const _ = i === u, y = {};
7791
+ p || (y["aria-controls"] = u, y.onClick = (x) => {
7792
+ x.preventDefault(), x.stopPropagation(), o(u), !n && (window.location.hash = `#${u}`);
7741
7793
  }, d.push(
7742
7794
  /* @__PURE__ */ a.jsx(
7743
7795
  "section",
@@ -7760,7 +7812,7 @@ const iu = ({ tabs: t, className: e = "", preventLocationChange: n }) => {
7760
7812
  className: S({ selected: _ }),
7761
7813
  role: "tab",
7762
7814
  "aria-selected": _,
7763
- ...v,
7815
+ ...y,
7764
7816
  children: f
7765
7817
  }
7766
7818
  ) }, `tab-${u}`)
@@ -8258,10 +8310,10 @@ const Xe = "footer_", Gt = "SiteFooter", Kr = ({ group: t }) => {
8258
8310
  c.hasVariantText && (f += `_logged${e ? "In" : "Out"}`);
8259
8311
  let m = !1;
8260
8312
  if (c.href) {
8261
- let b = c.gtmType || `${t}-click`;
8262
- if (b.includes(".")) {
8263
- const E = b.split("."), k = E[E.length - 2];
8264
- b = `${k === "topics" ? `${k}-` : ""}${E[E.length - 1]}`;
8313
+ let x = c.gtmType || `${t}-click`;
8314
+ if (x.includes(".")) {
8315
+ const E = x.split("."), w = E[E.length - 2];
8316
+ x = `${w === "topics" ? `${w}-` : ""}${E[E.length - 1]}`;
8265
8317
  }
8266
8318
  m = {
8267
8319
  href: c.href,
@@ -8269,7 +8321,7 @@ const Xe = "footer_", Gt = "SiteFooter", Kr = ({ group: t }) => {
8269
8321
  }, l && (m = {
8270
8322
  ...m,
8271
8323
  className: "gtm-trackable",
8272
- "data-gtm-event-type": b,
8324
+ "data-gtm-event-type": x,
8273
8325
  "data-gtm-event-context": "HeaderButtons"
8274
8326
  }), u && (m = {
8275
8327
  ...m,
@@ -8278,28 +8330,28 @@ const Xe = "footer_", Gt = "SiteFooter", Kr = ({ group: t }) => {
8278
8330
  ...c.props || {}
8279
8331
  });
8280
8332
  }
8281
- const p = c.order && c.order[0] && c[c.order[0]], g = p && c[c.order[0]].order, y = m && window.location.pathname === c.href;
8282
- let _ = {}, v = {};
8333
+ const p = c.order && c.order[0] && c[c.order[0]], g = p && c[c.order[0]].order, v = m && window.location.pathname === c.href;
8334
+ let _ = {}, y = {};
8283
8335
  if (p) {
8284
- const b = c.menuId || t, E = {
8285
- onClick: (k) => fe.events.onClick(k, { id: b, callback: s, isOpen: r[b] }),
8286
- onFocus: () => fe.events.onFocus({ id: b }),
8287
- onBlur: () => fe.events.onBlur({ id: b, callback: s }),
8288
- onMouseLeave: () => fe.events.onBlur({ id: b, callback: s }),
8289
- onMouseEnter: () => fe.events.onMouseEnter({ id: b, callback: s })
8336
+ const x = c.menuId || t, E = {
8337
+ onClick: (w) => fe.events.onClick(w, { id: x, callback: s, isOpen: r[x] }),
8338
+ onFocus: () => fe.events.onFocus({ id: x }),
8339
+ onBlur: () => fe.events.onBlur({ id: x, callback: s }),
8340
+ onMouseLeave: () => fe.events.onBlur({ id: x, callback: s }),
8341
+ onMouseEnter: () => fe.events.onMouseEnter({ id: x, callback: s })
8290
8342
  };
8291
8343
  n && (g && (_ = {
8292
8344
  ...E,
8293
- onKeyPress: (k) => {
8294
- k.key === "Enter" && fe.events.onClick(k, { id: b, callback: s, isOpen: r[b] });
8345
+ onKeyPress: (w) => {
8346
+ w.key === "Enter" && fe.events.onClick(w, { id: x, callback: s, isOpen: r[x] });
8295
8347
  },
8296
8348
  tabIndex: "0",
8297
8349
  // Add a `tabIndex` so keyboard users can focus on the `li`
8298
8350
  "aria-haspopup": !0,
8299
- "aria-expanded": r[b],
8300
- "aria-controls": b
8301
- }), v = { hidden: b in r ? !r[b] : !0 }), g || (v = {
8302
- ...v,
8351
+ "aria-expanded": r[x],
8352
+ "aria-controls": x
8353
+ }), y = { hidden: x in r ? !r[x] : !0 }), g || (y = {
8354
+ ...y,
8303
8355
  ...E
8304
8356
  });
8305
8357
  }
@@ -8310,7 +8362,7 @@ const Xe = "footer_", Gt = "SiteFooter", Kr = ({ group: t }) => {
8310
8362
  [c.className]: c.className,
8311
8363
  "has-submenu": p,
8312
8364
  parent: g,
8313
- active: y
8365
+ active: v
8314
8366
  }),
8315
8367
  role: "none",
8316
8368
  ..._,
@@ -8320,8 +8372,8 @@ const Xe = "footer_", Gt = "SiteFooter", Kr = ({ group: t }) => {
8320
8372
  m,
8321
8373
  o.formatMessage({ id: f })
8322
8374
  ) : o.formatMessage({ id: f }),
8323
- c.order && /* @__PURE__ */ a.jsx("ul", { ...v, children: c.order.map((b) => {
8324
- if (!c[b])
8375
+ c.order && /* @__PURE__ */ a.jsx("ul", { ...y, children: c.order.map((x) => {
8376
+ if (!c[x])
8325
8377
  return null;
8326
8378
  const E = {
8327
8379
  isLoggedIn: e,
@@ -8330,32 +8382,32 @@ const Xe = "footer_", Gt = "SiteFooter", Kr = ({ group: t }) => {
8330
8382
  callback: s,
8331
8383
  doTrack: d ? l : null
8332
8384
  };
8333
- return c[b].order ? /* @__PURE__ */ a.jsxs(
8385
+ return c[x].order ? /* @__PURE__ */ a.jsxs(
8334
8386
  "li",
8335
8387
  {
8336
8388
  className: S({
8337
- [c[b].className]: c[b].className
8389
+ [c[x].className]: c[x].className
8338
8390
  }),
8339
8391
  children: [
8340
- o.formatMessage({ id: `${f}_${b}` }),
8341
- /* @__PURE__ */ a.jsx("ul", { children: c[b].order.map((k) => /* @__PURE__ */ a.jsx(
8392
+ o.formatMessage({ id: `${f}_${x}` }),
8393
+ /* @__PURE__ */ a.jsx("ul", { children: c[x].order.map((w) => /* @__PURE__ */ a.jsx(
8342
8394
  Jt,
8343
8395
  {
8344
- id: `${t}.${b}.${k}`,
8396
+ id: `${t}.${x}.${w}`,
8345
8397
  ...E
8346
8398
  },
8347
- k
8399
+ w
8348
8400
  )) })
8349
8401
  ]
8350
8402
  },
8351
- b
8403
+ x
8352
8404
  ) : /* @__PURE__ */ a.jsx(
8353
8405
  Jt,
8354
8406
  {
8355
- id: `${t}.${b}`,
8407
+ id: `${t}.${x}`,
8356
8408
  ...E
8357
8409
  },
8358
- b
8410
+ x
8359
8411
  );
8360
8412
  }) })
8361
8413
  ]
@@ -8570,16 +8622,16 @@ const bc = () => {
8570
8622
  ae(() => {
8571
8623
  window.scrollTo(0, 0);
8572
8624
  }, [g]);
8573
- const y = Bt(t, { locale: c }), _ = Bt(e, {
8625
+ const v = Bt(t, { locale: c }), _ = Bt(e, {
8574
8626
  locale: c
8575
- }), v = Bt(n, {
8627
+ }), y = Bt(n, {
8576
8628
  locale: c
8577
- }), b = {};
8578
- return u !== "default" && (b[u] = !0), f !== "default" && (b[f] = !0), m !== "default" && (b[m] = !0), /* @__PURE__ */ a.jsx(Ps, { onError: r, fallback: /* @__PURE__ */ a.jsx(bc, {}), children: /* @__PURE__ */ a.jsx(xs, { fallback: null, children: /* @__PURE__ */ a.jsxs(
8629
+ }), x = {};
8630
+ return u !== "default" && (x[u] = !0), f !== "default" && (x[f] = !0), m !== "default" && (x[m] = !0), /* @__PURE__ */ a.jsx(Ps, { onError: r, fallback: /* @__PURE__ */ a.jsx(bc, {}), children: /* @__PURE__ */ a.jsx(xs, { fallback: null, children: /* @__PURE__ */ a.jsxs(
8579
8631
  "div",
8580
8632
  {
8581
8633
  id: "wrapper",
8582
- className: S(o, b, { "has-footer": l }),
8634
+ className: S(o, x, { "has-footer": l }),
8583
8635
  children: [
8584
8636
  /* @__PURE__ */ a.jsx(Ha, { showNavigation: d }),
8585
8637
  /* @__PURE__ */ a.jsxs("section", { id: "content-wrapper", children: [
@@ -8594,11 +8646,11 @@ const bc = () => {
8594
8646
  ),
8595
8647
  Y.createElement(u === "bold" ? qa : "div", {
8596
8648
  id: "content",
8597
- children: y,
8649
+ children: v,
8598
8650
  className: S({ "large-modal": p === "large" })
8599
8651
  })
8600
8652
  ] }),
8601
- v && /* @__PURE__ */ a.jsx("div", { className: "additional-content appended", children: v }),
8653
+ y && /* @__PURE__ */ a.jsx("div", { className: "additional-content appended", children: y }),
8602
8654
  l && /* @__PURE__ */ a.jsx(Za, {}),
8603
8655
  /* @__PURE__ */ a.jsx(gc, {})
8604
8656
  ]
@@ -8824,19 +8876,19 @@ const fu = ({
8824
8876
  /* @__PURE__ */ a.jsx("ol", { children: t && t.length > 0 && t.map(
8825
8877
  ({
8826
8878
  completed: g,
8827
- completionTime: y,
8879
+ completionTime: v,
8828
8880
  contentType: _,
8829
- icon: v,
8830
- image: b,
8881
+ icon: y,
8882
+ image: x,
8831
8883
  isIntroduction: E,
8832
- optional: k,
8833
- slug: w,
8834
- subsectionId: D,
8884
+ optional: w,
8885
+ slug: b,
8886
+ subsectionId: F,
8835
8887
  title: R,
8836
8888
  type: Q
8837
8889
  }) => {
8838
8890
  const B = s && e || E, $ = {};
8839
- return b && ($.style = { "--image": `url(${b})` }), /* @__PURE__ */ a.jsx(
8891
+ return x && ($.style = { "--image": `url(${x})` }), /* @__PURE__ */ a.jsx(
8840
8892
  "li",
8841
8893
  {
8842
8894
  className: S({
@@ -8850,7 +8902,7 @@ const fu = ({
8850
8902
  children: /* @__PURE__ */ a.jsx(
8851
8903
  at,
8852
8904
  {
8853
- href: B ? `/microcourses/en/${c}/${w}` : void 0,
8905
+ href: B ? `/microcourses/en/${c}/${b}` : void 0,
8854
8906
  fallbackElement: "span",
8855
8907
  className: "inner",
8856
8908
  gtmContext: `MicrocourseOutline${zs(R)}`,
@@ -8860,7 +8912,7 @@ const fu = ({
8860
8912
  xc,
8861
8913
  {
8862
8914
  sectionId: i,
8863
- subsectionId: D,
8915
+ subsectionId: F,
8864
8916
  title: R,
8865
8917
  className: "course-title"
8866
8918
  }
@@ -8869,18 +8921,18 @@ const fu = ({
8869
8921
  /* @__PURE__ */ a.jsx(
8870
8922
  wc,
8871
8923
  {
8872
- completionTime: y,
8873
- icon: v,
8874
- optional: k,
8924
+ completionTime: v,
8925
+ icon: y,
8926
+ optional: w,
8875
8927
  type: Q,
8876
- children: u && u[w] && /* @__PURE__ */ a.jsx("span", { className: "quiz-score", children: `${u[w]}%` })
8928
+ children: u && u[b] && /* @__PURE__ */ a.jsx("span", { className: "quiz-score", children: `${u[b]}%` })
8877
8929
  }
8878
8930
  )
8879
8931
  ] })
8880
8932
  }
8881
8933
  )
8882
8934
  },
8883
- w
8935
+ b
8884
8936
  );
8885
8937
  }
8886
8938
  ) })
@@ -8947,11 +8999,11 @@ const we = "discussion_form_", ar = ({
8947
8999
  },
8948
9000
  gtmContext: l = "DiscussionForm"
8949
9001
  }) => {
8950
- var $, C, j;
9002
+ var $, C, k;
8951
9003
  const u = H(), f = Ee(De), [m, p] = X(
8952
9004
  n.isEditing && n.isEditing.text || ""
8953
- ), [g, y] = X(c.error || !1), [_, v] = X(!1), b = pe(null);
8954
- if (r || (r = b), n.isLoading)
9005
+ ), [g, v] = X(c.error || !1), [_, y] = X(!1), x = pe(null);
9006
+ if (r || (r = x), n.isLoading)
8955
9007
  return /* @__PURE__ */ a.jsx(
8956
9008
  Se,
8957
9009
  {
@@ -8959,32 +9011,32 @@ const we = "discussion_form_", ar = ({
8959
9011
  "data-testid": "loading-placeholder"
8960
9012
  }
8961
9013
  );
8962
- const E = (x) => {
8963
- const N = x.target.value;
9014
+ const E = (j) => {
9015
+ const N = j.target.value;
8964
9016
  p(N);
8965
- let O;
8966
- !f || !f.id ? O = $e(
9017
+ let A;
9018
+ !f || !f.id ? A = $e(
8967
9019
  u.formatMessage,
8968
9020
  `${we}error_loggedOut`,
8969
9021
  t.type,
8970
9022
  "action"
8971
- ) : e ? N.length >= i && (O = `${we}error_tooLong`) : O = $e(
9023
+ ) : e ? N.length >= i && (A = `${we}error_tooLong`) : A = $e(
8972
9024
  u.formatMessage,
8973
9025
  `${we}error_noPermission`,
8974
9026
  t.type,
8975
9027
  "action"
8976
- ), O ? y(O) : g && y(!1);
9028
+ ), A ? v(A) : g && v(!1);
8977
9029
  };
8978
- let k = `${t.type}-form`;
9030
+ let w = `${t.type}-form`;
8979
9031
  if (t.type === "response" || t.type === "reply") {
8980
- const x = (($ = t.slugs) == null ? void 0 : $.reply) || ((C = t.slugs) == null ? void 0 : C.answer) || ((j = t.slugs) == null ? void 0 : j.question) || "";
8981
- x && (k = `${k}-${x.slice(-15)}`);
9032
+ const j = (($ = t.slugs) == null ? void 0 : $.reply) || ((C = t.slugs) == null ? void 0 : C.answer) || ((k = t.slugs) == null ? void 0 : k.question) || "";
9033
+ j && (w = `${w}-${j.slice(-15)}`);
8982
9034
  }
8983
- const w = async (x) => {
8984
- var O;
8985
- if (x.preventDefault(), x.stopPropagation(), !f || !f.id || !e || R)
9035
+ const b = async (j) => {
9036
+ var A;
9037
+ if (j.preventDefault(), j.stopPropagation(), !f || !f.id || !e || R)
8986
9038
  return;
8987
- Dt && clearTimeout(Dt), v("submitting");
9039
+ Dt && clearTimeout(Dt), y("submitting");
8988
9040
  const N = window.location.pathname;
8989
9041
  try {
8990
9042
  let W;
@@ -8996,7 +9048,7 @@ const we = "discussion_form_", ar = ({
8996
9048
  W = await d.create({
8997
9049
  title: m,
8998
9050
  authorId: f && f.id,
8999
- ...(O = d.props) == null ? void 0 : O.create
9051
+ ...(A = d.props) == null ? void 0 : A.create
9000
9052
  });
9001
9053
  break;
9002
9054
  case "response":
@@ -9015,9 +9067,9 @@ const we = "discussion_form_", ar = ({
9015
9067
  break;
9016
9068
  }
9017
9069
  await Ks(1e3), d.callback && await d.callback(W), Dt = setTimeout(() => {
9018
- p(""), v("submitted");
9070
+ p(""), y("submitted");
9019
9071
  const Z = new Event("discussionFormSubmitted");
9020
- document.dispatchEvent(Z), D();
9072
+ document.dispatchEvent(Z), F();
9021
9073
  }, 500);
9022
9074
  } catch (W) {
9023
9075
  const Z = W;
@@ -9032,11 +9084,11 @@ const we = "discussion_form_", ar = ({
9032
9084
  `${we}error_tooMany`,
9033
9085
  t.type,
9034
9086
  "action"
9035
- ) : Z != null && Z.message.includes("400") && (z = `${we}error`), y(z), D();
9087
+ ) : Z != null && Z.message.includes("400") && (z = `${we}error`), v(z), F();
9036
9088
  }
9037
- }, D = () => {
9089
+ }, F = () => {
9038
9090
  Dt = setTimeout(() => {
9039
- y(!1), v(!1);
9091
+ v(!1), y(!1);
9040
9092
  }, 5e3);
9041
9093
  }, R = !m || !ni(m), Q = _ === "submitting", B = [];
9042
9094
  return (n.isEditing && !Q || c.cancel) && B.push({
@@ -9051,14 +9103,14 @@ const we = "discussion_form_", ar = ({
9051
9103
  }), B.push({
9052
9104
  variant: "primary",
9053
9105
  size: { mobile: "small", 600: "medium" },
9054
- onClick: (x) => {
9106
+ onClick: (j) => {
9055
9107
  if (n.isEditing) {
9056
- v("submitting"), d.handleSaveEdit && d.handleSaveEdit(
9057
- b.current && "value" in b.current ? b.current.value : ""
9108
+ y("submitting"), d.handleSaveEdit && d.handleSaveEdit(
9109
+ x.current && "value" in x.current ? x.current.value : ""
9058
9110
  );
9059
9111
  return;
9060
9112
  }
9061
- w(x);
9113
+ b(j);
9062
9114
  },
9063
9115
  className: "gtm-trackable",
9064
9116
  "data-gtm-event-context": l,
@@ -9071,7 +9123,7 @@ const we = "discussion_form_", ar = ({
9071
9123
  }), /* @__PURE__ */ a.jsxs(
9072
9124
  "form",
9073
9125
  {
9074
- id: k,
9126
+ id: w,
9075
9127
  className: S("discussion-card discussion-form", {
9076
9128
  "no-styling": n.isInWrapper && n.isEditing
9077
9129
  }),
@@ -9086,12 +9138,12 @@ const we = "discussion_form_", ar = ({
9086
9138
  gtmType: "profile-click"
9087
9139
  }
9088
9140
  ),
9089
- /* @__PURE__ */ a.jsx(be, { element: "label", showOnFocus: !1, htmlFor: `${k}-input`, children: $e(u.formatMessage, `${we}label`, t.type, "action") }),
9141
+ /* @__PURE__ */ a.jsx(be, { element: "label", showOnFocus: !1, htmlFor: `${w}-input`, children: $e(u.formatMessage, `${we}label`, t.type, "action") }),
9090
9142
  /* @__PURE__ */ a.jsx(
9091
9143
  Ms,
9092
9144
  {
9093
9145
  ref: r,
9094
- id: `${k}-input`,
9146
+ id: `${w}-input`,
9095
9147
  name: t.type,
9096
9148
  placeholder: s || $e(
9097
9149
  u.formatMessage,
@@ -9109,7 +9161,7 @@ const we = "discussion_form_", ar = ({
9109
9161
  }
9110
9162
  ),
9111
9163
  /* @__PURE__ */ a.jsx("small", { children: $e(u.formatMessage, `${we}explainer`, t.type, "action", {
9112
- a: (x) => /* @__PURE__ */ a.jsx(
9164
+ a: (j) => /* @__PURE__ */ a.jsx(
9113
9165
  "a",
9114
9166
  {
9115
9167
  href: "https://about.apolitical.co/q-and-a-community-guidelines",
@@ -9118,7 +9170,7 @@ const we = "discussion_form_", ar = ({
9118
9170
  "data-gtm-event-context": l,
9119
9171
  "data-gtm-event-type": "community-guidelines-link",
9120
9172
  rel: "noreferrer",
9121
- children: x
9173
+ children: j
9122
9174
  }
9123
9175
  )
9124
9176
  }) }),
@@ -9197,32 +9249,32 @@ const An = () => {
9197
9249
  ae(() => {
9198
9250
  p(s);
9199
9251
  }, [s]);
9200
- const [u, f] = X(e), [m, p] = X(s), [g, y] = X(!1), [_, v] = X(!1), b = wt(
9252
+ const [u, f] = X(e), [m, p] = X(s), [g, v] = X(!1), [_, y] = X(!1), x = wt(
9201
9253
  () => Ec(n, Dn),
9202
9254
  [n]
9203
- ), E = (w) => {
9204
- if (w.preventDefault(), w.stopPropagation(), v(!1), bt)
9255
+ ), E = (b) => {
9256
+ if (b.preventDefault(), b.stopPropagation(), y(!1), bt)
9205
9257
  return An(), !1;
9206
9258
  if (An(), g || !o)
9207
9259
  return !1;
9208
- bt = setTimeout(k, 350);
9209
- }, k = async () => {
9260
+ bt = setTimeout(w, 350);
9261
+ }, w = async () => {
9210
9262
  if (An(), g || !o)
9211
9263
  return !1;
9212
- let w = m ? u - 1 : u + 1;
9213
- w < 0 && (w = 0), y(!0), f(w), p(!m);
9264
+ let b = m ? u - 1 : u + 1;
9265
+ b < 0 && (b = 0), v(!0), f(b), p(!m);
9214
9266
  try {
9215
9267
  if (i && i.slugs) {
9216
- const D = Tc(i.slugs);
9217
- m ? await d(D) : await c({
9218
- ...D,
9268
+ const F = Tc(i.slugs);
9269
+ m ? await d(F) : await c({
9270
+ ...F,
9219
9271
  payload: { contentPath: window.location.pathname }
9220
9272
  });
9221
9273
  }
9222
9274
  } catch {
9223
9275
  f(e), p(s);
9224
9276
  } finally {
9225
- y(!1);
9277
+ v(!1);
9226
9278
  }
9227
9279
  };
9228
9280
  return Y.createElement(t, {
@@ -9233,16 +9285,16 @@ const An = () => {
9233
9285
  }),
9234
9286
  onClick: E,
9235
9287
  onMouseEnter: () => {
9236
- v(!0);
9288
+ y(!0);
9237
9289
  },
9238
9290
  onMouseLeave: () => {
9239
- v(!1);
9291
+ y(!1);
9240
9292
  },
9241
9293
  onFocus: () => {
9242
- v(!0);
9294
+ y(!0);
9243
9295
  },
9244
9296
  onBlur: () => {
9245
- v(!1);
9297
+ y(!1);
9246
9298
  },
9247
9299
  children: /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
9248
9300
  /* @__PURE__ */ a.jsx(
@@ -9282,16 +9334,16 @@ const An = () => {
9282
9334
  }
9283
9335
  ),
9284
9336
  n && /* @__PURE__ */ a.jsx(_i, { isOpen: _, isLoading: n.length === 0, children: n.length && /* @__PURE__ */ a.jsxs("ul", { children: [
9285
- b.map((w) => typeof w == "string" || !w.name ? null : /* @__PURE__ */ a.jsx("li", { children: /* @__PURE__ */ a.jsx(
9337
+ x.map((b) => typeof b == "string" || !b.name ? null : /* @__PURE__ */ a.jsx("li", { children: /* @__PURE__ */ a.jsx(
9286
9338
  at,
9287
9339
  {
9288
- href: w.id ? `/profiles/${w.id}` : void 0,
9340
+ href: b.id ? `/profiles/${b.id}` : void 0,
9289
9341
  gtmContext: "Likes",
9290
9342
  gtmType: "liked-name-click",
9291
- onClick: (D) => D == null ? void 0 : D.stopPropagation(),
9292
- children: w.name
9343
+ onClick: (F) => F == null ? void 0 : F.stopPropagation(),
9344
+ children: b.name
9293
9345
  }
9294
- ) }, w.id || window.btoa(w.name))),
9346
+ ) }, b.id || window.btoa(b.name))),
9295
9347
  e > Dn && /* @__PURE__ */ a.jsx("li", { children: l.formatMessage(
9296
9348
  { id: "discussion_likes_more" },
9297
9349
  { number: e - Dn }
@@ -9332,26 +9384,26 @@ const Me = "discussion_", Cc = 280, cn = ({
9332
9384
  links: m = {},
9333
9385
  className: p,
9334
9386
  gtmContext: g = "DiscussionAnswer",
9335
- children: y,
9387
+ children: v,
9336
9388
  isTruncated: _ = !1
9337
9389
  }) => {
9338
- const v = H(), b = Ee(De), E = Ee(sr), { author: k, canLike: w, createdAt: D, id: R, likes: Q = 0, userLiked: B, comments: $ = 0 } = e, C = b && b.id && typeof k != "string" && k.id && k.id === b.id || !1, j = typeof w == "boolean" ? w : n ? !C : !1, x = C && (!e.createdAt || Ys(e.createdAt, 10, "seconds")), N = pe(null), [O, W] = X({
9390
+ const y = H(), x = Ee(De), E = Ee(sr), { author: w, canLike: b, createdAt: F, id: R, likes: Q = 0, userLiked: B, comments: $ = 0 } = e, C = x && x.id && typeof w != "string" && w.id && w.id === x.id || !1, k = typeof b == "boolean" ? b : n ? !C : !1, j = C && (!e.createdAt || Ys(e.createdAt, 10, "seconds")), N = pe(null), [A, W] = X({
9339
9391
  body: e && e.body || "",
9340
9392
  isEditing: !1,
9341
9393
  didEdit: e && e.isEdited || !1
9342
9394
  }), [Z, z] = X(!1), [K, T] = X(
9343
- x ? "highlighted" : "default"
9395
+ j ? "highlighted" : "default"
9344
9396
  /* Default */
9345
9397
  ), [P, q] = X("");
9346
9398
  ae(() => {
9347
- const F = N.current;
9348
- if (!(!F || K === "default"))
9349
- return document.addEventListener("discussionFormSubmitted", L), F.addEventListener("transitionend", U), () => {
9350
- document.removeEventListener("discussionFormSubmitted", L), F.removeEventListener("transitionend", U);
9399
+ const O = N.current;
9400
+ if (!(!O || K === "default"))
9401
+ return document.addEventListener("discussionFormSubmitted", L), O.addEventListener("transitionend", U), () => {
9402
+ document.removeEventListener("discussionFormSubmitted", L), O.removeEventListener("transitionend", U);
9351
9403
  };
9352
9404
  }, []), ae(() => {
9353
9405
  W({
9354
- ...O,
9406
+ ...A,
9355
9407
  body: e && e.body || "",
9356
9408
  didEdit: e && e.isEdited || !1
9357
9409
  });
@@ -9363,27 +9415,27 @@ const Me = "discussion_", Cc = 280, cn = ({
9363
9415
  /* Fading */
9364
9416
  );
9365
9417
  }, 1e3);
9366
- }, U = ({ propertyName: F }) => {
9367
- F === "background-color" && T((oe) => (oe === "default" && (document.removeEventListener("discussionFormSubmitted", L), N.current && N.current.removeEventListener("transitionend", U)), oe === "fading" ? "default" : oe));
9418
+ }, U = ({ propertyName: O }) => {
9419
+ O === "background-color" && T((oe) => (oe === "default" && (document.removeEventListener("discussionFormSubmitted", L), N.current && N.current.removeEventListener("transitionend", U)), oe === "fading" ? "default" : oe));
9368
9420
  };
9369
9421
  if (r || !e || e.type === "answer" && (!e.slugs || !e.slugs.question))
9370
9422
  return /* @__PURE__ */ a.jsx(Se, { className: "discussion-card discussion-post" });
9371
- const te = _ ? et(O.body, Cc) : O.body, G = async (F) => {
9372
- F || (F = ""), q("");
9423
+ const te = _ ? et(A.body, Cc) : A.body, G = async (O) => {
9424
+ O || (O = ""), q("");
9373
9425
  try {
9374
- if (!Rs(F, O.body)) {
9375
- const oe = e.type === "question" ? { title: F } : { body: F };
9426
+ if (!Rs(O, A.body)) {
9427
+ const oe = e.type === "question" ? { title: O } : { body: O };
9376
9428
  await d(Qr(e.slugs), oe);
9377
9429
  }
9378
- W({ body: F, isEditing: !1, didEdit: !0 });
9430
+ W({ body: O, isEditing: !1, didEdit: !0 });
9379
9431
  } catch {
9380
9432
  q(`${Me}form_error`);
9381
9433
  }
9382
9434
  }, V = () => {
9383
9435
  E && E.updateConversation && E.updateConversation({ showForm: !0 }), setTimeout(() => {
9384
9436
  var Ne, Ce, Ue;
9385
- const oe = `reply-form-${(e.type === "answer" ? e.slug : ((Ne = e.slugs) == null ? void 0 : Ne.reply) || ((Ce = e.slugs) == null ? void 0 : Ce.answer) || ((Ue = e.slugs) == null ? void 0 : Ue.question) || "").toLowerCase().slice(-15)}`, A = document.getElementById(oe), ve = document.getElementById(`${oe}-input`);
9386
- ve && ve.focus(), A && A.scrollIntoView({ behavior: "smooth" });
9437
+ const oe = `reply-form-${(e.type === "answer" ? e.slug : ((Ne = e.slugs) == null ? void 0 : Ne.reply) || ((Ce = e.slugs) == null ? void 0 : Ce.answer) || ((Ue = e.slugs) == null ? void 0 : Ue.question) || "").toLowerCase().slice(-15)}`, D = document.getElementById(oe), ve = document.getElementById(`${oe}-input`);
9438
+ ve && ve.focus(), D && D.scrollIntoView({ behavior: "smooth" });
9387
9439
  }, 0);
9388
9440
  }, ee = async () => {
9389
9441
  z(!1);
@@ -9394,14 +9446,14 @@ const Me = "discussion_", Cc = 280, cn = ({
9394
9446
  }
9395
9447
  }, re = [
9396
9448
  {
9397
- text: v.formatMessage({ id: `${Me}moreMenu_report` }),
9398
- onClick: (F) => {
9399
- F.stopPropagation();
9449
+ text: y.formatMessage({ id: `${Me}moreMenu_report` }),
9450
+ onClick: (O) => {
9451
+ O.stopPropagation();
9400
9452
  },
9401
9453
  href: `mailto:community@apolitical.co?subject=${encodeURI(
9402
- v.formatMessage({ id: `${Me}report_subject` })
9454
+ y.formatMessage({ id: `${Me}report_subject` })
9403
9455
  )}&body=${encodeURI(
9404
- v.formatMessage(
9456
+ y.formatMessage(
9405
9457
  { id: `${Me}report_body` },
9406
9458
  {
9407
9459
  contentType: e.type || "",
@@ -9415,17 +9467,17 @@ const Me = "discussion_", Cc = 280, cn = ({
9415
9467
  ];
9416
9468
  return n && C && re.push(
9417
9469
  {
9418
- text: v.formatMessage({ id: `${Me}moreMenu_edit` }),
9419
- onClick: () => W({ ...O, isEditing: !0 }),
9470
+ text: y.formatMessage({ id: `${Me}moreMenu_edit` }),
9471
+ onClick: () => W({ ...A, isEditing: !0 }),
9420
9472
  icon: "pencil-paper",
9421
9473
  className: "gtm-trackable",
9422
9474
  "data-gtm-event-context": g,
9423
9475
  "data-gtm-event-type": `edit-${e.type}-click`
9424
9476
  },
9425
9477
  {
9426
- text: v.formatMessage({ id: `${Me}moreMenu_delete` }),
9427
- onClick: (F) => {
9428
- F.preventDefault(), F.stopPropagation(), z(!0);
9478
+ text: y.formatMessage({ id: `${Me}moreMenu_delete` }),
9479
+ onClick: (O) => {
9480
+ O.preventDefault(), O.stopPropagation(), z(!0);
9429
9481
  },
9430
9482
  icon: "trash",
9431
9483
  className: "gtm-trackable",
@@ -9445,24 +9497,24 @@ const Me = "discussion_", Cc = 280, cn = ({
9445
9497
  {
9446
9498
  id: R || e.slug,
9447
9499
  className: S("discussion-card", e.type, {
9448
- editing: O.isEditing,
9449
- "has-link": m.post && !O.isEditing
9500
+ editing: A.isEditing,
9501
+ "has-link": m.post && !A.isEditing
9450
9502
  }),
9451
- onClick: (F) => {
9452
- !m.post || O.isEditing || (F.preventDefault(), F.stopPropagation(), window.location.href = m.post);
9503
+ onClick: (O) => {
9504
+ !m.post || A.isEditing || (O.preventDefault(), O.stopPropagation(), window.location.href = m.post);
9453
9505
  },
9454
9506
  children: [
9455
- !O.isEditing && /* @__PURE__ */ a.jsx(
9507
+ !A.isEditing && /* @__PURE__ */ a.jsx(
9456
9508
  tr,
9457
9509
  {
9458
- member: k,
9459
- additionalContent: { createdAt: D, didEdit: O.didEdit },
9460
- className: typeof k != "string" && k.id === s ? "highlighted" : "",
9510
+ member: w,
9511
+ additionalContent: { createdAt: F, didEdit: A.didEdit },
9512
+ className: typeof w != "string" && w.id === s ? "highlighted" : "",
9461
9513
  gtmContext: g,
9462
9514
  gtmType: "profile-click"
9463
9515
  }
9464
9516
  ),
9465
- O.isEditing ? /* @__PURE__ */ a.jsx(
9517
+ A.isEditing ? /* @__PURE__ */ a.jsx(
9466
9518
  ar,
9467
9519
  {
9468
9520
  content: { type: e.type, slugs: e.slugs },
@@ -9470,14 +9522,14 @@ const Me = "discussion_", Cc = 280, cn = ({
9470
9522
  meta: {
9471
9523
  isLoading: r,
9472
9524
  isInWrapper: !0,
9473
- isEditing: { text: O.body }
9525
+ isEditing: { text: A.body }
9474
9526
  },
9475
9527
  maxLength: e.type === "question" ? 250 : 5e4,
9476
9528
  forceShow: {
9477
- error: P !== "" && P !== "delete-error" ? v.formatMessage(
9529
+ error: P !== "" && P !== "delete-error" ? y.formatMessage(
9478
9530
  { id: P },
9479
9531
  {
9480
- action: v.formatMessage({
9532
+ action: y.formatMessage({
9481
9533
  id: `discussion_action_${e.type}`
9482
9534
  })
9483
9535
  }
@@ -9487,7 +9539,7 @@ const Me = "discussion_", Cc = 280, cn = ({
9487
9539
  create: o,
9488
9540
  handleSaveEdit: G,
9489
9541
  handleCancel: () => {
9490
- q(""), W({ ...O, isEditing: !1 });
9542
+ q(""), W({ ...A, isEditing: !1 });
9491
9543
  }
9492
9544
  },
9493
9545
  gtmContext: `${g}Form`
@@ -9513,7 +9565,7 @@ const Me = "discussion_", Cc = 280, cn = ({
9513
9565
  children: te
9514
9566
  }
9515
9567
  ),
9516
- !O.isEditing && !(i != null && i.actionBar) && /* @__PURE__ */ a.jsxs(
9568
+ !A.isEditing && !(i != null && i.actionBar) && /* @__PURE__ */ a.jsxs(
9517
9569
  "ul",
9518
9570
  {
9519
9571
  className: S("actions text-medium", e.type),
@@ -9527,7 +9579,7 @@ const Me = "discussion_", Cc = 280, cn = ({
9527
9579
  isShort: !1,
9528
9580
  userLiked: B,
9529
9581
  content: { type: e.type, slugs: e.slugs },
9530
- canLike: j,
9582
+ canLike: k,
9531
9583
  peopleWhoLiked: e.peopleWhoLiked,
9532
9584
  functions: {
9533
9585
  createLike: l,
@@ -9539,8 +9591,8 @@ const Me = "discussion_", Cc = 280, cn = ({
9539
9591
  "li",
9540
9592
  {
9541
9593
  className: "action-button",
9542
- onClick: (F) => {
9543
- F.preventDefault(), F.stopPropagation(), m.comments && (window.location.href = m.comments), typeof f == "function" && f();
9594
+ onClick: (O) => {
9595
+ O.preventDefault(), O.stopPropagation(), m.comments && (window.location.href = m.comments), typeof f == "function" && f();
9544
9596
  },
9545
9597
  children: [
9546
9598
  /* @__PURE__ */ a.jsx(
@@ -9555,13 +9607,13 @@ const Me = "discussion_", Cc = 280, cn = ({
9555
9607
  className: "gtm-trackable",
9556
9608
  "data-gtm-event-context": g,
9557
9609
  "data-gtm-event-type": `answer-${e.type}-click`,
9558
- screenreaderText: v.formatMessage(
9610
+ screenreaderText: y.formatMessage(
9559
9611
  { id: `${Me}comments_screenReader` },
9560
9612
  { count: $ }
9561
9613
  )
9562
9614
  }
9563
9615
  ),
9564
- /* @__PURE__ */ a.jsx("span", { children: v.formatMessage(
9616
+ /* @__PURE__ */ a.jsx("span", { children: y.formatMessage(
9565
9617
  { id: `${Me}comments` },
9566
9618
  { count: $ }
9567
9619
  ) })
@@ -9575,7 +9627,7 @@ const Me = "discussion_", Cc = 280, cn = ({
9575
9627
  size: "medium",
9576
9628
  styling: { muted: !0 },
9577
9629
  onClick: V,
9578
- children: v.formatMessage({ id: `${Me}reply` })
9630
+ children: y.formatMessage({ id: `${Me}reply` })
9579
9631
  }
9580
9632
  ) }),
9581
9633
  /* @__PURE__ */ a.jsx(
@@ -9592,7 +9644,7 @@ const Me = "discussion_", Cc = 280, cn = ({
9592
9644
  ]
9593
9645
  }
9594
9646
  ),
9595
- y,
9647
+ v,
9596
9648
  /* @__PURE__ */ a.jsx(
9597
9649
  an,
9598
9650
  {
@@ -9601,30 +9653,30 @@ const Me = "discussion_", Cc = 280, cn = ({
9601
9653
  functions: { onOpen: () => {
9602
9654
  }, onClose: () => z(!1) },
9603
9655
  forceShow: {
9604
- error: P === "delete-error" ? v.formatMessage(
9656
+ error: P === "delete-error" ? y.formatMessage(
9605
9657
  { id: "discussion_delete_error" },
9606
9658
  {
9607
- action: v.formatMessage({
9659
+ action: y.formatMessage({
9608
9660
  id: `discussion_action_${e.type}`
9609
9661
  })
9610
9662
  }
9611
9663
  ) : !1
9612
9664
  },
9613
- title: v.formatMessage(
9665
+ title: y.formatMessage(
9614
9666
  { id: "discussion_delete_title" },
9615
- { action: v.formatMessage({ id: `discussion_action_${e.type}` }) }
9667
+ { action: y.formatMessage({ id: `discussion_action_${e.type}` }) }
9616
9668
  ),
9617
9669
  buttons: [
9618
9670
  {
9619
9671
  variant: "secondary",
9620
9672
  onClick: () => z(!1),
9621
- children: v.formatMessage({ id: "discussion_delete_cancel" })
9673
+ children: y.formatMessage({ id: "discussion_delete_cancel" })
9622
9674
  },
9623
9675
  {
9624
9676
  variant: "primary",
9625
9677
  className: "destructive",
9626
9678
  onClick: ee,
9627
- children: v.formatMessage({ id: "discussion_delete_delete" })
9679
+ children: y.formatMessage({ id: "discussion_delete_delete" })
9628
9680
  }
9629
9681
  ],
9630
9682
  gtmContext: `${e.type.charAt(0).toUpperCase()}${e.type.slice(1)}:${e.slug}`,
@@ -9633,8 +9685,8 @@ const Me = "discussion_", Cc = 280, cn = ({
9633
9685
  {
9634
9686
  id: "discussion_delete_text",
9635
9687
  values: {
9636
- p: (F) => /* @__PURE__ */ a.jsx("p", { children: F }),
9637
- action: v.formatMessage({
9688
+ p: (O) => /* @__PURE__ */ a.jsx("p", { children: O }),
9689
+ action: y.formatMessage({
9638
9690
  id: `discussion_action_${e.type}`
9639
9691
  })
9640
9692
  }
@@ -10077,7 +10129,7 @@ function Wc({
10077
10129
  },
10078
10130
  user: d,
10079
10131
  ...l
10080
- }, f = qc({ ...u, mutationFn: t }), m = Uc({ ...u, mutationFn: e }), p = zc({ ...u, mutationFn: n }), g = Hc({ ...u, mutationFn: s }), y = Vc({ ...u, mutationFn: i }), { activities: _, ...v } = Zc({ queryKey: o, queryFn: r });
10132
+ }, f = qc({ ...u, mutationFn: t }), m = Uc({ ...u, mutationFn: e }), p = zc({ ...u, mutationFn: n }), g = Hc({ ...u, mutationFn: s }), v = Vc({ ...u, mutationFn: i }), { activities: _, ...y } = Zc({ queryKey: o, queryFn: r });
10081
10133
  return {
10082
10134
  activities: _,
10083
10135
  mutations: {
@@ -10085,10 +10137,10 @@ function Wc({
10085
10137
  edit: m,
10086
10138
  remove: g,
10087
10139
  like: p,
10088
- unlike: y
10140
+ unlike: v
10089
10141
  },
10090
10142
  user: d,
10091
- ...v
10143
+ ...y
10092
10144
  };
10093
10145
  }
10094
10146
  function zc({
@@ -10210,15 +10262,15 @@ const pu = ({
10210
10262
  fetchNextPage: l,
10211
10263
  hasNextPage: u,
10212
10264
  isLoading: f,
10213
- mutations: { create: m, edit: p, remove: g, like: y, unlike: _ },
10214
- user: v
10265
+ mutations: { create: m, edit: p, remove: g, like: v, unlike: _ },
10266
+ user: y
10215
10267
  } = Wc({
10216
10268
  queryKey: [t, e, "activities"],
10217
10269
  queryFns: r
10218
10270
  });
10219
10271
  if (Ja(), d)
10220
10272
  return /* @__PURE__ */ a.jsx(He, { variant: "error", text: d.message });
10221
- const b = (c == null ? void 0 : c.length) || 0;
10273
+ const x = (c == null ? void 0 : c.length) || 0;
10222
10274
  return /* @__PURE__ */ a.jsxs("section", { children: [
10223
10275
  /* @__PURE__ */ a.jsx(
10224
10276
  Va,
@@ -10237,20 +10289,20 @@ const pu = ({
10237
10289
  }
10238
10290
  }
10239
10291
  ),
10240
- c == null ? void 0 : c.map((E, k) => {
10241
- var O, W, Z, z, K, T, P, q;
10292
+ c == null ? void 0 : c.map((E, w) => {
10293
+ var A, W, Z, z, K, T, P, q;
10242
10294
  const {
10243
- id: w,
10244
- own_reactions: D,
10295
+ id: b,
10296
+ own_reactions: F,
10245
10297
  latest_reactions: R,
10246
10298
  reaction_counts: Q
10247
- } = E, B = (((O = R == null ? void 0 : R.like) == null ? void 0 : O.length) || 0) > 0, $ = (((W = D == null ? void 0 : D.like) == null ? void 0 : W.length) || 0) > 0, C = $ ? D == null ? void 0 : D.like[0].id : "", j = B ? (Z = R == null ? void 0 : R.like) == null ? void 0 : Z.map((L) => {
10299
+ } = E, B = (((A = R == null ? void 0 : R.like) == null ? void 0 : A.length) || 0) > 0, $ = (((W = F == null ? void 0 : F.like) == null ? void 0 : W.length) || 0) > 0, C = $ ? F == null ? void 0 : F.like[0].id : "", k = B ? (Z = R == null ? void 0 : R.like) == null ? void 0 : Z.map((L) => {
10248
10300
  var U, te, G;
10249
10301
  return {
10250
10302
  id: (U = L == null ? void 0 : L.user) == null ? void 0 : U.id,
10251
10303
  name: (G = (te = L == null ? void 0 : L.user) == null ? void 0 : te.data) == null ? void 0 : G.name
10252
10304
  };
10253
- }) : !1, x = E == null ? void 0 : E.actor, N = (x == null ? void 0 : x.id) === (v == null ? void 0 : v.id);
10305
+ }) : !1, j = E == null ? void 0 : E.actor, N = (j == null ? void 0 : j.id) === (y == null ? void 0 : y.id);
10254
10306
  return /* @__PURE__ */ a.jsxs(yt, { children: [
10255
10307
  /* @__PURE__ */ a.jsx(
10256
10308
  cn,
@@ -10262,38 +10314,38 @@ const pu = ({
10262
10314
  createdAt: (E == null ? void 0 : E.time) || "",
10263
10315
  slugs: {
10264
10316
  question: `${t}/${e}`,
10265
- answer: w
10317
+ answer: b
10266
10318
  },
10267
- slug: w,
10319
+ slug: b,
10268
10320
  author: {
10269
- id: x == null ? void 0 : x.id,
10270
- name: (z = x == null ? void 0 : x.data) == null ? void 0 : z.name,
10271
- organization: (K = x == null ? void 0 : x.data) == null ? void 0 : K.organization,
10272
- jobTitle: (T = x == null ? void 0 : x.data) == null ? void 0 : T.jobTitle,
10273
- location: (P = x == null ? void 0 : x.data) == null ? void 0 : P.location,
10321
+ id: j == null ? void 0 : j.id,
10322
+ name: (z = j == null ? void 0 : j.data) == null ? void 0 : z.name,
10323
+ organization: (K = j == null ? void 0 : j.data) == null ? void 0 : K.organization,
10324
+ jobTitle: (T = j == null ? void 0 : j.data) == null ? void 0 : T.jobTitle,
10325
+ location: (P = j == null ? void 0 : j.data) == null ? void 0 : P.location,
10274
10326
  image: {
10275
- thumbnail: ((q = x == null ? void 0 : x.data) == null ? void 0 : q.thumbnail) || void 0
10327
+ thumbnail: ((q = j == null ? void 0 : j.data) == null ? void 0 : q.thumbnail) || void 0
10276
10328
  }
10277
10329
  },
10278
10330
  userLiked: $,
10279
10331
  likes: (Q == null ? void 0 : Q.like) || 0,
10280
10332
  comments: (Q == null ? void 0 : Q.reply) || 0,
10281
- peopleWhoLiked: j
10333
+ peopleWhoLiked: k
10282
10334
  },
10283
10335
  links: {
10284
- post: `${t}/${e}/${w}`,
10285
- comments: `${t}/${e}/${w}`
10336
+ post: `${t}/${e}/${b}`,
10337
+ comments: `${t}/${e}/${b}`
10286
10338
  },
10287
10339
  functions: {
10288
10340
  content: {
10289
10341
  createContent: () => null,
10290
- deleteContent: () => g({ activityId: w }),
10342
+ deleteContent: () => g({ activityId: b }),
10291
10343
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
10292
- updateContent: (L, { body: U }) => p({ activityId: w, content: U })
10344
+ updateContent: (L, { body: U }) => p({ activityId: b, content: U })
10293
10345
  },
10294
10346
  likes: {
10295
- createLike: () => y({ activityId: w }),
10296
- deleteLike: () => _({ activityId: w, reactionId: C })
10347
+ createLike: () => v({ activityId: b }),
10348
+ deleteLike: () => _({ activityId: b, reactionId: C })
10297
10349
  },
10298
10350
  comments: {
10299
10351
  openComments: () => null
@@ -10302,8 +10354,8 @@ const pu = ({
10302
10354
  isTruncated: !0
10303
10355
  }
10304
10356
  ),
10305
- b > k + 1 && /* @__PURE__ */ a.jsx(Oe, {})
10306
- ] }, w);
10357
+ x > w + 1 && /* @__PURE__ */ a.jsx(Oe, {})
10358
+ ] }, b);
10307
10359
  }),
10308
10360
  !f && /* @__PURE__ */ a.jsx(
10309
10361
  sn,
@@ -10934,7 +10986,7 @@ function es({
10934
10986
  },
10935
10987
  user: d,
10936
10988
  ...l
10937
- }, f = Gc({ ...u, mutationFn: t }), m = Qc({ ...u, mutationFn: e }), p = Jc({ ...u, mutationFn: n }), g = el({ ...u, mutationFn: s }), y = tl({ ...u, mutationFn: i }), { replies: _, ...v } = Xc({ queryKey: o, queryFn: r });
10989
+ }, f = Gc({ ...u, mutationFn: t }), m = Qc({ ...u, mutationFn: e }), p = Jc({ ...u, mutationFn: n }), g = el({ ...u, mutationFn: s }), v = tl({ ...u, mutationFn: i }), { replies: _, ...y } = Xc({ queryKey: o, queryFn: r });
10938
10990
  return {
10939
10991
  replies: _,
10940
10992
  mutations: {
@@ -10942,10 +10994,10 @@ function es({
10942
10994
  edit: m,
10943
10995
  remove: g,
10944
10996
  like: p,
10945
- unlike: y
10997
+ unlike: v
10946
10998
  },
10947
10999
  user: d,
10948
- ...v
11000
+ ...y
10949
11001
  };
10950
11002
  }
10951
11003
  function Jc({
@@ -11080,7 +11132,7 @@ const ol = ({
11080
11132
  hasNextPage: d,
11081
11133
  isLoading: l,
11082
11134
  mutations: { create: u, edit: f, like: m, remove: p, unlike: g },
11083
- user: y
11135
+ user: v
11084
11136
  } = es({
11085
11137
  queryKey: [t, e, n, r, "replies"],
11086
11138
  queryFns: {
@@ -11104,27 +11156,27 @@ const ol = ({
11104
11156
  },
11105
11157
  functions: {
11106
11158
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
11107
- create: (_, { body: v }) => u({ activityId: n, replyId: r, content: v })
11159
+ create: (_, { body: y }) => u({ activityId: n, replyId: r, content: y })
11108
11160
  },
11109
11161
  meta: { isEditing: !1, showSuccessMessage: !1 }
11110
11162
  },
11111
11163
  children: o && o.length > 0 ? o == null ? void 0 : o.map((_) => {
11112
- var O, W, Z, z, K, T, P, q, L, U, te, G;
11164
+ var A, W, Z, z, K, T, P, q, L, U, te, G;
11113
11165
  const {
11114
- id: v,
11115
- own_children: b,
11166
+ id: y,
11167
+ own_children: x,
11116
11168
  latest_children: E,
11117
- children_counts: k
11118
- } = _, D = (((O = b == null ? void 0 : b.like) == null ? void 0 : O.length) || 0) > 0 ? (W = b == null ? void 0 : b.like) == null ? void 0 : W.find((V) => {
11169
+ children_counts: w
11170
+ } = _, F = (((A = x == null ? void 0 : x.like) == null ? void 0 : A.length) || 0) > 0 ? (W = x == null ? void 0 : x.like) == null ? void 0 : W.find((V) => {
11119
11171
  var ee;
11120
- return ((ee = V == null ? void 0 : V.user) == null ? void 0 : ee.id) === (y == null ? void 0 : y.id);
11121
- }) : !1, R = D ? D == null ? void 0 : D.id : "", Q = !!D, $ = (((Z = E == null ? void 0 : E.like) == null ? void 0 : Z.length) || 0) > 0 ? (z = E == null ? void 0 : E.like) == null ? void 0 : z.map((V) => {
11122
- var ee, re, F;
11172
+ return ((ee = V == null ? void 0 : V.user) == null ? void 0 : ee.id) === (v == null ? void 0 : v.id);
11173
+ }) : !1, R = F ? F == null ? void 0 : F.id : "", Q = !!F, $ = (((Z = E == null ? void 0 : E.like) == null ? void 0 : Z.length) || 0) > 0 ? (z = E == null ? void 0 : E.like) == null ? void 0 : z.map((V) => {
11174
+ var ee, re, O;
11123
11175
  return {
11124
11176
  id: (ee = V == null ? void 0 : V.user) == null ? void 0 : ee.id,
11125
- name: (F = (re = V == null ? void 0 : V.user) == null ? void 0 : re.data) == null ? void 0 : F.name
11177
+ name: (O = (re = V == null ? void 0 : V.user) == null ? void 0 : re.data) == null ? void 0 : O.name
11126
11178
  };
11127
- }) : !1, C = _ == null ? void 0 : _.user, j = (C == null ? void 0 : C.id) === (y == null ? void 0 : y.id), x = on(s, j), N = typeof _.data.content == "string" ? (K = _ == null ? void 0 : _.data) == null ? void 0 : K.content : (
11179
+ }) : !1, C = _ == null ? void 0 : _.user, k = (C == null ? void 0 : C.id) === (v == null ? void 0 : v.id), j = on(s, k), N = typeof _.data.content == "string" ? (K = _ == null ? void 0 : _.data) == null ? void 0 : K.content : (
11128
11180
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
11129
11181
  ((P = (T = _ == null ? void 0 : _.data) == null ? void 0 : T.content) == null ? void 0 : P.text) || ""
11130
11182
  );
@@ -11132,10 +11184,10 @@ const ol = ({
11132
11184
  cn,
11133
11185
  {
11134
11186
  content: {
11135
- id: v,
11187
+ id: y,
11136
11188
  type: "reply",
11137
11189
  body: N,
11138
- canLike: x,
11190
+ canLike: j,
11139
11191
  createdAt: _ == null ? void 0 : _.created_at,
11140
11192
  slugs: {
11141
11193
  question: `${t}/${e}`,
@@ -11156,24 +11208,24 @@ const ol = ({
11156
11208
  }
11157
11209
  },
11158
11210
  userLiked: Q,
11159
- likes: (k == null ? void 0 : k.like) || 0,
11211
+ likes: (w == null ? void 0 : w.like) || 0,
11160
11212
  peopleWhoLiked: $
11161
11213
  },
11162
11214
  functions: {
11163
11215
  content: {
11164
11216
  createContent: () => null,
11165
- deleteContent: () => p({ replyId: v }),
11217
+ deleteContent: () => p({ replyId: y }),
11166
11218
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
11167
- updateContent: (V, { body: ee }) => f({ replyId: v, content: ee })
11219
+ updateContent: (V, { body: ee }) => f({ replyId: y, content: ee })
11168
11220
  },
11169
11221
  likes: {
11170
- createLike: () => m({ replyId: v }),
11171
- deleteLike: () => g({ replyId: v, reactionId: R })
11222
+ createLike: () => m({ replyId: y }),
11223
+ deleteLike: () => g({ replyId: y, reactionId: R })
11172
11224
  },
11173
11225
  comments: {}
11174
11226
  }
11175
11227
  },
11176
- v
11228
+ y
11177
11229
  );
11178
11230
  }) : null
11179
11231
  }
@@ -11191,8 +11243,8 @@ const ol = ({
11191
11243
  fetchNextPage: u,
11192
11244
  hasNextPage: f,
11193
11245
  isLoading: m,
11194
- mutations: { create: p, edit: g, like: y, remove: _, unlike: v },
11195
- user: b
11246
+ mutations: { create: p, edit: g, like: v, remove: _, unlike: y },
11247
+ user: x
11196
11248
  } = es({
11197
11249
  queryKey: [t, e, n, "replies"],
11198
11250
  queryFns: s
@@ -11206,7 +11258,7 @@ const ol = ({
11206
11258
  content: { type: "reply", slugs: {} },
11207
11259
  functions: {
11208
11260
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
11209
- create: (E, { body: k }) => p({ activityId: n, content: k })
11261
+ create: (E, { body: w }) => p({ activityId: n, content: w })
11210
11262
  },
11211
11263
  meta: { isEditing: !1, showSuccessMessage: !1 },
11212
11264
  placeholder: c.formatMessage({ id: "discussion_responses_placeholder" })
@@ -11222,16 +11274,16 @@ const ol = ({
11222
11274
  ),
11223
11275
  d == null ? void 0 : d.map((E) => {
11224
11276
  var z, K, T, P, q, L, U, te, G, V, ee, re;
11225
- const { id: k, own_children: w, latest_children: D, children_counts: R } = E, B = (((z = w == null ? void 0 : w.like) == null ? void 0 : z.length) || 0) > 0 ? (K = w == null ? void 0 : w.like) == null ? void 0 : K.find((F) => {
11277
+ const { id: w, own_children: b, latest_children: F, children_counts: R } = E, B = (((z = b == null ? void 0 : b.like) == null ? void 0 : z.length) || 0) > 0 ? (K = b == null ? void 0 : b.like) == null ? void 0 : K.find((O) => {
11226
11278
  var oe;
11227
- return ((oe = F == null ? void 0 : F.user) == null ? void 0 : oe.id) === (b == null ? void 0 : b.id);
11228
- }) : !1, $ = B ? B == null ? void 0 : B.id : "", C = !!B, x = (((T = D == null ? void 0 : D.like) == null ? void 0 : T.length) || 0) > 0 ? (P = D == null ? void 0 : D.like) == null ? void 0 : P.map((F) => {
11229
- var oe, A, ve;
11279
+ return ((oe = O == null ? void 0 : O.user) == null ? void 0 : oe.id) === (x == null ? void 0 : x.id);
11280
+ }) : !1, $ = B ? B == null ? void 0 : B.id : "", C = !!B, j = (((T = F == null ? void 0 : F.like) == null ? void 0 : T.length) || 0) > 0 ? (P = F == null ? void 0 : F.like) == null ? void 0 : P.map((O) => {
11281
+ var oe, D, ve;
11230
11282
  return {
11231
- id: (oe = F == null ? void 0 : F.user) == null ? void 0 : oe.id,
11232
- name: (ve = (A = F == null ? void 0 : F.user) == null ? void 0 : A.data) == null ? void 0 : ve.name
11283
+ id: (oe = O == null ? void 0 : O.user) == null ? void 0 : oe.id,
11284
+ name: (ve = (D = O == null ? void 0 : O.user) == null ? void 0 : D.data) == null ? void 0 : ve.name
11233
11285
  };
11234
- }) : !1, N = E == null ? void 0 : E.user, O = (N == null ? void 0 : N.id) === (b == null ? void 0 : b.id), W = on(r, O), Z = typeof E.data.content == "string" ? (q = E == null ? void 0 : E.data) == null ? void 0 : q.content : (
11286
+ }) : !1, N = E == null ? void 0 : E.user, A = (N == null ? void 0 : N.id) === (x == null ? void 0 : x.id), W = on(r, A), Z = typeof E.data.content == "string" ? (q = E == null ? void 0 : E.data) == null ? void 0 : q.content : (
11235
11287
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
11236
11288
  ((U = (L = E == null ? void 0 : E.data) == null ? void 0 : L.content) == null ? void 0 : U.text) || ""
11237
11289
  );
@@ -11239,7 +11291,7 @@ const ol = ({
11239
11291
  cn,
11240
11292
  {
11241
11293
  content: {
11242
- id: k,
11294
+ id: w,
11243
11295
  type: "reply",
11244
11296
  body: Z,
11245
11297
  canLike: W,
@@ -11247,9 +11299,9 @@ const ol = ({
11247
11299
  slugs: {
11248
11300
  question: `${t}/${e}`,
11249
11301
  answer: n,
11250
- reply: k
11302
+ reply: w
11251
11303
  },
11252
- slug: k,
11304
+ slug: w,
11253
11305
  author: {
11254
11306
  id: N == null ? void 0 : N.id,
11255
11307
  name: (te = N.data) == null ? void 0 : te.name,
@@ -11262,18 +11314,18 @@ const ol = ({
11262
11314
  },
11263
11315
  userLiked: C,
11264
11316
  likes: (R == null ? void 0 : R.like) || 0,
11265
- peopleWhoLiked: x
11317
+ peopleWhoLiked: j
11266
11318
  },
11267
11319
  functions: {
11268
11320
  content: {
11269
11321
  createContent: () => null,
11270
- deleteContent: () => _({ replyId: k }),
11322
+ deleteContent: () => _({ replyId: w }),
11271
11323
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
11272
- updateContent: (F, { body: oe }) => g({ replyId: k, content: oe })
11324
+ updateContent: (O, { body: oe }) => g({ replyId: w, content: oe })
11273
11325
  },
11274
11326
  likes: {
11275
- createLike: () => y({ replyId: k }),
11276
- deleteLike: () => v({ replyId: k, reactionId: $ })
11327
+ createLike: () => v({ replyId: w }),
11328
+ deleteLike: () => y({ replyId: w, reactionId: $ })
11277
11329
  },
11278
11330
  comments: {}
11279
11331
  },
@@ -11283,7 +11335,7 @@ const ol = ({
11283
11335
  basePath: t,
11284
11336
  parentId: e,
11285
11337
  activityId: n,
11286
- replyId: k,
11338
+ replyId: w,
11287
11339
  isMember: r,
11288
11340
  functions: {
11289
11341
  ...s
@@ -11291,8 +11343,8 @@ const ol = ({
11291
11343
  }
11292
11344
  )
11293
11345
  },
11294
- k
11295
- ) }, k);
11346
+ w
11347
+ ) }, w);
11296
11348
  }),
11297
11349
  !m && /* @__PURE__ */ a.jsx(
11298
11350
  sn,
@@ -11413,12 +11465,12 @@ const gu = ({
11413
11465
  leave: d
11414
11466
  }
11415
11467
  }) => {
11416
- var B, $, C, j, x, N, O, W, Z, z;
11468
+ var B, $, C, k, j, N, A, W, Z, z;
11417
11469
  const l = H(), u = Ee(De), {
11418
11470
  activity: f,
11419
11471
  error: m,
11420
11472
  isLoading: p,
11421
- mutations: { edit: g, like: y, unlike: _ }
11473
+ mutations: { edit: g, like: v, unlike: _ }
11422
11474
  } = dl({
11423
11475
  queryFns: i,
11424
11476
  queryKey: [t, e, n]
@@ -11433,7 +11485,7 @@ const gu = ({
11433
11485
  text: l.formatMessage({ id: "activitySection_notFoundError" })
11434
11486
  }
11435
11487
  );
11436
- const { own_reactions: v, latest_reactions: b } = f, E = (((B = b == null ? void 0 : b.like) == null ? void 0 : B.length) || 0) > 0, k = ((($ = v == null ? void 0 : v.like) == null ? void 0 : $.length) || 0) > 0, w = k ? v == null ? void 0 : v.like[0].id : "", D = E ? (C = b == null ? void 0 : b.like) == null ? void 0 : C.map((K) => {
11488
+ const { own_reactions: y, latest_reactions: x } = f, E = (((B = x == null ? void 0 : x.like) == null ? void 0 : B.length) || 0) > 0, w = ((($ = y == null ? void 0 : y.like) == null ? void 0 : $.length) || 0) > 0, b = w ? y == null ? void 0 : y.like[0].id : "", F = E ? (C = x == null ? void 0 : x.like) == null ? void 0 : C.map((K) => {
11437
11489
  var T, P, q;
11438
11490
  return {
11439
11491
  id: (T = K == null ? void 0 : K.user) == null ? void 0 : T.id,
@@ -11458,18 +11510,18 @@ const gu = ({
11458
11510
  slug: n,
11459
11511
  author: {
11460
11512
  id: R.id,
11461
- name: (j = R.data) == null ? void 0 : j.name,
11462
- organization: (x = R.data) == null ? void 0 : x.organization,
11513
+ name: (k = R.data) == null ? void 0 : k.name,
11514
+ organization: (j = R.data) == null ? void 0 : j.organization,
11463
11515
  jobTitle: (N = R.data) == null ? void 0 : N.jobTitle,
11464
- location: (O = R.data) == null ? void 0 : O.location,
11516
+ location: (A = R.data) == null ? void 0 : A.location,
11465
11517
  image: {
11466
11518
  thumbnail: ((W = R.data) == null ? void 0 : W.thumbnail) || void 0
11467
11519
  }
11468
11520
  },
11469
- userLiked: k,
11521
+ userLiked: w,
11470
11522
  likes: ((Z = f == null ? void 0 : f.reaction_counts) == null ? void 0 : Z.like) || 0,
11471
11523
  comments: ((z = f == null ? void 0 : f.reaction_counts) == null ? void 0 : z.reply) || 0,
11472
- peopleWhoLiked: D
11524
+ peopleWhoLiked: F
11473
11525
  },
11474
11526
  originalAuthorId: R == null ? void 0 : R.id,
11475
11527
  forceHide: { comments: !0 },
@@ -11481,8 +11533,8 @@ const gu = ({
11481
11533
  updateContent: (K, { body: T }) => g({ content: T })
11482
11534
  },
11483
11535
  likes: {
11484
- createLike: () => y({ activityId: n }),
11485
- deleteLike: () => _({ activityId: n, reactionId: w })
11536
+ createLike: () => v({ activityId: n }),
11537
+ deleteLike: () => _({ activityId: n, reactionId: b })
11486
11538
  },
11487
11539
  comments: {
11488
11540
  openComments: () => {