@apolitical/component-library 2.1.8-ac.0 → 2.1.8

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,10 +1,10 @@
1
1
  import * as Sr from "react";
2
- import K, { memo as De, useState as ne, useEffect as se, useRef as pe, useMemo as bt, createContext as Qn, useContext as Ne, Children as Ln, useCallback as fa, useReducer as Jn, forwardRef as Ni, createElement as Cr, Component as Pi, Fragment as gt, Suspense as Ri } from "react";
2
+ import K, { memo as Ae, useState as ne, useEffect as se, useRef as pe, useMemo as bt, createContext as Qn, useContext as Ne, Children as Ln, useCallback as fa, useReducer as Jn, forwardRef as Ni, createElement as Cr, Component as Pi, Fragment as gt, Suspense as Ri } from "react";
3
3
  import ft from "lodash.clonedeep";
4
4
  import Mi from "lodash.set";
5
5
  import { useIntl as Q, IntlProvider as Oi, FormattedMessage as je, createIntl as Fi } from "react-intl";
6
6
  import Ke from "truncate";
7
- import { QueryClient as Di, QueryClientProvider as Ai, useMutation as ke, useQueryClient as Xn, useInfiniteQuery as ma, useQuery as Li } from "@tanstack/react-query";
7
+ import { QueryClient as Ai, QueryClientProvider as Di, useMutation as ke, useQueryClient as Xn, useInfiniteQuery as ma, useQuery as Li } from "@tanstack/react-query";
8
8
  import { ReactQueryDevtools as Ii } from "@tanstack/react-query-devtools";
9
9
  import Ft from "posthog-js";
10
10
  import { CookiesProvider as Bi, useCookies as pa } from "react-cookie";
@@ -84,11 +84,11 @@ const $ = /* @__PURE__ */ en(Wi), Hi = ({
84
84
  ...r,
85
85
  className: $("hidden", { "show-on-focus": e }),
86
86
  children: n
87
- }), be = De(Hi), Vi = ({
87
+ }), be = Ae(Hi), Vi = ({
88
88
  element: t = "span",
89
89
  children: e = null,
90
90
  ...n
91
- }) => K.createElement(t, { ...n, "aria-hidden": !0 }, e), er = De(Vi);
91
+ }) => K.createElement(t, { ...n, "aria-hidden": !0 }, e), er = Ae(Vi);
92
92
  var In = { exports: {} }, at = {};
93
93
  /**
94
94
  * @license React
@@ -295,16 +295,16 @@ function Ki() {
295
295
  ` + H + h;
296
296
  }
297
297
  }
298
- var re = !1, D;
298
+ var re = !1, A;
299
299
  {
300
300
  var oe = typeof WeakMap == "function" ? WeakMap : Map;
301
- D = new oe();
301
+ A = new oe();
302
302
  }
303
- function A(h, P) {
303
+ function D(h, P) {
304
304
  if (!h || re)
305
305
  return "";
306
306
  {
307
- var q = D.get(h);
307
+ var q = A.get(h);
308
308
  if (q !== void 0)
309
309
  return q;
310
310
  }
@@ -359,7 +359,7 @@ function Ki() {
359
359
  if (he--, ge--, ge < 0 || ie[he] !== _e[ge]) {
360
360
  var Te = `
361
361
  ` + ie[he].replace(" at new ", " at ");
362
- return h.displayName && Te.includes("<anonymous>") && (Te = Te.replace("<anonymous>", h.displayName)), typeof h == "function" && D.set(h, Te), Te;
362
+ return h.displayName && Te.includes("<anonymous>") && (Te = Te.replace("<anonymous>", h.displayName)), typeof h == "function" && A.set(h, Te), Te;
363
363
  }
364
364
  while (he >= 1 && ge >= 0);
365
365
  break;
@@ -369,10 +369,10 @@ function Ki() {
369
369
  re = !1, Y.current = me, X(), Error.prepareStackTrace = le;
370
370
  }
371
371
  var He = h ? h.displayName || h.name : "", Er = He ? J(He) : "";
372
- return typeof h == "function" && D.set(h, Er), Er;
372
+ return typeof h == "function" && A.set(h, Er), Er;
373
373
  }
374
374
  function ve(h, P, q) {
375
- return A(h, !1);
375
+ return D(h, !1);
376
376
  }
377
377
  function Pe(h) {
378
378
  var P = h.prototype;
@@ -382,7 +382,7 @@ function Ki() {
382
382
  if (h == null)
383
383
  return "";
384
384
  if (typeof h == "function")
385
- return A(h, Pe(h));
385
+ return D(h, Pe(h));
386
386
  if (typeof h == "string")
387
387
  return J(h);
388
388
  switch (h) {
@@ -1337,7 +1337,7 @@ Thank you for helping to protect the Apolitical community from abusive content.`
1337
1337
  }
1338
1338
  }
1339
1339
  return r;
1340
- }, Dt = (t, e) => K.Children.map(t, (n) => Object.is(n, null) ? n : K.cloneElement(n, {
1340
+ }, At = (t, e) => K.Children.map(t, (n) => Object.is(n, null) ? n : K.cloneElement(n, {
1341
1341
  ...e
1342
1342
  })), ds = (t = 0) => {
1343
1343
  setTimeout(() => {
@@ -1869,7 +1869,7 @@ const gs = [
1869
1869
  ] })
1870
1870
  }
1871
1871
  );
1872
- }, nd = De(vs);
1872
+ }, nd = Ae(vs);
1873
1873
  const bs = ({
1874
1874
  alignImage: t = "left",
1875
1875
  className: e,
@@ -1905,7 +1905,7 @@ const bs = ({
1905
1905
  }
1906
1906
  )
1907
1907
  ] });
1908
- }, rd = De(bs);
1908
+ }, rd = Ae(bs);
1909
1909
  const ad = ({
1910
1910
  variant: t = "primary",
1911
1911
  button: e = null,
@@ -1928,7 +1928,7 @@ const ad = ({
1928
1928
  }
1929
1929
  )
1930
1930
  ] }), ys = ({ showDevTools: t = !0, children: e }) => {
1931
- const n = new Di({
1931
+ const n = new Ai({
1932
1932
  // default options we would like on all queries can be overridden individually
1933
1933
  defaultOptions: {
1934
1934
  queries: {
@@ -1939,7 +1939,7 @@ const ad = ({
1939
1939
  }
1940
1940
  }
1941
1941
  });
1942
- return /* @__PURE__ */ i.jsxs(Ai, { client: n, children: [
1942
+ return /* @__PURE__ */ i.jsxs(Di, { client: n, children: [
1943
1943
  e,
1944
1944
  t && /* @__PURE__ */ i.jsx(Ii, { initialIsOpen: !1 })
1945
1945
  ] });
@@ -1976,11 +1976,11 @@ const ws = ({ children: t, user: e }) => e.isLoading ? null : process.env.REACT_
1976
1976
  ...n || {}
1977
1977
  };
1978
1978
  return /* @__PURE__ */ i.jsx(Oi, { locale: r, messages: a, children: t });
1979
- }, Ae = Qn({ isLoading: !0 });
1979
+ }, De = Qn({ isLoading: !0 });
1980
1980
  function nr() {
1981
- return Ne(Ae);
1981
+ return Ne(De);
1982
1982
  }
1983
- const ks = ({ children: t, user: e }) => /* @__PURE__ */ i.jsx(Ae.Provider, { value: e, children: t }), id = ({ bootstrap: t, children: e, intl: n, showDevTools: r }) => {
1983
+ const ks = ({ children: t, user: e }) => /* @__PURE__ */ i.jsx(De.Provider, { value: e, children: t }), id = ({ bootstrap: t, children: e, intl: n, showDevTools: r }) => {
1984
1984
  const [a, s] = ne({ isLoading: !0 });
1985
1985
  return se(() => {
1986
1986
  t().then((o) => {
@@ -2039,7 +2039,7 @@ const tt = ({
2039
2039
  variant: "subtle",
2040
2040
  className: $("empty-state-box", t, r),
2041
2041
  children: /* @__PURE__ */ i.jsxs(i.Fragment, { children: [
2042
- e && /* @__PURE__ */ i.jsx(Xe, { options: { forceBlock: !0 }, children: e }),
2042
+ e && typeof e == "string" ? /* @__PURE__ */ i.jsx(Xe, { options: { forceBlock: !0 }, children: e }) : e,
2043
2043
  a && typeof n == "object" && (l || /* @__PURE__ */ i.jsx(
2044
2044
  ae,
2045
2045
  {
@@ -2314,8 +2314,8 @@ const Fs = ({ author: t, authorCite: e, content: n }) => /* @__PURE__ */ i.jsxs(
2314
2314
  /* @__PURE__ */ i.jsx(Xe, { className: "testimonial", children: n }),
2315
2315
  t && /* @__PURE__ */ i.jsx("p", { className: "author text-small", children: t }),
2316
2316
  e && /* @__PURE__ */ i.jsx("p", { className: "author-cite text-small", children: /* @__PURE__ */ i.jsx("cite", { children: e }) })
2317
- ] }), od = De(Fs);
2318
- const Ds = ({ progress: t = 0, text: e = !1, className: n = "" }) => {
2317
+ ] }), od = Ae(Fs);
2318
+ const As = ({ progress: t = 0, text: e = !1, className: n = "" }) => {
2319
2319
  const r = Q(), a = t > 75 ? 100 : t > 50 ? 75 : t > 25 ? 50 : t > 5 ? 25 : 0, s = { "--progress": `${t}%` };
2320
2320
  return /* @__PURE__ */ i.jsx(
2321
2321
  "span",
@@ -2325,7 +2325,7 @@ const Ds = ({ progress: t = 0, text: e = !1, className: n = "" }) => {
2325
2325
  children: /* @__PURE__ */ i.jsx(be, { children: e ? `${t} ${e}` : r.formatMessage({ id: "progressBar" }, { number: t }) })
2326
2326
  }
2327
2327
  );
2328
- }, As = De(Ds);
2328
+ }, Ds = Ae(As);
2329
2329
  const hn = "loadingBlock_", Ls = ({ progress: t = 0, steps: e = !1, className: n = "" }) => {
2330
2330
  const r = Q();
2331
2331
  e || (e = {
@@ -2350,11 +2350,11 @@ const hn = "loadingBlock_", Ls = ({ progress: t = 0, steps: e = !1, className: n
2350
2350
  style: o,
2351
2351
  children: [
2352
2352
  a && /* @__PURE__ */ i.jsx("span", { className: "step", children: e[a].text }),
2353
- /* @__PURE__ */ i.jsx(As, { progress: t })
2353
+ /* @__PURE__ */ i.jsx(Ds, { progress: t })
2354
2354
  ]
2355
2355
  }
2356
2356
  );
2357
- }, cd = De(Ls);
2357
+ }, cd = Ae(Ls);
2358
2358
  const Se = ({ element: t = "div", className: e = "", ...n }) => /* @__PURE__ */ i.jsx(
2359
2359
  er,
2360
2360
  {
@@ -2656,20 +2656,20 @@ var ue = {};
2656
2656
  * This source code is licensed under the MIT license found in the
2657
2657
  * LICENSE file in the root directory of this source tree.
2658
2658
  */
2659
- var Dr;
2659
+ var Ar;
2660
2660
  function Us() {
2661
- return Dr || (Dr = 1, process.env.NODE_ENV !== "production" && function() {
2661
+ return Ar || (Ar = 1, process.env.NODE_ENV !== "production" && function() {
2662
2662
  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, a = t ? Symbol.for("react.strict_mode") : 60108, s = t ? Symbol.for("react.profiler") : 60114, o = t ? Symbol.for("react.provider") : 60109, c = t ? Symbol.for("react.context") : 60110, u = t ? Symbol.for("react.async_mode") : 60111, l = t ? Symbol.for("react.concurrent_mode") : 60111, f = 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, v = t ? Symbol.for("react.block") : 60121, b = t ? Symbol.for("react.fundamental") : 60117, y = t ? Symbol.for("react.responder") : 60118, _ = t ? Symbol.for("react.scope") : 60119;
2663
- function E(A) {
2664
- return typeof A == "string" || typeof A == "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
2665
- A === r || A === l || A === s || A === a || A === d || A === m || typeof A == "object" && A !== null && (A.$$typeof === g || A.$$typeof === p || A.$$typeof === o || A.$$typeof === c || A.$$typeof === f || A.$$typeof === b || A.$$typeof === y || A.$$typeof === _ || A.$$typeof === v);
2663
+ function E(D) {
2664
+ return typeof D == "string" || typeof D == "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
2665
+ D === r || D === l || D === s || D === a || D === d || D === m || typeof D == "object" && D !== null && (D.$$typeof === g || D.$$typeof === p || D.$$typeof === o || D.$$typeof === c || D.$$typeof === f || D.$$typeof === b || D.$$typeof === y || D.$$typeof === _ || D.$$typeof === v);
2666
2666
  }
2667
- function k(A) {
2668
- if (typeof A == "object" && A !== null) {
2669
- var ve = A.$$typeof;
2667
+ function k(D) {
2668
+ if (typeof D == "object" && D !== null) {
2669
+ var ve = D.$$typeof;
2670
2670
  switch (ve) {
2671
2671
  case e:
2672
- var Pe = A.type;
2672
+ var Pe = D.type;
2673
2673
  switch (Pe) {
2674
2674
  case u:
2675
2675
  case l:
@@ -2697,51 +2697,51 @@ function Us() {
2697
2697
  }
2698
2698
  }
2699
2699
  var w = u, U = l, M = c, I = o, R = e, O = f, S = r, T = g, x = p, C = n, B = s, F = a, L = d, V = !1;
2700
- function ee(A) {
2701
- return V || (V = !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.")), j(A) || k(A) === u;
2700
+ function ee(D) {
2701
+ return V || (V = !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.")), j(D) || k(D) === u;
2702
2702
  }
2703
- function j(A) {
2704
- return k(A) === l;
2703
+ function j(D) {
2704
+ return k(D) === l;
2705
2705
  }
2706
- function N(A) {
2707
- return k(A) === c;
2706
+ function N(D) {
2707
+ return k(D) === c;
2708
2708
  }
2709
- function Z(A) {
2710
- return k(A) === o;
2709
+ function Z(D) {
2710
+ return k(D) === o;
2711
2711
  }
2712
- function z(A) {
2713
- return typeof A == "object" && A !== null && A.$$typeof === e;
2712
+ function z(D) {
2713
+ return typeof D == "object" && D !== null && D.$$typeof === e;
2714
2714
  }
2715
- function W(A) {
2716
- return k(A) === f;
2715
+ function W(D) {
2716
+ return k(D) === f;
2717
2717
  }
2718
- function X(A) {
2719
- return k(A) === r;
2718
+ function X(D) {
2719
+ return k(D) === r;
2720
2720
  }
2721
- function Y(A) {
2722
- return k(A) === g;
2721
+ function Y(D) {
2722
+ return k(D) === g;
2723
2723
  }
2724
- function H(A) {
2725
- return k(A) === p;
2724
+ function H(D) {
2725
+ return k(D) === p;
2726
2726
  }
2727
- function J(A) {
2728
- return k(A) === n;
2727
+ function J(D) {
2728
+ return k(D) === n;
2729
2729
  }
2730
- function re(A) {
2731
- return k(A) === s;
2730
+ function re(D) {
2731
+ return k(D) === s;
2732
2732
  }
2733
- function D(A) {
2734
- return k(A) === a;
2733
+ function A(D) {
2734
+ return k(D) === a;
2735
2735
  }
2736
- function oe(A) {
2737
- return k(A) === d;
2736
+ function oe(D) {
2737
+ return k(D) === d;
2738
2738
  }
2739
- ue.AsyncMode = w, ue.ConcurrentMode = U, ue.ContextConsumer = M, ue.ContextProvider = I, ue.Element = R, ue.ForwardRef = O, ue.Fragment = S, ue.Lazy = T, ue.Memo = x, ue.Portal = C, ue.Profiler = B, ue.StrictMode = F, ue.Suspense = L, ue.isAsyncMode = ee, ue.isConcurrentMode = j, ue.isContextConsumer = N, ue.isContextProvider = Z, ue.isElement = z, ue.isForwardRef = W, ue.isFragment = X, ue.isLazy = Y, ue.isMemo = H, ue.isPortal = J, ue.isProfiler = re, ue.isStrictMode = D, ue.isSuspense = oe, ue.isValidElementType = E, ue.typeOf = k;
2739
+ ue.AsyncMode = w, ue.ConcurrentMode = U, ue.ContextConsumer = M, ue.ContextProvider = I, ue.Element = R, ue.ForwardRef = O, ue.Fragment = S, ue.Lazy = T, ue.Memo = x, ue.Portal = C, ue.Profiler = B, ue.StrictMode = F, ue.Suspense = L, ue.isAsyncMode = ee, ue.isConcurrentMode = j, ue.isContextConsumer = N, ue.isContextProvider = Z, ue.isElement = z, ue.isForwardRef = W, ue.isFragment = X, ue.isLazy = Y, ue.isMemo = H, ue.isPortal = J, ue.isProfiler = re, ue.isStrictMode = A, ue.isSuspense = oe, ue.isValidElementType = E, ue.typeOf = k;
2740
2740
  }()), ue;
2741
2741
  }
2742
- var Ar;
2742
+ var Dr;
2743
2743
  function ar() {
2744
- return Ar || (Ar = 1, process.env.NODE_ENV === "production" ? kt.exports = qs() : kt.exports = Us()), kt.exports;
2744
+ return Dr || (Dr = 1, process.env.NODE_ENV === "production" ? kt.exports = qs() : kt.exports = Us()), kt.exports;
2745
2745
  }
2746
2746
  /*
2747
2747
  object-assign
@@ -2913,22 +2913,22 @@ function Ws() {
2913
2913
  function b(j) {
2914
2914
  if (process.env.NODE_ENV !== "production")
2915
2915
  var N = {}, Z = 0;
2916
- function z(X, Y, H, J, re, D, oe) {
2917
- if (J = J || m, D = D || H, oe !== n) {
2916
+ function z(X, Y, H, J, re, A, oe) {
2917
+ if (J = J || m, A = A || H, oe !== n) {
2918
2918
  if (u) {
2919
- var A = new Error(
2919
+ var D = new Error(
2920
2920
  "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"
2921
2921
  );
2922
- throw A.name = "Invariant Violation", A;
2922
+ throw D.name = "Invariant Violation", D;
2923
2923
  } else if (process.env.NODE_ENV !== "production" && typeof console < "u") {
2924
2924
  var ve = J + ":" + H;
2925
2925
  !N[ve] && // Avoid spamming the console because they are often not actionable except for lib authors
2926
2926
  Z < 3 && (s(
2927
- "You are manually calling a React.PropTypes validation function for the `" + D + "` prop on `" + J + "`. 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."
2927
+ "You are manually calling a React.PropTypes validation function for the `" + A + "` prop on `" + J + "`. 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."
2928
2928
  ), N[ve] = !0, Z++);
2929
2929
  }
2930
2930
  }
2931
- return Y[H] == null ? X ? Y[H] === null ? new v("The " + re + " `" + D + "` is marked as required " + ("in `" + J + "`, but its value is `null`.")) : new v("The " + re + " `" + D + "` is marked as required in " + ("`" + J + "`, but its value is `undefined`.")) : null : j(Y, H, J, re, D);
2931
+ return Y[H] == null ? X ? Y[H] === null ? new v("The " + re + " `" + A + "` is marked as required " + ("in `" + J + "`, but its value is `null`.")) : new v("The " + re + " `" + A + "` is marked as required in " + ("`" + J + "`, but its value is `undefined`.")) : null : j(Y, H, J, re, A);
2932
2932
  }
2933
2933
  var W = z.bind(null, !1);
2934
2934
  return W.isRequired = z.bind(null, !0), W;
@@ -2937,9 +2937,9 @@ function Ws() {
2937
2937
  function N(Z, z, W, X, Y, H) {
2938
2938
  var J = Z[z], re = F(J);
2939
2939
  if (re !== j) {
2940
- var D = L(J);
2940
+ var A = L(J);
2941
2941
  return new v(
2942
- "Invalid " + X + " `" + Y + "` of type " + ("`" + D + "` supplied to `" + W + "`, expected ") + ("`" + j + "`."),
2942
+ "Invalid " + X + " `" + Y + "` of type " + ("`" + A + "` supplied to `" + W + "`, expected ") + ("`" + j + "`."),
2943
2943
  { expectedType: j }
2944
2944
  );
2945
2945
  }
@@ -2960,9 +2960,9 @@ function Ws() {
2960
2960
  return new v("Invalid " + X + " `" + Y + "` of type " + ("`" + J + "` supplied to `" + W + "`, expected an array."));
2961
2961
  }
2962
2962
  for (var re = 0; re < H.length; re++) {
2963
- var D = j(H, re, W, X, Y + "[" + re + "]", n);
2964
- if (D instanceof Error)
2965
- return D;
2963
+ var A = j(H, re, W, X, Y + "[" + re + "]", n);
2964
+ if (A instanceof Error)
2965
+ return A;
2966
2966
  }
2967
2967
  return null;
2968
2968
  }
@@ -3009,9 +3009,9 @@ function Ws() {
3009
3009
  for (var H = Z[z], J = 0; J < j.length; J++)
3010
3010
  if (g(H, j[J]))
3011
3011
  return null;
3012
- var re = JSON.stringify(j, function(oe, A) {
3013
- var ve = L(A);
3014
- return ve === "symbol" ? String(A) : A;
3012
+ var re = JSON.stringify(j, function(oe, D) {
3013
+ var ve = L(D);
3014
+ return ve === "symbol" ? String(D) : D;
3015
3015
  });
3016
3016
  return new v("Invalid " + X + " `" + Y + "` of value `" + String(H) + "` " + ("supplied to `" + W + "`, expected one of " + re + "."));
3017
3017
  }
@@ -3026,9 +3026,9 @@ function Ws() {
3026
3026
  return new v("Invalid " + X + " `" + Y + "` of type " + ("`" + J + "` supplied to `" + W + "`, expected an object."));
3027
3027
  for (var re in H)
3028
3028
  if (r(H, re)) {
3029
- var D = j(H, re, W, X, Y + "." + re, n);
3030
- if (D instanceof Error)
3031
- return D;
3029
+ var A = j(H, re, W, X, Y + "." + re, n);
3030
+ if (A instanceof Error)
3031
+ return A;
3032
3032
  }
3033
3033
  return null;
3034
3034
  }
@@ -3045,11 +3045,11 @@ function Ws() {
3045
3045
  ), o;
3046
3046
  }
3047
3047
  function z(W, X, Y, H, J) {
3048
- for (var re = [], D = 0; D < j.length; D++) {
3049
- var oe = j[D], A = oe(W, X, Y, H, J, n);
3050
- if (A == null)
3048
+ for (var re = [], A = 0; A < j.length; A++) {
3049
+ var oe = j[A], D = oe(W, X, Y, H, J, n);
3050
+ if (D == null)
3051
3051
  return null;
3052
- A.data && r(A.data, "expectedType") && re.push(A.data.expectedType);
3052
+ D.data && r(D.data, "expectedType") && re.push(D.data.expectedType);
3053
3053
  }
3054
3054
  var ve = re.length > 0 ? ", expected one of type [" + re.join(", ") + "]" : "";
3055
3055
  return new v("Invalid " + H + " `" + J + "` supplied to " + ("`" + Y + "`" + ve + "."));
@@ -3073,10 +3073,10 @@ function Ws() {
3073
3073
  if (J !== "object")
3074
3074
  return new v("Invalid " + X + " `" + Y + "` of type `" + J + "` " + ("supplied to `" + W + "`, expected `object`."));
3075
3075
  for (var re in j) {
3076
- var D = j[re];
3077
- if (typeof D != "function")
3078
- return S(W, X, Y, re, L(D));
3079
- var oe = D(H, re, W, X, Y + "." + re, n);
3076
+ var A = j[re];
3077
+ if (typeof A != "function")
3078
+ return S(W, X, Y, re, L(A));
3079
+ var oe = A(H, re, W, X, Y + "." + re, n);
3080
3080
  if (oe)
3081
3081
  return oe;
3082
3082
  }
@@ -3090,18 +3090,18 @@ function Ws() {
3090
3090
  if (J !== "object")
3091
3091
  return new v("Invalid " + X + " `" + Y + "` of type `" + J + "` " + ("supplied to `" + W + "`, expected `object`."));
3092
3092
  var re = e({}, Z[z], j);
3093
- for (var D in re) {
3094
- var oe = j[D];
3095
- if (r(j, D) && typeof oe != "function")
3096
- return S(W, X, Y, D, L(oe));
3093
+ for (var A in re) {
3094
+ var oe = j[A];
3095
+ if (r(j, A) && typeof oe != "function")
3096
+ return S(W, X, Y, A, L(oe));
3097
3097
  if (!oe)
3098
3098
  return new v(
3099
- "Invalid " + X + " `" + Y + "` key `" + D + "` supplied to `" + W + "`.\nBad object: " + JSON.stringify(Z[z], null, " ") + `
3099
+ "Invalid " + X + " `" + Y + "` key `" + A + "` supplied to `" + W + "`.\nBad object: " + JSON.stringify(Z[z], null, " ") + `
3100
3100
  Valid keys: ` + JSON.stringify(Object.keys(j), null, " ")
3101
3101
  );
3102
- var A = oe(H, D, W, X, Y + "." + D, n);
3103
- if (A)
3104
- return A;
3102
+ var D = oe(H, A, W, X, Y + "." + A, n);
3103
+ if (D)
3104
+ return D;
3105
3105
  }
3106
3106
  return null;
3107
3107
  }
@@ -3253,12 +3253,12 @@ var Oa = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])",
3253
3253
  }, Ks = function(e) {
3254
3254
  var n, r = e == null || (n = e.getAttribute) === null || n === void 0 ? void 0 : n.call(e, "contenteditable");
3255
3255
  return r === "" || r === "true";
3256
- }, Da = function(e, n, r) {
3256
+ }, Aa = function(e, n, r) {
3257
3257
  if (Zt(e))
3258
3258
  return [];
3259
3259
  var a = Array.prototype.slice.apply(e.querySelectorAll(Ut));
3260
3260
  return n && Ze.call(e, Ut) && a.unshift(e), a = a.filter(r), a;
3261
- }, Aa = function t(e, n, r) {
3261
+ }, Da = function t(e, n, r) {
3262
3262
  for (var a = [], s = Array.from(e); s.length; ) {
3263
3263
  var o = s.shift();
3264
3264
  if (!Zt(o, !1))
@@ -3407,25 +3407,25 @@ var Oa = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])",
3407
3407
  }, Ba = function(e, n) {
3408
3408
  n = n || {};
3409
3409
  var r;
3410
- return n.getShadowRoot ? r = Aa([e], n.includeContainer, {
3410
+ return n.getShadowRoot ? r = Da([e], n.includeContainer, {
3411
3411
  filter: Zn.bind(null, n),
3412
3412
  flatten: !1,
3413
3413
  getShadowRoot: n.getShadowRoot,
3414
3414
  shadowRootFilter: oo
3415
- }) : r = Da(e, n.includeContainer, Zn.bind(null, n)), co(r);
3415
+ }) : r = Aa(e, n.includeContainer, Zn.bind(null, n)), co(r);
3416
3416
  }, qa = function(e, n) {
3417
3417
  n = n || {};
3418
3418
  var r;
3419
- return n.getShadowRoot ? r = Aa([e], n.includeContainer, {
3419
+ return n.getShadowRoot ? r = Da([e], n.includeContainer, {
3420
3420
  filter: Wt.bind(null, n),
3421
3421
  flatten: !0,
3422
3422
  getShadowRoot: n.getShadowRoot
3423
- }) : r = Da(e, n.includeContainer, Wt.bind(null, n)), r;
3423
+ }) : r = Aa(e, n.includeContainer, Wt.bind(null, n)), r;
3424
3424
  }, Ue = function(e, n) {
3425
3425
  if (n = n || {}, !e)
3426
3426
  throw new Error("No node provided");
3427
3427
  return Ze.call(e, Ut) === !1 ? !1 : Zn(n, e);
3428
- }, lo = /* @__PURE__ */ Oa.concat("iframe").join(","), At = function(e, n) {
3428
+ }, lo = /* @__PURE__ */ Oa.concat("iframe").join(","), Dt = function(e, n) {
3429
3429
  if (n = n || {}, !e)
3430
3430
  throw new Error("No node provided");
3431
3431
  return Ze.call(e, lo) === !1 ? !1 : Wt(n, e);
@@ -3434,7 +3434,7 @@ const uo = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
3434
3434
  __proto__: null,
3435
3435
  focusable: qa,
3436
3436
  getTabIndex: Le,
3437
- isFocusable: At,
3437
+ isFocusable: Dt,
3438
3438
  isTabbable: Ue,
3439
3439
  tabbable: Ba
3440
3440
  }, Symbol.toStringTag, { value: "Module" }));
@@ -3600,7 +3600,7 @@ var Vr = {
3600
3600
  var T = f("initialFocus");
3601
3601
  if (T === !1)
3602
3602
  return !1;
3603
- if (T === void 0 || !At(T, s.tabbableOptions))
3603
+ if (T === void 0 || !Dt(T, s.tabbableOptions))
3604
3604
  if (l(r.activeElement) >= 0)
3605
3605
  T = r.activeElement;
3606
3606
  else {
@@ -3695,7 +3695,7 @@ var Vr = {
3695
3695
  var H = Y.firstTabbableNode;
3696
3696
  return x === H;
3697
3697
  });
3698
- if (j < 0 && (ee.container === x || At(x, s.tabbableOptions) && !Ue(x, s.tabbableOptions) && !ee.nextTabbableNode(x, !1)) && (j = V), j >= 0) {
3698
+ if (j < 0 && (ee.container === x || Dt(x, s.tabbableOptions) && !Ue(x, s.tabbableOptions) && !ee.nextTabbableNode(x, !1)) && (j = V), j >= 0) {
3699
3699
  var N = j === 0 ? o.tabbableGroups.length - 1 : j - 1, Z = o.tabbableGroups[N];
3700
3700
  L = Le(x) >= 0 ? Z.lastTabbableNode : Z.lastDomTabbableNode;
3701
3701
  } else
@@ -3705,7 +3705,7 @@ var Vr = {
3705
3705
  var H = Y.lastTabbableNode;
3706
3706
  return x === H;
3707
3707
  });
3708
- if (z < 0 && (ee.container === x || At(x, s.tabbableOptions) && !Ue(x, s.tabbableOptions) && !ee.nextTabbableNode(x)) && (z = V), z >= 0) {
3708
+ if (z < 0 && (ee.container === x || Dt(x, s.tabbableOptions) && !Ue(x, s.tabbableOptions) && !ee.nextTabbableNode(x)) && (z = V), z >= 0) {
3709
3709
  var W = z === o.tabbableGroups.length - 1 ? 0 : z + 1, X = o.tabbableGroups[W];
3710
3710
  L = Le(x) >= 0 ? X.firstTabbableNode : X.firstDomTabbableNode;
3711
3711
  } else
@@ -4208,8 +4208,8 @@ sr.defaultProps = {
4208
4208
  focusTrapOptions: {},
4209
4209
  _createFocusTrap: Mo
4210
4210
  };
4211
- var Do = sr;
4212
- const Ao = /* @__PURE__ */ en(Do);
4211
+ var Ao = sr;
4212
+ const Do = /* @__PURE__ */ en(Ao);
4213
4213
  const za = ({ element: t = "section", children: e, className: n, ...r }) => K.createElement(t, {
4214
4214
  className: $("modal", n),
4215
4215
  children: typeof e == "string" ? /* @__PURE__ */ i.jsx("p", { children: e }) : e,
@@ -4252,7 +4252,7 @@ const nn = ({
4252
4252
  }),
4253
4253
  hidden: !p,
4254
4254
  style: y,
4255
- children: e && /* @__PURE__ */ i.jsx(Ao, { children: /* @__PURE__ */ i.jsxs("div", { className: "overlay-content", children: [
4255
+ children: e && /* @__PURE__ */ i.jsx(Do, { children: /* @__PURE__ */ i.jsxs("div", { className: "overlay-content", children: [
4256
4256
  /* @__PURE__ */ i.jsxs("div", { className: "top", children: [
4257
4257
  c && /* @__PURE__ */ i.jsx("h2", { className: "modal-title", children: c }),
4258
4258
  /* @__PURE__ */ i.jsx(
@@ -4508,7 +4508,7 @@ const Za = ({
4508
4508
  b
4509
4509
  );
4510
4510
  };
4511
- const Bo = De(function({
4511
+ const Bo = Ae(function({
4512
4512
  direction: e = "down"
4513
4513
  }) {
4514
4514
  return /* @__PURE__ */ i.jsx(
@@ -5211,7 +5211,7 @@ const Ct = "passwordRules_", Wa = "isMoreThanEightCharacters", Ha = "includesNum
5211
5211
  )
5212
5212
  ) })
5213
5213
  ] });
5214
- }, ld = De(Vo);
5214
+ }, ld = Ae(Vo);
5215
5215
  const dd = ({
5216
5216
  text: t = {},
5217
5217
  topRating: e = 5,
@@ -5634,17 +5634,16 @@ const Go = ({
5634
5634
  }) => {
5635
5635
  if (!t.form || !t.form.current)
5636
5636
  throw new Error("No refs.form");
5637
- if (console.log("handleData 1"), !t.form.current.checkValidity()) {
5637
+ if (!t.form.current.checkValidity()) {
5638
5638
  t.hiddenValidation && t.hiddenValidation.current && t.hiddenValidation.current.click();
5639
5639
  return;
5640
5640
  }
5641
- if (console.log("handleData 2", { recaptcha: t.recaptcha }), t.recaptcha && t.recaptcha.current && !t.recaptcha.current.getValue()) {
5641
+ if (t.recaptcha && t.recaptcha.current && !t.recaptcha.current.getValue()) {
5642
5642
  t.recaptcha.current.execute();
5643
5643
  return;
5644
5644
  }
5645
- console.log("handleData 3");
5646
5645
  const o = Qo(new FormData(t.form.current)), c = Object.assign(o, e);
5647
- await n(c), console.log("handleData 4"), localStorage.setItem("email", o.email), console.log("handleData 5"), r && r({ ...o, ...s.values }), console.log("handleData 6"), a([{ type: "showSuccessMessage", value: !0 }]);
5646
+ await n(c), localStorage.setItem("email", o.email), r && r({ ...o, ...s.values }), a([{ type: "showSuccessMessage", value: !0 }]);
5648
5647
  };
5649
5648
  var Jo = ["sitekey", "onChange", "theme", "type", "tabindex", "onExpired", "onErrored", "size", "stoken", "grecaptcha", "badge", "hl", "isolated"];
5650
5649
  function Hn() {
@@ -6285,19 +6284,17 @@ const yc = {
6285
6284
  },
6286
6285
  functions: {
6287
6286
  onSuccess: async () => {
6288
- console.log("SUCCESS"), Ya({
6287
+ Ya({
6289
6288
  refs: b,
6290
6289
  dataToSubmit: a,
6291
6290
  createAccount: e.createAccount,
6292
- onSuccess: () => {
6293
- console.log("run on success"), e.onSuccess && e.onSuccess();
6294
- },
6291
+ onSuccess: e.onSuccess,
6295
6292
  dispatch: u,
6296
6293
  state: c
6297
6294
  });
6298
6295
  },
6299
6296
  onCatch: (E) => {
6300
- console.log("ERROR", E), e.handleError(E), u([
6297
+ e.handleError(E), u([
6301
6298
  { type: "showSuccessMessage", value: !1 },
6302
6299
  { type: "showError", value: !0 }
6303
6300
  ]);
@@ -6601,7 +6598,7 @@ const jc = {
6601
6598
  gtmContext: a = "Carousel",
6602
6599
  className: s = ""
6603
6600
  }) => {
6604
- const o = Q(), c = Ne(Ae), u = c && typeof c.id == "string", [l, f] = ne({
6601
+ const o = Q(), c = Ne(De), u = c && typeof c.id == "string", [l, f] = ne({
6605
6602
  data: null,
6606
6603
  isLoading: !0
6607
6604
  }), { data: d, isLoading: m } = l, p = fa(() => {
@@ -6935,7 +6932,7 @@ const kn = "joinCommunityButton", Ja = ({
6935
6932
  }, leave: () => {
6936
6933
  } }
6937
6934
  }) => {
6938
- const a = Q(), s = Ne(Ae), o = s && typeof s.id == "string", [c, u] = ne(t), [l, f] = ne(t ? "joined" : "notJoined");
6935
+ const a = Q(), s = Ne(De), o = s && typeof s.id == "string", [c, u] = ne(t), [l, f] = ne(t ? "joined" : "notJoined");
6939
6936
  se(() => {
6940
6937
  l === "joining" ? f("joined") : l === "leaving" && f("notJoined");
6941
6938
  }, [c]);
@@ -7272,7 +7269,7 @@ const Pc = [
7272
7269
  href: "/solution-articles/"
7273
7270
  }
7274
7271
  ], Rc = ({ activeLink: t }) => {
7275
- const e = Q(), n = Ne(Ae), r = n && typeof n.id == "string";
7272
+ const e = Q(), n = Ne(De), r = n && typeof n.id == "string";
7276
7273
  return /* @__PURE__ */ i.jsxs("ul", { id: "navigation-menu", className: "text-medium", children: [
7277
7274
  Pc.map(({ key: a, href: s }) => /* @__PURE__ */ i.jsx(
7278
7275
  "li",
@@ -7457,7 +7454,7 @@ const Fc = {
7457
7454
  "2-1": 901,
7458
7455
  "1-3": 769,
7459
7456
  "1-1": 769
7460
- }, Dc = ({
7457
+ }, Ac = ({
7461
7458
  layout: t = "2-1",
7462
7459
  hideOnMobile: e = !1,
7463
7460
  className: n = "",
@@ -7505,7 +7502,7 @@ const $n = "contactFooter_", wd = ({ onSuccess: t = async () => {
7505
7502
  }
7506
7503
  )
7507
7504
  ] }) });
7508
- }, jd = ({ activeLink: t, ...e }) => /* @__PURE__ */ i.jsx(et, { children: /* @__PURE__ */ i.jsx(Dc, { layout: "1-3", children: /* @__PURE__ */ i.jsxs(i.Fragment, { children: [
7505
+ }, jd = ({ activeLink: t, ...e }) => /* @__PURE__ */ i.jsx(et, { children: /* @__PURE__ */ i.jsx(Ac, { layout: "1-3", children: /* @__PURE__ */ i.jsxs(i.Fragment, { children: [
7509
7506
  /* @__PURE__ */ i.jsx(Rc, { activeLink: t }),
7510
7507
  /* @__PURE__ */ i.jsx(Os, { ...e })
7511
7508
  ] }) }) });
@@ -7513,7 +7510,7 @@ const Nn = "cookieBanner_", Pn = [
7513
7510
  "apol-cookie-banner",
7514
7511
  "apolitical-performance-cookie-consent",
7515
7512
  "functional-cookie-consent"
7516
- ], Rn = new Date(Date.now() + 12 * 30 * 24 * 60 * 60 * 1e3), Ac = () => {
7513
+ ], Rn = new Date(Date.now() + 12 * 30 * 24 * 60 * 60 * 1e3), Dc = () => {
7517
7514
  const t = Q(), [e, n, r] = pa(Pn), [a, s] = ne(
7518
7515
  !e["apol-cookie-banner"]
7519
7516
  ), o = () => {
@@ -8041,7 +8038,7 @@ const Ye = "footer_", Yt = "SiteFooter", na = ({ group: t }) => {
8041
8038
  );
8042
8039
  };
8043
8040
  const Lc = { height: 67, height_desktop: 83 }, ti = ({ showNavigation: t = !0 }) => {
8044
- const e = Q(), n = Ne(Ae), r = yt(!0, !0), a = n && typeof n.id == "string", s = bt(
8041
+ const e = Q(), n = Ne(De), r = yt(!0, !0), a = n && typeof n.id == "string", s = bt(
8045
8042
  () => fe.getIsDesktopVersion(a, r),
8046
8043
  [a, r]
8047
8044
  ), [o, c] = Jn(ya, {
@@ -8242,9 +8239,9 @@ const Ic = () => {
8242
8239
  se(() => {
8243
8240
  window.scrollTo(0, 0);
8244
8241
  }, [p]);
8245
- const g = Dt(t, { locale: c }), v = Dt(e, {
8242
+ const g = At(t, { locale: c }), v = At(e, {
8246
8243
  locale: c
8247
- }), b = Dt(n, {
8244
+ }), b = At(n, {
8248
8245
  locale: c
8249
8246
  }), y = {};
8250
8247
  return f !== "default" && (y[f] = !0), d !== "default" && (y[d] = !0), m !== "default" && (y[m] = !0), /* @__PURE__ */ i.jsx(Ui, { onError: r, fallback: /* @__PURE__ */ i.jsx(Ic, {}), children: /* @__PURE__ */ i.jsx(Ri, { fallback: null, children: /* @__PURE__ */ i.jsxs(
@@ -8263,7 +8260,7 @@ const Ic = () => {
8263
8260
  ] }),
8264
8261
  b && /* @__PURE__ */ i.jsx("div", { className: "additional-content appended", children: b }),
8265
8262
  l && /* @__PURE__ */ i.jsx(ei, {}),
8266
- /* @__PURE__ */ i.jsx(Ac, {})
8263
+ /* @__PURE__ */ i.jsx(Dc, {})
8267
8264
  ]
8268
8265
  }
8269
8266
  ) }) });
@@ -8403,7 +8400,7 @@ const xe = "discussion_form_", dr = ({
8403
8400
  gtmContext: l = "DiscussionForm"
8404
8401
  }) => {
8405
8402
  var O, S, T;
8406
- const f = Q(), d = Ne(Ae), [m, p] = ne(
8403
+ const f = Q(), d = Ne(De), [m, p] = ne(
8407
8404
  n.isEditing && n.isEditing.text || ""
8408
8405
  ), [g, v] = ne(c.error || !1), [b, y] = ne(!1), _ = pe(null);
8409
8406
  if (r || (r = _), n.isLoading)
@@ -8785,7 +8782,7 @@ const Me = "discussion_", Vc = 280, on = ({
8785
8782
  children: v,
8786
8783
  isTruncated: b = !1
8787
8784
  }) => {
8788
- const y = Q(), _ = Ne(Ae), E = Ne(ur), { author: k, canLike: w, createdAt: U, id: M, likes: I = 0, userLiked: R, comments: O = 0 } = e, S = _ && _.id && typeof k != "string" && k.id && k.id === _.id || !1, T = typeof w == "boolean" ? w : n ? !S : !1, x = S && (!e.createdAt || rs(e.createdAt, 10, "seconds")), C = pe(null), [B, F] = ne({
8785
+ const y = Q(), _ = Ne(De), E = Ne(ur), { author: k, canLike: w, createdAt: U, id: M, likes: I = 0, userLiked: R, comments: O = 0 } = e, S = _ && _.id && typeof k != "string" && k.id && k.id === _.id || !1, T = typeof w == "boolean" ? w : n ? !S : !1, x = S && (!e.createdAt || rs(e.createdAt, 10, "seconds")), C = pe(null), [B, F] = ne({
8789
8786
  body: e && e.body || "",
8790
8787
  isEditing: !1,
8791
8788
  didEdit: e && e.isEdited || !1
@@ -8794,10 +8791,10 @@ const Me = "discussion_", Vc = 280, on = ({
8794
8791
  /* Default */
8795
8792
  ), [N, Z] = ne("");
8796
8793
  se(() => {
8797
- const D = C.current;
8798
- if (!(!D || ee === "default"))
8799
- return document.addEventListener("discussionFormSubmitted", z), D.addEventListener("transitionend", W), () => {
8800
- document.removeEventListener("discussionFormSubmitted", z), D.removeEventListener("transitionend", W);
8794
+ const A = C.current;
8795
+ if (!(!A || ee === "default"))
8796
+ return document.addEventListener("discussionFormSubmitted", z), A.addEventListener("transitionend", W), () => {
8797
+ document.removeEventListener("discussionFormSubmitted", z), A.removeEventListener("transitionend", W);
8801
8798
  };
8802
8799
  }, []), se(() => {
8803
8800
  F({
@@ -8813,27 +8810,27 @@ const Me = "discussion_", Vc = 280, on = ({
8813
8810
  /* Fading */
8814
8811
  );
8815
8812
  }, 1e3);
8816
- }, W = ({ propertyName: D }) => {
8817
- D === "background-color" && j((oe) => (oe === "default" && (document.removeEventListener("discussionFormSubmitted", z), C.current && C.current.removeEventListener("transitionend", W)), oe === "fading" ? "default" : oe));
8813
+ }, W = ({ propertyName: A }) => {
8814
+ A === "background-color" && j((oe) => (oe === "default" && (document.removeEventListener("discussionFormSubmitted", z), C.current && C.current.removeEventListener("transitionend", W)), oe === "fading" ? "default" : oe));
8818
8815
  };
8819
8816
  if (r || !e || e.type === "answer" && (!e.slugs || !e.slugs.question))
8820
8817
  return /* @__PURE__ */ i.jsx(Se, { className: "discussion-card discussion-post" });
8821
- const X = b ? Ke(B.body, Vc) : B.body, Y = async (D) => {
8822
- D || (D = ""), Z("");
8818
+ const X = b ? Ke(B.body, Vc) : B.body, Y = async (A) => {
8819
+ A || (A = ""), Z("");
8823
8820
  try {
8824
- if (!Zi(D, B.body)) {
8825
- const oe = e.type === "question" ? { title: D } : { body: D };
8821
+ if (!Zi(A, B.body)) {
8822
+ const oe = e.type === "question" ? { title: A } : { body: A };
8826
8823
  await u(aa(e.slugs), oe);
8827
8824
  }
8828
- F({ body: D, isEditing: !1, didEdit: !0 });
8825
+ F({ body: A, isEditing: !1, didEdit: !0 });
8829
8826
  } catch {
8830
8827
  Z(`${Me}form_error`);
8831
8828
  }
8832
8829
  }, H = () => {
8833
8830
  E && E.updateConversation && E.updateConversation({ showForm: !0 }), setTimeout(() => {
8834
8831
  var Pe, Ce, qe;
8835
- const oe = `reply-form-${(e.type === "answer" ? e.slug : ((Pe = e.slugs) == null ? void 0 : Pe.reply) || ((Ce = e.slugs) == null ? void 0 : Ce.answer) || ((qe = e.slugs) == null ? void 0 : qe.question) || "").toLowerCase().slice(-15)}`, A = document.getElementById(oe), ve = document.getElementById(`${oe}-input`);
8836
- ve && ve.focus(), A && A.scrollIntoView({ behavior: "smooth" });
8832
+ const oe = `reply-form-${(e.type === "answer" ? e.slug : ((Pe = e.slugs) == null ? void 0 : Pe.reply) || ((Ce = e.slugs) == null ? void 0 : Ce.answer) || ((qe = e.slugs) == null ? void 0 : qe.question) || "").toLowerCase().slice(-15)}`, D = document.getElementById(oe), ve = document.getElementById(`${oe}-input`);
8833
+ ve && ve.focus(), D && D.scrollIntoView({ behavior: "smooth" });
8837
8834
  }, 0);
8838
8835
  }, J = () => {
8839
8836
  V(!1);
@@ -8845,8 +8842,8 @@ const Me = "discussion_", Vc = 280, on = ({
8845
8842
  }, re = [
8846
8843
  {
8847
8844
  text: y.formatMessage({ id: `${Me}moreMenu_report` }),
8848
- onClick: (D) => {
8849
- D.stopPropagation();
8845
+ onClick: (A) => {
8846
+ A.stopPropagation();
8850
8847
  },
8851
8848
  href: `mailto:community@apolitical.co?subject=${encodeURI(
8852
8849
  y.formatMessage({ id: `${Me}report_subject` })
@@ -8874,8 +8871,8 @@ const Me = "discussion_", Vc = 280, on = ({
8874
8871
  },
8875
8872
  {
8876
8873
  text: y.formatMessage({ id: `${Me}moreMenu_delete` }),
8877
- onClick: (D) => {
8878
- D.preventDefault(), D.stopPropagation(), V(!0);
8874
+ onClick: (A) => {
8875
+ A.preventDefault(), A.stopPropagation(), V(!0);
8879
8876
  },
8880
8877
  icon: "trash",
8881
8878
  className: "gtm-trackable",
@@ -8898,8 +8895,8 @@ const Me = "discussion_", Vc = 280, on = ({
8898
8895
  editing: B.isEditing,
8899
8896
  "has-link": m.post && !B.isEditing
8900
8897
  }),
8901
- onClick: (D) => {
8902
- !m.post || B.isEditing || (D.preventDefault(), D.stopPropagation(), window.location.href = m.post);
8898
+ onClick: (A) => {
8899
+ !m.post || B.isEditing || (A.preventDefault(), A.stopPropagation(), window.location.href = m.post);
8903
8900
  },
8904
8901
  children: [
8905
8902
  !B.isEditing && /* @__PURE__ */ i.jsx(
@@ -8989,8 +8986,8 @@ const Me = "discussion_", Vc = 280, on = ({
8989
8986
  "li",
8990
8987
  {
8991
8988
  className: "action-button",
8992
- onClick: (D) => {
8993
- D.preventDefault(), D.stopPropagation(), m.comments && (window.location.href = m.comments), typeof d == "function" && d();
8989
+ onClick: (A) => {
8990
+ A.preventDefault(), A.stopPropagation(), m.comments && (window.location.href = m.comments), typeof d == "function" && d();
8994
8991
  },
8995
8992
  children: [
8996
8993
  /* @__PURE__ */ i.jsx(
@@ -9083,7 +9080,7 @@ const Me = "discussion_", Vc = 280, on = ({
9083
9080
  {
9084
9081
  id: "discussion_delete_text",
9085
9082
  values: {
9086
- p: (D) => /* @__PURE__ */ i.jsx("p", { children: D }),
9083
+ p: (A) => /* @__PURE__ */ i.jsx("p", { children: A }),
9087
9084
  action: y.formatMessage({
9088
9085
  id: `discussion_action_${e.type}`
9089
9086
  })
@@ -9095,14 +9092,14 @@ const Me = "discussion_", Vc = 280, on = ({
9095
9092
  ] })
9096
9093
  });
9097
9094
  };
9098
- const Dn = "discussion_responses_", Yc = ({ type: t = "answer", responses: e = 0 }) => {
9095
+ const An = "discussion_responses_", Yc = ({ type: t = "answer", responses: e = 0 }) => {
9099
9096
  const n = Q();
9100
9097
  return e = parseInt(e), /* @__PURE__ */ i.jsxs("div", { className: "responses-heading", children: [
9101
9098
  /* @__PURE__ */ i.jsx("h4", { children: n.formatMessage(
9102
- { id: `${Dn}title` },
9103
- { action: n.formatMessage({ id: `${Dn}${t}` }), count: e }
9099
+ { id: `${An}title` },
9100
+ { action: n.formatMessage({ id: `${An}${t}` }), count: e }
9104
9101
  ) }),
9105
- e === 0 && /* @__PURE__ */ i.jsx("p", { children: $e(n.formatMessage, `${Dn}empty`, t, t) })
9102
+ e === 0 && /* @__PURE__ */ i.jsx("p", { children: $e(n.formatMessage, `${An}empty`, t, t) })
9106
9103
  ] });
9107
9104
  };
9108
9105
  const Kc = ({
@@ -9115,7 +9112,7 @@ const Kc = ({
9115
9112
  form: r,
9116
9113
  children: a
9117
9114
  }) => {
9118
- const s = Q(), o = Ne(ur), c = Dt(a, {
9115
+ const s = Q(), o = Ne(ur), c = At(a, {
9119
9116
  element: "li"
9120
9117
  });
9121
9118
  return /* @__PURE__ */ i.jsxs("div", { className: "thread-wrapper", children: [
@@ -9288,7 +9285,7 @@ const si = (t) => {
9288
9285
  });
9289
9286
  document.dispatchEvent(e);
9290
9287
  };
9291
- let ca, An = 0;
9288
+ let ca, Dn = 0;
9292
9289
  const oi = () => {
9293
9290
  se(() => (document.addEventListener("discussionPostAdded", t), () => {
9294
9291
  document.removeEventListener(
@@ -9303,10 +9300,10 @@ const oi = () => {
9303
9300
  clearTimeout(ca);
9304
9301
  const r = document.getElementById(n);
9305
9302
  if (r) {
9306
- r.scrollIntoView({ behavior: "smooth", block: "start" }), An = 0;
9303
+ r.scrollIntoView({ behavior: "smooth", block: "start" }), Dn = 0;
9307
9304
  return;
9308
9305
  }
9309
- An++, !(An > 10) && (ca = setTimeout(() => {
9306
+ Dn++, !(Dn > 10) && (ca = setTimeout(() => {
9310
9307
  t(e);
9311
9308
  }, 50));
9312
9309
  };
@@ -10569,10 +10566,10 @@ const El = ({
10569
10566
  var J;
10570
10567
  return ((J = H == null ? void 0 : H.user) == null ? void 0 : J.id) === (v == null ? void 0 : v.id);
10571
10568
  }) : !1, M = U ? U == null ? void 0 : U.id : "", I = !!U, O = (((L = E == null ? void 0 : E.like) == null ? void 0 : L.length) || 0) > 0 ? (V = E == null ? void 0 : E.like) == null ? void 0 : V.map((H) => {
10572
- var J, re, D;
10569
+ var J, re, A;
10573
10570
  return {
10574
10571
  id: (J = H == null ? void 0 : H.user) == null ? void 0 : J.id,
10575
- name: (D = (re = H == null ? void 0 : H.user) == null ? void 0 : re.data) == null ? void 0 : D.name
10572
+ name: (A = (re = H == null ? void 0 : H.user) == null ? void 0 : re.data) == null ? void 0 : A.name
10576
10573
  };
10577
10574
  }) : !1, S = b == null ? void 0 : b.user, T = (S == null ? void 0 : S.id) === (v == null ? void 0 : v.id), x = sn(a, T), C = typeof b.data.content == "string" ? (ee = b == null ? void 0 : b.data) == null ? void 0 : ee.content : (
10578
10575
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
@@ -10672,14 +10669,14 @@ const El = ({
10672
10669
  ),
10673
10670
  u == null ? void 0 : u.map((E) => {
10674
10671
  var V, ee, j, N, Z, z, W, X, Y, H, J, re;
10675
- const { id: k, own_children: w, latest_children: U, children_counts: M } = E, R = (((V = w == null ? void 0 : w.like) == null ? void 0 : V.length) || 0) > 0 ? (ee = w == null ? void 0 : w.like) == null ? void 0 : ee.find((D) => {
10672
+ const { id: k, own_children: w, latest_children: U, children_counts: M } = E, R = (((V = w == null ? void 0 : w.like) == null ? void 0 : V.length) || 0) > 0 ? (ee = w == null ? void 0 : w.like) == null ? void 0 : ee.find((A) => {
10676
10673
  var oe;
10677
- return ((oe = D == null ? void 0 : D.user) == null ? void 0 : oe.id) === (_ == null ? void 0 : _.id);
10678
- }) : !1, O = R ? R == null ? void 0 : R.id : "", S = !!R, x = (((j = U == null ? void 0 : U.like) == null ? void 0 : j.length) || 0) > 0 ? (N = U == null ? void 0 : U.like) == null ? void 0 : N.map((D) => {
10679
- var oe, A, ve;
10674
+ return ((oe = A == null ? void 0 : A.user) == null ? void 0 : oe.id) === (_ == null ? void 0 : _.id);
10675
+ }) : !1, O = R ? R == null ? void 0 : R.id : "", S = !!R, x = (((j = U == null ? void 0 : U.like) == null ? void 0 : j.length) || 0) > 0 ? (N = U == null ? void 0 : U.like) == null ? void 0 : N.map((A) => {
10676
+ var oe, D, ve;
10680
10677
  return {
10681
- id: (oe = D == null ? void 0 : D.user) == null ? void 0 : oe.id,
10682
- name: (ve = (A = D == null ? void 0 : D.user) == null ? void 0 : A.data) == null ? void 0 : ve.name
10678
+ id: (oe = A == null ? void 0 : A.user) == null ? void 0 : oe.id,
10679
+ name: (ve = (D = A == null ? void 0 : A.user) == null ? void 0 : D.data) == null ? void 0 : ve.name
10683
10680
  };
10684
10681
  }) : !1, C = E == null ? void 0 : E.user, B = (C == null ? void 0 : C.id) === (_ == null ? void 0 : _.id), F = sn(r, B), L = typeof E.data.content == "string" ? (Z = E == null ? void 0 : E.data) == null ? void 0 : Z.content : (
10685
10682
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
@@ -10719,7 +10716,7 @@ const El = ({
10719
10716
  createContent: () => null,
10720
10717
  deleteContent: () => b({ replyId: k }),
10721
10718
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
10722
- updateContent: (D, { body: oe }) => g({ replyId: k, content: oe })
10719
+ updateContent: (A, { body: oe }) => g({ replyId: k, content: oe })
10723
10720
  },
10724
10721
  likes: {
10725
10722
  createLike: () => v({ replyId: k }),
@@ -10864,7 +10861,7 @@ const Cd = ({
10864
10861
  }
10865
10862
  }) => {
10866
10863
  var R, O, S, T, x, C, B, F, L, V;
10867
- const l = Q(), f = Ne(Ae), {
10864
+ const l = Q(), f = Ne(De), {
10868
10865
  activity: d,
10869
10866
  error: m,
10870
10867
  isLoading: p,
@@ -11058,13 +11055,13 @@ export {
11058
11055
  kc as CardBlock,
11059
11056
  hd as Carousel,
11060
11057
  Ta as CollapsibleSection,
11061
- Dc as Columns,
11058
+ Ac as Columns,
11062
11059
  gd as CommunityDetails,
11063
11060
  wd as ContactFooter,
11064
11061
  Yo as ContactForm,
11065
11062
  Pa as Contributors,
11066
11063
  ur as ConversationContext,
11067
- Ac as CookieBanner,
11064
+ Dc as CookieBanner,
11068
11065
  pd as Directory,
11069
11066
  zc as DiscussionConversation,
11070
11067
  dr as DiscussionForm,
@@ -11117,7 +11114,7 @@ export {
11117
11114
  ld as PasswordRules,
11118
11115
  Bt as Pill,
11119
11116
  nt as ProfilePicture,
11120
- As as ProgressBar,
11117
+ Ds as ProgressBar,
11121
11118
  dd as Rating,
11122
11119
  Sl as RepliesFeed,
11123
11120
  Yc as ResponsesHeading,
@@ -11134,7 +11131,7 @@ export {
11134
11131
  ud as Toggle,
11135
11132
  ps as Tooltip,
11136
11133
  jd as TopLevelPage,
11137
- Ae as UserContext,
11134
+ De as UserContext,
11138
11135
  ks as UserProvider,
11139
11136
  be as VisuallyHidden,
11140
11137
  Lo as addAriaProps,