@apolitical/component-library 5.2.0-jc.8 → 5.2.0-jc.9
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/communities/members-list/index.d.ts +1 -0
- package/communities/members-list/members-list.constants.d.ts +1 -0
- package/discussion/feeds/activities-feed/activities-feed.d.ts +1 -1
- package/discussion/feeds/activities-feed/cache/cache.helper.d.ts +5 -0
- package/discussion/feeds/replies-feed/cache/cache.helper.d.ts +16 -0
- package/discussion/sections/activity-section/activity-section.d.ts +1 -1
- package/index.js +36 -36
- package/index.mjs +684 -679
- package/package.json +1 -1
- package/style.css +1 -1
- package/text/helper-text-box/helper-text-box.d.ts +2 -2
- package/text/helper-text-box/index.d.ts +1 -0
package/index.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import 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
|
|
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 hh, Component as mh, Fragment as Ir, Suspense as ph } 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";
|
|
@@ -90,7 +90,7 @@ const V = /* @__PURE__ */ Rn(kh), Fh = ({
|
|
|
90
90
|
children: t = null,
|
|
91
91
|
...n
|
|
92
92
|
}) => re.createElement(e, { ...n, "aria-hidden": !0 }, t), Js = Jt(Ah);
|
|
93
|
-
var ys = { exports: {} },
|
|
93
|
+
var ys = { exports: {} }, br = {};
|
|
94
94
|
/**
|
|
95
95
|
* @license React
|
|
96
96
|
* react-jsx-runtime.production.min.js
|
|
@@ -103,7 +103,7 @@ var ys = { exports: {} }, vr = {};
|
|
|
103
103
|
var Ko;
|
|
104
104
|
function Bh() {
|
|
105
105
|
if (Ko)
|
|
106
|
-
return
|
|
106
|
+
return br;
|
|
107
107
|
Ko = 1;
|
|
108
108
|
var e = re, t = Symbol.for("react.element"), n = Symbol.for("react.fragment"), r = Object.prototype.hasOwnProperty, i = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, a = { key: !0, ref: !0, __self: !0, __source: !0 };
|
|
109
109
|
function s(o, l, u) {
|
|
@@ -116,9 +116,9 @@ function Bh() {
|
|
|
116
116
|
h[d] === void 0 && (h[d] = l[d]);
|
|
117
117
|
return { $$typeof: t, type: o, key: m, ref: p, props: h, _owner: i.current };
|
|
118
118
|
}
|
|
119
|
-
return
|
|
119
|
+
return br.Fragment = n, br.jsx = s, br.jsxs = s, br;
|
|
120
120
|
}
|
|
121
|
-
var
|
|
121
|
+
var yr = {};
|
|
122
122
|
/**
|
|
123
123
|
* @license React
|
|
124
124
|
* react-jsx-runtime.development.js
|
|
@@ -557,7 +557,7 @@ function Th() {
|
|
|
557
557
|
return Ft(P, je, ft, $e, we, pe.current, Oe);
|
|
558
558
|
}
|
|
559
559
|
}
|
|
560
|
-
var
|
|
560
|
+
var vr = v.ReactCurrentOwner, Xr = v.ReactDebugCurrentFrame;
|
|
561
561
|
function Wn(P) {
|
|
562
562
|
if (P) {
|
|
563
563
|
var ae = P._owner, fe = Ae(P.type, P._source, ae ? ae.type : null);
|
|
@@ -572,8 +572,8 @@ function Th() {
|
|
|
572
572
|
}
|
|
573
573
|
function zo() {
|
|
574
574
|
{
|
|
575
|
-
if (
|
|
576
|
-
var P = C(
|
|
575
|
+
if (vr.current) {
|
|
576
|
+
var P = C(vr.current.type);
|
|
577
577
|
if (P)
|
|
578
578
|
return `
|
|
579
579
|
|
|
@@ -616,7 +616,7 @@ Check the top-level render call using <` + fe + ">.");
|
|
|
616
616
|
return;
|
|
617
617
|
qo[fe] = !0;
|
|
618
618
|
var we = "";
|
|
619
|
-
P && P._owner && P._owner !==
|
|
619
|
+
P && P._owner && P._owner !== vr.current && (we = " It was passed a child from " + C(P._owner.type) + "."), Wn(P), x('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', fe, we), Wn(null);
|
|
620
620
|
}
|
|
621
621
|
}
|
|
622
622
|
function Uo(P, ae) {
|
|
@@ -712,8 +712,8 @@ Check the top-level render call using <` + fe + ">.");
|
|
|
712
712
|
return Ho(P, ae, fe, !1);
|
|
713
713
|
}
|
|
714
714
|
var dh = ch, fh = lh;
|
|
715
|
-
|
|
716
|
-
}()),
|
|
715
|
+
yr.Fragment = r, yr.jsx = dh, yr.jsxs = fh;
|
|
716
|
+
}()), yr;
|
|
717
717
|
}
|
|
718
718
|
process.env.NODE_ENV === "production" ? ys.exports = Bh() : ys.exports = Th();
|
|
719
719
|
var c = ys.exports;
|
|
@@ -725,7 +725,7 @@ const Sh = () => {
|
|
|
725
725
|
return ce(() => (window.addEventListener("popstate", n), () => {
|
|
726
726
|
window.removeEventListener("popstate", n);
|
|
727
727
|
}), []), e;
|
|
728
|
-
},
|
|
728
|
+
}, $r = (e, t) => {
|
|
729
729
|
const n = Fe(!1);
|
|
730
730
|
ce(() => {
|
|
731
731
|
n.current ? e() : n.current = !0;
|
|
@@ -792,7 +792,7 @@ function Mc(e, t, n) {
|
|
|
792
792
|
return Nc(e, t, { maxWait: t, leading: i === void 0 || i, trailing: a === void 0 || a });
|
|
793
793
|
}
|
|
794
794
|
let ba;
|
|
795
|
-
const
|
|
795
|
+
const hr = (e = !0, t = !1, n = "window") => {
|
|
796
796
|
if (!e)
|
|
797
797
|
return;
|
|
798
798
|
const [r, i] = re.useState(0) || [!1, () => {
|
|
@@ -855,7 +855,7 @@ const fr = (e = !0, t = !1, n = "window") => {
|
|
|
855
855
|
}, Rc = (e = [], t = !0) => {
|
|
856
856
|
e = Array.isArray(e) ? e : [e];
|
|
857
857
|
const n = Fe(!1);
|
|
858
|
-
|
|
858
|
+
$r(() => {
|
|
859
859
|
if (window && window.location && window.location.hash) {
|
|
860
860
|
if (n.current)
|
|
861
861
|
return;
|
|
@@ -878,7 +878,7 @@ const fr = (e = !0, t = !1, n = "window") => {
|
|
|
878
878
|
}
|
|
879
879
|
};
|
|
880
880
|
};
|
|
881
|
-
const Yo = {},
|
|
881
|
+
const Yo = {}, mr = Ys(
|
|
882
882
|
({
|
|
883
883
|
id: e,
|
|
884
884
|
styling: t = {},
|
|
@@ -913,7 +913,7 @@ const Yo = {}, hr = Ys(
|
|
|
913
913
|
const O = ({ propertyName: A }) => {
|
|
914
914
|
A === "opacity" && (z !== !1 && clearTimeout(z), b((C) => (C === "open" ? E() : C === "closed" && w(), C === "opening" ? "open" : C === "closing" ? "closed" : C === "closed" ? "hidden" : C)));
|
|
915
915
|
};
|
|
916
|
-
|
|
916
|
+
$r(() => {
|
|
917
917
|
z !== !1 && clearTimeout(z);
|
|
918
918
|
let A = "open";
|
|
919
919
|
n ? b("opening") : (b("closing"), A = "hidden"), Yo[m || ""] = setTimeout(() => {
|
|
@@ -966,7 +966,7 @@ const Yo = {}, hr = Ys(
|
|
|
966
966
|
break;
|
|
967
967
|
}
|
|
968
968
|
return r;
|
|
969
|
-
}, Oh = (e) => e.replace(/[A-Z]/g, (t) => `-${t.toLowerCase()}`), Ph = (e = "") => e.replace(/(?:^\w|[A-Z]|\b\w)/g, (t) => t.toUpperCase()).replace(/[&\s]+/g, ""), Nh = (e = "") => e.charAt(0).toUpperCase() + e.slice(1),
|
|
969
|
+
}, Oh = (e) => e.replace(/[A-Z]/g, (t) => `-${t.toLowerCase()}`), Ph = (e = "") => e.replace(/(?:^\w|[A-Z]|\b\w)/g, (t) => t.toUpperCase()).replace(/[&\s]+/g, ""), Nh = (e = "") => e.charAt(0).toUpperCase() + e.slice(1), B_ = (e = "") => e.replace(/(?:^\w|[A-Z]|\b\w)/g, (t) => t.toUpperCase()), an = "https://storage.googleapis.com/apolitical-assets/", Fr = {
|
|
970
970
|
general: "hello@apolitical.co",
|
|
971
971
|
support: "concierge@apolitical.co",
|
|
972
972
|
"data-protection": {
|
|
@@ -977,8 +977,8 @@ const Yo = {}, hr = Ys(
|
|
|
977
977
|
ARTICLE: "microcourseArticle",
|
|
978
978
|
DISCUSSION: "microcourseDiscussion",
|
|
979
979
|
QUIZ: "assessmentQuiz"
|
|
980
|
-
}, Go = "SU:", Oi = "DELETED", Mh = "Invalid token error: Logging user out...",
|
|
981
|
-
function
|
|
980
|
+
}, Go = "SU:", Oi = "DELETED", Mh = "Invalid token error: Logging user out...", T_ = "200,000+", S_ = "160+", Pi = /@{{([0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12})}}/g, Rh = new RegExp("(?<=^|\\s)@([A-Za-z]+(?:[- ]?[A-Za-z]*)*)$");
|
|
981
|
+
function j_(e) {
|
|
982
982
|
return e ? {
|
|
983
983
|
"--icon": `url(${an}icons/${e}.svg)`
|
|
984
984
|
} : {};
|
|
@@ -1040,7 +1040,7 @@ const Fn = {
|
|
|
1040
1040
|
}, zh = (e) => new Promise((t) => setTimeout(t, e)), qh = () => {
|
|
1041
1041
|
let e = !1;
|
|
1042
1042
|
return typeof window < "u" && (e = !!(window && window.location && window.location.href && window.location.href.includes("localhost"))), e;
|
|
1043
|
-
},
|
|
1043
|
+
}, pr = {
|
|
1044
1044
|
/* Common */
|
|
1045
1045
|
apolitical: "Apolitical",
|
|
1046
1046
|
dates_now: "now",
|
|
@@ -1538,7 +1538,7 @@ Thank you for helping to protect the Apolitical community from abusive content.`
|
|
|
1538
1538
|
markdown_iframe_padlet: "Interactive board",
|
|
1539
1539
|
markdown_iframe_poll: "Poll"
|
|
1540
1540
|
}, Wh = {
|
|
1541
|
-
...
|
|
1541
|
+
...pr,
|
|
1542
1542
|
/* Navigation */
|
|
1543
1543
|
languageSwitcher_label: "Me gustaría leer este artículo en...",
|
|
1544
1544
|
languageSwitcher_translation_original: "idioma original",
|
|
@@ -1546,7 +1546,7 @@ Thank you for helping to protect the Apolitical community from abusive content.`
|
|
|
1546
1546
|
languageSwitcher_translation_machine: "traducido por máquina",
|
|
1547
1547
|
languageSwitcher_disclaimer: "Este contenido fue traducido automáticamente y ocasionalmente tendrá errores de género u otras traducciones directas. Estamos intentando resolver este problema, pero mientras tanto, si notas algún error grave, escríbenos a <link>{email}</link>"
|
|
1548
1548
|
}, Uh = {
|
|
1549
|
-
...
|
|
1549
|
+
...pr,
|
|
1550
1550
|
/* Navigation */
|
|
1551
1551
|
languageSwitcher_label: "Je voudrais lire cet article dans...",
|
|
1552
1552
|
languageSwitcher_translation_original: "langue originale",
|
|
@@ -1556,7 +1556,7 @@ Thank you for helping to protect the Apolitical community from abusive content.`
|
|
|
1556
1556
|
/* Text */
|
|
1557
1557
|
collapsibleSection_summary: "En savoir plus"
|
|
1558
1558
|
}, Hh = {
|
|
1559
|
-
...
|
|
1559
|
+
...pr,
|
|
1560
1560
|
/* Navigation */
|
|
1561
1561
|
languageSwitcher_label: "Eu gostaria de ler este artigo em...",
|
|
1562
1562
|
languageSwitcher_translation_original: "linguagem original",
|
|
@@ -1565,11 +1565,11 @@ Thank you for helping to protect the Apolitical community from abusive content.`
|
|
|
1565
1565
|
languageSwitcher_disclaimer: "Este conteúdo foi traduzido automaticamente e, ocasionalmente, poderão ocorrer erros de linguagem de gênero ou outras traduções diretas. Estamos tentando resolver isso, porém se perceber algo errado por favor nos avise em <link>{email}</link>"
|
|
1566
1566
|
}, Vh = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1567
1567
|
__proto__: null,
|
|
1568
|
-
en:
|
|
1568
|
+
en: pr,
|
|
1569
1569
|
es: Wh,
|
|
1570
1570
|
fr: Uh,
|
|
1571
1571
|
pt: Hh
|
|
1572
|
-
}, Symbol.toStringTag, { value: "Module" })), Xs = (e, t =
|
|
1572
|
+
}, Symbol.toStringTag, { value: "Module" })), Xs = (e, t = pr) => e in t, It = (e, t, n, r, i = {}) => {
|
|
1573
1573
|
let a = "";
|
|
1574
1574
|
return Xs(`${t}_${n}`) ? a = e({ id: `${t}_${n}` }, i) : a = e({ id: t }, { [r]: n, ...i }), a;
|
|
1575
1575
|
}, Kh = (e, t, n) => {
|
|
@@ -1674,7 +1674,7 @@ const Te = ({
|
|
|
1674
1674
|
children: h = !1,
|
|
1675
1675
|
...m
|
|
1676
1676
|
}) => {
|
|
1677
|
-
const g =
|
|
1677
|
+
const g = hr(typeof t == "object"), { showTooltip: f, tooltipProps: b } = Ic(!!u);
|
|
1678
1678
|
if (typeof t == "object" && typeof g == "number") {
|
|
1679
1679
|
const E = Object.assign({}, t), w = $c(Object.keys(E));
|
|
1680
1680
|
t = Lc(g, w, E);
|
|
@@ -1702,7 +1702,7 @@ const Te = ({
|
|
|
1702
1702
|
);
|
|
1703
1703
|
return l && u ? /* @__PURE__ */ c.jsxs("span", { className: "button-container", ...b, children: [
|
|
1704
1704
|
/* @__PURE__ */ c.jsx(
|
|
1705
|
-
|
|
1705
|
+
mr,
|
|
1706
1706
|
{
|
|
1707
1707
|
isOpen: f,
|
|
1708
1708
|
accessibility: { readToScreenreadersWhenClosed: !0 },
|
|
@@ -1896,7 +1896,7 @@ const Yr = ({ image: e, className: t, testId: n }) => {
|
|
|
1896
1896
|
)
|
|
1897
1897
|
] });
|
|
1898
1898
|
};
|
|
1899
|
-
const
|
|
1899
|
+
const O_ = ({ image: e, className: t = "", testId: n }) => /* @__PURE__ */ c.jsx(
|
|
1900
1900
|
"div",
|
|
1901
1901
|
{
|
|
1902
1902
|
className: `image-container ${t}`,
|
|
@@ -1939,7 +1939,7 @@ const Xh = Ys(
|
|
|
1939
1939
|
__proto__: null,
|
|
1940
1940
|
default: Gr
|
|
1941
1941
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
1942
|
-
const
|
|
1942
|
+
const P_ = ({ currentStep: e = 1, steps: t = 1 }) => /* @__PURE__ */ c.jsxs(c.Fragment, { children: [
|
|
1943
1943
|
/* @__PURE__ */ c.jsx(Ue, { children: /* @__PURE__ */ c.jsx(
|
|
1944
1944
|
ct,
|
|
1945
1945
|
{
|
|
@@ -1971,7 +1971,7 @@ const S_ = ({ currentStep: e = 1, steps: t = 1 }) => /* @__PURE__ */ c.jsxs(c.Fr
|
|
|
1971
1971
|
] }, r);
|
|
1972
1972
|
}) }) })
|
|
1973
1973
|
] });
|
|
1974
|
-
const
|
|
1974
|
+
const N_ = ({ elementId: e, offset: t = 20 }) => {
|
|
1975
1975
|
const n = le(), r = () => {
|
|
1976
1976
|
const i = document.getElementById(e);
|
|
1977
1977
|
if (!i)
|
|
@@ -1993,7 +1993,7 @@ const j_ = ({ elementId: e, offset: t = 20 }) => {
|
|
|
1993
1993
|
}
|
|
1994
1994
|
);
|
|
1995
1995
|
};
|
|
1996
|
-
const
|
|
1996
|
+
const M_ = ({ items: e, className: t = "", ...n }) => /* @__PURE__ */ c.jsx("ul", { className: V("buckets", t), ...n, children: e.map(({ title: r, text: i, link: a, ...s }, o) => /* @__PURE__ */ c.jsx("li", { className: "bucket text-medium", children: /* @__PURE__ */ c.jsxs("a", { href: a, ...s, children: [
|
|
1997
1997
|
/* @__PURE__ */ c.jsx("p", { className: "title", children: r }),
|
|
1998
1998
|
/* @__PURE__ */ c.jsx("p", { children: i })
|
|
1999
1999
|
] }) }, o)) }), eu = 300, tu = "ease-in-out";
|
|
@@ -2137,7 +2137,7 @@ const $n = ({
|
|
|
2137
2137
|
className: r = ""
|
|
2138
2138
|
}) => {
|
|
2139
2139
|
let i = n && !!Object.keys(n).length;
|
|
2140
|
-
const a = typeof n == "object" && "breakpoints" in n, s =
|
|
2140
|
+
const a = typeof n == "object" && "breakpoints" in n, s = hr(a);
|
|
2141
2141
|
if (a && typeof n == "object" && typeof s == "number") {
|
|
2142
2142
|
const h = Object.assign({}, n.breakpoints), m = $c(Object.keys(h));
|
|
2143
2143
|
i = Lc(s, m, h);
|
|
@@ -2261,7 +2261,7 @@ const am = ({
|
|
|
2261
2261
|
}
|
|
2262
2262
|
);
|
|
2263
2263
|
};
|
|
2264
|
-
const
|
|
2264
|
+
const R_ = ({
|
|
2265
2265
|
element: e = "ul",
|
|
2266
2266
|
layout: t = "vertical",
|
|
2267
2267
|
variant: n = "default",
|
|
@@ -2499,7 +2499,7 @@ const bn = ({
|
|
|
2499
2499
|
return i ? /* @__PURE__ */ c.jsxs("span", { className: "pill-wrapper", children: [
|
|
2500
2500
|
h,
|
|
2501
2501
|
/* @__PURE__ */ c.jsx(
|
|
2502
|
-
|
|
2502
|
+
mr,
|
|
2503
2503
|
{
|
|
2504
2504
|
isOpen: u,
|
|
2505
2505
|
accessibility: { readToScreenreadersWhenClosed: !0 },
|
|
@@ -2616,7 +2616,7 @@ const Cm = ({ children: e, user: t, updateDetails: n }) => /* @__PURE__ */ c.jsx
|
|
|
2616
2616
|
n((s) => s.filter((o) => o !== a));
|
|
2617
2617
|
}, []);
|
|
2618
2618
|
return /* @__PURE__ */ c.jsx(Gc.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);
|
|
2622
2622
|
};
|
|
@@ -2725,7 +2725,7 @@ const xa = "loadingBlock_", Tm = ({ progress: e = 0, steps: t = !1, className: n
|
|
|
2725
2725
|
]
|
|
2726
2726
|
}
|
|
2727
2727
|
);
|
|
2728
|
-
},
|
|
2728
|
+
}, $_ = Jt(Tm);
|
|
2729
2729
|
const zt = ({ element: e = "div", className: t = "", ...n }) => /* @__PURE__ */ c.jsx(
|
|
2730
2730
|
Js,
|
|
2731
2731
|
{
|
|
@@ -2864,8 +2864,8 @@ const ro = (e) => e === "apolitical" ? {
|
|
|
2864
2864
|
let l = `${o}${(i || a) && s ? `, ${n}` : n}`;
|
|
2865
2865
|
return l.length > r && (l = o), l.length > r && (l = ir(l, r)), l;
|
|
2866
2866
|
};
|
|
2867
|
-
const Om =
|
|
2868
|
-
() => Promise.resolve().then(() =>
|
|
2867
|
+
const Om = dr(() => Promise.resolve().then(() => em)), Pm = dr(
|
|
2868
|
+
() => Promise.resolve().then(() => XE)
|
|
2869
2869
|
);
|
|
2870
2870
|
let ri = null;
|
|
2871
2871
|
const yn = ({
|
|
@@ -4002,12 +4002,12 @@ var Du = {
|
|
|
4002
4002
|
return t.tagName && t.tagName.toLowerCase() === "input" && typeof t.select == "function";
|
|
4003
4003
|
}, dp = function(t) {
|
|
4004
4004
|
return (t == null ? void 0 : t.key) === "Escape" || (t == null ? void 0 : t.key) === "Esc" || (t == null ? void 0 : t.keyCode) === 27;
|
|
4005
|
-
},
|
|
4005
|
+
}, Tr = function(t) {
|
|
4006
4006
|
return (t == null ? void 0 : t.key) === "Tab" || (t == null ? void 0 : t.keyCode) === 9;
|
|
4007
4007
|
}, fp = function(t) {
|
|
4008
|
-
return
|
|
4008
|
+
return Tr(t) && !t.shiftKey;
|
|
4009
4009
|
}, hp = function(t) {
|
|
4010
|
-
return
|
|
4010
|
+
return Tr(t) && t.shiftKey;
|
|
4011
4011
|
}, xu = function(t) {
|
|
4012
4012
|
return setTimeout(t, 0);
|
|
4013
4013
|
}, wu = function(t, n) {
|
|
@@ -4015,7 +4015,7 @@ var Du = {
|
|
|
4015
4015
|
return t.every(function(i, a) {
|
|
4016
4016
|
return n(i) ? (r = a, !1) : !0;
|
|
4017
4017
|
}), r;
|
|
4018
|
-
},
|
|
4018
|
+
}, Dr = function(t) {
|
|
4019
4019
|
for (var n = arguments.length, r = new Array(n > 1 ? n - 1 : 0), i = 1; i < n; i++)
|
|
4020
4020
|
r[i - 1] = arguments[i];
|
|
4021
4021
|
return typeof t == "function" ? t.apply(void 0, r) : t;
|
|
@@ -4197,7 +4197,7 @@ var Du = {
|
|
|
4197
4197
|
var I = D === 0 ? s.tabbableGroups.length - 1 : D - 1, X = s.tabbableGroups[I];
|
|
4198
4198
|
U = pn(C) >= 0 ? X.lastTabbableNode : X.lastDomTabbableNode;
|
|
4199
4199
|
} else
|
|
4200
|
-
|
|
4200
|
+
Tr(T) || (U = ie.nextTabbableNode(C, !1));
|
|
4201
4201
|
} else {
|
|
4202
4202
|
var F = wu(s.tabbableGroups, function(R) {
|
|
4203
4203
|
var q = R.lastTabbableNode;
|
|
@@ -4207,7 +4207,7 @@ var Du = {
|
|
|
4207
4207
|
var B = F === s.tabbableGroups.length - 1 ? 0 : F + 1, $ = s.tabbableGroups[B];
|
|
4208
4208
|
U = pn(C) >= 0 ? $.firstTabbableNode : $.firstDomTabbableNode;
|
|
4209
4209
|
} else
|
|
4210
|
-
|
|
4210
|
+
Tr(T) || (U = ie.nextTabbableNode(C));
|
|
4211
4211
|
}
|
|
4212
4212
|
} else
|
|
4213
4213
|
U = d("fallbackFocus");
|
|
@@ -4215,7 +4215,7 @@ var Du = {
|
|
|
4215
4215
|
}, v = function(A) {
|
|
4216
4216
|
var C = ai(A);
|
|
4217
4217
|
if (!(u(C, A) >= 0)) {
|
|
4218
|
-
if (
|
|
4218
|
+
if (Dr(a.clickOutsideDeactivates, A)) {
|
|
4219
4219
|
o.deactivate({
|
|
4220
4220
|
// NOTE: by setting `returnFocus: false`, deactivate() will do nothing,
|
|
4221
4221
|
// which will result in the outside click setting focus to the node
|
|
@@ -4227,7 +4227,7 @@ var Du = {
|
|
|
4227
4227
|
});
|
|
4228
4228
|
return;
|
|
4229
4229
|
}
|
|
4230
|
-
|
|
4230
|
+
Dr(a.allowOutsideClick, A) || A.preventDefault();
|
|
4231
4231
|
}
|
|
4232
4232
|
}, x = function(A) {
|
|
4233
4233
|
var C = ai(A), T = u(C, A) >= 0;
|
|
@@ -4268,16 +4268,16 @@ var Du = {
|
|
|
4268
4268
|
event: A,
|
|
4269
4269
|
isBackward: C
|
|
4270
4270
|
});
|
|
4271
|
-
T && (
|
|
4271
|
+
T && (Tr(A) && A.preventDefault(), g(T));
|
|
4272
4272
|
}, E = function(A) {
|
|
4273
|
-
if (dp(A) &&
|
|
4273
|
+
if (dp(A) && Dr(a.escapeDeactivates, A) !== !1) {
|
|
4274
4274
|
A.preventDefault(), o.deactivate();
|
|
4275
4275
|
return;
|
|
4276
4276
|
}
|
|
4277
4277
|
(a.isKeyForward(A) || a.isKeyBackward(A)) && k(A, a.isKeyBackward(A));
|
|
4278
4278
|
}, w = function(A) {
|
|
4279
4279
|
var C = ai(A);
|
|
4280
|
-
u(C, A) >= 0 ||
|
|
4280
|
+
u(C, A) >= 0 || Dr(a.clickOutsideDeactivates, A) || Dr(a.allowOutsideClick, A) || (A.preventDefault(), A.stopImmediatePropagation());
|
|
4281
4281
|
}, _ = function() {
|
|
4282
4282
|
if (s.active)
|
|
4283
4283
|
return Du.activateTrap(i, o), s.delayInitialFocusTimer = a.delayInitialFocus ? xu(function() {
|
|
@@ -4421,9 +4421,9 @@ function Cp(e, t) {
|
|
|
4421
4421
|
return t;
|
|
4422
4422
|
if (t !== void 0)
|
|
4423
4423
|
throw new TypeError("Derived constructors may only return object or undefined");
|
|
4424
|
-
return
|
|
4424
|
+
return Ar(e);
|
|
4425
4425
|
}
|
|
4426
|
-
function
|
|
4426
|
+
function Ar(e) {
|
|
4427
4427
|
if (e === void 0)
|
|
4428
4428
|
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
4429
4429
|
return e;
|
|
@@ -4469,7 +4469,7 @@ var si = re, ye = Um, Fp = vp, Ap = Fp.createFocusTrap, Bp = bp, Tp = Bp.isFocus
|
|
|
4469
4469
|
var t = wp(n);
|
|
4470
4470
|
function n(r) {
|
|
4471
4471
|
var i;
|
|
4472
|
-
yp(this, n), i = t.call(this, r), _p(
|
|
4472
|
+
yp(this, n), i = t.call(this, r), _p(Ar(i), "getNodeForOption", function(o) {
|
|
4473
4473
|
var l, u = (l = this.internalOptions[o]) !== null && l !== void 0 ? l : this.originalOptions[o];
|
|
4474
4474
|
if (typeof u == "function") {
|
|
4475
4475
|
for (var d = arguments.length, h = new Array(d > 1 ? d - 1 : 0), m = 1; m < d; m++)
|
|
@@ -4488,7 +4488,7 @@ var si = re, ye = Um, Fp = vp, Ap = Fp.createFocusTrap, Bp = bp, Tp = Bp.isFocus
|
|
|
4488
4488
|
throw new Error("`".concat(o, "` as selector refers to no known node"));
|
|
4489
4489
|
}
|
|
4490
4490
|
return p;
|
|
4491
|
-
}), i.handleDeactivate = i.handleDeactivate.bind(
|
|
4491
|
+
}), i.handleDeactivate = i.handleDeactivate.bind(Ar(i)), i.handlePostDeactivate = i.handlePostDeactivate.bind(Ar(i)), i.handleClickOutsideDeactivates = i.handleClickOutsideDeactivates.bind(Ar(i)), i.internalOptions = {
|
|
4492
4492
|
// We need to hijack the returnFocusOnDeactivate option,
|
|
4493
4493
|
// because React can move focus into the element before we arrived at
|
|
4494
4494
|
// this lifecycle hook (e.g. with autoFocus inputs). So the component
|
|
@@ -4651,7 +4651,7 @@ var si = re, ye = Um, Fp = vp, Ap = Fp.createFocusTrap, Bp = bp, Tp = Bp.isFocus
|
|
|
4651
4651
|
return null;
|
|
4652
4652
|
}
|
|
4653
4653
|
}]), n;
|
|
4654
|
-
}(si.Component),
|
|
4654
|
+
}(si.Component), xr = typeof Element > "u" ? Function : Element;
|
|
4655
4655
|
ao.propTypes = {
|
|
4656
4656
|
active: ye.bool,
|
|
4657
4657
|
paused: ye.bool,
|
|
@@ -4667,9 +4667,9 @@ ao.propTypes = {
|
|
|
4667
4667
|
onDeactivate: ye.func,
|
|
4668
4668
|
onPostDeactivate: ye.func,
|
|
4669
4669
|
checkCanReturnFocus: ye.func,
|
|
4670
|
-
initialFocus: ye.oneOfType([ye.instanceOf(
|
|
4670
|
+
initialFocus: ye.oneOfType([ye.instanceOf(xr), ye.string, ye.bool, ye.func]),
|
|
4671
4671
|
fallbackFocus: ye.oneOfType([
|
|
4672
|
-
ye.instanceOf(
|
|
4672
|
+
ye.instanceOf(xr),
|
|
4673
4673
|
ye.string,
|
|
4674
4674
|
// NOTE: does not support `false` as value (or return value from function)
|
|
4675
4675
|
ye.func
|
|
@@ -4677,7 +4677,7 @@ ao.propTypes = {
|
|
|
4677
4677
|
escapeDeactivates: ye.oneOfType([ye.bool, ye.func]),
|
|
4678
4678
|
clickOutsideDeactivates: ye.oneOfType([ye.bool, ye.func]),
|
|
4679
4679
|
returnFocusOnDeactivate: ye.bool,
|
|
4680
|
-
setReturnFocus: ye.oneOfType([ye.instanceOf(
|
|
4680
|
+
setReturnFocus: ye.oneOfType([ye.instanceOf(xr), ye.string, ye.bool, ye.func]),
|
|
4681
4681
|
allowOutsideClick: ye.oneOfType([ye.bool, ye.func]),
|
|
4682
4682
|
preventScroll: ye.bool,
|
|
4683
4683
|
tabbableOptions: ye.shape({
|
|
@@ -4688,12 +4688,12 @@ ao.propTypes = {
|
|
|
4688
4688
|
isKeyForward: ye.func,
|
|
4689
4689
|
isKeyBackward: ye.func
|
|
4690
4690
|
}),
|
|
4691
|
-
containerElements: ye.arrayOf(ye.instanceOf(
|
|
4691
|
+
containerElements: ye.arrayOf(ye.instanceOf(xr)),
|
|
4692
4692
|
// DOM element ONLY
|
|
4693
4693
|
children: ye.oneOfType([
|
|
4694
4694
|
ye.element,
|
|
4695
4695
|
// React element
|
|
4696
|
-
ye.instanceOf(
|
|
4696
|
+
ye.instanceOf(xr)
|
|
4697
4697
|
// DOM element
|
|
4698
4698
|
])
|
|
4699
4699
|
// NOTE: _createFocusTrap is internal, for testing purposes only, so we don't
|
|
@@ -4807,7 +4807,7 @@ const xn = ({
|
|
|
4807
4807
|
"aria-expanded": t,
|
|
4808
4808
|
"aria-controls": e
|
|
4809
4809
|
});
|
|
4810
|
-
const
|
|
4810
|
+
const wr = "joinCommunityButton", hd = ({
|
|
4811
4811
|
isMember: e = !1,
|
|
4812
4812
|
isOpen: t = !1,
|
|
4813
4813
|
isShort: n = !1,
|
|
@@ -4821,14 +4821,14 @@ const xr = "joinCommunityButton", hd = ({
|
|
|
4821
4821
|
m === "joining" ? p("joined") : m === "leaving" && p("notJoined");
|
|
4822
4822
|
}, [d]);
|
|
4823
4823
|
const g = {}, f = {};
|
|
4824
|
-
return d && m !== "leaving" && (g["data-hover-text"] = s.formatMessage({ id: `${
|
|
4824
|
+
return d && m !== "leaving" && (g["data-hover-text"] = s.formatMessage({ id: `${wr}_leave` }), g["aria-label"] = s.formatMessage({ id: `${wr}_member_aria` }), f["aria-hidden"] = "true"), /* @__PURE__ */ c.jsx(
|
|
4825
4825
|
Te,
|
|
4826
4826
|
{
|
|
4827
4827
|
variant: d ? "secondary" : "primary",
|
|
4828
4828
|
size: "medium",
|
|
4829
4829
|
styling: { fullWidth: !0 },
|
|
4830
4830
|
icon: d && m !== "leaving" ? { icon: "tick", position: "left" } : !1,
|
|
4831
|
-
tooltip: !t && !d ? s.formatMessage({ id: `${
|
|
4831
|
+
tooltip: !t && !d ? s.formatMessage({ id: `${wr}_closed_tooltip` }) : "",
|
|
4832
4832
|
onClick: async (b) => {
|
|
4833
4833
|
if (u)
|
|
4834
4834
|
return;
|
|
@@ -4836,7 +4836,7 @@ const xr = "joinCommunityButton", hd = ({
|
|
|
4836
4836
|
const v = new CustomEvent("ariaLive", {
|
|
4837
4837
|
detail: {
|
|
4838
4838
|
message: s.formatMessage(
|
|
4839
|
-
{ id: `${
|
|
4839
|
+
{ id: `${wr}_aria_live` },
|
|
4840
4840
|
{ action: d ? "leaving" : "joining" }
|
|
4841
4841
|
)
|
|
4842
4842
|
}
|
|
@@ -4854,12 +4854,12 @@ const xr = "joinCommunityButton", hd = ({
|
|
|
4854
4854
|
"data-testid": "join-button",
|
|
4855
4855
|
...g,
|
|
4856
4856
|
children: /* @__PURE__ */ c.jsx("span", { className: "text", ...f, children: s.formatMessage({
|
|
4857
|
-
id: `${
|
|
4857
|
+
id: `${wr}${["joining", "leaving"].includes(m) ? `_${m}` : d ? "_member" : n ? "_short" : ""}`
|
|
4858
4858
|
}) })
|
|
4859
4859
|
}
|
|
4860
4860
|
);
|
|
4861
4861
|
};
|
|
4862
|
-
const Aa = "communityDetails_",
|
|
4862
|
+
const Aa = "communityDetails_", L_ = ({
|
|
4863
4863
|
className: e = "",
|
|
4864
4864
|
isMember: t = !1,
|
|
4865
4865
|
isOpen: n = !1,
|
|
@@ -4916,7 +4916,7 @@ const Aa = "communityDetails_", R_ = ({
|
|
|
4916
4916
|
] }) : /* @__PURE__ */ c.jsx(c.Fragment, {})
|
|
4917
4917
|
] });
|
|
4918
4918
|
};
|
|
4919
|
-
const
|
|
4919
|
+
const z_ = ({ breadcrumbs: e, cutoff: t = 20, className: n = "" }) => {
|
|
4920
4920
|
const r = le();
|
|
4921
4921
|
return /* @__PURE__ */ c.jsxs(c.Fragment, { children: [
|
|
4922
4922
|
/* @__PURE__ */ c.jsx(
|
|
@@ -4943,7 +4943,7 @@ const I_ = ({ breadcrumbs: e, cutoff: t = 20, className: n = "" }) => {
|
|
|
4943
4943
|
) })
|
|
4944
4944
|
] });
|
|
4945
4945
|
};
|
|
4946
|
-
const
|
|
4946
|
+
const q_ = ({
|
|
4947
4947
|
variant: e = "default",
|
|
4948
4948
|
data: { image: t, url: n, title: r, description: i },
|
|
4949
4949
|
gtm: a
|
|
@@ -4980,7 +4980,7 @@ const $_ = ({
|
|
|
4980
4980
|
}
|
|
4981
4981
|
);
|
|
4982
4982
|
};
|
|
4983
|
-
const
|
|
4983
|
+
const W_ = ({
|
|
4984
4984
|
options: e,
|
|
4985
4985
|
allOption: t = !1,
|
|
4986
4986
|
allowMultiple: n = !0,
|
|
@@ -5028,7 +5028,7 @@ const L_ = ({
|
|
|
5028
5028
|
urlForRouter: `/${i.split("/").slice(2).join("/")}`
|
|
5029
5029
|
} : i;
|
|
5030
5030
|
};
|
|
5031
|
-
const oi = "languageSwitcher_",
|
|
5031
|
+
const oi = "languageSwitcher_", U_ = ({
|
|
5032
5032
|
currentLanguage: e,
|
|
5033
5033
|
isOriginalLanguage: t = !1,
|
|
5034
5034
|
isHumanTranslation: n = !1,
|
|
@@ -5088,7 +5088,7 @@ const oi = "languageSwitcher_", z_ = ({
|
|
|
5088
5088
|
children: u.formatMessage(
|
|
5089
5089
|
{ id: `${oi}disclaimer` },
|
|
5090
5090
|
{
|
|
5091
|
-
email:
|
|
5091
|
+
email: Fr.support,
|
|
5092
5092
|
link: (b) => {
|
|
5093
5093
|
const v = `mailto:${b}`;
|
|
5094
5094
|
return /* @__PURE__ */ c.jsx("a", { href: v, children: b });
|
|
@@ -5098,7 +5098,7 @@ const oi = "languageSwitcher_", z_ = ({
|
|
|
5098
5098
|
})
|
|
5099
5099
|
] });
|
|
5100
5100
|
};
|
|
5101
|
-
const Ba = vh({ locale: "en", messages:
|
|
5101
|
+
const Ba = vh({ locale: "en", messages: pr }), aa = ({
|
|
5102
5102
|
hasNextPage: e = !0,
|
|
5103
5103
|
loadNextPage: t = () => {
|
|
5104
5104
|
},
|
|
@@ -5215,7 +5215,7 @@ const Np = ({
|
|
|
5215
5215
|
] })
|
|
5216
5216
|
});
|
|
5217
5217
|
}, Mp = (e, t = !1) => t ? e.replaceAll("/", "") === t : typeof window < "u" && window.location && window.location.pathname === e;
|
|
5218
|
-
const Rp =
|
|
5218
|
+
const Rp = dr(() => Promise.resolve().then(() => Nm)), Ip = [
|
|
5219
5219
|
{
|
|
5220
5220
|
key: "homepage",
|
|
5221
5221
|
href: "/home/"
|
|
@@ -5268,7 +5268,7 @@ const Rp = Kr(() => Promise.resolve().then(() => Nm)), Ip = [
|
|
|
5268
5268
|
}
|
|
5269
5269
|
)
|
|
5270
5270
|
] });
|
|
5271
|
-
},
|
|
5271
|
+
}, Cr = (e, t, n) => `${e}?share=${t}${n ? `&uuid=${n}` : ""}`, Lp = ({
|
|
5272
5272
|
title: e,
|
|
5273
5273
|
link: t,
|
|
5274
5274
|
referrer: n
|
|
@@ -5277,21 +5277,21 @@ const Rp = Kr(() => Promise.resolve().then(() => Nm)), Ip = [
|
|
|
5277
5277
|
key: "linkedin",
|
|
5278
5278
|
icon: "social_linkedin",
|
|
5279
5279
|
url: `https://www.linkedin.com/shareArticle?mini=true&url=${encodeURIComponent(
|
|
5280
|
-
`${
|
|
5280
|
+
`${Cr(t, "linkedin", n)}&src=linkedin`
|
|
5281
5281
|
)}&title=${encodeURIComponent(e)}&source=Apolitical`
|
|
5282
5282
|
},
|
|
5283
5283
|
{
|
|
5284
5284
|
key: "twitter",
|
|
5285
5285
|
icon: "social_twitter",
|
|
5286
5286
|
url: `https://twitter.com/share?ref_src=twsrc%5Etfw&url=${encodeURIComponent(
|
|
5287
|
-
`${
|
|
5287
|
+
`${Cr(t, "twitter", n)}&src=twitter`
|
|
5288
5288
|
)}&text=${encodeURIComponent(e)}&via=${encodeURIComponent("apoliticalco")}`
|
|
5289
5289
|
},
|
|
5290
5290
|
{
|
|
5291
5291
|
key: "facebook",
|
|
5292
5292
|
icon: "social_facebook",
|
|
5293
5293
|
url: `https://www.facebook.com/sharer/sharer.php?u=${encodeURIComponent(
|
|
5294
|
-
`${
|
|
5294
|
+
`${Cr(t, "facebook", n)}`
|
|
5295
5295
|
)}&t=${e}`
|
|
5296
5296
|
},
|
|
5297
5297
|
{
|
|
@@ -5300,18 +5300,18 @@ const Rp = Kr(() => Promise.resolve().then(() => Nm)), Ip = [
|
|
|
5300
5300
|
url: `mailto:?subject=${encodeURIComponent(e)}&body=${encodeURIComponent(
|
|
5301
5301
|
`${e}
|
|
5302
5302
|
|
|
5303
|
-
${
|
|
5303
|
+
${Cr(t, "mailto", n)}&src=email`
|
|
5304
5304
|
)}`
|
|
5305
5305
|
},
|
|
5306
5306
|
{
|
|
5307
5307
|
key: "clipboard-copy",
|
|
5308
5308
|
icon: "share_copy-link",
|
|
5309
|
-
url:
|
|
5309
|
+
url: Cr(t, "copy", n),
|
|
5310
5310
|
shouldRender: () => navigator && navigator.clipboard && navigator.clipboard.writeText,
|
|
5311
5311
|
onClick: (r, i) => (r.preventDefault(), r.stopPropagation(), navigator.clipboard.writeText(i))
|
|
5312
5312
|
}
|
|
5313
5313
|
];
|
|
5314
|
-
const zp = "shareLinks_",
|
|
5314
|
+
const zp = "shareLinks_", H_ = ({
|
|
5315
5315
|
title: e,
|
|
5316
5316
|
link: t,
|
|
5317
5317
|
referrer: n,
|
|
@@ -5347,9 +5347,9 @@ const zp = "shareLinks_", q_ = ({
|
|
|
5347
5347
|
}) })
|
|
5348
5348
|
] });
|
|
5349
5349
|
};
|
|
5350
|
-
const
|
|
5350
|
+
const V_ = ({ tabs: e, className: t = "", preventLocationChange: n }) => {
|
|
5351
5351
|
var g;
|
|
5352
|
-
const r = (f, b, v) => (f || (f = `panel-${window.btoa(b)}-${v}`), f), i =
|
|
5352
|
+
const r = (f, b, v) => (f || (f = `panel-${window.btoa(b)}-${v}`), f), i = hr(!0) || 0;
|
|
5353
5353
|
let a = e.findIndex((f) => f.current === !0);
|
|
5354
5354
|
if (a < 0 && (a = 0), window.location.hash) {
|
|
5355
5355
|
const f = window.location.hash.replace("#", "");
|
|
@@ -5446,7 +5446,7 @@ const qp = {
|
|
|
5446
5446
|
className: r = "",
|
|
5447
5447
|
children: i
|
|
5448
5448
|
}) => {
|
|
5449
|
-
const a =
|
|
5449
|
+
const a = hr(!0);
|
|
5450
5450
|
let s = i;
|
|
5451
5451
|
return re.Children.count(i) === 1 && (s = re.Children.toArray(i)[0], s.props && (s = s.props.children)), /* @__PURE__ */ c.jsx(
|
|
5452
5452
|
"section",
|
|
@@ -6385,7 +6385,7 @@ const wn = ({
|
|
|
6385
6385
|
const $ = B.id || B.name;
|
|
6386
6386
|
$ && (M[$] = B.value || "");
|
|
6387
6387
|
});
|
|
6388
|
-
const [A, C] =
|
|
6388
|
+
const [A, C] = fr(Xp, {
|
|
6389
6389
|
isSubmitting: !1,
|
|
6390
6390
|
formSubmitted: !1,
|
|
6391
6391
|
errors: {},
|
|
@@ -6599,7 +6599,7 @@ const ci = "passwordRules_", vd = "isMoreThanEightCharacters", bd = "includesNum
|
|
|
6599
6599
|
) })
|
|
6600
6600
|
] });
|
|
6601
6601
|
}, ng = Jt(tg);
|
|
6602
|
-
const
|
|
6602
|
+
const K_ = ({
|
|
6603
6603
|
text: e = {},
|
|
6604
6604
|
topRating: t = 5,
|
|
6605
6605
|
functions: {
|
|
@@ -7194,9 +7194,9 @@ var Cg = Array.prototype.reduce, Eg = [
|
|
|
7194
7194
|
[/_/g, "\\_"],
|
|
7195
7195
|
[/^(\d+)\. /g, "$1\\. "]
|
|
7196
7196
|
];
|
|
7197
|
-
function
|
|
7198
|
-
if (!(this instanceof
|
|
7199
|
-
return new
|
|
7197
|
+
function Lr(e) {
|
|
7198
|
+
if (!(this instanceof Lr))
|
|
7199
|
+
return new Lr(e);
|
|
7200
7200
|
var t = {
|
|
7201
7201
|
rules: dt,
|
|
7202
7202
|
headingStyle: "setext",
|
|
@@ -7232,7 +7232,7 @@ function $r(e) {
|
|
|
7232
7232
|
};
|
|
7233
7233
|
this.options = rg({}, t, e), this.rules = new Ed(this.options);
|
|
7234
7234
|
}
|
|
7235
|
-
|
|
7235
|
+
Lr.prototype = {
|
|
7236
7236
|
/**
|
|
7237
7237
|
* The entry point for converting a string or DOM node to Markdown
|
|
7238
7238
|
* @public
|
|
@@ -7482,9 +7482,9 @@ function Mn(e) {
|
|
|
7482
7482
|
const t = jg[e];
|
|
7483
7483
|
return t || wt(0, e), t;
|
|
7484
7484
|
}
|
|
7485
|
-
var
|
|
7485
|
+
var zr;
|
|
7486
7486
|
function Td() {
|
|
7487
|
-
return
|
|
7487
|
+
return zr;
|
|
7488
7488
|
}
|
|
7489
7489
|
function Og(e, t) {
|
|
7490
7490
|
return {
|
|
@@ -7504,10 +7504,10 @@ function Bs(e) {
|
|
|
7504
7504
|
Ts(e), e.drafts_.forEach(Pg), e.drafts_ = null;
|
|
7505
7505
|
}
|
|
7506
7506
|
function Ts(e) {
|
|
7507
|
-
e ===
|
|
7507
|
+
e === zr && (zr = e.parent_);
|
|
7508
7508
|
}
|
|
7509
7509
|
function Bu(e) {
|
|
7510
|
-
return
|
|
7510
|
+
return zr = Og(zr, e);
|
|
7511
7511
|
}
|
|
7512
7512
|
function Pg(e) {
|
|
7513
7513
|
const t = e[Bt];
|
|
@@ -7596,7 +7596,7 @@ function Ng(e, t) {
|
|
|
7596
7596
|
isManual_: !1
|
|
7597
7597
|
};
|
|
7598
7598
|
let i = r, a = fo;
|
|
7599
|
-
n && (i = [r], a =
|
|
7599
|
+
n && (i = [r], a = qr);
|
|
7600
7600
|
const { revoke: s, proxy: o } = Proxy.revocable(i, a);
|
|
7601
7601
|
return r.draft_ = o, r.revoke_ = s, o;
|
|
7602
7602
|
}
|
|
@@ -7655,16 +7655,16 @@ var fo = {
|
|
|
7655
7655
|
setPrototypeOf() {
|
|
7656
7656
|
wt(12);
|
|
7657
7657
|
}
|
|
7658
|
-
},
|
|
7658
|
+
}, qr = {};
|
|
7659
7659
|
Wi(fo, (e, t) => {
|
|
7660
|
-
|
|
7660
|
+
qr[e] = function() {
|
|
7661
7661
|
return arguments[0] = arguments[0][0], t.apply(this, arguments);
|
|
7662
7662
|
};
|
|
7663
7663
|
});
|
|
7664
|
-
|
|
7665
|
-
return process.env.NODE_ENV !== "production" && isNaN(parseInt(t)) && wt(13),
|
|
7664
|
+
qr.deleteProperty = function(e, t) {
|
|
7665
|
+
return process.env.NODE_ENV !== "production" && isNaN(parseInt(t)) && wt(13), qr.set.call(this, e, t, void 0);
|
|
7666
7666
|
};
|
|
7667
|
-
|
|
7667
|
+
qr.set = function(e, t, n) {
|
|
7668
7668
|
return process.env.NODE_ENV !== "production" && t !== "length" && isNaN(parseInt(t)) && wt(14), fo.set.call(this, e[0], t, n, e[0]);
|
|
7669
7669
|
};
|
|
7670
7670
|
function Pa(e, t) {
|
|
@@ -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(),
|
|
7854
|
+
}, Vi = /* @__PURE__ */ new WeakMap(), Ki = /* @__PURE__ */ new WeakMap(), Sr = /* @__PURE__ */ new WeakMap(), Od = /* @__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
|
|
@@ -8033,21 +8033,21 @@ var ju = Tt.createDraft.bind(Tt), Ou = Tt.finishDraft.bind(Tt), $g = {
|
|
|
8033
8033
|
return r;
|
|
8034
8034
|
}
|
|
8035
8035
|
};
|
|
8036
|
-
function
|
|
8036
|
+
function Wr(e) {
|
|
8037
8037
|
"@babel/helpers - typeof";
|
|
8038
|
-
return
|
|
8038
|
+
return Wr = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(t) {
|
|
8039
8039
|
return typeof t;
|
|
8040
8040
|
} : function(t) {
|
|
8041
8041
|
return t && typeof Symbol == "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t;
|
|
8042
|
-
},
|
|
8042
|
+
}, Wr(e);
|
|
8043
8043
|
}
|
|
8044
8044
|
function qg(e, t) {
|
|
8045
|
-
if (
|
|
8045
|
+
if (Wr(e) !== "object" || e === null)
|
|
8046
8046
|
return e;
|
|
8047
8047
|
var n = e[Symbol.toPrimitive];
|
|
8048
8048
|
if (n !== void 0) {
|
|
8049
8049
|
var r = n.call(e, t || "default");
|
|
8050
|
-
if (
|
|
8050
|
+
if (Wr(r) !== "object")
|
|
8051
8051
|
return r;
|
|
8052
8052
|
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
8053
8053
|
}
|
|
@@ -8055,7 +8055,7 @@ function qg(e, t) {
|
|
|
8055
8055
|
}
|
|
8056
8056
|
function Wg(e) {
|
|
8057
8057
|
var t = qg(e, "string");
|
|
8058
|
-
return
|
|
8058
|
+
return Wr(t) === "symbol" ? t : String(t);
|
|
8059
8059
|
}
|
|
8060
8060
|
function bt(e, t, n) {
|
|
8061
8061
|
return t = Wg(t), t in e ? Object.defineProperty(e, t, {
|
|
@@ -8075,7 +8075,7 @@ function Ru(e, t) {
|
|
|
8075
8075
|
}
|
|
8076
8076
|
return n;
|
|
8077
8077
|
}
|
|
8078
|
-
function
|
|
8078
|
+
function Er(e) {
|
|
8079
8079
|
for (var t = 1; t < arguments.length; t++) {
|
|
8080
8080
|
var n = arguments[t] != null ? arguments[t] : {};
|
|
8081
8081
|
t % 2 ? Ru(Object(n), !0).forEach(function(r) {
|
|
@@ -8211,7 +8211,7 @@ var Ug = (e, t, n) => {
|
|
|
8211
8211
|
if (t == null) {
|
|
8212
8212
|
if (!K.isRange(Z))
|
|
8213
8213
|
throw new Error('Cannot apply an incomplete "set_selection" operation properties '.concat(at.stringify(Z), " when there is no current selection."));
|
|
8214
|
-
t =
|
|
8214
|
+
t = Er({}, Z);
|
|
8215
8215
|
}
|
|
8216
8216
|
for (var se in Z) {
|
|
8217
8217
|
var pe = Z[se];
|
|
@@ -8236,18 +8236,18 @@ var Ug = (e, t, n) => {
|
|
|
8236
8236
|
var _e = oe.get(e, be), it = oe.parent(e, be), St = be[be.length - 1], yt;
|
|
8237
8237
|
if (me.isText(_e)) {
|
|
8238
8238
|
var tt = _e.text.slice(0, ke), kt = _e.text.slice(ke);
|
|
8239
|
-
_e.text = tt, yt =
|
|
8239
|
+
_e.text = tt, yt = Er(Er({}, De), {}, {
|
|
8240
8240
|
text: kt
|
|
8241
8241
|
});
|
|
8242
8242
|
} else {
|
|
8243
8243
|
var Ft = _e.children.slice(0, ke), pa = _e.children.slice(ke);
|
|
8244
|
-
_e.children = Ft, yt =
|
|
8244
|
+
_e.children = Ft, yt = Er(Er({}, De), {}, {
|
|
8245
8245
|
children: pa
|
|
8246
8246
|
});
|
|
8247
8247
|
}
|
|
8248
8248
|
if (it.children.splice(St + 1, 0, yt), t)
|
|
8249
|
-
for (var [
|
|
8250
|
-
t[Xr] = Be.transform(
|
|
8249
|
+
for (var [vr, Xr] of K.points(t))
|
|
8250
|
+
t[Xr] = Be.transform(vr, n);
|
|
8251
8251
|
break;
|
|
8252
8252
|
}
|
|
8253
8253
|
}
|
|
@@ -9206,7 +9206,7 @@ var me = {
|
|
|
9206
9206
|
}
|
|
9207
9207
|
return n;
|
|
9208
9208
|
}
|
|
9209
|
-
}, mo = (e) => e.selection ? e.selection : e.children.length > 0 ? y.end(e, []) : [0],
|
|
9209
|
+
}, mo = (e) => e.selection ? e.selection : e.children.length > 0 ? y.end(e, []) : [0], gr = (e, t) => {
|
|
9210
9210
|
var [n] = y.node(e, t);
|
|
9211
9211
|
return (r) => r === n;
|
|
9212
9212
|
}, po = function(t) {
|
|
@@ -9415,8 +9415,8 @@ var Bv = (e, t) => {
|
|
|
9415
9415
|
}
|
|
9416
9416
|
Q.transform(e, t), e.operations.push(t), y.normalize(e, {
|
|
9417
9417
|
operation: t
|
|
9418
|
-
}), t.type === "set_selection" && (e.marks = null),
|
|
9419
|
-
|
|
9418
|
+
}), t.type === "set_selection" && (e.marks = null), Sr.get(e) || (Sr.set(e, !0), Promise.resolve().then(() => {
|
|
9419
|
+
Sr.set(e, !1), e.onChange({
|
|
9420
9420
|
operation: t
|
|
9421
9421
|
}), e.operations = [];
|
|
9422
9422
|
}));
|
|
@@ -9626,7 +9626,7 @@ var Nv = (e, t, n) => {
|
|
|
9626
9626
|
var d = Gu(Gu({}, y.marks(e) || {}), {}, {
|
|
9627
9627
|
[t]: n
|
|
9628
9628
|
});
|
|
9629
|
-
e.marks = d,
|
|
9629
|
+
e.marks = d, Sr.get(e) || e.onChange();
|
|
9630
9630
|
}
|
|
9631
9631
|
}
|
|
9632
9632
|
};
|
|
@@ -10324,7 +10324,7 @@ var S0 = (e, t) => {
|
|
|
10324
10324
|
});
|
|
10325
10325
|
else {
|
|
10326
10326
|
var u = T0({}, y.marks(e) || {});
|
|
10327
|
-
delete u[t], e.marks = u,
|
|
10327
|
+
delete u[t], e.marks = u, Sr.get(e) || e.onChange();
|
|
10328
10328
|
}
|
|
10329
10329
|
}
|
|
10330
10330
|
}, j0 = (e, t) => {
|
|
@@ -10858,7 +10858,7 @@ var W0 = function(t, n) {
|
|
|
10858
10858
|
} = n, {
|
|
10859
10859
|
match: s
|
|
10860
10860
|
} = n;
|
|
10861
|
-
if (s == null && (s = N.isPath(r) ?
|
|
10861
|
+
if (s == null && (s = N.isPath(r) ? gr(t, r) : (E) => he.isElement(E) && y.isBlock(t, E)), !!r) {
|
|
10862
10862
|
var o = y.nodes(t, {
|
|
10863
10863
|
at: r,
|
|
10864
10864
|
match: s,
|
|
@@ -11010,7 +11010,7 @@ var W0 = function(t, n) {
|
|
|
11010
11010
|
match: s
|
|
11011
11011
|
} = t;
|
|
11012
11012
|
if (r) {
|
|
11013
|
-
s == null && (s = N.isPath(r) ?
|
|
11013
|
+
s == null && (s = N.isPath(r) ? gr(e, r) : (p) => he.isElement(p) && y.isBlock(e, p));
|
|
11014
11014
|
var o = y.pathRef(e, n), l = y.nodes(e, {
|
|
11015
11015
|
at: r,
|
|
11016
11016
|
match: s,
|
|
@@ -11043,7 +11043,7 @@ var W0 = function(t, n) {
|
|
|
11043
11043
|
match: o
|
|
11044
11044
|
} = n;
|
|
11045
11045
|
if (s) {
|
|
11046
|
-
o == null && (o = N.isPath(s) ?
|
|
11046
|
+
o == null && (o = N.isPath(s) ? gr(t, s) : (p) => he.isElement(p) && y.isBlock(t, p)), !r && K.isRange(s) && (s = y.unhangRange(t, s, {
|
|
11047
11047
|
voids: i
|
|
11048
11048
|
}));
|
|
11049
11049
|
var l = y.nodes(t, {
|
|
@@ -11083,7 +11083,7 @@ var W0 = function(t, n) {
|
|
|
11083
11083
|
voids: h = !1
|
|
11084
11084
|
} = r;
|
|
11085
11085
|
if (a) {
|
|
11086
|
-
if (i == null && (i = N.isPath(a) ?
|
|
11086
|
+
if (i == null && (i = N.isPath(a) ? gr(t, a) : (z) => he.isElement(z) && y.isBlock(t, z)), !l && K.isRange(a) && (a = y.unhangRange(t, a, {
|
|
11087
11087
|
voids: h
|
|
11088
11088
|
})), d && K.isRange(a)) {
|
|
11089
11089
|
if (K.isCollapsed(a) && y.leaf(t, a.anchor)[0].text.length > 0)
|
|
@@ -11239,7 +11239,7 @@ var W0 = function(t, n) {
|
|
|
11239
11239
|
match: o
|
|
11240
11240
|
} = n;
|
|
11241
11241
|
if (s) {
|
|
11242
|
-
o == null && (o = N.isPath(s) ?
|
|
11242
|
+
o == null && (o = N.isPath(s) ? gr(t, s) : (p) => he.isElement(p) && y.isBlock(t, p)), N.isPath(s) && (s = y.range(t, s));
|
|
11243
11243
|
var l = K.isRange(s) ? y.rangeRef(t, s) : null, u = y.nodes(t, {
|
|
11244
11244
|
at: s,
|
|
11245
11245
|
match: o,
|
|
@@ -11301,7 +11301,7 @@ var rb = function(t, n) {
|
|
|
11301
11301
|
at: l = t.selection
|
|
11302
11302
|
} = r;
|
|
11303
11303
|
if (l) {
|
|
11304
|
-
if (o == null && (N.isPath(l) ? o =
|
|
11304
|
+
if (o == null && (N.isPath(l) ? o = gr(t, l) : t.isInline(n) ? o = (b) => he.isElement(b) && y.isInline(t, b) || me.isText(b) : o = (b) => he.isElement(b) && y.isBlock(t, b)), a && K.isRange(l)) {
|
|
11305
11305
|
var [u, d] = K.edges(l), h = y.rangeRef(t, l, {
|
|
11306
11306
|
affinity: "inward"
|
|
11307
11307
|
});
|
|
@@ -11889,16 +11889,16 @@ 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 = Ld, Tb = Bb.Symbol, zd = Tb, dl = zd, qd = Object.prototype, Sb = qd.hasOwnProperty, jb = qd.toString,
|
|
11892
|
+
var Ab = Fb, Bb = Ld, Tb = Bb.Symbol, zd = Tb, dl = zd, qd = Object.prototype, Sb = qd.hasOwnProperty, jb = qd.toString, _r = dl ? dl.toStringTag : void 0;
|
|
11893
11893
|
function Ob(e) {
|
|
11894
|
-
var t = Sb.call(e,
|
|
11894
|
+
var t = Sb.call(e, _r), n = e[_r];
|
|
11895
11895
|
try {
|
|
11896
|
-
e[
|
|
11896
|
+
e[_r] = void 0;
|
|
11897
11897
|
var r = !0;
|
|
11898
11898
|
} catch {
|
|
11899
11899
|
}
|
|
11900
11900
|
var i = jb.call(e);
|
|
11901
|
-
return r && (t ? e[
|
|
11901
|
+
return r && (t ? e[_r] = n : delete e[_r]), i;
|
|
11902
11902
|
}
|
|
11903
11903
|
var Pb = Ob, Nb = Object.prototype, Mb = Nb.toString;
|
|
11904
11904
|
function Rb(e) {
|
|
@@ -12090,10 +12090,10 @@ var Tn = [], xy = function() {
|
|
|
12090
12090
|
typeof ErrorEvent == "function" ? e = new ErrorEvent("error", {
|
|
12091
12091
|
message: Dl
|
|
12092
12092
|
}) : (e = document.createEvent("Event"), e.initEvent("error", !1, !1), e.message = Dl), window.dispatchEvent(e);
|
|
12093
|
-
},
|
|
12093
|
+
}, Ur;
|
|
12094
12094
|
(function(e) {
|
|
12095
12095
|
e.BORDER_BOX = "border-box", e.CONTENT_BOX = "content-box", e.DEVICE_PIXEL_CONTENT_BOX = "device-pixel-content-box";
|
|
12096
|
-
})(
|
|
12096
|
+
})(Ur || (Ur = {}));
|
|
12097
12097
|
var Sn = function(e) {
|
|
12098
12098
|
return Object.freeze(e);
|
|
12099
12099
|
}, Ey = function() {
|
|
@@ -12141,7 +12141,7 @@ var Sn = function(e) {
|
|
|
12141
12141
|
return !0;
|
|
12142
12142
|
}
|
|
12143
12143
|
return !1;
|
|
12144
|
-
},
|
|
12144
|
+
}, jr = typeof window < "u" ? window : {}, hi = /* @__PURE__ */ new WeakMap(), wl = /auto|scroll/, ky = /^tb|vertical/, Fy = /msie|trident/i.test(jr.navigator && jr.navigator.userAgent), Wt = function(e) {
|
|
12145
12145
|
return parseFloat(e || "0");
|
|
12146
12146
|
}, nr = function(e, t, n) {
|
|
12147
12147
|
return e === void 0 && (e = 0), t === void 0 && (t = 0), n === void 0 && (n = !1), new Ey((n ? t : e) || 0, (n ? e : t) || 0);
|
|
@@ -12165,9 +12165,9 @@ var Sn = function(e) {
|
|
|
12165
12165
|
}, Kd = function(e, t, n) {
|
|
12166
12166
|
var r = Vd(e, n), i = r.borderBoxSize, a = r.contentBoxSize, s = r.devicePixelContentBoxSize;
|
|
12167
12167
|
switch (t) {
|
|
12168
|
-
case
|
|
12168
|
+
case Ur.DEVICE_PIXEL_CONTENT_BOX:
|
|
12169
12169
|
return s;
|
|
12170
|
-
case
|
|
12170
|
+
case Ur.BORDER_BOX:
|
|
12171
12171
|
return i;
|
|
12172
12172
|
default:
|
|
12173
12173
|
return a;
|
|
@@ -12279,16 +12279,16 @@ var Sn = function(e) {
|
|
|
12279
12279
|
var t = this, n = function() {
|
|
12280
12280
|
return t.observer && t.observer.observe(document.body, My);
|
|
12281
12281
|
};
|
|
12282
|
-
document.body ? n() :
|
|
12282
|
+
document.body ? n() : jr.addEventListener("DOMContentLoaded", n);
|
|
12283
12283
|
}, e.prototype.start = function() {
|
|
12284
12284
|
var t = this;
|
|
12285
12285
|
this.stopped && (this.stopped = !1, this.observer = new MutationObserver(this.listener), this.observe(), _l.forEach(function(n) {
|
|
12286
|
-
return
|
|
12286
|
+
return jr.addEventListener(n, t.listener, !0);
|
|
12287
12287
|
}));
|
|
12288
12288
|
}, e.prototype.stop = function() {
|
|
12289
12289
|
var t = this;
|
|
12290
12290
|
this.stopped || (this.observer && this.observer.disconnect(), _l.forEach(function(n) {
|
|
12291
|
-
return
|
|
12291
|
+
return jr.removeEventListener(n, t.listener, !0);
|
|
12292
12292
|
}), this.stopped = !0);
|
|
12293
12293
|
}, e;
|
|
12294
12294
|
}(), Os = new Ry(), Fl = function(e) {
|
|
@@ -12297,7 +12297,7 @@ var Sn = function(e) {
|
|
|
12297
12297
|
return !bo(e) && !_y(e) && getComputedStyle(e).display === "inline";
|
|
12298
12298
|
}, $y = function() {
|
|
12299
12299
|
function e(t, n) {
|
|
12300
|
-
this.target = t, this.observedBox = n ||
|
|
12300
|
+
this.target = t, this.observedBox = n || Ur.CONTENT_BOX, this.lastReportedSize = {
|
|
12301
12301
|
inlineSize: 0,
|
|
12302
12302
|
blockSize: 0
|
|
12303
12303
|
};
|
|
@@ -12515,21 +12515,21 @@ function ur(e, t) {
|
|
|
12515
12515
|
}
|
|
12516
12516
|
return n;
|
|
12517
12517
|
}
|
|
12518
|
-
function
|
|
12518
|
+
function Hr(e) {
|
|
12519
12519
|
"@babel/helpers - typeof";
|
|
12520
|
-
return
|
|
12520
|
+
return Hr = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(t) {
|
|
12521
12521
|
return typeof t;
|
|
12522
12522
|
} : function(t) {
|
|
12523
12523
|
return t && typeof Symbol == "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t;
|
|
12524
|
-
},
|
|
12524
|
+
}, Hr(e);
|
|
12525
12525
|
}
|
|
12526
12526
|
function Ky(e, t) {
|
|
12527
|
-
if (
|
|
12527
|
+
if (Hr(e) !== "object" || e === null)
|
|
12528
12528
|
return e;
|
|
12529
12529
|
var n = e[Symbol.toPrimitive];
|
|
12530
12530
|
if (n !== void 0) {
|
|
12531
12531
|
var r = n.call(e, t || "default");
|
|
12532
|
-
if (
|
|
12532
|
+
if (Hr(r) !== "object")
|
|
12533
12533
|
return r;
|
|
12534
12534
|
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
12535
12535
|
}
|
|
@@ -12537,7 +12537,7 @@ function Ky(e, t) {
|
|
|
12537
12537
|
}
|
|
12538
12538
|
function Zy(e) {
|
|
12539
12539
|
var t = Ky(e, "string");
|
|
12540
|
-
return
|
|
12540
|
+
return Hr(t) === "symbol" ? t : String(t);
|
|
12541
12541
|
}
|
|
12542
12542
|
function Mt(e, t, n) {
|
|
12543
12543
|
return t = Zy(t), t in e ? Object.defineProperty(e, t, {
|
|
@@ -12552,9 +12552,9 @@ 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
|
-
}, ef = 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),
|
|
12555
|
+
}, ef = 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), tf = 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(), nf = /* @__PURE__ */ new WeakMap(), Ti = /* @__PURE__ */ new WeakMap(), Ps = /* @__PURE__ */ new WeakMap(),
|
|
12557
|
+
typeof globalThis.InputEvent.prototype.getTargetRanges == "function", wo = /* @__PURE__ */ new WeakMap(), Co = /* @__PURE__ */ new WeakMap(), nf = /* @__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(), rf = /* @__PURE__ */ new WeakMap(), lr = Symbol("placeholder"), af = 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) => {
|
|
@@ -12847,7 +12847,7 @@ var ee = {
|
|
|
12847
12847
|
toSlateNode: (e, t) => {
|
|
12848
12848
|
var n = Nt(t) ? t : t.parentElement;
|
|
12849
12849
|
n && !n.hasAttribute("data-slate-node") && (n = n.closest("[data-slate-node]"));
|
|
12850
|
-
var r = n ?
|
|
12850
|
+
var r = n ? Vr.get(n) : null;
|
|
12851
12851
|
if (!r)
|
|
12852
12852
|
throw new Error("Cannot resolve a Slate node from DOM node: ".concat(n));
|
|
12853
12853
|
return r;
|
|
@@ -13600,10 +13600,10 @@ function C1() {
|
|
|
13600
13600
|
e.current = !1;
|
|
13601
13601
|
}), []), e.current;
|
|
13602
13602
|
}
|
|
13603
|
-
var
|
|
13603
|
+
var Kr = Bi ? hh : ce;
|
|
13604
13604
|
function E1(e, t, n) {
|
|
13605
13605
|
var [r] = ue(() => new MutationObserver(t));
|
|
13606
|
-
|
|
13606
|
+
Kr(() => {
|
|
13607
13607
|
r.takeRecords();
|
|
13608
13608
|
}), ce(() => {
|
|
13609
13609
|
if (!e.current)
|
|
@@ -13717,7 +13717,7 @@ var N1 = (e) => {
|
|
|
13717
13717
|
isTrailing: n = !1
|
|
13718
13718
|
} = e, r = Fe(null), i = () => "".concat(t ?? "").concat(n ? `
|
|
13719
13719
|
` : ""), [a] = ue(i);
|
|
13720
|
-
return
|
|
13720
|
+
return Kr(() => {
|
|
13721
13721
|
var s = i();
|
|
13722
13722
|
r.current && r.current.textContent !== s && (r.current.textContent = s);
|
|
13723
13723
|
}), /* @__PURE__ */ re.createElement(M1, {
|
|
@@ -13811,7 +13811,7 @@ var $1 = (e) => {
|
|
|
13811
13811
|
userSelect: "none",
|
|
13812
13812
|
textDecoration: "none",
|
|
13813
13813
|
// Fixes https://github.com/udecode/plate/issues/2315
|
|
13814
|
-
WebkitUserModify:
|
|
13814
|
+
WebkitUserModify: Br ? "inherit" : void 0
|
|
13815
13815
|
},
|
|
13816
13816
|
contentEditable: !1,
|
|
13817
13817
|
ref: p
|
|
@@ -13856,7 +13856,7 @@ var $1 = (e) => {
|
|
|
13856
13856
|
}
|
|
13857
13857
|
var g = Re((f) => {
|
|
13858
13858
|
var b = da.get(o);
|
|
13859
|
-
f ? (b == null || b.set(d, f), jn.set(s, f),
|
|
13859
|
+
f ? (b == null || b.set(d, f), jn.set(s, f), Vr.set(f, s)) : (b == null || b.delete(d), jn.delete(s), l.current && Vr.delete(l.current)), l.current = f;
|
|
13860
13860
|
}, [l, o, d, s]);
|
|
13861
13861
|
return /* @__PURE__ */ re.createElement("span", {
|
|
13862
13862
|
"data-slate-node": "text",
|
|
@@ -13894,7 +13894,7 @@ var W1 = (e) => {
|
|
|
13894
13894
|
selection: s
|
|
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
|
-
x ? (k == null || k.set(d, x), jn.set(n, x),
|
|
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
13898
|
}, [o, d, n]), m = pf({
|
|
13899
13899
|
decorations: t,
|
|
13900
13900
|
node: n,
|
|
@@ -14179,7 +14179,7 @@ var aD = (e) => /* @__PURE__ */ re.createElement(re.Fragment, null, pf(e)), sD =
|
|
|
14179
14179
|
} = e, g = ur(e, rD), f = zn(), [b, v] = ue(!1), x = Fe(null), k = Fe([]), [E, w] = ue(), {
|
|
14180
14180
|
onUserInput: _,
|
|
14181
14181
|
receivedUserInput: S
|
|
14182
|
-
} = Y1(), [, z] =
|
|
14182
|
+
} = Y1(), [, z] = fr((B) => B + 1, 0);
|
|
14183
14183
|
rf.set(f, z), Ns.set(f, s);
|
|
14184
14184
|
var O = Zt(() => ({
|
|
14185
14185
|
isDraggingInternally: !1,
|
|
@@ -14216,9 +14216,9 @@ var aD = (e) => /* @__PURE__ */ re.createElement(re.Fragment, null, pf(e)), sD =
|
|
|
14216
14216
|
node: x,
|
|
14217
14217
|
onDOMSelectionChange: M,
|
|
14218
14218
|
scheduleOnDOMSelectionChange: A
|
|
14219
|
-
}),
|
|
14219
|
+
}), Kr(() => {
|
|
14220
14220
|
var B, $, R;
|
|
14221
|
-
x.current && (R = _o(x.current)) ? (nf.set(f, R), Ti.set(f, x.current), jn.set(f, x.current),
|
|
14221
|
+
x.current && (R = _o(x.current)) ? (nf.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();
|
|
@@ -14333,7 +14333,7 @@ var aD = (e) => /* @__PURE__ */ re.createElement(re.Fragment, null, pf(e)), sD =
|
|
|
14333
14333
|
if (!R || !K.equals(R, Ce)) {
|
|
14334
14334
|
ne = !1;
|
|
14335
14335
|
var He = !te && f.selection && y.rangeRef(f, f.selection);
|
|
14336
|
-
Q.select(f, Ce), He &&
|
|
14336
|
+
Q.select(f, Ce), He && Or.set(f, He);
|
|
14337
14337
|
}
|
|
14338
14338
|
}
|
|
14339
14339
|
}
|
|
@@ -14423,13 +14423,13 @@ var aD = (e) => /* @__PURE__ */ re.createElement(re.Fragment, null, pf(e)), sD =
|
|
|
14423
14423
|
break;
|
|
14424
14424
|
}
|
|
14425
14425
|
}
|
|
14426
|
-
var Z = ($ =
|
|
14427
|
-
|
|
14426
|
+
var Z = ($ = Or.get(f)) === null || $ === void 0 ? void 0 : $.unref();
|
|
14427
|
+
Or.delete(f), Z && (!f.selection || !K.equals(f.selection, Z)) && Q.select(f, Z);
|
|
14428
14428
|
}
|
|
14429
14429
|
}, [f, M, _, i, s, A]), T = Re((B) => {
|
|
14430
14430
|
B == null ? (M.cancel(), A.cancel(), Ti.delete(f), jn.delete(f), x.current && dn && x.current.removeEventListener("beforeinput", C)) : dn && B.addEventListener("beforeinput", C), x.current = B;
|
|
14431
14431
|
}, [M, A, f, C]);
|
|
14432
|
-
|
|
14432
|
+
Kr(() => {
|
|
14433
14433
|
var B = ee.getWindow(f);
|
|
14434
14434
|
return B.document.addEventListener("selectionchange", A), () => {
|
|
14435
14435
|
B.document.removeEventListener("selectionchange", A);
|
|
@@ -14559,7 +14559,7 @@ var aD = (e) => /* @__PURE__ */ re.createElement(re.Fragment, null, pf(e)), sD =
|
|
|
14559
14559
|
if (he.isElement(W) && !f.isVoid(W))
|
|
14560
14560
|
return;
|
|
14561
14561
|
}
|
|
14562
|
-
if (
|
|
14562
|
+
if (Br) {
|
|
14563
14563
|
var te = $.getSelection();
|
|
14564
14564
|
te == null || te.removeAllRanges();
|
|
14565
14565
|
}
|
|
@@ -14606,7 +14606,7 @@ var aD = (e) => /* @__PURE__ */ re.createElement(re.Fragment, null, pf(e)), sD =
|
|
|
14606
14606
|
v(!1), An.set(f, !1);
|
|
14607
14607
|
}), ($ = L.current) === null || $ === void 0 || $.handleCompositionEnd(B), ht(B, g.onCompositionEnd) || pt)
|
|
14608
14608
|
return;
|
|
14609
|
-
if (!
|
|
14609
|
+
if (!Br && !Xy && !Yy && !t1 && !e1 && B.data) {
|
|
14610
14610
|
var R = $t.get(f);
|
|
14611
14611
|
$t.delete(f), R !== void 0 && (nn.set(f, f.marks), f.marks = R), y.insertText(f, B.data);
|
|
14612
14612
|
var q = nn.get(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 ((tf ||
|
|
14785
|
+
if ((tf || 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, {
|
|
@@ -14852,7 +14852,7 @@ var aD = (e) => /* @__PURE__ */ re.createElement(re.Fragment, null, pf(e)), sD =
|
|
|
14852
14852
|
}
|
|
14853
14853
|
}, [s, f, g.onKeyDown]),
|
|
14854
14854
|
onPaste: Re((B) => {
|
|
14855
|
-
!s && ee.hasEditableTarget(f, B.target) && !ht(B, g.onPaste) && (!dn || i1(B.nativeEvent) ||
|
|
14855
|
+
!s && ee.hasEditableTarget(f, B.target) && !ht(B, g.onPaste) && (!dn || i1(B.nativeEvent) || Br) && (B.preventDefault(), ee.insertData(f, B.clipboardData));
|
|
14856
14856
|
}, [s, f, g.onPaste])
|
|
14857
14857
|
}), /* @__PURE__ */ re.createElement(aD, {
|
|
14858
14858
|
decorations: j,
|
|
@@ -14947,7 +14947,7 @@ var mD = ["editor", "children", "onChange", "onSelectionChange", "onValueChange"
|
|
|
14947
14947
|
var [p, g] = ue(ee.isFocused(t));
|
|
14948
14948
|
return ce(() => {
|
|
14949
14949
|
g(ee.isFocused(t));
|
|
14950
|
-
}, [t]),
|
|
14950
|
+
}, [t]), Kr(() => {
|
|
14951
14951
|
var f = () => g(ee.isFocused(t));
|
|
14952
14952
|
return ef >= 17 ? (document.addEventListener("focusin", f), document.addEventListener("focusout", f), () => {
|
|
14953
14953
|
document.removeEventListener("focusin", f), document.removeEventListener("focusout", f);
|
|
@@ -15056,7 +15056,7 @@ var vD = function(t) {
|
|
|
15056
15056
|
}
|
|
15057
15057
|
case "set_selection": {
|
|
15058
15058
|
var v;
|
|
15059
|
-
(v =
|
|
15059
|
+
(v = Or.get(r)) === null || v === void 0 || v.unref(), Or.delete(r);
|
|
15060
15060
|
break;
|
|
15061
15061
|
}
|
|
15062
15062
|
case "insert_node":
|
|
@@ -15411,7 +15411,7 @@ function ED(e, t) {
|
|
|
15411
15411
|
i(null, s);
|
|
15412
15412
|
}
|
|
15413
15413
|
}
|
|
15414
|
-
function
|
|
15414
|
+
function Pr(e) {
|
|
15415
15415
|
return !e || typeof e != "object" ? "" : "position" in e || "type" in e ? Xl(e.position) : "start" in e || "end" in e ? Xl(e) : "line" in e || "column" in e ? Ws(e) : "";
|
|
15416
15416
|
}
|
|
15417
15417
|
function Ws(e) {
|
|
@@ -15494,7 +15494,7 @@ class _t extends Error {
|
|
|
15494
15494
|
l && (a.place = l.position);
|
|
15495
15495
|
}
|
|
15496
15496
|
const o = a.place && "start" in a.place ? a.place.start : a.place;
|
|
15497
|
-
this.ancestors = a.ancestors || void 0, this.cause = a.cause || void 0, this.column = o ? o.column : void 0, this.fatal = void 0, this.file, this.message = i, this.line = o ? o.line : void 0, this.name =
|
|
15497
|
+
this.ancestors = a.ancestors || void 0, this.cause = a.cause || void 0, this.column = o ? o.column : void 0, this.fatal = void 0, this.file, this.message = i, this.line = o ? o.line : void 0, this.name = Pr(a.place) || "1:1", this.place = a.place || void 0, this.reason = this.message, this.ruleId = a.ruleId || void 0, this.source = a.source || void 0, this.stack = s && a.cause && typeof a.cause.stack == "string" ? a.cause.stack : "", this.actual, this.expected, this.note, this.url;
|
|
15498
15498
|
}
|
|
15499
15499
|
}
|
|
15500
15500
|
_t.prototype.file = "";
|
|
@@ -17368,7 +17368,7 @@ class Ex {
|
|
|
17368
17368
|
const i = n || 0;
|
|
17369
17369
|
this.setCursor(Math.trunc(t));
|
|
17370
17370
|
const a = this.right.splice(this.right.length - i, Number.POSITIVE_INFINITY);
|
|
17371
|
-
return r &&
|
|
17371
|
+
return r && kr(this.left, r), a.reverse();
|
|
17372
17372
|
}
|
|
17373
17373
|
/**
|
|
17374
17374
|
* Remove and return the highest-numbered item in the array, so
|
|
@@ -17403,7 +17403,7 @@ class Ex {
|
|
|
17403
17403
|
* Nothing.
|
|
17404
17404
|
*/
|
|
17405
17405
|
pushMany(t) {
|
|
17406
|
-
this.setCursor(Number.POSITIVE_INFINITY),
|
|
17406
|
+
this.setCursor(Number.POSITIVE_INFINITY), kr(this.left, t);
|
|
17407
17407
|
}
|
|
17408
17408
|
/**
|
|
17409
17409
|
* Inserts a single item to the low-numbered side of the array;
|
|
@@ -17427,7 +17427,7 @@ class Ex {
|
|
|
17427
17427
|
* Nothing.
|
|
17428
17428
|
*/
|
|
17429
17429
|
unshiftMany(t) {
|
|
17430
|
-
this.setCursor(0),
|
|
17430
|
+
this.setCursor(0), kr(this.right, t.reverse());
|
|
17431
17431
|
}
|
|
17432
17432
|
/**
|
|
17433
17433
|
* Move the cursor to a specific position in the array. Requires
|
|
@@ -17445,14 +17445,14 @@ class Ex {
|
|
|
17445
17445
|
if (!(t === this.left.length || t > this.left.length && this.right.length === 0 || t < 0 && this.left.length === 0))
|
|
17446
17446
|
if (t < this.left.length) {
|
|
17447
17447
|
const n = this.left.splice(t, Number.POSITIVE_INFINITY);
|
|
17448
|
-
|
|
17448
|
+
kr(this.right, n.reverse());
|
|
17449
17449
|
} else {
|
|
17450
17450
|
const n = this.right.splice(this.left.length + this.right.length - t, Number.POSITIVE_INFINITY);
|
|
17451
|
-
|
|
17451
|
+
kr(this.left, n.reverse());
|
|
17452
17452
|
}
|
|
17453
17453
|
}
|
|
17454
17454
|
}
|
|
17455
|
-
function
|
|
17455
|
+
function kr(e, t) {
|
|
17456
17456
|
let n = 0;
|
|
17457
17457
|
if (t.length < 1e4)
|
|
17458
17458
|
e.push(...t);
|
|
@@ -17618,7 +17618,7 @@ function Tf(e, t, n, r, i, a) {
|
|
|
17618
17618
|
return m === s || m === 92 ? (e.consume(m), d) : d(m);
|
|
17619
17619
|
}
|
|
17620
17620
|
}
|
|
17621
|
-
function
|
|
17621
|
+
function Nr(e, t) {
|
|
17622
17622
|
let n;
|
|
17623
17623
|
return r;
|
|
17624
17624
|
function r(i) {
|
|
@@ -17659,7 +17659,7 @@ function Ox(e, t, n) {
|
|
|
17659
17659
|
return i = rr(r.sliceSerialize(r.events[r.events.length - 1][1]).slice(1, -1)), p === 58 ? (e.enter("definitionMarker"), e.consume(p), e.exit("definitionMarker"), l) : n(p);
|
|
17660
17660
|
}
|
|
17661
17661
|
function l(p) {
|
|
17662
|
-
return Ct(p) ?
|
|
17662
|
+
return Ct(p) ? Nr(e, u)(p) : u(p);
|
|
17663
17663
|
}
|
|
17664
17664
|
function u(p) {
|
|
17665
17665
|
return Af(
|
|
@@ -17687,7 +17687,7 @@ function Ox(e, t, n) {
|
|
|
17687
17687
|
function Px(e, t, n) {
|
|
17688
17688
|
return r;
|
|
17689
17689
|
function r(o) {
|
|
17690
|
-
return Ct(o) ?
|
|
17690
|
+
return Ct(o) ? Nr(e, i)(o) : n(o);
|
|
17691
17691
|
}
|
|
17692
17692
|
function i(o) {
|
|
17693
17693
|
return Tf(e, a, n, "definitionTitle", "definitionTitleMarker", "definitionTitleString")(o);
|
|
@@ -18133,13 +18133,13 @@ function nw(e, t, n) {
|
|
|
18133
18133
|
return e.enter("resource"), e.enter("resourceMarker"), e.consume(h), e.exit("resourceMarker"), i;
|
|
18134
18134
|
}
|
|
18135
18135
|
function i(h) {
|
|
18136
|
-
return Ct(h) ?
|
|
18136
|
+
return Ct(h) ? Nr(e, a)(h) : a(h);
|
|
18137
18137
|
}
|
|
18138
18138
|
function a(h) {
|
|
18139
18139
|
return h === 41 ? d(h) : Af(e, s, o, "resourceDestination", "resourceDestinationLiteral", "resourceDestinationLiteralMarker", "resourceDestinationRaw", "resourceDestinationString", 32)(h);
|
|
18140
18140
|
}
|
|
18141
18141
|
function s(h) {
|
|
18142
|
-
return Ct(h) ?
|
|
18142
|
+
return Ct(h) ? Nr(e, l)(h) : d(h);
|
|
18143
18143
|
}
|
|
18144
18144
|
function o(h) {
|
|
18145
18145
|
return n(h);
|
|
@@ -18148,7 +18148,7 @@ function nw(e, t, n) {
|
|
|
18148
18148
|
return h === 34 || h === 39 || h === 40 ? Tf(e, u, n, "resourceTitle", "resourceTitleMarker", "resourceTitleString")(h) : d(h);
|
|
18149
18149
|
}
|
|
18150
18150
|
function u(h) {
|
|
18151
|
-
return Ct(h) ?
|
|
18151
|
+
return Ct(h) ? Nr(e, d)(h) : d(h);
|
|
18152
18152
|
}
|
|
18153
18153
|
function d(h) {
|
|
18154
18154
|
return h === 41 ? (e.enter("resourceMarker"), e.consume(h), e.exit("resourceMarker"), e.exit("resource"), t) : n(h);
|
|
@@ -19109,7 +19109,7 @@ function Vw(e) {
|
|
|
19109
19109
|
be[0].type !== Z.type && (se ? se.call(this, Z, be[0]) : (be[1] || pc).call(this, Z, be[0]));
|
|
19110
19110
|
else
|
|
19111
19111
|
throw new Error(
|
|
19112
|
-
"Cannot close `" + Z.type + "` (" +
|
|
19112
|
+
"Cannot close `" + Z.type + "` (" + Pr({
|
|
19113
19113
|
start: Z.start,
|
|
19114
19114
|
end: Z.end
|
|
19115
19115
|
}) + "): it’s not open"
|
|
@@ -19438,15 +19438,15 @@ function Kw(e, t) {
|
|
|
19438
19438
|
}
|
|
19439
19439
|
function pc(e, t) {
|
|
19440
19440
|
throw e ? new Error(
|
|
19441
|
-
"Cannot close `" + e.type + "` (" +
|
|
19441
|
+
"Cannot close `" + e.type + "` (" + Pr({
|
|
19442
19442
|
start: e.start,
|
|
19443
19443
|
end: e.end
|
|
19444
|
-
}) + "): a different token (`" + t.type + "`, " +
|
|
19444
|
+
}) + "): a different token (`" + t.type + "`, " + Pr({
|
|
19445
19445
|
start: t.start,
|
|
19446
19446
|
end: t.end
|
|
19447
19447
|
}) + ") is open"
|
|
19448
19448
|
) : new Error(
|
|
19449
|
-
"Cannot close document, a token (`" + t.type + "`, " +
|
|
19449
|
+
"Cannot close document, a token (`" + t.type + "`, " + Pr({
|
|
19450
19450
|
start: t.start,
|
|
19451
19451
|
end: t.end
|
|
19452
19452
|
}) + ") is still open"
|
|
@@ -19998,7 +19998,7 @@ const rC = ({
|
|
|
19998
19998
|
children: [
|
|
19999
19999
|
/* @__PURE__ */ c.jsx(Ue, { showOnFocus: !1, children: l.formatMessage({ id: `richTextEditor_${e}` }) }),
|
|
20000
20000
|
/* @__PURE__ */ c.jsx(
|
|
20001
|
-
|
|
20001
|
+
mr,
|
|
20002
20002
|
{
|
|
20003
20003
|
id: `tooltip-${e}`,
|
|
20004
20004
|
styling: { extraPadding: !1, hasPointer: "bottom" },
|
|
@@ -20091,7 +20091,7 @@ const rC = ({
|
|
|
20091
20091
|
}
|
|
20092
20092
|
}
|
|
20093
20093
|
);
|
|
20094
|
-
},
|
|
20094
|
+
}, Mr = (e) => {
|
|
20095
20095
|
const [t] = y.nodes(e, {
|
|
20096
20096
|
match: (n) => {
|
|
20097
20097
|
const r = n;
|
|
@@ -20120,7 +20120,7 @@ const rC = ({
|
|
|
20120
20120
|
console.error(i);
|
|
20121
20121
|
}) => {
|
|
20122
20122
|
try {
|
|
20123
|
-
|
|
20123
|
+
Mr(e) && zf(e);
|
|
20124
20124
|
const { selection: i } = e, a = i && K.isCollapsed(i), s = {
|
|
20125
20125
|
type: Y.link,
|
|
20126
20126
|
link: t,
|
|
@@ -20141,13 +20141,13 @@ 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(
|
|
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 = Df(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());
|
|
20148
20148
|
}, [d]), ce(() => {
|
|
20149
20149
|
ns && clearTimeout(ns), ns = setTimeout(() => {
|
|
20150
|
-
h(
|
|
20150
|
+
h(Mr(o));
|
|
20151
20151
|
}, 500);
|
|
20152
20152
|
}, [o.selection]);
|
|
20153
20153
|
const g = [], f = ["open", "edit", "remove"].map((x) => {
|
|
@@ -20178,7 +20178,7 @@ const uC = () => {
|
|
|
20178
20178
|
const E = [
|
|
20179
20179
|
{ type: "showLinkEditor", value: !1 }
|
|
20180
20180
|
];
|
|
20181
|
-
|
|
20181
|
+
Mr(o) && (zf(o), E.push({ type: "lastAnchor", value: null })), a(E);
|
|
20182
20182
|
};
|
|
20183
20183
|
break;
|
|
20184
20184
|
}
|
|
@@ -20224,7 +20224,7 @@ const uC = () => {
|
|
|
20224
20224
|
});
|
|
20225
20225
|
const v = Rf(i);
|
|
20226
20226
|
return /* @__PURE__ */ c.jsx(Gr, { parent: v, children: /* @__PURE__ */ c.jsx(
|
|
20227
|
-
|
|
20227
|
+
mr,
|
|
20228
20228
|
{
|
|
20229
20229
|
ref: m,
|
|
20230
20230
|
id: `${n}-link-editor`,
|
|
@@ -20278,7 +20278,7 @@ const uC = () => {
|
|
|
20278
20278
|
}, lC = () => {
|
|
20279
20279
|
const e = zn(), { setFocus: t, dispatch: n } = Ie(cn), [r, i] = ue(!1);
|
|
20280
20280
|
return ce(() => {
|
|
20281
|
-
i(
|
|
20281
|
+
i(Mr(e));
|
|
20282
20282
|
}, [e.selection]), /* @__PURE__ */ c.jsx(
|
|
20283
20283
|
jo,
|
|
20284
20284
|
{
|
|
@@ -20437,7 +20437,7 @@ const CC = ({
|
|
|
20437
20437
|
lastKey: null,
|
|
20438
20438
|
hasInteracted: !1,
|
|
20439
20439
|
hasLoaded: !1
|
|
20440
|
-
}, [k, E] =
|
|
20440
|
+
}, [k, E] = fr(ia, x), {
|
|
20441
20441
|
editorKey: w,
|
|
20442
20442
|
originalValue: _,
|
|
20443
20443
|
initialValue: S,
|
|
@@ -20496,8 +20496,8 @@ const CC = ({
|
|
|
20496
20496
|
_ && (async () => {
|
|
20497
20497
|
let X = Bn(_);
|
|
20498
20498
|
if (X.includes("<")) {
|
|
20499
|
-
|
|
20500
|
-
const F = new
|
|
20499
|
+
Lr.prototype.escape = (B) => B;
|
|
20500
|
+
const F = new Lr();
|
|
20501
20501
|
F.addRule("br", {
|
|
20502
20502
|
filter: ["br"],
|
|
20503
20503
|
replacement: (B) => B + `
|
|
@@ -20679,7 +20679,7 @@ const CC = ({
|
|
|
20679
20679
|
}
|
|
20680
20680
|
) }) : /* @__PURE__ */ c.jsx(c.Fragment, {});
|
|
20681
20681
|
};
|
|
20682
|
-
const
|
|
20682
|
+
const Z_ = ({
|
|
20683
20683
|
id: e = "form-toggle",
|
|
20684
20684
|
label: t,
|
|
20685
20685
|
options: n,
|
|
@@ -20954,7 +20954,7 @@ const kC = ({
|
|
|
20954
20954
|
NEW_PASSWORD: "newPassword",
|
|
20955
20955
|
CONFIRMED_PASSWORD: "confirmedPassword",
|
|
20956
20956
|
CURRENT_PASSWORD: "oldPassword"
|
|
20957
|
-
},
|
|
20957
|
+
}, Y_ = ({ functions: e, ...t }) => {
|
|
20958
20958
|
const { formatMessage: n } = le(), [r, i] = ue(null), [a, s] = ue(!1), [o, l] = ue({
|
|
20959
20959
|
isMoreThanEightCharacters: !1,
|
|
20960
20960
|
includesNumberAndSymbol: !1,
|
|
@@ -21156,7 +21156,7 @@ const AC = ({
|
|
|
21156
21156
|
gtmEvent: a = "form-submission"
|
|
21157
21157
|
}) => {
|
|
21158
21158
|
const { searchIsOpen: s = !0, isDesktopVersion: o = !1 } = n || {}, l = le(), u = Fe(null);
|
|
21159
|
-
|
|
21159
|
+
$r(() => {
|
|
21160
21160
|
!n || o || !s || u.current && u.current.focus();
|
|
21161
21161
|
}, [s]);
|
|
21162
21162
|
const d = (h) => {
|
|
@@ -21478,7 +21478,7 @@ const OC = {
|
|
|
21478
21478
|
loadRecaptcha: !1,
|
|
21479
21479
|
showSuccessMessage: !1,
|
|
21480
21480
|
showError: !1
|
|
21481
|
-
},
|
|
21481
|
+
}, G_ = ({
|
|
21482
21482
|
className: e = "",
|
|
21483
21483
|
labels: t = {},
|
|
21484
21484
|
placeholders: n = {},
|
|
@@ -21506,7 +21506,7 @@ const OC = {
|
|
|
21506
21506
|
url: h,
|
|
21507
21507
|
logInButton: m,
|
|
21508
21508
|
successMessage: p
|
|
21509
|
-
}, [f, b] =
|
|
21509
|
+
}, [f, b] = fr(ia, OC), {
|
|
21510
21510
|
validFields: v,
|
|
21511
21511
|
emailDetails: x,
|
|
21512
21512
|
shouldManuallyApprove: k,
|
|
@@ -21638,7 +21638,7 @@ const qn = ({
|
|
|
21638
21638
|
}
|
|
21639
21639
|
);
|
|
21640
21640
|
};
|
|
21641
|
-
const
|
|
21641
|
+
const Q_ = ({ text: e, buttons: t, className: n = "" }) => {
|
|
21642
21642
|
const r = [];
|
|
21643
21643
|
return t.forEach((i) => {
|
|
21644
21644
|
r.push({
|
|
@@ -21686,7 +21686,7 @@ const PC = ({
|
|
|
21686
21686
|
}
|
|
21687
21687
|
) })
|
|
21688
21688
|
] });
|
|
21689
|
-
},
|
|
21689
|
+
}, J_ = ({
|
|
21690
21690
|
children: e,
|
|
21691
21691
|
className: t = "",
|
|
21692
21692
|
formProps: n,
|
|
@@ -21774,7 +21774,7 @@ const PC = ({
|
|
|
21774
21774
|
u && /* @__PURE__ */ c.jsx(sn, {})
|
|
21775
21775
|
] });
|
|
21776
21776
|
};
|
|
21777
|
-
const
|
|
21777
|
+
const X_ = ({
|
|
21778
21778
|
title: e = !1,
|
|
21779
21779
|
text: t,
|
|
21780
21780
|
logos: n = [],
|
|
@@ -21834,7 +21834,7 @@ const G_ = ({
|
|
|
21834
21834
|
);
|
|
21835
21835
|
};
|
|
21836
21836
|
let is;
|
|
21837
|
-
const as = "contactFooter_",
|
|
21837
|
+
const as = "contactFooter_", ek = ({ onSuccess: e = async () => {
|
|
21838
21838
|
}, onFailure: t = () => {
|
|
21839
21839
|
} }) => {
|
|
21840
21840
|
const n = Fe(null), [r, i] = re.useState(0), [a, s] = re.useState(!1), o = () => {
|
|
@@ -21871,7 +21871,7 @@ const as = "contactFooter_", Q_ = ({ onSuccess: e = async () => {
|
|
|
21871
21871
|
}
|
|
21872
21872
|
)
|
|
21873
21873
|
] }) });
|
|
21874
|
-
},
|
|
21874
|
+
}, tk = ({ activeLink: e, profile: t, ...n }) => /* @__PURE__ */ c.jsx(qn, { children: /* @__PURE__ */ c.jsx(Wp, { layout: "1-3", children: /* @__PURE__ */ c.jsxs(c.Fragment, { children: [
|
|
21875
21875
|
/* @__PURE__ */ c.jsx($p, { activeLink: e, profile: t }),
|
|
21876
21876
|
/* @__PURE__ */ c.jsx(mm, { ...n })
|
|
21877
21877
|
] }) }) });
|
|
@@ -22004,11 +22004,11 @@ const ss = "cookieBanner_", os = [
|
|
|
22004
22004
|
text: {
|
|
22005
22005
|
order: ["dataProtection", "euDataProtection"],
|
|
22006
22006
|
dataProtection: {
|
|
22007
|
-
email:
|
|
22007
|
+
email: Fr["data-protection"].default,
|
|
22008
22008
|
gtmType: "email-dpo-link"
|
|
22009
22009
|
},
|
|
22010
22010
|
euDataProtection: {
|
|
22011
|
-
email:
|
|
22011
|
+
email: Fr["data-protection"].eu,
|
|
22012
22012
|
gtmType: "email-eu-dpo-link"
|
|
22013
22013
|
}
|
|
22014
22014
|
}
|
|
@@ -22020,10 +22020,10 @@ const ss = "cookieBanner_", os = [
|
|
|
22020
22020
|
registered: { address: !0 },
|
|
22021
22021
|
berlin: { address: !0 },
|
|
22022
22022
|
support: {
|
|
22023
|
-
email:
|
|
22023
|
+
email: Fr.support,
|
|
22024
22024
|
gtmType: "concierge-email-click"
|
|
22025
22025
|
},
|
|
22026
|
-
business: { email:
|
|
22026
|
+
business: { email: Fr.general, gtmType: "hello-email-click" }
|
|
22027
22027
|
}
|
|
22028
22028
|
},
|
|
22029
22029
|
social: {
|
|
@@ -22036,7 +22036,7 @@ const ss = "cookieBanner_", os = [
|
|
|
22036
22036
|
const tr = "footer_", Gi = "SiteFooter", wc = ({ group: e }) => {
|
|
22037
22037
|
const t = tn[e].order || [];
|
|
22038
22038
|
let n = !1;
|
|
22039
|
-
return "text" in tn[e] && (n = tn[e].text), /* @__PURE__ */ c.jsxs(
|
|
22039
|
+
return "text" in tn[e] && (n = tn[e].text), /* @__PURE__ */ c.jsxs(Ir, { children: [
|
|
22040
22040
|
/* @__PURE__ */ c.jsx("p", { className: "pre-title", children: /* @__PURE__ */ c.jsx(ct, { id: `${tr}${e}` }) }),
|
|
22041
22041
|
Array.isArray(t) && t.length > 0 && /* @__PURE__ */ c.jsx("ul", { className: "text-medium", children: t.map((r) => {
|
|
22042
22042
|
if (["order", "child", "text"].includes(r))
|
|
@@ -22054,7 +22054,7 @@ const tr = "footer_", Gi = "SiteFooter", wc = ({ group: e }) => {
|
|
|
22054
22054
|
}
|
|
22055
22055
|
) }, `${e}_${r}`);
|
|
22056
22056
|
}) }),
|
|
22057
|
-
typeof n != "boolean" && "order" in n && Array.isArray(n.order) && /* @__PURE__ */ c.jsx("dl", { className: "text-medium", children: n.order.map((r) => /* @__PURE__ */ c.jsxs(
|
|
22057
|
+
typeof n != "boolean" && "order" in n && Array.isArray(n.order) && /* @__PURE__ */ c.jsx("dl", { className: "text-medium", children: n.order.map((r) => /* @__PURE__ */ c.jsxs(Ir, { children: [
|
|
22058
22058
|
/* @__PURE__ */ c.jsx("dt", { children: /* @__PURE__ */ c.jsx(ct, { id: `${tr}${e}_${r}` }) }),
|
|
22059
22059
|
/* @__PURE__ */ c.jsxs("dd", { children: [
|
|
22060
22060
|
typeof n != "boolean" && n[r].address && /* @__PURE__ */ c.jsx("address", { children: /* @__PURE__ */ c.jsx(
|
|
@@ -22453,10 +22453,10 @@ const tr = "footer_", Gi = "SiteFooter", wc = ({ group: e }) => {
|
|
|
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
22455
|
const Vf = ({ showNavigation: e = !0 }) => {
|
|
22456
|
-
const t = le(), n = Ie(vt), r =
|
|
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]
|
|
22459
|
-
), [s, o] =
|
|
22459
|
+
), [s, o] = fr(ia, {
|
|
22460
22460
|
headerIsVisible: !0,
|
|
22461
22461
|
menus: {
|
|
22462
22462
|
"site-navigation": !1,
|
|
@@ -22509,7 +22509,7 @@ const Vf = ({ showNavigation: e = !0 }) => {
|
|
|
22509
22509
|
var x;
|
|
22510
22510
|
(x = document.getElementById("header")) == null || x.removeEventListener("keydown", g);
|
|
22511
22511
|
};
|
|
22512
|
-
}, []),
|
|
22512
|
+
}, []), $r(() => {
|
|
22513
22513
|
u[
|
|
22514
22514
|
"site-navigation"
|
|
22515
22515
|
/* SITE */
|
|
@@ -22523,7 +22523,7 @@ const Vf = ({ showNavigation: e = !0 }) => {
|
|
|
22523
22523
|
}, [u[
|
|
22524
22524
|
"site-navigation"
|
|
22525
22525
|
/* SITE */
|
|
22526
|
-
]]),
|
|
22526
|
+
]]), $r(() => {
|
|
22527
22527
|
u[
|
|
22528
22528
|
"account-navigation"
|
|
22529
22529
|
/* ACCOUNT */
|
|
@@ -22841,7 +22841,7 @@ const RC = () => {
|
|
|
22841
22841
|
return ls[e] ? (e = ls[e], { id: e, text: `${Cc.default}${e}` }) : null;
|
|
22842
22842
|
}
|
|
22843
22843
|
};
|
|
22844
|
-
const
|
|
22844
|
+
const nk = ({
|
|
22845
22845
|
tags: e = [],
|
|
22846
22846
|
color: t = "default",
|
|
22847
22847
|
forceOneLine: n = !1,
|
|
@@ -22881,7 +22881,7 @@ const X_ = ({
|
|
|
22881
22881
|
}
|
|
22882
22882
|
);
|
|
22883
22883
|
};
|
|
22884
|
-
const LC = ({
|
|
22884
|
+
const LC = 25, zC = ({
|
|
22885
22885
|
members: { data: e = [], total: t = e.length },
|
|
22886
22886
|
communitySlug: n,
|
|
22887
22887
|
isMember: r = !1,
|
|
@@ -22960,7 +22960,7 @@ const LC = ({
|
|
|
22960
22960
|
),
|
|
22961
22961
|
v.isAdmin && /* @__PURE__ */ c.jsx(bn, { children: m.formatMessage({ id: `${p}_admin` }) })
|
|
22962
22962
|
] }, x)),
|
|
22963
|
-
d && e.length === 0 && t > 0 ? [...new Array(Math.min(t,
|
|
22963
|
+
d && e.length === 0 && t > 0 ? [...new Array(Math.min(t, LC))].map((v, x) => /* @__PURE__ */ c.jsx("li", { children: /* @__PURE__ */ c.jsx(no, { layout: "member" }) }, x)) : /* @__PURE__ */ c.jsx(c.Fragment, {})
|
|
22964
22964
|
] }),
|
|
22965
22965
|
i && /* @__PURE__ */ c.jsx(
|
|
22966
22966
|
aa,
|
|
@@ -23014,14 +23014,14 @@ const Xi = ({
|
|
|
23014
23014
|
icon: e,
|
|
23015
23015
|
...n
|
|
23016
23016
|
}
|
|
23017
|
-
),
|
|
23017
|
+
), qC = {
|
|
23018
23018
|
showForm: !1
|
|
23019
|
-
}, Po = Et(
|
|
23019
|
+
}, Po = Et(qC), WC = ({ children: e }) => {
|
|
23020
23020
|
const [t, n] = ue({
|
|
23021
23021
|
showForm: !1
|
|
23022
23022
|
});
|
|
23023
23023
|
return /* @__PURE__ */ c.jsx(Po.Provider, { value: { ...t, updateConversation: n }, children: e });
|
|
23024
|
-
},
|
|
23024
|
+
}, UC = ({ intlPath: e, showGuidelines: t, type: n, gtmContext: r }) => {
|
|
23025
23025
|
const i = le();
|
|
23026
23026
|
return t ? /* @__PURE__ */ c.jsx("small", { children: It(i.formatMessage, `${e}explainer`, n, "action", {
|
|
23027
23027
|
a: (a) => /* @__PURE__ */ c.jsx(
|
|
@@ -23037,7 +23037,7 @@ const Xi = ({
|
|
|
23037
23037
|
}
|
|
23038
23038
|
)
|
|
23039
23039
|
}) }) : /* @__PURE__ */ c.jsx(c.Fragment, {});
|
|
23040
|
-
},
|
|
23040
|
+
}, HC = ({ formID: e, intlPath: t, showLabel: n, type: r }) => {
|
|
23041
23041
|
const i = le();
|
|
23042
23042
|
return n ? /* @__PURE__ */ c.jsx(
|
|
23043
23043
|
"label",
|
|
@@ -23205,7 +23205,7 @@ const rt = "discussion_form_", ha = ({
|
|
|
23205
23205
|
_ && (ve = de && J);
|
|
23206
23206
|
const ge = $ === "submitting", Ae = [
|
|
23207
23207
|
{
|
|
23208
|
-
component:
|
|
23208
|
+
component: HC,
|
|
23209
23209
|
props: {
|
|
23210
23210
|
formID: W,
|
|
23211
23211
|
intlPath: rt,
|
|
@@ -23239,7 +23239,7 @@ const rt = "discussion_form_", ha = ({
|
|
|
23239
23239
|
}
|
|
23240
23240
|
},
|
|
23241
23241
|
{
|
|
23242
|
-
component:
|
|
23242
|
+
component: UC,
|
|
23243
23243
|
props: { intlPath: rt, showGuidelines: O, type: n.type, gtmContext: m }
|
|
23244
23244
|
}
|
|
23245
23245
|
];
|
|
@@ -23356,10 +23356,267 @@ const rt = "discussion_form_", ha = ({
|
|
|
23356
23356
|
) : F }),
|
|
23357
23357
|
f && /* @__PURE__ */ c.jsx(Ue, { "aria-live": "polite", showOnFocus: !1, children: f })
|
|
23358
23358
|
] });
|
|
23359
|
-
},
|
|
23359
|
+
}, VC = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
23360
23360
|
__proto__: null,
|
|
23361
23361
|
default: ha
|
|
23362
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
23362
|
+
}, Symbol.toStringTag, { value: "Module" })), KC = ({
|
|
23363
|
+
question: e,
|
|
23364
|
+
answer: t,
|
|
23365
|
+
reply: n
|
|
23366
|
+
}) => ({
|
|
23367
|
+
...e && { questionSlug: e },
|
|
23368
|
+
...t && { answerSlug: t },
|
|
23369
|
+
...n && { replySlug: n }
|
|
23370
|
+
}), ZC = (e, t = 10) => !e || e.length === 0 ? [] : e.slice(0, t);
|
|
23371
|
+
function YC(e) {
|
|
23372
|
+
return Re(
|
|
23373
|
+
(t) => {
|
|
23374
|
+
var s, o, l, u;
|
|
23375
|
+
if (!t || !["ArrowUp", "ArrowDown"].includes(t.key || ""))
|
|
23376
|
+
return;
|
|
23377
|
+
t.stopPropagation(), t.preventDefault();
|
|
23378
|
+
const n = t.key === "ArrowUp" ? "up" : "down", r = (s = t.currentTarget) == null ? void 0 : s.parentElement;
|
|
23379
|
+
let i = r == null ? void 0 : r.nextElementSibling;
|
|
23380
|
+
if (n === "up") {
|
|
23381
|
+
const d = r == null ? void 0 : r.previousElementSibling;
|
|
23382
|
+
d ? i = d : (i = (o = r == null ? void 0 : r.parentElement) == null ? void 0 : o.lastElementChild, (i == null ? void 0 : i.getAttribute("data-index")) === "-1" && (i = i == null ? void 0 : i.previousElementSibling));
|
|
23383
|
+
} else
|
|
23384
|
+
(!i || (i == null ? void 0 : i.getAttribute("data-index")) === "-1") && (i = (l = r == null ? void 0 : r.parentElement) == null ? void 0 : l.firstElementChild);
|
|
23385
|
+
if (!i)
|
|
23386
|
+
return;
|
|
23387
|
+
const a = Number((i == null ? void 0 : i.getAttribute("data-index")) || "0");
|
|
23388
|
+
e([{ type: "tabbableLink", value: a }]), (u = i == null ? void 0 : i.querySelector("a,button")) == null || u.focus();
|
|
23389
|
+
},
|
|
23390
|
+
[e]
|
|
23391
|
+
);
|
|
23392
|
+
}
|
|
23393
|
+
const GC = dr(() => Promise.resolve().then(() => OE));
|
|
23394
|
+
let Rr = !1;
|
|
23395
|
+
const cs = () => {
|
|
23396
|
+
Rr !== !1 && (clearTimeout(Rr), Rr = !1);
|
|
23397
|
+
}, QC = 5;
|
|
23398
|
+
let ds = null;
|
|
23399
|
+
const JC = ({
|
|
23400
|
+
element: e = "div",
|
|
23401
|
+
likes: t = 0,
|
|
23402
|
+
peopleWhoLiked: n = !1,
|
|
23403
|
+
isShort: r = !0,
|
|
23404
|
+
userLiked: i = !1,
|
|
23405
|
+
content: a = { type: "reply", slugs: {} },
|
|
23406
|
+
canLike: s = !0,
|
|
23407
|
+
activityId: o,
|
|
23408
|
+
basePath: l,
|
|
23409
|
+
parentId: u,
|
|
23410
|
+
badges: d,
|
|
23411
|
+
functions: {
|
|
23412
|
+
createLike: h = () => {
|
|
23413
|
+
},
|
|
23414
|
+
deleteLike: m = () => {
|
|
23415
|
+
},
|
|
23416
|
+
listLikes: p = async () => ({ next: "", results: [] })
|
|
23417
|
+
}
|
|
23418
|
+
}) => {
|
|
23419
|
+
const g = le(), f = {
|
|
23420
|
+
numberOfLikes: t,
|
|
23421
|
+
userLikedContent: i,
|
|
23422
|
+
ignoreInteractions: !1,
|
|
23423
|
+
showLikers: !1,
|
|
23424
|
+
tabbableLink: 0,
|
|
23425
|
+
showLikesModal: !1
|
|
23426
|
+
}, [b, v] = fr(ia, f), {
|
|
23427
|
+
numberOfLikes: x,
|
|
23428
|
+
userLikedContent: k,
|
|
23429
|
+
ignoreInteractions: E,
|
|
23430
|
+
showLikers: w,
|
|
23431
|
+
tabbableLink: _,
|
|
23432
|
+
showLikesModal: S
|
|
23433
|
+
} = b, z = YC(v);
|
|
23434
|
+
ce(() => {
|
|
23435
|
+
v([{ type: "userLikedContent", value: i }]);
|
|
23436
|
+
}, [i]);
|
|
23437
|
+
const O = Zt(
|
|
23438
|
+
() => ZC(n, QC),
|
|
23439
|
+
[n]
|
|
23440
|
+
), L = (T) => {
|
|
23441
|
+
if (T.preventDefault(), T.stopPropagation(), v([{ type: "showLikers", value: !1 }]), Rr)
|
|
23442
|
+
return cs(), !1;
|
|
23443
|
+
if (cs(), E || !s)
|
|
23444
|
+
return !1;
|
|
23445
|
+
Rr = setTimeout(M, 350);
|
|
23446
|
+
}, M = async () => {
|
|
23447
|
+
if (cs(), E || !s)
|
|
23448
|
+
return !1;
|
|
23449
|
+
let T = k ? x - 1 : x + 1;
|
|
23450
|
+
T < 0 && (T = 0), v([
|
|
23451
|
+
{ type: "ignoreInteractions", value: !0 },
|
|
23452
|
+
{ type: "numberOfLikes", value: T },
|
|
23453
|
+
{ type: "userLikedContent", value: !k }
|
|
23454
|
+
]);
|
|
23455
|
+
try {
|
|
23456
|
+
if (a && a.slugs) {
|
|
23457
|
+
const j = KC(a.slugs);
|
|
23458
|
+
k ? await m(j) : await h({
|
|
23459
|
+
...j,
|
|
23460
|
+
payload: { contentPath: window.location.pathname }
|
|
23461
|
+
});
|
|
23462
|
+
}
|
|
23463
|
+
} catch {
|
|
23464
|
+
v([
|
|
23465
|
+
{ type: "numberOfLikes", value: t },
|
|
23466
|
+
{ type: "userLikedContent", value: i }
|
|
23467
|
+
]);
|
|
23468
|
+
} finally {
|
|
23469
|
+
v([{ type: "ignoreInteractions", value: !1 }]);
|
|
23470
|
+
}
|
|
23471
|
+
}, A = () => {
|
|
23472
|
+
ds = setTimeout(() => {
|
|
23473
|
+
v([{ type: "showLikers", value: !1 }]);
|
|
23474
|
+
}, 500);
|
|
23475
|
+
}, C = () => {
|
|
23476
|
+
ds && clearTimeout(ds);
|
|
23477
|
+
};
|
|
23478
|
+
return re.createElement(
|
|
23479
|
+
e,
|
|
23480
|
+
{
|
|
23481
|
+
className: "likes-wrapper",
|
|
23482
|
+
onKeyDown: (T) => {
|
|
23483
|
+
T.key === "Escape" && v([{ type: "showLikers", value: !1 }]);
|
|
23484
|
+
},
|
|
23485
|
+
onMouseEnter: () => {
|
|
23486
|
+
C(), v([{ type: "showLikers", value: !0 }]);
|
|
23487
|
+
},
|
|
23488
|
+
onMouseLeave: () => {
|
|
23489
|
+
A();
|
|
23490
|
+
}
|
|
23491
|
+
},
|
|
23492
|
+
/* @__PURE__ */ c.jsxs(c.Fragment, { children: [
|
|
23493
|
+
/* @__PURE__ */ c.jsx(
|
|
23494
|
+
Xi,
|
|
23495
|
+
{
|
|
23496
|
+
className: V("discussion-button text-medium action-button", {
|
|
23497
|
+
"show-spinner": E,
|
|
23498
|
+
"is-liked": k,
|
|
23499
|
+
disabled: !s
|
|
23500
|
+
}),
|
|
23501
|
+
icon: {
|
|
23502
|
+
icon: k ? "heart" : "heart_empty",
|
|
23503
|
+
animate: "bounce"
|
|
23504
|
+
},
|
|
23505
|
+
disabled: !s,
|
|
23506
|
+
"data-testid": "like-button",
|
|
23507
|
+
"data-gtm-event-context": "Likes",
|
|
23508
|
+
"data-gtm-event-type": `like-${a.type}-click`,
|
|
23509
|
+
onClick: L,
|
|
23510
|
+
screenreaderText: s ? g.formatMessage(
|
|
23511
|
+
{
|
|
23512
|
+
id: `discussion_likes_${k ? "unlike" : "like"}`
|
|
23513
|
+
},
|
|
23514
|
+
{
|
|
23515
|
+
action: g.formatMessage({
|
|
23516
|
+
id: `discussion_action_${a.type}`
|
|
23517
|
+
})
|
|
23518
|
+
}
|
|
23519
|
+
) : !1,
|
|
23520
|
+
"aria-pressed": k,
|
|
23521
|
+
children: /* @__PURE__ */ c.jsx("span", { "data-testid": "number-of-likes", className: "number-of-likes", children: g.formatMessage(
|
|
23522
|
+
{ id: `discussion_likes${r ? "_short" : ""}` },
|
|
23523
|
+
{ number: x }
|
|
23524
|
+
) })
|
|
23525
|
+
}
|
|
23526
|
+
),
|
|
23527
|
+
n && /* @__PURE__ */ c.jsxs(c.Fragment, { children: [
|
|
23528
|
+
/* @__PURE__ */ c.jsx(
|
|
23529
|
+
Ue,
|
|
23530
|
+
{
|
|
23531
|
+
"data-testid": "like-a11y-button",
|
|
23532
|
+
element: "button",
|
|
23533
|
+
className: "tertiary small icon navigation_arrow",
|
|
23534
|
+
onFocus: () => {
|
|
23535
|
+
C();
|
|
23536
|
+
},
|
|
23537
|
+
onBlur: () => A,
|
|
23538
|
+
onClick: (T) => {
|
|
23539
|
+
var H;
|
|
23540
|
+
T.preventDefault(), T.stopPropagation(), C(), v([{ type: "showLikers", value: !0 }]);
|
|
23541
|
+
const j = (H = T.currentTarget.nextSibling) == null ? void 0 : H.childNodes[0];
|
|
23542
|
+
if (j) {
|
|
23543
|
+
const U = j.querySelector(
|
|
23544
|
+
"li:first-child a"
|
|
23545
|
+
);
|
|
23546
|
+
U && (v([{ type: "tabbableLink", value: 0 }]), setTimeout(() => {
|
|
23547
|
+
U.focus();
|
|
23548
|
+
}, 100));
|
|
23549
|
+
}
|
|
23550
|
+
},
|
|
23551
|
+
onKeyDown: (T) => {
|
|
23552
|
+
T.key === "Escape" && (T.preventDefault(), T.stopPropagation(), A());
|
|
23553
|
+
},
|
|
23554
|
+
"aria-expanded": w,
|
|
23555
|
+
"aria-controls": `likes-tooltip-${a.slug}`,
|
|
23556
|
+
children: /* @__PURE__ */ c.jsx(Ue, { showOnFocus: !1, children: g.formatMessage(
|
|
23557
|
+
{ id: "discussion_likes_show" },
|
|
23558
|
+
{ action: a.type }
|
|
23559
|
+
) })
|
|
23560
|
+
}
|
|
23561
|
+
),
|
|
23562
|
+
/* @__PURE__ */ c.jsx(
|
|
23563
|
+
mr,
|
|
23564
|
+
{
|
|
23565
|
+
id: `likes-tooltip-${a.slug}`,
|
|
23566
|
+
isOpen: w,
|
|
23567
|
+
isLoading: n.length === 0,
|
|
23568
|
+
children: n.length && /* @__PURE__ */ c.jsxs("ul", { children: [
|
|
23569
|
+
O.map((T, j) => {
|
|
23570
|
+
if (typeof T == "string")
|
|
23571
|
+
return null;
|
|
23572
|
+
const H = {};
|
|
23573
|
+
return _ !== j && (H.tabIndex = -1), /* @__PURE__ */ c.jsx("li", { "data-index": j, children: /* @__PURE__ */ c.jsx(
|
|
23574
|
+
In,
|
|
23575
|
+
{
|
|
23576
|
+
href: T.id ? `/profiles/${T.id}` : void 0,
|
|
23577
|
+
gtmContext: "Likes",
|
|
23578
|
+
gtmType: "liked-name-click",
|
|
23579
|
+
onFocus: () => C(),
|
|
23580
|
+
onKeyDown: z,
|
|
23581
|
+
...H,
|
|
23582
|
+
children: T.name ? T.name : /* @__PURE__ */ c.jsx("span", { className: "deleted-user", children: g.formatMessage({ id: "member_deleted" }) })
|
|
23583
|
+
}
|
|
23584
|
+
) }, T.id || window.btoa(T.name || ""));
|
|
23585
|
+
}),
|
|
23586
|
+
/* @__PURE__ */ c.jsx("li", { "data-index": O.length, className: "show-all", children: /* @__PURE__ */ c.jsx(
|
|
23587
|
+
Te,
|
|
23588
|
+
{
|
|
23589
|
+
variant: "tertiary",
|
|
23590
|
+
onClick: () => {
|
|
23591
|
+
C(), A(), v([{ type: "showLikesModal", value: !0 }]);
|
|
23592
|
+
},
|
|
23593
|
+
onKeyDown: z,
|
|
23594
|
+
children: g.formatMessage({ id: "discussion_likes_showAll" })
|
|
23595
|
+
}
|
|
23596
|
+
) })
|
|
23597
|
+
] })
|
|
23598
|
+
}
|
|
23599
|
+
),
|
|
23600
|
+
/* @__PURE__ */ c.jsx(Gr, { children: S && /* @__PURE__ */ c.jsx(
|
|
23601
|
+
GC,
|
|
23602
|
+
{
|
|
23603
|
+
activityId: o,
|
|
23604
|
+
basePath: l,
|
|
23605
|
+
parentId: u,
|
|
23606
|
+
likeCount: t,
|
|
23607
|
+
showModal: S,
|
|
23608
|
+
functions: {
|
|
23609
|
+
onClose: () => v([{ type: "showLikesModal", value: !1 }]),
|
|
23610
|
+
likes: {
|
|
23611
|
+
list: p
|
|
23612
|
+
}
|
|
23613
|
+
}
|
|
23614
|
+
}
|
|
23615
|
+
) })
|
|
23616
|
+
] })
|
|
23617
|
+
] })
|
|
23618
|
+
);
|
|
23619
|
+
}, XC = "post", eE = "reply", Kf = "00000000-0000-0000-0000-000000000000";
|
|
23363
23620
|
function No({ queryClient: e, queryKey: t }) {
|
|
23364
23621
|
function n(r, i, a) {
|
|
23365
23622
|
e.setQueryData(t, a);
|
|
@@ -23374,7 +23631,7 @@ function Mo({ queryClient: e, queryKey: t }) {
|
|
|
23374
23631
|
}
|
|
23375
23632
|
return n;
|
|
23376
23633
|
}
|
|
23377
|
-
function
|
|
23634
|
+
function tE() {
|
|
23378
23635
|
return {
|
|
23379
23636
|
latest_reactions: {
|
|
23380
23637
|
like: [],
|
|
@@ -23390,7 +23647,7 @@ function ZC() {
|
|
|
23390
23647
|
}
|
|
23391
23648
|
};
|
|
23392
23649
|
}
|
|
23393
|
-
function
|
|
23650
|
+
function nE() {
|
|
23394
23651
|
return {
|
|
23395
23652
|
latest_children: {
|
|
23396
23653
|
like: [],
|
|
@@ -23418,20 +23675,20 @@ function Zf(e) {
|
|
|
23418
23675
|
}
|
|
23419
23676
|
};
|
|
23420
23677
|
}
|
|
23421
|
-
function
|
|
23678
|
+
function rE({ title: e, content: t }) {
|
|
23422
23679
|
return {
|
|
23423
23680
|
title: e,
|
|
23424
23681
|
content: t,
|
|
23425
23682
|
id: Kf,
|
|
23426
23683
|
time: (/* @__PURE__ */ new Date()).toISOString(),
|
|
23427
|
-
verb:
|
|
23684
|
+
verb: XC
|
|
23428
23685
|
};
|
|
23429
23686
|
}
|
|
23430
23687
|
function _c({ activity: e, user: t }) {
|
|
23431
23688
|
return {
|
|
23432
23689
|
...e,
|
|
23433
23690
|
actor: Zf(t),
|
|
23434
|
-
...
|
|
23691
|
+
...tE()
|
|
23435
23692
|
};
|
|
23436
23693
|
}
|
|
23437
23694
|
function ea({
|
|
@@ -23496,14 +23753,14 @@ function Gf({ activity: e }) {
|
|
|
23496
23753
|
pin: []
|
|
23497
23754
|
};
|
|
23498
23755
|
}
|
|
23499
|
-
function
|
|
23756
|
+
function iE({ activityId: e, replyId: t, content: n }) {
|
|
23500
23757
|
return {
|
|
23501
23758
|
activity_id: e,
|
|
23502
23759
|
data: {
|
|
23503
23760
|
content: n
|
|
23504
23761
|
},
|
|
23505
23762
|
id: Kf,
|
|
23506
|
-
kind:
|
|
23763
|
+
kind: eE,
|
|
23507
23764
|
parent: t || ""
|
|
23508
23765
|
};
|
|
23509
23766
|
}
|
|
@@ -23513,7 +23770,7 @@ function kc({ reply: e, user: t }) {
|
|
|
23513
23770
|
...e,
|
|
23514
23771
|
user_id: n.id,
|
|
23515
23772
|
user: n,
|
|
23516
|
-
...
|
|
23773
|
+
...nE()
|
|
23517
23774
|
};
|
|
23518
23775
|
}
|
|
23519
23776
|
function Fc({ reply: e, reaction: t }) {
|
|
@@ -23529,7 +23786,7 @@ function Fc({ reply: e, reaction: t }) {
|
|
|
23529
23786
|
like: (n = e.children_counts) != null && n.like ? e.children_counts.like + 1 : 1
|
|
23530
23787
|
};
|
|
23531
23788
|
}
|
|
23532
|
-
function
|
|
23789
|
+
function aE({ reply: e, user: t }) {
|
|
23533
23790
|
var n, r, i;
|
|
23534
23791
|
e.children_counts = {
|
|
23535
23792
|
...e.children_counts || {},
|
|
@@ -23542,7 +23799,7 @@ function JC({ reply: e, user: t }) {
|
|
|
23542
23799
|
like: (((i = e.own_children) == null ? void 0 : i.like) || []).filter(({ user_id: a }) => a !== t.id)
|
|
23543
23800
|
});
|
|
23544
23801
|
}
|
|
23545
|
-
function
|
|
23802
|
+
function sE(e) {
|
|
23546
23803
|
return {
|
|
23547
23804
|
pages: [
|
|
23548
23805
|
{
|
|
@@ -23553,15 +23810,15 @@ function XC(e) {
|
|
|
23553
23810
|
pageParams: [""]
|
|
23554
23811
|
};
|
|
23555
23812
|
}
|
|
23556
|
-
function
|
|
23813
|
+
function oE(e, t, n) {
|
|
23557
23814
|
const r = t.pages.length - 1, i = t.pages[r].results.length - 1;
|
|
23558
23815
|
return n != null && n.replace ? t.pages[r].results[i] = e : t.pages[r].results.push(e), t;
|
|
23559
23816
|
}
|
|
23560
|
-
function
|
|
23817
|
+
function uE(e, t, n) {
|
|
23561
23818
|
return n != null && n.replace ? t.pages[0].results[0] = e : t.pages[0].results = [e, ...t.pages[0].results], t;
|
|
23562
23819
|
}
|
|
23563
23820
|
function na(e, t, n) {
|
|
23564
|
-
return t ? n != null && n.append ?
|
|
23821
|
+
return t ? n != null && n.append ? oE(e, t, n) : uE(e, t, n) : sE(e);
|
|
23565
23822
|
}
|
|
23566
23823
|
function qt(e, t) {
|
|
23567
23824
|
if (t)
|
|
@@ -23594,7 +23851,7 @@ const Jf = (e, t) => {
|
|
|
23594
23851
|
});
|
|
23595
23852
|
document.dispatchEvent(n);
|
|
23596
23853
|
};
|
|
23597
|
-
let Ac,
|
|
23854
|
+
let Ac, fs = 0;
|
|
23598
23855
|
const Xf = () => {
|
|
23599
23856
|
ce(() => (document.addEventListener(
|
|
23600
23857
|
st.DISCUSSION_POST_ADDED,
|
|
@@ -23612,10 +23869,10 @@ const Xf = () => {
|
|
|
23612
23869
|
clearTimeout(Ac);
|
|
23613
23870
|
const i = document.getElementById(n);
|
|
23614
23871
|
if (i) {
|
|
23615
|
-
i.scrollIntoView({ behavior: "smooth", block: "start" }),
|
|
23872
|
+
i.scrollIntoView({ behavior: "smooth", block: "start" }), fs = 0;
|
|
23616
23873
|
return;
|
|
23617
23874
|
}
|
|
23618
|
-
|
|
23875
|
+
fs++, !(fs > 10) && (Ac = setTimeout(() => {
|
|
23619
23876
|
e(t);
|
|
23620
23877
|
}, 50));
|
|
23621
23878
|
};
|
|
@@ -23647,7 +23904,7 @@ const Xf = () => {
|
|
|
23647
23904
|
object: "comment",
|
|
23648
23905
|
time: "2023-11-24T17:52:36.162000",
|
|
23649
23906
|
verb: "post"
|
|
23650
|
-
}),
|
|
23907
|
+
}), lE = Object.freeze({
|
|
23651
23908
|
actor: `SU:${Qt.id}`,
|
|
23652
23909
|
content: "some content 2",
|
|
23653
23910
|
duration: "5.53ms",
|
|
@@ -23657,7 +23914,7 @@ const Xf = () => {
|
|
|
23657
23914
|
object: "comment",
|
|
23658
23915
|
time: "2023-11-24T17:54:36.162000",
|
|
23659
23916
|
verb: "post"
|
|
23660
|
-
}),
|
|
23917
|
+
}), cE = Object.freeze({
|
|
23661
23918
|
actor: `SU:${cr.id}`,
|
|
23662
23919
|
content: "some content 3",
|
|
23663
23920
|
duration: "5.53ms",
|
|
@@ -23667,7 +23924,7 @@ const Xf = () => {
|
|
|
23667
23924
|
object: "comment",
|
|
23668
23925
|
time: "2023-11-24T17:56:36.162000",
|
|
23669
23926
|
verb: "post"
|
|
23670
|
-
}),
|
|
23927
|
+
}), dE = Object.freeze({
|
|
23671
23928
|
actor: `SU:${Qt.id}`,
|
|
23672
23929
|
content: "some content 4",
|
|
23673
23930
|
duration: "5.53ms",
|
|
@@ -23750,7 +24007,7 @@ Object.freeze({
|
|
|
23750
24007
|
updated_at: "2023-08-31T07:11:38.677184Z"
|
|
23751
24008
|
},
|
|
23752
24009
|
kind: "reply",
|
|
23753
|
-
activity_id:
|
|
24010
|
+
activity_id: lE.id,
|
|
23754
24011
|
data: {
|
|
23755
24012
|
content: "Some content 2..."
|
|
23756
24013
|
},
|
|
@@ -23770,7 +24027,7 @@ Object.freeze({
|
|
|
23770
24027
|
updated_at: "2023-08-31T07:11:38.677184Z"
|
|
23771
24028
|
},
|
|
23772
24029
|
kind: "reply",
|
|
23773
|
-
activity_id:
|
|
24030
|
+
activity_id: cE.id,
|
|
23774
24031
|
data: {
|
|
23775
24032
|
content: "Some content 3..."
|
|
23776
24033
|
},
|
|
@@ -23790,7 +24047,7 @@ Object.freeze({
|
|
|
23790
24047
|
updated_at: "2023-08-31T07:11:38.677184Z"
|
|
23791
24048
|
},
|
|
23792
24049
|
kind: "reply",
|
|
23793
|
-
activity_id:
|
|
24050
|
+
activity_id: dE.id,
|
|
23794
24051
|
data: {
|
|
23795
24052
|
content: "Some content 4..."
|
|
23796
24053
|
},
|
|
@@ -23798,7 +24055,7 @@ Object.freeze({
|
|
|
23798
24055
|
latest_children: {},
|
|
23799
24056
|
children_counts: {}
|
|
23800
24057
|
});
|
|
23801
|
-
function
|
|
24058
|
+
function fE({
|
|
23802
24059
|
mutationFn: e,
|
|
23803
24060
|
mutationHandlers: { mutate: t, error: n },
|
|
23804
24061
|
queryClient: r,
|
|
@@ -23808,7 +24065,7 @@ function aE({
|
|
|
23808
24065
|
const { mutate: s } = ut({
|
|
23809
24066
|
mutationFn: e,
|
|
23810
24067
|
onMutate: (o) => t((l) => {
|
|
23811
|
-
const u = _c({ activity:
|
|
24068
|
+
const u = _c({ activity: rE(o), user: a });
|
|
23812
24069
|
return na(u, l);
|
|
23813
24070
|
}),
|
|
23814
24071
|
onError: n,
|
|
@@ -23824,7 +24081,7 @@ function aE({
|
|
|
23824
24081
|
});
|
|
23825
24082
|
return s;
|
|
23826
24083
|
}
|
|
23827
|
-
function
|
|
24084
|
+
function hE({
|
|
23828
24085
|
mutationFn: e,
|
|
23829
24086
|
mutationHandlers: { mutate: t, error: n }
|
|
23830
24087
|
}) {
|
|
@@ -23838,7 +24095,7 @@ function sE({
|
|
|
23838
24095
|
});
|
|
23839
24096
|
return r;
|
|
23840
24097
|
}
|
|
23841
|
-
function
|
|
24098
|
+
function mE({
|
|
23842
24099
|
queryFns: { create: e, edit: t, like: n, list: r, remove: i, unlike: a, pin: s, unpin: o },
|
|
23843
24100
|
queryKey: l,
|
|
23844
24101
|
rankingMethod: u
|
|
@@ -23850,7 +24107,7 @@ function oE({
|
|
|
23850
24107
|
},
|
|
23851
24108
|
user: h,
|
|
23852
24109
|
...m
|
|
23853
|
-
}, g =
|
|
24110
|
+
}, g = fE({ ...p, mutationFn: e }), f = hE({ ...p, mutationFn: t }), b = pE({ ...p, mutationFn: n }), v = bE({ ...p, mutationFn: i }), x = yE({ ...p, mutationFn: a }), k = vE({ ...p, mutationFn: s }), E = DE({ ...p, mutationFn: o }), { activities: w, ..._ } = gE({
|
|
23854
24111
|
queryKey: l,
|
|
23855
24112
|
queryFn: r,
|
|
23856
24113
|
rankingMethod: u
|
|
@@ -23870,7 +24127,7 @@ function oE({
|
|
|
23870
24127
|
..._
|
|
23871
24128
|
};
|
|
23872
24129
|
}
|
|
23873
|
-
function
|
|
24130
|
+
function pE({
|
|
23874
24131
|
mutationFn: e,
|
|
23875
24132
|
mutationHandlers: { mutate: t, error: n },
|
|
23876
24133
|
queryClient: r,
|
|
@@ -23890,7 +24147,7 @@ function uE({
|
|
|
23890
24147
|
});
|
|
23891
24148
|
return a;
|
|
23892
24149
|
}
|
|
23893
|
-
function
|
|
24150
|
+
function gE({
|
|
23894
24151
|
queryFn: e,
|
|
23895
24152
|
queryKey: t,
|
|
23896
24153
|
rankingMethod: n
|
|
@@ -23909,7 +24166,7 @@ function lE({
|
|
|
23909
24166
|
fetchNextPage: o
|
|
23910
24167
|
};
|
|
23911
24168
|
}
|
|
23912
|
-
function
|
|
24169
|
+
function vE({
|
|
23913
24170
|
mutationFn: e,
|
|
23914
24171
|
mutationHandlers: { mutate: t, error: n },
|
|
23915
24172
|
queryClient: r,
|
|
@@ -23929,7 +24186,7 @@ function cE({
|
|
|
23929
24186
|
});
|
|
23930
24187
|
return a;
|
|
23931
24188
|
}
|
|
23932
|
-
function
|
|
24189
|
+
function bE({
|
|
23933
24190
|
mutationFn: e,
|
|
23934
24191
|
mutationHandlers: { mutate: t, error: n }
|
|
23935
24192
|
}) {
|
|
@@ -23940,7 +24197,7 @@ function dE({
|
|
|
23940
24197
|
});
|
|
23941
24198
|
return r;
|
|
23942
24199
|
}
|
|
23943
|
-
function
|
|
24200
|
+
function yE({
|
|
23944
24201
|
mutationFn: e,
|
|
23945
24202
|
mutationHandlers: { mutate: t, error: n },
|
|
23946
24203
|
user: r
|
|
@@ -23955,7 +24212,7 @@ function fE({
|
|
|
23955
24212
|
});
|
|
23956
24213
|
return i;
|
|
23957
24214
|
}
|
|
23958
|
-
function
|
|
24215
|
+
function DE({
|
|
23959
24216
|
mutationFn: e,
|
|
23960
24217
|
mutationHandlers: { mutate: t, error: n },
|
|
23961
24218
|
user: r
|
|
@@ -23970,7 +24227,7 @@ function hE({
|
|
|
23970
24227
|
});
|
|
23971
24228
|
return i;
|
|
23972
24229
|
}
|
|
23973
|
-
const
|
|
24230
|
+
const rk = ({
|
|
23974
24231
|
basePath: e,
|
|
23975
24232
|
parentId: t,
|
|
23976
24233
|
isMember: n,
|
|
@@ -23997,7 +24254,7 @@ const ek = ({
|
|
|
23997
24254
|
hasNextPage: k,
|
|
23998
24255
|
isLoading: E,
|
|
23999
24256
|
mutations: { create: w, edit: _, remove: S, like: z, unlike: O, pin: L, unpin: M }
|
|
24000
|
-
} =
|
|
24257
|
+
} = mE({
|
|
24001
24258
|
queryKey: [e, t, "activities", m],
|
|
24002
24259
|
queryFns: i,
|
|
24003
24260
|
rankingMethod: m
|
|
@@ -24111,7 +24368,7 @@ const ek = ({
|
|
|
24111
24368
|
name: (ve = (J = ne == null ? void 0 : ne.user) == null ? void 0 : J.data) == null ? void 0 : ve.name
|
|
24112
24369
|
};
|
|
24113
24370
|
}) : !1;
|
|
24114
|
-
return /* @__PURE__ */ c.jsx(
|
|
24371
|
+
return /* @__PURE__ */ c.jsx(Ir, { children: /* @__PURE__ */ c.jsx(
|
|
24115
24372
|
ma,
|
|
24116
24373
|
{
|
|
24117
24374
|
content: {
|
|
@@ -24196,7 +24453,7 @@ const ek = ({
|
|
|
24196
24453
|
),
|
|
24197
24454
|
/* @__PURE__ */ c.jsx(rh, { form: u })
|
|
24198
24455
|
] });
|
|
24199
|
-
},
|
|
24456
|
+
}, ik = {
|
|
24200
24457
|
next: "id_lt=67ef0342-6f6e-4807-beea-5a9184ec140c&limit=5",
|
|
24201
24458
|
results: [
|
|
24202
24459
|
{
|
|
@@ -24753,7 +25010,7 @@ const ek = ({
|
|
|
24753
25010
|
],
|
|
24754
25011
|
duration: "6.48ms"
|
|
24755
25012
|
};
|
|
24756
|
-
function
|
|
25013
|
+
function xE({
|
|
24757
25014
|
mutationFn: e,
|
|
24758
25015
|
mutationHandlers: { mutate: t, error: n },
|
|
24759
25016
|
queryClient: r,
|
|
@@ -24763,7 +25020,7 @@ function mE({
|
|
|
24763
25020
|
const { mutate: s } = ut({
|
|
24764
25021
|
mutationFn: e,
|
|
24765
25022
|
onMutate: (o) => t((l) => {
|
|
24766
|
-
const u = kc({ reply:
|
|
25023
|
+
const u = kc({ reply: iE(o), user: a });
|
|
24767
25024
|
return na(u, l, {
|
|
24768
25025
|
replace: !1,
|
|
24769
25026
|
append: (o == null ? void 0 : o.replyId) !== void 0
|
|
@@ -24782,7 +25039,7 @@ function mE({
|
|
|
24782
25039
|
});
|
|
24783
25040
|
return s;
|
|
24784
25041
|
}
|
|
24785
|
-
function
|
|
25042
|
+
function wE({
|
|
24786
25043
|
mutationFn: e,
|
|
24787
25044
|
mutationHandlers: { mutate: t, error: n }
|
|
24788
25045
|
}) {
|
|
@@ -24807,7 +25064,7 @@ function eh({
|
|
|
24807
25064
|
},
|
|
24808
25065
|
user: l,
|
|
24809
25066
|
...u
|
|
24810
|
-
}, h =
|
|
25067
|
+
}, h = xE({ ...d, mutationFn: e }), m = wE({ ...d, mutationFn: t }), p = CE({ ...d, mutationFn: n }), g = _E({ ...d, mutationFn: i }), f = kE({ ...d, mutationFn: a }), { replies: b, ...v } = EE({ queryKey: s, queryFn: r });
|
|
24811
25068
|
return {
|
|
24812
25069
|
replies: b,
|
|
24813
25070
|
mutations: {
|
|
@@ -24821,7 +25078,7 @@ function eh({
|
|
|
24821
25078
|
...v
|
|
24822
25079
|
};
|
|
24823
25080
|
}
|
|
24824
|
-
function
|
|
25081
|
+
function CE({
|
|
24825
25082
|
mutationFn: e,
|
|
24826
25083
|
mutationHandlers: { mutate: t, error: n },
|
|
24827
25084
|
queryClient: r,
|
|
@@ -24841,7 +25098,7 @@ function gE({
|
|
|
24841
25098
|
});
|
|
24842
25099
|
return a;
|
|
24843
25100
|
}
|
|
24844
|
-
function
|
|
25101
|
+
function EE({ queryFn: e, queryKey: t }) {
|
|
24845
25102
|
const { data: n, error: r, isLoading: i, hasNextPage: a, fetchNextPage: s } = Qs({
|
|
24846
25103
|
queryKey: t,
|
|
24847
25104
|
queryFn: e,
|
|
@@ -24856,7 +25113,7 @@ function vE({ queryFn: e, queryKey: t }) {
|
|
|
24856
25113
|
fetchNextPage: s
|
|
24857
25114
|
};
|
|
24858
25115
|
}
|
|
24859
|
-
function
|
|
25116
|
+
function _E({
|
|
24860
25117
|
mutationFn: e,
|
|
24861
25118
|
mutationHandlers: { mutate: t, error: n }
|
|
24862
25119
|
}) {
|
|
@@ -24867,7 +25124,7 @@ function bE({
|
|
|
24867
25124
|
});
|
|
24868
25125
|
return r;
|
|
24869
25126
|
}
|
|
24870
|
-
function
|
|
25127
|
+
function kE({
|
|
24871
25128
|
mutationFn: e,
|
|
24872
25129
|
mutationHandlers: { mutate: t, error: n },
|
|
24873
25130
|
user: r
|
|
@@ -24876,13 +25133,13 @@ function yE({
|
|
|
24876
25133
|
mutationFn: e,
|
|
24877
25134
|
onMutate: ({ replyId: a }) => t((s) => {
|
|
24878
25135
|
const o = qt(a, s);
|
|
24879
|
-
return o &&
|
|
25136
|
+
return o && aE({ reply: o, user: r }), s;
|
|
24880
25137
|
}),
|
|
24881
25138
|
onError: n
|
|
24882
25139
|
});
|
|
24883
25140
|
return i;
|
|
24884
25141
|
}
|
|
24885
|
-
const
|
|
25142
|
+
const FE = ({
|
|
24886
25143
|
basePath: e,
|
|
24887
25144
|
parentId: t,
|
|
24888
25145
|
activityId: n,
|
|
@@ -24928,7 +25185,7 @@ const DE = ({
|
|
|
24928
25185
|
}
|
|
24929
25186
|
),
|
|
24930
25187
|
E && /* @__PURE__ */ c.jsx(
|
|
24931
|
-
|
|
25188
|
+
WE,
|
|
24932
25189
|
{
|
|
24933
25190
|
loadMore: { isLoading: p, hasNextPage: m, loadNextPage: () => h() },
|
|
24934
25191
|
form: {
|
|
@@ -25041,7 +25298,7 @@ const DE = ({
|
|
|
25041
25298
|
)
|
|
25042
25299
|
] });
|
|
25043
25300
|
};
|
|
25044
|
-
const
|
|
25301
|
+
const AE = ({
|
|
25045
25302
|
basePath: e,
|
|
25046
25303
|
parentId: t,
|
|
25047
25304
|
activityId: n,
|
|
@@ -25064,7 +25321,7 @@ const xE = ({
|
|
|
25064
25321
|
z(m.length), p();
|
|
25065
25322
|
}, [S, z] = ue(null);
|
|
25066
25323
|
return Rc([f]), Xf(), /* @__PURE__ */ c.jsxs("section", { className: "replies-feed", children: [
|
|
25067
|
-
/* @__PURE__ */ c.jsx(
|
|
25324
|
+
/* @__PURE__ */ c.jsx(qE, { type: "comment", responses: r, isLoading: f }),
|
|
25068
25325
|
/* @__PURE__ */ c.jsx(
|
|
25069
25326
|
nh,
|
|
25070
25327
|
{
|
|
@@ -25114,7 +25371,7 @@ const xE = ({
|
|
|
25114
25371
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
25115
25372
|
((te = (W = O == null ? void 0 : O.data) == null ? void 0 : W.content) == null ? void 0 : te.text) || ""
|
|
25116
25373
|
);
|
|
25117
|
-
return /* @__PURE__ */ c.jsx(
|
|
25374
|
+
return /* @__PURE__ */ c.jsx(WC, { children: /* @__PURE__ */ c.jsx(
|
|
25118
25375
|
ma,
|
|
25119
25376
|
{
|
|
25120
25377
|
isCommunity: !0,
|
|
@@ -25165,7 +25422,7 @@ const xE = ({
|
|
|
25165
25422
|
]
|
|
25166
25423
|
},
|
|
25167
25424
|
children: /* @__PURE__ */ c.jsx(
|
|
25168
|
-
|
|
25425
|
+
FE,
|
|
25169
25426
|
{
|
|
25170
25427
|
basePath: e,
|
|
25171
25428
|
parentId: t,
|
|
@@ -25202,7 +25459,7 @@ const xE = ({
|
|
|
25202
25459
|
/* @__PURE__ */ c.jsx(rh, { form: d })
|
|
25203
25460
|
] });
|
|
25204
25461
|
};
|
|
25205
|
-
function
|
|
25462
|
+
function BE({ queryFn: e, queryKey: t }) {
|
|
25206
25463
|
const { data: n, error: r, isLoading: i, hasNextPage: a, fetchNextPage: s, refetch: o } = Qs({
|
|
25207
25464
|
queryKey: t,
|
|
25208
25465
|
queryFn: e,
|
|
@@ -25219,21 +25476,21 @@ function wE({ queryFn: e, queryKey: t }) {
|
|
|
25219
25476
|
refetch: o
|
|
25220
25477
|
};
|
|
25221
25478
|
}
|
|
25222
|
-
function
|
|
25223
|
-
const { likes: n, ...r } =
|
|
25479
|
+
function TE({ queryFns: { list: e }, queryKey: t }) {
|
|
25480
|
+
const { likes: n, ...r } = BE({ queryKey: t, queryFn: e });
|
|
25224
25481
|
return {
|
|
25225
25482
|
likes: n,
|
|
25226
25483
|
...r
|
|
25227
25484
|
};
|
|
25228
25485
|
}
|
|
25229
|
-
function
|
|
25486
|
+
function SE({
|
|
25230
25487
|
basePath: e,
|
|
25231
25488
|
parentId: t,
|
|
25232
25489
|
activityId: n,
|
|
25233
25490
|
likeCount: r,
|
|
25234
25491
|
functions: i
|
|
25235
25492
|
}) {
|
|
25236
|
-
const { likes: a, fetchNextPage: s, hasNextPage: o, refetch: l } =
|
|
25493
|
+
const { likes: a, fetchNextPage: s, hasNextPage: o, refetch: l } = TE({
|
|
25237
25494
|
queryKey: [e, t, n, "likes"],
|
|
25238
25495
|
queryFns: i.likes
|
|
25239
25496
|
});
|
|
@@ -25242,7 +25499,7 @@ function EE({
|
|
|
25242
25499
|
}, [l]);
|
|
25243
25500
|
const u = a.map(({ user: d }) => d).map((d) => d ? Jr(d) : void 0).filter((d) => d && typeof d != "string");
|
|
25244
25501
|
return /* @__PURE__ */ c.jsx("section", { className: "likes-feed", children: /* @__PURE__ */ c.jsx(
|
|
25245
|
-
|
|
25502
|
+
zC,
|
|
25246
25503
|
{
|
|
25247
25504
|
members: {
|
|
25248
25505
|
data: u,
|
|
@@ -25256,7 +25513,7 @@ function EE({
|
|
|
25256
25513
|
}
|
|
25257
25514
|
) });
|
|
25258
25515
|
}
|
|
25259
|
-
const
|
|
25516
|
+
const jE = ({
|
|
25260
25517
|
showModal: e = !0,
|
|
25261
25518
|
activityId: t,
|
|
25262
25519
|
functions: { onClose: n, likes: r },
|
|
@@ -25280,7 +25537,7 @@ const _E = ({
|
|
|
25280
25537
|
}),
|
|
25281
25538
|
maxWidth: 600,
|
|
25282
25539
|
children: /* @__PURE__ */ c.jsx(
|
|
25283
|
-
|
|
25540
|
+
SE,
|
|
25284
25541
|
{
|
|
25285
25542
|
activityId: t,
|
|
25286
25543
|
basePath: s,
|
|
@@ -25293,263 +25550,10 @@ const _E = ({
|
|
|
25293
25550
|
)
|
|
25294
25551
|
}
|
|
25295
25552
|
);
|
|
25296
|
-
},
|
|
25297
|
-
|
|
25298
|
-
|
|
25299
|
-
|
|
25300
|
-
}) => ({
|
|
25301
|
-
...e && { questionSlug: e },
|
|
25302
|
-
...t && { answerSlug: t },
|
|
25303
|
-
...n && { replySlug: n }
|
|
25304
|
-
}), FE = (e, t = 10) => !e || e.length === 0 ? [] : e.slice(0, t);
|
|
25305
|
-
function AE(e) {
|
|
25306
|
-
return Re(
|
|
25307
|
-
(t) => {
|
|
25308
|
-
var s, o, l, u;
|
|
25309
|
-
if (!t || !["ArrowUp", "ArrowDown"].includes(t.key || ""))
|
|
25310
|
-
return;
|
|
25311
|
-
t.stopPropagation(), t.preventDefault();
|
|
25312
|
-
const n = t.key === "ArrowUp" ? "up" : "down", r = (s = t.currentTarget) == null ? void 0 : s.parentElement;
|
|
25313
|
-
let i = r == null ? void 0 : r.nextElementSibling;
|
|
25314
|
-
if (n === "up") {
|
|
25315
|
-
const d = r == null ? void 0 : r.previousElementSibling;
|
|
25316
|
-
d ? i = d : (i = (o = r == null ? void 0 : r.parentElement) == null ? void 0 : o.lastElementChild, (i == null ? void 0 : i.getAttribute("data-index")) === "-1" && (i = i == null ? void 0 : i.previousElementSibling));
|
|
25317
|
-
} else
|
|
25318
|
-
(!i || (i == null ? void 0 : i.getAttribute("data-index")) === "-1") && (i = (l = r == null ? void 0 : r.parentElement) == null ? void 0 : l.firstElementChild);
|
|
25319
|
-
if (!i)
|
|
25320
|
-
return;
|
|
25321
|
-
const a = Number((i == null ? void 0 : i.getAttribute("data-index")) || "0");
|
|
25322
|
-
e([{ type: "tabbableLink", value: a }]), (u = i == null ? void 0 : i.querySelector("a,button")) == null || u.focus();
|
|
25323
|
-
},
|
|
25324
|
-
[e]
|
|
25325
|
-
);
|
|
25326
|
-
}
|
|
25327
|
-
let Mr = !1;
|
|
25328
|
-
const ds = () => {
|
|
25329
|
-
Mr !== !1 && (clearTimeout(Mr), Mr = !1);
|
|
25330
|
-
}, BE = 5;
|
|
25331
|
-
let fs = null;
|
|
25332
|
-
const TE = ({
|
|
25333
|
-
element: e = "div",
|
|
25334
|
-
likes: t = 0,
|
|
25335
|
-
peopleWhoLiked: n = !1,
|
|
25336
|
-
isShort: r = !0,
|
|
25337
|
-
userLiked: i = !1,
|
|
25338
|
-
content: a = { type: "reply", slugs: {} },
|
|
25339
|
-
canLike: s = !0,
|
|
25340
|
-
activityId: o,
|
|
25341
|
-
basePath: l,
|
|
25342
|
-
parentId: u,
|
|
25343
|
-
badges: d,
|
|
25344
|
-
functions: {
|
|
25345
|
-
createLike: h = () => {
|
|
25346
|
-
},
|
|
25347
|
-
deleteLike: m = () => {
|
|
25348
|
-
},
|
|
25349
|
-
listLikes: p = async () => ({ next: "", results: [] })
|
|
25350
|
-
}
|
|
25351
|
-
}) => {
|
|
25352
|
-
const g = le(), f = {
|
|
25353
|
-
numberOfLikes: t,
|
|
25354
|
-
userLikedContent: i,
|
|
25355
|
-
ignoreInteractions: !1,
|
|
25356
|
-
showLikers: !1,
|
|
25357
|
-
tabbableLink: 0,
|
|
25358
|
-
showLikesModal: !1
|
|
25359
|
-
}, [b, v] = dr(ia, f), {
|
|
25360
|
-
numberOfLikes: x,
|
|
25361
|
-
userLikedContent: k,
|
|
25362
|
-
ignoreInteractions: E,
|
|
25363
|
-
showLikers: w,
|
|
25364
|
-
tabbableLink: _,
|
|
25365
|
-
showLikesModal: S
|
|
25366
|
-
} = b, z = AE(v);
|
|
25367
|
-
ce(() => {
|
|
25368
|
-
v([{ type: "userLikedContent", value: i }]);
|
|
25369
|
-
}, [i]);
|
|
25370
|
-
const O = Zt(
|
|
25371
|
-
() => FE(n, BE),
|
|
25372
|
-
[n]
|
|
25373
|
-
), L = (T) => {
|
|
25374
|
-
if (T.preventDefault(), T.stopPropagation(), v([{ type: "showLikers", value: !1 }]), Mr)
|
|
25375
|
-
return ds(), !1;
|
|
25376
|
-
if (ds(), E || !s)
|
|
25377
|
-
return !1;
|
|
25378
|
-
Mr = setTimeout(M, 350);
|
|
25379
|
-
}, M = async () => {
|
|
25380
|
-
if (ds(), E || !s)
|
|
25381
|
-
return !1;
|
|
25382
|
-
let T = k ? x - 1 : x + 1;
|
|
25383
|
-
T < 0 && (T = 0), v([
|
|
25384
|
-
{ type: "ignoreInteractions", value: !0 },
|
|
25385
|
-
{ type: "numberOfLikes", value: T },
|
|
25386
|
-
{ type: "userLikedContent", value: !k }
|
|
25387
|
-
]);
|
|
25388
|
-
try {
|
|
25389
|
-
if (a && a.slugs) {
|
|
25390
|
-
const j = kE(a.slugs);
|
|
25391
|
-
k ? await m(j) : await h({
|
|
25392
|
-
...j,
|
|
25393
|
-
payload: { contentPath: window.location.pathname }
|
|
25394
|
-
});
|
|
25395
|
-
}
|
|
25396
|
-
} catch {
|
|
25397
|
-
v([
|
|
25398
|
-
{ type: "numberOfLikes", value: t },
|
|
25399
|
-
{ type: "userLikedContent", value: i }
|
|
25400
|
-
]);
|
|
25401
|
-
} finally {
|
|
25402
|
-
v([{ type: "ignoreInteractions", value: !1 }]);
|
|
25403
|
-
}
|
|
25404
|
-
}, A = () => {
|
|
25405
|
-
fs = setTimeout(() => {
|
|
25406
|
-
v([{ type: "showLikers", value: !1 }]);
|
|
25407
|
-
}, 500);
|
|
25408
|
-
}, C = () => {
|
|
25409
|
-
fs && clearTimeout(fs);
|
|
25410
|
-
};
|
|
25411
|
-
return re.createElement(
|
|
25412
|
-
e,
|
|
25413
|
-
{
|
|
25414
|
-
className: "likes-wrapper",
|
|
25415
|
-
onKeyDown: (T) => {
|
|
25416
|
-
T.key === "Escape" && v([{ type: "showLikers", value: !1 }]);
|
|
25417
|
-
},
|
|
25418
|
-
onMouseEnter: () => {
|
|
25419
|
-
C(), v([{ type: "showLikers", value: !0 }]);
|
|
25420
|
-
},
|
|
25421
|
-
onMouseLeave: () => {
|
|
25422
|
-
A();
|
|
25423
|
-
}
|
|
25424
|
-
},
|
|
25425
|
-
/* @__PURE__ */ c.jsxs(c.Fragment, { children: [
|
|
25426
|
-
/* @__PURE__ */ c.jsx(
|
|
25427
|
-
Xi,
|
|
25428
|
-
{
|
|
25429
|
-
className: V("discussion-button text-medium action-button", {
|
|
25430
|
-
"show-spinner": E,
|
|
25431
|
-
"is-liked": k,
|
|
25432
|
-
disabled: !s
|
|
25433
|
-
}),
|
|
25434
|
-
icon: {
|
|
25435
|
-
icon: k ? "heart" : "heart_empty",
|
|
25436
|
-
animate: "bounce"
|
|
25437
|
-
},
|
|
25438
|
-
disabled: !s,
|
|
25439
|
-
"data-testid": "like-button",
|
|
25440
|
-
"data-gtm-event-context": "Likes",
|
|
25441
|
-
"data-gtm-event-type": `like-${a.type}-click`,
|
|
25442
|
-
onClick: L,
|
|
25443
|
-
screenreaderText: s ? g.formatMessage(
|
|
25444
|
-
{
|
|
25445
|
-
id: `discussion_likes_${k ? "unlike" : "like"}`
|
|
25446
|
-
},
|
|
25447
|
-
{
|
|
25448
|
-
action: g.formatMessage({
|
|
25449
|
-
id: `discussion_action_${a.type}`
|
|
25450
|
-
})
|
|
25451
|
-
}
|
|
25452
|
-
) : !1,
|
|
25453
|
-
"aria-pressed": k,
|
|
25454
|
-
children: /* @__PURE__ */ c.jsx("span", { "data-testid": "number-of-likes", className: "number-of-likes", children: g.formatMessage(
|
|
25455
|
-
{ id: `discussion_likes${r ? "_short" : ""}` },
|
|
25456
|
-
{ number: x }
|
|
25457
|
-
) })
|
|
25458
|
-
}
|
|
25459
|
-
),
|
|
25460
|
-
n && /* @__PURE__ */ c.jsxs(c.Fragment, { children: [
|
|
25461
|
-
/* @__PURE__ */ c.jsx(
|
|
25462
|
-
Ue,
|
|
25463
|
-
{
|
|
25464
|
-
"data-testid": "like-a11y-button",
|
|
25465
|
-
element: "button",
|
|
25466
|
-
className: "tertiary small icon navigation_arrow",
|
|
25467
|
-
onFocus: () => {
|
|
25468
|
-
C();
|
|
25469
|
-
},
|
|
25470
|
-
onBlur: () => A,
|
|
25471
|
-
onClick: (T) => {
|
|
25472
|
-
var H;
|
|
25473
|
-
T.preventDefault(), T.stopPropagation(), C(), v([{ type: "showLikers", value: !0 }]);
|
|
25474
|
-
const j = (H = T.currentTarget.nextSibling) == null ? void 0 : H.childNodes[0];
|
|
25475
|
-
if (j) {
|
|
25476
|
-
const U = j.querySelector(
|
|
25477
|
-
"li:first-child a"
|
|
25478
|
-
);
|
|
25479
|
-
U && (v([{ type: "tabbableLink", value: 0 }]), setTimeout(() => {
|
|
25480
|
-
U.focus();
|
|
25481
|
-
}, 100));
|
|
25482
|
-
}
|
|
25483
|
-
},
|
|
25484
|
-
onKeyDown: (T) => {
|
|
25485
|
-
T.key === "Escape" && (T.preventDefault(), T.stopPropagation(), A());
|
|
25486
|
-
},
|
|
25487
|
-
"aria-expanded": w,
|
|
25488
|
-
"aria-controls": `likes-tooltip-${a.slug}`,
|
|
25489
|
-
children: /* @__PURE__ */ c.jsx(Ue, { showOnFocus: !1, children: g.formatMessage(
|
|
25490
|
-
{ id: "discussion_likes_show" },
|
|
25491
|
-
{ action: a.type }
|
|
25492
|
-
) })
|
|
25493
|
-
}
|
|
25494
|
-
),
|
|
25495
|
-
/* @__PURE__ */ c.jsx(
|
|
25496
|
-
hr,
|
|
25497
|
-
{
|
|
25498
|
-
id: `likes-tooltip-${a.slug}`,
|
|
25499
|
-
isOpen: w,
|
|
25500
|
-
isLoading: n.length === 0,
|
|
25501
|
-
children: n.length && /* @__PURE__ */ c.jsxs("ul", { children: [
|
|
25502
|
-
O.map((T, j) => {
|
|
25503
|
-
if (typeof T == "string")
|
|
25504
|
-
return null;
|
|
25505
|
-
const H = {};
|
|
25506
|
-
return _ !== j && (H.tabIndex = -1), /* @__PURE__ */ c.jsx("li", { "data-index": j, children: /* @__PURE__ */ c.jsx(
|
|
25507
|
-
In,
|
|
25508
|
-
{
|
|
25509
|
-
href: T.id ? `/profiles/${T.id}` : void 0,
|
|
25510
|
-
gtmContext: "Likes",
|
|
25511
|
-
gtmType: "liked-name-click",
|
|
25512
|
-
onFocus: () => C(),
|
|
25513
|
-
onKeyDown: z,
|
|
25514
|
-
...H,
|
|
25515
|
-
children: T.name ? T.name : /* @__PURE__ */ c.jsx("span", { className: "deleted-user", children: g.formatMessage({ id: "member_deleted" }) })
|
|
25516
|
-
}
|
|
25517
|
-
) }, T.id || window.btoa(T.name || ""));
|
|
25518
|
-
}),
|
|
25519
|
-
/* @__PURE__ */ c.jsx("li", { "data-index": O.length, className: "show-all", children: /* @__PURE__ */ c.jsx(
|
|
25520
|
-
Te,
|
|
25521
|
-
{
|
|
25522
|
-
variant: "tertiary",
|
|
25523
|
-
onClick: () => {
|
|
25524
|
-
C(), A(), v([{ type: "showLikesModal", value: !0 }]);
|
|
25525
|
-
},
|
|
25526
|
-
onKeyDown: z,
|
|
25527
|
-
children: g.formatMessage({ id: "discussion_likes_showAll" })
|
|
25528
|
-
}
|
|
25529
|
-
) })
|
|
25530
|
-
] })
|
|
25531
|
-
}
|
|
25532
|
-
),
|
|
25533
|
-
/* @__PURE__ */ c.jsx(Gr, { children: S && /* @__PURE__ */ c.jsx(
|
|
25534
|
-
_E,
|
|
25535
|
-
{
|
|
25536
|
-
activityId: o,
|
|
25537
|
-
basePath: l,
|
|
25538
|
-
parentId: u,
|
|
25539
|
-
likeCount: t,
|
|
25540
|
-
showModal: S,
|
|
25541
|
-
functions: {
|
|
25542
|
-
onClose: () => v([{ type: "showLikesModal", value: !1 }]),
|
|
25543
|
-
likes: {
|
|
25544
|
-
list: p
|
|
25545
|
-
}
|
|
25546
|
-
}
|
|
25547
|
-
}
|
|
25548
|
-
) })
|
|
25549
|
-
] })
|
|
25550
|
-
] })
|
|
25551
|
-
);
|
|
25552
|
-
}, hs = ({
|
|
25553
|
+
}, OE = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
25554
|
+
__proto__: null,
|
|
25555
|
+
default: jE
|
|
25556
|
+
}, Symbol.toStringTag, { value: "Module" })), hs = ({
|
|
25553
25557
|
children: e,
|
|
25554
25558
|
class: t,
|
|
25555
25559
|
...n
|
|
@@ -25559,10 +25563,10 @@ const TE = ({
|
|
|
25559
25563
|
class: V("subtle", t)
|
|
25560
25564
|
};
|
|
25561
25565
|
return /* @__PURE__ */ c.jsx("blockquote", { ...r, children: e });
|
|
25562
|
-
},
|
|
25566
|
+
}, PE = 280, th = async (e, t, n, r = () => Promise.resolve([])) => {
|
|
25563
25567
|
let i = t ? ir(
|
|
25564
25568
|
e,
|
|
25565
|
-
typeof t == "number" ? t :
|
|
25569
|
+
typeof t == "number" ? t : PE
|
|
25566
25570
|
) : e;
|
|
25567
25571
|
i = i.trim();
|
|
25568
25572
|
const a = `<br>
|
|
@@ -25575,7 +25579,7 @@ const TE = ({
|
|
|
25575
25579
|
listMembers: r
|
|
25576
25580
|
}) : i;
|
|
25577
25581
|
};
|
|
25578
|
-
const
|
|
25582
|
+
const NE = 3e3, ME = ({
|
|
25579
25583
|
url: e,
|
|
25580
25584
|
gtm: t = { context: "ShareLink", event: "copy-link-click" }
|
|
25581
25585
|
}) => {
|
|
@@ -25603,7 +25607,7 @@ const jE = 3e3, OE = ({
|
|
|
25603
25607
|
});
|
|
25604
25608
|
document.dispatchEvent(s), setTimeout(() => {
|
|
25605
25609
|
a({ isOpen: !1, isCopied: !1 });
|
|
25606
|
-
},
|
|
25610
|
+
}, NE);
|
|
25607
25611
|
});
|
|
25608
25612
|
},
|
|
25609
25613
|
"data-gtm-event-context": t.context,
|
|
@@ -25614,7 +25618,7 @@ const jE = 3e3, OE = ({
|
|
|
25614
25618
|
}
|
|
25615
25619
|
),
|
|
25616
25620
|
/* @__PURE__ */ c.jsx(
|
|
25617
|
-
|
|
25621
|
+
mr,
|
|
25618
25622
|
{
|
|
25619
25623
|
className: V({
|
|
25620
25624
|
copied: i.isCopied
|
|
@@ -25627,7 +25631,7 @@ const jE = 3e3, OE = ({
|
|
|
25627
25631
|
}
|
|
25628
25632
|
)
|
|
25629
25633
|
] });
|
|
25630
|
-
}, Ut = "discussion_",
|
|
25634
|
+
}, Ut = "discussion_", RE = 195;
|
|
25631
25635
|
let xi = null;
|
|
25632
25636
|
const ma = ({
|
|
25633
25637
|
element: e = "div",
|
|
@@ -25904,7 +25908,7 @@ const ma = ({
|
|
|
25904
25908
|
}
|
|
25905
25909
|
) : l.post ? /* @__PURE__ */ c.jsxs("a", { href: l.post, children: [
|
|
25906
25910
|
(W == null ? void 0 : W.title) && /* @__PURE__ */ c.jsx("p", { className: "content-title", children: W == null ? void 0 : W.title }),
|
|
25907
|
-
W.postBody.length >
|
|
25911
|
+
W.postBody.length > RE ? /* @__PURE__ */ c.jsx(
|
|
25908
25912
|
am,
|
|
25909
25913
|
{
|
|
25910
25914
|
text: W.postBody,
|
|
@@ -25944,7 +25948,7 @@ const ma = ({
|
|
|
25944
25948
|
"data-testid": `${t.type}-actions`,
|
|
25945
25949
|
children: [
|
|
25946
25950
|
!s.likes && /* @__PURE__ */ c.jsx(
|
|
25947
|
-
|
|
25951
|
+
JC,
|
|
25948
25952
|
{
|
|
25949
25953
|
element: "li",
|
|
25950
25954
|
likes: D,
|
|
@@ -25997,7 +26001,7 @@ const ma = ({
|
|
|
25997
26001
|
}
|
|
25998
26002
|
) }),
|
|
25999
26003
|
p && /* @__PURE__ */ c.jsx(
|
|
26000
|
-
|
|
26004
|
+
ME,
|
|
26001
26005
|
{
|
|
26002
26006
|
url: (Ze = t.slugs) != null && Ze.reply ? `${window.location.origin}${(Z = t.slugs) == null ? void 0 : Z.question}/${(se = t.slugs) == null ? void 0 : se.answer}#${(pe = t.slugs) == null ? void 0 : pe.reply}` : `${window.location.origin}${(be = t.slugs) == null ? void 0 : be.question}/${(ke = t.slugs) == null ? void 0 : ke.answer}`,
|
|
26003
26007
|
gtm: { context: d, event: `copy-link-${t.type}-click` }
|
|
@@ -26070,9 +26074,9 @@ const ma = ({
|
|
|
26070
26074
|
] })
|
|
26071
26075
|
});
|
|
26072
26076
|
};
|
|
26073
|
-
const
|
|
26074
|
-
() => Promise.resolve().then(() =>
|
|
26075
|
-
),
|
|
26077
|
+
const IE = dr(
|
|
26078
|
+
() => Promise.resolve().then(() => JE)
|
|
26079
|
+
), $E = 65, LE = ({ forceShow: e, form: t, className: n }) => {
|
|
26076
26080
|
const r = le(), i = "discussionFormCard_", a = "DiscardDraftModal", o = Ie(vt) || "community", l = ro(o);
|
|
26077
26081
|
l.name || (l.name = r.formatMessage({
|
|
26078
26082
|
id: `member_${typeof o == "string" ? o : "community"}`
|
|
@@ -26087,7 +26091,7 @@ const NE = Kr(
|
|
|
26087
26091
|
(async () => {
|
|
26088
26092
|
const v = await th(
|
|
26089
26093
|
m.title || m.body || "",
|
|
26090
|
-
|
|
26094
|
+
$E,
|
|
26091
26095
|
m.mentions
|
|
26092
26096
|
);
|
|
26093
26097
|
p((x) => ({ ...x, prettifiedText: v }));
|
|
@@ -26183,7 +26187,7 @@ const NE = Kr(
|
|
|
26183
26187
|
),
|
|
26184
26188
|
/* @__PURE__ */ c.jsxs(Gr, { children: [
|
|
26185
26189
|
/* @__PURE__ */ c.jsx(
|
|
26186
|
-
|
|
26190
|
+
IE,
|
|
26187
26191
|
{
|
|
26188
26192
|
showModal: d.form,
|
|
26189
26193
|
functions: {
|
|
@@ -26234,7 +26238,7 @@ const NE = Kr(
|
|
|
26234
26238
|
)
|
|
26235
26239
|
] })
|
|
26236
26240
|
] });
|
|
26237
|
-
},
|
|
26241
|
+
}, zE = dr(() => Promise.resolve().then(() => VC)), nh = ({
|
|
26238
26242
|
isCard: e = !1,
|
|
26239
26243
|
form: t,
|
|
26240
26244
|
parentId: n,
|
|
@@ -26268,7 +26272,7 @@ const NE = Kr(
|
|
|
26268
26272
|
...h,
|
|
26269
26273
|
id: `add-post-${h.id || ""}`
|
|
26270
26274
|
};
|
|
26271
|
-
return e ? /* @__PURE__ */ c.jsx(
|
|
26275
|
+
return e ? /* @__PURE__ */ c.jsx(LE, { form: m }) : /* @__PURE__ */ c.jsx(zE, { ...m });
|
|
26272
26276
|
}, rh = ({ form: e }) => {
|
|
26273
26277
|
const t = Ie(vt), n = le(), [r, i] = ue(!1), a = () => {
|
|
26274
26278
|
Yh(t) || i(!0);
|
|
@@ -26293,7 +26297,7 @@ const NE = Kr(
|
|
|
26293
26297
|
}
|
|
26294
26298
|
);
|
|
26295
26299
|
};
|
|
26296
|
-
const ms = "discussion_responses_",
|
|
26300
|
+
const ms = "discussion_responses_", qE = ({
|
|
26297
26301
|
type: e = "answer",
|
|
26298
26302
|
responses: t = 0,
|
|
26299
26303
|
isLoading: n = !1
|
|
@@ -26307,7 +26311,7 @@ const ms = "discussion_responses_", $E = ({
|
|
|
26307
26311
|
!n && t === 0 && /* @__PURE__ */ c.jsx("p", { children: It(r.formatMessage, `${ms}empty`, e, e) })
|
|
26308
26312
|
] });
|
|
26309
26313
|
};
|
|
26310
|
-
const
|
|
26314
|
+
const WE = ({
|
|
26311
26315
|
loadMore: { isLoading: e, hasNextPage: t, loadNextPage: n } = {
|
|
26312
26316
|
isLoading: !1,
|
|
26313
26317
|
hasNextPage: !1,
|
|
@@ -26358,7 +26362,7 @@ const LE = ({
|
|
|
26358
26362
|
}
|
|
26359
26363
|
);
|
|
26360
26364
|
};
|
|
26361
|
-
function
|
|
26365
|
+
function UE({
|
|
26362
26366
|
mutationFn: e,
|
|
26363
26367
|
mutationHandlers: { mutate: t, error: n }
|
|
26364
26368
|
}) {
|
|
@@ -26369,7 +26373,7 @@ function zE({
|
|
|
26369
26373
|
});
|
|
26370
26374
|
return r;
|
|
26371
26375
|
}
|
|
26372
|
-
function
|
|
26376
|
+
function HE({ queryFn: e, queryKey: t }) {
|
|
26373
26377
|
const {
|
|
26374
26378
|
data: n,
|
|
26375
26379
|
error: r,
|
|
@@ -26386,7 +26390,7 @@ function qE({ queryFn: e, queryKey: t }) {
|
|
|
26386
26390
|
isFetching: a
|
|
26387
26391
|
};
|
|
26388
26392
|
}
|
|
26389
|
-
function
|
|
26393
|
+
function VE({
|
|
26390
26394
|
queryFns: { read: e, edit: t, like: n, unlike: r, pin: i, unpin: a },
|
|
26391
26395
|
queryKey: s
|
|
26392
26396
|
}) {
|
|
@@ -26397,7 +26401,7 @@ function WE({
|
|
|
26397
26401
|
},
|
|
26398
26402
|
user: l,
|
|
26399
26403
|
...u
|
|
26400
|
-
}, h =
|
|
26404
|
+
}, h = UE({ ...d, mutationFn: t }), m = KE({ ...d, mutationFn: n }), p = ZE({ ...d, mutationFn: r }), g = YE({ ...d, mutationFn: i }), f = GE({ ...d, mutationFn: a }), { activity: b, ...v } = HE({ queryKey: s, queryFn: e });
|
|
26401
26405
|
return {
|
|
26402
26406
|
activity: b,
|
|
26403
26407
|
mutations: {
|
|
@@ -26411,7 +26415,7 @@ function WE({
|
|
|
26411
26415
|
...v
|
|
26412
26416
|
};
|
|
26413
26417
|
}
|
|
26414
|
-
function
|
|
26418
|
+
function KE({
|
|
26415
26419
|
mutationFn: e,
|
|
26416
26420
|
mutationHandlers: {
|
|
26417
26421
|
mutate: t,
|
|
@@ -26430,7 +26434,7 @@ function UE({
|
|
|
26430
26434
|
});
|
|
26431
26435
|
return a;
|
|
26432
26436
|
}
|
|
26433
|
-
function
|
|
26437
|
+
function ZE({
|
|
26434
26438
|
mutationFn: e,
|
|
26435
26439
|
mutationHandlers: {
|
|
26436
26440
|
mutate: t,
|
|
@@ -26445,7 +26449,7 @@ function HE({
|
|
|
26445
26449
|
});
|
|
26446
26450
|
return i;
|
|
26447
26451
|
}
|
|
26448
|
-
function
|
|
26452
|
+
function YE({
|
|
26449
26453
|
mutationFn: e,
|
|
26450
26454
|
mutationHandlers: { mutate: t, error: n },
|
|
26451
26455
|
queryClient: r,
|
|
@@ -26461,7 +26465,7 @@ function VE({
|
|
|
26461
26465
|
});
|
|
26462
26466
|
return a;
|
|
26463
26467
|
}
|
|
26464
|
-
function
|
|
26468
|
+
function GE({
|
|
26465
26469
|
mutationFn: e,
|
|
26466
26470
|
mutationHandlers: { mutate: t, error: n },
|
|
26467
26471
|
user: r
|
|
@@ -26473,7 +26477,7 @@ function KE({
|
|
|
26473
26477
|
});
|
|
26474
26478
|
return i;
|
|
26475
26479
|
}
|
|
26476
|
-
const
|
|
26480
|
+
const ak = ({
|
|
26477
26481
|
basePath: e,
|
|
26478
26482
|
parentId: t,
|
|
26479
26483
|
activityId: n,
|
|
@@ -26495,7 +26499,7 @@ const nk = ({
|
|
|
26495
26499
|
error: f,
|
|
26496
26500
|
isLoading: b,
|
|
26497
26501
|
mutations: { edit: v, like: x, unlike: k, pin: E, unpin: w }
|
|
26498
|
-
} =
|
|
26502
|
+
} = VE({
|
|
26499
26503
|
queryFns: s,
|
|
26500
26504
|
queryKey: [e, t, n]
|
|
26501
26505
|
});
|
|
@@ -26591,7 +26595,7 @@ const nk = ({
|
|
|
26591
26595
|
n
|
|
26592
26596
|
),
|
|
26593
26597
|
/* @__PURE__ */ c.jsx(
|
|
26594
|
-
|
|
26598
|
+
AE,
|
|
26595
26599
|
{
|
|
26596
26600
|
basePath: e,
|
|
26597
26601
|
parentId: t,
|
|
@@ -26610,7 +26614,7 @@ const nk = ({
|
|
|
26610
26614
|
)
|
|
26611
26615
|
] });
|
|
26612
26616
|
};
|
|
26613
|
-
const
|
|
26617
|
+
const QE = ({
|
|
26614
26618
|
showModal: e = !0,
|
|
26615
26619
|
functions: t,
|
|
26616
26620
|
form: n,
|
|
@@ -26682,11 +26686,11 @@ const ZE = ({
|
|
|
26682
26686
|
)
|
|
26683
26687
|
}
|
|
26684
26688
|
);
|
|
26685
|
-
},
|
|
26689
|
+
}, JE = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
26686
26690
|
__proto__: null,
|
|
26687
|
-
default:
|
|
26691
|
+
default: QE
|
|
26688
26692
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
26689
|
-
const
|
|
26693
|
+
const sk = ({
|
|
26690
26694
|
className: e,
|
|
26691
26695
|
showModal: t = !0,
|
|
26692
26696
|
title: n,
|
|
@@ -26778,11 +26782,11 @@ const $o = ({
|
|
|
26778
26782
|
] })
|
|
26779
26783
|
}
|
|
26780
26784
|
);
|
|
26781
|
-
},
|
|
26785
|
+
}, XE = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
26782
26786
|
__proto__: null,
|
|
26783
26787
|
default: $o
|
|
26784
26788
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
26785
|
-
const
|
|
26789
|
+
const ok = ({ members: e }) => {
|
|
26786
26790
|
const [t, n] = ue(!1), r = (i) => {
|
|
26787
26791
|
const { fullName: a, jobTitle: s, organisation: o, photo: l } = i || {};
|
|
26788
26792
|
return /* @__PURE__ */ c.jsxs(c.Fragment, { children: [
|
|
@@ -26822,7 +26826,7 @@ const ik = ({ members: e }) => {
|
|
|
26822
26826
|
)
|
|
26823
26827
|
] });
|
|
26824
26828
|
};
|
|
26825
|
-
const
|
|
26829
|
+
const e_ = ({
|
|
26826
26830
|
author: e,
|
|
26827
26831
|
authorCite: t,
|
|
26828
26832
|
content: n,
|
|
@@ -26850,8 +26854,8 @@ const QE = ({
|
|
|
26850
26854
|
}
|
|
26851
26855
|
)
|
|
26852
26856
|
] })
|
|
26853
|
-
] }),
|
|
26854
|
-
const
|
|
26857
|
+
] }), uk = Jt(e_);
|
|
26858
|
+
const lk = ({
|
|
26855
26859
|
items: e = [],
|
|
26856
26860
|
selector: t = "",
|
|
26857
26861
|
className: n = ""
|
|
@@ -26919,7 +26923,7 @@ const Lo = ({
|
|
|
26919
26923
|
}
|
|
26920
26924
|
return n && (u = `${n} ${u}`, l = `${n} ${l}`), r && (u = `${u} ${r}`, l = `${l} ${r}`), /* @__PURE__ */ c.jsx("span", { className: V("time-to-complete", i), "aria-label": u, children: l });
|
|
26921
26925
|
};
|
|
26922
|
-
const
|
|
26926
|
+
const ck = ({ className: e = "", image: t, ...n }) => t ? (typeof t == "string" && (t = {
|
|
26923
26927
|
width: 1080,
|
|
26924
26928
|
height: 200,
|
|
26925
26929
|
type: "image/png",
|
|
@@ -26936,7 +26940,7 @@ const ok = ({ className: e = "", image: t, ...n }) => t ? (typeof t == "string"
|
|
|
26936
26940
|
image: { ...t, aspect: "banner" }
|
|
26937
26941
|
}
|
|
26938
26942
|
)) : null;
|
|
26939
|
-
const
|
|
26943
|
+
const t_ = [
|
|
26940
26944
|
"small",
|
|
26941
26945
|
"span",
|
|
26942
26946
|
"strong",
|
|
@@ -26950,7 +26954,7 @@ const JE = [
|
|
|
26950
26954
|
"h6",
|
|
26951
26955
|
"blockquote",
|
|
26952
26956
|
"q"
|
|
26953
|
-
],
|
|
26957
|
+
], n_ = ({
|
|
26954
26958
|
className: e = "",
|
|
26955
26959
|
content: t,
|
|
26956
26960
|
image: n,
|
|
@@ -26981,7 +26985,7 @@ const JE = [
|
|
|
26981
26985
|
if (typeof t[b] == "object") {
|
|
26982
26986
|
m[b] = t[b];
|
|
26983
26987
|
const { text: v, element: x } = t[b];
|
|
26984
|
-
if (x &&
|
|
26988
|
+
if (x && t_.includes(x.toLowerCase()))
|
|
26985
26989
|
return;
|
|
26986
26990
|
m[b] = {
|
|
26987
26991
|
text: v,
|
|
@@ -27047,8 +27051,8 @@ const JE = [
|
|
|
27047
27051
|
] })
|
|
27048
27052
|
}
|
|
27049
27053
|
);
|
|
27050
|
-
},
|
|
27051
|
-
const
|
|
27054
|
+
}, dk = Jt(n_);
|
|
27055
|
+
const fk = ({
|
|
27052
27056
|
image: e,
|
|
27053
27057
|
variant: t = "default",
|
|
27054
27058
|
children: n,
|
|
@@ -27066,7 +27070,7 @@ const lk = ({
|
|
|
27066
27070
|
}
|
|
27067
27071
|
);
|
|
27068
27072
|
};
|
|
27069
|
-
const
|
|
27073
|
+
const r_ = ({
|
|
27070
27074
|
alignImage: e = "left",
|
|
27071
27075
|
className: t,
|
|
27072
27076
|
content: n,
|
|
@@ -27109,8 +27113,8 @@ const e_ = ({
|
|
|
27109
27113
|
}
|
|
27110
27114
|
)
|
|
27111
27115
|
] });
|
|
27112
|
-
},
|
|
27113
|
-
const
|
|
27116
|
+
}, hk = Jt(r_);
|
|
27117
|
+
const mk = ({
|
|
27114
27118
|
variant: e = "primary",
|
|
27115
27119
|
button: t = null,
|
|
27116
27120
|
title: n,
|
|
@@ -27131,7 +27135,7 @@ const dk = ({
|
|
|
27131
27135
|
children: t.text
|
|
27132
27136
|
}
|
|
27133
27137
|
)
|
|
27134
|
-
] }),
|
|
27138
|
+
] }), i_ = ({ type: e, data: t }) => {
|
|
27135
27139
|
const n = le(), {
|
|
27136
27140
|
answers: r,
|
|
27137
27141
|
createdAt: i,
|
|
@@ -27190,7 +27194,7 @@ const dk = ({
|
|
|
27190
27194
|
] });
|
|
27191
27195
|
}
|
|
27192
27196
|
return null;
|
|
27193
|
-
},
|
|
27197
|
+
}, a_ = {
|
|
27194
27198
|
title: 66,
|
|
27195
27199
|
text: 3e3,
|
|
27196
27200
|
secondaryText: 1e3,
|
|
@@ -27257,7 +27261,7 @@ const dk = ({
|
|
|
27257
27261
|
},
|
|
27258
27262
|
gtmEvent: "learning-hub"
|
|
27259
27263
|
}
|
|
27260
|
-
},
|
|
27264
|
+
}, s_ = ({ data: e, cta: t, link: n, gtmContext: r }) => {
|
|
27261
27265
|
var f, b;
|
|
27262
27266
|
const i = le(), [a, s] = ue({
|
|
27263
27267
|
loading: !1,
|
|
@@ -27332,7 +27336,7 @@ const dk = ({
|
|
|
27332
27336
|
}
|
|
27333
27337
|
return null;
|
|
27334
27338
|
};
|
|
27335
|
-
function
|
|
27339
|
+
function o_({ buildMemberData: e, communitySlug: t }) {
|
|
27336
27340
|
const n = le(), r = Ie(vt), [i, a] = ue({
|
|
27337
27341
|
count: "...",
|
|
27338
27342
|
isMember: !1,
|
|
@@ -27411,7 +27415,7 @@ const ih = ({
|
|
|
27411
27415
|
f.slug && (f.slug.slice(0, 4) === "http" || f.slug.slice(0, 2) === "//" || f.slug.slice(0, 6) === "mailto" || f.slug.slice(0, 3) === "tel") && (_ = f.slug);
|
|
27412
27416
|
const S = (C) => {
|
|
27413
27417
|
_ && (C.preventDefault(), C.stopPropagation(), window.location.href = _);
|
|
27414
|
-
}, z = { ...
|
|
27418
|
+
}, z = { ...a_, ...E };
|
|
27415
27419
|
let O = { className: "card" }, L = {};
|
|
27416
27420
|
return _ && (L = {
|
|
27417
27421
|
href: _,
|
|
@@ -27504,19 +27508,19 @@ const ih = ({
|
|
|
27504
27508
|
return ["title", "text"].includes(C) && _ ? (U.wrapper = "a", /* @__PURE__ */ c.jsx("p", { ...H, children: /* @__PURE__ */ c.jsx(Yt, { options: U, ...L, children: G }) })) : /* @__PURE__ */ c.jsx(Yt, { options: U, ...H, children: G });
|
|
27505
27509
|
}),
|
|
27506
27510
|
i.contentType === "communityPage" && (i.slug || f.slug) && r && /* @__PURE__ */ c.jsx(
|
|
27507
|
-
|
|
27511
|
+
o_,
|
|
27508
27512
|
{
|
|
27509
27513
|
communitySlug: i.slug || f.slug,
|
|
27510
27514
|
buildMemberData: r
|
|
27511
27515
|
}
|
|
27512
27516
|
),
|
|
27513
|
-
/* @__PURE__ */ c.jsx(
|
|
27514
|
-
/* @__PURE__ */ c.jsx(
|
|
27517
|
+
/* @__PURE__ */ c.jsx(i_, { type: k || "", data: f }),
|
|
27518
|
+
/* @__PURE__ */ c.jsx(s_, { data: f, cta: a, link: _ || "", gtmContext: s })
|
|
27515
27519
|
] })
|
|
27516
27520
|
}
|
|
27517
27521
|
);
|
|
27518
27522
|
};
|
|
27519
|
-
const
|
|
27523
|
+
const u_ = ({ cards: e, cardTypes: t, className: n = "", ...r }) => /* @__PURE__ */ c.jsx("ul", { className: V("card-block", n), children: e.map((i, a) => {
|
|
27520
27524
|
const s = i.slug ? `${i.slug}-${t[a]}` : `${t[a]}-${a}`;
|
|
27521
27525
|
return /* @__PURE__ */ c.jsx(
|
|
27522
27526
|
ih,
|
|
@@ -27528,10 +27532,10 @@ const a_ = ({ cards: e, cardTypes: t, className: n = "", ...r }) => /* @__PURE__
|
|
|
27528
27532
|
},
|
|
27529
27533
|
s
|
|
27530
27534
|
);
|
|
27531
|
-
}) }),
|
|
27535
|
+
}) }), l_ = (e, t, n, r) => {
|
|
27532
27536
|
const i = t * n <= e, a = e < t * (n + 1), s = r.includes(Math.floor(e / t));
|
|
27533
27537
|
return i && a || s;
|
|
27534
|
-
},
|
|
27538
|
+
}, c_ = ({ id: e, title: t }) => {
|
|
27535
27539
|
const n = le();
|
|
27536
27540
|
if (!t || !t.text)
|
|
27537
27541
|
return null;
|
|
@@ -27561,7 +27565,7 @@ const ps = {
|
|
|
27561
27565
|
twoCards: 480
|
|
27562
27566
|
};
|
|
27563
27567
|
let wi = null, gs = null;
|
|
27564
|
-
const
|
|
27568
|
+
const d_ = ({
|
|
27565
27569
|
id: e,
|
|
27566
27570
|
cards: t,
|
|
27567
27571
|
cardTypes: n,
|
|
@@ -27577,7 +27581,7 @@ const u_ = ({
|
|
|
27577
27581
|
}), { cardsPerPage: m, isLoading: p } = d, [g, f] = ue({
|
|
27578
27582
|
currentPage: 0,
|
|
27579
27583
|
loadedPages: [0]
|
|
27580
|
-
}), { currentPage: b, loadedPages: v } = g, [x, k] = ue(""), E = t.length, w = Math.ceil(E / m), _ = Fe(null), S =
|
|
27584
|
+
}), { currentPage: b, loadedPages: v } = g, [x, k] = ue(""), E = t.length, w = Math.ceil(E / m), _ = Fe(null), S = hr(!0, !0, _ == null ? void 0 : _.current);
|
|
27581
27585
|
ce(() => {
|
|
27582
27586
|
let C = 1;
|
|
27583
27587
|
S && (S >= ps.fourCards ? C = 4 : S >= ps.threeCards ? C = 3 : S >= ps.twoCards && (C = 2), C > E && (C = E)), h((T) => ({
|
|
@@ -27653,7 +27657,7 @@ const u_ = ({
|
|
|
27653
27657
|
className: V("carousel-wrapper", a),
|
|
27654
27658
|
"data-testid": "carousel",
|
|
27655
27659
|
children: [
|
|
27656
|
-
/* @__PURE__ */ c.jsx(
|
|
27660
|
+
/* @__PURE__ */ c.jsx(c_, { id: e, title: i }),
|
|
27657
27661
|
/* @__PURE__ */ c.jsx(
|
|
27658
27662
|
"ul",
|
|
27659
27663
|
{
|
|
@@ -27664,7 +27668,7 @@ const u_ = ({
|
|
|
27664
27668
|
"data-testid": "carousel-list",
|
|
27665
27669
|
children: t.map((C, T) => {
|
|
27666
27670
|
let j = A(C, T);
|
|
27667
|
-
return j &&
|
|
27671
|
+
return j && l_(T, m, b, v) ? /* @__PURE__ */ c.jsx(
|
|
27668
27672
|
ih,
|
|
27669
27673
|
{
|
|
27670
27674
|
id: j,
|
|
@@ -27753,7 +27757,7 @@ const u_ = ({
|
|
|
27753
27757
|
]
|
|
27754
27758
|
}
|
|
27755
27759
|
);
|
|
27756
|
-
},
|
|
27760
|
+
}, pk = ({
|
|
27757
27761
|
carousels: e = [],
|
|
27758
27762
|
isLoading: t,
|
|
27759
27763
|
title: n,
|
|
@@ -27762,7 +27766,7 @@ const u_ = ({
|
|
|
27762
27766
|
}) => !e || !e.length ? null : e.map(
|
|
27763
27767
|
({ title: a, viewAllUrl: s, cards: o, cardsTypes: l }, u) => {
|
|
27764
27768
|
const d = a ? window.btoa(a) : `carousel-${u}`, h = u === e.length - 1;
|
|
27765
|
-
return t ? /* @__PURE__ */ c.jsxs(
|
|
27769
|
+
return t ? /* @__PURE__ */ c.jsxs(Ir, { children: [
|
|
27766
27770
|
/* @__PURE__ */ c.jsx(
|
|
27767
27771
|
no,
|
|
27768
27772
|
{
|
|
@@ -27771,9 +27775,9 @@ const u_ = ({
|
|
|
27771
27775
|
}
|
|
27772
27776
|
),
|
|
27773
27777
|
h ? null : /* @__PURE__ */ c.jsx(sn, {})
|
|
27774
|
-
] }, `placeholder-${d}`) : /* @__PURE__ */ c.jsxs(
|
|
27778
|
+
] }, `placeholder-${d}`) : /* @__PURE__ */ c.jsxs(Ir, { children: [
|
|
27775
27779
|
/* @__PURE__ */ c.jsx(
|
|
27776
|
-
|
|
27780
|
+
d_,
|
|
27777
27781
|
{
|
|
27778
27782
|
cards: o,
|
|
27779
27783
|
cardTypes: l,
|
|
@@ -27785,7 +27789,7 @@ const u_ = ({
|
|
|
27785
27789
|
] }, `carousel-${d}`);
|
|
27786
27790
|
}
|
|
27787
27791
|
);
|
|
27788
|
-
const
|
|
27792
|
+
const gk = ({
|
|
27789
27793
|
element: e = "p",
|
|
27790
27794
|
data: {
|
|
27791
27795
|
timeLeftToFinish: t,
|
|
@@ -27833,7 +27837,7 @@ const hk = ({
|
|
|
27833
27837
|
] })
|
|
27834
27838
|
});
|
|
27835
27839
|
};
|
|
27836
|
-
const
|
|
27840
|
+
const f_ = ({
|
|
27837
27841
|
element: e = "span",
|
|
27838
27842
|
sectionId: t,
|
|
27839
27843
|
subsectionId: n,
|
|
@@ -27844,7 +27848,7 @@ const l_ = ({
|
|
|
27844
27848
|
"data-number": `${t}.${n}`,
|
|
27845
27849
|
children: r
|
|
27846
27850
|
});
|
|
27847
|
-
const
|
|
27851
|
+
const h_ = ({
|
|
27848
27852
|
size: e = "default",
|
|
27849
27853
|
completionTime: t,
|
|
27850
27854
|
icon: n,
|
|
@@ -27861,7 +27865,7 @@ const c_ = ({
|
|
|
27861
27865
|
a ? /* @__PURE__ */ c.jsx("span", { className: "additional", children: a }) : null
|
|
27862
27866
|
] });
|
|
27863
27867
|
};
|
|
27864
|
-
const
|
|
27868
|
+
const vk = ({
|
|
27865
27869
|
course: {
|
|
27866
27870
|
articles: e,
|
|
27867
27871
|
canAccessCourse: t,
|
|
@@ -27937,7 +27941,7 @@ const mk = ({
|
|
|
27937
27941
|
gtmType: "article-click",
|
|
27938
27942
|
children: /* @__PURE__ */ c.jsxs(c.Fragment, { children: [
|
|
27939
27943
|
/* @__PURE__ */ c.jsx(
|
|
27940
|
-
|
|
27944
|
+
f_,
|
|
27941
27945
|
{
|
|
27942
27946
|
sectionId: a,
|
|
27943
27947
|
subsectionId: _,
|
|
@@ -27947,7 +27951,7 @@ const mk = ({
|
|
|
27947
27951
|
),
|
|
27948
27952
|
" ",
|
|
27949
27953
|
/* @__PURE__ */ c.jsx(
|
|
27950
|
-
|
|
27954
|
+
h_,
|
|
27951
27955
|
{
|
|
27952
27956
|
completionTime: f,
|
|
27953
27957
|
icon: v,
|
|
@@ -27968,7 +27972,7 @@ const mk = ({
|
|
|
27968
27972
|
}
|
|
27969
27973
|
);
|
|
27970
27974
|
};
|
|
27971
|
-
const
|
|
27975
|
+
const bk = ({
|
|
27972
27976
|
isComplete: e = !1,
|
|
27973
27977
|
onClick: t,
|
|
27974
27978
|
...n
|
|
@@ -27992,7 +27996,7 @@ const pk = ({
|
|
|
27992
27996
|
children: r.formatMessage({ id: `markCompleteButton${e ? "_completed" : ""}` })
|
|
27993
27997
|
}
|
|
27994
27998
|
);
|
|
27995
|
-
},
|
|
27999
|
+
}, yk = ({
|
|
27996
28000
|
id: e,
|
|
27997
28001
|
data: { jobTitle: t, name: n, organization: r, thumbnail: i }
|
|
27998
28002
|
}) => ({
|
|
@@ -28045,7 +28049,7 @@ const pk = ({
|
|
|
28045
28049
|
contributors: ["community"]
|
|
28046
28050
|
}
|
|
28047
28051
|
];
|
|
28048
|
-
const Ci = "notFoundError_",
|
|
28052
|
+
const Ci = "notFoundError_", Dk = () => {
|
|
28049
28053
|
const e = le(), t = [];
|
|
28050
28054
|
return Bc.forEach((n, r) => {
|
|
28051
28055
|
n.title = e.formatMessage({ id: `${Ci}post_${r + 1}` }), t.push("solutionArticle");
|
|
@@ -28056,7 +28060,7 @@ const Ci = "notFoundError_", vk = () => {
|
|
|
28056
28060
|
additionalContent: {
|
|
28057
28061
|
appended: /* @__PURE__ */ c.jsxs(qn, { children: [
|
|
28058
28062
|
/* @__PURE__ */ c.jsx(
|
|
28059
|
-
|
|
28063
|
+
u_,
|
|
28060
28064
|
{
|
|
28061
28065
|
cards: Bc,
|
|
28062
28066
|
cardTypes: t,
|
|
@@ -28080,57 +28084,57 @@ const Ci = "notFoundError_", vk = () => {
|
|
|
28080
28084
|
};
|
|
28081
28085
|
export {
|
|
28082
28086
|
an as ASSETS_BUCKET,
|
|
28083
|
-
|
|
28084
|
-
|
|
28087
|
+
rk as ActivitiesFeed,
|
|
28088
|
+
ak as ActivitySection,
|
|
28085
28089
|
nh as AddPost,
|
|
28086
28090
|
Fm as Badge,
|
|
28087
28091
|
gt as BadgeScope,
|
|
28088
28092
|
Am as Badges,
|
|
28089
28093
|
Vc as BadgesContext,
|
|
28090
28094
|
gm as BadgesProvider,
|
|
28091
|
-
|
|
28092
|
-
|
|
28093
|
-
|
|
28094
|
-
|
|
28095
|
+
ck as Banner,
|
|
28096
|
+
dk as BannerSection,
|
|
28097
|
+
z_ as Breadcrumbs,
|
|
28098
|
+
M_ as Buckets,
|
|
28095
28099
|
Te as Button,
|
|
28096
28100
|
Zr as ButtonWrapper,
|
|
28097
28101
|
ti as COURSE_CONTENT_TYPES,
|
|
28098
28102
|
vm as CacheProvider,
|
|
28099
28103
|
ih as Card,
|
|
28100
|
-
|
|
28101
|
-
|
|
28104
|
+
u_ as CardBlock,
|
|
28105
|
+
pk as Carousel,
|
|
28102
28106
|
pd as CharacterLimit,
|
|
28103
28107
|
eo as CollapsibleSection,
|
|
28104
28108
|
Wp as Columns,
|
|
28105
|
-
|
|
28106
|
-
|
|
28109
|
+
L_ as CommunityDetails,
|
|
28110
|
+
ek as ContactFooter,
|
|
28107
28111
|
_C as ContactForm,
|
|
28108
28112
|
rm as ContentTypeLabel,
|
|
28109
28113
|
ed as Contributors,
|
|
28110
28114
|
Po as ConversationContext,
|
|
28111
28115
|
NC as CookieBanner,
|
|
28112
|
-
|
|
28113
|
-
|
|
28114
|
-
|
|
28116
|
+
gk as CourseProgression,
|
|
28117
|
+
vk as CourseStructure,
|
|
28118
|
+
fk as CustomContentBanner,
|
|
28115
28119
|
st as CustomEvents,
|
|
28116
28120
|
Oi as DELETED_USER_ID,
|
|
28117
|
-
|
|
28118
|
-
|
|
28121
|
+
ok as Directory,
|
|
28122
|
+
WC as DiscussionConversation,
|
|
28119
28123
|
ha as DiscussionForm,
|
|
28120
|
-
|
|
28121
|
-
|
|
28122
|
-
|
|
28124
|
+
LE as DiscussionFormCard,
|
|
28125
|
+
QE as DiscussionFormModal,
|
|
28126
|
+
JC as DiscussionLikes,
|
|
28123
28127
|
ma as DiscussionPost,
|
|
28124
|
-
|
|
28128
|
+
WE as DiscussionThread,
|
|
28125
28129
|
sn as Divider,
|
|
28126
|
-
|
|
28127
|
-
|
|
28128
|
-
|
|
28130
|
+
Q_ as DownloadSection,
|
|
28131
|
+
Fr as EMAILS,
|
|
28132
|
+
J_ as EditSection,
|
|
28129
28133
|
Hp as EmailHelperTextBox,
|
|
28130
28134
|
$n as EmptyStateBox,
|
|
28131
|
-
|
|
28135
|
+
q_ as EnrichedUrl,
|
|
28132
28136
|
Zc as FeatureFlags,
|
|
28133
|
-
|
|
28137
|
+
W_ as Filters,
|
|
28134
28138
|
xm as FlagsProvider,
|
|
28135
28139
|
Hf as Footer,
|
|
28136
28140
|
wn as Form,
|
|
@@ -28138,52 +28142,53 @@ export {
|
|
|
28138
28142
|
Rt as Fragment,
|
|
28139
28143
|
qn as FullWidthSection,
|
|
28140
28144
|
Go as GET_STREAM_USER_PREFIX,
|
|
28141
|
-
|
|
28145
|
+
I_ as GlobalProviders,
|
|
28142
28146
|
Vf as Header,
|
|
28143
28147
|
im as HelperTextBox,
|
|
28144
28148
|
Js as HiddenFromScreenReaders,
|
|
28145
28149
|
am as HideShowTextBox,
|
|
28146
|
-
|
|
28150
|
+
hk as HighlightSection,
|
|
28147
28151
|
Gt as HighlightedTextBox,
|
|
28148
28152
|
Mh as INVALID_TOKEN,
|
|
28149
|
-
|
|
28150
|
-
|
|
28153
|
+
R_ as IconBulletedList,
|
|
28154
|
+
O_ as ImageContainer,
|
|
28151
28155
|
wm as IntlProvider,
|
|
28152
28156
|
kC as InviteForm,
|
|
28153
|
-
|
|
28157
|
+
sk as InviteModal,
|
|
28154
28158
|
hd as JoinButton,
|
|
28155
28159
|
Yc as LanguageContext,
|
|
28156
|
-
|
|
28157
|
-
|
|
28158
|
-
|
|
28159
|
-
|
|
28160
|
-
|
|
28160
|
+
U_ as LanguageSwitcher,
|
|
28161
|
+
f_ as LessonName,
|
|
28162
|
+
h_ as LessonType,
|
|
28163
|
+
SE as LikesFeed,
|
|
28164
|
+
jE as LikesModal,
|
|
28161
28165
|
In as Link,
|
|
28162
28166
|
aa as LoadMore,
|
|
28163
|
-
|
|
28167
|
+
$_ as LoadingBlock,
|
|
28164
28168
|
zt as LoadingPlaceholder,
|
|
28165
28169
|
no as LoadingState,
|
|
28166
28170
|
md as Logo,
|
|
28167
|
-
|
|
28171
|
+
X_ as LogoSection,
|
|
28172
|
+
LC as MEMBERS_PER_PAGE,
|
|
28168
28173
|
Rh as MENTION_REGEX,
|
|
28169
|
-
|
|
28174
|
+
bk as MarkCompleteButton,
|
|
28170
28175
|
ar as MarkdownText,
|
|
28171
|
-
|
|
28176
|
+
mk as MarketingBlock,
|
|
28172
28177
|
rn as Marks,
|
|
28173
28178
|
yn as Member,
|
|
28174
|
-
|
|
28179
|
+
zC as MembersList,
|
|
28175
28180
|
td as Modal,
|
|
28176
28181
|
Np as MoreMenu,
|
|
28177
|
-
|
|
28178
|
-
|
|
28182
|
+
S_ as NUMBER_OF_COUNTRIES,
|
|
28183
|
+
T_ as NUMBER_OF_USERS,
|
|
28179
28184
|
$p as NavigationMenu,
|
|
28180
|
-
|
|
28185
|
+
Dk as NotFoundError,
|
|
28181
28186
|
xn as Overlay,
|
|
28182
28187
|
Gc as OverlayContext,
|
|
28183
28188
|
_m as OverlayProvider,
|
|
28184
28189
|
mm as PageHeading,
|
|
28185
28190
|
IC as PageLayout,
|
|
28186
|
-
|
|
28191
|
+
Y_ as PasswordForm,
|
|
28187
28192
|
ng as PasswordRules,
|
|
28188
28193
|
bn as Pill,
|
|
28189
28194
|
Xh as Popover,
|
|
@@ -28194,26 +28199,26 @@ export {
|
|
|
28194
28199
|
rh as ProfileModalLauncher,
|
|
28195
28200
|
Ln as ProfilePicture,
|
|
28196
28201
|
Qc as ProgressBar,
|
|
28197
|
-
|
|
28198
|
-
|
|
28199
|
-
|
|
28200
|
-
|
|
28202
|
+
P_ as ProgressTracker,
|
|
28203
|
+
K_ as Rating,
|
|
28204
|
+
AE as RepliesFeed,
|
|
28205
|
+
qE as ResponsesHeading,
|
|
28201
28206
|
Yr as ResponsiveImage,
|
|
28202
|
-
|
|
28207
|
+
N_ as ReturnToNavButton,
|
|
28203
28208
|
CC as RichTextEditor,
|
|
28204
28209
|
AC as SearchForm,
|
|
28205
|
-
|
|
28206
|
-
|
|
28210
|
+
H_ as ShareLinks,
|
|
28211
|
+
G_ as SignupForm,
|
|
28207
28212
|
au as Span,
|
|
28208
28213
|
Mi as StatusBanner,
|
|
28209
|
-
|
|
28210
|
-
|
|
28211
|
-
|
|
28212
|
-
|
|
28214
|
+
lk as TableOfContents,
|
|
28215
|
+
V_ as Tabs,
|
|
28216
|
+
nk as Tags,
|
|
28217
|
+
uk as TestimonialBlock,
|
|
28213
28218
|
Lo as TimeToComplete,
|
|
28214
|
-
|
|
28215
|
-
|
|
28216
|
-
|
|
28219
|
+
Z_ as Toggle,
|
|
28220
|
+
mr as Tooltip,
|
|
28221
|
+
tk as TopLevelPage,
|
|
28217
28222
|
Pi as UUID_V4_REGEX,
|
|
28218
28223
|
vt as UserContext,
|
|
28219
28224
|
Cm as UserProvider,
|
|
@@ -28223,7 +28228,7 @@ export {
|
|
|
28223
28228
|
Oh as camelCaseToDashCase,
|
|
28224
28229
|
Xs as checkIntlPathExists,
|
|
28225
28230
|
rs as generateConditions,
|
|
28226
|
-
|
|
28231
|
+
j_ as generateCssIcon,
|
|
28227
28232
|
Jr as getAuthorData,
|
|
28228
28233
|
Up as getCharacterLimitProps,
|
|
28229
28234
|
zc as getLongDate,
|
|
@@ -28232,19 +28237,19 @@ export {
|
|
|
28232
28237
|
Ih as getShortDate,
|
|
28233
28238
|
so as getValueLength,
|
|
28234
28239
|
Qi as headerData,
|
|
28235
|
-
|
|
28240
|
+
yk as mapGetStreamData,
|
|
28236
28241
|
Zh as pageReady,
|
|
28237
28242
|
Jo as passwordValidator,
|
|
28238
|
-
|
|
28243
|
+
ik as repliesFeedMock,
|
|
28239
28244
|
Da as supportedLanguages,
|
|
28240
28245
|
Ph as toCamelCase,
|
|
28241
|
-
|
|
28246
|
+
B_ as toCapitalisedCase,
|
|
28242
28247
|
Nh as toSentenceCase,
|
|
28243
28248
|
Ec as transformSlugs,
|
|
28244
28249
|
pm as useBadges,
|
|
28245
28250
|
Sh as useCurrentPath,
|
|
28246
|
-
|
|
28247
|
-
|
|
28251
|
+
$r as useEffectAfterMount,
|
|
28252
|
+
hr as useElementWidth,
|
|
28248
28253
|
Em as useOverlay,
|
|
28249
28254
|
jh as useScrollListener,
|
|
28250
28255
|
Rc as useScrollToHash,
|