@apolitical/component-library 5.3.3 → 5.3.4-SW.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/cards/cards.types.d.ts +19 -0
- package/cards/index.d.ts +1 -0
- package/cards/mocks/index.d.ts +1 -0
- package/cards/mocks/narrow-card.d.ts +30 -0
- package/cards/narrow-card/index.d.ts +1 -0
- package/cards/narrow-card/narrow-card.d.ts +3 -0
- package/index.js +20 -20
- package/index.mjs +477 -457
- package/package.json +1 -1
- package/style.css +1 -1
- package/styles/variables/colors/theme/_cards.scss +4 -0
package/index.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import te, { memo as Jt, useState as ue, useEffect as de, useRef as ke, useMemo as Zt, forwardRef as Ys, Children as vs, createContext as kt, useContext as $e, useCallback as Re, lazy as fr, useReducer as hr, useLayoutEffect as ph, Component as gh, Fragment as
|
|
1
|
+
import te, { memo as Jt, useState as ue, useEffect as de, useRef as ke, useMemo as Zt, forwardRef as Ys, Children as vs, createContext as kt, useContext as $e, useCallback as Re, lazy as fr, useReducer as hr, useLayoutEffect as ph, Component as gh, Fragment as Lr, Suspense as Sc } from "react";
|
|
2
2
|
import { useIntl as ce, FormattedMessage as ht, IntlProvider as vh, createIntl as bh } from "react-intl";
|
|
3
3
|
import An from "lodash.clonedeep";
|
|
4
4
|
import yh from "lodash.set";
|
|
@@ -75,7 +75,7 @@ var Mc = { exports: {} };
|
|
|
75
75
|
})();
|
|
76
76
|
})(Mc);
|
|
77
77
|
var Fh = Mc.exports;
|
|
78
|
-
const
|
|
78
|
+
const V = /* @__PURE__ */ Mn(Fh), Ah = ({
|
|
79
79
|
element: e = "span",
|
|
80
80
|
showOnFocus: t = !0,
|
|
81
81
|
children: n,
|
|
@@ -83,14 +83,14 @@ const K = /* @__PURE__ */ Mn(Fh), Ah = ({
|
|
|
83
83
|
...i
|
|
84
84
|
}) => te.createElement(e, {
|
|
85
85
|
...i,
|
|
86
|
-
className:
|
|
86
|
+
className: V("hidden", r, { "show-on-focus": t }),
|
|
87
87
|
children: n
|
|
88
88
|
}), He = Jt(Ah), Bh = ({
|
|
89
89
|
element: e = "span",
|
|
90
90
|
children: t = null,
|
|
91
91
|
...n
|
|
92
92
|
}) => te.createElement(e, { ...n, "aria-hidden": !0 }, t), Js = Jt(Bh);
|
|
93
|
-
var ys = { exports: {} },
|
|
93
|
+
var ys = { exports: {} }, Dr = {};
|
|
94
94
|
/**
|
|
95
95
|
* @license React
|
|
96
96
|
* react-jsx-runtime.production.min.js
|
|
@@ -103,7 +103,7 @@ var ys = { exports: {} }, yr = {};
|
|
|
103
103
|
var Ko;
|
|
104
104
|
function Th() {
|
|
105
105
|
if (Ko)
|
|
106
|
-
return
|
|
106
|
+
return Dr;
|
|
107
107
|
Ko = 1;
|
|
108
108
|
var e = te, 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: m, ref: p, props: h, _owner: i.current };
|
|
118
118
|
}
|
|
119
|
-
return
|
|
119
|
+
return Dr.Fragment = n, Dr.jsx = s, Dr.jsxs = s, Dr;
|
|
120
120
|
}
|
|
121
|
-
var
|
|
121
|
+
var xr = {};
|
|
122
122
|
/**
|
|
123
123
|
* @license React
|
|
124
124
|
* react-jsx-runtime.development.js
|
|
@@ -447,17 +447,17 @@ function Sh() {
|
|
|
447
447
|
}
|
|
448
448
|
function je(N) {
|
|
449
449
|
try {
|
|
450
|
-
return
|
|
450
|
+
return K(N), !1;
|
|
451
451
|
} catch {
|
|
452
452
|
return !0;
|
|
453
453
|
}
|
|
454
454
|
}
|
|
455
|
-
function
|
|
455
|
+
function K(N) {
|
|
456
456
|
return "" + N;
|
|
457
457
|
}
|
|
458
458
|
function se(N) {
|
|
459
459
|
if (je(N))
|
|
460
|
-
return w("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", Ae(N)),
|
|
460
|
+
return w("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", Ae(N)), K(N);
|
|
461
461
|
}
|
|
462
462
|
var pe = v.ReactCurrentOwner, ye = {
|
|
463
463
|
key: !0,
|
|
@@ -557,7 +557,7 @@ function Sh() {
|
|
|
557
557
|
return dt(N, Pe, pt, Ie, Ce, pe.current, Me);
|
|
558
558
|
}
|
|
559
559
|
}
|
|
560
|
-
var
|
|
560
|
+
var yr = v.ReactCurrentOwner, ei = v.ReactDebugCurrentFrame;
|
|
561
561
|
function Un(N) {
|
|
562
562
|
if (N) {
|
|
563
563
|
var ae = N._owner, fe = Fe(N.type, N._source, ae ? ae.type : null);
|
|
@@ -572,8 +572,8 @@ function Sh() {
|
|
|
572
572
|
}
|
|
573
573
|
function zo() {
|
|
574
574
|
{
|
|
575
|
-
if (
|
|
576
|
-
var N = _(
|
|
575
|
+
if (yr.current) {
|
|
576
|
+
var N = _(yr.current.type);
|
|
577
577
|
if (N)
|
|
578
578
|
return `
|
|
579
579
|
|
|
@@ -616,7 +616,7 @@ Check the top-level render call using <` + fe + ">.");
|
|
|
616
616
|
return;
|
|
617
617
|
qo[fe] = !0;
|
|
618
618
|
var Ce = "";
|
|
619
|
-
N && N._owner && N._owner !==
|
|
619
|
+
N && N._owner && N._owner !== yr.current && (Ce = " It was passed a child from " + _(N._owner.type) + "."), Un(N), 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, Ce), Un(null);
|
|
620
620
|
}
|
|
621
621
|
}
|
|
622
622
|
function Uo(N, ae) {
|
|
@@ -712,8 +712,8 @@ Check the top-level render call using <` + fe + ">.");
|
|
|
712
712
|
return Ho(N, ae, fe, !1);
|
|
713
713
|
}
|
|
714
714
|
var hh = fh, mh = dh;
|
|
715
|
-
|
|
716
|
-
}()),
|
|
715
|
+
xr.Fragment = r, xr.jsx = hh, xr.jsxs = mh;
|
|
716
|
+
}()), xr;
|
|
717
717
|
}
|
|
718
718
|
process.env.NODE_ENV === "production" ? ys.exports = Th() : ys.exports = Sh();
|
|
719
719
|
var c = ys.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
|
+
}, zr = (e, t) => {
|
|
729
729
|
const n = ke(!1);
|
|
730
730
|
de(() => {
|
|
731
731
|
n.current ? e() : n.current = !0;
|
|
@@ -855,7 +855,7 @@ const mr = (e = !0, t = !1, n = "window") => {
|
|
|
855
855
|
}, Ic = (e = [], t = !0) => {
|
|
856
856
|
e = Array.isArray(e) ? e : [e];
|
|
857
857
|
const n = ke(!1);
|
|
858
|
-
|
|
858
|
+
zr(() => {
|
|
859
859
|
if (window && window.location && window.location.hash) {
|
|
860
860
|
if (n.current)
|
|
861
861
|
return;
|
|
@@ -913,7 +913,7 @@ const Yo = {}, pr = Ys(
|
|
|
913
913
|
const O = ({ propertyName: A }) => {
|
|
914
914
|
A === "opacity" && (L !== !1 && clearTimeout(L), b((_) => (_ === "open" ? B() : _ === "closed" && D(), _ === "opening" ? "open" : _ === "closing" ? "closed" : _ === "closed" ? "hidden" : _)));
|
|
915
915
|
};
|
|
916
|
-
|
|
916
|
+
zr(() => {
|
|
917
917
|
L !== !1 && clearTimeout(L);
|
|
918
918
|
let A = "open";
|
|
919
919
|
n ? b("opening") : (b("closing"), A = "hidden"), Yo[m || ""] = setTimeout(() => {
|
|
@@ -928,11 +928,11 @@ const Yo = {}, pr = Ys(
|
|
|
928
928
|
const $ = {
|
|
929
929
|
className: "content"
|
|
930
930
|
};
|
|
931
|
-
return C ? $.className =
|
|
931
|
+
return C ? $.className = V("content", { hidden: f === "hidden" }) : $.hidden = f === "hidden", /* @__PURE__ */ c.jsx(
|
|
932
932
|
"aside",
|
|
933
933
|
{
|
|
934
934
|
ref: g,
|
|
935
|
-
className:
|
|
935
|
+
className: V("tooltip text-medium", f, a, {
|
|
936
936
|
loading: r,
|
|
937
937
|
"extra-padding": v,
|
|
938
938
|
"has-pointer": w,
|
|
@@ -966,7 +966,7 @@ const Yo = {}, pr = Ys(
|
|
|
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), O_ = (e = "") => e.replace(/(?:^\w|[A-Z]|\b\w)/g, (t) => t.toUpperCase()), sn = "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), O_ = (e = "") => e.replace(/(?:^\w|[A-Z]|\b\w)/g, (t) => t.toUpperCase()), sn = "https://storage.googleapis.com/apolitical-assets/", Br = {
|
|
970
970
|
general: "hello@apolitical.co",
|
|
971
971
|
support: "concierge@apolitical.co",
|
|
972
972
|
"data-protection": {
|
|
@@ -1689,7 +1689,7 @@ const Se = ({
|
|
|
1689
1689
|
typeof t == "string" && v.push(t), r && (v.push("icon"), typeof r == "object" ? (v.push(r.icon), r.position ? v.push(r.position) : v.push("left"), r.hover && v.push(`hover_${r.hover}`), r.animate && (v.push("animate"), typeof r.animate == "string" && v.push(r.animate))) : (v.push(r), !r.includes("right") && !r.includes("left") && v.push("left"))), n.muted && v.push("muted"), n.fullWidth && v.push("full-width");
|
|
1690
1690
|
const w = {
|
|
1691
1691
|
...m,
|
|
1692
|
-
className:
|
|
1692
|
+
className: V(e, o, v, {
|
|
1693
1693
|
"no-text": !h,
|
|
1694
1694
|
disabled: l,
|
|
1695
1695
|
button: i
|
|
@@ -1716,20 +1716,20 @@ const Se = ({
|
|
|
1716
1716
|
),
|
|
1717
1717
|
E
|
|
1718
1718
|
] }) : E;
|
|
1719
|
-
},
|
|
1719
|
+
}, Gr = ({ buttons: e, wrappers: t = [], className: n = "", ...r }) => {
|
|
1720
1720
|
const i = e.length > 1 ? "ul" : "p", a = e.map((s, o) => {
|
|
1721
1721
|
var l;
|
|
1722
1722
|
return i === "p" ? /* @__PURE__ */ c.jsx(Se, { ...s }, o) : /* @__PURE__ */ c.jsx("li", { className: ((l = t[o]) == null ? void 0 : l.className) || "", children: /* @__PURE__ */ c.jsx(Se, { ...s }) }, o);
|
|
1723
1723
|
});
|
|
1724
1724
|
return te.createElement(i, {
|
|
1725
|
-
className:
|
|
1725
|
+
className: V("button-wrapper", n),
|
|
1726
1726
|
...r,
|
|
1727
1727
|
children: a
|
|
1728
1728
|
});
|
|
1729
1729
|
};
|
|
1730
1730
|
const on = ({ className: e = "", maxWidth: t = !1 }) => {
|
|
1731
1731
|
const n = t ? { "--max-width": `${t / 16}rem` } : {};
|
|
1732
|
-
return /* @__PURE__ */ c.jsx("hr", { className:
|
|
1732
|
+
return /* @__PURE__ */ c.jsx("hr", { className: V(e, { "has-max-width": t }), style: n });
|
|
1733
1733
|
}, Xo = {
|
|
1734
1734
|
card: {
|
|
1735
1735
|
range: [
|
|
@@ -1870,7 +1870,7 @@ const on = ({ className: e = "", maxWidth: t = !1 }) => {
|
|
|
1870
1870
|
query: r,
|
|
1871
1871
|
width: a
|
|
1872
1872
|
})} ${a}w`).join(", ");
|
|
1873
|
-
const
|
|
1873
|
+
const vr = ({ image: e, className: t, testId: n }) => {
|
|
1874
1874
|
const {
|
|
1875
1875
|
description: r,
|
|
1876
1876
|
height: i,
|
|
@@ -1927,7 +1927,7 @@ const R_ = ({ image: e, className: t = "", testId: n }) => /* @__PURE__ */ c.jsx
|
|
|
1927
1927
|
{
|
|
1928
1928
|
className: `image-container ${t}`,
|
|
1929
1929
|
"data-testid": n || "image-container",
|
|
1930
|
-
children: e && /* @__PURE__ */ c.jsx(
|
|
1930
|
+
children: e && /* @__PURE__ */ c.jsx(vr, { image: { ...e }, className: "image" })
|
|
1931
1931
|
}
|
|
1932
1932
|
), Rn = ({
|
|
1933
1933
|
href: e,
|
|
@@ -1941,7 +1941,7 @@ const R_ = ({ image: e, className: t = "", testId: n }) => /* @__PURE__ */ c.jsx
|
|
|
1941
1941
|
}) => {
|
|
1942
1942
|
if (e) {
|
|
1943
1943
|
const l = { ...o };
|
|
1944
|
-
return i && (l.onClick = i), a && (l["data-gtm-event-context"] = a), s && (l["data-gtm-event-type"] = s), /* @__PURE__ */ c.jsx("a", { href: e, className:
|
|
1944
|
+
return i && (l.onClick = i), a && (l["data-gtm-event-context"] = a), s && (l["data-gtm-event-type"] = s), /* @__PURE__ */ c.jsx("a", { href: e, className: V("gtm-trackable", r), ...l, children: t });
|
|
1945
1945
|
}
|
|
1946
1946
|
return n ? te.createElement(n, { children: t, className: r, ...o }) : /* @__PURE__ */ c.jsx(c.Fragment, { children: t });
|
|
1947
1947
|
};
|
|
@@ -1952,7 +1952,7 @@ const em = Ys(
|
|
|
1952
1952
|
"aside",
|
|
1953
1953
|
{
|
|
1954
1954
|
ref: i,
|
|
1955
|
-
className:
|
|
1955
|
+
className: V("popover", e),
|
|
1956
1956
|
"aria-live": "polite",
|
|
1957
1957
|
children: t
|
|
1958
1958
|
}
|
|
@@ -1979,7 +1979,7 @@ const $_ = ({ currentStep: e = 1, steps: t = 1 }) => /* @__PURE__ */ c.jsxs(c.Fr
|
|
|
1979
1979
|
/* @__PURE__ */ c.jsx(
|
|
1980
1980
|
"div",
|
|
1981
1981
|
{
|
|
1982
|
-
className:
|
|
1982
|
+
className: V("dot", {
|
|
1983
1983
|
active: i === e,
|
|
1984
1984
|
completed: i < e
|
|
1985
1985
|
}),
|
|
@@ -1989,7 +1989,7 @@ const $_ = ({ currentStep: e = 1, steps: t = 1 }) => /* @__PURE__ */ c.jsxs(c.Fr
|
|
|
1989
1989
|
/* @__PURE__ */ c.jsx(
|
|
1990
1990
|
"div",
|
|
1991
1991
|
{
|
|
1992
|
-
className:
|
|
1992
|
+
className: V("line", {
|
|
1993
1993
|
active: i < e
|
|
1994
1994
|
})
|
|
1995
1995
|
}
|
|
@@ -2019,7 +2019,7 @@ const I_ = ({ elementId: e, offset: t = 20 }) => {
|
|
|
2019
2019
|
}
|
|
2020
2020
|
);
|
|
2021
2021
|
};
|
|
2022
|
-
const L_ = ({ items: e, className: t = "", ...n }) => /* @__PURE__ */ c.jsx("ul", { className:
|
|
2022
|
+
const L_ = ({ items: e, className: t = "", ...n }) => /* @__PURE__ */ c.jsx("ul", { className: V("buckets", t), ...n, children: e.map(({ title: r, text: i, link: a, ...s }, o) => /* @__PURE__ */ c.jsx("li", { className: "bucket text-medium", children: /* @__PURE__ */ c.jsxs("a", { href: a, ...s, children: [
|
|
2023
2023
|
/* @__PURE__ */ c.jsx("p", { className: "title", children: r }),
|
|
2024
2024
|
/* @__PURE__ */ c.jsx("p", { children: i })
|
|
2025
2025
|
] }) }, o)) }), eu = 300, tu = "ease-in-out";
|
|
@@ -2082,7 +2082,7 @@ const eo = ({
|
|
|
2082
2082
|
"details",
|
|
2083
2083
|
{
|
|
2084
2084
|
ref: a,
|
|
2085
|
-
className:
|
|
2085
|
+
className: V("collapsible-section", t, {
|
|
2086
2086
|
"should-animate": r
|
|
2087
2087
|
}),
|
|
2088
2088
|
children: [
|
|
@@ -2119,7 +2119,7 @@ const ru = {
|
|
|
2119
2119
|
return !n && !s ? null : /* @__PURE__ */ c.jsx(
|
|
2120
2120
|
"small",
|
|
2121
2121
|
{
|
|
2122
|
-
className:
|
|
2122
|
+
className: V(
|
|
2123
2123
|
"content-type-label text-small",
|
|
2124
2124
|
e in ru ? ru[e] : e,
|
|
2125
2125
|
r,
|
|
@@ -2145,7 +2145,7 @@ const Gt = ({
|
|
|
2145
2145
|
return /* @__PURE__ */ c.jsx(
|
|
2146
2146
|
"div",
|
|
2147
2147
|
{
|
|
2148
|
-
className:
|
|
2148
|
+
className: V("highlighted-text-box", e, r, {
|
|
2149
2149
|
"has-icon": t,
|
|
2150
2150
|
"show-highlight": s,
|
|
2151
2151
|
[o]: o !== "default"
|
|
@@ -2178,7 +2178,7 @@ const $n = ({
|
|
|
2178
2178
|
Gt,
|
|
2179
2179
|
{
|
|
2180
2180
|
variant: "subtle",
|
|
2181
|
-
className:
|
|
2181
|
+
className: V("empty-state-box", e, r),
|
|
2182
2182
|
children: /* @__PURE__ */ c.jsxs(c.Fragment, { children: [
|
|
2183
2183
|
t && typeof t == "string" ? /* @__PURE__ */ c.jsx(Yt, { options: { forceBlock: !0 }, children: t }) : t,
|
|
2184
2184
|
i && typeof n == "object" && (u || /* @__PURE__ */ c.jsx(
|
|
@@ -2202,7 +2202,7 @@ const am = ({
|
|
|
2202
2202
|
heading: n = !1,
|
|
2203
2203
|
children: r,
|
|
2204
2204
|
...i
|
|
2205
|
-
}) => /* @__PURE__ */ c.jsxs("div", { ...i, className:
|
|
2205
|
+
}) => /* @__PURE__ */ c.jsxs("div", { ...i, className: V("helper-text-box text-small", e, t), children: [
|
|
2206
2206
|
n && /* @__PURE__ */ c.jsx("p", { className: "title", children: n }),
|
|
2207
2207
|
typeof r == "string" ? /* @__PURE__ */ c.jsx(
|
|
2208
2208
|
Yt,
|
|
@@ -2254,14 +2254,14 @@ const sm = ({
|
|
|
2254
2254
|
Gt,
|
|
2255
2255
|
{
|
|
2256
2256
|
variant: "subtle",
|
|
2257
|
-
className:
|
|
2257
|
+
className: V("hide-show-text-box", t),
|
|
2258
2258
|
children: [
|
|
2259
2259
|
/* @__PURE__ */ c.jsx(
|
|
2260
2260
|
"div",
|
|
2261
2261
|
{
|
|
2262
2262
|
ref: u,
|
|
2263
2263
|
id: e,
|
|
2264
|
-
className:
|
|
2264
|
+
className: V("content", m, s),
|
|
2265
2265
|
children: i ? /* @__PURE__ */ c.jsxs(c.Fragment, { children: [
|
|
2266
2266
|
/* @__PURE__ */ c.jsx(Yt, { options: { forceBlock: !0, ...a }, children: m === "closed" ? d : i }),
|
|
2267
2267
|
m !== "closed" && o
|
|
@@ -2274,7 +2274,7 @@ const sm = ({
|
|
|
2274
2274
|
variant: "tertiary",
|
|
2275
2275
|
icon: { icon: "navigation_arrow", position: "left", animate: !0 },
|
|
2276
2276
|
styling: { muted: !0 },
|
|
2277
|
-
className:
|
|
2277
|
+
className: V({ "rotate-180": f }),
|
|
2278
2278
|
onClick: () => {
|
|
2279
2279
|
p(f ? "ready-to-close" : "opening");
|
|
2280
2280
|
},
|
|
@@ -2297,7 +2297,7 @@ const z_ = ({
|
|
|
2297
2297
|
}) => {
|
|
2298
2298
|
const { hasBorder: s = !1, zebraStriping: o = !1 } = i;
|
|
2299
2299
|
return te.createElement(e, {
|
|
2300
|
-
className:
|
|
2300
|
+
className: V("icon-bulleted-list text-medium", n, a, {
|
|
2301
2301
|
"has-border": s,
|
|
2302
2302
|
"has-zebra-stripes": o,
|
|
2303
2303
|
[t]: e !== "dl"
|
|
@@ -2423,7 +2423,7 @@ const z_ = ({
|
|
|
2423
2423
|
"@",
|
|
2424
2424
|
n.formatMessage({ id: "member_deleted" })
|
|
2425
2425
|
] })) : a ? (r = { ...r, className: "button primary medium" }, /* @__PURE__ */ c.jsx("p", { className: "center", children: /* @__PURE__ */ c.jsx(Se, { variant: "primary", size: "medium", ...r, children: i }) })) : /* @__PURE__ */ c.jsx("a", { ...r, children: i });
|
|
2426
|
-
}, au = ({ children: e, ...t }) => /* @__PURE__ */ c.jsx("span", { className:
|
|
2426
|
+
}, au = ({ children: e, ...t }) => /* @__PURE__ */ c.jsx("span", { className: V({ url: t == null ? void 0 : t.href }), children: e });
|
|
2427
2427
|
const mm = {
|
|
2428
2428
|
default: {
|
|
2429
2429
|
a: hm,
|
|
@@ -2475,7 +2475,7 @@ const mm = {
|
|
|
2475
2475
|
};
|
|
2476
2476
|
let l = mm[i];
|
|
2477
2477
|
return n.overrides && (l = { ...l, ...n.overrides }), te.createElement(e, {
|
|
2478
|
-
className:
|
|
2478
|
+
className: V("markdown-text", t, {
|
|
2479
2479
|
"highlight-titles": s
|
|
2480
2480
|
}),
|
|
2481
2481
|
children: /* @__PURE__ */ c.jsx(Yt, { options: { ...o, ...n, overrides: l }, children: r })
|
|
@@ -2489,8 +2489,8 @@ const pm = ({
|
|
|
2489
2489
|
className: i = ""
|
|
2490
2490
|
}) => {
|
|
2491
2491
|
const a = e ? { "--max-width": `${e / 16}rem` } : {};
|
|
2492
|
-
return /* @__PURE__ */ c.jsxs("section", { className:
|
|
2493
|
-
/* @__PURE__ */ c.jsxs("div", { className:
|
|
2492
|
+
return /* @__PURE__ */ c.jsxs("section", { className: V("page-heading", i), children: [
|
|
2493
|
+
/* @__PURE__ */ c.jsxs("div", { className: V("content", { "has-max-width": e }), style: a, children: [
|
|
2494
2494
|
t && t.text && te.createElement(t.element || "h1", { className: "title" }, t.text),
|
|
2495
2495
|
n && n.text && te.createElement(
|
|
2496
2496
|
n.element || "h2",
|
|
@@ -2514,7 +2514,7 @@ const an = ({
|
|
|
2514
2514
|
const l = {
|
|
2515
2515
|
"--icon": `url(${sn}icons/${r}.svg)`
|
|
2516
2516
|
}, { showTooltip: u, tooltipProps: d } = Lc(!!i), h = te.createElement(s, {
|
|
2517
|
-
className:
|
|
2517
|
+
className: V("pill", e, t, n, {
|
|
2518
2518
|
"has-icon": r
|
|
2519
2519
|
}),
|
|
2520
2520
|
style: l,
|
|
@@ -2543,7 +2543,7 @@ const Ri = ({
|
|
|
2543
2543
|
e,
|
|
2544
2544
|
{
|
|
2545
2545
|
...r,
|
|
2546
|
-
className:
|
|
2546
|
+
className: V("status-banner text-small", n),
|
|
2547
2547
|
"aria-live": "assertive"
|
|
2548
2548
|
},
|
|
2549
2549
|
t
|
|
@@ -2675,7 +2675,7 @@ const Am = ({ slug: e }) => {
|
|
|
2675
2675
|
return /* @__PURE__ */ c.jsx(
|
|
2676
2676
|
an,
|
|
2677
2677
|
{
|
|
2678
|
-
className:
|
|
2678
|
+
className: V("user-badge", a == null ? void 0 : a.toLowerCase()),
|
|
2679
2679
|
icon: i && Fm[i],
|
|
2680
2680
|
element: "li",
|
|
2681
2681
|
tooltip: s,
|
|
@@ -2711,7 +2711,7 @@ const Tm = ({
|
|
|
2711
2711
|
return /* @__PURE__ */ c.jsx(
|
|
2712
2712
|
"span",
|
|
2713
2713
|
{
|
|
2714
|
-
className:
|
|
2714
|
+
className: V(`progress-bar section-${u}`, s, r, {
|
|
2715
2715
|
[o]: o !== "default",
|
|
2716
2716
|
[l !== "default" ? l : ""]: l !== "default"
|
|
2717
2717
|
}),
|
|
@@ -2740,7 +2740,7 @@ const xa = "loadingBlock_", Sm = ({ progress: e = 0, steps: t = !1, className: n
|
|
|
2740
2740
|
return /* @__PURE__ */ c.jsxs(
|
|
2741
2741
|
Gt,
|
|
2742
2742
|
{
|
|
2743
|
-
className:
|
|
2743
|
+
className: V("loading-block", n, {
|
|
2744
2744
|
"has-icon": i && t[i].icon
|
|
2745
2745
|
}),
|
|
2746
2746
|
variant: "subtle",
|
|
@@ -2756,7 +2756,7 @@ const zt = ({ element: e = "div", className: t = "", ...n }) => /* @__PURE__ */
|
|
|
2756
2756
|
Js,
|
|
2757
2757
|
{
|
|
2758
2758
|
element: e,
|
|
2759
|
-
className:
|
|
2759
|
+
className: V("loading-placeholder", t),
|
|
2760
2760
|
...n
|
|
2761
2761
|
}
|
|
2762
2762
|
);
|
|
@@ -2810,7 +2810,7 @@ const ws = {
|
|
|
2810
2810
|
"course-navigation": ["button", "button"],
|
|
2811
2811
|
"course-lesson-page": ["breadcrumb", "course-navigation", "text-page"],
|
|
2812
2812
|
"course-lesson-quiz": ["text-page", "quiz-box"]
|
|
2813
|
-
}, ed = (e, t) => e in ws ? /* @__PURE__ */ c.jsx("div", { className: e, children: ws[e].map((n, r) => ed(n, r)) }, t) : /* @__PURE__ */ c.jsx(zt, { className: e }, t), no = ({ layout: e = "overview-page", ...t }) => /* @__PURE__ */ c.jsx("div", { className:
|
|
2813
|
+
}, ed = (e, t) => e in ws ? /* @__PURE__ */ c.jsx("div", { className: e, children: ws[e].map((n, r) => ed(n, r)) }, t) : /* @__PURE__ */ c.jsx(zt, { className: e }, t), no = ({ layout: e = "overview-page", ...t }) => /* @__PURE__ */ c.jsx("div", { className: V("loading-state", e), ...t, children: ws[e].map((n, r) => ed(n, r)) }), td = (e) => {
|
|
2814
2814
|
const t = e && e.toUpperCase().trim().split(" ");
|
|
2815
2815
|
return Array.isArray(t) && t.length > 1 && t[0] !== "" ? t[1] === "" ? t[0][0] : t[0][0] + t[t.length - 1][0] : e ? e.substr(0, 1) : "";
|
|
2816
2816
|
}, ri = ["#5AB6A3", "#A2D7AF", "#806056", "#3962B3"], jm = (e) => {
|
|
@@ -2847,7 +2847,7 @@ const su = 256, In = ({
|
|
|
2847
2847
|
return t && t !== "" && !l && (t.includes("http") || t.includes("//")) && (m = !0), /* @__PURE__ */ c.jsx(
|
|
2848
2848
|
"figure",
|
|
2849
2849
|
{
|
|
2850
|
-
className:
|
|
2850
|
+
className: V("profile-picture", e, { error: l }),
|
|
2851
2851
|
...o,
|
|
2852
2852
|
children: m ? /* @__PURE__ */ c.jsx(
|
|
2853
2853
|
"img",
|
|
@@ -2922,7 +2922,7 @@ const yn = ({
|
|
|
2922
2922
|
const z = Om(C), $ = r && r.createdAt ? Ds(r.createdAt) : !1, A = r && r.createdAt ? Wc(r.createdAt) : "";
|
|
2923
2923
|
return te.createElement(e, {
|
|
2924
2924
|
...d,
|
|
2925
|
-
className:
|
|
2925
|
+
className: V("member text-medium", g, f, l, {
|
|
2926
2926
|
"has-profile-link": E
|
|
2927
2927
|
}),
|
|
2928
2928
|
...p,
|
|
@@ -2950,7 +2950,7 @@ const yn = ({
|
|
|
2950
2950
|
/* @__PURE__ */ c.jsxs(
|
|
2951
2951
|
"div",
|
|
2952
2952
|
{
|
|
2953
|
-
className:
|
|
2953
|
+
className: V("name", { "new-line": v }),
|
|
2954
2954
|
"data-testid": "member-name",
|
|
2955
2955
|
children: [
|
|
2956
2956
|
/* @__PURE__ */ c.jsx("span", { children: S }),
|
|
@@ -2958,7 +2958,7 @@ const yn = ({
|
|
|
2958
2958
|
r && /* @__PURE__ */ c.jsxs(
|
|
2959
2959
|
"span",
|
|
2960
2960
|
{
|
|
2961
|
-
className:
|
|
2961
|
+
className: V("additional-content", {
|
|
2962
2962
|
"new-line": v
|
|
2963
2963
|
}),
|
|
2964
2964
|
children: [
|
|
@@ -2986,7 +2986,7 @@ const yn = ({
|
|
|
2986
2986
|
z && !v && /* @__PURE__ */ c.jsx(
|
|
2987
2987
|
"small",
|
|
2988
2988
|
{
|
|
2989
|
-
className:
|
|
2989
|
+
className: V({ "text-medium": g === "large" }),
|
|
2990
2990
|
"data-testid": "member-details",
|
|
2991
2991
|
children: b ? z : /* @__PURE__ */ c.jsxs(c.Fragment, { children: [
|
|
2992
2992
|
C.role,
|
|
@@ -3055,7 +3055,7 @@ const ou = {
|
|
|
3055
3055
|
const h = ce();
|
|
3056
3056
|
return !n || n.length === 0 ? null : te.createElement(e, {
|
|
3057
3057
|
...d,
|
|
3058
|
-
className:
|
|
3058
|
+
className: V("contributors", u, i, { "has-gap": a }),
|
|
3059
3059
|
children: /* @__PURE__ */ c.jsxs(c.Fragment, { children: [
|
|
3060
3060
|
/* @__PURE__ */ c.jsx("ul", { children: n.map((m, p) => {
|
|
3061
3061
|
let g, f = "";
|
|
@@ -3077,7 +3077,7 @@ const ou = {
|
|
|
3077
3077
|
g = /* @__PURE__ */ c.jsxs(
|
|
3078
3078
|
"small",
|
|
3079
3079
|
{
|
|
3080
|
-
className:
|
|
3080
|
+
className: V({ "large-number": b > 99 }),
|
|
3081
3081
|
children: [
|
|
3082
3082
|
"+",
|
|
3083
3083
|
Zh(b, 0)
|
|
@@ -3085,14 +3085,14 @@ const ou = {
|
|
|
3085
3085
|
}
|
|
3086
3086
|
), f = "number-left";
|
|
3087
3087
|
}
|
|
3088
|
-
return g ? /* @__PURE__ */ c.jsx("li", { className:
|
|
3088
|
+
return g ? /* @__PURE__ */ c.jsx("li", { className: V("contributor", f), children: g }, p) : null;
|
|
3089
3089
|
}) }),
|
|
3090
3090
|
r && /* @__PURE__ */ c.jsx("span", { className: "label", children: typeof r == "string" ? r : n.length === 1 ? typeof n[0] == "string" ? h.formatMessage({ id: `member_${n[0]}` }) : ar(n[0].name || "", 20) : l || null })
|
|
3091
3091
|
] })
|
|
3092
3092
|
});
|
|
3093
3093
|
};
|
|
3094
3094
|
const rd = ({ element: e = "section", children: t, className: n, ...r }) => te.createElement(e, {
|
|
3095
|
-
className:
|
|
3095
|
+
className: V("modal", n),
|
|
3096
3096
|
children: typeof t == "string" ? /* @__PURE__ */ c.jsx("p", { children: t }) : t,
|
|
3097
3097
|
...r
|
|
3098
3098
|
});
|
|
@@ -4028,12 +4028,12 @@ var Du = {
|
|
|
4028
4028
|
return t.tagName && t.tagName.toLowerCase() === "input" && typeof t.select == "function";
|
|
4029
4029
|
}, fp = function(t) {
|
|
4030
4030
|
return (t == null ? void 0 : t.key) === "Escape" || (t == null ? void 0 : t.key) === "Esc" || (t == null ? void 0 : t.keyCode) === 27;
|
|
4031
|
-
},
|
|
4031
|
+
}, jr = function(t) {
|
|
4032
4032
|
return (t == null ? void 0 : t.key) === "Tab" || (t == null ? void 0 : t.keyCode) === 9;
|
|
4033
4033
|
}, hp = function(t) {
|
|
4034
|
-
return
|
|
4034
|
+
return jr(t) && !t.shiftKey;
|
|
4035
4035
|
}, mp = function(t) {
|
|
4036
|
-
return
|
|
4036
|
+
return jr(t) && t.shiftKey;
|
|
4037
4037
|
}, xu = function(t) {
|
|
4038
4038
|
return setTimeout(t, 0);
|
|
4039
4039
|
}, wu = function(t, n) {
|
|
@@ -4041,7 +4041,7 @@ var Du = {
|
|
|
4041
4041
|
return t.every(function(i, a) {
|
|
4042
4042
|
return n(i) ? (r = a, !1) : !0;
|
|
4043
4043
|
}), r;
|
|
4044
|
-
},
|
|
4044
|
+
}, wr = function(t) {
|
|
4045
4045
|
for (var n = arguments.length, r = new Array(n > 1 ? n - 1 : 0), i = 1; i < n; i++)
|
|
4046
4046
|
r[i - 1] = arguments[i];
|
|
4047
4047
|
return typeof t == "function" ? t.apply(void 0, r) : t;
|
|
@@ -4223,7 +4223,7 @@ var Du = {
|
|
|
4223
4223
|
var I = x === 0 ? s.tabbableGroups.length - 1 : x - 1, ie = s.tabbableGroups[I];
|
|
4224
4224
|
U = gn(_) >= 0 ? ie.lastTabbableNode : ie.lastDomTabbableNode;
|
|
4225
4225
|
} else
|
|
4226
|
-
|
|
4226
|
+
jr(T) || (U = re.nextTabbableNode(_, !1));
|
|
4227
4227
|
} else {
|
|
4228
4228
|
var F = wu(s.tabbableGroups, function(j) {
|
|
4229
4229
|
var q = j.lastTabbableNode;
|
|
@@ -4233,7 +4233,7 @@ var Du = {
|
|
|
4233
4233
|
var k = F === s.tabbableGroups.length - 1 ? 0 : F + 1, P = s.tabbableGroups[k];
|
|
4234
4234
|
U = gn(_) >= 0 ? P.firstTabbableNode : P.firstDomTabbableNode;
|
|
4235
4235
|
} else
|
|
4236
|
-
|
|
4236
|
+
jr(T) || (U = re.nextTabbableNode(_));
|
|
4237
4237
|
}
|
|
4238
4238
|
} else
|
|
4239
4239
|
U = d("fallbackFocus");
|
|
@@ -4241,7 +4241,7 @@ var Du = {
|
|
|
4241
4241
|
}, v = function(A) {
|
|
4242
4242
|
var _ = si(A);
|
|
4243
4243
|
if (!(u(_, A) >= 0)) {
|
|
4244
|
-
if (
|
|
4244
|
+
if (wr(a.clickOutsideDeactivates, A)) {
|
|
4245
4245
|
o.deactivate({
|
|
4246
4246
|
// NOTE: by setting `returnFocus: false`, deactivate() will do nothing,
|
|
4247
4247
|
// which will result in the outside click setting focus to the node
|
|
@@ -4253,7 +4253,7 @@ var Du = {
|
|
|
4253
4253
|
});
|
|
4254
4254
|
return;
|
|
4255
4255
|
}
|
|
4256
|
-
|
|
4256
|
+
wr(a.allowOutsideClick, A) || A.preventDefault();
|
|
4257
4257
|
}
|
|
4258
4258
|
}, w = function(A) {
|
|
4259
4259
|
var _ = si(A), T = u(_, A) >= 0;
|
|
@@ -4294,16 +4294,16 @@ var Du = {
|
|
|
4294
4294
|
event: A,
|
|
4295
4295
|
isBackward: _
|
|
4296
4296
|
});
|
|
4297
|
-
T && (
|
|
4297
|
+
T && (jr(A) && A.preventDefault(), g(T));
|
|
4298
4298
|
}, B = function(A) {
|
|
4299
|
-
if (fp(A) &&
|
|
4299
|
+
if (fp(A) && wr(a.escapeDeactivates, A) !== !1) {
|
|
4300
4300
|
A.preventDefault(), o.deactivate();
|
|
4301
4301
|
return;
|
|
4302
4302
|
}
|
|
4303
4303
|
(a.isKeyForward(A) || a.isKeyBackward(A)) && E(A, a.isKeyBackward(A));
|
|
4304
4304
|
}, D = function(A) {
|
|
4305
4305
|
var _ = si(A);
|
|
4306
|
-
u(_, A) >= 0 ||
|
|
4306
|
+
u(_, A) >= 0 || wr(a.clickOutsideDeactivates, A) || wr(a.allowOutsideClick, A) || (A.preventDefault(), A.stopImmediatePropagation());
|
|
4307
4307
|
}, C = function() {
|
|
4308
4308
|
if (s.active)
|
|
4309
4309
|
return Du.activateTrap(i, o), s.delayInitialFocusTimer = a.delayInitialFocus ? xu(function() {
|
|
@@ -4447,9 +4447,9 @@ function Ep(e, t) {
|
|
|
4447
4447
|
return t;
|
|
4448
4448
|
if (t !== void 0)
|
|
4449
4449
|
throw new TypeError("Derived constructors may only return object or undefined");
|
|
4450
|
-
return
|
|
4450
|
+
return Tr(e);
|
|
4451
4451
|
}
|
|
4452
|
-
function
|
|
4452
|
+
function Tr(e) {
|
|
4453
4453
|
if (e === void 0)
|
|
4454
4454
|
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
4455
4455
|
return e;
|
|
@@ -4495,7 +4495,7 @@ var oi = te, De = Hm, Ap = bp, Bp = Ap.createFocusTrap, Tp = yp, Sp = Tp.isFocus
|
|
|
4495
4495
|
var t = Cp(n);
|
|
4496
4496
|
function n(r) {
|
|
4497
4497
|
var i;
|
|
4498
|
-
Dp(this, n), i = t.call(this, r), kp(
|
|
4498
|
+
Dp(this, n), i = t.call(this, r), kp(Tr(i), "getNodeForOption", function(o) {
|
|
4499
4499
|
var l, u = (l = this.internalOptions[o]) !== null && l !== void 0 ? l : this.originalOptions[o];
|
|
4500
4500
|
if (typeof u == "function") {
|
|
4501
4501
|
for (var d = arguments.length, h = new Array(d > 1 ? d - 1 : 0), m = 1; m < d; m++)
|
|
@@ -4514,7 +4514,7 @@ var oi = te, De = Hm, Ap = bp, Bp = Ap.createFocusTrap, Tp = yp, Sp = Tp.isFocus
|
|
|
4514
4514
|
throw new Error("`".concat(o, "` as selector refers to no known node"));
|
|
4515
4515
|
}
|
|
4516
4516
|
return p;
|
|
4517
|
-
}), i.handleDeactivate = i.handleDeactivate.bind(
|
|
4517
|
+
}), i.handleDeactivate = i.handleDeactivate.bind(Tr(i)), i.handlePostDeactivate = i.handlePostDeactivate.bind(Tr(i)), i.handleClickOutsideDeactivates = i.handleClickOutsideDeactivates.bind(Tr(i)), i.internalOptions = {
|
|
4518
4518
|
// We need to hijack the returnFocusOnDeactivate option,
|
|
4519
4519
|
// because React can move focus into the element before we arrived at
|
|
4520
4520
|
// this lifecycle hook (e.g. with autoFocus inputs). So the component
|
|
@@ -4677,7 +4677,7 @@ var oi = te, De = Hm, Ap = bp, Bp = Ap.createFocusTrap, Tp = yp, Sp = Tp.isFocus
|
|
|
4677
4677
|
return null;
|
|
4678
4678
|
}
|
|
4679
4679
|
}]), n;
|
|
4680
|
-
}(oi.Component),
|
|
4680
|
+
}(oi.Component), Cr = typeof Element > "u" ? Function : Element;
|
|
4681
4681
|
ao.propTypes = {
|
|
4682
4682
|
active: De.bool,
|
|
4683
4683
|
paused: De.bool,
|
|
@@ -4693,9 +4693,9 @@ ao.propTypes = {
|
|
|
4693
4693
|
onDeactivate: De.func,
|
|
4694
4694
|
onPostDeactivate: De.func,
|
|
4695
4695
|
checkCanReturnFocus: De.func,
|
|
4696
|
-
initialFocus: De.oneOfType([De.instanceOf(
|
|
4696
|
+
initialFocus: De.oneOfType([De.instanceOf(Cr), De.string, De.bool, De.func]),
|
|
4697
4697
|
fallbackFocus: De.oneOfType([
|
|
4698
|
-
De.instanceOf(
|
|
4698
|
+
De.instanceOf(Cr),
|
|
4699
4699
|
De.string,
|
|
4700
4700
|
// NOTE: does not support `false` as value (or return value from function)
|
|
4701
4701
|
De.func
|
|
@@ -4703,7 +4703,7 @@ ao.propTypes = {
|
|
|
4703
4703
|
escapeDeactivates: De.oneOfType([De.bool, De.func]),
|
|
4704
4704
|
clickOutsideDeactivates: De.oneOfType([De.bool, De.func]),
|
|
4705
4705
|
returnFocusOnDeactivate: De.bool,
|
|
4706
|
-
setReturnFocus: De.oneOfType([De.instanceOf(
|
|
4706
|
+
setReturnFocus: De.oneOfType([De.instanceOf(Cr), De.string, De.bool, De.func]),
|
|
4707
4707
|
allowOutsideClick: De.oneOfType([De.bool, De.func]),
|
|
4708
4708
|
preventScroll: De.bool,
|
|
4709
4709
|
tabbableOptions: De.shape({
|
|
@@ -4714,12 +4714,12 @@ ao.propTypes = {
|
|
|
4714
4714
|
isKeyForward: De.func,
|
|
4715
4715
|
isKeyBackward: De.func
|
|
4716
4716
|
}),
|
|
4717
|
-
containerElements: De.arrayOf(De.instanceOf(
|
|
4717
|
+
containerElements: De.arrayOf(De.instanceOf(Cr)),
|
|
4718
4718
|
// DOM element ONLY
|
|
4719
4719
|
children: De.oneOfType([
|
|
4720
4720
|
De.element,
|
|
4721
4721
|
// React element
|
|
4722
|
-
De.instanceOf(
|
|
4722
|
+
De.instanceOf(Cr)
|
|
4723
4723
|
// DOM element
|
|
4724
4724
|
])
|
|
4725
4725
|
// NOTE: _createFocusTrap is internal, for testing purposes only, so we don't
|
|
@@ -4785,7 +4785,7 @@ const xn = ({
|
|
|
4785
4785
|
{
|
|
4786
4786
|
id: `${e}-overlay`,
|
|
4787
4787
|
ref: E,
|
|
4788
|
-
className:
|
|
4788
|
+
className: V("overlay", {
|
|
4789
4789
|
open: f,
|
|
4790
4790
|
"in-portal": d.includes("in-portal")
|
|
4791
4791
|
}),
|
|
@@ -4794,7 +4794,7 @@ const xn = ({
|
|
|
4794
4794
|
rd,
|
|
4795
4795
|
{
|
|
4796
4796
|
id: e,
|
|
4797
|
-
className:
|
|
4797
|
+
className: V("overlay-modal", d, {
|
|
4798
4798
|
"has-max-width": r
|
|
4799
4799
|
}),
|
|
4800
4800
|
hidden: !f,
|
|
@@ -4820,7 +4820,7 @@ const xn = ({
|
|
|
4820
4820
|
l,
|
|
4821
4821
|
u && /* @__PURE__ */ c.jsxs("div", { className: "bottom", children: [
|
|
4822
4822
|
/* @__PURE__ */ c.jsx(on, {}),
|
|
4823
|
-
/* @__PURE__ */ c.jsx(
|
|
4823
|
+
/* @__PURE__ */ c.jsx(Gr, { buttons: u })
|
|
4824
4824
|
] }),
|
|
4825
4825
|
s && /* @__PURE__ */ c.jsx(Ri, { className: "error", children: s })
|
|
4826
4826
|
] }) })
|
|
@@ -4833,7 +4833,7 @@ const xn = ({
|
|
|
4833
4833
|
"aria-expanded": t,
|
|
4834
4834
|
"aria-controls": e
|
|
4835
4835
|
});
|
|
4836
|
-
const
|
|
4836
|
+
const Er = "joinCommunityButton", pd = ({
|
|
4837
4837
|
isMember: e = !1,
|
|
4838
4838
|
isOpen: t = !1,
|
|
4839
4839
|
isShort: n = !1,
|
|
@@ -4847,14 +4847,14 @@ const Cr = "joinCommunityButton", pd = ({
|
|
|
4847
4847
|
m === "joining" ? p("joined") : m === "leaving" && p("notJoined");
|
|
4848
4848
|
}, [d]);
|
|
4849
4849
|
const g = {}, f = {};
|
|
4850
|
-
return d && m !== "leaving" && (g["data-hover-text"] = s.formatMessage({ id: `${
|
|
4850
|
+
return d && m !== "leaving" && (g["data-hover-text"] = s.formatMessage({ id: `${Er}_leave` }), g["aria-label"] = s.formatMessage({ id: `${Er}_member_aria` }), f["aria-hidden"] = "true"), /* @__PURE__ */ c.jsx(
|
|
4851
4851
|
Se,
|
|
4852
4852
|
{
|
|
4853
4853
|
variant: d ? "secondary" : "primary",
|
|
4854
4854
|
size: "medium",
|
|
4855
4855
|
styling: { fullWidth: !0 },
|
|
4856
4856
|
icon: d && m !== "leaving" ? { icon: "tick", position: "left" } : !1,
|
|
4857
|
-
tooltip: !t && !d ? s.formatMessage({ id: `${
|
|
4857
|
+
tooltip: !t && !d ? s.formatMessage({ id: `${Er}_closed_tooltip` }) : "",
|
|
4858
4858
|
onClick: async (b) => {
|
|
4859
4859
|
if (u)
|
|
4860
4860
|
return;
|
|
@@ -4862,7 +4862,7 @@ const Cr = "joinCommunityButton", pd = ({
|
|
|
4862
4862
|
const v = new CustomEvent("ariaLive", {
|
|
4863
4863
|
detail: {
|
|
4864
4864
|
message: s.formatMessage(
|
|
4865
|
-
{ id: `${
|
|
4865
|
+
{ id: `${Er}_aria_live` },
|
|
4866
4866
|
{ action: d ? "leaving" : "joining" }
|
|
4867
4867
|
)
|
|
4868
4868
|
}
|
|
@@ -4873,14 +4873,14 @@ const Cr = "joinCommunityButton", pd = ({
|
|
|
4873
4873
|
await w();
|
|
4874
4874
|
}, 500), h(!d);
|
|
4875
4875
|
},
|
|
4876
|
-
className:
|
|
4876
|
+
className: V("join-community-button", m, {
|
|
4877
4877
|
active: m === "joining"
|
|
4878
4878
|
}),
|
|
4879
4879
|
disabled: u,
|
|
4880
4880
|
"data-testid": "join-button",
|
|
4881
4881
|
...g,
|
|
4882
4882
|
children: /* @__PURE__ */ c.jsx("span", { className: "text", ...f, children: s.formatMessage({
|
|
4883
|
-
id: `${
|
|
4883
|
+
id: `${Er}${["joining", "leaving"].includes(m) ? `_${m}` : d ? "_member" : n ? "_short" : ""}`
|
|
4884
4884
|
}) })
|
|
4885
4885
|
}
|
|
4886
4886
|
);
|
|
@@ -4894,7 +4894,7 @@ const Aa = "communityDetails_", U_ = ({
|
|
|
4894
4894
|
functions: { invite: s, ...o }
|
|
4895
4895
|
}) => {
|
|
4896
4896
|
const l = ce(), { id: u } = $e(Dt), d = u, h = 5, m = i || a.length, p = a.length ? a : Array(h).fill({}), g = `/communities/${r}/members` === window.location.pathname, f = t || n, b = !n && !t;
|
|
4897
|
-
return /* @__PURE__ */ c.jsxs("div", { className:
|
|
4897
|
+
return /* @__PURE__ */ c.jsxs("div", { className: V("community-details", e), children: [
|
|
4898
4898
|
f ? /* @__PURE__ */ c.jsxs("div", { className: "member-details", children: [
|
|
4899
4899
|
/* @__PURE__ */ c.jsxs("div", { className: "top", children: [
|
|
4900
4900
|
/* @__PURE__ */ c.jsxs("h4", { children: [
|
|
@@ -4952,7 +4952,7 @@ const H_ = ({ breadcrumbs: e, cutoff: t = 20, className: n = "" }) => {
|
|
|
4952
4952
|
children: r.formatMessage({ id: "breadcrumbs_label" })
|
|
4953
4953
|
}
|
|
4954
4954
|
),
|
|
4955
|
-
/* @__PURE__ */ c.jsx("ul", { className:
|
|
4955
|
+
/* @__PURE__ */ c.jsx("ul", { className: V("breadcrumbs text-small", n), children: e.map(
|
|
4956
4956
|
({ text: i, href: a, current: s = !1 }, o) => {
|
|
4957
4957
|
const l = {};
|
|
4958
4958
|
return s && (l["aria-current"] = "location"), /* @__PURE__ */ c.jsxs("li", { children: [
|
|
@@ -4980,7 +4980,7 @@ const Np = ({
|
|
|
4980
4980
|
return /* @__PURE__ */ c.jsxs(
|
|
4981
4981
|
"aside",
|
|
4982
4982
|
{
|
|
4983
|
-
className:
|
|
4983
|
+
className: V("enriched-url gtm-trackable", {
|
|
4984
4984
|
"has-image": t,
|
|
4985
4985
|
[e]: e !== "default"
|
|
4986
4986
|
}),
|
|
@@ -5034,7 +5034,7 @@ const Mp = ({
|
|
|
5034
5034
|
let g = [];
|
|
5035
5035
|
u.includes(m) && !a ? g = u.filter((f) => f !== m) : m === "all" ? g = ["all"] : r ? g = [...u.filter((f) => f !== "all"), m] : g = [m], d((f) => (i && typeof i == "function" && i({ current: g, previous: f }), g)), p && typeof p == "function" && p();
|
|
5036
5036
|
};
|
|
5037
|
-
return /* @__PURE__ */ c.jsx("ul", { className:
|
|
5037
|
+
return /* @__PURE__ */ c.jsx("ul", { className: V("filters", s), children: l.map(({ id: m, text: p, disabled: g = !1, callback: f = () => {
|
|
5038
5038
|
} }) => {
|
|
5039
5039
|
let b = {};
|
|
5040
5040
|
return g && (b = {
|
|
@@ -5043,7 +5043,7 @@ const Mp = ({
|
|
|
5043
5043
|
}), /* @__PURE__ */ c.jsx("li", { children: /* @__PURE__ */ c.jsx(
|
|
5044
5044
|
"button",
|
|
5045
5045
|
{
|
|
5046
|
-
className:
|
|
5046
|
+
className: V(m, {
|
|
5047
5047
|
selected: u.includes(m)
|
|
5048
5048
|
}),
|
|
5049
5049
|
onClick: (v) => {
|
|
@@ -5087,7 +5087,7 @@ const ui = "languageSwitcher_", V_ = ({
|
|
|
5087
5087
|
))
|
|
5088
5088
|
return null;
|
|
5089
5089
|
const g = Object.keys(r), f = h !== e;
|
|
5090
|
-
return /* @__PURE__ */ c.jsxs("div", { className:
|
|
5090
|
+
return /* @__PURE__ */ c.jsxs("div", { className: V("language-switcher text-small", s, l), children: [
|
|
5091
5091
|
/* @__PURE__ */ c.jsxs("nav", { children: [
|
|
5092
5092
|
s !== "short" && /* @__PURE__ */ c.jsx("p", { children: o || u.formatMessage({ id: `${ui}label` }) }),
|
|
5093
5093
|
/* @__PURE__ */ c.jsx("ul", { children: g.map((b) => {
|
|
@@ -5127,7 +5127,7 @@ const ui = "languageSwitcher_", V_ = ({
|
|
|
5127
5127
|
children: u.formatMessage(
|
|
5128
5128
|
{ id: `${ui}disclaimer` },
|
|
5129
5129
|
{
|
|
5130
|
-
email:
|
|
5130
|
+
email: Br.support,
|
|
5131
5131
|
link: (b) => {
|
|
5132
5132
|
const v = `mailto:${b}`;
|
|
5133
5133
|
return /* @__PURE__ */ c.jsx("a", { href: v, children: b });
|
|
@@ -5162,7 +5162,7 @@ const Ba = bh({ locale: "en", messages: gr }), sa = ({
|
|
|
5162
5162
|
g instanceof Error ? h(g.message) : h("Unknown error");
|
|
5163
5163
|
}
|
|
5164
5164
|
};
|
|
5165
|
-
return !d && !e && !o.endOfFeed ? null : /* @__PURE__ */ c.jsx("footer", { className:
|
|
5165
|
+
return !d && !e && !o.endOfFeed ? null : /* @__PURE__ */ c.jsx("footer", { className: V("load-more", l), children: !d && e ? /* @__PURE__ */ c.jsx(
|
|
5166
5166
|
Se,
|
|
5167
5167
|
{
|
|
5168
5168
|
variant: r,
|
|
@@ -5188,7 +5188,7 @@ const gd = ({
|
|
|
5188
5188
|
"a",
|
|
5189
5189
|
{
|
|
5190
5190
|
href: "/home/",
|
|
5191
|
-
className:
|
|
5191
|
+
className: V("logo", e, t, n),
|
|
5192
5192
|
...r,
|
|
5193
5193
|
children: /* @__PURE__ */ c.jsx(He, { children: /* @__PURE__ */ c.jsx(ht, { id: "apolitical" }) })
|
|
5194
5194
|
}
|
|
@@ -5209,7 +5209,7 @@ const $p = ({
|
|
|
5209
5209
|
document.removeEventListener("click", l, !0);
|
|
5210
5210
|
})), te.createElement(e, {
|
|
5211
5211
|
ref: a,
|
|
5212
|
-
className:
|
|
5212
|
+
className: V("more-menu text-medium", r),
|
|
5213
5213
|
children: /* @__PURE__ */ c.jsxs(c.Fragment, { children: [
|
|
5214
5214
|
/* @__PURE__ */ c.jsx(
|
|
5215
5215
|
Se,
|
|
@@ -5280,7 +5280,7 @@ const Lp = fr(() => Promise.resolve().then(() => Mm)), zp = [
|
|
|
5280
5280
|
return /* @__PURE__ */ c.jsxs("ul", { id: "navigation-menu", className: "text-medium", children: [
|
|
5281
5281
|
zp.map(({ key: a, href: s }) => {
|
|
5282
5282
|
const o = Ip(s, e), l = {};
|
|
5283
|
-
return o && (l["aria-current"] = "page"), /* @__PURE__ */ c.jsx("li", { className:
|
|
5283
|
+
return o && (l["aria-current"] = "page"), /* @__PURE__ */ c.jsx("li", { className: V(a, { active: o }), children: /* @__PURE__ */ c.jsx(
|
|
5284
5284
|
"a",
|
|
5285
5285
|
{
|
|
5286
5286
|
href: s,
|
|
@@ -5307,7 +5307,7 @@ const Lp = fr(() => Promise.resolve().then(() => Mm)), zp = [
|
|
|
5307
5307
|
}
|
|
5308
5308
|
)
|
|
5309
5309
|
] });
|
|
5310
|
-
},
|
|
5310
|
+
}, _r = (e, t, n) => `${e}?share=${t}${n ? `&uuid=${n}` : ""}`, Wp = ({
|
|
5311
5311
|
title: e,
|
|
5312
5312
|
link: t,
|
|
5313
5313
|
referrer: n
|
|
@@ -5316,21 +5316,21 @@ const Lp = fr(() => Promise.resolve().then(() => Mm)), zp = [
|
|
|
5316
5316
|
key: "linkedin",
|
|
5317
5317
|
icon: "social_linkedin",
|
|
5318
5318
|
url: `https://www.linkedin.com/shareArticle?mini=true&url=${encodeURIComponent(
|
|
5319
|
-
`${
|
|
5319
|
+
`${_r(t, "linkedin", n)}&src=linkedin`
|
|
5320
5320
|
)}&title=${encodeURIComponent(e)}&source=Apolitical`
|
|
5321
5321
|
},
|
|
5322
5322
|
{
|
|
5323
5323
|
key: "twitter",
|
|
5324
5324
|
icon: "social_twitter",
|
|
5325
5325
|
url: `https://twitter.com/share?ref_src=twsrc%5Etfw&url=${encodeURIComponent(
|
|
5326
|
-
`${
|
|
5326
|
+
`${_r(t, "twitter", n)}&src=twitter`
|
|
5327
5327
|
)}&text=${encodeURIComponent(e)}&via=${encodeURIComponent("apoliticalco")}`
|
|
5328
5328
|
},
|
|
5329
5329
|
{
|
|
5330
5330
|
key: "facebook",
|
|
5331
5331
|
icon: "social_facebook",
|
|
5332
5332
|
url: `https://www.facebook.com/sharer/sharer.php?u=${encodeURIComponent(
|
|
5333
|
-
`${
|
|
5333
|
+
`${_r(t, "facebook", n)}`
|
|
5334
5334
|
)}&t=${e}`
|
|
5335
5335
|
},
|
|
5336
5336
|
{
|
|
@@ -5339,13 +5339,13 @@ const Lp = fr(() => Promise.resolve().then(() => Mm)), zp = [
|
|
|
5339
5339
|
url: `mailto:?subject=${encodeURIComponent(e)}&body=${encodeURIComponent(
|
|
5340
5340
|
`${e}
|
|
5341
5341
|
|
|
5342
|
-
${
|
|
5342
|
+
${_r(t, "mailto", n)}&src=email`
|
|
5343
5343
|
)}`
|
|
5344
5344
|
},
|
|
5345
5345
|
{
|
|
5346
5346
|
key: "clipboard-copy",
|
|
5347
5347
|
icon: "share_copy-link",
|
|
5348
|
-
url:
|
|
5348
|
+
url: _r(t, "copy", n),
|
|
5349
5349
|
shouldRender: () => navigator && navigator.clipboard && navigator.clipboard.writeText,
|
|
5350
5350
|
onClick: (r, i) => (r.preventDefault(), r.stopPropagation(), navigator.clipboard.writeText(i))
|
|
5351
5351
|
}
|
|
@@ -5360,7 +5360,7 @@ const Up = "shareLinks_", K_ = ({
|
|
|
5360
5360
|
className: s = ""
|
|
5361
5361
|
}) => {
|
|
5362
5362
|
const o = ce(), l = Wp({ title: e, link: t, referrer: n });
|
|
5363
|
-
return /* @__PURE__ */ c.jsxs("aside", { className:
|
|
5363
|
+
return /* @__PURE__ */ c.jsxs("aside", { className: V("share-links", i, a, s), children: [
|
|
5364
5364
|
/* @__PURE__ */ c.jsx("p", { className: "text-small", children: o.formatMessage({ id: "shareLinks_label" }) }),
|
|
5365
5365
|
/* @__PURE__ */ c.jsx("ul", { children: l.map(({ key: u, icon: d, url: h, shouldRender: m = !0, onClick: p }) => {
|
|
5366
5366
|
if (typeof m == "function" && !m())
|
|
@@ -5458,7 +5458,7 @@ const Z_ = ({ tabs: e, className: t = "", preventLocationChange: n }) => {
|
|
|
5458
5458
|
href: w || `#${f}`,
|
|
5459
5459
|
id: `tab-${f}`,
|
|
5460
5460
|
"aria-controls": f,
|
|
5461
|
-
className:
|
|
5461
|
+
className: V({ selected: C }),
|
|
5462
5462
|
role: "tab",
|
|
5463
5463
|
tabIndex: C ? 0 : -1,
|
|
5464
5464
|
"aria-selected": C,
|
|
@@ -5469,7 +5469,7 @@ const Z_ = ({ tabs: e, className: t = "", preventLocationChange: n }) => {
|
|
|
5469
5469
|
) }, `tab-${f}`)
|
|
5470
5470
|
);
|
|
5471
5471
|
}
|
|
5472
|
-
), /* @__PURE__ */ c.jsxs("div", { className:
|
|
5472
|
+
), /* @__PURE__ */ c.jsxs("div", { className: V("tabs-wrapper", t), children: [
|
|
5473
5473
|
/* @__PURE__ */ c.jsx("ul", { className: "tabs", role: "tablist", children: m }),
|
|
5474
5474
|
/* @__PURE__ */ c.jsx("div", { className: "tab-content", children: p })
|
|
5475
5475
|
] });
|
|
@@ -5490,7 +5490,7 @@ const Hp = {
|
|
|
5490
5490
|
return te.Children.count(i) === 1 && (s = te.Children.toArray(i)[0], s.props && (s = s.props.children)), /* @__PURE__ */ c.jsx(
|
|
5491
5491
|
"section",
|
|
5492
5492
|
{
|
|
5493
|
-
className:
|
|
5493
|
+
className: V("columns", `layout-${e}`, r, {
|
|
5494
5494
|
"has-containers": n
|
|
5495
5495
|
}),
|
|
5496
5496
|
children: te.Children.map(s, (o, l) => t !== !1 && l === t && a && a < Hp[e] ? null : o)
|
|
@@ -5512,7 +5512,7 @@ const vd = ({
|
|
|
5512
5512
|
"small",
|
|
5513
5513
|
{
|
|
5514
5514
|
id: e,
|
|
5515
|
-
className:
|
|
5515
|
+
className: V("character-limit", {
|
|
5516
5516
|
"near-limit": l,
|
|
5517
5517
|
"approaching-limit": u
|
|
5518
5518
|
}),
|
|
@@ -5708,7 +5708,7 @@ const ci = "emailHelperTextBox_", Zp = ({
|
|
|
5708
5708
|
type: o,
|
|
5709
5709
|
id: n,
|
|
5710
5710
|
name: a,
|
|
5711
|
-
className:
|
|
5711
|
+
className: V(e, t, {
|
|
5712
5712
|
"has-scrollbar": o === "textarea" && m.current && m.current.clientHeight < m.current.scrollHeight
|
|
5713
5713
|
}),
|
|
5714
5714
|
value: l,
|
|
@@ -5835,7 +5835,7 @@ const Vn = {
|
|
|
5835
5835
|
...C,
|
|
5836
5836
|
activePredictionIndex: D
|
|
5837
5837
|
})),
|
|
5838
|
-
className:
|
|
5838
|
+
className: V("predictions-list-item", {
|
|
5839
5839
|
active: D === p
|
|
5840
5840
|
}),
|
|
5841
5841
|
children: B.description
|
|
@@ -5921,7 +5921,7 @@ const bd = ({
|
|
|
5921
5921
|
break;
|
|
5922
5922
|
}
|
|
5923
5923
|
} : void 0,
|
|
5924
|
-
className:
|
|
5924
|
+
className: V(i, "checkbox-wrapper", e, {
|
|
5925
5925
|
"is-checked": d
|
|
5926
5926
|
}),
|
|
5927
5927
|
...m,
|
|
@@ -5936,7 +5936,7 @@ const Qp = Jt(function({
|
|
|
5936
5936
|
return /* @__PURE__ */ c.jsx(
|
|
5937
5937
|
Js,
|
|
5938
5938
|
{
|
|
5939
|
-
className:
|
|
5939
|
+
className: V("rotating-chevron", `direction-${t}`)
|
|
5940
5940
|
}
|
|
5941
5941
|
);
|
|
5942
5942
|
});
|
|
@@ -5972,7 +5972,7 @@ const Jp = ({
|
|
|
5972
5972
|
} else
|
|
5973
5973
|
b([]), w && w([]);
|
|
5974
5974
|
};
|
|
5975
|
-
return /* @__PURE__ */ c.jsxs("div", { className:
|
|
5975
|
+
return /* @__PURE__ */ c.jsxs("div", { className: V("dropdown-wrapper", e), children: [
|
|
5976
5976
|
/* @__PURE__ */ c.jsxs(
|
|
5977
5977
|
"button",
|
|
5978
5978
|
{
|
|
@@ -6057,7 +6057,7 @@ const Jp = ({
|
|
|
6057
6057
|
return /* @__PURE__ */ c.jsx("li", { "data-testid": "dropdown-options", children: /* @__PURE__ */ c.jsxs(
|
|
6058
6058
|
"button",
|
|
6059
6059
|
{
|
|
6060
|
-
className:
|
|
6060
|
+
className: V("gtm-trackable", {
|
|
6061
6061
|
selected: L,
|
|
6062
6062
|
"selected-single": L && !o
|
|
6063
6063
|
}),
|
|
@@ -6071,7 +6071,7 @@ const Jp = ({
|
|
|
6071
6071
|
"data-testid": L ? "current-selection" : "",
|
|
6072
6072
|
children: [
|
|
6073
6073
|
o && /* @__PURE__ */ c.jsx("span", { className: "pretty-checkbox", "data-testid": "pretty-checkbox" }),
|
|
6074
|
-
/* @__PURE__ */ c.jsx("span", { className:
|
|
6074
|
+
/* @__PURE__ */ c.jsx("span", { className: V({ "menu-option-label": o }), children: S.label })
|
|
6075
6075
|
]
|
|
6076
6076
|
}
|
|
6077
6077
|
) }, S.id);
|
|
@@ -6120,7 +6120,7 @@ const Eu = ({
|
|
|
6120
6120
|
"ul",
|
|
6121
6121
|
{
|
|
6122
6122
|
...m,
|
|
6123
|
-
className:
|
|
6123
|
+
className: V("options-wrapper", e),
|
|
6124
6124
|
"data-testid": `ul-${r}`,
|
|
6125
6125
|
children: o == null ? void 0 : o.map(
|
|
6126
6126
|
({
|
|
@@ -6182,7 +6182,7 @@ const Xp = ({
|
|
|
6182
6182
|
"button",
|
|
6183
6183
|
{
|
|
6184
6184
|
type: "button",
|
|
6185
|
-
className:
|
|
6185
|
+
className: V("show-password gtm-trackable", {
|
|
6186
6186
|
"password-visible": l
|
|
6187
6187
|
}),
|
|
6188
6188
|
"data-gtm-event-context": n,
|
|
@@ -6276,7 +6276,7 @@ const Kn = {
|
|
|
6276
6276
|
{
|
|
6277
6277
|
...D,
|
|
6278
6278
|
label: S,
|
|
6279
|
-
className:
|
|
6279
|
+
className: V("field-wrapper", n)
|
|
6280
6280
|
}
|
|
6281
6281
|
),
|
|
6282
6282
|
/* @__PURE__ */ c.jsx(L, { as: "p" })
|
|
@@ -6290,7 +6290,7 @@ const Kn = {
|
|
|
6290
6290
|
});
|
|
6291
6291
|
return /* @__PURE__ */ c.jsx(c.Fragment, { children: te.createElement(
|
|
6292
6292
|
b ? "fieldset" : "div",
|
|
6293
|
-
{ className:
|
|
6293
|
+
{ className: V("field-wrapper text-medium", n) },
|
|
6294
6294
|
/* @__PURE__ */ c.jsxs(c.Fragment, { children: [
|
|
6295
6295
|
te.createElement(
|
|
6296
6296
|
b ? te.Fragment : "p",
|
|
@@ -6579,7 +6579,7 @@ const Ln = ({
|
|
|
6579
6579
|
{
|
|
6580
6580
|
...m,
|
|
6581
6581
|
id: r,
|
|
6582
|
-
className:
|
|
6582
|
+
className: V("form", n),
|
|
6583
6583
|
ref: re
|
|
6584
6584
|
},
|
|
6585
6585
|
/* @__PURE__ */ c.jsxs(c.Fragment, { children: [
|
|
@@ -6623,9 +6623,9 @@ const Ln = ({
|
|
|
6623
6623
|
);
|
|
6624
6624
|
}),
|
|
6625
6625
|
g ? null : (R || W) && p ? p : /* @__PURE__ */ c.jsx(
|
|
6626
|
-
|
|
6626
|
+
Gr,
|
|
6627
6627
|
{
|
|
6628
|
-
className:
|
|
6628
|
+
className: V("cta", {
|
|
6629
6629
|
center: R || W,
|
|
6630
6630
|
submitted: W
|
|
6631
6631
|
}),
|
|
@@ -6650,13 +6650,13 @@ const di = "passwordRules_", yd = "isMoreThanEightCharacters", Dd = "includesNum
|
|
|
6650
6650
|
className: t = ""
|
|
6651
6651
|
}) => {
|
|
6652
6652
|
const n = ce();
|
|
6653
|
-
return /* @__PURE__ */ c.jsxs("aside", { className:
|
|
6653
|
+
return /* @__PURE__ */ c.jsxs("aside", { className: V("password-rules", t), children: [
|
|
6654
6654
|
/* @__PURE__ */ c.jsx("small", { children: n.formatMessage({ id: `${di}intro` }) }),
|
|
6655
6655
|
/* @__PURE__ */ c.jsx("ul", { children: [yd, Dd, xd].map(
|
|
6656
6656
|
(r) => /* @__PURE__ */ c.jsxs(
|
|
6657
6657
|
"li",
|
|
6658
6658
|
{
|
|
6659
|
-
className:
|
|
6659
|
+
className: V({ matches: e[r] }),
|
|
6660
6660
|
children: [
|
|
6661
6661
|
/* @__PURE__ */ c.jsxs(He, { children: [
|
|
6662
6662
|
n.formatMessage({ id: `${di}rule_label` }),
|
|
@@ -6725,14 +6725,14 @@ const Y_ = ({
|
|
|
6725
6725
|
u((w) => ({ ...w, disabled: !1 }));
|
|
6726
6726
|
}
|
|
6727
6727
|
};
|
|
6728
|
-
return /* @__PURE__ */ c.jsxs("div", { className:
|
|
6728
|
+
return /* @__PURE__ */ c.jsxs("div", { className: V("rating", a), children: [
|
|
6729
6729
|
/* @__PURE__ */ c.jsx("span", { className: "label", children: f[m ? "success" : "text"] }),
|
|
6730
6730
|
/* @__PURE__ */ c.jsx("ol", { children: Array.from(new Array(t).keys()).map((v) => {
|
|
6731
6731
|
const w = v + 1;
|
|
6732
6732
|
return /* @__PURE__ */ c.jsx(
|
|
6733
6733
|
"li",
|
|
6734
6734
|
{
|
|
6735
|
-
className:
|
|
6735
|
+
className: V({ selected: m && w <= m }),
|
|
6736
6736
|
children: /* @__PURE__ */ c.jsx(
|
|
6737
6737
|
Se,
|
|
6738
6738
|
{
|
|
@@ -7269,9 +7269,9 @@ var _g = Array.prototype.reduce, kg = [
|
|
|
7269
7269
|
[/_/g, "\\_"],
|
|
7270
7270
|
[/^(\d+)\. /g, "$1\\. "]
|
|
7271
7271
|
];
|
|
7272
|
-
function
|
|
7273
|
-
if (!(this instanceof
|
|
7274
|
-
return new
|
|
7272
|
+
function qr(e) {
|
|
7273
|
+
if (!(this instanceof qr))
|
|
7274
|
+
return new qr(e);
|
|
7275
7275
|
var t = {
|
|
7276
7276
|
rules: mt,
|
|
7277
7277
|
headingStyle: "setext",
|
|
@@ -7307,7 +7307,7 @@ function zr(e) {
|
|
|
7307
7307
|
};
|
|
7308
7308
|
this.options = ag({}, t, e), this.rules = new kd(this.options);
|
|
7309
7309
|
}
|
|
7310
|
-
|
|
7310
|
+
qr.prototype = {
|
|
7311
7311
|
/**
|
|
7312
7312
|
* The entry point for converting a string or DOM node to Markdown
|
|
7313
7313
|
* @public
|
|
@@ -7557,9 +7557,9 @@ function Nn(e) {
|
|
|
7557
7557
|
const t = Pg[e];
|
|
7558
7558
|
return t || Et(0, e), t;
|
|
7559
7559
|
}
|
|
7560
|
-
var
|
|
7560
|
+
var Wr;
|
|
7561
7561
|
function jd() {
|
|
7562
|
-
return
|
|
7562
|
+
return Wr;
|
|
7563
7563
|
}
|
|
7564
7564
|
function Ng(e, t) {
|
|
7565
7565
|
return {
|
|
@@ -7579,10 +7579,10 @@ function Bs(e) {
|
|
|
7579
7579
|
Ts(e), e.drafts_.forEach(Mg), e.drafts_ = null;
|
|
7580
7580
|
}
|
|
7581
7581
|
function Ts(e) {
|
|
7582
|
-
e ===
|
|
7582
|
+
e === Wr && (Wr = e.parent_);
|
|
7583
7583
|
}
|
|
7584
7584
|
function Tu(e) {
|
|
7585
|
-
return
|
|
7585
|
+
return Wr = Ng(Wr, e);
|
|
7586
7586
|
}
|
|
7587
7587
|
function Mg(e) {
|
|
7588
7588
|
const t = e[Tt];
|
|
@@ -7671,7 +7671,7 @@ function Rg(e, t) {
|
|
|
7671
7671
|
isManual_: !1
|
|
7672
7672
|
};
|
|
7673
7673
|
let i = r, a = fo;
|
|
7674
|
-
n && (i = [r], a =
|
|
7674
|
+
n && (i = [r], a = Ur);
|
|
7675
7675
|
const { revoke: s, proxy: o } = Proxy.revocable(i, a);
|
|
7676
7676
|
return r.draft_ = o, r.revoke_ = s, o;
|
|
7677
7677
|
}
|
|
@@ -7730,16 +7730,16 @@ var fo = {
|
|
|
7730
7730
|
setPrototypeOf() {
|
|
7731
7731
|
Et(12);
|
|
7732
7732
|
}
|
|
7733
|
-
},
|
|
7733
|
+
}, Ur = {};
|
|
7734
7734
|
Ui(fo, (e, t) => {
|
|
7735
|
-
|
|
7735
|
+
Ur[e] = function() {
|
|
7736
7736
|
return arguments[0] = arguments[0][0], t.apply(this, arguments);
|
|
7737
7737
|
};
|
|
7738
7738
|
});
|
|
7739
|
-
|
|
7740
|
-
return process.env.NODE_ENV !== "production" && isNaN(parseInt(t)) && Et(13),
|
|
7739
|
+
Ur.deleteProperty = function(e, t) {
|
|
7740
|
+
return process.env.NODE_ENV !== "production" && isNaN(parseInt(t)) && Et(13), Ur.set.call(this, e, t, void 0);
|
|
7741
7741
|
};
|
|
7742
|
-
|
|
7742
|
+
Ur.set = function(e, t, n) {
|
|
7743
7743
|
return process.env.NODE_ENV !== "production" && t !== "length" && isNaN(parseInt(t)) && Et(14), fo.set.call(this, e[0], t, n, e[0]);
|
|
7744
7744
|
};
|
|
7745
7745
|
function Pa(e, t) {
|
|
@@ -7926,7 +7926,7 @@ var Ou = St.createDraft.bind(St), Pu = St.finishDraft.bind(St), zg = {
|
|
|
7926
7926
|
e.current = i, i == null && e.unref();
|
|
7927
7927
|
}
|
|
7928
7928
|
}
|
|
7929
|
-
}, Ki = /* @__PURE__ */ new WeakMap(), Zi = /* @__PURE__ */ new WeakMap(),
|
|
7929
|
+
}, Ki = /* @__PURE__ */ new WeakMap(), Zi = /* @__PURE__ */ new WeakMap(), Or = /* @__PURE__ */ new WeakMap(), Nd = /* @__PURE__ */ new WeakMap(), Nu = /* @__PURE__ */ new WeakMap(), Mu = /* @__PURE__ */ new WeakMap(), Ru = /* @__PURE__ */ new WeakMap(), M = {
|
|
7930
7930
|
ancestors(e) {
|
|
7931
7931
|
var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, {
|
|
7932
7932
|
reverse: n = !1
|
|
@@ -8108,21 +8108,21 @@ var Ou = St.createDraft.bind(St), Pu = St.finishDraft.bind(St), zg = {
|
|
|
8108
8108
|
return r;
|
|
8109
8109
|
}
|
|
8110
8110
|
};
|
|
8111
|
-
function
|
|
8111
|
+
function Hr(e) {
|
|
8112
8112
|
"@babel/helpers - typeof";
|
|
8113
|
-
return
|
|
8113
|
+
return Hr = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(t) {
|
|
8114
8114
|
return typeof t;
|
|
8115
8115
|
} : function(t) {
|
|
8116
8116
|
return t && typeof Symbol == "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t;
|
|
8117
|
-
},
|
|
8117
|
+
}, Hr(e);
|
|
8118
8118
|
}
|
|
8119
8119
|
function Ug(e, t) {
|
|
8120
|
-
if (
|
|
8120
|
+
if (Hr(e) !== "object" || e === null)
|
|
8121
8121
|
return e;
|
|
8122
8122
|
var n = e[Symbol.toPrimitive];
|
|
8123
8123
|
if (n !== void 0) {
|
|
8124
8124
|
var r = n.call(e, t || "default");
|
|
8125
|
-
if (
|
|
8125
|
+
if (Hr(r) !== "object")
|
|
8126
8126
|
return r;
|
|
8127
8127
|
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
8128
8128
|
}
|
|
@@ -8130,7 +8130,7 @@ function Ug(e, t) {
|
|
|
8130
8130
|
}
|
|
8131
8131
|
function Hg(e) {
|
|
8132
8132
|
var t = Ug(e, "string");
|
|
8133
|
-
return
|
|
8133
|
+
return Hr(t) === "symbol" ? t : String(t);
|
|
8134
8134
|
}
|
|
8135
8135
|
function xt(e, t, n) {
|
|
8136
8136
|
return t = Hg(t), t in e ? Object.defineProperty(e, t, {
|
|
@@ -8150,7 +8150,7 @@ function $u(e, t) {
|
|
|
8150
8150
|
}
|
|
8151
8151
|
return n;
|
|
8152
8152
|
}
|
|
8153
|
-
function
|
|
8153
|
+
function kr(e) {
|
|
8154
8154
|
for (var t = 1; t < arguments.length; t++) {
|
|
8155
8155
|
var n = arguments[t] != null ? arguments[t] : {};
|
|
8156
8156
|
t % 2 ? $u(Object(n), !0).forEach(function(r) {
|
|
@@ -8278,18 +8278,18 @@ var Vg = (e, t, n) => {
|
|
|
8278
8278
|
}
|
|
8279
8279
|
case "set_selection": {
|
|
8280
8280
|
var {
|
|
8281
|
-
newProperties:
|
|
8281
|
+
newProperties: K
|
|
8282
8282
|
} = n;
|
|
8283
|
-
if (
|
|
8284
|
-
t =
|
|
8283
|
+
if (K == null)
|
|
8284
|
+
t = K;
|
|
8285
8285
|
else {
|
|
8286
8286
|
if (t == null) {
|
|
8287
|
-
if (!Y.isRange(
|
|
8288
|
-
throw new Error('Cannot apply an incomplete "set_selection" operation properties '.concat(ot.stringify(
|
|
8289
|
-
t =
|
|
8287
|
+
if (!Y.isRange(K))
|
|
8288
|
+
throw new Error('Cannot apply an incomplete "set_selection" operation properties '.concat(ot.stringify(K), " when there is no current selection."));
|
|
8289
|
+
t = kr({}, K);
|
|
8290
8290
|
}
|
|
8291
|
-
for (var se in
|
|
8292
|
-
var pe =
|
|
8291
|
+
for (var se in K) {
|
|
8292
|
+
var pe = K[se];
|
|
8293
8293
|
if (pe == null) {
|
|
8294
8294
|
if (se === "anchor" || se === "focus")
|
|
8295
8295
|
throw new Error('Cannot remove the "'.concat(se, '" selection property'));
|
|
@@ -8311,18 +8311,18 @@ var Vg = (e, t, n) => {
|
|
|
8311
8311
|
var et = oe.get(e, ye), xe = oe.parent(e, ye), Oe = ye[ye.length - 1], st;
|
|
8312
8312
|
if (me.isText(et)) {
|
|
8313
8313
|
var it = et.text.slice(0, _e), At = et.text.slice(_e);
|
|
8314
|
-
et.text = it, st =
|
|
8314
|
+
et.text = it, st = kr(kr({}, Xe), {}, {
|
|
8315
8315
|
text: At
|
|
8316
8316
|
});
|
|
8317
8317
|
} else {
|
|
8318
8318
|
var dt = et.children.slice(0, _e), Wn = et.children.slice(_e);
|
|
8319
|
-
et.children = dt, st =
|
|
8319
|
+
et.children = dt, st = kr(kr({}, Xe), {}, {
|
|
8320
8320
|
children: Wn
|
|
8321
8321
|
});
|
|
8322
8322
|
}
|
|
8323
8323
|
if (xe.children.splice(Oe + 1, 0, st), t)
|
|
8324
|
-
for (var [
|
|
8325
|
-
t[ei] = Be.transform(
|
|
8324
|
+
for (var [yr, ei] of Y.points(t))
|
|
8325
|
+
t[ei] = Be.transform(yr, n);
|
|
8326
8326
|
break;
|
|
8327
8327
|
}
|
|
8328
8328
|
}
|
|
@@ -9281,7 +9281,7 @@ var me = {
|
|
|
9281
9281
|
}
|
|
9282
9282
|
return n;
|
|
9283
9283
|
}
|
|
9284
|
-
}, mo = (e) => e.selection ? e.selection : e.children.length > 0 ? y.end(e, []) : [0],
|
|
9284
|
+
}, mo = (e) => e.selection ? e.selection : e.children.length > 0 ? y.end(e, []) : [0], br = (e, t) => {
|
|
9285
9285
|
var [n] = y.node(e, t);
|
|
9286
9286
|
return (r) => r === n;
|
|
9287
9287
|
}, po = function(t) {
|
|
@@ -9490,8 +9490,8 @@ var Sv = (e, t) => {
|
|
|
9490
9490
|
}
|
|
9491
9491
|
Q.transform(e, t), e.operations.push(t), y.normalize(e, {
|
|
9492
9492
|
operation: t
|
|
9493
|
-
}), t.type === "set_selection" && (e.marks = null),
|
|
9494
|
-
|
|
9493
|
+
}), t.type === "set_selection" && (e.marks = null), Or.get(e) || (Or.set(e, !0), Promise.resolve().then(() => {
|
|
9494
|
+
Or.set(e, !1), e.onChange({
|
|
9495
9495
|
operation: t
|
|
9496
9496
|
}), e.operations = [];
|
|
9497
9497
|
}));
|
|
@@ -9701,7 +9701,7 @@ var Rv = (e, t, n) => {
|
|
|
9701
9701
|
var d = Qu(Qu({}, y.marks(e) || {}), {}, {
|
|
9702
9702
|
[t]: n
|
|
9703
9703
|
});
|
|
9704
|
-
e.marks = d,
|
|
9704
|
+
e.marks = d, Or.get(e) || e.onChange();
|
|
9705
9705
|
}
|
|
9706
9706
|
}
|
|
9707
9707
|
};
|
|
@@ -10399,7 +10399,7 @@ var O0 = (e, t) => {
|
|
|
10399
10399
|
});
|
|
10400
10400
|
else {
|
|
10401
10401
|
var u = j0({}, y.marks(e) || {});
|
|
10402
|
-
delete u[t], e.marks = u,
|
|
10402
|
+
delete u[t], e.marks = u, Or.get(e) || e.onChange();
|
|
10403
10403
|
}
|
|
10404
10404
|
}
|
|
10405
10405
|
}, P0 = (e, t) => {
|
|
@@ -10933,7 +10933,7 @@ var H0 = function(t, n) {
|
|
|
10933
10933
|
} = n, {
|
|
10934
10934
|
match: s
|
|
10935
10935
|
} = n;
|
|
10936
|
-
if (s == null && (s = M.isPath(r) ?
|
|
10936
|
+
if (s == null && (s = M.isPath(r) ? br(t, r) : (B) => he.isElement(B) && y.isBlock(t, B)), !!r) {
|
|
10937
10937
|
var o = y.nodes(t, {
|
|
10938
10938
|
at: r,
|
|
10939
10939
|
match: s,
|
|
@@ -11085,7 +11085,7 @@ var H0 = function(t, n) {
|
|
|
11085
11085
|
match: s
|
|
11086
11086
|
} = t;
|
|
11087
11087
|
if (r) {
|
|
11088
|
-
s == null && (s = M.isPath(r) ?
|
|
11088
|
+
s == null && (s = M.isPath(r) ? br(e, r) : (p) => he.isElement(p) && y.isBlock(e, p));
|
|
11089
11089
|
var o = y.pathRef(e, n), l = y.nodes(e, {
|
|
11090
11090
|
at: r,
|
|
11091
11091
|
match: s,
|
|
@@ -11118,7 +11118,7 @@ var H0 = function(t, n) {
|
|
|
11118
11118
|
match: o
|
|
11119
11119
|
} = n;
|
|
11120
11120
|
if (s) {
|
|
11121
|
-
o == null && (o = M.isPath(s) ?
|
|
11121
|
+
o == null && (o = M.isPath(s) ? br(t, s) : (p) => he.isElement(p) && y.isBlock(t, p)), !r && Y.isRange(s) && (s = y.unhangRange(t, s, {
|
|
11122
11122
|
voids: i
|
|
11123
11123
|
}));
|
|
11124
11124
|
var l = y.nodes(t, {
|
|
@@ -11158,7 +11158,7 @@ var H0 = function(t, n) {
|
|
|
11158
11158
|
voids: h = !1
|
|
11159
11159
|
} = r;
|
|
11160
11160
|
if (a) {
|
|
11161
|
-
if (i == null && (i = M.isPath(a) ?
|
|
11161
|
+
if (i == null && (i = M.isPath(a) ? br(t, a) : (L) => he.isElement(L) && y.isBlock(t, L)), !l && Y.isRange(a) && (a = y.unhangRange(t, a, {
|
|
11162
11162
|
voids: h
|
|
11163
11163
|
})), d && Y.isRange(a)) {
|
|
11164
11164
|
if (Y.isCollapsed(a) && y.leaf(t, a.anchor)[0].text.length > 0)
|
|
@@ -11314,7 +11314,7 @@ var H0 = function(t, n) {
|
|
|
11314
11314
|
match: o
|
|
11315
11315
|
} = n;
|
|
11316
11316
|
if (s) {
|
|
11317
|
-
o == null && (o = M.isPath(s) ?
|
|
11317
|
+
o == null && (o = M.isPath(s) ? br(t, s) : (p) => he.isElement(p) && y.isBlock(t, p)), M.isPath(s) && (s = y.range(t, s));
|
|
11318
11318
|
var l = Y.isRange(s) ? y.rangeRef(t, s) : null, u = y.nodes(t, {
|
|
11319
11319
|
at: s,
|
|
11320
11320
|
match: o,
|
|
@@ -11376,7 +11376,7 @@ var ab = function(t, n) {
|
|
|
11376
11376
|
at: l = t.selection
|
|
11377
11377
|
} = r;
|
|
11378
11378
|
if (l) {
|
|
11379
|
-
if (o == null && (M.isPath(l) ? o =
|
|
11379
|
+
if (o == null && (M.isPath(l) ? o = br(t, l) : t.isInline(n) ? o = (b) => he.isElement(b) && y.isInline(t, b) || me.isText(b) : o = (b) => he.isElement(b) && y.isBlock(t, b)), a && Y.isRange(l)) {
|
|
11380
11380
|
var [u, d] = Y.edges(l), h = y.rangeRef(t, l, {
|
|
11381
11381
|
affinity: "inward"
|
|
11382
11382
|
});
|
|
@@ -11964,16 +11964,16 @@ var kb = _b, Fb = kb, Ab = /^\s+/;
|
|
|
11964
11964
|
function Bb(e) {
|
|
11965
11965
|
return e && e.slice(0, Fb(e) + 1).replace(Ab, "");
|
|
11966
11966
|
}
|
|
11967
|
-
var Tb = Bb, Sb = qd, jb = Sb.Symbol, Wd = jb, fl = Wd, Ud = Object.prototype, Ob = Ud.hasOwnProperty, Pb = Ud.toString,
|
|
11967
|
+
var Tb = Bb, Sb = qd, jb = Sb.Symbol, Wd = jb, fl = Wd, Ud = Object.prototype, Ob = Ud.hasOwnProperty, Pb = Ud.toString, Fr = fl ? fl.toStringTag : void 0;
|
|
11968
11968
|
function Nb(e) {
|
|
11969
|
-
var t = Ob.call(e,
|
|
11969
|
+
var t = Ob.call(e, Fr), n = e[Fr];
|
|
11970
11970
|
try {
|
|
11971
|
-
e[
|
|
11971
|
+
e[Fr] = void 0;
|
|
11972
11972
|
var r = !0;
|
|
11973
11973
|
} catch {
|
|
11974
11974
|
}
|
|
11975
11975
|
var i = Pb.call(e);
|
|
11976
|
-
return r && (t ? e[
|
|
11976
|
+
return r && (t ? e[Fr] = n : delete e[Fr]), i;
|
|
11977
11977
|
}
|
|
11978
11978
|
var Mb = Nb, Rb = Object.prototype, $b = Rb.toString;
|
|
11979
11979
|
function Ib(e) {
|
|
@@ -12165,10 +12165,10 @@ var Bn = [], Cy = function() {
|
|
|
12165
12165
|
typeof ErrorEvent == "function" ? e = new ErrorEvent("error", {
|
|
12166
12166
|
message: xl
|
|
12167
12167
|
}) : (e = document.createEvent("Event"), e.initEvent("error", !1, !1), e.message = xl), window.dispatchEvent(e);
|
|
12168
|
-
},
|
|
12168
|
+
}, Vr;
|
|
12169
12169
|
(function(e) {
|
|
12170
12170
|
e.BORDER_BOX = "border-box", e.CONTENT_BOX = "content-box", e.DEVICE_PIXEL_CONTENT_BOX = "device-pixel-content-box";
|
|
12171
|
-
})(
|
|
12171
|
+
})(Vr || (Vr = {}));
|
|
12172
12172
|
var Tn = function(e) {
|
|
12173
12173
|
return Object.freeze(e);
|
|
12174
12174
|
}, ky = function() {
|
|
@@ -12216,7 +12216,7 @@ var Tn = function(e) {
|
|
|
12216
12216
|
return !0;
|
|
12217
12217
|
}
|
|
12218
12218
|
return !1;
|
|
12219
|
-
},
|
|
12219
|
+
}, Pr = typeof window < "u" ? window : {}, mi = /* @__PURE__ */ new WeakMap(), Cl = /auto|scroll/, Ay = /^tb|vertical/, By = /msie|trident/i.test(Pr.navigator && Pr.navigator.userAgent), Wt = function(e) {
|
|
12220
12220
|
return parseFloat(e || "0");
|
|
12221
12221
|
}, rr = function(e, t, n) {
|
|
12222
12222
|
return e === void 0 && (e = 0), t === void 0 && (t = 0), n === void 0 && (n = !1), new ky((n ? t : e) || 0, (n ? e : t) || 0);
|
|
@@ -12240,9 +12240,9 @@ var Tn = function(e) {
|
|
|
12240
12240
|
}, Yd = function(e, t, n) {
|
|
12241
12241
|
var r = Zd(e, n), i = r.borderBoxSize, a = r.contentBoxSize, s = r.devicePixelContentBoxSize;
|
|
12242
12242
|
switch (t) {
|
|
12243
|
-
case
|
|
12243
|
+
case Vr.DEVICE_PIXEL_CONTENT_BOX:
|
|
12244
12244
|
return s;
|
|
12245
|
-
case
|
|
12245
|
+
case Vr.BORDER_BOX:
|
|
12246
12246
|
return i;
|
|
12247
12247
|
default:
|
|
12248
12248
|
return a;
|
|
@@ -12354,16 +12354,16 @@ var Tn = function(e) {
|
|
|
12354
12354
|
var t = this, n = function() {
|
|
12355
12355
|
return t.observer && t.observer.observe(document.body, $y);
|
|
12356
12356
|
};
|
|
12357
|
-
document.body ? n() :
|
|
12357
|
+
document.body ? n() : Pr.addEventListener("DOMContentLoaded", n);
|
|
12358
12358
|
}, e.prototype.start = function() {
|
|
12359
12359
|
var t = this;
|
|
12360
12360
|
this.stopped && (this.stopped = !1, this.observer = new MutationObserver(this.listener), this.observe(), kl.forEach(function(n) {
|
|
12361
|
-
return
|
|
12361
|
+
return Pr.addEventListener(n, t.listener, !0);
|
|
12362
12362
|
}));
|
|
12363
12363
|
}, e.prototype.stop = function() {
|
|
12364
12364
|
var t = this;
|
|
12365
12365
|
this.stopped || (this.observer && this.observer.disconnect(), kl.forEach(function(n) {
|
|
12366
|
-
return
|
|
12366
|
+
return Pr.removeEventListener(n, t.listener, !0);
|
|
12367
12367
|
}), this.stopped = !0);
|
|
12368
12368
|
}, e;
|
|
12369
12369
|
}(), Os = new Iy(), Al = function(e) {
|
|
@@ -12372,7 +12372,7 @@ var Tn = function(e) {
|
|
|
12372
12372
|
return !bo(e) && !Fy(e) && getComputedStyle(e).display === "inline";
|
|
12373
12373
|
}, zy = function() {
|
|
12374
12374
|
function e(t, n) {
|
|
12375
|
-
this.target = t, this.observedBox = n ||
|
|
12375
|
+
this.target = t, this.observedBox = n || Vr.CONTENT_BOX, this.lastReportedSize = {
|
|
12376
12376
|
inlineSize: 0,
|
|
12377
12377
|
blockSize: 0
|
|
12378
12378
|
};
|
|
@@ -12590,21 +12590,21 @@ function lr(e, t) {
|
|
|
12590
12590
|
}
|
|
12591
12591
|
return n;
|
|
12592
12592
|
}
|
|
12593
|
-
function
|
|
12593
|
+
function Kr(e) {
|
|
12594
12594
|
"@babel/helpers - typeof";
|
|
12595
|
-
return
|
|
12595
|
+
return Kr = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(t) {
|
|
12596
12596
|
return typeof t;
|
|
12597
12597
|
} : function(t) {
|
|
12598
12598
|
return t && typeof Symbol == "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t;
|
|
12599
|
-
},
|
|
12599
|
+
}, Kr(e);
|
|
12600
12600
|
}
|
|
12601
12601
|
function Yy(e, t) {
|
|
12602
|
-
if (
|
|
12602
|
+
if (Kr(e) !== "object" || e === null)
|
|
12603
12603
|
return e;
|
|
12604
12604
|
var n = e[Symbol.toPrimitive];
|
|
12605
12605
|
if (n !== void 0) {
|
|
12606
12606
|
var r = n.call(e, t || "default");
|
|
12607
|
-
if (
|
|
12607
|
+
if (Kr(r) !== "object")
|
|
12608
12608
|
return r;
|
|
12609
12609
|
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
12610
12610
|
}
|
|
@@ -12612,7 +12612,7 @@ function Yy(e, t) {
|
|
|
12612
12612
|
}
|
|
12613
12613
|
function Gy(e) {
|
|
12614
12614
|
var t = Yy(e, "string");
|
|
12615
|
-
return
|
|
12615
|
+
return Kr(t) === "symbol" ? t : String(t);
|
|
12616
12616
|
}
|
|
12617
12617
|
function Mt(e, t, n) {
|
|
12618
12618
|
return t = Gy(t), t in e ? Object.defineProperty(e, t, {
|
|
@@ -12627,9 +12627,9 @@ var xo = /* @__PURE__ */ kt(null), wn = () => {
|
|
|
12627
12627
|
if (!e)
|
|
12628
12628
|
throw new Error("The `useSlateStatic` hook must be used inside the <Slate> component's context.");
|
|
12629
12629
|
return e;
|
|
12630
|
-
}, nf = parseInt(te.version.split(".")[0], 10), Qy = typeof navigator < "u" && typeof window < "u" && /iPad|iPhone|iPod/.test(navigator.userAgent) && !window.MSStream, Tl = typeof navigator < "u" && /Mac OS X/.test(navigator.userAgent), bt = typeof navigator < "u" && /Android/.test(navigator.userAgent), er = typeof navigator < "u" && /^(?!.*Seamonkey)(?=.*Firefox).*/i.test(navigator.userAgent),
|
|
12630
|
+
}, nf = parseInt(te.version.split(".")[0], 10), Qy = typeof navigator < "u" && typeof window < "u" && /iPad|iPhone|iPod/.test(navigator.userAgent) && !window.MSStream, Tl = typeof navigator < "u" && /Mac OS X/.test(navigator.userAgent), bt = typeof navigator < "u" && /Android/.test(navigator.userAgent), er = typeof navigator < "u" && /^(?!.*Seamonkey)(?=.*Firefox).*/i.test(navigator.userAgent), Sr = typeof navigator < "u" && /AppleWebKit(?!.*Chrome)/i.test(navigator.userAgent), Jy = 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), Xy = typeof navigator < "u" && /Chrome?\/(?:[0-7][0-5]|[0-6][0-9])(?:\.)/i.test(navigator.userAgent), e1 = bt && typeof navigator < "u" && /Chrome?\/(?:[0-5]?\d)(?:\.)/i.test(navigator.userAgent), t1 = typeof navigator < "u" && /^(?!.*Seamonkey)(?=.*Firefox\/(?:[0-7][0-9]|[0-8][0-6])(?:\.)).*/i.test(navigator.userAgent), n1 = typeof navigator < "u" && /.*UCBrowser/.test(navigator.userAgent), r1 = typeof navigator < "u" && /.*Wechat/.test(navigator.userAgent) && !/.*MacWechat/.test(navigator.userAgent), Ti = typeof window < "u" && typeof window.document < "u" && typeof window.document.createElement < "u", fn = (!Xy || !e1) && !Jy && // globalThis is undefined in older browsers
|
|
12631
12631
|
typeof globalThis < "u" && globalThis.InputEvent && // @ts-ignore The `getTargetRanges` property isn't recognized.
|
|
12632
|
-
typeof globalThis.InputEvent.prototype.getTargetRanges == "function", wo = /* @__PURE__ */ new WeakMap(), Co = /* @__PURE__ */ new WeakMap(), af = /* @__PURE__ */ new WeakMap(), Si = /* @__PURE__ */ new WeakMap(), Ps = /* @__PURE__ */ new WeakMap(),
|
|
12632
|
+
typeof globalThis.InputEvent.prototype.getTargetRanges == "function", wo = /* @__PURE__ */ new WeakMap(), Co = /* @__PURE__ */ new WeakMap(), af = /* @__PURE__ */ new WeakMap(), Si = /* @__PURE__ */ new WeakMap(), Ps = /* @__PURE__ */ new WeakMap(), Zr = /* @__PURE__ */ new WeakMap(), Sn = /* @__PURE__ */ new WeakMap(), Yi = /* @__PURE__ */ new WeakMap(), fa = /* @__PURE__ */ new WeakMap(), Ns = /* @__PURE__ */ new WeakMap(), bn = /* @__PURE__ */ new WeakMap(), Fn = /* @__PURE__ */ new WeakMap(), Nr = /* @__PURE__ */ new WeakMap(), Ms = /* @__PURE__ */ new WeakMap(), Eo = /* @__PURE__ */ new WeakMap(), It = /* @__PURE__ */ new WeakMap(), nn = /* @__PURE__ */ new WeakMap(), Ct = /* @__PURE__ */ new WeakMap(), mn = /* @__PURE__ */ new WeakMap(), pn = /* @__PURE__ */ new WeakMap(), sf = /* @__PURE__ */ new WeakMap(), cr = Symbol("placeholder"), of = Symbol("mark-placeholder"), i1 = globalThis.Text, _o = (e) => e && e.ownerDocument && e.ownerDocument.defaultView || null, a1 = (e) => Dn(e) && e.nodeType === 8, Nt = (e) => Dn(e) && e.nodeType === 1, Dn = (e) => {
|
|
12633
12633
|
var t = _o(e);
|
|
12634
12634
|
return !!t && e instanceof t.Node;
|
|
12635
12635
|
}, Rs = (e) => {
|
|
@@ -12922,7 +12922,7 @@ var X = {
|
|
|
12922
12922
|
toSlateNode: (e, t) => {
|
|
12923
12923
|
var n = Nt(t) ? t : t.parentElement;
|
|
12924
12924
|
n && !n.hasAttribute("data-slate-node") && (n = n.closest("[data-slate-node]"));
|
|
12925
|
-
var r = n ?
|
|
12925
|
+
var r = n ? Zr.get(n) : null;
|
|
12926
12926
|
if (!r)
|
|
12927
12927
|
throw new Error("Cannot resolve a Slate node from DOM node: ".concat(n));
|
|
12928
12928
|
return r;
|
|
@@ -13606,20 +13606,20 @@ function E1(e) {
|
|
|
13606
13606
|
at: R
|
|
13607
13607
|
});
|
|
13608
13608
|
if (M.equals(R.anchor.path, R.focus.path)) {
|
|
13609
|
-
var [Ae, je] = Y.edges(R),
|
|
13609
|
+
var [Ae, je] = Y.edges(R), K = {
|
|
13610
13610
|
start: Ae.offset,
|
|
13611
13611
|
end: je.offset,
|
|
13612
13612
|
text: ve
|
|
13613
13613
|
};
|
|
13614
13614
|
if (ve && u && T === "insertCompositionText") {
|
|
13615
|
-
var se = u.start + u.text.search(/\S|$/), pe =
|
|
13616
|
-
pe === se + 1 &&
|
|
13615
|
+
var se = u.start + u.text.search(/\S|$/), pe = K.start + K.text.search(/\S|$/);
|
|
13616
|
+
pe === se + 1 && K.end === u.start + u.text.length ? (K.start -= 1, u = null, z()) : u = !1;
|
|
13617
13617
|
} else
|
|
13618
|
-
T === "insertText" ? u === null ? u =
|
|
13618
|
+
T === "insertText" ? u === null ? u = K : u && Y.isCollapsed(R) && u.end + u.text.length === Ae.offset ? u = bi(bi({}, u), {}, {
|
|
13619
13619
|
text: u.text + ve
|
|
13620
13620
|
}) : u = !1 : u = !1;
|
|
13621
13621
|
if (x) {
|
|
13622
|
-
b(Ae.path,
|
|
13622
|
+
b(Ae.path, K);
|
|
13623
13623
|
return;
|
|
13624
13624
|
}
|
|
13625
13625
|
}
|
|
@@ -13675,10 +13675,10 @@ function _1() {
|
|
|
13675
13675
|
e.current = !1;
|
|
13676
13676
|
}), []), e.current;
|
|
13677
13677
|
}
|
|
13678
|
-
var
|
|
13678
|
+
var Yr = Ti ? ph : de;
|
|
13679
13679
|
function k1(e, t, n) {
|
|
13680
13680
|
var [r] = ue(() => new MutationObserver(t));
|
|
13681
|
-
|
|
13681
|
+
Yr(() => {
|
|
13682
13682
|
r.takeRecords();
|
|
13683
13683
|
}), de(() => {
|
|
13684
13684
|
if (!e.current)
|
|
@@ -13792,7 +13792,7 @@ var R1 = (e) => {
|
|
|
13792
13792
|
isTrailing: n = !1
|
|
13793
13793
|
} = e, r = ke(null), i = () => "".concat(t ?? "").concat(n ? `
|
|
13794
13794
|
` : ""), [a] = ue(i);
|
|
13795
|
-
return
|
|
13795
|
+
return Yr(() => {
|
|
13796
13796
|
var s = i();
|
|
13797
13797
|
r.current && r.current.textContent !== s && (r.current.textContent = s);
|
|
13798
13798
|
}), /* @__PURE__ */ te.createElement($1, {
|
|
@@ -13886,7 +13886,7 @@ var z1 = (e) => {
|
|
|
13886
13886
|
userSelect: "none",
|
|
13887
13887
|
textDecoration: "none",
|
|
13888
13888
|
// Fixes https://github.com/udecode/plate/issues/2315
|
|
13889
|
-
WebkitUserModify:
|
|
13889
|
+
WebkitUserModify: Sr ? "inherit" : void 0
|
|
13890
13890
|
},
|
|
13891
13891
|
contentEditable: !1,
|
|
13892
13892
|
ref: p
|
|
@@ -13931,7 +13931,7 @@ var z1 = (e) => {
|
|
|
13931
13931
|
}
|
|
13932
13932
|
var g = Re((f) => {
|
|
13933
13933
|
var b = fa.get(o);
|
|
13934
|
-
f ? (b == null || b.set(d, f), Sn.set(s, f),
|
|
13934
|
+
f ? (b == null || b.set(d, f), Sn.set(s, f), Zr.set(f, s)) : (b == null || b.delete(d), Sn.delete(s), l.current && Zr.delete(l.current)), l.current = f;
|
|
13935
13935
|
}, [l, o, d, s]);
|
|
13936
13936
|
return /* @__PURE__ */ te.createElement("span", {
|
|
13937
13937
|
"data-slate-node": "text",
|
|
@@ -13969,7 +13969,7 @@ var H1 = (e) => {
|
|
|
13969
13969
|
selection: s
|
|
13970
13970
|
} = e, o = wn(), l = G1(), u = o.isInline(n), d = X.findKey(o, n), h = Re((w) => {
|
|
13971
13971
|
var E = fa.get(o);
|
|
13972
|
-
w ? (E == null || E.set(d, w), Sn.set(n, w),
|
|
13972
|
+
w ? (E == null || E.set(d, w), Sn.set(n, w), Zr.set(w, n)) : (E == null || E.delete(d), Sn.delete(n));
|
|
13973
13973
|
}, [o, d, n]), m = vf({
|
|
13974
13974
|
decorations: t,
|
|
13975
13975
|
node: n,
|
|
@@ -14291,9 +14291,9 @@ var oD = (e) => /* @__PURE__ */ te.createElement(te.Fragment, null, vf(e)), uD =
|
|
|
14291
14291
|
node: w,
|
|
14292
14292
|
onDOMSelectionChange: $,
|
|
14293
14293
|
scheduleOnDOMSelectionChange: A
|
|
14294
|
-
}),
|
|
14294
|
+
}), Yr(() => {
|
|
14295
14295
|
var k, P, j;
|
|
14296
|
-
w.current && (j = _o(w.current)) ? (af.set(f, j), Si.set(f, w.current), Sn.set(f, w.current),
|
|
14296
|
+
w.current && (j = _o(w.current)) ? (af.set(f, j), Si.set(f, w.current), Sn.set(f, w.current), Zr.set(w.current, f)) : Sn.delete(f);
|
|
14297
14297
|
var {
|
|
14298
14298
|
selection: q
|
|
14299
14299
|
} = f, J = X.findDocumentOrShadowRoot(f), H = J.getSelection();
|
|
@@ -14408,7 +14408,7 @@ var oD = (e) => /* @__PURE__ */ te.createElement(te.Fragment, null, vf(e)), uD =
|
|
|
14408
14408
|
if (!j || !Y.equals(j, ve)) {
|
|
14409
14409
|
ee = !1;
|
|
14410
14410
|
var Ae = !H && f.selection && y.rangeRef(f, f.selection);
|
|
14411
|
-
Q.select(f, ve), Ae &&
|
|
14411
|
+
Q.select(f, ve), Ae && Nr.set(f, Ae);
|
|
14412
14412
|
}
|
|
14413
14413
|
}
|
|
14414
14414
|
}
|
|
@@ -14498,13 +14498,13 @@ var oD = (e) => /* @__PURE__ */ te.createElement(te.Fragment, null, vf(e)), uD =
|
|
|
14498
14498
|
break;
|
|
14499
14499
|
}
|
|
14500
14500
|
}
|
|
14501
|
-
var
|
|
14502
|
-
|
|
14501
|
+
var K = (P = Nr.get(f)) === null || P === void 0 ? void 0 : P.unref();
|
|
14502
|
+
Nr.delete(f), K && (!f.selection || !Y.equals(f.selection, K)) && Q.select(f, K);
|
|
14503
14503
|
}
|
|
14504
14504
|
}, [f, $, C, i, s, A]), T = Re((k) => {
|
|
14505
14505
|
k == null ? ($.cancel(), A.cancel(), Si.delete(f), Sn.delete(f), w.current && fn && w.current.removeEventListener("beforeinput", _)) : fn && k.addEventListener("beforeinput", _), w.current = k;
|
|
14506
14506
|
}, [$, A, f, _]);
|
|
14507
|
-
|
|
14507
|
+
Yr(() => {
|
|
14508
14508
|
var k = X.getWindow(f);
|
|
14509
14509
|
return k.document.addEventListener("selectionchange", A), () => {
|
|
14510
14510
|
k.document.removeEventListener("selectionchange", A);
|
|
@@ -14634,7 +14634,7 @@ var oD = (e) => /* @__PURE__ */ te.createElement(te.Fragment, null, vf(e)), uD =
|
|
|
14634
14634
|
if (he.isElement(J) && !f.isVoid(J))
|
|
14635
14635
|
return;
|
|
14636
14636
|
}
|
|
14637
|
-
if (
|
|
14637
|
+
if (Sr) {
|
|
14638
14638
|
var H = P.getSelection();
|
|
14639
14639
|
H == null || H.removeAllRanges();
|
|
14640
14640
|
}
|
|
@@ -14681,7 +14681,7 @@ var oD = (e) => /* @__PURE__ */ te.createElement(te.Fragment, null, vf(e)), uD =
|
|
|
14681
14681
|
v(!1), Fn.set(f, !1);
|
|
14682
14682
|
}), (P = z.current) === null || P === void 0 || P.handleCompositionEnd(k), gt(k, g.onCompositionEnd) || bt)
|
|
14683
14683
|
return;
|
|
14684
|
-
if (!
|
|
14684
|
+
if (!Sr && !t1 && !Qy && !r1 && !n1 && k.data) {
|
|
14685
14685
|
var j = It.get(f);
|
|
14686
14686
|
It.delete(f), j !== void 0 && (nn.set(f, f.marks), f.marks = j), y.insertText(f, k.data);
|
|
14687
14687
|
var q = nn.get(f);
|
|
@@ -14857,7 +14857,7 @@ var oD = (e) => /* @__PURE__ */ te.createElement(te.Fragment, null, vf(e)), uD =
|
|
|
14857
14857
|
return;
|
|
14858
14858
|
}
|
|
14859
14859
|
if (fn) {
|
|
14860
|
-
if ((rf ||
|
|
14860
|
+
if ((rf || Sr) && q && (Je.isDeleteBackward(j) || Je.isDeleteForward(j)) && Y.isCollapsed(q)) {
|
|
14861
14861
|
var G = oe.parent(f, q.anchor.path);
|
|
14862
14862
|
if (he.isElement(G) && y.isVoid(f, G) && (y.isInline(f, G) || y.isBlock(f, G))) {
|
|
14863
14863
|
k.preventDefault(), y.deleteBackward(f, {
|
|
@@ -14927,7 +14927,7 @@ var oD = (e) => /* @__PURE__ */ te.createElement(te.Fragment, null, vf(e)), uD =
|
|
|
14927
14927
|
}
|
|
14928
14928
|
}, [s, f, g.onKeyDown]),
|
|
14929
14929
|
onPaste: Re((k) => {
|
|
14930
|
-
!s && X.hasEditableTarget(f, k.target) && !gt(k, g.onPaste) && (!fn || s1(k.nativeEvent) ||
|
|
14930
|
+
!s && X.hasEditableTarget(f, k.target) && !gt(k, g.onPaste) && (!fn || s1(k.nativeEvent) || Sr) && (k.preventDefault(), X.insertData(f, k.clipboardData));
|
|
14931
14931
|
}, [s, f, g.onPaste])
|
|
14932
14932
|
}), /* @__PURE__ */ te.createElement(oD, {
|
|
14933
14933
|
decorations: R,
|
|
@@ -15022,7 +15022,7 @@ var gD = ["editor", "children", "onChange", "onSelectionChange", "onValueChange"
|
|
|
15022
15022
|
var [p, g] = ue(X.isFocused(t));
|
|
15023
15023
|
return de(() => {
|
|
15024
15024
|
g(X.isFocused(t));
|
|
15025
|
-
}, [t]),
|
|
15025
|
+
}, [t]), Yr(() => {
|
|
15026
15026
|
var f = () => g(X.isFocused(t));
|
|
15027
15027
|
return nf >= 17 ? (document.addEventListener("focusin", f), document.addEventListener("focusout", f), () => {
|
|
15028
15028
|
document.removeEventListener("focusin", f), document.removeEventListener("focusout", f);
|
|
@@ -15131,7 +15131,7 @@ var yD = function(t) {
|
|
|
15131
15131
|
}
|
|
15132
15132
|
case "set_selection": {
|
|
15133
15133
|
var v;
|
|
15134
|
-
(v =
|
|
15134
|
+
(v = Nr.get(r)) === null || v === void 0 || v.unref(), Nr.delete(r);
|
|
15135
15135
|
break;
|
|
15136
15136
|
}
|
|
15137
15137
|
case "insert_node":
|
|
@@ -15488,7 +15488,7 @@ function kD(e, t) {
|
|
|
15488
15488
|
i(null, s);
|
|
15489
15489
|
}
|
|
15490
15490
|
}
|
|
15491
|
-
function
|
|
15491
|
+
function Mr(e) {
|
|
15492
15492
|
return !e || typeof e != "object" ? "" : "position" in e || "type" in e ? ec(e.position) : "start" in e || "end" in e ? ec(e) : "line" in e || "column" in e ? Ws(e) : "";
|
|
15493
15493
|
}
|
|
15494
15494
|
function Ws(e) {
|
|
@@ -15571,7 +15571,7 @@ class Ft extends Error {
|
|
|
15571
15571
|
l && (a.place = l.position);
|
|
15572
15572
|
}
|
|
15573
15573
|
const o = a.place && "start" in a.place ? a.place.start : a.place;
|
|
15574
|
-
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 =
|
|
15574
|
+
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 = Mr(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;
|
|
15575
15575
|
}
|
|
15576
15576
|
}
|
|
15577
15577
|
Ft.prototype.file = "";
|
|
@@ -17445,7 +17445,7 @@ class kx {
|
|
|
17445
17445
|
const i = n || 0;
|
|
17446
17446
|
this.setCursor(Math.trunc(t));
|
|
17447
17447
|
const a = this.right.splice(this.right.length - i, Number.POSITIVE_INFINITY);
|
|
17448
|
-
return r &&
|
|
17448
|
+
return r && Ar(this.left, r), a.reverse();
|
|
17449
17449
|
}
|
|
17450
17450
|
/**
|
|
17451
17451
|
* Remove and return the highest-numbered item in the array, so
|
|
@@ -17480,7 +17480,7 @@ class kx {
|
|
|
17480
17480
|
* Nothing.
|
|
17481
17481
|
*/
|
|
17482
17482
|
pushMany(t) {
|
|
17483
|
-
this.setCursor(Number.POSITIVE_INFINITY),
|
|
17483
|
+
this.setCursor(Number.POSITIVE_INFINITY), Ar(this.left, t);
|
|
17484
17484
|
}
|
|
17485
17485
|
/**
|
|
17486
17486
|
* Inserts a single item to the low-numbered side of the array;
|
|
@@ -17504,7 +17504,7 @@ class kx {
|
|
|
17504
17504
|
* Nothing.
|
|
17505
17505
|
*/
|
|
17506
17506
|
unshiftMany(t) {
|
|
17507
|
-
this.setCursor(0),
|
|
17507
|
+
this.setCursor(0), Ar(this.right, t.reverse());
|
|
17508
17508
|
}
|
|
17509
17509
|
/**
|
|
17510
17510
|
* Move the cursor to a specific position in the array. Requires
|
|
@@ -17522,14 +17522,14 @@ class kx {
|
|
|
17522
17522
|
if (!(t === this.left.length || t > this.left.length && this.right.length === 0 || t < 0 && this.left.length === 0))
|
|
17523
17523
|
if (t < this.left.length) {
|
|
17524
17524
|
const n = this.left.splice(t, Number.POSITIVE_INFINITY);
|
|
17525
|
-
|
|
17525
|
+
Ar(this.right, n.reverse());
|
|
17526
17526
|
} else {
|
|
17527
17527
|
const n = this.right.splice(this.left.length + this.right.length - t, Number.POSITIVE_INFINITY);
|
|
17528
|
-
|
|
17528
|
+
Ar(this.left, n.reverse());
|
|
17529
17529
|
}
|
|
17530
17530
|
}
|
|
17531
17531
|
}
|
|
17532
|
-
function
|
|
17532
|
+
function Ar(e, t) {
|
|
17533
17533
|
let n = 0;
|
|
17534
17534
|
if (t.length < 1e4)
|
|
17535
17535
|
e.push(...t);
|
|
@@ -17695,7 +17695,7 @@ function jf(e, t, n, r, i, a) {
|
|
|
17695
17695
|
return m === s || m === 92 ? (e.consume(m), d) : d(m);
|
|
17696
17696
|
}
|
|
17697
17697
|
}
|
|
17698
|
-
function
|
|
17698
|
+
function Rr(e, t) {
|
|
17699
17699
|
let n;
|
|
17700
17700
|
return r;
|
|
17701
17701
|
function r(i) {
|
|
@@ -17736,7 +17736,7 @@ function Nx(e, t, n) {
|
|
|
17736
17736
|
return i = ir(r.sliceSerialize(r.events[r.events.length - 1][1]).slice(1, -1)), p === 58 ? (e.enter("definitionMarker"), e.consume(p), e.exit("definitionMarker"), l) : n(p);
|
|
17737
17737
|
}
|
|
17738
17738
|
function l(p) {
|
|
17739
|
-
return _t(p) ?
|
|
17739
|
+
return _t(p) ? Rr(e, u)(p) : u(p);
|
|
17740
17740
|
}
|
|
17741
17741
|
function u(p) {
|
|
17742
17742
|
return Tf(
|
|
@@ -17764,7 +17764,7 @@ function Nx(e, t, n) {
|
|
|
17764
17764
|
function Mx(e, t, n) {
|
|
17765
17765
|
return r;
|
|
17766
17766
|
function r(o) {
|
|
17767
|
-
return _t(o) ?
|
|
17767
|
+
return _t(o) ? Rr(e, i)(o) : n(o);
|
|
17768
17768
|
}
|
|
17769
17769
|
function i(o) {
|
|
17770
17770
|
return jf(e, a, n, "definitionTitle", "definitionTitleMarker", "definitionTitleString")(o);
|
|
@@ -18210,13 +18210,13 @@ function iw(e, t, n) {
|
|
|
18210
18210
|
return e.enter("resource"), e.enter("resourceMarker"), e.consume(h), e.exit("resourceMarker"), i;
|
|
18211
18211
|
}
|
|
18212
18212
|
function i(h) {
|
|
18213
|
-
return _t(h) ?
|
|
18213
|
+
return _t(h) ? Rr(e, a)(h) : a(h);
|
|
18214
18214
|
}
|
|
18215
18215
|
function a(h) {
|
|
18216
18216
|
return h === 41 ? d(h) : Tf(e, s, o, "resourceDestination", "resourceDestinationLiteral", "resourceDestinationLiteralMarker", "resourceDestinationRaw", "resourceDestinationString", 32)(h);
|
|
18217
18217
|
}
|
|
18218
18218
|
function s(h) {
|
|
18219
|
-
return _t(h) ?
|
|
18219
|
+
return _t(h) ? Rr(e, l)(h) : d(h);
|
|
18220
18220
|
}
|
|
18221
18221
|
function o(h) {
|
|
18222
18222
|
return n(h);
|
|
@@ -18225,7 +18225,7 @@ function iw(e, t, n) {
|
|
|
18225
18225
|
return h === 34 || h === 39 || h === 40 ? jf(e, u, n, "resourceTitle", "resourceTitleMarker", "resourceTitleString")(h) : d(h);
|
|
18226
18226
|
}
|
|
18227
18227
|
function u(h) {
|
|
18228
|
-
return _t(h) ?
|
|
18228
|
+
return _t(h) ? Rr(e, d)(h) : d(h);
|
|
18229
18229
|
}
|
|
18230
18230
|
function d(h) {
|
|
18231
18231
|
return h === 41 ? (e.enter("resourceMarker"), e.consume(h), e.exit("resourceMarker"), e.exit("resource"), t) : n(h);
|
|
@@ -19041,7 +19041,7 @@ function Zw(e) {
|
|
|
19041
19041
|
Mf(t, (e || {}).mdastExtensions || []);
|
|
19042
19042
|
const n = {};
|
|
19043
19043
|
return r;
|
|
19044
|
-
function r(
|
|
19044
|
+
function r(K) {
|
|
19045
19045
|
let se = {
|
|
19046
19046
|
type: "root",
|
|
19047
19047
|
children: []
|
|
@@ -19057,24 +19057,24 @@ function Zw(e) {
|
|
|
19057
19057
|
data: n
|
|
19058
19058
|
}, ye = [];
|
|
19059
19059
|
let _e = -1;
|
|
19060
|
-
for (; ++_e <
|
|
19061
|
-
if (
|
|
19062
|
-
if (
|
|
19060
|
+
for (; ++_e < K.length; )
|
|
19061
|
+
if (K[_e][1].type === "listOrdered" || K[_e][1].type === "listUnordered")
|
|
19062
|
+
if (K[_e][0] === "enter")
|
|
19063
19063
|
ye.push(_e);
|
|
19064
19064
|
else {
|
|
19065
19065
|
const Xe = ye.pop();
|
|
19066
|
-
_e = i(
|
|
19066
|
+
_e = i(K, Xe, _e);
|
|
19067
19067
|
}
|
|
19068
|
-
for (_e = -1; ++_e <
|
|
19069
|
-
const Xe = t[
|
|
19070
|
-
Nf.call(Xe,
|
|
19068
|
+
for (_e = -1; ++_e < K.length; ) {
|
|
19069
|
+
const Xe = t[K[_e][0]];
|
|
19070
|
+
Nf.call(Xe, K[_e][1].type) && Xe[K[_e][1].type].call(
|
|
19071
19071
|
Object.assign(
|
|
19072
19072
|
{
|
|
19073
|
-
sliceSerialize:
|
|
19073
|
+
sliceSerialize: K[_e][2].sliceSerialize
|
|
19074
19074
|
},
|
|
19075
19075
|
pe
|
|
19076
19076
|
),
|
|
19077
|
-
|
|
19077
|
+
K[_e][1]
|
|
19078
19078
|
);
|
|
19079
19079
|
}
|
|
19080
19080
|
if (pe.tokenStack.length > 0) {
|
|
@@ -19083,14 +19083,14 @@ function Zw(e) {
|
|
|
19083
19083
|
}
|
|
19084
19084
|
for (se.position = {
|
|
19085
19085
|
start: hn(
|
|
19086
|
-
|
|
19086
|
+
K.length > 0 ? K[0][1].start : {
|
|
19087
19087
|
line: 1,
|
|
19088
19088
|
column: 1,
|
|
19089
19089
|
offset: 0
|
|
19090
19090
|
}
|
|
19091
19091
|
),
|
|
19092
19092
|
end: hn(
|
|
19093
|
-
|
|
19093
|
+
K.length > 0 ? K[K.length - 2][1].end : {
|
|
19094
19094
|
line: 1,
|
|
19095
19095
|
column: 1,
|
|
19096
19096
|
offset: 0
|
|
@@ -19100,10 +19100,10 @@ function Zw(e) {
|
|
|
19100
19100
|
se = t.transforms[_e](se) || se;
|
|
19101
19101
|
return se;
|
|
19102
19102
|
}
|
|
19103
|
-
function i(
|
|
19103
|
+
function i(K, se, pe) {
|
|
19104
19104
|
let ye = se - 1, _e = -1, Xe = !1, et, xe, Oe, st;
|
|
19105
19105
|
for (; ++ye <= pe; ) {
|
|
19106
|
-
const it =
|
|
19106
|
+
const it = K[ye];
|
|
19107
19107
|
switch (it[1].type) {
|
|
19108
19108
|
case "listUnordered":
|
|
19109
19109
|
case "listOrdered":
|
|
@@ -19128,18 +19128,18 @@ function Zw(e) {
|
|
|
19128
19128
|
if (et) {
|
|
19129
19129
|
let At = ye;
|
|
19130
19130
|
for (xe = void 0; At--; ) {
|
|
19131
|
-
const dt =
|
|
19131
|
+
const dt = K[At];
|
|
19132
19132
|
if (dt[1].type === "lineEnding" || dt[1].type === "lineEndingBlank") {
|
|
19133
19133
|
if (dt[0] === "exit")
|
|
19134
19134
|
continue;
|
|
19135
|
-
xe && (
|
|
19135
|
+
xe && (K[xe][1].type = "lineEndingBlank", Xe = !0), dt[1].type = "lineEnding", xe = At;
|
|
19136
19136
|
} else if (!(dt[1].type === "linePrefix" || dt[1].type === "blockQuotePrefix" || dt[1].type === "blockQuotePrefixWhitespace" || dt[1].type === "blockQuoteMarker" || dt[1].type === "listItemIndent"))
|
|
19137
19137
|
break;
|
|
19138
19138
|
}
|
|
19139
19139
|
Oe && (!xe || Oe < xe) && (et._spread = !0), et.end = Object.assign(
|
|
19140
19140
|
{},
|
|
19141
|
-
xe ?
|
|
19142
|
-
),
|
|
19141
|
+
xe ? K[xe][1].start : it[1].end
|
|
19142
|
+
), K.splice(xe || ye, 0, ["exit", et, it[2]]), ye++, pe++;
|
|
19143
19143
|
}
|
|
19144
19144
|
if (it[1].type === "listItemPrefix") {
|
|
19145
19145
|
const At = {
|
|
@@ -19149,16 +19149,16 @@ function Zw(e) {
|
|
|
19149
19149
|
// @ts-expect-error: we’ll add `end` in a second.
|
|
19150
19150
|
end: void 0
|
|
19151
19151
|
};
|
|
19152
|
-
et = At,
|
|
19152
|
+
et = At, K.splice(ye, 0, ["enter", At, it[2]]), ye++, pe++, Oe = void 0, st = !0;
|
|
19153
19153
|
}
|
|
19154
19154
|
}
|
|
19155
19155
|
}
|
|
19156
|
-
return
|
|
19156
|
+
return K[se][1]._spread = Xe, pe;
|
|
19157
19157
|
}
|
|
19158
|
-
function a(
|
|
19158
|
+
function a(K, se) {
|
|
19159
19159
|
return pe;
|
|
19160
19160
|
function pe(ye) {
|
|
19161
|
-
o.call(this,
|
|
19161
|
+
o.call(this, K(ye), ye), se && se.call(this, ye);
|
|
19162
19162
|
}
|
|
19163
19163
|
}
|
|
19164
19164
|
function s() {
|
|
@@ -19167,31 +19167,31 @@ function Zw(e) {
|
|
|
19167
19167
|
children: []
|
|
19168
19168
|
});
|
|
19169
19169
|
}
|
|
19170
|
-
function o(
|
|
19171
|
-
this.stack[this.stack.length - 1].children.push(
|
|
19170
|
+
function o(K, se, pe) {
|
|
19171
|
+
this.stack[this.stack.length - 1].children.push(K), this.stack.push(K), this.tokenStack.push([se, pe]), K.position = {
|
|
19172
19172
|
start: hn(se.start),
|
|
19173
19173
|
// @ts-expect-error: `end` will be patched later.
|
|
19174
19174
|
end: void 0
|
|
19175
19175
|
};
|
|
19176
19176
|
}
|
|
19177
|
-
function l(
|
|
19177
|
+
function l(K) {
|
|
19178
19178
|
return se;
|
|
19179
19179
|
function se(pe) {
|
|
19180
|
-
|
|
19180
|
+
K && K.call(this, pe), u.call(this, pe);
|
|
19181
19181
|
}
|
|
19182
19182
|
}
|
|
19183
|
-
function u(
|
|
19183
|
+
function u(K, se) {
|
|
19184
19184
|
const pe = this.stack.pop(), ye = this.tokenStack.pop();
|
|
19185
19185
|
if (ye)
|
|
19186
|
-
ye[0].type !==
|
|
19186
|
+
ye[0].type !== K.type && (se ? se.call(this, K, ye[0]) : (ye[1] || gc).call(this, K, ye[0]));
|
|
19187
19187
|
else
|
|
19188
19188
|
throw new Error(
|
|
19189
|
-
"Cannot close `" +
|
|
19190
|
-
start:
|
|
19191
|
-
end:
|
|
19189
|
+
"Cannot close `" + K.type + "` (" + Mr({
|
|
19190
|
+
start: K.start,
|
|
19191
|
+
end: K.end
|
|
19192
19192
|
}) + "): it’s not open"
|
|
19193
19193
|
);
|
|
19194
|
-
pe.position.end = hn(
|
|
19194
|
+
pe.position.end = hn(K.end);
|
|
19195
19195
|
}
|
|
19196
19196
|
function d() {
|
|
19197
19197
|
return VD(this.stack.pop());
|
|
@@ -19199,136 +19199,136 @@ function Zw(e) {
|
|
|
19199
19199
|
function h() {
|
|
19200
19200
|
this.data.expectingFirstListItemValue = !0;
|
|
19201
19201
|
}
|
|
19202
|
-
function m(
|
|
19202
|
+
function m(K) {
|
|
19203
19203
|
if (this.data.expectingFirstListItemValue) {
|
|
19204
19204
|
const se = this.stack[this.stack.length - 2];
|
|
19205
|
-
se.start = Number.parseInt(this.sliceSerialize(
|
|
19205
|
+
se.start = Number.parseInt(this.sliceSerialize(K), 10), this.data.expectingFirstListItemValue = void 0;
|
|
19206
19206
|
}
|
|
19207
19207
|
}
|
|
19208
19208
|
function p() {
|
|
19209
|
-
const
|
|
19210
|
-
se.lang =
|
|
19209
|
+
const K = this.resume(), se = this.stack[this.stack.length - 1];
|
|
19210
|
+
se.lang = K;
|
|
19211
19211
|
}
|
|
19212
19212
|
function g() {
|
|
19213
|
-
const
|
|
19214
|
-
se.meta =
|
|
19213
|
+
const K = this.resume(), se = this.stack[this.stack.length - 1];
|
|
19214
|
+
se.meta = K;
|
|
19215
19215
|
}
|
|
19216
19216
|
function f() {
|
|
19217
19217
|
this.data.flowCodeInside || (this.buffer(), this.data.flowCodeInside = !0);
|
|
19218
19218
|
}
|
|
19219
19219
|
function b() {
|
|
19220
|
-
const
|
|
19221
|
-
se.value =
|
|
19220
|
+
const K = this.resume(), se = this.stack[this.stack.length - 1];
|
|
19221
|
+
se.value = K.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g, ""), this.data.flowCodeInside = void 0;
|
|
19222
19222
|
}
|
|
19223
19223
|
function v() {
|
|
19224
|
-
const
|
|
19225
|
-
se.value =
|
|
19224
|
+
const K = this.resume(), se = this.stack[this.stack.length - 1];
|
|
19225
|
+
se.value = K.replace(/(\r?\n|\r)$/g, "");
|
|
19226
19226
|
}
|
|
19227
|
-
function w(
|
|
19227
|
+
function w(K) {
|
|
19228
19228
|
const se = this.resume(), pe = this.stack[this.stack.length - 1];
|
|
19229
19229
|
pe.label = se, pe.identifier = ir(
|
|
19230
|
-
this.sliceSerialize(
|
|
19230
|
+
this.sliceSerialize(K)
|
|
19231
19231
|
).toLowerCase();
|
|
19232
19232
|
}
|
|
19233
19233
|
function E() {
|
|
19234
|
-
const
|
|
19235
|
-
se.title =
|
|
19234
|
+
const K = this.resume(), se = this.stack[this.stack.length - 1];
|
|
19235
|
+
se.title = K;
|
|
19236
19236
|
}
|
|
19237
19237
|
function B() {
|
|
19238
|
-
const
|
|
19239
|
-
se.url =
|
|
19238
|
+
const K = this.resume(), se = this.stack[this.stack.length - 1];
|
|
19239
|
+
se.url = K;
|
|
19240
19240
|
}
|
|
19241
|
-
function D(
|
|
19241
|
+
function D(K) {
|
|
19242
19242
|
const se = this.stack[this.stack.length - 1];
|
|
19243
19243
|
if (!se.depth) {
|
|
19244
|
-
const pe = this.sliceSerialize(
|
|
19244
|
+
const pe = this.sliceSerialize(K).length;
|
|
19245
19245
|
se.depth = pe;
|
|
19246
19246
|
}
|
|
19247
19247
|
}
|
|
19248
19248
|
function C() {
|
|
19249
19249
|
this.data.setextHeadingSlurpLineEnding = !0;
|
|
19250
19250
|
}
|
|
19251
|
-
function S(
|
|
19251
|
+
function S(K) {
|
|
19252
19252
|
const se = this.stack[this.stack.length - 1];
|
|
19253
|
-
se.depth = this.sliceSerialize(
|
|
19253
|
+
se.depth = this.sliceSerialize(K).codePointAt(0) === 61 ? 1 : 2;
|
|
19254
19254
|
}
|
|
19255
19255
|
function L() {
|
|
19256
19256
|
this.data.setextHeadingSlurpLineEnding = void 0;
|
|
19257
19257
|
}
|
|
19258
|
-
function O(
|
|
19258
|
+
function O(K) {
|
|
19259
19259
|
const pe = this.stack[this.stack.length - 1].children;
|
|
19260
19260
|
let ye = pe[pe.length - 1];
|
|
19261
19261
|
(!ye || ye.type !== "text") && (ye = Ae(), ye.position = {
|
|
19262
|
-
start: hn(
|
|
19262
|
+
start: hn(K.start),
|
|
19263
19263
|
// @ts-expect-error: we’ll add `end` later.
|
|
19264
19264
|
end: void 0
|
|
19265
19265
|
}, pe.push(ye)), this.stack.push(ye);
|
|
19266
19266
|
}
|
|
19267
|
-
function z(
|
|
19267
|
+
function z(K) {
|
|
19268
19268
|
const se = this.stack.pop();
|
|
19269
|
-
se.value += this.sliceSerialize(
|
|
19269
|
+
se.value += this.sliceSerialize(K), se.position.end = hn(K.end);
|
|
19270
19270
|
}
|
|
19271
|
-
function $(
|
|
19271
|
+
function $(K) {
|
|
19272
19272
|
const se = this.stack[this.stack.length - 1];
|
|
19273
19273
|
if (this.data.atHardBreak) {
|
|
19274
19274
|
const pe = se.children[se.children.length - 1];
|
|
19275
|
-
pe.position.end = hn(
|
|
19275
|
+
pe.position.end = hn(K.end), this.data.atHardBreak = void 0;
|
|
19276
19276
|
return;
|
|
19277
19277
|
}
|
|
19278
|
-
!this.data.setextHeadingSlurpLineEnding && t.canContainEols.includes(se.type) && (O.call(this,
|
|
19278
|
+
!this.data.setextHeadingSlurpLineEnding && t.canContainEols.includes(se.type) && (O.call(this, K), z.call(this, K));
|
|
19279
19279
|
}
|
|
19280
19280
|
function A() {
|
|
19281
19281
|
this.data.atHardBreak = !0;
|
|
19282
19282
|
}
|
|
19283
19283
|
function _() {
|
|
19284
|
-
const
|
|
19285
|
-
se.value =
|
|
19284
|
+
const K = this.resume(), se = this.stack[this.stack.length - 1];
|
|
19285
|
+
se.value = K;
|
|
19286
19286
|
}
|
|
19287
19287
|
function T() {
|
|
19288
|
-
const
|
|
19289
|
-
se.value =
|
|
19288
|
+
const K = this.resume(), se = this.stack[this.stack.length - 1];
|
|
19289
|
+
se.value = K;
|
|
19290
19290
|
}
|
|
19291
19291
|
function R() {
|
|
19292
|
-
const
|
|
19293
|
-
se.value =
|
|
19292
|
+
const K = this.resume(), se = this.stack[this.stack.length - 1];
|
|
19293
|
+
se.value = K;
|
|
19294
19294
|
}
|
|
19295
19295
|
function W() {
|
|
19296
|
-
const
|
|
19296
|
+
const K = this.stack[this.stack.length - 1];
|
|
19297
19297
|
if (this.data.inReference) {
|
|
19298
19298
|
const se = this.data.referenceType || "shortcut";
|
|
19299
|
-
|
|
19299
|
+
K.type += "Reference", K.referenceType = se, delete K.url, delete K.title;
|
|
19300
19300
|
} else
|
|
19301
|
-
delete
|
|
19301
|
+
delete K.identifier, delete K.label;
|
|
19302
19302
|
this.data.referenceType = void 0;
|
|
19303
19303
|
}
|
|
19304
19304
|
function U() {
|
|
19305
|
-
const
|
|
19305
|
+
const K = this.stack[this.stack.length - 1];
|
|
19306
19306
|
if (this.data.inReference) {
|
|
19307
19307
|
const se = this.data.referenceType || "shortcut";
|
|
19308
|
-
|
|
19308
|
+
K.type += "Reference", K.referenceType = se, delete K.url, delete K.title;
|
|
19309
19309
|
} else
|
|
19310
|
-
delete
|
|
19310
|
+
delete K.identifier, delete K.label;
|
|
19311
19311
|
this.data.referenceType = void 0;
|
|
19312
19312
|
}
|
|
19313
|
-
function ne(
|
|
19314
|
-
const se = this.sliceSerialize(
|
|
19313
|
+
function ne(K) {
|
|
19314
|
+
const se = this.sliceSerialize(K), pe = this.stack[this.stack.length - 2];
|
|
19315
19315
|
pe.label = Hw(se), pe.identifier = ir(se).toLowerCase();
|
|
19316
19316
|
}
|
|
19317
19317
|
function re() {
|
|
19318
|
-
const
|
|
19318
|
+
const K = this.stack[this.stack.length - 1], se = this.resume(), pe = this.stack[this.stack.length - 1];
|
|
19319
19319
|
if (this.data.inReference = !0, pe.type === "link") {
|
|
19320
|
-
const ye =
|
|
19320
|
+
const ye = K.children;
|
|
19321
19321
|
pe.children = ye;
|
|
19322
19322
|
} else
|
|
19323
19323
|
pe.alt = se;
|
|
19324
19324
|
}
|
|
19325
19325
|
function x() {
|
|
19326
|
-
const
|
|
19327
|
-
se.url =
|
|
19326
|
+
const K = this.resume(), se = this.stack[this.stack.length - 1];
|
|
19327
|
+
se.url = K;
|
|
19328
19328
|
}
|
|
19329
19329
|
function I() {
|
|
19330
|
-
const
|
|
19331
|
-
se.title =
|
|
19330
|
+
const K = this.resume(), se = this.stack[this.stack.length - 1];
|
|
19331
|
+
se.title = K;
|
|
19332
19332
|
}
|
|
19333
19333
|
function ie() {
|
|
19334
19334
|
this.data.inReference = void 0;
|
|
@@ -19336,34 +19336,34 @@ function Zw(e) {
|
|
|
19336
19336
|
function F() {
|
|
19337
19337
|
this.data.referenceType = "collapsed";
|
|
19338
19338
|
}
|
|
19339
|
-
function k(
|
|
19339
|
+
function k(K) {
|
|
19340
19340
|
const se = this.resume(), pe = this.stack[this.stack.length - 1];
|
|
19341
19341
|
pe.label = se, pe.identifier = ir(
|
|
19342
|
-
this.sliceSerialize(
|
|
19342
|
+
this.sliceSerialize(K)
|
|
19343
19343
|
).toLowerCase(), this.data.referenceType = "full";
|
|
19344
19344
|
}
|
|
19345
|
-
function P(
|
|
19346
|
-
this.data.characterReferenceType =
|
|
19345
|
+
function P(K) {
|
|
19346
|
+
this.data.characterReferenceType = K.type;
|
|
19347
19347
|
}
|
|
19348
|
-
function j(
|
|
19349
|
-
const se = this.sliceSerialize(
|
|
19348
|
+
function j(K) {
|
|
19349
|
+
const se = this.sliceSerialize(K), pe = this.data.characterReferenceType;
|
|
19350
19350
|
let ye;
|
|
19351
19351
|
pe ? (ye = _f(
|
|
19352
19352
|
se,
|
|
19353
19353
|
pe === "characterReferenceMarkerNumeric" ? 10 : 16
|
|
19354
19354
|
), this.data.characterReferenceType = void 0) : ye = Ao(se);
|
|
19355
19355
|
const _e = this.stack.pop();
|
|
19356
|
-
_e.value += ye, _e.position.end = hn(
|
|
19356
|
+
_e.value += ye, _e.position.end = hn(K.end);
|
|
19357
19357
|
}
|
|
19358
|
-
function q(
|
|
19359
|
-
z.call(this,
|
|
19358
|
+
function q(K) {
|
|
19359
|
+
z.call(this, K);
|
|
19360
19360
|
const se = this.stack[this.stack.length - 1];
|
|
19361
|
-
se.url = this.sliceSerialize(
|
|
19361
|
+
se.url = this.sliceSerialize(K);
|
|
19362
19362
|
}
|
|
19363
|
-
function J(
|
|
19364
|
-
z.call(this,
|
|
19363
|
+
function J(K) {
|
|
19364
|
+
z.call(this, K);
|
|
19365
19365
|
const se = this.stack[this.stack.length - 1];
|
|
19366
|
-
se.url = "mailto:" + this.sliceSerialize(
|
|
19366
|
+
se.url = "mailto:" + this.sliceSerialize(K);
|
|
19367
19367
|
}
|
|
19368
19368
|
function H() {
|
|
19369
19369
|
return {
|
|
@@ -19435,19 +19435,19 @@ function Zw(e) {
|
|
|
19435
19435
|
children: []
|
|
19436
19436
|
};
|
|
19437
19437
|
}
|
|
19438
|
-
function Ge(
|
|
19438
|
+
function Ge(K) {
|
|
19439
19439
|
return {
|
|
19440
19440
|
type: "list",
|
|
19441
|
-
ordered:
|
|
19441
|
+
ordered: K.type === "listOrdered",
|
|
19442
19442
|
start: null,
|
|
19443
|
-
spread:
|
|
19443
|
+
spread: K._spread,
|
|
19444
19444
|
children: []
|
|
19445
19445
|
};
|
|
19446
19446
|
}
|
|
19447
|
-
function Qe(
|
|
19447
|
+
function Qe(K) {
|
|
19448
19448
|
return {
|
|
19449
19449
|
type: "listItem",
|
|
19450
|
-
spread:
|
|
19450
|
+
spread: K._spread,
|
|
19451
19451
|
checked: null,
|
|
19452
19452
|
children: []
|
|
19453
19453
|
};
|
|
@@ -19515,15 +19515,15 @@ function Yw(e, t) {
|
|
|
19515
19515
|
}
|
|
19516
19516
|
function gc(e, t) {
|
|
19517
19517
|
throw e ? new Error(
|
|
19518
|
-
"Cannot close `" + e.type + "` (" +
|
|
19518
|
+
"Cannot close `" + e.type + "` (" + Mr({
|
|
19519
19519
|
start: e.start,
|
|
19520
19520
|
end: e.end
|
|
19521
|
-
}) + "): a different token (`" + t.type + "`, " +
|
|
19521
|
+
}) + "): a different token (`" + t.type + "`, " + Mr({
|
|
19522
19522
|
start: t.start,
|
|
19523
19523
|
end: t.end
|
|
19524
19524
|
}) + ") is open"
|
|
19525
19525
|
) : new Error(
|
|
19526
|
-
"Cannot close document, a token (`" + t.type + "`, " +
|
|
19526
|
+
"Cannot close document, a token (`" + t.type + "`, " + Mr({
|
|
19527
19527
|
start: t.start,
|
|
19528
19528
|
end: t.end
|
|
19529
19529
|
}) + ") is still open"
|
|
@@ -19944,7 +19944,7 @@ const sC = ({
|
|
|
19944
19944
|
yn,
|
|
19945
19945
|
{
|
|
19946
19946
|
element: "li",
|
|
19947
|
-
className:
|
|
19947
|
+
className: V({ selected: f === u }),
|
|
19948
19948
|
member: { id: p, ...g, link: !1 },
|
|
19949
19949
|
functions: {
|
|
19950
19950
|
onClick: (b) => {
|
|
@@ -19965,7 +19965,7 @@ const sC = ({
|
|
|
19965
19965
|
yn,
|
|
19966
19966
|
{
|
|
19967
19967
|
element: "li",
|
|
19968
|
-
className:
|
|
19968
|
+
className: V("fallback", {
|
|
19969
19969
|
selected: d.length === u
|
|
19970
19970
|
}),
|
|
19971
19971
|
member: {
|
|
@@ -20017,7 +20017,7 @@ const sC = ({
|
|
|
20017
20017
|
"li",
|
|
20018
20018
|
{
|
|
20019
20019
|
id: `${d}-${e}`,
|
|
20020
|
-
className:
|
|
20020
|
+
className: V(e, { "has-divider": n }),
|
|
20021
20021
|
onMouseEnter: () => {
|
|
20022
20022
|
g([{ type: "openTooltip", value: e }]);
|
|
20023
20023
|
},
|
|
@@ -20044,7 +20044,7 @@ const sC = ({
|
|
|
20044
20044
|
{
|
|
20045
20045
|
...o,
|
|
20046
20046
|
...f,
|
|
20047
|
-
className:
|
|
20047
|
+
className: V(e, i, { active: t }),
|
|
20048
20048
|
onClick: (b) => {
|
|
20049
20049
|
b.stopPropagation(), b.preventDefault();
|
|
20050
20050
|
},
|
|
@@ -20175,7 +20175,7 @@ const sC = ({
|
|
|
20175
20175
|
}
|
|
20176
20176
|
}
|
|
20177
20177
|
);
|
|
20178
|
-
},
|
|
20178
|
+
}, $r = (e) => {
|
|
20179
20179
|
const [t] = y.nodes(e, {
|
|
20180
20180
|
match: (n) => {
|
|
20181
20181
|
const r = n;
|
|
@@ -20204,7 +20204,7 @@ const sC = ({
|
|
|
20204
20204
|
console.error(i);
|
|
20205
20205
|
}) => {
|
|
20206
20206
|
try {
|
|
20207
|
-
|
|
20207
|
+
$r(e) && Wf(e);
|
|
20208
20208
|
const { selection: i } = e, a = i && Y.isCollapsed(i), s = {
|
|
20209
20209
|
type: Z.link,
|
|
20210
20210
|
link: t,
|
|
@@ -20233,13 +20233,13 @@ const dC = () => {
|
|
|
20233
20233
|
dispatch: s,
|
|
20234
20234
|
getLinkPreview: o,
|
|
20235
20235
|
reportError: l
|
|
20236
|
-
} = $e(dn), u = zn(), d = CD(u), h = (d == null ? void 0 : d.text) || eC(u), m = a !== !1, [p, g] = ue(
|
|
20236
|
+
} = $e(dn), u = zn(), d = CD(u), h = (d == null ? void 0 : d.text) || eC(u), m = a !== !1, [p, g] = ue($r(u)), f = wf(u, "link-editor", `${n}-link`), b = ke(null);
|
|
20237
20237
|
de(() => {
|
|
20238
20238
|
var D;
|
|
20239
20239
|
!p && r && ((D = b.current) == null || D.focus());
|
|
20240
20240
|
}, [p]), de(() => {
|
|
20241
20241
|
ns && clearTimeout(ns), ns = setTimeout(() => {
|
|
20242
|
-
g(
|
|
20242
|
+
g($r(u));
|
|
20243
20243
|
}, 500);
|
|
20244
20244
|
}, [u.selection]);
|
|
20245
20245
|
const v = [], w = ["open", "edit", "remove"].map((D) => {
|
|
@@ -20270,7 +20270,7 @@ const dC = () => {
|
|
|
20270
20270
|
const S = [
|
|
20271
20271
|
{ type: "showLinkEditor", value: !1 }
|
|
20272
20272
|
];
|
|
20273
|
-
|
|
20273
|
+
$r(u) && (Wf(u), S.push({ type: "lastAnchor", value: null }), a && (d == null ? void 0 : d.full) === (a == null ? void 0 : a.url) && S.push({ type: "enrichedUrl", value: !1 })), s(S);
|
|
20274
20274
|
};
|
|
20275
20275
|
break;
|
|
20276
20276
|
}
|
|
@@ -20336,12 +20336,12 @@ const dC = () => {
|
|
|
20336
20336
|
});
|
|
20337
20337
|
}
|
|
20338
20338
|
},
|
|
20339
|
-
children: p ? /* @__PURE__ */ c.jsx(
|
|
20339
|
+
children: p ? /* @__PURE__ */ c.jsx(Gr, { wrappers: v, buttons: w }) : /* @__PURE__ */ c.jsx(
|
|
20340
20340
|
Ln,
|
|
20341
20341
|
{
|
|
20342
20342
|
element: "fieldset",
|
|
20343
20343
|
id: `${n}-link-editor`,
|
|
20344
|
-
className:
|
|
20344
|
+
className: V({ "show-labels": h }),
|
|
20345
20345
|
meta: { shouldReset: !0, showRequiredLabels: !1 },
|
|
20346
20346
|
functions: {
|
|
20347
20347
|
onSuccess: async (D) => {
|
|
@@ -20374,7 +20374,7 @@ const dC = () => {
|
|
|
20374
20374
|
}, fC = () => {
|
|
20375
20375
|
const e = zn(), { setFocus: t, dispatch: n } = $e(dn), [r, i] = ue(!1);
|
|
20376
20376
|
return de(() => {
|
|
20377
|
-
i(
|
|
20377
|
+
i($r(e));
|
|
20378
20378
|
}, [e.selection]), /* @__PURE__ */ c.jsx(
|
|
20379
20379
|
jo,
|
|
20380
20380
|
{
|
|
@@ -20612,8 +20612,8 @@ const FC = ({
|
|
|
20612
20612
|
S && (async () => {
|
|
20613
20613
|
let P = An(S);
|
|
20614
20614
|
if (P.includes("<")) {
|
|
20615
|
-
|
|
20616
|
-
const j = new
|
|
20615
|
+
qr.prototype.escape = (q) => q;
|
|
20616
|
+
const j = new qr();
|
|
20617
20617
|
j.addRule("br", {
|
|
20618
20618
|
filter: ["br"],
|
|
20619
20619
|
replacement: (q) => q + `
|
|
@@ -20866,7 +20866,7 @@ const G_ = ({
|
|
|
20866
20866
|
return /* @__PURE__ */ c.jsxs(
|
|
20867
20867
|
"div",
|
|
20868
20868
|
{
|
|
20869
|
-
className:
|
|
20869
|
+
className: V("toggle", s),
|
|
20870
20870
|
onClick: (d) => {
|
|
20871
20871
|
d.preventDefault(), d.stopPropagation(), u(o === n[0].value ? n[1].value : n[0].value);
|
|
20872
20872
|
},
|
|
@@ -20875,7 +20875,7 @@ const G_ = ({
|
|
|
20875
20875
|
/* @__PURE__ */ c.jsx(
|
|
20876
20876
|
"ul",
|
|
20877
20877
|
{
|
|
20878
|
-
className:
|
|
20878
|
+
className: V("toggle-options", {
|
|
20879
20879
|
disabled: a,
|
|
20880
20880
|
on: o === n[1].value
|
|
20881
20881
|
}),
|
|
@@ -20934,7 +20934,7 @@ function AC({
|
|
|
20934
20934
|
change: w = o.formatMessage({ id: `${l}cta_change` }),
|
|
20935
20935
|
uploading: E = o.formatMessage({ id: `${l}cta_uploading` })
|
|
20936
20936
|
} = (a == null ? void 0 : a.text) || {};
|
|
20937
|
-
return /* @__PURE__ */ c.jsxs("div", { className:
|
|
20937
|
+
return /* @__PURE__ */ c.jsxs("div", { className: V("profile-image-change-figure", e), children: [
|
|
20938
20938
|
/* @__PURE__ */ c.jsx(
|
|
20939
20939
|
In,
|
|
20940
20940
|
{
|
|
@@ -21074,7 +21074,7 @@ const TC = ({
|
|
|
21074
21074
|
{
|
|
21075
21075
|
style: { backgroundColor: a },
|
|
21076
21076
|
onSubmit: v,
|
|
21077
|
-
className:
|
|
21077
|
+
className: V("invite-form gtm-trackable"),
|
|
21078
21078
|
children: [
|
|
21079
21079
|
/* @__PURE__ */ c.jsxs("fieldset", { className: "content", children: [
|
|
21080
21080
|
/* @__PURE__ */ c.jsx("h2", { className: "title", style: { color: r }, children: e }),
|
|
@@ -21321,7 +21321,7 @@ const jC = ({
|
|
|
21321
21321
|
gtmEvent: a = "form-submission"
|
|
21322
21322
|
}) => {
|
|
21323
21323
|
const { searchIsOpen: s = !0, isDesktopVersion: o = !1 } = n || {}, l = ce(), u = ke(null);
|
|
21324
|
-
|
|
21324
|
+
zr(() => {
|
|
21325
21325
|
!n || o || !s || u.current && u.current.focus();
|
|
21326
21326
|
}, [s]);
|
|
21327
21327
|
const d = (h) => {
|
|
@@ -21331,7 +21331,7 @@ const jC = ({
|
|
|
21331
21331
|
"form",
|
|
21332
21332
|
{
|
|
21333
21333
|
onSubmit: d,
|
|
21334
|
-
className:
|
|
21334
|
+
className: V("search-form gtm-trackable", t),
|
|
21335
21335
|
role: "search",
|
|
21336
21336
|
"data-gtm-event-context": i,
|
|
21337
21337
|
"data-gtm-event-type": a,
|
|
@@ -21614,7 +21614,7 @@ const jC = ({
|
|
|
21614
21614
|
const MC = ({ className: e = "" }) => /* @__PURE__ */ c.jsxs(
|
|
21615
21615
|
"div",
|
|
21616
21616
|
{
|
|
21617
|
-
className:
|
|
21617
|
+
className: V("success-message", e),
|
|
21618
21618
|
"data-testid": "success-message",
|
|
21619
21619
|
children: [
|
|
21620
21620
|
/* @__PURE__ */ c.jsx("p", { className: "success-title", children: /* @__PURE__ */ c.jsx(ht, { id: "signup_success_title" }) }),
|
|
@@ -21714,7 +21714,7 @@ const RC = {
|
|
|
21714
21714
|
return g.successMessage && D ? /* @__PURE__ */ c.jsx(MC, { className: e }) : /* @__PURE__ */ c.jsxs(
|
|
21715
21715
|
"fieldset",
|
|
21716
21716
|
{
|
|
21717
|
-
className:
|
|
21717
|
+
className: V("signup-form-fieldset", e),
|
|
21718
21718
|
"data-testid": "signup-form",
|
|
21719
21719
|
children: [
|
|
21720
21720
|
g.title && /* @__PURE__ */ c.jsx("p", { className: "signup-title", children: /* @__PURE__ */ c.jsx(ht, { id: "signup_title" }) }),
|
|
@@ -21795,7 +21795,7 @@ const qn = ({
|
|
|
21795
21795
|
return /* @__PURE__ */ c.jsx(
|
|
21796
21796
|
"section",
|
|
21797
21797
|
{
|
|
21798
|
-
className:
|
|
21798
|
+
className: V("full-width-section", t, {
|
|
21799
21799
|
[i]: i !== "default"
|
|
21800
21800
|
}),
|
|
21801
21801
|
...r,
|
|
@@ -21816,13 +21816,13 @@ const X_ = ({ text: e, buttons: t, className: n = "" }) => {
|
|
|
21816
21816
|
target: "_blank",
|
|
21817
21817
|
children: i.text
|
|
21818
21818
|
});
|
|
21819
|
-
}), /* @__PURE__ */ c.jsx(qn, { className:
|
|
21819
|
+
}), /* @__PURE__ */ c.jsx(qn, { className: V("download-section", n), children: /* @__PURE__ */ c.jsxs("div", { className: "content-default", children: [
|
|
21820
21820
|
te.createElement(
|
|
21821
21821
|
typeof e == "string" ? "h2" : e.element,
|
|
21822
21822
|
{ className: "text" },
|
|
21823
21823
|
typeof e == "string" ? e : e.text
|
|
21824
21824
|
),
|
|
21825
|
-
/* @__PURE__ */ c.jsx(
|
|
21825
|
+
/* @__PURE__ */ c.jsx(Gr, { buttons: r })
|
|
21826
21826
|
] }) });
|
|
21827
21827
|
};
|
|
21828
21828
|
const Zs = "editSection_";
|
|
@@ -21880,7 +21880,7 @@ const $C = ({
|
|
|
21880
21880
|
r.props.functions.onCancel && r.props.functions.onCancel(), p();
|
|
21881
21881
|
}
|
|
21882
21882
|
}
|
|
21883
|
-
})), /* @__PURE__ */ c.jsxs("section", { className:
|
|
21883
|
+
})), /* @__PURE__ */ c.jsxs("section", { className: V("edit-section", t), children: [
|
|
21884
21884
|
g && /* @__PURE__ */ c.jsx(
|
|
21885
21885
|
xn,
|
|
21886
21886
|
{
|
|
@@ -21889,7 +21889,7 @@ const $C = ({
|
|
|
21889
21889
|
showDivider: !1,
|
|
21890
21890
|
showIcon: !1,
|
|
21891
21891
|
functions: { onClose: p },
|
|
21892
|
-
className:
|
|
21892
|
+
className: V("edit-section-modal"),
|
|
21893
21893
|
children: b || (n ? /* @__PURE__ */ c.jsx(
|
|
21894
21894
|
Ln,
|
|
21895
21895
|
{
|
|
@@ -21913,7 +21913,7 @@ const $C = ({
|
|
|
21913
21913
|
) : /* @__PURE__ */ c.jsx(c.Fragment, {}))
|
|
21914
21914
|
}
|
|
21915
21915
|
),
|
|
21916
|
-
/* @__PURE__ */ c.jsxs("div", { className:
|
|
21916
|
+
/* @__PURE__ */ c.jsxs("div", { className: V("edit-section-header", { "no-title": !s }), children: [
|
|
21917
21917
|
s && /* @__PURE__ */ c.jsx("h2", { className: "edit-section-header-title", children: a }),
|
|
21918
21918
|
f && /* @__PURE__ */ c.jsx(
|
|
21919
21919
|
Se,
|
|
@@ -21957,21 +21957,21 @@ const tk = ({
|
|
|
21957
21957
|
return /* @__PURE__ */ c.jsxs(
|
|
21958
21958
|
"div",
|
|
21959
21959
|
{
|
|
21960
|
-
className:
|
|
21960
|
+
className: V("logos", i, `align-${l}`, {
|
|
21961
21961
|
[u]: u !== "block",
|
|
21962
21962
|
"wrap-logos": o
|
|
21963
21963
|
}),
|
|
21964
21964
|
children: [
|
|
21965
21965
|
e && te.createElement(
|
|
21966
21966
|
s.element,
|
|
21967
|
-
{ className:
|
|
21967
|
+
{ className: V("title", s.className) },
|
|
21968
21968
|
s.text
|
|
21969
21969
|
),
|
|
21970
21970
|
t && /* @__PURE__ */ c.jsx("p", { children: t }),
|
|
21971
21971
|
/* @__PURE__ */ c.jsx(
|
|
21972
21972
|
"ul",
|
|
21973
21973
|
{
|
|
21974
|
-
className:
|
|
21974
|
+
className: V({
|
|
21975
21975
|
"two-col": a === 2 || a === 4,
|
|
21976
21976
|
"three-col": a === 5 || a <= 10 && a % 3 === 0
|
|
21977
21977
|
}),
|
|
@@ -22090,7 +22090,7 @@ const ss = "cookieBanner_", os = [
|
|
|
22090
22090
|
}), /* @__PURE__ */ c.jsxs("aside", { id: "cookie-banner", className: "text-medium", children: [
|
|
22091
22091
|
/* @__PURE__ */ c.jsx("h6", { children: e.formatMessage({ id: `${ss}title` }) }),
|
|
22092
22092
|
/* @__PURE__ */ c.jsx("p", { children: e.formatMessage({ id: `${ss}text` }) }),
|
|
22093
|
-
/* @__PURE__ */ c.jsx(
|
|
22093
|
+
/* @__PURE__ */ c.jsx(Gr, { buttons: u })
|
|
22094
22094
|
] });
|
|
22095
22095
|
}, tn = {
|
|
22096
22096
|
platform: {
|
|
@@ -22169,11 +22169,11 @@ const ss = "cookieBanner_", os = [
|
|
|
22169
22169
|
text: {
|
|
22170
22170
|
order: ["dataProtection", "euDataProtection"],
|
|
22171
22171
|
dataProtection: {
|
|
22172
|
-
email:
|
|
22172
|
+
email: Br["data-protection"].default,
|
|
22173
22173
|
gtmType: "email-dpo-link"
|
|
22174
22174
|
},
|
|
22175
22175
|
euDataProtection: {
|
|
22176
|
-
email:
|
|
22176
|
+
email: Br["data-protection"].eu,
|
|
22177
22177
|
gtmType: "email-eu-dpo-link"
|
|
22178
22178
|
}
|
|
22179
22179
|
}
|
|
@@ -22185,10 +22185,10 @@ const ss = "cookieBanner_", os = [
|
|
|
22185
22185
|
registered: { address: !0 },
|
|
22186
22186
|
berlin: { address: !0 },
|
|
22187
22187
|
support: {
|
|
22188
|
-
email:
|
|
22188
|
+
email: Br.support,
|
|
22189
22189
|
gtmType: "concierge-email-click"
|
|
22190
22190
|
},
|
|
22191
|
-
business: { email:
|
|
22191
|
+
business: { email: Br.general, gtmType: "hello-email-click" }
|
|
22192
22192
|
}
|
|
22193
22193
|
},
|
|
22194
22194
|
social: {
|
|
@@ -22201,7 +22201,7 @@ const ss = "cookieBanner_", os = [
|
|
|
22201
22201
|
const nr = "footer_", Qi = "SiteFooter", Cc = ({ group: e }) => {
|
|
22202
22202
|
const t = tn[e].order || [];
|
|
22203
22203
|
let n = !1;
|
|
22204
|
-
return "text" in tn[e] && (n = tn[e].text), /* @__PURE__ */ c.jsxs(
|
|
22204
|
+
return "text" in tn[e] && (n = tn[e].text), /* @__PURE__ */ c.jsxs(Lr, { children: [
|
|
22205
22205
|
/* @__PURE__ */ c.jsx("p", { className: "pre-title", children: /* @__PURE__ */ c.jsx(ht, { id: `${nr}${e}` }) }),
|
|
22206
22206
|
Array.isArray(t) && t.length > 0 && /* @__PURE__ */ c.jsx("ul", { className: "text-medium", children: t.map((r) => {
|
|
22207
22207
|
if (["order", "child", "text"].includes(r))
|
|
@@ -22219,7 +22219,7 @@ const nr = "footer_", Qi = "SiteFooter", Cc = ({ group: e }) => {
|
|
|
22219
22219
|
}
|
|
22220
22220
|
) }, `${e}_${r}`);
|
|
22221
22221
|
}) }),
|
|
22222
|
-
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(
|
|
22222
|
+
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(Lr, { children: [
|
|
22223
22223
|
/* @__PURE__ */ c.jsx("dt", { children: /* @__PURE__ */ c.jsx(ht, { id: `${nr}${e}_${r}` }) }),
|
|
22224
22224
|
/* @__PURE__ */ c.jsxs("dd", { children: [
|
|
22225
22225
|
typeof n != "boolean" && n[r].address && /* @__PURE__ */ c.jsx("address", { children: /* @__PURE__ */ c.jsx(
|
|
@@ -22554,7 +22554,7 @@ const nr = "footer_", Qi = "SiteFooter", Cc = ({ group: e }) => {
|
|
|
22554
22554
|
return /* @__PURE__ */ c.jsxs(
|
|
22555
22555
|
"li",
|
|
22556
22556
|
{
|
|
22557
|
-
className:
|
|
22557
|
+
className: V({
|
|
22558
22558
|
[o.className]: o.className,
|
|
22559
22559
|
"has-submenu": p,
|
|
22560
22560
|
parent: g,
|
|
@@ -22585,7 +22585,7 @@ const nr = "footer_", Qi = "SiteFooter", Cc = ({ group: e }) => {
|
|
|
22585
22585
|
return o[E].order ? /* @__PURE__ */ c.jsxs(
|
|
22586
22586
|
"li",
|
|
22587
22587
|
{
|
|
22588
|
-
className:
|
|
22588
|
+
className: V({
|
|
22589
22589
|
[o[E].className]: o[E].className
|
|
22590
22590
|
}),
|
|
22591
22591
|
children: [
|
|
@@ -22674,7 +22674,7 @@ const Zf = ({ showNavigation: e = !0 }) => {
|
|
|
22674
22674
|
var w;
|
|
22675
22675
|
(w = document.getElementById("header")) == null || w.removeEventListener("keydown", g);
|
|
22676
22676
|
};
|
|
22677
|
-
}, []),
|
|
22677
|
+
}, []), zr(() => {
|
|
22678
22678
|
u[
|
|
22679
22679
|
"site-navigation"
|
|
22680
22680
|
/* SITE */
|
|
@@ -22688,7 +22688,7 @@ const Zf = ({ showNavigation: e = !0 }) => {
|
|
|
22688
22688
|
}, [u[
|
|
22689
22689
|
"site-navigation"
|
|
22690
22690
|
/* SITE */
|
|
22691
|
-
]]),
|
|
22691
|
+
]]), zr(() => {
|
|
22692
22692
|
u[
|
|
22693
22693
|
"account-navigation"
|
|
22694
22694
|
/* ACCOUNT */
|
|
@@ -22807,7 +22807,7 @@ const Zf = ({ showNavigation: e = !0 }) => {
|
|
|
22807
22807
|
"nav",
|
|
22808
22808
|
{
|
|
22809
22809
|
id: "header",
|
|
22810
|
-
className:
|
|
22810
|
+
className: V({
|
|
22811
22811
|
"logged-in": i,
|
|
22812
22812
|
"logged-out": !i,
|
|
22813
22813
|
visible: l
|
|
@@ -22881,7 +22881,7 @@ const Zf = ({ showNavigation: e = !0 }) => {
|
|
|
22881
22881
|
/* @__PURE__ */ c.jsx(
|
|
22882
22882
|
"div",
|
|
22883
22883
|
{
|
|
22884
|
-
className:
|
|
22884
|
+
className: V("overlay", {
|
|
22885
22885
|
open: u[
|
|
22886
22886
|
"site-navigation"
|
|
22887
22887
|
/* SITE */
|
|
@@ -22940,14 +22940,14 @@ const zC = () => {
|
|
|
22940
22940
|
"div",
|
|
22941
22941
|
{
|
|
22942
22942
|
id: "wrapper",
|
|
22943
|
-
className:
|
|
22943
|
+
className: V(s, D, { "has-footer": u }),
|
|
22944
22944
|
children: [
|
|
22945
22945
|
/* @__PURE__ */ c.jsx(Zf, { showNavigation: l }),
|
|
22946
22946
|
/* @__PURE__ */ c.jsxs("main", { id: "content-wrapper", children: [
|
|
22947
22947
|
E && /* @__PURE__ */ c.jsx(
|
|
22948
22948
|
"div",
|
|
22949
22949
|
{
|
|
22950
|
-
className:
|
|
22950
|
+
className: V("additional-content prepended", {
|
|
22951
22951
|
"large-modal": p === "large"
|
|
22952
22952
|
}),
|
|
22953
22953
|
children: E
|
|
@@ -22956,7 +22956,7 @@ const zC = () => {
|
|
|
22956
22956
|
te.createElement(d === "bold" ? rd : "div", {
|
|
22957
22957
|
id: "content",
|
|
22958
22958
|
children: w,
|
|
22959
|
-
className:
|
|
22959
|
+
className: V({ "large-modal": p === "large" })
|
|
22960
22960
|
})
|
|
22961
22961
|
] }),
|
|
22962
22962
|
B && /* @__PURE__ */ c.jsx("div", { className: "additional-content appended", children: B }),
|
|
@@ -23027,7 +23027,7 @@ const ik = ({
|
|
|
23027
23027
|
}), l.length < 1 ? null : /* @__PURE__ */ c.jsx(
|
|
23028
23028
|
"ul",
|
|
23029
23029
|
{
|
|
23030
|
-
className:
|
|
23030
|
+
className: V("tags text-small", t, i, {
|
|
23031
23031
|
"one-line": n
|
|
23032
23032
|
}),
|
|
23033
23033
|
children: l.map((u) => {
|
|
@@ -23061,7 +23061,7 @@ const UC = 25, HC = ({
|
|
|
23061
23061
|
className: h = ""
|
|
23062
23062
|
}) => {
|
|
23063
23063
|
const m = ce(), p = "membersList", g = $e(Dt), [f, b] = ue(!1);
|
|
23064
|
-
return e.length === 0 && !d ? null : /* @__PURE__ */ c.jsxs("div", { className:
|
|
23064
|
+
return e.length === 0 && !d ? null : /* @__PURE__ */ c.jsxs("div", { className: V("members-list", h), children: [
|
|
23065
23065
|
u ? /* @__PURE__ */ c.jsxs("h1", { children: [
|
|
23066
23066
|
m.formatMessage({ id: p }),
|
|
23067
23067
|
/* @__PURE__ */ c.jsx("span", { className: "count", children: t })
|
|
@@ -23174,7 +23174,7 @@ const ea = ({
|
|
|
23174
23174
|
}) => /* @__PURE__ */ c.jsx(
|
|
23175
23175
|
Se,
|
|
23176
23176
|
{
|
|
23177
|
-
className:
|
|
23177
|
+
className: V("discussion-button", t),
|
|
23178
23178
|
variant: "tertiary",
|
|
23179
23179
|
icon: e,
|
|
23180
23180
|
...n
|
|
@@ -23355,18 +23355,18 @@ const nt = "discussion_form_", ma = ({
|
|
|
23355
23355
|
}, 500);
|
|
23356
23356
|
} catch (Ae) {
|
|
23357
23357
|
const je = Ae;
|
|
23358
|
-
let
|
|
23359
|
-
je != null && je.message.includes("entry already exists") && (
|
|
23358
|
+
let K = `${nt}error`;
|
|
23359
|
+
je != null && je.message.includes("entry already exists") && (K = $t(
|
|
23360
23360
|
p.formatMessage,
|
|
23361
23361
|
`${nt}error_alreadyExists`,
|
|
23362
23362
|
n.type,
|
|
23363
23363
|
"action"
|
|
23364
|
-
)), je != null && je.message.includes("429") ?
|
|
23364
|
+
)), je != null && je.message.includes("429") ? K = $t(
|
|
23365
23365
|
p.formatMessage,
|
|
23366
23366
|
`${nt}error_tooMany`,
|
|
23367
23367
|
n.type,
|
|
23368
23368
|
"action"
|
|
23369
|
-
) : je != null && je.message.includes("400") && (
|
|
23369
|
+
) : je != null && je.message.includes("400") && (K = `${nt}error`), j(K), G();
|
|
23370
23370
|
}
|
|
23371
23371
|
}, G = () => {
|
|
23372
23372
|
xi = setTimeout(() => {
|
|
@@ -23466,7 +23466,7 @@ const nt = "discussion_form_", ma = ({
|
|
|
23466
23466
|
Ln,
|
|
23467
23467
|
{
|
|
23468
23468
|
id: ee,
|
|
23469
|
-
className:
|
|
23469
|
+
className: V("discussion-card discussion-form", {
|
|
23470
23470
|
"no-styling": w && D
|
|
23471
23471
|
}),
|
|
23472
23472
|
meta: {
|
|
@@ -23588,9 +23588,9 @@ function XC(e) {
|
|
|
23588
23588
|
);
|
|
23589
23589
|
}
|
|
23590
23590
|
const eE = fr(() => Promise.resolve().then(() => RE));
|
|
23591
|
-
let
|
|
23591
|
+
let Ir = !1;
|
|
23592
23592
|
const cs = () => {
|
|
23593
|
-
|
|
23593
|
+
Ir !== !1 && (clearTimeout(Ir), Ir = !1);
|
|
23594
23594
|
}, tE = 5;
|
|
23595
23595
|
let ds = null;
|
|
23596
23596
|
const nE = ({
|
|
@@ -23635,11 +23635,11 @@ const nE = ({
|
|
|
23635
23635
|
() => JC(n, tE),
|
|
23636
23636
|
[n]
|
|
23637
23637
|
), z = (T) => {
|
|
23638
|
-
if (T.preventDefault(), T.stopPropagation(), v([{ type: "showLikers", value: !1 }]),
|
|
23638
|
+
if (T.preventDefault(), T.stopPropagation(), v([{ type: "showLikers", value: !1 }]), Ir)
|
|
23639
23639
|
return cs(), !1;
|
|
23640
23640
|
if (cs(), B || !s)
|
|
23641
23641
|
return !1;
|
|
23642
|
-
|
|
23642
|
+
Ir = setTimeout($, 350);
|
|
23643
23643
|
}, $ = async () => {
|
|
23644
23644
|
if (cs(), B || !s)
|
|
23645
23645
|
return !1;
|
|
@@ -23690,7 +23690,7 @@ const nE = ({
|
|
|
23690
23690
|
/* @__PURE__ */ c.jsx(
|
|
23691
23691
|
ea,
|
|
23692
23692
|
{
|
|
23693
|
-
className:
|
|
23693
|
+
className: V("discussion-button text-medium action-button", {
|
|
23694
23694
|
"show-spinner": B,
|
|
23695
23695
|
"is-liked": E,
|
|
23696
23696
|
disabled: !s
|
|
@@ -24582,7 +24582,7 @@ const ak = ({
|
|
|
24582
24582
|
name: (ge = (be = le == null ? void 0 : le.user) == null ? void 0 : be.data) == null ? void 0 : ge.name
|
|
24583
24583
|
};
|
|
24584
24584
|
}) : !1;
|
|
24585
|
-
return /* @__PURE__ */ c.jsx(
|
|
24585
|
+
return /* @__PURE__ */ c.jsx(Lr, { children: /* @__PURE__ */ c.jsx(
|
|
24586
24586
|
pa,
|
|
24587
24587
|
{
|
|
24588
24588
|
content: {
|
|
@@ -25748,7 +25748,7 @@ const ME = ({
|
|
|
25748
25748
|
functions: {
|
|
25749
25749
|
onClose: n
|
|
25750
25750
|
},
|
|
25751
|
-
className:
|
|
25751
|
+
className: V("profile-modal in-portal", a, {
|
|
25752
25752
|
open: e
|
|
25753
25753
|
}),
|
|
25754
25754
|
maxWidth: 600,
|
|
@@ -25776,7 +25776,7 @@ const ME = ({
|
|
|
25776
25776
|
}) => {
|
|
25777
25777
|
const r = {
|
|
25778
25778
|
...n,
|
|
25779
|
-
class:
|
|
25779
|
+
class: V("subtle", t)
|
|
25780
25780
|
};
|
|
25781
25781
|
return /* @__PURE__ */ c.jsx("blockquote", { ...r, children: e });
|
|
25782
25782
|
}, $E = 280, rh = async (e, t, n, r = () => Promise.resolve([])) => {
|
|
@@ -25836,7 +25836,7 @@ const IE = 3e3, LE = ({
|
|
|
25836
25836
|
/* @__PURE__ */ c.jsx(
|
|
25837
25837
|
pr,
|
|
25838
25838
|
{
|
|
25839
|
-
className:
|
|
25839
|
+
className: V({
|
|
25840
25840
|
copied: i.isCopied
|
|
25841
25841
|
}),
|
|
25842
25842
|
isOpen: i.isOpen,
|
|
@@ -25875,7 +25875,7 @@ const pa = ({
|
|
|
25875
25875
|
basePath: E,
|
|
25876
25876
|
parentId: B
|
|
25877
25877
|
}) => {
|
|
25878
|
-
var Ae, je,
|
|
25878
|
+
var Ae, je, K, se, pe, ye, _e, Xe, et;
|
|
25879
25879
|
const D = ce(), C = $e(Dt), S = $e(Po), {
|
|
25880
25880
|
createContent: L = async () => {
|
|
25881
25881
|
},
|
|
@@ -26035,7 +26035,7 @@ const pa = ({
|
|
|
26035
26035
|
"data-gtm-event-context": d,
|
|
26036
26036
|
"data-gtm-event-type": `edit-${t.type}-click`
|
|
26037
26037
|
}), f && ((Ae = J == null ? void 0 : J.current) == null || Ae.focus(), (je = J == null ? void 0 : J.current) == null || je.scrollIntoView({ behavior: "smooth" })), te.createElement(e, {
|
|
26038
|
-
className:
|
|
26038
|
+
className: V("discussion-post", u, {
|
|
26039
26039
|
[be]: !u || !u.includes("highlighted-text-box"),
|
|
26040
26040
|
"has-link": l.post && !H.isEditing,
|
|
26041
26041
|
"is-pinned": (t == null ? void 0 : t.pinned) || !1
|
|
@@ -26060,7 +26060,7 @@ const pa = ({
|
|
|
26060
26060
|
"div",
|
|
26061
26061
|
{
|
|
26062
26062
|
id: x || t.slug,
|
|
26063
|
-
className:
|
|
26063
|
+
className: V("discussion-card", t.type, {
|
|
26064
26064
|
editing: H.isEditing,
|
|
26065
26065
|
"has-link": l.post && !H.isEditing
|
|
26066
26066
|
}),
|
|
@@ -26158,14 +26158,14 @@ const pa = ({
|
|
|
26158
26158
|
}
|
|
26159
26159
|
)
|
|
26160
26160
|
] }),
|
|
26161
|
-
w && ((
|
|
26161
|
+
w && ((K = t.categories) != null && K.length) ? /* @__PURE__ */ c.jsx("ul", { className: "categories-list", children: t.categories.map((xe) => {
|
|
26162
26162
|
const Oe = w == null ? void 0 : w.find((st) => st.slug === xe);
|
|
26163
26163
|
return Oe ? /* @__PURE__ */ c.jsx(an, { size: "small", element: "li", children: Oe.name }, Oe.slug) : null;
|
|
26164
26164
|
}) }) : /* @__PURE__ */ c.jsx(c.Fragment, {}),
|
|
26165
26165
|
!H.isEditing && !(s != null && s.actionBar) && /* @__PURE__ */ c.jsxs(
|
|
26166
26166
|
"ul",
|
|
26167
26167
|
{
|
|
26168
|
-
className:
|
|
26168
|
+
className: V("actions text-medium", t.type),
|
|
26169
26169
|
"data-testid": `${t.type}-actions`,
|
|
26170
26170
|
children: [
|
|
26171
26171
|
!s.likes && /* @__PURE__ */ c.jsx(
|
|
@@ -26372,7 +26372,7 @@ const qE = fr(
|
|
|
26372
26372
|
/* @__PURE__ */ c.jsxs(
|
|
26373
26373
|
"button",
|
|
26374
26374
|
{
|
|
26375
|
-
className:
|
|
26375
|
+
className: V("discussion-form-card", n),
|
|
26376
26376
|
onClick: (b) => {
|
|
26377
26377
|
b.preventDefault(), b.stopPropagation(), h((v) => ({ ...v, form: !0 }));
|
|
26378
26378
|
},
|
|
@@ -26382,7 +26382,7 @@ const qE = fr(
|
|
|
26382
26382
|
/* @__PURE__ */ c.jsx(
|
|
26383
26383
|
sr,
|
|
26384
26384
|
{
|
|
26385
|
-
className:
|
|
26385
|
+
className: V("input", { placeholder: !m.showCachedText }),
|
|
26386
26386
|
element: "span",
|
|
26387
26387
|
options: {
|
|
26388
26388
|
forceInline: !0,
|
|
@@ -26567,7 +26567,7 @@ const KE = ({
|
|
|
26567
26567
|
return /* @__PURE__ */ c.jsxs(
|
|
26568
26568
|
"div",
|
|
26569
26569
|
{
|
|
26570
|
-
className:
|
|
26570
|
+
className: V("thread-wrapper", {
|
|
26571
26571
|
"empty-thread": !o
|
|
26572
26572
|
}),
|
|
26573
26573
|
children: [
|
|
@@ -26867,7 +26867,7 @@ const t_ = ({
|
|
|
26867
26867
|
(m !== "" || p !== "") && l((b) => ({ ...b, showCachedText: !0 })), o();
|
|
26868
26868
|
}
|
|
26869
26869
|
},
|
|
26870
|
-
className:
|
|
26870
|
+
className: V("discussion-form-modal", i),
|
|
26871
26871
|
children: /* @__PURE__ */ c.jsx(
|
|
26872
26872
|
ma,
|
|
26873
26873
|
{
|
|
@@ -26946,7 +26946,7 @@ const uk = ({
|
|
|
26946
26946
|
showDivider: !1,
|
|
26947
26947
|
showIcon: s,
|
|
26948
26948
|
functions: { onClose: o },
|
|
26949
|
-
className:
|
|
26949
|
+
className: V("invite-modal", e, { success: !!n }),
|
|
26950
26950
|
children: /* @__PURE__ */ c.jsx(
|
|
26951
26951
|
TC,
|
|
26952
26952
|
{
|
|
@@ -26986,7 +26986,7 @@ const Io = ({
|
|
|
26986
26986
|
functions: {
|
|
26987
26987
|
onClose: d
|
|
26988
26988
|
},
|
|
26989
|
-
className:
|
|
26989
|
+
className: V("profile-modal", s, { success: !!t }),
|
|
26990
26990
|
maxWidth: 700,
|
|
26991
26991
|
children: /* @__PURE__ */ c.jsxs(c.Fragment, { children: [
|
|
26992
26992
|
t && n || r ? /* @__PURE__ */ c.jsxs("div", { className: "intro", children: [
|
|
@@ -27065,13 +27065,13 @@ const i_ = ({
|
|
|
27065
27065
|
content: n,
|
|
27066
27066
|
member: r,
|
|
27067
27067
|
className: i = ""
|
|
27068
|
-
}) => /* @__PURE__ */ c.jsxs("blockquote", { className:
|
|
27068
|
+
}) => /* @__PURE__ */ c.jsxs("blockquote", { className: V("testimonial-block", i), children: [
|
|
27069
27069
|
/* @__PURE__ */ c.jsx(Yt, { className: "testimonial", children: n }),
|
|
27070
27070
|
r ? /* @__PURE__ */ c.jsx(yn, { member: r, styling: { size: "large" } }) : /* @__PURE__ */ c.jsxs(c.Fragment, { children: [
|
|
27071
27071
|
e && /* @__PURE__ */ c.jsx(
|
|
27072
27072
|
"p",
|
|
27073
27073
|
{
|
|
27074
|
-
className:
|
|
27074
|
+
className: V("author", {
|
|
27075
27075
|
"text-small": !i.includes("new")
|
|
27076
27076
|
}),
|
|
27077
27077
|
children: e
|
|
@@ -27080,7 +27080,7 @@ const i_ = ({
|
|
|
27080
27080
|
t && /* @__PURE__ */ c.jsx(
|
|
27081
27081
|
"p",
|
|
27082
27082
|
{
|
|
27083
|
-
className:
|
|
27083
|
+
className: V("author-cite", {
|
|
27084
27084
|
"text-small": !i.includes("new")
|
|
27085
27085
|
}),
|
|
27086
27086
|
children: /* @__PURE__ */ c.jsx("cite", { children: t })
|
|
@@ -27112,7 +27112,7 @@ const dk = ({
|
|
|
27112
27112
|
Gt,
|
|
27113
27113
|
{
|
|
27114
27114
|
variant: "subtle",
|
|
27115
|
-
className:
|
|
27115
|
+
className: V("table-of-contents", n),
|
|
27116
27116
|
children: [
|
|
27117
27117
|
/* @__PURE__ */ c.jsx("h2", { children: r.formatMessage({ id: "tableOfContents" }) }),
|
|
27118
27118
|
/* @__PURE__ */ c.jsx("nav", { children: /* @__PURE__ */ c.jsx("ul", { children: i.map(({ id: s, text: o }) => /* @__PURE__ */ c.jsx("li", { children: /* @__PURE__ */ c.jsx("a", { href: `#${s}`, children: o }) }, s)) }) })
|
|
@@ -27154,7 +27154,7 @@ const Lo = ({
|
|
|
27154
27154
|
{ early: u, late: h }
|
|
27155
27155
|
);
|
|
27156
27156
|
}
|
|
27157
|
-
return n && (u = `${n} ${u}`, l = `${n} ${l}`), r && (u = `${u} ${r}`, l = `${l} ${r}`), /* @__PURE__ */ c.jsx("span", { className:
|
|
27157
|
+
return n && (u = `${n} ${u}`, l = `${n} ${l}`), r && (u = `${u} ${r}`, l = `${l} ${r}`), /* @__PURE__ */ c.jsx("span", { className: V("time-to-complete", i), "aria-label": u, children: l });
|
|
27158
27158
|
};
|
|
27159
27159
|
const fk = ({ className: e = "", image: t, ...n }) => t ? (typeof t == "string" && (t = {
|
|
27160
27160
|
width: 1080,
|
|
@@ -27166,10 +27166,10 @@ const fk = ({ className: e = "", image: t, ...n }) => t ? (typeof t == "string"
|
|
|
27166
27166
|
{ height: 200, width: 768 },
|
|
27167
27167
|
{ height: 200, width: 1368 }
|
|
27168
27168
|
], t.query = "fit=thumb&f=center", /* @__PURE__ */ c.jsx(
|
|
27169
|
-
|
|
27169
|
+
vr,
|
|
27170
27170
|
{
|
|
27171
27171
|
...n,
|
|
27172
|
-
className:
|
|
27172
|
+
className: V("banner", e),
|
|
27173
27173
|
image: { ...t, aspect: "banner" }
|
|
27174
27174
|
}
|
|
27175
27175
|
)) : null;
|
|
@@ -27240,7 +27240,7 @@ const a_ = [
|
|
|
27240
27240
|
}), /* @__PURE__ */ c.jsx(
|
|
27241
27241
|
qn,
|
|
27242
27242
|
{
|
|
27243
|
-
className:
|
|
27243
|
+
className: V("banner-section", r, i, e, {
|
|
27244
27244
|
"has-image": n,
|
|
27245
27245
|
"image-full-width": n && u.imageFullWidth,
|
|
27246
27246
|
"image-inline": n && !u.imageFullWidth,
|
|
@@ -27264,7 +27264,7 @@ const a_ = [
|
|
|
27264
27264
|
size: { mobile: "medium", 768: "large" },
|
|
27265
27265
|
href: o.link,
|
|
27266
27266
|
...o.props,
|
|
27267
|
-
className:
|
|
27267
|
+
className: V({
|
|
27268
27268
|
new: r === "subtle",
|
|
27269
27269
|
[(g = o.props) == null ? void 0 : g.className]: (f = o.props) == null ? void 0 : f.className
|
|
27270
27270
|
}),
|
|
@@ -27273,7 +27273,7 @@ const a_ = [
|
|
|
27273
27273
|
)
|
|
27274
27274
|
] }),
|
|
27275
27275
|
n && /* @__PURE__ */ c.jsx(
|
|
27276
|
-
|
|
27276
|
+
vr,
|
|
27277
27277
|
{
|
|
27278
27278
|
image: {
|
|
27279
27279
|
...n,
|
|
@@ -27295,7 +27295,7 @@ const mk = ({
|
|
|
27295
27295
|
return e && (i["--image"] = `url(${e})`), /* @__PURE__ */ c.jsx(
|
|
27296
27296
|
qn,
|
|
27297
27297
|
{
|
|
27298
|
-
className:
|
|
27298
|
+
className: V("custom-content-banner", t, r, {
|
|
27299
27299
|
"has-image": e
|
|
27300
27300
|
}),
|
|
27301
27301
|
style: i,
|
|
@@ -27310,15 +27310,15 @@ const o_ = ({
|
|
|
27310
27310
|
image: r
|
|
27311
27311
|
}) => {
|
|
27312
27312
|
const i = typeof n == "string" ? /* @__PURE__ */ c.jsx(sr, { children: n }) : n;
|
|
27313
|
-
return /* @__PURE__ */ c.jsxs(qn, { className:
|
|
27313
|
+
return /* @__PURE__ */ c.jsxs(qn, { className: V("highlight-section", t), children: [
|
|
27314
27314
|
r && /* @__PURE__ */ c.jsx(
|
|
27315
27315
|
"div",
|
|
27316
27316
|
{
|
|
27317
|
-
className:
|
|
27317
|
+
className: V("highlight-container highlight-image", {
|
|
27318
27318
|
[`highlight-image-${e}`]: e === "right"
|
|
27319
27319
|
}),
|
|
27320
27320
|
children: /* @__PURE__ */ c.jsx(
|
|
27321
|
-
|
|
27321
|
+
vr,
|
|
27322
27322
|
{
|
|
27323
27323
|
image: {
|
|
27324
27324
|
...r,
|
|
@@ -27333,13 +27333,13 @@ const o_ = ({
|
|
|
27333
27333
|
/* @__PURE__ */ c.jsx(
|
|
27334
27334
|
"div",
|
|
27335
27335
|
{
|
|
27336
|
-
className:
|
|
27336
|
+
className: V("highlight-container highlight-content-wrapper", {
|
|
27337
27337
|
"no-image": !r
|
|
27338
27338
|
}),
|
|
27339
27339
|
children: /* @__PURE__ */ c.jsx(
|
|
27340
27340
|
"div",
|
|
27341
27341
|
{
|
|
27342
|
-
className:
|
|
27342
|
+
className: V("highlight-content", {
|
|
27343
27343
|
"highlight-content-right": e === "left"
|
|
27344
27344
|
}),
|
|
27345
27345
|
children: r ? i : /* @__PURE__ */ c.jsx("div", { className: "content-default", children: i })
|
|
@@ -27355,7 +27355,7 @@ const gk = ({
|
|
|
27355
27355
|
title: n,
|
|
27356
27356
|
text: r,
|
|
27357
27357
|
gtmContext: i
|
|
27358
|
-
}) => !n && !r ? null : /* @__PURE__ */ c.jsxs("aside", { className:
|
|
27358
|
+
}) => !n && !r ? null : /* @__PURE__ */ c.jsxs("aside", { className: V("marketing-block", e), children: [
|
|
27359
27359
|
n && /* @__PURE__ */ c.jsx("p", { className: "title", children: n }),
|
|
27360
27360
|
r && /* @__PURE__ */ c.jsx("p", { children: r }),
|
|
27361
27361
|
t && /* @__PURE__ */ c.jsx(
|
|
@@ -27547,7 +27547,7 @@ const gk = ({
|
|
|
27547
27547
|
return /* @__PURE__ */ c.jsx(
|
|
27548
27548
|
"p",
|
|
27549
27549
|
{
|
|
27550
|
-
className:
|
|
27550
|
+
className: V("cta-wrapper", {
|
|
27551
27551
|
"has-member-section": e == null ? void 0 : e.members
|
|
27552
27552
|
}),
|
|
27553
27553
|
children: /* @__PURE__ */ c.jsx(
|
|
@@ -27669,7 +27669,7 @@ const sh = ({
|
|
|
27669
27669
|
}, ($ = m == null ? void 0 : m.current) == null || $.focus(), (A = m == null ? void 0 : m.current) == null || A.scrollIntoView({ behavior: "smooth" })), /* @__PURE__ */ c.jsx(
|
|
27670
27670
|
"li",
|
|
27671
27671
|
{
|
|
27672
|
-
className:
|
|
27672
|
+
className: V("card-wrapper text-medium", E, t, {
|
|
27673
27673
|
"has-link": C,
|
|
27674
27674
|
"no-link": !C,
|
|
27675
27675
|
"has-image": f.banner
|
|
@@ -27697,7 +27697,7 @@ const sh = ({
|
|
|
27697
27697
|
),
|
|
27698
27698
|
f.banner ? /* @__PURE__ */ c.jsxs("p", { className: "img", children: [
|
|
27699
27699
|
f.registered && /* @__PURE__ */ c.jsx(an, { size: "small", variant: "registered", children: u.formatMessage({ id: "card_registered" }) }),
|
|
27700
|
-
/* @__PURE__ */ c.jsx(
|
|
27700
|
+
/* @__PURE__ */ c.jsx(vr, { image: { ...f.banner, description: "" } })
|
|
27701
27701
|
] }) : E === "people" ? /* @__PURE__ */ c.jsx(
|
|
27702
27702
|
In,
|
|
27703
27703
|
{
|
|
@@ -27755,7 +27755,7 @@ const sh = ({
|
|
|
27755
27755
|
}
|
|
27756
27756
|
);
|
|
27757
27757
|
};
|
|
27758
|
-
const f_ = ({ cards: e, cardTypes: t, className: n = "", ...r }) => /* @__PURE__ */ c.jsx("ul", { className:
|
|
27758
|
+
const f_ = ({ cards: e, cardTypes: t, className: n = "", ...r }) => /* @__PURE__ */ c.jsx("ul", { className: V("card-block", n), children: e.map((i, a) => {
|
|
27759
27759
|
const s = i.slug ? `${i.slug}-${t[a]}` : `${t[a]}-${a}`;
|
|
27760
27760
|
return /* @__PURE__ */ c.jsx(
|
|
27761
27761
|
sh,
|
|
@@ -27776,7 +27776,7 @@ const f_ = ({ cards: e, cardTypes: t, className: n = "", ...r }) => /* @__PURE__
|
|
|
27776
27776
|
return null;
|
|
27777
27777
|
const { text: r, element: i = "h2", variant: a = "default", size: s = "medium", link: o } = t;
|
|
27778
27778
|
return te.createElement(i, {
|
|
27779
|
-
className:
|
|
27779
|
+
className: V("title", a, s, {
|
|
27780
27780
|
"highlighted-title": a === "highlighted"
|
|
27781
27781
|
}),
|
|
27782
27782
|
children: /* @__PURE__ */ c.jsxs(c.Fragment, { children: [
|
|
@@ -27889,7 +27889,7 @@ const p_ = ({
|
|
|
27889
27889
|
"section",
|
|
27890
27890
|
{
|
|
27891
27891
|
ref: C,
|
|
27892
|
-
className:
|
|
27892
|
+
className: V("carousel-wrapper", a),
|
|
27893
27893
|
"data-testid": "carousel",
|
|
27894
27894
|
children: [
|
|
27895
27895
|
/* @__PURE__ */ c.jsx(m_, { id: e, title: i }),
|
|
@@ -27949,7 +27949,7 @@ const p_ = ({
|
|
|
27949
27949
|
children: /* @__PURE__ */ c.jsx(
|
|
27950
27950
|
"button",
|
|
27951
27951
|
{
|
|
27952
|
-
className:
|
|
27952
|
+
className: V("page-indicator", {
|
|
27953
27953
|
selected: T === b
|
|
27954
27954
|
}),
|
|
27955
27955
|
onClick: (R) => {
|
|
@@ -28001,7 +28001,7 @@ const p_ = ({
|
|
|
28001
28001
|
}) => !e || !e.length ? null : e.map(
|
|
28002
28002
|
({ title: a, viewAllUrl: s, cards: o, cardsTypes: l }, u) => {
|
|
28003
28003
|
const d = a ? window.btoa(a) : `carousel-${u}`, h = u === e.length - 1;
|
|
28004
|
-
return t ? /* @__PURE__ */ c.jsxs(
|
|
28004
|
+
return t ? /* @__PURE__ */ c.jsxs(Lr, { children: [
|
|
28005
28005
|
/* @__PURE__ */ c.jsx(
|
|
28006
28006
|
no,
|
|
28007
28007
|
{
|
|
@@ -28010,7 +28010,7 @@ const p_ = ({
|
|
|
28010
28010
|
}
|
|
28011
28011
|
),
|
|
28012
28012
|
h ? null : /* @__PURE__ */ c.jsx(on, {})
|
|
28013
|
-
] }, `placeholder-${d}`) : /* @__PURE__ */ c.jsxs(
|
|
28013
|
+
] }, `placeholder-${d}`) : /* @__PURE__ */ c.jsxs(Lr, { children: [
|
|
28014
28014
|
/* @__PURE__ */ c.jsx(
|
|
28015
28015
|
p_,
|
|
28016
28016
|
{
|
|
@@ -28024,7 +28024,26 @@ const p_ = ({
|
|
|
28024
28024
|
] }, `carousel-${d}`);
|
|
28025
28025
|
}
|
|
28026
28026
|
);
|
|
28027
|
-
const bk = ({
|
|
28027
|
+
const bk = ({ className: e = "", card: t, functions: n }) => {
|
|
28028
|
+
const { banner: r, title: i, text: a, isPrivate: s } = t;
|
|
28029
|
+
return /* @__PURE__ */ c.jsxs("div", { className: V("narrow-card", e), onClick: n == null ? void 0 : n.onClick, children: [
|
|
28030
|
+
/* @__PURE__ */ c.jsx(
|
|
28031
|
+
"div",
|
|
28032
|
+
{
|
|
28033
|
+
className: V("img", {
|
|
28034
|
+
private: s,
|
|
28035
|
+
"no-image": !r
|
|
28036
|
+
}),
|
|
28037
|
+
children: r && /* @__PURE__ */ c.jsx(vr, { image: r })
|
|
28038
|
+
}
|
|
28039
|
+
),
|
|
28040
|
+
/* @__PURE__ */ c.jsxs("div", { className: "content", children: [
|
|
28041
|
+
i && /* @__PURE__ */ c.jsx("p", { className: "title", children: i }),
|
|
28042
|
+
a && /* @__PURE__ */ c.jsx("p", { className: "text", children: a })
|
|
28043
|
+
] })
|
|
28044
|
+
] });
|
|
28045
|
+
};
|
|
28046
|
+
const yk = ({
|
|
28028
28047
|
element: e = "p",
|
|
28029
28048
|
data: {
|
|
28030
28049
|
timeLeftToFinish: t,
|
|
@@ -28040,7 +28059,7 @@ const bk = ({
|
|
|
28040
28059
|
u > 99 ? u = 100 : u < 1 && (u = 0);
|
|
28041
28060
|
const { highlightPercentage: d = !1 } = s;
|
|
28042
28061
|
return te.createElement(e, {
|
|
28043
|
-
className:
|
|
28062
|
+
className: V("course-progression", o, {
|
|
28044
28063
|
"highlight-percentage": d,
|
|
28045
28064
|
"has-circle-graph": a === "circle"
|
|
28046
28065
|
}),
|
|
@@ -28079,7 +28098,7 @@ const g_ = ({
|
|
|
28079
28098
|
title: r,
|
|
28080
28099
|
className: i = ""
|
|
28081
28100
|
}) => te.createElement(e, {
|
|
28082
|
-
className:
|
|
28101
|
+
className: V("lesson-name", i),
|
|
28083
28102
|
"data-number": `${t}.${n}`,
|
|
28084
28103
|
children: r
|
|
28085
28104
|
});
|
|
@@ -28092,15 +28111,15 @@ const v_ = ({
|
|
|
28092
28111
|
children: a
|
|
28093
28112
|
}) => {
|
|
28094
28113
|
const s = ce(), o = Xs(`lessonType_${i}`) ? s.formatMessage({ id: `lessonType_${i}` }) : Mh(i || "");
|
|
28095
|
-
return /* @__PURE__ */ c.jsxs("small", { className:
|
|
28096
|
-
/* @__PURE__ */ c.jsx("span", { className:
|
|
28114
|
+
return /* @__PURE__ */ c.jsxs("small", { className: V("content-type", { [e]: e !== "default" }), children: [
|
|
28115
|
+
/* @__PURE__ */ c.jsx("span", { className: V("type", n), children: o }),
|
|
28097
28116
|
" ",
|
|
28098
28117
|
t > 0 && !r && /* @__PURE__ */ c.jsx(Lo, { time: t }),
|
|
28099
28118
|
" ",
|
|
28100
28119
|
a ? /* @__PURE__ */ c.jsx("span", { className: "additional", children: a }) : null
|
|
28101
28120
|
] });
|
|
28102
28121
|
};
|
|
28103
|
-
const
|
|
28122
|
+
const Dk = ({
|
|
28104
28123
|
course: {
|
|
28105
28124
|
articles: e,
|
|
28106
28125
|
canAccessCourse: t,
|
|
@@ -28158,7 +28177,7 @@ const yk = ({
|
|
|
28158
28177
|
return w && (z.style = { "--image": `url(${w})` }), /* @__PURE__ */ c.jsx(
|
|
28159
28178
|
"li",
|
|
28160
28179
|
{
|
|
28161
|
-
className:
|
|
28180
|
+
className: V({
|
|
28162
28181
|
article: b === ni.ARTICLE,
|
|
28163
28182
|
discussion: b === ni.DISCUSSION,
|
|
28164
28183
|
quiz: b === ni.QUIZ,
|
|
@@ -28207,7 +28226,7 @@ const yk = ({
|
|
|
28207
28226
|
}
|
|
28208
28227
|
);
|
|
28209
28228
|
};
|
|
28210
|
-
const
|
|
28229
|
+
const xk = ({
|
|
28211
28230
|
isComplete: e = !1,
|
|
28212
28231
|
onClick: t,
|
|
28213
28232
|
...n
|
|
@@ -28223,7 +28242,7 @@ const Dk = ({
|
|
|
28223
28242
|
hover: "check-inside-circle_no-overlap_inverted"
|
|
28224
28243
|
},
|
|
28225
28244
|
onClick: t,
|
|
28226
|
-
className:
|
|
28245
|
+
className: V("mark-complete-button center gtm-trackable", {
|
|
28227
28246
|
completed: e
|
|
28228
28247
|
}),
|
|
28229
28248
|
"data-gtm-event-type": "mark-as-complete",
|
|
@@ -28231,7 +28250,7 @@ const Dk = ({
|
|
|
28231
28250
|
children: r.formatMessage({ id: `markCompleteButton${e ? "_completed" : ""}` })
|
|
28232
28251
|
}
|
|
28233
28252
|
);
|
|
28234
|
-
},
|
|
28253
|
+
}, wk = ({
|
|
28235
28254
|
id: e,
|
|
28236
28255
|
data: { jobTitle: t, name: n, organization: r, thumbnail: i }
|
|
28237
28256
|
}) => ({
|
|
@@ -28284,7 +28303,7 @@ const Dk = ({
|
|
|
28284
28303
|
contributors: ["community"]
|
|
28285
28304
|
}
|
|
28286
28305
|
];
|
|
28287
|
-
const Ei = "notFoundError_",
|
|
28306
|
+
const Ei = "notFoundError_", Ck = () => {
|
|
28288
28307
|
const e = ce(), t = [];
|
|
28289
28308
|
return Tc.forEach((n, r) => {
|
|
28290
28309
|
n.title = e.formatMessage({ id: `${Ei}post_${r + 1}` }), t.push("solutionArticle");
|
|
@@ -28332,7 +28351,7 @@ export {
|
|
|
28332
28351
|
H_ as Breadcrumbs,
|
|
28333
28352
|
L_ as Buckets,
|
|
28334
28353
|
Se as Button,
|
|
28335
|
-
|
|
28354
|
+
Gr as ButtonWrapper,
|
|
28336
28355
|
ni as COURSE_CONTENT_TYPES,
|
|
28337
28356
|
bm as CacheProvider,
|
|
28338
28357
|
sh as Card,
|
|
@@ -28348,8 +28367,8 @@ export {
|
|
|
28348
28367
|
nd as Contributors,
|
|
28349
28368
|
Po as ConversationContext,
|
|
28350
28369
|
IC as CookieBanner,
|
|
28351
|
-
|
|
28352
|
-
|
|
28370
|
+
yk as CourseProgression,
|
|
28371
|
+
Dk as CourseStructure,
|
|
28353
28372
|
mk as CustomContentBanner,
|
|
28354
28373
|
ut as CustomEvents,
|
|
28355
28374
|
Pi as DELETED_USER_ID,
|
|
@@ -28363,7 +28382,7 @@ export {
|
|
|
28363
28382
|
KE as DiscussionThread,
|
|
28364
28383
|
on as Divider,
|
|
28365
28384
|
X_ as DownloadSection,
|
|
28366
|
-
|
|
28385
|
+
Br as EMAILS,
|
|
28367
28386
|
ek as EditSection,
|
|
28368
28387
|
Zp as EmailHelperTextBox,
|
|
28369
28388
|
$n as EmptyStateBox,
|
|
@@ -28406,7 +28425,7 @@ export {
|
|
|
28406
28425
|
tk as LogoSection,
|
|
28407
28426
|
UC as MEMBERS_PER_PAGE,
|
|
28408
28427
|
$h as MENTION_REGEX,
|
|
28409
|
-
|
|
28428
|
+
xk as MarkCompleteButton,
|
|
28410
28429
|
sr as MarkdownText,
|
|
28411
28430
|
gk as MarketingBlock,
|
|
28412
28431
|
rn as Marks,
|
|
@@ -28416,8 +28435,9 @@ export {
|
|
|
28416
28435
|
$p as MoreMenu,
|
|
28417
28436
|
N_ as NUMBER_OF_COUNTRIES,
|
|
28418
28437
|
P_ as NUMBER_OF_USERS,
|
|
28438
|
+
bk as NarrowCard,
|
|
28419
28439
|
qp as NavigationMenu,
|
|
28420
|
-
|
|
28440
|
+
Ck as NotFoundError,
|
|
28421
28441
|
xn as Overlay,
|
|
28422
28442
|
Jc as OverlayContext,
|
|
28423
28443
|
km as OverlayProvider,
|
|
@@ -28438,7 +28458,7 @@ export {
|
|
|
28438
28458
|
Y_ as Rating,
|
|
28439
28459
|
jE as RepliesFeed,
|
|
28440
28460
|
VE as ResponsesHeading,
|
|
28441
|
-
|
|
28461
|
+
vr as ResponsiveImage,
|
|
28442
28462
|
I_ as ReturnToNavButton,
|
|
28443
28463
|
FC as RichTextEditor,
|
|
28444
28464
|
jC as SearchForm,
|
|
@@ -28472,7 +28492,7 @@ export {
|
|
|
28472
28492
|
Ih as getShortDate,
|
|
28473
28493
|
so as getValueLength,
|
|
28474
28494
|
Ji as headerData,
|
|
28475
|
-
|
|
28495
|
+
wk as mapGetStreamData,
|
|
28476
28496
|
Yh as pageReady,
|
|
28477
28497
|
Jo as passwordValidator,
|
|
28478
28498
|
sk as repliesFeedMock,
|
|
@@ -28483,7 +28503,7 @@ export {
|
|
|
28483
28503
|
_c as transformSlugs,
|
|
28484
28504
|
gm as useBadges,
|
|
28485
28505
|
jh as useCurrentPath,
|
|
28486
|
-
|
|
28506
|
+
zr as useEffectAfterMount,
|
|
28487
28507
|
mr as useElementWidth,
|
|
28488
28508
|
_m as useOverlay,
|
|
28489
28509
|
Oh as useScrollListener,
|