@apolitical/component-library 5.2.0-jc.9 → 5.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.js +1 -1
- package/index.mjs +405 -405
- package/package.json +1 -1
package/index.mjs
CHANGED
|
@@ -1,23 +1,23 @@
|
|
|
1
|
-
import re, { memo as Jt, useState as ue, useEffect as ce, useRef as Fe, useMemo as Zt, forwardRef as Ys, Children as vs, createContext as Et, useContext as Ie, useCallback as Re, lazy as dr, useReducer as fr, useLayoutEffect as
|
|
1
|
+
import re, { memo as Jt, useState as ue, useEffect as ce, useRef as Fe, useMemo as Zt, forwardRef as Ys, Children as vs, createContext as Et, useContext as Ie, useCallback as Re, lazy as dr, useReducer as fr, useLayoutEffect as mh, Component as ph, Fragment as Ir, Suspense as Tc } from "react";
|
|
2
2
|
import { useIntl as le, FormattedMessage as ct, IntlProvider as gh, createIntl as vh } from "react-intl";
|
|
3
3
|
import Bn from "lodash.clonedeep";
|
|
4
4
|
import bh from "lodash.set";
|
|
5
|
-
import
|
|
5
|
+
import Sc from "react-dom";
|
|
6
6
|
import Yt from "markdown-to-jsx";
|
|
7
7
|
import ir from "truncate";
|
|
8
8
|
import { QueryClient as yh, QueryClientProvider as Dh, useMutation as ut, useQueryClient as Gs, useInfiniteQuery as Qs, useQuery as xh } from "@tanstack/react-query";
|
|
9
9
|
import { ReactQueryDevtools as wh } from "@tanstack/react-query-devtools";
|
|
10
10
|
import Ei from "posthog-js";
|
|
11
|
-
import { CookiesProvider as Ch, useCookies as
|
|
11
|
+
import { CookiesProvider as Ch, useCookies as jc } from "react-cookie";
|
|
12
12
|
import bs from "lodash.isequal";
|
|
13
13
|
import { ReactMultiEmail as Eh } from "react-multi-email";
|
|
14
|
-
import
|
|
14
|
+
import Oc from "lodash.get";
|
|
15
15
|
import { ErrorBoundary as _h } from "react-error-boundary";
|
|
16
16
|
var ei = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
17
17
|
function Rn(e) {
|
|
18
18
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
19
19
|
}
|
|
20
|
-
function
|
|
20
|
+
function Pc(e) {
|
|
21
21
|
if (e.__esModule)
|
|
22
22
|
return e;
|
|
23
23
|
var t = e.default;
|
|
@@ -38,7 +38,7 @@ function Oc(e) {
|
|
|
38
38
|
});
|
|
39
39
|
}), n;
|
|
40
40
|
}
|
|
41
|
-
var
|
|
41
|
+
var Nc = { exports: {} };
|
|
42
42
|
/*!
|
|
43
43
|
Copyright (c) 2018 Jed Watson.
|
|
44
44
|
Licensed under the MIT License (MIT), see
|
|
@@ -73,8 +73,8 @@ var Pc = { exports: {} };
|
|
|
73
73
|
}
|
|
74
74
|
e.exports ? (n.default = n, e.exports = n) : window.classNames = n;
|
|
75
75
|
})();
|
|
76
|
-
})(
|
|
77
|
-
var kh =
|
|
76
|
+
})(Nc);
|
|
77
|
+
var kh = Nc.exports;
|
|
78
78
|
const V = /* @__PURE__ */ Rn(kh), Fh = ({
|
|
79
79
|
element: e = "span",
|
|
80
80
|
showOnFocus: t = !0,
|
|
@@ -582,7 +582,7 @@ Check the render method of \`` + P + "`.";
|
|
|
582
582
|
return "";
|
|
583
583
|
}
|
|
584
584
|
}
|
|
585
|
-
function
|
|
585
|
+
function sh(P) {
|
|
586
586
|
{
|
|
587
587
|
if (P !== void 0) {
|
|
588
588
|
var ae = P.fileName.replace(/^.*[\\\/]/, ""), fe = P.lineNumber;
|
|
@@ -594,7 +594,7 @@ Check your code at ` + ae + ":" + fe + ".";
|
|
|
594
594
|
}
|
|
595
595
|
}
|
|
596
596
|
var qo = {};
|
|
597
|
-
function
|
|
597
|
+
function oh(P) {
|
|
598
598
|
{
|
|
599
599
|
var ae = zo();
|
|
600
600
|
if (!ae) {
|
|
@@ -611,7 +611,7 @@ Check the top-level render call using <` + fe + ">.");
|
|
|
611
611
|
if (!P._store || P._store.validated || P.key != null)
|
|
612
612
|
return;
|
|
613
613
|
P._store.validated = !0;
|
|
614
|
-
var fe =
|
|
614
|
+
var fe = oh(ae);
|
|
615
615
|
if (qo[fe])
|
|
616
616
|
return;
|
|
617
617
|
qo[fe] = !0;
|
|
@@ -638,7 +638,7 @@ Check the top-level render call using <` + fe + ">.");
|
|
|
638
638
|
}
|
|
639
639
|
}
|
|
640
640
|
}
|
|
641
|
-
function
|
|
641
|
+
function uh(P) {
|
|
642
642
|
{
|
|
643
643
|
var ae = P.type;
|
|
644
644
|
if (ae == null || typeof ae == "string")
|
|
@@ -663,7 +663,7 @@ Check the top-level render call using <` + fe + ">.");
|
|
|
663
663
|
typeof ae.getDefaultProps == "function" && !ae.getDefaultProps.isReactClassApproved && x("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
|
|
664
664
|
}
|
|
665
665
|
}
|
|
666
|
-
function
|
|
666
|
+
function lh(P) {
|
|
667
667
|
{
|
|
668
668
|
for (var ae = Object.keys(P.props), fe = 0; fe < ae.length; fe++) {
|
|
669
669
|
var we = ae[fe];
|
|
@@ -681,7 +681,7 @@ Check the top-level render call using <` + fe + ">.");
|
|
|
681
681
|
if (!Oe) {
|
|
682
682
|
var je = "";
|
|
683
683
|
(P === void 0 || typeof P == "object" && P !== null && Object.keys(P).length === 0) && (je += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
|
|
684
|
-
var ft =
|
|
684
|
+
var ft = sh($e);
|
|
685
685
|
ft ? je += ft : je += zo();
|
|
686
686
|
var et;
|
|
687
687
|
P === null ? et = "null" : Ce(P) ? et = "array" : P !== void 0 && P.$$typeof === t ? (et = "<" + (C(P.type) || "Unknown") + " />", je = " Did you accidentally export a JSX literal instead of a component?") : et = typeof P, x("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", et, je);
|
|
@@ -702,17 +702,17 @@ Check the top-level render call using <` + fe + ">.");
|
|
|
702
702
|
else
|
|
703
703
|
Uo(jt, P);
|
|
704
704
|
}
|
|
705
|
-
return P === r ?
|
|
705
|
+
return P === r ? lh(nt) : uh(nt), nt;
|
|
706
706
|
}
|
|
707
707
|
}
|
|
708
|
-
function
|
|
708
|
+
function ch(P, ae, fe) {
|
|
709
709
|
return Ho(P, ae, fe, !0);
|
|
710
710
|
}
|
|
711
|
-
function
|
|
711
|
+
function dh(P, ae, fe) {
|
|
712
712
|
return Ho(P, ae, fe, !1);
|
|
713
713
|
}
|
|
714
|
-
var
|
|
715
|
-
yr.Fragment = r, yr.jsx =
|
|
714
|
+
var fh = dh, hh = ch;
|
|
715
|
+
yr.Fragment = r, yr.jsx = fh, yr.jsxs = hh;
|
|
716
716
|
}()), yr;
|
|
717
717
|
}
|
|
718
718
|
process.env.NODE_ENV === "production" ? ys.exports = Bh() : ys.exports = Th();
|
|
@@ -731,7 +731,7 @@ const Sh = () => {
|
|
|
731
731
|
n.current ? e() : n.current = !0;
|
|
732
732
|
}, t);
|
|
733
733
|
};
|
|
734
|
-
function
|
|
734
|
+
function Mc(e, t, n) {
|
|
735
735
|
var r = this, i = Fe(null), a = Fe(0), s = Fe(null), o = Fe([]), l = Fe(), u = Fe(), d = Fe(e), h = Fe(!0);
|
|
736
736
|
d.current = e;
|
|
737
737
|
var m = typeof window < "u", p = !t && t !== 0 && m;
|
|
@@ -787,9 +787,9 @@ function Nc(e, t, n) {
|
|
|
787
787
|
}, [g, b, t, x, f, p, m, v]);
|
|
788
788
|
return k;
|
|
789
789
|
}
|
|
790
|
-
function
|
|
790
|
+
function Rc(e, t, n) {
|
|
791
791
|
var r = n === void 0 ? {} : n, i = r.leading, a = r.trailing;
|
|
792
|
-
return
|
|
792
|
+
return Mc(e, t, { maxWait: t, leading: i === void 0 || i, trailing: a === void 0 || a });
|
|
793
793
|
}
|
|
794
794
|
let ba;
|
|
795
795
|
const hr = (e = !0, t = !1, n = "window") => {
|
|
@@ -808,7 +808,7 @@ const hr = (e = !0, t = !1, n = "window") => {
|
|
|
808
808
|
}, l = ({ detail: d }) => {
|
|
809
809
|
const { id: h } = d;
|
|
810
810
|
n === "window" || !n.closest(`#${h}`) || s() === r || o();
|
|
811
|
-
}, u =
|
|
811
|
+
}, u = Rc(
|
|
812
812
|
() => {
|
|
813
813
|
s() !== r && (t && (clearTimeout(ba), document.body.classList.add("is-resizing"), ba = setTimeout(() => {
|
|
814
814
|
document.body.classList.remove("is-resizing");
|
|
@@ -848,11 +848,11 @@ const hr = (e = !0, t = !1, n = "window") => {
|
|
|
848
848
|
return;
|
|
849
849
|
}
|
|
850
850
|
Math.abs(m) >= t.up && !s.scrollUp && (r(), o({ scrollUp: !0, scrollDown: !1 }));
|
|
851
|
-
}, u =
|
|
851
|
+
}, u = Rc(() => {
|
|
852
852
|
l();
|
|
853
853
|
}, 250);
|
|
854
854
|
return i;
|
|
855
|
-
},
|
|
855
|
+
}, Ic = (e = [], t = !0) => {
|
|
856
856
|
e = Array.isArray(e) ? e : [e];
|
|
857
857
|
const n = Fe(!1);
|
|
858
858
|
$r(() => {
|
|
@@ -863,7 +863,7 @@ const hr = (e = !0, t = !1, n = "window") => {
|
|
|
863
863
|
r && (r.scrollIntoView(t ? { behavior: "smooth" } : null), n.current = !0);
|
|
864
864
|
}
|
|
865
865
|
}, e);
|
|
866
|
-
},
|
|
866
|
+
}, $c = (e = !1) => {
|
|
867
867
|
if (!e)
|
|
868
868
|
return { showTooltip: !1, tooltipProps: {} };
|
|
869
869
|
const [t, n] = ue(!1);
|
|
@@ -950,13 +950,13 @@ const Yo = {}, mr = Ys(
|
|
|
950
950
|
return t.forEach(({ type: r, value: i }) => {
|
|
951
951
|
bh(n, r, i);
|
|
952
952
|
}), n;
|
|
953
|
-
},
|
|
953
|
+
}, Lc = (e) => {
|
|
954
954
|
const t = [];
|
|
955
955
|
return e.forEach((n) => {
|
|
956
956
|
const r = parseInt(n);
|
|
957
957
|
isNaN(r) || t.push(r);
|
|
958
958
|
}), t.sort((n, r) => n - r);
|
|
959
|
-
},
|
|
959
|
+
}, zc = (e, t, n) => {
|
|
960
960
|
let r = n.mobile;
|
|
961
961
|
for (const i in t) {
|
|
962
962
|
const a = parseInt(String(t[i]));
|
|
@@ -994,7 +994,7 @@ const Fn = {
|
|
|
994
994
|
weeks: 52,
|
|
995
995
|
days: 365
|
|
996
996
|
}
|
|
997
|
-
}, Ih = (e, t = "en") => new Date(e).toLocaleString(t, { day: "numeric", month: "short" }),
|
|
997
|
+
}, Ih = (e, t = "en") => new Date(e).toLocaleString(t, { day: "numeric", month: "short" }), qc = (e, t = "en") => new Date(e).toLocaleString(t, {
|
|
998
998
|
weekday: "long",
|
|
999
999
|
day: "numeric",
|
|
1000
1000
|
month: "short",
|
|
@@ -1605,7 +1605,7 @@ Thank you for helping to protect the Apolitical community from abusive content.`
|
|
|
1605
1605
|
return u != null && u !== "";
|
|
1606
1606
|
}), r = ((a = e.image) == null ? void 0 : a.thumbnail) !== void 0, i = ((s = e.location) == null ? void 0 : s.en) !== void 0 || ((o = e.location) == null ? void 0 : o.country) !== void 0;
|
|
1607
1607
|
return n && r && i;
|
|
1608
|
-
}, Gh = (e, t, n) => !t.id || !t.name ? "" : t.error ? n.replace(/{{name}}/g, Oi).replace(/{{id}}/g, Oi) : n.replace(/{{name}}/g, t.name).replace(/{{id}}/g, t.id),
|
|
1608
|
+
}, Gh = (e, t, n) => !t.id || !t.name ? "" : t.error ? n.replace(/{{name}}/g, Oi).replace(/{{id}}/g, Oi) : n.replace(/{{name}}/g, t.name).replace(/{{id}}/g, t.id), Wc = async ({
|
|
1609
1609
|
text: e,
|
|
1610
1610
|
template: t,
|
|
1611
1611
|
mentions: n,
|
|
@@ -1643,10 +1643,10 @@ Thank you for helping to protect the Apolitical community from abusive content.`
|
|
|
1643
1643
|
e = e.replace(s, u.name ? Gh(e, u, t) : s);
|
|
1644
1644
|
}
|
|
1645
1645
|
return e;
|
|
1646
|
-
},
|
|
1646
|
+
}, Uc = (e) => {
|
|
1647
1647
|
const t = e.startsWith("http") ? e : `https://${e}`, r = new URL(t).hostname;
|
|
1648
1648
|
return { full: t, pretty: r };
|
|
1649
|
-
},
|
|
1649
|
+
}, Hc = (e) => new URLSearchParams(window.location.search).get(e), Qo = (e = "") => e.replace(/\s+/g, "").length > 0, Jo = (e) => {
|
|
1650
1650
|
const t = e.length > 8, n = /[0-9]/.test(e) && /[`!@#$%^&*()_+\-=[\]{}£;':"\\|,.<>/?~]/.test(e), r = new RegExp("^(?=.*?[A-Z])(?=.*?[a-z])").test(
|
|
1651
1651
|
e
|
|
1652
1652
|
);
|
|
@@ -1674,10 +1674,10 @@ const Te = ({
|
|
|
1674
1674
|
children: h = !1,
|
|
1675
1675
|
...m
|
|
1676
1676
|
}) => {
|
|
1677
|
-
const g = hr(typeof t == "object"), { showTooltip: f, tooltipProps: b } =
|
|
1677
|
+
const g = hr(typeof t == "object"), { showTooltip: f, tooltipProps: b } = $c(!!u);
|
|
1678
1678
|
if (typeof t == "object" && typeof g == "number") {
|
|
1679
|
-
const E = Object.assign({}, t), w =
|
|
1680
|
-
t =
|
|
1679
|
+
const E = Object.assign({}, t), w = Lc(Object.keys(E));
|
|
1680
|
+
t = zc(g, w, E);
|
|
1681
1681
|
}
|
|
1682
1682
|
!l && u && (u = "");
|
|
1683
1683
|
const v = [];
|
|
@@ -1935,7 +1935,7 @@ const Xh = Ys(
|
|
|
1935
1935
|
), Gr = ({
|
|
1936
1936
|
parent: e = document.body,
|
|
1937
1937
|
children: t
|
|
1938
|
-
}) => typeof document == "object" ?
|
|
1938
|
+
}) => typeof document == "object" ? Sc.createPortal(t, e) : null, em = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1939
1939
|
__proto__: null,
|
|
1940
1940
|
default: Gr
|
|
1941
1941
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
@@ -2139,8 +2139,8 @@ const $n = ({
|
|
|
2139
2139
|
let i = n && !!Object.keys(n).length;
|
|
2140
2140
|
const a = typeof n == "object" && "breakpoints" in n, s = hr(a);
|
|
2141
2141
|
if (a && typeof n == "object" && typeof s == "number") {
|
|
2142
|
-
const h = Object.assign({}, n.breakpoints), m =
|
|
2143
|
-
i =
|
|
2142
|
+
const h = Object.assign({}, n.breakpoints), m = Lc(Object.keys(h));
|
|
2143
|
+
i = zc(s, m, h);
|
|
2144
2144
|
}
|
|
2145
2145
|
const {
|
|
2146
2146
|
breakpoints: o,
|
|
@@ -2167,9 +2167,9 @@ const $n = ({
|
|
|
2167
2167
|
}
|
|
2168
2168
|
);
|
|
2169
2169
|
};
|
|
2170
|
-
const xs = ({ children: e, ...t }) => /* @__PURE__ */ c.jsx("p", { ...t, children: e }),
|
|
2170
|
+
const xs = ({ children: e, ...t }) => /* @__PURE__ */ c.jsx("p", { ...t, children: e }), Vc = { q: xs, blockquote: xs };
|
|
2171
2171
|
for (let e = 1; e <= 6; e++)
|
|
2172
|
-
|
|
2172
|
+
Vc[`h${e}`] = { component: xs, props: { className: "title" } };
|
|
2173
2173
|
const im = ({
|
|
2174
2174
|
type: e = "default",
|
|
2175
2175
|
className: t = "",
|
|
@@ -2184,7 +2184,7 @@ const im = ({
|
|
|
2184
2184
|
options: {
|
|
2185
2185
|
wrapper: re.Fragment,
|
|
2186
2186
|
forceBlock: !0,
|
|
2187
|
-
overrides:
|
|
2187
|
+
overrides: Vc
|
|
2188
2188
|
},
|
|
2189
2189
|
children: r
|
|
2190
2190
|
}
|
|
@@ -2487,7 +2487,7 @@ const bn = ({
|
|
|
2487
2487
|
}) => {
|
|
2488
2488
|
const l = {
|
|
2489
2489
|
"--icon": `url(${an}icons/${r}.svg)`
|
|
2490
|
-
}, { showTooltip: u, tooltipProps: d } =
|
|
2490
|
+
}, { showTooltip: u, tooltipProps: d } = $c(!!i), h = re.createElement(s, {
|
|
2491
2491
|
className: V("pill", e, t, n, {
|
|
2492
2492
|
"has-icon": r
|
|
2493
2493
|
}),
|
|
@@ -2521,14 +2521,14 @@ const Mi = ({
|
|
|
2521
2521
|
"aria-live": "assertive"
|
|
2522
2522
|
},
|
|
2523
2523
|
t
|
|
2524
|
-
),
|
|
2524
|
+
), Kc = Et({
|
|
2525
2525
|
badges: [],
|
|
2526
2526
|
isLoading: !0
|
|
2527
2527
|
});
|
|
2528
2528
|
function pm() {
|
|
2529
|
-
return Ie(
|
|
2529
|
+
return Ie(Kc);
|
|
2530
2530
|
}
|
|
2531
|
-
const gm = ({ children: e, badges: t }) => /* @__PURE__ */ c.jsx(
|
|
2531
|
+
const gm = ({ children: e, badges: t }) => /* @__PURE__ */ c.jsx(Kc.Provider, { value: t, children: e }), vm = ({ showDevTools: e = !0, children: t }) => {
|
|
2532
2532
|
const n = new yh({
|
|
2533
2533
|
// default options we would like on all queries can be overridden individually
|
|
2534
2534
|
defaultOptions: {
|
|
@@ -2545,15 +2545,15 @@ const gm = ({ children: e, badges: t }) => /* @__PURE__ */ c.jsx(Vc.Provider, {
|
|
|
2545
2545
|
e && /* @__PURE__ */ c.jsx(wh, { initialIsOpen: !1 })
|
|
2546
2546
|
] });
|
|
2547
2547
|
};
|
|
2548
|
-
var
|
|
2548
|
+
var Zc = Et({ client: Ei });
|
|
2549
2549
|
function bm(e) {
|
|
2550
2550
|
var t = e.children, n = e.client, r = e.apiKey, i = e.options, a = Zt(function() {
|
|
2551
2551
|
return n && r && console.warn("[PostHog.js] You have provided both a client and an apiKey to PostHogProvider. The apiKey will be ignored in favour of the client."), n && i && console.warn("[PostHog.js] You have provided both a client and options to PostHogProvider. The options will be ignored in favour of the client."), n || (r && (Ei.__loaded && console.warn("[PostHog.js] was already loaded elsewhere. This may cause issues."), Ei.init(r, i)), Ei);
|
|
2552
2552
|
}, [n, r]);
|
|
2553
|
-
return re.createElement(
|
|
2553
|
+
return re.createElement(Zc.Provider, { value: { client: a } }, t);
|
|
2554
2554
|
}
|
|
2555
2555
|
var ym = function() {
|
|
2556
|
-
var e = Ie(
|
|
2556
|
+
var e = Ie(Zc).client;
|
|
2557
2557
|
return e;
|
|
2558
2558
|
};
|
|
2559
2559
|
function Dm(e) {
|
|
@@ -2584,14 +2584,14 @@ const xm = ({ children: e, user: t }) => t.isLoading ? null : process.env.REACT_
|
|
|
2584
2584
|
children: e
|
|
2585
2585
|
}
|
|
2586
2586
|
) : /* @__PURE__ */ c.jsx(c.Fragment, { children: e });
|
|
2587
|
-
var
|
|
2587
|
+
var Yc = /* @__PURE__ */ ((e) => (e.COMMUNITY_RANKING = "community-ranking", e))(Yc || {});
|
|
2588
2588
|
const wm = ({ children: e, locale: t, messages: n }) => {
|
|
2589
2589
|
const r = t || "en", i = {
|
|
2590
2590
|
...Vh[r],
|
|
2591
2591
|
...n || {}
|
|
2592
2592
|
};
|
|
2593
2593
|
return /* @__PURE__ */ c.jsx(gh, { locale: r, messages: i, children: e });
|
|
2594
|
-
},
|
|
2594
|
+
}, Gc = Et({}), Da = {
|
|
2595
2595
|
en: "English",
|
|
2596
2596
|
es: "Español",
|
|
2597
2597
|
fr: "Français",
|
|
@@ -2600,12 +2600,12 @@ const wm = ({ children: e, locale: t, messages: n }) => {
|
|
|
2600
2600
|
function to() {
|
|
2601
2601
|
return Ie(vt);
|
|
2602
2602
|
}
|
|
2603
|
-
const Cm = ({ children: e, user: t, updateDetails: n }) => /* @__PURE__ */ c.jsx(vt.Provider, { value: { ...t, updateDetails: n }, children: e }),
|
|
2603
|
+
const Cm = ({ children: e, user: t, updateDetails: n }) => /* @__PURE__ */ c.jsx(vt.Provider, { value: { ...t, updateDetails: n }, children: e }), Qc = Et({
|
|
2604
2604
|
registerOverlay: () => {
|
|
2605
2605
|
},
|
|
2606
2606
|
unregisterOverlay: () => {
|
|
2607
2607
|
}
|
|
2608
|
-
}), Em = () => Ie(
|
|
2608
|
+
}), Em = () => Ie(Qc), _m = ({ children: e }) => {
|
|
2609
2609
|
const [t, n] = ue([]);
|
|
2610
2610
|
ce(() => {
|
|
2611
2611
|
t.length > 0 ? document.body.classList.add("has-overlay") : document.body.classList.remove("has-overlay");
|
|
@@ -2615,7 +2615,7 @@ const Cm = ({ children: e, user: t, updateDetails: n }) => /* @__PURE__ */ c.jsx
|
|
|
2615
2615
|
}, []), i = Re((a) => {
|
|
2616
2616
|
n((s) => s.filter((o) => o !== a));
|
|
2617
2617
|
}, []);
|
|
2618
|
-
return /* @__PURE__ */ c.jsx(
|
|
2618
|
+
return /* @__PURE__ */ c.jsx(Qc.Provider, { value: { registerOverlay: r, unregisterOverlay: i }, children: e });
|
|
2619
2619
|
}, I_ = ({ bootstrap: e, children: t, intl: n, showDevTools: r }) => {
|
|
2620
2620
|
const [i, a] = ue({ isLoading: !0 }), [s, o] = ue({ badges: [], isLoading: !0 }), l = (n == null ? void 0 : n.locale) || localStorage.getItem("language") || "en", [u, d] = ue(l), h = (m) => {
|
|
2621
2621
|
localStorage.setItem("language", m), d(m);
|
|
@@ -2626,7 +2626,7 @@ const Cm = ({ children: e, user: t, updateDetails: n }) => /* @__PURE__ */ c.jsx
|
|
|
2626
2626
|
}).catch((m) => {
|
|
2627
2627
|
m.message === Mh && window.location.pathname !== "/user-onboarding/logout" && (window.location.href = "/user-onboarding/logout"), a({ isLoading: !1 }), o({ badges: [], isLoading: !1 });
|
|
2628
2628
|
});
|
|
2629
|
-
}, []), /* @__PURE__ */ c.jsx(
|
|
2629
|
+
}, []), /* @__PURE__ */ c.jsx(Gc.Provider, { value: { language: u, updateLanguage: h }, children: /* @__PURE__ */ c.jsx(
|
|
2630
2630
|
wm,
|
|
2631
2631
|
{
|
|
2632
2632
|
locale: u,
|
|
@@ -2696,7 +2696,7 @@ const Bm = ({
|
|
|
2696
2696
|
})
|
|
2697
2697
|
}
|
|
2698
2698
|
);
|
|
2699
|
-
},
|
|
2699
|
+
}, Jc = Jt(Bm);
|
|
2700
2700
|
const xa = "loadingBlock_", Tm = ({ progress: e = 0, steps: t = !1, className: n = "" }) => {
|
|
2701
2701
|
const r = le();
|
|
2702
2702
|
t || (t = {
|
|
@@ -2721,7 +2721,7 @@ const xa = "loadingBlock_", Tm = ({ progress: e = 0, steps: t = !1, className: n
|
|
|
2721
2721
|
style: s,
|
|
2722
2722
|
children: [
|
|
2723
2723
|
i && /* @__PURE__ */ c.jsx("span", { className: "step", children: t[i].text }),
|
|
2724
|
-
/* @__PURE__ */ c.jsx(
|
|
2724
|
+
/* @__PURE__ */ c.jsx(Jc, { progress: e })
|
|
2725
2725
|
]
|
|
2726
2726
|
}
|
|
2727
2727
|
);
|
|
@@ -2784,11 +2784,11 @@ const ws = {
|
|
|
2784
2784
|
"course-navigation": ["button", "button"],
|
|
2785
2785
|
"course-lesson-page": ["breadcrumb", "course-navigation", "text-page"],
|
|
2786
2786
|
"course-lesson-quiz": ["text-page", "quiz-box"]
|
|
2787
|
-
},
|
|
2787
|
+
}, Xc = (e, t) => e in ws ? /* @__PURE__ */ c.jsx("div", { className: e, children: ws[e].map((n, r) => Xc(n, r)) }, t) : /* @__PURE__ */ c.jsx(zt, { className: e }, t), no = ({ layout: e = "overview-page", ...t }) => /* @__PURE__ */ c.jsx("div", { className: V("loading-state", e), ...t, children: ws[e].map((n, r) => Xc(n, r)) }), ed = (e) => {
|
|
2788
2788
|
const t = e && e.toUpperCase().trim().split(" ");
|
|
2789
2789
|
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) : "";
|
|
2790
2790
|
}, ni = ["#5AB6A3", "#A2D7AF", "#806056", "#3962B3"], Sm = (e) => {
|
|
2791
|
-
const t = Math.ceil(26 / ni.length), n =
|
|
2791
|
+
const t = Math.ceil(26 / ni.length), n = ed(e).toLowerCase();
|
|
2792
2792
|
if (n === "")
|
|
2793
2793
|
return ni[0];
|
|
2794
2794
|
const r = n.charCodeAt(0) - 96;
|
|
@@ -2815,7 +2815,7 @@ const su = 256, Ln = ({
|
|
|
2815
2815
|
if (!g)
|
|
2816
2816
|
return;
|
|
2817
2817
|
const f = i, b = a;
|
|
2818
|
-
typeof window < "u" && window.devicePixelRatio && (p.width = f * window.devicePixelRatio, p.height = b * window.devicePixelRatio, g.scale(window.devicePixelRatio, window.devicePixelRatio)), g.fillStyle = Sm(n), g.fillRect(0, 0, f, b), g.font = `${f / 3}px Arial`, g.textAlign = "center", g.fillStyle = "white", g.fillText(
|
|
2818
|
+
typeof window < "u" && window.devicePixelRatio && (p.width = f * window.devicePixelRatio, p.height = b * window.devicePixelRatio, g.scale(window.devicePixelRatio, window.devicePixelRatio)), g.fillStyle = Sm(n), g.fillRect(0, 0, f, b), g.font = `${f / 3}px Arial`, g.textAlign = "center", g.fillStyle = "white", g.fillText(ed(n), f / 2, b / 1.6);
|
|
2819
2819
|
}, [n]);
|
|
2820
2820
|
let m = !1;
|
|
2821
2821
|
return t && t !== "" && !l && (t.includes("http") || t.includes("//")) && (m = !0), /* @__PURE__ */ c.jsx(
|
|
@@ -2893,7 +2893,7 @@ const yn = ({
|
|
|
2893
2893
|
const { name: S, image: z } = _;
|
|
2894
2894
|
let { url: O } = _;
|
|
2895
2895
|
typeof t == "object" && t.link !== void 0 && (t.link === !1 ? O = void 0 : O = t.link);
|
|
2896
|
-
const L = jm(_), M = r && r.createdAt ? Ds(r.createdAt) : !1, A = r && r.createdAt ?
|
|
2896
|
+
const L = jm(_), M = r && r.createdAt ? Ds(r.createdAt) : !1, A = r && r.createdAt ? qc(r.createdAt) : "";
|
|
2897
2897
|
return re.createElement(e, {
|
|
2898
2898
|
...d,
|
|
2899
2899
|
className: V("member text-medium", g, f, l, {
|
|
@@ -3012,7 +3012,7 @@ const yn = ({
|
|
|
3012
3012
|
const ou = {
|
|
3013
3013
|
small: 24,
|
|
3014
3014
|
medium: 48
|
|
3015
|
-
},
|
|
3015
|
+
}, td = ({
|
|
3016
3016
|
element: e = "div",
|
|
3017
3017
|
contributors: { total: t, data: n } = { total: void 0, data: [] },
|
|
3018
3018
|
styling: { showText: r, size: i, showGap: a, showPlaceholders: s } = {
|
|
@@ -3065,7 +3065,7 @@ const ou = {
|
|
|
3065
3065
|
] })
|
|
3066
3066
|
});
|
|
3067
3067
|
};
|
|
3068
|
-
const
|
|
3068
|
+
const nd = ({ element: e = "section", children: t, className: n, ...r }) => re.createElement(e, {
|
|
3069
3069
|
className: V("modal", n),
|
|
3070
3070
|
children: typeof t == "string" ? /* @__PURE__ */ c.jsx("p", { children: t }) : t,
|
|
3071
3071
|
...r
|
|
@@ -3239,7 +3239,7 @@ function Rm() {
|
|
|
3239
3239
|
}()), qe;
|
|
3240
3240
|
}
|
|
3241
3241
|
var cu;
|
|
3242
|
-
function
|
|
3242
|
+
function rd() {
|
|
3243
3243
|
return cu || (cu = 1, process.env.NODE_ENV === "production" ? ii.exports = Mm() : ii.exports = Rm()), ii.exports;
|
|
3244
3244
|
}
|
|
3245
3245
|
/*
|
|
@@ -3303,7 +3303,7 @@ function io() {
|
|
|
3303
3303
|
return Ca = e, Ca;
|
|
3304
3304
|
}
|
|
3305
3305
|
var Ea, hu;
|
|
3306
|
-
function
|
|
3306
|
+
function id() {
|
|
3307
3307
|
return hu || (hu = 1, Ea = Function.call.bind(Object.prototype.hasOwnProperty)), Ea;
|
|
3308
3308
|
}
|
|
3309
3309
|
var _a, mu;
|
|
@@ -3314,7 +3314,7 @@ function $m() {
|
|
|
3314
3314
|
var e = function() {
|
|
3315
3315
|
};
|
|
3316
3316
|
if (process.env.NODE_ENV !== "production") {
|
|
3317
|
-
var t = io(), n = {}, r =
|
|
3317
|
+
var t = io(), n = {}, r = id();
|
|
3318
3318
|
e = function(a) {
|
|
3319
3319
|
var s = "Warning: " + a;
|
|
3320
3320
|
typeof console < "u" && console.error(s);
|
|
@@ -3361,7 +3361,7 @@ function Lm() {
|
|
|
3361
3361
|
if (pu)
|
|
3362
3362
|
return ka;
|
|
3363
3363
|
pu = 1;
|
|
3364
|
-
var e =
|
|
3364
|
+
var e = rd(), t = Im(), n = io(), r = id(), i = $m(), a = function() {
|
|
3365
3365
|
};
|
|
3366
3366
|
process.env.NODE_ENV !== "production" && (a = function(o) {
|
|
3367
3367
|
var l = "Warning: " + o;
|
|
@@ -3728,7 +3728,7 @@ function zm() {
|
|
|
3728
3728
|
}, Fa;
|
|
3729
3729
|
}
|
|
3730
3730
|
if (process.env.NODE_ENV !== "production") {
|
|
3731
|
-
var qm =
|
|
3731
|
+
var qm = rd(), Wm = !0;
|
|
3732
3732
|
Cs.exports = Lm()(qm.isElement, Wm);
|
|
3733
3733
|
} else
|
|
3734
3734
|
Cs.exports = zm()();
|
|
@@ -3737,8 +3737,8 @@ var Um = Cs.exports;
|
|
|
3737
3737
|
* tabbable 6.2.0
|
|
3738
3738
|
* @license MIT, https://github.com/focus-trap/tabbable/blob/master/LICENSE
|
|
3739
3739
|
*/
|
|
3740
|
-
var
|
|
3741
|
-
} : Element.prototype.matches || Element.prototype.msMatchesSelector || Element.prototype.webkitMatchesSelector, Ii = !
|
|
3740
|
+
var ad = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])", "a[href]:not([inert])", "button:not([inert])", "[tabindex]:not(slot):not([inert])", "audio[controls]:not([inert])", "video[controls]:not([inert])", '[contenteditable]:not([contenteditable="false"]):not([inert])', "details>summary:first-of-type:not([inert])", "details:not([inert])"], Ri = /* @__PURE__ */ ad.join(","), sd = typeof Element > "u", On = sd ? function() {
|
|
3741
|
+
} : Element.prototype.matches || Element.prototype.msMatchesSelector || Element.prototype.webkitMatchesSelector, Ii = !sd && Element.prototype.getRootNode ? function(e) {
|
|
3742
3742
|
var t;
|
|
3743
3743
|
return e == null || (t = e.getRootNode) === null || t === void 0 ? void 0 : t.call(e);
|
|
3744
3744
|
} : function(e) {
|
|
@@ -3751,12 +3751,12 @@ var id = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])",
|
|
|
3751
3751
|
}, Hm = function(t) {
|
|
3752
3752
|
var n, r = t == null || (n = t.getAttribute) === null || n === void 0 ? void 0 : n.call(t, "contenteditable");
|
|
3753
3753
|
return r === "" || r === "true";
|
|
3754
|
-
},
|
|
3754
|
+
}, od = function(t, n, r) {
|
|
3755
3755
|
if ($i(t))
|
|
3756
3756
|
return [];
|
|
3757
3757
|
var i = Array.prototype.slice.apply(t.querySelectorAll(Ri));
|
|
3758
3758
|
return n && On.call(t, Ri) && i.unshift(t), i = i.filter(r), i;
|
|
3759
|
-
},
|
|
3759
|
+
}, ud = function e(t, n, r) {
|
|
3760
3760
|
for (var i = [], a = Array.from(t); a.length; ) {
|
|
3761
3761
|
var s = a.shift();
|
|
3762
3762
|
if (!$i(s, !1))
|
|
@@ -3782,21 +3782,21 @@ var id = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])",
|
|
|
3782
3782
|
}
|
|
3783
3783
|
}
|
|
3784
3784
|
return i;
|
|
3785
|
-
},
|
|
3785
|
+
}, ld = function(t) {
|
|
3786
3786
|
return !isNaN(parseInt(t.getAttribute("tabindex"), 10));
|
|
3787
3787
|
}, pn = function(t) {
|
|
3788
3788
|
if (!t)
|
|
3789
3789
|
throw new Error("No node provided");
|
|
3790
|
-
return t.tabIndex < 0 && (/^(AUDIO|VIDEO|DETAILS)$/.test(t.tagName) || Hm(t)) && !
|
|
3790
|
+
return t.tabIndex < 0 && (/^(AUDIO|VIDEO|DETAILS)$/.test(t.tagName) || Hm(t)) && !ld(t) ? 0 : t.tabIndex;
|
|
3791
3791
|
}, Vm = function(t, n) {
|
|
3792
3792
|
var r = pn(t);
|
|
3793
|
-
return r < 0 && n && !
|
|
3793
|
+
return r < 0 && n && !ld(t) ? 0 : r;
|
|
3794
3794
|
}, Km = function(t, n) {
|
|
3795
3795
|
return t.tabIndex === n.tabIndex ? t.documentOrder - n.documentOrder : t.tabIndex - n.tabIndex;
|
|
3796
|
-
},
|
|
3796
|
+
}, cd = function(t) {
|
|
3797
3797
|
return t.tagName === "INPUT";
|
|
3798
3798
|
}, Zm = function(t) {
|
|
3799
|
-
return
|
|
3799
|
+
return cd(t) && t.type === "hidden";
|
|
3800
3800
|
}, Ym = function(t) {
|
|
3801
3801
|
var n = t.tagName === "DETAILS" && Array.prototype.slice.apply(t.children).some(function(r) {
|
|
3802
3802
|
return r.tagName === "SUMMARY";
|
|
@@ -3823,7 +3823,7 @@ var id = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])",
|
|
|
3823
3823
|
var a = Gm(i, t.form);
|
|
3824
3824
|
return !a || a === t;
|
|
3825
3825
|
}, Jm = function(t) {
|
|
3826
|
-
return
|
|
3826
|
+
return cd(t) && t.type === "radio";
|
|
3827
3827
|
}, Xm = function(t) {
|
|
3828
3828
|
return Jm(t) && !Qm(t);
|
|
3829
3829
|
}, ep = function(t) {
|
|
@@ -3902,39 +3902,39 @@ var id = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])",
|
|
|
3902
3902
|
}), r.sort(Km).reduce(function(i, a) {
|
|
3903
3903
|
return a.isScope ? i.push.apply(i, a.content) : i.push(a.content), i;
|
|
3904
3904
|
}, []).concat(n);
|
|
3905
|
-
},
|
|
3905
|
+
}, dd = function(t, n) {
|
|
3906
3906
|
n = n || {};
|
|
3907
3907
|
var r;
|
|
3908
|
-
return n.getShadowRoot ? r =
|
|
3908
|
+
return n.getShadowRoot ? r = ud([t], n.includeContainer, {
|
|
3909
3909
|
filter: Es.bind(null, n),
|
|
3910
3910
|
flatten: !1,
|
|
3911
3911
|
getShadowRoot: n.getShadowRoot,
|
|
3912
3912
|
shadowRootFilter: rp
|
|
3913
|
-
}) : r =
|
|
3914
|
-
},
|
|
3913
|
+
}) : r = od(t, n.includeContainer, Es.bind(null, n)), ip(r);
|
|
3914
|
+
}, fd = function(t, n) {
|
|
3915
3915
|
n = n || {};
|
|
3916
3916
|
var r;
|
|
3917
|
-
return n.getShadowRoot ? r =
|
|
3917
|
+
return n.getShadowRoot ? r = ud([t], n.includeContainer, {
|
|
3918
3918
|
filter: Li.bind(null, n),
|
|
3919
3919
|
flatten: !0,
|
|
3920
3920
|
getShadowRoot: n.getShadowRoot
|
|
3921
|
-
}) : r =
|
|
3921
|
+
}) : r = od(t, n.includeContainer, Li.bind(null, n)), r;
|
|
3922
3922
|
}, _n = function(t, n) {
|
|
3923
3923
|
if (n = n || {}, !t)
|
|
3924
3924
|
throw new Error("No node provided");
|
|
3925
3925
|
return On.call(t, Ri) === !1 ? !1 : Es(n, t);
|
|
3926
|
-
}, ap = /* @__PURE__ */
|
|
3926
|
+
}, ap = /* @__PURE__ */ ad.concat("iframe").join(","), ki = function(t, n) {
|
|
3927
3927
|
if (n = n || {}, !t)
|
|
3928
3928
|
throw new Error("No node provided");
|
|
3929
3929
|
return On.call(t, ap) === !1 ? !1 : Li(n, t);
|
|
3930
3930
|
};
|
|
3931
3931
|
const sp = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
3932
3932
|
__proto__: null,
|
|
3933
|
-
focusable:
|
|
3933
|
+
focusable: fd,
|
|
3934
3934
|
getTabIndex: pn,
|
|
3935
3935
|
isFocusable: ki,
|
|
3936
3936
|
isTabbable: _n,
|
|
3937
|
-
tabbable:
|
|
3937
|
+
tabbable: dd
|
|
3938
3938
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
3939
3939
|
/*!
|
|
3940
3940
|
* focus-trap 7.5.4
|
|
@@ -4110,7 +4110,7 @@ var Du = {
|
|
|
4110
4110
|
return A;
|
|
4111
4111
|
}, m = function() {
|
|
4112
4112
|
if (s.containerGroups = s.containers.map(function(A) {
|
|
4113
|
-
var C =
|
|
4113
|
+
var C = dd(A, a.tabbableOptions), T = fd(A, a.tabbableOptions), j = C.length > 0 ? C[0] : void 0, H = C.length > 0 ? C[C.length - 1] : void 0, U = T.find(function(D) {
|
|
4114
4114
|
return _n(D);
|
|
4115
4115
|
}), G = T.slice().reverse().find(function(D) {
|
|
4116
4116
|
return _n(D);
|
|
@@ -4372,7 +4372,7 @@ var Du = {
|
|
|
4372
4372
|
const gp = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
4373
4373
|
__proto__: null,
|
|
4374
4374
|
createFocusTrap: pp
|
|
4375
|
-
}, Symbol.toStringTag, { value: "Module" })), vp = /* @__PURE__ */
|
|
4375
|
+
}, Symbol.toStringTag, { value: "Module" })), vp = /* @__PURE__ */ Pc(gp), bp = /* @__PURE__ */ Pc(sp);
|
|
4376
4376
|
function sr(e) {
|
|
4377
4377
|
"@babel/helpers - typeof";
|
|
4378
4378
|
return sr = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(t) {
|
|
@@ -4388,7 +4388,7 @@ function yp(e, t) {
|
|
|
4388
4388
|
function Cu(e, t) {
|
|
4389
4389
|
for (var n = 0; n < t.length; n++) {
|
|
4390
4390
|
var r = t[n];
|
|
4391
|
-
r.enumerable = r.enumerable || !1, r.configurable = !0, "value" in r && (r.writable = !0), Object.defineProperty(e,
|
|
4391
|
+
r.enumerable = r.enumerable || !1, r.configurable = !0, "value" in r && (r.writable = !0), Object.defineProperty(e, hd(r.key), r);
|
|
4392
4392
|
}
|
|
4393
4393
|
}
|
|
4394
4394
|
function Dp(e, t, n) {
|
|
@@ -4446,9 +4446,9 @@ function zi(e) {
|
|
|
4446
4446
|
}, zi(e);
|
|
4447
4447
|
}
|
|
4448
4448
|
function _p(e, t, n) {
|
|
4449
|
-
return t =
|
|
4449
|
+
return t = hd(t), t in e ? Object.defineProperty(e, t, { value: n, enumerable: !0, configurable: !0, writable: !0 }) : e[t] = n, e;
|
|
4450
4450
|
}
|
|
4451
|
-
function
|
|
4451
|
+
function hd(e) {
|
|
4452
4452
|
var t = kp(e, "string");
|
|
4453
4453
|
return sr(t) === "symbol" ? t : String(t);
|
|
4454
4454
|
}
|
|
@@ -4765,7 +4765,7 @@ const xn = ({
|
|
|
4765
4765
|
}),
|
|
4766
4766
|
role: "dialog",
|
|
4767
4767
|
children: /* @__PURE__ */ c.jsx(
|
|
4768
|
-
|
|
4768
|
+
nd,
|
|
4769
4769
|
{
|
|
4770
4770
|
id: e,
|
|
4771
4771
|
className: V("overlay-modal", d, {
|
|
@@ -4807,7 +4807,7 @@ const xn = ({
|
|
|
4807
4807
|
"aria-expanded": t,
|
|
4808
4808
|
"aria-controls": e
|
|
4809
4809
|
});
|
|
4810
|
-
const wr = "joinCommunityButton",
|
|
4810
|
+
const wr = "joinCommunityButton", md = ({
|
|
4811
4811
|
isMember: e = !1,
|
|
4812
4812
|
isOpen: t = !1,
|
|
4813
4813
|
isShort: n = !1,
|
|
@@ -4878,7 +4878,7 @@ const Aa = "communityDetails_", L_ = ({
|
|
|
4878
4878
|
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: `${Aa}viewAll` }) }) })
|
|
4879
4879
|
] }),
|
|
4880
4880
|
d && /* @__PURE__ */ c.jsx(
|
|
4881
|
-
|
|
4881
|
+
td,
|
|
4882
4882
|
{
|
|
4883
4883
|
contributors: {
|
|
4884
4884
|
total: i,
|
|
@@ -4895,7 +4895,7 @@ const Aa = "communityDetails_", L_ = ({
|
|
|
4895
4895
|
] }) : /* @__PURE__ */ c.jsx(c.Fragment, {}),
|
|
4896
4896
|
d ? /* @__PURE__ */ c.jsxs(c.Fragment, { children: [
|
|
4897
4897
|
/* @__PURE__ */ c.jsx(
|
|
4898
|
-
|
|
4898
|
+
md,
|
|
4899
4899
|
{
|
|
4900
4900
|
isMember: t,
|
|
4901
4901
|
isOpen: n,
|
|
@@ -5040,7 +5040,7 @@ const oi = "languageSwitcher_", U_ = ({
|
|
|
5040
5040
|
className: l = ""
|
|
5041
5041
|
}) => {
|
|
5042
5042
|
const u = le(), { updateLanguage: d = () => {
|
|
5043
|
-
} } = Ie(
|
|
5043
|
+
} } = Ie(Gc), [h, m] = ue(e);
|
|
5044
5044
|
if (ce(() => {
|
|
5045
5045
|
e !== h && m(e);
|
|
5046
5046
|
}, [e]), !r || !Object.values(r).some(
|
|
@@ -5140,7 +5140,7 @@ const Ba = vh({ locale: "en", messages: pr }), aa = ({
|
|
|
5140
5140
|
}
|
|
5141
5141
|
) : o.endOfFeed && (!d || d != null && d.includes("Cannot read items")) ? /* @__PURE__ */ c.jsx("p", { children: o.endOfFeed }) : d && /* @__PURE__ */ c.jsx("p", { className: "error", children: o.error }) });
|
|
5142
5142
|
};
|
|
5143
|
-
const
|
|
5143
|
+
const pd = ({
|
|
5144
5144
|
variant: e = "default",
|
|
5145
5145
|
version: t = "default",
|
|
5146
5146
|
className: n = "",
|
|
@@ -5458,7 +5458,7 @@ const qp = {
|
|
|
5458
5458
|
}
|
|
5459
5459
|
);
|
|
5460
5460
|
};
|
|
5461
|
-
const
|
|
5461
|
+
const gd = ({
|
|
5462
5462
|
id: e = "character-limit",
|
|
5463
5463
|
limit: t,
|
|
5464
5464
|
valueLength: n,
|
|
@@ -5805,7 +5805,7 @@ const Hn = {
|
|
|
5805
5805
|
)) })
|
|
5806
5806
|
] });
|
|
5807
5807
|
};
|
|
5808
|
-
const
|
|
5808
|
+
const vd = ({
|
|
5809
5809
|
className: e = "",
|
|
5810
5810
|
disabled: t,
|
|
5811
5811
|
element: n = "p",
|
|
@@ -6068,7 +6068,7 @@ const Gp = ({
|
|
|
6068
6068
|
t.onChange(w);
|
|
6069
6069
|
};
|
|
6070
6070
|
return /* @__PURE__ */ c.jsx(
|
|
6071
|
-
|
|
6071
|
+
vd,
|
|
6072
6072
|
{
|
|
6073
6073
|
element: "li",
|
|
6074
6074
|
id: k,
|
|
@@ -6138,7 +6138,7 @@ const Vn = {
|
|
|
6138
6138
|
email: { component: Gn },
|
|
6139
6139
|
url: { component: Gn },
|
|
6140
6140
|
textarea: { component: Gn, props: { element: "textarea", rows: 4, cols: 10 } },
|
|
6141
|
-
checkbox: { component:
|
|
6141
|
+
checkbox: { component: vd },
|
|
6142
6142
|
checkboxes: { component: Gp, props: { multiSelect: !0 } },
|
|
6143
6143
|
select: { component: Yp },
|
|
6144
6144
|
password: { component: Qp },
|
|
@@ -6240,7 +6240,7 @@ const Vn = {
|
|
|
6240
6240
|
/* @__PURE__ */ c.jsxs(c.Fragment, { children: [
|
|
6241
6241
|
/* @__PURE__ */ c.jsx(f, { ...w }),
|
|
6242
6242
|
/* @__PURE__ */ c.jsx(
|
|
6243
|
-
|
|
6243
|
+
gd,
|
|
6244
6244
|
{
|
|
6245
6245
|
id: k,
|
|
6246
6246
|
limit: a,
|
|
@@ -6562,10 +6562,10 @@ const wn = ({
|
|
|
6562
6562
|
w && H && /* @__PURE__ */ c.jsx(Mi, { className: "success", children: typeof w == "string" ? w : L.formatMessage({ id: "form_success" }) })
|
|
6563
6563
|
] });
|
|
6564
6564
|
};
|
|
6565
|
-
const ci = "passwordRules_",
|
|
6566
|
-
[
|
|
6567
|
-
[
|
|
6568
|
-
[
|
|
6565
|
+
const ci = "passwordRules_", bd = "isMoreThanEightCharacters", yd = "includesNumberAndSymbol", Dd = "includesLowerAndUppercase", eg = {
|
|
6566
|
+
[bd]: "8Characters",
|
|
6567
|
+
[yd]: "numberSymbol",
|
|
6568
|
+
[Dd]: "lowercaseUppercase"
|
|
6569
6569
|
}, tg = ({
|
|
6570
6570
|
matchingRules: e = {
|
|
6571
6571
|
isMoreThanEightCharacters: !1,
|
|
@@ -6577,7 +6577,7 @@ const ci = "passwordRules_", vd = "isMoreThanEightCharacters", bd = "includesNum
|
|
|
6577
6577
|
const n = le();
|
|
6578
6578
|
return /* @__PURE__ */ c.jsxs("aside", { className: V("password-rules", t), children: [
|
|
6579
6579
|
/* @__PURE__ */ c.jsx("small", { children: n.formatMessage({ id: `${ci}intro` }) }),
|
|
6580
|
-
/* @__PURE__ */ c.jsx("ul", { children: [
|
|
6580
|
+
/* @__PURE__ */ c.jsx("ul", { children: [bd, yd, Dd].map(
|
|
6581
6581
|
(r) => /* @__PURE__ */ c.jsxs(
|
|
6582
6582
|
"li",
|
|
6583
6583
|
{
|
|
@@ -6758,7 +6758,7 @@ var sg = [
|
|
|
6758
6758
|
function oo(e) {
|
|
6759
6759
|
return uo(e, sg);
|
|
6760
6760
|
}
|
|
6761
|
-
var
|
|
6761
|
+
var xd = [
|
|
6762
6762
|
"AREA",
|
|
6763
6763
|
"BASE",
|
|
6764
6764
|
"BR",
|
|
@@ -6776,13 +6776,13 @@ var Dd = [
|
|
|
6776
6776
|
"TRACK",
|
|
6777
6777
|
"WBR"
|
|
6778
6778
|
];
|
|
6779
|
-
function
|
|
6780
|
-
return uo(e,
|
|
6779
|
+
function wd(e) {
|
|
6780
|
+
return uo(e, xd);
|
|
6781
6781
|
}
|
|
6782
6782
|
function og(e) {
|
|
6783
|
-
return
|
|
6783
|
+
return Ed(e, xd);
|
|
6784
6784
|
}
|
|
6785
|
-
var
|
|
6785
|
+
var Cd = [
|
|
6786
6786
|
"A",
|
|
6787
6787
|
"TABLE",
|
|
6788
6788
|
"THEAD",
|
|
@@ -6796,15 +6796,15 @@ var wd = [
|
|
|
6796
6796
|
"VIDEO"
|
|
6797
6797
|
];
|
|
6798
6798
|
function ug(e) {
|
|
6799
|
-
return uo(e,
|
|
6799
|
+
return uo(e, Cd);
|
|
6800
6800
|
}
|
|
6801
6801
|
function lg(e) {
|
|
6802
|
-
return
|
|
6802
|
+
return Ed(e, Cd);
|
|
6803
6803
|
}
|
|
6804
6804
|
function uo(e, t) {
|
|
6805
6805
|
return t.indexOf(e.nodeName) >= 0;
|
|
6806
6806
|
}
|
|
6807
|
-
function
|
|
6807
|
+
function Ed(e, t) {
|
|
6808
6808
|
return e.getElementsByTagName && t.some(function(n) {
|
|
6809
6809
|
return e.getElementsByTagName(n).length;
|
|
6810
6810
|
});
|
|
@@ -7002,7 +7002,7 @@ function qi(e) {
|
|
|
7002
7002
|
return e ? e.replace(/(\n+\s*)+/g, `
|
|
7003
7003
|
`) : "";
|
|
7004
7004
|
}
|
|
7005
|
-
function
|
|
7005
|
+
function _d(e) {
|
|
7006
7006
|
this.options = e, this._keep = [], this._remove = [], this.blankRule = {
|
|
7007
7007
|
replacement: e.blankReplacement
|
|
7008
7008
|
}, this.keepReplacement = e.keepReplacement, this.defaultRule = {
|
|
@@ -7011,7 +7011,7 @@ function Ed(e) {
|
|
|
7011
7011
|
for (var t in e.rules)
|
|
7012
7012
|
this.array.push(e.rules[t]);
|
|
7013
7013
|
}
|
|
7014
|
-
|
|
7014
|
+
_d.prototype = {
|
|
7015
7015
|
add: function(e, t) {
|
|
7016
7016
|
this.array.unshift(t);
|
|
7017
7017
|
},
|
|
@@ -7139,7 +7139,7 @@ function gg(e, t) {
|
|
|
7139
7139
|
return dg({
|
|
7140
7140
|
element: n,
|
|
7141
7141
|
isBlock: oo,
|
|
7142
|
-
isVoid:
|
|
7142
|
+
isVoid: wd,
|
|
7143
7143
|
isPre: t.preformattedCode ? bg : null
|
|
7144
7144
|
}), n;
|
|
7145
7145
|
}
|
|
@@ -7154,7 +7154,7 @@ function yg(e, t) {
|
|
|
7154
7154
|
return e.isBlock = oo(e), e.isCode = e.nodeName === "CODE" || e.parentNode.isCode, e.isBlank = Dg(e), e.flankingWhitespace = xg(e, t), e;
|
|
7155
7155
|
}
|
|
7156
7156
|
function Dg(e) {
|
|
7157
|
-
return !
|
|
7157
|
+
return !wd(e) && !ug(e) && /^\s*$/i.test(e.textContent) && !og(e) && !lg(e);
|
|
7158
7158
|
}
|
|
7159
7159
|
function xg(e, t) {
|
|
7160
7160
|
if (e.isBlock || t.preformattedCode && e.isCode)
|
|
@@ -7230,7 +7230,7 @@ function Lr(e) {
|
|
|
7230
7230
|
` : n;
|
|
7231
7231
|
}
|
|
7232
7232
|
};
|
|
7233
|
-
this.options = rg({}, t, e), this.rules = new
|
|
7233
|
+
this.options = rg({}, t, e), this.rules = new _d(this.options);
|
|
7234
7234
|
}
|
|
7235
7235
|
Lr.prototype = {
|
|
7236
7236
|
/**
|
|
@@ -7247,7 +7247,7 @@ Lr.prototype = {
|
|
|
7247
7247
|
);
|
|
7248
7248
|
if (e === "")
|
|
7249
7249
|
return "";
|
|
7250
|
-
var t =
|
|
7250
|
+
var t = kd.call(this, new gg(e, this.options));
|
|
7251
7251
|
return _g.call(this, t);
|
|
7252
7252
|
},
|
|
7253
7253
|
/**
|
|
@@ -7311,25 +7311,25 @@ Lr.prototype = {
|
|
|
7311
7311
|
}, e);
|
|
7312
7312
|
}
|
|
7313
7313
|
};
|
|
7314
|
-
function
|
|
7314
|
+
function kd(e) {
|
|
7315
7315
|
var t = this;
|
|
7316
7316
|
return Cg.call(e.childNodes, function(n, r) {
|
|
7317
7317
|
r = new yg(r, t.options);
|
|
7318
7318
|
var i = "";
|
|
7319
|
-
return r.nodeType === 3 ? i = r.isCode ? r.nodeValue : t.escape(r.nodeValue) : r.nodeType === 1 && (i = kg.call(t, r)),
|
|
7319
|
+
return r.nodeType === 3 ? i = r.isCode ? r.nodeValue : t.escape(r.nodeValue) : r.nodeType === 1 && (i = kg.call(t, r)), Fd(n, i);
|
|
7320
7320
|
}, "");
|
|
7321
7321
|
}
|
|
7322
7322
|
function _g(e) {
|
|
7323
7323
|
var t = this;
|
|
7324
7324
|
return this.rules.forEach(function(n) {
|
|
7325
|
-
typeof n.append == "function" && (e =
|
|
7325
|
+
typeof n.append == "function" && (e = Fd(e, n.append(t.options)));
|
|
7326
7326
|
}), e.replace(/^[\t\r\n]+/, "").replace(/[\t\r\n\s]+$/, "");
|
|
7327
7327
|
}
|
|
7328
7328
|
function kg(e) {
|
|
7329
|
-
var t = this.rules.forNode(e), n =
|
|
7329
|
+
var t = this.rules.forNode(e), n = kd.call(this, e), r = e.flankingWhitespace;
|
|
7330
7330
|
return (r.leading || r.trailing) && (n = n.trim()), r.leading + t.replacement(n, e, this.options) + r.trailing;
|
|
7331
7331
|
}
|
|
7332
|
-
function
|
|
7332
|
+
function Fd(e, t) {
|
|
7333
7333
|
var n = ag(e), r = ig(t), i = Math.max(e.length - n.length, t.length - r.length), a = `
|
|
7334
7334
|
|
|
7335
7335
|
`.substring(0, i);
|
|
@@ -7351,7 +7351,7 @@ function ot(e) {
|
|
|
7351
7351
|
var t, n;
|
|
7352
7352
|
return ku(e) === !1 ? !1 : (t = e.constructor, t === void 0 ? !0 : (n = t.prototype, !(ku(n) === !1 || n.hasOwnProperty("isPrototypeOf") === !1)));
|
|
7353
7353
|
}
|
|
7354
|
-
var
|
|
7354
|
+
var Ad = Symbol.for("immer-nothing"), Fu = Symbol.for("immer-draftable"), Bt = Symbol.for("immer-state"), Ag = process.env.NODE_ENV !== "production" ? [
|
|
7355
7355
|
// All error codes, starting by 0:
|
|
7356
7356
|
function(e) {
|
|
7357
7357
|
return `The plugin for '${e}' has not been loaded into Immer. To enable the plugin, import and call \`enable${e}()\` when initializing your application.`;
|
|
@@ -7397,10 +7397,10 @@ function Pn(e) {
|
|
|
7397
7397
|
}
|
|
7398
7398
|
function Nn(e) {
|
|
7399
7399
|
var t;
|
|
7400
|
-
return e ?
|
|
7400
|
+
return e ? Bd(e) || Array.isArray(e) || !!e[Fu] || !!((t = e.constructor) != null && t[Fu]) || oa(e) || ua(e) : !1;
|
|
7401
7401
|
}
|
|
7402
7402
|
var Bg = Object.prototype.constructor.toString();
|
|
7403
|
-
function
|
|
7403
|
+
function Bd(e) {
|
|
7404
7404
|
if (!e || typeof e != "object")
|
|
7405
7405
|
return !1;
|
|
7406
7406
|
const t = or(e);
|
|
@@ -7421,7 +7421,7 @@ function sa(e) {
|
|
|
7421
7421
|
function Fs(e, t) {
|
|
7422
7422
|
return sa(e) === 2 ? e.has(t) : Object.prototype.hasOwnProperty.call(e, t);
|
|
7423
7423
|
}
|
|
7424
|
-
function
|
|
7424
|
+
function Td(e, t, n) {
|
|
7425
7425
|
const r = sa(e);
|
|
7426
7426
|
r === 2 ? e.set(t, n) : r === 3 ? e.add(n) : e[t] = n;
|
|
7427
7427
|
}
|
|
@@ -7444,7 +7444,7 @@ function As(e, t) {
|
|
|
7444
7444
|
return new Set(e);
|
|
7445
7445
|
if (Array.isArray(e))
|
|
7446
7446
|
return Array.prototype.slice.call(e);
|
|
7447
|
-
const n =
|
|
7447
|
+
const n = Bd(e);
|
|
7448
7448
|
if (t === !0 || t === "class_only" && !n) {
|
|
7449
7449
|
const r = Object.getOwnPropertyDescriptors(e);
|
|
7450
7450
|
delete r[Bt];
|
|
@@ -7483,7 +7483,7 @@ function Mn(e) {
|
|
|
7483
7483
|
return t || wt(0, e), t;
|
|
7484
7484
|
}
|
|
7485
7485
|
var zr;
|
|
7486
|
-
function
|
|
7486
|
+
function Sd() {
|
|
7487
7487
|
return zr;
|
|
7488
7488
|
}
|
|
7489
7489
|
function Og(e, t) {
|
|
@@ -7521,7 +7521,7 @@ function Tu(e, t) {
|
|
|
7521
7521
|
e,
|
|
7522
7522
|
t.patches_,
|
|
7523
7523
|
t.inversePatches_
|
|
7524
|
-
)) : e = Ui(t, n, []), Bs(t), t.patches_ && t.patchListener_(t.patches_, t.inversePatches_), e !==
|
|
7524
|
+
)) : e = Ui(t, n, []), Bs(t), t.patches_ && t.patchListener_(t.patches_, t.inversePatches_), e !== Ad ? e : void 0;
|
|
7525
7525
|
}
|
|
7526
7526
|
function Ui(e, t, n) {
|
|
7527
7527
|
if (la(t))
|
|
@@ -7556,7 +7556,7 @@ function Su(e, t, n, r, i, a, s) {
|
|
|
7556
7556
|
if (process.env.NODE_ENV !== "production" && i === n && wt(5), Pn(i)) {
|
|
7557
7557
|
const o = a && t && t.type_ !== 3 && // Set objects are atomic since they have no keys.
|
|
7558
7558
|
!Fs(t.assigned_, r) ? a.concat(r) : void 0, l = Ui(e, i, o);
|
|
7559
|
-
if (
|
|
7559
|
+
if (Td(n, r, l), Pn(l))
|
|
7560
7560
|
e.canAutoFreeze_ = !1;
|
|
7561
7561
|
else
|
|
7562
7562
|
return;
|
|
@@ -7575,7 +7575,7 @@ function Ng(e, t) {
|
|
|
7575
7575
|
const n = Array.isArray(e), r = {
|
|
7576
7576
|
type_: n ? 1 : 0,
|
|
7577
7577
|
// Track which produce call this is associated with.
|
|
7578
|
-
scope_: t ? t.scope_ :
|
|
7578
|
+
scope_: t ? t.scope_ : Sd(),
|
|
7579
7579
|
// True for both shallow and deep changes.
|
|
7580
7580
|
modified_: !1,
|
|
7581
7581
|
// Used during finalization.
|
|
@@ -7617,7 +7617,7 @@ var fo = {
|
|
|
7617
7617
|
return Reflect.ownKeys(kn(e));
|
|
7618
7618
|
},
|
|
7619
7619
|
set(e, t, n) {
|
|
7620
|
-
const r =
|
|
7620
|
+
const r = jd(kn(e), t);
|
|
7621
7621
|
if (r != null && r.set)
|
|
7622
7622
|
return r.set.call(e.draft_, n), !0;
|
|
7623
7623
|
if (!e.modified_) {
|
|
@@ -7673,14 +7673,14 @@ function Pa(e, t) {
|
|
|
7673
7673
|
}
|
|
7674
7674
|
function Mg(e, t, n) {
|
|
7675
7675
|
var i;
|
|
7676
|
-
const r =
|
|
7676
|
+
const r = jd(t, n);
|
|
7677
7677
|
return r ? "value" in r ? r.value : (
|
|
7678
7678
|
// This is a very special case, if the prop is a getter defined by the
|
|
7679
7679
|
// prototype, we should invoke it with the draft as context!
|
|
7680
7680
|
(i = r.get) == null ? void 0 : i.call(e.draft_)
|
|
7681
7681
|
) : void 0;
|
|
7682
7682
|
}
|
|
7683
|
-
function
|
|
7683
|
+
function jd(e, t) {
|
|
7684
7684
|
if (!(t in e))
|
|
7685
7685
|
return;
|
|
7686
7686
|
let n = or(e);
|
|
@@ -7723,7 +7723,7 @@ var Rg = class {
|
|
|
7723
7723
|
}
|
|
7724
7724
|
return Au(a, r), Tu(i, a);
|
|
7725
7725
|
} else if (!t || typeof t != "object") {
|
|
7726
|
-
if (i = n(t), i === void 0 && (i = t), i ===
|
|
7726
|
+
if (i = n(t), i === void 0 && (i = t), i === Ad && (i = void 0), this.autoFreeze_ && co(i, !0), r) {
|
|
7727
7727
|
const a = [], s = [];
|
|
7728
7728
|
Mn("Patches").generateReplacementPatches_(t, i, a, s), r(a, s);
|
|
7729
7729
|
}
|
|
@@ -7785,12 +7785,12 @@ var Rg = class {
|
|
|
7785
7785
|
};
|
|
7786
7786
|
function js(e, t) {
|
|
7787
7787
|
const n = oa(e) ? Mn("MapSet").proxyMap_(e, t) : ua(e) ? Mn("MapSet").proxySet_(e, t) : Ng(e, t);
|
|
7788
|
-
return (t ? t.scope_ :
|
|
7788
|
+
return (t ? t.scope_ : Sd()).drafts_.push(n), n;
|
|
7789
7789
|
}
|
|
7790
7790
|
function Ig(e) {
|
|
7791
|
-
return Pn(e) || wt(10, e),
|
|
7791
|
+
return Pn(e) || wt(10, e), Od(e);
|
|
7792
7792
|
}
|
|
7793
|
-
function
|
|
7793
|
+
function Od(e) {
|
|
7794
7794
|
if (!Nn(e) || la(e))
|
|
7795
7795
|
return e;
|
|
7796
7796
|
const t = e[Bt];
|
|
@@ -7802,7 +7802,7 @@ function jd(e) {
|
|
|
7802
7802
|
} else
|
|
7803
7803
|
n = As(e, !0);
|
|
7804
7804
|
return Wi(n, (r, i) => {
|
|
7805
|
-
|
|
7805
|
+
Td(n, r, Od(i));
|
|
7806
7806
|
}), t && (t.finalized_ = !1), n;
|
|
7807
7807
|
}
|
|
7808
7808
|
var Tt = new Rg(), ho = Tt.produce;
|
|
@@ -7851,7 +7851,7 @@ var ju = Tt.createDraft.bind(Tt), Ou = Tt.finishDraft.bind(Tt), $g = {
|
|
|
7851
7851
|
e.current = i, i == null && e.unref();
|
|
7852
7852
|
}
|
|
7853
7853
|
}
|
|
7854
|
-
}, Vi = /* @__PURE__ */ new WeakMap(), Ki = /* @__PURE__ */ new WeakMap(), Sr = /* @__PURE__ */ new WeakMap(),
|
|
7854
|
+
}, Vi = /* @__PURE__ */ new WeakMap(), Ki = /* @__PURE__ */ new WeakMap(), Sr = /* @__PURE__ */ new WeakMap(), Pd = /* @__PURE__ */ new WeakMap(), Pu = /* @__PURE__ */ new WeakMap(), Nu = /* @__PURE__ */ new WeakMap(), Mu = /* @__PURE__ */ new WeakMap(), N = {
|
|
7855
7855
|
ancestors(e) {
|
|
7856
7856
|
var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, {
|
|
7857
7857
|
reverse: n = !1
|
|
@@ -8312,11 +8312,11 @@ var Ug = (e, t, n) => {
|
|
|
8312
8312
|
setSelection(e, t) {
|
|
8313
8313
|
e.setSelection(t);
|
|
8314
8314
|
}
|
|
8315
|
-
},
|
|
8315
|
+
}, Nd = (e, t) => {
|
|
8316
8316
|
for (var n in e) {
|
|
8317
8317
|
var r = e[n], i = t[n];
|
|
8318
8318
|
if (ot(r) && ot(i)) {
|
|
8319
|
-
if (!
|
|
8319
|
+
if (!Nd(r, i))
|
|
8320
8320
|
return !1;
|
|
8321
8321
|
} else if (Array.isArray(r) && Array.isArray(i)) {
|
|
8322
8322
|
if (r.length !== i.length)
|
|
@@ -9150,7 +9150,7 @@ var me = {
|
|
|
9150
9150
|
var s = on(a, tv);
|
|
9151
9151
|
return s;
|
|
9152
9152
|
}
|
|
9153
|
-
return
|
|
9153
|
+
return Nd(r ? i(e) : e, r ? i(t) : t);
|
|
9154
9154
|
},
|
|
9155
9155
|
isText(e) {
|
|
9156
9156
|
return ot(e) && typeof e.text == "string";
|
|
@@ -9383,7 +9383,7 @@ var Q = di(di(di(di({}, Hg), Vg), Kg), kv), Fi = /* @__PURE__ */ new WeakMap(),
|
|
|
9383
9383
|
Fi.set(e, r);
|
|
9384
9384
|
}
|
|
9385
9385
|
};
|
|
9386
|
-
function
|
|
9386
|
+
function Md(e, t, n) {
|
|
9387
9387
|
var r = Vi.get(e) || [], i = Ki.get(e) || /* @__PURE__ */ new Set(), a, s, o = (h) => {
|
|
9388
9388
|
if (h) {
|
|
9389
9389
|
var m = h.join(",");
|
|
@@ -9411,7 +9411,7 @@ var Bv = (e, t) => {
|
|
|
9411
9411
|
zg.transform(i, t);
|
|
9412
9412
|
if (!Fv(e)) {
|
|
9413
9413
|
var a = N.operationCanTransformPath(t) ? (s) => N.transform(s, t) : void 0;
|
|
9414
|
-
|
|
9414
|
+
Md(e, e.getDirtyPaths(t), a);
|
|
9415
9415
|
}
|
|
9416
9416
|
Q.transform(e, t), e.operations.push(t), y.normalize(e, {
|
|
9417
9417
|
operation: t
|
|
@@ -9855,7 +9855,7 @@ var t0 = function(t, n) {
|
|
|
9855
9855
|
var r = y.end(e, n);
|
|
9856
9856
|
return Be.equals(t, r);
|
|
9857
9857
|
}, s0 = (e) => {
|
|
9858
|
-
var t =
|
|
9858
|
+
var t = Pd.get(e);
|
|
9859
9859
|
return t === void 0 ? !0 : t;
|
|
9860
9860
|
}, o0 = (e, t, n) => {
|
|
9861
9861
|
if (t.offset !== 0)
|
|
@@ -10328,7 +10328,7 @@ var S0 = (e, t) => {
|
|
|
10328
10328
|
}
|
|
10329
10329
|
}
|
|
10330
10330
|
}, j0 = (e, t) => {
|
|
10331
|
-
|
|
10331
|
+
Pd.set(e, t);
|
|
10332
10332
|
}, O0 = (e, t) => y.point(e, t, {
|
|
10333
10333
|
edge: "start"
|
|
10334
10334
|
}), P0 = function(t, n) {
|
|
@@ -10824,7 +10824,7 @@ var W0 = function(t, n) {
|
|
|
10824
10824
|
for (var M of n)
|
|
10825
10825
|
L();
|
|
10826
10826
|
}, () => {
|
|
10827
|
-
|
|
10827
|
+
Md(t, _, (L) => {
|
|
10828
10828
|
var M = L;
|
|
10829
10829
|
for (var A of w)
|
|
10830
10830
|
if (N.operationCanTransformPath(A) && (M = N.transform(M, A), !M))
|
|
@@ -10912,10 +10912,10 @@ var W0 = function(t, n) {
|
|
|
10912
10912
|
}
|
|
10913
10913
|
}
|
|
10914
10914
|
});
|
|
10915
|
-
}, K0 = ["text"], Z0 = ["children"],
|
|
10915
|
+
}, K0 = ["text"], Z0 = ["children"], Rd = (e, t) => {
|
|
10916
10916
|
if (he.isElement(t)) {
|
|
10917
10917
|
var n = t;
|
|
10918
|
-
return y.isVoid(e, t) ? !0 : n.children.length === 1 ?
|
|
10918
|
+
return y.isVoid(e, t) ? !0 : n.children.length === 1 ? Rd(e, n.children[0]) : !1;
|
|
10919
10919
|
} else
|
|
10920
10920
|
return !y.isEditor(t);
|
|
10921
10921
|
}, Y0 = function(t) {
|
|
@@ -10969,7 +10969,7 @@ var W0 = function(t, n) {
|
|
|
10969
10969
|
}).slice(x.length).slice(0, -1), w = y.above(t, {
|
|
10970
10970
|
at: g,
|
|
10971
10971
|
mode: "highest",
|
|
10972
|
-
match: (L) => E.includes(L) &&
|
|
10972
|
+
match: (L) => E.includes(L) && Rd(t, L)
|
|
10973
10973
|
}), _ = w && y.pathRef(t, w[1]), S, z;
|
|
10974
10974
|
if (me.isText(p) && me.isText(f)) {
|
|
10975
10975
|
var O = on(p, K0);
|
|
@@ -11868,16 +11868,16 @@ var rb = function(t, n) {
|
|
|
11868
11868
|
}, t.writeHistory = (r, i) => {
|
|
11869
11869
|
t.history[r].push(i);
|
|
11870
11870
|
}, t;
|
|
11871
|
-
}, ob = (e, t) => !!(t && e.type === "insert_text" && t.type === "insert_text" && e.offset === t.offset + t.text.length && N.equals(e.path, t.path) || t && e.type === "remove_text" && t.type === "remove_text" && e.offset + e.text.length === t.offset && N.equals(e.path, t.path)), ub = (e, t) => e.type !== "set_selection", lb = fb,
|
|
11871
|
+
}, ob = (e, t) => !!(t && e.type === "insert_text" && t.type === "insert_text" && e.offset === t.offset + t.text.length && N.equals(e.path, t.path) || t && e.type === "remove_text" && t.type === "remove_text" && e.offset + e.text.length === t.offset && N.equals(e.path, t.path)), ub = (e, t) => e.type !== "set_selection", lb = fb, Id = "֑-߿יִ-﷽ﹰ-ﻼ", $d = "A-Za-zÀ-ÖØ-öø-ʸ̀-ࠀ-Ⰰ-︀--", cb = new RegExp("^[^" + $d + "]*[" + Id + "]"), db = new RegExp("^[^" + Id + "]*[" + $d + "]");
|
|
11872
11872
|
function fb(e) {
|
|
11873
11873
|
return e = String(e || ""), cb.test(e) ? "rtl" : db.test(e) ? "ltr" : "neutral";
|
|
11874
11874
|
}
|
|
11875
|
-
const
|
|
11875
|
+
const Ld = /* @__PURE__ */ Rn(lb);
|
|
11876
11876
|
function hb(e) {
|
|
11877
11877
|
var t = typeof e;
|
|
11878
11878
|
return e != null && (t == "object" || t == "function");
|
|
11879
11879
|
}
|
|
11880
|
-
var vo = hb, mb = typeof ei == "object" && ei && ei.Object === Object && ei, pb = mb, gb = pb, vb = typeof self == "object" && self && self.Object === Object && self, bb = gb || vb || Function("return this")(),
|
|
11880
|
+
var vo = hb, mb = typeof ei == "object" && ei && ei.Object === Object && ei, pb = mb, gb = pb, vb = typeof self == "object" && self && self.Object === Object && self, bb = gb || vb || Function("return this")(), zd = bb, yb = zd, Db = function() {
|
|
11881
11881
|
return yb.Date.now();
|
|
11882
11882
|
}, xb = Db, wb = /\s/;
|
|
11883
11883
|
function Cb(e) {
|
|
@@ -11889,7 +11889,7 @@ var Eb = Cb, _b = Eb, kb = /^\s+/;
|
|
|
11889
11889
|
function Fb(e) {
|
|
11890
11890
|
return e && e.slice(0, _b(e) + 1).replace(kb, "");
|
|
11891
11891
|
}
|
|
11892
|
-
var Ab = Fb, Bb =
|
|
11892
|
+
var Ab = Fb, Bb = zd, Tb = Bb.Symbol, qd = Tb, dl = qd, Wd = Object.prototype, Sb = Wd.hasOwnProperty, jb = Wd.toString, _r = dl ? dl.toStringTag : void 0;
|
|
11893
11893
|
function Ob(e) {
|
|
11894
11894
|
var t = Sb.call(e, _r), n = e[_r];
|
|
11895
11895
|
try {
|
|
@@ -11904,7 +11904,7 @@ var Pb = Ob, Nb = Object.prototype, Mb = Nb.toString;
|
|
|
11904
11904
|
function Rb(e) {
|
|
11905
11905
|
return Mb.call(e);
|
|
11906
11906
|
}
|
|
11907
|
-
var Ib = Rb, fl =
|
|
11907
|
+
var Ib = Rb, fl = qd, $b = Pb, Lb = Ib, zb = "[object Null]", qb = "[object Undefined]", hl = fl ? fl.toStringTag : void 0;
|
|
11908
11908
|
function Wb(e) {
|
|
11909
11909
|
return e == null ? e === void 0 ? qb : zb : hl && hl in Object(e) ? $b(e) : Lb(e);
|
|
11910
11910
|
}
|
|
@@ -11980,9 +11980,9 @@ function cy(e, t, n) {
|
|
|
11980
11980
|
}
|
|
11981
11981
|
return w.cancel = k, w.flush = E, w;
|
|
11982
11982
|
}
|
|
11983
|
-
var
|
|
11984
|
-
const dy = /* @__PURE__ */ Rn(
|
|
11985
|
-
var fy =
|
|
11983
|
+
var Ud = cy;
|
|
11984
|
+
const dy = /* @__PURE__ */ Rn(Ud);
|
|
11985
|
+
var fy = Ud, hy = vo, my = "Expected a function";
|
|
11986
11986
|
function py(e, t, n) {
|
|
11987
11987
|
var r = !0, i = !0;
|
|
11988
11988
|
if (typeof e != "function")
|
|
@@ -12101,7 +12101,7 @@ var Sn = function(e) {
|
|
|
12101
12101
|
this.inlineSize = t, this.blockSize = n, Sn(this);
|
|
12102
12102
|
}
|
|
12103
12103
|
return e;
|
|
12104
|
-
}(),
|
|
12104
|
+
}(), Hd = function() {
|
|
12105
12105
|
function e(t, n, r, i) {
|
|
12106
12106
|
return this.x = t, this.y = n, this.width = r, this.height = i, this.top = this.y, this.left = this.x, this.bottom = this.top + this.height, this.right = this.left + this.width, Sn(this);
|
|
12107
12107
|
}
|
|
@@ -12113,7 +12113,7 @@ var Sn = function(e) {
|
|
|
12113
12113
|
}, e;
|
|
12114
12114
|
}(), bo = function(e) {
|
|
12115
12115
|
return e instanceof SVGElement && "getBBox" in e;
|
|
12116
|
-
},
|
|
12116
|
+
}, Vd = function(e) {
|
|
12117
12117
|
if (bo(e)) {
|
|
12118
12118
|
var t = e.getBBox(), n = t.width, r = t.height;
|
|
12119
12119
|
return !n && !r;
|
|
@@ -12149,21 +12149,21 @@ var Sn = function(e) {
|
|
|
12149
12149
|
devicePixelContentBoxSize: nr(),
|
|
12150
12150
|
borderBoxSize: nr(),
|
|
12151
12151
|
contentBoxSize: nr(),
|
|
12152
|
-
contentRect: new
|
|
12153
|
-
}),
|
|
12152
|
+
contentRect: new Hd(0, 0, 0, 0)
|
|
12153
|
+
}), Kd = function(e, t) {
|
|
12154
12154
|
if (t === void 0 && (t = !1), hi.has(e) && !t)
|
|
12155
12155
|
return hi.get(e);
|
|
12156
|
-
if (
|
|
12156
|
+
if (Vd(e))
|
|
12157
12157
|
return hi.set(e, Cl), Cl;
|
|
12158
12158
|
var n = getComputedStyle(e), r = bo(e) && e.ownerSVGElement && e.getBBox(), i = !Fy && n.boxSizing === "border-box", a = ky.test(n.writingMode || ""), s = !r && wl.test(n.overflowY || ""), o = !r && wl.test(n.overflowX || ""), l = r ? 0 : Wt(n.paddingTop), u = r ? 0 : Wt(n.paddingRight), d = r ? 0 : Wt(n.paddingBottom), h = r ? 0 : Wt(n.paddingLeft), m = r ? 0 : Wt(n.borderTopWidth), p = r ? 0 : Wt(n.borderRightWidth), g = r ? 0 : Wt(n.borderBottomWidth), f = r ? 0 : Wt(n.borderLeftWidth), b = h + u, v = l + d, x = f + p, k = m + g, E = o ? e.offsetHeight - k - e.clientHeight : 0, w = s ? e.offsetWidth - x - e.clientWidth : 0, _ = i ? b + x : 0, S = i ? v + k : 0, z = r ? r.width : Wt(n.width) - _ - w, O = r ? r.height : Wt(n.height) - S - E, L = z + b + w + x, M = O + v + E + k, A = Sn({
|
|
12159
12159
|
devicePixelContentBoxSize: nr(Math.round(z * devicePixelRatio), Math.round(O * devicePixelRatio), a),
|
|
12160
12160
|
borderBoxSize: nr(L, M, a),
|
|
12161
12161
|
contentBoxSize: nr(z, O, a),
|
|
12162
|
-
contentRect: new
|
|
12162
|
+
contentRect: new Hd(h, l, z, O)
|
|
12163
12163
|
});
|
|
12164
12164
|
return hi.set(e, A), A;
|
|
12165
|
-
},
|
|
12166
|
-
var r =
|
|
12165
|
+
}, Zd = function(e, t, n) {
|
|
12166
|
+
var r = Kd(e, n), i = r.borderBoxSize, a = r.contentBoxSize, s = r.devicePixelContentBoxSize;
|
|
12167
12167
|
switch (t) {
|
|
12168
12168
|
case Ur.DEVICE_PIXEL_CONTENT_BOX:
|
|
12169
12169
|
return s;
|
|
@@ -12174,12 +12174,12 @@ var Sn = function(e) {
|
|
|
12174
12174
|
}
|
|
12175
12175
|
}, Ay = function() {
|
|
12176
12176
|
function e(t) {
|
|
12177
|
-
var n =
|
|
12177
|
+
var n = Kd(t);
|
|
12178
12178
|
this.target = t, this.contentRect = n.contentRect, this.borderBoxSize = Sn([n.borderBoxSize]), this.contentBoxSize = Sn([n.contentBoxSize]), this.devicePixelContentBoxSize = Sn([n.devicePixelContentBoxSize]);
|
|
12179
12179
|
}
|
|
12180
12180
|
return e;
|
|
12181
|
-
}(),
|
|
12182
|
-
if (
|
|
12181
|
+
}(), Yd = function(e) {
|
|
12182
|
+
if (Vd(e))
|
|
12183
12183
|
return 1 / 0;
|
|
12184
12184
|
for (var t = 0, n = e.parentNode; n; )
|
|
12185
12185
|
t += 1, n = n.parentNode;
|
|
@@ -12190,8 +12190,8 @@ var Sn = function(e) {
|
|
|
12190
12190
|
if (s.activeTargets.length !== 0) {
|
|
12191
12191
|
var o = [];
|
|
12192
12192
|
s.activeTargets.forEach(function(u) {
|
|
12193
|
-
var d = new Ay(u.target), h =
|
|
12194
|
-
o.push(d), u.lastReportedSize =
|
|
12193
|
+
var d = new Ay(u.target), h = Yd(u.target);
|
|
12194
|
+
o.push(d), u.lastReportedSize = Zd(u.target, u.observedBox), h < e && (e = h);
|
|
12195
12195
|
}), t.push(function() {
|
|
12196
12196
|
s.callback.call(s.observer, o, s.observer);
|
|
12197
12197
|
}), s.activeTargets.splice(0, s.activeTargets.length);
|
|
@@ -12205,7 +12205,7 @@ var Sn = function(e) {
|
|
|
12205
12205
|
}, El = function(e) {
|
|
12206
12206
|
Tn.forEach(function(n) {
|
|
12207
12207
|
n.activeTargets.splice(0, n.activeTargets.length), n.skippedTargets.splice(0, n.skippedTargets.length), n.observationTargets.forEach(function(i) {
|
|
12208
|
-
i.isActive() && (
|
|
12208
|
+
i.isActive() && (Yd(i.target) > e ? n.activeTargets.push(i) : n.skippedTargets.push(i));
|
|
12209
12209
|
});
|
|
12210
12210
|
});
|
|
12211
12211
|
}, Ty = function() {
|
|
@@ -12213,8 +12213,8 @@ var Sn = function(e) {
|
|
|
12213
12213
|
for (El(e); xy(); )
|
|
12214
12214
|
e = By(), El(e);
|
|
12215
12215
|
return wy() && Cy(), e > 0;
|
|
12216
|
-
}, La,
|
|
12217
|
-
return
|
|
12216
|
+
}, La, Gd = [], Sy = function() {
|
|
12217
|
+
return Gd.splice(0).forEach(function(e) {
|
|
12218
12218
|
return e();
|
|
12219
12219
|
});
|
|
12220
12220
|
}, jy = function(e) {
|
|
@@ -12226,7 +12226,7 @@ var Sn = function(e) {
|
|
|
12226
12226
|
n.textContent = "".concat(t ? t-- : t++);
|
|
12227
12227
|
};
|
|
12228
12228
|
}
|
|
12229
|
-
|
|
12229
|
+
Gd.push(e), La();
|
|
12230
12230
|
}, Oy = function(e) {
|
|
12231
12231
|
jy(function() {
|
|
12232
12232
|
requestAnimationFrame(e);
|
|
@@ -12303,7 +12303,7 @@ var Sn = function(e) {
|
|
|
12303
12303
|
};
|
|
12304
12304
|
}
|
|
12305
12305
|
return e.prototype.isActive = function() {
|
|
12306
|
-
var t =
|
|
12306
|
+
var t = Zd(this.target, this.observedBox, !0);
|
|
12307
12307
|
return Iy(this.target) && (this.lastReportedSize = t), this.lastReportedSize.inlineSize !== t.inlineSize || this.lastReportedSize.blockSize !== t.blockSize;
|
|
12308
12308
|
}, e;
|
|
12309
12309
|
}(), Ly = function() {
|
|
@@ -12368,7 +12368,7 @@ var qy = typeof window < "u" && /Mac|iPod|iPhone|iPad/.test(window.navigator.pla
|
|
|
12368
12368
|
control: "ctrlKey",
|
|
12369
12369
|
meta: "metaKey",
|
|
12370
12370
|
shift: "shiftKey"
|
|
12371
|
-
},
|
|
12371
|
+
}, Qd = {
|
|
12372
12372
|
add: "+",
|
|
12373
12373
|
break: "pause",
|
|
12374
12374
|
cmd: "meta",
|
|
@@ -12431,10 +12431,10 @@ for (var gi = 1; gi < 20; gi++)
|
|
|
12431
12431
|
function ca(e, t, n) {
|
|
12432
12432
|
t && !("byKey" in t) && (n = t, t = null), Array.isArray(e) || (e = [e]);
|
|
12433
12433
|
var r = e.map(function(s) {
|
|
12434
|
-
return
|
|
12434
|
+
return Jd(s, t);
|
|
12435
12435
|
}), i = function(o) {
|
|
12436
12436
|
return r.some(function(l) {
|
|
12437
|
-
return
|
|
12437
|
+
return Xd(l, o);
|
|
12438
12438
|
});
|
|
12439
12439
|
}, a = n == null ? i : i(n);
|
|
12440
12440
|
return a;
|
|
@@ -12445,7 +12445,7 @@ function Wy(e, t) {
|
|
|
12445
12445
|
function Uy(e, t) {
|
|
12446
12446
|
return ca(e, { byKey: !0 }, t);
|
|
12447
12447
|
}
|
|
12448
|
-
function
|
|
12448
|
+
function Jd(e, t) {
|
|
12449
12449
|
var n = t && t.byKey, r = {};
|
|
12450
12450
|
e = e.replace("++", "+add");
|
|
12451
12451
|
var i = e.split("+"), a = i.length;
|
|
@@ -12457,9 +12457,9 @@ function Qd(e, t) {
|
|
|
12457
12457
|
var m = h.value, p = m.endsWith("?") && m.length > 1;
|
|
12458
12458
|
p && (m = m.slice(0, -1));
|
|
12459
12459
|
var g = Do(m), f = qa[g];
|
|
12460
|
-
if (m.length > 1 && !f && !
|
|
12460
|
+
if (m.length > 1 && !f && !Qd[m] && !yo[g])
|
|
12461
12461
|
throw new TypeError('Unknown modifier: "' + m + '"');
|
|
12462
|
-
(a === 1 || !f) && (n ? r.key = g : r.which =
|
|
12462
|
+
(a === 1 || !f) && (n ? r.key = g : r.which = ef(m)), f && (r[f] = p ? null : !0);
|
|
12463
12463
|
}
|
|
12464
12464
|
} catch (b) {
|
|
12465
12465
|
l = !0, u = b;
|
|
@@ -12473,7 +12473,7 @@ function Qd(e, t) {
|
|
|
12473
12473
|
}
|
|
12474
12474
|
return r;
|
|
12475
12475
|
}
|
|
12476
|
-
function
|
|
12476
|
+
function Xd(e, t) {
|
|
12477
12477
|
for (var n in e) {
|
|
12478
12478
|
var r = e[n], i = void 0;
|
|
12479
12479
|
if (r != null && (n === "key" && t.key != null ? i = t.key.toLowerCase() : n === "which" ? i = r === 91 && t.which === 93 ? 91 : t.which : i = t[n], !(i == null && r === !1) && i !== r))
|
|
@@ -12481,20 +12481,20 @@ function Jd(e, t) {
|
|
|
12481
12481
|
}
|
|
12482
12482
|
return !0;
|
|
12483
12483
|
}
|
|
12484
|
-
function
|
|
12484
|
+
function ef(e) {
|
|
12485
12485
|
e = Do(e);
|
|
12486
12486
|
var t = yo[e] || e.toUpperCase().charCodeAt(0);
|
|
12487
12487
|
return t;
|
|
12488
12488
|
}
|
|
12489
12489
|
function Do(e) {
|
|
12490
|
-
return e = e.toLowerCase(), e =
|
|
12490
|
+
return e = e.toLowerCase(), e = Qd[e] || e, e;
|
|
12491
12491
|
}
|
|
12492
12492
|
var Hy = ln.default = ca, Wa = ln.isHotkey = ca;
|
|
12493
12493
|
ln.isCodeHotkey = Wy;
|
|
12494
12494
|
ln.isKeyHotkey = Uy;
|
|
12495
|
-
ln.parseHotkey =
|
|
12496
|
-
ln.compareHotkey =
|
|
12497
|
-
ln.toKeyCode =
|
|
12495
|
+
ln.parseHotkey = Jd;
|
|
12496
|
+
ln.compareHotkey = Xd;
|
|
12497
|
+
ln.toKeyCode = ef;
|
|
12498
12498
|
ln.toKeyName = Do;
|
|
12499
12499
|
function Vy(e, t) {
|
|
12500
12500
|
if (e == null)
|
|
@@ -12552,19 +12552,19 @@ var xo = /* @__PURE__ */ Et(null), Cn = () => {
|
|
|
12552
12552
|
if (!e)
|
|
12553
12553
|
throw new Error("The `useSlateStatic` hook must be used inside the <Slate> component's context.");
|
|
12554
12554
|
return e;
|
|
12555
|
-
},
|
|
12555
|
+
}, tf = parseInt(re.version.split(".")[0], 10), Yy = typeof navigator < "u" && typeof window < "u" && /iPad|iPhone|iPod/.test(navigator.userAgent) && !window.MSStream, Bl = typeof navigator < "u" && /Mac OS X/.test(navigator.userAgent), pt = typeof navigator < "u" && /Android/.test(navigator.userAgent), Xn = typeof navigator < "u" && /^(?!.*Seamonkey)(?=.*Firefox).*/i.test(navigator.userAgent), Br = typeof navigator < "u" && /AppleWebKit(?!.*Chrome)/i.test(navigator.userAgent), Gy = typeof navigator < "u" && /Edge?\/(?:[0-6][0-9]|[0-7][0-8])(?:\.)/i.test(navigator.userAgent), nf = typeof navigator < "u" && /Chrome/i.test(navigator.userAgent), Qy = typeof navigator < "u" && /Chrome?\/(?:[0-7][0-5]|[0-6][0-9])(?:\.)/i.test(navigator.userAgent), Jy = pt && typeof navigator < "u" && /Chrome?\/(?:[0-5]?\d)(?:\.)/i.test(navigator.userAgent), Xy = typeof navigator < "u" && /^(?!.*Seamonkey)(?=.*Firefox\/(?:[0-7][0-9]|[0-8][0-6])(?:\.)).*/i.test(navigator.userAgent), e1 = typeof navigator < "u" && /.*UCBrowser/.test(navigator.userAgent), t1 = typeof navigator < "u" && /.*Wechat/.test(navigator.userAgent) && !/.*MacWechat/.test(navigator.userAgent), Bi = typeof window < "u" && typeof window.document < "u" && typeof window.document.createElement < "u", dn = (!Qy || !Jy) && !Gy && // globalThis is undefined in older browsers
|
|
12556
12556
|
typeof globalThis < "u" && globalThis.InputEvent && // @ts-ignore The `getTargetRanges` property isn't recognized.
|
|
12557
|
-
typeof globalThis.InputEvent.prototype.getTargetRanges == "function", wo = /* @__PURE__ */ new WeakMap(), Co = /* @__PURE__ */ new WeakMap(),
|
|
12557
|
+
typeof globalThis.InputEvent.prototype.getTargetRanges == "function", wo = /* @__PURE__ */ new WeakMap(), Co = /* @__PURE__ */ new WeakMap(), rf = /* @__PURE__ */ new WeakMap(), Ti = /* @__PURE__ */ new WeakMap(), Ps = /* @__PURE__ */ new WeakMap(), Vr = /* @__PURE__ */ new WeakMap(), jn = /* @__PURE__ */ new WeakMap(), Zi = /* @__PURE__ */ new WeakMap(), da = /* @__PURE__ */ new WeakMap(), Ns = /* @__PURE__ */ new WeakMap(), vn = /* @__PURE__ */ new WeakMap(), An = /* @__PURE__ */ new WeakMap(), Or = /* @__PURE__ */ new WeakMap(), Ms = /* @__PURE__ */ new WeakMap(), Eo = /* @__PURE__ */ new WeakMap(), $t = /* @__PURE__ */ new WeakMap(), nn = /* @__PURE__ */ new WeakMap(), xt = /* @__PURE__ */ new WeakMap(), hn = /* @__PURE__ */ new WeakMap(), mn = /* @__PURE__ */ new WeakMap(), af = /* @__PURE__ */ new WeakMap(), lr = Symbol("placeholder"), sf = Symbol("mark-placeholder"), n1 = globalThis.Text, _o = (e) => e && e.ownerDocument && e.ownerDocument.defaultView || null, r1 = (e) => Dn(e) && e.nodeType === 8, Nt = (e) => Dn(e) && e.nodeType === 1, Dn = (e) => {
|
|
12558
12558
|
var t = _o(e);
|
|
12559
12559
|
return !!t && e instanceof t.Node;
|
|
12560
12560
|
}, Rs = (e) => {
|
|
12561
12561
|
var t = e && e.anchorNode && _o(e.anchorNode);
|
|
12562
12562
|
return !!t && e instanceof t.Selection;
|
|
12563
|
-
},
|
|
12563
|
+
}, of = (e) => Dn(e) && e.nodeType === 3, i1 = (e) => e.clipboardData && e.clipboardData.getData("text/plain") !== "" && e.clipboardData.types.length === 1, a1 = (e) => {
|
|
12564
12564
|
var [t, n] = e;
|
|
12565
12565
|
if (Nt(t) && t.childNodes.length) {
|
|
12566
12566
|
var r = n === t.childNodes.length, i = r ? n - 1 : n;
|
|
12567
|
-
for ([t, i] =
|
|
12567
|
+
for ([t, i] = uf(t, i, r ? "backward" : "forward"), r = i < n; Nt(t) && t.childNodes.length; ) {
|
|
12568
12568
|
var a = r ? t.childNodes.length - 1 : 0;
|
|
12569
12569
|
t = o1(t, a, r ? "backward" : "forward");
|
|
12570
12570
|
}
|
|
@@ -12578,7 +12578,7 @@ typeof globalThis.InputEvent.prototype.getTargetRanges == "function", wo = /* @_
|
|
|
12578
12578
|
t = t.parentNode;
|
|
12579
12579
|
}
|
|
12580
12580
|
return !1;
|
|
12581
|
-
},
|
|
12581
|
+
}, uf = (e, t, n) => {
|
|
12582
12582
|
for (var {
|
|
12583
12583
|
childNodes: r
|
|
12584
12584
|
} = e, i = r[t], a = t, s = !1, o = !1; (r1(i) || Nt(i) && i.childNodes.length === 0 || Nt(i) && i.getAttribute("contenteditable") === "false") && !(s && o); ) {
|
|
@@ -12594,15 +12594,15 @@ typeof globalThis.InputEvent.prototype.getTargetRanges == "function", wo = /* @_
|
|
|
12594
12594
|
}
|
|
12595
12595
|
return [i, t];
|
|
12596
12596
|
}, o1 = (e, t, n) => {
|
|
12597
|
-
var [r] =
|
|
12597
|
+
var [r] = uf(e, t, n);
|
|
12598
12598
|
return r;
|
|
12599
|
-
},
|
|
12599
|
+
}, lf = (e) => {
|
|
12600
12600
|
var t = "";
|
|
12601
|
-
if (
|
|
12601
|
+
if (of(e) && e.nodeValue)
|
|
12602
12602
|
return e.nodeValue;
|
|
12603
12603
|
if (Nt(e)) {
|
|
12604
12604
|
for (var n of Array.from(e.childNodes))
|
|
12605
|
-
t +=
|
|
12605
|
+
t += lf(n);
|
|
12606
12606
|
var r = getComputedStyle(e).getPropertyValue("display");
|
|
12607
12607
|
(r === "block" || r === "list" || e.tagName === "BR") && (t += `
|
|
12608
12608
|
`);
|
|
@@ -12746,7 +12746,7 @@ var ee = {
|
|
|
12746
12746
|
}
|
|
12747
12747
|
},
|
|
12748
12748
|
getWindow: (e) => {
|
|
12749
|
-
var t =
|
|
12749
|
+
var t = rf.get(e);
|
|
12750
12750
|
if (!t)
|
|
12751
12751
|
throw new Error("Unable to find a host window element for this editor");
|
|
12752
12752
|
return t;
|
|
@@ -12944,7 +12944,7 @@ var ee = {
|
|
|
12944
12944
|
m.startContainer === u ? (o = p.endContainer, l = p.endOffset, d = m.startOffset) : (o = m.startContainer, l = m.endOffset, d = p.startOffset);
|
|
12945
12945
|
} else
|
|
12946
12946
|
o = t.anchorNode, l = t.anchorOffset, u = t.focusNode, d = t.focusOffset;
|
|
12947
|
-
|
|
12947
|
+
nf && s1(o) || Xn ? h = t.anchorNode === t.focusNode && t.anchorOffset === t.focusOffset : h = t.isCollapsed;
|
|
12948
12948
|
} else
|
|
12949
12949
|
o = t.startContainer, l = t.startOffset, u = t.endContainer, d = t.endOffset, h = t.collapsed;
|
|
12950
12950
|
if (o == null || u == null || l == null || d == null)
|
|
@@ -12997,7 +12997,7 @@ function f1(e, t) {
|
|
|
12997
12997
|
var s = oe.get(e, a);
|
|
12998
12998
|
return me.isText(s) && s.text.startsWith(r.text);
|
|
12999
12999
|
}
|
|
13000
|
-
function
|
|
13000
|
+
function cf(e) {
|
|
13001
13001
|
for (var t = arguments.length, n = new Array(t > 1 ? t - 1 : 0), r = 1; r < t; r++)
|
|
13002
13002
|
n[r - 1] = arguments[r];
|
|
13003
13003
|
return n.reduce((i, a) => i.slice(0, a.start) + a.text + i.slice(a.end), e);
|
|
@@ -13014,7 +13014,7 @@ function m1(e, t, n) {
|
|
|
13014
13014
|
return i;
|
|
13015
13015
|
return r;
|
|
13016
13016
|
}
|
|
13017
|
-
function
|
|
13017
|
+
function df(e, t) {
|
|
13018
13018
|
var {
|
|
13019
13019
|
start: n,
|
|
13020
13020
|
end: r,
|
|
@@ -13027,8 +13027,8 @@ function cf(e, t) {
|
|
|
13027
13027
|
return u.start === u.end && u.text.length === 0 ? null : u;
|
|
13028
13028
|
}
|
|
13029
13029
|
function p1(e, t, n) {
|
|
13030
|
-
var r = Math.min(t.start, n.start), i = Math.max(0, Math.min(t.start + t.text.length, n.end) - n.start), a =
|
|
13031
|
-
return
|
|
13030
|
+
var r = Math.min(t.start, n.start), i = Math.max(0, Math.min(t.start + t.text.length, n.end) - n.start), a = cf(e, t, n), s = Math.max(n.start + n.text.length, t.start + t.text.length + (t.start + t.text.length > n.start ? n.text.length : 0) - i), o = a.slice(r, s), l = Math.max(t.end, n.end - t.text.length + (t.end - t.start));
|
|
13031
|
+
return df(e, {
|
|
13032
13032
|
start: r,
|
|
13033
13033
|
end: l,
|
|
13034
13034
|
text: o
|
|
@@ -13335,7 +13335,7 @@ function w1(e) {
|
|
|
13335
13335
|
xt.set(t, j);
|
|
13336
13336
|
var H = oe.leaf(t, A), U = j.findIndex((D) => N.equals(D.path, A));
|
|
13337
13337
|
if (U < 0) {
|
|
13338
|
-
var G =
|
|
13338
|
+
var G = df(H.text, C);
|
|
13339
13339
|
G && j.push({
|
|
13340
13340
|
path: A,
|
|
13341
13341
|
diff: C,
|
|
@@ -13395,7 +13395,7 @@ function w1(e) {
|
|
|
13395
13395
|
text: "",
|
|
13396
13396
|
start: R.offset,
|
|
13397
13397
|
end: q.offset
|
|
13398
|
-
}, de = xt.get(t), J = de == null ? void 0 : de.find((be) => N.equals(be.path, te)), ve = J ? [J.diff, ne] : [ne], ge =
|
|
13398
|
+
}, de = xt.get(t), J = de == null ? void 0 : de.find((be) => N.equals(be.path, te)), ve = J ? [J.diff, ne] : [ne], ge = cf(W.text, ...ve);
|
|
13399
13399
|
if (ge.length === 0 && (D = !1), K.isExpanded(j)) {
|
|
13400
13400
|
if (D && N.equals(j.anchor.path, j.focus.path)) {
|
|
13401
13401
|
var Ae = {
|
|
@@ -13575,7 +13575,7 @@ function w1(e) {
|
|
|
13575
13575
|
}, M = (A) => {
|
|
13576
13576
|
if (!(E() || k()) && A.some((T) => ko(t, T, A))) {
|
|
13577
13577
|
var C;
|
|
13578
|
-
(C =
|
|
13578
|
+
(C = af.get(t)) === null || C === void 0 || C();
|
|
13579
13579
|
}
|
|
13580
13580
|
};
|
|
13581
13581
|
return {
|
|
@@ -13600,7 +13600,7 @@ function C1() {
|
|
|
13600
13600
|
e.current = !1;
|
|
13601
13601
|
}), []), e.current;
|
|
13602
13602
|
}
|
|
13603
|
-
var Kr = Bi ?
|
|
13603
|
+
var Kr = Bi ? mh : ce;
|
|
13604
13604
|
function E1(e, t, n) {
|
|
13605
13605
|
var [r] = ue(() => new MutationObserver(t));
|
|
13606
13606
|
Kr(() => {
|
|
@@ -13647,7 +13647,7 @@ var F1 = {
|
|
|
13647
13647
|
editor: r
|
|
13648
13648
|
}, n)));
|
|
13649
13649
|
return E1(t, a.handleDomMutations, F1), Eo.set(r, a.scheduleFlush), i && a.flush(), a;
|
|
13650
|
-
} : () => null, B1 = ["anchor", "focus"], T1 = ["anchor", "focus"], S1 = (e, t) => Object.keys(e).length === Object.keys(t).length && Object.keys(e).every((n) => t.hasOwnProperty(n) && e[n] === t[n]),
|
|
13650
|
+
} : () => null, B1 = ["anchor", "focus"], T1 = ["anchor", "focus"], S1 = (e, t) => Object.keys(e).length === Object.keys(t).length && Object.keys(e).every((n) => t.hasOwnProperty(n) && e[n] === t[n]), ff = (e, t) => {
|
|
13651
13651
|
var n = ur(e, B1), r = ur(t, T1);
|
|
13652
13652
|
return e[lr] === t[lr] && S1(n, r);
|
|
13653
13653
|
}, j1 = (e, t) => {
|
|
@@ -13655,7 +13655,7 @@ var F1 = {
|
|
|
13655
13655
|
return !1;
|
|
13656
13656
|
for (var n = 0; n < e.length; n++) {
|
|
13657
13657
|
var r = e[n], i = t[n];
|
|
13658
|
-
if (!K.equals(r, i) || !
|
|
13658
|
+
if (!K.equals(r, i) || !ff(r, i))
|
|
13659
13659
|
return !1;
|
|
13660
13660
|
}
|
|
13661
13661
|
return !0;
|
|
@@ -13664,7 +13664,7 @@ var F1 = {
|
|
|
13664
13664
|
return !1;
|
|
13665
13665
|
for (var n = 0; n < e.length; n++) {
|
|
13666
13666
|
var r = e[n], i = t[n];
|
|
13667
|
-
if (r.anchor.offset !== i.anchor.offset || r.focus.offset !== i.focus.offset || !
|
|
13667
|
+
if (r.anchor.offset !== i.anchor.offset || r.focus.offset !== i.focus.offset || !ff(r, i))
|
|
13668
13668
|
return !1;
|
|
13669
13669
|
}
|
|
13670
13670
|
return !0;
|
|
@@ -13696,7 +13696,7 @@ var N1 = (e) => {
|
|
|
13696
13696
|
leaf: n,
|
|
13697
13697
|
parent: r,
|
|
13698
13698
|
text: i
|
|
13699
|
-
} = e, a = Cn(), s = ee.findPath(a, i), o = N.parent(s), l = !!n[
|
|
13699
|
+
} = e, a = Cn(), s = ee.findPath(a, i), o = N.parent(s), l = !!n[sf];
|
|
13700
13700
|
return a.isVoid(r) ? /* @__PURE__ */ re.createElement(Ua, {
|
|
13701
13701
|
length: oe.string(r).length
|
|
13702
13702
|
}) : n.text === "" && r.children[r.children.length - 1] === i && !a.isInline(r) && y.string(a, o) === "" ? /* @__PURE__ */ re.createElement(Ua, {
|
|
@@ -13747,7 +13747,7 @@ function Ml(e, t) {
|
|
|
13747
13747
|
}
|
|
13748
13748
|
return n;
|
|
13749
13749
|
}
|
|
13750
|
-
function
|
|
13750
|
+
function hf(e) {
|
|
13751
13751
|
for (var t = 1; t < arguments.length; t++) {
|
|
13752
13752
|
var n = arguments[t] != null ? arguments[t] : {};
|
|
13753
13753
|
t % 2 ? Ml(Object(n), !0).forEach(function(r) {
|
|
@@ -13772,7 +13772,7 @@ var $1 = (e) => {
|
|
|
13772
13772
|
text: r,
|
|
13773
13773
|
parent: i,
|
|
13774
13774
|
renderPlaceholder: a,
|
|
13775
|
-
renderLeaf: s = (x) => /* @__PURE__ */ re.createElement(z1,
|
|
13775
|
+
renderLeaf: s = (x) => /* @__PURE__ */ re.createElement(z1, hf({}, x))
|
|
13776
13776
|
} = e, o = Cn(), l = Fe(null), u = Fe(null), [d, h] = ue(!1), m = Fe(null), p = Re((x) => {
|
|
13777
13777
|
if (I1(l, x == null), x == null) {
|
|
13778
13778
|
var k;
|
|
@@ -13833,7 +13833,7 @@ var $1 = (e) => {
|
|
|
13833
13833
|
attributes: t,
|
|
13834
13834
|
children: n
|
|
13835
13835
|
} = e;
|
|
13836
|
-
return /* @__PURE__ */ re.createElement("span",
|
|
13836
|
+
return /* @__PURE__ */ re.createElement("span", hf({}, t), n);
|
|
13837
13837
|
}, q1 = (e) => {
|
|
13838
13838
|
for (var {
|
|
13839
13839
|
decorations: t,
|
|
@@ -13862,7 +13862,7 @@ var $1 = (e) => {
|
|
|
13862
13862
|
"data-slate-node": "text",
|
|
13863
13863
|
ref: g
|
|
13864
13864
|
}, h);
|
|
13865
|
-
},
|
|
13865
|
+
}, mf = /* @__PURE__ */ re.memo(q1, (e, t) => t.parent === e.parent && t.isLast === e.isLast && t.renderLeaf === e.renderLeaf && t.renderPlaceholder === e.renderPlaceholder && t.text === e.text && O1(t.decorations, e.decorations));
|
|
13866
13866
|
function Il(e, t) {
|
|
13867
13867
|
var n = Object.keys(e);
|
|
13868
13868
|
if (Object.getOwnPropertySymbols) {
|
|
@@ -13895,7 +13895,7 @@ var W1 = (e) => {
|
|
|
13895
13895
|
} = e, o = Cn(), l = Z1(), u = o.isInline(n), d = ee.findKey(o, n), h = Re((x) => {
|
|
13896
13896
|
var k = da.get(o);
|
|
13897
13897
|
x ? (k == null || k.set(d, x), jn.set(n, x), Vr.set(x, n)) : (k == null || k.delete(d), jn.delete(n));
|
|
13898
|
-
}, [o, d, n]), m =
|
|
13898
|
+
}, [o, d, n]), m = gf({
|
|
13899
13899
|
decorations: t,
|
|
13900
13900
|
node: n,
|
|
13901
13901
|
renderElement: r,
|
|
@@ -13907,7 +13907,7 @@ var W1 = (e) => {
|
|
|
13907
13907
|
ref: h
|
|
13908
13908
|
};
|
|
13909
13909
|
if (u && (p["data-slate-inline"] = !0), !u && y.hasInlines(o, n)) {
|
|
13910
|
-
var g = oe.string(n), f =
|
|
13910
|
+
var g = oe.string(n), f = Ld(g);
|
|
13911
13911
|
f === "rtl" && (p.dir = f);
|
|
13912
13912
|
}
|
|
13913
13913
|
if (y.isVoid(o, n)) {
|
|
@@ -13921,7 +13921,7 @@ var W1 = (e) => {
|
|
|
13921
13921
|
outline: "none",
|
|
13922
13922
|
position: "absolute"
|
|
13923
13923
|
}
|
|
13924
|
-
}, /* @__PURE__ */ re.createElement(
|
|
13924
|
+
}, /* @__PURE__ */ re.createElement(mf, {
|
|
13925
13925
|
renderPlaceholder: i,
|
|
13926
13926
|
decorations: [],
|
|
13927
13927
|
isLast: !1,
|
|
@@ -13945,7 +13945,7 @@ var W1 = (e) => {
|
|
|
13945
13945
|
position: "relative"
|
|
13946
13946
|
}
|
|
13947
13947
|
}), n);
|
|
13948
|
-
},
|
|
13948
|
+
}, pf = /* @__PURE__ */ Et(() => []), V1 = () => Ie(pf), K1 = /* @__PURE__ */ Et(!1), gf = (e) => {
|
|
13949
13949
|
for (var {
|
|
13950
13950
|
decorations: t,
|
|
13951
13951
|
node: n,
|
|
@@ -13970,7 +13970,7 @@ var W1 = (e) => {
|
|
|
13970
13970
|
renderPlaceholder: i,
|
|
13971
13971
|
renderLeaf: a,
|
|
13972
13972
|
selection: v
|
|
13973
|
-
}))) : d.push(/* @__PURE__ */ re.createElement(
|
|
13973
|
+
}))) : d.push(/* @__PURE__ */ re.createElement(mf, {
|
|
13974
13974
|
decorations: x,
|
|
13975
13975
|
key: f.id,
|
|
13976
13976
|
isLast: h && m === n.children.length - 1,
|
|
@@ -13981,8 +13981,8 @@ var W1 = (e) => {
|
|
|
13981
13981
|
})), wo.set(g, m), Co.set(g, n);
|
|
13982
13982
|
}
|
|
13983
13983
|
return d;
|
|
13984
|
-
},
|
|
13985
|
-
var e = Ie(
|
|
13984
|
+
}, vf = /* @__PURE__ */ Et(!1), Z1 = () => Ie(vf), bf = /* @__PURE__ */ Et(null), zn = () => {
|
|
13985
|
+
var e = Ie(bf);
|
|
13986
13986
|
if (!e)
|
|
13987
13987
|
throw new Error("The `useSlate` hook must be used inside the <Slate> component's context.");
|
|
13988
13988
|
var {
|
|
@@ -14096,7 +14096,7 @@ var G1 = 3, Q1 = {
|
|
|
14096
14096
|
characterData: !0,
|
|
14097
14097
|
characterDataOldValue: !0
|
|
14098
14098
|
};
|
|
14099
|
-
class
|
|
14099
|
+
class yf extends ph {
|
|
14100
14100
|
constructor() {
|
|
14101
14101
|
super(...arguments), Mt(this, "context", null), Mt(this, "manager", null), Mt(this, "mutationObserver", null);
|
|
14102
14102
|
}
|
|
@@ -14134,8 +14134,8 @@ class bf extends mh {
|
|
|
14134
14134
|
return this.props.children;
|
|
14135
14135
|
}
|
|
14136
14136
|
}
|
|
14137
|
-
Mt(
|
|
14138
|
-
var nD = pt ?
|
|
14137
|
+
Mt(yf, "contextType", xo);
|
|
14138
|
+
var nD = pt ? yf : (e) => {
|
|
14139
14139
|
var {
|
|
14140
14140
|
children: t
|
|
14141
14141
|
} = e;
|
|
@@ -14162,7 +14162,7 @@ function Ht(e) {
|
|
|
14162
14162
|
}
|
|
14163
14163
|
return e;
|
|
14164
14164
|
}
|
|
14165
|
-
var aD = (e) => /* @__PURE__ */ re.createElement(re.Fragment, null,
|
|
14165
|
+
var aD = (e) => /* @__PURE__ */ re.createElement(re.Fragment, null, gf(e)), sD = (e) => {
|
|
14166
14166
|
var t = Re((B) => /* @__PURE__ */ re.createElement(oD, Ht({}, B)), []), {
|
|
14167
14167
|
autoFocus: n,
|
|
14168
14168
|
decorate: r = uD,
|
|
@@ -14180,7 +14180,7 @@ var aD = (e) => /* @__PURE__ */ re.createElement(re.Fragment, null, pf(e)), sD =
|
|
|
14180
14180
|
onUserInput: _,
|
|
14181
14181
|
receivedUserInput: S
|
|
14182
14182
|
} = Y1(), [, z] = fr((B) => B + 1, 0);
|
|
14183
|
-
|
|
14183
|
+
af.set(f, z), Ns.set(f, s);
|
|
14184
14184
|
var O = Zt(() => ({
|
|
14185
14185
|
isDraggingInternally: !1,
|
|
14186
14186
|
isUpdatingSelection: !1,
|
|
@@ -14218,7 +14218,7 @@ var aD = (e) => /* @__PURE__ */ re.createElement(re.Fragment, null, pf(e)), sD =
|
|
|
14218
14218
|
scheduleOnDOMSelectionChange: A
|
|
14219
14219
|
}), Kr(() => {
|
|
14220
14220
|
var B, $, R;
|
|
14221
|
-
x.current && (R = _o(x.current)) ? (
|
|
14221
|
+
x.current && (R = _o(x.current)) ? (rf.set(f, R), Ti.set(f, x.current), jn.set(f, x.current), Vr.set(x.current, f)) : jn.delete(f);
|
|
14222
14222
|
var {
|
|
14223
14223
|
selection: q
|
|
14224
14224
|
} = f, W = ee.findDocumentOrShadowRoot(f), te = W.getSelection();
|
|
@@ -14465,7 +14465,7 @@ var aD = (e) => /* @__PURE__ */ re.createElement(re.Fragment, null, pf(e)), sD =
|
|
|
14465
14465
|
O.hasMarkPlaceholder = !0;
|
|
14466
14466
|
var F = Object.fromEntries(Object.keys(X).map((B) => [B, null]));
|
|
14467
14467
|
j.push(Ht(Ht(Ht({
|
|
14468
|
-
[
|
|
14468
|
+
[sf]: !0
|
|
14469
14469
|
}, F), ie), {}, {
|
|
14470
14470
|
anchor: D,
|
|
14471
14471
|
focus: D
|
|
@@ -14490,9 +14490,9 @@ var aD = (e) => /* @__PURE__ */ re.createElement(re.Fragment, null, pf(e)), sD =
|
|
|
14490
14490
|
}
|
|
14491
14491
|
$t.delete(f);
|
|
14492
14492
|
});
|
|
14493
|
-
}), /* @__PURE__ */ re.createElement(
|
|
14493
|
+
}), /* @__PURE__ */ re.createElement(vf.Provider, {
|
|
14494
14494
|
value: s
|
|
14495
|
-
}, /* @__PURE__ */ re.createElement(
|
|
14495
|
+
}, /* @__PURE__ */ re.createElement(pf.Provider, {
|
|
14496
14496
|
value: r
|
|
14497
14497
|
}, /* @__PURE__ */ re.createElement(nD, {
|
|
14498
14498
|
node: x,
|
|
@@ -14706,7 +14706,7 @@ var aD = (e) => /* @__PURE__ */ re.createElement(re.Fragment, null, pf(e)), sD =
|
|
|
14706
14706
|
return;
|
|
14707
14707
|
var {
|
|
14708
14708
|
selection: q
|
|
14709
|
-
} = f, W = f.children[q !== null ? q.focus.path[0] : 0], te =
|
|
14709
|
+
} = f, W = f.children[q !== null ? q.focus.path[0] : 0], te = Ld(oe.string(W)) === "rtl";
|
|
14710
14710
|
if (Je.isRedo(R)) {
|
|
14711
14711
|
B.preventDefault();
|
|
14712
14712
|
var ne = f;
|
|
@@ -14782,7 +14782,7 @@ var aD = (e) => /* @__PURE__ */ re.createElement(re.Fragment, null, pf(e)), sD =
|
|
|
14782
14782
|
return;
|
|
14783
14783
|
}
|
|
14784
14784
|
if (dn) {
|
|
14785
|
-
if ((
|
|
14785
|
+
if ((nf || Br) && q && (Je.isDeleteBackward(R) || Je.isDeleteForward(R)) && K.isCollapsed(q)) {
|
|
14786
14786
|
var J = oe.parent(f, q.anchor.path);
|
|
14787
14787
|
if (he.isElement(J) && y.isVoid(f, J) && (y.isInline(f, J) || y.isBlock(f, J))) {
|
|
14788
14788
|
B.preventDefault(), y.deleteBackward(f, {
|
|
@@ -14949,14 +14949,14 @@ var mD = ["editor", "children", "onChange", "onSelectionChange", "onValueChange"
|
|
|
14949
14949
|
g(ee.isFocused(t));
|
|
14950
14950
|
}, [t]), Kr(() => {
|
|
14951
14951
|
var f = () => g(ee.isFocused(t));
|
|
14952
|
-
return
|
|
14952
|
+
return tf >= 17 ? (document.addEventListener("focusin", f), document.addEventListener("focusout", f), () => {
|
|
14953
14953
|
document.removeEventListener("focusin", f), document.removeEventListener("focusout", f);
|
|
14954
14954
|
}) : (document.addEventListener("focus", f, !0), document.addEventListener("blur", f, !0), () => {
|
|
14955
14955
|
document.removeEventListener("focus", f, !0), document.removeEventListener("blur", f, !0);
|
|
14956
14956
|
});
|
|
14957
14957
|
}, []), /* @__PURE__ */ re.createElement(fD.Provider, {
|
|
14958
14958
|
value: d
|
|
14959
|
-
}, /* @__PURE__ */ re.createElement(
|
|
14959
|
+
}, /* @__PURE__ */ re.createElement(bf.Provider, {
|
|
14960
14960
|
value: l
|
|
14961
14961
|
}, /* @__PURE__ */ re.createElement(xo.Provider, {
|
|
14962
14962
|
value: l.editor
|
|
@@ -15111,14 +15111,14 @@ var vD = function(t) {
|
|
|
15111
15111
|
var M = L.getAttribute("data-slate-zero-width") === "n";
|
|
15112
15112
|
L.textContent = M ? `
|
|
15113
15113
|
` : "";
|
|
15114
|
-
}),
|
|
15114
|
+
}), of(v)) {
|
|
15115
15115
|
var w = v.ownerDocument.createElement("span");
|
|
15116
15116
|
w.style.whiteSpace = "pre", w.appendChild(v), b.appendChild(w), v = w;
|
|
15117
15117
|
}
|
|
15118
15118
|
var _ = r.getFragment(), S = JSON.stringify(_), z = window.btoa(encodeURIComponent(S));
|
|
15119
15119
|
v.setAttribute("data-slate-fragment", z), u.setData("application/".concat(n), z);
|
|
15120
15120
|
var O = b.ownerDocument.createElement("div");
|
|
15121
|
-
return O.appendChild(b), O.setAttribute("hidden", "true"), b.ownerDocument.body.appendChild(O), u.setData("text/html", O.innerHTML), u.setData("text/plain",
|
|
15121
|
+
return O.appendChild(b), O.setAttribute("hidden", "true"), b.ownerDocument.body.appendChild(O), u.setData("text/html", O.innerHTML), u.setData("text/plain", lf(O)), b.ownerDocument.body.removeChild(O), u;
|
|
15122
15122
|
}
|
|
15123
15123
|
}
|
|
15124
15124
|
}, r.insertData = (u) => {
|
|
@@ -15142,7 +15142,7 @@ var vD = function(t) {
|
|
|
15142
15142
|
}
|
|
15143
15143
|
return !1;
|
|
15144
15144
|
}, r.onChange = (u) => {
|
|
15145
|
-
var d =
|
|
15145
|
+
var d = tf < 18 ? Sc.unstable_batchedUpdates : (h) => h();
|
|
15146
15146
|
d(() => {
|
|
15147
15147
|
var h = Ms.get(r);
|
|
15148
15148
|
h && h(u), a(u);
|
|
@@ -15221,10 +15221,10 @@ const yD = ({
|
|
|
15221
15221
|
}, DD = ({ attributes: e, children: t, leaf: n }) => {
|
|
15222
15222
|
const r = n;
|
|
15223
15223
|
return r[Y.bold] && (t = /* @__PURE__ */ c.jsx("strong", { children: t })), r[Y.italic] && (t = /* @__PURE__ */ c.jsx("em", { children: t })), r[Y.strikethrough] && (t = /* @__PURE__ */ c.jsx("s", { children: t })), /* @__PURE__ */ c.jsx("span", { ...e, children: t });
|
|
15224
|
-
}, zs = "MENTION: ",
|
|
15224
|
+
}, zs = "MENTION: ", Df = {
|
|
15225
15225
|
anchor: { offset: 0, path: [0, 0] },
|
|
15226
15226
|
focus: { offset: 0, path: [0, 0] }
|
|
15227
|
-
}, Hl = { "mention-popover": 35, default: -52 }, Ha = 16,
|
|
15227
|
+
}, Hl = { "mention-popover": 35, default: -52 }, Ha = 16, xf = (e, t, n) => {
|
|
15228
15228
|
const r = Fe(null), { showLinkEditor: i, mentionPopover: a } = Ie(cn), s = t === "link-editor" ? i : a.show, o = [s];
|
|
15229
15229
|
return e && t === "link-editor" && o.push(e.selection), ce(() => {
|
|
15230
15230
|
var p, g;
|
|
@@ -15245,7 +15245,7 @@ const yD = ({
|
|
|
15245
15245
|
return;
|
|
15246
15246
|
u = ee.toDOMRange(
|
|
15247
15247
|
e,
|
|
15248
|
-
f ||
|
|
15248
|
+
f || Df
|
|
15249
15249
|
).getBoundingClientRect();
|
|
15250
15250
|
const x = (p = document.getElementById(n)) == null ? void 0 : p.getBoundingClientRect();
|
|
15251
15251
|
l.style.setProperty(
|
|
@@ -15278,7 +15278,7 @@ const yD = ({
|
|
|
15278
15278
|
match: (a) => a.type === Y.link
|
|
15279
15279
|
});
|
|
15280
15280
|
if (i) {
|
|
15281
|
-
const a = i[0], s =
|
|
15281
|
+
const a = i[0], s = Uc(a.link), o = a.children[0], l = (o == null ? void 0 : o.text) || "";
|
|
15282
15282
|
n({ ...s, text: l });
|
|
15283
15283
|
} else
|
|
15284
15284
|
n(null);
|
|
@@ -15313,10 +15313,10 @@ function Vl(e) {
|
|
|
15313
15313
|
if (e)
|
|
15314
15314
|
throw e;
|
|
15315
15315
|
}
|
|
15316
|
-
var Si = Object.prototype.hasOwnProperty,
|
|
15317
|
-
return typeof Array.isArray == "function" ? Array.isArray(t) :
|
|
15316
|
+
var Si = Object.prototype.hasOwnProperty, wf = Object.prototype.toString, Kl = Object.defineProperty, Zl = Object.getOwnPropertyDescriptor, Yl = function(t) {
|
|
15317
|
+
return typeof Array.isArray == "function" ? Array.isArray(t) : wf.call(t) === "[object Array]";
|
|
15318
15318
|
}, Gl = function(t) {
|
|
15319
|
-
if (!t ||
|
|
15319
|
+
if (!t || wf.call(t) !== "[object Object]")
|
|
15320
15320
|
return !1;
|
|
15321
15321
|
var n = Si.call(t, "constructor"), r = t.constructor && t.constructor.prototype && Si.call(t.constructor.prototype, "isPrototypeOf");
|
|
15322
15322
|
if (t.constructor && !n && !r)
|
|
@@ -16616,9 +16616,9 @@ function qD(e) {
|
|
|
16616
16616
|
const WD = {};
|
|
16617
16617
|
function UD(e, t) {
|
|
16618
16618
|
const n = t || WD, r = typeof n.includeImageAlt == "boolean" ? n.includeImageAlt : !0, i = typeof n.includeHtml == "boolean" ? n.includeHtml : !0;
|
|
16619
|
-
return
|
|
16619
|
+
return Cf(e, r, i);
|
|
16620
16620
|
}
|
|
16621
|
-
function
|
|
16621
|
+
function Cf(e, t, n) {
|
|
16622
16622
|
if (HD(e)) {
|
|
16623
16623
|
if ("value" in e)
|
|
16624
16624
|
return e.type === "html" && !n ? "" : e.value;
|
|
@@ -16633,7 +16633,7 @@ function ic(e, t, n) {
|
|
|
16633
16633
|
const r = [];
|
|
16634
16634
|
let i = -1;
|
|
16635
16635
|
for (; ++i < e.length; )
|
|
16636
|
-
r[i] =
|
|
16636
|
+
r[i] = Cf(e[i], t, n);
|
|
16637
16637
|
return r.join("");
|
|
16638
16638
|
}
|
|
16639
16639
|
function HD(e) {
|
|
@@ -16690,7 +16690,7 @@ function ZD(e, t) {
|
|
|
16690
16690
|
(t[n].add === "after" ? e : r).push(t[n]);
|
|
16691
16691
|
un(e, 0, 0, r);
|
|
16692
16692
|
}
|
|
16693
|
-
function
|
|
16693
|
+
function Ef(e, t) {
|
|
16694
16694
|
const n = Number.parseInt(e, t);
|
|
16695
16695
|
return (
|
|
16696
16696
|
// C0 except for HT, LF, FF, CR, space.
|
|
@@ -17045,7 +17045,7 @@ function lx(e, t, n) {
|
|
|
17045
17045
|
return a === null || xe(a) ? t(a) : n(a);
|
|
17046
17046
|
}
|
|
17047
17047
|
}
|
|
17048
|
-
const
|
|
17048
|
+
const _f = {
|
|
17049
17049
|
name: "blockQuote",
|
|
17050
17050
|
tokenize: cx,
|
|
17051
17051
|
continuation: {
|
|
@@ -17076,13 +17076,13 @@ function dx(e, t, n) {
|
|
|
17076
17076
|
return Le(s) ? Ke(e, a, "linePrefix", r.parser.constructs.disable.null.includes("codeIndented") ? void 0 : 4)(s) : a(s);
|
|
17077
17077
|
}
|
|
17078
17078
|
function a(s) {
|
|
17079
|
-
return e.attempt(
|
|
17079
|
+
return e.attempt(_f, t, n)(s);
|
|
17080
17080
|
}
|
|
17081
17081
|
}
|
|
17082
17082
|
function fx(e) {
|
|
17083
17083
|
e.exit("blockQuote");
|
|
17084
17084
|
}
|
|
17085
|
-
const
|
|
17085
|
+
const kf = {
|
|
17086
17086
|
name: "characterEscape",
|
|
17087
17087
|
tokenize: hx
|
|
17088
17088
|
};
|
|
@@ -17095,7 +17095,7 @@ function hx(e, t, n) {
|
|
|
17095
17095
|
return QD(a) ? (e.enter("characterEscapeValue"), e.consume(a), e.exit("characterEscapeValue"), e.exit("characterEscape"), t) : n(a);
|
|
17096
17096
|
}
|
|
17097
17097
|
}
|
|
17098
|
-
const
|
|
17098
|
+
const Ff = {
|
|
17099
17099
|
name: "characterReference",
|
|
17100
17100
|
tokenize: mx
|
|
17101
17101
|
};
|
|
@@ -17460,7 +17460,7 @@ function kr(e, t) {
|
|
|
17460
17460
|
for (; n < t.length; )
|
|
17461
17461
|
e.push(...t.slice(n, n + 1e4)), n += 1e4;
|
|
17462
17462
|
}
|
|
17463
|
-
function
|
|
17463
|
+
function Af(e) {
|
|
17464
17464
|
const t = {};
|
|
17465
17465
|
let n = -1, r, i, a, s, o, l, u;
|
|
17466
17466
|
const d = new Ex(e);
|
|
@@ -17510,7 +17510,7 @@ const kx = {
|
|
|
17510
17510
|
partial: !0
|
|
17511
17511
|
};
|
|
17512
17512
|
function Ax(e) {
|
|
17513
|
-
return
|
|
17513
|
+
return Af(e), e;
|
|
17514
17514
|
}
|
|
17515
17515
|
function Bx(e, t) {
|
|
17516
17516
|
let n;
|
|
@@ -17546,7 +17546,7 @@ function Tx(e, t, n) {
|
|
|
17546
17546
|
return !r.parser.constructs.disable.null.includes("codeIndented") && o && o[1].type === "linePrefix" && o[2].sliceSerialize(o[1], !0).length >= 4 ? t(s) : e.interrupt(r.parser.constructs.flow, n, t)(s);
|
|
17547
17547
|
}
|
|
17548
17548
|
}
|
|
17549
|
-
function
|
|
17549
|
+
function Bf(e, t, n, r, i, a, s, o, l) {
|
|
17550
17550
|
const u = l || Number.POSITIVE_INFINITY;
|
|
17551
17551
|
let d = 0;
|
|
17552
17552
|
return h;
|
|
@@ -17573,7 +17573,7 @@ function Af(e, t, n, r, i, a, s, o, l) {
|
|
|
17573
17573
|
return v === 40 || v === 41 || v === 92 ? (e.consume(v), f) : f(v);
|
|
17574
17574
|
}
|
|
17575
17575
|
}
|
|
17576
|
-
function
|
|
17576
|
+
function Tf(e, t, n, r, i, a) {
|
|
17577
17577
|
const s = this;
|
|
17578
17578
|
let o = 0, l;
|
|
17579
17579
|
return u;
|
|
@@ -17597,7 +17597,7 @@ function Bf(e, t, n, r, i, a) {
|
|
|
17597
17597
|
return p === 91 || p === 92 || p === 93 ? (e.consume(p), o++, h) : h(p);
|
|
17598
17598
|
}
|
|
17599
17599
|
}
|
|
17600
|
-
function
|
|
17600
|
+
function Sf(e, t, n, r, i, a) {
|
|
17601
17601
|
let s;
|
|
17602
17602
|
return o;
|
|
17603
17603
|
function o(m) {
|
|
@@ -17644,7 +17644,7 @@ function Ox(e, t, n) {
|
|
|
17644
17644
|
return e.enter("definition"), s(p);
|
|
17645
17645
|
}
|
|
17646
17646
|
function s(p) {
|
|
17647
|
-
return
|
|
17647
|
+
return Tf.call(
|
|
17648
17648
|
r,
|
|
17649
17649
|
e,
|
|
17650
17650
|
o,
|
|
@@ -17662,7 +17662,7 @@ function Ox(e, t, n) {
|
|
|
17662
17662
|
return Ct(p) ? Nr(e, u)(p) : u(p);
|
|
17663
17663
|
}
|
|
17664
17664
|
function u(p) {
|
|
17665
|
-
return
|
|
17665
|
+
return Bf(
|
|
17666
17666
|
e,
|
|
17667
17667
|
d,
|
|
17668
17668
|
// Note: we don’t need to reset the way `markdown-rs` does.
|
|
@@ -17690,7 +17690,7 @@ function Px(e, t, n) {
|
|
|
17690
17690
|
return Ct(o) ? Nr(e, i)(o) : n(o);
|
|
17691
17691
|
}
|
|
17692
17692
|
function i(o) {
|
|
17693
|
-
return
|
|
17693
|
+
return Sf(e, a, n, "definitionTitle", "definitionTitleMarker", "definitionTitleString")(o);
|
|
17694
17694
|
}
|
|
17695
17695
|
function a(o) {
|
|
17696
17696
|
return Le(o) ? Ke(e, s, "whitespace")(o) : s(o);
|
|
@@ -18136,7 +18136,7 @@ function nw(e, t, n) {
|
|
|
18136
18136
|
return Ct(h) ? Nr(e, a)(h) : a(h);
|
|
18137
18137
|
}
|
|
18138
18138
|
function a(h) {
|
|
18139
|
-
return h === 41 ? d(h) :
|
|
18139
|
+
return h === 41 ? d(h) : Bf(e, s, o, "resourceDestination", "resourceDestinationLiteral", "resourceDestinationLiteralMarker", "resourceDestinationRaw", "resourceDestinationString", 32)(h);
|
|
18140
18140
|
}
|
|
18141
18141
|
function s(h) {
|
|
18142
18142
|
return Ct(h) ? Nr(e, l)(h) : d(h);
|
|
@@ -18145,7 +18145,7 @@ function nw(e, t, n) {
|
|
|
18145
18145
|
return n(h);
|
|
18146
18146
|
}
|
|
18147
18147
|
function l(h) {
|
|
18148
|
-
return h === 34 || h === 39 || h === 40 ?
|
|
18148
|
+
return h === 34 || h === 39 || h === 40 ? Sf(e, u, n, "resourceTitle", "resourceTitleMarker", "resourceTitleString")(h) : d(h);
|
|
18149
18149
|
}
|
|
18150
18150
|
function u(h) {
|
|
18151
18151
|
return Ct(h) ? Nr(e, d)(h) : d(h);
|
|
@@ -18158,7 +18158,7 @@ function rw(e, t, n) {
|
|
|
18158
18158
|
const r = this;
|
|
18159
18159
|
return i;
|
|
18160
18160
|
function i(o) {
|
|
18161
|
-
return
|
|
18161
|
+
return Tf.call(r, e, a, s, "reference", "referenceMarker", "referenceString")(o);
|
|
18162
18162
|
}
|
|
18163
18163
|
function a(o) {
|
|
18164
18164
|
return r.parser.defined.includes(rr(r.sliceSerialize(r.events[r.events.length - 1][1]).slice(1, -1))) ? t(o) : n(o);
|
|
@@ -18408,12 +18408,12 @@ function xw(e) {
|
|
|
18408
18408
|
}
|
|
18409
18409
|
}
|
|
18410
18410
|
const ww = {
|
|
18411
|
-
resolveAll:
|
|
18412
|
-
}, Cw =
|
|
18413
|
-
function
|
|
18411
|
+
resolveAll: Of()
|
|
18412
|
+
}, Cw = jf("string"), Ew = jf("text");
|
|
18413
|
+
function jf(e) {
|
|
18414
18414
|
return {
|
|
18415
18415
|
tokenize: t,
|
|
18416
|
-
resolveAll:
|
|
18416
|
+
resolveAll: Of(
|
|
18417
18417
|
e === "text" ? _w : void 0
|
|
18418
18418
|
)
|
|
18419
18419
|
};
|
|
@@ -18448,7 +18448,7 @@ function Sf(e) {
|
|
|
18448
18448
|
}
|
|
18449
18449
|
}
|
|
18450
18450
|
}
|
|
18451
|
-
function
|
|
18451
|
+
function Of(e) {
|
|
18452
18452
|
return t;
|
|
18453
18453
|
function t(n, r) {
|
|
18454
18454
|
let i = -1, a;
|
|
@@ -18728,7 +18728,7 @@ const Bw = {
|
|
|
18728
18728
|
55: Dt,
|
|
18729
18729
|
56: Dt,
|
|
18730
18730
|
57: Dt,
|
|
18731
|
-
62:
|
|
18731
|
+
62: _f
|
|
18732
18732
|
}, Tw = {
|
|
18733
18733
|
91: Sx
|
|
18734
18734
|
}, Sw = {
|
|
@@ -18745,18 +18745,18 @@ const Bw = {
|
|
|
18745
18745
|
96: dc,
|
|
18746
18746
|
126: dc
|
|
18747
18747
|
}, Ow = {
|
|
18748
|
-
38:
|
|
18749
|
-
92:
|
|
18748
|
+
38: Ff,
|
|
18749
|
+
92: kf
|
|
18750
18750
|
}, Pw = {
|
|
18751
18751
|
[-5]: es,
|
|
18752
18752
|
[-4]: es,
|
|
18753
18753
|
[-3]: es,
|
|
18754
18754
|
33: aw,
|
|
18755
|
-
38:
|
|
18755
|
+
38: Ff,
|
|
18756
18756
|
42: Ks,
|
|
18757
18757
|
60: [ox, Zx],
|
|
18758
18758
|
91: ow,
|
|
18759
|
-
92: [Nx,
|
|
18759
|
+
92: [Nx, kf],
|
|
18760
18760
|
93: To,
|
|
18761
18761
|
95: Ks,
|
|
18762
18762
|
96: Dx
|
|
@@ -18801,7 +18801,7 @@ function $w(e) {
|
|
|
18801
18801
|
}
|
|
18802
18802
|
}
|
|
18803
18803
|
function Lw(e) {
|
|
18804
|
-
for (; !
|
|
18804
|
+
for (; !Af(e); )
|
|
18805
18805
|
;
|
|
18806
18806
|
return e;
|
|
18807
18807
|
}
|
|
@@ -18851,11 +18851,11 @@ function Uw(e, t, n) {
|
|
|
18851
18851
|
return t;
|
|
18852
18852
|
if (n.charCodeAt(0) === 35) {
|
|
18853
18853
|
const i = n.charCodeAt(1), a = i === 120 || i === 88;
|
|
18854
|
-
return
|
|
18854
|
+
return Ef(n.slice(a ? 2 : 1), a ? 16 : 10);
|
|
18855
18855
|
}
|
|
18856
18856
|
return Ao(n) || e;
|
|
18857
18857
|
}
|
|
18858
|
-
const
|
|
18858
|
+
const Pf = {}.hasOwnProperty;
|
|
18859
18859
|
function Hw(e, t, n) {
|
|
18860
18860
|
return typeof t != "string" && (n = t, t = void 0), Vw(n)(
|
|
18861
18861
|
Lw(
|
|
@@ -18961,7 +18961,7 @@ function Vw(e) {
|
|
|
18961
18961
|
thematicBreak: l()
|
|
18962
18962
|
}
|
|
18963
18963
|
};
|
|
18964
|
-
|
|
18964
|
+
Nf(t, (e || {}).mdastExtensions || []);
|
|
18965
18965
|
const n = {};
|
|
18966
18966
|
return r;
|
|
18967
18967
|
function r(Z) {
|
|
@@ -18990,7 +18990,7 @@ function Vw(e) {
|
|
|
18990
18990
|
}
|
|
18991
18991
|
for (ke = -1; ++ke < Z.length; ) {
|
|
18992
18992
|
const De = t[Z[ke][0]];
|
|
18993
|
-
|
|
18993
|
+
Pf.call(De, Z[ke][1].type) && De[Z[ke][1].type].call(
|
|
18994
18994
|
Object.assign(
|
|
18995
18995
|
{
|
|
18996
18996
|
sliceSerialize: Z[ke][2].sliceSerialize
|
|
@@ -19271,7 +19271,7 @@ function Vw(e) {
|
|
|
19271
19271
|
function R(Z) {
|
|
19272
19272
|
const se = this.sliceSerialize(Z), pe = this.data.characterReferenceType;
|
|
19273
19273
|
let be;
|
|
19274
|
-
pe ? (be =
|
|
19274
|
+
pe ? (be = Ef(
|
|
19275
19275
|
se,
|
|
19276
19276
|
pe === "characterReferenceMarkerNumeric" ? 10 : 16
|
|
19277
19277
|
), this.data.characterReferenceType = void 0) : be = Ao(se);
|
|
@@ -19406,17 +19406,17 @@ function fn(e) {
|
|
|
19406
19406
|
offset: e.offset
|
|
19407
19407
|
};
|
|
19408
19408
|
}
|
|
19409
|
-
function
|
|
19409
|
+
function Nf(e, t) {
|
|
19410
19410
|
let n = -1;
|
|
19411
19411
|
for (; ++n < t.length; ) {
|
|
19412
19412
|
const r = t[n];
|
|
19413
|
-
Array.isArray(r) ?
|
|
19413
|
+
Array.isArray(r) ? Nf(e, r) : Kw(e, r);
|
|
19414
19414
|
}
|
|
19415
19415
|
}
|
|
19416
19416
|
function Kw(e, t) {
|
|
19417
19417
|
let n;
|
|
19418
19418
|
for (n in t)
|
|
19419
|
-
if (
|
|
19419
|
+
if (Pf.call(t, n))
|
|
19420
19420
|
switch (n) {
|
|
19421
19421
|
case "canContainEols": {
|
|
19422
19422
|
const r = t[n];
|
|
@@ -19467,7 +19467,7 @@ function Zw(e) {
|
|
|
19467
19467
|
});
|
|
19468
19468
|
}
|
|
19469
19469
|
}
|
|
19470
|
-
function
|
|
19470
|
+
function Mf(e, t) {
|
|
19471
19471
|
var l, u, d;
|
|
19472
19472
|
const n = {
|
|
19473
19473
|
...er,
|
|
@@ -19480,7 +19480,7 @@ function Nf(e, t) {
|
|
|
19480
19480
|
let s = [{ text: "" }];
|
|
19481
19481
|
const o = e.children;
|
|
19482
19482
|
switch (o && Array.isArray(o) && o.length > 0 && (s = o.flatMap(
|
|
19483
|
-
(h) =>
|
|
19483
|
+
(h) => Mf(
|
|
19484
19484
|
{
|
|
19485
19485
|
...h,
|
|
19486
19486
|
ordered: e.ordered || !1
|
|
@@ -19572,7 +19572,7 @@ function yi(e) {
|
|
|
19572
19572
|
}), t), {});
|
|
19573
19573
|
}
|
|
19574
19574
|
const Yw = function(t) {
|
|
19575
|
-
const n = (r) => r.children.map((i) =>
|
|
19575
|
+
const n = (r) => r.children.map((i) => Mf(i, t));
|
|
19576
19576
|
this.Compiler = n;
|
|
19577
19577
|
}, Gw = (e, t = (n) => {
|
|
19578
19578
|
}) => {
|
|
@@ -19656,12 +19656,12 @@ const Yw = function(t) {
|
|
|
19656
19656
|
return;
|
|
19657
19657
|
}
|
|
19658
19658
|
if (cC(a)) {
|
|
19659
|
-
|
|
19659
|
+
Uf(t, a, r);
|
|
19660
19660
|
return;
|
|
19661
19661
|
}
|
|
19662
|
-
|
|
19662
|
+
zf(t, a, r);
|
|
19663
19663
|
}
|
|
19664
|
-
},
|
|
19664
|
+
}, Rf = (e, t, n, r) => {
|
|
19665
19665
|
var d;
|
|
19666
19666
|
const { selectedUser: i, possibleUsers: a } = t, s = a[i];
|
|
19667
19667
|
if (!s)
|
|
@@ -19674,7 +19674,7 @@ const Yw = function(t) {
|
|
|
19674
19674
|
name: l,
|
|
19675
19675
|
children: [{ text: "" }]
|
|
19676
19676
|
};
|
|
19677
|
-
Q.select(e, (t == null ? void 0 : t.position) ||
|
|
19677
|
+
Q.select(e, (t == null ? void 0 : t.position) || Df), Q.insertNodes(e, [u, { text: " " }]), Q.move(e, { distance: 1, unit: "offset" }), So(r);
|
|
19678
19678
|
}, eC = async ({
|
|
19679
19679
|
editor: e,
|
|
19680
19680
|
isShowing: t,
|
|
@@ -19718,7 +19718,7 @@ const Yw = function(t) {
|
|
|
19718
19718
|
}
|
|
19719
19719
|
}
|
|
19720
19720
|
]);
|
|
19721
|
-
},
|
|
19721
|
+
}, If = (e) => {
|
|
19722
19722
|
let t = document.body;
|
|
19723
19723
|
if (e !== !1) {
|
|
19724
19724
|
const n = document.getElementById(e);
|
|
@@ -19730,7 +19730,7 @@ const Yw = function(t) {
|
|
|
19730
19730
|
Y.image,
|
|
19731
19731
|
Y.mention
|
|
19732
19732
|
], bc = "<br>";
|
|
19733
|
-
function
|
|
19733
|
+
function $f(e, t = { nodeTypes: er }) {
|
|
19734
19734
|
const {
|
|
19735
19735
|
nodeTypes: n = er,
|
|
19736
19736
|
ignoreParagraphNewline: r = !1,
|
|
@@ -19751,7 +19751,7 @@ function If(e, t = { nodeTypes: er }) {
|
|
|
19751
19751
|
let p = !1;
|
|
19752
19752
|
return !Zn(e) && Array.isArray(e.children) && (p = e.children.some(
|
|
19753
19753
|
(g) => !Zn(g) && g.type === o.link
|
|
19754
|
-
)),
|
|
19754
|
+
)), $f(
|
|
19755
19755
|
{ ...d, parentType: s },
|
|
19756
19756
|
{
|
|
19757
19757
|
nodeTypes: o,
|
|
@@ -19838,15 +19838,15 @@ function Yn(e, t) {
|
|
|
19838
19838
|
const a = t + r + yc(t);
|
|
19839
19839
|
return e.replace(n, a);
|
|
19840
19840
|
}
|
|
19841
|
-
const yc = (e) => e.split("").reverse().join(""), nC = (e) => e.map((t) =>
|
|
19841
|
+
const yc = (e) => e.split("").reverse().join(""), nC = (e) => e.map((t) => $f(t)).join("").trim();
|
|
19842
19842
|
const rC = ({
|
|
19843
19843
|
onFallbackClick: e = () => {
|
|
19844
19844
|
}
|
|
19845
19845
|
}) => {
|
|
19846
|
-
const t = le(), n = zn(), { dispatch: r, isInOverlay: i, mentionPopover: a, id: s, onMention: o } = Ie(cn), { show: l, selectedUser: u, possibleUsers: d } = a, h =
|
|
19846
|
+
const t = le(), n = zn(), { dispatch: r, isInOverlay: i, mentionPopover: a, id: s, onMention: o } = Ie(cn), { show: l, selectedUser: u, possibleUsers: d } = a, h = xf(n, "mention-popover", `toolbar-${s}`);
|
|
19847
19847
|
if (!l)
|
|
19848
19848
|
return /* @__PURE__ */ c.jsx(c.Fragment, {});
|
|
19849
|
-
const m =
|
|
19849
|
+
const m = If(i);
|
|
19850
19850
|
return /* @__PURE__ */ c.jsx(Gr, { parent: m, children: /* @__PURE__ */ c.jsx(
|
|
19851
19851
|
Xh,
|
|
19852
19852
|
{
|
|
@@ -19871,7 +19871,7 @@ const rC = ({
|
|
|
19871
19871
|
type: "mentionPopover",
|
|
19872
19872
|
value: v
|
|
19873
19873
|
}
|
|
19874
|
-
]),
|
|
19874
|
+
]), Rf(n, v, r, s), o && o({ id: p || "", name: g.name || "" });
|
|
19875
19875
|
}
|
|
19876
19876
|
}
|
|
19877
19877
|
},
|
|
@@ -20014,7 +20014,7 @@ const rC = ({
|
|
|
20014
20014
|
]
|
|
20015
20015
|
}
|
|
20016
20016
|
);
|
|
20017
|
-
}, Dc = [Y.ol, Y.ul],
|
|
20017
|
+
}, Dc = [Y.ol, Y.ul], Lf = (e, t) => {
|
|
20018
20018
|
const { selection: n } = e;
|
|
20019
20019
|
if (!n)
|
|
20020
20020
|
return !1;
|
|
@@ -20033,9 +20033,9 @@ const rC = ({
|
|
|
20033
20033
|
match: (n) => n.type === Y.blockquote
|
|
20034
20034
|
});
|
|
20035
20035
|
return !!t;
|
|
20036
|
-
},
|
|
20036
|
+
}, zf = (e, t, n) => {
|
|
20037
20037
|
try {
|
|
20038
|
-
const r = iC(e), i =
|
|
20038
|
+
const r = iC(e), i = Lf(e, t), a = Dc.includes(t);
|
|
20039
20039
|
Q.unwrapNodes(e, {
|
|
20040
20040
|
match: (l) => {
|
|
20041
20041
|
const u = l;
|
|
@@ -20079,7 +20079,7 @@ const rC = ({
|
|
|
20079
20079
|
n(`Error toggling block: ${i}`);
|
|
20080
20080
|
}
|
|
20081
20081
|
}, aC = ({ format: e, hasDivider: t = !1 }) => {
|
|
20082
|
-
const { setFocus: n, reportError: r } = Ie(cn), i = zn(), a =
|
|
20082
|
+
const { setFocus: n, reportError: r } = Ie(cn), i = zn(), a = Lf(i, e);
|
|
20083
20083
|
return /* @__PURE__ */ c.jsx(
|
|
20084
20084
|
jo,
|
|
20085
20085
|
{
|
|
@@ -20087,7 +20087,7 @@ const rC = ({
|
|
|
20087
20087
|
active: a,
|
|
20088
20088
|
hasDivider: t,
|
|
20089
20089
|
callback: () => {
|
|
20090
|
-
|
|
20090
|
+
zf(i, e, r), n(a ? null : e);
|
|
20091
20091
|
}
|
|
20092
20092
|
}
|
|
20093
20093
|
);
|
|
@@ -20120,7 +20120,7 @@ const rC = ({
|
|
|
20120
20120
|
console.error(i);
|
|
20121
20121
|
}) => {
|
|
20122
20122
|
try {
|
|
20123
|
-
Mr(e) &&
|
|
20123
|
+
Mr(e) && qf(e);
|
|
20124
20124
|
const { selection: i } = e, a = i && K.isCollapsed(i), s = {
|
|
20125
20125
|
type: Y.link,
|
|
20126
20126
|
link: t,
|
|
@@ -20131,7 +20131,7 @@ const rC = ({
|
|
|
20131
20131
|
const a = i.message;
|
|
20132
20132
|
r(`Error in wrapLink: ${a}`);
|
|
20133
20133
|
}
|
|
20134
|
-
},
|
|
20134
|
+
}, qf = (e) => {
|
|
20135
20135
|
Q.unwrapNodes(e, {
|
|
20136
20136
|
match: (t) => {
|
|
20137
20137
|
const n = t;
|
|
@@ -20141,7 +20141,7 @@ const rC = ({
|
|
|
20141
20141
|
};
|
|
20142
20142
|
let ns = null;
|
|
20143
20143
|
const uC = () => {
|
|
20144
|
-
const e = le(), t = "richTextEditor_link_", { id: n, showLinkEditor: r, isInOverlay: i, dispatch: a, reportError: s } = Ie(cn), o = zn(), l = xD(o), u = (l == null ? void 0 : l.text) || Jw(o), [d, h] = ue(Mr(o)), m =
|
|
20144
|
+
const e = le(), t = "richTextEditor_link_", { id: n, showLinkEditor: r, isInOverlay: i, dispatch: a, reportError: s } = Ie(cn), o = zn(), l = xD(o), u = (l == null ? void 0 : l.text) || Jw(o), [d, h] = ue(Mr(o)), m = xf(o, "link-editor", `${n}-link`), p = Fe(null);
|
|
20145
20145
|
ce(() => {
|
|
20146
20146
|
var x;
|
|
20147
20147
|
!d && r && ((x = p.current) == null || x.focus());
|
|
@@ -20178,7 +20178,7 @@ const uC = () => {
|
|
|
20178
20178
|
const E = [
|
|
20179
20179
|
{ type: "showLinkEditor", value: !1 }
|
|
20180
20180
|
];
|
|
20181
|
-
Mr(o) && (
|
|
20181
|
+
Mr(o) && (qf(o), E.push({ type: "lastAnchor", value: null })), a(E);
|
|
20182
20182
|
};
|
|
20183
20183
|
break;
|
|
20184
20184
|
}
|
|
@@ -20222,7 +20222,7 @@ const uC = () => {
|
|
|
20222
20222
|
u
|
|
20223
20223
|
] })
|
|
20224
20224
|
});
|
|
20225
|
-
const v =
|
|
20225
|
+
const v = If(i);
|
|
20226
20226
|
return /* @__PURE__ */ c.jsx(Gr, { parent: v, children: /* @__PURE__ */ c.jsx(
|
|
20227
20227
|
mr,
|
|
20228
20228
|
{
|
|
@@ -20258,7 +20258,7 @@ const uC = () => {
|
|
|
20258
20258
|
{ type: "showLinkEditor", value: !1 }
|
|
20259
20259
|
];
|
|
20260
20260
|
if (x.url) {
|
|
20261
|
-
const { full: E } =
|
|
20261
|
+
const { full: E } = Uc(x.url);
|
|
20262
20262
|
l != null && l.full ? oC(o, E, n, s) : sC(o, E, n, s), k.push({ type: "lastAnchor", value: null });
|
|
20263
20263
|
}
|
|
20264
20264
|
a(k);
|
|
@@ -20293,18 +20293,18 @@ const uC = () => {
|
|
|
20293
20293
|
);
|
|
20294
20294
|
}, cC = (e) => [Y.bold, Y.italic, Y.strikethrough].includes(
|
|
20295
20295
|
e
|
|
20296
|
-
),
|
|
20296
|
+
), Wf = (e, t) => {
|
|
20297
20297
|
const n = y.marks(e);
|
|
20298
20298
|
return n ? n[t] === !0 : !1;
|
|
20299
|
-
},
|
|
20299
|
+
}, Uf = (e, t, n) => {
|
|
20300
20300
|
try {
|
|
20301
|
-
|
|
20301
|
+
Wf(e, t) ? y.removeMark(e, t) : y.addMark(e, t, !0);
|
|
20302
20302
|
} catch (r) {
|
|
20303
20303
|
const i = r.message;
|
|
20304
20304
|
n(`Error toggling mark: ${i}`);
|
|
20305
20305
|
}
|
|
20306
20306
|
}, dC = ({ format: e, hasDivider: t = !1 }) => {
|
|
20307
|
-
const { setFocus: n, reportError: r } = Ie(cn), i = zn(), a =
|
|
20307
|
+
const { setFocus: n, reportError: r } = Ie(cn), i = zn(), a = Wf(i, e);
|
|
20308
20308
|
return /* @__PURE__ */ c.jsx(
|
|
20309
20309
|
jo,
|
|
20310
20310
|
{
|
|
@@ -20312,7 +20312,7 @@ const uC = () => {
|
|
|
20312
20312
|
active: a,
|
|
20313
20313
|
hasDivider: t,
|
|
20314
20314
|
callback: () => {
|
|
20315
|
-
|
|
20315
|
+
Uf(i, e, r), n(a ? null : e);
|
|
20316
20316
|
}
|
|
20317
20317
|
}
|
|
20318
20318
|
);
|
|
@@ -20505,7 +20505,7 @@ const CC = ({
|
|
|
20505
20505
|
`
|
|
20506
20506
|
}), X = F.turndown(X);
|
|
20507
20507
|
}
|
|
20508
|
-
o && o.mentions && (X = await
|
|
20508
|
+
o && o.mentions && (X = await Wc({
|
|
20509
20509
|
text: X,
|
|
20510
20510
|
template: `[${zs}{{name}}]({{id}})`,
|
|
20511
20511
|
mentions: o.mentions,
|
|
@@ -20532,7 +20532,7 @@ const CC = ({
|
|
|
20532
20532
|
{ type: "lastAnchor", value: null }
|
|
20533
20533
|
]));
|
|
20534
20534
|
}, [t]);
|
|
20535
|
-
const D =
|
|
20535
|
+
const D = Mc(() => {
|
|
20536
20536
|
eC({
|
|
20537
20537
|
editor: G,
|
|
20538
20538
|
isShowing: C.show,
|
|
@@ -20578,7 +20578,7 @@ const CC = ({
|
|
|
20578
20578
|
tabIndex: 0,
|
|
20579
20579
|
onKeyDown: (I) => {
|
|
20580
20580
|
if (I.key === "Enter") {
|
|
20581
|
-
C.show && (I.preventDefault(), I.stopPropagation(),
|
|
20581
|
+
C.show && (I.preventDefault(), I.stopPropagation(), Rf(G, C, E, j));
|
|
20582
20582
|
const { selection: X } = G;
|
|
20583
20583
|
if (X) {
|
|
20584
20584
|
const F = K.isCollapsed(X), [B, $] = y.node(G, X, { depth: 1 });
|
|
@@ -20668,7 +20668,7 @@ const CC = ({
|
|
|
20668
20668
|
w
|
|
20669
20669
|
),
|
|
20670
20670
|
/* @__PURE__ */ c.jsx(
|
|
20671
|
-
|
|
20671
|
+
gd,
|
|
20672
20672
|
{
|
|
20673
20673
|
id: `character-limit-${e}`,
|
|
20674
20674
|
limit: r,
|
|
@@ -21513,7 +21513,7 @@ const OC = {
|
|
|
21513
21513
|
shouldDisableButton: E,
|
|
21514
21514
|
showSuccessMessage: w,
|
|
21515
21515
|
showError: _
|
|
21516
|
-
} = f, [S, z] =
|
|
21516
|
+
} = f, [S, z] = jc([
|
|
21517
21517
|
"signup-this-session",
|
|
21518
21518
|
"functional-cookie-consent"
|
|
21519
21519
|
]), O = {
|
|
@@ -21661,7 +21661,7 @@ const Q_ = ({ text: e, buttons: t, className: n = "" }) => {
|
|
|
21661
21661
|
] }) });
|
|
21662
21662
|
};
|
|
21663
21663
|
const Zs = "editSection_";
|
|
21664
|
-
function
|
|
21664
|
+
function Hf({ href: e, setShowModal: t }) {
|
|
21665
21665
|
typeof e != "string" && t(!0);
|
|
21666
21666
|
}
|
|
21667
21667
|
const PC = ({
|
|
@@ -21681,7 +21681,7 @@ const PC = ({
|
|
|
21681
21681
|
href: r,
|
|
21682
21682
|
variant: "secondary",
|
|
21683
21683
|
size: "small",
|
|
21684
|
-
onClick: () =>
|
|
21684
|
+
onClick: () => Hf({ href: r, setShowModal: a }),
|
|
21685
21685
|
children: n || s({ id: `${Zs}placeholder_cta` })
|
|
21686
21686
|
}
|
|
21687
21687
|
) })
|
|
@@ -21757,7 +21757,7 @@ const PC = ({
|
|
|
21757
21757
|
variant: "tertiary",
|
|
21758
21758
|
size: "small",
|
|
21759
21759
|
icon: "pencil",
|
|
21760
|
-
onClick: () =>
|
|
21760
|
+
onClick: () => Hf({ href: i, setShowModal: m }),
|
|
21761
21761
|
children: d({ id: `${Zs}edit` })
|
|
21762
21762
|
}
|
|
21763
21763
|
)
|
|
@@ -21880,7 +21880,7 @@ const ss = "cookieBanner_", os = [
|
|
|
21880
21880
|
"apolitical-performance-cookie-consent",
|
|
21881
21881
|
"functional-cookie-consent"
|
|
21882
21882
|
], us = new Date(Date.now() + 12 * 30 * 24 * 60 * 60 * 1e3), NC = () => {
|
|
21883
|
-
const e = le(), [t, n, r] =
|
|
21883
|
+
const e = le(), [t, n, r] = jc(os), [i, a] = ue(
|
|
21884
21884
|
!t["apol-cookie-banner"]
|
|
21885
21885
|
), s = () => {
|
|
21886
21886
|
os.forEach((d) => {
|
|
@@ -22077,10 +22077,10 @@ const tr = "footer_", Gi = "SiteFooter", wc = ({ group: e }) => {
|
|
|
22077
22077
|
] })
|
|
22078
22078
|
] }, `dl-${e}-${r}`)) })
|
|
22079
22079
|
] }, e);
|
|
22080
|
-
},
|
|
22080
|
+
}, Vf = () => /* @__PURE__ */ c.jsx("div", { id: "footer", children: /* @__PURE__ */ c.jsxs("div", { className: "wrapper", children: [
|
|
22081
22081
|
/* @__PURE__ */ c.jsx(Js, { element: "hr" }),
|
|
22082
22082
|
/* @__PURE__ */ c.jsx(
|
|
22083
|
-
|
|
22083
|
+
pd,
|
|
22084
22084
|
{
|
|
22085
22085
|
variant: "inverted",
|
|
22086
22086
|
version: "full",
|
|
@@ -22183,7 +22183,7 @@ const tr = "footer_", Gi = "SiteFooter", wc = ({ group: e }) => {
|
|
|
22183
22183
|
return e[r];
|
|
22184
22184
|
if (!t.includes("."))
|
|
22185
22185
|
continue;
|
|
22186
|
-
const i =
|
|
22186
|
+
const i = Oc(e[r], t);
|
|
22187
22187
|
if (!(typeof i > "u") && (!n || i[t] && i[t].includes(n) || i.value && i.value.includes(n) || i.toString().includes(n)))
|
|
22188
22188
|
return e[r];
|
|
22189
22189
|
}
|
|
@@ -22333,7 +22333,7 @@ const tr = "footer_", Gi = "SiteFooter", wc = ({ group: e }) => {
|
|
|
22333
22333
|
},
|
|
22334
22334
|
doTrack: a = null
|
|
22335
22335
|
}) => {
|
|
22336
|
-
const s = le(), o =
|
|
22336
|
+
const s = le(), o = Oc(Qi, e);
|
|
22337
22337
|
if (!o || o.onlyShow && (o.onlyShow === "logged-in" && !t || o.onlyShow === "logged-out" && t))
|
|
22338
22338
|
return null;
|
|
22339
22339
|
const l = "doTrack" in o, u = a === null ? l ? o.doTrack : !0 : a, d = e.includes("buttons.");
|
|
@@ -22452,7 +22452,7 @@ const tr = "footer_", Gi = "SiteFooter", wc = ({ group: e }) => {
|
|
|
22452
22452
|
};
|
|
22453
22453
|
const MC = { height: 67, height_desktop: 83 };
|
|
22454
22454
|
var At = /* @__PURE__ */ ((e) => (e.NAVIGATION = "navigation", e.SEARCH = "search", e.ACCOUNT = "account-navigation", e.SITE = "site-navigation", e))(At || {});
|
|
22455
|
-
const
|
|
22455
|
+
const Kf = ({ showNavigation: e = !0 }) => {
|
|
22456
22456
|
const t = le(), n = Ie(vt), r = hr(!0, !0), i = n && typeof n.id == "string", a = Zt(
|
|
22457
22457
|
() => We.getIsDesktopVersion(i, r),
|
|
22458
22458
|
[i, r]
|
|
@@ -22656,7 +22656,7 @@ const Vf = ({ showNavigation: e = !0 }) => {
|
|
|
22656
22656
|
children: t.formatMessage({ id: "header_skip" })
|
|
22657
22657
|
}
|
|
22658
22658
|
),
|
|
22659
|
-
/* @__PURE__ */ c.jsx(
|
|
22659
|
+
/* @__PURE__ */ c.jsx(pd, { variant: "monochrome" }),
|
|
22660
22660
|
e && /* @__PURE__ */ c.jsxs(c.Fragment, { children: [
|
|
22661
22661
|
a.navigation ? /* @__PURE__ */ c.jsxs(c.Fragment, { children: [
|
|
22662
22662
|
b,
|
|
@@ -22732,7 +22732,7 @@ const Vf = ({ showNavigation: e = !0 }) => {
|
|
|
22732
22732
|
const RC = () => {
|
|
22733
22733
|
const e = le();
|
|
22734
22734
|
return /* @__PURE__ */ c.jsxs(c.Fragment, { children: [
|
|
22735
|
-
/* @__PURE__ */ c.jsx(
|
|
22735
|
+
/* @__PURE__ */ c.jsx(Kf, {}),
|
|
22736
22736
|
/* @__PURE__ */ c.jsx("div", { id: "content", children: /* @__PURE__ */ c.jsx(
|
|
22737
22737
|
$n,
|
|
22738
22738
|
{
|
|
@@ -22740,7 +22740,7 @@ const RC = () => {
|
|
|
22740
22740
|
text: e.formatMessage({ id: "pageLayout_error" })
|
|
22741
22741
|
}
|
|
22742
22742
|
) }),
|
|
22743
|
-
/* @__PURE__ */ c.jsx(
|
|
22743
|
+
/* @__PURE__ */ c.jsx(Vf, {})
|
|
22744
22744
|
] });
|
|
22745
22745
|
}, IC = ({
|
|
22746
22746
|
children: e,
|
|
@@ -22770,14 +22770,14 @@ const RC = () => {
|
|
|
22770
22770
|
}), E = _i(n, {
|
|
22771
22771
|
locale: o
|
|
22772
22772
|
}), w = {};
|
|
22773
|
-
return d !== "default" && (w[d] = !0), h !== "default" && (w[h] = !0), m !== "default" && (w[m] = !0), /* @__PURE__ */ c.jsx(_h, { onError: r, fallback: /* @__PURE__ */ c.jsx(RC, {}), children: /* @__PURE__ */ c.jsxs(
|
|
22773
|
+
return d !== "default" && (w[d] = !0), h !== "default" && (w[h] = !0), m !== "default" && (w[m] = !0), /* @__PURE__ */ c.jsx(_h, { onError: r, fallback: /* @__PURE__ */ c.jsx(RC, {}), children: /* @__PURE__ */ c.jsxs(Tc, { fallback: null, children: [
|
|
22774
22774
|
/* @__PURE__ */ c.jsxs(
|
|
22775
22775
|
"div",
|
|
22776
22776
|
{
|
|
22777
22777
|
id: "wrapper",
|
|
22778
22778
|
className: V(s, w, { "has-footer": u }),
|
|
22779
22779
|
children: [
|
|
22780
|
-
/* @__PURE__ */ c.jsx(
|
|
22780
|
+
/* @__PURE__ */ c.jsx(Kf, { showNavigation: l }),
|
|
22781
22781
|
/* @__PURE__ */ c.jsxs("main", { id: "content-wrapper", children: [
|
|
22782
22782
|
k && /* @__PURE__ */ c.jsx(
|
|
22783
22783
|
"div",
|
|
@@ -22788,14 +22788,14 @@ const RC = () => {
|
|
|
22788
22788
|
children: k
|
|
22789
22789
|
}
|
|
22790
22790
|
),
|
|
22791
|
-
re.createElement(d === "bold" ?
|
|
22791
|
+
re.createElement(d === "bold" ? nd : "div", {
|
|
22792
22792
|
id: "content",
|
|
22793
22793
|
children: x,
|
|
22794
22794
|
className: V({ "large-modal": p === "large" })
|
|
22795
22795
|
})
|
|
22796
22796
|
] }),
|
|
22797
22797
|
E && /* @__PURE__ */ c.jsx("div", { className: "additional-content appended", children: E }),
|
|
22798
|
-
u && /* @__PURE__ */ c.jsx(
|
|
22798
|
+
u && /* @__PURE__ */ c.jsx(Vf, {}),
|
|
22799
22799
|
/* @__PURE__ */ c.jsx(NC, {})
|
|
22800
22800
|
]
|
|
22801
22801
|
}
|
|
@@ -23597,7 +23597,7 @@ const JC = ({
|
|
|
23597
23597
|
] })
|
|
23598
23598
|
}
|
|
23599
23599
|
),
|
|
23600
|
-
/* @__PURE__ */ c.jsx(Gr, { children:
|
|
23600
|
+
S && /* @__PURE__ */ c.jsx(Gr, { children: /* @__PURE__ */ c.jsx(Tc, { children: /* @__PURE__ */ c.jsx(
|
|
23601
23601
|
GC,
|
|
23602
23602
|
{
|
|
23603
23603
|
activityId: o,
|
|
@@ -23612,11 +23612,11 @@ const JC = ({
|
|
|
23612
23612
|
}
|
|
23613
23613
|
}
|
|
23614
23614
|
}
|
|
23615
|
-
) })
|
|
23615
|
+
) }) })
|
|
23616
23616
|
] })
|
|
23617
23617
|
] })
|
|
23618
23618
|
);
|
|
23619
|
-
}, XC = "post", eE = "reply",
|
|
23619
|
+
}, XC = "post", eE = "reply", Zf = "00000000-0000-0000-0000-000000000000";
|
|
23620
23620
|
function No({ queryClient: e, queryKey: t }) {
|
|
23621
23621
|
function n(r, i, a) {
|
|
23622
23622
|
e.setQueryData(t, a);
|
|
@@ -23663,7 +23663,7 @@ function nE() {
|
|
|
23663
23663
|
}
|
|
23664
23664
|
};
|
|
23665
23665
|
}
|
|
23666
|
-
function
|
|
23666
|
+
function Yf(e) {
|
|
23667
23667
|
const { id: t = "", name: n = "", organization: r = "", jobTitle: i = "", image: a = {} } = e, { thumbnail: s = "" } = a;
|
|
23668
23668
|
return {
|
|
23669
23669
|
id: t,
|
|
@@ -23679,7 +23679,7 @@ function rE({ title: e, content: t }) {
|
|
|
23679
23679
|
return {
|
|
23680
23680
|
title: e,
|
|
23681
23681
|
content: t,
|
|
23682
|
-
id:
|
|
23682
|
+
id: Zf,
|
|
23683
23683
|
time: (/* @__PURE__ */ new Date()).toISOString(),
|
|
23684
23684
|
verb: XC
|
|
23685
23685
|
};
|
|
@@ -23687,7 +23687,7 @@ function rE({ title: e, content: t }) {
|
|
|
23687
23687
|
function _c({ activity: e, user: t }) {
|
|
23688
23688
|
return {
|
|
23689
23689
|
...e,
|
|
23690
|
-
actor:
|
|
23690
|
+
actor: Yf(t),
|
|
23691
23691
|
...tE()
|
|
23692
23692
|
};
|
|
23693
23693
|
}
|
|
@@ -23707,7 +23707,7 @@ function ea({
|
|
|
23707
23707
|
like: (n = e.reaction_counts) != null && n.like ? e.reaction_counts.like + 1 : 1
|
|
23708
23708
|
};
|
|
23709
23709
|
}
|
|
23710
|
-
function
|
|
23710
|
+
function Gf({ activity: e, user: t }) {
|
|
23711
23711
|
var n, r, i;
|
|
23712
23712
|
e.reaction_counts = {
|
|
23713
23713
|
...e.reaction_counts || {},
|
|
@@ -23740,7 +23740,7 @@ function ta({
|
|
|
23740
23740
|
pin: (n = e.reaction_counts) != null && n.pin ? e.reaction_counts.pin + 1 : 1
|
|
23741
23741
|
};
|
|
23742
23742
|
}
|
|
23743
|
-
function
|
|
23743
|
+
function Qf({ activity: e }) {
|
|
23744
23744
|
var t;
|
|
23745
23745
|
e.reaction_counts = {
|
|
23746
23746
|
...e.reaction_counts || {},
|
|
@@ -23759,13 +23759,13 @@ function iE({ activityId: e, replyId: t, content: n }) {
|
|
|
23759
23759
|
data: {
|
|
23760
23760
|
content: n
|
|
23761
23761
|
},
|
|
23762
|
-
id:
|
|
23762
|
+
id: Zf,
|
|
23763
23763
|
kind: eE,
|
|
23764
23764
|
parent: t || ""
|
|
23765
23765
|
};
|
|
23766
23766
|
}
|
|
23767
23767
|
function kc({ reply: e, user: t }) {
|
|
23768
|
-
const n =
|
|
23768
|
+
const n = Yf(t);
|
|
23769
23769
|
return {
|
|
23770
23770
|
...e,
|
|
23771
23771
|
user_id: n.id,
|
|
@@ -23828,7 +23828,7 @@ function qt(e, t) {
|
|
|
23828
23828
|
return r;
|
|
23829
23829
|
}
|
|
23830
23830
|
}
|
|
23831
|
-
function
|
|
23831
|
+
function Jf(e, t) {
|
|
23832
23832
|
for (const { results: n } of t.pages) {
|
|
23833
23833
|
const r = n.findIndex(({ id: i }) => i === e);
|
|
23834
23834
|
if (r !== -1) {
|
|
@@ -23845,14 +23845,14 @@ function Ro(e) {
|
|
|
23845
23845
|
[]
|
|
23846
23846
|
)) || [];
|
|
23847
23847
|
}
|
|
23848
|
-
const
|
|
23848
|
+
const Xf = (e, t) => {
|
|
23849
23849
|
const n = new CustomEvent(st.DISCUSSION_POST_ADDED, {
|
|
23850
23850
|
detail: { id: e, type: t }
|
|
23851
23851
|
});
|
|
23852
23852
|
document.dispatchEvent(n);
|
|
23853
23853
|
};
|
|
23854
23854
|
let Ac, fs = 0;
|
|
23855
|
-
const
|
|
23855
|
+
const eh = () => {
|
|
23856
23856
|
ce(() => (document.addEventListener(
|
|
23857
23857
|
st.DISCUSSION_POST_ADDED,
|
|
23858
23858
|
e
|
|
@@ -24075,7 +24075,7 @@ function fE({
|
|
|
24075
24075
|
i,
|
|
24076
24076
|
na(d, u, { replace: !0 })
|
|
24077
24077
|
), setTimeout(() => {
|
|
24078
|
-
|
|
24078
|
+
Xf(d.id, "activity");
|
|
24079
24079
|
}, 0);
|
|
24080
24080
|
}
|
|
24081
24081
|
});
|
|
@@ -24192,7 +24192,7 @@ function bE({
|
|
|
24192
24192
|
}) {
|
|
24193
24193
|
const { mutate: r } = ut({
|
|
24194
24194
|
mutationFn: e,
|
|
24195
|
-
onMutate: ({ activityId: i }) => t((a) =>
|
|
24195
|
+
onMutate: ({ activityId: i }) => t((a) => Jf(i, a)),
|
|
24196
24196
|
onError: n
|
|
24197
24197
|
});
|
|
24198
24198
|
return r;
|
|
@@ -24206,7 +24206,7 @@ function yE({
|
|
|
24206
24206
|
mutationFn: e,
|
|
24207
24207
|
onMutate: ({ activityId: a }) => t((s) => {
|
|
24208
24208
|
const o = qt(a, s);
|
|
24209
|
-
return o &&
|
|
24209
|
+
return o && Gf({ activity: o, user: r }), s;
|
|
24210
24210
|
}),
|
|
24211
24211
|
onError: n
|
|
24212
24212
|
});
|
|
@@ -24221,7 +24221,7 @@ function DE({
|
|
|
24221
24221
|
mutationFn: e,
|
|
24222
24222
|
onMutate: ({ activityId: a }) => t((s) => {
|
|
24223
24223
|
const o = qt(a, s);
|
|
24224
|
-
return o &&
|
|
24224
|
+
return o && Qf({ activity: o, user: r }), s;
|
|
24225
24225
|
}),
|
|
24226
24226
|
onError: n
|
|
24227
24227
|
});
|
|
@@ -24235,7 +24235,7 @@ const rk = ({
|
|
|
24235
24235
|
functions: { activities: i, mentions: a, join: s, leave: o, likes: l },
|
|
24236
24236
|
profile: u
|
|
24237
24237
|
}) => {
|
|
24238
|
-
const d = Dm(
|
|
24238
|
+
const d = Dm(Yc.COMMUNITY_RANKING), h = le(), [m, p] = ue(
|
|
24239
24239
|
"community_feed_live"
|
|
24240
24240
|
/* POPULAR */
|
|
24241
24241
|
), [g, f] = ue([
|
|
@@ -24267,9 +24267,9 @@ const rk = ({
|
|
|
24267
24267
|
const [A, C] = ue(null), T = () => {
|
|
24268
24268
|
C(b.length), x();
|
|
24269
24269
|
};
|
|
24270
|
-
return
|
|
24270
|
+
return eh(), v ? /* @__PURE__ */ c.jsx($n, { variant: "error", text: v.message }) : /* @__PURE__ */ c.jsxs("section", { children: [
|
|
24271
24271
|
/* @__PURE__ */ c.jsx(
|
|
24272
|
-
|
|
24272
|
+
rh,
|
|
24273
24273
|
{
|
|
24274
24274
|
isCard: !0,
|
|
24275
24275
|
parentId: t,
|
|
@@ -24451,7 +24451,7 @@ const rk = ({
|
|
|
24451
24451
|
}
|
|
24452
24452
|
}
|
|
24453
24453
|
),
|
|
24454
|
-
/* @__PURE__ */ c.jsx(
|
|
24454
|
+
/* @__PURE__ */ c.jsx(ih, { form: u })
|
|
24455
24455
|
] });
|
|
24456
24456
|
}, ik = {
|
|
24457
24457
|
next: "id_lt=67ef0342-6f6e-4807-beea-5a9184ec140c&limit=5",
|
|
@@ -25033,7 +25033,7 @@ function xE({
|
|
|
25033
25033
|
i,
|
|
25034
25034
|
na(d, u, { replace: !0, append: (l == null ? void 0 : l.replyId) !== void 0 })
|
|
25035
25035
|
), setTimeout(() => {
|
|
25036
|
-
|
|
25036
|
+
Xf(d.id, "reply");
|
|
25037
25037
|
}, 0);
|
|
25038
25038
|
}
|
|
25039
25039
|
});
|
|
@@ -25053,7 +25053,7 @@ function wE({
|
|
|
25053
25053
|
});
|
|
25054
25054
|
return r;
|
|
25055
25055
|
}
|
|
25056
|
-
function
|
|
25056
|
+
function th({
|
|
25057
25057
|
queryFns: { create: e, edit: t, like: n, list: r, remove: i, unlike: a },
|
|
25058
25058
|
queryKey: s
|
|
25059
25059
|
}) {
|
|
@@ -25119,7 +25119,7 @@ function _E({
|
|
|
25119
25119
|
}) {
|
|
25120
25120
|
const { mutate: r } = ut({
|
|
25121
25121
|
mutationFn: e,
|
|
25122
|
-
onMutate: ({ replyId: i }) => t((a) =>
|
|
25122
|
+
onMutate: ({ replyId: i }) => t((a) => Jf(i, a)),
|
|
25123
25123
|
onError: n
|
|
25124
25124
|
});
|
|
25125
25125
|
return r;
|
|
@@ -25154,7 +25154,7 @@ const FE = ({
|
|
|
25154
25154
|
isLoading: p,
|
|
25155
25155
|
mutations: { create: g, edit: f, like: b, remove: v, unlike: x },
|
|
25156
25156
|
user: k
|
|
25157
|
-
} =
|
|
25157
|
+
} = th({
|
|
25158
25158
|
queryKey: [e, t, n, r, "replies"],
|
|
25159
25159
|
queryFns: {
|
|
25160
25160
|
...a,
|
|
@@ -25162,7 +25162,7 @@ const FE = ({
|
|
|
25162
25162
|
list: (_) => a.list({ ..._, reactionId: r })
|
|
25163
25163
|
}
|
|
25164
25164
|
});
|
|
25165
|
-
|
|
25165
|
+
Ic([p]);
|
|
25166
25166
|
const [E, w] = ue(!0);
|
|
25167
25167
|
return /* @__PURE__ */ c.jsxs(c.Fragment, { children: [
|
|
25168
25168
|
(d == null ? void 0 : d.length) >= u && /* @__PURE__ */ c.jsx(
|
|
@@ -25314,16 +25314,16 @@ const AE = ({
|
|
|
25314
25314
|
isLoading: f,
|
|
25315
25315
|
mutations: { create: b, edit: v, like: x, remove: k, unlike: E },
|
|
25316
25316
|
user: w
|
|
25317
|
-
} =
|
|
25317
|
+
} = th({
|
|
25318
25318
|
queryKey: [e, t, n, "replies"],
|
|
25319
25319
|
queryFns: u
|
|
25320
25320
|
}), _ = () => {
|
|
25321
25321
|
z(m.length), p();
|
|
25322
25322
|
}, [S, z] = ue(null);
|
|
25323
|
-
return
|
|
25323
|
+
return Ic([f]), eh(), /* @__PURE__ */ c.jsxs("section", { className: "replies-feed", children: [
|
|
25324
25324
|
/* @__PURE__ */ c.jsx(qE, { type: "comment", responses: r, isLoading: f }),
|
|
25325
25325
|
/* @__PURE__ */ c.jsx(
|
|
25326
|
-
|
|
25326
|
+
rh,
|
|
25327
25327
|
{
|
|
25328
25328
|
form: {
|
|
25329
25329
|
content: { type: "reply", slugs: {} },
|
|
@@ -25456,7 +25456,7 @@ const AE = ({
|
|
|
25456
25456
|
}
|
|
25457
25457
|
}
|
|
25458
25458
|
),
|
|
25459
|
-
/* @__PURE__ */ c.jsx(
|
|
25459
|
+
/* @__PURE__ */ c.jsx(ih, { form: d })
|
|
25460
25460
|
] });
|
|
25461
25461
|
};
|
|
25462
25462
|
function BE({ queryFn: e, queryKey: t }) {
|
|
@@ -25563,7 +25563,7 @@ const jE = ({
|
|
|
25563
25563
|
class: V("subtle", t)
|
|
25564
25564
|
};
|
|
25565
25565
|
return /* @__PURE__ */ c.jsx("blockquote", { ...r, children: e });
|
|
25566
|
-
}, PE = 280,
|
|
25566
|
+
}, PE = 280, nh = async (e, t, n, r = () => Promise.resolve([])) => {
|
|
25567
25567
|
let i = t ? ir(
|
|
25568
25568
|
e,
|
|
25569
25569
|
typeof t == "number" ? t : PE
|
|
@@ -25572,7 +25572,7 @@ const jE = ({
|
|
|
25572
25572
|
const a = `<br>
|
|
25573
25573
|
|
|
25574
25574
|
`;
|
|
25575
|
-
return i.slice(0, a.length) === a && (i = i.slice(a.length)), n ? await
|
|
25575
|
+
return i.slice(0, a.length) === a && (i = i.slice(a.length)), n ? await Wc({
|
|
25576
25576
|
text: i,
|
|
25577
25577
|
template: "[@{{name}}](/profiles/{{id}})",
|
|
25578
25578
|
mentions: n,
|
|
@@ -25712,7 +25712,7 @@ const ma = ({
|
|
|
25712
25712
|
});
|
|
25713
25713
|
}, [t.isEdited]), ce(() => {
|
|
25714
25714
|
(async () => {
|
|
25715
|
-
const _e = await
|
|
25715
|
+
const _e = await nh(
|
|
25716
25716
|
W.body,
|
|
25717
25717
|
m,
|
|
25718
25718
|
F,
|
|
@@ -26082,14 +26082,14 @@ const IE = dr(
|
|
|
26082
26082
|
id: `member_${typeof o == "string" ? o : "community"}`
|
|
26083
26083
|
}));
|
|
26084
26084
|
const { modal: u = !1 } = e || {}, [d, h] = ue({
|
|
26085
|
-
form: u ||
|
|
26085
|
+
form: u || Hc("showPost") === "true" || !1,
|
|
26086
26086
|
warning: !1
|
|
26087
26087
|
}), [m, p] = ue({ showCachedText: !1 });
|
|
26088
26088
|
ce(() => {
|
|
26089
26089
|
if (!m.showCachedText)
|
|
26090
26090
|
return;
|
|
26091
26091
|
(async () => {
|
|
26092
|
-
const v = await
|
|
26092
|
+
const v = await nh(
|
|
26093
26093
|
m.title || m.body || "",
|
|
26094
26094
|
$E,
|
|
26095
26095
|
m.mentions
|
|
@@ -26238,7 +26238,7 @@ const IE = dr(
|
|
|
26238
26238
|
)
|
|
26239
26239
|
] })
|
|
26240
26240
|
] });
|
|
26241
|
-
}, zE = dr(() => Promise.resolve().then(() => VC)),
|
|
26241
|
+
}, zE = dr(() => Promise.resolve().then(() => VC)), rh = ({
|
|
26242
26242
|
isCard: e = !1,
|
|
26243
26243
|
form: t,
|
|
26244
26244
|
parentId: n,
|
|
@@ -26251,7 +26251,7 @@ const IE = dr(
|
|
|
26251
26251
|
text: o,
|
|
26252
26252
|
button: {
|
|
26253
26253
|
breakpoints: { mobile: !0, 901: !1 },
|
|
26254
|
-
component: /* @__PURE__ */ c.jsx(
|
|
26254
|
+
component: /* @__PURE__ */ c.jsx(md, { isShort: !0, functions: { join: a, leave: s } })
|
|
26255
26255
|
}
|
|
26256
26256
|
}
|
|
26257
26257
|
);
|
|
@@ -26273,7 +26273,7 @@ const IE = dr(
|
|
|
26273
26273
|
id: `add-post-${h.id || ""}`
|
|
26274
26274
|
};
|
|
26275
26275
|
return e ? /* @__PURE__ */ c.jsx(LE, { form: m }) : /* @__PURE__ */ c.jsx(zE, { ...m });
|
|
26276
|
-
},
|
|
26276
|
+
}, ih = ({ form: e }) => {
|
|
26277
26277
|
const t = Ie(vt), n = le(), [r, i] = ue(!1), a = () => {
|
|
26278
26278
|
Yh(t) || i(!0);
|
|
26279
26279
|
};
|
|
@@ -26444,7 +26444,7 @@ function ZE({
|
|
|
26444
26444
|
}) {
|
|
26445
26445
|
const { mutate: i } = ut({
|
|
26446
26446
|
mutationFn: e,
|
|
26447
|
-
onMutate: (a) => t((s) => (s &&
|
|
26447
|
+
onMutate: (a) => t((s) => (s && Gf({ activity: s, user: r }), s)),
|
|
26448
26448
|
onError: n
|
|
26449
26449
|
});
|
|
26450
26450
|
return i;
|
|
@@ -26472,7 +26472,7 @@ function GE({
|
|
|
26472
26472
|
}) {
|
|
26473
26473
|
const { mutate: i } = ut({
|
|
26474
26474
|
mutationFn: e,
|
|
26475
|
-
onMutate: (a) => (console.log("unpin"), t((s) => (s &&
|
|
26475
|
+
onMutate: (a) => (console.log("unpin"), t((s) => (s && Qf({ activity: s, user: r }), s))),
|
|
26476
26476
|
onError: n
|
|
26477
26477
|
});
|
|
26478
26478
|
return i;
|
|
@@ -26736,7 +26736,7 @@ const $o = ({
|
|
|
26736
26736
|
className: s
|
|
26737
26737
|
}) => {
|
|
26738
26738
|
const o = le(), [l, u] = ue(
|
|
26739
|
-
|
|
26739
|
+
Hc("showProfile") === "true" || e
|
|
26740
26740
|
);
|
|
26741
26741
|
ce(() => {
|
|
26742
26742
|
u(e);
|
|
@@ -27167,7 +27167,7 @@ const mk = ({
|
|
|
27167
27167
|
] });
|
|
27168
27168
|
}
|
|
27169
27169
|
if (d && !a || s)
|
|
27170
|
-
return /* @__PURE__ */ c.jsx("p", { className: "details", children: s ? n.formatMessage({ id: "card_bootcamp" }) :
|
|
27170
|
+
return /* @__PURE__ */ c.jsx("p", { className: "details", children: s ? n.formatMessage({ id: "card_bootcamp" }) : qc(d) });
|
|
27171
27171
|
if (o)
|
|
27172
27172
|
return /* @__PURE__ */ c.jsx(
|
|
27173
27173
|
bn,
|
|
@@ -27367,7 +27367,7 @@ function o_({ buildMemberData: e, communitySlug: t }) {
|
|
|
27367
27367
|
/* @__PURE__ */ c.jsx("span", { className: "label member-count", children: n.formatMessage({ id: "card_member_count" }, { count: i.count }) })
|
|
27368
27368
|
] });
|
|
27369
27369
|
}
|
|
27370
|
-
const
|
|
27370
|
+
const ah = ({
|
|
27371
27371
|
id: e = "",
|
|
27372
27372
|
className: t = "",
|
|
27373
27373
|
buildCardData: n,
|
|
@@ -27472,7 +27472,7 @@ const ih = ({
|
|
|
27472
27472
|
}
|
|
27473
27473
|
) : null,
|
|
27474
27474
|
f.contributors && /* @__PURE__ */ c.jsx(
|
|
27475
|
-
|
|
27475
|
+
td,
|
|
27476
27476
|
{
|
|
27477
27477
|
contributors: { data: f.contributors },
|
|
27478
27478
|
styling: {
|
|
@@ -27523,7 +27523,7 @@ const ih = ({
|
|
|
27523
27523
|
const u_ = ({ cards: e, cardTypes: t, className: n = "", ...r }) => /* @__PURE__ */ c.jsx("ul", { className: V("card-block", n), children: e.map((i, a) => {
|
|
27524
27524
|
const s = i.slug ? `${i.slug}-${t[a]}` : `${t[a]}-${a}`;
|
|
27525
27525
|
return /* @__PURE__ */ c.jsx(
|
|
27526
|
-
|
|
27526
|
+
ah,
|
|
27527
27527
|
{
|
|
27528
27528
|
id: s,
|
|
27529
27529
|
card: { ...i, contentType: t[a] },
|
|
@@ -27669,7 +27669,7 @@ const d_ = ({
|
|
|
27669
27669
|
children: t.map((C, T) => {
|
|
27670
27670
|
let j = A(C, T);
|
|
27671
27671
|
return j && l_(T, m, b, v) ? /* @__PURE__ */ c.jsx(
|
|
27672
|
-
|
|
27672
|
+
ah,
|
|
27673
27673
|
{
|
|
27674
27674
|
id: j,
|
|
27675
27675
|
card: { ...C, contentType: n[T] },
|
|
@@ -27825,7 +27825,7 @@ const gk = ({
|
|
|
27825
27825
|
}
|
|
27826
27826
|
),
|
|
27827
27827
|
/* @__PURE__ */ c.jsx(
|
|
27828
|
-
|
|
27828
|
+
Jc,
|
|
27829
27829
|
{
|
|
27830
27830
|
progress: u,
|
|
27831
27831
|
styling: {
|
|
@@ -28086,11 +28086,11 @@ export {
|
|
|
28086
28086
|
an as ASSETS_BUCKET,
|
|
28087
28087
|
rk as ActivitiesFeed,
|
|
28088
28088
|
ak as ActivitySection,
|
|
28089
|
-
|
|
28089
|
+
rh as AddPost,
|
|
28090
28090
|
Fm as Badge,
|
|
28091
28091
|
gt as BadgeScope,
|
|
28092
28092
|
Am as Badges,
|
|
28093
|
-
|
|
28093
|
+
Kc as BadgesContext,
|
|
28094
28094
|
gm as BadgesProvider,
|
|
28095
28095
|
ck as Banner,
|
|
28096
28096
|
dk as BannerSection,
|
|
@@ -28100,17 +28100,17 @@ export {
|
|
|
28100
28100
|
Zr as ButtonWrapper,
|
|
28101
28101
|
ti as COURSE_CONTENT_TYPES,
|
|
28102
28102
|
vm as CacheProvider,
|
|
28103
|
-
|
|
28103
|
+
ah as Card,
|
|
28104
28104
|
u_ as CardBlock,
|
|
28105
28105
|
pk as Carousel,
|
|
28106
|
-
|
|
28106
|
+
gd as CharacterLimit,
|
|
28107
28107
|
eo as CollapsibleSection,
|
|
28108
28108
|
Wp as Columns,
|
|
28109
28109
|
L_ as CommunityDetails,
|
|
28110
28110
|
ek as ContactFooter,
|
|
28111
28111
|
_C as ContactForm,
|
|
28112
28112
|
rm as ContentTypeLabel,
|
|
28113
|
-
|
|
28113
|
+
td as Contributors,
|
|
28114
28114
|
Po as ConversationContext,
|
|
28115
28115
|
NC as CookieBanner,
|
|
28116
28116
|
gk as CourseProgression,
|
|
@@ -28133,17 +28133,17 @@ export {
|
|
|
28133
28133
|
Hp as EmailHelperTextBox,
|
|
28134
28134
|
$n as EmptyStateBox,
|
|
28135
28135
|
q_ as EnrichedUrl,
|
|
28136
|
-
|
|
28136
|
+
Yc as FeatureFlags,
|
|
28137
28137
|
W_ as Filters,
|
|
28138
28138
|
xm as FlagsProvider,
|
|
28139
|
-
|
|
28139
|
+
Vf as Footer,
|
|
28140
28140
|
wn as Form,
|
|
28141
28141
|
Y as Formatting,
|
|
28142
28142
|
Rt as Fragment,
|
|
28143
28143
|
qn as FullWidthSection,
|
|
28144
28144
|
Go as GET_STREAM_USER_PREFIX,
|
|
28145
28145
|
I_ as GlobalProviders,
|
|
28146
|
-
|
|
28146
|
+
Kf as Header,
|
|
28147
28147
|
im as HelperTextBox,
|
|
28148
28148
|
Js as HiddenFromScreenReaders,
|
|
28149
28149
|
am as HideShowTextBox,
|
|
@@ -28155,8 +28155,8 @@ export {
|
|
|
28155
28155
|
wm as IntlProvider,
|
|
28156
28156
|
kC as InviteForm,
|
|
28157
28157
|
sk as InviteModal,
|
|
28158
|
-
|
|
28159
|
-
|
|
28158
|
+
md as JoinButton,
|
|
28159
|
+
Gc as LanguageContext,
|
|
28160
28160
|
U_ as LanguageSwitcher,
|
|
28161
28161
|
f_ as LessonName,
|
|
28162
28162
|
h_ as LessonType,
|
|
@@ -28167,7 +28167,7 @@ export {
|
|
|
28167
28167
|
$_ as LoadingBlock,
|
|
28168
28168
|
zt as LoadingPlaceholder,
|
|
28169
28169
|
no as LoadingState,
|
|
28170
|
-
|
|
28170
|
+
pd as Logo,
|
|
28171
28171
|
X_ as LogoSection,
|
|
28172
28172
|
LC as MEMBERS_PER_PAGE,
|
|
28173
28173
|
Rh as MENTION_REGEX,
|
|
@@ -28177,14 +28177,14 @@ export {
|
|
|
28177
28177
|
rn as Marks,
|
|
28178
28178
|
yn as Member,
|
|
28179
28179
|
zC as MembersList,
|
|
28180
|
-
|
|
28180
|
+
nd as Modal,
|
|
28181
28181
|
Np as MoreMenu,
|
|
28182
28182
|
S_ as NUMBER_OF_COUNTRIES,
|
|
28183
28183
|
T_ as NUMBER_OF_USERS,
|
|
28184
28184
|
$p as NavigationMenu,
|
|
28185
28185
|
Dk as NotFoundError,
|
|
28186
28186
|
xn as Overlay,
|
|
28187
|
-
|
|
28187
|
+
Qc as OverlayContext,
|
|
28188
28188
|
_m as OverlayProvider,
|
|
28189
28189
|
mm as PageHeading,
|
|
28190
28190
|
IC as PageLayout,
|
|
@@ -28196,9 +28196,9 @@ export {
|
|
|
28196
28196
|
FC as ProfileForm,
|
|
28197
28197
|
EC as ProfileImageChange,
|
|
28198
28198
|
$o as ProfileModal,
|
|
28199
|
-
|
|
28199
|
+
ih as ProfileModalLauncher,
|
|
28200
28200
|
Ln as ProfilePicture,
|
|
28201
|
-
|
|
28201
|
+
Jc as ProgressBar,
|
|
28202
28202
|
P_ as ProgressTracker,
|
|
28203
28203
|
K_ as Rating,
|
|
28204
28204
|
AE as RepliesFeed,
|
|
@@ -28231,9 +28231,9 @@ export {
|
|
|
28231
28231
|
j_ as generateCssIcon,
|
|
28232
28232
|
Jr as getAuthorData,
|
|
28233
28233
|
Up as getCharacterLimitProps,
|
|
28234
|
-
|
|
28234
|
+
qc as getLongDate,
|
|
28235
28235
|
ro as getMember,
|
|
28236
|
-
|
|
28236
|
+
nh as getPostBody,
|
|
28237
28237
|
Ih as getShortDate,
|
|
28238
28238
|
so as getValueLength,
|
|
28239
28239
|
Qi as headerData,
|
|
@@ -28252,7 +28252,7 @@ export {
|
|
|
28252
28252
|
hr as useElementWidth,
|
|
28253
28253
|
Em as useOverlay,
|
|
28254
28254
|
jh as useScrollListener,
|
|
28255
|
-
|
|
28256
|
-
|
|
28255
|
+
Ic as useScrollToHash,
|
|
28256
|
+
$c as useTooltips,
|
|
28257
28257
|
to as useUser
|
|
28258
28258
|
};
|