@apolitical/component-library 3.3.6 → 3.4.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/index.mjs CHANGED
@@ -1,4 +1,4 @@
1
- import Y, { memo as Ae, useState as X, useEffect as ae, useRef as pe, useMemo as _t, Children as Bn, createContext as nn, useContext as Ee, useCallback as sa, useReducer as Yn, Fragment as bt, Suspense as xs } from "react";
1
+ import Y, { memo as De, useState as X, useEffect as ae, useRef as pe, useMemo as xt, Children as Bn, createContext as nn, useContext as Ee, useCallback as sa, useReducer as Yn, Fragment as yt, Suspense as xs } from "react";
2
2
  import pt from "lodash.clonedeep";
3
3
  import ws from "lodash.set";
4
4
  import { FormattedMessage as ye, useIntl as H, IntlProvider as js, createIntl as ks } from "react-intl";
@@ -6,7 +6,7 @@ import Fe from "markdown-to-jsx";
6
6
  import et from "truncate";
7
7
  import { QueryClient as Ts, QueryClientProvider as Es, useMutation as je, useQueryClient as Kn, useInfiniteQuery as ia, useQuery as Ss } from "@tanstack/react-query";
8
8
  import { ReactQueryDevtools as Cs } from "@tanstack/react-query-devtools";
9
- import At from "posthog-js";
9
+ import It from "posthog-js";
10
10
  import { CookiesProvider as $s, useCookies as oa } from "react-cookie";
11
11
  import { ReactMultiEmail as Ns } from "react-multi-email";
12
12
  import ca from "lodash.get";
@@ -84,11 +84,11 @@ const S = /* @__PURE__ */ la(Fs), Os = ({
84
84
  ...s,
85
85
  className: S("hidden", r, { "show-on-focus": e }),
86
86
  children: n
87
- }), be = Ae(Os), Ds = ({
87
+ }), be = De(Os), As = ({
88
88
  element: t = "span",
89
89
  children: e = null,
90
90
  ...n
91
- }) => Y.createElement(t, { ...n, "aria-hidden": !0 }, e), Gn = Ae(Ds);
91
+ }) => Y.createElement(t, { ...n, "aria-hidden": !0 }, e), Gn = De(As);
92
92
  var qn = { exports: {} }, it = {};
93
93
  /**
94
94
  * @license React
@@ -100,7 +100,7 @@ var qn = { exports: {} }, it = {};
100
100
  * LICENSE file in the root directory of this source tree.
101
101
  */
102
102
  var xr;
103
- function As() {
103
+ function Ds() {
104
104
  if (xr)
105
105
  return it;
106
106
  xr = 1;
@@ -155,16 +155,16 @@ function Is() {
155
155
  me.unshift("Warning: " + M), Function.prototype.apply.call(console[h], console, me);
156
156
  }
157
157
  }
158
- var j = !1, w = !1, F = !1, R = !1, Q = !1, N;
159
- N = Symbol.for("react.module.reference");
160
- function O(h) {
161
- return !!(typeof h == "string" || typeof h == "function" || h === r || h === i || Q || h === s || h === l || h === u || R || h === p || j || w || F || typeof h == "object" && h !== null && (h.$$typeof === m || h.$$typeof === d || h.$$typeof === o || h.$$typeof === c || h.$$typeof === f || // This needs to include all possible module reference object
158
+ var j = !1, w = !1, I = !1, R = !1, Q = !1, C;
159
+ C = Symbol.for("react.module.reference");
160
+ function F(h) {
161
+ return !!(typeof h == "string" || typeof h == "function" || h === r || h === i || Q || h === s || h === l || h === u || R || h === p || j || w || I || typeof h == "object" && h !== null && (h.$$typeof === m || h.$$typeof === d || h.$$typeof === o || h.$$typeof === c || h.$$typeof === f || // 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.
165
- h.$$typeof === N || h.getModuleId !== void 0));
165
+ h.$$typeof === C || h.getModuleId !== void 0));
166
166
  }
167
- function C(h, M, L) {
167
+ function $(h, M, L) {
168
168
  var ne = h.displayName;
169
169
  if (ne)
170
170
  return ne;
@@ -204,7 +204,7 @@ function Is() {
204
204
  var L = h;
205
205
  return T(L._context) + ".Provider";
206
206
  case f:
207
- return C(h, h.render, "ForwardRef");
207
+ return $(h, h.render, "ForwardRef");
208
208
  case d:
209
209
  var ne = h.displayName || null;
210
210
  return ne !== null ? ne : x(h.type) || "Memo";
@@ -219,7 +219,7 @@ function Is() {
219
219
  }
220
220
  return null;
221
221
  }
222
- var $ = Object.assign, A = 0, W, Z, z, K, E, P, q;
222
+ var N = Object.assign, A = 0, W, Z, z, K, E, P, q;
223
223
  function B() {
224
224
  }
225
225
  B.__reactDisabledLog = !0;
@@ -255,25 +255,25 @@ function Is() {
255
255
  writable: !0
256
256
  };
257
257
  Object.defineProperties(console, {
258
- log: $({}, h, {
258
+ log: N({}, h, {
259
259
  value: W
260
260
  }),
261
- info: $({}, h, {
261
+ info: N({}, h, {
262
262
  value: Z
263
263
  }),
264
- warn: $({}, h, {
264
+ warn: N({}, h, {
265
265
  value: z
266
266
  }),
267
- error: $({}, h, {
267
+ error: N({}, h, {
268
268
  value: K
269
269
  }),
270
- group: $({}, h, {
270
+ group: N({}, h, {
271
271
  value: E
272
272
  }),
273
- groupCollapsed: $({}, h, {
273
+ groupCollapsed: N({}, h, {
274
274
  value: P
275
275
  }),
276
- groupEnd: $({}, h, {
276
+ groupEnd: N({}, h, {
277
277
  value: q
278
278
  })
279
279
  });
@@ -295,16 +295,16 @@ function Is() {
295
295
  ` + V + h;
296
296
  }
297
297
  }
298
- var re = !1, D;
298
+ var re = !1, O;
299
299
  {
300
300
  var oe = typeof WeakMap == "function" ? WeakMap : Map;
301
- D = new oe();
301
+ O = new oe();
302
302
  }
303
- function I(h, M) {
303
+ function D(h, M) {
304
304
  if (!h || re)
305
305
  return "";
306
306
  {
307
- var L = D.get(h);
307
+ var L = O.get(h);
308
308
  if (L !== void 0)
309
309
  return L;
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" && D.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" && D.set(h, _r), _r;
372
+ return typeof h == "function" && O.set(h, _r), _r;
373
373
  }
374
374
  function ve(h, M, L) {
375
- return I(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 I(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,8 +407,8 @@ function Is() {
407
407
  }
408
408
  return "";
409
409
  }
410
- var qe = Object.prototype.hasOwnProperty, cr = {}, lr = v.ReactDebugCurrentFrame;
411
- function kt(h) {
410
+ var Ue = Object.prototype.hasOwnProperty, cr = {}, lr = v.ReactDebugCurrentFrame;
411
+ function Tt(h) {
412
412
  if (h) {
413
413
  var M = h._owner, L = Ce(h.type, h._source, M ? M.type : null);
414
414
  lr.setExtraStackFrame(L);
@@ -417,7 +417,7 @@ function Is() {
417
417
  }
418
418
  function ts(h, M, L, ne, le) {
419
419
  {
420
- var me = Function.call.bind(qe);
420
+ var me = Function.call.bind(Ue);
421
421
  for (var ce in h)
422
422
  if (me(h, ce)) {
423
423
  var ie = void 0;
@@ -430,7 +430,7 @@ function Is() {
430
430
  } catch (he) {
431
431
  ie = he;
432
432
  }
433
- ie && !(ie instanceof Error) && (kt(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", L, ce, typeof ie), kt(null)), ie instanceof Error && !(ie.message in cr) && (cr[ie.message] = !0, kt(le), b("Failed %s type: %s", L, ie.message), kt(null));
433
+ ie && !(ie instanceof Error) && (Tt(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", L, ce, typeof ie), Tt(null)), ie instanceof Error && !(ie.message in cr) && (cr[ie.message] = !0, Tt(le), b("Failed %s type: %s", L, ie.message), Tt(null));
434
434
  }
435
435
  }
436
436
  }
@@ -466,7 +466,7 @@ function Is() {
466
466
  }, fr, mr, un;
467
467
  un = {};
468
468
  function is(h) {
469
- if (qe.call(h, "ref")) {
469
+ if (Ue.call(h, "ref")) {
470
470
  var M = Object.getOwnPropertyDescriptor(h, "ref").get;
471
471
  if (M && M.isReactWarning)
472
472
  return !1;
@@ -474,7 +474,7 @@ function Is() {
474
474
  return h.ref !== void 0;
475
475
  }
476
476
  function os(h) {
477
- if (qe.call(h, "key")) {
477
+ if (Ue.call(h, "key")) {
478
478
  var M = Object.getOwnPropertyDescriptor(h, "key").get;
479
479
  if (M && M.isReactWarning)
480
480
  return !1;
@@ -543,7 +543,7 @@ function Is() {
543
543
  var me, ce = {}, ie = null, xe = null;
544
544
  L !== void 0 && (dr(L), ie = "" + L), os(M) && (dr(M.key), ie = "" + M.key), is(M) && (xe = M.ref, cs(M, le));
545
545
  for (me in M)
546
- qe.call(M, me) && !ss.hasOwnProperty(me) && (ce[me] = M[me]);
546
+ Ue.call(M, me) && !ss.hasOwnProperty(me) && (ce[me] = M[me]);
547
547
  if (h && h.defaultProps) {
548
548
  var he = h.defaultProps;
549
549
  for (me in he)
@@ -676,7 +676,7 @@ Check the top-level render call using <` + L + ">.");
676
676
  }
677
677
  function yr(h, M, L, ne, le, me) {
678
678
  {
679
- var ce = O(h);
679
+ var ce = F(h);
680
680
  if (!ce) {
681
681
  var ie = "";
682
682
  (h === void 0 || typeof h == "object" && h !== null && Object.keys(h).length === 0) && (ie += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
@@ -714,7 +714,7 @@ Check the top-level render call using <` + L + ">.");
714
714
  ot.Fragment = r, ot.jsx = ys, ot.jsxs = _s;
715
715
  }()), ot;
716
716
  }
717
- process.env.NODE_ENV === "production" ? qn.exports = As() : qn.exports = Is();
717
+ process.env.NODE_ENV === "production" ? qn.exports = Ds() : qn.exports = Is();
718
718
  var a = qn.exports;
719
719
  const Ls = () => {
720
720
  const [t, e] = X(window.location.pathname), n = () => {
@@ -724,7 +724,7 @@ const Ls = () => {
724
724
  return ae(() => (window.addEventListener("popstate", n), () => {
725
725
  window.removeEventListener("popstate", n);
726
726
  }), []), t;
727
- }, yt = (t, e) => {
727
+ }, _t = (t, e) => {
728
728
  const n = pe(!1);
729
729
  ae(() => {
730
730
  n.current ? t() : n.current = !0;
@@ -743,31 +743,31 @@ function Bs(t, e, n) {
743
743
  d.current = !1;
744
744
  };
745
745
  }, []);
746
- var k = _t(function() {
747
- var j = function(O) {
748
- var C = c.current, T = f.current;
749
- return c.current = f.current = null, i.current = O, l.current = u.current.apply(T, C);
750
- }, w = function(O, C) {
751
- p && cancelAnimationFrame(o.current), o.current = p ? requestAnimationFrame(O) : setTimeout(O, C);
752
- }, F = function(O) {
746
+ var k = xt(function() {
747
+ var j = function(F) {
748
+ var $ = c.current, T = f.current;
749
+ return c.current = f.current = null, i.current = F, l.current = u.current.apply(T, $);
750
+ }, w = function(F, $) {
751
+ p && cancelAnimationFrame(o.current), o.current = p ? requestAnimationFrame(F) : setTimeout(F, $);
752
+ }, I = function(F) {
753
753
  if (!d.current)
754
754
  return !1;
755
- var C = O - s.current;
756
- return !s.current || C >= e || C < 0 || y && O - i.current >= b;
757
- }, R = function(O) {
758
- return o.current = null, _ && c.current ? j(O) : (c.current = f.current = null, l.current);
759
- }, Q = function O() {
760
- var C = Date.now();
761
- if (F(C))
762
- return R(C);
755
+ var $ = F - s.current;
756
+ return !s.current || $ >= e || $ < 0 || y && F - i.current >= b;
757
+ }, R = function(F) {
758
+ return o.current = null, _ && c.current ? j(F) : (c.current = f.current = null, l.current);
759
+ }, Q = function F() {
760
+ var $ = Date.now();
761
+ if (I($))
762
+ return R($);
763
763
  if (d.current) {
764
- var T = e - (C - s.current), x = y ? Math.min(T, b - (C - i.current)) : T;
765
- w(O, x);
764
+ var T = e - ($ - s.current), x = y ? Math.min(T, b - ($ - i.current)) : T;
765
+ w(F, x);
766
766
  }
767
- }, N = function() {
767
+ }, C = function() {
768
768
  if (m || v) {
769
- var O = Date.now(), C = F(O);
770
- if (c.current = [].slice.call(arguments), f.current = r, s.current = O, C) {
769
+ var F = Date.now(), $ = I(F);
770
+ if (c.current = [].slice.call(arguments), f.current = r, s.current = F, $) {
771
771
  if (!o.current && d.current)
772
772
  return i.current = s.current, w(Q, e), g ? j(s.current) : l.current;
773
773
  if (y)
@@ -776,13 +776,13 @@ function Bs(t, e, n) {
776
776
  return o.current || w(Q, e), l.current;
777
777
  }
778
778
  };
779
- return N.cancel = function() {
779
+ return C.cancel = function() {
780
780
  o.current && (p ? cancelAnimationFrame(o.current) : clearTimeout(o.current)), i.current = 0, c.current = s.current = f.current = o.current = null;
781
- }, N.isPending = function() {
781
+ }, C.isPending = function() {
782
782
  return !!o.current;
783
- }, N.flush = function() {
783
+ }, C.flush = function() {
784
784
  return o.current ? R(Date.now()) : l.current;
785
- }, N;
785
+ }, C;
786
786
  }, [g, y, e, b, _, p, m, v]);
787
787
  return k;
788
788
  }
@@ -791,7 +791,7 @@ function fa(t, e, n) {
791
791
  return Bs(t, e, { maxWait: e, leading: s === void 0 || s, trailing: i === void 0 || i });
792
792
  }
793
793
  let pn;
794
- const xt = (t = !0, e = !1, n = "window") => {
794
+ const wt = (t = !0, e = !1, n = "window") => {
795
795
  if (!t)
796
796
  return;
797
797
  const [r, s] = Y.useState(0) || [!1, () => {
@@ -854,7 +854,7 @@ const xt = (t = !0, e = !1, n = "window") => {
854
854
  }, Us = (t = [], e = !0) => {
855
855
  t = Array.isArray(t) ? t : [t];
856
856
  const n = pe(!1);
857
- yt(() => {
857
+ _t(() => {
858
858
  if (window && window.location && window.location.hash) {
859
859
  if (n.current)
860
860
  return;
@@ -884,24 +884,24 @@ const xt = (t = !0, e = !1, n = "window") => {
884
884
  break;
885
885
  }
886
886
  return r;
887
- }, Ws = (t) => t.replace(/[A-Z]/g, (e) => `-${e.toLowerCase()}`), zs = (t = "") => t.replace(/(?:^\w|[A-Z]|\b\w)/g, (e) => e.toUpperCase()).replace(/[&\s]+/g, ""), Zs = (t = "") => t.charAt(0).toUpperCase() + t.slice(1), ze = "https://storage.googleapis.com/apolitical-assets/", ft = {
887
+ }, Ws = (t) => t.replace(/[A-Z]/g, (e) => `-${e.toLowerCase()}`), zs = (t = "") => t.replace(/(?:^\w|[A-Z]|\b\w)/g, (e) => e.toUpperCase()).replace(/[&\s]+/g, ""), Zs = (t = "") => t.charAt(0).toUpperCase() + t.slice(1), Be = "https://storage.googleapis.com/apolitical-assets/", ft = {
888
888
  general: "hello@apolitical.co",
889
889
  support: "concierge@apolitical.co",
890
890
  "data-protection": {
891
891
  default: "dpo@apolitical.co",
892
892
  eu: "dpo.agl@apolitical.foundation"
893
893
  }
894
- }, Tt = {
894
+ }, Et = {
895
895
  ARTICLE: "microcourseArticle",
896
896
  DISCUSSION: "microcourseDiscussion",
897
897
  QUIZ: "assessmentQuiz"
898
898
  }, $l = "200,000+";
899
899
  function Hs(t) {
900
900
  return t ? {
901
- "--icon": `url(${ze}icons/${t}.svg)`
901
+ "--icon": `url(${Be}icons/${t}.svg)`
902
902
  } : {};
903
903
  }
904
- const We = {
904
+ const ze = {
905
905
  milliseconds: {
906
906
  inSecond: 1e3,
907
907
  inMinute: 6e4,
@@ -919,25 +919,25 @@ const We = {
919
919
  year: "numeric"
920
920
  }), Un = (t) => {
921
921
  let e;
922
- const n = Bt(), r = Bt(new Date(t));
922
+ const n = qt(), r = qt(new Date(t));
923
923
  try {
924
924
  e = n.getTime() - r.getTime();
925
925
  } catch {
926
926
  return "";
927
927
  }
928
- const s = e / We.milliseconds.inHour, i = Math.floor(e / We.milliseconds.inDay);
928
+ const s = e / ze.milliseconds.inHour, i = Math.floor(e / ze.milliseconds.inDay);
929
929
  if (i < 1)
930
930
  return s < 1 ? { path: "now" } : { path: "hours", number: Math.floor(s) };
931
931
  if (i < 7)
932
932
  return { path: "days", number: i };
933
933
  const o = Math.floor(i / 7);
934
- return o <= We.year.weeks ? { path: "weeks", number: o } : { path: "years", number: Math.floor(i / We.year.days) };
935
- }, Bt = (t) => {
934
+ return o <= ze.year.weeks ? { path: "weeks", number: o } : { path: "years", number: Math.floor(i / ze.year.days) };
935
+ }, qt = (t) => {
936
936
  const n = (t || /* @__PURE__ */ new Date()).toUTCString();
937
937
  return new Date(n);
938
938
  }, Ys = (t, e, n) => {
939
939
  let r;
940
- const s = Bt(), i = Bt(new Date(t));
940
+ const s = qt(), i = qt(new Date(t));
941
941
  try {
942
942
  r = s.getTime() - i.getTime();
943
943
  } catch {
@@ -945,11 +945,11 @@ const We = {
945
945
  }
946
946
  switch (n) {
947
947
  case "seconds":
948
- return r / We.milliseconds.inSecond <= e;
948
+ return r / ze.milliseconds.inSecond <= e;
949
949
  case "minutes":
950
- return r / We.milliseconds.inMinute <= e;
950
+ return r / ze.milliseconds.inMinute <= e;
951
951
  case "hours":
952
- return r / We.milliseconds.inHour <= e;
952
+ return r / ze.milliseconds.inHour <= e;
953
953
  }
954
954
  return !1;
955
955
  }, Ks = (t) => new Promise((e) => setTimeout(e, t)), rt = {
@@ -962,6 +962,13 @@ const We = {
962
962
  dates_years: "{number}y",
963
963
  /* Cards */
964
964
  card_carousel_viewAll: "View all",
965
+ card_label_communityPage: "Community",
966
+ card_label_event: "Event",
967
+ card_label_learningHub: "Programme",
968
+ card_label_listPage: "List",
969
+ card_label_microcourse: "Course",
970
+ card_label_qaQuestion: "Q&A",
971
+ card_label_solutionArticle: "Article",
965
972
  card_bootcamp: "Email boot camp",
966
973
  card_ended: "Ended",
967
974
  card_registered: "Registered",
@@ -972,6 +979,9 @@ const We = {
972
979
  card_time_ago: "{time} ago",
973
980
  card_time_read: "{time} min read",
974
981
  card_watch: "Watch recording",
982
+ card_member_type_owner: "Admin",
983
+ card_member_type_member: "Member",
984
+ card_member_count: "{count} members",
975
985
  card_cta_people: "View profile",
976
986
  card_cta_event: "Register now",
977
987
  card_cta_microcourse: "Enrol now",
@@ -1220,6 +1230,7 @@ Thank you for helping to protect the Apolitical community from abusive content.`
1220
1230
  footer_platform_courses: "Courses",
1221
1231
  footer_platform_qanda: "Q&A",
1222
1232
  footer_platform_articles: "Articles",
1233
+ footer_platform_communities: "Communities",
1223
1234
  footer_community: "Community",
1224
1235
  footer_community_support: "Support FAQ",
1225
1236
  footer_community_post: "Post on Apolitical",
@@ -1264,6 +1275,7 @@ Thank you for helping to protect the Apolitical community from abusive content.`
1264
1275
  header_topics_explore_courses: "Courses",
1265
1276
  "header_topics_explore_q-and-a": "Q&A",
1266
1277
  header_topics_explore_articles: "Articles",
1278
+ header_topics_explore_communities: "Communities",
1267
1279
  header_topics_topics: "Topics",
1268
1280
  header_topics_topics_climate: "Climate",
1269
1281
  "header_topics_topics_cities-and-local-government": "Cities and local government",
@@ -1318,6 +1330,7 @@ Thank you for helping to protect the Apolitical community from abusive content.`
1318
1330
  navigationMenu_links_microcourses: "Courses",
1319
1331
  "navigationMenu_links_q-and-a": "Q&A",
1320
1332
  navigationMenu_links_articles: "Articles",
1333
+ navigationMenu_links_communities: "Communities",
1321
1334
  navigationMenu_profile: "My profile",
1322
1335
  shareLinks_label: "Share",
1323
1336
  shareLinks_link_linkedin: "Share on LinkedIn",
@@ -1404,7 +1417,7 @@ Thank you for helping to protect the Apolitical community from abusive content.`
1404
1417
  }
1405
1418
  }
1406
1419
  return r;
1407
- }, It = (t, e) => Y.Children.map(t, (n) => Object.is(n, null) ? n : Y.cloneElement(n, {
1420
+ }, Lt = (t, e) => Y.Children.map(t, (n) => Object.is(n, null) ? n : Y.cloneElement(n, {
1408
1421
  ...e
1409
1422
  })), ti = (t = 0) => {
1410
1423
  setTimeout(() => {
@@ -1435,7 +1448,7 @@ Thank you for helping to protect the Apolitical community from abusive content.`
1435
1448
  children: u = !1,
1436
1449
  ...d
1437
1450
  }) => {
1438
- const p = xt(typeof e == "object");
1451
+ const p = wt(typeof e == "object");
1439
1452
  if (typeof e == "object" && typeof p == "number") {
1440
1453
  const y = Object.assign({}, e), v = pa(Object.keys(y));
1441
1454
  e = ha(p, v, y);
@@ -1459,7 +1472,7 @@ Thank you for helping to protect the Apolitical community from abusive content.`
1459
1472
  _,
1460
1473
  u || (l ? /* @__PURE__ */ a.jsx(be, { showOnFocus: !1, children: l }) : null)
1461
1474
  );
1462
- }, wt = ({ buttons: t, className: e = "", ...n }) => {
1475
+ }, jt = ({ buttons: t, className: e = "", ...n }) => {
1463
1476
  const r = t.length > 1 ? "ul" : "p", s = t.map((i, o) => r === "p" ? /* @__PURE__ */ a.jsx(se, { ...i }, o) : /* @__PURE__ */ a.jsx("li", { children: /* @__PURE__ */ a.jsx(se, { ...i }) }, o));
1464
1477
  return Y.createElement(r, {
1465
1478
  className: S("button-wrapper", e),
@@ -1467,7 +1480,7 @@ Thank you for helping to protect the Apolitical community from abusive content.`
1467
1480
  children: s
1468
1481
  });
1469
1482
  };
1470
- const De = ({ className: t = "", maxWidth: e = !1 }) => {
1483
+ const Ae = ({ className: t = "", maxWidth: e = !1 }) => {
1471
1484
  const n = e ? { "--max-width": `${e / 16}rem` } : {};
1472
1485
  return /* @__PURE__ */ a.jsx("hr", { className: S(t, { "has-max-width": e }), style: n });
1473
1486
  }, kr = {
@@ -1589,7 +1602,7 @@ const De = ({ className: t = "", maxWidth: e = !1 }) => {
1589
1602
  query: r,
1590
1603
  width: i
1591
1604
  })} ${i}w`).join(", ");
1592
- const jt = ({ image: t, className: e, testId: n }) => {
1605
+ const kt = ({ image: t, className: e, testId: n }) => {
1593
1606
  const {
1594
1607
  description: r,
1595
1608
  height: s,
@@ -1634,7 +1647,7 @@ const Nl = ({ image: t, className: e, testId: n }) => /* @__PURE__ */ a.jsx(
1634
1647
  {
1635
1648
  className: `image-container ${e}`,
1636
1649
  "data-testid": n || "image-container",
1637
- children: t && /* @__PURE__ */ a.jsx(jt, { image: { ...t }, className: "image" })
1650
+ children: t && /* @__PURE__ */ a.jsx(kt, { image: { ...t }, className: "image" })
1638
1651
  }
1639
1652
  ), at = ({
1640
1653
  href: t,
@@ -1782,7 +1795,7 @@ const Jn = ({
1782
1795
  star: "star_empty_thin"
1783
1796
  }, ii = (t) => {
1784
1797
  let e = t;
1785
- return Object.keys(Sr).includes(t) && (e = Sr[t]), `url(${ze}icons/${e}.svg)`;
1798
+ return Object.keys(Sr).includes(t) && (e = Sr[t]), `url(${Be}icons/${e}.svg)`;
1786
1799
  };
1787
1800
  const Cr = {
1788
1801
  customCard: "custom",
@@ -1823,7 +1836,7 @@ const Oe = ({
1823
1836
  children: s,
1824
1837
  ...i
1825
1838
  }) => {
1826
- const { showHighlight: o = !1, background: c = "default" } = n, f = e ? { "--icon": `url(${ze}icons/${e}.svg)` } : {};
1839
+ const { showHighlight: o = !1, background: c = "default" } = n, f = e ? { "--icon": `url(${Be}icons/${e}.svg)` } : {};
1827
1840
  return /* @__PURE__ */ a.jsx(
1828
1841
  "div",
1829
1842
  {
@@ -1845,7 +1858,7 @@ const He = ({
1845
1858
  className: r = ""
1846
1859
  }) => {
1847
1860
  let s = n && !!Object.keys(n).length;
1848
- const i = typeof n == "object" && "breakpoints" in n, o = xt(i);
1861
+ const i = typeof n == "object" && "breakpoints" in n, o = wt(i);
1849
1862
  if (i && typeof n == "object" && typeof o == "number") {
1850
1863
  const d = Object.assign({}, n.breakpoints), m = pa(Object.keys(d));
1851
1864
  s = ha(o, m, d);
@@ -1973,7 +1986,7 @@ const Fl = ({
1973
1986
  }),
1974
1987
  children: r.map((f, l) => {
1975
1988
  const u = { wrapper: Y.Fragment, forceInline: !0 }, d = {
1976
- "--icon": `url(${ze}icons/${f.icon}.svg)`
1989
+ "--icon": `url(${Be}icons/${f.icon}.svg)`
1977
1990
  };
1978
1991
  return t === "dl" ? /* @__PURE__ */ a.jsxs(Y.Fragment, { children: [
1979
1992
  /* @__PURE__ */ a.jsx("dt", { style: d, children: /* @__PURE__ */ a.jsx(Fe, { options: u, children: f.dt || "" }) }, `dt-${l}`),
@@ -2107,7 +2120,7 @@ const vi = {
2107
2120
  iframe: _e,
2108
2121
  button: _e
2109
2122
  }
2110
- }, qt = ({
2123
+ }, Ut = ({
2111
2124
  className: t = "",
2112
2125
  options: e = {},
2113
2126
  children: n,
@@ -2151,13 +2164,29 @@ const bi = ({
2151
2164
  r
2152
2165
  ] });
2153
2166
  };
2154
- const Ut = ({
2167
+ const ht = ({
2155
2168
  size: t = "medium",
2156
2169
  variant: e = "default",
2157
2170
  className: n = "",
2158
- children: r,
2159
- ...s
2160
- }) => /* @__PURE__ */ a.jsx("span", { className: S("pill", t, e, n), ...s, children: r });
2171
+ icon: r,
2172
+ children: s,
2173
+ ...i
2174
+ }) => {
2175
+ const o = {
2176
+ "--icon": `url(${Be}icons/${r}.svg)`
2177
+ };
2178
+ return /* @__PURE__ */ a.jsx(
2179
+ "span",
2180
+ {
2181
+ className: S("pill", t, e, n, {
2182
+ "has-icon": r
2183
+ }),
2184
+ style: o,
2185
+ ...i,
2186
+ children: s
2187
+ }
2188
+ );
2189
+ };
2161
2190
  const Wt = ({
2162
2191
  element: t = "p",
2163
2192
  children: e = null,
@@ -2176,8 +2205,8 @@ const yi = ({ author: t, authorCite: e, content: n }) => /* @__PURE__ */ a.jsxs(
2176
2205
  /* @__PURE__ */ a.jsx(Fe, { className: "testimonial", children: n }),
2177
2206
  t && /* @__PURE__ */ a.jsx("p", { className: "author text-small", children: t }),
2178
2207
  e && /* @__PURE__ */ a.jsx("p", { className: "author-cite text-small", children: /* @__PURE__ */ a.jsx("cite", { children: e }) })
2179
- ] }), Ol = Ae(yi);
2180
- const Dl = ({
2208
+ ] }), Ol = De(yi);
2209
+ const Al = ({
2181
2210
  items: t = [],
2182
2211
  selector: e = "",
2183
2212
  className: n = ""
@@ -2258,7 +2287,7 @@ const _i = ({ isOpen: t = !1, isLoading: e = !1, children: n }) => {
2258
2287
  const c = ({ propertyName: f }) => {
2259
2288
  f === "opacity" && (ct !== !1 && clearTimeout(ct), o((l) => l === "opening" ? "open" : l === "closing" ? "closed" : l === "closed" ? "hidden" : l));
2260
2289
  };
2261
- return yt(() => {
2290
+ return _t(() => {
2262
2291
  ct !== !1 && clearTimeout(ct);
2263
2292
  let f = "open";
2264
2293
  t ? o("opening") : (o("closing"), f = "hidden"), ct = setTimeout(() => {
@@ -2274,7 +2303,7 @@ const _i = ({ isOpen: t = !1, isLoading: e = !1, children: n }) => {
2274
2303
  }
2275
2304
  );
2276
2305
  };
2277
- const Al = ({ className: t = "", image: e, ...n }) => e ? (typeof e == "string" && (e = {
2306
+ const Dl = ({ className: t = "", image: e, ...n }) => e ? (typeof e == "string" && (e = {
2278
2307
  width: 1080,
2279
2308
  height: 200,
2280
2309
  type: "image/png",
@@ -2284,7 +2313,7 @@ const Al = ({ className: t = "", image: e, ...n }) => e ? (typeof e == "string"
2284
2313
  { height: 200, width: 768 },
2285
2314
  { height: 200, width: 1368 }
2286
2315
  ], e.query = "fit=thumb&f=center", /* @__PURE__ */ a.jsx(
2287
- jt,
2316
+ kt,
2288
2317
  {
2289
2318
  ...n,
2290
2319
  className: S("banner", t),
@@ -2328,7 +2357,7 @@ const Il = ({ text: t, buttons: e, className: n = "" }) => {
2328
2357
  { className: "text" },
2329
2358
  typeof t == "string" ? t : t.text
2330
2359
  ),
2331
- /* @__PURE__ */ a.jsx(wt, { buttons: r })
2360
+ /* @__PURE__ */ a.jsx(jt, { buttons: r })
2332
2361
  ] }) });
2333
2362
  };
2334
2363
  function ba({ href: t, setShowModal: e }) {
@@ -2381,7 +2410,7 @@ const xi = ({ icon: t, description: e, ctaMessage: n, href: r, showEditButton: s
2381
2410
  u && /* @__PURE__ */ a.jsx(se, { href: r, variant: "tertiary", size: "small", icon: "pencil", onClick: () => ba({ href: r, setShowModal: l }), children: "Edit" })
2382
2411
  ] }),
2383
2412
  t || /* @__PURE__ */ a.jsx(xi, { ...o, href: r, setShowModal: l, showEditButton: u }),
2384
- c && /* @__PURE__ */ a.jsx(De, {})
2413
+ c && /* @__PURE__ */ a.jsx(Ae, {})
2385
2414
  ] });
2386
2415
  };
2387
2416
  const Bl = ({
@@ -2508,7 +2537,7 @@ const wi = [
2508
2537
  f.map((d) => {
2509
2538
  if (u[d] && typeof u[d] == "object") {
2510
2539
  const { text: m, element: p = "" } = u[d];
2511
- return d === "text" ? /* @__PURE__ */ a.jsx(qt, { overrideType: "text-only", className: "text", children: m }, d) : Y.createElement(p, { key: d, className: d }, m);
2540
+ return d === "text" ? /* @__PURE__ */ a.jsx(Ut, { overrideType: "text-only", className: "text", children: m }, d) : Y.createElement(p, { key: d, className: d }, m);
2512
2541
  }
2513
2542
  return null;
2514
2543
  }),
@@ -2524,11 +2553,11 @@ const wi = [
2524
2553
  }
2525
2554
  )
2526
2555
  ] }),
2527
- n && /* @__PURE__ */ a.jsx(jt, { image: { ...n, aspect: "banner" } })
2556
+ n && /* @__PURE__ */ a.jsx(kt, { image: { ...n, aspect: "banner" } })
2528
2557
  ] })
2529
2558
  }
2530
2559
  );
2531
- }, ql = Ae(ji);
2560
+ }, ql = De(ji);
2532
2561
  const Ul = ({
2533
2562
  image: t,
2534
2563
  variant: e = "default",
@@ -2561,7 +2590,7 @@ const ki = ({
2561
2590
  className: S("highlight-container highlight-image", {
2562
2591
  [`highlight-image-${t}`]: t === "right"
2563
2592
  }),
2564
- children: /* @__PURE__ */ a.jsx(jt, { image: r })
2593
+ children: /* @__PURE__ */ a.jsx(kt, { image: r })
2565
2594
  }
2566
2595
  ),
2567
2596
  /* @__PURE__ */ a.jsx(
@@ -2582,7 +2611,7 @@ const ki = ({
2582
2611
  }
2583
2612
  )
2584
2613
  ] });
2585
- }, Wl = Ae(ki);
2614
+ }, Wl = De(ki);
2586
2615
  const zl = ({
2587
2616
  variant: t = "primary",
2588
2617
  button: e = null,
@@ -2621,10 +2650,10 @@ const zl = ({
2621
2650
  t && /* @__PURE__ */ a.jsx(Cs, { initialIsOpen: !1 })
2622
2651
  ] });
2623
2652
  };
2624
- var Ei = nn({ client: At });
2653
+ var Ei = nn({ client: It });
2625
2654
  function Si(t) {
2626
- var e = t.children, n = t.client, r = t.apiKey, s = t.options, i = _t(function() {
2627
- return n && r && console.warn("[PostHog.js] You have provided both a client and an apiKey to PostHogProvider. The apiKey will be ignored in favour of the client."), n && s && console.warn("[PostHog.js] You have provided both a client and options to PostHogProvider. The options will be ignored in favour of the client."), n || (r && (At.__loaded && console.warn("[PostHog.js] was already loaded elsewhere. This may cause issues."), At.init(r, s)), At);
2655
+ var e = t.children, n = t.client, r = t.apiKey, s = t.options, i = xt(function() {
2656
+ return n && r && console.warn("[PostHog.js] You have provided both a client and an apiKey to PostHogProvider. The apiKey will be ignored in favour of the client."), n && s && console.warn("[PostHog.js] You have provided both a client and options to PostHogProvider. The options will be ignored in favour of the client."), n || (r && (It.__loaded && console.warn("[PostHog.js] was already loaded elsewhere. This may cause issues."), It.init(r, s)), It);
2628
2657
  }, [n, r]);
2629
2658
  return Y.createElement(Ei.Provider, { value: { client: i } }, e);
2630
2659
  }
@@ -2705,7 +2734,7 @@ const Pi = ({
2705
2734
  })
2706
2735
  }
2707
2736
  );
2708
- }, _a = Ae(Pi);
2737
+ }, _a = De(Pi);
2709
2738
  const vn = "loadingBlock_", Mi = ({ progress: t = 0, steps: e = !1, className: n = "" }) => {
2710
2739
  const r = H();
2711
2740
  e || (e = {
@@ -2718,7 +2747,7 @@ const vn = "loadingBlock_", Mi = ({ progress: t = 0, steps: e = !1, className: n
2718
2747
  for (let c = 0; c < i.length && !(t < parseInt(i[c])); c++)
2719
2748
  s = i[c];
2720
2749
  const o = s && e[s].icon ? {
2721
- "--icon": `url(${ze}icons/${e[s].icon}.svg)`
2750
+ "--icon": `url(${Be}icons/${e[s].icon}.svg)`
2722
2751
  } : {};
2723
2752
  return /* @__PURE__ */ a.jsxs(
2724
2753
  Oe,
@@ -2734,7 +2763,7 @@ const vn = "loadingBlock_", Mi = ({ progress: t = 0, steps: e = !1, className: n
2734
2763
  ]
2735
2764
  }
2736
2765
  );
2737
- }, Hl = Ae(Mi);
2766
+ }, Hl = De(Mi);
2738
2767
  const Se = ({ element: t = "div", className: e = "", ...n }) => /* @__PURE__ */ a.jsx(
2739
2768
  Gn,
2740
2769
  {
@@ -2795,14 +2824,14 @@ const zn = {
2795
2824
  }, xa = (t, e) => t in zn ? /* @__PURE__ */ a.jsx("div", { className: t, children: zn[t].map((n, r) => xa(n, r)) }, e) : /* @__PURE__ */ a.jsx(Se, { className: t }, e), wa = ({ layout: t = "overview-page", ...e }) => /* @__PURE__ */ a.jsx("div", { className: S("loading-state", t), ...e, children: zn[t].map((n, r) => xa(n, r)) }), ja = (t) => {
2796
2825
  const e = t && t.toUpperCase().trim().split(" ");
2797
2826
  return Array.isArray(e) && e.length > 1 && e[0] !== "" ? e[1] === "" ? e[0][0] : e[0][0] + e[e.length - 1][0] : t ? t.substr(0, 1) : "";
2798
- }, Et = ["#5AB6A3", "#A2D7AF", "#806056", "#3962B3"], Ri = (t) => {
2799
- const e = Math.ceil(26 / Et.length), n = ja(t).toLowerCase();
2827
+ }, St = ["#5AB6A3", "#A2D7AF", "#806056", "#3962B3"], Ri = (t) => {
2828
+ const e = Math.ceil(26 / St.length), n = ja(t).toLowerCase();
2800
2829
  if (n === "")
2801
- return Et[0];
2830
+ return St[0];
2802
2831
  const r = n.charCodeAt(0) - 96;
2803
- for (let s = 0; s < Et.length; s++)
2832
+ for (let s = 0; s < St.length; s++)
2804
2833
  if (r <= e * (s + 1))
2805
- return Et[s];
2834
+ return St[s];
2806
2835
  };
2807
2836
  const Nr = 256, Ye = ({
2808
2837
  className: t = "",
@@ -2845,9 +2874,9 @@ const Nr = 256, Ye = ({
2845
2874
  }
2846
2875
  );
2847
2876
  }, ka = (t) => t === "apolitical" ? {
2848
- image: `${ze}logos/member_apolitical.svg`
2877
+ image: `${Be}logos/member_apolitical.svg`
2849
2878
  } : t === "community" || typeof t == "object" && !t.name ? {
2850
- image: `${ze}logos/member_community.svg`
2879
+ image: `${Be}logos/member_community.svg`
2851
2880
  } : {
2852
2881
  name: t.name,
2853
2882
  role: t.jobTitle || "",
@@ -2966,14 +2995,14 @@ const Pr = {
2966
2995
  ] })
2967
2996
  });
2968
2997
  };
2969
- const St = "emailHelperTextBox_", Oi = ({
2998
+ const Ct = "emailHelperTextBox_", Oi = ({
2970
2999
  type: t,
2971
3000
  email: e,
2972
3001
  redirectPath: n,
2973
3002
  resendVerificationCode: r
2974
3003
  }) => {
2975
3004
  const s = H(), [i, o] = X({
2976
- path: `${St}default`,
3005
+ path: `${Ct}default`,
2977
3006
  type: "default",
2978
3007
  link: {},
2979
3008
  mail: {},
@@ -2983,7 +3012,7 @@ const St = "emailHelperTextBox_", Oi = ({
2983
3012
  p.preventDefault(), p.stopPropagation();
2984
3013
  const g = (_) => {
2985
3014
  o({
2986
- path: `${St}error_verificationFailedToSend`,
3015
+ path: `${Ct}error_verificationFailedToSend`,
2987
3016
  type: "error",
2988
3017
  link: {
2989
3018
  "data-gtm-event-context": "VerifyEmailBox",
@@ -3003,7 +3032,7 @@ const St = "emailHelperTextBox_", Oi = ({
3003
3032
  });
3004
3033
  };
3005
3034
  if (typeof r != "function") {
3006
- g(s.formatMessage({ id: `${St}error_noFunction` }));
3035
+ g(s.formatMessage({ id: `${Ct}error_noFunction` }));
3007
3036
  return;
3008
3037
  }
3009
3038
  f(!0), r(e).then(() => {
@@ -3019,7 +3048,7 @@ const St = "emailHelperTextBox_", Oi = ({
3019
3048
  );
3020
3049
  ae(
3021
3050
  () => {
3022
- let p = St, g = "default", _ = {}, y = {};
3051
+ let p = Ct, g = "default", _ = {}, y = {};
3023
3052
  switch (t) {
3024
3053
  case "gov":
3025
3054
  p += "autoApproved", g = "success";
@@ -3105,7 +3134,7 @@ const St = "emailHelperTextBox_", Oi = ({
3105
3134
  )
3106
3135
  }
3107
3136
  );
3108
- }, ht = ({
3137
+ }, gt = ({
3109
3138
  className: t = "",
3110
3139
  element: e = "input",
3111
3140
  id: n,
@@ -3141,7 +3170,7 @@ const Qe = {
3141
3170
  UP: "ArrowUp",
3142
3171
  DOWN: "ArrowDown",
3143
3172
  ENTER: "Enter"
3144
- }, Di = 500, Ai = ({
3173
+ }, Ai = 500, Di = ({
3145
3174
  value: t,
3146
3175
  placeholder: e,
3147
3176
  functions: n = {
@@ -3165,7 +3194,7 @@ const Qe = {
3165
3194
  e || (e = p({ id: "inputAutocomplete_placeholder" })), ae(() => {
3166
3195
  const v = setTimeout(() => {
3167
3196
  d || f((b) => ({ ...b, debouncedInput: i }));
3168
- }, Di);
3197
+ }, Ai);
3169
3198
  return () => {
3170
3199
  clearTimeout(v);
3171
3200
  };
@@ -3264,7 +3293,7 @@ const Ea = ({
3264
3293
  y
3265
3294
  );
3266
3295
  };
3267
- const Ii = Ae(function({
3296
+ const Ii = De(function({
3268
3297
  direction: e = "down"
3269
3298
  }) {
3270
3299
  return /* @__PURE__ */ a.jsx(
@@ -3296,12 +3325,12 @@ const Li = ({
3296
3325
  const { onChange: b, onMultiSelectSubmit: k, ...j } = s, w = (R) => {
3297
3326
  if (c) {
3298
3327
  let Q = [];
3299
- _ != null && _.includes(R.id) ? Q = _.filter((N) => N !== R.id) : Q = [..._, R.id], y([...Q]), b && b([...Q]);
3328
+ _ != null && _.includes(R.id) ? Q = _.filter((C) => C !== R.id) : Q = [..._, R.id], y([...Q]), b && b([...Q]);
3300
3329
  } else
3301
3330
  y([R]), b && b(R.id), m(!1);
3302
- }, F = (R) => {
3331
+ }, I = (R) => {
3303
3332
  if (R === "all") {
3304
- const Q = (e == null ? void 0 : e.map((N) => N.id)) || [];
3333
+ const Q = (e == null ? void 0 : e.map((C) => C.id)) || [];
3305
3334
  y(Q), b && b(Q);
3306
3335
  } else
3307
3336
  y([]), b && b([]);
@@ -3331,7 +3360,7 @@ const Li = ({
3331
3360
  defaultValue: v.id,
3332
3361
  onChange: (R) => {
3333
3362
  R.preventDefault(), R.stopPropagation();
3334
- const Q = e && e.find((N) => N.id === R.target.value);
3363
+ const Q = e && e.find((C) => C.id === R.target.value);
3335
3364
  w(Q);
3336
3365
  },
3337
3366
  hidden: !d,
@@ -3355,7 +3384,7 @@ const Li = ({
3355
3384
  {
3356
3385
  variant: "tertiary",
3357
3386
  size: "small",
3358
- onClick: () => F("all"),
3387
+ onClick: () => I("all"),
3359
3388
  className: "gtm-trackable",
3360
3389
  children: u.formatMessage({ id: "dropdown_menu_multiselect_all" })
3361
3390
  }
@@ -3365,7 +3394,7 @@ const Li = ({
3365
3394
  {
3366
3395
  variant: "tertiary",
3367
3396
  size: "small",
3368
- onClick: () => F("none"),
3397
+ onClick: () => I("none"),
3369
3398
  className: "gtm-trackable",
3370
3399
  children: u.formatMessage({ id: "dropdown_menu_multiselect_none" })
3371
3400
  }
@@ -3383,8 +3412,8 @@ const Li = ({
3383
3412
  }),
3384
3413
  "data-gtm-event-type": `${R}-click`,
3385
3414
  "data-gtm-event-context": i,
3386
- onClick: (N) => {
3387
- N.preventDefault(), N.stopPropagation(), w(R);
3415
+ onClick: (C) => {
3416
+ C.preventDefault(), C.stopPropagation(), w(R);
3388
3417
  },
3389
3418
  role: "menuitem",
3390
3419
  "aria-current": Q,
@@ -3453,8 +3482,8 @@ const Bi = ({
3453
3482
  return;
3454
3483
  let w;
3455
3484
  if (i) {
3456
- const F = p == null ? void 0 : p.indexOf(v);
3457
- Array.isArray(p) && F >= 0 ? (w = p, w.splice(F, 1)) : (!p || p.length === 0 ? w = [] : w = p, w.push(v));
3485
+ const I = p == null ? void 0 : p.indexOf(v);
3486
+ Array.isArray(p) && I >= 0 ? (w = p, w.splice(I, 1)) : (!p || p.length === 0 ? w = [] : w = p, w.push(v));
3458
3487
  } else
3459
3488
  w = g === v ? void 0 : v;
3460
3489
  e.onChange(w);
@@ -3513,18 +3542,18 @@ const qi = ({
3513
3542
  })
3514
3543
  }
3515
3544
  ),
3516
- /* @__PURE__ */ a.jsx(ht, { inputRef: o, type: l, ...r })
3545
+ /* @__PURE__ */ a.jsx(gt, { inputRef: o, type: l, ...r })
3517
3546
  ] });
3518
3547
  };
3519
3548
  const Je = {
3520
- text: { component: ht },
3521
- email: { component: ht },
3522
- textarea: { component: ht, props: { element: "textarea", rows: 4, cols: 10 } },
3549
+ text: { component: gt },
3550
+ email: { component: gt },
3551
+ textarea: { component: gt, props: { element: "textarea", rows: 4, cols: 10 } },
3523
3552
  checkbox: { component: Ea },
3524
3553
  checkboxes: { component: Bi, props: { multiSelect: !0 } },
3525
3554
  select: { component: Li },
3526
3555
  password: { component: qi },
3527
- autocomplete: { component: Ai }
3556
+ autocomplete: { component: Di }
3528
3557
  }, Ui = ({
3529
3558
  id: t,
3530
3559
  intlPath: e = !1,
@@ -3539,7 +3568,7 @@ const Je = {
3539
3568
  value: l,
3540
3569
  ...u
3541
3570
  }) => {
3542
- const d = H(), m = f && f.some(({ condition: j }) => j === "required"), p = (l == null ? void 0 : l.toString().length) || 0, g = c && Je[c] && Je[c].component ? Je[c].component : ht, _ = {};
3571
+ const d = H(), m = f && f.some(({ condition: j }) => j === "required"), p = (l == null ? void 0 : l.toString().length) || 0, g = c && Je[c] && Je[c].component ? Je[c].component : gt, _ = {};
3543
3572
  c && ["checkboxes"].includes(c) ? _.element = "span" : _.htmlFor = t;
3544
3573
  let y = {
3545
3574
  ...u,
@@ -3757,20 +3786,20 @@ const rn = ({
3757
3786
  shouldReset: k = !0,
3758
3787
  showRequiredLabels: j = !0,
3759
3788
  showSuccessMessage: w = !1
3760
- } = c || {}, F = H(), R = {};
3789
+ } = c || {}, I = H(), R = {};
3761
3790
  t.length && t.forEach((z) => {
3762
3791
  const K = z.id || z.name;
3763
3792
  K && (R[K] = z.value || "");
3764
3793
  });
3765
- const [Q, N] = Yn(Wi, {
3794
+ const [Q, C] = Yn(Wi, {
3766
3795
  isSubmitting: !1,
3767
3796
  formSubmitted: !1,
3768
3797
  errors: {},
3769
3798
  values: R
3770
- }), { errors: O, isSubmitting: C, formSubmitted: T, values: x } = Q;
3799
+ }), { errors: F, isSubmitting: $, formSubmitted: T, values: x } = Q;
3771
3800
  ae(() => {
3772
3801
  k && T && (bn = setTimeout(() => {
3773
- N({
3802
+ C({
3774
3803
  type: "updateValue",
3775
3804
  payload: { key: "formSubmitted", value: !1 }
3776
3805
  });
@@ -3779,7 +3808,7 @@ const rn = ({
3779
3808
  bn && clearTimeout(bn);
3780
3809
  }, []), ae(() => {
3781
3810
  const z = (K) => {
3782
- N({
3811
+ C({
3783
3812
  type: "updateValue",
3784
3813
  payload: { key: K.detail.id, value: K.detail.value }
3785
3814
  });
@@ -3794,10 +3823,10 @@ const rn = ({
3794
3823
  );
3795
3824
  };
3796
3825
  }, []);
3797
- const $ = pe(null), A = r || $;
3826
+ const N = pe(null), A = r || N;
3798
3827
  if (!t.length)
3799
3828
  return null;
3800
- i.text || (i.text = F.formatMessage({ id: "form_submit" }));
3829
+ i.text || (i.text = I.formatMessage({ id: "form_submit" }));
3801
3830
  const Z = [
3802
3831
  {
3803
3832
  ...y,
@@ -3805,7 +3834,7 @@ const rn = ({
3805
3834
  className: "gtm-trackable",
3806
3835
  onClick: (z) => {
3807
3836
  var P;
3808
- if (z.preventDefault(), z.stopPropagation(), C)
3837
+ if (z.preventDefault(), z.stopPropagation(), $)
3809
3838
  return;
3810
3839
  let K = 0;
3811
3840
  if ((P = A == null ? void 0 : A.current) != null && P.id) {
@@ -3813,47 +3842,47 @@ const rn = ({
3813
3842
  q && (K = q.getBoundingClientRect().top + window.scrollY);
3814
3843
  }
3815
3844
  const E = document.getElementById("header");
3816
- if (E && (K = K - E.offsetHeight - v), K < 0 && (K = 0), window.scrollTo({ top: K, behavior: "smooth" }), N({ type: "toggleSubmitting" }), i.disabled) {
3817
- typeof i.disabled == "object" && i.disabled.isClickable && N({
3845
+ if (E && (K = K - E.offsetHeight - v), K < 0 && (K = 0), window.scrollTo({ top: K, behavior: "smooth" }), C({ type: "toggleSubmitting" }), i.disabled) {
3846
+ typeof i.disabled == "object" && i.disabled.isClickable && C({
3818
3847
  type: "submitForm",
3819
3848
  payload: {
3820
3849
  fields: t,
3821
- dispatch: N,
3822
- intl: F
3850
+ dispatch: C,
3851
+ intl: I
3823
3852
  }
3824
3853
  });
3825
3854
  return;
3826
3855
  }
3827
- N({
3856
+ C({
3828
3857
  type: "submitForm",
3829
3858
  payload: {
3830
3859
  fields: t,
3831
- dispatch: N,
3860
+ dispatch: C,
3832
3861
  onSuccess: async (q) => {
3833
3862
  try {
3834
- await l(q), N({ type: k ? "formSubmittedAndReset" : "formSubmitted" });
3863
+ await l(q), C({ type: k ? "formSubmittedAndReset" : "formSubmitted" });
3835
3864
  } catch (B) {
3836
- d(B), N({
3865
+ d(B), C({
3837
3866
  type: "updateValue",
3838
3867
  payload: { key: "isSubmitting", value: !1 }
3839
3868
  });
3840
3869
  }
3841
3870
  },
3842
3871
  onFailure: (q, B) => {
3843
- m(q, B), N({
3872
+ m(q, B), C({
3844
3873
  type: "updateValue",
3845
3874
  payload: { key: "isSubmitting", value: !1 }
3846
3875
  });
3847
3876
  },
3848
- intl: F
3877
+ intl: I
3849
3878
  }
3850
3879
  });
3851
3880
  },
3852
- disabled: C || T || i.disabled,
3881
+ disabled: $ || T || i.disabled,
3853
3882
  "data-gtm-event-context": f.context,
3854
3883
  "data-gtm-event-type": f.event,
3855
- children: C || T ? F.formatMessage({
3856
- id: `form_${C ? "submitting" : "submitted"}`
3884
+ children: $ || T ? I.formatMessage({
3885
+ id: `form_${$ ? "submitting" : "submitted"}`
3857
3886
  }) : i.text
3858
3887
  }
3859
3888
  ];
@@ -3862,9 +3891,9 @@ const rn = ({
3862
3891
  className: "gtm-trackable",
3863
3892
  "data-gtm-event-context": f.context,
3864
3893
  "data-gtm-event-type": f.event,
3865
- disabled: C || T,
3894
+ disabled: $ || T,
3866
3895
  onClick: u,
3867
- children: o.text || F.formatMessage({ id: "form_cancel" })
3896
+ children: o.text || I.formatMessage({ id: "form_cancel" })
3868
3897
  }), /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
3869
3898
  /* @__PURE__ */ a.jsxs(
3870
3899
  "form",
@@ -3874,14 +3903,14 @@ const rn = ({
3874
3903
  className: S("form", e),
3875
3904
  ref: A,
3876
3905
  children: [
3877
- O != null && O.general ? /* @__PURE__ */ a.jsx(
3906
+ F != null && F.general ? /* @__PURE__ */ a.jsx(
3878
3907
  He,
3879
3908
  {
3880
3909
  variant: "error",
3881
- text: F.formatMessage({ id: "form_error_generalError" })
3910
+ text: I.formatMessage({ id: "form_error_generalError" })
3882
3911
  }
3883
3912
  ) : null,
3884
- (!k || !C && !T || g) && t.map((z, K) => {
3913
+ (!k || !$ && !T || g) && t.map((z, K) => {
3885
3914
  const {
3886
3915
  id: E = z.name || K,
3887
3916
  component: P,
@@ -3898,22 +3927,22 @@ const rn = ({
3898
3927
  ...z,
3899
3928
  showRequiredLabels: j,
3900
3929
  value: B,
3901
- error: O == null ? void 0 : O[E],
3930
+ error: F == null ? void 0 : F[E],
3902
3931
  functions: {
3903
3932
  ...q,
3904
3933
  onChange: (U) => {
3905
- N({ type: "updateValue", payload: { key: E, value: U } }), q.onChange(U && U.toString(), N);
3934
+ C({ type: "updateValue", payload: { key: E, value: U } }), q.onChange(U && U.toString(), C);
3906
3935
  }
3907
3936
  }
3908
3937
  },
3909
3938
  E
3910
3939
  );
3911
3940
  }),
3912
- _ ? null : (C || T) && g ? g : /* @__PURE__ */ a.jsx(
3913
- wt,
3941
+ _ ? null : ($ || T) && g ? g : /* @__PURE__ */ a.jsx(
3942
+ jt,
3914
3943
  {
3915
3944
  className: S("cta", {
3916
- center: C || T,
3945
+ center: $ || T,
3917
3946
  submitted: T
3918
3947
  }),
3919
3948
  buttons: Z
@@ -3922,10 +3951,10 @@ const rn = ({
3922
3951
  ]
3923
3952
  }
3924
3953
  ),
3925
- w && T && /* @__PURE__ */ a.jsx(Wt, { className: "success", children: typeof w == "string" ? w : F.formatMessage({ id: "form_success" }) })
3954
+ w && T && /* @__PURE__ */ a.jsx(Wt, { className: "success", children: typeof w == "string" ? w : I.formatMessage({ id: "form_success" }) })
3926
3955
  ] });
3927
3956
  };
3928
- const Ct = "passwordRules_", Sa = "isMoreThanEightCharacters", Ca = "includesNumberAndSymbol", $a = "includesLowerAndUppercase", zi = {
3957
+ const $t = "passwordRules_", Sa = "isMoreThanEightCharacters", Ca = "includesNumberAndSymbol", $a = "includesLowerAndUppercase", zi = {
3929
3958
  [Sa]: "8Characters",
3930
3959
  [Ca]: "numberSymbol",
3931
3960
  [$a]: "lowercaseUppercase"
@@ -3939,7 +3968,7 @@ const Ct = "passwordRules_", Sa = "isMoreThanEightCharacters", Ca = "includesNum
3939
3968
  }) => {
3940
3969
  const n = H();
3941
3970
  return /* @__PURE__ */ a.jsxs("aside", { className: S("password-rules", e), children: [
3942
- /* @__PURE__ */ a.jsx("small", { children: n.formatMessage({ id: `${Ct}intro` }) }),
3971
+ /* @__PURE__ */ a.jsx("small", { children: n.formatMessage({ id: `${$t}intro` }) }),
3943
3972
  /* @__PURE__ */ a.jsx("ul", { children: [Sa, Ca, $a].map(
3944
3973
  (r) => /* @__PURE__ */ a.jsxs(
3945
3974
  "li",
@@ -3947,13 +3976,13 @@ const Ct = "passwordRules_", Sa = "isMoreThanEightCharacters", Ca = "includesNum
3947
3976
  className: S({ matches: t[r] }),
3948
3977
  children: [
3949
3978
  /* @__PURE__ */ a.jsxs(be, { children: [
3950
- n.formatMessage({ id: `${Ct}rule_label` }),
3979
+ n.formatMessage({ id: `${$t}rule_label` }),
3951
3980
  " "
3952
3981
  ] }),
3953
- /* @__PURE__ */ a.jsx("span", { children: n.formatMessage({ id: `${Ct}rule_${zi[r]}` }) }),
3982
+ /* @__PURE__ */ a.jsx("span", { children: n.formatMessage({ id: `${$t}rule_${zi[r]}` }) }),
3954
3983
  !t[r] && /* @__PURE__ */ a.jsxs(be, { element: "strong", children: [
3955
3984
  " ",
3956
- n.formatMessage({ id: `${Ct}notMet` })
3985
+ n.formatMessage({ id: `${$t}notMet` })
3957
3986
  ] })
3958
3987
  ]
3959
3988
  },
@@ -3961,7 +3990,7 @@ const Ct = "passwordRules_", Sa = "isMoreThanEightCharacters", Ca = "includesNum
3961
3990
  )
3962
3991
  ) })
3963
3992
  ] });
3964
- }, Hi = Ae(Zi);
3993
+ }, Hi = De(Zi);
3965
3994
  const Vl = ({
3966
3995
  text: t = {},
3967
3996
  topRating: e = 5,
@@ -4247,7 +4276,7 @@ const Yi = ({
4247
4276
  " ",
4248
4277
  y({ id: "inviteForm_error" })
4249
4278
  ] }) }),
4250
- /* @__PURE__ */ a.jsx(De, {}),
4279
+ /* @__PURE__ */ a.jsx(Ae, {}),
4251
4280
  /* @__PURE__ */ a.jsx("div", { className: "footer", children: g === "SUCCESS" ? /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
4252
4281
  /* @__PURE__ */ a.jsx(se, { variant: "secondary", onClick: b, children: y({ id: "inviteForm_ctaSendMoreInvites" }) }),
4253
4282
  /* @__PURE__ */ a.jsx(se, { onClick: k, children: y({ id: "inviteForm_ctaDone" }) })
@@ -4273,7 +4302,7 @@ const Yi = ({
4273
4302
  d(j), p(!j.length);
4274
4303
  },
4275
4304
  autoFocus: !1,
4276
- getLabel: (j, w, F) => /* @__PURE__ */ a.jsxs("div", { className: "email text-medium", children: [
4305
+ getLabel: (j, w, I) => /* @__PURE__ */ a.jsxs("div", { className: "email text-medium", children: [
4277
4306
  /* @__PURE__ */ a.jsx("div", { "data-tag-item": !0, children: j }),
4278
4307
  /* @__PURE__ */ a.jsx(
4279
4308
  se,
@@ -4282,7 +4311,7 @@ const Yi = ({
4282
4311
  size: "small",
4283
4312
  icon: { icon: "close" },
4284
4313
  onClick: () => {
4285
- F(w), p(!u.length);
4314
+ I(w), p(!u.length);
4286
4315
  },
4287
4316
  className: "remove-email-button",
4288
4317
  screenreaderText: y({ id: "overlay_close" })
@@ -4292,7 +4321,7 @@ const Yi = ({
4292
4321
  }
4293
4322
  )
4294
4323
  ] }),
4295
- /* @__PURE__ */ a.jsx(De, {}),
4324
+ /* @__PURE__ */ a.jsx(Ae, {}),
4296
4325
  /* @__PURE__ */ a.jsx("fieldset", { className: "footer", children: /* @__PURE__ */ a.jsx(se, { className: "sendEmailsButton", disabled: m, children: n }) })
4297
4326
  ]
4298
4327
  }
@@ -4375,7 +4404,7 @@ const Ki = ({
4375
4404
  gtmEvent: i = "form-submission"
4376
4405
  }) => {
4377
4406
  const { searchIsOpen: o = !0, isDesktopVersion: c = !1 } = n || {}, f = H(), l = pe(null);
4378
- yt(() => {
4407
+ _t(() => {
4379
4408
  !n || c || !o || l.current && l.current.focus();
4380
4409
  }, [o]);
4381
4410
  const u = (d) => {
@@ -4734,7 +4763,7 @@ const eo = {
4734
4763
  shouldDisableButton: b,
4735
4764
  showSuccessMessage: k,
4736
4765
  showError: j
4737
- } = p, [w, F] = oa([
4766
+ } = p, [w, I] = oa([
4738
4767
  "signup-this-session",
4739
4768
  "functional-cookie-consent"
4740
4769
  ]), R = {
@@ -4751,12 +4780,12 @@ const eo = {
4751
4780
  }, [v]), ae(() => {
4752
4781
  w["signup-this-session"] && g([{ type: "showSuccessMessage", value: !0 }]);
4753
4782
  }, [w]), ae(() => {
4754
- k && w["functional-cookie-consent"] && F("signup-this-session", "true", {
4783
+ k && w["functional-cookie-consent"] && I("signup-this-session", "true", {
4755
4784
  path: "/",
4756
4785
  maxAge: 3600
4757
4786
  });
4758
4787
  }, [k]);
4759
- const Q = _t(() => Ji({
4788
+ const Q = xt(() => Ji({
4760
4789
  shouldShow: m,
4761
4790
  functions: e,
4762
4791
  refs: R,
@@ -4764,7 +4793,7 @@ const eo = {
4764
4793
  dispatch: g,
4765
4794
  dataToSubmit: s,
4766
4795
  intl: o
4767
- }), [s, e, o, R, m, p]), N = b ? !0 : v ? !Object.values(_).every((O) => O === !0) : !_.name || !_.email || ["exists", "pending", "verify"].includes(y.boxType);
4796
+ }), [s, e, o, R, m, p]), C = b ? !0 : v ? !Object.values(_).every((F) => F === !0) : !_.name || !_.email || ["exists", "pending", "verify"].includes(y.boxType);
4768
4797
  return m.successMessage && k ? /* @__PURE__ */ a.jsx(Xi, { className: t }) : /* @__PURE__ */ a.jsxs(
4769
4798
  "fieldset",
4770
4799
  {
@@ -4791,7 +4820,7 @@ const eo = {
4791
4820
  variant: "primary",
4792
4821
  size: "medium",
4793
4822
  text: r || o.formatMessage({ id: "signup_button_join" }),
4794
- disabled: N ? { isClickable: !0 } : !1,
4823
+ disabled: C ? { isClickable: !0 } : !1,
4795
4824
  styling: { fullWidth: !0 },
4796
4825
  "data-testid": "signup-button"
4797
4826
  },
@@ -4825,8 +4854,8 @@ const eo = {
4825
4854
  state: p
4826
4855
  });
4827
4856
  },
4828
- onCatch: (O) => {
4829
- e.handleError(O), g([
4857
+ onCatch: (F) => {
4858
+ e.handleError(F), g([
4830
4859
  { type: "showSuccessMessage", value: !1 },
4831
4860
  { type: "showError", value: !0 }
4832
4861
  ]);
@@ -4839,7 +4868,7 @@ const eo = {
4839
4868
  }
4840
4869
  );
4841
4870
  };
4842
- var Zn = { exports: {} }, $t = { exports: {} }, ue = {};
4871
+ var Zn = { exports: {} }, Nt = { exports: {} }, ue = {};
4843
4872
  /** @license React v16.13.1
4844
4873
  * react-is.production.min.js
4845
4874
  *
@@ -4856,8 +4885,8 @@ function to() {
4856
4885
  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, f = t ? Symbol.for("react.async_mode") : 60111, l = t ? Symbol.for("react.concurrent_mode") : 60111, u = t ? Symbol.for("react.forward_ref") : 60112, d = 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, _ = t ? Symbol.for("react.block") : 60121, y = t ? Symbol.for("react.fundamental") : 60117, v = t ? Symbol.for("react.responder") : 60118, b = t ? Symbol.for("react.scope") : 60119;
4857
4886
  function k(w) {
4858
4887
  if (typeof w == "object" && w !== null) {
4859
- var F = w.$$typeof;
4860
- switch (F) {
4888
+ var I = w.$$typeof;
4889
+ switch (I) {
4861
4890
  case e:
4862
4891
  switch (w = w.type, w) {
4863
4892
  case f:
@@ -4876,11 +4905,11 @@ function to() {
4876
4905
  case o:
4877
4906
  return w;
4878
4907
  default:
4879
- return F;
4908
+ return I;
4880
4909
  }
4881
4910
  }
4882
4911
  case n:
4883
- return F;
4912
+ return I;
4884
4913
  }
4885
4914
  }
4886
4915
  }
@@ -4928,16 +4957,16 @@ var Fr;
4928
4957
  function no() {
4929
4958
  return Fr || (Fr = 1, process.env.NODE_ENV !== "production" && function() {
4930
4959
  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, f = t ? Symbol.for("react.async_mode") : 60111, l = t ? Symbol.for("react.concurrent_mode") : 60111, u = t ? Symbol.for("react.forward_ref") : 60112, d = 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, _ = t ? Symbol.for("react.block") : 60121, y = t ? Symbol.for("react.fundamental") : 60117, v = t ? Symbol.for("react.responder") : 60118, b = t ? Symbol.for("react.scope") : 60119;
4931
- function k(I) {
4932
- return typeof I == "string" || typeof I == "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
4933
- I === r || I === l || I === i || I === s || I === d || I === m || typeof I == "object" && I !== null && (I.$$typeof === g || I.$$typeof === p || I.$$typeof === o || I.$$typeof === c || I.$$typeof === u || I.$$typeof === y || I.$$typeof === v || I.$$typeof === b || I.$$typeof === _);
4960
+ function k(D) {
4961
+ return typeof D == "string" || typeof D == "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
4962
+ D === r || D === l || D === i || D === s || D === d || D === m || typeof D == "object" && D !== null && (D.$$typeof === g || D.$$typeof === p || D.$$typeof === o || D.$$typeof === c || D.$$typeof === u || D.$$typeof === y || D.$$typeof === v || D.$$typeof === b || D.$$typeof === _);
4934
4963
  }
4935
- function j(I) {
4936
- if (typeof I == "object" && I !== null) {
4937
- var ve = I.$$typeof;
4964
+ function j(D) {
4965
+ if (typeof D == "object" && D !== null) {
4966
+ var ve = D.$$typeof;
4938
4967
  switch (ve) {
4939
4968
  case e:
4940
- var Ne = I.type;
4969
+ var Ne = D.type;
4941
4970
  switch (Ne) {
4942
4971
  case f:
4943
4972
  case l:
@@ -4964,63 +4993,63 @@ function no() {
4964
4993
  }
4965
4994
  }
4966
4995
  }
4967
- var w = f, F = l, R = c, Q = o, N = e, O = u, C = r, T = g, x = p, $ = n, A = i, W = s, Z = d, z = !1;
4968
- function K(I) {
4969
- 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.")), E(I) || j(I) === f;
4996
+ var w = f, I = l, R = c, Q = o, C = e, F = u, $ = r, T = g, x = p, N = n, A = i, W = s, Z = d, z = !1;
4997
+ function K(D) {
4998
+ 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.")), E(D) || j(D) === f;
4970
4999
  }
4971
- function E(I) {
4972
- return j(I) === l;
5000
+ function E(D) {
5001
+ return j(D) === l;
4973
5002
  }
4974
- function P(I) {
4975
- return j(I) === c;
5003
+ function P(D) {
5004
+ return j(D) === c;
4976
5005
  }
4977
- function q(I) {
4978
- return j(I) === o;
5006
+ function q(D) {
5007
+ return j(D) === o;
4979
5008
  }
4980
- function B(I) {
4981
- return typeof I == "object" && I !== null && I.$$typeof === e;
5009
+ function B(D) {
5010
+ return typeof D == "object" && D !== null && D.$$typeof === e;
4982
5011
  }
4983
- function U(I) {
4984
- return j(I) === u;
5012
+ function U(D) {
5013
+ return j(D) === u;
4985
5014
  }
4986
- function te(I) {
4987
- return j(I) === r;
5015
+ function te(D) {
5016
+ return j(D) === r;
4988
5017
  }
4989
- function G(I) {
4990
- return j(I) === g;
5018
+ function G(D) {
5019
+ return j(D) === g;
4991
5020
  }
4992
- function V(I) {
4993
- return j(I) === p;
5021
+ function V(D) {
5022
+ return j(D) === p;
4994
5023
  }
4995
- function ee(I) {
4996
- return j(I) === n;
5024
+ function ee(D) {
5025
+ return j(D) === n;
4997
5026
  }
4998
- function re(I) {
4999
- return j(I) === i;
5027
+ function re(D) {
5028
+ return j(D) === i;
5000
5029
  }
5001
- function D(I) {
5002
- return j(I) === s;
5030
+ function O(D) {
5031
+ return j(D) === s;
5003
5032
  }
5004
- function oe(I) {
5005
- return j(I) === d;
5033
+ function oe(D) {
5034
+ return j(D) === d;
5006
5035
  }
5007
- de.AsyncMode = w, de.ConcurrentMode = F, de.ContextConsumer = R, de.ContextProvider = Q, de.Element = N, de.ForwardRef = O, de.Fragment = C, de.Lazy = T, de.Memo = x, de.Portal = $, de.Profiler = A, de.StrictMode = W, de.Suspense = Z, de.isAsyncMode = K, de.isConcurrentMode = E, de.isContextConsumer = P, de.isContextProvider = q, de.isElement = B, de.isForwardRef = U, de.isFragment = te, de.isLazy = G, de.isMemo = V, de.isPortal = ee, de.isProfiler = re, de.isStrictMode = D, de.isSuspense = oe, de.isValidElementType = k, de.typeOf = j;
5036
+ de.AsyncMode = w, de.ConcurrentMode = I, de.ContextConsumer = R, de.ContextProvider = Q, de.Element = C, de.ForwardRef = F, de.Fragment = $, de.Lazy = T, de.Memo = x, de.Portal = N, de.Profiler = A, de.StrictMode = W, de.Suspense = Z, de.isAsyncMode = K, de.isConcurrentMode = E, de.isContextConsumer = P, de.isContextProvider = q, de.isElement = B, 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 = k, de.typeOf = j;
5008
5037
  }()), de;
5009
5038
  }
5010
5039
  var Or;
5011
5040
  function Na() {
5012
- return Or || (Or = 1, process.env.NODE_ENV === "production" ? $t.exports = to() : $t.exports = no()), $t.exports;
5041
+ return Or || (Or = 1, process.env.NODE_ENV === "production" ? Nt.exports = to() : Nt.exports = no()), Nt.exports;
5013
5042
  }
5014
5043
  /*
5015
5044
  object-assign
5016
5045
  (c) Sindre Sorhus
5017
5046
  @license MIT
5018
5047
  */
5019
- var _n, Dr;
5048
+ var _n, Ar;
5020
5049
  function ro() {
5021
- if (Dr)
5050
+ if (Ar)
5022
5051
  return _n;
5023
- Dr = 1;
5052
+ Ar = 1;
5024
5053
  var t = Object.getOwnPropertySymbols, e = Object.prototype.hasOwnProperty, n = Object.prototype.propertyIsEnumerable;
5025
5054
  function r(i) {
5026
5055
  if (i == null)
@@ -5063,11 +5092,11 @@ function ro() {
5063
5092
  return f;
5064
5093
  }, _n;
5065
5094
  }
5066
- var xn, Ar;
5095
+ var xn, Dr;
5067
5096
  function nr() {
5068
- if (Ar)
5097
+ if (Dr)
5069
5098
  return xn;
5070
- Ar = 1;
5099
+ Dr = 1;
5071
5100
  var t = "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";
5072
5101
  return xn = t, xn;
5073
5102
  }
@@ -5163,11 +5192,11 @@ function so() {
5163
5192
  arrayOf: k,
5164
5193
  element: j(),
5165
5194
  elementType: w(),
5166
- instanceOf: F,
5167
- node: O(),
5195
+ instanceOf: I,
5196
+ node: F(),
5168
5197
  objectOf: Q,
5169
5198
  oneOf: R,
5170
- oneOfType: N,
5199
+ oneOfType: C,
5171
5200
  shape: T,
5172
5201
  exact: x
5173
5202
  };
@@ -5181,22 +5210,22 @@ function so() {
5181
5210
  function y(E) {
5182
5211
  if (process.env.NODE_ENV !== "production")
5183
5212
  var P = {}, q = 0;
5184
- function B(te, G, V, ee, re, D, oe) {
5185
- if (ee = ee || m, D = D || V, oe !== n) {
5213
+ function B(te, G, V, ee, re, O, oe) {
5214
+ if (ee = ee || m, O = O || V, oe !== n) {
5186
5215
  if (f) {
5187
- var I = new Error(
5216
+ var D = new Error(
5188
5217
  "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"
5189
5218
  );
5190
- throw I.name = "Invariant Violation", I;
5219
+ throw D.name = "Invariant Violation", D;
5191
5220
  } else if (process.env.NODE_ENV !== "production" && typeof console < "u") {
5192
5221
  var ve = ee + ":" + V;
5193
5222
  !P[ve] && // Avoid spamming the console because they are often not actionable except for lib authors
5194
5223
  q < 3 && (i(
5195
- "You are manually calling a React.PropTypes validation function for the `" + D + "` 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."
5224
+ "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."
5196
5225
  ), P[ve] = !0, q++);
5197
5226
  }
5198
5227
  }
5199
- return G[V] == null ? te ? G[V] === null ? new _("The " + re + " `" + D + "` is marked as required " + ("in `" + ee + "`, but its value is `null`.")) : new _("The " + re + " `" + D + "` is marked as required in " + ("`" + ee + "`, but its value is `undefined`.")) : null : E(G, V, ee, re, D);
5228
+ return G[V] == null ? te ? G[V] === null ? new _("The " + re + " `" + O + "` is marked as required " + ("in `" + ee + "`, but its value is `null`.")) : new _("The " + re + " `" + O + "` is marked as required in " + ("`" + ee + "`, but its value is `undefined`.")) : null : E(G, V, ee, re, O);
5200
5229
  }
5201
5230
  var U = B.bind(null, !1);
5202
5231
  return U.isRequired = B.bind(null, !0), U;
@@ -5205,9 +5234,9 @@ function so() {
5205
5234
  function P(q, B, U, te, G, V) {
5206
5235
  var ee = q[B], re = W(ee);
5207
5236
  if (re !== E) {
5208
- var D = Z(ee);
5237
+ var O = Z(ee);
5209
5238
  return new _(
5210
- "Invalid " + te + " `" + G + "` of type " + ("`" + D + "` supplied to `" + U + "`, expected ") + ("`" + E + "`."),
5239
+ "Invalid " + te + " `" + G + "` of type " + ("`" + O + "` supplied to `" + U + "`, expected ") + ("`" + E + "`."),
5211
5240
  { expectedType: E }
5212
5241
  );
5213
5242
  }
@@ -5228,9 +5257,9 @@ function so() {
5228
5257
  return new _("Invalid " + te + " `" + G + "` of type " + ("`" + ee + "` supplied to `" + U + "`, expected an array."));
5229
5258
  }
5230
5259
  for (var re = 0; re < V.length; re++) {
5231
- var D = E(V, re, U, te, G + "[" + re + "]", n);
5232
- if (D instanceof Error)
5233
- return D;
5260
+ var O = E(V, re, U, te, G + "[" + re + "]", n);
5261
+ if (O instanceof Error)
5262
+ return O;
5234
5263
  }
5235
5264
  return null;
5236
5265
  }
@@ -5258,7 +5287,7 @@ function so() {
5258
5287
  }
5259
5288
  return y(E);
5260
5289
  }
5261
- function F(E) {
5290
+ function I(E) {
5262
5291
  function P(q, B, U, te, G) {
5263
5292
  if (!(q[B] instanceof E)) {
5264
5293
  var V = E.name || m, ee = K(q[B]);
@@ -5277,9 +5306,9 @@ function so() {
5277
5306
  for (var V = q[B], ee = 0; ee < E.length; ee++)
5278
5307
  if (g(V, E[ee]))
5279
5308
  return null;
5280
- var re = JSON.stringify(E, function(oe, I) {
5281
- var ve = Z(I);
5282
- return ve === "symbol" ? String(I) : I;
5309
+ var re = JSON.stringify(E, function(oe, D) {
5310
+ var ve = Z(D);
5311
+ return ve === "symbol" ? String(D) : D;
5283
5312
  });
5284
5313
  return new _("Invalid " + te + " `" + G + "` of value `" + String(V) + "` " + ("supplied to `" + U + "`, expected one of " + re + "."));
5285
5314
  }
@@ -5294,15 +5323,15 @@ function so() {
5294
5323
  return new _("Invalid " + te + " `" + G + "` of type " + ("`" + ee + "` supplied to `" + U + "`, expected an object."));
5295
5324
  for (var re in V)
5296
5325
  if (r(V, re)) {
5297
- var D = E(V, re, U, te, G + "." + re, n);
5298
- if (D instanceof Error)
5299
- return D;
5326
+ var O = E(V, re, U, te, G + "." + re, n);
5327
+ if (O instanceof Error)
5328
+ return O;
5300
5329
  }
5301
5330
  return null;
5302
5331
  }
5303
5332
  return y(P);
5304
5333
  }
5305
- function N(E) {
5334
+ function C(E) {
5306
5335
  if (!Array.isArray(E))
5307
5336
  return process.env.NODE_ENV !== "production" && i("Invalid argument supplied to oneOfType, expected an instance of array."), o;
5308
5337
  for (var P = 0; P < E.length; P++) {
@@ -5313,24 +5342,24 @@ function so() {
5313
5342
  ), o;
5314
5343
  }
5315
5344
  function B(U, te, G, V, ee) {
5316
- for (var re = [], D = 0; D < E.length; D++) {
5317
- var oe = E[D], I = oe(U, te, G, V, ee, n);
5318
- if (I == null)
5345
+ for (var re = [], O = 0; O < E.length; O++) {
5346
+ var oe = E[O], D = oe(U, te, G, V, ee, n);
5347
+ if (D == null)
5319
5348
  return null;
5320
- I.data && r(I.data, "expectedType") && re.push(I.data.expectedType);
5349
+ D.data && r(D.data, "expectedType") && re.push(D.data.expectedType);
5321
5350
  }
5322
5351
  var ve = re.length > 0 ? ", expected one of type [" + re.join(", ") + "]" : "";
5323
5352
  return new _("Invalid " + V + " `" + ee + "` supplied to " + ("`" + G + "`" + ve + "."));
5324
5353
  }
5325
5354
  return y(B);
5326
5355
  }
5327
- function O() {
5356
+ function F() {
5328
5357
  function E(P, q, B, U, te) {
5329
- return $(P[q]) ? null : new _("Invalid " + U + " `" + te + "` supplied to " + ("`" + B + "`, expected a ReactNode."));
5358
+ return N(P[q]) ? null : new _("Invalid " + U + " `" + te + "` supplied to " + ("`" + B + "`, expected a ReactNode."));
5330
5359
  }
5331
5360
  return y(E);
5332
5361
  }
5333
- function C(E, P, q, B, U) {
5362
+ function $(E, P, q, B, U) {
5334
5363
  return new _(
5335
5364
  (E || "React class") + ": " + P + " type `" + q + "." + B + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + U + "`."
5336
5365
  );
@@ -5341,10 +5370,10 @@ function so() {
5341
5370
  if (ee !== "object")
5342
5371
  return new _("Invalid " + te + " `" + G + "` of type `" + ee + "` " + ("supplied to `" + U + "`, expected `object`."));
5343
5372
  for (var re in E) {
5344
- var D = E[re];
5345
- if (typeof D != "function")
5346
- return C(U, te, G, re, Z(D));
5347
- var oe = D(V, re, U, te, G + "." + re, n);
5373
+ var O = E[re];
5374
+ if (typeof O != "function")
5375
+ return $(U, te, G, re, Z(O));
5376
+ var oe = O(V, re, U, te, G + "." + re, n);
5348
5377
  if (oe)
5349
5378
  return oe;
5350
5379
  }
@@ -5358,24 +5387,24 @@ function so() {
5358
5387
  if (ee !== "object")
5359
5388
  return new _("Invalid " + te + " `" + G + "` of type `" + ee + "` " + ("supplied to `" + U + "`, expected `object`."));
5360
5389
  var re = e({}, q[B], E);
5361
- for (var D in re) {
5362
- var oe = E[D];
5363
- if (r(E, D) && typeof oe != "function")
5364
- return C(U, te, G, D, Z(oe));
5390
+ for (var O in re) {
5391
+ var oe = E[O];
5392
+ if (r(E, O) && typeof oe != "function")
5393
+ return $(U, te, G, O, Z(oe));
5365
5394
  if (!oe)
5366
5395
  return new _(
5367
- "Invalid " + te + " `" + G + "` key `" + D + "` supplied to `" + U + "`.\nBad object: " + JSON.stringify(q[B], null, " ") + `
5396
+ "Invalid " + te + " `" + G + "` key `" + O + "` supplied to `" + U + "`.\nBad object: " + JSON.stringify(q[B], null, " ") + `
5368
5397
  Valid keys: ` + JSON.stringify(Object.keys(E), null, " ")
5369
5398
  );
5370
- var I = oe(V, D, U, te, G + "." + D, n);
5371
- if (I)
5372
- return I;
5399
+ var D = oe(V, O, U, te, G + "." + O, n);
5400
+ if (D)
5401
+ return D;
5373
5402
  }
5374
5403
  return null;
5375
5404
  }
5376
5405
  return y(P);
5377
5406
  }
5378
- function $(E) {
5407
+ function N(E) {
5379
5408
  switch (typeof E) {
5380
5409
  case "number":
5381
5410
  case "string":
@@ -5385,7 +5414,7 @@ Valid keys: ` + JSON.stringify(Object.keys(E), null, " ")
5385
5414
  return !E;
5386
5415
  case "object":
5387
5416
  if (Array.isArray(E))
5388
- return E.every($);
5417
+ return E.every(N);
5389
5418
  if (E === null || c(E))
5390
5419
  return !0;
5391
5420
  var P = d(E);
@@ -5393,12 +5422,12 @@ Valid keys: ` + JSON.stringify(Object.keys(E), null, " ")
5393
5422
  var q = P.call(E), B;
5394
5423
  if (P !== E.entries) {
5395
5424
  for (; !(B = q.next()).done; )
5396
- if (!$(B.value))
5425
+ if (!N(B.value))
5397
5426
  return !1;
5398
5427
  } else
5399
5428
  for (; !(B = q.next()).done; ) {
5400
5429
  var U = B.value;
5401
- if (U && !$(U[1]))
5430
+ if (U && !N(U[1]))
5402
5431
  return !1;
5403
5432
  }
5404
5433
  } else
@@ -5551,21 +5580,21 @@ var Ma = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])",
5551
5580
  }
5552
5581
  }
5553
5582
  return s;
5554
- }, Da = function(e) {
5583
+ }, Aa = function(e) {
5555
5584
  return !isNaN(parseInt(e.getAttribute("tabindex"), 10));
5556
5585
  }, Le = function(e) {
5557
5586
  if (!e)
5558
5587
  throw new Error("No node provided");
5559
- return e.tabIndex < 0 && (/^(AUDIO|VIDEO|DETAILS)$/.test(e.tagName) || uo(e)) && !Da(e) ? 0 : e.tabIndex;
5588
+ return e.tabIndex < 0 && (/^(AUDIO|VIDEO|DETAILS)$/.test(e.tagName) || uo(e)) && !Aa(e) ? 0 : e.tabIndex;
5560
5589
  }, fo = function(e, n) {
5561
5590
  var r = Le(e);
5562
- return r < 0 && n && !Da(e) ? 0 : r;
5591
+ return r < 0 && n && !Aa(e) ? 0 : r;
5563
5592
  }, mo = function(e, n) {
5564
5593
  return e.tabIndex === n.tabIndex ? e.documentOrder - n.documentOrder : e.tabIndex - n.tabIndex;
5565
- }, Aa = function(e) {
5594
+ }, Da = function(e) {
5566
5595
  return e.tagName === "INPUT";
5567
5596
  }, po = function(e) {
5568
- return Aa(e) && e.type === "hidden";
5597
+ return Da(e) && e.type === "hidden";
5569
5598
  }, ho = function(e) {
5570
5599
  var n = e.tagName === "DETAILS" && Array.prototype.slice.apply(e.children).some(function(r) {
5571
5600
  return r.tagName === "SUMMARY";
@@ -5592,7 +5621,7 @@ var Ma = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])",
5592
5621
  var i = go(s, e.form);
5593
5622
  return !i || i === e;
5594
5623
  }, bo = function(e) {
5595
- return Aa(e) && e.type === "radio";
5624
+ return Da(e) && e.type === "radio";
5596
5625
  }, yo = function(e) {
5597
5626
  return bo(e) && !vo(e);
5598
5627
  }, _o = function(e) {
@@ -5688,11 +5717,11 @@ var Ma = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])",
5688
5717
  flatten: !0,
5689
5718
  getShadowRoot: n.getShadowRoot
5690
5719
  }) : r = Fa(e, n.includeContainer, Vt.bind(null, n)), r;
5691
- }, Ue = function(e, n) {
5720
+ }, We = function(e, n) {
5692
5721
  if (n = n || {}, !e)
5693
5722
  throw new Error("No node provided");
5694
5723
  return Ze.call(e, zt) === !1 ? !1 : Hn(n, e);
5695
- }, To = /* @__PURE__ */ Ma.concat("iframe").join(","), Lt = function(e, n) {
5724
+ }, To = /* @__PURE__ */ Ma.concat("iframe").join(","), Bt = function(e, n) {
5696
5725
  if (n = n || {}, !e)
5697
5726
  throw new Error("No node provided");
5698
5727
  return Ze.call(e, To) === !1 ? !1 : Vt(n, e);
@@ -5701,8 +5730,8 @@ const Eo = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
5701
5730
  __proto__: null,
5702
5731
  focusable: La,
5703
5732
  getTabIndex: Le,
5704
- isFocusable: Lt,
5705
- isTabbable: Ue,
5733
+ isFocusable: Bt,
5734
+ isTabbable: We,
5706
5735
  tabbable: Ia
5707
5736
  }, Symbol.toStringTag, { value: "Module" }));
5708
5737
  /*!
@@ -5771,12 +5800,12 @@ var Zr = {
5771
5800
  return e.tagName && e.tagName.toLowerCase() === "input" && typeof e.select == "function";
5772
5801
  }, Po = function(e) {
5773
5802
  return (e == null ? void 0 : e.key) === "Escape" || (e == null ? void 0 : e.key) === "Esc" || (e == null ? void 0 : e.keyCode) === 27;
5774
- }, gt = function(e) {
5803
+ }, vt = function(e) {
5775
5804
  return (e == null ? void 0 : e.key) === "Tab" || (e == null ? void 0 : e.keyCode) === 9;
5776
5805
  }, Mo = function(e) {
5777
- return gt(e) && !e.shiftKey;
5806
+ return vt(e) && !e.shiftKey;
5778
5807
  }, Ro = function(e) {
5779
- return gt(e) && e.shiftKey;
5808
+ return vt(e) && e.shiftKey;
5780
5809
  }, Hr = function(e) {
5781
5810
  return setTimeout(e, 0);
5782
5811
  }, Vr = function(e, n) {
@@ -5788,7 +5817,7 @@ var Zr = {
5788
5817
  for (var n = arguments.length, r = new Array(n > 1 ? n - 1 : 0), s = 1; s < n; s++)
5789
5818
  r[s - 1] = arguments[s];
5790
5819
  return typeof e == "function" ? e.apply(void 0, r) : e;
5791
- }, Nt = function(e) {
5820
+ }, Pt = function(e) {
5792
5821
  return e.target.shadowRoot && typeof e.composedPath == "function" ? e.composedPath()[0] : e.target;
5793
5822
  }, Fo = [], Oo = function(e, n) {
5794
5823
  var r = (n == null ? void 0 : n.document) || document, s = (n == null ? void 0 : n.trapStack) || Fo, i = zr({
@@ -5833,24 +5862,24 @@ var Zr = {
5833
5862
  delayInitialFocusTimer: void 0,
5834
5863
  // the most recent KeyboardEvent for the configured nav key (typically [SHIFT+]TAB), if any
5835
5864
  recentNavEvent: void 0
5836
- }, c, f = function(T, x, $) {
5837
- return T && T[x] !== void 0 ? T[x] : i[$ || x];
5865
+ }, c, f = function(T, x, N) {
5866
+ return T && T[x] !== void 0 ? T[x] : i[N || x];
5838
5867
  }, l = function(T, x) {
5839
- var $ = typeof (x == null ? void 0 : x.composedPath) == "function" ? x.composedPath() : void 0;
5868
+ var N = typeof (x == null ? void 0 : x.composedPath) == "function" ? x.composedPath() : void 0;
5840
5869
  return o.containerGroups.findIndex(function(A) {
5841
5870
  var W = A.container, Z = A.tabbableNodes;
5842
5871
  return W.contains(T) || // fall back to explicit tabbable search which will take into consideration any
5843
5872
  // web components if the `tabbableOptions.getShadowRoot` option was used for
5844
5873
  // the trap, enabling shadow DOM support in tabbable (`Node.contains()` doesn't
5845
5874
  // look inside web components even if open)
5846
- ($ == null ? void 0 : $.includes(W)) || Z.find(function(z) {
5875
+ (N == null ? void 0 : N.includes(W)) || Z.find(function(z) {
5847
5876
  return z === T;
5848
5877
  });
5849
5878
  });
5850
5879
  }, u = function(T) {
5851
5880
  var x = i[T];
5852
5881
  if (typeof x == "function") {
5853
- for (var $ = arguments.length, A = new Array($ > 1 ? $ - 1 : 0), W = 1; W < $; W++)
5882
+ for (var N = arguments.length, A = new Array(N > 1 ? N - 1 : 0), W = 1; W < N; W++)
5854
5883
  A[W - 1] = arguments[W];
5855
5884
  x = x.apply(void 0, A);
5856
5885
  }
@@ -5867,29 +5896,29 @@ var Zr = {
5867
5896
  var T = u("initialFocus");
5868
5897
  if (T === !1)
5869
5898
  return !1;
5870
- if (T === void 0 || !Lt(T, i.tabbableOptions))
5899
+ if (T === void 0 || !Bt(T, i.tabbableOptions))
5871
5900
  if (l(r.activeElement) >= 0)
5872
5901
  T = r.activeElement;
5873
5902
  else {
5874
- var x = o.tabbableGroups[0], $ = x && x.firstTabbableNode;
5875
- T = $ || u("fallbackFocus");
5903
+ var x = o.tabbableGroups[0], N = x && x.firstTabbableNode;
5904
+ T = N || u("fallbackFocus");
5876
5905
  }
5877
5906
  if (!T)
5878
5907
  throw new Error("Your focus-trap needs to have at least one focusable element");
5879
5908
  return T;
5880
5909
  }, m = function() {
5881
5910
  if (o.containerGroups = o.containers.map(function(T) {
5882
- var x = Ia(T, i.tabbableOptions), $ = La(T, i.tabbableOptions), A = x.length > 0 ? x[0] : void 0, W = x.length > 0 ? x[x.length - 1] : void 0, Z = $.find(function(E) {
5883
- return Ue(E);
5884
- }), z = $.slice().reverse().find(function(E) {
5885
- return Ue(E);
5911
+ var x = Ia(T, i.tabbableOptions), N = La(T, i.tabbableOptions), A = x.length > 0 ? x[0] : void 0, W = x.length > 0 ? x[x.length - 1] : void 0, Z = N.find(function(E) {
5912
+ return We(E);
5913
+ }), z = N.slice().reverse().find(function(E) {
5914
+ return We(E);
5886
5915
  }), K = !!x.find(function(E) {
5887
5916
  return Le(E) > 0;
5888
5917
  });
5889
5918
  return {
5890
5919
  container: T,
5891
5920
  tabbableNodes: x,
5892
- focusableNodes: $,
5921
+ focusableNodes: N,
5893
5922
  /** True if at least one node with positive `tabindex` was found in this container. */
5894
5923
  posTabIndexesFound: K,
5895
5924
  /** First tabbable node in container, __tabindex__ order; `undefined` if none. */
@@ -5917,10 +5946,10 @@ var Zr = {
5917
5946
  */
5918
5947
  nextTabbableNode: function(P) {
5919
5948
  var q = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !0, B = x.indexOf(P);
5920
- return B < 0 ? q ? $.slice($.indexOf(P) + 1).find(function(U) {
5921
- return Ue(U);
5922
- }) : $.slice(0, $.indexOf(P)).reverse().find(function(U) {
5923
- return Ue(U);
5949
+ return B < 0 ? q ? N.slice(N.indexOf(P) + 1).find(function(U) {
5950
+ return We(U);
5951
+ }) : N.slice(0, N.indexOf(P)).reverse().find(function(U) {
5952
+ return We(U);
5924
5953
  }) : x[B + (q ? 1 : -1)];
5925
5954
  }
5926
5955
  };
@@ -5932,14 +5961,14 @@ var Zr = {
5932
5961
  return T.posTabIndexesFound;
5933
5962
  }) && o.containerGroups.length > 1)
5934
5963
  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.");
5935
- }, p = function C(T) {
5964
+ }, p = function $(T) {
5936
5965
  var x = T.activeElement;
5937
5966
  if (x)
5938
- return x.shadowRoot && x.shadowRoot.activeElement !== null ? C(x.shadowRoot) : x;
5939
- }, g = function C(T) {
5967
+ return x.shadowRoot && x.shadowRoot.activeElement !== null ? $(x.shadowRoot) : x;
5968
+ }, g = function $(T) {
5940
5969
  if (T !== !1 && T !== p(document)) {
5941
5970
  if (!T || !T.focus) {
5942
- C(d());
5971
+ $(d());
5943
5972
  return;
5944
5973
  }
5945
5974
  T.focus({
@@ -5950,11 +5979,11 @@ var Zr = {
5950
5979
  var x = u("setReturnFocus", T);
5951
5980
  return x || (x === !1 ? !1 : T);
5952
5981
  }, y = function(T) {
5953
- var x = T.target, $ = T.event, A = T.isBackward, W = A === void 0 ? !1 : A;
5954
- x = x || Nt($), m();
5982
+ var x = T.target, N = T.event, A = T.isBackward, W = A === void 0 ? !1 : A;
5983
+ x = x || Pt(N), m();
5955
5984
  var Z = null;
5956
5985
  if (o.tabbableGroups.length > 0) {
5957
- var z = l(x, $), K = z >= 0 ? o.containerGroups[z] : void 0;
5986
+ var z = l(x, N), K = z >= 0 ? o.containerGroups[z] : void 0;
5958
5987
  if (z < 0)
5959
5988
  W ? Z = o.tabbableGroups[o.tabbableGroups.length - 1].lastTabbableNode : Z = o.tabbableGroups[0].firstTabbableNode;
5960
5989
  else if (W) {
@@ -5962,27 +5991,27 @@ var Zr = {
5962
5991
  var V = G.firstTabbableNode;
5963
5992
  return x === V;
5964
5993
  });
5965
- if (E < 0 && (K.container === x || Lt(x, i.tabbableOptions) && !Ue(x, i.tabbableOptions) && !K.nextTabbableNode(x, !1)) && (E = z), E >= 0) {
5994
+ if (E < 0 && (K.container === x || Bt(x, i.tabbableOptions) && !We(x, i.tabbableOptions) && !K.nextTabbableNode(x, !1)) && (E = z), E >= 0) {
5966
5995
  var P = E === 0 ? o.tabbableGroups.length - 1 : E - 1, q = o.tabbableGroups[P];
5967
5996
  Z = Le(x) >= 0 ? q.lastTabbableNode : q.lastDomTabbableNode;
5968
5997
  } else
5969
- gt($) || (Z = K.nextTabbableNode(x, !1));
5998
+ vt(N) || (Z = K.nextTabbableNode(x, !1));
5970
5999
  } else {
5971
6000
  var B = Vr(o.tabbableGroups, function(G) {
5972
6001
  var V = G.lastTabbableNode;
5973
6002
  return x === V;
5974
6003
  });
5975
- if (B < 0 && (K.container === x || Lt(x, i.tabbableOptions) && !Ue(x, i.tabbableOptions) && !K.nextTabbableNode(x)) && (B = z), B >= 0) {
6004
+ if (B < 0 && (K.container === x || Bt(x, i.tabbableOptions) && !We(x, i.tabbableOptions) && !K.nextTabbableNode(x)) && (B = z), B >= 0) {
5976
6005
  var U = B === o.tabbableGroups.length - 1 ? 0 : B + 1, te = o.tabbableGroups[U];
5977
6006
  Z = Le(x) >= 0 ? te.firstTabbableNode : te.firstDomTabbableNode;
5978
6007
  } else
5979
- gt($) || (Z = K.nextTabbableNode(x));
6008
+ vt(N) || (Z = K.nextTabbableNode(x));
5980
6009
  }
5981
6010
  } else
5982
6011
  Z = u("fallbackFocus");
5983
6012
  return Z;
5984
6013
  }, v = function(T) {
5985
- var x = Nt(T);
6014
+ var x = Pt(T);
5986
6015
  if (!(l(x, T) >= 0)) {
5987
6016
  if (lt(i.clickOutsideDeactivates, T)) {
5988
6017
  c.deactivate({
@@ -5999,9 +6028,9 @@ var Zr = {
5999
6028
  lt(i.allowOutsideClick, T) || T.preventDefault();
6000
6029
  }
6001
6030
  }, b = function(T) {
6002
- var x = Nt(T), $ = l(x, T) >= 0;
6003
- if ($ || x instanceof Document)
6004
- $ && (o.mostRecentlyFocusedNode = x);
6031
+ var x = Pt(T), N = l(x, T) >= 0;
6032
+ if (N || x instanceof Document)
6033
+ N && (o.mostRecentlyFocusedNode = x);
6005
6034
  else {
6006
6035
  T.stopImmediatePropagation();
6007
6036
  var A, W = !0;
@@ -6033,11 +6062,11 @@ var Zr = {
6033
6062
  }, k = function(T) {
6034
6063
  var x = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !1;
6035
6064
  o.recentNavEvent = T;
6036
- var $ = y({
6065
+ var N = y({
6037
6066
  event: T,
6038
6067
  isBackward: x
6039
6068
  });
6040
- $ && (gt(T) && T.preventDefault(), g($));
6069
+ N && (vt(T) && T.preventDefault(), g(N));
6041
6070
  }, j = function(T) {
6042
6071
  if (Po(T) && lt(i.escapeDeactivates, T) !== !1) {
6043
6072
  T.preventDefault(), c.deactivate();
@@ -6045,9 +6074,9 @@ var Zr = {
6045
6074
  }
6046
6075
  (i.isKeyForward(T) || i.isKeyBackward(T)) && k(T, i.isKeyBackward(T));
6047
6076
  }, w = function(T) {
6048
- var x = Nt(T);
6077
+ var x = Pt(T);
6049
6078
  l(x, T) >= 0 || lt(i.clickOutsideDeactivates, T) || lt(i.allowOutsideClick, T) || (T.preventDefault(), T.stopImmediatePropagation());
6050
- }, F = function() {
6079
+ }, I = function() {
6051
6080
  if (o.active)
6052
6081
  return Zr.activateTrap(s, c), o.delayInitialFocusTimer = i.delayInitialFocus ? Hr(function() {
6053
6082
  g(d());
@@ -6068,16 +6097,16 @@ var Zr = {
6068
6097
  if (o.active)
6069
6098
  return r.removeEventListener("focusin", b, !0), r.removeEventListener("mousedown", v, !0), r.removeEventListener("touchstart", v, !0), r.removeEventListener("click", w, !0), r.removeEventListener("keydown", j, !0), c;
6070
6099
  }, Q = function(T) {
6071
- var x = T.some(function($) {
6072
- var A = Array.from($.removedNodes);
6100
+ var x = T.some(function(N) {
6101
+ var A = Array.from(N.removedNodes);
6073
6102
  return A.some(function(W) {
6074
6103
  return W === o.mostRecentlyFocusedNode;
6075
6104
  });
6076
6105
  });
6077
6106
  x && g(d());
6078
- }, N = typeof window < "u" && "MutationObserver" in window ? new MutationObserver(Q) : void 0, O = function() {
6079
- N && (N.disconnect(), o.active && !o.paused && o.containers.map(function(T) {
6080
- N.observe(T, {
6107
+ }, C = typeof window < "u" && "MutationObserver" in window ? new MutationObserver(Q) : void 0, F = function() {
6108
+ C && (C.disconnect(), o.active && !o.paused && o.containers.map(function(T) {
6109
+ C.observe(T, {
6081
6110
  subtree: !0,
6082
6111
  childList: !0
6083
6112
  });
@@ -6093,10 +6122,10 @@ var Zr = {
6093
6122
  activate: function(T) {
6094
6123
  if (o.active)
6095
6124
  return this;
6096
- var x = f(T, "onActivate"), $ = f(T, "onPostActivate"), A = f(T, "checkCanFocusTrap");
6125
+ var x = f(T, "onActivate"), N = f(T, "onPostActivate"), A = f(T, "checkCanFocusTrap");
6097
6126
  A || m(), o.active = !0, o.paused = !1, o.nodeFocusedBeforeActivation = r.activeElement, x == null || x();
6098
6127
  var W = function() {
6099
- A && m(), F(), O(), $ == null || $();
6128
+ A && m(), I(), F(), N == null || N();
6100
6129
  };
6101
6130
  return A ? (A(o.containers.concat()).then(W, W), this) : (W(), this);
6102
6131
  },
@@ -6108,9 +6137,9 @@ var Zr = {
6108
6137
  onPostDeactivate: i.onPostDeactivate,
6109
6138
  checkCanReturnFocus: i.checkCanReturnFocus
6110
6139
  }, T);
6111
- clearTimeout(o.delayInitialFocusTimer), o.delayInitialFocusTimer = void 0, R(), o.active = !1, o.paused = !1, O(), Zr.deactivateTrap(s, c);
6112
- var $ = f(x, "onDeactivate"), A = f(x, "onPostDeactivate"), W = f(x, "checkCanReturnFocus"), Z = f(x, "returnFocus", "returnFocusOnDeactivate");
6113
- $ == null || $();
6140
+ clearTimeout(o.delayInitialFocusTimer), o.delayInitialFocusTimer = void 0, R(), o.active = !1, o.paused = !1, F(), Zr.deactivateTrap(s, c);
6141
+ var N = f(x, "onDeactivate"), A = f(x, "onPostDeactivate"), W = f(x, "checkCanReturnFocus"), Z = f(x, "returnFocus", "returnFocusOnDeactivate");
6142
+ N == null || N();
6114
6143
  var z = function() {
6115
6144
  Hr(function() {
6116
6145
  Z && g(_(o.nodeFocusedBeforeActivation)), A == null || A();
@@ -6121,27 +6150,27 @@ var Zr = {
6121
6150
  pause: function(T) {
6122
6151
  if (o.paused || !o.active)
6123
6152
  return this;
6124
- var x = f(T, "onPause"), $ = f(T, "onPostPause");
6125
- return o.paused = !0, x == null || x(), R(), O(), $ == null || $(), this;
6153
+ var x = f(T, "onPause"), N = f(T, "onPostPause");
6154
+ return o.paused = !0, x == null || x(), R(), F(), N == null || N(), this;
6126
6155
  },
6127
6156
  unpause: function(T) {
6128
6157
  if (!o.paused || !o.active)
6129
6158
  return this;
6130
- var x = f(T, "onUnpause"), $ = f(T, "onPostUnpause");
6131
- return o.paused = !1, x == null || x(), m(), F(), O(), $ == null || $(), this;
6159
+ var x = f(T, "onUnpause"), N = f(T, "onPostUnpause");
6160
+ return o.paused = !1, x == null || x(), m(), I(), F(), N == null || N(), this;
6132
6161
  },
6133
6162
  updateContainerElements: function(T) {
6134
6163
  var x = [].concat(T).filter(Boolean);
6135
- return o.containers = x.map(function($) {
6136
- return typeof $ == "string" ? r.querySelector($) : $;
6137
- }), o.active && m(), O(), this;
6164
+ return o.containers = x.map(function(N) {
6165
+ return typeof N == "string" ? r.querySelector(N) : N;
6166
+ }), o.active && m(), F(), this;
6138
6167
  }
6139
6168
  }, c.updateContainerElements(e), c;
6140
6169
  };
6141
- const Do = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
6170
+ const Ao = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
6142
6171
  __proto__: null,
6143
6172
  createFocusTrap: Oo
6144
- }, Symbol.toStringTag, { value: "Module" })), Ao = /* @__PURE__ */ ua(Do), Io = /* @__PURE__ */ ua(Eo);
6173
+ }, Symbol.toStringTag, { value: "Module" })), Do = /* @__PURE__ */ ua(Ao), Io = /* @__PURE__ */ ua(Eo);
6145
6174
  function tt(t) {
6146
6175
  "@babel/helpers - typeof";
6147
6176
  return tt = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
@@ -6233,7 +6262,7 @@ function Ho(t, e) {
6233
6262
  }
6234
6263
  return (e === "string" ? String : Number)(t);
6235
6264
  }
6236
- var Pt = Y, J = lo, Vo = Ao, Yo = Vo.createFocusTrap, Ko = Io, Go = Ko.isFocusable, rr = /* @__PURE__ */ function(t) {
6265
+ var Mt = Y, J = lo, Vo = Do, Yo = Vo.createFocusTrap, Ko = Io, Go = Ko.isFocusable, rr = /* @__PURE__ */ function(t) {
6237
6266
  qo(n, t);
6238
6267
  var e = Uo(n);
6239
6268
  function n(r) {
@@ -6405,14 +6434,14 @@ var Pt = Y, J = lo, Vo = Ao, Yo = Vo.createFocusTrap, Ko = Io, Go = Ko.isFocusab
6405
6434
  }, {
6406
6435
  key: "render",
6407
6436
  value: function() {
6408
- var s = this, i = this.props.children ? Pt.Children.only(this.props.children) : void 0;
6437
+ var s = this, i = this.props.children ? Mt.Children.only(this.props.children) : void 0;
6409
6438
  if (i) {
6410
- if (i.type && i.type === Pt.Fragment)
6439
+ if (i.type && i.type === Mt.Fragment)
6411
6440
  throw new Error("A focus-trap cannot use a Fragment as its child container. Try replacing it with a <div> element.");
6412
6441
  var o = function(l) {
6413
6442
  var u = s.props.containerElements;
6414
6443
  i && (typeof i.ref == "function" ? i.ref(l) : i.ref && (i.ref.current = l)), s.focusTrapElements = u || [l];
6415
- }, c = Pt.cloneElement(i, {
6444
+ }, c = Mt.cloneElement(i, {
6416
6445
  ref: o
6417
6446
  });
6418
6447
  return c;
@@ -6420,7 +6449,7 @@ var Pt = Y, J = lo, Vo = Ao, Yo = Vo.createFocusTrap, Ko = Io, Go = Ko.isFocusab
6420
6449
  return null;
6421
6450
  }
6422
6451
  }]), n;
6423
- }(Pt.Component), ut = typeof Element > "u" ? Function : Element;
6452
+ }(Mt.Component), ut = typeof Element > "u" ? Function : Element;
6424
6453
  rr.propTypes = {
6425
6454
  active: J.bool,
6426
6455
  paused: J.bool,
@@ -6536,11 +6565,11 @@ const an = ({
6536
6565
  }
6537
6566
  )
6538
6567
  ] }),
6539
- n && /* @__PURE__ */ a.jsx(De, {}),
6568
+ n && /* @__PURE__ */ a.jsx(Ae, {}),
6540
6569
  f,
6541
6570
  l && /* @__PURE__ */ a.jsxs("div", { className: "bottom", children: [
6542
- /* @__PURE__ */ a.jsx(De, {}),
6543
- /* @__PURE__ */ a.jsx(wt, { buttons: l })
6571
+ /* @__PURE__ */ a.jsx(Ae, {}),
6572
+ /* @__PURE__ */ a.jsx(jt, { buttons: l })
6544
6573
  ] }),
6545
6574
  o && /* @__PURE__ */ a.jsx(Wt, { className: "error", children: o })
6546
6575
  ] }) })
@@ -6613,7 +6642,7 @@ const Xl = ({ members: t }) => {
6613
6642
  isOpen: e !== !1,
6614
6643
  children: e === !1 ? "" : /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
6615
6644
  r(e),
6616
- /* @__PURE__ */ a.jsx(qt, { children: e.text })
6645
+ /* @__PURE__ */ a.jsx(Ut, { children: e.text })
6617
6646
  ] }),
6618
6647
  buttons: [
6619
6648
  {
@@ -6662,7 +6691,7 @@ const Xl = ({ members: t }) => {
6662
6691
  return /* @__PURE__ */ a.jsx("p", { className: "details", children: o ? n.formatMessage({ id: "card_bootcamp" }) : ga(u) });
6663
6692
  if (c)
6664
6693
  return /* @__PURE__ */ a.jsx(
6665
- Ut,
6694
+ ht,
6666
6695
  {
6667
6696
  variant: c === "free" ? "subtle" : "highlighted",
6668
6697
  className: c,
@@ -6687,6 +6716,11 @@ const Xl = ({ members: t }) => {
6687
6716
  }
6688
6717
  return null;
6689
6718
  }, Kt = {
6719
+ communityPage: {
6720
+ basePath: "/communities/",
6721
+ className: "communityPage",
6722
+ gtmEvent: "community"
6723
+ },
6690
6724
  customCard: {
6691
6725
  className: "custom",
6692
6726
  gtmEvent: "custom",
@@ -6823,13 +6857,14 @@ const nc = {
6823
6857
  gtmContext: s = "Carousel",
6824
6858
  className: i = ""
6825
6859
  }) => {
6860
+ var I, R, Q;
6826
6861
  const o = H(), c = Ee(Ie), f = c && typeof c.id == "string", [l, u] = X({
6827
6862
  data: null,
6828
6863
  isLoading: !0
6829
6864
  }), { data: d, isLoading: m } = l, p = sa(() => {
6830
- n(e, f).then((F) => {
6831
- u(() => ({ data: F, isLoading: !1 }));
6832
- }).catch(() => u((F) => ({ ...F, isLoading: !1 })));
6865
+ n(e, f).then((C) => {
6866
+ u(() => ({ data: C, isLoading: !1 }));
6867
+ }).catch(() => u((C) => ({ ...C, isLoading: !1 })));
6833
6868
  }, [t]);
6834
6869
  if (ae(() => {
6835
6870
  p();
@@ -6884,7 +6919,7 @@ const nc = {
6884
6919
  }
6885
6920
  ),
6886
6921
  d.startDate && !d.isOngoingEvent && /* @__PURE__ */ a.jsx(
6887
- Ut,
6922
+ ht,
6888
6923
  {
6889
6924
  size: "small",
6890
6925
  variant: d.dateHasPassed ? "default" : "information",
@@ -6893,8 +6928,8 @@ const nc = {
6893
6928
  }
6894
6929
  ),
6895
6930
  d.banner ? /* @__PURE__ */ a.jsxs("p", { className: "img", children: [
6896
- d.registered && /* @__PURE__ */ a.jsx(Ut, { size: "small", variant: "registered", children: o.formatMessage({ id: "card_registered" }) }),
6897
- /* @__PURE__ */ a.jsx(jt, { image: d.banner })
6931
+ d.registered && /* @__PURE__ */ a.jsx(ht, { size: "small", variant: "registered", children: o.formatMessage({ id: "card_registered" }) }),
6932
+ /* @__PURE__ */ a.jsx(kt, { image: d.banner })
6898
6933
  ] }) : y === "people" ? /* @__PURE__ */ a.jsx(
6899
6934
  Ye,
6900
6935
  {
@@ -6921,13 +6956,31 @@ const nc = {
6921
6956
  { partner: d.partner[0], number: d.partner.length - 1 }
6922
6957
  ) : et(d.partner[0], j.partner) }),
6923
6958
  /* Text */
6924
- ["title", "text", "secondaryText"].map((F) => {
6925
- const R = d[F];
6926
- if (!R)
6959
+ ["title", "text", "secondaryText"].map((C) => {
6960
+ const F = d[C];
6961
+ if (!F)
6927
6962
  return null;
6928
- const Q = Ws(F);
6929
- return /* @__PURE__ */ a.jsx("p", { className: Q, "data-testid": Q, children: et(R, j[F]) }, F);
6963
+ const $ = Ws(C);
6964
+ return /* @__PURE__ */ a.jsx("p", { className: $, "data-testid": $, children: et(F, j[C]) }, C);
6930
6965
  }),
6966
+ (d == null ? void 0 : d.members) && /* @__PURE__ */ a.jsxs("span", { className: "member-information", children: [
6967
+ ((I = d == null ? void 0 : d.members) == null ? void 0 : I.isMember) && /* @__PURE__ */ a.jsx(
6968
+ ht,
6969
+ {
6970
+ size: "small",
6971
+ variant: "registered",
6972
+ icon: ((R = d == null ? void 0 : d.members) == null ? void 0 : R.memberType) === "owner" ? "user" : "tick",
6973
+ children: o.formatMessage({
6974
+ id: `card_member_type_${(Q = d == null ? void 0 : d.members) == null ? void 0 : Q.memberType}`
6975
+ })
6976
+ }
6977
+ ),
6978
+ /* @__PURE__ */ a.jsx("br", {}),
6979
+ /* @__PURE__ */ a.jsx("span", { className: "label member-count", children: o.formatMessage(
6980
+ { id: "card_member_count" },
6981
+ { count: d == null ? void 0 : d.members.count }
6982
+ ) })
6983
+ ] }),
6931
6984
  /* @__PURE__ */ a.jsx(ec, { type: y || "", data: d }),
6932
6985
  /* @__PURE__ */ a.jsx(tc, { data: d, cta: r, link: k || "", gtmContext: s })
6933
6986
  ] })
@@ -6978,7 +7031,7 @@ const En = {
6978
7031
  threeCards: 769,
6979
7032
  twoCards: 480
6980
7033
  };
6981
- let Mt = null;
7034
+ let Rt = null;
6982
7035
  const ic = ({
6983
7036
  id: t,
6984
7037
  cards: e,
@@ -6994,41 +7047,41 @@ const ic = ({
6994
7047
  }), { cardsPerPage: u, isLoading: d } = f, [m, p] = X({
6995
7048
  currentPage: 0,
6996
7049
  loadedPages: [0]
6997
- }), { currentPage: g, loadedPages: _ } = m, y = e.length, v = Math.ceil(y / u), b = pe(null), k = xt(!0, !0, b == null ? void 0 : b.current);
7050
+ }), { currentPage: g, loadedPages: _ } = m, y = e.length, v = Math.ceil(y / u), b = pe(null), k = wt(!0, !0, b == null ? void 0 : b.current);
6998
7051
  ae(() => {
6999
- let N = 1;
7000
- k && (k >= En.fourCards ? N = 4 : k >= En.threeCards ? N = 3 : k >= En.twoCards && (N = 2), N > y && (N = y)), l((O) => ({
7001
- ...O,
7002
- cardsPerPage: N,
7052
+ let C = 1;
7053
+ k && (k >= En.fourCards ? C = 4 : k >= En.threeCards ? C = 3 : k >= En.twoCards && (C = 2), C > y && (C = y)), l((F) => ({
7054
+ ...F,
7055
+ cardsPerPage: C,
7003
7056
  isLoading: !1
7004
7057
  }));
7005
7058
  }, [k, y]);
7006
- const j = (N = "next") => {
7007
- let O = g;
7008
- if (typeof N == "string")
7009
- if (N === "next")
7059
+ const j = (C = "next") => {
7060
+ let F = g;
7061
+ if (typeof C == "string")
7062
+ if (C === "next")
7010
7063
  if (g < v - 1)
7011
- O = g + 1;
7064
+ F = g + 1;
7012
7065
  else
7013
7066
  return;
7014
7067
  else if (g > 0)
7015
- O = g - 1;
7068
+ F = g - 1;
7016
7069
  else
7017
7070
  return;
7018
7071
  else
7019
- O = N;
7020
- p((C) => ({
7021
- ...C,
7022
- currentPage: O,
7023
- loadedPages: [.../* @__PURE__ */ new Set([..._, O])]
7072
+ F = C;
7073
+ p(($) => ({
7074
+ ...$,
7075
+ currentPage: F,
7076
+ loadedPages: [.../* @__PURE__ */ new Set([..._, F])]
7024
7077
  }));
7025
- }, w = (N) => {
7026
- Mt = N.touches[0].clientX;
7027
- }, F = (N) => {
7028
- if (Mt === null)
7078
+ }, w = (C) => {
7079
+ Rt = C.touches[0].clientX;
7080
+ }, I = (C) => {
7081
+ if (Rt === null)
7029
7082
  return;
7030
- const O = N.touches[0].clientX, C = Mt - O;
7031
- C > 5 ? j("next") : C < -5 && j("previous"), Mt = null;
7083
+ const F = C.touches[0].clientX, $ = Rt - F;
7084
+ $ > 5 ? j("next") : $ < -5 && j("previous"), Rt = null;
7032
7085
  }, R = {
7033
7086
  "--width": `${k || 0}px`,
7034
7087
  "--total-cards": y,
@@ -7037,10 +7090,10 @@ const ic = ({
7037
7090
  };
7038
7091
  if (d)
7039
7092
  return /* @__PURE__ */ a.jsx(wa, { layout: `carousel${s ? "-with-title" : ""}` });
7040
- const Q = (N, O) => {
7093
+ const Q = (C, F) => {
7041
7094
  var T;
7042
- let C = null;
7043
- return (T = N == null ? void 0 : N.sys) != null && T.id ? C = `card-${N.sys.id}` : N != null && N.slug ? C = `card-${N.slug}` : [n[O], N.contentType].includes("customCard") && (C = `card-${window.btoa(`${N.title} ${N.createdAt}`)}-${O}`), C;
7095
+ let $ = null;
7096
+ return (T = C == null ? void 0 : C.sys) != null && T.id ? $ = `card-${C.sys.id}` : C != null && C.slug ? $ = `card-${C.slug}` : [n[F], C.contentType].includes("customCard") && ($ = `card-${window.btoa(`${C.title} ${C.createdAt}`)}-${F}`), $;
7044
7097
  };
7045
7098
  return /* @__PURE__ */ a.jsxs(
7046
7099
  "section",
@@ -7055,28 +7108,28 @@ const ic = ({
7055
7108
  {
7056
7109
  className: "carousel",
7057
7110
  onTouchStart: w,
7058
- onTouchMove: F,
7111
+ onTouchMove: I,
7059
7112
  style: R,
7060
7113
  "data-testid": "carousel-list",
7061
- children: e.map((N, O) => {
7062
- let C = Q(N, O);
7063
- return C && ac(O, u, g, _) ? /* @__PURE__ */ a.jsx(
7114
+ children: e.map((C, F) => {
7115
+ let $ = Q(C, F);
7116
+ return $ && ac(F, u, g, _) ? /* @__PURE__ */ a.jsx(
7064
7117
  Ua,
7065
7118
  {
7066
- id: C,
7067
- card: { ...N, contentType: n[O] },
7119
+ id: $,
7120
+ card: { ...C, contentType: n[F] },
7068
7121
  buildCardData: r,
7069
7122
  gtmContext: o
7070
7123
  },
7071
- C
7072
- ) : (C = C || `${t}-card-${O}`, /* @__PURE__ */ a.jsx(
7124
+ $
7125
+ ) : ($ = $ || `${t}-card-${F}`, /* @__PURE__ */ a.jsx(
7073
7126
  Se,
7074
7127
  {
7075
7128
  element: "li",
7076
7129
  className: "card-wrapper",
7077
7130
  "data-testid": "card-placeholder"
7078
7131
  },
7079
- C
7132
+ $
7080
7133
  ));
7081
7134
  })
7082
7135
  }
@@ -7088,8 +7141,8 @@ const ic = ({
7088
7141
  variant: "secondary",
7089
7142
  size: "large",
7090
7143
  icon: { icon: "chevron_left" },
7091
- onClick: (N) => {
7092
- N.preventDefault(), N.stopPropagation(), j("previous");
7144
+ onClick: (C) => {
7145
+ C.preventDefault(), C.stopPropagation(), j("previous");
7093
7146
  },
7094
7147
  screenreaderText: c.formatMessage({
7095
7148
  id: "carousel_pagination_previous"
@@ -7097,29 +7150,29 @@ const ic = ({
7097
7150
  disabled: g <= 0
7098
7151
  }
7099
7152
  ) }),
7100
- [...Array(v)].map((N, O) => /* @__PURE__ */ a.jsx("li", { "data-testid": "carousel-controls-button", children: /* @__PURE__ */ a.jsx(
7153
+ [...Array(v)].map((C, F) => /* @__PURE__ */ a.jsx("li", { "data-testid": "carousel-controls-button", children: /* @__PURE__ */ a.jsx(
7101
7154
  "button",
7102
7155
  {
7103
7156
  className: S("page-indicator", {
7104
- selected: O === g
7157
+ selected: F === g
7105
7158
  }),
7106
- onClick: (C) => {
7107
- C.preventDefault(), C.stopPropagation(), j(O);
7159
+ onClick: ($) => {
7160
+ $.preventDefault(), $.stopPropagation(), j(F);
7108
7161
  },
7109
7162
  children: /* @__PURE__ */ a.jsx(be, { showOnFocus: !1, children: c.formatMessage(
7110
7163
  { id: "carousel_pagination_page" },
7111
- { number: O + 1, total: v }
7164
+ { number: F + 1, total: v }
7112
7165
  ) })
7113
7166
  }
7114
- ) }, `page-indicator-${O}`)),
7167
+ ) }, `page-indicator-${F}`)),
7115
7168
  /* @__PURE__ */ a.jsx("li", { className: "arrow next", children: /* @__PURE__ */ a.jsx(
7116
7169
  se,
7117
7170
  {
7118
7171
  variant: "secondary",
7119
7172
  size: "large",
7120
7173
  icon: { icon: "chevron_right" },
7121
- onClick: (N) => {
7122
- N.preventDefault(), N.stopPropagation(), j("next");
7174
+ onClick: (C) => {
7175
+ C.preventDefault(), C.stopPropagation(), j("next");
7123
7176
  },
7124
7177
  screenreaderText: c.formatMessage({ id: "carousel_pagination_next" }),
7125
7178
  disabled: g >= v - 1
@@ -7138,7 +7191,7 @@ const ic = ({
7138
7191
  }) => !t || !t.length ? null : t.map(
7139
7192
  ({ title: i, viewAllUrl: o, cards: c, cardsTypes: f }, l) => {
7140
7193
  const u = i ? window.btoa(i) : `carousel-${l}`, d = l === t.length - 1;
7141
- return e ? /* @__PURE__ */ a.jsxs(bt, { children: [
7194
+ return e ? /* @__PURE__ */ a.jsxs(yt, { children: [
7142
7195
  /* @__PURE__ */ a.jsx(
7143
7196
  wa,
7144
7197
  {
@@ -7146,8 +7199,8 @@ const ic = ({
7146
7199
  "data-testid": "carousel-placeholder"
7147
7200
  }
7148
7201
  ),
7149
- d ? null : /* @__PURE__ */ a.jsx(De, {})
7150
- ] }, `placeholder-${u}`) : /* @__PURE__ */ a.jsxs(bt, { children: [
7202
+ d ? null : /* @__PURE__ */ a.jsx(Ae, {})
7203
+ ] }, `placeholder-${u}`) : /* @__PURE__ */ a.jsxs(yt, { children: [
7151
7204
  /* @__PURE__ */ a.jsx(
7152
7205
  ic,
7153
7206
  {
@@ -7157,7 +7210,7 @@ const ic = ({
7157
7210
  ...s
7158
7211
  }
7159
7212
  ),
7160
- d ? null : /* @__PURE__ */ a.jsx(De, {})
7213
+ d ? null : /* @__PURE__ */ a.jsx(Ae, {})
7161
7214
  ] }, `carousel-${u}`);
7162
7215
  }
7163
7216
  );
@@ -7203,7 +7256,7 @@ const Cn = "communityDetails_", tu = ({
7203
7256
  }) => {
7204
7257
  const c = H(), f = 5, l = r || s.length, u = s.length ? s : Array(f).fill({}), d = `/communities/${n}/members` === window.location.pathname;
7205
7258
  return /* @__PURE__ */ a.jsxs("div", { className: S("community-details", t), children: [
7206
- /* @__PURE__ */ a.jsx(De, {}),
7259
+ /* @__PURE__ */ a.jsx(Ae, {}),
7207
7260
  /* @__PURE__ */ a.jsxs("div", { className: "member-details", children: [
7208
7261
  /* @__PURE__ */ a.jsxs("div", { className: "top", children: [
7209
7262
  /* @__PURE__ */ a.jsxs("h4", { children: [
@@ -7313,7 +7366,7 @@ const ru = ({
7313
7366
  urlForRouter: `/${s.split("/").slice(2).join("/")}`
7314
7367
  } : s;
7315
7368
  };
7316
- const Rt = "languageSwitcher_", au = ({
7369
+ const Ft = "languageSwitcher_", au = ({
7317
7370
  currentLanguage: t,
7318
7371
  isOriginalLanguage: e = !1,
7319
7372
  isHumanTranslation: n = !1,
@@ -7335,7 +7388,7 @@ const Rt = "languageSwitcher_", au = ({
7335
7388
  const g = Object.keys(r), _ = d !== t;
7336
7389
  return /* @__PURE__ */ a.jsxs("div", { className: S("language-switcher text-small", o, f), children: [
7337
7390
  /* @__PURE__ */ a.jsxs("nav", { children: [
7338
- o !== "short" && /* @__PURE__ */ a.jsx("p", { children: c || l.formatMessage({ id: `${Rt}label` }) }),
7391
+ o !== "short" && /* @__PURE__ */ a.jsx("p", { children: c || l.formatMessage({ id: `${Ft}label` }) }),
7339
7392
  /* @__PURE__ */ a.jsx("ul", { children: g.map((y) => {
7340
7393
  var k;
7341
7394
  if (!gn[y])
@@ -7344,7 +7397,7 @@ const Rt = "languageSwitcher_", au = ({
7344
7397
  let b = { className: y };
7345
7398
  if (d === y)
7346
7399
  b["aria-label"] = l.formatMessage(
7347
- { id: `${Rt}selected` },
7400
+ { id: `${Ft}selected` },
7348
7401
  { language: gn[y] }
7349
7402
  );
7350
7403
  else {
@@ -7363,7 +7416,7 @@ const Rt = "languageSwitcher_", au = ({
7363
7416
  return /* @__PURE__ */ a.jsx("li", { children: /* @__PURE__ */ a.jsx(at, { ...b, fallbackElement: "span", children: gn[y] }) }, y);
7364
7417
  }) }),
7365
7418
  o !== "short" && !_ && /* @__PURE__ */ a.jsx("p", { children: l.formatMessage({
7366
- id: `${Rt}translation_${e ? "original" : n ? "human" : "machine"}`
7419
+ id: `${Ft}translation_${e ? "original" : n ? "human" : "machine"}`
7367
7420
  }) })
7368
7421
  ] }),
7369
7422
  o !== "short" && !_ && !e && !n && /* @__PURE__ */ a.jsx("small", {
@@ -7371,7 +7424,7 @@ const Rt = "languageSwitcher_", au = ({
7371
7424
  // @ts-ignore
7372
7425
  // `values` are throwing a type error: https://github.com/formatjs/formatjs/issues/3633
7373
7426
  children: l.formatMessage(
7374
- { id: `${Rt}disclaimer` },
7427
+ { id: `${Ft}disclaimer` },
7375
7428
  {
7376
7429
  email: ft.support,
7377
7430
  link: (y) => {
@@ -7439,7 +7492,7 @@ const za = ({
7439
7492
  children: /* @__PURE__ */ a.jsx(be, { children: /* @__PURE__ */ a.jsx(ye, { id: "apolitical" }) })
7440
7493
  }
7441
7494
  ) });
7442
- let Ft = !1;
7495
+ let Ot = !1;
7443
7496
  const cc = ({
7444
7497
  element: t = "div",
7445
7498
  id: e = "more-menu",
@@ -7477,10 +7530,10 @@ const cc = ({
7477
7530
  c(!1), typeof u == "function" && u(y);
7478
7531
  },
7479
7532
  onFocus: () => {
7480
- Ft && (clearTimeout(Ft), Ft = !1);
7533
+ Ot && (clearTimeout(Ot), Ot = !1);
7481
7534
  },
7482
7535
  onBlur: () => {
7483
- Ft = setTimeout(() => {
7536
+ Ot = setTimeout(() => {
7484
7537
  c(!1);
7485
7538
  }, 100);
7486
7539
  }
@@ -7515,6 +7568,10 @@ const uc = [
7515
7568
  {
7516
7569
  key: "articles",
7517
7570
  href: "/solution-articles/"
7571
+ },
7572
+ {
7573
+ key: "communities",
7574
+ href: "/communities/"
7518
7575
  }
7519
7576
  ], dc = ({ activeLink: t }) => {
7520
7577
  const e = H(), n = Ee(Ie), r = n && typeof n.id == "string";
@@ -7708,7 +7765,7 @@ const pc = {
7708
7765
  className: n = "",
7709
7766
  children: r
7710
7767
  }) => {
7711
- const s = xt(!0);
7768
+ const s = wt(!0);
7712
7769
  let i = r;
7713
7770
  return Y.Children.count(r) === 1 && (i = Y.Children.toArray(r)[0], i.props && (i = i.props.children)), /* @__PURE__ */ a.jsx("section", { className: S("columns", `layout-${t}`, n), children: Y.Children.map(i, (o, c) => e !== !1 && c === e && s && s < pc[t] ? null : o) });
7714
7771
  };
@@ -7804,15 +7861,16 @@ const Mn = "cookieBanner_", Rn = [
7804
7861
  }), /* @__PURE__ */ a.jsxs("aside", { id: "cookie-banner", className: "text-medium", children: [
7805
7862
  /* @__PURE__ */ a.jsx("h6", { children: t.formatMessage({ id: `${Mn}title` }) }),
7806
7863
  /* @__PURE__ */ a.jsx("p", { children: t.formatMessage({ id: `${Mn}text` }) }),
7807
- /* @__PURE__ */ a.jsx(wt, { buttons: l })
7864
+ /* @__PURE__ */ a.jsx(jt, { buttons: l })
7808
7865
  ] });
7809
7866
  }, Re = {
7810
7867
  platform: {
7811
- order: ["events", "courses", "articles"],
7868
+ order: ["events", "courses", "articles", "communities"],
7812
7869
  // An array guarantees the right order
7813
7870
  events: { href: "/events/", gtmType: "events-click" },
7814
7871
  courses: { href: "/microcourses/", gtmType: "microcourses-click" },
7815
- articles: { href: "/solution-articles/", gtmType: "articles-click" }
7872
+ articles: { href: "/solution-articles/", gtmType: "articles-click" },
7873
+ communities: { href: "/communities/", gtmType: "communities-click" }
7816
7874
  },
7817
7875
  community: {
7818
7876
  order: ["support", "post", "join", "guidelines"],
@@ -7902,7 +7960,7 @@ const Mn = "cookieBanner_", Rn = [
7902
7960
  const Xe = "footer_", Gt = "SiteFooter", Kr = ({ group: t }) => {
7903
7961
  const e = Re[t].order || [];
7904
7962
  let n = !1;
7905
- return "text" in Re[t] && (n = Re[t].text), /* @__PURE__ */ a.jsxs(bt, { children: [
7963
+ return "text" in Re[t] && (n = Re[t].text), /* @__PURE__ */ a.jsxs(yt, { children: [
7906
7964
  /* @__PURE__ */ a.jsx("p", { className: "pre-title", children: /* @__PURE__ */ a.jsx(ye, { id: `${Xe}${t}` }) }),
7907
7965
  Array.isArray(e) && e.length > 0 && /* @__PURE__ */ a.jsx("ul", { className: "text-medium", children: e.map((r) => {
7908
7966
  if (["order", "child", "text"].includes(r))
@@ -7920,7 +7978,7 @@ const Xe = "footer_", Gt = "SiteFooter", Kr = ({ group: t }) => {
7920
7978
  }
7921
7979
  ) }, `${t}_${r}`);
7922
7980
  }) }),
7923
- typeof n != "boolean" && "order" in n && Array.isArray(n.order) && /* @__PURE__ */ a.jsx("dl", { className: "text-medium", children: n.order.map((r) => /* @__PURE__ */ a.jsxs(bt, { children: [
7981
+ typeof n != "boolean" && "order" in n && Array.isArray(n.order) && /* @__PURE__ */ a.jsx("dl", { className: "text-medium", children: n.order.map((r) => /* @__PURE__ */ a.jsxs(yt, { children: [
7924
7982
  /* @__PURE__ */ a.jsx("dt", { children: /* @__PURE__ */ a.jsx(ye, { id: `${Xe}${t}_${r}` }) }),
7925
7983
  /* @__PURE__ */ a.jsxs("dd", { children: [
7926
7984
  typeof n != "boolean" && n[r].address && /* @__PURE__ */ a.jsx("address", { children: /* @__PURE__ */ a.jsx(
@@ -8099,7 +8157,7 @@ const Xe = "footer_", Gt = "SiteFooter", Kr = ({ group: t }) => {
8099
8157
  order: ["explore", "topics"],
8100
8158
  menuId: "navigation",
8101
8159
  explore: {
8102
- order: ["events", "courses", "articles"],
8160
+ order: ["events", "courses", "articles", "communities"],
8103
8161
  events: { href: "/events/", className: "icon events" },
8104
8162
  courses: {
8105
8163
  href: "/microcourses/",
@@ -8110,6 +8168,11 @@ const Xe = "footer_", Gt = "SiteFooter", Kr = ({ group: t }) => {
8110
8168
  href: "/solution-articles/",
8111
8169
  gtmType: "articles-click",
8112
8170
  className: "icon articles"
8171
+ },
8172
+ communities: {
8173
+ href: "/communities/",
8174
+ gtmType: "communities-click",
8175
+ className: "icon communities"
8113
8176
  }
8114
8177
  },
8115
8178
  topics: {
@@ -8286,7 +8349,7 @@ const Xe = "footer_", Gt = "SiteFooter", Kr = ({ group: t }) => {
8286
8349
  );
8287
8350
  };
8288
8351
  const vc = { height: 67, height_desktop: 83 }, Ha = ({ showNavigation: t = !0 }) => {
8289
- const e = H(), n = Ee(Ie), r = xt(!0, !0), s = n && typeof n.id == "string", i = _t(
8352
+ const e = H(), n = Ee(Ie), r = wt(!0, !0), s = n && typeof n.id == "string", i = xt(
8290
8353
  () => fe.getIsDesktopVersion(s, r),
8291
8354
  [s, r]
8292
8355
  ), [o, c] = Yn(ma, {
@@ -8311,7 +8374,7 @@ const vc = { height: 67, height_desktop: 83 }, Ha = ({ showNavigation: t = !0 })
8311
8374
  const d = (p, g) => {
8312
8375
  fe.handleMenus({ id: p, value: g, menus: l, dispatch: c });
8313
8376
  }, m = pe(null);
8314
- return yt(() => {
8377
+ return _t(() => {
8315
8378
  l.navigation && fe.autoFocus({
8316
8379
  menu: "navigation",
8317
8380
  navigationRef: m,
@@ -8319,7 +8382,7 @@ const vc = { height: 67, height_desktop: 83 }, Ha = ({ showNavigation: t = !0 })
8319
8382
  focusElements: u,
8320
8383
  dispatch: c
8321
8384
  });
8322
- }, [l.navigation]), yt(() => {
8385
+ }, [l.navigation]), _t(() => {
8323
8386
  l.account && fe.autoFocus({
8324
8387
  menu: "account",
8325
8388
  navigationRef: m,
@@ -8492,9 +8555,9 @@ const bc = () => {
8492
8555
  ae(() => {
8493
8556
  window.scrollTo(0, 0);
8494
8557
  }, [g]);
8495
- const _ = It(t, { locale: c }), y = It(e, {
8558
+ const _ = Lt(t, { locale: c }), y = Lt(e, {
8496
8559
  locale: c
8497
- }), v = It(n, {
8560
+ }), v = Lt(n, {
8498
8561
  locale: c
8499
8562
  }), b = {};
8500
8563
  return u !== "default" && (b[u] = !0), d !== "default" && (b[d] = !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(
@@ -8614,7 +8677,7 @@ const uu = ({
8614
8677
  ] }),
8615
8678
  /* @__PURE__ */ a.jsx("ul", { children: t.map((f, l) => /* @__PURE__ */ a.jsxs("li", { children: [
8616
8679
  /* @__PURE__ */ a.jsx(tr, { member: f, gtmContext: s, gtmType: i }),
8617
- f.isAdmin && /* @__PURE__ */ a.jsx(Ut, { children: c.formatMessage({ id: "membersList_admin" }) })
8680
+ f.isAdmin && /* @__PURE__ */ a.jsx(ht, { children: c.formatMessage({ id: "membersList_admin" }) })
8618
8681
  ] }, l)) }),
8619
8682
  n && /* @__PURE__ */ a.jsx(
8620
8683
  sn,
@@ -8753,26 +8816,26 @@ const fu = ({
8753
8816
  isIntroduction: k,
8754
8817
  optional: j,
8755
8818
  slug: w,
8756
- subsectionId: F,
8819
+ subsectionId: I,
8757
8820
  title: R,
8758
8821
  type: Q
8759
8822
  }) => {
8760
- const N = s && e || k, O = {};
8761
- return b && (O.style = { "--image": `url(${b})` }), /* @__PURE__ */ a.jsx(
8823
+ const C = s && e || k, F = {};
8824
+ return b && (F.style = { "--image": `url(${b})` }), /* @__PURE__ */ a.jsx(
8762
8825
  "li",
8763
8826
  {
8764
8827
  className: S({
8765
- article: y === Tt.ARTICLE,
8766
- discussion: y === Tt.DISCUSSION,
8767
- quiz: y === Tt.QUIZ,
8768
- completed: g && y === Tt.ARTICLE,
8769
- locked: !N
8828
+ article: y === Et.ARTICLE,
8829
+ discussion: y === Et.DISCUSSION,
8830
+ quiz: y === Et.QUIZ,
8831
+ completed: g && y === Et.ARTICLE,
8832
+ locked: !C
8770
8833
  }),
8771
- ...O,
8834
+ ...F,
8772
8835
  children: /* @__PURE__ */ a.jsx(
8773
8836
  at,
8774
8837
  {
8775
- href: N ? `/microcourses/en/${c}/${w}` : void 0,
8838
+ href: C ? `/microcourses/en/${c}/${w}` : void 0,
8776
8839
  fallbackElement: "span",
8777
8840
  className: "inner",
8778
8841
  gtmContext: `MicrocourseOutline${zs(R)}`,
@@ -8782,7 +8845,7 @@ const fu = ({
8782
8845
  xc,
8783
8846
  {
8784
8847
  sectionId: i,
8785
- subsectionId: F,
8848
+ subsectionId: I,
8786
8849
  title: R,
8787
8850
  className: "course-title"
8788
8851
  }
@@ -8835,7 +8898,7 @@ const mu = ({
8835
8898
  }
8836
8899
  );
8837
8900
  };
8838
- let Ot = null;
8901
+ let At = null;
8839
8902
  const we = "discussion_form_", ar = ({
8840
8903
  content: t = { type: "response", slugs: {} },
8841
8904
  userHasPermissions: e = !0,
@@ -8869,7 +8932,7 @@ const we = "discussion_form_", ar = ({
8869
8932
  },
8870
8933
  gtmContext: l = "DiscussionForm"
8871
8934
  }) => {
8872
- var O, C, T;
8935
+ var F, $, T;
8873
8936
  const u = H(), d = Ee(Ie), [m, p] = X(
8874
8937
  n.isEditing && n.isEditing.text || ""
8875
8938
  ), [g, _] = X(c.error || !1), [y, v] = X(!1), b = pe(null);
@@ -8882,15 +8945,15 @@ const we = "discussion_form_", ar = ({
8882
8945
  }
8883
8946
  );
8884
8947
  const k = (x) => {
8885
- const $ = x.target.value;
8886
- p($);
8948
+ const N = x.target.value;
8949
+ p(N);
8887
8950
  let A;
8888
8951
  !d || !d.id ? A = $e(
8889
8952
  u.formatMessage,
8890
8953
  `${we}error_loggedOut`,
8891
8954
  t.type,
8892
8955
  "action"
8893
- ) : e ? $.length >= i && (A = `${we}error_tooLong`) : A = $e(
8956
+ ) : e ? N.length >= i && (A = `${we}error_tooLong`) : A = $e(
8894
8957
  u.formatMessage,
8895
8958
  `${we}error_noPermission`,
8896
8959
  t.type,
@@ -8899,15 +8962,15 @@ const we = "discussion_form_", ar = ({
8899
8962
  };
8900
8963
  let j = `${t.type}-form`;
8901
8964
  if (t.type === "response" || t.type === "reply") {
8902
- const x = ((O = t.slugs) == null ? void 0 : O.reply) || ((C = t.slugs) == null ? void 0 : C.answer) || ((T = t.slugs) == null ? void 0 : T.question) || "";
8965
+ const x = ((F = t.slugs) == null ? void 0 : F.reply) || (($ = t.slugs) == null ? void 0 : $.answer) || ((T = t.slugs) == null ? void 0 : T.question) || "";
8903
8966
  x && (j = `${j}-${x.slice(-15)}`);
8904
8967
  }
8905
8968
  const w = async (x) => {
8906
8969
  var A;
8907
8970
  if (x.preventDefault(), x.stopPropagation(), !d || !d.id || !e || R)
8908
8971
  return;
8909
- Ot && clearTimeout(Ot), v("submitting");
8910
- const $ = window.location.pathname;
8972
+ At && clearTimeout(At), v("submitting");
8973
+ const N = window.location.pathname;
8911
8974
  try {
8912
8975
  let W;
8913
8976
  switch (t.type) {
@@ -8924,22 +8987,22 @@ const we = "discussion_form_", ar = ({
8924
8987
  case "response":
8925
8988
  W = await f.create(
8926
8989
  { questionSlug: t.slugs.question },
8927
- { body: m, authorId: d && d.id, contentPath: $ }
8990
+ { body: m, authorId: d && d.id, contentPath: N }
8928
8991
  );
8929
8992
  break;
8930
8993
  case "reply":
8931
8994
  W = await f.create(
8932
8995
  { questionSlug: t.slugs.question, answerSlug: t.slugs.answer },
8933
- { body: m, authorId: d && d.id, contentPath: $ }
8996
+ { body: m, authorId: d && d.id, contentPath: N }
8934
8997
  );
8935
8998
  break;
8936
8999
  default:
8937
9000
  break;
8938
9001
  }
8939
- await Ks(1e3), f.callback && await f.callback(W), Ot = setTimeout(() => {
9002
+ await Ks(1e3), f.callback && await f.callback(W), At = setTimeout(() => {
8940
9003
  p(""), v("submitted");
8941
9004
  const Z = new Event("discussionFormSubmitted");
8942
- document.dispatchEvent(Z), F();
9005
+ document.dispatchEvent(Z), I();
8943
9006
  }, 500);
8944
9007
  } catch (W) {
8945
9008
  const Z = W;
@@ -8954,14 +9017,14 @@ const we = "discussion_form_", ar = ({
8954
9017
  `${we}error_tooMany`,
8955
9018
  t.type,
8956
9019
  "action"
8957
- ) : Z != null && Z.message.includes("400") && (z = `${we}error`), _(z), F();
9020
+ ) : Z != null && Z.message.includes("400") && (z = `${we}error`), _(z), I();
8958
9021
  }
8959
- }, F = () => {
8960
- Ot = setTimeout(() => {
9022
+ }, I = () => {
9023
+ At = setTimeout(() => {
8961
9024
  _(!1), v(!1);
8962
9025
  }, 5e3);
8963
- }, R = !m || !ni(m), Q = y === "submitting", N = [];
8964
- return (n.isEditing && !Q || c.cancel) && N.push({
9026
+ }, R = !m || !ni(m), Q = y === "submitting", C = [];
9027
+ return (n.isEditing && !Q || c.cancel) && C.push({
8965
9028
  variant: "secondary",
8966
9029
  size: { mobile: "small", 600: "medium" },
8967
9030
  onClick: f.handleCancel,
@@ -8970,7 +9033,7 @@ const we = "discussion_form_", ar = ({
8970
9033
  "data-gtm-event-type": `cancel-${t.type}-click`,
8971
9034
  disabled: !c.cancel && (!d || !d.id || !m),
8972
9035
  children: u.formatMessage({ id: `${we}cancel` })
8973
- }), N.push({
9036
+ }), C.push({
8974
9037
  variant: "primary",
8975
9038
  size: { mobile: "small", 600: "medium" },
8976
9039
  onClick: (x) => {
@@ -9044,7 +9107,7 @@ const we = "discussion_form_", ar = ({
9044
9107
  }
9045
9108
  )
9046
9109
  }) }),
9047
- /* @__PURE__ */ a.jsx(wt, { buttons: N }),
9110
+ /* @__PURE__ */ a.jsx(jt, { buttons: C }),
9048
9111
  y === "submitted" && n.showSuccessMessage && /* @__PURE__ */ a.jsx(Wt, { className: "success", "data-testid": "success", children: $e(u.formatMessage, `${we}success`, t.type, "action") }),
9049
9112
  g && /* @__PURE__ */ a.jsx(Wt, { id: "error-message", className: "error", "data-testid": "error", children: c.error ? c.error : typeof g == "string" ? g.includes(" ") ? g : u.formatMessage(
9050
9113
  { id: g },
@@ -9100,10 +9163,10 @@ const we = "discussion_form_", ar = ({
9100
9163
  ...e && { answerSlug: e },
9101
9164
  ...n && { replySlug: n }
9102
9165
  }), Ec = (t, e = 10) => !t || t.length === 0 ? [] : t.slice(0, e);
9103
- let vt = !1;
9104
- const Dn = () => {
9105
- vt !== !1 && (clearTimeout(vt), vt = !1);
9106
- }, An = 5, Sc = ({
9166
+ let bt = !1;
9167
+ const An = () => {
9168
+ bt !== !1 && (clearTimeout(bt), bt = !1);
9169
+ }, Dn = 5, Sc = ({
9107
9170
  element: t = "div",
9108
9171
  likes: e = 0,
9109
9172
  peopleWhoLiked: n = !1,
@@ -9119,25 +9182,25 @@ const Dn = () => {
9119
9182
  ae(() => {
9120
9183
  p(s);
9121
9184
  }, [s]);
9122
- const [u, d] = X(e), [m, p] = X(s), [g, _] = X(!1), [y, v] = X(!1), b = _t(
9123
- () => Ec(n, An),
9185
+ const [u, d] = X(e), [m, p] = X(s), [g, _] = X(!1), [y, v] = X(!1), b = xt(
9186
+ () => Ec(n, Dn),
9124
9187
  [n]
9125
9188
  ), k = (w) => {
9126
- if (w.preventDefault(), w.stopPropagation(), v(!1), vt)
9127
- return Dn(), !1;
9128
- if (Dn(), g || !o)
9189
+ if (w.preventDefault(), w.stopPropagation(), v(!1), bt)
9190
+ return An(), !1;
9191
+ if (An(), g || !o)
9129
9192
  return !1;
9130
- vt = setTimeout(j, 350);
9193
+ bt = setTimeout(j, 350);
9131
9194
  }, j = async () => {
9132
- if (Dn(), g || !o)
9195
+ if (An(), g || !o)
9133
9196
  return !1;
9134
9197
  let w = m ? u - 1 : u + 1;
9135
9198
  w < 0 && (w = 0), _(!0), d(w), p(!m);
9136
9199
  try {
9137
9200
  if (i && i.slugs) {
9138
- const F = Tc(i.slugs);
9139
- m ? await f(F) : await c({
9140
- ...F,
9201
+ const I = Tc(i.slugs);
9202
+ m ? await f(I) : await c({
9203
+ ...I,
9141
9204
  payload: { contentPath: window.location.pathname }
9142
9205
  });
9143
9206
  }
@@ -9210,13 +9273,13 @@ const Dn = () => {
9210
9273
  href: w.id ? `/profiles/${w.id}` : void 0,
9211
9274
  gtmContext: "Likes",
9212
9275
  gtmType: "liked-name-click",
9213
- onClick: (F) => F == null ? void 0 : F.stopPropagation(),
9276
+ onClick: (I) => I == null ? void 0 : I.stopPropagation(),
9214
9277
  children: w.name
9215
9278
  }
9216
9279
  ) }, w.id || window.btoa(w.name))),
9217
- e > An && /* @__PURE__ */ a.jsx("li", { children: l.formatMessage(
9280
+ e > Dn && /* @__PURE__ */ a.jsx("li", { children: l.formatMessage(
9218
9281
  { id: "discussion_likes_more" },
9219
- { number: e - An }
9282
+ { number: e - Dn }
9220
9283
  ) })
9221
9284
  ] }) })
9222
9285
  ] })
@@ -9257,7 +9320,7 @@ const Me = "discussion_", Cc = 280, cn = ({
9257
9320
  children: _,
9258
9321
  isTruncated: y = !1
9259
9322
  }) => {
9260
- const v = H(), b = Ee(Ie), k = Ee(sr), { author: j, canLike: w, createdAt: F, id: R, likes: Q = 0, userLiked: N, comments: O = 0 } = e, C = b && b.id && typeof j != "string" && j.id && j.id === b.id || !1, T = typeof w == "boolean" ? w : n ? !C : !1, x = C && (!e.createdAt || Ys(e.createdAt, 10, "seconds")), $ = pe(null), [A, W] = X({
9323
+ const v = H(), b = Ee(Ie), k = Ee(sr), { author: j, canLike: w, createdAt: I, id: R, likes: Q = 0, userLiked: C, comments: F = 0 } = e, $ = b && b.id && typeof j != "string" && j.id && j.id === b.id || !1, T = typeof w == "boolean" ? w : n ? !$ : !1, x = $ && (!e.createdAt || Ys(e.createdAt, 10, "seconds")), N = pe(null), [A, W] = X({
9261
9324
  body: e && e.body || "",
9262
9325
  isEditing: !1,
9263
9326
  didEdit: e && e.isEdited || !1
@@ -9266,10 +9329,10 @@ const Me = "discussion_", Cc = 280, cn = ({
9266
9329
  /* Default */
9267
9330
  ), [P, q] = X("");
9268
9331
  ae(() => {
9269
- const D = $.current;
9270
- if (!(!D || K === "default"))
9271
- return document.addEventListener("discussionFormSubmitted", B), D.addEventListener("transitionend", U), () => {
9272
- document.removeEventListener("discussionFormSubmitted", B), D.removeEventListener("transitionend", U);
9332
+ const O = N.current;
9333
+ if (!(!O || K === "default"))
9334
+ return document.addEventListener("discussionFormSubmitted", B), O.addEventListener("transitionend", U), () => {
9335
+ document.removeEventListener("discussionFormSubmitted", B), O.removeEventListener("transitionend", U);
9273
9336
  };
9274
9337
  }, []), ae(() => {
9275
9338
  W({
@@ -9285,27 +9348,27 @@ const Me = "discussion_", Cc = 280, cn = ({
9285
9348
  /* Fading */
9286
9349
  );
9287
9350
  }, 1e3);
9288
- }, U = ({ propertyName: D }) => {
9289
- D === "background-color" && E((oe) => (oe === "default" && (document.removeEventListener("discussionFormSubmitted", B), $.current && $.current.removeEventListener("transitionend", U)), oe === "fading" ? "default" : oe));
9351
+ }, U = ({ propertyName: O }) => {
9352
+ O === "background-color" && E((oe) => (oe === "default" && (document.removeEventListener("discussionFormSubmitted", B), N.current && N.current.removeEventListener("transitionend", U)), oe === "fading" ? "default" : oe));
9290
9353
  };
9291
9354
  if (r || !e || e.type === "answer" && (!e.slugs || !e.slugs.question))
9292
9355
  return /* @__PURE__ */ a.jsx(Se, { className: "discussion-card discussion-post" });
9293
- const te = y ? et(A.body, Cc) : A.body, G = async (D) => {
9294
- D || (D = ""), q("");
9356
+ const te = y ? et(A.body, Cc) : A.body, G = async (O) => {
9357
+ O || (O = ""), q("");
9295
9358
  try {
9296
- if (!Rs(D, A.body)) {
9297
- const oe = e.type === "question" ? { title: D } : { body: D };
9359
+ if (!Rs(O, A.body)) {
9360
+ const oe = e.type === "question" ? { title: O } : { body: O };
9298
9361
  await f(Qr(e.slugs), oe);
9299
9362
  }
9300
- W({ body: D, isEditing: !1, didEdit: !0 });
9363
+ W({ body: O, isEditing: !1, didEdit: !0 });
9301
9364
  } catch {
9302
9365
  q(`${Me}form_error`);
9303
9366
  }
9304
9367
  }, V = () => {
9305
9368
  k && k.updateConversation && k.updateConversation({ showForm: !0 }), setTimeout(() => {
9306
- var Ne, Ce, qe;
9307
- 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) || ((qe = e.slugs) == null ? void 0 : qe.question) || "").toLowerCase().slice(-15)}`, I = document.getElementById(oe), ve = document.getElementById(`${oe}-input`);
9308
- ve && ve.focus(), I && I.scrollIntoView({ behavior: "smooth" });
9369
+ var Ne, Ce, Ue;
9370
+ 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`);
9371
+ ve && ve.focus(), D && D.scrollIntoView({ behavior: "smooth" });
9309
9372
  }, 0);
9310
9373
  }, ee = async () => {
9311
9374
  z(!1);
@@ -9317,8 +9380,8 @@ const Me = "discussion_", Cc = 280, cn = ({
9317
9380
  }, re = [
9318
9381
  {
9319
9382
  text: v.formatMessage({ id: `${Me}moreMenu_report` }),
9320
- onClick: (D) => {
9321
- D.stopPropagation();
9383
+ onClick: (O) => {
9384
+ O.stopPropagation();
9322
9385
  },
9323
9386
  href: `mailto:community@apolitical.co?subject=${encodeURI(
9324
9387
  v.formatMessage({ id: `${Me}report_subject` })
@@ -9335,7 +9398,7 @@ const Me = "discussion_", Cc = 280, cn = ({
9335
9398
  icon: "flag"
9336
9399
  }
9337
9400
  ];
9338
- return n && C && re.push(
9401
+ return n && $ && re.push(
9339
9402
  {
9340
9403
  text: v.formatMessage({ id: `${Me}moreMenu_edit` }),
9341
9404
  onClick: () => W({ ...A, isEditing: !0 }),
@@ -9346,8 +9409,8 @@ const Me = "discussion_", Cc = 280, cn = ({
9346
9409
  },
9347
9410
  {
9348
9411
  text: v.formatMessage({ id: `${Me}moreMenu_delete` }),
9349
- onClick: (D) => {
9350
- D.preventDefault(), D.stopPropagation(), z(!0);
9412
+ onClick: (O) => {
9413
+ O.preventDefault(), O.stopPropagation(), z(!0);
9351
9414
  },
9352
9415
  icon: "trash",
9353
9416
  className: "gtm-trackable",
@@ -9359,7 +9422,7 @@ const Me = "discussion_", Cc = 280, cn = ({
9359
9422
  className: S("discussion-post", p, {
9360
9423
  [K]: !p || !p.includes("highlighted-text-box")
9361
9424
  }),
9362
- ref: $,
9425
+ ref: N,
9363
9426
  "data-testid": `discussion-${e.type}-thread`,
9364
9427
  children: /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
9365
9428
  /* @__PURE__ */ a.jsxs(
@@ -9370,15 +9433,15 @@ const Me = "discussion_", Cc = 280, cn = ({
9370
9433
  editing: A.isEditing,
9371
9434
  "has-link": m.post && !A.isEditing
9372
9435
  }),
9373
- onClick: (D) => {
9374
- !m.post || A.isEditing || (D.preventDefault(), D.stopPropagation(), window.location.href = m.post);
9436
+ onClick: (O) => {
9437
+ !m.post || A.isEditing || (O.preventDefault(), O.stopPropagation(), window.location.href = m.post);
9375
9438
  },
9376
9439
  children: [
9377
9440
  !A.isEditing && /* @__PURE__ */ a.jsx(
9378
9441
  tr,
9379
9442
  {
9380
9443
  member: j,
9381
- additionalContent: { createdAt: F, didEdit: A.didEdit },
9444
+ additionalContent: { createdAt: I, didEdit: A.didEdit },
9382
9445
  className: typeof j != "string" && j.id === s ? "highlighted" : "",
9383
9446
  gtmContext: g,
9384
9447
  gtmType: "profile-click"
@@ -9421,10 +9484,10 @@ const Me = "discussion_", Cc = 280, cn = ({
9421
9484
  className: "gtm-trackable",
9422
9485
  "data-gtm-event-context": g,
9423
9486
  "data-gtm-event-type": "title-click",
9424
- children: /* @__PURE__ */ a.jsx(qt, { options: { overrides: { a: gi } }, children: te })
9487
+ children: /* @__PURE__ */ a.jsx(Ut, { options: { overrides: { a: gi } }, children: te })
9425
9488
  }
9426
9489
  ) : /* @__PURE__ */ a.jsx(
9427
- qt,
9490
+ Ut,
9428
9491
  {
9429
9492
  options: {
9430
9493
  wrapper: e.type === "question" ? "h1" : Y.Fragment,
@@ -9447,7 +9510,7 @@ const Me = "discussion_", Cc = 280, cn = ({
9447
9510
  element: "li",
9448
9511
  likes: Q,
9449
9512
  isShort: !1,
9450
- userLiked: N,
9513
+ userLiked: C,
9451
9514
  content: { type: e.type, slugs: e.slugs },
9452
9515
  canLike: T,
9453
9516
  peopleWhoLiked: e.peopleWhoLiked,
@@ -9461,8 +9524,8 @@ const Me = "discussion_", Cc = 280, cn = ({
9461
9524
  "li",
9462
9525
  {
9463
9526
  className: "action-button",
9464
- onClick: (D) => {
9465
- D.preventDefault(), D.stopPropagation(), m.comments && (window.location.href = m.comments), typeof d == "function" && d();
9527
+ onClick: (O) => {
9528
+ O.preventDefault(), O.stopPropagation(), m.comments && (window.location.href = m.comments), typeof d == "function" && d();
9466
9529
  },
9467
9530
  children: [
9468
9531
  /* @__PURE__ */ a.jsx(
@@ -9479,13 +9542,13 @@ const Me = "discussion_", Cc = 280, cn = ({
9479
9542
  "data-gtm-event-type": `answer-${e.type}-click`,
9480
9543
  screenreaderText: v.formatMessage(
9481
9544
  { id: `${Me}comments_screenReader` },
9482
- { count: O }
9545
+ { count: F }
9483
9546
  )
9484
9547
  }
9485
9548
  ),
9486
9549
  /* @__PURE__ */ a.jsx("span", { children: v.formatMessage(
9487
9550
  { id: `${Me}comments` },
9488
- { count: O }
9551
+ { count: F }
9489
9552
  ) })
9490
9553
  ]
9491
9554
  }
@@ -9555,7 +9618,7 @@ const Me = "discussion_", Cc = 280, cn = ({
9555
9618
  {
9556
9619
  id: "discussion_delete_text",
9557
9620
  values: {
9558
- p: (D) => /* @__PURE__ */ a.jsx("p", { children: D }),
9621
+ p: (O) => /* @__PURE__ */ a.jsx("p", { children: O }),
9559
9622
  action: v.formatMessage({
9560
9623
  id: `discussion_action_${e.type}`
9561
9624
  })
@@ -9587,7 +9650,7 @@ const Nc = ({
9587
9650
  form: r,
9588
9651
  children: s
9589
9652
  }) => {
9590
- const i = H(), o = Ee(sr), c = It(s, {
9653
+ const i = H(), o = Ee(sr), c = Lt(s, {
9591
9654
  element: "li"
9592
9655
  });
9593
9656
  return /* @__PURE__ */ a.jsxs("div", { className: "thread-wrapper", children: [
@@ -9708,7 +9771,7 @@ function Ga({ activity: t, user: e }) {
9708
9771
  like: (((s = t.own_reactions) == null ? void 0 : s.like) || []).filter(({ user_id: i }) => i !== e.id)
9709
9772
  });
9710
9773
  }
9711
- function Dc({ activityId: t, replyId: e, content: n }) {
9774
+ function Ac({ activityId: t, replyId: e, content: n }) {
9712
9775
  return {
9713
9776
  activity_id: t,
9714
9777
  data: {
@@ -9741,7 +9804,7 @@ function ea({ reply: t, reaction: e }) {
9741
9804
  like: (n = t.children_counts) != null && n.like ? t.children_counts.like + 1 : 1
9742
9805
  };
9743
9806
  }
9744
- function Ac({ reply: t, user: e }) {
9807
+ function Dc({ reply: t, user: e }) {
9745
9808
  var n, r, s;
9746
9809
  t.children_counts = {
9747
9810
  ...t.children_counts || {},
@@ -9791,7 +9854,7 @@ const Ja = () => {
9791
9854
  thumbnail: "https://some-user-thumbnail.com/avatar1.png"
9792
9855
  },
9793
9856
  isLoading: !1
9794
- }), Be = Object.freeze({
9857
+ }), qe = Object.freeze({
9795
9858
  id: "some-user-id-2",
9796
9859
  name: "some user name 2",
9797
9860
  organization: "some user organization 2",
@@ -9811,7 +9874,7 @@ const Ja = () => {
9811
9874
  time: "2023-11-24T17:52:36.162000",
9812
9875
  verb: "post"
9813
9876
  }), Ic = Object.freeze({
9814
- actor: `SU:${Be.id}`,
9877
+ actor: `SU:${qe.id}`,
9815
9878
  content: "some content 2",
9816
9879
  duration: "5.53ms",
9817
9880
  feed_id: "some-feed-id-2",
@@ -9831,7 +9894,7 @@ const Ja = () => {
9831
9894
  time: "2023-11-24T17:56:36.162000",
9832
9895
  verb: "post"
9833
9896
  }), Bc = Object.freeze({
9834
- actor: `SU:${Be.id}`,
9897
+ actor: `SU:${qe.id}`,
9835
9898
  content: "some content 4",
9836
9899
  duration: "5.53ms",
9837
9900
  feed_id: "some-feed-id-4",
@@ -9849,13 +9912,13 @@ Object.freeze({
9849
9912
  data: {},
9850
9913
  parent: "",
9851
9914
  updated_at: "2023-11-24T17:58:36.162000",
9852
- user_id: Be.id,
9915
+ user_id: qe.id,
9853
9916
  children_counts: {},
9854
9917
  latest_children: {},
9855
9918
  latest_children_extra: {},
9856
9919
  own_children: {},
9857
9920
  user: {
9858
- id: Be.id,
9921
+ id: qe.id,
9859
9922
  data: {},
9860
9923
  created_at: "2023-11-24T17:58:36.162000",
9861
9924
  updated_at: "2023-11-24T17:58:36.162000"
@@ -9865,9 +9928,9 @@ Object.freeze({
9865
9928
  created_at: "2023-12-03T21:53:45.999851Z",
9866
9929
  updated_at: "2023-12-03T21:53:45.999851Z",
9867
9930
  id: "some-reply-id-1",
9868
- user_id: Be.id,
9931
+ user_id: qe.id,
9869
9932
  user: {
9870
- id: Be.id,
9933
+ id: qe.id,
9871
9934
  data: {},
9872
9935
  created_at: "2023-08-31T07:11:38.677184Z",
9873
9936
  updated_at: "2023-08-31T07:11:38.677184Z"
@@ -9905,9 +9968,9 @@ Object.freeze({
9905
9968
  created_at: "2023-12-03T21:53:45.999851Z",
9906
9969
  updated_at: "2023-12-03T21:53:45.999851Z",
9907
9970
  id: "some-reply-id-3",
9908
- user_id: Be.id,
9971
+ user_id: qe.id,
9909
9972
  user: {
9910
- id: Be.id,
9973
+ id: qe.id,
9911
9974
  data: {},
9912
9975
  created_at: "2023-08-31T07:11:38.677184Z",
9913
9976
  updated_at: "2023-08-31T07:11:38.677184Z"
@@ -10163,24 +10226,24 @@ const pu = ({
10163
10226
  var A, W, Z, z, K, E, P, q;
10164
10227
  const {
10165
10228
  id: w,
10166
- own_reactions: F,
10229
+ own_reactions: I,
10167
10230
  latest_reactions: R,
10168
10231
  reaction_counts: Q
10169
- } = k, N = (((A = R == null ? void 0 : R.like) == null ? void 0 : A.length) || 0) > 0, O = (((W = F == null ? void 0 : F.like) == null ? void 0 : W.length) || 0) > 0, C = O ? F == null ? void 0 : F.like[0].id : "", T = N ? (Z = R == null ? void 0 : R.like) == null ? void 0 : Z.map((B) => {
10232
+ } = k, C = (((A = R == null ? void 0 : R.like) == null ? void 0 : A.length) || 0) > 0, F = (((W = I == null ? void 0 : I.like) == null ? void 0 : W.length) || 0) > 0, $ = F ? I == null ? void 0 : I.like[0].id : "", T = C ? (Z = R == null ? void 0 : R.like) == null ? void 0 : Z.map((B) => {
10170
10233
  var U, te, G;
10171
10234
  return {
10172
10235
  id: (U = B == null ? void 0 : B.user) == null ? void 0 : U.id,
10173
10236
  name: (G = (te = B == null ? void 0 : B.user) == null ? void 0 : te.data) == null ? void 0 : G.name
10174
10237
  };
10175
- }) : !1, x = k == null ? void 0 : k.actor, $ = (x == null ? void 0 : x.id) === (v == null ? void 0 : v.id);
10176
- return /* @__PURE__ */ a.jsxs(bt, { children: [
10238
+ }) : !1, x = k == null ? void 0 : k.actor, N = (x == null ? void 0 : x.id) === (v == null ? void 0 : v.id);
10239
+ return /* @__PURE__ */ a.jsxs(yt, { children: [
10177
10240
  /* @__PURE__ */ a.jsx(
10178
10241
  cn,
10179
10242
  {
10180
10243
  content: {
10181
10244
  type: "post",
10182
10245
  body: k == null ? void 0 : k.content,
10183
- canLike: on(n, $),
10246
+ canLike: on(n, N),
10184
10247
  createdAt: (k == null ? void 0 : k.time) || "",
10185
10248
  slugs: {
10186
10249
  question: `${t}/${e}`,
@@ -10197,7 +10260,7 @@ const pu = ({
10197
10260
  thumbnail: ((q = x == null ? void 0 : x.data) == null ? void 0 : q.thumbnail) || void 0
10198
10261
  }
10199
10262
  },
10200
- userLiked: O,
10263
+ userLiked: F,
10201
10264
  likes: (Q == null ? void 0 : Q.like) || 0,
10202
10265
  comments: (Q == null ? void 0 : Q.reply) || 0,
10203
10266
  peopleWhoLiked: T
@@ -10215,7 +10278,7 @@ const pu = ({
10215
10278
  },
10216
10279
  likes: {
10217
10280
  createLike: () => _({ activityId: w }),
10218
- deleteLike: () => y({ activityId: w, reactionId: C })
10281
+ deleteLike: () => y({ activityId: w, reactionId: $ })
10219
10282
  },
10220
10283
  comments: {
10221
10284
  openComments: () => null
@@ -10224,7 +10287,7 @@ const pu = ({
10224
10287
  isTruncated: !0
10225
10288
  }
10226
10289
  ),
10227
- b > j + 1 && /* @__PURE__ */ a.jsx(De, {})
10290
+ b > j + 1 && /* @__PURE__ */ a.jsx(Ae, {})
10228
10291
  ] }, w);
10229
10292
  }),
10230
10293
  !d && /* @__PURE__ */ a.jsx(
@@ -10802,7 +10865,7 @@ function Gc({
10802
10865
  const { mutate: o } = je({
10803
10866
  mutationFn: t,
10804
10867
  onMutate: (c) => e((f) => {
10805
- const l = Xr({ reply: Dc(c), user: i });
10868
+ const l = Xr({ reply: Ac(c), user: i });
10806
10869
  return ra(l, f, {
10807
10870
  replace: !1,
10808
10871
  append: (c == null ? void 0 : c.replyId) !== void 0
@@ -10941,7 +11004,7 @@ function tl({
10941
11004
  mutationFn: t,
10942
11005
  onMutate: ({ replyId: i }) => e((o) => {
10943
11006
  const c = tn(i, o);
10944
- return c && Ac({ reply: c, user: r }), o;
11007
+ return c && Dc({ reply: c, user: r }), o;
10945
11008
  }),
10946
11009
  onError: n
10947
11010
  });
@@ -11037,16 +11100,16 @@ const ol = ({
11037
11100
  own_children: b,
11038
11101
  latest_children: k,
11039
11102
  children_counts: j
11040
- } = y, F = (((A = b == null ? void 0 : b.like) == null ? void 0 : A.length) || 0) > 0 ? (W = b == null ? void 0 : b.like) == null ? void 0 : W.find((V) => {
11103
+ } = y, I = (((A = b == null ? void 0 : b.like) == null ? void 0 : A.length) || 0) > 0 ? (W = b == null ? void 0 : b.like) == null ? void 0 : W.find((V) => {
11041
11104
  var ee;
11042
11105
  return ((ee = V == null ? void 0 : V.user) == null ? void 0 : ee.id) === (_ == null ? void 0 : _.id);
11043
- }) : !1, R = F ? F == null ? void 0 : F.id : "", Q = !!F, O = (((Z = k == null ? void 0 : k.like) == null ? void 0 : Z.length) || 0) > 0 ? (z = k == null ? void 0 : k.like) == null ? void 0 : z.map((V) => {
11044
- var ee, re, D;
11106
+ }) : !1, R = I ? I == null ? void 0 : I.id : "", Q = !!I, F = (((Z = k == null ? void 0 : k.like) == null ? void 0 : Z.length) || 0) > 0 ? (z = k == null ? void 0 : k.like) == null ? void 0 : z.map((V) => {
11107
+ var ee, re, O;
11045
11108
  return {
11046
11109
  id: (ee = V == null ? void 0 : V.user) == null ? void 0 : ee.id,
11047
- name: (D = (re = V == null ? void 0 : V.user) == null ? void 0 : re.data) == null ? void 0 : D.name
11110
+ name: (O = (re = V == null ? void 0 : V.user) == null ? void 0 : re.data) == null ? void 0 : O.name
11048
11111
  };
11049
- }) : !1, C = y == null ? void 0 : y.user, T = (C == null ? void 0 : C.id) === (_ == null ? void 0 : _.id), x = on(s, T), $ = typeof y.data.content == "string" ? (K = y == null ? void 0 : y.data) == null ? void 0 : K.content : (
11112
+ }) : !1, $ = y == null ? void 0 : y.user, T = ($ == null ? void 0 : $.id) === (_ == null ? void 0 : _.id), x = on(s, T), N = typeof y.data.content == "string" ? (K = y == null ? void 0 : y.data) == null ? void 0 : K.content : (
11050
11113
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
11051
11114
  ((P = (E = y == null ? void 0 : y.data) == null ? void 0 : E.content) == null ? void 0 : P.text) || ""
11052
11115
  );
@@ -11056,7 +11119,7 @@ const ol = ({
11056
11119
  content: {
11057
11120
  id: v,
11058
11121
  type: "reply",
11059
- body: $,
11122
+ body: N,
11060
11123
  canLike: x,
11061
11124
  createdAt: y == null ? void 0 : y.created_at,
11062
11125
  slugs: {
@@ -11068,18 +11131,18 @@ const ol = ({
11068
11131
  },
11069
11132
  slug: "",
11070
11133
  author: {
11071
- id: C == null ? void 0 : C.id,
11072
- name: (q = C.data) == null ? void 0 : q.name,
11073
- organization: (B = C.data) == null ? void 0 : B.organization,
11074
- jobTitle: (U = C.data) == null ? void 0 : U.jobTitle,
11075
- location: (te = C.data) == null ? void 0 : te.location,
11134
+ id: $ == null ? void 0 : $.id,
11135
+ name: (q = $.data) == null ? void 0 : q.name,
11136
+ organization: (B = $.data) == null ? void 0 : B.organization,
11137
+ jobTitle: (U = $.data) == null ? void 0 : U.jobTitle,
11138
+ location: (te = $.data) == null ? void 0 : te.location,
11076
11139
  image: {
11077
- thumbnail: ((G = C.data) == null ? void 0 : G.thumbnail) || void 0
11140
+ thumbnail: ((G = $.data) == null ? void 0 : G.thumbnail) || void 0
11078
11141
  }
11079
11142
  },
11080
11143
  userLiked: Q,
11081
11144
  likes: (j == null ? void 0 : j.like) || 0,
11082
- peopleWhoLiked: O
11145
+ peopleWhoLiked: F
11083
11146
  },
11084
11147
  functions: {
11085
11148
  content: {
@@ -11144,16 +11207,16 @@ const ol = ({
11144
11207
  ),
11145
11208
  f == null ? void 0 : f.map((k) => {
11146
11209
  var z, K, E, P, q, B, U, te, G, V, ee, re;
11147
- const { id: j, own_children: w, latest_children: F, children_counts: R } = k, N = (((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((D) => {
11210
+ const { id: j, own_children: w, latest_children: I, children_counts: R } = k, C = (((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((O) => {
11148
11211
  var oe;
11149
- return ((oe = D == null ? void 0 : D.user) == null ? void 0 : oe.id) === (b == null ? void 0 : b.id);
11150
- }) : !1, O = N ? N == null ? void 0 : N.id : "", C = !!N, x = (((E = F == null ? void 0 : F.like) == null ? void 0 : E.length) || 0) > 0 ? (P = F == null ? void 0 : F.like) == null ? void 0 : P.map((D) => {
11151
- var oe, I, ve;
11212
+ return ((oe = O == null ? void 0 : O.user) == null ? void 0 : oe.id) === (b == null ? void 0 : b.id);
11213
+ }) : !1, F = C ? C == null ? void 0 : C.id : "", $ = !!C, x = (((E = I == null ? void 0 : I.like) == null ? void 0 : E.length) || 0) > 0 ? (P = I == null ? void 0 : I.like) == null ? void 0 : P.map((O) => {
11214
+ var oe, D, ve;
11152
11215
  return {
11153
- id: (oe = D == null ? void 0 : D.user) == null ? void 0 : oe.id,
11154
- name: (ve = (I = D == null ? void 0 : D.user) == null ? void 0 : I.data) == null ? void 0 : ve.name
11216
+ id: (oe = O == null ? void 0 : O.user) == null ? void 0 : oe.id,
11217
+ name: (ve = (D = O == null ? void 0 : O.user) == null ? void 0 : D.data) == null ? void 0 : ve.name
11155
11218
  };
11156
- }) : !1, $ = k == null ? void 0 : k.user, A = ($ == null ? void 0 : $.id) === (b == null ? void 0 : b.id), W = on(r, A), Z = typeof k.data.content == "string" ? (q = k == null ? void 0 : k.data) == null ? void 0 : q.content : (
11219
+ }) : !1, N = k == null ? void 0 : k.user, A = (N == null ? void 0 : N.id) === (b == null ? void 0 : b.id), W = on(r, A), Z = typeof k.data.content == "string" ? (q = k == null ? void 0 : k.data) == null ? void 0 : q.content : (
11157
11220
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
11158
11221
  ((U = (B = k == null ? void 0 : k.data) == null ? void 0 : B.content) == null ? void 0 : U.text) || ""
11159
11222
  );
@@ -11173,16 +11236,16 @@ const ol = ({
11173
11236
  },
11174
11237
  slug: j,
11175
11238
  author: {
11176
- id: $ == null ? void 0 : $.id,
11177
- name: (te = $.data) == null ? void 0 : te.name,
11178
- organization: (G = $.data) == null ? void 0 : G.organization,
11179
- jobTitle: (V = $.data) == null ? void 0 : V.jobTitle,
11180
- location: (ee = $.data) == null ? void 0 : ee.location,
11239
+ id: N == null ? void 0 : N.id,
11240
+ name: (te = N.data) == null ? void 0 : te.name,
11241
+ organization: (G = N.data) == null ? void 0 : G.organization,
11242
+ jobTitle: (V = N.data) == null ? void 0 : V.jobTitle,
11243
+ location: (ee = N.data) == null ? void 0 : ee.location,
11181
11244
  image: {
11182
- thumbnail: ((re = $.data) == null ? void 0 : re.thumbnail) || void 0
11245
+ thumbnail: ((re = N.data) == null ? void 0 : re.thumbnail) || void 0
11183
11246
  }
11184
11247
  },
11185
- userLiked: C,
11248
+ userLiked: $,
11186
11249
  likes: (R == null ? void 0 : R.like) || 0,
11187
11250
  peopleWhoLiked: x
11188
11251
  },
@@ -11191,11 +11254,11 @@ const ol = ({
11191
11254
  createContent: () => null,
11192
11255
  deleteContent: () => y({ replyId: j }),
11193
11256
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
11194
- updateContent: (D, { body: oe }) => g({ replyId: j, content: oe })
11257
+ updateContent: (O, { body: oe }) => g({ replyId: j, content: oe })
11195
11258
  },
11196
11259
  likes: {
11197
11260
  createLike: () => _({ replyId: j }),
11198
- deleteLike: () => v({ replyId: j, reactionId: O })
11261
+ deleteLike: () => v({ replyId: j, reactionId: F })
11199
11262
  },
11200
11263
  comments: {}
11201
11264
  },
@@ -11335,7 +11398,7 @@ const gu = ({
11335
11398
  leave: f
11336
11399
  }
11337
11400
  }) => {
11338
- var N, O, C, T, x, $, A, W, Z, z;
11401
+ var C, F, $, T, x, N, A, W, Z, z;
11339
11402
  const l = H(), u = Ee(Ie), {
11340
11403
  activity: d,
11341
11404
  error: m,
@@ -11355,7 +11418,7 @@ const gu = ({
11355
11418
  text: l.formatMessage({ id: "activitySection_notFoundError" })
11356
11419
  }
11357
11420
  );
11358
- const { own_reactions: v, latest_reactions: b } = d, k = (((N = b == null ? void 0 : b.like) == null ? void 0 : N.length) || 0) > 0, j = (((O = v == null ? void 0 : v.like) == null ? void 0 : O.length) || 0) > 0, w = j ? v == null ? void 0 : v.like[0].id : "", F = k ? (C = b == null ? void 0 : b.like) == null ? void 0 : C.map((K) => {
11421
+ const { own_reactions: v, latest_reactions: b } = d, k = (((C = b == null ? void 0 : b.like) == null ? void 0 : C.length) || 0) > 0, j = (((F = v == null ? void 0 : v.like) == null ? void 0 : F.length) || 0) > 0, w = j ? v == null ? void 0 : v.like[0].id : "", I = k ? ($ = b == null ? void 0 : b.like) == null ? void 0 : $.map((K) => {
11359
11422
  var E, P, q;
11360
11423
  return {
11361
11424
  id: (E = K == null ? void 0 : K.user) == null ? void 0 : E.id,
@@ -11382,7 +11445,7 @@ const gu = ({
11382
11445
  id: R.id,
11383
11446
  name: (T = R.data) == null ? void 0 : T.name,
11384
11447
  organization: (x = R.data) == null ? void 0 : x.organization,
11385
- jobTitle: ($ = R.data) == null ? void 0 : $.jobTitle,
11448
+ jobTitle: (N = R.data) == null ? void 0 : N.jobTitle,
11386
11449
  location: (A = R.data) == null ? void 0 : A.location,
11387
11450
  image: {
11388
11451
  thumbnail: ((W = R.data) == null ? void 0 : W.thumbnail) || void 0
@@ -11391,7 +11454,7 @@ const gu = ({
11391
11454
  userLiked: j,
11392
11455
  likes: ((Z = d == null ? void 0 : d.reaction_counts) == null ? void 0 : Z.like) || 0,
11393
11456
  comments: ((z = d == null ? void 0 : d.reaction_counts) == null ? void 0 : z.reply) || 0,
11394
- peopleWhoLiked: F
11457
+ peopleWhoLiked: I
11395
11458
  },
11396
11459
  originalAuthorId: R == null ? void 0 : R.id,
11397
11460
  forceHide: { comments: !0 },
@@ -11516,16 +11579,16 @@ const Dt = "notFoundError_", bu = () => {
11516
11579
  );
11517
11580
  };
11518
11581
  export {
11519
- ze as ASSETS_BUCKET,
11582
+ Be as ASSETS_BUCKET,
11520
11583
  pu as ActivitiesFeed,
11521
11584
  gu as ActivitySection,
11522
11585
  Va as AddPost,
11523
- Al as Banner,
11586
+ Dl as Banner,
11524
11587
  ql as BannerSection,
11525
11588
  nu as Breadcrumbs,
11526
11589
  se as Button,
11527
- wt as ButtonWrapper,
11528
- Tt as COURSE_CONTENT_TYPES,
11590
+ jt as ButtonWrapper,
11591
+ Et as COURSE_CONTENT_TYPES,
11529
11592
  Ti as CacheProvider,
11530
11593
  Ua as Card,
11531
11594
  rc as CardBlock,
@@ -11548,7 +11611,7 @@ export {
11548
11611
  Sc as DiscussionLikes,
11549
11612
  cn as DiscussionPost,
11550
11613
  Nc as DiscussionThread,
11551
- De as Divider,
11614
+ Ae as Divider,
11552
11615
  Il as DownloadSection,
11553
11616
  ft as EMAILS,
11554
11617
  Ll as EditSection,
@@ -11584,7 +11647,7 @@ export {
11584
11647
  za as Logo,
11585
11648
  Bl as LogoSection,
11586
11649
  mu as MarkCompleteButton,
11587
- qt as MarkdownText,
11650
+ Ut as MarkdownText,
11588
11651
  zl as MarketingBlock,
11589
11652
  tr as Member,
11590
11653
  uu as MembersList,
@@ -11598,7 +11661,7 @@ export {
11598
11661
  yc as PageLayout,
11599
11662
  Gl as PasswordForm,
11600
11663
  Hi as PasswordRules,
11601
- Ut as Pill,
11664
+ ht as Pill,
11602
11665
  Kl as ProfileImageChange,
11603
11666
  Ye as ProfilePicture,
11604
11667
  _a as ProgressBar,
@@ -11606,14 +11669,14 @@ export {
11606
11669
  Vl as Rating,
11607
11670
  cl as RepliesFeed,
11608
11671
  $c as ResponsesHeading,
11609
- jt as ResponsiveImage,
11672
+ kt as ResponsiveImage,
11610
11673
  Ml as ReturnToNavButton,
11611
11674
  Ki as SearchForm,
11612
11675
  su as ShareLinks,
11613
11676
  Ql as SignupForm,
11614
11677
  gi as Span,
11615
11678
  Wt as StatusBanner,
11616
- Dl as TableOfContents,
11679
+ Al as TableOfContents,
11617
11680
  iu as Tabs,
11618
11681
  lu as Tags,
11619
11682
  Ol as TestimonialBlock,
@@ -11642,8 +11705,8 @@ export {
11642
11705
  zs as toCamelCase,
11643
11706
  Zs as toSentenceCase,
11644
11707
  Ls as useCurrentPath,
11645
- yt as useEffectAfterMount,
11646
- xt as useElementWidth,
11708
+ _t as useEffectAfterMount,
11709
+ wt as useElementWidth,
11647
11710
  qs as useScrollListener,
11648
11711
  Us as useScrollToHash,
11649
11712
  er as useUser