@apolitical/component-library 3.5.0 → 3.5.1-beta.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.js +10 -10
- package/index.mjs +165 -165
- package/package.json +1 -1
package/index.mjs
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import Y, { memo as
|
|
1
|
+
import Y, { memo as Ae, useState as X, useEffect as ae, useRef as pe, useMemo as wt, Children as Bn, createContext as nn, useContext as Ee, useCallback as sa, useReducer as Yn, Fragment as yt, Suspense as xs } from "react";
|
|
2
2
|
import pt from "lodash.clonedeep";
|
|
3
3
|
import ws from "lodash.set";
|
|
4
4
|
import { FormattedMessage as ye, useIntl as H, IntlProvider as js, createIntl as ks } from "react-intl";
|
|
5
|
-
import
|
|
5
|
+
import Le from "markdown-to-jsx";
|
|
6
6
|
import et from "truncate";
|
|
7
7
|
import { QueryClient as Ts, QueryClientProvider as Es, useMutation as je, useQueryClient as Kn, useInfiniteQuery as ia, useQuery as Ss } from "@tanstack/react-query";
|
|
8
8
|
import { ReactQueryDevtools as Cs } from "@tanstack/react-query-devtools";
|
|
9
|
-
import
|
|
9
|
+
import Lt from "posthog-js";
|
|
10
10
|
import { CookiesProvider as $s, useCookies as oa } from "react-cookie";
|
|
11
11
|
import { ReactMultiEmail as Ns } from "react-multi-email";
|
|
12
12
|
import ca from "lodash.get";
|
|
@@ -84,11 +84,11 @@ const S = /* @__PURE__ */ la(Fs), Os = ({
|
|
|
84
84
|
...s,
|
|
85
85
|
className: S("hidden", r, { "show-on-focus": e }),
|
|
86
86
|
children: n
|
|
87
|
-
}), be =
|
|
87
|
+
}), be = Ae(Os), As = ({
|
|
88
88
|
element: t = "span",
|
|
89
89
|
children: e = null,
|
|
90
90
|
...n
|
|
91
|
-
}) => Y.createElement(t, { ...n, "aria-hidden": !0 }, e), Gn =
|
|
91
|
+
}) => Y.createElement(t, { ...n, "aria-hidden": !0 }, e), Gn = Ae(As);
|
|
92
92
|
var qn = { exports: {} }, it = {};
|
|
93
93
|
/**
|
|
94
94
|
* @license React
|
|
@@ -408,7 +408,7 @@ function Is() {
|
|
|
408
408
|
return "";
|
|
409
409
|
}
|
|
410
410
|
var Ue = Object.prototype.hasOwnProperty, cr = {}, lr = v.ReactDebugCurrentFrame;
|
|
411
|
-
function
|
|
411
|
+
function Et(g) {
|
|
412
412
|
if (g) {
|
|
413
413
|
var M = g._owner, L = Ce(g.type, g._source, M ? M.type : null);
|
|
414
414
|
lr.setExtraStackFrame(L);
|
|
@@ -430,7 +430,7 @@ function Is() {
|
|
|
430
430
|
} catch (he) {
|
|
431
431
|
ie = he;
|
|
432
432
|
}
|
|
433
|
-
ie && !(ie instanceof Error) && (
|
|
433
|
+
ie && !(ie instanceof Error) && (Et(le), b("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", ne || "React class", L, ce, typeof ie), Et(null)), ie instanceof Error && !(ie.message in cr) && (cr[ie.message] = !0, Et(le), b("Failed %s type: %s", L, ie.message), Et(null));
|
|
434
434
|
}
|
|
435
435
|
}
|
|
436
436
|
}
|
|
@@ -743,7 +743,7 @@ function Bs(t, e, n) {
|
|
|
743
743
|
d.current = !1;
|
|
744
744
|
};
|
|
745
745
|
}, []);
|
|
746
|
-
var T =
|
|
746
|
+
var T = wt(function() {
|
|
747
747
|
var k = function(F) {
|
|
748
748
|
var $ = c.current, j = f.current;
|
|
749
749
|
return c.current = f.current = null, i.current = F, l.current = u.current.apply(j, $);
|
|
@@ -791,7 +791,7 @@ function fa(t, e, n) {
|
|
|
791
791
|
return Bs(t, e, { maxWait: e, leading: s === void 0 || s, trailing: i === void 0 || i });
|
|
792
792
|
}
|
|
793
793
|
let pn;
|
|
794
|
-
const
|
|
794
|
+
const jt = (t = !0, e = !1, n = "window") => {
|
|
795
795
|
if (!t)
|
|
796
796
|
return;
|
|
797
797
|
const [r, s] = Y.useState(0) || [!1, () => {
|
|
@@ -891,7 +891,7 @@ const wt = (t = !0, e = !1, n = "window") => {
|
|
|
891
891
|
default: "dpo@apolitical.co",
|
|
892
892
|
eu: "dpo.agl@apolitical.foundation"
|
|
893
893
|
}
|
|
894
|
-
},
|
|
894
|
+
}, St = {
|
|
895
895
|
ARTICLE: "microcourseArticle",
|
|
896
896
|
DISCUSSION: "microcourseDiscussion",
|
|
897
897
|
QUIZ: "assessmentQuiz"
|
|
@@ -919,7 +919,7 @@ const ze = {
|
|
|
919
919
|
year: "numeric"
|
|
920
920
|
}), Un = (t) => {
|
|
921
921
|
let e;
|
|
922
|
-
const n =
|
|
922
|
+
const n = Ut(), r = Ut(new Date(t));
|
|
923
923
|
try {
|
|
924
924
|
e = n.getTime() - r.getTime();
|
|
925
925
|
} catch {
|
|
@@ -932,12 +932,12 @@ const ze = {
|
|
|
932
932
|
return { path: "days", number: i };
|
|
933
933
|
const o = Math.floor(i / 7);
|
|
934
934
|
return o <= ze.year.weeks ? { path: "weeks", number: o } : { path: "years", number: Math.floor(i / ze.year.days) };
|
|
935
|
-
},
|
|
935
|
+
}, Ut = (t) => {
|
|
936
936
|
const n = (t || /* @__PURE__ */ new Date()).toUTCString();
|
|
937
937
|
return new Date(n);
|
|
938
938
|
}, Ys = (t, e, n) => {
|
|
939
939
|
let r;
|
|
940
|
-
const s =
|
|
940
|
+
const s = Ut(), i = Ut(new Date(t));
|
|
941
941
|
try {
|
|
942
942
|
r = s.getTime() - i.getTime();
|
|
943
943
|
} catch {
|
|
@@ -1417,7 +1417,7 @@ Thank you for helping to protect the Apolitical community from abusive content.`
|
|
|
1417
1417
|
}
|
|
1418
1418
|
}
|
|
1419
1419
|
return r;
|
|
1420
|
-
},
|
|
1420
|
+
}, Bt = (t, e) => Y.Children.map(t, (n) => Object.is(n, null) ? n : Y.cloneElement(n, {
|
|
1421
1421
|
...e
|
|
1422
1422
|
})), ti = (t = 0) => {
|
|
1423
1423
|
setTimeout(() => {
|
|
@@ -1448,7 +1448,7 @@ Thank you for helping to protect the Apolitical community from abusive content.`
|
|
|
1448
1448
|
children: u = !1,
|
|
1449
1449
|
...d
|
|
1450
1450
|
}) => {
|
|
1451
|
-
const p =
|
|
1451
|
+
const p = jt(typeof e == "object");
|
|
1452
1452
|
if (typeof e == "object" && typeof p == "number") {
|
|
1453
1453
|
const y = Object.assign({}, e), v = pa(Object.keys(y));
|
|
1454
1454
|
e = ha(p, v, y);
|
|
@@ -1472,7 +1472,7 @@ Thank you for helping to protect the Apolitical community from abusive content.`
|
|
|
1472
1472
|
_,
|
|
1473
1473
|
u || (l ? /* @__PURE__ */ a.jsx(be, { showOnFocus: !1, children: l }) : null)
|
|
1474
1474
|
);
|
|
1475
|
-
},
|
|
1475
|
+
}, kt = ({ buttons: t, className: e = "", ...n }) => {
|
|
1476
1476
|
const r = t.length > 1 ? "ul" : "p", s = t.map((i, o) => r === "p" ? /* @__PURE__ */ a.jsx(se, { ...i }, o) : /* @__PURE__ */ a.jsx("li", { children: /* @__PURE__ */ a.jsx(se, { ...i }) }, o));
|
|
1477
1477
|
return Y.createElement(r, {
|
|
1478
1478
|
className: S("button-wrapper", e),
|
|
@@ -1480,7 +1480,7 @@ Thank you for helping to protect the Apolitical community from abusive content.`
|
|
|
1480
1480
|
children: s
|
|
1481
1481
|
});
|
|
1482
1482
|
};
|
|
1483
|
-
const
|
|
1483
|
+
const Oe = ({ className: t = "", maxWidth: e = !1 }) => {
|
|
1484
1484
|
const n = e ? { "--max-width": `${e / 16}rem` } : {};
|
|
1485
1485
|
return /* @__PURE__ */ a.jsx("hr", { className: S(t, { "has-max-width": e }), style: n });
|
|
1486
1486
|
}, kr = {
|
|
@@ -1602,7 +1602,7 @@ const Ae = ({ className: t = "", maxWidth: e = !1 }) => {
|
|
|
1602
1602
|
query: r,
|
|
1603
1603
|
width: i
|
|
1604
1604
|
})} ${i}w`).join(", ");
|
|
1605
|
-
const
|
|
1605
|
+
const Tt = ({ image: t, className: e, testId: n }) => {
|
|
1606
1606
|
const {
|
|
1607
1607
|
description: r,
|
|
1608
1608
|
height: s,
|
|
@@ -1647,7 +1647,7 @@ const Nl = ({ image: t, className: e, testId: n }) => /* @__PURE__ */ a.jsx(
|
|
|
1647
1647
|
{
|
|
1648
1648
|
className: `image-container ${e}`,
|
|
1649
1649
|
"data-testid": n || "image-container",
|
|
1650
|
-
children: t && /* @__PURE__ */ a.jsx(
|
|
1650
|
+
children: t && /* @__PURE__ */ a.jsx(Tt, { image: { ...t }, className: "image" })
|
|
1651
1651
|
}
|
|
1652
1652
|
), at = ({
|
|
1653
1653
|
href: t,
|
|
@@ -1828,7 +1828,7 @@ const Cr = {
|
|
|
1828
1828
|
}
|
|
1829
1829
|
);
|
|
1830
1830
|
};
|
|
1831
|
-
const
|
|
1831
|
+
const Fe = ({
|
|
1832
1832
|
variant: t = "primary",
|
|
1833
1833
|
icon: e,
|
|
1834
1834
|
styling: n = {},
|
|
@@ -1858,7 +1858,7 @@ const He = ({
|
|
|
1858
1858
|
className: r = ""
|
|
1859
1859
|
}) => {
|
|
1860
1860
|
let s = n && !!Object.keys(n).length;
|
|
1861
|
-
const i = typeof n == "object" && "breakpoints" in n, o =
|
|
1861
|
+
const i = typeof n == "object" && "breakpoints" in n, o = jt(i);
|
|
1862
1862
|
if (i && typeof n == "object" && typeof o == "number") {
|
|
1863
1863
|
const d = Object.assign({}, n.breakpoints), m = pa(Object.keys(d));
|
|
1864
1864
|
s = ha(o, m, d);
|
|
@@ -1870,12 +1870,12 @@ const He = ({
|
|
|
1870
1870
|
...u
|
|
1871
1871
|
} = n;
|
|
1872
1872
|
return /* @__PURE__ */ a.jsx(
|
|
1873
|
-
|
|
1873
|
+
Fe,
|
|
1874
1874
|
{
|
|
1875
1875
|
variant: "subtle",
|
|
1876
1876
|
className: S("empty-state-box", t, r),
|
|
1877
1877
|
children: /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
|
|
1878
|
-
e && typeof e == "string" ? /* @__PURE__ */ a.jsx(
|
|
1878
|
+
e && typeof e == "string" ? /* @__PURE__ */ a.jsx(Le, { options: { forceBlock: !0 }, children: e }) : e,
|
|
1879
1879
|
s && typeof n == "object" && (l || /* @__PURE__ */ a.jsx(
|
|
1880
1880
|
se,
|
|
1881
1881
|
{
|
|
@@ -1899,7 +1899,7 @@ const ci = ({
|
|
|
1899
1899
|
}) => /* @__PURE__ */ a.jsxs("div", { className: S("helper-text-box text-small", t, e), children: [
|
|
1900
1900
|
n && /* @__PURE__ */ a.jsx("p", { className: "title", children: n }),
|
|
1901
1901
|
typeof r == "string" ? /* @__PURE__ */ a.jsx(
|
|
1902
|
-
|
|
1902
|
+
Le,
|
|
1903
1903
|
{
|
|
1904
1904
|
options: {
|
|
1905
1905
|
wrapper: Y.Fragment,
|
|
@@ -1943,13 +1943,13 @@ const Rl = ({
|
|
|
1943
1943
|
return null;
|
|
1944
1944
|
const m = ["opening", "open"].includes(l);
|
|
1945
1945
|
return /* @__PURE__ */ a.jsxs(
|
|
1946
|
-
|
|
1946
|
+
Fe,
|
|
1947
1947
|
{
|
|
1948
1948
|
variant: "subtle",
|
|
1949
1949
|
className: S("hide-show-text-box", t),
|
|
1950
1950
|
children: [
|
|
1951
1951
|
/* @__PURE__ */ a.jsxs("div", { ref: o, className: S("content", l), children: [
|
|
1952
|
-
/* @__PURE__ */ a.jsx(
|
|
1952
|
+
/* @__PURE__ */ a.jsx(Le, { options: { forceBlock: !0 }, children: l === "closed" ? c : r }),
|
|
1953
1953
|
l !== "closed" && s
|
|
1954
1954
|
] }),
|
|
1955
1955
|
/* @__PURE__ */ a.jsx("p", { className: "cta", children: /* @__PURE__ */ a.jsx(
|
|
@@ -1989,12 +1989,12 @@ const Fl = ({
|
|
|
1989
1989
|
"--icon": `url(${Be}icons/${f.icon}.svg)`
|
|
1990
1990
|
};
|
|
1991
1991
|
return t === "dl" ? /* @__PURE__ */ a.jsxs(Y.Fragment, { children: [
|
|
1992
|
-
/* @__PURE__ */ a.jsx("dt", { style: d, children: /* @__PURE__ */ a.jsx(
|
|
1993
|
-
/* @__PURE__ */ a.jsx("dd", { children: typeof f.text == "string" ? /* @__PURE__ */ a.jsx(
|
|
1994
|
-
] }, `dl-${l}`) : /* @__PURE__ */ a.jsx("li", { style: d, children: typeof f.text == "string" ? /* @__PURE__ */ a.jsx(
|
|
1992
|
+
/* @__PURE__ */ a.jsx("dt", { style: d, children: /* @__PURE__ */ a.jsx(Le, { options: u, children: f.dt || "" }) }, `dt-${l}`),
|
|
1993
|
+
/* @__PURE__ */ a.jsx("dd", { children: typeof f.text == "string" ? /* @__PURE__ */ a.jsx(Le, { options: u, children: f.text }) : f.text }, `dd-${l}`)
|
|
1994
|
+
] }, `dl-${l}`) : /* @__PURE__ */ a.jsx("li", { style: d, children: typeof f.text == "string" ? /* @__PURE__ */ a.jsx(Le, { options: u, children: f.text }) : f.text }, l);
|
|
1995
1995
|
})
|
|
1996
1996
|
});
|
|
1997
|
-
}, _e = () => Y.Fragment, li = ({ children: t }) => /* @__PURE__ */ a.jsx(
|
|
1997
|
+
}, _e = () => Y.Fragment, li = ({ children: t }) => /* @__PURE__ */ a.jsx(Fe, { variant: "secondary", children: t }), ui = ({ children: t }) => typeof t == "object" && Object.keys(t || {}).length === 1 ? /* @__PURE__ */ a.jsx("p", { className: "center", children: t }) : /* @__PURE__ */ a.jsx("div", { className: "center", children: t }), di = ["span", "strong", "h1", "h2", "h3", "h4", "h5", "h6", "p"], fi = ({ children: t }) => {
|
|
1998
1998
|
const e = H();
|
|
1999
1999
|
if (!t)
|
|
2000
2000
|
return null;
|
|
@@ -2034,12 +2034,12 @@ const Fl = ({
|
|
|
2034
2034
|
if (e.class)
|
|
2035
2035
|
switch (e.class) {
|
|
2036
2036
|
case "casestudy":
|
|
2037
|
-
return /* @__PURE__ */ a.jsx(
|
|
2037
|
+
return /* @__PURE__ */ a.jsx(Fe, { variant: "secondary", children: t });
|
|
2038
2038
|
case "general-textbox":
|
|
2039
2039
|
case "highlight-box":
|
|
2040
|
-
return /* @__PURE__ */ a.jsx(
|
|
2040
|
+
return /* @__PURE__ */ a.jsx(Fe, { variant: "primary", children: t });
|
|
2041
2041
|
case "pink-textbox":
|
|
2042
|
-
return /* @__PURE__ */ a.jsx(
|
|
2042
|
+
return /* @__PURE__ */ a.jsx(Fe, { variant: "tertiary", children: t });
|
|
2043
2043
|
case "content":
|
|
2044
2044
|
return typeof t == "object" && Object.keys(t || {}).length === 1 ? /* @__PURE__ */ a.jsx("p", { children: t }) : t;
|
|
2045
2045
|
default:
|
|
@@ -2093,7 +2093,7 @@ const vi = {
|
|
|
2093
2093
|
// Override psuedo-code
|
|
2094
2094
|
// We give the content team psuedo-code short cuts to use in Contentful
|
|
2095
2095
|
CollapsibleSection: Jn,
|
|
2096
|
-
TextBox:
|
|
2096
|
+
TextBox: Fe,
|
|
2097
2097
|
CaseStudy: li,
|
|
2098
2098
|
// Override embedded HTML
|
|
2099
2099
|
// Our content team previously used real HTML, which we need to tear out and replace with React components
|
|
@@ -2120,7 +2120,7 @@ const vi = {
|
|
|
2120
2120
|
iframe: _e,
|
|
2121
2121
|
button: _e
|
|
2122
2122
|
}
|
|
2123
|
-
},
|
|
2123
|
+
}, xt = ({
|
|
2124
2124
|
className: t = "",
|
|
2125
2125
|
options: e = {},
|
|
2126
2126
|
children: n,
|
|
@@ -2140,7 +2140,7 @@ const vi = {
|
|
|
2140
2140
|
className: S("markdown-text", t, {
|
|
2141
2141
|
"highlight-titles": i
|
|
2142
2142
|
}),
|
|
2143
|
-
children: /* @__PURE__ */ a.jsx(
|
|
2143
|
+
children: /* @__PURE__ */ a.jsx(Le, { options: { ...o, ...e }, children: n })
|
|
2144
2144
|
}
|
|
2145
2145
|
);
|
|
2146
2146
|
};
|
|
@@ -2202,10 +2202,10 @@ const Wt = ({
|
|
|
2202
2202
|
e
|
|
2203
2203
|
);
|
|
2204
2204
|
const yi = ({ author: t, authorCite: e, content: n }) => /* @__PURE__ */ a.jsxs("blockquote", { className: "testimonial-block", children: [
|
|
2205
|
-
/* @__PURE__ */ a.jsx(
|
|
2205
|
+
/* @__PURE__ */ a.jsx(Le, { className: "testimonial", children: n }),
|
|
2206
2206
|
t && /* @__PURE__ */ a.jsx("p", { className: "author text-small", children: t }),
|
|
2207
2207
|
e && /* @__PURE__ */ a.jsx("p", { className: "author-cite text-small", children: /* @__PURE__ */ a.jsx("cite", { children: e }) })
|
|
2208
|
-
] }), Ol =
|
|
2208
|
+
] }), Ol = Ae(yi);
|
|
2209
2209
|
const Al = ({
|
|
2210
2210
|
items: t = [],
|
|
2211
2211
|
selector: e = "",
|
|
@@ -2227,7 +2227,7 @@ const Al = ({
|
|
|
2227
2227
|
}));
|
|
2228
2228
|
i(f);
|
|
2229
2229
|
}, []), s && s.length > 0 && /* @__PURE__ */ a.jsxs(
|
|
2230
|
-
|
|
2230
|
+
Fe,
|
|
2231
2231
|
{
|
|
2232
2232
|
variant: "subtle",
|
|
2233
2233
|
className: S("table-of-contents", n),
|
|
@@ -2313,7 +2313,7 @@ const Dl = ({ className: t = "", image: e, ...n }) => e ? (typeof e == "string"
|
|
|
2313
2313
|
{ height: 200, width: 768 },
|
|
2314
2314
|
{ height: 200, width: 1368 }
|
|
2315
2315
|
], e.query = "fit=thumb&f=center", /* @__PURE__ */ a.jsx(
|
|
2316
|
-
|
|
2316
|
+
Tt,
|
|
2317
2317
|
{
|
|
2318
2318
|
...n,
|
|
2319
2319
|
className: S("banner", t),
|
|
@@ -2357,7 +2357,7 @@ const Il = ({ text: t, buttons: e, className: n = "" }) => {
|
|
|
2357
2357
|
{ className: "text" },
|
|
2358
2358
|
typeof t == "string" ? t : t.text
|
|
2359
2359
|
),
|
|
2360
|
-
/* @__PURE__ */ a.jsx(
|
|
2360
|
+
/* @__PURE__ */ a.jsx(kt, { buttons: r })
|
|
2361
2361
|
] }) });
|
|
2362
2362
|
};
|
|
2363
2363
|
function ba({ href: t, setShowModal: e }) {
|
|
@@ -2410,7 +2410,7 @@ const xi = ({ icon: t, description: e, ctaMessage: n, href: r, showEditButton: s
|
|
|
2410
2410
|
u && /* @__PURE__ */ a.jsx(se, { href: r, variant: "tertiary", size: "small", icon: "pencil", onClick: () => ba({ href: r, setShowModal: l }), children: "Edit" })
|
|
2411
2411
|
] }),
|
|
2412
2412
|
t || /* @__PURE__ */ a.jsx(xi, { ...o, href: r, setShowModal: l, showEditButton: u }),
|
|
2413
|
-
c && /* @__PURE__ */ a.jsx(
|
|
2413
|
+
c && /* @__PURE__ */ a.jsx(Oe, {})
|
|
2414
2414
|
] });
|
|
2415
2415
|
};
|
|
2416
2416
|
const Bl = ({
|
|
@@ -2537,7 +2537,7 @@ const wi = [
|
|
|
2537
2537
|
f.map((d) => {
|
|
2538
2538
|
if (u[d] && typeof u[d] == "object") {
|
|
2539
2539
|
const { text: m, element: p = "" } = u[d];
|
|
2540
|
-
return d === "text" ? /* @__PURE__ */ a.jsx(
|
|
2540
|
+
return d === "text" ? /* @__PURE__ */ a.jsx(xt, { overrideType: "text-only", className: "text", children: m }, d) : Y.createElement(p, { key: d, className: d }, m);
|
|
2541
2541
|
}
|
|
2542
2542
|
return null;
|
|
2543
2543
|
}),
|
|
@@ -2553,11 +2553,11 @@ const wi = [
|
|
|
2553
2553
|
}
|
|
2554
2554
|
)
|
|
2555
2555
|
] }),
|
|
2556
|
-
n && /* @__PURE__ */ a.jsx(
|
|
2556
|
+
n && /* @__PURE__ */ a.jsx(Tt, { image: { ...n, aspect: "banner" } })
|
|
2557
2557
|
] })
|
|
2558
2558
|
}
|
|
2559
2559
|
);
|
|
2560
|
-
}, ql =
|
|
2560
|
+
}, ql = Ae(ji);
|
|
2561
2561
|
const Ul = ({
|
|
2562
2562
|
image: t,
|
|
2563
2563
|
variant: e = "default",
|
|
@@ -2582,7 +2582,7 @@ const ki = ({
|
|
|
2582
2582
|
content: n,
|
|
2583
2583
|
image: r
|
|
2584
2584
|
}) => {
|
|
2585
|
-
const s =
|
|
2585
|
+
const s = typeof n == "string" ? /* @__PURE__ */ a.jsx(xt, { children: n }) : n;
|
|
2586
2586
|
return /* @__PURE__ */ a.jsxs(Ve, { className: S("highlight-section", e), children: [
|
|
2587
2587
|
r && /* @__PURE__ */ a.jsx(
|
|
2588
2588
|
"div",
|
|
@@ -2590,7 +2590,7 @@ const ki = ({
|
|
|
2590
2590
|
className: S("highlight-container highlight-image", {
|
|
2591
2591
|
[`highlight-image-${t}`]: t === "right"
|
|
2592
2592
|
}),
|
|
2593
|
-
children: /* @__PURE__ */ a.jsx(
|
|
2593
|
+
children: /* @__PURE__ */ a.jsx(Tt, { image: r })
|
|
2594
2594
|
}
|
|
2595
2595
|
),
|
|
2596
2596
|
/* @__PURE__ */ a.jsx(
|
|
@@ -2605,13 +2605,13 @@ const ki = ({
|
|
|
2605
2605
|
className: S("highlight-content", {
|
|
2606
2606
|
"highlight-content-right": t === "left"
|
|
2607
2607
|
}),
|
|
2608
|
-
children: s()
|
|
2608
|
+
children: r ? s : /* @__PURE__ */ a.jsx("div", { className: "content-default", children: s })
|
|
2609
2609
|
}
|
|
2610
2610
|
)
|
|
2611
2611
|
}
|
|
2612
2612
|
)
|
|
2613
2613
|
] });
|
|
2614
|
-
}, Wl =
|
|
2614
|
+
}, Wl = Ae(ki);
|
|
2615
2615
|
const zl = ({
|
|
2616
2616
|
variant: t = "primary",
|
|
2617
2617
|
button: e = null,
|
|
@@ -2650,10 +2650,10 @@ const zl = ({
|
|
|
2650
2650
|
t && /* @__PURE__ */ a.jsx(Cs, { initialIsOpen: !1 })
|
|
2651
2651
|
] });
|
|
2652
2652
|
};
|
|
2653
|
-
var Ei = nn({ client:
|
|
2653
|
+
var Ei = nn({ client: Lt });
|
|
2654
2654
|
function Si(t) {
|
|
2655
|
-
var e = t.children, n = t.client, r = t.apiKey, s = t.options, i =
|
|
2656
|
-
return n && r && console.warn("[PostHog.js] You have provided both a client and an apiKey to PostHogProvider. The apiKey will be ignored in favour of the client."), n && s && console.warn("[PostHog.js] You have provided both a client and options to PostHogProvider. The options will be ignored in favour of the client."), n || (r && (
|
|
2655
|
+
var e = t.children, n = t.client, r = t.apiKey, s = t.options, i = wt(function() {
|
|
2656
|
+
return n && r && console.warn("[PostHog.js] You have provided both a client and an apiKey to PostHogProvider. The apiKey will be ignored in favour of the client."), n && s && console.warn("[PostHog.js] You have provided both a client and options to PostHogProvider. The options will be ignored in favour of the client."), n || (r && (Lt.__loaded && console.warn("[PostHog.js] was already loaded elsewhere. This may cause issues."), Lt.init(r, s)), Lt);
|
|
2657
2657
|
}, [n, r]);
|
|
2658
2658
|
return Y.createElement(Ei.Provider, { value: { client: i } }, e);
|
|
2659
2659
|
}
|
|
@@ -2687,11 +2687,11 @@ const Ci = ({ children: t, user: e }) => e.isLoading ? null : process.env.REACT_
|
|
|
2687
2687
|
es: "Español",
|
|
2688
2688
|
fr: "Français",
|
|
2689
2689
|
pt: "Português"
|
|
2690
|
-
},
|
|
2690
|
+
}, De = nn({ isLoading: !0 });
|
|
2691
2691
|
function er() {
|
|
2692
|
-
return Ee(
|
|
2692
|
+
return Ee(De);
|
|
2693
2693
|
}
|
|
2694
|
-
const Ni = ({ children: t, user: e }) => /* @__PURE__ */ a.jsx(
|
|
2694
|
+
const Ni = ({ children: t, user: e }) => /* @__PURE__ */ a.jsx(De.Provider, { value: e, children: t }), Zl = ({ bootstrap: t, children: e, intl: n, showDevTools: r }) => {
|
|
2695
2695
|
const [s, i] = X({ isLoading: !0 }), o = (n == null ? void 0 : n.locale) || localStorage.getItem("language") || "en", [c, f] = X(o), l = (u) => {
|
|
2696
2696
|
localStorage.setItem("language", u), f(u);
|
|
2697
2697
|
};
|
|
@@ -2734,7 +2734,7 @@ const Pi = ({
|
|
|
2734
2734
|
})
|
|
2735
2735
|
}
|
|
2736
2736
|
);
|
|
2737
|
-
}, _a =
|
|
2737
|
+
}, _a = Ae(Pi);
|
|
2738
2738
|
const vn = "loadingBlock_", Mi = ({ progress: t = 0, steps: e = !1, className: n = "" }) => {
|
|
2739
2739
|
const r = H();
|
|
2740
2740
|
e || (e = {
|
|
@@ -2750,7 +2750,7 @@ const vn = "loadingBlock_", Mi = ({ progress: t = 0, steps: e = !1, className: n
|
|
|
2750
2750
|
"--icon": `url(${Be}icons/${e[s].icon}.svg)`
|
|
2751
2751
|
} : {};
|
|
2752
2752
|
return /* @__PURE__ */ a.jsxs(
|
|
2753
|
-
|
|
2753
|
+
Fe,
|
|
2754
2754
|
{
|
|
2755
2755
|
className: S("loading-block", n, {
|
|
2756
2756
|
"has-icon": s && e[s].icon
|
|
@@ -2763,7 +2763,7 @@ const vn = "loadingBlock_", Mi = ({ progress: t = 0, steps: e = !1, className: n
|
|
|
2763
2763
|
]
|
|
2764
2764
|
}
|
|
2765
2765
|
);
|
|
2766
|
-
}, Hl =
|
|
2766
|
+
}, Hl = Ae(Mi);
|
|
2767
2767
|
const Se = ({ element: t = "div", className: e = "", ...n }) => /* @__PURE__ */ a.jsx(
|
|
2768
2768
|
Gn,
|
|
2769
2769
|
{
|
|
@@ -2824,14 +2824,14 @@ const zn = {
|
|
|
2824
2824
|
}, xa = (t, e) => t in zn ? /* @__PURE__ */ a.jsx("div", { className: t, children: zn[t].map((n, r) => xa(n, r)) }, e) : /* @__PURE__ */ a.jsx(Se, { className: t }, e), wa = ({ layout: t = "overview-page", ...e }) => /* @__PURE__ */ a.jsx("div", { className: S("loading-state", t), ...e, children: zn[t].map((n, r) => xa(n, r)) }), ja = (t) => {
|
|
2825
2825
|
const e = t && t.toUpperCase().trim().split(" ");
|
|
2826
2826
|
return Array.isArray(e) && e.length > 1 && e[0] !== "" ? e[1] === "" ? e[0][0] : e[0][0] + e[e.length - 1][0] : t ? t.substr(0, 1) : "";
|
|
2827
|
-
},
|
|
2828
|
-
const e = Math.ceil(26 /
|
|
2827
|
+
}, Ct = ["#5AB6A3", "#A2D7AF", "#806056", "#3962B3"], Ri = (t) => {
|
|
2828
|
+
const e = Math.ceil(26 / Ct.length), n = ja(t).toLowerCase();
|
|
2829
2829
|
if (n === "")
|
|
2830
|
-
return
|
|
2830
|
+
return Ct[0];
|
|
2831
2831
|
const r = n.charCodeAt(0) - 96;
|
|
2832
|
-
for (let s = 0; s <
|
|
2832
|
+
for (let s = 0; s < Ct.length; s++)
|
|
2833
2833
|
if (r <= e * (s + 1))
|
|
2834
|
-
return
|
|
2834
|
+
return Ct[s];
|
|
2835
2835
|
};
|
|
2836
2836
|
const Nr = 256, Ye = ({
|
|
2837
2837
|
className: t = "",
|
|
@@ -2995,14 +2995,14 @@ const Pr = {
|
|
|
2995
2995
|
] })
|
|
2996
2996
|
});
|
|
2997
2997
|
};
|
|
2998
|
-
const
|
|
2998
|
+
const $t = "emailHelperTextBox_", Oi = ({
|
|
2999
2999
|
type: t,
|
|
3000
3000
|
email: e,
|
|
3001
3001
|
redirectPath: n,
|
|
3002
3002
|
resendVerificationCode: r
|
|
3003
3003
|
}) => {
|
|
3004
3004
|
const s = H(), [i, o] = X({
|
|
3005
|
-
path: `${
|
|
3005
|
+
path: `${$t}default`,
|
|
3006
3006
|
type: "default",
|
|
3007
3007
|
link: {},
|
|
3008
3008
|
mail: {},
|
|
@@ -3012,7 +3012,7 @@ const Ct = "emailHelperTextBox_", Oi = ({
|
|
|
3012
3012
|
p.preventDefault(), p.stopPropagation();
|
|
3013
3013
|
const h = (_) => {
|
|
3014
3014
|
o({
|
|
3015
|
-
path: `${
|
|
3015
|
+
path: `${$t}error_verificationFailedToSend`,
|
|
3016
3016
|
type: "error",
|
|
3017
3017
|
link: {
|
|
3018
3018
|
"data-gtm-event-context": "VerifyEmailBox",
|
|
@@ -3032,7 +3032,7 @@ const Ct = "emailHelperTextBox_", Oi = ({
|
|
|
3032
3032
|
});
|
|
3033
3033
|
};
|
|
3034
3034
|
if (typeof r != "function") {
|
|
3035
|
-
h(s.formatMessage({ id: `${
|
|
3035
|
+
h(s.formatMessage({ id: `${$t}error_noFunction` }));
|
|
3036
3036
|
return;
|
|
3037
3037
|
}
|
|
3038
3038
|
f(!0), r(e).then(() => {
|
|
@@ -3048,7 +3048,7 @@ const Ct = "emailHelperTextBox_", Oi = ({
|
|
|
3048
3048
|
);
|
|
3049
3049
|
ae(
|
|
3050
3050
|
() => {
|
|
3051
|
-
let p =
|
|
3051
|
+
let p = $t, h = "default", _ = {}, y = {};
|
|
3052
3052
|
switch (t) {
|
|
3053
3053
|
case "gov":
|
|
3054
3054
|
p += "autoApproved", h = "success";
|
|
@@ -3293,7 +3293,7 @@ const Ea = ({
|
|
|
3293
3293
|
y
|
|
3294
3294
|
);
|
|
3295
3295
|
};
|
|
3296
|
-
const Ii =
|
|
3296
|
+
const Ii = Ae(function({
|
|
3297
3297
|
direction: e = "down"
|
|
3298
3298
|
}) {
|
|
3299
3299
|
return /* @__PURE__ */ a.jsx(
|
|
@@ -3939,7 +3939,7 @@ const rn = ({
|
|
|
3939
3939
|
);
|
|
3940
3940
|
}),
|
|
3941
3941
|
_ ? null : ($ || j) && h ? h : /* @__PURE__ */ a.jsx(
|
|
3942
|
-
|
|
3942
|
+
kt,
|
|
3943
3943
|
{
|
|
3944
3944
|
className: S("cta", {
|
|
3945
3945
|
center: $ || j,
|
|
@@ -3954,7 +3954,7 @@ const rn = ({
|
|
|
3954
3954
|
w && j && /* @__PURE__ */ a.jsx(Wt, { className: "success", children: typeof w == "string" ? w : I.formatMessage({ id: "form_success" }) })
|
|
3955
3955
|
] });
|
|
3956
3956
|
};
|
|
3957
|
-
const
|
|
3957
|
+
const Nt = "passwordRules_", Sa = "isMoreThanEightCharacters", Ca = "includesNumberAndSymbol", $a = "includesLowerAndUppercase", zi = {
|
|
3958
3958
|
[Sa]: "8Characters",
|
|
3959
3959
|
[Ca]: "numberSymbol",
|
|
3960
3960
|
[$a]: "lowercaseUppercase"
|
|
@@ -3968,7 +3968,7 @@ const $t = "passwordRules_", Sa = "isMoreThanEightCharacters", Ca = "includesNum
|
|
|
3968
3968
|
}) => {
|
|
3969
3969
|
const n = H();
|
|
3970
3970
|
return /* @__PURE__ */ a.jsxs("aside", { className: S("password-rules", e), children: [
|
|
3971
|
-
/* @__PURE__ */ a.jsx("small", { children: n.formatMessage({ id: `${
|
|
3971
|
+
/* @__PURE__ */ a.jsx("small", { children: n.formatMessage({ id: `${Nt}intro` }) }),
|
|
3972
3972
|
/* @__PURE__ */ a.jsx("ul", { children: [Sa, Ca, $a].map(
|
|
3973
3973
|
(r) => /* @__PURE__ */ a.jsxs(
|
|
3974
3974
|
"li",
|
|
@@ -3976,13 +3976,13 @@ const $t = "passwordRules_", Sa = "isMoreThanEightCharacters", Ca = "includesNum
|
|
|
3976
3976
|
className: S({ matches: t[r] }),
|
|
3977
3977
|
children: [
|
|
3978
3978
|
/* @__PURE__ */ a.jsxs(be, { children: [
|
|
3979
|
-
n.formatMessage({ id: `${
|
|
3979
|
+
n.formatMessage({ id: `${Nt}rule_label` }),
|
|
3980
3980
|
" "
|
|
3981
3981
|
] }),
|
|
3982
|
-
/* @__PURE__ */ a.jsx("span", { children: n.formatMessage({ id: `${
|
|
3982
|
+
/* @__PURE__ */ a.jsx("span", { children: n.formatMessage({ id: `${Nt}rule_${zi[r]}` }) }),
|
|
3983
3983
|
!t[r] && /* @__PURE__ */ a.jsxs(be, { element: "strong", children: [
|
|
3984
3984
|
" ",
|
|
3985
|
-
n.formatMessage({ id: `${
|
|
3985
|
+
n.formatMessage({ id: `${Nt}notMet` })
|
|
3986
3986
|
] })
|
|
3987
3987
|
]
|
|
3988
3988
|
},
|
|
@@ -3990,7 +3990,7 @@ const $t = "passwordRules_", Sa = "isMoreThanEightCharacters", Ca = "includesNum
|
|
|
3990
3990
|
)
|
|
3991
3991
|
) })
|
|
3992
3992
|
] });
|
|
3993
|
-
}, Hi =
|
|
3993
|
+
}, Hi = Ae(Zi);
|
|
3994
3994
|
const Vl = ({
|
|
3995
3995
|
text: t = {},
|
|
3996
3996
|
topRating: e = 5,
|
|
@@ -4276,7 +4276,7 @@ const Yi = ({
|
|
|
4276
4276
|
" ",
|
|
4277
4277
|
y({ id: "inviteForm_error" })
|
|
4278
4278
|
] }) }),
|
|
4279
|
-
/* @__PURE__ */ a.jsx(
|
|
4279
|
+
/* @__PURE__ */ a.jsx(Oe, {}),
|
|
4280
4280
|
/* @__PURE__ */ a.jsx("div", { className: "footer", children: h === "SUCCESS" ? /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
|
|
4281
4281
|
/* @__PURE__ */ a.jsx(se, { variant: "secondary", onClick: b, children: y({ id: "inviteForm_ctaSendMoreInvites" }) }),
|
|
4282
4282
|
/* @__PURE__ */ a.jsx(se, { onClick: T, children: y({ id: "inviteForm_ctaDone" }) })
|
|
@@ -4321,7 +4321,7 @@ const Yi = ({
|
|
|
4321
4321
|
}
|
|
4322
4322
|
)
|
|
4323
4323
|
] }),
|
|
4324
|
-
/* @__PURE__ */ a.jsx(
|
|
4324
|
+
/* @__PURE__ */ a.jsx(Oe, {}),
|
|
4325
4325
|
/* @__PURE__ */ a.jsx("fieldset", { className: "footer", children: /* @__PURE__ */ a.jsx(se, { className: "sendEmailsButton", disabled: m, children: n }) })
|
|
4326
4326
|
]
|
|
4327
4327
|
}
|
|
@@ -4789,7 +4789,7 @@ const eo = {
|
|
|
4789
4789
|
maxAge: 3600
|
|
4790
4790
|
});
|
|
4791
4791
|
}, [w]);
|
|
4792
|
-
const F =
|
|
4792
|
+
const F = wt(() => Ji({
|
|
4793
4793
|
placeholders: n,
|
|
4794
4794
|
labels: e,
|
|
4795
4795
|
shouldShow: h,
|
|
@@ -4874,7 +4874,7 @@ const eo = {
|
|
|
4874
4874
|
}
|
|
4875
4875
|
);
|
|
4876
4876
|
};
|
|
4877
|
-
var Zn = { exports: {} },
|
|
4877
|
+
var Zn = { exports: {} }, Pt = { exports: {} }, ue = {};
|
|
4878
4878
|
/** @license React v16.13.1
|
|
4879
4879
|
* react-is.production.min.js
|
|
4880
4880
|
*
|
|
@@ -5044,7 +5044,7 @@ function no() {
|
|
|
5044
5044
|
}
|
|
5045
5045
|
var Or;
|
|
5046
5046
|
function Na() {
|
|
5047
|
-
return Or || (Or = 1, process.env.NODE_ENV === "production" ?
|
|
5047
|
+
return Or || (Or = 1, process.env.NODE_ENV === "production" ? Pt.exports = to() : Pt.exports = no()), Pt.exports;
|
|
5048
5048
|
}
|
|
5049
5049
|
/*
|
|
5050
5050
|
object-assign
|
|
@@ -5588,12 +5588,12 @@ var Ma = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])",
|
|
|
5588
5588
|
return s;
|
|
5589
5589
|
}, Aa = function(e) {
|
|
5590
5590
|
return !isNaN(parseInt(e.getAttribute("tabindex"), 10));
|
|
5591
|
-
},
|
|
5591
|
+
}, Ie = function(e) {
|
|
5592
5592
|
if (!e)
|
|
5593
5593
|
throw new Error("No node provided");
|
|
5594
5594
|
return e.tabIndex < 0 && (/^(AUDIO|VIDEO|DETAILS)$/.test(e.tagName) || uo(e)) && !Aa(e) ? 0 : e.tabIndex;
|
|
5595
5595
|
}, fo = function(e, n) {
|
|
5596
|
-
var r =
|
|
5596
|
+
var r = Ie(e);
|
|
5597
5597
|
return r < 0 && n && !Aa(e) ? 0 : r;
|
|
5598
5598
|
}, mo = function(e, n) {
|
|
5599
5599
|
return e.tabIndex === n.tabIndex ? e.documentOrder - n.documentOrder : e.tabIndex - n.tabIndex;
|
|
@@ -5688,7 +5688,7 @@ var Ma = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])",
|
|
|
5688
5688
|
Ht(n) || po(n) || xo(n, e) || // For a details element with a summary, the summary element gets the focus
|
|
5689
5689
|
ho(n) || wo(n));
|
|
5690
5690
|
}, Hn = function(e, n) {
|
|
5691
|
-
return !(yo(n) ||
|
|
5691
|
+
return !(yo(n) || Ie(n) < 0 || !Vt(e, n));
|
|
5692
5692
|
}, jo = function(e) {
|
|
5693
5693
|
var n = parseInt(e.getAttribute("tabindex"), 10);
|
|
5694
5694
|
return !!(isNaN(n) || n >= 0);
|
|
@@ -5727,7 +5727,7 @@ var Ma = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])",
|
|
|
5727
5727
|
if (n = n || {}, !e)
|
|
5728
5728
|
throw new Error("No node provided");
|
|
5729
5729
|
return Ze.call(e, zt) === !1 ? !1 : Hn(n, e);
|
|
5730
|
-
}, To = /* @__PURE__ */ Ma.concat("iframe").join(","),
|
|
5730
|
+
}, To = /* @__PURE__ */ Ma.concat("iframe").join(","), qt = function(e, n) {
|
|
5731
5731
|
if (n = n || {}, !e)
|
|
5732
5732
|
throw new Error("No node provided");
|
|
5733
5733
|
return Ze.call(e, To) === !1 ? !1 : Vt(n, e);
|
|
@@ -5735,8 +5735,8 @@ var Ma = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])",
|
|
|
5735
5735
|
const Eo = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
5736
5736
|
__proto__: null,
|
|
5737
5737
|
focusable: La,
|
|
5738
|
-
getTabIndex:
|
|
5739
|
-
isFocusable:
|
|
5738
|
+
getTabIndex: Ie,
|
|
5739
|
+
isFocusable: qt,
|
|
5740
5740
|
isTabbable: We,
|
|
5741
5741
|
tabbable: Ia
|
|
5742
5742
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
@@ -5823,7 +5823,7 @@ var Zr = {
|
|
|
5823
5823
|
for (var n = arguments.length, r = new Array(n > 1 ? n - 1 : 0), s = 1; s < n; s++)
|
|
5824
5824
|
r[s - 1] = arguments[s];
|
|
5825
5825
|
return typeof e == "function" ? e.apply(void 0, r) : e;
|
|
5826
|
-
},
|
|
5826
|
+
}, Mt = function(e) {
|
|
5827
5827
|
return e.target.shadowRoot && typeof e.composedPath == "function" ? e.composedPath()[0] : e.target;
|
|
5828
5828
|
}, Fo = [], Oo = function(e, n) {
|
|
5829
5829
|
var r = (n == null ? void 0 : n.document) || document, s = (n == null ? void 0 : n.trapStack) || Fo, i = zr({
|
|
@@ -5902,7 +5902,7 @@ var Zr = {
|
|
|
5902
5902
|
var j = u("initialFocus");
|
|
5903
5903
|
if (j === !1)
|
|
5904
5904
|
return !1;
|
|
5905
|
-
if (j === void 0 || !
|
|
5905
|
+
if (j === void 0 || !qt(j, i.tabbableOptions))
|
|
5906
5906
|
if (l(r.activeElement) >= 0)
|
|
5907
5907
|
j = r.activeElement;
|
|
5908
5908
|
else {
|
|
@@ -5919,7 +5919,7 @@ var Zr = {
|
|
|
5919
5919
|
}), z = N.slice().reverse().find(function(E) {
|
|
5920
5920
|
return We(E);
|
|
5921
5921
|
}), K = !!x.find(function(E) {
|
|
5922
|
-
return
|
|
5922
|
+
return Ie(E) > 0;
|
|
5923
5923
|
});
|
|
5924
5924
|
return {
|
|
5925
5925
|
container: j,
|
|
@@ -5986,7 +5986,7 @@ var Zr = {
|
|
|
5986
5986
|
return x || (x === !1 ? !1 : j);
|
|
5987
5987
|
}, y = function(j) {
|
|
5988
5988
|
var x = j.target, N = j.event, A = j.isBackward, W = A === void 0 ? !1 : A;
|
|
5989
|
-
x = x ||
|
|
5989
|
+
x = x || Mt(N), m();
|
|
5990
5990
|
var Z = null;
|
|
5991
5991
|
if (o.tabbableGroups.length > 0) {
|
|
5992
5992
|
var z = l(x, N), K = z >= 0 ? o.containerGroups[z] : void 0;
|
|
@@ -5997,9 +5997,9 @@ var Zr = {
|
|
|
5997
5997
|
var V = G.firstTabbableNode;
|
|
5998
5998
|
return x === V;
|
|
5999
5999
|
});
|
|
6000
|
-
if (E < 0 && (K.container === x ||
|
|
6000
|
+
if (E < 0 && (K.container === x || qt(x, i.tabbableOptions) && !We(x, i.tabbableOptions) && !K.nextTabbableNode(x, !1)) && (E = z), E >= 0) {
|
|
6001
6001
|
var P = E === 0 ? o.tabbableGroups.length - 1 : E - 1, q = o.tabbableGroups[P];
|
|
6002
|
-
Z =
|
|
6002
|
+
Z = Ie(x) >= 0 ? q.lastTabbableNode : q.lastDomTabbableNode;
|
|
6003
6003
|
} else
|
|
6004
6004
|
vt(N) || (Z = K.nextTabbableNode(x, !1));
|
|
6005
6005
|
} else {
|
|
@@ -6007,9 +6007,9 @@ var Zr = {
|
|
|
6007
6007
|
var V = G.lastTabbableNode;
|
|
6008
6008
|
return x === V;
|
|
6009
6009
|
});
|
|
6010
|
-
if (B < 0 && (K.container === x ||
|
|
6010
|
+
if (B < 0 && (K.container === x || qt(x, i.tabbableOptions) && !We(x, i.tabbableOptions) && !K.nextTabbableNode(x)) && (B = z), B >= 0) {
|
|
6011
6011
|
var U = B === o.tabbableGroups.length - 1 ? 0 : B + 1, te = o.tabbableGroups[U];
|
|
6012
|
-
Z =
|
|
6012
|
+
Z = Ie(x) >= 0 ? te.firstTabbableNode : te.firstDomTabbableNode;
|
|
6013
6013
|
} else
|
|
6014
6014
|
vt(N) || (Z = K.nextTabbableNode(x));
|
|
6015
6015
|
}
|
|
@@ -6017,7 +6017,7 @@ var Zr = {
|
|
|
6017
6017
|
Z = u("fallbackFocus");
|
|
6018
6018
|
return Z;
|
|
6019
6019
|
}, v = function(j) {
|
|
6020
|
-
var x =
|
|
6020
|
+
var x = Mt(j);
|
|
6021
6021
|
if (!(l(x, j) >= 0)) {
|
|
6022
6022
|
if (lt(i.clickOutsideDeactivates, j)) {
|
|
6023
6023
|
c.deactivate({
|
|
@@ -6034,14 +6034,14 @@ var Zr = {
|
|
|
6034
6034
|
lt(i.allowOutsideClick, j) || j.preventDefault();
|
|
6035
6035
|
}
|
|
6036
6036
|
}, b = function(j) {
|
|
6037
|
-
var x =
|
|
6037
|
+
var x = Mt(j), N = l(x, j) >= 0;
|
|
6038
6038
|
if (N || x instanceof Document)
|
|
6039
6039
|
N && (o.mostRecentlyFocusedNode = x);
|
|
6040
6040
|
else {
|
|
6041
6041
|
j.stopImmediatePropagation();
|
|
6042
6042
|
var A, W = !0;
|
|
6043
6043
|
if (o.mostRecentlyFocusedNode)
|
|
6044
|
-
if (
|
|
6044
|
+
if (Ie(o.mostRecentlyFocusedNode) > 0) {
|
|
6045
6045
|
var Z = l(o.mostRecentlyFocusedNode), z = o.containerGroups[Z].tabbableNodes;
|
|
6046
6046
|
if (z.length > 0) {
|
|
6047
6047
|
var K = z.findIndex(function(E) {
|
|
@@ -6052,7 +6052,7 @@ var Zr = {
|
|
|
6052
6052
|
} else
|
|
6053
6053
|
o.containerGroups.some(function(E) {
|
|
6054
6054
|
return E.tabbableNodes.some(function(P) {
|
|
6055
|
-
return
|
|
6055
|
+
return Ie(P) > 0;
|
|
6056
6056
|
});
|
|
6057
6057
|
}) || (W = !1);
|
|
6058
6058
|
else
|
|
@@ -6080,7 +6080,7 @@ var Zr = {
|
|
|
6080
6080
|
}
|
|
6081
6081
|
(i.isKeyForward(j) || i.isKeyBackward(j)) && T(j, i.isKeyBackward(j));
|
|
6082
6082
|
}, w = function(j) {
|
|
6083
|
-
var x =
|
|
6083
|
+
var x = Mt(j);
|
|
6084
6084
|
l(x, j) >= 0 || lt(i.clickOutsideDeactivates, j) || lt(i.allowOutsideClick, j) || (j.preventDefault(), j.stopImmediatePropagation());
|
|
6085
6085
|
}, I = function() {
|
|
6086
6086
|
if (o.active)
|
|
@@ -6268,7 +6268,7 @@ function Ho(t, e) {
|
|
|
6268
6268
|
}
|
|
6269
6269
|
return (e === "string" ? String : Number)(t);
|
|
6270
6270
|
}
|
|
6271
|
-
var
|
|
6271
|
+
var Rt = Y, J = lo, Vo = Do, Yo = Vo.createFocusTrap, Ko = Io, Go = Ko.isFocusable, rr = /* @__PURE__ */ function(t) {
|
|
6272
6272
|
qo(n, t);
|
|
6273
6273
|
var e = Uo(n);
|
|
6274
6274
|
function n(r) {
|
|
@@ -6440,14 +6440,14 @@ var Mt = Y, J = lo, Vo = Do, Yo = Vo.createFocusTrap, Ko = Io, Go = Ko.isFocusab
|
|
|
6440
6440
|
}, {
|
|
6441
6441
|
key: "render",
|
|
6442
6442
|
value: function() {
|
|
6443
|
-
var s = this, i = this.props.children ?
|
|
6443
|
+
var s = this, i = this.props.children ? Rt.Children.only(this.props.children) : void 0;
|
|
6444
6444
|
if (i) {
|
|
6445
|
-
if (i.type && i.type ===
|
|
6445
|
+
if (i.type && i.type === Rt.Fragment)
|
|
6446
6446
|
throw new Error("A focus-trap cannot use a Fragment as its child container. Try replacing it with a <div> element.");
|
|
6447
6447
|
var o = function(l) {
|
|
6448
6448
|
var u = s.props.containerElements;
|
|
6449
6449
|
i && (typeof i.ref == "function" ? i.ref(l) : i.ref && (i.ref.current = l)), s.focusTrapElements = u || [l];
|
|
6450
|
-
}, c =
|
|
6450
|
+
}, c = Rt.cloneElement(i, {
|
|
6451
6451
|
ref: o
|
|
6452
6452
|
});
|
|
6453
6453
|
return c;
|
|
@@ -6455,7 +6455,7 @@ var Mt = Y, J = lo, Vo = Do, Yo = Vo.createFocusTrap, Ko = Io, Go = Ko.isFocusab
|
|
|
6455
6455
|
return null;
|
|
6456
6456
|
}
|
|
6457
6457
|
}]), n;
|
|
6458
|
-
}(
|
|
6458
|
+
}(Rt.Component), ut = typeof Element > "u" ? Function : Element;
|
|
6459
6459
|
rr.propTypes = {
|
|
6460
6460
|
active: J.bool,
|
|
6461
6461
|
paused: J.bool,
|
|
@@ -6571,11 +6571,11 @@ const an = ({
|
|
|
6571
6571
|
}
|
|
6572
6572
|
)
|
|
6573
6573
|
] }),
|
|
6574
|
-
n && /* @__PURE__ */ a.jsx(
|
|
6574
|
+
n && /* @__PURE__ */ a.jsx(Oe, {}),
|
|
6575
6575
|
f,
|
|
6576
6576
|
l && /* @__PURE__ */ a.jsxs("div", { className: "bottom", children: [
|
|
6577
|
-
/* @__PURE__ */ a.jsx(
|
|
6578
|
-
/* @__PURE__ */ a.jsx(
|
|
6577
|
+
/* @__PURE__ */ a.jsx(Oe, {}),
|
|
6578
|
+
/* @__PURE__ */ a.jsx(kt, { buttons: l })
|
|
6579
6579
|
] }),
|
|
6580
6580
|
o && /* @__PURE__ */ a.jsx(Wt, { className: "error", children: o })
|
|
6581
6581
|
] }) })
|
|
@@ -6648,7 +6648,7 @@ const Xl = ({ members: t }) => {
|
|
|
6648
6648
|
isOpen: e !== !1,
|
|
6649
6649
|
children: e === !1 ? "" : /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
|
|
6650
6650
|
r(e),
|
|
6651
|
-
/* @__PURE__ */ a.jsx(
|
|
6651
|
+
/* @__PURE__ */ a.jsx(xt, { children: e.text })
|
|
6652
6652
|
] }),
|
|
6653
6653
|
buttons: [
|
|
6654
6654
|
{
|
|
@@ -6864,7 +6864,7 @@ const nc = {
|
|
|
6864
6864
|
className: i = ""
|
|
6865
6865
|
}) => {
|
|
6866
6866
|
var I, R, Q;
|
|
6867
|
-
const o = H(), c = Ee(
|
|
6867
|
+
const o = H(), c = Ee(De), f = c && typeof c.id == "string", [l, u] = X({
|
|
6868
6868
|
data: null,
|
|
6869
6869
|
isLoading: !0
|
|
6870
6870
|
}), { data: d, isLoading: m } = l, p = sa(() => {
|
|
@@ -6935,7 +6935,7 @@ const nc = {
|
|
|
6935
6935
|
),
|
|
6936
6936
|
d.banner ? /* @__PURE__ */ a.jsxs("p", { className: "img", children: [
|
|
6937
6937
|
d.registered && /* @__PURE__ */ a.jsx(ht, { size: "small", variant: "registered", children: o.formatMessage({ id: "card_registered" }) }),
|
|
6938
|
-
/* @__PURE__ */ a.jsx(
|
|
6938
|
+
/* @__PURE__ */ a.jsx(Tt, { image: d.banner })
|
|
6939
6939
|
] }) : y === "people" ? /* @__PURE__ */ a.jsx(
|
|
6940
6940
|
Ye,
|
|
6941
6941
|
{
|
|
@@ -7037,7 +7037,7 @@ const En = {
|
|
|
7037
7037
|
threeCards: 769,
|
|
7038
7038
|
twoCards: 480
|
|
7039
7039
|
};
|
|
7040
|
-
let
|
|
7040
|
+
let Ft = null;
|
|
7041
7041
|
const ic = ({
|
|
7042
7042
|
id: t,
|
|
7043
7043
|
cards: e,
|
|
@@ -7053,7 +7053,7 @@ const ic = ({
|
|
|
7053
7053
|
}), { cardsPerPage: u, isLoading: d } = f, [m, p] = X({
|
|
7054
7054
|
currentPage: 0,
|
|
7055
7055
|
loadedPages: [0]
|
|
7056
|
-
}), { currentPage: h, loadedPages: _ } = m, y = e.length, v = Math.ceil(y / u), b = pe(null), T =
|
|
7056
|
+
}), { currentPage: h, loadedPages: _ } = m, y = e.length, v = Math.ceil(y / u), b = pe(null), T = jt(!0, !0, b == null ? void 0 : b.current);
|
|
7057
7057
|
ae(() => {
|
|
7058
7058
|
let C = 1;
|
|
7059
7059
|
T && (T >= En.fourCards ? C = 4 : T >= En.threeCards ? C = 3 : T >= En.twoCards && (C = 2), C > y && (C = y)), l((F) => ({
|
|
@@ -7082,12 +7082,12 @@ const ic = ({
|
|
|
7082
7082
|
loadedPages: [.../* @__PURE__ */ new Set([..._, F])]
|
|
7083
7083
|
}));
|
|
7084
7084
|
}, w = (C) => {
|
|
7085
|
-
|
|
7085
|
+
Ft = C.touches[0].clientX;
|
|
7086
7086
|
}, I = (C) => {
|
|
7087
|
-
if (
|
|
7087
|
+
if (Ft === null)
|
|
7088
7088
|
return;
|
|
7089
|
-
const F = C.touches[0].clientX, $ =
|
|
7090
|
-
$ > 5 ? k("next") : $ < -5 && k("previous"),
|
|
7089
|
+
const F = C.touches[0].clientX, $ = Ft - F;
|
|
7090
|
+
$ > 5 ? k("next") : $ < -5 && k("previous"), Ft = null;
|
|
7091
7091
|
}, R = {
|
|
7092
7092
|
"--width": `${T || 0}px`,
|
|
7093
7093
|
"--total-cards": y,
|
|
@@ -7205,7 +7205,7 @@ const ic = ({
|
|
|
7205
7205
|
"data-testid": "carousel-placeholder"
|
|
7206
7206
|
}
|
|
7207
7207
|
),
|
|
7208
|
-
d ? null : /* @__PURE__ */ a.jsx(
|
|
7208
|
+
d ? null : /* @__PURE__ */ a.jsx(Oe, {})
|
|
7209
7209
|
] }, `placeholder-${u}`) : /* @__PURE__ */ a.jsxs(yt, { children: [
|
|
7210
7210
|
/* @__PURE__ */ a.jsx(
|
|
7211
7211
|
ic,
|
|
@@ -7216,7 +7216,7 @@ const ic = ({
|
|
|
7216
7216
|
...s
|
|
7217
7217
|
}
|
|
7218
7218
|
),
|
|
7219
|
-
d ? null : /* @__PURE__ */ a.jsx(
|
|
7219
|
+
d ? null : /* @__PURE__ */ a.jsx(Oe, {})
|
|
7220
7220
|
] }, `carousel-${u}`);
|
|
7221
7221
|
}
|
|
7222
7222
|
);
|
|
@@ -7227,7 +7227,7 @@ const Sn = "joinCommunityButton", Wa = ({
|
|
|
7227
7227
|
}, leave: () => {
|
|
7228
7228
|
} }
|
|
7229
7229
|
}) => {
|
|
7230
|
-
const s = H(), i = Ee(
|
|
7230
|
+
const s = H(), i = Ee(De), o = i && typeof i.id == "string", [c, f] = X(t), [l, u] = X(t ? "joined" : "notJoined");
|
|
7231
7231
|
ae(() => {
|
|
7232
7232
|
l === "joining" ? u("joined") : l === "leaving" && u("notJoined");
|
|
7233
7233
|
}, [c]);
|
|
@@ -7262,7 +7262,7 @@ const Cn = "communityDetails_", tu = ({
|
|
|
7262
7262
|
}) => {
|
|
7263
7263
|
const c = H(), f = 5, l = r || s.length, u = s.length ? s : Array(f).fill({}), d = `/communities/${n}/members` === window.location.pathname;
|
|
7264
7264
|
return /* @__PURE__ */ a.jsxs("div", { className: S("community-details", t), children: [
|
|
7265
|
-
/* @__PURE__ */ a.jsx(
|
|
7265
|
+
/* @__PURE__ */ a.jsx(Oe, {}),
|
|
7266
7266
|
/* @__PURE__ */ a.jsxs("div", { className: "member-details", children: [
|
|
7267
7267
|
/* @__PURE__ */ a.jsxs("div", { className: "top", children: [
|
|
7268
7268
|
/* @__PURE__ */ a.jsxs("h4", { children: [
|
|
@@ -7372,7 +7372,7 @@ const ru = ({
|
|
|
7372
7372
|
urlForRouter: `/${s.split("/").slice(2).join("/")}`
|
|
7373
7373
|
} : s;
|
|
7374
7374
|
};
|
|
7375
|
-
const
|
|
7375
|
+
const Ot = "languageSwitcher_", au = ({
|
|
7376
7376
|
currentLanguage: t,
|
|
7377
7377
|
isOriginalLanguage: e = !1,
|
|
7378
7378
|
isHumanTranslation: n = !1,
|
|
@@ -7394,7 +7394,7 @@ const Ft = "languageSwitcher_", au = ({
|
|
|
7394
7394
|
const h = Object.keys(r), _ = d !== t;
|
|
7395
7395
|
return /* @__PURE__ */ a.jsxs("div", { className: S("language-switcher text-small", o, f), children: [
|
|
7396
7396
|
/* @__PURE__ */ a.jsxs("nav", { children: [
|
|
7397
|
-
o !== "short" && /* @__PURE__ */ a.jsx("p", { children: c || l.formatMessage({ id: `${
|
|
7397
|
+
o !== "short" && /* @__PURE__ */ a.jsx("p", { children: c || l.formatMessage({ id: `${Ot}label` }) }),
|
|
7398
7398
|
/* @__PURE__ */ a.jsx("ul", { children: h.map((y) => {
|
|
7399
7399
|
var T;
|
|
7400
7400
|
if (!gn[y])
|
|
@@ -7403,7 +7403,7 @@ const Ft = "languageSwitcher_", au = ({
|
|
|
7403
7403
|
let b = { className: y };
|
|
7404
7404
|
if (d === y)
|
|
7405
7405
|
b["aria-label"] = l.formatMessage(
|
|
7406
|
-
{ id: `${
|
|
7406
|
+
{ id: `${Ot}selected` },
|
|
7407
7407
|
{ language: gn[y] }
|
|
7408
7408
|
);
|
|
7409
7409
|
else {
|
|
@@ -7422,7 +7422,7 @@ const Ft = "languageSwitcher_", au = ({
|
|
|
7422
7422
|
return /* @__PURE__ */ a.jsx("li", { children: /* @__PURE__ */ a.jsx(at, { ...b, fallbackElement: "span", children: gn[y] }) }, y);
|
|
7423
7423
|
}) }),
|
|
7424
7424
|
o !== "short" && !_ && /* @__PURE__ */ a.jsx("p", { children: l.formatMessage({
|
|
7425
|
-
id: `${
|
|
7425
|
+
id: `${Ot}translation_${e ? "original" : n ? "human" : "machine"}`
|
|
7426
7426
|
}) })
|
|
7427
7427
|
] }),
|
|
7428
7428
|
o !== "short" && !_ && !e && !n && /* @__PURE__ */ a.jsx("small", {
|
|
@@ -7430,7 +7430,7 @@ const Ft = "languageSwitcher_", au = ({
|
|
|
7430
7430
|
// @ts-ignore
|
|
7431
7431
|
// `values` are throwing a type error: https://github.com/formatjs/formatjs/issues/3633
|
|
7432
7432
|
children: l.formatMessage(
|
|
7433
|
-
{ id: `${
|
|
7433
|
+
{ id: `${Ot}disclaimer` },
|
|
7434
7434
|
{
|
|
7435
7435
|
email: ft.support,
|
|
7436
7436
|
link: (y) => {
|
|
@@ -7498,7 +7498,7 @@ const za = ({
|
|
|
7498
7498
|
children: /* @__PURE__ */ a.jsx(be, { children: /* @__PURE__ */ a.jsx(ye, { id: "apolitical" }) })
|
|
7499
7499
|
}
|
|
7500
7500
|
) });
|
|
7501
|
-
let
|
|
7501
|
+
let At = !1;
|
|
7502
7502
|
const cc = ({
|
|
7503
7503
|
element: t = "div",
|
|
7504
7504
|
id: e = "more-menu",
|
|
@@ -7536,10 +7536,10 @@ const cc = ({
|
|
|
7536
7536
|
c(!1), typeof u == "function" && u(y);
|
|
7537
7537
|
},
|
|
7538
7538
|
onFocus: () => {
|
|
7539
|
-
|
|
7539
|
+
At && (clearTimeout(At), At = !1);
|
|
7540
7540
|
},
|
|
7541
7541
|
onBlur: () => {
|
|
7542
|
-
|
|
7542
|
+
At = setTimeout(() => {
|
|
7543
7543
|
c(!1);
|
|
7544
7544
|
}, 100);
|
|
7545
7545
|
}
|
|
@@ -7580,7 +7580,7 @@ const uc = [
|
|
|
7580
7580
|
href: "/communities/"
|
|
7581
7581
|
}
|
|
7582
7582
|
], dc = ({ activeLink: t }) => {
|
|
7583
|
-
const e = H(), n = Ee(
|
|
7583
|
+
const e = H(), n = Ee(De), r = n && typeof n.id == "string";
|
|
7584
7584
|
return /* @__PURE__ */ a.jsxs("ul", { id: "navigation-menu", className: "text-medium", children: [
|
|
7585
7585
|
uc.map(({ key: s, href: i }) => /* @__PURE__ */ a.jsx(
|
|
7586
7586
|
"li",
|
|
@@ -7771,7 +7771,7 @@ const pc = {
|
|
|
7771
7771
|
className: n = "",
|
|
7772
7772
|
children: r
|
|
7773
7773
|
}) => {
|
|
7774
|
-
const s =
|
|
7774
|
+
const s = jt(!0);
|
|
7775
7775
|
let i = r;
|
|
7776
7776
|
return Y.Children.count(r) === 1 && (i = Y.Children.toArray(r)[0], i.props && (i = i.props.children)), /* @__PURE__ */ a.jsx("section", { className: S("columns", `layout-${t}`, n), children: Y.Children.map(i, (o, c) => e !== !1 && c === e && s && s < pc[t] ? null : o) });
|
|
7777
7777
|
};
|
|
@@ -7867,7 +7867,7 @@ const Mn = "cookieBanner_", Rn = [
|
|
|
7867
7867
|
}), /* @__PURE__ */ a.jsxs("aside", { id: "cookie-banner", className: "text-medium", children: [
|
|
7868
7868
|
/* @__PURE__ */ a.jsx("h6", { children: t.formatMessage({ id: `${Mn}title` }) }),
|
|
7869
7869
|
/* @__PURE__ */ a.jsx("p", { children: t.formatMessage({ id: `${Mn}text` }) }),
|
|
7870
|
-
/* @__PURE__ */ a.jsx(
|
|
7870
|
+
/* @__PURE__ */ a.jsx(kt, { buttons: l })
|
|
7871
7871
|
] });
|
|
7872
7872
|
}, Re = {
|
|
7873
7873
|
platform: {
|
|
@@ -8355,7 +8355,7 @@ const Xe = "footer_", Gt = "SiteFooter", Kr = ({ group: t }) => {
|
|
|
8355
8355
|
);
|
|
8356
8356
|
};
|
|
8357
8357
|
const vc = { height: 67, height_desktop: 83 }, Ha = ({ showNavigation: t = !0 }) => {
|
|
8358
|
-
const e = H(), n = Ee(
|
|
8358
|
+
const e = H(), n = Ee(De), r = jt(!0, !0), s = n && typeof n.id == "string", i = wt(
|
|
8359
8359
|
() => fe.getIsDesktopVersion(s, r),
|
|
8360
8360
|
[s, r]
|
|
8361
8361
|
), [o, c] = Yn(ma, {
|
|
@@ -8561,9 +8561,9 @@ const bc = () => {
|
|
|
8561
8561
|
ae(() => {
|
|
8562
8562
|
window.scrollTo(0, 0);
|
|
8563
8563
|
}, [h]);
|
|
8564
|
-
const _ =
|
|
8564
|
+
const _ = Bt(t, { locale: c }), y = Bt(e, {
|
|
8565
8565
|
locale: c
|
|
8566
|
-
}), v =
|
|
8566
|
+
}), v = Bt(n, {
|
|
8567
8567
|
locale: c
|
|
8568
8568
|
}), b = {};
|
|
8569
8569
|
return u !== "default" && (b[u] = !0), d !== "default" && (b[d] = !0), m !== "default" && (b[m] = !0), /* @__PURE__ */ a.jsx(Ps, { onError: r, fallback: /* @__PURE__ */ a.jsx(bc, {}), children: /* @__PURE__ */ a.jsx(xs, { fallback: null, children: /* @__PURE__ */ a.jsxs(
|
|
@@ -8831,10 +8831,10 @@ const fu = ({
|
|
|
8831
8831
|
"li",
|
|
8832
8832
|
{
|
|
8833
8833
|
className: S({
|
|
8834
|
-
article: y ===
|
|
8835
|
-
discussion: y ===
|
|
8836
|
-
quiz: y ===
|
|
8837
|
-
completed: h && y ===
|
|
8834
|
+
article: y === St.ARTICLE,
|
|
8835
|
+
discussion: y === St.DISCUSSION,
|
|
8836
|
+
quiz: y === St.QUIZ,
|
|
8837
|
+
completed: h && y === St.ARTICLE,
|
|
8838
8838
|
locked: !C
|
|
8839
8839
|
}),
|
|
8840
8840
|
...F,
|
|
@@ -8904,7 +8904,7 @@ const mu = ({
|
|
|
8904
8904
|
}
|
|
8905
8905
|
);
|
|
8906
8906
|
};
|
|
8907
|
-
let
|
|
8907
|
+
let Dt = null;
|
|
8908
8908
|
const we = "discussion_form_", ar = ({
|
|
8909
8909
|
content: t = { type: "response", slugs: {} },
|
|
8910
8910
|
userHasPermissions: e = !0,
|
|
@@ -8939,7 +8939,7 @@ const we = "discussion_form_", ar = ({
|
|
|
8939
8939
|
gtmContext: l = "DiscussionForm"
|
|
8940
8940
|
}) => {
|
|
8941
8941
|
var F, $, j;
|
|
8942
|
-
const u = H(), d = Ee(
|
|
8942
|
+
const u = H(), d = Ee(De), [m, p] = X(
|
|
8943
8943
|
n.isEditing && n.isEditing.text || ""
|
|
8944
8944
|
), [h, _] = X(c.error || !1), [y, v] = X(!1), b = pe(null);
|
|
8945
8945
|
if (r || (r = b), n.isLoading)
|
|
@@ -8975,7 +8975,7 @@ const we = "discussion_form_", ar = ({
|
|
|
8975
8975
|
var A;
|
|
8976
8976
|
if (x.preventDefault(), x.stopPropagation(), !d || !d.id || !e || R)
|
|
8977
8977
|
return;
|
|
8978
|
-
|
|
8978
|
+
Dt && clearTimeout(Dt), v("submitting");
|
|
8979
8979
|
const N = window.location.pathname;
|
|
8980
8980
|
try {
|
|
8981
8981
|
let W;
|
|
@@ -9005,7 +9005,7 @@ const we = "discussion_form_", ar = ({
|
|
|
9005
9005
|
default:
|
|
9006
9006
|
break;
|
|
9007
9007
|
}
|
|
9008
|
-
await Ks(1e3), f.callback && await f.callback(W),
|
|
9008
|
+
await Ks(1e3), f.callback && await f.callback(W), Dt = setTimeout(() => {
|
|
9009
9009
|
p(""), v("submitted");
|
|
9010
9010
|
const Z = new Event("discussionFormSubmitted");
|
|
9011
9011
|
document.dispatchEvent(Z), I();
|
|
@@ -9026,7 +9026,7 @@ const we = "discussion_form_", ar = ({
|
|
|
9026
9026
|
) : Z != null && Z.message.includes("400") && (z = `${we}error`), _(z), I();
|
|
9027
9027
|
}
|
|
9028
9028
|
}, I = () => {
|
|
9029
|
-
|
|
9029
|
+
Dt = setTimeout(() => {
|
|
9030
9030
|
_(!1), v(!1);
|
|
9031
9031
|
}, 5e3);
|
|
9032
9032
|
}, R = !m || !ni(m), Q = y === "submitting", C = [];
|
|
@@ -9113,7 +9113,7 @@ const we = "discussion_form_", ar = ({
|
|
|
9113
9113
|
}
|
|
9114
9114
|
)
|
|
9115
9115
|
}) }),
|
|
9116
|
-
/* @__PURE__ */ a.jsx(
|
|
9116
|
+
/* @__PURE__ */ a.jsx(kt, { buttons: C }),
|
|
9117
9117
|
y === "submitted" && n.showSuccessMessage && /* @__PURE__ */ a.jsx(Wt, { className: "success", "data-testid": "success", children: $e(u.formatMessage, `${we}success`, t.type, "action") }),
|
|
9118
9118
|
h && /* @__PURE__ */ a.jsx(Wt, { id: "error-message", className: "error", "data-testid": "error", children: c.error ? c.error : typeof h == "string" ? h.includes(" ") ? h : u.formatMessage(
|
|
9119
9119
|
{ id: h },
|
|
@@ -9188,7 +9188,7 @@ const An = () => {
|
|
|
9188
9188
|
ae(() => {
|
|
9189
9189
|
p(s);
|
|
9190
9190
|
}, [s]);
|
|
9191
|
-
const [u, d] = X(e), [m, p] = X(s), [h, _] = X(!1), [y, v] = X(!1), b =
|
|
9191
|
+
const [u, d] = X(e), [m, p] = X(s), [h, _] = X(!1), [y, v] = X(!1), b = wt(
|
|
9192
9192
|
() => Ec(n, Dn),
|
|
9193
9193
|
[n]
|
|
9194
9194
|
), T = (w) => {
|
|
@@ -9326,7 +9326,7 @@ const Me = "discussion_", Cc = 280, cn = ({
|
|
|
9326
9326
|
children: _,
|
|
9327
9327
|
isTruncated: y = !1
|
|
9328
9328
|
}) => {
|
|
9329
|
-
const v = H(), b = Ee(
|
|
9329
|
+
const v = H(), b = Ee(De), T = Ee(sr), { author: k, canLike: w, createdAt: I, id: R, likes: Q = 0, userLiked: C, comments: F = 0 } = e, $ = b && b.id && typeof k != "string" && k.id && k.id === b.id || !1, j = typeof w == "boolean" ? w : n ? !$ : !1, x = $ && (!e.createdAt || Ys(e.createdAt, 10, "seconds")), N = pe(null), [A, W] = X({
|
|
9330
9330
|
body: e && e.body || "",
|
|
9331
9331
|
isEditing: !1,
|
|
9332
9332
|
didEdit: e && e.isEdited || !1
|
|
@@ -9490,10 +9490,10 @@ const Me = "discussion_", Cc = 280, cn = ({
|
|
|
9490
9490
|
className: "gtm-trackable",
|
|
9491
9491
|
"data-gtm-event-context": h,
|
|
9492
9492
|
"data-gtm-event-type": "title-click",
|
|
9493
|
-
children: /* @__PURE__ */ a.jsx(
|
|
9493
|
+
children: /* @__PURE__ */ a.jsx(xt, { options: { overrides: { a: gi } }, children: te })
|
|
9494
9494
|
}
|
|
9495
9495
|
) : /* @__PURE__ */ a.jsx(
|
|
9496
|
-
|
|
9496
|
+
xt,
|
|
9497
9497
|
{
|
|
9498
9498
|
options: {
|
|
9499
9499
|
wrapper: e.type === "question" ? "h1" : Y.Fragment,
|
|
@@ -9656,7 +9656,7 @@ const Nc = ({
|
|
|
9656
9656
|
form: r,
|
|
9657
9657
|
children: s
|
|
9658
9658
|
}) => {
|
|
9659
|
-
const i = H(), o = Ee(sr), c =
|
|
9659
|
+
const i = H(), o = Ee(sr), c = Bt(s, {
|
|
9660
9660
|
element: "li"
|
|
9661
9661
|
});
|
|
9662
9662
|
return /* @__PURE__ */ a.jsxs("div", { className: "thread-wrapper", children: [
|
|
@@ -10293,7 +10293,7 @@ const pu = ({
|
|
|
10293
10293
|
isTruncated: !0
|
|
10294
10294
|
}
|
|
10295
10295
|
),
|
|
10296
|
-
b > k + 1 && /* @__PURE__ */ a.jsx(
|
|
10296
|
+
b > k + 1 && /* @__PURE__ */ a.jsx(Oe, {})
|
|
10297
10297
|
] }, w);
|
|
10298
10298
|
}),
|
|
10299
10299
|
!d && /* @__PURE__ */ a.jsx(
|
|
@@ -11405,7 +11405,7 @@ const gu = ({
|
|
|
11405
11405
|
}
|
|
11406
11406
|
}) => {
|
|
11407
11407
|
var C, F, $, j, x, N, A, W, Z, z;
|
|
11408
|
-
const l = H(), u = Ee(
|
|
11408
|
+
const l = H(), u = Ee(De), {
|
|
11409
11409
|
activity: d,
|
|
11410
11410
|
error: m,
|
|
11411
11411
|
isLoading: p,
|
|
@@ -11551,10 +11551,10 @@ const gu = ({
|
|
|
11551
11551
|
contributors: ["community"]
|
|
11552
11552
|
}
|
|
11553
11553
|
];
|
|
11554
|
-
const
|
|
11554
|
+
const It = "notFoundError_", bu = () => {
|
|
11555
11555
|
const t = H(), e = [];
|
|
11556
11556
|
return aa.forEach((n, r) => {
|
|
11557
|
-
n.title = t.formatMessage({ id: `${
|
|
11557
|
+
n.title = t.formatMessage({ id: `${It}post_${r + 1}` }), e.push("solutionArticle");
|
|
11558
11558
|
}), /* @__PURE__ */ a.jsxs(
|
|
11559
11559
|
yc,
|
|
11560
11560
|
{
|
|
@@ -11571,15 +11571,15 @@ const Dt = "notFoundError_", bu = () => {
|
|
|
11571
11571
|
})
|
|
11572
11572
|
}
|
|
11573
11573
|
),
|
|
11574
|
-
/* @__PURE__ */ a.jsx(se, { href: "/solution-articles/", children: t.formatMessage({ id: `${
|
|
11574
|
+
/* @__PURE__ */ a.jsx(se, { href: "/solution-articles/", children: t.formatMessage({ id: `${It}cta` }) })
|
|
11575
11575
|
] })
|
|
11576
11576
|
},
|
|
11577
11577
|
reportError: () => {
|
|
11578
11578
|
},
|
|
11579
11579
|
className: "not-found-error",
|
|
11580
11580
|
children: [
|
|
11581
|
-
/* @__PURE__ */ a.jsx("h1", { children: t.formatMessage({ id: `${
|
|
11582
|
-
/* @__PURE__ */ a.jsx("p", { children: t.formatMessage({ id: `${
|
|
11581
|
+
/* @__PURE__ */ a.jsx("h1", { children: t.formatMessage({ id: `${It}title` }) }),
|
|
11582
|
+
/* @__PURE__ */ a.jsx("p", { children: t.formatMessage({ id: `${It}text` }) })
|
|
11583
11583
|
]
|
|
11584
11584
|
}
|
|
11585
11585
|
);
|
|
@@ -11593,8 +11593,8 @@ export {
|
|
|
11593
11593
|
ql as BannerSection,
|
|
11594
11594
|
nu as Breadcrumbs,
|
|
11595
11595
|
se as Button,
|
|
11596
|
-
|
|
11597
|
-
|
|
11596
|
+
kt as ButtonWrapper,
|
|
11597
|
+
St as COURSE_CONTENT_TYPES,
|
|
11598
11598
|
Ti as CacheProvider,
|
|
11599
11599
|
Ua as Card,
|
|
11600
11600
|
rc as CardBlock,
|
|
@@ -11617,7 +11617,7 @@ export {
|
|
|
11617
11617
|
Sc as DiscussionLikes,
|
|
11618
11618
|
cn as DiscussionPost,
|
|
11619
11619
|
Nc as DiscussionThread,
|
|
11620
|
-
|
|
11620
|
+
Oe as Divider,
|
|
11621
11621
|
Il as DownloadSection,
|
|
11622
11622
|
ft as EMAILS,
|
|
11623
11623
|
Ll as EditSection,
|
|
@@ -11634,7 +11634,7 @@ export {
|
|
|
11634
11634
|
Gn as HiddenFromScreenReaders,
|
|
11635
11635
|
Rl as HideShowTextBox,
|
|
11636
11636
|
Wl as HighlightSection,
|
|
11637
|
-
|
|
11637
|
+
Fe as HighlightedTextBox,
|
|
11638
11638
|
Fl as IconBulletedList,
|
|
11639
11639
|
Nl as ImageContainer,
|
|
11640
11640
|
$i as IntlProvider,
|
|
@@ -11653,7 +11653,7 @@ export {
|
|
|
11653
11653
|
za as Logo,
|
|
11654
11654
|
Bl as LogoSection,
|
|
11655
11655
|
mu as MarkCompleteButton,
|
|
11656
|
-
|
|
11656
|
+
xt as MarkdownText,
|
|
11657
11657
|
zl as MarketingBlock,
|
|
11658
11658
|
tr as Member,
|
|
11659
11659
|
uu as MembersList,
|
|
@@ -11675,7 +11675,7 @@ export {
|
|
|
11675
11675
|
Vl as Rating,
|
|
11676
11676
|
cl as RepliesFeed,
|
|
11677
11677
|
$c as ResponsesHeading,
|
|
11678
|
-
|
|
11678
|
+
Tt as ResponsiveImage,
|
|
11679
11679
|
Ml as ReturnToNavButton,
|
|
11680
11680
|
Ki as SearchForm,
|
|
11681
11681
|
su as ShareLinks,
|
|
@@ -11690,7 +11690,7 @@ export {
|
|
|
11690
11690
|
Yl as Toggle,
|
|
11691
11691
|
_i as Tooltip,
|
|
11692
11692
|
cu as TopLevelPage,
|
|
11693
|
-
|
|
11693
|
+
De as UserContext,
|
|
11694
11694
|
Ni as UserProvider,
|
|
11695
11695
|
be as VisuallyHidden,
|
|
11696
11696
|
Xo as addAriaProps,
|
|
@@ -11712,7 +11712,7 @@ export {
|
|
|
11712
11712
|
Zs as toSentenceCase,
|
|
11713
11713
|
Ls as useCurrentPath,
|
|
11714
11714
|
_t as useEffectAfterMount,
|
|
11715
|
-
|
|
11715
|
+
jt as useElementWidth,
|
|
11716
11716
|
qs as useScrollListener,
|
|
11717
11717
|
Us as useScrollToHash,
|
|
11718
11718
|
er as useUser
|