@apolitical/component-library 4.2.4 → 4.2.6-4622.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
@@ -132,13 +132,13 @@ var Ao;
132
132
  function lh() {
133
133
  return Ao || (Ao = 1, process.env.NODE_ENV !== "production" && function() {
134
134
  var e = re, t = Symbol.for("react.element"), n = Symbol.for("react.portal"), r = Symbol.for("react.fragment"), a = Symbol.for("react.strict_mode"), i = Symbol.for("react.profiler"), s = Symbol.for("react.provider"), o = Symbol.for("react.context"), l = Symbol.for("react.forward_ref"), u = Symbol.for("react.suspense"), c = Symbol.for("react.suspense_list"), h = Symbol.for("react.memo"), m = Symbol.for("react.lazy"), p = Symbol.for("react.offscreen"), g = Symbol.iterator, f = "@@iterator";
135
- function y(O) {
135
+ function D(O) {
136
136
  if (O === null || typeof O != "object")
137
137
  return null;
138
138
  var ae = g && O[g] || O[f];
139
139
  return typeof ae == "function" ? ae : null;
140
140
  }
141
- var D = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
141
+ var y = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
142
142
  function x(O) {
143
143
  {
144
144
  for (var ae = arguments.length, ue = new Array(ae > 1 ? ae - 1 : 0), we = 1; we < ae; we++)
@@ -148,7 +148,7 @@ function lh() {
148
148
  }
149
149
  function B(O, ae, ue) {
150
150
  {
151
- var we = D.ReactDebugCurrentFrame, Ne = we.getStackAddendum();
151
+ var we = y.ReactDebugCurrentFrame, Ne = we.getStackAddendum();
152
152
  Ne !== "" && (ae += "%s", ue = ue.concat([Ne]));
153
153
  var Le = ue.map(function(je) {
154
154
  return String(je);
@@ -282,7 +282,7 @@ function lh() {
282
282
  S < 0 && x("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
283
283
  }
284
284
  }
285
- var I = D.ReactCurrentDispatcher, H;
285
+ var I = y.ReactCurrentDispatcher, H;
286
286
  function ee(O, ae, ue) {
287
287
  {
288
288
  if (H === void 0)
@@ -408,7 +408,7 @@ function lh() {
408
408
  }
409
409
  return "";
410
410
  }
411
- var Ee = Object.prototype.hasOwnProperty, Fe = {}, Ze = D.ReactDebugCurrentFrame;
411
+ var Ee = Object.prototype.hasOwnProperty, Fe = {}, Ze = y.ReactDebugCurrentFrame;
412
412
  function He(O) {
413
413
  if (O) {
414
414
  var ae = O._owner, ue = Ae(O.type, O._source, ae ? ae.type : null);
@@ -459,7 +459,7 @@ function lh() {
459
459
  if (We(O))
460
460
  return x("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", Oe(O)), V(O);
461
461
  }
462
- var ge = D.ReactCurrentOwner, ye = {
462
+ var ge = y.ReactCurrentOwner, ye = {
463
463
  key: !0,
464
464
  ref: !0,
465
465
  __self: !0,
@@ -557,7 +557,7 @@ function lh() {
557
557
  return Dt(O, Te, ut, Ne, we, ge.current, je);
558
558
  }
559
559
  }
560
- var or = D.ReactCurrentOwner, qr = D.ReactDebugCurrentFrame;
560
+ var or = y.ReactCurrentOwner, qr = y.ReactDebugCurrentFrame;
561
561
  function On(O) {
562
562
  if (O) {
563
563
  var ae = O._owner, ue = Ae(O.type, O._source, ae ? ae.type : null);
@@ -631,7 +631,7 @@ Check the top-level render call using <` + ue + ">.");
631
631
  else if (ai(O))
632
632
  O._store && (O._store.validated = !0);
633
633
  else if (O) {
634
- var Ne = y(O);
634
+ var Ne = D(O);
635
635
  if (typeof Ne == "function" && Ne !== O.entries)
636
636
  for (var Le = Ne.call(O), je; !(je = Le.next()).done; )
637
637
  ai(je.value) && Co(je.value, ae);
@@ -738,7 +738,7 @@ function yc(e, t, n) {
738
738
  if (typeof e != "function")
739
739
  throw new TypeError("Expected a function");
740
740
  t = +t || 0;
741
- var g = !!(n = n || {}).leading, f = !("trailing" in n) || !!n.trailing, y = "maxWait" in n, D = "debounceOnServer" in n && !!n.debounceOnServer, x = y ? Math.max(+n.maxWait || 0, t) : null;
741
+ var g = !!(n = n || {}).leading, f = !("trailing" in n) || !!n.trailing, D = "maxWait" in n, y = "debounceOnServer" in n && !!n.debounceOnServer, x = D ? Math.max(+n.maxWait || 0, t) : null;
742
742
  he(function() {
743
743
  return h.current = !0, function() {
744
744
  h.current = !1;
@@ -754,7 +754,7 @@ function yc(e, t, n) {
754
754
  if (!h.current)
755
755
  return !1;
756
756
  var R = M - a.current;
757
- return !a.current || R >= t || R < 0 || y && M - i.current >= x;
757
+ return !a.current || R >= t || R < 0 || D && M - i.current >= x;
758
758
  }, T = function(M) {
759
759
  return s.current = null, f && o.current ? _(M) : (o.current = l.current = null, u.current);
760
760
  }, $ = function M() {
@@ -762,16 +762,16 @@ function yc(e, t, n) {
762
762
  if (A(R))
763
763
  return T(R);
764
764
  if (h.current) {
765
- var w = t - (R - a.current), C = y ? Math.min(w, x - (R - i.current)) : w;
765
+ var w = t - (R - a.current), C = D ? Math.min(w, x - (R - i.current)) : w;
766
766
  E(M, C);
767
767
  }
768
768
  }, N = function() {
769
- if (m || D) {
769
+ if (m || y) {
770
770
  var M = Date.now(), R = A(M);
771
771
  if (o.current = [].slice.call(arguments), l.current = r, a.current = M, R) {
772
772
  if (!s.current && h.current)
773
773
  return i.current = a.current, E($, t), g ? _(a.current) : u.current;
774
- if (y)
774
+ if (D)
775
775
  return E($, t), _(a.current);
776
776
  }
777
777
  return s.current || E($, t), u.current;
@@ -784,7 +784,7 @@ function yc(e, t, n) {
784
784
  }, N.flush = function() {
785
785
  return s.current ? T(Date.now()) : u.current;
786
786
  }, N;
787
- }, [g, y, t, x, f, p, m, D]);
787
+ }, [g, D, t, x, f, p, m, y]);
788
788
  return B;
789
789
  }
790
790
  function Dc(e, t, n) {
@@ -890,7 +890,7 @@ const Fo = {}, nr = Ps(
890
890
  callbacks: o = {},
891
891
  ...l
892
892
  }, u) => {
893
- const c = ce(), h = _e(null), m = u || h, [p, g] = de(n ? "open" : "hidden"), { extraPadding: f = !0, hasPointer: y = !1, hasForm: D = !1 } = t, { onOpen: x = () => {
893
+ const c = ce(), h = _e(null), m = u || h, [p, g] = de(n ? "open" : "hidden"), { extraPadding: f = !0, hasPointer: D = !1, hasForm: y = !1 } = t, { onOpen: x = () => {
894
894
  }, onClose: B = () => {
895
895
  } } = o;
896
896
  e || (e = Date.now().toString());
@@ -922,9 +922,9 @@ const Fo = {}, nr = Ps(
922
922
  className: Z("tooltip text-medium", p, i, {
923
923
  loading: r,
924
924
  "extra-padding": f,
925
- "has-pointer": y,
926
- bottom: y === "bottom",
927
- "has-form": D
925
+ "has-pointer": D,
926
+ bottom: D === "bottom",
927
+ "has-form": y
928
928
  }),
929
929
  ...T,
930
930
  children: /* @__PURE__ */ d.jsx("div", { className: "content", hidden: p === "hidden", children: r ? /* @__PURE__ */ d.jsx("p", { children: c.formatMessage({ id: "tooltip_loading" }) }) : typeof a == "string" ? /* @__PURE__ */ d.jsx("p", { children: a }) : a })
@@ -964,7 +964,7 @@ const Fo = {}, nr = Ps(
964
964
  ARTICLE: "microcourseArticle",
965
965
  DISCUSSION: "microcourseDiscussion",
966
966
  QUIZ: "assessmentQuiz"
967
- }, To = "SU:", ph = "Invalid token error: Logging user out...", So = /@{{([0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12})}}/g, gh = /^@(\w+)$/, FE = "200,000+", TE = "160+";
967
+ }, To = "SU:", ph = "Invalid token error: Logging user out...", So = /@{{([0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12})}}/g, gh = new RegExp("(?<=^|\\s)@([A-Za-z]+(?:[- ]?[A-Za-z]*)*)$"), FE = "200,000+", TE = "160+";
968
968
  function vh(e) {
969
969
  return e ? {
970
970
  "--icon": `url(${cn}icons/${e}.svg)`
@@ -1602,17 +1602,17 @@ const Se = ({
1602
1602
  children: h = !1,
1603
1603
  ...m
1604
1604
  }) => {
1605
- const g = Mr(typeof t == "object"), { showTooltip: f, tooltipProps: y } = wc(!!u);
1605
+ const g = Mr(typeof t == "object"), { showTooltip: f, tooltipProps: D } = wc(!!u);
1606
1606
  if (typeof t == "object" && typeof g == "number") {
1607
1607
  const _ = Object.assign({}, t), E = Cc(Object.keys(_));
1608
1608
  t = Ec(g, E, _);
1609
1609
  }
1610
1610
  !l && u && (u = "");
1611
- const D = [];
1612
- typeof t == "string" && D.push(t), r && (D.push("icon"), typeof r == "object" ? (D.push(r.icon), r.position ? D.push(r.position) : D.push("left"), r.hover && D.push(`hover_${r.hover}`), r.animate && (D.push("animate"), typeof r.animate == "string" && D.push(r.animate))) : (D.push(r), !r.includes("right") && !r.includes("left") && D.push("left"))), n.muted && D.push("muted"), n.fullWidth && D.push("full-width");
1611
+ const y = [];
1612
+ typeof t == "string" && y.push(t), r && (y.push("icon"), typeof r == "object" ? (y.push(r.icon), r.position ? y.push(r.position) : y.push("left"), r.hover && y.push(`hover_${r.hover}`), r.animate && (y.push("animate"), typeof r.animate == "string" && y.push(r.animate))) : (y.push(r), !r.includes("right") && !r.includes("left") && y.push("left"))), n.muted && y.push("muted"), n.fullWidth && y.push("full-width");
1613
1613
  const x = {
1614
1614
  ...m,
1615
- className: Z(e, o, D, {
1615
+ className: Z(e, o, y, {
1616
1616
  "no-text": !h,
1617
1617
  disabled: l,
1618
1618
  button: a
@@ -1628,7 +1628,7 @@ const Se = ({
1628
1628
  x,
1629
1629
  h || (c ? /* @__PURE__ */ d.jsx(qe, { showOnFocus: !1, children: c }) : null)
1630
1630
  );
1631
- return l && u ? /* @__PURE__ */ d.jsxs("span", { className: "button-container", ...y, children: [
1631
+ return l && u ? /* @__PURE__ */ d.jsxs("span", { className: "button-container", ...D, children: [
1632
1632
  /* @__PURE__ */ d.jsx(nr, { isOpen: f, children: u }),
1633
1633
  B
1634
1634
  ] }) : B;
@@ -1776,7 +1776,7 @@ const $r = ({ image: e, className: t, testId: n }) => {
1776
1776
  loading: u,
1777
1777
  decoding: c,
1778
1778
  fetchPriority: h
1779
- } = e, { range: m, sizes: p } = Sh(e), g = si({ format: "avif", query: s, range: m, url: o }), f = si({ format: "webp", query: s, range: m, url: o }), y = si({ format: "", query: s, range: m, url: o });
1779
+ } = e, { range: m, sizes: p } = Sh(e), g = si({ format: "avif", query: s, range: m, url: o }), f = si({ format: "webp", query: s, range: m, url: o }), D = si({ format: "", query: s, range: m, url: o });
1780
1780
  return i && i.includes("svg") ? /* @__PURE__ */ d.jsx("picture", { className: t, children: /* @__PURE__ */ d.jsx(
1781
1781
  "img",
1782
1782
  {
@@ -1803,7 +1803,7 @@ const $r = ({ image: e, className: t, testId: n }) => {
1803
1803
  /* @__PURE__ */ d.jsx(
1804
1804
  "img",
1805
1805
  {
1806
- srcSet: y,
1806
+ srcSet: D,
1807
1807
  sizes: p,
1808
1808
  src: o,
1809
1809
  alt: r,
@@ -2135,7 +2135,7 @@ const $h = ({
2135
2135
  h === "ready-to-close" && m("closing");
2136
2136
  }, [h]);
2137
2137
  const p = ({ propertyName: f }) => {
2138
- f === "max-height" && m((y) => y === "opening" ? "open" : y === "closing" ? "closed" : y);
2138
+ f === "max-height" && m((D) => D === "opening" ? "open" : D === "closing" ? "closed" : D);
2139
2139
  };
2140
2140
  if (!a)
2141
2141
  return null;
@@ -2625,7 +2625,7 @@ const Ir = ({
2625
2625
  const { name: h, image: m } = c;
2626
2626
  let { url: p } = c;
2627
2627
  t.link !== void 0 && (t.link === !1 ? p = void 0 : p = t.link);
2628
- const g = Qh(c), f = n && n.createdAt ? ss(n.createdAt) : !1, y = n && n.createdAt ? _c(n.createdAt) : "";
2628
+ const g = Qh(c), f = n && n.createdAt ? ss(n.createdAt) : !1, D = n && n.createdAt ? _c(n.createdAt) : "";
2629
2629
  return re.createElement(e, {
2630
2630
  className: Z("member text-medium", u, o),
2631
2631
  ...a,
@@ -2635,8 +2635,8 @@ const Ir = ({
2635
2635
  href: p,
2636
2636
  gtmType: s,
2637
2637
  gtmContext: i,
2638
- onClick: (D) => {
2639
- D == null || D.stopPropagation();
2638
+ onClick: (y) => {
2639
+ y == null || y.stopPropagation();
2640
2640
  },
2641
2641
  children: [
2642
2642
  /* @__PURE__ */ d.jsx(Tn, { name: h, src: m }),
@@ -2644,7 +2644,7 @@ const Ir = ({
2644
2644
  /* @__PURE__ */ d.jsxs("strong", { children: [
2645
2645
  h,
2646
2646
  n && /* @__PURE__ */ d.jsxs("span", { className: "additional-content", children: [
2647
- n.createdAt && f && /* @__PURE__ */ d.jsx("span", { className: "date", title: y, "aria-label": y, children: l.formatMessage(
2647
+ n.createdAt && f && /* @__PURE__ */ d.jsx("span", { className: "date", title: D, "aria-label": D, children: l.formatMessage(
2648
2648
  { id: `dates_${f.path}` },
2649
2649
  { number: f.number }
2650
2650
  ) }),
@@ -2683,27 +2683,27 @@ const zo = {
2683
2683
  /* @__PURE__ */ d.jsx("ul", { children: n.map((m, p) => {
2684
2684
  let g, f = "";
2685
2685
  if (p < o) {
2686
- const { name: y = "", image: D = "" } = Pc(m);
2686
+ const { name: D = "", image: y = "" } = Pc(m);
2687
2687
  if (s)
2688
2688
  return /* @__PURE__ */ d.jsx(Pt, { element: "li", className: "contributor" }, p);
2689
2689
  g = /* @__PURE__ */ d.jsx(
2690
2690
  Tn,
2691
2691
  {
2692
- name: y,
2693
- src: D,
2692
+ name: D,
2693
+ src: y,
2694
2694
  width: zo[a || "medium"],
2695
2695
  height: zo[a || "medium"]
2696
2696
  }
2697
2697
  );
2698
2698
  } else if (p === o) {
2699
- const y = (t || n.length) - o;
2699
+ const D = (t || n.length) - o;
2700
2700
  g = /* @__PURE__ */ d.jsxs(
2701
2701
  "small",
2702
2702
  {
2703
- className: Z({ "large-number": y > 99 }),
2703
+ className: Z({ "large-number": D > 99 }),
2704
2704
  children: [
2705
2705
  "+",
2706
- Bh(y, 0)
2706
+ Bh(D, 0)
2707
2707
  ]
2708
2708
  }
2709
2709
  ), f = "number-left";
@@ -2770,7 +2770,7 @@ const Vr = "emailHelperTextBox_", Xh = ({
2770
2770
  "data-gtm-event-context": "VerifyEmailBox",
2771
2771
  "data-gtm-event-type": "SendEmailClick",
2772
2772
  className: "gtm-trackable",
2773
- onClick: (y) => u(y),
2773
+ onClick: (D) => u(D),
2774
2774
  href: "#",
2775
2775
  "data-testid": "send-verify-email-click"
2776
2776
  },
@@ -2800,7 +2800,7 @@ const Vr = "emailHelperTextBox_", Xh = ({
2800
2800
  );
2801
2801
  he(
2802
2802
  () => {
2803
- let p = Vr, g = "default", f = {}, y = {};
2803
+ let p = Vr, g = "default", f = {}, D = {};
2804
2804
  switch (e) {
2805
2805
  case "gov":
2806
2806
  p += "autoApproved", g = "success";
@@ -2813,7 +2813,7 @@ const Vr = "emailHelperTextBox_", Xh = ({
2813
2813
  };
2814
2814
  break;
2815
2815
  case "pending":
2816
- p += "pendingApproval", g = "error", y = {
2816
+ p += "pendingApproval", g = "error", D = {
2817
2817
  href: "mailto:concierge@apolitical.co",
2818
2818
  className: "gtm-trackable",
2819
2819
  "data-gtm-event-context": "EmailExistsBox",
@@ -2826,7 +2826,7 @@ const Vr = "emailHelperTextBox_", Xh = ({
2826
2826
  "data-gtm-event-context": "VerifyEmailBox",
2827
2827
  "data-gtm-event-type": "SendEmailClick",
2828
2828
  className: "gtm-trackable",
2829
- onClick: (D) => u(D),
2829
+ onClick: (y) => u(y),
2830
2830
  "data-testid": "send-verify-email-click"
2831
2831
  };
2832
2832
  break;
@@ -2835,7 +2835,7 @@ const Vr = "emailHelperTextBox_", Xh = ({
2835
2835
  href: "/user-onboarding/login",
2836
2836
  "data-gtm-event-context": "EmailExistsBox",
2837
2837
  "data-gtm-event-type": "login-click"
2838
- }, y = {
2838
+ }, D = {
2839
2839
  href: "mailto:concierge@apolitical.co",
2840
2840
  className: "gtm-trackable",
2841
2841
  "data-gtm-event-context": "EmailExistsBox",
@@ -2850,7 +2850,7 @@ const Vr = "emailHelperTextBox_", Xh = ({
2850
2850
  };
2851
2851
  break;
2852
2852
  }
2853
- s({ ...i, path: p, type: g, link: f, mail: y });
2853
+ s({ ...i, path: p, type: g, link: f, mail: D });
2854
2854
  },
2855
2855
  /* eslint-disable react-hooks/exhaustive-deps */
2856
2856
  [e]
@@ -2948,8 +2948,8 @@ const Nn = {
2948
2948
  predictions: [],
2949
2949
  activePredictionIndex: -1,
2950
2950
  isPredictionSelected: !!n
2951
- }), { formatMessage: y } = ce();
2952
- r || (r = y({ id: "inputAutocomplete_placeholder" })), he(() => {
2951
+ }), { formatMessage: D } = ce();
2952
+ r || (r = D({ id: "inputAutocomplete_placeholder" })), he(() => {
2953
2953
  const _ = setTimeout(() => {
2954
2954
  g || h((E) => ({ ...E, debouncedInput: l }));
2955
2955
  }, em);
@@ -2974,7 +2974,7 @@ const Nn = {
2974
2974
  displayInput: m[p].description
2975
2975
  }));
2976
2976
  }, [p, m]);
2977
- const D = (_) => {
2977
+ const y = (_) => {
2978
2978
  [Nn.DOWN, Nn.UP, Nn.ENTER].includes(_.key) && (_.preventDefault(), _.key === Nn.DOWN && p < m.length - 1 ? f((E) => ({
2979
2979
  ...E,
2980
2980
  activePredictionIndex: p + 1
@@ -3017,7 +3017,7 @@ const Nn = {
3017
3017
  type: "text",
3018
3018
  value: u,
3019
3019
  onChange: x,
3020
- onKeyDown: D,
3020
+ onKeyDown: y,
3021
3021
  placeholder: r,
3022
3022
  name: t,
3023
3023
  id: e,
@@ -3058,7 +3058,7 @@ const Mc = ({
3058
3058
  }) => {
3059
3059
  const m = ce(), { onChange: p, ...g } = r, f = () => {
3060
3060
  t || p(c ? null : l);
3061
- }, y = /* @__PURE__ */ d.jsxs(d.Fragment, { children: [
3061
+ }, D = /* @__PURE__ */ d.jsxs(d.Fragment, { children: [
3062
3062
  /* @__PURE__ */ d.jsx(
3063
3063
  "input",
3064
3064
  {
@@ -3068,8 +3068,8 @@ const Mc = ({
3068
3068
  type: u,
3069
3069
  value: l,
3070
3070
  checked: c,
3071
- onKeyDown: (D) => {
3072
- (D.key === "Enter" || D.code === "Space") && (D.preventDefault(), D.stopPropagation(), f());
3071
+ onKeyDown: (y) => {
3072
+ (y.key === "Enter" || y.code === "Space") && (y.preventDefault(), y.stopPropagation(), f());
3073
3073
  },
3074
3074
  readOnly: !0,
3075
3075
  disabled: t
@@ -3083,15 +3083,15 @@ const Mc = ({
3083
3083
  return re.createElement(
3084
3084
  n,
3085
3085
  {
3086
- onClick: (D) => {
3087
- const x = D.target;
3088
- x.nodeName.toLowerCase() === "a" || x.parentNode && x.parentNode.nodeName.toLowerCase() === "a" || (D.preventDefault(), D.stopPropagation(), f());
3086
+ onClick: (y) => {
3087
+ const x = y.target;
3088
+ x.nodeName.toLowerCase() === "a" || x.parentNode && x.parentNode.nodeName.toLowerCase() === "a" || (y.preventDefault(), y.stopPropagation(), f());
3089
3089
  },
3090
3090
  className: Z("checkbox-wrapper", e),
3091
3091
  ...h,
3092
3092
  ...g
3093
3093
  },
3094
- y
3094
+ D
3095
3095
  );
3096
3096
  };
3097
3097
  const nm = Wt(function({
@@ -3118,23 +3118,23 @@ const rm = ({
3118
3118
  multiSelectOptions: l,
3119
3119
  id: u
3120
3120
  }) => {
3121
- const c = ce(), [h, m] = de(!1), p = r || n, g = Array.isArray(p) ? [...p] : p ? [p] : [], [f, y] = de(g);
3122
- let D;
3123
- Array.isArray(f) && f.length === 1 && typeof f[0] == "string" ? D = t && f ? t.find((T) => T.id === f[0]) : t ? t[0] : { id: "", label: "" } : Array.isArray(f) && f.length === 1 && typeof f[0] != "string" ? D = f[0] : D = { id: "", label: "" }, he(() => {
3124
- y(g);
3121
+ const c = ce(), [h, m] = de(!1), p = r || n, g = Array.isArray(p) ? [...p] : p ? [p] : [], [f, D] = de(g);
3122
+ let y;
3123
+ Array.isArray(f) && f.length === 1 && typeof f[0] == "string" ? y = t && f ? t.find((T) => T.id === f[0]) : t ? t[0] : { id: "", label: "" } : Array.isArray(f) && f.length === 1 && typeof f[0] != "string" ? y = f[0] : y = { id: "", label: "" }, he(() => {
3124
+ D(g);
3125
3125
  }, [r, n]);
3126
3126
  const { onChange: x, onMultiSelectSubmit: B, ..._ } = a, E = (T) => {
3127
3127
  if (o) {
3128
3128
  let $ = [];
3129
- f != null && f.includes(T.id) ? $ = f.filter((N) => N !== T.id) : $ = [...f, T.id], y([...$]), x && x([...$]);
3129
+ f != null && f.includes(T.id) ? $ = f.filter((N) => N !== T.id) : $ = [...f, T.id], D([...$]), x && x([...$]);
3130
3130
  } else
3131
- y([T]), x && x(T.id), m(!1);
3131
+ D([T]), x && x(T.id), m(!1);
3132
3132
  }, A = (T) => {
3133
3133
  if (T === "all") {
3134
3134
  const $ = (t == null ? void 0 : t.map((N) => N.id)) || [];
3135
- y($), x && x($);
3135
+ D($), x && x($);
3136
3136
  } else
3137
- y([]), x && x([]);
3137
+ D([]), x && x([]);
3138
3138
  };
3139
3139
  return /* @__PURE__ */ d.jsxs("div", { className: Z("dropdown-wrapper", e), children: [
3140
3140
  /* @__PURE__ */ d.jsxs(
@@ -3150,7 +3150,7 @@ const rm = ({
3150
3150
  "data-testid": "dropdown-selector",
3151
3151
  ..._,
3152
3152
  children: [
3153
- o ? `${s} · ${f.length}` : D.label,
3153
+ o ? `${s} · ${f.length}` : y.label,
3154
3154
  /* @__PURE__ */ d.jsx(nm, { direction: h ? "up" : "down" })
3155
3155
  ]
3156
3156
  }
@@ -3158,7 +3158,7 @@ const rm = ({
3158
3158
  /* @__PURE__ */ d.jsx(
3159
3159
  "select",
3160
3160
  {
3161
- defaultValue: D.id,
3161
+ defaultValue: y.id,
3162
3162
  onChange: (T) => {
3163
3163
  T.preventDefault(), T.stopPropagation();
3164
3164
  const $ = t && t.find((N) => N.id === T.target.value);
@@ -3203,7 +3203,7 @@ const rm = ({
3203
3203
  ] })
3204
3204
  ] }),
3205
3205
  /* @__PURE__ */ d.jsx("ul", { children: t == null ? void 0 : t.map((T) => {
3206
- const $ = T.id === D.id || (f == null ? void 0 : f.includes(T)) || (f == null ? void 0 : f.includes(T.id));
3206
+ const $ = T.id === y.id || (f == null ? void 0 : f.includes(T)) || (f == null ? void 0 : f.includes(T.id));
3207
3207
  return /* @__PURE__ */ d.jsx("li", { "data-testid": "dropdown-options", children: /* @__PURE__ */ d.jsxs(
3208
3208
  "button",
3209
3209
  {
@@ -3274,8 +3274,8 @@ const am = ({
3274
3274
  children: o == null ? void 0 : o.map(
3275
3275
  ({
3276
3276
  id: f,
3277
- label: y = !1,
3278
- value: D = f,
3277
+ label: D = !1,
3278
+ value: y = f,
3279
3279
  disabled: x = !1
3280
3280
  }) => {
3281
3281
  const B = `${r}_${f}`, _ = () => {
@@ -3283,10 +3283,10 @@ const am = ({
3283
3283
  return;
3284
3284
  let E;
3285
3285
  if (i) {
3286
- const A = p == null ? void 0 : p.indexOf(D);
3287
- Array.isArray(p) && A >= 0 ? (E = p, E.splice(A, 1)) : (!p || p.length === 0 ? E = [] : E = p, E.push(D));
3286
+ const A = p == null ? void 0 : p.indexOf(y);
3287
+ Array.isArray(p) && A >= 0 ? (E = p, E.splice(A, 1)) : (!p || p.length === 0 ? E = [] : E = p, E.push(y));
3288
3288
  } else
3289
- E = g === D ? void 0 : D;
3289
+ E = g === y ? void 0 : y;
3290
3290
  t.onChange(E);
3291
3291
  };
3292
3292
  return /* @__PURE__ */ d.jsx(
@@ -3295,14 +3295,14 @@ const am = ({
3295
3295
  element: "li",
3296
3296
  id: B,
3297
3297
  type: u === "checkboxes" ? "checkbox" : "radio",
3298
- shownValue: D,
3299
- value: i ? p == null ? void 0 : p.includes(D) : g === D,
3298
+ shownValue: y,
3299
+ value: i ? p == null ? void 0 : p.includes(y) : g === y,
3300
3300
  functions: {
3301
3301
  ...t,
3302
3302
  onChange: _
3303
3303
  },
3304
3304
  intlPath: n,
3305
- label: y || m.formatMessage({
3305
+ label: D || m.formatMessage({
3306
3306
  id: n ? `${n}_${f}` : f
3307
3307
  }),
3308
3308
  disabled: x
@@ -3371,9 +3371,9 @@ const Rn = {
3371
3371
  submitOnEnter: c,
3372
3372
  ...h
3373
3373
  }) => {
3374
- const m = ce(), p = l && l.some(({ condition: E }) => E === "required"), g = Is(u), f = o && Rn[o] && Rn[o].component ? Rn[o].component : zn, y = {};
3375
- o && ["checkboxes"].includes(o) ? y.element = "span" : y.htmlFor = e;
3376
- let D = {
3374
+ const m = ce(), p = l && l.some(({ condition: E }) => E === "required"), g = Is(u), f = o && Rn[o] && Rn[o].component ? Rn[o].component : zn, D = {};
3375
+ o && ["checkboxes"].includes(o) ? D.element = "span" : D.htmlFor = e;
3376
+ let y = {
3377
3377
  ...h,
3378
3378
  id: e,
3379
3379
  name: e,
@@ -3386,15 +3386,15 @@ const Rn = {
3386
3386
  };
3387
3387
  if (i > 0) {
3388
3388
  const E = Jh(i, a.onChange);
3389
- D = {
3390
- ...D,
3389
+ y = {
3390
+ ...y,
3391
3391
  ...E
3392
- }, E.functions && typeof E.functions == "object" && (D.functions = {
3393
- ...D.functions,
3392
+ }, E.functions && typeof E.functions == "object" && (y.functions = {
3393
+ ...y.functions,
3394
3394
  ...E.functions
3395
3395
  });
3396
3396
  }
3397
- o && Rn[o] && Rn[o].props && (D = { ...D, ...Rn[o].props }), o && ["checkboxes"].includes(o) && (D.intlPath = `${t}_${e}`), r && (D["aria-invalid"] = !0, D["aria-describedby"] = `error-${e}`);
3397
+ o && Rn[o] && Rn[o].props && (y = { ...y, ...Rn[o].props }), o && ["checkboxes"].includes(o) && (y.intlPath = `${t}_${e}`), r && (y["aria-invalid"] = !0, y["aria-describedby"] = `error-${e}`);
3398
3398
  const x = h.label || m.formatMessage({ id: t ? `${t}_${e}` : e }), B = ({ ...E }) => r ? re.createElement(
3399
3399
  E.as || "dd",
3400
3400
  {
@@ -3411,7 +3411,7 @@ const Rn = {
3411
3411
  /* @__PURE__ */ d.jsx(
3412
3412
  f,
3413
3413
  {
3414
- ...D,
3414
+ ...y,
3415
3415
  label: x,
3416
3416
  className: Z("field-wrapper", n)
3417
3417
  }
@@ -3424,7 +3424,7 @@ const Rn = {
3424
3424
  "data-testid": `label-${e}`
3425
3425
  });
3426
3426
  return /* @__PURE__ */ d.jsxs("dl", { className: Z("field-wrapper text-medium", n), children: [
3427
- /* @__PURE__ */ d.jsx("dt", { children: /* @__PURE__ */ d.jsxs(_, { ...y, children: [
3427
+ /* @__PURE__ */ d.jsx("dt", { children: /* @__PURE__ */ d.jsxs(_, { ...D, children: [
3428
3428
  x,
3429
3429
  p && s && /* @__PURE__ */ d.jsxs(d.Fragment, { children: [
3430
3430
  " ",
@@ -3436,7 +3436,7 @@ const Rn = {
3436
3436
  ] })
3437
3437
  ] }) }),
3438
3438
  /* @__PURE__ */ d.jsxs("dd", { children: [
3439
- /* @__PURE__ */ d.jsx(f, { ...D }),
3439
+ /* @__PURE__ */ d.jsx(f, { ...y }),
3440
3440
  /* @__PURE__ */ d.jsx(Rc, { limit: i, valueLength: g })
3441
3441
  ] }),
3442
3442
  /* @__PURE__ */ d.jsx(B, {})
@@ -3483,36 +3483,36 @@ const Rn = {
3483
3483
  if (m.validation)
3484
3484
  for (let p = 0; p < m.validation.length; p++) {
3485
3485
  const { condition: g = "required", error: f = !1 } = m.validation[p];
3486
- let y = !1;
3486
+ let D = !1;
3487
3487
  if (typeof g == "function") {
3488
- const D = g(i);
3489
- D && (y = f || D);
3488
+ const y = g(i);
3489
+ y && (D = f || y);
3490
3490
  } else {
3491
- const D = i[m.id];
3491
+ const y = i[m.id];
3492
3492
  switch (g) {
3493
3493
  case "required":
3494
- (!D || typeof D == "string" && D.trim().length === 0) && (y = f || (c == null ? void 0 : c.formatMessage({ id: "form_error_required" })));
3494
+ (!y || typeof y == "string" && y.trim().length === 0) && (D = f || (c == null ? void 0 : c.formatMessage({ id: "form_error_required" })));
3495
3495
  break;
3496
3496
  case "no-numbers": {
3497
- D && !/^([^0-9]*)$/.test(D) && (y = f || (c == null ? void 0 : c.formatMessage({ id: "form_error_numbers" })));
3497
+ y && !/^([^0-9]*)$/.test(y) && (D = f || (c == null ? void 0 : c.formatMessage({ id: "form_error_numbers" })));
3498
3498
  break;
3499
3499
  }
3500
3500
  case "valid-email": {
3501
- D && !/^(([^<>()[\]\\.,;:\s@"]+(\.[^<>()[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/.test(D) && (y = f || (c == null ? void 0 : c.formatMessage({ id: "form_error_email" })));
3501
+ y && !/^(([^<>()[\]\\.,;:\s@"]+(\.[^<>()[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/.test(y) && (D = f || (c == null ? void 0 : c.formatMessage({ id: "form_error_email" })));
3502
3502
  break;
3503
3503
  }
3504
3504
  case "valid-url": {
3505
- D && !/^(?:http(s)?:\/\/)?[\w.-]+(?:\.[\w\.-]+)+[\w\-\._~:/?#[\]@!\$&'\(\)\*\+,;=.]+$/.test(D) && (y = f || (c == null ? void 0 : c.formatMessage({ id: "form_error_url" })));
3505
+ y && !/^(?:http(s)?:\/\/)?[\w.-]+(?:\.[\w\.-]+)+[\w\-\._~:/?#[\]@!\$&'\(\)\*\+,;=.]+$/.test(y) && (D = f || (c == null ? void 0 : c.formatMessage({ id: "form_error_url" })));
3506
3506
  break;
3507
3507
  }
3508
3508
  default:
3509
3509
  console.warn("WARNING! No field validation condition has been set");
3510
3510
  }
3511
3511
  }
3512
- if (y) {
3512
+ if (D) {
3513
3513
  o({
3514
3514
  type: "addError",
3515
- payload: { key: m.id, value: y }
3515
+ payload: { key: m.id, value: D }
3516
3516
  }), h.push(m.id);
3517
3517
  break;
3518
3518
  }
@@ -3579,7 +3579,7 @@ const Lr = ({
3579
3579
  },
3580
3580
  ...g
3581
3581
  }) => {
3582
- const { customOnSubmit: f, hideButton: y, ...D } = s, x = 40, {
3582
+ const { customOnSubmit: f, hideButton: D, ...y } = s, x = 40, {
3583
3583
  shouldShowCancelButton: B = !1,
3584
3584
  shouldReset: _ = !0,
3585
3585
  showRequiredLabels: E = !0,
@@ -3665,7 +3665,7 @@ const Lr = ({
3665
3665
  }
3666
3666
  }, J = [
3667
3667
  {
3668
- ...D,
3668
+ ...y,
3669
3669
  icon: C ? { icon: "tick", position: "left" } : !1,
3670
3670
  className: "gtm-trackable",
3671
3671
  onClick: (v) => {
@@ -3744,7 +3744,7 @@ const Lr = ({
3744
3744
  X
3745
3745
  );
3746
3746
  }),
3747
- y ? null : (w || C) && f ? f : /* @__PURE__ */ d.jsx(
3747
+ D ? null : (w || C) && f ? f : /* @__PURE__ */ d.jsx(
3748
3748
  ar,
3749
3749
  {
3750
3750
  className: Z("cta", {
@@ -3816,15 +3816,15 @@ const ME = ({
3816
3816
  disabled: !0
3817
3817
  }), c = async () => {
3818
3818
  try {
3819
- const D = await n();
3819
+ const y = await n();
3820
3820
  u((x) => ({
3821
3821
  ...x,
3822
3822
  setUp: !0,
3823
- id: D && D.id,
3823
+ id: y && y.id,
3824
3824
  disabled: !1
3825
3825
  }));
3826
- } catch (D) {
3827
- u((x) => ({ ...x, setUp: !0, disabled: !0 })), a(D);
3826
+ } catch (y) {
3827
+ u((x) => ({ ...x, setUp: !0, disabled: !0 })), a(y);
3828
3828
  }
3829
3829
  };
3830
3830
  if (he(() => {
@@ -3837,10 +3837,10 @@ const ME = ({
3837
3837
  high: o.formatMessage({ id: `${g}high` }),
3838
3838
  success: o.formatMessage({ id: `${g}success` }),
3839
3839
  ...e
3840
- }, y = async (D) => {
3840
+ }, D = async (y) => {
3841
3841
  if (!(!h || p))
3842
3842
  try {
3843
- u((x) => ({ ...x, rating: D, disabled: !0 })), await r({ id: h, value: D });
3843
+ u((x) => ({ ...x, rating: y, disabled: !0 })), await r({ id: h, value: y });
3844
3844
  } catch (x) {
3845
3845
  u((B) => ({ ...B, rating: null })), a(x);
3846
3846
  } finally {
@@ -3849,8 +3849,8 @@ const ME = ({
3849
3849
  };
3850
3850
  return /* @__PURE__ */ d.jsxs("div", { className: Z("rating", i), children: [
3851
3851
  /* @__PURE__ */ d.jsx("span", { className: "label", children: f[m ? "success" : "text"] }),
3852
- /* @__PURE__ */ d.jsx("ol", { children: Array.from(new Array(t).keys()).map((D) => {
3853
- const x = D + 1;
3852
+ /* @__PURE__ */ d.jsx("ol", { children: Array.from(new Array(t).keys()).map((y) => {
3853
+ const x = y + 1;
3854
3854
  return /* @__PURE__ */ d.jsx(
3855
3855
  "li",
3856
3856
  {
@@ -3870,7 +3870,7 @@ const ME = ({
3870
3870
  { number: x, total: t }
3871
3871
  )}${x === 1 || x === t ? ` - ${f[x === 1 ? "low" : "high"]}` : ""}`,
3872
3872
  onClick: (B) => {
3873
- B.preventDefault(), B.stopPropagation(), y(x);
3873
+ B.preventDefault(), B.stopPropagation(), D(x);
3874
3874
  },
3875
3875
  disabled: p
3876
3876
  }
@@ -5300,20 +5300,20 @@ var Jm = (e, t, n) => {
5300
5300
  break;
5301
5301
  var m = oe.leaf(e, u), p = m.text.slice(0, c), g = m.text.slice(c);
5302
5302
  if (m.text = p + h + g, t)
5303
- for (var [f, y] of U.points(t))
5304
- t[y] = Be.transform(f, n);
5303
+ for (var [f, D] of U.points(t))
5304
+ t[D] = Be.transform(f, n);
5305
5305
  break;
5306
5306
  }
5307
5307
  case "merge_node": {
5308
5308
  var {
5309
- path: D
5310
- } = n, x = oe.get(e, D), B = P.previous(D), _ = oe.get(e, B), E = oe.parent(e, D), A = D[D.length - 1];
5309
+ path: y
5310
+ } = n, x = oe.get(e, y), B = P.previous(y), _ = oe.get(e, B), E = oe.parent(e, y), A = y[y.length - 1];
5311
5311
  if (fe.isText(x) && fe.isText(_))
5312
5312
  _.text += x.text;
5313
5313
  else if (!fe.isText(x) && !fe.isText(_))
5314
5314
  _.children.push(...x.children);
5315
5315
  else
5316
- throw new Error('Cannot apply a "merge_node" operation at path ['.concat(D, "] to nodes of different interfaces: ").concat(nt.stringify(x), " ").concat(nt.stringify(_)));
5316
+ throw new Error('Cannot apply a "merge_node" operation at path ['.concat(y, "] to nodes of different interfaces: ").concat(nt.stringify(x), " ").concat(nt.stringify(_)));
5317
5317
  if (E.children.splice(A, 1), t)
5318
5318
  for (var [T, $] of U.points(t))
5319
5319
  t[$] = Be.transform(T, n);
@@ -6373,13 +6373,13 @@ var fe = {
6373
6373
  o.push(h);
6374
6374
  continue;
6375
6375
  }
6376
- var g = h, f = void 0, y = void 0;
6376
+ var g = h, f = void 0, D = void 0;
6377
6377
  if (c < l) {
6378
- var D = c - p;
6379
- y = Vt(Vt({}, g), {}, {
6380
- text: g.text.slice(D)
6378
+ var y = c - p;
6379
+ D = Vt(Vt({}, g), {}, {
6380
+ text: g.text.slice(y)
6381
6381
  }), g = Vt(Vt({}, g), {}, {
6382
- text: g.text.slice(0, D)
6382
+ text: g.text.slice(0, y)
6383
6383
  });
6384
6384
  }
6385
6385
  if (u > p) {
@@ -6390,7 +6390,7 @@ var fe = {
6390
6390
  text: g.text.slice(x)
6391
6391
  });
6392
6392
  }
6393
- Object.assign(g, a), f && o.push(f), o.push(g), y && o.push(y);
6393
+ Object.assign(g, a), f && o.push(f), o.push(g), D && o.push(D);
6394
6394
  }
6395
6395
  n = o;
6396
6396
  }
@@ -6648,9 +6648,9 @@ var Mp = (e, t) => {
6648
6648
  var f = P.transform(g, t);
6649
6649
  m.push(f);
6650
6650
  }
6651
- for (var y of P.ancestors(h)) {
6652
- var D = P.transform(y, t);
6653
- p.push(D);
6651
+ for (var D of P.ancestors(h)) {
6652
+ var y = P.transform(D, t);
6653
+ p.push(y);
6654
6654
  }
6655
6655
  var x = p[p.length - 1], B = h[h.length - 1], _ = x.concat(B);
6656
6656
  return [...m, ...p, _];
@@ -7127,8 +7127,8 @@ var yg = ["text"], Dg = ["text"], xg = function(t) {
7127
7127
  match: (_) => le.isElement(_) && b.isBlock(t, _)
7128
7128
  });
7129
7129
  if (p && f) {
7130
- var [y, D] = p, [, x] = f;
7131
- P.isAncestor(x, D) && (m = y);
7130
+ var [D, y] = p, [, x] = f;
7131
+ P.isAncestor(x, y) && (m = D);
7132
7132
  }
7133
7133
  }
7134
7134
  }
@@ -7203,21 +7203,21 @@ function Eg(e) {
7203
7203
  return le.isElement(E) ? !!(!s && (b.isVoid(e, E) || b.isElementReadOnly(e, E)) || o && !b.isSelectable(e, E)) : !1;
7204
7204
  }
7205
7205
  }), g = [], f;
7206
- for (var [y, D] of p)
7207
- if (!(o && le.isElement(y) && !b.isSelectable(e, y))) {
7208
- var x = f && P.compare(D, f[1]) === 0;
7206
+ for (var [D, y] of p)
7207
+ if (!(o && le.isElement(D) && !b.isSelectable(e, D))) {
7208
+ var x = f && P.compare(y, f[1]) === 0;
7209
7209
  if (!(r === "highest" && x)) {
7210
- if (!l(y, D)) {
7211
- if (a && !x && fe.isText(y))
7210
+ if (!l(D, y)) {
7211
+ if (a && !x && fe.isText(D))
7212
7212
  return;
7213
7213
  continue;
7214
7214
  }
7215
7215
  if (r === "lowest" && x) {
7216
- f = [y, D];
7216
+ f = [D, y];
7217
7217
  continue;
7218
7218
  }
7219
- var B = r === "lowest" ? f : [y, D];
7220
- B && (a ? g.push(B) : yield B), f = [y, D];
7219
+ var B = r === "lowest" ? f : [D, y];
7220
+ B && (a ? g.push(B) : yield B), f = [D, y];
7221
7221
  }
7222
7222
  }
7223
7223
  r === "lowest" && f && (a ? g.push(f) : yield f), a && (yield* g);
@@ -7248,22 +7248,22 @@ var _g = function(t) {
7248
7248
  operation: a
7249
7249
  });
7250
7250
  }
7251
- for (var g = i(t), f = g.length, y = 0; g.length !== 0; ) {
7251
+ for (var g = i(t), f = g.length, D = 0; g.length !== 0; ) {
7252
7252
  if (!t.shouldNormalize({
7253
7253
  dirtyPaths: g,
7254
- iteration: y,
7254
+ iteration: D,
7255
7255
  initialDirtyPathsLength: f,
7256
7256
  operation: a
7257
7257
  }))
7258
7258
  return;
7259
- var D = o(t);
7260
- if (oe.has(t, D)) {
7261
- var x = b.node(t, D);
7259
+ var y = o(t);
7260
+ if (oe.has(t, y)) {
7261
+ var x = b.node(t, y);
7262
7262
  t.normalizeNode(x, {
7263
7263
  operation: a
7264
7264
  });
7265
7265
  }
7266
- y++, g = i(t);
7266
+ D++, g = i(t);
7267
7267
  }
7268
7268
  });
7269
7269
  }
@@ -7359,21 +7359,21 @@ function Og(e) {
7359
7359
  if (!n)
7360
7360
  return;
7361
7361
  var o = b.range(e, n), [l, u] = U.edges(o), c = a ? u : l, h = !1, m = "", p = 0, g = 0, f = 0;
7362
- for (var [y, D] of b.nodes(e, {
7362
+ for (var [D, y] of b.nodes(e, {
7363
7363
  at: n,
7364
7364
  reverse: a,
7365
7365
  voids: i,
7366
7366
  ignoreNonSelectable: s
7367
7367
  })) {
7368
- if (le.isElement(y)) {
7369
- if (!i && (e.isVoid(y) || e.isElementReadOnly(y))) {
7370
- yield b.start(e, D);
7368
+ if (le.isElement(D)) {
7369
+ if (!i && (e.isVoid(D) || e.isElementReadOnly(D))) {
7370
+ yield b.start(e, y);
7371
7371
  continue;
7372
7372
  }
7373
- if (e.isInline(y))
7373
+ if (e.isInline(D))
7374
7374
  continue;
7375
- if (b.hasInlines(e, y)) {
7376
- var x = P.isAncestor(D, u.path) ? u : b.end(e, D), B = P.isAncestor(D, l.path) ? l : b.start(e, D);
7375
+ if (b.hasInlines(e, D)) {
7376
+ var x = P.isAncestor(y, u.path) ? u : b.end(e, y), B = P.isAncestor(y, l.path) ? l : b.start(e, y);
7377
7377
  m = b.string(e, {
7378
7378
  anchor: B,
7379
7379
  focus: x
@@ -7382,10 +7382,10 @@ function Og(e) {
7382
7382
  }), h = !0;
7383
7383
  }
7384
7384
  }
7385
- if (fe.isText(y)) {
7386
- var _ = P.equals(D, c.path);
7387
- for (_ ? (g = a ? c.offset : y.text.length - c.offset, f = c.offset) : (g = y.text.length, f = a ? g : 0), (_ || h || r === "offset") && (yield {
7388
- path: D,
7385
+ if (fe.isText(D)) {
7386
+ var _ = P.equals(y, c.path);
7387
+ for (_ ? (g = a ? c.offset : D.text.length - c.offset, f = c.offset) : (g = D.text.length, f = a ? g : 0), (_ || h || r === "offset") && (yield {
7388
+ path: y,
7389
7389
  offset: f
7390
7390
  }, h = !1); ; ) {
7391
7391
  if (p === 0) {
@@ -7398,7 +7398,7 @@ function Og(e) {
7398
7398
  break;
7399
7399
  }
7400
7400
  p = 0, yield {
7401
- path: D,
7401
+ path: y,
7402
7402
  offset: f
7403
7403
  };
7404
7404
  }
@@ -7621,8 +7621,8 @@ var Ig = (e, t) => {
7621
7621
  }
7622
7622
  if (!U.isCollapsed(u)) {
7623
7623
  if (!c) {
7624
- var [, y] = U.edges(u), D = b.end(t, []);
7625
- Be.equals(y, D) || (u = b.unhangRange(t, u, {
7624
+ var [, D] = U.edges(u), y = b.end(t, []);
7625
+ Be.equals(D, y) || (u = b.unhangRange(t, u, {
7626
7626
  voids: l
7627
7627
  }));
7628
7628
  }
@@ -7756,7 +7756,7 @@ var Ig = (e, t) => {
7756
7756
  match: (q) => le.isElement(q) && b.isBlock(t, q),
7757
7757
  at: s,
7758
7758
  voids: i
7759
- }), [, f] = g, y = b.isStart(t, s, f), D = b.isEnd(t, s, f), x = y && D, B = !y || y && D, _ = !D, [, E] = oe.first({
7759
+ }), [, f] = g, D = b.isStart(t, s, f), y = b.isEnd(t, s, f), x = D && y, B = !D || D && y, _ = !y, [, E] = oe.first({
7760
7760
  children: n
7761
7761
  }, []), [, A] = oe.last({
7762
7762
  children: n
@@ -7778,12 +7778,12 @@ var Ig = (e, t) => {
7778
7778
  match: (q) => fe.isText(q) || b.isInline(t, q),
7779
7779
  mode: "highest",
7780
7780
  voids: i
7781
- }), [, L] = z, ne = b.isStart(t, s, L), J = b.isEnd(t, s, L), v = b.pathRef(t, D && !w.length ? P.next(f) : f), W = b.pathRef(t, J ? P.next(L) : L);
7781
+ }), [, L] = z, ne = b.isStart(t, s, L), J = b.isEnd(t, s, L), v = b.pathRef(t, y && !w.length ? P.next(f) : f), W = b.pathRef(t, J ? P.next(L) : L);
7782
7782
  Y.splitNodes(t, {
7783
7783
  at: s,
7784
7784
  match: (q) => j ? le.isElement(q) && b.isBlock(t, q) : fe.isText(q) || b.isInline(t, q),
7785
7785
  mode: j ? "lowest" : "highest",
7786
- always: j && (!y || M.length > 0) && (!D || w.length > 0),
7786
+ always: j && (!D || M.length > 0) && (!y || w.length > 0),
7787
7787
  voids: i
7788
7788
  });
7789
7789
  var X = b.pathRef(t, !ne || ne && J ? P.next(L) : L);
@@ -7979,15 +7979,15 @@ var Qg = function(t, n) {
7979
7979
  voids: i
7980
7980
  });
7981
7981
  if (g) {
7982
- var [, f] = g, y = b.pathRef(t, f), D = b.isEnd(t, l, f);
7982
+ var [, f] = g, D = b.pathRef(t, f), y = b.isEnd(t, l, f);
7983
7983
  Y.splitNodes(t, {
7984
7984
  at: l,
7985
7985
  match: u,
7986
7986
  mode: s,
7987
7987
  voids: i
7988
7988
  });
7989
- var x = y.unref();
7990
- l = D ? P.next(x) : x;
7989
+ var x = D.unref();
7990
+ l = y ? P.next(x) : x;
7991
7991
  } else
7992
7992
  return;
7993
7993
  }
@@ -8066,10 +8066,10 @@ var Qg = function(t, n) {
8066
8066
  length: f
8067
8067
  } = m.children;
8068
8068
  if (f === 1) {
8069
- var y = P.next(p);
8069
+ var D = P.next(p);
8070
8070
  Y.moveNodes(t, {
8071
8071
  at: c,
8072
- to: y,
8072
+ to: D,
8073
8073
  voids: i
8074
8074
  }), Y.removeNodes(t, {
8075
8075
  at: p,
@@ -8082,10 +8082,10 @@ var Qg = function(t, n) {
8082
8082
  voids: i
8083
8083
  });
8084
8084
  else if (g === f - 1) {
8085
- var D = P.next(p);
8085
+ var y = P.next(p);
8086
8086
  Y.moveNodes(t, {
8087
8087
  at: c,
8088
- to: D,
8088
+ to: y,
8089
8089
  voids: i
8090
8090
  });
8091
8091
  } else {
@@ -8149,9 +8149,9 @@ var Qg = function(t, n) {
8149
8149
  mode: o
8150
8150
  });
8151
8151
  if (!(!h || !m)) {
8152
- var [p, g] = h, [f, y] = m;
8153
- if (!(g.length === 0 || y.length === 0)) {
8154
- var D = P.next(y), x = P.common(g, y), B = P.isSibling(g, y), _ = Array.from(b.levels(t, {
8152
+ var [p, g] = h, [f, D] = m;
8153
+ if (!(g.length === 0 || D.length === 0)) {
8154
+ var y = P.next(D), x = P.common(g, D), B = P.isSibling(g, D), _ = Array.from(b.levels(t, {
8155
8155
  at: g
8156
8156
  }), (M) => {
8157
8157
  var [R] = M;
@@ -8171,17 +8171,17 @@ var Qg = function(t, n) {
8171
8171
  throw new Error("Cannot merge the node at path [".concat(g, "] with the previous sibling because it is not the same kind: ").concat(nt.stringify(p), " ").concat(nt.stringify(f)));
8172
8172
  B || Y.moveNodes(t, {
8173
8173
  at: g,
8174
- to: D,
8174
+ to: y,
8175
8175
  voids: s
8176
8176
  }), A && Y.removeNodes(t, {
8177
8177
  at: A.current,
8178
8178
  voids: s
8179
- }), le.isElement(f) && b.isEmpty(t, f) || fe.isText(f) && f.text === "" && y[y.length - 1] !== 0 ? Y.removeNodes(t, {
8180
- at: y,
8179
+ }), le.isElement(f) && b.isEmpty(t, f) || fe.isText(f) && f.text === "" && D[D.length - 1] !== 0 ? Y.removeNodes(t, {
8180
+ at: D,
8181
8181
  voids: s
8182
8182
  }) : t.apply({
8183
8183
  type: "merge_node",
8184
- path: D,
8184
+ path: y,
8185
8185
  position: $,
8186
8186
  properties: T
8187
8187
  }), A && A.unref();
@@ -8280,21 +8280,21 @@ var Qg = function(t, n) {
8280
8280
  return;
8281
8281
  var m = b.rangeRef(t, i, {
8282
8282
  affinity: "inward"
8283
- }), [p, g] = U.edges(i), f = u === "lowest" ? "lowest" : "highest", y = b.isEnd(t, g, g.path);
8283
+ }), [p, g] = U.edges(i), f = u === "lowest" ? "lowest" : "highest", D = b.isEnd(t, g, g.path);
8284
8284
  Y.splitNodes(t, {
8285
8285
  at: g,
8286
8286
  match: a,
8287
8287
  mode: f,
8288
8288
  voids: h,
8289
- always: !y
8289
+ always: !D
8290
8290
  });
8291
- var D = b.isStart(t, p, p.path);
8291
+ var y = b.isStart(t, p, p.path);
8292
8292
  Y.splitNodes(t, {
8293
8293
  at: p,
8294
8294
  match: a,
8295
8295
  mode: f,
8296
8296
  voids: h,
8297
- always: !D
8297
+ always: !y
8298
8298
  }), i = m.unref(), r.at == null && Y.select(t, i);
8299
8299
  }
8300
8300
  s || (s = ($, N) => $ !== N);
@@ -8358,10 +8358,10 @@ var Qg = function(t, n) {
8358
8358
  var f = b.void(t, {
8359
8359
  at: s,
8360
8360
  mode: "highest"
8361
- }), y = 0;
8361
+ }), D = 0;
8362
8362
  if (!a && f) {
8363
- var [D, x] = f;
8364
- if (le.isElement(D) && t.isInline(D)) {
8363
+ var [y, x] = f;
8364
+ if (le.isElement(y) && t.isInline(y)) {
8365
8365
  var B = b.after(t, x);
8366
8366
  if (!B) {
8367
8367
  var _ = {
@@ -8378,7 +8378,7 @@ var Qg = function(t, n) {
8378
8378
  o = A + 1, l = !0;
8379
8379
  }
8380
8380
  p = b.pointRef(t, s);
8381
- var T = s.path.length - o, [, $] = g, N = s.path.slice(0, T), M = o === 0 ? s.offset : s.path[T] + y;
8381
+ var T = s.path.length - o, [, $] = g, N = s.path.slice(0, T), M = o === 0 ? s.offset : s.path[T] + D;
8382
8382
  for (var [R, w] of b.levels(t, {
8383
8383
  at: N,
8384
8384
  reverse: !0,
@@ -8445,10 +8445,10 @@ var Qg = function(t, n) {
8445
8445
  // If we do not reverse the order and call it from top to the bottom, it will remove all blocks
8446
8446
  // that wrap target node. So we reverse the order.
8447
8447
  ).reverse(), h = function() {
8448
- var g = m.unref(), [f] = b.node(t, g), y = b.range(t, g);
8449
- a && l && (y = U.intersection(l.current, y)), Y.liftNodes(t, {
8450
- at: y,
8451
- match: (D) => le.isAncestor(f) && f.children.includes(D),
8448
+ var g = m.unref(), [f] = b.node(t, g), D = b.range(t, g);
8449
+ a && l && (D = U.intersection(l.current, D)), Y.liftNodes(t, {
8450
+ at: D,
8451
+ match: (y) => le.isAncestor(f) && f.children.includes(y),
8452
8452
  voids: i
8453
8453
  });
8454
8454
  };
@@ -8491,7 +8491,7 @@ var dv = function(t, n) {
8491
8491
  at: l = t.selection
8492
8492
  } = r;
8493
8493
  if (l) {
8494
- if (o == null && (P.isPath(l) ? o = sr(t, l) : t.isInline(n) ? o = (y) => le.isElement(y) && b.isInline(t, y) || fe.isText(y) : o = (y) => le.isElement(y) && b.isBlock(t, y)), i && U.isRange(l)) {
8494
+ if (o == null && (P.isPath(l) ? o = sr(t, l) : t.isInline(n) ? o = (D) => le.isElement(D) && b.isInline(t, D) || fe.isText(D) : o = (D) => le.isElement(D) && b.isBlock(t, D)), i && U.isRange(l)) {
8495
8495
  var [u, c] = U.edges(l), h = b.rangeRef(t, l, {
8496
8496
  affinity: "inward"
8497
8497
  });
@@ -8507,15 +8507,15 @@ var dv = function(t, n) {
8507
8507
  }
8508
8508
  var m = Array.from(b.nodes(t, {
8509
8509
  at: l,
8510
- match: t.isInline(n) ? (y) => le.isElement(y) && b.isBlock(t, y) : (y) => b.isEditor(y),
8510
+ match: t.isInline(n) ? (D) => le.isElement(D) && b.isBlock(t, D) : (D) => b.isEditor(D),
8511
8511
  mode: "lowest",
8512
8512
  voids: s
8513
8513
  })), p = function() {
8514
- var D = U.isRange(l) ? U.intersection(l, b.range(t, f)) : l;
8515
- if (!D)
8514
+ var y = U.isRange(l) ? U.intersection(l, b.range(t, f)) : l;
8515
+ if (!y)
8516
8516
  return 0;
8517
8517
  var x = Array.from(b.nodes(t, {
8518
- at: D,
8518
+ at: y,
8519
8519
  match: o,
8520
8520
  mode: a,
8521
8521
  voids: s
@@ -9133,21 +9133,21 @@ function b0(e, t, n) {
9133
9133
  return r = a = void 0, u = A, s = e.apply($, T), s;
9134
9134
  }
9135
9135
  function g(A) {
9136
- return u = A, o = setTimeout(D, t), c ? p(A) : s;
9136
+ return u = A, o = setTimeout(y, t), c ? p(A) : s;
9137
9137
  }
9138
9138
  function f(A) {
9139
9139
  var T = A - l, $ = A - u, N = t - T;
9140
9140
  return h ? v0(N, i - $) : N;
9141
9141
  }
9142
- function y(A) {
9142
+ function D(A) {
9143
9143
  var T = A - l, $ = A - u;
9144
9144
  return l === void 0 || T >= t || T < 0 || h && $ >= i;
9145
9145
  }
9146
- function D() {
9146
+ function y() {
9147
9147
  var A = gi();
9148
- if (y(A))
9148
+ if (D(A))
9149
9149
  return x(A);
9150
- o = setTimeout(D, f(A));
9150
+ o = setTimeout(y, f(A));
9151
9151
  }
9152
9152
  function x(A) {
9153
9153
  return o = void 0, m && r ? p(A) : (r = a = void 0, s);
@@ -9159,14 +9159,14 @@ function b0(e, t, n) {
9159
9159
  return o === void 0 ? s : x(gi());
9160
9160
  }
9161
9161
  function E() {
9162
- var A = gi(), T = y(A);
9162
+ var A = gi(), T = D(A);
9163
9163
  if (r = arguments, a = this, l = A, T) {
9164
9164
  if (o === void 0)
9165
9165
  return g(l);
9166
9166
  if (h)
9167
- return clearTimeout(o), o = setTimeout(D, t), p(l);
9167
+ return clearTimeout(o), o = setTimeout(y, t), p(l);
9168
9168
  }
9169
- return o === void 0 && (o = setTimeout(D, t)), s;
9169
+ return o === void 0 && (o = setTimeout(y, t)), s;
9170
9170
  }
9171
9171
  return E.cancel = B, E.flush = _, E;
9172
9172
  }
@@ -9220,7 +9220,7 @@ const _0 = /* @__PURE__ */ An(E0), Nu = (e) => typeof e == "object" && e != null
9220
9220
  }
9221
9221
  g != null && g === document.body && vi(g) && !vi(document.documentElement) || g != null && vi(g, c) && p.push(g);
9222
9222
  }
9223
- const f = (r = (n = window.visualViewport) == null ? void 0 : n.width) != null ? r : innerWidth, y = (i = (a = window.visualViewport) == null ? void 0 : a.height) != null ? i : innerHeight, { scrollX: D, scrollY: x } = window, { height: B, width: _, top: E, right: A, bottom: T, left: $ } = e.getBoundingClientRect(), { top: N, right: M, bottom: R, left: w } = ((z) => {
9223
+ const f = (r = (n = window.visualViewport) == null ? void 0 : n.width) != null ? r : innerWidth, D = (i = (a = window.visualViewport) == null ? void 0 : a.height) != null ? i : innerHeight, { scrollX: y, scrollY: x } = window, { height: B, width: _, top: E, right: A, bottom: T, left: $ } = e.getBoundingClientRect(), { top: N, right: M, bottom: R, left: w } = ((z) => {
9224
9224
  const L = window.getComputedStyle(z);
9225
9225
  return { top: parseFloat(L.scrollMarginTop) || 0, right: parseFloat(L.scrollMarginRight) || 0, bottom: parseFloat(L.scrollMarginBottom) || 0, left: parseFloat(L.scrollMarginLeft) || 0 };
9226
9226
  })(e);
@@ -9228,13 +9228,13 @@ const _0 = /* @__PURE__ */ An(E0), Nu = (e) => typeof e == "object" && e != null
9228
9228
  const S = [];
9229
9229
  for (let z = 0; z < p.length; z++) {
9230
9230
  const L = p[z], { height: ne, width: J, top: v, right: W, bottom: X, left: k } = L.getBoundingClientRect();
9231
- if (s === "if-needed" && E >= 0 && $ >= 0 && T <= y && A <= f && E >= v && T <= X && $ >= k && A <= W)
9231
+ if (s === "if-needed" && E >= 0 && $ >= 0 && T <= D && A <= f && E >= v && T <= X && $ >= k && A <= W)
9232
9232
  return S;
9233
9233
  const F = getComputedStyle(L), q = parseInt(F.borderLeftWidth, 10), I = parseInt(F.borderTopWidth, 10), H = parseInt(F.borderRightWidth, 10), ee = parseInt(F.borderBottomWidth, 10);
9234
9234
  let te = 0, ie = 0;
9235
9235
  const me = "offsetWidth" in L ? L.offsetWidth - L.clientWidth - q - H : 0, G = "offsetHeight" in L ? L.offsetHeight - L.clientHeight - I - ee : 0, ve = "offsetWidth" in L ? L.offsetWidth === 0 ? 0 : J / L.offsetWidth : 0, be = "offsetHeight" in L ? L.offsetHeight === 0 ? 0 : ne / L.offsetHeight : 0;
9236
9236
  if (m === L)
9237
- te = o === "start" ? C : o === "end" ? C - y : o === "nearest" ? Yr(x, x + y, y, I, ee, x + C, x + C + B, B) : C - y / 2, ie = l === "start" ? j : l === "center" ? j - f / 2 : l === "end" ? j - f : Yr(D, D + f, f, q, H, D + j, D + j + _, _), te = Math.max(0, te + x), ie = Math.max(0, ie + D);
9237
+ te = o === "start" ? C : o === "end" ? C - D : o === "nearest" ? Yr(x, x + D, D, I, ee, x + C, x + C + B, B) : C - D / 2, ie = l === "start" ? j : l === "center" ? j - f / 2 : l === "end" ? j - f : Yr(y, y + f, f, q, H, y + j, y + j + _, _), te = Math.max(0, te + x), ie = Math.max(0, ie + y);
9238
9238
  else {
9239
9239
  te = o === "start" ? C - v - I : o === "end" ? C - X + ee + G : o === "nearest" ? Yr(v, X, ne, I, ee + G, C, C + B, B) : C - (v + ne / 2) + G / 2, ie = l === "start" ? j - k - q : l === "center" ? j - (k + J / 2) + me / 2 : l === "end" ? j - W + H + me : Yr(k, W, J, q, H + me, j, j + _, _);
9240
9240
  const { scrollLeft: Ae, scrollTop: Ee } = L;
@@ -9345,7 +9345,7 @@ var xn = function(e) {
9345
9345
  return Gr.get(e);
9346
9346
  if (fd(e))
9347
9347
  return Gr.set(e, zu), zu;
9348
- var n = getComputedStyle(e), r = Gs(e) && e.ownerSVGElement && e.getBBox(), a = !N0 && n.boxSizing === "border-box", i = P0.test(n.writingMode || ""), s = !r && Lu.test(n.overflowY || ""), o = !r && Lu.test(n.overflowX || ""), l = r ? 0 : Rt(n.paddingTop), u = r ? 0 : Rt(n.paddingRight), c = r ? 0 : Rt(n.paddingBottom), h = r ? 0 : Rt(n.paddingLeft), m = r ? 0 : Rt(n.borderTopWidth), p = r ? 0 : Rt(n.borderRightWidth), g = r ? 0 : Rt(n.borderBottomWidth), f = r ? 0 : Rt(n.borderLeftWidth), y = h + u, D = l + c, x = f + p, B = m + g, _ = o ? e.offsetHeight - B - e.clientHeight : 0, E = s ? e.offsetWidth - x - e.clientWidth : 0, A = a ? y + x : 0, T = a ? D + B : 0, $ = r ? r.width : Rt(n.width) - A - E, N = r ? r.height : Rt(n.height) - T - _, M = $ + y + E + x, R = N + D + _ + B, w = xn({
9348
+ var n = getComputedStyle(e), r = Gs(e) && e.ownerSVGElement && e.getBBox(), a = !N0 && n.boxSizing === "border-box", i = P0.test(n.writingMode || ""), s = !r && Lu.test(n.overflowY || ""), o = !r && Lu.test(n.overflowX || ""), l = r ? 0 : Rt(n.paddingTop), u = r ? 0 : Rt(n.paddingRight), c = r ? 0 : Rt(n.paddingBottom), h = r ? 0 : Rt(n.paddingLeft), m = r ? 0 : Rt(n.borderTopWidth), p = r ? 0 : Rt(n.borderRightWidth), g = r ? 0 : Rt(n.borderBottomWidth), f = r ? 0 : Rt(n.borderLeftWidth), D = h + u, y = l + c, x = f + p, B = m + g, _ = o ? e.offsetHeight - B - e.clientHeight : 0, E = s ? e.offsetWidth - x - e.clientWidth : 0, A = a ? D + x : 0, T = a ? y + B : 0, $ = r ? r.width : Rt(n.width) - A - E, N = r ? r.height : Rt(n.height) - T - _, M = $ + D + E + x, R = N + y + _ + B, w = xn({
9349
9349
  devicePixelContentBoxSize: Kn(Math.round($ * devicePixelRatio), Math.round(N * devicePixelRatio), i),
9350
9350
  borderBoxSize: Kn(M, R, i),
9351
9351
  contentBoxSize: Kn($, N, i),
@@ -9651,8 +9651,8 @@ function bd(e, t) {
9651
9651
  throw new TypeError('Unknown modifier: "' + m + '"');
9652
9652
  (i === 1 || !f) && (n ? r.key = g : r.which = Dd(m)), f && (r[f] = p ? null : !0);
9653
9653
  }
9654
- } catch (y) {
9655
- l = !0, u = y;
9654
+ } catch (D) {
9655
+ l = !0, u = D;
9656
9656
  } finally {
9657
9657
  try {
9658
9658
  !o && c.return && c.return();
@@ -10003,15 +10003,15 @@ var Q = {
10003
10003
  length: h
10004
10004
  } = c.textContent, m = u.getAttribute("data-slate-length"), p = m == null ? h : parseInt(m, 10), g = o + p, f = s[l + 1];
10005
10005
  if (t.offset === g && f !== null && f !== void 0 && f.hasAttribute("data-slate-mark-placeholder")) {
10006
- var y, D = f.childNodes[0];
10006
+ var D, y = f.childNodes[0];
10007
10007
  a = [
10008
10008
  // COMPAT: If we don't explicity set the dom point to be on the actual
10009
10009
  // dom text element, chrome will put the selection behind the actual dom
10010
10010
  // text element, causing domRange.getBoundingClientRect() calls on a collapsed
10011
10011
  // selection to return incorrect zero values (https://bugs.chromium.org/p/chromium/issues/detail?id=435438)
10012
10012
  // which will cause issues when scrolling to it.
10013
- D instanceof cb ? D : f,
10014
- (y = f.textContent) !== null && y !== void 0 && y.startsWith("\uFEFF") ? 1 : 0
10013
+ y instanceof cb ? y : f,
10014
+ (D = f.textContent) !== null && D !== void 0 && D.startsWith("\uFEFF") ? 1 : 0
10015
10015
  ];
10016
10016
  break;
10017
10017
  }
@@ -10031,8 +10031,8 @@ var Q = {
10031
10031
  var {
10032
10032
  anchor: n,
10033
10033
  focus: r
10034
- } = t, a = U.isBackward(t), i = Q.toDOMPoint(e, n), s = U.isCollapsed(t) ? i : Q.toDOMPoint(e, r), o = Q.getWindow(e), l = o.document.createRange(), [u, c] = a ? s : i, [h, m] = a ? i : s, p = At(u) ? u : u.parentElement, g = !!p.getAttribute("data-slate-zero-width"), f = At(h) ? h : h.parentElement, y = !!f.getAttribute("data-slate-zero-width");
10035
- return l.setStart(u, g ? 1 : c), l.setEnd(h, y ? 1 : m), l;
10034
+ } = t, a = U.isBackward(t), i = Q.toDOMPoint(e, n), s = U.isCollapsed(t) ? i : Q.toDOMPoint(e, r), o = Q.getWindow(e), l = o.document.createRange(), [u, c] = a ? s : i, [h, m] = a ? i : s, p = At(u) ? u : u.parentElement, g = !!p.getAttribute("data-slate-zero-width"), f = At(h) ? h : h.parentElement, D = !!f.getAttribute("data-slate-zero-width");
10035
+ return l.setStart(u, g ? 1 : c), l.setEnd(h, D ? 1 : m), l;
10036
10036
  },
10037
10037
  toSlateNode: (e, t) => {
10038
10038
  var n = At(t) ? t : t.parentElement;
@@ -10048,10 +10048,10 @@ var Q = {
10048
10048
  suppressThrow: a
10049
10049
  } = n, [i, s] = r ? t : hb(t), o = i.parentNode, l = null, u = 0;
10050
10050
  if (o) {
10051
- var c, h, m = Q.toDOMNode(e, e), p = o.closest('[data-slate-void="true"]'), g = p && m.contains(p) ? p : null, f = o.closest("[data-slate-leaf]"), y = null;
10051
+ var c, h, m = Q.toDOMNode(e, e), p = o.closest('[data-slate-void="true"]'), g = p && m.contains(p) ? p : null, f = o.closest("[data-slate-leaf]"), D = null;
10052
10052
  if (f) {
10053
10053
  if (l = f.closest('[data-slate-node="text"]'), l) {
10054
- var D = Q.getWindow(e), x = D.document.createRange();
10054
+ var y = Q.getWindow(e), x = y.document.createRange();
10055
10055
  x.setStart(l, 0), x.setEnd(i, s);
10056
10056
  var B = x.cloneContents(), _ = [...Array.prototype.slice.call(B.querySelectorAll("[data-slate-zero-width]")), ...Array.prototype.slice.call(B.querySelectorAll("[contenteditable=false]"))];
10057
10057
  _.forEach((j) => {
@@ -10060,7 +10060,7 @@ var Q = {
10060
10060
  return;
10061
10061
  }
10062
10062
  j.parentNode.removeChild(j);
10063
- }), u = B.textContent.length, y = l;
10063
+ }), u = B.textContent.length, D = l;
10064
10064
  }
10065
10065
  } else if (g) {
10066
10066
  for (var E = g.querySelectorAll("[data-slate-leaf]"), A = 0; A < E.length; A++) {
@@ -10070,13 +10070,13 @@ var Q = {
10070
10070
  break;
10071
10071
  }
10072
10072
  }
10073
- f ? (l = f.closest('[data-slate-node="text"]'), y = f, u = y.textContent.length, y.querySelectorAll("[data-slate-zero-width]").forEach((j) => {
10073
+ f ? (l = f.closest('[data-slate-node="text"]'), D = f, u = D.textContent.length, D.querySelectorAll("[data-slate-zero-width]").forEach((j) => {
10074
10074
  u -= j.textContent.length;
10075
10075
  })) : u = 1;
10076
10076
  }
10077
- y && u === y.textContent.length && // COMPAT: Android IMEs might remove the zero width space while composing,
10077
+ D && u === D.textContent.length && // COMPAT: Android IMEs might remove the zero width space while composing,
10078
10078
  // and we don't add it for line-breaks.
10079
- ft && y.getAttribute("data-slate-zero-width") === "z" && (c = y.textContent) !== null && c !== void 0 && c.startsWith("\uFEFF") && // COMPAT: If the parent node is a Slate zero-width space, editor is
10079
+ ft && D.getAttribute("data-slate-zero-width") === "z" && (c = D.textContent) !== null && c !== void 0 && c.startsWith("\uFEFF") && // COMPAT: If the parent node is a Slate zero-width space, editor is
10080
10080
  // because the text node should have no characters. However, during IME
10081
10081
  // composition the ASCII characters will be prepended to the zero-width
10082
10082
  // space, so subtract 1 from the offset to account for the zero-width
@@ -10084,7 +10084,7 @@ var Q = {
10084
10084
  (o.hasAttribute("data-slate-zero-width") || // COMPAT: In Firefox, `range.cloneContents()` returns an extra trailing '\n'
10085
10085
  // when the document ends with a new-line character. This results in the offset
10086
10086
  // length being off by one, so we need to subtract one to account for this.
10087
- Hn && (h = y.textContent) !== null && h !== void 0 && h.endsWith(`
10087
+ Hn && (h = D.textContent) !== null && h !== void 0 && h.endsWith(`
10088
10088
 
10089
10089
  `)) && u--;
10090
10090
  }
@@ -10128,8 +10128,8 @@ var Q = {
10128
10128
  let A = function(T) {
10129
10129
  return T.childElementCount > 0 ? A(T.children[0]) : T;
10130
10130
  };
10131
- var g = m.startContainer, f = p.startContainer, y = A(g.children[m.startOffset]), D = A(f.children[p.startOffset]);
10132
- c = 0, D.childNodes.length > 0 ? o = D.childNodes[0] : o = D, y.childNodes.length > 0 ? u = y.childNodes[0] : u = y, D instanceof HTMLElement ? l = D.innerHTML.length : l = 0;
10131
+ var g = m.startContainer, f = p.startContainer, D = A(g.children[m.startOffset]), y = A(f.children[p.startOffset]);
10132
+ c = 0, y.childNodes.length > 0 ? o = y.childNodes[0] : o = y, D.childNodes.length > 0 ? u = D.childNodes[0] : u = D, y instanceof HTMLElement ? l = y.innerHTML.length : l = 0;
10133
10133
  } else
10134
10134
  m.startContainer === u ? (o = p.endContainer, l = p.endOffset, c = m.startOffset) : (o = m.startContainer, l = m.endOffset, c = p.startOffset);
10135
10135
  } else
@@ -10520,7 +10520,7 @@ function Tb(e) {
10520
10520
  }
10521
10521
  j.style.removeProperty("display");
10522
10522
  }
10523
- }, y = (w, C) => {
10523
+ }, D = (w, C) => {
10524
10524
  var j, S = (j = pt.get(t)) !== null && j !== void 0 ? j : [];
10525
10525
  pt.set(t, S);
10526
10526
  var z = oe.leaf(t, w), L = S.findIndex((v) => P.equals(v.path, w));
@@ -10541,7 +10541,7 @@ function Tb(e) {
10541
10541
  S[L] = ea(ea({}, S[L]), {}, {
10542
10542
  diff: J
10543
10543
  });
10544
- }, D = function(C) {
10544
+ }, y = function(C) {
10545
10545
  var {
10546
10546
  at: j
10547
10547
  } = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
@@ -10592,13 +10592,13 @@ function Tb(e) {
10592
10592
  path: S.anchor.path,
10593
10593
  offset: I.offset
10594
10594
  }, Ee = b.range(t, Ae, Ae);
10595
- return T(Ee), y(S.anchor.path, {
10595
+ return T(Ee), D(S.anchor.path, {
10596
10596
  text: "",
10597
10597
  end: H.offset,
10598
10598
  start: I.offset
10599
10599
  });
10600
10600
  }
10601
- return D(() => b.deleteFragment(t, {
10601
+ return y(() => b.deleteFragment(t, {
10602
10602
  direction: q
10603
10603
  }), {
10604
10604
  at: S
@@ -10609,7 +10609,7 @@ function Tb(e) {
10609
10609
  case "deleteByComposition":
10610
10610
  case "deleteByCut":
10611
10611
  case "deleteByDrag":
10612
- return D(() => b.deleteFragment(t), {
10612
+ return y(() => b.deleteFragment(t), {
10613
10613
  at: S
10614
10614
  });
10615
10615
  case "deleteContent":
@@ -10620,13 +10620,13 @@ function Tb(e) {
10620
10620
  if (v && U.isCollapsed(S)) {
10621
10621
  var Ze = oe.leaf(t, Fe.path);
10622
10622
  if (Fe.offset < Ze.text.length)
10623
- return y(Fe.path, {
10623
+ return D(Fe.path, {
10624
10624
  text: "",
10625
10625
  start: Fe.offset,
10626
10626
  end: Fe.offset + 1
10627
10627
  });
10628
10628
  }
10629
- return D(() => b.deleteForward(t), {
10629
+ return y(() => b.deleteForward(t), {
10630
10630
  at: S
10631
10631
  });
10632
10632
  }
@@ -10634,16 +10634,16 @@ function Tb(e) {
10634
10634
  var He, {
10635
10635
  anchor: Ge
10636
10636
  } = S, tt = Ds(L) ? L.isCollapsed : !!((He = L) !== null && He !== void 0 && He.collapsed);
10637
- return v && tt && U.isCollapsed(S) && Ge.offset > 0 ? y(Ge.path, {
10637
+ return v && tt && U.isCollapsed(S) && Ge.offset > 0 ? D(Ge.path, {
10638
10638
  text: "",
10639
10639
  start: Ge.offset - 1,
10640
10640
  end: Ge.offset
10641
- }) : D(() => b.deleteBackward(t), {
10641
+ }) : y(() => b.deleteBackward(t), {
10642
10642
  at: S
10643
10643
  });
10644
10644
  }
10645
10645
  case "deleteEntireSoftLine":
10646
- return D(() => {
10646
+ return y(() => {
10647
10647
  b.deleteBackward(t, {
10648
10648
  unit: "line"
10649
10649
  }), b.deleteForward(t, {
@@ -10653,47 +10653,47 @@ function Tb(e) {
10653
10653
  at: S
10654
10654
  });
10655
10655
  case "deleteHardLineBackward":
10656
- return D(() => b.deleteBackward(t, {
10656
+ return y(() => b.deleteBackward(t, {
10657
10657
  unit: "block"
10658
10658
  }), {
10659
10659
  at: S
10660
10660
  });
10661
10661
  case "deleteSoftLineBackward":
10662
- return D(() => b.deleteBackward(t, {
10662
+ return y(() => b.deleteBackward(t, {
10663
10663
  unit: "line"
10664
10664
  }), {
10665
10665
  at: S
10666
10666
  });
10667
10667
  case "deleteHardLineForward":
10668
- return D(() => b.deleteForward(t, {
10668
+ return y(() => b.deleteForward(t, {
10669
10669
  unit: "block"
10670
10670
  }), {
10671
10671
  at: S
10672
10672
  });
10673
10673
  case "deleteSoftLineForward":
10674
- return D(() => b.deleteForward(t, {
10674
+ return y(() => b.deleteForward(t, {
10675
10675
  unit: "line"
10676
10676
  }), {
10677
10677
  at: S
10678
10678
  });
10679
10679
  case "deleteWordBackward":
10680
- return D(() => b.deleteBackward(t, {
10680
+ return y(() => b.deleteBackward(t, {
10681
10681
  unit: "word"
10682
10682
  }), {
10683
10683
  at: S
10684
10684
  });
10685
10685
  case "deleteWordForward":
10686
- return D(() => b.deleteForward(t, {
10686
+ return y(() => b.deleteForward(t, {
10687
10687
  unit: "word"
10688
10688
  }), {
10689
10689
  at: S
10690
10690
  });
10691
10691
  case "insertLineBreak":
10692
- return D(() => b.insertSoftBreak(t), {
10692
+ return y(() => b.insertSoftBreak(t), {
10693
10693
  at: S
10694
10694
  });
10695
10695
  case "insertParagraph":
10696
- return D(() => b.insertBreak(t), {
10696
+ return y(() => b.insertBreak(t), {
10697
10697
  at: S
10698
10698
  });
10699
10699
  case "insertCompositionText":
@@ -10705,13 +10705,13 @@ function Tb(e) {
10705
10705
  case "insertReplacementText":
10706
10706
  case "insertText": {
10707
10707
  if (Fb(z))
10708
- return D(() => Q.insertData(t, z), {
10708
+ return y(() => Q.insertData(t, z), {
10709
10709
  at: S
10710
10710
  });
10711
10711
  var pe = z ?? "";
10712
10712
  if (jt.get(t) && (pe = pe.replace("\uFEFF", "")), j === "insertText" && /.*\n.*\n$/.test(pe) && (pe = pe.slice(0, -1)), pe.includes(`
10713
10713
  `))
10714
- return D(() => {
10714
+ return y(() => {
10715
10715
  var ye = pe.split(`
10716
10716
  `);
10717
10717
  ye.forEach((ke, Xe) => {
@@ -10734,11 +10734,11 @@ function Tb(e) {
10734
10734
  text: u.text + pe
10735
10735
  }) : u = !1 : u = !1;
10736
10736
  if (v) {
10737
- y(Oe.path, V);
10737
+ D(Oe.path, V);
10738
10738
  return;
10739
10739
  }
10740
10740
  }
10741
- return D(() => b.insertText(t, pe), {
10741
+ return y(() => b.insertText(t, pe), {
10742
10742
  at: S
10743
10743
  });
10744
10744
  }
@@ -10986,7 +10986,7 @@ var Kb = (e) => {
10986
10986
  if (he(() => (f ? m.current || (m.current = setTimeout(() => {
10987
10987
  h(!0), m.current = null;
10988
10988
  }, Ub)) : (tl(m), h(!1)), () => tl(m)), [f, h]), f && c) {
10989
- var y = {
10989
+ var D = {
10990
10990
  children: t.placeholder,
10991
10991
  attributes: {
10992
10992
  "data-slate-placeholder": !0,
@@ -11007,13 +11007,13 @@ var Kb = (e) => {
11007
11007
  ref: p
11008
11008
  }
11009
11009
  };
11010
- g = /* @__PURE__ */ re.createElement(re.Fragment, null, i(y), g);
11010
+ g = /* @__PURE__ */ re.createElement(re.Fragment, null, i(D), g);
11011
11011
  }
11012
- var D = {
11012
+ var y = {
11013
11013
  "data-slate-leaf": !0
11014
11014
  };
11015
11015
  return s({
11016
- attributes: D,
11016
+ attributes: y,
11017
11017
  children: g,
11018
11018
  leaf: t,
11019
11019
  text: r
@@ -11045,8 +11045,8 @@ var Kb = (e) => {
11045
11045
  }));
11046
11046
  }
11047
11047
  var g = Pe((f) => {
11048
- var y = Ga.get(o);
11049
- f ? (y == null || y.set(c, f), wn.set(s, f), Nr.set(f, s)) : (y == null || y.delete(c), wn.delete(s), l.current && Nr.delete(l.current)), l.current = f;
11048
+ var D = Ga.get(o);
11049
+ f ? (D == null || D.set(c, f), wn.set(s, f), Nr.set(f, s)) : (D == null || D.delete(c), wn.delete(s), l.current && Nr.delete(l.current)), l.current = f;
11050
11050
  }, [l, o, c, s]);
11051
11051
  return /* @__PURE__ */ re.createElement("span", {
11052
11052
  "data-slate-node": "text",
@@ -11102,8 +11102,8 @@ var Qb = (e) => {
11102
11102
  }
11103
11103
  if (b.isVoid(o, n)) {
11104
11104
  p["data-slate-void"] = !0, !l && u && (p.contentEditable = !1);
11105
- var y = u ? "span" : "div", [[D]] = oe.texts(n);
11106
- m = /* @__PURE__ */ re.createElement(y, {
11105
+ var D = u ? "span" : "div", [[y]] = oe.texts(n);
11106
+ m = /* @__PURE__ */ re.createElement(D, {
11107
11107
  "data-slate-spacer": !0,
11108
11108
  style: {
11109
11109
  height: "0",
@@ -11116,8 +11116,8 @@ var Qb = (e) => {
11116
11116
  decorations: [],
11117
11117
  isLast: !1,
11118
11118
  parent: n,
11119
- text: D
11120
- })), eo.set(D, 0), to.set(D, n);
11119
+ text: y
11120
+ })), eo.set(y, 0), to.set(y, n);
11121
11121
  }
11122
11122
  return r({
11123
11123
  attributes: p,
@@ -11144,14 +11144,14 @@ var Qb = (e) => {
11144
11144
  renderLeaf: i,
11145
11145
  selection: s
11146
11146
  } = e, o = ey(), l = hn(), u = Q.findPath(l, n), c = [], h = le.isElement(n) && !l.isInline(n) && b.hasInlines(l, n), m = 0; m < n.children.length; m++) {
11147
- var p = u.concat(m), g = n.children[m], f = Q.findKey(l, g), y = b.range(l, p), D = s && U.intersection(y, s), x = o([g, p]);
11147
+ var p = u.concat(m), g = n.children[m], f = Q.findKey(l, g), D = b.range(l, p), y = s && U.intersection(D, s), x = o([g, p]);
11148
11148
  for (var B of t) {
11149
- var _ = U.intersection(B, y);
11149
+ var _ = U.intersection(B, D);
11150
11150
  _ && x.push(_);
11151
11151
  }
11152
11152
  le.isElement(g) ? c.push(/* @__PURE__ */ re.createElement(ty.Provider, {
11153
11153
  key: "provider-".concat(f.id),
11154
- value: !!D
11154
+ value: !!y
11155
11155
  }, /* @__PURE__ */ re.createElement(Jb, {
11156
11156
  decorations: x,
11157
11157
  element: g,
@@ -11159,7 +11159,7 @@ var Qb = (e) => {
11159
11159
  renderElement: r,
11160
11160
  renderPlaceholder: a,
11161
11161
  renderLeaf: i,
11162
- selection: D
11162
+ selection: y
11163
11163
  }))) : c.push(/* @__PURE__ */ re.createElement(Od, {
11164
11164
  decorations: x,
11165
11165
  key: f.id,
@@ -11366,7 +11366,7 @@ var hy = (e) => /* @__PURE__ */ re.createElement(re.Fragment, null, Nd(e)), my =
11366
11366
  style: h = {},
11367
11367
  as: m = "div",
11368
11368
  disableDefaultStyles: p = !1
11369
- } = e, g = Qn(e, dy), f = Sn(), [y, D] = de(!1), x = _e(null), B = _e([]), [_, E] = de(), {
11369
+ } = e, g = Qn(e, dy), f = Sn(), [D, y] = de(!1), x = _e(null), B = _e([]), [_, E] = de(), {
11370
11370
  onUserInput: A,
11371
11371
  receivedUserInput: T
11372
11372
  } = ry(), [, $] = tr((F) => F + 1, 0);
@@ -11609,7 +11609,7 @@ var hy = (e) => /* @__PURE__ */ re.createElement(re.Fragment, null, Nd(e)), my =
11609
11609
  case "insertFromYank":
11610
11610
  case "insertReplacementText":
11611
11611
  case "insertText": {
11612
- H === "insertFromComposition" && Q.isComposing(f) && (D(!1), bn.set(f, !1)), (ee == null ? void 0 : ee.constructor.name) === "DataTransfer" ? Q.insertData(f, ee) : typeof ee == "string" && (ie ? B.current.push(() => b.insertText(f, ee)) : b.insertText(f, ee));
11612
+ H === "insertFromComposition" && Q.isComposing(f) && (y(!1), bn.set(f, !1)), (ee == null ? void 0 : ee.constructor.name) === "DataTransfer" ? Q.insertData(f, ee) : typeof ee == "string" && (ie ? B.current.push(() => b.insertText(f, ee)) : b.insertText(f, ee));
11613
11613
  break;
11614
11614
  }
11615
11615
  }
@@ -11625,7 +11625,7 @@ var hy = (e) => /* @__PURE__ */ re.createElement(re.Fragment, null, Nd(e)), my =
11625
11625
  F.document.removeEventListener("selectionchange", w);
11626
11626
  };
11627
11627
  }, [w]);
11628
- var S = r([f, []]), z = i && f.children.length === 1 && Array.from(oe.texts(f)).length === 1 && oe.string(f) === "" && !y, L = Pe((F) => {
11628
+ var S = r([f, []]), z = i && f.children.length === 1 && Array.from(oe.texts(f)).length === 1 && oe.string(f) === "" && !D, L = Pe((F) => {
11629
11629
  if (F && z) {
11630
11630
  var q;
11631
11631
  E((q = F.getBoundingClientRect()) === null || q === void 0 ? void 0 : q.height);
@@ -11793,7 +11793,7 @@ var hy = (e) => /* @__PURE__ */ re.createElement(re.Fragment, null, Nd(e)), my =
11793
11793
  if (Q.hasSelectableTarget(f, F.target)) {
11794
11794
  var q;
11795
11795
  if (Q.isComposing(f) && Promise.resolve().then(() => {
11796
- D(!1), bn.set(f, !1);
11796
+ y(!1), bn.set(f, !1);
11797
11797
  }), (q = M.current) === null || q === void 0 || q.handleCompositionEnd(F), lt(F, g.onCompositionEnd) || ft)
11798
11798
  return;
11799
11799
  if (!vr && !ob && !rb && !lb && !ub && F.data) {
@@ -11805,14 +11805,14 @@ var hy = (e) => /* @__PURE__ */ re.createElement(re.Fragment, null, Nd(e)), my =
11805
11805
  }
11806
11806
  }, [g.onCompositionEnd, f]),
11807
11807
  onCompositionUpdate: Pe((F) => {
11808
- Q.hasSelectableTarget(f, F.target) && !lt(F, g.onCompositionUpdate) && (Q.isComposing(f) || (D(!0), bn.set(f, !0)));
11808
+ Q.hasSelectableTarget(f, F.target) && !lt(F, g.onCompositionUpdate) && (Q.isComposing(f) || (y(!0), bn.set(f, !0)));
11809
11809
  }, [g.onCompositionUpdate, f]),
11810
11810
  onCompositionStart: Pe((F) => {
11811
11811
  if (Q.hasSelectableTarget(f, F.target)) {
11812
11812
  var q;
11813
11813
  if ((q = M.current) === null || q === void 0 || q.handleCompositionStart(F), lt(F, g.onCompositionStart) || ft)
11814
11814
  return;
11815
- D(!0);
11815
+ y(!0);
11816
11816
  var {
11817
11817
  selection: I
11818
11818
  } = f;
@@ -11892,7 +11892,7 @@ var hy = (e) => /* @__PURE__ */ re.createElement(re.Fragment, null, Nd(e)), my =
11892
11892
  var {
11893
11893
  nativeEvent: I
11894
11894
  } = F;
11895
- if (Q.isComposing(f) && I.isComposing === !1 && (bn.set(f, !1), D(!1)), lt(F, g.onKeyDown) || Q.isComposing(f))
11895
+ if (Q.isComposing(f) && I.isComposing === !1 && (bn.set(f, !1), y(!1)), lt(F, g.onKeyDown) || Q.isComposing(f))
11896
11896
  return;
11897
11897
  var {
11898
11898
  selection: H
@@ -12117,16 +12117,16 @@ var wy = ["editor", "children", "onChange", "onSelectionChange", "onValueChange"
12117
12117
  selectorContext: c,
12118
12118
  onChange: h
12119
12119
  } = xy(t), m = Pe((f) => {
12120
- var y;
12121
- switch (r && r(t.children), f == null || (y = f.operation) === null || y === void 0 ? void 0 : y.type) {
12120
+ var D;
12121
+ switch (r && r(t.children), f == null || (D = f.operation) === null || D === void 0 ? void 0 : D.type) {
12122
12122
  case "set_selection":
12123
12123
  a == null || a(t.selection);
12124
12124
  break;
12125
12125
  default:
12126
12126
  i == null || i(t.children);
12127
12127
  }
12128
- u((D) => ({
12129
- v: D.v + 1,
12128
+ u((y) => ({
12129
+ v: y.v + 1,
12130
12130
  editor: t
12131
12131
  })), h(t);
12132
12132
  }, [t, h, r, a, i]);
@@ -12231,9 +12231,9 @@ var _y = function(t) {
12231
12231
  g && sn.set(r, Yu(r, g, u));
12232
12232
  var f = an.get(r);
12233
12233
  if (f != null && f.at) {
12234
- var y = Be.isPoint(f == null ? void 0 : f.at) ? ws(r, f.at, u) : Yu(r, f.at, u);
12235
- an.set(r, y ? ul(ul({}, f), {}, {
12236
- at: y
12234
+ var D = Be.isPoint(f == null ? void 0 : f.at) ? ws(r, f.at, u) : Yu(r, f.at, u);
12235
+ an.set(r, D ? ul(ul({}, f), {}, {
12236
+ at: D
12237
12237
  }) : null);
12238
12238
  }
12239
12239
  switch (u.type) {
@@ -12245,8 +12245,8 @@ var _y = function(t) {
12245
12245
  break;
12246
12246
  }
12247
12247
  case "set_selection": {
12248
- var D;
12249
- (D = xr.get(r)) === null || D === void 0 || D.unref(), xr.delete(r);
12248
+ var y;
12249
+ (y = xr.get(r)) === null || y === void 0 || y.unref(), xr.delete(r);
12250
12250
  break;
12251
12251
  }
12252
12252
  case "insert_node":
@@ -12290,25 +12290,25 @@ var _y = function(t) {
12290
12290
  at: m.path
12291
12291
  });
12292
12292
  if (!(U.isCollapsed(c) && !p)) {
12293
- var f = Q.toDOMRange(r, c), y = f.cloneContents(), D = y.childNodes[0];
12294
- if (y.childNodes.forEach((M) => {
12295
- M.textContent && M.textContent.trim() !== "" && (D = M);
12293
+ var f = Q.toDOMRange(r, c), D = f.cloneContents(), y = D.childNodes[0];
12294
+ if (D.childNodes.forEach((M) => {
12295
+ M.textContent && M.textContent.trim() !== "" && (y = M);
12296
12296
  }), g) {
12297
12297
  var [x] = g, B = f.cloneRange(), _ = Q.toDOMNode(r, x);
12298
- B.setEndAfter(_), y = B.cloneContents();
12298
+ B.setEndAfter(_), D = B.cloneContents();
12299
12299
  }
12300
- if (p && (D = y.querySelector("[data-slate-spacer]")), Array.from(y.querySelectorAll("[data-slate-zero-width]")).forEach((M) => {
12300
+ if (p && (y = D.querySelector("[data-slate-spacer]")), Array.from(D.querySelectorAll("[data-slate-zero-width]")).forEach((M) => {
12301
12301
  var R = M.getAttribute("data-slate-zero-width") === "n";
12302
12302
  M.textContent = R ? `
12303
12303
  ` : "";
12304
- }), kd(D)) {
12305
- var E = D.ownerDocument.createElement("span");
12306
- E.style.whiteSpace = "pre", E.appendChild(D), y.appendChild(E), D = E;
12304
+ }), kd(y)) {
12305
+ var E = y.ownerDocument.createElement("span");
12306
+ E.style.whiteSpace = "pre", E.appendChild(y), D.appendChild(E), y = E;
12307
12307
  }
12308
12308
  var A = r.getFragment(), T = JSON.stringify(A), $ = window.btoa(encodeURIComponent(T));
12309
- D.setAttribute("data-slate-fragment", $), u.setData("application/".concat(n), $);
12310
- var N = y.ownerDocument.createElement("div");
12311
- return N.appendChild(y), N.setAttribute("hidden", "true"), y.ownerDocument.body.appendChild(N), u.setData("text/html", N.innerHTML), u.setData("text/plain", Ad(N)), y.ownerDocument.body.removeChild(N), u;
12309
+ y.setAttribute("data-slate-fragment", $), u.setData("application/".concat(n), $);
12310
+ var N = D.ownerDocument.createElement("div");
12311
+ return N.appendChild(D), N.setAttribute("hidden", "true"), D.ownerDocument.body.appendChild(N), u.setData("text/html", N.innerHTML), u.setData("text/plain", Ad(N)), D.ownerDocument.body.removeChild(N), u;
12312
12312
  }
12313
12313
  }
12314
12314
  }, r.insertData = (u) => {
@@ -12417,13 +12417,13 @@ const By = ({
12417
12417
  return;
12418
12418
  let u, c = 0;
12419
12419
  if (t === "mention-popover") {
12420
- const { position: f } = i, y = (B) => {
12420
+ const { position: f } = i, D = (B) => {
12421
12421
  if (!b.hasPath(e, B.path))
12422
12422
  return !1;
12423
12423
  const _ = oe.get(e, B.path);
12424
12424
  return b.isEditor(_) || le.isElement(_) ? B.offset <= _.children.length : fe.isText(_) ? B.offset <= _.text.length : !1;
12425
12425
  };
12426
- if (f && (!y(f == null ? void 0 : f.anchor) || !y(f == null ? void 0 : f.focus)))
12426
+ if (f && (!D(f == null ? void 0 : f.anchor) || !D(f == null ? void 0 : f.focus)))
12427
12427
  return;
12428
12428
  u = Q.toDOMRange(
12429
12429
  e,
@@ -13990,7 +13990,7 @@ function d1(e) {
13990
13990
  A = t.events[E][1].end;
13991
13991
  break;
13992
13992
  }
13993
- D(r);
13993
+ y(r);
13994
13994
  let T = _;
13995
13995
  for (; T < t.events.length; )
13996
13996
  t.events[T][1].end = Object.assign({}, A), T++;
@@ -14018,7 +14018,7 @@ function d1(e) {
14018
14018
  )(B);
14019
14019
  }
14020
14020
  function c(B) {
14021
- return a && x(), D(r), m(B);
14021
+ return a && x(), y(r), m(B);
14022
14022
  }
14023
14023
  function h(B) {
14024
14024
  return t.parser.lazy[t.now().line] = r !== n.length, s = t.now().offset, g(B);
@@ -14035,7 +14035,7 @@ function d1(e) {
14035
14035
  }
14036
14036
  function g(B) {
14037
14037
  if (B === null) {
14038
- a && x(), D(0), e.consume(B);
14038
+ a && x(), y(0), e.consume(B);
14039
14039
  return;
14040
14040
  }
14041
14041
  return a = a || t.parser.flow(t.now()), e.enter("chunkFlow", {
@@ -14046,12 +14046,12 @@ function d1(e) {
14046
14046
  }
14047
14047
  function f(B) {
14048
14048
  if (B === null) {
14049
- y(e.exit("chunkFlow"), !0), D(0), e.consume(B);
14049
+ D(e.exit("chunkFlow"), !0), y(0), e.consume(B);
14050
14050
  return;
14051
14051
  }
14052
- return xe(B) ? (e.consume(B), y(e.exit("chunkFlow")), r = 0, t.interrupt = void 0, o) : (e.consume(B), f);
14052
+ return xe(B) ? (e.consume(B), D(e.exit("chunkFlow")), r = 0, t.interrupt = void 0, o) : (e.consume(B), f);
14053
14053
  }
14054
- function y(B, _) {
14054
+ function D(B, _) {
14055
14055
  const E = t.sliceStream(B);
14056
14056
  if (_ && E.push(null), B.previous = i, i && (i.next = B), i = B, a.defineSkip(B.start), a.write(E), t.parser.lazy[B.start.line]) {
14057
14057
  let A = a.events.length;
@@ -14073,7 +14073,7 @@ function d1(e) {
14073
14073
  }
14074
14074
  N = !0;
14075
14075
  }
14076
- for (D(r), A = T; A < t.events.length; )
14076
+ for (y(r), A = T; A < t.events.length; )
14077
14077
  t.events[A][1].end = Object.assign({}, M), A++;
14078
14078
  qt(
14079
14079
  t.events,
@@ -14083,7 +14083,7 @@ function d1(e) {
14083
14083
  ), t.events.length = A;
14084
14084
  }
14085
14085
  }
14086
- function D(B) {
14086
+ function y(B) {
14087
14087
  let _ = n.length;
14088
14088
  for (; _-- > B; ) {
14089
14089
  const E = n[_];
@@ -14372,12 +14372,12 @@ function C1(e, t, n) {
14372
14372
  return A === null || xe(A) ? (e.exit("chunkString"), e.exit("codeFencedFenceMeta"), h(A)) : A === 96 && A === o ? n(A) : (e.consume(A), g);
14373
14373
  }
14374
14374
  function f(A) {
14375
- return e.attempt(a, _, y)(A);
14376
- }
14377
- function y(A) {
14378
- return e.enter("lineEnding"), e.consume(A), e.exit("lineEnding"), D;
14375
+ return e.attempt(a, _, D)(A);
14379
14376
  }
14380
14377
  function D(A) {
14378
+ return e.enter("lineEnding"), e.consume(A), e.exit("lineEnding"), y;
14379
+ }
14380
+ function y(A) {
14381
14381
  return i > 0 && Re(A) ? ze(
14382
14382
  e,
14383
14383
  x,
@@ -14532,7 +14532,7 @@ function j1(e, t) {
14532
14532
  let a = t - 1;
14533
14533
  const i = [], s = n._tokenizer || r.parser[n.contentType](n.start), o = s.events, l = [], u = {};
14534
14534
  let c, h, m = -1, p = n, g = 0, f = 0;
14535
- const y = [f];
14535
+ const D = [f];
14536
14536
  for (; p; ) {
14537
14537
  for (; e[++a][1] !== p; )
14538
14538
  ;
@@ -14540,10 +14540,10 @@ function j1(e, t) {
14540
14540
  }
14541
14541
  for (p = n; ++m < o.length; )
14542
14542
  // Find a void token that includes a break.
14543
- o[m][0] === "exit" && o[m - 1][0] === "enter" && o[m][1].type === o[m - 1][1].type && o[m][1].start.line !== o[m][1].end.line && (f = m + 1, y.push(f), p._tokenizer = void 0, p.previous = void 0, p = p.next);
14544
- for (s.events = [], p ? (p._tokenizer = void 0, p.previous = void 0) : y.pop(), m = y.length; m--; ) {
14545
- const D = o.slice(y[m], y[m + 1]), x = i.pop();
14546
- l.unshift([x, x + D.length - 1]), qt(e, x, 2, D);
14543
+ o[m][0] === "exit" && o[m - 1][0] === "enter" && o[m][1].type === o[m - 1][1].type && o[m][1].start.line !== o[m][1].end.line && (f = m + 1, D.push(f), p._tokenizer = void 0, p.previous = void 0, p = p.next);
14544
+ for (s.events = [], p ? (p._tokenizer = void 0, p.previous = void 0) : D.pop(), m = D.length; m--; ) {
14545
+ const y = o.slice(D[m], D[m + 1]), x = i.pop();
14546
+ l.unshift([x, x + y.length - 1]), qt(e, x, 2, y);
14547
14547
  }
14548
14548
  for (m = -1; ++m < l.length; )
14549
14549
  u[g + l[m][0]] = g + l[m][1], g += l[m][1] - l[m][0] - 1;
@@ -14601,27 +14601,27 @@ function Zd(e, t, n, r, a, i, s, o, l) {
14601
14601
  const u = l || Number.POSITIVE_INFINITY;
14602
14602
  let c = 0;
14603
14603
  return h;
14604
- function h(D) {
14605
- return D === 60 ? (e.enter(r), e.enter(a), e.enter(i), e.consume(D), e.exit(i), m) : D === null || D === 32 || D === 41 || As(D) ? n(D) : (e.enter(r), e.enter(s), e.enter(o), e.enter("chunkString", {
14604
+ function h(y) {
14605
+ return y === 60 ? (e.enter(r), e.enter(a), e.enter(i), e.consume(y), e.exit(i), m) : y === null || y === 32 || y === 41 || As(y) ? n(y) : (e.enter(r), e.enter(s), e.enter(o), e.enter("chunkString", {
14606
14606
  contentType: "string"
14607
- }), f(D));
14607
+ }), f(y));
14608
14608
  }
14609
- function m(D) {
14610
- return D === 62 ? (e.enter(i), e.consume(D), e.exit(i), e.exit(a), e.exit(r), t) : (e.enter(o), e.enter("chunkString", {
14609
+ function m(y) {
14610
+ return y === 62 ? (e.enter(i), e.consume(y), e.exit(i), e.exit(a), e.exit(r), t) : (e.enter(o), e.enter("chunkString", {
14611
14611
  contentType: "string"
14612
- }), p(D));
14612
+ }), p(y));
14613
14613
  }
14614
- function p(D) {
14615
- return D === 62 ? (e.exit("chunkString"), e.exit(o), m(D)) : D === null || D === 60 || xe(D) ? n(D) : (e.consume(D), D === 92 ? g : p);
14614
+ function p(y) {
14615
+ return y === 62 ? (e.exit("chunkString"), e.exit(o), m(y)) : y === null || y === 60 || xe(y) ? n(y) : (e.consume(y), y === 92 ? g : p);
14616
14616
  }
14617
- function g(D) {
14618
- return D === 60 || D === 62 || D === 92 ? (e.consume(D), p) : p(D);
14617
+ function g(y) {
14618
+ return y === 60 || y === 62 || y === 92 ? (e.consume(y), p) : p(y);
14619
14619
  }
14620
- function f(D) {
14621
- return !c && (D === null || D === 41 || vt(D)) ? (e.exit("chunkString"), e.exit(o), e.exit(s), e.exit(r), t(D)) : c < u && D === 40 ? (e.consume(D), c++, f) : D === 41 ? (e.consume(D), c--, f) : D === null || D === 32 || D === 40 || As(D) ? n(D) : (e.consume(D), D === 92 ? y : f);
14620
+ function f(y) {
14621
+ return !c && (y === null || y === 41 || vt(y)) ? (e.exit("chunkString"), e.exit(o), e.exit(s), e.exit(r), t(y)) : c < u && y === 40 ? (e.consume(y), c++, f) : y === 41 ? (e.consume(y), c--, f) : y === null || y === 32 || y === 40 || As(y) ? n(y) : (e.consume(y), y === 92 ? D : f);
14622
14622
  }
14623
- function y(D) {
14624
- return D === 40 || D === 41 || D === 92 ? (e.consume(D), f) : f(D);
14623
+ function D(y) {
14624
+ return y === 40 || y === 41 || y === 92 ? (e.consume(y), f) : f(y);
14625
14625
  }
14626
14626
  }
14627
14627
  function Yd(e, t, n, r, a, i) {
@@ -14909,7 +14909,7 @@ function J1(e, t, n) {
14909
14909
  return e.enter("htmlFlow"), e.enter("htmlFlowData"), e.consume(k), h;
14910
14910
  }
14911
14911
  function h(k) {
14912
- return k === 33 ? (e.consume(k), m) : k === 47 ? (e.consume(k), i = !0, f) : k === 63 ? (e.consume(k), a = 3, r.interrupt ? t : v) : It(k) ? (e.consume(k), s = String.fromCharCode(k), y) : n(k);
14912
+ return k === 33 ? (e.consume(k), m) : k === 47 ? (e.consume(k), i = !0, f) : k === 63 ? (e.consume(k), a = 3, r.interrupt ? t : v) : It(k) ? (e.consume(k), s = String.fromCharCode(k), D) : n(k);
14913
14913
  }
14914
14914
  function m(k) {
14915
14915
  return k === 45 ? (e.consume(k), a = 2, p) : k === 91 ? (e.consume(k), a = 5, o = 0, g) : It(k) ? (e.consume(k), a = 4, r.interrupt ? t : v) : n(k);
@@ -14922,16 +14922,16 @@ function J1(e, t, n) {
14922
14922
  return k === F.charCodeAt(o++) ? (e.consume(k), o === F.length ? r.interrupt ? t : w : g) : n(k);
14923
14923
  }
14924
14924
  function f(k) {
14925
- return It(k) ? (e.consume(k), s = String.fromCharCode(k), y) : n(k);
14925
+ return It(k) ? (e.consume(k), s = String.fromCharCode(k), D) : n(k);
14926
14926
  }
14927
- function y(k) {
14927
+ function D(k) {
14928
14928
  if (k === null || k === 47 || k === 62 || vt(k)) {
14929
14929
  const F = k === 47, q = s.toLowerCase();
14930
- return !F && !i && Tl.includes(q) ? (a = 1, r.interrupt ? t(k) : w(k)) : K1.includes(s.toLowerCase()) ? (a = 6, F ? (e.consume(k), D) : r.interrupt ? t(k) : w(k)) : (a = 7, r.interrupt && !r.parser.lazy[r.now().line] ? n(k) : i ? x(k) : B(k));
14930
+ return !F && !i && Tl.includes(q) ? (a = 1, r.interrupt ? t(k) : w(k)) : K1.includes(s.toLowerCase()) ? (a = 6, F ? (e.consume(k), y) : r.interrupt ? t(k) : w(k)) : (a = 7, r.interrupt && !r.parser.lazy[r.now().line] ? n(k) : i ? x(k) : B(k));
14931
14931
  }
14932
- return k === 45 || Ot(k) ? (e.consume(k), s += String.fromCharCode(k), y) : n(k);
14932
+ return k === 45 || Ot(k) ? (e.consume(k), s += String.fromCharCode(k), D) : n(k);
14933
14933
  }
14934
- function D(k) {
14934
+ function y(k) {
14935
14935
  return k === 62 ? (e.consume(k), r.interrupt ? t : w) : n(k);
14936
14936
  }
14937
14937
  function x(k) {
@@ -15060,13 +15060,13 @@ function nD(e, t, n) {
15060
15060
  return v === W.charCodeAt(i++) ? (e.consume(v), i === W.length ? f : g) : n(v);
15061
15061
  }
15062
15062
  function f(v) {
15063
- return v === null ? n(v) : v === 93 ? (e.consume(v), y) : xe(v) ? (s = f, L(v)) : (e.consume(v), f);
15064
- }
15065
- function y(v) {
15066
- return v === 93 ? (e.consume(v), D) : f(v);
15063
+ return v === null ? n(v) : v === 93 ? (e.consume(v), D) : xe(v) ? (s = f, L(v)) : (e.consume(v), f);
15067
15064
  }
15068
15065
  function D(v) {
15069
- return v === 62 ? z(v) : v === 93 ? (e.consume(v), D) : f(v);
15066
+ return v === 93 ? (e.consume(v), y) : f(v);
15067
+ }
15068
+ function y(v) {
15069
+ return v === 62 ? z(v) : v === 93 ? (e.consume(v), y) : f(v);
15070
15070
  }
15071
15071
  function x(v) {
15072
15072
  return v === null || v === 62 ? z(v) : xe(v) ? (s = x, L(v)) : (e.consume(v), x);
@@ -15701,7 +15701,7 @@ function OD(e, t, n) {
15701
15701
  let c = t.tokenize.call(u, l);
15702
15702
  return t.resolveAll && i.push(t), u;
15703
15703
  function h(R) {
15704
- return s = Bt(s, R), y(), s[s.length - 1] !== null ? [] : ($(t, 0), u.events = oo(i, u.events, u), u.events);
15704
+ return s = Bt(s, R), D(), s[s.length - 1] !== null ? [] : ($(t, 0), u.events = oo(i, u.events, u), u.events);
15705
15705
  }
15706
15706
  function m(R, w) {
15707
15707
  return ND(p(R), w);
@@ -15722,18 +15722,18 @@ function OD(e, t, n) {
15722
15722
  function f(R) {
15723
15723
  a[R.line] = R.column, M();
15724
15724
  }
15725
- function y() {
15725
+ function D() {
15726
15726
  let R;
15727
15727
  for (; r._index < s.length; ) {
15728
15728
  const w = s[r._index];
15729
15729
  if (typeof w == "string")
15730
15730
  for (R = r._index, r._bufferIndex < 0 && (r._bufferIndex = 0); r._index === R && r._bufferIndex < w.length; )
15731
- D(w.charCodeAt(r._bufferIndex));
15731
+ y(w.charCodeAt(r._bufferIndex));
15732
15732
  else
15733
- D(w);
15733
+ y(w);
15734
15734
  }
15735
15735
  }
15736
- function D(R) {
15736
+ function y(R) {
15737
15737
  c = c(R);
15738
15738
  }
15739
15739
  function x(R) {
@@ -16083,12 +16083,12 @@ function XD(e) {
16083
16083
  characterReferenceMarkerHexadecimal: q,
16084
16084
  characterReferenceMarkerNumeric: q,
16085
16085
  characterReferenceValue: I,
16086
- codeFenced: l(y),
16086
+ codeFenced: l(D),
16087
16087
  codeFencedFence: f,
16088
16088
  codeFencedFenceInfo: p,
16089
16089
  codeFencedFenceMeta: g,
16090
16090
  codeFlowValue: M,
16091
- codeIndented: l(D),
16091
+ codeIndented: l(y),
16092
16092
  codeText: l(S),
16093
16093
  codeTextData: M,
16094
16094
  data: M,
@@ -16301,11 +16301,11 @@ function XD(e) {
16301
16301
  function f() {
16302
16302
  this.data.flowCodeInside || (this.buffer(), this.data.flowCodeInside = !0);
16303
16303
  }
16304
- function y() {
16304
+ function D() {
16305
16305
  const V = this.resume(), se = this.stack[this.stack.length - 1];
16306
16306
  se.value = V.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g, ""), this.data.flowCodeInside = void 0;
16307
16307
  }
16308
- function D() {
16308
+ function y() {
16309
16309
  const V = this.resume(), se = this.stack[this.stack.length - 1];
16310
16310
  se.value = V.replace(/(\r?\n|\r)$/g, "");
16311
16311
  }
@@ -16830,21 +16830,24 @@ const nx = function(t) {
16830
16830
  }, sx = async (e, t, n, r) => {
16831
16831
  const { selection: a } = e;
16832
16832
  if (a && U.isCollapsed(a)) {
16833
- const [i] = U.edges(a), s = b.before(e, i, { unit: "word" }), o = s && b.before(e, s), l = o && b.range(e, o, i), u = l && b.string(e, l), c = u && u.match(gh), h = b.after(e, i), m = b.range(e, i, h), g = b.string(e, m).match(/^(\s|$)/);
16834
- if (c && g) {
16835
- const f = c[1];
16836
- let y = [];
16837
- n && (y = await n({ name: f })), r([
16838
- {
16839
- type: "mentionPopover",
16840
- value: {
16841
- show: !0,
16842
- selectedUser: 0,
16843
- possibleUsers: y,
16844
- position: l
16833
+ const [i] = U.edges(a), s = b.start(e, i.path), o = b.range(e, s, i), u = b.string(e, o).match(gh);
16834
+ if (u) {
16835
+ const c = u.index || 0, h = { path: i.path, offset: c }, m = { path: i.path, offset: c + u[0].length }, p = b.range(e, h, m), g = b.after(e, i), f = b.range(e, i, g);
16836
+ if (b.string(e, f).match(/^(\s|\.|,|\?|!|:|;|'|"|`|$)/)) {
16837
+ const x = u[1];
16838
+ let B = [];
16839
+ n && (B = await n({ name: x })), r([
16840
+ {
16841
+ type: "mentionPopover",
16842
+ value: {
16843
+ show: B.length > 0,
16844
+ selectedUser: 0,
16845
+ possibleUsers: B,
16846
+ position: B.length > 0 ? p : null
16847
+ }
16845
16848
  }
16846
- }
16847
- ]);
16849
+ ]);
16850
+ }
16848
16851
  return;
16849
16852
  }
16850
16853
  }
@@ -17036,13 +17039,13 @@ const lx = () => {
17036
17039
  },
17037
17040
  onBlur: (f) => {
17038
17041
  f.stopPropagation();
17039
- const y = [
17042
+ const D = [
17040
17043
  { type: "openTooltip", value: null }
17041
17044
  ];
17042
- l.selection && y.push({
17045
+ l.selection && D.push({
17043
17046
  type: "lastAnchor",
17044
17047
  value: l.selection.anchor
17045
- }), p(y);
17048
+ }), p(D);
17046
17049
  },
17047
17050
  contentEditable: !1,
17048
17051
  children: [
@@ -17059,7 +17062,7 @@ const lx = () => {
17059
17062
  f.stopPropagation(), f.preventDefault(), r();
17060
17063
  },
17061
17064
  onKeyDown: (f) => {
17062
- var y, D, x, B;
17065
+ var D, y, x, B;
17063
17066
  if (f.key !== "Tab")
17064
17067
  switch (f.key) {
17065
17068
  case "Enter":
@@ -17072,9 +17075,9 @@ const lx = () => {
17072
17075
  let E = _ == null ? void 0 : _.nextElementSibling;
17073
17076
  if (f.key === "ArrowLeft") {
17074
17077
  const $ = _ == null ? void 0 : _.previousElementSibling;
17075
- $ ? E = $ : E = (y = _ == null ? void 0 : _.parentElement) == null ? void 0 : y.lastElementChild;
17078
+ $ ? E = $ : E = (D = _ == null ? void 0 : _.parentElement) == null ? void 0 : D.lastElementChild;
17076
17079
  } else
17077
- E || (E = (D = _ == null ? void 0 : _.parentElement) == null ? void 0 : D.firstElementChild);
17080
+ E || (E = (y = _ == null ? void 0 : _.parentElement) == null ? void 0 : y.firstElementChild);
17078
17081
  const A = E == null ? void 0 : E.className.split(" ")[0];
17079
17082
  A && (h(A), (x = E == null ? void 0 : E.querySelector("button")) == null || x.focus());
17080
17083
  break;
@@ -17234,38 +17237,38 @@ let Pi = null;
17234
17237
  const mx = () => {
17235
17238
  const e = ce(), t = "richTextEditor_link_", { id: n, showLinkEditor: r, dispatch: a, reportError: i } = Ke(en), s = Sn(), o = Fy(s), l = (o == null ? void 0 : o.text) || ax(s), [u, c] = de(Er(s)), h = Ld(s, "link-editor", `${n}-link`), m = _e(null);
17236
17239
  he(() => {
17237
- var y;
17238
- !u && r && ((y = m.current) == null || y.focus());
17240
+ var D;
17241
+ !u && r && ((D = m.current) == null || D.focus());
17239
17242
  }, [u]), he(() => {
17240
17243
  Pi && clearTimeout(Pi), Pi = setTimeout(() => {
17241
17244
  c(Er(s));
17242
17245
  }, 500);
17243
17246
  }, [s.selection]);
17244
- const p = [], g = ["open", "edit", "remove"].map((y) => {
17245
- const D = {
17247
+ const p = [], g = ["open", "edit", "remove"].map((D) => {
17248
+ const y = {
17246
17249
  variant: "tertiary",
17247
17250
  size: "small",
17248
17251
  children: e.formatMessage(
17249
- { id: `${t}${y}` },
17252
+ { id: `${t}${D}` },
17250
17253
  { link: o == null ? void 0 : o.pretty }
17251
17254
  )
17252
17255
  };
17253
- switch (p.push({ className: y }), y) {
17256
+ switch (p.push({ className: D }), D) {
17254
17257
  case "open":
17255
- D.href = (o == null ? void 0 : o.full) || "", D.onClick = (x) => {
17258
+ y.href = (o == null ? void 0 : o.full) || "", y.onClick = (x) => {
17256
17259
  x.preventDefault(), x.stopPropagation(), window.open((o == null ? void 0 : o.full) || "", "_blank"), a([{ type: "showLinkEditor", value: !1 }]);
17257
- }, D.children = /* @__PURE__ */ d.jsxs(d.Fragment, { children: [
17258
- D.children,
17259
- /* @__PURE__ */ d.jsx(qe, { children: e.formatMessage({ id: `${t}${y}_text` }) })
17260
+ }, y.children = /* @__PURE__ */ d.jsxs(d.Fragment, { children: [
17261
+ y.children,
17262
+ /* @__PURE__ */ d.jsx(qe, { children: e.formatMessage({ id: `${t}${D}_text` }) })
17260
17263
  ] });
17261
17264
  break;
17262
17265
  case "edit":
17263
- D.onClick = () => {
17266
+ y.onClick = () => {
17264
17267
  c(!1);
17265
17268
  };
17266
17269
  break;
17267
17270
  case "remove":
17268
- D.onClick = () => {
17271
+ y.onClick = () => {
17269
17272
  const x = [
17270
17273
  { type: "showLinkEditor", value: !1 }
17271
17274
  ];
@@ -17273,7 +17276,7 @@ const mx = () => {
17273
17276
  };
17274
17277
  break;
17275
17278
  }
17276
- return D;
17279
+ return y;
17277
17280
  }), f = [
17278
17281
  {
17279
17282
  id: "url",
@@ -17314,8 +17317,8 @@ const mx = () => {
17314
17317
  callbacks: {
17315
17318
  onOpen: () => {
17316
17319
  setTimeout(() => {
17317
- var y;
17318
- return (y = m.current) == null ? void 0 : y.focus();
17320
+ var D;
17321
+ return (D = m.current) == null ? void 0 : D.focus();
17319
17322
  });
17320
17323
  }
17321
17324
  },
@@ -17327,16 +17330,16 @@ const mx = () => {
17327
17330
  className: Z({ "show-labels": l }),
17328
17331
  meta: { shouldReset: !0, showRequiredLabels: !1 },
17329
17332
  functions: {
17330
- onSuccess: async (y) => {
17333
+ onSuccess: async (D) => {
17331
17334
  setTimeout(() => {
17332
- const D = [
17335
+ const y = [
17333
17336
  { type: "showLinkEditor", value: !1 }
17334
17337
  ];
17335
- if (y.url) {
17336
- const { full: x } = Bc(y.url);
17337
- o != null && o.full ? hx(s, x, n, i) : fx(s, x, n, i), D.push({ type: "lastAnchor", value: null });
17338
+ if (D.url) {
17339
+ const { full: x } = Bc(D.url);
17340
+ o != null && o.full ? hx(s, x, n, i) : fx(s, x, n, i), y.push({ type: "lastAnchor", value: null });
17338
17341
  }
17339
- a(D);
17342
+ a(y);
17340
17343
  });
17341
17344
  }
17342
17345
  },
@@ -17501,8 +17504,8 @@ const Fx = ({
17501
17504
  lastKey: null,
17502
17505
  hasInteracted: !1,
17503
17506
  hasLoaded: !1
17504
- }, [f, y] = tr(Ha, g), {
17505
- originalValue: D,
17507
+ }, [f, D] = tr(Ha, g), {
17508
+ originalValue: y,
17506
17509
  initialValue: x,
17507
17510
  stringValue: B,
17508
17511
  lastAnchor: _,
@@ -17512,7 +17515,7 @@ const Fx = ({
17512
17515
  mentionPopover: $
17513
17516
  } = f, N = (S) => {
17514
17517
  const z = S || Ta[0];
17515
- S && y([{ type: "tabbableOption", value: z }]);
17518
+ S && D([{ type: "tabbableOption", value: z }]);
17516
17519
  }, M = `rte-${e}`, R = Pe(
17517
17520
  (S) => /* @__PURE__ */ d.jsx(By, { ...S }),
17518
17521
  []
@@ -17536,33 +17539,33 @@ const Fx = ({
17536
17539
  mentions: s.mentions,
17537
17540
  listMembers: c || (() => Promise.resolve([]))
17538
17541
  })), rx(z, (L) => {
17539
- y([{ type: "initialValue", value: L }]), setTimeout(() => {
17540
- y([{ type: "stringValue", value: Pl(C) }]);
17542
+ D([{ type: "initialValue", value: L }]), setTimeout(() => {
17543
+ D([{ type: "stringValue", value: Pl(C) }]);
17541
17544
  }, 150);
17542
17545
  });
17543
17546
  })();
17544
17547
  }, []), he(() => {
17545
17548
  if (C.children.length > 0 && !T) {
17546
- if (y([{ type: "hasLoaded", value: !0 }]), !i)
17549
+ if (D([{ type: "hasLoaded", value: !0 }]), !i)
17547
17550
  return;
17548
17551
  const S = b.end(C, []);
17549
17552
  Y.select(C, S), Q.focus(C);
17550
17553
  }
17551
17554
  }, [C.children.length]), he(() => {
17552
- t !== "" || !C || pc(D, t) && !A || (b.withoutNormalizing(C, () => {
17555
+ t !== "" || !C || pc(y, t) && !A || (b.withoutNormalizing(C, () => {
17553
17556
  Y.delete(C, {
17554
17557
  at: {
17555
17558
  anchor: b.start(C, []),
17556
17559
  focus: b.end(C, [])
17557
17560
  }
17558
17561
  }), Y.deselect(C), C.children.length !== 0 && Y.unwrapNodes(C, { at: [0] }), Y.insertNodes(C, p, { at: [0] });
17559
- }), y([
17562
+ }), D([
17560
17563
  { type: "initialValue", value: p },
17561
17564
  { type: "lastAnchor", value: null }
17562
17565
  ]));
17563
17566
  }, [t]);
17564
17567
  const j = yc(() => {
17565
- sx(C, $.show, c, y);
17568
+ sx(C, $.show, c, D);
17566
17569
  }, 100);
17567
17570
  return x ? /* @__PURE__ */ d.jsx("div", { id: M, className: "rich-text-editor", children: /* @__PURE__ */ d.jsxs(
17568
17571
  en.Provider,
@@ -17571,7 +17574,7 @@ const Fx = ({
17571
17574
  ...f,
17572
17575
  id: M,
17573
17576
  setFocus: N,
17574
- dispatch: y,
17577
+ dispatch: D,
17575
17578
  reportError: m
17576
17579
  },
17577
17580
  children: [
@@ -17583,7 +17586,7 @@ const Fx = ({
17583
17586
  onChange: (S) => {
17584
17587
  if (C.operations.some((L) => L.type !== "set_selection")) {
17585
17588
  const L = ux(S);
17586
- h(L), y([{ type: "stringValue", value: Pl(C) }]), A || y([{ type: "hasInteracted", value: !0 }]), j(), u && console.log({ serialized: L, json: S });
17589
+ h(L), D([{ type: "stringValue", value: Pl(C) }]), A || D([{ type: "hasInteracted", value: !0 }]), j(), u && console.log({ serialized: L, json: S });
17587
17590
  }
17588
17591
  },
17589
17592
  ...o,
@@ -17599,7 +17602,7 @@ const Fx = ({
17599
17602
  tabIndex: 0,
17600
17603
  onKeyDown: (S) => {
17601
17604
  if (S.key === "Enter") {
17602
- $.show && (S.preventDefault(), S.stopPropagation(), nf(C, $, y, M));
17605
+ $.show && (S.preventDefault(), S.stopPropagation(), nf(C, $, D, M));
17603
17606
  const { selection: z } = C;
17604
17607
  if (z) {
17605
17608
  const L = U.isCollapsed(z), [ne, J] = b.node(C, z, { depth: 1 });
@@ -17628,7 +17631,7 @@ const Fx = ({
17628
17631
  }
17629
17632
  } else if (S.key === "Escape") {
17630
17633
  if ($.show) {
17631
- S.preventDefault(), S.stopPropagation(), y([
17634
+ S.preventDefault(), S.stopPropagation(), D([
17632
17635
  { type: "mentionPopover", value: { ...$, show: !1 } }
17633
17636
  ]);
17634
17637
  return;
@@ -17637,17 +17640,17 @@ const Fx = ({
17637
17640
  S.preventDefault(), S.stopPropagation();
17638
17641
  const { selectedUser: z, possibleUsers: L } = $;
17639
17642
  let ne = S.key === "ArrowUp" ? z - 1 : z + 1;
17640
- ne < 0 && (ne = L.length - 1), ne >= L.length && (ne = 0), y([
17643
+ ne < 0 && (ne = L.length - 1), ne >= L.length && (ne = 0), D([
17641
17644
  {
17642
17645
  type: "mentionPopover",
17643
17646
  value: { ...$, selectedUser: ne }
17644
17647
  }
17645
17648
  ]);
17646
17649
  }
17647
- y([{ type: "lastKey", value: S.key }]), ix(S, C, y, m);
17650
+ D([{ type: "lastKey", value: S.key }]), ix(S, C, D, m);
17648
17651
  },
17649
17652
  onBlur: () => {
17650
- C.selection && y([{ type: "lastAnchor", value: C.selection.anchor }]);
17653
+ C.selection && D([{ type: "lastAnchor", value: C.selection.anchor }]);
17651
17654
  },
17652
17655
  onFocus: () => {
17653
17656
  if (_) {
@@ -17851,7 +17854,7 @@ const Sx = ({
17851
17854
  initialFormStatus: u = "NOT_SUBMITTED"
17852
17855
  /* NOT_SUBMITTED */
17853
17856
  }) => {
17854
- const [c, h] = de([]), [m, p] = de(!0), [g, f] = de(u), { formatMessage: y } = ce(), D = async (_) => {
17857
+ const [c, h] = de([]), [m, p] = de(!0), [g, f] = de(u), { formatMessage: D } = ce(), y = async (_) => {
17855
17858
  _.preventDefault();
17856
17859
  try {
17857
17860
  await l(c), h([]), f(
@@ -17876,20 +17879,20 @@ const Sx = ({
17876
17879
  );
17877
17880
  };
17878
17881
  return g === "CLOSED" ? null : g === "ERROR" || g === "SUCCESS" ? /* @__PURE__ */ d.jsxs("div", { className: "invite-form-wrapper", children: [
17879
- /* @__PURE__ */ d.jsx("div", { className: "content centred", children: g === "SUCCESS" ? /* @__PURE__ */ d.jsx("h2", { className: "success-title", children: y({ id: "inviteForm_success" }) }) : /* @__PURE__ */ d.jsxs("h2", { className: "error-title", children: [
17882
+ /* @__PURE__ */ d.jsx("div", { className: "content centred", children: g === "SUCCESS" ? /* @__PURE__ */ d.jsx("h2", { className: "success-title", children: D({ id: "inviteForm_success" }) }) : /* @__PURE__ */ d.jsxs("h2", { className: "error-title", children: [
17880
17883
  " ",
17881
- y({ id: "inviteForm_error" })
17884
+ D({ id: "inviteForm_error" })
17882
17885
  ] }) }),
17883
17886
  /* @__PURE__ */ d.jsx(Cn, {}),
17884
17887
  /* @__PURE__ */ d.jsx("div", { className: "footer", children: g === "SUCCESS" ? /* @__PURE__ */ d.jsxs(d.Fragment, { children: [
17885
- /* @__PURE__ */ d.jsx(Se, { variant: "secondary", onClick: x, children: y({ id: "inviteForm_ctaSendMoreInvites" }) }),
17886
- /* @__PURE__ */ d.jsx(Se, { onClick: B, children: y({ id: "inviteForm_ctaDone" }) })
17887
- ] }) : /* @__PURE__ */ d.jsx(Se, { onClick: x, children: y({ id: "inviteForm_ctaTryAgain" }) }) })
17888
+ /* @__PURE__ */ d.jsx(Se, { variant: "secondary", onClick: x, children: D({ id: "inviteForm_ctaSendMoreInvites" }) }),
17889
+ /* @__PURE__ */ d.jsx(Se, { onClick: B, children: D({ id: "inviteForm_ctaDone" }) })
17890
+ ] }) : /* @__PURE__ */ d.jsx(Se, { onClick: x, children: D({ id: "inviteForm_ctaTryAgain" }) }) })
17888
17891
  ] }) : /* @__PURE__ */ d.jsx("div", { className: "invite-form-wrapper", children: /* @__PURE__ */ d.jsxs(
17889
17892
  "form",
17890
17893
  {
17891
17894
  style: { backgroundColor: i },
17892
- onSubmit: D,
17895
+ onSubmit: y,
17893
17896
  className: Z("invite-form gtm-trackable"),
17894
17897
  children: [
17895
17898
  /* @__PURE__ */ d.jsxs("fieldset", { className: "content", children: [
@@ -17900,7 +17903,7 @@ const Sx = ({
17900
17903
  {
17901
17904
  id: "email-input",
17902
17905
  inputClassName: "email-input input",
17903
- placeholder: y({ id: "inviteForm_email_placeholder" }),
17906
+ placeholder: D({ id: "inviteForm_email_placeholder" }),
17904
17907
  emails: c,
17905
17908
  onChange: (_) => {
17906
17909
  h(_), p(!_.length);
@@ -17918,7 +17921,7 @@ const Sx = ({
17918
17921
  A(E), p(!c.length);
17919
17922
  },
17920
17923
  className: "remove-email-button",
17921
- screenreaderText: y({ id: "overlay_close" })
17924
+ screenreaderText: D({ id: "overlay_close" })
17922
17925
  }
17923
17926
  )
17924
17927
  ] }, E)
@@ -18357,8 +18360,8 @@ const Mx = {
18357
18360
  url: h,
18358
18361
  logInButton: m,
18359
18362
  successMessage: p
18360
- }, [f, y] = tr(Ha, Mx), {
18361
- validFields: D,
18363
+ }, [f, D] = tr(Ha, Mx), {
18364
+ validFields: y,
18362
18365
  emailDetails: x,
18363
18366
  shouldManuallyApprove: B,
18364
18367
  shouldDisableButton: _,
@@ -18379,7 +18382,7 @@ const Mx = {
18379
18382
  he(() => {
18380
18383
  B === !0 && N.jobTitle.current && N.jobTitle.current.focus();
18381
18384
  }, [B]), he(() => {
18382
- T["signup-this-session"] && y([{ type: "showSuccessMessage", value: !0 }]);
18385
+ T["signup-this-session"] && D([{ type: "showSuccessMessage", value: !0 }]);
18383
18386
  }, [T]), he(() => {
18384
18387
  E && T["functional-cookie-consent"] && $("signup-this-session", "true", {
18385
18388
  path: "/",
@@ -18393,10 +18396,10 @@ const Mx = {
18393
18396
  functions: r,
18394
18397
  refs: N,
18395
18398
  state: f,
18396
- dispatch: y,
18399
+ dispatch: D,
18397
18400
  dataToSubmit: s,
18398
18401
  intl: l
18399
- }), [s, r, l, N, g, f]), R = _ ? !0 : B ? !Object.values(D).every((w) => w === !0) : !D.name || !D.email || ["exists", "pending", "verify"].includes(x.boxType);
18402
+ }), [s, r, l, N, g, f]), R = _ ? !0 : B ? !Object.values(y).every((w) => w === !0) : !y.name || !y.email || ["exists", "pending", "verify"].includes(x.boxType);
18400
18403
  return g.successMessage && E ? /* @__PURE__ */ d.jsx(Rx, { className: e }) : /* @__PURE__ */ d.jsxs(
18401
18404
  "fieldset",
18402
18405
  {
@@ -18453,12 +18456,12 @@ const Mx = {
18453
18456
  dataToSubmit: s,
18454
18457
  createAccount: r.createAccount,
18455
18458
  onSuccess: r.onSuccess,
18456
- dispatch: y,
18459
+ dispatch: D,
18457
18460
  state: f
18458
18461
  });
18459
18462
  },
18460
18463
  onCatch: (w) => {
18461
- r.handleError(w), y([
18464
+ r.handleError(w), D([
18462
18465
  { type: "showSuccessMessage", value: !1 },
18463
18466
  { type: "showError", value: !0 }
18464
18467
  ]);
@@ -18485,7 +18488,7 @@ function $x() {
18485
18488
  if (Ll)
18486
18489
  return Me;
18487
18490
  Ll = 1;
18488
- var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103, n = e ? Symbol.for("react.portal") : 60106, r = e ? Symbol.for("react.fragment") : 60107, a = e ? Symbol.for("react.strict_mode") : 60108, i = e ? Symbol.for("react.profiler") : 60114, s = e ? Symbol.for("react.provider") : 60109, o = e ? Symbol.for("react.context") : 60110, l = e ? Symbol.for("react.async_mode") : 60111, u = e ? Symbol.for("react.concurrent_mode") : 60111, c = e ? Symbol.for("react.forward_ref") : 60112, h = e ? Symbol.for("react.suspense") : 60113, m = e ? Symbol.for("react.suspense_list") : 60120, p = e ? Symbol.for("react.memo") : 60115, g = e ? Symbol.for("react.lazy") : 60116, f = e ? Symbol.for("react.block") : 60121, y = e ? Symbol.for("react.fundamental") : 60117, D = e ? Symbol.for("react.responder") : 60118, x = e ? Symbol.for("react.scope") : 60119;
18491
+ var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103, n = e ? Symbol.for("react.portal") : 60106, r = e ? Symbol.for("react.fragment") : 60107, a = e ? Symbol.for("react.strict_mode") : 60108, i = e ? Symbol.for("react.profiler") : 60114, s = e ? Symbol.for("react.provider") : 60109, o = e ? Symbol.for("react.context") : 60110, l = e ? Symbol.for("react.async_mode") : 60111, u = e ? Symbol.for("react.concurrent_mode") : 60111, c = e ? Symbol.for("react.forward_ref") : 60112, h = e ? Symbol.for("react.suspense") : 60113, m = e ? Symbol.for("react.suspense_list") : 60120, p = e ? Symbol.for("react.memo") : 60115, g = e ? Symbol.for("react.lazy") : 60116, f = e ? Symbol.for("react.block") : 60121, D = e ? Symbol.for("react.fundamental") : 60117, y = e ? Symbol.for("react.responder") : 60118, x = e ? Symbol.for("react.scope") : 60119;
18489
18492
  function B(E) {
18490
18493
  if (typeof E == "object" && E !== null) {
18491
18494
  var A = E.$$typeof;
@@ -18544,7 +18547,7 @@ function $x() {
18544
18547
  }, Me.isSuspense = function(E) {
18545
18548
  return B(E) === h;
18546
18549
  }, Me.isValidElementType = function(E) {
18547
- return typeof E == "string" || typeof E == "function" || E === r || E === u || E === i || E === a || E === h || E === m || typeof E == "object" && E !== null && (E.$$typeof === g || E.$$typeof === p || E.$$typeof === s || E.$$typeof === o || E.$$typeof === c || E.$$typeof === y || E.$$typeof === D || E.$$typeof === x || E.$$typeof === f);
18550
+ return typeof E == "string" || typeof E == "function" || E === r || E === u || E === i || E === a || E === h || E === m || typeof E == "object" && E !== null && (E.$$typeof === g || E.$$typeof === p || E.$$typeof === s || E.$$typeof === o || E.$$typeof === c || E.$$typeof === D || E.$$typeof === y || E.$$typeof === x || E.$$typeof === f);
18548
18551
  }, Me.typeOf = B, Me;
18549
18552
  }
18550
18553
  var $e = {};
@@ -18559,10 +18562,10 @@ var $e = {};
18559
18562
  var zl;
18560
18563
  function Ix() {
18561
18564
  return zl || (zl = 1, process.env.NODE_ENV !== "production" && function() {
18562
- var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103, n = e ? Symbol.for("react.portal") : 60106, r = e ? Symbol.for("react.fragment") : 60107, a = e ? Symbol.for("react.strict_mode") : 60108, i = e ? Symbol.for("react.profiler") : 60114, s = e ? Symbol.for("react.provider") : 60109, o = e ? Symbol.for("react.context") : 60110, l = e ? Symbol.for("react.async_mode") : 60111, u = e ? Symbol.for("react.concurrent_mode") : 60111, c = e ? Symbol.for("react.forward_ref") : 60112, h = e ? Symbol.for("react.suspense") : 60113, m = e ? Symbol.for("react.suspense_list") : 60120, p = e ? Symbol.for("react.memo") : 60115, g = e ? Symbol.for("react.lazy") : 60116, f = e ? Symbol.for("react.block") : 60121, y = e ? Symbol.for("react.fundamental") : 60117, D = e ? Symbol.for("react.responder") : 60118, x = e ? Symbol.for("react.scope") : 60119;
18565
+ var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103, n = e ? Symbol.for("react.portal") : 60106, r = e ? Symbol.for("react.fragment") : 60107, a = e ? Symbol.for("react.strict_mode") : 60108, i = e ? Symbol.for("react.profiler") : 60114, s = e ? Symbol.for("react.provider") : 60109, o = e ? Symbol.for("react.context") : 60110, l = e ? Symbol.for("react.async_mode") : 60111, u = e ? Symbol.for("react.concurrent_mode") : 60111, c = e ? Symbol.for("react.forward_ref") : 60112, h = e ? Symbol.for("react.suspense") : 60113, m = e ? Symbol.for("react.suspense_list") : 60120, p = e ? Symbol.for("react.memo") : 60115, g = e ? Symbol.for("react.lazy") : 60116, f = e ? Symbol.for("react.block") : 60121, D = e ? Symbol.for("react.fundamental") : 60117, y = e ? Symbol.for("react.responder") : 60118, x = e ? Symbol.for("react.scope") : 60119;
18563
18566
  function B(G) {
18564
18567
  return typeof G == "string" || typeof G == "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
18565
- G === r || G === u || G === i || G === a || G === h || G === m || typeof G == "object" && G !== null && (G.$$typeof === g || G.$$typeof === p || G.$$typeof === s || G.$$typeof === o || G.$$typeof === c || G.$$typeof === y || G.$$typeof === D || G.$$typeof === x || G.$$typeof === f);
18568
+ G === r || G === u || G === i || G === a || G === h || G === m || typeof G == "object" && G !== null && (G.$$typeof === g || G.$$typeof === p || G.$$typeof === s || G.$$typeof === o || G.$$typeof === c || G.$$typeof === D || G.$$typeof === y || G.$$typeof === x || G.$$typeof === f);
18566
18569
  }
18567
18570
  function _(G) {
18568
18571
  if (typeof G == "object" && G !== null) {
@@ -18783,14 +18786,14 @@ function qx() {
18783
18786
  return W;
18784
18787
  }
18785
18788
  var m = "<<anonymous>>", p = {
18786
- array: D("array"),
18787
- bigint: D("bigint"),
18788
- bool: D("boolean"),
18789
- func: D("function"),
18790
- number: D("number"),
18791
- object: D("object"),
18792
- string: D("string"),
18793
- symbol: D("symbol"),
18789
+ array: y("array"),
18790
+ bigint: y("bigint"),
18791
+ bool: y("boolean"),
18792
+ func: y("function"),
18793
+ number: y("number"),
18794
+ object: y("object"),
18795
+ string: y("string"),
18796
+ symbol: y("symbol"),
18794
18797
  any: x(),
18795
18798
  arrayOf: B,
18796
18799
  element: _(),
@@ -18810,7 +18813,7 @@ function qx() {
18810
18813
  this.message = v, this.data = W && typeof W == "object" ? W : {}, this.stack = "";
18811
18814
  }
18812
18815
  f.prototype = Error.prototype;
18813
- function y(v) {
18816
+ function D(v) {
18814
18817
  if (process.env.NODE_ENV !== "production")
18815
18818
  var W = {}, X = 0;
18816
18819
  function k(q, I, H, ee, te, ie, me) {
@@ -18833,7 +18836,7 @@ function qx() {
18833
18836
  var F = k.bind(null, !1);
18834
18837
  return F.isRequired = k.bind(null, !0), F;
18835
18838
  }
18836
- function D(v) {
18839
+ function y(v) {
18837
18840
  function W(X, k, F, q, I, H) {
18838
18841
  var ee = X[k], te = z(ee);
18839
18842
  if (te !== v) {
@@ -18845,10 +18848,10 @@ function qx() {
18845
18848
  }
18846
18849
  return null;
18847
18850
  }
18848
- return y(W);
18851
+ return D(W);
18849
18852
  }
18850
18853
  function x() {
18851
- return y(s);
18854
+ return D(s);
18852
18855
  }
18853
18856
  function B(v) {
18854
18857
  function W(X, k, F, q, I) {
@@ -18866,7 +18869,7 @@ function qx() {
18866
18869
  }
18867
18870
  return null;
18868
18871
  }
18869
- return y(W);
18872
+ return D(W);
18870
18873
  }
18871
18874
  function _() {
18872
18875
  function v(W, X, k, F, q) {
@@ -18877,7 +18880,7 @@ function qx() {
18877
18880
  }
18878
18881
  return null;
18879
18882
  }
18880
- return y(v);
18883
+ return D(v);
18881
18884
  }
18882
18885
  function E() {
18883
18886
  function v(W, X, k, F, q) {
@@ -18888,7 +18891,7 @@ function qx() {
18888
18891
  }
18889
18892
  return null;
18890
18893
  }
18891
- return y(v);
18894
+ return D(v);
18892
18895
  }
18893
18896
  function A(v) {
18894
18897
  function W(X, k, F, q, I) {
@@ -18898,7 +18901,7 @@ function qx() {
18898
18901
  }
18899
18902
  return null;
18900
18903
  }
18901
- return y(W);
18904
+ return D(W);
18902
18905
  }
18903
18906
  function T(v) {
18904
18907
  if (!Array.isArray(v))
@@ -18915,7 +18918,7 @@ function qx() {
18915
18918
  });
18916
18919
  return new f("Invalid " + q + " `" + I + "` of value `" + String(H) + "` " + ("supplied to `" + F + "`, expected one of " + te + "."));
18917
18920
  }
18918
- return y(W);
18921
+ return D(W);
18919
18922
  }
18920
18923
  function $(v) {
18921
18924
  function W(X, k, F, q, I) {
@@ -18932,7 +18935,7 @@ function qx() {
18932
18935
  }
18933
18936
  return null;
18934
18937
  }
18935
- return y(W);
18938
+ return D(W);
18936
18939
  }
18937
18940
  function N(v) {
18938
18941
  if (!Array.isArray(v))
@@ -18954,13 +18957,13 @@ function qx() {
18954
18957
  var ve = te.length > 0 ? ", expected one of type [" + te.join(", ") + "]" : "";
18955
18958
  return new f("Invalid " + H + " `" + ee + "` supplied to " + ("`" + I + "`" + ve + "."));
18956
18959
  }
18957
- return y(k);
18960
+ return D(k);
18958
18961
  }
18959
18962
  function M() {
18960
18963
  function v(W, X, k, F, q) {
18961
18964
  return j(W[X]) ? null : new f("Invalid " + F + " `" + q + "` supplied to " + ("`" + k + "`, expected a ReactNode."));
18962
18965
  }
18963
- return y(v);
18966
+ return D(v);
18964
18967
  }
18965
18968
  function R(v, W, X, k, F) {
18966
18969
  return new f(
@@ -18982,7 +18985,7 @@ function qx() {
18982
18985
  }
18983
18986
  return null;
18984
18987
  }
18985
- return y(W);
18988
+ return D(W);
18986
18989
  }
18987
18990
  function C(v) {
18988
18991
  function W(X, k, F, q, I) {
@@ -19005,7 +19008,7 @@ Valid keys: ` + JSON.stringify(Object.keys(v), null, " ")
19005
19008
  }
19006
19009
  return null;
19007
19010
  }
19008
- return y(W);
19011
+ return D(W);
19009
19012
  }
19010
19013
  function j(v) {
19011
19014
  switch (typeof v) {
@@ -19581,7 +19584,7 @@ var Jl = {
19581
19584
  }, f = function(w) {
19582
19585
  var C = c("setReturnFocus", w);
19583
19586
  return C || (C === !1 ? !1 : w);
19584
- }, y = function(w) {
19587
+ }, D = function(w) {
19585
19588
  var C = w.target, j = w.event, S = w.isBackward, z = S === void 0 ? !1 : S;
19586
19589
  C = C || aa(j), m();
19587
19590
  var L = null;
@@ -19613,7 +19616,7 @@ var Jl = {
19613
19616
  } else
19614
19617
  L = c("fallbackFocus");
19615
19618
  return L;
19616
- }, D = function(w) {
19619
+ }, y = function(w) {
19617
19620
  var C = aa(w);
19618
19621
  if (!(u(C, w) >= 0)) {
19619
19622
  if (fr(i.clickOutsideDeactivates, w)) {
@@ -19654,7 +19657,7 @@ var Jl = {
19654
19657
  }) || (z = !1);
19655
19658
  else
19656
19659
  z = !1;
19657
- z && (S = y({
19660
+ z && (S = D({
19658
19661
  // move FROM the MRU node, not event-related node (which will be the node that is
19659
19662
  // outside the trap causing the focus escape we're trying to fix)
19660
19663
  target: s.mostRecentlyFocusedNode,
@@ -19665,7 +19668,7 @@ var Jl = {
19665
19668
  }, B = function(w) {
19666
19669
  var C = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !1;
19667
19670
  s.recentNavEvent = w;
19668
- var j = y({
19671
+ var j = D({
19669
19672
  event: w,
19670
19673
  isBackward: C
19671
19674
  });
@@ -19683,10 +19686,10 @@ var Jl = {
19683
19686
  if (s.active)
19684
19687
  return Jl.activateTrap(a, o), s.delayInitialFocusTimer = i.delayInitialFocus ? Xl(function() {
19685
19688
  g(h());
19686
- }) : g(h()), r.addEventListener("focusin", x, !0), r.addEventListener("mousedown", D, {
19689
+ }) : g(h()), r.addEventListener("focusin", x, !0), r.addEventListener("mousedown", y, {
19687
19690
  capture: !0,
19688
19691
  passive: !1
19689
- }), r.addEventListener("touchstart", D, {
19692
+ }), r.addEventListener("touchstart", y, {
19690
19693
  capture: !0,
19691
19694
  passive: !1
19692
19695
  }), r.addEventListener("click", E, {
@@ -19698,7 +19701,7 @@ var Jl = {
19698
19701
  }), o;
19699
19702
  }, T = function() {
19700
19703
  if (s.active)
19701
- return r.removeEventListener("focusin", x, !0), r.removeEventListener("mousedown", D, !0), r.removeEventListener("touchstart", D, !0), r.removeEventListener("click", E, !0), r.removeEventListener("keydown", _, !0), o;
19704
+ return r.removeEventListener("focusin", x, !0), r.removeEventListener("mousedown", y, !0), r.removeEventListener("touchstart", y, !0), r.removeEventListener("click", E, !0), r.removeEventListener("keydown", _, !0), o;
19702
19705
  }, $ = function(w) {
19703
19706
  var C = w.some(function(j) {
19704
19707
  var S = Array.from(j.removedNodes);
@@ -20221,14 +20224,14 @@ const Ja = ({
20221
20224
  className: c = "",
20222
20225
  gtmContext: h = "Modal"
20223
20226
  }) => {
20224
- const m = ce(), { registerOverlay: p, unregisterOverlay: g } = zw(), [f, y] = de(t), D = (_) => {
20227
+ const m = ce(), { registerOverlay: p, unregisterOverlay: g } = zw(), [f, D] = de(t), y = (_) => {
20225
20228
  _.key === "Escape" && x(!1);
20226
20229
  };
20227
- he(() => (window.addEventListener("keyup", D), () => {
20228
- window.removeEventListener("keyup", D);
20230
+ he(() => (window.addEventListener("keyup", y), () => {
20231
+ window.removeEventListener("keyup", y);
20229
20232
  }));
20230
20233
  const x = (_) => {
20231
- y(_), _ ? (a(), p(e)) : (i(), g(e));
20234
+ D(_), _ ? (a(), p(e)) : (i(), g(e));
20232
20235
  };
20233
20236
  he(() => (x(t), () => {
20234
20237
  f && g(e);
@@ -20654,34 +20657,34 @@ const Vw = [
20654
20657
  };
20655
20658
  r || (r = u.imageFullWidth ? "default" : "light");
20656
20659
  const c = ["eyebrow", "title", "text"], h = { eyebrow: "small", title: "h1", text: "p" }, m = {};
20657
- c.forEach((y) => {
20658
- if (!t[y]) {
20659
- m[y] = !1;
20660
+ c.forEach((D) => {
20661
+ if (!t[D]) {
20662
+ m[D] = !1;
20660
20663
  return;
20661
20664
  }
20662
- if (!s[y]) {
20663
- if (typeof t[y] == "object") {
20664
- m[y] = t[y];
20665
- const { text: D, element: x } = t[y];
20665
+ if (!s[D]) {
20666
+ if (typeof t[D] == "object") {
20667
+ m[D] = t[D];
20668
+ const { text: y, element: x } = t[D];
20666
20669
  if (x && Vw.includes(x.toLowerCase()))
20667
20670
  return;
20668
- m[y] = {
20669
- text: D,
20670
- element: h[y]
20671
+ m[D] = {
20672
+ text: y,
20673
+ element: h[D]
20671
20674
  };
20672
20675
  return;
20673
20676
  }
20674
- m[y] = {
20675
- text: t[y],
20676
- element: h[y]
20677
+ m[D] = {
20678
+ text: t[D],
20679
+ element: h[D]
20677
20680
  };
20678
20681
  }
20679
20682
  });
20680
20683
  const p = o && o.text && o.link;
20681
- return p && o.link[0] === "#" && (o.props || (o.props = {}), o.props.onClick = (y) => {
20682
- y.preventDefault(), y.stopPropagation();
20683
- const D = document.getElementById(o.link.substring(1));
20684
- D && D.scrollIntoView({ behavior: "smooth" });
20684
+ return p && o.link[0] === "#" && (o.props || (o.props = {}), o.props.onClick = (D) => {
20685
+ D.preventDefault(), D.stopPropagation();
20686
+ const y = document.getElementById(o.link.substring(1));
20687
+ y && y.scrollIntoView({ behavior: "smooth" });
20685
20688
  }), /* @__PURE__ */ d.jsx(
20686
20689
  jn,
20687
20690
  {
@@ -20694,10 +20697,10 @@ const Vw = [
20694
20697
  }),
20695
20698
  children: /* @__PURE__ */ d.jsxs(d.Fragment, { children: [
20696
20699
  /* @__PURE__ */ d.jsxs("div", { className: "content-wrapper", children: [
20697
- c.map((y) => {
20698
- if (m[y] && typeof m[y] == "object") {
20699
- const { text: D, element: x = "" } = m[y];
20700
- return y === "text" ? /* @__PURE__ */ d.jsx(Fr, { overrideType: "text-only", className: "text", children: D }, y) : re.createElement(x, { key: y, className: y }, D);
20700
+ c.map((D) => {
20701
+ if (m[D] && typeof m[D] == "object") {
20702
+ const { text: y, element: x = "" } = m[D];
20703
+ return D === "text" ? /* @__PURE__ */ d.jsx(Fr, { overrideType: "text-only", className: "text", children: y }, D) : re.createElement(x, { key: D, className: D }, y);
20701
20704
  }
20702
20705
  return null;
20703
20706
  }),
@@ -20927,13 +20930,13 @@ const e_ = ({
20927
20930
  gtmEvent: "learning-hub"
20928
20931
  }
20929
20932
  }, Gw = ({ data: e, cta: t, link: n, gtmContext: r }) => {
20930
- var f, y;
20933
+ var f, D;
20931
20934
  const a = ce(), [i, s] = de({
20932
20935
  loading: !1,
20933
20936
  registered: e.registered || !1
20934
20937
  });
20935
20938
  he(() => {
20936
- e.registered && s((D) => ({ ...D, registered: !0 }));
20939
+ e.registered && s((y) => ({ ...y, registered: !0 }));
20937
20940
  }, [e.registered]);
20938
20941
  const { customLinkText: o, startDate: l, dateHasPassed: u, pill: c, slug: h } = e, m = e.contentType;
20939
20942
  let p = "";
@@ -20963,8 +20966,8 @@ const e_ = ({
20963
20966
  ) : null;
20964
20967
  const g = ["communityPage", "microcourse", "event"];
20965
20968
  if (t && t.onClick && g.includes(m) && c !== "premium") {
20966
- const D = i.loading || i.registered || ((y = e == null ? void 0 : e.members) == null ? void 0 : y.isMember), x = async (B) => {
20967
- if (B.preventDefault(), B.stopPropagation(), !(D || !t || !t.onClick)) {
20969
+ const y = i.loading || i.registered || ((D = e == null ? void 0 : e.members) == null ? void 0 : D.isMember), x = async (B) => {
20970
+ if (B.preventDefault(), B.stopPropagation(), !(y || !t || !t.onClick)) {
20968
20971
  s((_) => ({ ..._, loading: !0 }));
20969
20972
  try {
20970
20973
  const _ = await t.onClick(e);
@@ -20987,12 +20990,12 @@ const e_ = ({
20987
20990
  className: "gtm-trackable",
20988
20991
  size: "small",
20989
20992
  styling: { fullWidth: !0 },
20990
- disabled: D,
20993
+ disabled: y,
20991
20994
  "data-gtm-event-context": `${r}Page-${m}: ${h}`,
20992
20995
  "data-gtm-event-type": `${r}-${m}-register-click`,
20993
20996
  "data-testid": "in-card-button",
20994
20997
  children: o || a.formatMessage({
20995
- id: `card_cta_${m}${D ? `_${i.loading ? "loading" : "done"}` : ""}`
20998
+ id: `card_cta_${m}${y ? `_${i.loading ? "loading" : "done"}` : ""}`
20996
20999
  })
20997
21000
  }
20998
21001
  )
@@ -21020,13 +21023,13 @@ const Qw = {
21020
21023
  const l = ce(), u = Ke(tn), c = u && typeof u.id == "string", h = re.useRef(null), [m, p] = de({
21021
21024
  data: null,
21022
21025
  isLoading: !0
21023
- }), { data: g, isLoading: f } = m, y = Pe(() => {
21026
+ }), { data: g, isLoading: f } = m, D = Pe(() => {
21024
21027
  n(t, c).then((z) => {
21025
21028
  p(() => ({ data: z, isLoading: !1 }));
21026
21029
  }).catch(() => p((z) => ({ ...z, isLoading: !1 })));
21027
21030
  }, [e]);
21028
21031
  if (he(() => {
21029
- y();
21032
+ D();
21030
21033
  }, []), f || !g)
21031
21034
  return /* @__PURE__ */ d.jsx(
21032
21035
  Pt,
@@ -21040,15 +21043,15 @@ const Qw = {
21040
21043
  text: l.formatMessage({ id: `card_cta_${t.contentType}` }),
21041
21044
  onClick: s
21042
21045
  });
21043
- const { contentType: D } = g;
21044
- if (!D || !Ra[D])
21046
+ const { contentType: y } = g;
21047
+ if (!y || !Ra[y])
21045
21048
  return /* @__PURE__ */ d.jsx(Pt, { element: "li", className: "card-wrapper" });
21046
21049
  const {
21047
21050
  basePath: x = "",
21048
21051
  className: B,
21049
21052
  length: _,
21050
21053
  gtmEvent: E
21051
- } = Ra[D];
21054
+ } = Ra[y];
21052
21055
  let A = g.slug ? `${x}${g.slug}` : !1;
21053
21056
  g.slug && (g.slug.slice(0, 4) === "http" || g.slug.slice(0, 2) === "//" || g.slug.slice(0, 6) === "mailto" || g.slug.slice(0, 3) === "tel") && (A = g.slug);
21054
21057
  const T = (z) => {
@@ -21077,18 +21080,18 @@ const Qw = {
21077
21080
  "no-link": !A,
21078
21081
  "has-image": g.banner
21079
21082
  }),
21080
- "data-testid": `${D}-card`,
21083
+ "data-testid": `${y}-card`,
21081
21084
  children: /* @__PURE__ */ d.jsxs("div", { ...N, ref: h, children: [
21082
21085
  /* @__PURE__ */ d.jsx(
21083
21086
  Rh,
21084
21087
  {
21085
21088
  className: "card-label",
21086
- contentType: D,
21089
+ contentType: y,
21087
21090
  customIcon: g.isPrivate ? "lock-locked" : g.customIcon,
21088
21091
  customLabel: g.customLabel
21089
21092
  }
21090
21093
  ),
21091
- D === "communityPage" && (g == null ? void 0 : g.createdAt) && Dh(g == null ? void 0 : g.createdAt, 60) && /* @__PURE__ */ d.jsx(Ln, { size: "small", variant: "information", "data-testid": "new-community", children: l.formatMessage({ id: "card_new" }) }),
21094
+ y === "communityPage" && (g == null ? void 0 : g.createdAt) && Dh(g == null ? void 0 : g.createdAt, 60) && /* @__PURE__ */ d.jsx(Ln, { size: "small", variant: "information", "data-testid": "new-community", children: l.formatMessage({ id: "card_new" }) }),
21092
21095
  g.startDate && !g.isOngoingEvent && /* @__PURE__ */ d.jsx(
21093
21096
  Ln,
21094
21097
  {
@@ -21118,7 +21121,7 @@ const Qw = {
21118
21121
  showGap: B !== "question",
21119
21122
  showText: !0
21120
21123
  },
21121
- multipleText: ["event", "solutionArticle"].includes(D) ? l.formatMessage({ id: `card_contributors_${D}` }) : void 0,
21124
+ multipleText: ["event", "solutionArticle"].includes(y) ? l.formatMessage({ id: `card_contributors_${y}` }) : void 0,
21122
21125
  "data-testid": "contributors"
21123
21126
  }
21124
21127
  ),
@@ -21230,7 +21233,7 @@ const tC = ({
21230
21233
  }), { cardsPerPage: h, isLoading: m } = u, [p, g] = de({
21231
21234
  currentPage: 0,
21232
21235
  loadedPages: [0]
21233
- }), { currentPage: f, loadedPages: y } = p, [D, x] = de(""), B = t.length, _ = Math.ceil(B / h), E = _e(null), A = Mr(!0, !0, E == null ? void 0 : E.current);
21236
+ }), { currentPage: f, loadedPages: D } = p, [y, x] = de(""), B = t.length, _ = Math.ceil(B / h), E = _e(null), A = Mr(!0, !0, E == null ? void 0 : E.current);
21234
21237
  he(() => {
21235
21238
  let w = 1;
21236
21239
  A && (A >= Wi.fourCards ? w = 4 : A >= Wi.threeCards ? w = 3 : A >= Wi.twoCards && (w = 2), w > B && (w = B)), c((C) => ({
@@ -21256,7 +21259,7 @@ const tC = ({
21256
21259
  g((S) => ({
21257
21260
  ...S,
21258
21261
  currentPage: C,
21259
- loadedPages: [.../* @__PURE__ */ new Set([...y, C])]
21262
+ loadedPages: [.../* @__PURE__ */ new Set([...D, C])]
21260
21263
  }));
21261
21264
  const j = () => {
21262
21265
  const S = C * u.cardsPerPage, z = S + u.cardsPerPage;
@@ -21311,7 +21314,7 @@ const tC = ({
21311
21314
  "data-testid": "carousel-list",
21312
21315
  children: t.map((w, C) => {
21313
21316
  let j = R(w, C);
21314
- return j && Xw(C, h, f, y) ? /* @__PURE__ */ d.jsx(
21317
+ return j && Xw(C, h, f, D) ? /* @__PURE__ */ d.jsx(
21315
21318
  _f,
21316
21319
  {
21317
21320
  id: j,
@@ -21386,7 +21389,7 @@ const tC = ({
21386
21389
  }
21387
21390
  ) })
21388
21391
  ] }),
21389
- /* @__PURE__ */ d.jsx(qe, { "aria-live": "polite", showOnFocus: !1, children: D })
21392
+ /* @__PURE__ */ d.jsx(qe, { "aria-live": "polite", showOnFocus: !1, children: y })
21390
21393
  ] })
21391
21394
  ]
21392
21395
  }
@@ -21445,11 +21448,11 @@ const mr = "joinCommunityButton", kf = ({
21445
21448
  styling: { fullWidth: !0 },
21446
21449
  icon: c && m !== "leaving" ? { icon: "tick", position: "left" } : !1,
21447
21450
  tooltip: !t && !c ? s.formatMessage({ id: `${mr}_closed_tooltip` }) : "",
21448
- onClick: async (y) => {
21451
+ onClick: async (D) => {
21449
21452
  if (u)
21450
21453
  return;
21451
- y.currentTarget.blur(), p(c ? "leaving" : "joining");
21452
- const D = new CustomEvent("ariaLive", {
21454
+ D.currentTarget.blur(), p(c ? "leaving" : "joining");
21455
+ const y = new CustomEvent("ariaLive", {
21453
21456
  detail: {
21454
21457
  message: s.formatMessage(
21455
21458
  { id: `${mr}_aria_live` },
@@ -21457,7 +21460,7 @@ const mr = "joinCommunityButton", kf = ({
21457
21460
  )
21458
21461
  }
21459
21462
  });
21460
- document.dispatchEvent(D);
21463
+ document.dispatchEvent(y);
21461
21464
  const x = c ? i : a;
21462
21465
  typeof x == "function" && setTimeout(async () => {
21463
21466
  await x();
@@ -21621,38 +21624,38 @@ const oa = "languageSwitcher_", i_ = ({
21621
21624
  if (he(() => {
21622
21625
  e !== h && m(e);
21623
21626
  }, [e]), !r || !Object.values(r).some(
21624
- (y) => y && y.post_name
21627
+ (D) => D && D.post_name
21625
21628
  ))
21626
21629
  return null;
21627
21630
  const g = Object.keys(r), f = h !== e;
21628
21631
  return /* @__PURE__ */ d.jsxs("div", { className: Z("language-switcher text-small", s, l), children: [
21629
21632
  /* @__PURE__ */ d.jsxs("nav", { children: [
21630
21633
  s !== "short" && /* @__PURE__ */ d.jsx("p", { children: o || u.formatMessage({ id: `${oa}label` }) }),
21631
- /* @__PURE__ */ d.jsx("ul", { children: g.map((y) => {
21634
+ /* @__PURE__ */ d.jsx("ul", { children: g.map((D) => {
21632
21635
  var B;
21633
- if (!qi[y])
21636
+ if (!qi[D])
21634
21637
  return null;
21635
- const D = (B = r[y]) == null ? void 0 : B.post_name;
21636
- let x = { className: y };
21637
- if (h === y)
21638
+ const y = (B = r[D]) == null ? void 0 : B.post_name;
21639
+ let x = { className: D };
21640
+ if (h === D)
21638
21641
  x["aria-label"] = u.formatMessage(
21639
21642
  { id: `${oa}selected` },
21640
- { language: qi[y] }
21643
+ { language: qi[D] }
21641
21644
  );
21642
21645
  else {
21643
- const _ = nC(y, D, i);
21646
+ const _ = nC(D, y, i);
21644
21647
  x = {
21645
21648
  ...x,
21646
21649
  href: typeof _ == "string" ? _ : _.url,
21647
21650
  onClick: (E) => {
21648
- m(y), c(y), typeof a < "u" && (E.preventDefault(), E.stopPropagation(), a(
21649
- y,
21651
+ m(D), c(D), typeof a < "u" && (E.preventDefault(), E.stopPropagation(), a(
21652
+ D,
21650
21653
  typeof _ == "string" ? _ : _.urlForRouter
21651
21654
  ));
21652
21655
  }
21653
21656
  };
21654
21657
  }
21655
- return /* @__PURE__ */ d.jsx("li", { children: /* @__PURE__ */ d.jsx(ir, { ...x, fallbackElement: "span", children: qi[y] }) }, y);
21658
+ return /* @__PURE__ */ d.jsx("li", { children: /* @__PURE__ */ d.jsx(ir, { ...x, fallbackElement: "span", children: qi[D] }) }, D);
21656
21659
  }) }),
21657
21660
  s !== "short" && !f && /* @__PURE__ */ d.jsx("p", { children: u.formatMessage({
21658
21661
  id: `${oa}translation_${t ? "original" : n ? "human" : "machine"}`
@@ -21666,9 +21669,9 @@ const oa = "languageSwitcher_", i_ = ({
21666
21669
  { id: `${oa}disclaimer` },
21667
21670
  {
21668
21671
  email: gr.support,
21669
- link: (y) => {
21670
- const D = `mailto:${y}`;
21671
- return /* @__PURE__ */ d.jsx("a", { href: D, children: y });
21672
+ link: (D) => {
21673
+ const y = `mailto:${D}`;
21674
+ return /* @__PURE__ */ d.jsx("a", { href: y, children: D });
21672
21675
  }
21673
21676
  }
21674
21677
  )
@@ -21766,8 +21769,8 @@ const rC = ({
21766
21769
  /* @__PURE__ */ d.jsx("ul", { id: t, hidden: !s, children: n.map(({ href: u, onClick: c, text: h, icon: m, ...p }, g) => {
21767
21770
  const f = {
21768
21771
  ...p,
21769
- onClick: (y) => {
21770
- o(!1), typeof c == "function" && c(y);
21772
+ onClick: (D) => {
21773
+ o(!1), typeof c == "function" && c(D);
21771
21774
  },
21772
21775
  onFocus: () => {
21773
21776
  ua && (clearTimeout(ua), ua = !1);
@@ -21957,18 +21960,18 @@ const o_ = ({ tabs: e, className: t = "", preventLocationChange: n }) => {
21957
21960
  const o = [], l = [];
21958
21961
  return e.forEach(({ id: c, text: h, content: m, href: p, hasCarousel: g }, f) => {
21959
21962
  c = r(c, h, f);
21960
- const y = i === c, D = {};
21961
- p || (D["aria-controls"] = c, D.onClick = (x) => {
21963
+ const D = i === c, y = {};
21964
+ p || (y["aria-controls"] = c, y.onClick = (x) => {
21962
21965
  x.preventDefault(), x.stopPropagation(), s(c), !n && (window.location.hash = `#${c}`);
21963
21966
  }, l.push(
21964
21967
  /* @__PURE__ */ d.jsx(
21965
21968
  "section",
21966
21969
  {
21967
21970
  id: c,
21968
- hidden: !y,
21971
+ hidden: !D,
21969
21972
  role: "tabpanel",
21970
21973
  "aria-labelledby": `tab-${c}`,
21971
- "aria-live": y ? "assertive" : "off",
21974
+ "aria-live": D ? "assertive" : "off",
21972
21975
  children: typeof m == "string" ? /* @__PURE__ */ d.jsx("p", { children: m }) : m
21973
21976
  },
21974
21977
  `section-${c}`
@@ -21979,10 +21982,10 @@ const o_ = ({ tabs: e, className: t = "", preventLocationChange: n }) => {
21979
21982
  {
21980
21983
  href: p || `#${c}`,
21981
21984
  id: `tab-${c}`,
21982
- className: Z({ selected: y }),
21985
+ className: Z({ selected: D }),
21983
21986
  role: "tab",
21984
- "aria-selected": y,
21985
- ...D,
21987
+ "aria-selected": D,
21988
+ ...y,
21986
21989
  children: h
21987
21990
  }
21988
21991
  ) }, `tab-${c}`)
@@ -22538,8 +22541,8 @@ const Vn = "footer_", Ma = "SiteFooter", nc = ({ group: e }) => {
22538
22541
  });
22539
22542
  }
22540
22543
  const p = o.order && o.order[0] && o[o.order[0]], g = p && o[o.order[0]].order, f = m && window.location.pathname === o.href;
22541
- let y = {}, D = {};
22542
- if (f && (y = { ...y, "aria-current": "page" }), p) {
22544
+ let D = {}, y = {};
22545
+ if (f && (D = { ...D, "aria-current": "page" }), p) {
22543
22546
  const x = o.menuId || e, B = {
22544
22547
  onClick: (_) => Ie.events.onClick(_, { id: x, callback: a, isOpen: r[x] }),
22545
22548
  onFocus: () => Ie.events.onFocus({ id: x }),
@@ -22547,7 +22550,7 @@ const Vn = "footer_", Ma = "SiteFooter", nc = ({ group: e }) => {
22547
22550
  onMouseLeave: () => Ie.events.onBlur({ id: x, callback: a }),
22548
22551
  onMouseEnter: () => Ie.events.onMouseEnter({ id: x, callback: a })
22549
22552
  };
22550
- n && (g && (y = {
22553
+ n && (g && (D = {
22551
22554
  ...B,
22552
22555
  onKeyPress: (_) => {
22553
22556
  _.key === "Enter" && Ie.events.onClick(_, { id: x, callback: a, isOpen: r[x] });
@@ -22557,8 +22560,8 @@ const Vn = "footer_", Ma = "SiteFooter", nc = ({ group: e }) => {
22557
22560
  "aria-haspopup": !0,
22558
22561
  "aria-expanded": r[x],
22559
22562
  "aria-controls": x
22560
- }), D = { hidden: x in r ? !r[x] : !0 }), g || (D = {
22561
- ...D,
22563
+ }), y = { hidden: x in r ? !r[x] : !0 }), g || (y = {
22564
+ ...y,
22562
22565
  ...B
22563
22566
  });
22564
22567
  }
@@ -22571,14 +22574,14 @@ const Vn = "footer_", Ma = "SiteFooter", nc = ({ group: e }) => {
22571
22574
  parent: g,
22572
22575
  active: f
22573
22576
  }),
22574
- ...y,
22577
+ ...D,
22575
22578
  children: [
22576
22579
  m ? re.createElement(
22577
22580
  c ? Se : "a",
22578
22581
  m,
22579
22582
  s.formatMessage({ id: h })
22580
22583
  ) : s.formatMessage({ id: h }),
22581
- o.order && /* @__PURE__ */ d.jsx("ul", { ...D, children: o.order.map((x) => {
22584
+ o.order && /* @__PURE__ */ d.jsx("ul", { ...y, children: o.order.map((x) => {
22582
22585
  if (!o[x])
22583
22586
  return null;
22584
22587
  const B = {
@@ -22648,18 +22651,18 @@ const fC = { height: 67, height_desktop: 83 }, Ff = ({ showNavigation: e = !0 })
22648
22651
  }
22649
22652
  }
22650
22653
  });
22651
- const m = (f, y, D = !1) => {
22652
- Ie.handleMenus({ id: f, value: y, menus: h.current.menus, dispatch: o, forceHandle: D });
22654
+ const m = (f, D, y = !1) => {
22655
+ Ie.handleMenus({ id: f, value: D, menus: h.current.menus, dispatch: o, forceHandle: y });
22653
22656
  }, p = _e(null), g = (f) => {
22654
- f.key === "Escape" && ["navigation", "search", "account"].forEach((y) => {
22655
- h.current.menus[y] && m(y, !1, !0);
22657
+ f.key === "Escape" && ["navigation", "search", "account"].forEach((D) => {
22658
+ h.current.menus[D] && m(D, !1, !0);
22656
22659
  });
22657
22660
  };
22658
22661
  return he(() => {
22659
22662
  var f;
22660
22663
  return (f = document.getElementById("header")) == null || f.addEventListener("keydown", g), () => {
22661
- var y;
22662
- (y = document.getElementById("header")) == null || y.removeEventListener("keydown", g);
22664
+ var D;
22665
+ (D = document.getElementById("header")) == null || D.removeEventListener("keydown", g);
22663
22666
  };
22664
22667
  }, []), Ar(() => {
22665
22668
  u.navigation && Ie.autoFocus({
@@ -22837,14 +22840,14 @@ const hC = () => {
22837
22840
  variant: h = "default",
22838
22841
  circle: m = "default",
22839
22842
  modal: p = "default"
22840
- } = i, g = ch(), [f, y] = de(""), D = (A) => {
22843
+ } = i, g = ch(), [f, D] = de(""), y = (A) => {
22841
22844
  const {
22842
22845
  detail: { message: T }
22843
22846
  } = A;
22844
- y(T);
22847
+ D(T);
22845
22848
  };
22846
- he(() => (window.scrollTo(0, 0), document.addEventListener("ariaLive", D), () => {
22847
- document.removeEventListener("ariaLive", D);
22849
+ he(() => (window.scrollTo(0, 0), document.addEventListener("ariaLive", y), () => {
22850
+ document.removeEventListener("ariaLive", y);
22848
22851
  }), [g]);
22849
22852
  const x = fa(e, { locale: o }), B = fa(t, {
22850
22853
  locale: o
@@ -23112,8 +23115,8 @@ const h_ = ({
23112
23115
  ({
23113
23116
  completed: g,
23114
23117
  completionTime: f,
23115
- contentType: y,
23116
- icon: D,
23118
+ contentType: D,
23119
+ icon: y,
23117
23120
  image: x,
23118
23121
  isIntroduction: B,
23119
23122
  optional: _,
@@ -23127,10 +23130,10 @@ const h_ = ({
23127
23130
  "li",
23128
23131
  {
23129
23132
  className: Z({
23130
- article: y === Hr.ARTICLE,
23131
- discussion: y === Hr.DISCUSSION,
23132
- quiz: y === Hr.QUIZ,
23133
- completed: g && y === Hr.ARTICLE,
23133
+ article: D === Hr.ARTICLE,
23134
+ discussion: D === Hr.DISCUSSION,
23135
+ quiz: D === Hr.QUIZ,
23136
+ completed: g && D === Hr.ARTICLE,
23134
23137
  locked: !N
23135
23138
  }),
23136
23139
  ...M,
@@ -23157,7 +23160,7 @@ const h_ = ({
23157
23160
  vC,
23158
23161
  {
23159
23162
  completionTime: f,
23160
- icon: D,
23163
+ icon: y,
23161
23164
  optional: _,
23162
23165
  type: $,
23163
23166
  children: c && c[E] && /* @__PURE__ */ d.jsx("span", { className: "quiz-score", children: `${c[E]}%` })
@@ -23238,7 +23241,7 @@ const ct = "discussion_form_", vo = ({
23238
23241
  var R, w, C;
23239
23242
  const c = ce(), h = Ke(tn), [m, p] = de(""), [g, f] = de(
23240
23243
  r.isEditing && r.isEditing.text || ""
23241
- ), [y, D] = de(s.error || !1), [x, B] = de(!1);
23244
+ ), [D, y] = de(s.error || !1), [x, B] = de(!1);
23242
23245
  if (r.isLoading)
23243
23246
  return /* @__PURE__ */ d.jsx(
23244
23247
  Pt,
@@ -23260,7 +23263,7 @@ const ct = "discussion_form_", vo = ({
23260
23263
  `${ct}error_noPermission`,
23261
23264
  t.type,
23262
23265
  "action"
23263
- ), S ? D(S) : y && D(!1);
23266
+ ), S ? y(S) : D && y(!1);
23264
23267
  };
23265
23268
  let E = `${t.type}-form`;
23266
23269
  if (t.type === "response" || t.type === "reply") {
@@ -23322,11 +23325,11 @@ const ct = "discussion_form_", vo = ({
23322
23325
  `${ct}error_tooMany`,
23323
23326
  t.type,
23324
23327
  "action"
23325
- ) : ne != null && ne.message.includes("400") && (J = `${ct}error`), D(J), T();
23328
+ ) : ne != null && ne.message.includes("400") && (J = `${ct}error`), y(J), T();
23326
23329
  }
23327
23330
  }, T = () => {
23328
23331
  la = setTimeout(() => {
23329
- D(!1), B(!1), p("");
23332
+ y(!1), B(!1), p("");
23330
23333
  }, 5e3);
23331
23334
  }, $ = !g || !Th(g), N = x === "submitting", M = [];
23332
23335
  return (r.isEditing && !N || s.cancel) && M.push({
@@ -23380,7 +23383,7 @@ const ct = "discussion_form_", vo = ({
23380
23383
  Fx,
23381
23384
  {
23382
23385
  id: `${E}-input`,
23383
- value: x === "submitting" && !y ? "" : g,
23386
+ value: x === "submitting" && !D ? "" : g,
23384
23387
  placeholder: a || St(
23385
23388
  c.formatMessage,
23386
23389
  `${ct}placeholder`,
@@ -23391,7 +23394,7 @@ const ct = "discussion_form_", vo = ({
23391
23394
  functions: { onChange: _, listMembers: o.listMembers },
23392
23395
  data: l,
23393
23396
  autoFocus: !!r.isEditing,
23394
- "aria-invalid": !!y,
23397
+ "aria-invalid": !!D,
23395
23398
  "aria-errormessage": "error-message"
23396
23399
  }
23397
23400
  ),
@@ -23422,15 +23425,15 @@ const ct = "discussion_form_", vo = ({
23422
23425
  t.type,
23423
23426
  "action"
23424
23427
  ) }),
23425
- y && /* @__PURE__ */ d.jsx(xa, { id: "error-message", className: "error", "data-testid": "error", children: s.error ? s.error : typeof y == "string" ? y.includes(" ") ? y : c.formatMessage(
23426
- { id: y },
23428
+ D && /* @__PURE__ */ d.jsx(xa, { id: "error-message", className: "error", "data-testid": "error", children: s.error ? s.error : typeof D == "string" ? D.includes(" ") ? D : c.formatMessage(
23429
+ { id: D },
23427
23430
  {
23428
23431
  action: c.formatMessage({
23429
23432
  id: `discussion_action_${t.type}`
23430
23433
  }),
23431
23434
  maxLength: i
23432
23435
  }
23433
- ) : y })
23436
+ ) : D })
23434
23437
  ]
23435
23438
  }
23436
23439
  ),
@@ -23510,8 +23513,8 @@ const wC = ({
23510
23513
  numberOfLikes: p,
23511
23514
  userLikedContent: g,
23512
23515
  ignoreInteractions: f,
23513
- showLikers: y,
23514
- tabbableLink: D
23516
+ showLikers: D,
23517
+ tabbableLink: y
23515
23518
  } = h;
23516
23519
  he(() => {
23517
23520
  m([{ type: "userLikedContent", value: a }]);
@@ -23633,7 +23636,7 @@ const wC = ({
23633
23636
  onKeyDown: (T) => {
23634
23637
  T.key === "Escape" && (T.preventDefault(), T.stopPropagation(), E());
23635
23638
  },
23636
- "aria-expanded": y,
23639
+ "aria-expanded": D,
23637
23640
  "aria-controls": `likes-tooltip-${i.slug}`,
23638
23641
  children: /* @__PURE__ */ d.jsx(qe, { showOnFocus: !1, children: u.formatMessage(
23639
23642
  { id: "discussion_likes_show" },
@@ -23645,14 +23648,14 @@ const wC = ({
23645
23648
  nr,
23646
23649
  {
23647
23650
  id: `likes-tooltip-${i.slug}`,
23648
- isOpen: y,
23651
+ isOpen: D,
23649
23652
  isLoading: n.length === 0,
23650
23653
  children: n.length && /* @__PURE__ */ d.jsxs("ul", { children: [
23651
23654
  x.map((T, $) => {
23652
23655
  if (typeof T == "string" || !T.name)
23653
23656
  return null;
23654
23657
  const N = {};
23655
- return D !== $ && (N.tabIndex = -1), /* @__PURE__ */ d.jsx("li", { "data-index": $, children: /* @__PURE__ */ d.jsx(
23658
+ return y !== $ && (N.tabIndex = -1), /* @__PURE__ */ d.jsx("li", { "data-index": $, children: /* @__PURE__ */ d.jsx(
23656
23659
  ir,
23657
23660
  {
23658
23661
  href: T.id ? `/profiles/${T.id}` : void 0,
@@ -23775,8 +23778,8 @@ const _C = 3e3, kC = ({ url: e }) => {
23775
23778
  setFocus: p = !1
23776
23779
  }) => {
23777
23780
  var be, Ae, Ee, Fe, Ze, He, Ge, tt;
23778
- const g = ce(), f = Ke(tn), y = Ke(bo), {
23779
- createContent: D = async () => {
23781
+ const g = ce(), f = Ke(tn), D = Ke(bo), {
23782
+ createContent: y = async () => {
23780
23783
  },
23781
23784
  deleteContent: x = async () => {
23782
23785
  },
@@ -23850,7 +23853,7 @@ const _C = 3e3, kC = ({ url: e }) => {
23850
23853
  H(`${Kt}form_error`);
23851
23854
  }
23852
23855
  }, me = () => {
23853
- y && y.updateConversation && y.updateConversation({ showForm: !0 }), setTimeout(() => {
23856
+ D && D.updateConversation && D.updateConversation({ showForm: !0 }), setTimeout(() => {
23854
23857
  var se, ge, ye;
23855
23858
  const Oe = `reply-form-${(t.type === "answer" ? t.slug : ((se = t.slugs) == null ? void 0 : se.reply) || ((ge = t.slugs) == null ? void 0 : ge.answer) || ((ye = t.slugs) == null ? void 0 : ye.question) || "").toLowerCase().slice(-15)}`, We = document.getElementById(Oe), V = document.getElementById(`${Oe}-input`);
23856
23859
  V && V.focus(), We && We.scrollIntoView({ behavior: "smooth" });
@@ -23958,7 +23961,7 @@ const _C = 3e3, kC = ({ url: e }) => {
23958
23961
  ) : !1
23959
23962
  },
23960
23963
  functions: {
23961
- create: D,
23964
+ create: y,
23962
23965
  handleSaveEdit: ie,
23963
23966
  handleCancel: () => {
23964
23967
  H(""), W({ ...v, isEditing: !1 });
@@ -24026,7 +24029,7 @@ const _C = 3e3, kC = ({ url: e }) => {
24026
24029
  }
24027
24030
  }
24028
24031
  ),
24029
- !i.comments && (["question", "post"].includes(t.type) || o.comments || typeof A == "function") && /* @__PURE__ */ d.jsx("li", { children: /* @__PURE__ */ d.jsx(
24032
+ !i.comments && (["question", "post"].includes(t.type) || o.comments) && /* @__PURE__ */ d.jsx("li", { children: /* @__PURE__ */ d.jsx(
24030
24033
  La,
24031
24034
  {
24032
24035
  onClick: (pe) => {
@@ -24127,14 +24130,18 @@ const _C = 3e3, kC = ({ url: e }) => {
24127
24130
  ] })
24128
24131
  });
24129
24132
  };
24130
- const ns = "discussion_responses_", AC = ({ type: e = "answer", responses: t = 0 }) => {
24131
- const n = ce();
24133
+ const ns = "discussion_responses_", AC = ({
24134
+ type: e = "answer",
24135
+ responses: t = 0,
24136
+ isLoading: n = !1
24137
+ }) => {
24138
+ const r = ce();
24132
24139
  return t = parseInt(t), /* @__PURE__ */ d.jsxs("div", { className: "responses-heading", children: [
24133
- /* @__PURE__ */ d.jsx("h4", { children: n.formatMessage(
24140
+ /* @__PURE__ */ d.jsx("h4", { children: r.formatMessage(
24134
24141
  { id: `${ns}title` },
24135
- { action: n.formatMessage({ id: `${ns}${e}` }), count: t }
24142
+ { action: r.formatMessage({ id: `${ns}${e}` }), count: t }
24136
24143
  ) }),
24137
- t === 0 && /* @__PURE__ */ d.jsx("p", { children: St(n.formatMessage, `${ns}empty`, e, e) })
24144
+ !n && t === 0 && /* @__PURE__ */ d.jsx("p", { children: St(r.formatMessage, `${ns}empty`, e, e) })
24138
24145
  ] });
24139
24146
  };
24140
24147
  const FC = ({
@@ -24567,9 +24574,9 @@ function qC({
24567
24574
  },
24568
24575
  user: l,
24569
24576
  ...u
24570
- }, h = LC({ ...c, mutationFn: e }), m = zC({ ...c, mutationFn: t }), p = WC({ ...c, mutationFn: n }), g = UC({ ...c, mutationFn: a }), f = VC({ ...c, mutationFn: i }), { activities: y, ...D } = HC({ queryKey: s, queryFn: r });
24577
+ }, h = LC({ ...c, mutationFn: e }), m = zC({ ...c, mutationFn: t }), p = WC({ ...c, mutationFn: n }), g = UC({ ...c, mutationFn: a }), f = VC({ ...c, mutationFn: i }), { activities: D, ...y } = HC({ queryKey: s, queryFn: r });
24571
24578
  return {
24572
- activities: y,
24579
+ activities: D,
24573
24580
  mutations: {
24574
24581
  create: h,
24575
24582
  edit: m,
@@ -24578,7 +24585,7 @@ function qC({
24578
24585
  unlike: f
24579
24586
  },
24580
24587
  user: l,
24581
- ...D
24588
+ ...y
24582
24589
  };
24583
24590
  }
24584
24591
  function WC({
@@ -24700,7 +24707,7 @@ const p_ = ({
24700
24707
  fetchNextPage: c,
24701
24708
  hasNextPage: h,
24702
24709
  isLoading: m,
24703
- mutations: { create: p, edit: g, remove: f, like: y, unlike: D },
24710
+ mutations: { create: p, edit: g, remove: f, like: D, unlike: y },
24704
24711
  user: x
24705
24712
  } = qC({
24706
24713
  queryKey: [e, t, "activities"],
@@ -24787,8 +24794,8 @@ const p_ = ({
24787
24794
  updateContent: (H, { body: ee }) => g({ activityId: $, content: ee })
24788
24795
  },
24789
24796
  likes: {
24790
- createLike: () => y({ activityId: $ }),
24791
- deleteLike: () => D({ activityId: $, reactionId: S })
24797
+ createLike: () => D({ activityId: $ }),
24798
+ deleteLike: () => y({ activityId: $, reactionId: S })
24792
24799
  },
24793
24800
  comments: {
24794
24801
  openComments: () => null
@@ -25423,9 +25430,9 @@ function Mf({
25423
25430
  },
25424
25431
  user: l,
25425
25432
  ...u
25426
- }, h = YC({ ...c, mutationFn: e }), m = GC({ ...c, mutationFn: t }), p = QC({ ...c, mutationFn: n }), g = XC({ ...c, mutationFn: a }), f = eE({ ...c, mutationFn: i }), { replies: y, ...D } = JC({ queryKey: s, queryFn: r });
25433
+ }, h = YC({ ...c, mutationFn: e }), m = GC({ ...c, mutationFn: t }), p = QC({ ...c, mutationFn: n }), g = XC({ ...c, mutationFn: a }), f = eE({ ...c, mutationFn: i }), { replies: D, ...y } = JC({ queryKey: s, queryFn: r });
25427
25434
  return {
25428
- replies: y,
25435
+ replies: D,
25429
25436
  mutations: {
25430
25437
  create: h,
25431
25438
  edit: m,
@@ -25434,7 +25441,7 @@ function Mf({
25434
25441
  unlike: f
25435
25442
  },
25436
25443
  user: l,
25437
- ...D
25444
+ ...y
25438
25445
  };
25439
25446
  }
25440
25447
  function QC({
@@ -25568,8 +25575,8 @@ const sE = ({
25568
25575
  fetchNextPage: u,
25569
25576
  hasNextPage: c,
25570
25577
  isLoading: h,
25571
- mutations: { create: m, edit: p, like: g, remove: f, unlike: y },
25572
- user: D
25578
+ mutations: { create: m, edit: p, like: g, remove: f, unlike: D },
25579
+ user: y
25573
25580
  } = Mf({
25574
25581
  queryKey: [e, t, n, r, "replies"],
25575
25582
  queryFns: {
@@ -25630,14 +25637,14 @@ const sE = ({
25630
25637
  data: { mentioned_users: N }
25631
25638
  } = _, R = (((v = A == null ? void 0 : A.like) == null ? void 0 : v.length) || 0) > 0 ? (W = A == null ? void 0 : A.like) == null ? void 0 : W.find((G) => {
25632
25639
  var ve;
25633
- return ((ve = G == null ? void 0 : G.user) == null ? void 0 : ve.id) === (D == null ? void 0 : D.id);
25640
+ return ((ve = G == null ? void 0 : G.user) == null ? void 0 : ve.id) === (y == null ? void 0 : y.id);
25634
25641
  }) : !1, w = R ? R == null ? void 0 : R.id : "", C = !!R, S = (((X = T == null ? void 0 : T.like) == null ? void 0 : X.length) || 0) > 0 ? (k = T == null ? void 0 : T.like) == null ? void 0 : k.map((G) => {
25635
25642
  var ve, be, Ae;
25636
25643
  return {
25637
25644
  id: (ve = G == null ? void 0 : G.user) == null ? void 0 : ve.id,
25638
25645
  name: (Ae = (be = G == null ? void 0 : G.user) == null ? void 0 : be.data) == null ? void 0 : Ae.name
25639
25646
  };
25640
- }) : !1, z = _ == null ? void 0 : _.user, L = (z == null ? void 0 : z.id) === (D == null ? void 0 : D.id), ne = ei(a, L), J = typeof _.data.content == "string" ? (F = _ == null ? void 0 : _.data) == null ? void 0 : F.content : (
25647
+ }) : !1, z = _ == null ? void 0 : _.user, L = (z == null ? void 0 : z.id) === (y == null ? void 0 : y.id), ne = ei(a, L), J = typeof _.data.content == "string" ? (F = _ == null ? void 0 : _.data) == null ? void 0 : F.content : (
25641
25648
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
25642
25649
  ((I = (q = _ == null ? void 0 : _.data) == null ? void 0 : q.content) == null ? void 0 : I.text) || ""
25643
25650
  );
@@ -25682,7 +25689,7 @@ const sE = ({
25682
25689
  },
25683
25690
  likes: {
25684
25691
  createLike: () => g({ replyId: E }),
25685
- deleteLike: () => y({ replyId: E, reactionId: w })
25692
+ deleteLike: () => D({ replyId: E, reactionId: w })
25686
25693
  },
25687
25694
  comments: {},
25688
25695
  mentions: {
@@ -25711,7 +25718,7 @@ const oE = ({
25711
25718
  fetchNextPage: h,
25712
25719
  hasNextPage: m,
25713
25720
  isLoading: p,
25714
- mutations: { create: g, edit: f, like: y, remove: D, unlike: x },
25721
+ mutations: { create: g, edit: f, like: D, remove: y, unlike: x },
25715
25722
  user: B
25716
25723
  } = Mf({
25717
25724
  queryKey: [e, t, n, "replies"],
@@ -25720,7 +25727,7 @@ const oE = ({
25720
25727
  A(u.length), h();
25721
25728
  }, [E, A] = de(null);
25722
25729
  return xc([p]), Nf(), /* @__PURE__ */ d.jsxs("section", { className: "replies-feed", children: [
25723
- /* @__PURE__ */ d.jsx(AC, { type: "comment", responses: c }),
25730
+ /* @__PURE__ */ d.jsx(AC, { type: "comment", responses: c, isLoading: p }),
25724
25731
  /* @__PURE__ */ d.jsx(
25725
25732
  Tf,
25726
25733
  {
@@ -25797,12 +25804,12 @@ const oE = ({
25797
25804
  functions: {
25798
25805
  content: {
25799
25806
  createContent: () => null,
25800
- deleteContent: () => D({ replyId: N }),
25807
+ deleteContent: () => y({ replyId: N }),
25801
25808
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
25802
25809
  updateContent: (Ee, { body: Fe }) => f({ replyId: N, content: Fe })
25803
25810
  },
25804
25811
  likes: {
25805
- createLike: () => y({ replyId: N }),
25812
+ createLike: () => D({ replyId: N }),
25806
25813
  deleteLike: () => x({ replyId: N, reactionId: z })
25807
25814
  },
25808
25815
  comments: {},
@@ -25953,7 +25960,7 @@ const v_ = ({
25953
25960
  activity: m,
25954
25961
  error: p,
25955
25962
  isLoading: g,
25956
- mutations: { edit: f, like: y, unlike: D }
25963
+ mutations: { edit: f, like: D, unlike: y }
25957
25964
  } = cE({
25958
25965
  queryFns: i,
25959
25966
  queryKey: [e, t, n]
@@ -26017,8 +26024,8 @@ const v_ = ({
26017
26024
  updateContent: (W, { body: X }) => f({ content: X })
26018
26025
  },
26019
26026
  likes: {
26020
- createLike: () => y({ activityId: n }),
26021
- deleteLike: () => D({ activityId: n, reactionId: T })
26027
+ createLike: () => D({ activityId: n }),
26028
+ deleteLike: () => y({ activityId: n, reactionId: T })
26022
26029
  },
26023
26030
  comments: {
26024
26031
  openComments: () => {