@apolitical/component-library 3.5.2 → 3.5.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.js +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 {
|
|
@@ -1418,7 +1418,7 @@ Thank you for helping to protect the Apolitical community from abusive content.`
|
|
|
1418
1418
|
}
|
|
1419
1419
|
}
|
|
1420
1420
|
return r;
|
|
1421
|
-
},
|
|
1421
|
+
}, Bt = (t, e) => Y.Children.map(t, (n) => Object.is(n, null) ? n : Y.cloneElement(n, {
|
|
1422
1422
|
...e
|
|
1423
1423
|
})), ti = (t = 0) => {
|
|
1424
1424
|
setTimeout(() => {
|
|
@@ -1449,7 +1449,7 @@ Thank you for helping to protect the Apolitical community from abusive content.`
|
|
|
1449
1449
|
children: u = !1,
|
|
1450
1450
|
...d
|
|
1451
1451
|
}) => {
|
|
1452
|
-
const p =
|
|
1452
|
+
const p = jt(typeof e == "object");
|
|
1453
1453
|
if (typeof e == "object" && typeof p == "number") {
|
|
1454
1454
|
const y = Object.assign({}, e), v = pa(Object.keys(y));
|
|
1455
1455
|
e = ha(p, v, y);
|
|
@@ -1473,7 +1473,7 @@ Thank you for helping to protect the Apolitical community from abusive content.`
|
|
|
1473
1473
|
_,
|
|
1474
1474
|
u || (l ? /* @__PURE__ */ a.jsx(be, { showOnFocus: !1, children: l }) : null)
|
|
1475
1475
|
);
|
|
1476
|
-
},
|
|
1476
|
+
}, kt = ({ buttons: t, className: e = "", ...n }) => {
|
|
1477
1477
|
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));
|
|
1478
1478
|
return Y.createElement(r, {
|
|
1479
1479
|
className: S("button-wrapper", e),
|
|
@@ -1481,7 +1481,7 @@ Thank you for helping to protect the Apolitical community from abusive content.`
|
|
|
1481
1481
|
children: s
|
|
1482
1482
|
});
|
|
1483
1483
|
};
|
|
1484
|
-
const
|
|
1484
|
+
const Oe = ({ className: t = "", maxWidth: e = !1 }) => {
|
|
1485
1485
|
const n = e ? { "--max-width": `${e / 16}rem` } : {};
|
|
1486
1486
|
return /* @__PURE__ */ a.jsx("hr", { className: S(t, { "has-max-width": e }), style: n });
|
|
1487
1487
|
}, kr = {
|
|
@@ -1603,7 +1603,7 @@ const Ae = ({ className: t = "", maxWidth: e = !1 }) => {
|
|
|
1603
1603
|
query: r,
|
|
1604
1604
|
width: i
|
|
1605
1605
|
})} ${i}w`).join(", ");
|
|
1606
|
-
const
|
|
1606
|
+
const Tt = ({ image: t, className: e, testId: n }) => {
|
|
1607
1607
|
const {
|
|
1608
1608
|
description: r,
|
|
1609
1609
|
height: s,
|
|
@@ -1648,7 +1648,7 @@ const Nl = ({ image: t, className: e, testId: n }) => /* @__PURE__ */ a.jsx(
|
|
|
1648
1648
|
{
|
|
1649
1649
|
className: `image-container ${e}`,
|
|
1650
1650
|
"data-testid": n || "image-container",
|
|
1651
|
-
children: t && /* @__PURE__ */ a.jsx(
|
|
1651
|
+
children: t && /* @__PURE__ */ a.jsx(Tt, { image: { ...t }, className: "image" })
|
|
1652
1652
|
}
|
|
1653
1653
|
), at = ({
|
|
1654
1654
|
href: t,
|
|
@@ -1830,7 +1830,7 @@ const Cr = {
|
|
|
1830
1830
|
}
|
|
1831
1831
|
);
|
|
1832
1832
|
};
|
|
1833
|
-
const
|
|
1833
|
+
const Fe = ({
|
|
1834
1834
|
variant: t = "primary",
|
|
1835
1835
|
icon: e,
|
|
1836
1836
|
styling: n = {},
|
|
@@ -1860,7 +1860,7 @@ const He = ({
|
|
|
1860
1860
|
className: r = ""
|
|
1861
1861
|
}) => {
|
|
1862
1862
|
let s = n && !!Object.keys(n).length;
|
|
1863
|
-
const i = typeof n == "object" && "breakpoints" in n, o =
|
|
1863
|
+
const i = typeof n == "object" && "breakpoints" in n, o = jt(i);
|
|
1864
1864
|
if (i && typeof n == "object" && typeof o == "number") {
|
|
1865
1865
|
const d = Object.assign({}, n.breakpoints), m = pa(Object.keys(d));
|
|
1866
1866
|
s = ha(o, m, d);
|
|
@@ -1872,12 +1872,12 @@ const He = ({
|
|
|
1872
1872
|
...u
|
|
1873
1873
|
} = n;
|
|
1874
1874
|
return /* @__PURE__ */ a.jsx(
|
|
1875
|
-
|
|
1875
|
+
Fe,
|
|
1876
1876
|
{
|
|
1877
1877
|
variant: "subtle",
|
|
1878
1878
|
className: S("empty-state-box", t, r),
|
|
1879
1879
|
children: /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
|
|
1880
|
-
e && typeof e == "string" ? /* @__PURE__ */ a.jsx(
|
|
1880
|
+
e && typeof e == "string" ? /* @__PURE__ */ a.jsx(Le, { options: { forceBlock: !0 }, children: e }) : e,
|
|
1881
1881
|
s && typeof n == "object" && (l || /* @__PURE__ */ a.jsx(
|
|
1882
1882
|
se,
|
|
1883
1883
|
{
|
|
@@ -1901,7 +1901,7 @@ const ci = ({
|
|
|
1901
1901
|
}) => /* @__PURE__ */ a.jsxs("div", { className: S("helper-text-box text-small", t, e), children: [
|
|
1902
1902
|
n && /* @__PURE__ */ a.jsx("p", { className: "title", children: n }),
|
|
1903
1903
|
typeof r == "string" ? /* @__PURE__ */ a.jsx(
|
|
1904
|
-
|
|
1904
|
+
Le,
|
|
1905
1905
|
{
|
|
1906
1906
|
options: {
|
|
1907
1907
|
wrapper: Y.Fragment,
|
|
@@ -1945,13 +1945,13 @@ const Rl = ({
|
|
|
1945
1945
|
return null;
|
|
1946
1946
|
const m = ["opening", "open"].includes(l);
|
|
1947
1947
|
return /* @__PURE__ */ a.jsxs(
|
|
1948
|
-
|
|
1948
|
+
Fe,
|
|
1949
1949
|
{
|
|
1950
1950
|
variant: "subtle",
|
|
1951
1951
|
className: S("hide-show-text-box", t),
|
|
1952
1952
|
children: [
|
|
1953
1953
|
/* @__PURE__ */ a.jsxs("div", { ref: o, className: S("content", l), children: [
|
|
1954
|
-
/* @__PURE__ */ a.jsx(
|
|
1954
|
+
/* @__PURE__ */ a.jsx(Le, { options: { forceBlock: !0 }, children: l === "closed" ? c : r }),
|
|
1955
1955
|
l !== "closed" && s
|
|
1956
1956
|
] }),
|
|
1957
1957
|
/* @__PURE__ */ a.jsx("p", { className: "cta", children: /* @__PURE__ */ a.jsx(
|
|
@@ -1991,12 +1991,12 @@ const Fl = ({
|
|
|
1991
1991
|
"--icon": `url(${Be}icons/${f.icon}.svg)`
|
|
1992
1992
|
};
|
|
1993
1993
|
return t === "dl" ? /* @__PURE__ */ a.jsxs(Y.Fragment, { children: [
|
|
1994
|
-
/* @__PURE__ */ a.jsx("dt", { style: d, children: /* @__PURE__ */ a.jsx(
|
|
1995
|
-
/* @__PURE__ */ a.jsx("dd", { children: typeof f.text == "string" ? /* @__PURE__ */ a.jsx(
|
|
1996
|
-
] }, `dl-${l}`) : /* @__PURE__ */ a.jsx("li", { style: d, children: typeof f.text == "string" ? /* @__PURE__ */ a.jsx(
|
|
1994
|
+
/* @__PURE__ */ a.jsx("dt", { style: d, children: /* @__PURE__ */ a.jsx(Le, { options: u, children: f.dt || "" }) }, `dt-${l}`),
|
|
1995
|
+
/* @__PURE__ */ a.jsx("dd", { children: typeof f.text == "string" ? /* @__PURE__ */ a.jsx(Le, { options: u, children: f.text }) : f.text }, `dd-${l}`)
|
|
1996
|
+
] }, `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);
|
|
1997
1997
|
})
|
|
1998
1998
|
});
|
|
1999
|
-
}, _e = () => Y.Fragment, li = ({ children: t }) => /* @__PURE__ */ a.jsx(
|
|
1999
|
+
}, _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 }) => {
|
|
2000
2000
|
const e = H();
|
|
2001
2001
|
if (!t)
|
|
2002
2002
|
return null;
|
|
@@ -2036,12 +2036,12 @@ const Fl = ({
|
|
|
2036
2036
|
if (e.class)
|
|
2037
2037
|
switch (e.class) {
|
|
2038
2038
|
case "casestudy":
|
|
2039
|
-
return /* @__PURE__ */ a.jsx(
|
|
2039
|
+
return /* @__PURE__ */ a.jsx(Fe, { variant: "secondary", children: t });
|
|
2040
2040
|
case "general-textbox":
|
|
2041
2041
|
case "highlight-box":
|
|
2042
|
-
return /* @__PURE__ */ a.jsx(
|
|
2042
|
+
return /* @__PURE__ */ a.jsx(Fe, { variant: "primary", children: t });
|
|
2043
2043
|
case "pink-textbox":
|
|
2044
|
-
return /* @__PURE__ */ a.jsx(
|
|
2044
|
+
return /* @__PURE__ */ a.jsx(Fe, { variant: "tertiary", children: t });
|
|
2045
2045
|
case "content":
|
|
2046
2046
|
return typeof t == "object" && Object.keys(t || {}).length === 1 ? /* @__PURE__ */ a.jsx("p", { children: t }) : t;
|
|
2047
2047
|
default:
|
|
@@ -2095,7 +2095,7 @@ const vi = {
|
|
|
2095
2095
|
// Override psuedo-code
|
|
2096
2096
|
// We give the content team psuedo-code short cuts to use in Contentful
|
|
2097
2097
|
CollapsibleSection: Jn,
|
|
2098
|
-
TextBox:
|
|
2098
|
+
TextBox: Fe,
|
|
2099
2099
|
CaseStudy: li,
|
|
2100
2100
|
// Override embedded HTML
|
|
2101
2101
|
// Our content team previously used real HTML, which we need to tear out and replace with React components
|
|
@@ -2122,7 +2122,7 @@ const vi = {
|
|
|
2122
2122
|
iframe: _e,
|
|
2123
2123
|
button: _e
|
|
2124
2124
|
}
|
|
2125
|
-
},
|
|
2125
|
+
}, xt = ({
|
|
2126
2126
|
className: t = "",
|
|
2127
2127
|
options: e = {},
|
|
2128
2128
|
children: n,
|
|
@@ -2142,7 +2142,7 @@ const vi = {
|
|
|
2142
2142
|
className: S("markdown-text", t, {
|
|
2143
2143
|
"highlight-titles": i
|
|
2144
2144
|
}),
|
|
2145
|
-
children: /* @__PURE__ */ a.jsx(
|
|
2145
|
+
children: /* @__PURE__ */ a.jsx(Le, { options: { ...o, ...e }, children: n })
|
|
2146
2146
|
}
|
|
2147
2147
|
);
|
|
2148
2148
|
};
|
|
@@ -2204,10 +2204,10 @@ const Wt = ({
|
|
|
2204
2204
|
e
|
|
2205
2205
|
);
|
|
2206
2206
|
const yi = ({ author: t, authorCite: e, content: n }) => /* @__PURE__ */ a.jsxs("blockquote", { className: "testimonial-block", children: [
|
|
2207
|
-
/* @__PURE__ */ a.jsx(
|
|
2207
|
+
/* @__PURE__ */ a.jsx(Le, { className: "testimonial", children: n }),
|
|
2208
2208
|
t && /* @__PURE__ */ a.jsx("p", { className: "author text-small", children: t }),
|
|
2209
2209
|
e && /* @__PURE__ */ a.jsx("p", { className: "author-cite text-small", children: /* @__PURE__ */ a.jsx("cite", { children: e }) })
|
|
2210
|
-
] }), Ol =
|
|
2210
|
+
] }), Ol = Ae(yi);
|
|
2211
2211
|
const Al = ({
|
|
2212
2212
|
items: t = [],
|
|
2213
2213
|
selector: e = "",
|
|
@@ -2229,7 +2229,7 @@ const Al = ({
|
|
|
2229
2229
|
}));
|
|
2230
2230
|
i(f);
|
|
2231
2231
|
}, []), s && s.length > 0 && /* @__PURE__ */ a.jsxs(
|
|
2232
|
-
|
|
2232
|
+
Fe,
|
|
2233
2233
|
{
|
|
2234
2234
|
variant: "subtle",
|
|
2235
2235
|
className: S("table-of-contents", n),
|
|
@@ -2315,7 +2315,7 @@ const Dl = ({ className: t = "", image: e, ...n }) => e ? (typeof e == "string"
|
|
|
2315
2315
|
{ height: 200, width: 768 },
|
|
2316
2316
|
{ height: 200, width: 1368 }
|
|
2317
2317
|
], e.query = "fit=thumb&f=center", /* @__PURE__ */ a.jsx(
|
|
2318
|
-
|
|
2318
|
+
Tt,
|
|
2319
2319
|
{
|
|
2320
2320
|
...n,
|
|
2321
2321
|
className: S("banner", t),
|
|
@@ -2359,7 +2359,7 @@ const Il = ({ text: t, buttons: e, className: n = "" }) => {
|
|
|
2359
2359
|
{ className: "text" },
|
|
2360
2360
|
typeof t == "string" ? t : t.text
|
|
2361
2361
|
),
|
|
2362
|
-
/* @__PURE__ */ a.jsx(
|
|
2362
|
+
/* @__PURE__ */ a.jsx(kt, { buttons: r })
|
|
2363
2363
|
] }) });
|
|
2364
2364
|
};
|
|
2365
2365
|
function ba({ href: t, setShowModal: e }) {
|
|
@@ -2412,7 +2412,7 @@ const xi = ({ icon: t, description: e, ctaMessage: n, href: r, showEditButton: s
|
|
|
2412
2412
|
u && /* @__PURE__ */ a.jsx(se, { href: r, variant: "tertiary", size: "small", icon: "pencil", onClick: () => ba({ href: r, setShowModal: l }), children: "Edit" })
|
|
2413
2413
|
] }),
|
|
2414
2414
|
t || /* @__PURE__ */ a.jsx(xi, { ...o, href: r, setShowModal: l, showEditButton: u }),
|
|
2415
|
-
c && /* @__PURE__ */ a.jsx(
|
|
2415
|
+
c && /* @__PURE__ */ a.jsx(Oe, {})
|
|
2416
2416
|
] });
|
|
2417
2417
|
};
|
|
2418
2418
|
const Bl = ({
|
|
@@ -2539,7 +2539,7 @@ const wi = [
|
|
|
2539
2539
|
f.map((d) => {
|
|
2540
2540
|
if (u[d] && typeof u[d] == "object") {
|
|
2541
2541
|
const { text: m, element: p = "" } = u[d];
|
|
2542
|
-
return d === "text" ? /* @__PURE__ */ a.jsx(
|
|
2542
|
+
return d === "text" ? /* @__PURE__ */ a.jsx(xt, { overrideType: "text-only", className: "text", children: m }, d) : Y.createElement(p, { key: d, className: d }, m);
|
|
2543
2543
|
}
|
|
2544
2544
|
return null;
|
|
2545
2545
|
}),
|
|
@@ -2555,11 +2555,11 @@ const wi = [
|
|
|
2555
2555
|
}
|
|
2556
2556
|
)
|
|
2557
2557
|
] }),
|
|
2558
|
-
n && /* @__PURE__ */ a.jsx(
|
|
2558
|
+
n && /* @__PURE__ */ a.jsx(Tt, { image: { ...n, aspect: "banner" } })
|
|
2559
2559
|
] })
|
|
2560
2560
|
}
|
|
2561
2561
|
);
|
|
2562
|
-
}, ql =
|
|
2562
|
+
}, ql = Ae(ji);
|
|
2563
2563
|
const Ul = ({
|
|
2564
2564
|
image: t,
|
|
2565
2565
|
variant: e = "default",
|
|
@@ -2584,7 +2584,7 @@ const ki = ({
|
|
|
2584
2584
|
content: n,
|
|
2585
2585
|
image: r
|
|
2586
2586
|
}) => {
|
|
2587
|
-
const s =
|
|
2587
|
+
const s = typeof n == "string" ? /* @__PURE__ */ a.jsx(xt, { children: n }) : n;
|
|
2588
2588
|
return /* @__PURE__ */ a.jsxs(Ve, { className: S("highlight-section", e), children: [
|
|
2589
2589
|
r && /* @__PURE__ */ a.jsx(
|
|
2590
2590
|
"div",
|
|
@@ -2592,7 +2592,7 @@ const ki = ({
|
|
|
2592
2592
|
className: S("highlight-container highlight-image", {
|
|
2593
2593
|
[`highlight-image-${t}`]: t === "right"
|
|
2594
2594
|
}),
|
|
2595
|
-
children: /* @__PURE__ */ a.jsx(
|
|
2595
|
+
children: /* @__PURE__ */ a.jsx(Tt, { image: r })
|
|
2596
2596
|
}
|
|
2597
2597
|
),
|
|
2598
2598
|
/* @__PURE__ */ a.jsx(
|
|
@@ -2607,13 +2607,13 @@ const ki = ({
|
|
|
2607
2607
|
className: S("highlight-content", {
|
|
2608
2608
|
"highlight-content-right": t === "left"
|
|
2609
2609
|
}),
|
|
2610
|
-
children: s()
|
|
2610
|
+
children: r ? s : /* @__PURE__ */ a.jsx("div", { className: "content-default", children: s })
|
|
2611
2611
|
}
|
|
2612
2612
|
)
|
|
2613
2613
|
}
|
|
2614
2614
|
)
|
|
2615
2615
|
] });
|
|
2616
|
-
}, Wl =
|
|
2616
|
+
}, Wl = Ae(ki);
|
|
2617
2617
|
const zl = ({
|
|
2618
2618
|
variant: t = "primary",
|
|
2619
2619
|
button: e = null,
|
|
@@ -2652,10 +2652,10 @@ const zl = ({
|
|
|
2652
2652
|
t && /* @__PURE__ */ a.jsx(Cs, { initialIsOpen: !1 })
|
|
2653
2653
|
] });
|
|
2654
2654
|
};
|
|
2655
|
-
var Ei = nn({ client:
|
|
2655
|
+
var Ei = nn({ client: Lt });
|
|
2656
2656
|
function Si(t) {
|
|
2657
|
-
var e = t.children, n = t.client, r = t.apiKey, s = t.options, i =
|
|
2658
|
-
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 && (
|
|
2657
|
+
var e = t.children, n = t.client, r = t.apiKey, s = t.options, i = wt(function() {
|
|
2658
|
+
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);
|
|
2659
2659
|
}, [n, r]);
|
|
2660
2660
|
return Y.createElement(Ei.Provider, { value: { client: i } }, e);
|
|
2661
2661
|
}
|
|
@@ -2689,11 +2689,11 @@ const Ci = ({ children: t, user: e }) => e.isLoading ? null : process.env.REACT_
|
|
|
2689
2689
|
es: "Español",
|
|
2690
2690
|
fr: "Français",
|
|
2691
2691
|
pt: "Português"
|
|
2692
|
-
},
|
|
2692
|
+
}, De = nn({ isLoading: !0 });
|
|
2693
2693
|
function er() {
|
|
2694
|
-
return Ee(
|
|
2694
|
+
return Ee(De);
|
|
2695
2695
|
}
|
|
2696
|
-
const Ni = ({ children: t, user: e }) => /* @__PURE__ */ a.jsx(
|
|
2696
|
+
const Ni = ({ children: t, user: e }) => /* @__PURE__ */ a.jsx(De.Provider, { value: e, children: t }), Zl = ({ bootstrap: t, children: e, intl: n, showDevTools: r }) => {
|
|
2697
2697
|
const [s, i] = X({ isLoading: !0 }), o = (n == null ? void 0 : n.locale) || localStorage.getItem("language") || "en", [c, f] = X(o), l = (u) => {
|
|
2698
2698
|
localStorage.setItem("language", u), f(u);
|
|
2699
2699
|
};
|
|
@@ -2736,7 +2736,7 @@ const Pi = ({
|
|
|
2736
2736
|
})
|
|
2737
2737
|
}
|
|
2738
2738
|
);
|
|
2739
|
-
}, _a =
|
|
2739
|
+
}, _a = Ae(Pi);
|
|
2740
2740
|
const vn = "loadingBlock_", Mi = ({ progress: t = 0, steps: e = !1, className: n = "" }) => {
|
|
2741
2741
|
const r = H();
|
|
2742
2742
|
e || (e = {
|
|
@@ -2752,7 +2752,7 @@ const vn = "loadingBlock_", Mi = ({ progress: t = 0, steps: e = !1, className: n
|
|
|
2752
2752
|
"--icon": `url(${Be}icons/${e[s].icon}.svg)`
|
|
2753
2753
|
} : {};
|
|
2754
2754
|
return /* @__PURE__ */ a.jsxs(
|
|
2755
|
-
|
|
2755
|
+
Fe,
|
|
2756
2756
|
{
|
|
2757
2757
|
className: S("loading-block", n, {
|
|
2758
2758
|
"has-icon": s && e[s].icon
|
|
@@ -2765,7 +2765,7 @@ const vn = "loadingBlock_", Mi = ({ progress: t = 0, steps: e = !1, className: n
|
|
|
2765
2765
|
]
|
|
2766
2766
|
}
|
|
2767
2767
|
);
|
|
2768
|
-
}, Hl =
|
|
2768
|
+
}, Hl = Ae(Mi);
|
|
2769
2769
|
const Se = ({ element: t = "div", className: e = "", ...n }) => /* @__PURE__ */ a.jsx(
|
|
2770
2770
|
Gn,
|
|
2771
2771
|
{
|
|
@@ -2826,14 +2826,14 @@ const zn = {
|
|
|
2826
2826
|
}, 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) => {
|
|
2827
2827
|
const e = t && t.toUpperCase().trim().split(" ");
|
|
2828
2828
|
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) : "";
|
|
2829
|
-
},
|
|
2830
|
-
const e = Math.ceil(26 /
|
|
2829
|
+
}, Ct = ["#5AB6A3", "#A2D7AF", "#806056", "#3962B3"], Ri = (t) => {
|
|
2830
|
+
const e = Math.ceil(26 / Ct.length), n = ja(t).toLowerCase();
|
|
2831
2831
|
if (n === "")
|
|
2832
|
-
return
|
|
2832
|
+
return Ct[0];
|
|
2833
2833
|
const r = n.charCodeAt(0) - 96;
|
|
2834
|
-
for (let s = 0; s <
|
|
2834
|
+
for (let s = 0; s < Ct.length; s++)
|
|
2835
2835
|
if (r <= e * (s + 1))
|
|
2836
|
-
return
|
|
2836
|
+
return Ct[s];
|
|
2837
2837
|
};
|
|
2838
2838
|
const Nr = 256, Ye = ({
|
|
2839
2839
|
className: t = "",
|
|
@@ -2997,14 +2997,14 @@ const Pr = {
|
|
|
2997
2997
|
] })
|
|
2998
2998
|
});
|
|
2999
2999
|
};
|
|
3000
|
-
const
|
|
3000
|
+
const $t = "emailHelperTextBox_", Oi = ({
|
|
3001
3001
|
type: t,
|
|
3002
3002
|
email: e,
|
|
3003
3003
|
redirectPath: n,
|
|
3004
3004
|
resendVerificationCode: r
|
|
3005
3005
|
}) => {
|
|
3006
3006
|
const s = H(), [i, o] = X({
|
|
3007
|
-
path: `${
|
|
3007
|
+
path: `${$t}default`,
|
|
3008
3008
|
type: "default",
|
|
3009
3009
|
link: {},
|
|
3010
3010
|
mail: {},
|
|
@@ -3014,7 +3014,7 @@ const Ct = "emailHelperTextBox_", Oi = ({
|
|
|
3014
3014
|
p.preventDefault(), p.stopPropagation();
|
|
3015
3015
|
const h = (_) => {
|
|
3016
3016
|
o({
|
|
3017
|
-
path: `${
|
|
3017
|
+
path: `${$t}error_verificationFailedToSend`,
|
|
3018
3018
|
type: "error",
|
|
3019
3019
|
link: {
|
|
3020
3020
|
"data-gtm-event-context": "VerifyEmailBox",
|
|
@@ -3034,7 +3034,7 @@ const Ct = "emailHelperTextBox_", Oi = ({
|
|
|
3034
3034
|
});
|
|
3035
3035
|
};
|
|
3036
3036
|
if (typeof r != "function") {
|
|
3037
|
-
h(s.formatMessage({ id: `${
|
|
3037
|
+
h(s.formatMessage({ id: `${$t}error_noFunction` }));
|
|
3038
3038
|
return;
|
|
3039
3039
|
}
|
|
3040
3040
|
f(!0), r(e).then(() => {
|
|
@@ -3050,7 +3050,7 @@ const Ct = "emailHelperTextBox_", Oi = ({
|
|
|
3050
3050
|
);
|
|
3051
3051
|
ae(
|
|
3052
3052
|
() => {
|
|
3053
|
-
let p =
|
|
3053
|
+
let p = $t, h = "default", _ = {}, y = {};
|
|
3054
3054
|
switch (t) {
|
|
3055
3055
|
case "gov":
|
|
3056
3056
|
p += "autoApproved", h = "success";
|
|
@@ -3295,7 +3295,7 @@ const Ea = ({
|
|
|
3295
3295
|
y
|
|
3296
3296
|
);
|
|
3297
3297
|
};
|
|
3298
|
-
const Ii =
|
|
3298
|
+
const Ii = Ae(function({
|
|
3299
3299
|
direction: e = "down"
|
|
3300
3300
|
}) {
|
|
3301
3301
|
return /* @__PURE__ */ a.jsx(
|
|
@@ -3941,7 +3941,7 @@ const rn = ({
|
|
|
3941
3941
|
);
|
|
3942
3942
|
}),
|
|
3943
3943
|
_ ? null : ($ || j) && h ? h : /* @__PURE__ */ a.jsx(
|
|
3944
|
-
|
|
3944
|
+
kt,
|
|
3945
3945
|
{
|
|
3946
3946
|
className: S("cta", {
|
|
3947
3947
|
center: $ || j,
|
|
@@ -3956,7 +3956,7 @@ const rn = ({
|
|
|
3956
3956
|
w && j && /* @__PURE__ */ a.jsx(Wt, { className: "success", children: typeof w == "string" ? w : I.formatMessage({ id: "form_success" }) })
|
|
3957
3957
|
] });
|
|
3958
3958
|
};
|
|
3959
|
-
const
|
|
3959
|
+
const Nt = "passwordRules_", Sa = "isMoreThanEightCharacters", Ca = "includesNumberAndSymbol", $a = "includesLowerAndUppercase", zi = {
|
|
3960
3960
|
[Sa]: "8Characters",
|
|
3961
3961
|
[Ca]: "numberSymbol",
|
|
3962
3962
|
[$a]: "lowercaseUppercase"
|
|
@@ -3970,7 +3970,7 @@ const $t = "passwordRules_", Sa = "isMoreThanEightCharacters", Ca = "includesNum
|
|
|
3970
3970
|
}) => {
|
|
3971
3971
|
const n = H();
|
|
3972
3972
|
return /* @__PURE__ */ a.jsxs("aside", { className: S("password-rules", e), children: [
|
|
3973
|
-
/* @__PURE__ */ a.jsx("small", { children: n.formatMessage({ id: `${
|
|
3973
|
+
/* @__PURE__ */ a.jsx("small", { children: n.formatMessage({ id: `${Nt}intro` }) }),
|
|
3974
3974
|
/* @__PURE__ */ a.jsx("ul", { children: [Sa, Ca, $a].map(
|
|
3975
3975
|
(r) => /* @__PURE__ */ a.jsxs(
|
|
3976
3976
|
"li",
|
|
@@ -3978,13 +3978,13 @@ const $t = "passwordRules_", Sa = "isMoreThanEightCharacters", Ca = "includesNum
|
|
|
3978
3978
|
className: S({ matches: t[r] }),
|
|
3979
3979
|
children: [
|
|
3980
3980
|
/* @__PURE__ */ a.jsxs(be, { children: [
|
|
3981
|
-
n.formatMessage({ id: `${
|
|
3981
|
+
n.formatMessage({ id: `${Nt}rule_label` }),
|
|
3982
3982
|
" "
|
|
3983
3983
|
] }),
|
|
3984
|
-
/* @__PURE__ */ a.jsx("span", { children: n.formatMessage({ id: `${
|
|
3984
|
+
/* @__PURE__ */ a.jsx("span", { children: n.formatMessage({ id: `${Nt}rule_${zi[r]}` }) }),
|
|
3985
3985
|
!t[r] && /* @__PURE__ */ a.jsxs(be, { element: "strong", children: [
|
|
3986
3986
|
" ",
|
|
3987
|
-
n.formatMessage({ id: `${
|
|
3987
|
+
n.formatMessage({ id: `${Nt}notMet` })
|
|
3988
3988
|
] })
|
|
3989
3989
|
]
|
|
3990
3990
|
},
|
|
@@ -3992,7 +3992,7 @@ const $t = "passwordRules_", Sa = "isMoreThanEightCharacters", Ca = "includesNum
|
|
|
3992
3992
|
)
|
|
3993
3993
|
) })
|
|
3994
3994
|
] });
|
|
3995
|
-
}, Hi =
|
|
3995
|
+
}, Hi = Ae(Zi);
|
|
3996
3996
|
const Vl = ({
|
|
3997
3997
|
text: t = {},
|
|
3998
3998
|
topRating: e = 5,
|
|
@@ -4278,7 +4278,7 @@ const Yi = ({
|
|
|
4278
4278
|
" ",
|
|
4279
4279
|
y({ id: "inviteForm_error" })
|
|
4280
4280
|
] }) }),
|
|
4281
|
-
/* @__PURE__ */ a.jsx(
|
|
4281
|
+
/* @__PURE__ */ a.jsx(Oe, {}),
|
|
4282
4282
|
/* @__PURE__ */ a.jsx("div", { className: "footer", children: h === "SUCCESS" ? /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
|
|
4283
4283
|
/* @__PURE__ */ a.jsx(se, { variant: "secondary", onClick: b, children: y({ id: "inviteForm_ctaSendMoreInvites" }) }),
|
|
4284
4284
|
/* @__PURE__ */ a.jsx(se, { onClick: T, children: y({ id: "inviteForm_ctaDone" }) })
|
|
@@ -4323,7 +4323,7 @@ const Yi = ({
|
|
|
4323
4323
|
}
|
|
4324
4324
|
)
|
|
4325
4325
|
] }),
|
|
4326
|
-
/* @__PURE__ */ a.jsx(
|
|
4326
|
+
/* @__PURE__ */ a.jsx(Oe, {}),
|
|
4327
4327
|
/* @__PURE__ */ a.jsx("fieldset", { className: "footer", children: /* @__PURE__ */ a.jsx(se, { className: "sendEmailsButton", disabled: m, children: n }) })
|
|
4328
4328
|
]
|
|
4329
4329
|
}
|
|
@@ -4791,7 +4791,7 @@ const eo = {
|
|
|
4791
4791
|
maxAge: 3600
|
|
4792
4792
|
});
|
|
4793
4793
|
}, [w]);
|
|
4794
|
-
const F =
|
|
4794
|
+
const F = wt(() => Ji({
|
|
4795
4795
|
placeholders: n,
|
|
4796
4796
|
labels: e,
|
|
4797
4797
|
shouldShow: h,
|
|
@@ -4876,7 +4876,7 @@ const eo = {
|
|
|
4876
4876
|
}
|
|
4877
4877
|
);
|
|
4878
4878
|
};
|
|
4879
|
-
var Zn = { exports: {} },
|
|
4879
|
+
var Zn = { exports: {} }, Pt = { exports: {} }, ue = {};
|
|
4880
4880
|
/** @license React v16.13.1
|
|
4881
4881
|
* react-is.production.min.js
|
|
4882
4882
|
*
|
|
@@ -5046,7 +5046,7 @@ function no() {
|
|
|
5046
5046
|
}
|
|
5047
5047
|
var Or;
|
|
5048
5048
|
function Na() {
|
|
5049
|
-
return Or || (Or = 1, process.env.NODE_ENV === "production" ?
|
|
5049
|
+
return Or || (Or = 1, process.env.NODE_ENV === "production" ? Pt.exports = to() : Pt.exports = no()), Pt.exports;
|
|
5050
5050
|
}
|
|
5051
5051
|
/*
|
|
5052
5052
|
object-assign
|
|
@@ -5590,12 +5590,12 @@ var Ma = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])",
|
|
|
5590
5590
|
return s;
|
|
5591
5591
|
}, Aa = function(e) {
|
|
5592
5592
|
return !isNaN(parseInt(e.getAttribute("tabindex"), 10));
|
|
5593
|
-
},
|
|
5593
|
+
}, Ie = function(e) {
|
|
5594
5594
|
if (!e)
|
|
5595
5595
|
throw new Error("No node provided");
|
|
5596
5596
|
return e.tabIndex < 0 && (/^(AUDIO|VIDEO|DETAILS)$/.test(e.tagName) || uo(e)) && !Aa(e) ? 0 : e.tabIndex;
|
|
5597
5597
|
}, fo = function(e, n) {
|
|
5598
|
-
var r =
|
|
5598
|
+
var r = Ie(e);
|
|
5599
5599
|
return r < 0 && n && !Aa(e) ? 0 : r;
|
|
5600
5600
|
}, mo = function(e, n) {
|
|
5601
5601
|
return e.tabIndex === n.tabIndex ? e.documentOrder - n.documentOrder : e.tabIndex - n.tabIndex;
|
|
@@ -5690,7 +5690,7 @@ var Ma = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])",
|
|
|
5690
5690
|
Ht(n) || po(n) || xo(n, e) || // For a details element with a summary, the summary element gets the focus
|
|
5691
5691
|
ho(n) || wo(n));
|
|
5692
5692
|
}, Hn = function(e, n) {
|
|
5693
|
-
return !(yo(n) ||
|
|
5693
|
+
return !(yo(n) || Ie(n) < 0 || !Vt(e, n));
|
|
5694
5694
|
}, jo = function(e) {
|
|
5695
5695
|
var n = parseInt(e.getAttribute("tabindex"), 10);
|
|
5696
5696
|
return !!(isNaN(n) || n >= 0);
|
|
@@ -5729,7 +5729,7 @@ var Ma = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])",
|
|
|
5729
5729
|
if (n = n || {}, !e)
|
|
5730
5730
|
throw new Error("No node provided");
|
|
5731
5731
|
return Ze.call(e, zt) === !1 ? !1 : Hn(n, e);
|
|
5732
|
-
}, To = /* @__PURE__ */ Ma.concat("iframe").join(","),
|
|
5732
|
+
}, To = /* @__PURE__ */ Ma.concat("iframe").join(","), qt = function(e, n) {
|
|
5733
5733
|
if (n = n || {}, !e)
|
|
5734
5734
|
throw new Error("No node provided");
|
|
5735
5735
|
return Ze.call(e, To) === !1 ? !1 : Vt(n, e);
|
|
@@ -5737,8 +5737,8 @@ var Ma = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])",
|
|
|
5737
5737
|
const Eo = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
5738
5738
|
__proto__: null,
|
|
5739
5739
|
focusable: La,
|
|
5740
|
-
getTabIndex:
|
|
5741
|
-
isFocusable:
|
|
5740
|
+
getTabIndex: Ie,
|
|
5741
|
+
isFocusable: qt,
|
|
5742
5742
|
isTabbable: We,
|
|
5743
5743
|
tabbable: Ia
|
|
5744
5744
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
@@ -5825,7 +5825,7 @@ var Zr = {
|
|
|
5825
5825
|
for (var n = arguments.length, r = new Array(n > 1 ? n - 1 : 0), s = 1; s < n; s++)
|
|
5826
5826
|
r[s - 1] = arguments[s];
|
|
5827
5827
|
return typeof e == "function" ? e.apply(void 0, r) : e;
|
|
5828
|
-
},
|
|
5828
|
+
}, Mt = function(e) {
|
|
5829
5829
|
return e.target.shadowRoot && typeof e.composedPath == "function" ? e.composedPath()[0] : e.target;
|
|
5830
5830
|
}, Fo = [], Oo = function(e, n) {
|
|
5831
5831
|
var r = (n == null ? void 0 : n.document) || document, s = (n == null ? void 0 : n.trapStack) || Fo, i = zr({
|
|
@@ -5904,7 +5904,7 @@ var Zr = {
|
|
|
5904
5904
|
var j = u("initialFocus");
|
|
5905
5905
|
if (j === !1)
|
|
5906
5906
|
return !1;
|
|
5907
|
-
if (j === void 0 || !
|
|
5907
|
+
if (j === void 0 || !qt(j, i.tabbableOptions))
|
|
5908
5908
|
if (l(r.activeElement) >= 0)
|
|
5909
5909
|
j = r.activeElement;
|
|
5910
5910
|
else {
|
|
@@ -5921,7 +5921,7 @@ var Zr = {
|
|
|
5921
5921
|
}), z = N.slice().reverse().find(function(E) {
|
|
5922
5922
|
return We(E);
|
|
5923
5923
|
}), K = !!x.find(function(E) {
|
|
5924
|
-
return
|
|
5924
|
+
return Ie(E) > 0;
|
|
5925
5925
|
});
|
|
5926
5926
|
return {
|
|
5927
5927
|
container: j,
|
|
@@ -5988,7 +5988,7 @@ var Zr = {
|
|
|
5988
5988
|
return x || (x === !1 ? !1 : j);
|
|
5989
5989
|
}, y = function(j) {
|
|
5990
5990
|
var x = j.target, N = j.event, A = j.isBackward, W = A === void 0 ? !1 : A;
|
|
5991
|
-
x = x ||
|
|
5991
|
+
x = x || Mt(N), m();
|
|
5992
5992
|
var Z = null;
|
|
5993
5993
|
if (o.tabbableGroups.length > 0) {
|
|
5994
5994
|
var z = l(x, N), K = z >= 0 ? o.containerGroups[z] : void 0;
|
|
@@ -5999,9 +5999,9 @@ var Zr = {
|
|
|
5999
5999
|
var V = G.firstTabbableNode;
|
|
6000
6000
|
return x === V;
|
|
6001
6001
|
});
|
|
6002
|
-
if (E < 0 && (K.container === x ||
|
|
6002
|
+
if (E < 0 && (K.container === x || qt(x, i.tabbableOptions) && !We(x, i.tabbableOptions) && !K.nextTabbableNode(x, !1)) && (E = z), E >= 0) {
|
|
6003
6003
|
var P = E === 0 ? o.tabbableGroups.length - 1 : E - 1, q = o.tabbableGroups[P];
|
|
6004
|
-
Z =
|
|
6004
|
+
Z = Ie(x) >= 0 ? q.lastTabbableNode : q.lastDomTabbableNode;
|
|
6005
6005
|
} else
|
|
6006
6006
|
vt(N) || (Z = K.nextTabbableNode(x, !1));
|
|
6007
6007
|
} else {
|
|
@@ -6009,9 +6009,9 @@ var Zr = {
|
|
|
6009
6009
|
var V = G.lastTabbableNode;
|
|
6010
6010
|
return x === V;
|
|
6011
6011
|
});
|
|
6012
|
-
if (B < 0 && (K.container === x ||
|
|
6012
|
+
if (B < 0 && (K.container === x || qt(x, i.tabbableOptions) && !We(x, i.tabbableOptions) && !K.nextTabbableNode(x)) && (B = z), B >= 0) {
|
|
6013
6013
|
var U = B === o.tabbableGroups.length - 1 ? 0 : B + 1, te = o.tabbableGroups[U];
|
|
6014
|
-
Z =
|
|
6014
|
+
Z = Ie(x) >= 0 ? te.firstTabbableNode : te.firstDomTabbableNode;
|
|
6015
6015
|
} else
|
|
6016
6016
|
vt(N) || (Z = K.nextTabbableNode(x));
|
|
6017
6017
|
}
|
|
@@ -6019,7 +6019,7 @@ var Zr = {
|
|
|
6019
6019
|
Z = u("fallbackFocus");
|
|
6020
6020
|
return Z;
|
|
6021
6021
|
}, v = function(j) {
|
|
6022
|
-
var x =
|
|
6022
|
+
var x = Mt(j);
|
|
6023
6023
|
if (!(l(x, j) >= 0)) {
|
|
6024
6024
|
if (lt(i.clickOutsideDeactivates, j)) {
|
|
6025
6025
|
c.deactivate({
|
|
@@ -6036,14 +6036,14 @@ var Zr = {
|
|
|
6036
6036
|
lt(i.allowOutsideClick, j) || j.preventDefault();
|
|
6037
6037
|
}
|
|
6038
6038
|
}, b = function(j) {
|
|
6039
|
-
var x =
|
|
6039
|
+
var x = Mt(j), N = l(x, j) >= 0;
|
|
6040
6040
|
if (N || x instanceof Document)
|
|
6041
6041
|
N && (o.mostRecentlyFocusedNode = x);
|
|
6042
6042
|
else {
|
|
6043
6043
|
j.stopImmediatePropagation();
|
|
6044
6044
|
var A, W = !0;
|
|
6045
6045
|
if (o.mostRecentlyFocusedNode)
|
|
6046
|
-
if (
|
|
6046
|
+
if (Ie(o.mostRecentlyFocusedNode) > 0) {
|
|
6047
6047
|
var Z = l(o.mostRecentlyFocusedNode), z = o.containerGroups[Z].tabbableNodes;
|
|
6048
6048
|
if (z.length > 0) {
|
|
6049
6049
|
var K = z.findIndex(function(E) {
|
|
@@ -6054,7 +6054,7 @@ var Zr = {
|
|
|
6054
6054
|
} else
|
|
6055
6055
|
o.containerGroups.some(function(E) {
|
|
6056
6056
|
return E.tabbableNodes.some(function(P) {
|
|
6057
|
-
return
|
|
6057
|
+
return Ie(P) > 0;
|
|
6058
6058
|
});
|
|
6059
6059
|
}) || (W = !1);
|
|
6060
6060
|
else
|
|
@@ -6082,7 +6082,7 @@ var Zr = {
|
|
|
6082
6082
|
}
|
|
6083
6083
|
(i.isKeyForward(j) || i.isKeyBackward(j)) && T(j, i.isKeyBackward(j));
|
|
6084
6084
|
}, w = function(j) {
|
|
6085
|
-
var x =
|
|
6085
|
+
var x = Mt(j);
|
|
6086
6086
|
l(x, j) >= 0 || lt(i.clickOutsideDeactivates, j) || lt(i.allowOutsideClick, j) || (j.preventDefault(), j.stopImmediatePropagation());
|
|
6087
6087
|
}, I = function() {
|
|
6088
6088
|
if (o.active)
|
|
@@ -6270,7 +6270,7 @@ function Ho(t, e) {
|
|
|
6270
6270
|
}
|
|
6271
6271
|
return (e === "string" ? String : Number)(t);
|
|
6272
6272
|
}
|
|
6273
|
-
var
|
|
6273
|
+
var Rt = Y, J = lo, Vo = Do, Yo = Vo.createFocusTrap, Ko = Io, Go = Ko.isFocusable, rr = /* @__PURE__ */ function(t) {
|
|
6274
6274
|
qo(n, t);
|
|
6275
6275
|
var e = Uo(n);
|
|
6276
6276
|
function n(r) {
|
|
@@ -6442,14 +6442,14 @@ var Mt = Y, J = lo, Vo = Do, Yo = Vo.createFocusTrap, Ko = Io, Go = Ko.isFocusab
|
|
|
6442
6442
|
}, {
|
|
6443
6443
|
key: "render",
|
|
6444
6444
|
value: function() {
|
|
6445
|
-
var s = this, i = this.props.children ?
|
|
6445
|
+
var s = this, i = this.props.children ? Rt.Children.only(this.props.children) : void 0;
|
|
6446
6446
|
if (i) {
|
|
6447
|
-
if (i.type && i.type ===
|
|
6447
|
+
if (i.type && i.type === Rt.Fragment)
|
|
6448
6448
|
throw new Error("A focus-trap cannot use a Fragment as its child container. Try replacing it with a <div> element.");
|
|
6449
6449
|
var o = function(l) {
|
|
6450
6450
|
var u = s.props.containerElements;
|
|
6451
6451
|
i && (typeof i.ref == "function" ? i.ref(l) : i.ref && (i.ref.current = l)), s.focusTrapElements = u || [l];
|
|
6452
|
-
}, c =
|
|
6452
|
+
}, c = Rt.cloneElement(i, {
|
|
6453
6453
|
ref: o
|
|
6454
6454
|
});
|
|
6455
6455
|
return c;
|
|
@@ -6457,7 +6457,7 @@ var Mt = Y, J = lo, Vo = Do, Yo = Vo.createFocusTrap, Ko = Io, Go = Ko.isFocusab
|
|
|
6457
6457
|
return null;
|
|
6458
6458
|
}
|
|
6459
6459
|
}]), n;
|
|
6460
|
-
}(
|
|
6460
|
+
}(Rt.Component), ut = typeof Element > "u" ? Function : Element;
|
|
6461
6461
|
rr.propTypes = {
|
|
6462
6462
|
active: J.bool,
|
|
6463
6463
|
paused: J.bool,
|
|
@@ -6573,11 +6573,11 @@ const an = ({
|
|
|
6573
6573
|
}
|
|
6574
6574
|
)
|
|
6575
6575
|
] }),
|
|
6576
|
-
n && /* @__PURE__ */ a.jsx(
|
|
6576
|
+
n && /* @__PURE__ */ a.jsx(Oe, {}),
|
|
6577
6577
|
f,
|
|
6578
6578
|
l && /* @__PURE__ */ a.jsxs("div", { className: "bottom", children: [
|
|
6579
|
-
/* @__PURE__ */ a.jsx(
|
|
6580
|
-
/* @__PURE__ */ a.jsx(
|
|
6579
|
+
/* @__PURE__ */ a.jsx(Oe, {}),
|
|
6580
|
+
/* @__PURE__ */ a.jsx(kt, { buttons: l })
|
|
6581
6581
|
] }),
|
|
6582
6582
|
o && /* @__PURE__ */ a.jsx(Wt, { className: "error", children: o })
|
|
6583
6583
|
] }) })
|
|
@@ -6650,7 +6650,7 @@ const Xl = ({ members: t }) => {
|
|
|
6650
6650
|
isOpen: e !== !1,
|
|
6651
6651
|
children: e === !1 ? "" : /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
|
|
6652
6652
|
r(e),
|
|
6653
|
-
/* @__PURE__ */ a.jsx(
|
|
6653
|
+
/* @__PURE__ */ a.jsx(xt, { children: e.text })
|
|
6654
6654
|
] }),
|
|
6655
6655
|
buttons: [
|
|
6656
6656
|
{
|
|
@@ -6866,7 +6866,7 @@ const nc = {
|
|
|
6866
6866
|
className: i = ""
|
|
6867
6867
|
}) => {
|
|
6868
6868
|
var I, R, Q;
|
|
6869
|
-
const o = H(), c = Ee(
|
|
6869
|
+
const o = H(), c = Ee(De), f = c && typeof c.id == "string", [l, u] = X({
|
|
6870
6870
|
data: null,
|
|
6871
6871
|
isLoading: !0
|
|
6872
6872
|
}), { data: d, isLoading: m } = l, p = sa(() => {
|
|
@@ -6937,7 +6937,7 @@ const nc = {
|
|
|
6937
6937
|
),
|
|
6938
6938
|
d.banner ? /* @__PURE__ */ a.jsxs("p", { className: "img", children: [
|
|
6939
6939
|
d.registered && /* @__PURE__ */ a.jsx(ht, { size: "small", variant: "registered", children: o.formatMessage({ id: "card_registered" }) }),
|
|
6940
|
-
/* @__PURE__ */ a.jsx(
|
|
6940
|
+
/* @__PURE__ */ a.jsx(Tt, { image: d.banner })
|
|
6941
6941
|
] }) : y === "people" ? /* @__PURE__ */ a.jsx(
|
|
6942
6942
|
Ye,
|
|
6943
6943
|
{
|
|
@@ -7039,7 +7039,7 @@ const En = {
|
|
|
7039
7039
|
threeCards: 769,
|
|
7040
7040
|
twoCards: 480
|
|
7041
7041
|
};
|
|
7042
|
-
let
|
|
7042
|
+
let Ft = null;
|
|
7043
7043
|
const ic = ({
|
|
7044
7044
|
id: t,
|
|
7045
7045
|
cards: e,
|
|
@@ -7055,7 +7055,7 @@ const ic = ({
|
|
|
7055
7055
|
}), { cardsPerPage: u, isLoading: d } = f, [m, p] = X({
|
|
7056
7056
|
currentPage: 0,
|
|
7057
7057
|
loadedPages: [0]
|
|
7058
|
-
}), { currentPage: h, loadedPages: _ } = m, y = e.length, v = Math.ceil(y / u), b = pe(null), T =
|
|
7058
|
+
}), { 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);
|
|
7059
7059
|
ae(() => {
|
|
7060
7060
|
let C = 1;
|
|
7061
7061
|
T && (T >= En.fourCards ? C = 4 : T >= En.threeCards ? C = 3 : T >= En.twoCards && (C = 2), C > y && (C = y)), l((F) => ({
|
|
@@ -7084,12 +7084,12 @@ const ic = ({
|
|
|
7084
7084
|
loadedPages: [.../* @__PURE__ */ new Set([..._, F])]
|
|
7085
7085
|
}));
|
|
7086
7086
|
}, w = (C) => {
|
|
7087
|
-
|
|
7087
|
+
Ft = C.touches[0].clientX;
|
|
7088
7088
|
}, I = (C) => {
|
|
7089
|
-
if (
|
|
7089
|
+
if (Ft === null)
|
|
7090
7090
|
return;
|
|
7091
|
-
const F = C.touches[0].clientX, $ =
|
|
7092
|
-
$ > 5 ? k("next") : $ < -5 && k("previous"),
|
|
7091
|
+
const F = C.touches[0].clientX, $ = Ft - F;
|
|
7092
|
+
$ > 5 ? k("next") : $ < -5 && k("previous"), Ft = null;
|
|
7093
7093
|
}, R = {
|
|
7094
7094
|
"--width": `${T || 0}px`,
|
|
7095
7095
|
"--total-cards": y,
|
|
@@ -7207,7 +7207,7 @@ const ic = ({
|
|
|
7207
7207
|
"data-testid": "carousel-placeholder"
|
|
7208
7208
|
}
|
|
7209
7209
|
),
|
|
7210
|
-
d ? null : /* @__PURE__ */ a.jsx(
|
|
7210
|
+
d ? null : /* @__PURE__ */ a.jsx(Oe, {})
|
|
7211
7211
|
] }, `placeholder-${u}`) : /* @__PURE__ */ a.jsxs(yt, { children: [
|
|
7212
7212
|
/* @__PURE__ */ a.jsx(
|
|
7213
7213
|
ic,
|
|
@@ -7218,7 +7218,7 @@ const ic = ({
|
|
|
7218
7218
|
...s
|
|
7219
7219
|
}
|
|
7220
7220
|
),
|
|
7221
|
-
d ? null : /* @__PURE__ */ a.jsx(
|
|
7221
|
+
d ? null : /* @__PURE__ */ a.jsx(Oe, {})
|
|
7222
7222
|
] }, `carousel-${u}`);
|
|
7223
7223
|
}
|
|
7224
7224
|
);
|
|
@@ -7229,7 +7229,7 @@ const Sn = "joinCommunityButton", Wa = ({
|
|
|
7229
7229
|
}, leave: () => {
|
|
7230
7230
|
} }
|
|
7231
7231
|
}) => {
|
|
7232
|
-
const s = H(), i = Ee(
|
|
7232
|
+
const s = H(), i = Ee(De), o = i && typeof i.id == "string", [c, f] = X(t), [l, u] = X(t ? "joined" : "notJoined");
|
|
7233
7233
|
ae(() => {
|
|
7234
7234
|
l === "joining" ? u("joined") : l === "leaving" && u("notJoined");
|
|
7235
7235
|
}, [c]);
|
|
@@ -7264,7 +7264,7 @@ const Cn = "communityDetails_", tu = ({
|
|
|
7264
7264
|
}) => {
|
|
7265
7265
|
const c = H(), f = 5, l = r || s.length, u = s.length ? s : Array(f).fill({}), d = `/communities/${n}/members` === window.location.pathname;
|
|
7266
7266
|
return /* @__PURE__ */ a.jsxs("div", { className: S("community-details", t), children: [
|
|
7267
|
-
/* @__PURE__ */ a.jsx(
|
|
7267
|
+
/* @__PURE__ */ a.jsx(Oe, {}),
|
|
7268
7268
|
/* @__PURE__ */ a.jsxs("div", { className: "member-details", children: [
|
|
7269
7269
|
/* @__PURE__ */ a.jsxs("div", { className: "top", children: [
|
|
7270
7270
|
/* @__PURE__ */ a.jsxs("h4", { children: [
|
|
@@ -7374,7 +7374,7 @@ const ru = ({
|
|
|
7374
7374
|
urlForRouter: `/${s.split("/").slice(2).join("/")}`
|
|
7375
7375
|
} : s;
|
|
7376
7376
|
};
|
|
7377
|
-
const
|
|
7377
|
+
const Ot = "languageSwitcher_", au = ({
|
|
7378
7378
|
currentLanguage: t,
|
|
7379
7379
|
isOriginalLanguage: e = !1,
|
|
7380
7380
|
isHumanTranslation: n = !1,
|
|
@@ -7396,7 +7396,7 @@ const Ft = "languageSwitcher_", au = ({
|
|
|
7396
7396
|
const h = Object.keys(r), _ = d !== t;
|
|
7397
7397
|
return /* @__PURE__ */ a.jsxs("div", { className: S("language-switcher text-small", o, f), children: [
|
|
7398
7398
|
/* @__PURE__ */ a.jsxs("nav", { children: [
|
|
7399
|
-
o !== "short" && /* @__PURE__ */ a.jsx("p", { children: c || l.formatMessage({ id: `${
|
|
7399
|
+
o !== "short" && /* @__PURE__ */ a.jsx("p", { children: c || l.formatMessage({ id: `${Ot}label` }) }),
|
|
7400
7400
|
/* @__PURE__ */ a.jsx("ul", { children: h.map((y) => {
|
|
7401
7401
|
var T;
|
|
7402
7402
|
if (!gn[y])
|
|
@@ -7405,7 +7405,7 @@ const Ft = "languageSwitcher_", au = ({
|
|
|
7405
7405
|
let b = { className: y };
|
|
7406
7406
|
if (d === y)
|
|
7407
7407
|
b["aria-label"] = l.formatMessage(
|
|
7408
|
-
{ id: `${
|
|
7408
|
+
{ id: `${Ot}selected` },
|
|
7409
7409
|
{ language: gn[y] }
|
|
7410
7410
|
);
|
|
7411
7411
|
else {
|
|
@@ -7424,7 +7424,7 @@ const Ft = "languageSwitcher_", au = ({
|
|
|
7424
7424
|
return /* @__PURE__ */ a.jsx("li", { children: /* @__PURE__ */ a.jsx(at, { ...b, fallbackElement: "span", children: gn[y] }) }, y);
|
|
7425
7425
|
}) }),
|
|
7426
7426
|
o !== "short" && !_ && /* @__PURE__ */ a.jsx("p", { children: l.formatMessage({
|
|
7427
|
-
id: `${
|
|
7427
|
+
id: `${Ot}translation_${e ? "original" : n ? "human" : "machine"}`
|
|
7428
7428
|
}) })
|
|
7429
7429
|
] }),
|
|
7430
7430
|
o !== "short" && !_ && !e && !n && /* @__PURE__ */ a.jsx("small", {
|
|
@@ -7432,7 +7432,7 @@ const Ft = "languageSwitcher_", au = ({
|
|
|
7432
7432
|
// @ts-ignore
|
|
7433
7433
|
// `values` are throwing a type error: https://github.com/formatjs/formatjs/issues/3633
|
|
7434
7434
|
children: l.formatMessage(
|
|
7435
|
-
{ id: `${
|
|
7435
|
+
{ id: `${Ot}disclaimer` },
|
|
7436
7436
|
{
|
|
7437
7437
|
email: ft.support,
|
|
7438
7438
|
link: (y) => {
|
|
@@ -7500,7 +7500,7 @@ const za = ({
|
|
|
7500
7500
|
children: /* @__PURE__ */ a.jsx(be, { children: /* @__PURE__ */ a.jsx(ye, { id: "apolitical" }) })
|
|
7501
7501
|
}
|
|
7502
7502
|
) });
|
|
7503
|
-
let
|
|
7503
|
+
let At = !1;
|
|
7504
7504
|
const cc = ({
|
|
7505
7505
|
element: t = "div",
|
|
7506
7506
|
id: e = "more-menu",
|
|
@@ -7538,10 +7538,10 @@ const cc = ({
|
|
|
7538
7538
|
c(!1), typeof u == "function" && u(y);
|
|
7539
7539
|
},
|
|
7540
7540
|
onFocus: () => {
|
|
7541
|
-
|
|
7541
|
+
At && (clearTimeout(At), At = !1);
|
|
7542
7542
|
},
|
|
7543
7543
|
onBlur: () => {
|
|
7544
|
-
|
|
7544
|
+
At = setTimeout(() => {
|
|
7545
7545
|
c(!1);
|
|
7546
7546
|
}, 100);
|
|
7547
7547
|
}
|
|
@@ -7582,7 +7582,7 @@ const uc = [
|
|
|
7582
7582
|
href: "/communities/"
|
|
7583
7583
|
}
|
|
7584
7584
|
], dc = ({ activeLink: t }) => {
|
|
7585
|
-
const e = H(), n = Ee(
|
|
7585
|
+
const e = H(), n = Ee(De), r = n && typeof n.id == "string";
|
|
7586
7586
|
return /* @__PURE__ */ a.jsxs("ul", { id: "navigation-menu", className: "text-medium", children: [
|
|
7587
7587
|
uc.map(({ key: s, href: i }) => /* @__PURE__ */ a.jsx(
|
|
7588
7588
|
"li",
|
|
@@ -7773,7 +7773,7 @@ const pc = {
|
|
|
7773
7773
|
className: n = "",
|
|
7774
7774
|
children: r
|
|
7775
7775
|
}) => {
|
|
7776
|
-
const s =
|
|
7776
|
+
const s = jt(!0);
|
|
7777
7777
|
let i = r;
|
|
7778
7778
|
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) });
|
|
7779
7779
|
};
|
|
@@ -7869,7 +7869,7 @@ const Mn = "cookieBanner_", Rn = [
|
|
|
7869
7869
|
}), /* @__PURE__ */ a.jsxs("aside", { id: "cookie-banner", className: "text-medium", children: [
|
|
7870
7870
|
/* @__PURE__ */ a.jsx("h6", { children: t.formatMessage({ id: `${Mn}title` }) }),
|
|
7871
7871
|
/* @__PURE__ */ a.jsx("p", { children: t.formatMessage({ id: `${Mn}text` }) }),
|
|
7872
|
-
/* @__PURE__ */ a.jsx(
|
|
7872
|
+
/* @__PURE__ */ a.jsx(kt, { buttons: l })
|
|
7873
7873
|
] });
|
|
7874
7874
|
}, Re = {
|
|
7875
7875
|
platform: {
|
|
@@ -8357,7 +8357,7 @@ const Xe = "footer_", Gt = "SiteFooter", Kr = ({ group: t }) => {
|
|
|
8357
8357
|
);
|
|
8358
8358
|
};
|
|
8359
8359
|
const vc = { height: 67, height_desktop: 83 }, Ha = ({ showNavigation: t = !0 }) => {
|
|
8360
|
-
const e = H(), n = Ee(
|
|
8360
|
+
const e = H(), n = Ee(De), r = jt(!0, !0), s = n && typeof n.id == "string", i = wt(
|
|
8361
8361
|
() => fe.getIsDesktopVersion(s, r),
|
|
8362
8362
|
[s, r]
|
|
8363
8363
|
), [o, c] = Yn(ma, {
|
|
@@ -8563,9 +8563,9 @@ const bc = () => {
|
|
|
8563
8563
|
ae(() => {
|
|
8564
8564
|
window.scrollTo(0, 0);
|
|
8565
8565
|
}, [h]);
|
|
8566
|
-
const _ =
|
|
8566
|
+
const _ = Bt(t, { locale: c }), y = Bt(e, {
|
|
8567
8567
|
locale: c
|
|
8568
|
-
}), v =
|
|
8568
|
+
}), v = Bt(n, {
|
|
8569
8569
|
locale: c
|
|
8570
8570
|
}), b = {};
|
|
8571
8571
|
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(
|
|
@@ -8833,10 +8833,10 @@ const fu = ({
|
|
|
8833
8833
|
"li",
|
|
8834
8834
|
{
|
|
8835
8835
|
className: S({
|
|
8836
|
-
article: y ===
|
|
8837
|
-
discussion: y ===
|
|
8838
|
-
quiz: y ===
|
|
8839
|
-
completed: h && y ===
|
|
8836
|
+
article: y === St.ARTICLE,
|
|
8837
|
+
discussion: y === St.DISCUSSION,
|
|
8838
|
+
quiz: y === St.QUIZ,
|
|
8839
|
+
completed: h && y === St.ARTICLE,
|
|
8840
8840
|
locked: !C
|
|
8841
8841
|
}),
|
|
8842
8842
|
...F,
|
|
@@ -8906,7 +8906,7 @@ const mu = ({
|
|
|
8906
8906
|
}
|
|
8907
8907
|
);
|
|
8908
8908
|
};
|
|
8909
|
-
let
|
|
8909
|
+
let Dt = null;
|
|
8910
8910
|
const we = "discussion_form_", ar = ({
|
|
8911
8911
|
content: t = { type: "response", slugs: {} },
|
|
8912
8912
|
userHasPermissions: e = !0,
|
|
@@ -8941,7 +8941,7 @@ const we = "discussion_form_", ar = ({
|
|
|
8941
8941
|
gtmContext: l = "DiscussionForm"
|
|
8942
8942
|
}) => {
|
|
8943
8943
|
var F, $, j;
|
|
8944
|
-
const u = H(), d = Ee(
|
|
8944
|
+
const u = H(), d = Ee(De), [m, p] = X(
|
|
8945
8945
|
n.isEditing && n.isEditing.text || ""
|
|
8946
8946
|
), [h, _] = X(c.error || !1), [y, v] = X(!1), b = pe(null);
|
|
8947
8947
|
if (r || (r = b), n.isLoading)
|
|
@@ -8977,7 +8977,7 @@ const we = "discussion_form_", ar = ({
|
|
|
8977
8977
|
var A;
|
|
8978
8978
|
if (x.preventDefault(), x.stopPropagation(), !d || !d.id || !e || R)
|
|
8979
8979
|
return;
|
|
8980
|
-
|
|
8980
|
+
Dt && clearTimeout(Dt), v("submitting");
|
|
8981
8981
|
const N = window.location.pathname;
|
|
8982
8982
|
try {
|
|
8983
8983
|
let W;
|
|
@@ -9007,7 +9007,7 @@ const we = "discussion_form_", ar = ({
|
|
|
9007
9007
|
default:
|
|
9008
9008
|
break;
|
|
9009
9009
|
}
|
|
9010
|
-
await Ks(1e3), f.callback && await f.callback(W),
|
|
9010
|
+
await Ks(1e3), f.callback && await f.callback(W), Dt = setTimeout(() => {
|
|
9011
9011
|
p(""), v("submitted");
|
|
9012
9012
|
const Z = new Event("discussionFormSubmitted");
|
|
9013
9013
|
document.dispatchEvent(Z), I();
|
|
@@ -9028,7 +9028,7 @@ const we = "discussion_form_", ar = ({
|
|
|
9028
9028
|
) : Z != null && Z.message.includes("400") && (z = `${we}error`), _(z), I();
|
|
9029
9029
|
}
|
|
9030
9030
|
}, I = () => {
|
|
9031
|
-
|
|
9031
|
+
Dt = setTimeout(() => {
|
|
9032
9032
|
_(!1), v(!1);
|
|
9033
9033
|
}, 5e3);
|
|
9034
9034
|
}, R = !m || !ni(m), Q = y === "submitting", C = [];
|
|
@@ -9115,7 +9115,7 @@ const we = "discussion_form_", ar = ({
|
|
|
9115
9115
|
}
|
|
9116
9116
|
)
|
|
9117
9117
|
}) }),
|
|
9118
|
-
/* @__PURE__ */ a.jsx(
|
|
9118
|
+
/* @__PURE__ */ a.jsx(kt, { buttons: C }),
|
|
9119
9119
|
y === "submitted" && n.showSuccessMessage && /* @__PURE__ */ a.jsx(Wt, { className: "success", "data-testid": "success", children: $e(u.formatMessage, `${we}success`, t.type, "action") }),
|
|
9120
9120
|
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(
|
|
9121
9121
|
{ id: h },
|
|
@@ -9190,7 +9190,7 @@ const An = () => {
|
|
|
9190
9190
|
ae(() => {
|
|
9191
9191
|
p(s);
|
|
9192
9192
|
}, [s]);
|
|
9193
|
-
const [u, d] = X(e), [m, p] = X(s), [h, _] = X(!1), [y, v] = X(!1), b =
|
|
9193
|
+
const [u, d] = X(e), [m, p] = X(s), [h, _] = X(!1), [y, v] = X(!1), b = wt(
|
|
9194
9194
|
() => Ec(n, Dn),
|
|
9195
9195
|
[n]
|
|
9196
9196
|
), T = (w) => {
|
|
@@ -9328,7 +9328,7 @@ const Me = "discussion_", Cc = 280, cn = ({
|
|
|
9328
9328
|
children: _,
|
|
9329
9329
|
isTruncated: y = !1
|
|
9330
9330
|
}) => {
|
|
9331
|
-
const v = H(), b = Ee(
|
|
9331
|
+
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({
|
|
9332
9332
|
body: e && e.body || "",
|
|
9333
9333
|
isEditing: !1,
|
|
9334
9334
|
didEdit: e && e.isEdited || !1
|
|
@@ -9492,10 +9492,10 @@ const Me = "discussion_", Cc = 280, cn = ({
|
|
|
9492
9492
|
className: "gtm-trackable",
|
|
9493
9493
|
"data-gtm-event-context": h,
|
|
9494
9494
|
"data-gtm-event-type": "title-click",
|
|
9495
|
-
children: /* @__PURE__ */ a.jsx(
|
|
9495
|
+
children: /* @__PURE__ */ a.jsx(xt, { options: { overrides: { a: gi } }, children: te })
|
|
9496
9496
|
}
|
|
9497
9497
|
) : /* @__PURE__ */ a.jsx(
|
|
9498
|
-
|
|
9498
|
+
xt,
|
|
9499
9499
|
{
|
|
9500
9500
|
options: {
|
|
9501
9501
|
wrapper: e.type === "question" ? "h1" : Y.Fragment,
|
|
@@ -9658,7 +9658,7 @@ const Nc = ({
|
|
|
9658
9658
|
form: r,
|
|
9659
9659
|
children: s
|
|
9660
9660
|
}) => {
|
|
9661
|
-
const i = H(), o = Ee(sr), c =
|
|
9661
|
+
const i = H(), o = Ee(sr), c = Bt(s, {
|
|
9662
9662
|
element: "li"
|
|
9663
9663
|
});
|
|
9664
9664
|
return /* @__PURE__ */ a.jsxs("div", { className: "thread-wrapper", children: [
|
|
@@ -10295,7 +10295,7 @@ const pu = ({
|
|
|
10295
10295
|
isTruncated: !0
|
|
10296
10296
|
}
|
|
10297
10297
|
),
|
|
10298
|
-
b > k + 1 && /* @__PURE__ */ a.jsx(
|
|
10298
|
+
b > k + 1 && /* @__PURE__ */ a.jsx(Oe, {})
|
|
10299
10299
|
] }, w);
|
|
10300
10300
|
}),
|
|
10301
10301
|
!d && /* @__PURE__ */ a.jsx(
|
|
@@ -11407,7 +11407,7 @@ const gu = ({
|
|
|
11407
11407
|
}
|
|
11408
11408
|
}) => {
|
|
11409
11409
|
var C, F, $, j, x, N, A, W, Z, z;
|
|
11410
|
-
const l = H(), u = Ee(
|
|
11410
|
+
const l = H(), u = Ee(De), {
|
|
11411
11411
|
activity: d,
|
|
11412
11412
|
error: m,
|
|
11413
11413
|
isLoading: p,
|
|
@@ -11553,10 +11553,10 @@ const gu = ({
|
|
|
11553
11553
|
contributors: ["community"]
|
|
11554
11554
|
}
|
|
11555
11555
|
];
|
|
11556
|
-
const
|
|
11556
|
+
const It = "notFoundError_", bu = () => {
|
|
11557
11557
|
const t = H(), e = [];
|
|
11558
11558
|
return aa.forEach((n, r) => {
|
|
11559
|
-
n.title = t.formatMessage({ id: `${
|
|
11559
|
+
n.title = t.formatMessage({ id: `${It}post_${r + 1}` }), e.push("solutionArticle");
|
|
11560
11560
|
}), /* @__PURE__ */ a.jsxs(
|
|
11561
11561
|
yc,
|
|
11562
11562
|
{
|
|
@@ -11573,15 +11573,15 @@ const Dt = "notFoundError_", bu = () => {
|
|
|
11573
11573
|
})
|
|
11574
11574
|
}
|
|
11575
11575
|
),
|
|
11576
|
-
/* @__PURE__ */ a.jsx(se, { href: "/solution-articles/", children: t.formatMessage({ id: `${
|
|
11576
|
+
/* @__PURE__ */ a.jsx(se, { href: "/solution-articles/", children: t.formatMessage({ id: `${It}cta` }) })
|
|
11577
11577
|
] })
|
|
11578
11578
|
},
|
|
11579
11579
|
reportError: () => {
|
|
11580
11580
|
},
|
|
11581
11581
|
className: "not-found-error",
|
|
11582
11582
|
children: [
|
|
11583
|
-
/* @__PURE__ */ a.jsx("h1", { children: t.formatMessage({ id: `${
|
|
11584
|
-
/* @__PURE__ */ a.jsx("p", { children: t.formatMessage({ id: `${
|
|
11583
|
+
/* @__PURE__ */ a.jsx("h1", { children: t.formatMessage({ id: `${It}title` }) }),
|
|
11584
|
+
/* @__PURE__ */ a.jsx("p", { children: t.formatMessage({ id: `${It}text` }) })
|
|
11585
11585
|
]
|
|
11586
11586
|
}
|
|
11587
11587
|
);
|
|
@@ -11595,8 +11595,8 @@ export {
|
|
|
11595
11595
|
ql as BannerSection,
|
|
11596
11596
|
nu as Breadcrumbs,
|
|
11597
11597
|
se as Button,
|
|
11598
|
-
|
|
11599
|
-
|
|
11598
|
+
kt as ButtonWrapper,
|
|
11599
|
+
St as COURSE_CONTENT_TYPES,
|
|
11600
11600
|
Ti as CacheProvider,
|
|
11601
11601
|
Ua as Card,
|
|
11602
11602
|
rc as CardBlock,
|
|
@@ -11619,7 +11619,7 @@ export {
|
|
|
11619
11619
|
Sc as DiscussionLikes,
|
|
11620
11620
|
cn as DiscussionPost,
|
|
11621
11621
|
Nc as DiscussionThread,
|
|
11622
|
-
|
|
11622
|
+
Oe as Divider,
|
|
11623
11623
|
Il as DownloadSection,
|
|
11624
11624
|
ft as EMAILS,
|
|
11625
11625
|
Ll as EditSection,
|
|
@@ -11636,7 +11636,7 @@ export {
|
|
|
11636
11636
|
Gn as HiddenFromScreenReaders,
|
|
11637
11637
|
Rl as HideShowTextBox,
|
|
11638
11638
|
Wl as HighlightSection,
|
|
11639
|
-
|
|
11639
|
+
Fe as HighlightedTextBox,
|
|
11640
11640
|
Fl as IconBulletedList,
|
|
11641
11641
|
Nl as ImageContainer,
|
|
11642
11642
|
$i as IntlProvider,
|
|
@@ -11655,7 +11655,7 @@ export {
|
|
|
11655
11655
|
za as Logo,
|
|
11656
11656
|
Bl as LogoSection,
|
|
11657
11657
|
mu as MarkCompleteButton,
|
|
11658
|
-
|
|
11658
|
+
xt as MarkdownText,
|
|
11659
11659
|
zl as MarketingBlock,
|
|
11660
11660
|
tr as Member,
|
|
11661
11661
|
uu as MembersList,
|
|
@@ -11677,7 +11677,7 @@ export {
|
|
|
11677
11677
|
Vl as Rating,
|
|
11678
11678
|
cl as RepliesFeed,
|
|
11679
11679
|
$c as ResponsesHeading,
|
|
11680
|
-
|
|
11680
|
+
Tt as ResponsiveImage,
|
|
11681
11681
|
Ml as ReturnToNavButton,
|
|
11682
11682
|
Ki as SearchForm,
|
|
11683
11683
|
su as ShareLinks,
|
|
@@ -11692,7 +11692,7 @@ export {
|
|
|
11692
11692
|
Yl as Toggle,
|
|
11693
11693
|
_i as Tooltip,
|
|
11694
11694
|
cu as TopLevelPage,
|
|
11695
|
-
|
|
11695
|
+
De as UserContext,
|
|
11696
11696
|
Ni as UserProvider,
|
|
11697
11697
|
be as VisuallyHidden,
|
|
11698
11698
|
Xo as addAriaProps,
|
|
@@ -11714,7 +11714,7 @@ export {
|
|
|
11714
11714
|
Zs as toSentenceCase,
|
|
11715
11715
|
Ls as useCurrentPath,
|
|
11716
11716
|
_t as useEffectAfterMount,
|
|
11717
|
-
|
|
11717
|
+
jt as useElementWidth,
|
|
11718
11718
|
qs as useScrollListener,
|
|
11719
11719
|
Us as useScrollToHash,
|
|
11720
11720
|
er as useUser
|