@apolitical/component-library 5.1.1-jc.1 → 5.1.2-RR.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/general/buttons/button/button.d.ts +0 -1
- package/index.js +26 -26
- package/index.mjs +667 -634
- 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/sections/full-width-section/full-width-section.d.ts +0 -2
- package/style.css +1 -1
- package/styles/variables/colors/_colors.scss +0 -2
- package/styles/variables/colors/theme/_base.scss +1 -1
- package/styles/variables/colors/theme/_layout.scss +1 -1
- package/styles/variables/colors/theme/_navigation.scss +4 -0
- package/text/helper-text-box/helper-text-box.d.ts +2 -2
- package/text/helper-text-box/index.d.ts +1 -0
package/index.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import ie, { memo as Gt, useState as ue, useEffect as de, useRef as _e, useMemo as Vt, forwardRef as Gs, Children as bs, createContext as Ct, useContext as Ne, useCallback as Re, lazy as Kr, useReducer as
|
|
1
|
+
import ie, { memo as Gt, useState as ue, useEffect as de, useRef as _e, useMemo as Vt, forwardRef as Gs, Children as bs, createContext as Ct, useContext as Ne, useCallback as Re, lazy as Kr, useReducer as dr, useLayoutEffect as mh, Component as ph, Fragment as Rr, Suspense as gh } from "react";
|
|
2
2
|
import { useIntl as le, FormattedMessage as ct, IntlProvider as vh, createIntl as bh } from "react-intl";
|
|
3
3
|
import Fn from "lodash.clonedeep";
|
|
4
4
|
import yh from "lodash.set";
|
|
@@ -75,7 +75,7 @@ var Nc = { exports: {} };
|
|
|
75
75
|
})();
|
|
76
76
|
})(Nc);
|
|
77
77
|
var Fh = Nc.exports;
|
|
78
|
-
const
|
|
78
|
+
const V = /* @__PURE__ */ Mn(Fh), Bh = ({
|
|
79
79
|
element: e = "span",
|
|
80
80
|
showOnFocus: t = !0,
|
|
81
81
|
children: n,
|
|
@@ -83,14 +83,14 @@ const Z = /* @__PURE__ */ Mn(Fh), Bh = ({
|
|
|
83
83
|
...i
|
|
84
84
|
}) => ie.createElement(e, {
|
|
85
85
|
...i,
|
|
86
|
-
className:
|
|
86
|
+
className: V("hidden", r, { "show-on-focus": t }),
|
|
87
87
|
children: n
|
|
88
88
|
}), qe = Gt(Bh), Ah = ({
|
|
89
89
|
element: e = "span",
|
|
90
90
|
children: t = null,
|
|
91
91
|
...n
|
|
92
92
|
}) => ie.createElement(e, { ...n, "aria-hidden": !0 }, t), Js = Gt(Ah);
|
|
93
|
-
var Ds = { exports: {} },
|
|
93
|
+
var Ds = { exports: {} }, vr = {};
|
|
94
94
|
/**
|
|
95
95
|
* @license React
|
|
96
96
|
* react-jsx-runtime.production.min.js
|
|
@@ -103,7 +103,7 @@ var Ds = { exports: {} }, br = {};
|
|
|
103
103
|
var Ho;
|
|
104
104
|
function Th() {
|
|
105
105
|
if (Ho)
|
|
106
|
-
return
|
|
106
|
+
return vr;
|
|
107
107
|
Ho = 1;
|
|
108
108
|
var e = ie, t = Symbol.for("react.element"), n = Symbol.for("react.fragment"), r = Object.prototype.hasOwnProperty, i = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, a = { key: !0, ref: !0, __self: !0, __source: !0 };
|
|
109
109
|
function s(o, l, u) {
|
|
@@ -116,9 +116,9 @@ function Th() {
|
|
|
116
116
|
h[d] === void 0 && (h[d] = l[d]);
|
|
117
117
|
return { $$typeof: t, type: o, key: p, ref: m, props: h, _owner: i.current };
|
|
118
118
|
}
|
|
119
|
-
return
|
|
119
|
+
return vr.Fragment = n, vr.jsx = s, vr.jsxs = s, vr;
|
|
120
120
|
}
|
|
121
|
-
var
|
|
121
|
+
var br = {};
|
|
122
122
|
/**
|
|
123
123
|
* @license React
|
|
124
124
|
* react-jsx-runtime.development.js
|
|
@@ -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,
|
|
@@ -557,7 +557,7 @@ function Sh() {
|
|
|
557
557
|
return _t(j, Ae, ft, Me, xe, ce.current, je);
|
|
558
558
|
}
|
|
559
559
|
}
|
|
560
|
-
var
|
|
560
|
+
var gr = v.ReactCurrentOwner, Qr = v.ReactDebugCurrentFrame;
|
|
561
561
|
function Wn(j) {
|
|
562
562
|
if (j) {
|
|
563
563
|
var se = j._owner, fe = Fe(j.type, j._source, se ? se.type : null);
|
|
@@ -572,8 +572,8 @@ function Sh() {
|
|
|
572
572
|
}
|
|
573
573
|
function $o() {
|
|
574
574
|
{
|
|
575
|
-
if (
|
|
576
|
-
var j = C(
|
|
575
|
+
if (gr.current) {
|
|
576
|
+
var j = C(gr.current.type);
|
|
577
577
|
if (j)
|
|
578
578
|
return `
|
|
579
579
|
|
|
@@ -616,7 +616,7 @@ Check the top-level render call using <` + fe + ">.");
|
|
|
616
616
|
return;
|
|
617
617
|
Lo[fe] = !0;
|
|
618
618
|
var xe = "";
|
|
619
|
-
j && j._owner && j._owner !==
|
|
619
|
+
j && j._owner && j._owner !== gr.current && (xe = " It was passed a child from " + C(j._owner.type) + "."), Wn(j), w('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', fe, xe), Wn(null);
|
|
620
620
|
}
|
|
621
621
|
}
|
|
622
622
|
function qo(j, se) {
|
|
@@ -712,8 +712,8 @@ Check the top-level render call using <` + fe + ">.");
|
|
|
712
712
|
return Wo(j, se, fe, !1);
|
|
713
713
|
}
|
|
714
714
|
var fh = dh, hh = ch;
|
|
715
|
-
|
|
716
|
-
}()),
|
|
715
|
+
br.Fragment = r, br.jsx = fh, br.jsxs = hh;
|
|
716
|
+
}()), br;
|
|
717
717
|
}
|
|
718
718
|
process.env.NODE_ENV === "production" ? Ds.exports = Th() : Ds.exports = Sh();
|
|
719
719
|
var c = Ds.exports;
|
|
@@ -725,7 +725,7 @@ const jh = () => {
|
|
|
725
725
|
return de(() => (window.addEventListener("popstate", n), () => {
|
|
726
726
|
window.removeEventListener("popstate", n);
|
|
727
727
|
}), []), e;
|
|
728
|
-
},
|
|
728
|
+
}, Ir = (e, t) => {
|
|
729
729
|
const n = _e(!1);
|
|
730
730
|
de(() => {
|
|
731
731
|
n.current ? e() : n.current = !0;
|
|
@@ -792,7 +792,7 @@ function Rc(e, t, n) {
|
|
|
792
792
|
return Mc(e, t, { maxWait: t, leading: i === void 0 || i, trailing: a === void 0 || a });
|
|
793
793
|
}
|
|
794
794
|
let ba;
|
|
795
|
-
const
|
|
795
|
+
const fr = (e = !0, t = !1, n = "window") => {
|
|
796
796
|
if (!e)
|
|
797
797
|
return;
|
|
798
798
|
const [r, i] = ie.useState(0) || [!1, () => {
|
|
@@ -855,7 +855,7 @@ const hr = (e = !0, t = !1, n = "window") => {
|
|
|
855
855
|
}, Ic = (e = [], t = !0) => {
|
|
856
856
|
e = Array.isArray(e) ? e : [e];
|
|
857
857
|
const n = _e(!1);
|
|
858
|
-
|
|
858
|
+
Ir(() => {
|
|
859
859
|
if (window && window.location && window.location.hash) {
|
|
860
860
|
if (n.current)
|
|
861
861
|
return;
|
|
@@ -878,7 +878,7 @@ const hr = (e = !0, t = !1, n = "window") => {
|
|
|
878
878
|
}
|
|
879
879
|
};
|
|
880
880
|
};
|
|
881
|
-
const Ko = {},
|
|
881
|
+
const Ko = {}, hr = Gs(
|
|
882
882
|
({
|
|
883
883
|
id: e,
|
|
884
884
|
styling: t = {},
|
|
@@ -894,7 +894,7 @@ const Ko = {}, mr = Gs(
|
|
|
894
894
|
const h = le(), [p] = ue(e || Date.now().toString()), m = _e(null), g = d || m, [f, b] = ue(n ? "open" : "hidden"), { extraPadding: v = !0, hasPointer: w = !1, hasForm: B = !1 } = t, { onOpen: E = () => {
|
|
895
895
|
}, onClose: x = () => {
|
|
896
896
|
} } = o, { readToScreenreadersWhenClosed: A = !1, ...T } = l, L = Ko[p];
|
|
897
|
-
|
|
897
|
+
de(() => {
|
|
898
898
|
const F = g == null ? void 0 : g.current;
|
|
899
899
|
if (F)
|
|
900
900
|
return F.addEventListener("transitionend", P), () => {
|
|
@@ -913,7 +913,7 @@ const Ko = {}, mr = Gs(
|
|
|
913
913
|
const P = ({ propertyName: F }) => {
|
|
914
914
|
F === "opacity" && (L !== !1 && clearTimeout(L), b((C) => (C === "open" ? E() : C === "closed" && x(), C === "opening" ? "open" : C === "closing" ? "closed" : C === "closed" ? "hidden" : C)));
|
|
915
915
|
};
|
|
916
|
-
|
|
916
|
+
Ir(() => {
|
|
917
917
|
L !== !1 && clearTimeout(L);
|
|
918
918
|
let F = "open";
|
|
919
919
|
n ? b("opening") : (b("closing"), F = "hidden"), Ko[p || ""] = setTimeout(() => {
|
|
@@ -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 = V("content", { hidden: f === "hidden" }) : M.hidden = f === "hidden", /* @__PURE__ */ c.jsx(
|
|
932
932
|
"aside",
|
|
933
933
|
{
|
|
934
934
|
ref: g,
|
|
935
|
-
className:
|
|
935
|
+
className: V("tooltip text-medium", f, a, {
|
|
936
936
|
loading: r,
|
|
937
937
|
"extra-padding": v,
|
|
938
938
|
"has-pointer": w,
|
|
@@ -966,7 +966,7 @@ const Ko = {}, mr = Gs(
|
|
|
966
966
|
break;
|
|
967
967
|
}
|
|
968
968
|
return r;
|
|
969
|
-
}, Ph = (e) => e.replace(/[A-Z]/g, (t) => `-${t.toLowerCase()}`), Nh = (e = "") => e.replace(/(?:^\w|[A-Z]|\b\w)/g, (t) => t.toUpperCase()).replace(/[&\s]+/g, ""), Mh = (e = "") => e.charAt(0).toUpperCase() + e.slice(1), E_ = (e = "") => e.replace(/(?:^\w|[A-Z]|\b\w)/g, (t) => t.toUpperCase()), rn = "https://storage.googleapis.com/apolitical-assets/",
|
|
969
|
+
}, Ph = (e) => e.replace(/[A-Z]/g, (t) => `-${t.toLowerCase()}`), Nh = (e = "") => e.replace(/(?:^\w|[A-Z]|\b\w)/g, (t) => t.toUpperCase()).replace(/[&\s]+/g, ""), Mh = (e = "") => e.charAt(0).toUpperCase() + e.slice(1), E_ = (e = "") => e.replace(/(?:^\w|[A-Z]|\b\w)/g, (t) => t.toUpperCase()), rn = "https://storage.googleapis.com/apolitical-assets/", kr = {
|
|
970
970
|
general: "hello@apolitical.co",
|
|
971
971
|
support: "concierge@apolitical.co",
|
|
972
972
|
"data-protection": {
|
|
@@ -1040,7 +1040,7 @@ const _n = {
|
|
|
1040
1040
|
}, qh = (e) => new Promise((t) => setTimeout(t, e)), Wh = () => {
|
|
1041
1041
|
let e = !1;
|
|
1042
1042
|
return typeof window < "u" && (e = !!(window && window.location && window.location.href && window.location.href.includes("localhost"))), e;
|
|
1043
|
-
},
|
|
1043
|
+
}, mr = {
|
|
1044
1044
|
/* Common */
|
|
1045
1045
|
apolitical: "Apolitical",
|
|
1046
1046
|
dates_now: "now",
|
|
@@ -1538,7 +1538,7 @@ Thank you for helping to protect the Apolitical community from abusive content.`
|
|
|
1538
1538
|
markdown_iframe_padlet: "Interactive board",
|
|
1539
1539
|
markdown_iframe_poll: "Poll"
|
|
1540
1540
|
}, Uh = {
|
|
1541
|
-
...
|
|
1541
|
+
...mr,
|
|
1542
1542
|
/* Navigation */
|
|
1543
1543
|
languageSwitcher_label: "Me gustaría leer este artículo en...",
|
|
1544
1544
|
languageSwitcher_translation_original: "idioma original",
|
|
@@ -1546,7 +1546,7 @@ Thank you for helping to protect the Apolitical community from abusive content.`
|
|
|
1546
1546
|
languageSwitcher_translation_machine: "traducido por máquina",
|
|
1547
1547
|
languageSwitcher_disclaimer: "Este contenido fue traducido automáticamente y ocasionalmente tendrá errores de género u otras traducciones directas. Estamos intentando resolver este problema, pero mientras tanto, si notas algún error grave, escríbenos a <link>{email}</link>"
|
|
1548
1548
|
}, Hh = {
|
|
1549
|
-
...
|
|
1549
|
+
...mr,
|
|
1550
1550
|
/* Navigation */
|
|
1551
1551
|
languageSwitcher_label: "Je voudrais lire cet article dans...",
|
|
1552
1552
|
languageSwitcher_translation_original: "langue originale",
|
|
@@ -1556,7 +1556,7 @@ Thank you for helping to protect the Apolitical community from abusive content.`
|
|
|
1556
1556
|
/* Text */
|
|
1557
1557
|
collapsibleSection_summary: "En savoir plus"
|
|
1558
1558
|
}, Vh = {
|
|
1559
|
-
...
|
|
1559
|
+
...mr,
|
|
1560
1560
|
/* Navigation */
|
|
1561
1561
|
languageSwitcher_label: "Eu gostaria de ler este artigo em...",
|
|
1562
1562
|
languageSwitcher_translation_original: "linguagem original",
|
|
@@ -1565,11 +1565,11 @@ Thank you for helping to protect the Apolitical community from abusive content.`
|
|
|
1565
1565
|
languageSwitcher_disclaimer: "Este conteúdo foi traduzido automaticamente e, ocasionalmente, poderão ocorrer erros de linguagem de gênero ou outras traduções diretas. Estamos tentando resolver isso, porém se perceber algo errado por favor nos avise em <link>{email}</link>"
|
|
1566
1566
|
}, Kh = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1567
1567
|
__proto__: null,
|
|
1568
|
-
en:
|
|
1568
|
+
en: mr,
|
|
1569
1569
|
es: Uh,
|
|
1570
1570
|
fr: Hh,
|
|
1571
1571
|
pt: Vh
|
|
1572
|
-
}, Symbol.toStringTag, { value: "Module" })), Xs = (e, t =
|
|
1572
|
+
}, Symbol.toStringTag, { value: "Module" })), Xs = (e, t = mr) => e in t, Mt = (e, t, n, r, i = {}) => {
|
|
1573
1573
|
let a = "";
|
|
1574
1574
|
return Xs(`${t}_${n}`) ? a = e({ id: `${t}_${n}` }, i) : a = e({ id: t }, { [r]: n, ...i }), a;
|
|
1575
1575
|
}, Zh = (e, t, n) => {
|
|
@@ -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",
|
|
@@ -1674,23 +1674,20 @@ const Be = ({
|
|
|
1674
1674
|
children: h = !1,
|
|
1675
1675
|
...p
|
|
1676
1676
|
}) => {
|
|
1677
|
-
const g =
|
|
1677
|
+
const g = fr(typeof t == "object"), { showTooltip: f, tooltipProps: b } = $c(!!u);
|
|
1678
1678
|
if (typeof t == "object" && typeof g == "number") {
|
|
1679
1679
|
const E = Object.assign({}, t), x = Lc(Object.keys(E));
|
|
1680
1680
|
t = zc(g, x, E);
|
|
1681
1681
|
}
|
|
1682
1682
|
!l && u && (u = "");
|
|
1683
1683
|
const v = [];
|
|
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")));
|
|
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"))), n.muted && v.push("muted"), n.fullWidth && v.push("full-width");
|
|
1685
1685
|
const w = {
|
|
1686
1686
|
...p,
|
|
1687
|
-
className:
|
|
1687
|
+
className: V(e, o, v, {
|
|
1688
1688
|
"no-text": !h,
|
|
1689
1689
|
disabled: l,
|
|
1690
|
-
button: i
|
|
1691
|
-
new: n.new,
|
|
1692
|
-
muted: n.muted,
|
|
1693
|
-
"full-width": n.fullWidth
|
|
1690
|
+
button: i
|
|
1694
1691
|
}),
|
|
1695
1692
|
onClick: (E) => {
|
|
1696
1693
|
(!i || i[0] === "#") && s && (E.preventDefault(), E.stopPropagation()), s && s(E);
|
|
@@ -1705,7 +1702,7 @@ const Be = ({
|
|
|
1705
1702
|
);
|
|
1706
1703
|
return l && u ? /* @__PURE__ */ c.jsxs("span", { className: "button-container", ...b, children: [
|
|
1707
1704
|
/* @__PURE__ */ c.jsx(
|
|
1708
|
-
|
|
1705
|
+
hr,
|
|
1709
1706
|
{
|
|
1710
1707
|
isOpen: f,
|
|
1711
1708
|
accessibility: { readToScreenreadersWhenClosed: !0 },
|
|
@@ -1720,14 +1717,14 @@ const Be = ({
|
|
|
1720
1717
|
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
1718
|
});
|
|
1722
1719
|
return ie.createElement(i, {
|
|
1723
|
-
className:
|
|
1720
|
+
className: V("button-wrapper", n),
|
|
1724
1721
|
...r,
|
|
1725
1722
|
children: a
|
|
1726
1723
|
});
|
|
1727
1724
|
};
|
|
1728
1725
|
const an = ({ className: e = "", maxWidth: t = !1 }) => {
|
|
1729
1726
|
const n = t ? { "--max-width": `${t / 16}rem` } : {};
|
|
1730
|
-
return /* @__PURE__ */ c.jsx("hr", { className:
|
|
1727
|
+
return /* @__PURE__ */ c.jsx("hr", { className: V(e, { "has-max-width": t }), style: n });
|
|
1731
1728
|
}, Qo = {
|
|
1732
1729
|
card: {
|
|
1733
1730
|
range: [
|
|
@@ -1918,7 +1915,7 @@ const B_ = ({ image: e, className: t = "", testId: n }) => /* @__PURE__ */ c.jsx
|
|
|
1918
1915
|
}) => {
|
|
1919
1916
|
if (e) {
|
|
1920
1917
|
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:
|
|
1918
|
+
return i && (l.onClick = i), a && (l["data-gtm-event-context"] = a), s && (l["data-gtm-event-type"] = s), /* @__PURE__ */ c.jsx("a", { href: e, className: V("gtm-trackable", r), ...l, children: t });
|
|
1922
1919
|
}
|
|
1923
1920
|
return n ? ie.createElement(n, { children: t, className: r, ...o }) : /* @__PURE__ */ c.jsx(c.Fragment, { children: t });
|
|
1924
1921
|
};
|
|
@@ -1929,7 +1926,7 @@ const em = Gs(
|
|
|
1929
1926
|
"aside",
|
|
1930
1927
|
{
|
|
1931
1928
|
ref: i,
|
|
1932
|
-
className:
|
|
1929
|
+
className: V("popover", e),
|
|
1933
1930
|
"aria-live": "polite",
|
|
1934
1931
|
children: t
|
|
1935
1932
|
}
|
|
@@ -1956,7 +1953,7 @@ const A_ = ({ currentStep: e = 1, steps: t = 1 }) => /* @__PURE__ */ c.jsxs(c.Fr
|
|
|
1956
1953
|
/* @__PURE__ */ c.jsx(
|
|
1957
1954
|
"div",
|
|
1958
1955
|
{
|
|
1959
|
-
className:
|
|
1956
|
+
className: V("dot", {
|
|
1960
1957
|
active: i === e,
|
|
1961
1958
|
completed: i < e
|
|
1962
1959
|
}),
|
|
@@ -1966,7 +1963,7 @@ const A_ = ({ currentStep: e = 1, steps: t = 1 }) => /* @__PURE__ */ c.jsxs(c.Fr
|
|
|
1966
1963
|
/* @__PURE__ */ c.jsx(
|
|
1967
1964
|
"div",
|
|
1968
1965
|
{
|
|
1969
|
-
className:
|
|
1966
|
+
className: V("line", {
|
|
1970
1967
|
active: i < e
|
|
1971
1968
|
})
|
|
1972
1969
|
}
|
|
@@ -1996,7 +1993,7 @@ const T_ = ({ elementId: e, offset: t = 20 }) => {
|
|
|
1996
1993
|
}
|
|
1997
1994
|
);
|
|
1998
1995
|
};
|
|
1999
|
-
const S_ = ({ items: e, className: t = "", ...n }) => /* @__PURE__ */ c.jsx("ul", { className:
|
|
1996
|
+
const S_ = ({ items: e, className: t = "", ...n }) => /* @__PURE__ */ c.jsx("ul", { className: V("buckets", t), ...n, children: e.map(({ title: r, text: i, link: a, ...s }, o) => /* @__PURE__ */ c.jsx("li", { className: "bucket text-medium", children: /* @__PURE__ */ c.jsxs("a", { href: a, ...s, children: [
|
|
2000
1997
|
/* @__PURE__ */ c.jsx("p", { className: "title", children: r }),
|
|
2001
1998
|
/* @__PURE__ */ c.jsx("p", { children: i })
|
|
2002
1999
|
] }) }, o)) }), Jo = 300, Xo = "ease-in-out";
|
|
@@ -2059,7 +2056,7 @@ const eo = ({
|
|
|
2059
2056
|
"details",
|
|
2060
2057
|
{
|
|
2061
2058
|
ref: a,
|
|
2062
|
-
className:
|
|
2059
|
+
className: V("collapsible-section", t, {
|
|
2063
2060
|
"should-animate": r
|
|
2064
2061
|
}),
|
|
2065
2062
|
children: [
|
|
@@ -2096,7 +2093,7 @@ const tu = {
|
|
|
2096
2093
|
return !n && !s ? null : /* @__PURE__ */ c.jsx(
|
|
2097
2094
|
"small",
|
|
2098
2095
|
{
|
|
2099
|
-
className:
|
|
2096
|
+
className: V(
|
|
2100
2097
|
"content-type-label text-small",
|
|
2101
2098
|
e in tu ? tu[e] : e,
|
|
2102
2099
|
r,
|
|
@@ -2122,7 +2119,7 @@ const Zt = ({
|
|
|
2122
2119
|
return /* @__PURE__ */ c.jsx(
|
|
2123
2120
|
"div",
|
|
2124
2121
|
{
|
|
2125
|
-
className:
|
|
2122
|
+
className: V("highlighted-text-box", e, r, {
|
|
2126
2123
|
"has-icon": t,
|
|
2127
2124
|
"show-highlight": s,
|
|
2128
2125
|
[o]: o !== "default"
|
|
@@ -2140,7 +2137,7 @@ const In = ({
|
|
|
2140
2137
|
className: r = ""
|
|
2141
2138
|
}) => {
|
|
2142
2139
|
let i = n && !!Object.keys(n).length;
|
|
2143
|
-
const a = typeof n == "object" && "breakpoints" in n, s =
|
|
2140
|
+
const a = typeof n == "object" && "breakpoints" in n, s = fr(a);
|
|
2144
2141
|
if (a && typeof n == "object" && typeof s == "number") {
|
|
2145
2142
|
const h = Object.assign({}, n.breakpoints), p = Lc(Object.keys(h));
|
|
2146
2143
|
i = zc(s, p, h);
|
|
@@ -2155,7 +2152,7 @@ const In = ({
|
|
|
2155
2152
|
Zt,
|
|
2156
2153
|
{
|
|
2157
2154
|
variant: "subtle",
|
|
2158
|
-
className:
|
|
2155
|
+
className: V("empty-state-box", e, r),
|
|
2159
2156
|
children: /* @__PURE__ */ c.jsxs(c.Fragment, { children: [
|
|
2160
2157
|
t && typeof t == "string" ? /* @__PURE__ */ c.jsx(Kt, { options: { forceBlock: !0 }, children: t }) : t,
|
|
2161
2158
|
i && typeof n == "object" && (u || /* @__PURE__ */ c.jsx(
|
|
@@ -2179,7 +2176,7 @@ const am = ({
|
|
|
2179
2176
|
heading: n = !1,
|
|
2180
2177
|
children: r,
|
|
2181
2178
|
...i
|
|
2182
|
-
}) => /* @__PURE__ */ c.jsxs("div", { ...i, className:
|
|
2179
|
+
}) => /* @__PURE__ */ c.jsxs("div", { ...i, className: V("helper-text-box text-small", e, t), children: [
|
|
2183
2180
|
n && /* @__PURE__ */ c.jsx("p", { className: "title", children: n }),
|
|
2184
2181
|
typeof r == "string" ? /* @__PURE__ */ c.jsx(
|
|
2185
2182
|
Kt,
|
|
@@ -2231,14 +2228,14 @@ const sm = ({
|
|
|
2231
2228
|
Zt,
|
|
2232
2229
|
{
|
|
2233
2230
|
variant: "subtle",
|
|
2234
|
-
className:
|
|
2231
|
+
className: V("hide-show-text-box", t),
|
|
2235
2232
|
children: [
|
|
2236
2233
|
/* @__PURE__ */ c.jsx(
|
|
2237
2234
|
"div",
|
|
2238
2235
|
{
|
|
2239
2236
|
ref: u,
|
|
2240
2237
|
id: e,
|
|
2241
|
-
className:
|
|
2238
|
+
className: V("content", p, s),
|
|
2242
2239
|
children: i ? /* @__PURE__ */ c.jsxs(c.Fragment, { children: [
|
|
2243
2240
|
/* @__PURE__ */ c.jsx(Kt, { options: { forceBlock: !0, ...a }, children: p === "closed" ? d : i }),
|
|
2244
2241
|
p !== "closed" && o
|
|
@@ -2251,7 +2248,7 @@ const sm = ({
|
|
|
2251
2248
|
variant: "tertiary",
|
|
2252
2249
|
icon: { icon: "navigation_arrow", position: "left", animate: !0 },
|
|
2253
2250
|
styling: { muted: !0 },
|
|
2254
|
-
className:
|
|
2251
|
+
className: V({ "rotate-180": f }),
|
|
2255
2252
|
onClick: () => {
|
|
2256
2253
|
m(f ? "ready-to-close" : "opening");
|
|
2257
2254
|
},
|
|
@@ -2274,7 +2271,7 @@ const j_ = ({
|
|
|
2274
2271
|
}) => {
|
|
2275
2272
|
const { hasBorder: s = !1, zebraStriping: o = !1 } = i;
|
|
2276
2273
|
return ie.createElement(e, {
|
|
2277
|
-
className:
|
|
2274
|
+
className: V("icon-bulleted-list text-medium", n, a, {
|
|
2278
2275
|
"has-border": s,
|
|
2279
2276
|
"has-zebra-stripes": o,
|
|
2280
2277
|
[t]: e !== "dl"
|
|
@@ -2400,7 +2397,7 @@ const j_ = ({
|
|
|
2400
2397
|
"@",
|
|
2401
2398
|
n.formatMessage({ id: "member_deleted" })
|
|
2402
2399
|
] })) : 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:
|
|
2400
|
+
}, ru = ({ children: e, ...t }) => /* @__PURE__ */ c.jsx("span", { className: V({ url: t == null ? void 0 : t.href }), children: e });
|
|
2404
2401
|
const mm = {
|
|
2405
2402
|
default: {
|
|
2406
2403
|
a: hm,
|
|
@@ -2434,7 +2431,7 @@ const mm = {
|
|
|
2434
2431
|
iframe: lt,
|
|
2435
2432
|
button: lt
|
|
2436
2433
|
}
|
|
2437
|
-
},
|
|
2434
|
+
}, ar = ({
|
|
2438
2435
|
element: e = "div",
|
|
2439
2436
|
className: t = "",
|
|
2440
2437
|
options: n = {},
|
|
@@ -2452,7 +2449,7 @@ const mm = {
|
|
|
2452
2449
|
};
|
|
2453
2450
|
let l = mm[i];
|
|
2454
2451
|
return n.overrides && (l = { ...l, ...n.overrides }), ie.createElement(e, {
|
|
2455
|
-
className:
|
|
2452
|
+
className: V("markdown-text", t, {
|
|
2456
2453
|
"highlight-titles": s
|
|
2457
2454
|
}),
|
|
2458
2455
|
children: /* @__PURE__ */ c.jsx(Kt, { options: { ...o, ...n, overrides: l }, children: r })
|
|
@@ -2466,8 +2463,8 @@ const pm = ({
|
|
|
2466
2463
|
className: i = ""
|
|
2467
2464
|
}) => {
|
|
2468
2465
|
const a = e ? { "--max-width": `${e / 16}rem` } : {};
|
|
2469
|
-
return /* @__PURE__ */ c.jsxs("section", { className:
|
|
2470
|
-
/* @__PURE__ */ c.jsxs("div", { className:
|
|
2466
|
+
return /* @__PURE__ */ c.jsxs("section", { className: V("page-heading", i), children: [
|
|
2467
|
+
/* @__PURE__ */ c.jsxs("div", { className: V("content", { "has-max-width": e }), style: a, children: [
|
|
2471
2468
|
t && t.text && ie.createElement(t.element || "h1", { className: "title" }, t.text),
|
|
2472
2469
|
n && n.text && ie.createElement(
|
|
2473
2470
|
n.element || "h2",
|
|
@@ -2491,7 +2488,7 @@ const vn = ({
|
|
|
2491
2488
|
const l = {
|
|
2492
2489
|
"--icon": `url(${rn}icons/${r}.svg)`
|
|
2493
2490
|
}, { showTooltip: u, tooltipProps: d } = $c(!!i), h = ie.createElement(s, {
|
|
2494
|
-
className:
|
|
2491
|
+
className: V("pill", e, t, n, {
|
|
2495
2492
|
"has-icon": r
|
|
2496
2493
|
}),
|
|
2497
2494
|
style: l,
|
|
@@ -2502,7 +2499,7 @@ const vn = ({
|
|
|
2502
2499
|
return i ? /* @__PURE__ */ c.jsxs("span", { className: "pill-wrapper", children: [
|
|
2503
2500
|
h,
|
|
2504
2501
|
/* @__PURE__ */ c.jsx(
|
|
2505
|
-
|
|
2502
|
+
hr,
|
|
2506
2503
|
{
|
|
2507
2504
|
isOpen: u,
|
|
2508
2505
|
accessibility: { readToScreenreadersWhenClosed: !0 },
|
|
@@ -2520,7 +2517,7 @@ const Pi = ({
|
|
|
2520
2517
|
e,
|
|
2521
2518
|
{
|
|
2522
2519
|
...r,
|
|
2523
|
-
className:
|
|
2520
|
+
className: V("status-banner text-small", n),
|
|
2524
2521
|
"aria-live": "assertive"
|
|
2525
2522
|
},
|
|
2526
2523
|
t
|
|
@@ -2540,7 +2537,7 @@ const gm = ({
|
|
|
2540
2537
|
return /* @__PURE__ */ c.jsx(
|
|
2541
2538
|
"span",
|
|
2542
2539
|
{
|
|
2543
|
-
className:
|
|
2540
|
+
className: V(`progress-bar section-${u}`, s, r, {
|
|
2544
2541
|
[o]: o !== "default",
|
|
2545
2542
|
[l !== "default" ? l : ""]: l !== "default"
|
|
2546
2543
|
}),
|
|
@@ -2569,7 +2566,7 @@ const Da = "loadingBlock_", vm = ({ progress: e = 0, steps: t = !1, className: n
|
|
|
2569
2566
|
return /* @__PURE__ */ c.jsxs(
|
|
2570
2567
|
Zt,
|
|
2571
2568
|
{
|
|
2572
|
-
className:
|
|
2569
|
+
className: V("loading-block", n, {
|
|
2573
2570
|
"has-icon": i && t[i].icon
|
|
2574
2571
|
}),
|
|
2575
2572
|
variant: "subtle",
|
|
@@ -2585,7 +2582,7 @@ const $t = ({ element: e = "div", className: t = "", ...n }) => /* @__PURE__ */
|
|
|
2585
2582
|
Js,
|
|
2586
2583
|
{
|
|
2587
2584
|
element: e,
|
|
2588
|
-
className:
|
|
2585
|
+
className: V("loading-placeholder", t),
|
|
2589
2586
|
...n
|
|
2590
2587
|
}
|
|
2591
2588
|
);
|
|
@@ -2638,7 +2635,7 @@ const Cs = {
|
|
|
2638
2635
|
"course-navigation": ["button", "button"],
|
|
2639
2636
|
"course-lesson-page": ["breadcrumb", "course-navigation", "text-page"],
|
|
2640
2637
|
"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:
|
|
2638
|
+
}, 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: V("loading-state", e), ...t, children: Cs[e].map((n, r) => Zc(n, r)) }), Gc = (e) => {
|
|
2642
2639
|
const t = e && e.toUpperCase().trim().split(" ");
|
|
2643
2640
|
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
2641
|
}, ei = ["#5AB6A3", "#A2D7AF", "#806056", "#3962B3"], bm = (e) => {
|
|
@@ -2675,7 +2672,7 @@ const iu = 256, $n = ({
|
|
|
2675
2672
|
return t && t !== "" && !l && (t.includes("http") || t.includes("//")) && (p = !0), /* @__PURE__ */ c.jsx(
|
|
2676
2673
|
"figure",
|
|
2677
2674
|
{
|
|
2678
|
-
className:
|
|
2675
|
+
className: V("profile-picture", e, { error: l }),
|
|
2679
2676
|
...o,
|
|
2680
2677
|
children: p ? /* @__PURE__ */ c.jsx(
|
|
2681
2678
|
"img",
|
|
@@ -2846,7 +2843,7 @@ const jm = ({ slug: e }) => {
|
|
|
2846
2843
|
return /* @__PURE__ */ c.jsx(
|
|
2847
2844
|
vn,
|
|
2848
2845
|
{
|
|
2849
|
-
className:
|
|
2846
|
+
className: V("user-badge", a == null ? void 0 : a.toLowerCase()),
|
|
2850
2847
|
icon: i && Sm[i],
|
|
2851
2848
|
element: "li",
|
|
2852
2849
|
tooltip: s,
|
|
@@ -2892,7 +2889,7 @@ const bn = ({
|
|
|
2892
2889
|
const P = Tm(x), z = r && r.createdAt ? xs(r.createdAt) : !1, M = r && r.createdAt ? qc(r.createdAt) : "";
|
|
2893
2890
|
return ie.createElement(e, {
|
|
2894
2891
|
...d,
|
|
2895
|
-
className:
|
|
2892
|
+
className: V("member text-medium", g, f, l, {
|
|
2896
2893
|
"has-profile-link": w
|
|
2897
2894
|
}),
|
|
2898
2895
|
...m,
|
|
@@ -2940,7 +2937,7 @@ const bn = ({
|
|
|
2940
2937
|
P && /* @__PURE__ */ c.jsx(
|
|
2941
2938
|
"small",
|
|
2942
2939
|
{
|
|
2943
|
-
className:
|
|
2940
|
+
className: V({ "text-medium": g === "large" }),
|
|
2944
2941
|
"data-testid": "member-details",
|
|
2945
2942
|
children: b ? P : /* @__PURE__ */ c.jsxs(c.Fragment, { children: [
|
|
2946
2943
|
x.role,
|
|
@@ -3009,7 +3006,7 @@ const au = {
|
|
|
3009
3006
|
const h = le();
|
|
3010
3007
|
return !n || n.length === 0 ? null : ie.createElement(e, {
|
|
3011
3008
|
...d,
|
|
3012
|
-
className:
|
|
3009
|
+
className: V("contributors", u, i, { "has-gap": a }),
|
|
3013
3010
|
children: /* @__PURE__ */ c.jsxs(c.Fragment, { children: [
|
|
3014
3011
|
/* @__PURE__ */ c.jsx("ul", { children: n.map((p, m) => {
|
|
3015
3012
|
let g, f = "";
|
|
@@ -3031,7 +3028,7 @@ const au = {
|
|
|
3031
3028
|
g = /* @__PURE__ */ c.jsxs(
|
|
3032
3029
|
"small",
|
|
3033
3030
|
{
|
|
3034
|
-
className:
|
|
3031
|
+
className: V({ "large-number": b > 99 }),
|
|
3035
3032
|
children: [
|
|
3036
3033
|
"+",
|
|
3037
3034
|
Zh(b, 0)
|
|
@@ -3039,14 +3036,14 @@ const au = {
|
|
|
3039
3036
|
}
|
|
3040
3037
|
), f = "number-left";
|
|
3041
3038
|
}
|
|
3042
|
-
return g ? /* @__PURE__ */ c.jsx("li", { className:
|
|
3039
|
+
return g ? /* @__PURE__ */ c.jsx("li", { className: V("contributor", f), children: g }, m) : null;
|
|
3043
3040
|
}) }),
|
|
3044
3041
|
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
3042
|
] })
|
|
3046
3043
|
});
|
|
3047
3044
|
};
|
|
3048
3045
|
const rd = ({ element: e = "section", children: t, className: n, ...r }) => ie.createElement(e, {
|
|
3049
|
-
className:
|
|
3046
|
+
className: V("modal", n),
|
|
3050
3047
|
children: typeof t == "string" ? /* @__PURE__ */ c.jsx("p", { children: t }) : t,
|
|
3051
3048
|
...r
|
|
3052
3049
|
});
|
|
@@ -3982,12 +3979,12 @@ var bu = {
|
|
|
3982
3979
|
return t.tagName && t.tagName.toLowerCase() === "input" && typeof t.select == "function";
|
|
3983
3980
|
}, fp = function(t) {
|
|
3984
3981
|
return (t == null ? void 0 : t.key) === "Escape" || (t == null ? void 0 : t.key) === "Esc" || (t == null ? void 0 : t.keyCode) === 27;
|
|
3985
|
-
},
|
|
3982
|
+
}, Ar = function(t) {
|
|
3986
3983
|
return (t == null ? void 0 : t.key) === "Tab" || (t == null ? void 0 : t.keyCode) === 9;
|
|
3987
3984
|
}, hp = function(t) {
|
|
3988
|
-
return
|
|
3985
|
+
return Ar(t) && !t.shiftKey;
|
|
3989
3986
|
}, mp = function(t) {
|
|
3990
|
-
return
|
|
3987
|
+
return Ar(t) && t.shiftKey;
|
|
3991
3988
|
}, yu = function(t) {
|
|
3992
3989
|
return setTimeout(t, 0);
|
|
3993
3990
|
}, Du = function(t, n) {
|
|
@@ -3995,7 +3992,7 @@ var bu = {
|
|
|
3995
3992
|
return t.every(function(i, a) {
|
|
3996
3993
|
return n(i) ? (r = a, !1) : !0;
|
|
3997
3994
|
}), r;
|
|
3998
|
-
},
|
|
3995
|
+
}, yr = function(t) {
|
|
3999
3996
|
for (var n = arguments.length, r = new Array(n > 1 ? n - 1 : 0), i = 1; i < n; i++)
|
|
4000
3997
|
r[i - 1] = arguments[i];
|
|
4001
3998
|
return typeof t == "function" ? t.apply(void 0, r) : t;
|
|
@@ -4177,7 +4174,7 @@ var bu = {
|
|
|
4177
4174
|
var $ = D === 0 ? s.tabbableGroups.length - 1 : D - 1, X = s.tabbableGroups[$];
|
|
4178
4175
|
U = mn(C) >= 0 ? X.lastTabbableNode : X.lastDomTabbableNode;
|
|
4179
4176
|
} else
|
|
4180
|
-
|
|
4177
|
+
Ar(S) || (U = ne.nextTabbableNode(C, !1));
|
|
4181
4178
|
} else {
|
|
4182
4179
|
var k = Du(s.tabbableGroups, function(R) {
|
|
4183
4180
|
var W = R.lastTabbableNode;
|
|
@@ -4187,7 +4184,7 @@ var bu = {
|
|
|
4187
4184
|
var _ = k === s.tabbableGroups.length - 1 ? 0 : k + 1, I = s.tabbableGroups[_];
|
|
4188
4185
|
U = mn(C) >= 0 ? I.firstTabbableNode : I.firstDomTabbableNode;
|
|
4189
4186
|
} else
|
|
4190
|
-
|
|
4187
|
+
Ar(S) || (U = ne.nextTabbableNode(C));
|
|
4191
4188
|
}
|
|
4192
4189
|
} else
|
|
4193
4190
|
U = d("fallbackFocus");
|
|
@@ -4195,7 +4192,7 @@ var bu = {
|
|
|
4195
4192
|
}, v = function(F) {
|
|
4196
4193
|
var C = ri(F);
|
|
4197
4194
|
if (!(u(C, F) >= 0)) {
|
|
4198
|
-
if (
|
|
4195
|
+
if (yr(a.clickOutsideDeactivates, F)) {
|
|
4199
4196
|
o.deactivate({
|
|
4200
4197
|
// NOTE: by setting `returnFocus: false`, deactivate() will do nothing,
|
|
4201
4198
|
// which will result in the outside click setting focus to the node
|
|
@@ -4207,7 +4204,7 @@ var bu = {
|
|
|
4207
4204
|
});
|
|
4208
4205
|
return;
|
|
4209
4206
|
}
|
|
4210
|
-
|
|
4207
|
+
yr(a.allowOutsideClick, F) || F.preventDefault();
|
|
4211
4208
|
}
|
|
4212
4209
|
}, w = function(F) {
|
|
4213
4210
|
var C = ri(F), S = u(C, F) >= 0;
|
|
@@ -4248,16 +4245,16 @@ var bu = {
|
|
|
4248
4245
|
event: F,
|
|
4249
4246
|
isBackward: C
|
|
4250
4247
|
});
|
|
4251
|
-
S && (
|
|
4248
|
+
S && (Ar(F) && F.preventDefault(), g(S));
|
|
4252
4249
|
}, E = function(F) {
|
|
4253
|
-
if (fp(F) &&
|
|
4250
|
+
if (fp(F) && yr(a.escapeDeactivates, F) !== !1) {
|
|
4254
4251
|
F.preventDefault(), o.deactivate();
|
|
4255
4252
|
return;
|
|
4256
4253
|
}
|
|
4257
4254
|
(a.isKeyForward(F) || a.isKeyBackward(F)) && B(F, a.isKeyBackward(F));
|
|
4258
4255
|
}, x = function(F) {
|
|
4259
4256
|
var C = ri(F);
|
|
4260
|
-
u(C, F) >= 0 ||
|
|
4257
|
+
u(C, F) >= 0 || yr(a.clickOutsideDeactivates, F) || yr(a.allowOutsideClick, F) || (F.preventDefault(), F.stopImmediatePropagation());
|
|
4261
4258
|
}, A = function() {
|
|
4262
4259
|
if (s.active)
|
|
4263
4260
|
return bu.activateTrap(i, o), s.delayInitialFocusTimer = a.delayInitialFocus ? yu(function() {
|
|
@@ -4353,13 +4350,13 @@ const vp = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
4353
4350
|
__proto__: null,
|
|
4354
4351
|
createFocusTrap: gp
|
|
4355
4352
|
}, Symbol.toStringTag, { value: "Module" })), bp = /* @__PURE__ */ Pc(vp), yp = /* @__PURE__ */ Pc(op);
|
|
4356
|
-
function
|
|
4353
|
+
function sr(e) {
|
|
4357
4354
|
"@babel/helpers - typeof";
|
|
4358
|
-
return
|
|
4355
|
+
return sr = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(t) {
|
|
4359
4356
|
return typeof t;
|
|
4360
4357
|
} : function(t) {
|
|
4361
4358
|
return t && typeof Symbol == "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t;
|
|
4362
|
-
},
|
|
4359
|
+
}, sr(e);
|
|
4363
4360
|
}
|
|
4364
4361
|
function Dp(e, t) {
|
|
4365
4362
|
if (!(e instanceof t))
|
|
@@ -4397,13 +4394,13 @@ function Cp(e) {
|
|
|
4397
4394
|
};
|
|
4398
4395
|
}
|
|
4399
4396
|
function Ep(e, t) {
|
|
4400
|
-
if (t && (
|
|
4397
|
+
if (t && (sr(t) === "object" || typeof t == "function"))
|
|
4401
4398
|
return t;
|
|
4402
4399
|
if (t !== void 0)
|
|
4403
4400
|
throw new TypeError("Derived constructors may only return object or undefined");
|
|
4404
|
-
return
|
|
4401
|
+
return Fr(e);
|
|
4405
4402
|
}
|
|
4406
|
-
function
|
|
4403
|
+
function Fr(e) {
|
|
4407
4404
|
if (e === void 0)
|
|
4408
4405
|
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
4409
4406
|
return e;
|
|
@@ -4430,15 +4427,15 @@ function kp(e, t, n) {
|
|
|
4430
4427
|
}
|
|
4431
4428
|
function md(e) {
|
|
4432
4429
|
var t = Fp(e, "string");
|
|
4433
|
-
return
|
|
4430
|
+
return sr(t) === "symbol" ? t : String(t);
|
|
4434
4431
|
}
|
|
4435
4432
|
function Fp(e, t) {
|
|
4436
|
-
if (
|
|
4433
|
+
if (sr(e) !== "object" || e === null)
|
|
4437
4434
|
return e;
|
|
4438
4435
|
var n = e[Symbol.toPrimitive];
|
|
4439
4436
|
if (n !== void 0) {
|
|
4440
4437
|
var r = n.call(e, t || "default");
|
|
4441
|
-
if (
|
|
4438
|
+
if (sr(r) !== "object")
|
|
4442
4439
|
return r;
|
|
4443
4440
|
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
4444
4441
|
}
|
|
@@ -4449,7 +4446,7 @@ var ii = ie, be = Hm, Bp = bp, Ap = Bp.createFocusTrap, Tp = yp, Sp = Tp.isFocus
|
|
|
4449
4446
|
var t = Cp(n);
|
|
4450
4447
|
function n(r) {
|
|
4451
4448
|
var i;
|
|
4452
|
-
Dp(this, n), i = t.call(this, r), kp(
|
|
4449
|
+
Dp(this, n), i = t.call(this, r), kp(Fr(i), "getNodeForOption", function(o) {
|
|
4453
4450
|
var l, u = (l = this.internalOptions[o]) !== null && l !== void 0 ? l : this.originalOptions[o];
|
|
4454
4451
|
if (typeof u == "function") {
|
|
4455
4452
|
for (var d = arguments.length, h = new Array(d > 1 ? d - 1 : 0), p = 1; p < d; p++)
|
|
@@ -4468,7 +4465,7 @@ var ii = ie, be = Hm, Bp = bp, Ap = Bp.createFocusTrap, Tp = yp, Sp = Tp.isFocus
|
|
|
4468
4465
|
throw new Error("`".concat(o, "` as selector refers to no known node"));
|
|
4469
4466
|
}
|
|
4470
4467
|
return m;
|
|
4471
|
-
}), i.handleDeactivate = i.handleDeactivate.bind(
|
|
4468
|
+
}), i.handleDeactivate = i.handleDeactivate.bind(Fr(i)), i.handlePostDeactivate = i.handlePostDeactivate.bind(Fr(i)), i.handleClickOutsideDeactivates = i.handleClickOutsideDeactivates.bind(Fr(i)), i.internalOptions = {
|
|
4472
4469
|
// We need to hijack the returnFocusOnDeactivate option,
|
|
4473
4470
|
// because React can move focus into the element before we arrived at
|
|
4474
4471
|
// this lifecycle hook (e.g. with autoFocus inputs). So the component
|
|
@@ -4631,7 +4628,7 @@ var ii = ie, be = Hm, Bp = bp, Ap = Bp.createFocusTrap, Tp = yp, Sp = Tp.isFocus
|
|
|
4631
4628
|
return null;
|
|
4632
4629
|
}
|
|
4633
4630
|
}]), n;
|
|
4634
|
-
}(ii.Component),
|
|
4631
|
+
}(ii.Component), Dr = typeof Element > "u" ? Function : Element;
|
|
4635
4632
|
io.propTypes = {
|
|
4636
4633
|
active: be.bool,
|
|
4637
4634
|
paused: be.bool,
|
|
@@ -4647,9 +4644,9 @@ io.propTypes = {
|
|
|
4647
4644
|
onDeactivate: be.func,
|
|
4648
4645
|
onPostDeactivate: be.func,
|
|
4649
4646
|
checkCanReturnFocus: be.func,
|
|
4650
|
-
initialFocus: be.oneOfType([be.instanceOf(
|
|
4647
|
+
initialFocus: be.oneOfType([be.instanceOf(Dr), be.string, be.bool, be.func]),
|
|
4651
4648
|
fallbackFocus: be.oneOfType([
|
|
4652
|
-
be.instanceOf(
|
|
4649
|
+
be.instanceOf(Dr),
|
|
4653
4650
|
be.string,
|
|
4654
4651
|
// NOTE: does not support `false` as value (or return value from function)
|
|
4655
4652
|
be.func
|
|
@@ -4657,7 +4654,7 @@ io.propTypes = {
|
|
|
4657
4654
|
escapeDeactivates: be.oneOfType([be.bool, be.func]),
|
|
4658
4655
|
clickOutsideDeactivates: be.oneOfType([be.bool, be.func]),
|
|
4659
4656
|
returnFocusOnDeactivate: be.bool,
|
|
4660
|
-
setReturnFocus: be.oneOfType([be.instanceOf(
|
|
4657
|
+
setReturnFocus: be.oneOfType([be.instanceOf(Dr), be.string, be.bool, be.func]),
|
|
4661
4658
|
allowOutsideClick: be.oneOfType([be.bool, be.func]),
|
|
4662
4659
|
preventScroll: be.bool,
|
|
4663
4660
|
tabbableOptions: be.shape({
|
|
@@ -4668,12 +4665,12 @@ io.propTypes = {
|
|
|
4668
4665
|
isKeyForward: be.func,
|
|
4669
4666
|
isKeyBackward: be.func
|
|
4670
4667
|
}),
|
|
4671
|
-
containerElements: be.arrayOf(be.instanceOf(
|
|
4668
|
+
containerElements: be.arrayOf(be.instanceOf(Dr)),
|
|
4672
4669
|
// DOM element ONLY
|
|
4673
4670
|
children: be.oneOfType([
|
|
4674
4671
|
be.element,
|
|
4675
4672
|
// React element
|
|
4676
|
-
be.instanceOf(
|
|
4673
|
+
be.instanceOf(Dr)
|
|
4677
4674
|
// DOM element
|
|
4678
4675
|
])
|
|
4679
4676
|
// NOTE: _createFocusTrap is internal, for testing purposes only, so we don't
|
|
@@ -4739,7 +4736,7 @@ const Ln = ({
|
|
|
4739
4736
|
{
|
|
4740
4737
|
id: `${e}-overlay`,
|
|
4741
4738
|
ref: B,
|
|
4742
|
-
className:
|
|
4739
|
+
className: V("overlay", {
|
|
4743
4740
|
open: f,
|
|
4744
4741
|
"in-portal": d.includes("in-portal")
|
|
4745
4742
|
}),
|
|
@@ -4748,7 +4745,7 @@ const Ln = ({
|
|
|
4748
4745
|
rd,
|
|
4749
4746
|
{
|
|
4750
4747
|
id: e,
|
|
4751
|
-
className:
|
|
4748
|
+
className: V("overlay-modal", d, {
|
|
4752
4749
|
"has-max-width": r
|
|
4753
4750
|
}),
|
|
4754
4751
|
hidden: !f,
|
|
@@ -4787,7 +4784,7 @@ const Ln = ({
|
|
|
4787
4784
|
"aria-expanded": t,
|
|
4788
4785
|
"aria-controls": e
|
|
4789
4786
|
});
|
|
4790
|
-
const
|
|
4787
|
+
const xr = "joinCommunityButton", pd = ({
|
|
4791
4788
|
isMember: e = !1,
|
|
4792
4789
|
isOpen: t = !1,
|
|
4793
4790
|
isShort: n = !1,
|
|
@@ -4801,14 +4798,14 @@ const wr = "joinCommunityButton", pd = ({
|
|
|
4801
4798
|
p === "joining" ? m("joined") : p === "leaving" && m("notJoined");
|
|
4802
4799
|
}, [d]);
|
|
4803
4800
|
const g = {}, f = {};
|
|
4804
|
-
return d && p !== "leaving" && (g["data-hover-text"] = s.formatMessage({ id: `${
|
|
4801
|
+
return d && p !== "leaving" && (g["data-hover-text"] = s.formatMessage({ id: `${xr}_leave` }), g["aria-label"] = s.formatMessage({ id: `${xr}_member_aria` }), f["aria-hidden"] = "true"), /* @__PURE__ */ c.jsx(
|
|
4805
4802
|
Be,
|
|
4806
4803
|
{
|
|
4807
4804
|
variant: d ? "secondary" : "primary",
|
|
4808
4805
|
size: "medium",
|
|
4809
4806
|
styling: { fullWidth: !0 },
|
|
4810
4807
|
icon: d && p !== "leaving" ? { icon: "tick", position: "left" } : !1,
|
|
4811
|
-
tooltip: !t && !d ? s.formatMessage({ id: `${
|
|
4808
|
+
tooltip: !t && !d ? s.formatMessage({ id: `${xr}_closed_tooltip` }) : "",
|
|
4812
4809
|
onClick: async (b) => {
|
|
4813
4810
|
if (u)
|
|
4814
4811
|
return;
|
|
@@ -4816,7 +4813,7 @@ const wr = "joinCommunityButton", pd = ({
|
|
|
4816
4813
|
const v = new CustomEvent("ariaLive", {
|
|
4817
4814
|
detail: {
|
|
4818
4815
|
message: s.formatMessage(
|
|
4819
|
-
{ id: `${
|
|
4816
|
+
{ id: `${xr}_aria_live` },
|
|
4820
4817
|
{ action: d ? "leaving" : "joining" }
|
|
4821
4818
|
)
|
|
4822
4819
|
}
|
|
@@ -4827,14 +4824,14 @@ const wr = "joinCommunityButton", pd = ({
|
|
|
4827
4824
|
await w();
|
|
4828
4825
|
}, 500), h(!d);
|
|
4829
4826
|
},
|
|
4830
|
-
className:
|
|
4827
|
+
className: V("join-community-button", p, {
|
|
4831
4828
|
active: p === "joining"
|
|
4832
4829
|
}),
|
|
4833
4830
|
disabled: u,
|
|
4834
4831
|
"data-testid": "join-button",
|
|
4835
4832
|
...g,
|
|
4836
4833
|
children: /* @__PURE__ */ c.jsx("span", { className: "text", ...f, children: s.formatMessage({
|
|
4837
|
-
id: `${
|
|
4834
|
+
id: `${xr}${["joining", "leaving"].includes(p) ? `_${p}` : d ? "_member" : n ? "_short" : ""}`
|
|
4838
4835
|
}) })
|
|
4839
4836
|
}
|
|
4840
4837
|
);
|
|
@@ -4848,7 +4845,7 @@ const Ba = "communityDetails_", N_ = ({
|
|
|
4848
4845
|
functions: { invite: s, ...o }
|
|
4849
4846
|
}) => {
|
|
4850
4847
|
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:
|
|
4848
|
+
return /* @__PURE__ */ c.jsxs("div", { className: V("community-details", e), children: [
|
|
4852
4849
|
f ? /* @__PURE__ */ c.jsxs("div", { className: "member-details", children: [
|
|
4853
4850
|
/* @__PURE__ */ c.jsxs("div", { className: "top", children: [
|
|
4854
4851
|
/* @__PURE__ */ c.jsxs("h4", { children: [
|
|
@@ -4906,7 +4903,7 @@ const M_ = ({ breadcrumbs: e, cutoff: t = 20, className: n = "" }) => {
|
|
|
4906
4903
|
children: r.formatMessage({ id: "breadcrumbs_label" })
|
|
4907
4904
|
}
|
|
4908
4905
|
),
|
|
4909
|
-
/* @__PURE__ */ c.jsx("ul", { className:
|
|
4906
|
+
/* @__PURE__ */ c.jsx("ul", { className: V("breadcrumbs text-small", n), children: e.map(
|
|
4910
4907
|
({ text: i, href: a, current: s = !1 }, o) => {
|
|
4911
4908
|
const l = {};
|
|
4912
4909
|
return s && (l["aria-current"] = "location"), /* @__PURE__ */ c.jsxs("li", { children: [
|
|
@@ -4924,6 +4921,43 @@ const M_ = ({ breadcrumbs: e, cutoff: t = 20, className: n = "" }) => {
|
|
|
4924
4921
|
] });
|
|
4925
4922
|
};
|
|
4926
4923
|
const R_ = ({
|
|
4924
|
+
variant: e = "default",
|
|
4925
|
+
data: { image: t, url: n, title: r, description: i },
|
|
4926
|
+
gtm: a
|
|
4927
|
+
}) => {
|
|
4928
|
+
const s = n.split("//")[1].split("/")[0], { context: o = "EnrichedLink", event: l = "enriched-link-click" } = a ?? {};
|
|
4929
|
+
return /* @__PURE__ */ c.jsxs(
|
|
4930
|
+
"aside",
|
|
4931
|
+
{
|
|
4932
|
+
className: V("enriched-url gtm-trackable", {
|
|
4933
|
+
"has-image": t,
|
|
4934
|
+
[e]: e !== "default"
|
|
4935
|
+
}),
|
|
4936
|
+
onClick: (u) => {
|
|
4937
|
+
u.preventDefault(), u.stopPropagation(), window.location.href = n;
|
|
4938
|
+
},
|
|
4939
|
+
"data-gtm-event-context": o,
|
|
4940
|
+
"data-gtm-event-type": l,
|
|
4941
|
+
children: [
|
|
4942
|
+
/* @__PURE__ */ c.jsx("small", { children: s }),
|
|
4943
|
+
/* @__PURE__ */ c.jsx("p", { className: "title text-medium", children: /* @__PURE__ */ c.jsx("a", { href: n, target: "_blank", children: r }) }),
|
|
4944
|
+
i && e !== "condensed" ? /* @__PURE__ */ c.jsx("p", { className: "text-small", children: i }) : /* @__PURE__ */ c.jsx(c.Fragment, {}),
|
|
4945
|
+
t && t.src ? /* @__PURE__ */ c.jsx("p", { className: "img", children: /* @__PURE__ */ c.jsx(
|
|
4946
|
+
"img",
|
|
4947
|
+
{
|
|
4948
|
+
src: t.src,
|
|
4949
|
+
alt: t.alt || "",
|
|
4950
|
+
loading: "lazy",
|
|
4951
|
+
fetchpriority: "low",
|
|
4952
|
+
width: t.width || "auto",
|
|
4953
|
+
height: t.height || "100%"
|
|
4954
|
+
}
|
|
4955
|
+
) }) : /* @__PURE__ */ c.jsx(c.Fragment, {})
|
|
4956
|
+
]
|
|
4957
|
+
}
|
|
4958
|
+
);
|
|
4959
|
+
};
|
|
4960
|
+
const I_ = ({
|
|
4927
4961
|
options: e,
|
|
4928
4962
|
allOption: t = !1,
|
|
4929
4963
|
allowMultiple: n = !0,
|
|
@@ -4941,7 +4975,7 @@ const R_ = ({
|
|
|
4941
4975
|
let p = [];
|
|
4942
4976
|
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
4977
|
};
|
|
4944
|
-
return /* @__PURE__ */ c.jsx("ul", { className:
|
|
4978
|
+
return /* @__PURE__ */ c.jsx("ul", { className: V("filters", i), children: s.map(({ id: d, text: h, disabled: p = !1, callback: m = () => {
|
|
4945
4979
|
} }) => {
|
|
4946
4980
|
let g = {};
|
|
4947
4981
|
return p && (g = {
|
|
@@ -4950,7 +4984,7 @@ const R_ = ({
|
|
|
4950
4984
|
}), /* @__PURE__ */ c.jsx("li", { children: /* @__PURE__ */ c.jsx(
|
|
4951
4985
|
"button",
|
|
4952
4986
|
{
|
|
4953
|
-
className:
|
|
4987
|
+
className: V(d, { selected: o.includes(d) }),
|
|
4954
4988
|
onClick: (f) => {
|
|
4955
4989
|
f.preventDefault(), f.stopPropagation(), u(d, m);
|
|
4956
4990
|
},
|
|
@@ -4971,7 +5005,7 @@ const R_ = ({
|
|
|
4971
5005
|
urlForRouter: `/${i.split("/").slice(2).join("/")}`
|
|
4972
5006
|
} : i;
|
|
4973
5007
|
};
|
|
4974
|
-
const ai = "languageSwitcher_",
|
|
5008
|
+
const ai = "languageSwitcher_", $_ = ({
|
|
4975
5009
|
currentLanguage: e,
|
|
4976
5010
|
isOriginalLanguage: t = !1,
|
|
4977
5011
|
isHumanTranslation: n = !1,
|
|
@@ -4991,7 +5025,7 @@ const ai = "languageSwitcher_", I_ = ({
|
|
|
4991
5025
|
))
|
|
4992
5026
|
return null;
|
|
4993
5027
|
const g = Object.keys(r), f = h !== e;
|
|
4994
|
-
return /* @__PURE__ */ c.jsxs("div", { className:
|
|
5028
|
+
return /* @__PURE__ */ c.jsxs("div", { className: V("language-switcher text-small", s, l), children: [
|
|
4995
5029
|
/* @__PURE__ */ c.jsxs("nav", { children: [
|
|
4996
5030
|
s !== "short" && /* @__PURE__ */ c.jsx("p", { children: o || u.formatMessage({ id: `${ai}label` }) }),
|
|
4997
5031
|
/* @__PURE__ */ c.jsx("ul", { children: g.map((b) => {
|
|
@@ -5031,7 +5065,7 @@ const ai = "languageSwitcher_", I_ = ({
|
|
|
5031
5065
|
children: u.formatMessage(
|
|
5032
5066
|
{ id: `${ai}disclaimer` },
|
|
5033
5067
|
{
|
|
5034
|
-
email:
|
|
5068
|
+
email: kr.support,
|
|
5035
5069
|
link: (b) => {
|
|
5036
5070
|
const v = `mailto:${b}`;
|
|
5037
5071
|
return /* @__PURE__ */ c.jsx("a", { href: v, children: b });
|
|
@@ -5041,7 +5075,7 @@ const ai = "languageSwitcher_", I_ = ({
|
|
|
5041
5075
|
})
|
|
5042
5076
|
] });
|
|
5043
5077
|
};
|
|
5044
|
-
const Aa = bh({ locale: "en", messages:
|
|
5078
|
+
const Aa = bh({ locale: "en", messages: mr }), ia = ({
|
|
5045
5079
|
hasNextPage: e = !0,
|
|
5046
5080
|
loadNextPage: t = () => {
|
|
5047
5081
|
},
|
|
@@ -5066,7 +5100,7 @@ const Aa = bh({ locale: "en", messages: pr }), ia = ({
|
|
|
5066
5100
|
g instanceof Error ? h(g.message) : h("Unknown error");
|
|
5067
5101
|
}
|
|
5068
5102
|
};
|
|
5069
|
-
return !d && !e && !o.endOfFeed ? null : /* @__PURE__ */ c.jsx("footer", { className:
|
|
5103
|
+
return !d && !e && !o.endOfFeed ? null : /* @__PURE__ */ c.jsx("footer", { className: V("load-more", l), children: !d && e ? /* @__PURE__ */ c.jsx(
|
|
5070
5104
|
Be,
|
|
5071
5105
|
{
|
|
5072
5106
|
variant: r,
|
|
@@ -5092,7 +5126,7 @@ const gd = ({
|
|
|
5092
5126
|
"a",
|
|
5093
5127
|
{
|
|
5094
5128
|
href: "/home/",
|
|
5095
|
-
className:
|
|
5129
|
+
className: V("logo", e, t, n),
|
|
5096
5130
|
...r,
|
|
5097
5131
|
children: /* @__PURE__ */ c.jsx(qe, { children: /* @__PURE__ */ c.jsx(ct, { id: "apolitical" }) })
|
|
5098
5132
|
}
|
|
@@ -5113,7 +5147,7 @@ const Mp = ({
|
|
|
5113
5147
|
document.removeEventListener("click", l, !0);
|
|
5114
5148
|
})), ie.createElement(e, {
|
|
5115
5149
|
ref: a,
|
|
5116
|
-
className:
|
|
5150
|
+
className: V("more-menu text-medium", r),
|
|
5117
5151
|
children: /* @__PURE__ */ c.jsxs(c.Fragment, { children: [
|
|
5118
5152
|
/* @__PURE__ */ c.jsx(
|
|
5119
5153
|
Be,
|
|
@@ -5184,7 +5218,7 @@ const Ip = Kr(() => Promise.resolve().then(() => Mm)), $p = [
|
|
|
5184
5218
|
return /* @__PURE__ */ c.jsxs("ul", { id: "navigation-menu", className: "text-medium", children: [
|
|
5185
5219
|
$p.map(({ key: a, href: s }) => {
|
|
5186
5220
|
const o = Rp(s, e), l = {};
|
|
5187
|
-
return o && (l["aria-current"] = "page"), /* @__PURE__ */ c.jsx("li", { className:
|
|
5221
|
+
return o && (l["aria-current"] = "page"), /* @__PURE__ */ c.jsx("li", { className: V(a, { active: o }), children: /* @__PURE__ */ c.jsx(
|
|
5188
5222
|
"a",
|
|
5189
5223
|
{
|
|
5190
5224
|
href: s,
|
|
@@ -5211,7 +5245,7 @@ const Ip = Kr(() => Promise.resolve().then(() => Mm)), $p = [
|
|
|
5211
5245
|
}
|
|
5212
5246
|
)
|
|
5213
5247
|
] });
|
|
5214
|
-
},
|
|
5248
|
+
}, wr = (e, t, n) => `${e}?share=${t}${n ? `&uuid=${n}` : ""}`, zp = ({
|
|
5215
5249
|
title: e,
|
|
5216
5250
|
link: t,
|
|
5217
5251
|
referrer: n
|
|
@@ -5220,21 +5254,21 @@ const Ip = Kr(() => Promise.resolve().then(() => Mm)), $p = [
|
|
|
5220
5254
|
key: "linkedin",
|
|
5221
5255
|
icon: "social_linkedin",
|
|
5222
5256
|
url: `https://www.linkedin.com/shareArticle?mini=true&url=${encodeURIComponent(
|
|
5223
|
-
`${
|
|
5257
|
+
`${wr(t, "linkedin", n)}&src=linkedin`
|
|
5224
5258
|
)}&title=${encodeURIComponent(e)}&source=Apolitical`
|
|
5225
5259
|
},
|
|
5226
5260
|
{
|
|
5227
5261
|
key: "twitter",
|
|
5228
5262
|
icon: "social_twitter",
|
|
5229
5263
|
url: `https://twitter.com/share?ref_src=twsrc%5Etfw&url=${encodeURIComponent(
|
|
5230
|
-
`${
|
|
5264
|
+
`${wr(t, "twitter", n)}&src=twitter`
|
|
5231
5265
|
)}&text=${encodeURIComponent(e)}&via=${encodeURIComponent("apoliticalco")}`
|
|
5232
5266
|
},
|
|
5233
5267
|
{
|
|
5234
5268
|
key: "facebook",
|
|
5235
5269
|
icon: "social_facebook",
|
|
5236
5270
|
url: `https://www.facebook.com/sharer/sharer.php?u=${encodeURIComponent(
|
|
5237
|
-
`${
|
|
5271
|
+
`${wr(t, "facebook", n)}`
|
|
5238
5272
|
)}&t=${e}`
|
|
5239
5273
|
},
|
|
5240
5274
|
{
|
|
@@ -5243,18 +5277,18 @@ const Ip = Kr(() => Promise.resolve().then(() => Mm)), $p = [
|
|
|
5243
5277
|
url: `mailto:?subject=${encodeURIComponent(e)}&body=${encodeURIComponent(
|
|
5244
5278
|
`${e}
|
|
5245
5279
|
|
|
5246
|
-
${
|
|
5280
|
+
${wr(t, "mailto", n)}&src=email`
|
|
5247
5281
|
)}`
|
|
5248
5282
|
},
|
|
5249
5283
|
{
|
|
5250
5284
|
key: "clipboard-copy",
|
|
5251
5285
|
icon: "share_copy-link",
|
|
5252
|
-
url:
|
|
5286
|
+
url: wr(t, "copy", n),
|
|
5253
5287
|
shouldRender: () => navigator && navigator.clipboard && navigator.clipboard.writeText,
|
|
5254
5288
|
onClick: (r, i) => (r.preventDefault(), r.stopPropagation(), navigator.clipboard.writeText(i))
|
|
5255
5289
|
}
|
|
5256
5290
|
];
|
|
5257
|
-
const qp = "shareLinks_",
|
|
5291
|
+
const qp = "shareLinks_", L_ = ({
|
|
5258
5292
|
title: e,
|
|
5259
5293
|
link: t,
|
|
5260
5294
|
referrer: n,
|
|
@@ -5264,7 +5298,7 @@ const qp = "shareLinks_", $_ = ({
|
|
|
5264
5298
|
className: s = ""
|
|
5265
5299
|
}) => {
|
|
5266
5300
|
const o = le(), l = zp({ title: e, link: t, referrer: n });
|
|
5267
|
-
return /* @__PURE__ */ c.jsxs("aside", { className:
|
|
5301
|
+
return /* @__PURE__ */ c.jsxs("aside", { className: V("share-links", i, a, s), children: [
|
|
5268
5302
|
/* @__PURE__ */ c.jsx("p", { className: "text-small", children: o.formatMessage({ id: "shareLinks_label" }) }),
|
|
5269
5303
|
/* @__PURE__ */ c.jsx("ul", { children: l.map(({ key: u, icon: d, url: h, shouldRender: p = !0, onClick: m }) => {
|
|
5270
5304
|
if (typeof p == "function" && !p())
|
|
@@ -5290,9 +5324,9 @@ const qp = "shareLinks_", $_ = ({
|
|
|
5290
5324
|
}) })
|
|
5291
5325
|
] });
|
|
5292
5326
|
};
|
|
5293
|
-
const
|
|
5327
|
+
const z_ = ({ tabs: e, className: t = "", preventLocationChange: n }) => {
|
|
5294
5328
|
var g;
|
|
5295
|
-
const r = (f, b, v) => (f || (f = `panel-${window.btoa(b)}-${v}`), f), i =
|
|
5329
|
+
const r = (f, b, v) => (f || (f = `panel-${window.btoa(b)}-${v}`), f), i = fr(!0) || 0;
|
|
5296
5330
|
let a = e.findIndex((f) => f.current === !0);
|
|
5297
5331
|
if (a < 0 && (a = 0), window.location.hash) {
|
|
5298
5332
|
const f = window.location.hash.replace("#", "");
|
|
@@ -5362,7 +5396,7 @@ const L_ = ({ tabs: e, className: t = "", preventLocationChange: n }) => {
|
|
|
5362
5396
|
href: w || `#${f}`,
|
|
5363
5397
|
id: `tab-${f}`,
|
|
5364
5398
|
"aria-controls": f,
|
|
5365
|
-
className:
|
|
5399
|
+
className: V({ selected: A }),
|
|
5366
5400
|
role: "tab",
|
|
5367
5401
|
tabIndex: A ? 0 : -1,
|
|
5368
5402
|
"aria-selected": A,
|
|
@@ -5373,7 +5407,7 @@ const L_ = ({ tabs: e, className: t = "", preventLocationChange: n }) => {
|
|
|
5373
5407
|
) }, `tab-${f}`)
|
|
5374
5408
|
);
|
|
5375
5409
|
}
|
|
5376
|
-
), /* @__PURE__ */ c.jsxs("div", { className:
|
|
5410
|
+
), /* @__PURE__ */ c.jsxs("div", { className: V("tabs-wrapper", t), children: [
|
|
5377
5411
|
/* @__PURE__ */ c.jsx("ul", { className: "tabs", role: "tablist", children: p }),
|
|
5378
5412
|
/* @__PURE__ */ c.jsx("div", { className: "tab-content", children: m })
|
|
5379
5413
|
] });
|
|
@@ -5389,12 +5423,12 @@ const Wp = {
|
|
|
5389
5423
|
className: r = "",
|
|
5390
5424
|
children: i
|
|
5391
5425
|
}) => {
|
|
5392
|
-
const a =
|
|
5426
|
+
const a = fr(!0);
|
|
5393
5427
|
let s = i;
|
|
5394
5428
|
return ie.Children.count(i) === 1 && (s = ie.Children.toArray(i)[0], s.props && (s = s.props.children)), /* @__PURE__ */ c.jsx(
|
|
5395
5429
|
"section",
|
|
5396
5430
|
{
|
|
5397
|
-
className:
|
|
5431
|
+
className: V("columns", `layout-${e}`, r, {
|
|
5398
5432
|
"has-containers": n
|
|
5399
5433
|
}),
|
|
5400
5434
|
children: ie.Children.map(s, (o, l) => t !== !1 && l === t && a && a < Wp[e] ? null : o)
|
|
@@ -5416,7 +5450,7 @@ const vd = ({
|
|
|
5416
5450
|
"small",
|
|
5417
5451
|
{
|
|
5418
5452
|
id: e,
|
|
5419
|
-
className:
|
|
5453
|
+
className: V("character-limit", {
|
|
5420
5454
|
"near-limit": l,
|
|
5421
5455
|
"approaching-limit": u
|
|
5422
5456
|
}),
|
|
@@ -5612,7 +5646,7 @@ const oi = "emailHelperTextBox_", Vp = ({
|
|
|
5612
5646
|
type: o,
|
|
5613
5647
|
id: n,
|
|
5614
5648
|
name: a,
|
|
5615
|
-
className:
|
|
5649
|
+
className: V(e, t, {
|
|
5616
5650
|
"has-scrollbar": o === "textarea" && p.current && p.current.clientHeight < p.current.scrollHeight
|
|
5617
5651
|
}),
|
|
5618
5652
|
value: l,
|
|
@@ -5739,7 +5773,7 @@ const Hn = {
|
|
|
5739
5773
|
...A,
|
|
5740
5774
|
activePredictionIndex: x
|
|
5741
5775
|
})),
|
|
5742
|
-
className:
|
|
5776
|
+
className: V("predictions-list-item", {
|
|
5743
5777
|
active: x === m
|
|
5744
5778
|
}),
|
|
5745
5779
|
children: E.description
|
|
@@ -5794,7 +5828,7 @@ const bd = ({
|
|
|
5794
5828
|
const w = v.target;
|
|
5795
5829
|
w.nodeName.toLowerCase() === "a" || w.parentNode && w.parentNode.nodeName.toLowerCase() === "a" || (v.preventDefault(), v.stopPropagation(), f());
|
|
5796
5830
|
},
|
|
5797
|
-
className:
|
|
5831
|
+
className: V("checkbox-wrapper", e),
|
|
5798
5832
|
...h,
|
|
5799
5833
|
...g
|
|
5800
5834
|
},
|
|
@@ -5807,7 +5841,7 @@ const Yp = Gt(function({
|
|
|
5807
5841
|
return /* @__PURE__ */ c.jsx(
|
|
5808
5842
|
Js,
|
|
5809
5843
|
{
|
|
5810
|
-
className:
|
|
5844
|
+
className: V("rotating-chevron", `direction-${t}`)
|
|
5811
5845
|
}
|
|
5812
5846
|
);
|
|
5813
5847
|
});
|
|
@@ -5843,7 +5877,7 @@ const Gp = ({
|
|
|
5843
5877
|
} else
|
|
5844
5878
|
b([]), w && w([]);
|
|
5845
5879
|
};
|
|
5846
|
-
return /* @__PURE__ */ c.jsxs("div", { className:
|
|
5880
|
+
return /* @__PURE__ */ c.jsxs("div", { className: V("dropdown-wrapper", e), children: [
|
|
5847
5881
|
/* @__PURE__ */ c.jsxs(
|
|
5848
5882
|
"button",
|
|
5849
5883
|
{
|
|
@@ -5928,7 +5962,7 @@ const Gp = ({
|
|
|
5928
5962
|
return /* @__PURE__ */ c.jsx("li", { "data-testid": "dropdown-options", children: /* @__PURE__ */ c.jsxs(
|
|
5929
5963
|
"button",
|
|
5930
5964
|
{
|
|
5931
|
-
className:
|
|
5965
|
+
className: V("gtm-trackable", {
|
|
5932
5966
|
selected: L,
|
|
5933
5967
|
"selected-single": L && !o
|
|
5934
5968
|
}),
|
|
@@ -5942,7 +5976,7 @@ const Gp = ({
|
|
|
5942
5976
|
"data-testid": L ? "current-selection" : "",
|
|
5943
5977
|
children: [
|
|
5944
5978
|
o && /* @__PURE__ */ c.jsx("span", { className: "pretty-checkbox", "data-testid": "pretty-checkbox" }),
|
|
5945
|
-
/* @__PURE__ */ c.jsx("span", { className:
|
|
5979
|
+
/* @__PURE__ */ c.jsx("span", { className: V({ "menu-option-label": o }), children: T.label })
|
|
5946
5980
|
]
|
|
5947
5981
|
}
|
|
5948
5982
|
) }, T.id);
|
|
@@ -5990,7 +6024,7 @@ const Qp = ({
|
|
|
5990
6024
|
"ul",
|
|
5991
6025
|
{
|
|
5992
6026
|
...h,
|
|
5993
|
-
className:
|
|
6027
|
+
className: V("options-wrapper", e),
|
|
5994
6028
|
"data-testid": `ul-${r}`,
|
|
5995
6029
|
children: o == null ? void 0 : o.map(
|
|
5996
6030
|
({
|
|
@@ -6051,7 +6085,7 @@ const Jp = ({
|
|
|
6051
6085
|
"button",
|
|
6052
6086
|
{
|
|
6053
6087
|
type: "button",
|
|
6054
|
-
className:
|
|
6088
|
+
className: V("show-password gtm-trackable", {
|
|
6055
6089
|
"password-visible": l
|
|
6056
6090
|
}),
|
|
6057
6091
|
"data-gtm-event-context": n,
|
|
@@ -6144,7 +6178,7 @@ const Vn = {
|
|
|
6144
6178
|
{
|
|
6145
6179
|
...x,
|
|
6146
6180
|
label: T,
|
|
6147
|
-
className:
|
|
6181
|
+
className: V("field-wrapper", n)
|
|
6148
6182
|
}
|
|
6149
6183
|
),
|
|
6150
6184
|
/* @__PURE__ */ c.jsx(L, { as: "p" })
|
|
@@ -6158,7 +6192,7 @@ const Vn = {
|
|
|
6158
6192
|
});
|
|
6159
6193
|
return /* @__PURE__ */ c.jsx(c.Fragment, { children: ie.createElement(
|
|
6160
6194
|
b ? "fieldset" : "div",
|
|
6161
|
-
{ className:
|
|
6195
|
+
{ className: V("field-wrapper text-medium", n) },
|
|
6162
6196
|
/* @__PURE__ */ c.jsxs(c.Fragment, { children: [
|
|
6163
6197
|
ie.createElement(
|
|
6164
6198
|
b ? ie.Fragment : "p",
|
|
@@ -6328,7 +6362,7 @@ const Dn = ({
|
|
|
6328
6362
|
const I = _.id || _.name;
|
|
6329
6363
|
I && (M[I] = _.value || "");
|
|
6330
6364
|
});
|
|
6331
|
-
const [F, C] =
|
|
6365
|
+
const [F, C] = dr(eg, {
|
|
6332
6366
|
isSubmitting: !1,
|
|
6333
6367
|
formSubmitted: !1,
|
|
6334
6368
|
errors: {},
|
|
@@ -6447,7 +6481,7 @@ const Dn = ({
|
|
|
6447
6481
|
{
|
|
6448
6482
|
...p,
|
|
6449
6483
|
id: r,
|
|
6450
|
-
className:
|
|
6484
|
+
className: V("form", n),
|
|
6451
6485
|
ref: ne
|
|
6452
6486
|
},
|
|
6453
6487
|
/* @__PURE__ */ c.jsxs(c.Fragment, { children: [
|
|
@@ -6493,7 +6527,7 @@ const Dn = ({
|
|
|
6493
6527
|
g ? null : (N || q) && m ? m : /* @__PURE__ */ c.jsx(
|
|
6494
6528
|
Zr,
|
|
6495
6529
|
{
|
|
6496
|
-
className:
|
|
6530
|
+
className: V("cta", {
|
|
6497
6531
|
center: N || q,
|
|
6498
6532
|
submitted: q
|
|
6499
6533
|
}),
|
|
@@ -6518,13 +6552,13 @@ const ui = "passwordRules_", yd = "isMoreThanEightCharacters", Dd = "includesNum
|
|
|
6518
6552
|
className: t = ""
|
|
6519
6553
|
}) => {
|
|
6520
6554
|
const n = le();
|
|
6521
|
-
return /* @__PURE__ */ c.jsxs("aside", { className:
|
|
6555
|
+
return /* @__PURE__ */ c.jsxs("aside", { className: V("password-rules", t), children: [
|
|
6522
6556
|
/* @__PURE__ */ c.jsx("small", { children: n.formatMessage({ id: `${ui}intro` }) }),
|
|
6523
6557
|
/* @__PURE__ */ c.jsx("ul", { children: [yd, Dd, xd].map(
|
|
6524
6558
|
(r) => /* @__PURE__ */ c.jsxs(
|
|
6525
6559
|
"li",
|
|
6526
6560
|
{
|
|
6527
|
-
className:
|
|
6561
|
+
className: V({ matches: e[r] }),
|
|
6528
6562
|
children: [
|
|
6529
6563
|
/* @__PURE__ */ c.jsxs(qe, { children: [
|
|
6530
6564
|
n.formatMessage({ id: `${ui}rule_label` }),
|
|
@@ -6542,7 +6576,7 @@ const ui = "passwordRules_", yd = "isMoreThanEightCharacters", Dd = "includesNum
|
|
|
6542
6576
|
) })
|
|
6543
6577
|
] });
|
|
6544
6578
|
}, rg = Gt(ng);
|
|
6545
|
-
const
|
|
6579
|
+
const q_ = ({
|
|
6546
6580
|
text: e = {},
|
|
6547
6581
|
topRating: t = 5,
|
|
6548
6582
|
functions: {
|
|
@@ -6593,14 +6627,14 @@ const z_ = ({
|
|
|
6593
6627
|
u((w) => ({ ...w, disabled: !1 }));
|
|
6594
6628
|
}
|
|
6595
6629
|
};
|
|
6596
|
-
return /* @__PURE__ */ c.jsxs("div", { className:
|
|
6630
|
+
return /* @__PURE__ */ c.jsxs("div", { className: V("rating", a), children: [
|
|
6597
6631
|
/* @__PURE__ */ c.jsx("span", { className: "label", children: f[p ? "success" : "text"] }),
|
|
6598
6632
|
/* @__PURE__ */ c.jsx("ol", { children: Array.from(new Array(t).keys()).map((v) => {
|
|
6599
6633
|
const w = v + 1;
|
|
6600
6634
|
return /* @__PURE__ */ c.jsx(
|
|
6601
6635
|
"li",
|
|
6602
6636
|
{
|
|
6603
|
-
className:
|
|
6637
|
+
className: V({ selected: p && w <= p }),
|
|
6604
6638
|
children: /* @__PURE__ */ c.jsx(
|
|
6605
6639
|
Be,
|
|
6606
6640
|
{
|
|
@@ -7334,7 +7368,7 @@ function xt(e, ...t) {
|
|
|
7334
7368
|
`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`
|
|
7335
7369
|
);
|
|
7336
7370
|
}
|
|
7337
|
-
var
|
|
7371
|
+
var or = Object.getPrototypeOf;
|
|
7338
7372
|
function jn(e) {
|
|
7339
7373
|
return !!e && !!e[Ft];
|
|
7340
7374
|
}
|
|
@@ -7346,7 +7380,7 @@ var Tg = Object.prototype.constructor.toString();
|
|
|
7346
7380
|
function Td(e) {
|
|
7347
7381
|
if (!e || typeof e != "object")
|
|
7348
7382
|
return !1;
|
|
7349
|
-
const t =
|
|
7383
|
+
const t = or(e);
|
|
7350
7384
|
if (t === null)
|
|
7351
7385
|
return !0;
|
|
7352
7386
|
const n = Object.hasOwnProperty.call(t, "constructor") && t.constructor;
|
|
@@ -7402,9 +7436,9 @@ function As(e, t) {
|
|
|
7402
7436
|
value: e[s]
|
|
7403
7437
|
});
|
|
7404
7438
|
}
|
|
7405
|
-
return Object.create(
|
|
7439
|
+
return Object.create(or(e), r);
|
|
7406
7440
|
} else {
|
|
7407
|
-
const r =
|
|
7441
|
+
const r = or(e);
|
|
7408
7442
|
if (r !== null && n)
|
|
7409
7443
|
return { ...e };
|
|
7410
7444
|
const i = Object.create(r);
|
|
@@ -7593,7 +7627,7 @@ var co = {
|
|
|
7593
7627
|
xt(11);
|
|
7594
7628
|
},
|
|
7595
7629
|
getPrototypeOf(e) {
|
|
7596
|
-
return
|
|
7630
|
+
return or(e.base_);
|
|
7597
7631
|
},
|
|
7598
7632
|
setPrototypeOf() {
|
|
7599
7633
|
xt(12);
|
|
@@ -7626,12 +7660,12 @@ function Rg(e, t, n) {
|
|
|
7626
7660
|
function Od(e, t) {
|
|
7627
7661
|
if (!(t in e))
|
|
7628
7662
|
return;
|
|
7629
|
-
let n =
|
|
7663
|
+
let n = or(e);
|
|
7630
7664
|
for (; n; ) {
|
|
7631
7665
|
const r = Object.getOwnPropertyDescriptor(n, t);
|
|
7632
7666
|
if (r)
|
|
7633
7667
|
return r;
|
|
7634
|
-
n =
|
|
7668
|
+
n = or(n);
|
|
7635
7669
|
}
|
|
7636
7670
|
}
|
|
7637
7671
|
function js(e) {
|
|
@@ -7794,7 +7828,7 @@ var Tu = Bt.createDraft.bind(Bt), Su = Bt.finishDraft.bind(Bt), Lg = {
|
|
|
7794
7828
|
e.current = i, i == null && e.unref();
|
|
7795
7829
|
}
|
|
7796
7830
|
}
|
|
7797
|
-
}, Ui = /* @__PURE__ */ new WeakMap(), Hi = /* @__PURE__ */ new WeakMap(),
|
|
7831
|
+
}, Ui = /* @__PURE__ */ new WeakMap(), Hi = /* @__PURE__ */ new WeakMap(), Tr = /* @__PURE__ */ new WeakMap(), Nd = /* @__PURE__ */ new WeakMap(), ju = /* @__PURE__ */ new WeakMap(), Ou = /* @__PURE__ */ new WeakMap(), Pu = /* @__PURE__ */ new WeakMap(), O = {
|
|
7798
7832
|
ancestors(e) {
|
|
7799
7833
|
var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, {
|
|
7800
7834
|
reverse: n = !1
|
|
@@ -8018,7 +8052,7 @@ function Nu(e, t) {
|
|
|
8018
8052
|
}
|
|
8019
8053
|
return n;
|
|
8020
8054
|
}
|
|
8021
|
-
function
|
|
8055
|
+
function Cr(e) {
|
|
8022
8056
|
for (var t = 1; t < arguments.length; t++) {
|
|
8023
8057
|
var n = arguments[t] != null ? arguments[t] : {};
|
|
8024
8058
|
t % 2 ? Nu(Object(n), !0).forEach(function(r) {
|
|
@@ -8146,18 +8180,18 @@ var Hg = (e, t, n) => {
|
|
|
8146
8180
|
}
|
|
8147
8181
|
case "set_selection": {
|
|
8148
8182
|
var {
|
|
8149
|
-
newProperties:
|
|
8183
|
+
newProperties: K
|
|
8150
8184
|
} = n;
|
|
8151
|
-
if (
|
|
8152
|
-
t =
|
|
8185
|
+
if (K == null)
|
|
8186
|
+
t = K;
|
|
8153
8187
|
else {
|
|
8154
8188
|
if (t == null) {
|
|
8155
|
-
if (!H.isRange(
|
|
8156
|
-
throw new Error('Cannot apply an incomplete "set_selection" operation properties '.concat(rt.stringify(
|
|
8157
|
-
t =
|
|
8189
|
+
if (!H.isRange(K))
|
|
8190
|
+
throw new Error('Cannot apply an incomplete "set_selection" operation properties '.concat(rt.stringify(K), " when there is no current selection."));
|
|
8191
|
+
t = Cr({}, K);
|
|
8158
8192
|
}
|
|
8159
|
-
for (var ee in
|
|
8160
|
-
var ce =
|
|
8193
|
+
for (var ee in K) {
|
|
8194
|
+
var ce = K[ee];
|
|
8161
8195
|
if (ce == null) {
|
|
8162
8196
|
if (ee === "anchor" || ee === "focus")
|
|
8163
8197
|
throw new Error('Cannot remove the "'.concat(ee, '" selection property'));
|
|
@@ -8179,18 +8213,18 @@ var Hg = (e, t, n) => {
|
|
|
8179
8213
|
var Xe = oe.get(e, ge), ut = oe.parent(e, ge), Qt = ge[ge.length - 1], Pt;
|
|
8180
8214
|
if (pe.isText(Xe)) {
|
|
8181
8215
|
var at = Xe.text.slice(0, Ee), Lt = Xe.text.slice(Ee);
|
|
8182
|
-
Xe.text = at, Pt =
|
|
8216
|
+
Xe.text = at, Pt = Cr(Cr({}, Je), {}, {
|
|
8183
8217
|
text: Lt
|
|
8184
8218
|
});
|
|
8185
8219
|
} else {
|
|
8186
8220
|
var _t = Xe.children.slice(0, Ee), pa = Xe.children.slice(Ee);
|
|
8187
|
-
Xe.children = _t, Pt =
|
|
8221
|
+
Xe.children = _t, Pt = Cr(Cr({}, Je), {}, {
|
|
8188
8222
|
children: pa
|
|
8189
8223
|
});
|
|
8190
8224
|
}
|
|
8191
8225
|
if (ut.children.splice(Qt + 1, 0, Pt), t)
|
|
8192
|
-
for (var [
|
|
8193
|
-
t[Qr] = ke.transform(
|
|
8226
|
+
for (var [gr, Qr] of H.points(t))
|
|
8227
|
+
t[Qr] = ke.transform(gr, n);
|
|
8194
8228
|
break;
|
|
8195
8229
|
}
|
|
8196
8230
|
}
|
|
@@ -9149,7 +9183,7 @@ var pe = {
|
|
|
9149
9183
|
}
|
|
9150
9184
|
return n;
|
|
9151
9185
|
}
|
|
9152
|
-
}, ho = (e) => e.selection ? e.selection : e.children.length > 0 ? y.end(e, []) : [0],
|
|
9186
|
+
}, ho = (e) => e.selection ? e.selection : e.children.length > 0 ? y.end(e, []) : [0], pr = (e, t) => {
|
|
9153
9187
|
var [n] = y.node(e, t);
|
|
9154
9188
|
return (r) => r === n;
|
|
9155
9189
|
}, mo = function(t) {
|
|
@@ -9358,8 +9392,8 @@ var Tv = (e, t) => {
|
|
|
9358
9392
|
}
|
|
9359
9393
|
Q.transform(e, t), e.operations.push(t), y.normalize(e, {
|
|
9360
9394
|
operation: t
|
|
9361
|
-
}), t.type === "set_selection" && (e.marks = null),
|
|
9362
|
-
|
|
9395
|
+
}), t.type === "set_selection" && (e.marks = null), Tr.get(e) || (Tr.set(e, !0), Promise.resolve().then(() => {
|
|
9396
|
+
Tr.set(e, !1), e.onChange({
|
|
9363
9397
|
operation: t
|
|
9364
9398
|
}), e.operations = [];
|
|
9365
9399
|
}));
|
|
@@ -9569,7 +9603,7 @@ var Mv = (e, t, n) => {
|
|
|
9569
9603
|
var d = Zu(Zu({}, y.marks(e) || {}), {}, {
|
|
9570
9604
|
[t]: n
|
|
9571
9605
|
});
|
|
9572
|
-
e.marks = d,
|
|
9606
|
+
e.marks = d, Tr.get(e) || e.onChange();
|
|
9573
9607
|
}
|
|
9574
9608
|
}
|
|
9575
9609
|
};
|
|
@@ -10267,7 +10301,7 @@ var j0 = (e, t) => {
|
|
|
10267
10301
|
});
|
|
10268
10302
|
else {
|
|
10269
10303
|
var u = S0({}, y.marks(e) || {});
|
|
10270
|
-
delete u[t], e.marks = u,
|
|
10304
|
+
delete u[t], e.marks = u, Tr.get(e) || e.onChange();
|
|
10271
10305
|
}
|
|
10272
10306
|
}
|
|
10273
10307
|
}, O0 = (e, t) => {
|
|
@@ -10801,7 +10835,7 @@ var U0 = function(t, n) {
|
|
|
10801
10835
|
} = n, {
|
|
10802
10836
|
match: s
|
|
10803
10837
|
} = n;
|
|
10804
|
-
if (s == null && (s = O.isPath(r) ?
|
|
10838
|
+
if (s == null && (s = O.isPath(r) ? pr(t, r) : (E) => he.isElement(E) && y.isBlock(t, E)), !!r) {
|
|
10805
10839
|
var o = y.nodes(t, {
|
|
10806
10840
|
at: r,
|
|
10807
10841
|
match: s,
|
|
@@ -10953,7 +10987,7 @@ var U0 = function(t, n) {
|
|
|
10953
10987
|
match: s
|
|
10954
10988
|
} = t;
|
|
10955
10989
|
if (r) {
|
|
10956
|
-
s == null && (s = O.isPath(r) ?
|
|
10990
|
+
s == null && (s = O.isPath(r) ? pr(e, r) : (m) => he.isElement(m) && y.isBlock(e, m));
|
|
10957
10991
|
var o = y.pathRef(e, n), l = y.nodes(e, {
|
|
10958
10992
|
at: r,
|
|
10959
10993
|
match: s,
|
|
@@ -10986,7 +11020,7 @@ var U0 = function(t, n) {
|
|
|
10986
11020
|
match: o
|
|
10987
11021
|
} = n;
|
|
10988
11022
|
if (s) {
|
|
10989
|
-
o == null && (o = O.isPath(s) ?
|
|
11023
|
+
o == null && (o = O.isPath(s) ? pr(t, s) : (m) => he.isElement(m) && y.isBlock(t, m)), !r && H.isRange(s) && (s = y.unhangRange(t, s, {
|
|
10990
11024
|
voids: i
|
|
10991
11025
|
}));
|
|
10992
11026
|
var l = y.nodes(t, {
|
|
@@ -11026,7 +11060,7 @@ var U0 = function(t, n) {
|
|
|
11026
11060
|
voids: h = !1
|
|
11027
11061
|
} = r;
|
|
11028
11062
|
if (a) {
|
|
11029
|
-
if (i == null && (i = O.isPath(a) ?
|
|
11063
|
+
if (i == null && (i = O.isPath(a) ? pr(t, a) : (L) => he.isElement(L) && y.isBlock(t, L)), !l && H.isRange(a) && (a = y.unhangRange(t, a, {
|
|
11030
11064
|
voids: h
|
|
11031
11065
|
})), d && H.isRange(a)) {
|
|
11032
11066
|
if (H.isCollapsed(a) && y.leaf(t, a.anchor)[0].text.length > 0)
|
|
@@ -11182,7 +11216,7 @@ var U0 = function(t, n) {
|
|
|
11182
11216
|
match: o
|
|
11183
11217
|
} = n;
|
|
11184
11218
|
if (s) {
|
|
11185
|
-
o == null && (o = O.isPath(s) ?
|
|
11219
|
+
o == null && (o = O.isPath(s) ? pr(t, s) : (m) => he.isElement(m) && y.isBlock(t, m)), O.isPath(s) && (s = y.range(t, s));
|
|
11186
11220
|
var l = H.isRange(s) ? y.rangeRef(t, s) : null, u = y.nodes(t, {
|
|
11187
11221
|
at: s,
|
|
11188
11222
|
match: o,
|
|
@@ -11244,7 +11278,7 @@ var ib = function(t, n) {
|
|
|
11244
11278
|
at: l = t.selection
|
|
11245
11279
|
} = r;
|
|
11246
11280
|
if (l) {
|
|
11247
|
-
if (o == null && (O.isPath(l) ? o =
|
|
11281
|
+
if (o == null && (O.isPath(l) ? o = pr(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 && H.isRange(l)) {
|
|
11248
11282
|
var [u, d] = H.edges(l), h = y.rangeRef(t, l, {
|
|
11249
11283
|
affinity: "inward"
|
|
11250
11284
|
});
|
|
@@ -11832,16 +11866,16 @@ var _b = Eb, kb = _b, Fb = /^\s+/;
|
|
|
11832
11866
|
function Bb(e) {
|
|
11833
11867
|
return e && e.slice(0, kb(e) + 1).replace(Fb, "");
|
|
11834
11868
|
}
|
|
11835
|
-
var Ab = Bb, Tb = qd, Sb = Tb.Symbol, Wd = Sb, ll = Wd, Ud = Object.prototype, jb = Ud.hasOwnProperty, Ob = Ud.toString,
|
|
11869
|
+
var Ab = Bb, Tb = qd, Sb = Tb.Symbol, Wd = Sb, ll = Wd, Ud = Object.prototype, jb = Ud.hasOwnProperty, Ob = Ud.toString, Er = ll ? ll.toStringTag : void 0;
|
|
11836
11870
|
function Pb(e) {
|
|
11837
|
-
var t = jb.call(e,
|
|
11871
|
+
var t = jb.call(e, Er), n = e[Er];
|
|
11838
11872
|
try {
|
|
11839
|
-
e[
|
|
11873
|
+
e[Er] = void 0;
|
|
11840
11874
|
var r = !0;
|
|
11841
11875
|
} catch {
|
|
11842
11876
|
}
|
|
11843
11877
|
var i = Ob.call(e);
|
|
11844
|
-
return r && (t ? e[
|
|
11878
|
+
return r && (t ? e[Er] = n : delete e[Er]), i;
|
|
11845
11879
|
}
|
|
11846
11880
|
var Nb = Pb, Mb = Object.prototype, Rb = Mb.toString;
|
|
11847
11881
|
function Ib(e) {
|
|
@@ -12084,7 +12118,7 @@ var An = function(e) {
|
|
|
12084
12118
|
return !0;
|
|
12085
12119
|
}
|
|
12086
12120
|
return !1;
|
|
12087
|
-
},
|
|
12121
|
+
}, Sr = typeof window < "u" ? window : {}, di = /* @__PURE__ */ new WeakMap(), Dl = /auto|scroll/, Fy = /^tb|vertical/, By = /msie|trident/i.test(Sr.navigator && Sr.navigator.userAgent), zt = function(e) {
|
|
12088
12122
|
return parseFloat(e || "0");
|
|
12089
12123
|
}, nr = function(e, t, n) {
|
|
12090
12124
|
return e === void 0 && (e = 0), t === void 0 && (t = 0), n === void 0 && (n = !1), new _y((n ? t : e) || 0, (n ? e : t) || 0);
|
|
@@ -12222,16 +12256,16 @@ var An = function(e) {
|
|
|
12222
12256
|
var t = this, n = function() {
|
|
12223
12257
|
return t.observer && t.observer.observe(document.body, Ry);
|
|
12224
12258
|
};
|
|
12225
|
-
document.body ? n() :
|
|
12259
|
+
document.body ? n() : Sr.addEventListener("DOMContentLoaded", n);
|
|
12226
12260
|
}, e.prototype.start = function() {
|
|
12227
12261
|
var t = this;
|
|
12228
12262
|
this.stopped && (this.stopped = !1, this.observer = new MutationObserver(this.listener), this.observe(), Cl.forEach(function(n) {
|
|
12229
|
-
return
|
|
12263
|
+
return Sr.addEventListener(n, t.listener, !0);
|
|
12230
12264
|
}));
|
|
12231
12265
|
}, e.prototype.stop = function() {
|
|
12232
12266
|
var t = this;
|
|
12233
12267
|
this.stopped || (this.observer && this.observer.disconnect(), Cl.forEach(function(n) {
|
|
12234
|
-
return
|
|
12268
|
+
return Sr.removeEventListener(n, t.listener, !0);
|
|
12235
12269
|
}), this.stopped = !0);
|
|
12236
12270
|
}, e;
|
|
12237
12271
|
}(), Ps = new Iy(), _l = function(e) {
|
|
@@ -12447,7 +12481,7 @@ function Ky(e, t) {
|
|
|
12447
12481
|
i = r[a], !(t.indexOf(i) >= 0) && (n[i] = e[i]);
|
|
12448
12482
|
return n;
|
|
12449
12483
|
}
|
|
12450
|
-
function
|
|
12484
|
+
function ur(e, t) {
|
|
12451
12485
|
if (e == null)
|
|
12452
12486
|
return {};
|
|
12453
12487
|
var n = Ky(e, t), r, i;
|
|
@@ -12495,9 +12529,9 @@ var Do = /* @__PURE__ */ Ct(null), xn = () => {
|
|
|
12495
12529
|
if (!e)
|
|
12496
12530
|
throw new Error("The `useSlateStatic` hook must be used inside the <Slate> component's context.");
|
|
12497
12531
|
return e;
|
|
12498
|
-
}, nf = parseInt(ie.version.split(".")[0], 10), Gy = typeof navigator < "u" && typeof window < "u" && /iPad|iPhone|iPod/.test(navigator.userAgent) && !window.MSStream, Fl = typeof navigator < "u" && /Mac OS X/.test(navigator.userAgent), pt = typeof navigator < "u" && /Android/.test(navigator.userAgent), Xn = typeof navigator < "u" && /^(?!.*Seamonkey)(?=.*Firefox).*/i.test(navigator.userAgent),
|
|
12532
|
+
}, nf = parseInt(ie.version.split(".")[0], 10), Gy = typeof navigator < "u" && typeof window < "u" && /iPad|iPhone|iPod/.test(navigator.userAgent) && !window.MSStream, Fl = typeof navigator < "u" && /Mac OS X/.test(navigator.userAgent), pt = typeof navigator < "u" && /Android/.test(navigator.userAgent), Xn = typeof navigator < "u" && /^(?!.*Seamonkey)(?=.*Firefox).*/i.test(navigator.userAgent), Br = typeof navigator < "u" && /AppleWebKit(?!.*Chrome)/i.test(navigator.userAgent), Qy = typeof navigator < "u" && /Edge?\/(?:[0-6][0-9]|[0-7][0-8])(?:\.)/i.test(navigator.userAgent), rf = typeof navigator < "u" && /Chrome/i.test(navigator.userAgent), Jy = typeof navigator < "u" && /Chrome?\/(?:[0-7][0-5]|[0-6][0-9])(?:\.)/i.test(navigator.userAgent), Xy = pt && typeof navigator < "u" && /Chrome?\/(?:[0-5]?\d)(?:\.)/i.test(navigator.userAgent), e1 = typeof navigator < "u" && /^(?!.*Seamonkey)(?=.*Firefox\/(?:[0-7][0-9]|[0-8][0-6])(?:\.)).*/i.test(navigator.userAgent), t1 = typeof navigator < "u" && /.*UCBrowser/.test(navigator.userAgent), n1 = typeof navigator < "u" && /.*Wechat/.test(navigator.userAgent) && !/.*MacWechat/.test(navigator.userAgent), Fi = typeof window < "u" && typeof window.document < "u" && typeof window.document.createElement < "u", cn = (!Jy || !Xy) && !Qy && // globalThis is undefined in older browsers
|
|
12499
12533
|
typeof globalThis < "u" && globalThis.InputEvent && // @ts-ignore The `getTargetRanges` property isn't recognized.
|
|
12500
|
-
typeof globalThis.InputEvent.prototype.getTargetRanges == "function", xo = /* @__PURE__ */ new WeakMap(), wo = /* @__PURE__ */ new WeakMap(), af = /* @__PURE__ */ new WeakMap(), Bi = /* @__PURE__ */ new WeakMap(), Ns = /* @__PURE__ */ new WeakMap(), Hr = /* @__PURE__ */ new WeakMap(), Tn = /* @__PURE__ */ new WeakMap(), Vi = /* @__PURE__ */ new WeakMap(), ca = /* @__PURE__ */ new WeakMap(), Ms = /* @__PURE__ */ new WeakMap(), gn = /* @__PURE__ */ new WeakMap(), kn = /* @__PURE__ */ new WeakMap(),
|
|
12534
|
+
typeof globalThis.InputEvent.prototype.getTargetRanges == "function", xo = /* @__PURE__ */ new WeakMap(), wo = /* @__PURE__ */ new WeakMap(), af = /* @__PURE__ */ new WeakMap(), Bi = /* @__PURE__ */ new WeakMap(), Ns = /* @__PURE__ */ new WeakMap(), Hr = /* @__PURE__ */ new WeakMap(), Tn = /* @__PURE__ */ new WeakMap(), Vi = /* @__PURE__ */ new WeakMap(), ca = /* @__PURE__ */ new WeakMap(), Ms = /* @__PURE__ */ new WeakMap(), gn = /* @__PURE__ */ new WeakMap(), kn = /* @__PURE__ */ new WeakMap(), jr = /* @__PURE__ */ new WeakMap(), Rs = /* @__PURE__ */ new WeakMap(), Co = /* @__PURE__ */ new WeakMap(), Rt = /* @__PURE__ */ new WeakMap(), tn = /* @__PURE__ */ new WeakMap(), Dt = /* @__PURE__ */ new WeakMap(), fn = /* @__PURE__ */ new WeakMap(), hn = /* @__PURE__ */ new WeakMap(), sf = /* @__PURE__ */ new WeakMap(), lr = Symbol("placeholder"), of = Symbol("mark-placeholder"), r1 = globalThis.Text, Eo = (e) => e && e.ownerDocument && e.ownerDocument.defaultView || null, i1 = (e) => yn(e) && e.nodeType === 8, jt = (e) => yn(e) && e.nodeType === 1, yn = (e) => {
|
|
12501
12535
|
var t = Eo(e);
|
|
12502
12536
|
return !!t && e instanceof t.Node;
|
|
12503
12537
|
}, Is = (e) => {
|
|
@@ -13474,20 +13508,20 @@ function C1(e) {
|
|
|
13474
13508
|
at: N
|
|
13475
13509
|
});
|
|
13476
13510
|
if (O.equals(N.anchor.path, N.focus.path)) {
|
|
13477
|
-
var [We, Ve] = H.edges(N),
|
|
13511
|
+
var [We, Ve] = H.edges(N), K = {
|
|
13478
13512
|
start: We.offset,
|
|
13479
13513
|
end: Ve.offset,
|
|
13480
13514
|
text: we
|
|
13481
13515
|
};
|
|
13482
13516
|
if (we && u && S === "insertCompositionText") {
|
|
13483
|
-
var ee = u.start + u.text.search(/\S|$/), ce =
|
|
13484
|
-
ce === ee + 1 &&
|
|
13517
|
+
var ee = u.start + u.text.search(/\S|$/), ce = K.start + K.text.search(/\S|$/);
|
|
13518
|
+
ce === ee + 1 && K.end === u.start + u.text.length ? (K.start -= 1, u = null, z()) : u = !1;
|
|
13485
13519
|
} else
|
|
13486
|
-
S === "insertText" ? u === null ? u =
|
|
13520
|
+
S === "insertText" ? u === null ? u = K : u && H.isCollapsed(N) && u.end + u.text.length === We.offset ? u = pi(pi({}, u), {}, {
|
|
13487
13521
|
text: u.text + we
|
|
13488
13522
|
}) : u = !1 : u = !1;
|
|
13489
13523
|
if (D) {
|
|
13490
|
-
b(We.path,
|
|
13524
|
+
b(We.path, K);
|
|
13491
13525
|
return;
|
|
13492
13526
|
}
|
|
13493
13527
|
}
|
|
@@ -13583,7 +13617,7 @@ var B1 = {
|
|
|
13583
13617
|
}, A1 = pt ? (e) => {
|
|
13584
13618
|
var {
|
|
13585
13619
|
node: t
|
|
13586
|
-
} = e, n =
|
|
13620
|
+
} = e, n = ur(e, k1);
|
|
13587
13621
|
if (!pt)
|
|
13588
13622
|
return null;
|
|
13589
13623
|
var r = xn(), i = E1(), [a] = ue(() => C1(F1({
|
|
@@ -13591,8 +13625,8 @@ var B1 = {
|
|
|
13591
13625
|
}, n)));
|
|
13592
13626
|
return _1(t, a.handleDomMutations, B1), Co.set(r, a.scheduleFlush), i && a.flush(), a;
|
|
13593
13627
|
} : () => null, T1 = ["anchor", "focus"], S1 = ["anchor", "focus"], j1 = (e, t) => Object.keys(e).length === Object.keys(t).length && Object.keys(e).every((n) => t.hasOwnProperty(n) && e[n] === t[n]), hf = (e, t) => {
|
|
13594
|
-
var n =
|
|
13595
|
-
return e[
|
|
13628
|
+
var n = ur(e, T1), r = ur(t, S1);
|
|
13629
|
+
return e[lr] === t[lr] && j1(n, r);
|
|
13596
13630
|
}, O1 = (e, t) => {
|
|
13597
13631
|
if (e.length !== t.length)
|
|
13598
13632
|
return !1;
|
|
@@ -13735,7 +13769,7 @@ var L1 = (e) => {
|
|
|
13735
13769
|
leaf: t,
|
|
13736
13770
|
parent: i,
|
|
13737
13771
|
text: r
|
|
13738
|
-
}), f = !!t[
|
|
13772
|
+
}), f = !!t[lr];
|
|
13739
13773
|
if (de(() => (f ? p.current || (p.current = setTimeout(() => {
|
|
13740
13774
|
h(!0), p.current = null;
|
|
13741
13775
|
}, I1)) : (Nl(p), h(!1)), () => Nl(p)), [f, h]), f && d) {
|
|
@@ -13754,7 +13788,7 @@ var L1 = (e) => {
|
|
|
13754
13788
|
userSelect: "none",
|
|
13755
13789
|
textDecoration: "none",
|
|
13756
13790
|
// Fixes https://github.com/udecode/plate/issues/2315
|
|
13757
|
-
WebkitUserModify:
|
|
13791
|
+
WebkitUserModify: Br ? "inherit" : void 0
|
|
13758
13792
|
},
|
|
13759
13793
|
contentEditable: !1,
|
|
13760
13794
|
ref: m
|
|
@@ -13771,7 +13805,7 @@ var L1 = (e) => {
|
|
|
13771
13805
|
leaf: t,
|
|
13772
13806
|
text: r
|
|
13773
13807
|
});
|
|
13774
|
-
}, z1 = /* @__PURE__ */ ie.memo(L1, (e, t) => t.parent === e.parent && t.isLast === e.isLast && t.renderLeaf === e.renderLeaf && t.renderPlaceholder === e.renderPlaceholder && t.text === e.text && pe.equals(t.leaf, e.leaf) && t.leaf[
|
|
13808
|
+
}, z1 = /* @__PURE__ */ ie.memo(L1, (e, t) => t.parent === e.parent && t.isLast === e.isLast && t.renderLeaf === e.renderLeaf && t.renderPlaceholder === e.renderPlaceholder && t.text === e.text && pe.equals(t.leaf, e.leaf) && t.leaf[lr] === e.leaf[lr]), q1 = (e) => {
|
|
13775
13809
|
var {
|
|
13776
13810
|
attributes: t,
|
|
13777
13811
|
children: n
|
|
@@ -14119,10 +14153,10 @@ var sD = (e) => /* @__PURE__ */ ie.createElement(ie.Fragment, null, vf(e)), oD =
|
|
|
14119
14153
|
style: h = {},
|
|
14120
14154
|
as: p = "div",
|
|
14121
14155
|
disableDefaultStyles: m = !1
|
|
14122
|
-
} = e, g =
|
|
14156
|
+
} = e, g = ur(e, iD), f = zn(), [b, v] = ue(!1), w = _e(null), B = _e([]), [E, x] = ue(), {
|
|
14123
14157
|
onUserInput: A,
|
|
14124
14158
|
receivedUserInput: T
|
|
14125
|
-
} = G1(), [, L] =
|
|
14159
|
+
} = G1(), [, L] = dr((_) => _ + 1, 0);
|
|
14126
14160
|
sf.set(f, L), Ms.set(f, s);
|
|
14127
14161
|
var P = Vt(() => ({
|
|
14128
14162
|
isDraggingInternally: !1,
|
|
@@ -14276,7 +14310,7 @@ var sD = (e) => /* @__PURE__ */ ie.createElement(ie.Fragment, null, vf(e)), oD =
|
|
|
14276
14310
|
if (!R || !H.equals(R, we)) {
|
|
14277
14311
|
ae = !1;
|
|
14278
14312
|
var We = !J && f.selection && y.rangeRef(f, f.selection);
|
|
14279
|
-
Q.select(f, we), We &&
|
|
14313
|
+
Q.select(f, we), We && jr.set(f, We);
|
|
14280
14314
|
}
|
|
14281
14315
|
}
|
|
14282
14316
|
}
|
|
@@ -14366,8 +14400,8 @@ var sD = (e) => /* @__PURE__ */ ie.createElement(ie.Fragment, null, vf(e)), oD =
|
|
|
14366
14400
|
break;
|
|
14367
14401
|
}
|
|
14368
14402
|
}
|
|
14369
|
-
var
|
|
14370
|
-
|
|
14403
|
+
var K = (I = jr.get(f)) === null || I === void 0 ? void 0 : I.unref();
|
|
14404
|
+
jr.delete(f), K && (!f.selection || !H.equals(f.selection, K)) && Q.select(f, K);
|
|
14371
14405
|
}
|
|
14372
14406
|
}, [f, M, A, i, s, F]), S = Re((_) => {
|
|
14373
14407
|
_ == 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 = _;
|
|
@@ -14388,7 +14422,7 @@ var sD = (e) => /* @__PURE__ */ ie.createElement(ie.Fragment, null, vf(e)), oD =
|
|
|
14388
14422
|
if (q) {
|
|
14389
14423
|
var Y = y.start(f, []);
|
|
14390
14424
|
N.push({
|
|
14391
|
-
[
|
|
14425
|
+
[lr]: !0,
|
|
14392
14426
|
placeholder: a,
|
|
14393
14427
|
onPlaceholderResize: U,
|
|
14394
14428
|
anchor: Y,
|
|
@@ -14401,7 +14435,7 @@ var sD = (e) => /* @__PURE__ */ ie.createElement(ie.Fragment, null, vf(e)), oD =
|
|
|
14401
14435
|
if (P.hasMarkPlaceholder = !1, f.selection && H.isCollapsed(f.selection) && ne) {
|
|
14402
14436
|
var {
|
|
14403
14437
|
anchor: D
|
|
14404
|
-
} = f.selection, $ = oe.leaf(f, D.path), X =
|
|
14438
|
+
} = f.selection, $ = oe.leaf(f, D.path), X = ur($, aD);
|
|
14405
14439
|
if (!pe.equals($, ne, {
|
|
14406
14440
|
loose: !0
|
|
14407
14441
|
})) {
|
|
@@ -14502,7 +14536,7 @@ var sD = (e) => /* @__PURE__ */ ie.createElement(ie.Fragment, null, vf(e)), oD =
|
|
|
14502
14536
|
if (he.isElement(re) && !f.isVoid(re))
|
|
14503
14537
|
return;
|
|
14504
14538
|
}
|
|
14505
|
-
if (
|
|
14539
|
+
if (Br) {
|
|
14506
14540
|
var J = I.getSelection();
|
|
14507
14541
|
J == null || J.removeAllRanges();
|
|
14508
14542
|
}
|
|
@@ -14549,7 +14583,7 @@ var sD = (e) => /* @__PURE__ */ ie.createElement(ie.Fragment, null, vf(e)), oD =
|
|
|
14549
14583
|
v(!1), kn.set(f, !1);
|
|
14550
14584
|
}), (I = z.current) === null || I === void 0 || I.handleCompositionEnd(_), ht(_, g.onCompositionEnd) || pt)
|
|
14551
14585
|
return;
|
|
14552
|
-
if (!
|
|
14586
|
+
if (!Br && !e1 && !Gy && !n1 && !t1 && _.data) {
|
|
14553
14587
|
var R = Rt.get(f);
|
|
14554
14588
|
Rt.delete(f), R !== void 0 && (tn.set(f, f.marks), f.marks = R), y.insertText(f, _.data);
|
|
14555
14589
|
var W = tn.get(f);
|
|
@@ -14725,7 +14759,7 @@ var sD = (e) => /* @__PURE__ */ ie.createElement(ie.Fragment, null, vf(e)), oD =
|
|
|
14725
14759
|
return;
|
|
14726
14760
|
}
|
|
14727
14761
|
if (cn) {
|
|
14728
|
-
if ((rf ||
|
|
14762
|
+
if ((rf || Br) && W && (Qe.isDeleteBackward(R) || Qe.isDeleteForward(R)) && H.isCollapsed(W)) {
|
|
14729
14763
|
var G = oe.parent(f, W.anchor.path);
|
|
14730
14764
|
if (he.isElement(G) && y.isVoid(f, G) && (y.isInline(f, G) || y.isBlock(f, G))) {
|
|
14731
14765
|
_.preventDefault(), y.deleteBackward(f, {
|
|
@@ -14795,7 +14829,7 @@ var sD = (e) => /* @__PURE__ */ ie.createElement(ie.Fragment, null, vf(e)), oD =
|
|
|
14795
14829
|
}
|
|
14796
14830
|
}, [s, f, g.onKeyDown]),
|
|
14797
14831
|
onPaste: Re((_) => {
|
|
14798
|
-
!s && te.hasEditableTarget(f, _.target) && !ht(_, g.onPaste) && (!cn || a1(_.nativeEvent) ||
|
|
14832
|
+
!s && te.hasEditableTarget(f, _.target) && !ht(_, g.onPaste) && (!cn || a1(_.nativeEvent) || Br) && (_.preventDefault(), te.insertData(f, _.clipboardData));
|
|
14799
14833
|
}, [s, f, g.onPaste])
|
|
14800
14834
|
}), /* @__PURE__ */ ie.createElement(sD, {
|
|
14801
14835
|
decorations: N,
|
|
@@ -14857,7 +14891,7 @@ var pD = ["editor", "children", "onChange", "onSelectionChange", "onValueChange"
|
|
|
14857
14891
|
onSelectionChange: i,
|
|
14858
14892
|
onValueChange: a,
|
|
14859
14893
|
initialValue: s
|
|
14860
|
-
} = e, o =
|
|
14894
|
+
} = e, o = ur(e, pD), [l, u] = ie.useState(() => {
|
|
14861
14895
|
if (!oe.isNodeList(s))
|
|
14862
14896
|
throw new Error("[Slate] initialValue is invalid! Expected a list of elements but got: ".concat(rt.stringify(s)));
|
|
14863
14897
|
if (!y.isEditor(t))
|
|
@@ -14999,7 +15033,7 @@ var bD = function(t) {
|
|
|
14999
15033
|
}
|
|
15000
15034
|
case "set_selection": {
|
|
15001
15035
|
var v;
|
|
15002
|
-
(v =
|
|
15036
|
+
(v = jr.get(r)) === null || v === void 0 || v.unref(), jr.delete(r);
|
|
15003
15037
|
break;
|
|
15004
15038
|
}
|
|
15005
15039
|
case "insert_node":
|
|
@@ -15125,7 +15159,7 @@ const yD = {
|
|
|
15125
15159
|
console.error(e);
|
|
15126
15160
|
}
|
|
15127
15161
|
}, ln = Ct(yD);
|
|
15128
|
-
var
|
|
15162
|
+
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
15163
|
const DD = ({
|
|
15130
15164
|
attributes: e,
|
|
15131
15165
|
children: t,
|
|
@@ -15133,13 +15167,13 @@ const DD = ({
|
|
|
15133
15167
|
}) => {
|
|
15134
15168
|
const r = n;
|
|
15135
15169
|
switch (r.type) {
|
|
15136
|
-
case
|
|
15170
|
+
case Z.blockquote:
|
|
15137
15171
|
return /* @__PURE__ */ c.jsx("blockquote", { className: "subtle", ...e, children: t });
|
|
15138
|
-
case
|
|
15172
|
+
case Z.link:
|
|
15139
15173
|
return /* @__PURE__ */ c.jsx("a", { ...e, children: t });
|
|
15140
|
-
case
|
|
15174
|
+
case Z.li:
|
|
15141
15175
|
return /* @__PURE__ */ c.jsx("li", { ...e, children: t });
|
|
15142
|
-
case
|
|
15176
|
+
case Z.mention:
|
|
15143
15177
|
const i = r;
|
|
15144
15178
|
return i != null && i.name && i.name === Si ? /* @__PURE__ */ c.jsxs("span", { ...e, className: "mention deleted-user", children: [
|
|
15145
15179
|
"@",
|
|
@@ -15150,20 +15184,20 @@ const DD = ({
|
|
|
15150
15184
|
(i == null ? void 0 : i.name) || "",
|
|
15151
15185
|
t
|
|
15152
15186
|
] });
|
|
15153
|
-
case
|
|
15187
|
+
case Z.ol:
|
|
15154
15188
|
return /* @__PURE__ */ c.jsx("ol", { ...e, children: t });
|
|
15155
|
-
case
|
|
15189
|
+
case Z.ul:
|
|
15156
15190
|
return /* @__PURE__ */ c.jsx("ul", { ...e, children: t });
|
|
15157
|
-
case
|
|
15191
|
+
case Z.span:
|
|
15158
15192
|
return /* @__PURE__ */ c.jsx("span", { ...e, children: t });
|
|
15159
|
-
case
|
|
15193
|
+
case Z.paragraph:
|
|
15160
15194
|
return /* @__PURE__ */ c.jsx("p", { ...e, children: t });
|
|
15161
15195
|
default:
|
|
15162
15196
|
return /* @__PURE__ */ c.jsx("span", { ...e, children: t });
|
|
15163
15197
|
}
|
|
15164
15198
|
}, xD = ({ attributes: e, children: t, leaf: n }) => {
|
|
15165
15199
|
const r = n;
|
|
15166
|
-
return r[
|
|
15200
|
+
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
15201
|
}, qs = "MENTION: ", xf = {
|
|
15168
15202
|
anchor: { offset: 0, path: [0, 0] },
|
|
15169
15203
|
focus: { offset: 0, path: [0, 0] }
|
|
@@ -15218,7 +15252,7 @@ const DD = ({
|
|
|
15218
15252
|
}
|
|
15219
15253
|
const [i] = y.nodes(e, {
|
|
15220
15254
|
at: r,
|
|
15221
|
-
match: (a) => a.type ===
|
|
15255
|
+
match: (a) => a.type === Z.link
|
|
15222
15256
|
});
|
|
15223
15257
|
if (i) {
|
|
15224
15258
|
const a = i[0], s = Uc(a.link), o = a.children[0], l = (o == null ? void 0 : o.text) || "";
|
|
@@ -15229,15 +15263,15 @@ const DD = ({
|
|
|
15229
15263
|
};
|
|
15230
15264
|
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
15265
|
const er = {
|
|
15232
|
-
[
|
|
15233
|
-
[
|
|
15234
|
-
[
|
|
15235
|
-
[
|
|
15236
|
-
[
|
|
15237
|
-
[
|
|
15238
|
-
[
|
|
15239
|
-
[
|
|
15240
|
-
[
|
|
15266
|
+
[Z.paragraph]: Z.paragraph,
|
|
15267
|
+
[Z.blockquote]: Z.blockquote,
|
|
15268
|
+
[Z.codeblock]: Z.codeblock,
|
|
15269
|
+
[Z.link]: Z.link,
|
|
15270
|
+
[Z.ul]: Z.ul,
|
|
15271
|
+
[Z.ol]: Z.ol,
|
|
15272
|
+
[Z.li]: Z.li,
|
|
15273
|
+
[Z.mention]: Z.mention,
|
|
15274
|
+
[Z.heading]: {
|
|
15241
15275
|
1: "heading_one",
|
|
15242
15276
|
2: "heading_two",
|
|
15243
15277
|
3: "heading_three",
|
|
@@ -15245,12 +15279,12 @@ const er = {
|
|
|
15245
15279
|
5: "heading_five",
|
|
15246
15280
|
6: "heading_six"
|
|
15247
15281
|
},
|
|
15248
|
-
[nn.emphasis]:
|
|
15249
|
-
[nn.strong]:
|
|
15250
|
-
[nn.delete]:
|
|
15251
|
-
[nn.code]:
|
|
15252
|
-
[
|
|
15253
|
-
[
|
|
15282
|
+
[nn.emphasis]: Z.italic,
|
|
15283
|
+
[nn.strong]: Z.bold,
|
|
15284
|
+
[nn.delete]: Z.strikethrough,
|
|
15285
|
+
[nn.code]: Z.code,
|
|
15286
|
+
[Z.hr]: Z.hr,
|
|
15287
|
+
[Z.image]: Z.image
|
|
15254
15288
|
};
|
|
15255
15289
|
function Ul(e) {
|
|
15256
15290
|
if (e)
|
|
@@ -15354,7 +15388,7 @@ function _D(e, t) {
|
|
|
15354
15388
|
i(null, s);
|
|
15355
15389
|
}
|
|
15356
15390
|
}
|
|
15357
|
-
function
|
|
15391
|
+
function Or(e) {
|
|
15358
15392
|
return !e || typeof e != "object" ? "" : "position" in e || "type" in e ? Ql(e.position) : "start" in e || "end" in e ? Ql(e) : "line" in e || "column" in e ? Us(e) : "";
|
|
15359
15393
|
}
|
|
15360
15394
|
function Us(e) {
|
|
@@ -15437,7 +15471,7 @@ class Et extends Error {
|
|
|
15437
15471
|
l && (a.place = l.position);
|
|
15438
15472
|
}
|
|
15439
15473
|
const o = a.place && "start" in a.place ? a.place.start : a.place;
|
|
15440
|
-
this.ancestors = a.ancestors || void 0, this.cause = a.cause || void 0, this.column = o ? o.column : void 0, this.fatal = void 0, this.file, this.message = i, this.line = o ? o.line : void 0, this.name =
|
|
15474
|
+
this.ancestors = a.ancestors || void 0, this.cause = a.cause || void 0, this.column = o ? o.column : void 0, this.fatal = void 0, this.file, this.message = i, this.line = o ? o.line : void 0, this.name = Or(a.place) || "1:1", this.place = a.place || void 0, this.reason = this.message, this.ruleId = a.ruleId || void 0, this.source = a.source || void 0, this.stack = s && a.cause && typeof a.cause.stack == "string" ? a.cause.stack : "", this.actual, this.expected, this.note, this.url;
|
|
15441
15475
|
}
|
|
15442
15476
|
}
|
|
15443
15477
|
Et.prototype.file = "";
|
|
@@ -17311,7 +17345,7 @@ class _x {
|
|
|
17311
17345
|
const i = n || 0;
|
|
17312
17346
|
this.setCursor(Math.trunc(t));
|
|
17313
17347
|
const a = this.right.splice(this.right.length - i, Number.POSITIVE_INFINITY);
|
|
17314
|
-
return r &&
|
|
17348
|
+
return r && _r(this.left, r), a.reverse();
|
|
17315
17349
|
}
|
|
17316
17350
|
/**
|
|
17317
17351
|
* Remove and return the highest-numbered item in the array, so
|
|
@@ -17346,7 +17380,7 @@ class _x {
|
|
|
17346
17380
|
* Nothing.
|
|
17347
17381
|
*/
|
|
17348
17382
|
pushMany(t) {
|
|
17349
|
-
this.setCursor(Number.POSITIVE_INFINITY),
|
|
17383
|
+
this.setCursor(Number.POSITIVE_INFINITY), _r(this.left, t);
|
|
17350
17384
|
}
|
|
17351
17385
|
/**
|
|
17352
17386
|
* Inserts a single item to the low-numbered side of the array;
|
|
@@ -17370,7 +17404,7 @@ class _x {
|
|
|
17370
17404
|
* Nothing.
|
|
17371
17405
|
*/
|
|
17372
17406
|
unshiftMany(t) {
|
|
17373
|
-
this.setCursor(0),
|
|
17407
|
+
this.setCursor(0), _r(this.right, t.reverse());
|
|
17374
17408
|
}
|
|
17375
17409
|
/**
|
|
17376
17410
|
* Move the cursor to a specific position in the array. Requires
|
|
@@ -17388,14 +17422,14 @@ class _x {
|
|
|
17388
17422
|
if (!(t === this.left.length || t > this.left.length && this.right.length === 0 || t < 0 && this.left.length === 0))
|
|
17389
17423
|
if (t < this.left.length) {
|
|
17390
17424
|
const n = this.left.splice(t, Number.POSITIVE_INFINITY);
|
|
17391
|
-
|
|
17425
|
+
_r(this.right, n.reverse());
|
|
17392
17426
|
} else {
|
|
17393
17427
|
const n = this.right.splice(this.left.length + this.right.length - t, Number.POSITIVE_INFINITY);
|
|
17394
|
-
|
|
17428
|
+
_r(this.left, n.reverse());
|
|
17395
17429
|
}
|
|
17396
17430
|
}
|
|
17397
17431
|
}
|
|
17398
|
-
function
|
|
17432
|
+
function _r(e, t) {
|
|
17399
17433
|
let n = 0;
|
|
17400
17434
|
if (t.length < 1e4)
|
|
17401
17435
|
e.push(...t);
|
|
@@ -17561,7 +17595,7 @@ function jf(e, t, n, r, i, a) {
|
|
|
17561
17595
|
return p === s || p === 92 ? (e.consume(p), d) : d(p);
|
|
17562
17596
|
}
|
|
17563
17597
|
}
|
|
17564
|
-
function
|
|
17598
|
+
function Pr(e, t) {
|
|
17565
17599
|
let n;
|
|
17566
17600
|
return r;
|
|
17567
17601
|
function r(i) {
|
|
@@ -17602,7 +17636,7 @@ function Px(e, t, n) {
|
|
|
17602
17636
|
return i = rr(r.sliceSerialize(r.events[r.events.length - 1][1]).slice(1, -1)), m === 58 ? (e.enter("definitionMarker"), e.consume(m), e.exit("definitionMarker"), l) : n(m);
|
|
17603
17637
|
}
|
|
17604
17638
|
function l(m) {
|
|
17605
|
-
return wt(m) ?
|
|
17639
|
+
return wt(m) ? Pr(e, u)(m) : u(m);
|
|
17606
17640
|
}
|
|
17607
17641
|
function u(m) {
|
|
17608
17642
|
return Tf(
|
|
@@ -17630,7 +17664,7 @@ function Px(e, t, n) {
|
|
|
17630
17664
|
function Nx(e, t, n) {
|
|
17631
17665
|
return r;
|
|
17632
17666
|
function r(o) {
|
|
17633
|
-
return wt(o) ?
|
|
17667
|
+
return wt(o) ? Pr(e, i)(o) : n(o);
|
|
17634
17668
|
}
|
|
17635
17669
|
function i(o) {
|
|
17636
17670
|
return jf(e, a, n, "definitionTitle", "definitionTitleMarker", "definitionTitleString")(o);
|
|
@@ -18076,13 +18110,13 @@ function rw(e, t, n) {
|
|
|
18076
18110
|
return e.enter("resource"), e.enter("resourceMarker"), e.consume(h), e.exit("resourceMarker"), i;
|
|
18077
18111
|
}
|
|
18078
18112
|
function i(h) {
|
|
18079
|
-
return wt(h) ?
|
|
18113
|
+
return wt(h) ? Pr(e, a)(h) : a(h);
|
|
18080
18114
|
}
|
|
18081
18115
|
function a(h) {
|
|
18082
18116
|
return h === 41 ? d(h) : Tf(e, s, o, "resourceDestination", "resourceDestinationLiteral", "resourceDestinationLiteralMarker", "resourceDestinationRaw", "resourceDestinationString", 32)(h);
|
|
18083
18117
|
}
|
|
18084
18118
|
function s(h) {
|
|
18085
|
-
return wt(h) ?
|
|
18119
|
+
return wt(h) ? Pr(e, l)(h) : d(h);
|
|
18086
18120
|
}
|
|
18087
18121
|
function o(h) {
|
|
18088
18122
|
return n(h);
|
|
@@ -18091,7 +18125,7 @@ function rw(e, t, n) {
|
|
|
18091
18125
|
return h === 34 || h === 39 || h === 40 ? jf(e, u, n, "resourceTitle", "resourceTitleMarker", "resourceTitleString")(h) : d(h);
|
|
18092
18126
|
}
|
|
18093
18127
|
function u(h) {
|
|
18094
|
-
return wt(h) ?
|
|
18128
|
+
return wt(h) ? Pr(e, d)(h) : d(h);
|
|
18095
18129
|
}
|
|
18096
18130
|
function d(h) {
|
|
18097
18131
|
return h === 41 ? (e.enter("resourceMarker"), e.consume(h), e.exit("resourceMarker"), e.exit("resource"), t) : n(h);
|
|
@@ -18907,7 +18941,7 @@ function Kw(e) {
|
|
|
18907
18941
|
Mf(t, (e || {}).mdastExtensions || []);
|
|
18908
18942
|
const n = {};
|
|
18909
18943
|
return r;
|
|
18910
|
-
function r(
|
|
18944
|
+
function r(K) {
|
|
18911
18945
|
let ee = {
|
|
18912
18946
|
type: "root",
|
|
18913
18947
|
children: []
|
|
@@ -18923,24 +18957,24 @@ function Kw(e) {
|
|
|
18923
18957
|
data: n
|
|
18924
18958
|
}, ge = [];
|
|
18925
18959
|
let Ee = -1;
|
|
18926
|
-
for (; ++Ee <
|
|
18927
|
-
if (
|
|
18928
|
-
if (
|
|
18960
|
+
for (; ++Ee < K.length; )
|
|
18961
|
+
if (K[Ee][1].type === "listOrdered" || K[Ee][1].type === "listUnordered")
|
|
18962
|
+
if (K[Ee][0] === "enter")
|
|
18929
18963
|
ge.push(Ee);
|
|
18930
18964
|
else {
|
|
18931
18965
|
const Je = ge.pop();
|
|
18932
|
-
Ee = i(
|
|
18966
|
+
Ee = i(K, Je, Ee);
|
|
18933
18967
|
}
|
|
18934
|
-
for (Ee = -1; ++Ee <
|
|
18935
|
-
const Je = t[
|
|
18936
|
-
Nf.call(Je,
|
|
18968
|
+
for (Ee = -1; ++Ee < K.length; ) {
|
|
18969
|
+
const Je = t[K[Ee][0]];
|
|
18970
|
+
Nf.call(Je, K[Ee][1].type) && Je[K[Ee][1].type].call(
|
|
18937
18971
|
Object.assign(
|
|
18938
18972
|
{
|
|
18939
|
-
sliceSerialize:
|
|
18973
|
+
sliceSerialize: K[Ee][2].sliceSerialize
|
|
18940
18974
|
},
|
|
18941
18975
|
ce
|
|
18942
18976
|
),
|
|
18943
|
-
|
|
18977
|
+
K[Ee][1]
|
|
18944
18978
|
);
|
|
18945
18979
|
}
|
|
18946
18980
|
if (ce.tokenStack.length > 0) {
|
|
@@ -18949,14 +18983,14 @@ function Kw(e) {
|
|
|
18949
18983
|
}
|
|
18950
18984
|
for (ee.position = {
|
|
18951
18985
|
start: dn(
|
|
18952
|
-
|
|
18986
|
+
K.length > 0 ? K[0][1].start : {
|
|
18953
18987
|
line: 1,
|
|
18954
18988
|
column: 1,
|
|
18955
18989
|
offset: 0
|
|
18956
18990
|
}
|
|
18957
18991
|
),
|
|
18958
18992
|
end: dn(
|
|
18959
|
-
|
|
18993
|
+
K.length > 0 ? K[K.length - 2][1].end : {
|
|
18960
18994
|
line: 1,
|
|
18961
18995
|
column: 1,
|
|
18962
18996
|
offset: 0
|
|
@@ -18966,10 +19000,10 @@ function Kw(e) {
|
|
|
18966
19000
|
ee = t.transforms[Ee](ee) || ee;
|
|
18967
19001
|
return ee;
|
|
18968
19002
|
}
|
|
18969
|
-
function i(
|
|
19003
|
+
function i(K, ee, ce) {
|
|
18970
19004
|
let ge = ee - 1, Ee = -1, Je = !1, Xe, ut, Qt, Pt;
|
|
18971
19005
|
for (; ++ge <= ce; ) {
|
|
18972
|
-
const at =
|
|
19006
|
+
const at = K[ge];
|
|
18973
19007
|
switch (at[1].type) {
|
|
18974
19008
|
case "listUnordered":
|
|
18975
19009
|
case "listOrdered":
|
|
@@ -18994,18 +19028,18 @@ function Kw(e) {
|
|
|
18994
19028
|
if (Xe) {
|
|
18995
19029
|
let Lt = ge;
|
|
18996
19030
|
for (ut = void 0; Lt--; ) {
|
|
18997
|
-
const _t =
|
|
19031
|
+
const _t = K[Lt];
|
|
18998
19032
|
if (_t[1].type === "lineEnding" || _t[1].type === "lineEndingBlank") {
|
|
18999
19033
|
if (_t[0] === "exit")
|
|
19000
19034
|
continue;
|
|
19001
|
-
ut && (
|
|
19035
|
+
ut && (K[ut][1].type = "lineEndingBlank", Je = !0), _t[1].type = "lineEnding", ut = Lt;
|
|
19002
19036
|
} else if (!(_t[1].type === "linePrefix" || _t[1].type === "blockQuotePrefix" || _t[1].type === "blockQuotePrefixWhitespace" || _t[1].type === "blockQuoteMarker" || _t[1].type === "listItemIndent"))
|
|
19003
19037
|
break;
|
|
19004
19038
|
}
|
|
19005
19039
|
Qt && (!ut || Qt < ut) && (Xe._spread = !0), Xe.end = Object.assign(
|
|
19006
19040
|
{},
|
|
19007
|
-
ut ?
|
|
19008
|
-
),
|
|
19041
|
+
ut ? K[ut][1].start : at[1].end
|
|
19042
|
+
), K.splice(ut || ge, 0, ["exit", Xe, at[2]]), ge++, ce++;
|
|
19009
19043
|
}
|
|
19010
19044
|
if (at[1].type === "listItemPrefix") {
|
|
19011
19045
|
const Lt = {
|
|
@@ -19015,16 +19049,16 @@ function Kw(e) {
|
|
|
19015
19049
|
// @ts-expect-error: we’ll add `end` in a second.
|
|
19016
19050
|
end: void 0
|
|
19017
19051
|
};
|
|
19018
|
-
Xe = Lt,
|
|
19052
|
+
Xe = Lt, K.splice(ge, 0, ["enter", Lt, at[2]]), ge++, ce++, Qt = void 0, Pt = !0;
|
|
19019
19053
|
}
|
|
19020
19054
|
}
|
|
19021
19055
|
}
|
|
19022
|
-
return
|
|
19056
|
+
return K[ee][1]._spread = Je, ce;
|
|
19023
19057
|
}
|
|
19024
|
-
function a(
|
|
19058
|
+
function a(K, ee) {
|
|
19025
19059
|
return ce;
|
|
19026
19060
|
function ce(ge) {
|
|
19027
|
-
o.call(this,
|
|
19061
|
+
o.call(this, K(ge), ge), ee && ee.call(this, ge);
|
|
19028
19062
|
}
|
|
19029
19063
|
}
|
|
19030
19064
|
function s() {
|
|
@@ -19033,31 +19067,31 @@ function Kw(e) {
|
|
|
19033
19067
|
children: []
|
|
19034
19068
|
});
|
|
19035
19069
|
}
|
|
19036
|
-
function o(
|
|
19037
|
-
this.stack[this.stack.length - 1].children.push(
|
|
19070
|
+
function o(K, ee, ce) {
|
|
19071
|
+
this.stack[this.stack.length - 1].children.push(K), this.stack.push(K), this.tokenStack.push([ee, ce]), K.position = {
|
|
19038
19072
|
start: dn(ee.start),
|
|
19039
19073
|
// @ts-expect-error: `end` will be patched later.
|
|
19040
19074
|
end: void 0
|
|
19041
19075
|
};
|
|
19042
19076
|
}
|
|
19043
|
-
function l(
|
|
19077
|
+
function l(K) {
|
|
19044
19078
|
return ee;
|
|
19045
19079
|
function ee(ce) {
|
|
19046
|
-
|
|
19080
|
+
K && K.call(this, ce), u.call(this, ce);
|
|
19047
19081
|
}
|
|
19048
19082
|
}
|
|
19049
|
-
function u(
|
|
19083
|
+
function u(K, ee) {
|
|
19050
19084
|
const ce = this.stack.pop(), ge = this.tokenStack.pop();
|
|
19051
19085
|
if (ge)
|
|
19052
|
-
ge[0].type !==
|
|
19086
|
+
ge[0].type !== K.type && (ee ? ee.call(this, K, ge[0]) : (ge[1] || hc).call(this, K, ge[0]));
|
|
19053
19087
|
else
|
|
19054
19088
|
throw new Error(
|
|
19055
|
-
"Cannot close `" +
|
|
19056
|
-
start:
|
|
19057
|
-
end:
|
|
19089
|
+
"Cannot close `" + K.type + "` (" + Or({
|
|
19090
|
+
start: K.start,
|
|
19091
|
+
end: K.end
|
|
19058
19092
|
}) + "): it’s not open"
|
|
19059
19093
|
);
|
|
19060
|
-
ce.position.end = dn(
|
|
19094
|
+
ce.position.end = dn(K.end);
|
|
19061
19095
|
}
|
|
19062
19096
|
function d() {
|
|
19063
19097
|
return HD(this.stack.pop());
|
|
@@ -19065,136 +19099,136 @@ function Kw(e) {
|
|
|
19065
19099
|
function h() {
|
|
19066
19100
|
this.data.expectingFirstListItemValue = !0;
|
|
19067
19101
|
}
|
|
19068
|
-
function p(
|
|
19102
|
+
function p(K) {
|
|
19069
19103
|
if (this.data.expectingFirstListItemValue) {
|
|
19070
19104
|
const ee = this.stack[this.stack.length - 2];
|
|
19071
|
-
ee.start = Number.parseInt(this.sliceSerialize(
|
|
19105
|
+
ee.start = Number.parseInt(this.sliceSerialize(K), 10), this.data.expectingFirstListItemValue = void 0;
|
|
19072
19106
|
}
|
|
19073
19107
|
}
|
|
19074
19108
|
function m() {
|
|
19075
|
-
const
|
|
19076
|
-
ee.lang =
|
|
19109
|
+
const K = this.resume(), ee = this.stack[this.stack.length - 1];
|
|
19110
|
+
ee.lang = K;
|
|
19077
19111
|
}
|
|
19078
19112
|
function g() {
|
|
19079
|
-
const
|
|
19080
|
-
ee.meta =
|
|
19113
|
+
const K = this.resume(), ee = this.stack[this.stack.length - 1];
|
|
19114
|
+
ee.meta = K;
|
|
19081
19115
|
}
|
|
19082
19116
|
function f() {
|
|
19083
19117
|
this.data.flowCodeInside || (this.buffer(), this.data.flowCodeInside = !0);
|
|
19084
19118
|
}
|
|
19085
19119
|
function b() {
|
|
19086
|
-
const
|
|
19087
|
-
ee.value =
|
|
19120
|
+
const K = this.resume(), ee = this.stack[this.stack.length - 1];
|
|
19121
|
+
ee.value = K.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g, ""), this.data.flowCodeInside = void 0;
|
|
19088
19122
|
}
|
|
19089
19123
|
function v() {
|
|
19090
|
-
const
|
|
19091
|
-
ee.value =
|
|
19124
|
+
const K = this.resume(), ee = this.stack[this.stack.length - 1];
|
|
19125
|
+
ee.value = K.replace(/(\r?\n|\r)$/g, "");
|
|
19092
19126
|
}
|
|
19093
|
-
function w(
|
|
19127
|
+
function w(K) {
|
|
19094
19128
|
const ee = this.resume(), ce = this.stack[this.stack.length - 1];
|
|
19095
19129
|
ce.label = ee, ce.identifier = rr(
|
|
19096
|
-
this.sliceSerialize(
|
|
19130
|
+
this.sliceSerialize(K)
|
|
19097
19131
|
).toLowerCase();
|
|
19098
19132
|
}
|
|
19099
19133
|
function B() {
|
|
19100
|
-
const
|
|
19101
|
-
ee.title =
|
|
19134
|
+
const K = this.resume(), ee = this.stack[this.stack.length - 1];
|
|
19135
|
+
ee.title = K;
|
|
19102
19136
|
}
|
|
19103
19137
|
function E() {
|
|
19104
|
-
const
|
|
19105
|
-
ee.url =
|
|
19138
|
+
const K = this.resume(), ee = this.stack[this.stack.length - 1];
|
|
19139
|
+
ee.url = K;
|
|
19106
19140
|
}
|
|
19107
|
-
function x(
|
|
19141
|
+
function x(K) {
|
|
19108
19142
|
const ee = this.stack[this.stack.length - 1];
|
|
19109
19143
|
if (!ee.depth) {
|
|
19110
|
-
const ce = this.sliceSerialize(
|
|
19144
|
+
const ce = this.sliceSerialize(K).length;
|
|
19111
19145
|
ee.depth = ce;
|
|
19112
19146
|
}
|
|
19113
19147
|
}
|
|
19114
19148
|
function A() {
|
|
19115
19149
|
this.data.setextHeadingSlurpLineEnding = !0;
|
|
19116
19150
|
}
|
|
19117
|
-
function T(
|
|
19151
|
+
function T(K) {
|
|
19118
19152
|
const ee = this.stack[this.stack.length - 1];
|
|
19119
|
-
ee.depth = this.sliceSerialize(
|
|
19153
|
+
ee.depth = this.sliceSerialize(K).codePointAt(0) === 61 ? 1 : 2;
|
|
19120
19154
|
}
|
|
19121
19155
|
function L() {
|
|
19122
19156
|
this.data.setextHeadingSlurpLineEnding = void 0;
|
|
19123
19157
|
}
|
|
19124
|
-
function P(
|
|
19158
|
+
function P(K) {
|
|
19125
19159
|
const ce = this.stack[this.stack.length - 1].children;
|
|
19126
19160
|
let ge = ce[ce.length - 1];
|
|
19127
19161
|
(!ge || ge.type !== "text") && (ge = We(), ge.position = {
|
|
19128
|
-
start: dn(
|
|
19162
|
+
start: dn(K.start),
|
|
19129
19163
|
// @ts-expect-error: we’ll add `end` later.
|
|
19130
19164
|
end: void 0
|
|
19131
19165
|
}, ce.push(ge)), this.stack.push(ge);
|
|
19132
19166
|
}
|
|
19133
|
-
function z(
|
|
19167
|
+
function z(K) {
|
|
19134
19168
|
const ee = this.stack.pop();
|
|
19135
|
-
ee.value += this.sliceSerialize(
|
|
19169
|
+
ee.value += this.sliceSerialize(K), ee.position.end = dn(K.end);
|
|
19136
19170
|
}
|
|
19137
|
-
function M(
|
|
19171
|
+
function M(K) {
|
|
19138
19172
|
const ee = this.stack[this.stack.length - 1];
|
|
19139
19173
|
if (this.data.atHardBreak) {
|
|
19140
19174
|
const ce = ee.children[ee.children.length - 1];
|
|
19141
|
-
ce.position.end = dn(
|
|
19175
|
+
ce.position.end = dn(K.end), this.data.atHardBreak = void 0;
|
|
19142
19176
|
return;
|
|
19143
19177
|
}
|
|
19144
|
-
!this.data.setextHeadingSlurpLineEnding && t.canContainEols.includes(ee.type) && (P.call(this,
|
|
19178
|
+
!this.data.setextHeadingSlurpLineEnding && t.canContainEols.includes(ee.type) && (P.call(this, K), z.call(this, K));
|
|
19145
19179
|
}
|
|
19146
19180
|
function F() {
|
|
19147
19181
|
this.data.atHardBreak = !0;
|
|
19148
19182
|
}
|
|
19149
19183
|
function C() {
|
|
19150
|
-
const
|
|
19151
|
-
ee.value =
|
|
19184
|
+
const K = this.resume(), ee = this.stack[this.stack.length - 1];
|
|
19185
|
+
ee.value = K;
|
|
19152
19186
|
}
|
|
19153
19187
|
function S() {
|
|
19154
|
-
const
|
|
19155
|
-
ee.value =
|
|
19188
|
+
const K = this.resume(), ee = this.stack[this.stack.length - 1];
|
|
19189
|
+
ee.value = K;
|
|
19156
19190
|
}
|
|
19157
19191
|
function N() {
|
|
19158
|
-
const
|
|
19159
|
-
ee.value =
|
|
19192
|
+
const K = this.resume(), ee = this.stack[this.stack.length - 1];
|
|
19193
|
+
ee.value = K;
|
|
19160
19194
|
}
|
|
19161
19195
|
function q() {
|
|
19162
|
-
const
|
|
19196
|
+
const K = this.stack[this.stack.length - 1];
|
|
19163
19197
|
if (this.data.inReference) {
|
|
19164
19198
|
const ee = this.data.referenceType || "shortcut";
|
|
19165
|
-
|
|
19199
|
+
K.type += "Reference", K.referenceType = ee, delete K.url, delete K.title;
|
|
19166
19200
|
} else
|
|
19167
|
-
delete
|
|
19201
|
+
delete K.identifier, delete K.label;
|
|
19168
19202
|
this.data.referenceType = void 0;
|
|
19169
19203
|
}
|
|
19170
19204
|
function U() {
|
|
19171
|
-
const
|
|
19205
|
+
const K = this.stack[this.stack.length - 1];
|
|
19172
19206
|
if (this.data.inReference) {
|
|
19173
19207
|
const ee = this.data.referenceType || "shortcut";
|
|
19174
|
-
|
|
19208
|
+
K.type += "Reference", K.referenceType = ee, delete K.url, delete K.title;
|
|
19175
19209
|
} else
|
|
19176
|
-
delete
|
|
19210
|
+
delete K.identifier, delete K.label;
|
|
19177
19211
|
this.data.referenceType = void 0;
|
|
19178
19212
|
}
|
|
19179
|
-
function Y(
|
|
19180
|
-
const ee = this.sliceSerialize(
|
|
19213
|
+
function Y(K) {
|
|
19214
|
+
const ee = this.sliceSerialize(K), ce = this.stack[this.stack.length - 2];
|
|
19181
19215
|
ce.label = Uw(ee), ce.identifier = rr(ee).toLowerCase();
|
|
19182
19216
|
}
|
|
19183
19217
|
function ne() {
|
|
19184
|
-
const
|
|
19218
|
+
const K = this.stack[this.stack.length - 1], ee = this.resume(), ce = this.stack[this.stack.length - 1];
|
|
19185
19219
|
if (this.data.inReference = !0, ce.type === "link") {
|
|
19186
|
-
const ge =
|
|
19220
|
+
const ge = K.children;
|
|
19187
19221
|
ce.children = ge;
|
|
19188
19222
|
} else
|
|
19189
19223
|
ce.alt = ee;
|
|
19190
19224
|
}
|
|
19191
19225
|
function D() {
|
|
19192
|
-
const
|
|
19193
|
-
ee.url =
|
|
19226
|
+
const K = this.resume(), ee = this.stack[this.stack.length - 1];
|
|
19227
|
+
ee.url = K;
|
|
19194
19228
|
}
|
|
19195
19229
|
function $() {
|
|
19196
|
-
const
|
|
19197
|
-
ee.title =
|
|
19230
|
+
const K = this.resume(), ee = this.stack[this.stack.length - 1];
|
|
19231
|
+
ee.title = K;
|
|
19198
19232
|
}
|
|
19199
19233
|
function X() {
|
|
19200
19234
|
this.data.inReference = void 0;
|
|
@@ -19202,34 +19236,34 @@ function Kw(e) {
|
|
|
19202
19236
|
function k() {
|
|
19203
19237
|
this.data.referenceType = "collapsed";
|
|
19204
19238
|
}
|
|
19205
|
-
function _(
|
|
19239
|
+
function _(K) {
|
|
19206
19240
|
const ee = this.resume(), ce = this.stack[this.stack.length - 1];
|
|
19207
19241
|
ce.label = ee, ce.identifier = rr(
|
|
19208
|
-
this.sliceSerialize(
|
|
19242
|
+
this.sliceSerialize(K)
|
|
19209
19243
|
).toLowerCase(), this.data.referenceType = "full";
|
|
19210
19244
|
}
|
|
19211
|
-
function I(
|
|
19212
|
-
this.data.characterReferenceType =
|
|
19245
|
+
function I(K) {
|
|
19246
|
+
this.data.characterReferenceType = K.type;
|
|
19213
19247
|
}
|
|
19214
|
-
function R(
|
|
19215
|
-
const ee = this.sliceSerialize(
|
|
19248
|
+
function R(K) {
|
|
19249
|
+
const ee = this.sliceSerialize(K), ce = this.data.characterReferenceType;
|
|
19216
19250
|
let ge;
|
|
19217
19251
|
ce ? (ge = _f(
|
|
19218
19252
|
ee,
|
|
19219
19253
|
ce === "characterReferenceMarkerNumeric" ? 10 : 16
|
|
19220
19254
|
), this.data.characterReferenceType = void 0) : ge = Fo(ee);
|
|
19221
19255
|
const Ee = this.stack.pop();
|
|
19222
|
-
Ee.value += ge, Ee.position.end = dn(
|
|
19256
|
+
Ee.value += ge, Ee.position.end = dn(K.end);
|
|
19223
19257
|
}
|
|
19224
|
-
function W(
|
|
19225
|
-
z.call(this,
|
|
19258
|
+
function W(K) {
|
|
19259
|
+
z.call(this, K);
|
|
19226
19260
|
const ee = this.stack[this.stack.length - 1];
|
|
19227
|
-
ee.url = this.sliceSerialize(
|
|
19261
|
+
ee.url = this.sliceSerialize(K);
|
|
19228
19262
|
}
|
|
19229
|
-
function re(
|
|
19230
|
-
z.call(this,
|
|
19263
|
+
function re(K) {
|
|
19264
|
+
z.call(this, K);
|
|
19231
19265
|
const ee = this.stack[this.stack.length - 1];
|
|
19232
|
-
ee.url = "mailto:" + this.sliceSerialize(
|
|
19266
|
+
ee.url = "mailto:" + this.sliceSerialize(K);
|
|
19233
19267
|
}
|
|
19234
19268
|
function J() {
|
|
19235
19269
|
return {
|
|
@@ -19301,19 +19335,19 @@ function Kw(e) {
|
|
|
19301
19335
|
children: []
|
|
19302
19336
|
};
|
|
19303
19337
|
}
|
|
19304
|
-
function Ke(
|
|
19338
|
+
function Ke(K) {
|
|
19305
19339
|
return {
|
|
19306
19340
|
type: "list",
|
|
19307
|
-
ordered:
|
|
19341
|
+
ordered: K.type === "listOrdered",
|
|
19308
19342
|
start: null,
|
|
19309
|
-
spread:
|
|
19343
|
+
spread: K._spread,
|
|
19310
19344
|
children: []
|
|
19311
19345
|
};
|
|
19312
19346
|
}
|
|
19313
|
-
function Se(
|
|
19347
|
+
function Se(K) {
|
|
19314
19348
|
return {
|
|
19315
19349
|
type: "listItem",
|
|
19316
|
-
spread:
|
|
19350
|
+
spread: K._spread,
|
|
19317
19351
|
checked: null,
|
|
19318
19352
|
children: []
|
|
19319
19353
|
};
|
|
@@ -19381,15 +19415,15 @@ function Zw(e, t) {
|
|
|
19381
19415
|
}
|
|
19382
19416
|
function hc(e, t) {
|
|
19383
19417
|
throw e ? new Error(
|
|
19384
|
-
"Cannot close `" + e.type + "` (" +
|
|
19418
|
+
"Cannot close `" + e.type + "` (" + Or({
|
|
19385
19419
|
start: e.start,
|
|
19386
19420
|
end: e.end
|
|
19387
|
-
}) + "): a different token (`" + t.type + "`, " +
|
|
19421
|
+
}) + "): a different token (`" + t.type + "`, " + Or({
|
|
19388
19422
|
start: t.start,
|
|
19389
19423
|
end: t.end
|
|
19390
19424
|
}) + ") is open"
|
|
19391
19425
|
) : new Error(
|
|
19392
|
-
"Cannot close document, a token (`" + t.type + "`, " +
|
|
19426
|
+
"Cannot close document, a token (`" + t.type + "`, " + Or({
|
|
19393
19427
|
start: t.start,
|
|
19394
19428
|
end: t.end
|
|
19395
19429
|
}) + ") is still open"
|
|
@@ -19415,9 +19449,9 @@ function Rf(e, t) {
|
|
|
19415
19449
|
const n = {
|
|
19416
19450
|
...er,
|
|
19417
19451
|
...t == null ? void 0 : t.nodeTypes,
|
|
19418
|
-
[
|
|
19419
|
-
...er[
|
|
19420
|
-
...(l = t == null ? void 0 : t.nodeTypes) == null ? void 0 : l[
|
|
19452
|
+
[Z.heading]: {
|
|
19453
|
+
...er[Z.heading],
|
|
19454
|
+
...(l = t == null ? void 0 : t.nodeTypes) == null ? void 0 : l[Z.heading]
|
|
19421
19455
|
}
|
|
19422
19456
|
}, 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
19457
|
let s = [{ text: "" }];
|
|
@@ -19433,45 +19467,45 @@ function Rf(e, t) {
|
|
|
19433
19467
|
)), e.type) {
|
|
19434
19468
|
case mt.heading:
|
|
19435
19469
|
return {
|
|
19436
|
-
type: n[
|
|
19470
|
+
type: n[Z.heading][e.depth || 1],
|
|
19437
19471
|
children: s
|
|
19438
19472
|
};
|
|
19439
19473
|
case mt.list:
|
|
19440
19474
|
return {
|
|
19441
|
-
type: e.ordered ? n[
|
|
19475
|
+
type: e.ordered ? n[Z.ol] : n[Z.ul],
|
|
19442
19476
|
children: s
|
|
19443
19477
|
};
|
|
19444
19478
|
case mt.listItem:
|
|
19445
|
-
return { type: n[
|
|
19479
|
+
return { type: n[Z.li], children: s };
|
|
19446
19480
|
case mt.paragraph:
|
|
19447
|
-
return { type: n[
|
|
19481
|
+
return { type: n[Z.paragraph], children: s };
|
|
19448
19482
|
case mt.link:
|
|
19449
19483
|
return {
|
|
19450
|
-
type: n[
|
|
19484
|
+
type: n[Z.link],
|
|
19451
19485
|
[r]: e.url,
|
|
19452
19486
|
children: s
|
|
19453
19487
|
};
|
|
19454
19488
|
case mt.image:
|
|
19455
19489
|
return {
|
|
19456
|
-
type: n[
|
|
19490
|
+
type: n[Z.image],
|
|
19457
19491
|
children: [{ text: "" }],
|
|
19458
19492
|
[i]: e.url,
|
|
19459
19493
|
[a]: e.alt
|
|
19460
19494
|
};
|
|
19461
19495
|
case mt.blockquote:
|
|
19462
|
-
return { type: n[
|
|
19496
|
+
return { type: n[Z.blockquote], children: s };
|
|
19463
19497
|
case mt.code:
|
|
19464
19498
|
return {
|
|
19465
|
-
type: n[
|
|
19499
|
+
type: n[Z.codeblock],
|
|
19466
19500
|
language: e.lang,
|
|
19467
19501
|
children: [{ text: e.value }]
|
|
19468
19502
|
};
|
|
19469
19503
|
case mt.html:
|
|
19470
19504
|
return (u = e.value) != null && u.includes("<br>") ? {
|
|
19471
19505
|
break: !0,
|
|
19472
|
-
type: n[
|
|
19506
|
+
type: n[Z.paragraph],
|
|
19473
19507
|
children: [{ text: ((d = e.value) == null ? void 0 : d.replace(/<br>/g, "")) || "" }]
|
|
19474
|
-
} : { type:
|
|
19508
|
+
} : { type: Z.paragraph, children: [{ text: e.value || "" }] };
|
|
19475
19509
|
case mt.emphasis:
|
|
19476
19510
|
return {
|
|
19477
19511
|
[n[nn.emphasis]]: !0,
|
|
@@ -19498,7 +19532,7 @@ function Rf(e, t) {
|
|
|
19498
19532
|
};
|
|
19499
19533
|
case mt.thematicBreak:
|
|
19500
19534
|
return {
|
|
19501
|
-
type: n[
|
|
19535
|
+
type: n[Z.hr],
|
|
19502
19536
|
children: [{ text: "" }]
|
|
19503
19537
|
};
|
|
19504
19538
|
case "text":
|
|
@@ -19522,20 +19556,20 @@ const Gw = function(t) {
|
|
|
19522
19556
|
LD().use(Yw).use(Gw).process(e).then((n) => {
|
|
19523
19557
|
const r = Fn(n.result), i = (s) => {
|
|
19524
19558
|
const o = s;
|
|
19525
|
-
[
|
|
19559
|
+
[Z.li, Z.blockquote].includes(o.type) && o.children.map((l, u) => {
|
|
19526
19560
|
const d = l;
|
|
19527
|
-
d.type ===
|
|
19561
|
+
d.type === Z.paragraph && o.children.splice(u, 1, ...d.children);
|
|
19528
19562
|
}), "children" in s && s.children && s.children.forEach((l) => i(l));
|
|
19529
19563
|
};
|
|
19530
19564
|
r.forEach(i);
|
|
19531
19565
|
const a = (s) => {
|
|
19532
19566
|
for (let o = 0; o < s.length; o++) {
|
|
19533
19567
|
const l = s[o], u = l;
|
|
19534
|
-
if (u.type ===
|
|
19568
|
+
if (u.type === Z.link) {
|
|
19535
19569
|
const d = u.children && u.children[0];
|
|
19536
19570
|
if (d && "text" in d && d.text.includes(qs)) {
|
|
19537
19571
|
const h = u, p = d.text.replace(qs, ""), m = "link" in h && h.link ? h.link : "";
|
|
19538
|
-
h.type =
|
|
19572
|
+
h.type = Z.mention, h.id = m, h.name = p, h.children = [{ text: "" }], s[o + 1] || s.splice(o + 1, 0, { text: " " }), o++;
|
|
19539
19573
|
}
|
|
19540
19574
|
}
|
|
19541
19575
|
"children" in l && l.children && a(l.children);
|
|
@@ -19548,7 +19582,7 @@ const Gw = function(t) {
|
|
|
19548
19582
|
u && u.map((d) => {
|
|
19549
19583
|
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
19584
|
{ text: m },
|
|
19551
|
-
{ text: h, [
|
|
19585
|
+
{ text: h, [Z.strikethrough]: !0 },
|
|
19552
19586
|
{ text: g }
|
|
19553
19587
|
];
|
|
19554
19588
|
s.children.splice(l, 1, ...f);
|
|
@@ -19582,19 +19616,19 @@ const Gw = function(t) {
|
|
|
19582
19616
|
}
|
|
19583
19617
|
return t;
|
|
19584
19618
|
}, 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":
|
|
19619
|
+
"mod+b": Z.bold,
|
|
19620
|
+
"mod+i": Z.italic,
|
|
19621
|
+
"mod+shift+x": Z.strikethrough,
|
|
19622
|
+
"mod+k": Z.link,
|
|
19623
|
+
"mod+shift+7": Z.ol,
|
|
19624
|
+
"mod+shift+8": Z.ul,
|
|
19625
|
+
"mod+shift+9": Z.blockquote
|
|
19592
19626
|
}, eC = (e, t, n, r) => {
|
|
19593
19627
|
for (const i in pc)
|
|
19594
19628
|
if (Vy(i, e)) {
|
|
19595
19629
|
e.stopPropagation(), e.preventDefault();
|
|
19596
19630
|
const a = pc[i];
|
|
19597
|
-
if (a ===
|
|
19631
|
+
if (a === Z.link) {
|
|
19598
19632
|
n([{ type: "showLinkEditor", value: !0 }]);
|
|
19599
19633
|
return;
|
|
19600
19634
|
}
|
|
@@ -19612,7 +19646,7 @@ const Gw = function(t) {
|
|
|
19612
19646
|
const o = s.userId || "", l = (d = s.user) == null ? void 0 : d.name;
|
|
19613
19647
|
n([{ type: "mentionPopover", value: { ...t, show: !1 } }]);
|
|
19614
19648
|
const u = {
|
|
19615
|
-
type:
|
|
19649
|
+
type: Z.mention,
|
|
19616
19650
|
id: o,
|
|
19617
19651
|
name: l,
|
|
19618
19652
|
children: [{ text: "" }]
|
|
@@ -19669,9 +19703,9 @@ const Gw = function(t) {
|
|
|
19669
19703
|
}
|
|
19670
19704
|
return t;
|
|
19671
19705
|
}, Zn = (e) => typeof e.text == "string", nC = [
|
|
19672
|
-
|
|
19673
|
-
|
|
19674
|
-
|
|
19706
|
+
Z.hr,
|
|
19707
|
+
Z.image,
|
|
19708
|
+
Z.mention
|
|
19675
19709
|
], gc = "<br>";
|
|
19676
19710
|
function Lf(e, t = { nodeTypes: er }) {
|
|
19677
19711
|
const {
|
|
@@ -19684,12 +19718,12 @@ function Lf(e, t = { nodeTypes: er }) {
|
|
|
19684
19718
|
...er,
|
|
19685
19719
|
...n,
|
|
19686
19720
|
heading: {
|
|
19687
|
-
...er[
|
|
19688
|
-
...n[
|
|
19721
|
+
...er[Z.heading],
|
|
19722
|
+
...n[Z.heading]
|
|
19689
19723
|
}
|
|
19690
|
-
}, l = [o[
|
|
19724
|
+
}, l = [o[Z.ul], o[Z.ol]];
|
|
19691
19725
|
let u = a;
|
|
19692
|
-
if (!Zn(e) && s !==
|
|
19726
|
+
if (!Zn(e) && s !== Z.mention && (u = e.children.map((d) => {
|
|
19693
19727
|
const h = Zn(d) ? !1 : l.includes(d.type || ""), p = l.includes(e.type || "");
|
|
19694
19728
|
let m = !1;
|
|
19695
19729
|
return !Zn(e) && Array.isArray(e.children) && (m = e.children.some(
|
|
@@ -19709,65 +19743,65 @@ function Lf(e, t = { nodeTypes: er }) {
|
|
|
19709
19743
|
!d.break,
|
|
19710
19744
|
// track depth of nested lists so we can add proper spacing
|
|
19711
19745
|
listDepth: l.includes(d.type || "") ? i + 1 : i,
|
|
19712
|
-
inBlockquote: s === o[
|
|
19746
|
+
inBlockquote: s === o[Z.blockquote] || e.parentType === o[Z.blockquote]
|
|
19713
19747
|
}
|
|
19714
19748
|
);
|
|
19715
19749
|
}).join("")), !r && (a === "" || a === `
|
|
19716
|
-
`) && e.parentType === o[
|
|
19717
|
-
switch (u !== gc && Zn(e) && (e[
|
|
19718
|
-
case o[
|
|
19750
|
+
`) && e.parentType === o[Z.paragraph] && s !== o[Z.mention] && (s = o[Z.paragraph], u = gc), !(u === "" && !nC.find((d) => o[d] === s)))
|
|
19751
|
+
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) {
|
|
19752
|
+
case o[Z.heading][1]:
|
|
19719
19753
|
return `# ${u}
|
|
19720
19754
|
`;
|
|
19721
|
-
case o[
|
|
19755
|
+
case o[Z.heading][2]:
|
|
19722
19756
|
return `## ${u}
|
|
19723
19757
|
`;
|
|
19724
|
-
case o[
|
|
19758
|
+
case o[Z.heading][3]:
|
|
19725
19759
|
return `### ${u}
|
|
19726
19760
|
`;
|
|
19727
|
-
case o[
|
|
19761
|
+
case o[Z.heading][4]:
|
|
19728
19762
|
return `#### ${u}
|
|
19729
19763
|
`;
|
|
19730
|
-
case o[
|
|
19764
|
+
case o[Z.heading][5]:
|
|
19731
19765
|
return `##### ${u}
|
|
19732
19766
|
`;
|
|
19733
|
-
case o[
|
|
19767
|
+
case o[Z.heading][6]:
|
|
19734
19768
|
return `###### ${u}
|
|
19735
19769
|
`;
|
|
19736
|
-
case o[
|
|
19770
|
+
case o[Z.blockquote]:
|
|
19737
19771
|
return `> ${u}
|
|
19738
19772
|
|
|
19739
19773
|
`;
|
|
19740
|
-
case o[
|
|
19774
|
+
case o[Z.codeblock]:
|
|
19741
19775
|
return `\`\`\`${e.language || ""}
|
|
19742
19776
|
${u}
|
|
19743
19777
|
\`\`\`
|
|
19744
19778
|
`;
|
|
19745
|
-
case o[
|
|
19779
|
+
case o[Z.link]:
|
|
19746
19780
|
return `[${u}](${e.link || ""})`;
|
|
19747
19781
|
case o.image:
|
|
19748
19782
|
return ``;
|
|
19749
|
-
case o[
|
|
19783
|
+
case o[Z.mention]:
|
|
19750
19784
|
const { id: d } = e;
|
|
19751
19785
|
return e ? `@{{${d}}}` : u;
|
|
19752
|
-
case o[
|
|
19753
|
-
case o[
|
|
19786
|
+
case o[Z.ul]:
|
|
19787
|
+
case o[Z.ol]:
|
|
19754
19788
|
return `
|
|
19755
19789
|
${u}
|
|
19756
19790
|
|
|
19757
19791
|
`;
|
|
19758
|
-
case o[
|
|
19759
|
-
const h = e && e.parentType === o[
|
|
19792
|
+
case o[Z.li]:
|
|
19793
|
+
const h = e && e.parentType === o[Z.ol], p = e.children.length === 1 && Zn(e.children[0]);
|
|
19760
19794
|
let m = "";
|
|
19761
19795
|
for (let g = 0; i > g; g++)
|
|
19762
19796
|
h ? m += " " : m += " ";
|
|
19763
19797
|
return t.inBlockquote && (m = "> " + m), `
|
|
19764
19798
|
${m}${h ? "1." : "-"} ${u}${p ? `
|
|
19765
19799
|
` : ""}`;
|
|
19766
|
-
case o[
|
|
19800
|
+
case o[Z.paragraph]:
|
|
19767
19801
|
return `${u}
|
|
19768
19802
|
|
|
19769
19803
|
`;
|
|
19770
|
-
case o[
|
|
19804
|
+
case o[Z.hr]:
|
|
19771
19805
|
return `---
|
|
19772
19806
|
`;
|
|
19773
19807
|
default:
|
|
@@ -19803,7 +19837,7 @@ const iC = ({
|
|
|
19803
19837
|
bn,
|
|
19804
19838
|
{
|
|
19805
19839
|
element: "li",
|
|
19806
|
-
className:
|
|
19840
|
+
className: V({ selected: f === u }),
|
|
19807
19841
|
member: { id: m, ...g, link: !1 },
|
|
19808
19842
|
functions: {
|
|
19809
19843
|
onClick: (b) => {
|
|
@@ -19824,7 +19858,7 @@ const iC = ({
|
|
|
19824
19858
|
bn,
|
|
19825
19859
|
{
|
|
19826
19860
|
element: "li",
|
|
19827
|
-
className:
|
|
19861
|
+
className: V("fallback", {
|
|
19828
19862
|
selected: d.length === u
|
|
19829
19863
|
}),
|
|
19830
19864
|
member: {
|
|
@@ -19876,7 +19910,7 @@ const iC = ({
|
|
|
19876
19910
|
"li",
|
|
19877
19911
|
{
|
|
19878
19912
|
id: `${d}-${e}`,
|
|
19879
|
-
className:
|
|
19913
|
+
className: V(e, { "has-divider": n }),
|
|
19880
19914
|
onMouseEnter: () => {
|
|
19881
19915
|
g([{ type: "openTooltip", value: e }]);
|
|
19882
19916
|
},
|
|
@@ -19903,7 +19937,7 @@ const iC = ({
|
|
|
19903
19937
|
{
|
|
19904
19938
|
...o,
|
|
19905
19939
|
...f,
|
|
19906
|
-
className:
|
|
19940
|
+
className: V(e, i, { active: t }),
|
|
19907
19941
|
onClick: (b) => {
|
|
19908
19942
|
b.stopPropagation(), b.preventDefault();
|
|
19909
19943
|
},
|
|
@@ -19941,7 +19975,7 @@ const iC = ({
|
|
|
19941
19975
|
children: [
|
|
19942
19976
|
/* @__PURE__ */ c.jsx(qe, { showOnFocus: !1, children: l.formatMessage({ id: `richTextEditor_${e}` }) }),
|
|
19943
19977
|
/* @__PURE__ */ c.jsx(
|
|
19944
|
-
|
|
19978
|
+
hr,
|
|
19945
19979
|
{
|
|
19946
19980
|
id: `tooltip-${e}`,
|
|
19947
19981
|
styling: { extraPadding: !1, hasPointer: "bottom" },
|
|
@@ -19957,7 +19991,7 @@ const iC = ({
|
|
|
19957
19991
|
]
|
|
19958
19992
|
}
|
|
19959
19993
|
);
|
|
19960
|
-
}, bc = [
|
|
19994
|
+
}, bc = [Z.ol, Z.ul], zf = (e, t) => {
|
|
19961
19995
|
const { selection: n } = e;
|
|
19962
19996
|
if (!n)
|
|
19963
19997
|
return !1;
|
|
@@ -19973,7 +20007,7 @@ const iC = ({
|
|
|
19973
20007
|
return !!r;
|
|
19974
20008
|
}, aC = (e) => {
|
|
19975
20009
|
const [t] = y.nodes(e, {
|
|
19976
|
-
match: (n) => n.type ===
|
|
20010
|
+
match: (n) => n.type === Z.blockquote
|
|
19977
20011
|
});
|
|
19978
20012
|
return !!t;
|
|
19979
20013
|
}, qf = (e, t, n) => {
|
|
@@ -19987,7 +20021,7 @@ const iC = ({
|
|
|
19987
20021
|
split: !0
|
|
19988
20022
|
});
|
|
19989
20023
|
const o = {
|
|
19990
|
-
type: i ?
|
|
20024
|
+
type: i ? Z.paragraph : a ? Z.li : t
|
|
19991
20025
|
};
|
|
19992
20026
|
if (Q.setNodes(e, o), a)
|
|
19993
20027
|
if (i) {
|
|
@@ -20000,7 +20034,7 @@ const iC = ({
|
|
|
20000
20034
|
at: d,
|
|
20001
20035
|
match: (p) => {
|
|
20002
20036
|
const m = p;
|
|
20003
|
-
return !y.isEditor(p) && he.isElement(p) && m.type ===
|
|
20037
|
+
return !y.isEditor(p) && he.isElement(p) && m.type === Z.li;
|
|
20004
20038
|
}
|
|
20005
20039
|
})
|
|
20006
20040
|
).forEach(([p, m]) => {
|
|
@@ -20009,7 +20043,7 @@ const iC = ({
|
|
|
20009
20043
|
} else {
|
|
20010
20044
|
if (r) {
|
|
20011
20045
|
const u = {
|
|
20012
|
-
type:
|
|
20046
|
+
type: Z.blockquote,
|
|
20013
20047
|
children: []
|
|
20014
20048
|
};
|
|
20015
20049
|
Q.wrapNodes(e, u);
|
|
@@ -20034,11 +20068,11 @@ const iC = ({
|
|
|
20034
20068
|
}
|
|
20035
20069
|
}
|
|
20036
20070
|
);
|
|
20037
|
-
},
|
|
20071
|
+
}, Nr = (e) => {
|
|
20038
20072
|
const [t] = y.nodes(e, {
|
|
20039
20073
|
match: (n) => {
|
|
20040
20074
|
const r = n;
|
|
20041
|
-
return !y.isEditor(n) && he.isElement(n) && r.type ===
|
|
20075
|
+
return !y.isEditor(n) && he.isElement(n) && r.type === Z.link;
|
|
20042
20076
|
}
|
|
20043
20077
|
});
|
|
20044
20078
|
return !!t;
|
|
@@ -20050,7 +20084,7 @@ const iC = ({
|
|
|
20050
20084
|
const [s] = y.nodes(e, {
|
|
20051
20085
|
match: (o) => {
|
|
20052
20086
|
const l = o;
|
|
20053
|
-
return !y.isEditor(o) && he.isElement(o) && l.type ===
|
|
20087
|
+
return !y.isEditor(o) && he.isElement(o) && l.type === Z.link;
|
|
20054
20088
|
}
|
|
20055
20089
|
});
|
|
20056
20090
|
if (s) {
|
|
@@ -20063,9 +20097,9 @@ const iC = ({
|
|
|
20063
20097
|
console.error(i);
|
|
20064
20098
|
}) => {
|
|
20065
20099
|
try {
|
|
20066
|
-
|
|
20100
|
+
Nr(e) && Wf(e);
|
|
20067
20101
|
const { selection: i } = e, a = i && H.isCollapsed(i), s = {
|
|
20068
|
-
type:
|
|
20102
|
+
type: Z.link,
|
|
20069
20103
|
link: t,
|
|
20070
20104
|
children: a ? [{ text: t }] : []
|
|
20071
20105
|
};
|
|
@@ -20078,19 +20112,19 @@ const iC = ({
|
|
|
20078
20112
|
Q.unwrapNodes(e, {
|
|
20079
20113
|
match: (t) => {
|
|
20080
20114
|
const n = t;
|
|
20081
|
-
return !y.isEditor(t) && he.isElement(t) && n.type ===
|
|
20115
|
+
return !y.isEditor(t) && he.isElement(t) && n.type === Z.link;
|
|
20082
20116
|
}
|
|
20083
20117
|
});
|
|
20084
20118
|
};
|
|
20085
20119
|
let ns = null;
|
|
20086
20120
|
const lC = () => {
|
|
20087
|
-
const e = le(), t = "richTextEditor_link_", { id: n, showLinkEditor: r, isInOverlay: i, dispatch: a, reportError: s } = Ne(ln), o = zn(), l = wD(o), u = (l == null ? void 0 : l.text) || Xw(o), [d, h] = ue(
|
|
20121
|
+
const e = le(), t = "richTextEditor_link_", { id: n, showLinkEditor: r, isInOverlay: i, dispatch: a, reportError: s } = Ne(ln), o = zn(), l = wD(o), u = (l == null ? void 0 : l.text) || Xw(o), [d, h] = ue(Nr(o)), p = wf(o, "link-editor", `${n}-link`), m = _e(null);
|
|
20088
20122
|
de(() => {
|
|
20089
20123
|
var w;
|
|
20090
20124
|
!d && r && ((w = m.current) == null || w.focus());
|
|
20091
20125
|
}, [d]), de(() => {
|
|
20092
20126
|
ns && clearTimeout(ns), ns = setTimeout(() => {
|
|
20093
|
-
h(
|
|
20127
|
+
h(Nr(o));
|
|
20094
20128
|
}, 500);
|
|
20095
20129
|
}, [o.selection]);
|
|
20096
20130
|
const g = [], f = ["open", "edit", "remove"].map((w) => {
|
|
@@ -20121,7 +20155,7 @@ const lC = () => {
|
|
|
20121
20155
|
const E = [
|
|
20122
20156
|
{ type: "showLinkEditor", value: !1 }
|
|
20123
20157
|
];
|
|
20124
|
-
|
|
20158
|
+
Nr(o) && (Wf(o), E.push({ type: "lastAnchor", value: null })), a(E);
|
|
20125
20159
|
};
|
|
20126
20160
|
break;
|
|
20127
20161
|
}
|
|
@@ -20167,7 +20201,7 @@ const lC = () => {
|
|
|
20167
20201
|
});
|
|
20168
20202
|
const v = $f(i);
|
|
20169
20203
|
return /* @__PURE__ */ c.jsx(ra, { parent: v, children: /* @__PURE__ */ c.jsx(
|
|
20170
|
-
|
|
20204
|
+
hr,
|
|
20171
20205
|
{
|
|
20172
20206
|
ref: p,
|
|
20173
20207
|
id: `${n}-link-editor`,
|
|
@@ -20192,7 +20226,7 @@ const lC = () => {
|
|
|
20192
20226
|
{
|
|
20193
20227
|
element: "fieldset",
|
|
20194
20228
|
id: `${n}-link-editor`,
|
|
20195
|
-
className:
|
|
20229
|
+
className: V({ "show-labels": u }),
|
|
20196
20230
|
meta: { shouldReset: !0, showRequiredLabels: !1 },
|
|
20197
20231
|
functions: {
|
|
20198
20232
|
onSuccess: async (w) => {
|
|
@@ -20221,7 +20255,7 @@ const lC = () => {
|
|
|
20221
20255
|
}, cC = () => {
|
|
20222
20256
|
const e = zn(), { setFocus: t, dispatch: n } = Ne(ln), [r, i] = ue(!1);
|
|
20223
20257
|
return de(() => {
|
|
20224
|
-
i(
|
|
20258
|
+
i(Nr(e));
|
|
20225
20259
|
}, [e.selection]), /* @__PURE__ */ c.jsx(
|
|
20226
20260
|
So,
|
|
20227
20261
|
{
|
|
@@ -20234,7 +20268,7 @@ const lC = () => {
|
|
|
20234
20268
|
"aria-pressed": null
|
|
20235
20269
|
}
|
|
20236
20270
|
);
|
|
20237
|
-
}, dC = (e) => [
|
|
20271
|
+
}, dC = (e) => [Z.bold, Z.italic, Z.strikethrough].includes(
|
|
20238
20272
|
e
|
|
20239
20273
|
), Uf = (e, t) => {
|
|
20240
20274
|
const n = y.marks(e);
|
|
@@ -20260,13 +20294,13 @@ const lC = () => {
|
|
|
20260
20294
|
}
|
|
20261
20295
|
);
|
|
20262
20296
|
}, Ki = [
|
|
20263
|
-
|
|
20264
|
-
|
|
20265
|
-
|
|
20297
|
+
Z.bold,
|
|
20298
|
+
Z.italic,
|
|
20299
|
+
Z.strikethrough
|
|
20266
20300
|
], hC = [
|
|
20267
|
-
|
|
20268
|
-
|
|
20269
|
-
|
|
20301
|
+
Z.ol,
|
|
20302
|
+
Z.ul,
|
|
20303
|
+
Z.blockquote
|
|
20270
20304
|
];
|
|
20271
20305
|
const mC = ({ ...e }) => {
|
|
20272
20306
|
const t = le(), { id: n } = Ne(ln);
|
|
@@ -20297,7 +20331,7 @@ const DC = /* @__PURE__ */ Mn(pC), xC = (e, t, n) => {
|
|
|
20297
20331
|
try {
|
|
20298
20332
|
e.isInline = (a) => {
|
|
20299
20333
|
const s = a;
|
|
20300
|
-
return [
|
|
20334
|
+
return [Z.link].includes(s.type) || i(a);
|
|
20301
20335
|
}, e.insertText = (a) => {
|
|
20302
20336
|
a && DC(a) ? jo(e, a, t) : r(a);
|
|
20303
20337
|
};
|
|
@@ -20309,7 +20343,7 @@ const DC = /* @__PURE__ */ Mn(pC), xC = (e, t, n) => {
|
|
|
20309
20343
|
}, wC = (e, t) => {
|
|
20310
20344
|
const { isInline: n, isVoid: r, markableVoid: i } = e;
|
|
20311
20345
|
try {
|
|
20312
|
-
e.isInline = (a) => a.type ===
|
|
20346
|
+
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
20347
|
} catch (a) {
|
|
20314
20348
|
const s = a.message;
|
|
20315
20349
|
t(`Error in withMentions: ${s}`);
|
|
@@ -20319,7 +20353,7 @@ const DC = /* @__PURE__ */ Mn(pC), xC = (e, t, n) => {
|
|
|
20319
20353
|
const { normalizeNode: n } = e;
|
|
20320
20354
|
try {
|
|
20321
20355
|
e.normalizeNode = ([r, i]) => {
|
|
20322
|
-
if (r.type ===
|
|
20356
|
+
if (r.type === Z.link && oe.string(r).trim() === "") {
|
|
20323
20357
|
Q.removeNodes(e, { at: i });
|
|
20324
20358
|
return;
|
|
20325
20359
|
}
|
|
@@ -20356,7 +20390,7 @@ const EC = ({
|
|
|
20356
20390
|
}
|
|
20357
20391
|
} = a || {}, v = [
|
|
20358
20392
|
{
|
|
20359
|
-
type:
|
|
20393
|
+
type: Z.paragraph,
|
|
20360
20394
|
children: [{ text: "" }]
|
|
20361
20395
|
}
|
|
20362
20396
|
];
|
|
@@ -20380,7 +20414,7 @@ const EC = ({
|
|
|
20380
20414
|
lastKey: null,
|
|
20381
20415
|
hasInteracted: !1,
|
|
20382
20416
|
hasLoaded: !1
|
|
20383
|
-
}, [B, E] =
|
|
20417
|
+
}, [B, E] = dr(na, w), {
|
|
20384
20418
|
editorKey: x,
|
|
20385
20419
|
originalValue: A,
|
|
20386
20420
|
initialValue: T,
|
|
@@ -20527,8 +20561,8 @@ const EC = ({
|
|
|
20527
20561
|
const k = H.isCollapsed(X), [_, I] = y.node(Y, X, { depth: 1 });
|
|
20528
20562
|
let R = _, W = R.type;
|
|
20529
20563
|
const re = R.children[0];
|
|
20530
|
-
if (re && [
|
|
20531
|
-
if (W ===
|
|
20564
|
+
if (re && [Z.ol, Z.ul].includes(re.type) && (R = re, W = re.type), R && he.isElement(R) && W !== Z.paragraph) {
|
|
20565
|
+
if (W === Z.blockquote && !$.shiftKey) {
|
|
20532
20566
|
$.stopPropagation(), $.preventDefault(), Q.insertNodes(Y, v);
|
|
20533
20567
|
return;
|
|
20534
20568
|
}
|
|
@@ -20536,8 +20570,8 @@ const EC = ({
|
|
|
20536
20570
|
const [J, ae] = y.parent(Y, X, {
|
|
20537
20571
|
edge: "end"
|
|
20538
20572
|
}), G = J.type;
|
|
20539
|
-
if ([
|
|
20540
|
-
if ($.stopPropagation(), $.preventDefault(), G ===
|
|
20573
|
+
if ([Z.ul, Z.ol].includes(W))
|
|
20574
|
+
if ($.stopPropagation(), $.preventDefault(), G === Z.li && z === "Enter") {
|
|
20541
20575
|
J.children.length === 1 && "text" in J.children[0] && J.children[0].text === "" && Q.removeNodes(Y, { at: ae }), Q.insertNodes(Y, v, {
|
|
20542
20576
|
at: O.next(I)
|
|
20543
20577
|
}), Q.select(
|
|
@@ -20546,8 +20580,8 @@ const EC = ({
|
|
|
20546
20580
|
);
|
|
20547
20581
|
return;
|
|
20548
20582
|
} else {
|
|
20549
|
-
const [ye, ve] = Jw(Y,
|
|
20550
|
-
type:
|
|
20583
|
+
const [ye, ve] = Jw(Y, Z.li), Fe = {
|
|
20584
|
+
type: Z.li,
|
|
20551
20585
|
children: [{ text: "" }]
|
|
20552
20586
|
};
|
|
20553
20587
|
Q.insertNodes(Y, Fe, {
|
|
@@ -20622,7 +20656,7 @@ const EC = ({
|
|
|
20622
20656
|
}
|
|
20623
20657
|
) }) : /* @__PURE__ */ c.jsx(c.Fragment, {});
|
|
20624
20658
|
};
|
|
20625
|
-
const
|
|
20659
|
+
const W_ = ({
|
|
20626
20660
|
id: e = "form-toggle",
|
|
20627
20661
|
label: t,
|
|
20628
20662
|
options: n,
|
|
@@ -20644,7 +20678,7 @@ const q_ = ({
|
|
|
20644
20678
|
return /* @__PURE__ */ c.jsxs(
|
|
20645
20679
|
"div",
|
|
20646
20680
|
{
|
|
20647
|
-
className:
|
|
20681
|
+
className: V("toggle", s),
|
|
20648
20682
|
onClick: (d) => {
|
|
20649
20683
|
d.preventDefault(), d.stopPropagation(), u(o === n[0].value ? n[1].value : n[0].value);
|
|
20650
20684
|
},
|
|
@@ -20653,7 +20687,7 @@ const q_ = ({
|
|
|
20653
20687
|
/* @__PURE__ */ c.jsx(
|
|
20654
20688
|
"ul",
|
|
20655
20689
|
{
|
|
20656
|
-
className:
|
|
20690
|
+
className: V("toggle-options", {
|
|
20657
20691
|
disabled: a,
|
|
20658
20692
|
on: o === n[1].value
|
|
20659
20693
|
}),
|
|
@@ -20712,7 +20746,7 @@ function _C({
|
|
|
20712
20746
|
change: w = o.formatMessage({ id: `${l}cta_change` }),
|
|
20713
20747
|
uploading: B = o.formatMessage({ id: `${l}cta_uploading` })
|
|
20714
20748
|
} = (a == null ? void 0 : a.text) || {};
|
|
20715
|
-
return /* @__PURE__ */ c.jsxs("div", { className:
|
|
20749
|
+
return /* @__PURE__ */ c.jsxs("div", { className: V("profile-image-change-figure", e), children: [
|
|
20716
20750
|
/* @__PURE__ */ c.jsx(
|
|
20717
20751
|
$n,
|
|
20718
20752
|
{
|
|
@@ -20796,8 +20830,7 @@ const kC = ({
|
|
|
20796
20830
|
],
|
|
20797
20831
|
intlPath: "contactForm",
|
|
20798
20832
|
gtm: { context: r, event: i },
|
|
20799
|
-
functions: { onSuccess: t, onFailure: n }
|
|
20800
|
-
button: { styling: { new: !0 } }
|
|
20833
|
+
functions: { onSuccess: t, onFailure: n }
|
|
20801
20834
|
}
|
|
20802
20835
|
);
|
|
20803
20836
|
};
|
|
@@ -20853,7 +20886,7 @@ const FC = ({
|
|
|
20853
20886
|
{
|
|
20854
20887
|
style: { backgroundColor: a },
|
|
20855
20888
|
onSubmit: v,
|
|
20856
|
-
className:
|
|
20889
|
+
className: V("invite-form gtm-trackable"),
|
|
20857
20890
|
children: [
|
|
20858
20891
|
/* @__PURE__ */ c.jsxs("fieldset", { className: "content", children: [
|
|
20859
20892
|
/* @__PURE__ */ c.jsx("h2", { className: "title", style: { color: r }, children: e }),
|
|
@@ -20898,7 +20931,7 @@ const FC = ({
|
|
|
20898
20931
|
NEW_PASSWORD: "newPassword",
|
|
20899
20932
|
CONFIRMED_PASSWORD: "confirmedPassword",
|
|
20900
20933
|
CURRENT_PASSWORD: "oldPassword"
|
|
20901
|
-
},
|
|
20934
|
+
}, U_ = ({ functions: e, ...t }) => {
|
|
20902
20935
|
const { formatMessage: n } = le(), [r, i] = ue(null), [a, s] = ue(!1), [o, l] = ue({
|
|
20903
20936
|
isMoreThanEightCharacters: !1,
|
|
20904
20937
|
includesNumberAndSymbol: !1,
|
|
@@ -21100,7 +21133,7 @@ const AC = ({
|
|
|
21100
21133
|
gtmEvent: a = "form-submission"
|
|
21101
21134
|
}) => {
|
|
21102
21135
|
const { searchIsOpen: s = !0, isDesktopVersion: o = !1 } = n || {}, l = le(), u = _e(null);
|
|
21103
|
-
|
|
21136
|
+
Ir(() => {
|
|
21104
21137
|
!n || o || !s || u.current && u.current.focus();
|
|
21105
21138
|
}, [s]);
|
|
21106
21139
|
const d = (h) => {
|
|
@@ -21110,7 +21143,7 @@ const AC = ({
|
|
|
21110
21143
|
"form",
|
|
21111
21144
|
{
|
|
21112
21145
|
onSubmit: d,
|
|
21113
|
-
className:
|
|
21146
|
+
className: V("search-form gtm-trackable", t),
|
|
21114
21147
|
role: "search",
|
|
21115
21148
|
"data-gtm-event-context": i,
|
|
21116
21149
|
"data-gtm-event-type": a,
|
|
@@ -21393,7 +21426,7 @@ const AC = ({
|
|
|
21393
21426
|
const OC = ({ className: e = "" }) => /* @__PURE__ */ c.jsxs(
|
|
21394
21427
|
"div",
|
|
21395
21428
|
{
|
|
21396
|
-
className:
|
|
21429
|
+
className: V("success-message", e),
|
|
21397
21430
|
"data-testid": "success-message",
|
|
21398
21431
|
children: [
|
|
21399
21432
|
/* @__PURE__ */ c.jsx("p", { className: "success-title", children: /* @__PURE__ */ c.jsx(ct, { id: "signup_success_title" }) }),
|
|
@@ -21422,7 +21455,7 @@ const PC = {
|
|
|
21422
21455
|
loadRecaptcha: !1,
|
|
21423
21456
|
showSuccessMessage: !1,
|
|
21424
21457
|
showError: !1
|
|
21425
|
-
},
|
|
21458
|
+
}, H_ = ({
|
|
21426
21459
|
className: e = "",
|
|
21427
21460
|
labels: t = {},
|
|
21428
21461
|
placeholders: n = {},
|
|
@@ -21450,7 +21483,7 @@ const PC = {
|
|
|
21450
21483
|
url: h,
|
|
21451
21484
|
logInButton: p,
|
|
21452
21485
|
successMessage: m
|
|
21453
|
-
}, [f, b] =
|
|
21486
|
+
}, [f, b] = dr(na, PC), {
|
|
21454
21487
|
validFields: v,
|
|
21455
21488
|
emailDetails: w,
|
|
21456
21489
|
shouldManuallyApprove: B,
|
|
@@ -21493,7 +21526,7 @@ const PC = {
|
|
|
21493
21526
|
return g.successMessage && x ? /* @__PURE__ */ c.jsx(OC, { className: e }) : /* @__PURE__ */ c.jsxs(
|
|
21494
21527
|
"fieldset",
|
|
21495
21528
|
{
|
|
21496
|
-
className:
|
|
21529
|
+
className: V("signup-form-fieldset", e),
|
|
21497
21530
|
"data-testid": "signup-form",
|
|
21498
21531
|
children: [
|
|
21499
21532
|
g.title && /* @__PURE__ */ c.jsx("p", { className: "signup-title", children: /* @__PURE__ */ c.jsx(ct, { id: "signup_title" }) }),
|
|
@@ -21570,20 +21603,19 @@ const qn = ({
|
|
|
21570
21603
|
styling: n = {},
|
|
21571
21604
|
...r
|
|
21572
21605
|
}) => {
|
|
21573
|
-
const { background: i = "default"
|
|
21606
|
+
const { background: i = "default" } = n;
|
|
21574
21607
|
return /* @__PURE__ */ c.jsx(
|
|
21575
21608
|
"section",
|
|
21576
21609
|
{
|
|
21577
|
-
className:
|
|
21578
|
-
[i]: i !== "default"
|
|
21579
|
-
[a]: a !== "none"
|
|
21610
|
+
className: V("full-width-section", t, {
|
|
21611
|
+
[i]: i !== "default"
|
|
21580
21612
|
}),
|
|
21581
21613
|
...r,
|
|
21582
21614
|
children: e
|
|
21583
21615
|
}
|
|
21584
21616
|
);
|
|
21585
21617
|
};
|
|
21586
|
-
const
|
|
21618
|
+
const V_ = ({ text: e, buttons: t, className: n = "" }) => {
|
|
21587
21619
|
const r = [];
|
|
21588
21620
|
return t.forEach((i) => {
|
|
21589
21621
|
r.push({
|
|
@@ -21596,7 +21628,7 @@ const H_ = ({ text: e, buttons: t, className: n = "" }) => {
|
|
|
21596
21628
|
target: "_blank",
|
|
21597
21629
|
children: i.text
|
|
21598
21630
|
});
|
|
21599
|
-
}), /* @__PURE__ */ c.jsx(qn, { className:
|
|
21631
|
+
}), /* @__PURE__ */ c.jsx(qn, { className: V("download-section", n), children: /* @__PURE__ */ c.jsxs("div", { className: "content-default", children: [
|
|
21600
21632
|
ie.createElement(
|
|
21601
21633
|
typeof e == "string" ? "h2" : e.element,
|
|
21602
21634
|
{ className: "text" },
|
|
@@ -21631,7 +21663,7 @@ const NC = ({
|
|
|
21631
21663
|
}
|
|
21632
21664
|
) })
|
|
21633
21665
|
] });
|
|
21634
|
-
},
|
|
21666
|
+
}, K_ = ({
|
|
21635
21667
|
children: e,
|
|
21636
21668
|
className: t = "",
|
|
21637
21669
|
formProps: n,
|
|
@@ -21660,7 +21692,7 @@ const NC = ({
|
|
|
21660
21692
|
r.props.functions.onCancel && r.props.functions.onCancel(), m();
|
|
21661
21693
|
}
|
|
21662
21694
|
}
|
|
21663
|
-
})), /* @__PURE__ */ c.jsxs("section", { className:
|
|
21695
|
+
})), /* @__PURE__ */ c.jsxs("section", { className: V("edit-section", t), children: [
|
|
21664
21696
|
g && /* @__PURE__ */ c.jsx(
|
|
21665
21697
|
Ln,
|
|
21666
21698
|
{
|
|
@@ -21669,7 +21701,7 @@ const NC = ({
|
|
|
21669
21701
|
showDivider: !1,
|
|
21670
21702
|
showIcon: !1,
|
|
21671
21703
|
functions: { onClose: m },
|
|
21672
|
-
className:
|
|
21704
|
+
className: V("edit-section-modal"),
|
|
21673
21705
|
children: b || (n ? /* @__PURE__ */ c.jsx(
|
|
21674
21706
|
Dn,
|
|
21675
21707
|
{
|
|
@@ -21693,7 +21725,7 @@ const NC = ({
|
|
|
21693
21725
|
) : /* @__PURE__ */ c.jsx(c.Fragment, {}))
|
|
21694
21726
|
}
|
|
21695
21727
|
),
|
|
21696
|
-
/* @__PURE__ */ c.jsxs("div", { className:
|
|
21728
|
+
/* @__PURE__ */ c.jsxs("div", { className: V("edit-section-header", { "no-title": !s }), children: [
|
|
21697
21729
|
s && /* @__PURE__ */ c.jsx("h2", { className: "edit-section-header-title", children: a }),
|
|
21698
21730
|
f && /* @__PURE__ */ c.jsx(
|
|
21699
21731
|
Be,
|
|
@@ -21719,7 +21751,7 @@ const NC = ({
|
|
|
21719
21751
|
u && /* @__PURE__ */ c.jsx(an, {})
|
|
21720
21752
|
] });
|
|
21721
21753
|
};
|
|
21722
|
-
const
|
|
21754
|
+
const Z_ = ({
|
|
21723
21755
|
title: e = !1,
|
|
21724
21756
|
text: t,
|
|
21725
21757
|
logos: n = [],
|
|
@@ -21737,21 +21769,21 @@ const K_ = ({
|
|
|
21737
21769
|
return /* @__PURE__ */ c.jsxs(
|
|
21738
21770
|
"div",
|
|
21739
21771
|
{
|
|
21740
|
-
className:
|
|
21772
|
+
className: V("logos", i, `align-${l}`, {
|
|
21741
21773
|
[u]: u !== "block",
|
|
21742
21774
|
"wrap-logos": o
|
|
21743
21775
|
}),
|
|
21744
21776
|
children: [
|
|
21745
21777
|
e && ie.createElement(
|
|
21746
21778
|
s.element,
|
|
21747
|
-
{ className:
|
|
21779
|
+
{ className: V("title", s.className) },
|
|
21748
21780
|
s.text
|
|
21749
21781
|
),
|
|
21750
21782
|
t && /* @__PURE__ */ c.jsx("p", { children: t }),
|
|
21751
21783
|
/* @__PURE__ */ c.jsx(
|
|
21752
21784
|
"ul",
|
|
21753
21785
|
{
|
|
21754
|
-
className:
|
|
21786
|
+
className: V({
|
|
21755
21787
|
"two-col": a === 2 || a === 4,
|
|
21756
21788
|
"three-col": a === 5 || a <= 10 && a % 3 === 0
|
|
21757
21789
|
}),
|
|
@@ -21779,7 +21811,7 @@ const K_ = ({
|
|
|
21779
21811
|
);
|
|
21780
21812
|
};
|
|
21781
21813
|
let is;
|
|
21782
|
-
const as = "contactFooter_",
|
|
21814
|
+
const as = "contactFooter_", Y_ = ({ onSuccess: e = async () => {
|
|
21783
21815
|
}, onFailure: t = () => {
|
|
21784
21816
|
} }) => {
|
|
21785
21817
|
const n = _e(null), [r, i] = ie.useState(0), [a, s] = ie.useState(!1), o = () => {
|
|
@@ -21816,7 +21848,7 @@ const as = "contactFooter_", Z_ = ({ onSuccess: e = async () => {
|
|
|
21816
21848
|
}
|
|
21817
21849
|
)
|
|
21818
21850
|
] }) });
|
|
21819
|
-
},
|
|
21851
|
+
}, 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
21852
|
/* @__PURE__ */ c.jsx(Lp, { activeLink: e, profile: t }),
|
|
21821
21853
|
/* @__PURE__ */ c.jsx(pm, { ...n })
|
|
21822
21854
|
] }) }) });
|
|
@@ -21949,11 +21981,11 @@ const ss = "cookieBanner_", os = [
|
|
|
21949
21981
|
text: {
|
|
21950
21982
|
order: ["dataProtection", "euDataProtection"],
|
|
21951
21983
|
dataProtection: {
|
|
21952
|
-
email:
|
|
21984
|
+
email: kr["data-protection"].default,
|
|
21953
21985
|
gtmType: "email-dpo-link"
|
|
21954
21986
|
},
|
|
21955
21987
|
euDataProtection: {
|
|
21956
|
-
email:
|
|
21988
|
+
email: kr["data-protection"].eu,
|
|
21957
21989
|
gtmType: "email-eu-dpo-link"
|
|
21958
21990
|
}
|
|
21959
21991
|
}
|
|
@@ -21965,10 +21997,10 @@ const ss = "cookieBanner_", os = [
|
|
|
21965
21997
|
registered: { address: !0 },
|
|
21966
21998
|
berlin: { address: !0 },
|
|
21967
21999
|
support: {
|
|
21968
|
-
email:
|
|
22000
|
+
email: kr.support,
|
|
21969
22001
|
gtmType: "concierge-email-click"
|
|
21970
22002
|
},
|
|
21971
|
-
business: { email:
|
|
22003
|
+
business: { email: kr.general, gtmType: "hello-email-click" }
|
|
21972
22004
|
}
|
|
21973
22005
|
},
|
|
21974
22006
|
social: {
|
|
@@ -21981,7 +22013,7 @@ const ss = "cookieBanner_", os = [
|
|
|
21981
22013
|
const tr = "footer_", Zi = "SiteFooter", Dc = ({ group: e }) => {
|
|
21982
22014
|
const t = en[e].order || [];
|
|
21983
22015
|
let n = !1;
|
|
21984
|
-
return "text" in en[e] && (n = en[e].text), /* @__PURE__ */ c.jsxs(
|
|
22016
|
+
return "text" in en[e] && (n = en[e].text), /* @__PURE__ */ c.jsxs(Rr, { children: [
|
|
21985
22017
|
/* @__PURE__ */ c.jsx("p", { className: "pre-title", children: /* @__PURE__ */ c.jsx(ct, { id: `${tr}${e}` }) }),
|
|
21986
22018
|
Array.isArray(t) && t.length > 0 && /* @__PURE__ */ c.jsx("ul", { className: "text-medium", children: t.map((r) => {
|
|
21987
22019
|
if (["order", "child", "text"].includes(r))
|
|
@@ -21999,7 +22031,7 @@ const tr = "footer_", Zi = "SiteFooter", Dc = ({ group: e }) => {
|
|
|
21999
22031
|
}
|
|
22000
22032
|
) }, `${e}_${r}`);
|
|
22001
22033
|
}) }),
|
|
22002
|
-
typeof n != "boolean" && "order" in n && Array.isArray(n.order) && /* @__PURE__ */ c.jsx("dl", { className: "text-medium", children: n.order.map((r) => /* @__PURE__ */ c.jsxs(
|
|
22034
|
+
typeof n != "boolean" && "order" in n && Array.isArray(n.order) && /* @__PURE__ */ c.jsx("dl", { className: "text-medium", children: n.order.map((r) => /* @__PURE__ */ c.jsxs(Rr, { children: [
|
|
22003
22035
|
/* @__PURE__ */ c.jsx("dt", { children: /* @__PURE__ */ c.jsx(ct, { id: `${tr}${e}_${r}` }) }),
|
|
22004
22036
|
/* @__PURE__ */ c.jsxs("dd", { children: [
|
|
22005
22037
|
typeof n != "boolean" && n[r].address && /* @__PURE__ */ c.jsx("address", { children: /* @__PURE__ */ c.jsx(
|
|
@@ -22334,7 +22366,7 @@ const tr = "footer_", Zi = "SiteFooter", Dc = ({ group: e }) => {
|
|
|
22334
22366
|
return /* @__PURE__ */ c.jsxs(
|
|
22335
22367
|
"li",
|
|
22336
22368
|
{
|
|
22337
|
-
className:
|
|
22369
|
+
className: V({
|
|
22338
22370
|
[o.className]: o.className,
|
|
22339
22371
|
"has-submenu": m,
|
|
22340
22372
|
parent: g,
|
|
@@ -22365,7 +22397,7 @@ const tr = "footer_", Zi = "SiteFooter", Dc = ({ group: e }) => {
|
|
|
22365
22397
|
return o[B].order ? /* @__PURE__ */ c.jsxs(
|
|
22366
22398
|
"li",
|
|
22367
22399
|
{
|
|
22368
|
-
className:
|
|
22400
|
+
className: V({
|
|
22369
22401
|
[o[B].className]: o[B].className
|
|
22370
22402
|
}),
|
|
22371
22403
|
children: [
|
|
@@ -22398,10 +22430,10 @@ const tr = "footer_", Zi = "SiteFooter", Dc = ({ group: e }) => {
|
|
|
22398
22430
|
const RC = { height: 67, height_desktop: 83 };
|
|
22399
22431
|
var kt = /* @__PURE__ */ ((e) => (e.NAVIGATION = "navigation", e.SEARCH = "search", e.ACCOUNT = "account-navigation", e.SITE = "site-navigation", e))(kt || {});
|
|
22400
22432
|
const Zf = ({ showNavigation: e = !0 }) => {
|
|
22401
|
-
const t = le(), n = Ne(vt), r =
|
|
22433
|
+
const t = le(), n = Ne(vt), r = fr(!0, !0), i = n && typeof n.id == "string", a = Vt(
|
|
22402
22434
|
() => ze.getIsDesktopVersion(i, r),
|
|
22403
22435
|
[i, r]
|
|
22404
|
-
), [s, o] =
|
|
22436
|
+
), [s, o] = dr(na, {
|
|
22405
22437
|
headerIsVisible: !0,
|
|
22406
22438
|
menus: {
|
|
22407
22439
|
"site-navigation": !1,
|
|
@@ -22454,7 +22486,7 @@ const Zf = ({ showNavigation: e = !0 }) => {
|
|
|
22454
22486
|
var w;
|
|
22455
22487
|
(w = document.getElementById("header")) == null || w.removeEventListener("keydown", g);
|
|
22456
22488
|
};
|
|
22457
|
-
}, []),
|
|
22489
|
+
}, []), Ir(() => {
|
|
22458
22490
|
u[
|
|
22459
22491
|
"site-navigation"
|
|
22460
22492
|
/* SITE */
|
|
@@ -22468,7 +22500,7 @@ const Zf = ({ showNavigation: e = !0 }) => {
|
|
|
22468
22500
|
}, [u[
|
|
22469
22501
|
"site-navigation"
|
|
22470
22502
|
/* SITE */
|
|
22471
|
-
]]),
|
|
22503
|
+
]]), Ir(() => {
|
|
22472
22504
|
u[
|
|
22473
22505
|
"account-navigation"
|
|
22474
22506
|
/* ACCOUNT */
|
|
@@ -22587,7 +22619,7 @@ const Zf = ({ showNavigation: e = !0 }) => {
|
|
|
22587
22619
|
"nav",
|
|
22588
22620
|
{
|
|
22589
22621
|
id: "header",
|
|
22590
|
-
className:
|
|
22622
|
+
className: V({
|
|
22591
22623
|
"logged-in": i,
|
|
22592
22624
|
"logged-out": !i,
|
|
22593
22625
|
visible: l
|
|
@@ -22661,7 +22693,7 @@ const Zf = ({ showNavigation: e = !0 }) => {
|
|
|
22661
22693
|
/* @__PURE__ */ c.jsx(
|
|
22662
22694
|
"div",
|
|
22663
22695
|
{
|
|
22664
|
-
className:
|
|
22696
|
+
className: V("overlay", {
|
|
22665
22697
|
open: u[
|
|
22666
22698
|
"site-navigation"
|
|
22667
22699
|
/* SITE */
|
|
@@ -22720,14 +22752,14 @@ const IC = () => {
|
|
|
22720
22752
|
"div",
|
|
22721
22753
|
{
|
|
22722
22754
|
id: "wrapper",
|
|
22723
|
-
className:
|
|
22755
|
+
className: V(s, x, { "has-footer": u }),
|
|
22724
22756
|
children: [
|
|
22725
22757
|
/* @__PURE__ */ c.jsx(Zf, { showNavigation: l }),
|
|
22726
22758
|
/* @__PURE__ */ c.jsxs("main", { id: "content-wrapper", children: [
|
|
22727
22759
|
B && /* @__PURE__ */ c.jsx(
|
|
22728
22760
|
"div",
|
|
22729
22761
|
{
|
|
22730
|
-
className:
|
|
22762
|
+
className: V("additional-content prepended", {
|
|
22731
22763
|
"large-modal": m === "large"
|
|
22732
22764
|
}),
|
|
22733
22765
|
children: B
|
|
@@ -22736,7 +22768,7 @@ const IC = () => {
|
|
|
22736
22768
|
ie.createElement(d === "bold" ? rd : "div", {
|
|
22737
22769
|
id: "content",
|
|
22738
22770
|
children: w,
|
|
22739
|
-
className:
|
|
22771
|
+
className: V({ "large-modal": m === "large" })
|
|
22740
22772
|
})
|
|
22741
22773
|
] }),
|
|
22742
22774
|
E && /* @__PURE__ */ c.jsx("div", { className: "additional-content appended", children: E }),
|
|
@@ -22786,7 +22818,7 @@ const IC = () => {
|
|
|
22786
22818
|
return ls[e] ? (e = ls[e], { id: e, text: `${xc.default}${e}` }) : null;
|
|
22787
22819
|
}
|
|
22788
22820
|
};
|
|
22789
|
-
const
|
|
22821
|
+
const Q_ = ({
|
|
22790
22822
|
tags: e = [],
|
|
22791
22823
|
color: t = "default",
|
|
22792
22824
|
forceOneLine: n = !1,
|
|
@@ -22807,7 +22839,7 @@ const G_ = ({
|
|
|
22807
22839
|
}), l.length < 1 ? null : /* @__PURE__ */ c.jsx(
|
|
22808
22840
|
"ul",
|
|
22809
22841
|
{
|
|
22810
|
-
className:
|
|
22842
|
+
className: V("tags text-small", t, i, {
|
|
22811
22843
|
"one-line": n
|
|
22812
22844
|
}),
|
|
22813
22845
|
children: l.map((u) => {
|
|
@@ -22827,7 +22859,7 @@ const G_ = ({
|
|
|
22827
22859
|
);
|
|
22828
22860
|
};
|
|
22829
22861
|
var gt = /* @__PURE__ */ ((e) => (e.COMMUNITIES = "communities", e.PLATFORM = "platform", e))(gt || {});
|
|
22830
|
-
const
|
|
22862
|
+
const J_ = ({
|
|
22831
22863
|
members: { data: e = [], total: t = e.length },
|
|
22832
22864
|
communitySlug: n,
|
|
22833
22865
|
isMember: r = !1,
|
|
@@ -22840,7 +22872,7 @@ const Q_ = ({
|
|
|
22840
22872
|
className: u = ""
|
|
22841
22873
|
}) => {
|
|
22842
22874
|
const d = le(), h = "membersList", p = Ne(vt), [m, g] = ue(!1);
|
|
22843
|
-
return e.length === 0 ? null : /* @__PURE__ */ c.jsxs("div", { className:
|
|
22875
|
+
return e.length === 0 ? null : /* @__PURE__ */ c.jsxs("div", { className: V("members-list", u), children: [
|
|
22844
22876
|
/* @__PURE__ */ c.jsxs("h1", { children: [
|
|
22845
22877
|
d.formatMessage({ id: h }),
|
|
22846
22878
|
/* @__PURE__ */ c.jsx("span", { className: "count", children: t })
|
|
@@ -23199,7 +23231,7 @@ const nt = "discussion_form_", ha = ({
|
|
|
23199
23231
|
Dn,
|
|
23200
23232
|
{
|
|
23201
23233
|
id: re,
|
|
23202
|
-
className:
|
|
23234
|
+
className: V("discussion-card discussion-form", {
|
|
23203
23235
|
"no-styling": w && x
|
|
23204
23236
|
}),
|
|
23205
23237
|
meta: {
|
|
@@ -23305,15 +23337,15 @@ const Qi = ({
|
|
|
23305
23337
|
}) => /* @__PURE__ */ c.jsx(
|
|
23306
23338
|
Be,
|
|
23307
23339
|
{
|
|
23308
|
-
className:
|
|
23340
|
+
className: V("discussion-button", t),
|
|
23309
23341
|
variant: "tertiary",
|
|
23310
23342
|
icon: e,
|
|
23311
23343
|
...n
|
|
23312
23344
|
}
|
|
23313
23345
|
);
|
|
23314
|
-
let
|
|
23346
|
+
let Mr = !1;
|
|
23315
23347
|
const cs = () => {
|
|
23316
|
-
|
|
23348
|
+
Mr !== !1 && (clearTimeout(Mr), Mr = !1);
|
|
23317
23349
|
}, ds = 5;
|
|
23318
23350
|
let fs = null;
|
|
23319
23351
|
const ZC = ({
|
|
@@ -23334,7 +23366,7 @@ const ZC = ({
|
|
|
23334
23366
|
ignoreInteractions: !1,
|
|
23335
23367
|
showLikers: !1,
|
|
23336
23368
|
tabbableLink: 0
|
|
23337
|
-
}, [h, p] =
|
|
23369
|
+
}, [h, p] = dr(na, d), {
|
|
23338
23370
|
numberOfLikes: m,
|
|
23339
23371
|
userLikedContent: g,
|
|
23340
23372
|
ignoreInteractions: f,
|
|
@@ -23348,11 +23380,11 @@ const ZC = ({
|
|
|
23348
23380
|
() => KC(n, ds),
|
|
23349
23381
|
[n]
|
|
23350
23382
|
), B = (T) => {
|
|
23351
|
-
if (T.preventDefault(), T.stopPropagation(), p([{ type: "showLikers", value: !1 }]),
|
|
23383
|
+
if (T.preventDefault(), T.stopPropagation(), p([{ type: "showLikers", value: !1 }]), Mr)
|
|
23352
23384
|
return cs(), !1;
|
|
23353
23385
|
if (cs(), f || !s)
|
|
23354
23386
|
return !1;
|
|
23355
|
-
|
|
23387
|
+
Mr = setTimeout(E, 350);
|
|
23356
23388
|
}, E = async () => {
|
|
23357
23389
|
if (cs(), f || !s)
|
|
23358
23390
|
return !1;
|
|
@@ -23403,7 +23435,7 @@ const ZC = ({
|
|
|
23403
23435
|
/* @__PURE__ */ c.jsx(
|
|
23404
23436
|
Qi,
|
|
23405
23437
|
{
|
|
23406
|
-
className:
|
|
23438
|
+
className: V("discussion-button text-medium action-button", {
|
|
23407
23439
|
"show-spinner": f,
|
|
23408
23440
|
"is-liked": g,
|
|
23409
23441
|
disabled: !s
|
|
@@ -23470,7 +23502,7 @@ const ZC = ({
|
|
|
23470
23502
|
}
|
|
23471
23503
|
),
|
|
23472
23504
|
/* @__PURE__ */ c.jsx(
|
|
23473
|
-
|
|
23505
|
+
hr,
|
|
23474
23506
|
{
|
|
23475
23507
|
id: `likes-tooltip-${a.slug}`,
|
|
23476
23508
|
isOpen: b,
|
|
@@ -23532,7 +23564,7 @@ const ZC = ({
|
|
|
23532
23564
|
}) => {
|
|
23533
23565
|
const r = {
|
|
23534
23566
|
...n,
|
|
23535
|
-
class:
|
|
23567
|
+
class: V("subtle", t)
|
|
23536
23568
|
};
|
|
23537
23569
|
return /* @__PURE__ */ c.jsx("blockquote", { ...r, children: e });
|
|
23538
23570
|
}, YC = 280, Yf = async (e, t, n, r = () => Promise.resolve([])) => {
|
|
@@ -23590,9 +23622,9 @@ const GC = 3e3, QC = ({
|
|
|
23590
23622
|
}
|
|
23591
23623
|
),
|
|
23592
23624
|
/* @__PURE__ */ c.jsx(
|
|
23593
|
-
|
|
23625
|
+
hr,
|
|
23594
23626
|
{
|
|
23595
|
-
className:
|
|
23627
|
+
className: V({
|
|
23596
23628
|
copied: i.isCopied
|
|
23597
23629
|
}),
|
|
23598
23630
|
isOpen: i.isOpen,
|
|
@@ -23628,7 +23660,7 @@ const ma = ({
|
|
|
23628
23660
|
isCommunity: f = !1,
|
|
23629
23661
|
badges: b
|
|
23630
23662
|
}) => {
|
|
23631
|
-
var Ge, Ke, Se, Pe, we, We, Ve,
|
|
23663
|
+
var Ge, Ke, Se, Pe, we, We, Ve, K;
|
|
23632
23664
|
const v = le(), w = Ne(vt), B = Ne(Oo), {
|
|
23633
23665
|
createContent: E = async () => {
|
|
23634
23666
|
},
|
|
@@ -23783,7 +23815,7 @@ const ma = ({
|
|
|
23783
23815
|
"data-gtm-event-context": d,
|
|
23784
23816
|
"data-gtm-event-type": `edit-${t.type}-click`
|
|
23785
23817
|
}), 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:
|
|
23818
|
+
className: V("discussion-post", u, {
|
|
23787
23819
|
[re]: !u || !u.includes("highlighted-text-box"),
|
|
23788
23820
|
"has-link": l.post && !_.isEditing,
|
|
23789
23821
|
"is-pinned": (t == null ? void 0 : t.pinned) || !1
|
|
@@ -23808,7 +23840,7 @@ const ma = ({
|
|
|
23808
23840
|
"div",
|
|
23809
23841
|
{
|
|
23810
23842
|
id: N || t.slug,
|
|
23811
|
-
className:
|
|
23843
|
+
className: V("discussion-card", t.type, {
|
|
23812
23844
|
editing: _.isEditing,
|
|
23813
23845
|
"has-link": l.post && !_.isEditing
|
|
23814
23846
|
}),
|
|
@@ -23875,7 +23907,7 @@ const ma = ({
|
|
|
23875
23907
|
}
|
|
23876
23908
|
}
|
|
23877
23909
|
) : /* @__PURE__ */ c.jsx(
|
|
23878
|
-
|
|
23910
|
+
ar,
|
|
23879
23911
|
{
|
|
23880
23912
|
options: {
|
|
23881
23913
|
overrides: { a: ru, blockquote: { component: hs } }
|
|
@@ -23886,7 +23918,7 @@ const ma = ({
|
|
|
23886
23918
|
] }) : /* @__PURE__ */ c.jsxs(c.Fragment, { children: [
|
|
23887
23919
|
(_ == null ? void 0 : _.title) && /* @__PURE__ */ c.jsx("p", { className: "content-title", children: _ == null ? void 0 : _.title }),
|
|
23888
23920
|
/* @__PURE__ */ c.jsx(
|
|
23889
|
-
|
|
23921
|
+
ar,
|
|
23890
23922
|
{
|
|
23891
23923
|
options: {
|
|
23892
23924
|
wrapper: t.type === "question" ? "h1" : ie.Fragment,
|
|
@@ -23902,7 +23934,7 @@ const ma = ({
|
|
|
23902
23934
|
!_.isEditing && !(s != null && s.actionBar) && /* @__PURE__ */ c.jsxs(
|
|
23903
23935
|
"ul",
|
|
23904
23936
|
{
|
|
23905
|
-
className:
|
|
23937
|
+
className: V("actions text-medium", t.type),
|
|
23906
23938
|
"data-testid": `${t.type}-actions`,
|
|
23907
23939
|
children: [
|
|
23908
23940
|
!s.likes && /* @__PURE__ */ c.jsx(
|
|
@@ -23956,7 +23988,7 @@ const ma = ({
|
|
|
23956
23988
|
m && /* @__PURE__ */ c.jsx(
|
|
23957
23989
|
QC,
|
|
23958
23990
|
{
|
|
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}/${(
|
|
23991
|
+
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
23992
|
gtm: { context: d, event: `copy-link-${t.type}-click` }
|
|
23961
23993
|
}
|
|
23962
23994
|
),
|
|
@@ -24104,7 +24136,7 @@ const XC = Kr(
|
|
|
24104
24136
|
/* @__PURE__ */ c.jsxs(
|
|
24105
24137
|
"button",
|
|
24106
24138
|
{
|
|
24107
|
-
className:
|
|
24139
|
+
className: V("discussion-form-card", n),
|
|
24108
24140
|
onClick: (b) => {
|
|
24109
24141
|
b.preventDefault(), b.stopPropagation(), h((v) => ({ ...v, form: !0 }));
|
|
24110
24142
|
},
|
|
@@ -24112,9 +24144,9 @@ const XC = Kr(
|
|
|
24112
24144
|
children: [
|
|
24113
24145
|
/* @__PURE__ */ c.jsx($n, { name: l.name, src: l.image, alt: "" }),
|
|
24114
24146
|
/* @__PURE__ */ c.jsx(
|
|
24115
|
-
|
|
24147
|
+
ar,
|
|
24116
24148
|
{
|
|
24117
|
-
className:
|
|
24149
|
+
className: V("input", { placeholder: !p.showCachedText }),
|
|
24118
24150
|
element: "span",
|
|
24119
24151
|
options: {
|
|
24120
24152
|
forceInline: !0,
|
|
@@ -24291,7 +24323,7 @@ const iE = ({
|
|
|
24291
24323
|
return /* @__PURE__ */ c.jsxs(
|
|
24292
24324
|
"div",
|
|
24293
24325
|
{
|
|
24294
|
-
className:
|
|
24326
|
+
className: V("thread-wrapper", {
|
|
24295
24327
|
"empty-thread": !o
|
|
24296
24328
|
}),
|
|
24297
24329
|
children: [
|
|
@@ -24528,7 +24560,7 @@ const rh = () => {
|
|
|
24528
24560
|
e(t);
|
|
24529
24561
|
}, 50));
|
|
24530
24562
|
};
|
|
24531
|
-
},
|
|
24563
|
+
}, cr = Object.freeze({
|
|
24532
24564
|
id: "some-user-id-1",
|
|
24533
24565
|
name: "some user name 1",
|
|
24534
24566
|
organization: "some user organization 1",
|
|
@@ -24547,7 +24579,7 @@ const rh = () => {
|
|
|
24547
24579
|
},
|
|
24548
24580
|
isLoading: !1
|
|
24549
24581
|
}), Mo = Object.freeze({
|
|
24550
|
-
actor: `SU:${
|
|
24582
|
+
actor: `SU:${cr.id}`,
|
|
24551
24583
|
content: "some content 1",
|
|
24552
24584
|
duration: "5.53ms",
|
|
24553
24585
|
feed_id: "some-feed-id-1",
|
|
@@ -24567,7 +24599,7 @@ const rh = () => {
|
|
|
24567
24599
|
time: "2023-11-24T17:54:36.162000",
|
|
24568
24600
|
verb: "post"
|
|
24569
24601
|
}), hE = Object.freeze({
|
|
24570
|
-
actor: `SU:${
|
|
24602
|
+
actor: `SU:${cr.id}`,
|
|
24571
24603
|
content: "some content 3",
|
|
24572
24604
|
duration: "5.53ms",
|
|
24573
24605
|
feed_id: "some-feed-id-3",
|
|
@@ -24651,9 +24683,9 @@ Object.freeze({
|
|
|
24651
24683
|
created_at: "2023-12-03T21:53:45.999851Z",
|
|
24652
24684
|
updated_at: "2023-12-03T21:53:45.999851Z",
|
|
24653
24685
|
id: "some-reply-id-2",
|
|
24654
|
-
user_id:
|
|
24686
|
+
user_id: cr.id,
|
|
24655
24687
|
user: {
|
|
24656
|
-
id:
|
|
24688
|
+
id: cr.id,
|
|
24657
24689
|
data: {},
|
|
24658
24690
|
created_at: "2023-08-31T07:11:38.677184Z",
|
|
24659
24691
|
updated_at: "2023-08-31T07:11:38.677184Z"
|
|
@@ -24691,9 +24723,9 @@ Object.freeze({
|
|
|
24691
24723
|
created_at: "2023-12-03T21:53:45.999851Z",
|
|
24692
24724
|
updated_at: "2023-12-03T21:53:45.999851Z",
|
|
24693
24725
|
id: "some-reply-id-3",
|
|
24694
|
-
user_id:
|
|
24726
|
+
user_id: cr.id,
|
|
24695
24727
|
user: {
|
|
24696
|
-
id:
|
|
24728
|
+
id: cr.id,
|
|
24697
24729
|
data: {},
|
|
24698
24730
|
created_at: "2023-08-31T07:11:38.677184Z",
|
|
24699
24731
|
updated_at: "2023-08-31T07:11:38.677184Z"
|
|
@@ -24919,7 +24951,7 @@ function _E(e) {
|
|
|
24919
24951
|
var t;
|
|
24920
24952
|
return ((t = e == null ? void 0 : e.pages) == null ? void 0 : t.reduce((n, { results: r }) => [...n, ...r], [])) || [];
|
|
24921
24953
|
}
|
|
24922
|
-
const
|
|
24954
|
+
const X_ = ({
|
|
24923
24955
|
basePath: e,
|
|
24924
24956
|
parentId: t,
|
|
24925
24957
|
isMember: n,
|
|
@@ -25060,7 +25092,7 @@ const J_ = ({
|
|
|
25060
25092
|
name: (G = (me = J == null ? void 0 : J.user) == null ? void 0 : me.data) == null ? void 0 : G.name
|
|
25061
25093
|
};
|
|
25062
25094
|
}) : !1;
|
|
25063
|
-
return /* @__PURE__ */ c.jsx(
|
|
25095
|
+
return /* @__PURE__ */ c.jsx(Rr, { children: /* @__PURE__ */ c.jsx(
|
|
25064
25096
|
ma,
|
|
25065
25097
|
{
|
|
25066
25098
|
content: {
|
|
@@ -25142,7 +25174,7 @@ const J_ = ({
|
|
|
25142
25174
|
),
|
|
25143
25175
|
/* @__PURE__ */ c.jsx(Qf, { form: l })
|
|
25144
25176
|
] });
|
|
25145
|
-
},
|
|
25177
|
+
}, ek = {
|
|
25146
25178
|
next: "id_lt=67ef0342-6f6e-4807-beea-5a9184ec140c&limit=5",
|
|
25147
25179
|
results: [
|
|
25148
25180
|
{
|
|
@@ -26315,7 +26347,7 @@ function HE({
|
|
|
26315
26347
|
});
|
|
26316
26348
|
return i;
|
|
26317
26349
|
}
|
|
26318
|
-
const
|
|
26350
|
+
const tk = ({
|
|
26319
26351
|
basePath: e,
|
|
26320
26352
|
parentId: t,
|
|
26321
26353
|
activityId: n,
|
|
@@ -26468,7 +26500,7 @@ const VE = ({
|
|
|
26468
26500
|
(p !== "" || m !== "") && l((b) => ({ ...b, showCachedText: !0 })), o();
|
|
26469
26501
|
}
|
|
26470
26502
|
},
|
|
26471
|
-
className:
|
|
26503
|
+
className: V("discussion-form-modal", i),
|
|
26472
26504
|
children: /* @__PURE__ */ c.jsx(
|
|
26473
26505
|
ha,
|
|
26474
26506
|
{
|
|
@@ -26523,7 +26555,7 @@ const VE = ({
|
|
|
26523
26555
|
__proto__: null,
|
|
26524
26556
|
default: VE
|
|
26525
26557
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
26526
|
-
const
|
|
26558
|
+
const nk = ({
|
|
26527
26559
|
className: e,
|
|
26528
26560
|
showModal: t = !0,
|
|
26529
26561
|
title: n,
|
|
@@ -26546,7 +26578,7 @@ const tk = ({
|
|
|
26546
26578
|
showDivider: !1,
|
|
26547
26579
|
showIcon: s,
|
|
26548
26580
|
functions: { onClose: o },
|
|
26549
|
-
className:
|
|
26581
|
+
className: V("invite-modal", e, { success: !!n }),
|
|
26550
26582
|
children: /* @__PURE__ */ c.jsx(
|
|
26551
26583
|
FC,
|
|
26552
26584
|
{
|
|
@@ -26586,7 +26618,7 @@ const Ro = ({
|
|
|
26586
26618
|
functions: {
|
|
26587
26619
|
onClose: d
|
|
26588
26620
|
},
|
|
26589
|
-
className:
|
|
26621
|
+
className: V("profile-modal", s, { success: !!t }),
|
|
26590
26622
|
maxWidth: 700,
|
|
26591
26623
|
children: /* @__PURE__ */ c.jsxs(c.Fragment, { children: [
|
|
26592
26624
|
t && n || r ? /* @__PURE__ */ c.jsxs("div", { className: "intro", children: [
|
|
@@ -26619,7 +26651,7 @@ const Ro = ({
|
|
|
26619
26651
|
__proto__: null,
|
|
26620
26652
|
default: Ro
|
|
26621
26653
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
26622
|
-
const
|
|
26654
|
+
const rk = ({ members: e }) => {
|
|
26623
26655
|
const [t, n] = ue(!1), r = (i) => {
|
|
26624
26656
|
const { fullName: a, jobTitle: s, organisation: o, photo: l } = i || {};
|
|
26625
26657
|
return /* @__PURE__ */ c.jsxs(c.Fragment, { children: [
|
|
@@ -26644,7 +26676,7 @@ const nk = ({ members: e }) => {
|
|
|
26644
26676
|
isOpen: t !== !1,
|
|
26645
26677
|
children: t === !1 ? "" : /* @__PURE__ */ c.jsxs(c.Fragment, { children: [
|
|
26646
26678
|
r(t),
|
|
26647
|
-
/* @__PURE__ */ c.jsx(
|
|
26679
|
+
/* @__PURE__ */ c.jsx(ar, { children: t.text })
|
|
26648
26680
|
] }),
|
|
26649
26681
|
buttons: [
|
|
26650
26682
|
{
|
|
@@ -26665,13 +26697,13 @@ const YE = ({
|
|
|
26665
26697
|
content: n,
|
|
26666
26698
|
member: r,
|
|
26667
26699
|
className: i = ""
|
|
26668
|
-
}) => /* @__PURE__ */ c.jsxs("blockquote", { className:
|
|
26700
|
+
}) => /* @__PURE__ */ c.jsxs("blockquote", { className: V("testimonial-block", i), children: [
|
|
26669
26701
|
/* @__PURE__ */ c.jsx(Kt, { className: "testimonial", children: n }),
|
|
26670
26702
|
r ? /* @__PURE__ */ c.jsx(bn, { member: r, styling: { size: "large" } }) : /* @__PURE__ */ c.jsxs(c.Fragment, { children: [
|
|
26671
26703
|
e && /* @__PURE__ */ c.jsx(
|
|
26672
26704
|
"p",
|
|
26673
26705
|
{
|
|
26674
|
-
className:
|
|
26706
|
+
className: V("author", {
|
|
26675
26707
|
"text-small": !i.includes("new")
|
|
26676
26708
|
}),
|
|
26677
26709
|
children: e
|
|
@@ -26680,15 +26712,15 @@ const YE = ({
|
|
|
26680
26712
|
t && /* @__PURE__ */ c.jsx(
|
|
26681
26713
|
"p",
|
|
26682
26714
|
{
|
|
26683
|
-
className:
|
|
26715
|
+
className: V("author-cite", {
|
|
26684
26716
|
"text-small": !i.includes("new")
|
|
26685
26717
|
}),
|
|
26686
26718
|
children: /* @__PURE__ */ c.jsx("cite", { children: t })
|
|
26687
26719
|
}
|
|
26688
26720
|
)
|
|
26689
26721
|
] })
|
|
26690
|
-
] }),
|
|
26691
|
-
const
|
|
26722
|
+
] }), ik = Gt(YE);
|
|
26723
|
+
const ak = ({
|
|
26692
26724
|
items: e = [],
|
|
26693
26725
|
selector: t = "",
|
|
26694
26726
|
className: n = ""
|
|
@@ -26712,7 +26744,7 @@ const ik = ({
|
|
|
26712
26744
|
Zt,
|
|
26713
26745
|
{
|
|
26714
26746
|
variant: "subtle",
|
|
26715
|
-
className:
|
|
26747
|
+
className: V("table-of-contents", n),
|
|
26716
26748
|
children: [
|
|
26717
26749
|
/* @__PURE__ */ c.jsx("h2", { children: r.formatMessage({ id: "tableOfContents" }) }),
|
|
26718
26750
|
/* @__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 +26786,9 @@ const Io = ({
|
|
|
26754
26786
|
{ early: u, late: h }
|
|
26755
26787
|
);
|
|
26756
26788
|
}
|
|
26757
|
-
return n && (u = `${n} ${u}`, l = `${n} ${l}`), r && (u = `${u} ${r}`, l = `${l} ${r}`), /* @__PURE__ */ c.jsx("span", { className:
|
|
26789
|
+
return n && (u = `${n} ${u}`, l = `${n} ${l}`), r && (u = `${u} ${r}`, l = `${l} ${r}`), /* @__PURE__ */ c.jsx("span", { className: V("time-to-complete", i), "aria-label": u, children: l });
|
|
26758
26790
|
};
|
|
26759
|
-
const
|
|
26791
|
+
const sk = ({ className: e = "", image: t, ...n }) => t ? (typeof t == "string" && (t = {
|
|
26760
26792
|
width: 1080,
|
|
26761
26793
|
height: 200,
|
|
26762
26794
|
type: "image/png",
|
|
@@ -26769,7 +26801,7 @@ const ak = ({ className: e = "", image: t, ...n }) => t ? (typeof t == "string"
|
|
|
26769
26801
|
Yr,
|
|
26770
26802
|
{
|
|
26771
26803
|
...n,
|
|
26772
|
-
className:
|
|
26804
|
+
className: V("banner", e),
|
|
26773
26805
|
image: { ...t, aspect: "banner" }
|
|
26774
26806
|
}
|
|
26775
26807
|
)) : null;
|
|
@@ -26840,7 +26872,7 @@ const GE = [
|
|
|
26840
26872
|
}), /* @__PURE__ */ c.jsx(
|
|
26841
26873
|
qn,
|
|
26842
26874
|
{
|
|
26843
|
-
className:
|
|
26875
|
+
className: V("banner-section", r, i, e, {
|
|
26844
26876
|
"has-image": n,
|
|
26845
26877
|
"image-full-width": n && u.imageFullWidth,
|
|
26846
26878
|
"image-inline": n && !u.imageFullWidth,
|
|
@@ -26852,7 +26884,7 @@ const GE = [
|
|
|
26852
26884
|
d.map((b) => {
|
|
26853
26885
|
if (p[b] && typeof p[b] == "object") {
|
|
26854
26886
|
const { text: v, element: w = "" } = p[b];
|
|
26855
|
-
return b === "text" ? /* @__PURE__ */ c.jsx(
|
|
26887
|
+
return b === "text" ? /* @__PURE__ */ c.jsx(ar, { overrideType: "text-only", className: "text", children: v }, b) : ie.createElement(w, { key: b, className: b }, v);
|
|
26856
26888
|
}
|
|
26857
26889
|
return null;
|
|
26858
26890
|
}),
|
|
@@ -26864,7 +26896,7 @@ const GE = [
|
|
|
26864
26896
|
size: { mobile: "medium", 768: "large" },
|
|
26865
26897
|
href: o.link,
|
|
26866
26898
|
...o.props,
|
|
26867
|
-
className:
|
|
26899
|
+
className: V({
|
|
26868
26900
|
new: r === "subtle",
|
|
26869
26901
|
[(g = o.props) == null ? void 0 : g.className]: (f = o.props) == null ? void 0 : f.className
|
|
26870
26902
|
}),
|
|
@@ -26884,8 +26916,8 @@ const GE = [
|
|
|
26884
26916
|
] })
|
|
26885
26917
|
}
|
|
26886
26918
|
);
|
|
26887
|
-
},
|
|
26888
|
-
const
|
|
26919
|
+
}, ok = Gt(QE);
|
|
26920
|
+
const uk = ({
|
|
26889
26921
|
image: e,
|
|
26890
26922
|
variant: t = "default",
|
|
26891
26923
|
children: n,
|
|
@@ -26895,7 +26927,7 @@ const ok = ({
|
|
|
26895
26927
|
return e && (i["--image"] = `url(${e})`), /* @__PURE__ */ c.jsx(
|
|
26896
26928
|
qn,
|
|
26897
26929
|
{
|
|
26898
|
-
className:
|
|
26930
|
+
className: V("custom-content-banner", t, r, {
|
|
26899
26931
|
"has-image": e
|
|
26900
26932
|
}),
|
|
26901
26933
|
style: i,
|
|
@@ -26909,12 +26941,12 @@ const JE = ({
|
|
|
26909
26941
|
content: n,
|
|
26910
26942
|
image: r
|
|
26911
26943
|
}) => {
|
|
26912
|
-
const i = typeof n == "string" ? /* @__PURE__ */ c.jsx(
|
|
26913
|
-
return /* @__PURE__ */ c.jsxs(qn, { className:
|
|
26944
|
+
const i = typeof n == "string" ? /* @__PURE__ */ c.jsx(ar, { children: n }) : n;
|
|
26945
|
+
return /* @__PURE__ */ c.jsxs(qn, { className: V("highlight-section", t), children: [
|
|
26914
26946
|
r && /* @__PURE__ */ c.jsx(
|
|
26915
26947
|
"div",
|
|
26916
26948
|
{
|
|
26917
|
-
className:
|
|
26949
|
+
className: V("highlight-container highlight-image", {
|
|
26918
26950
|
[`highlight-image-${e}`]: e === "right"
|
|
26919
26951
|
}),
|
|
26920
26952
|
children: /* @__PURE__ */ c.jsx(
|
|
@@ -26931,13 +26963,13 @@ const JE = ({
|
|
|
26931
26963
|
/* @__PURE__ */ c.jsx(
|
|
26932
26964
|
"div",
|
|
26933
26965
|
{
|
|
26934
|
-
className:
|
|
26966
|
+
className: V("highlight-container highlight-content-wrapper", {
|
|
26935
26967
|
"no-image": !r
|
|
26936
26968
|
}),
|
|
26937
26969
|
children: /* @__PURE__ */ c.jsx(
|
|
26938
26970
|
"div",
|
|
26939
26971
|
{
|
|
26940
|
-
className:
|
|
26972
|
+
className: V("highlight-content", {
|
|
26941
26973
|
"highlight-content-right": e === "left"
|
|
26942
26974
|
}),
|
|
26943
26975
|
children: r ? i : /* @__PURE__ */ c.jsx("div", { className: "content-default", children: i })
|
|
@@ -26946,14 +26978,14 @@ const JE = ({
|
|
|
26946
26978
|
}
|
|
26947
26979
|
)
|
|
26948
26980
|
] });
|
|
26949
|
-
},
|
|
26950
|
-
const
|
|
26981
|
+
}, lk = Gt(JE);
|
|
26982
|
+
const ck = ({
|
|
26951
26983
|
variant: e = "primary",
|
|
26952
26984
|
button: t = null,
|
|
26953
26985
|
title: n,
|
|
26954
26986
|
text: r,
|
|
26955
26987
|
gtmContext: i
|
|
26956
|
-
}) => !n && !r ? null : /* @__PURE__ */ c.jsxs("aside", { className:
|
|
26988
|
+
}) => !n && !r ? null : /* @__PURE__ */ c.jsxs("aside", { className: V("marketing-block", e), children: [
|
|
26957
26989
|
n && /* @__PURE__ */ c.jsx("p", { className: "title", children: n }),
|
|
26958
26990
|
r && /* @__PURE__ */ c.jsx("p", { children: r }),
|
|
26959
26991
|
t && /* @__PURE__ */ c.jsx(
|
|
@@ -27145,7 +27177,7 @@ const lk = ({
|
|
|
27145
27177
|
return /* @__PURE__ */ c.jsx(
|
|
27146
27178
|
"p",
|
|
27147
27179
|
{
|
|
27148
|
-
className:
|
|
27180
|
+
className: V("cta-wrapper", {
|
|
27149
27181
|
"has-member-section": e == null ? void 0 : e.members
|
|
27150
27182
|
}),
|
|
27151
27183
|
children: /* @__PURE__ */ c.jsx(
|
|
@@ -27267,7 +27299,7 @@ const ah = ({
|
|
|
27267
27299
|
}, (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
27300
|
"li",
|
|
27269
27301
|
{
|
|
27270
|
-
className:
|
|
27302
|
+
className: V("card-wrapper text-medium", B, t, {
|
|
27271
27303
|
"has-link": A,
|
|
27272
27304
|
"no-link": !A,
|
|
27273
27305
|
"has-image": f.banner
|
|
@@ -27353,7 +27385,7 @@ const ah = ({
|
|
|
27353
27385
|
}
|
|
27354
27386
|
);
|
|
27355
27387
|
};
|
|
27356
|
-
const r_ = ({ cards: e, cardTypes: t, className: n = "", ...r }) => /* @__PURE__ */ c.jsx("ul", { className:
|
|
27388
|
+
const r_ = ({ cards: e, cardTypes: t, className: n = "", ...r }) => /* @__PURE__ */ c.jsx("ul", { className: V("card-block", n), children: e.map((i, a) => {
|
|
27357
27389
|
const s = i.slug ? `${i.slug}-${t[a]}` : `${t[a]}-${a}`;
|
|
27358
27390
|
return /* @__PURE__ */ c.jsx(
|
|
27359
27391
|
ah,
|
|
@@ -27374,7 +27406,7 @@ const r_ = ({ cards: e, cardTypes: t, className: n = "", ...r }) => /* @__PURE__
|
|
|
27374
27406
|
return null;
|
|
27375
27407
|
const { text: r, element: i = "h2", variant: a = "default", size: s = "medium", link: o } = t;
|
|
27376
27408
|
return ie.createElement(i, {
|
|
27377
|
-
className:
|
|
27409
|
+
className: V("title", a, s, {
|
|
27378
27410
|
"highlighted-title": a === "highlighted"
|
|
27379
27411
|
}),
|
|
27380
27412
|
children: /* @__PURE__ */ c.jsxs(c.Fragment, { children: [
|
|
@@ -27414,7 +27446,7 @@ const s_ = ({
|
|
|
27414
27446
|
}), { cardsPerPage: p, isLoading: m } = d, [g, f] = ue({
|
|
27415
27447
|
currentPage: 0,
|
|
27416
27448
|
loadedPages: [0]
|
|
27417
|
-
}), { currentPage: b, loadedPages: v } = g, [w, B] = ue(""), E = t.length, x = Math.ceil(E / p), A = _e(null), T =
|
|
27449
|
+
}), { currentPage: b, loadedPages: v } = g, [w, B] = ue(""), E = t.length, x = Math.ceil(E / p), A = _e(null), T = fr(!0, !0, A == null ? void 0 : A.current);
|
|
27418
27450
|
de(() => {
|
|
27419
27451
|
let C = 1;
|
|
27420
27452
|
T && (T >= gs.fourCards ? C = 4 : T >= gs.threeCards ? C = 3 : T >= gs.twoCards && (C = 2), C > E && (C = E)), h((S) => ({
|
|
@@ -27487,7 +27519,7 @@ const s_ = ({
|
|
|
27487
27519
|
"section",
|
|
27488
27520
|
{
|
|
27489
27521
|
ref: A,
|
|
27490
|
-
className:
|
|
27522
|
+
className: V("carousel-wrapper", a),
|
|
27491
27523
|
"data-testid": "carousel",
|
|
27492
27524
|
children: [
|
|
27493
27525
|
/* @__PURE__ */ c.jsx(a_, { id: e, title: i }),
|
|
@@ -27547,7 +27579,7 @@ const s_ = ({
|
|
|
27547
27579
|
children: /* @__PURE__ */ c.jsx(
|
|
27548
27580
|
"button",
|
|
27549
27581
|
{
|
|
27550
|
-
className:
|
|
27582
|
+
className: V("page-indicator", {
|
|
27551
27583
|
selected: S === b
|
|
27552
27584
|
}),
|
|
27553
27585
|
onClick: (N) => {
|
|
@@ -27590,7 +27622,7 @@ const s_ = ({
|
|
|
27590
27622
|
]
|
|
27591
27623
|
}
|
|
27592
27624
|
);
|
|
27593
|
-
},
|
|
27625
|
+
}, dk = ({
|
|
27594
27626
|
carousels: e = [],
|
|
27595
27627
|
isLoading: t,
|
|
27596
27628
|
title: n,
|
|
@@ -27599,7 +27631,7 @@ const s_ = ({
|
|
|
27599
27631
|
}) => !e || !e.length ? null : e.map(
|
|
27600
27632
|
({ title: a, viewAllUrl: s, cards: o, cardsTypes: l }, u) => {
|
|
27601
27633
|
const d = a ? window.btoa(a) : `carousel-${u}`, h = u === e.length - 1;
|
|
27602
|
-
return t ? /* @__PURE__ */ c.jsxs(
|
|
27634
|
+
return t ? /* @__PURE__ */ c.jsxs(Rr, { children: [
|
|
27603
27635
|
/* @__PURE__ */ c.jsx(
|
|
27604
27636
|
Yc,
|
|
27605
27637
|
{
|
|
@@ -27608,7 +27640,7 @@ const s_ = ({
|
|
|
27608
27640
|
}
|
|
27609
27641
|
),
|
|
27610
27642
|
h ? null : /* @__PURE__ */ c.jsx(an, {})
|
|
27611
|
-
] }, `placeholder-${d}`) : /* @__PURE__ */ c.jsxs(
|
|
27643
|
+
] }, `placeholder-${d}`) : /* @__PURE__ */ c.jsxs(Rr, { children: [
|
|
27612
27644
|
/* @__PURE__ */ c.jsx(
|
|
27613
27645
|
s_,
|
|
27614
27646
|
{
|
|
@@ -27622,7 +27654,7 @@ const s_ = ({
|
|
|
27622
27654
|
] }, `carousel-${d}`);
|
|
27623
27655
|
}
|
|
27624
27656
|
);
|
|
27625
|
-
const
|
|
27657
|
+
const fk = ({
|
|
27626
27658
|
element: e = "p",
|
|
27627
27659
|
data: {
|
|
27628
27660
|
timeLeftToFinish: t,
|
|
@@ -27638,7 +27670,7 @@ const dk = ({
|
|
|
27638
27670
|
u > 99 ? u = 100 : u < 1 && (u = 0);
|
|
27639
27671
|
const { highlightPercentage: d = !1 } = s;
|
|
27640
27672
|
return ie.createElement(e, {
|
|
27641
|
-
className:
|
|
27673
|
+
className: V("course-progression", o, {
|
|
27642
27674
|
"highlight-percentage": d,
|
|
27643
27675
|
"has-circle-graph": a === "circle"
|
|
27644
27676
|
}),
|
|
@@ -27677,7 +27709,7 @@ const o_ = ({
|
|
|
27677
27709
|
title: r,
|
|
27678
27710
|
className: i = ""
|
|
27679
27711
|
}) => ie.createElement(e, {
|
|
27680
|
-
className:
|
|
27712
|
+
className: V("lesson-name", i),
|
|
27681
27713
|
"data-number": `${t}.${n}`,
|
|
27682
27714
|
children: r
|
|
27683
27715
|
});
|
|
@@ -27690,15 +27722,15 @@ const u_ = ({
|
|
|
27690
27722
|
children: a
|
|
27691
27723
|
}) => {
|
|
27692
27724
|
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:
|
|
27725
|
+
return /* @__PURE__ */ c.jsxs("small", { className: V("content-type", { [e]: e !== "default" }), children: [
|
|
27726
|
+
/* @__PURE__ */ c.jsx("span", { className: V("type", n), children: o }),
|
|
27695
27727
|
" ",
|
|
27696
27728
|
t > 0 && !r && /* @__PURE__ */ c.jsx(Io, { time: t }),
|
|
27697
27729
|
" ",
|
|
27698
27730
|
a ? /* @__PURE__ */ c.jsx("span", { className: "additional", children: a }) : null
|
|
27699
27731
|
] });
|
|
27700
27732
|
};
|
|
27701
|
-
const
|
|
27733
|
+
const hk = ({
|
|
27702
27734
|
course: {
|
|
27703
27735
|
articles: e,
|
|
27704
27736
|
canAccessCourse: t,
|
|
@@ -27756,7 +27788,7 @@ const fk = ({
|
|
|
27756
27788
|
return w && (z.style = { "--image": `url(${w})` }), /* @__PURE__ */ c.jsx(
|
|
27757
27789
|
"li",
|
|
27758
27790
|
{
|
|
27759
|
-
className:
|
|
27791
|
+
className: V({
|
|
27760
27792
|
article: b === Xr.ARTICLE,
|
|
27761
27793
|
discussion: b === Xr.DISCUSSION,
|
|
27762
27794
|
quiz: b === Xr.QUIZ,
|
|
@@ -27805,7 +27837,7 @@ const fk = ({
|
|
|
27805
27837
|
}
|
|
27806
27838
|
);
|
|
27807
27839
|
};
|
|
27808
|
-
const
|
|
27840
|
+
const mk = ({
|
|
27809
27841
|
isComplete: e = !1,
|
|
27810
27842
|
onClick: t,
|
|
27811
27843
|
...n
|
|
@@ -27821,7 +27853,7 @@ const hk = ({
|
|
|
27821
27853
|
hover: "check-inside-circle_no-overlap_inverted"
|
|
27822
27854
|
},
|
|
27823
27855
|
onClick: t,
|
|
27824
|
-
className:
|
|
27856
|
+
className: V("mark-complete-button center gtm-trackable", {
|
|
27825
27857
|
completed: e
|
|
27826
27858
|
}),
|
|
27827
27859
|
"data-gtm-event-type": "mark-as-complete",
|
|
@@ -27829,7 +27861,7 @@ const hk = ({
|
|
|
27829
27861
|
children: r.formatMessage({ id: `markCompleteButton${e ? "_completed" : ""}` })
|
|
27830
27862
|
}
|
|
27831
27863
|
);
|
|
27832
|
-
},
|
|
27864
|
+
}, pk = ({
|
|
27833
27865
|
id: e,
|
|
27834
27866
|
data: { jobTitle: t, name: n, organization: r, thumbnail: i }
|
|
27835
27867
|
}) => ({
|
|
@@ -27882,7 +27914,7 @@ const hk = ({
|
|
|
27882
27914
|
contributors: ["community"]
|
|
27883
27915
|
}
|
|
27884
27916
|
];
|
|
27885
|
-
const xi = "notFoundError_",
|
|
27917
|
+
const xi = "notFoundError_", gk = () => {
|
|
27886
27918
|
const e = le(), t = [];
|
|
27887
27919
|
return Ac.forEach((n, r) => {
|
|
27888
27920
|
n.title = e.formatMessage({ id: `${xi}post_${r + 1}` }), t.push("solutionArticle");
|
|
@@ -27917,13 +27949,13 @@ const xi = "notFoundError_", pk = () => {
|
|
|
27917
27949
|
};
|
|
27918
27950
|
export {
|
|
27919
27951
|
rn as ASSETS_BUCKET,
|
|
27920
|
-
|
|
27921
|
-
|
|
27952
|
+
X_ as ActivitiesFeed,
|
|
27953
|
+
tk as ActivitySection,
|
|
27922
27954
|
Gf as AddPost,
|
|
27923
27955
|
Qc as BadgesContext,
|
|
27924
27956
|
Dm as BadgesProvider,
|
|
27925
|
-
|
|
27926
|
-
|
|
27957
|
+
sk as Banner,
|
|
27958
|
+
ok as BannerSection,
|
|
27927
27959
|
M_ as Breadcrumbs,
|
|
27928
27960
|
S_ as Buckets,
|
|
27929
27961
|
Be as Button,
|
|
@@ -27932,23 +27964,23 @@ export {
|
|
|
27932
27964
|
xm as CacheProvider,
|
|
27933
27965
|
ah as Card,
|
|
27934
27966
|
r_ as CardBlock,
|
|
27935
|
-
|
|
27967
|
+
dk as Carousel,
|
|
27936
27968
|
vd as CharacterLimit,
|
|
27937
27969
|
eo as CollapsibleSection,
|
|
27938
27970
|
Up as Columns,
|
|
27939
27971
|
N_ as CommunityDetails,
|
|
27940
|
-
|
|
27972
|
+
Y_ as ContactFooter,
|
|
27941
27973
|
kC as ContactForm,
|
|
27942
27974
|
im as ContentTypeLabel,
|
|
27943
27975
|
nd as Contributors,
|
|
27944
27976
|
Oo as ConversationContext,
|
|
27945
27977
|
MC as CookieBanner,
|
|
27946
|
-
|
|
27947
|
-
|
|
27948
|
-
|
|
27978
|
+
fk as CourseProgression,
|
|
27979
|
+
hk as CourseStructure,
|
|
27980
|
+
uk as CustomContentBanner,
|
|
27949
27981
|
it as CustomEvents,
|
|
27950
27982
|
Si as DELETED_USER_ID,
|
|
27951
|
-
|
|
27983
|
+
rk as Directory,
|
|
27952
27984
|
qC as DiscussionConversation,
|
|
27953
27985
|
ha as DiscussionForm,
|
|
27954
27986
|
tE as DiscussionFormCard,
|
|
@@ -27957,17 +27989,18 @@ export {
|
|
|
27957
27989
|
ma as DiscussionPost,
|
|
27958
27990
|
iE as DiscussionThread,
|
|
27959
27991
|
an as Divider,
|
|
27960
|
-
|
|
27961
|
-
|
|
27962
|
-
|
|
27992
|
+
V_ as DownloadSection,
|
|
27993
|
+
kr as EMAILS,
|
|
27994
|
+
K_ as EditSection,
|
|
27963
27995
|
Vp as EmailHelperTextBox,
|
|
27964
27996
|
In as EmptyStateBox,
|
|
27997
|
+
R_ as EnrichedUrl,
|
|
27965
27998
|
Xc as FeatureFlags,
|
|
27966
|
-
|
|
27999
|
+
I_ as Filters,
|
|
27967
28000
|
_m as FlagsProvider,
|
|
27968
28001
|
Kf as Footer,
|
|
27969
28002
|
Dn as Form,
|
|
27970
|
-
|
|
28003
|
+
Z as Formatting,
|
|
27971
28004
|
Nt as Fragment,
|
|
27972
28005
|
qn as FullWidthSection,
|
|
27973
28006
|
Zo as GET_STREAM_USER_PREFIX,
|
|
@@ -27976,17 +28009,17 @@ export {
|
|
|
27976
28009
|
am as HelperTextBox,
|
|
27977
28010
|
Js as HiddenFromScreenReaders,
|
|
27978
28011
|
sm as HideShowTextBox,
|
|
27979
|
-
|
|
28012
|
+
lk as HighlightSection,
|
|
27980
28013
|
Zt as HighlightedTextBox,
|
|
27981
28014
|
Rh as INVALID_TOKEN,
|
|
27982
28015
|
j_ as IconBulletedList,
|
|
27983
28016
|
B_ as ImageContainer,
|
|
27984
28017
|
km as IntlProvider,
|
|
27985
28018
|
FC as InviteForm,
|
|
27986
|
-
|
|
28019
|
+
nk as InviteModal,
|
|
27987
28020
|
pd as JoinButton,
|
|
27988
28021
|
ed as LanguageContext,
|
|
27989
|
-
|
|
28022
|
+
$_ as LanguageSwitcher,
|
|
27990
28023
|
o_ as LessonName,
|
|
27991
28024
|
u_ as LessonType,
|
|
27992
28025
|
Rn as Link,
|
|
@@ -27995,26 +28028,26 @@ export {
|
|
|
27995
28028
|
$t as LoadingPlaceholder,
|
|
27996
28029
|
Yc as LoadingState,
|
|
27997
28030
|
gd as Logo,
|
|
27998
|
-
|
|
28031
|
+
Z_ as LogoSection,
|
|
27999
28032
|
Ih as MENTION_REGEX,
|
|
28000
|
-
|
|
28001
|
-
|
|
28002
|
-
|
|
28033
|
+
mk as MarkCompleteButton,
|
|
28034
|
+
ar as MarkdownText,
|
|
28035
|
+
ck as MarketingBlock,
|
|
28003
28036
|
nn as Marks,
|
|
28004
28037
|
bn as Member,
|
|
28005
|
-
|
|
28038
|
+
J_ as MembersList,
|
|
28006
28039
|
rd as Modal,
|
|
28007
28040
|
Mp as MoreMenu,
|
|
28008
28041
|
k_ as NUMBER_OF_COUNTRIES,
|
|
28009
28042
|
__ as NUMBER_OF_USERS,
|
|
28010
28043
|
Lp as NavigationMenu,
|
|
28011
|
-
|
|
28044
|
+
gk as NotFoundError,
|
|
28012
28045
|
Ln as Overlay,
|
|
28013
28046
|
td as OverlayContext,
|
|
28014
28047
|
Am as OverlayProvider,
|
|
28015
28048
|
pm as PageHeading,
|
|
28016
28049
|
$C as PageLayout,
|
|
28017
|
-
|
|
28050
|
+
U_ as PasswordForm,
|
|
28018
28051
|
rg as PasswordRules,
|
|
28019
28052
|
vn as Pill,
|
|
28020
28053
|
em as Popover,
|
|
@@ -28026,25 +28059,25 @@ export {
|
|
|
28026
28059
|
$n as ProfilePicture,
|
|
28027
28060
|
Kc as ProgressBar,
|
|
28028
28061
|
A_ as ProgressTracker,
|
|
28029
|
-
|
|
28062
|
+
q_ as Rating,
|
|
28030
28063
|
IE as RepliesFeed,
|
|
28031
28064
|
rE as ResponsesHeading,
|
|
28032
28065
|
Yr as ResponsiveImage,
|
|
28033
28066
|
T_ as ReturnToNavButton,
|
|
28034
28067
|
EC as RichTextEditor,
|
|
28035
28068
|
AC as SearchForm,
|
|
28036
|
-
|
|
28037
|
-
|
|
28069
|
+
L_ as ShareLinks,
|
|
28070
|
+
H_ as SignupForm,
|
|
28038
28071
|
ru as Span,
|
|
28039
28072
|
Pi as StatusBanner,
|
|
28040
|
-
|
|
28041
|
-
|
|
28042
|
-
|
|
28043
|
-
|
|
28073
|
+
ak as TableOfContents,
|
|
28074
|
+
z_ as Tabs,
|
|
28075
|
+
Q_ as Tags,
|
|
28076
|
+
ik as TestimonialBlock,
|
|
28044
28077
|
Io as TimeToComplete,
|
|
28045
|
-
|
|
28046
|
-
|
|
28047
|
-
|
|
28078
|
+
W_ as Toggle,
|
|
28079
|
+
hr as Tooltip,
|
|
28080
|
+
G_ as TopLevelPage,
|
|
28048
28081
|
ji as UUID_V4_REGEX,
|
|
28049
28082
|
vt as UserContext,
|
|
28050
28083
|
Fm as UserProvider,
|
|
@@ -28062,18 +28095,18 @@ export {
|
|
|
28062
28095
|
$h as getShortDate,
|
|
28063
28096
|
ao as getValueLength,
|
|
28064
28097
|
Yi as headerData,
|
|
28065
|
-
|
|
28098
|
+
pk as mapGetStreamData,
|
|
28066
28099
|
Yh as pageReady,
|
|
28067
28100
|
Go as passwordValidator,
|
|
28068
|
-
|
|
28101
|
+
ek as repliesFeedMock,
|
|
28069
28102
|
xa as supportedLanguages,
|
|
28070
28103
|
Nh as toCamelCase,
|
|
28071
28104
|
E_ as toCapitalisedCase,
|
|
28072
28105
|
Mh as toSentenceCase,
|
|
28073
28106
|
ym as useBadges,
|
|
28074
28107
|
jh as useCurrentPath,
|
|
28075
|
-
|
|
28076
|
-
|
|
28108
|
+
Ir as useEffectAfterMount,
|
|
28109
|
+
fr as useElementWidth,
|
|
28077
28110
|
Bm as useOverlay,
|
|
28078
28111
|
Oh as useScrollListener,
|
|
28079
28112
|
Ic as useScrollToHash,
|