@apolitical/component-library 6.1.1 → 6.1.2-ac.0

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,6 +1,6 @@
1
1
  import ne, { memo as nn, useState as le, useEffect as de, useRef as ke, useMemo as Jt, forwardRef as eo, Children as ws, createContext as At, useContext as Me, useCallback as Ne, lazy as vr, useReducer as br, Suspense as Ic, Fragment as Wr, useLayoutEffect as Ch, Component as Eh } from "react";
2
2
  import { useIntl as ce, FormattedMessage as mt, IntlProvider as _h, createIntl as kh } from "react-intl";
3
- import Pn from "lodash.clonedeep";
3
+ import Nn from "lodash.clonedeep";
4
4
  import Fh from "lodash.set";
5
5
  import Lc from "react-dom";
6
6
  import Xt from "markdown-to-jsx";
@@ -14,7 +14,7 @@ import qc from "lodash.get";
14
14
  import { ErrorBoundary as Oh } from "react-error-boundary";
15
15
  import { ReactMultiEmail as Ph } from "react-multi-email";
16
16
  var ia = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
17
- function qn(e) {
17
+ function Un(e) {
18
18
  return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
19
19
  }
20
20
  function Uc(e) {
@@ -75,7 +75,7 @@ var Wc = { exports: {} };
75
75
  })();
76
76
  })(Wc);
77
77
  var Nh = Wc.exports;
78
- const K = /* @__PURE__ */ qn(Nh), Mh = ({
78
+ const K = /* @__PURE__ */ Un(Nh), Mh = ({
79
79
  element: e = "span",
80
80
  showOnFocus: t = !0,
81
81
  children: n,
@@ -369,7 +369,7 @@ function Ih() {
369
369
  } finally {
370
370
  Y = !1, S.current = He, L(), Error.prepareStackTrace = $e;
371
371
  }
372
- var Yn = M ? M.displayName || M.name : "", Jo = Yn ? V(Yn) : "";
372
+ var Gn = M ? M.displayName || M.name : "", Jo = Gn ? V(Gn) : "";
373
373
  return typeof M == "function" && te.set(M, Jo), Jo;
374
374
  }
375
375
  function ge(M, oe, fe) {
@@ -565,9 +565,9 @@ function Ih() {
565
565
  } else
566
566
  St.setExtraStackFrame(null);
567
567
  }
568
- var Kn;
569
- Kn = !1;
570
- function Zn(M) {
568
+ var Zn;
569
+ Zn = !1;
570
+ function Yn(M) {
571
571
  return typeof M == "object" && M !== null && M.$$typeof === t;
572
572
  }
573
573
  function Ko() {
@@ -626,15 +626,15 @@ Check the top-level render call using <` + fe + ">.");
626
626
  if (Te(M))
627
627
  for (var fe = 0; fe < M.length; fe++) {
628
628
  var Ce = M[fe];
629
- Zn(Ce) && Yo(Ce, oe);
629
+ Yn(Ce) && Yo(Ce, oe);
630
630
  }
631
- else if (Zn(M))
631
+ else if (Yn(M))
632
632
  M._store && (M._store.validated = !0);
633
633
  else if (M) {
634
634
  var $e = b(M);
635
635
  if (typeof $e == "function" && $e !== M.entries)
636
636
  for (var He = $e.call(M), Pe; !(Pe = He.next()).done; )
637
- Zn(Pe.value) && Yo(Pe.value, oe);
637
+ Yn(Pe.value) && Yo(Pe.value, oe);
638
638
  }
639
639
  }
640
640
  }
@@ -655,8 +655,8 @@ Check the top-level render call using <` + fe + ">.");
655
655
  if (fe) {
656
656
  var Ce = k(oe);
657
657
  ze(fe, M.props, "prop", Ce, M);
658
- } else if (oe.PropTypes !== void 0 && !Kn) {
659
- Kn = !0;
658
+ } else if (oe.PropTypes !== void 0 && !Zn) {
659
+ Zn = !0;
660
660
  var $e = k(oe);
661
661
  w("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", $e || "Unknown");
662
662
  }
@@ -694,8 +694,8 @@ Check the top-level render call using <` + fe + ">.");
694
694
  if (Mt !== void 0)
695
695
  if (Ce)
696
696
  if (Te(Mt)) {
697
- for (var Yn = 0; Yn < Mt.length; Yn++)
698
- Go(Mt[Yn], M);
697
+ for (var Gn = 0; Gn < Mt.length; Gn++)
698
+ Go(Mt[Gn], M);
699
699
  Object.freeze && Object.freeze(Mt);
700
700
  } else
701
701
  w("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
@@ -951,7 +951,7 @@ const tu = {}, xr = eo(
951
951
  }
952
952
  ), di = (e, t) => {
953
953
  Array.isArray(t) || (t = [t]);
954
- const n = Pn(e);
954
+ const n = Nn(e);
955
955
  return t.forEach(({ type: r, value: a }) => {
956
956
  Fh(n, r, a);
957
957
  }), n;
@@ -988,7 +988,7 @@ function G_(e) {
988
988
  "--icon": `url(${dn}icons/${e}.svg)`
989
989
  } : {};
990
990
  }
991
- const jn = {
991
+ const On = {
992
992
  milliseconds: {
993
993
  inSecond: 1e3,
994
994
  inMinute: 6e4,
@@ -1012,13 +1012,13 @@ const jn = {
1012
1012
  } catch {
1013
1013
  return "";
1014
1014
  }
1015
- const a = t / jn.milliseconds.inHour, i = Math.floor(t / jn.milliseconds.inDay);
1015
+ const a = t / On.milliseconds.inHour, i = Math.floor(t / On.milliseconds.inDay);
1016
1016
  if (i < 1)
1017
1017
  return a < 1 ? { path: "now" } : { path: "hours", number: Math.floor(a) };
1018
1018
  if (i < 7)
1019
1019
  return { path: "days", number: i };
1020
1020
  const s = Math.floor(i / 7);
1021
- return s <= jn.year.weeks ? { path: "weeks", number: s } : { path: "years", number: Math.floor(i / jn.year.days) };
1021
+ return s <= On.year.weeks ? { path: "weeks", number: s } : { path: "years", number: Math.floor(i / On.year.days) };
1022
1022
  }, qa = (e) => {
1023
1023
  const n = (e || /* @__PURE__ */ new Date()).toUTCString();
1024
1024
  return new Date(n);
@@ -1032,11 +1032,11 @@ const jn = {
1032
1032
  }
1033
1033
  switch (n) {
1034
1034
  case "seconds":
1035
- return r / jn.milliseconds.inSecond <= t;
1035
+ return r / On.milliseconds.inSecond <= t;
1036
1036
  case "minutes":
1037
- return r / jn.milliseconds.inMinute <= t;
1037
+ return r / On.milliseconds.inMinute <= t;
1038
1038
  case "hours":
1039
- return r / jn.milliseconds.inHour <= t;
1039
+ return r / On.milliseconds.inHour <= t;
1040
1040
  }
1041
1041
  return !1;
1042
1042
  }, Yh = (e, t) => {
@@ -1227,6 +1227,7 @@ Thank you for helping to protect the Apolitical community from abusive content.`
1227
1227
  discussion_moreMenu_report: "Report",
1228
1228
  discussion_comments_screenReader: "See {count, plural, =0 {0 comments} one {# comment} other {# comments}}",
1229
1229
  discussion_comments: "{count, plural, =0 {0 comments} one {# comment} other {# comments}}",
1230
+ discussion_comments_loading: "... comments",
1230
1231
  discussion_responses_answer: "Answers",
1231
1232
  discussion_responses_comment: "Comments",
1232
1233
  discussion_responses_title: "{action} ({count})",
@@ -1964,7 +1965,7 @@ const Q_ = ({ image: e, className: t = "", testId: n }) => /* @__PURE__ */ c.jsx
1964
1965
  "data-testid": n || "image-container",
1965
1966
  children: e && /* @__PURE__ */ c.jsx(wr, { image: { ...e }, className: "image" })
1966
1967
  }
1967
- ), Un = ({
1968
+ ), Wn = ({
1968
1969
  href: e,
1969
1970
  children: t,
1970
1971
  fallbackElement: n,
@@ -2194,7 +2195,7 @@ const Vt = ({
2194
2195
  }
2195
2196
  );
2196
2197
  };
2197
- const Wn = ({
2198
+ const Vn = ({
2198
2199
  variant: e = "empty",
2199
2200
  text: t = !1,
2200
2201
  button: n = !1,
@@ -2960,7 +2961,7 @@ const En = ({
2960
2961
  ...p,
2961
2962
  children: /* @__PURE__ */ c.jsxs(c.Fragment, { children: [
2962
2963
  /* @__PURE__ */ c.jsxs(
2963
- Un,
2964
+ Wn,
2964
2965
  {
2965
2966
  href: P,
2966
2967
  gtmType: o,
@@ -3817,7 +3818,7 @@ var ep = Fs.exports;
3817
3818
  * tabbable 6.2.0
3818
3819
  * @license MIT, https://github.com/focus-trap/tabbable/blob/master/LICENSE
3819
3820
  */
3820
- var dd = ["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])"], Wa = /* @__PURE__ */ dd.join(","), fd = typeof Element > "u", $n = fd ? function() {
3821
+ var dd = ["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])"], Wa = /* @__PURE__ */ dd.join(","), fd = typeof Element > "u", In = fd ? function() {
3821
3822
  } : Element.prototype.matches || Element.prototype.msMatchesSelector || Element.prototype.webkitMatchesSelector, Va = !fd && Element.prototype.getRootNode ? function(e) {
3822
3823
  var t;
3823
3824
  return e == null || (t = e.getRootNode) === null || t === void 0 ? void 0 : t.call(e);
@@ -3835,7 +3836,7 @@ var dd = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])",
3835
3836
  if (Ha(t))
3836
3837
  return [];
3837
3838
  var a = Array.prototype.slice.apply(t.querySelectorAll(Wa));
3838
- return n && $n.call(t, Wa) && a.unshift(t), a = a.filter(r), a;
3839
+ return n && In.call(t, Wa) && a.unshift(t), a = a.filter(r), a;
3839
3840
  }, md = function e(t, n, r) {
3840
3841
  for (var a = [], i = Array.from(t); i.length; ) {
3841
3842
  var s = i.shift();
@@ -3847,7 +3848,7 @@ var dd = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])",
3847
3848
  candidates: u
3848
3849
  });
3849
3850
  } else {
3850
- var d = $n.call(s, Wa);
3851
+ var d = In.call(s, Wa);
3851
3852
  d && r.filter(s) && (n || !t.includes(s)) && a.push(s);
3852
3853
  var h = s.shadowRoot || // check for an undisclosed shadow
3853
3854
  typeof r.getShadowRoot == "function" && r.getShadowRoot(s), m = !Ha(h, !1) && (!r.shadowRootFilter || r.shadowRootFilter(s));
@@ -3923,8 +3924,8 @@ var dd = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])",
3923
3924
  var r = n.displayCheck, a = n.getShadowRoot;
3924
3925
  if (getComputedStyle(t).visibility === "hidden")
3925
3926
  return !0;
3926
- var i = $n.call(t, "details>summary:first-of-type"), s = i ? t.parentElement : t;
3927
- if ($n.call(s, "details:not([open]) *"))
3927
+ var i = In.call(t, "details>summary:first-of-type"), s = i ? t.parentElement : t;
3928
+ if (In.call(s, "details:not([open]) *"))
3928
3929
  return !0;
3929
3930
  if (!r || r === "full" || r === "legacy-full") {
3930
3931
  if (typeof a == "function") {
@@ -3950,7 +3951,7 @@ var dd = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])",
3950
3951
  for (var r = 0; r < n.children.length; r++) {
3951
3952
  var a = n.children.item(r);
3952
3953
  if (a.tagName === "LEGEND")
3953
- return $n.call(n, "fieldset[disabled] *") ? !0 : !a.contains(t);
3954
+ return In.call(n, "fieldset[disabled] *") ? !0 : !a.contains(t);
3954
3955
  }
3955
3956
  return !0;
3956
3957
  }
@@ -3999,21 +4000,21 @@ var dd = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])",
3999
4000
  flatten: !0,
4000
4001
  getShadowRoot: n.getShadowRoot
4001
4002
  }) : r = hd(t, n.includeContainer, Ka.bind(null, n)), r;
4002
- }, Tn = function(t, n) {
4003
+ }, Sn = function(t, n) {
4003
4004
  if (n = n || {}, !t)
4004
4005
  throw new Error("No node provided");
4005
- return $n.call(t, Wa) === !1 ? !1 : As(n, t);
4006
+ return In.call(t, Wa) === !1 ? !1 : As(n, t);
4006
4007
  }, pp = /* @__PURE__ */ dd.concat("iframe").join(","), ja = function(t, n) {
4007
4008
  if (n = n || {}, !t)
4008
4009
  throw new Error("No node provided");
4009
- return $n.call(t, pp) === !1 ? !1 : Ka(n, t);
4010
+ return In.call(t, pp) === !1 ? !1 : Ka(n, t);
4010
4011
  };
4011
4012
  const gp = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
4012
4013
  __proto__: null,
4013
4014
  focusable: bd,
4014
4015
  getTabIndex: Dn,
4015
4016
  isFocusable: ja,
4016
- isTabbable: Tn,
4017
+ isTabbable: Sn,
4017
4018
  tabbable: vd
4018
4019
  }, Symbol.toStringTag, { value: "Module" }));
4019
4020
  /*!
@@ -4191,9 +4192,9 @@ var _u = {
4191
4192
  }, m = function() {
4192
4193
  if (s.containerGroups = s.containers.map(function(F) {
4193
4194
  var k = vd(F, i.tabbableOptions), O = bd(F, i.tabbableOptions), j = k.length > 0 ? k[0] : void 0, q = k.length > 0 ? k[k.length - 1] : void 0, U = O.find(function(x) {
4194
- return Tn(x);
4195
+ return Sn(x);
4195
4196
  }), ie = O.slice().reverse().find(function(x) {
4196
- return Tn(x);
4197
+ return Sn(x);
4197
4198
  }), ee = !!k.find(function(x) {
4198
4199
  return Dn(x) > 0;
4199
4200
  });
@@ -4229,9 +4230,9 @@ var _u = {
4229
4230
  nextTabbableNode: function(J) {
4230
4231
  var re = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !0, _ = k.indexOf(J);
4231
4232
  return _ < 0 ? re ? O.slice(O.indexOf(J) + 1).find(function(B) {
4232
- return Tn(B);
4233
+ return Sn(B);
4233
4234
  }) : O.slice(0, O.indexOf(J)).reverse().find(function(B) {
4234
- return Tn(B);
4235
+ return Sn(B);
4235
4236
  }) : k[_ + (re ? 1 : -1)];
4236
4237
  }
4237
4238
  };
@@ -4273,7 +4274,7 @@ var _u = {
4273
4274
  var N = S.firstTabbableNode;
4274
4275
  return k === N;
4275
4276
  });
4276
- if (x < 0 && (ee.container === k || ja(k, i.tabbableOptions) && !Tn(k, i.tabbableOptions) && !ee.nextTabbableNode(k, !1)) && (x = ie), x >= 0) {
4277
+ if (x < 0 && (ee.container === k || ja(k, i.tabbableOptions) && !Sn(k, i.tabbableOptions) && !ee.nextTabbableNode(k, !1)) && (x = ie), x >= 0) {
4277
4278
  var J = x === 0 ? s.tabbableGroups.length - 1 : x - 1, re = s.tabbableGroups[J];
4278
4279
  U = Dn(k) >= 0 ? re.lastTabbableNode : re.lastDomTabbableNode;
4279
4280
  } else
@@ -4283,7 +4284,7 @@ var _u = {
4283
4284
  var N = S.lastTabbableNode;
4284
4285
  return k === N;
4285
4286
  });
4286
- if (_ < 0 && (ee.container === k || ja(k, i.tabbableOptions) && !Tn(k, i.tabbableOptions) && !ee.nextTabbableNode(k)) && (_ = ie), _ >= 0) {
4287
+ if (_ < 0 && (ee.container === k || ja(k, i.tabbableOptions) && !Sn(k, i.tabbableOptions) && !ee.nextTabbableNode(k)) && (_ = ie), _ >= 0) {
4287
4288
  var B = _ === s.tabbableGroups.length - 1 ? 0 : _ + 1, L = s.tabbableGroups[B];
4288
4289
  U = Dn(k) >= 0 ? L.firstTabbableNode : L.firstDomTabbableNode;
4289
4290
  } else
@@ -4787,7 +4788,7 @@ fo.defaultProps = {
4787
4788
  _createFocusTrap: $p
4788
4789
  };
4789
4790
  var zp = fo;
4790
- const qp = /* @__PURE__ */ qn(zp);
4791
+ const qp = /* @__PURE__ */ Un(zp);
4791
4792
  const Fn = ({
4792
4793
  id: e = "content-overlay",
4793
4794
  isOpen: t = !1,
@@ -5222,7 +5223,7 @@ const Yp = ({
5222
5223
  return null;
5223
5224
  const j = {};
5224
5225
  return D !== O && (j.tabIndex = -1), /* @__PURE__ */ c.jsx("li", { "data-index": O, children: /* @__PURE__ */ c.jsx(
5225
- Un,
5226
+ Wn,
5226
5227
  {
5227
5228
  href: k.id ? `/profiles/${k.id}` : void 0,
5228
5229
  gtmContext: "Likes",
@@ -5952,7 +5953,7 @@ const ak = ({
5952
5953
  const [F, k] = le(null), O = () => {
5953
5954
  k(b.length), w();
5954
5955
  };
5955
- return Fd(), g ? /* @__PURE__ */ c.jsx(Wn, { variant: "error", text: g.message }) : /* @__PURE__ */ c.jsxs("section", { children: [
5956
+ return Fd(), g ? /* @__PURE__ */ c.jsx(Vn, { variant: "error", text: g.message }) : /* @__PURE__ */ c.jsxs("section", { children: [
5956
5957
  /* @__PURE__ */ c.jsx(
5957
5958
  fh,
5958
5959
  {
@@ -7360,7 +7361,7 @@ const Sg = 3e3, jg = ({
7360
7361
  )
7361
7362
  ] });
7362
7363
  };
7363
- const Gn = "discussion_", Og = ({
7364
+ const Tn = "discussion_", Og = ({
7364
7365
  className: e,
7365
7366
  gtmContext: t,
7366
7367
  contentType: n,
@@ -7372,15 +7373,15 @@ const Gn = "discussion_", Og = ({
7372
7373
  }) => {
7373
7374
  const l = ce(), u = [];
7374
7375
  return o && o.reportData && u.push({
7375
- text: l.formatMessage({ id: `${Gn}moreMenu_report` }),
7376
+ text: l.formatMessage({ id: `${Tn}moreMenu_report` }),
7376
7377
  onClick: (d) => {
7377
7378
  d.stopPropagation();
7378
7379
  },
7379
7380
  href: `mailto:community@apolitical.co?subject=${encodeURI(
7380
- l.formatMessage({ id: `${Gn}report_subject` })
7381
+ l.formatMessage({ id: `${Tn}report_subject` })
7381
7382
  )}&body=${encodeURI(
7382
7383
  l.formatMessage(
7383
- { id: `${Gn}report_body` },
7384
+ { id: `${Tn}report_body` },
7384
7385
  {
7385
7386
  contentType: n || "",
7386
7387
  contentSlug: o && o.reportData && o.contentSlug || "",
@@ -7426,10 +7427,15 @@ const Gn = "discussion_", Og = ({
7426
7427
  "data-gtm-event-context": t,
7427
7428
  "data-gtm-event-type": `answer-${n}-click`,
7428
7429
  screenreaderText: l.formatMessage(
7429
- { id: `${Gn}comments_screenReader` },
7430
+ { id: `${Tn}comments_screenReader` },
7430
7431
  { count: a.count }
7431
7432
  ),
7432
- children: l.formatMessage({ id: `${Gn}comments` }, { count: a.count })
7433
+ children: l.formatMessage(
7434
+ {
7435
+ id: a.countIsLoading ? `${Tn}comments_loading` : `${Tn}comments`
7436
+ },
7437
+ { count: a.count }
7438
+ )
7433
7439
  }
7434
7440
  ) }) : /* @__PURE__ */ c.jsx(c.Fragment, {}),
7435
7441
  i ? /* @__PURE__ */ c.jsx("li", { children: /* @__PURE__ */ c.jsx(
@@ -7439,7 +7445,7 @@ const Gn = "discussion_", Og = ({
7439
7445
  onClick: i.functions.onClick,
7440
7446
  icon: { icon: "speech-bubble_square" },
7441
7447
  "data-testid": "reply",
7442
- children: l.formatMessage({ id: `${Gn}reply` })
7448
+ children: l.formatMessage({ id: `${Tn}reply` })
7443
7449
  }
7444
7450
  ) }) : /* @__PURE__ */ c.jsx(c.Fragment, {}),
7445
7451
  s ? /* @__PURE__ */ c.jsx(
@@ -7485,7 +7491,7 @@ const ok = ({ breadcrumbs: e, cutoff: t = 20, className: n = "" }) => {
7485
7491
  children: r.formatMessage({ id: "breadcrumbs_currentPage" })
7486
7492
  }
7487
7493
  ),
7488
- /* @__PURE__ */ c.jsx(Un, { href: s ? void 0 : i, ...l, children: cr(a, t) })
7494
+ /* @__PURE__ */ c.jsx(Wn, { href: s ? void 0 : i, ...l, children: cr(a, t) })
7489
7495
  ] }, `${window.btoa(a)}_${o}`);
7490
7496
  }
7491
7497
  ) })
@@ -7636,7 +7642,7 @@ const fa = "languageSwitcher_", uk = ({
7636
7642
  }
7637
7643
  };
7638
7644
  }
7639
- return /* @__PURE__ */ c.jsx("li", { children: /* @__PURE__ */ c.jsx(Un, { ...w, fallbackElement: "span", children: Ei[b] }) }, b);
7645
+ return /* @__PURE__ */ c.jsx("li", { children: /* @__PURE__ */ c.jsx(Wn, { ...w, fallbackElement: "span", children: Ei[b] }) }, b);
7640
7646
  }) }),
7641
7647
  s !== "short" && !f && /* @__PURE__ */ c.jsx("p", { children: u.formatMessage({
7642
7648
  id: `${fa}translation_${t ? "original" : n ? "human" : "machine"}`
@@ -8766,7 +8772,7 @@ const Jn = {
8766
8772
  type: o,
8767
8773
  required: p,
8768
8774
  "aria-required": p,
8769
- functions: Pn(a),
8775
+ functions: Nn(a),
8770
8776
  value: u
8771
8777
  };
8772
8778
  const E = ($) => {
@@ -8851,7 +8857,7 @@ const Jn = {
8851
8857
  ] })
8852
8858
  ) });
8853
8859
  }, Xg = (e, t) => {
8854
- const { type: n, payload: r } = t, a = e.errors ? Pn(e.errors) : {}, i = e.values ? Pn(e.values) : {};
8860
+ const { type: n, payload: r } = t, a = e.errors ? Nn(e.errors) : {}, i = e.values ? Nn(e.values) : {};
8855
8861
  switch (n) {
8856
8862
  case "updateValue":
8857
8863
  if (r != null && r.key && a[r == null ? void 0 : r.key] && delete a[r == null ? void 0 : r.key], r != null && r.key) {
@@ -8882,7 +8888,7 @@ const Jn = {
8882
8888
  onFailure: u = () => {
8883
8889
  },
8884
8890
  intl: d
8885
- } = r, h = Pn(Object.keys(a));
8891
+ } = r, h = Nn(Object.keys(a));
8886
8892
  for (const m of s)
8887
8893
  if (m.validation)
8888
8894
  for (let p = 0; p < m.validation.length; p++) {
@@ -9107,7 +9113,7 @@ const mn = ({
9107
9113
  },
9108
9114
  /* @__PURE__ */ c.jsxs(c.Fragment, { children: [
9109
9115
  O != null && O.general ? /* @__PURE__ */ c.jsx(
9110
- Wn,
9116
+ Vn,
9111
9117
  {
9112
9118
  variant: "error",
9113
9119
  text: z.formatMessage({ id: "form_error_generalError" })
@@ -9351,7 +9357,7 @@ var sv = lv, Md = "֑-߿יִ-﷽ﹰ-ﻼ", Rd = "A-Za-zÀ-ÖØ-öø-ʸ̀-֐ࠀ-῿
9351
9357
  function lv(e) {
9352
9358
  return e = String(e || ""), ov.test(e) ? "rtl" : uv.test(e) ? "ltr" : "neutral";
9353
9359
  }
9354
- const $d = /* @__PURE__ */ qn(sv);
9360
+ const $d = /* @__PURE__ */ Un(sv);
9355
9361
  function cv(e) {
9356
9362
  var t = typeof e;
9357
9363
  return e != null && (t == "object" || t == "function");
@@ -9460,7 +9466,7 @@ function o0(e, t, n) {
9460
9466
  return D.cancel = C, D.flush = A, D;
9461
9467
  }
9462
9468
  var qd = o0;
9463
- const u0 = /* @__PURE__ */ qn(qd);
9469
+ const u0 = /* @__PURE__ */ Un(qd);
9464
9470
  var l0 = qd, c0 = bo, d0 = "Expected a function";
9465
9471
  function f0(e, t, n) {
9466
9472
  var r = !0, a = !0;
@@ -9473,7 +9479,7 @@ function f0(e, t, n) {
9473
9479
  });
9474
9480
  }
9475
9481
  var h0 = f0;
9476
- const m0 = /* @__PURE__ */ qn(h0), zu = (e) => typeof e == "object" && e != null && e.nodeType === 1, qu = (e, t) => (!t || e !== "hidden") && e !== "visible" && e !== "clip", Ii = (e, t) => {
9482
+ const m0 = /* @__PURE__ */ Un(h0), zu = (e) => typeof e == "object" && e != null && e.nodeType === 1, qu = (e, t) => (!t || e !== "hidden") && e !== "visible" && e !== "clip", Ii = (e, t) => {
9477
9483
  if (e.clientHeight < e.scrollHeight || e.clientWidth < e.scrollWidth) {
9478
9484
  const n = getComputedStyle(e, null);
9479
9485
  return qu(n.overflowY, t) || qu(n.overflowX, t) || ((r) => {
@@ -9610,10 +9616,10 @@ function kt(e, ...t) {
9610
9616
  );
9611
9617
  }
9612
9618
  var mr = Object.getPrototypeOf;
9613
- function In(e) {
9619
+ function Ln(e) {
9614
9620
  return !!e && !!e[Ot];
9615
9621
  }
9616
- function Ln(e) {
9622
+ function zn(e) {
9617
9623
  var t;
9618
9624
  return e ? Wd(e) || Array.isArray(e) || !!e[Vu] || !!((t = e.constructor) != null && t[Vu]) || mi(e) || pi(e) : !1;
9619
9625
  }
@@ -9652,7 +9658,7 @@ function mi(e) {
9652
9658
  function pi(e) {
9653
9659
  return e instanceof Set;
9654
9660
  }
9655
- function Sn(e) {
9661
+ function jn(e) {
9656
9662
  return e.copy_ || e.base_;
9657
9663
  }
9658
9664
  function Ss(e, t) {
@@ -9687,7 +9693,7 @@ function Ss(e, t) {
9687
9693
  }
9688
9694
  }
9689
9695
  function yo(e, t = !1) {
9690
- return gi(e) || In(e) || !Ln(e) || (hi(e) > 1 && (e.set = e.add = e.clear = e.delete = D0), Object.freeze(e), t && Object.entries(e).forEach(([n, r]) => yo(r, !0))), e;
9696
+ return gi(e) || Ln(e) || !zn(e) || (hi(e) > 1 && (e.set = e.add = e.clear = e.delete = D0), Object.freeze(e), t && Object.entries(e).forEach(([n, r]) => yo(r, !0))), e;
9691
9697
  }
9692
9698
  function D0() {
9693
9699
  kt(2);
@@ -9696,7 +9702,7 @@ function gi(e) {
9696
9702
  return Object.isFrozen(e);
9697
9703
  }
9698
9704
  var w0 = {};
9699
- function zn(e) {
9705
+ function qn(e) {
9700
9706
  const t = w0[e];
9701
9707
  return t || kt(0, e), t;
9702
9708
  }
@@ -9716,7 +9722,7 @@ function C0(e, t) {
9716
9722
  };
9717
9723
  }
9718
9724
  function Hu(e, t) {
9719
- t && (zn("Patches"), e.patches_ = [], e.inversePatches_ = [], e.patchListener_ = t);
9725
+ t && (qn("Patches"), e.patches_ = [], e.inversePatches_ = [], e.patchListener_ = t);
9720
9726
  }
9721
9727
  function js(e) {
9722
9728
  Os(e), e.drafts_.forEach(E0), e.drafts_ = null;
@@ -9734,7 +9740,7 @@ function E0(e) {
9734
9740
  function Zu(e, t) {
9735
9741
  t.unfinalizedDrafts_ = t.drafts_.length;
9736
9742
  const n = t.drafts_[0];
9737
- return e !== void 0 && e !== n ? (n[Ot].modified_ && (js(t), kt(4)), Ln(e) && (e = ei(t, e), t.parent_ || ti(t, e)), t.patches_ && zn("Patches").generateReplacementPatches_(
9743
+ return e !== void 0 && e !== n ? (n[Ot].modified_ && (js(t), kt(4)), zn(e) && (e = ei(t, e), t.parent_ || ti(t, e)), t.patches_ && qn("Patches").generateReplacementPatches_(
9738
9744
  n[Ot].base_,
9739
9745
  e,
9740
9746
  t.patches_,
@@ -9761,7 +9767,7 @@ function ei(e, t, n) {
9761
9767
  r.type_ === 3 && (i = new Set(a), a.clear(), s = !0), Xa(
9762
9768
  i,
9763
9769
  (o, l) => Yu(e, r, a, o, l, n, s)
9764
- ), ti(e, a, !1), n && e.patches_ && zn("Patches").generatePatches_(
9770
+ ), ti(e, a, !1), n && e.patches_ && qn("Patches").generatePatches_(
9765
9771
  r,
9766
9772
  n,
9767
9773
  e.patches_,
@@ -9771,16 +9777,16 @@ function ei(e, t, n) {
9771
9777
  return r.copy_;
9772
9778
  }
9773
9779
  function Yu(e, t, n, r, a, i, s) {
9774
- if (process.env.NODE_ENV !== "production" && a === n && kt(5), In(a)) {
9780
+ if (process.env.NODE_ENV !== "production" && a === n && kt(5), Ln(a)) {
9775
9781
  const o = i && t && t.type_ !== 3 && // Set objects are atomic since they have no keys.
9776
9782
  !Ts(t.assigned_, r) ? i.concat(r) : void 0, l = ei(e, a, o);
9777
- if (Vd(n, r, l), In(l))
9783
+ if (Vd(n, r, l), Ln(l))
9778
9784
  e.canAutoFreeze_ = !1;
9779
9785
  else
9780
9786
  return;
9781
9787
  } else
9782
9788
  s && n.add(a);
9783
- if (Ln(a) && !gi(a)) {
9789
+ if (zn(a) && !gi(a)) {
9784
9790
  if (!e.immer_.autoFreeze_ && e.unfinalizedDrafts_ < 1)
9785
9791
  return;
9786
9792
  ei(e, a), (!t || !t.scope_.parent_) && typeof r != "symbol" && Object.prototype.propertyIsEnumerable.call(n, r) && ti(e, a);
@@ -9822,24 +9828,24 @@ var xo = {
9822
9828
  get(e, t) {
9823
9829
  if (t === Ot)
9824
9830
  return e;
9825
- const n = Sn(e);
9831
+ const n = jn(e);
9826
9832
  if (!Ts(n, t))
9827
9833
  return k0(e, n, t);
9828
9834
  const r = n[t];
9829
- return e.finalized_ || !Ln(r) ? r : r === Li(e.base_, t) ? (zi(e), e.copy_[t] = Ns(r, e)) : r;
9835
+ return e.finalized_ || !zn(r) ? r : r === Li(e.base_, t) ? (zi(e), e.copy_[t] = Ns(r, e)) : r;
9830
9836
  },
9831
9837
  has(e, t) {
9832
- return t in Sn(e);
9838
+ return t in jn(e);
9833
9839
  },
9834
9840
  ownKeys(e) {
9835
- return Reflect.ownKeys(Sn(e));
9841
+ return Reflect.ownKeys(jn(e));
9836
9842
  },
9837
9843
  set(e, t, n) {
9838
- const r = Kd(Sn(e), t);
9844
+ const r = Kd(jn(e), t);
9839
9845
  if (r != null && r.set)
9840
9846
  return r.set.call(e.draft_, n), !0;
9841
9847
  if (!e.modified_) {
9842
- const a = Li(Sn(e), t), i = a == null ? void 0 : a[Ot];
9848
+ const a = Li(jn(e), t), i = a == null ? void 0 : a[Ot];
9843
9849
  if (i && i.base_ === n)
9844
9850
  return e.copy_[t] = n, e.assigned_[t] = !1, !0;
9845
9851
  if (x0(n, a) && (n !== void 0 || Ts(e.base_, t)))
@@ -9856,7 +9862,7 @@ var xo = {
9856
9862
  // Note: We never coerce `desc.value` into an Immer draft, because we can't make
9857
9863
  // the same guarantee in ES5 mode.
9858
9864
  getOwnPropertyDescriptor(e, t) {
9859
- const n = Sn(e), r = Reflect.getOwnPropertyDescriptor(n, t);
9865
+ const n = jn(e), r = Reflect.getOwnPropertyDescriptor(n, t);
9860
9866
  return r && {
9861
9867
  writable: !0,
9862
9868
  configurable: e.type_ !== 1 || t !== "length",
@@ -9887,7 +9893,7 @@ Zr.set = function(e, t, n) {
9887
9893
  };
9888
9894
  function Li(e, t) {
9889
9895
  const n = e[Ot];
9890
- return (n ? Sn(n) : e)[t];
9896
+ return (n ? jn(n) : e)[t];
9891
9897
  }
9892
9898
  function k0(e, t, n) {
9893
9899
  var a;
@@ -9931,7 +9937,7 @@ var F0 = class {
9931
9937
  }
9932
9938
  typeof n != "function" && kt(6), r !== void 0 && typeof r != "function" && kt(7);
9933
9939
  let a;
9934
- if (Ln(t)) {
9940
+ if (zn(t)) {
9935
9941
  const i = Ku(this), s = Ns(t, void 0);
9936
9942
  let o = !0;
9937
9943
  try {
@@ -9943,7 +9949,7 @@ var F0 = class {
9943
9949
  } else if (!t || typeof t != "object") {
9944
9950
  if (a = n(t), a === void 0 && (a = t), a === Ud && (a = void 0), this.autoFreeze_ && yo(a, !0), r) {
9945
9951
  const i = [], s = [];
9946
- zn("Patches").generateReplacementPatches_(t, a, i, s), r(i, s);
9952
+ qn("Patches").generateReplacementPatches_(t, a, i, s), r(i, s);
9947
9953
  }
9948
9954
  return a;
9949
9955
  } else
@@ -9958,7 +9964,7 @@ var F0 = class {
9958
9964
  }, typeof (e == null ? void 0 : e.autoFreeze) == "boolean" && this.setAutoFreeze(e.autoFreeze), typeof (e == null ? void 0 : e.useStrictShallowCopy) == "boolean" && this.setUseStrictShallowCopy(e.useStrictShallowCopy);
9959
9965
  }
9960
9966
  createDraft(e) {
9961
- Ln(e) || kt(8), In(e) && (e = A0(e));
9967
+ zn(e) || kt(8), Ln(e) && (e = A0(e));
9962
9968
  const t = Ku(this), n = Ns(e, void 0);
9963
9969
  return n[Ot].isManual_ = !0, Os(t), n;
9964
9970
  }
@@ -9994,22 +10000,22 @@ var F0 = class {
9994
10000
  }
9995
10001
  }
9996
10002
  n > -1 && (t = t.slice(n + 1));
9997
- const r = zn("Patches").applyPatches_;
9998
- return In(e) ? r(e, t) : this.produce(
10003
+ const r = qn("Patches").applyPatches_;
10004
+ return Ln(e) ? r(e, t) : this.produce(
9999
10005
  e,
10000
10006
  (a) => r(a, t)
10001
10007
  );
10002
10008
  }
10003
10009
  };
10004
10010
  function Ns(e, t) {
10005
- const n = mi(e) ? zn("MapSet").proxyMap_(e, t) : pi(e) ? zn("MapSet").proxySet_(e, t) : _0(e, t);
10011
+ const n = mi(e) ? qn("MapSet").proxyMap_(e, t) : pi(e) ? qn("MapSet").proxySet_(e, t) : _0(e, t);
10006
10012
  return (t ? t.scope_ : Hd()).drafts_.push(n), n;
10007
10013
  }
10008
10014
  function A0(e) {
10009
- return In(e) || kt(10, e), Zd(e);
10015
+ return Ln(e) || kt(10, e), Zd(e);
10010
10016
  }
10011
10017
  function Zd(e) {
10012
- if (!Ln(e) || gi(e))
10018
+ if (!zn(e) || gi(e))
10013
10019
  return e;
10014
10020
  const t = e[Ot];
10015
10021
  let n;
@@ -10477,7 +10483,7 @@ var P0 = (e, t, n) => {
10477
10483
  try {
10478
10484
  n = P0(e, n, t);
10479
10485
  } finally {
10480
- e.children = Qu(e.children), n ? e.selection = In(n) ? Qu(n) : n : e.selection = null;
10486
+ e.children = Qu(e.children), n ? e.selection = Ln(n) ? Qu(n) : n : e.selection = null;
10481
10487
  }
10482
10488
  }
10483
10489
  }, M0 = {
@@ -13968,12 +13974,12 @@ var Ky = function(t, n) {
13968
13974
  }
13969
13975
  };
13970
13976
  return e;
13971
- }, Nn = [], Yy = function() {
13972
- return Nn.some(function(e) {
13977
+ }, Mn = [], Yy = function() {
13978
+ return Mn.some(function(e) {
13973
13979
  return e.activeTargets.length > 0;
13974
13980
  });
13975
13981
  }, Gy = function() {
13976
- return Nn.some(function(e) {
13982
+ return Mn.some(function(e) {
13977
13983
  return e.skippedTargets.length > 0;
13978
13984
  });
13979
13985
  }, Bl = "ResizeObserver loop completed with undelivered notifications.", Qy = function() {
@@ -13985,16 +13991,16 @@ var Ky = function(t, n) {
13985
13991
  (function(e) {
13986
13992
  e.BORDER_BOX = "border-box", e.CONTENT_BOX = "content-box", e.DEVICE_PIXEL_CONTENT_BOX = "device-pixel-content-box";
13987
13993
  })(Gr || (Gr = {}));
13988
- var Mn = function(e) {
13994
+ var Rn = function(e) {
13989
13995
  return Object.freeze(e);
13990
13996
  }, Jy = function() {
13991
13997
  function e(t, n) {
13992
- this.inlineSize = t, this.blockSize = n, Mn(this);
13998
+ this.inlineSize = t, this.blockSize = n, Rn(this);
13993
13999
  }
13994
14000
  return e;
13995
14001
  }(), Xd = function() {
13996
14002
  function e(t, n, r, a) {
13997
- return this.x = t, this.y = n, this.width = r, this.height = a, this.top = this.y, this.left = this.x, this.bottom = this.top + this.height, this.right = this.left + this.width, Mn(this);
14003
+ return this.x = t, this.y = n, this.width = r, this.height = a, this.top = this.y, this.left = this.x, this.bottom = this.top + this.height, this.right = this.left + this.width, Rn(this);
13998
14004
  }
13999
14005
  return e.prototype.toJSON = function() {
14000
14006
  var t = this, n = t.x, r = t.y, a = t.top, i = t.right, s = t.bottom, o = t.left, l = t.width, u = t.height;
@@ -14036,7 +14042,7 @@ var Mn = function(e) {
14036
14042
  return parseFloat(e || "0");
14037
14043
  }, ur = function(e, t, n) {
14038
14044
  return e === void 0 && (e = 0), t === void 0 && (t = 0), n === void 0 && (n = !1), new Jy((n ? t : e) || 0, (n ? e : t) || 0);
14039
- }, jl = Mn({
14045
+ }, jl = Rn({
14040
14046
  devicePixelContentBoxSize: ur(),
14041
14047
  borderBoxSize: ur(),
14042
14048
  contentBoxSize: ur(),
@@ -14046,7 +14052,7 @@ var Mn = function(e) {
14046
14052
  return ba.get(e);
14047
14053
  if (ef(e))
14048
14054
  return ba.set(e, jl), jl;
14049
- var n = getComputedStyle(e), r = _o(e) && e.ownerSVGElement && e.getBBox(), a = !t1 && n.boxSizing === "border-box", i = e1.test(n.writingMode || ""), s = !r && Sl.test(n.overflowY || ""), o = !r && Sl.test(n.overflowX || ""), l = r ? 0 : Zt(n.paddingTop), u = r ? 0 : Zt(n.paddingRight), d = r ? 0 : Zt(n.paddingBottom), h = r ? 0 : Zt(n.paddingLeft), m = r ? 0 : Zt(n.borderTopWidth), p = r ? 0 : Zt(n.borderRightWidth), v = r ? 0 : Zt(n.borderBottomWidth), f = r ? 0 : Zt(n.borderLeftWidth), b = h + u, g = l + d, w = f + p, C = m + v, A = o ? e.offsetHeight - C - e.clientHeight : 0, D = s ? e.offsetWidth - w - e.clientWidth : 0, E = a ? b + w : 0, T = a ? g + C : 0, I = r ? r.width : Zt(n.width) - E - D, P = r ? r.height : Zt(n.height) - T - A, z = I + b + D + w, $ = P + g + A + C, F = Mn({
14055
+ var n = getComputedStyle(e), r = _o(e) && e.ownerSVGElement && e.getBBox(), a = !t1 && n.boxSizing === "border-box", i = e1.test(n.writingMode || ""), s = !r && Sl.test(n.overflowY || ""), o = !r && Sl.test(n.overflowX || ""), l = r ? 0 : Zt(n.paddingTop), u = r ? 0 : Zt(n.paddingRight), d = r ? 0 : Zt(n.paddingBottom), h = r ? 0 : Zt(n.paddingLeft), m = r ? 0 : Zt(n.borderTopWidth), p = r ? 0 : Zt(n.borderRightWidth), v = r ? 0 : Zt(n.borderBottomWidth), f = r ? 0 : Zt(n.borderLeftWidth), b = h + u, g = l + d, w = f + p, C = m + v, A = o ? e.offsetHeight - C - e.clientHeight : 0, D = s ? e.offsetWidth - w - e.clientWidth : 0, E = a ? b + w : 0, T = a ? g + C : 0, I = r ? r.width : Zt(n.width) - E - D, P = r ? r.height : Zt(n.height) - T - A, z = I + b + D + w, $ = P + g + A + C, F = Rn({
14050
14056
  devicePixelContentBoxSize: ur(Math.round(I * devicePixelRatio), Math.round(P * devicePixelRatio), i),
14051
14057
  borderBoxSize: ur(z, $, i),
14052
14058
  contentBoxSize: ur(I, P, i),
@@ -14066,7 +14072,7 @@ var Mn = function(e) {
14066
14072
  }, n1 = function() {
14067
14073
  function e(t) {
14068
14074
  var n = tf(t);
14069
- this.target = t, this.contentRect = n.contentRect, this.borderBoxSize = Mn([n.borderBoxSize]), this.contentBoxSize = Mn([n.contentBoxSize]), this.devicePixelContentBoxSize = Mn([n.devicePixelContentBoxSize]);
14075
+ this.target = t, this.contentRect = n.contentRect, this.borderBoxSize = Rn([n.borderBoxSize]), this.contentBoxSize = Rn([n.contentBoxSize]), this.devicePixelContentBoxSize = Rn([n.devicePixelContentBoxSize]);
14070
14076
  }
14071
14077
  return e;
14072
14078
  }(), rf = function(e) {
@@ -14077,7 +14083,7 @@ var Mn = function(e) {
14077
14083
  return t;
14078
14084
  }, r1 = function() {
14079
14085
  var e = 1 / 0, t = [];
14080
- Nn.forEach(function(s) {
14086
+ Mn.forEach(function(s) {
14081
14087
  if (s.activeTargets.length !== 0) {
14082
14088
  var o = [];
14083
14089
  s.activeTargets.forEach(function(u) {
@@ -14094,7 +14100,7 @@ var Mn = function(e) {
14094
14100
  }
14095
14101
  return e;
14096
14102
  }, Ol = function(e) {
14097
- Nn.forEach(function(n) {
14103
+ Mn.forEach(function(n) {
14098
14104
  n.activeTargets.splice(0, n.activeTargets.length), n.skippedTargets.splice(0, n.skippedTargets.length), n.observationTargets.forEach(function(a) {
14099
14105
  a.isActive() && (rf(a.target) > e ? n.activeTargets.push(a) : n.skippedTargets.push(a));
14100
14106
  });
@@ -14215,10 +14221,10 @@ var Mn = function(e) {
14215
14221
  ya.set(t, r);
14216
14222
  }, e.observe = function(t, n, r) {
14217
14223
  var a = ya.get(t), i = a.observationTargets.length === 0;
14218
- Rl(a.observationTargets, n) < 0 && (i && Nn.push(a), a.observationTargets.push(new h1(n, r && r.box)), Ml(1), Ms.schedule());
14224
+ Rl(a.observationTargets, n) < 0 && (i && Mn.push(a), a.observationTargets.push(new h1(n, r && r.box)), Ml(1), Ms.schedule());
14219
14225
  }, e.unobserve = function(t, n) {
14220
14226
  var r = ya.get(t), a = Rl(r.observationTargets, n), i = r.observationTargets.length === 1;
14221
- a >= 0 && (i && Nn.splice(Nn.indexOf(r), 1), r.observationTargets.splice(a, 1), Ml(-1));
14227
+ a >= 0 && (i && Mn.splice(Mn.indexOf(r), 1), r.observationTargets.splice(a, 1), Ml(-1));
14222
14228
  }, e.disconnect = function(t) {
14223
14229
  var n = this, r = ya.get(t);
14224
14230
  r.observationTargets.slice().forEach(function(a) {
@@ -14445,7 +14451,7 @@ var Ao = /* @__PURE__ */ At(null), An = () => {
14445
14451
  return e;
14446
14452
  }, cf = parseInt(ne.version.split(".")[0], 10), C1 = typeof navigator < "u" && typeof window < "u" && /iPad|iPhone|iPod/.test(navigator.userAgent) && !window.MSStream, $l = typeof navigator < "u" && /Mac OS X/.test(navigator.userAgent), xt = typeof navigator < "u" && /Android/.test(navigator.userAgent), ar = typeof navigator < "u" && /^(?!.*Seamonkey)(?=.*Firefox).*/i.test(navigator.userAgent), Nr = typeof navigator < "u" && /AppleWebKit(?!.*Chrome)/i.test(navigator.userAgent), E1 = typeof navigator < "u" && /Edge?\/(?:[0-6][0-9]|[0-7][0-8])(?:\.)/i.test(navigator.userAgent), df = typeof navigator < "u" && /Chrome/i.test(navigator.userAgent), _1 = typeof navigator < "u" && /Chrome?\/(?:[0-7][0-5]|[0-6][0-9])(?:\.)/i.test(navigator.userAgent), k1 = xt && typeof navigator < "u" && /Chrome?\/(?:[0-5]?\d)(?:\.)/i.test(navigator.userAgent), F1 = typeof navigator < "u" && /^(?!.*Seamonkey)(?=.*Firefox\/(?:[0-7][0-9]|[0-8][0-6])(?:\.)).*/i.test(navigator.userAgent), A1 = typeof navigator < "u" && /.*UCBrowser/.test(navigator.userAgent), B1 = typeof navigator < "u" && /.*Wechat/.test(navigator.userAgent) && !/.*MacWechat/.test(navigator.userAgent), Na = typeof window < "u" && typeof window.document < "u" && typeof window.document.createElement < "u", vn = (!_1 || !k1) && !E1 && // globalThis is undefined in older browsers
14447
14453
  typeof globalThis < "u" && globalThis.InputEvent && // @ts-ignore The `getTargetRanges` property isn't recognized.
14448
- typeof globalThis.InputEvent.prototype.getTargetRanges == "function", Bo = /* @__PURE__ */ new WeakMap(), To = /* @__PURE__ */ new WeakMap(), ff = /* @__PURE__ */ new WeakMap(), Ma = /* @__PURE__ */ new WeakMap(), Rs = /* @__PURE__ */ new WeakMap(), Jr = /* @__PURE__ */ new WeakMap(), Rn = /* @__PURE__ */ new WeakMap(), ai = /* @__PURE__ */ new WeakMap(), bi = /* @__PURE__ */ new WeakMap(), $s = /* @__PURE__ */ new WeakMap(), Cn = /* @__PURE__ */ new WeakMap(), On = /* @__PURE__ */ new WeakMap(), Lr = /* @__PURE__ */ new WeakMap(), Is = /* @__PURE__ */ new WeakMap(), So = /* @__PURE__ */ new WeakMap(), Ut = /* @__PURE__ */ new WeakMap(), ln = /* @__PURE__ */ new WeakMap(), _t = /* @__PURE__ */ new WeakMap(), yn = /* @__PURE__ */ new WeakMap(), xn = /* @__PURE__ */ new WeakMap(), hf = /* @__PURE__ */ new WeakMap(), gr = Symbol("placeholder"), mf = Symbol("mark-placeholder"), T1 = globalThis.Text, jo = (e) => e && e.ownerDocument && e.ownerDocument.defaultView || null, S1 = (e) => _n(e) && e.nodeType === 8, It = (e) => _n(e) && e.nodeType === 1, _n = (e) => {
14454
+ typeof globalThis.InputEvent.prototype.getTargetRanges == "function", Bo = /* @__PURE__ */ new WeakMap(), To = /* @__PURE__ */ new WeakMap(), ff = /* @__PURE__ */ new WeakMap(), Ma = /* @__PURE__ */ new WeakMap(), Rs = /* @__PURE__ */ new WeakMap(), Jr = /* @__PURE__ */ new WeakMap(), $n = /* @__PURE__ */ new WeakMap(), ai = /* @__PURE__ */ new WeakMap(), bi = /* @__PURE__ */ new WeakMap(), $s = /* @__PURE__ */ new WeakMap(), Cn = /* @__PURE__ */ new WeakMap(), Pn = /* @__PURE__ */ new WeakMap(), Lr = /* @__PURE__ */ new WeakMap(), Is = /* @__PURE__ */ new WeakMap(), So = /* @__PURE__ */ new WeakMap(), Ut = /* @__PURE__ */ new WeakMap(), ln = /* @__PURE__ */ new WeakMap(), _t = /* @__PURE__ */ new WeakMap(), yn = /* @__PURE__ */ new WeakMap(), xn = /* @__PURE__ */ new WeakMap(), hf = /* @__PURE__ */ new WeakMap(), gr = Symbol("placeholder"), mf = Symbol("mark-placeholder"), T1 = globalThis.Text, jo = (e) => e && e.ownerDocument && e.ownerDocument.defaultView || null, S1 = (e) => _n(e) && e.nodeType === 8, It = (e) => _n(e) && e.nodeType === 1, _n = (e) => {
14449
14455
  var t = jo(e);
14450
14456
  return !!t && e instanceof t.Node;
14451
14457
  }, Ls = (e) => {
@@ -14673,7 +14679,7 @@ var X = {
14673
14679
  },
14674
14680
  insertFragmentData: (e, t) => e.insertFragmentData(t),
14675
14681
  insertTextData: (e, t) => e.insertTextData(t),
14676
- isComposing: (e) => !!On.get(e),
14682
+ isComposing: (e) => !!Pn.get(e),
14677
14683
  isFocused: (e) => !!Cn.get(e),
14678
14684
  isReadOnly: (e) => !!$s.get(e),
14679
14685
  isTargetInsideNonReadonlyVoid: (e, t) => {
@@ -15208,10 +15214,10 @@ function G1(e) {
15208
15214
  ln.delete(t), x !== void 0 && (t.marks = x, t.onChange());
15209
15215
  }, p = (F) => {
15210
15216
  i && clearTimeout(i), i = setTimeout(() => {
15211
- On.set(t, !1), m();
15217
+ Pn.set(t, !1), m();
15212
15218
  }, H1);
15213
15219
  }, v = (F) => {
15214
- On.set(t, !0), i && (clearTimeout(i), i = null);
15220
+ Pn.set(t, !0), i && (clearTimeout(i), i = null);
15215
15221
  }, f = function() {
15216
15222
  var k = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : !1, O = Rs.get(t);
15217
15223
  if (O) {
@@ -15747,7 +15753,7 @@ var hx = (e) => {
15747
15753
  }
15748
15754
  var v = Ne((f) => {
15749
15755
  var b = bi.get(o);
15750
- f ? (b == null || b.set(d, f), Rn.set(s, f), Jr.set(f, s)) : (b == null || b.delete(d), Rn.delete(s), l.current && Jr.delete(l.current)), l.current = f;
15756
+ f ? (b == null || b.set(d, f), $n.set(s, f), Jr.set(f, s)) : (b == null || b.delete(d), $n.delete(s), l.current && Jr.delete(l.current)), l.current = f;
15751
15757
  }, [l, o, d, s]);
15752
15758
  return /* @__PURE__ */ ne.createElement("span", {
15753
15759
  "data-slate-node": "text",
@@ -15785,7 +15791,7 @@ var vx = (e) => {
15785
15791
  selection: s
15786
15792
  } = e, o = An(), l = wx(), u = o.isInline(n), d = X.findKey(o, n), h = Ne((w) => {
15787
15793
  var C = bi.get(o);
15788
- w ? (C == null || C.set(d, w), Rn.set(n, w), Jr.set(w, n)) : (C == null || C.delete(d), Rn.delete(n));
15794
+ w ? (C == null || C.set(d, w), $n.set(n, w), Jr.set(w, n)) : (C == null || C.delete(d), $n.delete(n));
15789
15795
  }, [o, d, n]), m = Ef({
15790
15796
  decorations: t,
15791
15797
  node: n,
@@ -15872,7 +15878,7 @@ var vx = (e) => {
15872
15878
  })), Bo.set(v, m), To.set(v, n);
15873
15879
  }
15874
15880
  return d;
15875
- }, _f = /* @__PURE__ */ At(!1), wx = () => Me(_f), kf = /* @__PURE__ */ At(null), Vn = () => {
15881
+ }, _f = /* @__PURE__ */ At(!1), wx = () => Me(_f), kf = /* @__PURE__ */ At(null), Hn = () => {
15876
15882
  var e = Me(kf);
15877
15883
  if (!e)
15878
15884
  throw new Error("The `useSlate` hook must be used inside the <Slate> component's context.");
@@ -16067,7 +16073,7 @@ var Ox = (e) => /* @__PURE__ */ ne.createElement(ne.Fragment, null, Ef(e)), Px =
16067
16073
  style: h = {},
16068
16074
  as: m = "div",
16069
16075
  disableDefaultStyles: p = !1
16070
- } = e, v = pr(e, Sx), f = Vn(), [b, g] = le(!1), w = ke(null), C = ke([]), [A, D] = le(), {
16076
+ } = e, v = pr(e, Sx), f = Hn(), [b, g] = le(!1), w = ke(null), C = ke([]), [A, D] = le(), {
16071
16077
  onUserInput: E,
16072
16078
  receivedUserInput: T
16073
16079
  } = Cx(), [, I] = br((B) => B + 1, 0);
@@ -16109,7 +16115,7 @@ var Ox = (e) => /* @__PURE__ */ ne.createElement(ne.Fragment, null, Ef(e)), Px =
16109
16115
  scheduleOnDOMSelectionChange: F
16110
16116
  }), Xr(() => {
16111
16117
  var B, L, S;
16112
- w.current && (S = jo(w.current)) ? (ff.set(f, S), Ma.set(f, w.current), Rn.set(f, w.current), Jr.set(w.current, f)) : Rn.delete(f);
16118
+ w.current && (S = jo(w.current)) ? (ff.set(f, S), Ma.set(f, w.current), $n.set(f, w.current), Jr.set(w.current, f)) : $n.delete(f);
16113
16119
  var {
16114
16120
  selection: N
16115
16121
  } = f, V = X.findDocumentOrShadowRoot(f), Y = V.getSelection();
@@ -16310,7 +16316,7 @@ var Ox = (e) => /* @__PURE__ */ ne.createElement(ne.Fragment, null, Ef(e)), Px =
16310
16316
  case "insertFromYank":
16311
16317
  case "insertReplacementText":
16312
16318
  case "insertText": {
16313
- N === "insertFromComposition" && X.isComposing(f) && (g(!1), On.set(f, !1)), (V == null ? void 0 : V.constructor.name) === "DataTransfer" ? X.insertData(f, V) : typeof V == "string" && (te ? C.current.push(() => y.insertText(f, V)) : y.insertText(f, V));
16319
+ N === "insertFromComposition" && X.isComposing(f) && (g(!1), Pn.set(f, !1)), (V == null ? void 0 : V.constructor.name) === "DataTransfer" ? X.insertData(f, V) : typeof V == "string" && (te ? C.current.push(() => y.insertText(f, V)) : y.insertText(f, V));
16314
16320
  break;
16315
16321
  }
16316
16322
  }
@@ -16318,7 +16324,7 @@ var Ox = (e) => /* @__PURE__ */ ne.createElement(ne.Fragment, null, Ef(e)), Px =
16318
16324
  Lr.delete(f), W && (!f.selection || !Z.equals(f.selection, W)) && Q.select(f, W);
16319
16325
  }
16320
16326
  }, [f, $, E, a, s, F]), O = Ne((B) => {
16321
- B == null ? ($.cancel(), F.cancel(), Ma.delete(f), Rn.delete(f), w.current && vn && w.current.removeEventListener("beforeinput", k)) : vn && B.addEventListener("beforeinput", k), w.current = B;
16327
+ B == null ? ($.cancel(), F.cancel(), Ma.delete(f), $n.delete(f), w.current && vn && w.current.removeEventListener("beforeinput", k)) : vn && B.addEventListener("beforeinput", k), w.current = B;
16322
16328
  }, [$, F, f, k]);
16323
16329
  Xr(() => {
16324
16330
  var B = X.getWindow(f);
@@ -16494,7 +16500,7 @@ var Ox = (e) => /* @__PURE__ */ ne.createElement(ne.Fragment, null, Ef(e)), Px =
16494
16500
  if (X.hasSelectableTarget(f, B.target)) {
16495
16501
  var L;
16496
16502
  if (X.isComposing(f) && Promise.resolve().then(() => {
16497
- g(!1), On.set(f, !1);
16503
+ g(!1), Pn.set(f, !1);
16498
16504
  }), (L = z.current) === null || L === void 0 || L.handleCompositionEnd(B), bt(B, v.onCompositionEnd) || xt)
16499
16505
  return;
16500
16506
  if (!Nr && !F1 && !C1 && !B1 && !A1 && B.data) {
@@ -16506,7 +16512,7 @@ var Ox = (e) => /* @__PURE__ */ ne.createElement(ne.Fragment, null, Ef(e)), Px =
16506
16512
  }
16507
16513
  }, [v.onCompositionEnd, f]),
16508
16514
  onCompositionUpdate: Ne((B) => {
16509
- X.hasSelectableTarget(f, B.target) && !bt(B, v.onCompositionUpdate) && (X.isComposing(f) || (g(!0), On.set(f, !0)));
16515
+ X.hasSelectableTarget(f, B.target) && !bt(B, v.onCompositionUpdate) && (X.isComposing(f) || (g(!0), Pn.set(f, !0)));
16510
16516
  }, [v.onCompositionUpdate, f]),
16511
16517
  onCompositionStart: Ne((B) => {
16512
16518
  if (X.hasSelectableTarget(f, B.target)) {
@@ -16593,7 +16599,7 @@ var Ox = (e) => /* @__PURE__ */ ne.createElement(ne.Fragment, null, Ef(e)), Px =
16593
16599
  var {
16594
16600
  nativeEvent: S
16595
16601
  } = B;
16596
- if (X.isComposing(f) && S.isComposing === !1 && (On.set(f, !1), g(!1)), bt(B, v.onKeyDown) || X.isComposing(f))
16602
+ if (X.isComposing(f) && S.isComposing === !1 && (Pn.set(f, !1), g(!1)), bt(B, v.onKeyDown) || X.isComposing(f))
16597
16603
  return;
16598
16604
  var {
16599
16605
  selection: N
@@ -17177,7 +17183,7 @@ var Ra = Object.prototype.hasOwnProperty, Tf = Object.prototype.toString, nc = O
17177
17183
  r = oc(o, n), a = oc(t, n), o !== a && (d && a && (ic(a) || (i = ac(a))) ? (i ? (i = !1, s = r && ac(r) ? r : []) : s = r && ic(r) ? r : {}, sc(o, { name: n, newValue: e(d, s, a) })) : typeof a < "u" && sc(o, { name: n, newValue: a }));
17178
17184
  return o;
17179
17185
  };
17180
- const Zi = /* @__PURE__ */ qn(Kx);
17186
+ const Zi = /* @__PURE__ */ Un(Kx);
17181
17187
  function Vs(e) {
17182
17188
  if (typeof e != "object" || e === null)
17183
17189
  return !1;
@@ -21410,7 +21416,7 @@ const xC = function(t) {
21410
21416
  }, DC = (e, t = (n) => {
21411
21417
  }) => {
21412
21418
  cD().use(yC).use(xC).process(e).then((n) => {
21413
- const r = Pn(n.result), a = (s) => {
21419
+ const r = Nn(n.result), a = (s) => {
21414
21420
  const o = s;
21415
21421
  [H.li, H.blockquote].includes(o.type) && o.children.map((l, u) => {
21416
21422
  const d = l;
@@ -21683,7 +21689,7 @@ const BC = ({
21683
21689
  onFallbackClick: e = () => {
21684
21690
  }
21685
21691
  }) => {
21686
- const t = ce(), n = Vn(), { dispatch: r, isInOverlay: a, mentionPopover: i, id: s, onMention: o } = Me(pn), { show: l, selectedUser: u, possibleUsers: d } = i, h = Bf(n, "mention-popover", `toolbar-${s}`);
21692
+ const t = ce(), n = Hn(), { dispatch: r, isInOverlay: a, mentionPopover: i, id: s, onMention: o } = Me(pn), { show: l, selectedUser: u, possibleUsers: d } = i, h = Bf(n, "mention-popover", `toolbar-${s}`);
21687
21693
  if (!l)
21688
21694
  return /* @__PURE__ */ c.jsx(c.Fragment, {});
21689
21695
  const m = Hf(a);
@@ -21780,7 +21786,7 @@ const Zf = ({ formID: e, label: t, showLabel: n }) => {
21780
21786
  "aria-pressed": s,
21781
21787
  ...o
21782
21788
  }) => {
21783
- const l = ce(), u = Vn(), {
21789
+ const l = ce(), u = Hn(), {
21784
21790
  id: d,
21785
21791
  tabbableOption: h,
21786
21792
  setFocus: m,
@@ -21943,7 +21949,7 @@ const Zf = ({ formID: e, label: t, showLabel: n }) => {
21943
21949
  n(`Error toggling block: ${a}`);
21944
21950
  }
21945
21951
  }, Tc = ({ format: e, hasDivider: t = !1 }) => {
21946
- const { setFocus: n, reportError: r } = Me(pn), a = Vn(), i = Yf(a, e);
21952
+ const { setFocus: n, reportError: r } = Me(pn), a = Hn(), i = Yf(a, e);
21947
21953
  return /* @__PURE__ */ c.jsx(
21948
21954
  Io,
21949
21955
  {
@@ -22013,7 +22019,7 @@ const OC = () => {
22013
22019
  dispatch: s,
22014
22020
  getLinkPreview: o,
22015
22021
  reportError: l
22016
- } = Me(pn), u = Vn(), d = Hx(u), h = (d == null ? void 0 : d.text) || CC(u), m = i !== !1, [p, v] = le(Ur(u)), f = Bf(u, "link-editor", `${n}-link`), b = ke(null);
22022
+ } = Me(pn), u = Hn(), d = Hx(u), h = (d == null ? void 0 : d.text) || CC(u), m = i !== !1, [p, v] = le(Ur(u)), f = Bf(u, "link-editor", `${n}-link`), b = ke(null);
22017
22023
  de(() => {
22018
22024
  var D;
22019
22025
  !p && r && ((D = b.current) == null || D.focus());
@@ -22152,7 +22158,7 @@ const OC = () => {
22152
22158
  }
22153
22159
  ) });
22154
22160
  }, PC = () => {
22155
- const e = Vn(), { setFocus: t, dispatch: n } = Me(pn), [r, a] = le(!1);
22161
+ const e = Hn(), { setFocus: t, dispatch: n } = Me(pn), [r, a] = le(!1);
22156
22162
  return de(() => {
22157
22163
  a(Ur(e));
22158
22164
  }, [e.selection]), /* @__PURE__ */ c.jsx(
@@ -22180,7 +22186,7 @@ const OC = () => {
22180
22186
  n(`Error toggling mark: ${a}`);
22181
22187
  }
22182
22188
  }, MC = ({ format: e, hasDivider: t = !1 }) => {
22183
- const { setFocus: n, reportError: r } = Me(pn), a = Vn(), i = Jf(a, e);
22189
+ const { setFocus: n, reportError: r } = Me(pn), a = Hn(), i = Jf(a, e);
22184
22190
  return /* @__PURE__ */ c.jsx(
22185
22191
  Io,
22186
22192
  {
@@ -23023,7 +23029,7 @@ function yE(e) {
23023
23029
  var n = t[1];
23024
23030
  return n ? !!(vE.test(n) || bE.test(n)) : !1;
23025
23031
  }
23026
- const xE = /* @__PURE__ */ qn(pE), DE = (e, t, n) => {
23032
+ const xE = /* @__PURE__ */ Un(pE), DE = (e, t, n) => {
23027
23033
  const { insertText: r, isInline: a } = e;
23028
23034
  try {
23029
23035
  e.isInline = (i) => {
@@ -23171,7 +23177,7 @@ const oh = ({
23171
23177
  }
23172
23178
  }, [_.children.length, z]), de(() => {
23173
23179
  P && (async () => {
23174
- let N = Pn(P);
23180
+ let N = Nn(P);
23175
23181
  if (N.includes("<")) {
23176
23182
  ea.prototype.escape = (Y) => Y;
23177
23183
  const V = new ea();
@@ -23788,7 +23794,7 @@ const kE = ({ emails: e, setEmails: t, setIsDisabled: n }) => {
23788
23794
  };
23789
23795
  return /* @__PURE__ */ c.jsxs(c.Fragment, { children: [
23790
23796
  /* @__PURE__ */ c.jsx(mn, { ...m }),
23791
- r && /* @__PURE__ */ c.jsx(Wn, { variant: "error", text: r })
23797
+ r && /* @__PURE__ */ c.jsx(Vn, { variant: "error", text: r })
23792
23798
  ] });
23793
23799
  };
23794
23800
  const AE = ({
@@ -24511,7 +24517,7 @@ const NE = {
24511
24517
  children: [
24512
24518
  v.title && /* @__PURE__ */ c.jsx("p", { className: "signup-title", children: /* @__PURE__ */ c.jsx(mt, { id: "signup_title" }) }),
24513
24519
  E && /* @__PURE__ */ c.jsx(
24514
- Wn,
24520
+ Vn,
24515
24521
  {
24516
24522
  variant: "error",
24517
24523
  text: l.formatMessage({ id: "signup_error" })
@@ -24577,7 +24583,7 @@ const NE = {
24577
24583
  }
24578
24584
  );
24579
24585
  };
24580
- const Hn = ({
24586
+ const Kn = ({
24581
24587
  children: e,
24582
24588
  className: t = "",
24583
24589
  styling: n = {},
@@ -24610,7 +24616,7 @@ const gk = ({ text: e, buttons: t, className: n = "" }) => {
24610
24616
  children: a.text
24611
24617
  });
24612
24618
  }), /* @__PURE__ */ c.jsx(
24613
- Hn,
24619
+ Kn,
24614
24620
  {
24615
24621
  className: K("download-section", n),
24616
24622
  styling: { background: "dark" },
@@ -24811,7 +24817,7 @@ const hs = "contactFooter_", yk = ({ onSuccess: e = async () => {
24811
24817
  };
24812
24818
  return de(() => (o(), window.addEventListener("resize", l), () => {
24813
24819
  clearTimeout(fs), window.removeEventListener("resize", l);
24814
- }), []), /* @__PURE__ */ c.jsx(Hn, { id: "contactForm", className: "contact-footer", children: /* @__PURE__ */ c.jsxs("div", { className: "inner-wrapper", children: [
24820
+ }), []), /* @__PURE__ */ c.jsx(Kn, { id: "contactForm", className: "contact-footer", children: /* @__PURE__ */ c.jsxs("div", { className: "inner-wrapper", children: [
24815
24821
  /* @__PURE__ */ c.jsx("h2", { children: /* @__PURE__ */ c.jsx(mt, { id: `${hs}title` }) }),
24816
24822
  /* @__PURE__ */ c.jsxs(
24817
24823
  "div",
@@ -24823,7 +24829,7 @@ const hs = "contactFooter_", yk = ({ onSuccess: e = async () => {
24823
24829
  children: [
24824
24830
  /* @__PURE__ */ c.jsxs("aside", { children: [
24825
24831
  /* @__PURE__ */ c.jsx("p", { children: /* @__PURE__ */ c.jsx(mt, { id: `${hs}text` }) }),
24826
- /* @__PURE__ */ c.jsx(Un, { className: "mailto-link", href: "mailto:hello@apolitical.co", children: /* @__PURE__ */ c.jsx(mt, { id: `${hs}email` }) })
24832
+ /* @__PURE__ */ c.jsx(Wn, { className: "mailto-link", href: "mailto:hello@apolitical.co", children: /* @__PURE__ */ c.jsx(mt, { id: `${hs}email` }) })
24827
24833
  ] }),
24828
24834
  /* @__PURE__ */ c.jsx(
24829
24835
  _E,
@@ -24836,7 +24842,7 @@ const hs = "contactFooter_", yk = ({ onSuccess: e = async () => {
24836
24842
  }
24837
24843
  )
24838
24844
  ] }) });
24839
- }, xk = ({ activeLink: e, profile: t, ...n }) => /* @__PURE__ */ c.jsx(Hn, { children: /* @__PURE__ */ c.jsx(Wg, { layout: "1-3", children: /* @__PURE__ */ c.jsxs(c.Fragment, { children: [
24845
+ }, xk = ({ activeLink: e, profile: t, ...n }) => /* @__PURE__ */ c.jsx(Kn, { children: /* @__PURE__ */ c.jsx(Wg, { layout: "1-3", children: /* @__PURE__ */ c.jsxs(c.Fragment, { children: [
24840
24846
  /* @__PURE__ */ c.jsx(Lg, { activeLink: e, profile: t }),
24841
24847
  /* @__PURE__ */ c.jsx(Cm, { ...n })
24842
24848
  ] }) }) });
@@ -25702,7 +25708,7 @@ const IE = () => {
25702
25708
  return /* @__PURE__ */ c.jsxs(c.Fragment, { children: [
25703
25709
  /* @__PURE__ */ c.jsx(ch, {}),
25704
25710
  /* @__PURE__ */ c.jsx("div", { id: "content", children: /* @__PURE__ */ c.jsx(
25705
- Wn,
25711
+ Vn,
25706
25712
  {
25707
25713
  variant: "error",
25708
25714
  text: e.formatMessage({ id: "pageLayout_error" })
@@ -25893,7 +25899,7 @@ const qE = 25, UE = ({
25893
25899
  }
25894
25900
  ),
25895
25901
  /* @__PURE__ */ c.jsx(
25896
- Un,
25902
+ Wn,
25897
25903
  {
25898
25904
  href: "/profiles/me",
25899
25905
  className: "text-small",
@@ -26501,8 +26507,8 @@ const Di = ({
26501
26507
  Re && Re.id && (v && (De.prepopulateForm = `@{{${Re.id}}}`), De.mentionData = { id: Re.id, name: Re.name }), A.updateConversation(De);
26502
26508
  }
26503
26509
  setTimeout(() => {
26504
- var rn, Kn, Zn;
26505
- const Re = `reply-form-${(t.type === "answer" ? t.slug : ((rn = t.slugs) == null ? void 0 : rn.reply) || ((Kn = t.slugs) == null ? void 0 : Kn.answer) || ((Zn = t.slugs) == null ? void 0 : Zn.question) || "").toLowerCase().slice(-15)}`, gt = document.getElementById(Re), St = document.getElementById(`${Re}-input`);
26510
+ var rn, Zn, Yn;
26511
+ const Re = `reply-form-${(t.type === "answer" ? t.slug : ((rn = t.slugs) == null ? void 0 : rn.reply) || ((Zn = t.slugs) == null ? void 0 : Zn.answer) || ((Yn = t.slugs) == null ? void 0 : Yn.question) || "").toLowerCase().slice(-15)}`, gt = document.getElementById(Re), St = document.getElementById(`${Re}-input`);
26506
26512
  St && St.focus(), gt && gt.scrollIntoView({ behavior: "smooth" });
26507
26513
  }, 0);
26508
26514
  }, Ve = async () => {
@@ -26949,7 +26955,7 @@ const JE = vr(
26949
26955
  }) => {
26950
26956
  if (i && !a)
26951
26957
  return /* @__PURE__ */ c.jsx(
26952
- Wn,
26958
+ Vn,
26953
26959
  {
26954
26960
  text: l,
26955
26961
  button: {
@@ -27218,7 +27224,7 @@ const wk = ({
27218
27224
  return /* @__PURE__ */ c.jsx(Ht, { style: { height: "400px" } });
27219
27225
  if (b || !f)
27220
27226
  return /* @__PURE__ */ c.jsx(
27221
- Wn,
27227
+ Vn,
27222
27228
  {
27223
27229
  variant: "error",
27224
27230
  text: v.formatMessage({ id: "activitySection_notFoundError" })
@@ -27724,7 +27730,7 @@ const g_ = [
27724
27730
  const g = document.getElementById(o.link.substring(1));
27725
27731
  g && g.scrollIntoView({ behavior: "smooth" });
27726
27732
  }), /* @__PURE__ */ c.jsx(
27727
- Hn,
27733
+ Kn,
27728
27734
  {
27729
27735
  className: K("banner-section", r, a, e, {
27730
27736
  "has-image": n,
@@ -27779,7 +27785,7 @@ const Bk = ({
27779
27785
  }) => {
27780
27786
  const a = {};
27781
27787
  return e && (a["--image"] = `url(${e})`), /* @__PURE__ */ c.jsx(
27782
- Hn,
27788
+ Kn,
27783
27789
  {
27784
27790
  className: K("custom-content-banner", t, r, {
27785
27791
  "has-image": e
@@ -27796,7 +27802,7 @@ const b_ = ({
27796
27802
  image: r
27797
27803
  }) => {
27798
27804
  const a = typeof n == "string" ? /* @__PURE__ */ c.jsx(dr, { children: n }) : n;
27799
- return /* @__PURE__ */ c.jsxs(Hn, { className: K("highlight-section", t), children: [
27805
+ return /* @__PURE__ */ c.jsxs(Kn, { className: K("highlight-section", t), children: [
27800
27806
  r && /* @__PURE__ */ c.jsx(
27801
27807
  "div",
27802
27808
  {
@@ -28696,7 +28702,7 @@ const Nk = ({
28696
28702
  }),
28697
28703
  ...z,
28698
28704
  children: /* @__PURE__ */ c.jsx(
28699
- Un,
28705
+ Wn,
28700
28706
  {
28701
28707
  href: P ? `/microcourses/en/${o}/${D}` : void 0,
28702
28708
  fallbackElement: "span",
@@ -28822,7 +28828,7 @@ const Ba = "notFoundError_", $k = () => {
28822
28828
  {
28823
28829
  styling: { background: "bold", circle: "small", variant: "alt-2" },
28824
28830
  additionalContent: {
28825
- appended: /* @__PURE__ */ c.jsxs(Hn, { children: [
28831
+ appended: /* @__PURE__ */ c.jsxs(Kn, { children: [
28826
28832
  /* @__PURE__ */ c.jsx(
28827
28833
  C_,
28828
28834
  {
@@ -29068,7 +29074,7 @@ export {
29068
29074
  Or as EMAILS,
29069
29075
  vk as EditSection,
29070
29076
  Hg as EmailHelperTextBox,
29071
- Wn as EmptyStateBox,
29077
+ Vn as EmptyStateBox,
29072
29078
  Bd as EnrichedUrl,
29073
29079
  Tm as FeatureFlags,
29074
29080
  Pg as Filters,
@@ -29077,7 +29083,7 @@ export {
29077
29083
  mn as Form,
29078
29084
  H as Formatting,
29079
29085
  zt as Fragment,
29080
- Hn as FullWidthSection,
29086
+ Kn as FullWidthSection,
29081
29087
  nu as GET_STREAM_USER_PREFIX,
29082
29088
  nk as GlobalProviders,
29083
29089
  ch as Header,
@@ -29101,7 +29107,7 @@ export {
29101
29107
  Yp as LikesButton,
29102
29108
  Ag as LikesFeed,
29103
29109
  Bg as LikesModal,
29104
- Un as Link,
29110
+ Wn as Link,
29105
29111
  fi as LoadMore,
29106
29112
  Lm as LoadingBlock,
29107
29113
  Ht as LoadingPlaceholder,