@apolitical/component-library 6.4.0 → 6.4.1-813.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/index.mjs CHANGED
@@ -75,7 +75,7 @@ var Vc = { exports: {} };
75
75
  })();
76
76
  })(Vc);
77
77
  var $h = Vc.exports;
78
- const H = /* @__PURE__ */ qn($h), Ih = ({
78
+ const V = /* @__PURE__ */ qn($h), Ih = ({
79
79
  element: e = "span",
80
80
  showOnFocus: t = !0,
81
81
  children: n,
@@ -83,7 +83,7 @@ const H = /* @__PURE__ */ qn($h), Ih = ({
83
83
  ...i
84
84
  }) => ee.createElement(e, {
85
85
  ...i,
86
- className: H("hidden", r, { "show-on-focus": t }),
86
+ className: V("hidden", r, { "show-on-focus": t }),
87
87
  children: n
88
88
  }), $e = nn(Ih), Lh = ({
89
89
  element: e = "span",
@@ -932,12 +932,12 @@ const nu = {}, yr = to(
932
932
  const R = {
933
933
  className: "content"
934
934
  };
935
- return _ ? R.className = H("content", { hidden: f === "hidden" }) : R.hidden = f === "hidden", /* @__PURE__ */ c.jsx(
935
+ return _ ? R.className = V("content", { hidden: f === "hidden" }) : R.hidden = f === "hidden", /* @__PURE__ */ c.jsx(
936
936
  "aside",
937
937
  {
938
938
  ref: v,
939
939
  id: p,
940
- className: H("tooltip text-medium", f, a, {
940
+ className: V("tooltip text-medium", f, a, {
941
941
  loading: r,
942
942
  "extra-padding": g,
943
943
  "has-pointer": x,
@@ -1727,7 +1727,7 @@ const Fe = ({
1727
1727
  typeof t == "string" && g.push(t), r && (g.push("icon"), typeof r == "object" ? (g.push(r.icon), r.position ? g.push(r.position) : g.push("left"), r.hover && g.push(`hover_${r.hover}`), r.animate && (g.push("animate"), typeof r.animate == "string" && g.push(r.animate))) : (g.push(r), !r.includes("right") && !r.includes("left") && g.push("left")));
1728
1728
  const x = {
1729
1729
  ...p,
1730
- className: H(e, o, g, {
1730
+ className: V(e, o, g, {
1731
1731
  "no-text": !h,
1732
1732
  disabled: l,
1733
1733
  button: i,
@@ -1762,14 +1762,14 @@ const Fe = ({
1762
1762
  return i === "p" ? /* @__PURE__ */ c.jsx(Fe, { ...s }, o) : /* @__PURE__ */ c.jsx("li", { className: ((l = t[o]) == null ? void 0 : l.className) || "", children: /* @__PURE__ */ c.jsx(Fe, { ...s }) }, o);
1763
1763
  });
1764
1764
  return ee.createElement(i, {
1765
- className: H("button-wrapper", n),
1765
+ className: V("button-wrapper", n),
1766
1766
  ...r,
1767
1767
  children: a
1768
1768
  });
1769
1769
  };
1770
1770
  const en = ({ className: e = "", maxWidth: t = !1 }) => {
1771
1771
  const n = t ? { "--max-width": `${t / 16}rem` } : {};
1772
- return /* @__PURE__ */ c.jsx("hr", { className: H(e, { "has-max-width": t }), style: n });
1772
+ return /* @__PURE__ */ c.jsx("hr", { className: V(e, { "has-max-width": t }), style: n });
1773
1773
  }, au = {
1774
1774
  card: {
1775
1775
  range: [
@@ -1981,7 +1981,7 @@ const ok = ({ image: e, className: t = "", testId: n }) => /* @__PURE__ */ c.jsx
1981
1981
  }) => {
1982
1982
  if (e) {
1983
1983
  const l = { ...o };
1984
- return i && (l.onClick = i), a && (l["data-gtm-event-context"] = a), s && (l["data-gtm-event-type"] = s), /* @__PURE__ */ c.jsx("a", { href: e, className: H("gtm-trackable", r), ...l, children: t });
1984
+ return i && (l.onClick = i), a && (l["data-gtm-event-context"] = a), s && (l["data-gtm-event-type"] = s), /* @__PURE__ */ c.jsx("a", { href: e, className: V("gtm-trackable", r), ...l, children: t });
1985
1985
  }
1986
1986
  return n ? ee.createElement(n, { children: t, className: r, ...o }) : /* @__PURE__ */ c.jsx(c.Fragment, { children: t });
1987
1987
  };
@@ -1992,7 +1992,7 @@ const dm = to(
1992
1992
  "aside",
1993
1993
  {
1994
1994
  ref: i,
1995
- className: H("popover", e),
1995
+ className: V("popover", e),
1996
1996
  "aria-live": "polite",
1997
1997
  children: t
1998
1998
  }
@@ -2022,7 +2022,7 @@ const uk = ({
2022
2022
  /* @__PURE__ */ c.jsx(
2023
2023
  "div",
2024
2024
  {
2025
- className: H("dot", {
2025
+ className: V("dot", {
2026
2026
  active: i === e,
2027
2027
  completed: i < e
2028
2028
  }),
@@ -2032,7 +2032,7 @@ const uk = ({
2032
2032
  /* @__PURE__ */ c.jsx(
2033
2033
  "div",
2034
2034
  {
2035
- className: H("line", {
2035
+ className: V("line", {
2036
2036
  active: i < e
2037
2037
  })
2038
2038
  }
@@ -2062,7 +2062,7 @@ const lk = ({ elementId: e, offset: t = 20 }) => {
2062
2062
  }
2063
2063
  );
2064
2064
  };
2065
- const ck = ({ items: e, className: t = "", ...n }) => /* @__PURE__ */ c.jsx("ul", { className: H("buckets", t), ...n, children: e.map(({ title: r, text: i, link: a, ...s }, o) => /* @__PURE__ */ c.jsx("li", { className: "bucket text-medium", children: /* @__PURE__ */ c.jsxs("a", { href: a, ...s, children: [
2065
+ const ck = ({ items: e, className: t = "", ...n }) => /* @__PURE__ */ c.jsx("ul", { className: V("buckets", t), ...n, children: e.map(({ title: r, text: i, link: a, ...s }, o) => /* @__PURE__ */ c.jsx("li", { className: "bucket text-medium", children: /* @__PURE__ */ c.jsxs("a", { href: a, ...s, children: [
2066
2066
  /* @__PURE__ */ c.jsx("p", { className: "title", children: r }),
2067
2067
  /* @__PURE__ */ c.jsx("p", { children: i })
2068
2068
  ] }) }, o)) }), su = 300, ou = "ease-in-out";
@@ -2125,7 +2125,7 @@ const oo = ({
2125
2125
  "details",
2126
2126
  {
2127
2127
  ref: a,
2128
- className: H("collapsible-section", t, {
2128
+ className: V("collapsible-section", t, {
2129
2129
  "should-animate": r
2130
2130
  }),
2131
2131
  children: [
@@ -2162,7 +2162,7 @@ const lu = {
2162
2162
  return !n && !s ? null : /* @__PURE__ */ c.jsx(
2163
2163
  "small",
2164
2164
  {
2165
- className: H(
2165
+ className: V(
2166
2166
  "content-type-label text-small",
2167
2167
  e in lu ? lu[e] : e,
2168
2168
  r,
@@ -2188,7 +2188,7 @@ const $t = ({
2188
2188
  return /* @__PURE__ */ c.jsx(
2189
2189
  "div",
2190
2190
  {
2191
- className: H("highlighted-text-box", e, r, {
2191
+ className: V("highlighted-text-box", e, r, {
2192
2192
  "has-icon": t,
2193
2193
  "show-highlight": s,
2194
2194
  [o]: o !== "default"
@@ -2221,7 +2221,7 @@ const Wn = ({
2221
2221
  $t,
2222
2222
  {
2223
2223
  variant: "subtle",
2224
- className: H("empty-state-box", e, r),
2224
+ className: V("empty-state-box", e, r),
2225
2225
  children: /* @__PURE__ */ c.jsxs(c.Fragment, { children: [
2226
2226
  t && typeof t == "string" ? /* @__PURE__ */ c.jsx(Xt, { options: { forceBlock: !0 }, children: t }) : t,
2227
2227
  i && typeof n == "object" && (u || /* @__PURE__ */ c.jsx(
@@ -2245,7 +2245,7 @@ const gm = ({
2245
2245
  heading: n = !1,
2246
2246
  children: r,
2247
2247
  ...i
2248
- }) => /* @__PURE__ */ c.jsxs("div", { ...i, className: H("helper-text-box text-small", e, t), children: [
2248
+ }) => /* @__PURE__ */ c.jsxs("div", { ...i, className: V("helper-text-box text-small", e, t), children: [
2249
2249
  n && /* @__PURE__ */ c.jsx("p", { className: "title", children: n }),
2250
2250
  typeof r == "string" ? /* @__PURE__ */ c.jsx(
2251
2251
  Xt,
@@ -2297,14 +2297,14 @@ const vm = ({
2297
2297
  $t,
2298
2298
  {
2299
2299
  variant: "subtle",
2300
- className: H("hide-show-text-box", t),
2300
+ className: V("hide-show-text-box", t),
2301
2301
  children: [
2302
2302
  /* @__PURE__ */ c.jsx(
2303
2303
  "div",
2304
2304
  {
2305
2305
  ref: u,
2306
2306
  id: e,
2307
- className: H("content", p, s),
2307
+ className: V("content", p, s),
2308
2308
  children: i ? /* @__PURE__ */ c.jsxs(c.Fragment, { children: [
2309
2309
  /* @__PURE__ */ c.jsx(Xt, { options: { forceBlock: !0, ...a }, children: p === "closed" ? d : i }),
2310
2310
  p !== "closed" && o
@@ -2317,7 +2317,7 @@ const vm = ({
2317
2317
  variant: "tertiary",
2318
2318
  icon: { icon: "navigation_arrow", position: "left", animate: !0 },
2319
2319
  styling: { muted: !0 },
2320
- className: H({ "rotate-180": f }),
2320
+ className: V({ "rotate-180": f }),
2321
2321
  onClick: () => {
2322
2322
  m(f ? "ready-to-close" : "opening");
2323
2323
  },
@@ -2340,7 +2340,7 @@ const dk = ({
2340
2340
  }) => {
2341
2341
  const { hasBorder: s = !1, zebraStriping: o = !1 } = i;
2342
2342
  return ee.createElement(e, {
2343
- className: H("icon-bulleted-list text-medium", n, a, {
2343
+ className: V("icon-bulleted-list text-medium", n, a, {
2344
2344
  "has-border": s,
2345
2345
  "has-zebra-stripes": o,
2346
2346
  [t]: e !== "dl"
@@ -2466,7 +2466,7 @@ const dk = ({
2466
2466
  "@",
2467
2467
  n.formatMessage({ id: "member_deleted" })
2468
2468
  ] })) : a ? (r = { ...r, className: "button primary medium" }, /* @__PURE__ */ c.jsx("p", { className: "center", children: /* @__PURE__ */ c.jsx(Fe, { variant: "primary", size: "medium", ...r, children: i }) })) : /* @__PURE__ */ c.jsx("a", { ...r, children: i });
2469
- }, du = ({ children: e, ...t }) => /* @__PURE__ */ c.jsx("span", { className: H({ url: t == null ? void 0 : t.href }), children: e });
2469
+ }, du = ({ children: e, ...t }) => /* @__PURE__ */ c.jsx("span", { className: V({ url: t == null ? void 0 : t.href }), children: e });
2470
2470
  const _m = {
2471
2471
  default: {
2472
2472
  a: Em,
@@ -2518,7 +2518,7 @@ const _m = {
2518
2518
  };
2519
2519
  let l = _m[i];
2520
2520
  return n.overrides && (l = { ...l, ...n.overrides }), ee.createElement(e, {
2521
- className: H("markdown-text", t, {
2521
+ className: V("markdown-text", t, {
2522
2522
  "highlight-titles": s
2523
2523
  }),
2524
2524
  children: /* @__PURE__ */ c.jsx(Xt, { options: { ...o, ...n, overrides: l }, children: r })
@@ -2529,16 +2529,29 @@ const km = ({
2529
2529
  title: t,
2530
2530
  subtitle: n,
2531
2531
  children: r,
2532
- className: i = ""
2532
+ className: i = "",
2533
+ ctaButton: a
2533
2534
  }) => {
2534
- const a = e ? { "--max-width": `${e / 16}rem` } : {};
2535
- return /* @__PURE__ */ c.jsxs("section", { className: H("page-heading", i), children: [
2536
- /* @__PURE__ */ c.jsxs("div", { className: H("content", { "has-max-width": e }), style: a, children: [
2537
- t && t.text && ee.createElement(t.element || "h1", { className: "title" }, t.text),
2538
- n && n.text && ee.createElement(
2539
- n.element || "h2",
2540
- { className: "text-medium" },
2541
- n.text
2535
+ const s = e ? { "--max-width": `${e / 16}rem` } : {};
2536
+ return /* @__PURE__ */ c.jsxs("section", { className: V("page-heading", i), children: [
2537
+ /* @__PURE__ */ c.jsxs("div", { className: V("content", { "has-max-width": e }), style: s, children: [
2538
+ /* @__PURE__ */ c.jsxs("div", { className: V("content-wrapper", { "has-max-width": e }), children: [
2539
+ t && t.text && ee.createElement(t.element || "h1", { className: "title" }, t.text),
2540
+ n && n.text && ee.createElement(
2541
+ n.element || "h2",
2542
+ { className: "text-medium" },
2543
+ n.text
2544
+ )
2545
+ ] }),
2546
+ a && /* @__PURE__ */ c.jsx(
2547
+ Fe,
2548
+ {
2549
+ ...a,
2550
+ className: V("cta-button", "gtm-trackable"),
2551
+ "data-gtm-event-context": "CreateNewArticle",
2552
+ "data-gtm-event-type": "create-article-click",
2553
+ children: a.text
2554
+ }
2542
2555
  )
2543
2556
  ] }),
2544
2557
  r
@@ -2559,7 +2572,7 @@ const cn = ({
2559
2572
  }, { showTooltip: u, tooltipProps: d } = Yc(!!i), h = {}, p = i ? typeof i == "string" ? `tooltip-${window.btoa(i)}` : i.id : void 0, m = i ? typeof i == "string" ? i : i.text : void 0;
2560
2573
  i && p && (h["aria-describedby"] = p);
2561
2574
  const v = ee.createElement(i ? "button" : s, {
2562
- className: H("pill", e, t, n, {
2575
+ className: V("pill", e, t, n, {
2563
2576
  "has-icon": r
2564
2577
  }),
2565
2578
  style: l,
@@ -2586,7 +2599,7 @@ const Hr = ({
2586
2599
  e,
2587
2600
  {
2588
2601
  ...r,
2589
- className: H("status-banner text-small", n),
2602
+ className: V("status-banner text-small", n),
2590
2603
  "aria-live": "assertive"
2591
2604
  },
2592
2605
  t
@@ -2706,7 +2719,7 @@ const Im = ({ slug: e }) => {
2706
2719
  return /* @__PURE__ */ c.jsx(
2707
2720
  cn,
2708
2721
  {
2709
- className: H("user-badge", a == null ? void 0 : a.toLowerCase()),
2722
+ className: V("user-badge", a == null ? void 0 : a.toLowerCase()),
2710
2723
  icon: i && $m[i],
2711
2724
  element: "li",
2712
2725
  tooltip: s,
@@ -2742,7 +2755,7 @@ const zm = ({
2742
2755
  return /* @__PURE__ */ c.jsx(
2743
2756
  "span",
2744
2757
  {
2745
- className: H(`progress-bar section-${u}`, s, r, {
2758
+ className: V(`progress-bar section-${u}`, s, r, {
2746
2759
  [o]: o !== "default",
2747
2760
  [l !== "default" ? l : ""]: l !== "default"
2748
2761
  }),
@@ -2775,7 +2788,7 @@ const ka = "loadingBlock_", qm = ({
2775
2788
  return /* @__PURE__ */ c.jsxs(
2776
2789
  $t,
2777
2790
  {
2778
- className: H("loading-block", n, {
2791
+ className: V("loading-block", n, {
2779
2792
  "has-icon": i && t[i].icon
2780
2793
  }),
2781
2794
  variant: "subtle",
@@ -2791,7 +2804,7 @@ const Ht = ({ element: e = "div", className: t = "", ...n }) => /* @__PURE__ */
2791
2804
  io,
2792
2805
  {
2793
2806
  element: e,
2794
- className: H("loading-placeholder", t),
2807
+ className: V("loading-placeholder", t),
2795
2808
  ...n
2796
2809
  }
2797
2810
  );
@@ -2845,7 +2858,7 @@ const Fs = {
2845
2858
  "course-navigation": ["button", "button"],
2846
2859
  "course-lesson-page": ["breadcrumb", "course-navigation", "text-page"],
2847
2860
  "course-lesson-quiz": ["text-page", "quiz-box"]
2848
- }, sd = (e, t) => e in Fs ? /* @__PURE__ */ c.jsx("div", { className: e, children: Fs[e].map((n, r) => sd(n, r)) }, t) : /* @__PURE__ */ c.jsx(Ht, { className: e }, t), lo = ({ layout: e = "overview-page", ...t }) => /* @__PURE__ */ c.jsx("div", { className: H("loading-state", e), ...t, children: Fs[e].map((n, r) => sd(n, r)) }), od = (e) => {
2861
+ }, sd = (e, t) => e in Fs ? /* @__PURE__ */ c.jsx("div", { className: e, children: Fs[e].map((n, r) => sd(n, r)) }, t) : /* @__PURE__ */ c.jsx(Ht, { className: e }, t), lo = ({ layout: e = "overview-page", ...t }) => /* @__PURE__ */ c.jsx("div", { className: V("loading-state", e), ...t, children: Fs[e].map((n, r) => sd(n, r)) }), od = (e) => {
2849
2862
  const t = e && e.toUpperCase().trim().split(" ");
2850
2863
  return Array.isArray(t) && t.length > 1 && t[0] !== "" ? t[1] === "" ? t[0][0] : t[0][0] + t[t.length - 1][0] : e ? e.substr(0, 1) : "";
2851
2864
  }, oi = ["#5AB6A3", "#A2D7AF", "#806056", "#3962B3"], Wm = (e) => {
@@ -2882,7 +2895,7 @@ const fu = 256, kn = ({
2882
2895
  return t && t !== "" && !l && (t.includes("http") || t.includes("//")) && (p = !0), /* @__PURE__ */ c.jsx(
2883
2896
  "figure",
2884
2897
  {
2885
- className: H("profile-picture", e, { error: l }),
2898
+ className: V("profile-picture", e, { error: l }),
2886
2899
  ...o,
2887
2900
  children: p ? /* @__PURE__ */ c.jsx(
2888
2901
  "img",
@@ -2959,7 +2972,7 @@ const En = ({
2959
2972
  const L = Vm(_), R = r && r.createdAt ? _s(r.createdAt) : !1, A = r && r.createdAt ? Jc(r.createdAt) : "";
2960
2973
  return ee.createElement(e, {
2961
2974
  ...d,
2962
- className: H("member text-medium", v, f, l, {
2975
+ className: V("member text-medium", v, f, l, {
2963
2976
  "has-profile-link": D
2964
2977
  }),
2965
2978
  ...m,
@@ -2987,7 +3000,7 @@ const En = ({
2987
3000
  /* @__PURE__ */ c.jsxs(
2988
3001
  "div",
2989
3002
  {
2990
- className: H("name", { "new-line": g }),
3003
+ className: V("name", { "new-line": g }),
2991
3004
  "data-testid": "member-name",
2992
3005
  children: [
2993
3006
  /* @__PURE__ */ c.jsx("span", { children: T }),
@@ -2995,7 +3008,7 @@ const En = ({
2995
3008
  r && /* @__PURE__ */ c.jsxs(
2996
3009
  "span",
2997
3010
  {
2998
- className: H("additional-content", {
3011
+ className: V("additional-content", {
2999
3012
  "new-line": g
3000
3013
  }),
3001
3014
  children: [
@@ -3045,7 +3058,7 @@ const En = ({
3045
3058
  L && !g && /* @__PURE__ */ c.jsx(
3046
3059
  "small",
3047
3060
  {
3048
- className: H({ "text-medium": v === "large" }),
3061
+ className: V({ "text-medium": v === "large" }),
3049
3062
  "data-testid": "member-details",
3050
3063
  children: b ? L : /* @__PURE__ */ c.jsxs(c.Fragment, { children: [
3051
3064
  _.role,
@@ -3114,7 +3127,7 @@ const hu = {
3114
3127
  const h = le();
3115
3128
  return !n || n.length === 0 ? null : ee.createElement(e, {
3116
3129
  ...d,
3117
- className: H("contributors", u, i, { "has-gap": a }),
3130
+ className: V("contributors", u, i, { "has-gap": a }),
3118
3131
  children: /* @__PURE__ */ c.jsxs(c.Fragment, { children: [
3119
3132
  /* @__PURE__ */ c.jsx("ul", { children: n.map((p, m) => {
3120
3133
  let v, f = "";
@@ -3136,7 +3149,7 @@ const hu = {
3136
3149
  v = /* @__PURE__ */ c.jsxs(
3137
3150
  "small",
3138
3151
  {
3139
- className: H({ "large-number": b > 99 }),
3152
+ className: V({ "large-number": b > 99 }),
3140
3153
  children: [
3141
3154
  "+",
3142
3155
  am(b, 0)
@@ -3144,14 +3157,14 @@ const hu = {
3144
3157
  }
3145
3158
  ), f = "number-left";
3146
3159
  }
3147
- return v ? /* @__PURE__ */ c.jsx("li", { className: H("contributor", f), children: v }, m) : null;
3160
+ return v ? /* @__PURE__ */ c.jsx("li", { className: V("contributor", f), children: v }, m) : null;
3148
3161
  }) }),
3149
3162
  r && /* @__PURE__ */ c.jsx("span", { className: "label", children: typeof r == "string" ? r : n.length === 1 ? typeof n[0] == "string" ? h.formatMessage({ id: `member_${n[0]}` }) : lr(n[0].name || "", 20) : l || null })
3150
3163
  ] })
3151
3164
  });
3152
3165
  };
3153
3166
  const ld = ({ element: e = "section", children: t, className: n, ...r }) => ee.createElement(e, {
3154
- className: H("modal", n),
3167
+ className: V("modal", n),
3155
3168
  children: typeof t == "string" ? /* @__PURE__ */ c.jsx("p", { children: t }) : t,
3156
3169
  ...r
3157
3170
  });
@@ -4844,7 +4857,7 @@ const Fn = ({
4844
4857
  {
4845
4858
  id: `${e}-overlay`,
4846
4859
  ref: D,
4847
- className: H("overlay", {
4860
+ className: V("overlay", {
4848
4861
  open: f,
4849
4862
  "in-portal": d.includes("in-portal")
4850
4863
  }),
@@ -4853,7 +4866,7 @@ const Fn = ({
4853
4866
  ld,
4854
4867
  {
4855
4868
  id: e,
4856
- className: H("overlay-modal", d, {
4869
+ className: V("overlay-modal", d, {
4857
4870
  "has-max-width": r
4858
4871
  }),
4859
4872
  hidden: !f,
@@ -4932,7 +4945,7 @@ const Fr = "joinCommunityButton", Dd = ({
4932
4945
  await x();
4933
4946
  }, 500), h(!d);
4934
4947
  },
4935
- className: H("join-community-button", p, {
4948
+ className: V("join-community-button", p, {
4936
4949
  active: p === "joining"
4937
4950
  }),
4938
4951
  disabled: u,
@@ -4953,7 +4966,7 @@ const Oa = "communityDetails_", hk = ({
4953
4966
  functions: { invite: s, ...o }
4954
4967
  }) => {
4955
4968
  const l = le(), { id: u } = Me(ft), d = u, h = 5, p = i || a.length, m = a.length ? a : Array(h).fill({}), v = `/communities/${r}/members` === window.location.pathname, f = t || n, b = !n && !t;
4956
- return /* @__PURE__ */ c.jsxs("div", { className: H("community-details", e), children: [
4969
+ return /* @__PURE__ */ c.jsxs("div", { className: V("community-details", e), children: [
4957
4970
  f ? /* @__PURE__ */ c.jsxs("div", { className: "member-details", children: [
4958
4971
  /* @__PURE__ */ c.jsxs("div", { className: "top", children: [
4959
4972
  /* @__PURE__ */ c.jsxs("h4", { children: [
@@ -5008,7 +5021,7 @@ const Yi = ({
5008
5021
  }) => /* @__PURE__ */ c.jsx(
5009
5022
  Fe,
5010
5023
  {
5011
- className: H("action-button", t),
5024
+ className: V("action-button", t),
5012
5025
  variant: "tertiary",
5013
5026
  icon: e,
5014
5027
  ...n
@@ -5146,7 +5159,7 @@ const Jp = ({
5146
5159
  /* @__PURE__ */ c.jsx(
5147
5160
  Yi,
5148
5161
  {
5149
- className: H(
5162
+ className: V(
5150
5163
  "discussion-button text-medium action-button likes-button",
5151
5164
  {
5152
5165
  "show-spinner": D,
@@ -7346,7 +7359,7 @@ const Ig = ({
7346
7359
  functions: {
7347
7360
  onClose: t
7348
7361
  },
7349
- className: H("profile-modal in-portal", i, {
7362
+ className: V("profile-modal in-portal", i, {
7350
7363
  open: e
7351
7364
  }),
7352
7365
  maxWidth: 600,
@@ -7470,7 +7483,7 @@ const zg = 3e3, qg = ({
7470
7483
  /* @__PURE__ */ c.jsx(
7471
7484
  yr,
7472
7485
  {
7473
- className: H({
7486
+ className: V({
7474
7487
  copied: i.isCopied
7475
7488
  }),
7476
7489
  isOpen: i.isOpen,
@@ -7514,7 +7527,7 @@ const Yn = "discussion_", Ug = ({
7514
7527
  }), /* @__PURE__ */ c.jsxs(
7515
7528
  "ul",
7516
7529
  {
7517
- className: H("actions text-medium", e),
7530
+ className: V("actions text-medium", e),
7518
7531
  "data-testid": `${n}-actions`,
7519
7532
  children: [
7520
7533
  r ? /* @__PURE__ */ c.jsx(
@@ -7601,7 +7614,7 @@ const vk = ({ breadcrumbs: e, cutoff: t = 20, className: n = "" }) => {
7601
7614
  children: r.formatMessage({ id: "breadcrumbs_label" })
7602
7615
  }
7603
7616
  ),
7604
- /* @__PURE__ */ c.jsx("ul", { className: H("breadcrumbs text-small", n), children: e.map(
7617
+ /* @__PURE__ */ c.jsx("ul", { className: V("breadcrumbs text-small", n), children: e.map(
7605
7618
  ({ text: i, href: a, current: s = !1 }, o) => {
7606
7619
  const l = {};
7607
7620
  return s && (l["aria-current"] = "location"), /* @__PURE__ */ c.jsxs("li", { children: [
@@ -7629,7 +7642,7 @@ const jd = ({
7629
7642
  return /* @__PURE__ */ c.jsxs(
7630
7643
  "aside",
7631
7644
  {
7632
- className: H("enriched-url gtm-trackable", {
7645
+ className: V("enriched-url gtm-trackable", {
7633
7646
  "has-image": t,
7634
7647
  [e]: e !== "default"
7635
7648
  }),
@@ -7683,7 +7696,7 @@ const Wg = ({
7683
7696
  let v = [];
7684
7697
  u.includes(p) && !a ? v = u.filter((f) => f !== p) : p === "all" ? v = ["all"] : r ? v = [...u.filter((f) => f !== "all"), p] : v = [p], d((f) => (i && typeof i == "function" && i({ current: v, previous: f }), v)), m && typeof m == "function" && m();
7685
7698
  };
7686
- return /* @__PURE__ */ c.jsx("ul", { className: H("filters", s), children: l.map(({ id: p, text: m, disabled: v = !1, callback: f = () => {
7699
+ return /* @__PURE__ */ c.jsx("ul", { className: V("filters", s), children: l.map(({ id: p, text: m, disabled: v = !1, callback: f = () => {
7687
7700
  } }) => {
7688
7701
  let b = {};
7689
7702
  return v && (b = {
@@ -7692,7 +7705,7 @@ const Wg = ({
7692
7705
  }), /* @__PURE__ */ c.jsx("li", { children: /* @__PURE__ */ c.jsx(
7693
7706
  "button",
7694
7707
  {
7695
- className: H(p, {
7708
+ className: V(p, {
7696
7709
  selected: u.includes(p)
7697
7710
  }),
7698
7711
  onClick: (g) => {
@@ -7736,7 +7749,7 @@ const fi = "languageSwitcher_", bk = ({
7736
7749
  ))
7737
7750
  return null;
7738
7751
  const v = Object.keys(r), f = h !== e;
7739
- return /* @__PURE__ */ c.jsxs("div", { className: H("language-switcher text-small", s, l), children: [
7752
+ return /* @__PURE__ */ c.jsxs("div", { className: V("language-switcher text-small", s, l), children: [
7740
7753
  /* @__PURE__ */ c.jsxs("nav", { children: [
7741
7754
  s !== "short" && /* @__PURE__ */ c.jsx("p", { children: o || u.formatMessage({ id: `${fi}label` }) }),
7742
7755
  /* @__PURE__ */ c.jsx("ul", { children: v.map((b) => {
@@ -7811,7 +7824,7 @@ const Ra = Bh({ locale: "en", messages: xr }), fa = ({
7811
7824
  v instanceof Error ? h(v.message) : h("Unknown error");
7812
7825
  }
7813
7826
  };
7814
- return !d && !e && !o.endOfFeed ? null : /* @__PURE__ */ c.jsx("footer", { className: H("load-more", l), children: !d && e ? /* @__PURE__ */ c.jsx(
7827
+ return !d && !e && !o.endOfFeed ? null : /* @__PURE__ */ c.jsx("footer", { className: V("load-more", l), children: !d && e ? /* @__PURE__ */ c.jsx(
7815
7828
  Fe,
7816
7829
  {
7817
7830
  variant: r,
@@ -7837,7 +7850,7 @@ const Od = ({
7837
7850
  "a",
7838
7851
  {
7839
7852
  href: "/home/",
7840
- className: H("logo", e, t, n),
7853
+ className: V("logo", e, t, n),
7841
7854
  ...r,
7842
7855
  children: /* @__PURE__ */ c.jsx($e, { children: /* @__PURE__ */ c.jsx(ct, { id: "apolitical" }) })
7843
7856
  }
@@ -7858,7 +7871,7 @@ const Hg = ({
7858
7871
  document.removeEventListener("click", l, !0);
7859
7872
  })), ee.createElement(e, {
7860
7873
  ref: a,
7861
- className: H("more-menu text-medium", r),
7874
+ className: V("more-menu text-medium", r),
7862
7875
  children: /* @__PURE__ */ c.jsxs(c.Fragment, { children: [
7863
7876
  /* @__PURE__ */ c.jsx(
7864
7877
  Fe,
@@ -7930,7 +7943,7 @@ const Zg = gr(() => Promise.resolve().then(() => Zm)), Yg = [
7930
7943
  return /* @__PURE__ */ c.jsxs("ul", { id: "navigation-menu", className: "text-medium", children: [
7931
7944
  Yg.map(({ key: a, href: s }) => {
7932
7945
  const o = Kg(s, e), l = {};
7933
- return o && (l["aria-current"] = "page"), /* @__PURE__ */ c.jsx("li", { className: H(a, { active: o }), children: /* @__PURE__ */ c.jsx(
7946
+ return o && (l["aria-current"] = "page"), /* @__PURE__ */ c.jsx("li", { className: V(a, { active: o }), children: /* @__PURE__ */ c.jsx(
7934
7947
  "a",
7935
7948
  {
7936
7949
  href: s,
@@ -8010,7 +8023,7 @@ const Jg = "shareLinks_", yk = ({
8010
8023
  className: s = ""
8011
8024
  }) => {
8012
8025
  const o = le(), l = Qg({ title: e, link: t, referrer: n });
8013
- return /* @__PURE__ */ c.jsxs("aside", { className: H("share-links", i, a, s), children: [
8026
+ return /* @__PURE__ */ c.jsxs("aside", { className: V("share-links", i, a, s), children: [
8014
8027
  /* @__PURE__ */ c.jsx("p", { className: "text-small", children: o.formatMessage({ id: "shareLinks_label" }) }),
8015
8028
  /* @__PURE__ */ c.jsx("ul", { children: l.map(({ key: u, icon: d, url: h, shouldRender: p = !0, onClick: m }) => {
8016
8029
  if (typeof p == "function" && !p())
@@ -8108,7 +8121,7 @@ const xk = ({ tabs: e, className: t = "", preventLocationChange: n }) => {
8108
8121
  href: x || `#${f}`,
8109
8122
  id: `tab-${f}`,
8110
8123
  "aria-controls": f,
8111
- className: H({ selected: _ }),
8124
+ className: V({ selected: _ }),
8112
8125
  role: "tab",
8113
8126
  tabIndex: _ ? 0 : -1,
8114
8127
  "aria-selected": _,
@@ -8119,7 +8132,7 @@ const xk = ({ tabs: e, className: t = "", preventLocationChange: n }) => {
8119
8132
  ) }, `tab-${f}`)
8120
8133
  );
8121
8134
  }
8122
- ), /* @__PURE__ */ c.jsxs("div", { className: H("tabs-wrapper", t), children: [
8135
+ ), /* @__PURE__ */ c.jsxs("div", { className: V("tabs-wrapper", t), children: [
8123
8136
  /* @__PURE__ */ c.jsx("ul", { className: "tabs", role: "tablist", children: p }),
8124
8137
  /* @__PURE__ */ c.jsx("div", { className: "tab-content", children: m })
8125
8138
  ] });
@@ -8140,7 +8153,7 @@ const Xg = {
8140
8153
  return ee.Children.count(i) === 1 && (s = ee.Children.toArray(i)[0], s.props && (s = s.props.children)), /* @__PURE__ */ c.jsx(
8141
8154
  "section",
8142
8155
  {
8143
- className: H("columns", `layout-${e}`, r, {
8156
+ className: V("columns", `layout-${e}`, r, {
8144
8157
  "has-containers": n
8145
8158
  }),
8146
8159
  children: ee.Children.map(s, (o, l) => t !== !1 && l === t && a && a < Xg[e] ? null : o)
@@ -8162,7 +8175,7 @@ const Pd = ({
8162
8175
  "small",
8163
8176
  {
8164
8177
  id: e,
8165
- className: H("character-limit", {
8178
+ className: V("character-limit", {
8166
8179
  "near-limit": l,
8167
8180
  "approaching-limit": u
8168
8181
  }),
@@ -8361,7 +8374,7 @@ const mi = "emailHelperTextBox_", nv = ({
8361
8374
  type: o,
8362
8375
  id: n,
8363
8376
  name: a,
8364
- className: H(e, t, {
8377
+ className: V(e, t, {
8365
8378
  "has-scrollbar": o === "textarea" && m.current && m.current.clientHeight < m.current.scrollHeight
8366
8379
  }),
8367
8380
  value: l,
@@ -8488,7 +8501,7 @@ const Gn = {
8488
8501
  ..._,
8489
8502
  activePredictionIndex: C
8490
8503
  })),
8491
- className: H("predictions-list-item", {
8504
+ className: V("predictions-list-item", {
8492
8505
  active: C === m
8493
8506
  }),
8494
8507
  children: F.description
@@ -8574,7 +8587,7 @@ const Nd = ({
8574
8587
  break;
8575
8588
  }
8576
8589
  } : void 0,
8577
- className: H(i, "checkbox-wrapper", e, {
8590
+ className: V(i, "checkbox-wrapper", e, {
8578
8591
  "is-checked": d
8579
8592
  }),
8580
8593
  ...p,
@@ -8589,7 +8602,7 @@ const av = nn(function({
8589
8602
  return /* @__PURE__ */ c.jsx(
8590
8603
  io,
8591
8604
  {
8592
- className: H("rotating-chevron", `direction-${t}`)
8605
+ className: V("rotating-chevron", `direction-${t}`)
8593
8606
  }
8594
8607
  );
8595
8608
  });
@@ -8625,7 +8638,7 @@ const sv = ({
8625
8638
  } else
8626
8639
  b([]), x && x([]);
8627
8640
  };
8628
- return /* @__PURE__ */ c.jsxs("div", { className: H("dropdown-wrapper", e), children: [
8641
+ return /* @__PURE__ */ c.jsxs("div", { className: V("dropdown-wrapper", e), children: [
8629
8642
  /* @__PURE__ */ c.jsxs(
8630
8643
  "button",
8631
8644
  {
@@ -8710,7 +8723,7 @@ const sv = ({
8710
8723
  return /* @__PURE__ */ c.jsx("li", { "data-testid": "dropdown-options", children: /* @__PURE__ */ c.jsxs(
8711
8724
  "button",
8712
8725
  {
8713
- className: H("gtm-trackable", {
8726
+ className: V("gtm-trackable", {
8714
8727
  selected: $,
8715
8728
  "selected-single": $ && !o
8716
8729
  }),
@@ -8724,7 +8737,7 @@ const sv = ({
8724
8737
  "data-testid": $ ? "current-selection" : "",
8725
8738
  children: [
8726
8739
  o && /* @__PURE__ */ c.jsx("span", { className: "pretty-checkbox", "data-testid": "pretty-checkbox" }),
8727
- /* @__PURE__ */ c.jsx("span", { className: H({ "menu-option-label": o }), children: T.label })
8740
+ /* @__PURE__ */ c.jsx("span", { className: V({ "menu-option-label": o }), children: T.label })
8728
8741
  ]
8729
8742
  }
8730
8743
  ) }, T.id);
@@ -8855,7 +8868,7 @@ const ov = ({
8855
8868
  return /* @__PURE__ */ c.jsxs(
8856
8869
  "fieldset",
8857
8870
  {
8858
- className: H("multiple-inputs field-wrapper", {
8871
+ className: V("multiple-inputs field-wrapper", {
8859
8872
  "has-button": D,
8860
8873
  "has-legend": t
8861
8874
  }),
@@ -8947,7 +8960,7 @@ const Nu = ({
8947
8960
  "ul",
8948
8961
  {
8949
8962
  ...m,
8950
- className: H("options-wrapper", e, {
8963
+ className: V("options-wrapper", e, {
8951
8964
  "with-pills filters": p
8952
8965
  }),
8953
8966
  "data-testid": `ul-${r}`,
@@ -9011,7 +9024,7 @@ const uv = ({
9011
9024
  "button",
9012
9025
  {
9013
9026
  type: "button",
9014
- className: H("show-password gtm-trackable", {
9027
+ className: V("show-password gtm-trackable", {
9015
9028
  "password-visible": l
9016
9029
  }),
9017
9030
  "data-gtm-event-context": n,
@@ -9112,7 +9125,7 @@ const Qn = {
9112
9125
  {
9113
9126
  ...T,
9114
9127
  label: P,
9115
- className: H("field-wrapper", i)
9128
+ className: V("field-wrapper", i)
9116
9129
  }
9117
9130
  ),
9118
9131
  /* @__PURE__ */ c.jsx(L, { as: "p" })
@@ -9125,7 +9138,7 @@ const Qn = {
9125
9138
  });
9126
9139
  return /* @__PURE__ */ c.jsx(c.Fragment, { children: ee.createElement(
9127
9140
  x ? "fieldset" : "div",
9128
- { className: H("field-wrapper text-medium", i) },
9141
+ { className: V("field-wrapper text-medium", i) },
9129
9142
  /* @__PURE__ */ c.jsxs(c.Fragment, {
9130
9143
  /* If the `label` prop is `false`, don't render anything here; this lets us set a single label for all multiple inputs, for example */
9131
9144
  children: [
@@ -9399,7 +9412,7 @@ const mn = ({
9399
9412
  {
9400
9413
  ...g,
9401
9414
  icon: ne ? { icon: "tick", position: "left" } : !1,
9402
- className: H("gtm-trackable", g.className),
9415
+ className: V("gtm-trackable", g.className),
9403
9416
  onClick: j,
9404
9417
  disabled: U || ne || s.disabled,
9405
9418
  "data-gtm-event-context": d.context,
@@ -9409,7 +9422,7 @@ const mn = ({
9409
9422
  ];
9410
9423
  return D && z.unshift({
9411
9424
  ...o,
9412
- className: H("gtm-trackable", o.className),
9425
+ className: V("gtm-trackable", o.className),
9413
9426
  "data-gtm-event-context": d.context,
9414
9427
  "data-gtm-event-type": d.event,
9415
9428
  disabled: U || ne,
@@ -9421,7 +9434,7 @@ const mn = ({
9421
9434
  {
9422
9435
  ...p,
9423
9436
  id: r,
9424
- className: H("form", n),
9437
+ className: V("form", n),
9425
9438
  ref: G
9426
9439
  },
9427
9440
  /* @__PURE__ */ c.jsxs(c.Fragment, { children: [
@@ -9472,7 +9485,7 @@ const mn = ({
9472
9485
  b ? null : (U || ne) && f ? f : /* @__PURE__ */ c.jsx(
9473
9486
  ti,
9474
9487
  {
9475
- className: H("cta", {
9488
+ className: V("cta", {
9476
9489
  center: U || ne,
9477
9490
  submitted: ne
9478
9491
  }),
@@ -9497,13 +9510,13 @@ const pi = "passwordRules_", Rd = "isMoreThanEightCharacters", $d = "includesNum
9497
9510
  className: t = ""
9498
9511
  }) => {
9499
9512
  const n = le();
9500
- return /* @__PURE__ */ c.jsxs("aside", { className: H("password-rules", t), children: [
9513
+ return /* @__PURE__ */ c.jsxs("aside", { className: V("password-rules", t), children: [
9501
9514
  /* @__PURE__ */ c.jsx("small", { children: n.formatMessage({ id: `${pi}intro` }) }),
9502
9515
  /* @__PURE__ */ c.jsx("ul", { children: [Rd, $d, Id].map(
9503
9516
  (r) => /* @__PURE__ */ c.jsxs(
9504
9517
  "li",
9505
9518
  {
9506
- className: H({ matches: e[r] }),
9519
+ className: V({ matches: e[r] }),
9507
9520
  children: [
9508
9521
  /* @__PURE__ */ c.jsxs($e, { children: [
9509
9522
  n.formatMessage({ id: `${pi}rule_label` }),
@@ -9572,14 +9585,14 @@ const Dk = ({
9572
9585
  u((x) => ({ ...x, disabled: !1 }));
9573
9586
  }
9574
9587
  };
9575
- return /* @__PURE__ */ c.jsxs("div", { className: H("rating", a), children: [
9588
+ return /* @__PURE__ */ c.jsxs("div", { className: V("rating", a), children: [
9576
9589
  /* @__PURE__ */ c.jsx("span", { className: "label", children: f[p ? "success" : "text"] }),
9577
9590
  /* @__PURE__ */ c.jsx("ol", { children: Array.from(new Array(t).keys()).map((g) => {
9578
9591
  const x = g + 1;
9579
9592
  return /* @__PURE__ */ c.jsx(
9580
9593
  "li",
9581
9594
  {
9582
- className: H({ selected: p && x <= p }),
9595
+ className: V({ selected: p && x <= p }),
9583
9596
  children: /* @__PURE__ */ c.jsx(
9584
9597
  Fe,
9585
9598
  {
@@ -9631,7 +9644,7 @@ const Dk = ({
9631
9644
  console.error(e);
9632
9645
  }
9633
9646
  }, pn = At(hv);
9634
- var V = /* @__PURE__ */ ((e) => (e.blockquote = "block_quote", e.bold = "bold", e.code = "code", e.codeblock = "code_block", e.heading = "heading", e.hr = "thematic_break", e.image = "image", e.italic = "italic", e.li = "list_item", e.link = "link", e.mention = "mention", e.ol = "ol_list", e.paragraph = "paragraph", e.ul = "ul_list", e.strikethrough = "strikeThrough", e.span = "span", e.h3 = "heading_three", e))(V || {}), un = /* @__PURE__ */ ((e) => (e.delete = "delete_mark", e.emphasis = "emphasis_mark", e.code = "inline_code_mark", e.strong = "strong_mark", e))(un || {});
9647
+ var H = /* @__PURE__ */ ((e) => (e.blockquote = "block_quote", e.bold = "bold", e.code = "code", e.codeblock = "code_block", e.heading = "heading", e.hr = "thematic_break", e.image = "image", e.italic = "italic", e.li = "list_item", e.link = "link", e.mention = "mention", e.ol = "ol_list", e.paragraph = "paragraph", e.ul = "ul_list", e.strikethrough = "strikeThrough", e.span = "span", e.h3 = "heading_three", e))(H || {}), un = /* @__PURE__ */ ((e) => (e.delete = "delete_mark", e.emphasis = "emphasis_mark", e.code = "inline_code_mark", e.strong = "strong_mark", e))(un || {});
9635
9648
  const mv = ({
9636
9649
  attributes: e,
9637
9650
  children: t,
@@ -9639,13 +9652,13 @@ const mv = ({
9639
9652
  }) => {
9640
9653
  const r = n;
9641
9654
  switch (r.type) {
9642
- case V.blockquote:
9655
+ case H.blockquote:
9643
9656
  return /* @__PURE__ */ c.jsx("blockquote", { className: "subtle", ...e, children: t });
9644
- case V.link:
9657
+ case H.link:
9645
9658
  return /* @__PURE__ */ c.jsx("a", { ...e, children: t });
9646
- case V.li:
9659
+ case H.li:
9647
9660
  return /* @__PURE__ */ c.jsx("li", { ...e, children: t });
9648
- case V.mention:
9661
+ case H.mention:
9649
9662
  const i = r;
9650
9663
  return i != null && i.name && i.name === Li ? /* @__PURE__ */ c.jsxs("span", { ...e, className: "mention deleted-user", children: [
9651
9664
  "@",
@@ -9656,20 +9669,20 @@ const mv = ({
9656
9669
  (i == null ? void 0 : i.name) || "",
9657
9670
  t
9658
9671
  ] });
9659
- case V.ol:
9672
+ case H.ol:
9660
9673
  return /* @__PURE__ */ c.jsx("ol", { ...e, children: t });
9661
- case V.ul:
9674
+ case H.ul:
9662
9675
  return /* @__PURE__ */ c.jsx("ul", { ...e, children: t });
9663
- case V.span:
9676
+ case H.span:
9664
9677
  return /* @__PURE__ */ c.jsx("span", { ...e, children: t });
9665
- case V.paragraph:
9678
+ case H.paragraph:
9666
9679
  return /* @__PURE__ */ c.jsx("p", { ...e, children: t });
9667
9680
  default:
9668
9681
  return /* @__PURE__ */ c.jsx("span", { ...e, children: t });
9669
9682
  }
9670
9683
  }, pv = ({ attributes: e, children: t, leaf: n }) => {
9671
9684
  const r = n;
9672
- return r[V.bold] && (t = /* @__PURE__ */ c.jsx("strong", { children: t })), r[V.italic] && (t = /* @__PURE__ */ c.jsx("em", { children: t })), r[V.strikethrough] && (t = /* @__PURE__ */ c.jsx("s", { children: t })), r[V.h3] && (t = /* @__PURE__ */ c.jsx("h3", { children: t })), /* @__PURE__ */ c.jsx("span", { ...e, children: t });
9685
+ return r[H.bold] && (t = /* @__PURE__ */ c.jsx("strong", { children: t })), r[H.italic] && (t = /* @__PURE__ */ c.jsx("em", { children: t })), r[H.strikethrough] && (t = /* @__PURE__ */ c.jsx("s", { children: t })), r[H.h3] && (t = /* @__PURE__ */ c.jsx("h3", { children: t })), /* @__PURE__ */ c.jsx("span", { ...e, children: t });
9673
9686
  };
9674
9687
  var gv = yv, Ld = "֑-߿יִ-﷽ﹰ-ﻼ", zd = "A-Za-zÀ-ÖØ-öø-ʸ̀-֐ࠀ-῿‎Ⰰ-﬜︀-﹯﻽-￿", vv = new RegExp("^[^" + zd + "]*[" + Ld + "]"), bv = new RegExp("^[^" + Ld + "]*[" + zd + "]");
9675
9688
  function yv(e) {
@@ -17427,7 +17440,7 @@ const Vs = "MENTION: ", jf = {
17427
17440
  }
17428
17441
  const [i] = y.nodes(e, {
17429
17442
  at: r,
17430
- match: (a) => a.type === V.link
17443
+ match: (a) => a.type === H.link
17431
17444
  });
17432
17445
  if (i) {
17433
17446
  const a = i[0], s = so(a.link), o = a.children[0], l = (o == null ? void 0 : o.text) || "";
@@ -17438,15 +17451,15 @@ const Vs = "MENTION: ", jf = {
17438
17451
  };
17439
17452
  var bt = /* @__PURE__ */ ((e) => (e.paragraph = "paragraph", e.heading = "heading", e.list = "list", e.listItem = "listItem", e.link = "link", e.mention = "mention", e.image = "image", e.blockquote = "blockquote", e.code = "code", e.html = "html", e.emphasis = "emphasis", e.strong = "strong", e.delete = "delete", e.inlineCode = "inlineCode", e.thematicBreak = "thematicBreak", e.text = "text", e.h3 = "heading_three", e))(bt || {});
17440
17453
  const ir = {
17441
- [V.paragraph]: V.paragraph,
17442
- [V.blockquote]: V.blockquote,
17443
- [V.codeblock]: V.codeblock,
17444
- [V.link]: V.link,
17445
- [V.ul]: V.ul,
17446
- [V.ol]: V.ol,
17447
- [V.li]: V.li,
17448
- [V.mention]: V.mention,
17449
- [V.heading]: {
17454
+ [H.paragraph]: H.paragraph,
17455
+ [H.blockquote]: H.blockquote,
17456
+ [H.codeblock]: H.codeblock,
17457
+ [H.link]: H.link,
17458
+ [H.ul]: H.ul,
17459
+ [H.ol]: H.ol,
17460
+ [H.li]: H.li,
17461
+ [H.mention]: H.mention,
17462
+ [H.heading]: {
17450
17463
  1: "heading_one",
17451
17464
  2: "heading_two",
17452
17465
  3: "heading_three",
@@ -17454,13 +17467,13 @@ const ir = {
17454
17467
  5: "heading_five",
17455
17468
  6: "heading_six"
17456
17469
  },
17457
- [un.emphasis]: V.italic,
17458
- [un.strong]: V.bold,
17459
- [un.delete]: V.strikethrough,
17460
- [un.code]: V.code,
17461
- [V.hr]: V.hr,
17462
- [V.image]: V.image,
17463
- [V.h3]: V.h3
17470
+ [un.emphasis]: H.italic,
17471
+ [un.strong]: H.bold,
17472
+ [un.delete]: H.strikethrough,
17473
+ [un.code]: H.code,
17474
+ [H.hr]: H.hr,
17475
+ [H.image]: H.image,
17476
+ [H.h3]: H.h3
17464
17477
  };
17465
17478
  function nc(e) {
17466
17479
  if (e)
@@ -21625,9 +21638,9 @@ function Zf(e, t) {
21625
21638
  const n = {
21626
21639
  ...ir,
21627
21640
  ...t == null ? void 0 : t.nodeTypes,
21628
- [V.heading]: {
21629
- ...ir[V.heading],
21630
- ...(l = t == null ? void 0 : t.nodeTypes) == null ? void 0 : l[V.heading]
21641
+ [H.heading]: {
21642
+ ...ir[H.heading],
21643
+ ...(l = t == null ? void 0 : t.nodeTypes) == null ? void 0 : l[H.heading]
21631
21644
  }
21632
21645
  }, r = (t == null ? void 0 : t.linkDestinationKey) ?? "link", i = (t == null ? void 0 : t.imageSourceKey) ?? "link", a = (t == null ? void 0 : t.imageCaptionKey) ?? "caption";
21633
21646
  let s = [{ text: "" }];
@@ -21643,49 +21656,49 @@ function Zf(e, t) {
21643
21656
  )), e.type) {
21644
21657
  case bt.heading:
21645
21658
  return {
21646
- type: n[V.heading][e.depth || 1],
21659
+ type: n[H.heading][e.depth || 1],
21647
21660
  // we need to flag the type of heading in the children to ensure it renders as the correct heading type
21648
21661
  children: s.map((h) => ({
21649
21662
  ...h,
21650
- [n[V.heading][e.depth || 1]]: !0
21663
+ [n[H.heading][e.depth || 1]]: !0
21651
21664
  }))
21652
21665
  };
21653
21666
  case bt.list:
21654
21667
  return {
21655
- type: e.ordered ? n[V.ol] : n[V.ul],
21668
+ type: e.ordered ? n[H.ol] : n[H.ul],
21656
21669
  children: s
21657
21670
  };
21658
21671
  case bt.listItem:
21659
- return { type: n[V.li], children: s };
21672
+ return { type: n[H.li], children: s };
21660
21673
  case bt.paragraph:
21661
- return { type: n[V.paragraph], children: s };
21674
+ return { type: n[H.paragraph], children: s };
21662
21675
  case bt.link:
21663
21676
  return {
21664
- type: n[V.link],
21677
+ type: n[H.link],
21665
21678
  [r]: e.url,
21666
21679
  children: s
21667
21680
  };
21668
21681
  case bt.image:
21669
21682
  return {
21670
- type: n[V.image],
21683
+ type: n[H.image],
21671
21684
  children: [{ text: "" }],
21672
21685
  [i]: e.url,
21673
21686
  [a]: e.alt
21674
21687
  };
21675
21688
  case bt.blockquote:
21676
- return { type: n[V.blockquote], children: s };
21689
+ return { type: n[H.blockquote], children: s };
21677
21690
  case bt.code:
21678
21691
  return {
21679
- type: n[V.codeblock],
21692
+ type: n[H.codeblock],
21680
21693
  language: e.lang,
21681
21694
  children: [{ text: e.value }]
21682
21695
  };
21683
21696
  case bt.html:
21684
21697
  return (u = e.value) != null && u.includes("<br>") ? {
21685
21698
  break: !0,
21686
- type: n[V.paragraph],
21699
+ type: n[H.paragraph],
21687
21700
  children: [{ text: ((d = e.value) == null ? void 0 : d.replace(/<br>/g, "")) || "" }]
21688
- } : { type: V.paragraph, children: [{ text: e.value || "" }] };
21701
+ } : { type: H.paragraph, children: [{ text: e.value || "" }] };
21689
21702
  case bt.emphasis:
21690
21703
  return {
21691
21704
  [n[un.emphasis]]: !0,
@@ -21712,7 +21725,7 @@ function Zf(e, t) {
21712
21725
  };
21713
21726
  case bt.thematicBreak:
21714
21727
  return {
21715
- type: n[V.hr],
21728
+ type: n[H.hr],
21716
21729
  children: [{ text: "" }]
21717
21730
  };
21718
21731
  case "text":
@@ -21736,20 +21749,20 @@ const TC = function(t) {
21736
21749
  xD().use(BC).use(TC).process(e).then((n) => {
21737
21750
  const r = Ut(n.result), i = (s) => {
21738
21751
  const o = s;
21739
- [V.li, V.blockquote].includes(o.type) && o.children.map((l, u) => {
21752
+ [H.li, H.blockquote].includes(o.type) && o.children.map((l, u) => {
21740
21753
  const d = l;
21741
- d.type === V.paragraph && o.children.splice(u, 1, ...d.children);
21754
+ d.type === H.paragraph && o.children.splice(u, 1, ...d.children);
21742
21755
  }), "children" in s && s.children && s.children.forEach((l) => i(l));
21743
21756
  };
21744
21757
  r.forEach(i);
21745
21758
  const a = (s) => {
21746
21759
  for (let o = 0; o < s.length; o++) {
21747
21760
  const l = s[o], u = l;
21748
- if (u.type === V.link) {
21761
+ if (u.type === H.link) {
21749
21762
  const d = u.children && u.children[0];
21750
21763
  if (d && "text" in d && d.text.includes(Vs)) {
21751
21764
  const h = u, p = d.text.replace(Vs, ""), m = "link" in h && h.link ? h.link : "";
21752
- h.type = V.mention, h.id = m, h.name = p, h.children = [{ text: "" }], s[o + 1] || s.splice(o + 1, 0, { text: " " }), o++;
21765
+ h.type = H.mention, h.id = m, h.name = p, h.children = [{ text: "" }], s[o + 1] || s.splice(o + 1, 0, { text: " " }), o++;
21753
21766
  }
21754
21767
  }
21755
21768
  "children" in l && l.children && a(l.children);
@@ -21762,7 +21775,7 @@ const TC = function(t) {
21762
21775
  u && u.map((d) => {
21763
21776
  const h = d.replace(/~~/g, ""), p = o.text.indexOf(d), m = o.text.substring(0, p), v = o.text.substring(p + d.length), f = [
21764
21777
  { text: m },
21765
- { text: h, [V.strikethrough]: !0 },
21778
+ { text: h, [H.strikethrough]: !0 },
21766
21779
  { text: v }
21767
21780
  ];
21768
21781
  s.children.splice(l, 1, ...f);
@@ -21798,24 +21811,24 @@ const TC = function(t) {
21798
21811
  }, PC = (e) => {
21799
21812
  for (const [t] of oe.descendants(e)) {
21800
21813
  const n = t;
21801
- if (n.type === V.link)
21814
+ if (n.type === H.link)
21802
21815
  return n.link;
21803
21816
  }
21804
21817
  return null;
21805
21818
  }, Fc = {
21806
- "mod+b": V.bold,
21807
- "mod+i": V.italic,
21808
- "mod+shift+x": V.strikethrough,
21809
- "mod+k": V.link,
21810
- "mod+shift+7": V.ol,
21811
- "mod+shift+8": V.ul,
21812
- "mod+shift+9": V.blockquote
21819
+ "mod+b": H.bold,
21820
+ "mod+i": H.italic,
21821
+ "mod+shift+x": H.strikethrough,
21822
+ "mod+k": H.link,
21823
+ "mod+shift+7": H.ol,
21824
+ "mod+shift+8": H.ul,
21825
+ "mod+shift+9": H.blockquote
21813
21826
  }, NC = (e, t, n, r) => {
21814
21827
  for (const i in Fc)
21815
21828
  if (B1(i, e)) {
21816
21829
  e.stopPropagation(), e.preventDefault();
21817
21830
  const a = Fc[i];
21818
- if (a === V.link) {
21831
+ if (a === H.link) {
21819
21832
  n([{ type: "showLinkEditor", value: !0 }]);
21820
21833
  return;
21821
21834
  }
@@ -21833,7 +21846,7 @@ const TC = function(t) {
21833
21846
  const o = s.userId || "", l = (d = s.user) == null ? void 0 : d.name;
21834
21847
  n([{ type: "mentionPopover", value: { ...t, show: !1 } }]);
21835
21848
  const u = {
21836
- type: V.mention,
21849
+ type: H.mention,
21837
21850
  id: o,
21838
21851
  name: l,
21839
21852
  children: [{ text: "" }]
@@ -21890,9 +21903,9 @@ const TC = function(t) {
21890
21903
  }
21891
21904
  return t;
21892
21905
  }, Xn = (e) => typeof e.text == "string", RC = [
21893
- V.hr,
21894
- V.image,
21895
- V.mention
21906
+ H.hr,
21907
+ H.image,
21908
+ H.mention
21896
21909
  ], Ac = "<br>";
21897
21910
  function Qf(e, t = { nodeTypes: ir }) {
21898
21911
  const {
@@ -21905,12 +21918,12 @@ function Qf(e, t = { nodeTypes: ir }) {
21905
21918
  ...ir,
21906
21919
  ...n,
21907
21920
  heading: {
21908
- ...ir[V.heading],
21909
- ...n[V.heading]
21921
+ ...ir[H.heading],
21922
+ ...n[H.heading]
21910
21923
  }
21911
- }, l = [o[V.ul], o[V.ol]];
21924
+ }, l = [o[H.ul], o[H.ol]];
21912
21925
  let u = a;
21913
- if (!Xn(e) && s !== V.mention && (u = e.children.map((d) => {
21926
+ if (!Xn(e) && s !== H.mention && (u = e.children.map((d) => {
21914
21927
  const h = Xn(d) ? !1 : l.includes(d.type || ""), p = l.includes(e.type || "");
21915
21928
  let m = !1;
21916
21929
  return !Xn(e) && Array.isArray(e.children) && (m = e.children.some(
@@ -21930,65 +21943,65 @@ function Qf(e, t = { nodeTypes: ir }) {
21930
21943
  !d.break,
21931
21944
  // track depth of nested lists so we can add proper spacing
21932
21945
  listDepth: l.includes(d.type || "") ? i + 1 : i,
21933
- inBlockquote: s === o[V.blockquote] || e.parentType === o[V.blockquote]
21946
+ inBlockquote: s === o[H.blockquote] || e.parentType === o[H.blockquote]
21934
21947
  }
21935
21948
  );
21936
21949
  }).join("")), !r && (a === "" || a === `
21937
- `) && e.parentType === o[V.paragraph] && s !== o[V.mention] && (s = o[V.paragraph], u = Ac), !(u === "" && !RC.find((d) => o[d] === s)))
21938
- switch (u !== Ac && Xn(e) && (e[V.strikethrough] && e[V.bold] && e[V.italic] ? u = er(u, "~~***") : e[V.bold] && e[V.italic] ? u = er(u, "***") : (e[V.bold] && (u = er(u, "**")), e[V.italic] && (u = er(u, "_")), e[V.strikethrough] && (u = er(u, "~~")), e[V.code] && (u = er(u, "`")))), s) {
21939
- case o[V.heading][1]:
21950
+ `) && e.parentType === o[H.paragraph] && s !== o[H.mention] && (s = o[H.paragraph], u = Ac), !(u === "" && !RC.find((d) => o[d] === s)))
21951
+ switch (u !== Ac && Xn(e) && (e[H.strikethrough] && e[H.bold] && e[H.italic] ? u = er(u, "~~***") : e[H.bold] && e[H.italic] ? u = er(u, "***") : (e[H.bold] && (u = er(u, "**")), e[H.italic] && (u = er(u, "_")), e[H.strikethrough] && (u = er(u, "~~")), e[H.code] && (u = er(u, "`")))), s) {
21952
+ case o[H.heading][1]:
21940
21953
  return `# ${u}
21941
21954
  `;
21942
- case o[V.heading][2]:
21955
+ case o[H.heading][2]:
21943
21956
  return `## ${u}
21944
21957
  `;
21945
- case o[V.heading][3]:
21958
+ case o[H.heading][3]:
21946
21959
  return `### ${u}
21947
21960
  `;
21948
- case o[V.heading][4]:
21961
+ case o[H.heading][4]:
21949
21962
  return `#### ${u}
21950
21963
  `;
21951
- case o[V.heading][5]:
21964
+ case o[H.heading][5]:
21952
21965
  return `##### ${u}
21953
21966
  `;
21954
- case o[V.heading][6]:
21967
+ case o[H.heading][6]:
21955
21968
  return `###### ${u}
21956
21969
  `;
21957
- case o[V.blockquote]:
21970
+ case o[H.blockquote]:
21958
21971
  return `> ${u}
21959
21972
 
21960
21973
  `;
21961
- case o[V.codeblock]:
21974
+ case o[H.codeblock]:
21962
21975
  return `\`\`\`${e.language || ""}
21963
21976
  ${u}
21964
21977
  \`\`\`
21965
21978
  `;
21966
- case o[V.link]:
21979
+ case o[H.link]:
21967
21980
  return `[${u}](${e.link || ""})`;
21968
21981
  case o.image:
21969
21982
  return `![${e.caption}](${e.link || ""})`;
21970
- case o[V.mention]:
21983
+ case o[H.mention]:
21971
21984
  const { id: d } = e;
21972
21985
  return e ? `@{{${d}}}` : u;
21973
- case o[V.ul]:
21974
- case o[V.ol]:
21986
+ case o[H.ul]:
21987
+ case o[H.ol]:
21975
21988
  return `
21976
21989
  ${u}
21977
21990
 
21978
21991
  `;
21979
- case o[V.li]:
21980
- const h = e && e.parentType === o[V.ol], p = e.children.length === 1 && Xn(e.children[0]);
21992
+ case o[H.li]:
21993
+ const h = e && e.parentType === o[H.ol], p = e.children.length === 1 && Xn(e.children[0]);
21981
21994
  let m = "";
21982
21995
  for (let v = 0; i > v; v++)
21983
21996
  h ? m += " " : m += " ";
21984
21997
  return t.inBlockquote && (m = "> " + m), `
21985
21998
  ${m}${h ? "1." : "-"} ${u}${p ? `
21986
21999
  ` : ""}`;
21987
- case o[V.paragraph]:
22000
+ case o[H.paragraph]:
21988
22001
  return `${u}
21989
22002
 
21990
22003
  `;
21991
- case o[V.hr]:
22004
+ case o[H.hr]:
21992
22005
  return `---
21993
22006
  `;
21994
22007
  default:
@@ -22024,7 +22037,7 @@ const IC = ({
22024
22037
  En,
22025
22038
  {
22026
22039
  element: "li",
22027
- className: H({ selected: f === u }),
22040
+ className: V({ selected: f === u }),
22028
22041
  member: { id: m, ...v, link: !1 },
22029
22042
  functions: {
22030
22043
  onClick: (b) => {
@@ -22045,7 +22058,7 @@ const IC = ({
22045
22058
  En,
22046
22059
  {
22047
22060
  element: "li",
22048
- className: H("fallback", {
22061
+ className: V("fallback", {
22049
22062
  selected: d.length === u
22050
22063
  }),
22051
22064
  member: {
@@ -22115,7 +22128,7 @@ const Jf = ({ formID: e, label: t, showLabel: n }) => {
22115
22128
  "li",
22116
22129
  {
22117
22130
  id: `${d}-${e}`,
22118
- className: H(e, { "has-divider": n }),
22131
+ className: V(e, { "has-divider": n }),
22119
22132
  onMouseEnter: () => {
22120
22133
  v([{ type: "openTooltip", value: e }]);
22121
22134
  },
@@ -22142,7 +22155,7 @@ const Jf = ({ formID: e, label: t, showLabel: n }) => {
22142
22155
  {
22143
22156
  ...o,
22144
22157
  ...f,
22145
- className: H(e, i, { active: t }),
22158
+ className: V(e, i, { active: t }),
22146
22159
  onClick: (b) => {
22147
22160
  b.stopPropagation(), b.preventDefault();
22148
22161
  },
@@ -22196,7 +22209,7 @@ const Jf = ({ formID: e, label: t, showLabel: n }) => {
22196
22209
  ]
22197
22210
  }
22198
22211
  );
22199
- }, Tc = [V.ol, V.ul], Xf = (e, t) => {
22212
+ }, Tc = [H.ol, H.ul], Xf = (e, t) => {
22200
22213
  const { selection: n } = e;
22201
22214
  if (!n)
22202
22215
  return !1;
@@ -22212,7 +22225,7 @@ const Jf = ({ formID: e, label: t, showLabel: n }) => {
22212
22225
  return !!r;
22213
22226
  }, LC = (e) => {
22214
22227
  const [t] = y.nodes(e, {
22215
- match: (n) => n.type === V.blockquote
22228
+ match: (n) => n.type === H.blockquote
22216
22229
  });
22217
22230
  return !!t;
22218
22231
  }, eh = (e, t, n) => {
@@ -22226,9 +22239,9 @@ const Jf = ({ formID: e, label: t, showLabel: n }) => {
22226
22239
  split: !0
22227
22240
  });
22228
22241
  const o = {
22229
- type: i ? V.paragraph : a ? V.li : t
22242
+ type: i ? H.paragraph : a ? H.li : t
22230
22243
  };
22231
- if (Q.setNodes(e, o), t === V.h3) {
22244
+ if (Q.setNodes(e, o), t === H.h3) {
22232
22245
  const l = {
22233
22246
  type: t
22234
22247
  };
@@ -22245,7 +22258,7 @@ const Jf = ({ formID: e, label: t, showLabel: n }) => {
22245
22258
  at: d,
22246
22259
  match: (p) => {
22247
22260
  const m = p;
22248
- return !y.isEditor(p) && he.isElement(p) && m.type === V.li;
22261
+ return !y.isEditor(p) && he.isElement(p) && m.type === H.li;
22249
22262
  }
22250
22263
  })
22251
22264
  ).forEach(([p, m]) => {
@@ -22254,7 +22267,7 @@ const Jf = ({ formID: e, label: t, showLabel: n }) => {
22254
22267
  } else {
22255
22268
  if (r) {
22256
22269
  const u = {
22257
- type: V.blockquote,
22270
+ type: H.blockquote,
22258
22271
  children: []
22259
22272
  };
22260
22273
  Q.wrapNodes(e, u);
@@ -22283,7 +22296,7 @@ const Jf = ({ formID: e, label: t, showLabel: n }) => {
22283
22296
  const [t] = y.nodes(e, {
22284
22297
  match: (n) => {
22285
22298
  const r = n;
22286
- return !y.isEditor(n) && he.isElement(n) && r.type === V.link;
22299
+ return !y.isEditor(n) && he.isElement(n) && r.type === H.link;
22287
22300
  }
22288
22301
  });
22289
22302
  return !!t;
@@ -22295,7 +22308,7 @@ const Jf = ({ formID: e, label: t, showLabel: n }) => {
22295
22308
  const [s] = y.nodes(e, {
22296
22309
  match: (o) => {
22297
22310
  const l = o;
22298
- return !y.isEditor(o) && he.isElement(o) && l.type === V.link;
22311
+ return !y.isEditor(o) && he.isElement(o) && l.type === H.link;
22299
22312
  }
22300
22313
  });
22301
22314
  if (s) {
@@ -22310,7 +22323,7 @@ const Jf = ({ formID: e, label: t, showLabel: n }) => {
22310
22323
  try {
22311
22324
  Ur(e) && th(e);
22312
22325
  const { selection: i } = e, a = i && K.isCollapsed(i), s = {
22313
- type: V.link,
22326
+ type: H.link,
22314
22327
  link: t,
22315
22328
  children: a ? [{ text: t }] : []
22316
22329
  };
@@ -22323,7 +22336,7 @@ const Jf = ({ formID: e, label: t, showLabel: n }) => {
22323
22336
  Q.unwrapNodes(e, {
22324
22337
  match: (t) => {
22325
22338
  const n = t;
22326
- return !y.isEditor(t) && he.isElement(t) && n.type === V.link;
22339
+ return !y.isEditor(t) && he.isElement(t) && n.type === H.link;
22327
22340
  }
22328
22341
  });
22329
22342
  };
@@ -22445,7 +22458,7 @@ const UC = () => {
22445
22458
  {
22446
22459
  element: "fieldset",
22447
22460
  id: `${n}-link-editor`,
22448
- className: H({ "show-labels": h }),
22461
+ className: V({ "show-labels": h }),
22449
22462
  meta: { shouldReset: !0, showRequiredLabels: !1 },
22450
22463
  functions: {
22451
22464
  onSuccess: async (C) => {
@@ -22491,7 +22504,7 @@ const UC = () => {
22491
22504
  "aria-pressed": null
22492
22505
  }
22493
22506
  );
22494
- }, VC = (e) => [V.bold, V.italic, V.strikethrough].includes(
22507
+ }, VC = (e) => [H.bold, H.italic, H.strikethrough].includes(
22495
22508
  e
22496
22509
  ), nh = (e, t) => {
22497
22510
  const n = y.marks(e);
@@ -22517,13 +22530,13 @@ const UC = () => {
22517
22530
  }
22518
22531
  );
22519
22532
  }, aa = [
22520
- V.bold,
22521
- V.italic,
22522
- V.strikethrough
22533
+ H.bold,
22534
+ H.italic,
22535
+ H.strikethrough
22523
22536
  ], KC = [
22524
- V.ol,
22525
- V.ul,
22526
- V.blockquote
22537
+ H.ol,
22538
+ H.ul,
22539
+ H.blockquote
22527
22540
  ];
22528
22541
  const ZC = ({
22529
22542
  styling: e = { showHeadingOption: !1 },
@@ -22534,7 +22547,7 @@ const ZC = ({
22534
22547
  /* @__PURE__ */ c.jsxs("fieldset", { id: `toolbar-${r}`, className: "toolbar", ...t, children: [
22535
22548
  /* @__PURE__ */ c.jsx($e, { element: "legend", showOnFocus: !1, children: n.formatMessage({ id: "richTextEditor_toolbar" }) }),
22536
22549
  /* @__PURE__ */ c.jsxs("ul", { children: [
22537
- (e == null ? void 0 : e.showHeadingOption) && /* @__PURE__ */ c.jsx(Sc, { format: V.h3, hasDivider: !0 }, V.h3),
22550
+ (e == null ? void 0 : e.showHeadingOption) && /* @__PURE__ */ c.jsx(Sc, { format: H.h3, hasDivider: !0 }, H.h3),
22538
22551
  aa.map((i, a) => /* @__PURE__ */ c.jsx(HC, { format: i, hasDivider: a === aa.length - 1 }, i)),
22539
22552
  /* @__PURE__ */ c.jsx(WC, {}),
22540
22553
  KC.map((i, a) => /* @__PURE__ */ c.jsx(Sc, { format: i, hasDivider: a === 1 }, i))
@@ -23320,7 +23333,7 @@ const EE = (e, t) => {
23320
23333
  const { apply: n } = e;
23321
23334
  try {
23322
23335
  e.apply = (r) => {
23323
- if (r.type === "remove_node" && "type" in r.node && r.node.type === V.link) {
23336
+ if (r.type === "remove_node" && "type" in r.node && r.node.type === H.link) {
23324
23337
  const i = r.node;
23325
23338
  if (i.link) {
23326
23339
  const a = new CustomEvent("linkRemoved", {
@@ -23352,7 +23365,7 @@ const TE = /* @__PURE__ */ qn(_E), SE = (e, t, n) => {
23352
23365
  try {
23353
23366
  e.isInline = (a) => {
23354
23367
  const s = a;
23355
- return [V.link].includes(s.type) || i(a);
23368
+ return [H.link].includes(s.type) || i(a);
23356
23369
  }, e.insertText = (a) => {
23357
23370
  a && TE(a) ? zo(e, a, t) : r(a);
23358
23371
  };
@@ -23364,7 +23377,7 @@ const TE = /* @__PURE__ */ qn(_E), SE = (e, t, n) => {
23364
23377
  }, jE = (e, t) => {
23365
23378
  const { isInline: n, isVoid: r, markableVoid: i } = e;
23366
23379
  try {
23367
- e.isInline = (a) => a.type === V.mention ? !0 : n(a), e.isVoid = (a) => a.type === V.mention ? !0 : r(a), e.markableVoid = (a) => a.type === V.mention || i(a);
23380
+ e.isInline = (a) => a.type === H.mention ? !0 : n(a), e.isVoid = (a) => a.type === H.mention ? !0 : r(a), e.markableVoid = (a) => a.type === H.mention || i(a);
23368
23381
  } catch (a) {
23369
23382
  const s = a.message;
23370
23383
  t(`Error in withMentions: ${s}`);
@@ -23374,7 +23387,7 @@ const TE = /* @__PURE__ */ qn(_E), SE = (e, t, n) => {
23374
23387
  const { normalizeNode: n } = e;
23375
23388
  try {
23376
23389
  e.normalizeNode = ([r, i]) => {
23377
- if (r.type === V.link && oe.string(r).trim() === "") {
23390
+ if (r.type === H.link && oe.string(r).trim() === "") {
23378
23391
  Q.removeNodes(e, { at: i });
23379
23392
  return;
23380
23393
  }
@@ -23415,7 +23428,7 @@ const dh = ({
23415
23428
  }
23416
23429
  } = a || {}, F = [
23417
23430
  {
23418
- type: V.paragraph,
23431
+ type: H.paragraph,
23419
23432
  children: [{ text: "" }]
23420
23433
  }
23421
23434
  ];
@@ -23630,8 +23643,8 @@ const dh = ({
23630
23643
  const Y = K.isCollapsed(I), [Z, te] = y.node(E, I, { depth: 1 });
23631
23644
  let ce = Z, J = ce.type;
23632
23645
  const ve = ce.children[0];
23633
- if (ve && (ve == null ? void 0 : ve[V.h3]) === !0 && (B.stopPropagation(), B.preventDefault(), Q.insertNodes(E, F)), ve && [V.ol, V.ul].includes(ve.type) && (ce = ve, J = ve.type), ce && he.isElement(ce) && J !== V.paragraph) {
23634
- if (J === V.blockquote && !B.shiftKey) {
23646
+ if (ve && (ve == null ? void 0 : ve[H.h3]) === !0 && (B.stopPropagation(), B.preventDefault(), Q.insertNodes(E, F)), ve && [H.ol, H.ul].includes(ve.type) && (ce = ve, J = ve.type), ce && he.isElement(ce) && J !== H.paragraph) {
23647
+ if (J === H.blockquote && !B.shiftKey) {
23635
23648
  B.stopPropagation(), B.preventDefault(), Q.insertNodes(E, F);
23636
23649
  return;
23637
23650
  }
@@ -23639,8 +23652,8 @@ const dh = ({
23639
23652
  const [me, Be] = y.parent(E, I, {
23640
23653
  edge: "end"
23641
23654
  }), Oe = me.type;
23642
- if ([V.ul, V.ol].includes(J))
23643
- if (B.stopPropagation(), B.preventDefault(), Oe === V.li && k === "Enter") {
23655
+ if ([H.ul, H.ol].includes(J))
23656
+ if (B.stopPropagation(), B.preventDefault(), Oe === H.li && k === "Enter") {
23644
23657
  me.children.length === 1 && "text" in me.children[0] && me.children[0].text === "" && Q.removeNodes(E, { at: Be }), Q.insertNodes(E, F, {
23645
23658
  at: M.next(te)
23646
23659
  }), Q.select(
@@ -23649,8 +23662,8 @@ const dh = ({
23649
23662
  );
23650
23663
  return;
23651
23664
  } else {
23652
- const [Qe, ze] = jC(E, V.li), We = {
23653
- type: V.li,
23665
+ const [Qe, ze] = jC(E, H.li), We = {
23666
+ type: H.li,
23654
23667
  children: [{ text: "" }]
23655
23668
  };
23656
23669
  Q.insertNodes(E, We, {
@@ -23773,7 +23786,7 @@ const wk = ({
23773
23786
  return /* @__PURE__ */ c.jsxs(
23774
23787
  "div",
23775
23788
  {
23776
- className: H("toggle", s),
23789
+ className: V("toggle", s),
23777
23790
  onClick: (d) => {
23778
23791
  d.preventDefault(), d.stopPropagation(), u(o === n[0].value ? n[1].value : n[0].value);
23779
23792
  },
@@ -23782,7 +23795,7 @@ const wk = ({
23782
23795
  /* @__PURE__ */ c.jsx(
23783
23796
  "ul",
23784
23797
  {
23785
- className: H("toggle-options", {
23798
+ className: V("toggle-options", {
23786
23799
  disabled: a,
23787
23800
  on: o === n[1].value
23788
23801
  }),
@@ -23841,7 +23854,7 @@ function PE({
23841
23854
  change: x = o.formatMessage({ id: `${l}cta_change` }),
23842
23855
  uploading: D = o.formatMessage({ id: `${l}cta_uploading` })
23843
23856
  } = (a == null ? void 0 : a.text) || {};
23844
- return /* @__PURE__ */ c.jsxs("div", { className: H("profile-image-change-figure", e), children: [
23857
+ return /* @__PURE__ */ c.jsxs("div", { className: V("profile-image-change-figure", e), children: [
23845
23858
  /* @__PURE__ */ c.jsx(
23846
23859
  kn,
23847
23860
  {
@@ -24447,7 +24460,7 @@ const LE = ({
24447
24460
  "form",
24448
24461
  {
24449
24462
  onSubmit: d,
24450
- className: H("search-form gtm-trackable", t),
24463
+ className: V("search-form gtm-trackable", t),
24451
24464
  role: "search",
24452
24465
  "data-gtm-event-context": i,
24453
24466
  "data-gtm-event-type": a,
@@ -24730,7 +24743,7 @@ const LE = ({
24730
24743
  const WE = ({ className: e = "" }) => /* @__PURE__ */ c.jsxs(
24731
24744
  "div",
24732
24745
  {
24733
- className: H("success-message", e),
24746
+ className: V("success-message", e),
24734
24747
  "data-testid": "success-message",
24735
24748
  children: [
24736
24749
  /* @__PURE__ */ c.jsx("p", { className: "success-title", children: /* @__PURE__ */ c.jsx(ct, { id: "signup_success_title" }) }),
@@ -24830,7 +24843,7 @@ const VE = {
24830
24843
  return v.successMessage && C ? /* @__PURE__ */ c.jsx(WE, { className: e }) : /* @__PURE__ */ c.jsxs(
24831
24844
  "fieldset",
24832
24845
  {
24833
- className: H("signup-form-fieldset", e),
24846
+ className: V("signup-form-fieldset", e),
24834
24847
  "data-testid": "signup-form",
24835
24848
  children: [
24836
24849
  v.title && /* @__PURE__ */ c.jsx("p", { className: "signup-title", children: /* @__PURE__ */ c.jsx(ct, { id: "signup_title" }) }),
@@ -24911,7 +24924,7 @@ const Hn = ({
24911
24924
  return /* @__PURE__ */ c.jsx(
24912
24925
  "section",
24913
24926
  {
24914
- className: H("full-width-section", t, {
24927
+ className: V("full-width-section", t, {
24915
24928
  [i]: i !== "default",
24916
24929
  [a]: a !== "none"
24917
24930
  }),
@@ -24936,7 +24949,7 @@ const kk = ({ text: e, buttons: t, className: n = "" }) => {
24936
24949
  }), /* @__PURE__ */ c.jsx(
24937
24950
  Hn,
24938
24951
  {
24939
- className: H("download-section", n),
24952
+ className: V("download-section", n),
24940
24953
  styling: { background: "dark" },
24941
24954
  children: /* @__PURE__ */ c.jsxs("div", { className: "content-default", children: [
24942
24955
  ee.createElement(
@@ -25004,7 +25017,7 @@ const HE = ({
25004
25017
  r.props.functions.onCancel && r.props.functions.onCancel(), m();
25005
25018
  }
25006
25019
  }
25007
- })), /* @__PURE__ */ c.jsxs("section", { className: H("edit-section", t), children: [
25020
+ })), /* @__PURE__ */ c.jsxs("section", { className: V("edit-section", t), children: [
25008
25021
  v && /* @__PURE__ */ c.jsx(
25009
25022
  Fn,
25010
25023
  {
@@ -25013,7 +25026,7 @@ const HE = ({
25013
25026
  showDivider: !1,
25014
25027
  showIcon: !1,
25015
25028
  functions: { onClose: m },
25016
- className: H("edit-section-modal"),
25029
+ className: V("edit-section-modal"),
25017
25030
  children: b || (n ? /* @__PURE__ */ c.jsx(
25018
25031
  mn,
25019
25032
  {
@@ -25037,7 +25050,7 @@ const HE = ({
25037
25050
  ) : /* @__PURE__ */ c.jsx(c.Fragment, {}))
25038
25051
  }
25039
25052
  ),
25040
- /* @__PURE__ */ c.jsxs("div", { className: H("edit-section-header", { "no-title": !s }), children: [
25053
+ /* @__PURE__ */ c.jsxs("div", { className: V("edit-section-header", { "no-title": !s }), children: [
25041
25054
  s && /* @__PURE__ */ c.jsx("h2", { className: "edit-section-header-title", children: a }),
25042
25055
  f && /* @__PURE__ */ c.jsx(
25043
25056
  Fe,
@@ -25081,21 +25094,21 @@ const Ak = ({
25081
25094
  return /* @__PURE__ */ c.jsxs(
25082
25095
  "div",
25083
25096
  {
25084
- className: H("logos", i, `align-${l}`, {
25097
+ className: V("logos", i, `align-${l}`, {
25085
25098
  [u]: u !== "block",
25086
25099
  "wrap-logos": o
25087
25100
  }),
25088
25101
  children: [
25089
25102
  e && ee.createElement(
25090
25103
  s.element,
25091
- { className: H("title", s.className) },
25104
+ { className: V("title", s.className) },
25092
25105
  s.text
25093
25106
  ),
25094
25107
  t && /* @__PURE__ */ c.jsx("p", { children: t }),
25095
25108
  /* @__PURE__ */ c.jsx(
25096
25109
  "ul",
25097
25110
  {
25098
- className: H({
25111
+ className: V({
25099
25112
  "two-col": a === 2 || a === 4,
25100
25113
  "three-col": a === 5 || a <= 10 && a % 3 === 0
25101
25114
  }),
@@ -25681,7 +25694,7 @@ const sr = "footer_", oa = "SiteFooter", Rc = ({ group: e }) => {
25681
25694
  return /* @__PURE__ */ c.jsxs(
25682
25695
  "li",
25683
25696
  {
25684
- className: H({
25697
+ className: V({
25685
25698
  [o.className]: o.className,
25686
25699
  "has-submenu": m,
25687
25700
  parent: v,
@@ -25712,7 +25725,7 @@ const sr = "footer_", oa = "SiteFooter", Rc = ({ group: e }) => {
25712
25725
  return o[D].order ? /* @__PURE__ */ c.jsxs(
25713
25726
  "li",
25714
25727
  {
25715
- className: H({
25728
+ className: V({
25716
25729
  [o[D].className]: o[D].className
25717
25730
  }),
25718
25731
  children: [
@@ -25934,7 +25947,7 @@ const mh = ({ showNavigation: e = !0 }) => {
25934
25947
  "nav",
25935
25948
  {
25936
25949
  id: "header",
25937
- className: H({
25950
+ className: V({
25938
25951
  "logged-in": i,
25939
25952
  "logged-out": !i,
25940
25953
  visible: l
@@ -26008,7 +26021,7 @@ const mh = ({ showNavigation: e = !0 }) => {
26008
26021
  /* @__PURE__ */ c.jsx(
26009
26022
  "div",
26010
26023
  {
26011
- className: H("overlay", {
26024
+ className: V("overlay", {
26012
26025
  open: u[
26013
26026
  "site-navigation"
26014
26027
  /* SITE */
@@ -26067,14 +26080,14 @@ const YE = () => {
26067
26080
  "div",
26068
26081
  {
26069
26082
  id: "wrapper",
26070
- className: H(s, C, { "has-footer": u }),
26083
+ className: V(s, C, { "has-footer": u }),
26071
26084
  children: [
26072
26085
  /* @__PURE__ */ c.jsx(mh, { showNavigation: l }),
26073
26086
  /* @__PURE__ */ c.jsxs("main", { id: "content-wrapper", children: [
26074
26087
  D && /* @__PURE__ */ c.jsx(
26075
26088
  "div",
26076
26089
  {
26077
- className: H("additional-content prepended", {
26090
+ className: V("additional-content prepended", {
26078
26091
  "large-modal": m === "large"
26079
26092
  }),
26080
26093
  children: D
@@ -26083,7 +26096,7 @@ const YE = () => {
26083
26096
  ee.createElement(d === "bold" ? ld : "div", {
26084
26097
  id: "content",
26085
26098
  children: x,
26086
- className: H({ "large-modal": m === "large" })
26099
+ className: V({ "large-modal": m === "large" })
26087
26100
  })
26088
26101
  ] }),
26089
26102
  F && /* @__PURE__ */ c.jsx("div", { className: "additional-content appended", children: F }),
@@ -26154,7 +26167,7 @@ const Sk = ({
26154
26167
  }), l.length < 1 ? null : /* @__PURE__ */ c.jsx(
26155
26168
  "ul",
26156
26169
  {
26157
- className: H("tags text-small", t, i, {
26170
+ className: V("tags text-small", t, i, {
26158
26171
  "one-line": n
26159
26172
  }),
26160
26173
  children: l.map((u) => {
@@ -26188,7 +26201,7 @@ const JE = 25, XE = ({
26188
26201
  className: h = ""
26189
26202
  }) => {
26190
26203
  const p = le(), m = "membersList", v = Me(ft), [f, b] = ue(!1);
26191
- return e.length === 0 && !d ? null : /* @__PURE__ */ c.jsxs("div", { className: H("members-list", h), children: [
26204
+ return e.length === 0 && !d ? null : /* @__PURE__ */ c.jsxs("div", { className: V("members-list", h), children: [
26192
26205
  u ? /* @__PURE__ */ c.jsxs("h1", { children: [
26193
26206
  p.formatMessage({ id: m }),
26194
26207
  /* @__PURE__ */ c.jsx("span", { className: "count", children: t })
@@ -26574,7 +26587,7 @@ const rt = "discussion_form_", xa = ({
26574
26587
  mn,
26575
26588
  {
26576
26589
  id: ce,
26577
- className: H("discussion-card discussion-form", {
26590
+ className: V("discussion-card discussion-form", {
26578
26591
  "no-styling": x && C
26579
26592
  }),
26580
26593
  meta: {
@@ -26669,7 +26682,7 @@ const rt = "discussion_form_", xa = ({
26669
26682
  }) => {
26670
26683
  const r = {
26671
26684
  ...n,
26672
- class: H("subtle", t)
26685
+ class: V("subtle", t)
26673
26686
  };
26674
26687
  return /* @__PURE__ */ c.jsx("blockquote", { ...r, children: e });
26675
26688
  };
@@ -26851,7 +26864,7 @@ const Da = ({
26851
26864
  "data-gtm-event-context": d,
26852
26865
  "data-gtm-event-type": `edit-${t.type}-click`
26853
26866
  }), m && ((We = z == null ? void 0 : z.current) == null || We.focus(), (tt = z == null ? void 0 : z.current) == null || tt.scrollIntoView({ behavior: "smooth" })), ee.createElement(e, {
26854
- className: H("discussion-post", u, {
26867
+ className: V("discussion-post", u, {
26855
26868
  [te]: !u || !u.includes("highlighted-text-box"),
26856
26869
  "has-link": l.post && !B.isEditing,
26857
26870
  "is-pinned": (t == null ? void 0 : t.pinned) || !1
@@ -26876,7 +26889,7 @@ const Da = ({
26876
26889
  "div",
26877
26890
  {
26878
26891
  id: U || t.slug,
26879
- className: H("discussion-card", t.type, {
26892
+ className: V("discussion-card", t.type, {
26880
26893
  editing: B.isEditing,
26881
26894
  "has-link": l.post && !B.isEditing
26882
26895
  }),
@@ -27158,7 +27171,7 @@ const o_ = gr(
27158
27171
  /* @__PURE__ */ c.jsxs(
27159
27172
  "button",
27160
27173
  {
27161
- className: H("discussion-form-card", n),
27174
+ className: V("discussion-form-card", n),
27162
27175
  onClick: (b) => {
27163
27176
  b.preventDefault(), b.stopPropagation(), h((g) => ({ ...g, form: !0 }));
27164
27177
  },
@@ -27168,7 +27181,7 @@ const o_ = gr(
27168
27181
  /* @__PURE__ */ c.jsx(
27169
27182
  cr,
27170
27183
  {
27171
- className: H("input", { placeholder: !p.showCachedText }),
27184
+ className: V("input", { placeholder: !p.showCachedText }),
27172
27185
  element: "span",
27173
27186
  options: {
27174
27187
  forceInline: !0,
@@ -27353,7 +27366,7 @@ const f_ = ({
27353
27366
  return /* @__PURE__ */ c.jsxs(
27354
27367
  "div",
27355
27368
  {
27356
- className: H("thread-wrapper", {
27369
+ className: V("thread-wrapper", {
27357
27370
  "empty-thread": !o
27358
27371
  }),
27359
27372
  children: [
@@ -27676,7 +27689,7 @@ const D_ = ({
27676
27689
  (p !== "" || m !== "") && l((b) => ({ ...b, showCachedText: !0 })), o();
27677
27690
  }
27678
27691
  },
27679
- className: H("discussion-form-modal", i),
27692
+ className: V("discussion-form-modal", i),
27680
27693
  children: /* @__PURE__ */ c.jsx(
27681
27694
  xa,
27682
27695
  {
@@ -27756,7 +27769,7 @@ const Ok = ({
27756
27769
  showDivider: !1,
27757
27770
  showIcon: o,
27758
27771
  functions: { onClose: l },
27759
- className: H("invite-modal", e, { success: !!n }),
27772
+ className: V("invite-modal", e, { success: !!n }),
27760
27773
  children: /* @__PURE__ */ c.jsx(
27761
27774
  RE,
27762
27775
  {
@@ -27797,7 +27810,7 @@ const C_ = ({
27797
27810
  functions: {
27798
27811
  onClose: d
27799
27812
  },
27800
- className: H("profile-modal", s, { success: !!t }),
27813
+ className: V("profile-modal", s, { success: !!t }),
27801
27814
  maxWidth: 700,
27802
27815
  children: /* @__PURE__ */ c.jsxs(c.Fragment, { children: [
27803
27816
  t && n || r ? /* @__PURE__ */ c.jsxs("div", { className: "intro", children: [
@@ -27876,13 +27889,13 @@ const __ = ({
27876
27889
  content: n,
27877
27890
  member: r,
27878
27891
  className: i = ""
27879
- }) => /* @__PURE__ */ c.jsxs("blockquote", { className: H("testimonial-block", i), children: [
27892
+ }) => /* @__PURE__ */ c.jsxs("blockquote", { className: V("testimonial-block", i), children: [
27880
27893
  /* @__PURE__ */ c.jsx(Xt, { className: "testimonial", children: n }),
27881
27894
  r ? /* @__PURE__ */ c.jsx(En, { member: r, styling: { size: "large" } }) : /* @__PURE__ */ c.jsxs(c.Fragment, { children: [
27882
27895
  e && /* @__PURE__ */ c.jsx(
27883
27896
  "p",
27884
27897
  {
27885
- className: H("author", {
27898
+ className: V("author", {
27886
27899
  "text-small": !i.includes("new")
27887
27900
  }),
27888
27901
  children: e
@@ -27891,7 +27904,7 @@ const __ = ({
27891
27904
  t && /* @__PURE__ */ c.jsx(
27892
27905
  "p",
27893
27906
  {
27894
- className: H("author-cite", {
27907
+ className: V("author-cite", {
27895
27908
  "text-small": !i.includes("new")
27896
27909
  }),
27897
27910
  children: /* @__PURE__ */ c.jsx("cite", { children: t })
@@ -27923,7 +27936,7 @@ const Mk = ({
27923
27936
  $t,
27924
27937
  {
27925
27938
  variant: "subtle",
27926
- className: H("table-of-contents", n),
27939
+ className: V("table-of-contents", n),
27927
27940
  children: [
27928
27941
  /* @__PURE__ */ c.jsx("h2", { children: r.formatMessage({ id: "tableOfContents" }) }),
27929
27942
  /* @__PURE__ */ c.jsx("nav", { children: /* @__PURE__ */ c.jsx("ul", { children: i.map(({ id: s, text: o }) => /* @__PURE__ */ c.jsx("li", { children: /* @__PURE__ */ c.jsx("a", { href: `#${s}`, children: o }) }, s)) }) })
@@ -27965,7 +27978,7 @@ const Ko = ({
27965
27978
  { early: u, late: h }
27966
27979
  );
27967
27980
  }
27968
- return n && (u = `${n} ${u}`, l = `${n} ${l}`), r && (u = `${u} ${r}`, l = `${l} ${r}`), /* @__PURE__ */ c.jsx("span", { className: H("time-to-complete", i), "aria-label": u, children: l });
27981
+ return n && (u = `${n} ${u}`, l = `${n} ${l}`), r && (u = `${u} ${r}`, l = `${l} ${r}`), /* @__PURE__ */ c.jsx("span", { className: V("time-to-complete", i), "aria-label": u, children: l });
27969
27982
  };
27970
27983
  const Rk = ({ className: e = "", image: t, ...n }) => t ? (typeof t == "string" && (t = {
27971
27984
  width: 1080,
@@ -27980,7 +27993,7 @@ const Rk = ({ className: e = "", image: t, ...n }) => t ? (typeof t == "string"
27980
27993
  Dr,
27981
27994
  {
27982
27995
  ...n,
27983
- className: H("banner", e),
27996
+ className: V("banner", e),
27984
27997
  image: { ...t, aspect: "banner" }
27985
27998
  }
27986
27999
  )) : null;
@@ -28051,7 +28064,7 @@ const k_ = [
28051
28064
  }), /* @__PURE__ */ c.jsx(
28052
28065
  Hn,
28053
28066
  {
28054
- className: H("banner-section", r, i, e, {
28067
+ className: V("banner-section", r, i, e, {
28055
28068
  "has-image": n,
28056
28069
  "image-full-width": n && u.imageFullWidth,
28057
28070
  "image-inline": n && !u.imageFullWidth,
@@ -28075,7 +28088,7 @@ const k_ = [
28075
28088
  size: { mobile: "medium", 768: "large" },
28076
28089
  href: o.link,
28077
28090
  ...o.props,
28078
- className: H({
28091
+ className: V({
28079
28092
  new: r === "subtle",
28080
28093
  [(v = o.props) == null ? void 0 : v.className]: (f = o.props) == null ? void 0 : f.className
28081
28094
  }),
@@ -28106,7 +28119,7 @@ const Ik = ({
28106
28119
  return e && (i["--image"] = `url(${e})`), /* @__PURE__ */ c.jsx(
28107
28120
  Hn,
28108
28121
  {
28109
- className: H("custom-content-banner", t, r, {
28122
+ className: V("custom-content-banner", t, r, {
28110
28123
  "has-image": e
28111
28124
  }),
28112
28125
  style: i,
@@ -28121,11 +28134,11 @@ const A_ = ({
28121
28134
  image: r
28122
28135
  }) => {
28123
28136
  const i = typeof n == "string" ? /* @__PURE__ */ c.jsx(cr, { children: n }) : n;
28124
- return /* @__PURE__ */ c.jsxs(Hn, { className: H("highlight-section", t), children: [
28137
+ return /* @__PURE__ */ c.jsxs(Hn, { className: V("highlight-section", t), children: [
28125
28138
  r && /* @__PURE__ */ c.jsx(
28126
28139
  "div",
28127
28140
  {
28128
- className: H("highlight-container highlight-image", {
28141
+ className: V("highlight-container highlight-image", {
28129
28142
  [`highlight-image-${e}`]: e === "right"
28130
28143
  }),
28131
28144
  children: /* @__PURE__ */ c.jsx(
@@ -28144,13 +28157,13 @@ const A_ = ({
28144
28157
  /* @__PURE__ */ c.jsx(
28145
28158
  "div",
28146
28159
  {
28147
- className: H("highlight-container highlight-content-wrapper", {
28160
+ className: V("highlight-container highlight-content-wrapper", {
28148
28161
  "no-image": !r
28149
28162
  }),
28150
28163
  children: /* @__PURE__ */ c.jsx(
28151
28164
  "div",
28152
28165
  {
28153
- className: H("highlight-content", {
28166
+ className: V("highlight-content", {
28154
28167
  "highlight-content-right": e === "left"
28155
28168
  }),
28156
28169
  children: r ? i : /* @__PURE__ */ c.jsx("div", { className: "content-default", children: i })
@@ -28166,7 +28179,7 @@ const zk = ({
28166
28179
  title: n,
28167
28180
  text: r,
28168
28181
  gtmContext: i
28169
- }) => !n && !r ? null : /* @__PURE__ */ c.jsxs("aside", { className: H("marketing-block", e), children: [
28182
+ }) => !n && !r ? null : /* @__PURE__ */ c.jsxs("aside", { className: V("marketing-block", e), children: [
28170
28183
  n && /* @__PURE__ */ c.jsx("p", { className: "title", children: n }),
28171
28184
  r && /* @__PURE__ */ c.jsx("p", { children: r }),
28172
28185
  t && /* @__PURE__ */ c.jsx(
@@ -28358,7 +28371,7 @@ const zk = ({
28358
28371
  return /* @__PURE__ */ c.jsx(
28359
28372
  "p",
28360
28373
  {
28361
- className: H("cta-wrapper", {
28374
+ className: V("cta-wrapper", {
28362
28375
  "has-member-section": e == null ? void 0 : e.members
28363
28376
  }),
28364
28377
  children: /* @__PURE__ */ c.jsx(
@@ -28480,7 +28493,7 @@ const vh = ({
28480
28493
  }, (k = v == null ? void 0 : v.current) == null || k.focus(), (O = v == null ? void 0 : v.current) == null || O.scrollIntoView({ behavior: "smooth" })), /* @__PURE__ */ c.jsx(
28481
28494
  "li",
28482
28495
  {
28483
- className: H("card-wrapper text-medium", C, t, {
28496
+ className: V("card-wrapper text-medium", C, t, {
28484
28497
  "has-link": $,
28485
28498
  "no-link": !$,
28486
28499
  "has-image": g.banner
@@ -28566,7 +28579,7 @@ const vh = ({
28566
28579
  }
28567
28580
  );
28568
28581
  };
28569
- const O_ = ({ cards: e, cardTypes: t, className: n = "", ...r }) => /* @__PURE__ */ c.jsx("ul", { className: H("card-block", n), children: e.map((i, a) => {
28582
+ const O_ = ({ cards: e, cardTypes: t, className: n = "", ...r }) => /* @__PURE__ */ c.jsx("ul", { className: V("card-block", n), children: e.map((i, a) => {
28570
28583
  const s = i.slug ? `${i.slug}-${t[a]}` : `${t[a]}-${a}`;
28571
28584
  return /* @__PURE__ */ c.jsx(
28572
28585
  vh,
@@ -28590,7 +28603,7 @@ const O_ = ({ cards: e, cardTypes: t, className: n = "", ...r }) => /* @__PURE__
28590
28603
  return null;
28591
28604
  const { text: r, element: i = "h2", variant: a = "default", size: s = "medium", link: o } = t;
28592
28605
  return ee.createElement(i, {
28593
- className: H("title", a, s, {
28606
+ className: V("title", a, s, {
28594
28607
  "highlighted-title": a === "highlighted"
28595
28608
  }),
28596
28609
  children: /* @__PURE__ */ c.jsxs(c.Fragment, { children: [
@@ -28703,7 +28716,7 @@ const M_ = ({
28703
28716
  "section",
28704
28717
  {
28705
28718
  ref: _,
28706
- className: H("carousel-wrapper", a),
28719
+ className: V("carousel-wrapper", a),
28707
28720
  "data-testid": "carousel",
28708
28721
  children: [
28709
28722
  /* @__PURE__ */ c.jsx(N_, { id: e, title: i }),
@@ -28770,7 +28783,7 @@ const M_ = ({
28770
28783
  children: /* @__PURE__ */ c.jsx(
28771
28784
  "button",
28772
28785
  {
28773
- className: H("page-indicator", {
28786
+ className: V("page-indicator", {
28774
28787
  selected: O === b
28775
28788
  }),
28776
28789
  onClick: (S) => {
@@ -28854,7 +28867,7 @@ const Uk = ({
28854
28867
  "data-gtm-event-context": `${r}-NarrowCard`,
28855
28868
  "data-gtm-event-type": `${r}-click`
28856
28869
  }), ee.createElement(e, {
28857
- className: H("narrow-card", t, {
28870
+ className: V("narrow-card", t, {
28858
28871
  "has-link": l,
28859
28872
  "gtm-trackable": l,
28860
28873
  "no-link": !l
@@ -28864,7 +28877,7 @@ const Uk = ({
28864
28877
  /* @__PURE__ */ c.jsx(
28865
28878
  "div",
28866
28879
  {
28867
- className: H("img", {
28880
+ className: V("img", {
28868
28881
  private: o,
28869
28882
  "no-image": !i
28870
28883
  }),
@@ -28894,7 +28907,7 @@ const Wk = ({
28894
28907
  u > 99 ? u = 100 : u < 1 && (u = 0);
28895
28908
  const { highlightPercentage: d = !1 } = s;
28896
28909
  return ee.createElement(e, {
28897
- className: H("course-progression", o, {
28910
+ className: V("course-progression", o, {
28898
28911
  "highlight-percentage": d,
28899
28912
  "has-circle-graph": a === "circle"
28900
28913
  }),
@@ -28933,7 +28946,7 @@ const R_ = ({
28933
28946
  title: r,
28934
28947
  className: i = ""
28935
28948
  }) => ee.createElement(e, {
28936
- className: H("lesson-name", i),
28949
+ className: V("lesson-name", i),
28937
28950
  "data-number": `${t}.${n}`,
28938
28951
  children: r
28939
28952
  });
@@ -28946,8 +28959,8 @@ const $_ = ({
28946
28959
  children: a
28947
28960
  }) => {
28948
28961
  const s = le(), o = ao(`lessonType_${i}`) ? s.formatMessage({ id: `lessonType_${i}` }) : Kh(i || "");
28949
- return /* @__PURE__ */ c.jsxs("small", { className: H("content-type", { [e]: e !== "default" }), children: [
28950
- /* @__PURE__ */ c.jsx("span", { className: H("type", n), children: o }),
28962
+ return /* @__PURE__ */ c.jsxs("small", { className: V("content-type", { [e]: e !== "default" }), children: [
28963
+ /* @__PURE__ */ c.jsx("span", { className: V("type", n), children: o }),
28951
28964
  " ",
28952
28965
  t > 0 && !r && /* @__PURE__ */ c.jsx(Ko, { time: t }),
28953
28966
  " ",
@@ -29012,7 +29025,7 @@ const Vk = ({
29012
29025
  return x && (L.style = { "--image": `url(${x})` }), /* @__PURE__ */ c.jsx(
29013
29026
  "li",
29014
29027
  {
29015
- className: H({
29028
+ className: V({
29016
29029
  article: b === si.ARTICLE,
29017
29030
  discussion: b === si.DISCUSSION,
29018
29031
  quiz: b === si.QUIZ,
@@ -29077,7 +29090,7 @@ const Hk = ({
29077
29090
  hover: "check-inside-circle_no-overlap_inverted"
29078
29091
  },
29079
29092
  onClick: t,
29080
- className: H("mark-complete-button center gtm-trackable", {
29093
+ className: V("mark-complete-button center gtm-trackable", {
29081
29094
  completed: e
29082
29095
  }),
29083
29096
  "data-gtm-event-type": "mark-as-complete",
@@ -29212,7 +29225,7 @@ const z_ = ({
29212
29225
  g.stopPropagation(), m && (l == null || l.createVote(t), d(!0));
29213
29226
  }, f = {
29214
29227
  htmlFor: t.id,
29215
- className: H({
29228
+ className: V({
29216
29229
  "can-vote": m
29217
29230
  }),
29218
29231
  tabIndex: o && m ? 0 : -1,
@@ -29248,7 +29261,7 @@ const z_ = ({
29248
29261
  {
29249
29262
  "data-testid": "poll-option",
29250
29263
  style: p,
29251
- className: H("poll-option text-small", {
29264
+ className: V("poll-option text-small", {
29252
29265
  selected: t.hasUserVoted
29253
29266
  }),
29254
29267
  children: [
@@ -29400,7 +29413,7 @@ export {
29400
29413
  jm as FlagsProvider,
29401
29414
  hh as Footer,
29402
29415
  mn as Form,
29403
- V as Formatting,
29416
+ H as Formatting,
29404
29417
  zt as Fragment,
29405
29418
  Hn as FullWidthSection,
29406
29419
  ru as GET_STREAM_USER_PREFIX,