@apolitical/component-library 6.0.3-ac.0 → 6.0.3-ac.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 Wc = { exports: {} };
|
|
|
75
75
|
})();
|
|
76
76
|
})(Wc);
|
|
77
77
|
var Oh = Wc.exports;
|
|
78
|
-
const
|
|
78
|
+
const K = /* @__PURE__ */ qn(Oh), Ph = ({
|
|
79
79
|
element: e = "span",
|
|
80
80
|
showOnFocus: t = !0,
|
|
81
81
|
children: n,
|
|
@@ -83,7 +83,7 @@ const V = /* @__PURE__ */ qn(Oh), Ph = ({
|
|
|
83
83
|
...i
|
|
84
84
|
}) => te.createElement(e, {
|
|
85
85
|
...i,
|
|
86
|
-
className:
|
|
86
|
+
className: K("hidden", r, { "show-on-focus": t }),
|
|
87
87
|
children: n
|
|
88
88
|
}), Ue = nn(Ph), Nh = ({
|
|
89
89
|
element: e = "span",
|
|
@@ -932,12 +932,12 @@ const nu = {}, xr = eo(
|
|
|
932
932
|
const $ = {
|
|
933
933
|
className: "content"
|
|
934
934
|
};
|
|
935
|
-
return C ? $.className =
|
|
935
|
+
return C ? $.className = K("content", { hidden: f === "hidden" }) : ($.hidden = f === "hidden", $["aria-live"] = "polite"), /* @__PURE__ */ c.jsx(
|
|
936
936
|
"aside",
|
|
937
937
|
{
|
|
938
938
|
ref: g,
|
|
939
939
|
id: m,
|
|
940
|
-
className:
|
|
940
|
+
className: K("tooltip text-medium", f, a, {
|
|
941
941
|
loading: r,
|
|
942
942
|
"extra-padding": b,
|
|
943
943
|
"has-pointer": w,
|
|
@@ -1717,7 +1717,7 @@ const Ae = ({
|
|
|
1717
1717
|
typeof t == "string" && b.push(t), r && (b.push("icon"), typeof r == "object" ? (b.push(r.icon), r.position ? b.push(r.position) : b.push("left"), r.hover && b.push(`hover_${r.hover}`), r.animate && (b.push("animate"), typeof r.animate == "string" && b.push(r.animate))) : (b.push(r), !r.includes("right") && !r.includes("left") && b.push("left")));
|
|
1718
1718
|
const w = {
|
|
1719
1719
|
...m,
|
|
1720
|
-
className:
|
|
1720
|
+
className: K(e, o, b, {
|
|
1721
1721
|
"no-text": !h,
|
|
1722
1722
|
disabled: l,
|
|
1723
1723
|
button: i,
|
|
@@ -1752,14 +1752,14 @@ const Ae = ({
|
|
|
1752
1752
|
return i === "p" ? /* @__PURE__ */ c.jsx(Ae, { ...s }, o) : /* @__PURE__ */ c.jsx("li", { className: ((l = t[o]) == null ? void 0 : l.className) || "", children: /* @__PURE__ */ c.jsx(Ae, { ...s }) }, o);
|
|
1753
1753
|
});
|
|
1754
1754
|
return te.createElement(i, {
|
|
1755
|
-
className:
|
|
1755
|
+
className: K("button-wrapper", n),
|
|
1756
1756
|
...r,
|
|
1757
1757
|
children: a
|
|
1758
1758
|
});
|
|
1759
1759
|
};
|
|
1760
1760
|
const en = ({ className: e = "", maxWidth: t = !1 }) => {
|
|
1761
1761
|
const n = t ? { "--max-width": `${t / 16}rem` } : {};
|
|
1762
|
-
return /* @__PURE__ */ c.jsx("hr", { className:
|
|
1762
|
+
return /* @__PURE__ */ c.jsx("hr", { className: K(e, { "has-max-width": t }), style: n });
|
|
1763
1763
|
}, au = {
|
|
1764
1764
|
card: {
|
|
1765
1765
|
range: [
|
|
@@ -1971,7 +1971,7 @@ const Z_ = ({ image: e, className: t = "", testId: n }) => /* @__PURE__ */ c.jsx
|
|
|
1971
1971
|
}) => {
|
|
1972
1972
|
if (e) {
|
|
1973
1973
|
const l = { ...o };
|
|
1974
|
-
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:
|
|
1974
|
+
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: K("gtm-trackable", r), ...l, children: t });
|
|
1975
1975
|
}
|
|
1976
1976
|
return n ? te.createElement(n, { children: t, className: r, ...o }) : /* @__PURE__ */ c.jsx(c.Fragment, { children: t });
|
|
1977
1977
|
};
|
|
@@ -1982,7 +1982,7 @@ const sm = eo(
|
|
|
1982
1982
|
"aside",
|
|
1983
1983
|
{
|
|
1984
1984
|
ref: i,
|
|
1985
|
-
className:
|
|
1985
|
+
className: K("popover", e),
|
|
1986
1986
|
"aria-live": "polite",
|
|
1987
1987
|
children: t
|
|
1988
1988
|
}
|
|
@@ -2012,7 +2012,7 @@ const Y_ = ({
|
|
|
2012
2012
|
/* @__PURE__ */ c.jsx(
|
|
2013
2013
|
"div",
|
|
2014
2014
|
{
|
|
2015
|
-
className:
|
|
2015
|
+
className: K("dot", {
|
|
2016
2016
|
active: i === e,
|
|
2017
2017
|
completed: i < e
|
|
2018
2018
|
}),
|
|
@@ -2022,7 +2022,7 @@ const Y_ = ({
|
|
|
2022
2022
|
/* @__PURE__ */ c.jsx(
|
|
2023
2023
|
"div",
|
|
2024
2024
|
{
|
|
2025
|
-
className:
|
|
2025
|
+
className: K("line", {
|
|
2026
2026
|
active: i < e
|
|
2027
2027
|
})
|
|
2028
2028
|
}
|
|
@@ -2052,7 +2052,7 @@ const G_ = ({ elementId: e, offset: t = 20 }) => {
|
|
|
2052
2052
|
}
|
|
2053
2053
|
);
|
|
2054
2054
|
};
|
|
2055
|
-
const Q_ = ({ items: e, className: t = "", ...n }) => /* @__PURE__ */ c.jsx("ul", { className:
|
|
2055
|
+
const Q_ = ({ items: e, className: t = "", ...n }) => /* @__PURE__ */ c.jsx("ul", { className: K("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: [
|
|
2056
2056
|
/* @__PURE__ */ c.jsx("p", { className: "title", children: r }),
|
|
2057
2057
|
/* @__PURE__ */ c.jsx("p", { children: i })
|
|
2058
2058
|
] }) }, o)) }), su = 300, ou = "ease-in-out";
|
|
@@ -2115,7 +2115,7 @@ const so = ({
|
|
|
2115
2115
|
"details",
|
|
2116
2116
|
{
|
|
2117
2117
|
ref: a,
|
|
2118
|
-
className:
|
|
2118
|
+
className: K("collapsible-section", t, {
|
|
2119
2119
|
"should-animate": r
|
|
2120
2120
|
}),
|
|
2121
2121
|
children: [
|
|
@@ -2152,7 +2152,7 @@ const lu = {
|
|
|
2152
2152
|
return !n && !s ? null : /* @__PURE__ */ c.jsx(
|
|
2153
2153
|
"small",
|
|
2154
2154
|
{
|
|
2155
|
-
className:
|
|
2155
|
+
className: K(
|
|
2156
2156
|
"content-type-label text-small",
|
|
2157
2157
|
e in lu ? lu[e] : e,
|
|
2158
2158
|
r,
|
|
@@ -2178,7 +2178,7 @@ const Ht = ({
|
|
|
2178
2178
|
return /* @__PURE__ */ c.jsx(
|
|
2179
2179
|
"div",
|
|
2180
2180
|
{
|
|
2181
|
-
className:
|
|
2181
|
+
className: K("highlighted-text-box", e, r, {
|
|
2182
2182
|
"has-icon": t,
|
|
2183
2183
|
"show-highlight": s,
|
|
2184
2184
|
[o]: o !== "default"
|
|
@@ -2211,7 +2211,7 @@ const Wn = ({
|
|
|
2211
2211
|
Ht,
|
|
2212
2212
|
{
|
|
2213
2213
|
variant: "subtle",
|
|
2214
|
-
className:
|
|
2214
|
+
className: K("empty-state-box", e, r),
|
|
2215
2215
|
children: /* @__PURE__ */ c.jsxs(c.Fragment, { children: [
|
|
2216
2216
|
t && typeof t == "string" ? /* @__PURE__ */ c.jsx(Xt, { options: { forceBlock: !0 }, children: t }) : t,
|
|
2217
2217
|
i && typeof n == "object" && (u || /* @__PURE__ */ c.jsx(
|
|
@@ -2235,7 +2235,7 @@ const dm = ({
|
|
|
2235
2235
|
heading: n = !1,
|
|
2236
2236
|
children: r,
|
|
2237
2237
|
...i
|
|
2238
|
-
}) => /* @__PURE__ */ c.jsxs("div", { ...i, className:
|
|
2238
|
+
}) => /* @__PURE__ */ c.jsxs("div", { ...i, className: K("helper-text-box text-small", e, t), children: [
|
|
2239
2239
|
n && /* @__PURE__ */ c.jsx("p", { className: "title", children: n }),
|
|
2240
2240
|
typeof r == "string" ? /* @__PURE__ */ c.jsx(
|
|
2241
2241
|
Xt,
|
|
@@ -2287,14 +2287,14 @@ const fm = ({
|
|
|
2287
2287
|
Ht,
|
|
2288
2288
|
{
|
|
2289
2289
|
variant: "subtle",
|
|
2290
|
-
className:
|
|
2290
|
+
className: K("hide-show-text-box", t),
|
|
2291
2291
|
children: [
|
|
2292
2292
|
/* @__PURE__ */ c.jsx(
|
|
2293
2293
|
"div",
|
|
2294
2294
|
{
|
|
2295
2295
|
ref: u,
|
|
2296
2296
|
id: e,
|
|
2297
|
-
className:
|
|
2297
|
+
className: K("content", m, s),
|
|
2298
2298
|
children: i ? /* @__PURE__ */ c.jsxs(c.Fragment, { children: [
|
|
2299
2299
|
/* @__PURE__ */ c.jsx(Xt, { options: { forceBlock: !0, ...a }, children: m === "closed" ? d : i }),
|
|
2300
2300
|
m !== "closed" && o
|
|
@@ -2307,7 +2307,7 @@ const fm = ({
|
|
|
2307
2307
|
variant: "tertiary",
|
|
2308
2308
|
icon: { icon: "navigation_arrow", position: "left", animate: !0 },
|
|
2309
2309
|
styling: { muted: !0 },
|
|
2310
|
-
className:
|
|
2310
|
+
className: K({ "rotate-180": f }),
|
|
2311
2311
|
onClick: () => {
|
|
2312
2312
|
p(f ? "ready-to-close" : "opening");
|
|
2313
2313
|
},
|
|
@@ -2330,7 +2330,7 @@ const J_ = ({
|
|
|
2330
2330
|
}) => {
|
|
2331
2331
|
const { hasBorder: s = !1, zebraStriping: o = !1 } = i;
|
|
2332
2332
|
return te.createElement(e, {
|
|
2333
|
-
className:
|
|
2333
|
+
className: K("icon-bulleted-list text-medium", n, a, {
|
|
2334
2334
|
"has-border": s,
|
|
2335
2335
|
"has-zebra-stripes": o,
|
|
2336
2336
|
[t]: e !== "dl"
|
|
@@ -2456,7 +2456,7 @@ const J_ = ({
|
|
|
2456
2456
|
"@",
|
|
2457
2457
|
n.formatMessage({ id: "member_deleted" })
|
|
2458
2458
|
] })) : a ? (r = { ...r, className: "button primary medium" }, /* @__PURE__ */ c.jsx("p", { className: "center", children: /* @__PURE__ */ c.jsx(Ae, { variant: "primary", size: "medium", ...r, children: i }) })) : /* @__PURE__ */ c.jsx("a", { ...r, children: i });
|
|
2459
|
-
}, du = ({ children: e, ...t }) => /* @__PURE__ */ c.jsx("span", { className:
|
|
2459
|
+
}, du = ({ children: e, ...t }) => /* @__PURE__ */ c.jsx("span", { className: K({ url: t == null ? void 0 : t.href }), children: e });
|
|
2460
2460
|
const xm = {
|
|
2461
2461
|
default: {
|
|
2462
2462
|
a: ym,
|
|
@@ -2508,7 +2508,7 @@ const xm = {
|
|
|
2508
2508
|
};
|
|
2509
2509
|
let l = xm[i];
|
|
2510
2510
|
return n.overrides && (l = { ...l, ...n.overrides }), te.createElement(e, {
|
|
2511
|
-
className:
|
|
2511
|
+
className: K("markdown-text", t, {
|
|
2512
2512
|
"highlight-titles": s
|
|
2513
2513
|
}),
|
|
2514
2514
|
children: /* @__PURE__ */ c.jsx(Xt, { options: { ...o, ...n, overrides: l }, children: r })
|
|
@@ -2522,8 +2522,8 @@ const Dm = ({
|
|
|
2522
2522
|
className: i = ""
|
|
2523
2523
|
}) => {
|
|
2524
2524
|
const a = e ? { "--max-width": `${e / 16}rem` } : {};
|
|
2525
|
-
return /* @__PURE__ */ c.jsxs("section", { className:
|
|
2526
|
-
/* @__PURE__ */ c.jsxs("div", { className:
|
|
2525
|
+
return /* @__PURE__ */ c.jsxs("section", { className: K("page-heading", i), children: [
|
|
2526
|
+
/* @__PURE__ */ c.jsxs("div", { className: K("content", { "has-max-width": e }), style: a, children: [
|
|
2527
2527
|
t && t.text && te.createElement(t.element || "h1", { className: "title" }, t.text),
|
|
2528
2528
|
n && n.text && te.createElement(
|
|
2529
2529
|
n.element || "h2",
|
|
@@ -2549,7 +2549,7 @@ const dn = ({
|
|
|
2549
2549
|
}, { showTooltip: u, tooltipProps: d } = Zc(!!i), h = {}, m = i ? `tooltip-${window.btoa(i).substring(9, 15)}` : void 0;
|
|
2550
2550
|
i && m && (h["aria-describedby"] = m, h.role = "button");
|
|
2551
2551
|
const p = te.createElement(i ? "span" : s, {
|
|
2552
|
-
className:
|
|
2552
|
+
className: K("pill", e, t, n, {
|
|
2553
2553
|
"has-icon": r
|
|
2554
2554
|
}),
|
|
2555
2555
|
style: l,
|
|
@@ -2576,7 +2576,7 @@ const Vr = ({
|
|
|
2576
2576
|
e,
|
|
2577
2577
|
{
|
|
2578
2578
|
...r,
|
|
2579
|
-
className:
|
|
2579
|
+
className: K("status-banner text-small", n),
|
|
2580
2580
|
"aria-live": "assertive"
|
|
2581
2581
|
},
|
|
2582
2582
|
t
|
|
@@ -2696,7 +2696,7 @@ const Pm = ({ slug: e }) => {
|
|
|
2696
2696
|
return /* @__PURE__ */ c.jsx(
|
|
2697
2697
|
dn,
|
|
2698
2698
|
{
|
|
2699
|
-
className:
|
|
2699
|
+
className: K("user-badge", a == null ? void 0 : a.toLowerCase()),
|
|
2700
2700
|
icon: i && Om[i],
|
|
2701
2701
|
element: "li",
|
|
2702
2702
|
tooltip: s,
|
|
@@ -2732,7 +2732,7 @@ const Mm = ({
|
|
|
2732
2732
|
return /* @__PURE__ */ c.jsx(
|
|
2733
2733
|
"span",
|
|
2734
2734
|
{
|
|
2735
|
-
className:
|
|
2735
|
+
className: K(`progress-bar section-${u}`, s, r, {
|
|
2736
2736
|
[o]: o !== "default",
|
|
2737
2737
|
[l !== "default" ? l : ""]: l !== "default"
|
|
2738
2738
|
}),
|
|
@@ -2765,7 +2765,7 @@ const ka = "loadingBlock_", Rm = ({
|
|
|
2765
2765
|
return /* @__PURE__ */ c.jsxs(
|
|
2766
2766
|
Ht,
|
|
2767
2767
|
{
|
|
2768
|
-
className:
|
|
2768
|
+
className: K("loading-block", n, {
|
|
2769
2769
|
"has-icon": i && t[i].icon
|
|
2770
2770
|
}),
|
|
2771
2771
|
variant: "subtle",
|
|
@@ -2781,7 +2781,7 @@ const Vt = ({ element: e = "div", className: t = "", ...n }) => /* @__PURE__ */
|
|
|
2781
2781
|
ro,
|
|
2782
2782
|
{
|
|
2783
2783
|
element: e,
|
|
2784
|
-
className:
|
|
2784
|
+
className: K("loading-placeholder", t),
|
|
2785
2785
|
...n
|
|
2786
2786
|
}
|
|
2787
2787
|
);
|
|
@@ -2835,7 +2835,7 @@ const Fs = {
|
|
|
2835
2835
|
"course-navigation": ["button", "button"],
|
|
2836
2836
|
"course-lesson-page": ["breadcrumb", "course-navigation", "text-page"],
|
|
2837
2837
|
"course-lesson-quiz": ["text-page", "quiz-box"]
|
|
2838
|
-
}, ad = (e, t) => e in Fs ? /* @__PURE__ */ c.jsx("div", { className: e, children: Fs[e].map((n, r) => ad(n, r)) }, t) : /* @__PURE__ */ c.jsx(Vt, { className: e }, t), uo = ({ layout: e = "overview-page", ...t }) => /* @__PURE__ */ c.jsx("div", { className:
|
|
2838
|
+
}, ad = (e, t) => e in Fs ? /* @__PURE__ */ c.jsx("div", { className: e, children: Fs[e].map((n, r) => ad(n, r)) }, t) : /* @__PURE__ */ c.jsx(Vt, { className: e }, t), uo = ({ layout: e = "overview-page", ...t }) => /* @__PURE__ */ c.jsx("div", { className: K("loading-state", e), ...t, children: Fs[e].map((n, r) => ad(n, r)) }), sd = (e) => {
|
|
2839
2839
|
const t = e && e.toUpperCase().trim().split(" ");
|
|
2840
2840
|
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) : "";
|
|
2841
2841
|
}, oi = ["#5AB6A3", "#A2D7AF", "#806056", "#3962B3"], Im = (e) => {
|
|
@@ -2872,7 +2872,7 @@ const fu = 256, Hn = ({
|
|
|
2872
2872
|
return t && t !== "" && !l && (t.includes("http") || t.includes("//")) && (m = !0), /* @__PURE__ */ c.jsx(
|
|
2873
2873
|
"figure",
|
|
2874
2874
|
{
|
|
2875
|
-
className:
|
|
2875
|
+
className: K("profile-picture", e, { error: l }),
|
|
2876
2876
|
...o,
|
|
2877
2877
|
children: m ? /* @__PURE__ */ c.jsx(
|
|
2878
2878
|
"img",
|
|
@@ -2949,7 +2949,7 @@ const En = ({
|
|
|
2949
2949
|
const z = Lm(C), $ = r && r.createdAt ? _s(r.createdAt) : !1, F = r && r.createdAt ? Qc(r.createdAt) : "";
|
|
2950
2950
|
return te.createElement(e, {
|
|
2951
2951
|
...d,
|
|
2952
|
-
className:
|
|
2952
|
+
className: K("member text-medium", g, f, l, {
|
|
2953
2953
|
"has-profile-link": E
|
|
2954
2954
|
}),
|
|
2955
2955
|
...p,
|
|
@@ -2977,7 +2977,7 @@ const En = ({
|
|
|
2977
2977
|
/* @__PURE__ */ c.jsxs(
|
|
2978
2978
|
"div",
|
|
2979
2979
|
{
|
|
2980
|
-
className:
|
|
2980
|
+
className: K("name", { "new-line": b }),
|
|
2981
2981
|
"data-testid": "member-name",
|
|
2982
2982
|
children: [
|
|
2983
2983
|
/* @__PURE__ */ c.jsx("span", { children: T }),
|
|
@@ -2985,7 +2985,7 @@ const En = ({
|
|
|
2985
2985
|
r && /* @__PURE__ */ c.jsxs(
|
|
2986
2986
|
"span",
|
|
2987
2987
|
{
|
|
2988
|
-
className:
|
|
2988
|
+
className: K("additional-content", {
|
|
2989
2989
|
"new-line": b
|
|
2990
2990
|
}),
|
|
2991
2991
|
children: [
|
|
@@ -3035,7 +3035,7 @@ const En = ({
|
|
|
3035
3035
|
z && !b && /* @__PURE__ */ c.jsx(
|
|
3036
3036
|
"small",
|
|
3037
3037
|
{
|
|
3038
|
-
className:
|
|
3038
|
+
className: K({ "text-medium": g === "large" }),
|
|
3039
3039
|
"data-testid": "member-details",
|
|
3040
3040
|
children: v ? z : /* @__PURE__ */ c.jsxs(c.Fragment, { children: [
|
|
3041
3041
|
C.role,
|
|
@@ -3104,7 +3104,7 @@ const hu = {
|
|
|
3104
3104
|
const h = ce();
|
|
3105
3105
|
return !n || n.length === 0 ? null : te.createElement(e, {
|
|
3106
3106
|
...d,
|
|
3107
|
-
className:
|
|
3107
|
+
className: K("contributors", u, i, { "has-gap": a }),
|
|
3108
3108
|
children: /* @__PURE__ */ c.jsxs(c.Fragment, { children: [
|
|
3109
3109
|
/* @__PURE__ */ c.jsx("ul", { children: n.map((m, p) => {
|
|
3110
3110
|
let g, f = "";
|
|
@@ -3126,7 +3126,7 @@ const hu = {
|
|
|
3126
3126
|
g = /* @__PURE__ */ c.jsxs(
|
|
3127
3127
|
"small",
|
|
3128
3128
|
{
|
|
3129
|
-
className:
|
|
3129
|
+
className: K({ "large-number": v > 99 }),
|
|
3130
3130
|
children: [
|
|
3131
3131
|
"+",
|
|
3132
3132
|
em(v, 0)
|
|
@@ -3134,14 +3134,14 @@ const hu = {
|
|
|
3134
3134
|
}
|
|
3135
3135
|
), f = "number-left";
|
|
3136
3136
|
}
|
|
3137
|
-
return g ? /* @__PURE__ */ c.jsx("li", { className:
|
|
3137
|
+
return g ? /* @__PURE__ */ c.jsx("li", { className: K("contributor", f), children: g }, p) : null;
|
|
3138
3138
|
}) }),
|
|
3139
3139
|
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]}` }) : cr(n[0].name || "", 20) : l || null })
|
|
3140
3140
|
] })
|
|
3141
3141
|
});
|
|
3142
3142
|
};
|
|
3143
3143
|
const ud = ({ element: e = "section", children: t, className: n, ...r }) => te.createElement(e, {
|
|
3144
|
-
className:
|
|
3144
|
+
className: K("modal", n),
|
|
3145
3145
|
children: typeof t == "string" ? /* @__PURE__ */ c.jsx("p", { children: t }) : t,
|
|
3146
3146
|
...r
|
|
3147
3147
|
});
|
|
@@ -4834,7 +4834,7 @@ const kn = ({
|
|
|
4834
4834
|
{
|
|
4835
4835
|
id: `${e}-overlay`,
|
|
4836
4836
|
ref: E,
|
|
4837
|
-
className:
|
|
4837
|
+
className: K("overlay", {
|
|
4838
4838
|
open: f,
|
|
4839
4839
|
"in-portal": d.includes("in-portal")
|
|
4840
4840
|
}),
|
|
@@ -4843,7 +4843,7 @@ const kn = ({
|
|
|
4843
4843
|
ud,
|
|
4844
4844
|
{
|
|
4845
4845
|
id: e,
|
|
4846
|
-
className:
|
|
4846
|
+
className: K("overlay-modal", d, {
|
|
4847
4847
|
"has-max-width": r
|
|
4848
4848
|
}),
|
|
4849
4849
|
hidden: !f,
|
|
@@ -4922,7 +4922,7 @@ const Ar = "joinCommunityButton", xd = ({
|
|
|
4922
4922
|
await w();
|
|
4923
4923
|
}, 500), h(!d);
|
|
4924
4924
|
},
|
|
4925
|
-
className:
|
|
4925
|
+
className: K("join-community-button", m, {
|
|
4926
4926
|
active: m === "joining"
|
|
4927
4927
|
}),
|
|
4928
4928
|
disabled: u,
|
|
@@ -4943,7 +4943,7 @@ const Oa = "communityDetails_", ek = ({
|
|
|
4943
4943
|
functions: { invite: s, ...o }
|
|
4944
4944
|
}) => {
|
|
4945
4945
|
const l = ce(), { id: u } = Ne(mt), d = u, h = 5, m = i || a.length, p = a.length ? a : Array(h).fill({}), g = `/communities/${r}/members` === window.location.pathname, f = t || n, v = !n && !t;
|
|
4946
|
-
return /* @__PURE__ */ c.jsxs("div", { className:
|
|
4946
|
+
return /* @__PURE__ */ c.jsxs("div", { className: K("community-details", e), children: [
|
|
4947
4947
|
f ? /* @__PURE__ */ c.jsxs("div", { className: "member-details", children: [
|
|
4948
4948
|
/* @__PURE__ */ c.jsxs("div", { className: "top", children: [
|
|
4949
4949
|
/* @__PURE__ */ c.jsxs("h4", { children: [
|
|
@@ -4998,7 +4998,7 @@ const Yi = ({
|
|
|
4998
4998
|
}) => /* @__PURE__ */ c.jsx(
|
|
4999
4999
|
Ae,
|
|
5000
5000
|
{
|
|
5001
|
-
className:
|
|
5001
|
+
className: K("action-button", t),
|
|
5002
5002
|
variant: "tertiary",
|
|
5003
5003
|
icon: e,
|
|
5004
5004
|
...n
|
|
@@ -5136,7 +5136,7 @@ const Kp = ({
|
|
|
5136
5136
|
/* @__PURE__ */ c.jsx(
|
|
5137
5137
|
Yi,
|
|
5138
5138
|
{
|
|
5139
|
-
className:
|
|
5139
|
+
className: K(
|
|
5140
5140
|
"discussion-button text-medium action-button likes-button",
|
|
5141
5141
|
{
|
|
5142
5142
|
"show-spinner": E,
|
|
@@ -7219,7 +7219,7 @@ const Fg = ({
|
|
|
7219
7219
|
functions: {
|
|
7220
7220
|
onClose: t
|
|
7221
7221
|
},
|
|
7222
|
-
className:
|
|
7222
|
+
className: K("profile-modal in-portal", i, {
|
|
7223
7223
|
open: e
|
|
7224
7224
|
}),
|
|
7225
7225
|
maxWidth: 600,
|
|
@@ -7343,7 +7343,7 @@ const Bg = 3e3, Tg = ({
|
|
|
7343
7343
|
/* @__PURE__ */ c.jsx(
|
|
7344
7344
|
xr,
|
|
7345
7345
|
{
|
|
7346
|
-
className:
|
|
7346
|
+
className: K({
|
|
7347
7347
|
copied: i.isCopied
|
|
7348
7348
|
}),
|
|
7349
7349
|
isOpen: i.isOpen,
|
|
@@ -7387,7 +7387,7 @@ const Gn = "discussion_", Sg = ({
|
|
|
7387
7387
|
}), /* @__PURE__ */ c.jsxs(
|
|
7388
7388
|
"ul",
|
|
7389
7389
|
{
|
|
7390
|
-
className:
|
|
7390
|
+
className: K("actions text-medium", e),
|
|
7391
7391
|
"data-testid": `${n}-actions`,
|
|
7392
7392
|
children: [
|
|
7393
7393
|
r ? /* @__PURE__ */ c.jsx(
|
|
@@ -7469,7 +7469,7 @@ const ik = ({ breadcrumbs: e, cutoff: t = 20, className: n = "" }) => {
|
|
|
7469
7469
|
children: r.formatMessage({ id: "breadcrumbs_label" })
|
|
7470
7470
|
}
|
|
7471
7471
|
),
|
|
7472
|
-
/* @__PURE__ */ c.jsx("ul", { className:
|
|
7472
|
+
/* @__PURE__ */ c.jsx("ul", { className: K("breadcrumbs text-small", n), children: e.map(
|
|
7473
7473
|
({ text: i, href: a, current: s = !1 }, o) => {
|
|
7474
7474
|
const l = {};
|
|
7475
7475
|
return s && (l["aria-current"] = "location"), /* @__PURE__ */ c.jsxs("li", { children: [
|
|
@@ -7497,7 +7497,7 @@ const Bd = ({
|
|
|
7497
7497
|
return /* @__PURE__ */ c.jsxs(
|
|
7498
7498
|
"aside",
|
|
7499
7499
|
{
|
|
7500
|
-
className:
|
|
7500
|
+
className: K("enriched-url gtm-trackable", {
|
|
7501
7501
|
"has-image": t,
|
|
7502
7502
|
[e]: e !== "default"
|
|
7503
7503
|
}),
|
|
@@ -7551,7 +7551,7 @@ const jg = ({
|
|
|
7551
7551
|
let g = [];
|
|
7552
7552
|
u.includes(m) && !a ? g = u.filter((f) => f !== m) : m === "all" ? g = ["all"] : r ? g = [...u.filter((f) => f !== "all"), m] : g = [m], d((f) => (i && typeof i == "function" && i({ current: g, previous: f }), g)), p && typeof p == "function" && p();
|
|
7553
7553
|
};
|
|
7554
|
-
return /* @__PURE__ */ c.jsx("ul", { className:
|
|
7554
|
+
return /* @__PURE__ */ c.jsx("ul", { className: K("filters", s), children: l.map(({ id: m, text: p, disabled: g = !1, callback: f = () => {
|
|
7555
7555
|
} }) => {
|
|
7556
7556
|
let v = {};
|
|
7557
7557
|
return g && (v = {
|
|
@@ -7560,7 +7560,7 @@ const jg = ({
|
|
|
7560
7560
|
}), /* @__PURE__ */ c.jsx("li", { children: /* @__PURE__ */ c.jsx(
|
|
7561
7561
|
"button",
|
|
7562
7562
|
{
|
|
7563
|
-
className:
|
|
7563
|
+
className: K(m, {
|
|
7564
7564
|
selected: u.includes(m)
|
|
7565
7565
|
}),
|
|
7566
7566
|
onClick: (b) => {
|
|
@@ -7604,7 +7604,7 @@ const fi = "languageSwitcher_", ak = ({
|
|
|
7604
7604
|
))
|
|
7605
7605
|
return null;
|
|
7606
7606
|
const g = Object.keys(r), f = h !== e;
|
|
7607
|
-
return /* @__PURE__ */ c.jsxs("div", { className:
|
|
7607
|
+
return /* @__PURE__ */ c.jsxs("div", { className: K("language-switcher text-small", s, l), children: [
|
|
7608
7608
|
/* @__PURE__ */ c.jsxs("nav", { children: [
|
|
7609
7609
|
s !== "short" && /* @__PURE__ */ c.jsx("p", { children: o || u.formatMessage({ id: `${fi}label` }) }),
|
|
7610
7610
|
/* @__PURE__ */ c.jsx("ul", { children: g.map((v) => {
|
|
@@ -7679,7 +7679,7 @@ const Ra = Eh({ locale: "en", messages: Dr }), fa = ({
|
|
|
7679
7679
|
g instanceof Error ? h(g.message) : h("Unknown error");
|
|
7680
7680
|
}
|
|
7681
7681
|
};
|
|
7682
|
-
return !d && !e && !o.endOfFeed ? null : /* @__PURE__ */ c.jsx("footer", { className:
|
|
7682
|
+
return !d && !e && !o.endOfFeed ? null : /* @__PURE__ */ c.jsx("footer", { className: K("load-more", l), children: !d && e ? /* @__PURE__ */ c.jsx(
|
|
7683
7683
|
Ae,
|
|
7684
7684
|
{
|
|
7685
7685
|
variant: r,
|
|
@@ -7705,7 +7705,7 @@ const Td = ({
|
|
|
7705
7705
|
"a",
|
|
7706
7706
|
{
|
|
7707
7707
|
href: "/home/",
|
|
7708
|
-
className:
|
|
7708
|
+
className: K("logo", e, t, n),
|
|
7709
7709
|
...r,
|
|
7710
7710
|
children: /* @__PURE__ */ c.jsx(Ue, { children: /* @__PURE__ */ c.jsx(ht, { id: "apolitical" }) })
|
|
7711
7711
|
}
|
|
@@ -7726,7 +7726,7 @@ const Pg = ({
|
|
|
7726
7726
|
document.removeEventListener("click", l, !0);
|
|
7727
7727
|
})), te.createElement(e, {
|
|
7728
7728
|
ref: a,
|
|
7729
|
-
className:
|
|
7729
|
+
className: K("more-menu text-medium", r),
|
|
7730
7730
|
children: /* @__PURE__ */ c.jsxs(c.Fragment, { children: [
|
|
7731
7731
|
/* @__PURE__ */ c.jsx(
|
|
7732
7732
|
Ae,
|
|
@@ -7798,7 +7798,7 @@ const Mg = vr(() => Promise.resolve().then(() => Um)), Rg = [
|
|
|
7798
7798
|
return /* @__PURE__ */ c.jsxs("ul", { id: "navigation-menu", className: "text-medium", children: [
|
|
7799
7799
|
Rg.map(({ key: a, href: s }) => {
|
|
7800
7800
|
const o = Ng(s, e), l = {};
|
|
7801
|
-
return o && (l["aria-current"] = "page"), /* @__PURE__ */ c.jsx("li", { className:
|
|
7801
|
+
return o && (l["aria-current"] = "page"), /* @__PURE__ */ c.jsx("li", { className: K(a, { active: o }), children: /* @__PURE__ */ c.jsx(
|
|
7802
7802
|
"a",
|
|
7803
7803
|
{
|
|
7804
7804
|
href: s,
|
|
@@ -7878,7 +7878,7 @@ const Lg = "shareLinks_", sk = ({
|
|
|
7878
7878
|
className: s = ""
|
|
7879
7879
|
}) => {
|
|
7880
7880
|
const o = ce(), l = Ig({ title: e, link: t, referrer: n });
|
|
7881
|
-
return /* @__PURE__ */ c.jsxs("aside", { className:
|
|
7881
|
+
return /* @__PURE__ */ c.jsxs("aside", { className: K("share-links", i, a, s), children: [
|
|
7882
7882
|
/* @__PURE__ */ c.jsx("p", { className: "text-small", children: o.formatMessage({ id: "shareLinks_label" }) }),
|
|
7883
7883
|
/* @__PURE__ */ c.jsx("ul", { children: l.map(({ key: u, icon: d, url: h, shouldRender: m = !0, onClick: p }) => {
|
|
7884
7884
|
if (typeof m == "function" && !m())
|
|
@@ -7976,7 +7976,7 @@ const ok = ({ tabs: e, className: t = "", preventLocationChange: n }) => {
|
|
|
7976
7976
|
href: w || `#${f}`,
|
|
7977
7977
|
id: `tab-${f}`,
|
|
7978
7978
|
"aria-controls": f,
|
|
7979
|
-
className:
|
|
7979
|
+
className: K({ selected: C }),
|
|
7980
7980
|
role: "tab",
|
|
7981
7981
|
tabIndex: C ? 0 : -1,
|
|
7982
7982
|
"aria-selected": C,
|
|
@@ -7987,7 +7987,7 @@ const ok = ({ tabs: e, className: t = "", preventLocationChange: n }) => {
|
|
|
7987
7987
|
) }, `tab-${f}`)
|
|
7988
7988
|
);
|
|
7989
7989
|
}
|
|
7990
|
-
), /* @__PURE__ */ c.jsxs("div", { className:
|
|
7990
|
+
), /* @__PURE__ */ c.jsxs("div", { className: K("tabs-wrapper", t), children: [
|
|
7991
7991
|
/* @__PURE__ */ c.jsx("ul", { className: "tabs", role: "tablist", children: m }),
|
|
7992
7992
|
/* @__PURE__ */ c.jsx("div", { className: "tab-content", children: p })
|
|
7993
7993
|
] });
|
|
@@ -8008,7 +8008,7 @@ const zg = {
|
|
|
8008
8008
|
return te.Children.count(i) === 1 && (s = te.Children.toArray(i)[0], s.props && (s = s.props.children)), /* @__PURE__ */ c.jsx(
|
|
8009
8009
|
"section",
|
|
8010
8010
|
{
|
|
8011
|
-
className:
|
|
8011
|
+
className: K("columns", `layout-${e}`, r, {
|
|
8012
8012
|
"has-containers": n
|
|
8013
8013
|
}),
|
|
8014
8014
|
children: te.Children.map(s, (o, l) => t !== !1 && l === t && a && a < zg[e] ? null : o)
|
|
@@ -8030,7 +8030,7 @@ const Sd = ({
|
|
|
8030
8030
|
"small",
|
|
8031
8031
|
{
|
|
8032
8032
|
id: e,
|
|
8033
|
-
className:
|
|
8033
|
+
className: K("character-limit", {
|
|
8034
8034
|
"near-limit": l,
|
|
8035
8035
|
"approaching-limit": u
|
|
8036
8036
|
}),
|
|
@@ -8226,7 +8226,7 @@ const mi = "emailHelperTextBox_", Wg = ({
|
|
|
8226
8226
|
type: o,
|
|
8227
8227
|
id: n,
|
|
8228
8228
|
name: a,
|
|
8229
|
-
className:
|
|
8229
|
+
className: K(e, t, {
|
|
8230
8230
|
"has-scrollbar": o === "textarea" && m.current && m.current.clientHeight < m.current.scrollHeight
|
|
8231
8231
|
}),
|
|
8232
8232
|
value: l,
|
|
@@ -8353,7 +8353,7 @@ const Qn = {
|
|
|
8353
8353
|
...C,
|
|
8354
8354
|
activePredictionIndex: D
|
|
8355
8355
|
})),
|
|
8356
|
-
className:
|
|
8356
|
+
className: K("predictions-list-item", {
|
|
8357
8357
|
active: D === p
|
|
8358
8358
|
}),
|
|
8359
8359
|
children: A.description
|
|
@@ -8439,7 +8439,7 @@ const jd = ({
|
|
|
8439
8439
|
break;
|
|
8440
8440
|
}
|
|
8441
8441
|
} : void 0,
|
|
8442
|
-
className:
|
|
8442
|
+
className: K(i, "checkbox-wrapper", e, {
|
|
8443
8443
|
"is-checked": d
|
|
8444
8444
|
}),
|
|
8445
8445
|
...m,
|
|
@@ -8454,7 +8454,7 @@ const Kg = nn(function({
|
|
|
8454
8454
|
return /* @__PURE__ */ c.jsx(
|
|
8455
8455
|
ro,
|
|
8456
8456
|
{
|
|
8457
|
-
className:
|
|
8457
|
+
className: K("rotating-chevron", `direction-${t}`)
|
|
8458
8458
|
}
|
|
8459
8459
|
);
|
|
8460
8460
|
});
|
|
@@ -8490,7 +8490,7 @@ const Zg = ({
|
|
|
8490
8490
|
} else
|
|
8491
8491
|
v([]), w && w([]);
|
|
8492
8492
|
};
|
|
8493
|
-
return /* @__PURE__ */ c.jsxs("div", { className:
|
|
8493
|
+
return /* @__PURE__ */ c.jsxs("div", { className: K("dropdown-wrapper", e), children: [
|
|
8494
8494
|
/* @__PURE__ */ c.jsxs(
|
|
8495
8495
|
"button",
|
|
8496
8496
|
{
|
|
@@ -8575,7 +8575,7 @@ const Zg = ({
|
|
|
8575
8575
|
return /* @__PURE__ */ c.jsx("li", { "data-testid": "dropdown-options", children: /* @__PURE__ */ c.jsxs(
|
|
8576
8576
|
"button",
|
|
8577
8577
|
{
|
|
8578
|
-
className:
|
|
8578
|
+
className: K("gtm-trackable", {
|
|
8579
8579
|
selected: L,
|
|
8580
8580
|
"selected-single": L && !o
|
|
8581
8581
|
}),
|
|
@@ -8589,7 +8589,7 @@ const Zg = ({
|
|
|
8589
8589
|
"data-testid": L ? "current-selection" : "",
|
|
8590
8590
|
children: [
|
|
8591
8591
|
o && /* @__PURE__ */ c.jsx("span", { className: "pretty-checkbox", "data-testid": "pretty-checkbox" }),
|
|
8592
|
-
/* @__PURE__ */ c.jsx("span", { className:
|
|
8592
|
+
/* @__PURE__ */ c.jsx("span", { className: K({ "menu-option-label": o }), children: T.label })
|
|
8593
8593
|
]
|
|
8594
8594
|
}
|
|
8595
8595
|
) }, T.id);
|
|
@@ -8638,7 +8638,7 @@ const Nu = ({
|
|
|
8638
8638
|
"ul",
|
|
8639
8639
|
{
|
|
8640
8640
|
...m,
|
|
8641
|
-
className:
|
|
8641
|
+
className: K("options-wrapper", e),
|
|
8642
8642
|
"data-testid": `ul-${r}`,
|
|
8643
8643
|
children: o == null ? void 0 : o.map(
|
|
8644
8644
|
({
|
|
@@ -8700,7 +8700,7 @@ const Yg = ({
|
|
|
8700
8700
|
"button",
|
|
8701
8701
|
{
|
|
8702
8702
|
type: "button",
|
|
8703
|
-
className:
|
|
8703
|
+
className: K("show-password gtm-trackable", {
|
|
8704
8704
|
"password-visible": l
|
|
8705
8705
|
}),
|
|
8706
8706
|
"data-gtm-event-context": n,
|
|
@@ -8794,7 +8794,7 @@ const Jn = {
|
|
|
8794
8794
|
{
|
|
8795
8795
|
...D,
|
|
8796
8796
|
label: T,
|
|
8797
|
-
className:
|
|
8797
|
+
className: K("field-wrapper", n)
|
|
8798
8798
|
}
|
|
8799
8799
|
),
|
|
8800
8800
|
/* @__PURE__ */ c.jsx(L, { as: "p" })
|
|
@@ -8808,7 +8808,7 @@ const Jn = {
|
|
|
8808
8808
|
});
|
|
8809
8809
|
return /* @__PURE__ */ c.jsx(c.Fragment, { children: te.createElement(
|
|
8810
8810
|
v ? "fieldset" : "div",
|
|
8811
|
-
{ className:
|
|
8811
|
+
{ className: K("field-wrapper text-medium", n) },
|
|
8812
8812
|
/* @__PURE__ */ c.jsxs(c.Fragment, { children: [
|
|
8813
8813
|
te.createElement(
|
|
8814
8814
|
v ? te.Fragment : "p",
|
|
@@ -9075,7 +9075,7 @@ const pn = ({
|
|
|
9075
9075
|
{
|
|
9076
9076
|
...f,
|
|
9077
9077
|
icon: q ? { icon: "tick", position: "left" } : !1,
|
|
9078
|
-
className:
|
|
9078
|
+
className: K("gtm-trackable", f.className),
|
|
9079
9079
|
onClick: re,
|
|
9080
9080
|
disabled: O || q || s.disabled,
|
|
9081
9081
|
"data-gtm-event-context": d.context,
|
|
@@ -9085,7 +9085,7 @@ const pn = ({
|
|
|
9085
9085
|
];
|
|
9086
9086
|
return b && _.unshift({
|
|
9087
9087
|
...o,
|
|
9088
|
-
className:
|
|
9088
|
+
className: K("gtm-trackable", o.className),
|
|
9089
9089
|
"data-gtm-event-context": d.context,
|
|
9090
9090
|
"data-gtm-event-type": d.event,
|
|
9091
9091
|
disabled: O || q,
|
|
@@ -9097,7 +9097,7 @@ const pn = ({
|
|
|
9097
9097
|
{
|
|
9098
9098
|
...m,
|
|
9099
9099
|
id: r,
|
|
9100
|
-
className:
|
|
9100
|
+
className: K("form", n),
|
|
9101
9101
|
ref: ne
|
|
9102
9102
|
},
|
|
9103
9103
|
/* @__PURE__ */ c.jsxs(c.Fragment, { children: [
|
|
@@ -9143,7 +9143,7 @@ const pn = ({
|
|
|
9143
9143
|
g ? null : (O || q) && p ? p : /* @__PURE__ */ c.jsx(
|
|
9144
9144
|
ti,
|
|
9145
9145
|
{
|
|
9146
|
-
className:
|
|
9146
|
+
className: K("cta", {
|
|
9147
9147
|
center: O || q,
|
|
9148
9148
|
submitted: q
|
|
9149
9149
|
}),
|
|
@@ -9168,13 +9168,13 @@ const pi = "passwordRules_", Od = "isMoreThanEightCharacters", Pd = "includesNum
|
|
|
9168
9168
|
className: t = ""
|
|
9169
9169
|
}) => {
|
|
9170
9170
|
const n = ce();
|
|
9171
|
-
return /* @__PURE__ */ c.jsxs("aside", { className:
|
|
9171
|
+
return /* @__PURE__ */ c.jsxs("aside", { className: K("password-rules", t), children: [
|
|
9172
9172
|
/* @__PURE__ */ c.jsx("small", { children: n.formatMessage({ id: `${pi}intro` }) }),
|
|
9173
9173
|
/* @__PURE__ */ c.jsx("ul", { children: [Od, Pd, Nd].map(
|
|
9174
9174
|
(r) => /* @__PURE__ */ c.jsxs(
|
|
9175
9175
|
"li",
|
|
9176
9176
|
{
|
|
9177
|
-
className:
|
|
9177
|
+
className: K({ matches: e[r] }),
|
|
9178
9178
|
children: [
|
|
9179
9179
|
/* @__PURE__ */ c.jsxs(Ue, { children: [
|
|
9180
9180
|
n.formatMessage({ id: `${pi}rule_label` }),
|
|
@@ -9243,14 +9243,14 @@ const uk = ({
|
|
|
9243
9243
|
u((w) => ({ ...w, disabled: !1 }));
|
|
9244
9244
|
}
|
|
9245
9245
|
};
|
|
9246
|
-
return /* @__PURE__ */ c.jsxs("div", { className:
|
|
9246
|
+
return /* @__PURE__ */ c.jsxs("div", { className: K("rating", a), children: [
|
|
9247
9247
|
/* @__PURE__ */ c.jsx("span", { className: "label", children: f[m ? "success" : "text"] }),
|
|
9248
9248
|
/* @__PURE__ */ c.jsx("ol", { children: Array.from(new Array(t).keys()).map((b) => {
|
|
9249
9249
|
const w = b + 1;
|
|
9250
9250
|
return /* @__PURE__ */ c.jsx(
|
|
9251
9251
|
"li",
|
|
9252
9252
|
{
|
|
9253
|
-
className:
|
|
9253
|
+
className: K({ selected: m && w <= m }),
|
|
9254
9254
|
children: /* @__PURE__ */ c.jsx(
|
|
9255
9255
|
Ae,
|
|
9256
9256
|
{
|
|
@@ -9302,7 +9302,7 @@ const uk = ({
|
|
|
9302
9302
|
console.error(e);
|
|
9303
9303
|
}
|
|
9304
9304
|
}, rn = At(tv);
|
|
9305
|
-
var
|
|
9305
|
+
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 || {}), ln = /* @__PURE__ */ ((e) => (e.delete = "delete_mark", e.emphasis = "emphasis_mark", e.code = "inline_code_mark", e.strong = "strong_mark", e))(ln || {});
|
|
9306
9306
|
const nv = ({
|
|
9307
9307
|
attributes: e,
|
|
9308
9308
|
children: t,
|
|
@@ -9310,13 +9310,13 @@ const nv = ({
|
|
|
9310
9310
|
}) => {
|
|
9311
9311
|
const r = n;
|
|
9312
9312
|
switch (r.type) {
|
|
9313
|
-
case
|
|
9313
|
+
case V.blockquote:
|
|
9314
9314
|
return /* @__PURE__ */ c.jsx("blockquote", { className: "subtle", ...e, children: t });
|
|
9315
|
-
case
|
|
9315
|
+
case V.link:
|
|
9316
9316
|
return /* @__PURE__ */ c.jsx("a", { ...e, children: t });
|
|
9317
|
-
case
|
|
9317
|
+
case V.li:
|
|
9318
9318
|
return /* @__PURE__ */ c.jsx("li", { ...e, children: t });
|
|
9319
|
-
case
|
|
9319
|
+
case V.mention:
|
|
9320
9320
|
const i = r;
|
|
9321
9321
|
return i != null && i.name && i.name === Li ? /* @__PURE__ */ c.jsxs("span", { ...e, className: "mention deleted-user", children: [
|
|
9322
9322
|
"@",
|
|
@@ -9327,20 +9327,20 @@ const nv = ({
|
|
|
9327
9327
|
(i == null ? void 0 : i.name) || "",
|
|
9328
9328
|
t
|
|
9329
9329
|
] });
|
|
9330
|
-
case
|
|
9330
|
+
case V.ol:
|
|
9331
9331
|
return /* @__PURE__ */ c.jsx("ol", { ...e, children: t });
|
|
9332
|
-
case
|
|
9332
|
+
case V.ul:
|
|
9333
9333
|
return /* @__PURE__ */ c.jsx("ul", { ...e, children: t });
|
|
9334
|
-
case
|
|
9334
|
+
case V.span:
|
|
9335
9335
|
return /* @__PURE__ */ c.jsx("span", { ...e, children: t });
|
|
9336
|
-
case
|
|
9336
|
+
case V.paragraph:
|
|
9337
9337
|
return /* @__PURE__ */ c.jsx("p", { ...e, children: t });
|
|
9338
9338
|
default:
|
|
9339
9339
|
return /* @__PURE__ */ c.jsx("span", { ...e, children: t });
|
|
9340
9340
|
}
|
|
9341
9341
|
}, rv = ({ attributes: e, children: t, leaf: n }) => {
|
|
9342
9342
|
const r = n;
|
|
9343
|
-
return r[
|
|
9343
|
+
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 });
|
|
9344
9344
|
};
|
|
9345
9345
|
var iv = ov, Md = "֑-߿יִ-﷽ﹰ-ﻼ", Rd = "A-Za-zÀ-ÖØ-öø-ʸ̀-ࠀ-Ⰰ-︀--", av = new RegExp("^[^" + Rd + "]*[" + Md + "]"), sv = new RegExp("^[^" + Md + "]*[" + Rd + "]");
|
|
9346
9346
|
function ov(e) {
|
|
@@ -17098,7 +17098,7 @@ const Hs = "MENTION: ", Af = {
|
|
|
17098
17098
|
}
|
|
17099
17099
|
const [i] = y.nodes(e, {
|
|
17100
17100
|
at: r,
|
|
17101
|
-
match: (a) => a.type ===
|
|
17101
|
+
match: (a) => a.type === V.link
|
|
17102
17102
|
});
|
|
17103
17103
|
if (i) {
|
|
17104
17104
|
const a = i[0], s = ao(a.link), o = a.children[0], l = (o == null ? void 0 : o.text) || "";
|
|
@@ -17107,17 +17107,17 @@ const Hs = "MENTION: ", Af = {
|
|
|
17107
17107
|
n(null);
|
|
17108
17108
|
}, [e, e.selection]), t;
|
|
17109
17109
|
};
|
|
17110
|
-
var yt = /* @__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))(yt || {});
|
|
17110
|
+
var yt = /* @__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))(yt || {});
|
|
17111
17111
|
const ar = {
|
|
17112
|
-
[
|
|
17113
|
-
[
|
|
17114
|
-
[
|
|
17115
|
-
[
|
|
17116
|
-
[
|
|
17117
|
-
[
|
|
17118
|
-
[
|
|
17119
|
-
[
|
|
17120
|
-
[
|
|
17112
|
+
[V.paragraph]: V.paragraph,
|
|
17113
|
+
[V.blockquote]: V.blockquote,
|
|
17114
|
+
[V.codeblock]: V.codeblock,
|
|
17115
|
+
[V.link]: V.link,
|
|
17116
|
+
[V.ul]: V.ul,
|
|
17117
|
+
[V.ol]: V.ol,
|
|
17118
|
+
[V.li]: V.li,
|
|
17119
|
+
[V.mention]: V.mention,
|
|
17120
|
+
[V.heading]: {
|
|
17121
17121
|
1: "heading_one",
|
|
17122
17122
|
2: "heading_two",
|
|
17123
17123
|
3: "heading_three",
|
|
@@ -17125,12 +17125,13 @@ const ar = {
|
|
|
17125
17125
|
5: "heading_five",
|
|
17126
17126
|
6: "heading_six"
|
|
17127
17127
|
},
|
|
17128
|
-
[ln.emphasis]:
|
|
17129
|
-
[ln.strong]:
|
|
17130
|
-
[ln.delete]:
|
|
17131
|
-
[ln.code]:
|
|
17132
|
-
[
|
|
17133
|
-
[
|
|
17128
|
+
[ln.emphasis]: V.italic,
|
|
17129
|
+
[ln.strong]: V.bold,
|
|
17130
|
+
[ln.delete]: V.strikethrough,
|
|
17131
|
+
[ln.code]: V.code,
|
|
17132
|
+
[V.hr]: V.hr,
|
|
17133
|
+
[V.image]: V.image,
|
|
17134
|
+
[V.h3]: V.h3
|
|
17134
17135
|
};
|
|
17135
17136
|
function nc(e) {
|
|
17136
17137
|
if (e)
|
|
@@ -21295,9 +21296,9 @@ function Wf(e, t) {
|
|
|
21295
21296
|
const n = {
|
|
21296
21297
|
...ar,
|
|
21297
21298
|
...t == null ? void 0 : t.nodeTypes,
|
|
21298
|
-
[
|
|
21299
|
-
...ar[
|
|
21300
|
-
...(l = t == null ? void 0 : t.nodeTypes) == null ? void 0 : l[
|
|
21299
|
+
[V.heading]: {
|
|
21300
|
+
...ar[V.heading],
|
|
21301
|
+
...(l = t == null ? void 0 : t.nodeTypes) == null ? void 0 : l[V.heading]
|
|
21301
21302
|
}
|
|
21302
21303
|
}, r = (t == null ? void 0 : t.linkDestinationKey) ?? "link", i = (t == null ? void 0 : t.imageSourceKey) ?? "link", a = (t == null ? void 0 : t.imageCaptionKey) ?? "caption";
|
|
21303
21304
|
let s = [{ text: "" }];
|
|
@@ -21313,45 +21314,49 @@ function Wf(e, t) {
|
|
|
21313
21314
|
)), e.type) {
|
|
21314
21315
|
case yt.heading:
|
|
21315
21316
|
return {
|
|
21316
|
-
type: n[
|
|
21317
|
-
children
|
|
21317
|
+
type: n[V.heading][e.depth || 1],
|
|
21318
|
+
// we need to flag the type of heading in the children to ensure it renders as the correct heading type
|
|
21319
|
+
children: s.map((h) => ({
|
|
21320
|
+
...h,
|
|
21321
|
+
[n[V.heading][e.depth || 1]]: !0
|
|
21322
|
+
}))
|
|
21318
21323
|
};
|
|
21319
21324
|
case yt.list:
|
|
21320
21325
|
return {
|
|
21321
|
-
type: e.ordered ? n[
|
|
21326
|
+
type: e.ordered ? n[V.ol] : n[V.ul],
|
|
21322
21327
|
children: s
|
|
21323
21328
|
};
|
|
21324
21329
|
case yt.listItem:
|
|
21325
|
-
return { type: n[
|
|
21330
|
+
return { type: n[V.li], children: s };
|
|
21326
21331
|
case yt.paragraph:
|
|
21327
|
-
return { type: n[
|
|
21332
|
+
return { type: n[V.paragraph], children: s };
|
|
21328
21333
|
case yt.link:
|
|
21329
21334
|
return {
|
|
21330
|
-
type: n[
|
|
21335
|
+
type: n[V.link],
|
|
21331
21336
|
[r]: e.url,
|
|
21332
21337
|
children: s
|
|
21333
21338
|
};
|
|
21334
21339
|
case yt.image:
|
|
21335
21340
|
return {
|
|
21336
|
-
type: n[
|
|
21341
|
+
type: n[V.image],
|
|
21337
21342
|
children: [{ text: "" }],
|
|
21338
21343
|
[i]: e.url,
|
|
21339
21344
|
[a]: e.alt
|
|
21340
21345
|
};
|
|
21341
21346
|
case yt.blockquote:
|
|
21342
|
-
return { type: n[
|
|
21347
|
+
return { type: n[V.blockquote], children: s };
|
|
21343
21348
|
case yt.code:
|
|
21344
21349
|
return {
|
|
21345
|
-
type: n[
|
|
21350
|
+
type: n[V.codeblock],
|
|
21346
21351
|
language: e.lang,
|
|
21347
21352
|
children: [{ text: e.value }]
|
|
21348
21353
|
};
|
|
21349
21354
|
case yt.html:
|
|
21350
21355
|
return (u = e.value) != null && u.includes("<br>") ? {
|
|
21351
21356
|
break: !0,
|
|
21352
|
-
type: n[
|
|
21357
|
+
type: n[V.paragraph],
|
|
21353
21358
|
children: [{ text: ((d = e.value) == null ? void 0 : d.replace(/<br>/g, "")) || "" }]
|
|
21354
|
-
} : { type:
|
|
21359
|
+
} : { type: V.paragraph, children: [{ text: e.value || "" }] };
|
|
21355
21360
|
case yt.emphasis:
|
|
21356
21361
|
return {
|
|
21357
21362
|
[n[ln.emphasis]]: !0,
|
|
@@ -21378,7 +21383,7 @@ function Wf(e, t) {
|
|
|
21378
21383
|
};
|
|
21379
21384
|
case yt.thematicBreak:
|
|
21380
21385
|
return {
|
|
21381
|
-
type: n[
|
|
21386
|
+
type: n[V.hr],
|
|
21382
21387
|
children: [{ text: "" }]
|
|
21383
21388
|
};
|
|
21384
21389
|
case "text":
|
|
@@ -21402,20 +21407,20 @@ const bC = function(t) {
|
|
|
21402
21407
|
uD().use(vC).use(bC).process(e).then((n) => {
|
|
21403
21408
|
const r = Pn(n.result), i = (s) => {
|
|
21404
21409
|
const o = s;
|
|
21405
|
-
[
|
|
21410
|
+
[V.li, V.blockquote].includes(o.type) && o.children.map((l, u) => {
|
|
21406
21411
|
const d = l;
|
|
21407
|
-
d.type ===
|
|
21412
|
+
d.type === V.paragraph && o.children.splice(u, 1, ...d.children);
|
|
21408
21413
|
}), "children" in s && s.children && s.children.forEach((l) => i(l));
|
|
21409
21414
|
};
|
|
21410
21415
|
r.forEach(i);
|
|
21411
21416
|
const a = (s) => {
|
|
21412
21417
|
for (let o = 0; o < s.length; o++) {
|
|
21413
21418
|
const l = s[o], u = l;
|
|
21414
|
-
if (u.type ===
|
|
21419
|
+
if (u.type === V.link) {
|
|
21415
21420
|
const d = u.children && u.children[0];
|
|
21416
21421
|
if (d && "text" in d && d.text.includes(Hs)) {
|
|
21417
21422
|
const h = u, m = d.text.replace(Hs, ""), p = "link" in h && h.link ? h.link : "";
|
|
21418
|
-
h.type =
|
|
21423
|
+
h.type = V.mention, h.id = p, h.name = m, h.children = [{ text: "" }], s[o + 1] || s.splice(o + 1, 0, { text: " " }), o++;
|
|
21419
21424
|
}
|
|
21420
21425
|
}
|
|
21421
21426
|
"children" in l && l.children && a(l.children);
|
|
@@ -21428,7 +21433,7 @@ const bC = function(t) {
|
|
|
21428
21433
|
u && u.map((d) => {
|
|
21429
21434
|
const h = d.replace(/~~/g, ""), m = o.text.indexOf(d), p = o.text.substring(0, m), g = o.text.substring(m + d.length), f = [
|
|
21430
21435
|
{ text: p },
|
|
21431
|
-
{ text: h, [
|
|
21436
|
+
{ text: h, [V.strikethrough]: !0 },
|
|
21432
21437
|
{ text: g }
|
|
21433
21438
|
];
|
|
21434
21439
|
s.children.splice(l, 1, ...f);
|
|
@@ -21464,24 +21469,24 @@ const bC = function(t) {
|
|
|
21464
21469
|
}, wC = (e) => {
|
|
21465
21470
|
for (const [t] of ue.descendants(e)) {
|
|
21466
21471
|
const n = t;
|
|
21467
|
-
if (n.type ===
|
|
21472
|
+
if (n.type === V.link)
|
|
21468
21473
|
return n.link;
|
|
21469
21474
|
}
|
|
21470
21475
|
return null;
|
|
21471
21476
|
}, Fc = {
|
|
21472
|
-
"mod+b":
|
|
21473
|
-
"mod+i":
|
|
21474
|
-
"mod+shift+x":
|
|
21475
|
-
"mod+k":
|
|
21476
|
-
"mod+shift+7":
|
|
21477
|
-
"mod+shift+8":
|
|
21478
|
-
"mod+shift+9":
|
|
21477
|
+
"mod+b": V.bold,
|
|
21478
|
+
"mod+i": V.italic,
|
|
21479
|
+
"mod+shift+x": V.strikethrough,
|
|
21480
|
+
"mod+k": V.link,
|
|
21481
|
+
"mod+shift+7": V.ol,
|
|
21482
|
+
"mod+shift+8": V.ul,
|
|
21483
|
+
"mod+shift+9": V.blockquote
|
|
21479
21484
|
}, CC = (e, t, n, r) => {
|
|
21480
21485
|
for (const i in Fc)
|
|
21481
21486
|
if (v1(i, e)) {
|
|
21482
21487
|
e.stopPropagation(), e.preventDefault();
|
|
21483
21488
|
const a = Fc[i];
|
|
21484
|
-
if (a ===
|
|
21489
|
+
if (a === V.link) {
|
|
21485
21490
|
n([{ type: "showLinkEditor", value: !0 }]);
|
|
21486
21491
|
return;
|
|
21487
21492
|
}
|
|
@@ -21499,7 +21504,7 @@ const bC = function(t) {
|
|
|
21499
21504
|
const o = s.userId || "", l = (d = s.user) == null ? void 0 : d.name;
|
|
21500
21505
|
n([{ type: "mentionPopover", value: { ...t, show: !1 } }]);
|
|
21501
21506
|
const u = {
|
|
21502
|
-
type:
|
|
21507
|
+
type: V.mention,
|
|
21503
21508
|
id: o,
|
|
21504
21509
|
name: l,
|
|
21505
21510
|
children: [{ text: "" }]
|
|
@@ -21556,9 +21561,9 @@ const bC = function(t) {
|
|
|
21556
21561
|
}
|
|
21557
21562
|
return t;
|
|
21558
21563
|
}, er = (e) => typeof e.text == "string", _C = [
|
|
21559
|
-
|
|
21560
|
-
|
|
21561
|
-
|
|
21564
|
+
V.hr,
|
|
21565
|
+
V.image,
|
|
21566
|
+
V.mention
|
|
21562
21567
|
], Ac = "<br>";
|
|
21563
21568
|
function Kf(e, t = { nodeTypes: ar }) {
|
|
21564
21569
|
const {
|
|
@@ -21571,12 +21576,12 @@ function Kf(e, t = { nodeTypes: ar }) {
|
|
|
21571
21576
|
...ar,
|
|
21572
21577
|
...n,
|
|
21573
21578
|
heading: {
|
|
21574
|
-
...ar[
|
|
21575
|
-
...n[
|
|
21579
|
+
...ar[V.heading],
|
|
21580
|
+
...n[V.heading]
|
|
21576
21581
|
}
|
|
21577
|
-
}, l = [o[
|
|
21582
|
+
}, l = [o[V.ul], o[V.ol]];
|
|
21578
21583
|
let u = a;
|
|
21579
|
-
if (!er(e) && s !==
|
|
21584
|
+
if (!er(e) && s !== V.mention && (u = e.children.map((d) => {
|
|
21580
21585
|
const h = er(d) ? !1 : l.includes(d.type || ""), m = l.includes(e.type || "");
|
|
21581
21586
|
let p = !1;
|
|
21582
21587
|
return !er(e) && Array.isArray(e.children) && (p = e.children.some(
|
|
@@ -21596,65 +21601,65 @@ function Kf(e, t = { nodeTypes: ar }) {
|
|
|
21596
21601
|
!d.break,
|
|
21597
21602
|
// track depth of nested lists so we can add proper spacing
|
|
21598
21603
|
listDepth: l.includes(d.type || "") ? i + 1 : i,
|
|
21599
|
-
inBlockquote: s === o[
|
|
21604
|
+
inBlockquote: s === o[V.blockquote] || e.parentType === o[V.blockquote]
|
|
21600
21605
|
}
|
|
21601
21606
|
);
|
|
21602
21607
|
}).join("")), !r && (a === "" || a === `
|
|
21603
|
-
`) && e.parentType === o[
|
|
21604
|
-
switch (u !== Ac && er(e) && (e[
|
|
21605
|
-
case o[
|
|
21608
|
+
`) && e.parentType === o[V.paragraph] && s !== o[V.mention] && (s = o[V.paragraph], u = Ac), !(u === "" && !_C.find((d) => o[d] === s)))
|
|
21609
|
+
switch (u !== Ac && er(e) && (e[V.strikethrough] && e[V.bold] && e[V.italic] ? u = tr(u, "~~***") : e[V.bold] && e[V.italic] ? u = tr(u, "***") : (e[V.bold] && (u = tr(u, "**")), e[V.italic] && (u = tr(u, "_")), e[V.strikethrough] && (u = tr(u, "~~")), e[V.code] && (u = tr(u, "`")))), s) {
|
|
21610
|
+
case o[V.heading][1]:
|
|
21606
21611
|
return `# ${u}
|
|
21607
21612
|
`;
|
|
21608
|
-
case o[
|
|
21613
|
+
case o[V.heading][2]:
|
|
21609
21614
|
return `## ${u}
|
|
21610
21615
|
`;
|
|
21611
|
-
case o[
|
|
21616
|
+
case o[V.heading][3]:
|
|
21612
21617
|
return `### ${u}
|
|
21613
21618
|
`;
|
|
21614
|
-
case o[
|
|
21619
|
+
case o[V.heading][4]:
|
|
21615
21620
|
return `#### ${u}
|
|
21616
21621
|
`;
|
|
21617
|
-
case o[
|
|
21622
|
+
case o[V.heading][5]:
|
|
21618
21623
|
return `##### ${u}
|
|
21619
21624
|
`;
|
|
21620
|
-
case o[
|
|
21625
|
+
case o[V.heading][6]:
|
|
21621
21626
|
return `###### ${u}
|
|
21622
21627
|
`;
|
|
21623
|
-
case o[
|
|
21628
|
+
case o[V.blockquote]:
|
|
21624
21629
|
return `> ${u}
|
|
21625
21630
|
|
|
21626
21631
|
`;
|
|
21627
|
-
case o[
|
|
21632
|
+
case o[V.codeblock]:
|
|
21628
21633
|
return `\`\`\`${e.language || ""}
|
|
21629
21634
|
${u}
|
|
21630
21635
|
\`\`\`
|
|
21631
21636
|
`;
|
|
21632
|
-
case o[
|
|
21637
|
+
case o[V.link]:
|
|
21633
21638
|
return `[${u}](${e.link || ""})`;
|
|
21634
21639
|
case o.image:
|
|
21635
21640
|
return ``;
|
|
21636
|
-
case o[
|
|
21641
|
+
case o[V.mention]:
|
|
21637
21642
|
const { id: d } = e;
|
|
21638
21643
|
return e ? `@{{${d}}}` : u;
|
|
21639
|
-
case o[
|
|
21640
|
-
case o[
|
|
21644
|
+
case o[V.ul]:
|
|
21645
|
+
case o[V.ol]:
|
|
21641
21646
|
return `
|
|
21642
21647
|
${u}
|
|
21643
21648
|
|
|
21644
21649
|
`;
|
|
21645
|
-
case o[
|
|
21646
|
-
const h = e && e.parentType === o[
|
|
21650
|
+
case o[V.li]:
|
|
21651
|
+
const h = e && e.parentType === o[V.ol], m = e.children.length === 1 && er(e.children[0]);
|
|
21647
21652
|
let p = "";
|
|
21648
21653
|
for (let g = 0; i > g; g++)
|
|
21649
21654
|
h ? p += " " : p += " ";
|
|
21650
21655
|
return t.inBlockquote && (p = "> " + p), `
|
|
21651
21656
|
${p}${h ? "1." : "-"} ${u}${m ? `
|
|
21652
21657
|
` : ""}`;
|
|
21653
|
-
case o[
|
|
21658
|
+
case o[V.paragraph]:
|
|
21654
21659
|
return `${u}
|
|
21655
21660
|
|
|
21656
21661
|
`;
|
|
21657
|
-
case o[
|
|
21662
|
+
case o[V.hr]:
|
|
21658
21663
|
return `---
|
|
21659
21664
|
`;
|
|
21660
21665
|
default:
|
|
@@ -21690,7 +21695,7 @@ const FC = ({
|
|
|
21690
21695
|
En,
|
|
21691
21696
|
{
|
|
21692
21697
|
element: "li",
|
|
21693
|
-
className:
|
|
21698
|
+
className: K({ selected: f === u }),
|
|
21694
21699
|
member: { id: p, ...g, link: !1 },
|
|
21695
21700
|
functions: {
|
|
21696
21701
|
onClick: (v) => {
|
|
@@ -21711,7 +21716,7 @@ const FC = ({
|
|
|
21711
21716
|
En,
|
|
21712
21717
|
{
|
|
21713
21718
|
element: "li",
|
|
21714
|
-
className:
|
|
21719
|
+
className: K("fallback", {
|
|
21715
21720
|
selected: d.length === u
|
|
21716
21721
|
}),
|
|
21717
21722
|
member: {
|
|
@@ -21781,7 +21786,7 @@ const Zf = ({ formID: e, label: t, showLabel: n }) => {
|
|
|
21781
21786
|
"li",
|
|
21782
21787
|
{
|
|
21783
21788
|
id: `${d}-${e}`,
|
|
21784
|
-
className:
|
|
21789
|
+
className: K(e, { "has-divider": n }),
|
|
21785
21790
|
onMouseEnter: () => {
|
|
21786
21791
|
g([{ type: "openTooltip", value: e }]);
|
|
21787
21792
|
},
|
|
@@ -21808,7 +21813,7 @@ const Zf = ({ formID: e, label: t, showLabel: n }) => {
|
|
|
21808
21813
|
{
|
|
21809
21814
|
...o,
|
|
21810
21815
|
...f,
|
|
21811
|
-
className:
|
|
21816
|
+
className: K(e, i, { active: t }),
|
|
21812
21817
|
onClick: (v) => {
|
|
21813
21818
|
v.stopPropagation(), v.preventDefault();
|
|
21814
21819
|
},
|
|
@@ -21862,7 +21867,7 @@ const Zf = ({ formID: e, label: t, showLabel: n }) => {
|
|
|
21862
21867
|
]
|
|
21863
21868
|
}
|
|
21864
21869
|
);
|
|
21865
|
-
}, Tc = [
|
|
21870
|
+
}, Tc = [V.ol, V.ul], Yf = (e, t) => {
|
|
21866
21871
|
const { selection: n } = e;
|
|
21867
21872
|
if (!n)
|
|
21868
21873
|
return !1;
|
|
@@ -21878,7 +21883,7 @@ const Zf = ({ formID: e, label: t, showLabel: n }) => {
|
|
|
21878
21883
|
return !!r;
|
|
21879
21884
|
}, AC = (e) => {
|
|
21880
21885
|
const [t] = y.nodes(e, {
|
|
21881
|
-
match: (n) => n.type ===
|
|
21886
|
+
match: (n) => n.type === V.blockquote
|
|
21882
21887
|
});
|
|
21883
21888
|
return !!t;
|
|
21884
21889
|
}, Gf = (e, t, n) => {
|
|
@@ -21892,7 +21897,7 @@ const Zf = ({ formID: e, label: t, showLabel: n }) => {
|
|
|
21892
21897
|
split: !0
|
|
21893
21898
|
});
|
|
21894
21899
|
const o = {
|
|
21895
|
-
type: i ?
|
|
21900
|
+
type: i ? V.paragraph : a ? V.li : t
|
|
21896
21901
|
};
|
|
21897
21902
|
if (Q.setNodes(e, o), a)
|
|
21898
21903
|
if (i) {
|
|
@@ -21905,7 +21910,7 @@ const Zf = ({ formID: e, label: t, showLabel: n }) => {
|
|
|
21905
21910
|
at: d,
|
|
21906
21911
|
match: (m) => {
|
|
21907
21912
|
const p = m;
|
|
21908
|
-
return !y.isEditor(m) && he.isElement(m) && p.type ===
|
|
21913
|
+
return !y.isEditor(m) && he.isElement(m) && p.type === V.li;
|
|
21909
21914
|
}
|
|
21910
21915
|
})
|
|
21911
21916
|
).forEach(([m, p]) => {
|
|
@@ -21914,7 +21919,7 @@ const Zf = ({ formID: e, label: t, showLabel: n }) => {
|
|
|
21914
21919
|
} else {
|
|
21915
21920
|
if (r) {
|
|
21916
21921
|
const u = {
|
|
21917
|
-
type:
|
|
21922
|
+
type: V.blockquote,
|
|
21918
21923
|
children: []
|
|
21919
21924
|
};
|
|
21920
21925
|
Q.wrapNodes(e, u);
|
|
@@ -21943,7 +21948,7 @@ const Zf = ({ formID: e, label: t, showLabel: n }) => {
|
|
|
21943
21948
|
const [t] = y.nodes(e, {
|
|
21944
21949
|
match: (n) => {
|
|
21945
21950
|
const r = n;
|
|
21946
|
-
return !y.isEditor(n) && he.isElement(n) && r.type ===
|
|
21951
|
+
return !y.isEditor(n) && he.isElement(n) && r.type === V.link;
|
|
21947
21952
|
}
|
|
21948
21953
|
});
|
|
21949
21954
|
return !!t;
|
|
@@ -21955,7 +21960,7 @@ const Zf = ({ formID: e, label: t, showLabel: n }) => {
|
|
|
21955
21960
|
const [s] = y.nodes(e, {
|
|
21956
21961
|
match: (o) => {
|
|
21957
21962
|
const l = o;
|
|
21958
|
-
return !y.isEditor(o) && he.isElement(o) && l.type ===
|
|
21963
|
+
return !y.isEditor(o) && he.isElement(o) && l.type === V.link;
|
|
21959
21964
|
}
|
|
21960
21965
|
});
|
|
21961
21966
|
if (s) {
|
|
@@ -21970,7 +21975,7 @@ const Zf = ({ formID: e, label: t, showLabel: n }) => {
|
|
|
21970
21975
|
try {
|
|
21971
21976
|
Ur(e) && Qf(e);
|
|
21972
21977
|
const { selection: i } = e, a = i && Z.isCollapsed(i), s = {
|
|
21973
|
-
type:
|
|
21978
|
+
type: V.link,
|
|
21974
21979
|
link: t,
|
|
21975
21980
|
children: a ? [{ text: t }] : []
|
|
21976
21981
|
};
|
|
@@ -21983,7 +21988,7 @@ const Zf = ({ formID: e, label: t, showLabel: n }) => {
|
|
|
21983
21988
|
Q.unwrapNodes(e, {
|
|
21984
21989
|
match: (t) => {
|
|
21985
21990
|
const n = t;
|
|
21986
|
-
return !y.isEditor(t) && he.isElement(t) && n.type ===
|
|
21991
|
+
return !y.isEditor(t) && he.isElement(t) && n.type === V.link;
|
|
21987
21992
|
}
|
|
21988
21993
|
});
|
|
21989
21994
|
};
|
|
@@ -22105,7 +22110,7 @@ const jC = () => {
|
|
|
22105
22110
|
{
|
|
22106
22111
|
element: "fieldset",
|
|
22107
22112
|
id: `${n}-link-editor`,
|
|
22108
|
-
className:
|
|
22113
|
+
className: K({ "show-labels": h }),
|
|
22109
22114
|
meta: { shouldReset: !0, showRequiredLabels: !1 },
|
|
22110
22115
|
functions: {
|
|
22111
22116
|
onSuccess: async (D) => {
|
|
@@ -22151,7 +22156,7 @@ const jC = () => {
|
|
|
22151
22156
|
"aria-pressed": null
|
|
22152
22157
|
}
|
|
22153
22158
|
);
|
|
22154
|
-
}, PC = (e) => [
|
|
22159
|
+
}, PC = (e) => [V.bold, V.italic, V.strikethrough].includes(
|
|
22155
22160
|
e
|
|
22156
22161
|
), Lo = (e, t) => {
|
|
22157
22162
|
const n = y.marks(e);
|
|
@@ -22177,16 +22182,18 @@ const jC = () => {
|
|
|
22177
22182
|
}
|
|
22178
22183
|
);
|
|
22179
22184
|
}, aa = [
|
|
22180
|
-
|
|
22181
|
-
|
|
22182
|
-
|
|
22185
|
+
V.bold,
|
|
22186
|
+
V.italic,
|
|
22187
|
+
V.strikethrough
|
|
22183
22188
|
], MC = [
|
|
22184
|
-
|
|
22185
|
-
|
|
22186
|
-
|
|
22189
|
+
V.ol,
|
|
22190
|
+
V.ul,
|
|
22191
|
+
V.blockquote
|
|
22187
22192
|
];
|
|
22188
22193
|
const RC = () => {
|
|
22189
|
-
const e =
|
|
22194
|
+
const e = V.h3, { setFocus: t, reportError: n } = Ne(rn), r = An(), i = Lo(r, e), a = {
|
|
22195
|
+
type: e
|
|
22196
|
+
};
|
|
22190
22197
|
return /* @__PURE__ */ c.jsx(
|
|
22191
22198
|
xa,
|
|
22192
22199
|
{
|
|
@@ -22194,7 +22201,7 @@ const RC = () => {
|
|
|
22194
22201
|
active: i,
|
|
22195
22202
|
hasDivider: !0,
|
|
22196
22203
|
callback: () => {
|
|
22197
|
-
zo(r, e, n), t(i ? null : e);
|
|
22204
|
+
zo(r, e, n), t(i ? null : e), Q.setNodes(r, a);
|
|
22198
22205
|
},
|
|
22199
22206
|
"aria-pressed": null
|
|
22200
22207
|
}
|
|
@@ -22994,7 +23001,7 @@ const mE = (e, t) => {
|
|
|
22994
23001
|
const { apply: n } = e;
|
|
22995
23002
|
try {
|
|
22996
23003
|
e.apply = (r) => {
|
|
22997
|
-
if (r.type === "remove_node" && "type" in r.node && r.node.type ===
|
|
23004
|
+
if (r.type === "remove_node" && "type" in r.node && r.node.type === V.link) {
|
|
22998
23005
|
const i = r.node;
|
|
22999
23006
|
if (i.link) {
|
|
23000
23007
|
const a = new CustomEvent("linkRemoved", {
|
|
@@ -23026,7 +23033,7 @@ const xE = /* @__PURE__ */ qn(pE), DE = (e, t, n) => {
|
|
|
23026
23033
|
try {
|
|
23027
23034
|
e.isInline = (a) => {
|
|
23028
23035
|
const s = a;
|
|
23029
|
-
return [
|
|
23036
|
+
return [V.link].includes(s.type) || i(a);
|
|
23030
23037
|
}, e.insertText = (a) => {
|
|
23031
23038
|
a && xE(a) ? Io(e, a, t) : r(a);
|
|
23032
23039
|
};
|
|
@@ -23038,7 +23045,7 @@ const xE = /* @__PURE__ */ qn(pE), DE = (e, t, n) => {
|
|
|
23038
23045
|
}, wE = (e, t) => {
|
|
23039
23046
|
const { isInline: n, isVoid: r, markableVoid: i } = e;
|
|
23040
23047
|
try {
|
|
23041
|
-
e.isInline = (a) => a.type ===
|
|
23048
|
+
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);
|
|
23042
23049
|
} catch (a) {
|
|
23043
23050
|
const s = a.message;
|
|
23044
23051
|
t(`Error in withMentions: ${s}`);
|
|
@@ -23048,7 +23055,7 @@ const xE = /* @__PURE__ */ qn(pE), DE = (e, t, n) => {
|
|
|
23048
23055
|
const { normalizeNode: n } = e;
|
|
23049
23056
|
try {
|
|
23050
23057
|
e.normalizeNode = ([r, i]) => {
|
|
23051
|
-
if (r.type ===
|
|
23058
|
+
if (r.type === V.link && ue.string(r).trim() === "") {
|
|
23052
23059
|
Q.removeNodes(e, { at: i });
|
|
23053
23060
|
return;
|
|
23054
23061
|
}
|
|
@@ -23089,7 +23096,7 @@ const ah = ({
|
|
|
23089
23096
|
}
|
|
23090
23097
|
} = a || {}, A = [
|
|
23091
23098
|
{
|
|
23092
|
-
type:
|
|
23099
|
+
type: V.paragraph,
|
|
23093
23100
|
children: [{ text: "" }]
|
|
23094
23101
|
}
|
|
23095
23102
|
];
|
|
@@ -23304,8 +23311,8 @@ const ah = ({
|
|
|
23304
23311
|
const H = Z.isCollapsed(N), [Y, ee] = y.node(_, N, { depth: 1 });
|
|
23305
23312
|
let se = Y, G = se.type;
|
|
23306
23313
|
const ve = se.children[0];
|
|
23307
|
-
if (ve && [
|
|
23308
|
-
if (G ===
|
|
23314
|
+
if (ve && [V.ol, V.ul].includes(ve.type) && (se = ve, G = ve.type), se && he.isElement(se) && G !== V.paragraph) {
|
|
23315
|
+
if (G === V.blockquote && !S.shiftKey) {
|
|
23309
23316
|
S.stopPropagation(), S.preventDefault(), Q.insertNodes(_, A);
|
|
23310
23317
|
return;
|
|
23311
23318
|
}
|
|
@@ -23313,8 +23320,8 @@ const ah = ({
|
|
|
23313
23320
|
const [ge, Be] = y.parent(_, N, {
|
|
23314
23321
|
edge: "end"
|
|
23315
23322
|
}), je = ge.type;
|
|
23316
|
-
if ([
|
|
23317
|
-
if (S.stopPropagation(), S.preventDefault(), je ===
|
|
23323
|
+
if ([V.ul, V.ol].includes(G))
|
|
23324
|
+
if (S.stopPropagation(), S.preventDefault(), je === V.li && k === "Enter") {
|
|
23318
23325
|
ge.children.length === 1 && "text" in ge.children[0] && ge.children[0].text === "" && Q.removeNodes(_, { at: Be }), Q.insertNodes(_, A, {
|
|
23319
23326
|
at: R.next(ee)
|
|
23320
23327
|
}), Q.select(
|
|
@@ -23323,8 +23330,8 @@ const ah = ({
|
|
|
23323
23330
|
);
|
|
23324
23331
|
return;
|
|
23325
23332
|
} else {
|
|
23326
|
-
const [Qe, He] = xC(_,
|
|
23327
|
-
type:
|
|
23333
|
+
const [Qe, He] = xC(_, V.li), Le = {
|
|
23334
|
+
type: V.li,
|
|
23328
23335
|
children: [{ text: "" }]
|
|
23329
23336
|
};
|
|
23330
23337
|
Q.insertNodes(_, Le, {
|
|
@@ -23447,7 +23454,7 @@ const lk = ({
|
|
|
23447
23454
|
return /* @__PURE__ */ c.jsxs(
|
|
23448
23455
|
"div",
|
|
23449
23456
|
{
|
|
23450
|
-
className:
|
|
23457
|
+
className: K("toggle", s),
|
|
23451
23458
|
onClick: (d) => {
|
|
23452
23459
|
d.preventDefault(), d.stopPropagation(), u(o === n[0].value ? n[1].value : n[0].value);
|
|
23453
23460
|
},
|
|
@@ -23456,7 +23463,7 @@ const lk = ({
|
|
|
23456
23463
|
/* @__PURE__ */ c.jsx(
|
|
23457
23464
|
"ul",
|
|
23458
23465
|
{
|
|
23459
|
-
className:
|
|
23466
|
+
className: K("toggle-options", {
|
|
23460
23467
|
disabled: a,
|
|
23461
23468
|
on: o === n[1].value
|
|
23462
23469
|
}),
|
|
@@ -23515,7 +23522,7 @@ function EE({
|
|
|
23515
23522
|
change: w = o.formatMessage({ id: `${l}cta_change` }),
|
|
23516
23523
|
uploading: E = o.formatMessage({ id: `${l}cta_uploading` })
|
|
23517
23524
|
} = (a == null ? void 0 : a.text) || {};
|
|
23518
|
-
return /* @__PURE__ */ c.jsxs("div", { className:
|
|
23525
|
+
return /* @__PURE__ */ c.jsxs("div", { className: K("profile-image-change-figure", e), children: [
|
|
23519
23526
|
/* @__PURE__ */ c.jsx(
|
|
23520
23527
|
Hn,
|
|
23521
23528
|
{
|
|
@@ -24116,7 +24123,7 @@ const TE = ({
|
|
|
24116
24123
|
"form",
|
|
24117
24124
|
{
|
|
24118
24125
|
onSubmit: d,
|
|
24119
|
-
className:
|
|
24126
|
+
className: K("search-form gtm-trackable", t),
|
|
24120
24127
|
role: "search",
|
|
24121
24128
|
"data-gtm-event-context": i,
|
|
24122
24129
|
"data-gtm-event-type": a,
|
|
@@ -24399,7 +24406,7 @@ const TE = ({
|
|
|
24399
24406
|
const PE = ({ className: e = "" }) => /* @__PURE__ */ c.jsxs(
|
|
24400
24407
|
"div",
|
|
24401
24408
|
{
|
|
24402
|
-
className:
|
|
24409
|
+
className: K("success-message", e),
|
|
24403
24410
|
"data-testid": "success-message",
|
|
24404
24411
|
children: [
|
|
24405
24412
|
/* @__PURE__ */ c.jsx("p", { className: "success-title", children: /* @__PURE__ */ c.jsx(ht, { id: "signup_success_title" }) }),
|
|
@@ -24499,7 +24506,7 @@ const NE = {
|
|
|
24499
24506
|
return g.successMessage && D ? /* @__PURE__ */ c.jsx(PE, { className: e }) : /* @__PURE__ */ c.jsxs(
|
|
24500
24507
|
"fieldset",
|
|
24501
24508
|
{
|
|
24502
|
-
className:
|
|
24509
|
+
className: K("signup-form-fieldset", e),
|
|
24503
24510
|
"data-testid": "signup-form",
|
|
24504
24511
|
children: [
|
|
24505
24512
|
g.title && /* @__PURE__ */ c.jsx("p", { className: "signup-title", children: /* @__PURE__ */ c.jsx(ht, { id: "signup_title" }) }),
|
|
@@ -24580,7 +24587,7 @@ const Vn = ({
|
|
|
24580
24587
|
return /* @__PURE__ */ c.jsx(
|
|
24581
24588
|
"section",
|
|
24582
24589
|
{
|
|
24583
|
-
className:
|
|
24590
|
+
className: K("full-width-section", t, {
|
|
24584
24591
|
[i]: i !== "default",
|
|
24585
24592
|
[a]: a !== "none"
|
|
24586
24593
|
}),
|
|
@@ -24605,7 +24612,7 @@ const hk = ({ text: e, buttons: t, className: n = "" }) => {
|
|
|
24605
24612
|
}), /* @__PURE__ */ c.jsx(
|
|
24606
24613
|
Vn,
|
|
24607
24614
|
{
|
|
24608
|
-
className:
|
|
24615
|
+
className: K("download-section", n),
|
|
24609
24616
|
styling: { background: "dark" },
|
|
24610
24617
|
children: /* @__PURE__ */ c.jsxs("div", { className: "content-default", children: [
|
|
24611
24618
|
te.createElement(
|
|
@@ -24673,7 +24680,7 @@ const ME = ({
|
|
|
24673
24680
|
r.props.functions.onCancel && r.props.functions.onCancel(), p();
|
|
24674
24681
|
}
|
|
24675
24682
|
}
|
|
24676
|
-
})), /* @__PURE__ */ c.jsxs("section", { className:
|
|
24683
|
+
})), /* @__PURE__ */ c.jsxs("section", { className: K("edit-section", t), children: [
|
|
24677
24684
|
g && /* @__PURE__ */ c.jsx(
|
|
24678
24685
|
kn,
|
|
24679
24686
|
{
|
|
@@ -24682,7 +24689,7 @@ const ME = ({
|
|
|
24682
24689
|
showDivider: !1,
|
|
24683
24690
|
showIcon: !1,
|
|
24684
24691
|
functions: { onClose: p },
|
|
24685
|
-
className:
|
|
24692
|
+
className: K("edit-section-modal"),
|
|
24686
24693
|
children: v || (n ? /* @__PURE__ */ c.jsx(
|
|
24687
24694
|
pn,
|
|
24688
24695
|
{
|
|
@@ -24706,7 +24713,7 @@ const ME = ({
|
|
|
24706
24713
|
) : /* @__PURE__ */ c.jsx(c.Fragment, {}))
|
|
24707
24714
|
}
|
|
24708
24715
|
),
|
|
24709
|
-
/* @__PURE__ */ c.jsxs("div", { className:
|
|
24716
|
+
/* @__PURE__ */ c.jsxs("div", { className: K("edit-section-header", { "no-title": !s }), children: [
|
|
24710
24717
|
s && /* @__PURE__ */ c.jsx("h2", { className: "edit-section-header-title", children: a }),
|
|
24711
24718
|
f && /* @__PURE__ */ c.jsx(
|
|
24712
24719
|
Ae,
|
|
@@ -24750,21 +24757,21 @@ const pk = ({
|
|
|
24750
24757
|
return /* @__PURE__ */ c.jsxs(
|
|
24751
24758
|
"div",
|
|
24752
24759
|
{
|
|
24753
|
-
className:
|
|
24760
|
+
className: K("logos", i, `align-${l}`, {
|
|
24754
24761
|
[u]: u !== "block",
|
|
24755
24762
|
"wrap-logos": o
|
|
24756
24763
|
}),
|
|
24757
24764
|
children: [
|
|
24758
24765
|
e && te.createElement(
|
|
24759
24766
|
s.element,
|
|
24760
|
-
{ className:
|
|
24767
|
+
{ className: K("title", s.className) },
|
|
24761
24768
|
s.text
|
|
24762
24769
|
),
|
|
24763
24770
|
t && /* @__PURE__ */ c.jsx("p", { children: t }),
|
|
24764
24771
|
/* @__PURE__ */ c.jsx(
|
|
24765
24772
|
"ul",
|
|
24766
24773
|
{
|
|
24767
|
-
className:
|
|
24774
|
+
className: K({
|
|
24768
24775
|
"two-col": a === 2 || a === 4,
|
|
24769
24776
|
"three-col": a === 5 || a <= 10 && a % 3 === 0
|
|
24770
24777
|
}),
|
|
@@ -25350,7 +25357,7 @@ const or = "footer_", oa = "SiteFooter", Mc = ({ group: e }) => {
|
|
|
25350
25357
|
return /* @__PURE__ */ c.jsxs(
|
|
25351
25358
|
"li",
|
|
25352
25359
|
{
|
|
25353
|
-
className:
|
|
25360
|
+
className: K({
|
|
25354
25361
|
[o.className]: o.className,
|
|
25355
25362
|
"has-submenu": p,
|
|
25356
25363
|
parent: g,
|
|
@@ -25381,7 +25388,7 @@ const or = "footer_", oa = "SiteFooter", Mc = ({ group: e }) => {
|
|
|
25381
25388
|
return o[E].order ? /* @__PURE__ */ c.jsxs(
|
|
25382
25389
|
"li",
|
|
25383
25390
|
{
|
|
25384
|
-
className:
|
|
25391
|
+
className: K({
|
|
25385
25392
|
[o[E].className]: o[E].className
|
|
25386
25393
|
}),
|
|
25387
25394
|
children: [
|
|
@@ -25603,7 +25610,7 @@ const uh = ({ showNavigation: e = !0 }) => {
|
|
|
25603
25610
|
"nav",
|
|
25604
25611
|
{
|
|
25605
25612
|
id: "header",
|
|
25606
|
-
className:
|
|
25613
|
+
className: K({
|
|
25607
25614
|
"logged-in": i,
|
|
25608
25615
|
"logged-out": !i,
|
|
25609
25616
|
visible: l
|
|
@@ -25677,7 +25684,7 @@ const uh = ({ showNavigation: e = !0 }) => {
|
|
|
25677
25684
|
/* @__PURE__ */ c.jsx(
|
|
25678
25685
|
"div",
|
|
25679
25686
|
{
|
|
25680
|
-
className:
|
|
25687
|
+
className: K("overlay", {
|
|
25681
25688
|
open: u[
|
|
25682
25689
|
"site-navigation"
|
|
25683
25690
|
/* SITE */
|
|
@@ -25736,14 +25743,14 @@ const IE = () => {
|
|
|
25736
25743
|
"div",
|
|
25737
25744
|
{
|
|
25738
25745
|
id: "wrapper",
|
|
25739
|
-
className:
|
|
25746
|
+
className: K(s, D, { "has-footer": u }),
|
|
25740
25747
|
children: [
|
|
25741
25748
|
/* @__PURE__ */ c.jsx(uh, { showNavigation: l }),
|
|
25742
25749
|
/* @__PURE__ */ c.jsxs("main", { id: "content-wrapper", children: [
|
|
25743
25750
|
E && /* @__PURE__ */ c.jsx(
|
|
25744
25751
|
"div",
|
|
25745
25752
|
{
|
|
25746
|
-
className:
|
|
25753
|
+
className: K("additional-content prepended", {
|
|
25747
25754
|
"large-modal": p === "large"
|
|
25748
25755
|
}),
|
|
25749
25756
|
children: E
|
|
@@ -25752,7 +25759,7 @@ const IE = () => {
|
|
|
25752
25759
|
te.createElement(d === "bold" ? ud : "div", {
|
|
25753
25760
|
id: "content",
|
|
25754
25761
|
children: w,
|
|
25755
|
-
className:
|
|
25762
|
+
className: K({ "large-modal": p === "large" })
|
|
25756
25763
|
})
|
|
25757
25764
|
] }),
|
|
25758
25765
|
A && /* @__PURE__ */ c.jsx("div", { className: "additional-content appended", children: A }),
|
|
@@ -25823,7 +25830,7 @@ const bk = ({
|
|
|
25823
25830
|
}), l.length < 1 ? null : /* @__PURE__ */ c.jsx(
|
|
25824
25831
|
"ul",
|
|
25825
25832
|
{
|
|
25826
|
-
className:
|
|
25833
|
+
className: K("tags text-small", t, i, {
|
|
25827
25834
|
"one-line": n
|
|
25828
25835
|
}),
|
|
25829
25836
|
children: l.map((u) => {
|
|
@@ -25857,7 +25864,7 @@ const qE = 25, UE = ({
|
|
|
25857
25864
|
className: h = ""
|
|
25858
25865
|
}) => {
|
|
25859
25866
|
const m = ce(), p = "membersList", g = Ne(mt), [f, v] = le(!1);
|
|
25860
|
-
return e.length === 0 && !d ? null : /* @__PURE__ */ c.jsxs("div", { className:
|
|
25867
|
+
return e.length === 0 && !d ? null : /* @__PURE__ */ c.jsxs("div", { className: K("members-list", h), children: [
|
|
25861
25868
|
u ? /* @__PURE__ */ c.jsxs("h1", { children: [
|
|
25862
25869
|
m.formatMessage({ id: p }),
|
|
25863
25870
|
/* @__PURE__ */ c.jsx("span", { className: "count", children: t })
|
|
@@ -26249,7 +26256,7 @@ const rt = "discussion_form_", Da = ({
|
|
|
26249
26256
|
pn,
|
|
26250
26257
|
{
|
|
26251
26258
|
id: se,
|
|
26252
|
-
className:
|
|
26259
|
+
className: K("discussion-card discussion-form", {
|
|
26253
26260
|
"no-styling": w && D
|
|
26254
26261
|
}),
|
|
26255
26262
|
meta: {
|
|
@@ -26344,7 +26351,7 @@ const rt = "discussion_form_", Da = ({
|
|
|
26344
26351
|
}) => {
|
|
26345
26352
|
const r = {
|
|
26346
26353
|
...n,
|
|
26347
|
-
class:
|
|
26354
|
+
class: K("subtle", t)
|
|
26348
26355
|
};
|
|
26349
26356
|
return /* @__PURE__ */ c.jsx("blockquote", { ...r, children: e });
|
|
26350
26357
|
}, ZE = 280, lh = async (e, t, n, r = () => Promise.resolve([])) => {
|
|
@@ -26542,7 +26549,7 @@ const wa = ({
|
|
|
26542
26549
|
"data-gtm-event-context": d,
|
|
26543
26550
|
"data-gtm-event-type": `edit-${t.type}-click`
|
|
26544
26551
|
}), p && ((tt = S == null ? void 0 : S.current) == null || tt.focus(), (Te = S == null ? void 0 : S.current) == null || Te.scrollIntoView({ behavior: "smooth" })), te.createElement(e, {
|
|
26545
|
-
className:
|
|
26552
|
+
className: K("discussion-post", u, {
|
|
26546
26553
|
[se]: !u || !u.includes("highlighted-text-box"),
|
|
26547
26554
|
"has-link": l.post && !N.isEditing,
|
|
26548
26555
|
"is-pinned": (t == null ? void 0 : t.pinned) || !1
|
|
@@ -26567,7 +26574,7 @@ const wa = ({
|
|
|
26567
26574
|
"div",
|
|
26568
26575
|
{
|
|
26569
26576
|
id: ae || t.slug,
|
|
26570
|
-
className:
|
|
26577
|
+
className: K("discussion-card", t.type, {
|
|
26571
26578
|
editing: N.isEditing,
|
|
26572
26579
|
"has-link": l.post && !N.isEditing
|
|
26573
26580
|
}),
|
|
@@ -26852,7 +26859,7 @@ const JE = vr(
|
|
|
26852
26859
|
/* @__PURE__ */ c.jsxs(
|
|
26853
26860
|
"button",
|
|
26854
26861
|
{
|
|
26855
|
-
className:
|
|
26862
|
+
className: K("discussion-form-card", n),
|
|
26856
26863
|
onClick: (v) => {
|
|
26857
26864
|
v.preventDefault(), v.stopPropagation(), h((b) => ({ ...b, form: !0 }));
|
|
26858
26865
|
},
|
|
@@ -26862,7 +26869,7 @@ const JE = vr(
|
|
|
26862
26869
|
/* @__PURE__ */ c.jsx(
|
|
26863
26870
|
dr,
|
|
26864
26871
|
{
|
|
26865
|
-
className:
|
|
26872
|
+
className: K("input", { placeholder: !m.showCachedText }),
|
|
26866
26873
|
element: "span",
|
|
26867
26874
|
options: {
|
|
26868
26875
|
forceInline: !0,
|
|
@@ -27047,7 +27054,7 @@ const r_ = ({
|
|
|
27047
27054
|
return /* @__PURE__ */ c.jsxs(
|
|
27048
27055
|
"div",
|
|
27049
27056
|
{
|
|
27050
|
-
className:
|
|
27057
|
+
className: K("thread-wrapper", {
|
|
27051
27058
|
"empty-thread": !o
|
|
27052
27059
|
}),
|
|
27053
27060
|
children: [
|
|
@@ -27350,7 +27357,7 @@ const d_ = ({
|
|
|
27350
27357
|
(m !== "" || p !== "") && l((v) => ({ ...v, showCachedText: !0 })), o();
|
|
27351
27358
|
}
|
|
27352
27359
|
},
|
|
27353
|
-
className:
|
|
27360
|
+
className: K("discussion-form-modal", i),
|
|
27354
27361
|
children: /* @__PURE__ */ c.jsx(
|
|
27355
27362
|
Da,
|
|
27356
27363
|
{
|
|
@@ -27430,7 +27437,7 @@ const xk = ({
|
|
|
27430
27437
|
showDivider: !1,
|
|
27431
27438
|
showIcon: o,
|
|
27432
27439
|
functions: { onClose: l },
|
|
27433
|
-
className:
|
|
27440
|
+
className: K("invite-modal", e, { success: !!n }),
|
|
27434
27441
|
children: /* @__PURE__ */ c.jsx(
|
|
27435
27442
|
FE,
|
|
27436
27443
|
{
|
|
@@ -27471,7 +27478,7 @@ const h_ = ({
|
|
|
27471
27478
|
functions: {
|
|
27472
27479
|
onClose: d
|
|
27473
27480
|
},
|
|
27474
|
-
className:
|
|
27481
|
+
className: K("profile-modal", s, { success: !!t }),
|
|
27475
27482
|
maxWidth: 700,
|
|
27476
27483
|
children: /* @__PURE__ */ c.jsxs(c.Fragment, { children: [
|
|
27477
27484
|
t && n || r ? /* @__PURE__ */ c.jsxs("div", { className: "intro", children: [
|
|
@@ -27550,13 +27557,13 @@ const p_ = ({
|
|
|
27550
27557
|
content: n,
|
|
27551
27558
|
member: r,
|
|
27552
27559
|
className: i = ""
|
|
27553
|
-
}) => /* @__PURE__ */ c.jsxs("blockquote", { className:
|
|
27560
|
+
}) => /* @__PURE__ */ c.jsxs("blockquote", { className: K("testimonial-block", i), children: [
|
|
27554
27561
|
/* @__PURE__ */ c.jsx(Xt, { className: "testimonial", children: n }),
|
|
27555
27562
|
r ? /* @__PURE__ */ c.jsx(En, { member: r, styling: { size: "large" } }) : /* @__PURE__ */ c.jsxs(c.Fragment, { children: [
|
|
27556
27563
|
e && /* @__PURE__ */ c.jsx(
|
|
27557
27564
|
"p",
|
|
27558
27565
|
{
|
|
27559
|
-
className:
|
|
27566
|
+
className: K("author", {
|
|
27560
27567
|
"text-small": !i.includes("new")
|
|
27561
27568
|
}),
|
|
27562
27569
|
children: e
|
|
@@ -27565,7 +27572,7 @@ const p_ = ({
|
|
|
27565
27572
|
t && /* @__PURE__ */ c.jsx(
|
|
27566
27573
|
"p",
|
|
27567
27574
|
{
|
|
27568
|
-
className:
|
|
27575
|
+
className: K("author-cite", {
|
|
27569
27576
|
"text-small": !i.includes("new")
|
|
27570
27577
|
}),
|
|
27571
27578
|
children: /* @__PURE__ */ c.jsx("cite", { children: t })
|
|
@@ -27597,7 +27604,7 @@ const Ck = ({
|
|
|
27597
27604
|
Ht,
|
|
27598
27605
|
{
|
|
27599
27606
|
variant: "subtle",
|
|
27600
|
-
className:
|
|
27607
|
+
className: K("table-of-contents", n),
|
|
27601
27608
|
children: [
|
|
27602
27609
|
/* @__PURE__ */ c.jsx("h2", { children: r.formatMessage({ id: "tableOfContents" }) }),
|
|
27603
27610
|
/* @__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)) }) })
|
|
@@ -27639,7 +27646,7 @@ const Ko = ({
|
|
|
27639
27646
|
{ early: u, late: h }
|
|
27640
27647
|
);
|
|
27641
27648
|
}
|
|
27642
|
-
return n && (u = `${n} ${u}`, l = `${n} ${l}`), r && (u = `${u} ${r}`, l = `${l} ${r}`), /* @__PURE__ */ c.jsx("span", { className:
|
|
27649
|
+
return n && (u = `${n} ${u}`, l = `${n} ${l}`), r && (u = `${u} ${r}`, l = `${l} ${r}`), /* @__PURE__ */ c.jsx("span", { className: K("time-to-complete", i), "aria-label": u, children: l });
|
|
27643
27650
|
};
|
|
27644
27651
|
const Ek = ({ className: e = "", image: t, ...n }) => t ? (typeof t == "string" && (t = {
|
|
27645
27652
|
width: 1080,
|
|
@@ -27654,7 +27661,7 @@ const Ek = ({ className: e = "", image: t, ...n }) => t ? (typeof t == "string"
|
|
|
27654
27661
|
wr,
|
|
27655
27662
|
{
|
|
27656
27663
|
...n,
|
|
27657
|
-
className:
|
|
27664
|
+
className: K("banner", e),
|
|
27658
27665
|
image: { ...t, aspect: "banner" }
|
|
27659
27666
|
}
|
|
27660
27667
|
)) : null;
|
|
@@ -27725,7 +27732,7 @@ const g_ = [
|
|
|
27725
27732
|
}), /* @__PURE__ */ c.jsx(
|
|
27726
27733
|
Vn,
|
|
27727
27734
|
{
|
|
27728
|
-
className:
|
|
27735
|
+
className: K("banner-section", r, i, e, {
|
|
27729
27736
|
"has-image": n,
|
|
27730
27737
|
"image-full-width": n && u.imageFullWidth,
|
|
27731
27738
|
"image-inline": n && !u.imageFullWidth,
|
|
@@ -27749,7 +27756,7 @@ const g_ = [
|
|
|
27749
27756
|
size: { mobile: "medium", 768: "large" },
|
|
27750
27757
|
href: o.link,
|
|
27751
27758
|
...o.props,
|
|
27752
|
-
className:
|
|
27759
|
+
className: K({
|
|
27753
27760
|
new: r === "subtle",
|
|
27754
27761
|
[(g = o.props) == null ? void 0 : g.className]: (f = o.props) == null ? void 0 : f.className
|
|
27755
27762
|
}),
|
|
@@ -27780,7 +27787,7 @@ const kk = ({
|
|
|
27780
27787
|
return e && (i["--image"] = `url(${e})`), /* @__PURE__ */ c.jsx(
|
|
27781
27788
|
Vn,
|
|
27782
27789
|
{
|
|
27783
|
-
className:
|
|
27790
|
+
className: K("custom-content-banner", t, r, {
|
|
27784
27791
|
"has-image": e
|
|
27785
27792
|
}),
|
|
27786
27793
|
style: i,
|
|
@@ -27795,11 +27802,11 @@ const b_ = ({
|
|
|
27795
27802
|
image: r
|
|
27796
27803
|
}) => {
|
|
27797
27804
|
const i = typeof n == "string" ? /* @__PURE__ */ c.jsx(dr, { children: n }) : n;
|
|
27798
|
-
return /* @__PURE__ */ c.jsxs(Vn, { className:
|
|
27805
|
+
return /* @__PURE__ */ c.jsxs(Vn, { className: K("highlight-section", t), children: [
|
|
27799
27806
|
r && /* @__PURE__ */ c.jsx(
|
|
27800
27807
|
"div",
|
|
27801
27808
|
{
|
|
27802
|
-
className:
|
|
27809
|
+
className: K("highlight-container highlight-image", {
|
|
27803
27810
|
[`highlight-image-${e}`]: e === "right"
|
|
27804
27811
|
}),
|
|
27805
27812
|
children: /* @__PURE__ */ c.jsx(
|
|
@@ -27818,13 +27825,13 @@ const b_ = ({
|
|
|
27818
27825
|
/* @__PURE__ */ c.jsx(
|
|
27819
27826
|
"div",
|
|
27820
27827
|
{
|
|
27821
|
-
className:
|
|
27828
|
+
className: K("highlight-container highlight-content-wrapper", {
|
|
27822
27829
|
"no-image": !r
|
|
27823
27830
|
}),
|
|
27824
27831
|
children: /* @__PURE__ */ c.jsx(
|
|
27825
27832
|
"div",
|
|
27826
27833
|
{
|
|
27827
|
-
className:
|
|
27834
|
+
className: K("highlight-content", {
|
|
27828
27835
|
"highlight-content-right": e === "left"
|
|
27829
27836
|
}),
|
|
27830
27837
|
children: r ? i : /* @__PURE__ */ c.jsx("div", { className: "content-default", children: i })
|
|
@@ -27840,7 +27847,7 @@ const Ak = ({
|
|
|
27840
27847
|
title: n,
|
|
27841
27848
|
text: r,
|
|
27842
27849
|
gtmContext: i
|
|
27843
|
-
}) => !n && !r ? null : /* @__PURE__ */ c.jsxs("aside", { className:
|
|
27850
|
+
}) => !n && !r ? null : /* @__PURE__ */ c.jsxs("aside", { className: K("marketing-block", e), children: [
|
|
27844
27851
|
n && /* @__PURE__ */ c.jsx("p", { className: "title", children: n }),
|
|
27845
27852
|
r && /* @__PURE__ */ c.jsx("p", { children: r }),
|
|
27846
27853
|
t && /* @__PURE__ */ c.jsx(
|
|
@@ -28032,7 +28039,7 @@ const Ak = ({
|
|
|
28032
28039
|
return /* @__PURE__ */ c.jsx(
|
|
28033
28040
|
"p",
|
|
28034
28041
|
{
|
|
28035
|
-
className:
|
|
28042
|
+
className: K("cta-wrapper", {
|
|
28036
28043
|
"has-member-section": e == null ? void 0 : e.members
|
|
28037
28044
|
}),
|
|
28038
28045
|
children: /* @__PURE__ */ c.jsx(
|
|
@@ -28154,7 +28161,7 @@ const fh = ({
|
|
|
28154
28161
|
}, ($ = m == null ? void 0 : m.current) == null || $.focus(), (F = m == null ? void 0 : m.current) == null || F.scrollIntoView({ behavior: "smooth" })), /* @__PURE__ */ c.jsx(
|
|
28155
28162
|
"li",
|
|
28156
28163
|
{
|
|
28157
|
-
className:
|
|
28164
|
+
className: K("card-wrapper text-medium", E, t, {
|
|
28158
28165
|
"has-link": C,
|
|
28159
28166
|
"no-link": !C,
|
|
28160
28167
|
"has-image": f.banner
|
|
@@ -28240,7 +28247,7 @@ const fh = ({
|
|
|
28240
28247
|
}
|
|
28241
28248
|
);
|
|
28242
28249
|
};
|
|
28243
|
-
const C_ = ({ cards: e, cardTypes: t, className: n = "", ...r }) => /* @__PURE__ */ c.jsx("ul", { className:
|
|
28250
|
+
const C_ = ({ cards: e, cardTypes: t, className: n = "", ...r }) => /* @__PURE__ */ c.jsx("ul", { className: K("card-block", n), children: e.map((i, a) => {
|
|
28244
28251
|
const s = i.slug ? `${i.slug}-${t[a]}` : `${t[a]}-${a}`;
|
|
28245
28252
|
return /* @__PURE__ */ c.jsx(
|
|
28246
28253
|
fh,
|
|
@@ -28261,7 +28268,7 @@ const C_ = ({ cards: e, cardTypes: t, className: n = "", ...r }) => /* @__PURE__
|
|
|
28261
28268
|
return null;
|
|
28262
28269
|
const { text: r, element: i = "h2", variant: a = "default", size: s = "medium", link: o } = t;
|
|
28263
28270
|
return te.createElement(i, {
|
|
28264
|
-
className:
|
|
28271
|
+
className: K("title", a, s, {
|
|
28265
28272
|
"highlighted-title": a === "highlighted"
|
|
28266
28273
|
}),
|
|
28267
28274
|
children: /* @__PURE__ */ c.jsxs(c.Fragment, { children: [
|
|
@@ -28374,7 +28381,7 @@ const k_ = ({
|
|
|
28374
28381
|
"section",
|
|
28375
28382
|
{
|
|
28376
28383
|
ref: C,
|
|
28377
|
-
className:
|
|
28384
|
+
className: K("carousel-wrapper", a),
|
|
28378
28385
|
"data-testid": "carousel",
|
|
28379
28386
|
children: [
|
|
28380
28387
|
/* @__PURE__ */ c.jsx(__, { id: e, title: i }),
|
|
@@ -28434,7 +28441,7 @@ const k_ = ({
|
|
|
28434
28441
|
children: /* @__PURE__ */ c.jsx(
|
|
28435
28442
|
"button",
|
|
28436
28443
|
{
|
|
28437
|
-
className:
|
|
28444
|
+
className: K("page-indicator", {
|
|
28438
28445
|
selected: j === v
|
|
28439
28446
|
}),
|
|
28440
28447
|
onClick: (O) => {
|
|
@@ -28525,7 +28532,7 @@ const Tk = ({
|
|
|
28525
28532
|
"data-gtm-event-context": `${r}-NarrowCard`,
|
|
28526
28533
|
"data-gtm-event-type": `${r}-click`
|
|
28527
28534
|
}), te.createElement(e, {
|
|
28528
|
-
className:
|
|
28535
|
+
className: K("narrow-card", t, {
|
|
28529
28536
|
"has-link": l,
|
|
28530
28537
|
"gtm-trackable": l,
|
|
28531
28538
|
"no-link": !l
|
|
@@ -28535,7 +28542,7 @@ const Tk = ({
|
|
|
28535
28542
|
/* @__PURE__ */ c.jsx(
|
|
28536
28543
|
"div",
|
|
28537
28544
|
{
|
|
28538
|
-
className:
|
|
28545
|
+
className: K("img", {
|
|
28539
28546
|
private: o,
|
|
28540
28547
|
"no-image": !i
|
|
28541
28548
|
}),
|
|
@@ -28565,7 +28572,7 @@ const Sk = ({
|
|
|
28565
28572
|
u > 99 ? u = 100 : u < 1 && (u = 0);
|
|
28566
28573
|
const { highlightPercentage: d = !1 } = s;
|
|
28567
28574
|
return te.createElement(e, {
|
|
28568
|
-
className:
|
|
28575
|
+
className: K("course-progression", o, {
|
|
28569
28576
|
"highlight-percentage": d,
|
|
28570
28577
|
"has-circle-graph": a === "circle"
|
|
28571
28578
|
}),
|
|
@@ -28604,7 +28611,7 @@ const F_ = ({
|
|
|
28604
28611
|
title: r,
|
|
28605
28612
|
className: i = ""
|
|
28606
28613
|
}) => te.createElement(e, {
|
|
28607
|
-
className:
|
|
28614
|
+
className: K("lesson-name", i),
|
|
28608
28615
|
"data-number": `${t}.${n}`,
|
|
28609
28616
|
children: r
|
|
28610
28617
|
});
|
|
@@ -28617,8 +28624,8 @@ const A_ = ({
|
|
|
28617
28624
|
children: a
|
|
28618
28625
|
}) => {
|
|
28619
28626
|
const s = ce(), o = io(`lessonType_${i}`) ? s.formatMessage({ id: `lessonType_${i}` }) : qh(i || "");
|
|
28620
|
-
return /* @__PURE__ */ c.jsxs("small", { className:
|
|
28621
|
-
/* @__PURE__ */ c.jsx("span", { className:
|
|
28627
|
+
return /* @__PURE__ */ c.jsxs("small", { className: K("content-type", { [e]: e !== "default" }), children: [
|
|
28628
|
+
/* @__PURE__ */ c.jsx("span", { className: K("type", n), children: o }),
|
|
28622
28629
|
" ",
|
|
28623
28630
|
t > 0 && !r && /* @__PURE__ */ c.jsx(Ko, { time: t }),
|
|
28624
28631
|
" ",
|
|
@@ -28683,7 +28690,7 @@ const jk = ({
|
|
|
28683
28690
|
return w && (z.style = { "--image": `url(${w})` }), /* @__PURE__ */ c.jsx(
|
|
28684
28691
|
"li",
|
|
28685
28692
|
{
|
|
28686
|
-
className:
|
|
28693
|
+
className: K({
|
|
28687
28694
|
article: v === si.ARTICLE,
|
|
28688
28695
|
discussion: v === si.DISCUSSION,
|
|
28689
28696
|
quiz: v === si.QUIZ,
|
|
@@ -28748,7 +28755,7 @@ const Ok = ({
|
|
|
28748
28755
|
hover: "check-inside-circle_no-overlap_inverted"
|
|
28749
28756
|
},
|
|
28750
28757
|
onClick: t,
|
|
28751
|
-
className:
|
|
28758
|
+
className: K("mark-complete-button center gtm-trackable", {
|
|
28752
28759
|
completed: e
|
|
28753
28760
|
}),
|
|
28754
28761
|
"data-gtm-event-type": "mark-as-complete",
|
|
@@ -28899,7 +28906,7 @@ export {
|
|
|
28899
28906
|
Fm as FlagsProvider,
|
|
28900
28907
|
oh as Footer,
|
|
28901
28908
|
pn as Form,
|
|
28902
|
-
|
|
28909
|
+
V as Formatting,
|
|
28903
28910
|
zt as Fragment,
|
|
28904
28911
|
Vn as FullWidthSection,
|
|
28905
28912
|
ru as GET_STREAM_USER_PREFIX,
|