@apolitical/component-library 5.4.3 → 5.4.4-beta.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/discussion/shared/interfaces/activity.interface.d.ts +3 -1
- package/hooks/use-tooltips.d.ts +4 -0
- package/index.js +2 -2
- package/index.mjs +215 -210
- package/package.json +1 -1
- package/style.css +1 -1
- package/text/pill/pill.d.ts +6 -3
package/index.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import te, { memo as Jt, useState as le, useEffect as de, useRef as ke, useMemo as Yt, forwardRef as Ys, Children as vs, createContext as Ft, useContext as Ie, useCallback as Me, lazy as hr, useReducer as mr, useLayoutEffect as mh, Component as ph, Fragment as Lr, Suspense as jc } from "react";
|
|
2
2
|
import { useIntl as ce, FormattedMessage as mt, IntlProvider as gh, createIntl as vh } from "react-intl";
|
|
3
3
|
import Tn from "lodash.clonedeep";
|
|
4
4
|
import bh from "lodash.set";
|
|
@@ -81,7 +81,7 @@ const K = /* @__PURE__ */ $n(kh), Fh = ({
|
|
|
81
81
|
children: n,
|
|
82
82
|
className: r = "",
|
|
83
83
|
...i
|
|
84
|
-
}) =>
|
|
84
|
+
}) => te.createElement(e, {
|
|
85
85
|
...i,
|
|
86
86
|
className: K("hidden", r, { "show-on-focus": t }),
|
|
87
87
|
children: n
|
|
@@ -89,7 +89,7 @@ const K = /* @__PURE__ */ $n(kh), Fh = ({
|
|
|
89
89
|
element: e = "span",
|
|
90
90
|
children: t = null,
|
|
91
91
|
...n
|
|
92
|
-
}) =>
|
|
92
|
+
}) => te.createElement(e, { ...n, "aria-hidden": !0 }, t), Js = Jt(Ah);
|
|
93
93
|
var ys = { exports: {} }, xr = {};
|
|
94
94
|
/**
|
|
95
95
|
* @license React
|
|
@@ -105,7 +105,7 @@ function Bh() {
|
|
|
105
105
|
if (Zo)
|
|
106
106
|
return xr;
|
|
107
107
|
Zo = 1;
|
|
108
|
-
var e =
|
|
108
|
+
var e = te, t = Symbol.for("react.element"), n = Symbol.for("react.fragment"), r = Object.prototype.hasOwnProperty, i = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, a = { key: !0, ref: !0, __self: !0, __source: !0 };
|
|
109
109
|
function s(o, l, u) {
|
|
110
110
|
var d, h = {}, m = null, p = null;
|
|
111
111
|
u !== void 0 && (m = "" + u), l.key !== void 0 && (m = "" + l.key), l.ref !== void 0 && (p = l.ref);
|
|
@@ -131,7 +131,7 @@ var Dr = {};
|
|
|
131
131
|
var Yo;
|
|
132
132
|
function Th() {
|
|
133
133
|
return Yo || (Yo = 1, process.env.NODE_ENV !== "production" && function() {
|
|
134
|
-
var e =
|
|
134
|
+
var e = te, t = Symbol.for("react.element"), n = Symbol.for("react.portal"), r = Symbol.for("react.fragment"), i = Symbol.for("react.strict_mode"), a = Symbol.for("react.profiler"), s = Symbol.for("react.provider"), o = Symbol.for("react.context"), l = Symbol.for("react.forward_ref"), u = Symbol.for("react.suspense"), d = Symbol.for("react.suspense_list"), h = Symbol.for("react.memo"), m = Symbol.for("react.lazy"), p = Symbol.for("react.offscreen"), g = Symbol.iterator, f = "@@iterator";
|
|
135
135
|
function v(M) {
|
|
136
136
|
if (M === null || typeof M != "object")
|
|
137
137
|
return null;
|
|
@@ -296,16 +296,16 @@ function Th() {
|
|
|
296
296
|
` + I + M;
|
|
297
297
|
}
|
|
298
298
|
}
|
|
299
|
-
var q = !1,
|
|
299
|
+
var q = !1, ne;
|
|
300
300
|
{
|
|
301
301
|
var ue = typeof WeakMap == "function" ? WeakMap : Map;
|
|
302
|
-
|
|
302
|
+
ne = new ue();
|
|
303
303
|
}
|
|
304
304
|
function Q(M, se) {
|
|
305
305
|
if (!M || q)
|
|
306
306
|
return "";
|
|
307
307
|
{
|
|
308
|
-
var fe =
|
|
308
|
+
var fe = ne.get(M);
|
|
309
309
|
if (fe !== void 0)
|
|
310
310
|
return fe;
|
|
311
311
|
}
|
|
@@ -360,7 +360,7 @@ function Th() {
|
|
|
360
360
|
if (nt--, at--, at < 0 || Pe[nt] !== gt[at]) {
|
|
361
361
|
var jt = `
|
|
362
362
|
` + Pe[nt].replace(" at new ", " at ");
|
|
363
|
-
return M.displayName && jt.includes("<anonymous>") && (jt = jt.replace("<anonymous>", M.displayName)), typeof M == "function" &&
|
|
363
|
+
return M.displayName && jt.includes("<anonymous>") && (jt = jt.replace("<anonymous>", M.displayName)), typeof M == "function" && ne.set(M, jt), jt;
|
|
364
364
|
}
|
|
365
365
|
while (nt >= 1 && at >= 0);
|
|
366
366
|
break;
|
|
@@ -370,7 +370,7 @@ function Th() {
|
|
|
370
370
|
q = !1, P.current = Ke, j(), Error.prepareStackTrace = Re;
|
|
371
371
|
}
|
|
372
372
|
var Vn = M ? M.displayName || M.name : "", Ko = Vn ? Z(Vn) : "";
|
|
373
|
-
return typeof M == "function" &&
|
|
373
|
+
return typeof M == "function" && ne.set(M, Ko), Ko;
|
|
374
374
|
}
|
|
375
375
|
function ve(M, se, fe) {
|
|
376
376
|
return Q(M, !1);
|
|
@@ -795,7 +795,7 @@ let ba;
|
|
|
795
795
|
const pr = (e = !0, t = !1, n = "window") => {
|
|
796
796
|
if (!e)
|
|
797
797
|
return;
|
|
798
|
-
const [r, i] =
|
|
798
|
+
const [r, i] = te.useState(0) || [!1, () => {
|
|
799
799
|
}];
|
|
800
800
|
de(() => (o(), window.addEventListener("resize", u), window.addEventListener("hashchange", u), window.addEventListener("hiddenSectionVisible", l), () => {
|
|
801
801
|
clearTimeout(ba), u.flush(), window.removeEventListener("resize", u), window.removeEventListener("hashchange", u), window.removeEventListener("hiddenSectionVisible", l);
|
|
@@ -829,11 +829,11 @@ const pr = (e = !0, t = !1, n = "window") => {
|
|
|
829
829
|
}) => {
|
|
830
830
|
if (!window)
|
|
831
831
|
return;
|
|
832
|
-
const [i, a] =
|
|
832
|
+
const [i, a] = te.useState({
|
|
833
833
|
current: 0,
|
|
834
834
|
past: 0
|
|
835
835
|
}) || [!1, () => {
|
|
836
|
-
}], [s, o] =
|
|
836
|
+
}], [s, o] = te.useState({
|
|
837
837
|
scrollDown: !1,
|
|
838
838
|
scrollUp: !1
|
|
839
839
|
}) || [!1, () => {
|
|
@@ -870,6 +870,10 @@ const pr = (e = !0, t = !1, n = "window") => {
|
|
|
870
870
|
return {
|
|
871
871
|
showTooltip: t,
|
|
872
872
|
tooltipProps: {
|
|
873
|
+
onClick: () => n(!t),
|
|
874
|
+
onKeyDown: (r) => {
|
|
875
|
+
(r.key === "Enter" || r.key === " ") && (r.preventDefault(), r.stopPropagation(), n(!t));
|
|
876
|
+
},
|
|
873
877
|
onMouseOver: () => n(!0),
|
|
874
878
|
onMouseOut: () => n(!1),
|
|
875
879
|
onFocus: () => n(!0),
|
|
@@ -928,10 +932,11 @@ const Go = {}, gr = Ys(
|
|
|
928
932
|
const $ = {
|
|
929
933
|
className: "content"
|
|
930
934
|
};
|
|
931
|
-
return w ? $.className = K("content", { hidden: f === "hidden" }) : $.hidden = f === "hidden", /* @__PURE__ */ c.jsx(
|
|
935
|
+
return w ? $.className = K("content", { hidden: f === "hidden" }) : ($.hidden = f === "hidden", $["aria-live"] = "polite"), /* @__PURE__ */ c.jsx(
|
|
932
936
|
"aside",
|
|
933
937
|
{
|
|
934
938
|
ref: g,
|
|
939
|
+
id: m,
|
|
935
940
|
className: K("tooltip text-medium", f, a, {
|
|
936
941
|
loading: r,
|
|
937
942
|
"extra-padding": b,
|
|
@@ -1596,7 +1601,7 @@ Thank you for helping to protect the Apolitical community from abusive content.`
|
|
|
1596
1601
|
}
|
|
1597
1602
|
}
|
|
1598
1603
|
return r;
|
|
1599
|
-
}, ki = (e, t) =>
|
|
1604
|
+
}, ki = (e, t) => te.Children.map(e, (n) => Object.is(n, null) ? n : te.cloneElement(n, {
|
|
1600
1605
|
...t
|
|
1601
1606
|
})), Zh = (e = 0) => {
|
|
1602
1607
|
setTimeout(() => {
|
|
@@ -1707,7 +1712,7 @@ const Be = ({
|
|
|
1707
1712
|
disabled: typeof l == "object" && "isClickable" in l ? !l.isClickable : l
|
|
1708
1713
|
};
|
|
1709
1714
|
i && (a = "a", C.href = i);
|
|
1710
|
-
const _ =
|
|
1715
|
+
const _ = te.createElement(
|
|
1711
1716
|
a,
|
|
1712
1717
|
C,
|
|
1713
1718
|
h || (d ? /* @__PURE__ */ c.jsx(Ue, { showOnFocus: !1, children: d }) : null)
|
|
@@ -1728,7 +1733,7 @@ const Be = ({
|
|
|
1728
1733
|
var l;
|
|
1729
1734
|
return i === "p" ? /* @__PURE__ */ c.jsx(Be, { ...s }, o) : /* @__PURE__ */ c.jsx("li", { className: ((l = t[o]) == null ? void 0 : l.className) || "", children: /* @__PURE__ */ c.jsx(Be, { ...s }) }, o);
|
|
1730
1735
|
});
|
|
1731
|
-
return
|
|
1736
|
+
return te.createElement(i, {
|
|
1732
1737
|
className: K("button-wrapper", n),
|
|
1733
1738
|
...r,
|
|
1734
1739
|
children: a
|
|
@@ -1950,7 +1955,7 @@ const M_ = ({ image: e, className: t = "", testId: n }) => /* @__PURE__ */ c.jsx
|
|
|
1950
1955
|
const l = { ...o };
|
|
1951
1956
|
return i && (l.onClick = i), a && (l["data-gtm-event-context"] = a), s && (l["data-gtm-event-type"] = s), /* @__PURE__ */ c.jsx("a", { href: e, className: K("gtm-trackable", r), ...l, children: t });
|
|
1952
1957
|
}
|
|
1953
|
-
return n ?
|
|
1958
|
+
return n ? te.createElement(n, { children: t, className: r, ...o }) : /* @__PURE__ */ c.jsx(c.Fragment, { children: t });
|
|
1954
1959
|
};
|
|
1955
1960
|
const Xh = Ys(
|
|
1956
1961
|
({ className: e = "", children: t }, n) => {
|
|
@@ -2215,7 +2220,7 @@ const im = ({
|
|
|
2215
2220
|
Gt,
|
|
2216
2221
|
{
|
|
2217
2222
|
options: {
|
|
2218
|
-
wrapper:
|
|
2223
|
+
wrapper: te.Fragment,
|
|
2219
2224
|
forceBlock: !0,
|
|
2220
2225
|
overrides: Kc
|
|
2221
2226
|
},
|
|
@@ -2303,23 +2308,23 @@ const L_ = ({
|
|
|
2303
2308
|
className: a = ""
|
|
2304
2309
|
}) => {
|
|
2305
2310
|
const { hasBorder: s = !1, zebraStriping: o = !1 } = i;
|
|
2306
|
-
return
|
|
2311
|
+
return te.createElement(e, {
|
|
2307
2312
|
className: K("icon-bulleted-list text-medium", n, a, {
|
|
2308
2313
|
"has-border": s,
|
|
2309
2314
|
"has-zebra-stripes": o,
|
|
2310
2315
|
[t]: e !== "dl"
|
|
2311
2316
|
}),
|
|
2312
2317
|
children: r.map((l, u) => {
|
|
2313
|
-
const d = { wrapper:
|
|
2318
|
+
const d = { wrapper: te.Fragment, forceInline: !0 }, h = {
|
|
2314
2319
|
"--icon": `url(${sn}icons/${l.icon}.svg)`
|
|
2315
2320
|
};
|
|
2316
|
-
return e === "dl" ? /* @__PURE__ */ c.jsxs(
|
|
2321
|
+
return e === "dl" ? /* @__PURE__ */ c.jsxs(te.Fragment, { children: [
|
|
2317
2322
|
/* @__PURE__ */ c.jsx("dt", { style: h, children: /* @__PURE__ */ c.jsx(Gt, { options: d, children: l.dt || "" }) }, `dt-${u}`),
|
|
2318
2323
|
/* @__PURE__ */ c.jsx("dd", { children: typeof l.text == "string" ? /* @__PURE__ */ c.jsx(Gt, { options: d, children: l.text }) : l.text }, `dd-${u}`)
|
|
2319
2324
|
] }, `dl-${u}`) : /* @__PURE__ */ c.jsx("li", { style: h, children: typeof l.text == "string" ? /* @__PURE__ */ c.jsx(Gt, { options: d, children: l.text }) : l.text }, u);
|
|
2320
2325
|
})
|
|
2321
2326
|
});
|
|
2322
|
-
}, ht = () =>
|
|
2327
|
+
}, ht = () => te.Fragment, sm = ({ children: e }) => /* @__PURE__ */ c.jsx(zt, { variant: "secondary", children: e }), om = ({ children: e }) => typeof e == "object" && Object.keys(e || {}).length === 1 ? /* @__PURE__ */ c.jsx("p", { className: "center", children: e }) : /* @__PURE__ */ c.jsx("div", { className: "center", children: e }), um = ["span", "strong", "h1", "h2", "h3", "h4", "h5", "h6", "p"], lm = ({ children: e }) => {
|
|
2323
2328
|
const t = ce();
|
|
2324
2329
|
if (!e)
|
|
2325
2330
|
return null;
|
|
@@ -2329,10 +2334,10 @@ const L_ = ({
|
|
|
2329
2334
|
const r = [];
|
|
2330
2335
|
for (const a of vs.toArray(e))
|
|
2331
2336
|
if (!(!a || typeof a == "string" || typeof a == "number"))
|
|
2332
|
-
if (
|
|
2337
|
+
if (te.isValidElement(a) && a.type === "summary") {
|
|
2333
2338
|
if (a.props && a.props.children) {
|
|
2334
2339
|
for (const s of vs.toArray(a.props.children))
|
|
2335
|
-
if (!(!s || typeof s == "string" || typeof s == "number") &&
|
|
2340
|
+
if (!(!s || typeof s == "string" || typeof s == "number") && te.isValidElement(s)) {
|
|
2336
2341
|
const o = s.type;
|
|
2337
2342
|
if (um.includes(o)) {
|
|
2338
2343
|
for (n = s.props.children; typeof n != "string" && (Array.isArray(n) && n[0].props && n[0].props.children && n[0].props.children[0]); )
|
|
@@ -2416,10 +2421,10 @@ const L_ = ({
|
|
|
2416
2421
|
t.href && (t.href.includes("http:") || t.href.includes("https:")) && !t.target && (r.target = "_blank");
|
|
2417
2422
|
let i = e, a = !1;
|
|
2418
2423
|
for (const o of vs.toArray(e))
|
|
2419
|
-
if (!(!o || typeof o == "string" || typeof o == "number") &&
|
|
2424
|
+
if (!(!o || typeof o == "string" || typeof o == "number") && te.isValidElement(o)) {
|
|
2420
2425
|
const l = o.type;
|
|
2421
2426
|
if (["button", "center", "span", "strong"].includes(l) && o.props && o.props.children && o.props.children[0])
|
|
2422
|
-
for ((l === "button" || au(o.props.children[0]) === "button") && (a = !0), i = o.props.children[0]; i && typeof i != "string" && !(typeof i == "boolean" || typeof i == "number" || !
|
|
2427
|
+
for ((l === "button" || au(o.props.children[0]) === "button") && (a = !0), i = o.props.children[0]; i && typeof i != "string" && !(typeof i == "boolean" || typeof i == "number" || !te.isValidElement(i)); )
|
|
2423
2428
|
if (i.props && i.props.children && i.props.children[0])
|
|
2424
2429
|
i = i.props.children[0], i && au(i) === "button" && (a = !0);
|
|
2425
2430
|
else
|
|
@@ -2477,11 +2482,11 @@ const hm = {
|
|
|
2477
2482
|
const { highlightTitles: s = !1 } = a;
|
|
2478
2483
|
r = r.replace(/^<br\/?>/, "");
|
|
2479
2484
|
const o = {
|
|
2480
|
-
wrapper:
|
|
2485
|
+
wrapper: te.Fragment,
|
|
2481
2486
|
forceBlock: !0
|
|
2482
2487
|
};
|
|
2483
2488
|
let l = hm[i];
|
|
2484
|
-
return n.overrides && (l = { ...l, ...n.overrides }),
|
|
2489
|
+
return n.overrides && (l = { ...l, ...n.overrides }), te.createElement(e, {
|
|
2485
2490
|
className: K("markdown-text", t, {
|
|
2486
2491
|
"highlight-titles": s
|
|
2487
2492
|
}),
|
|
@@ -2498,8 +2503,8 @@ const mm = ({
|
|
|
2498
2503
|
const a = e ? { "--max-width": `${e / 16}rem` } : {};
|
|
2499
2504
|
return /* @__PURE__ */ c.jsxs("section", { className: K("page-heading", i), children: [
|
|
2500
2505
|
/* @__PURE__ */ c.jsxs("div", { className: K("content", { "has-max-width": e }), style: a, children: [
|
|
2501
|
-
t && t.text &&
|
|
2502
|
-
n && n.text &&
|
|
2506
|
+
t && t.text && te.createElement(t.element || "h1", { className: "title" }, t.text),
|
|
2507
|
+
n && n.text && te.createElement(
|
|
2503
2508
|
n.element || "h2",
|
|
2504
2509
|
{ className: "text-medium" },
|
|
2505
2510
|
n.text
|
|
@@ -2520,33 +2525,33 @@ const an = ({
|
|
|
2520
2525
|
}) => {
|
|
2521
2526
|
const l = {
|
|
2522
2527
|
"--icon": `url(${sn}icons/${r}.svg)`
|
|
2523
|
-
}, { showTooltip: u, tooltipProps: d } = zc(!!i), h =
|
|
2528
|
+
}, { showTooltip: u, tooltipProps: d } = zc(!!i), h = {}, m = i ? `tooltip-${window.btoa(i).substring(9, 15)}` : void 0;
|
|
2529
|
+
i && m && (h["aria-describedby"] = m, h.role = "button");
|
|
2530
|
+
const p = te.createElement(i ? "span" : s, {
|
|
2524
2531
|
className: K("pill", e, t, n, {
|
|
2525
2532
|
"has-icon": r
|
|
2526
2533
|
}),
|
|
2527
2534
|
style: l,
|
|
2528
2535
|
children: a,
|
|
2529
2536
|
...d,
|
|
2537
|
+
...h,
|
|
2530
2538
|
...o
|
|
2531
2539
|
});
|
|
2532
|
-
return i ?
|
|
2533
|
-
|
|
2534
|
-
|
|
2535
|
-
|
|
2536
|
-
|
|
2537
|
-
|
|
2538
|
-
|
|
2539
|
-
|
|
2540
|
-
}
|
|
2541
|
-
)
|
|
2542
|
-
] }) : h;
|
|
2540
|
+
return i ? te.createElement(
|
|
2541
|
+
s,
|
|
2542
|
+
{ className: "pill-wrapper" },
|
|
2543
|
+
/* @__PURE__ */ c.jsxs(c.Fragment, { children: [
|
|
2544
|
+
p,
|
|
2545
|
+
/* @__PURE__ */ c.jsx(gr, { id: m, isOpen: u, children: i })
|
|
2546
|
+
] })
|
|
2547
|
+
) : p;
|
|
2543
2548
|
};
|
|
2544
2549
|
const Ri = ({
|
|
2545
2550
|
element: e = "p",
|
|
2546
2551
|
children: t = null,
|
|
2547
2552
|
className: n = "",
|
|
2548
2553
|
...r
|
|
2549
|
-
}) =>
|
|
2554
|
+
}) => te.createElement(
|
|
2550
2555
|
e,
|
|
2551
2556
|
{
|
|
2552
2557
|
...r,
|
|
@@ -2583,7 +2588,7 @@ function ym(e) {
|
|
|
2583
2588
|
var t = e.children, n = e.client, r = e.apiKey, i = e.options, a = Yt(function() {
|
|
2584
2589
|
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 && (_i.__loaded && console.warn("[PostHog.js] was already loaded elsewhere. This may cause issues."), _i.init(r, i)), _i);
|
|
2585
2590
|
}, [n, r]);
|
|
2586
|
-
return
|
|
2591
|
+
return te.createElement(bm.Provider, { value: { client: a } }, t);
|
|
2587
2592
|
}
|
|
2588
2593
|
const xm = ({ children: e, user: t }) => t.isLoading ? null : process.env.REACT_APP_PUBLIC_POSTHOG_KEY ? /* @__PURE__ */ c.jsx(
|
|
2589
2594
|
ym,
|
|
@@ -2681,7 +2686,7 @@ const Fm = ({ slug: e }) => {
|
|
|
2681
2686
|
var xt = /* @__PURE__ */ ((e) => (e.COMMUNITIES = "communities", e.PLATFORM = "platform", e))(xt || {});
|
|
2682
2687
|
const Am = ({ element: e = "ul", userBadges: t, badgeOptions: n }) => {
|
|
2683
2688
|
if (Object.keys(t).length !== 0)
|
|
2684
|
-
return
|
|
2689
|
+
return te.createElement(e, {
|
|
2685
2690
|
className: "badges-list",
|
|
2686
2691
|
children: (n == null ? void 0 : n.scopes) && (n == null ? void 0 : n.scopes.map(
|
|
2687
2692
|
(r) => {
|
|
@@ -2711,7 +2716,7 @@ const Bm = ({
|
|
|
2711
2716
|
[l !== "default" ? l : ""]: l !== "default"
|
|
2712
2717
|
}),
|
|
2713
2718
|
style: d,
|
|
2714
|
-
children:
|
|
2719
|
+
children: te.createElement(a ? "span" : Ue, {
|
|
2715
2720
|
className: a ? "text" : "",
|
|
2716
2721
|
children: n || i.formatMessage({ id: "progressBar" }, { number: t })
|
|
2717
2722
|
})
|
|
@@ -2915,7 +2920,7 @@ const xn = ({
|
|
|
2915
2920
|
let { url: N } = w;
|
|
2916
2921
|
typeof t == "object" && t.link !== void 0 && (t.link === !1 ? N = void 0 : N = t.link);
|
|
2917
2922
|
const z = jm(w), $ = r && r.createdAt ? xs(r.createdAt) : !1, k = r && r.createdAt ? Wc(r.createdAt) : "";
|
|
2918
|
-
return
|
|
2923
|
+
return te.createElement(e, {
|
|
2919
2924
|
...d,
|
|
2920
2925
|
className: K("member text-medium", g, f, l, {
|
|
2921
2926
|
"has-profile-link": _
|
|
@@ -3048,7 +3053,7 @@ const uu = {
|
|
|
3048
3053
|
...d
|
|
3049
3054
|
}) => {
|
|
3050
3055
|
const h = ce();
|
|
3051
|
-
return !n || n.length === 0 ? null :
|
|
3056
|
+
return !n || n.length === 0 ? null : te.createElement(e, {
|
|
3052
3057
|
...d,
|
|
3053
3058
|
className: K("contributors", u, i, { "has-gap": a }),
|
|
3054
3059
|
children: /* @__PURE__ */ c.jsxs(c.Fragment, { children: [
|
|
@@ -3086,7 +3091,7 @@ const uu = {
|
|
|
3086
3091
|
] })
|
|
3087
3092
|
});
|
|
3088
3093
|
};
|
|
3089
|
-
const td = ({ element: e = "section", children: t, className: n, ...r }) =>
|
|
3094
|
+
const td = ({ element: e = "section", children: t, className: n, ...r }) => te.createElement(e, {
|
|
3090
3095
|
className: K("modal", n),
|
|
3091
3096
|
children: typeof t == "string" ? /* @__PURE__ */ c.jsx("p", { children: t }) : t,
|
|
3092
3097
|
...r
|
|
@@ -3250,13 +3255,13 @@ function Rm() {
|
|
|
3250
3255
|
function q(Q) {
|
|
3251
3256
|
return B(Q) === a;
|
|
3252
3257
|
}
|
|
3253
|
-
function
|
|
3258
|
+
function ne(Q) {
|
|
3254
3259
|
return B(Q) === i;
|
|
3255
3260
|
}
|
|
3256
3261
|
function ue(Q) {
|
|
3257
3262
|
return B(Q) === h;
|
|
3258
3263
|
}
|
|
3259
|
-
ze.AsyncMode = x, ze.ConcurrentMode = w, ze.ContextConsumer = T, ze.ContextProvider = L, ze.Element = N, ze.ForwardRef = z, ze.Fragment = $, ze.Lazy = k, ze.Memo = E, ze.Portal = O, ze.Profiler = S, ze.StrictMode = U, ze.Suspense = H, ze.isAsyncMode = re, ze.isConcurrentMode = D, ze.isContextConsumer = X, ze.isContextProvider = V, ze.isElement = F, ze.isForwardRef = A, ze.isFragment = j, ze.isLazy = P, ze.isMemo = I, ze.isPortal = Z, ze.isProfiler = q, ze.isStrictMode =
|
|
3264
|
+
ze.AsyncMode = x, ze.ConcurrentMode = w, ze.ContextConsumer = T, ze.ContextProvider = L, ze.Element = N, ze.ForwardRef = z, ze.Fragment = $, ze.Lazy = k, ze.Memo = E, ze.Portal = O, ze.Profiler = S, ze.StrictMode = U, ze.Suspense = H, ze.isAsyncMode = re, ze.isConcurrentMode = D, ze.isContextConsumer = X, ze.isContextProvider = V, ze.isElement = F, ze.isForwardRef = A, ze.isFragment = j, ze.isLazy = P, ze.isMemo = I, ze.isPortal = Z, ze.isProfiler = q, ze.isStrictMode = ne, ze.isSuspense = ue, ze.isValidElementType = _, ze.typeOf = B;
|
|
3260
3265
|
}()), ze;
|
|
3261
3266
|
}
|
|
3262
3267
|
var du;
|
|
@@ -3433,8 +3438,8 @@ function Lm() {
|
|
|
3433
3438
|
function v(D) {
|
|
3434
3439
|
if (process.env.NODE_ENV !== "production")
|
|
3435
3440
|
var X = {}, V = 0;
|
|
3436
|
-
function F(j, P, I, Z, q,
|
|
3437
|
-
if (Z = Z || m,
|
|
3441
|
+
function F(j, P, I, Z, q, ne, ue) {
|
|
3442
|
+
if (Z = Z || m, ne = ne || I, ue !== n) {
|
|
3438
3443
|
if (l) {
|
|
3439
3444
|
var Q = new Error(
|
|
3440
3445
|
"Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types"
|
|
@@ -3444,11 +3449,11 @@ function Lm() {
|
|
|
3444
3449
|
var ve = Z + ":" + I;
|
|
3445
3450
|
!X[ve] && // Avoid spamming the console because they are often not actionable except for lib authors
|
|
3446
3451
|
V < 3 && (a(
|
|
3447
|
-
"You are manually calling a React.PropTypes validation function for the `" +
|
|
3452
|
+
"You are manually calling a React.PropTypes validation function for the `" + ne + "` prop on `" + Z + "`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."
|
|
3448
3453
|
), X[ve] = !0, V++);
|
|
3449
3454
|
}
|
|
3450
3455
|
}
|
|
3451
|
-
return P[I] == null ? j ? P[I] === null ? new f("The " + q + " `" +
|
|
3456
|
+
return P[I] == null ? j ? P[I] === null ? new f("The " + q + " `" + ne + "` is marked as required " + ("in `" + Z + "`, but its value is `null`.")) : new f("The " + q + " `" + ne + "` is marked as required in " + ("`" + Z + "`, but its value is `undefined`.")) : null : D(P, I, Z, q, ne);
|
|
3452
3457
|
}
|
|
3453
3458
|
var A = F.bind(null, !1);
|
|
3454
3459
|
return A.isRequired = F.bind(null, !0), A;
|
|
@@ -3457,9 +3462,9 @@ function Lm() {
|
|
|
3457
3462
|
function X(V, F, A, j, P, I) {
|
|
3458
3463
|
var Z = V[F], q = U(Z);
|
|
3459
3464
|
if (q !== D) {
|
|
3460
|
-
var
|
|
3465
|
+
var ne = H(Z);
|
|
3461
3466
|
return new f(
|
|
3462
|
-
"Invalid " + j + " `" + P + "` of type " + ("`" +
|
|
3467
|
+
"Invalid " + j + " `" + P + "` of type " + ("`" + ne + "` supplied to `" + A + "`, expected ") + ("`" + D + "`."),
|
|
3463
3468
|
{ expectedType: D }
|
|
3464
3469
|
);
|
|
3465
3470
|
}
|
|
@@ -3480,9 +3485,9 @@ function Lm() {
|
|
|
3480
3485
|
return new f("Invalid " + j + " `" + P + "` of type " + ("`" + Z + "` supplied to `" + A + "`, expected an array."));
|
|
3481
3486
|
}
|
|
3482
3487
|
for (var q = 0; q < I.length; q++) {
|
|
3483
|
-
var
|
|
3484
|
-
if (
|
|
3485
|
-
return
|
|
3488
|
+
var ne = D(I, q, A, j, P + "[" + q + "]", n);
|
|
3489
|
+
if (ne instanceof Error)
|
|
3490
|
+
return ne;
|
|
3486
3491
|
}
|
|
3487
3492
|
return null;
|
|
3488
3493
|
}
|
|
@@ -3546,9 +3551,9 @@ function Lm() {
|
|
|
3546
3551
|
return new f("Invalid " + j + " `" + P + "` of type " + ("`" + Z + "` supplied to `" + A + "`, expected an object."));
|
|
3547
3552
|
for (var q in I)
|
|
3548
3553
|
if (r(I, q)) {
|
|
3549
|
-
var
|
|
3550
|
-
if (
|
|
3551
|
-
return
|
|
3554
|
+
var ne = D(I, q, A, j, P + "." + q, n);
|
|
3555
|
+
if (ne instanceof Error)
|
|
3556
|
+
return ne;
|
|
3552
3557
|
}
|
|
3553
3558
|
return null;
|
|
3554
3559
|
}
|
|
@@ -3565,8 +3570,8 @@ function Lm() {
|
|
|
3565
3570
|
), s;
|
|
3566
3571
|
}
|
|
3567
3572
|
function F(A, j, P, I, Z) {
|
|
3568
|
-
for (var q = [],
|
|
3569
|
-
var ue = D[
|
|
3573
|
+
for (var q = [], ne = 0; ne < D.length; ne++) {
|
|
3574
|
+
var ue = D[ne], Q = ue(A, j, P, I, Z, n);
|
|
3570
3575
|
if (Q == null)
|
|
3571
3576
|
return null;
|
|
3572
3577
|
Q.data && r(Q.data, "expectedType") && q.push(Q.data.expectedType);
|
|
@@ -3593,10 +3598,10 @@ function Lm() {
|
|
|
3593
3598
|
if (Z !== "object")
|
|
3594
3599
|
return new f("Invalid " + j + " `" + P + "` of type `" + Z + "` " + ("supplied to `" + A + "`, expected `object`."));
|
|
3595
3600
|
for (var q in D) {
|
|
3596
|
-
var
|
|
3597
|
-
if (typeof
|
|
3598
|
-
return $(A, j, P, q, H(
|
|
3599
|
-
var ue =
|
|
3601
|
+
var ne = D[q];
|
|
3602
|
+
if (typeof ne != "function")
|
|
3603
|
+
return $(A, j, P, q, H(ne));
|
|
3604
|
+
var ue = ne(I, q, A, j, P + "." + q, n);
|
|
3600
3605
|
if (ue)
|
|
3601
3606
|
return ue;
|
|
3602
3607
|
}
|
|
@@ -3610,16 +3615,16 @@ function Lm() {
|
|
|
3610
3615
|
if (Z !== "object")
|
|
3611
3616
|
return new f("Invalid " + j + " `" + P + "` of type `" + Z + "` " + ("supplied to `" + A + "`, expected `object`."));
|
|
3612
3617
|
var q = t({}, V[F], D);
|
|
3613
|
-
for (var
|
|
3614
|
-
var ue = D[
|
|
3615
|
-
if (r(D,
|
|
3616
|
-
return $(A, j, P,
|
|
3618
|
+
for (var ne in q) {
|
|
3619
|
+
var ue = D[ne];
|
|
3620
|
+
if (r(D, ne) && typeof ue != "function")
|
|
3621
|
+
return $(A, j, P, ne, H(ue));
|
|
3617
3622
|
if (!ue)
|
|
3618
3623
|
return new f(
|
|
3619
|
-
"Invalid " + j + " `" + P + "` key `" +
|
|
3624
|
+
"Invalid " + j + " `" + P + "` key `" + ne + "` supplied to `" + A + "`.\nBad object: " + JSON.stringify(V[F], null, " ") + `
|
|
3620
3625
|
Valid keys: ` + JSON.stringify(Object.keys(D), null, " ")
|
|
3621
3626
|
);
|
|
3622
|
-
var Q = ue(I,
|
|
3627
|
+
var Q = ue(I, ne, A, j, P + "." + ne, n);
|
|
3623
3628
|
if (Q)
|
|
3624
3629
|
return Q;
|
|
3625
3630
|
}
|
|
@@ -4485,7 +4490,7 @@ function kp(e, t) {
|
|
|
4485
4490
|
}
|
|
4486
4491
|
return (t === "string" ? String : Number)(e);
|
|
4487
4492
|
}
|
|
4488
|
-
var oi =
|
|
4493
|
+
var oi = te, ye = Wm, Fp = vp, Ap = Fp.createFocusTrap, Bp = bp, Tp = Bp.isFocusable, so = /* @__PURE__ */ function(e) {
|
|
4489
4494
|
Dp(n, e);
|
|
4490
4495
|
var t = wp(n);
|
|
4491
4496
|
function n(r) {
|
|
@@ -5202,7 +5207,7 @@ const Mp = ({
|
|
|
5202
5207
|
};
|
|
5203
5208
|
return de(() => (document.addEventListener("click", l, !0), () => {
|
|
5204
5209
|
document.removeEventListener("click", l, !0);
|
|
5205
|
-
})),
|
|
5210
|
+
})), te.createElement(e, {
|
|
5206
5211
|
ref: a,
|
|
5207
5212
|
className: K("more-menu text-medium", r),
|
|
5208
5213
|
children: /* @__PURE__ */ c.jsxs(c.Fragment, { children: [
|
|
@@ -5482,13 +5487,13 @@ const Up = {
|
|
|
5482
5487
|
}) => {
|
|
5483
5488
|
const a = pr(!0);
|
|
5484
5489
|
let s = i;
|
|
5485
|
-
return
|
|
5490
|
+
return te.Children.count(i) === 1 && (s = te.Children.toArray(i)[0], s.props && (s = s.props.children)), /* @__PURE__ */ c.jsx(
|
|
5486
5491
|
"section",
|
|
5487
5492
|
{
|
|
5488
5493
|
className: K("columns", `layout-${e}`, r, {
|
|
5489
5494
|
"has-containers": n
|
|
5490
5495
|
}),
|
|
5491
|
-
children:
|
|
5496
|
+
children: te.Children.map(s, (o, l) => t !== !1 && l === t && a && a < Up[e] ? null : o)
|
|
5492
5497
|
}
|
|
5493
5498
|
);
|
|
5494
5499
|
};
|
|
@@ -5697,7 +5702,7 @@ const ci = "emailHelperTextBox_", Vp = ({
|
|
|
5697
5702
|
return de(() => {
|
|
5698
5703
|
var p;
|
|
5699
5704
|
u && ((p = m.current) == null || p.focus());
|
|
5700
|
-
}, []), !(d != null && d.autoComplete) && ["email"].includes(o) && (d.autoComplete = "email"),
|
|
5705
|
+
}, []), !(d != null && d.autoComplete) && ["email"].includes(o) && (d.autoComplete = "email"), te.createElement(t, {
|
|
5701
5706
|
ref: m,
|
|
5702
5707
|
...d,
|
|
5703
5708
|
type: o,
|
|
@@ -5887,7 +5892,7 @@ const vd = ({
|
|
|
5887
5892
|
}
|
|
5888
5893
|
)
|
|
5889
5894
|
] });
|
|
5890
|
-
return
|
|
5895
|
+
return te.createElement(
|
|
5891
5896
|
n,
|
|
5892
5897
|
{
|
|
5893
5898
|
onClick: (C) => {
|
|
@@ -6255,7 +6260,7 @@ const Zn = {
|
|
|
6255
6260
|
});
|
|
6256
6261
|
}
|
|
6257
6262
|
o && Zn[o] && Zn[o].props && (x = { ...x, ...Zn[o].props }), v && (x.intlPath = `${t}_${e}`), r && (x["aria-invalid"] = !0, x["aria-errormessage"] = C, w(C));
|
|
6258
|
-
const T = h.label || m.formatMessage({ id: t ? `${t}_${e}` : e }), L = ({ ...$ }) => r ?
|
|
6263
|
+
const T = h.label || m.formatMessage({ id: t ? `${t}_${e}` : e }), L = ({ ...$ }) => r ? te.createElement(
|
|
6259
6264
|
$.as || "p",
|
|
6260
6265
|
{
|
|
6261
6266
|
id: C,
|
|
@@ -6278,17 +6283,17 @@ const Zn = {
|
|
|
6278
6283
|
] });
|
|
6279
6284
|
const N = {};
|
|
6280
6285
|
v || (N.className = "field-label");
|
|
6281
|
-
const z = ($) =>
|
|
6286
|
+
const z = ($) => te.createElement($.element || "label", {
|
|
6282
6287
|
...$,
|
|
6283
6288
|
className: "checkboxes-label text-small",
|
|
6284
6289
|
"data-testid": `label-${e}`
|
|
6285
6290
|
});
|
|
6286
|
-
return /* @__PURE__ */ c.jsx(c.Fragment, { children:
|
|
6291
|
+
return /* @__PURE__ */ c.jsx(c.Fragment, { children: te.createElement(
|
|
6287
6292
|
v ? "fieldset" : "div",
|
|
6288
6293
|
{ className: K("field-wrapper text-medium", n) },
|
|
6289
6294
|
/* @__PURE__ */ c.jsxs(c.Fragment, { children: [
|
|
6290
|
-
|
|
6291
|
-
v ?
|
|
6295
|
+
te.createElement(
|
|
6296
|
+
v ? te.Fragment : "p",
|
|
6292
6297
|
N,
|
|
6293
6298
|
/* @__PURE__ */ c.jsxs(z, { ...B, children: [
|
|
6294
6299
|
T,
|
|
@@ -6302,7 +6307,7 @@ const Zn = {
|
|
|
6302
6307
|
] })
|
|
6303
6308
|
] })
|
|
6304
6309
|
),
|
|
6305
|
-
|
|
6310
|
+
te.createElement(
|
|
6306
6311
|
v || b ? "div" : "p",
|
|
6307
6312
|
{
|
|
6308
6313
|
className: "field-component"
|
|
@@ -6569,7 +6574,7 @@ const Cn = ({
|
|
|
6569
6574
|
onClick: T,
|
|
6570
6575
|
children: o.text || z.formatMessage({ id: "form_cancel" })
|
|
6571
6576
|
}), /* @__PURE__ */ c.jsxs(c.Fragment, { children: [
|
|
6572
|
-
|
|
6577
|
+
te.createElement(
|
|
6573
6578
|
e,
|
|
6574
6579
|
{
|
|
6575
6580
|
...m,
|
|
@@ -6596,7 +6601,7 @@ const Cn = ({
|
|
|
6596
6601
|
} = A;
|
|
6597
6602
|
if (I)
|
|
6598
6603
|
return /* @__PURE__ */ c.jsx(I, { ...A.props || {} }, `component-${P}-${j}`);
|
|
6599
|
-
const
|
|
6604
|
+
const ne = (H == null ? void 0 : H[P]) || "", ue = {
|
|
6600
6605
|
...Z,
|
|
6601
6606
|
onChange: (Q) => {
|
|
6602
6607
|
E({ type: "updateValue", payload: { key: P, value: Q } }), Z.onChange(Q && Q.toString(), E);
|
|
@@ -6610,7 +6615,7 @@ const Cn = ({
|
|
|
6610
6615
|
intlPath: a,
|
|
6611
6616
|
...A,
|
|
6612
6617
|
showRequiredLabels: B,
|
|
6613
|
-
value:
|
|
6618
|
+
value: ne,
|
|
6614
6619
|
error: O == null ? void 0 : O[P],
|
|
6615
6620
|
functions: ue
|
|
6616
6621
|
},
|
|
@@ -8240,13 +8245,13 @@ var Wg = (e, t, n) => {
|
|
|
8240
8245
|
}
|
|
8241
8246
|
case "remove_text": {
|
|
8242
8247
|
var {
|
|
8243
|
-
path:
|
|
8248
|
+
path: ne,
|
|
8244
8249
|
offset: ue,
|
|
8245
8250
|
text: Q
|
|
8246
8251
|
} = n;
|
|
8247
8252
|
if (Q.length === 0)
|
|
8248
8253
|
break;
|
|
8249
|
-
var ve = oe.leaf(e,
|
|
8254
|
+
var ve = oe.leaf(e, ne), ge = ve.text.slice(0, ue), Te = ve.text.slice(ue + Q.length);
|
|
8250
8255
|
if (ve.text = ge + Te, t)
|
|
8251
8256
|
for (var [je, Oe] of G.points(t))
|
|
8252
8257
|
t[Oe] = Ae.transform(je, n);
|
|
@@ -10566,13 +10571,13 @@ var S0 = (e, t) => {
|
|
|
10566
10571
|
})), !N) {
|
|
10567
10572
|
var P = re.current, [I] = y.leaf(t, P), {
|
|
10568
10573
|
path: Z
|
|
10569
|
-
} = P, q = T ? C.offset : 0,
|
|
10570
|
-
|
|
10574
|
+
} = P, q = T ? C.offset : 0, ne = I.text.slice(q, _.offset);
|
|
10575
|
+
ne.length > 0 && (t.apply({
|
|
10571
10576
|
type: "remove_text",
|
|
10572
10577
|
path: Z,
|
|
10573
10578
|
offset: q,
|
|
10574
|
-
text:
|
|
10575
|
-
}), D =
|
|
10579
|
+
text: ne
|
|
10580
|
+
}), D = ne);
|
|
10576
10581
|
}
|
|
10577
10582
|
!T && w && re.current && ae.current && J.mergeNodes(t, {
|
|
10578
10583
|
at: re.current,
|
|
@@ -12111,16 +12116,16 @@ const vy = /* @__PURE__ */ $n(gy), yl = (e) => typeof e == "object" && e != null
|
|
|
12111
12116
|
if (s === "if-needed" && x >= 0 && L >= 0 && T <= v && w <= f && x >= D && T <= V && L >= F && w <= X)
|
|
12112
12117
|
return S;
|
|
12113
12118
|
const A = getComputedStyle(H), j = parseInt(A.borderLeftWidth, 10), P = parseInt(A.borderTopWidth, 10), I = parseInt(A.borderRightWidth, 10), Z = parseInt(A.borderBottomWidth, 10);
|
|
12114
|
-
let q = 0,
|
|
12119
|
+
let q = 0, ne = 0;
|
|
12115
12120
|
const ue = "offsetWidth" in H ? H.offsetWidth - H.clientWidth - j - I : 0, Q = "offsetHeight" in H ? H.offsetHeight - H.clientHeight - P - Z : 0, ve = "offsetWidth" in H ? H.offsetWidth === 0 ? 0 : re / H.offsetWidth : 0, ge = "offsetHeight" in H ? H.offsetHeight === 0 ? 0 : ae / H.offsetHeight : 0;
|
|
12116
12121
|
if (m === H)
|
|
12117
|
-
q = o === "start" ? E : o === "end" ? E - v : o === "nearest" ? hi(C, C + v, v, P, Z, C + E, C + E + _, _) : E - v / 2,
|
|
12122
|
+
q = o === "start" ? E : o === "end" ? E - v : o === "nearest" ? hi(C, C + v, v, P, Z, C + E, C + E + _, _) : E - v / 2, ne = l === "start" ? O : l === "center" ? O - f / 2 : l === "end" ? O - f : hi(b, b + f, f, j, I, b + O, b + O + B, B), q = Math.max(0, q + C), ne = Math.max(0, ne + b);
|
|
12118
12123
|
else {
|
|
12119
|
-
q = o === "start" ? E - D - P : o === "end" ? E - V + Z + Q : o === "nearest" ? hi(D, V, ae, P, Z + Q, E, E + _, _) : E - (D + ae / 2) + Q / 2,
|
|
12124
|
+
q = o === "start" ? E - D - P : o === "end" ? E - V + Z + Q : o === "nearest" ? hi(D, V, ae, P, Z + Q, E, E + _, _) : E - (D + ae / 2) + Q / 2, ne = l === "start" ? O - F - j : l === "center" ? O - (F + re / 2) + ue / 2 : l === "end" ? O - X + I + ue : hi(F, X, re, j, I + ue, O, O + B, B);
|
|
12120
12125
|
const { scrollLeft: Te, scrollTop: je } = H;
|
|
12121
|
-
q = ge === 0 ? 0 : Math.max(0, Math.min(je + q / ge, H.scrollHeight - ae / ge + Q)),
|
|
12126
|
+
q = ge === 0 ? 0 : Math.max(0, Math.min(je + q / ge, H.scrollHeight - ae / ge + Q)), ne = ve === 0 ? 0 : Math.max(0, Math.min(Te + ne / ve, H.scrollWidth - re / ve + ue)), E += je - q, O += Te - ne;
|
|
12122
12127
|
}
|
|
12123
|
-
S.push({ el: H, top: q, left:
|
|
12128
|
+
S.push({ el: H, top: q, left: ne });
|
|
12124
12129
|
}
|
|
12125
12130
|
return S;
|
|
12126
12131
|
}, yy = (e) => e === !1 ? { block: "end", inline: "nearest" } : ((t) => t === Object(t) && Object.keys(t).length !== 0)(e) ? e : { block: "start", inline: "nearest" };
|
|
@@ -12622,7 +12627,7 @@ var wo = /* @__PURE__ */ Ft(null), En = () => {
|
|
|
12622
12627
|
if (!e)
|
|
12623
12628
|
throw new Error("The `useSlateStatic` hook must be used inside the <Slate> component's context.");
|
|
12624
12629
|
return e;
|
|
12625
|
-
}, tf = parseInt(
|
|
12630
|
+
}, tf = parseInt(te.version.split(".")[0], 10), Yy = typeof navigator < "u" && typeof window < "u" && /iPad|iPhone|iPod/.test(navigator.userAgent) && !window.MSStream, Sl = typeof navigator < "u" && /Mac OS X/.test(navigator.userAgent), yt = typeof navigator < "u" && /Android/.test(navigator.userAgent), tr = typeof navigator < "u" && /^(?!.*Seamonkey)(?=.*Firefox).*/i.test(navigator.userAgent), Sr = 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 = yt && 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), Ti = typeof window < "u" && typeof window.document < "u" && typeof window.document.createElement < "u", fn = (!Qy || !Jy) && !Gy && // globalThis is undefined in older browsers
|
|
12626
12631
|
typeof globalThis < "u" && globalThis.InputEvent && // @ts-ignore The `getTargetRanges` property isn't recognized.
|
|
12627
12632
|
typeof globalThis.InputEvent.prototype.getTargetRanges == "function", Co = /* @__PURE__ */ new WeakMap(), Eo = /* @__PURE__ */ new WeakMap(), rf = /* @__PURE__ */ new WeakMap(), Si = /* @__PURE__ */ new WeakMap(), Ps = /* @__PURE__ */ new WeakMap(), Zr = /* @__PURE__ */ new WeakMap(), On = /* @__PURE__ */ new WeakMap(), Yi = /* @__PURE__ */ new WeakMap(), fa = /* @__PURE__ */ new WeakMap(), Ns = /* @__PURE__ */ new WeakMap(), bn = /* @__PURE__ */ new WeakMap(), Bn = /* @__PURE__ */ new WeakMap(), Nr = /* @__PURE__ */ new WeakMap(), Ms = /* @__PURE__ */ new WeakMap(), _o = /* @__PURE__ */ new WeakMap(), It = /* @__PURE__ */ new WeakMap(), nn = /* @__PURE__ */ new WeakMap(), Et = /* @__PURE__ */ new WeakMap(), mn = /* @__PURE__ */ new WeakMap(), pn = /* @__PURE__ */ new WeakMap(), af = /* @__PURE__ */ new WeakMap(), dr = Symbol("placeholder"), sf = Symbol("mark-placeholder"), n1 = globalThis.Text, ko = (e) => e && e.ownerDocument && e.ownerDocument.defaultView || null, r1 = (e) => Dn(e) && e.nodeType === 8, Nt = (e) => Dn(e) && e.nodeType === 1, Dn = (e) => {
|
|
12628
12633
|
var t = ko(e);
|
|
@@ -13461,11 +13466,11 @@ function w1(e) {
|
|
|
13461
13466
|
});
|
|
13462
13467
|
}
|
|
13463
13468
|
}
|
|
13464
|
-
var j = O.endsWith("Backward") ? "backward" : "forward", [P, I] = G.edges(S), [Z, q] = y.leaf(t, P.path),
|
|
13469
|
+
var j = O.endsWith("Backward") ? "backward" : "forward", [P, I] = G.edges(S), [Z, q] = y.leaf(t, P.path), ne = {
|
|
13465
13470
|
text: "",
|
|
13466
13471
|
start: P.offset,
|
|
13467
13472
|
end: I.offset
|
|
13468
|
-
}, ue = Et.get(t), Q = ue == null ? void 0 : ue.find((be) => R.equals(be.path, q)), ve = Q ? [Q.diff,
|
|
13473
|
+
}, ue = Et.get(t), Q = ue == null ? void 0 : ue.find((be) => R.equals(be.path, q)), ve = Q ? [Q.diff, ne] : [ne], ge = cf(Z.text, ...ve);
|
|
13469
13474
|
if (ge.length === 0 && (D = !1), G.isExpanded(S)) {
|
|
13470
13475
|
if (D && R.equals(S.anchor.path, S.focus.path)) {
|
|
13471
13476
|
var Te = {
|
|
@@ -13767,18 +13772,18 @@ var N1 = (e) => {
|
|
|
13767
13772
|
parent: r,
|
|
13768
13773
|
text: i
|
|
13769
13774
|
} = e, a = En(), s = ee.findPath(a, i), o = R.parent(s), l = !!n[sf];
|
|
13770
|
-
return a.isVoid(r) ? /* @__PURE__ */
|
|
13775
|
+
return a.isVoid(r) ? /* @__PURE__ */ te.createElement(Wa, {
|
|
13771
13776
|
length: oe.string(r).length
|
|
13772
|
-
}) : n.text === "" && r.children[r.children.length - 1] === i && !a.isInline(r) && y.string(a, o) === "" ? /* @__PURE__ */
|
|
13777
|
+
}) : n.text === "" && r.children[r.children.length - 1] === i && !a.isInline(r) && y.string(a, o) === "" ? /* @__PURE__ */ te.createElement(Wa, {
|
|
13773
13778
|
isLineBreak: !0,
|
|
13774
13779
|
isMarkPlaceholder: l
|
|
13775
|
-
}) : n.text === "" ? /* @__PURE__ */
|
|
13780
|
+
}) : n.text === "" ? /* @__PURE__ */ te.createElement(Wa, {
|
|
13776
13781
|
isMarkPlaceholder: l
|
|
13777
13782
|
}) : t && n.text.slice(-1) === `
|
|
13778
|
-
` ? /* @__PURE__ */
|
|
13783
|
+
` ? /* @__PURE__ */ te.createElement(Rl, {
|
|
13779
13784
|
isTrailing: !0,
|
|
13780
13785
|
text: n.text
|
|
13781
|
-
}) : /* @__PURE__ */
|
|
13786
|
+
}) : /* @__PURE__ */ te.createElement(Rl, {
|
|
13782
13787
|
text: n.text
|
|
13783
13788
|
});
|
|
13784
13789
|
}, Rl = (e) => {
|
|
@@ -13790,10 +13795,10 @@ var N1 = (e) => {
|
|
|
13790
13795
|
return Yr(() => {
|
|
13791
13796
|
var s = i();
|
|
13792
13797
|
r.current && r.current.textContent !== s && (r.current.textContent = s);
|
|
13793
|
-
}), /* @__PURE__ */
|
|
13798
|
+
}), /* @__PURE__ */ te.createElement(M1, {
|
|
13794
13799
|
ref: r
|
|
13795
13800
|
}, a);
|
|
13796
|
-
}, M1 = /* @__PURE__ */ Jt(/* @__PURE__ */ Ys((e, t) => /* @__PURE__ */
|
|
13801
|
+
}, M1 = /* @__PURE__ */ Jt(/* @__PURE__ */ Ys((e, t) => /* @__PURE__ */ te.createElement("span", {
|
|
13797
13802
|
"data-slate-string": !0,
|
|
13798
13803
|
ref: t
|
|
13799
13804
|
}, e.children))), Wa = (e) => {
|
|
@@ -13805,7 +13810,7 @@ var N1 = (e) => {
|
|
|
13805
13810
|
"data-slate-zero-width": n ? "n" : "z",
|
|
13806
13811
|
"data-slate-length": t
|
|
13807
13812
|
};
|
|
13808
|
-
return r && (i["data-slate-mark-placeholder"] = !0), /* @__PURE__ */
|
|
13813
|
+
return r && (i["data-slate-mark-placeholder"] = !0), /* @__PURE__ */ te.createElement("span", P1({}, i), !yt || !n ? "\uFEFF" : null, n ? /* @__PURE__ */ te.createElement("br", null) : null);
|
|
13809
13814
|
};
|
|
13810
13815
|
function $l(e, t) {
|
|
13811
13816
|
var n = Object.keys(e);
|
|
@@ -13842,7 +13847,7 @@ var I1 = (e) => {
|
|
|
13842
13847
|
text: r,
|
|
13843
13848
|
parent: i,
|
|
13844
13849
|
renderPlaceholder: a,
|
|
13845
|
-
renderLeaf: s = (C) => /* @__PURE__ */
|
|
13850
|
+
renderLeaf: s = (C) => /* @__PURE__ */ te.createElement(z1, hf({}, C))
|
|
13846
13851
|
} = e, o = En(), l = ke(null), u = ke(null), [d, h] = le(!1), m = ke(null), p = Me((C) => {
|
|
13847
13852
|
if ($1(l, C == null), C == null) {
|
|
13848
13853
|
var _;
|
|
@@ -13857,7 +13862,7 @@ var I1 = (e) => {
|
|
|
13857
13862
|
}
|
|
13858
13863
|
l.current.observe(C), u.current = C;
|
|
13859
13864
|
}
|
|
13860
|
-
}, [u, t, o]), g = /* @__PURE__ */
|
|
13865
|
+
}, [u, t, o]), g = /* @__PURE__ */ te.createElement(N1, {
|
|
13861
13866
|
isLast: n,
|
|
13862
13867
|
leaf: t,
|
|
13863
13868
|
parent: i,
|
|
@@ -13887,7 +13892,7 @@ var I1 = (e) => {
|
|
|
13887
13892
|
ref: p
|
|
13888
13893
|
}
|
|
13889
13894
|
};
|
|
13890
|
-
g = /* @__PURE__ */
|
|
13895
|
+
g = /* @__PURE__ */ te.createElement(te.Fragment, null, a(v), g);
|
|
13891
13896
|
}
|
|
13892
13897
|
var b = {
|
|
13893
13898
|
"data-slate-leaf": !0
|
|
@@ -13898,12 +13903,12 @@ var I1 = (e) => {
|
|
|
13898
13903
|
leaf: t,
|
|
13899
13904
|
text: r
|
|
13900
13905
|
});
|
|
13901
|
-
}, L1 = /* @__PURE__ */
|
|
13906
|
+
}, L1 = /* @__PURE__ */ te.memo(I1, (e, t) => t.parent === e.parent && t.isLast === e.isLast && t.renderLeaf === e.renderLeaf && t.renderPlaceholder === e.renderPlaceholder && t.text === e.text && me.equals(t.leaf, e.leaf) && t.leaf[dr] === e.leaf[dr]), z1 = (e) => {
|
|
13902
13907
|
var {
|
|
13903
13908
|
attributes: t,
|
|
13904
13909
|
children: n
|
|
13905
13910
|
} = e;
|
|
13906
|
-
return /* @__PURE__ */
|
|
13911
|
+
return /* @__PURE__ */ te.createElement("span", hf({}, t), n);
|
|
13907
13912
|
}, q1 = (e) => {
|
|
13908
13913
|
for (var {
|
|
13909
13914
|
decorations: t,
|
|
@@ -13914,7 +13919,7 @@ var I1 = (e) => {
|
|
|
13914
13919
|
text: s
|
|
13915
13920
|
} = e, o = En(), l = ke(null), u = me.decorations(s, t), d = ee.findKey(o, s), h = [], m = 0; m < u.length; m++) {
|
|
13916
13921
|
var p = u[m];
|
|
13917
|
-
h.push(/* @__PURE__ */
|
|
13922
|
+
h.push(/* @__PURE__ */ te.createElement(L1, {
|
|
13918
13923
|
isLast: n && m === u.length - 1,
|
|
13919
13924
|
key: "".concat(d.id, "-").concat(m),
|
|
13920
13925
|
renderPlaceholder: i,
|
|
@@ -13928,11 +13933,11 @@ var I1 = (e) => {
|
|
|
13928
13933
|
var v = fa.get(o);
|
|
13929
13934
|
f ? (v == null || v.set(d, f), On.set(s, f), Zr.set(f, s)) : (v == null || v.delete(d), On.delete(s), l.current && Zr.delete(l.current)), l.current = f;
|
|
13930
13935
|
}, [l, o, d, s]);
|
|
13931
|
-
return /* @__PURE__ */
|
|
13936
|
+
return /* @__PURE__ */ te.createElement("span", {
|
|
13932
13937
|
"data-slate-node": "text",
|
|
13933
13938
|
ref: g
|
|
13934
13939
|
}, h);
|
|
13935
|
-
}, mf = /* @__PURE__ */
|
|
13940
|
+
}, mf = /* @__PURE__ */ te.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));
|
|
13936
13941
|
function Ll(e, t) {
|
|
13937
13942
|
var n = Object.keys(e);
|
|
13938
13943
|
if (Object.getOwnPropertySymbols) {
|
|
@@ -13958,7 +13963,7 @@ var U1 = (e) => {
|
|
|
13958
13963
|
var {
|
|
13959
13964
|
decorations: t,
|
|
13960
13965
|
element: n,
|
|
13961
|
-
renderElement: r = (C) => /* @__PURE__ */
|
|
13966
|
+
renderElement: r = (C) => /* @__PURE__ */ te.createElement(H1, Ls({}, C)),
|
|
13962
13967
|
renderPlaceholder: i,
|
|
13963
13968
|
renderLeaf: a,
|
|
13964
13969
|
selection: s
|
|
@@ -13983,7 +13988,7 @@ var U1 = (e) => {
|
|
|
13983
13988
|
if (y.isVoid(o, n)) {
|
|
13984
13989
|
p["data-slate-void"] = !0, !l && u && (p.contentEditable = !1);
|
|
13985
13990
|
var v = u ? "span" : "div", [[b]] = oe.texts(n);
|
|
13986
|
-
m = /* @__PURE__ */
|
|
13991
|
+
m = /* @__PURE__ */ te.createElement(v, {
|
|
13987
13992
|
"data-slate-spacer": !0,
|
|
13988
13993
|
style: {
|
|
13989
13994
|
height: "0",
|
|
@@ -13991,7 +13996,7 @@ var U1 = (e) => {
|
|
|
13991
13996
|
outline: "none",
|
|
13992
13997
|
position: "absolute"
|
|
13993
13998
|
}
|
|
13994
|
-
}, /* @__PURE__ */
|
|
13999
|
+
}, /* @__PURE__ */ te.createElement(mf, {
|
|
13995
14000
|
renderPlaceholder: i,
|
|
13996
14001
|
decorations: [],
|
|
13997
14002
|
isLast: !1,
|
|
@@ -14004,13 +14009,13 @@ var U1 = (e) => {
|
|
|
14004
14009
|
children: m,
|
|
14005
14010
|
element: n
|
|
14006
14011
|
});
|
|
14007
|
-
}, W1 = /* @__PURE__ */
|
|
14012
|
+
}, W1 = /* @__PURE__ */ te.memo(U1, (e, t) => e.element === t.element && e.renderElement === t.renderElement && e.renderLeaf === t.renderLeaf && e.renderPlaceholder === t.renderPlaceholder && j1(e.decorations, t.decorations) && (e.selection === t.selection || !!e.selection && !!t.selection && G.equals(e.selection, t.selection))), H1 = (e) => {
|
|
14008
14013
|
var {
|
|
14009
14014
|
attributes: t,
|
|
14010
14015
|
children: n,
|
|
14011
14016
|
element: r
|
|
14012
14017
|
} = e, i = En(), a = i.isInline(r) ? "span" : "div";
|
|
14013
|
-
return /* @__PURE__ */
|
|
14018
|
+
return /* @__PURE__ */ te.createElement(a, Ls(Ls({}, t), {}, {
|
|
14014
14019
|
style: {
|
|
14015
14020
|
position: "relative"
|
|
14016
14021
|
}
|
|
@@ -14029,10 +14034,10 @@ var U1 = (e) => {
|
|
|
14029
14034
|
var B = G.intersection(_, v);
|
|
14030
14035
|
B && C.push(B);
|
|
14031
14036
|
}
|
|
14032
|
-
he.isElement(g) ? d.push(/* @__PURE__ */
|
|
14037
|
+
he.isElement(g) ? d.push(/* @__PURE__ */ te.createElement(K1.Provider, {
|
|
14033
14038
|
key: "provider-".concat(f.id),
|
|
14034
14039
|
value: !!b
|
|
14035
|
-
}, /* @__PURE__ */
|
|
14040
|
+
}, /* @__PURE__ */ te.createElement(W1, {
|
|
14036
14041
|
decorations: C,
|
|
14037
14042
|
element: g,
|
|
14038
14043
|
key: f.id,
|
|
@@ -14040,7 +14045,7 @@ var U1 = (e) => {
|
|
|
14040
14045
|
renderPlaceholder: i,
|
|
14041
14046
|
renderLeaf: a,
|
|
14042
14047
|
selection: b
|
|
14043
|
-
}))) : d.push(/* @__PURE__ */
|
|
14048
|
+
}))) : d.push(/* @__PURE__ */ te.createElement(mf, {
|
|
14044
14049
|
decorations: C,
|
|
14045
14050
|
key: f.id,
|
|
14046
14051
|
isLast: h && m === n.children.length - 1,
|
|
@@ -14209,7 +14214,7 @@ var nx = yt ? yf : (e) => {
|
|
|
14209
14214
|
var {
|
|
14210
14215
|
children: t
|
|
14211
14216
|
} = e;
|
|
14212
|
-
return /* @__PURE__ */
|
|
14217
|
+
return /* @__PURE__ */ te.createElement(te.Fragment, null, t);
|
|
14213
14218
|
}, rx = ["autoFocus", "decorate", "onDOMBeforeInput", "placeholder", "readOnly", "renderElement", "renderLeaf", "renderPlaceholder", "scrollSelectionIntoView", "style", "as", "disableDefaultStyles"], ix = ["text"];
|
|
14214
14219
|
function zl(e, t) {
|
|
14215
14220
|
var n = Object.keys(e);
|
|
@@ -14232,8 +14237,8 @@ function Vt(e) {
|
|
|
14232
14237
|
}
|
|
14233
14238
|
return e;
|
|
14234
14239
|
}
|
|
14235
|
-
var ax = (e) => /* @__PURE__ */
|
|
14236
|
-
var t = Me((A) => /* @__PURE__ */
|
|
14240
|
+
var ax = (e) => /* @__PURE__ */ te.createElement(te.Fragment, null, gf(e)), sx = (e) => {
|
|
14241
|
+
var t = Me((A) => /* @__PURE__ */ te.createElement(ox, Vt({}, A)), []), {
|
|
14237
14242
|
autoFocus: n,
|
|
14238
14243
|
decorate: r = ux,
|
|
14239
14244
|
onDOMBeforeInput: i,
|
|
@@ -14270,8 +14275,8 @@ var ax = (e) => /* @__PURE__ */ ne.createElement(ne.Fragment, null, gf(e)), sx =
|
|
|
14270
14275
|
return J.deselect(f);
|
|
14271
14276
|
var {
|
|
14272
14277
|
anchorNode: q,
|
|
14273
|
-
focusNode:
|
|
14274
|
-
} = Z, ue = ee.hasEditableTarget(f, q) || ee.isTargetInsideNonReadonlyVoid(f, q), Q = ee.hasEditableTarget(f,
|
|
14278
|
+
focusNode: ne
|
|
14279
|
+
} = Z, ue = ee.hasEditableTarget(f, q) || ee.isTargetInsideNonReadonlyVoid(f, q), Q = ee.hasEditableTarget(f, ne) || ee.isTargetInsideNonReadonlyVoid(f, ne);
|
|
14275
14280
|
if (ue && Q) {
|
|
14276
14281
|
var ve = ee.toSlateRange(f, Z, {
|
|
14277
14282
|
exactMatch: !1,
|
|
@@ -14293,7 +14298,7 @@ var ax = (e) => /* @__PURE__ */ ne.createElement(ne.Fragment, null, gf(e)), sx =
|
|
|
14293
14298
|
selection: I
|
|
14294
14299
|
} = f, Z = ee.findDocumentOrShadowRoot(f), q = Z.getSelection();
|
|
14295
14300
|
if (!(!q || !ee.isFocused(f) || (A = z.current) !== null && A !== void 0 && A.hasPendingAction())) {
|
|
14296
|
-
var
|
|
14301
|
+
var ne = (ge) => {
|
|
14297
14302
|
var Te = q.type !== "None";
|
|
14298
14303
|
if (!(!I && !Te)) {
|
|
14299
14304
|
var je = q.focusNode, Oe;
|
|
@@ -14328,7 +14333,7 @@ var ax = (e) => /* @__PURE__ */ ne.createElement(ne.Fragment, null, gf(e)), sx =
|
|
|
14328
14333
|
return xe ? (ee.isComposing(f) && !yt ? q.collapseToEnd() : G.isBackward(I) ? q.setBaseAndExtent(xe.endContainer, xe.endOffset, xe.startContainer, xe.startOffset) : q.setBaseAndExtent(xe.startContainer, xe.startOffset, xe.endContainer, xe.endOffset), d(f, xe)) : q.removeAllRanges(), xe;
|
|
14329
14334
|
}
|
|
14330
14335
|
};
|
|
14331
|
-
q.rangeCount <= 1 &&
|
|
14336
|
+
q.rangeCount <= 1 && ne();
|
|
14332
14337
|
var ue = ((j = z.current) === null || j === void 0 ? void 0 : j.isFlushing()) === "action";
|
|
14333
14338
|
if (!yt || !ue) {
|
|
14334
14339
|
setTimeout(() => {
|
|
@@ -14341,7 +14346,7 @@ var ax = (e) => /* @__PURE__ */ ne.createElement(ne.Fragment, null, gf(e)), sx =
|
|
|
14341
14346
|
var ge = (Te) => {
|
|
14342
14347
|
try {
|
|
14343
14348
|
var je = ee.toDOMNode(f, f);
|
|
14344
|
-
je.focus(),
|
|
14349
|
+
je.focus(), ne(Te);
|
|
14345
14350
|
} catch {
|
|
14346
14351
|
}
|
|
14347
14352
|
};
|
|
@@ -14368,7 +14373,7 @@ var ax = (e) => /* @__PURE__ */ ne.createElement(ne.Fragment, null, gf(e)), sx =
|
|
|
14368
14373
|
} = A, Z = A.dataTransfer || A.data || void 0, q = I === "insertCompositionText" || I === "deleteCompositionText";
|
|
14369
14374
|
if (q && ee.isComposing(f))
|
|
14370
14375
|
return;
|
|
14371
|
-
var
|
|
14376
|
+
var ne = !1;
|
|
14372
14377
|
if (I === "insertText" && P && G.isCollapsed(P) && // Only use native character insertion for single characters a-z or space for now.
|
|
14373
14378
|
// Long-press events (hold a + press 4 = ä) to choose a special character otherwise
|
|
14374
14379
|
// causes duplicate inserts.
|
|
@@ -14377,20 +14382,20 @@ var ax = (e) => /* @__PURE__ */ ne.createElement(ne.Fragment, null, gf(e)), sx =
|
|
|
14377
14382
|
// right after it (the start of the next node).
|
|
14378
14383
|
P.anchor.offset !== 0) {
|
|
14379
14384
|
var ue, Q;
|
|
14380
|
-
|
|
14385
|
+
ne = !0, f.marks && (ne = !1);
|
|
14381
14386
|
var {
|
|
14382
14387
|
anchor: ve
|
|
14383
14388
|
} = P, [ge, Te] = ee.toDOMPoint(f, ve), je = (ue = ge.parentElement) === null || ue === void 0 ? void 0 : ue.closest("a"), Oe = ee.getWindow(f);
|
|
14384
|
-
if (
|
|
14389
|
+
if (ne && je && ee.hasDOMNode(f, je)) {
|
|
14385
14390
|
var We, He = Oe == null ? void 0 : Oe.document.createTreeWalker(je, NodeFilter.SHOW_TEXT).lastChild();
|
|
14386
|
-
He === ge && ((We = He.textContent) === null || We === void 0 ? void 0 : We.length) === Te && (
|
|
14391
|
+
He === ge && ((We = He.textContent) === null || We === void 0 ? void 0 : We.length) === Te && (ne = !1);
|
|
14387
14392
|
}
|
|
14388
|
-
if (
|
|
14393
|
+
if (ne && ge.parentElement && (Oe == null || (Q = Oe.getComputedStyle(ge.parentElement)) === null || Q === void 0 ? void 0 : Q.whiteSpace) === "pre") {
|
|
14389
14394
|
var Ze = y.above(f, {
|
|
14390
14395
|
at: ve.path,
|
|
14391
14396
|
match: (ie) => he.isElement(ie) && y.isBlock(f, ie)
|
|
14392
14397
|
});
|
|
14393
|
-
Ze && oe.string(Ze[0]).includes(" ") && (
|
|
14398
|
+
Ze && oe.string(Ze[0]).includes(" ") && (ne = !1);
|
|
14394
14399
|
}
|
|
14395
14400
|
}
|
|
14396
14401
|
if (!I.startsWith("delete") || I.startsWith("deleteBy")) {
|
|
@@ -14401,7 +14406,7 @@ var ax = (e) => /* @__PURE__ */ ne.createElement(ne.Fragment, null, gf(e)), sx =
|
|
|
14401
14406
|
suppressThrow: !1
|
|
14402
14407
|
});
|
|
14403
14408
|
if (!P || !G.equals(P, Se)) {
|
|
14404
|
-
|
|
14409
|
+
ne = !1;
|
|
14405
14410
|
var Ye = !q && f.selection && y.rangeRef(f, f.selection);
|
|
14406
14411
|
J.select(f, Se), Ye && Nr.set(f, Ye);
|
|
14407
14412
|
}
|
|
@@ -14409,7 +14414,7 @@ var ax = (e) => /* @__PURE__ */ ne.createElement(ne.Fragment, null, gf(e)), sx =
|
|
|
14409
14414
|
}
|
|
14410
14415
|
if (q)
|
|
14411
14416
|
return;
|
|
14412
|
-
if (
|
|
14417
|
+
if (ne || A.preventDefault(), P && G.isExpanded(P) && I.startsWith("delete")) {
|
|
14413
14418
|
var xe = I.endsWith("Backward") ? "backward" : "forward";
|
|
14414
14419
|
y.deleteFragment(f, {
|
|
14415
14420
|
direction: xe
|
|
@@ -14489,7 +14494,7 @@ var ax = (e) => /* @__PURE__ */ ne.createElement(ne.Fragment, null, gf(e)), sx =
|
|
|
14489
14494
|
case "insertFromYank":
|
|
14490
14495
|
case "insertReplacementText":
|
|
14491
14496
|
case "insertText": {
|
|
14492
|
-
I === "insertFromComposition" && ee.isComposing(f) && (b(!1), Bn.set(f, !1)), (Z == null ? void 0 : Z.constructor.name) === "DataTransfer" ? ee.insertData(f, Z) : typeof Z == "string" && (
|
|
14497
|
+
I === "insertFromComposition" && ee.isComposing(f) && (b(!1), Bn.set(f, !1)), (Z == null ? void 0 : Z.constructor.name) === "DataTransfer" ? ee.insertData(f, Z) : typeof Z == "string" && (ne ? _.current.push(() => y.insertText(f, Z)) : y.insertText(f, Z));
|
|
14493
14498
|
break;
|
|
14494
14499
|
}
|
|
14495
14500
|
}
|
|
@@ -14560,14 +14565,14 @@ var ax = (e) => /* @__PURE__ */ ne.createElement(ne.Fragment, null, gf(e)), sx =
|
|
|
14560
14565
|
}
|
|
14561
14566
|
It.delete(f);
|
|
14562
14567
|
});
|
|
14563
|
-
}), /* @__PURE__ */
|
|
14568
|
+
}), /* @__PURE__ */ te.createElement(vf.Provider, {
|
|
14564
14569
|
value: s
|
|
14565
|
-
}, /* @__PURE__ */
|
|
14570
|
+
}, /* @__PURE__ */ te.createElement(pf.Provider, {
|
|
14566
14571
|
value: r
|
|
14567
|
-
}, /* @__PURE__ */
|
|
14572
|
+
}, /* @__PURE__ */ te.createElement(nx, {
|
|
14568
14573
|
node: C,
|
|
14569
14574
|
receivedUserInput: T
|
|
14570
|
-
}, /* @__PURE__ */
|
|
14575
|
+
}, /* @__PURE__ */ te.createElement(m, Vt(Vt({
|
|
14571
14576
|
role: s ? void 0 : "textbox",
|
|
14572
14577
|
"aria-multiline": s ? void 0 : !0
|
|
14573
14578
|
}, g), {}, {
|
|
@@ -14652,8 +14657,8 @@ var ax = (e) => /* @__PURE__ */ ne.createElement(ne.Fragment, null, gf(e)), sx =
|
|
|
14652
14657
|
});
|
|
14653
14658
|
I = (Z = q == null ? void 0 : q[1]) !== null && Z !== void 0 ? Z : P.slice(0, 1);
|
|
14654
14659
|
}
|
|
14655
|
-
var
|
|
14656
|
-
J.select(f,
|
|
14660
|
+
var ne = y.range(f, I);
|
|
14661
|
+
J.select(f, ne);
|
|
14657
14662
|
return;
|
|
14658
14663
|
}
|
|
14659
14664
|
if (s)
|
|
@@ -14779,8 +14784,8 @@ var ax = (e) => /* @__PURE__ */ ne.createElement(ne.Fragment, null, gf(e)), sx =
|
|
|
14779
14784
|
} = f, Z = f.children[I !== null ? I.focus.path[0] : 0], q = Ld(oe.string(Z)) === "rtl";
|
|
14780
14785
|
if (Xe.isRedo(P)) {
|
|
14781
14786
|
A.preventDefault();
|
|
14782
|
-
var
|
|
14783
|
-
typeof
|
|
14787
|
+
var ne = f;
|
|
14788
|
+
typeof ne.redo == "function" && ne.redo();
|
|
14784
14789
|
return;
|
|
14785
14790
|
}
|
|
14786
14791
|
if (Xe.isUndo(P)) {
|
|
@@ -14924,7 +14929,7 @@ var ax = (e) => /* @__PURE__ */ ne.createElement(ne.Fragment, null, gf(e)), sx =
|
|
|
14924
14929
|
onPaste: Me((A) => {
|
|
14925
14930
|
!s && ee.hasEditableTarget(f, A.target) && !vt(A, g.onPaste) && (!fn || i1(A.nativeEvent) || Sr) && (A.preventDefault(), ee.insertData(f, A.clipboardData));
|
|
14926
14931
|
}, [s, f, g.onPaste])
|
|
14927
|
-
}), /* @__PURE__ */
|
|
14932
|
+
}), /* @__PURE__ */ te.createElement(ax, {
|
|
14928
14933
|
decorations: S,
|
|
14929
14934
|
node: f,
|
|
14930
14935
|
renderElement: o,
|
|
@@ -14940,7 +14945,7 @@ var ax = (e) => /* @__PURE__ */ ne.createElement(ne.Fragment, null, gf(e)), sx =
|
|
|
14940
14945
|
return (
|
|
14941
14946
|
// COMPAT: Artificially add a line-break to the end on the placeholder element
|
|
14942
14947
|
// to prevent Android IMEs to pick up its content in autocorrect and to auto-capitalize the first letter
|
|
14943
|
-
/* @__PURE__ */
|
|
14948
|
+
/* @__PURE__ */ te.createElement("span", Vt({}, t), n, yt && /* @__PURE__ */ te.createElement("br", null))
|
|
14944
14949
|
);
|
|
14945
14950
|
}, ux = () => [], lx = (e, t) => {
|
|
14946
14951
|
if (t.getBoundingClientRect && (!e.selection || e.selection && G.isCollapsed(e.selection))) {
|
|
@@ -14984,7 +14989,7 @@ var mx = ["editor", "children", "onChange", "onSelectionChange", "onValueChange"
|
|
|
14984
14989
|
onSelectionChange: i,
|
|
14985
14990
|
onValueChange: a,
|
|
14986
14991
|
initialValue: s
|
|
14987
|
-
} = e, o = cr(e, mx), [l, u] =
|
|
14992
|
+
} = e, o = cr(e, mx), [l, u] = te.useState(() => {
|
|
14988
14993
|
if (!oe.isNodeList(s))
|
|
14989
14994
|
throw new Error("[Slate] initialValue is invalid! Expected a list of elements but got: ".concat(ot.stringify(s)));
|
|
14990
14995
|
if (!y.isEditor(t))
|
|
@@ -15024,13 +15029,13 @@ var mx = ["editor", "children", "onChange", "onSelectionChange", "onValueChange"
|
|
|
15024
15029
|
}) : (document.addEventListener("focus", f, !0), document.addEventListener("blur", f, !0), () => {
|
|
15025
15030
|
document.removeEventListener("focus", f, !0), document.removeEventListener("blur", f, !0);
|
|
15026
15031
|
});
|
|
15027
|
-
}, []), /* @__PURE__ */
|
|
15032
|
+
}, []), /* @__PURE__ */ te.createElement(fx.Provider, {
|
|
15028
15033
|
value: d
|
|
15029
|
-
}, /* @__PURE__ */
|
|
15034
|
+
}, /* @__PURE__ */ te.createElement(bf.Provider, {
|
|
15030
15035
|
value: l
|
|
15031
|
-
}, /* @__PURE__ */
|
|
15036
|
+
}, /* @__PURE__ */ te.createElement(wo.Provider, {
|
|
15032
15037
|
value: l.editor
|
|
15033
|
-
}, /* @__PURE__ */
|
|
15038
|
+
}, /* @__PURE__ */ te.createElement(dx.Provider, {
|
|
15034
15039
|
value: p
|
|
15035
15040
|
}, n))));
|
|
15036
15041
|
}, Ul = (e, t) => {
|
|
@@ -18674,11 +18679,11 @@ function kw(e, t, n) {
|
|
|
18674
18679
|
function X(P) {
|
|
18675
18680
|
return I;
|
|
18676
18681
|
function I(Z) {
|
|
18677
|
-
const q = Z !== null && P[Z],
|
|
18682
|
+
const q = Z !== null && P[Z], ne = Z !== null && P.null, ue = [
|
|
18678
18683
|
// To do: add more extension tests.
|
|
18679
18684
|
/* c8 ignore next 2 */
|
|
18680
18685
|
...Array.isArray(q) ? q : q ? [q] : [],
|
|
18681
|
-
...Array.isArray(
|
|
18686
|
+
...Array.isArray(ne) ? ne : ne ? [ne] : []
|
|
18682
18687
|
];
|
|
18683
18688
|
return V(ue)(Z);
|
|
18684
18689
|
}
|
|
@@ -18947,10 +18952,10 @@ function Vw(e) {
|
|
|
18947
18952
|
blockQuote: a(q),
|
|
18948
18953
|
characterEscape: N,
|
|
18949
18954
|
characterReference: N,
|
|
18950
|
-
codeFenced: a(
|
|
18955
|
+
codeFenced: a(ne),
|
|
18951
18956
|
codeFencedFenceInfo: s,
|
|
18952
18957
|
codeFencedFenceMeta: s,
|
|
18953
|
-
codeIndented: a(
|
|
18958
|
+
codeIndented: a(ne, s),
|
|
18954
18959
|
codeText: a(ue, s),
|
|
18955
18960
|
codeTextData: N,
|
|
18956
18961
|
data: N,
|
|
@@ -19366,7 +19371,7 @@ function Vw(e) {
|
|
|
19366
19371
|
children: []
|
|
19367
19372
|
};
|
|
19368
19373
|
}
|
|
19369
|
-
function
|
|
19374
|
+
function ne() {
|
|
19370
19375
|
return {
|
|
19371
19376
|
type: "code",
|
|
19372
19377
|
lang: null,
|
|
@@ -20725,12 +20730,12 @@ const _C = ({
|
|
|
20725
20730
|
})(I)) {
|
|
20726
20731
|
let q = I;
|
|
20727
20732
|
if (I) {
|
|
20728
|
-
const { full:
|
|
20729
|
-
q =
|
|
20733
|
+
const { full: ne } = eo(I);
|
|
20734
|
+
q = ne;
|
|
20730
20735
|
}
|
|
20731
20736
|
if (I && v && !P) {
|
|
20732
|
-
const
|
|
20733
|
-
|
|
20737
|
+
const ne = await v(q);
|
|
20738
|
+
ne.url && w([{ type: "enrichedUrl", value: ne }]);
|
|
20734
20739
|
}
|
|
20735
20740
|
}
|
|
20736
20741
|
},
|
|
@@ -20740,9 +20745,9 @@ const _C = ({
|
|
|
20740
20745
|
const { selection: P } = V;
|
|
20741
20746
|
if (P) {
|
|
20742
20747
|
const I = G.isCollapsed(P), [Z, q] = y.node(V, P, { depth: 1 });
|
|
20743
|
-
let
|
|
20744
|
-
const Q =
|
|
20745
|
-
if (Q && [Y.ol, Y.ul].includes(Q.type) && (
|
|
20748
|
+
let ne = Z, ue = ne.type;
|
|
20749
|
+
const Q = ne.children[0];
|
|
20750
|
+
if (Q && [Y.ol, Y.ul].includes(Q.type) && (ne = Q, ue = Q.type), ne && he.isElement(ne) && ue !== Y.paragraph) {
|
|
20746
20751
|
if (ue === Y.blockquote && !j.shiftKey) {
|
|
20747
20752
|
j.stopPropagation(), j.preventDefault(), J.insertNodes(V, _);
|
|
20748
20753
|
return;
|
|
@@ -21725,13 +21730,13 @@ const MC = {
|
|
|
21725
21730
|
"signup-this-session",
|
|
21726
21731
|
"functional-cookie-consent"
|
|
21727
21732
|
]), N = {
|
|
21728
|
-
form:
|
|
21729
|
-
name:
|
|
21730
|
-
email:
|
|
21731
|
-
jobTitle:
|
|
21732
|
-
organisation:
|
|
21733
|
-
tc:
|
|
21734
|
-
hiddenValidation:
|
|
21733
|
+
form: te.createRef(),
|
|
21734
|
+
name: te.createRef(),
|
|
21735
|
+
email: te.createRef(),
|
|
21736
|
+
jobTitle: te.createRef(),
|
|
21737
|
+
organisation: te.createRef(),
|
|
21738
|
+
tc: te.createRef(),
|
|
21739
|
+
hiddenValidation: te.createRef()
|
|
21735
21740
|
};
|
|
21736
21741
|
de(() => {
|
|
21737
21742
|
_ === !0 && N.jobTitle.current && N.jobTitle.current.focus();
|
|
@@ -21866,7 +21871,7 @@ const J_ = ({ text: e, buttons: t, className: n = "" }) => {
|
|
|
21866
21871
|
className: K("download-section", n),
|
|
21867
21872
|
styling: { background: "dark" },
|
|
21868
21873
|
children: /* @__PURE__ */ c.jsxs("div", { className: "content-default", children: [
|
|
21869
|
-
|
|
21874
|
+
te.createElement(
|
|
21870
21875
|
typeof e == "string" ? "h2" : e.element,
|
|
21871
21876
|
{ className: "text" },
|
|
21872
21877
|
typeof e == "string" ? e : e.text
|
|
@@ -21914,9 +21919,9 @@ const RC = ({
|
|
|
21914
21919
|
placeholder: l,
|
|
21915
21920
|
showDivider: u = !0
|
|
21916
21921
|
}) => {
|
|
21917
|
-
const { formatMessage: d } = ce(), [h, m] =
|
|
21922
|
+
const { formatMessage: d } = ce(), [h, m] = te.useState(!1), p = () => m(!1), g = !!n || !!r, f = typeof i == "string" || g;
|
|
21918
21923
|
let v;
|
|
21919
|
-
return r && (v =
|
|
21924
|
+
return r && (v = te.cloneElement(r, {
|
|
21920
21925
|
functions: {
|
|
21921
21926
|
...r.props.functions,
|
|
21922
21927
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
@@ -22013,7 +22018,7 @@ const ek = ({
|
|
|
22013
22018
|
"wrap-logos": o
|
|
22014
22019
|
}),
|
|
22015
22020
|
children: [
|
|
22016
|
-
e &&
|
|
22021
|
+
e && te.createElement(
|
|
22017
22022
|
s.element,
|
|
22018
22023
|
{ className: K("title", s.className) },
|
|
22019
22024
|
s.text
|
|
@@ -22053,7 +22058,7 @@ let is;
|
|
|
22053
22058
|
const as = "contactFooter_", tk = ({ onSuccess: e = async () => {
|
|
22054
22059
|
}, onFailure: t = () => {
|
|
22055
22060
|
} }) => {
|
|
22056
|
-
const n = ke(null), [r, i] =
|
|
22061
|
+
const n = ke(null), [r, i] = te.useState(0), [a, s] = te.useState(!1), o = () => {
|
|
22057
22062
|
n.current && i(n.current.clientHeight);
|
|
22058
22063
|
}, l = () => {
|
|
22059
22064
|
a || (s(!0), clearTimeout(is), is = setTimeout(() => {
|
|
@@ -22616,7 +22621,7 @@ const rr = "footer_", Qi = "SiteFooter", Ec = ({ group: e }) => {
|
|
|
22616
22621
|
}),
|
|
22617
22622
|
...v,
|
|
22618
22623
|
children: [
|
|
22619
|
-
m ?
|
|
22624
|
+
m ? te.createElement(
|
|
22620
22625
|
d ? Be : "a",
|
|
22621
22626
|
m,
|
|
22622
22627
|
s.formatMessage({ id: h })
|
|
@@ -23007,7 +23012,7 @@ const LC = () => {
|
|
|
23007
23012
|
children: _
|
|
23008
23013
|
}
|
|
23009
23014
|
),
|
|
23010
|
-
|
|
23015
|
+
te.createElement(d === "bold" ? td : "div", {
|
|
23011
23016
|
id: "content",
|
|
23012
23017
|
children: C,
|
|
23013
23018
|
className: K({ "large-modal": p === "large" })
|
|
@@ -23344,7 +23349,7 @@ const rt = "discussion_form_", ma = ({
|
|
|
23344
23349
|
"data-testid": "loading-placeholder"
|
|
23345
23350
|
}
|
|
23346
23351
|
);
|
|
23347
|
-
const
|
|
23352
|
+
const ne = (xe, W) => {
|
|
23348
23353
|
j((pe) => ({ ...pe, body: xe, data: { link: W } })), O({ body: xe });
|
|
23349
23354
|
let ie;
|
|
23350
23355
|
!g || !g.id ? ie = $t(
|
|
@@ -23469,7 +23474,7 @@ const rt = "discussion_form_", ma = ({
|
|
|
23469
23474
|
maxLength: s,
|
|
23470
23475
|
meta: { isInOverlay: _ },
|
|
23471
23476
|
functions: {
|
|
23472
|
-
onChange:
|
|
23477
|
+
onChange: ne,
|
|
23473
23478
|
onChangeData: ge,
|
|
23474
23479
|
onMention: re,
|
|
23475
23480
|
listMembers: D,
|
|
@@ -23740,7 +23745,7 @@ const tE = ({
|
|
|
23740
23745
|
}, k = () => {
|
|
23741
23746
|
ds && clearTimeout(ds);
|
|
23742
23747
|
};
|
|
23743
|
-
return
|
|
23748
|
+
return te.createElement(
|
|
23744
23749
|
e,
|
|
23745
23750
|
{
|
|
23746
23751
|
className: "likes-wrapper",
|
|
@@ -24626,7 +24631,7 @@ const ik = ({
|
|
|
24626
24631
|
}
|
|
24627
24632
|
),
|
|
24628
24633
|
v == null ? void 0 : v.map((S, U) => {
|
|
24629
|
-
var Z, q,
|
|
24634
|
+
var Z, q, ne;
|
|
24630
24635
|
const {
|
|
24631
24636
|
id: H,
|
|
24632
24637
|
own_reactions: ae,
|
|
@@ -24635,7 +24640,7 @@ const ik = ({
|
|
|
24635
24640
|
mentioned_users: X,
|
|
24636
24641
|
total_replies: V,
|
|
24637
24642
|
additional_data: F
|
|
24638
|
-
} = S, A = (((Z = re == null ? void 0 : re.like) == null ? void 0 : Z.length) || 0) > 0, j = (((q = ae == null ? void 0 : ae.like) == null ? void 0 : q.length) || 0) > 0, P = j ? ae == null ? void 0 : ae.like[0].id : "", I = A ? (
|
|
24643
|
+
} = S, A = (((Z = re == null ? void 0 : re.like) == null ? void 0 : Z.length) || 0) > 0, j = (((q = ae == null ? void 0 : ae.like) == null ? void 0 : q.length) || 0) > 0, P = j ? ae == null ? void 0 : ae.like[0].id : "", I = A ? (ne = re == null ? void 0 : re.like) == null ? void 0 : ne.map((ue) => {
|
|
24639
24644
|
var Q, ve, ge;
|
|
24640
24645
|
return {
|
|
24641
24646
|
id: (Q = ue == null ? void 0 : ue.user) == null ? void 0 : Q.id,
|
|
@@ -25505,10 +25510,10 @@ const TE = ({
|
|
|
25505
25510
|
var Z;
|
|
25506
25511
|
return ((Z = I == null ? void 0 : I.user) == null ? void 0 : Z.id) === (_ == null ? void 0 : _.id);
|
|
25507
25512
|
}) : !1, S = O ? O == null ? void 0 : O.id : "", U = !!O, ae = (((V = N == null ? void 0 : N.like) == null ? void 0 : V.length) || 0) > 0 ? (F = N == null ? void 0 : N.like) == null ? void 0 : F.map((I) => {
|
|
25508
|
-
var Z, q,
|
|
25513
|
+
var Z, q, ne;
|
|
25509
25514
|
return {
|
|
25510
25515
|
id: (Z = I == null ? void 0 : I.user) == null ? void 0 : Z.id,
|
|
25511
|
-
name: (
|
|
25516
|
+
name: (ne = (q = I == null ? void 0 : I.user) == null ? void 0 : q.data) == null ? void 0 : ne.name
|
|
25512
25517
|
};
|
|
25513
25518
|
}) : !1, re = typeof w.data.content == "string" ? (A = w == null ? void 0 : w.data) == null ? void 0 : A.content : (
|
|
25514
25519
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
@@ -25640,7 +25645,7 @@ const SE = ({
|
|
|
25640
25645
|
}
|
|
25641
25646
|
),
|
|
25642
25647
|
m == null ? void 0 : m.map((N, z) => {
|
|
25643
|
-
var A, j, P, I, Z, q,
|
|
25648
|
+
var A, j, P, I, Z, q, ne;
|
|
25644
25649
|
const {
|
|
25645
25650
|
id: $,
|
|
25646
25651
|
own_children: k,
|
|
@@ -25658,7 +25663,7 @@ const SE = ({
|
|
|
25658
25663
|
};
|
|
25659
25664
|
}) : !1, F = typeof N.data.content == "string" ? (Z = N == null ? void 0 : N.data) == null ? void 0 : Z.content : (
|
|
25660
25665
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
25661
|
-
((
|
|
25666
|
+
((ne = (q = N == null ? void 0 : N.data) == null ? void 0 : q.content) == null ? void 0 : ne.text) || ""
|
|
25662
25667
|
);
|
|
25663
25668
|
return /* @__PURE__ */ c.jsx(VC, { children: /* @__PURE__ */ c.jsx(
|
|
25664
25669
|
pa,
|
|
@@ -25972,7 +25977,7 @@ const pa = ({
|
|
|
25972
25977
|
userLiked: V,
|
|
25973
25978
|
comments: F = 0,
|
|
25974
25979
|
data: A
|
|
25975
|
-
} = t, j = w && w.id && typeof H != "string" && H.id && H.id === w.id || !1, P = typeof ae == "boolean" ? ae : !0, I = j && (!t.createdAt || Ih(t.createdAt, 10, "seconds")), Z = ke(null), [q,
|
|
25980
|
+
} = t, j = w && w.id && typeof H != "string" && H.id && H.id === w.id || !1, P = typeof ae == "boolean" ? ae : !0, I = j && (!t.createdAt || Ih(t.createdAt, 10, "seconds")), Z = ke(null), [q, ne] = le({
|
|
25976
25981
|
title: t && t.body !== t.title && t.title || "",
|
|
25977
25982
|
body: t && t.body || "",
|
|
25978
25983
|
isEditing: !1,
|
|
@@ -25994,7 +25999,7 @@ const pa = ({
|
|
|
25994
25999
|
), De.removeEventListener("transitionend", We);
|
|
25995
26000
|
};
|
|
25996
26001
|
}, []), de(() => {
|
|
25997
|
-
|
|
26002
|
+
ne((De) => ({
|
|
25998
26003
|
...De,
|
|
25999
26004
|
title: t && t.title || "",
|
|
26000
26005
|
body: t && t.body || "",
|
|
@@ -26009,7 +26014,7 @@ const pa = ({
|
|
|
26009
26014
|
A == null ? void 0 : A.mentions,
|
|
26010
26015
|
S
|
|
26011
26016
|
);
|
|
26012
|
-
|
|
26017
|
+
ne((Ve) => ({ ...Ve, postBody: Fe }));
|
|
26013
26018
|
})();
|
|
26014
26019
|
}, [q.body, A == null ? void 0 : A.mentions]);
|
|
26015
26020
|
const Oe = () => {
|
|
@@ -26038,7 +26043,7 @@ const pa = ({
|
|
|
26038
26043
|
const st = t.type === "question" ? { title: Fe } : { title: De, body: Fe, data: Ve };
|
|
26039
26044
|
await z(kc(t.slugs), st);
|
|
26040
26045
|
}
|
|
26041
|
-
|
|
26046
|
+
ne((st) => ({
|
|
26042
26047
|
...st,
|
|
26043
26048
|
title: De || "",
|
|
26044
26049
|
body: Fe || "",
|
|
@@ -26090,7 +26095,7 @@ const pa = ({
|
|
|
26090
26095
|
return n && j && Se.push(
|
|
26091
26096
|
{
|
|
26092
26097
|
text: x.formatMessage({ id: `${Ht}moreMenu_edit` }),
|
|
26093
|
-
onClick: () =>
|
|
26098
|
+
onClick: () => ne((De) => ({ ...De, isEditing: !0 })),
|
|
26094
26099
|
icon: "pencil-paper",
|
|
26095
26100
|
className: "gtm-trackable",
|
|
26096
26101
|
"data-gtm-event-context": d,
|
|
@@ -26116,7 +26121,7 @@ const pa = ({
|
|
|
26116
26121
|
className: "gtm-trackable",
|
|
26117
26122
|
"data-gtm-event-context": d,
|
|
26118
26123
|
"data-gtm-event-type": `edit-${t.type}-click`
|
|
26119
|
-
}), f && ((Ye = Z == null ? void 0 : Z.current) == null || Ye.focus(), (xe = Z == null ? void 0 : Z.current) == null || xe.scrollIntoView({ behavior: "smooth" })),
|
|
26124
|
+
}), f && ((Ye = Z == null ? void 0 : Z.current) == null || Ye.focus(), (xe = Z == null ? void 0 : Z.current) == null || xe.scrollIntoView({ behavior: "smooth" })), te.createElement(e, {
|
|
26120
26125
|
className: K("discussion-post", u, {
|
|
26121
26126
|
[ve]: !u || !u.includes("highlighted-text-box"),
|
|
26122
26127
|
"has-link": l.post && !q.isEditing,
|
|
@@ -26197,7 +26202,7 @@ const pa = ({
|
|
|
26197
26202
|
create: L,
|
|
26198
26203
|
handleSaveEdit: He,
|
|
26199
26204
|
handleCancel: () => {
|
|
26200
|
-
je(""),
|
|
26205
|
+
je(""), ne((De) => ({ ...De, isEditing: !1 }));
|
|
26201
26206
|
},
|
|
26202
26207
|
listMembers: S,
|
|
26203
26208
|
clickMentionFallback: U
|
|
@@ -26231,7 +26236,7 @@ const pa = ({
|
|
|
26231
26236
|
or,
|
|
26232
26237
|
{
|
|
26233
26238
|
options: {
|
|
26234
|
-
wrapper: t.type === "question" ? "h1" :
|
|
26239
|
+
wrapper: t.type === "question" ? "h1" : te.Fragment,
|
|
26235
26240
|
forceWrapper: t.type === "question",
|
|
26236
26241
|
forceInline: t.type === "question",
|
|
26237
26242
|
forceBlock: t.type !== "question",
|
|
@@ -27341,7 +27346,7 @@ const i_ = [
|
|
|
27341
27346
|
d.map((v) => {
|
|
27342
27347
|
if (m[v] && typeof m[v] == "object") {
|
|
27343
27348
|
const { text: b, element: C = "" } = m[v];
|
|
27344
|
-
return v === "text" ? /* @__PURE__ */ c.jsx(or, { overrideType: "text-only", className: "text", children: b }, v) :
|
|
27349
|
+
return v === "text" ? /* @__PURE__ */ c.jsx(or, { overrideType: "text-only", className: "text", children: b }, v) : te.createElement(C, { key: v, className: v }, b);
|
|
27345
27350
|
}
|
|
27346
27351
|
return null;
|
|
27347
27352
|
}),
|
|
@@ -27703,7 +27708,7 @@ const ah = ({
|
|
|
27703
27708
|
setFocus: l = !1
|
|
27704
27709
|
}) => {
|
|
27705
27710
|
var $, k;
|
|
27706
|
-
const u = ce(), d = Ie(Dt), h = !!(d != null && d.id), m =
|
|
27711
|
+
const u = ce(), d = Ie(Dt), h = !!(d != null && d.id), m = te.useRef(null), [p, g] = le({
|
|
27707
27712
|
data: null,
|
|
27708
27713
|
isLoading: !0
|
|
27709
27714
|
});
|
|
@@ -27864,7 +27869,7 @@ const d_ = ({ cards: e, cardTypes: t, className: n = "", ...r }) => /* @__PURE__
|
|
|
27864
27869
|
if (!t || !t.text)
|
|
27865
27870
|
return null;
|
|
27866
27871
|
const { text: r, element: i = "h2", variant: a = "default", size: s = "medium", link: o } = t;
|
|
27867
|
-
return
|
|
27872
|
+
return te.createElement(i, {
|
|
27868
27873
|
className: K("title", a, s, {
|
|
27869
27874
|
"highlighted-title": a === "highlighted"
|
|
27870
27875
|
}),
|
|
@@ -28128,7 +28133,7 @@ const vk = ({
|
|
|
28128
28133
|
tabIndex: "0",
|
|
28129
28134
|
"data-gtm-event-context": `${r}-NarrowCard`,
|
|
28130
28135
|
"data-gtm-event-type": `${r}-click`
|
|
28131
|
-
}),
|
|
28136
|
+
}), te.createElement(e, {
|
|
28132
28137
|
className: K("narrow-card", t, {
|
|
28133
28138
|
"has-link": l,
|
|
28134
28139
|
"gtm-trackable": l,
|
|
@@ -28168,7 +28173,7 @@ const bk = ({
|
|
|
28168
28173
|
let u = i ? n : r;
|
|
28169
28174
|
u > 99 ? u = 100 : u < 1 && (u = 0);
|
|
28170
28175
|
const { highlightPercentage: d = !1 } = s;
|
|
28171
|
-
return
|
|
28176
|
+
return te.createElement(e, {
|
|
28172
28177
|
className: K("course-progression", o, {
|
|
28173
28178
|
"highlight-percentage": d,
|
|
28174
28179
|
"has-circle-graph": a === "circle"
|
|
@@ -28207,7 +28212,7 @@ const p_ = ({
|
|
|
28207
28212
|
subsectionId: n,
|
|
28208
28213
|
title: r,
|
|
28209
28214
|
className: i = ""
|
|
28210
|
-
}) =>
|
|
28215
|
+
}) => te.createElement(e, {
|
|
28211
28216
|
className: K("lesson-name", i),
|
|
28212
28217
|
"data-number": `${t}.${n}`,
|
|
28213
28218
|
children: r
|