@apolitical/component-library 5.3.4-beta.0 → 5.3.4
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 +14 -14
- package/index.mjs +307 -298
- package/package.json +1 -1
- package/sections/full-width-section/full-width-section.d.ts +2 -0
- package/style.css +1 -1
- package/styles/mixins/_styles.scss +3 -0
- package/styles/variables/colors/_colors.scss +2 -0
- package/styles/variables/colors/theme/_base.scss +2 -1
- package/styles/variables/colors/theme/_layout.scss +2 -2
package/index.mjs
CHANGED
|
@@ -75,7 +75,7 @@ var Mc = { exports: {} };
|
|
|
75
75
|
})();
|
|
76
76
|
})(Mc);
|
|
77
77
|
var Fh = Mc.exports;
|
|
78
|
-
const
|
|
78
|
+
const V = /* @__PURE__ */ Mn(Fh), Ah = ({
|
|
79
79
|
element: e = "span",
|
|
80
80
|
showOnFocus: t = !0,
|
|
81
81
|
children: n,
|
|
@@ -83,7 +83,7 @@ const K = /* @__PURE__ */ Mn(Fh), Ah = ({
|
|
|
83
83
|
...i
|
|
84
84
|
}) => te.createElement(e, {
|
|
85
85
|
...i,
|
|
86
|
-
className:
|
|
86
|
+
className: V("hidden", r, { "show-on-focus": t }),
|
|
87
87
|
children: n
|
|
88
88
|
}), He = Jt(Ah), Bh = ({
|
|
89
89
|
element: e = "span",
|
|
@@ -447,17 +447,17 @@ function Sh() {
|
|
|
447
447
|
}
|
|
448
448
|
function je(N) {
|
|
449
449
|
try {
|
|
450
|
-
return
|
|
450
|
+
return K(N), !1;
|
|
451
451
|
} catch {
|
|
452
452
|
return !0;
|
|
453
453
|
}
|
|
454
454
|
}
|
|
455
|
-
function
|
|
455
|
+
function K(N) {
|
|
456
456
|
return "" + N;
|
|
457
457
|
}
|
|
458
458
|
function se(N) {
|
|
459
459
|
if (je(N))
|
|
460
|
-
return w("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", Ae(N)),
|
|
460
|
+
return w("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", Ae(N)), K(N);
|
|
461
461
|
}
|
|
462
462
|
var pe = v.ReactCurrentOwner, ye = {
|
|
463
463
|
key: !0,
|
|
@@ -928,11 +928,11 @@ const Yo = {}, pr = Ys(
|
|
|
928
928
|
const $ = {
|
|
929
929
|
className: "content"
|
|
930
930
|
};
|
|
931
|
-
return C ? $.className =
|
|
931
|
+
return C ? $.className = V("content", { hidden: f === "hidden" }) : $.hidden = f === "hidden", /* @__PURE__ */ c.jsx(
|
|
932
932
|
"aside",
|
|
933
933
|
{
|
|
934
934
|
ref: g,
|
|
935
|
-
className:
|
|
935
|
+
className: V("tooltip text-medium", f, a, {
|
|
936
936
|
loading: r,
|
|
937
937
|
"extra-padding": v,
|
|
938
938
|
"has-pointer": w,
|
|
@@ -1686,13 +1686,15 @@ const Se = ({
|
|
|
1686
1686
|
}
|
|
1687
1687
|
!l && u && (u = "");
|
|
1688
1688
|
const v = [];
|
|
1689
|
-
typeof t == "string" && v.push(t), r && (v.push("icon"), typeof r == "object" ? (v.push(r.icon), r.position ? v.push(r.position) : v.push("left"), r.hover && v.push(`hover_${r.hover}`), r.animate && (v.push("animate"), typeof r.animate == "string" && v.push(r.animate))) : (v.push(r), !r.includes("right") && !r.includes("left") && v.push("left")))
|
|
1689
|
+
typeof t == "string" && v.push(t), r && (v.push("icon"), typeof r == "object" ? (v.push(r.icon), r.position ? v.push(r.position) : v.push("left"), r.hover && v.push(`hover_${r.hover}`), r.animate && (v.push("animate"), typeof r.animate == "string" && v.push(r.animate))) : (v.push(r), !r.includes("right") && !r.includes("left") && v.push("left")));
|
|
1690
1690
|
const w = {
|
|
1691
1691
|
...m,
|
|
1692
|
-
className:
|
|
1692
|
+
className: V(e, o, v, {
|
|
1693
1693
|
"no-text": !h,
|
|
1694
1694
|
disabled: l,
|
|
1695
|
-
button: i
|
|
1695
|
+
button: i,
|
|
1696
|
+
muted: n.muted,
|
|
1697
|
+
"full-width": n.fullWidth
|
|
1696
1698
|
}),
|
|
1697
1699
|
onClick: (B) => {
|
|
1698
1700
|
(!i || i[0] === "#") && s && (B.preventDefault(), B.stopPropagation()), s && s(B);
|
|
@@ -1722,14 +1724,14 @@ const Se = ({
|
|
|
1722
1724
|
return i === "p" ? /* @__PURE__ */ c.jsx(Se, { ...s }, o) : /* @__PURE__ */ c.jsx("li", { className: ((l = t[o]) == null ? void 0 : l.className) || "", children: /* @__PURE__ */ c.jsx(Se, { ...s }) }, o);
|
|
1723
1725
|
});
|
|
1724
1726
|
return te.createElement(i, {
|
|
1725
|
-
className:
|
|
1727
|
+
className: V("button-wrapper", n),
|
|
1726
1728
|
...r,
|
|
1727
1729
|
children: a
|
|
1728
1730
|
});
|
|
1729
1731
|
};
|
|
1730
1732
|
const on = ({ className: e = "", maxWidth: t = !1 }) => {
|
|
1731
1733
|
const n = t ? { "--max-width": `${t / 16}rem` } : {};
|
|
1732
|
-
return /* @__PURE__ */ c.jsx("hr", { className:
|
|
1734
|
+
return /* @__PURE__ */ c.jsx("hr", { className: V(e, { "has-max-width": t }), style: n });
|
|
1733
1735
|
}, Xo = {
|
|
1734
1736
|
card: {
|
|
1735
1737
|
range: [
|
|
@@ -1941,7 +1943,7 @@ const R_ = ({ image: e, className: t = "", testId: n }) => /* @__PURE__ */ c.jsx
|
|
|
1941
1943
|
}) => {
|
|
1942
1944
|
if (e) {
|
|
1943
1945
|
const l = { ...o };
|
|
1944
|
-
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:
|
|
1946
|
+
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 });
|
|
1945
1947
|
}
|
|
1946
1948
|
return n ? te.createElement(n, { children: t, className: r, ...o }) : /* @__PURE__ */ c.jsx(c.Fragment, { children: t });
|
|
1947
1949
|
};
|
|
@@ -1952,7 +1954,7 @@ const em = Ys(
|
|
|
1952
1954
|
"aside",
|
|
1953
1955
|
{
|
|
1954
1956
|
ref: i,
|
|
1955
|
-
className:
|
|
1957
|
+
className: V("popover", e),
|
|
1956
1958
|
"aria-live": "polite",
|
|
1957
1959
|
children: t
|
|
1958
1960
|
}
|
|
@@ -1979,7 +1981,7 @@ const $_ = ({ currentStep: e = 1, steps: t = 1 }) => /* @__PURE__ */ c.jsxs(c.Fr
|
|
|
1979
1981
|
/* @__PURE__ */ c.jsx(
|
|
1980
1982
|
"div",
|
|
1981
1983
|
{
|
|
1982
|
-
className:
|
|
1984
|
+
className: V("dot", {
|
|
1983
1985
|
active: i === e,
|
|
1984
1986
|
completed: i < e
|
|
1985
1987
|
}),
|
|
@@ -1989,7 +1991,7 @@ const $_ = ({ currentStep: e = 1, steps: t = 1 }) => /* @__PURE__ */ c.jsxs(c.Fr
|
|
|
1989
1991
|
/* @__PURE__ */ c.jsx(
|
|
1990
1992
|
"div",
|
|
1991
1993
|
{
|
|
1992
|
-
className:
|
|
1994
|
+
className: V("line", {
|
|
1993
1995
|
active: i < e
|
|
1994
1996
|
})
|
|
1995
1997
|
}
|
|
@@ -2019,7 +2021,7 @@ const I_ = ({ elementId: e, offset: t = 20 }) => {
|
|
|
2019
2021
|
}
|
|
2020
2022
|
);
|
|
2021
2023
|
};
|
|
2022
|
-
const L_ = ({ items: e, className: t = "", ...n }) => /* @__PURE__ */ c.jsx("ul", { className:
|
|
2024
|
+
const L_ = ({ 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: [
|
|
2023
2025
|
/* @__PURE__ */ c.jsx("p", { className: "title", children: r }),
|
|
2024
2026
|
/* @__PURE__ */ c.jsx("p", { children: i })
|
|
2025
2027
|
] }) }, o)) }), eu = 300, tu = "ease-in-out";
|
|
@@ -2082,7 +2084,7 @@ const eo = ({
|
|
|
2082
2084
|
"details",
|
|
2083
2085
|
{
|
|
2084
2086
|
ref: a,
|
|
2085
|
-
className:
|
|
2087
|
+
className: V("collapsible-section", t, {
|
|
2086
2088
|
"should-animate": r
|
|
2087
2089
|
}),
|
|
2088
2090
|
children: [
|
|
@@ -2119,7 +2121,7 @@ const ru = {
|
|
|
2119
2121
|
return !n && !s ? null : /* @__PURE__ */ c.jsx(
|
|
2120
2122
|
"small",
|
|
2121
2123
|
{
|
|
2122
|
-
className:
|
|
2124
|
+
className: V(
|
|
2123
2125
|
"content-type-label text-small",
|
|
2124
2126
|
e in ru ? ru[e] : e,
|
|
2125
2127
|
r,
|
|
@@ -2145,7 +2147,7 @@ const Gt = ({
|
|
|
2145
2147
|
return /* @__PURE__ */ c.jsx(
|
|
2146
2148
|
"div",
|
|
2147
2149
|
{
|
|
2148
|
-
className:
|
|
2150
|
+
className: V("highlighted-text-box", e, r, {
|
|
2149
2151
|
"has-icon": t,
|
|
2150
2152
|
"show-highlight": s,
|
|
2151
2153
|
[o]: o !== "default"
|
|
@@ -2178,7 +2180,7 @@ const $n = ({
|
|
|
2178
2180
|
Gt,
|
|
2179
2181
|
{
|
|
2180
2182
|
variant: "subtle",
|
|
2181
|
-
className:
|
|
2183
|
+
className: V("empty-state-box", e, r),
|
|
2182
2184
|
children: /* @__PURE__ */ c.jsxs(c.Fragment, { children: [
|
|
2183
2185
|
t && typeof t == "string" ? /* @__PURE__ */ c.jsx(Yt, { options: { forceBlock: !0 }, children: t }) : t,
|
|
2184
2186
|
i && typeof n == "object" && (u || /* @__PURE__ */ c.jsx(
|
|
@@ -2202,7 +2204,7 @@ const am = ({
|
|
|
2202
2204
|
heading: n = !1,
|
|
2203
2205
|
children: r,
|
|
2204
2206
|
...i
|
|
2205
|
-
}) => /* @__PURE__ */ c.jsxs("div", { ...i, className:
|
|
2207
|
+
}) => /* @__PURE__ */ c.jsxs("div", { ...i, className: V("helper-text-box text-small", e, t), children: [
|
|
2206
2208
|
n && /* @__PURE__ */ c.jsx("p", { className: "title", children: n }),
|
|
2207
2209
|
typeof r == "string" ? /* @__PURE__ */ c.jsx(
|
|
2208
2210
|
Yt,
|
|
@@ -2254,14 +2256,14 @@ const sm = ({
|
|
|
2254
2256
|
Gt,
|
|
2255
2257
|
{
|
|
2256
2258
|
variant: "subtle",
|
|
2257
|
-
className:
|
|
2259
|
+
className: V("hide-show-text-box", t),
|
|
2258
2260
|
children: [
|
|
2259
2261
|
/* @__PURE__ */ c.jsx(
|
|
2260
2262
|
"div",
|
|
2261
2263
|
{
|
|
2262
2264
|
ref: u,
|
|
2263
2265
|
id: e,
|
|
2264
|
-
className:
|
|
2266
|
+
className: V("content", m, s),
|
|
2265
2267
|
children: i ? /* @__PURE__ */ c.jsxs(c.Fragment, { children: [
|
|
2266
2268
|
/* @__PURE__ */ c.jsx(Yt, { options: { forceBlock: !0, ...a }, children: m === "closed" ? d : i }),
|
|
2267
2269
|
m !== "closed" && o
|
|
@@ -2274,7 +2276,7 @@ const sm = ({
|
|
|
2274
2276
|
variant: "tertiary",
|
|
2275
2277
|
icon: { icon: "navigation_arrow", position: "left", animate: !0 },
|
|
2276
2278
|
styling: { muted: !0 },
|
|
2277
|
-
className:
|
|
2279
|
+
className: V({ "rotate-180": f }),
|
|
2278
2280
|
onClick: () => {
|
|
2279
2281
|
p(f ? "ready-to-close" : "opening");
|
|
2280
2282
|
},
|
|
@@ -2297,7 +2299,7 @@ const z_ = ({
|
|
|
2297
2299
|
}) => {
|
|
2298
2300
|
const { hasBorder: s = !1, zebraStriping: o = !1 } = i;
|
|
2299
2301
|
return te.createElement(e, {
|
|
2300
|
-
className:
|
|
2302
|
+
className: V("icon-bulleted-list text-medium", n, a, {
|
|
2301
2303
|
"has-border": s,
|
|
2302
2304
|
"has-zebra-stripes": o,
|
|
2303
2305
|
[t]: e !== "dl"
|
|
@@ -2423,7 +2425,7 @@ const z_ = ({
|
|
|
2423
2425
|
"@",
|
|
2424
2426
|
n.formatMessage({ id: "member_deleted" })
|
|
2425
2427
|
] })) : a ? (r = { ...r, className: "button primary medium" }, /* @__PURE__ */ c.jsx("p", { className: "center", children: /* @__PURE__ */ c.jsx(Se, { variant: "primary", size: "medium", ...r, children: i }) })) : /* @__PURE__ */ c.jsx("a", { ...r, children: i });
|
|
2426
|
-
}, au = ({ children: e, ...t }) => /* @__PURE__ */ c.jsx("span", { className:
|
|
2428
|
+
}, au = ({ children: e, ...t }) => /* @__PURE__ */ c.jsx("span", { className: V({ url: t == null ? void 0 : t.href }), children: e });
|
|
2427
2429
|
const mm = {
|
|
2428
2430
|
default: {
|
|
2429
2431
|
a: hm,
|
|
@@ -2475,7 +2477,7 @@ const mm = {
|
|
|
2475
2477
|
};
|
|
2476
2478
|
let l = mm[i];
|
|
2477
2479
|
return n.overrides && (l = { ...l, ...n.overrides }), te.createElement(e, {
|
|
2478
|
-
className:
|
|
2480
|
+
className: V("markdown-text", t, {
|
|
2479
2481
|
"highlight-titles": s
|
|
2480
2482
|
}),
|
|
2481
2483
|
children: /* @__PURE__ */ c.jsx(Yt, { options: { ...o, ...n, overrides: l }, children: r })
|
|
@@ -2489,8 +2491,8 @@ const pm = ({
|
|
|
2489
2491
|
className: i = ""
|
|
2490
2492
|
}) => {
|
|
2491
2493
|
const a = e ? { "--max-width": `${e / 16}rem` } : {};
|
|
2492
|
-
return /* @__PURE__ */ c.jsxs("section", { className:
|
|
2493
|
-
/* @__PURE__ */ c.jsxs("div", { className:
|
|
2494
|
+
return /* @__PURE__ */ c.jsxs("section", { className: V("page-heading", i), children: [
|
|
2495
|
+
/* @__PURE__ */ c.jsxs("div", { className: V("content", { "has-max-width": e }), style: a, children: [
|
|
2494
2496
|
t && t.text && te.createElement(t.element || "h1", { className: "title" }, t.text),
|
|
2495
2497
|
n && n.text && te.createElement(
|
|
2496
2498
|
n.element || "h2",
|
|
@@ -2514,7 +2516,7 @@ const an = ({
|
|
|
2514
2516
|
const l = {
|
|
2515
2517
|
"--icon": `url(${sn}icons/${r}.svg)`
|
|
2516
2518
|
}, { showTooltip: u, tooltipProps: d } = Lc(!!i), h = te.createElement(s, {
|
|
2517
|
-
className:
|
|
2519
|
+
className: V("pill", e, t, n, {
|
|
2518
2520
|
"has-icon": r
|
|
2519
2521
|
}),
|
|
2520
2522
|
style: l,
|
|
@@ -2543,7 +2545,7 @@ const Ri = ({
|
|
|
2543
2545
|
e,
|
|
2544
2546
|
{
|
|
2545
2547
|
...r,
|
|
2546
|
-
className:
|
|
2548
|
+
className: V("status-banner text-small", n),
|
|
2547
2549
|
"aria-live": "assertive"
|
|
2548
2550
|
},
|
|
2549
2551
|
t
|
|
@@ -2675,7 +2677,7 @@ const Am = ({ slug: e }) => {
|
|
|
2675
2677
|
return /* @__PURE__ */ c.jsx(
|
|
2676
2678
|
an,
|
|
2677
2679
|
{
|
|
2678
|
-
className:
|
|
2680
|
+
className: V("user-badge", a == null ? void 0 : a.toLowerCase()),
|
|
2679
2681
|
icon: i && Fm[i],
|
|
2680
2682
|
element: "li",
|
|
2681
2683
|
tooltip: s,
|
|
@@ -2711,7 +2713,7 @@ const Tm = ({
|
|
|
2711
2713
|
return /* @__PURE__ */ c.jsx(
|
|
2712
2714
|
"span",
|
|
2713
2715
|
{
|
|
2714
|
-
className:
|
|
2716
|
+
className: V(`progress-bar section-${u}`, s, r, {
|
|
2715
2717
|
[o]: o !== "default",
|
|
2716
2718
|
[l !== "default" ? l : ""]: l !== "default"
|
|
2717
2719
|
}),
|
|
@@ -2740,7 +2742,7 @@ const xa = "loadingBlock_", Sm = ({ progress: e = 0, steps: t = !1, className: n
|
|
|
2740
2742
|
return /* @__PURE__ */ c.jsxs(
|
|
2741
2743
|
Gt,
|
|
2742
2744
|
{
|
|
2743
|
-
className:
|
|
2745
|
+
className: V("loading-block", n, {
|
|
2744
2746
|
"has-icon": i && t[i].icon
|
|
2745
2747
|
}),
|
|
2746
2748
|
variant: "subtle",
|
|
@@ -2756,7 +2758,7 @@ const zt = ({ element: e = "div", className: t = "", ...n }) => /* @__PURE__ */
|
|
|
2756
2758
|
Js,
|
|
2757
2759
|
{
|
|
2758
2760
|
element: e,
|
|
2759
|
-
className:
|
|
2761
|
+
className: V("loading-placeholder", t),
|
|
2760
2762
|
...n
|
|
2761
2763
|
}
|
|
2762
2764
|
);
|
|
@@ -2810,7 +2812,7 @@ const ws = {
|
|
|
2810
2812
|
"course-navigation": ["button", "button"],
|
|
2811
2813
|
"course-lesson-page": ["breadcrumb", "course-navigation", "text-page"],
|
|
2812
2814
|
"course-lesson-quiz": ["text-page", "quiz-box"]
|
|
2813
|
-
}, ed = (e, t) => e in ws ? /* @__PURE__ */ c.jsx("div", { className: e, children: ws[e].map((n, r) => ed(n, r)) }, t) : /* @__PURE__ */ c.jsx(zt, { className: e }, t), no = ({ layout: e = "overview-page", ...t }) => /* @__PURE__ */ c.jsx("div", { className:
|
|
2815
|
+
}, ed = (e, t) => e in ws ? /* @__PURE__ */ c.jsx("div", { className: e, children: ws[e].map((n, r) => ed(n, r)) }, t) : /* @__PURE__ */ c.jsx(zt, { className: e }, t), no = ({ layout: e = "overview-page", ...t }) => /* @__PURE__ */ c.jsx("div", { className: V("loading-state", e), ...t, children: ws[e].map((n, r) => ed(n, r)) }), td = (e) => {
|
|
2814
2816
|
const t = e && e.toUpperCase().trim().split(" ");
|
|
2815
2817
|
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) : "";
|
|
2816
2818
|
}, ri = ["#5AB6A3", "#A2D7AF", "#806056", "#3962B3"], jm = (e) => {
|
|
@@ -2847,7 +2849,7 @@ const su = 256, In = ({
|
|
|
2847
2849
|
return t && t !== "" && !l && (t.includes("http") || t.includes("//")) && (m = !0), /* @__PURE__ */ c.jsx(
|
|
2848
2850
|
"figure",
|
|
2849
2851
|
{
|
|
2850
|
-
className:
|
|
2852
|
+
className: V("profile-picture", e, { error: l }),
|
|
2851
2853
|
...o,
|
|
2852
2854
|
children: m ? /* @__PURE__ */ c.jsx(
|
|
2853
2855
|
"img",
|
|
@@ -2922,7 +2924,7 @@ const yn = ({
|
|
|
2922
2924
|
const z = Om(C), $ = r && r.createdAt ? Ds(r.createdAt) : !1, A = r && r.createdAt ? Wc(r.createdAt) : "";
|
|
2923
2925
|
return te.createElement(e, {
|
|
2924
2926
|
...d,
|
|
2925
|
-
className:
|
|
2927
|
+
className: V("member text-medium", g, f, l, {
|
|
2926
2928
|
"has-profile-link": E
|
|
2927
2929
|
}),
|
|
2928
2930
|
...p,
|
|
@@ -2950,7 +2952,7 @@ const yn = ({
|
|
|
2950
2952
|
/* @__PURE__ */ c.jsxs(
|
|
2951
2953
|
"div",
|
|
2952
2954
|
{
|
|
2953
|
-
className:
|
|
2955
|
+
className: V("name", { "new-line": v }),
|
|
2954
2956
|
"data-testid": "member-name",
|
|
2955
2957
|
children: [
|
|
2956
2958
|
/* @__PURE__ */ c.jsx("span", { children: S }),
|
|
@@ -2958,7 +2960,7 @@ const yn = ({
|
|
|
2958
2960
|
r && /* @__PURE__ */ c.jsxs(
|
|
2959
2961
|
"span",
|
|
2960
2962
|
{
|
|
2961
|
-
className:
|
|
2963
|
+
className: V("additional-content", {
|
|
2962
2964
|
"new-line": v
|
|
2963
2965
|
}),
|
|
2964
2966
|
children: [
|
|
@@ -2986,7 +2988,7 @@ const yn = ({
|
|
|
2986
2988
|
z && !v && /* @__PURE__ */ c.jsx(
|
|
2987
2989
|
"small",
|
|
2988
2990
|
{
|
|
2989
|
-
className:
|
|
2991
|
+
className: V({ "text-medium": g === "large" }),
|
|
2990
2992
|
"data-testid": "member-details",
|
|
2991
2993
|
children: b ? z : /* @__PURE__ */ c.jsxs(c.Fragment, { children: [
|
|
2992
2994
|
C.role,
|
|
@@ -3055,7 +3057,7 @@ const ou = {
|
|
|
3055
3057
|
const h = ce();
|
|
3056
3058
|
return !n || n.length === 0 ? null : te.createElement(e, {
|
|
3057
3059
|
...d,
|
|
3058
|
-
className:
|
|
3060
|
+
className: V("contributors", u, i, { "has-gap": a }),
|
|
3059
3061
|
children: /* @__PURE__ */ c.jsxs(c.Fragment, { children: [
|
|
3060
3062
|
/* @__PURE__ */ c.jsx("ul", { children: n.map((m, p) => {
|
|
3061
3063
|
let g, f = "";
|
|
@@ -3077,7 +3079,7 @@ const ou = {
|
|
|
3077
3079
|
g = /* @__PURE__ */ c.jsxs(
|
|
3078
3080
|
"small",
|
|
3079
3081
|
{
|
|
3080
|
-
className:
|
|
3082
|
+
className: V({ "large-number": b > 99 }),
|
|
3081
3083
|
children: [
|
|
3082
3084
|
"+",
|
|
3083
3085
|
Zh(b, 0)
|
|
@@ -3085,14 +3087,14 @@ const ou = {
|
|
|
3085
3087
|
}
|
|
3086
3088
|
), f = "number-left";
|
|
3087
3089
|
}
|
|
3088
|
-
return g ? /* @__PURE__ */ c.jsx("li", { className:
|
|
3090
|
+
return g ? /* @__PURE__ */ c.jsx("li", { className: V("contributor", f), children: g }, p) : null;
|
|
3089
3091
|
}) }),
|
|
3090
3092
|
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]}` }) : ar(n[0].name || "", 20) : l || null })
|
|
3091
3093
|
] })
|
|
3092
3094
|
});
|
|
3093
3095
|
};
|
|
3094
3096
|
const rd = ({ element: e = "section", children: t, className: n, ...r }) => te.createElement(e, {
|
|
3095
|
-
className:
|
|
3097
|
+
className: V("modal", n),
|
|
3096
3098
|
children: typeof t == "string" ? /* @__PURE__ */ c.jsx("p", { children: t }) : t,
|
|
3097
3099
|
...r
|
|
3098
3100
|
});
|
|
@@ -4785,7 +4787,7 @@ const xn = ({
|
|
|
4785
4787
|
{
|
|
4786
4788
|
id: `${e}-overlay`,
|
|
4787
4789
|
ref: E,
|
|
4788
|
-
className:
|
|
4790
|
+
className: V("overlay", {
|
|
4789
4791
|
open: f,
|
|
4790
4792
|
"in-portal": d.includes("in-portal")
|
|
4791
4793
|
}),
|
|
@@ -4794,7 +4796,7 @@ const xn = ({
|
|
|
4794
4796
|
rd,
|
|
4795
4797
|
{
|
|
4796
4798
|
id: e,
|
|
4797
|
-
className:
|
|
4799
|
+
className: V("overlay-modal", d, {
|
|
4798
4800
|
"has-max-width": r
|
|
4799
4801
|
}),
|
|
4800
4802
|
hidden: !f,
|
|
@@ -4873,7 +4875,7 @@ const Cr = "joinCommunityButton", pd = ({
|
|
|
4873
4875
|
await w();
|
|
4874
4876
|
}, 500), h(!d);
|
|
4875
4877
|
},
|
|
4876
|
-
className:
|
|
4878
|
+
className: V("join-community-button", m, {
|
|
4877
4879
|
active: m === "joining"
|
|
4878
4880
|
}),
|
|
4879
4881
|
disabled: u,
|
|
@@ -4894,7 +4896,7 @@ const Aa = "communityDetails_", U_ = ({
|
|
|
4894
4896
|
functions: { invite: s, ...o }
|
|
4895
4897
|
}) => {
|
|
4896
4898
|
const l = ce(), { id: u } = $e(Dt), 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, b = !n && !t;
|
|
4897
|
-
return /* @__PURE__ */ c.jsxs("div", { className:
|
|
4899
|
+
return /* @__PURE__ */ c.jsxs("div", { className: V("community-details", e), children: [
|
|
4898
4900
|
f ? /* @__PURE__ */ c.jsxs("div", { className: "member-details", children: [
|
|
4899
4901
|
/* @__PURE__ */ c.jsxs("div", { className: "top", children: [
|
|
4900
4902
|
/* @__PURE__ */ c.jsxs("h4", { children: [
|
|
@@ -4952,7 +4954,7 @@ const H_ = ({ breadcrumbs: e, cutoff: t = 20, className: n = "" }) => {
|
|
|
4952
4954
|
children: r.formatMessage({ id: "breadcrumbs_label" })
|
|
4953
4955
|
}
|
|
4954
4956
|
),
|
|
4955
|
-
/* @__PURE__ */ c.jsx("ul", { className:
|
|
4957
|
+
/* @__PURE__ */ c.jsx("ul", { className: V("breadcrumbs text-small", n), children: e.map(
|
|
4956
4958
|
({ text: i, href: a, current: s = !1 }, o) => {
|
|
4957
4959
|
const l = {};
|
|
4958
4960
|
return s && (l["aria-current"] = "location"), /* @__PURE__ */ c.jsxs("li", { children: [
|
|
@@ -4980,7 +4982,7 @@ const Np = ({
|
|
|
4980
4982
|
return /* @__PURE__ */ c.jsxs(
|
|
4981
4983
|
"aside",
|
|
4982
4984
|
{
|
|
4983
|
-
className:
|
|
4985
|
+
className: V("enriched-url gtm-trackable", {
|
|
4984
4986
|
"has-image": t,
|
|
4985
4987
|
[e]: e !== "default"
|
|
4986
4988
|
}),
|
|
@@ -5034,7 +5036,7 @@ const Mp = ({
|
|
|
5034
5036
|
let g = [];
|
|
5035
5037
|
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();
|
|
5036
5038
|
};
|
|
5037
|
-
return /* @__PURE__ */ c.jsx("ul", { className:
|
|
5039
|
+
return /* @__PURE__ */ c.jsx("ul", { className: V("filters", s), children: l.map(({ id: m, text: p, disabled: g = !1, callback: f = () => {
|
|
5038
5040
|
} }) => {
|
|
5039
5041
|
let b = {};
|
|
5040
5042
|
return g && (b = {
|
|
@@ -5043,7 +5045,7 @@ const Mp = ({
|
|
|
5043
5045
|
}), /* @__PURE__ */ c.jsx("li", { children: /* @__PURE__ */ c.jsx(
|
|
5044
5046
|
"button",
|
|
5045
5047
|
{
|
|
5046
|
-
className:
|
|
5048
|
+
className: V(m, {
|
|
5047
5049
|
selected: u.includes(m)
|
|
5048
5050
|
}),
|
|
5049
5051
|
onClick: (v) => {
|
|
@@ -5087,7 +5089,7 @@ const ui = "languageSwitcher_", V_ = ({
|
|
|
5087
5089
|
))
|
|
5088
5090
|
return null;
|
|
5089
5091
|
const g = Object.keys(r), f = h !== e;
|
|
5090
|
-
return /* @__PURE__ */ c.jsxs("div", { className:
|
|
5092
|
+
return /* @__PURE__ */ c.jsxs("div", { className: V("language-switcher text-small", s, l), children: [
|
|
5091
5093
|
/* @__PURE__ */ c.jsxs("nav", { children: [
|
|
5092
5094
|
s !== "short" && /* @__PURE__ */ c.jsx("p", { children: o || u.formatMessage({ id: `${ui}label` }) }),
|
|
5093
5095
|
/* @__PURE__ */ c.jsx("ul", { children: g.map((b) => {
|
|
@@ -5162,7 +5164,7 @@ const Ba = bh({ locale: "en", messages: gr }), sa = ({
|
|
|
5162
5164
|
g instanceof Error ? h(g.message) : h("Unknown error");
|
|
5163
5165
|
}
|
|
5164
5166
|
};
|
|
5165
|
-
return !d && !e && !o.endOfFeed ? null : /* @__PURE__ */ c.jsx("footer", { className:
|
|
5167
|
+
return !d && !e && !o.endOfFeed ? null : /* @__PURE__ */ c.jsx("footer", { className: V("load-more", l), children: !d && e ? /* @__PURE__ */ c.jsx(
|
|
5166
5168
|
Se,
|
|
5167
5169
|
{
|
|
5168
5170
|
variant: r,
|
|
@@ -5188,7 +5190,7 @@ const gd = ({
|
|
|
5188
5190
|
"a",
|
|
5189
5191
|
{
|
|
5190
5192
|
href: "/home/",
|
|
5191
|
-
className:
|
|
5193
|
+
className: V("logo", e, t, n),
|
|
5192
5194
|
...r,
|
|
5193
5195
|
children: /* @__PURE__ */ c.jsx(He, { children: /* @__PURE__ */ c.jsx(ht, { id: "apolitical" }) })
|
|
5194
5196
|
}
|
|
@@ -5209,7 +5211,7 @@ const $p = ({
|
|
|
5209
5211
|
document.removeEventListener("click", l, !0);
|
|
5210
5212
|
})), te.createElement(e, {
|
|
5211
5213
|
ref: a,
|
|
5212
|
-
className:
|
|
5214
|
+
className: V("more-menu text-medium", r),
|
|
5213
5215
|
children: /* @__PURE__ */ c.jsxs(c.Fragment, { children: [
|
|
5214
5216
|
/* @__PURE__ */ c.jsx(
|
|
5215
5217
|
Se,
|
|
@@ -5280,7 +5282,7 @@ const Lp = fr(() => Promise.resolve().then(() => Mm)), zp = [
|
|
|
5280
5282
|
return /* @__PURE__ */ c.jsxs("ul", { id: "navigation-menu", className: "text-medium", children: [
|
|
5281
5283
|
zp.map(({ key: a, href: s }) => {
|
|
5282
5284
|
const o = Ip(s, e), l = {};
|
|
5283
|
-
return o && (l["aria-current"] = "page"), /* @__PURE__ */ c.jsx("li", { className:
|
|
5285
|
+
return o && (l["aria-current"] = "page"), /* @__PURE__ */ c.jsx("li", { className: V(a, { active: o }), children: /* @__PURE__ */ c.jsx(
|
|
5284
5286
|
"a",
|
|
5285
5287
|
{
|
|
5286
5288
|
href: s,
|
|
@@ -5360,7 +5362,7 @@ const Up = "shareLinks_", K_ = ({
|
|
|
5360
5362
|
className: s = ""
|
|
5361
5363
|
}) => {
|
|
5362
5364
|
const o = ce(), l = Wp({ title: e, link: t, referrer: n });
|
|
5363
|
-
return /* @__PURE__ */ c.jsxs("aside", { className:
|
|
5365
|
+
return /* @__PURE__ */ c.jsxs("aside", { className: V("share-links", i, a, s), children: [
|
|
5364
5366
|
/* @__PURE__ */ c.jsx("p", { className: "text-small", children: o.formatMessage({ id: "shareLinks_label" }) }),
|
|
5365
5367
|
/* @__PURE__ */ c.jsx("ul", { children: l.map(({ key: u, icon: d, url: h, shouldRender: m = !0, onClick: p }) => {
|
|
5366
5368
|
if (typeof m == "function" && !m())
|
|
@@ -5458,7 +5460,7 @@ const Z_ = ({ tabs: e, className: t = "", preventLocationChange: n }) => {
|
|
|
5458
5460
|
href: w || `#${f}`,
|
|
5459
5461
|
id: `tab-${f}`,
|
|
5460
5462
|
"aria-controls": f,
|
|
5461
|
-
className:
|
|
5463
|
+
className: V({ selected: C }),
|
|
5462
5464
|
role: "tab",
|
|
5463
5465
|
tabIndex: C ? 0 : -1,
|
|
5464
5466
|
"aria-selected": C,
|
|
@@ -5469,7 +5471,7 @@ const Z_ = ({ tabs: e, className: t = "", preventLocationChange: n }) => {
|
|
|
5469
5471
|
) }, `tab-${f}`)
|
|
5470
5472
|
);
|
|
5471
5473
|
}
|
|
5472
|
-
), /* @__PURE__ */ c.jsxs("div", { className:
|
|
5474
|
+
), /* @__PURE__ */ c.jsxs("div", { className: V("tabs-wrapper", t), children: [
|
|
5473
5475
|
/* @__PURE__ */ c.jsx("ul", { className: "tabs", role: "tablist", children: m }),
|
|
5474
5476
|
/* @__PURE__ */ c.jsx("div", { className: "tab-content", children: p })
|
|
5475
5477
|
] });
|
|
@@ -5490,7 +5492,7 @@ const Hp = {
|
|
|
5490
5492
|
return te.Children.count(i) === 1 && (s = te.Children.toArray(i)[0], s.props && (s = s.props.children)), /* @__PURE__ */ c.jsx(
|
|
5491
5493
|
"section",
|
|
5492
5494
|
{
|
|
5493
|
-
className:
|
|
5495
|
+
className: V("columns", `layout-${e}`, r, {
|
|
5494
5496
|
"has-containers": n
|
|
5495
5497
|
}),
|
|
5496
5498
|
children: te.Children.map(s, (o, l) => t !== !1 && l === t && a && a < Hp[e] ? null : o)
|
|
@@ -5512,7 +5514,7 @@ const vd = ({
|
|
|
5512
5514
|
"small",
|
|
5513
5515
|
{
|
|
5514
5516
|
id: e,
|
|
5515
|
-
className:
|
|
5517
|
+
className: V("character-limit", {
|
|
5516
5518
|
"near-limit": l,
|
|
5517
5519
|
"approaching-limit": u
|
|
5518
5520
|
}),
|
|
@@ -5708,7 +5710,7 @@ const ci = "emailHelperTextBox_", Zp = ({
|
|
|
5708
5710
|
type: o,
|
|
5709
5711
|
id: n,
|
|
5710
5712
|
name: a,
|
|
5711
|
-
className:
|
|
5713
|
+
className: V(e, t, {
|
|
5712
5714
|
"has-scrollbar": o === "textarea" && m.current && m.current.clientHeight < m.current.scrollHeight
|
|
5713
5715
|
}),
|
|
5714
5716
|
value: l,
|
|
@@ -5835,7 +5837,7 @@ const Vn = {
|
|
|
5835
5837
|
...C,
|
|
5836
5838
|
activePredictionIndex: D
|
|
5837
5839
|
})),
|
|
5838
|
-
className:
|
|
5840
|
+
className: V("predictions-list-item", {
|
|
5839
5841
|
active: D === p
|
|
5840
5842
|
}),
|
|
5841
5843
|
children: B.description
|
|
@@ -5921,7 +5923,7 @@ const bd = ({
|
|
|
5921
5923
|
break;
|
|
5922
5924
|
}
|
|
5923
5925
|
} : void 0,
|
|
5924
|
-
className:
|
|
5926
|
+
className: V(i, "checkbox-wrapper", e, {
|
|
5925
5927
|
"is-checked": d
|
|
5926
5928
|
}),
|
|
5927
5929
|
...m,
|
|
@@ -5936,7 +5938,7 @@ const Qp = Jt(function({
|
|
|
5936
5938
|
return /* @__PURE__ */ c.jsx(
|
|
5937
5939
|
Js,
|
|
5938
5940
|
{
|
|
5939
|
-
className:
|
|
5941
|
+
className: V("rotating-chevron", `direction-${t}`)
|
|
5940
5942
|
}
|
|
5941
5943
|
);
|
|
5942
5944
|
});
|
|
@@ -5972,7 +5974,7 @@ const Jp = ({
|
|
|
5972
5974
|
} else
|
|
5973
5975
|
b([]), w && w([]);
|
|
5974
5976
|
};
|
|
5975
|
-
return /* @__PURE__ */ c.jsxs("div", { className:
|
|
5977
|
+
return /* @__PURE__ */ c.jsxs("div", { className: V("dropdown-wrapper", e), children: [
|
|
5976
5978
|
/* @__PURE__ */ c.jsxs(
|
|
5977
5979
|
"button",
|
|
5978
5980
|
{
|
|
@@ -6057,7 +6059,7 @@ const Jp = ({
|
|
|
6057
6059
|
return /* @__PURE__ */ c.jsx("li", { "data-testid": "dropdown-options", children: /* @__PURE__ */ c.jsxs(
|
|
6058
6060
|
"button",
|
|
6059
6061
|
{
|
|
6060
|
-
className:
|
|
6062
|
+
className: V("gtm-trackable", {
|
|
6061
6063
|
selected: L,
|
|
6062
6064
|
"selected-single": L && !o
|
|
6063
6065
|
}),
|
|
@@ -6071,7 +6073,7 @@ const Jp = ({
|
|
|
6071
6073
|
"data-testid": L ? "current-selection" : "",
|
|
6072
6074
|
children: [
|
|
6073
6075
|
o && /* @__PURE__ */ c.jsx("span", { className: "pretty-checkbox", "data-testid": "pretty-checkbox" }),
|
|
6074
|
-
/* @__PURE__ */ c.jsx("span", { className:
|
|
6076
|
+
/* @__PURE__ */ c.jsx("span", { className: V({ "menu-option-label": o }), children: S.label })
|
|
6075
6077
|
]
|
|
6076
6078
|
}
|
|
6077
6079
|
) }, S.id);
|
|
@@ -6120,7 +6122,7 @@ const Eu = ({
|
|
|
6120
6122
|
"ul",
|
|
6121
6123
|
{
|
|
6122
6124
|
...m,
|
|
6123
|
-
className:
|
|
6125
|
+
className: V("options-wrapper", e),
|
|
6124
6126
|
"data-testid": `ul-${r}`,
|
|
6125
6127
|
children: o == null ? void 0 : o.map(
|
|
6126
6128
|
({
|
|
@@ -6182,7 +6184,7 @@ const Xp = ({
|
|
|
6182
6184
|
"button",
|
|
6183
6185
|
{
|
|
6184
6186
|
type: "button",
|
|
6185
|
-
className:
|
|
6187
|
+
className: V("show-password gtm-trackable", {
|
|
6186
6188
|
"password-visible": l
|
|
6187
6189
|
}),
|
|
6188
6190
|
"data-gtm-event-context": n,
|
|
@@ -6276,7 +6278,7 @@ const Kn = {
|
|
|
6276
6278
|
{
|
|
6277
6279
|
...D,
|
|
6278
6280
|
label: S,
|
|
6279
|
-
className:
|
|
6281
|
+
className: V("field-wrapper", n)
|
|
6280
6282
|
}
|
|
6281
6283
|
),
|
|
6282
6284
|
/* @__PURE__ */ c.jsx(L, { as: "p" })
|
|
@@ -6290,7 +6292,7 @@ const Kn = {
|
|
|
6290
6292
|
});
|
|
6291
6293
|
return /* @__PURE__ */ c.jsx(c.Fragment, { children: te.createElement(
|
|
6292
6294
|
b ? "fieldset" : "div",
|
|
6293
|
-
{ className:
|
|
6295
|
+
{ className: V("field-wrapper text-medium", n) },
|
|
6294
6296
|
/* @__PURE__ */ c.jsxs(c.Fragment, { children: [
|
|
6295
6297
|
te.createElement(
|
|
6296
6298
|
b ? te.Fragment : "p",
|
|
@@ -6542,23 +6544,23 @@ const Ln = ({
|
|
|
6542
6544
|
}
|
|
6543
6545
|
});
|
|
6544
6546
|
}
|
|
6547
|
+
}, ie = (k) => {
|
|
6548
|
+
var q;
|
|
6549
|
+
if (k.preventDefault(), k.stopPropagation(), R)
|
|
6550
|
+
return;
|
|
6551
|
+
let P = 0;
|
|
6552
|
+
if ((q = re == null ? void 0 : re.current) != null && q.id) {
|
|
6553
|
+
const J = document.getElementById(re.current.id);
|
|
6554
|
+
J && (P = J.getBoundingClientRect().top + window.scrollY);
|
|
6555
|
+
}
|
|
6556
|
+
const j = document.getElementById("header");
|
|
6557
|
+
j && (P = P - j.offsetHeight - b), P < 0 && (P = 0), window.scrollTo({ top: P, behavior: "smooth" }), I();
|
|
6545
6558
|
}, F = [
|
|
6546
6559
|
{
|
|
6547
6560
|
...f,
|
|
6548
6561
|
icon: W ? { icon: "tick", position: "left" } : !1,
|
|
6549
|
-
className: "gtm-trackable",
|
|
6550
|
-
onClick:
|
|
6551
|
-
var q;
|
|
6552
|
-
if (k.preventDefault(), k.stopPropagation(), R)
|
|
6553
|
-
return;
|
|
6554
|
-
let P = 0;
|
|
6555
|
-
if ((q = re == null ? void 0 : re.current) != null && q.id) {
|
|
6556
|
-
const J = document.getElementById(re.current.id);
|
|
6557
|
-
J && (P = J.getBoundingClientRect().top + window.scrollY);
|
|
6558
|
-
}
|
|
6559
|
-
const j = document.getElementById("header");
|
|
6560
|
-
j && (P = P - j.offsetHeight - b), P < 0 && (P = 0), window.scrollTo({ top: P, behavior: "smooth" }), I();
|
|
6561
|
-
},
|
|
6562
|
+
className: V("gtm-trackable", f.className),
|
|
6563
|
+
onClick: ie,
|
|
6562
6564
|
disabled: R || W || s.disabled,
|
|
6563
6565
|
"data-gtm-event-context": d.context,
|
|
6564
6566
|
"data-gtm-event-type": d.event,
|
|
@@ -6567,7 +6569,7 @@ const Ln = ({
|
|
|
6567
6569
|
];
|
|
6568
6570
|
return v && F.unshift({
|
|
6569
6571
|
...o,
|
|
6570
|
-
className: "gtm-trackable",
|
|
6572
|
+
className: V("gtm-trackable", o.className),
|
|
6571
6573
|
"data-gtm-event-context": d.context,
|
|
6572
6574
|
"data-gtm-event-type": d.event,
|
|
6573
6575
|
disabled: R || W,
|
|
@@ -6579,7 +6581,7 @@ const Ln = ({
|
|
|
6579
6581
|
{
|
|
6580
6582
|
...m,
|
|
6581
6583
|
id: r,
|
|
6582
|
-
className:
|
|
6584
|
+
className: V("form", n),
|
|
6583
6585
|
ref: re
|
|
6584
6586
|
},
|
|
6585
6587
|
/* @__PURE__ */ c.jsxs(c.Fragment, { children: [
|
|
@@ -6625,7 +6627,7 @@ const Ln = ({
|
|
|
6625
6627
|
g ? null : (R || W) && p ? p : /* @__PURE__ */ c.jsx(
|
|
6626
6628
|
Yr,
|
|
6627
6629
|
{
|
|
6628
|
-
className:
|
|
6630
|
+
className: V("cta", {
|
|
6629
6631
|
center: R || W,
|
|
6630
6632
|
submitted: W
|
|
6631
6633
|
}),
|
|
@@ -6650,13 +6652,13 @@ const di = "passwordRules_", yd = "isMoreThanEightCharacters", Dd = "includesNum
|
|
|
6650
6652
|
className: t = ""
|
|
6651
6653
|
}) => {
|
|
6652
6654
|
const n = ce();
|
|
6653
|
-
return /* @__PURE__ */ c.jsxs("aside", { className:
|
|
6655
|
+
return /* @__PURE__ */ c.jsxs("aside", { className: V("password-rules", t), children: [
|
|
6654
6656
|
/* @__PURE__ */ c.jsx("small", { children: n.formatMessage({ id: `${di}intro` }) }),
|
|
6655
6657
|
/* @__PURE__ */ c.jsx("ul", { children: [yd, Dd, xd].map(
|
|
6656
6658
|
(r) => /* @__PURE__ */ c.jsxs(
|
|
6657
6659
|
"li",
|
|
6658
6660
|
{
|
|
6659
|
-
className:
|
|
6661
|
+
className: V({ matches: e[r] }),
|
|
6660
6662
|
children: [
|
|
6661
6663
|
/* @__PURE__ */ c.jsxs(He, { children: [
|
|
6662
6664
|
n.formatMessage({ id: `${di}rule_label` }),
|
|
@@ -6725,14 +6727,14 @@ const Y_ = ({
|
|
|
6725
6727
|
u((w) => ({ ...w, disabled: !1 }));
|
|
6726
6728
|
}
|
|
6727
6729
|
};
|
|
6728
|
-
return /* @__PURE__ */ c.jsxs("div", { className:
|
|
6730
|
+
return /* @__PURE__ */ c.jsxs("div", { className: V("rating", a), children: [
|
|
6729
6731
|
/* @__PURE__ */ c.jsx("span", { className: "label", children: f[m ? "success" : "text"] }),
|
|
6730
6732
|
/* @__PURE__ */ c.jsx("ol", { children: Array.from(new Array(t).keys()).map((v) => {
|
|
6731
6733
|
const w = v + 1;
|
|
6732
6734
|
return /* @__PURE__ */ c.jsx(
|
|
6733
6735
|
"li",
|
|
6734
6736
|
{
|
|
6735
|
-
className:
|
|
6737
|
+
className: V({ selected: m && w <= m }),
|
|
6736
6738
|
children: /* @__PURE__ */ c.jsx(
|
|
6737
6739
|
Se,
|
|
6738
6740
|
{
|
|
@@ -8278,18 +8280,18 @@ var Vg = (e, t, n) => {
|
|
|
8278
8280
|
}
|
|
8279
8281
|
case "set_selection": {
|
|
8280
8282
|
var {
|
|
8281
|
-
newProperties:
|
|
8283
|
+
newProperties: K
|
|
8282
8284
|
} = n;
|
|
8283
|
-
if (
|
|
8284
|
-
t =
|
|
8285
|
+
if (K == null)
|
|
8286
|
+
t = K;
|
|
8285
8287
|
else {
|
|
8286
8288
|
if (t == null) {
|
|
8287
|
-
if (!Y.isRange(
|
|
8288
|
-
throw new Error('Cannot apply an incomplete "set_selection" operation properties '.concat(ot.stringify(
|
|
8289
|
-
t = _r({},
|
|
8289
|
+
if (!Y.isRange(K))
|
|
8290
|
+
throw new Error('Cannot apply an incomplete "set_selection" operation properties '.concat(ot.stringify(K), " when there is no current selection."));
|
|
8291
|
+
t = _r({}, K);
|
|
8290
8292
|
}
|
|
8291
|
-
for (var se in
|
|
8292
|
-
var pe =
|
|
8293
|
+
for (var se in K) {
|
|
8294
|
+
var pe = K[se];
|
|
8293
8295
|
if (pe == null) {
|
|
8294
8296
|
if (se === "anchor" || se === "focus")
|
|
8295
8297
|
throw new Error('Cannot remove the "'.concat(se, '" selection property'));
|
|
@@ -13606,20 +13608,20 @@ function E1(e) {
|
|
|
13606
13608
|
at: R
|
|
13607
13609
|
});
|
|
13608
13610
|
if (M.equals(R.anchor.path, R.focus.path)) {
|
|
13609
|
-
var [Ae, je] = Y.edges(R),
|
|
13611
|
+
var [Ae, je] = Y.edges(R), K = {
|
|
13610
13612
|
start: Ae.offset,
|
|
13611
13613
|
end: je.offset,
|
|
13612
13614
|
text: ve
|
|
13613
13615
|
};
|
|
13614
13616
|
if (ve && u && T === "insertCompositionText") {
|
|
13615
|
-
var se = u.start + u.text.search(/\S|$/), pe =
|
|
13616
|
-
pe === se + 1 &&
|
|
13617
|
+
var se = u.start + u.text.search(/\S|$/), pe = K.start + K.text.search(/\S|$/);
|
|
13618
|
+
pe === se + 1 && K.end === u.start + u.text.length ? (K.start -= 1, u = null, z()) : u = !1;
|
|
13617
13619
|
} else
|
|
13618
|
-
T === "insertText" ? u === null ? u =
|
|
13620
|
+
T === "insertText" ? u === null ? u = K : u && Y.isCollapsed(R) && u.end + u.text.length === Ae.offset ? u = bi(bi({}, u), {}, {
|
|
13619
13621
|
text: u.text + ve
|
|
13620
13622
|
}) : u = !1 : u = !1;
|
|
13621
13623
|
if (x) {
|
|
13622
|
-
b(Ae.path,
|
|
13624
|
+
b(Ae.path, K);
|
|
13623
13625
|
return;
|
|
13624
13626
|
}
|
|
13625
13627
|
}
|
|
@@ -14498,8 +14500,8 @@ var oD = (e) => /* @__PURE__ */ te.createElement(te.Fragment, null, vf(e)), uD =
|
|
|
14498
14500
|
break;
|
|
14499
14501
|
}
|
|
14500
14502
|
}
|
|
14501
|
-
var
|
|
14502
|
-
Pr.delete(f),
|
|
14503
|
+
var K = (P = Pr.get(f)) === null || P === void 0 ? void 0 : P.unref();
|
|
14504
|
+
Pr.delete(f), K && (!f.selection || !Y.equals(f.selection, K)) && Q.select(f, K);
|
|
14503
14505
|
}
|
|
14504
14506
|
}, [f, $, C, i, s, A]), T = Re((k) => {
|
|
14505
14507
|
k == null ? ($.cancel(), A.cancel(), Si.delete(f), Sn.delete(f), w.current && fn && w.current.removeEventListener("beforeinput", _)) : fn && k.addEventListener("beforeinput", _), w.current = k;
|
|
@@ -19041,7 +19043,7 @@ function Zw(e) {
|
|
|
19041
19043
|
Mf(t, (e || {}).mdastExtensions || []);
|
|
19042
19044
|
const n = {};
|
|
19043
19045
|
return r;
|
|
19044
|
-
function r(
|
|
19046
|
+
function r(K) {
|
|
19045
19047
|
let se = {
|
|
19046
19048
|
type: "root",
|
|
19047
19049
|
children: []
|
|
@@ -19057,24 +19059,24 @@ function Zw(e) {
|
|
|
19057
19059
|
data: n
|
|
19058
19060
|
}, ye = [];
|
|
19059
19061
|
let _e = -1;
|
|
19060
|
-
for (; ++_e <
|
|
19061
|
-
if (
|
|
19062
|
-
if (
|
|
19062
|
+
for (; ++_e < K.length; )
|
|
19063
|
+
if (K[_e][1].type === "listOrdered" || K[_e][1].type === "listUnordered")
|
|
19064
|
+
if (K[_e][0] === "enter")
|
|
19063
19065
|
ye.push(_e);
|
|
19064
19066
|
else {
|
|
19065
19067
|
const Xe = ye.pop();
|
|
19066
|
-
_e = i(
|
|
19068
|
+
_e = i(K, Xe, _e);
|
|
19067
19069
|
}
|
|
19068
|
-
for (_e = -1; ++_e <
|
|
19069
|
-
const Xe = t[
|
|
19070
|
-
Nf.call(Xe,
|
|
19070
|
+
for (_e = -1; ++_e < K.length; ) {
|
|
19071
|
+
const Xe = t[K[_e][0]];
|
|
19072
|
+
Nf.call(Xe, K[_e][1].type) && Xe[K[_e][1].type].call(
|
|
19071
19073
|
Object.assign(
|
|
19072
19074
|
{
|
|
19073
|
-
sliceSerialize:
|
|
19075
|
+
sliceSerialize: K[_e][2].sliceSerialize
|
|
19074
19076
|
},
|
|
19075
19077
|
pe
|
|
19076
19078
|
),
|
|
19077
|
-
|
|
19079
|
+
K[_e][1]
|
|
19078
19080
|
);
|
|
19079
19081
|
}
|
|
19080
19082
|
if (pe.tokenStack.length > 0) {
|
|
@@ -19083,14 +19085,14 @@ function Zw(e) {
|
|
|
19083
19085
|
}
|
|
19084
19086
|
for (se.position = {
|
|
19085
19087
|
start: hn(
|
|
19086
|
-
|
|
19088
|
+
K.length > 0 ? K[0][1].start : {
|
|
19087
19089
|
line: 1,
|
|
19088
19090
|
column: 1,
|
|
19089
19091
|
offset: 0
|
|
19090
19092
|
}
|
|
19091
19093
|
),
|
|
19092
19094
|
end: hn(
|
|
19093
|
-
|
|
19095
|
+
K.length > 0 ? K[K.length - 2][1].end : {
|
|
19094
19096
|
line: 1,
|
|
19095
19097
|
column: 1,
|
|
19096
19098
|
offset: 0
|
|
@@ -19100,10 +19102,10 @@ function Zw(e) {
|
|
|
19100
19102
|
se = t.transforms[_e](se) || se;
|
|
19101
19103
|
return se;
|
|
19102
19104
|
}
|
|
19103
|
-
function i(
|
|
19105
|
+
function i(K, se, pe) {
|
|
19104
19106
|
let ye = se - 1, _e = -1, Xe = !1, et, xe, Oe, st;
|
|
19105
19107
|
for (; ++ye <= pe; ) {
|
|
19106
|
-
const it =
|
|
19108
|
+
const it = K[ye];
|
|
19107
19109
|
switch (it[1].type) {
|
|
19108
19110
|
case "listUnordered":
|
|
19109
19111
|
case "listOrdered":
|
|
@@ -19128,18 +19130,18 @@ function Zw(e) {
|
|
|
19128
19130
|
if (et) {
|
|
19129
19131
|
let At = ye;
|
|
19130
19132
|
for (xe = void 0; At--; ) {
|
|
19131
|
-
const dt =
|
|
19133
|
+
const dt = K[At];
|
|
19132
19134
|
if (dt[1].type === "lineEnding" || dt[1].type === "lineEndingBlank") {
|
|
19133
19135
|
if (dt[0] === "exit")
|
|
19134
19136
|
continue;
|
|
19135
|
-
xe && (
|
|
19137
|
+
xe && (K[xe][1].type = "lineEndingBlank", Xe = !0), dt[1].type = "lineEnding", xe = At;
|
|
19136
19138
|
} else if (!(dt[1].type === "linePrefix" || dt[1].type === "blockQuotePrefix" || dt[1].type === "blockQuotePrefixWhitespace" || dt[1].type === "blockQuoteMarker" || dt[1].type === "listItemIndent"))
|
|
19137
19139
|
break;
|
|
19138
19140
|
}
|
|
19139
19141
|
Oe && (!xe || Oe < xe) && (et._spread = !0), et.end = Object.assign(
|
|
19140
19142
|
{},
|
|
19141
|
-
xe ?
|
|
19142
|
-
),
|
|
19143
|
+
xe ? K[xe][1].start : it[1].end
|
|
19144
|
+
), K.splice(xe || ye, 0, ["exit", et, it[2]]), ye++, pe++;
|
|
19143
19145
|
}
|
|
19144
19146
|
if (it[1].type === "listItemPrefix") {
|
|
19145
19147
|
const At = {
|
|
@@ -19149,16 +19151,16 @@ function Zw(e) {
|
|
|
19149
19151
|
// @ts-expect-error: we’ll add `end` in a second.
|
|
19150
19152
|
end: void 0
|
|
19151
19153
|
};
|
|
19152
|
-
et = At,
|
|
19154
|
+
et = At, K.splice(ye, 0, ["enter", At, it[2]]), ye++, pe++, Oe = void 0, st = !0;
|
|
19153
19155
|
}
|
|
19154
19156
|
}
|
|
19155
19157
|
}
|
|
19156
|
-
return
|
|
19158
|
+
return K[se][1]._spread = Xe, pe;
|
|
19157
19159
|
}
|
|
19158
|
-
function a(
|
|
19160
|
+
function a(K, se) {
|
|
19159
19161
|
return pe;
|
|
19160
19162
|
function pe(ye) {
|
|
19161
|
-
o.call(this,
|
|
19163
|
+
o.call(this, K(ye), ye), se && se.call(this, ye);
|
|
19162
19164
|
}
|
|
19163
19165
|
}
|
|
19164
19166
|
function s() {
|
|
@@ -19167,31 +19169,31 @@ function Zw(e) {
|
|
|
19167
19169
|
children: []
|
|
19168
19170
|
});
|
|
19169
19171
|
}
|
|
19170
|
-
function o(
|
|
19171
|
-
this.stack[this.stack.length - 1].children.push(
|
|
19172
|
+
function o(K, se, pe) {
|
|
19173
|
+
this.stack[this.stack.length - 1].children.push(K), this.stack.push(K), this.tokenStack.push([se, pe]), K.position = {
|
|
19172
19174
|
start: hn(se.start),
|
|
19173
19175
|
// @ts-expect-error: `end` will be patched later.
|
|
19174
19176
|
end: void 0
|
|
19175
19177
|
};
|
|
19176
19178
|
}
|
|
19177
|
-
function l(
|
|
19179
|
+
function l(K) {
|
|
19178
19180
|
return se;
|
|
19179
19181
|
function se(pe) {
|
|
19180
|
-
|
|
19182
|
+
K && K.call(this, pe), u.call(this, pe);
|
|
19181
19183
|
}
|
|
19182
19184
|
}
|
|
19183
|
-
function u(
|
|
19185
|
+
function u(K, se) {
|
|
19184
19186
|
const pe = this.stack.pop(), ye = this.tokenStack.pop();
|
|
19185
19187
|
if (ye)
|
|
19186
|
-
ye[0].type !==
|
|
19188
|
+
ye[0].type !== K.type && (se ? se.call(this, K, ye[0]) : (ye[1] || gc).call(this, K, ye[0]));
|
|
19187
19189
|
else
|
|
19188
19190
|
throw new Error(
|
|
19189
|
-
"Cannot close `" +
|
|
19190
|
-
start:
|
|
19191
|
-
end:
|
|
19191
|
+
"Cannot close `" + K.type + "` (" + Nr({
|
|
19192
|
+
start: K.start,
|
|
19193
|
+
end: K.end
|
|
19192
19194
|
}) + "): it’s not open"
|
|
19193
19195
|
);
|
|
19194
|
-
pe.position.end = hn(
|
|
19196
|
+
pe.position.end = hn(K.end);
|
|
19195
19197
|
}
|
|
19196
19198
|
function d() {
|
|
19197
19199
|
return VD(this.stack.pop());
|
|
@@ -19199,136 +19201,136 @@ function Zw(e) {
|
|
|
19199
19201
|
function h() {
|
|
19200
19202
|
this.data.expectingFirstListItemValue = !0;
|
|
19201
19203
|
}
|
|
19202
|
-
function m(
|
|
19204
|
+
function m(K) {
|
|
19203
19205
|
if (this.data.expectingFirstListItemValue) {
|
|
19204
19206
|
const se = this.stack[this.stack.length - 2];
|
|
19205
|
-
se.start = Number.parseInt(this.sliceSerialize(
|
|
19207
|
+
se.start = Number.parseInt(this.sliceSerialize(K), 10), this.data.expectingFirstListItemValue = void 0;
|
|
19206
19208
|
}
|
|
19207
19209
|
}
|
|
19208
19210
|
function p() {
|
|
19209
|
-
const
|
|
19210
|
-
se.lang =
|
|
19211
|
+
const K = this.resume(), se = this.stack[this.stack.length - 1];
|
|
19212
|
+
se.lang = K;
|
|
19211
19213
|
}
|
|
19212
19214
|
function g() {
|
|
19213
|
-
const
|
|
19214
|
-
se.meta =
|
|
19215
|
+
const K = this.resume(), se = this.stack[this.stack.length - 1];
|
|
19216
|
+
se.meta = K;
|
|
19215
19217
|
}
|
|
19216
19218
|
function f() {
|
|
19217
19219
|
this.data.flowCodeInside || (this.buffer(), this.data.flowCodeInside = !0);
|
|
19218
19220
|
}
|
|
19219
19221
|
function b() {
|
|
19220
|
-
const
|
|
19221
|
-
se.value =
|
|
19222
|
+
const K = this.resume(), se = this.stack[this.stack.length - 1];
|
|
19223
|
+
se.value = K.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g, ""), this.data.flowCodeInside = void 0;
|
|
19222
19224
|
}
|
|
19223
19225
|
function v() {
|
|
19224
|
-
const
|
|
19225
|
-
se.value =
|
|
19226
|
+
const K = this.resume(), se = this.stack[this.stack.length - 1];
|
|
19227
|
+
se.value = K.replace(/(\r?\n|\r)$/g, "");
|
|
19226
19228
|
}
|
|
19227
|
-
function w(
|
|
19229
|
+
function w(K) {
|
|
19228
19230
|
const se = this.resume(), pe = this.stack[this.stack.length - 1];
|
|
19229
19231
|
pe.label = se, pe.identifier = ir(
|
|
19230
|
-
this.sliceSerialize(
|
|
19232
|
+
this.sliceSerialize(K)
|
|
19231
19233
|
).toLowerCase();
|
|
19232
19234
|
}
|
|
19233
19235
|
function E() {
|
|
19234
|
-
const
|
|
19235
|
-
se.title =
|
|
19236
|
+
const K = this.resume(), se = this.stack[this.stack.length - 1];
|
|
19237
|
+
se.title = K;
|
|
19236
19238
|
}
|
|
19237
19239
|
function B() {
|
|
19238
|
-
const
|
|
19239
|
-
se.url =
|
|
19240
|
+
const K = this.resume(), se = this.stack[this.stack.length - 1];
|
|
19241
|
+
se.url = K;
|
|
19240
19242
|
}
|
|
19241
|
-
function D(
|
|
19243
|
+
function D(K) {
|
|
19242
19244
|
const se = this.stack[this.stack.length - 1];
|
|
19243
19245
|
if (!se.depth) {
|
|
19244
|
-
const pe = this.sliceSerialize(
|
|
19246
|
+
const pe = this.sliceSerialize(K).length;
|
|
19245
19247
|
se.depth = pe;
|
|
19246
19248
|
}
|
|
19247
19249
|
}
|
|
19248
19250
|
function C() {
|
|
19249
19251
|
this.data.setextHeadingSlurpLineEnding = !0;
|
|
19250
19252
|
}
|
|
19251
|
-
function S(
|
|
19253
|
+
function S(K) {
|
|
19252
19254
|
const se = this.stack[this.stack.length - 1];
|
|
19253
|
-
se.depth = this.sliceSerialize(
|
|
19255
|
+
se.depth = this.sliceSerialize(K).codePointAt(0) === 61 ? 1 : 2;
|
|
19254
19256
|
}
|
|
19255
19257
|
function L() {
|
|
19256
19258
|
this.data.setextHeadingSlurpLineEnding = void 0;
|
|
19257
19259
|
}
|
|
19258
|
-
function O(
|
|
19260
|
+
function O(K) {
|
|
19259
19261
|
const pe = this.stack[this.stack.length - 1].children;
|
|
19260
19262
|
let ye = pe[pe.length - 1];
|
|
19261
19263
|
(!ye || ye.type !== "text") && (ye = Ae(), ye.position = {
|
|
19262
|
-
start: hn(
|
|
19264
|
+
start: hn(K.start),
|
|
19263
19265
|
// @ts-expect-error: we’ll add `end` later.
|
|
19264
19266
|
end: void 0
|
|
19265
19267
|
}, pe.push(ye)), this.stack.push(ye);
|
|
19266
19268
|
}
|
|
19267
|
-
function z(
|
|
19269
|
+
function z(K) {
|
|
19268
19270
|
const se = this.stack.pop();
|
|
19269
|
-
se.value += this.sliceSerialize(
|
|
19271
|
+
se.value += this.sliceSerialize(K), se.position.end = hn(K.end);
|
|
19270
19272
|
}
|
|
19271
|
-
function $(
|
|
19273
|
+
function $(K) {
|
|
19272
19274
|
const se = this.stack[this.stack.length - 1];
|
|
19273
19275
|
if (this.data.atHardBreak) {
|
|
19274
19276
|
const pe = se.children[se.children.length - 1];
|
|
19275
|
-
pe.position.end = hn(
|
|
19277
|
+
pe.position.end = hn(K.end), this.data.atHardBreak = void 0;
|
|
19276
19278
|
return;
|
|
19277
19279
|
}
|
|
19278
|
-
!this.data.setextHeadingSlurpLineEnding && t.canContainEols.includes(se.type) && (O.call(this,
|
|
19280
|
+
!this.data.setextHeadingSlurpLineEnding && t.canContainEols.includes(se.type) && (O.call(this, K), z.call(this, K));
|
|
19279
19281
|
}
|
|
19280
19282
|
function A() {
|
|
19281
19283
|
this.data.atHardBreak = !0;
|
|
19282
19284
|
}
|
|
19283
19285
|
function _() {
|
|
19284
|
-
const
|
|
19285
|
-
se.value =
|
|
19286
|
+
const K = this.resume(), se = this.stack[this.stack.length - 1];
|
|
19287
|
+
se.value = K;
|
|
19286
19288
|
}
|
|
19287
19289
|
function T() {
|
|
19288
|
-
const
|
|
19289
|
-
se.value =
|
|
19290
|
+
const K = this.resume(), se = this.stack[this.stack.length - 1];
|
|
19291
|
+
se.value = K;
|
|
19290
19292
|
}
|
|
19291
19293
|
function R() {
|
|
19292
|
-
const
|
|
19293
|
-
se.value =
|
|
19294
|
+
const K = this.resume(), se = this.stack[this.stack.length - 1];
|
|
19295
|
+
se.value = K;
|
|
19294
19296
|
}
|
|
19295
19297
|
function W() {
|
|
19296
|
-
const
|
|
19298
|
+
const K = this.stack[this.stack.length - 1];
|
|
19297
19299
|
if (this.data.inReference) {
|
|
19298
19300
|
const se = this.data.referenceType || "shortcut";
|
|
19299
|
-
|
|
19301
|
+
K.type += "Reference", K.referenceType = se, delete K.url, delete K.title;
|
|
19300
19302
|
} else
|
|
19301
|
-
delete
|
|
19303
|
+
delete K.identifier, delete K.label;
|
|
19302
19304
|
this.data.referenceType = void 0;
|
|
19303
19305
|
}
|
|
19304
19306
|
function U() {
|
|
19305
|
-
const
|
|
19307
|
+
const K = this.stack[this.stack.length - 1];
|
|
19306
19308
|
if (this.data.inReference) {
|
|
19307
19309
|
const se = this.data.referenceType || "shortcut";
|
|
19308
|
-
|
|
19310
|
+
K.type += "Reference", K.referenceType = se, delete K.url, delete K.title;
|
|
19309
19311
|
} else
|
|
19310
|
-
delete
|
|
19312
|
+
delete K.identifier, delete K.label;
|
|
19311
19313
|
this.data.referenceType = void 0;
|
|
19312
19314
|
}
|
|
19313
|
-
function ne(
|
|
19314
|
-
const se = this.sliceSerialize(
|
|
19315
|
+
function ne(K) {
|
|
19316
|
+
const se = this.sliceSerialize(K), pe = this.stack[this.stack.length - 2];
|
|
19315
19317
|
pe.label = Hw(se), pe.identifier = ir(se).toLowerCase();
|
|
19316
19318
|
}
|
|
19317
19319
|
function re() {
|
|
19318
|
-
const
|
|
19320
|
+
const K = this.stack[this.stack.length - 1], se = this.resume(), pe = this.stack[this.stack.length - 1];
|
|
19319
19321
|
if (this.data.inReference = !0, pe.type === "link") {
|
|
19320
|
-
const ye =
|
|
19322
|
+
const ye = K.children;
|
|
19321
19323
|
pe.children = ye;
|
|
19322
19324
|
} else
|
|
19323
19325
|
pe.alt = se;
|
|
19324
19326
|
}
|
|
19325
19327
|
function x() {
|
|
19326
|
-
const
|
|
19327
|
-
se.url =
|
|
19328
|
+
const K = this.resume(), se = this.stack[this.stack.length - 1];
|
|
19329
|
+
se.url = K;
|
|
19328
19330
|
}
|
|
19329
19331
|
function I() {
|
|
19330
|
-
const
|
|
19331
|
-
se.title =
|
|
19332
|
+
const K = this.resume(), se = this.stack[this.stack.length - 1];
|
|
19333
|
+
se.title = K;
|
|
19332
19334
|
}
|
|
19333
19335
|
function ie() {
|
|
19334
19336
|
this.data.inReference = void 0;
|
|
@@ -19336,34 +19338,34 @@ function Zw(e) {
|
|
|
19336
19338
|
function F() {
|
|
19337
19339
|
this.data.referenceType = "collapsed";
|
|
19338
19340
|
}
|
|
19339
|
-
function k(
|
|
19341
|
+
function k(K) {
|
|
19340
19342
|
const se = this.resume(), pe = this.stack[this.stack.length - 1];
|
|
19341
19343
|
pe.label = se, pe.identifier = ir(
|
|
19342
|
-
this.sliceSerialize(
|
|
19344
|
+
this.sliceSerialize(K)
|
|
19343
19345
|
).toLowerCase(), this.data.referenceType = "full";
|
|
19344
19346
|
}
|
|
19345
|
-
function P(
|
|
19346
|
-
this.data.characterReferenceType =
|
|
19347
|
+
function P(K) {
|
|
19348
|
+
this.data.characterReferenceType = K.type;
|
|
19347
19349
|
}
|
|
19348
|
-
function j(
|
|
19349
|
-
const se = this.sliceSerialize(
|
|
19350
|
+
function j(K) {
|
|
19351
|
+
const se = this.sliceSerialize(K), pe = this.data.characterReferenceType;
|
|
19350
19352
|
let ye;
|
|
19351
19353
|
pe ? (ye = _f(
|
|
19352
19354
|
se,
|
|
19353
19355
|
pe === "characterReferenceMarkerNumeric" ? 10 : 16
|
|
19354
19356
|
), this.data.characterReferenceType = void 0) : ye = Ao(se);
|
|
19355
19357
|
const _e = this.stack.pop();
|
|
19356
|
-
_e.value += ye, _e.position.end = hn(
|
|
19358
|
+
_e.value += ye, _e.position.end = hn(K.end);
|
|
19357
19359
|
}
|
|
19358
|
-
function q(
|
|
19359
|
-
z.call(this,
|
|
19360
|
+
function q(K) {
|
|
19361
|
+
z.call(this, K);
|
|
19360
19362
|
const se = this.stack[this.stack.length - 1];
|
|
19361
|
-
se.url = this.sliceSerialize(
|
|
19363
|
+
se.url = this.sliceSerialize(K);
|
|
19362
19364
|
}
|
|
19363
|
-
function J(
|
|
19364
|
-
z.call(this,
|
|
19365
|
+
function J(K) {
|
|
19366
|
+
z.call(this, K);
|
|
19365
19367
|
const se = this.stack[this.stack.length - 1];
|
|
19366
|
-
se.url = "mailto:" + this.sliceSerialize(
|
|
19368
|
+
se.url = "mailto:" + this.sliceSerialize(K);
|
|
19367
19369
|
}
|
|
19368
19370
|
function H() {
|
|
19369
19371
|
return {
|
|
@@ -19435,19 +19437,19 @@ function Zw(e) {
|
|
|
19435
19437
|
children: []
|
|
19436
19438
|
};
|
|
19437
19439
|
}
|
|
19438
|
-
function Ge(
|
|
19440
|
+
function Ge(K) {
|
|
19439
19441
|
return {
|
|
19440
19442
|
type: "list",
|
|
19441
|
-
ordered:
|
|
19443
|
+
ordered: K.type === "listOrdered",
|
|
19442
19444
|
start: null,
|
|
19443
|
-
spread:
|
|
19445
|
+
spread: K._spread,
|
|
19444
19446
|
children: []
|
|
19445
19447
|
};
|
|
19446
19448
|
}
|
|
19447
|
-
function Qe(
|
|
19449
|
+
function Qe(K) {
|
|
19448
19450
|
return {
|
|
19449
19451
|
type: "listItem",
|
|
19450
|
-
spread:
|
|
19452
|
+
spread: K._spread,
|
|
19451
19453
|
checked: null,
|
|
19452
19454
|
children: []
|
|
19453
19455
|
};
|
|
@@ -19944,7 +19946,7 @@ const sC = ({
|
|
|
19944
19946
|
yn,
|
|
19945
19947
|
{
|
|
19946
19948
|
element: "li",
|
|
19947
|
-
className:
|
|
19949
|
+
className: V({ selected: f === u }),
|
|
19948
19950
|
member: { id: p, ...g, link: !1 },
|
|
19949
19951
|
functions: {
|
|
19950
19952
|
onClick: (b) => {
|
|
@@ -19965,7 +19967,7 @@ const sC = ({
|
|
|
19965
19967
|
yn,
|
|
19966
19968
|
{
|
|
19967
19969
|
element: "li",
|
|
19968
|
-
className:
|
|
19970
|
+
className: V("fallback", {
|
|
19969
19971
|
selected: d.length === u
|
|
19970
19972
|
}),
|
|
19971
19973
|
member: {
|
|
@@ -20017,7 +20019,7 @@ const sC = ({
|
|
|
20017
20019
|
"li",
|
|
20018
20020
|
{
|
|
20019
20021
|
id: `${d}-${e}`,
|
|
20020
|
-
className:
|
|
20022
|
+
className: V(e, { "has-divider": n }),
|
|
20021
20023
|
onMouseEnter: () => {
|
|
20022
20024
|
g([{ type: "openTooltip", value: e }]);
|
|
20023
20025
|
},
|
|
@@ -20044,7 +20046,7 @@ const sC = ({
|
|
|
20044
20046
|
{
|
|
20045
20047
|
...o,
|
|
20046
20048
|
...f,
|
|
20047
|
-
className:
|
|
20049
|
+
className: V(e, i, { active: t }),
|
|
20048
20050
|
onClick: (b) => {
|
|
20049
20051
|
b.stopPropagation(), b.preventDefault();
|
|
20050
20052
|
},
|
|
@@ -20341,7 +20343,7 @@ const dC = () => {
|
|
|
20341
20343
|
{
|
|
20342
20344
|
element: "fieldset",
|
|
20343
20345
|
id: `${n}-link-editor`,
|
|
20344
|
-
className:
|
|
20346
|
+
className: V({ "show-labels": h }),
|
|
20345
20347
|
meta: { shouldReset: !0, showRequiredLabels: !1 },
|
|
20346
20348
|
functions: {
|
|
20347
20349
|
onSuccess: async (D) => {
|
|
@@ -20356,7 +20358,7 @@ const dC = () => {
|
|
|
20356
20358
|
}
|
|
20357
20359
|
if (s(C), D.url && o && (!m || a && (d == null ? void 0 : d.full) === a.url)) {
|
|
20358
20360
|
const L = await o(S);
|
|
20359
|
-
|
|
20361
|
+
s([{ type: "enrichedUrl", value: L }]);
|
|
20360
20362
|
}
|
|
20361
20363
|
});
|
|
20362
20364
|
}
|
|
@@ -20570,7 +20572,7 @@ const FC = ({
|
|
|
20570
20572
|
k && D([{ type: "tabbableOption", value: k || Gi[0] }]);
|
|
20571
20573
|
}, U = async (k) => {
|
|
20572
20574
|
const P = await f(k);
|
|
20573
|
-
|
|
20575
|
+
D([{ type: "enrichedUrl", value: P }]);
|
|
20574
20576
|
}, ne = `rte-${e}`, re = Re(
|
|
20575
20577
|
(k) => /* @__PURE__ */ c.jsx(xD, { ...k }),
|
|
20576
20578
|
[]
|
|
@@ -20866,7 +20868,7 @@ const G_ = ({
|
|
|
20866
20868
|
return /* @__PURE__ */ c.jsxs(
|
|
20867
20869
|
"div",
|
|
20868
20870
|
{
|
|
20869
|
-
className:
|
|
20871
|
+
className: V("toggle", s),
|
|
20870
20872
|
onClick: (d) => {
|
|
20871
20873
|
d.preventDefault(), d.stopPropagation(), u(o === n[0].value ? n[1].value : n[0].value);
|
|
20872
20874
|
},
|
|
@@ -20875,7 +20877,7 @@ const G_ = ({
|
|
|
20875
20877
|
/* @__PURE__ */ c.jsx(
|
|
20876
20878
|
"ul",
|
|
20877
20879
|
{
|
|
20878
|
-
className:
|
|
20880
|
+
className: V("toggle-options", {
|
|
20879
20881
|
disabled: a,
|
|
20880
20882
|
on: o === n[1].value
|
|
20881
20883
|
}),
|
|
@@ -20934,7 +20936,7 @@ function AC({
|
|
|
20934
20936
|
change: w = o.formatMessage({ id: `${l}cta_change` }),
|
|
20935
20937
|
uploading: E = o.formatMessage({ id: `${l}cta_uploading` })
|
|
20936
20938
|
} = (a == null ? void 0 : a.text) || {};
|
|
20937
|
-
return /* @__PURE__ */ c.jsxs("div", { className:
|
|
20939
|
+
return /* @__PURE__ */ c.jsxs("div", { className: V("profile-image-change-figure", e), children: [
|
|
20938
20940
|
/* @__PURE__ */ c.jsx(
|
|
20939
20941
|
In,
|
|
20940
20942
|
{
|
|
@@ -21018,7 +21020,8 @@ const BC = ({
|
|
|
21018
21020
|
],
|
|
21019
21021
|
intlPath: "contactForm",
|
|
21020
21022
|
gtm: { context: r, event: i },
|
|
21021
|
-
functions: { onSuccess: t, onFailure: n }
|
|
21023
|
+
functions: { onSuccess: t, onFailure: n },
|
|
21024
|
+
button: { className: "new" }
|
|
21022
21025
|
}
|
|
21023
21026
|
);
|
|
21024
21027
|
};
|
|
@@ -21074,7 +21077,7 @@ const TC = ({
|
|
|
21074
21077
|
{
|
|
21075
21078
|
style: { backgroundColor: a },
|
|
21076
21079
|
onSubmit: v,
|
|
21077
|
-
className:
|
|
21080
|
+
className: V("invite-form gtm-trackable"),
|
|
21078
21081
|
children: [
|
|
21079
21082
|
/* @__PURE__ */ c.jsxs("fieldset", { className: "content", children: [
|
|
21080
21083
|
/* @__PURE__ */ c.jsx("h2", { className: "title", style: { color: r }, children: e }),
|
|
@@ -21331,7 +21334,7 @@ const jC = ({
|
|
|
21331
21334
|
"form",
|
|
21332
21335
|
{
|
|
21333
21336
|
onSubmit: d,
|
|
21334
|
-
className:
|
|
21337
|
+
className: V("search-form gtm-trackable", t),
|
|
21335
21338
|
role: "search",
|
|
21336
21339
|
"data-gtm-event-context": i,
|
|
21337
21340
|
"data-gtm-event-type": a,
|
|
@@ -21614,7 +21617,7 @@ const jC = ({
|
|
|
21614
21617
|
const MC = ({ className: e = "" }) => /* @__PURE__ */ c.jsxs(
|
|
21615
21618
|
"div",
|
|
21616
21619
|
{
|
|
21617
|
-
className:
|
|
21620
|
+
className: V("success-message", e),
|
|
21618
21621
|
"data-testid": "success-message",
|
|
21619
21622
|
children: [
|
|
21620
21623
|
/* @__PURE__ */ c.jsx("p", { className: "success-title", children: /* @__PURE__ */ c.jsx(ht, { id: "signup_success_title" }) }),
|
|
@@ -21714,7 +21717,7 @@ const RC = {
|
|
|
21714
21717
|
return g.successMessage && D ? /* @__PURE__ */ c.jsx(MC, { className: e }) : /* @__PURE__ */ c.jsxs(
|
|
21715
21718
|
"fieldset",
|
|
21716
21719
|
{
|
|
21717
|
-
className:
|
|
21720
|
+
className: V("signup-form-fieldset", e),
|
|
21718
21721
|
"data-testid": "signup-form",
|
|
21719
21722
|
children: [
|
|
21720
21723
|
g.title && /* @__PURE__ */ c.jsx("p", { className: "signup-title", children: /* @__PURE__ */ c.jsx(ht, { id: "signup_title" }) }),
|
|
@@ -21791,12 +21794,13 @@ const qn = ({
|
|
|
21791
21794
|
styling: n = {},
|
|
21792
21795
|
...r
|
|
21793
21796
|
}) => {
|
|
21794
|
-
const { background: i = "default" } = n;
|
|
21797
|
+
const { background: i = "default", padding: a = "none" } = n;
|
|
21795
21798
|
return /* @__PURE__ */ c.jsx(
|
|
21796
21799
|
"section",
|
|
21797
21800
|
{
|
|
21798
|
-
className:
|
|
21799
|
-
[i]: i !== "default"
|
|
21801
|
+
className: V("full-width-section", t, {
|
|
21802
|
+
[i]: i !== "default",
|
|
21803
|
+
[a]: a !== "none"
|
|
21800
21804
|
}),
|
|
21801
21805
|
...r,
|
|
21802
21806
|
children: e
|
|
@@ -21810,20 +21814,27 @@ const X_ = ({ text: e, buttons: t, className: n = "" }) => {
|
|
|
21810
21814
|
href: i.link,
|
|
21811
21815
|
variant: "secondary",
|
|
21812
21816
|
size: { mobile: "medium", 1024: "large" },
|
|
21813
|
-
className: "gtm-trackable",
|
|
21817
|
+
className: "gtm-trackable new",
|
|
21814
21818
|
"data-gtm-event-type": "download-click",
|
|
21815
21819
|
"data-gtm-event-context": i.eventContext || "Download",
|
|
21816
21820
|
target: "_blank",
|
|
21817
21821
|
children: i.text
|
|
21818
21822
|
});
|
|
21819
|
-
}), /* @__PURE__ */ c.jsx(
|
|
21820
|
-
|
|
21821
|
-
|
|
21822
|
-
|
|
21823
|
-
|
|
21824
|
-
|
|
21825
|
-
|
|
21826
|
-
|
|
21823
|
+
}), /* @__PURE__ */ c.jsx(
|
|
21824
|
+
qn,
|
|
21825
|
+
{
|
|
21826
|
+
className: V("download-section", n),
|
|
21827
|
+
styling: { background: "dark" },
|
|
21828
|
+
children: /* @__PURE__ */ c.jsxs("div", { className: "content-default", children: [
|
|
21829
|
+
te.createElement(
|
|
21830
|
+
typeof e == "string" ? "h2" : e.element,
|
|
21831
|
+
{ className: "text" },
|
|
21832
|
+
typeof e == "string" ? e : e.text
|
|
21833
|
+
),
|
|
21834
|
+
/* @__PURE__ */ c.jsx(Yr, { buttons: r })
|
|
21835
|
+
] })
|
|
21836
|
+
}
|
|
21837
|
+
);
|
|
21827
21838
|
};
|
|
21828
21839
|
const Zs = "editSection_";
|
|
21829
21840
|
function Vf({ href: e, setShowModal: t }) {
|
|
@@ -21880,7 +21891,7 @@ const $C = ({
|
|
|
21880
21891
|
r.props.functions.onCancel && r.props.functions.onCancel(), p();
|
|
21881
21892
|
}
|
|
21882
21893
|
}
|
|
21883
|
-
})), /* @__PURE__ */ c.jsxs("section", { className:
|
|
21894
|
+
})), /* @__PURE__ */ c.jsxs("section", { className: V("edit-section", t), children: [
|
|
21884
21895
|
g && /* @__PURE__ */ c.jsx(
|
|
21885
21896
|
xn,
|
|
21886
21897
|
{
|
|
@@ -21889,7 +21900,7 @@ const $C = ({
|
|
|
21889
21900
|
showDivider: !1,
|
|
21890
21901
|
showIcon: !1,
|
|
21891
21902
|
functions: { onClose: p },
|
|
21892
|
-
className:
|
|
21903
|
+
className: V("edit-section-modal"),
|
|
21893
21904
|
children: b || (n ? /* @__PURE__ */ c.jsx(
|
|
21894
21905
|
Ln,
|
|
21895
21906
|
{
|
|
@@ -21913,7 +21924,7 @@ const $C = ({
|
|
|
21913
21924
|
) : /* @__PURE__ */ c.jsx(c.Fragment, {}))
|
|
21914
21925
|
}
|
|
21915
21926
|
),
|
|
21916
|
-
/* @__PURE__ */ c.jsxs("div", { className:
|
|
21927
|
+
/* @__PURE__ */ c.jsxs("div", { className: V("edit-section-header", { "no-title": !s }), children: [
|
|
21917
21928
|
s && /* @__PURE__ */ c.jsx("h2", { className: "edit-section-header-title", children: a }),
|
|
21918
21929
|
f && /* @__PURE__ */ c.jsx(
|
|
21919
21930
|
Se,
|
|
@@ -21957,21 +21968,21 @@ const tk = ({
|
|
|
21957
21968
|
return /* @__PURE__ */ c.jsxs(
|
|
21958
21969
|
"div",
|
|
21959
21970
|
{
|
|
21960
|
-
className:
|
|
21971
|
+
className: V("logos", i, `align-${l}`, {
|
|
21961
21972
|
[u]: u !== "block",
|
|
21962
21973
|
"wrap-logos": o
|
|
21963
21974
|
}),
|
|
21964
21975
|
children: [
|
|
21965
21976
|
e && te.createElement(
|
|
21966
21977
|
s.element,
|
|
21967
|
-
{ className:
|
|
21978
|
+
{ className: V("title", s.className) },
|
|
21968
21979
|
s.text
|
|
21969
21980
|
),
|
|
21970
21981
|
t && /* @__PURE__ */ c.jsx("p", { children: t }),
|
|
21971
21982
|
/* @__PURE__ */ c.jsx(
|
|
21972
21983
|
"ul",
|
|
21973
21984
|
{
|
|
21974
|
-
className:
|
|
21985
|
+
className: V({
|
|
21975
21986
|
"two-col": a === 2 || a === 4,
|
|
21976
21987
|
"three-col": a === 5 || a <= 10 && a % 3 === 0
|
|
21977
21988
|
}),
|
|
@@ -22554,7 +22565,7 @@ const nr = "footer_", Qi = "SiteFooter", Cc = ({ group: e }) => {
|
|
|
22554
22565
|
return /* @__PURE__ */ c.jsxs(
|
|
22555
22566
|
"li",
|
|
22556
22567
|
{
|
|
22557
|
-
className:
|
|
22568
|
+
className: V({
|
|
22558
22569
|
[o.className]: o.className,
|
|
22559
22570
|
"has-submenu": p,
|
|
22560
22571
|
parent: g,
|
|
@@ -22585,7 +22596,7 @@ const nr = "footer_", Qi = "SiteFooter", Cc = ({ group: e }) => {
|
|
|
22585
22596
|
return o[E].order ? /* @__PURE__ */ c.jsxs(
|
|
22586
22597
|
"li",
|
|
22587
22598
|
{
|
|
22588
|
-
className:
|
|
22599
|
+
className: V({
|
|
22589
22600
|
[o[E].className]: o[E].className
|
|
22590
22601
|
}),
|
|
22591
22602
|
children: [
|
|
@@ -22807,7 +22818,7 @@ const Zf = ({ showNavigation: e = !0 }) => {
|
|
|
22807
22818
|
"nav",
|
|
22808
22819
|
{
|
|
22809
22820
|
id: "header",
|
|
22810
|
-
className:
|
|
22821
|
+
className: V({
|
|
22811
22822
|
"logged-in": i,
|
|
22812
22823
|
"logged-out": !i,
|
|
22813
22824
|
visible: l
|
|
@@ -22881,7 +22892,7 @@ const Zf = ({ showNavigation: e = !0 }) => {
|
|
|
22881
22892
|
/* @__PURE__ */ c.jsx(
|
|
22882
22893
|
"div",
|
|
22883
22894
|
{
|
|
22884
|
-
className:
|
|
22895
|
+
className: V("overlay", {
|
|
22885
22896
|
open: u[
|
|
22886
22897
|
"site-navigation"
|
|
22887
22898
|
/* SITE */
|
|
@@ -22940,14 +22951,14 @@ const zC = () => {
|
|
|
22940
22951
|
"div",
|
|
22941
22952
|
{
|
|
22942
22953
|
id: "wrapper",
|
|
22943
|
-
className:
|
|
22954
|
+
className: V(s, D, { "has-footer": u }),
|
|
22944
22955
|
children: [
|
|
22945
22956
|
/* @__PURE__ */ c.jsx(Zf, { showNavigation: l }),
|
|
22946
22957
|
/* @__PURE__ */ c.jsxs("main", { id: "content-wrapper", children: [
|
|
22947
22958
|
E && /* @__PURE__ */ c.jsx(
|
|
22948
22959
|
"div",
|
|
22949
22960
|
{
|
|
22950
|
-
className:
|
|
22961
|
+
className: V("additional-content prepended", {
|
|
22951
22962
|
"large-modal": p === "large"
|
|
22952
22963
|
}),
|
|
22953
22964
|
children: E
|
|
@@ -22956,7 +22967,7 @@ const zC = () => {
|
|
|
22956
22967
|
te.createElement(d === "bold" ? rd : "div", {
|
|
22957
22968
|
id: "content",
|
|
22958
22969
|
children: w,
|
|
22959
|
-
className:
|
|
22970
|
+
className: V({ "large-modal": p === "large" })
|
|
22960
22971
|
})
|
|
22961
22972
|
] }),
|
|
22962
22973
|
B && /* @__PURE__ */ c.jsx("div", { className: "additional-content appended", children: B }),
|
|
@@ -23027,7 +23038,7 @@ const ik = ({
|
|
|
23027
23038
|
}), l.length < 1 ? null : /* @__PURE__ */ c.jsx(
|
|
23028
23039
|
"ul",
|
|
23029
23040
|
{
|
|
23030
|
-
className:
|
|
23041
|
+
className: V("tags text-small", t, i, {
|
|
23031
23042
|
"one-line": n
|
|
23032
23043
|
}),
|
|
23033
23044
|
children: l.map((u) => {
|
|
@@ -23061,7 +23072,7 @@ const UC = 25, HC = ({
|
|
|
23061
23072
|
className: h = ""
|
|
23062
23073
|
}) => {
|
|
23063
23074
|
const m = ce(), p = "membersList", g = $e(Dt), [f, b] = ue(!1);
|
|
23064
|
-
return e.length === 0 && !d ? null : /* @__PURE__ */ c.jsxs("div", { className:
|
|
23075
|
+
return e.length === 0 && !d ? null : /* @__PURE__ */ c.jsxs("div", { className: V("members-list", h), children: [
|
|
23065
23076
|
u ? /* @__PURE__ */ c.jsxs("h1", { children: [
|
|
23066
23077
|
m.formatMessage({ id: p }),
|
|
23067
23078
|
/* @__PURE__ */ c.jsx("span", { className: "count", children: t })
|
|
@@ -23174,7 +23185,7 @@ const ea = ({
|
|
|
23174
23185
|
}) => /* @__PURE__ */ c.jsx(
|
|
23175
23186
|
Se,
|
|
23176
23187
|
{
|
|
23177
|
-
className:
|
|
23188
|
+
className: V("discussion-button", t),
|
|
23178
23189
|
variant: "tertiary",
|
|
23179
23190
|
icon: e,
|
|
23180
23191
|
...n
|
|
@@ -23355,18 +23366,18 @@ const nt = "discussion_form_", ma = ({
|
|
|
23355
23366
|
}, 500);
|
|
23356
23367
|
} catch (Ae) {
|
|
23357
23368
|
const je = Ae;
|
|
23358
|
-
let
|
|
23359
|
-
je != null && je.message.includes("entry already exists") && (
|
|
23369
|
+
let K = `${nt}error`;
|
|
23370
|
+
je != null && je.message.includes("entry already exists") && (K = $t(
|
|
23360
23371
|
p.formatMessage,
|
|
23361
23372
|
`${nt}error_alreadyExists`,
|
|
23362
23373
|
n.type,
|
|
23363
23374
|
"action"
|
|
23364
|
-
)), je != null && je.message.includes("429") ?
|
|
23375
|
+
)), je != null && je.message.includes("429") ? K = $t(
|
|
23365
23376
|
p.formatMessage,
|
|
23366
23377
|
`${nt}error_tooMany`,
|
|
23367
23378
|
n.type,
|
|
23368
23379
|
"action"
|
|
23369
|
-
) : je != null && je.message.includes("400") && (
|
|
23380
|
+
) : je != null && je.message.includes("400") && (K = `${nt}error`), j(K), G();
|
|
23370
23381
|
}
|
|
23371
23382
|
}, G = () => {
|
|
23372
23383
|
xi = setTimeout(() => {
|
|
@@ -23466,7 +23477,7 @@ const nt = "discussion_form_", ma = ({
|
|
|
23466
23477
|
Ln,
|
|
23467
23478
|
{
|
|
23468
23479
|
id: ee,
|
|
23469
|
-
className:
|
|
23480
|
+
className: V("discussion-card discussion-form", {
|
|
23470
23481
|
"no-styling": w && D
|
|
23471
23482
|
}),
|
|
23472
23483
|
meta: {
|
|
@@ -23490,7 +23501,6 @@ const nt = "discussion_form_", ma = ({
|
|
|
23490
23501
|
button: {
|
|
23491
23502
|
variant: "primary",
|
|
23492
23503
|
size: { mobile: "small", 600: "medium" },
|
|
23493
|
-
className: "gtm-trackable",
|
|
23494
23504
|
"data-gtm-event-context": m,
|
|
23495
23505
|
"data-gtm-event-type": `${D ? "save" : "submit"}-${n.type}-click`,
|
|
23496
23506
|
"data-testid": "save-button",
|
|
@@ -23507,7 +23517,6 @@ const nt = "discussion_form_", ma = ({
|
|
|
23507
23517
|
secondaryActionButton: {
|
|
23508
23518
|
variant: "secondary",
|
|
23509
23519
|
size: { mobile: "small", 600: "medium" },
|
|
23510
|
-
className: "gtm-trackable",
|
|
23511
23520
|
"data-gtm-event-context": m,
|
|
23512
23521
|
"data-gtm-event-type": `cancel-${n.type}-click`,
|
|
23513
23522
|
disabled: !l.cancel && (!g || !g.id || !F.body),
|
|
@@ -23690,7 +23699,7 @@ const nE = ({
|
|
|
23690
23699
|
/* @__PURE__ */ c.jsx(
|
|
23691
23700
|
ea,
|
|
23692
23701
|
{
|
|
23693
|
-
className:
|
|
23702
|
+
className: V("discussion-button text-medium action-button", {
|
|
23694
23703
|
"show-spinner": B,
|
|
23695
23704
|
"is-liked": E,
|
|
23696
23705
|
disabled: !s
|
|
@@ -25748,7 +25757,7 @@ const ME = ({
|
|
|
25748
25757
|
functions: {
|
|
25749
25758
|
onClose: n
|
|
25750
25759
|
},
|
|
25751
|
-
className:
|
|
25760
|
+
className: V("profile-modal in-portal", a, {
|
|
25752
25761
|
open: e
|
|
25753
25762
|
}),
|
|
25754
25763
|
maxWidth: 600,
|
|
@@ -25776,7 +25785,7 @@ const ME = ({
|
|
|
25776
25785
|
}) => {
|
|
25777
25786
|
const r = {
|
|
25778
25787
|
...n,
|
|
25779
|
-
class:
|
|
25788
|
+
class: V("subtle", t)
|
|
25780
25789
|
};
|
|
25781
25790
|
return /* @__PURE__ */ c.jsx("blockquote", { ...r, children: e });
|
|
25782
25791
|
}, $E = 280, rh = async (e, t, n, r = () => Promise.resolve([])) => {
|
|
@@ -25836,7 +25845,7 @@ const IE = 3e3, LE = ({
|
|
|
25836
25845
|
/* @__PURE__ */ c.jsx(
|
|
25837
25846
|
pr,
|
|
25838
25847
|
{
|
|
25839
|
-
className:
|
|
25848
|
+
className: V({
|
|
25840
25849
|
copied: i.isCopied
|
|
25841
25850
|
}),
|
|
25842
25851
|
isOpen: i.isOpen,
|
|
@@ -25875,7 +25884,7 @@ const pa = ({
|
|
|
25875
25884
|
basePath: E,
|
|
25876
25885
|
parentId: B
|
|
25877
25886
|
}) => {
|
|
25878
|
-
var Ae, je,
|
|
25887
|
+
var Ae, je, K, se, pe, ye, _e, Xe, et;
|
|
25879
25888
|
const D = ce(), C = $e(Dt), S = $e(Po), {
|
|
25880
25889
|
createContent: L = async () => {
|
|
25881
25890
|
},
|
|
@@ -26035,7 +26044,7 @@ const pa = ({
|
|
|
26035
26044
|
"data-gtm-event-context": d,
|
|
26036
26045
|
"data-gtm-event-type": `edit-${t.type}-click`
|
|
26037
26046
|
}), f && ((Ae = J == null ? void 0 : J.current) == null || Ae.focus(), (je = J == null ? void 0 : J.current) == null || je.scrollIntoView({ behavior: "smooth" })), te.createElement(e, {
|
|
26038
|
-
className:
|
|
26047
|
+
className: V("discussion-post", u, {
|
|
26039
26048
|
[be]: !u || !u.includes("highlighted-text-box"),
|
|
26040
26049
|
"has-link": l.post && !H.isEditing,
|
|
26041
26050
|
"is-pinned": (t == null ? void 0 : t.pinned) || !1
|
|
@@ -26060,7 +26069,7 @@ const pa = ({
|
|
|
26060
26069
|
"div",
|
|
26061
26070
|
{
|
|
26062
26071
|
id: x || t.slug,
|
|
26063
|
-
className:
|
|
26072
|
+
className: V("discussion-card", t.type, {
|
|
26064
26073
|
editing: H.isEditing,
|
|
26065
26074
|
"has-link": l.post && !H.isEditing
|
|
26066
26075
|
}),
|
|
@@ -26158,14 +26167,14 @@ const pa = ({
|
|
|
26158
26167
|
}
|
|
26159
26168
|
)
|
|
26160
26169
|
] }),
|
|
26161
|
-
w && ((
|
|
26170
|
+
w && ((K = t.categories) != null && K.length) ? /* @__PURE__ */ c.jsx("ul", { className: "categories-list", children: t.categories.map((xe) => {
|
|
26162
26171
|
const Oe = w == null ? void 0 : w.find((st) => st.slug === xe);
|
|
26163
26172
|
return Oe ? /* @__PURE__ */ c.jsx(an, { size: "small", element: "li", children: Oe.name }, Oe.slug) : null;
|
|
26164
26173
|
}) }) : /* @__PURE__ */ c.jsx(c.Fragment, {}),
|
|
26165
26174
|
!H.isEditing && !(s != null && s.actionBar) && /* @__PURE__ */ c.jsxs(
|
|
26166
26175
|
"ul",
|
|
26167
26176
|
{
|
|
26168
|
-
className:
|
|
26177
|
+
className: V("actions text-medium", t.type),
|
|
26169
26178
|
"data-testid": `${t.type}-actions`,
|
|
26170
26179
|
children: [
|
|
26171
26180
|
!s.likes && /* @__PURE__ */ c.jsx(
|
|
@@ -26372,7 +26381,7 @@ const qE = fr(
|
|
|
26372
26381
|
/* @__PURE__ */ c.jsxs(
|
|
26373
26382
|
"button",
|
|
26374
26383
|
{
|
|
26375
|
-
className:
|
|
26384
|
+
className: V("discussion-form-card", n),
|
|
26376
26385
|
onClick: (b) => {
|
|
26377
26386
|
b.preventDefault(), b.stopPropagation(), h((v) => ({ ...v, form: !0 }));
|
|
26378
26387
|
},
|
|
@@ -26382,7 +26391,7 @@ const qE = fr(
|
|
|
26382
26391
|
/* @__PURE__ */ c.jsx(
|
|
26383
26392
|
sr,
|
|
26384
26393
|
{
|
|
26385
|
-
className:
|
|
26394
|
+
className: V("input", { placeholder: !m.showCachedText }),
|
|
26386
26395
|
element: "span",
|
|
26387
26396
|
options: {
|
|
26388
26397
|
forceInline: !0,
|
|
@@ -26567,7 +26576,7 @@ const KE = ({
|
|
|
26567
26576
|
return /* @__PURE__ */ c.jsxs(
|
|
26568
26577
|
"div",
|
|
26569
26578
|
{
|
|
26570
|
-
className:
|
|
26579
|
+
className: V("thread-wrapper", {
|
|
26571
26580
|
"empty-thread": !o
|
|
26572
26581
|
}),
|
|
26573
26582
|
children: [
|
|
@@ -26867,7 +26876,7 @@ const t_ = ({
|
|
|
26867
26876
|
(m !== "" || p !== "") && l((b) => ({ ...b, showCachedText: !0 })), o();
|
|
26868
26877
|
}
|
|
26869
26878
|
},
|
|
26870
|
-
className:
|
|
26879
|
+
className: V("discussion-form-modal", i),
|
|
26871
26880
|
children: /* @__PURE__ */ c.jsx(
|
|
26872
26881
|
ma,
|
|
26873
26882
|
{
|
|
@@ -26946,7 +26955,7 @@ const uk = ({
|
|
|
26946
26955
|
showDivider: !1,
|
|
26947
26956
|
showIcon: s,
|
|
26948
26957
|
functions: { onClose: o },
|
|
26949
|
-
className:
|
|
26958
|
+
className: V("invite-modal", e, { success: !!n }),
|
|
26950
26959
|
children: /* @__PURE__ */ c.jsx(
|
|
26951
26960
|
TC,
|
|
26952
26961
|
{
|
|
@@ -26986,7 +26995,7 @@ const Io = ({
|
|
|
26986
26995
|
functions: {
|
|
26987
26996
|
onClose: d
|
|
26988
26997
|
},
|
|
26989
|
-
className:
|
|
26998
|
+
className: V("profile-modal", s, { success: !!t }),
|
|
26990
26999
|
maxWidth: 700,
|
|
26991
27000
|
children: /* @__PURE__ */ c.jsxs(c.Fragment, { children: [
|
|
26992
27001
|
t && n || r ? /* @__PURE__ */ c.jsxs("div", { className: "intro", children: [
|
|
@@ -27065,13 +27074,13 @@ const i_ = ({
|
|
|
27065
27074
|
content: n,
|
|
27066
27075
|
member: r,
|
|
27067
27076
|
className: i = ""
|
|
27068
|
-
}) => /* @__PURE__ */ c.jsxs("blockquote", { className:
|
|
27077
|
+
}) => /* @__PURE__ */ c.jsxs("blockquote", { className: V("testimonial-block", i), children: [
|
|
27069
27078
|
/* @__PURE__ */ c.jsx(Yt, { className: "testimonial", children: n }),
|
|
27070
27079
|
r ? /* @__PURE__ */ c.jsx(yn, { member: r, styling: { size: "large" } }) : /* @__PURE__ */ c.jsxs(c.Fragment, { children: [
|
|
27071
27080
|
e && /* @__PURE__ */ c.jsx(
|
|
27072
27081
|
"p",
|
|
27073
27082
|
{
|
|
27074
|
-
className:
|
|
27083
|
+
className: V("author", {
|
|
27075
27084
|
"text-small": !i.includes("new")
|
|
27076
27085
|
}),
|
|
27077
27086
|
children: e
|
|
@@ -27080,7 +27089,7 @@ const i_ = ({
|
|
|
27080
27089
|
t && /* @__PURE__ */ c.jsx(
|
|
27081
27090
|
"p",
|
|
27082
27091
|
{
|
|
27083
|
-
className:
|
|
27092
|
+
className: V("author-cite", {
|
|
27084
27093
|
"text-small": !i.includes("new")
|
|
27085
27094
|
}),
|
|
27086
27095
|
children: /* @__PURE__ */ c.jsx("cite", { children: t })
|
|
@@ -27112,7 +27121,7 @@ const dk = ({
|
|
|
27112
27121
|
Gt,
|
|
27113
27122
|
{
|
|
27114
27123
|
variant: "subtle",
|
|
27115
|
-
className:
|
|
27124
|
+
className: V("table-of-contents", n),
|
|
27116
27125
|
children: [
|
|
27117
27126
|
/* @__PURE__ */ c.jsx("h2", { children: r.formatMessage({ id: "tableOfContents" }) }),
|
|
27118
27127
|
/* @__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)) }) })
|
|
@@ -27154,7 +27163,7 @@ const Lo = ({
|
|
|
27154
27163
|
{ early: u, late: h }
|
|
27155
27164
|
);
|
|
27156
27165
|
}
|
|
27157
|
-
return n && (u = `${n} ${u}`, l = `${n} ${l}`), r && (u = `${u} ${r}`, l = `${l} ${r}`), /* @__PURE__ */ c.jsx("span", { className:
|
|
27166
|
+
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 });
|
|
27158
27167
|
};
|
|
27159
27168
|
const fk = ({ className: e = "", image: t, ...n }) => t ? (typeof t == "string" && (t = {
|
|
27160
27169
|
width: 1080,
|
|
@@ -27169,7 +27178,7 @@ const fk = ({ className: e = "", image: t, ...n }) => t ? (typeof t == "string"
|
|
|
27169
27178
|
Gr,
|
|
27170
27179
|
{
|
|
27171
27180
|
...n,
|
|
27172
|
-
className:
|
|
27181
|
+
className: V("banner", e),
|
|
27173
27182
|
image: { ...t, aspect: "banner" }
|
|
27174
27183
|
}
|
|
27175
27184
|
)) : null;
|
|
@@ -27240,7 +27249,7 @@ const a_ = [
|
|
|
27240
27249
|
}), /* @__PURE__ */ c.jsx(
|
|
27241
27250
|
qn,
|
|
27242
27251
|
{
|
|
27243
|
-
className:
|
|
27252
|
+
className: V("banner-section", r, i, e, {
|
|
27244
27253
|
"has-image": n,
|
|
27245
27254
|
"image-full-width": n && u.imageFullWidth,
|
|
27246
27255
|
"image-inline": n && !u.imageFullWidth,
|
|
@@ -27264,7 +27273,7 @@ const a_ = [
|
|
|
27264
27273
|
size: { mobile: "medium", 768: "large" },
|
|
27265
27274
|
href: o.link,
|
|
27266
27275
|
...o.props,
|
|
27267
|
-
className:
|
|
27276
|
+
className: V({
|
|
27268
27277
|
new: r === "subtle",
|
|
27269
27278
|
[(g = o.props) == null ? void 0 : g.className]: (f = o.props) == null ? void 0 : f.className
|
|
27270
27279
|
}),
|
|
@@ -27295,7 +27304,7 @@ const mk = ({
|
|
|
27295
27304
|
return e && (i["--image"] = `url(${e})`), /* @__PURE__ */ c.jsx(
|
|
27296
27305
|
qn,
|
|
27297
27306
|
{
|
|
27298
|
-
className:
|
|
27307
|
+
className: V("custom-content-banner", t, r, {
|
|
27299
27308
|
"has-image": e
|
|
27300
27309
|
}),
|
|
27301
27310
|
style: i,
|
|
@@ -27310,11 +27319,11 @@ const o_ = ({
|
|
|
27310
27319
|
image: r
|
|
27311
27320
|
}) => {
|
|
27312
27321
|
const i = typeof n == "string" ? /* @__PURE__ */ c.jsx(sr, { children: n }) : n;
|
|
27313
|
-
return /* @__PURE__ */ c.jsxs(qn, { className:
|
|
27322
|
+
return /* @__PURE__ */ c.jsxs(qn, { className: V("highlight-section", t), children: [
|
|
27314
27323
|
r && /* @__PURE__ */ c.jsx(
|
|
27315
27324
|
"div",
|
|
27316
27325
|
{
|
|
27317
|
-
className:
|
|
27326
|
+
className: V("highlight-container highlight-image", {
|
|
27318
27327
|
[`highlight-image-${e}`]: e === "right"
|
|
27319
27328
|
}),
|
|
27320
27329
|
children: /* @__PURE__ */ c.jsx(
|
|
@@ -27333,13 +27342,13 @@ const o_ = ({
|
|
|
27333
27342
|
/* @__PURE__ */ c.jsx(
|
|
27334
27343
|
"div",
|
|
27335
27344
|
{
|
|
27336
|
-
className:
|
|
27345
|
+
className: V("highlight-container highlight-content-wrapper", {
|
|
27337
27346
|
"no-image": !r
|
|
27338
27347
|
}),
|
|
27339
27348
|
children: /* @__PURE__ */ c.jsx(
|
|
27340
27349
|
"div",
|
|
27341
27350
|
{
|
|
27342
|
-
className:
|
|
27351
|
+
className: V("highlight-content", {
|
|
27343
27352
|
"highlight-content-right": e === "left"
|
|
27344
27353
|
}),
|
|
27345
27354
|
children: r ? i : /* @__PURE__ */ c.jsx("div", { className: "content-default", children: i })
|
|
@@ -27355,7 +27364,7 @@ const gk = ({
|
|
|
27355
27364
|
title: n,
|
|
27356
27365
|
text: r,
|
|
27357
27366
|
gtmContext: i
|
|
27358
|
-
}) => !n && !r ? null : /* @__PURE__ */ c.jsxs("aside", { className:
|
|
27367
|
+
}) => !n && !r ? null : /* @__PURE__ */ c.jsxs("aside", { className: V("marketing-block", e), children: [
|
|
27359
27368
|
n && /* @__PURE__ */ c.jsx("p", { className: "title", children: n }),
|
|
27360
27369
|
r && /* @__PURE__ */ c.jsx("p", { children: r }),
|
|
27361
27370
|
t && /* @__PURE__ */ c.jsx(
|
|
@@ -27547,7 +27556,7 @@ const gk = ({
|
|
|
27547
27556
|
return /* @__PURE__ */ c.jsx(
|
|
27548
27557
|
"p",
|
|
27549
27558
|
{
|
|
27550
|
-
className:
|
|
27559
|
+
className: V("cta-wrapper", {
|
|
27551
27560
|
"has-member-section": e == null ? void 0 : e.members
|
|
27552
27561
|
}),
|
|
27553
27562
|
children: /* @__PURE__ */ c.jsx(
|
|
@@ -27669,7 +27678,7 @@ const sh = ({
|
|
|
27669
27678
|
}, ($ = m == null ? void 0 : m.current) == null || $.focus(), (A = m == null ? void 0 : m.current) == null || A.scrollIntoView({ behavior: "smooth" })), /* @__PURE__ */ c.jsx(
|
|
27670
27679
|
"li",
|
|
27671
27680
|
{
|
|
27672
|
-
className:
|
|
27681
|
+
className: V("card-wrapper text-medium", E, t, {
|
|
27673
27682
|
"has-link": C,
|
|
27674
27683
|
"no-link": !C,
|
|
27675
27684
|
"has-image": f.banner
|
|
@@ -27755,7 +27764,7 @@ const sh = ({
|
|
|
27755
27764
|
}
|
|
27756
27765
|
);
|
|
27757
27766
|
};
|
|
27758
|
-
const f_ = ({ cards: e, cardTypes: t, className: n = "", ...r }) => /* @__PURE__ */ c.jsx("ul", { className:
|
|
27767
|
+
const f_ = ({ cards: e, cardTypes: t, className: n = "", ...r }) => /* @__PURE__ */ c.jsx("ul", { className: V("card-block", n), children: e.map((i, a) => {
|
|
27759
27768
|
const s = i.slug ? `${i.slug}-${t[a]}` : `${t[a]}-${a}`;
|
|
27760
27769
|
return /* @__PURE__ */ c.jsx(
|
|
27761
27770
|
sh,
|
|
@@ -27776,7 +27785,7 @@ const f_ = ({ cards: e, cardTypes: t, className: n = "", ...r }) => /* @__PURE__
|
|
|
27776
27785
|
return null;
|
|
27777
27786
|
const { text: r, element: i = "h2", variant: a = "default", size: s = "medium", link: o } = t;
|
|
27778
27787
|
return te.createElement(i, {
|
|
27779
|
-
className:
|
|
27788
|
+
className: V("title", a, s, {
|
|
27780
27789
|
"highlighted-title": a === "highlighted"
|
|
27781
27790
|
}),
|
|
27782
27791
|
children: /* @__PURE__ */ c.jsxs(c.Fragment, { children: [
|
|
@@ -27889,7 +27898,7 @@ const p_ = ({
|
|
|
27889
27898
|
"section",
|
|
27890
27899
|
{
|
|
27891
27900
|
ref: C,
|
|
27892
|
-
className:
|
|
27901
|
+
className: V("carousel-wrapper", a),
|
|
27893
27902
|
"data-testid": "carousel",
|
|
27894
27903
|
children: [
|
|
27895
27904
|
/* @__PURE__ */ c.jsx(m_, { id: e, title: i }),
|
|
@@ -27949,7 +27958,7 @@ const p_ = ({
|
|
|
27949
27958
|
children: /* @__PURE__ */ c.jsx(
|
|
27950
27959
|
"button",
|
|
27951
27960
|
{
|
|
27952
|
-
className:
|
|
27961
|
+
className: V("page-indicator", {
|
|
27953
27962
|
selected: T === b
|
|
27954
27963
|
}),
|
|
27955
27964
|
onClick: (R) => {
|
|
@@ -28040,7 +28049,7 @@ const bk = ({
|
|
|
28040
28049
|
u > 99 ? u = 100 : u < 1 && (u = 0);
|
|
28041
28050
|
const { highlightPercentage: d = !1 } = s;
|
|
28042
28051
|
return te.createElement(e, {
|
|
28043
|
-
className:
|
|
28052
|
+
className: V("course-progression", o, {
|
|
28044
28053
|
"highlight-percentage": d,
|
|
28045
28054
|
"has-circle-graph": a === "circle"
|
|
28046
28055
|
}),
|
|
@@ -28079,7 +28088,7 @@ const g_ = ({
|
|
|
28079
28088
|
title: r,
|
|
28080
28089
|
className: i = ""
|
|
28081
28090
|
}) => te.createElement(e, {
|
|
28082
|
-
className:
|
|
28091
|
+
className: V("lesson-name", i),
|
|
28083
28092
|
"data-number": `${t}.${n}`,
|
|
28084
28093
|
children: r
|
|
28085
28094
|
});
|
|
@@ -28092,8 +28101,8 @@ const v_ = ({
|
|
|
28092
28101
|
children: a
|
|
28093
28102
|
}) => {
|
|
28094
28103
|
const s = ce(), o = Xs(`lessonType_${i}`) ? s.formatMessage({ id: `lessonType_${i}` }) : Mh(i || "");
|
|
28095
|
-
return /* @__PURE__ */ c.jsxs("small", { className:
|
|
28096
|
-
/* @__PURE__ */ c.jsx("span", { className:
|
|
28104
|
+
return /* @__PURE__ */ c.jsxs("small", { className: V("content-type", { [e]: e !== "default" }), children: [
|
|
28105
|
+
/* @__PURE__ */ c.jsx("span", { className: V("type", n), children: o }),
|
|
28097
28106
|
" ",
|
|
28098
28107
|
t > 0 && !r && /* @__PURE__ */ c.jsx(Lo, { time: t }),
|
|
28099
28108
|
" ",
|
|
@@ -28158,7 +28167,7 @@ const yk = ({
|
|
|
28158
28167
|
return w && (z.style = { "--image": `url(${w})` }), /* @__PURE__ */ c.jsx(
|
|
28159
28168
|
"li",
|
|
28160
28169
|
{
|
|
28161
|
-
className:
|
|
28170
|
+
className: V({
|
|
28162
28171
|
article: b === ni.ARTICLE,
|
|
28163
28172
|
discussion: b === ni.DISCUSSION,
|
|
28164
28173
|
quiz: b === ni.QUIZ,
|
|
@@ -28223,7 +28232,7 @@ const Dk = ({
|
|
|
28223
28232
|
hover: "check-inside-circle_no-overlap_inverted"
|
|
28224
28233
|
},
|
|
28225
28234
|
onClick: t,
|
|
28226
|
-
className:
|
|
28235
|
+
className: V("mark-complete-button center gtm-trackable", {
|
|
28227
28236
|
completed: e
|
|
28228
28237
|
}),
|
|
28229
28238
|
"data-gtm-event-type": "mark-as-complete",
|