@apolitical/component-library 5.2.1-jc.2 → 5.2.1-jc.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/general/buttons/button/button.d.ts +0 -1
- package/index.js +35 -35
- package/index.mjs +613 -578
- package/navigation/enriched-url/enriched-url.d.ts +33 -0
- package/navigation/enriched-url/enriched-url.mock.d.ts +9 -0
- package/navigation/enriched-url/index.d.ts +1 -0
- package/navigation/index.d.ts +1 -0
- package/package.json +1 -1
- package/style.css +1 -1
- package/styles/variables/colors/theme/_navigation.scss +4 -0
package/index.mjs
CHANGED
|
@@ -75,7 +75,7 @@ var Nc = { exports: {} };
|
|
|
75
75
|
})();
|
|
76
76
|
})(Nc);
|
|
77
77
|
var Fh = Nc.exports;
|
|
78
|
-
const
|
|
78
|
+
const H = /* @__PURE__ */ Mn(Fh), Bh = ({
|
|
79
79
|
element: e = "span",
|
|
80
80
|
showOnFocus: t = !0,
|
|
81
81
|
children: n,
|
|
@@ -83,7 +83,7 @@ const Z = /* @__PURE__ */ Mn(Fh), Bh = ({
|
|
|
83
83
|
...i
|
|
84
84
|
}) => ie.createElement(e, {
|
|
85
85
|
...i,
|
|
86
|
-
className:
|
|
86
|
+
className: H("hidden", r, { "show-on-focus": t }),
|
|
87
87
|
children: n
|
|
88
88
|
}), qe = Gt(Bh), Ah = ({
|
|
89
89
|
element: e = "span",
|
|
@@ -447,17 +447,17 @@ function Sh() {
|
|
|
447
447
|
}
|
|
448
448
|
function Ve(j) {
|
|
449
449
|
try {
|
|
450
|
-
return
|
|
450
|
+
return K(j), !1;
|
|
451
451
|
} catch {
|
|
452
452
|
return !0;
|
|
453
453
|
}
|
|
454
454
|
}
|
|
455
|
-
function
|
|
455
|
+
function K(j) {
|
|
456
456
|
return "" + j;
|
|
457
457
|
}
|
|
458
458
|
function ee(j) {
|
|
459
459
|
if (Ve(j))
|
|
460
|
-
return w("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", We(j)),
|
|
460
|
+
return w("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", We(j)), K(j);
|
|
461
461
|
}
|
|
462
462
|
var ce = v.ReactCurrentOwner, ge = {
|
|
463
463
|
key: !0,
|
|
@@ -928,11 +928,11 @@ const Ko = {}, mr = Gs(
|
|
|
928
928
|
const M = {
|
|
929
929
|
className: "content"
|
|
930
930
|
};
|
|
931
|
-
return A ? M.className =
|
|
931
|
+
return A ? M.className = H("content", { hidden: f === "hidden" }) : M.hidden = f === "hidden", /* @__PURE__ */ c.jsx(
|
|
932
932
|
"aside",
|
|
933
933
|
{
|
|
934
934
|
ref: g,
|
|
935
|
-
className:
|
|
935
|
+
className: H("tooltip text-medium", f, a, {
|
|
936
936
|
loading: r,
|
|
937
937
|
"extra-padding": v,
|
|
938
938
|
"has-pointer": w,
|
|
@@ -1662,7 +1662,7 @@ Thank you for helping to protect the Apolitical community from abusive content.`
|
|
|
1662
1662
|
const Be = ({
|
|
1663
1663
|
variant: e = "primary",
|
|
1664
1664
|
size: t = "medium",
|
|
1665
|
-
styling: n = { muted: !1, fullWidth: !1
|
|
1665
|
+
styling: n = { muted: !1, fullWidth: !1 },
|
|
1666
1666
|
icon: r = !1,
|
|
1667
1667
|
href: i = !1,
|
|
1668
1668
|
element: a = "button",
|
|
@@ -1684,11 +1684,10 @@ const Be = ({
|
|
|
1684
1684
|
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")));
|
|
1685
1685
|
const w = {
|
|
1686
1686
|
...p,
|
|
1687
|
-
className:
|
|
1687
|
+
className: H(e, o, v, {
|
|
1688
1688
|
"no-text": !h,
|
|
1689
1689
|
disabled: l,
|
|
1690
1690
|
button: i,
|
|
1691
|
-
new: n.new,
|
|
1692
1691
|
muted: n.muted,
|
|
1693
1692
|
"full-width": n.fullWidth
|
|
1694
1693
|
}),
|
|
@@ -1720,14 +1719,14 @@ const Be = ({
|
|
|
1720
1719
|
return i === "p" ? /* @__PURE__ */ c.jsx(Be, { ...s }, o) : /* @__PURE__ */ c.jsx("li", { className: ((l = t[o]) == null ? void 0 : l.className) || "", children: /* @__PURE__ */ c.jsx(Be, { ...s }) }, o);
|
|
1721
1720
|
});
|
|
1722
1721
|
return ie.createElement(i, {
|
|
1723
|
-
className:
|
|
1722
|
+
className: H("button-wrapper", n),
|
|
1724
1723
|
...r,
|
|
1725
1724
|
children: a
|
|
1726
1725
|
});
|
|
1727
1726
|
};
|
|
1728
1727
|
const an = ({ className: e = "", maxWidth: t = !1 }) => {
|
|
1729
1728
|
const n = t ? { "--max-width": `${t / 16}rem` } : {};
|
|
1730
|
-
return /* @__PURE__ */ c.jsx("hr", { className:
|
|
1729
|
+
return /* @__PURE__ */ c.jsx("hr", { className: H(e, { "has-max-width": t }), style: n });
|
|
1731
1730
|
}, Qo = {
|
|
1732
1731
|
card: {
|
|
1733
1732
|
range: [
|
|
@@ -1918,7 +1917,7 @@ const B_ = ({ image: e, className: t = "", testId: n }) => /* @__PURE__ */ c.jsx
|
|
|
1918
1917
|
}) => {
|
|
1919
1918
|
if (e) {
|
|
1920
1919
|
const l = { ...o };
|
|
1921
|
-
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:
|
|
1920
|
+
return i && (l.onClick = i), a && (l["data-gtm-event-context"] = a), s && (l["data-gtm-event-type"] = s), /* @__PURE__ */ c.jsx("a", { href: e, className: H("gtm-trackable", r), ...l, children: t });
|
|
1922
1921
|
}
|
|
1923
1922
|
return n ? ie.createElement(n, { children: t, className: r, ...o }) : /* @__PURE__ */ c.jsx(c.Fragment, { children: t });
|
|
1924
1923
|
};
|
|
@@ -1929,7 +1928,7 @@ const em = Gs(
|
|
|
1929
1928
|
"aside",
|
|
1930
1929
|
{
|
|
1931
1930
|
ref: i,
|
|
1932
|
-
className:
|
|
1931
|
+
className: H("popover", e),
|
|
1933
1932
|
"aria-live": "polite",
|
|
1934
1933
|
children: t
|
|
1935
1934
|
}
|
|
@@ -1956,7 +1955,7 @@ const A_ = ({ currentStep: e = 1, steps: t = 1 }) => /* @__PURE__ */ c.jsxs(c.Fr
|
|
|
1956
1955
|
/* @__PURE__ */ c.jsx(
|
|
1957
1956
|
"div",
|
|
1958
1957
|
{
|
|
1959
|
-
className:
|
|
1958
|
+
className: H("dot", {
|
|
1960
1959
|
active: i === e,
|
|
1961
1960
|
completed: i < e
|
|
1962
1961
|
}),
|
|
@@ -1966,7 +1965,7 @@ const A_ = ({ currentStep: e = 1, steps: t = 1 }) => /* @__PURE__ */ c.jsxs(c.Fr
|
|
|
1966
1965
|
/* @__PURE__ */ c.jsx(
|
|
1967
1966
|
"div",
|
|
1968
1967
|
{
|
|
1969
|
-
className:
|
|
1968
|
+
className: H("line", {
|
|
1970
1969
|
active: i < e
|
|
1971
1970
|
})
|
|
1972
1971
|
}
|
|
@@ -1996,7 +1995,7 @@ const T_ = ({ elementId: e, offset: t = 20 }) => {
|
|
|
1996
1995
|
}
|
|
1997
1996
|
);
|
|
1998
1997
|
};
|
|
1999
|
-
const S_ = ({ items: e, className: t = "", ...n }) => /* @__PURE__ */ c.jsx("ul", { className:
|
|
1998
|
+
const S_ = ({ items: e, className: t = "", ...n }) => /* @__PURE__ */ c.jsx("ul", { className: H("buckets", t), ...n, children: e.map(({ title: r, text: i, link: a, ...s }, o) => /* @__PURE__ */ c.jsx("li", { className: "bucket text-medium", children: /* @__PURE__ */ c.jsxs("a", { href: a, ...s, children: [
|
|
2000
1999
|
/* @__PURE__ */ c.jsx("p", { className: "title", children: r }),
|
|
2001
2000
|
/* @__PURE__ */ c.jsx("p", { children: i })
|
|
2002
2001
|
] }) }, o)) }), Jo = 300, Xo = "ease-in-out";
|
|
@@ -2059,7 +2058,7 @@ const eo = ({
|
|
|
2059
2058
|
"details",
|
|
2060
2059
|
{
|
|
2061
2060
|
ref: a,
|
|
2062
|
-
className:
|
|
2061
|
+
className: H("collapsible-section", t, {
|
|
2063
2062
|
"should-animate": r
|
|
2064
2063
|
}),
|
|
2065
2064
|
children: [
|
|
@@ -2096,7 +2095,7 @@ const tu = {
|
|
|
2096
2095
|
return !n && !s ? null : /* @__PURE__ */ c.jsx(
|
|
2097
2096
|
"small",
|
|
2098
2097
|
{
|
|
2099
|
-
className:
|
|
2098
|
+
className: H(
|
|
2100
2099
|
"content-type-label text-small",
|
|
2101
2100
|
e in tu ? tu[e] : e,
|
|
2102
2101
|
r,
|
|
@@ -2122,7 +2121,7 @@ const Zt = ({
|
|
|
2122
2121
|
return /* @__PURE__ */ c.jsx(
|
|
2123
2122
|
"div",
|
|
2124
2123
|
{
|
|
2125
|
-
className:
|
|
2124
|
+
className: H("highlighted-text-box", e, r, {
|
|
2126
2125
|
"has-icon": t,
|
|
2127
2126
|
"show-highlight": s,
|
|
2128
2127
|
[o]: o !== "default"
|
|
@@ -2155,7 +2154,7 @@ const In = ({
|
|
|
2155
2154
|
Zt,
|
|
2156
2155
|
{
|
|
2157
2156
|
variant: "subtle",
|
|
2158
|
-
className:
|
|
2157
|
+
className: H("empty-state-box", e, r),
|
|
2159
2158
|
children: /* @__PURE__ */ c.jsxs(c.Fragment, { children: [
|
|
2160
2159
|
t && typeof t == "string" ? /* @__PURE__ */ c.jsx(Kt, { options: { forceBlock: !0 }, children: t }) : t,
|
|
2161
2160
|
i && typeof n == "object" && (u || /* @__PURE__ */ c.jsx(
|
|
@@ -2179,7 +2178,7 @@ const am = ({
|
|
|
2179
2178
|
heading: n = !1,
|
|
2180
2179
|
children: r,
|
|
2181
2180
|
...i
|
|
2182
|
-
}) => /* @__PURE__ */ c.jsxs("div", { ...i, className:
|
|
2181
|
+
}) => /* @__PURE__ */ c.jsxs("div", { ...i, className: H("helper-text-box text-small", e, t), children: [
|
|
2183
2182
|
n && /* @__PURE__ */ c.jsx("p", { className: "title", children: n }),
|
|
2184
2183
|
typeof r == "string" ? /* @__PURE__ */ c.jsx(
|
|
2185
2184
|
Kt,
|
|
@@ -2231,14 +2230,14 @@ const sm = ({
|
|
|
2231
2230
|
Zt,
|
|
2232
2231
|
{
|
|
2233
2232
|
variant: "subtle",
|
|
2234
|
-
className:
|
|
2233
|
+
className: H("hide-show-text-box", t),
|
|
2235
2234
|
children: [
|
|
2236
2235
|
/* @__PURE__ */ c.jsx(
|
|
2237
2236
|
"div",
|
|
2238
2237
|
{
|
|
2239
2238
|
ref: u,
|
|
2240
2239
|
id: e,
|
|
2241
|
-
className:
|
|
2240
|
+
className: H("content", p, s),
|
|
2242
2241
|
children: i ? /* @__PURE__ */ c.jsxs(c.Fragment, { children: [
|
|
2243
2242
|
/* @__PURE__ */ c.jsx(Kt, { options: { forceBlock: !0, ...a }, children: p === "closed" ? d : i }),
|
|
2244
2243
|
p !== "closed" && o
|
|
@@ -2251,7 +2250,7 @@ const sm = ({
|
|
|
2251
2250
|
variant: "tertiary",
|
|
2252
2251
|
icon: { icon: "navigation_arrow", position: "left", animate: !0 },
|
|
2253
2252
|
styling: { muted: !0 },
|
|
2254
|
-
className:
|
|
2253
|
+
className: H({ "rotate-180": f }),
|
|
2255
2254
|
onClick: () => {
|
|
2256
2255
|
m(f ? "ready-to-close" : "opening");
|
|
2257
2256
|
},
|
|
@@ -2274,7 +2273,7 @@ const j_ = ({
|
|
|
2274
2273
|
}) => {
|
|
2275
2274
|
const { hasBorder: s = !1, zebraStriping: o = !1 } = i;
|
|
2276
2275
|
return ie.createElement(e, {
|
|
2277
|
-
className:
|
|
2276
|
+
className: H("icon-bulleted-list text-medium", n, a, {
|
|
2278
2277
|
"has-border": s,
|
|
2279
2278
|
"has-zebra-stripes": o,
|
|
2280
2279
|
[t]: e !== "dl"
|
|
@@ -2400,7 +2399,7 @@ const j_ = ({
|
|
|
2400
2399
|
"@",
|
|
2401
2400
|
n.formatMessage({ id: "member_deleted" })
|
|
2402
2401
|
] })) : a ? (r = { ...r, className: "button primary medium" }, /* @__PURE__ */ c.jsx("p", { className: "center", children: /* @__PURE__ */ c.jsx(Be, { variant: "primary", size: "medium", ...r, children: i }) })) : /* @__PURE__ */ c.jsx("a", { ...r, children: i });
|
|
2403
|
-
}, ru = ({ children: e, ...t }) => /* @__PURE__ */ c.jsx("span", { className:
|
|
2402
|
+
}, ru = ({ children: e, ...t }) => /* @__PURE__ */ c.jsx("span", { className: H({ url: t == null ? void 0 : t.href }), children: e });
|
|
2404
2403
|
const mm = {
|
|
2405
2404
|
default: {
|
|
2406
2405
|
a: hm,
|
|
@@ -2452,7 +2451,7 @@ const mm = {
|
|
|
2452
2451
|
};
|
|
2453
2452
|
let l = mm[i];
|
|
2454
2453
|
return n.overrides && (l = { ...l, ...n.overrides }), ie.createElement(e, {
|
|
2455
|
-
className:
|
|
2454
|
+
className: H("markdown-text", t, {
|
|
2456
2455
|
"highlight-titles": s
|
|
2457
2456
|
}),
|
|
2458
2457
|
children: /* @__PURE__ */ c.jsx(Kt, { options: { ...o, ...n, overrides: l }, children: r })
|
|
@@ -2466,8 +2465,8 @@ const pm = ({
|
|
|
2466
2465
|
className: i = ""
|
|
2467
2466
|
}) => {
|
|
2468
2467
|
const a = e ? { "--max-width": `${e / 16}rem` } : {};
|
|
2469
|
-
return /* @__PURE__ */ c.jsxs("section", { className:
|
|
2470
|
-
/* @__PURE__ */ c.jsxs("div", { className:
|
|
2468
|
+
return /* @__PURE__ */ c.jsxs("section", { className: H("page-heading", i), children: [
|
|
2469
|
+
/* @__PURE__ */ c.jsxs("div", { className: H("content", { "has-max-width": e }), style: a, children: [
|
|
2471
2470
|
t && t.text && ie.createElement(t.element || "h1", { className: "title" }, t.text),
|
|
2472
2471
|
n && n.text && ie.createElement(
|
|
2473
2472
|
n.element || "h2",
|
|
@@ -2491,7 +2490,7 @@ const vn = ({
|
|
|
2491
2490
|
const l = {
|
|
2492
2491
|
"--icon": `url(${rn}icons/${r}.svg)`
|
|
2493
2492
|
}, { showTooltip: u, tooltipProps: d } = $c(!!i), h = ie.createElement(s, {
|
|
2494
|
-
className:
|
|
2493
|
+
className: H("pill", e, t, n, {
|
|
2495
2494
|
"has-icon": r
|
|
2496
2495
|
}),
|
|
2497
2496
|
style: l,
|
|
@@ -2520,7 +2519,7 @@ const Pi = ({
|
|
|
2520
2519
|
e,
|
|
2521
2520
|
{
|
|
2522
2521
|
...r,
|
|
2523
|
-
className:
|
|
2522
|
+
className: H("status-banner text-small", n),
|
|
2524
2523
|
"aria-live": "assertive"
|
|
2525
2524
|
},
|
|
2526
2525
|
t
|
|
@@ -2540,7 +2539,7 @@ const gm = ({
|
|
|
2540
2539
|
return /* @__PURE__ */ c.jsx(
|
|
2541
2540
|
"span",
|
|
2542
2541
|
{
|
|
2543
|
-
className:
|
|
2542
|
+
className: H(`progress-bar section-${u}`, s, r, {
|
|
2544
2543
|
[o]: o !== "default",
|
|
2545
2544
|
[l !== "default" ? l : ""]: l !== "default"
|
|
2546
2545
|
}),
|
|
@@ -2569,7 +2568,7 @@ const Da = "loadingBlock_", vm = ({ progress: e = 0, steps: t = !1, className: n
|
|
|
2569
2568
|
return /* @__PURE__ */ c.jsxs(
|
|
2570
2569
|
Zt,
|
|
2571
2570
|
{
|
|
2572
|
-
className:
|
|
2571
|
+
className: H("loading-block", n, {
|
|
2573
2572
|
"has-icon": i && t[i].icon
|
|
2574
2573
|
}),
|
|
2575
2574
|
variant: "subtle",
|
|
@@ -2585,7 +2584,7 @@ const $t = ({ element: e = "div", className: t = "", ...n }) => /* @__PURE__ */
|
|
|
2585
2584
|
Js,
|
|
2586
2585
|
{
|
|
2587
2586
|
element: e,
|
|
2588
|
-
className:
|
|
2587
|
+
className: H("loading-placeholder", t),
|
|
2589
2588
|
...n
|
|
2590
2589
|
}
|
|
2591
2590
|
);
|
|
@@ -2638,7 +2637,7 @@ const Cs = {
|
|
|
2638
2637
|
"course-navigation": ["button", "button"],
|
|
2639
2638
|
"course-lesson-page": ["breadcrumb", "course-navigation", "text-page"],
|
|
2640
2639
|
"course-lesson-quiz": ["text-page", "quiz-box"]
|
|
2641
|
-
}, Zc = (e, t) => e in Cs ? /* @__PURE__ */ c.jsx("div", { className: e, children: Cs[e].map((n, r) => Zc(n, r)) }, t) : /* @__PURE__ */ c.jsx($t, { className: e }, t), Yc = ({ layout: e = "overview-page", ...t }) => /* @__PURE__ */ c.jsx("div", { className:
|
|
2640
|
+
}, Zc = (e, t) => e in Cs ? /* @__PURE__ */ c.jsx("div", { className: e, children: Cs[e].map((n, r) => Zc(n, r)) }, t) : /* @__PURE__ */ c.jsx($t, { className: e }, t), Yc = ({ layout: e = "overview-page", ...t }) => /* @__PURE__ */ c.jsx("div", { className: H("loading-state", e), ...t, children: Cs[e].map((n, r) => Zc(n, r)) }), Gc = (e) => {
|
|
2642
2641
|
const t = e && e.toUpperCase().trim().split(" ");
|
|
2643
2642
|
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) : "";
|
|
2644
2643
|
}, ei = ["#5AB6A3", "#A2D7AF", "#806056", "#3962B3"], bm = (e) => {
|
|
@@ -2675,7 +2674,7 @@ const iu = 256, $n = ({
|
|
|
2675
2674
|
return t && t !== "" && !l && (t.includes("http") || t.includes("//")) && (p = !0), /* @__PURE__ */ c.jsx(
|
|
2676
2675
|
"figure",
|
|
2677
2676
|
{
|
|
2678
|
-
className:
|
|
2677
|
+
className: H("profile-picture", e, { error: l }),
|
|
2679
2678
|
...o,
|
|
2680
2679
|
children: p ? /* @__PURE__ */ c.jsx(
|
|
2681
2680
|
"img",
|
|
@@ -2846,7 +2845,7 @@ const jm = ({ slug: e }) => {
|
|
|
2846
2845
|
return /* @__PURE__ */ c.jsx(
|
|
2847
2846
|
vn,
|
|
2848
2847
|
{
|
|
2849
|
-
className:
|
|
2848
|
+
className: H("user-badge", a == null ? void 0 : a.toLowerCase()),
|
|
2850
2849
|
icon: i && Sm[i],
|
|
2851
2850
|
element: "li",
|
|
2852
2851
|
tooltip: s,
|
|
@@ -2892,7 +2891,7 @@ const bn = ({
|
|
|
2892
2891
|
const P = Tm(x), z = r && r.createdAt ? xs(r.createdAt) : !1, M = r && r.createdAt ? qc(r.createdAt) : "";
|
|
2893
2892
|
return ie.createElement(e, {
|
|
2894
2893
|
...d,
|
|
2895
|
-
className:
|
|
2894
|
+
className: H("member text-medium", g, f, l, {
|
|
2896
2895
|
"has-profile-link": w
|
|
2897
2896
|
}),
|
|
2898
2897
|
...m,
|
|
@@ -2940,7 +2939,7 @@ const bn = ({
|
|
|
2940
2939
|
P && /* @__PURE__ */ c.jsx(
|
|
2941
2940
|
"small",
|
|
2942
2941
|
{
|
|
2943
|
-
className:
|
|
2942
|
+
className: H({ "text-medium": g === "large" }),
|
|
2944
2943
|
"data-testid": "member-details",
|
|
2945
2944
|
children: b ? P : /* @__PURE__ */ c.jsxs(c.Fragment, { children: [
|
|
2946
2945
|
x.role,
|
|
@@ -3009,7 +3008,7 @@ const au = {
|
|
|
3009
3008
|
const h = le();
|
|
3010
3009
|
return !n || n.length === 0 ? null : ie.createElement(e, {
|
|
3011
3010
|
...d,
|
|
3012
|
-
className:
|
|
3011
|
+
className: H("contributors", u, i, { "has-gap": a }),
|
|
3013
3012
|
children: /* @__PURE__ */ c.jsxs(c.Fragment, { children: [
|
|
3014
3013
|
/* @__PURE__ */ c.jsx("ul", { children: n.map((p, m) => {
|
|
3015
3014
|
let g, f = "";
|
|
@@ -3031,7 +3030,7 @@ const au = {
|
|
|
3031
3030
|
g = /* @__PURE__ */ c.jsxs(
|
|
3032
3031
|
"small",
|
|
3033
3032
|
{
|
|
3034
|
-
className:
|
|
3033
|
+
className: H({ "large-number": b > 99 }),
|
|
3035
3034
|
children: [
|
|
3036
3035
|
"+",
|
|
3037
3036
|
Zh(b, 0)
|
|
@@ -3039,14 +3038,14 @@ const au = {
|
|
|
3039
3038
|
}
|
|
3040
3039
|
), f = "number-left";
|
|
3041
3040
|
}
|
|
3042
|
-
return g ? /* @__PURE__ */ c.jsx("li", { className:
|
|
3041
|
+
return g ? /* @__PURE__ */ c.jsx("li", { className: H("contributor", f), children: g }, m) : null;
|
|
3043
3042
|
}) }),
|
|
3044
3043
|
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]}` }) : ir(n[0].name || "", 20) : l || null })
|
|
3045
3044
|
] })
|
|
3046
3045
|
});
|
|
3047
3046
|
};
|
|
3048
3047
|
const rd = ({ element: e = "section", children: t, className: n, ...r }) => ie.createElement(e, {
|
|
3049
|
-
className:
|
|
3048
|
+
className: H("modal", n),
|
|
3050
3049
|
children: typeof t == "string" ? /* @__PURE__ */ c.jsx("p", { children: t }) : t,
|
|
3051
3050
|
...r
|
|
3052
3051
|
});
|
|
@@ -4739,7 +4738,7 @@ const Ln = ({
|
|
|
4739
4738
|
{
|
|
4740
4739
|
id: `${e}-overlay`,
|
|
4741
4740
|
ref: B,
|
|
4742
|
-
className:
|
|
4741
|
+
className: H("overlay", {
|
|
4743
4742
|
open: f,
|
|
4744
4743
|
"in-portal": d.includes("in-portal")
|
|
4745
4744
|
}),
|
|
@@ -4748,7 +4747,7 @@ const Ln = ({
|
|
|
4748
4747
|
rd,
|
|
4749
4748
|
{
|
|
4750
4749
|
id: e,
|
|
4751
|
-
className:
|
|
4750
|
+
className: H("overlay-modal", d, {
|
|
4752
4751
|
"has-max-width": r
|
|
4753
4752
|
}),
|
|
4754
4753
|
hidden: !f,
|
|
@@ -4827,7 +4826,7 @@ const wr = "joinCommunityButton", pd = ({
|
|
|
4827
4826
|
await w();
|
|
4828
4827
|
}, 500), h(!d);
|
|
4829
4828
|
},
|
|
4830
|
-
className:
|
|
4829
|
+
className: H("join-community-button", p, {
|
|
4831
4830
|
active: p === "joining"
|
|
4832
4831
|
}),
|
|
4833
4832
|
disabled: u,
|
|
@@ -4848,7 +4847,7 @@ const Ba = "communityDetails_", N_ = ({
|
|
|
4848
4847
|
functions: { invite: s, ...o }
|
|
4849
4848
|
}) => {
|
|
4850
4849
|
const l = le(), { id: u } = Ne(vt), d = u, h = 5, p = i || a.length, m = a.length ? a : Array(h).fill({}), g = `/communities/${r}/members` === window.location.pathname, f = t || n, b = !n && !t;
|
|
4851
|
-
return /* @__PURE__ */ c.jsxs("div", { className:
|
|
4850
|
+
return /* @__PURE__ */ c.jsxs("div", { className: H("community-details", e), children: [
|
|
4852
4851
|
f ? /* @__PURE__ */ c.jsxs("div", { className: "member-details", children: [
|
|
4853
4852
|
/* @__PURE__ */ c.jsxs("div", { className: "top", children: [
|
|
4854
4853
|
/* @__PURE__ */ c.jsxs("h4", { children: [
|
|
@@ -4906,7 +4905,7 @@ const M_ = ({ breadcrumbs: e, cutoff: t = 20, className: n = "" }) => {
|
|
|
4906
4905
|
children: r.formatMessage({ id: "breadcrumbs_label" })
|
|
4907
4906
|
}
|
|
4908
4907
|
),
|
|
4909
|
-
/* @__PURE__ */ c.jsx("ul", { className:
|
|
4908
|
+
/* @__PURE__ */ c.jsx("ul", { className: H("breadcrumbs text-small", n), children: e.map(
|
|
4910
4909
|
({ text: i, href: a, current: s = !1 }, o) => {
|
|
4911
4910
|
const l = {};
|
|
4912
4911
|
return s && (l["aria-current"] = "location"), /* @__PURE__ */ c.jsxs("li", { children: [
|
|
@@ -4924,6 +4923,43 @@ const M_ = ({ breadcrumbs: e, cutoff: t = 20, className: n = "" }) => {
|
|
|
4924
4923
|
] });
|
|
4925
4924
|
};
|
|
4926
4925
|
const R_ = ({
|
|
4926
|
+
variant: e = "default",
|
|
4927
|
+
data: { image: t, url: n, title: r, description: i },
|
|
4928
|
+
gtm: a
|
|
4929
|
+
}) => {
|
|
4930
|
+
const s = n.split("//")[1].split("/")[0], { context: o = "EnrichedLink", event: l = "enriched-link-click" } = a ?? {};
|
|
4931
|
+
return /* @__PURE__ */ c.jsxs(
|
|
4932
|
+
"aside",
|
|
4933
|
+
{
|
|
4934
|
+
className: H("enriched-url gtm-trackable", {
|
|
4935
|
+
"has-image": t,
|
|
4936
|
+
[e]: e !== "default"
|
|
4937
|
+
}),
|
|
4938
|
+
onClick: (u) => {
|
|
4939
|
+
u.preventDefault(), u.stopPropagation(), window.location.href = n;
|
|
4940
|
+
},
|
|
4941
|
+
"data-gtm-event-context": o,
|
|
4942
|
+
"data-gtm-event-type": l,
|
|
4943
|
+
children: [
|
|
4944
|
+
/* @__PURE__ */ c.jsx("small", { children: s }),
|
|
4945
|
+
/* @__PURE__ */ c.jsx("p", { className: "title text-medium", children: /* @__PURE__ */ c.jsx("a", { href: n, target: "_blank", children: r }) }),
|
|
4946
|
+
i && e !== "condensed" ? /* @__PURE__ */ c.jsx("p", { className: "text-small", children: i }) : /* @__PURE__ */ c.jsx(c.Fragment, {}),
|
|
4947
|
+
t && t.src ? /* @__PURE__ */ c.jsx("p", { className: "img", children: /* @__PURE__ */ c.jsx(
|
|
4948
|
+
"img",
|
|
4949
|
+
{
|
|
4950
|
+
src: t.src,
|
|
4951
|
+
alt: t.alt || "",
|
|
4952
|
+
loading: "lazy",
|
|
4953
|
+
fetchpriority: "low",
|
|
4954
|
+
width: t.width || "auto",
|
|
4955
|
+
height: t.height || "100%"
|
|
4956
|
+
}
|
|
4957
|
+
) }) : /* @__PURE__ */ c.jsx(c.Fragment, {})
|
|
4958
|
+
]
|
|
4959
|
+
}
|
|
4960
|
+
);
|
|
4961
|
+
};
|
|
4962
|
+
const I_ = ({
|
|
4927
4963
|
options: e,
|
|
4928
4964
|
allOption: t = !1,
|
|
4929
4965
|
allowMultiple: n = !0,
|
|
@@ -4941,7 +4977,7 @@ const R_ = ({
|
|
|
4941
4977
|
let p = [];
|
|
4942
4978
|
o.includes(d) ? p = o.filter((m) => m !== d) : d === "all" ? p = ["all"] : n ? p = [...o.filter((m) => m !== "all"), d] : p = [d], l((m) => (r && typeof r == "function" && r({ current: p, previous: m }), p)), h && typeof h == "function" && h();
|
|
4943
4979
|
};
|
|
4944
|
-
return /* @__PURE__ */ c.jsx("ul", { className:
|
|
4980
|
+
return /* @__PURE__ */ c.jsx("ul", { className: H("filters", i), children: s.map(({ id: d, text: h, disabled: p = !1, callback: m = () => {
|
|
4945
4981
|
} }) => {
|
|
4946
4982
|
let g = {};
|
|
4947
4983
|
return p && (g = {
|
|
@@ -4950,7 +4986,7 @@ const R_ = ({
|
|
|
4950
4986
|
}), /* @__PURE__ */ c.jsx("li", { children: /* @__PURE__ */ c.jsx(
|
|
4951
4987
|
"button",
|
|
4952
4988
|
{
|
|
4953
|
-
className:
|
|
4989
|
+
className: H(d, { selected: o.includes(d) }),
|
|
4954
4990
|
onClick: (f) => {
|
|
4955
4991
|
f.preventDefault(), f.stopPropagation(), u(d, m);
|
|
4956
4992
|
},
|
|
@@ -4971,7 +5007,7 @@ const R_ = ({
|
|
|
4971
5007
|
urlForRouter: `/${i.split("/").slice(2).join("/")}`
|
|
4972
5008
|
} : i;
|
|
4973
5009
|
};
|
|
4974
|
-
const ai = "languageSwitcher_",
|
|
5010
|
+
const ai = "languageSwitcher_", $_ = ({
|
|
4975
5011
|
currentLanguage: e,
|
|
4976
5012
|
isOriginalLanguage: t = !1,
|
|
4977
5013
|
isHumanTranslation: n = !1,
|
|
@@ -4991,7 +5027,7 @@ const ai = "languageSwitcher_", I_ = ({
|
|
|
4991
5027
|
))
|
|
4992
5028
|
return null;
|
|
4993
5029
|
const g = Object.keys(r), f = h !== e;
|
|
4994
|
-
return /* @__PURE__ */ c.jsxs("div", { className:
|
|
5030
|
+
return /* @__PURE__ */ c.jsxs("div", { className: H("language-switcher text-small", s, l), children: [
|
|
4995
5031
|
/* @__PURE__ */ c.jsxs("nav", { children: [
|
|
4996
5032
|
s !== "short" && /* @__PURE__ */ c.jsx("p", { children: o || u.formatMessage({ id: `${ai}label` }) }),
|
|
4997
5033
|
/* @__PURE__ */ c.jsx("ul", { children: g.map((b) => {
|
|
@@ -5066,7 +5102,7 @@ const Aa = bh({ locale: "en", messages: pr }), ia = ({
|
|
|
5066
5102
|
g instanceof Error ? h(g.message) : h("Unknown error");
|
|
5067
5103
|
}
|
|
5068
5104
|
};
|
|
5069
|
-
return !d && !e && !o.endOfFeed ? null : /* @__PURE__ */ c.jsx("footer", { className:
|
|
5105
|
+
return !d && !e && !o.endOfFeed ? null : /* @__PURE__ */ c.jsx("footer", { className: H("load-more", l), children: !d && e ? /* @__PURE__ */ c.jsx(
|
|
5070
5106
|
Be,
|
|
5071
5107
|
{
|
|
5072
5108
|
variant: r,
|
|
@@ -5092,7 +5128,7 @@ const gd = ({
|
|
|
5092
5128
|
"a",
|
|
5093
5129
|
{
|
|
5094
5130
|
href: "/home/",
|
|
5095
|
-
className:
|
|
5131
|
+
className: H("logo", e, t, n),
|
|
5096
5132
|
...r,
|
|
5097
5133
|
children: /* @__PURE__ */ c.jsx(qe, { children: /* @__PURE__ */ c.jsx(ct, { id: "apolitical" }) })
|
|
5098
5134
|
}
|
|
@@ -5113,7 +5149,7 @@ const Mp = ({
|
|
|
5113
5149
|
document.removeEventListener("click", l, !0);
|
|
5114
5150
|
})), ie.createElement(e, {
|
|
5115
5151
|
ref: a,
|
|
5116
|
-
className:
|
|
5152
|
+
className: H("more-menu text-medium", r),
|
|
5117
5153
|
children: /* @__PURE__ */ c.jsxs(c.Fragment, { children: [
|
|
5118
5154
|
/* @__PURE__ */ c.jsx(
|
|
5119
5155
|
Be,
|
|
@@ -5184,7 +5220,7 @@ const Ip = Kr(() => Promise.resolve().then(() => Mm)), $p = [
|
|
|
5184
5220
|
return /* @__PURE__ */ c.jsxs("ul", { id: "navigation-menu", className: "text-medium", children: [
|
|
5185
5221
|
$p.map(({ key: a, href: s }) => {
|
|
5186
5222
|
const o = Rp(s, e), l = {};
|
|
5187
|
-
return o && (l["aria-current"] = "page"), /* @__PURE__ */ c.jsx("li", { className:
|
|
5223
|
+
return o && (l["aria-current"] = "page"), /* @__PURE__ */ c.jsx("li", { className: H(a, { active: o }), children: /* @__PURE__ */ c.jsx(
|
|
5188
5224
|
"a",
|
|
5189
5225
|
{
|
|
5190
5226
|
href: s,
|
|
@@ -5254,7 +5290,7 @@ ${Cr(t, "mailto", n)}&src=email`
|
|
|
5254
5290
|
onClick: (r, i) => (r.preventDefault(), r.stopPropagation(), navigator.clipboard.writeText(i))
|
|
5255
5291
|
}
|
|
5256
5292
|
];
|
|
5257
|
-
const qp = "shareLinks_",
|
|
5293
|
+
const qp = "shareLinks_", L_ = ({
|
|
5258
5294
|
title: e,
|
|
5259
5295
|
link: t,
|
|
5260
5296
|
referrer: n,
|
|
@@ -5264,7 +5300,7 @@ const qp = "shareLinks_", $_ = ({
|
|
|
5264
5300
|
className: s = ""
|
|
5265
5301
|
}) => {
|
|
5266
5302
|
const o = le(), l = zp({ title: e, link: t, referrer: n });
|
|
5267
|
-
return /* @__PURE__ */ c.jsxs("aside", { className:
|
|
5303
|
+
return /* @__PURE__ */ c.jsxs("aside", { className: H("share-links", i, a, s), children: [
|
|
5268
5304
|
/* @__PURE__ */ c.jsx("p", { className: "text-small", children: o.formatMessage({ id: "shareLinks_label" }) }),
|
|
5269
5305
|
/* @__PURE__ */ c.jsx("ul", { children: l.map(({ key: u, icon: d, url: h, shouldRender: p = !0, onClick: m }) => {
|
|
5270
5306
|
if (typeof p == "function" && !p())
|
|
@@ -5290,7 +5326,7 @@ const qp = "shareLinks_", $_ = ({
|
|
|
5290
5326
|
}) })
|
|
5291
5327
|
] });
|
|
5292
5328
|
};
|
|
5293
|
-
const
|
|
5329
|
+
const z_ = ({ tabs: e, className: t = "", preventLocationChange: n }) => {
|
|
5294
5330
|
var g;
|
|
5295
5331
|
const r = (f, b, v) => (f || (f = `panel-${window.btoa(b)}-${v}`), f), i = hr(!0) || 0;
|
|
5296
5332
|
let a = e.findIndex((f) => f.current === !0);
|
|
@@ -5362,7 +5398,7 @@ const L_ = ({ tabs: e, className: t = "", preventLocationChange: n }) => {
|
|
|
5362
5398
|
href: w || `#${f}`,
|
|
5363
5399
|
id: `tab-${f}`,
|
|
5364
5400
|
"aria-controls": f,
|
|
5365
|
-
className:
|
|
5401
|
+
className: H({ selected: A }),
|
|
5366
5402
|
role: "tab",
|
|
5367
5403
|
tabIndex: A ? 0 : -1,
|
|
5368
5404
|
"aria-selected": A,
|
|
@@ -5373,7 +5409,7 @@ const L_ = ({ tabs: e, className: t = "", preventLocationChange: n }) => {
|
|
|
5373
5409
|
) }, `tab-${f}`)
|
|
5374
5410
|
);
|
|
5375
5411
|
}
|
|
5376
|
-
), /* @__PURE__ */ c.jsxs("div", { className:
|
|
5412
|
+
), /* @__PURE__ */ c.jsxs("div", { className: H("tabs-wrapper", t), children: [
|
|
5377
5413
|
/* @__PURE__ */ c.jsx("ul", { className: "tabs", role: "tablist", children: p }),
|
|
5378
5414
|
/* @__PURE__ */ c.jsx("div", { className: "tab-content", children: m })
|
|
5379
5415
|
] });
|
|
@@ -5394,7 +5430,7 @@ const Wp = {
|
|
|
5394
5430
|
return ie.Children.count(i) === 1 && (s = ie.Children.toArray(i)[0], s.props && (s = s.props.children)), /* @__PURE__ */ c.jsx(
|
|
5395
5431
|
"section",
|
|
5396
5432
|
{
|
|
5397
|
-
className:
|
|
5433
|
+
className: H("columns", `layout-${e}`, r, {
|
|
5398
5434
|
"has-containers": n
|
|
5399
5435
|
}),
|
|
5400
5436
|
children: ie.Children.map(s, (o, l) => t !== !1 && l === t && a && a < Wp[e] ? null : o)
|
|
@@ -5416,7 +5452,7 @@ const vd = ({
|
|
|
5416
5452
|
"small",
|
|
5417
5453
|
{
|
|
5418
5454
|
id: e,
|
|
5419
|
-
className:
|
|
5455
|
+
className: H("character-limit", {
|
|
5420
5456
|
"near-limit": l,
|
|
5421
5457
|
"approaching-limit": u
|
|
5422
5458
|
}),
|
|
@@ -5612,7 +5648,7 @@ const oi = "emailHelperTextBox_", Vp = ({
|
|
|
5612
5648
|
type: o,
|
|
5613
5649
|
id: n,
|
|
5614
5650
|
name: a,
|
|
5615
|
-
className:
|
|
5651
|
+
className: H(e, t, {
|
|
5616
5652
|
"has-scrollbar": o === "textarea" && p.current && p.current.clientHeight < p.current.scrollHeight
|
|
5617
5653
|
}),
|
|
5618
5654
|
value: l,
|
|
@@ -5739,7 +5775,7 @@ const Hn = {
|
|
|
5739
5775
|
...A,
|
|
5740
5776
|
activePredictionIndex: x
|
|
5741
5777
|
})),
|
|
5742
|
-
className:
|
|
5778
|
+
className: H("predictions-list-item", {
|
|
5743
5779
|
active: x === m
|
|
5744
5780
|
}),
|
|
5745
5781
|
children: E.description
|
|
@@ -5794,7 +5830,7 @@ const bd = ({
|
|
|
5794
5830
|
const w = v.target;
|
|
5795
5831
|
w.nodeName.toLowerCase() === "a" || w.parentNode && w.parentNode.nodeName.toLowerCase() === "a" || (v.preventDefault(), v.stopPropagation(), f());
|
|
5796
5832
|
},
|
|
5797
|
-
className:
|
|
5833
|
+
className: H("checkbox-wrapper", e),
|
|
5798
5834
|
...h,
|
|
5799
5835
|
...g
|
|
5800
5836
|
},
|
|
@@ -5807,7 +5843,7 @@ const Yp = Gt(function({
|
|
|
5807
5843
|
return /* @__PURE__ */ c.jsx(
|
|
5808
5844
|
Js,
|
|
5809
5845
|
{
|
|
5810
|
-
className:
|
|
5846
|
+
className: H("rotating-chevron", `direction-${t}`)
|
|
5811
5847
|
}
|
|
5812
5848
|
);
|
|
5813
5849
|
});
|
|
@@ -5843,7 +5879,7 @@ const Gp = ({
|
|
|
5843
5879
|
} else
|
|
5844
5880
|
b([]), w && w([]);
|
|
5845
5881
|
};
|
|
5846
|
-
return /* @__PURE__ */ c.jsxs("div", { className:
|
|
5882
|
+
return /* @__PURE__ */ c.jsxs("div", { className: H("dropdown-wrapper", e), children: [
|
|
5847
5883
|
/* @__PURE__ */ c.jsxs(
|
|
5848
5884
|
"button",
|
|
5849
5885
|
{
|
|
@@ -5928,7 +5964,7 @@ const Gp = ({
|
|
|
5928
5964
|
return /* @__PURE__ */ c.jsx("li", { "data-testid": "dropdown-options", children: /* @__PURE__ */ c.jsxs(
|
|
5929
5965
|
"button",
|
|
5930
5966
|
{
|
|
5931
|
-
className:
|
|
5967
|
+
className: H("gtm-trackable", {
|
|
5932
5968
|
selected: L,
|
|
5933
5969
|
"selected-single": L && !o
|
|
5934
5970
|
}),
|
|
@@ -5942,7 +5978,7 @@ const Gp = ({
|
|
|
5942
5978
|
"data-testid": L ? "current-selection" : "",
|
|
5943
5979
|
children: [
|
|
5944
5980
|
o && /* @__PURE__ */ c.jsx("span", { className: "pretty-checkbox", "data-testid": "pretty-checkbox" }),
|
|
5945
|
-
/* @__PURE__ */ c.jsx("span", { className:
|
|
5981
|
+
/* @__PURE__ */ c.jsx("span", { className: H({ "menu-option-label": o }), children: T.label })
|
|
5946
5982
|
]
|
|
5947
5983
|
}
|
|
5948
5984
|
) }, T.id);
|
|
@@ -5990,7 +6026,7 @@ const Qp = ({
|
|
|
5990
6026
|
"ul",
|
|
5991
6027
|
{
|
|
5992
6028
|
...h,
|
|
5993
|
-
className:
|
|
6029
|
+
className: H("options-wrapper", e),
|
|
5994
6030
|
"data-testid": `ul-${r}`,
|
|
5995
6031
|
children: o == null ? void 0 : o.map(
|
|
5996
6032
|
({
|
|
@@ -6051,7 +6087,7 @@ const Jp = ({
|
|
|
6051
6087
|
"button",
|
|
6052
6088
|
{
|
|
6053
6089
|
type: "button",
|
|
6054
|
-
className:
|
|
6090
|
+
className: H("show-password gtm-trackable", {
|
|
6055
6091
|
"password-visible": l
|
|
6056
6092
|
}),
|
|
6057
6093
|
"data-gtm-event-context": n,
|
|
@@ -6144,7 +6180,7 @@ const Vn = {
|
|
|
6144
6180
|
{
|
|
6145
6181
|
...x,
|
|
6146
6182
|
label: T,
|
|
6147
|
-
className:
|
|
6183
|
+
className: H("field-wrapper", n)
|
|
6148
6184
|
}
|
|
6149
6185
|
),
|
|
6150
6186
|
/* @__PURE__ */ c.jsx(L, { as: "p" })
|
|
@@ -6158,7 +6194,7 @@ const Vn = {
|
|
|
6158
6194
|
});
|
|
6159
6195
|
return /* @__PURE__ */ c.jsx(c.Fragment, { children: ie.createElement(
|
|
6160
6196
|
b ? "fieldset" : "div",
|
|
6161
|
-
{ className:
|
|
6197
|
+
{ className: H("field-wrapper text-medium", n) },
|
|
6162
6198
|
/* @__PURE__ */ c.jsxs(c.Fragment, { children: [
|
|
6163
6199
|
ie.createElement(
|
|
6164
6200
|
b ? ie.Fragment : "p",
|
|
@@ -6410,23 +6446,23 @@ const Dn = ({
|
|
|
6410
6446
|
}
|
|
6411
6447
|
});
|
|
6412
6448
|
}
|
|
6449
|
+
}, X = (_) => {
|
|
6450
|
+
var W;
|
|
6451
|
+
if (_.preventDefault(), _.stopPropagation(), N)
|
|
6452
|
+
return;
|
|
6453
|
+
let I = 0;
|
|
6454
|
+
if ((W = ne == null ? void 0 : ne.current) != null && W.id) {
|
|
6455
|
+
const re = document.getElementById(ne.current.id);
|
|
6456
|
+
re && (I = re.getBoundingClientRect().top + window.scrollY);
|
|
6457
|
+
}
|
|
6458
|
+
const R = document.getElementById("header");
|
|
6459
|
+
R && (I = I - R.offsetHeight - b), I < 0 && (I = 0), window.scrollTo({ top: I, behavior: "smooth" }), $();
|
|
6413
6460
|
}, k = [
|
|
6414
6461
|
{
|
|
6415
6462
|
...f,
|
|
6416
6463
|
icon: q ? { icon: "tick", position: "left" } : !1,
|
|
6417
|
-
className: "gtm-trackable",
|
|
6418
|
-
onClick:
|
|
6419
|
-
var W;
|
|
6420
|
-
if (_.preventDefault(), _.stopPropagation(), N)
|
|
6421
|
-
return;
|
|
6422
|
-
let I = 0;
|
|
6423
|
-
if ((W = ne == null ? void 0 : ne.current) != null && W.id) {
|
|
6424
|
-
const re = document.getElementById(ne.current.id);
|
|
6425
|
-
re && (I = re.getBoundingClientRect().top + window.scrollY);
|
|
6426
|
-
}
|
|
6427
|
-
const R = document.getElementById("header");
|
|
6428
|
-
R && (I = I - R.offsetHeight - b), I < 0 && (I = 0), window.scrollTo({ top: I, behavior: "smooth" }), $();
|
|
6429
|
-
},
|
|
6464
|
+
className: H("gtm-trackable", f.className),
|
|
6465
|
+
onClick: X,
|
|
6430
6466
|
disabled: N || q || s.disabled,
|
|
6431
6467
|
"data-gtm-event-context": d.context,
|
|
6432
6468
|
"data-gtm-event-type": d.event,
|
|
@@ -6435,7 +6471,7 @@ const Dn = ({
|
|
|
6435
6471
|
];
|
|
6436
6472
|
return v && k.unshift({
|
|
6437
6473
|
...o,
|
|
6438
|
-
className: "gtm-trackable",
|
|
6474
|
+
className: H("gtm-trackable", o.className),
|
|
6439
6475
|
"data-gtm-event-context": d.context,
|
|
6440
6476
|
"data-gtm-event-type": d.event,
|
|
6441
6477
|
disabled: N || q,
|
|
@@ -6447,7 +6483,7 @@ const Dn = ({
|
|
|
6447
6483
|
{
|
|
6448
6484
|
...p,
|
|
6449
6485
|
id: r,
|
|
6450
|
-
className:
|
|
6486
|
+
className: H("form", n),
|
|
6451
6487
|
ref: ne
|
|
6452
6488
|
},
|
|
6453
6489
|
/* @__PURE__ */ c.jsxs(c.Fragment, { children: [
|
|
@@ -6493,7 +6529,7 @@ const Dn = ({
|
|
|
6493
6529
|
g ? null : (N || q) && m ? m : /* @__PURE__ */ c.jsx(
|
|
6494
6530
|
Zr,
|
|
6495
6531
|
{
|
|
6496
|
-
className:
|
|
6532
|
+
className: H("cta", {
|
|
6497
6533
|
center: N || q,
|
|
6498
6534
|
submitted: q
|
|
6499
6535
|
}),
|
|
@@ -6518,13 +6554,13 @@ const ui = "passwordRules_", yd = "isMoreThanEightCharacters", Dd = "includesNum
|
|
|
6518
6554
|
className: t = ""
|
|
6519
6555
|
}) => {
|
|
6520
6556
|
const n = le();
|
|
6521
|
-
return /* @__PURE__ */ c.jsxs("aside", { className:
|
|
6557
|
+
return /* @__PURE__ */ c.jsxs("aside", { className: H("password-rules", t), children: [
|
|
6522
6558
|
/* @__PURE__ */ c.jsx("small", { children: n.formatMessage({ id: `${ui}intro` }) }),
|
|
6523
6559
|
/* @__PURE__ */ c.jsx("ul", { children: [yd, Dd, xd].map(
|
|
6524
6560
|
(r) => /* @__PURE__ */ c.jsxs(
|
|
6525
6561
|
"li",
|
|
6526
6562
|
{
|
|
6527
|
-
className:
|
|
6563
|
+
className: H({ matches: e[r] }),
|
|
6528
6564
|
children: [
|
|
6529
6565
|
/* @__PURE__ */ c.jsxs(qe, { children: [
|
|
6530
6566
|
n.formatMessage({ id: `${ui}rule_label` }),
|
|
@@ -6542,7 +6578,7 @@ const ui = "passwordRules_", yd = "isMoreThanEightCharacters", Dd = "includesNum
|
|
|
6542
6578
|
) })
|
|
6543
6579
|
] });
|
|
6544
6580
|
}, rg = Gt(ng);
|
|
6545
|
-
const
|
|
6581
|
+
const q_ = ({
|
|
6546
6582
|
text: e = {},
|
|
6547
6583
|
topRating: t = 5,
|
|
6548
6584
|
functions: {
|
|
@@ -6593,14 +6629,14 @@ const z_ = ({
|
|
|
6593
6629
|
u((w) => ({ ...w, disabled: !1 }));
|
|
6594
6630
|
}
|
|
6595
6631
|
};
|
|
6596
|
-
return /* @__PURE__ */ c.jsxs("div", { className:
|
|
6632
|
+
return /* @__PURE__ */ c.jsxs("div", { className: H("rating", a), children: [
|
|
6597
6633
|
/* @__PURE__ */ c.jsx("span", { className: "label", children: f[p ? "success" : "text"] }),
|
|
6598
6634
|
/* @__PURE__ */ c.jsx("ol", { children: Array.from(new Array(t).keys()).map((v) => {
|
|
6599
6635
|
const w = v + 1;
|
|
6600
6636
|
return /* @__PURE__ */ c.jsx(
|
|
6601
6637
|
"li",
|
|
6602
6638
|
{
|
|
6603
|
-
className:
|
|
6639
|
+
className: H({ selected: p && w <= p }),
|
|
6604
6640
|
children: /* @__PURE__ */ c.jsx(
|
|
6605
6641
|
Be,
|
|
6606
6642
|
{
|
|
@@ -7788,7 +7824,7 @@ var Tu = Bt.createDraft.bind(Bt), Su = Bt.finishDraft.bind(Bt), Lg = {
|
|
|
7788
7824
|
affinity: r
|
|
7789
7825
|
} = e;
|
|
7790
7826
|
if (n != null) {
|
|
7791
|
-
var i =
|
|
7827
|
+
var i = V.transform(n, t, {
|
|
7792
7828
|
affinity: r
|
|
7793
7829
|
});
|
|
7794
7830
|
e.current = i, i == null && e.unref();
|
|
@@ -8039,7 +8075,7 @@ var Hg = (e, t, n) => {
|
|
|
8039
8075
|
if (s > a.children.length)
|
|
8040
8076
|
throw new Error('Cannot apply an "insert_node" operation at path ['.concat(r, "] because the destination is past the end of the node."));
|
|
8041
8077
|
if (a.children.splice(s, 0, i), t)
|
|
8042
|
-
for (var [o, l] of
|
|
8078
|
+
for (var [o, l] of V.points(t))
|
|
8043
8079
|
t[l] = ke.transform(o, n);
|
|
8044
8080
|
break;
|
|
8045
8081
|
}
|
|
@@ -8053,7 +8089,7 @@ var Hg = (e, t, n) => {
|
|
|
8053
8089
|
break;
|
|
8054
8090
|
var p = oe.leaf(e, u), m = p.text.slice(0, d), g = p.text.slice(d);
|
|
8055
8091
|
if (p.text = m + h + g, t)
|
|
8056
|
-
for (var [f, b] of
|
|
8092
|
+
for (var [f, b] of V.points(t))
|
|
8057
8093
|
t[b] = ke.transform(f, n);
|
|
8058
8094
|
break;
|
|
8059
8095
|
}
|
|
@@ -8068,7 +8104,7 @@ var Hg = (e, t, n) => {
|
|
|
8068
8104
|
else
|
|
8069
8105
|
throw new Error('Cannot apply a "merge_node" operation at path ['.concat(v, "] to nodes of different interfaces: ").concat(rt.stringify(w), " ").concat(rt.stringify(E)));
|
|
8070
8106
|
if (x.children.splice(A, 1), t)
|
|
8071
|
-
for (var [T, L] of
|
|
8107
|
+
for (var [T, L] of V.points(t))
|
|
8072
8108
|
t[L] = ke.transform(T, n);
|
|
8073
8109
|
break;
|
|
8074
8110
|
}
|
|
@@ -8083,7 +8119,7 @@ var Hg = (e, t, n) => {
|
|
|
8083
8119
|
F.children.splice(C, 1);
|
|
8084
8120
|
var S = O.transform(P, n), N = oe.get(e, O.parent(S)), q = S[S.length - 1];
|
|
8085
8121
|
if (N.children.splice(q, 0, M), t)
|
|
8086
|
-
for (var [U, Y] of
|
|
8122
|
+
for (var [U, Y] of V.points(t))
|
|
8087
8123
|
t[Y] = ke.transform(U, n);
|
|
8088
8124
|
break;
|
|
8089
8125
|
}
|
|
@@ -8092,7 +8128,7 @@ var Hg = (e, t, n) => {
|
|
|
8092
8128
|
path: ne
|
|
8093
8129
|
} = n, D = ne[ne.length - 1], $ = oe.parent(e, ne);
|
|
8094
8130
|
if ($.children.splice(D, 1), t)
|
|
8095
|
-
for (var [X, k] of
|
|
8131
|
+
for (var [X, k] of V.points(t)) {
|
|
8096
8132
|
var _ = ke.transform(X, n);
|
|
8097
8133
|
if (t != null && _ != null)
|
|
8098
8134
|
t[k] = _;
|
|
@@ -8121,7 +8157,7 @@ var Hg = (e, t, n) => {
|
|
|
8121
8157
|
break;
|
|
8122
8158
|
var ye = oe.leaf(e, ae), ve = ye.text.slice(0, me), Fe = ye.text.slice(me + G.length);
|
|
8123
8159
|
if (ye.text = ve + Fe, t)
|
|
8124
|
-
for (var [Te, Oe] of
|
|
8160
|
+
for (var [Te, Oe] of V.points(t))
|
|
8125
8161
|
t[Oe] = ke.transform(Te, n);
|
|
8126
8162
|
break;
|
|
8127
8163
|
}
|
|
@@ -8146,18 +8182,18 @@ var Hg = (e, t, n) => {
|
|
|
8146
8182
|
}
|
|
8147
8183
|
case "set_selection": {
|
|
8148
8184
|
var {
|
|
8149
|
-
newProperties:
|
|
8185
|
+
newProperties: K
|
|
8150
8186
|
} = n;
|
|
8151
|
-
if (
|
|
8152
|
-
t =
|
|
8187
|
+
if (K == null)
|
|
8188
|
+
t = K;
|
|
8153
8189
|
else {
|
|
8154
8190
|
if (t == null) {
|
|
8155
|
-
if (!
|
|
8156
|
-
throw new Error('Cannot apply an incomplete "set_selection" operation properties '.concat(rt.stringify(
|
|
8157
|
-
t = Er({},
|
|
8191
|
+
if (!V.isRange(K))
|
|
8192
|
+
throw new Error('Cannot apply an incomplete "set_selection" operation properties '.concat(rt.stringify(K), " when there is no current selection."));
|
|
8193
|
+
t = Er({}, K);
|
|
8158
8194
|
}
|
|
8159
|
-
for (var ee in
|
|
8160
|
-
var ce =
|
|
8195
|
+
for (var ee in K) {
|
|
8196
|
+
var ce = K[ee];
|
|
8161
8197
|
if (ce == null) {
|
|
8162
8198
|
if (ee === "anchor" || ee === "focus")
|
|
8163
8199
|
throw new Error('Cannot remove the "'.concat(ee, '" selection property'));
|
|
@@ -8189,7 +8225,7 @@ var Hg = (e, t, n) => {
|
|
|
8189
8225
|
});
|
|
8190
8226
|
}
|
|
8191
8227
|
if (ut.children.splice(Qt + 1, 0, Pt), t)
|
|
8192
|
-
for (var [vr, Qr] of
|
|
8228
|
+
for (var [vr, Qr] of V.points(t))
|
|
8193
8229
|
t[Qr] = ke.transform(vr, n);
|
|
8194
8230
|
break;
|
|
8195
8231
|
}
|
|
@@ -8316,7 +8352,7 @@ function Qg(e) {
|
|
|
8316
8352
|
}
|
|
8317
8353
|
return e;
|
|
8318
8354
|
}
|
|
8319
|
-
var
|
|
8355
|
+
var V = {
|
|
8320
8356
|
edges(e) {
|
|
8321
8357
|
var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, {
|
|
8322
8358
|
reverse: n = !1
|
|
@@ -8324,27 +8360,27 @@ var H = {
|
|
|
8324
8360
|
anchor: r,
|
|
8325
8361
|
focus: i
|
|
8326
8362
|
} = e;
|
|
8327
|
-
return
|
|
8363
|
+
return V.isBackward(e) === n ? [r, i] : [i, r];
|
|
8328
8364
|
},
|
|
8329
8365
|
end(e) {
|
|
8330
|
-
var [, t] =
|
|
8366
|
+
var [, t] = V.edges(e);
|
|
8331
8367
|
return t;
|
|
8332
8368
|
},
|
|
8333
8369
|
equals(e, t) {
|
|
8334
8370
|
return ke.equals(e.anchor, t.anchor) && ke.equals(e.focus, t.focus);
|
|
8335
8371
|
},
|
|
8336
8372
|
includes(e, t) {
|
|
8337
|
-
if (
|
|
8338
|
-
if (
|
|
8373
|
+
if (V.isRange(t)) {
|
|
8374
|
+
if (V.includes(e, t.anchor) || V.includes(e, t.focus))
|
|
8339
8375
|
return !0;
|
|
8340
|
-
var [n, r] =
|
|
8376
|
+
var [n, r] = V.edges(e), [i, a] = V.edges(t);
|
|
8341
8377
|
return ke.isBefore(n, i) && ke.isAfter(r, a);
|
|
8342
8378
|
}
|
|
8343
|
-
var [s, o] =
|
|
8379
|
+
var [s, o] = V.edges(e), l = !1, u = !1;
|
|
8344
8380
|
return ke.isPoint(t) ? (l = ke.compare(t, s) >= 0, u = ke.compare(t, o) <= 0) : (l = O.compare(t, s.path) >= 0, u = O.compare(t, o.path) <= 0), l && u;
|
|
8345
8381
|
},
|
|
8346
8382
|
intersection(e, t) {
|
|
8347
|
-
var n = sn(e, Gg), [r, i] =
|
|
8383
|
+
var n = sn(e, Gg), [r, i] = V.edges(e), [a, s] = V.edges(t), o = ke.isBefore(r, a) ? a : r, l = ke.isBefore(i, s) ? i : s;
|
|
8348
8384
|
return ke.isBefore(l, o) ? null : Qg({
|
|
8349
8385
|
anchor: o,
|
|
8350
8386
|
focus: l
|
|
@@ -8365,10 +8401,10 @@ var H = {
|
|
|
8365
8401
|
return ke.equals(t, n);
|
|
8366
8402
|
},
|
|
8367
8403
|
isExpanded(e) {
|
|
8368
|
-
return !
|
|
8404
|
+
return !V.isCollapsed(e);
|
|
8369
8405
|
},
|
|
8370
8406
|
isForward(e) {
|
|
8371
|
-
return !
|
|
8407
|
+
return !V.isBackward(e);
|
|
8372
8408
|
},
|
|
8373
8409
|
isRange(e) {
|
|
8374
8410
|
return st(e) && ke.isPoint(e.anchor) && ke.isPoint(e.focus);
|
|
@@ -8377,7 +8413,7 @@ var H = {
|
|
|
8377
8413
|
yield [e.anchor, "anchor"], yield [e.focus, "focus"];
|
|
8378
8414
|
},
|
|
8379
8415
|
start(e) {
|
|
8380
|
-
var [t] =
|
|
8416
|
+
var [t] = V.edges(e);
|
|
8381
8417
|
return t;
|
|
8382
8418
|
},
|
|
8383
8419
|
transform(e, t) {
|
|
@@ -8389,10 +8425,10 @@ var H = {
|
|
|
8389
8425
|
affinity: i = "inward"
|
|
8390
8426
|
} = n, a, s;
|
|
8391
8427
|
if (i === "inward") {
|
|
8392
|
-
var o =
|
|
8393
|
-
|
|
8428
|
+
var o = V.isCollapsed(r);
|
|
8429
|
+
V.isForward(r) ? (a = "forward", s = o ? a : "backward") : (a = "backward", s = o ? a : "forward");
|
|
8394
8430
|
} else
|
|
8395
|
-
i === "outward" ?
|
|
8431
|
+
i === "outward" ? V.isForward(r) ? (a = "backward", s = "forward") : (a = "forward", s = "backward") : (a = i, s = i);
|
|
8396
8432
|
var l = ke.transform(r.anchor, t, {
|
|
8397
8433
|
affinity: a
|
|
8398
8434
|
}), u = ke.transform(r.focus, t, {
|
|
@@ -8505,15 +8541,15 @@ var H = {
|
|
|
8505
8541
|
var n = fo({
|
|
8506
8542
|
children: e.children
|
|
8507
8543
|
}, (r) => {
|
|
8508
|
-
var [i, a] =
|
|
8544
|
+
var [i, a] = V.edges(t), s = oe.nodes(r, {
|
|
8509
8545
|
reverse: !0,
|
|
8510
8546
|
pass: (p) => {
|
|
8511
8547
|
var [, m] = p;
|
|
8512
|
-
return !
|
|
8548
|
+
return !V.includes(t, m);
|
|
8513
8549
|
}
|
|
8514
8550
|
});
|
|
8515
8551
|
for (var [, o] of s) {
|
|
8516
|
-
if (!
|
|
8552
|
+
if (!V.includes(t, o)) {
|
|
8517
8553
|
var l = oe.parent(r, o), u = o[o.length - 1];
|
|
8518
8554
|
l.children.splice(u, 1);
|
|
8519
8555
|
}
|
|
@@ -8680,7 +8716,7 @@ var pn = {
|
|
|
8680
8716
|
case "set_node":
|
|
8681
8717
|
return O.isPath(e.path) && st(e.properties) && st(e.newProperties);
|
|
8682
8718
|
case "set_selection":
|
|
8683
|
-
return e.properties === null &&
|
|
8719
|
+
return e.properties === null && V.isRange(e.newProperties) || e.newProperties === null && V.isRange(e.properties) || st(e.properties) && st(e.newProperties);
|
|
8684
8720
|
case "split_node":
|
|
8685
8721
|
return O.isPath(e.path) && typeof e.position == "number" && st(e.properties);
|
|
8686
8722
|
default:
|
|
@@ -8776,7 +8812,7 @@ var pn = {
|
|
|
8776
8812
|
return t;
|
|
8777
8813
|
if (!st(e))
|
|
8778
8814
|
return !1;
|
|
8779
|
-
var n = typeof e.addMark == "function" && typeof e.apply == "function" && typeof e.deleteFragment == "function" && typeof e.insertBreak == "function" && typeof e.insertSoftBreak == "function" && typeof e.insertFragment == "function" && typeof e.insertNode == "function" && typeof e.insertText == "function" && typeof e.isElementReadOnly == "function" && typeof e.isInline == "function" && typeof e.isSelectable == "function" && typeof e.isVoid == "function" && typeof e.normalizeNode == "function" && typeof e.onChange == "function" && typeof e.removeMark == "function" && typeof e.getDirtyPaths == "function" && (e.marks === null || st(e.marks)) && (e.selection === null ||
|
|
8815
|
+
var n = typeof e.addMark == "function" && typeof e.apply == "function" && typeof e.deleteFragment == "function" && typeof e.insertBreak == "function" && typeof e.insertSoftBreak == "function" && typeof e.insertFragment == "function" && typeof e.insertNode == "function" && typeof e.insertText == "function" && typeof e.isElementReadOnly == "function" && typeof e.isInline == "function" && typeof e.isSelectable == "function" && typeof e.isVoid == "function" && typeof e.normalizeNode == "function" && typeof e.onChange == "function" && typeof e.removeMark == "function" && typeof e.getDirtyPaths == "function" && (e.marks === null || st(e.marks)) && (e.selection === null || V.isRange(e.selection)) && oe.isNodeList(e.children) && pn.isOperationList(e.operations);
|
|
8780
8816
|
return Lu.set(e, n), n;
|
|
8781
8817
|
}, y = {
|
|
8782
8818
|
above(e, t) {
|
|
@@ -9113,7 +9149,7 @@ var pe = {
|
|
|
9113
9149
|
decorations(e, t) {
|
|
9114
9150
|
var n = [Xt({}, e)];
|
|
9115
9151
|
for (var r of t) {
|
|
9116
|
-
var i = sn(r, rv), [a, s] =
|
|
9152
|
+
var i = sn(r, rv), [a, s] = V.edges(r), o = [], l = 0, u = a.offset, d = s.offset;
|
|
9117
9153
|
for (var h of n) {
|
|
9118
9154
|
var {
|
|
9119
9155
|
length: p
|
|
@@ -9257,16 +9293,16 @@ var Ev = /(?:[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u2
|
|
|
9257
9293
|
} = n, {
|
|
9258
9294
|
at: i = ho(e)
|
|
9259
9295
|
} = n;
|
|
9260
|
-
if (O.isPath(i) && (i = y.range(e, i)),
|
|
9261
|
-
if (
|
|
9296
|
+
if (O.isPath(i) && (i = y.range(e, i)), V.isRange(i))
|
|
9297
|
+
if (V.isCollapsed(i))
|
|
9262
9298
|
i = i.anchor;
|
|
9263
9299
|
else {
|
|
9264
|
-
var a =
|
|
9300
|
+
var a = V.end(i);
|
|
9265
9301
|
if (!r && y.void(e, {
|
|
9266
9302
|
at: a
|
|
9267
9303
|
}))
|
|
9268
9304
|
return;
|
|
9269
|
-
var s =
|
|
9305
|
+
var s = V.start(i), o = y.pointRef(e, s), l = y.pointRef(e, a);
|
|
9270
9306
|
Q.delete(e, {
|
|
9271
9307
|
at: i,
|
|
9272
9308
|
voids: r
|
|
@@ -9510,7 +9546,7 @@ var Tv = (e, t) => {
|
|
|
9510
9546
|
reverse: l
|
|
9511
9547
|
}))
|
|
9512
9548
|
if (!pe.isText(u)) {
|
|
9513
|
-
if (
|
|
9549
|
+
if (V.isRange(a)) {
|
|
9514
9550
|
if (O.isAncestor(d, a.anchor.path) && O.isAncestor(d, a.focus.path))
|
|
9515
9551
|
return [u, d];
|
|
9516
9552
|
} else if (!O.equals(o, d))
|
|
@@ -9549,7 +9585,7 @@ var Mv = (e, t, n) => {
|
|
|
9549
9585
|
return !1;
|
|
9550
9586
|
var [m, g] = y.parent(e, p);
|
|
9551
9587
|
return !e.isVoid(m) || e.markableVoid(m);
|
|
9552
|
-
}, a =
|
|
9588
|
+
}, a = V.isExpanded(r), s = !1;
|
|
9553
9589
|
if (!a) {
|
|
9554
9590
|
var [o, l] = y.node(e, r);
|
|
9555
9591
|
if (o && i(o, l)) {
|
|
@@ -9655,7 +9691,7 @@ var Iv = function(t, n) {
|
|
|
9655
9691
|
var {
|
|
9656
9692
|
selection: n
|
|
9657
9693
|
} = e;
|
|
9658
|
-
n &&
|
|
9694
|
+
n && V.isCollapsed(n) && Q.delete(e, {
|
|
9659
9695
|
unit: t,
|
|
9660
9696
|
reverse: !0
|
|
9661
9697
|
});
|
|
@@ -9663,7 +9699,7 @@ var Iv = function(t, n) {
|
|
|
9663
9699
|
var {
|
|
9664
9700
|
selection: n
|
|
9665
9701
|
} = e;
|
|
9666
|
-
n &&
|
|
9702
|
+
n && V.isCollapsed(n) && Q.delete(e, {
|
|
9667
9703
|
unit: t
|
|
9668
9704
|
});
|
|
9669
9705
|
}, zv = function(t) {
|
|
@@ -9672,7 +9708,7 @@ var Iv = function(t, n) {
|
|
|
9672
9708
|
} = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, {
|
|
9673
9709
|
selection: r
|
|
9674
9710
|
} = t;
|
|
9675
|
-
r &&
|
|
9711
|
+
r && V.isExpanded(r) && Q.delete(t, {
|
|
9676
9712
|
reverse: n === "backward"
|
|
9677
9713
|
});
|
|
9678
9714
|
}, qv = (e, t) => [y.start(e, t), y.end(e, t)];
|
|
@@ -9846,7 +9882,7 @@ var f0 = ["text"], h0 = ["text"], m0 = function(t) {
|
|
|
9846
9882
|
} = r;
|
|
9847
9883
|
if (n)
|
|
9848
9884
|
return n;
|
|
9849
|
-
if (
|
|
9885
|
+
if (V.isExpanded(r)) {
|
|
9850
9886
|
var s = y.isEnd(t, i, i.path);
|
|
9851
9887
|
if (s) {
|
|
9852
9888
|
var o = y.after(t, i);
|
|
@@ -10054,7 +10090,7 @@ var b0 = function(t) {
|
|
|
10054
10090
|
n = o;
|
|
10055
10091
|
}
|
|
10056
10092
|
}
|
|
10057
|
-
return
|
|
10093
|
+
return V.isRange(n) && (a === "start" ? n = V.start(n) : a === "end" ? n = V.end(n) : n = O.common(n.anchor.path, n.focus.path)), ke.isPoint(n) && (n = n.path), i != null && (n = n.slice(0, i)), n;
|
|
10058
10094
|
}, C0 = function(t, n) {
|
|
10059
10095
|
var r = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, {
|
|
10060
10096
|
affinity: i = "forward"
|
|
@@ -10093,8 +10129,8 @@ var b0 = function(t) {
|
|
|
10093
10129
|
offset: i === "end" ? l.text.length : 0
|
|
10094
10130
|
};
|
|
10095
10131
|
}
|
|
10096
|
-
if (
|
|
10097
|
-
var [u, d] =
|
|
10132
|
+
if (V.isRange(n)) {
|
|
10133
|
+
var [u, d] = V.edges(n);
|
|
10098
10134
|
return i === "start" ? u : d;
|
|
10099
10135
|
}
|
|
10100
10136
|
return n;
|
|
@@ -10111,7 +10147,7 @@ function k0(e) {
|
|
|
10111
10147
|
} = t;
|
|
10112
10148
|
if (!n)
|
|
10113
10149
|
return;
|
|
10114
|
-
var o = y.range(e, n), [l, u] =
|
|
10150
|
+
var o = y.range(e, n), [l, u] = V.edges(o), d = i ? u : l, h = !1, p = "", m = 0, g = 0, f = 0;
|
|
10115
10151
|
for (var [b, v] of y.nodes(e, {
|
|
10116
10152
|
at: n,
|
|
10117
10153
|
reverse: i,
|
|
@@ -10212,7 +10248,7 @@ var F0 = function(t) {
|
|
|
10212
10248
|
var t = Pu.get(e);
|
|
10213
10249
|
return t || (t = /* @__PURE__ */ new Set(), Pu.set(e, t)), t;
|
|
10214
10250
|
}, T0 = (e, t, n) => {
|
|
10215
|
-
if (
|
|
10251
|
+
if (V.isRange(t) && !n)
|
|
10216
10252
|
return t;
|
|
10217
10253
|
var r = y.start(e, t), i = y.end(e, n || t);
|
|
10218
10254
|
return {
|
|
@@ -10251,7 +10287,7 @@ var j0 = (e, t) => {
|
|
|
10251
10287
|
return !1;
|
|
10252
10288
|
var [p, m] = y.parent(e, h);
|
|
10253
10289
|
return !e.isVoid(p) || e.markableVoid(p);
|
|
10254
|
-
}, i =
|
|
10290
|
+
}, i = V.isExpanded(n), a = !1;
|
|
10255
10291
|
if (!i) {
|
|
10256
10292
|
var [s, o] = y.node(e, n);
|
|
10257
10293
|
if (s && r(s, o)) {
|
|
@@ -10277,7 +10313,7 @@ var j0 = (e, t) => {
|
|
|
10277
10313
|
}), N0 = function(t, n) {
|
|
10278
10314
|
var r = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, {
|
|
10279
10315
|
voids: i = !1
|
|
10280
|
-
} = r, a = y.range(t, n), [s, o] =
|
|
10316
|
+
} = r, a = y.range(t, n), [s, o] = V.edges(a), l = "";
|
|
10281
10317
|
for (var [u, d] of y.nodes(t, {
|
|
10282
10318
|
at: a,
|
|
10283
10319
|
match: pe.isText,
|
|
@@ -10290,8 +10326,8 @@ var j0 = (e, t) => {
|
|
|
10290
10326
|
}, M0 = function(t, n) {
|
|
10291
10327
|
var r = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, {
|
|
10292
10328
|
voids: i = !1
|
|
10293
|
-
} = r, [a, s] =
|
|
10294
|
-
if (a.offset !== 0 || s.offset !== 0 ||
|
|
10329
|
+
} = r, [a, s] = V.edges(n);
|
|
10330
|
+
if (a.offset !== 0 || s.offset !== 0 || V.isCollapsed(n) || O.hasPrevious(s.path))
|
|
10295
10331
|
return n;
|
|
10296
10332
|
var o = y.above(t, {
|
|
10297
10333
|
at: s,
|
|
@@ -10346,7 +10382,7 @@ var j0 = (e, t) => {
|
|
|
10346
10382
|
} = n;
|
|
10347
10383
|
if (u) {
|
|
10348
10384
|
var h = !1;
|
|
10349
|
-
if (
|
|
10385
|
+
if (V.isRange(u) && V.isCollapsed(u) && (h = !0, u = u.anchor), ke.isPoint(u)) {
|
|
10350
10386
|
var p = y.void(t, {
|
|
10351
10387
|
at: u,
|
|
10352
10388
|
mode: "highest"
|
|
@@ -10372,14 +10408,14 @@ var j0 = (e, t) => {
|
|
|
10372
10408
|
});
|
|
10373
10409
|
return;
|
|
10374
10410
|
}
|
|
10375
|
-
if (!
|
|
10411
|
+
if (!V.isCollapsed(u)) {
|
|
10376
10412
|
if (!d) {
|
|
10377
|
-
var [, b] =
|
|
10413
|
+
var [, b] = V.edges(u), v = y.end(t, []);
|
|
10378
10414
|
ke.equals(b, v) || (u = y.unhangRange(t, u, {
|
|
10379
10415
|
voids: l
|
|
10380
10416
|
}));
|
|
10381
10417
|
}
|
|
10382
|
-
var [w, B] =
|
|
10418
|
+
var [w, B] = V.edges(u), E = y.above(t, {
|
|
10383
10419
|
match: (ve) => he.isElement(ve) && y.isBlock(t, ve),
|
|
10384
10420
|
at: w,
|
|
10385
10421
|
voids: l
|
|
@@ -10468,13 +10504,13 @@ var j0 = (e, t) => {
|
|
|
10468
10504
|
batchDirty: o = !0
|
|
10469
10505
|
} = r;
|
|
10470
10506
|
if (n.length) {
|
|
10471
|
-
if (
|
|
10507
|
+
if (V.isRange(s))
|
|
10472
10508
|
if (i || (s = y.unhangRange(t, s, {
|
|
10473
10509
|
voids: a
|
|
10474
|
-
})),
|
|
10510
|
+
})), V.isCollapsed(s))
|
|
10475
10511
|
s = s.anchor;
|
|
10476
10512
|
else {
|
|
10477
|
-
var [, l] =
|
|
10513
|
+
var [, l] = V.edges(s);
|
|
10478
10514
|
if (!a && y.void(t, {
|
|
10479
10515
|
at: l
|
|
10480
10516
|
}))
|
|
@@ -10584,10 +10620,10 @@ var j0 = (e, t) => {
|
|
|
10584
10620
|
else if (r === "focus")
|
|
10585
10621
|
Q.select(t, i.focus);
|
|
10586
10622
|
else if (r === "start") {
|
|
10587
|
-
var [a] =
|
|
10623
|
+
var [a] = V.edges(i);
|
|
10588
10624
|
Q.select(t, a);
|
|
10589
10625
|
} else if (r === "end") {
|
|
10590
|
-
var [, s] =
|
|
10626
|
+
var [, s] = V.edges(i);
|
|
10591
10627
|
Q.select(t, s);
|
|
10592
10628
|
}
|
|
10593
10629
|
} else
|
|
@@ -10612,7 +10648,7 @@ var j0 = (e, t) => {
|
|
|
10612
10648
|
edge: o = null
|
|
10613
10649
|
} = n;
|
|
10614
10650
|
if (r) {
|
|
10615
|
-
o === "start" && (o =
|
|
10651
|
+
o === "start" && (o = V.isBackward(r) ? "focus" : "anchor"), o === "end" && (o = V.isBackward(r) ? "anchor" : "focus");
|
|
10616
10652
|
var {
|
|
10617
10653
|
anchor: l,
|
|
10618
10654
|
focus: u
|
|
@@ -10639,7 +10675,7 @@ var j0 = (e, t) => {
|
|
|
10639
10675
|
Q.setSelection(e, t);
|
|
10640
10676
|
return;
|
|
10641
10677
|
}
|
|
10642
|
-
if (!
|
|
10678
|
+
if (!V.isRange(t))
|
|
10643
10679
|
throw new Error("When setting the selection and the current selection is `null` you must provide at least an `anchor` and `focus`, but you passed: ".concat(rt.stringify(t)));
|
|
10644
10680
|
e.apply({
|
|
10645
10681
|
type: "set_selection",
|
|
@@ -10675,7 +10711,7 @@ var U0 = function(t, n) {
|
|
|
10675
10711
|
edge: a = "both"
|
|
10676
10712
|
} = r;
|
|
10677
10713
|
if (i) {
|
|
10678
|
-
a === "start" && (a =
|
|
10714
|
+
a === "start" && (a = V.isBackward(i) ? "focus" : "anchor"), a === "end" && (a = V.isBackward(i) ? "anchor" : "focus");
|
|
10679
10715
|
var {
|
|
10680
10716
|
anchor: s,
|
|
10681
10717
|
focus: o
|
|
@@ -10712,13 +10748,13 @@ var U0 = function(t, n) {
|
|
|
10712
10748
|
} = r;
|
|
10713
10749
|
if (oe.isNode(n) && (n = [n]), n.length !== 0) {
|
|
10714
10750
|
var [h] = n;
|
|
10715
|
-
if (l || (l = ho(t), d !== !1 && (d = !0)), d == null && (d = !1),
|
|
10751
|
+
if (l || (l = ho(t), d !== !1 && (d = !0)), d == null && (d = !1), V.isRange(l))
|
|
10716
10752
|
if (i || (l = y.unhangRange(t, l, {
|
|
10717
10753
|
voids: a
|
|
10718
|
-
})),
|
|
10754
|
+
})), V.isCollapsed(l))
|
|
10719
10755
|
l = l.anchor;
|
|
10720
10756
|
else {
|
|
10721
|
-
var [, p] =
|
|
10757
|
+
var [, p] = V.edges(l), m = y.pointRef(t, p);
|
|
10722
10758
|
Q.delete(t, {
|
|
10723
10759
|
at: l
|
|
10724
10760
|
}), l = m.unref();
|
|
@@ -10879,13 +10915,13 @@ var U0 = function(t, n) {
|
|
|
10879
10915
|
r = (z) => l.children.includes(z);
|
|
10880
10916
|
} else
|
|
10881
10917
|
r = (z) => he.isElement(z) && y.isBlock(t, z);
|
|
10882
|
-
if (!a &&
|
|
10918
|
+
if (!a && V.isRange(i) && (i = y.unhangRange(t, i, {
|
|
10883
10919
|
voids: s
|
|
10884
|
-
})),
|
|
10885
|
-
if (
|
|
10920
|
+
})), V.isRange(i))
|
|
10921
|
+
if (V.isCollapsed(i))
|
|
10886
10922
|
i = i.anchor;
|
|
10887
10923
|
else {
|
|
10888
|
-
var [, u] =
|
|
10924
|
+
var [, u] = V.edges(i), d = y.pointRef(t, u);
|
|
10889
10925
|
Q.delete(t, {
|
|
10890
10926
|
at: i
|
|
10891
10927
|
}), i = d.unref(), n.at == null && Q.select(t, i);
|
|
@@ -10986,7 +11022,7 @@ var U0 = function(t, n) {
|
|
|
10986
11022
|
match: o
|
|
10987
11023
|
} = n;
|
|
10988
11024
|
if (s) {
|
|
10989
|
-
o == null && (o = O.isPath(s) ? gr(t, s) : (m) => he.isElement(m) && y.isBlock(t, m)), !r &&
|
|
11025
|
+
o == null && (o = O.isPath(s) ? gr(t, s) : (m) => he.isElement(m) && y.isBlock(t, m)), !r && V.isRange(s) && (s = y.unhangRange(t, s, {
|
|
10990
11026
|
voids: i
|
|
10991
11027
|
}));
|
|
10992
11028
|
var l = y.nodes(t, {
|
|
@@ -11026,14 +11062,14 @@ var U0 = function(t, n) {
|
|
|
11026
11062
|
voids: h = !1
|
|
11027
11063
|
} = r;
|
|
11028
11064
|
if (a) {
|
|
11029
|
-
if (i == null && (i = O.isPath(a) ? gr(t, a) : (L) => he.isElement(L) && y.isBlock(t, L)), !l &&
|
|
11065
|
+
if (i == null && (i = O.isPath(a) ? gr(t, a) : (L) => he.isElement(L) && y.isBlock(t, L)), !l && V.isRange(a) && (a = y.unhangRange(t, a, {
|
|
11030
11066
|
voids: h
|
|
11031
|
-
})), d &&
|
|
11032
|
-
if (
|
|
11067
|
+
})), d && V.isRange(a)) {
|
|
11068
|
+
if (V.isCollapsed(a) && y.leaf(t, a.anchor)[0].text.length > 0)
|
|
11033
11069
|
return;
|
|
11034
11070
|
var p = y.rangeRef(t, a, {
|
|
11035
11071
|
affinity: "inward"
|
|
11036
|
-
}), [m, g] =
|
|
11072
|
+
}), [m, g] = V.edges(a), f = u === "lowest" ? "lowest" : "highest", b = y.isEnd(t, g, g.path);
|
|
11037
11073
|
Q.splitNodes(t, {
|
|
11038
11074
|
at: g,
|
|
11039
11075
|
match: i,
|
|
@@ -11073,9 +11109,9 @@ var U0 = function(t, n) {
|
|
|
11073
11109
|
}
|
|
11074
11110
|
});
|
|
11075
11111
|
}, eb = (e, t) => {
|
|
11076
|
-
if (
|
|
11112
|
+
if (V.isCollapsed(t))
|
|
11077
11113
|
return t.anchor;
|
|
11078
|
-
var [, n] =
|
|
11114
|
+
var [, n] = V.edges(t), r = y.pointRef(e, n);
|
|
11079
11115
|
return Q.delete(e, {
|
|
11080
11116
|
at: t
|
|
11081
11117
|
}), r.unref();
|
|
@@ -11091,7 +11127,7 @@ var U0 = function(t, n) {
|
|
|
11091
11127
|
height: o = 0,
|
|
11092
11128
|
always: l = !1
|
|
11093
11129
|
} = n;
|
|
11094
|
-
if (a == null && (a = (ne) => he.isElement(ne) && y.isBlock(t, ne)),
|
|
11130
|
+
if (a == null && (a = (ne) => he.isElement(ne) && y.isBlock(t, ne)), V.isRange(s) && (s = eb(t, s)), O.isPath(s)) {
|
|
11095
11131
|
var u = s, d = y.point(t, u), [h] = y.parent(t, u);
|
|
11096
11132
|
a = (ne) => ne === h, o = d.path.length - u.length + 1, s = d, l = !0;
|
|
11097
11133
|
}
|
|
@@ -11183,7 +11219,7 @@ var U0 = function(t, n) {
|
|
|
11183
11219
|
} = n;
|
|
11184
11220
|
if (s) {
|
|
11185
11221
|
o == null && (o = O.isPath(s) ? gr(t, s) : (m) => he.isElement(m) && y.isBlock(t, m)), O.isPath(s) && (s = y.range(t, s));
|
|
11186
|
-
var l =
|
|
11222
|
+
var l = V.isRange(s) ? y.rangeRef(t, s) : null, u = y.nodes(t, {
|
|
11187
11223
|
at: s,
|
|
11188
11224
|
match: o,
|
|
11189
11225
|
mode: r,
|
|
@@ -11199,7 +11235,7 @@ var U0 = function(t, n) {
|
|
|
11199
11235
|
// that wrap target node. So we reverse the order.
|
|
11200
11236
|
).reverse(), h = function() {
|
|
11201
11237
|
var g = p.unref(), [f] = y.node(t, g), b = y.range(t, g);
|
|
11202
|
-
i && l && (b =
|
|
11238
|
+
i && l && (b = V.intersection(l.current, b)), Q.liftNodes(t, {
|
|
11203
11239
|
at: b,
|
|
11204
11240
|
match: (v) => he.isAncestor(f) && f.children.includes(v),
|
|
11205
11241
|
voids: a
|
|
@@ -11244,8 +11280,8 @@ var ib = function(t, n) {
|
|
|
11244
11280
|
at: l = t.selection
|
|
11245
11281
|
} = r;
|
|
11246
11282
|
if (l) {
|
|
11247
|
-
if (o == null && (O.isPath(l) ? o = gr(t, l) : t.isInline(n) ? o = (b) => he.isElement(b) && y.isInline(t, b) || pe.isText(b) : o = (b) => he.isElement(b) && y.isBlock(t, b)), a &&
|
|
11248
|
-
var [u, d] =
|
|
11283
|
+
if (o == null && (O.isPath(l) ? o = gr(t, l) : t.isInline(n) ? o = (b) => he.isElement(b) && y.isInline(t, b) || pe.isText(b) : o = (b) => he.isElement(b) && y.isBlock(t, b)), a && V.isRange(l)) {
|
|
11284
|
+
var [u, d] = V.edges(l), h = y.rangeRef(t, l, {
|
|
11249
11285
|
affinity: "inward"
|
|
11250
11286
|
});
|
|
11251
11287
|
Q.splitNodes(t, {
|
|
@@ -11264,7 +11300,7 @@ var ib = function(t, n) {
|
|
|
11264
11300
|
mode: "lowest",
|
|
11265
11301
|
voids: s
|
|
11266
11302
|
})), m = function() {
|
|
11267
|
-
var v =
|
|
11303
|
+
var v = V.isRange(l) ? V.intersection(l, y.range(t, f)) : l;
|
|
11268
11304
|
if (!v)
|
|
11269
11305
|
return 0;
|
|
11270
11306
|
var w = Array.from(y.nodes(t, {
|
|
@@ -12784,7 +12820,7 @@ var te = {
|
|
|
12784
12820
|
var {
|
|
12785
12821
|
anchor: n,
|
|
12786
12822
|
focus: r
|
|
12787
|
-
} = t, i =
|
|
12823
|
+
} = t, i = V.isBackward(t), a = te.toDOMPoint(e, n), s = V.isCollapsed(t) ? a : te.toDOMPoint(e, r), o = te.getWindow(e), l = o.document.createRange(), [u, d] = i ? s : a, [h, p] = i ? a : s, m = jt(u) ? u : u.parentElement, g = !!m.getAttribute("data-slate-zero-width"), f = jt(h) ? h : h.parentElement, b = !!f.getAttribute("data-slate-zero-width");
|
|
12788
12824
|
return l.setStart(u, g ? 1 : d), l.setEnd(h, b ? 1 : p), l;
|
|
12789
12825
|
},
|
|
12790
12826
|
toSlateNode: (e, t) => {
|
|
@@ -12914,7 +12950,7 @@ var te = {
|
|
|
12914
12950
|
anchor: B,
|
|
12915
12951
|
focus: E
|
|
12916
12952
|
};
|
|
12917
|
-
return
|
|
12953
|
+
return V.isExpanded(x) && V.isForward(x) && jt(u) && y.void(e, {
|
|
12918
12954
|
at: x.focus,
|
|
12919
12955
|
mode: "highest"
|
|
12920
12956
|
}) && (x = y.unhangRange(e, x, {
|
|
@@ -13027,7 +13063,7 @@ function Bl(e, t) {
|
|
|
13027
13063
|
var n = $s(e, t.anchor);
|
|
13028
13064
|
if (!n)
|
|
13029
13065
|
return null;
|
|
13030
|
-
if (
|
|
13066
|
+
if (V.isCollapsed(t))
|
|
13031
13067
|
return {
|
|
13032
13068
|
anchor: n,
|
|
13033
13069
|
focus: n
|
|
@@ -13079,7 +13115,7 @@ function Al(e, t, n) {
|
|
|
13079
13115
|
var r = Ls(e, t.anchor, n);
|
|
13080
13116
|
if (!r)
|
|
13081
13117
|
return null;
|
|
13082
|
-
if (
|
|
13118
|
+
if (V.isCollapsed(t))
|
|
13083
13119
|
return {
|
|
13084
13120
|
anchor: r,
|
|
13085
13121
|
focus: r
|
|
@@ -13215,7 +13251,7 @@ function C1(e) {
|
|
|
13215
13251
|
var {
|
|
13216
13252
|
selection: C
|
|
13217
13253
|
} = t, S = Bl(t, F);
|
|
13218
|
-
S && (!C || !
|
|
13254
|
+
S && (!C || !V.equals(S, C)) && Q.select(t, S);
|
|
13219
13255
|
}
|
|
13220
13256
|
}, h = () => {
|
|
13221
13257
|
var F = fn.get(t);
|
|
@@ -13225,7 +13261,7 @@ function C1(e) {
|
|
|
13225
13261
|
if (!C)
|
|
13226
13262
|
return;
|
|
13227
13263
|
var S = y.range(t, C);
|
|
13228
|
-
(!t.selection || !
|
|
13264
|
+
(!t.selection || !V.equals(t.selection, S)) && Q.select(t, C);
|
|
13229
13265
|
}
|
|
13230
13266
|
F.run();
|
|
13231
13267
|
}
|
|
@@ -13243,7 +13279,7 @@ function C1(e) {
|
|
|
13243
13279
|
var N, q, U = Rt.get(t);
|
|
13244
13280
|
U !== void 0 && (Rt.delete(t), t.marks = U), U && u === !1 && (u = null);
|
|
13245
13281
|
var Y = v1(S);
|
|
13246
|
-
(!t.selection || !
|
|
13282
|
+
(!t.selection || !V.equals(t.selection, Y)) && Q.select(t, Y), S.diff.text ? y.insertText(t, S.diff.text) : y.deleteFragment(t), Dt.set(t, (q = Dt.get(t)) === null || q === void 0 ? void 0 : q.filter(($) => {
|
|
13247
13283
|
var {
|
|
13248
13284
|
id: X
|
|
13249
13285
|
} = $;
|
|
@@ -13251,7 +13287,7 @@ function C1(e) {
|
|
|
13251
13287
|
})), h1(t, S) || (C = !1, fn.delete(t), tn.delete(t), i = "action", hn.delete(t), n.cancel(), r.cancel(), F == null || F.unref());
|
|
13252
13288
|
}
|
|
13253
13289
|
var ne = F == null ? void 0 : F.unref();
|
|
13254
|
-
if (ne && !hn.get(t) && (!t.selection || !
|
|
13290
|
+
if (ne && !hn.get(t) && (!t.selection || !V.equals(ne, t.selection)) && Q.select(t, ne), B()) {
|
|
13255
13291
|
h();
|
|
13256
13292
|
return;
|
|
13257
13293
|
}
|
|
@@ -13321,8 +13357,8 @@ function C1(e) {
|
|
|
13321
13357
|
})), N = (C = N) !== null && C !== void 0 ? C : t.selection, !!N) {
|
|
13322
13358
|
var D = !0;
|
|
13323
13359
|
if (S.startsWith("delete")) {
|
|
13324
|
-
if (
|
|
13325
|
-
var [$, X] =
|
|
13360
|
+
if (V.isExpanded(N)) {
|
|
13361
|
+
var [$, X] = V.edges(N), k = oe.leaf(t, $.path);
|
|
13326
13362
|
if (k.text.length === $.offset && X.offset === 0) {
|
|
13327
13363
|
var _ = y.next(t, {
|
|
13328
13364
|
at: $.path,
|
|
@@ -13334,12 +13370,12 @@ function C1(e) {
|
|
|
13334
13370
|
});
|
|
13335
13371
|
}
|
|
13336
13372
|
}
|
|
13337
|
-
var I = S.endsWith("Backward") ? "backward" : "forward", [R, W] =
|
|
13373
|
+
var I = S.endsWith("Backward") ? "backward" : "forward", [R, W] = V.edges(N), [re, J] = y.leaf(t, R.path), ae = {
|
|
13338
13374
|
text: "",
|
|
13339
13375
|
start: R.offset,
|
|
13340
13376
|
end: W.offset
|
|
13341
13377
|
}, me = Dt.get(t), G = me == null ? void 0 : me.find((ge) => O.equals(ge.path, J)), ye = G ? [G.diff, ae] : [ae], ve = df(re.text, ...ye);
|
|
13342
|
-
if (ve.length === 0 && (D = !1),
|
|
13378
|
+
if (ve.length === 0 && (D = !1), V.isExpanded(N)) {
|
|
13343
13379
|
if (D && O.equals(N.anchor.path, N.focus.path)) {
|
|
13344
13380
|
var Fe = {
|
|
13345
13381
|
path: N.anchor.path,
|
|
@@ -13370,7 +13406,7 @@ function C1(e) {
|
|
|
13370
13406
|
var {
|
|
13371
13407
|
anchor: Oe
|
|
13372
13408
|
} = N;
|
|
13373
|
-
if (D &&
|
|
13409
|
+
if (D && V.isCollapsed(N)) {
|
|
13374
13410
|
var Ge = oe.leaf(t, Oe.path);
|
|
13375
13411
|
if (Oe.offset < Ge.text.length)
|
|
13376
13412
|
return b(Oe.path, {
|
|
@@ -13387,7 +13423,7 @@ function C1(e) {
|
|
|
13387
13423
|
var Ke, {
|
|
13388
13424
|
anchor: Se
|
|
13389
13425
|
} = N, Pe = Is(U) ? U.isCollapsed : !!((Ke = U) !== null && Ke !== void 0 && Ke.collapsed);
|
|
13390
|
-
return D && Pe &&
|
|
13426
|
+
return D && Pe && V.isCollapsed(N) && Se.offset > 0 ? b(Se.path, {
|
|
13391
13427
|
text: "",
|
|
13392
13428
|
start: Se.offset - 1,
|
|
13393
13429
|
end: Se.offset
|
|
@@ -13474,20 +13510,20 @@ function C1(e) {
|
|
|
13474
13510
|
at: N
|
|
13475
13511
|
});
|
|
13476
13512
|
if (O.equals(N.anchor.path, N.focus.path)) {
|
|
13477
|
-
var [We, Ve] =
|
|
13513
|
+
var [We, Ve] = V.edges(N), K = {
|
|
13478
13514
|
start: We.offset,
|
|
13479
13515
|
end: Ve.offset,
|
|
13480
13516
|
text: we
|
|
13481
13517
|
};
|
|
13482
13518
|
if (we && u && S === "insertCompositionText") {
|
|
13483
|
-
var ee = u.start + u.text.search(/\S|$/), ce =
|
|
13484
|
-
ce === ee + 1 &&
|
|
13519
|
+
var ee = u.start + u.text.search(/\S|$/), ce = K.start + K.text.search(/\S|$/);
|
|
13520
|
+
ce === ee + 1 && K.end === u.start + u.text.length ? (K.start -= 1, u = null, z()) : u = !1;
|
|
13485
13521
|
} else
|
|
13486
|
-
S === "insertText" ? u === null ? u =
|
|
13522
|
+
S === "insertText" ? u === null ? u = K : u && V.isCollapsed(N) && u.end + u.text.length === We.offset ? u = pi(pi({}, u), {}, {
|
|
13487
13523
|
text: u.text + we
|
|
13488
13524
|
}) : u = !1 : u = !1;
|
|
13489
13525
|
if (D) {
|
|
13490
|
-
b(We.path,
|
|
13526
|
+
b(We.path, K);
|
|
13491
13527
|
return;
|
|
13492
13528
|
}
|
|
13493
13529
|
}
|
|
@@ -13598,7 +13634,7 @@ var B1 = {
|
|
|
13598
13634
|
return !1;
|
|
13599
13635
|
for (var n = 0; n < e.length; n++) {
|
|
13600
13636
|
var r = e[n], i = t[n];
|
|
13601
|
-
if (!
|
|
13637
|
+
if (!V.equals(r, i) || !hf(r, i))
|
|
13602
13638
|
return !1;
|
|
13603
13639
|
}
|
|
13604
13640
|
return !0;
|
|
@@ -13877,7 +13913,7 @@ var U1 = (e) => {
|
|
|
13877
13913
|
children: p,
|
|
13878
13914
|
element: n
|
|
13879
13915
|
});
|
|
13880
|
-
}, H1 = /* @__PURE__ */ ie.memo(U1, (e, t) => e.element === t.element && e.renderElement === t.renderElement && e.renderLeaf === t.renderLeaf && e.renderPlaceholder === t.renderPlaceholder && O1(e.decorations, t.decorations) && (e.selection === t.selection || !!e.selection && !!t.selection &&
|
|
13916
|
+
}, H1 = /* @__PURE__ */ ie.memo(U1, (e, t) => e.element === t.element && e.renderElement === t.renderElement && e.renderLeaf === t.renderLeaf && e.renderPlaceholder === t.renderPlaceholder && O1(e.decorations, t.decorations) && (e.selection === t.selection || !!e.selection && !!t.selection && V.equals(e.selection, t.selection))), V1 = (e) => {
|
|
13881
13917
|
var {
|
|
13882
13918
|
attributes: t,
|
|
13883
13919
|
children: n,
|
|
@@ -13897,9 +13933,9 @@ var U1 = (e) => {
|
|
|
13897
13933
|
renderLeaf: a,
|
|
13898
13934
|
selection: s
|
|
13899
13935
|
} = e, o = K1(), l = xn(), u = te.findPath(l, n), d = [], h = he.isElement(n) && !l.isInline(n) && y.hasInlines(l, n), p = 0; p < n.children.length; p++) {
|
|
13900
|
-
var m = u.concat(p), g = n.children[p], f = te.findKey(l, g), b = y.range(l, m), v = s &&
|
|
13936
|
+
var m = u.concat(p), g = n.children[p], f = te.findKey(l, g), b = y.range(l, m), v = s && V.intersection(b, s), w = o([g, m]);
|
|
13901
13937
|
for (var B of t) {
|
|
13902
|
-
var E =
|
|
13938
|
+
var E = V.intersection(B, b);
|
|
13903
13939
|
E && w.push(E);
|
|
13904
13940
|
}
|
|
13905
13941
|
he.isElement(g) ? d.push(/* @__PURE__ */ ie.createElement(Z1.Provider, {
|
|
@@ -14183,7 +14219,7 @@ var sD = (e) => /* @__PURE__ */ ie.createElement(ie.Fragment, null, vf(e)), oD =
|
|
|
14183
14219
|
// (e.g. when clicking on contentEditable:false element)
|
|
14184
14220
|
suppressThrow: !0
|
|
14185
14221
|
});
|
|
14186
|
-
if (we &&
|
|
14222
|
+
if (we && V.equals(we, W)) {
|
|
14187
14223
|
var We;
|
|
14188
14224
|
if (!P.hasMarkPlaceholder || (We = Oe) !== null && We !== void 0 && (We = We.parentElement) !== null && We !== void 0 && We.hasAttribute("data-slate-mark-placeholder"))
|
|
14189
14225
|
return;
|
|
@@ -14198,7 +14234,7 @@ var sD = (e) => /* @__PURE__ */ ie.createElement(ie.Fragment, null, vf(e)), oD =
|
|
|
14198
14234
|
}
|
|
14199
14235
|
P.isUpdatingSelection = !0;
|
|
14200
14236
|
var Ve = W && te.toDOMRange(f, W);
|
|
14201
|
-
return Ve ? (te.isComposing(f) && !pt ? J.collapseToEnd() :
|
|
14237
|
+
return Ve ? (te.isComposing(f) && !pt ? J.collapseToEnd() : V.isBackward(W) ? J.setBaseAndExtent(Ve.endContainer, Ve.endOffset, Ve.startContainer, Ve.startOffset) : J.setBaseAndExtent(Ve.startContainer, Ve.startOffset, Ve.endContainer, Ve.endOffset), d(f, Ve)) : J.removeAllRanges(), Ve;
|
|
14202
14238
|
}
|
|
14203
14239
|
};
|
|
14204
14240
|
J.rangeCount <= 1 && ae();
|
|
@@ -14242,7 +14278,7 @@ var sD = (e) => /* @__PURE__ */ ie.createElement(ie.Fragment, null, vf(e)), oD =
|
|
|
14242
14278
|
if (J && te.isComposing(f))
|
|
14243
14279
|
return;
|
|
14244
14280
|
var ae = !1;
|
|
14245
|
-
if (W === "insertText" && R &&
|
|
14281
|
+
if (W === "insertText" && R && V.isCollapsed(R) && // Only use native character insertion for single characters a-z or space for now.
|
|
14246
14282
|
// Long-press events (hold a + press 4 = ä) to choose a special character otherwise
|
|
14247
14283
|
// causes duplicate inserts.
|
|
14248
14284
|
_.data && _.data.length === 1 && /[a-z ]/i.test(_.data) && // Chrome has issues correctly editing the start of nodes: https://bugs.chromium.org/p/chromium/issues/detail?id=1249405
|
|
@@ -14273,7 +14309,7 @@ var sD = (e) => /* @__PURE__ */ ie.createElement(ie.Fragment, null, vf(e)), oD =
|
|
|
14273
14309
|
exactMatch: !1,
|
|
14274
14310
|
suppressThrow: !1
|
|
14275
14311
|
});
|
|
14276
|
-
if (!R || !
|
|
14312
|
+
if (!R || !V.equals(R, we)) {
|
|
14277
14313
|
ae = !1;
|
|
14278
14314
|
var We = !J && f.selection && y.rangeRef(f, f.selection);
|
|
14279
14315
|
Q.select(f, we), We && Or.set(f, We);
|
|
@@ -14282,7 +14318,7 @@ var sD = (e) => /* @__PURE__ */ ie.createElement(ie.Fragment, null, vf(e)), oD =
|
|
|
14282
14318
|
}
|
|
14283
14319
|
if (J)
|
|
14284
14320
|
return;
|
|
14285
|
-
if (ae || _.preventDefault(), R &&
|
|
14321
|
+
if (ae || _.preventDefault(), R && V.isExpanded(R) && W.startsWith("delete")) {
|
|
14286
14322
|
var Ve = W.endsWith("Backward") ? "backward" : "forward";
|
|
14287
14323
|
y.deleteFragment(f, {
|
|
14288
14324
|
direction: Ve
|
|
@@ -14366,8 +14402,8 @@ var sD = (e) => /* @__PURE__ */ ie.createElement(ie.Fragment, null, vf(e)), oD =
|
|
|
14366
14402
|
break;
|
|
14367
14403
|
}
|
|
14368
14404
|
}
|
|
14369
|
-
var
|
|
14370
|
-
Or.delete(f),
|
|
14405
|
+
var K = (I = Or.get(f)) === null || I === void 0 ? void 0 : I.unref();
|
|
14406
|
+
Or.delete(f), K && (!f.selection || !V.equals(f.selection, K)) && Q.select(f, K);
|
|
14371
14407
|
}
|
|
14372
14408
|
}, [f, M, A, i, s, F]), S = Re((_) => {
|
|
14373
14409
|
_ == null ? (M.cancel(), F.cancel(), Bi.delete(f), Tn.delete(f), w.current && cn && w.current.removeEventListener("beforeinput", C)) : cn && _.addEventListener("beforeinput", C), w.current = _;
|
|
@@ -14398,7 +14434,7 @@ var sD = (e) => /* @__PURE__ */ ie.createElement(ie.Fragment, null, vf(e)), oD =
|
|
|
14398
14434
|
var {
|
|
14399
14435
|
marks: ne
|
|
14400
14436
|
} = f;
|
|
14401
|
-
if (P.hasMarkPlaceholder = !1, f.selection &&
|
|
14437
|
+
if (P.hasMarkPlaceholder = !1, f.selection && V.isCollapsed(f.selection) && ne) {
|
|
14402
14438
|
var {
|
|
14403
14439
|
anchor: D
|
|
14404
14440
|
} = f.selection, $ = oe.leaf(f, D.path), X = lr($, aD);
|
|
@@ -14569,7 +14605,7 @@ var sD = (e) => /* @__PURE__ */ ie.createElement(ie.Fragment, null, vf(e)), oD =
|
|
|
14569
14605
|
var {
|
|
14570
14606
|
selection: R
|
|
14571
14607
|
} = f;
|
|
14572
|
-
if (R &&
|
|
14608
|
+
if (R && V.isExpanded(R)) {
|
|
14573
14609
|
y.deleteFragment(f);
|
|
14574
14610
|
return;
|
|
14575
14611
|
}
|
|
@@ -14585,7 +14621,7 @@ var sD = (e) => /* @__PURE__ */ ie.createElement(ie.Fragment, null, vf(e)), oD =
|
|
|
14585
14621
|
selection: I
|
|
14586
14622
|
} = f;
|
|
14587
14623
|
if (I)
|
|
14588
|
-
if (
|
|
14624
|
+
if (V.isExpanded(I))
|
|
14589
14625
|
y.deleteFragment(f);
|
|
14590
14626
|
else {
|
|
14591
14627
|
var R = oe.parent(f, I.anchor.path);
|
|
@@ -14616,7 +14652,7 @@ var sD = (e) => /* @__PURE__ */ ie.createElement(ie.Fragment, null, vf(e)), oD =
|
|
|
14616
14652
|
if (!s && te.hasTarget(f, _.target) && !ht(_, g.onDrop)) {
|
|
14617
14653
|
_.preventDefault();
|
|
14618
14654
|
var I = f.selection, R = te.findEventRange(f, _), W = _.dataTransfer;
|
|
14619
|
-
Q.select(f, R), P.isDraggingInternally && I && !
|
|
14655
|
+
Q.select(f, R), P.isDraggingInternally && I && !V.equals(I, R) && !y.void(f, {
|
|
14620
14656
|
at: R,
|
|
14621
14657
|
voids: !0
|
|
14622
14658
|
}) && Q.delete(f, {
|
|
@@ -14691,7 +14727,7 @@ var sD = (e) => /* @__PURE__ */ ie.createElement(ie.Fragment, null, vf(e)), oD =
|
|
|
14691
14727
|
return;
|
|
14692
14728
|
}
|
|
14693
14729
|
if (Qe.isMoveBackward(R)) {
|
|
14694
|
-
_.preventDefault(), W &&
|
|
14730
|
+
_.preventDefault(), W && V.isCollapsed(W) ? Q.move(f, {
|
|
14695
14731
|
reverse: !J
|
|
14696
14732
|
}) : Q.collapse(f, {
|
|
14697
14733
|
edge: J ? "end" : "start"
|
|
@@ -14699,7 +14735,7 @@ var sD = (e) => /* @__PURE__ */ ie.createElement(ie.Fragment, null, vf(e)), oD =
|
|
|
14699
14735
|
return;
|
|
14700
14736
|
}
|
|
14701
14737
|
if (Qe.isMoveForward(R)) {
|
|
14702
|
-
_.preventDefault(), W &&
|
|
14738
|
+
_.preventDefault(), W && V.isCollapsed(W) ? Q.move(f, {
|
|
14703
14739
|
reverse: J
|
|
14704
14740
|
}) : Q.collapse(f, {
|
|
14705
14741
|
edge: J ? "start" : "end"
|
|
@@ -14707,7 +14743,7 @@ var sD = (e) => /* @__PURE__ */ ie.createElement(ie.Fragment, null, vf(e)), oD =
|
|
|
14707
14743
|
return;
|
|
14708
14744
|
}
|
|
14709
14745
|
if (Qe.isMoveWordBackward(R)) {
|
|
14710
|
-
_.preventDefault(), W &&
|
|
14746
|
+
_.preventDefault(), W && V.isExpanded(W) && Q.collapse(f, {
|
|
14711
14747
|
edge: "focus"
|
|
14712
14748
|
}), Q.move(f, {
|
|
14713
14749
|
unit: "word",
|
|
@@ -14716,7 +14752,7 @@ var sD = (e) => /* @__PURE__ */ ie.createElement(ie.Fragment, null, vf(e)), oD =
|
|
|
14716
14752
|
return;
|
|
14717
14753
|
}
|
|
14718
14754
|
if (Qe.isMoveWordForward(R)) {
|
|
14719
|
-
_.preventDefault(), W &&
|
|
14755
|
+
_.preventDefault(), W && V.isExpanded(W) && Q.collapse(f, {
|
|
14720
14756
|
edge: "focus"
|
|
14721
14757
|
}), Q.move(f, {
|
|
14722
14758
|
unit: "word",
|
|
@@ -14725,7 +14761,7 @@ var sD = (e) => /* @__PURE__ */ ie.createElement(ie.Fragment, null, vf(e)), oD =
|
|
|
14725
14761
|
return;
|
|
14726
14762
|
}
|
|
14727
14763
|
if (cn) {
|
|
14728
|
-
if ((rf || Ar) && W && (Qe.isDeleteBackward(R) || Qe.isDeleteForward(R)) &&
|
|
14764
|
+
if ((rf || Ar) && W && (Qe.isDeleteBackward(R) || Qe.isDeleteForward(R)) && V.isCollapsed(W)) {
|
|
14729
14765
|
var G = oe.parent(f, W.anchor.path);
|
|
14730
14766
|
if (he.isElement(G) && y.isVoid(f, G) && (y.isInline(f, G) || y.isBlock(f, G))) {
|
|
14731
14767
|
_.preventDefault(), y.deleteBackward(f, {
|
|
@@ -14748,19 +14784,19 @@ var sD = (e) => /* @__PURE__ */ ie.createElement(ie.Fragment, null, vf(e)), oD =
|
|
|
14748
14784
|
return;
|
|
14749
14785
|
}
|
|
14750
14786
|
if (Qe.isDeleteBackward(R)) {
|
|
14751
|
-
_.preventDefault(), W &&
|
|
14787
|
+
_.preventDefault(), W && V.isExpanded(W) ? y.deleteFragment(f, {
|
|
14752
14788
|
direction: "backward"
|
|
14753
14789
|
}) : y.deleteBackward(f);
|
|
14754
14790
|
return;
|
|
14755
14791
|
}
|
|
14756
14792
|
if (Qe.isDeleteForward(R)) {
|
|
14757
|
-
_.preventDefault(), W &&
|
|
14793
|
+
_.preventDefault(), W && V.isExpanded(W) ? y.deleteFragment(f, {
|
|
14758
14794
|
direction: "forward"
|
|
14759
14795
|
}) : y.deleteForward(f);
|
|
14760
14796
|
return;
|
|
14761
14797
|
}
|
|
14762
14798
|
if (Qe.isDeleteLineBackward(R)) {
|
|
14763
|
-
_.preventDefault(), W &&
|
|
14799
|
+
_.preventDefault(), W && V.isExpanded(W) ? y.deleteFragment(f, {
|
|
14764
14800
|
direction: "backward"
|
|
14765
14801
|
}) : y.deleteBackward(f, {
|
|
14766
14802
|
unit: "line"
|
|
@@ -14768,7 +14804,7 @@ var sD = (e) => /* @__PURE__ */ ie.createElement(ie.Fragment, null, vf(e)), oD =
|
|
|
14768
14804
|
return;
|
|
14769
14805
|
}
|
|
14770
14806
|
if (Qe.isDeleteLineForward(R)) {
|
|
14771
|
-
_.preventDefault(), W &&
|
|
14807
|
+
_.preventDefault(), W && V.isExpanded(W) ? y.deleteFragment(f, {
|
|
14772
14808
|
direction: "forward"
|
|
14773
14809
|
}) : y.deleteForward(f, {
|
|
14774
14810
|
unit: "line"
|
|
@@ -14776,7 +14812,7 @@ var sD = (e) => /* @__PURE__ */ ie.createElement(ie.Fragment, null, vf(e)), oD =
|
|
|
14776
14812
|
return;
|
|
14777
14813
|
}
|
|
14778
14814
|
if (Qe.isDeleteWordBackward(R)) {
|
|
14779
|
-
_.preventDefault(), W &&
|
|
14815
|
+
_.preventDefault(), W && V.isExpanded(W) ? y.deleteFragment(f, {
|
|
14780
14816
|
direction: "backward"
|
|
14781
14817
|
}) : y.deleteBackward(f, {
|
|
14782
14818
|
unit: "word"
|
|
@@ -14784,7 +14820,7 @@ var sD = (e) => /* @__PURE__ */ ie.createElement(ie.Fragment, null, vf(e)), oD =
|
|
|
14784
14820
|
return;
|
|
14785
14821
|
}
|
|
14786
14822
|
if (Qe.isDeleteWordForward(R)) {
|
|
14787
|
-
_.preventDefault(), W &&
|
|
14823
|
+
_.preventDefault(), W && V.isExpanded(W) ? y.deleteFragment(f, {
|
|
14788
14824
|
direction: "forward"
|
|
14789
14825
|
}) : y.deleteForward(f, {
|
|
14790
14826
|
unit: "word"
|
|
@@ -14816,7 +14852,7 @@ var sD = (e) => /* @__PURE__ */ ie.createElement(ie.Fragment, null, vf(e)), oD =
|
|
|
14816
14852
|
/* @__PURE__ */ ie.createElement("span", Wt({}, t), n, pt && /* @__PURE__ */ ie.createElement("br", null))
|
|
14817
14853
|
);
|
|
14818
14854
|
}, lD = () => [], cD = (e, t) => {
|
|
14819
|
-
if (t.getBoundingClientRect && (!e.selection || e.selection &&
|
|
14855
|
+
if (t.getBoundingClientRect && (!e.selection || e.selection && V.isCollapsed(e.selection))) {
|
|
14820
14856
|
var n = t.startContainer.parentElement;
|
|
14821
14857
|
n.getBoundingClientRect = t.getBoundingClientRect.bind(t), xy(n, {
|
|
14822
14858
|
scrollMode: "if-needed"
|
|
@@ -14913,7 +14949,7 @@ var pD = ["editor", "children", "onChange", "onSelectionChange", "onValueChange"
|
|
|
14913
14949
|
var r = te.toDOMRange(e, t).getBoundingClientRect(), i = te.toDOMRange(e, n).getBoundingClientRect();
|
|
14914
14950
|
return $l(r, i) && $l(i, r);
|
|
14915
14951
|
}, vD = (e, t) => {
|
|
14916
|
-
var n = y.range(e,
|
|
14952
|
+
var n = y.range(e, V.end(t)), r = Array.from(y.positions(e, {
|
|
14917
14953
|
at: t
|
|
14918
14954
|
})), i = 0, a = r.length, s = Math.floor(a / 2);
|
|
14919
14955
|
if (Ll(e, y.range(e, r[i]), n))
|
|
@@ -14962,14 +14998,14 @@ var bD = function(t) {
|
|
|
14962
14998
|
}, r.deleteBackward = (u) => {
|
|
14963
14999
|
if (u !== "line")
|
|
14964
15000
|
return s(u);
|
|
14965
|
-
if (r.selection &&
|
|
15001
|
+
if (r.selection && V.isCollapsed(r.selection)) {
|
|
14966
15002
|
var d = y.above(r, {
|
|
14967
15003
|
match: (g) => he.isElement(g) && y.isBlock(r, g),
|
|
14968
15004
|
at: r.selection
|
|
14969
15005
|
});
|
|
14970
15006
|
if (d) {
|
|
14971
15007
|
var [, h] = d, p = y.range(r, h, r.selection.anchor), m = vD(r, p);
|
|
14972
|
-
|
|
15008
|
+
V.isCollapsed(m) || Q.delete(r, {
|
|
14973
15009
|
at: m
|
|
14974
15010
|
});
|
|
14975
15011
|
}
|
|
@@ -15037,12 +15073,12 @@ var bD = function(t) {
|
|
|
15037
15073
|
selection: d
|
|
15038
15074
|
} = r;
|
|
15039
15075
|
if (d) {
|
|
15040
|
-
var [h, p] =
|
|
15076
|
+
var [h, p] = V.edges(d), m = y.void(r, {
|
|
15041
15077
|
at: h.path
|
|
15042
15078
|
}), g = y.void(r, {
|
|
15043
15079
|
at: p.path
|
|
15044
15080
|
});
|
|
15045
|
-
if (!(
|
|
15081
|
+
if (!(V.isCollapsed(d) && !m)) {
|
|
15046
15082
|
var f = te.toDOMRange(r, d), b = f.cloneContents(), v = b.childNodes[0];
|
|
15047
15083
|
if (b.childNodes.forEach((z) => {
|
|
15048
15084
|
z.textContent && z.textContent.trim() !== "" && (v = z);
|
|
@@ -15125,7 +15161,7 @@ const yD = {
|
|
|
15125
15161
|
console.error(e);
|
|
15126
15162
|
}
|
|
15127
15163
|
}, ln = Ct(yD);
|
|
15128
|
-
var
|
|
15164
|
+
var Z = /* @__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))(Z || {}), nn = /* @__PURE__ */ ((e) => (e.delete = "delete_mark", e.emphasis = "emphasis_mark", e.code = "inline_code_mark", e.strong = "strong_mark", e))(nn || {});
|
|
15129
15165
|
const DD = ({
|
|
15130
15166
|
attributes: e,
|
|
15131
15167
|
children: t,
|
|
@@ -15133,13 +15169,13 @@ const DD = ({
|
|
|
15133
15169
|
}) => {
|
|
15134
15170
|
const r = n;
|
|
15135
15171
|
switch (r.type) {
|
|
15136
|
-
case
|
|
15172
|
+
case Z.blockquote:
|
|
15137
15173
|
return /* @__PURE__ */ c.jsx("blockquote", { className: "subtle", ...e, children: t });
|
|
15138
|
-
case
|
|
15174
|
+
case Z.link:
|
|
15139
15175
|
return /* @__PURE__ */ c.jsx("a", { ...e, children: t });
|
|
15140
|
-
case
|
|
15176
|
+
case Z.li:
|
|
15141
15177
|
return /* @__PURE__ */ c.jsx("li", { ...e, children: t });
|
|
15142
|
-
case
|
|
15178
|
+
case Z.mention:
|
|
15143
15179
|
const i = r;
|
|
15144
15180
|
return i != null && i.name && i.name === Si ? /* @__PURE__ */ c.jsxs("span", { ...e, className: "mention deleted-user", children: [
|
|
15145
15181
|
"@",
|
|
@@ -15150,20 +15186,20 @@ const DD = ({
|
|
|
15150
15186
|
(i == null ? void 0 : i.name) || "",
|
|
15151
15187
|
t
|
|
15152
15188
|
] });
|
|
15153
|
-
case
|
|
15189
|
+
case Z.ol:
|
|
15154
15190
|
return /* @__PURE__ */ c.jsx("ol", { ...e, children: t });
|
|
15155
|
-
case
|
|
15191
|
+
case Z.ul:
|
|
15156
15192
|
return /* @__PURE__ */ c.jsx("ul", { ...e, children: t });
|
|
15157
|
-
case
|
|
15193
|
+
case Z.span:
|
|
15158
15194
|
return /* @__PURE__ */ c.jsx("span", { ...e, children: t });
|
|
15159
|
-
case
|
|
15195
|
+
case Z.paragraph:
|
|
15160
15196
|
return /* @__PURE__ */ c.jsx("p", { ...e, children: t });
|
|
15161
15197
|
default:
|
|
15162
15198
|
return /* @__PURE__ */ c.jsx("span", { ...e, children: t });
|
|
15163
15199
|
}
|
|
15164
15200
|
}, xD = ({ attributes: e, children: t, leaf: n }) => {
|
|
15165
15201
|
const r = n;
|
|
15166
|
-
return r[
|
|
15202
|
+
return r[Z.bold] && (t = /* @__PURE__ */ c.jsx("strong", { children: t })), r[Z.italic] && (t = /* @__PURE__ */ c.jsx("em", { children: t })), r[Z.strikethrough] && (t = /* @__PURE__ */ c.jsx("s", { children: t })), /* @__PURE__ */ c.jsx("span", { ...e, children: t });
|
|
15167
15203
|
}, qs = "MENTION: ", xf = {
|
|
15168
15204
|
anchor: { offset: 0, path: [0, 0] },
|
|
15169
15205
|
focus: { offset: 0, path: [0, 0] }
|
|
@@ -15218,7 +15254,7 @@ const DD = ({
|
|
|
15218
15254
|
}
|
|
15219
15255
|
const [i] = y.nodes(e, {
|
|
15220
15256
|
at: r,
|
|
15221
|
-
match: (a) => a.type ===
|
|
15257
|
+
match: (a) => a.type === Z.link
|
|
15222
15258
|
});
|
|
15223
15259
|
if (i) {
|
|
15224
15260
|
const a = i[0], s = Uc(a.link), o = a.children[0], l = (o == null ? void 0 : o.text) || "";
|
|
@@ -15229,15 +15265,15 @@ const DD = ({
|
|
|
15229
15265
|
};
|
|
15230
15266
|
var mt = /* @__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))(mt || {});
|
|
15231
15267
|
const er = {
|
|
15232
|
-
[
|
|
15233
|
-
[
|
|
15234
|
-
[
|
|
15235
|
-
[
|
|
15236
|
-
[
|
|
15237
|
-
[
|
|
15238
|
-
[
|
|
15239
|
-
[
|
|
15240
|
-
[
|
|
15268
|
+
[Z.paragraph]: Z.paragraph,
|
|
15269
|
+
[Z.blockquote]: Z.blockquote,
|
|
15270
|
+
[Z.codeblock]: Z.codeblock,
|
|
15271
|
+
[Z.link]: Z.link,
|
|
15272
|
+
[Z.ul]: Z.ul,
|
|
15273
|
+
[Z.ol]: Z.ol,
|
|
15274
|
+
[Z.li]: Z.li,
|
|
15275
|
+
[Z.mention]: Z.mention,
|
|
15276
|
+
[Z.heading]: {
|
|
15241
15277
|
1: "heading_one",
|
|
15242
15278
|
2: "heading_two",
|
|
15243
15279
|
3: "heading_three",
|
|
@@ -15245,12 +15281,12 @@ const er = {
|
|
|
15245
15281
|
5: "heading_five",
|
|
15246
15282
|
6: "heading_six"
|
|
15247
15283
|
},
|
|
15248
|
-
[nn.emphasis]:
|
|
15249
|
-
[nn.strong]:
|
|
15250
|
-
[nn.delete]:
|
|
15251
|
-
[nn.code]:
|
|
15252
|
-
[
|
|
15253
|
-
[
|
|
15284
|
+
[nn.emphasis]: Z.italic,
|
|
15285
|
+
[nn.strong]: Z.bold,
|
|
15286
|
+
[nn.delete]: Z.strikethrough,
|
|
15287
|
+
[nn.code]: Z.code,
|
|
15288
|
+
[Z.hr]: Z.hr,
|
|
15289
|
+
[Z.image]: Z.image
|
|
15254
15290
|
};
|
|
15255
15291
|
function Ul(e) {
|
|
15256
15292
|
if (e)
|
|
@@ -18907,7 +18943,7 @@ function Kw(e) {
|
|
|
18907
18943
|
Mf(t, (e || {}).mdastExtensions || []);
|
|
18908
18944
|
const n = {};
|
|
18909
18945
|
return r;
|
|
18910
|
-
function r(
|
|
18946
|
+
function r(K) {
|
|
18911
18947
|
let ee = {
|
|
18912
18948
|
type: "root",
|
|
18913
18949
|
children: []
|
|
@@ -18923,24 +18959,24 @@ function Kw(e) {
|
|
|
18923
18959
|
data: n
|
|
18924
18960
|
}, ge = [];
|
|
18925
18961
|
let Ee = -1;
|
|
18926
|
-
for (; ++Ee <
|
|
18927
|
-
if (
|
|
18928
|
-
if (
|
|
18962
|
+
for (; ++Ee < K.length; )
|
|
18963
|
+
if (K[Ee][1].type === "listOrdered" || K[Ee][1].type === "listUnordered")
|
|
18964
|
+
if (K[Ee][0] === "enter")
|
|
18929
18965
|
ge.push(Ee);
|
|
18930
18966
|
else {
|
|
18931
18967
|
const Je = ge.pop();
|
|
18932
|
-
Ee = i(
|
|
18968
|
+
Ee = i(K, Je, Ee);
|
|
18933
18969
|
}
|
|
18934
|
-
for (Ee = -1; ++Ee <
|
|
18935
|
-
const Je = t[
|
|
18936
|
-
Nf.call(Je,
|
|
18970
|
+
for (Ee = -1; ++Ee < K.length; ) {
|
|
18971
|
+
const Je = t[K[Ee][0]];
|
|
18972
|
+
Nf.call(Je, K[Ee][1].type) && Je[K[Ee][1].type].call(
|
|
18937
18973
|
Object.assign(
|
|
18938
18974
|
{
|
|
18939
|
-
sliceSerialize:
|
|
18975
|
+
sliceSerialize: K[Ee][2].sliceSerialize
|
|
18940
18976
|
},
|
|
18941
18977
|
ce
|
|
18942
18978
|
),
|
|
18943
|
-
|
|
18979
|
+
K[Ee][1]
|
|
18944
18980
|
);
|
|
18945
18981
|
}
|
|
18946
18982
|
if (ce.tokenStack.length > 0) {
|
|
@@ -18949,14 +18985,14 @@ function Kw(e) {
|
|
|
18949
18985
|
}
|
|
18950
18986
|
for (ee.position = {
|
|
18951
18987
|
start: dn(
|
|
18952
|
-
|
|
18988
|
+
K.length > 0 ? K[0][1].start : {
|
|
18953
18989
|
line: 1,
|
|
18954
18990
|
column: 1,
|
|
18955
18991
|
offset: 0
|
|
18956
18992
|
}
|
|
18957
18993
|
),
|
|
18958
18994
|
end: dn(
|
|
18959
|
-
|
|
18995
|
+
K.length > 0 ? K[K.length - 2][1].end : {
|
|
18960
18996
|
line: 1,
|
|
18961
18997
|
column: 1,
|
|
18962
18998
|
offset: 0
|
|
@@ -18966,10 +19002,10 @@ function Kw(e) {
|
|
|
18966
19002
|
ee = t.transforms[Ee](ee) || ee;
|
|
18967
19003
|
return ee;
|
|
18968
19004
|
}
|
|
18969
|
-
function i(
|
|
19005
|
+
function i(K, ee, ce) {
|
|
18970
19006
|
let ge = ee - 1, Ee = -1, Je = !1, Xe, ut, Qt, Pt;
|
|
18971
19007
|
for (; ++ge <= ce; ) {
|
|
18972
|
-
const at =
|
|
19008
|
+
const at = K[ge];
|
|
18973
19009
|
switch (at[1].type) {
|
|
18974
19010
|
case "listUnordered":
|
|
18975
19011
|
case "listOrdered":
|
|
@@ -18994,18 +19030,18 @@ function Kw(e) {
|
|
|
18994
19030
|
if (Xe) {
|
|
18995
19031
|
let Lt = ge;
|
|
18996
19032
|
for (ut = void 0; Lt--; ) {
|
|
18997
|
-
const _t =
|
|
19033
|
+
const _t = K[Lt];
|
|
18998
19034
|
if (_t[1].type === "lineEnding" || _t[1].type === "lineEndingBlank") {
|
|
18999
19035
|
if (_t[0] === "exit")
|
|
19000
19036
|
continue;
|
|
19001
|
-
ut && (
|
|
19037
|
+
ut && (K[ut][1].type = "lineEndingBlank", Je = !0), _t[1].type = "lineEnding", ut = Lt;
|
|
19002
19038
|
} else if (!(_t[1].type === "linePrefix" || _t[1].type === "blockQuotePrefix" || _t[1].type === "blockQuotePrefixWhitespace" || _t[1].type === "blockQuoteMarker" || _t[1].type === "listItemIndent"))
|
|
19003
19039
|
break;
|
|
19004
19040
|
}
|
|
19005
19041
|
Qt && (!ut || Qt < ut) && (Xe._spread = !0), Xe.end = Object.assign(
|
|
19006
19042
|
{},
|
|
19007
|
-
ut ?
|
|
19008
|
-
),
|
|
19043
|
+
ut ? K[ut][1].start : at[1].end
|
|
19044
|
+
), K.splice(ut || ge, 0, ["exit", Xe, at[2]]), ge++, ce++;
|
|
19009
19045
|
}
|
|
19010
19046
|
if (at[1].type === "listItemPrefix") {
|
|
19011
19047
|
const Lt = {
|
|
@@ -19015,16 +19051,16 @@ function Kw(e) {
|
|
|
19015
19051
|
// @ts-expect-error: we’ll add `end` in a second.
|
|
19016
19052
|
end: void 0
|
|
19017
19053
|
};
|
|
19018
|
-
Xe = Lt,
|
|
19054
|
+
Xe = Lt, K.splice(ge, 0, ["enter", Lt, at[2]]), ge++, ce++, Qt = void 0, Pt = !0;
|
|
19019
19055
|
}
|
|
19020
19056
|
}
|
|
19021
19057
|
}
|
|
19022
|
-
return
|
|
19058
|
+
return K[ee][1]._spread = Je, ce;
|
|
19023
19059
|
}
|
|
19024
|
-
function a(
|
|
19060
|
+
function a(K, ee) {
|
|
19025
19061
|
return ce;
|
|
19026
19062
|
function ce(ge) {
|
|
19027
|
-
o.call(this,
|
|
19063
|
+
o.call(this, K(ge), ge), ee && ee.call(this, ge);
|
|
19028
19064
|
}
|
|
19029
19065
|
}
|
|
19030
19066
|
function s() {
|
|
@@ -19033,31 +19069,31 @@ function Kw(e) {
|
|
|
19033
19069
|
children: []
|
|
19034
19070
|
});
|
|
19035
19071
|
}
|
|
19036
|
-
function o(
|
|
19037
|
-
this.stack[this.stack.length - 1].children.push(
|
|
19072
|
+
function o(K, ee, ce) {
|
|
19073
|
+
this.stack[this.stack.length - 1].children.push(K), this.stack.push(K), this.tokenStack.push([ee, ce]), K.position = {
|
|
19038
19074
|
start: dn(ee.start),
|
|
19039
19075
|
// @ts-expect-error: `end` will be patched later.
|
|
19040
19076
|
end: void 0
|
|
19041
19077
|
};
|
|
19042
19078
|
}
|
|
19043
|
-
function l(
|
|
19079
|
+
function l(K) {
|
|
19044
19080
|
return ee;
|
|
19045
19081
|
function ee(ce) {
|
|
19046
|
-
|
|
19082
|
+
K && K.call(this, ce), u.call(this, ce);
|
|
19047
19083
|
}
|
|
19048
19084
|
}
|
|
19049
|
-
function u(
|
|
19085
|
+
function u(K, ee) {
|
|
19050
19086
|
const ce = this.stack.pop(), ge = this.tokenStack.pop();
|
|
19051
19087
|
if (ge)
|
|
19052
|
-
ge[0].type !==
|
|
19088
|
+
ge[0].type !== K.type && (ee ? ee.call(this, K, ge[0]) : (ge[1] || hc).call(this, K, ge[0]));
|
|
19053
19089
|
else
|
|
19054
19090
|
throw new Error(
|
|
19055
|
-
"Cannot close `" +
|
|
19056
|
-
start:
|
|
19057
|
-
end:
|
|
19091
|
+
"Cannot close `" + K.type + "` (" + Pr({
|
|
19092
|
+
start: K.start,
|
|
19093
|
+
end: K.end
|
|
19058
19094
|
}) + "): it’s not open"
|
|
19059
19095
|
);
|
|
19060
|
-
ce.position.end = dn(
|
|
19096
|
+
ce.position.end = dn(K.end);
|
|
19061
19097
|
}
|
|
19062
19098
|
function d() {
|
|
19063
19099
|
return HD(this.stack.pop());
|
|
@@ -19065,136 +19101,136 @@ function Kw(e) {
|
|
|
19065
19101
|
function h() {
|
|
19066
19102
|
this.data.expectingFirstListItemValue = !0;
|
|
19067
19103
|
}
|
|
19068
|
-
function p(
|
|
19104
|
+
function p(K) {
|
|
19069
19105
|
if (this.data.expectingFirstListItemValue) {
|
|
19070
19106
|
const ee = this.stack[this.stack.length - 2];
|
|
19071
|
-
ee.start = Number.parseInt(this.sliceSerialize(
|
|
19107
|
+
ee.start = Number.parseInt(this.sliceSerialize(K), 10), this.data.expectingFirstListItemValue = void 0;
|
|
19072
19108
|
}
|
|
19073
19109
|
}
|
|
19074
19110
|
function m() {
|
|
19075
|
-
const
|
|
19076
|
-
ee.lang =
|
|
19111
|
+
const K = this.resume(), ee = this.stack[this.stack.length - 1];
|
|
19112
|
+
ee.lang = K;
|
|
19077
19113
|
}
|
|
19078
19114
|
function g() {
|
|
19079
|
-
const
|
|
19080
|
-
ee.meta =
|
|
19115
|
+
const K = this.resume(), ee = this.stack[this.stack.length - 1];
|
|
19116
|
+
ee.meta = K;
|
|
19081
19117
|
}
|
|
19082
19118
|
function f() {
|
|
19083
19119
|
this.data.flowCodeInside || (this.buffer(), this.data.flowCodeInside = !0);
|
|
19084
19120
|
}
|
|
19085
19121
|
function b() {
|
|
19086
|
-
const
|
|
19087
|
-
ee.value =
|
|
19122
|
+
const K = this.resume(), ee = this.stack[this.stack.length - 1];
|
|
19123
|
+
ee.value = K.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g, ""), this.data.flowCodeInside = void 0;
|
|
19088
19124
|
}
|
|
19089
19125
|
function v() {
|
|
19090
|
-
const
|
|
19091
|
-
ee.value =
|
|
19126
|
+
const K = this.resume(), ee = this.stack[this.stack.length - 1];
|
|
19127
|
+
ee.value = K.replace(/(\r?\n|\r)$/g, "");
|
|
19092
19128
|
}
|
|
19093
|
-
function w(
|
|
19129
|
+
function w(K) {
|
|
19094
19130
|
const ee = this.resume(), ce = this.stack[this.stack.length - 1];
|
|
19095
19131
|
ce.label = ee, ce.identifier = rr(
|
|
19096
|
-
this.sliceSerialize(
|
|
19132
|
+
this.sliceSerialize(K)
|
|
19097
19133
|
).toLowerCase();
|
|
19098
19134
|
}
|
|
19099
19135
|
function B() {
|
|
19100
|
-
const
|
|
19101
|
-
ee.title =
|
|
19136
|
+
const K = this.resume(), ee = this.stack[this.stack.length - 1];
|
|
19137
|
+
ee.title = K;
|
|
19102
19138
|
}
|
|
19103
19139
|
function E() {
|
|
19104
|
-
const
|
|
19105
|
-
ee.url =
|
|
19140
|
+
const K = this.resume(), ee = this.stack[this.stack.length - 1];
|
|
19141
|
+
ee.url = K;
|
|
19106
19142
|
}
|
|
19107
|
-
function x(
|
|
19143
|
+
function x(K) {
|
|
19108
19144
|
const ee = this.stack[this.stack.length - 1];
|
|
19109
19145
|
if (!ee.depth) {
|
|
19110
|
-
const ce = this.sliceSerialize(
|
|
19146
|
+
const ce = this.sliceSerialize(K).length;
|
|
19111
19147
|
ee.depth = ce;
|
|
19112
19148
|
}
|
|
19113
19149
|
}
|
|
19114
19150
|
function A() {
|
|
19115
19151
|
this.data.setextHeadingSlurpLineEnding = !0;
|
|
19116
19152
|
}
|
|
19117
|
-
function T(
|
|
19153
|
+
function T(K) {
|
|
19118
19154
|
const ee = this.stack[this.stack.length - 1];
|
|
19119
|
-
ee.depth = this.sliceSerialize(
|
|
19155
|
+
ee.depth = this.sliceSerialize(K).codePointAt(0) === 61 ? 1 : 2;
|
|
19120
19156
|
}
|
|
19121
19157
|
function L() {
|
|
19122
19158
|
this.data.setextHeadingSlurpLineEnding = void 0;
|
|
19123
19159
|
}
|
|
19124
|
-
function P(
|
|
19160
|
+
function P(K) {
|
|
19125
19161
|
const ce = this.stack[this.stack.length - 1].children;
|
|
19126
19162
|
let ge = ce[ce.length - 1];
|
|
19127
19163
|
(!ge || ge.type !== "text") && (ge = We(), ge.position = {
|
|
19128
|
-
start: dn(
|
|
19164
|
+
start: dn(K.start),
|
|
19129
19165
|
// @ts-expect-error: we’ll add `end` later.
|
|
19130
19166
|
end: void 0
|
|
19131
19167
|
}, ce.push(ge)), this.stack.push(ge);
|
|
19132
19168
|
}
|
|
19133
|
-
function z(
|
|
19169
|
+
function z(K) {
|
|
19134
19170
|
const ee = this.stack.pop();
|
|
19135
|
-
ee.value += this.sliceSerialize(
|
|
19171
|
+
ee.value += this.sliceSerialize(K), ee.position.end = dn(K.end);
|
|
19136
19172
|
}
|
|
19137
|
-
function M(
|
|
19173
|
+
function M(K) {
|
|
19138
19174
|
const ee = this.stack[this.stack.length - 1];
|
|
19139
19175
|
if (this.data.atHardBreak) {
|
|
19140
19176
|
const ce = ee.children[ee.children.length - 1];
|
|
19141
|
-
ce.position.end = dn(
|
|
19177
|
+
ce.position.end = dn(K.end), this.data.atHardBreak = void 0;
|
|
19142
19178
|
return;
|
|
19143
19179
|
}
|
|
19144
|
-
!this.data.setextHeadingSlurpLineEnding && t.canContainEols.includes(ee.type) && (P.call(this,
|
|
19180
|
+
!this.data.setextHeadingSlurpLineEnding && t.canContainEols.includes(ee.type) && (P.call(this, K), z.call(this, K));
|
|
19145
19181
|
}
|
|
19146
19182
|
function F() {
|
|
19147
19183
|
this.data.atHardBreak = !0;
|
|
19148
19184
|
}
|
|
19149
19185
|
function C() {
|
|
19150
|
-
const
|
|
19151
|
-
ee.value =
|
|
19186
|
+
const K = this.resume(), ee = this.stack[this.stack.length - 1];
|
|
19187
|
+
ee.value = K;
|
|
19152
19188
|
}
|
|
19153
19189
|
function S() {
|
|
19154
|
-
const
|
|
19155
|
-
ee.value =
|
|
19190
|
+
const K = this.resume(), ee = this.stack[this.stack.length - 1];
|
|
19191
|
+
ee.value = K;
|
|
19156
19192
|
}
|
|
19157
19193
|
function N() {
|
|
19158
|
-
const
|
|
19159
|
-
ee.value =
|
|
19194
|
+
const K = this.resume(), ee = this.stack[this.stack.length - 1];
|
|
19195
|
+
ee.value = K;
|
|
19160
19196
|
}
|
|
19161
19197
|
function q() {
|
|
19162
|
-
const
|
|
19198
|
+
const K = this.stack[this.stack.length - 1];
|
|
19163
19199
|
if (this.data.inReference) {
|
|
19164
19200
|
const ee = this.data.referenceType || "shortcut";
|
|
19165
|
-
|
|
19201
|
+
K.type += "Reference", K.referenceType = ee, delete K.url, delete K.title;
|
|
19166
19202
|
} else
|
|
19167
|
-
delete
|
|
19203
|
+
delete K.identifier, delete K.label;
|
|
19168
19204
|
this.data.referenceType = void 0;
|
|
19169
19205
|
}
|
|
19170
19206
|
function U() {
|
|
19171
|
-
const
|
|
19207
|
+
const K = this.stack[this.stack.length - 1];
|
|
19172
19208
|
if (this.data.inReference) {
|
|
19173
19209
|
const ee = this.data.referenceType || "shortcut";
|
|
19174
|
-
|
|
19210
|
+
K.type += "Reference", K.referenceType = ee, delete K.url, delete K.title;
|
|
19175
19211
|
} else
|
|
19176
|
-
delete
|
|
19212
|
+
delete K.identifier, delete K.label;
|
|
19177
19213
|
this.data.referenceType = void 0;
|
|
19178
19214
|
}
|
|
19179
|
-
function Y(
|
|
19180
|
-
const ee = this.sliceSerialize(
|
|
19215
|
+
function Y(K) {
|
|
19216
|
+
const ee = this.sliceSerialize(K), ce = this.stack[this.stack.length - 2];
|
|
19181
19217
|
ce.label = Uw(ee), ce.identifier = rr(ee).toLowerCase();
|
|
19182
19218
|
}
|
|
19183
19219
|
function ne() {
|
|
19184
|
-
const
|
|
19220
|
+
const K = this.stack[this.stack.length - 1], ee = this.resume(), ce = this.stack[this.stack.length - 1];
|
|
19185
19221
|
if (this.data.inReference = !0, ce.type === "link") {
|
|
19186
|
-
const ge =
|
|
19222
|
+
const ge = K.children;
|
|
19187
19223
|
ce.children = ge;
|
|
19188
19224
|
} else
|
|
19189
19225
|
ce.alt = ee;
|
|
19190
19226
|
}
|
|
19191
19227
|
function D() {
|
|
19192
|
-
const
|
|
19193
|
-
ee.url =
|
|
19228
|
+
const K = this.resume(), ee = this.stack[this.stack.length - 1];
|
|
19229
|
+
ee.url = K;
|
|
19194
19230
|
}
|
|
19195
19231
|
function $() {
|
|
19196
|
-
const
|
|
19197
|
-
ee.title =
|
|
19232
|
+
const K = this.resume(), ee = this.stack[this.stack.length - 1];
|
|
19233
|
+
ee.title = K;
|
|
19198
19234
|
}
|
|
19199
19235
|
function X() {
|
|
19200
19236
|
this.data.inReference = void 0;
|
|
@@ -19202,34 +19238,34 @@ function Kw(e) {
|
|
|
19202
19238
|
function k() {
|
|
19203
19239
|
this.data.referenceType = "collapsed";
|
|
19204
19240
|
}
|
|
19205
|
-
function _(
|
|
19241
|
+
function _(K) {
|
|
19206
19242
|
const ee = this.resume(), ce = this.stack[this.stack.length - 1];
|
|
19207
19243
|
ce.label = ee, ce.identifier = rr(
|
|
19208
|
-
this.sliceSerialize(
|
|
19244
|
+
this.sliceSerialize(K)
|
|
19209
19245
|
).toLowerCase(), this.data.referenceType = "full";
|
|
19210
19246
|
}
|
|
19211
|
-
function I(
|
|
19212
|
-
this.data.characterReferenceType =
|
|
19247
|
+
function I(K) {
|
|
19248
|
+
this.data.characterReferenceType = K.type;
|
|
19213
19249
|
}
|
|
19214
|
-
function R(
|
|
19215
|
-
const ee = this.sliceSerialize(
|
|
19250
|
+
function R(K) {
|
|
19251
|
+
const ee = this.sliceSerialize(K), ce = this.data.characterReferenceType;
|
|
19216
19252
|
let ge;
|
|
19217
19253
|
ce ? (ge = _f(
|
|
19218
19254
|
ee,
|
|
19219
19255
|
ce === "characterReferenceMarkerNumeric" ? 10 : 16
|
|
19220
19256
|
), this.data.characterReferenceType = void 0) : ge = Fo(ee);
|
|
19221
19257
|
const Ee = this.stack.pop();
|
|
19222
|
-
Ee.value += ge, Ee.position.end = dn(
|
|
19258
|
+
Ee.value += ge, Ee.position.end = dn(K.end);
|
|
19223
19259
|
}
|
|
19224
|
-
function W(
|
|
19225
|
-
z.call(this,
|
|
19260
|
+
function W(K) {
|
|
19261
|
+
z.call(this, K);
|
|
19226
19262
|
const ee = this.stack[this.stack.length - 1];
|
|
19227
|
-
ee.url = this.sliceSerialize(
|
|
19263
|
+
ee.url = this.sliceSerialize(K);
|
|
19228
19264
|
}
|
|
19229
|
-
function re(
|
|
19230
|
-
z.call(this,
|
|
19265
|
+
function re(K) {
|
|
19266
|
+
z.call(this, K);
|
|
19231
19267
|
const ee = this.stack[this.stack.length - 1];
|
|
19232
|
-
ee.url = "mailto:" + this.sliceSerialize(
|
|
19268
|
+
ee.url = "mailto:" + this.sliceSerialize(K);
|
|
19233
19269
|
}
|
|
19234
19270
|
function J() {
|
|
19235
19271
|
return {
|
|
@@ -19301,19 +19337,19 @@ function Kw(e) {
|
|
|
19301
19337
|
children: []
|
|
19302
19338
|
};
|
|
19303
19339
|
}
|
|
19304
|
-
function Ke(
|
|
19340
|
+
function Ke(K) {
|
|
19305
19341
|
return {
|
|
19306
19342
|
type: "list",
|
|
19307
|
-
ordered:
|
|
19343
|
+
ordered: K.type === "listOrdered",
|
|
19308
19344
|
start: null,
|
|
19309
|
-
spread:
|
|
19345
|
+
spread: K._spread,
|
|
19310
19346
|
children: []
|
|
19311
19347
|
};
|
|
19312
19348
|
}
|
|
19313
|
-
function Se(
|
|
19349
|
+
function Se(K) {
|
|
19314
19350
|
return {
|
|
19315
19351
|
type: "listItem",
|
|
19316
|
-
spread:
|
|
19352
|
+
spread: K._spread,
|
|
19317
19353
|
checked: null,
|
|
19318
19354
|
children: []
|
|
19319
19355
|
};
|
|
@@ -19415,9 +19451,9 @@ function Rf(e, t) {
|
|
|
19415
19451
|
const n = {
|
|
19416
19452
|
...er,
|
|
19417
19453
|
...t == null ? void 0 : t.nodeTypes,
|
|
19418
|
-
[
|
|
19419
|
-
...er[
|
|
19420
|
-
...(l = t == null ? void 0 : t.nodeTypes) == null ? void 0 : l[
|
|
19454
|
+
[Z.heading]: {
|
|
19455
|
+
...er[Z.heading],
|
|
19456
|
+
...(l = t == null ? void 0 : t.nodeTypes) == null ? void 0 : l[Z.heading]
|
|
19421
19457
|
}
|
|
19422
19458
|
}, r = (t == null ? void 0 : t.linkDestinationKey) ?? "link", i = (t == null ? void 0 : t.imageSourceKey) ?? "link", a = (t == null ? void 0 : t.imageCaptionKey) ?? "caption";
|
|
19423
19459
|
let s = [{ text: "" }];
|
|
@@ -19433,45 +19469,45 @@ function Rf(e, t) {
|
|
|
19433
19469
|
)), e.type) {
|
|
19434
19470
|
case mt.heading:
|
|
19435
19471
|
return {
|
|
19436
|
-
type: n[
|
|
19472
|
+
type: n[Z.heading][e.depth || 1],
|
|
19437
19473
|
children: s
|
|
19438
19474
|
};
|
|
19439
19475
|
case mt.list:
|
|
19440
19476
|
return {
|
|
19441
|
-
type: e.ordered ? n[
|
|
19477
|
+
type: e.ordered ? n[Z.ol] : n[Z.ul],
|
|
19442
19478
|
children: s
|
|
19443
19479
|
};
|
|
19444
19480
|
case mt.listItem:
|
|
19445
|
-
return { type: n[
|
|
19481
|
+
return { type: n[Z.li], children: s };
|
|
19446
19482
|
case mt.paragraph:
|
|
19447
|
-
return { type: n[
|
|
19483
|
+
return { type: n[Z.paragraph], children: s };
|
|
19448
19484
|
case mt.link:
|
|
19449
19485
|
return {
|
|
19450
|
-
type: n[
|
|
19486
|
+
type: n[Z.link],
|
|
19451
19487
|
[r]: e.url,
|
|
19452
19488
|
children: s
|
|
19453
19489
|
};
|
|
19454
19490
|
case mt.image:
|
|
19455
19491
|
return {
|
|
19456
|
-
type: n[
|
|
19492
|
+
type: n[Z.image],
|
|
19457
19493
|
children: [{ text: "" }],
|
|
19458
19494
|
[i]: e.url,
|
|
19459
19495
|
[a]: e.alt
|
|
19460
19496
|
};
|
|
19461
19497
|
case mt.blockquote:
|
|
19462
|
-
return { type: n[
|
|
19498
|
+
return { type: n[Z.blockquote], children: s };
|
|
19463
19499
|
case mt.code:
|
|
19464
19500
|
return {
|
|
19465
|
-
type: n[
|
|
19501
|
+
type: n[Z.codeblock],
|
|
19466
19502
|
language: e.lang,
|
|
19467
19503
|
children: [{ text: e.value }]
|
|
19468
19504
|
};
|
|
19469
19505
|
case mt.html:
|
|
19470
19506
|
return (u = e.value) != null && u.includes("<br>") ? {
|
|
19471
19507
|
break: !0,
|
|
19472
|
-
type: n[
|
|
19508
|
+
type: n[Z.paragraph],
|
|
19473
19509
|
children: [{ text: ((d = e.value) == null ? void 0 : d.replace(/<br>/g, "")) || "" }]
|
|
19474
|
-
} : { type:
|
|
19510
|
+
} : { type: Z.paragraph, children: [{ text: e.value || "" }] };
|
|
19475
19511
|
case mt.emphasis:
|
|
19476
19512
|
return {
|
|
19477
19513
|
[n[nn.emphasis]]: !0,
|
|
@@ -19498,7 +19534,7 @@ function Rf(e, t) {
|
|
|
19498
19534
|
};
|
|
19499
19535
|
case mt.thematicBreak:
|
|
19500
19536
|
return {
|
|
19501
|
-
type: n[
|
|
19537
|
+
type: n[Z.hr],
|
|
19502
19538
|
children: [{ text: "" }]
|
|
19503
19539
|
};
|
|
19504
19540
|
case "text":
|
|
@@ -19522,20 +19558,20 @@ const Gw = function(t) {
|
|
|
19522
19558
|
LD().use(Yw).use(Gw).process(e).then((n) => {
|
|
19523
19559
|
const r = Fn(n.result), i = (s) => {
|
|
19524
19560
|
const o = s;
|
|
19525
|
-
[
|
|
19561
|
+
[Z.li, Z.blockquote].includes(o.type) && o.children.map((l, u) => {
|
|
19526
19562
|
const d = l;
|
|
19527
|
-
d.type ===
|
|
19563
|
+
d.type === Z.paragraph && o.children.splice(u, 1, ...d.children);
|
|
19528
19564
|
}), "children" in s && s.children && s.children.forEach((l) => i(l));
|
|
19529
19565
|
};
|
|
19530
19566
|
r.forEach(i);
|
|
19531
19567
|
const a = (s) => {
|
|
19532
19568
|
for (let o = 0; o < s.length; o++) {
|
|
19533
19569
|
const l = s[o], u = l;
|
|
19534
|
-
if (u.type ===
|
|
19570
|
+
if (u.type === Z.link) {
|
|
19535
19571
|
const d = u.children && u.children[0];
|
|
19536
19572
|
if (d && "text" in d && d.text.includes(qs)) {
|
|
19537
19573
|
const h = u, p = d.text.replace(qs, ""), m = "link" in h && h.link ? h.link : "";
|
|
19538
|
-
h.type =
|
|
19574
|
+
h.type = Z.mention, h.id = m, h.name = p, h.children = [{ text: "" }], s[o + 1] || s.splice(o + 1, 0, { text: " " }), o++;
|
|
19539
19575
|
}
|
|
19540
19576
|
}
|
|
19541
19577
|
"children" in l && l.children && a(l.children);
|
|
@@ -19548,7 +19584,7 @@ const Gw = function(t) {
|
|
|
19548
19584
|
u && u.map((d) => {
|
|
19549
19585
|
const h = d.replace(/~~/g, ""), p = o.text.indexOf(d), m = o.text.substring(0, p), g = o.text.substring(p + d.length), f = [
|
|
19550
19586
|
{ text: m },
|
|
19551
|
-
{ text: h, [
|
|
19587
|
+
{ text: h, [Z.strikethrough]: !0 },
|
|
19552
19588
|
{ text: g }
|
|
19553
19589
|
];
|
|
19554
19590
|
s.children.splice(l, 1, ...f);
|
|
@@ -19582,19 +19618,19 @@ const Gw = function(t) {
|
|
|
19582
19618
|
}
|
|
19583
19619
|
return t;
|
|
19584
19620
|
}, pc = {
|
|
19585
|
-
"mod+b":
|
|
19586
|
-
"mod+i":
|
|
19587
|
-
"mod+shift+x":
|
|
19588
|
-
"mod+k":
|
|
19589
|
-
"mod+shift+7":
|
|
19590
|
-
"mod+shift+8":
|
|
19591
|
-
"mod+shift+9":
|
|
19621
|
+
"mod+b": Z.bold,
|
|
19622
|
+
"mod+i": Z.italic,
|
|
19623
|
+
"mod+shift+x": Z.strikethrough,
|
|
19624
|
+
"mod+k": Z.link,
|
|
19625
|
+
"mod+shift+7": Z.ol,
|
|
19626
|
+
"mod+shift+8": Z.ul,
|
|
19627
|
+
"mod+shift+9": Z.blockquote
|
|
19592
19628
|
}, eC = (e, t, n, r) => {
|
|
19593
19629
|
for (const i in pc)
|
|
19594
19630
|
if (Vy(i, e)) {
|
|
19595
19631
|
e.stopPropagation(), e.preventDefault();
|
|
19596
19632
|
const a = pc[i];
|
|
19597
|
-
if (a ===
|
|
19633
|
+
if (a === Z.link) {
|
|
19598
19634
|
n([{ type: "showLinkEditor", value: !0 }]);
|
|
19599
19635
|
return;
|
|
19600
19636
|
}
|
|
@@ -19612,7 +19648,7 @@ const Gw = function(t) {
|
|
|
19612
19648
|
const o = s.userId || "", l = (d = s.user) == null ? void 0 : d.name;
|
|
19613
19649
|
n([{ type: "mentionPopover", value: { ...t, show: !1 } }]);
|
|
19614
19650
|
const u = {
|
|
19615
|
-
type:
|
|
19651
|
+
type: Z.mention,
|
|
19616
19652
|
id: o,
|
|
19617
19653
|
name: l,
|
|
19618
19654
|
children: [{ text: "" }]
|
|
@@ -19626,8 +19662,8 @@ const Gw = function(t) {
|
|
|
19626
19662
|
dispatch: i
|
|
19627
19663
|
}) => {
|
|
19628
19664
|
const { selection: a } = e;
|
|
19629
|
-
if (a &&
|
|
19630
|
-
const [s] =
|
|
19665
|
+
if (a && V.isCollapsed(a)) {
|
|
19666
|
+
const [s] = V.edges(a), o = y.start(e, s.path), l = y.range(e, o, s), d = y.string(e, l).match(Ih);
|
|
19631
19667
|
if (d) {
|
|
19632
19668
|
const h = d.index || 0, p = { path: s.path, offset: h }, m = { path: s.path, offset: h + d[0].length }, g = y.range(e, p, m), f = y.after(e, s), b = y.range(e, s, f);
|
|
19633
19669
|
if (y.string(e, b).match(/^(\s|\.|,|\?|!|:|;|'|"|`|$)/)) {
|
|
@@ -19669,9 +19705,9 @@ const Gw = function(t) {
|
|
|
19669
19705
|
}
|
|
19670
19706
|
return t;
|
|
19671
19707
|
}, Zn = (e) => typeof e.text == "string", nC = [
|
|
19672
|
-
|
|
19673
|
-
|
|
19674
|
-
|
|
19708
|
+
Z.hr,
|
|
19709
|
+
Z.image,
|
|
19710
|
+
Z.mention
|
|
19675
19711
|
], gc = "<br>";
|
|
19676
19712
|
function Lf(e, t = { nodeTypes: er }) {
|
|
19677
19713
|
const {
|
|
@@ -19684,12 +19720,12 @@ function Lf(e, t = { nodeTypes: er }) {
|
|
|
19684
19720
|
...er,
|
|
19685
19721
|
...n,
|
|
19686
19722
|
heading: {
|
|
19687
|
-
...er[
|
|
19688
|
-
...n[
|
|
19723
|
+
...er[Z.heading],
|
|
19724
|
+
...n[Z.heading]
|
|
19689
19725
|
}
|
|
19690
|
-
}, l = [o[
|
|
19726
|
+
}, l = [o[Z.ul], o[Z.ol]];
|
|
19691
19727
|
let u = a;
|
|
19692
|
-
if (!Zn(e) && s !==
|
|
19728
|
+
if (!Zn(e) && s !== Z.mention && (u = e.children.map((d) => {
|
|
19693
19729
|
const h = Zn(d) ? !1 : l.includes(d.type || ""), p = l.includes(e.type || "");
|
|
19694
19730
|
let m = !1;
|
|
19695
19731
|
return !Zn(e) && Array.isArray(e.children) && (m = e.children.some(
|
|
@@ -19709,65 +19745,65 @@ function Lf(e, t = { nodeTypes: er }) {
|
|
|
19709
19745
|
!d.break,
|
|
19710
19746
|
// track depth of nested lists so we can add proper spacing
|
|
19711
19747
|
listDepth: l.includes(d.type || "") ? i + 1 : i,
|
|
19712
|
-
inBlockquote: s === o[
|
|
19748
|
+
inBlockquote: s === o[Z.blockquote] || e.parentType === o[Z.blockquote]
|
|
19713
19749
|
}
|
|
19714
19750
|
);
|
|
19715
19751
|
}).join("")), !r && (a === "" || a === `
|
|
19716
|
-
`) && e.parentType === o[
|
|
19717
|
-
switch (u !== gc && Zn(e) && (e[
|
|
19718
|
-
case o[
|
|
19752
|
+
`) && e.parentType === o[Z.paragraph] && s !== o[Z.mention] && (s = o[Z.paragraph], u = gc), !(u === "" && !nC.find((d) => o[d] === s)))
|
|
19753
|
+
switch (u !== gc && Zn(e) && (e[Z.strikethrough] && e[Z.bold] && e[Z.italic] ? u = Yn(u, "~~***") : e[Z.bold] && e[Z.italic] ? u = Yn(u, "***") : (e[Z.bold] && (u = Yn(u, "**")), e[Z.italic] && (u = Yn(u, "_")), e[Z.strikethrough] && (u = Yn(u, "~~")), e[Z.code] && (u = Yn(u, "`")))), s) {
|
|
19754
|
+
case o[Z.heading][1]:
|
|
19719
19755
|
return `# ${u}
|
|
19720
19756
|
`;
|
|
19721
|
-
case o[
|
|
19757
|
+
case o[Z.heading][2]:
|
|
19722
19758
|
return `## ${u}
|
|
19723
19759
|
`;
|
|
19724
|
-
case o[
|
|
19760
|
+
case o[Z.heading][3]:
|
|
19725
19761
|
return `### ${u}
|
|
19726
19762
|
`;
|
|
19727
|
-
case o[
|
|
19763
|
+
case o[Z.heading][4]:
|
|
19728
19764
|
return `#### ${u}
|
|
19729
19765
|
`;
|
|
19730
|
-
case o[
|
|
19766
|
+
case o[Z.heading][5]:
|
|
19731
19767
|
return `##### ${u}
|
|
19732
19768
|
`;
|
|
19733
|
-
case o[
|
|
19769
|
+
case o[Z.heading][6]:
|
|
19734
19770
|
return `###### ${u}
|
|
19735
19771
|
`;
|
|
19736
|
-
case o[
|
|
19772
|
+
case o[Z.blockquote]:
|
|
19737
19773
|
return `> ${u}
|
|
19738
19774
|
|
|
19739
19775
|
`;
|
|
19740
|
-
case o[
|
|
19776
|
+
case o[Z.codeblock]:
|
|
19741
19777
|
return `\`\`\`${e.language || ""}
|
|
19742
19778
|
${u}
|
|
19743
19779
|
\`\`\`
|
|
19744
19780
|
`;
|
|
19745
|
-
case o[
|
|
19781
|
+
case o[Z.link]:
|
|
19746
19782
|
return `[${u}](${e.link || ""})`;
|
|
19747
19783
|
case o.image:
|
|
19748
19784
|
return ``;
|
|
19749
|
-
case o[
|
|
19785
|
+
case o[Z.mention]:
|
|
19750
19786
|
const { id: d } = e;
|
|
19751
19787
|
return e ? `@{{${d}}}` : u;
|
|
19752
|
-
case o[
|
|
19753
|
-
case o[
|
|
19788
|
+
case o[Z.ul]:
|
|
19789
|
+
case o[Z.ol]:
|
|
19754
19790
|
return `
|
|
19755
19791
|
${u}
|
|
19756
19792
|
|
|
19757
19793
|
`;
|
|
19758
|
-
case o[
|
|
19759
|
-
const h = e && e.parentType === o[
|
|
19794
|
+
case o[Z.li]:
|
|
19795
|
+
const h = e && e.parentType === o[Z.ol], p = e.children.length === 1 && Zn(e.children[0]);
|
|
19760
19796
|
let m = "";
|
|
19761
19797
|
for (let g = 0; i > g; g++)
|
|
19762
19798
|
h ? m += " " : m += " ";
|
|
19763
19799
|
return t.inBlockquote && (m = "> " + m), `
|
|
19764
19800
|
${m}${h ? "1." : "-"} ${u}${p ? `
|
|
19765
19801
|
` : ""}`;
|
|
19766
|
-
case o[
|
|
19802
|
+
case o[Z.paragraph]:
|
|
19767
19803
|
return `${u}
|
|
19768
19804
|
|
|
19769
19805
|
`;
|
|
19770
|
-
case o[
|
|
19806
|
+
case o[Z.hr]:
|
|
19771
19807
|
return `---
|
|
19772
19808
|
`;
|
|
19773
19809
|
default:
|
|
@@ -19803,7 +19839,7 @@ const iC = ({
|
|
|
19803
19839
|
bn,
|
|
19804
19840
|
{
|
|
19805
19841
|
element: "li",
|
|
19806
|
-
className:
|
|
19842
|
+
className: H({ selected: f === u }),
|
|
19807
19843
|
member: { id: m, ...g, link: !1 },
|
|
19808
19844
|
functions: {
|
|
19809
19845
|
onClick: (b) => {
|
|
@@ -19824,7 +19860,7 @@ const iC = ({
|
|
|
19824
19860
|
bn,
|
|
19825
19861
|
{
|
|
19826
19862
|
element: "li",
|
|
19827
|
-
className:
|
|
19863
|
+
className: H("fallback", {
|
|
19828
19864
|
selected: d.length === u
|
|
19829
19865
|
}),
|
|
19830
19866
|
member: {
|
|
@@ -19876,7 +19912,7 @@ const iC = ({
|
|
|
19876
19912
|
"li",
|
|
19877
19913
|
{
|
|
19878
19914
|
id: `${d}-${e}`,
|
|
19879
|
-
className:
|
|
19915
|
+
className: H(e, { "has-divider": n }),
|
|
19880
19916
|
onMouseEnter: () => {
|
|
19881
19917
|
g([{ type: "openTooltip", value: e }]);
|
|
19882
19918
|
},
|
|
@@ -19903,7 +19939,7 @@ const iC = ({
|
|
|
19903
19939
|
{
|
|
19904
19940
|
...o,
|
|
19905
19941
|
...f,
|
|
19906
|
-
className:
|
|
19942
|
+
className: H(e, i, { active: t }),
|
|
19907
19943
|
onClick: (b) => {
|
|
19908
19944
|
b.stopPropagation(), b.preventDefault();
|
|
19909
19945
|
},
|
|
@@ -19957,7 +19993,7 @@ const iC = ({
|
|
|
19957
19993
|
]
|
|
19958
19994
|
}
|
|
19959
19995
|
);
|
|
19960
|
-
}, bc = [
|
|
19996
|
+
}, bc = [Z.ol, Z.ul], zf = (e, t) => {
|
|
19961
19997
|
const { selection: n } = e;
|
|
19962
19998
|
if (!n)
|
|
19963
19999
|
return !1;
|
|
@@ -19973,7 +20009,7 @@ const iC = ({
|
|
|
19973
20009
|
return !!r;
|
|
19974
20010
|
}, aC = (e) => {
|
|
19975
20011
|
const [t] = y.nodes(e, {
|
|
19976
|
-
match: (n) => n.type ===
|
|
20012
|
+
match: (n) => n.type === Z.blockquote
|
|
19977
20013
|
});
|
|
19978
20014
|
return !!t;
|
|
19979
20015
|
}, qf = (e, t, n) => {
|
|
@@ -19987,7 +20023,7 @@ const iC = ({
|
|
|
19987
20023
|
split: !0
|
|
19988
20024
|
});
|
|
19989
20025
|
const o = {
|
|
19990
|
-
type: i ?
|
|
20026
|
+
type: i ? Z.paragraph : a ? Z.li : t
|
|
19991
20027
|
};
|
|
19992
20028
|
if (Q.setNodes(e, o), a)
|
|
19993
20029
|
if (i) {
|
|
@@ -20000,7 +20036,7 @@ const iC = ({
|
|
|
20000
20036
|
at: d,
|
|
20001
20037
|
match: (p) => {
|
|
20002
20038
|
const m = p;
|
|
20003
|
-
return !y.isEditor(p) && he.isElement(p) && m.type ===
|
|
20039
|
+
return !y.isEditor(p) && he.isElement(p) && m.type === Z.li;
|
|
20004
20040
|
}
|
|
20005
20041
|
})
|
|
20006
20042
|
).forEach(([p, m]) => {
|
|
@@ -20009,7 +20045,7 @@ const iC = ({
|
|
|
20009
20045
|
} else {
|
|
20010
20046
|
if (r) {
|
|
20011
20047
|
const u = {
|
|
20012
|
-
type:
|
|
20048
|
+
type: Z.blockquote,
|
|
20013
20049
|
children: []
|
|
20014
20050
|
};
|
|
20015
20051
|
Q.wrapNodes(e, u);
|
|
@@ -20038,7 +20074,7 @@ const iC = ({
|
|
|
20038
20074
|
const [t] = y.nodes(e, {
|
|
20039
20075
|
match: (n) => {
|
|
20040
20076
|
const r = n;
|
|
20041
|
-
return !y.isEditor(n) && he.isElement(n) && r.type ===
|
|
20077
|
+
return !y.isEditor(n) && he.isElement(n) && r.type === Z.link;
|
|
20042
20078
|
}
|
|
20043
20079
|
});
|
|
20044
20080
|
return !!t;
|
|
@@ -20046,11 +20082,11 @@ const iC = ({
|
|
|
20046
20082
|
e.selection && jo(e, t, n, r);
|
|
20047
20083
|
}, uC = (e, t, n, r) => {
|
|
20048
20084
|
const { selection: i } = e;
|
|
20049
|
-
if (i &&
|
|
20085
|
+
if (i && V.isCollapsed(i)) {
|
|
20050
20086
|
const [s] = y.nodes(e, {
|
|
20051
20087
|
match: (o) => {
|
|
20052
20088
|
const l = o;
|
|
20053
|
-
return !y.isEditor(o) && he.isElement(o) && l.type ===
|
|
20089
|
+
return !y.isEditor(o) && he.isElement(o) && l.type === Z.link;
|
|
20054
20090
|
}
|
|
20055
20091
|
});
|
|
20056
20092
|
if (s) {
|
|
@@ -20064,8 +20100,8 @@ const iC = ({
|
|
|
20064
20100
|
}) => {
|
|
20065
20101
|
try {
|
|
20066
20102
|
Mr(e) && Wf(e);
|
|
20067
|
-
const { selection: i } = e, a = i &&
|
|
20068
|
-
type:
|
|
20103
|
+
const { selection: i } = e, a = i && V.isCollapsed(i), s = {
|
|
20104
|
+
type: Z.link,
|
|
20069
20105
|
link: t,
|
|
20070
20106
|
children: a ? [{ text: t }] : []
|
|
20071
20107
|
};
|
|
@@ -20078,7 +20114,7 @@ const iC = ({
|
|
|
20078
20114
|
Q.unwrapNodes(e, {
|
|
20079
20115
|
match: (t) => {
|
|
20080
20116
|
const n = t;
|
|
20081
|
-
return !y.isEditor(t) && he.isElement(t) && n.type ===
|
|
20117
|
+
return !y.isEditor(t) && he.isElement(t) && n.type === Z.link;
|
|
20082
20118
|
}
|
|
20083
20119
|
});
|
|
20084
20120
|
};
|
|
@@ -20192,7 +20228,7 @@ const lC = () => {
|
|
|
20192
20228
|
{
|
|
20193
20229
|
element: "fieldset",
|
|
20194
20230
|
id: `${n}-link-editor`,
|
|
20195
|
-
className:
|
|
20231
|
+
className: H({ "show-labels": u }),
|
|
20196
20232
|
meta: { shouldReset: !0, showRequiredLabels: !1 },
|
|
20197
20233
|
functions: {
|
|
20198
20234
|
onSuccess: async (w) => {
|
|
@@ -20234,7 +20270,7 @@ const lC = () => {
|
|
|
20234
20270
|
"aria-pressed": null
|
|
20235
20271
|
}
|
|
20236
20272
|
);
|
|
20237
|
-
}, dC = (e) => [
|
|
20273
|
+
}, dC = (e) => [Z.bold, Z.italic, Z.strikethrough].includes(
|
|
20238
20274
|
e
|
|
20239
20275
|
), Uf = (e, t) => {
|
|
20240
20276
|
const n = y.marks(e);
|
|
@@ -20260,13 +20296,13 @@ const lC = () => {
|
|
|
20260
20296
|
}
|
|
20261
20297
|
);
|
|
20262
20298
|
}, Ki = [
|
|
20263
|
-
|
|
20264
|
-
|
|
20265
|
-
|
|
20299
|
+
Z.bold,
|
|
20300
|
+
Z.italic,
|
|
20301
|
+
Z.strikethrough
|
|
20266
20302
|
], hC = [
|
|
20267
|
-
|
|
20268
|
-
|
|
20269
|
-
|
|
20303
|
+
Z.ol,
|
|
20304
|
+
Z.ul,
|
|
20305
|
+
Z.blockquote
|
|
20270
20306
|
];
|
|
20271
20307
|
const mC = ({ ...e }) => {
|
|
20272
20308
|
const t = le(), { id: n } = Ne(ln);
|
|
@@ -20297,7 +20333,7 @@ const DC = /* @__PURE__ */ Mn(pC), xC = (e, t, n) => {
|
|
|
20297
20333
|
try {
|
|
20298
20334
|
e.isInline = (a) => {
|
|
20299
20335
|
const s = a;
|
|
20300
|
-
return [
|
|
20336
|
+
return [Z.link].includes(s.type) || i(a);
|
|
20301
20337
|
}, e.insertText = (a) => {
|
|
20302
20338
|
a && DC(a) ? jo(e, a, t) : r(a);
|
|
20303
20339
|
};
|
|
@@ -20309,7 +20345,7 @@ const DC = /* @__PURE__ */ Mn(pC), xC = (e, t, n) => {
|
|
|
20309
20345
|
}, wC = (e, t) => {
|
|
20310
20346
|
const { isInline: n, isVoid: r, markableVoid: i } = e;
|
|
20311
20347
|
try {
|
|
20312
|
-
e.isInline = (a) => a.type ===
|
|
20348
|
+
e.isInline = (a) => a.type === Z.mention ? !0 : n(a), e.isVoid = (a) => a.type === Z.mention ? !0 : r(a), e.markableVoid = (a) => a.type === Z.mention || i(a);
|
|
20313
20349
|
} catch (a) {
|
|
20314
20350
|
const s = a.message;
|
|
20315
20351
|
t(`Error in withMentions: ${s}`);
|
|
@@ -20319,7 +20355,7 @@ const DC = /* @__PURE__ */ Mn(pC), xC = (e, t, n) => {
|
|
|
20319
20355
|
const { normalizeNode: n } = e;
|
|
20320
20356
|
try {
|
|
20321
20357
|
e.normalizeNode = ([r, i]) => {
|
|
20322
|
-
if (r.type ===
|
|
20358
|
+
if (r.type === Z.link && oe.string(r).trim() === "") {
|
|
20323
20359
|
Q.removeNodes(e, { at: i });
|
|
20324
20360
|
return;
|
|
20325
20361
|
}
|
|
@@ -20356,7 +20392,7 @@ const EC = ({
|
|
|
20356
20392
|
}
|
|
20357
20393
|
} = a || {}, v = [
|
|
20358
20394
|
{
|
|
20359
|
-
type:
|
|
20395
|
+
type: Z.paragraph,
|
|
20360
20396
|
children: [{ text: "" }]
|
|
20361
20397
|
}
|
|
20362
20398
|
];
|
|
@@ -20524,11 +20560,11 @@ const EC = ({
|
|
|
20524
20560
|
C.show && ($.preventDefault(), $.stopPropagation(), If(Y, C, E, N));
|
|
20525
20561
|
const { selection: X } = Y;
|
|
20526
20562
|
if (X) {
|
|
20527
|
-
const k =
|
|
20563
|
+
const k = V.isCollapsed(X), [_, I] = y.node(Y, X, { depth: 1 });
|
|
20528
20564
|
let R = _, W = R.type;
|
|
20529
20565
|
const re = R.children[0];
|
|
20530
|
-
if (re && [
|
|
20531
|
-
if (W ===
|
|
20566
|
+
if (re && [Z.ol, Z.ul].includes(re.type) && (R = re, W = re.type), R && he.isElement(R) && W !== Z.paragraph) {
|
|
20567
|
+
if (W === Z.blockquote && !$.shiftKey) {
|
|
20532
20568
|
$.stopPropagation(), $.preventDefault(), Q.insertNodes(Y, v);
|
|
20533
20569
|
return;
|
|
20534
20570
|
}
|
|
@@ -20536,8 +20572,8 @@ const EC = ({
|
|
|
20536
20572
|
const [J, ae] = y.parent(Y, X, {
|
|
20537
20573
|
edge: "end"
|
|
20538
20574
|
}), G = J.type;
|
|
20539
|
-
if ([
|
|
20540
|
-
if ($.stopPropagation(), $.preventDefault(), G ===
|
|
20575
|
+
if ([Z.ul, Z.ol].includes(W))
|
|
20576
|
+
if ($.stopPropagation(), $.preventDefault(), G === Z.li && z === "Enter") {
|
|
20541
20577
|
J.children.length === 1 && "text" in J.children[0] && J.children[0].text === "" && Q.removeNodes(Y, { at: ae }), Q.insertNodes(Y, v, {
|
|
20542
20578
|
at: O.next(I)
|
|
20543
20579
|
}), Q.select(
|
|
@@ -20546,8 +20582,8 @@ const EC = ({
|
|
|
20546
20582
|
);
|
|
20547
20583
|
return;
|
|
20548
20584
|
} else {
|
|
20549
|
-
const [ye, ve] = Jw(Y,
|
|
20550
|
-
type:
|
|
20585
|
+
const [ye, ve] = Jw(Y, Z.li), Fe = {
|
|
20586
|
+
type: Z.li,
|
|
20551
20587
|
children: [{ text: "" }]
|
|
20552
20588
|
};
|
|
20553
20589
|
Q.insertNodes(Y, Fe, {
|
|
@@ -20622,7 +20658,7 @@ const EC = ({
|
|
|
20622
20658
|
}
|
|
20623
20659
|
) }) : /* @__PURE__ */ c.jsx(c.Fragment, {});
|
|
20624
20660
|
};
|
|
20625
|
-
const
|
|
20661
|
+
const W_ = ({
|
|
20626
20662
|
id: e = "form-toggle",
|
|
20627
20663
|
label: t,
|
|
20628
20664
|
options: n,
|
|
@@ -20644,7 +20680,7 @@ const q_ = ({
|
|
|
20644
20680
|
return /* @__PURE__ */ c.jsxs(
|
|
20645
20681
|
"div",
|
|
20646
20682
|
{
|
|
20647
|
-
className:
|
|
20683
|
+
className: H("toggle", s),
|
|
20648
20684
|
onClick: (d) => {
|
|
20649
20685
|
d.preventDefault(), d.stopPropagation(), u(o === n[0].value ? n[1].value : n[0].value);
|
|
20650
20686
|
},
|
|
@@ -20653,7 +20689,7 @@ const q_ = ({
|
|
|
20653
20689
|
/* @__PURE__ */ c.jsx(
|
|
20654
20690
|
"ul",
|
|
20655
20691
|
{
|
|
20656
|
-
className:
|
|
20692
|
+
className: H("toggle-options", {
|
|
20657
20693
|
disabled: a,
|
|
20658
20694
|
on: o === n[1].value
|
|
20659
20695
|
}),
|
|
@@ -20712,7 +20748,7 @@ function _C({
|
|
|
20712
20748
|
change: w = o.formatMessage({ id: `${l}cta_change` }),
|
|
20713
20749
|
uploading: B = o.formatMessage({ id: `${l}cta_uploading` })
|
|
20714
20750
|
} = (a == null ? void 0 : a.text) || {};
|
|
20715
|
-
return /* @__PURE__ */ c.jsxs("div", { className:
|
|
20751
|
+
return /* @__PURE__ */ c.jsxs("div", { className: H("profile-image-change-figure", e), children: [
|
|
20716
20752
|
/* @__PURE__ */ c.jsx(
|
|
20717
20753
|
$n,
|
|
20718
20754
|
{
|
|
@@ -20797,7 +20833,7 @@ const kC = ({
|
|
|
20797
20833
|
intlPath: "contactForm",
|
|
20798
20834
|
gtm: { context: r, event: i },
|
|
20799
20835
|
functions: { onSuccess: t, onFailure: n },
|
|
20800
|
-
button: {
|
|
20836
|
+
button: { className: "new" }
|
|
20801
20837
|
}
|
|
20802
20838
|
);
|
|
20803
20839
|
};
|
|
@@ -20853,7 +20889,7 @@ const FC = ({
|
|
|
20853
20889
|
{
|
|
20854
20890
|
style: { backgroundColor: a },
|
|
20855
20891
|
onSubmit: v,
|
|
20856
|
-
className:
|
|
20892
|
+
className: H("invite-form gtm-trackable"),
|
|
20857
20893
|
children: [
|
|
20858
20894
|
/* @__PURE__ */ c.jsxs("fieldset", { className: "content", children: [
|
|
20859
20895
|
/* @__PURE__ */ c.jsx("h2", { className: "title", style: { color: r }, children: e }),
|
|
@@ -20898,7 +20934,7 @@ const FC = ({
|
|
|
20898
20934
|
NEW_PASSWORD: "newPassword",
|
|
20899
20935
|
CONFIRMED_PASSWORD: "confirmedPassword",
|
|
20900
20936
|
CURRENT_PASSWORD: "oldPassword"
|
|
20901
|
-
},
|
|
20937
|
+
}, U_ = ({ functions: e, ...t }) => {
|
|
20902
20938
|
const { formatMessage: n } = le(), [r, i] = ue(null), [a, s] = ue(!1), [o, l] = ue({
|
|
20903
20939
|
isMoreThanEightCharacters: !1,
|
|
20904
20940
|
includesNumberAndSymbol: !1,
|
|
@@ -21110,7 +21146,7 @@ const AC = ({
|
|
|
21110
21146
|
"form",
|
|
21111
21147
|
{
|
|
21112
21148
|
onSubmit: d,
|
|
21113
|
-
className:
|
|
21149
|
+
className: H("search-form gtm-trackable", t),
|
|
21114
21150
|
role: "search",
|
|
21115
21151
|
"data-gtm-event-context": i,
|
|
21116
21152
|
"data-gtm-event-type": a,
|
|
@@ -21393,7 +21429,7 @@ const AC = ({
|
|
|
21393
21429
|
const OC = ({ className: e = "" }) => /* @__PURE__ */ c.jsxs(
|
|
21394
21430
|
"div",
|
|
21395
21431
|
{
|
|
21396
|
-
className:
|
|
21432
|
+
className: H("success-message", e),
|
|
21397
21433
|
"data-testid": "success-message",
|
|
21398
21434
|
children: [
|
|
21399
21435
|
/* @__PURE__ */ c.jsx("p", { className: "success-title", children: /* @__PURE__ */ c.jsx(ct, { id: "signup_success_title" }) }),
|
|
@@ -21422,7 +21458,7 @@ const PC = {
|
|
|
21422
21458
|
loadRecaptcha: !1,
|
|
21423
21459
|
showSuccessMessage: !1,
|
|
21424
21460
|
showError: !1
|
|
21425
|
-
},
|
|
21461
|
+
}, H_ = ({
|
|
21426
21462
|
className: e = "",
|
|
21427
21463
|
labels: t = {},
|
|
21428
21464
|
placeholders: n = {},
|
|
@@ -21493,7 +21529,7 @@ const PC = {
|
|
|
21493
21529
|
return g.successMessage && x ? /* @__PURE__ */ c.jsx(OC, { className: e }) : /* @__PURE__ */ c.jsxs(
|
|
21494
21530
|
"fieldset",
|
|
21495
21531
|
{
|
|
21496
|
-
className:
|
|
21532
|
+
className: H("signup-form-fieldset", e),
|
|
21497
21533
|
"data-testid": "signup-form",
|
|
21498
21534
|
children: [
|
|
21499
21535
|
g.title && /* @__PURE__ */ c.jsx("p", { className: "signup-title", children: /* @__PURE__ */ c.jsx(ct, { id: "signup_title" }) }),
|
|
@@ -21574,7 +21610,7 @@ const qn = ({
|
|
|
21574
21610
|
return /* @__PURE__ */ c.jsx(
|
|
21575
21611
|
"section",
|
|
21576
21612
|
{
|
|
21577
|
-
className:
|
|
21613
|
+
className: H("full-width-section", t, {
|
|
21578
21614
|
[i]: i !== "default",
|
|
21579
21615
|
[a]: a !== "none"
|
|
21580
21616
|
}),
|
|
@@ -21583,7 +21619,7 @@ const qn = ({
|
|
|
21583
21619
|
}
|
|
21584
21620
|
);
|
|
21585
21621
|
};
|
|
21586
|
-
const
|
|
21622
|
+
const V_ = ({ text: e, buttons: t, className: n = "" }) => {
|
|
21587
21623
|
const r = [];
|
|
21588
21624
|
return t.forEach((i) => {
|
|
21589
21625
|
r.push({
|
|
@@ -21596,7 +21632,7 @@ const H_ = ({ text: e, buttons: t, className: n = "" }) => {
|
|
|
21596
21632
|
target: "_blank",
|
|
21597
21633
|
children: i.text
|
|
21598
21634
|
});
|
|
21599
|
-
}), /* @__PURE__ */ c.jsx(qn, { className:
|
|
21635
|
+
}), /* @__PURE__ */ c.jsx(qn, { className: H("download-section", n), children: /* @__PURE__ */ c.jsxs("div", { className: "content-default", children: [
|
|
21600
21636
|
ie.createElement(
|
|
21601
21637
|
typeof e == "string" ? "h2" : e.element,
|
|
21602
21638
|
{ className: "text" },
|
|
@@ -21631,7 +21667,7 @@ const NC = ({
|
|
|
21631
21667
|
}
|
|
21632
21668
|
) })
|
|
21633
21669
|
] });
|
|
21634
|
-
},
|
|
21670
|
+
}, K_ = ({
|
|
21635
21671
|
children: e,
|
|
21636
21672
|
className: t = "",
|
|
21637
21673
|
formProps: n,
|
|
@@ -21660,7 +21696,7 @@ const NC = ({
|
|
|
21660
21696
|
r.props.functions.onCancel && r.props.functions.onCancel(), m();
|
|
21661
21697
|
}
|
|
21662
21698
|
}
|
|
21663
|
-
})), /* @__PURE__ */ c.jsxs("section", { className:
|
|
21699
|
+
})), /* @__PURE__ */ c.jsxs("section", { className: H("edit-section", t), children: [
|
|
21664
21700
|
g && /* @__PURE__ */ c.jsx(
|
|
21665
21701
|
Ln,
|
|
21666
21702
|
{
|
|
@@ -21669,7 +21705,7 @@ const NC = ({
|
|
|
21669
21705
|
showDivider: !1,
|
|
21670
21706
|
showIcon: !1,
|
|
21671
21707
|
functions: { onClose: m },
|
|
21672
|
-
className:
|
|
21708
|
+
className: H("edit-section-modal"),
|
|
21673
21709
|
children: b || (n ? /* @__PURE__ */ c.jsx(
|
|
21674
21710
|
Dn,
|
|
21675
21711
|
{
|
|
@@ -21693,7 +21729,7 @@ const NC = ({
|
|
|
21693
21729
|
) : /* @__PURE__ */ c.jsx(c.Fragment, {}))
|
|
21694
21730
|
}
|
|
21695
21731
|
),
|
|
21696
|
-
/* @__PURE__ */ c.jsxs("div", { className:
|
|
21732
|
+
/* @__PURE__ */ c.jsxs("div", { className: H("edit-section-header", { "no-title": !s }), children: [
|
|
21697
21733
|
s && /* @__PURE__ */ c.jsx("h2", { className: "edit-section-header-title", children: a }),
|
|
21698
21734
|
f && /* @__PURE__ */ c.jsx(
|
|
21699
21735
|
Be,
|
|
@@ -21719,7 +21755,7 @@ const NC = ({
|
|
|
21719
21755
|
u && /* @__PURE__ */ c.jsx(an, {})
|
|
21720
21756
|
] });
|
|
21721
21757
|
};
|
|
21722
|
-
const
|
|
21758
|
+
const Z_ = ({
|
|
21723
21759
|
title: e = !1,
|
|
21724
21760
|
text: t,
|
|
21725
21761
|
logos: n = [],
|
|
@@ -21737,21 +21773,21 @@ const K_ = ({
|
|
|
21737
21773
|
return /* @__PURE__ */ c.jsxs(
|
|
21738
21774
|
"div",
|
|
21739
21775
|
{
|
|
21740
|
-
className:
|
|
21776
|
+
className: H("logos", i, `align-${l}`, {
|
|
21741
21777
|
[u]: u !== "block",
|
|
21742
21778
|
"wrap-logos": o
|
|
21743
21779
|
}),
|
|
21744
21780
|
children: [
|
|
21745
21781
|
e && ie.createElement(
|
|
21746
21782
|
s.element,
|
|
21747
|
-
{ className:
|
|
21783
|
+
{ className: H("title", s.className) },
|
|
21748
21784
|
s.text
|
|
21749
21785
|
),
|
|
21750
21786
|
t && /* @__PURE__ */ c.jsx("p", { children: t }),
|
|
21751
21787
|
/* @__PURE__ */ c.jsx(
|
|
21752
21788
|
"ul",
|
|
21753
21789
|
{
|
|
21754
|
-
className:
|
|
21790
|
+
className: H({
|
|
21755
21791
|
"two-col": a === 2 || a === 4,
|
|
21756
21792
|
"three-col": a === 5 || a <= 10 && a % 3 === 0
|
|
21757
21793
|
}),
|
|
@@ -21779,7 +21815,7 @@ const K_ = ({
|
|
|
21779
21815
|
);
|
|
21780
21816
|
};
|
|
21781
21817
|
let is;
|
|
21782
|
-
const as = "contactFooter_",
|
|
21818
|
+
const as = "contactFooter_", Y_ = ({ onSuccess: e = async () => {
|
|
21783
21819
|
}, onFailure: t = () => {
|
|
21784
21820
|
} }) => {
|
|
21785
21821
|
const n = _e(null), [r, i] = ie.useState(0), [a, s] = ie.useState(!1), o = () => {
|
|
@@ -21816,7 +21852,7 @@ const as = "contactFooter_", Z_ = ({ onSuccess: e = async () => {
|
|
|
21816
21852
|
}
|
|
21817
21853
|
)
|
|
21818
21854
|
] }) });
|
|
21819
|
-
},
|
|
21855
|
+
}, G_ = ({ activeLink: e, profile: t, ...n }) => /* @__PURE__ */ c.jsx(qn, { children: /* @__PURE__ */ c.jsx(Up, { layout: "1-3", children: /* @__PURE__ */ c.jsxs(c.Fragment, { children: [
|
|
21820
21856
|
/* @__PURE__ */ c.jsx(Lp, { activeLink: e, profile: t }),
|
|
21821
21857
|
/* @__PURE__ */ c.jsx(pm, { ...n })
|
|
21822
21858
|
] }) }) });
|
|
@@ -22334,7 +22370,7 @@ const tr = "footer_", Zi = "SiteFooter", Dc = ({ group: e }) => {
|
|
|
22334
22370
|
return /* @__PURE__ */ c.jsxs(
|
|
22335
22371
|
"li",
|
|
22336
22372
|
{
|
|
22337
|
-
className:
|
|
22373
|
+
className: H({
|
|
22338
22374
|
[o.className]: o.className,
|
|
22339
22375
|
"has-submenu": m,
|
|
22340
22376
|
parent: g,
|
|
@@ -22365,7 +22401,7 @@ const tr = "footer_", Zi = "SiteFooter", Dc = ({ group: e }) => {
|
|
|
22365
22401
|
return o[B].order ? /* @__PURE__ */ c.jsxs(
|
|
22366
22402
|
"li",
|
|
22367
22403
|
{
|
|
22368
|
-
className:
|
|
22404
|
+
className: H({
|
|
22369
22405
|
[o[B].className]: o[B].className
|
|
22370
22406
|
}),
|
|
22371
22407
|
children: [
|
|
@@ -22587,7 +22623,7 @@ const Zf = ({ showNavigation: e = !0 }) => {
|
|
|
22587
22623
|
"nav",
|
|
22588
22624
|
{
|
|
22589
22625
|
id: "header",
|
|
22590
|
-
className:
|
|
22626
|
+
className: H({
|
|
22591
22627
|
"logged-in": i,
|
|
22592
22628
|
"logged-out": !i,
|
|
22593
22629
|
visible: l
|
|
@@ -22661,7 +22697,7 @@ const Zf = ({ showNavigation: e = !0 }) => {
|
|
|
22661
22697
|
/* @__PURE__ */ c.jsx(
|
|
22662
22698
|
"div",
|
|
22663
22699
|
{
|
|
22664
|
-
className:
|
|
22700
|
+
className: H("overlay", {
|
|
22665
22701
|
open: u[
|
|
22666
22702
|
"site-navigation"
|
|
22667
22703
|
/* SITE */
|
|
@@ -22720,14 +22756,14 @@ const IC = () => {
|
|
|
22720
22756
|
"div",
|
|
22721
22757
|
{
|
|
22722
22758
|
id: "wrapper",
|
|
22723
|
-
className:
|
|
22759
|
+
className: H(s, x, { "has-footer": u }),
|
|
22724
22760
|
children: [
|
|
22725
22761
|
/* @__PURE__ */ c.jsx(Zf, { showNavigation: l }),
|
|
22726
22762
|
/* @__PURE__ */ c.jsxs("main", { id: "content-wrapper", children: [
|
|
22727
22763
|
B && /* @__PURE__ */ c.jsx(
|
|
22728
22764
|
"div",
|
|
22729
22765
|
{
|
|
22730
|
-
className:
|
|
22766
|
+
className: H("additional-content prepended", {
|
|
22731
22767
|
"large-modal": m === "large"
|
|
22732
22768
|
}),
|
|
22733
22769
|
children: B
|
|
@@ -22736,7 +22772,7 @@ const IC = () => {
|
|
|
22736
22772
|
ie.createElement(d === "bold" ? rd : "div", {
|
|
22737
22773
|
id: "content",
|
|
22738
22774
|
children: w,
|
|
22739
|
-
className:
|
|
22775
|
+
className: H({ "large-modal": m === "large" })
|
|
22740
22776
|
})
|
|
22741
22777
|
] }),
|
|
22742
22778
|
E && /* @__PURE__ */ c.jsx("div", { className: "additional-content appended", children: E }),
|
|
@@ -22786,7 +22822,7 @@ const IC = () => {
|
|
|
22786
22822
|
return ls[e] ? (e = ls[e], { id: e, text: `${xc.default}${e}` }) : null;
|
|
22787
22823
|
}
|
|
22788
22824
|
};
|
|
22789
|
-
const
|
|
22825
|
+
const Q_ = ({
|
|
22790
22826
|
tags: e = [],
|
|
22791
22827
|
color: t = "default",
|
|
22792
22828
|
forceOneLine: n = !1,
|
|
@@ -22807,7 +22843,7 @@ const G_ = ({
|
|
|
22807
22843
|
}), l.length < 1 ? null : /* @__PURE__ */ c.jsx(
|
|
22808
22844
|
"ul",
|
|
22809
22845
|
{
|
|
22810
|
-
className:
|
|
22846
|
+
className: H("tags text-small", t, i, {
|
|
22811
22847
|
"one-line": n
|
|
22812
22848
|
}),
|
|
22813
22849
|
children: l.map((u) => {
|
|
@@ -22827,7 +22863,7 @@ const G_ = ({
|
|
|
22827
22863
|
);
|
|
22828
22864
|
};
|
|
22829
22865
|
var gt = /* @__PURE__ */ ((e) => (e.COMMUNITIES = "communities", e.PLATFORM = "platform", e))(gt || {});
|
|
22830
|
-
const
|
|
22866
|
+
const J_ = ({
|
|
22831
22867
|
members: { data: e = [], total: t = e.length },
|
|
22832
22868
|
communitySlug: n,
|
|
22833
22869
|
isMember: r = !1,
|
|
@@ -22840,7 +22876,7 @@ const Q_ = ({
|
|
|
22840
22876
|
className: u = ""
|
|
22841
22877
|
}) => {
|
|
22842
22878
|
const d = le(), h = "membersList", p = Ne(vt), [m, g] = ue(!1);
|
|
22843
|
-
return e.length === 0 ? null : /* @__PURE__ */ c.jsxs("div", { className:
|
|
22879
|
+
return e.length === 0 ? null : /* @__PURE__ */ c.jsxs("div", { className: H("members-list", u), children: [
|
|
22844
22880
|
/* @__PURE__ */ c.jsxs("h1", { children: [
|
|
22845
22881
|
d.formatMessage({ id: h }),
|
|
22846
22882
|
/* @__PURE__ */ c.jsx("span", { className: "count", children: t })
|
|
@@ -23199,7 +23235,7 @@ const nt = "discussion_form_", ha = ({
|
|
|
23199
23235
|
Dn,
|
|
23200
23236
|
{
|
|
23201
23237
|
id: re,
|
|
23202
|
-
className:
|
|
23238
|
+
className: H("discussion-card discussion-form", {
|
|
23203
23239
|
"no-styling": w && x
|
|
23204
23240
|
}),
|
|
23205
23241
|
meta: {
|
|
@@ -23223,7 +23259,6 @@ const nt = "discussion_form_", ha = ({
|
|
|
23223
23259
|
button: {
|
|
23224
23260
|
variant: "primary",
|
|
23225
23261
|
size: { mobile: "small", 600: "medium" },
|
|
23226
|
-
className: "gtm-trackable",
|
|
23227
23262
|
"data-gtm-event-context": p,
|
|
23228
23263
|
"data-gtm-event-type": `${x ? "save" : "submit"}-${n.type}-click`,
|
|
23229
23264
|
"data-testid": "save-button",
|
|
@@ -23240,7 +23275,6 @@ const nt = "discussion_form_", ha = ({
|
|
|
23240
23275
|
secondaryActionButton: {
|
|
23241
23276
|
variant: "secondary",
|
|
23242
23277
|
size: { mobile: "small", 600: "medium" },
|
|
23243
|
-
className: "gtm-trackable",
|
|
23244
23278
|
"data-gtm-event-context": p,
|
|
23245
23279
|
"data-gtm-event-type": `cancel-${n.type}-click`,
|
|
23246
23280
|
disabled: !l.cancel && (!g || !g.id || !$.body),
|
|
@@ -23305,7 +23339,7 @@ const Qi = ({
|
|
|
23305
23339
|
}) => /* @__PURE__ */ c.jsx(
|
|
23306
23340
|
Be,
|
|
23307
23341
|
{
|
|
23308
|
-
className:
|
|
23342
|
+
className: H("discussion-button", t),
|
|
23309
23343
|
variant: "tertiary",
|
|
23310
23344
|
icon: e,
|
|
23311
23345
|
...n
|
|
@@ -23403,7 +23437,7 @@ const ZC = ({
|
|
|
23403
23437
|
/* @__PURE__ */ c.jsx(
|
|
23404
23438
|
Qi,
|
|
23405
23439
|
{
|
|
23406
|
-
className:
|
|
23440
|
+
className: H("discussion-button text-medium action-button", {
|
|
23407
23441
|
"show-spinner": f,
|
|
23408
23442
|
"is-liked": g,
|
|
23409
23443
|
disabled: !s
|
|
@@ -23532,7 +23566,7 @@ const ZC = ({
|
|
|
23532
23566
|
}) => {
|
|
23533
23567
|
const r = {
|
|
23534
23568
|
...n,
|
|
23535
|
-
class:
|
|
23569
|
+
class: H("subtle", t)
|
|
23536
23570
|
};
|
|
23537
23571
|
return /* @__PURE__ */ c.jsx("blockquote", { ...r, children: e });
|
|
23538
23572
|
}, YC = 280, Yf = async (e, t, n, r = () => Promise.resolve([])) => {
|
|
@@ -23592,7 +23626,7 @@ const GC = 3e3, QC = ({
|
|
|
23592
23626
|
/* @__PURE__ */ c.jsx(
|
|
23593
23627
|
mr,
|
|
23594
23628
|
{
|
|
23595
|
-
className:
|
|
23629
|
+
className: H({
|
|
23596
23630
|
copied: i.isCopied
|
|
23597
23631
|
}),
|
|
23598
23632
|
isOpen: i.isOpen,
|
|
@@ -23628,7 +23662,7 @@ const ma = ({
|
|
|
23628
23662
|
isCommunity: f = !1,
|
|
23629
23663
|
badges: b
|
|
23630
23664
|
}) => {
|
|
23631
|
-
var Ge, Ke, Se, Pe, we, We, Ve,
|
|
23665
|
+
var Ge, Ke, Se, Pe, we, We, Ve, K;
|
|
23632
23666
|
const v = le(), w = Ne(vt), B = Ne(Oo), {
|
|
23633
23667
|
createContent: E = async () => {
|
|
23634
23668
|
},
|
|
@@ -23783,7 +23817,7 @@ const ma = ({
|
|
|
23783
23817
|
"data-gtm-event-context": d,
|
|
23784
23818
|
"data-gtm-event-type": `edit-${t.type}-click`
|
|
23785
23819
|
}), g && ((Ge = k == null ? void 0 : k.current) == null || Ge.focus(), (Ke = k == null ? void 0 : k.current) == null || Ke.scrollIntoView({ behavior: "smooth" })), ie.createElement(e, {
|
|
23786
|
-
className:
|
|
23820
|
+
className: H("discussion-post", u, {
|
|
23787
23821
|
[re]: !u || !u.includes("highlighted-text-box"),
|
|
23788
23822
|
"has-link": l.post && !_.isEditing,
|
|
23789
23823
|
"is-pinned": (t == null ? void 0 : t.pinned) || !1
|
|
@@ -23808,7 +23842,7 @@ const ma = ({
|
|
|
23808
23842
|
"div",
|
|
23809
23843
|
{
|
|
23810
23844
|
id: N || t.slug,
|
|
23811
|
-
className:
|
|
23845
|
+
className: H("discussion-card", t.type, {
|
|
23812
23846
|
editing: _.isEditing,
|
|
23813
23847
|
"has-link": l.post && !_.isEditing
|
|
23814
23848
|
}),
|
|
@@ -23902,7 +23936,7 @@ const ma = ({
|
|
|
23902
23936
|
!_.isEditing && !(s != null && s.actionBar) && /* @__PURE__ */ c.jsxs(
|
|
23903
23937
|
"ul",
|
|
23904
23938
|
{
|
|
23905
|
-
className:
|
|
23939
|
+
className: H("actions text-medium", t.type),
|
|
23906
23940
|
"data-testid": `${t.type}-actions`,
|
|
23907
23941
|
children: [
|
|
23908
23942
|
!s.likes && /* @__PURE__ */ c.jsx(
|
|
@@ -23956,7 +23990,7 @@ const ma = ({
|
|
|
23956
23990
|
m && /* @__PURE__ */ c.jsx(
|
|
23957
23991
|
QC,
|
|
23958
23992
|
{
|
|
23959
|
-
url: (Se = t.slugs) != null && Se.reply ? `${window.location.origin}${(Pe = t.slugs) == null ? void 0 : Pe.question}/${(we = t.slugs) == null ? void 0 : we.answer}#${(We = t.slugs) == null ? void 0 : We.reply}` : `${window.location.origin}${(Ve = t.slugs) == null ? void 0 : Ve.question}/${(
|
|
23993
|
+
url: (Se = t.slugs) != null && Se.reply ? `${window.location.origin}${(Pe = t.slugs) == null ? void 0 : Pe.question}/${(we = t.slugs) == null ? void 0 : we.answer}#${(We = t.slugs) == null ? void 0 : We.reply}` : `${window.location.origin}${(Ve = t.slugs) == null ? void 0 : Ve.question}/${(K = t.slugs) == null ? void 0 : K.answer}`,
|
|
23960
23994
|
gtm: { context: d, event: `copy-link-${t.type}-click` }
|
|
23961
23995
|
}
|
|
23962
23996
|
),
|
|
@@ -24104,7 +24138,7 @@ const XC = Kr(
|
|
|
24104
24138
|
/* @__PURE__ */ c.jsxs(
|
|
24105
24139
|
"button",
|
|
24106
24140
|
{
|
|
24107
|
-
className:
|
|
24141
|
+
className: H("discussion-form-card", n),
|
|
24108
24142
|
onClick: (b) => {
|
|
24109
24143
|
b.preventDefault(), b.stopPropagation(), h((v) => ({ ...v, form: !0 }));
|
|
24110
24144
|
},
|
|
@@ -24114,7 +24148,7 @@ const XC = Kr(
|
|
|
24114
24148
|
/* @__PURE__ */ c.jsx(
|
|
24115
24149
|
sr,
|
|
24116
24150
|
{
|
|
24117
|
-
className:
|
|
24151
|
+
className: H("input", { placeholder: !p.showCachedText }),
|
|
24118
24152
|
element: "span",
|
|
24119
24153
|
options: {
|
|
24120
24154
|
forceInline: !0,
|
|
@@ -24291,7 +24325,7 @@ const iE = ({
|
|
|
24291
24325
|
return /* @__PURE__ */ c.jsxs(
|
|
24292
24326
|
"div",
|
|
24293
24327
|
{
|
|
24294
|
-
className:
|
|
24328
|
+
className: H("thread-wrapper", {
|
|
24295
24329
|
"empty-thread": !o
|
|
24296
24330
|
}),
|
|
24297
24331
|
children: [
|
|
@@ -24919,7 +24953,7 @@ function _E(e) {
|
|
|
24919
24953
|
var t;
|
|
24920
24954
|
return ((t = e == null ? void 0 : e.pages) == null ? void 0 : t.reduce((n, { results: r }) => [...n, ...r], [])) || [];
|
|
24921
24955
|
}
|
|
24922
|
-
const
|
|
24956
|
+
const X_ = ({
|
|
24923
24957
|
basePath: e,
|
|
24924
24958
|
parentId: t,
|
|
24925
24959
|
isMember: n,
|
|
@@ -25142,7 +25176,7 @@ const J_ = ({
|
|
|
25142
25176
|
),
|
|
25143
25177
|
/* @__PURE__ */ c.jsx(Qf, { form: l })
|
|
25144
25178
|
] });
|
|
25145
|
-
},
|
|
25179
|
+
}, ek = {
|
|
25146
25180
|
next: "id_lt=67ef0342-6f6e-4807-beea-5a9184ec140c&limit=5",
|
|
25147
25181
|
results: [
|
|
25148
25182
|
{
|
|
@@ -26315,7 +26349,7 @@ function HE({
|
|
|
26315
26349
|
});
|
|
26316
26350
|
return i;
|
|
26317
26351
|
}
|
|
26318
|
-
const
|
|
26352
|
+
const tk = ({
|
|
26319
26353
|
basePath: e,
|
|
26320
26354
|
parentId: t,
|
|
26321
26355
|
activityId: n,
|
|
@@ -26468,7 +26502,7 @@ const VE = ({
|
|
|
26468
26502
|
(p !== "" || m !== "") && l((b) => ({ ...b, showCachedText: !0 })), o();
|
|
26469
26503
|
}
|
|
26470
26504
|
},
|
|
26471
|
-
className:
|
|
26505
|
+
className: H("discussion-form-modal", i),
|
|
26472
26506
|
children: /* @__PURE__ */ c.jsx(
|
|
26473
26507
|
ha,
|
|
26474
26508
|
{
|
|
@@ -26523,7 +26557,7 @@ const VE = ({
|
|
|
26523
26557
|
__proto__: null,
|
|
26524
26558
|
default: VE
|
|
26525
26559
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
26526
|
-
const
|
|
26560
|
+
const nk = ({
|
|
26527
26561
|
className: e,
|
|
26528
26562
|
showModal: t = !0,
|
|
26529
26563
|
title: n,
|
|
@@ -26546,7 +26580,7 @@ const tk = ({
|
|
|
26546
26580
|
showDivider: !1,
|
|
26547
26581
|
showIcon: s,
|
|
26548
26582
|
functions: { onClose: o },
|
|
26549
|
-
className:
|
|
26583
|
+
className: H("invite-modal", e, { success: !!n }),
|
|
26550
26584
|
children: /* @__PURE__ */ c.jsx(
|
|
26551
26585
|
FC,
|
|
26552
26586
|
{
|
|
@@ -26586,7 +26620,7 @@ const Ro = ({
|
|
|
26586
26620
|
functions: {
|
|
26587
26621
|
onClose: d
|
|
26588
26622
|
},
|
|
26589
|
-
className:
|
|
26623
|
+
className: H("profile-modal", s, { success: !!t }),
|
|
26590
26624
|
maxWidth: 700,
|
|
26591
26625
|
children: /* @__PURE__ */ c.jsxs(c.Fragment, { children: [
|
|
26592
26626
|
t && n || r ? /* @__PURE__ */ c.jsxs("div", { className: "intro", children: [
|
|
@@ -26619,7 +26653,7 @@ const Ro = ({
|
|
|
26619
26653
|
__proto__: null,
|
|
26620
26654
|
default: Ro
|
|
26621
26655
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
26622
|
-
const
|
|
26656
|
+
const rk = ({ members: e }) => {
|
|
26623
26657
|
const [t, n] = ue(!1), r = (i) => {
|
|
26624
26658
|
const { fullName: a, jobTitle: s, organisation: o, photo: l } = i || {};
|
|
26625
26659
|
return /* @__PURE__ */ c.jsxs(c.Fragment, { children: [
|
|
@@ -26665,13 +26699,13 @@ const YE = ({
|
|
|
26665
26699
|
content: n,
|
|
26666
26700
|
member: r,
|
|
26667
26701
|
className: i = ""
|
|
26668
|
-
}) => /* @__PURE__ */ c.jsxs("blockquote", { className:
|
|
26702
|
+
}) => /* @__PURE__ */ c.jsxs("blockquote", { className: H("testimonial-block", i), children: [
|
|
26669
26703
|
/* @__PURE__ */ c.jsx(Kt, { className: "testimonial", children: n }),
|
|
26670
26704
|
r ? /* @__PURE__ */ c.jsx(bn, { member: r, styling: { size: "large" } }) : /* @__PURE__ */ c.jsxs(c.Fragment, { children: [
|
|
26671
26705
|
e && /* @__PURE__ */ c.jsx(
|
|
26672
26706
|
"p",
|
|
26673
26707
|
{
|
|
26674
|
-
className:
|
|
26708
|
+
className: H("author", {
|
|
26675
26709
|
"text-small": !i.includes("new")
|
|
26676
26710
|
}),
|
|
26677
26711
|
children: e
|
|
@@ -26680,15 +26714,15 @@ const YE = ({
|
|
|
26680
26714
|
t && /* @__PURE__ */ c.jsx(
|
|
26681
26715
|
"p",
|
|
26682
26716
|
{
|
|
26683
|
-
className:
|
|
26717
|
+
className: H("author-cite", {
|
|
26684
26718
|
"text-small": !i.includes("new")
|
|
26685
26719
|
}),
|
|
26686
26720
|
children: /* @__PURE__ */ c.jsx("cite", { children: t })
|
|
26687
26721
|
}
|
|
26688
26722
|
)
|
|
26689
26723
|
] })
|
|
26690
|
-
] }),
|
|
26691
|
-
const
|
|
26724
|
+
] }), ik = Gt(YE);
|
|
26725
|
+
const ak = ({
|
|
26692
26726
|
items: e = [],
|
|
26693
26727
|
selector: t = "",
|
|
26694
26728
|
className: n = ""
|
|
@@ -26712,7 +26746,7 @@ const ik = ({
|
|
|
26712
26746
|
Zt,
|
|
26713
26747
|
{
|
|
26714
26748
|
variant: "subtle",
|
|
26715
|
-
className:
|
|
26749
|
+
className: H("table-of-contents", n),
|
|
26716
26750
|
children: [
|
|
26717
26751
|
/* @__PURE__ */ c.jsx("h2", { children: r.formatMessage({ id: "tableOfContents" }) }),
|
|
26718
26752
|
/* @__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)) }) })
|
|
@@ -26754,9 +26788,9 @@ const Io = ({
|
|
|
26754
26788
|
{ early: u, late: h }
|
|
26755
26789
|
);
|
|
26756
26790
|
}
|
|
26757
|
-
return n && (u = `${n} ${u}`, l = `${n} ${l}`), r && (u = `${u} ${r}`, l = `${l} ${r}`), /* @__PURE__ */ c.jsx("span", { className:
|
|
26791
|
+
return n && (u = `${n} ${u}`, l = `${n} ${l}`), r && (u = `${u} ${r}`, l = `${l} ${r}`), /* @__PURE__ */ c.jsx("span", { className: H("time-to-complete", i), "aria-label": u, children: l });
|
|
26758
26792
|
};
|
|
26759
|
-
const
|
|
26793
|
+
const sk = ({ className: e = "", image: t, ...n }) => t ? (typeof t == "string" && (t = {
|
|
26760
26794
|
width: 1080,
|
|
26761
26795
|
height: 200,
|
|
26762
26796
|
type: "image/png",
|
|
@@ -26769,7 +26803,7 @@ const ak = ({ className: e = "", image: t, ...n }) => t ? (typeof t == "string"
|
|
|
26769
26803
|
Yr,
|
|
26770
26804
|
{
|
|
26771
26805
|
...n,
|
|
26772
|
-
className:
|
|
26806
|
+
className: H("banner", e),
|
|
26773
26807
|
image: { ...t, aspect: "banner" }
|
|
26774
26808
|
}
|
|
26775
26809
|
)) : null;
|
|
@@ -26840,7 +26874,7 @@ const GE = [
|
|
|
26840
26874
|
}), /* @__PURE__ */ c.jsx(
|
|
26841
26875
|
qn,
|
|
26842
26876
|
{
|
|
26843
|
-
className:
|
|
26877
|
+
className: H("banner-section", r, i, e, {
|
|
26844
26878
|
"has-image": n,
|
|
26845
26879
|
"image-full-width": n && u.imageFullWidth,
|
|
26846
26880
|
"image-inline": n && !u.imageFullWidth,
|
|
@@ -26864,7 +26898,7 @@ const GE = [
|
|
|
26864
26898
|
size: { mobile: "medium", 768: "large" },
|
|
26865
26899
|
href: o.link,
|
|
26866
26900
|
...o.props,
|
|
26867
|
-
className:
|
|
26901
|
+
className: H({
|
|
26868
26902
|
new: r === "subtle",
|
|
26869
26903
|
[(g = o.props) == null ? void 0 : g.className]: (f = o.props) == null ? void 0 : f.className
|
|
26870
26904
|
}),
|
|
@@ -26884,8 +26918,8 @@ const GE = [
|
|
|
26884
26918
|
] })
|
|
26885
26919
|
}
|
|
26886
26920
|
);
|
|
26887
|
-
},
|
|
26888
|
-
const
|
|
26921
|
+
}, ok = Gt(QE);
|
|
26922
|
+
const uk = ({
|
|
26889
26923
|
image: e,
|
|
26890
26924
|
variant: t = "default",
|
|
26891
26925
|
children: n,
|
|
@@ -26895,7 +26929,7 @@ const ok = ({
|
|
|
26895
26929
|
return e && (i["--image"] = `url(${e})`), /* @__PURE__ */ c.jsx(
|
|
26896
26930
|
qn,
|
|
26897
26931
|
{
|
|
26898
|
-
className:
|
|
26932
|
+
className: H("custom-content-banner", t, r, {
|
|
26899
26933
|
"has-image": e
|
|
26900
26934
|
}),
|
|
26901
26935
|
style: i,
|
|
@@ -26910,11 +26944,11 @@ const JE = ({
|
|
|
26910
26944
|
image: r
|
|
26911
26945
|
}) => {
|
|
26912
26946
|
const i = typeof n == "string" ? /* @__PURE__ */ c.jsx(sr, { children: n }) : n;
|
|
26913
|
-
return /* @__PURE__ */ c.jsxs(qn, { className:
|
|
26947
|
+
return /* @__PURE__ */ c.jsxs(qn, { className: H("highlight-section", t), children: [
|
|
26914
26948
|
r && /* @__PURE__ */ c.jsx(
|
|
26915
26949
|
"div",
|
|
26916
26950
|
{
|
|
26917
|
-
className:
|
|
26951
|
+
className: H("highlight-container highlight-image", {
|
|
26918
26952
|
[`highlight-image-${e}`]: e === "right"
|
|
26919
26953
|
}),
|
|
26920
26954
|
children: /* @__PURE__ */ c.jsx(
|
|
@@ -26931,13 +26965,13 @@ const JE = ({
|
|
|
26931
26965
|
/* @__PURE__ */ c.jsx(
|
|
26932
26966
|
"div",
|
|
26933
26967
|
{
|
|
26934
|
-
className:
|
|
26968
|
+
className: H("highlight-container highlight-content-wrapper", {
|
|
26935
26969
|
"no-image": !r
|
|
26936
26970
|
}),
|
|
26937
26971
|
children: /* @__PURE__ */ c.jsx(
|
|
26938
26972
|
"div",
|
|
26939
26973
|
{
|
|
26940
|
-
className:
|
|
26974
|
+
className: H("highlight-content", {
|
|
26941
26975
|
"highlight-content-right": e === "left"
|
|
26942
26976
|
}),
|
|
26943
26977
|
children: r ? i : /* @__PURE__ */ c.jsx("div", { className: "content-default", children: i })
|
|
@@ -26946,14 +26980,14 @@ const JE = ({
|
|
|
26946
26980
|
}
|
|
26947
26981
|
)
|
|
26948
26982
|
] });
|
|
26949
|
-
},
|
|
26950
|
-
const
|
|
26983
|
+
}, lk = Gt(JE);
|
|
26984
|
+
const ck = ({
|
|
26951
26985
|
variant: e = "primary",
|
|
26952
26986
|
button: t = null,
|
|
26953
26987
|
title: n,
|
|
26954
26988
|
text: r,
|
|
26955
26989
|
gtmContext: i
|
|
26956
|
-
}) => !n && !r ? null : /* @__PURE__ */ c.jsxs("aside", { className:
|
|
26990
|
+
}) => !n && !r ? null : /* @__PURE__ */ c.jsxs("aside", { className: H("marketing-block", e), children: [
|
|
26957
26991
|
n && /* @__PURE__ */ c.jsx("p", { className: "title", children: n }),
|
|
26958
26992
|
r && /* @__PURE__ */ c.jsx("p", { children: r }),
|
|
26959
26993
|
t && /* @__PURE__ */ c.jsx(
|
|
@@ -27145,7 +27179,7 @@ const lk = ({
|
|
|
27145
27179
|
return /* @__PURE__ */ c.jsx(
|
|
27146
27180
|
"p",
|
|
27147
27181
|
{
|
|
27148
|
-
className:
|
|
27182
|
+
className: H("cta-wrapper", {
|
|
27149
27183
|
"has-member-section": e == null ? void 0 : e.members
|
|
27150
27184
|
}),
|
|
27151
27185
|
children: /* @__PURE__ */ c.jsx(
|
|
@@ -27267,7 +27301,7 @@ const ah = ({
|
|
|
27267
27301
|
}, (M = p == null ? void 0 : p.current) == null || M.focus(), (F = p == null ? void 0 : p.current) == null || F.scrollIntoView({ behavior: "smooth" })), /* @__PURE__ */ c.jsx(
|
|
27268
27302
|
"li",
|
|
27269
27303
|
{
|
|
27270
|
-
className:
|
|
27304
|
+
className: H("card-wrapper text-medium", B, t, {
|
|
27271
27305
|
"has-link": A,
|
|
27272
27306
|
"no-link": !A,
|
|
27273
27307
|
"has-image": f.banner
|
|
@@ -27353,7 +27387,7 @@ const ah = ({
|
|
|
27353
27387
|
}
|
|
27354
27388
|
);
|
|
27355
27389
|
};
|
|
27356
|
-
const r_ = ({ cards: e, cardTypes: t, className: n = "", ...r }) => /* @__PURE__ */ c.jsx("ul", { className:
|
|
27390
|
+
const r_ = ({ cards: e, cardTypes: t, className: n = "", ...r }) => /* @__PURE__ */ c.jsx("ul", { className: H("card-block", n), children: e.map((i, a) => {
|
|
27357
27391
|
const s = i.slug ? `${i.slug}-${t[a]}` : `${t[a]}-${a}`;
|
|
27358
27392
|
return /* @__PURE__ */ c.jsx(
|
|
27359
27393
|
ah,
|
|
@@ -27374,7 +27408,7 @@ const r_ = ({ cards: e, cardTypes: t, className: n = "", ...r }) => /* @__PURE__
|
|
|
27374
27408
|
return null;
|
|
27375
27409
|
const { text: r, element: i = "h2", variant: a = "default", size: s = "medium", link: o } = t;
|
|
27376
27410
|
return ie.createElement(i, {
|
|
27377
|
-
className:
|
|
27411
|
+
className: H("title", a, s, {
|
|
27378
27412
|
"highlighted-title": a === "highlighted"
|
|
27379
27413
|
}),
|
|
27380
27414
|
children: /* @__PURE__ */ c.jsxs(c.Fragment, { children: [
|
|
@@ -27487,7 +27521,7 @@ const s_ = ({
|
|
|
27487
27521
|
"section",
|
|
27488
27522
|
{
|
|
27489
27523
|
ref: A,
|
|
27490
|
-
className:
|
|
27524
|
+
className: H("carousel-wrapper", a),
|
|
27491
27525
|
"data-testid": "carousel",
|
|
27492
27526
|
children: [
|
|
27493
27527
|
/* @__PURE__ */ c.jsx(a_, { id: e, title: i }),
|
|
@@ -27547,7 +27581,7 @@ const s_ = ({
|
|
|
27547
27581
|
children: /* @__PURE__ */ c.jsx(
|
|
27548
27582
|
"button",
|
|
27549
27583
|
{
|
|
27550
|
-
className:
|
|
27584
|
+
className: H("page-indicator", {
|
|
27551
27585
|
selected: S === b
|
|
27552
27586
|
}),
|
|
27553
27587
|
onClick: (N) => {
|
|
@@ -27590,7 +27624,7 @@ const s_ = ({
|
|
|
27590
27624
|
]
|
|
27591
27625
|
}
|
|
27592
27626
|
);
|
|
27593
|
-
},
|
|
27627
|
+
}, dk = ({
|
|
27594
27628
|
carousels: e = [],
|
|
27595
27629
|
isLoading: t,
|
|
27596
27630
|
title: n,
|
|
@@ -27622,7 +27656,7 @@ const s_ = ({
|
|
|
27622
27656
|
] }, `carousel-${d}`);
|
|
27623
27657
|
}
|
|
27624
27658
|
);
|
|
27625
|
-
const
|
|
27659
|
+
const fk = ({
|
|
27626
27660
|
element: e = "p",
|
|
27627
27661
|
data: {
|
|
27628
27662
|
timeLeftToFinish: t,
|
|
@@ -27638,7 +27672,7 @@ const dk = ({
|
|
|
27638
27672
|
u > 99 ? u = 100 : u < 1 && (u = 0);
|
|
27639
27673
|
const { highlightPercentage: d = !1 } = s;
|
|
27640
27674
|
return ie.createElement(e, {
|
|
27641
|
-
className:
|
|
27675
|
+
className: H("course-progression", o, {
|
|
27642
27676
|
"highlight-percentage": d,
|
|
27643
27677
|
"has-circle-graph": a === "circle"
|
|
27644
27678
|
}),
|
|
@@ -27677,7 +27711,7 @@ const o_ = ({
|
|
|
27677
27711
|
title: r,
|
|
27678
27712
|
className: i = ""
|
|
27679
27713
|
}) => ie.createElement(e, {
|
|
27680
|
-
className:
|
|
27714
|
+
className: H("lesson-name", i),
|
|
27681
27715
|
"data-number": `${t}.${n}`,
|
|
27682
27716
|
children: r
|
|
27683
27717
|
});
|
|
@@ -27690,15 +27724,15 @@ const u_ = ({
|
|
|
27690
27724
|
children: a
|
|
27691
27725
|
}) => {
|
|
27692
27726
|
const s = le(), o = Xs(`lessonType_${i}`) ? s.formatMessage({ id: `lessonType_${i}` }) : Mh(i || "");
|
|
27693
|
-
return /* @__PURE__ */ c.jsxs("small", { className:
|
|
27694
|
-
/* @__PURE__ */ c.jsx("span", { className:
|
|
27727
|
+
return /* @__PURE__ */ c.jsxs("small", { className: H("content-type", { [e]: e !== "default" }), children: [
|
|
27728
|
+
/* @__PURE__ */ c.jsx("span", { className: H("type", n), children: o }),
|
|
27695
27729
|
" ",
|
|
27696
27730
|
t > 0 && !r && /* @__PURE__ */ c.jsx(Io, { time: t }),
|
|
27697
27731
|
" ",
|
|
27698
27732
|
a ? /* @__PURE__ */ c.jsx("span", { className: "additional", children: a }) : null
|
|
27699
27733
|
] });
|
|
27700
27734
|
};
|
|
27701
|
-
const
|
|
27735
|
+
const hk = ({
|
|
27702
27736
|
course: {
|
|
27703
27737
|
articles: e,
|
|
27704
27738
|
canAccessCourse: t,
|
|
@@ -27756,7 +27790,7 @@ const fk = ({
|
|
|
27756
27790
|
return w && (z.style = { "--image": `url(${w})` }), /* @__PURE__ */ c.jsx(
|
|
27757
27791
|
"li",
|
|
27758
27792
|
{
|
|
27759
|
-
className:
|
|
27793
|
+
className: H({
|
|
27760
27794
|
article: b === Xr.ARTICLE,
|
|
27761
27795
|
discussion: b === Xr.DISCUSSION,
|
|
27762
27796
|
quiz: b === Xr.QUIZ,
|
|
@@ -27805,7 +27839,7 @@ const fk = ({
|
|
|
27805
27839
|
}
|
|
27806
27840
|
);
|
|
27807
27841
|
};
|
|
27808
|
-
const
|
|
27842
|
+
const mk = ({
|
|
27809
27843
|
isComplete: e = !1,
|
|
27810
27844
|
onClick: t,
|
|
27811
27845
|
...n
|
|
@@ -27821,7 +27855,7 @@ const hk = ({
|
|
|
27821
27855
|
hover: "check-inside-circle_no-overlap_inverted"
|
|
27822
27856
|
},
|
|
27823
27857
|
onClick: t,
|
|
27824
|
-
className:
|
|
27858
|
+
className: H("mark-complete-button center gtm-trackable", {
|
|
27825
27859
|
completed: e
|
|
27826
27860
|
}),
|
|
27827
27861
|
"data-gtm-event-type": "mark-as-complete",
|
|
@@ -27829,7 +27863,7 @@ const hk = ({
|
|
|
27829
27863
|
children: r.formatMessage({ id: `markCompleteButton${e ? "_completed" : ""}` })
|
|
27830
27864
|
}
|
|
27831
27865
|
);
|
|
27832
|
-
},
|
|
27866
|
+
}, pk = ({
|
|
27833
27867
|
id: e,
|
|
27834
27868
|
data: { jobTitle: t, name: n, organization: r, thumbnail: i }
|
|
27835
27869
|
}) => ({
|
|
@@ -27882,7 +27916,7 @@ const hk = ({
|
|
|
27882
27916
|
contributors: ["community"]
|
|
27883
27917
|
}
|
|
27884
27918
|
];
|
|
27885
|
-
const xi = "notFoundError_",
|
|
27919
|
+
const xi = "notFoundError_", gk = () => {
|
|
27886
27920
|
const e = le(), t = [];
|
|
27887
27921
|
return Ac.forEach((n, r) => {
|
|
27888
27922
|
n.title = e.formatMessage({ id: `${xi}post_${r + 1}` }), t.push("solutionArticle");
|
|
@@ -27917,13 +27951,13 @@ const xi = "notFoundError_", pk = () => {
|
|
|
27917
27951
|
};
|
|
27918
27952
|
export {
|
|
27919
27953
|
rn as ASSETS_BUCKET,
|
|
27920
|
-
|
|
27921
|
-
|
|
27954
|
+
X_ as ActivitiesFeed,
|
|
27955
|
+
tk as ActivitySection,
|
|
27922
27956
|
Gf as AddPost,
|
|
27923
27957
|
Qc as BadgesContext,
|
|
27924
27958
|
Dm as BadgesProvider,
|
|
27925
|
-
|
|
27926
|
-
|
|
27959
|
+
sk as Banner,
|
|
27960
|
+
ok as BannerSection,
|
|
27927
27961
|
M_ as Breadcrumbs,
|
|
27928
27962
|
S_ as Buckets,
|
|
27929
27963
|
Be as Button,
|
|
@@ -27932,23 +27966,23 @@ export {
|
|
|
27932
27966
|
xm as CacheProvider,
|
|
27933
27967
|
ah as Card,
|
|
27934
27968
|
r_ as CardBlock,
|
|
27935
|
-
|
|
27969
|
+
dk as Carousel,
|
|
27936
27970
|
vd as CharacterLimit,
|
|
27937
27971
|
eo as CollapsibleSection,
|
|
27938
27972
|
Up as Columns,
|
|
27939
27973
|
N_ as CommunityDetails,
|
|
27940
|
-
|
|
27974
|
+
Y_ as ContactFooter,
|
|
27941
27975
|
kC as ContactForm,
|
|
27942
27976
|
im as ContentTypeLabel,
|
|
27943
27977
|
nd as Contributors,
|
|
27944
27978
|
Oo as ConversationContext,
|
|
27945
27979
|
MC as CookieBanner,
|
|
27946
|
-
|
|
27947
|
-
|
|
27948
|
-
|
|
27980
|
+
fk as CourseProgression,
|
|
27981
|
+
hk as CourseStructure,
|
|
27982
|
+
uk as CustomContentBanner,
|
|
27949
27983
|
it as CustomEvents,
|
|
27950
27984
|
Si as DELETED_USER_ID,
|
|
27951
|
-
|
|
27985
|
+
rk as Directory,
|
|
27952
27986
|
qC as DiscussionConversation,
|
|
27953
27987
|
ha as DiscussionForm,
|
|
27954
27988
|
tE as DiscussionFormCard,
|
|
@@ -27957,17 +27991,18 @@ export {
|
|
|
27957
27991
|
ma as DiscussionPost,
|
|
27958
27992
|
iE as DiscussionThread,
|
|
27959
27993
|
an as Divider,
|
|
27960
|
-
|
|
27994
|
+
V_ as DownloadSection,
|
|
27961
27995
|
Fr as EMAILS,
|
|
27962
|
-
|
|
27996
|
+
K_ as EditSection,
|
|
27963
27997
|
Vp as EmailHelperTextBox,
|
|
27964
27998
|
In as EmptyStateBox,
|
|
27999
|
+
R_ as EnrichedUrl,
|
|
27965
28000
|
Xc as FeatureFlags,
|
|
27966
|
-
|
|
28001
|
+
I_ as Filters,
|
|
27967
28002
|
_m as FlagsProvider,
|
|
27968
28003
|
Kf as Footer,
|
|
27969
28004
|
Dn as Form,
|
|
27970
|
-
|
|
28005
|
+
Z as Formatting,
|
|
27971
28006
|
Nt as Fragment,
|
|
27972
28007
|
qn as FullWidthSection,
|
|
27973
28008
|
Zo as GET_STREAM_USER_PREFIX,
|
|
@@ -27976,17 +28011,17 @@ export {
|
|
|
27976
28011
|
am as HelperTextBox,
|
|
27977
28012
|
Js as HiddenFromScreenReaders,
|
|
27978
28013
|
sm as HideShowTextBox,
|
|
27979
|
-
|
|
28014
|
+
lk as HighlightSection,
|
|
27980
28015
|
Zt as HighlightedTextBox,
|
|
27981
28016
|
Rh as INVALID_TOKEN,
|
|
27982
28017
|
j_ as IconBulletedList,
|
|
27983
28018
|
B_ as ImageContainer,
|
|
27984
28019
|
km as IntlProvider,
|
|
27985
28020
|
FC as InviteForm,
|
|
27986
|
-
|
|
28021
|
+
nk as InviteModal,
|
|
27987
28022
|
pd as JoinButton,
|
|
27988
28023
|
ed as LanguageContext,
|
|
27989
|
-
|
|
28024
|
+
$_ as LanguageSwitcher,
|
|
27990
28025
|
o_ as LessonName,
|
|
27991
28026
|
u_ as LessonType,
|
|
27992
28027
|
Rn as Link,
|
|
@@ -27995,26 +28030,26 @@ export {
|
|
|
27995
28030
|
$t as LoadingPlaceholder,
|
|
27996
28031
|
Yc as LoadingState,
|
|
27997
28032
|
gd as Logo,
|
|
27998
|
-
|
|
28033
|
+
Z_ as LogoSection,
|
|
27999
28034
|
Ih as MENTION_REGEX,
|
|
28000
|
-
|
|
28035
|
+
mk as MarkCompleteButton,
|
|
28001
28036
|
sr as MarkdownText,
|
|
28002
|
-
|
|
28037
|
+
ck as MarketingBlock,
|
|
28003
28038
|
nn as Marks,
|
|
28004
28039
|
bn as Member,
|
|
28005
|
-
|
|
28040
|
+
J_ as MembersList,
|
|
28006
28041
|
rd as Modal,
|
|
28007
28042
|
Mp as MoreMenu,
|
|
28008
28043
|
k_ as NUMBER_OF_COUNTRIES,
|
|
28009
28044
|
__ as NUMBER_OF_USERS,
|
|
28010
28045
|
Lp as NavigationMenu,
|
|
28011
|
-
|
|
28046
|
+
gk as NotFoundError,
|
|
28012
28047
|
Ln as Overlay,
|
|
28013
28048
|
td as OverlayContext,
|
|
28014
28049
|
Am as OverlayProvider,
|
|
28015
28050
|
pm as PageHeading,
|
|
28016
28051
|
$C as PageLayout,
|
|
28017
|
-
|
|
28052
|
+
U_ as PasswordForm,
|
|
28018
28053
|
rg as PasswordRules,
|
|
28019
28054
|
vn as Pill,
|
|
28020
28055
|
em as Popover,
|
|
@@ -28026,25 +28061,25 @@ export {
|
|
|
28026
28061
|
$n as ProfilePicture,
|
|
28027
28062
|
Kc as ProgressBar,
|
|
28028
28063
|
A_ as ProgressTracker,
|
|
28029
|
-
|
|
28064
|
+
q_ as Rating,
|
|
28030
28065
|
IE as RepliesFeed,
|
|
28031
28066
|
rE as ResponsesHeading,
|
|
28032
28067
|
Yr as ResponsiveImage,
|
|
28033
28068
|
T_ as ReturnToNavButton,
|
|
28034
28069
|
EC as RichTextEditor,
|
|
28035
28070
|
AC as SearchForm,
|
|
28036
|
-
|
|
28037
|
-
|
|
28071
|
+
L_ as ShareLinks,
|
|
28072
|
+
H_ as SignupForm,
|
|
28038
28073
|
ru as Span,
|
|
28039
28074
|
Pi as StatusBanner,
|
|
28040
|
-
|
|
28041
|
-
|
|
28042
|
-
|
|
28043
|
-
|
|
28075
|
+
ak as TableOfContents,
|
|
28076
|
+
z_ as Tabs,
|
|
28077
|
+
Q_ as Tags,
|
|
28078
|
+
ik as TestimonialBlock,
|
|
28044
28079
|
Io as TimeToComplete,
|
|
28045
|
-
|
|
28080
|
+
W_ as Toggle,
|
|
28046
28081
|
mr as Tooltip,
|
|
28047
|
-
|
|
28082
|
+
G_ as TopLevelPage,
|
|
28048
28083
|
ji as UUID_V4_REGEX,
|
|
28049
28084
|
vt as UserContext,
|
|
28050
28085
|
Fm as UserProvider,
|
|
@@ -28062,10 +28097,10 @@ export {
|
|
|
28062
28097
|
$h as getShortDate,
|
|
28063
28098
|
ao as getValueLength,
|
|
28064
28099
|
Yi as headerData,
|
|
28065
|
-
|
|
28100
|
+
pk as mapGetStreamData,
|
|
28066
28101
|
Yh as pageReady,
|
|
28067
28102
|
Go as passwordValidator,
|
|
28068
|
-
|
|
28103
|
+
ek as repliesFeedMock,
|
|
28069
28104
|
xa as supportedLanguages,
|
|
28070
28105
|
Nh as toCamelCase,
|
|
28071
28106
|
E_ as toCapitalisedCase,
|