@apolitical/component-library 4.0.3 → 4.0.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. package/index.js +16 -16
  2. package/index.mjs +205 -203
  3. package/package.json +1 -1
package/index.mjs CHANGED
@@ -1,18 +1,18 @@
1
- import V, { memo as Oe, useState as K, useEffect as ae, useRef as pe, useMemo as wt, Children as Un, useCallback as Wt, useReducer as Qn, createContext as jt, useContext as Se, Fragment as yt, Suspense as ks } from "react";
1
+ import V, { memo as Oe, useState as K, useEffect as ae, useRef as pe, useMemo as wt, Children as Un, useCallback as Wt, useReducer as Qn, createContext as jt, useContext as Se, Fragment as yt, Suspense as Ts } from "react";
2
2
  import pt from "lodash.clonedeep";
3
- import Ts from "lodash.set";
4
- import { FormattedMessage as ye, useIntl as Z, IntlProvider as Es, createIntl as Ss } from "react-intl";
3
+ import Es from "lodash.set";
4
+ import { FormattedMessage as ye, useIntl as Z, IntlProvider as Ss, createIntl as Cs } from "react-intl";
5
5
  import Ie from "markdown-to-jsx";
6
6
  import et from "truncate";
7
- import { QueryClient as Cs, QueryClientProvider as Ns, useMutation as je, useQueryClient as Jn, useInfiniteQuery as ca, useQuery as $s } from "@tanstack/react-query";
8
- import { ReactQueryDevtools as Ps } from "@tanstack/react-query-devtools";
7
+ import { QueryClient as Ns, QueryClientProvider as $s, useMutation as je, useQueryClient as Jn, useInfiniteQuery as ca, useQuery as Ps } from "@tanstack/react-query";
8
+ import { ReactQueryDevtools as Ms } from "@tanstack/react-query-devtools";
9
9
  import Bt from "posthog-js";
10
- import { useCookies as la, CookiesProvider as Ms } from "react-cookie";
11
- import { ReactMultiEmail as Rs } from "react-multi-email";
10
+ import { useCookies as la, CookiesProvider as Rs } from "react-cookie";
11
+ import { ReactMultiEmail as Fs } from "react-multi-email";
12
12
  import ua from "lodash.get";
13
- import { ErrorBoundary as Fs } from "react-error-boundary";
14
- import Os from "react-textarea-autosize";
15
- import As from "lodash.isequal";
13
+ import { ErrorBoundary as Os } from "react-error-boundary";
14
+ import As from "react-textarea-autosize";
15
+ import Ds from "lodash.isequal";
16
16
  function da(t) {
17
17
  return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
18
18
  }
@@ -73,8 +73,8 @@ var ma = { exports: {} };
73
73
  t.exports ? (n.default = n, t.exports = n) : window.classNames = n;
74
74
  })();
75
75
  })(ma);
76
- var Ds = ma.exports;
77
- const E = /* @__PURE__ */ da(Ds), Is = ({
76
+ var Is = ma.exports;
77
+ const E = /* @__PURE__ */ da(Is), Ls = ({
78
78
  element: t = "span",
79
79
  showOnFocus: e = !0,
80
80
  children: n,
@@ -84,11 +84,11 @@ const E = /* @__PURE__ */ da(Ds), Is = ({
84
84
  ...s,
85
85
  className: E("hidden", r, { "show-on-focus": e }),
86
86
  children: n
87
- }), be = Oe(Is), Ls = ({
87
+ }), be = Oe(Ls), Bs = ({
88
88
  element: t = "span",
89
89
  children: e = null,
90
90
  ...n
91
- }) => V.createElement(t, { ...n, "aria-hidden": !0 }, e), Xn = Oe(Ls);
91
+ }) => V.createElement(t, { ...n, "aria-hidden": !0 }, e), Xn = Oe(Bs);
92
92
  var Wn = { exports: {} }, it = {};
93
93
  /**
94
94
  * @license React
@@ -100,7 +100,7 @@ var Wn = { exports: {} }, it = {};
100
100
  * LICENSE file in the root directory of this source tree.
101
101
  */
102
102
  var jr;
103
- function Bs() {
103
+ function qs() {
104
104
  if (jr)
105
105
  return it;
106
106
  jr = 1;
@@ -128,7 +128,7 @@ var ot = {};
128
128
  * LICENSE file in the root directory of this source tree.
129
129
  */
130
130
  var kr;
131
- function qs() {
131
+ function Us() {
132
132
  return kr || (kr = 1, process.env.NODE_ENV !== "production" && function() {
133
133
  var t = V, e = Symbol.for("react.element"), n = Symbol.for("react.portal"), r = Symbol.for("react.fragment"), s = Symbol.for("react.strict_mode"), i = Symbol.for("react.profiler"), o = Symbol.for("react.provider"), c = Symbol.for("react.context"), u = Symbol.for("react.forward_ref"), l = Symbol.for("react.suspense"), d = Symbol.for("react.suspense_list"), m = Symbol.for("react.memo"), f = Symbol.for("react.lazy"), p = Symbol.for("react.offscreen"), v = Symbol.iterator, h = "@@iterator";
134
134
  function b(g) {
@@ -415,7 +415,7 @@ function qs() {
415
415
  } else
416
416
  dr.setExtraStackFrame(null);
417
417
  }
418
- function as(g, M, L, ne, le) {
418
+ function ss(g, M, L, ne, le) {
419
419
  {
420
420
  var me = Function.call.bind(qe);
421
421
  for (var ce in g)
@@ -434,17 +434,17 @@ function qs() {
434
434
  }
435
435
  }
436
436
  }
437
- var ss = Array.isArray;
437
+ var is = Array.isArray;
438
438
  function dn(g) {
439
- return ss(g);
439
+ return is(g);
440
440
  }
441
- function is(g) {
441
+ function os(g) {
442
442
  {
443
443
  var M = typeof Symbol == "function" && Symbol.toStringTag, L = M && g[Symbol.toStringTag] || g.constructor.name || "Object";
444
444
  return L;
445
445
  }
446
446
  }
447
- function os(g) {
447
+ function cs(g) {
448
448
  try {
449
449
  return fr(g), !1;
450
450
  } catch {
@@ -455,17 +455,17 @@ function qs() {
455
455
  return "" + g;
456
456
  }
457
457
  function mr(g) {
458
- if (os(g))
459
- return w("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", is(g)), fr(g);
458
+ if (cs(g))
459
+ return w("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", os(g)), fr(g);
460
460
  }
461
- var st = _.ReactCurrentOwner, cs = {
461
+ var st = _.ReactCurrentOwner, ls = {
462
462
  key: !0,
463
463
  ref: !0,
464
464
  __self: !0,
465
465
  __source: !0
466
466
  }, pr, hr, fn;
467
467
  fn = {};
468
- function ls(g) {
468
+ function us(g) {
469
469
  if (qe.call(g, "ref")) {
470
470
  var M = Object.getOwnPropertyDescriptor(g, "ref").get;
471
471
  if (M && M.isReactWarning)
@@ -473,7 +473,7 @@ function qs() {
473
473
  }
474
474
  return g.ref !== void 0;
475
475
  }
476
- function us(g) {
476
+ function ds(g) {
477
477
  if (qe.call(g, "key")) {
478
478
  var M = Object.getOwnPropertyDescriptor(g, "key").get;
479
479
  if (M && M.isReactWarning)
@@ -481,13 +481,13 @@ function qs() {
481
481
  }
482
482
  return g.key !== void 0;
483
483
  }
484
- function ds(g, M) {
484
+ function fs(g, M) {
485
485
  if (typeof g.ref == "string" && st.current && M && st.current.stateNode !== M) {
486
486
  var L = k(st.current.type);
487
487
  fn[L] || (w('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref', k(st.current.type), g.ref), fn[L] = !0);
488
488
  }
489
489
  }
490
- function fs(g, M) {
490
+ function ms(g, M) {
491
491
  {
492
492
  var L = function() {
493
493
  pr || (pr = !0, w("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", M));
@@ -498,7 +498,7 @@ function qs() {
498
498
  });
499
499
  }
500
500
  }
501
- function ms(g, M) {
501
+ function ps(g, M) {
502
502
  {
503
503
  var L = function() {
504
504
  hr || (hr = !0, w("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", M));
@@ -509,7 +509,7 @@ function qs() {
509
509
  });
510
510
  }
511
511
  }
512
- var ps = function(g, M, L, ne, le, me, ce) {
512
+ var hs = function(g, M, L, ne, le, me, ce) {
513
513
  var ie = {
514
514
  // This tag allows us to uniquely identify this as a React Element
515
515
  $$typeof: e,
@@ -538,12 +538,12 @@ function qs() {
538
538
  value: le
539
539
  }), Object.freeze && (Object.freeze(ie.props), Object.freeze(ie)), ie;
540
540
  };
541
- function hs(g, M, L, ne, le) {
541
+ function gs(g, M, L, ne, le) {
542
542
  {
543
543
  var me, ce = {}, ie = null, xe = null;
544
- L !== void 0 && (mr(L), ie = "" + L), us(M) && (mr(M.key), ie = "" + M.key), ls(M) && (xe = M.ref, ds(M, le));
544
+ L !== void 0 && (mr(L), ie = "" + L), ds(M) && (mr(M.key), ie = "" + M.key), us(M) && (xe = M.ref, fs(M, le));
545
545
  for (me in M)
546
- qe.call(M, me) && !cs.hasOwnProperty(me) && (ce[me] = M[me]);
546
+ qe.call(M, me) && !ls.hasOwnProperty(me) && (ce[me] = M[me]);
547
547
  if (g && g.defaultProps) {
548
548
  var ge = g.defaultProps;
549
549
  for (me in ge)
@@ -551,9 +551,9 @@ function qs() {
551
551
  }
552
552
  if (ie || xe) {
553
553
  var ve = typeof g == "function" ? g.displayName || g.name || "Unknown" : g;
554
- ie && fs(ce, ve), xe && ms(ce, ve);
554
+ ie && ms(ce, ve), xe && ps(ce, ve);
555
555
  }
556
- return ps(g, ie, xe, le, ne, st.current, ce);
556
+ return hs(g, ie, xe, le, ne, st.current, ce);
557
557
  }
558
558
  }
559
559
  var mn = _.ReactCurrentOwner, gr = _.ReactDebugCurrentFrame;
@@ -581,7 +581,7 @@ Check the render method of \`` + g + "`.";
581
581
  return "";
582
582
  }
583
583
  }
584
- function gs(g) {
584
+ function vs(g) {
585
585
  {
586
586
  if (g !== void 0) {
587
587
  var M = g.fileName.replace(/^.*[\\\/]/, ""), L = g.lineNumber;
@@ -593,7 +593,7 @@ Check your code at ` + M + ":" + L + ".";
593
593
  }
594
594
  }
595
595
  var br = {};
596
- function vs(g) {
596
+ function bs(g) {
597
597
  {
598
598
  var M = vr();
599
599
  if (!M) {
@@ -610,7 +610,7 @@ Check the top-level render call using <` + L + ">.");
610
610
  if (!g._store || g._store.validated || g.key != null)
611
611
  return;
612
612
  g._store.validated = !0;
613
- var L = vs(M);
613
+ var L = bs(M);
614
614
  if (br[L])
615
615
  return;
616
616
  br[L] = !0;
@@ -637,7 +637,7 @@ Check the top-level render call using <` + L + ">.");
637
637
  }
638
638
  }
639
639
  }
640
- function bs(g) {
640
+ function ys(g) {
641
641
  {
642
642
  var M = g.type;
643
643
  if (M == null || typeof M == "string")
@@ -653,7 +653,7 @@ Check the top-level render call using <` + L + ">.");
653
653
  return;
654
654
  if (L) {
655
655
  var ne = k(M);
656
- as(L, g.props, "prop", ne, g);
656
+ ss(L, g.props, "prop", ne, g);
657
657
  } else if (M.PropTypes !== void 0 && !pn) {
658
658
  pn = !0;
659
659
  var le = k(M);
@@ -662,7 +662,7 @@ Check the top-level render call using <` + L + ">.");
662
662
  typeof M.getDefaultProps == "function" && !M.getDefaultProps.isReactClassApproved && w("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
663
663
  }
664
664
  }
665
- function ys(g) {
665
+ function _s(g) {
666
666
  {
667
667
  for (var M = Object.keys(g.props), L = 0; L < M.length; L++) {
668
668
  var ne = M[L];
@@ -680,12 +680,12 @@ Check the top-level render call using <` + L + ">.");
680
680
  if (!ce) {
681
681
  var ie = "";
682
682
  (g === void 0 || typeof g == "object" && g !== null && Object.keys(g).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.");
683
- var xe = gs(le);
683
+ var xe = vs(le);
684
684
  xe ? ie += xe : ie += vr();
685
685
  var ge;
686
686
  g === null ? ge = "null" : dn(g) ? ge = "array" : g !== void 0 && g.$$typeof === e ? (ge = "<" + (k(g.type) || "Unknown") + " />", ie = " Did you accidentally export a JSX literal instead of a component?") : ge = typeof g, w("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", ge, ie);
687
687
  }
688
- var ve = hs(g, M, L, le, me);
688
+ var ve = gs(g, M, L, le, me);
689
689
  if (ve == null)
690
690
  return ve;
691
691
  if (ce) {
@@ -701,22 +701,22 @@ Check the top-level render call using <` + L + ">.");
701
701
  else
702
702
  _r(Te, g);
703
703
  }
704
- return g === r ? ys(ve) : bs(ve), ve;
704
+ return g === r ? _s(ve) : ys(ve), ve;
705
705
  }
706
706
  }
707
- function _s(g, M, L) {
707
+ function xs(g, M, L) {
708
708
  return xr(g, M, L, !0);
709
709
  }
710
- function xs(g, M, L) {
710
+ function ws(g, M, L) {
711
711
  return xr(g, M, L, !1);
712
712
  }
713
- var ws = xs, js = _s;
714
- ot.Fragment = r, ot.jsx = ws, ot.jsxs = js;
713
+ var js = ws, ks = xs;
714
+ ot.Fragment = r, ot.jsx = js, ot.jsxs = ks;
715
715
  }()), ot;
716
716
  }
717
- process.env.NODE_ENV === "production" ? Wn.exports = Bs() : Wn.exports = qs();
717
+ process.env.NODE_ENV === "production" ? Wn.exports = qs() : Wn.exports = Us();
718
718
  var a = Wn.exports;
719
- const Us = () => {
719
+ const Ws = () => {
720
720
  const [t, e] = K(window.location.pathname), n = () => {
721
721
  const r = window.location.pathname;
722
722
  e(r);
@@ -730,7 +730,7 @@ const Us = () => {
730
730
  n.current ? t() : n.current = !0;
731
731
  }, e);
732
732
  };
733
- function Ws(t, e, n) {
733
+ function zs(t, e, n) {
734
734
  var r = this, s = pe(null), i = pe(0), o = pe(null), c = pe([]), u = pe(), l = pe(), d = pe(t), m = pe(!0);
735
735
  d.current = t;
736
736
  var f = typeof window < "u", p = !e && e !== 0 && f;
@@ -788,7 +788,7 @@ function Ws(t, e, n) {
788
788
  }
789
789
  function pa(t, e, n) {
790
790
  var r = n === void 0 ? {} : n, s = r.leading, i = r.trailing;
791
- return Ws(t, e, { maxWait: e, leading: s === void 0 || s, trailing: i === void 0 || i });
791
+ return zs(t, e, { maxWait: e, leading: s === void 0 || s, trailing: i === void 0 || i });
792
792
  }
793
793
  let gn;
794
794
  const kt = (t = !0, e = !1, n = "window") => {
@@ -817,7 +817,7 @@ const kt = (t = !0, e = !1, n = "window") => {
817
817
  { leading: !0 }
818
818
  );
819
819
  return r;
820
- }, zs = ({
820
+ }, Zs = ({
821
821
  scrollPosition: t = 0,
822
822
  // The position on the page to scroll past
823
823
  offset: e = { down: 0, up: 10 },
@@ -851,7 +851,7 @@ const kt = (t = !0, e = !1, n = "window") => {
851
851
  u();
852
852
  }, 250);
853
853
  return s;
854
- }, Zs = (t = [], e = !0) => {
854
+ }, ha = (t = [], e = !0) => {
855
855
  t = Array.isArray(t) ? t : [t];
856
856
  const n = pe(!1);
857
857
  _t(() => {
@@ -862,19 +862,19 @@ const kt = (t = !0, e = !1, n = "window") => {
862
862
  r && (r.scrollIntoView(e ? { behavior: "smooth" } : null), n.current = !0);
863
863
  }
864
864
  }, t);
865
- }, ha = (t, e) => {
865
+ }, ga = (t, e) => {
866
866
  Array.isArray(e) || (e = [e]);
867
867
  const n = pt(t);
868
868
  return e.forEach(({ type: r, value: s }) => {
869
- Ts(n, r, s);
869
+ Es(n, r, s);
870
870
  }), n;
871
- }, ga = (t) => {
871
+ }, va = (t) => {
872
872
  const e = [];
873
873
  return t.forEach((n) => {
874
874
  const r = parseInt(n);
875
875
  isNaN(r) || e.push(r);
876
876
  }), e.sort((n, r) => n - r);
877
- }, va = (t, e, n) => {
877
+ }, ba = (t, e, n) => {
878
878
  let r = n.mobile;
879
879
  for (const s in e) {
880
880
  const i = parseInt(String(e[s]));
@@ -912,7 +912,7 @@ const We = {
912
912
  weeks: 52,
913
913
  days: 365
914
914
  }
915
- }, Qs = (t, e = "en") => new Date(t).toLocaleString(e, { day: "numeric", month: "short" }), ba = (t, e = "en") => new Date(t).toLocaleString(e, {
915
+ }, Qs = (t, e = "en") => new Date(t).toLocaleString(e, { day: "numeric", month: "short" }), ya = (t, e = "en") => new Date(t).toLocaleString(e, {
916
916
  weekday: "long",
917
917
  day: "numeric",
918
918
  month: "short",
@@ -1455,8 +1455,8 @@ Thank you for helping to protect the Apolitical community from abusive content.`
1455
1455
  }) => {
1456
1456
  const p = kt(typeof e == "object");
1457
1457
  if (typeof e == "object" && typeof p == "number") {
1458
- const b = Object.assign({}, e), _ = ga(Object.keys(b));
1459
- e = va(p, _, b);
1458
+ const b = Object.assign({}, e), _ = va(Object.keys(b));
1459
+ e = ba(p, _, b);
1460
1460
  }
1461
1461
  const v = [];
1462
1462
  typeof e == "string" && v.push(e), r && (v.push("icon"), typeof r == "object" ? (v.push(r.icon), r.position ? v.push(r.position) : v.push("left"), r.hover && v.push(`hover_${r.hover}`), r.animate && (v.push("animate"), typeof r.animate == "string" && v.push(r.animate))) : (v.push(r), !r.includes("right") && !r.includes("left") && v.push("left"))), n.muted && v.push("muted"), n.fullWidth && v.push("full-width");
@@ -1882,8 +1882,8 @@ const He = ({
1882
1882
  let s = n && !!Object.keys(n).length;
1883
1883
  const i = typeof n == "object" && "breakpoints" in n, o = kt(i);
1884
1884
  if (i && typeof n == "object" && typeof o == "number") {
1885
- const m = Object.assign({}, n.breakpoints), f = ga(Object.keys(m));
1886
- s = va(o, f, m);
1885
+ const m = Object.assign({}, n.breakpoints), f = va(Object.keys(m));
1886
+ s = ba(o, f, m);
1887
1887
  }
1888
1888
  const {
1889
1889
  breakpoints: c,
@@ -1910,9 +1910,9 @@ const He = ({
1910
1910
  }
1911
1911
  );
1912
1912
  };
1913
- const Zn = ({ children: t, ...e }) => /* @__PURE__ */ a.jsx("p", { ...e, children: t }), ya = { q: Zn, blockquote: Zn };
1913
+ const Zn = ({ children: t, ...e }) => /* @__PURE__ */ a.jsx("p", { ...e, children: t }), _a = { q: Zn, blockquote: Zn };
1914
1914
  for (let t = 1; t <= 6; t++)
1915
- ya[`h${t}`] = { component: Zn, props: { className: "title" } };
1915
+ _a[`h${t}`] = { component: Zn, props: { className: "title" } };
1916
1916
  const fi = ({
1917
1917
  type: t = "default",
1918
1918
  className: e = "",
@@ -1926,7 +1926,7 @@ const fi = ({
1926
1926
  options: {
1927
1927
  wrapper: V.Fragment,
1928
1928
  forceBlock: !0,
1929
- overrides: ya
1929
+ overrides: _a
1930
1930
  },
1931
1931
  children: r
1932
1932
  }
@@ -2266,7 +2266,7 @@ const ji = ({
2266
2266
  })
2267
2267
  }
2268
2268
  );
2269
- }, _a = Oe(ji);
2269
+ }, xa = Oe(ji);
2270
2270
  const bn = "loadingBlock_", ki = ({ progress: t = 0, steps: e = !1, className: n = "" }) => {
2271
2271
  const r = Z();
2272
2272
  e || (e = {
@@ -2291,7 +2291,7 @@ const bn = "loadingBlock_", ki = ({ progress: t = 0, steps: e = !1, className: n
2291
2291
  style: o,
2292
2292
  children: [
2293
2293
  s && /* @__PURE__ */ a.jsx("span", { className: "step", children: e[s].text }),
2294
- /* @__PURE__ */ a.jsx(_a, { progress: t })
2294
+ /* @__PURE__ */ a.jsx(xa, { progress: t })
2295
2295
  ]
2296
2296
  }
2297
2297
  );
@@ -2353,11 +2353,11 @@ const Hn = {
2353
2353
  "course-navigation": ["button", "button"],
2354
2354
  "course-lesson-page": ["breadcrumb", "course-navigation", "text-page"],
2355
2355
  "course-lesson-quiz": ["text-page", "quiz-box"]
2356
- }, xa = (t, e) => t in Hn ? /* @__PURE__ */ a.jsx("div", { className: t, children: Hn[t].map((n, r) => xa(n, r)) }, e) : /* @__PURE__ */ a.jsx(Ce, { className: t }, e), wa = ({ layout: t = "overview-page", ...e }) => /* @__PURE__ */ a.jsx("div", { className: E("loading-state", t), ...e, children: Hn[t].map((n, r) => xa(n, r)) }), ja = (t) => {
2356
+ }, wa = (t, e) => t in Hn ? /* @__PURE__ */ a.jsx("div", { className: t, children: Hn[t].map((n, r) => wa(n, r)) }, e) : /* @__PURE__ */ a.jsx(Ce, { className: t }, e), ja = ({ layout: t = "overview-page", ...e }) => /* @__PURE__ */ a.jsx("div", { className: E("loading-state", t), ...e, children: Hn[t].map((n, r) => wa(n, r)) }), ka = (t) => {
2357
2357
  const e = t && t.toUpperCase().trim().split(" ");
2358
2358
  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) : "";
2359
2359
  }, Nt = ["#5AB6A3", "#A2D7AF", "#806056", "#3962B3"], Ti = (t) => {
2360
- const e = Math.ceil(26 / Nt.length), n = ja(t).toLowerCase();
2360
+ const e = Math.ceil(26 / Nt.length), n = ka(t).toLowerCase();
2361
2361
  if (n === "")
2362
2362
  return Nt[0];
2363
2363
  const r = n.charCodeAt(0) - 96;
@@ -2383,7 +2383,7 @@ const Rr = 256, Ve = ({
2383
2383
  if (!f)
2384
2384
  return;
2385
2385
  const p = s, v = i;
2386
- typeof window < "u" && window.devicePixelRatio && (m.width = p * window.devicePixelRatio, m.height = v * window.devicePixelRatio, f.scale(window.devicePixelRatio, window.devicePixelRatio)), f.fillStyle = Ti(n), f.fillRect(0, 0, p, v), f.font = `${p / 3}px Arial`, f.textAlign = "center", f.fillStyle = "white", f.fillText(ja(n), p / 2, v / 1.6);
2386
+ typeof window < "u" && window.devicePixelRatio && (m.width = p * window.devicePixelRatio, m.height = v * window.devicePixelRatio, f.scale(window.devicePixelRatio, window.devicePixelRatio)), f.fillStyle = Ti(n), f.fillRect(0, 0, p, v), f.font = `${p / 3}px Arial`, f.textAlign = "center", f.fillStyle = "white", f.fillText(ka(n), p / 2, v / 1.6);
2387
2387
  }, [n]);
2388
2388
  let d = !1;
2389
2389
  return e && e !== "" && !c && (e.includes("http") || e.includes("//")) && (d = !0), /* @__PURE__ */ a.jsx(
@@ -2405,7 +2405,7 @@ const Rr = 256, Ve = ({
2405
2405
  ) : /* @__PURE__ */ a.jsx("canvas", { ref: l })
2406
2406
  }
2407
2407
  );
2408
- }, ka = (t) => t === "apolitical" ? {
2408
+ }, Ta = (t) => t === "apolitical" ? {
2409
2409
  image: `${Le}logos/member_apolitical.svg`
2410
2410
  } : t === "community" || typeof t == "object" && !t.name ? {
2411
2411
  image: `${Le}logos/member_community.svg`
@@ -2438,14 +2438,14 @@ const an = ({
2438
2438
  gtmType: i = "member-click",
2439
2439
  className: o = ""
2440
2440
  }) => {
2441
- const c = Z(), { size: u = "medium" } = r, l = ka(e);
2441
+ const c = Z(), { size: u = "medium" } = r, l = Ta(e);
2442
2442
  l.name || (l.name = c.formatMessage({
2443
2443
  id: `member_${typeof e == "string" ? e : "community"}`
2444
2444
  }));
2445
2445
  const { name: d, image: m } = l;
2446
2446
  let { url: f } = l;
2447
2447
  e.link !== void 0 && (e.link === !1 ? f = void 0 : f = e.link);
2448
- const p = Ei(l), v = n && n.createdAt ? zn(n.createdAt) : !1, h = n && n.createdAt ? ba(n.createdAt) : "";
2448
+ const p = Ei(l), v = n && n.createdAt ? zn(n.createdAt) : !1, h = n && n.createdAt ? ya(n.createdAt) : "";
2449
2449
  return V.createElement(t, {
2450
2450
  className: E("member text-medium", u, o),
2451
2451
  children: /* @__PURE__ */ a.jsxs(
@@ -2478,7 +2478,7 @@ const an = ({
2478
2478
  const Fr = {
2479
2479
  small: 24,
2480
2480
  medium: 48
2481
- }, Ta = ({
2481
+ }, Ea = ({
2482
2482
  element: t = "div",
2483
2483
  contributors: { total: e, data: n } = { total: void 0, data: [] },
2484
2484
  styling: { showText: r, size: s, showGap: i, showPlaceholders: o } = {
@@ -2500,7 +2500,7 @@ const Fr = {
2500
2500
  /* @__PURE__ */ a.jsx("ul", { children: n.map((f, p) => {
2501
2501
  let v, h = "";
2502
2502
  if (p < c) {
2503
- const { name: b = "", image: _ = "" } = ka(f);
2503
+ const { name: b = "", image: _ = "" } = Ta(f);
2504
2504
  if (o)
2505
2505
  return /* @__PURE__ */ a.jsx(Ce, { element: "li", className: "contributor" }, p);
2506
2506
  v = /* @__PURE__ */ a.jsx(
@@ -2825,7 +2825,7 @@ const Qe = {
2825
2825
  )) })
2826
2826
  ] });
2827
2827
  };
2828
- const Ea = ({
2828
+ const Sa = ({
2829
2829
  className: t = "",
2830
2830
  disabled: e,
2831
2831
  element: n = "p",
@@ -3074,7 +3074,7 @@ const Mi = ({
3074
3074
  e.onChange(x);
3075
3075
  };
3076
3076
  return /* @__PURE__ */ a.jsx(
3077
- Ea,
3077
+ Sa,
3078
3078
  {
3079
3079
  element: "li",
3080
3080
  id: S,
@@ -3134,7 +3134,7 @@ const Je = {
3134
3134
  text: { component: gt },
3135
3135
  email: { component: gt },
3136
3136
  textarea: { component: gt, props: { element: "textarea", rows: 4, cols: 10 } },
3137
- checkbox: { component: Ea },
3137
+ checkbox: { component: Sa },
3138
3138
  checkboxes: { component: Mi, props: { multiSelect: !0 } },
3139
3139
  select: { component: Pi },
3140
3140
  password: { component: Ri },
@@ -3539,10 +3539,10 @@ const sn = ({
3539
3539
  x && j && /* @__PURE__ */ a.jsx(Zt, { className: "success", children: typeof x == "string" ? x : A.formatMessage({ id: "form_success" }) })
3540
3540
  ] });
3541
3541
  };
3542
- const Pt = "passwordRules_", Sa = "isMoreThanEightCharacters", Ca = "includesNumberAndSymbol", Na = "includesLowerAndUppercase", Ai = {
3543
- [Sa]: "8Characters",
3544
- [Ca]: "numberSymbol",
3545
- [Na]: "lowercaseUppercase"
3542
+ const Pt = "passwordRules_", Ca = "isMoreThanEightCharacters", Na = "includesNumberAndSymbol", $a = "includesLowerAndUppercase", Ai = {
3543
+ [Ca]: "8Characters",
3544
+ [Na]: "numberSymbol",
3545
+ [$a]: "lowercaseUppercase"
3546
3546
  }, Di = ({
3547
3547
  matchingRules: t = {
3548
3548
  isMoreThanEightCharacters: !1,
@@ -3554,7 +3554,7 @@ const Pt = "passwordRules_", Sa = "isMoreThanEightCharacters", Ca = "includesNum
3554
3554
  const n = Z();
3555
3555
  return /* @__PURE__ */ a.jsxs("aside", { className: E("password-rules", e), children: [
3556
3556
  /* @__PURE__ */ a.jsx("small", { children: n.formatMessage({ id: `${Pt}intro` }) }),
3557
- /* @__PURE__ */ a.jsx("ul", { children: [Sa, Ca, Na].map(
3557
+ /* @__PURE__ */ a.jsx("ul", { children: [Ca, Na, $a].map(
3558
3558
  (r) => /* @__PURE__ */ a.jsxs(
3559
3559
  "li",
3560
3560
  {
@@ -3877,7 +3877,7 @@ const Bi = ({
3877
3877
  /* @__PURE__ */ a.jsx("h2", { className: "title", style: { color: r }, children: t }),
3878
3878
  /* @__PURE__ */ a.jsx("label", { htmlFor: "email-input", className: "label", style: { color: s }, children: e }),
3879
3879
  /* @__PURE__ */ a.jsx(
3880
- Rs,
3880
+ Fs,
3881
3881
  {
3882
3882
  id: "email-input",
3883
3883
  inputClassName: "email-input input",
@@ -4338,7 +4338,7 @@ const Hi = {
4338
4338
  url: m,
4339
4339
  logInButton: f,
4340
4340
  successMessage: p
4341
- }, [h, b] = Qn(ha, Hi), {
4341
+ }, [h, b] = Qn(ga, Hi), {
4342
4342
  validFields: _,
4343
4343
  emailDetails: w,
4344
4344
  shouldManuallyApprove: S,
@@ -4621,7 +4621,7 @@ function Yi() {
4621
4621
  }()), de;
4622
4622
  }
4623
4623
  var Ir;
4624
- function $a() {
4624
+ function Pa() {
4625
4625
  return Ir || (Ir = 1, process.env.NODE_ENV === "production" ? Mt.exports = Vi() : Mt.exports = Yi()), Mt.exports;
4626
4626
  }
4627
4627
  /*
@@ -4685,7 +4685,7 @@ function nr() {
4685
4685
  return wn = t, wn;
4686
4686
  }
4687
4687
  var jn, qr;
4688
- function Pa() {
4688
+ function Ma() {
4689
4689
  return qr || (qr = 1, jn = Function.call.bind(Object.prototype.hasOwnProperty)), jn;
4690
4690
  }
4691
4691
  var kn, Ur;
@@ -4696,7 +4696,7 @@ function Gi() {
4696
4696
  var t = function() {
4697
4697
  };
4698
4698
  if (process.env.NODE_ENV !== "production") {
4699
- var e = nr(), n = {}, r = Pa();
4699
+ var e = nr(), n = {}, r = Ma();
4700
4700
  t = function(i) {
4701
4701
  var o = "Warning: " + i;
4702
4702
  typeof console < "u" && console.error(o);
@@ -4743,7 +4743,7 @@ function Qi() {
4743
4743
  if (Wr)
4744
4744
  return Tn;
4745
4745
  Wr = 1;
4746
- var t = $a(), e = Ki(), n = nr(), r = Pa(), s = Gi(), i = function() {
4746
+ var t = Pa(), e = Ki(), n = nr(), r = Ma(), s = Gi(), i = function() {
4747
4747
  };
4748
4748
  process.env.NODE_ENV !== "production" && (i = function(c) {
4749
4749
  var u = "Warning: " + c;
@@ -5110,7 +5110,7 @@ function Ji() {
5110
5110
  }, En;
5111
5111
  }
5112
5112
  if (process.env.NODE_ENV !== "production") {
5113
- var Xi = $a(), eo = !0;
5113
+ var Xi = Pa(), eo = !0;
5114
5114
  Vn.exports = Qi()(Xi.isElement, eo);
5115
5115
  } else
5116
5116
  Vn.exports = Ji()();
@@ -5119,8 +5119,8 @@ var to = Vn.exports;
5119
5119
  * tabbable 6.2.0
5120
5120
  * @license MIT, https://github.com/focus-trap/tabbable/blob/master/LICENSE
5121
5121
  */
5122
- var Ma = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])", "a[href]:not([inert])", "button:not([inert])", "[tabindex]:not(slot):not([inert])", "audio[controls]:not([inert])", "video[controls]:not([inert])", '[contenteditable]:not([contenteditable="false"]):not([inert])', "details>summary:first-of-type:not([inert])", "details:not([inert])"], Ht = /* @__PURE__ */ Ma.join(","), Ra = typeof Element > "u", Ze = Ra ? function() {
5123
- } : Element.prototype.matches || Element.prototype.msMatchesSelector || Element.prototype.webkitMatchesSelector, Vt = !Ra && Element.prototype.getRootNode ? function(t) {
5122
+ var Ra = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])", "a[href]:not([inert])", "button:not([inert])", "[tabindex]:not(slot):not([inert])", "audio[controls]:not([inert])", "video[controls]:not([inert])", '[contenteditable]:not([contenteditable="false"]):not([inert])', "details>summary:first-of-type:not([inert])", "details:not([inert])"], Ht = /* @__PURE__ */ Ra.join(","), Fa = typeof Element > "u", Ze = Fa ? function() {
5123
+ } : Element.prototype.matches || Element.prototype.msMatchesSelector || Element.prototype.webkitMatchesSelector, Vt = !Fa && Element.prototype.getRootNode ? function(t) {
5124
5124
  var e;
5125
5125
  return t == null || (e = t.getRootNode) === null || e === void 0 ? void 0 : e.call(t);
5126
5126
  } : function(t) {
@@ -5133,12 +5133,12 @@ var Ma = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])",
5133
5133
  }, no = function(e) {
5134
5134
  var n, r = e == null || (n = e.getAttribute) === null || n === void 0 ? void 0 : n.call(e, "contenteditable");
5135
5135
  return r === "" || r === "true";
5136
- }, Fa = function(e, n, r) {
5136
+ }, Oa = function(e, n, r) {
5137
5137
  if (Yt(e))
5138
5138
  return [];
5139
5139
  var s = Array.prototype.slice.apply(e.querySelectorAll(Ht));
5140
5140
  return n && Ze.call(e, Ht) && s.unshift(e), s = s.filter(r), s;
5141
- }, Oa = function t(e, n, r) {
5141
+ }, Aa = function t(e, n, r) {
5142
5142
  for (var s = [], i = Array.from(e); i.length; ) {
5143
5143
  var o = i.shift();
5144
5144
  if (!Yt(o, !1))
@@ -5164,21 +5164,21 @@ var Ma = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])",
5164
5164
  }
5165
5165
  }
5166
5166
  return s;
5167
- }, Aa = function(e) {
5167
+ }, Da = function(e) {
5168
5168
  return !isNaN(parseInt(e.getAttribute("tabindex"), 10));
5169
5169
  }, De = function(e) {
5170
5170
  if (!e)
5171
5171
  throw new Error("No node provided");
5172
- return e.tabIndex < 0 && (/^(AUDIO|VIDEO|DETAILS)$/.test(e.tagName) || no(e)) && !Aa(e) ? 0 : e.tabIndex;
5172
+ return e.tabIndex < 0 && (/^(AUDIO|VIDEO|DETAILS)$/.test(e.tagName) || no(e)) && !Da(e) ? 0 : e.tabIndex;
5173
5173
  }, ro = function(e, n) {
5174
5174
  var r = De(e);
5175
- return r < 0 && n && !Aa(e) ? 0 : r;
5175
+ return r < 0 && n && !Da(e) ? 0 : r;
5176
5176
  }, ao = function(e, n) {
5177
5177
  return e.tabIndex === n.tabIndex ? e.documentOrder - n.documentOrder : e.tabIndex - n.tabIndex;
5178
- }, Da = function(e) {
5178
+ }, Ia = function(e) {
5179
5179
  return e.tagName === "INPUT";
5180
5180
  }, so = function(e) {
5181
- return Da(e) && e.type === "hidden";
5181
+ return Ia(e) && e.type === "hidden";
5182
5182
  }, io = function(e) {
5183
5183
  var n = e.tagName === "DETAILS" && Array.prototype.slice.apply(e.children).some(function(r) {
5184
5184
  return r.tagName === "SUMMARY";
@@ -5205,7 +5205,7 @@ var Ma = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])",
5205
5205
  var i = oo(s, e.form);
5206
5206
  return !i || i === e;
5207
5207
  }, lo = function(e) {
5208
- return Da(e) && e.type === "radio";
5208
+ return Ia(e) && e.type === "radio";
5209
5209
  }, uo = function(e) {
5210
5210
  return lo(e) && !co(e);
5211
5211
  }, fo = function(e) {
@@ -5284,39 +5284,39 @@ var Ma = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])",
5284
5284
  }), r.sort(ao).reduce(function(s, i) {
5285
5285
  return i.isScope ? s.push.apply(s, i.content) : s.push(i.content), s;
5286
5286
  }, []).concat(n);
5287
- }, Ia = function(e, n) {
5287
+ }, La = function(e, n) {
5288
5288
  n = n || {};
5289
5289
  var r;
5290
- return n.getShadowRoot ? r = Oa([e], n.includeContainer, {
5290
+ return n.getShadowRoot ? r = Aa([e], n.includeContainer, {
5291
5291
  filter: Yn.bind(null, n),
5292
5292
  flatten: !1,
5293
5293
  getShadowRoot: n.getShadowRoot,
5294
5294
  shadowRootFilter: ho
5295
- }) : r = Fa(e, n.includeContainer, Yn.bind(null, n)), go(r);
5296
- }, La = function(e, n) {
5295
+ }) : r = Oa(e, n.includeContainer, Yn.bind(null, n)), go(r);
5296
+ }, Ba = function(e, n) {
5297
5297
  n = n || {};
5298
5298
  var r;
5299
- return n.getShadowRoot ? r = Oa([e], n.includeContainer, {
5299
+ return n.getShadowRoot ? r = Aa([e], n.includeContainer, {
5300
5300
  filter: Kt.bind(null, n),
5301
5301
  flatten: !0,
5302
5302
  getShadowRoot: n.getShadowRoot
5303
- }) : r = Fa(e, n.includeContainer, Kt.bind(null, n)), r;
5303
+ }) : r = Oa(e, n.includeContainer, Kt.bind(null, n)), r;
5304
5304
  }, Ue = function(e, n) {
5305
5305
  if (n = n || {}, !e)
5306
5306
  throw new Error("No node provided");
5307
5307
  return Ze.call(e, Ht) === !1 ? !1 : Yn(n, e);
5308
- }, vo = /* @__PURE__ */ Ma.concat("iframe").join(","), Ut = function(e, n) {
5308
+ }, vo = /* @__PURE__ */ Ra.concat("iframe").join(","), Ut = function(e, n) {
5309
5309
  if (n = n || {}, !e)
5310
5310
  throw new Error("No node provided");
5311
5311
  return Ze.call(e, vo) === !1 ? !1 : Kt(n, e);
5312
5312
  };
5313
5313
  const bo = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
5314
5314
  __proto__: null,
5315
- focusable: La,
5315
+ focusable: Ba,
5316
5316
  getTabIndex: De,
5317
5317
  isFocusable: Ut,
5318
5318
  isTabbable: Ue,
5319
- tabbable: Ia
5319
+ tabbable: La
5320
5320
  }, Symbol.toStringTag, { value: "Module" }));
5321
5321
  /*!
5322
5322
  * focus-trap 7.5.4
@@ -5492,7 +5492,7 @@ var Yr = {
5492
5492
  return j;
5493
5493
  }, f = function() {
5494
5494
  if (o.containerGroups = o.containers.map(function(j) {
5495
- var k = Ia(j, i.tabbableOptions), N = La(j, i.tabbableOptions), F = k.length > 0 ? k[0] : void 0, U = k.length > 0 ? k[k.length - 1] : void 0, H = N.find(function(T) {
5495
+ var k = La(j, i.tabbableOptions), N = Ba(j, i.tabbableOptions), F = k.length > 0 ? k[0] : void 0, U = k.length > 0 ? k[k.length - 1] : void 0, H = N.find(function(T) {
5496
5496
  return Ue(T);
5497
5497
  }), z = N.slice().reverse().find(function(T) {
5498
5498
  return Ue(T);
@@ -5770,7 +5770,7 @@ function Po(t, e) {
5770
5770
  function Qr(t, e) {
5771
5771
  for (var n = 0; n < e.length; n++) {
5772
5772
  var r = e[n];
5773
- r.enumerable = r.enumerable || !1, r.configurable = !0, "value" in r && (r.writable = !0), Object.defineProperty(t, Ba(r.key), r);
5773
+ r.enumerable = r.enumerable || !1, r.configurable = !0, "value" in r && (r.writable = !0), Object.defineProperty(t, qa(r.key), r);
5774
5774
  }
5775
5775
  }
5776
5776
  function Mo(t, e, n) {
@@ -5828,9 +5828,9 @@ function Gt(t) {
5828
5828
  }, Gt(t);
5829
5829
  }
5830
5830
  function Do(t, e, n) {
5831
- return e = Ba(e), e in t ? Object.defineProperty(t, e, { value: n, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = n, t;
5831
+ return e = qa(e), e in t ? Object.defineProperty(t, e, { value: n, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = n, t;
5832
5832
  }
5833
- function Ba(t) {
5833
+ function qa(t) {
5834
5834
  var e = Io(t, "string");
5835
5835
  return tt(e) === "symbol" ? e : String(e);
5836
5836
  }
@@ -6090,7 +6090,7 @@ rr.defaultProps = {
6090
6090
  };
6091
6091
  var Wo = rr;
6092
6092
  const zo = /* @__PURE__ */ da(Wo), Zo = ({ showDevTools: t = !0, children: e }) => {
6093
- const n = new Cs({
6093
+ const n = new Ns({
6094
6094
  // default options we would like on all queries can be overridden individually
6095
6095
  defaultOptions: {
6096
6096
  queries: {
@@ -6101,9 +6101,9 @@ const zo = /* @__PURE__ */ da(Wo), Zo = ({ showDevTools: t = !0, children: e })
6101
6101
  }
6102
6102
  }
6103
6103
  });
6104
- return /* @__PURE__ */ a.jsxs(Ns, { client: n, children: [
6104
+ return /* @__PURE__ */ a.jsxs($s, { client: n, children: [
6105
6105
  e,
6106
- t && /* @__PURE__ */ a.jsx(Ps, { initialIsOpen: !1 })
6106
+ t && /* @__PURE__ */ a.jsx(Ms, { initialIsOpen: !1 })
6107
6107
  ] });
6108
6108
  };
6109
6109
  var Ho = jt({ client: Bt });
@@ -6137,8 +6137,8 @@ const Yo = ({ children: t, user: e }) => e.isLoading ? null : process.env.REACT_
6137
6137
  ...ri[r],
6138
6138
  ...n || {}
6139
6139
  };
6140
- return /* @__PURE__ */ a.jsx(Es, { locale: r, messages: s, children: t });
6141
- }, qa = jt({}), Sn = {
6140
+ return /* @__PURE__ */ a.jsx(Ss, { locale: r, messages: s, children: t });
6141
+ }, Ua = jt({}), Sn = {
6142
6142
  en: "English",
6143
6143
  es: "Español",
6144
6144
  fr: "Français",
@@ -6147,12 +6147,12 @@ const Yo = ({ children: t, user: e }) => e.isLoading ? null : process.env.REACT_
6147
6147
  function ar() {
6148
6148
  return Se(Ae);
6149
6149
  }
6150
- const Go = ({ children: t, user: e }) => /* @__PURE__ */ a.jsx(Ae.Provider, { value: e, children: t }), Ua = jt({
6150
+ const Go = ({ children: t, user: e }) => /* @__PURE__ */ a.jsx(Ae.Provider, { value: e, children: t }), Wa = jt({
6151
6151
  registerOverlay: () => {
6152
6152
  },
6153
6153
  unregisterOverlay: () => {
6154
6154
  }
6155
- }), Qo = () => Se(Ua), Jo = ({ children: t }) => {
6155
+ }), Qo = () => Se(Wa), Jo = ({ children: t }) => {
6156
6156
  const [e, n] = K([]);
6157
6157
  ae(() => {
6158
6158
  e.length > 0 ? document.body.classList.add("has-overlay") : document.body.classList.remove("has-overlay");
@@ -6162,7 +6162,7 @@ const Go = ({ children: t, user: e }) => /* @__PURE__ */ a.jsx(Ae.Provider, { va
6162
6162
  }, []), s = Wt((i) => {
6163
6163
  n((o) => o.filter((c) => c !== i));
6164
6164
  }, []);
6165
- return /* @__PURE__ */ a.jsx(Ua.Provider, { value: { registerOverlay: r, unregisterOverlay: s }, children: t });
6165
+ return /* @__PURE__ */ a.jsx(Wa.Provider, { value: { registerOverlay: r, unregisterOverlay: s }, children: t });
6166
6166
  }, Yl = ({ bootstrap: t, children: e, intl: n, showDevTools: r }) => {
6167
6167
  const [s, i] = K({ isLoading: !0 }), o = (n == null ? void 0 : n.locale) || localStorage.getItem("language") || "en", [c, u] = K(o), l = (d) => {
6168
6168
  localStorage.setItem("language", d), u(d);
@@ -6173,16 +6173,16 @@ const Go = ({ children: t, user: e }) => /* @__PURE__ */ a.jsx(Ae.Provider, { va
6173
6173
  }).catch((d) => {
6174
6174
  d.message === Ks && window.location.pathname !== "/user-onboarding/logout" && (window.location.href = "/user-onboarding/logout"), i({ isLoading: !1 });
6175
6175
  });
6176
- }, []), /* @__PURE__ */ a.jsx(qa.Provider, { value: { language: c, updateLanguage: l }, children: /* @__PURE__ */ a.jsx(
6176
+ }, []), /* @__PURE__ */ a.jsx(Ua.Provider, { value: { language: c, updateLanguage: l }, children: /* @__PURE__ */ a.jsx(
6177
6177
  Ko,
6178
6178
  {
6179
6179
  locale: c,
6180
6180
  messages: n == null ? void 0 : n.messages,
6181
- children: /* @__PURE__ */ a.jsx(Ms, { children: /* @__PURE__ */ a.jsx(Go, { user: s, children: /* @__PURE__ */ a.jsx(Jo, { children: /* @__PURE__ */ a.jsx(Zo, { showDevTools: r, children: /* @__PURE__ */ a.jsx(Yo, { user: s, children: e }) }) }) }) })
6181
+ children: /* @__PURE__ */ a.jsx(Rs, { children: /* @__PURE__ */ a.jsx(Go, { user: s, children: /* @__PURE__ */ a.jsx(Jo, { children: /* @__PURE__ */ a.jsx(Zo, { showDevTools: r, children: /* @__PURE__ */ a.jsx(Yo, { user: s, children: e }) }) }) }) })
6182
6182
  }
6183
6183
  ) });
6184
6184
  };
6185
- const Wa = ({ element: t = "section", children: e, className: n, ...r }) => V.createElement(t, {
6185
+ const za = ({ element: t = "section", children: e, className: n, ...r }) => V.createElement(t, {
6186
6186
  className: E("modal", n),
6187
6187
  children: typeof e == "string" ? /* @__PURE__ */ a.jsx("p", { children: e }) : e,
6188
6188
  ...r
@@ -6216,7 +6216,7 @@ const on = ({
6216
6216
  }), [e]);
6217
6217
  const S = r ? { "--max-width": `${r / 16}rem` } : {};
6218
6218
  return /* @__PURE__ */ a.jsx("div", { className: E("overlay", { open: h }), role: "dialog", children: /* @__PURE__ */ a.jsx(
6219
- Wa,
6219
+ za,
6220
6220
  {
6221
6221
  id: t,
6222
6222
  className: E("overlay-modal", d, {
@@ -6516,14 +6516,14 @@ const eu = ({ text: t, buttons: e, className: n = "" }) => {
6516
6516
  /* @__PURE__ */ a.jsx(Tt, { buttons: r })
6517
6517
  ] }) });
6518
6518
  };
6519
- function za({ href: t, setShowModal: e }) {
6519
+ function Za({ href: t, setShowModal: e }) {
6520
6520
  typeof t != "string" && e(!0);
6521
6521
  }
6522
6522
  const nc = ({ icon: t, description: e, ctaMessage: n, href: r, showEditButton: s, setShowModal: i }) => {
6523
6523
  const { formatMessage: o } = Z();
6524
6524
  return /* @__PURE__ */ a.jsxs("div", { className: E("edit-section-placeholder", { "has-icon": !!t }), style: Gs(t), children: [
6525
6525
  /* @__PURE__ */ a.jsx("p", { children: e || o({ id: "edit_section_placeholder_description" }) }),
6526
- s && /* @__PURE__ */ a.jsx(oe, { href: r, variant: "secondary", size: "small", onClick: () => za({ href: r, setShowModal: i }), children: n || o({ id: "edit_section_placeholder_cta" }) })
6526
+ s && /* @__PURE__ */ a.jsx(oe, { href: r, variant: "secondary", size: "small", onClick: () => Za({ href: r, setShowModal: i }), children: n || o({ id: "edit_section_placeholder_cta" }) })
6527
6527
  ] });
6528
6528
  }, tu = ({
6529
6529
  children: t,
@@ -6563,7 +6563,7 @@ const nc = ({ icon: t, description: e, ctaMessage: n, href: r, showEditButton: s
6563
6563
  ),
6564
6564
  /* @__PURE__ */ a.jsxs("div", { className: "edit-section-header", children: [
6565
6565
  /* @__PURE__ */ a.jsx("h2", { className: "edit-section-header-title", children: s }),
6566
- d && /* @__PURE__ */ a.jsx(oe, { href: r, variant: "tertiary", size: "small", icon: "pencil", onClick: () => za({ href: r, setShowModal: l }), children: "Edit" })
6566
+ d && /* @__PURE__ */ a.jsx(oe, { href: r, variant: "tertiary", size: "small", icon: "pencil", onClick: () => Za({ href: r, setShowModal: l }), children: "Edit" })
6567
6567
  ] }),
6568
6568
  t || /* @__PURE__ */ a.jsx(nc, { ...o, href: r, setShowModal: l, showEditButton: d }),
6569
6569
  c && /* @__PURE__ */ a.jsx(ze, {})
@@ -6847,7 +6847,7 @@ const iu = ({
6847
6847
  ] });
6848
6848
  }
6849
6849
  if (d && !i || o)
6850
- return /* @__PURE__ */ a.jsx("p", { className: "details", children: o ? n.formatMessage({ id: "card_bootcamp" }) : ba(d) });
6850
+ return /* @__PURE__ */ a.jsx("p", { className: "details", children: o ? n.formatMessage({ id: "card_bootcamp" }) : ya(d) });
6851
6851
  if (c)
6852
6852
  return /* @__PURE__ */ a.jsx(
6853
6853
  ht,
@@ -7016,7 +7016,7 @@ const cc = {
7016
7016
  text: 3e3,
7017
7017
  secondaryText: 1e3,
7018
7018
  partner: 25
7019
- }, Za = ({
7019
+ }, Ha = ({
7020
7020
  id: t = "",
7021
7021
  card: e,
7022
7022
  buildCardData: n,
@@ -7111,7 +7111,7 @@ const cc = {
7111
7111
  }
7112
7112
  ) : null,
7113
7113
  f.contributors && /* @__PURE__ */ a.jsx(
7114
- Ta,
7114
+ Ea,
7115
7115
  {
7116
7116
  contributors: { data: f.contributors },
7117
7117
  styling: {
@@ -7163,7 +7163,7 @@ const cc = {
7163
7163
  const lc = ({ cards: t, cardTypes: e, className: n = "", ...r }) => /* @__PURE__ */ a.jsx("ul", { className: E("card-block", n), children: t.map((s, i) => {
7164
7164
  const o = s.slug ? `${s.slug}-${e[i]}` : `${e[i]}-${i}`;
7165
7165
  return /* @__PURE__ */ a.jsx(
7166
- Za,
7166
+ Ha,
7167
7167
  {
7168
7168
  id: o,
7169
7169
  card: { ...s, contentType: e[i] },
@@ -7262,7 +7262,7 @@ const fc = ({
7262
7262
  "--page": h
7263
7263
  };
7264
7264
  if (f)
7265
- return /* @__PURE__ */ a.jsx(wa, { layout: `carousel${s ? "-with-title" : ""}` });
7265
+ return /* @__PURE__ */ a.jsx(ja, { layout: `carousel${s ? "-with-title" : ""}` });
7266
7266
  const B = (C, $) => {
7267
7267
  var k;
7268
7268
  let j = null;
@@ -7287,7 +7287,7 @@ const fc = ({
7287
7287
  children: e.map((C, $) => {
7288
7288
  let j = B(C, $);
7289
7289
  return j && uc($, m, h, b) ? /* @__PURE__ */ a.jsx(
7290
- Za,
7290
+ Ha,
7291
7291
  {
7292
7292
  id: j,
7293
7293
  card: { ...C, contentType: n[$] },
@@ -7367,7 +7367,7 @@ const fc = ({
7367
7367
  const d = i ? window.btoa(i) : `carousel-${l}`, m = l === t.length - 1;
7368
7368
  return e ? /* @__PURE__ */ a.jsxs(yt, { children: [
7369
7369
  /* @__PURE__ */ a.jsx(
7370
- wa,
7370
+ ja,
7371
7371
  {
7372
7372
  layout: `carousel${i ? "-with-title" : ""}`,
7373
7373
  "data-testid": "carousel-placeholder"
@@ -7388,7 +7388,7 @@ const fc = ({
7388
7388
  ] }, `carousel-${d}`);
7389
7389
  }
7390
7390
  );
7391
- const Nn = "joinCommunityButton", Ha = ({
7391
+ const Nn = "joinCommunityButton", Va = ({
7392
7392
  isMember: t = !1,
7393
7393
  isShort: e = !1,
7394
7394
  functions: { join: n, leave: r } = { join: () => {
@@ -7439,7 +7439,7 @@ const $n = "communityDetails_", cu = ({
7439
7439
  !m && /* @__PURE__ */ a.jsx("p", { className: "text-small", children: /* @__PURE__ */ a.jsx("a", { href: `/communities/${n}/members`, children: c.formatMessage({ id: `${$n}viewAll` }) }) })
7440
7440
  ] }),
7441
7441
  /* @__PURE__ */ a.jsx(
7442
- Ta,
7442
+ Ea,
7443
7443
  {
7444
7444
  contributors: {
7445
7445
  total: r,
@@ -7454,7 +7454,7 @@ const $n = "communityDetails_", cu = ({
7454
7454
  }
7455
7455
  )
7456
7456
  ] }),
7457
- /* @__PURE__ */ a.jsx(Ha, { isMember: e, functions: { ...o } }),
7457
+ /* @__PURE__ */ a.jsx(Va, { isMember: e, functions: { ...o } }),
7458
7458
  e && /* @__PURE__ */ a.jsx(
7459
7459
  oe,
7460
7460
  {
@@ -7554,7 +7554,7 @@ const At = "languageSwitcher_", du = ({
7554
7554
  className: u = ""
7555
7555
  }) => {
7556
7556
  const l = Z(), { updateLanguage: d = () => {
7557
- } } = Se(qa), [m, f] = K(t);
7557
+ } } = Se(Ua), [m, f] = K(t);
7558
7558
  if (ae(() => {
7559
7559
  t !== m && f(t);
7560
7560
  }, [t]), !r || !Object.values(r).some(
@@ -7612,7 +7612,7 @@ const At = "languageSwitcher_", du = ({
7612
7612
  })
7613
7613
  ] });
7614
7614
  };
7615
- const Pn = Ss({ locale: "en", messages: rt }), cn = ({
7615
+ const Pn = Cs({ locale: "en", messages: rt }), cn = ({
7616
7616
  hasNextPage: t = !0,
7617
7617
  loadNextPage: e = () => {
7618
7618
  },
@@ -7654,7 +7654,7 @@ const Pn = Ss({ locale: "en", messages: rt }), cn = ({
7654
7654
  }
7655
7655
  ) : c.endOfFeed && (!d || d != null && d.includes("Cannot read items")) ? /* @__PURE__ */ a.jsx("p", { children: c.endOfFeed }) : d && /* @__PURE__ */ a.jsx("p", { className: "error", children: c.error }) });
7656
7656
  };
7657
- const Va = ({
7657
+ const Ya = ({
7658
7658
  variant: t = "default",
7659
7659
  version: e = "default",
7660
7660
  className: n = "",
@@ -8188,10 +8188,10 @@ const Xe = "footer_", Jt = "SiteFooter", Jr = ({ group: t }) => {
8188
8188
  ] })
8189
8189
  ] }, `dl-${t}-${r}`)) })
8190
8190
  ] }, t);
8191
- }, Ya = () => /* @__PURE__ */ a.jsx("div", { id: "footer", children: /* @__PURE__ */ a.jsxs("div", { className: "wrapper", children: [
8191
+ }, Ka = () => /* @__PURE__ */ a.jsx("div", { id: "footer", children: /* @__PURE__ */ a.jsxs("div", { className: "wrapper", children: [
8192
8192
  /* @__PURE__ */ a.jsx(Xn, { element: "hr" }),
8193
8193
  /* @__PURE__ */ a.jsx(
8194
- Va,
8194
+ Ya,
8195
8195
  {
8196
8196
  variant: "inverted",
8197
8197
  version: "full",
@@ -8554,11 +8554,11 @@ const Xe = "footer_", Jt = "SiteFooter", Jr = ({ group: t }) => {
8554
8554
  t
8555
8555
  );
8556
8556
  };
8557
- const jc = { height: 67, height_desktop: 83 }, Ka = ({ showNavigation: t = !0 }) => {
8557
+ const jc = { height: 67, height_desktop: 83 }, Ga = ({ showNavigation: t = !0 }) => {
8558
8558
  const e = Z(), n = Se(Ae), r = kt(!0, !0), s = n && typeof n.id == "string", i = wt(
8559
8559
  () => fe.getIsDesktopVersion(s, r),
8560
8560
  [s, r]
8561
- ), [o, c] = Qn(ha, {
8561
+ ), [o, c] = Qn(ga, {
8562
8562
  headerIsVisible: !0,
8563
8563
  menus: { navigation: !1, search: !1, account: !1 },
8564
8564
  focusElements: {
@@ -8568,7 +8568,7 @@ const jc = { height: 67, height_desktop: 83 }, Ka = ({ showNavigation: t = !0 })
8568
8568
  }), { headerIsVisible: u, menus: l, focusElements: d } = o, m = pe(o);
8569
8569
  ae(() => {
8570
8570
  m.current = o;
8571
- }, [o]), zs({
8571
+ }, [o]), Zs({
8572
8572
  scrollPosition: jc[`height${i.navigation ? "_desktop" : ""}`],
8573
8573
  callbacks: {
8574
8574
  scrollUp: () => {
@@ -8629,7 +8629,7 @@ const jc = { height: 67, height_desktop: 83 }, Ka = ({ showNavigation: t = !0 })
8629
8629
  children: e.formatMessage({ id: "header_skip" })
8630
8630
  }
8631
8631
  ),
8632
- /* @__PURE__ */ a.jsx(Va, { variant: "monochrome" }),
8632
+ /* @__PURE__ */ a.jsx(Ya, { variant: "monochrome" }),
8633
8633
  t && /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
8634
8634
  !i.navigation && /* @__PURE__ */ a.jsx(
8635
8635
  "button",
@@ -8746,7 +8746,7 @@ const jc = { height: 67, height_desktop: 83 }, Ka = ({ showNavigation: t = !0 })
8746
8746
  const kc = () => {
8747
8747
  const t = Z();
8748
8748
  return /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
8749
- /* @__PURE__ */ a.jsx(Ka, {}),
8749
+ /* @__PURE__ */ a.jsx(Ga, {}),
8750
8750
  /* @__PURE__ */ a.jsx("div", { id: "content", children: /* @__PURE__ */ a.jsx(
8751
8751
  He,
8752
8752
  {
@@ -8754,7 +8754,7 @@ const kc = () => {
8754
8754
  text: t.formatMessage({ id: "pageLayout_error" })
8755
8755
  }
8756
8756
  ) }),
8757
- /* @__PURE__ */ a.jsx(Ya, {})
8757
+ /* @__PURE__ */ a.jsx(Ka, {})
8758
8758
  ] });
8759
8759
  }, Tc = ({
8760
8760
  children: t,
@@ -8770,7 +8770,7 @@ const kc = () => {
8770
8770
  variant: m = "default",
8771
8771
  circle: f = "default",
8772
8772
  modal: p = "default"
8773
- } = i, v = Us();
8773
+ } = i, v = Ws();
8774
8774
  ae(() => {
8775
8775
  window.scrollTo(0, 0);
8776
8776
  }, [v]);
@@ -8779,13 +8779,13 @@ const kc = () => {
8779
8779
  }), _ = qt(n, {
8780
8780
  locale: c
8781
8781
  }), w = {};
8782
- return d !== "default" && (w[d] = !0), m !== "default" && (w[m] = !0), f !== "default" && (w[f] = !0), /* @__PURE__ */ a.jsx(Fs, { onError: r, fallback: /* @__PURE__ */ a.jsx(kc, {}), children: /* @__PURE__ */ a.jsx(ks, { fallback: null, children: /* @__PURE__ */ a.jsxs(
8782
+ return d !== "default" && (w[d] = !0), m !== "default" && (w[m] = !0), f !== "default" && (w[f] = !0), /* @__PURE__ */ a.jsx(Os, { onError: r, fallback: /* @__PURE__ */ a.jsx(kc, {}), children: /* @__PURE__ */ a.jsx(Ts, { fallback: null, children: /* @__PURE__ */ a.jsxs(
8783
8783
  "div",
8784
8784
  {
8785
8785
  id: "wrapper",
8786
8786
  className: E(o, w, { "has-footer": l }),
8787
8787
  children: [
8788
- /* @__PURE__ */ a.jsx(Ka, { showNavigation: u }),
8788
+ /* @__PURE__ */ a.jsx(Ga, { showNavigation: u }),
8789
8789
  /* @__PURE__ */ a.jsxs("main", { id: "content-wrapper", children: [
8790
8790
  b && /* @__PURE__ */ a.jsx(
8791
8791
  "div",
@@ -8796,14 +8796,14 @@ const kc = () => {
8796
8796
  children: b
8797
8797
  }
8798
8798
  ),
8799
- V.createElement(d === "bold" ? Wa : "div", {
8799
+ V.createElement(d === "bold" ? za : "div", {
8800
8800
  id: "content",
8801
8801
  children: h,
8802
8802
  className: E({ "large-modal": p === "large" })
8803
8803
  })
8804
8804
  ] }),
8805
8805
  _ && /* @__PURE__ */ a.jsx("div", { className: "additional-content appended", children: _ }),
8806
- l && /* @__PURE__ */ a.jsx(Ya, {}),
8806
+ l && /* @__PURE__ */ a.jsx(Ka, {}),
8807
8807
  /* @__PURE__ */ a.jsx(wc, {})
8808
8808
  ]
8809
8809
  }
@@ -8945,7 +8945,7 @@ const bu = ({
8945
8945
  }
8946
8946
  ),
8947
8947
  /* @__PURE__ */ a.jsx(
8948
- _a,
8948
+ xa,
8949
8949
  {
8950
8950
  progress: l,
8951
8951
  styling: {
@@ -9292,7 +9292,7 @@ const we = "discussion_form_", ir = ({
9292
9292
  ),
9293
9293
  /* @__PURE__ */ a.jsx(be, { element: "label", showOnFocus: !1, htmlFor: `${y}-input`, children: $e(d.formatMessage, `${we}label`, t.type, "action") }),
9294
9294
  /* @__PURE__ */ a.jsx(
9295
- Os,
9295
+ As,
9296
9296
  {
9297
9297
  ref: r,
9298
9298
  id: `${y}-input`,
@@ -9340,7 +9340,7 @@ const we = "discussion_form_", ir = ({
9340
9340
  ]
9341
9341
  }
9342
9342
  );
9343
- }, Ga = ({
9343
+ }, Qa = ({
9344
9344
  form: t,
9345
9345
  membershipRequiredToPost: { isMember: e, required: n, join: r, leave: s, notMemberStateText: i }
9346
9346
  }) => {
@@ -9351,7 +9351,7 @@ const we = "discussion_form_", ir = ({
9351
9351
  text: i,
9352
9352
  button: {
9353
9353
  breakpoints: { mobile: !0, 901: !1 },
9354
- component: /* @__PURE__ */ a.jsx(Ha, { isShort: !0, functions: { join: r, leave: s } })
9354
+ component: /* @__PURE__ */ a.jsx(Va, { isShort: !0, functions: { join: r, leave: s } })
9355
9355
  }
9356
9356
  }
9357
9357
  );
@@ -9539,7 +9539,9 @@ const Me = "discussion_", Fc = 280, un = ({
9539
9539
  children: h,
9540
9540
  isTruncated: b = !1
9541
9541
  }) => {
9542
- const _ = Z(), w = Se(Ae), S = Se(or), { author: y, canLike: x, createdAt: A, id: R, likes: Q = 0, userLiked: B, comments: C = 0 } = e, $ = w && w.id && typeof y != "string" && y.id && y.id === w.id || !1, j = typeof x == "boolean" ? x : n ? !$ : !1, k = $ && (!e.createdAt || Js(e.createdAt, 10, "seconds")), N = pe(null), [F, U] = K({
9542
+ const _ = Z(), w = Se(Ae), S = Se(or);
9543
+ ha();
9544
+ const { author: y, canLike: x, createdAt: A, id: R, likes: Q = 0, userLiked: B, comments: C = 0 } = e, $ = w && w.id && typeof y != "string" && y.id && y.id === w.id || !1, j = typeof x == "boolean" ? x : n ? !$ : !1, k = $ && (!e.createdAt || Js(e.createdAt, 10, "seconds")), N = pe(null), [F, U] = K({
9543
9545
  body: e && e.body || "",
9544
9546
  isEditing: !1,
9545
9547
  didEdit: e && e.isEdited || !1
@@ -9575,7 +9577,7 @@ const Me = "discussion_", Fc = 280, un = ({
9575
9577
  const ee = b ? et(F.body, Fc) : F.body, G = async (D) => {
9576
9578
  D || (D = ""), I("");
9577
9579
  try {
9578
- if (!As(D, F.body)) {
9580
+ if (!Ds(D, F.body)) {
9579
9581
  const te = e.type === "question" ? { title: D } : { body: D };
9580
9582
  await u(ea(e.slugs), te);
9581
9583
  }
@@ -9885,7 +9887,7 @@ const Ac = ({
9885
9887
  ]
9886
9888
  }
9887
9889
  );
9888
- }, Dc = "post", Ic = "reply", Qa = "00000000-0000-0000-0000-000000000000";
9890
+ }, Dc = "post", Ic = "reply", Ja = "00000000-0000-0000-0000-000000000000";
9889
9891
  function cr({ queryClient: t, queryKey: e }) {
9890
9892
  function n(r, s, i) {
9891
9893
  t.setQueryData(e, i);
@@ -9932,7 +9934,7 @@ function Bc() {
9932
9934
  }
9933
9935
  };
9934
9936
  }
9935
- function Ja(t) {
9937
+ function Xa(t) {
9936
9938
  const { id: e = "", name: n = "", organization: r = "", jobTitle: s = "", image: i = {} } = t, { thumbnail: o = "" } = i;
9937
9939
  return {
9938
9940
  id: e,
@@ -9947,7 +9949,7 @@ function Ja(t) {
9947
9949
  function qc({ content: t }) {
9948
9950
  return {
9949
9951
  content: t,
9950
- id: Qa,
9952
+ id: Ja,
9951
9953
  time: (/* @__PURE__ */ new Date()).toISOString(),
9952
9954
  verb: Dc
9953
9955
  };
@@ -9955,7 +9957,7 @@ function qc({ content: t }) {
9955
9957
  function ta({ activity: t, user: e }) {
9956
9958
  return {
9957
9959
  ...t,
9958
- actor: Ja(e),
9960
+ actor: Xa(e),
9959
9961
  ...Lc()
9960
9962
  };
9961
9963
  }
@@ -9972,7 +9974,7 @@ function tn({ activity: t, reaction: e }) {
9972
9974
  like: (n = t.reaction_counts) != null && n.like ? t.reaction_counts.like + 1 : 1
9973
9975
  };
9974
9976
  }
9975
- function Xa({ activity: t, user: e }) {
9977
+ function es({ activity: t, user: e }) {
9976
9978
  var n, r, s;
9977
9979
  t.reaction_counts = {
9978
9980
  ...t.reaction_counts || {},
@@ -9991,13 +9993,13 @@ function Uc({ activityId: t, replyId: e, content: n }) {
9991
9993
  data: {
9992
9994
  content: n
9993
9995
  },
9994
- id: Qa,
9996
+ id: Ja,
9995
9997
  kind: Ic,
9996
9998
  parent: e || ""
9997
9999
  };
9998
10000
  }
9999
10001
  function na({ reply: t, user: e }) {
10000
- const n = Ja(e);
10002
+ const n = Xa(e);
10001
10003
  return {
10002
10004
  ...t,
10003
10005
  user_id: n.id,
@@ -10031,14 +10033,14 @@ function Wc({ reply: t, user: e }) {
10031
10033
  like: (((s = t.own_children) == null ? void 0 : s.like) || []).filter(({ user_id: i }) => i !== e.id)
10032
10034
  });
10033
10035
  }
10034
- const es = (t) => {
10036
+ const ts = (t) => {
10035
10037
  const e = new CustomEvent("discussionPostAdded", {
10036
10038
  detail: t
10037
10039
  });
10038
10040
  document.dispatchEvent(e);
10039
10041
  };
10040
10042
  let aa, qn = 0;
10041
- const ts = () => {
10043
+ const ns = () => {
10042
10044
  ae(() => (document.addEventListener("discussionPostAdded", t), () => {
10043
10045
  document.removeEventListener(
10044
10046
  "discussionPostAdded",
@@ -10077,7 +10079,7 @@ const ts = () => {
10077
10079
  thumbnail: "https://some-user-thumbnail.com/avatar2.png"
10078
10080
  },
10079
10081
  isLoading: !1
10080
- }), ns = Object.freeze({
10082
+ }), rs = Object.freeze({
10081
10083
  actor: `SU:${nt.id}`,
10082
10084
  content: "some content 1",
10083
10085
  duration: "5.53ms",
@@ -10120,7 +10122,7 @@ const ts = () => {
10120
10122
  });
10121
10123
  Object.freeze({
10122
10124
  id: "some-reaction-id-1",
10123
- activity_id: ns.id,
10125
+ activity_id: rs.id,
10124
10126
  kind: "like",
10125
10127
  created_at: "2023-11-24T17:58:36.162000",
10126
10128
  data: {},
@@ -10150,7 +10152,7 @@ Object.freeze({
10150
10152
  updated_at: "2023-08-31T07:11:38.677184Z"
10151
10153
  },
10152
10154
  kind: "reply",
10153
- activity_id: ns.id,
10155
+ activity_id: rs.id,
10154
10156
  data: {
10155
10157
  content: "Some content 1..."
10156
10158
  },
@@ -10235,7 +10237,7 @@ function Vc({
10235
10237
  onSuccess: (c, u, l) => {
10236
10238
  const d = ta({ activity: c, user: i });
10237
10239
  r.setQueryData(s, sa(d, l, !0)), setTimeout(() => {
10238
- es(d.id);
10240
+ ts(d.id);
10239
10241
  }, 0);
10240
10242
  }
10241
10243
  });
@@ -10360,7 +10362,7 @@ function Xc({
10360
10362
  mutationFn: t,
10361
10363
  onMutate: ({ activityId: i }) => e((o) => {
10362
10364
  const c = nn(i, o);
10363
- return c && Xa({ activity: c, user: r }), o;
10365
+ return c && es({ activity: c, user: r }), o;
10364
10366
  }),
10365
10367
  onError: n
10366
10368
  });
@@ -10415,9 +10417,9 @@ const xu = ({
10415
10417
  queryKey: [t, e, "activities"],
10416
10418
  queryFns: r
10417
10419
  });
10418
- return ts(), u ? /* @__PURE__ */ a.jsx(He, { variant: "error", text: u.message }) : /* @__PURE__ */ a.jsxs("section", { children: [
10420
+ return ns(), u ? /* @__PURE__ */ a.jsx(He, { variant: "error", text: u.message }) : /* @__PURE__ */ a.jsxs("section", { children: [
10419
10421
  /* @__PURE__ */ a.jsx(
10420
- Ga,
10422
+ Qa,
10421
10423
  {
10422
10424
  form: {
10423
10425
  content: { type: "post", slugs: {} },
@@ -11088,7 +11090,7 @@ function nl({
11088
11090
  s,
11089
11091
  ia(d, l, { replace: !0, append: (u == null ? void 0 : u.replyId) !== void 0 })
11090
11092
  ), setTimeout(() => {
11091
- es(d.id);
11093
+ ts(d.id);
11092
11094
  }, 0);
11093
11095
  }
11094
11096
  });
@@ -11111,7 +11113,7 @@ function rl({
11111
11113
  });
11112
11114
  return r;
11113
11115
  }
11114
- function rs({
11116
+ function as({
11115
11117
  queryFns: {
11116
11118
  create: t,
11117
11119
  edit: e,
@@ -11276,7 +11278,7 @@ const ml = ({
11276
11278
  isLoading: m,
11277
11279
  mutations: { create: f, edit: p, like: v, remove: h, unlike: b },
11278
11280
  user: _
11279
- } = rs({
11281
+ } = as({
11280
11282
  queryKey: [t, e, n, r, "replies"],
11281
11283
  queryFns: {
11282
11284
  ...i,
@@ -11410,14 +11412,14 @@ const pl = ({
11410
11412
  isLoading: f,
11411
11413
  mutations: { create: p, edit: v, like: h, remove: b, unlike: _ },
11412
11414
  user: w
11413
- } = rs({
11415
+ } = as({
11414
11416
  queryKey: [t, e, n, "replies"],
11415
11417
  queryFns: s
11416
11418
  });
11417
- return Zs(), ts(), /* @__PURE__ */ a.jsxs("section", { className: "replies-feed", children: [
11419
+ return ha(), ns(), /* @__PURE__ */ a.jsxs("section", { className: "replies-feed", children: [
11418
11420
  /* @__PURE__ */ a.jsx(Oc, { type: "comment", responses: l }),
11419
11421
  /* @__PURE__ */ a.jsx(
11420
- Ga,
11422
+ Qa,
11421
11423
  {
11422
11424
  form: {
11423
11425
  content: { type: "reply", slugs: {} },
@@ -11545,7 +11547,7 @@ function gl({ queryFn: t, queryKey: e }) {
11545
11547
  error: r,
11546
11548
  isLoading: s,
11547
11549
  isFetching: i
11548
- } = $s({
11550
+ } = Ps({
11549
11551
  queryFn: t,
11550
11552
  queryKey: e
11551
11553
  });
@@ -11613,7 +11615,7 @@ function yl({
11613
11615
  }) {
11614
11616
  const { mutate: s } = je({
11615
11617
  mutationFn: t,
11616
- onMutate: (i) => e((o) => (o && Xa({ activity: o, user: r }), o)),
11618
+ onMutate: (i) => e((o) => (o && es({ activity: o, user: r }), o)),
11617
11619
  onError: n
11618
11620
  });
11619
11621
  return s;
@@ -11814,7 +11816,7 @@ export {
11814
11816
  Le as ASSETS_BUCKET,
11815
11817
  xu as ActivitiesFeed,
11816
11818
  ju as ActivitySection,
11817
- Ga as AddPost,
11819
+ Qa as AddPost,
11818
11820
  Xl as Banner,
11819
11821
  ru as BannerSection,
11820
11822
  lu as Breadcrumbs,
@@ -11823,7 +11825,7 @@ export {
11823
11825
  Tt as ButtonWrapper,
11824
11826
  Ct as COURSE_CONTENT_TYPES,
11825
11827
  Zo as CacheProvider,
11826
- Za as Card,
11828
+ Ha as Card,
11827
11829
  lc as CardBlock,
11828
11830
  ou as Carousel,
11829
11831
  tr as CollapsibleSection,
@@ -11832,7 +11834,7 @@ export {
11832
11834
  pu as ContactFooter,
11833
11835
  Li as ContactForm,
11834
11836
  di as ContentTypeLabel,
11835
- Ta as Contributors,
11837
+ Ea as Contributors,
11836
11838
  or as ConversationContext,
11837
11839
  wc as CookieBanner,
11838
11840
  bu as CourseProgression,
@@ -11852,11 +11854,11 @@ export {
11852
11854
  He as EmptyStateBox,
11853
11855
  uu as Filters,
11854
11856
  Yo as FlagsProvider,
11855
- Ya as Footer,
11857
+ Ka as Footer,
11856
11858
  sn as Form,
11857
11859
  Ye as FullWidthSection,
11858
11860
  Yl as GlobalProviders,
11859
- Ka as Header,
11861
+ Ga as Header,
11860
11862
  fi as HelperTextBox,
11861
11863
  Xn as HiddenFromScreenReaders,
11862
11864
  mi as HideShowTextBox,
@@ -11868,8 +11870,8 @@ export {
11868
11870
  Ko as IntlProvider,
11869
11871
  Bi as InviteForm,
11870
11872
  Kl as InviteModal,
11871
- Ha as JoinButton,
11872
- qa as LanguageContext,
11873
+ Va as JoinButton,
11874
+ Ua as LanguageContext,
11873
11875
  du as LanguageSwitcher,
11874
11876
  Sc as LessonName,
11875
11877
  Cc as LessonType,
@@ -11877,22 +11879,22 @@ export {
11877
11879
  cn as LoadMore,
11878
11880
  Ul as LoadingBlock,
11879
11881
  Ce as LoadingPlaceholder,
11880
- wa as LoadingState,
11881
- Va as Logo,
11882
+ ja as LoadingState,
11883
+ Ya as Logo,
11882
11884
  nu as LogoSection,
11883
11885
  _u as MarkCompleteButton,
11884
11886
  xt as MarkdownText,
11885
11887
  iu as MarketingBlock,
11886
11888
  an as Member,
11887
11889
  vu as MembersList,
11888
- Wa as Modal,
11890
+ za as Modal,
11889
11891
  pc as MoreMenu,
11890
11892
  Al as NUMBER_OF_COUNTRIES,
11891
11893
  Ol as NUMBER_OF_USERS,
11892
11894
  vc as NavigationMenu,
11893
11895
  Tu as NotFoundError,
11894
11896
  on as Overlay,
11895
- Ua as OverlayContext,
11897
+ Wa as OverlayContext,
11896
11898
  Jo as OverlayProvider,
11897
11899
  wi as PageHeading,
11898
11900
  Tc as PageLayout,
@@ -11901,7 +11903,7 @@ export {
11901
11903
  ht as Pill,
11902
11904
  Zl as ProfileImageChange,
11903
11905
  Ve as ProfilePicture,
11904
- _a as ProgressBar,
11906
+ xa as ProgressBar,
11905
11907
  Il as ProgressTracker,
11906
11908
  Wl as Rating,
11907
11909
  pl as RepliesFeed,
@@ -11925,13 +11927,13 @@ export {
11925
11927
  Go as UserProvider,
11926
11928
  be as VisuallyHidden,
11927
11929
  Xo as addAriaProps,
11928
- ha as basicReducer,
11930
+ ga as basicReducer,
11929
11931
  Hs as camelCaseToDashCase,
11930
11932
  er as checkIntlPathExists,
11931
11933
  _n as generateConditions,
11932
11934
  Gs as generateCssIcon,
11933
- ba as getLongDate,
11934
- ka as getMember,
11935
+ ya as getLongDate,
11936
+ Ta as getMember,
11935
11937
  Qs as getShortDate,
11936
11938
  Xt as headerData,
11937
11939
  ku as mapGetStreamData,
@@ -11941,11 +11943,11 @@ export {
11941
11943
  Sn as supportedLanguages,
11942
11944
  Vs as toCamelCase,
11943
11945
  Ys as toSentenceCase,
11944
- Us as useCurrentPath,
11946
+ Ws as useCurrentPath,
11945
11947
  _t as useEffectAfterMount,
11946
11948
  kt as useElementWidth,
11947
11949
  Qo as useOverlay,
11948
- zs as useScrollListener,
11949
- Zs as useScrollToHash,
11950
+ Zs as useScrollListener,
11951
+ ha as useScrollToHash,
11950
11952
  ar as useUser
11951
11953
  };