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