@apolitical/component-library 6.4.0 → 6.4.1-ac.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.js +1 -1
- package/index.mjs +275 -266
- package/package.json +1 -1
- package/style.css +1 -1
- package/styles/base/form/_checkbox.scss +1 -1
- package/styles/base/form/_index.scss +1 -1
- package/styles/base/form/_radio.scss +31 -0
package/index.mjs
CHANGED
|
@@ -75,7 +75,7 @@ var Vc = { exports: {} };
|
|
|
75
75
|
})();
|
|
76
76
|
})(Vc);
|
|
77
77
|
var $h = Vc.exports;
|
|
78
|
-
const
|
|
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:
|
|
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 =
|
|
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:
|
|
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:
|
|
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:
|
|
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:
|
|
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:
|
|
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:
|
|
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:
|
|
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:
|
|
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:
|
|
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:
|
|
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:
|
|
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:
|
|
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:
|
|
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:
|
|
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:
|
|
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:
|
|
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:
|
|
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:
|
|
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:
|
|
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:
|
|
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 })
|
|
@@ -2532,8 +2532,8 @@ const km = ({
|
|
|
2532
2532
|
className: i = ""
|
|
2533
2533
|
}) => {
|
|
2534
2534
|
const a = e ? { "--max-width": `${e / 16}rem` } : {};
|
|
2535
|
-
return /* @__PURE__ */ c.jsxs("section", { className:
|
|
2536
|
-
/* @__PURE__ */ c.jsxs("div", { className:
|
|
2535
|
+
return /* @__PURE__ */ c.jsxs("section", { className: V("page-heading", i), children: [
|
|
2536
|
+
/* @__PURE__ */ c.jsxs("div", { className: V("content", { "has-max-width": e }), style: a, children: [
|
|
2537
2537
|
t && t.text && ee.createElement(t.element || "h1", { className: "title" }, t.text),
|
|
2538
2538
|
n && n.text && ee.createElement(
|
|
2539
2539
|
n.element || "h2",
|
|
@@ -2559,7 +2559,7 @@ const cn = ({
|
|
|
2559
2559
|
}, { 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
2560
|
i && p && (h["aria-describedby"] = p);
|
|
2561
2561
|
const v = ee.createElement(i ? "button" : s, {
|
|
2562
|
-
className:
|
|
2562
|
+
className: V("pill", e, t, n, {
|
|
2563
2563
|
"has-icon": r
|
|
2564
2564
|
}),
|
|
2565
2565
|
style: l,
|
|
@@ -2586,7 +2586,7 @@ const Hr = ({
|
|
|
2586
2586
|
e,
|
|
2587
2587
|
{
|
|
2588
2588
|
...r,
|
|
2589
|
-
className:
|
|
2589
|
+
className: V("status-banner text-small", n),
|
|
2590
2590
|
"aria-live": "assertive"
|
|
2591
2591
|
},
|
|
2592
2592
|
t
|
|
@@ -2706,7 +2706,7 @@ const Im = ({ slug: e }) => {
|
|
|
2706
2706
|
return /* @__PURE__ */ c.jsx(
|
|
2707
2707
|
cn,
|
|
2708
2708
|
{
|
|
2709
|
-
className:
|
|
2709
|
+
className: V("user-badge", a == null ? void 0 : a.toLowerCase()),
|
|
2710
2710
|
icon: i && $m[i],
|
|
2711
2711
|
element: "li",
|
|
2712
2712
|
tooltip: s,
|
|
@@ -2742,7 +2742,7 @@ const zm = ({
|
|
|
2742
2742
|
return /* @__PURE__ */ c.jsx(
|
|
2743
2743
|
"span",
|
|
2744
2744
|
{
|
|
2745
|
-
className:
|
|
2745
|
+
className: V(`progress-bar section-${u}`, s, r, {
|
|
2746
2746
|
[o]: o !== "default",
|
|
2747
2747
|
[l !== "default" ? l : ""]: l !== "default"
|
|
2748
2748
|
}),
|
|
@@ -2775,7 +2775,7 @@ const ka = "loadingBlock_", qm = ({
|
|
|
2775
2775
|
return /* @__PURE__ */ c.jsxs(
|
|
2776
2776
|
$t,
|
|
2777
2777
|
{
|
|
2778
|
-
className:
|
|
2778
|
+
className: V("loading-block", n, {
|
|
2779
2779
|
"has-icon": i && t[i].icon
|
|
2780
2780
|
}),
|
|
2781
2781
|
variant: "subtle",
|
|
@@ -2791,7 +2791,7 @@ const Ht = ({ element: e = "div", className: t = "", ...n }) => /* @__PURE__ */
|
|
|
2791
2791
|
io,
|
|
2792
2792
|
{
|
|
2793
2793
|
element: e,
|
|
2794
|
-
className:
|
|
2794
|
+
className: V("loading-placeholder", t),
|
|
2795
2795
|
...n
|
|
2796
2796
|
}
|
|
2797
2797
|
);
|
|
@@ -2845,7 +2845,7 @@ const Fs = {
|
|
|
2845
2845
|
"course-navigation": ["button", "button"],
|
|
2846
2846
|
"course-lesson-page": ["breadcrumb", "course-navigation", "text-page"],
|
|
2847
2847
|
"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:
|
|
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: V("loading-state", e), ...t, children: Fs[e].map((n, r) => sd(n, r)) }), od = (e) => {
|
|
2849
2849
|
const t = e && e.toUpperCase().trim().split(" ");
|
|
2850
2850
|
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
2851
|
}, oi = ["#5AB6A3", "#A2D7AF", "#806056", "#3962B3"], Wm = (e) => {
|
|
@@ -2882,7 +2882,7 @@ const fu = 256, kn = ({
|
|
|
2882
2882
|
return t && t !== "" && !l && (t.includes("http") || t.includes("//")) && (p = !0), /* @__PURE__ */ c.jsx(
|
|
2883
2883
|
"figure",
|
|
2884
2884
|
{
|
|
2885
|
-
className:
|
|
2885
|
+
className: V("profile-picture", e, { error: l }),
|
|
2886
2886
|
...o,
|
|
2887
2887
|
children: p ? /* @__PURE__ */ c.jsx(
|
|
2888
2888
|
"img",
|
|
@@ -2959,7 +2959,7 @@ const En = ({
|
|
|
2959
2959
|
const L = Vm(_), R = r && r.createdAt ? _s(r.createdAt) : !1, A = r && r.createdAt ? Jc(r.createdAt) : "";
|
|
2960
2960
|
return ee.createElement(e, {
|
|
2961
2961
|
...d,
|
|
2962
|
-
className:
|
|
2962
|
+
className: V("member text-medium", v, f, l, {
|
|
2963
2963
|
"has-profile-link": D
|
|
2964
2964
|
}),
|
|
2965
2965
|
...m,
|
|
@@ -2987,7 +2987,7 @@ const En = ({
|
|
|
2987
2987
|
/* @__PURE__ */ c.jsxs(
|
|
2988
2988
|
"div",
|
|
2989
2989
|
{
|
|
2990
|
-
className:
|
|
2990
|
+
className: V("name", { "new-line": g }),
|
|
2991
2991
|
"data-testid": "member-name",
|
|
2992
2992
|
children: [
|
|
2993
2993
|
/* @__PURE__ */ c.jsx("span", { children: T }),
|
|
@@ -2995,7 +2995,7 @@ const En = ({
|
|
|
2995
2995
|
r && /* @__PURE__ */ c.jsxs(
|
|
2996
2996
|
"span",
|
|
2997
2997
|
{
|
|
2998
|
-
className:
|
|
2998
|
+
className: V("additional-content", {
|
|
2999
2999
|
"new-line": g
|
|
3000
3000
|
}),
|
|
3001
3001
|
children: [
|
|
@@ -3045,7 +3045,7 @@ const En = ({
|
|
|
3045
3045
|
L && !g && /* @__PURE__ */ c.jsx(
|
|
3046
3046
|
"small",
|
|
3047
3047
|
{
|
|
3048
|
-
className:
|
|
3048
|
+
className: V({ "text-medium": v === "large" }),
|
|
3049
3049
|
"data-testid": "member-details",
|
|
3050
3050
|
children: b ? L : /* @__PURE__ */ c.jsxs(c.Fragment, { children: [
|
|
3051
3051
|
_.role,
|
|
@@ -3114,7 +3114,7 @@ const hu = {
|
|
|
3114
3114
|
const h = le();
|
|
3115
3115
|
return !n || n.length === 0 ? null : ee.createElement(e, {
|
|
3116
3116
|
...d,
|
|
3117
|
-
className:
|
|
3117
|
+
className: V("contributors", u, i, { "has-gap": a }),
|
|
3118
3118
|
children: /* @__PURE__ */ c.jsxs(c.Fragment, { children: [
|
|
3119
3119
|
/* @__PURE__ */ c.jsx("ul", { children: n.map((p, m) => {
|
|
3120
3120
|
let v, f = "";
|
|
@@ -3136,7 +3136,7 @@ const hu = {
|
|
|
3136
3136
|
v = /* @__PURE__ */ c.jsxs(
|
|
3137
3137
|
"small",
|
|
3138
3138
|
{
|
|
3139
|
-
className:
|
|
3139
|
+
className: V({ "large-number": b > 99 }),
|
|
3140
3140
|
children: [
|
|
3141
3141
|
"+",
|
|
3142
3142
|
am(b, 0)
|
|
@@ -3144,14 +3144,14 @@ const hu = {
|
|
|
3144
3144
|
}
|
|
3145
3145
|
), f = "number-left";
|
|
3146
3146
|
}
|
|
3147
|
-
return v ? /* @__PURE__ */ c.jsx("li", { className:
|
|
3147
|
+
return v ? /* @__PURE__ */ c.jsx("li", { className: V("contributor", f), children: v }, m) : null;
|
|
3148
3148
|
}) }),
|
|
3149
3149
|
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
3150
|
] })
|
|
3151
3151
|
});
|
|
3152
3152
|
};
|
|
3153
3153
|
const ld = ({ element: e = "section", children: t, className: n, ...r }) => ee.createElement(e, {
|
|
3154
|
-
className:
|
|
3154
|
+
className: V("modal", n),
|
|
3155
3155
|
children: typeof t == "string" ? /* @__PURE__ */ c.jsx("p", { children: t }) : t,
|
|
3156
3156
|
...r
|
|
3157
3157
|
});
|
|
@@ -4844,7 +4844,7 @@ const Fn = ({
|
|
|
4844
4844
|
{
|
|
4845
4845
|
id: `${e}-overlay`,
|
|
4846
4846
|
ref: D,
|
|
4847
|
-
className:
|
|
4847
|
+
className: V("overlay", {
|
|
4848
4848
|
open: f,
|
|
4849
4849
|
"in-portal": d.includes("in-portal")
|
|
4850
4850
|
}),
|
|
@@ -4853,7 +4853,7 @@ const Fn = ({
|
|
|
4853
4853
|
ld,
|
|
4854
4854
|
{
|
|
4855
4855
|
id: e,
|
|
4856
|
-
className:
|
|
4856
|
+
className: V("overlay-modal", d, {
|
|
4857
4857
|
"has-max-width": r
|
|
4858
4858
|
}),
|
|
4859
4859
|
hidden: !f,
|
|
@@ -4932,7 +4932,7 @@ const Fr = "joinCommunityButton", Dd = ({
|
|
|
4932
4932
|
await x();
|
|
4933
4933
|
}, 500), h(!d);
|
|
4934
4934
|
},
|
|
4935
|
-
className:
|
|
4935
|
+
className: V("join-community-button", p, {
|
|
4936
4936
|
active: p === "joining"
|
|
4937
4937
|
}),
|
|
4938
4938
|
disabled: u,
|
|
@@ -4953,7 +4953,7 @@ const Oa = "communityDetails_", hk = ({
|
|
|
4953
4953
|
functions: { invite: s, ...o }
|
|
4954
4954
|
}) => {
|
|
4955
4955
|
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:
|
|
4956
|
+
return /* @__PURE__ */ c.jsxs("div", { className: V("community-details", e), children: [
|
|
4957
4957
|
f ? /* @__PURE__ */ c.jsxs("div", { className: "member-details", children: [
|
|
4958
4958
|
/* @__PURE__ */ c.jsxs("div", { className: "top", children: [
|
|
4959
4959
|
/* @__PURE__ */ c.jsxs("h4", { children: [
|
|
@@ -5008,7 +5008,7 @@ const Yi = ({
|
|
|
5008
5008
|
}) => /* @__PURE__ */ c.jsx(
|
|
5009
5009
|
Fe,
|
|
5010
5010
|
{
|
|
5011
|
-
className:
|
|
5011
|
+
className: V("action-button", t),
|
|
5012
5012
|
variant: "tertiary",
|
|
5013
5013
|
icon: e,
|
|
5014
5014
|
...n
|
|
@@ -5146,7 +5146,7 @@ const Jp = ({
|
|
|
5146
5146
|
/* @__PURE__ */ c.jsx(
|
|
5147
5147
|
Yi,
|
|
5148
5148
|
{
|
|
5149
|
-
className:
|
|
5149
|
+
className: V(
|
|
5150
5150
|
"discussion-button text-medium action-button likes-button",
|
|
5151
5151
|
{
|
|
5152
5152
|
"show-spinner": D,
|
|
@@ -7346,7 +7346,7 @@ const Ig = ({
|
|
|
7346
7346
|
functions: {
|
|
7347
7347
|
onClose: t
|
|
7348
7348
|
},
|
|
7349
|
-
className:
|
|
7349
|
+
className: V("profile-modal in-portal", i, {
|
|
7350
7350
|
open: e
|
|
7351
7351
|
}),
|
|
7352
7352
|
maxWidth: 600,
|
|
@@ -7470,7 +7470,7 @@ const zg = 3e3, qg = ({
|
|
|
7470
7470
|
/* @__PURE__ */ c.jsx(
|
|
7471
7471
|
yr,
|
|
7472
7472
|
{
|
|
7473
|
-
className:
|
|
7473
|
+
className: V({
|
|
7474
7474
|
copied: i.isCopied
|
|
7475
7475
|
}),
|
|
7476
7476
|
isOpen: i.isOpen,
|
|
@@ -7514,7 +7514,7 @@ const Yn = "discussion_", Ug = ({
|
|
|
7514
7514
|
}), /* @__PURE__ */ c.jsxs(
|
|
7515
7515
|
"ul",
|
|
7516
7516
|
{
|
|
7517
|
-
className:
|
|
7517
|
+
className: V("actions text-medium", e),
|
|
7518
7518
|
"data-testid": `${n}-actions`,
|
|
7519
7519
|
children: [
|
|
7520
7520
|
r ? /* @__PURE__ */ c.jsx(
|
|
@@ -7601,7 +7601,7 @@ const vk = ({ breadcrumbs: e, cutoff: t = 20, className: n = "" }) => {
|
|
|
7601
7601
|
children: r.formatMessage({ id: "breadcrumbs_label" })
|
|
7602
7602
|
}
|
|
7603
7603
|
),
|
|
7604
|
-
/* @__PURE__ */ c.jsx("ul", { className:
|
|
7604
|
+
/* @__PURE__ */ c.jsx("ul", { className: V("breadcrumbs text-small", n), children: e.map(
|
|
7605
7605
|
({ text: i, href: a, current: s = !1 }, o) => {
|
|
7606
7606
|
const l = {};
|
|
7607
7607
|
return s && (l["aria-current"] = "location"), /* @__PURE__ */ c.jsxs("li", { children: [
|
|
@@ -7629,7 +7629,7 @@ const jd = ({
|
|
|
7629
7629
|
return /* @__PURE__ */ c.jsxs(
|
|
7630
7630
|
"aside",
|
|
7631
7631
|
{
|
|
7632
|
-
className:
|
|
7632
|
+
className: V("enriched-url gtm-trackable", {
|
|
7633
7633
|
"has-image": t,
|
|
7634
7634
|
[e]: e !== "default"
|
|
7635
7635
|
}),
|
|
@@ -7683,7 +7683,7 @@ const Wg = ({
|
|
|
7683
7683
|
let v = [];
|
|
7684
7684
|
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
7685
|
};
|
|
7686
|
-
return /* @__PURE__ */ c.jsx("ul", { className:
|
|
7686
|
+
return /* @__PURE__ */ c.jsx("ul", { className: V("filters", s), children: l.map(({ id: p, text: m, disabled: v = !1, callback: f = () => {
|
|
7687
7687
|
} }) => {
|
|
7688
7688
|
let b = {};
|
|
7689
7689
|
return v && (b = {
|
|
@@ -7692,7 +7692,7 @@ const Wg = ({
|
|
|
7692
7692
|
}), /* @__PURE__ */ c.jsx("li", { children: /* @__PURE__ */ c.jsx(
|
|
7693
7693
|
"button",
|
|
7694
7694
|
{
|
|
7695
|
-
className:
|
|
7695
|
+
className: V(p, {
|
|
7696
7696
|
selected: u.includes(p)
|
|
7697
7697
|
}),
|
|
7698
7698
|
onClick: (g) => {
|
|
@@ -7736,7 +7736,7 @@ const fi = "languageSwitcher_", bk = ({
|
|
|
7736
7736
|
))
|
|
7737
7737
|
return null;
|
|
7738
7738
|
const v = Object.keys(r), f = h !== e;
|
|
7739
|
-
return /* @__PURE__ */ c.jsxs("div", { className:
|
|
7739
|
+
return /* @__PURE__ */ c.jsxs("div", { className: V("language-switcher text-small", s, l), children: [
|
|
7740
7740
|
/* @__PURE__ */ c.jsxs("nav", { children: [
|
|
7741
7741
|
s !== "short" && /* @__PURE__ */ c.jsx("p", { children: o || u.formatMessage({ id: `${fi}label` }) }),
|
|
7742
7742
|
/* @__PURE__ */ c.jsx("ul", { children: v.map((b) => {
|
|
@@ -7811,7 +7811,7 @@ const Ra = Bh({ locale: "en", messages: xr }), fa = ({
|
|
|
7811
7811
|
v instanceof Error ? h(v.message) : h("Unknown error");
|
|
7812
7812
|
}
|
|
7813
7813
|
};
|
|
7814
|
-
return !d && !e && !o.endOfFeed ? null : /* @__PURE__ */ c.jsx("footer", { className:
|
|
7814
|
+
return !d && !e && !o.endOfFeed ? null : /* @__PURE__ */ c.jsx("footer", { className: V("load-more", l), children: !d && e ? /* @__PURE__ */ c.jsx(
|
|
7815
7815
|
Fe,
|
|
7816
7816
|
{
|
|
7817
7817
|
variant: r,
|
|
@@ -7837,7 +7837,7 @@ const Od = ({
|
|
|
7837
7837
|
"a",
|
|
7838
7838
|
{
|
|
7839
7839
|
href: "/home/",
|
|
7840
|
-
className:
|
|
7840
|
+
className: V("logo", e, t, n),
|
|
7841
7841
|
...r,
|
|
7842
7842
|
children: /* @__PURE__ */ c.jsx($e, { children: /* @__PURE__ */ c.jsx(ct, { id: "apolitical" }) })
|
|
7843
7843
|
}
|
|
@@ -7858,7 +7858,7 @@ const Hg = ({
|
|
|
7858
7858
|
document.removeEventListener("click", l, !0);
|
|
7859
7859
|
})), ee.createElement(e, {
|
|
7860
7860
|
ref: a,
|
|
7861
|
-
className:
|
|
7861
|
+
className: V("more-menu text-medium", r),
|
|
7862
7862
|
children: /* @__PURE__ */ c.jsxs(c.Fragment, { children: [
|
|
7863
7863
|
/* @__PURE__ */ c.jsx(
|
|
7864
7864
|
Fe,
|
|
@@ -7930,7 +7930,7 @@ const Zg = gr(() => Promise.resolve().then(() => Zm)), Yg = [
|
|
|
7930
7930
|
return /* @__PURE__ */ c.jsxs("ul", { id: "navigation-menu", className: "text-medium", children: [
|
|
7931
7931
|
Yg.map(({ key: a, href: s }) => {
|
|
7932
7932
|
const o = Kg(s, e), l = {};
|
|
7933
|
-
return o && (l["aria-current"] = "page"), /* @__PURE__ */ c.jsx("li", { className:
|
|
7933
|
+
return o && (l["aria-current"] = "page"), /* @__PURE__ */ c.jsx("li", { className: V(a, { active: o }), children: /* @__PURE__ */ c.jsx(
|
|
7934
7934
|
"a",
|
|
7935
7935
|
{
|
|
7936
7936
|
href: s,
|
|
@@ -8010,7 +8010,7 @@ const Jg = "shareLinks_", yk = ({
|
|
|
8010
8010
|
className: s = ""
|
|
8011
8011
|
}) => {
|
|
8012
8012
|
const o = le(), l = Qg({ title: e, link: t, referrer: n });
|
|
8013
|
-
return /* @__PURE__ */ c.jsxs("aside", { className:
|
|
8013
|
+
return /* @__PURE__ */ c.jsxs("aside", { className: V("share-links", i, a, s), children: [
|
|
8014
8014
|
/* @__PURE__ */ c.jsx("p", { className: "text-small", children: o.formatMessage({ id: "shareLinks_label" }) }),
|
|
8015
8015
|
/* @__PURE__ */ c.jsx("ul", { children: l.map(({ key: u, icon: d, url: h, shouldRender: p = !0, onClick: m }) => {
|
|
8016
8016
|
if (typeof p == "function" && !p())
|
|
@@ -8108,7 +8108,7 @@ const xk = ({ tabs: e, className: t = "", preventLocationChange: n }) => {
|
|
|
8108
8108
|
href: x || `#${f}`,
|
|
8109
8109
|
id: `tab-${f}`,
|
|
8110
8110
|
"aria-controls": f,
|
|
8111
|
-
className:
|
|
8111
|
+
className: V({ selected: _ }),
|
|
8112
8112
|
role: "tab",
|
|
8113
8113
|
tabIndex: _ ? 0 : -1,
|
|
8114
8114
|
"aria-selected": _,
|
|
@@ -8119,7 +8119,7 @@ const xk = ({ tabs: e, className: t = "", preventLocationChange: n }) => {
|
|
|
8119
8119
|
) }, `tab-${f}`)
|
|
8120
8120
|
);
|
|
8121
8121
|
}
|
|
8122
|
-
), /* @__PURE__ */ c.jsxs("div", { className:
|
|
8122
|
+
), /* @__PURE__ */ c.jsxs("div", { className: V("tabs-wrapper", t), children: [
|
|
8123
8123
|
/* @__PURE__ */ c.jsx("ul", { className: "tabs", role: "tablist", children: p }),
|
|
8124
8124
|
/* @__PURE__ */ c.jsx("div", { className: "tab-content", children: m })
|
|
8125
8125
|
] });
|
|
@@ -8140,7 +8140,7 @@ const Xg = {
|
|
|
8140
8140
|
return ee.Children.count(i) === 1 && (s = ee.Children.toArray(i)[0], s.props && (s = s.props.children)), /* @__PURE__ */ c.jsx(
|
|
8141
8141
|
"section",
|
|
8142
8142
|
{
|
|
8143
|
-
className:
|
|
8143
|
+
className: V("columns", `layout-${e}`, r, {
|
|
8144
8144
|
"has-containers": n
|
|
8145
8145
|
}),
|
|
8146
8146
|
children: ee.Children.map(s, (o, l) => t !== !1 && l === t && a && a < Xg[e] ? null : o)
|
|
@@ -8162,7 +8162,7 @@ const Pd = ({
|
|
|
8162
8162
|
"small",
|
|
8163
8163
|
{
|
|
8164
8164
|
id: e,
|
|
8165
|
-
className:
|
|
8165
|
+
className: V("character-limit", {
|
|
8166
8166
|
"near-limit": l,
|
|
8167
8167
|
"approaching-limit": u
|
|
8168
8168
|
}),
|
|
@@ -8361,7 +8361,7 @@ const mi = "emailHelperTextBox_", nv = ({
|
|
|
8361
8361
|
type: o,
|
|
8362
8362
|
id: n,
|
|
8363
8363
|
name: a,
|
|
8364
|
-
className:
|
|
8364
|
+
className: V(e, t, {
|
|
8365
8365
|
"has-scrollbar": o === "textarea" && m.current && m.current.clientHeight < m.current.scrollHeight
|
|
8366
8366
|
}),
|
|
8367
8367
|
value: l,
|
|
@@ -8488,7 +8488,7 @@ const Gn = {
|
|
|
8488
8488
|
..._,
|
|
8489
8489
|
activePredictionIndex: C
|
|
8490
8490
|
})),
|
|
8491
|
-
className:
|
|
8491
|
+
className: V("predictions-list-item", {
|
|
8492
8492
|
active: C === m
|
|
8493
8493
|
}),
|
|
8494
8494
|
children: F.description
|
|
@@ -8530,7 +8530,16 @@ const Nd = ({
|
|
|
8530
8530
|
tabIndex: -1
|
|
8531
8531
|
}
|
|
8532
8532
|
),
|
|
8533
|
-
/* @__PURE__ */ c.jsx(
|
|
8533
|
+
/* @__PURE__ */ c.jsx(
|
|
8534
|
+
"span",
|
|
8535
|
+
{
|
|
8536
|
+
className: V("pretty-checkbox", {
|
|
8537
|
+
radio: u === "radio"
|
|
8538
|
+
}),
|
|
8539
|
+
"data-testid": "pretty-checkbox",
|
|
8540
|
+
children: u === "radio" && /* @__PURE__ */ c.jsx("span", { className: "radio-inner" })
|
|
8541
|
+
}
|
|
8542
|
+
),
|
|
8534
8543
|
/* @__PURE__ */ c.jsx(
|
|
8535
8544
|
"label",
|
|
8536
8545
|
{
|
|
@@ -8574,7 +8583,7 @@ const Nd = ({
|
|
|
8574
8583
|
break;
|
|
8575
8584
|
}
|
|
8576
8585
|
} : void 0,
|
|
8577
|
-
className:
|
|
8586
|
+
className: V(i, "checkbox-wrapper", e, {
|
|
8578
8587
|
"is-checked": d
|
|
8579
8588
|
}),
|
|
8580
8589
|
...p,
|
|
@@ -8589,7 +8598,7 @@ const av = nn(function({
|
|
|
8589
8598
|
return /* @__PURE__ */ c.jsx(
|
|
8590
8599
|
io,
|
|
8591
8600
|
{
|
|
8592
|
-
className:
|
|
8601
|
+
className: V("rotating-chevron", `direction-${t}`)
|
|
8593
8602
|
}
|
|
8594
8603
|
);
|
|
8595
8604
|
});
|
|
@@ -8625,7 +8634,7 @@ const sv = ({
|
|
|
8625
8634
|
} else
|
|
8626
8635
|
b([]), x && x([]);
|
|
8627
8636
|
};
|
|
8628
|
-
return /* @__PURE__ */ c.jsxs("div", { className:
|
|
8637
|
+
return /* @__PURE__ */ c.jsxs("div", { className: V("dropdown-wrapper", e), children: [
|
|
8629
8638
|
/* @__PURE__ */ c.jsxs(
|
|
8630
8639
|
"button",
|
|
8631
8640
|
{
|
|
@@ -8710,7 +8719,7 @@ const sv = ({
|
|
|
8710
8719
|
return /* @__PURE__ */ c.jsx("li", { "data-testid": "dropdown-options", children: /* @__PURE__ */ c.jsxs(
|
|
8711
8720
|
"button",
|
|
8712
8721
|
{
|
|
8713
|
-
className:
|
|
8722
|
+
className: V("gtm-trackable", {
|
|
8714
8723
|
selected: $,
|
|
8715
8724
|
"selected-single": $ && !o
|
|
8716
8725
|
}),
|
|
@@ -8724,7 +8733,7 @@ const sv = ({
|
|
|
8724
8733
|
"data-testid": $ ? "current-selection" : "",
|
|
8725
8734
|
children: [
|
|
8726
8735
|
o && /* @__PURE__ */ c.jsx("span", { className: "pretty-checkbox", "data-testid": "pretty-checkbox" }),
|
|
8727
|
-
/* @__PURE__ */ c.jsx("span", { className:
|
|
8736
|
+
/* @__PURE__ */ c.jsx("span", { className: V({ "menu-option-label": o }), children: T.label })
|
|
8728
8737
|
]
|
|
8729
8738
|
}
|
|
8730
8739
|
) }, T.id);
|
|
@@ -8855,7 +8864,7 @@ const ov = ({
|
|
|
8855
8864
|
return /* @__PURE__ */ c.jsxs(
|
|
8856
8865
|
"fieldset",
|
|
8857
8866
|
{
|
|
8858
|
-
className:
|
|
8867
|
+
className: V("multiple-inputs field-wrapper", {
|
|
8859
8868
|
"has-button": D,
|
|
8860
8869
|
"has-legend": t
|
|
8861
8870
|
}),
|
|
@@ -8947,7 +8956,7 @@ const Nu = ({
|
|
|
8947
8956
|
"ul",
|
|
8948
8957
|
{
|
|
8949
8958
|
...m,
|
|
8950
|
-
className:
|
|
8959
|
+
className: V("options-wrapper", e, {
|
|
8951
8960
|
"with-pills filters": p
|
|
8952
8961
|
}),
|
|
8953
8962
|
"data-testid": `ul-${r}`,
|
|
@@ -9011,7 +9020,7 @@ const uv = ({
|
|
|
9011
9020
|
"button",
|
|
9012
9021
|
{
|
|
9013
9022
|
type: "button",
|
|
9014
|
-
className:
|
|
9023
|
+
className: V("show-password gtm-trackable", {
|
|
9015
9024
|
"password-visible": l
|
|
9016
9025
|
}),
|
|
9017
9026
|
"data-gtm-event-context": n,
|
|
@@ -9112,7 +9121,7 @@ const Qn = {
|
|
|
9112
9121
|
{
|
|
9113
9122
|
...T,
|
|
9114
9123
|
label: P,
|
|
9115
|
-
className:
|
|
9124
|
+
className: V("field-wrapper", i)
|
|
9116
9125
|
}
|
|
9117
9126
|
),
|
|
9118
9127
|
/* @__PURE__ */ c.jsx(L, { as: "p" })
|
|
@@ -9125,7 +9134,7 @@ const Qn = {
|
|
|
9125
9134
|
});
|
|
9126
9135
|
return /* @__PURE__ */ c.jsx(c.Fragment, { children: ee.createElement(
|
|
9127
9136
|
x ? "fieldset" : "div",
|
|
9128
|
-
{ className:
|
|
9137
|
+
{ className: V("field-wrapper text-medium", i) },
|
|
9129
9138
|
/* @__PURE__ */ c.jsxs(c.Fragment, {
|
|
9130
9139
|
/* 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
9140
|
children: [
|
|
@@ -9399,7 +9408,7 @@ const mn = ({
|
|
|
9399
9408
|
{
|
|
9400
9409
|
...g,
|
|
9401
9410
|
icon: ne ? { icon: "tick", position: "left" } : !1,
|
|
9402
|
-
className:
|
|
9411
|
+
className: V("gtm-trackable", g.className),
|
|
9403
9412
|
onClick: j,
|
|
9404
9413
|
disabled: U || ne || s.disabled,
|
|
9405
9414
|
"data-gtm-event-context": d.context,
|
|
@@ -9409,7 +9418,7 @@ const mn = ({
|
|
|
9409
9418
|
];
|
|
9410
9419
|
return D && z.unshift({
|
|
9411
9420
|
...o,
|
|
9412
|
-
className:
|
|
9421
|
+
className: V("gtm-trackable", o.className),
|
|
9413
9422
|
"data-gtm-event-context": d.context,
|
|
9414
9423
|
"data-gtm-event-type": d.event,
|
|
9415
9424
|
disabled: U || ne,
|
|
@@ -9421,7 +9430,7 @@ const mn = ({
|
|
|
9421
9430
|
{
|
|
9422
9431
|
...p,
|
|
9423
9432
|
id: r,
|
|
9424
|
-
className:
|
|
9433
|
+
className: V("form", n),
|
|
9425
9434
|
ref: G
|
|
9426
9435
|
},
|
|
9427
9436
|
/* @__PURE__ */ c.jsxs(c.Fragment, { children: [
|
|
@@ -9472,7 +9481,7 @@ const mn = ({
|
|
|
9472
9481
|
b ? null : (U || ne) && f ? f : /* @__PURE__ */ c.jsx(
|
|
9473
9482
|
ti,
|
|
9474
9483
|
{
|
|
9475
|
-
className:
|
|
9484
|
+
className: V("cta", {
|
|
9476
9485
|
center: U || ne,
|
|
9477
9486
|
submitted: ne
|
|
9478
9487
|
}),
|
|
@@ -9497,13 +9506,13 @@ const pi = "passwordRules_", Rd = "isMoreThanEightCharacters", $d = "includesNum
|
|
|
9497
9506
|
className: t = ""
|
|
9498
9507
|
}) => {
|
|
9499
9508
|
const n = le();
|
|
9500
|
-
return /* @__PURE__ */ c.jsxs("aside", { className:
|
|
9509
|
+
return /* @__PURE__ */ c.jsxs("aside", { className: V("password-rules", t), children: [
|
|
9501
9510
|
/* @__PURE__ */ c.jsx("small", { children: n.formatMessage({ id: `${pi}intro` }) }),
|
|
9502
9511
|
/* @__PURE__ */ c.jsx("ul", { children: [Rd, $d, Id].map(
|
|
9503
9512
|
(r) => /* @__PURE__ */ c.jsxs(
|
|
9504
9513
|
"li",
|
|
9505
9514
|
{
|
|
9506
|
-
className:
|
|
9515
|
+
className: V({ matches: e[r] }),
|
|
9507
9516
|
children: [
|
|
9508
9517
|
/* @__PURE__ */ c.jsxs($e, { children: [
|
|
9509
9518
|
n.formatMessage({ id: `${pi}rule_label` }),
|
|
@@ -9572,14 +9581,14 @@ const Dk = ({
|
|
|
9572
9581
|
u((x) => ({ ...x, disabled: !1 }));
|
|
9573
9582
|
}
|
|
9574
9583
|
};
|
|
9575
|
-
return /* @__PURE__ */ c.jsxs("div", { className:
|
|
9584
|
+
return /* @__PURE__ */ c.jsxs("div", { className: V("rating", a), children: [
|
|
9576
9585
|
/* @__PURE__ */ c.jsx("span", { className: "label", children: f[p ? "success" : "text"] }),
|
|
9577
9586
|
/* @__PURE__ */ c.jsx("ol", { children: Array.from(new Array(t).keys()).map((g) => {
|
|
9578
9587
|
const x = g + 1;
|
|
9579
9588
|
return /* @__PURE__ */ c.jsx(
|
|
9580
9589
|
"li",
|
|
9581
9590
|
{
|
|
9582
|
-
className:
|
|
9591
|
+
className: V({ selected: p && x <= p }),
|
|
9583
9592
|
children: /* @__PURE__ */ c.jsx(
|
|
9584
9593
|
Fe,
|
|
9585
9594
|
{
|
|
@@ -9631,7 +9640,7 @@ const Dk = ({
|
|
|
9631
9640
|
console.error(e);
|
|
9632
9641
|
}
|
|
9633
9642
|
}, pn = At(hv);
|
|
9634
|
-
var
|
|
9643
|
+
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
9644
|
const mv = ({
|
|
9636
9645
|
attributes: e,
|
|
9637
9646
|
children: t,
|
|
@@ -9639,13 +9648,13 @@ const mv = ({
|
|
|
9639
9648
|
}) => {
|
|
9640
9649
|
const r = n;
|
|
9641
9650
|
switch (r.type) {
|
|
9642
|
-
case
|
|
9651
|
+
case H.blockquote:
|
|
9643
9652
|
return /* @__PURE__ */ c.jsx("blockquote", { className: "subtle", ...e, children: t });
|
|
9644
|
-
case
|
|
9653
|
+
case H.link:
|
|
9645
9654
|
return /* @__PURE__ */ c.jsx("a", { ...e, children: t });
|
|
9646
|
-
case
|
|
9655
|
+
case H.li:
|
|
9647
9656
|
return /* @__PURE__ */ c.jsx("li", { ...e, children: t });
|
|
9648
|
-
case
|
|
9657
|
+
case H.mention:
|
|
9649
9658
|
const i = r;
|
|
9650
9659
|
return i != null && i.name && i.name === Li ? /* @__PURE__ */ c.jsxs("span", { ...e, className: "mention deleted-user", children: [
|
|
9651
9660
|
"@",
|
|
@@ -9656,20 +9665,20 @@ const mv = ({
|
|
|
9656
9665
|
(i == null ? void 0 : i.name) || "",
|
|
9657
9666
|
t
|
|
9658
9667
|
] });
|
|
9659
|
-
case
|
|
9668
|
+
case H.ol:
|
|
9660
9669
|
return /* @__PURE__ */ c.jsx("ol", { ...e, children: t });
|
|
9661
|
-
case
|
|
9670
|
+
case H.ul:
|
|
9662
9671
|
return /* @__PURE__ */ c.jsx("ul", { ...e, children: t });
|
|
9663
|
-
case
|
|
9672
|
+
case H.span:
|
|
9664
9673
|
return /* @__PURE__ */ c.jsx("span", { ...e, children: t });
|
|
9665
|
-
case
|
|
9674
|
+
case H.paragraph:
|
|
9666
9675
|
return /* @__PURE__ */ c.jsx("p", { ...e, children: t });
|
|
9667
9676
|
default:
|
|
9668
9677
|
return /* @__PURE__ */ c.jsx("span", { ...e, children: t });
|
|
9669
9678
|
}
|
|
9670
9679
|
}, pv = ({ attributes: e, children: t, leaf: n }) => {
|
|
9671
9680
|
const r = n;
|
|
9672
|
-
return r[
|
|
9681
|
+
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
9682
|
};
|
|
9674
9683
|
var gv = yv, Ld = "֑-߿יִ-﷽ﹰ-ﻼ", zd = "A-Za-zÀ-ÖØ-öø-ʸ̀-ࠀ-Ⰰ-︀--", vv = new RegExp("^[^" + zd + "]*[" + Ld + "]"), bv = new RegExp("^[^" + Ld + "]*[" + zd + "]");
|
|
9675
9684
|
function yv(e) {
|
|
@@ -17427,7 +17436,7 @@ const Vs = "MENTION: ", jf = {
|
|
|
17427
17436
|
}
|
|
17428
17437
|
const [i] = y.nodes(e, {
|
|
17429
17438
|
at: r,
|
|
17430
|
-
match: (a) => a.type ===
|
|
17439
|
+
match: (a) => a.type === H.link
|
|
17431
17440
|
});
|
|
17432
17441
|
if (i) {
|
|
17433
17442
|
const a = i[0], s = so(a.link), o = a.children[0], l = (o == null ? void 0 : o.text) || "";
|
|
@@ -17438,15 +17447,15 @@ const Vs = "MENTION: ", jf = {
|
|
|
17438
17447
|
};
|
|
17439
17448
|
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
17449
|
const ir = {
|
|
17441
|
-
[
|
|
17442
|
-
[
|
|
17443
|
-
[
|
|
17444
|
-
[
|
|
17445
|
-
[
|
|
17446
|
-
[
|
|
17447
|
-
[
|
|
17448
|
-
[
|
|
17449
|
-
[
|
|
17450
|
+
[H.paragraph]: H.paragraph,
|
|
17451
|
+
[H.blockquote]: H.blockquote,
|
|
17452
|
+
[H.codeblock]: H.codeblock,
|
|
17453
|
+
[H.link]: H.link,
|
|
17454
|
+
[H.ul]: H.ul,
|
|
17455
|
+
[H.ol]: H.ol,
|
|
17456
|
+
[H.li]: H.li,
|
|
17457
|
+
[H.mention]: H.mention,
|
|
17458
|
+
[H.heading]: {
|
|
17450
17459
|
1: "heading_one",
|
|
17451
17460
|
2: "heading_two",
|
|
17452
17461
|
3: "heading_three",
|
|
@@ -17454,13 +17463,13 @@ const ir = {
|
|
|
17454
17463
|
5: "heading_five",
|
|
17455
17464
|
6: "heading_six"
|
|
17456
17465
|
},
|
|
17457
|
-
[un.emphasis]:
|
|
17458
|
-
[un.strong]:
|
|
17459
|
-
[un.delete]:
|
|
17460
|
-
[un.code]:
|
|
17461
|
-
[
|
|
17462
|
-
[
|
|
17463
|
-
[
|
|
17466
|
+
[un.emphasis]: H.italic,
|
|
17467
|
+
[un.strong]: H.bold,
|
|
17468
|
+
[un.delete]: H.strikethrough,
|
|
17469
|
+
[un.code]: H.code,
|
|
17470
|
+
[H.hr]: H.hr,
|
|
17471
|
+
[H.image]: H.image,
|
|
17472
|
+
[H.h3]: H.h3
|
|
17464
17473
|
};
|
|
17465
17474
|
function nc(e) {
|
|
17466
17475
|
if (e)
|
|
@@ -21625,9 +21634,9 @@ function Zf(e, t) {
|
|
|
21625
21634
|
const n = {
|
|
21626
21635
|
...ir,
|
|
21627
21636
|
...t == null ? void 0 : t.nodeTypes,
|
|
21628
|
-
[
|
|
21629
|
-
...ir[
|
|
21630
|
-
...(l = t == null ? void 0 : t.nodeTypes) == null ? void 0 : l[
|
|
21637
|
+
[H.heading]: {
|
|
21638
|
+
...ir[H.heading],
|
|
21639
|
+
...(l = t == null ? void 0 : t.nodeTypes) == null ? void 0 : l[H.heading]
|
|
21631
21640
|
}
|
|
21632
21641
|
}, 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
21642
|
let s = [{ text: "" }];
|
|
@@ -21643,49 +21652,49 @@ function Zf(e, t) {
|
|
|
21643
21652
|
)), e.type) {
|
|
21644
21653
|
case bt.heading:
|
|
21645
21654
|
return {
|
|
21646
|
-
type: n[
|
|
21655
|
+
type: n[H.heading][e.depth || 1],
|
|
21647
21656
|
// we need to flag the type of heading in the children to ensure it renders as the correct heading type
|
|
21648
21657
|
children: s.map((h) => ({
|
|
21649
21658
|
...h,
|
|
21650
|
-
[n[
|
|
21659
|
+
[n[H.heading][e.depth || 1]]: !0
|
|
21651
21660
|
}))
|
|
21652
21661
|
};
|
|
21653
21662
|
case bt.list:
|
|
21654
21663
|
return {
|
|
21655
|
-
type: e.ordered ? n[
|
|
21664
|
+
type: e.ordered ? n[H.ol] : n[H.ul],
|
|
21656
21665
|
children: s
|
|
21657
21666
|
};
|
|
21658
21667
|
case bt.listItem:
|
|
21659
|
-
return { type: n[
|
|
21668
|
+
return { type: n[H.li], children: s };
|
|
21660
21669
|
case bt.paragraph:
|
|
21661
|
-
return { type: n[
|
|
21670
|
+
return { type: n[H.paragraph], children: s };
|
|
21662
21671
|
case bt.link:
|
|
21663
21672
|
return {
|
|
21664
|
-
type: n[
|
|
21673
|
+
type: n[H.link],
|
|
21665
21674
|
[r]: e.url,
|
|
21666
21675
|
children: s
|
|
21667
21676
|
};
|
|
21668
21677
|
case bt.image:
|
|
21669
21678
|
return {
|
|
21670
|
-
type: n[
|
|
21679
|
+
type: n[H.image],
|
|
21671
21680
|
children: [{ text: "" }],
|
|
21672
21681
|
[i]: e.url,
|
|
21673
21682
|
[a]: e.alt
|
|
21674
21683
|
};
|
|
21675
21684
|
case bt.blockquote:
|
|
21676
|
-
return { type: n[
|
|
21685
|
+
return { type: n[H.blockquote], children: s };
|
|
21677
21686
|
case bt.code:
|
|
21678
21687
|
return {
|
|
21679
|
-
type: n[
|
|
21688
|
+
type: n[H.codeblock],
|
|
21680
21689
|
language: e.lang,
|
|
21681
21690
|
children: [{ text: e.value }]
|
|
21682
21691
|
};
|
|
21683
21692
|
case bt.html:
|
|
21684
21693
|
return (u = e.value) != null && u.includes("<br>") ? {
|
|
21685
21694
|
break: !0,
|
|
21686
|
-
type: n[
|
|
21695
|
+
type: n[H.paragraph],
|
|
21687
21696
|
children: [{ text: ((d = e.value) == null ? void 0 : d.replace(/<br>/g, "")) || "" }]
|
|
21688
|
-
} : { type:
|
|
21697
|
+
} : { type: H.paragraph, children: [{ text: e.value || "" }] };
|
|
21689
21698
|
case bt.emphasis:
|
|
21690
21699
|
return {
|
|
21691
21700
|
[n[un.emphasis]]: !0,
|
|
@@ -21712,7 +21721,7 @@ function Zf(e, t) {
|
|
|
21712
21721
|
};
|
|
21713
21722
|
case bt.thematicBreak:
|
|
21714
21723
|
return {
|
|
21715
|
-
type: n[
|
|
21724
|
+
type: n[H.hr],
|
|
21716
21725
|
children: [{ text: "" }]
|
|
21717
21726
|
};
|
|
21718
21727
|
case "text":
|
|
@@ -21736,20 +21745,20 @@ const TC = function(t) {
|
|
|
21736
21745
|
xD().use(BC).use(TC).process(e).then((n) => {
|
|
21737
21746
|
const r = Ut(n.result), i = (s) => {
|
|
21738
21747
|
const o = s;
|
|
21739
|
-
[
|
|
21748
|
+
[H.li, H.blockquote].includes(o.type) && o.children.map((l, u) => {
|
|
21740
21749
|
const d = l;
|
|
21741
|
-
d.type ===
|
|
21750
|
+
d.type === H.paragraph && o.children.splice(u, 1, ...d.children);
|
|
21742
21751
|
}), "children" in s && s.children && s.children.forEach((l) => i(l));
|
|
21743
21752
|
};
|
|
21744
21753
|
r.forEach(i);
|
|
21745
21754
|
const a = (s) => {
|
|
21746
21755
|
for (let o = 0; o < s.length; o++) {
|
|
21747
21756
|
const l = s[o], u = l;
|
|
21748
|
-
if (u.type ===
|
|
21757
|
+
if (u.type === H.link) {
|
|
21749
21758
|
const d = u.children && u.children[0];
|
|
21750
21759
|
if (d && "text" in d && d.text.includes(Vs)) {
|
|
21751
21760
|
const h = u, p = d.text.replace(Vs, ""), m = "link" in h && h.link ? h.link : "";
|
|
21752
|
-
h.type =
|
|
21761
|
+
h.type = H.mention, h.id = m, h.name = p, h.children = [{ text: "" }], s[o + 1] || s.splice(o + 1, 0, { text: " " }), o++;
|
|
21753
21762
|
}
|
|
21754
21763
|
}
|
|
21755
21764
|
"children" in l && l.children && a(l.children);
|
|
@@ -21762,7 +21771,7 @@ const TC = function(t) {
|
|
|
21762
21771
|
u && u.map((d) => {
|
|
21763
21772
|
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
21773
|
{ text: m },
|
|
21765
|
-
{ text: h, [
|
|
21774
|
+
{ text: h, [H.strikethrough]: !0 },
|
|
21766
21775
|
{ text: v }
|
|
21767
21776
|
];
|
|
21768
21777
|
s.children.splice(l, 1, ...f);
|
|
@@ -21798,24 +21807,24 @@ const TC = function(t) {
|
|
|
21798
21807
|
}, PC = (e) => {
|
|
21799
21808
|
for (const [t] of oe.descendants(e)) {
|
|
21800
21809
|
const n = t;
|
|
21801
|
-
if (n.type ===
|
|
21810
|
+
if (n.type === H.link)
|
|
21802
21811
|
return n.link;
|
|
21803
21812
|
}
|
|
21804
21813
|
return null;
|
|
21805
21814
|
}, Fc = {
|
|
21806
|
-
"mod+b":
|
|
21807
|
-
"mod+i":
|
|
21808
|
-
"mod+shift+x":
|
|
21809
|
-
"mod+k":
|
|
21810
|
-
"mod+shift+7":
|
|
21811
|
-
"mod+shift+8":
|
|
21812
|
-
"mod+shift+9":
|
|
21815
|
+
"mod+b": H.bold,
|
|
21816
|
+
"mod+i": H.italic,
|
|
21817
|
+
"mod+shift+x": H.strikethrough,
|
|
21818
|
+
"mod+k": H.link,
|
|
21819
|
+
"mod+shift+7": H.ol,
|
|
21820
|
+
"mod+shift+8": H.ul,
|
|
21821
|
+
"mod+shift+9": H.blockquote
|
|
21813
21822
|
}, NC = (e, t, n, r) => {
|
|
21814
21823
|
for (const i in Fc)
|
|
21815
21824
|
if (B1(i, e)) {
|
|
21816
21825
|
e.stopPropagation(), e.preventDefault();
|
|
21817
21826
|
const a = Fc[i];
|
|
21818
|
-
if (a ===
|
|
21827
|
+
if (a === H.link) {
|
|
21819
21828
|
n([{ type: "showLinkEditor", value: !0 }]);
|
|
21820
21829
|
return;
|
|
21821
21830
|
}
|
|
@@ -21833,7 +21842,7 @@ const TC = function(t) {
|
|
|
21833
21842
|
const o = s.userId || "", l = (d = s.user) == null ? void 0 : d.name;
|
|
21834
21843
|
n([{ type: "mentionPopover", value: { ...t, show: !1 } }]);
|
|
21835
21844
|
const u = {
|
|
21836
|
-
type:
|
|
21845
|
+
type: H.mention,
|
|
21837
21846
|
id: o,
|
|
21838
21847
|
name: l,
|
|
21839
21848
|
children: [{ text: "" }]
|
|
@@ -21890,9 +21899,9 @@ const TC = function(t) {
|
|
|
21890
21899
|
}
|
|
21891
21900
|
return t;
|
|
21892
21901
|
}, Xn = (e) => typeof e.text == "string", RC = [
|
|
21893
|
-
|
|
21894
|
-
|
|
21895
|
-
|
|
21902
|
+
H.hr,
|
|
21903
|
+
H.image,
|
|
21904
|
+
H.mention
|
|
21896
21905
|
], Ac = "<br>";
|
|
21897
21906
|
function Qf(e, t = { nodeTypes: ir }) {
|
|
21898
21907
|
const {
|
|
@@ -21905,12 +21914,12 @@ function Qf(e, t = { nodeTypes: ir }) {
|
|
|
21905
21914
|
...ir,
|
|
21906
21915
|
...n,
|
|
21907
21916
|
heading: {
|
|
21908
|
-
...ir[
|
|
21909
|
-
...n[
|
|
21917
|
+
...ir[H.heading],
|
|
21918
|
+
...n[H.heading]
|
|
21910
21919
|
}
|
|
21911
|
-
}, l = [o[
|
|
21920
|
+
}, l = [o[H.ul], o[H.ol]];
|
|
21912
21921
|
let u = a;
|
|
21913
|
-
if (!Xn(e) && s !==
|
|
21922
|
+
if (!Xn(e) && s !== H.mention && (u = e.children.map((d) => {
|
|
21914
21923
|
const h = Xn(d) ? !1 : l.includes(d.type || ""), p = l.includes(e.type || "");
|
|
21915
21924
|
let m = !1;
|
|
21916
21925
|
return !Xn(e) && Array.isArray(e.children) && (m = e.children.some(
|
|
@@ -21930,65 +21939,65 @@ function Qf(e, t = { nodeTypes: ir }) {
|
|
|
21930
21939
|
!d.break,
|
|
21931
21940
|
// track depth of nested lists so we can add proper spacing
|
|
21932
21941
|
listDepth: l.includes(d.type || "") ? i + 1 : i,
|
|
21933
|
-
inBlockquote: s === o[
|
|
21942
|
+
inBlockquote: s === o[H.blockquote] || e.parentType === o[H.blockquote]
|
|
21934
21943
|
}
|
|
21935
21944
|
);
|
|
21936
21945
|
}).join("")), !r && (a === "" || a === `
|
|
21937
|
-
`) && e.parentType === o[
|
|
21938
|
-
switch (u !== Ac && Xn(e) && (e[
|
|
21939
|
-
case o[
|
|
21946
|
+
`) && e.parentType === o[H.paragraph] && s !== o[H.mention] && (s = o[H.paragraph], u = Ac), !(u === "" && !RC.find((d) => o[d] === s)))
|
|
21947
|
+
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) {
|
|
21948
|
+
case o[H.heading][1]:
|
|
21940
21949
|
return `# ${u}
|
|
21941
21950
|
`;
|
|
21942
|
-
case o[
|
|
21951
|
+
case o[H.heading][2]:
|
|
21943
21952
|
return `## ${u}
|
|
21944
21953
|
`;
|
|
21945
|
-
case o[
|
|
21954
|
+
case o[H.heading][3]:
|
|
21946
21955
|
return `### ${u}
|
|
21947
21956
|
`;
|
|
21948
|
-
case o[
|
|
21957
|
+
case o[H.heading][4]:
|
|
21949
21958
|
return `#### ${u}
|
|
21950
21959
|
`;
|
|
21951
|
-
case o[
|
|
21960
|
+
case o[H.heading][5]:
|
|
21952
21961
|
return `##### ${u}
|
|
21953
21962
|
`;
|
|
21954
|
-
case o[
|
|
21963
|
+
case o[H.heading][6]:
|
|
21955
21964
|
return `###### ${u}
|
|
21956
21965
|
`;
|
|
21957
|
-
case o[
|
|
21966
|
+
case o[H.blockquote]:
|
|
21958
21967
|
return `> ${u}
|
|
21959
21968
|
|
|
21960
21969
|
`;
|
|
21961
|
-
case o[
|
|
21970
|
+
case o[H.codeblock]:
|
|
21962
21971
|
return `\`\`\`${e.language || ""}
|
|
21963
21972
|
${u}
|
|
21964
21973
|
\`\`\`
|
|
21965
21974
|
`;
|
|
21966
|
-
case o[
|
|
21975
|
+
case o[H.link]:
|
|
21967
21976
|
return `[${u}](${e.link || ""})`;
|
|
21968
21977
|
case o.image:
|
|
21969
21978
|
return ``;
|
|
21970
|
-
case o[
|
|
21979
|
+
case o[H.mention]:
|
|
21971
21980
|
const { id: d } = e;
|
|
21972
21981
|
return e ? `@{{${d}}}` : u;
|
|
21973
|
-
case o[
|
|
21974
|
-
case o[
|
|
21982
|
+
case o[H.ul]:
|
|
21983
|
+
case o[H.ol]:
|
|
21975
21984
|
return `
|
|
21976
21985
|
${u}
|
|
21977
21986
|
|
|
21978
21987
|
`;
|
|
21979
|
-
case o[
|
|
21980
|
-
const h = e && e.parentType === o[
|
|
21988
|
+
case o[H.li]:
|
|
21989
|
+
const h = e && e.parentType === o[H.ol], p = e.children.length === 1 && Xn(e.children[0]);
|
|
21981
21990
|
let m = "";
|
|
21982
21991
|
for (let v = 0; i > v; v++)
|
|
21983
21992
|
h ? m += " " : m += " ";
|
|
21984
21993
|
return t.inBlockquote && (m = "> " + m), `
|
|
21985
21994
|
${m}${h ? "1." : "-"} ${u}${p ? `
|
|
21986
21995
|
` : ""}`;
|
|
21987
|
-
case o[
|
|
21996
|
+
case o[H.paragraph]:
|
|
21988
21997
|
return `${u}
|
|
21989
21998
|
|
|
21990
21999
|
`;
|
|
21991
|
-
case o[
|
|
22000
|
+
case o[H.hr]:
|
|
21992
22001
|
return `---
|
|
21993
22002
|
`;
|
|
21994
22003
|
default:
|
|
@@ -22024,7 +22033,7 @@ const IC = ({
|
|
|
22024
22033
|
En,
|
|
22025
22034
|
{
|
|
22026
22035
|
element: "li",
|
|
22027
|
-
className:
|
|
22036
|
+
className: V({ selected: f === u }),
|
|
22028
22037
|
member: { id: m, ...v, link: !1 },
|
|
22029
22038
|
functions: {
|
|
22030
22039
|
onClick: (b) => {
|
|
@@ -22045,7 +22054,7 @@ const IC = ({
|
|
|
22045
22054
|
En,
|
|
22046
22055
|
{
|
|
22047
22056
|
element: "li",
|
|
22048
|
-
className:
|
|
22057
|
+
className: V("fallback", {
|
|
22049
22058
|
selected: d.length === u
|
|
22050
22059
|
}),
|
|
22051
22060
|
member: {
|
|
@@ -22115,7 +22124,7 @@ const Jf = ({ formID: e, label: t, showLabel: n }) => {
|
|
|
22115
22124
|
"li",
|
|
22116
22125
|
{
|
|
22117
22126
|
id: `${d}-${e}`,
|
|
22118
|
-
className:
|
|
22127
|
+
className: V(e, { "has-divider": n }),
|
|
22119
22128
|
onMouseEnter: () => {
|
|
22120
22129
|
v([{ type: "openTooltip", value: e }]);
|
|
22121
22130
|
},
|
|
@@ -22142,7 +22151,7 @@ const Jf = ({ formID: e, label: t, showLabel: n }) => {
|
|
|
22142
22151
|
{
|
|
22143
22152
|
...o,
|
|
22144
22153
|
...f,
|
|
22145
|
-
className:
|
|
22154
|
+
className: V(e, i, { active: t }),
|
|
22146
22155
|
onClick: (b) => {
|
|
22147
22156
|
b.stopPropagation(), b.preventDefault();
|
|
22148
22157
|
},
|
|
@@ -22196,7 +22205,7 @@ const Jf = ({ formID: e, label: t, showLabel: n }) => {
|
|
|
22196
22205
|
]
|
|
22197
22206
|
}
|
|
22198
22207
|
);
|
|
22199
|
-
}, Tc = [
|
|
22208
|
+
}, Tc = [H.ol, H.ul], Xf = (e, t) => {
|
|
22200
22209
|
const { selection: n } = e;
|
|
22201
22210
|
if (!n)
|
|
22202
22211
|
return !1;
|
|
@@ -22212,7 +22221,7 @@ const Jf = ({ formID: e, label: t, showLabel: n }) => {
|
|
|
22212
22221
|
return !!r;
|
|
22213
22222
|
}, LC = (e) => {
|
|
22214
22223
|
const [t] = y.nodes(e, {
|
|
22215
|
-
match: (n) => n.type ===
|
|
22224
|
+
match: (n) => n.type === H.blockquote
|
|
22216
22225
|
});
|
|
22217
22226
|
return !!t;
|
|
22218
22227
|
}, eh = (e, t, n) => {
|
|
@@ -22226,9 +22235,9 @@ const Jf = ({ formID: e, label: t, showLabel: n }) => {
|
|
|
22226
22235
|
split: !0
|
|
22227
22236
|
});
|
|
22228
22237
|
const o = {
|
|
22229
|
-
type: i ?
|
|
22238
|
+
type: i ? H.paragraph : a ? H.li : t
|
|
22230
22239
|
};
|
|
22231
|
-
if (Q.setNodes(e, o), t ===
|
|
22240
|
+
if (Q.setNodes(e, o), t === H.h3) {
|
|
22232
22241
|
const l = {
|
|
22233
22242
|
type: t
|
|
22234
22243
|
};
|
|
@@ -22245,7 +22254,7 @@ const Jf = ({ formID: e, label: t, showLabel: n }) => {
|
|
|
22245
22254
|
at: d,
|
|
22246
22255
|
match: (p) => {
|
|
22247
22256
|
const m = p;
|
|
22248
|
-
return !y.isEditor(p) && he.isElement(p) && m.type ===
|
|
22257
|
+
return !y.isEditor(p) && he.isElement(p) && m.type === H.li;
|
|
22249
22258
|
}
|
|
22250
22259
|
})
|
|
22251
22260
|
).forEach(([p, m]) => {
|
|
@@ -22254,7 +22263,7 @@ const Jf = ({ formID: e, label: t, showLabel: n }) => {
|
|
|
22254
22263
|
} else {
|
|
22255
22264
|
if (r) {
|
|
22256
22265
|
const u = {
|
|
22257
|
-
type:
|
|
22266
|
+
type: H.blockquote,
|
|
22258
22267
|
children: []
|
|
22259
22268
|
};
|
|
22260
22269
|
Q.wrapNodes(e, u);
|
|
@@ -22283,7 +22292,7 @@ const Jf = ({ formID: e, label: t, showLabel: n }) => {
|
|
|
22283
22292
|
const [t] = y.nodes(e, {
|
|
22284
22293
|
match: (n) => {
|
|
22285
22294
|
const r = n;
|
|
22286
|
-
return !y.isEditor(n) && he.isElement(n) && r.type ===
|
|
22295
|
+
return !y.isEditor(n) && he.isElement(n) && r.type === H.link;
|
|
22287
22296
|
}
|
|
22288
22297
|
});
|
|
22289
22298
|
return !!t;
|
|
@@ -22295,7 +22304,7 @@ const Jf = ({ formID: e, label: t, showLabel: n }) => {
|
|
|
22295
22304
|
const [s] = y.nodes(e, {
|
|
22296
22305
|
match: (o) => {
|
|
22297
22306
|
const l = o;
|
|
22298
|
-
return !y.isEditor(o) && he.isElement(o) && l.type ===
|
|
22307
|
+
return !y.isEditor(o) && he.isElement(o) && l.type === H.link;
|
|
22299
22308
|
}
|
|
22300
22309
|
});
|
|
22301
22310
|
if (s) {
|
|
@@ -22310,7 +22319,7 @@ const Jf = ({ formID: e, label: t, showLabel: n }) => {
|
|
|
22310
22319
|
try {
|
|
22311
22320
|
Ur(e) && th(e);
|
|
22312
22321
|
const { selection: i } = e, a = i && K.isCollapsed(i), s = {
|
|
22313
|
-
type:
|
|
22322
|
+
type: H.link,
|
|
22314
22323
|
link: t,
|
|
22315
22324
|
children: a ? [{ text: t }] : []
|
|
22316
22325
|
};
|
|
@@ -22323,7 +22332,7 @@ const Jf = ({ formID: e, label: t, showLabel: n }) => {
|
|
|
22323
22332
|
Q.unwrapNodes(e, {
|
|
22324
22333
|
match: (t) => {
|
|
22325
22334
|
const n = t;
|
|
22326
|
-
return !y.isEditor(t) && he.isElement(t) && n.type ===
|
|
22335
|
+
return !y.isEditor(t) && he.isElement(t) && n.type === H.link;
|
|
22327
22336
|
}
|
|
22328
22337
|
});
|
|
22329
22338
|
};
|
|
@@ -22445,7 +22454,7 @@ const UC = () => {
|
|
|
22445
22454
|
{
|
|
22446
22455
|
element: "fieldset",
|
|
22447
22456
|
id: `${n}-link-editor`,
|
|
22448
|
-
className:
|
|
22457
|
+
className: V({ "show-labels": h }),
|
|
22449
22458
|
meta: { shouldReset: !0, showRequiredLabels: !1 },
|
|
22450
22459
|
functions: {
|
|
22451
22460
|
onSuccess: async (C) => {
|
|
@@ -22491,7 +22500,7 @@ const UC = () => {
|
|
|
22491
22500
|
"aria-pressed": null
|
|
22492
22501
|
}
|
|
22493
22502
|
);
|
|
22494
|
-
}, VC = (e) => [
|
|
22503
|
+
}, VC = (e) => [H.bold, H.italic, H.strikethrough].includes(
|
|
22495
22504
|
e
|
|
22496
22505
|
), nh = (e, t) => {
|
|
22497
22506
|
const n = y.marks(e);
|
|
@@ -22517,13 +22526,13 @@ const UC = () => {
|
|
|
22517
22526
|
}
|
|
22518
22527
|
);
|
|
22519
22528
|
}, aa = [
|
|
22520
|
-
|
|
22521
|
-
|
|
22522
|
-
|
|
22529
|
+
H.bold,
|
|
22530
|
+
H.italic,
|
|
22531
|
+
H.strikethrough
|
|
22523
22532
|
], KC = [
|
|
22524
|
-
|
|
22525
|
-
|
|
22526
|
-
|
|
22533
|
+
H.ol,
|
|
22534
|
+
H.ul,
|
|
22535
|
+
H.blockquote
|
|
22527
22536
|
];
|
|
22528
22537
|
const ZC = ({
|
|
22529
22538
|
styling: e = { showHeadingOption: !1 },
|
|
@@ -22534,7 +22543,7 @@ const ZC = ({
|
|
|
22534
22543
|
/* @__PURE__ */ c.jsxs("fieldset", { id: `toolbar-${r}`, className: "toolbar", ...t, children: [
|
|
22535
22544
|
/* @__PURE__ */ c.jsx($e, { element: "legend", showOnFocus: !1, children: n.formatMessage({ id: "richTextEditor_toolbar" }) }),
|
|
22536
22545
|
/* @__PURE__ */ c.jsxs("ul", { children: [
|
|
22537
|
-
(e == null ? void 0 : e.showHeadingOption) && /* @__PURE__ */ c.jsx(Sc, { format:
|
|
22546
|
+
(e == null ? void 0 : e.showHeadingOption) && /* @__PURE__ */ c.jsx(Sc, { format: H.h3, hasDivider: !0 }, H.h3),
|
|
22538
22547
|
aa.map((i, a) => /* @__PURE__ */ c.jsx(HC, { format: i, hasDivider: a === aa.length - 1 }, i)),
|
|
22539
22548
|
/* @__PURE__ */ c.jsx(WC, {}),
|
|
22540
22549
|
KC.map((i, a) => /* @__PURE__ */ c.jsx(Sc, { format: i, hasDivider: a === 1 }, i))
|
|
@@ -23320,7 +23329,7 @@ const EE = (e, t) => {
|
|
|
23320
23329
|
const { apply: n } = e;
|
|
23321
23330
|
try {
|
|
23322
23331
|
e.apply = (r) => {
|
|
23323
|
-
if (r.type === "remove_node" && "type" in r.node && r.node.type ===
|
|
23332
|
+
if (r.type === "remove_node" && "type" in r.node && r.node.type === H.link) {
|
|
23324
23333
|
const i = r.node;
|
|
23325
23334
|
if (i.link) {
|
|
23326
23335
|
const a = new CustomEvent("linkRemoved", {
|
|
@@ -23352,7 +23361,7 @@ const TE = /* @__PURE__ */ qn(_E), SE = (e, t, n) => {
|
|
|
23352
23361
|
try {
|
|
23353
23362
|
e.isInline = (a) => {
|
|
23354
23363
|
const s = a;
|
|
23355
|
-
return [
|
|
23364
|
+
return [H.link].includes(s.type) || i(a);
|
|
23356
23365
|
}, e.insertText = (a) => {
|
|
23357
23366
|
a && TE(a) ? zo(e, a, t) : r(a);
|
|
23358
23367
|
};
|
|
@@ -23364,7 +23373,7 @@ const TE = /* @__PURE__ */ qn(_E), SE = (e, t, n) => {
|
|
|
23364
23373
|
}, jE = (e, t) => {
|
|
23365
23374
|
const { isInline: n, isVoid: r, markableVoid: i } = e;
|
|
23366
23375
|
try {
|
|
23367
|
-
e.isInline = (a) => a.type ===
|
|
23376
|
+
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
23377
|
} catch (a) {
|
|
23369
23378
|
const s = a.message;
|
|
23370
23379
|
t(`Error in withMentions: ${s}`);
|
|
@@ -23374,7 +23383,7 @@ const TE = /* @__PURE__ */ qn(_E), SE = (e, t, n) => {
|
|
|
23374
23383
|
const { normalizeNode: n } = e;
|
|
23375
23384
|
try {
|
|
23376
23385
|
e.normalizeNode = ([r, i]) => {
|
|
23377
|
-
if (r.type ===
|
|
23386
|
+
if (r.type === H.link && oe.string(r).trim() === "") {
|
|
23378
23387
|
Q.removeNodes(e, { at: i });
|
|
23379
23388
|
return;
|
|
23380
23389
|
}
|
|
@@ -23415,7 +23424,7 @@ const dh = ({
|
|
|
23415
23424
|
}
|
|
23416
23425
|
} = a || {}, F = [
|
|
23417
23426
|
{
|
|
23418
|
-
type:
|
|
23427
|
+
type: H.paragraph,
|
|
23419
23428
|
children: [{ text: "" }]
|
|
23420
23429
|
}
|
|
23421
23430
|
];
|
|
@@ -23630,8 +23639,8 @@ const dh = ({
|
|
|
23630
23639
|
const Y = K.isCollapsed(I), [Z, te] = y.node(E, I, { depth: 1 });
|
|
23631
23640
|
let ce = Z, J = ce.type;
|
|
23632
23641
|
const ve = ce.children[0];
|
|
23633
|
-
if (ve && (ve == null ? void 0 : ve[
|
|
23634
|
-
if (J ===
|
|
23642
|
+
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) {
|
|
23643
|
+
if (J === H.blockquote && !B.shiftKey) {
|
|
23635
23644
|
B.stopPropagation(), B.preventDefault(), Q.insertNodes(E, F);
|
|
23636
23645
|
return;
|
|
23637
23646
|
}
|
|
@@ -23639,8 +23648,8 @@ const dh = ({
|
|
|
23639
23648
|
const [me, Be] = y.parent(E, I, {
|
|
23640
23649
|
edge: "end"
|
|
23641
23650
|
}), Oe = me.type;
|
|
23642
|
-
if ([
|
|
23643
|
-
if (B.stopPropagation(), B.preventDefault(), Oe ===
|
|
23651
|
+
if ([H.ul, H.ol].includes(J))
|
|
23652
|
+
if (B.stopPropagation(), B.preventDefault(), Oe === H.li && k === "Enter") {
|
|
23644
23653
|
me.children.length === 1 && "text" in me.children[0] && me.children[0].text === "" && Q.removeNodes(E, { at: Be }), Q.insertNodes(E, F, {
|
|
23645
23654
|
at: M.next(te)
|
|
23646
23655
|
}), Q.select(
|
|
@@ -23649,8 +23658,8 @@ const dh = ({
|
|
|
23649
23658
|
);
|
|
23650
23659
|
return;
|
|
23651
23660
|
} else {
|
|
23652
|
-
const [Qe, ze] = jC(E,
|
|
23653
|
-
type:
|
|
23661
|
+
const [Qe, ze] = jC(E, H.li), We = {
|
|
23662
|
+
type: H.li,
|
|
23654
23663
|
children: [{ text: "" }]
|
|
23655
23664
|
};
|
|
23656
23665
|
Q.insertNodes(E, We, {
|
|
@@ -23773,7 +23782,7 @@ const wk = ({
|
|
|
23773
23782
|
return /* @__PURE__ */ c.jsxs(
|
|
23774
23783
|
"div",
|
|
23775
23784
|
{
|
|
23776
|
-
className:
|
|
23785
|
+
className: V("toggle", s),
|
|
23777
23786
|
onClick: (d) => {
|
|
23778
23787
|
d.preventDefault(), d.stopPropagation(), u(o === n[0].value ? n[1].value : n[0].value);
|
|
23779
23788
|
},
|
|
@@ -23782,7 +23791,7 @@ const wk = ({
|
|
|
23782
23791
|
/* @__PURE__ */ c.jsx(
|
|
23783
23792
|
"ul",
|
|
23784
23793
|
{
|
|
23785
|
-
className:
|
|
23794
|
+
className: V("toggle-options", {
|
|
23786
23795
|
disabled: a,
|
|
23787
23796
|
on: o === n[1].value
|
|
23788
23797
|
}),
|
|
@@ -23841,7 +23850,7 @@ function PE({
|
|
|
23841
23850
|
change: x = o.formatMessage({ id: `${l}cta_change` }),
|
|
23842
23851
|
uploading: D = o.formatMessage({ id: `${l}cta_uploading` })
|
|
23843
23852
|
} = (a == null ? void 0 : a.text) || {};
|
|
23844
|
-
return /* @__PURE__ */ c.jsxs("div", { className:
|
|
23853
|
+
return /* @__PURE__ */ c.jsxs("div", { className: V("profile-image-change-figure", e), children: [
|
|
23845
23854
|
/* @__PURE__ */ c.jsx(
|
|
23846
23855
|
kn,
|
|
23847
23856
|
{
|
|
@@ -24447,7 +24456,7 @@ const LE = ({
|
|
|
24447
24456
|
"form",
|
|
24448
24457
|
{
|
|
24449
24458
|
onSubmit: d,
|
|
24450
|
-
className:
|
|
24459
|
+
className: V("search-form gtm-trackable", t),
|
|
24451
24460
|
role: "search",
|
|
24452
24461
|
"data-gtm-event-context": i,
|
|
24453
24462
|
"data-gtm-event-type": a,
|
|
@@ -24730,7 +24739,7 @@ const LE = ({
|
|
|
24730
24739
|
const WE = ({ className: e = "" }) => /* @__PURE__ */ c.jsxs(
|
|
24731
24740
|
"div",
|
|
24732
24741
|
{
|
|
24733
|
-
className:
|
|
24742
|
+
className: V("success-message", e),
|
|
24734
24743
|
"data-testid": "success-message",
|
|
24735
24744
|
children: [
|
|
24736
24745
|
/* @__PURE__ */ c.jsx("p", { className: "success-title", children: /* @__PURE__ */ c.jsx(ct, { id: "signup_success_title" }) }),
|
|
@@ -24830,7 +24839,7 @@ const VE = {
|
|
|
24830
24839
|
return v.successMessage && C ? /* @__PURE__ */ c.jsx(WE, { className: e }) : /* @__PURE__ */ c.jsxs(
|
|
24831
24840
|
"fieldset",
|
|
24832
24841
|
{
|
|
24833
|
-
className:
|
|
24842
|
+
className: V("signup-form-fieldset", e),
|
|
24834
24843
|
"data-testid": "signup-form",
|
|
24835
24844
|
children: [
|
|
24836
24845
|
v.title && /* @__PURE__ */ c.jsx("p", { className: "signup-title", children: /* @__PURE__ */ c.jsx(ct, { id: "signup_title" }) }),
|
|
@@ -24911,7 +24920,7 @@ const Hn = ({
|
|
|
24911
24920
|
return /* @__PURE__ */ c.jsx(
|
|
24912
24921
|
"section",
|
|
24913
24922
|
{
|
|
24914
|
-
className:
|
|
24923
|
+
className: V("full-width-section", t, {
|
|
24915
24924
|
[i]: i !== "default",
|
|
24916
24925
|
[a]: a !== "none"
|
|
24917
24926
|
}),
|
|
@@ -24936,7 +24945,7 @@ const kk = ({ text: e, buttons: t, className: n = "" }) => {
|
|
|
24936
24945
|
}), /* @__PURE__ */ c.jsx(
|
|
24937
24946
|
Hn,
|
|
24938
24947
|
{
|
|
24939
|
-
className:
|
|
24948
|
+
className: V("download-section", n),
|
|
24940
24949
|
styling: { background: "dark" },
|
|
24941
24950
|
children: /* @__PURE__ */ c.jsxs("div", { className: "content-default", children: [
|
|
24942
24951
|
ee.createElement(
|
|
@@ -25004,7 +25013,7 @@ const HE = ({
|
|
|
25004
25013
|
r.props.functions.onCancel && r.props.functions.onCancel(), m();
|
|
25005
25014
|
}
|
|
25006
25015
|
}
|
|
25007
|
-
})), /* @__PURE__ */ c.jsxs("section", { className:
|
|
25016
|
+
})), /* @__PURE__ */ c.jsxs("section", { className: V("edit-section", t), children: [
|
|
25008
25017
|
v && /* @__PURE__ */ c.jsx(
|
|
25009
25018
|
Fn,
|
|
25010
25019
|
{
|
|
@@ -25013,7 +25022,7 @@ const HE = ({
|
|
|
25013
25022
|
showDivider: !1,
|
|
25014
25023
|
showIcon: !1,
|
|
25015
25024
|
functions: { onClose: m },
|
|
25016
|
-
className:
|
|
25025
|
+
className: V("edit-section-modal"),
|
|
25017
25026
|
children: b || (n ? /* @__PURE__ */ c.jsx(
|
|
25018
25027
|
mn,
|
|
25019
25028
|
{
|
|
@@ -25037,7 +25046,7 @@ const HE = ({
|
|
|
25037
25046
|
) : /* @__PURE__ */ c.jsx(c.Fragment, {}))
|
|
25038
25047
|
}
|
|
25039
25048
|
),
|
|
25040
|
-
/* @__PURE__ */ c.jsxs("div", { className:
|
|
25049
|
+
/* @__PURE__ */ c.jsxs("div", { className: V("edit-section-header", { "no-title": !s }), children: [
|
|
25041
25050
|
s && /* @__PURE__ */ c.jsx("h2", { className: "edit-section-header-title", children: a }),
|
|
25042
25051
|
f && /* @__PURE__ */ c.jsx(
|
|
25043
25052
|
Fe,
|
|
@@ -25081,21 +25090,21 @@ const Ak = ({
|
|
|
25081
25090
|
return /* @__PURE__ */ c.jsxs(
|
|
25082
25091
|
"div",
|
|
25083
25092
|
{
|
|
25084
|
-
className:
|
|
25093
|
+
className: V("logos", i, `align-${l}`, {
|
|
25085
25094
|
[u]: u !== "block",
|
|
25086
25095
|
"wrap-logos": o
|
|
25087
25096
|
}),
|
|
25088
25097
|
children: [
|
|
25089
25098
|
e && ee.createElement(
|
|
25090
25099
|
s.element,
|
|
25091
|
-
{ className:
|
|
25100
|
+
{ className: V("title", s.className) },
|
|
25092
25101
|
s.text
|
|
25093
25102
|
),
|
|
25094
25103
|
t && /* @__PURE__ */ c.jsx("p", { children: t }),
|
|
25095
25104
|
/* @__PURE__ */ c.jsx(
|
|
25096
25105
|
"ul",
|
|
25097
25106
|
{
|
|
25098
|
-
className:
|
|
25107
|
+
className: V({
|
|
25099
25108
|
"two-col": a === 2 || a === 4,
|
|
25100
25109
|
"three-col": a === 5 || a <= 10 && a % 3 === 0
|
|
25101
25110
|
}),
|
|
@@ -25681,7 +25690,7 @@ const sr = "footer_", oa = "SiteFooter", Rc = ({ group: e }) => {
|
|
|
25681
25690
|
return /* @__PURE__ */ c.jsxs(
|
|
25682
25691
|
"li",
|
|
25683
25692
|
{
|
|
25684
|
-
className:
|
|
25693
|
+
className: V({
|
|
25685
25694
|
[o.className]: o.className,
|
|
25686
25695
|
"has-submenu": m,
|
|
25687
25696
|
parent: v,
|
|
@@ -25712,7 +25721,7 @@ const sr = "footer_", oa = "SiteFooter", Rc = ({ group: e }) => {
|
|
|
25712
25721
|
return o[D].order ? /* @__PURE__ */ c.jsxs(
|
|
25713
25722
|
"li",
|
|
25714
25723
|
{
|
|
25715
|
-
className:
|
|
25724
|
+
className: V({
|
|
25716
25725
|
[o[D].className]: o[D].className
|
|
25717
25726
|
}),
|
|
25718
25727
|
children: [
|
|
@@ -25934,7 +25943,7 @@ const mh = ({ showNavigation: e = !0 }) => {
|
|
|
25934
25943
|
"nav",
|
|
25935
25944
|
{
|
|
25936
25945
|
id: "header",
|
|
25937
|
-
className:
|
|
25946
|
+
className: V({
|
|
25938
25947
|
"logged-in": i,
|
|
25939
25948
|
"logged-out": !i,
|
|
25940
25949
|
visible: l
|
|
@@ -26008,7 +26017,7 @@ const mh = ({ showNavigation: e = !0 }) => {
|
|
|
26008
26017
|
/* @__PURE__ */ c.jsx(
|
|
26009
26018
|
"div",
|
|
26010
26019
|
{
|
|
26011
|
-
className:
|
|
26020
|
+
className: V("overlay", {
|
|
26012
26021
|
open: u[
|
|
26013
26022
|
"site-navigation"
|
|
26014
26023
|
/* SITE */
|
|
@@ -26067,14 +26076,14 @@ const YE = () => {
|
|
|
26067
26076
|
"div",
|
|
26068
26077
|
{
|
|
26069
26078
|
id: "wrapper",
|
|
26070
|
-
className:
|
|
26079
|
+
className: V(s, C, { "has-footer": u }),
|
|
26071
26080
|
children: [
|
|
26072
26081
|
/* @__PURE__ */ c.jsx(mh, { showNavigation: l }),
|
|
26073
26082
|
/* @__PURE__ */ c.jsxs("main", { id: "content-wrapper", children: [
|
|
26074
26083
|
D && /* @__PURE__ */ c.jsx(
|
|
26075
26084
|
"div",
|
|
26076
26085
|
{
|
|
26077
|
-
className:
|
|
26086
|
+
className: V("additional-content prepended", {
|
|
26078
26087
|
"large-modal": m === "large"
|
|
26079
26088
|
}),
|
|
26080
26089
|
children: D
|
|
@@ -26083,7 +26092,7 @@ const YE = () => {
|
|
|
26083
26092
|
ee.createElement(d === "bold" ? ld : "div", {
|
|
26084
26093
|
id: "content",
|
|
26085
26094
|
children: x,
|
|
26086
|
-
className:
|
|
26095
|
+
className: V({ "large-modal": m === "large" })
|
|
26087
26096
|
})
|
|
26088
26097
|
] }),
|
|
26089
26098
|
F && /* @__PURE__ */ c.jsx("div", { className: "additional-content appended", children: F }),
|
|
@@ -26154,7 +26163,7 @@ const Sk = ({
|
|
|
26154
26163
|
}), l.length < 1 ? null : /* @__PURE__ */ c.jsx(
|
|
26155
26164
|
"ul",
|
|
26156
26165
|
{
|
|
26157
|
-
className:
|
|
26166
|
+
className: V("tags text-small", t, i, {
|
|
26158
26167
|
"one-line": n
|
|
26159
26168
|
}),
|
|
26160
26169
|
children: l.map((u) => {
|
|
@@ -26188,7 +26197,7 @@ const JE = 25, XE = ({
|
|
|
26188
26197
|
className: h = ""
|
|
26189
26198
|
}) => {
|
|
26190
26199
|
const p = le(), m = "membersList", v = Me(ft), [f, b] = ue(!1);
|
|
26191
|
-
return e.length === 0 && !d ? null : /* @__PURE__ */ c.jsxs("div", { className:
|
|
26200
|
+
return e.length === 0 && !d ? null : /* @__PURE__ */ c.jsxs("div", { className: V("members-list", h), children: [
|
|
26192
26201
|
u ? /* @__PURE__ */ c.jsxs("h1", { children: [
|
|
26193
26202
|
p.formatMessage({ id: m }),
|
|
26194
26203
|
/* @__PURE__ */ c.jsx("span", { className: "count", children: t })
|
|
@@ -26574,7 +26583,7 @@ const rt = "discussion_form_", xa = ({
|
|
|
26574
26583
|
mn,
|
|
26575
26584
|
{
|
|
26576
26585
|
id: ce,
|
|
26577
|
-
className:
|
|
26586
|
+
className: V("discussion-card discussion-form", {
|
|
26578
26587
|
"no-styling": x && C
|
|
26579
26588
|
}),
|
|
26580
26589
|
meta: {
|
|
@@ -26669,7 +26678,7 @@ const rt = "discussion_form_", xa = ({
|
|
|
26669
26678
|
}) => {
|
|
26670
26679
|
const r = {
|
|
26671
26680
|
...n,
|
|
26672
|
-
class:
|
|
26681
|
+
class: V("subtle", t)
|
|
26673
26682
|
};
|
|
26674
26683
|
return /* @__PURE__ */ c.jsx("blockquote", { ...r, children: e });
|
|
26675
26684
|
};
|
|
@@ -26851,7 +26860,7 @@ const Da = ({
|
|
|
26851
26860
|
"data-gtm-event-context": d,
|
|
26852
26861
|
"data-gtm-event-type": `edit-${t.type}-click`
|
|
26853
26862
|
}), 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:
|
|
26863
|
+
className: V("discussion-post", u, {
|
|
26855
26864
|
[te]: !u || !u.includes("highlighted-text-box"),
|
|
26856
26865
|
"has-link": l.post && !B.isEditing,
|
|
26857
26866
|
"is-pinned": (t == null ? void 0 : t.pinned) || !1
|
|
@@ -26876,7 +26885,7 @@ const Da = ({
|
|
|
26876
26885
|
"div",
|
|
26877
26886
|
{
|
|
26878
26887
|
id: U || t.slug,
|
|
26879
|
-
className:
|
|
26888
|
+
className: V("discussion-card", t.type, {
|
|
26880
26889
|
editing: B.isEditing,
|
|
26881
26890
|
"has-link": l.post && !B.isEditing
|
|
26882
26891
|
}),
|
|
@@ -27158,7 +27167,7 @@ const o_ = gr(
|
|
|
27158
27167
|
/* @__PURE__ */ c.jsxs(
|
|
27159
27168
|
"button",
|
|
27160
27169
|
{
|
|
27161
|
-
className:
|
|
27170
|
+
className: V("discussion-form-card", n),
|
|
27162
27171
|
onClick: (b) => {
|
|
27163
27172
|
b.preventDefault(), b.stopPropagation(), h((g) => ({ ...g, form: !0 }));
|
|
27164
27173
|
},
|
|
@@ -27168,7 +27177,7 @@ const o_ = gr(
|
|
|
27168
27177
|
/* @__PURE__ */ c.jsx(
|
|
27169
27178
|
cr,
|
|
27170
27179
|
{
|
|
27171
|
-
className:
|
|
27180
|
+
className: V("input", { placeholder: !p.showCachedText }),
|
|
27172
27181
|
element: "span",
|
|
27173
27182
|
options: {
|
|
27174
27183
|
forceInline: !0,
|
|
@@ -27353,7 +27362,7 @@ const f_ = ({
|
|
|
27353
27362
|
return /* @__PURE__ */ c.jsxs(
|
|
27354
27363
|
"div",
|
|
27355
27364
|
{
|
|
27356
|
-
className:
|
|
27365
|
+
className: V("thread-wrapper", {
|
|
27357
27366
|
"empty-thread": !o
|
|
27358
27367
|
}),
|
|
27359
27368
|
children: [
|
|
@@ -27676,7 +27685,7 @@ const D_ = ({
|
|
|
27676
27685
|
(p !== "" || m !== "") && l((b) => ({ ...b, showCachedText: !0 })), o();
|
|
27677
27686
|
}
|
|
27678
27687
|
},
|
|
27679
|
-
className:
|
|
27688
|
+
className: V("discussion-form-modal", i),
|
|
27680
27689
|
children: /* @__PURE__ */ c.jsx(
|
|
27681
27690
|
xa,
|
|
27682
27691
|
{
|
|
@@ -27756,7 +27765,7 @@ const Ok = ({
|
|
|
27756
27765
|
showDivider: !1,
|
|
27757
27766
|
showIcon: o,
|
|
27758
27767
|
functions: { onClose: l },
|
|
27759
|
-
className:
|
|
27768
|
+
className: V("invite-modal", e, { success: !!n }),
|
|
27760
27769
|
children: /* @__PURE__ */ c.jsx(
|
|
27761
27770
|
RE,
|
|
27762
27771
|
{
|
|
@@ -27797,7 +27806,7 @@ const C_ = ({
|
|
|
27797
27806
|
functions: {
|
|
27798
27807
|
onClose: d
|
|
27799
27808
|
},
|
|
27800
|
-
className:
|
|
27809
|
+
className: V("profile-modal", s, { success: !!t }),
|
|
27801
27810
|
maxWidth: 700,
|
|
27802
27811
|
children: /* @__PURE__ */ c.jsxs(c.Fragment, { children: [
|
|
27803
27812
|
t && n || r ? /* @__PURE__ */ c.jsxs("div", { className: "intro", children: [
|
|
@@ -27876,13 +27885,13 @@ const __ = ({
|
|
|
27876
27885
|
content: n,
|
|
27877
27886
|
member: r,
|
|
27878
27887
|
className: i = ""
|
|
27879
|
-
}) => /* @__PURE__ */ c.jsxs("blockquote", { className:
|
|
27888
|
+
}) => /* @__PURE__ */ c.jsxs("blockquote", { className: V("testimonial-block", i), children: [
|
|
27880
27889
|
/* @__PURE__ */ c.jsx(Xt, { className: "testimonial", children: n }),
|
|
27881
27890
|
r ? /* @__PURE__ */ c.jsx(En, { member: r, styling: { size: "large" } }) : /* @__PURE__ */ c.jsxs(c.Fragment, { children: [
|
|
27882
27891
|
e && /* @__PURE__ */ c.jsx(
|
|
27883
27892
|
"p",
|
|
27884
27893
|
{
|
|
27885
|
-
className:
|
|
27894
|
+
className: V("author", {
|
|
27886
27895
|
"text-small": !i.includes("new")
|
|
27887
27896
|
}),
|
|
27888
27897
|
children: e
|
|
@@ -27891,7 +27900,7 @@ const __ = ({
|
|
|
27891
27900
|
t && /* @__PURE__ */ c.jsx(
|
|
27892
27901
|
"p",
|
|
27893
27902
|
{
|
|
27894
|
-
className:
|
|
27903
|
+
className: V("author-cite", {
|
|
27895
27904
|
"text-small": !i.includes("new")
|
|
27896
27905
|
}),
|
|
27897
27906
|
children: /* @__PURE__ */ c.jsx("cite", { children: t })
|
|
@@ -27923,7 +27932,7 @@ const Mk = ({
|
|
|
27923
27932
|
$t,
|
|
27924
27933
|
{
|
|
27925
27934
|
variant: "subtle",
|
|
27926
|
-
className:
|
|
27935
|
+
className: V("table-of-contents", n),
|
|
27927
27936
|
children: [
|
|
27928
27937
|
/* @__PURE__ */ c.jsx("h2", { children: r.formatMessage({ id: "tableOfContents" }) }),
|
|
27929
27938
|
/* @__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 +27974,7 @@ const Ko = ({
|
|
|
27965
27974
|
{ early: u, late: h }
|
|
27966
27975
|
);
|
|
27967
27976
|
}
|
|
27968
|
-
return n && (u = `${n} ${u}`, l = `${n} ${l}`), r && (u = `${u} ${r}`, l = `${l} ${r}`), /* @__PURE__ */ c.jsx("span", { className:
|
|
27977
|
+
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
27978
|
};
|
|
27970
27979
|
const Rk = ({ className: e = "", image: t, ...n }) => t ? (typeof t == "string" && (t = {
|
|
27971
27980
|
width: 1080,
|
|
@@ -27980,7 +27989,7 @@ const Rk = ({ className: e = "", image: t, ...n }) => t ? (typeof t == "string"
|
|
|
27980
27989
|
Dr,
|
|
27981
27990
|
{
|
|
27982
27991
|
...n,
|
|
27983
|
-
className:
|
|
27992
|
+
className: V("banner", e),
|
|
27984
27993
|
image: { ...t, aspect: "banner" }
|
|
27985
27994
|
}
|
|
27986
27995
|
)) : null;
|
|
@@ -28051,7 +28060,7 @@ const k_ = [
|
|
|
28051
28060
|
}), /* @__PURE__ */ c.jsx(
|
|
28052
28061
|
Hn,
|
|
28053
28062
|
{
|
|
28054
|
-
className:
|
|
28063
|
+
className: V("banner-section", r, i, e, {
|
|
28055
28064
|
"has-image": n,
|
|
28056
28065
|
"image-full-width": n && u.imageFullWidth,
|
|
28057
28066
|
"image-inline": n && !u.imageFullWidth,
|
|
@@ -28075,7 +28084,7 @@ const k_ = [
|
|
|
28075
28084
|
size: { mobile: "medium", 768: "large" },
|
|
28076
28085
|
href: o.link,
|
|
28077
28086
|
...o.props,
|
|
28078
|
-
className:
|
|
28087
|
+
className: V({
|
|
28079
28088
|
new: r === "subtle",
|
|
28080
28089
|
[(v = o.props) == null ? void 0 : v.className]: (f = o.props) == null ? void 0 : f.className
|
|
28081
28090
|
}),
|
|
@@ -28106,7 +28115,7 @@ const Ik = ({
|
|
|
28106
28115
|
return e && (i["--image"] = `url(${e})`), /* @__PURE__ */ c.jsx(
|
|
28107
28116
|
Hn,
|
|
28108
28117
|
{
|
|
28109
|
-
className:
|
|
28118
|
+
className: V("custom-content-banner", t, r, {
|
|
28110
28119
|
"has-image": e
|
|
28111
28120
|
}),
|
|
28112
28121
|
style: i,
|
|
@@ -28121,11 +28130,11 @@ const A_ = ({
|
|
|
28121
28130
|
image: r
|
|
28122
28131
|
}) => {
|
|
28123
28132
|
const i = typeof n == "string" ? /* @__PURE__ */ c.jsx(cr, { children: n }) : n;
|
|
28124
|
-
return /* @__PURE__ */ c.jsxs(Hn, { className:
|
|
28133
|
+
return /* @__PURE__ */ c.jsxs(Hn, { className: V("highlight-section", t), children: [
|
|
28125
28134
|
r && /* @__PURE__ */ c.jsx(
|
|
28126
28135
|
"div",
|
|
28127
28136
|
{
|
|
28128
|
-
className:
|
|
28137
|
+
className: V("highlight-container highlight-image", {
|
|
28129
28138
|
[`highlight-image-${e}`]: e === "right"
|
|
28130
28139
|
}),
|
|
28131
28140
|
children: /* @__PURE__ */ c.jsx(
|
|
@@ -28144,13 +28153,13 @@ const A_ = ({
|
|
|
28144
28153
|
/* @__PURE__ */ c.jsx(
|
|
28145
28154
|
"div",
|
|
28146
28155
|
{
|
|
28147
|
-
className:
|
|
28156
|
+
className: V("highlight-container highlight-content-wrapper", {
|
|
28148
28157
|
"no-image": !r
|
|
28149
28158
|
}),
|
|
28150
28159
|
children: /* @__PURE__ */ c.jsx(
|
|
28151
28160
|
"div",
|
|
28152
28161
|
{
|
|
28153
|
-
className:
|
|
28162
|
+
className: V("highlight-content", {
|
|
28154
28163
|
"highlight-content-right": e === "left"
|
|
28155
28164
|
}),
|
|
28156
28165
|
children: r ? i : /* @__PURE__ */ c.jsx("div", { className: "content-default", children: i })
|
|
@@ -28166,7 +28175,7 @@ const zk = ({
|
|
|
28166
28175
|
title: n,
|
|
28167
28176
|
text: r,
|
|
28168
28177
|
gtmContext: i
|
|
28169
|
-
}) => !n && !r ? null : /* @__PURE__ */ c.jsxs("aside", { className:
|
|
28178
|
+
}) => !n && !r ? null : /* @__PURE__ */ c.jsxs("aside", { className: V("marketing-block", e), children: [
|
|
28170
28179
|
n && /* @__PURE__ */ c.jsx("p", { className: "title", children: n }),
|
|
28171
28180
|
r && /* @__PURE__ */ c.jsx("p", { children: r }),
|
|
28172
28181
|
t && /* @__PURE__ */ c.jsx(
|
|
@@ -28358,7 +28367,7 @@ const zk = ({
|
|
|
28358
28367
|
return /* @__PURE__ */ c.jsx(
|
|
28359
28368
|
"p",
|
|
28360
28369
|
{
|
|
28361
|
-
className:
|
|
28370
|
+
className: V("cta-wrapper", {
|
|
28362
28371
|
"has-member-section": e == null ? void 0 : e.members
|
|
28363
28372
|
}),
|
|
28364
28373
|
children: /* @__PURE__ */ c.jsx(
|
|
@@ -28480,7 +28489,7 @@ const vh = ({
|
|
|
28480
28489
|
}, (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
28490
|
"li",
|
|
28482
28491
|
{
|
|
28483
|
-
className:
|
|
28492
|
+
className: V("card-wrapper text-medium", C, t, {
|
|
28484
28493
|
"has-link": $,
|
|
28485
28494
|
"no-link": !$,
|
|
28486
28495
|
"has-image": g.banner
|
|
@@ -28566,7 +28575,7 @@ const vh = ({
|
|
|
28566
28575
|
}
|
|
28567
28576
|
);
|
|
28568
28577
|
};
|
|
28569
|
-
const O_ = ({ cards: e, cardTypes: t, className: n = "", ...r }) => /* @__PURE__ */ c.jsx("ul", { className:
|
|
28578
|
+
const O_ = ({ cards: e, cardTypes: t, className: n = "", ...r }) => /* @__PURE__ */ c.jsx("ul", { className: V("card-block", n), children: e.map((i, a) => {
|
|
28570
28579
|
const s = i.slug ? `${i.slug}-${t[a]}` : `${t[a]}-${a}`;
|
|
28571
28580
|
return /* @__PURE__ */ c.jsx(
|
|
28572
28581
|
vh,
|
|
@@ -28590,7 +28599,7 @@ const O_ = ({ cards: e, cardTypes: t, className: n = "", ...r }) => /* @__PURE__
|
|
|
28590
28599
|
return null;
|
|
28591
28600
|
const { text: r, element: i = "h2", variant: a = "default", size: s = "medium", link: o } = t;
|
|
28592
28601
|
return ee.createElement(i, {
|
|
28593
|
-
className:
|
|
28602
|
+
className: V("title", a, s, {
|
|
28594
28603
|
"highlighted-title": a === "highlighted"
|
|
28595
28604
|
}),
|
|
28596
28605
|
children: /* @__PURE__ */ c.jsxs(c.Fragment, { children: [
|
|
@@ -28703,7 +28712,7 @@ const M_ = ({
|
|
|
28703
28712
|
"section",
|
|
28704
28713
|
{
|
|
28705
28714
|
ref: _,
|
|
28706
|
-
className:
|
|
28715
|
+
className: V("carousel-wrapper", a),
|
|
28707
28716
|
"data-testid": "carousel",
|
|
28708
28717
|
children: [
|
|
28709
28718
|
/* @__PURE__ */ c.jsx(N_, { id: e, title: i }),
|
|
@@ -28770,7 +28779,7 @@ const M_ = ({
|
|
|
28770
28779
|
children: /* @__PURE__ */ c.jsx(
|
|
28771
28780
|
"button",
|
|
28772
28781
|
{
|
|
28773
|
-
className:
|
|
28782
|
+
className: V("page-indicator", {
|
|
28774
28783
|
selected: O === b
|
|
28775
28784
|
}),
|
|
28776
28785
|
onClick: (S) => {
|
|
@@ -28854,7 +28863,7 @@ const Uk = ({
|
|
|
28854
28863
|
"data-gtm-event-context": `${r}-NarrowCard`,
|
|
28855
28864
|
"data-gtm-event-type": `${r}-click`
|
|
28856
28865
|
}), ee.createElement(e, {
|
|
28857
|
-
className:
|
|
28866
|
+
className: V("narrow-card", t, {
|
|
28858
28867
|
"has-link": l,
|
|
28859
28868
|
"gtm-trackable": l,
|
|
28860
28869
|
"no-link": !l
|
|
@@ -28864,7 +28873,7 @@ const Uk = ({
|
|
|
28864
28873
|
/* @__PURE__ */ c.jsx(
|
|
28865
28874
|
"div",
|
|
28866
28875
|
{
|
|
28867
|
-
className:
|
|
28876
|
+
className: V("img", {
|
|
28868
28877
|
private: o,
|
|
28869
28878
|
"no-image": !i
|
|
28870
28879
|
}),
|
|
@@ -28894,7 +28903,7 @@ const Wk = ({
|
|
|
28894
28903
|
u > 99 ? u = 100 : u < 1 && (u = 0);
|
|
28895
28904
|
const { highlightPercentage: d = !1 } = s;
|
|
28896
28905
|
return ee.createElement(e, {
|
|
28897
|
-
className:
|
|
28906
|
+
className: V("course-progression", o, {
|
|
28898
28907
|
"highlight-percentage": d,
|
|
28899
28908
|
"has-circle-graph": a === "circle"
|
|
28900
28909
|
}),
|
|
@@ -28933,7 +28942,7 @@ const R_ = ({
|
|
|
28933
28942
|
title: r,
|
|
28934
28943
|
className: i = ""
|
|
28935
28944
|
}) => ee.createElement(e, {
|
|
28936
|
-
className:
|
|
28945
|
+
className: V("lesson-name", i),
|
|
28937
28946
|
"data-number": `${t}.${n}`,
|
|
28938
28947
|
children: r
|
|
28939
28948
|
});
|
|
@@ -28946,8 +28955,8 @@ const $_ = ({
|
|
|
28946
28955
|
children: a
|
|
28947
28956
|
}) => {
|
|
28948
28957
|
const s = le(), o = ao(`lessonType_${i}`) ? s.formatMessage({ id: `lessonType_${i}` }) : Kh(i || "");
|
|
28949
|
-
return /* @__PURE__ */ c.jsxs("small", { className:
|
|
28950
|
-
/* @__PURE__ */ c.jsx("span", { className:
|
|
28958
|
+
return /* @__PURE__ */ c.jsxs("small", { className: V("content-type", { [e]: e !== "default" }), children: [
|
|
28959
|
+
/* @__PURE__ */ c.jsx("span", { className: V("type", n), children: o }),
|
|
28951
28960
|
" ",
|
|
28952
28961
|
t > 0 && !r && /* @__PURE__ */ c.jsx(Ko, { time: t }),
|
|
28953
28962
|
" ",
|
|
@@ -29012,7 +29021,7 @@ const Vk = ({
|
|
|
29012
29021
|
return x && (L.style = { "--image": `url(${x})` }), /* @__PURE__ */ c.jsx(
|
|
29013
29022
|
"li",
|
|
29014
29023
|
{
|
|
29015
|
-
className:
|
|
29024
|
+
className: V({
|
|
29016
29025
|
article: b === si.ARTICLE,
|
|
29017
29026
|
discussion: b === si.DISCUSSION,
|
|
29018
29027
|
quiz: b === si.QUIZ,
|
|
@@ -29077,7 +29086,7 @@ const Hk = ({
|
|
|
29077
29086
|
hover: "check-inside-circle_no-overlap_inverted"
|
|
29078
29087
|
},
|
|
29079
29088
|
onClick: t,
|
|
29080
|
-
className:
|
|
29089
|
+
className: V("mark-complete-button center gtm-trackable", {
|
|
29081
29090
|
completed: e
|
|
29082
29091
|
}),
|
|
29083
29092
|
"data-gtm-event-type": "mark-as-complete",
|
|
@@ -29212,7 +29221,7 @@ const z_ = ({
|
|
|
29212
29221
|
g.stopPropagation(), m && (l == null || l.createVote(t), d(!0));
|
|
29213
29222
|
}, f = {
|
|
29214
29223
|
htmlFor: t.id,
|
|
29215
|
-
className:
|
|
29224
|
+
className: V({
|
|
29216
29225
|
"can-vote": m
|
|
29217
29226
|
}),
|
|
29218
29227
|
tabIndex: o && m ? 0 : -1,
|
|
@@ -29248,7 +29257,7 @@ const z_ = ({
|
|
|
29248
29257
|
{
|
|
29249
29258
|
"data-testid": "poll-option",
|
|
29250
29259
|
style: p,
|
|
29251
|
-
className:
|
|
29260
|
+
className: V("poll-option text-small", {
|
|
29252
29261
|
selected: t.hasUserVoted
|
|
29253
29262
|
}),
|
|
29254
29263
|
children: [
|
|
@@ -29400,7 +29409,7 @@ export {
|
|
|
29400
29409
|
jm as FlagsProvider,
|
|
29401
29410
|
hh as Footer,
|
|
29402
29411
|
mn as Form,
|
|
29403
|
-
|
|
29412
|
+
H as Formatting,
|
|
29404
29413
|
zt as Fragment,
|
|
29405
29414
|
Hn as FullWidthSection,
|
|
29406
29415
|
ru as GET_STREAM_USER_PREFIX,
|