@apolitical/component-library 8.2.3-ac.0 → 8.2.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.js +27 -27
- package/index.mjs +421 -423
- package/navigation/breadcrumbs/breadcrumbs.d.ts +2 -2
- package/navigation/breadcrumbs/index.d.ts +1 -0
- package/package.json +1 -1
package/index.mjs
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import re, { memo as qt, useRef as Se, useEffect as fe, useState as se, useMemo as en, forwardRef as
|
|
1
|
+
import re, { memo as qt, useRef as Se, useEffect as fe, useState as se, useMemo as en, forwardRef as mo, Children as js, createContext as xt, useContext as Oe, useCallback as Re, lazy as wr, useReducer as Un, Suspense as od, Fragment as Kr, useLayoutEffect as Gm, Component as Qm } from "react";
|
|
2
2
|
import { useIntl as ce, FormattedMessage as lt, IntlProvider as Jm, createIntl as Xm } from "react-intl";
|
|
3
3
|
import Rt from "lodash.clonedeep";
|
|
4
4
|
import eh from "lodash.set";
|
|
5
5
|
import ld from "react-dom";
|
|
6
6
|
import tn from "markdown-to-jsx";
|
|
7
|
-
import { QueryClient as th, QueryClientProvider as nh, useMutation as rt, useQueryClient as
|
|
7
|
+
import { QueryClient as th, QueryClientProvider as nh, useMutation as rt, useQueryClient as ho, useInfiniteQuery as po, useQuery as rh } from "@tanstack/react-query";
|
|
8
8
|
import { ReactQueryDevtools as ih } from "@tanstack/react-query-devtools";
|
|
9
9
|
import Ri from "posthog-js";
|
|
10
10
|
import { CookiesProvider as ah, useCookies as ud } from "react-cookie";
|
|
@@ -89,8 +89,8 @@ const H = /* @__PURE__ */ Wn(lh), uh = ({
|
|
|
89
89
|
element: e = "span",
|
|
90
90
|
children: t = null,
|
|
91
91
|
...n
|
|
92
|
-
}) => re.createElement(e, { ...n, "aria-hidden": !0 }, t),
|
|
93
|
-
var
|
|
92
|
+
}) => re.createElement(e, { ...n, "aria-hidden": !0 }, t), go = qt(ch);
|
|
93
|
+
var Ps = { exports: {} }, kr = {};
|
|
94
94
|
/**
|
|
95
95
|
* @license React
|
|
96
96
|
* react-jsx-runtime.production.min.js
|
|
@@ -539,7 +539,7 @@ function fh() {
|
|
|
539
539
|
value: ze
|
|
540
540
|
}), Object.freeze && (Object.freeze(Me.props), Object.freeze(Me)), Me;
|
|
541
541
|
};
|
|
542
|
-
function
|
|
542
|
+
function ka(R, le, he, Ae, ze) {
|
|
543
543
|
{
|
|
544
544
|
var Ye, $e = {}, Me = null, pt = null;
|
|
545
545
|
he !== void 0 && (ae(he), Me = "" + he), Ot(le) && (ae(le.key), Me = "" + le.key), He(le) && (pt = le.ref, Dt(le, ze));
|
|
@@ -565,9 +565,9 @@ function fh() {
|
|
|
565
565
|
} else
|
|
566
566
|
mi.setExtraStackFrame(null);
|
|
567
567
|
}
|
|
568
|
-
var
|
|
569
|
-
|
|
570
|
-
function
|
|
568
|
+
var Fa;
|
|
569
|
+
Fa = !1;
|
|
570
|
+
function Aa(R) {
|
|
571
571
|
return typeof R == "object" && R !== null && R.$$typeof === t;
|
|
572
572
|
}
|
|
573
573
|
function ll() {
|
|
@@ -626,15 +626,15 @@ Check the top-level render call using <` + he + ">.");
|
|
|
626
626
|
if (je(R))
|
|
627
627
|
for (var he = 0; he < R.length; he++) {
|
|
628
628
|
var Ae = R[he];
|
|
629
|
-
|
|
629
|
+
Aa(Ae) && cl(Ae, le);
|
|
630
630
|
}
|
|
631
|
-
else if (
|
|
631
|
+
else if (Aa(R))
|
|
632
632
|
R._store && (R._store.validated = !0);
|
|
633
633
|
else if (R) {
|
|
634
634
|
var ze = b(R);
|
|
635
635
|
if (typeof ze == "function" && ze !== R.entries)
|
|
636
636
|
for (var Ye = ze.call(R), $e; !($e = Ye.next()).done; )
|
|
637
|
-
|
|
637
|
+
Aa($e.value) && cl($e.value, le);
|
|
638
638
|
}
|
|
639
639
|
}
|
|
640
640
|
}
|
|
@@ -655,8 +655,8 @@ Check the top-level render call using <` + he + ">.");
|
|
|
655
655
|
if (he) {
|
|
656
656
|
var Ae = k(le);
|
|
657
657
|
Ge(he, R.props, "prop", Ae, R);
|
|
658
|
-
} else if (le.PropTypes !== void 0 && !
|
|
659
|
-
|
|
658
|
+
} else if (le.PropTypes !== void 0 && !Fa) {
|
|
659
|
+
Fa = !0;
|
|
660
660
|
var ze = k(le);
|
|
661
661
|
y("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", ze || "Unknown");
|
|
662
662
|
}
|
|
@@ -686,7 +686,7 @@ Check the top-level render call using <` + he + ">.");
|
|
|
686
686
|
var it;
|
|
687
687
|
R === null ? it = "null" : je(R) ? it = "array" : R !== void 0 && R.$$typeof === t ? (it = "<" + (k(R.type) || "Unknown") + " />", Me = " Did you accidentally export a JSX literal instead of a component?") : it = typeof R, y("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", it, Me);
|
|
688
688
|
}
|
|
689
|
-
var ot =
|
|
689
|
+
var ot = ka(R, le, he, ze, Ye);
|
|
690
690
|
if (ot == null)
|
|
691
691
|
return ot;
|
|
692
692
|
if ($e) {
|
|
@@ -715,8 +715,8 @@ Check the top-level render call using <` + he + ">.");
|
|
|
715
715
|
Fr.Fragment = r, Fr.jsx = Zm, Fr.jsxs = Ym;
|
|
716
716
|
}()), Fr;
|
|
717
717
|
}
|
|
718
|
-
process.env.NODE_ENV === "production" ?
|
|
719
|
-
var c =
|
|
718
|
+
process.env.NODE_ENV === "production" ? Ps.exports = dh() : Ps.exports = fh();
|
|
719
|
+
var c = Ps.exports;
|
|
720
720
|
const mh = 50, hh = 8, ph = (e, t) => {
|
|
721
721
|
if (!e)
|
|
722
722
|
return !1;
|
|
@@ -805,14 +805,14 @@ function md(e, t, n) {
|
|
|
805
805
|
var r = n === void 0 ? {} : n, i = r.leading, a = r.trailing;
|
|
806
806
|
return Yr(e, t, { maxWait: t, leading: i === void 0 || i, trailing: a === void 0 || a });
|
|
807
807
|
}
|
|
808
|
-
let
|
|
808
|
+
let Ta;
|
|
809
809
|
const Vn = (e = !0, t = !1, n = "window") => {
|
|
810
810
|
if (!e)
|
|
811
811
|
return;
|
|
812
812
|
const [r, i] = re.useState(0) || [!1, () => {
|
|
813
813
|
}];
|
|
814
814
|
fe(() => (o(), window.addEventListener("resize", u), window.addEventListener("hashchange", u), window.addEventListener("hiddenSectionVisible", l), () => {
|
|
815
|
-
clearTimeout(
|
|
815
|
+
clearTimeout(Ta), u.flush(), window.removeEventListener("resize", u), window.removeEventListener("hashchange", u), window.removeEventListener("hiddenSectionVisible", l);
|
|
816
816
|
}), n === "window" ? [] : [n]);
|
|
817
817
|
const s = () => {
|
|
818
818
|
if (n)
|
|
@@ -824,7 +824,7 @@ const Vn = (e = !0, t = !1, n = "window") => {
|
|
|
824
824
|
n === "window" || !n.closest(`#${m}`) || s() === r || o();
|
|
825
825
|
}, u = md(
|
|
826
826
|
() => {
|
|
827
|
-
s() !== r && (t && (clearTimeout(
|
|
827
|
+
s() !== r && (t && (clearTimeout(Ta), document.body.classList.add("is-resizing"), Ta = setTimeout(() => {
|
|
828
828
|
document.body.classList.remove("is-resizing");
|
|
829
829
|
}, 550)), o());
|
|
830
830
|
},
|
|
@@ -895,7 +895,7 @@ const Vn = (e = !0, t = !1, n = "window") => {
|
|
|
895
895
|
}
|
|
896
896
|
};
|
|
897
897
|
};
|
|
898
|
-
const gl = {}, bh =
|
|
898
|
+
const gl = {}, bh = mo(
|
|
899
899
|
({
|
|
900
900
|
id: e,
|
|
901
901
|
styling: t = {},
|
|
@@ -1018,7 +1018,7 @@ const On = {
|
|
|
1018
1018
|
day: "numeric",
|
|
1019
1019
|
month: "short",
|
|
1020
1020
|
year: "numeric"
|
|
1021
|
-
}),
|
|
1021
|
+
}), Os = (e) => {
|
|
1022
1022
|
let t;
|
|
1023
1023
|
const n = Gi(), r = Gi(new Date(e));
|
|
1024
1024
|
try {
|
|
@@ -1677,9 +1677,9 @@ Thank you for helping to protect the Apolitical community from abusive content.`
|
|
|
1677
1677
|
es: Th,
|
|
1678
1678
|
fr: Bh,
|
|
1679
1679
|
pt: Sh
|
|
1680
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
1680
|
+
}, Symbol.toStringTag, { value: "Module" })), vo = (e, t = Cr) => e in t, Vt = (e, t, n, r, i = {}) => {
|
|
1681
1681
|
let a = "";
|
|
1682
|
-
return
|
|
1682
|
+
return vo(`${t}_${n}`) ? a = e({ id: `${t}_${n}` }, i) : a = e({ id: t }, { [r]: n, ...i }), a;
|
|
1683
1683
|
}, Ph = (e, t, n) => {
|
|
1684
1684
|
if (!e || e === 0)
|
|
1685
1685
|
return "0";
|
|
@@ -1751,7 +1751,7 @@ Thank you for helping to protect the Apolitical community from abusive content.`
|
|
|
1751
1751
|
e = e.replace(s, u.name ? Mh(e, u, t) : s);
|
|
1752
1752
|
}
|
|
1753
1753
|
return e;
|
|
1754
|
-
},
|
|
1754
|
+
}, bo = (e) => {
|
|
1755
1755
|
const t = e.startsWith("http") ? e : `https://${e}`, r = new URL(t).hostname;
|
|
1756
1756
|
return { full: t, pretty: r };
|
|
1757
1757
|
}, xd = (e) => new URLSearchParams(window.location.search).get(e), Gr = (e = "") => e.replace(/\s+/g, "").length > 0, bl = (e) => {
|
|
@@ -1970,7 +1970,7 @@ const nn = ({ className: e = "", maxWidth: t = !1 }) => {
|
|
|
1970
1970
|
}, Rh = ({ format: e, height: t, query: n, width: r }) => {
|
|
1971
1971
|
let i = `w=${r}&h=${t}`;
|
|
1972
1972
|
return i = e ? `${i}&fm=${e}` : i, i = n ? `${i}&${n}` : i, i;
|
|
1973
|
-
},
|
|
1973
|
+
}, Ba = ({ format: e, range: t, url: n, query: r }) => t.map(({ height: i, width: a }) => `${n}?${Rh({
|
|
1974
1974
|
format: e,
|
|
1975
1975
|
height: i,
|
|
1976
1976
|
query: r,
|
|
@@ -1988,7 +1988,7 @@ const Hn = ({ image: e, className: t, testId: n }) => {
|
|
|
1988
1988
|
loading: d,
|
|
1989
1989
|
decoding: m,
|
|
1990
1990
|
fetchPriority: h
|
|
1991
|
-
} = e, { range: p, sizes: g } = $h(e), f =
|
|
1991
|
+
} = e, { range: p, sizes: g } = $h(e), f = Ba({ format: "avif", query: o, range: p, url: l }), b = Ba({ format: "webp", query: o, range: p, url: l }), v = Ba({ format: "", query: o, range: p, url: l });
|
|
1992
1992
|
let y = {};
|
|
1993
1993
|
return s && (y = { "--color": s }), a && a.includes("svg") ? /* @__PURE__ */ c.jsx("picture", { className: t, style: y, children: /* @__PURE__ */ c.jsx(
|
|
1994
1994
|
"img",
|
|
@@ -2061,7 +2061,7 @@ const tF = ({ image: e, className: t = "", testId: n }) => /* @__PURE__ */ c.jsx
|
|
|
2061
2061
|
...d
|
|
2062
2062
|
}) : /* @__PURE__ */ c.jsx(c.Fragment, { children: t });
|
|
2063
2063
|
};
|
|
2064
|
-
const Ih =
|
|
2064
|
+
const Ih = mo(
|
|
2065
2065
|
({ className: e = "", children: t }, n) => {
|
|
2066
2066
|
const r = Se(null), i = n || r;
|
|
2067
2067
|
return /* @__PURE__ */ c.jsx(
|
|
@@ -2182,7 +2182,7 @@ class zh {
|
|
|
2182
2182
|
this.el.open = t, this.animation = null, this.isClosing = !1, this.isExpanding = !1, this.el.style.height = this.el.style.overflow = "";
|
|
2183
2183
|
}
|
|
2184
2184
|
}
|
|
2185
|
-
const
|
|
2185
|
+
const yo = ({
|
|
2186
2186
|
label: e = !1,
|
|
2187
2187
|
className: t = "",
|
|
2188
2188
|
children: n,
|
|
@@ -2231,7 +2231,7 @@ const Cl = {
|
|
|
2231
2231
|
customLabel: n,
|
|
2232
2232
|
className: r = ""
|
|
2233
2233
|
}) => {
|
|
2234
|
-
const i = ce(), a = t ? { "--custom-icon": qh(t) } : {}, s =
|
|
2234
|
+
const i = ce(), a = t ? { "--custom-icon": qh(t) } : {}, s = vo(`contentTypeLabel_${e}`) ? i.formatMessage({ id: `contentTypeLabel_${e}` }) : !1;
|
|
2235
2235
|
return !n && !s ? null : /* @__PURE__ */ c.jsx(
|
|
2236
2236
|
"small",
|
|
2237
2237
|
{
|
|
@@ -2309,9 +2309,9 @@ const fn = ({
|
|
|
2309
2309
|
}
|
|
2310
2310
|
);
|
|
2311
2311
|
};
|
|
2312
|
-
const
|
|
2312
|
+
const Ns = ({ children: e, ...t }) => /* @__PURE__ */ c.jsx("p", { ...t, children: e }), wd = { q: Ns, blockquote: Ns };
|
|
2313
2313
|
for (let e = 1; e <= 6; e++)
|
|
2314
|
-
wd[`h${e}`] = { component:
|
|
2314
|
+
wd[`h${e}`] = { component: Ns, props: { className: "title" } };
|
|
2315
2315
|
const Wh = ({
|
|
2316
2316
|
type: e = "default",
|
|
2317
2317
|
className: t = "",
|
|
@@ -2428,11 +2428,11 @@ const aF = ({
|
|
|
2428
2428
|
id: "markdown_collapsibleSection_summary"
|
|
2429
2429
|
});
|
|
2430
2430
|
const r = [];
|
|
2431
|
-
for (const a of
|
|
2431
|
+
for (const a of js.toArray(e))
|
|
2432
2432
|
if (!(!a || typeof a == "string" || typeof a == "number"))
|
|
2433
2433
|
if (re.isValidElement(a) && a.type === "summary") {
|
|
2434
2434
|
if (a.props && a.props.children) {
|
|
2435
|
-
for (const s of
|
|
2435
|
+
for (const s of js.toArray(a.props.children))
|
|
2436
2436
|
if (!(!s || typeof s == "string" || typeof s == "number") && re.isValidElement(s)) {
|
|
2437
2437
|
const o = s.type;
|
|
2438
2438
|
if (Zh.includes(o)) {
|
|
@@ -2446,7 +2446,7 @@ const aF = ({
|
|
|
2446
2446
|
r.push(a);
|
|
2447
2447
|
const i = n ? n.toString() : "";
|
|
2448
2448
|
return /* @__PURE__ */ c.jsx(
|
|
2449
|
-
|
|
2449
|
+
yo,
|
|
2450
2450
|
{
|
|
2451
2451
|
label: i,
|
|
2452
2452
|
className: ["Sources", "Resources"].includes(i) ? "discrete-links" : "",
|
|
@@ -2542,13 +2542,13 @@ const ap = ({ children: e, locale: t, messages: n }) => {
|
|
|
2542
2542
|
...n || {}
|
|
2543
2543
|
};
|
|
2544
2544
|
return /* @__PURE__ */ c.jsx(Jm, { locale: r, messages: i, children: e });
|
|
2545
|
-
}, Ed = xt({}),
|
|
2545
|
+
}, Ed = xt({}), Sa = {
|
|
2546
2546
|
en: "English",
|
|
2547
2547
|
es: "Español",
|
|
2548
2548
|
fr: "Français",
|
|
2549
2549
|
pt: "Português"
|
|
2550
2550
|
}, ut = xt({ isLoading: !0 });
|
|
2551
|
-
function
|
|
2551
|
+
function xo() {
|
|
2552
2552
|
return Oe(ut);
|
|
2553
2553
|
}
|
|
2554
2554
|
const sp = ({ children: e, user: t, updateDetails: n }) => /* @__PURE__ */ c.jsx(ut.Provider, { value: { ...t, updateDetails: n }, children: e }), _d = xt({
|
|
@@ -2631,7 +2631,7 @@ const sp = ({ children: e, user: t, updateDetails: n }) => /* @__PURE__ */ c.jsx
|
|
|
2631
2631
|
let r = { ...t };
|
|
2632
2632
|
t.href && (t.href.includes("http:") || t.href.includes("https:")) && !t.target && (r.target = "_blank");
|
|
2633
2633
|
let i = e, a = !1;
|
|
2634
|
-
for (const o of
|
|
2634
|
+
for (const o of js.toArray(e))
|
|
2635
2635
|
if (!(!o || typeof o == "string" || typeof o == "number") && re.isValidElement(o)) {
|
|
2636
2636
|
const l = o.type;
|
|
2637
2637
|
if (["button", "center", "span", "strong"].includes(l) && o.props && o.props.children && o.props.children[0])
|
|
@@ -2652,7 +2652,7 @@ const dp = {
|
|
|
2652
2652
|
a: cp,
|
|
2653
2653
|
// Override psuedo-code
|
|
2654
2654
|
// We give the content team psuedo-code short cuts to use in Contentful
|
|
2655
|
-
CollapsibleSection:
|
|
2655
|
+
CollapsibleSection: yo,
|
|
2656
2656
|
TextBox: Lt,
|
|
2657
2657
|
CaseStudy: Hh,
|
|
2658
2658
|
// Override embedded HTML
|
|
@@ -2825,7 +2825,7 @@ const pp = ({ element: e = "ul", userBadges: t, badgeOptions: n }) => {
|
|
|
2825
2825
|
});
|
|
2826
2826
|
};
|
|
2827
2827
|
var kd = /* @__PURE__ */ ((e) => (e.Accepted = "accepted", e.Cancelled = "cancelled", e.Declined = "declined", e.Pending = "pending", e.Removed = "removed", e))(kd || {}), Fd = /* @__PURE__ */ ((e) => (e.In = "in", e.Out = "out", e))(Fd || {});
|
|
2828
|
-
const { In: gp, Out: kl } = Fd, { Pending:
|
|
2828
|
+
const { In: gp, Out: kl } = Fd, { Pending: ja, Accepted: Fl, Cancelled: vp, Removed: bp } = kd, yp = ({
|
|
2829
2829
|
functions: e,
|
|
2830
2830
|
connection: t = {
|
|
2831
2831
|
status: null,
|
|
@@ -2846,7 +2846,7 @@ const { In: gp, Out: kl } = Fd, { Pending: Pa, Accepted: Fl, Cancelled: vp, Remo
|
|
|
2846
2846
|
p(!1);
|
|
2847
2847
|
}
|
|
2848
2848
|
};
|
|
2849
|
-
return g ===
|
|
2849
|
+
return g === ja && b === kl ? /* @__PURE__ */ c.jsx(
|
|
2850
2850
|
Ce,
|
|
2851
2851
|
{
|
|
2852
2852
|
onClick: async () => {
|
|
@@ -2861,7 +2861,7 @@ const { In: gp, Out: kl } = Fd, { Pending: Pa, Accepted: Fl, Cancelled: vp, Remo
|
|
|
2861
2861
|
...i,
|
|
2862
2862
|
children: a({ id: "member_connection_accept" })
|
|
2863
2863
|
}
|
|
2864
|
-
) : g ===
|
|
2864
|
+
) : g === ja && b === gp ? /* @__PURE__ */ c.jsxs("div", { className: "connection-cta-wrapper", children: [
|
|
2865
2865
|
/* @__PURE__ */ c.jsx(
|
|
2866
2866
|
"span",
|
|
2867
2867
|
{
|
|
@@ -2871,7 +2871,7 @@ const { In: gp, Out: kl } = Fd, { Pending: Pa, Accepted: Fl, Cancelled: vp, Remo
|
|
|
2871
2871
|
}
|
|
2872
2872
|
),
|
|
2873
2873
|
u && /* @__PURE__ */ c.jsx(
|
|
2874
|
-
|
|
2874
|
+
Ls,
|
|
2875
2875
|
{
|
|
2876
2876
|
options: [
|
|
2877
2877
|
{
|
|
@@ -2893,7 +2893,7 @@ const { In: gp, Out: kl } = Fd, { Pending: Pa, Accepted: Fl, Cancelled: vp, Remo
|
|
|
2893
2893
|
}
|
|
2894
2894
|
),
|
|
2895
2895
|
d && /* @__PURE__ */ c.jsx(
|
|
2896
|
-
|
|
2896
|
+
Ls,
|
|
2897
2897
|
{
|
|
2898
2898
|
options: [
|
|
2899
2899
|
{
|
|
@@ -2909,7 +2909,7 @@ const { In: gp, Out: kl } = Fd, { Pending: Pa, Accepted: Fl, Cancelled: vp, Remo
|
|
|
2909
2909
|
Ce,
|
|
2910
2910
|
{
|
|
2911
2911
|
onClick: async () => {
|
|
2912
|
-
await y(m, { status:
|
|
2912
|
+
await y(m, { status: ja, direction: kl });
|
|
2913
2913
|
},
|
|
2914
2914
|
variant: r ? "primary" : "secondary",
|
|
2915
2915
|
size: "small",
|
|
@@ -2949,16 +2949,16 @@ const xp = ({
|
|
|
2949
2949
|
}
|
|
2950
2950
|
);
|
|
2951
2951
|
}, Ad = qt(xp);
|
|
2952
|
-
const
|
|
2952
|
+
const Pa = "loadingBlock_", wp = ({
|
|
2953
2953
|
progress: e = 0,
|
|
2954
2954
|
steps: t = !1,
|
|
2955
2955
|
className: n = ""
|
|
2956
2956
|
}) => {
|
|
2957
2957
|
const r = ce();
|
|
2958
2958
|
t || (t = {
|
|
2959
|
-
0: { text: r.formatMessage({ id: `${
|
|
2960
|
-
75: { text: r.formatMessage({ id: `${
|
|
2961
|
-
100: { text: r.formatMessage({ id: `${
|
|
2959
|
+
0: { text: r.formatMessage({ id: `${Pa}loading` }) },
|
|
2960
|
+
75: { text: r.formatMessage({ id: `${Pa}almostDone` }) },
|
|
2961
|
+
100: { text: r.formatMessage({ id: `${Pa}complete` }) }
|
|
2962
2962
|
});
|
|
2963
2963
|
let i = null;
|
|
2964
2964
|
const a = Object.keys(t);
|
|
@@ -2983,14 +2983,14 @@ const Oa = "loadingBlock_", wp = ({
|
|
|
2983
2983
|
);
|
|
2984
2984
|
}, Dp = qt(wp);
|
|
2985
2985
|
const Zt = ({ element: e = "div", className: t = "", ...n }) => /* @__PURE__ */ c.jsx(
|
|
2986
|
-
|
|
2986
|
+
go,
|
|
2987
2987
|
{
|
|
2988
2988
|
element: e,
|
|
2989
2989
|
className: H("loading-placeholder", t),
|
|
2990
2990
|
...n
|
|
2991
2991
|
}
|
|
2992
2992
|
);
|
|
2993
|
-
const
|
|
2993
|
+
const Ms = {
|
|
2994
2994
|
header: ["logo", "link", "link", "search"],
|
|
2995
2995
|
sidebar: ["text", "text", "text", "text", "text"],
|
|
2996
2996
|
"cards-section": ["subtitle", "cards"],
|
|
@@ -3040,7 +3040,7 @@ const $s = {
|
|
|
3040
3040
|
"course-navigation": ["button", "button"],
|
|
3041
3041
|
"course-lesson-page": ["breadcrumb", "course-navigation", "text-page"],
|
|
3042
3042
|
"course-lesson-quiz": ["text-page", "quiz-box"]
|
|
3043
|
-
}, Td = (e, t) => e in
|
|
3043
|
+
}, Td = (e, t) => e in Ms ? /* @__PURE__ */ c.jsx("div", { className: e, children: Ms[e].map((n, r) => Td(n, r)) }, t) : /* @__PURE__ */ c.jsx(Zt, { className: e }, t), wo = ({ layout: e = "overview-page", ...t }) => /* @__PURE__ */ c.jsx("div", { className: H("loading-state", e), ...t, children: Ms[e].map((n, r) => Td(n, r)) }), Bd = (e) => {
|
|
3044
3044
|
const t = e && e.toUpperCase().trim().split(" ");
|
|
3045
3045
|
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) : "";
|
|
3046
3046
|
}, gi = ["#5AB6A3", "#A2D7AF", "#806056", "#3962B3"], Cp = (e) => {
|
|
@@ -3095,7 +3095,7 @@ const Al = 256, An = ({
|
|
|
3095
3095
|
);
|
|
3096
3096
|
};
|
|
3097
3097
|
var dt = /* @__PURE__ */ ((e) => (e.DISCUSSION_FORM_SUBMITTED = "discussionFormSubmitted", e.DISCUSSION_POST_ADDED = "discussionPostAdded", e.DISCUSSION_POST_CLICKED = "discussionPostClicked", e.MEMBER_CLICKED = "memberClicked", e))(dt || {});
|
|
3098
|
-
const
|
|
3098
|
+
const Do = (e) => e === "apolitical" ? {
|
|
3099
3099
|
image: `${dn}logos/member_apolitical.svg`
|
|
3100
3100
|
} : e === "community" || e === "deleted" || typeof e == "object" && !e.name ? {
|
|
3101
3101
|
image: `${dn}logos/member_community.svg`
|
|
@@ -3145,14 +3145,14 @@ const _n = ({
|
|
|
3145
3145
|
variant: v = "inline",
|
|
3146
3146
|
isCondensed: y = !0,
|
|
3147
3147
|
additionalContentNewLine: w = !1
|
|
3148
|
-
} = i, E = Oe(ut), C = p && E && typeof E.id == "string", [_, T] = se(!1), j =
|
|
3148
|
+
} = i, E = Oe(ut), C = p && E && typeof E.id == "string", [_, T] = se(!1), j = Do(t);
|
|
3149
3149
|
j.name || (j.name = h.formatMessage({
|
|
3150
3150
|
id: `member_${typeof t == "string" ? t : "community"}`
|
|
3151
3151
|
}));
|
|
3152
3152
|
const { name: P, image: L } = j;
|
|
3153
3153
|
let { url: O } = j;
|
|
3154
3154
|
typeof t == "object" && t.link !== void 0 && (t.link === !1 ? O = void 0 : O = t.link);
|
|
3155
|
-
const F = Ep(j), k = r && r.createdAt ?
|
|
3155
|
+
const F = Ep(j), k = r && r.createdAt ? Os(r.createdAt) : !1, B = r && r.createdAt ? bd(r.createdAt) : "", M = !O && C;
|
|
3156
3156
|
return re.createElement(e, {
|
|
3157
3157
|
...m,
|
|
3158
3158
|
className: H("member text-medium", b, v, l, {
|
|
@@ -3321,7 +3321,7 @@ const Tl = {
|
|
|
3321
3321
|
/* @__PURE__ */ c.jsx("ul", { children: n.map((h, p) => {
|
|
3322
3322
|
let g, f = "";
|
|
3323
3323
|
if (p < o) {
|
|
3324
|
-
const { name: b = "", image: v = "" } =
|
|
3324
|
+
const { name: b = "", image: v = "" } = Do(h);
|
|
3325
3325
|
if (s)
|
|
3326
3326
|
return /* @__PURE__ */ c.jsx(Zt, { element: "li", className: "contributor" }, p);
|
|
3327
3327
|
g = /* @__PURE__ */ c.jsx(
|
|
@@ -3372,7 +3372,7 @@ const jd = ({
|
|
|
3372
3372
|
...a
|
|
3373
3373
|
});
|
|
3374
3374
|
};
|
|
3375
|
-
var
|
|
3375
|
+
var $s = { exports: {} }, bi = { exports: {} }, Ue = {};
|
|
3376
3376
|
/** @license React v16.13.1
|
|
3377
3377
|
* react-is.production.min.js
|
|
3378
3378
|
*
|
|
@@ -3549,10 +3549,10 @@ object-assign
|
|
|
3549
3549
|
(c) Sindre Sorhus
|
|
3550
3550
|
@license MIT
|
|
3551
3551
|
*/
|
|
3552
|
-
var
|
|
3552
|
+
var Oa, Pl;
|
|
3553
3553
|
function Bp() {
|
|
3554
3554
|
if (Pl)
|
|
3555
|
-
return
|
|
3555
|
+
return Oa;
|
|
3556
3556
|
Pl = 1;
|
|
3557
3557
|
var e = Object.getOwnPropertySymbols, t = Object.prototype.hasOwnProperty, n = Object.prototype.propertyIsEnumerable;
|
|
3558
3558
|
function r(a) {
|
|
@@ -3582,7 +3582,7 @@ function Bp() {
|
|
|
3582
3582
|
return !1;
|
|
3583
3583
|
}
|
|
3584
3584
|
}
|
|
3585
|
-
return
|
|
3585
|
+
return Oa = i() ? Object.assign : function(a, s) {
|
|
3586
3586
|
for (var o, l = r(a), u, d = 1; d < arguments.length; d++) {
|
|
3587
3587
|
o = Object(arguments[d]);
|
|
3588
3588
|
for (var m in o)
|
|
@@ -3594,29 +3594,29 @@ function Bp() {
|
|
|
3594
3594
|
}
|
|
3595
3595
|
}
|
|
3596
3596
|
return l;
|
|
3597
|
-
},
|
|
3597
|
+
}, Oa;
|
|
3598
3598
|
}
|
|
3599
|
-
var
|
|
3600
|
-
function
|
|
3599
|
+
var Na, Ol;
|
|
3600
|
+
function Co() {
|
|
3601
3601
|
if (Ol)
|
|
3602
|
-
return
|
|
3602
|
+
return Na;
|
|
3603
3603
|
Ol = 1;
|
|
3604
3604
|
var e = "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";
|
|
3605
|
-
return
|
|
3605
|
+
return Na = e, Na;
|
|
3606
3606
|
}
|
|
3607
|
-
var
|
|
3607
|
+
var Ma, Nl;
|
|
3608
3608
|
function Od() {
|
|
3609
|
-
return Nl || (Nl = 1,
|
|
3609
|
+
return Nl || (Nl = 1, Ma = Function.call.bind(Object.prototype.hasOwnProperty)), Ma;
|
|
3610
3610
|
}
|
|
3611
|
-
var
|
|
3611
|
+
var $a, Ml;
|
|
3612
3612
|
function Sp() {
|
|
3613
3613
|
if (Ml)
|
|
3614
|
-
return
|
|
3614
|
+
return $a;
|
|
3615
3615
|
Ml = 1;
|
|
3616
3616
|
var e = function() {
|
|
3617
3617
|
};
|
|
3618
3618
|
if (process.env.NODE_ENV !== "production") {
|
|
3619
|
-
var t =
|
|
3619
|
+
var t = Co(), n = {}, r = Od();
|
|
3620
3620
|
e = function(a) {
|
|
3621
3621
|
var s = "Warning: " + a;
|
|
3622
3622
|
typeof console < "u" && console.error(s);
|
|
@@ -3656,14 +3656,14 @@ function Sp() {
|
|
|
3656
3656
|
}
|
|
3657
3657
|
return i.resetWarningCache = function() {
|
|
3658
3658
|
process.env.NODE_ENV !== "production" && (n = {});
|
|
3659
|
-
},
|
|
3659
|
+
}, $a = i, $a;
|
|
3660
3660
|
}
|
|
3661
|
-
var
|
|
3661
|
+
var Ra, $l;
|
|
3662
3662
|
function jp() {
|
|
3663
3663
|
if ($l)
|
|
3664
|
-
return
|
|
3664
|
+
return Ra;
|
|
3665
3665
|
$l = 1;
|
|
3666
|
-
var e = Pd(), t = Bp(), n =
|
|
3666
|
+
var e = Pd(), t = Bp(), n = Co(), r = Od(), i = Sp(), a = function() {
|
|
3667
3667
|
};
|
|
3668
3668
|
process.env.NODE_ENV !== "production" && (a = function(o) {
|
|
3669
3669
|
var l = "Warning: " + o;
|
|
@@ -3676,7 +3676,7 @@ function jp() {
|
|
|
3676
3676
|
function s() {
|
|
3677
3677
|
return null;
|
|
3678
3678
|
}
|
|
3679
|
-
return
|
|
3679
|
+
return Ra = function(o, l) {
|
|
3680
3680
|
var u = typeof Symbol == "function" && Symbol.iterator, d = "@@iterator";
|
|
3681
3681
|
function m(D) {
|
|
3682
3682
|
var Z = D && (u && D[u] || D[d]);
|
|
@@ -3978,19 +3978,19 @@ Valid keys: ` + JSON.stringify(Object.keys(D), null, " ")
|
|
|
3978
3978
|
return !D.constructor || !D.constructor.name ? h : D.constructor.name;
|
|
3979
3979
|
}
|
|
3980
3980
|
return p.checkPropTypes = i, p.resetWarningCache = i.resetWarningCache, p.PropTypes = p, p;
|
|
3981
|
-
},
|
|
3981
|
+
}, Ra;
|
|
3982
3982
|
}
|
|
3983
|
-
var
|
|
3983
|
+
var Ia, Rl;
|
|
3984
3984
|
function Pp() {
|
|
3985
3985
|
if (Rl)
|
|
3986
|
-
return
|
|
3986
|
+
return Ia;
|
|
3987
3987
|
Rl = 1;
|
|
3988
|
-
var e =
|
|
3988
|
+
var e = Co();
|
|
3989
3989
|
function t() {
|
|
3990
3990
|
}
|
|
3991
3991
|
function n() {
|
|
3992
3992
|
}
|
|
3993
|
-
return n.resetWarningCache = t,
|
|
3993
|
+
return n.resetWarningCache = t, Ia = function() {
|
|
3994
3994
|
function r(s, o, l, u, d, m) {
|
|
3995
3995
|
if (m !== e) {
|
|
3996
3996
|
var h = new Error(
|
|
@@ -4027,14 +4027,14 @@ function Pp() {
|
|
|
4027
4027
|
resetWarningCache: t
|
|
4028
4028
|
};
|
|
4029
4029
|
return a.PropTypes = a, a;
|
|
4030
|
-
},
|
|
4030
|
+
}, Ia;
|
|
4031
4031
|
}
|
|
4032
4032
|
if (process.env.NODE_ENV !== "production") {
|
|
4033
4033
|
var Op = Pd(), Np = !0;
|
|
4034
|
-
|
|
4034
|
+
$s.exports = jp()(Op.isElement, Np);
|
|
4035
4035
|
} else
|
|
4036
|
-
|
|
4037
|
-
var Mp =
|
|
4036
|
+
$s.exports = Pp()();
|
|
4037
|
+
var Mp = $s.exports;
|
|
4038
4038
|
/*!
|
|
4039
4039
|
* tabbable 6.2.0
|
|
4040
4040
|
* @license MIT, https://github.com/focus-trap/tabbable/blob/master/LICENSE
|
|
@@ -4185,7 +4185,7 @@ var Nd = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])",
|
|
|
4185
4185
|
// note related to `candidateSelectors`)
|
|
4186
4186
|
Xi(n) || Lp(n) || Kp(n, t) || // For a details element with a summary, the summary element gets the focus
|
|
4187
4187
|
zp(n) || Zp(n));
|
|
4188
|
-
},
|
|
4188
|
+
}, Rs = function(t, n) {
|
|
4189
4189
|
return !(Vp(n) || Dn(n) < 0 || !ea(t, n));
|
|
4190
4190
|
}, Yp = function(t) {
|
|
4191
4191
|
var n = parseInt(t.getAttribute("tabindex"), 10);
|
|
@@ -4208,11 +4208,11 @@ var Nd = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])",
|
|
|
4208
4208
|
n = n || {};
|
|
4209
4209
|
var r;
|
|
4210
4210
|
return n.getShadowRoot ? r = Rd([t], n.includeContainer, {
|
|
4211
|
-
filter:
|
|
4211
|
+
filter: Rs.bind(null, n),
|
|
4212
4212
|
flatten: !1,
|
|
4213
4213
|
getShadowRoot: n.getShadowRoot,
|
|
4214
4214
|
shadowRootFilter: Yp
|
|
4215
|
-
}) : r = $d(t, n.includeContainer,
|
|
4215
|
+
}) : r = $d(t, n.includeContainer, Rs.bind(null, n)), Gp(r);
|
|
4216
4216
|
}, qd = function(t, n) {
|
|
4217
4217
|
n = n || {};
|
|
4218
4218
|
var r;
|
|
@@ -4224,7 +4224,7 @@ var Nd = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])",
|
|
|
4224
4224
|
}, jn = function(t, n) {
|
|
4225
4225
|
if (n = n || {}, !t)
|
|
4226
4226
|
throw new Error("No node provided");
|
|
4227
|
-
return In.call(t, Qi) === !1 ? !1 :
|
|
4227
|
+
return In.call(t, Qi) === !1 ? !1 : Rs(n, t);
|
|
4228
4228
|
}, Qp = /* @__PURE__ */ Nd.concat("iframe").join(","), Li = function(t, n) {
|
|
4229
4229
|
if (n = n || {}, !t)
|
|
4230
4230
|
throw new Error("No node provided");
|
|
@@ -4699,12 +4699,12 @@ function fg(e, t, n) {
|
|
|
4699
4699
|
function mg(e, t) {
|
|
4700
4700
|
if (typeof t != "function" && t !== null)
|
|
4701
4701
|
throw new TypeError("Super expression must either be null or a function");
|
|
4702
|
-
e.prototype = Object.create(t && t.prototype, { constructor: { value: e, writable: !0, configurable: !0 } }), Object.defineProperty(e, "prototype", { writable: !1 }), t &&
|
|
4702
|
+
e.prototype = Object.create(t && t.prototype, { constructor: { value: e, writable: !0, configurable: !0 } }), Object.defineProperty(e, "prototype", { writable: !1 }), t && Is(e, t);
|
|
4703
4703
|
}
|
|
4704
|
-
function
|
|
4705
|
-
return
|
|
4704
|
+
function Is(e, t) {
|
|
4705
|
+
return Is = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(r, i) {
|
|
4706
4706
|
return r.__proto__ = i, r;
|
|
4707
|
-
},
|
|
4707
|
+
}, Is(e, t);
|
|
4708
4708
|
}
|
|
4709
4709
|
function hg(e) {
|
|
4710
4710
|
var t = gg();
|
|
@@ -4766,7 +4766,7 @@ function bg(e, t) {
|
|
|
4766
4766
|
}
|
|
4767
4767
|
return (t === "string" ? String : Number)(e);
|
|
4768
4768
|
}
|
|
4769
|
-
var xi = re, De = Mp, yg = ug, xg = yg.createFocusTrap, wg = cg, Dg = wg.isFocusable,
|
|
4769
|
+
var xi = re, De = Mp, yg = ug, xg = yg.createFocusTrap, wg = cg, Dg = wg.isFocusable, Eo = /* @__PURE__ */ function(e) {
|
|
4770
4770
|
mg(n, e);
|
|
4771
4771
|
var t = hg(n);
|
|
4772
4772
|
function n(r) {
|
|
@@ -4954,7 +4954,7 @@ var xi = re, De = Mp, yg = ug, xg = yg.createFocusTrap, wg = cg, Dg = wg.isFocus
|
|
|
4954
4954
|
}
|
|
4955
4955
|
}]), n;
|
|
4956
4956
|
}(xi.Component), Tr = typeof Element > "u" ? Function : Element;
|
|
4957
|
-
|
|
4957
|
+
Eo.propTypes = {
|
|
4958
4958
|
active: De.bool,
|
|
4959
4959
|
paused: De.bool,
|
|
4960
4960
|
focusTrapOptions: De.shape({
|
|
@@ -5002,13 +5002,13 @@ _o.propTypes = {
|
|
|
5002
5002
|
// specify it here. It's expected to be set to the function returned from
|
|
5003
5003
|
// require('focus-trap'), or one with a compatible interface.
|
|
5004
5004
|
};
|
|
5005
|
-
|
|
5005
|
+
Eo.defaultProps = {
|
|
5006
5006
|
active: !0,
|
|
5007
5007
|
paused: !1,
|
|
5008
5008
|
focusTrapOptions: {},
|
|
5009
5009
|
_createFocusTrap: xg
|
|
5010
5010
|
};
|
|
5011
|
-
var Cg =
|
|
5011
|
+
var Cg = Eo;
|
|
5012
5012
|
const Eg = /* @__PURE__ */ Wn(Cg);
|
|
5013
5013
|
const Tn = ({
|
|
5014
5014
|
id: e = "content-overlay",
|
|
@@ -5161,7 +5161,7 @@ const Br = "joinCommunityButton", Wd = ({
|
|
|
5161
5161
|
}
|
|
5162
5162
|
);
|
|
5163
5163
|
};
|
|
5164
|
-
const
|
|
5164
|
+
const La = "communityDetails_", oF = ({
|
|
5165
5165
|
className: e = "",
|
|
5166
5166
|
isMember: t = !1,
|
|
5167
5167
|
isOpen: n = !1,
|
|
@@ -5174,10 +5174,10 @@ const za = "communityDetails_", oF = ({
|
|
|
5174
5174
|
f ? /* @__PURE__ */ c.jsxs("div", { className: "member-details", children: [
|
|
5175
5175
|
/* @__PURE__ */ c.jsxs("div", { className: "top", children: [
|
|
5176
5176
|
/* @__PURE__ */ c.jsxs("h4", { children: [
|
|
5177
|
-
l.formatMessage({ id: `${
|
|
5177
|
+
l.formatMessage({ id: `${La}members` }),
|
|
5178
5178
|
/* @__PURE__ */ c.jsx("span", { className: "count", children: h })
|
|
5179
5179
|
] }),
|
|
5180
|
-
g ? /* @__PURE__ */ c.jsx(c.Fragment, {}) : /* @__PURE__ */ c.jsx("p", { className: "text-small", children: /* @__PURE__ */ c.jsx("a", { href: `/communities/${r}/members`, children: l.formatMessage({ id: `${
|
|
5180
|
+
g ? /* @__PURE__ */ c.jsx(c.Fragment, {}) : /* @__PURE__ */ c.jsx("p", { className: "text-small", children: /* @__PURE__ */ c.jsx("a", { href: `/communities/${r}/members`, children: l.formatMessage({ id: `${La}viewAll` }) }) })
|
|
5181
5181
|
] }),
|
|
5182
5182
|
d && /* @__PURE__ */ c.jsx(
|
|
5183
5183
|
Sd,
|
|
@@ -5212,7 +5212,7 @@ const za = "communityDetails_", oF = ({
|
|
|
5212
5212
|
onClick: s,
|
|
5213
5213
|
icon: { icon: "plus" },
|
|
5214
5214
|
styling: { fullWidth: !0 },
|
|
5215
|
-
children: l.formatMessage({ id: `${
|
|
5215
|
+
children: l.formatMessage({ id: `${La}invite` })
|
|
5216
5216
|
}
|
|
5217
5217
|
)
|
|
5218
5218
|
] }) : /* @__PURE__ */ c.jsx(c.Fragment, {})
|
|
@@ -5238,7 +5238,7 @@ const na = ({
|
|
|
5238
5238
|
children: /* @__PURE__ */ c.jsx("span", { className: "inner-text", children: n })
|
|
5239
5239
|
}
|
|
5240
5240
|
);
|
|
5241
|
-
}, kg = "reply", kn = "00000000-0000-0000-0000-000000000000",
|
|
5241
|
+
}, kg = "reply", kn = "00000000-0000-0000-0000-000000000000", _o = "en";
|
|
5242
5242
|
function ko({ queryClient: e, queryKey: t }) {
|
|
5243
5243
|
function n(r, i, a) {
|
|
5244
5244
|
e.setQueryData(t, a);
|
|
@@ -5613,7 +5613,7 @@ const Bo = (e, t) => {
|
|
|
5613
5613
|
});
|
|
5614
5614
|
document.dispatchEvent(n);
|
|
5615
5615
|
};
|
|
5616
|
-
let Ql,
|
|
5616
|
+
let Ql, za = 0;
|
|
5617
5617
|
const Jd = () => {
|
|
5618
5618
|
fe(() => (document.addEventListener(
|
|
5619
5619
|
dt.DISCUSSION_POST_ADDED,
|
|
@@ -5631,10 +5631,10 @@ const Jd = () => {
|
|
|
5631
5631
|
clearTimeout(Ql);
|
|
5632
5632
|
const i = document.getElementById(n);
|
|
5633
5633
|
if (i) {
|
|
5634
|
-
i.scrollIntoView({ behavior: "smooth", block: "start" }),
|
|
5634
|
+
i.scrollIntoView({ behavior: "smooth", block: "start" }), za = 0;
|
|
5635
5635
|
return;
|
|
5636
5636
|
}
|
|
5637
|
-
|
|
5637
|
+
za++, !(za > 10) && (Ql = setTimeout(() => {
|
|
5638
5638
|
e(t);
|
|
5639
5639
|
}, 50));
|
|
5640
5640
|
};
|
|
@@ -5852,10 +5852,10 @@ function qg(e) {
|
|
|
5852
5852
|
}
|
|
5853
5853
|
const Ug = wr(() => Promise.resolve().then(() => Ev));
|
|
5854
5854
|
let Lr = !1;
|
|
5855
|
-
const
|
|
5855
|
+
const qa = () => {
|
|
5856
5856
|
Lr !== !1 && (clearTimeout(Lr), Lr = !1);
|
|
5857
5857
|
}, Wg = 5;
|
|
5858
|
-
let
|
|
5858
|
+
let Ua = null;
|
|
5859
5859
|
const Vg = ({
|
|
5860
5860
|
element: e = "div",
|
|
5861
5861
|
likes: t = 0,
|
|
@@ -5898,12 +5898,12 @@ const Vg = ({
|
|
|
5898
5898
|
[n]
|
|
5899
5899
|
), P = (k) => {
|
|
5900
5900
|
if (k.preventDefault(), k.stopPropagation(), b([{ type: "showLikers", value: !1 }]), Lr)
|
|
5901
|
-
return
|
|
5902
|
-
if (
|
|
5901
|
+
return qa(), !1;
|
|
5902
|
+
if (qa(), w || !s)
|
|
5903
5903
|
return !1;
|
|
5904
5904
|
Lr = setTimeout(L, 350);
|
|
5905
5905
|
}, L = async () => {
|
|
5906
|
-
if (
|
|
5906
|
+
if (qa(), w || !s)
|
|
5907
5907
|
return !1;
|
|
5908
5908
|
let k = y ? v - 1 : v + 1;
|
|
5909
5909
|
k < 0 && (k = 0), b([
|
|
@@ -5928,11 +5928,11 @@ const Vg = ({
|
|
|
5928
5928
|
b([{ type: "ignoreInteractions", value: !1 }]);
|
|
5929
5929
|
}
|
|
5930
5930
|
}, O = () => {
|
|
5931
|
-
|
|
5931
|
+
Ua = setTimeout(() => {
|
|
5932
5932
|
b([{ type: "showLikers", value: !1 }]);
|
|
5933
5933
|
}, 500);
|
|
5934
5934
|
}, F = () => {
|
|
5935
|
-
|
|
5935
|
+
Ua && clearTimeout(Ua);
|
|
5936
5936
|
};
|
|
5937
5937
|
return re.createElement(
|
|
5938
5938
|
e,
|
|
@@ -6230,7 +6230,7 @@ function Gg({
|
|
|
6230
6230
|
queryKey: h,
|
|
6231
6231
|
filterOption: p
|
|
6232
6232
|
}) {
|
|
6233
|
-
const g =
|
|
6233
|
+
const g = ho(), f = xo(), b = { queryClient: g, queryKey: h }, v = {
|
|
6234
6234
|
mutationHandlers: {
|
|
6235
6235
|
error: ko(b),
|
|
6236
6236
|
mutate: Fo(b)
|
|
@@ -6298,7 +6298,7 @@ function Jg({
|
|
|
6298
6298
|
queryKey: t,
|
|
6299
6299
|
filterOption: n
|
|
6300
6300
|
}) {
|
|
6301
|
-
const { data: r, error: i, isLoading: a, hasNextPage: s, fetchNextPage: o } =
|
|
6301
|
+
const { data: r, error: i, isLoading: a, hasNextPage: s, fetchNextPage: o } = po({
|
|
6302
6302
|
queryKey: t,
|
|
6303
6303
|
queryFn: e,
|
|
6304
6304
|
initialPageParam: `${n == null ? void 0 : n.type}=${n == null ? void 0 : n.id}`,
|
|
@@ -6429,7 +6429,7 @@ const lF = ({
|
|
|
6429
6429
|
categories: i,
|
|
6430
6430
|
functions: { activities: a, form: s, join: o, leave: l, likes: u, polls: d },
|
|
6431
6431
|
profile: m,
|
|
6432
|
-
locale: h =
|
|
6432
|
+
locale: h = _o
|
|
6433
6433
|
}) => {
|
|
6434
6434
|
const p = ce(), [g, f] = se([
|
|
6435
6435
|
{
|
|
@@ -6593,7 +6593,7 @@ const lF = ({
|
|
|
6593
6593
|
};
|
|
6594
6594
|
}) : !1;
|
|
6595
6595
|
return /* @__PURE__ */ c.jsx(Kr, { children: /* @__PURE__ */ c.jsx(
|
|
6596
|
-
|
|
6596
|
+
_a,
|
|
6597
6597
|
{
|
|
6598
6598
|
content: {
|
|
6599
6599
|
type: z.verb,
|
|
@@ -6685,7 +6685,7 @@ const lF = ({
|
|
|
6685
6685
|
) }, S);
|
|
6686
6686
|
}),
|
|
6687
6687
|
!T && /* @__PURE__ */ c.jsx(
|
|
6688
|
-
|
|
6688
|
+
ga,
|
|
6689
6689
|
{
|
|
6690
6690
|
hasNextPage: _,
|
|
6691
6691
|
loadNextPage: Z,
|
|
@@ -7302,7 +7302,7 @@ function ov({
|
|
|
7302
7302
|
n(r), t();
|
|
7303
7303
|
};
|
|
7304
7304
|
return /* @__PURE__ */ c.jsx(
|
|
7305
|
-
|
|
7305
|
+
ga,
|
|
7306
7306
|
{
|
|
7307
7307
|
hasNextPage: e,
|
|
7308
7308
|
loadNextPage: a,
|
|
@@ -7416,7 +7416,7 @@ function tf({
|
|
|
7416
7416
|
queryFns: { create: e, edit: t, like: n, list: r, remove: i, unlike: a },
|
|
7417
7417
|
queryKey: s
|
|
7418
7418
|
}) {
|
|
7419
|
-
const o =
|
|
7419
|
+
const o = ho(), l = xo(), u = { queryClient: o, queryKey: s }, d = {
|
|
7420
7420
|
mutationHandlers: {
|
|
7421
7421
|
error: ko(u),
|
|
7422
7422
|
mutate: Fo(u)
|
|
@@ -7458,7 +7458,7 @@ function mv({
|
|
|
7458
7458
|
return a;
|
|
7459
7459
|
}
|
|
7460
7460
|
function hv({ queryFn: e, queryKey: t }) {
|
|
7461
|
-
const { data: n, error: r, isLoading: i, hasNextPage: a, fetchNextPage: s } =
|
|
7461
|
+
const { data: n, error: r, isLoading: i, hasNextPage: a, fetchNextPage: s } = po({
|
|
7462
7462
|
queryKey: t,
|
|
7463
7463
|
queryFn: e,
|
|
7464
7464
|
initialPageParam: { next: "" },
|
|
@@ -7582,7 +7582,7 @@ const vv = ({
|
|
|
7582
7582
|
user: k,
|
|
7583
7583
|
likeId: B
|
|
7584
7584
|
}) => /* @__PURE__ */ c.jsx(
|
|
7585
|
-
|
|
7585
|
+
_a,
|
|
7586
7586
|
{
|
|
7587
7587
|
isCommunity: !0,
|
|
7588
7588
|
content: {
|
|
@@ -7665,7 +7665,7 @@ function bv({
|
|
|
7665
7665
|
userLiked: f
|
|
7666
7666
|
} = s, { edit: b, like: v, remove: y, unlike: w } = e.mutations;
|
|
7667
7667
|
return /* @__PURE__ */ c.jsx(H_, { children: /* @__PURE__ */ c.jsx(
|
|
7668
|
-
|
|
7668
|
+
_a,
|
|
7669
7669
|
{
|
|
7670
7670
|
isCommunity: !0,
|
|
7671
7671
|
content: {
|
|
@@ -7813,7 +7813,7 @@ const yv = ({
|
|
|
7813
7813
|
] });
|
|
7814
7814
|
};
|
|
7815
7815
|
function xv({ queryFn: e, queryKey: t }) {
|
|
7816
|
-
const { data: n, error: r, isLoading: i, hasNextPage: a, fetchNextPage: s, refetch: o } =
|
|
7816
|
+
const { data: n, error: r, isLoading: i, hasNextPage: a, fetchNextPage: s, refetch: o } = po({
|
|
7817
7817
|
queryKey: t,
|
|
7818
7818
|
queryFn: e,
|
|
7819
7819
|
initialPageParam: { next: "" },
|
|
@@ -8119,7 +8119,7 @@ const Jn = "discussion_", Fv = ({
|
|
|
8119
8119
|
}
|
|
8120
8120
|
) : /* @__PURE__ */ c.jsx(c.Fragment, {}),
|
|
8121
8121
|
o ? /* @__PURE__ */ c.jsx(
|
|
8122
|
-
|
|
8122
|
+
Ls,
|
|
8123
8123
|
{
|
|
8124
8124
|
element: "li",
|
|
8125
8125
|
id: `more-${o.contentSlug}`,
|
|
@@ -8311,14 +8311,14 @@ const wi = "languageSwitcher_", fF = ({
|
|
|
8311
8311
|
s !== "short" && /* @__PURE__ */ c.jsx("p", { children: o || u.formatMessage({ id: `${wi}label` }) }),
|
|
8312
8312
|
/* @__PURE__ */ c.jsx("ul", { children: g.map((b) => {
|
|
8313
8313
|
var w;
|
|
8314
|
-
if (!
|
|
8314
|
+
if (!Sa[b])
|
|
8315
8315
|
return null;
|
|
8316
8316
|
const v = (w = r[b]) == null ? void 0 : w.post_name;
|
|
8317
8317
|
let y = { className: b };
|
|
8318
8318
|
if (m === b)
|
|
8319
8319
|
y["aria-label"] = u.formatMessage(
|
|
8320
8320
|
{ id: `${wi}selected` },
|
|
8321
|
-
{ language:
|
|
8321
|
+
{ language: Sa[b] }
|
|
8322
8322
|
);
|
|
8323
8323
|
else {
|
|
8324
8324
|
const E = Tv(b, v, a);
|
|
@@ -8333,7 +8333,7 @@ const wi = "languageSwitcher_", fF = ({
|
|
|
8333
8333
|
}
|
|
8334
8334
|
};
|
|
8335
8335
|
}
|
|
8336
|
-
return /* @__PURE__ */ c.jsx("li", { children: /* @__PURE__ */ c.jsx(Kn, { ...y, fallbackElement: "span", children:
|
|
8336
|
+
return /* @__PURE__ */ c.jsx("li", { children: /* @__PURE__ */ c.jsx(Kn, { ...y, fallbackElement: "span", children: Sa[b] }) }, b);
|
|
8337
8337
|
}) }),
|
|
8338
8338
|
s !== "short" && !f && /* @__PURE__ */ c.jsx("p", { children: u.formatMessage({
|
|
8339
8339
|
id: `${wi}translation_${t ? "original" : n ? "human" : "machine"}`
|
|
@@ -8356,7 +8356,7 @@ const wi = "languageSwitcher_", fF = ({
|
|
|
8356
8356
|
})
|
|
8357
8357
|
] });
|
|
8358
8358
|
};
|
|
8359
|
-
const
|
|
8359
|
+
const Wa = Xm({ locale: "en", messages: Cr }), ga = ({
|
|
8360
8360
|
hasNextPage: e = !0,
|
|
8361
8361
|
loadNextPage: t = () => {
|
|
8362
8362
|
},
|
|
@@ -8366,9 +8366,9 @@ const Va = Xm({ locale: "en", messages: Cr }), va = ({
|
|
|
8366
8366
|
styling: a = { muted: !1, fullWidth: !1 },
|
|
8367
8367
|
icon: s = !1,
|
|
8368
8368
|
messages: o = {
|
|
8369
|
-
button:
|
|
8370
|
-
endOfFeed:
|
|
8371
|
-
error:
|
|
8369
|
+
button: Wa.formatMessage({ id: "loadMore_button" }),
|
|
8370
|
+
endOfFeed: Wa.formatMessage({ id: "loadMore_endOfFeed" }),
|
|
8371
|
+
error: Wa.formatMessage({ id: "loadMore_error" })
|
|
8372
8372
|
},
|
|
8373
8373
|
className: l = "",
|
|
8374
8374
|
gtmContext: u = "LoadMore"
|
|
@@ -8413,7 +8413,7 @@ const rf = ({
|
|
|
8413
8413
|
}
|
|
8414
8414
|
) });
|
|
8415
8415
|
let Di = !1;
|
|
8416
|
-
const
|
|
8416
|
+
const Ls = ({
|
|
8417
8417
|
element: e = "div",
|
|
8418
8418
|
id: t = "more-menu",
|
|
8419
8419
|
options: n,
|
|
@@ -9166,7 +9166,7 @@ const qv = qt(function({
|
|
|
9166
9166
|
direction: t = "down"
|
|
9167
9167
|
}) {
|
|
9168
9168
|
return /* @__PURE__ */ c.jsx(
|
|
9169
|
-
|
|
9169
|
+
go,
|
|
9170
9170
|
{
|
|
9171
9171
|
className: H("rotating-chevron", `direction-${t}`)
|
|
9172
9172
|
}
|
|
@@ -9353,7 +9353,7 @@ const Uv = ({
|
|
|
9353
9353
|
}
|
|
9354
9354
|
return !1;
|
|
9355
9355
|
};
|
|
9356
|
-
let
|
|
9356
|
+
let Va = null;
|
|
9357
9357
|
const Wv = ({
|
|
9358
9358
|
id: e,
|
|
9359
9359
|
label: t,
|
|
@@ -9506,7 +9506,7 @@ const Wv = ({
|
|
|
9506
9506
|
v || O !== w.length - 1 || T();
|
|
9507
9507
|
},
|
|
9508
9508
|
onKeyDown: (M) => {
|
|
9509
|
-
M.key === "Enter" && (M.preventDefault(), M.stopPropagation(),
|
|
9509
|
+
M.key === "Enter" && (M.preventDefault(), M.stopPropagation(), Va && clearTimeout(Va), O !== w.length - 1 ? j(O) : (T(), Va = setTimeout(() => j(O), 100)));
|
|
9510
9510
|
},
|
|
9511
9511
|
onChange: (M) => {
|
|
9512
9512
|
const V = w[O].toLowerCase(), W = Rt(w);
|
|
@@ -9898,7 +9898,7 @@ const er = {
|
|
|
9898
9898
|
return e;
|
|
9899
9899
|
}
|
|
9900
9900
|
};
|
|
9901
|
-
let
|
|
9901
|
+
let Ha = null;
|
|
9902
9902
|
const pn = ({
|
|
9903
9903
|
element: e = "form",
|
|
9904
9904
|
fields: t,
|
|
@@ -9960,14 +9960,14 @@ const pn = ({
|
|
|
9960
9960
|
values: M
|
|
9961
9961
|
}), { errors: ie, isSubmitting: te, formSubmitted: D, values: Z } = V;
|
|
9962
9962
|
fe(() => {
|
|
9963
|
-
C && D && (
|
|
9963
|
+
C && D && (Ha = setTimeout(() => {
|
|
9964
9964
|
W({
|
|
9965
9965
|
type: "updateValue",
|
|
9966
9966
|
payload: { key: "formSubmitted", value: !1 }
|
|
9967
9967
|
});
|
|
9968
9968
|
}, 3e3));
|
|
9969
9969
|
}, [D]), fe(() => () => {
|
|
9970
|
-
|
|
9970
|
+
Ha && clearTimeout(Ha);
|
|
9971
9971
|
}, []), fe(() => {
|
|
9972
9972
|
const U = (ee) => {
|
|
9973
9973
|
W({
|
|
@@ -10391,7 +10391,7 @@ function Yb(e) {
|
|
|
10391
10391
|
var n = Hb.test(e);
|
|
10392
10392
|
return n || Kb.test(e) ? Zb(e.slice(2), n ? 2 : 8) : Vb.test(e) ? au : +e;
|
|
10393
10393
|
}
|
|
10394
|
-
var Gb = Yb, Qb = Po,
|
|
10394
|
+
var Gb = Yb, Qb = Po, Ka = fb, su = Gb, Jb = "Expected a function", Xb = Math.max, e0 = Math.min;
|
|
10395
10395
|
function t0(e, t, n) {
|
|
10396
10396
|
var r, i, a, s, o, l, u = 0, d = !1, m = !1, h = !0;
|
|
10397
10397
|
if (typeof e != "function")
|
|
@@ -10413,7 +10413,7 @@ function t0(e, t, n) {
|
|
|
10413
10413
|
return l === void 0 || T >= t || T < 0 || m && j >= a;
|
|
10414
10414
|
}
|
|
10415
10415
|
function v() {
|
|
10416
|
-
var _ =
|
|
10416
|
+
var _ = Ka();
|
|
10417
10417
|
if (b(_))
|
|
10418
10418
|
return y(_);
|
|
10419
10419
|
o = setTimeout(v, f(_));
|
|
@@ -10425,10 +10425,10 @@ function t0(e, t, n) {
|
|
|
10425
10425
|
o !== void 0 && clearTimeout(o), u = 0, r = l = i = o = void 0;
|
|
10426
10426
|
}
|
|
10427
10427
|
function E() {
|
|
10428
|
-
return o === void 0 ? s : y(
|
|
10428
|
+
return o === void 0 ? s : y(Ka());
|
|
10429
10429
|
}
|
|
10430
10430
|
function C() {
|
|
10431
|
-
var _ =
|
|
10431
|
+
var _ = Ka(), T = b(_);
|
|
10432
10432
|
if (r = arguments, i = this, l = _, T) {
|
|
10433
10433
|
if (o === void 0)
|
|
10434
10434
|
return g(l);
|
|
@@ -10453,7 +10453,7 @@ function s0(e, t, n) {
|
|
|
10453
10453
|
});
|
|
10454
10454
|
}
|
|
10455
10455
|
var o0 = s0;
|
|
10456
|
-
const l0 = /* @__PURE__ */ Wn(o0), ou = (e) => typeof e == "object" && e != null && e.nodeType === 1, lu = (e, t) => (!t || e !== "hidden") && e !== "visible" && e !== "clip",
|
|
10456
|
+
const l0 = /* @__PURE__ */ Wn(o0), ou = (e) => typeof e == "object" && e != null && e.nodeType === 1, lu = (e, t) => (!t || e !== "hidden") && e !== "visible" && e !== "clip", Za = (e, t) => {
|
|
10457
10457
|
if (e.clientHeight < e.scrollHeight || e.clientWidth < e.scrollWidth) {
|
|
10458
10458
|
const n = getComputedStyle(e, null);
|
|
10459
10459
|
return lu(n.overflowY, t) || lu(n.overflowX, t) || ((r) => {
|
|
@@ -10487,7 +10487,7 @@ const l0 = /* @__PURE__ */ Wn(o0), ou = (e) => typeof e == "object" && e != null
|
|
|
10487
10487
|
p.push(g);
|
|
10488
10488
|
break;
|
|
10489
10489
|
}
|
|
10490
|
-
g != null && g === document.body &&
|
|
10490
|
+
g != null && g === document.body && Za(g) && !Za(document.documentElement) || g != null && Za(g, d) && p.push(g);
|
|
10491
10491
|
}
|
|
10492
10492
|
const f = (r = (n = window.visualViewport) == null ? void 0 : n.width) != null ? r : innerWidth, b = (a = (i = window.visualViewport) == null ? void 0 : i.height) != null ? a : innerHeight, { scrollX: v, scrollY: y } = window, { height: w, width: E, top: C, right: _, bottom: T, left: j } = e.getBoundingClientRect(), { top: P, right: L, bottom: O, left: F } = ((V) => {
|
|
10493
10493
|
const W = window.getComputedStyle(V);
|
|
@@ -10595,7 +10595,7 @@ function Ln(e) {
|
|
|
10595
10595
|
}
|
|
10596
10596
|
function zn(e) {
|
|
10597
10597
|
var t;
|
|
10598
|
-
return e ? yf(e) || Array.isArray(e) || !!e[du] || !!((t = e.constructor) != null && t[du]) ||
|
|
10598
|
+
return e ? yf(e) || Array.isArray(e) || !!e[du] || !!((t = e.constructor) != null && t[du]) || ba(e) || ya(e) : !1;
|
|
10599
10599
|
}
|
|
10600
10600
|
var m0 = Object.prototype.constructor.toString();
|
|
10601
10601
|
function yf(e) {
|
|
@@ -10608,37 +10608,37 @@ function yf(e) {
|
|
|
10608
10608
|
return n === Object ? !0 : typeof n == "function" && Function.toString.call(n) === m0;
|
|
10609
10609
|
}
|
|
10610
10610
|
function aa(e, t) {
|
|
10611
|
-
|
|
10611
|
+
va(e) === 0 ? Reflect.ownKeys(e).forEach((n) => {
|
|
10612
10612
|
t(n, e[n], e);
|
|
10613
10613
|
}) : e.forEach((n, r) => t(r, n, e));
|
|
10614
10614
|
}
|
|
10615
|
-
function
|
|
10615
|
+
function va(e) {
|
|
10616
10616
|
const t = e[jt];
|
|
10617
|
-
return t ? t.type_ : Array.isArray(e) ? 1 :
|
|
10617
|
+
return t ? t.type_ : Array.isArray(e) ? 1 : ba(e) ? 2 : ya(e) ? 3 : 0;
|
|
10618
10618
|
}
|
|
10619
|
-
function
|
|
10620
|
-
return
|
|
10619
|
+
function zs(e, t) {
|
|
10620
|
+
return va(e) === 2 ? e.has(t) : Object.prototype.hasOwnProperty.call(e, t);
|
|
10621
10621
|
}
|
|
10622
10622
|
function xf(e, t, n) {
|
|
10623
|
-
const r =
|
|
10623
|
+
const r = va(e);
|
|
10624
10624
|
r === 2 ? e.set(t, n) : r === 3 ? e.add(n) : e[t] = n;
|
|
10625
10625
|
}
|
|
10626
10626
|
function h0(e, t) {
|
|
10627
10627
|
return e === t ? e !== 0 || 1 / e === 1 / t : e !== e && t !== t;
|
|
10628
10628
|
}
|
|
10629
|
-
function
|
|
10629
|
+
function ba(e) {
|
|
10630
10630
|
return e instanceof Map;
|
|
10631
10631
|
}
|
|
10632
|
-
function
|
|
10632
|
+
function ya(e) {
|
|
10633
10633
|
return e instanceof Set;
|
|
10634
10634
|
}
|
|
10635
10635
|
function Pn(e) {
|
|
10636
10636
|
return e.copy_ || e.base_;
|
|
10637
10637
|
}
|
|
10638
|
-
function
|
|
10639
|
-
if (
|
|
10638
|
+
function qs(e, t) {
|
|
10639
|
+
if (ba(e))
|
|
10640
10640
|
return new Map(e);
|
|
10641
|
-
if (
|
|
10641
|
+
if (ya(e))
|
|
10642
10642
|
return new Set(e);
|
|
10643
10643
|
if (Array.isArray(e))
|
|
10644
10644
|
return Array.prototype.slice.call(e);
|
|
@@ -10667,12 +10667,12 @@ function Us(e, t) {
|
|
|
10667
10667
|
}
|
|
10668
10668
|
}
|
|
10669
10669
|
function Oo(e, t = !1) {
|
|
10670
|
-
return
|
|
10670
|
+
return xa(e) || Ln(e) || !zn(e) || (va(e) > 1 && (e.set = e.add = e.clear = e.delete = p0), Object.freeze(e), t && Object.entries(e).forEach(([n, r]) => Oo(r, !0))), e;
|
|
10671
10671
|
}
|
|
10672
10672
|
function p0() {
|
|
10673
10673
|
kt(2);
|
|
10674
10674
|
}
|
|
10675
|
-
function
|
|
10675
|
+
function xa(e) {
|
|
10676
10676
|
return Object.isFrozen(e);
|
|
10677
10677
|
}
|
|
10678
10678
|
var g0 = {};
|
|
@@ -10698,10 +10698,10 @@ function v0(e, t) {
|
|
|
10698
10698
|
function fu(e, t) {
|
|
10699
10699
|
t && (qn("Patches"), e.patches_ = [], e.inversePatches_ = [], e.patchListener_ = t);
|
|
10700
10700
|
}
|
|
10701
|
-
function
|
|
10702
|
-
|
|
10701
|
+
function Us(e) {
|
|
10702
|
+
Ws(e), e.drafts_.forEach(b0), e.drafts_ = null;
|
|
10703
10703
|
}
|
|
10704
|
-
function
|
|
10704
|
+
function Ws(e) {
|
|
10705
10705
|
e === Jr && (Jr = e.parent_);
|
|
10706
10706
|
}
|
|
10707
10707
|
function mu(e) {
|
|
@@ -10714,15 +10714,15 @@ function b0(e) {
|
|
|
10714
10714
|
function hu(e, t) {
|
|
10715
10715
|
t.unfinalizedDrafts_ = t.drafts_.length;
|
|
10716
10716
|
const n = t.drafts_[0];
|
|
10717
|
-
return e !== void 0 && e !== n ? (n[jt].modified_ && (
|
|
10717
|
+
return e !== void 0 && e !== n ? (n[jt].modified_ && (Us(t), kt(4)), zn(e) && (e = sa(t, e), t.parent_ || oa(t, e)), t.patches_ && qn("Patches").generateReplacementPatches_(
|
|
10718
10718
|
n[jt].base_,
|
|
10719
10719
|
e,
|
|
10720
10720
|
t.patches_,
|
|
10721
10721
|
t.inversePatches_
|
|
10722
|
-
)) : e = sa(t, n, []),
|
|
10722
|
+
)) : e = sa(t, n, []), Us(t), t.patches_ && t.patchListener_(t.patches_, t.inversePatches_), e !== bf ? e : void 0;
|
|
10723
10723
|
}
|
|
10724
10724
|
function sa(e, t, n) {
|
|
10725
|
-
if (
|
|
10725
|
+
if (xa(t))
|
|
10726
10726
|
return t;
|
|
10727
10727
|
const r = t[jt];
|
|
10728
10728
|
if (!r)
|
|
@@ -10753,14 +10753,14 @@ function sa(e, t, n) {
|
|
|
10753
10753
|
function pu(e, t, n, r, i, a, s) {
|
|
10754
10754
|
if (process.env.NODE_ENV !== "production" && i === n && kt(5), Ln(i)) {
|
|
10755
10755
|
const o = a && t && t.type_ !== 3 && // Set objects are atomic since they have no keys.
|
|
10756
|
-
!
|
|
10756
|
+
!zs(t.assigned_, r) ? a.concat(r) : void 0, l = sa(e, i, o);
|
|
10757
10757
|
if (xf(n, r, l), Ln(l))
|
|
10758
10758
|
e.canAutoFreeze_ = !1;
|
|
10759
10759
|
else
|
|
10760
10760
|
return;
|
|
10761
10761
|
} else
|
|
10762
10762
|
s && n.add(i);
|
|
10763
|
-
if (zn(i) && !
|
|
10763
|
+
if (zn(i) && !xa(i)) {
|
|
10764
10764
|
if (!e.immer_.autoFreeze_ && e.unfinalizedDrafts_ < 1)
|
|
10765
10765
|
return;
|
|
10766
10766
|
sa(e, i), (!t || !t.scope_.parent_) && typeof r != "symbol" && Object.prototype.propertyIsEnumerable.call(n, r) && oa(e, i);
|
|
@@ -10803,10 +10803,10 @@ var No = {
|
|
|
10803
10803
|
if (t === jt)
|
|
10804
10804
|
return e;
|
|
10805
10805
|
const n = Pn(e);
|
|
10806
|
-
if (!
|
|
10806
|
+
if (!zs(n, t))
|
|
10807
10807
|
return x0(e, n, t);
|
|
10808
10808
|
const r = n[t];
|
|
10809
|
-
return e.finalized_ || !zn(r) ? r : r ===
|
|
10809
|
+
return e.finalized_ || !zn(r) ? r : r === Ya(e.base_, t) ? (Ga(e), e.copy_[t] = Hs(r, e)) : r;
|
|
10810
10810
|
},
|
|
10811
10811
|
has(e, t) {
|
|
10812
10812
|
return t in Pn(e);
|
|
@@ -10819,19 +10819,19 @@ var No = {
|
|
|
10819
10819
|
if (r != null && r.set)
|
|
10820
10820
|
return r.set.call(e.draft_, n), !0;
|
|
10821
10821
|
if (!e.modified_) {
|
|
10822
|
-
const i =
|
|
10822
|
+
const i = Ya(Pn(e), t), a = i == null ? void 0 : i[jt];
|
|
10823
10823
|
if (a && a.base_ === n)
|
|
10824
10824
|
return e.copy_[t] = n, e.assigned_[t] = !1, !0;
|
|
10825
|
-
if (h0(n, i) && (n !== void 0 ||
|
|
10825
|
+
if (h0(n, i) && (n !== void 0 || zs(e.base_, t)))
|
|
10826
10826
|
return !0;
|
|
10827
|
-
|
|
10827
|
+
Ga(e), Vs(e);
|
|
10828
10828
|
}
|
|
10829
10829
|
return e.copy_[t] === n && // special case: handle new props with value 'undefined'
|
|
10830
10830
|
(n !== void 0 || t in e.copy_) || // special case: NaN
|
|
10831
10831
|
Number.isNaN(n) && Number.isNaN(e.copy_[t]) || (e.copy_[t] = n, e.assigned_[t] = !0), !0;
|
|
10832
10832
|
},
|
|
10833
10833
|
deleteProperty(e, t) {
|
|
10834
|
-
return
|
|
10834
|
+
return Ya(e.base_, t) !== void 0 || t in e.base_ ? (e.assigned_[t] = !1, Ga(e), Vs(e)) : delete e.assigned_[t], e.copy_ && delete e.copy_[t], !0;
|
|
10835
10835
|
},
|
|
10836
10836
|
// Note: We never coerce `desc.value` into an Immer draft, because we can't make
|
|
10837
10837
|
// the same guarantee in ES5 mode.
|
|
@@ -10865,7 +10865,7 @@ Xr.deleteProperty = function(e, t) {
|
|
|
10865
10865
|
Xr.set = function(e, t, n) {
|
|
10866
10866
|
return process.env.NODE_ENV !== "production" && t !== "length" && isNaN(parseInt(t)) && kt(14), No.set.call(this, e[0], t, n, e[0]);
|
|
10867
10867
|
};
|
|
10868
|
-
function
|
|
10868
|
+
function Ya(e, t) {
|
|
10869
10869
|
const n = e[jt];
|
|
10870
10870
|
return (n ? Pn(n) : e)[t];
|
|
10871
10871
|
}
|
|
@@ -10889,11 +10889,11 @@ function Df(e, t) {
|
|
|
10889
10889
|
n = br(n);
|
|
10890
10890
|
}
|
|
10891
10891
|
}
|
|
10892
|
-
function
|
|
10893
|
-
e.modified_ || (e.modified_ = !0, e.parent_ &&
|
|
10892
|
+
function Vs(e) {
|
|
10893
|
+
e.modified_ || (e.modified_ = !0, e.parent_ && Vs(e.parent_));
|
|
10894
10894
|
}
|
|
10895
|
-
function
|
|
10896
|
-
e.copy_ || (e.copy_ =
|
|
10895
|
+
function Ga(e) {
|
|
10896
|
+
e.copy_ || (e.copy_ = qs(
|
|
10897
10897
|
e.base_,
|
|
10898
10898
|
e.scope_.immer_.useStrictShallowCopy_
|
|
10899
10899
|
));
|
|
@@ -10912,12 +10912,12 @@ var w0 = class {
|
|
|
10912
10912
|
typeof n != "function" && kt(6), r !== void 0 && typeof r != "function" && kt(7);
|
|
10913
10913
|
let i;
|
|
10914
10914
|
if (zn(t)) {
|
|
10915
|
-
const a = mu(this), s =
|
|
10915
|
+
const a = mu(this), s = Hs(t, void 0);
|
|
10916
10916
|
let o = !0;
|
|
10917
10917
|
try {
|
|
10918
10918
|
i = n(s), o = !1;
|
|
10919
10919
|
} finally {
|
|
10920
|
-
o ?
|
|
10920
|
+
o ? Us(a) : Ws(a);
|
|
10921
10921
|
}
|
|
10922
10922
|
return fu(a, r), hu(i, a);
|
|
10923
10923
|
} else if (!t || typeof t != "object") {
|
|
@@ -10939,8 +10939,8 @@ var w0 = class {
|
|
|
10939
10939
|
}
|
|
10940
10940
|
createDraft(e) {
|
|
10941
10941
|
zn(e) || kt(8), Ln(e) && (e = D0(e));
|
|
10942
|
-
const t = mu(this), n =
|
|
10943
|
-
return n[jt].isManual_ = !0,
|
|
10942
|
+
const t = mu(this), n = Hs(e, void 0);
|
|
10943
|
+
return n[jt].isManual_ = !0, Ws(t), n;
|
|
10944
10944
|
}
|
|
10945
10945
|
finishDraft(e, t) {
|
|
10946
10946
|
const n = e && e[jt];
|
|
@@ -10981,24 +10981,24 @@ var w0 = class {
|
|
|
10981
10981
|
);
|
|
10982
10982
|
}
|
|
10983
10983
|
};
|
|
10984
|
-
function
|
|
10985
|
-
const n =
|
|
10984
|
+
function Hs(e, t) {
|
|
10985
|
+
const n = ba(e) ? qn("MapSet").proxyMap_(e, t) : ya(e) ? qn("MapSet").proxySet_(e, t) : y0(e, t);
|
|
10986
10986
|
return (t ? t.scope_ : wf()).drafts_.push(n), n;
|
|
10987
10987
|
}
|
|
10988
10988
|
function D0(e) {
|
|
10989
10989
|
return Ln(e) || kt(10, e), Cf(e);
|
|
10990
10990
|
}
|
|
10991
10991
|
function Cf(e) {
|
|
10992
|
-
if (!zn(e) ||
|
|
10992
|
+
if (!zn(e) || xa(e))
|
|
10993
10993
|
return e;
|
|
10994
10994
|
const t = e[jt];
|
|
10995
10995
|
let n;
|
|
10996
10996
|
if (t) {
|
|
10997
10997
|
if (!t.modified_)
|
|
10998
10998
|
return t.base_;
|
|
10999
|
-
t.finalized_ = !0, n =
|
|
10999
|
+
t.finalized_ = !0, n = qs(e, t.scope_.immer_.useStrictShallowCopy_);
|
|
11000
11000
|
} else
|
|
11001
|
-
n =
|
|
11001
|
+
n = qs(e, !0);
|
|
11002
11002
|
return aa(n, (r, i) => {
|
|
11003
11003
|
xf(n, r, Cf(i));
|
|
11004
11004
|
}), t && (t.finalized_ = !1), n;
|
|
@@ -11438,9 +11438,9 @@ var A0 = (e, t, n) => {
|
|
|
11438
11438
|
text: Yt
|
|
11439
11439
|
});
|
|
11440
11440
|
} else {
|
|
11441
|
-
var Bt = Te.children.slice(0, de),
|
|
11441
|
+
var Bt = Te.children.slice(0, de), ka = Te.children.slice(de);
|
|
11442
11442
|
Te.children = Bt, Dt = Pr(Pr({}, ve), {}, {
|
|
11443
|
-
children:
|
|
11443
|
+
children: ka
|
|
11444
11444
|
});
|
|
11445
11445
|
}
|
|
11446
11446
|
if (He.children.splice(Ot + 1, 0, Dt), t)
|
|
@@ -15084,20 +15084,20 @@ var $n = function(e) {
|
|
|
15084
15084
|
for (Xu(e); Ux(); )
|
|
15085
15085
|
e = Qx(), Xu(e);
|
|
15086
15086
|
return Wx() && Vx(), e > 0;
|
|
15087
|
-
},
|
|
15087
|
+
}, Qa, Pf = [], Xx = function() {
|
|
15088
15088
|
return Pf.splice(0).forEach(function(e) {
|
|
15089
15089
|
return e();
|
|
15090
15090
|
});
|
|
15091
15091
|
}, e1 = function(e) {
|
|
15092
|
-
if (!
|
|
15092
|
+
if (!Qa) {
|
|
15093
15093
|
var t = 0, n = document.createTextNode(""), r = { characterData: !0 };
|
|
15094
15094
|
new MutationObserver(function() {
|
|
15095
15095
|
return Xx();
|
|
15096
|
-
}).observe(n, r),
|
|
15096
|
+
}).observe(n, r), Qa = function() {
|
|
15097
15097
|
n.textContent = "".concat(t ? t-- : t++);
|
|
15098
15098
|
};
|
|
15099
15099
|
}
|
|
15100
|
-
Pf.push(e),
|
|
15100
|
+
Pf.push(e), Qa();
|
|
15101
15101
|
}, t1 = function(e) {
|
|
15102
15102
|
e1(function() {
|
|
15103
15103
|
requestAnimationFrame(e);
|
|
@@ -15121,7 +15121,7 @@ var $n = function(e) {
|
|
|
15121
15121
|
"focus"
|
|
15122
15122
|
], tc = function(e) {
|
|
15123
15123
|
return e === void 0 && (e = 0), Date.now() + e;
|
|
15124
|
-
},
|
|
15124
|
+
}, Ja = !1, a1 = function() {
|
|
15125
15125
|
function e() {
|
|
15126
15126
|
var t = this;
|
|
15127
15127
|
this.stopped = !0, this.listener = function() {
|
|
@@ -15130,15 +15130,15 @@ var $n = function(e) {
|
|
|
15130
15130
|
}
|
|
15131
15131
|
return e.prototype.run = function(t) {
|
|
15132
15132
|
var n = this;
|
|
15133
|
-
if (t === void 0 && (t = r1), !
|
|
15134
|
-
|
|
15133
|
+
if (t === void 0 && (t = r1), !Ja) {
|
|
15134
|
+
Ja = !0;
|
|
15135
15135
|
var r = tc(t);
|
|
15136
15136
|
t1(function() {
|
|
15137
15137
|
var i = !1;
|
|
15138
15138
|
try {
|
|
15139
15139
|
i = Jx();
|
|
15140
15140
|
} finally {
|
|
15141
|
-
if (
|
|
15141
|
+
if (Ja = !1, t = r - tc(), !n1())
|
|
15142
15142
|
return;
|
|
15143
15143
|
i ? n.run(1e3) : t > 0 ? n.run(t) : n.start();
|
|
15144
15144
|
}
|
|
@@ -15162,8 +15162,8 @@ var $n = function(e) {
|
|
|
15162
15162
|
return qr.removeEventListener(n, t.listener, !0);
|
|
15163
15163
|
}), this.stopped = !0);
|
|
15164
15164
|
}, e;
|
|
15165
|
-
}(),
|
|
15166
|
-
!qi && e > 0 &&
|
|
15165
|
+
}(), Ks = new a1(), nc = function(e) {
|
|
15166
|
+
!qi && e > 0 && Ks.start(), qi += e, !qi && Ks.stop();
|
|
15167
15167
|
}, s1 = function(e) {
|
|
15168
15168
|
return !Lo(e) && !Kx(e) && getComputedStyle(e).display === "inline";
|
|
15169
15169
|
}, o1 = function() {
|
|
@@ -15195,7 +15195,7 @@ var $n = function(e) {
|
|
|
15195
15195
|
Ai.set(t, r);
|
|
15196
15196
|
}, e.observe = function(t, n, r) {
|
|
15197
15197
|
var i = Ai.get(t), a = i.observationTargets.length === 0;
|
|
15198
|
-
rc(i.observationTargets, n) < 0 && (a && Mn.push(i), i.observationTargets.push(new o1(n, r && r.box)), nc(1),
|
|
15198
|
+
rc(i.observationTargets, n) < 0 && (a && Mn.push(i), i.observationTargets.push(new o1(n, r && r.box)), nc(1), Ks.schedule());
|
|
15199
15199
|
}, e.unobserve = function(t, n) {
|
|
15200
15200
|
var r = Ai.get(t), i = rc(r.observationTargets, n), a = r.observationTargets.length === 1;
|
|
15201
15201
|
i >= 0 && (a && Mn.splice(Mn.indexOf(r), 1), r.observationTargets.splice(i, 1), nc(-1));
|
|
@@ -15234,7 +15234,7 @@ var $n = function(e) {
|
|
|
15234
15234
|
Object.defineProperty(vn, "__esModule", {
|
|
15235
15235
|
value: !0
|
|
15236
15236
|
});
|
|
15237
|
-
var c1 = typeof window < "u" && /Mac|iPod|iPhone|iPad/.test(window.navigator.platform),
|
|
15237
|
+
var c1 = typeof window < "u" && /Mac|iPod|iPhone|iPad/.test(window.navigator.platform), Xa = {
|
|
15238
15238
|
alt: "altKey",
|
|
15239
15239
|
control: "ctrlKey",
|
|
15240
15240
|
meta: "metaKey",
|
|
@@ -15299,7 +15299,7 @@ var c1 = typeof window < "u" && /Mac|iPod|iPhone|iPad/.test(window.navigator.pla
|
|
|
15299
15299
|
};
|
|
15300
15300
|
for (var Bi = 1; Bi < 20; Bi++)
|
|
15301
15301
|
zo["f" + Bi] = 111 + Bi;
|
|
15302
|
-
function
|
|
15302
|
+
function wa(e, t, n) {
|
|
15303
15303
|
t && !("byKey" in t) && (n = t, t = null), Array.isArray(e) || (e = [e]);
|
|
15304
15304
|
var r = e.map(function(s) {
|
|
15305
15305
|
return Nf(s, t);
|
|
@@ -15311,23 +15311,23 @@ function Da(e, t, n) {
|
|
|
15311
15311
|
return a;
|
|
15312
15312
|
}
|
|
15313
15313
|
function d1(e, t) {
|
|
15314
|
-
return
|
|
15314
|
+
return wa(e, t);
|
|
15315
15315
|
}
|
|
15316
15316
|
function f1(e, t) {
|
|
15317
|
-
return
|
|
15317
|
+
return wa(e, { byKey: !0 }, t);
|
|
15318
15318
|
}
|
|
15319
15319
|
function Nf(e, t) {
|
|
15320
15320
|
var n = t && t.byKey, r = {};
|
|
15321
15321
|
e = e.replace("++", "+add");
|
|
15322
15322
|
var i = e.split("+"), a = i.length;
|
|
15323
|
-
for (var s in
|
|
15324
|
-
r[
|
|
15323
|
+
for (var s in Xa)
|
|
15324
|
+
r[Xa[s]] = !1;
|
|
15325
15325
|
var o = !0, l = !1, u = void 0;
|
|
15326
15326
|
try {
|
|
15327
15327
|
for (var d = i[Symbol.iterator](), m; !(o = (m = d.next()).done); o = !0) {
|
|
15328
15328
|
var h = m.value, p = h.endsWith("?") && h.length > 1;
|
|
15329
15329
|
p && (h = h.slice(0, -1));
|
|
15330
|
-
var g = qo(h), f =
|
|
15330
|
+
var g = qo(h), f = Xa[g];
|
|
15331
15331
|
if (h.length > 1 && !f && !Of[h] && !zo[g])
|
|
15332
15332
|
throw new TypeError('Unknown modifier: "' + h + '"');
|
|
15333
15333
|
(a === 1 || !f) && (n ? r.key = g : r.which = $f(h)), f && (r[f] = p ? null : !0);
|
|
@@ -15360,7 +15360,7 @@ function $f(e) {
|
|
|
15360
15360
|
function qo(e) {
|
|
15361
15361
|
return e = e.toLowerCase(), e = Of[e] || e, e;
|
|
15362
15362
|
}
|
|
15363
|
-
var m1 = vn.default =
|
|
15363
|
+
var m1 = vn.default = wa, es = vn.isHotkey = wa;
|
|
15364
15364
|
vn.isCodeHotkey = d1;
|
|
15365
15365
|
vn.isKeyHotkey = f1;
|
|
15366
15366
|
vn.parseHotkey = Nf;
|
|
@@ -15425,10 +15425,10 @@ var Uo = /* @__PURE__ */ xt(null), Bn = () => {
|
|
|
15425
15425
|
return e;
|
|
15426
15426
|
}, Rf = parseInt(re.version.split(".")[0], 10), v1 = typeof navigator < "u" && typeof window < "u" && /iPad|iPhone|iPod/.test(navigator.userAgent) && !window.MSStream, ic = typeof navigator < "u" && /Mac OS X/.test(navigator.userAgent), bt = typeof navigator < "u" && /Android/.test(navigator.userAgent), or = typeof navigator < "u" && /^(?!.*Seamonkey)(?=.*Firefox).*/i.test(navigator.userAgent), Rr = typeof navigator < "u" && /AppleWebKit(?!.*Chrome)/i.test(navigator.userAgent), b1 = typeof navigator < "u" && /Edge?\/(?:[0-6][0-9]|[0-7][0-8])(?:\.)/i.test(navigator.userAgent), If = typeof navigator < "u" && /Chrome/i.test(navigator.userAgent), y1 = typeof navigator < "u" && /Chrome?\/(?:[0-7][0-5]|[0-6][0-9])(?:\.)/i.test(navigator.userAgent), x1 = bt && typeof navigator < "u" && /Chrome?\/(?:[0-5]?\d)(?:\.)/i.test(navigator.userAgent), w1 = typeof navigator < "u" && /^(?!.*Seamonkey)(?=.*Firefox\/(?:[0-7][0-9]|[0-8][0-6])(?:\.)).*/i.test(navigator.userAgent), D1 = typeof navigator < "u" && /.*UCBrowser/.test(navigator.userAgent), C1 = typeof navigator < "u" && /.*Wechat/.test(navigator.userAgent) && !/.*MacWechat/.test(navigator.userAgent), Ui = typeof window < "u" && typeof window.document < "u" && typeof window.document.createElement < "u", bn = (!y1 || !x1) && !b1 && // globalThis is undefined in older browsers
|
|
15427
15427
|
typeof globalThis < "u" && globalThis.InputEvent && // @ts-ignore The `getTargetRanges` property isn't recognized.
|
|
15428
|
-
typeof globalThis.InputEvent.prototype.getTargetRanges == "function", Wo = /* @__PURE__ */ new WeakMap(), Vo = /* @__PURE__ */ new WeakMap(), Lf = /* @__PURE__ */ new WeakMap(), Wi = /* @__PURE__ */ new WeakMap(),
|
|
15428
|
+
typeof globalThis.InputEvent.prototype.getTargetRanges == "function", Wo = /* @__PURE__ */ new WeakMap(), Vo = /* @__PURE__ */ new WeakMap(), Lf = /* @__PURE__ */ new WeakMap(), Wi = /* @__PURE__ */ new WeakMap(), Zs = /* @__PURE__ */ new WeakMap(), ri = /* @__PURE__ */ new WeakMap(), Rn = /* @__PURE__ */ new WeakMap(), ca = /* @__PURE__ */ new WeakMap(), Da = /* @__PURE__ */ new WeakMap(), Ys = /* @__PURE__ */ new WeakMap(), En = /* @__PURE__ */ new WeakMap(), Nn = /* @__PURE__ */ new WeakMap(), Ur = /* @__PURE__ */ new WeakMap(), Gs = /* @__PURE__ */ new WeakMap(), Ho = /* @__PURE__ */ new WeakMap(), Ht = /* @__PURE__ */ new WeakMap(), un = /* @__PURE__ */ new WeakMap(), _t = /* @__PURE__ */ new WeakMap(), xn = /* @__PURE__ */ new WeakMap(), wn = /* @__PURE__ */ new WeakMap(), zf = /* @__PURE__ */ new WeakMap(), xr = Symbol("placeholder"), qf = Symbol("mark-placeholder"), E1 = globalThis.Text, Ko = (e) => e && e.ownerDocument && e.ownerDocument.defaultView || null, _1 = (e) => Fn(e) && e.nodeType === 8, It = (e) => Fn(e) && e.nodeType === 1, Fn = (e) => {
|
|
15429
15429
|
var t = Ko(e);
|
|
15430
15430
|
return !!t && e instanceof t.Node;
|
|
15431
|
-
},
|
|
15431
|
+
}, Qs = (e) => {
|
|
15432
15432
|
var t = e && e.anchorNode && Ko(e.anchorNode);
|
|
15433
15433
|
return !!t && e instanceof t.Selection;
|
|
15434
15434
|
}, Uf = (e) => Fn(e) && e.nodeType === 3, k1 = (e) => e.clipboardData && e.clipboardData.getData("text/plain") !== "" && e.clipboardData.types.length === 1, F1 = (e) => {
|
|
@@ -15655,16 +15655,16 @@ var ne = {
|
|
|
15655
15655
|
insertTextData: (e, t) => e.insertTextData(t),
|
|
15656
15656
|
isComposing: (e) => !!Nn.get(e),
|
|
15657
15657
|
isFocused: (e) => !!En.get(e),
|
|
15658
|
-
isReadOnly: (e) => !!
|
|
15658
|
+
isReadOnly: (e) => !!Ys.get(e),
|
|
15659
15659
|
isTargetInsideNonReadonlyVoid: (e, t) => {
|
|
15660
|
-
if (
|
|
15660
|
+
if (Ys.get(e))
|
|
15661
15661
|
return !1;
|
|
15662
15662
|
var n = ne.hasTarget(e, t) && ne.toSlateNode(e, t);
|
|
15663
15663
|
return ge.isElement(n) && x.isVoid(e, n);
|
|
15664
15664
|
},
|
|
15665
15665
|
setFragmentData: (e, t, n) => e.setFragmentData(t, n),
|
|
15666
15666
|
toDOMNode: (e, t) => {
|
|
15667
|
-
var n =
|
|
15667
|
+
var n = Da.get(e), r = x.isEditor(t) ? Wi.get(e) : n == null ? void 0 : n.get(ne.findKey(e, t));
|
|
15668
15668
|
if (!r)
|
|
15669
15669
|
throw new Error("Cannot resolve a DOM node from Slate node: ".concat(ct.stringify(t)));
|
|
15670
15670
|
return r;
|
|
@@ -15799,9 +15799,9 @@ var ne = {
|
|
|
15799
15799
|
var r, {
|
|
15800
15800
|
exactMatch: i,
|
|
15801
15801
|
suppressThrow: a
|
|
15802
|
-
} = n, s =
|
|
15802
|
+
} = n, s = Qs(t) ? t.anchorNode : t.startContainer, o, l, u, d, m;
|
|
15803
15803
|
if (s)
|
|
15804
|
-
if (
|
|
15804
|
+
if (Qs(t)) {
|
|
15805
15805
|
if (or && t.rangeCount > 1) {
|
|
15806
15806
|
u = t.focusNode;
|
|
15807
15807
|
var h = t.getRangeAt(0), p = t.getRangeAt(t.rangeCount - 1);
|
|
@@ -15921,7 +15921,7 @@ function R1(e) {
|
|
|
15921
15921
|
}
|
|
15922
15922
|
};
|
|
15923
15923
|
}
|
|
15924
|
-
function
|
|
15924
|
+
function Js(e, t) {
|
|
15925
15925
|
var {
|
|
15926
15926
|
path: n,
|
|
15927
15927
|
offset: r
|
|
@@ -15952,7 +15952,7 @@ function Xs(e, t) {
|
|
|
15952
15952
|
};
|
|
15953
15953
|
}
|
|
15954
15954
|
function ac(e, t) {
|
|
15955
|
-
var n =
|
|
15955
|
+
var n = Js(e, t.anchor);
|
|
15956
15956
|
if (!n)
|
|
15957
15957
|
return null;
|
|
15958
15958
|
if (G.isCollapsed(t))
|
|
@@ -15960,13 +15960,13 @@ function ac(e, t) {
|
|
|
15960
15960
|
anchor: n,
|
|
15961
15961
|
focus: n
|
|
15962
15962
|
};
|
|
15963
|
-
var r =
|
|
15963
|
+
var r = Js(e, t.focus);
|
|
15964
15964
|
return r ? {
|
|
15965
15965
|
anchor: n,
|
|
15966
15966
|
focus: r
|
|
15967
15967
|
} : null;
|
|
15968
15968
|
}
|
|
15969
|
-
function
|
|
15969
|
+
function Xs(e, t, n) {
|
|
15970
15970
|
var r = _t.get(e), i = r == null ? void 0 : r.find((d) => {
|
|
15971
15971
|
var {
|
|
15972
15972
|
path: m
|
|
@@ -16004,7 +16004,7 @@ function eo(e, t, n) {
|
|
|
16004
16004
|
} : null;
|
|
16005
16005
|
}
|
|
16006
16006
|
function sc(e, t, n) {
|
|
16007
|
-
var r =
|
|
16007
|
+
var r = Xs(e, t.anchor, n);
|
|
16008
16008
|
if (!r)
|
|
16009
16009
|
return null;
|
|
16010
16010
|
if (G.isCollapsed(t))
|
|
@@ -16012,7 +16012,7 @@ function sc(e, t, n) {
|
|
|
16012
16012
|
anchor: r,
|
|
16013
16013
|
focus: r
|
|
16014
16014
|
};
|
|
16015
|
-
var i =
|
|
16015
|
+
var i = Xs(e, t.focus, n);
|
|
16016
16016
|
return i ? {
|
|
16017
16017
|
anchor: r,
|
|
16018
16018
|
focus: i
|
|
@@ -16149,7 +16149,7 @@ function W1(e) {
|
|
|
16149
16149
|
var F = xn.get(t);
|
|
16150
16150
|
if (xn.delete(t), !!F) {
|
|
16151
16151
|
if (F.at) {
|
|
16152
|
-
var k = Ne.isPoint(F.at) ?
|
|
16152
|
+
var k = Ne.isPoint(F.at) ? Js(t, F.at) : ac(t, F.at);
|
|
16153
16153
|
if (!k)
|
|
16154
16154
|
return;
|
|
16155
16155
|
var B = x.range(t, k);
|
|
@@ -16193,7 +16193,7 @@ function W1(e) {
|
|
|
16193
16193
|
}, g = (F) => {
|
|
16194
16194
|
Nn.set(t, !0), a && (clearTimeout(a), a = null);
|
|
16195
16195
|
}, f = function() {
|
|
16196
|
-
var k = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : !1, B =
|
|
16196
|
+
var k = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : !1, B = Zs.get(t);
|
|
16197
16197
|
if (B) {
|
|
16198
16198
|
if (E() || k) {
|
|
16199
16199
|
B.style.display = "none";
|
|
@@ -16314,7 +16314,7 @@ function W1(e) {
|
|
|
16314
16314
|
case "deleteContentBackward": {
|
|
16315
16315
|
var Ze, {
|
|
16316
16316
|
anchor: Ge
|
|
16317
|
-
} = M, Qe =
|
|
16317
|
+
} = M, Qe = Qs(W) ? W.isCollapsed : !!((Ze = W) !== null && Ze !== void 0 && Ze.collapsed);
|
|
16318
16318
|
return D && Qe && G.isCollapsed(M) && Ge.offset > 0 ? b(Ge.path, {
|
|
16319
16319
|
text: "",
|
|
16320
16320
|
start: Ge.offset - 1,
|
|
@@ -16568,12 +16568,12 @@ var rw = (e) => {
|
|
|
16568
16568
|
parent: r,
|
|
16569
16569
|
text: i
|
|
16570
16570
|
} = e, a = Bn(), s = ne.findPath(a, i), o = I.parent(s), l = !!n[qf];
|
|
16571
|
-
return a.isVoid(r) ? /* @__PURE__ */ re.createElement(
|
|
16571
|
+
return a.isVoid(r) ? /* @__PURE__ */ re.createElement(ts, {
|
|
16572
16572
|
length: ue.string(r).length
|
|
16573
|
-
}) : n.text === "" && r.children[r.children.length - 1] === i && !a.isInline(r) && x.string(a, o) === "" ? /* @__PURE__ */ re.createElement(
|
|
16573
|
+
}) : n.text === "" && r.children[r.children.length - 1] === i && !a.isInline(r) && x.string(a, o) === "" ? /* @__PURE__ */ re.createElement(ts, {
|
|
16574
16574
|
isLineBreak: !0,
|
|
16575
16575
|
isMarkPlaceholder: l
|
|
16576
|
-
}) : n.text === "" ? /* @__PURE__ */ re.createElement(
|
|
16576
|
+
}) : n.text === "" ? /* @__PURE__ */ re.createElement(ts, {
|
|
16577
16577
|
isMarkPlaceholder: l
|
|
16578
16578
|
}) : t && n.text.slice(-1) === `
|
|
16579
16579
|
` ? /* @__PURE__ */ re.createElement(cc, {
|
|
@@ -16594,10 +16594,10 @@ var rw = (e) => {
|
|
|
16594
16594
|
}), /* @__PURE__ */ re.createElement(iw, {
|
|
16595
16595
|
ref: r
|
|
16596
16596
|
}, a);
|
|
16597
|
-
}, iw = /* @__PURE__ */ qt(/* @__PURE__ */
|
|
16597
|
+
}, iw = /* @__PURE__ */ qt(/* @__PURE__ */ mo((e, t) => /* @__PURE__ */ re.createElement("span", {
|
|
16598
16598
|
"data-slate-string": !0,
|
|
16599
16599
|
ref: t
|
|
16600
|
-
}, e.children))),
|
|
16600
|
+
}, e.children))), ts = (e) => {
|
|
16601
16601
|
var {
|
|
16602
16602
|
length: t = 0,
|
|
16603
16603
|
isLineBreak: n = !1,
|
|
@@ -16647,9 +16647,9 @@ var ow = (e) => {
|
|
|
16647
16647
|
} = e, o = Bn(), l = Se(null), u = Se(null), [d, m] = se(!1), h = Se(null), p = Re((y) => {
|
|
16648
16648
|
if (sw(l, y == null), y == null) {
|
|
16649
16649
|
var w;
|
|
16650
|
-
|
|
16650
|
+
Zs.delete(o), (w = t.onPlaceholderResize) === null || w === void 0 || w.call(t, null);
|
|
16651
16651
|
} else {
|
|
16652
|
-
if (
|
|
16652
|
+
if (Zs.set(o, y), !l.current) {
|
|
16653
16653
|
var E = window.ResizeObserver || u1;
|
|
16654
16654
|
l.current = new E(() => {
|
|
16655
16655
|
var C;
|
|
@@ -16726,7 +16726,7 @@ var ow = (e) => {
|
|
|
16726
16726
|
}));
|
|
16727
16727
|
}
|
|
16728
16728
|
var g = Re((f) => {
|
|
16729
|
-
var b =
|
|
16729
|
+
var b = Da.get(o);
|
|
16730
16730
|
f ? (b == null || b.set(d, f), Rn.set(s, f), ri.set(f, s)) : (b == null || b.delete(d), Rn.delete(s), l.current && ri.delete(l.current)), l.current = f;
|
|
16731
16731
|
}, [l, o, d, s]);
|
|
16732
16732
|
return /* @__PURE__ */ re.createElement("span", {
|
|
@@ -16744,7 +16744,7 @@ function mc(e, t) {
|
|
|
16744
16744
|
}
|
|
16745
16745
|
return n;
|
|
16746
16746
|
}
|
|
16747
|
-
function
|
|
16747
|
+
function eo(e) {
|
|
16748
16748
|
for (var t = 1; t < arguments.length; t++) {
|
|
16749
16749
|
var n = arguments[t] != null ? arguments[t] : {};
|
|
16750
16750
|
t % 2 ? mc(Object(n), !0).forEach(function(r) {
|
|
@@ -16759,12 +16759,12 @@ var dw = (e) => {
|
|
|
16759
16759
|
var {
|
|
16760
16760
|
decorations: t,
|
|
16761
16761
|
element: n,
|
|
16762
|
-
renderElement: r = (y) => /* @__PURE__ */ re.createElement(mw,
|
|
16762
|
+
renderElement: r = (y) => /* @__PURE__ */ re.createElement(mw, eo({}, y)),
|
|
16763
16763
|
renderPlaceholder: i,
|
|
16764
16764
|
renderLeaf: a,
|
|
16765
16765
|
selection: s
|
|
16766
16766
|
} = e, o = Bn(), l = gw(), u = o.isInline(n), d = ne.findKey(o, n), m = Re((y) => {
|
|
16767
|
-
var w =
|
|
16767
|
+
var w = Da.get(o);
|
|
16768
16768
|
y ? (w == null || w.set(d, y), Rn.set(n, y), ri.set(y, n)) : (w == null || w.delete(d), Rn.delete(n));
|
|
16769
16769
|
}, [o, d, n]), h = Jf({
|
|
16770
16770
|
decorations: t,
|
|
@@ -16811,7 +16811,7 @@ var dw = (e) => {
|
|
|
16811
16811
|
children: n,
|
|
16812
16812
|
element: r
|
|
16813
16813
|
} = e, i = Bn(), a = i.isInline(r) ? "span" : "div";
|
|
16814
|
-
return /* @__PURE__ */ re.createElement(a,
|
|
16814
|
+
return /* @__PURE__ */ re.createElement(a, eo(eo({}, t), {}, {
|
|
16815
16815
|
style: {
|
|
16816
16816
|
position: "relative"
|
|
16817
16817
|
}
|
|
@@ -16911,7 +16911,7 @@ var bw = 3, yw = {
|
|
|
16911
16911
|
deleteWordForward: "ctrl+shift?+delete",
|
|
16912
16912
|
redo: ["ctrl+y", "ctrl+shift+z"]
|
|
16913
16913
|
}, et = (e) => {
|
|
16914
|
-
var t = yw[e], n = xw[e], r = ww[e], i = t &&
|
|
16914
|
+
var t = yw[e], n = xw[e], r = ww[e], i = t && es(t), a = n && es(n), s = r && es(r);
|
|
16915
16915
|
return (o) => !!(i && i(o) || ic && a && a(o) || !ic && s && s(o));
|
|
16916
16916
|
}, nt = {
|
|
16917
16917
|
isBold: et("bold"),
|
|
@@ -17051,7 +17051,7 @@ var Fw = (e) => /* @__PURE__ */ re.createElement(re.Fragment, null, Jf(e)), Aw =
|
|
|
17051
17051
|
onUserInput: _,
|
|
17052
17052
|
receivedUserInput: T
|
|
17053
17053
|
} = vw(), [, j] = Un((S) => S + 1, 0);
|
|
17054
|
-
zf.set(f, j),
|
|
17054
|
+
zf.set(f, j), Ys.set(f, s);
|
|
17055
17055
|
var P = en(() => ({
|
|
17056
17056
|
isDraggingInternally: !1,
|
|
17057
17057
|
isUpdatingSelection: !1,
|
|
@@ -17811,8 +17811,8 @@ var Mw = ["editor", "children", "onChange", "onSelectionChange", "onValueChange"
|
|
|
17811
17811
|
editor: t
|
|
17812
17812
|
})), m(t);
|
|
17813
17813
|
}, [t, m, r, i, a]);
|
|
17814
|
-
fe(() => (
|
|
17815
|
-
|
|
17814
|
+
fe(() => (Gs.set(t, h), () => {
|
|
17815
|
+
Gs.set(t, () => {
|
|
17816
17816
|
});
|
|
17817
17817
|
}), [t, h]);
|
|
17818
17818
|
var [p, g] = se(ne.isFocused(t));
|
|
@@ -17881,7 +17881,7 @@ var Iw = function(t) {
|
|
|
17881
17881
|
addMark: o,
|
|
17882
17882
|
removeMark: l
|
|
17883
17883
|
} = r;
|
|
17884
|
-
return
|
|
17884
|
+
return Da.set(r, /* @__PURE__ */ new WeakMap()), r.addMark = (u, d) => {
|
|
17885
17885
|
var m, h;
|
|
17886
17886
|
(m = Ho.get(r)) === null || m === void 0 || m(), !Ht.get(r) && (h = _t.get(r)) !== null && h !== void 0 && h.length && Ht.set(r, null), un.delete(r), o(u, d);
|
|
17887
17887
|
}, r.removeMark = (u) => {
|
|
@@ -17912,7 +17912,7 @@ var Iw = function(t) {
|
|
|
17912
17912
|
g && wn.set(r, sc(r, g, u));
|
|
17913
17913
|
var f = xn.get(r);
|
|
17914
17914
|
if (f != null && f.at) {
|
|
17915
|
-
var b = Ne.isPoint(f == null ? void 0 : f.at) ?
|
|
17915
|
+
var b = Ne.isPoint(f == null ? void 0 : f.at) ? Xs(r, f.at, u) : sc(r, f.at, u);
|
|
17916
17916
|
xn.set(r, b ? yc(yc({}, f), {}, {
|
|
17917
17917
|
at: b
|
|
17918
17918
|
}) : null);
|
|
@@ -18015,7 +18015,7 @@ var Iw = function(t) {
|
|
|
18015
18015
|
}, r.onChange = (u) => {
|
|
18016
18016
|
var d = Rf < 18 ? ld.unstable_batchedUpdates : (m) => m();
|
|
18017
18017
|
d(() => {
|
|
18018
|
-
var m =
|
|
18018
|
+
var m = Gs.get(r);
|
|
18019
18019
|
m && m(u), a(u);
|
|
18020
18020
|
});
|
|
18021
18021
|
}, r;
|
|
@@ -18029,10 +18029,10 @@ var Iw = function(t) {
|
|
|
18029
18029
|
}
|
|
18030
18030
|
return n;
|
|
18031
18031
|
};
|
|
18032
|
-
const
|
|
18032
|
+
const to = "MENTION: ", nm = {
|
|
18033
18033
|
anchor: { offset: 0, path: [0, 0] },
|
|
18034
18034
|
focus: { offset: 0, path: [0, 0] }
|
|
18035
|
-
}, xc = { "mention-popover": 35, default: -52 },
|
|
18035
|
+
}, xc = { "mention-popover": 35, default: -52 }, ns = 16, rm = (e, t, n) => {
|
|
18036
18036
|
const r = Se(null), { showLinkEditor: i, mentionPopover: a } = Oe(gn), s = t === "link-editor" ? i : a.show, o = [s];
|
|
18037
18037
|
return e && t === "link-editor" && o.push(e.selection), fe(() => {
|
|
18038
18038
|
var p, g;
|
|
@@ -18058,7 +18058,7 @@ const no = "MENTION: ", nm = {
|
|
|
18058
18058
|
const y = (p = document.getElementById(n)) == null ? void 0 : p.getBoundingClientRect();
|
|
18059
18059
|
l.style.setProperty(
|
|
18060
18060
|
"--width",
|
|
18061
|
-
`${((y == null ? void 0 : y.width) || 0) /
|
|
18061
|
+
`${((y == null ? void 0 : y.width) || 0) / ns}rem`
|
|
18062
18062
|
), d = (y == null ? void 0 : y.left) || 0;
|
|
18063
18063
|
} else {
|
|
18064
18064
|
const f = document.getSelection();
|
|
@@ -18069,7 +18069,7 @@ const no = "MENTION: ", nm = {
|
|
|
18069
18069
|
d === 0 && (d = Math.max(
|
|
18070
18070
|
((u == null ? void 0 : u.left) || 0) - (l.offsetWidth - ((u == null ? void 0 : u.width) || 0)),
|
|
18071
18071
|
0
|
|
18072
|
-
)), l.style.top = `${h /
|
|
18072
|
+
)), l.style.top = `${h / ns}rem`, l.style.left = `${d / ns}rem`;
|
|
18073
18073
|
}, o), r;
|
|
18074
18074
|
}, Lw = (e) => {
|
|
18075
18075
|
const [t, n] = se(
|
|
@@ -18086,7 +18086,7 @@ const no = "MENTION: ", nm = {
|
|
|
18086
18086
|
match: (a) => a.type === K.link
|
|
18087
18087
|
});
|
|
18088
18088
|
if (i) {
|
|
18089
|
-
const a = i[0], s =
|
|
18089
|
+
const a = i[0], s = bo(a.link), o = a.children[0], l = (o == null ? void 0 : o.text) || "";
|
|
18090
18090
|
n({ ...s, text: l });
|
|
18091
18091
|
} else
|
|
18092
18092
|
n(null);
|
|
@@ -18157,8 +18157,8 @@ var Vi = Object.prototype.hasOwnProperty, im = Object.prototype.toString, Dc = O
|
|
|
18157
18157
|
r = Fc(o, n), i = Fc(t, n), o !== i && (d && i && (_c(i) || (a = Ec(i))) ? (a ? (a = !1, s = r && Ec(r) ? r : []) : s = r && _c(r) ? r : {}, kc(o, { name: n, newValue: e(d, s, i) })) : typeof i < "u" && kc(o, { name: n, newValue: i }));
|
|
18158
18158
|
return o;
|
|
18159
18159
|
};
|
|
18160
|
-
const
|
|
18161
|
-
function
|
|
18160
|
+
const rs = /* @__PURE__ */ Wn(zw);
|
|
18161
|
+
function no(e) {
|
|
18162
18162
|
if (typeof e != "object" || e === null)
|
|
18163
18163
|
return !1;
|
|
18164
18164
|
const t = Object.getPrototypeOf(e);
|
|
@@ -18221,13 +18221,13 @@ function Uw(e, t) {
|
|
|
18221
18221
|
}
|
|
18222
18222
|
}
|
|
18223
18223
|
function Wr(e) {
|
|
18224
|
-
return !e || typeof e != "object" ? "" : "position" in e || "type" in e ? Ac(e.position) : "start" in e || "end" in e ? Ac(e) : "line" in e || "column" in e ?
|
|
18224
|
+
return !e || typeof e != "object" ? "" : "position" in e || "type" in e ? Ac(e.position) : "start" in e || "end" in e ? Ac(e) : "line" in e || "column" in e ? ro(e) : "";
|
|
18225
18225
|
}
|
|
18226
|
-
function
|
|
18226
|
+
function ro(e) {
|
|
18227
18227
|
return Tc(e && e.line) + ":" + Tc(e && e.column);
|
|
18228
18228
|
}
|
|
18229
18229
|
function Ac(e) {
|
|
18230
|
-
return
|
|
18230
|
+
return ro(e && e.start) + "-" + ro(e && e.end);
|
|
18231
18231
|
}
|
|
18232
18232
|
function Tc(e) {
|
|
18233
18233
|
return e && typeof e == "number" ? e : 1;
|
|
@@ -18436,14 +18436,14 @@ const Gw = { cwd: Qw };
|
|
|
18436
18436
|
function Qw() {
|
|
18437
18437
|
return "/";
|
|
18438
18438
|
}
|
|
18439
|
-
function
|
|
18439
|
+
function io(e) {
|
|
18440
18440
|
return !!(e !== null && typeof e == "object" && "href" in e && e.href && "protocol" in e && e.protocol && // @ts-expect-error: indexing is fine.
|
|
18441
18441
|
e.auth === void 0);
|
|
18442
18442
|
}
|
|
18443
18443
|
function Jw(e) {
|
|
18444
18444
|
if (typeof e == "string")
|
|
18445
18445
|
e = new URL(e);
|
|
18446
|
-
else if (!
|
|
18446
|
+
else if (!io(e)) {
|
|
18447
18447
|
const t = new TypeError(
|
|
18448
18448
|
'The "path" argument must be of type string or an instance of URL. Received `' + e + "`"
|
|
18449
18449
|
);
|
|
@@ -18476,7 +18476,7 @@ function Xw(e) {
|
|
|
18476
18476
|
}
|
|
18477
18477
|
return decodeURIComponent(t);
|
|
18478
18478
|
}
|
|
18479
|
-
const
|
|
18479
|
+
const is = (
|
|
18480
18480
|
/** @type {const} */
|
|
18481
18481
|
[
|
|
18482
18482
|
"history",
|
|
@@ -18512,15 +18512,15 @@ class eD {
|
|
|
18512
18512
|
*/
|
|
18513
18513
|
constructor(t) {
|
|
18514
18514
|
let n;
|
|
18515
|
-
t ?
|
|
18515
|
+
t ? io(t) ? n = { path: t } : typeof t == "string" || tD(t) ? n = { value: t } : n = t : n = {}, this.cwd = Gw.cwd(), this.data = {}, this.history = [], this.messages = [], this.value, this.map, this.result, this.stored;
|
|
18516
18516
|
let r = -1;
|
|
18517
|
-
for (; ++r <
|
|
18518
|
-
const a =
|
|
18517
|
+
for (; ++r < is.length; ) {
|
|
18518
|
+
const a = is[r];
|
|
18519
18519
|
a in n && n[a] !== void 0 && n[a] !== null && (this[a] = a === "history" ? [...n[a]] : n[a]);
|
|
18520
18520
|
}
|
|
18521
18521
|
let i;
|
|
18522
18522
|
for (i in n)
|
|
18523
|
-
|
|
18523
|
+
is.includes(i) || (this[i] = n[i]);
|
|
18524
18524
|
}
|
|
18525
18525
|
/**
|
|
18526
18526
|
* Get the basename (including extname) (example: `'index.min.js'`).
|
|
@@ -18544,7 +18544,7 @@ class eD {
|
|
|
18544
18544
|
* Nothing.
|
|
18545
18545
|
*/
|
|
18546
18546
|
set basename(t) {
|
|
18547
|
-
|
|
18547
|
+
ss(t, "basename"), as(t, "basename"), this.path = Jt.join(this.dirname || "", t);
|
|
18548
18548
|
}
|
|
18549
18549
|
/**
|
|
18550
18550
|
* Get the parent path (example: `'~'`).
|
|
@@ -18590,7 +18590,7 @@ class eD {
|
|
|
18590
18590
|
* Nothing.
|
|
18591
18591
|
*/
|
|
18592
18592
|
set extname(t) {
|
|
18593
|
-
if (
|
|
18593
|
+
if (as(t, "extname"), Bc(this.dirname, "extname"), t) {
|
|
18594
18594
|
if (t.codePointAt(0) !== 46)
|
|
18595
18595
|
throw new Error("`extname` must start with `.`");
|
|
18596
18596
|
if (t.includes(".", 1))
|
|
@@ -18620,7 +18620,7 @@ class eD {
|
|
|
18620
18620
|
* Nothing.
|
|
18621
18621
|
*/
|
|
18622
18622
|
set path(t) {
|
|
18623
|
-
|
|
18623
|
+
io(t) && (t = Jw(t)), ss(t, "path"), this.path !== t && this.history.push(t);
|
|
18624
18624
|
}
|
|
18625
18625
|
/**
|
|
18626
18626
|
* Get the stem (basename w/o extname) (example: `'index.min'`).
|
|
@@ -18644,7 +18644,7 @@ class eD {
|
|
|
18644
18644
|
* Nothing.
|
|
18645
18645
|
*/
|
|
18646
18646
|
set stem(t) {
|
|
18647
|
-
|
|
18647
|
+
ss(t, "stem"), as(t, "stem"), this.path = Jt.join(this.dirname || "", t + (this.extname || ""));
|
|
18648
18648
|
}
|
|
18649
18649
|
// Normal prototypal methods.
|
|
18650
18650
|
/**
|
|
@@ -18857,13 +18857,13 @@ class eD {
|
|
|
18857
18857
|
return this.value === void 0 ? "" : typeof this.value == "string" ? this.value : new TextDecoder(t || void 0).decode(this.value);
|
|
18858
18858
|
}
|
|
18859
18859
|
}
|
|
18860
|
-
function
|
|
18860
|
+
function as(e, t) {
|
|
18861
18861
|
if (e && e.includes(Jt.sep))
|
|
18862
18862
|
throw new Error(
|
|
18863
18863
|
"`" + t + "` cannot be a path: did not expect `" + Jt.sep + "`"
|
|
18864
18864
|
);
|
|
18865
18865
|
}
|
|
18866
|
-
function
|
|
18866
|
+
function ss(e, t) {
|
|
18867
18867
|
if (!e)
|
|
18868
18868
|
throw new Error("`" + t + "` cannot be empty");
|
|
18869
18869
|
}
|
|
@@ -18930,7 +18930,7 @@ class Yo extends nD {
|
|
|
18930
18930
|
const r = this.attachers[n];
|
|
18931
18931
|
t.use(...r);
|
|
18932
18932
|
}
|
|
18933
|
-
return t.data(
|
|
18933
|
+
return t.data(rs(!0, {}, this.namespace)), t;
|
|
18934
18934
|
}
|
|
18935
18935
|
/**
|
|
18936
18936
|
* Configure the processor with info available to all plugins.
|
|
@@ -18992,7 +18992,7 @@ class Yo extends nD {
|
|
|
18992
18992
|
* the entire dataset when getting without key.
|
|
18993
18993
|
*/
|
|
18994
18994
|
data(t, n) {
|
|
18995
|
-
return typeof t == "string" ? arguments.length === 2 ? (
|
|
18995
|
+
return typeof t == "string" ? arguments.length === 2 ? (us("data", this.frozen), this.namespace[t] = n, this) : rD.call(this.namespace, t) && this.namespace[t] || void 0 : t ? (us("data", this.frozen), this.namespace = t, this) : this.namespace;
|
|
18996
18996
|
}
|
|
18997
18997
|
/**
|
|
18998
18998
|
* Freeze a processor.
|
|
@@ -19046,7 +19046,7 @@ class Yo extends nD {
|
|
|
19046
19046
|
parse(t) {
|
|
19047
19047
|
this.freeze();
|
|
19048
19048
|
const n = ji(t), r = this.parser || this.Parser;
|
|
19049
|
-
return
|
|
19049
|
+
return os("parse", r), r(String(n), n);
|
|
19050
19050
|
}
|
|
19051
19051
|
/**
|
|
19052
19052
|
* Process the given file as configured on the processor.
|
|
@@ -19092,7 +19092,7 @@ class Yo extends nD {
|
|
|
19092
19092
|
*/
|
|
19093
19093
|
process(t, n) {
|
|
19094
19094
|
const r = this;
|
|
19095
|
-
return this.freeze(),
|
|
19095
|
+
return this.freeze(), os("process", this.parser || this.Parser), ls("process", this.compiler || this.Compiler), n ? i(void 0, n) : new Promise(i);
|
|
19096
19096
|
function i(a, s) {
|
|
19097
19097
|
const o = ji(t), l = (
|
|
19098
19098
|
/** @type {HeadTree extends undefined ? Node : HeadTree} */
|
|
@@ -19151,7 +19151,7 @@ class Yo extends nD {
|
|
|
19151
19151
|
*/
|
|
19152
19152
|
processSync(t) {
|
|
19153
19153
|
let n = !1, r;
|
|
19154
|
-
return this.freeze(),
|
|
19154
|
+
return this.freeze(), os("processSync", this.parser || this.Parser), ls("processSync", this.compiler || this.Compiler), this.process(t, i), jc("processSync", "process", n), r;
|
|
19155
19155
|
function i(a, s) {
|
|
19156
19156
|
n = !0, wc(a), r = s;
|
|
19157
19157
|
}
|
|
@@ -19266,7 +19266,7 @@ class Yo extends nD {
|
|
|
19266
19266
|
stringify(t, n) {
|
|
19267
19267
|
this.freeze();
|
|
19268
19268
|
const r = ji(n), i = this.compiler || this.Compiler;
|
|
19269
|
-
return
|
|
19269
|
+
return ls("stringify", i), Sc(t), i(t, r);
|
|
19270
19270
|
}
|
|
19271
19271
|
/**
|
|
19272
19272
|
* Configure the processor to use a plugin, a list of usable values, or a
|
|
@@ -19327,7 +19327,7 @@ class Yo extends nD {
|
|
|
19327
19327
|
*/
|
|
19328
19328
|
use(t, ...n) {
|
|
19329
19329
|
const r = this.attachers, i = this.namespace;
|
|
19330
|
-
if (
|
|
19330
|
+
if (us("use", this.frozen), t != null)
|
|
19331
19331
|
if (typeof t == "function")
|
|
19332
19332
|
l(t, n);
|
|
19333
19333
|
else if (typeof t == "object")
|
|
@@ -19355,7 +19355,7 @@ class Yo extends nD {
|
|
|
19355
19355
|
throw new Error(
|
|
19356
19356
|
"Expected usable value but received an empty preset, which is probably a mistake: presets typically come with `plugins` and sometimes with `settings`, but this has neither"
|
|
19357
19357
|
);
|
|
19358
|
-
o(u.plugins), u.settings && (i.settings =
|
|
19358
|
+
o(u.plugins), u.settings && (i.settings = rs(!0, i.settings, u.settings));
|
|
19359
19359
|
}
|
|
19360
19360
|
function o(u) {
|
|
19361
19361
|
let d = -1;
|
|
@@ -19380,28 +19380,28 @@ class Yo extends nD {
|
|
|
19380
19380
|
else if (d.length > 0) {
|
|
19381
19381
|
let [p, ...g] = d;
|
|
19382
19382
|
const f = r[h][1];
|
|
19383
|
-
|
|
19383
|
+
no(f) && no(p) && (p = rs(!0, f, p)), r[h] = [u, p, ...g];
|
|
19384
19384
|
}
|
|
19385
19385
|
}
|
|
19386
19386
|
}
|
|
19387
19387
|
}
|
|
19388
19388
|
const iD = new Yo().freeze();
|
|
19389
|
-
function
|
|
19389
|
+
function os(e, t) {
|
|
19390
19390
|
if (typeof t != "function")
|
|
19391
19391
|
throw new TypeError("Cannot `" + e + "` without `parser`");
|
|
19392
19392
|
}
|
|
19393
|
-
function
|
|
19393
|
+
function ls(e, t) {
|
|
19394
19394
|
if (typeof t != "function")
|
|
19395
19395
|
throw new TypeError("Cannot `" + e + "` without `compiler`");
|
|
19396
19396
|
}
|
|
19397
|
-
function
|
|
19397
|
+
function us(e, t) {
|
|
19398
19398
|
if (t)
|
|
19399
19399
|
throw new Error(
|
|
19400
19400
|
"Cannot call `" + e + "` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`."
|
|
19401
19401
|
);
|
|
19402
19402
|
}
|
|
19403
19403
|
function Sc(e) {
|
|
19404
|
-
if (!
|
|
19404
|
+
if (!no(e) || typeof e.type != "string")
|
|
19405
19405
|
throw new TypeError("Expected node, got `" + e + "`");
|
|
19406
19406
|
}
|
|
19407
19407
|
function jc(e, t, n) {
|
|
@@ -19516,14 +19516,14 @@ function fr(e) {
|
|
|
19516
19516
|
return e.replace(/[\t\n\r ]+/g, " ").replace(/^ | $/g, "").toLowerCase().toUpperCase();
|
|
19517
19517
|
}
|
|
19518
19518
|
const Xt = Sn(/[A-Za-z]/), Kt = Sn(/[\dA-Za-z]/), hD = Sn(/[#-'*+\--9=?A-Z^-~]/);
|
|
19519
|
-
function
|
|
19519
|
+
function ao(e) {
|
|
19520
19520
|
return (
|
|
19521
19521
|
// Special whitespace codes (which have negative values), C0 and Control
|
|
19522
19522
|
// character DEL
|
|
19523
19523
|
e !== null && (e < 32 || e === 127)
|
|
19524
19524
|
);
|
|
19525
19525
|
}
|
|
19526
|
-
const
|
|
19526
|
+
const so = Sn(/\d/), pD = Sn(/[\dA-Fa-f]/), gD = Sn(/[!-/:-@[-`{-~]/);
|
|
19527
19527
|
function ke(e) {
|
|
19528
19528
|
return e !== null && e < -2;
|
|
19529
19529
|
}
|
|
@@ -19745,7 +19745,7 @@ function Qo(e, t, n) {
|
|
|
19745
19745
|
}
|
|
19746
19746
|
return t;
|
|
19747
19747
|
}
|
|
19748
|
-
const
|
|
19748
|
+
const oo = {
|
|
19749
19749
|
name: "attention",
|
|
19750
19750
|
tokenize: _D,
|
|
19751
19751
|
resolveAll: ED
|
|
@@ -19822,7 +19822,7 @@ function FD(e, t, n) {
|
|
|
19822
19822
|
return p === 58 ? (e.consume(p), r = 0, l) : (p === 43 || p === 45 || p === 46 || Kt(p)) && r++ < 32 ? (e.consume(p), o) : (r = 0, u(p));
|
|
19823
19823
|
}
|
|
19824
19824
|
function l(p) {
|
|
19825
|
-
return p === 62 ? (e.exit("autolinkProtocol"), e.enter("autolinkMarker"), e.consume(p), e.exit("autolinkMarker"), e.exit("autolink"), t) : p === null || p === 32 || p === 60 ||
|
|
19825
|
+
return p === 62 ? (e.exit("autolinkProtocol"), e.enter("autolinkMarker"), e.consume(p), e.exit("autolinkMarker"), e.exit("autolink"), t) : p === null || p === 32 || p === 60 || ao(p) ? n(p) : (e.consume(p), l);
|
|
19826
19826
|
}
|
|
19827
19827
|
function u(p) {
|
|
19828
19828
|
return p === 64 ? (e.consume(p), d) : hD(p) ? (e.consume(p), u) : n(p);
|
|
@@ -19841,7 +19841,7 @@ function FD(e, t, n) {
|
|
|
19841
19841
|
return n(p);
|
|
19842
19842
|
}
|
|
19843
19843
|
}
|
|
19844
|
-
const
|
|
19844
|
+
const Ca = {
|
|
19845
19845
|
tokenize: AD,
|
|
19846
19846
|
partial: !0
|
|
19847
19847
|
};
|
|
@@ -19919,7 +19919,7 @@ function PD(e, t, n) {
|
|
|
19919
19919
|
return m === 35 ? (e.enter("characterReferenceMarkerNumeric"), e.consume(m), e.exit("characterReferenceMarkerNumeric"), u) : (e.enter("characterReferenceValue"), a = 31, s = Kt, d(m));
|
|
19920
19920
|
}
|
|
19921
19921
|
function u(m) {
|
|
19922
|
-
return m === 88 || m === 120 ? (e.enter("characterReferenceMarkerHexadecimal"), e.consume(m), e.exit("characterReferenceMarkerHexadecimal"), e.enter("characterReferenceValue"), a = 6, s = pD, d) : (e.enter("characterReferenceValue"), a = 7, s =
|
|
19922
|
+
return m === 88 || m === 120 ? (e.enter("characterReferenceMarkerHexadecimal"), e.consume(m), e.exit("characterReferenceMarkerHexadecimal"), e.enter("characterReferenceValue"), a = 6, s = pD, d) : (e.enter("characterReferenceValue"), a = 7, s = so, d(m));
|
|
19923
19923
|
}
|
|
19924
19924
|
function d(m) {
|
|
19925
19925
|
if (m === 59 && i) {
|
|
@@ -20018,7 +20018,7 @@ function ND(e, t, n) {
|
|
|
20018
20018
|
return r.parser.lazy[r.now().line] ? n(s) : t(s);
|
|
20019
20019
|
}
|
|
20020
20020
|
}
|
|
20021
|
-
const
|
|
20021
|
+
const cs = {
|
|
20022
20022
|
name: "codeIndented",
|
|
20023
20023
|
tokenize: $D
|
|
20024
20024
|
}, MD = {
|
|
@@ -20360,7 +20360,7 @@ function dm(e, t, n, r, i, a, s, o, l) {
|
|
|
20360
20360
|
let d = 0;
|
|
20361
20361
|
return m;
|
|
20362
20362
|
function m(v) {
|
|
20363
|
-
return v === 60 ? (e.enter(r), e.enter(i), e.enter(a), e.consume(v), e.exit(a), h) : v === null || v === 32 || v === 41 ||
|
|
20363
|
+
return v === 60 ? (e.enter(r), e.enter(i), e.enter(a), e.consume(v), e.exit(a), h) : v === null || v === 32 || v === 41 || ao(v) ? n(v) : (e.enter(r), e.enter(s), e.enter(o), e.enter("chunkString", {
|
|
20364
20364
|
contentType: "string"
|
|
20365
20365
|
}), f(v));
|
|
20366
20366
|
}
|
|
@@ -20376,7 +20376,7 @@ function dm(e, t, n, r, i, a, s, o, l) {
|
|
|
20376
20376
|
return v === 60 || v === 62 || v === 92 ? (e.consume(v), p) : p(v);
|
|
20377
20377
|
}
|
|
20378
20378
|
function f(v) {
|
|
20379
|
-
return !d && (v === null || v === 41 || Ft(v)) ? (e.exit("chunkString"), e.exit(o), e.exit(s), e.exit(r), t(v)) : d < u && v === 40 ? (e.consume(v), d++, f) : v === 41 ? (e.consume(v), d--, f) : v === null || v === 32 || v === 40 ||
|
|
20379
|
+
return !d && (v === null || v === 41 || Ft(v)) ? (e.exit("chunkString"), e.exit(o), e.exit(s), e.exit(r), t(v)) : d < u && v === 40 ? (e.consume(v), d++, f) : v === 41 ? (e.consume(v), d--, f) : v === null || v === 32 || v === 40 || ao(v) ? n(v) : (e.consume(v), v === 92 ? b : f);
|
|
20380
20380
|
}
|
|
20381
20381
|
function b(v) {
|
|
20382
20382
|
return v === 40 || v === 41 || v === 92 ? (e.consume(v), f) : f(v);
|
|
@@ -20759,7 +20759,7 @@ function dC(e, t, n) {
|
|
|
20759
20759
|
function fC(e, t, n) {
|
|
20760
20760
|
return r;
|
|
20761
20761
|
function r(i) {
|
|
20762
|
-
return e.enter("lineEnding"), e.consume(i), e.exit("lineEnding"), e.attempt(
|
|
20762
|
+
return e.enter("lineEnding"), e.consume(i), e.exit("lineEnding"), e.attempt(Ca, t, n);
|
|
20763
20763
|
}
|
|
20764
20764
|
}
|
|
20765
20765
|
const mC = {
|
|
@@ -21018,7 +21018,7 @@ function FC(e, t, n) {
|
|
|
21018
21018
|
return s === 94 && "_hiddenFootnoteSupport" in r.parser.constructs ? n(s) : t(s);
|
|
21019
21019
|
}
|
|
21020
21020
|
}
|
|
21021
|
-
const
|
|
21021
|
+
const ds = {
|
|
21022
21022
|
name: "lineEnding",
|
|
21023
21023
|
tokenize: AC
|
|
21024
21024
|
};
|
|
@@ -21068,7 +21068,7 @@ function jC(e, t, n) {
|
|
|
21068
21068
|
return o;
|
|
21069
21069
|
function o(p) {
|
|
21070
21070
|
const g = r.containerState.type || (p === 42 || p === 43 || p === 45 ? "listUnordered" : "listOrdered");
|
|
21071
|
-
if (g === "listUnordered" ? !r.containerState.marker || p === r.containerState.marker :
|
|
21071
|
+
if (g === "listUnordered" ? !r.containerState.marker || p === r.containerState.marker : so(p)) {
|
|
21072
21072
|
if (r.containerState.type || (r.containerState.type = g, e.enter(g, {
|
|
21073
21073
|
_container: !0
|
|
21074
21074
|
})), g === "listUnordered")
|
|
@@ -21079,11 +21079,11 @@ function jC(e, t, n) {
|
|
|
21079
21079
|
return n(p);
|
|
21080
21080
|
}
|
|
21081
21081
|
function l(p) {
|
|
21082
|
-
return
|
|
21082
|
+
return so(p) && ++s < 10 ? (e.consume(p), l) : (!r.interrupt || s < 2) && (r.containerState.marker ? p === r.containerState.marker : p === 41 || p === 46) ? (e.exit("listItemValue"), u(p)) : n(p);
|
|
21083
21083
|
}
|
|
21084
21084
|
function u(p) {
|
|
21085
21085
|
return e.enter("listItemMarker"), e.consume(p), e.exit("listItemMarker"), r.containerState.marker = r.containerState.marker || p, e.check(
|
|
21086
|
-
|
|
21086
|
+
Ca,
|
|
21087
21087
|
// Can’t be empty when interrupting.
|
|
21088
21088
|
r.interrupt ? n : d,
|
|
21089
21089
|
e.attempt(BC, h, m)
|
|
@@ -21101,7 +21101,7 @@ function jC(e, t, n) {
|
|
|
21101
21101
|
}
|
|
21102
21102
|
function PC(e, t, n) {
|
|
21103
21103
|
const r = this;
|
|
21104
|
-
return r.containerState._closeFlow = void 0, e.check(
|
|
21104
|
+
return r.containerState._closeFlow = void 0, e.check(Ca, i, a);
|
|
21105
21105
|
function i(o) {
|
|
21106
21106
|
return r.containerState.furtherBlankLines = r.containerState.furtherBlankLines || r.containerState.initialBlankLine, Je(e, t, "listItemIndent", r.containerState.size + 1)(o);
|
|
21107
21107
|
}
|
|
@@ -21183,7 +21183,7 @@ const IC = {
|
|
|
21183
21183
|
function LC(e) {
|
|
21184
21184
|
const t = this, n = e.attempt(
|
|
21185
21185
|
// Try to parse a blank line.
|
|
21186
|
-
|
|
21186
|
+
Ca,
|
|
21187
21187
|
r,
|
|
21188
21188
|
// Try to parse initial flow (essentially, only code).
|
|
21189
21189
|
e.attempt(
|
|
@@ -21541,9 +21541,9 @@ const ZC = {
|
|
|
21541
21541
|
}, YC = {
|
|
21542
21542
|
91: GD
|
|
21543
21543
|
}, GC = {
|
|
21544
|
-
[-2]:
|
|
21545
|
-
[-1]:
|
|
21546
|
-
32:
|
|
21544
|
+
[-2]: cs,
|
|
21545
|
+
[-1]: cs,
|
|
21546
|
+
32: cs
|
|
21547
21547
|
}, QC = {
|
|
21548
21548
|
35: nC,
|
|
21549
21549
|
42: Hi,
|
|
@@ -21557,20 +21557,20 @@ const ZC = {
|
|
|
21557
21557
|
38: um,
|
|
21558
21558
|
92: lm
|
|
21559
21559
|
}, XC = {
|
|
21560
|
-
[-5]:
|
|
21561
|
-
[-4]:
|
|
21562
|
-
[-3]:
|
|
21560
|
+
[-5]: ds,
|
|
21561
|
+
[-4]: ds,
|
|
21562
|
+
[-3]: ds,
|
|
21563
21563
|
33: EC,
|
|
21564
21564
|
38: um,
|
|
21565
|
-
42:
|
|
21565
|
+
42: oo,
|
|
21566
21566
|
60: [kD, mC],
|
|
21567
21567
|
91: kC,
|
|
21568
21568
|
92: [eC, lm],
|
|
21569
21569
|
93: Jo,
|
|
21570
|
-
95:
|
|
21570
|
+
95: oo,
|
|
21571
21571
|
96: ID
|
|
21572
21572
|
}, eE = {
|
|
21573
|
-
null: [
|
|
21573
|
+
null: [oo, zC]
|
|
21574
21574
|
}, tE = {
|
|
21575
21575
|
null: [42, 95]
|
|
21576
21576
|
}, nE = {
|
|
@@ -22345,19 +22345,19 @@ function bm(e, t) {
|
|
|
22345
22345
|
case vt.emphasis:
|
|
22346
22346
|
return {
|
|
22347
22347
|
[n[ln.emphasis]]: !0,
|
|
22348
|
-
...
|
|
22348
|
+
...fs(s),
|
|
22349
22349
|
...Pi(s)
|
|
22350
22350
|
};
|
|
22351
22351
|
case vt.strong:
|
|
22352
22352
|
return {
|
|
22353
22353
|
[n[ln.strong]]: !0,
|
|
22354
|
-
...
|
|
22354
|
+
...fs(s),
|
|
22355
22355
|
...Pi(s)
|
|
22356
22356
|
};
|
|
22357
22357
|
case vt.delete:
|
|
22358
22358
|
return {
|
|
22359
22359
|
[n[ln.delete]]: !0,
|
|
22360
|
-
...
|
|
22360
|
+
...fs(s),
|
|
22361
22361
|
...Pi(s)
|
|
22362
22362
|
};
|
|
22363
22363
|
case vt.inlineCode:
|
|
@@ -22376,7 +22376,7 @@ function bm(e, t) {
|
|
|
22376
22376
|
return { text: e.value || "" };
|
|
22377
22377
|
}
|
|
22378
22378
|
}
|
|
22379
|
-
const
|
|
22379
|
+
const fs = (e) => ({
|
|
22380
22380
|
text: e.map((t) => t == null ? void 0 : t.text).join("")
|
|
22381
22381
|
});
|
|
22382
22382
|
function Pi(e) {
|
|
@@ -22403,8 +22403,8 @@ const hE = function(t) {
|
|
|
22403
22403
|
const l = s[o], u = l;
|
|
22404
22404
|
if (u.type === K.link) {
|
|
22405
22405
|
const d = u.children && u.children[0];
|
|
22406
|
-
if (d && "text" in d && d.text.includes(
|
|
22407
|
-
const m = u, h = d.text.replace(
|
|
22406
|
+
if (d && "text" in d && d.text.includes(to)) {
|
|
22407
|
+
const m = u, h = d.text.replace(to, ""), p = "link" in m && m.link ? m.link : "";
|
|
22408
22408
|
m.type = K.mention, m.id = p, m.name = h, m.children = [{ text: "" }], s[o + 1] || s.splice(o + 1, 0, { text: " " }), o++;
|
|
22409
22409
|
}
|
|
22410
22410
|
}
|
|
@@ -22733,7 +22733,7 @@ const CE = ({
|
|
|
22733
22733
|
}
|
|
22734
22734
|
) });
|
|
22735
22735
|
};
|
|
22736
|
-
const
|
|
22736
|
+
const lo = ({ formID: e, label: t, showLabel: n }) => {
|
|
22737
22737
|
const { visible: r = "", screenreader: i = "" } = t || {};
|
|
22738
22738
|
return n ? /* @__PURE__ */ c.jsx(
|
|
22739
22739
|
"label",
|
|
@@ -22978,7 +22978,7 @@ const uo = ({ formID: e, label: t, showLabel: n }) => {
|
|
|
22978
22978
|
}
|
|
22979
22979
|
});
|
|
22980
22980
|
};
|
|
22981
|
-
let
|
|
22981
|
+
let ms = null;
|
|
22982
22982
|
const FE = () => {
|
|
22983
22983
|
const e = ce(), t = "richTextEditor_link_", {
|
|
22984
22984
|
id: n,
|
|
@@ -22993,7 +22993,7 @@ const FE = () => {
|
|
|
22993
22993
|
var C;
|
|
22994
22994
|
!p && o && ((C = b.current) == null || C.focus());
|
|
22995
22995
|
}, [p]), fe(() => {
|
|
22996
|
-
|
|
22996
|
+
ms && clearTimeout(ms), ms = setTimeout(() => {
|
|
22997
22997
|
g(Hr(u));
|
|
22998
22998
|
}, 500);
|
|
22999
22999
|
}, [u.selection]);
|
|
@@ -23104,7 +23104,7 @@ const FE = () => {
|
|
|
23104
23104
|
a([{ type: "showLinkEditor", value: !1 }]);
|
|
23105
23105
|
let _ = C.url;
|
|
23106
23106
|
if (C.url) {
|
|
23107
|
-
const { full: T } =
|
|
23107
|
+
const { full: T } = bo(C.url);
|
|
23108
23108
|
_ = T, d != null && d.full ? kE(u, _, n, l) : _E(u, _, n, l), a({ type: "lastAnchor", value: null });
|
|
23109
23109
|
}
|
|
23110
23110
|
if (C.url && s && (!h || i && (d == null ? void 0 : d.full) === i.url)) {
|
|
@@ -23205,7 +23205,7 @@ function OE(e) {
|
|
|
23205
23205
|
}
|
|
23206
23206
|
return e;
|
|
23207
23207
|
}
|
|
23208
|
-
function
|
|
23208
|
+
function uo(e, t) {
|
|
23209
23209
|
return Array(t + 1).join(e);
|
|
23210
23210
|
}
|
|
23211
23211
|
function NE(e) {
|
|
@@ -23345,7 +23345,7 @@ ht.heading = {
|
|
|
23345
23345
|
replacement: function(e, t, n) {
|
|
23346
23346
|
var r = Number(t.nodeName.charAt(1));
|
|
23347
23347
|
if (n.headingStyle === "setext" && r < 3) {
|
|
23348
|
-
var i =
|
|
23348
|
+
var i = uo(r === 1 ? "=" : "-", e.length);
|
|
23349
23349
|
return `
|
|
23350
23350
|
|
|
23351
23351
|
` + e + `
|
|
@@ -23355,7 +23355,7 @@ ht.heading = {
|
|
|
23355
23355
|
} else
|
|
23356
23356
|
return `
|
|
23357
23357
|
|
|
23358
|
-
` +
|
|
23358
|
+
` + uo("#", r) + " " + e + `
|
|
23359
23359
|
|
|
23360
23360
|
`;
|
|
23361
23361
|
}
|
|
@@ -23417,7 +23417,7 @@ ht.fencedCodeBlock = {
|
|
|
23417
23417
|
replacement: function(e, t, n) {
|
|
23418
23418
|
for (var r = t.firstChild.getAttribute("class") || "", i = (r.match(/language-(\S+)/) || [null, ""])[1], a = t.firstChild.textContent, s = n.fence.charAt(0), o = 3, l = new RegExp("^" + s + "{3,}", "gm"), u; u = l.exec(a); )
|
|
23419
23419
|
u[0].length >= o && (o = u[0].length + 1);
|
|
23420
|
-
var d =
|
|
23420
|
+
var d = uo(s, o);
|
|
23421
23421
|
return `
|
|
23422
23422
|
|
|
23423
23423
|
` + d + i + `
|
|
@@ -23546,14 +23546,14 @@ Sm.prototype = {
|
|
|
23546
23546
|
if (e.isBlank)
|
|
23547
23547
|
return this.blankRule;
|
|
23548
23548
|
var t;
|
|
23549
|
-
return (t =
|
|
23549
|
+
return (t = hs(this.array, e, this.options)) || (t = hs(this._keep, e, this.options)) || (t = hs(this._remove, e, this.options)) ? t : this.defaultRule;
|
|
23550
23550
|
},
|
|
23551
23551
|
forEach: function(e) {
|
|
23552
23552
|
for (var t = 0; t < this.array.length; t++)
|
|
23553
23553
|
e(this.array[t], t);
|
|
23554
23554
|
}
|
|
23555
23555
|
};
|
|
23556
|
-
function
|
|
23556
|
+
function hs(e, t, n) {
|
|
23557
23557
|
for (var r = 0; r < e.length; r++) {
|
|
23558
23558
|
var i = e[r];
|
|
23559
23559
|
if (zE(i, t, n))
|
|
@@ -23583,23 +23583,23 @@ function qE(e) {
|
|
|
23583
23583
|
if (l.nodeType === 3 || l.nodeType === 4) {
|
|
23584
23584
|
var u = l.data.replace(/[ \r\n\t]+/g, " ");
|
|
23585
23585
|
if ((!a || / $/.test(a.data)) && !s && u[0] === " " && (u = u.substr(1)), !u) {
|
|
23586
|
-
l =
|
|
23586
|
+
l = ps(l);
|
|
23587
23587
|
continue;
|
|
23588
23588
|
}
|
|
23589
23589
|
l.data = u, a = l;
|
|
23590
23590
|
} else if (l.nodeType === 1)
|
|
23591
23591
|
n(l) || l.nodeName === "BR" ? (a && (a.data = a.data.replace(/ $/, "")), a = null, s = !1) : r(l) || i(l) ? (a = null, s = !0) : a && (s = !1);
|
|
23592
23592
|
else {
|
|
23593
|
-
l =
|
|
23593
|
+
l = ps(l);
|
|
23594
23594
|
continue;
|
|
23595
23595
|
}
|
|
23596
23596
|
var d = Qc(o, l, i);
|
|
23597
23597
|
o = l, l = d;
|
|
23598
23598
|
}
|
|
23599
|
-
a && (a.data = a.data.replace(/ $/, ""), a.data ||
|
|
23599
|
+
a && (a.data = a.data.replace(/ $/, ""), a.data || ps(a));
|
|
23600
23600
|
}
|
|
23601
23601
|
}
|
|
23602
|
-
function
|
|
23602
|
+
function ps(e) {
|
|
23603
23603
|
var t = e.nextSibling || e.parentNode;
|
|
23604
23604
|
return e.parentNode.removeChild(e), t;
|
|
23605
23605
|
}
|
|
@@ -23656,9 +23656,9 @@ function KE(e, t) {
|
|
|
23656
23656
|
isPre: t.preformattedCode ? YE : null
|
|
23657
23657
|
}), n;
|
|
23658
23658
|
}
|
|
23659
|
-
var
|
|
23659
|
+
var gs;
|
|
23660
23660
|
function ZE() {
|
|
23661
|
-
return
|
|
23661
|
+
return gs = gs || new HE(), gs;
|
|
23662
23662
|
}
|
|
23663
23663
|
function YE(e) {
|
|
23664
23664
|
return e.nodeName === "PRE" || e.nodeName === "CODE";
|
|
@@ -23858,7 +23858,7 @@ var a_ = {
|
|
|
23858
23858
|
isHistory(e) {
|
|
23859
23859
|
return mt(e) && Array.isArray(e.redos) && Array.isArray(e.undos) && (e.redos.length === 0 || Cn.isOperationList(e.redos[0].operations)) && (e.undos.length === 0 || Cn.isOperationList(e.undos[0].operations));
|
|
23860
23860
|
}
|
|
23861
|
-
},
|
|
23861
|
+
}, vs = /* @__PURE__ */ new WeakMap(), bs = /* @__PURE__ */ new WeakMap(), ur = {
|
|
23862
23862
|
/**
|
|
23863
23863
|
* Check if a value is a `HistoryEditor` object.
|
|
23864
23864
|
*/
|
|
@@ -23869,13 +23869,13 @@ var a_ = {
|
|
|
23869
23869
|
* Get the merge flag's current value.
|
|
23870
23870
|
*/
|
|
23871
23871
|
isMerging(e) {
|
|
23872
|
-
return
|
|
23872
|
+
return bs.get(e);
|
|
23873
23873
|
},
|
|
23874
23874
|
/**
|
|
23875
23875
|
* Get the saving flag's current value.
|
|
23876
23876
|
*/
|
|
23877
23877
|
isSaving(e) {
|
|
23878
|
-
return
|
|
23878
|
+
return vs.get(e);
|
|
23879
23879
|
},
|
|
23880
23880
|
/**
|
|
23881
23881
|
* Redo to the previous saved state.
|
|
@@ -23895,7 +23895,7 @@ var a_ = {
|
|
|
23895
23895
|
*/
|
|
23896
23896
|
withoutMerging(e, t) {
|
|
23897
23897
|
var n = ur.isMerging(e);
|
|
23898
|
-
|
|
23898
|
+
bs.set(e, !1), t(), bs.set(e, n);
|
|
23899
23899
|
},
|
|
23900
23900
|
/**
|
|
23901
23901
|
* Apply a series of changes inside a synchronous `fn`, without saving any of
|
|
@@ -23903,7 +23903,7 @@ var a_ = {
|
|
|
23903
23903
|
*/
|
|
23904
23904
|
withoutSaving(e, t) {
|
|
23905
23905
|
var n = ur.isSaving(e);
|
|
23906
|
-
|
|
23906
|
+
vs.set(e, !1), t(), vs.set(e, n);
|
|
23907
23907
|
}
|
|
23908
23908
|
}, s_ = (e) => {
|
|
23909
23909
|
var t = e, {
|
|
@@ -24158,7 +24158,7 @@ const Om = ({
|
|
|
24158
24158
|
}
|
|
24159
24159
|
o && o.mentions && (N = await yd({
|
|
24160
24160
|
text: N,
|
|
24161
|
-
template: `[${
|
|
24161
|
+
template: `[${to}{{name}}]({{id}})`,
|
|
24162
24162
|
mentions: o.mentions,
|
|
24163
24163
|
listMembers: p || (() => Promise.resolve([]))
|
|
24164
24164
|
})), pE(N, (q) => {
|
|
@@ -24261,7 +24261,7 @@ const Om = ({
|
|
|
24261
24261
|
})(q)) {
|
|
24262
24262
|
let U = q;
|
|
24263
24263
|
if (q) {
|
|
24264
|
-
const { full: ee } =
|
|
24264
|
+
const { full: ee } = bo(q);
|
|
24265
24265
|
U = ee;
|
|
24266
24266
|
}
|
|
24267
24267
|
if (q && v && !N) {
|
|
@@ -24698,7 +24698,7 @@ const w_ = ({ emails: e, setEmails: t, setIsDisabled: n }) => {
|
|
|
24698
24698
|
}
|
|
24699
24699
|
)
|
|
24700
24700
|
] });
|
|
24701
|
-
},
|
|
24701
|
+
}, ys = (e) => e.map((t) => ({ condition: t })), Mt = {
|
|
24702
24702
|
FORM_ID: "manage-account-password-change",
|
|
24703
24703
|
NEW_PASSWORD: "newPassword",
|
|
24704
24704
|
CONFIRMED_PASSWORD: "confirmedPassword",
|
|
@@ -24716,7 +24716,7 @@ const w_ = ({ emails: e, setEmails: t, setIsDisabled: n }) => {
|
|
|
24716
24716
|
autoComplete: "new-password",
|
|
24717
24717
|
placeholder: "",
|
|
24718
24718
|
label: n({ id: "passwordRules_newPassword_label" }),
|
|
24719
|
-
validation:
|
|
24719
|
+
validation: ys(["required", d]),
|
|
24720
24720
|
functions: {
|
|
24721
24721
|
onChange: (p) => l(bl(p).matchingRules),
|
|
24722
24722
|
onFocus: () => s(!0),
|
|
@@ -24730,7 +24730,7 @@ const w_ = ({ emails: e, setEmails: t, setIsDisabled: n }) => {
|
|
|
24730
24730
|
autoComplete: "new-password",
|
|
24731
24731
|
placeholder: "",
|
|
24732
24732
|
label: n({ id: "passwordRules_confirmPassword_label" }),
|
|
24733
|
-
validation:
|
|
24733
|
+
validation: ys(["required", u])
|
|
24734
24734
|
}
|
|
24735
24735
|
];
|
|
24736
24736
|
t.isPasswordChange && m.unshift({
|
|
@@ -24740,7 +24740,7 @@ const w_ = ({ emails: e, setEmails: t, setIsDisabled: n }) => {
|
|
|
24740
24740
|
autoComplete: "current-password",
|
|
24741
24741
|
placeholder: "",
|
|
24742
24742
|
label: n({ id: "passwordRules_currentPassword_label" }),
|
|
24743
|
-
validation:
|
|
24743
|
+
validation: ys(["required"])
|
|
24744
24744
|
}), a && m.push({
|
|
24745
24745
|
component: Yv,
|
|
24746
24746
|
props: { matchingRules: o }
|
|
@@ -24967,7 +24967,7 @@ function __({ coverImage: e, setShowImagePicker: t }) {
|
|
|
24967
24967
|
);
|
|
24968
24968
|
}
|
|
24969
24969
|
var Nm = /* @__PURE__ */ ((e) => (e.CitiesAndLocalGovernment = "topic_CitiesAndLocalGovernment", e.Climate = "topic_Climate", e.DigitalAndData = "topic_DigitalAndData", e.Education = "topic_Education", e.EquityJusticeAndInclusion = "topic_EquityJusticeAndInclusion", e.HealthAndSocialCare = "topic_HealthAndSocialCare", e.Innovation = "topic_Innovation", e.LeadershipAndSkills = "topic_LeadershipAndSkills", e.LifeInGovernment = "topic_LifeInGovernment", e.Policymaking = "topic_Policymaking", e.TransportAndInfrastructure = "topic_TransportAndInfrastructure", e.WorkingAndTheEconomy = "topic_WorkAndTheEconomy", e))(Nm || {});
|
|
24970
|
-
let
|
|
24970
|
+
let xs = null;
|
|
24971
24971
|
const at = "publishArticleForm_", Xc = {}, ed = 10, bF = ({
|
|
24972
24972
|
id: e = "publish-article-form",
|
|
24973
24973
|
values: t = Xc,
|
|
@@ -25029,7 +25029,7 @@ const at = "publishArticleForm_", Xc = {}, ed = 10, bF = ({
|
|
|
25029
25029
|
validation: [{ condition: "required" }, C("subtitle")]
|
|
25030
25030
|
},
|
|
25031
25031
|
{
|
|
25032
|
-
component:
|
|
25032
|
+
component: lo,
|
|
25033
25033
|
props: {
|
|
25034
25034
|
formID: e,
|
|
25035
25035
|
label: {
|
|
@@ -25087,7 +25087,7 @@ const at = "publishArticleForm_", Xc = {}, ed = 10, bF = ({
|
|
|
25087
25087
|
]
|
|
25088
25088
|
},
|
|
25089
25089
|
{
|
|
25090
|
-
component:
|
|
25090
|
+
component: lo,
|
|
25091
25091
|
props: {
|
|
25092
25092
|
formID: e,
|
|
25093
25093
|
label: {
|
|
@@ -25119,14 +25119,14 @@ const at = "publishArticleForm_", Xc = {}, ed = 10, bF = ({
|
|
|
25119
25119
|
onSuccess: async (L) => {
|
|
25120
25120
|
if (!o || !o.id || !_)
|
|
25121
25121
|
return;
|
|
25122
|
-
|
|
25122
|
+
xs && clearTimeout(xs), p(!0);
|
|
25123
25123
|
const O = {
|
|
25124
25124
|
...L,
|
|
25125
25125
|
body: g,
|
|
25126
25126
|
coverImage: t.coverImage
|
|
25127
25127
|
};
|
|
25128
25128
|
try {
|
|
25129
|
-
l && await l(O),
|
|
25129
|
+
l && await l(O), xs = setTimeout(() => {
|
|
25130
25130
|
w(s.formatMessage({ id: `${at}aria_success` })), u(O);
|
|
25131
25131
|
}, 500);
|
|
25132
25132
|
} catch {
|
|
@@ -25682,7 +25682,7 @@ const xF = ({ text: e, buttons: t, className: n = "" }) => {
|
|
|
25682
25682
|
}
|
|
25683
25683
|
);
|
|
25684
25684
|
};
|
|
25685
|
-
const
|
|
25685
|
+
const co = "editSection_";
|
|
25686
25686
|
function Mm({ href: e, setShowModal: t }) {
|
|
25687
25687
|
typeof e != "string" && t(!0);
|
|
25688
25688
|
}
|
|
@@ -25696,7 +25696,7 @@ const j_ = ({
|
|
|
25696
25696
|
}) => {
|
|
25697
25697
|
const { formatMessage: s } = ce();
|
|
25698
25698
|
return /* @__PURE__ */ c.jsxs(Lt, { variant: "muted", icon: e, children: [
|
|
25699
|
-
/* @__PURE__ */ c.jsx("p", { children: t || s({ id: `${
|
|
25699
|
+
/* @__PURE__ */ c.jsx("p", { children: t || s({ id: `${co}placeholder_description` }) }),
|
|
25700
25700
|
i && /* @__PURE__ */ c.jsx("p", { children: /* @__PURE__ */ c.jsx(
|
|
25701
25701
|
Ce,
|
|
25702
25702
|
{
|
|
@@ -25704,7 +25704,7 @@ const j_ = ({
|
|
|
25704
25704
|
variant: "secondary",
|
|
25705
25705
|
size: "small",
|
|
25706
25706
|
onClick: () => Mm({ href: r, setShowModal: a }),
|
|
25707
|
-
children: n || s({ id: `${
|
|
25707
|
+
children: n || s({ id: `${co}placeholder_cta` })
|
|
25708
25708
|
}
|
|
25709
25709
|
) })
|
|
25710
25710
|
] });
|
|
@@ -25780,7 +25780,7 @@ const j_ = ({
|
|
|
25780
25780
|
size: "small",
|
|
25781
25781
|
icon: "pencil",
|
|
25782
25782
|
onClick: () => Mm({ href: i, setShowModal: h }),
|
|
25783
|
-
children: d({ id: `${
|
|
25783
|
+
children: d({ id: `${co}edit` })
|
|
25784
25784
|
}
|
|
25785
25785
|
)
|
|
25786
25786
|
] }),
|
|
@@ -25855,21 +25855,21 @@ const DF = ({
|
|
|
25855
25855
|
}
|
|
25856
25856
|
);
|
|
25857
25857
|
};
|
|
25858
|
-
let
|
|
25859
|
-
const
|
|
25858
|
+
let ws;
|
|
25859
|
+
const Ds = "contactFooter_", CF = ({ onSuccess: e = async () => {
|
|
25860
25860
|
}, onFailure: t = () => {
|
|
25861
25861
|
} }) => {
|
|
25862
25862
|
const n = Se(null), [r, i] = re.useState(0), [a, s] = re.useState(!1), o = () => {
|
|
25863
25863
|
n.current && i(n.current.clientHeight);
|
|
25864
25864
|
}, l = () => {
|
|
25865
|
-
a || (s(!0), clearTimeout(
|
|
25865
|
+
a || (s(!0), clearTimeout(ws), ws = setTimeout(() => {
|
|
25866
25866
|
o(), s(!1);
|
|
25867
25867
|
}, 500));
|
|
25868
25868
|
};
|
|
25869
25869
|
return fe(() => (o(), window.addEventListener("resize", l), () => {
|
|
25870
|
-
clearTimeout(
|
|
25870
|
+
clearTimeout(ws), window.removeEventListener("resize", l);
|
|
25871
25871
|
}), []), /* @__PURE__ */ c.jsx(Yn, { id: "contactForm", className: "contact-footer", children: /* @__PURE__ */ c.jsxs("div", { className: "inner-wrapper", children: [
|
|
25872
|
-
/* @__PURE__ */ c.jsx("h2", { children: /* @__PURE__ */ c.jsx(lt, { id: `${
|
|
25872
|
+
/* @__PURE__ */ c.jsx("h2", { children: /* @__PURE__ */ c.jsx(lt, { id: `${Ds}title` }) }),
|
|
25873
25873
|
/* @__PURE__ */ c.jsxs(
|
|
25874
25874
|
"div",
|
|
25875
25875
|
{
|
|
@@ -25879,8 +25879,8 @@ const Cs = "contactFooter_", CF = ({ onSuccess: e = async () => {
|
|
|
25879
25879
|
style: a ? {} : { minHeight: r },
|
|
25880
25880
|
children: [
|
|
25881
25881
|
/* @__PURE__ */ c.jsxs("aside", { children: [
|
|
25882
|
-
/* @__PURE__ */ c.jsx("p", { children: /* @__PURE__ */ c.jsx(lt, { id: `${
|
|
25883
|
-
/* @__PURE__ */ c.jsx(Kn, { className: "mailto-link", href: "mailto:hello@apolitical.co", children: /* @__PURE__ */ c.jsx(lt, { id: `${
|
|
25882
|
+
/* @__PURE__ */ c.jsx("p", { children: /* @__PURE__ */ c.jsx(lt, { id: `${Ds}text` }) }),
|
|
25883
|
+
/* @__PURE__ */ c.jsx(Kn, { className: "mailto-link", href: "mailto:hello@apolitical.co", children: /* @__PURE__ */ c.jsx(lt, { id: `${Ds}email` }) })
|
|
25884
25884
|
] }),
|
|
25885
25885
|
/* @__PURE__ */ c.jsx(
|
|
25886
25886
|
x_,
|
|
@@ -25897,30 +25897,30 @@ const Cs = "contactFooter_", CF = ({ onSuccess: e = async () => {
|
|
|
25897
25897
|
/* @__PURE__ */ c.jsx(Pv, { activeLink: e, profile: t }),
|
|
25898
25898
|
/* @__PURE__ */ c.jsx(fp, { ...n })
|
|
25899
25899
|
] }) }) });
|
|
25900
|
-
const
|
|
25900
|
+
const Cs = "cookieBanner_", Es = [
|
|
25901
25901
|
"apol-cookie-banner",
|
|
25902
25902
|
"apolitical-performance-cookie-consent",
|
|
25903
25903
|
"functional-cookie-consent"
|
|
25904
|
-
],
|
|
25905
|
-
const e = ce(), [t, n, r] = ud(
|
|
25904
|
+
], _s = new Date(Date.now() + 12 * 30 * 24 * 60 * 60 * 1e3), P_ = () => {
|
|
25905
|
+
const e = ce(), [t, n, r] = ud(Es), [i, a] = se(
|
|
25906
25906
|
!t["apol-cookie-banner"]
|
|
25907
25907
|
), s = () => {
|
|
25908
|
-
|
|
25908
|
+
Es.forEach((d) => {
|
|
25909
25909
|
n(d, !0, {
|
|
25910
25910
|
path: "/",
|
|
25911
|
-
expires:
|
|
25911
|
+
expires: _s,
|
|
25912
25912
|
domain: d === "apolitical-performance-cookie-consent" ? ".apolitical.co" : void 0
|
|
25913
25913
|
});
|
|
25914
25914
|
}), a(!1), window.location.reload();
|
|
25915
25915
|
}, o = () => {
|
|
25916
25916
|
n("apol-cookie-banner", !0, {
|
|
25917
25917
|
path: "/",
|
|
25918
|
-
expires:
|
|
25919
|
-
}),
|
|
25918
|
+
expires: _s
|
|
25919
|
+
}), Es.forEach((d) => {
|
|
25920
25920
|
if (d === "apol-cookie-banner") {
|
|
25921
25921
|
n(d, !0, {
|
|
25922
25922
|
path: "/",
|
|
25923
|
-
expires:
|
|
25923
|
+
expires: _s
|
|
25924
25924
|
});
|
|
25925
25925
|
return;
|
|
25926
25926
|
}
|
|
@@ -25942,11 +25942,11 @@ const Es = "cookieBanner_", _s = [
|
|
|
25942
25942
|
className: "gtm-trackable",
|
|
25943
25943
|
"data-gtm-event-context": "cookie-banner",
|
|
25944
25944
|
"data-gtm-event-type": `cookie-${d.gtmType}-click`,
|
|
25945
|
-
children: e.formatMessage({ id: `${
|
|
25945
|
+
children: e.formatMessage({ id: `${Cs}buttons_${d.id}` })
|
|
25946
25946
|
});
|
|
25947
25947
|
}), /* @__PURE__ */ c.jsxs("aside", { id: "cookie-banner", className: "text-medium", children: [
|
|
25948
|
-
/* @__PURE__ */ c.jsx("h6", { children: e.formatMessage({ id: `${
|
|
25949
|
-
/* @__PURE__ */ c.jsx("p", { children: e.formatMessage({ id: `${
|
|
25948
|
+
/* @__PURE__ */ c.jsx("h6", { children: e.formatMessage({ id: `${Cs}title` }) }),
|
|
25949
|
+
/* @__PURE__ */ c.jsx("p", { children: e.formatMessage({ id: `${Cs}text` }) }),
|
|
25950
25950
|
/* @__PURE__ */ c.jsx(oi, { buttons: u })
|
|
25951
25951
|
] });
|
|
25952
25952
|
}, on = {
|
|
@@ -26108,7 +26108,7 @@ const cr = "footer_", fa = "SiteFooter", nd = ({ group: e }) => {
|
|
|
26108
26108
|
] }, `dl-${e}-${r}`)) })
|
|
26109
26109
|
] }, e);
|
|
26110
26110
|
}, $m = () => /* @__PURE__ */ c.jsx("div", { id: "footer", children: /* @__PURE__ */ c.jsxs("div", { className: "wrapper", children: [
|
|
26111
|
-
/* @__PURE__ */ c.jsx(
|
|
26111
|
+
/* @__PURE__ */ c.jsx(go, { element: "hr" }),
|
|
26112
26112
|
/* @__PURE__ */ c.jsx(
|
|
26113
26113
|
rf,
|
|
26114
26114
|
{
|
|
@@ -26506,7 +26506,7 @@ const O_ = ({ headerIsVisible: e }) => {
|
|
|
26506
26506
|
}
|
|
26507
26507
|
);
|
|
26508
26508
|
};
|
|
26509
|
-
const
|
|
26509
|
+
const ks = { height: 67, height_desktop: 83, additional_message_height: 40 };
|
|
26510
26510
|
var St = /* @__PURE__ */ ((e) => (e.NAVIGATION = "navigation", e.SEARCH = "search", e.ACCOUNT = "account-navigation", e.SITE = "site-navigation", e))(St || {});
|
|
26511
26511
|
const Rm = ({
|
|
26512
26512
|
showNavigation: e = !0,
|
|
@@ -26517,11 +26517,9 @@ const Rm = ({
|
|
|
26517
26517
|
const i = ce(), a = Oe(ut), s = Vn(!0, !0), o = a && typeof a.id == "string", l = en(
|
|
26518
26518
|
() => Ke.getIsDesktopVersion(o, s),
|
|
26519
26519
|
[o, s]
|
|
26520
|
-
), u = np("language-switcher") && n, [d, m] = se(
|
|
26521
|
-
|
|
26522
|
-
|
|
26523
|
-
}, [a]);
|
|
26524
|
-
const [h, p] = Un(si, {
|
|
26520
|
+
), u = np("language-switcher") && n, [d, m] = se(
|
|
26521
|
+
u && t ? a.locale !== "en" : !1
|
|
26522
|
+
), [h, p] = Un(si, {
|
|
26525
26523
|
headerIsVisible: !0,
|
|
26526
26524
|
menus: {
|
|
26527
26525
|
"site-navigation": !1,
|
|
@@ -26536,7 +26534,7 @@ const Rm = ({
|
|
|
26536
26534
|
fe(() => {
|
|
26537
26535
|
v.current = h;
|
|
26538
26536
|
}, [h]), vh({
|
|
26539
|
-
scrollPosition: d ?
|
|
26537
|
+
scrollPosition: d ? ks[`height${l.navigation ? "_desktop" : ""}`] + ks.additional_message_height : ks[`height${l.navigation ? "_desktop" : ""}`],
|
|
26540
26538
|
callbacks: {
|
|
26541
26539
|
scrollUp: () => {
|
|
26542
26540
|
const j = v.current.menus;
|
|
@@ -26896,7 +26894,7 @@ const N_ = () => {
|
|
|
26896
26894
|
}, rd = {
|
|
26897
26895
|
default: "tags_",
|
|
26898
26896
|
headerTopics: "header_topics_topics_"
|
|
26899
|
-
},
|
|
26897
|
+
}, Fs = {
|
|
26900
26898
|
topic: {
|
|
26901
26899
|
Climate: "climate",
|
|
26902
26900
|
CitiesAndLocalGovernment: "cities-and-local-government",
|
|
@@ -26915,13 +26913,13 @@ const N_ = () => {
|
|
|
26915
26913
|
}, $_ = {
|
|
26916
26914
|
getTagDetails: (e) => {
|
|
26917
26915
|
if (e.includes("topic_")) {
|
|
26918
|
-
if (e =
|
|
26916
|
+
if (e = Fs.topic[e.replace("topic_", "")], e) {
|
|
26919
26917
|
const t = ma.topics.topics[e].href;
|
|
26920
26918
|
return t ? { id: e, href: t, text: `${rd.headerTopics}${e}` } : null;
|
|
26921
26919
|
}
|
|
26922
26920
|
return null;
|
|
26923
26921
|
}
|
|
26924
|
-
return
|
|
26922
|
+
return Fs[e] ? (e = Fs[e], { id: e, text: `${rd.default}${e}` }) : null;
|
|
26925
26923
|
}
|
|
26926
26924
|
};
|
|
26927
26925
|
const _F = ({
|
|
@@ -27043,10 +27041,10 @@ const R_ = 25, I_ = ({
|
|
|
27043
27041
|
),
|
|
27044
27042
|
v.isAdmin && /* @__PURE__ */ c.jsx(cn, { children: h.formatMessage({ id: `${p}_admin` }) })
|
|
27045
27043
|
] }, y)),
|
|
27046
|
-
d && e.length === 0 && t > 0 ? [...new Array(Math.min(t, R_))].map((v, y) => /* @__PURE__ */ c.jsx("li", { children: /* @__PURE__ */ c.jsx(
|
|
27044
|
+
d && e.length === 0 && t > 0 ? [...new Array(Math.min(t, R_))].map((v, y) => /* @__PURE__ */ c.jsx("li", { children: /* @__PURE__ */ c.jsx(wo, { layout: "member" }) }, y)) : /* @__PURE__ */ c.jsx(c.Fragment, {})
|
|
27047
27045
|
] }),
|
|
27048
27046
|
i && /* @__PURE__ */ c.jsx(
|
|
27049
|
-
|
|
27047
|
+
ga,
|
|
27050
27048
|
{
|
|
27051
27049
|
hasNextPage: i,
|
|
27052
27050
|
loadNextPage: a,
|
|
@@ -27087,7 +27085,7 @@ const R_ = 25, I_ = ({
|
|
|
27087
27085
|
}, q_ = ({ intlPath: e, type: t, ...n }) => {
|
|
27088
27086
|
const r = ce();
|
|
27089
27087
|
return /* @__PURE__ */ c.jsx(
|
|
27090
|
-
|
|
27088
|
+
lo,
|
|
27091
27089
|
{
|
|
27092
27090
|
label: {
|
|
27093
27091
|
visible: r.formatMessage({ id: `${e}label` }),
|
|
@@ -27119,7 +27117,7 @@ const R_ = 25, I_ = ({
|
|
|
27119
27117
|
};
|
|
27120
27118
|
};
|
|
27121
27119
|
let ir = null;
|
|
27122
|
-
const tt = "discussion_form_",
|
|
27120
|
+
const tt = "discussion_form_", Ea = ({
|
|
27123
27121
|
id: e,
|
|
27124
27122
|
parentId: t,
|
|
27125
27123
|
content: n = { type: Pe.Response, slugs: {} },
|
|
@@ -27541,7 +27539,7 @@ const tt = "discussion_form_", _a = ({
|
|
|
27541
27539
|
] });
|
|
27542
27540
|
}, W_ = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
27543
27541
|
__proto__: null,
|
|
27544
|
-
default:
|
|
27542
|
+
default: Ea
|
|
27545
27543
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
27546
27544
|
const V_ = {
|
|
27547
27545
|
showForm: !1
|
|
@@ -27588,7 +27586,7 @@ function K_({
|
|
|
27588
27586
|
i.pinned && /* @__PURE__ */ c.jsx(cn, { variant: "naked", size: "xlarge", icon: "pin", children: /* @__PURE__ */ c.jsx(Le, { children: l.formatMessage({ id: `${o}pinned_post` }) }) })
|
|
27589
27587
|
] });
|
|
27590
27588
|
}
|
|
27591
|
-
const
|
|
27589
|
+
const As = ({
|
|
27592
27590
|
children: e,
|
|
27593
27591
|
class: t,
|
|
27594
27592
|
...n
|
|
@@ -27603,7 +27601,7 @@ function Z_({ content: e }) {
|
|
|
27603
27601
|
var t;
|
|
27604
27602
|
return !e || !((t = e.categories) != null && t.length) ? /* @__PURE__ */ c.jsx(c.Fragment, {}) : /* @__PURE__ */ c.jsx("ul", { className: "categories-list", children: e.categories.map((n) => !n.slug || !n.name ? /* @__PURE__ */ c.jsx(c.Fragment, {}) : /* @__PURE__ */ c.jsx(cn, { size: "small", element: "li", children: n.name }, n.slug)) });
|
|
27605
27603
|
}
|
|
27606
|
-
var
|
|
27604
|
+
var fo = /* @__PURE__ */ ((e) => (e.Always = "always", e.AfterVoting = "after-voting", e))(fo || {});
|
|
27607
27605
|
const Y_ = (e, t, n) => n === void 0 ? 0 : e.some((i) => i.hasUserVoted) ? t ? e.findIndex((i) => !i.hasUserVoted) : e.findIndex((i) => i.hasUserVoted) : 0, G_ = (e, t, n, r = 0) => {
|
|
27608
27606
|
if (!e)
|
|
27609
27607
|
return { nextElement: null, nextIndex: 0 };
|
|
@@ -27717,7 +27715,7 @@ const J_ = ({ title: e, options: t, settings: n, functions: r }) => {
|
|
|
27717
27715
|
const i = "poll_", a = ce(), s = Oe(ut), {
|
|
27718
27716
|
showRemoveVote: o = !1,
|
|
27719
27717
|
allowMultipleVotes: l = !1,
|
|
27720
|
-
resultsVisibility: u =
|
|
27718
|
+
resultsVisibility: u = fo.AfterVoting
|
|
27721
27719
|
} = n || {}, [d, m] = se(
|
|
27722
27720
|
Y_(t, l, s == null ? void 0 : s.id)
|
|
27723
27721
|
), h = t.reduce((v, y) => v + y.numVotes, 0), p = t.filter((v) => v.hasUserVoted).length, g = t.filter((v) => v.hasUserVoted), f = Re(async (v) => {
|
|
@@ -27757,7 +27755,7 @@ const J_ = ({ title: e, options: t, settings: n, functions: r }) => {
|
|
|
27757
27755
|
option: v,
|
|
27758
27756
|
optionIndex: y,
|
|
27759
27757
|
totalPollVotes: h,
|
|
27760
|
-
showResults: u ==
|
|
27758
|
+
showResults: u == fo.Always || !!p,
|
|
27761
27759
|
allowMultipleVotes: l,
|
|
27762
27760
|
hasVotedOnPoll: !!p,
|
|
27763
27761
|
functions: {
|
|
@@ -27806,14 +27804,14 @@ function ek({
|
|
|
27806
27804
|
{
|
|
27807
27805
|
text: t.postBody,
|
|
27808
27806
|
markdownOptions: {
|
|
27809
|
-
overrides: { a: _l, blockquote: { component:
|
|
27807
|
+
overrides: { a: _l, blockquote: { component: As } }
|
|
27810
27808
|
}
|
|
27811
27809
|
}
|
|
27812
27810
|
) : /* @__PURE__ */ c.jsx(
|
|
27813
27811
|
hr,
|
|
27814
27812
|
{
|
|
27815
27813
|
options: {
|
|
27816
|
-
overrides: { a: _l, blockquote: { component:
|
|
27814
|
+
overrides: { a: _l, blockquote: { component: As } }
|
|
27817
27815
|
},
|
|
27818
27816
|
children: t.postBody
|
|
27819
27817
|
}
|
|
@@ -27828,7 +27826,7 @@ function ek({
|
|
|
27828
27826
|
forceWrapper: r.type === Pe.Question,
|
|
27829
27827
|
forceInline: r.type === Pe.Question,
|
|
27830
27828
|
forceBlock: r.type !== Pe.Question,
|
|
27831
|
-
overrides: { blockquote: { component:
|
|
27829
|
+
overrides: { blockquote: { component: As } }
|
|
27832
27830
|
},
|
|
27833
27831
|
children: t.postBody
|
|
27834
27832
|
}
|
|
@@ -27839,7 +27837,7 @@ function ek({
|
|
|
27839
27837
|
}
|
|
27840
27838
|
const Wt = "discussion_", tk = 195;
|
|
27841
27839
|
let Ni = null;
|
|
27842
|
-
const
|
|
27840
|
+
const _a = ({
|
|
27843
27841
|
element: e = "div",
|
|
27844
27842
|
content: t,
|
|
27845
27843
|
userHasPermissions: n = !0,
|
|
@@ -28047,7 +28045,7 @@ const ka = ({
|
|
|
28047
28045
|
}
|
|
28048
28046
|
),
|
|
28049
28047
|
U.isEditing ? /* @__PURE__ */ c.jsx(
|
|
28050
|
-
|
|
28048
|
+
Ea,
|
|
28051
28049
|
{
|
|
28052
28050
|
id: `editing-${t.slug}`,
|
|
28053
28051
|
content: {
|
|
@@ -28217,7 +28215,7 @@ const ka = ({
|
|
|
28217
28215
|
const nk = wr(
|
|
28218
28216
|
() => Promise.resolve().then(() => yk)
|
|
28219
28217
|
), rk = 65, ik = ({ forceShow: e, form: t, className: n }) => {
|
|
28220
|
-
const r = ce(), i = "discussionFormCard_", a = "DiscardDraftModal", o = Oe(ut) || "community", l =
|
|
28218
|
+
const r = ce(), i = "discussionFormCard_", a = "DiscardDraftModal", o = Oe(ut) || "community", l = Do(o);
|
|
28221
28219
|
l.name || (l.name = r.formatMessage({
|
|
28222
28220
|
id: `member_${typeof o == "string" ? o : "community"}`
|
|
28223
28221
|
}));
|
|
@@ -28386,7 +28384,7 @@ const nk = wr(
|
|
|
28386
28384
|
parentId: n,
|
|
28387
28385
|
categories: r,
|
|
28388
28386
|
membershipRequiredToPost: { isMember: i, required: a, join: s, leave: o, notMemberStateText: l },
|
|
28389
|
-
locale: u =
|
|
28387
|
+
locale: u = _o
|
|
28390
28388
|
}) => {
|
|
28391
28389
|
if (a && !i)
|
|
28392
28390
|
return /* @__PURE__ */ c.jsx(
|
|
@@ -28448,7 +28446,7 @@ const nk = wr(
|
|
|
28448
28446
|
}
|
|
28449
28447
|
);
|
|
28450
28448
|
};
|
|
28451
|
-
const
|
|
28449
|
+
const Ts = "discussion_responses_", sk = ({
|
|
28452
28450
|
type: e = "answer",
|
|
28453
28451
|
responses: t = 0,
|
|
28454
28452
|
isLoading: n = !1
|
|
@@ -28456,10 +28454,10 @@ const Bs = "discussion_responses_", sk = ({
|
|
|
28456
28454
|
const r = ce();
|
|
28457
28455
|
return t = parseInt(t), /* @__PURE__ */ c.jsxs("div", { className: "responses-heading", children: [
|
|
28458
28456
|
/* @__PURE__ */ c.jsx("h4", { children: r.formatMessage(
|
|
28459
|
-
{ id: `${
|
|
28460
|
-
{ action: r.formatMessage({ id: `${
|
|
28457
|
+
{ id: `${Ts}title` },
|
|
28458
|
+
{ action: r.formatMessage({ id: `${Ts}${e}` }), count: t }
|
|
28461
28459
|
) }),
|
|
28462
|
-
!n && t === 0 && /* @__PURE__ */ c.jsx("p", { children: Vt(r.formatMessage, `${
|
|
28460
|
+
!n && t === 0 && /* @__PURE__ */ c.jsx("p", { children: Vt(r.formatMessage, `${Ts}empty`, e, e) })
|
|
28463
28461
|
] });
|
|
28464
28462
|
};
|
|
28465
28463
|
const ok = ({
|
|
@@ -28495,7 +28493,7 @@ const ok = ({
|
|
|
28495
28493
|
children: [
|
|
28496
28494
|
!Object.is(o, null) && /* @__PURE__ */ c.jsx("ul", { className: "thread", children: o }),
|
|
28497
28495
|
!e && /* @__PURE__ */ c.jsx(
|
|
28498
|
-
|
|
28496
|
+
ga,
|
|
28499
28497
|
{
|
|
28500
28498
|
hasNextPage: t,
|
|
28501
28499
|
loadNextPage: n,
|
|
@@ -28508,7 +28506,7 @@ const ok = ({
|
|
|
28508
28506
|
}
|
|
28509
28507
|
}
|
|
28510
28508
|
),
|
|
28511
|
-
r && s.showForm && /* @__PURE__ */ c.jsx(
|
|
28509
|
+
r && s.showForm && /* @__PURE__ */ c.jsx(Ea, { ...r })
|
|
28512
28510
|
]
|
|
28513
28511
|
}
|
|
28514
28512
|
);
|
|
@@ -28615,7 +28613,7 @@ function pk({
|
|
|
28615
28613
|
queryFns: { read: e, edit: t, like: n, unlike: r, pin: i, unpin: a, createVote: s, removeVote: o },
|
|
28616
28614
|
queryKey: l
|
|
28617
28615
|
}) {
|
|
28618
|
-
const u =
|
|
28616
|
+
const u = ho(), d = xo(), m = { queryClient: u, queryKey: l }, h = {
|
|
28619
28617
|
mutationHandlers: {
|
|
28620
28618
|
error: ko(m),
|
|
28621
28619
|
mutate: Fo(m)
|
|
@@ -28685,7 +28683,7 @@ const kF = ({
|
|
|
28685
28683
|
},
|
|
28686
28684
|
profile: p,
|
|
28687
28685
|
categories: g,
|
|
28688
|
-
locale: f =
|
|
28686
|
+
locale: f = _o
|
|
28689
28687
|
}) => {
|
|
28690
28688
|
var z, A, S, $, N, q, J, U, ee, me, Q, ye;
|
|
28691
28689
|
const b = ce(), v = {
|
|
@@ -28725,7 +28723,7 @@ const kF = ({
|
|
|
28725
28723
|
}) : !1, Z = y == null ? void 0 : y.actor;
|
|
28726
28724
|
return /* @__PURE__ */ c.jsxs("section", { className: "activity-section", children: [
|
|
28727
28725
|
/* @__PURE__ */ c.jsx(
|
|
28728
|
-
|
|
28726
|
+
_a,
|
|
28729
28727
|
{
|
|
28730
28728
|
className: "highlighted-text-box subtle",
|
|
28731
28729
|
isCommunity: !0,
|
|
@@ -28862,7 +28860,7 @@ const bk = ({
|
|
|
28862
28860
|
},
|
|
28863
28861
|
className: H("discussion-form-modal", i),
|
|
28864
28862
|
children: /* @__PURE__ */ c.jsx(
|
|
28865
|
-
|
|
28863
|
+
Ea,
|
|
28866
28864
|
{
|
|
28867
28865
|
...n,
|
|
28868
28866
|
data: { ...u, mentions: g || (u == null ? void 0 : u.mentions) },
|
|
@@ -29467,7 +29465,7 @@ const MF = ({
|
|
|
29467
29465
|
startDate: d
|
|
29468
29466
|
} = t;
|
|
29469
29467
|
if (e === "question") {
|
|
29470
|
-
const m = i &&
|
|
29468
|
+
const m = i && Os(i);
|
|
29471
29469
|
return /* @__PURE__ */ c.jsxs("p", { className: "details answers", "data-testid": "question-answers", children: [
|
|
29472
29470
|
n.formatMessage({ id: "card_answers" }, { number: r }),
|
|
29473
29471
|
i && /* @__PURE__ */ c.jsxs("span", { "data-testid": "question-created-at", children: [
|
|
@@ -29499,7 +29497,7 @@ const MF = ({
|
|
|
29499
29497
|
}
|
|
29500
29498
|
);
|
|
29501
29499
|
if (l || u) {
|
|
29502
|
-
const m = u &&
|
|
29500
|
+
const m = u && Os(u);
|
|
29503
29501
|
return /* @__PURE__ */ c.jsxs("ul", { className: "details", children: [
|
|
29504
29502
|
l && /* @__PURE__ */ c.jsx("li", { "data-testid": "reading-time", children: n.formatMessage({ id: "card_time_read" }, { time: l }) }),
|
|
29505
29503
|
u && /* @__PURE__ */ c.jsx("li", { "data-testid": "published-date", children: n.formatMessage(
|
|
@@ -29903,12 +29901,12 @@ const Bk = ({ cards: e, cardTypes: t, className: n = "", ...r }) => /* @__PURE__
|
|
|
29903
29901
|
] })
|
|
29904
29902
|
});
|
|
29905
29903
|
};
|
|
29906
|
-
const
|
|
29904
|
+
const Bs = {
|
|
29907
29905
|
fourCards: 1024,
|
|
29908
29906
|
threeCards: 769,
|
|
29909
29907
|
twoCards: 480
|
|
29910
29908
|
};
|
|
29911
|
-
let Mi = null,
|
|
29909
|
+
let Mi = null, Ss = null;
|
|
29912
29910
|
const Pk = ({
|
|
29913
29911
|
id: e,
|
|
29914
29912
|
cards: t,
|
|
@@ -29928,14 +29926,14 @@ const Pk = ({
|
|
|
29928
29926
|
}), { currentPage: b, loadedPages: v } = g, [y, w] = se(""), E = t.length, C = Math.ceil(E / h), _ = Se(null), T = Vn(!0, !0, _ == null ? void 0 : _.current);
|
|
29929
29927
|
fe(() => {
|
|
29930
29928
|
let k = 1;
|
|
29931
|
-
T && (T >=
|
|
29929
|
+
T && (T >= Bs.fourCards ? k = 4 : T >= Bs.threeCards ? k = 3 : T >= Bs.twoCards && (k = 2), k > E && (k = E)), m((B) => ({
|
|
29932
29930
|
...B,
|
|
29933
29931
|
cardsPerPage: k,
|
|
29934
29932
|
isLoading: !1
|
|
29935
29933
|
}));
|
|
29936
29934
|
}, [T, E]);
|
|
29937
29935
|
const j = (k = "next") => {
|
|
29938
|
-
|
|
29936
|
+
Ss && clearTimeout(Ss);
|
|
29939
29937
|
let B = b;
|
|
29940
29938
|
if (typeof k == "string")
|
|
29941
29939
|
if (k === "next")
|
|
@@ -29958,7 +29956,7 @@ const Pk = ({
|
|
|
29958
29956
|
const V = B * d.cardsPerPage, W = V + d.cardsPerPage;
|
|
29959
29957
|
return t.slice(V, W).length;
|
|
29960
29958
|
};
|
|
29961
|
-
|
|
29959
|
+
Ss = setTimeout(() => {
|
|
29962
29960
|
w(
|
|
29963
29961
|
l.formatMessage(
|
|
29964
29962
|
{
|
|
@@ -29988,7 +29986,7 @@ const Pk = ({
|
|
|
29988
29986
|
"--page": b
|
|
29989
29987
|
};
|
|
29990
29988
|
if (p)
|
|
29991
|
-
return /* @__PURE__ */ c.jsx(
|
|
29989
|
+
return /* @__PURE__ */ c.jsx(wo, { layout: `carousel${i ? "-with-title" : ""}` });
|
|
29992
29990
|
const F = (k, B) => {
|
|
29993
29991
|
var V;
|
|
29994
29992
|
let M = null;
|
|
@@ -30112,7 +30110,7 @@ const Pk = ({
|
|
|
30112
30110
|
const d = a ? window.btoa(a) : `carousel-${u}`, m = u === e.length - 1;
|
|
30113
30111
|
return t ? /* @__PURE__ */ c.jsxs(Kr, { children: [
|
|
30114
30112
|
/* @__PURE__ */ c.jsx(
|
|
30115
|
-
|
|
30113
|
+
wo,
|
|
30116
30114
|
{
|
|
30117
30115
|
layout: `carousel${a ? "-with-title" : ""}`,
|
|
30118
30116
|
"data-testid": "carousel-placeholder"
|
|
@@ -30240,7 +30238,7 @@ const Nk = ({
|
|
|
30240
30238
|
type: i,
|
|
30241
30239
|
children: a
|
|
30242
30240
|
}) => {
|
|
30243
|
-
const s = ce(), o =
|
|
30241
|
+
const s = ce(), o = vo(`lessonType_${i}`) ? s.formatMessage({ id: `lessonType_${i}` }) : wh(i || "");
|
|
30244
30242
|
return /* @__PURE__ */ c.jsxs("small", { className: H("content-type", { [e]: e !== "default" }), children: [
|
|
30245
30243
|
/* @__PURE__ */ c.jsx("span", { className: H("type", n), children: o }),
|
|
30246
30244
|
" ",
|
|
@@ -30266,7 +30264,7 @@ const LF = ({
|
|
|
30266
30264
|
}) => {
|
|
30267
30265
|
const m = ce(), h = "courseStructure_", p = u.toLowerCase().includes("course conclusion");
|
|
30268
30266
|
return /* @__PURE__ */ c.jsxs(
|
|
30269
|
-
|
|
30267
|
+
yo,
|
|
30270
30268
|
{
|
|
30271
30269
|
className: "course-structure",
|
|
30272
30270
|
label: /* @__PURE__ */ c.jsxs(c.Fragment, { children: [
|
|
@@ -30492,7 +30490,7 @@ export {
|
|
|
30492
30490
|
$F as Carousel,
|
|
30493
30491
|
af as CharacterLimit,
|
|
30494
30492
|
sf as Checkbox,
|
|
30495
|
-
|
|
30493
|
+
yo as CollapsibleSection,
|
|
30496
30494
|
$v as Columns,
|
|
30497
30495
|
oF as CommunityDetails,
|
|
30498
30496
|
yp as ConnectionCta,
|
|
@@ -30512,10 +30510,10 @@ export {
|
|
|
30512
30510
|
AF as Directory,
|
|
30513
30511
|
Pe as DiscussionContentType,
|
|
30514
30512
|
H_ as DiscussionConversation,
|
|
30515
|
-
|
|
30513
|
+
Ea as DiscussionForm,
|
|
30516
30514
|
ik as DiscussionFormCard,
|
|
30517
30515
|
bk as DiscussionFormModal,
|
|
30518
|
-
|
|
30516
|
+
_a as DiscussionPost,
|
|
30519
30517
|
ok as DiscussionThread,
|
|
30520
30518
|
nn as Divider,
|
|
30521
30519
|
xF as DownloadSection,
|
|
@@ -30536,7 +30534,7 @@ export {
|
|
|
30536
30534
|
sF as GlobalProviders,
|
|
30537
30535
|
Rm as Header,
|
|
30538
30536
|
Wh as HelperTextBox,
|
|
30539
|
-
|
|
30537
|
+
go as HiddenFromScreenReaders,
|
|
30540
30538
|
Vh as HideShowTextBox,
|
|
30541
30539
|
NF as HighlightSection,
|
|
30542
30540
|
Lt as HighlightedTextBox,
|
|
@@ -30547,7 +30545,7 @@ export {
|
|
|
30547
30545
|
D_ as InviteForm,
|
|
30548
30546
|
FF as InviteModal,
|
|
30549
30547
|
Wd as JoinButton,
|
|
30550
|
-
|
|
30548
|
+
lo as Label,
|
|
30551
30549
|
Ed as LanguageContext,
|
|
30552
30550
|
fF as LanguageSwitcher,
|
|
30553
30551
|
Ok as LessonName,
|
|
@@ -30556,10 +30554,10 @@ export {
|
|
|
30556
30554
|
Dv as LikesFeed,
|
|
30557
30555
|
Cv as LikesModal,
|
|
30558
30556
|
Kn as Link,
|
|
30559
|
-
|
|
30557
|
+
ga as LoadMore,
|
|
30560
30558
|
Dp as LoadingBlock,
|
|
30561
30559
|
Zt as LoadingPlaceholder,
|
|
30562
|
-
|
|
30560
|
+
wo as LoadingState,
|
|
30563
30561
|
rf as Logo,
|
|
30564
30562
|
DF as LogoSection,
|
|
30565
30563
|
R_ as MEMBERS_PER_PAGE,
|
|
@@ -30571,7 +30569,7 @@ export {
|
|
|
30571
30569
|
_n as Member,
|
|
30572
30570
|
L_ as MembersList,
|
|
30573
30571
|
jd as Modal,
|
|
30574
|
-
|
|
30572
|
+
Ls as MoreMenu,
|
|
30575
30573
|
Xk as NUMBER_OF_COUNTRIES,
|
|
30576
30574
|
Jk as NUMBER_OF_USERS,
|
|
30577
30575
|
RF as NarrowCard,
|
|
@@ -30601,7 +30599,7 @@ export {
|
|
|
30601
30599
|
yv as RepliesFeed,
|
|
30602
30600
|
sk as ResponsesHeading,
|
|
30603
30601
|
Hn as ResponsiveImage,
|
|
30604
|
-
|
|
30602
|
+
fo as ResultsVisibility,
|
|
30605
30603
|
rF as ReturnToNavButton,
|
|
30606
30604
|
Om as RichTextEditor,
|
|
30607
30605
|
k_ as SearchForm,
|
|
@@ -30626,14 +30624,14 @@ export {
|
|
|
30626
30624
|
_g as addAriaProps,
|
|
30627
30625
|
si as basicReducer,
|
|
30628
30626
|
yh as camelCaseToDashCase,
|
|
30629
|
-
|
|
30627
|
+
vo as checkIntlPathExists,
|
|
30630
30628
|
ef as enrichPostCategories,
|
|
30631
|
-
|
|
30629
|
+
ys as generateConditions,
|
|
30632
30630
|
eF as generateCssIcon,
|
|
30633
30631
|
ci as getAuthorData,
|
|
30634
30632
|
Rv as getCharacterLimitProps,
|
|
30635
30633
|
bd as getLongDate,
|
|
30636
|
-
|
|
30634
|
+
Do as getMember,
|
|
30637
30635
|
Xd as getPostBody,
|
|
30638
30636
|
Eh as getShortDate,
|
|
30639
30637
|
jo as getValueLength,
|
|
@@ -30643,7 +30641,7 @@ export {
|
|
|
30643
30641
|
Oh as pageReady,
|
|
30644
30642
|
bl as passwordValidator,
|
|
30645
30643
|
uF as repliesFeedMock,
|
|
30646
|
-
|
|
30644
|
+
Sa as supportedLanguages,
|
|
30647
30645
|
xh as toCamelCase,
|
|
30648
30646
|
Qk as toCapitalisedCase,
|
|
30649
30647
|
wh as toSentenceCase,
|
|
@@ -30657,5 +30655,5 @@ export {
|
|
|
30657
30655
|
vh as useScrollListener,
|
|
30658
30656
|
hd as useScrollToHash,
|
|
30659
30657
|
pd as useTooltips,
|
|
30660
|
-
|
|
30658
|
+
xo as useUser
|
|
30661
30659
|
};
|