@apolitical/component-library 3.3.1 → 3.3.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/helpers/intl.d.ts +2 -0
- package/index.js +16 -16
- package/index.mjs +678 -673
- package/package.json +1 -1
- package/style.css +1 -1
- package/text/markdown-text/components/center/center.d.ts +5 -0
- package/text/markdown-text/components/center/index.d.ts +1 -0
- package/text/markdown-text/components/index.d.ts +1 -0
- package/user/contributors/contributors.d.ts +3 -1
package/index.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import K, { memo as
|
|
1
|
+
import K, { memo as De, useState as J, useEffect as ae, useRef as pe, useMemo as _t, Children as Bn, createContext as nn, useContext as Ee, useCallback as sa, useReducer as Yn, Fragment as bt, 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 V, IntlProvider as js, createIntl as ks } from "react-intl";
|
|
@@ -6,13 +6,13 @@ 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 Dt 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";
|
|
13
13
|
import { ErrorBoundary as Ps } from "react-error-boundary";
|
|
14
|
-
import
|
|
15
|
-
import
|
|
14
|
+
import Ms from "react-textarea-autosize";
|
|
15
|
+
import Rs from "lodash.isequal";
|
|
16
16
|
function la(t) {
|
|
17
17
|
return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
|
|
18
18
|
}
|
|
@@ -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
|
-
}) => K.createElement(t, { ...n, "aria-hidden": !0 }, e), Gn =
|
|
91
|
+
}) => K.createElement(t, { ...n, "aria-hidden": !0 }, e), Gn = De(As);
|
|
92
92
|
var qn = { exports: {} }, it = {};
|
|
93
93
|
/**
|
|
94
94
|
* @license React
|
|
@@ -100,7 +100,7 @@ var qn = { exports: {} }, it = {};
|
|
|
100
100
|
* LICENSE file in the root directory of this source tree.
|
|
101
101
|
*/
|
|
102
102
|
var xr;
|
|
103
|
-
function
|
|
103
|
+
function Ds() {
|
|
104
104
|
if (xr)
|
|
105
105
|
return it;
|
|
106
106
|
xr = 1;
|
|
@@ -155,14 +155,14 @@ function Is() {
|
|
|
155
155
|
me.unshift("Warning: " + P), Function.prototype.apply.call(console[h], console, me);
|
|
156
156
|
}
|
|
157
157
|
}
|
|
158
|
-
var k = !1, x = !1,
|
|
159
|
-
|
|
158
|
+
var k = !1, x = !1, D = !1, R = !1, Z = !1, M;
|
|
159
|
+
M = Symbol.for("react.module.reference");
|
|
160
160
|
function O(h) {
|
|
161
|
-
return !!(typeof h == "string" || typeof h == "function" || h === r || h === i || Z || h === s || h === l || h === d ||
|
|
161
|
+
return !!(typeof h == "string" || typeof h == "function" || h === r || h === i || Z || h === s || h === l || h === d || R || h === p || k || x || D || typeof h == "object" && h !== null && (h.$$typeof === m || h.$$typeof === u || h.$$typeof === o || h.$$typeof === c || h.$$typeof === f || // This needs to include all possible module reference object
|
|
162
162
|
// types supported by any Flight configuration anywhere since
|
|
163
163
|
// we don't know which Flight build this will end up being used
|
|
164
164
|
// with.
|
|
165
|
-
h.$$typeof ===
|
|
165
|
+
h.$$typeof === M || h.getModuleId !== void 0));
|
|
166
166
|
}
|
|
167
167
|
function C(h, P, B) {
|
|
168
168
|
var ne = h.displayName;
|
|
@@ -300,7 +300,7 @@ function Is() {
|
|
|
300
300
|
var oe = typeof WeakMap == "function" ? WeakMap : Map;
|
|
301
301
|
F = new oe();
|
|
302
302
|
}
|
|
303
|
-
function
|
|
303
|
+
function A(h, P) {
|
|
304
304
|
if (!h || re)
|
|
305
305
|
return "";
|
|
306
306
|
{
|
|
@@ -372,7 +372,7 @@ function Is() {
|
|
|
372
372
|
return typeof h == "function" && F.set(h, _r), _r;
|
|
373
373
|
}
|
|
374
374
|
function ve(h, P, B) {
|
|
375
|
-
return
|
|
375
|
+
return A(h, !1);
|
|
376
376
|
}
|
|
377
377
|
function Ne(h) {
|
|
378
378
|
var P = h.prototype;
|
|
@@ -382,7 +382,7 @@ function Is() {
|
|
|
382
382
|
if (h == null)
|
|
383
383
|
return "";
|
|
384
384
|
if (typeof h == "function")
|
|
385
|
-
return
|
|
385
|
+
return A(h, Ne(h));
|
|
386
386
|
if (typeof h == "string")
|
|
387
387
|
return ee(h);
|
|
388
388
|
switch (h) {
|
|
@@ -714,7 +714,7 @@ Check the top-level render call using <` + B + ">.");
|
|
|
714
714
|
ot.Fragment = r, ot.jsx = ys, ot.jsxs = _s;
|
|
715
715
|
}()), ot;
|
|
716
716
|
}
|
|
717
|
-
process.env.NODE_ENV === "production" ? qn.exports =
|
|
717
|
+
process.env.NODE_ENV === "production" ? qn.exports = Ds() : qn.exports = Is();
|
|
718
718
|
var a = qn.exports;
|
|
719
719
|
const Ls = () => {
|
|
720
720
|
const [t, e] = J(window.location.pathname), n = () => {
|
|
@@ -749,24 +749,24 @@ function Bs(t, e, n) {
|
|
|
749
749
|
return c.current = f.current = null, i.current = O, l.current = d.current.apply(E, C);
|
|
750
750
|
}, x = function(O, C) {
|
|
751
751
|
p && cancelAnimationFrame(o.current), o.current = p ? requestAnimationFrame(O) : setTimeout(O, C);
|
|
752
|
-
},
|
|
752
|
+
}, D = function(O) {
|
|
753
753
|
if (!u.current)
|
|
754
754
|
return !1;
|
|
755
755
|
var C = O - s.current;
|
|
756
756
|
return !s.current || C >= e || C < 0 || y && O - i.current >= b;
|
|
757
|
-
},
|
|
757
|
+
}, R = function(O) {
|
|
758
758
|
return o.current = null, _ && c.current ? k(O) : (c.current = f.current = null, l.current);
|
|
759
759
|
}, Z = function O() {
|
|
760
760
|
var C = Date.now();
|
|
761
|
-
if (
|
|
762
|
-
return
|
|
761
|
+
if (D(C))
|
|
762
|
+
return R(C);
|
|
763
763
|
if (u.current) {
|
|
764
764
|
var E = e - (C - s.current), w = y ? Math.min(E, b - (C - i.current)) : E;
|
|
765
765
|
x(O, w);
|
|
766
766
|
}
|
|
767
|
-
},
|
|
767
|
+
}, M = function() {
|
|
768
768
|
if (m || v) {
|
|
769
|
-
var O = Date.now(), C =
|
|
769
|
+
var O = Date.now(), C = D(O);
|
|
770
770
|
if (c.current = [].slice.call(arguments), f.current = r, s.current = O, C) {
|
|
771
771
|
if (!o.current && u.current)
|
|
772
772
|
return i.current = s.current, x(Z, e), g ? k(s.current) : l.current;
|
|
@@ -776,13 +776,13 @@ function Bs(t, e, n) {
|
|
|
776
776
|
return o.current || x(Z, e), l.current;
|
|
777
777
|
}
|
|
778
778
|
};
|
|
779
|
-
return
|
|
779
|
+
return M.cancel = function() {
|
|
780
780
|
o.current && (p ? cancelAnimationFrame(o.current) : clearTimeout(o.current)), i.current = 0, c.current = s.current = f.current = o.current = null;
|
|
781
|
-
},
|
|
781
|
+
}, M.isPending = function() {
|
|
782
782
|
return !!o.current;
|
|
783
|
-
},
|
|
784
|
-
return o.current ?
|
|
785
|
-
},
|
|
783
|
+
}, M.flush = function() {
|
|
784
|
+
return o.current ? R(Date.now()) : l.current;
|
|
785
|
+
}, M;
|
|
786
786
|
}, [g, y, e, b, _, p, m, v]);
|
|
787
787
|
return j;
|
|
788
788
|
}
|
|
@@ -895,7 +895,7 @@ const xt = (t = !0, e = !1, n = "window") => {
|
|
|
895
895
|
ARTICLE: "microcourseArticle",
|
|
896
896
|
DISCUSSION: "microcourseDiscussion",
|
|
897
897
|
QUIZ: "assessmentQuiz"
|
|
898
|
-
},
|
|
898
|
+
}, $l = "200,000+";
|
|
899
899
|
function Hs(t) {
|
|
900
900
|
return t ? {
|
|
901
901
|
"--icon": `url(${ze}icons/${t}.svg)`
|
|
@@ -966,6 +966,8 @@ const We = {
|
|
|
966
966
|
card_ended: "Ended",
|
|
967
967
|
card_registered: "Registered",
|
|
968
968
|
card_partner: "{partner} and {number} more",
|
|
969
|
+
card_contributors_event: "Multiple speakers",
|
|
970
|
+
card_contributors_solutionArticle: "Multiple authors",
|
|
969
971
|
card_answers: "{number, plural, =0 {0 answers} one {# answer} other {# answers}}",
|
|
970
972
|
card_time_ago: "{time} ago",
|
|
971
973
|
card_time_read: "{time} min read",
|
|
@@ -1465,7 +1467,7 @@ Thank you for helping to protect the Apolitical community from abusive content.`
|
|
|
1465
1467
|
children: s
|
|
1466
1468
|
});
|
|
1467
1469
|
};
|
|
1468
|
-
const
|
|
1470
|
+
const Ae = ({ className: t = "", maxWidth: e = !1 }) => {
|
|
1469
1471
|
const n = e ? { "--max-width": `${e / 16}rem` } : {};
|
|
1470
1472
|
return /* @__PURE__ */ a.jsx("hr", { className: S(t, { "has-max-width": e }), style: n });
|
|
1471
1473
|
}, kr = {
|
|
@@ -1627,7 +1629,7 @@ const jt = ({ image: t, className: e, testId: n }) => {
|
|
|
1627
1629
|
)
|
|
1628
1630
|
] });
|
|
1629
1631
|
};
|
|
1630
|
-
const
|
|
1632
|
+
const Nl = ({ image: t, className: e, testId: n }) => /* @__PURE__ */ a.jsx(
|
|
1631
1633
|
"div",
|
|
1632
1634
|
{
|
|
1633
1635
|
className: `image-container ${e}`,
|
|
@@ -1650,7 +1652,7 @@ const $l = ({ image: t, className: e, testId: n }) => /* @__PURE__ */ a.jsx(
|
|
|
1650
1652
|
}
|
|
1651
1653
|
return n ? K.createElement(n, { children: e, className: r, ...c }) : /* @__PURE__ */ a.jsx(a.Fragment, { children: e });
|
|
1652
1654
|
};
|
|
1653
|
-
const
|
|
1655
|
+
const Pl = ({ currentStep: t = 1, steps: e = 1 }) => /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
|
|
1654
1656
|
/* @__PURE__ */ a.jsx(be, { children: /* @__PURE__ */ a.jsx(
|
|
1655
1657
|
ye,
|
|
1656
1658
|
{
|
|
@@ -1682,7 +1684,7 @@ const Nl = ({ currentStep: t = 1, steps: e = 1 }) => /* @__PURE__ */ a.jsxs(a.Fr
|
|
|
1682
1684
|
] }, r);
|
|
1683
1685
|
}) }) })
|
|
1684
1686
|
] });
|
|
1685
|
-
const
|
|
1687
|
+
const Ml = ({ elementId: t, offset: e = 20 }) => {
|
|
1686
1688
|
const n = V(), r = () => {
|
|
1687
1689
|
const s = document.getElementById(t);
|
|
1688
1690
|
if (!s)
|
|
@@ -1954,7 +1956,7 @@ const Rl = ({
|
|
|
1954
1956
|
}
|
|
1955
1957
|
);
|
|
1956
1958
|
};
|
|
1957
|
-
const
|
|
1959
|
+
const Fl = ({
|
|
1958
1960
|
element: t = "ul",
|
|
1959
1961
|
layout: e = "vertical",
|
|
1960
1962
|
variant: n = "default",
|
|
@@ -1979,7 +1981,7 @@ const Ml = ({
|
|
|
1979
1981
|
] }, `dl-${l}`) : /* @__PURE__ */ a.jsx("li", { style: u, children: typeof f.text == "string" ? /* @__PURE__ */ a.jsx(Fe, { options: d, children: f.text }) : f.text }, l);
|
|
1980
1982
|
})
|
|
1981
1983
|
});
|
|
1982
|
-
}, _e = () => K.Fragment, li = ({ children: t }) => /* @__PURE__ */ a.jsx(Oe, { variant: "secondary", children: t }), di = ["span", "strong", "h1", "h2", "h3", "h4", "h5", "h6", "p"],
|
|
1984
|
+
}, _e = () => K.Fragment, li = ({ children: t }) => /* @__PURE__ */ a.jsx(Oe, { variant: "secondary", children: t }), di = ({ 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 }), ui = ["span", "strong", "h1", "h2", "h3", "h4", "h5", "h6", "p"], fi = ({ children: t }) => {
|
|
1983
1985
|
const e = V();
|
|
1984
1986
|
if (!t)
|
|
1985
1987
|
return null;
|
|
@@ -1994,7 +1996,7 @@ const Ml = ({
|
|
|
1994
1996
|
for (const o of Bn.toArray(i.props.children))
|
|
1995
1997
|
if (!(!o || typeof o == "string" || typeof o == "number") && K.isValidElement(o)) {
|
|
1996
1998
|
const c = o.type;
|
|
1997
|
-
if (
|
|
1999
|
+
if (ui.includes(c)) {
|
|
1998
2000
|
for (n = o.props.children; typeof n != "string" && (Array.isArray(n) && n[0].props && n[0].props.children && n[0].props.children[0]); )
|
|
1999
2001
|
n = n[0].props.children[0];
|
|
2000
2002
|
break;
|
|
@@ -2012,7 +2014,7 @@ const Ml = ({
|
|
|
2012
2014
|
children: r.map((i) => i)
|
|
2013
2015
|
}
|
|
2014
2016
|
);
|
|
2015
|
-
},
|
|
2017
|
+
}, mi = ({
|
|
2016
2018
|
children: t,
|
|
2017
2019
|
...e
|
|
2018
2020
|
}) => {
|
|
@@ -2031,7 +2033,7 @@ const Ml = ({
|
|
|
2031
2033
|
return /* @__PURE__ */ a.jsx("div", { ...e, children: t });
|
|
2032
2034
|
}
|
|
2033
2035
|
return /* @__PURE__ */ a.jsx("div", { ...e, children: t });
|
|
2034
|
-
},
|
|
2036
|
+
}, pi = (t) => {
|
|
2035
2037
|
const e = V(), n = Date.now().toString();
|
|
2036
2038
|
let r = "default";
|
|
2037
2039
|
const s = t.src;
|
|
@@ -2053,7 +2055,7 @@ const Ml = ({
|
|
|
2053
2055
|
}, $r = (t) => {
|
|
2054
2056
|
let e = "";
|
|
2055
2057
|
return t && typeof t != "string" && typeof t != "number" && typeof t != "boolean" && "type" in t && (e = t.type), e;
|
|
2056
|
-
},
|
|
2058
|
+
}, hi = ({
|
|
2057
2059
|
children: t,
|
|
2058
2060
|
...e
|
|
2059
2061
|
}) => {
|
|
@@ -2071,10 +2073,10 @@ const Ml = ({
|
|
|
2071
2073
|
break;
|
|
2072
2074
|
}
|
|
2073
2075
|
return s ? (n = { ...n, className: "button primary medium" }, /* @__PURE__ */ a.jsx("p", { className: "center", children: /* @__PURE__ */ a.jsx(se, { variant: "primary", size: "medium", ...n, children: r }) })) : /* @__PURE__ */ a.jsx("a", { ...n, children: r });
|
|
2074
|
-
},
|
|
2075
|
-
const
|
|
2076
|
+
}, gi = ({ children: t }) => /* @__PURE__ */ a.jsx("span", { children: t });
|
|
2077
|
+
const vi = {
|
|
2076
2078
|
default: {
|
|
2077
|
-
a:
|
|
2079
|
+
a: hi,
|
|
2078
2080
|
// Override psuedo-code
|
|
2079
2081
|
// We give the content team psuedo-code short cuts to use in Contentful
|
|
2080
2082
|
CollapsibleSection: Jn,
|
|
@@ -2083,9 +2085,10 @@ const gi = {
|
|
|
2083
2085
|
// Override embedded HTML
|
|
2084
2086
|
// Our content team previously used real HTML, which we need to tear out and replace with React components
|
|
2085
2087
|
style: _e,
|
|
2086
|
-
details:
|
|
2087
|
-
div:
|
|
2088
|
-
iframe:
|
|
2088
|
+
details: fi,
|
|
2089
|
+
div: mi,
|
|
2090
|
+
iframe: pi,
|
|
2091
|
+
center: di
|
|
2089
2092
|
},
|
|
2090
2093
|
"text-only": {
|
|
2091
2094
|
h1: _e,
|
|
@@ -2116,7 +2119,7 @@ const gi = {
|
|
|
2116
2119
|
const o = {
|
|
2117
2120
|
wrapper: K.Fragment,
|
|
2118
2121
|
forceBlock: !0,
|
|
2119
|
-
overrides:
|
|
2122
|
+
overrides: vi[r]
|
|
2120
2123
|
};
|
|
2121
2124
|
return /* @__PURE__ */ a.jsx(
|
|
2122
2125
|
"div",
|
|
@@ -2128,7 +2131,7 @@ const gi = {
|
|
|
2128
2131
|
}
|
|
2129
2132
|
);
|
|
2130
2133
|
};
|
|
2131
|
-
const
|
|
2134
|
+
const bi = ({
|
|
2132
2135
|
maxWidth: t = !1,
|
|
2133
2136
|
title: e,
|
|
2134
2137
|
subtitle: n,
|
|
@@ -2169,12 +2172,12 @@ const Wt = ({
|
|
|
2169
2172
|
},
|
|
2170
2173
|
e
|
|
2171
2174
|
);
|
|
2172
|
-
const
|
|
2175
|
+
const yi = ({ author: t, authorCite: e, content: n }) => /* @__PURE__ */ a.jsxs("blockquote", { className: "testimonial-block", children: [
|
|
2173
2176
|
/* @__PURE__ */ a.jsx(Fe, { className: "testimonial", children: n }),
|
|
2174
2177
|
t && /* @__PURE__ */ a.jsx("p", { className: "author text-small", children: t }),
|
|
2175
2178
|
e && /* @__PURE__ */ a.jsx("p", { className: "author-cite text-small", children: /* @__PURE__ */ a.jsx("cite", { children: e }) })
|
|
2176
|
-
] }),
|
|
2177
|
-
const
|
|
2179
|
+
] }), Ol = De(yi);
|
|
2180
|
+
const Al = ({
|
|
2178
2181
|
items: t = [],
|
|
2179
2182
|
selector: e = "",
|
|
2180
2183
|
className: n = ""
|
|
@@ -2243,7 +2246,7 @@ const Xn = ({
|
|
|
2243
2246
|
return n && (l = `${n} ${l}`, f = `${n} ${f}`), r && (l = `${l} ${r}`, f = `${f} ${r}`), /* @__PURE__ */ a.jsx("span", { className: S("time-to-complete", s), "aria-label": l, children: f });
|
|
2244
2247
|
};
|
|
2245
2248
|
let ct = !1;
|
|
2246
|
-
const
|
|
2249
|
+
const _i = ({ isOpen: t = !1, isLoading: e = !1, children: n }) => {
|
|
2247
2250
|
const r = V(), s = pe(null), [i, o] = J("hidden");
|
|
2248
2251
|
ae(() => {
|
|
2249
2252
|
const f = s.current;
|
|
@@ -2306,7 +2309,7 @@ const Ve = ({
|
|
|
2306
2309
|
}
|
|
2307
2310
|
);
|
|
2308
2311
|
};
|
|
2309
|
-
const
|
|
2312
|
+
const Il = ({ text: t, buttons: e, className: n = "" }) => {
|
|
2310
2313
|
const r = [];
|
|
2311
2314
|
return e.forEach((s) => {
|
|
2312
2315
|
r.push({
|
|
@@ -2331,13 +2334,13 @@ const Al = ({ text: t, buttons: e, className: n = "" }) => {
|
|
|
2331
2334
|
function ba({ href: t, setShowModal: e }) {
|
|
2332
2335
|
typeof t != "string" && e(!0);
|
|
2333
2336
|
}
|
|
2334
|
-
const
|
|
2337
|
+
const xi = ({ icon: t, description: e, ctaMessage: n, href: r, showEditButton: s, setShowModal: i }) => {
|
|
2335
2338
|
const { formatMessage: o } = V();
|
|
2336
2339
|
return /* @__PURE__ */ a.jsxs("div", { className: S("edit-section-placeholder", { "has-icon": !!t }), style: Hs(t), children: [
|
|
2337
2340
|
/* @__PURE__ */ a.jsx("p", { children: e || o({ id: "edit_section_placeholder_description" }) }),
|
|
2338
2341
|
s && /* @__PURE__ */ a.jsx(se, { href: r, variant: "secondary", size: "small", onClick: () => ba({ href: r, setShowModal: i }), children: n || o({ id: "edit_section_placeholder_cta" }) })
|
|
2339
2342
|
] });
|
|
2340
|
-
},
|
|
2343
|
+
}, Ll = ({
|
|
2341
2344
|
children: t,
|
|
2342
2345
|
className: e = "",
|
|
2343
2346
|
formProps: n,
|
|
@@ -2377,11 +2380,11 @@ const _i = ({ icon: t, description: e, ctaMessage: n, href: r, showEditButton: s
|
|
|
2377
2380
|
/* @__PURE__ */ a.jsx("h2", { className: "edit-section-header-title", children: s }),
|
|
2378
2381
|
d && /* @__PURE__ */ a.jsx(se, { href: r, variant: "tertiary", size: "small", icon: "pencil", onClick: () => ba({ href: r, setShowModal: l }), children: "Edit" })
|
|
2379
2382
|
] }),
|
|
2380
|
-
t || /* @__PURE__ */ a.jsx(
|
|
2381
|
-
c && /* @__PURE__ */ a.jsx(
|
|
2383
|
+
t || /* @__PURE__ */ a.jsx(xi, { ...o, href: r, setShowModal: l, showEditButton: d }),
|
|
2384
|
+
c && /* @__PURE__ */ a.jsx(Ae, {})
|
|
2382
2385
|
] });
|
|
2383
2386
|
};
|
|
2384
|
-
const
|
|
2387
|
+
const Bl = ({
|
|
2385
2388
|
title: t = !1,
|
|
2386
2389
|
logos: e = [],
|
|
2387
2390
|
styling: n = {},
|
|
@@ -2438,7 +2441,7 @@ const Ll = ({
|
|
|
2438
2441
|
}
|
|
2439
2442
|
);
|
|
2440
2443
|
};
|
|
2441
|
-
const
|
|
2444
|
+
const wi = [
|
|
2442
2445
|
"small",
|
|
2443
2446
|
"span",
|
|
2444
2447
|
"strong",
|
|
@@ -2452,7 +2455,7 @@ const xi = [
|
|
|
2452
2455
|
"h6",
|
|
2453
2456
|
"blockquote",
|
|
2454
2457
|
"q"
|
|
2455
|
-
],
|
|
2458
|
+
], ji = ({
|
|
2456
2459
|
className: t = "",
|
|
2457
2460
|
content: e,
|
|
2458
2461
|
image: n,
|
|
@@ -2476,7 +2479,7 @@ const xi = [
|
|
|
2476
2479
|
if (typeof e[u] == "object") {
|
|
2477
2480
|
d[u] = e[u];
|
|
2478
2481
|
const { text: m, element: p } = e[u];
|
|
2479
|
-
if (p &&
|
|
2482
|
+
if (p && wi.includes(p.toLowerCase()))
|
|
2480
2483
|
return;
|
|
2481
2484
|
d[u] = {
|
|
2482
2485
|
text: m,
|
|
@@ -2525,8 +2528,8 @@ const xi = [
|
|
|
2525
2528
|
] })
|
|
2526
2529
|
}
|
|
2527
2530
|
);
|
|
2528
|
-
},
|
|
2529
|
-
const
|
|
2531
|
+
}, ql = De(ji);
|
|
2532
|
+
const Ul = ({
|
|
2530
2533
|
image: t,
|
|
2531
2534
|
variant: e = "default",
|
|
2532
2535
|
children: n,
|
|
@@ -2544,7 +2547,7 @@ const ql = ({
|
|
|
2544
2547
|
}
|
|
2545
2548
|
);
|
|
2546
2549
|
};
|
|
2547
|
-
const
|
|
2550
|
+
const ki = ({
|
|
2548
2551
|
alignImage: t = "left",
|
|
2549
2552
|
className: e,
|
|
2550
2553
|
content: n,
|
|
@@ -2579,8 +2582,8 @@ const ji = ({
|
|
|
2579
2582
|
}
|
|
2580
2583
|
)
|
|
2581
2584
|
] });
|
|
2582
|
-
},
|
|
2583
|
-
const
|
|
2585
|
+
}, Wl = De(ki);
|
|
2586
|
+
const zl = ({
|
|
2584
2587
|
variant: t = "primary",
|
|
2585
2588
|
button: e = null,
|
|
2586
2589
|
title: n,
|
|
@@ -2601,7 +2604,7 @@ const Wl = ({
|
|
|
2601
2604
|
children: e.text
|
|
2602
2605
|
}
|
|
2603
2606
|
)
|
|
2604
|
-
] }),
|
|
2607
|
+
] }), Ti = ({ showDevTools: t = !0, children: e }) => {
|
|
2605
2608
|
const n = new Ts({
|
|
2606
2609
|
// default options we would like on all queries can be overridden individually
|
|
2607
2610
|
defaultOptions: {
|
|
@@ -2618,15 +2621,15 @@ const Wl = ({
|
|
|
2618
2621
|
t && /* @__PURE__ */ a.jsx(Cs, { initialIsOpen: !1 })
|
|
2619
2622
|
] });
|
|
2620
2623
|
};
|
|
2621
|
-
var
|
|
2622
|
-
function
|
|
2624
|
+
var Ei = nn({ client: Dt });
|
|
2625
|
+
function Si(t) {
|
|
2623
2626
|
var e = t.children, n = t.client, r = t.apiKey, s = t.options, i = _t(function() {
|
|
2624
|
-
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 && (
|
|
2627
|
+
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 && (Dt.__loaded && console.warn("[PostHog.js] was already loaded elsewhere. This may cause issues."), Dt.init(r, s)), Dt);
|
|
2625
2628
|
}, [n, r]);
|
|
2626
|
-
return K.createElement(
|
|
2629
|
+
return K.createElement(Ei.Provider, { value: { client: i } }, e);
|
|
2627
2630
|
}
|
|
2628
|
-
const
|
|
2629
|
-
|
|
2631
|
+
const Ci = ({ children: t, user: e }) => e.isLoading ? null : process.env.REACT_APP_PUBLIC_POSTHOG_KEY ? /* @__PURE__ */ a.jsx(
|
|
2632
|
+
Si,
|
|
2630
2633
|
{
|
|
2631
2634
|
apiKey: atob(process.env.REACT_APP_PUBLIC_POSTHOG_KEY),
|
|
2632
2635
|
options: {
|
|
@@ -2644,7 +2647,7 @@ const Si = ({ children: t, user: e }) => e.isLoading ? null : process.env.REACT_
|
|
|
2644
2647
|
},
|
|
2645
2648
|
children: t
|
|
2646
2649
|
}
|
|
2647
|
-
) : /* @__PURE__ */ a.jsx(a.Fragment, { children: t }),
|
|
2650
|
+
) : /* @__PURE__ */ a.jsx(a.Fragment, { children: t }), $i = ({ children: t, locale: e, messages: n }) => {
|
|
2648
2651
|
const r = e || "en", s = {
|
|
2649
2652
|
...Xs[r],
|
|
2650
2653
|
...n || {}
|
|
@@ -2659,7 +2662,7 @@ const Si = ({ children: t, user: e }) => e.isLoading ? null : process.env.REACT_
|
|
|
2659
2662
|
function er() {
|
|
2660
2663
|
return Ee(Ie);
|
|
2661
2664
|
}
|
|
2662
|
-
const
|
|
2665
|
+
const Ni = ({ children: t, user: e }) => /* @__PURE__ */ a.jsx(Ie.Provider, { value: e, children: t }), Zl = ({ bootstrap: t, children: e, intl: n, showDevTools: r }) => {
|
|
2663
2666
|
const [s, i] = J({ isLoading: !0 }), o = (n == null ? void 0 : n.locale) || localStorage.getItem("language") || "en", [c, f] = J(o), l = (d) => {
|
|
2664
2667
|
localStorage.setItem("language", d), f(d);
|
|
2665
2668
|
};
|
|
@@ -2668,15 +2671,15 @@ const $i = ({ children: t, user: e }) => /* @__PURE__ */ a.jsx(Ie.Provider, { va
|
|
|
2668
2671
|
i({ ...d, isLoading: !1 }), ti(5e3);
|
|
2669
2672
|
}).catch(() => i({ isLoading: !1 }));
|
|
2670
2673
|
}, []), /* @__PURE__ */ a.jsx(ya.Provider, { value: { language: c, updateLanguage: l }, children: /* @__PURE__ */ a.jsx(
|
|
2671
|
-
|
|
2674
|
+
$i,
|
|
2672
2675
|
{
|
|
2673
2676
|
locale: c,
|
|
2674
2677
|
messages: n == null ? void 0 : n.messages,
|
|
2675
|
-
children: /* @__PURE__ */ a.jsx($s, { children: /* @__PURE__ */ a.jsx(
|
|
2678
|
+
children: /* @__PURE__ */ a.jsx($s, { children: /* @__PURE__ */ a.jsx(Ni, { user: s, children: /* @__PURE__ */ a.jsx(Ti, { showDevTools: r, children: /* @__PURE__ */ a.jsx(Ci, { user: s, children: e }) }) }) })
|
|
2676
2679
|
}
|
|
2677
2680
|
) });
|
|
2678
2681
|
};
|
|
2679
|
-
const
|
|
2682
|
+
const Pi = ({
|
|
2680
2683
|
styling: t = {},
|
|
2681
2684
|
progress: e = 0,
|
|
2682
2685
|
text: n = !1,
|
|
@@ -2702,8 +2705,8 @@ const Ni = ({
|
|
|
2702
2705
|
})
|
|
2703
2706
|
}
|
|
2704
2707
|
);
|
|
2705
|
-
}, _a =
|
|
2706
|
-
const vn = "loadingBlock_",
|
|
2708
|
+
}, _a = De(Pi);
|
|
2709
|
+
const vn = "loadingBlock_", Mi = ({ progress: t = 0, steps: e = !1, className: n = "" }) => {
|
|
2707
2710
|
const r = V();
|
|
2708
2711
|
e || (e = {
|
|
2709
2712
|
0: { text: r.formatMessage({ id: `${vn}loading` }) },
|
|
@@ -2731,7 +2734,7 @@ const vn = "loadingBlock_", Pi = ({ progress: t = 0, steps: e = !1, className: n
|
|
|
2731
2734
|
]
|
|
2732
2735
|
}
|
|
2733
2736
|
);
|
|
2734
|
-
},
|
|
2737
|
+
}, Hl = De(Mi);
|
|
2735
2738
|
const Se = ({ element: t = "div", className: e = "", ...n }) => /* @__PURE__ */ a.jsx(
|
|
2736
2739
|
Gn,
|
|
2737
2740
|
{
|
|
@@ -2852,7 +2855,7 @@ const Nr = 256, Ye = ({
|
|
|
2852
2855
|
country: t.location && t.location.country || "",
|
|
2853
2856
|
url: `/profiles/${t.id}`,
|
|
2854
2857
|
image: t.image && t.image.thumbnail
|
|
2855
|
-
},
|
|
2858
|
+
}, Fi = ({
|
|
2856
2859
|
role: t = "",
|
|
2857
2860
|
organisation: e = "",
|
|
2858
2861
|
country: n = "",
|
|
@@ -2877,7 +2880,7 @@ const tr = ({
|
|
|
2877
2880
|
c.name || (c.name = o.formatMessage({
|
|
2878
2881
|
id: `member_${typeof e == "string" ? e : "community"}`
|
|
2879
2882
|
}));
|
|
2880
|
-
const { name: f, url: l, image: d } = c, u =
|
|
2883
|
+
const { name: f, url: l, image: d } = c, u = Fi(c), m = n && n.createdAt ? Un(n.createdAt) : !1, p = n && n.createdAt ? ga(n.createdAt) : "";
|
|
2881
2884
|
return K.createElement(t, {
|
|
2882
2885
|
className: S("member text-medium", i),
|
|
2883
2886
|
children: /* @__PURE__ */ a.jsxs(
|
|
@@ -2920,49 +2923,50 @@ const Pr = {
|
|
|
2920
2923
|
showPlaceholders: !1
|
|
2921
2924
|
},
|
|
2922
2925
|
cutoff: c = 2,
|
|
2923
|
-
|
|
2924
|
-
|
|
2926
|
+
multipleText: f,
|
|
2927
|
+
className: l = "",
|
|
2928
|
+
...d
|
|
2925
2929
|
}) => {
|
|
2926
|
-
const
|
|
2930
|
+
const u = V();
|
|
2927
2931
|
return !n || n.length === 0 ? null : K.createElement(t, {
|
|
2928
|
-
...
|
|
2929
|
-
className: S("contributors",
|
|
2932
|
+
...d,
|
|
2933
|
+
className: S("contributors", l, s, { "has-gap": i }),
|
|
2930
2934
|
children: /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
|
|
2931
|
-
/* @__PURE__ */ a.jsx("ul", { children: n.map((
|
|
2932
|
-
let
|
|
2933
|
-
if (
|
|
2934
|
-
const { name:
|
|
2935
|
+
/* @__PURE__ */ a.jsx("ul", { children: n.map((m, p) => {
|
|
2936
|
+
let g, _ = "";
|
|
2937
|
+
if (p < c) {
|
|
2938
|
+
const { name: y = "", image: v = "" } = ka(m);
|
|
2935
2939
|
if (o)
|
|
2936
|
-
return /* @__PURE__ */ a.jsx(Se, { element: "li", className: "contributor" },
|
|
2937
|
-
|
|
2940
|
+
return /* @__PURE__ */ a.jsx(Se, { element: "li", className: "contributor" }, p);
|
|
2941
|
+
g = /* @__PURE__ */ a.jsx(
|
|
2938
2942
|
Ye,
|
|
2939
2943
|
{
|
|
2940
|
-
name:
|
|
2941
|
-
src:
|
|
2944
|
+
name: y,
|
|
2945
|
+
src: v,
|
|
2942
2946
|
width: Pr[s || "medium"],
|
|
2943
2947
|
height: Pr[s || "medium"]
|
|
2944
2948
|
}
|
|
2945
2949
|
);
|
|
2946
|
-
} else if (
|
|
2947
|
-
const
|
|
2948
|
-
|
|
2950
|
+
} else if (p === c) {
|
|
2951
|
+
const y = (e || n.length) - c;
|
|
2952
|
+
g = /* @__PURE__ */ a.jsxs(
|
|
2949
2953
|
"small",
|
|
2950
2954
|
{
|
|
2951
|
-
className: S({ "large-number":
|
|
2955
|
+
className: S({ "large-number": y > 99 }),
|
|
2952
2956
|
children: [
|
|
2953
2957
|
"+",
|
|
2954
|
-
ei(
|
|
2958
|
+
ei(y, 0)
|
|
2955
2959
|
]
|
|
2956
2960
|
}
|
|
2957
|
-
),
|
|
2961
|
+
), _ = "number-left";
|
|
2958
2962
|
}
|
|
2959
|
-
return
|
|
2963
|
+
return g ? /* @__PURE__ */ a.jsx("li", { className: S("contributor", _), children: g }, p) : null;
|
|
2960
2964
|
}) }),
|
|
2961
|
-
r && /* @__PURE__ */ a.jsx("span", { className: "label", children: typeof r == "string" ? r : n.length === 1 ? typeof n[0] == "string" ?
|
|
2965
|
+
r && /* @__PURE__ */ a.jsx("span", { className: "label", children: typeof r == "string" ? r : n.length === 1 ? typeof n[0] == "string" ? u.formatMessage({ id: `member_${n[0]}` }) : et(n[0].name || "", 20) : f || null })
|
|
2962
2966
|
] })
|
|
2963
2967
|
});
|
|
2964
2968
|
};
|
|
2965
|
-
const St = "emailHelperTextBox_",
|
|
2969
|
+
const St = "emailHelperTextBox_", Oi = ({
|
|
2966
2970
|
type: t,
|
|
2967
2971
|
email: e,
|
|
2968
2972
|
redirectPath: n,
|
|
@@ -3137,7 +3141,7 @@ const Qe = {
|
|
|
3137
3141
|
UP: "ArrowUp",
|
|
3138
3142
|
DOWN: "ArrowDown",
|
|
3139
3143
|
ENTER: "Enter"
|
|
3140
|
-
},
|
|
3144
|
+
}, Ai = 500, Di = ({
|
|
3141
3145
|
value: t,
|
|
3142
3146
|
placeholder: e,
|
|
3143
3147
|
functions: n = {
|
|
@@ -3161,7 +3165,7 @@ const Qe = {
|
|
|
3161
3165
|
e || (e = p({ id: "inputAutocomplete_placeholder" })), ae(() => {
|
|
3162
3166
|
const v = setTimeout(() => {
|
|
3163
3167
|
u || f((b) => ({ ...b, debouncedInput: i }));
|
|
3164
|
-
},
|
|
3168
|
+
}, Ai);
|
|
3165
3169
|
return () => {
|
|
3166
3170
|
clearTimeout(v);
|
|
3167
3171
|
};
|
|
@@ -3260,7 +3264,7 @@ const Ea = ({
|
|
|
3260
3264
|
y
|
|
3261
3265
|
);
|
|
3262
3266
|
};
|
|
3263
|
-
const
|
|
3267
|
+
const Ii = De(function({
|
|
3264
3268
|
direction: e = "down"
|
|
3265
3269
|
}) {
|
|
3266
3270
|
return /* @__PURE__ */ a.jsx(
|
|
@@ -3270,7 +3274,7 @@ const Ai = Ae(function({
|
|
|
3270
3274
|
}
|
|
3271
3275
|
);
|
|
3272
3276
|
});
|
|
3273
|
-
const
|
|
3277
|
+
const Li = ({
|
|
3274
3278
|
className: t,
|
|
3275
3279
|
options: e,
|
|
3276
3280
|
initialValue: n,
|
|
@@ -3286,18 +3290,18 @@ const Ii = ({
|
|
|
3286
3290
|
}) => {
|
|
3287
3291
|
const d = V(), [u, m] = J(!1), p = r || n, g = Array.isArray(p) ? [...p] : p ? [p] : [], [_, y] = J(g);
|
|
3288
3292
|
let v;
|
|
3289
|
-
Array.isArray(_) && _.length === 1 && typeof _[0] == "string" ? v = e && _ ? e.find((
|
|
3293
|
+
Array.isArray(_) && _.length === 1 && typeof _[0] == "string" ? v = e && _ ? e.find((R) => R.id === _[0]) : e ? e[0] : { id: "", label: "" } : Array.isArray(_) && _.length === 1 && typeof _[0] != "string" ? v = _[0] : v = { id: "", label: "" }, ae(() => {
|
|
3290
3294
|
y(g);
|
|
3291
3295
|
}, [r, n]);
|
|
3292
|
-
const { onChange: b, onMultiSelectSubmit: j, ...k } = s, x = (
|
|
3296
|
+
const { onChange: b, onMultiSelectSubmit: j, ...k } = s, x = (R) => {
|
|
3293
3297
|
if (c) {
|
|
3294
3298
|
let Z = [];
|
|
3295
|
-
_ != null && _.includes(
|
|
3299
|
+
_ != null && _.includes(R.id) ? Z = _.filter((M) => M !== R.id) : Z = [..._, R.id], y([...Z]), b && b([...Z]);
|
|
3296
3300
|
} else
|
|
3297
|
-
y([
|
|
3298
|
-
},
|
|
3299
|
-
if (
|
|
3300
|
-
const Z = (e == null ? void 0 : e.map((
|
|
3301
|
+
y([R]), b && b(R.id), m(!1);
|
|
3302
|
+
}, D = (R) => {
|
|
3303
|
+
if (R === "all") {
|
|
3304
|
+
const Z = (e == null ? void 0 : e.map((M) => M.id)) || [];
|
|
3301
3305
|
y(Z), b && b(Z);
|
|
3302
3306
|
} else
|
|
3303
3307
|
y([]), b && b([]);
|
|
@@ -3310,14 +3314,14 @@ const Ii = ({
|
|
|
3310
3314
|
"aria-expanded": u,
|
|
3311
3315
|
"aria-haspopup": "listbox",
|
|
3312
3316
|
"aria-controls": "dropdown-list",
|
|
3313
|
-
onClick: (
|
|
3314
|
-
|
|
3317
|
+
onClick: (R) => {
|
|
3318
|
+
R.preventDefault(), R.stopPropagation(), m(!u);
|
|
3315
3319
|
},
|
|
3316
3320
|
"data-testid": "dropdown-selector",
|
|
3317
3321
|
...k,
|
|
3318
3322
|
children: [
|
|
3319
3323
|
c ? `${o} · ${_.length}` : v.label,
|
|
3320
|
-
/* @__PURE__ */ a.jsx(
|
|
3324
|
+
/* @__PURE__ */ a.jsx(Ii, { direction: u ? "up" : "down" })
|
|
3321
3325
|
]
|
|
3322
3326
|
}
|
|
3323
3327
|
),
|
|
@@ -3325,14 +3329,14 @@ const Ii = ({
|
|
|
3325
3329
|
"select",
|
|
3326
3330
|
{
|
|
3327
3331
|
defaultValue: v.id,
|
|
3328
|
-
onChange: (
|
|
3329
|
-
|
|
3330
|
-
const Z = e && e.find((
|
|
3332
|
+
onChange: (R) => {
|
|
3333
|
+
R.preventDefault(), R.stopPropagation();
|
|
3334
|
+
const Z = e && e.find((M) => M.id === R.target.value);
|
|
3331
3335
|
x(Z);
|
|
3332
3336
|
},
|
|
3333
3337
|
hidden: !u,
|
|
3334
3338
|
...k,
|
|
3335
|
-
children: e == null ? void 0 : e.map((
|
|
3339
|
+
children: e == null ? void 0 : e.map((R) => /* @__PURE__ */ a.jsx("option", { value: R.id, children: R.label }, R.id))
|
|
3336
3340
|
}
|
|
3337
3341
|
),
|
|
3338
3342
|
/* @__PURE__ */ a.jsxs(
|
|
@@ -3351,7 +3355,7 @@ const Ii = ({
|
|
|
3351
3355
|
{
|
|
3352
3356
|
variant: "tertiary",
|
|
3353
3357
|
size: "small",
|
|
3354
|
-
onClick: () =>
|
|
3358
|
+
onClick: () => D("all"),
|
|
3355
3359
|
className: "gtm-trackable",
|
|
3356
3360
|
children: d.formatMessage({ id: "dropdown_menu_multiselect_all" })
|
|
3357
3361
|
}
|
|
@@ -3361,15 +3365,15 @@ const Ii = ({
|
|
|
3361
3365
|
{
|
|
3362
3366
|
variant: "tertiary",
|
|
3363
3367
|
size: "small",
|
|
3364
|
-
onClick: () =>
|
|
3368
|
+
onClick: () => D("none"),
|
|
3365
3369
|
className: "gtm-trackable",
|
|
3366
3370
|
children: d.formatMessage({ id: "dropdown_menu_multiselect_none" })
|
|
3367
3371
|
}
|
|
3368
3372
|
) })
|
|
3369
3373
|
] })
|
|
3370
3374
|
] }),
|
|
3371
|
-
/* @__PURE__ */ a.jsx("ul", { children: e == null ? void 0 : e.map((
|
|
3372
|
-
const Z =
|
|
3375
|
+
/* @__PURE__ */ a.jsx("ul", { children: e == null ? void 0 : e.map((R) => {
|
|
3376
|
+
const Z = R.id === v.id || (_ == null ? void 0 : _.includes(R)) || (_ == null ? void 0 : _.includes(R.id));
|
|
3373
3377
|
return /* @__PURE__ */ a.jsx("li", { "data-testid": "dropdown-options", children: /* @__PURE__ */ a.jsxs(
|
|
3374
3378
|
"button",
|
|
3375
3379
|
{
|
|
@@ -3377,20 +3381,20 @@ const Ii = ({
|
|
|
3377
3381
|
selected: Z,
|
|
3378
3382
|
"selected-single": Z && !c
|
|
3379
3383
|
}),
|
|
3380
|
-
"data-gtm-event-type": `${
|
|
3384
|
+
"data-gtm-event-type": `${R}-click`,
|
|
3381
3385
|
"data-gtm-event-context": i,
|
|
3382
|
-
onClick: (
|
|
3383
|
-
|
|
3386
|
+
onClick: (M) => {
|
|
3387
|
+
M.preventDefault(), M.stopPropagation(), x(R);
|
|
3384
3388
|
},
|
|
3385
3389
|
role: "menuitem",
|
|
3386
3390
|
"aria-current": Z,
|
|
3387
3391
|
"data-testid": Z ? "current-selection" : "",
|
|
3388
3392
|
children: [
|
|
3389
3393
|
c && /* @__PURE__ */ a.jsx("span", { className: "pretty-checkbox", "data-testid": "pretty-checkbox" }),
|
|
3390
|
-
/* @__PURE__ */ a.jsx("span", { className: S({ "menu-option-label": c }), children:
|
|
3394
|
+
/* @__PURE__ */ a.jsx("span", { className: S({ "menu-option-label": c }), children: R.label })
|
|
3391
3395
|
]
|
|
3392
3396
|
}
|
|
3393
|
-
) },
|
|
3397
|
+
) }, R.id);
|
|
3394
3398
|
}) })
|
|
3395
3399
|
] }),
|
|
3396
3400
|
(f == null ? void 0 : f.submitSection) && /* @__PURE__ */ a.jsx("p", { className: "submit", children: /* @__PURE__ */ a.jsx(
|
|
@@ -3415,7 +3419,7 @@ const Ii = ({
|
|
|
3415
3419
|
)
|
|
3416
3420
|
] });
|
|
3417
3421
|
};
|
|
3418
|
-
const
|
|
3422
|
+
const Bi = ({
|
|
3419
3423
|
className: t = "",
|
|
3420
3424
|
functions: e = { onChange: () => {
|
|
3421
3425
|
} },
|
|
@@ -3449,8 +3453,8 @@ const Li = ({
|
|
|
3449
3453
|
return;
|
|
3450
3454
|
let x;
|
|
3451
3455
|
if (i) {
|
|
3452
|
-
const
|
|
3453
|
-
Array.isArray(p) &&
|
|
3456
|
+
const D = p == null ? void 0 : p.indexOf(v);
|
|
3457
|
+
Array.isArray(p) && D >= 0 ? (x = p, x.splice(D, 1)) : (!p || p.length === 0 ? x = [] : x = p, x.push(v));
|
|
3454
3458
|
} else
|
|
3455
3459
|
x = g === v ? void 0 : v;
|
|
3456
3460
|
e.onChange(x);
|
|
@@ -3480,7 +3484,7 @@ const Li = ({
|
|
|
3480
3484
|
}
|
|
3481
3485
|
);
|
|
3482
3486
|
};
|
|
3483
|
-
const
|
|
3487
|
+
const qi = ({
|
|
3484
3488
|
inputRef: t,
|
|
3485
3489
|
type: e = "password",
|
|
3486
3490
|
gtm: { context: n } = { context: void 0 },
|
|
@@ -3517,11 +3521,11 @@ const Je = {
|
|
|
3517
3521
|
email: { component: ht },
|
|
3518
3522
|
textarea: { component: ht, props: { element: "textarea", rows: 4, cols: 10 } },
|
|
3519
3523
|
checkbox: { component: Ea },
|
|
3520
|
-
checkboxes: { component:
|
|
3521
|
-
select: { component:
|
|
3522
|
-
password: { component:
|
|
3524
|
+
checkboxes: { component: Bi, props: { multiSelect: !0 } },
|
|
3525
|
+
select: { component: Li },
|
|
3526
|
+
password: { component: qi },
|
|
3523
3527
|
autocomplete: { component: Di }
|
|
3524
|
-
},
|
|
3528
|
+
}, Ui = ({
|
|
3525
3529
|
id: t,
|
|
3526
3530
|
intlPath: e = !1,
|
|
3527
3531
|
className: n = "",
|
|
@@ -3611,7 +3615,7 @@ const Je = {
|
|
|
3611
3615
|
] }),
|
|
3612
3616
|
/* @__PURE__ */ a.jsx(b, {})
|
|
3613
3617
|
] });
|
|
3614
|
-
},
|
|
3618
|
+
}, Wi = (t, e) => {
|
|
3615
3619
|
const { type: n, payload: r } = e, s = t.errors ? pt(t.errors) : {}, i = t.values ? pt(t.values) : {};
|
|
3616
3620
|
switch (n) {
|
|
3617
3621
|
case "toggleSubmitting":
|
|
@@ -3758,17 +3762,17 @@ const rn = ({
|
|
|
3758
3762
|
},
|
|
3759
3763
|
...y
|
|
3760
3764
|
}) => {
|
|
3761
|
-
const { customOnSubmit: v, hideButton: b, ...j } = i, k = 40, x = V(),
|
|
3765
|
+
const { customOnSubmit: v, hideButton: b, ...j } = i, k = 40, x = V(), D = {};
|
|
3762
3766
|
t.length && t.forEach((I) => {
|
|
3763
3767
|
const z = I.id || I.name;
|
|
3764
|
-
z && (
|
|
3768
|
+
z && (D[z] = I.value || "");
|
|
3765
3769
|
});
|
|
3766
|
-
const [
|
|
3770
|
+
const [R, Z] = Yn(Wi, {
|
|
3767
3771
|
isSubmitting: !1,
|
|
3768
3772
|
formSubmitted: !1,
|
|
3769
3773
|
errors: {},
|
|
3770
|
-
values:
|
|
3771
|
-
}), { errors:
|
|
3774
|
+
values: D
|
|
3775
|
+
}), { errors: M, isSubmitting: O, formSubmitted: C, values: E } = R;
|
|
3772
3776
|
ae(() => {
|
|
3773
3777
|
f && C && (bn = setTimeout(() => {
|
|
3774
3778
|
Z({
|
|
@@ -3875,7 +3879,7 @@ const rn = ({
|
|
|
3875
3879
|
className: S("form", e),
|
|
3876
3880
|
ref: $,
|
|
3877
3881
|
children: [
|
|
3878
|
-
|
|
3882
|
+
M != null && M.general ? /* @__PURE__ */ a.jsx(
|
|
3879
3883
|
He,
|
|
3880
3884
|
{
|
|
3881
3885
|
variant: "error",
|
|
@@ -3893,13 +3897,13 @@ const rn = ({
|
|
|
3893
3897
|
return /* @__PURE__ */ a.jsx(T, { ...I.props || {} }, `component-${X}-${z}`);
|
|
3894
3898
|
const W = E ? E[X] : "";
|
|
3895
3899
|
return /* @__PURE__ */ a.jsx(
|
|
3896
|
-
|
|
3900
|
+
Ui,
|
|
3897
3901
|
{
|
|
3898
3902
|
intlPath: s,
|
|
3899
3903
|
...I,
|
|
3900
3904
|
showRequiredLabels: l,
|
|
3901
3905
|
value: W,
|
|
3902
|
-
error:
|
|
3906
|
+
error: M == null ? void 0 : M[X],
|
|
3903
3907
|
functions: {
|
|
3904
3908
|
...N,
|
|
3905
3909
|
onChange: (q) => {
|
|
@@ -3926,11 +3930,11 @@ const rn = ({
|
|
|
3926
3930
|
d && C && /* @__PURE__ */ a.jsx(Wt, { className: "success", children: typeof d == "string" ? d : x.formatMessage({ id: "form_success" }) })
|
|
3927
3931
|
] });
|
|
3928
3932
|
};
|
|
3929
|
-
const Ct = "passwordRules_", Sa = "isMoreThanEightCharacters", Ca = "includesNumberAndSymbol", $a = "includesLowerAndUppercase",
|
|
3933
|
+
const Ct = "passwordRules_", Sa = "isMoreThanEightCharacters", Ca = "includesNumberAndSymbol", $a = "includesLowerAndUppercase", zi = {
|
|
3930
3934
|
[Sa]: "8Characters",
|
|
3931
3935
|
[Ca]: "numberSymbol",
|
|
3932
3936
|
[$a]: "lowercaseUppercase"
|
|
3933
|
-
},
|
|
3937
|
+
}, Zi = ({
|
|
3934
3938
|
matchingRules: t = {
|
|
3935
3939
|
isMoreThanEightCharacters: !1,
|
|
3936
3940
|
includesNumberAndSymbol: !1,
|
|
@@ -3951,7 +3955,7 @@ const Ct = "passwordRules_", Sa = "isMoreThanEightCharacters", Ca = "includesNum
|
|
|
3951
3955
|
n.formatMessage({ id: `${Ct}rule_label` }),
|
|
3952
3956
|
" "
|
|
3953
3957
|
] }),
|
|
3954
|
-
/* @__PURE__ */ a.jsx("span", { children: n.formatMessage({ id: `${Ct}rule_${
|
|
3958
|
+
/* @__PURE__ */ a.jsx("span", { children: n.formatMessage({ id: `${Ct}rule_${zi[r]}` }) }),
|
|
3955
3959
|
!t[r] && /* @__PURE__ */ a.jsxs(be, { element: "strong", children: [
|
|
3956
3960
|
" ",
|
|
3957
3961
|
n.formatMessage({ id: `${Ct}notMet` })
|
|
@@ -3962,8 +3966,8 @@ const Ct = "passwordRules_", Sa = "isMoreThanEightCharacters", Ca = "includesNum
|
|
|
3962
3966
|
)
|
|
3963
3967
|
) })
|
|
3964
3968
|
] });
|
|
3965
|
-
},
|
|
3966
|
-
const
|
|
3969
|
+
}, Hi = De(Zi);
|
|
3970
|
+
const Vl = ({
|
|
3967
3971
|
text: t = {},
|
|
3968
3972
|
topRating: e = 5,
|
|
3969
3973
|
functions: {
|
|
@@ -4048,7 +4052,7 @@ const Hl = ({
|
|
|
4048
4052
|
}) })
|
|
4049
4053
|
] });
|
|
4050
4054
|
};
|
|
4051
|
-
const
|
|
4055
|
+
const Yl = ({
|
|
4052
4056
|
id: t = "form-toggle",
|
|
4053
4057
|
label: e,
|
|
4054
4058
|
options: n,
|
|
@@ -4107,7 +4111,7 @@ const Vl = ({
|
|
|
4107
4111
|
}
|
|
4108
4112
|
);
|
|
4109
4113
|
};
|
|
4110
|
-
function
|
|
4114
|
+
function Kl({ className: t = "", userId: e, userName: n, src: r, setUserImage: s, uploadImage: i }) {
|
|
4111
4115
|
const [o, c] = J(!1), [f, l] = J(!1), d = pe(null), u = async (m) => {
|
|
4112
4116
|
c(!0), l(!1);
|
|
4113
4117
|
try {
|
|
@@ -4158,7 +4162,7 @@ function Yl({ className: t = "", userId: e, userName: n, src: r, setUserImage: s
|
|
|
4158
4162
|
)
|
|
4159
4163
|
] });
|
|
4160
4164
|
}
|
|
4161
|
-
const
|
|
4165
|
+
const Vi = ({
|
|
4162
4166
|
gtm: t,
|
|
4163
4167
|
functions: { onSuccess: e = async () => {
|
|
4164
4168
|
}, onFailure: n = () => {
|
|
@@ -4206,7 +4210,7 @@ const Hi = ({
|
|
|
4206
4210
|
}
|
|
4207
4211
|
);
|
|
4208
4212
|
};
|
|
4209
|
-
const
|
|
4213
|
+
const Yi = ({
|
|
4210
4214
|
title: t,
|
|
4211
4215
|
label: e,
|
|
4212
4216
|
ctaMessage: n,
|
|
@@ -4248,7 +4252,7 @@ const Vi = ({
|
|
|
4248
4252
|
" ",
|
|
4249
4253
|
y({ id: "inviteForm_error" })
|
|
4250
4254
|
] }) }),
|
|
4251
|
-
/* @__PURE__ */ a.jsx(
|
|
4255
|
+
/* @__PURE__ */ a.jsx(Ae, {}),
|
|
4252
4256
|
/* @__PURE__ */ a.jsx("div", { className: "footer", children: g === "SUCCESS" ? /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
|
|
4253
4257
|
/* @__PURE__ */ a.jsx(se, { variant: "secondary", onClick: b, children: y({ id: "inviteForm_ctaSendMoreInvites" }) }),
|
|
4254
4258
|
/* @__PURE__ */ a.jsx(se, { onClick: j, children: y({ id: "inviteForm_ctaDone" }) })
|
|
@@ -4274,7 +4278,7 @@ const Vi = ({
|
|
|
4274
4278
|
u(k), p(!k.length);
|
|
4275
4279
|
},
|
|
4276
4280
|
autoFocus: !1,
|
|
4277
|
-
getLabel: (k, x,
|
|
4281
|
+
getLabel: (k, x, D) => /* @__PURE__ */ a.jsxs("div", { className: "email text-medium", children: [
|
|
4278
4282
|
/* @__PURE__ */ a.jsx("div", { "data-tag-item": !0, children: k }),
|
|
4279
4283
|
/* @__PURE__ */ a.jsx(
|
|
4280
4284
|
se,
|
|
@@ -4283,7 +4287,7 @@ const Vi = ({
|
|
|
4283
4287
|
size: "small",
|
|
4284
4288
|
icon: { icon: "close" },
|
|
4285
4289
|
onClick: () => {
|
|
4286
|
-
|
|
4290
|
+
D(x), p(!d.length);
|
|
4287
4291
|
},
|
|
4288
4292
|
className: "remove-email-button",
|
|
4289
4293
|
screenreaderText: y({ id: "overlay_close" })
|
|
@@ -4293,7 +4297,7 @@ const Vi = ({
|
|
|
4293
4297
|
}
|
|
4294
4298
|
)
|
|
4295
4299
|
] }),
|
|
4296
|
-
/* @__PURE__ */ a.jsx(
|
|
4300
|
+
/* @__PURE__ */ a.jsx(Ae, {}),
|
|
4297
4301
|
/* @__PURE__ */ a.jsx("fieldset", { className: "footer", children: /* @__PURE__ */ a.jsx(se, { className: "sendEmailsButton", disabled: m, children: n }) })
|
|
4298
4302
|
]
|
|
4299
4303
|
}
|
|
@@ -4303,7 +4307,7 @@ const Vi = ({
|
|
|
4303
4307
|
NEW_PASSWORD: "newPassword",
|
|
4304
4308
|
CONFIRMED_PASSWORD: "confirmedPassword",
|
|
4305
4309
|
CURRENT_PASSWORD: "oldPassword"
|
|
4306
|
-
},
|
|
4310
|
+
}, Gl = ({ functions: t, ...e }) => {
|
|
4307
4311
|
const { formatMessage: n } = V(), [r, s] = J(null), [i, o] = J(!1), [c, f] = J({
|
|
4308
4312
|
isMoreThanEightCharacters: !1,
|
|
4309
4313
|
includesNumberAndSymbol: !1,
|
|
@@ -4341,7 +4345,7 @@ const Vi = ({
|
|
|
4341
4345
|
label: n({ id: "passwordRules_currentPassword_label" }),
|
|
4342
4346
|
validation: yn(["required"])
|
|
4343
4347
|
}), i && u.push({
|
|
4344
|
-
component:
|
|
4348
|
+
component: Hi,
|
|
4345
4349
|
props: { matchingRules: c }
|
|
4346
4350
|
});
|
|
4347
4351
|
const m = {
|
|
@@ -4367,7 +4371,7 @@ const Vi = ({
|
|
|
4367
4371
|
r && /* @__PURE__ */ a.jsx(He, { variant: "error", text: r })
|
|
4368
4372
|
] });
|
|
4369
4373
|
};
|
|
4370
|
-
const
|
|
4374
|
+
const Ki = ({
|
|
4371
4375
|
id: t = "search",
|
|
4372
4376
|
className: e = "",
|
|
4373
4377
|
handleToggle: n = !1,
|
|
@@ -4434,7 +4438,7 @@ const Yi = ({
|
|
|
4434
4438
|
)
|
|
4435
4439
|
}
|
|
4436
4440
|
);
|
|
4437
|
-
},
|
|
4441
|
+
}, Mr = async ({ ref: t, validateEmail: e, dispatch: n }) => {
|
|
4438
4442
|
const r = /^(([^<>()[\]\\.,;:\s@"]+(\.[^<>()[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/;
|
|
4439
4443
|
if (!t.current.validity.valid || !r.test(t.current.value))
|
|
4440
4444
|
return n([{ type: "validFields.email", value: !1 }]);
|
|
@@ -4479,7 +4483,7 @@ const Yi = ({
|
|
|
4479
4483
|
},
|
|
4480
4484
|
{ type: "validFields.email", value: !0 }
|
|
4481
4485
|
]);
|
|
4482
|
-
},
|
|
4486
|
+
}, Gi = (t) => {
|
|
4483
4487
|
const e = {};
|
|
4484
4488
|
for (const n of t.entries())
|
|
4485
4489
|
e[n[0]] = n[1];
|
|
@@ -4495,7 +4499,7 @@ const Yi = ({
|
|
|
4495
4499
|
page: window.location.pathname,
|
|
4496
4500
|
"g-recaptcha-response": e["g-recaptcha-response"]
|
|
4497
4501
|
};
|
|
4498
|
-
},
|
|
4502
|
+
}, Qi = async ({
|
|
4499
4503
|
refs: t,
|
|
4500
4504
|
dataToSubmit: e,
|
|
4501
4505
|
createAccount: n,
|
|
@@ -4509,9 +4513,9 @@ const Yi = ({
|
|
|
4509
4513
|
t.hiddenValidation && t.hiddenValidation.current && t.hiddenValidation.current.click();
|
|
4510
4514
|
return;
|
|
4511
4515
|
}
|
|
4512
|
-
const o =
|
|
4516
|
+
const o = Gi(new FormData(t.form.current)), c = Object.assign(o, e);
|
|
4513
4517
|
await n(c), localStorage.setItem("email", o.email), r && r({ ...o, ...i.values }), s([{ type: "showSuccessMessage", value: !0 }]);
|
|
4514
|
-
},
|
|
4518
|
+
}, Ji = ({
|
|
4515
4519
|
shouldShow: t,
|
|
4516
4520
|
functions: { validateEmail: e, resendVerificationCode: n },
|
|
4517
4521
|
refs: r,
|
|
@@ -4546,7 +4550,7 @@ const Yi = ({
|
|
|
4546
4550
|
}),
|
|
4547
4551
|
functions: {
|
|
4548
4552
|
onBlur: () => {
|
|
4549
|
-
|
|
4553
|
+
Mr({ ref: r.email, validateEmail: e, dispatch: i });
|
|
4550
4554
|
},
|
|
4551
4555
|
onChange: (u, m) => {
|
|
4552
4556
|
m && m({
|
|
@@ -4561,7 +4565,7 @@ const Yi = ({
|
|
|
4561
4565
|
"data-testid": "signup-email-input"
|
|
4562
4566
|
},
|
|
4563
4567
|
{
|
|
4564
|
-
component:
|
|
4568
|
+
component: Oi,
|
|
4565
4569
|
props: {
|
|
4566
4570
|
email: f.email,
|
|
4567
4571
|
type: f.boxType,
|
|
@@ -4660,7 +4664,7 @@ const Yi = ({
|
|
|
4660
4664
|
s.validFields[p] !== r[p].current.validity.valid && (m.push({
|
|
4661
4665
|
type: `validFields.${p}`,
|
|
4662
4666
|
value: r[p].current.validity.valid
|
|
4663
|
-
}), p === "email" &&
|
|
4667
|
+
}), p === "email" && Mr({ ref: r.email, validateEmail: e, dispatch: i }));
|
|
4664
4668
|
}), m.length && i(m);
|
|
4665
4669
|
}
|
|
4666
4670
|
},
|
|
@@ -4668,7 +4672,7 @@ const Yi = ({
|
|
|
4668
4672
|
"data-testid": "signup-terms-checkbox"
|
|
4669
4673
|
}), d;
|
|
4670
4674
|
};
|
|
4671
|
-
const
|
|
4675
|
+
const Xi = ({ className: t = "" }) => /* @__PURE__ */ a.jsxs(
|
|
4672
4676
|
"div",
|
|
4673
4677
|
{
|
|
4674
4678
|
className: S("success-message", t),
|
|
@@ -4687,7 +4691,7 @@ const Ji = ({ className: t = "" }) => /* @__PURE__ */ a.jsxs(
|
|
|
4687
4691
|
]
|
|
4688
4692
|
}
|
|
4689
4693
|
);
|
|
4690
|
-
const
|
|
4694
|
+
const eo = {
|
|
4691
4695
|
validFields: {
|
|
4692
4696
|
name: !1,
|
|
4693
4697
|
email: !1,
|
|
@@ -4699,7 +4703,7 @@ const Xi = {
|
|
|
4699
4703
|
loadRecaptcha: !1,
|
|
4700
4704
|
showSuccessMessage: !1,
|
|
4701
4705
|
showError: !1
|
|
4702
|
-
},
|
|
4706
|
+
}, Ql = ({
|
|
4703
4707
|
className: t = "",
|
|
4704
4708
|
functions: e = {
|
|
4705
4709
|
validateEmail: () => Promise.resolve(),
|
|
@@ -4720,7 +4724,7 @@ const Xi = {
|
|
|
4720
4724
|
dataToSubmit: s = { ref: "sign-up-form" },
|
|
4721
4725
|
...i
|
|
4722
4726
|
}) => {
|
|
4723
|
-
const o = V(), [c, f] = Yn(ma,
|
|
4727
|
+
const o = V(), [c, f] = Yn(ma, eo), {
|
|
4724
4728
|
validFields: l,
|
|
4725
4729
|
emailDetails: d,
|
|
4726
4730
|
shouldManuallyApprove: u,
|
|
@@ -4751,7 +4755,7 @@ const Xi = {
|
|
|
4751
4755
|
i.showSuccessMessage || _("signup-this-session", "true", j);
|
|
4752
4756
|
}
|
|
4753
4757
|
}, [m]);
|
|
4754
|
-
const v = _t(() =>
|
|
4758
|
+
const v = _t(() => Ji({
|
|
4755
4759
|
shouldShow: n,
|
|
4756
4760
|
functions: e,
|
|
4757
4761
|
refs: y,
|
|
@@ -4760,7 +4764,7 @@ const Xi = {
|
|
|
4760
4764
|
dataToSubmit: s,
|
|
4761
4765
|
intl: o
|
|
4762
4766
|
}), [s, e, o, y, n, c]), b = u ? !Object.values(l).every((j) => j === !0) : !l.name || !l.email || ["exists", "pending", "verify"].includes(d.boxType);
|
|
4763
|
-
return n.successMessage && m ? /* @__PURE__ */ a.jsx(
|
|
4767
|
+
return n.successMessage && m ? /* @__PURE__ */ a.jsx(Xi, { className: t }) : /* @__PURE__ */ a.jsxs(
|
|
4764
4768
|
"fieldset",
|
|
4765
4769
|
{
|
|
4766
4770
|
className: S("signup-form-fieldset", t),
|
|
@@ -4800,7 +4804,7 @@ const Xi = {
|
|
|
4800
4804
|
},
|
|
4801
4805
|
functions: {
|
|
4802
4806
|
onSuccess: async () => {
|
|
4803
|
-
|
|
4807
|
+
Qi({
|
|
4804
4808
|
refs: y,
|
|
4805
4809
|
dataToSubmit: s,
|
|
4806
4810
|
createAccount: e.createAccount,
|
|
@@ -4845,16 +4849,16 @@ var Zn = { exports: {} }, $t = { exports: {} }, de = {};
|
|
|
4845
4849
|
* This source code is licensed under the MIT license found in the
|
|
4846
4850
|
* LICENSE file in the root directory of this source tree.
|
|
4847
4851
|
*/
|
|
4848
|
-
var
|
|
4849
|
-
function
|
|
4850
|
-
if (
|
|
4852
|
+
var Rr;
|
|
4853
|
+
function to() {
|
|
4854
|
+
if (Rr)
|
|
4851
4855
|
return de;
|
|
4852
|
-
|
|
4856
|
+
Rr = 1;
|
|
4853
4857
|
var t = typeof Symbol == "function" && Symbol.for, e = t ? Symbol.for("react.element") : 60103, n = t ? Symbol.for("react.portal") : 60106, r = t ? Symbol.for("react.fragment") : 60107, s = t ? Symbol.for("react.strict_mode") : 60108, i = t ? Symbol.for("react.profiler") : 60114, o = t ? Symbol.for("react.provider") : 60109, c = t ? Symbol.for("react.context") : 60110, f = t ? Symbol.for("react.async_mode") : 60111, l = t ? Symbol.for("react.concurrent_mode") : 60111, d = t ? Symbol.for("react.forward_ref") : 60112, u = t ? Symbol.for("react.suspense") : 60113, m = t ? Symbol.for("react.suspense_list") : 60120, p = t ? Symbol.for("react.memo") : 60115, g = t ? Symbol.for("react.lazy") : 60116, _ = t ? Symbol.for("react.block") : 60121, y = t ? Symbol.for("react.fundamental") : 60117, v = t ? Symbol.for("react.responder") : 60118, b = t ? Symbol.for("react.scope") : 60119;
|
|
4854
4858
|
function j(x) {
|
|
4855
4859
|
if (typeof x == "object" && x !== null) {
|
|
4856
|
-
var
|
|
4857
|
-
switch (
|
|
4860
|
+
var D = x.$$typeof;
|
|
4861
|
+
switch (D) {
|
|
4858
4862
|
case e:
|
|
4859
4863
|
switch (x = x.type, x) {
|
|
4860
4864
|
case f:
|
|
@@ -4873,11 +4877,11 @@ function eo() {
|
|
|
4873
4877
|
case o:
|
|
4874
4878
|
return x;
|
|
4875
4879
|
default:
|
|
4876
|
-
return
|
|
4880
|
+
return D;
|
|
4877
4881
|
}
|
|
4878
4882
|
}
|
|
4879
4883
|
case n:
|
|
4880
|
-
return
|
|
4884
|
+
return D;
|
|
4881
4885
|
}
|
|
4882
4886
|
}
|
|
4883
4887
|
}
|
|
@@ -4922,19 +4926,19 @@ var ue = {};
|
|
|
4922
4926
|
* LICENSE file in the root directory of this source tree.
|
|
4923
4927
|
*/
|
|
4924
4928
|
var Fr;
|
|
4925
|
-
function
|
|
4929
|
+
function no() {
|
|
4926
4930
|
return Fr || (Fr = 1, process.env.NODE_ENV !== "production" && function() {
|
|
4927
4931
|
var t = typeof Symbol == "function" && Symbol.for, e = t ? Symbol.for("react.element") : 60103, n = t ? Symbol.for("react.portal") : 60106, r = t ? Symbol.for("react.fragment") : 60107, s = t ? Symbol.for("react.strict_mode") : 60108, i = t ? Symbol.for("react.profiler") : 60114, o = t ? Symbol.for("react.provider") : 60109, c = t ? Symbol.for("react.context") : 60110, f = t ? Symbol.for("react.async_mode") : 60111, l = t ? Symbol.for("react.concurrent_mode") : 60111, d = t ? Symbol.for("react.forward_ref") : 60112, u = t ? Symbol.for("react.suspense") : 60113, m = t ? Symbol.for("react.suspense_list") : 60120, p = t ? Symbol.for("react.memo") : 60115, g = t ? Symbol.for("react.lazy") : 60116, _ = t ? Symbol.for("react.block") : 60121, y = t ? Symbol.for("react.fundamental") : 60117, v = t ? Symbol.for("react.responder") : 60118, b = t ? Symbol.for("react.scope") : 60119;
|
|
4928
|
-
function j(
|
|
4929
|
-
return typeof
|
|
4930
|
-
|
|
4932
|
+
function j(A) {
|
|
4933
|
+
return typeof A == "string" || typeof A == "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
|
|
4934
|
+
A === r || A === l || A === i || A === s || A === u || A === m || typeof A == "object" && A !== null && (A.$$typeof === g || A.$$typeof === p || A.$$typeof === o || A.$$typeof === c || A.$$typeof === d || A.$$typeof === y || A.$$typeof === v || A.$$typeof === b || A.$$typeof === _);
|
|
4931
4935
|
}
|
|
4932
|
-
function k(
|
|
4933
|
-
if (typeof
|
|
4934
|
-
var ve =
|
|
4936
|
+
function k(A) {
|
|
4937
|
+
if (typeof A == "object" && A !== null) {
|
|
4938
|
+
var ve = A.$$typeof;
|
|
4935
4939
|
switch (ve) {
|
|
4936
4940
|
case e:
|
|
4937
|
-
var Ne =
|
|
4941
|
+
var Ne = A.type;
|
|
4938
4942
|
switch (Ne) {
|
|
4939
4943
|
case f:
|
|
4940
4944
|
case l:
|
|
@@ -4961,63 +4965,63 @@ function to() {
|
|
|
4961
4965
|
}
|
|
4962
4966
|
}
|
|
4963
4967
|
}
|
|
4964
|
-
var x = f,
|
|
4965
|
-
function X(
|
|
4966
|
-
return z || (z = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")), T(
|
|
4968
|
+
var x = f, D = l, R = c, Z = o, M = e, O = d, C = r, E = g, w = p, $ = n, L = i, U = s, I = u, z = !1;
|
|
4969
|
+
function X(A) {
|
|
4970
|
+
return z || (z = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")), T(A) || k(A) === f;
|
|
4967
4971
|
}
|
|
4968
|
-
function T(
|
|
4969
|
-
return k(
|
|
4972
|
+
function T(A) {
|
|
4973
|
+
return k(A) === l;
|
|
4970
4974
|
}
|
|
4971
|
-
function N(
|
|
4972
|
-
return k(
|
|
4975
|
+
function N(A) {
|
|
4976
|
+
return k(A) === c;
|
|
4973
4977
|
}
|
|
4974
|
-
function W(
|
|
4975
|
-
return k(
|
|
4978
|
+
function W(A) {
|
|
4979
|
+
return k(A) === o;
|
|
4976
4980
|
}
|
|
4977
|
-
function q(
|
|
4978
|
-
return typeof
|
|
4981
|
+
function q(A) {
|
|
4982
|
+
return typeof A == "object" && A !== null && A.$$typeof === e;
|
|
4979
4983
|
}
|
|
4980
|
-
function H(
|
|
4981
|
-
return k(
|
|
4984
|
+
function H(A) {
|
|
4985
|
+
return k(A) === d;
|
|
4982
4986
|
}
|
|
4983
|
-
function te(
|
|
4984
|
-
return k(
|
|
4987
|
+
function te(A) {
|
|
4988
|
+
return k(A) === r;
|
|
4985
4989
|
}
|
|
4986
|
-
function G(
|
|
4987
|
-
return k(
|
|
4990
|
+
function G(A) {
|
|
4991
|
+
return k(A) === g;
|
|
4988
4992
|
}
|
|
4989
|
-
function Y(
|
|
4990
|
-
return k(
|
|
4993
|
+
function Y(A) {
|
|
4994
|
+
return k(A) === p;
|
|
4991
4995
|
}
|
|
4992
|
-
function ee(
|
|
4993
|
-
return k(
|
|
4996
|
+
function ee(A) {
|
|
4997
|
+
return k(A) === n;
|
|
4994
4998
|
}
|
|
4995
|
-
function re(
|
|
4996
|
-
return k(
|
|
4999
|
+
function re(A) {
|
|
5000
|
+
return k(A) === i;
|
|
4997
5001
|
}
|
|
4998
|
-
function F(
|
|
4999
|
-
return k(
|
|
5002
|
+
function F(A) {
|
|
5003
|
+
return k(A) === s;
|
|
5000
5004
|
}
|
|
5001
|
-
function oe(
|
|
5002
|
-
return k(
|
|
5005
|
+
function oe(A) {
|
|
5006
|
+
return k(A) === u;
|
|
5003
5007
|
}
|
|
5004
|
-
ue.AsyncMode = x, ue.ConcurrentMode =
|
|
5008
|
+
ue.AsyncMode = x, ue.ConcurrentMode = D, ue.ContextConsumer = R, ue.ContextProvider = Z, ue.Element = M, ue.ForwardRef = O, ue.Fragment = C, ue.Lazy = E, ue.Memo = w, ue.Portal = $, ue.Profiler = L, ue.StrictMode = U, ue.Suspense = I, ue.isAsyncMode = X, ue.isConcurrentMode = T, ue.isContextConsumer = N, ue.isContextProvider = W, ue.isElement = q, ue.isForwardRef = H, ue.isFragment = te, ue.isLazy = G, ue.isMemo = Y, ue.isPortal = ee, ue.isProfiler = re, ue.isStrictMode = F, ue.isSuspense = oe, ue.isValidElementType = j, ue.typeOf = k;
|
|
5005
5009
|
}()), ue;
|
|
5006
5010
|
}
|
|
5007
5011
|
var Or;
|
|
5008
5012
|
function Na() {
|
|
5009
|
-
return Or || (Or = 1, process.env.NODE_ENV === "production" ? $t.exports =
|
|
5013
|
+
return Or || (Or = 1, process.env.NODE_ENV === "production" ? $t.exports = to() : $t.exports = no()), $t.exports;
|
|
5010
5014
|
}
|
|
5011
5015
|
/*
|
|
5012
5016
|
object-assign
|
|
5013
5017
|
(c) Sindre Sorhus
|
|
5014
5018
|
@license MIT
|
|
5015
5019
|
*/
|
|
5016
|
-
var _n,
|
|
5017
|
-
function
|
|
5018
|
-
if (
|
|
5020
|
+
var _n, Ar;
|
|
5021
|
+
function ro() {
|
|
5022
|
+
if (Ar)
|
|
5019
5023
|
return _n;
|
|
5020
|
-
|
|
5024
|
+
Ar = 1;
|
|
5021
5025
|
var t = Object.getOwnPropertySymbols, e = Object.prototype.hasOwnProperty, n = Object.prototype.propertyIsEnumerable;
|
|
5022
5026
|
function r(i) {
|
|
5023
5027
|
if (i == null)
|
|
@@ -5060,11 +5064,11 @@ function no() {
|
|
|
5060
5064
|
return f;
|
|
5061
5065
|
}, _n;
|
|
5062
5066
|
}
|
|
5063
|
-
var xn,
|
|
5067
|
+
var xn, Dr;
|
|
5064
5068
|
function nr() {
|
|
5065
|
-
if (
|
|
5069
|
+
if (Dr)
|
|
5066
5070
|
return xn;
|
|
5067
|
-
|
|
5071
|
+
Dr = 1;
|
|
5068
5072
|
var t = "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";
|
|
5069
5073
|
return xn = t, xn;
|
|
5070
5074
|
}
|
|
@@ -5073,7 +5077,7 @@ function Pa() {
|
|
|
5073
5077
|
return Ir || (Ir = 1, wn = Function.call.bind(Object.prototype.hasOwnProperty)), wn;
|
|
5074
5078
|
}
|
|
5075
5079
|
var jn, Lr;
|
|
5076
|
-
function
|
|
5080
|
+
function ao() {
|
|
5077
5081
|
if (Lr)
|
|
5078
5082
|
return jn;
|
|
5079
5083
|
Lr = 1;
|
|
@@ -5123,11 +5127,11 @@ function ro() {
|
|
|
5123
5127
|
}, jn = s, jn;
|
|
5124
5128
|
}
|
|
5125
5129
|
var kn, Br;
|
|
5126
|
-
function
|
|
5130
|
+
function so() {
|
|
5127
5131
|
if (Br)
|
|
5128
5132
|
return kn;
|
|
5129
5133
|
Br = 1;
|
|
5130
|
-
var t = Na(), e =
|
|
5134
|
+
var t = Na(), e = ro(), n = nr(), r = Pa(), s = ao(), i = function() {
|
|
5131
5135
|
};
|
|
5132
5136
|
process.env.NODE_ENV !== "production" && (i = function(c) {
|
|
5133
5137
|
var f = "Warning: " + c;
|
|
@@ -5160,11 +5164,11 @@ function ao() {
|
|
|
5160
5164
|
arrayOf: j,
|
|
5161
5165
|
element: k(),
|
|
5162
5166
|
elementType: x(),
|
|
5163
|
-
instanceOf:
|
|
5167
|
+
instanceOf: D,
|
|
5164
5168
|
node: O(),
|
|
5165
5169
|
objectOf: Z,
|
|
5166
|
-
oneOf:
|
|
5167
|
-
oneOfType:
|
|
5170
|
+
oneOf: R,
|
|
5171
|
+
oneOfType: M,
|
|
5168
5172
|
shape: E,
|
|
5169
5173
|
exact: w
|
|
5170
5174
|
};
|
|
@@ -5181,10 +5185,10 @@ function ao() {
|
|
|
5181
5185
|
function q(te, G, Y, ee, re, F, oe) {
|
|
5182
5186
|
if (ee = ee || m, F = F || Y, oe !== n) {
|
|
5183
5187
|
if (f) {
|
|
5184
|
-
var
|
|
5188
|
+
var A = new Error(
|
|
5185
5189
|
"Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types"
|
|
5186
5190
|
);
|
|
5187
|
-
throw
|
|
5191
|
+
throw A.name = "Invariant Violation", A;
|
|
5188
5192
|
} else if (process.env.NODE_ENV !== "production" && typeof console < "u") {
|
|
5189
5193
|
var ve = ee + ":" + Y;
|
|
5190
5194
|
!N[ve] && // Avoid spamming the console because they are often not actionable except for lib authors
|
|
@@ -5255,7 +5259,7 @@ function ao() {
|
|
|
5255
5259
|
}
|
|
5256
5260
|
return y(T);
|
|
5257
5261
|
}
|
|
5258
|
-
function
|
|
5262
|
+
function D(T) {
|
|
5259
5263
|
function N(W, q, H, te, G) {
|
|
5260
5264
|
if (!(W[q] instanceof T)) {
|
|
5261
5265
|
var Y = T.name || m, ee = X(W[q]);
|
|
@@ -5265,7 +5269,7 @@ function ao() {
|
|
|
5265
5269
|
}
|
|
5266
5270
|
return y(N);
|
|
5267
5271
|
}
|
|
5268
|
-
function
|
|
5272
|
+
function R(T) {
|
|
5269
5273
|
if (!Array.isArray(T))
|
|
5270
5274
|
return process.env.NODE_ENV !== "production" && (arguments.length > 1 ? i(
|
|
5271
5275
|
"Invalid arguments supplied to oneOf, expected an array, got " + arguments.length + " arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."
|
|
@@ -5274,9 +5278,9 @@ function ao() {
|
|
|
5274
5278
|
for (var Y = W[q], ee = 0; ee < T.length; ee++)
|
|
5275
5279
|
if (g(Y, T[ee]))
|
|
5276
5280
|
return null;
|
|
5277
|
-
var re = JSON.stringify(T, function(oe,
|
|
5278
|
-
var ve = I(
|
|
5279
|
-
return ve === "symbol" ? String(
|
|
5281
|
+
var re = JSON.stringify(T, function(oe, A) {
|
|
5282
|
+
var ve = I(A);
|
|
5283
|
+
return ve === "symbol" ? String(A) : A;
|
|
5280
5284
|
});
|
|
5281
5285
|
return new _("Invalid " + te + " `" + G + "` of value `" + String(Y) + "` " + ("supplied to `" + H + "`, expected one of " + re + "."));
|
|
5282
5286
|
}
|
|
@@ -5299,7 +5303,7 @@ function ao() {
|
|
|
5299
5303
|
}
|
|
5300
5304
|
return y(N);
|
|
5301
5305
|
}
|
|
5302
|
-
function
|
|
5306
|
+
function M(T) {
|
|
5303
5307
|
if (!Array.isArray(T))
|
|
5304
5308
|
return process.env.NODE_ENV !== "production" && i("Invalid argument supplied to oneOfType, expected an instance of array."), o;
|
|
5305
5309
|
for (var N = 0; N < T.length; N++) {
|
|
@@ -5311,10 +5315,10 @@ function ao() {
|
|
|
5311
5315
|
}
|
|
5312
5316
|
function q(H, te, G, Y, ee) {
|
|
5313
5317
|
for (var re = [], F = 0; F < T.length; F++) {
|
|
5314
|
-
var oe = T[F],
|
|
5315
|
-
if (
|
|
5318
|
+
var oe = T[F], A = oe(H, te, G, Y, ee, n);
|
|
5319
|
+
if (A == null)
|
|
5316
5320
|
return null;
|
|
5317
|
-
|
|
5321
|
+
A.data && r(A.data, "expectedType") && re.push(A.data.expectedType);
|
|
5318
5322
|
}
|
|
5319
5323
|
var ve = re.length > 0 ? ", expected one of type [" + re.join(", ") + "]" : "";
|
|
5320
5324
|
return new _("Invalid " + Y + " `" + ee + "` supplied to " + ("`" + G + "`" + ve + "."));
|
|
@@ -5364,9 +5368,9 @@ function ao() {
|
|
|
5364
5368
|
"Invalid " + te + " `" + G + "` key `" + F + "` supplied to `" + H + "`.\nBad object: " + JSON.stringify(W[q], null, " ") + `
|
|
5365
5369
|
Valid keys: ` + JSON.stringify(Object.keys(T), null, " ")
|
|
5366
5370
|
);
|
|
5367
|
-
var
|
|
5368
|
-
if (
|
|
5369
|
-
return
|
|
5371
|
+
var A = oe(Y, F, H, te, G + "." + F, n);
|
|
5372
|
+
if (A)
|
|
5373
|
+
return A;
|
|
5370
5374
|
}
|
|
5371
5375
|
return null;
|
|
5372
5376
|
}
|
|
@@ -5445,7 +5449,7 @@ Valid keys: ` + JSON.stringify(Object.keys(T), null, " ")
|
|
|
5445
5449
|
}, kn;
|
|
5446
5450
|
}
|
|
5447
5451
|
var Tn, qr;
|
|
5448
|
-
function
|
|
5452
|
+
function io() {
|
|
5449
5453
|
if (qr)
|
|
5450
5454
|
return Tn;
|
|
5451
5455
|
qr = 1;
|
|
@@ -5494,17 +5498,17 @@ function so() {
|
|
|
5494
5498
|
}, Tn;
|
|
5495
5499
|
}
|
|
5496
5500
|
if (process.env.NODE_ENV !== "production") {
|
|
5497
|
-
var
|
|
5498
|
-
Zn.exports =
|
|
5501
|
+
var oo = Na(), co = !0;
|
|
5502
|
+
Zn.exports = so()(oo.isElement, co);
|
|
5499
5503
|
} else
|
|
5500
|
-
Zn.exports =
|
|
5501
|
-
var
|
|
5504
|
+
Zn.exports = io()();
|
|
5505
|
+
var lo = Zn.exports;
|
|
5502
5506
|
/*!
|
|
5503
5507
|
* tabbable 6.2.0
|
|
5504
5508
|
* @license MIT, https://github.com/focus-trap/tabbable/blob/master/LICENSE
|
|
5505
5509
|
*/
|
|
5506
|
-
var
|
|
5507
|
-
} : Element.prototype.matches || Element.prototype.msMatchesSelector || Element.prototype.webkitMatchesSelector, Zt = !
|
|
5510
|
+
var Ma = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])", "a[href]:not([inert])", "button:not([inert])", "[tabindex]:not(slot):not([inert])", "audio[controls]:not([inert])", "video[controls]:not([inert])", '[contenteditable]:not([contenteditable="false"]):not([inert])', "details>summary:first-of-type:not([inert])", "details:not([inert])"], zt = /* @__PURE__ */ Ma.join(","), Ra = typeof Element > "u", Ze = Ra ? function() {
|
|
5511
|
+
} : Element.prototype.matches || Element.prototype.msMatchesSelector || Element.prototype.webkitMatchesSelector, Zt = !Ra && Element.prototype.getRootNode ? function(t) {
|
|
5508
5512
|
var e;
|
|
5509
5513
|
return t == null || (e = t.getRootNode) === null || e === void 0 ? void 0 : e.call(t);
|
|
5510
5514
|
} : function(t) {
|
|
@@ -5514,7 +5518,7 @@ var Ra = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])",
|
|
|
5514
5518
|
n === void 0 && (n = !0);
|
|
5515
5519
|
var s = e == null || (r = e.getAttribute) === null || r === void 0 ? void 0 : r.call(e, "inert"), i = s === "" || s === "true", o = i || n && e && t(e.parentNode);
|
|
5516
5520
|
return o;
|
|
5517
|
-
},
|
|
5521
|
+
}, uo = function(e) {
|
|
5518
5522
|
var n, r = e == null || (n = e.getAttribute) === null || n === void 0 ? void 0 : n.call(e, "contenteditable");
|
|
5519
5523
|
return r === "" || r === "true";
|
|
5520
5524
|
}, Fa = function(e, n, r) {
|
|
@@ -5548,31 +5552,31 @@ var Ra = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])",
|
|
|
5548
5552
|
}
|
|
5549
5553
|
}
|
|
5550
5554
|
return s;
|
|
5551
|
-
},
|
|
5555
|
+
}, Aa = function(e) {
|
|
5552
5556
|
return !isNaN(parseInt(e.getAttribute("tabindex"), 10));
|
|
5553
5557
|
}, Le = function(e) {
|
|
5554
5558
|
if (!e)
|
|
5555
5559
|
throw new Error("No node provided");
|
|
5556
|
-
return e.tabIndex < 0 && (/^(AUDIO|VIDEO|DETAILS)$/.test(e.tagName) ||
|
|
5557
|
-
}, uo = function(e, n) {
|
|
5558
|
-
var r = Le(e);
|
|
5559
|
-
return r < 0 && n && !Da(e) ? 0 : r;
|
|
5560
|
+
return e.tabIndex < 0 && (/^(AUDIO|VIDEO|DETAILS)$/.test(e.tagName) || uo(e)) && !Aa(e) ? 0 : e.tabIndex;
|
|
5560
5561
|
}, fo = function(e, n) {
|
|
5562
|
+
var r = Le(e);
|
|
5563
|
+
return r < 0 && n && !Aa(e) ? 0 : r;
|
|
5564
|
+
}, mo = function(e, n) {
|
|
5561
5565
|
return e.tabIndex === n.tabIndex ? e.documentOrder - n.documentOrder : e.tabIndex - n.tabIndex;
|
|
5562
|
-
},
|
|
5566
|
+
}, Da = function(e) {
|
|
5563
5567
|
return e.tagName === "INPUT";
|
|
5564
|
-
}, mo = function(e) {
|
|
5565
|
-
return Aa(e) && e.type === "hidden";
|
|
5566
5568
|
}, po = function(e) {
|
|
5569
|
+
return Da(e) && e.type === "hidden";
|
|
5570
|
+
}, ho = function(e) {
|
|
5567
5571
|
var n = e.tagName === "DETAILS" && Array.prototype.slice.apply(e.children).some(function(r) {
|
|
5568
5572
|
return r.tagName === "SUMMARY";
|
|
5569
5573
|
});
|
|
5570
5574
|
return n;
|
|
5571
|
-
},
|
|
5575
|
+
}, go = function(e, n) {
|
|
5572
5576
|
for (var r = 0; r < e.length; r++)
|
|
5573
5577
|
if (e[r].checked && e[r].form === n)
|
|
5574
5578
|
return e[r];
|
|
5575
|
-
},
|
|
5579
|
+
}, vo = function(e) {
|
|
5576
5580
|
if (!e.name)
|
|
5577
5581
|
return !0;
|
|
5578
5582
|
var n = e.form || Zt(e), r = function(c) {
|
|
@@ -5586,13 +5590,13 @@ var Ra = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])",
|
|
|
5586
5590
|
} catch (o) {
|
|
5587
5591
|
return console.error("Looks like you have a radio button with a name attribute containing invalid CSS selector characters and need the CSS.escape polyfill: %s", o.message), !1;
|
|
5588
5592
|
}
|
|
5589
|
-
var i =
|
|
5593
|
+
var i = go(s, e.form);
|
|
5590
5594
|
return !i || i === e;
|
|
5591
|
-
}, vo = function(e) {
|
|
5592
|
-
return Aa(e) && e.type === "radio";
|
|
5593
5595
|
}, bo = function(e) {
|
|
5594
|
-
return
|
|
5596
|
+
return Da(e) && e.type === "radio";
|
|
5595
5597
|
}, yo = function(e) {
|
|
5598
|
+
return bo(e) && !vo(e);
|
|
5599
|
+
}, _o = function(e) {
|
|
5596
5600
|
var n, r = e && Zt(e), s = (n = r) === null || n === void 0 ? void 0 : n.host, i = !1;
|
|
5597
5601
|
if (r && r !== e) {
|
|
5598
5602
|
var o, c, f;
|
|
@@ -5605,7 +5609,7 @@ var Ra = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])",
|
|
|
5605
5609
|
}, Ur = function(e) {
|
|
5606
5610
|
var n = e.getBoundingClientRect(), r = n.width, s = n.height;
|
|
5607
5611
|
return r === 0 && s === 0;
|
|
5608
|
-
},
|
|
5612
|
+
}, xo = function(e, n) {
|
|
5609
5613
|
var r = n.displayCheck, s = n.getShadowRoot;
|
|
5610
5614
|
if (getComputedStyle(e).visibility === "hidden")
|
|
5611
5615
|
return !0;
|
|
@@ -5622,14 +5626,14 @@ var Ra = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])",
|
|
|
5622
5626
|
}
|
|
5623
5627
|
e = c;
|
|
5624
5628
|
}
|
|
5625
|
-
if (
|
|
5629
|
+
if (_o(e))
|
|
5626
5630
|
return !e.getClientRects().length;
|
|
5627
5631
|
if (r !== "legacy-full")
|
|
5628
5632
|
return !0;
|
|
5629
5633
|
} else if (r === "non-zero-area")
|
|
5630
5634
|
return Ur(e);
|
|
5631
5635
|
return !1;
|
|
5632
|
-
},
|
|
5636
|
+
}, wo = function(e) {
|
|
5633
5637
|
if (/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(e.tagName))
|
|
5634
5638
|
for (var n = e.parentElement; n; ) {
|
|
5635
5639
|
if (n.tagName === "FIELDSET" && n.disabled) {
|
|
@@ -5647,17 +5651,17 @@ var Ra = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])",
|
|
|
5647
5651
|
return !(n.disabled || // we must do an inert look up to filter out any elements inside an inert ancestor
|
|
5648
5652
|
// because we're limited in the type of selectors we can use in JSDom (see related
|
|
5649
5653
|
// note related to `candidateSelectors`)
|
|
5650
|
-
Ht(n) ||
|
|
5651
|
-
|
|
5654
|
+
Ht(n) || po(n) || xo(n, e) || // For a details element with a summary, the summary element gets the focus
|
|
5655
|
+
ho(n) || wo(n));
|
|
5652
5656
|
}, Hn = function(e, n) {
|
|
5653
|
-
return !(
|
|
5654
|
-
},
|
|
5657
|
+
return !(yo(n) || Le(n) < 0 || !Vt(e, n));
|
|
5658
|
+
}, jo = function(e) {
|
|
5655
5659
|
var n = parseInt(e.getAttribute("tabindex"), 10);
|
|
5656
5660
|
return !!(isNaN(n) || n >= 0);
|
|
5657
|
-
},
|
|
5661
|
+
}, ko = function t(e) {
|
|
5658
5662
|
var n = [], r = [];
|
|
5659
5663
|
return e.forEach(function(s, i) {
|
|
5660
|
-
var o = !!s.scopeParent, c = o ? s.scopeParent : s, f =
|
|
5664
|
+
var o = !!s.scopeParent, c = o ? s.scopeParent : s, f = fo(c, o), l = o ? t(s.candidates) : c;
|
|
5661
5665
|
f === 0 ? o ? n.push.apply(n, l) : n.push(c) : r.push({
|
|
5662
5666
|
documentOrder: i,
|
|
5663
5667
|
tabIndex: f,
|
|
@@ -5665,7 +5669,7 @@ var Ra = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])",
|
|
|
5665
5669
|
isScope: o,
|
|
5666
5670
|
content: l
|
|
5667
5671
|
});
|
|
5668
|
-
}), r.sort(
|
|
5672
|
+
}), r.sort(mo).reduce(function(s, i) {
|
|
5669
5673
|
return i.isScope ? s.push.apply(s, i.content) : s.push(i.content), s;
|
|
5670
5674
|
}, []).concat(n);
|
|
5671
5675
|
}, Ia = function(e, n) {
|
|
@@ -5675,8 +5679,8 @@ var Ra = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])",
|
|
|
5675
5679
|
filter: Hn.bind(null, n),
|
|
5676
5680
|
flatten: !1,
|
|
5677
5681
|
getShadowRoot: n.getShadowRoot,
|
|
5678
|
-
shadowRootFilter:
|
|
5679
|
-
}) : r = Fa(e, n.includeContainer, Hn.bind(null, n)),
|
|
5682
|
+
shadowRootFilter: jo
|
|
5683
|
+
}) : r = Fa(e, n.includeContainer, Hn.bind(null, n)), ko(r);
|
|
5680
5684
|
}, La = function(e, n) {
|
|
5681
5685
|
n = n || {};
|
|
5682
5686
|
var r;
|
|
@@ -5689,12 +5693,12 @@ var Ra = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])",
|
|
|
5689
5693
|
if (n = n || {}, !e)
|
|
5690
5694
|
throw new Error("No node provided");
|
|
5691
5695
|
return Ze.call(e, zt) === !1 ? !1 : Hn(n, e);
|
|
5692
|
-
},
|
|
5696
|
+
}, To = /* @__PURE__ */ Ma.concat("iframe").join(","), Lt = function(e, n) {
|
|
5693
5697
|
if (n = n || {}, !e)
|
|
5694
5698
|
throw new Error("No node provided");
|
|
5695
|
-
return Ze.call(e,
|
|
5699
|
+
return Ze.call(e, To) === !1 ? !1 : Vt(n, e);
|
|
5696
5700
|
};
|
|
5697
|
-
const
|
|
5701
|
+
const Eo = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
5698
5702
|
__proto__: null,
|
|
5699
5703
|
focusable: La,
|
|
5700
5704
|
getTabIndex: Le,
|
|
@@ -5720,22 +5724,22 @@ function zr(t) {
|
|
|
5720
5724
|
for (var e = 1; e < arguments.length; e++) {
|
|
5721
5725
|
var n = arguments[e] != null ? arguments[e] : {};
|
|
5722
5726
|
e % 2 ? Wr(Object(n), !0).forEach(function(r) {
|
|
5723
|
-
|
|
5727
|
+
So(t, r, n[r]);
|
|
5724
5728
|
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(t, Object.getOwnPropertyDescriptors(n)) : Wr(Object(n)).forEach(function(r) {
|
|
5725
5729
|
Object.defineProperty(t, r, Object.getOwnPropertyDescriptor(n, r));
|
|
5726
5730
|
});
|
|
5727
5731
|
}
|
|
5728
5732
|
return t;
|
|
5729
5733
|
}
|
|
5730
|
-
function
|
|
5731
|
-
return e =
|
|
5734
|
+
function So(t, e, n) {
|
|
5735
|
+
return e = $o(e), e in t ? Object.defineProperty(t, e, {
|
|
5732
5736
|
value: n,
|
|
5733
5737
|
enumerable: !0,
|
|
5734
5738
|
configurable: !0,
|
|
5735
5739
|
writable: !0
|
|
5736
5740
|
}) : t[e] = n, t;
|
|
5737
5741
|
}
|
|
5738
|
-
function
|
|
5742
|
+
function Co(t, e) {
|
|
5739
5743
|
if (typeof t != "object" || t === null)
|
|
5740
5744
|
return t;
|
|
5741
5745
|
var n = t[Symbol.toPrimitive];
|
|
@@ -5747,8 +5751,8 @@ function So(t, e) {
|
|
|
5747
5751
|
}
|
|
5748
5752
|
return (e === "string" ? String : Number)(t);
|
|
5749
5753
|
}
|
|
5750
|
-
function
|
|
5751
|
-
var e =
|
|
5754
|
+
function $o(t) {
|
|
5755
|
+
var e = Co(t, "string");
|
|
5752
5756
|
return typeof e == "symbol" ? e : String(e);
|
|
5753
5757
|
}
|
|
5754
5758
|
var Zr = {
|
|
@@ -5764,13 +5768,13 @@ var Zr = {
|
|
|
5764
5768
|
var r = e.indexOf(n);
|
|
5765
5769
|
r !== -1 && e.splice(r, 1), e.length > 0 && e[e.length - 1].unpause();
|
|
5766
5770
|
}
|
|
5767
|
-
}, $o = function(e) {
|
|
5768
|
-
return e.tagName && e.tagName.toLowerCase() === "input" && typeof e.select == "function";
|
|
5769
5771
|
}, No = function(e) {
|
|
5772
|
+
return e.tagName && e.tagName.toLowerCase() === "input" && typeof e.select == "function";
|
|
5773
|
+
}, Po = function(e) {
|
|
5770
5774
|
return (e == null ? void 0 : e.key) === "Escape" || (e == null ? void 0 : e.key) === "Esc" || (e == null ? void 0 : e.keyCode) === 27;
|
|
5771
5775
|
}, gt = function(e) {
|
|
5772
5776
|
return (e == null ? void 0 : e.key) === "Tab" || (e == null ? void 0 : e.keyCode) === 9;
|
|
5773
|
-
},
|
|
5777
|
+
}, Mo = function(e) {
|
|
5774
5778
|
return gt(e) && !e.shiftKey;
|
|
5775
5779
|
}, Ro = function(e) {
|
|
5776
5780
|
return gt(e) && e.shiftKey;
|
|
@@ -5787,12 +5791,12 @@ var Zr = {
|
|
|
5787
5791
|
return typeof e == "function" ? e.apply(void 0, r) : e;
|
|
5788
5792
|
}, Nt = function(e) {
|
|
5789
5793
|
return e.target.shadowRoot && typeof e.composedPath == "function" ? e.composedPath()[0] : e.target;
|
|
5790
|
-
},
|
|
5791
|
-
var r = (n == null ? void 0 : n.document) || document, s = (n == null ? void 0 : n.trapStack) ||
|
|
5794
|
+
}, Fo = [], Oo = function(e, n) {
|
|
5795
|
+
var r = (n == null ? void 0 : n.document) || document, s = (n == null ? void 0 : n.trapStack) || Fo, i = zr({
|
|
5792
5796
|
returnFocusOnDeactivate: !0,
|
|
5793
5797
|
escapeDeactivates: !0,
|
|
5794
5798
|
delayInitialFocus: !0,
|
|
5795
|
-
isKeyForward:
|
|
5799
|
+
isKeyForward: Mo,
|
|
5796
5800
|
isKeyBackward: Ro
|
|
5797
5801
|
}, n), o = {
|
|
5798
5802
|
// containers given to createFocusTrap()
|
|
@@ -5941,7 +5945,7 @@ var Zr = {
|
|
|
5941
5945
|
}
|
|
5942
5946
|
E.focus({
|
|
5943
5947
|
preventScroll: !!i.preventScroll
|
|
5944
|
-
}), o.mostRecentlyFocusedNode = E,
|
|
5948
|
+
}), o.mostRecentlyFocusedNode = E, No(E) && E.select();
|
|
5945
5949
|
}
|
|
5946
5950
|
}, _ = function(E) {
|
|
5947
5951
|
var w = d("setReturnFocus", E);
|
|
@@ -6036,7 +6040,7 @@ var Zr = {
|
|
|
6036
6040
|
});
|
|
6037
6041
|
$ && (gt(E) && E.preventDefault(), g($));
|
|
6038
6042
|
}, k = function(E) {
|
|
6039
|
-
if (
|
|
6043
|
+
if (Po(E) && lt(i.escapeDeactivates, E) !== !1) {
|
|
6040
6044
|
E.preventDefault(), c.deactivate();
|
|
6041
6045
|
return;
|
|
6042
6046
|
}
|
|
@@ -6044,7 +6048,7 @@ var Zr = {
|
|
|
6044
6048
|
}, x = function(E) {
|
|
6045
6049
|
var w = Nt(E);
|
|
6046
6050
|
l(w, E) >= 0 || lt(i.clickOutsideDeactivates, E) || lt(i.allowOutsideClick, E) || (E.preventDefault(), E.stopImmediatePropagation());
|
|
6047
|
-
},
|
|
6051
|
+
}, D = function() {
|
|
6048
6052
|
if (o.active)
|
|
6049
6053
|
return Zr.activateTrap(s, c), o.delayInitialFocusTimer = i.delayInitialFocus ? Hr(function() {
|
|
6050
6054
|
g(u());
|
|
@@ -6061,7 +6065,7 @@ var Zr = {
|
|
|
6061
6065
|
capture: !0,
|
|
6062
6066
|
passive: !1
|
|
6063
6067
|
}), c;
|
|
6064
|
-
},
|
|
6068
|
+
}, R = function() {
|
|
6065
6069
|
if (o.active)
|
|
6066
6070
|
return r.removeEventListener("focusin", b, !0), r.removeEventListener("mousedown", v, !0), r.removeEventListener("touchstart", v, !0), r.removeEventListener("click", x, !0), r.removeEventListener("keydown", k, !0), c;
|
|
6067
6071
|
}, Z = function(E) {
|
|
@@ -6072,9 +6076,9 @@ var Zr = {
|
|
|
6072
6076
|
});
|
|
6073
6077
|
});
|
|
6074
6078
|
w && g(u());
|
|
6075
|
-
},
|
|
6076
|
-
|
|
6077
|
-
|
|
6079
|
+
}, M = typeof window < "u" && "MutationObserver" in window ? new MutationObserver(Z) : void 0, O = function() {
|
|
6080
|
+
M && (M.disconnect(), o.active && !o.paused && o.containers.map(function(E) {
|
|
6081
|
+
M.observe(E, {
|
|
6078
6082
|
subtree: !0,
|
|
6079
6083
|
childList: !0
|
|
6080
6084
|
});
|
|
@@ -6093,7 +6097,7 @@ var Zr = {
|
|
|
6093
6097
|
var w = f(E, "onActivate"), $ = f(E, "onPostActivate"), L = f(E, "checkCanFocusTrap");
|
|
6094
6098
|
L || m(), o.active = !0, o.paused = !1, o.nodeFocusedBeforeActivation = r.activeElement, w == null || w();
|
|
6095
6099
|
var U = function() {
|
|
6096
|
-
L && m(),
|
|
6100
|
+
L && m(), D(), O(), $ == null || $();
|
|
6097
6101
|
};
|
|
6098
6102
|
return L ? (L(o.containers.concat()).then(U, U), this) : (U(), this);
|
|
6099
6103
|
},
|
|
@@ -6105,7 +6109,7 @@ var Zr = {
|
|
|
6105
6109
|
onPostDeactivate: i.onPostDeactivate,
|
|
6106
6110
|
checkCanReturnFocus: i.checkCanReturnFocus
|
|
6107
6111
|
}, E);
|
|
6108
|
-
clearTimeout(o.delayInitialFocusTimer), o.delayInitialFocusTimer = void 0,
|
|
6112
|
+
clearTimeout(o.delayInitialFocusTimer), o.delayInitialFocusTimer = void 0, R(), o.active = !1, o.paused = !1, O(), Zr.deactivateTrap(s, c);
|
|
6109
6113
|
var $ = f(w, "onDeactivate"), L = f(w, "onPostDeactivate"), U = f(w, "checkCanReturnFocus"), I = f(w, "returnFocus", "returnFocusOnDeactivate");
|
|
6110
6114
|
$ == null || $();
|
|
6111
6115
|
var z = function() {
|
|
@@ -6119,13 +6123,13 @@ var Zr = {
|
|
|
6119
6123
|
if (o.paused || !o.active)
|
|
6120
6124
|
return this;
|
|
6121
6125
|
var w = f(E, "onPause"), $ = f(E, "onPostPause");
|
|
6122
|
-
return o.paused = !0, w == null || w(),
|
|
6126
|
+
return o.paused = !0, w == null || w(), R(), O(), $ == null || $(), this;
|
|
6123
6127
|
},
|
|
6124
6128
|
unpause: function(E) {
|
|
6125
6129
|
if (!o.paused || !o.active)
|
|
6126
6130
|
return this;
|
|
6127
6131
|
var w = f(E, "onUnpause"), $ = f(E, "onPostUnpause");
|
|
6128
|
-
return o.paused = !1, w == null || w(), m(),
|
|
6132
|
+
return o.paused = !1, w == null || w(), m(), D(), O(), $ == null || $(), this;
|
|
6129
6133
|
},
|
|
6130
6134
|
updateContainerElements: function(E) {
|
|
6131
6135
|
var w = [].concat(E).filter(Boolean);
|
|
@@ -6135,10 +6139,10 @@ var Zr = {
|
|
|
6135
6139
|
}
|
|
6136
6140
|
}, c.updateContainerElements(e), c;
|
|
6137
6141
|
};
|
|
6138
|
-
const
|
|
6142
|
+
const Ao = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
6139
6143
|
__proto__: null,
|
|
6140
|
-
createFocusTrap:
|
|
6141
|
-
}, Symbol.toStringTag, { value: "Module" })), Do = /* @__PURE__ */ da(
|
|
6144
|
+
createFocusTrap: Oo
|
|
6145
|
+
}, Symbol.toStringTag, { value: "Module" })), Do = /* @__PURE__ */ da(Ao), Io = /* @__PURE__ */ da(Eo);
|
|
6142
6146
|
function tt(t) {
|
|
6143
6147
|
"@babel/helpers - typeof";
|
|
6144
6148
|
return tt = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
|
|
@@ -6147,7 +6151,7 @@ function tt(t) {
|
|
|
6147
6151
|
return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
|
|
6148
6152
|
}, tt(t);
|
|
6149
6153
|
}
|
|
6150
|
-
function
|
|
6154
|
+
function Lo(t, e) {
|
|
6151
6155
|
if (!(t instanceof e))
|
|
6152
6156
|
throw new TypeError("Cannot call a class as a function");
|
|
6153
6157
|
}
|
|
@@ -6157,10 +6161,10 @@ function Yr(t, e) {
|
|
|
6157
6161
|
r.enumerable = r.enumerable || !1, r.configurable = !0, "value" in r && (r.writable = !0), Object.defineProperty(t, Ba(r.key), r);
|
|
6158
6162
|
}
|
|
6159
6163
|
}
|
|
6160
|
-
function
|
|
6164
|
+
function Bo(t, e, n) {
|
|
6161
6165
|
return e && Yr(t.prototype, e), n && Yr(t, n), Object.defineProperty(t, "prototype", { writable: !1 }), t;
|
|
6162
6166
|
}
|
|
6163
|
-
function
|
|
6167
|
+
function qo(t, e) {
|
|
6164
6168
|
if (typeof e != "function" && e !== null)
|
|
6165
6169
|
throw new TypeError("Super expression must either be null or a function");
|
|
6166
6170
|
t.prototype = Object.create(e && e.prototype, { constructor: { value: t, writable: !0, configurable: !0 } }), Object.defineProperty(t, "prototype", { writable: !1 }), e && Vn(t, e);
|
|
@@ -6170,8 +6174,8 @@ function Vn(t, e) {
|
|
|
6170
6174
|
return r.__proto__ = s, r;
|
|
6171
6175
|
}, Vn(t, e);
|
|
6172
6176
|
}
|
|
6173
|
-
function
|
|
6174
|
-
var e =
|
|
6177
|
+
function Uo(t) {
|
|
6178
|
+
var e = zo();
|
|
6175
6179
|
return function() {
|
|
6176
6180
|
var r = Yt(t), s;
|
|
6177
6181
|
if (e) {
|
|
@@ -6179,10 +6183,10 @@ function qo(t) {
|
|
|
6179
6183
|
s = Reflect.construct(r, arguments, i);
|
|
6180
6184
|
} else
|
|
6181
6185
|
s = r.apply(this, arguments);
|
|
6182
|
-
return
|
|
6186
|
+
return Wo(this, s);
|
|
6183
6187
|
};
|
|
6184
6188
|
}
|
|
6185
|
-
function
|
|
6189
|
+
function Wo(t, e) {
|
|
6186
6190
|
if (e && (tt(e) === "object" || typeof e == "function"))
|
|
6187
6191
|
return e;
|
|
6188
6192
|
if (e !== void 0)
|
|
@@ -6194,7 +6198,7 @@ function mt(t) {
|
|
|
6194
6198
|
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
6195
6199
|
return t;
|
|
6196
6200
|
}
|
|
6197
|
-
function
|
|
6201
|
+
function zo() {
|
|
6198
6202
|
if (typeof Reflect > "u" || !Reflect.construct || Reflect.construct.sham)
|
|
6199
6203
|
return !1;
|
|
6200
6204
|
if (typeof Proxy == "function")
|
|
@@ -6211,14 +6215,14 @@ function Yt(t) {
|
|
|
6211
6215
|
return n.__proto__ || Object.getPrototypeOf(n);
|
|
6212
6216
|
}, Yt(t);
|
|
6213
6217
|
}
|
|
6214
|
-
function
|
|
6218
|
+
function Zo(t, e, n) {
|
|
6215
6219
|
return e = Ba(e), e in t ? Object.defineProperty(t, e, { value: n, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = n, t;
|
|
6216
6220
|
}
|
|
6217
6221
|
function Ba(t) {
|
|
6218
|
-
var e =
|
|
6222
|
+
var e = Ho(t, "string");
|
|
6219
6223
|
return tt(e) === "symbol" ? e : String(e);
|
|
6220
6224
|
}
|
|
6221
|
-
function
|
|
6225
|
+
function Ho(t, e) {
|
|
6222
6226
|
if (tt(t) !== "object" || t === null)
|
|
6223
6227
|
return t;
|
|
6224
6228
|
var n = t[Symbol.toPrimitive];
|
|
@@ -6230,12 +6234,12 @@ function Zo(t, e) {
|
|
|
6230
6234
|
}
|
|
6231
6235
|
return (e === "string" ? String : Number)(t);
|
|
6232
6236
|
}
|
|
6233
|
-
var Pt = K, Q =
|
|
6234
|
-
|
|
6235
|
-
var e =
|
|
6237
|
+
var Pt = K, Q = lo, Vo = Do, Yo = Vo.createFocusTrap, Ko = Io, Go = Ko.isFocusable, rr = /* @__PURE__ */ function(t) {
|
|
6238
|
+
qo(n, t);
|
|
6239
|
+
var e = Uo(n);
|
|
6236
6240
|
function n(r) {
|
|
6237
6241
|
var s;
|
|
6238
|
-
|
|
6242
|
+
Lo(this, n), s = e.call(this, r), Zo(mt(s), "getNodeForOption", function(c) {
|
|
6239
6243
|
var f, l = (f = this.internalOptions[c]) !== null && f !== void 0 ? f : this.originalOptions[c];
|
|
6240
6244
|
if (typeof l == "function") {
|
|
6241
6245
|
for (var d = arguments.length, u = new Array(d > 1 ? d - 1 : 0), m = 1; m < d; m++)
|
|
@@ -6295,7 +6299,7 @@ var Pt = K, Q = co, Ho = Do, Vo = Ho.createFocusTrap, Yo = Ao, Ko = Yo.isFocusab
|
|
|
6295
6299
|
}
|
|
6296
6300
|
return s.outsideClick = null, s.focusTrapElements = r.containerElements || [], s.updatePreviousElement(), s;
|
|
6297
6301
|
}
|
|
6298
|
-
return
|
|
6302
|
+
return Bo(n, [{
|
|
6299
6303
|
key: "getDocument",
|
|
6300
6304
|
value: function() {
|
|
6301
6305
|
return this.props.focusTrapOptions.document || (typeof document < "u" ? document : void 0);
|
|
@@ -6358,7 +6362,7 @@ var Pt = K, Q = co, Ho = Do, Vo = Ho.createFocusTrap, Yo = Ao, Ko = Yo.isFocusab
|
|
|
6358
6362
|
s.outsideClick.allowDeactivation && // is the outside node NOT focusable (implying that it did NOT receive focus
|
|
6359
6363
|
// as a result of the click-through) -- in which case do NOT restore focus
|
|
6360
6364
|
// to `returnFocusNode` because focus should remain on the outside node
|
|
6361
|
-
!
|
|
6365
|
+
!Go(s.outsideClick.target, s.internalOptions.tabbableOptions))), l = s.internalOptions.preventScroll, d = l === void 0 ? !1 : l;
|
|
6362
6366
|
f && c.focus({
|
|
6363
6367
|
preventScroll: d
|
|
6364
6368
|
}), s.originalOptions.onPostDeactivate && s.originalOptions.onPostDeactivate.call(null), s.outsideClick = null;
|
|
@@ -6470,10 +6474,10 @@ rr.defaultProps = {
|
|
|
6470
6474
|
active: !0,
|
|
6471
6475
|
paused: !1,
|
|
6472
6476
|
focusTrapOptions: {},
|
|
6473
|
-
_createFocusTrap:
|
|
6477
|
+
_createFocusTrap: Yo
|
|
6474
6478
|
};
|
|
6475
|
-
var
|
|
6476
|
-
const
|
|
6479
|
+
var Qo = rr;
|
|
6480
|
+
const Jo = /* @__PURE__ */ la(Qo);
|
|
6477
6481
|
const qa = ({ element: t = "section", children: e, className: n, ...r }) => K.createElement(t, {
|
|
6478
6482
|
className: S("modal", n),
|
|
6479
6483
|
children: typeof e == "string" ? /* @__PURE__ */ a.jsx("p", { children: e }) : e,
|
|
@@ -6516,7 +6520,7 @@ const an = ({
|
|
|
6516
6520
|
}),
|
|
6517
6521
|
hidden: !p,
|
|
6518
6522
|
style: v,
|
|
6519
|
-
children: e && /* @__PURE__ */ a.jsx(
|
|
6523
|
+
children: e && /* @__PURE__ */ a.jsx(Jo, { children: /* @__PURE__ */ a.jsxs("div", { className: "overlay-content", children: [
|
|
6520
6524
|
/* @__PURE__ */ a.jsxs("div", { className: "top", children: [
|
|
6521
6525
|
c && /* @__PURE__ */ a.jsx("h2", { className: "modal-title", children: c }),
|
|
6522
6526
|
/* @__PURE__ */ a.jsx(
|
|
@@ -6533,22 +6537,22 @@ const an = ({
|
|
|
6533
6537
|
}
|
|
6534
6538
|
)
|
|
6535
6539
|
] }),
|
|
6536
|
-
n && /* @__PURE__ */ a.jsx(
|
|
6540
|
+
n && /* @__PURE__ */ a.jsx(Ae, {}),
|
|
6537
6541
|
f,
|
|
6538
6542
|
l && /* @__PURE__ */ a.jsxs("div", { className: "bottom", children: [
|
|
6539
|
-
/* @__PURE__ */ a.jsx(
|
|
6543
|
+
/* @__PURE__ */ a.jsx(Ae, {}),
|
|
6540
6544
|
/* @__PURE__ */ a.jsx(wt, { buttons: l })
|
|
6541
6545
|
] }),
|
|
6542
6546
|
o && /* @__PURE__ */ a.jsx(Wt, { className: "error", children: o })
|
|
6543
6547
|
] }) })
|
|
6544
6548
|
}
|
|
6545
6549
|
) });
|
|
6546
|
-
},
|
|
6550
|
+
}, Xo = (t, e) => ({
|
|
6547
6551
|
"aria-haspopup": !0,
|
|
6548
6552
|
"aria-expanded": e,
|
|
6549
6553
|
"aria-controls": t
|
|
6550
6554
|
});
|
|
6551
|
-
const
|
|
6555
|
+
const Jl = ({
|
|
6552
6556
|
className: t,
|
|
6553
6557
|
showModal: e = !0,
|
|
6554
6558
|
title: n,
|
|
@@ -6562,7 +6566,7 @@ const Ql = ({
|
|
|
6562
6566
|
sendInvites: l
|
|
6563
6567
|
}) => {
|
|
6564
6568
|
const d = V();
|
|
6565
|
-
return r || (r = d.formatMessage({ id: "
|
|
6569
|
+
return r || (r = d.formatMessage({ id: "inviteModal_formTitle" })), s || (s = d.formatMessage({ id: "inviteModal_formLabel" })), i || (i = d.formatMessage({ id: "inviteModal_cta" })), /* @__PURE__ */ a.jsx(
|
|
6566
6570
|
an,
|
|
6567
6571
|
{
|
|
6568
6572
|
title: n,
|
|
@@ -6572,7 +6576,7 @@ const Ql = ({
|
|
|
6572
6576
|
functions: { onClose: c },
|
|
6573
6577
|
className: S("invite-modal", t, { success: !!n }),
|
|
6574
6578
|
children: /* @__PURE__ */ a.jsx(
|
|
6575
|
-
|
|
6579
|
+
Yi,
|
|
6576
6580
|
{
|
|
6577
6581
|
title: r,
|
|
6578
6582
|
label: s,
|
|
@@ -6585,7 +6589,7 @@ const Ql = ({
|
|
|
6585
6589
|
}
|
|
6586
6590
|
);
|
|
6587
6591
|
};
|
|
6588
|
-
const
|
|
6592
|
+
const Xl = ({ members: t }) => {
|
|
6589
6593
|
const [e, n] = J(!1), r = (s) => {
|
|
6590
6594
|
const { fullName: i, jobTitle: o, organisation: c, photo: f } = s || {};
|
|
6591
6595
|
return /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
|
|
@@ -6624,7 +6628,7 @@ const Jl = ({ members: t }) => {
|
|
|
6624
6628
|
}
|
|
6625
6629
|
)
|
|
6626
6630
|
] });
|
|
6627
|
-
},
|
|
6631
|
+
}, ec = ({ type: t, data: e }) => {
|
|
6628
6632
|
const n = V(), {
|
|
6629
6633
|
answers: r,
|
|
6630
6634
|
createdAt: s,
|
|
@@ -6740,7 +6744,7 @@ const Jl = ({ members: t }) => {
|
|
|
6740
6744
|
},
|
|
6741
6745
|
gtmEvent: "learning-hub"
|
|
6742
6746
|
}
|
|
6743
|
-
},
|
|
6747
|
+
}, tc = ({ data: t, cta: e, link: n, gtmContext: r }) => {
|
|
6744
6748
|
var _;
|
|
6745
6749
|
const s = V(), [i, o] = J({
|
|
6746
6750
|
loading: !1,
|
|
@@ -6807,7 +6811,7 @@ const Jl = ({ members: t }) => {
|
|
|
6807
6811
|
}
|
|
6808
6812
|
return null;
|
|
6809
6813
|
};
|
|
6810
|
-
const
|
|
6814
|
+
const nc = {
|
|
6811
6815
|
title: 66,
|
|
6812
6816
|
text: 3e3,
|
|
6813
6817
|
secondaryText: 1e3,
|
|
@@ -6824,9 +6828,9 @@ const tc = {
|
|
|
6824
6828
|
data: null,
|
|
6825
6829
|
isLoading: !0
|
|
6826
6830
|
}), { data: u, isLoading: m } = l, p = sa(() => {
|
|
6827
|
-
n(e, f).then((
|
|
6828
|
-
d(() => ({ data:
|
|
6829
|
-
}).catch(() => d((
|
|
6831
|
+
n(e, f).then((D) => {
|
|
6832
|
+
d(() => ({ data: D, isLoading: !1 }));
|
|
6833
|
+
}).catch(() => d((D) => ({ ...D, isLoading: !1 })));
|
|
6830
6834
|
}, [t]);
|
|
6831
6835
|
if (ae(() => {
|
|
6832
6836
|
p();
|
|
@@ -6850,7 +6854,7 @@ const tc = {
|
|
|
6850
6854
|
} = Kt[g];
|
|
6851
6855
|
let j = u.slug ? `${_}${u.slug}` : !1;
|
|
6852
6856
|
u.slug && (u.slug.slice(0, 4) === "http" || u.slug.slice(0, 2) === "//" || u.slug.slice(0, 6) === "mailto" || u.slug.slice(0, 3) === "tel") && (j = u.slug);
|
|
6853
|
-
const k = { ...
|
|
6857
|
+
const k = { ...nc, ...v };
|
|
6854
6858
|
let x = { className: "card" };
|
|
6855
6859
|
return j && (x = {
|
|
6856
6860
|
href: j,
|
|
@@ -6909,6 +6913,7 @@ const tc = {
|
|
|
6909
6913
|
showGap: y !== "question",
|
|
6910
6914
|
showText: !0
|
|
6911
6915
|
},
|
|
6916
|
+
multipleText: ["event", "solutionArticle"].includes(g) ? o.formatMessage({ id: `card_contributors_${g}` }) : void 0,
|
|
6912
6917
|
"data-testid": "contributors"
|
|
6913
6918
|
}
|
|
6914
6919
|
),
|
|
@@ -6917,21 +6922,21 @@ const tc = {
|
|
|
6917
6922
|
{ partner: u.partner[0], number: u.partner.length - 1 }
|
|
6918
6923
|
) : et(u.partner[0], k.partner) }),
|
|
6919
6924
|
/* Text */
|
|
6920
|
-
["title", "text", "secondaryText"].map((
|
|
6921
|
-
const
|
|
6922
|
-
if (!
|
|
6925
|
+
["title", "text", "secondaryText"].map((D) => {
|
|
6926
|
+
const R = u[D];
|
|
6927
|
+
if (!R)
|
|
6923
6928
|
return null;
|
|
6924
|
-
const Z = Ws(
|
|
6925
|
-
return /* @__PURE__ */ a.jsx("p", { className: Z, "data-testid": Z, children: et(
|
|
6929
|
+
const Z = Ws(D);
|
|
6930
|
+
return /* @__PURE__ */ a.jsx("p", { className: Z, "data-testid": Z, children: et(R, k[D]) }, D);
|
|
6926
6931
|
}),
|
|
6927
|
-
/* @__PURE__ */ a.jsx(
|
|
6928
|
-
/* @__PURE__ */ a.jsx(
|
|
6932
|
+
/* @__PURE__ */ a.jsx(ec, { type: y || "", data: u }),
|
|
6933
|
+
/* @__PURE__ */ a.jsx(tc, { data: u, cta: r, link: j || "", gtmContext: s })
|
|
6929
6934
|
] })
|
|
6930
6935
|
)
|
|
6931
6936
|
}
|
|
6932
6937
|
);
|
|
6933
6938
|
};
|
|
6934
|
-
const
|
|
6939
|
+
const rc = ({ cards: t, cardTypes: e, className: n = "", ...r }) => /* @__PURE__ */ a.jsx("ul", { className: S("card-block", n), children: t.map((s, i) => {
|
|
6935
6940
|
const o = s.slug ? `${s.slug}-${e[i]}` : `${e[i]}-${i}`;
|
|
6936
6941
|
return /* @__PURE__ */ a.jsx(
|
|
6937
6942
|
Ua,
|
|
@@ -6942,10 +6947,10 @@ const nc = ({ cards: t, cardTypes: e, className: n = "", ...r }) => /* @__PURE__
|
|
|
6942
6947
|
},
|
|
6943
6948
|
o
|
|
6944
6949
|
);
|
|
6945
|
-
}) }),
|
|
6950
|
+
}) }), ac = (t, e, n, r) => {
|
|
6946
6951
|
const s = e * n <= t, i = t < e * (n + 1), o = r.includes(Math.floor(t / e));
|
|
6947
6952
|
return s && i || o;
|
|
6948
|
-
},
|
|
6953
|
+
}, sc = ({ id: t, title: e }) => {
|
|
6949
6954
|
const n = V();
|
|
6950
6955
|
if (!e || !e.text)
|
|
6951
6956
|
return null;
|
|
@@ -6974,8 +6979,8 @@ const En = {
|
|
|
6974
6979
|
threeCards: 769,
|
|
6975
6980
|
twoCards: 480
|
|
6976
6981
|
};
|
|
6977
|
-
let
|
|
6978
|
-
const
|
|
6982
|
+
let Mt = null;
|
|
6983
|
+
const ic = ({
|
|
6979
6984
|
id: t,
|
|
6980
6985
|
cards: e,
|
|
6981
6986
|
cardTypes: n,
|
|
@@ -6992,17 +6997,17 @@ const sc = ({
|
|
|
6992
6997
|
loadedPages: [0]
|
|
6993
6998
|
}), { currentPage: g, loadedPages: _ } = m, y = e.length, v = Math.ceil(y / d), b = pe(null), j = xt(!0, !0, b == null ? void 0 : b.current);
|
|
6994
6999
|
ae(() => {
|
|
6995
|
-
let
|
|
6996
|
-
j && (j >= En.fourCards ?
|
|
7000
|
+
let M = 1;
|
|
7001
|
+
j && (j >= En.fourCards ? M = 4 : j >= En.threeCards ? M = 3 : j >= En.twoCards && (M = 2), M > y && (M = y)), l((O) => ({
|
|
6997
7002
|
...O,
|
|
6998
|
-
cardsPerPage:
|
|
7003
|
+
cardsPerPage: M,
|
|
6999
7004
|
isLoading: !1
|
|
7000
7005
|
}));
|
|
7001
7006
|
}, [j, y]);
|
|
7002
|
-
const k = (
|
|
7007
|
+
const k = (M = "next") => {
|
|
7003
7008
|
let O = g;
|
|
7004
|
-
if (typeof
|
|
7005
|
-
if (
|
|
7009
|
+
if (typeof M == "string")
|
|
7010
|
+
if (M === "next")
|
|
7006
7011
|
if (g < v - 1)
|
|
7007
7012
|
O = g + 1;
|
|
7008
7013
|
else
|
|
@@ -7012,20 +7017,20 @@ const sc = ({
|
|
|
7012
7017
|
else
|
|
7013
7018
|
return;
|
|
7014
7019
|
else
|
|
7015
|
-
O =
|
|
7020
|
+
O = M;
|
|
7016
7021
|
p((C) => ({
|
|
7017
7022
|
...C,
|
|
7018
7023
|
currentPage: O,
|
|
7019
7024
|
loadedPages: [.../* @__PURE__ */ new Set([..._, O])]
|
|
7020
7025
|
}));
|
|
7021
|
-
}, x = (
|
|
7022
|
-
|
|
7023
|
-
},
|
|
7024
|
-
if (
|
|
7026
|
+
}, x = (M) => {
|
|
7027
|
+
Mt = M.touches[0].clientX;
|
|
7028
|
+
}, D = (M) => {
|
|
7029
|
+
if (Mt === null)
|
|
7025
7030
|
return;
|
|
7026
|
-
const O =
|
|
7027
|
-
C > 5 ? k("next") : C < -5 && k("previous"),
|
|
7028
|
-
},
|
|
7031
|
+
const O = M.touches[0].clientX, C = Mt - O;
|
|
7032
|
+
C > 5 ? k("next") : C < -5 && k("previous"), Mt = null;
|
|
7033
|
+
}, R = {
|
|
7029
7034
|
"--width": `${j || 0}px`,
|
|
7030
7035
|
"--total-cards": y,
|
|
7031
7036
|
"--cards-per-page": d,
|
|
@@ -7033,10 +7038,10 @@ const sc = ({
|
|
|
7033
7038
|
};
|
|
7034
7039
|
if (u)
|
|
7035
7040
|
return /* @__PURE__ */ a.jsx(wa, { layout: `carousel${s ? "-with-title" : ""}` });
|
|
7036
|
-
const Z = (
|
|
7041
|
+
const Z = (M, O) => {
|
|
7037
7042
|
var E;
|
|
7038
7043
|
let C = null;
|
|
7039
|
-
return (E =
|
|
7044
|
+
return (E = M == null ? void 0 : M.sys) != null && E.id ? C = `card-${M.sys.id}` : M != null && M.slug ? C = `card-${M.slug}` : [n[O], M.contentType].includes("customCard") && (C = `card-${window.btoa(`${M.title} ${M.createdAt}`)}-${O}`), C;
|
|
7040
7045
|
};
|
|
7041
7046
|
return /* @__PURE__ */ a.jsxs(
|
|
7042
7047
|
"section",
|
|
@@ -7045,22 +7050,22 @@ const sc = ({
|
|
|
7045
7050
|
className: S("carousel-wrapper", i),
|
|
7046
7051
|
"data-testid": "carousel",
|
|
7047
7052
|
children: [
|
|
7048
|
-
/* @__PURE__ */ a.jsx(
|
|
7053
|
+
/* @__PURE__ */ a.jsx(sc, { id: t, title: s }),
|
|
7049
7054
|
/* @__PURE__ */ a.jsx(
|
|
7050
7055
|
"ul",
|
|
7051
7056
|
{
|
|
7052
7057
|
className: "carousel",
|
|
7053
7058
|
onTouchStart: x,
|
|
7054
|
-
onTouchMove:
|
|
7055
|
-
style:
|
|
7059
|
+
onTouchMove: D,
|
|
7060
|
+
style: R,
|
|
7056
7061
|
"data-testid": "carousel-list",
|
|
7057
|
-
children: e.map((
|
|
7058
|
-
let C = Z(
|
|
7059
|
-
return C &&
|
|
7062
|
+
children: e.map((M, O) => {
|
|
7063
|
+
let C = Z(M, O);
|
|
7064
|
+
return C && ac(O, d, g, _) ? /* @__PURE__ */ a.jsx(
|
|
7060
7065
|
Ua,
|
|
7061
7066
|
{
|
|
7062
7067
|
id: C,
|
|
7063
|
-
card: { ...
|
|
7068
|
+
card: { ...M, contentType: n[O] },
|
|
7064
7069
|
buildCardData: r,
|
|
7065
7070
|
gtmContext: o
|
|
7066
7071
|
},
|
|
@@ -7084,8 +7089,8 @@ const sc = ({
|
|
|
7084
7089
|
variant: "secondary",
|
|
7085
7090
|
size: "large",
|
|
7086
7091
|
icon: { icon: "chevron_left" },
|
|
7087
|
-
onClick: (
|
|
7088
|
-
|
|
7092
|
+
onClick: (M) => {
|
|
7093
|
+
M.preventDefault(), M.stopPropagation(), k("previous");
|
|
7089
7094
|
},
|
|
7090
7095
|
screenreaderText: c.formatMessage({
|
|
7091
7096
|
id: "carousel_pagination_previous"
|
|
@@ -7093,7 +7098,7 @@ const sc = ({
|
|
|
7093
7098
|
disabled: g <= 0
|
|
7094
7099
|
}
|
|
7095
7100
|
) }),
|
|
7096
|
-
[...Array(v)].map((
|
|
7101
|
+
[...Array(v)].map((M, O) => /* @__PURE__ */ a.jsx("li", { "data-testid": "carousel-controls-button", children: /* @__PURE__ */ a.jsx(
|
|
7097
7102
|
"button",
|
|
7098
7103
|
{
|
|
7099
7104
|
className: S("page-indicator", {
|
|
@@ -7114,8 +7119,8 @@ const sc = ({
|
|
|
7114
7119
|
variant: "secondary",
|
|
7115
7120
|
size: "large",
|
|
7116
7121
|
icon: { icon: "chevron_right" },
|
|
7117
|
-
onClick: (
|
|
7118
|
-
|
|
7122
|
+
onClick: (M) => {
|
|
7123
|
+
M.preventDefault(), M.stopPropagation(), k("next");
|
|
7119
7124
|
},
|
|
7120
7125
|
screenreaderText: c.formatMessage({ id: "carousel_pagination_next" }),
|
|
7121
7126
|
disabled: g >= v - 1
|
|
@@ -7125,7 +7130,7 @@ const sc = ({
|
|
|
7125
7130
|
]
|
|
7126
7131
|
}
|
|
7127
7132
|
);
|
|
7128
|
-
},
|
|
7133
|
+
}, ed = ({
|
|
7129
7134
|
carousels: t = [],
|
|
7130
7135
|
isLoading: e,
|
|
7131
7136
|
title: n,
|
|
@@ -7142,10 +7147,10 @@ const sc = ({
|
|
|
7142
7147
|
"data-testid": "carousel-placeholder"
|
|
7143
7148
|
}
|
|
7144
7149
|
),
|
|
7145
|
-
u ? null : /* @__PURE__ */ a.jsx(
|
|
7150
|
+
u ? null : /* @__PURE__ */ a.jsx(Ae, {})
|
|
7146
7151
|
] }, `placeholder-${d}`) : /* @__PURE__ */ a.jsxs(bt, { children: [
|
|
7147
7152
|
/* @__PURE__ */ a.jsx(
|
|
7148
|
-
|
|
7153
|
+
ic,
|
|
7149
7154
|
{
|
|
7150
7155
|
cards: c,
|
|
7151
7156
|
cardTypes: f,
|
|
@@ -7153,7 +7158,7 @@ const sc = ({
|
|
|
7153
7158
|
...s
|
|
7154
7159
|
}
|
|
7155
7160
|
),
|
|
7156
|
-
u ? null : /* @__PURE__ */ a.jsx(
|
|
7161
|
+
u ? null : /* @__PURE__ */ a.jsx(Ae, {})
|
|
7157
7162
|
] }, `carousel-${d}`);
|
|
7158
7163
|
}
|
|
7159
7164
|
);
|
|
@@ -7190,7 +7195,7 @@ const Sn = "joinCommunityButton", Wa = ({
|
|
|
7190
7195
|
}
|
|
7191
7196
|
);
|
|
7192
7197
|
};
|
|
7193
|
-
const Cn = "communityDetails_",
|
|
7198
|
+
const Cn = "communityDetails_", td = ({
|
|
7194
7199
|
className: t = "",
|
|
7195
7200
|
isMember: e = !1,
|
|
7196
7201
|
slug: n,
|
|
@@ -7199,7 +7204,7 @@ const Cn = "communityDetails_", ed = ({
|
|
|
7199
7204
|
}) => {
|
|
7200
7205
|
const c = V(), f = 5, l = r || s.length, d = s.length ? s : Array(f).fill({}), u = `/communities/${n}/members` === window.location.pathname;
|
|
7201
7206
|
return /* @__PURE__ */ a.jsxs("div", { className: S("community-details", t), children: [
|
|
7202
|
-
/* @__PURE__ */ a.jsx(
|
|
7207
|
+
/* @__PURE__ */ a.jsx(Ae, {}),
|
|
7203
7208
|
/* @__PURE__ */ a.jsxs("div", { className: "member-details", children: [
|
|
7204
7209
|
/* @__PURE__ */ a.jsxs("div", { className: "top", children: [
|
|
7205
7210
|
/* @__PURE__ */ a.jsxs("h4", { children: [
|
|
@@ -7237,7 +7242,7 @@ const Cn = "communityDetails_", ed = ({
|
|
|
7237
7242
|
)
|
|
7238
7243
|
] });
|
|
7239
7244
|
};
|
|
7240
|
-
const
|
|
7245
|
+
const nd = ({ breadcrumbs: t, cutoff: e = 20, className: n = "" }) => {
|
|
7241
7246
|
const r = V();
|
|
7242
7247
|
return /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
|
|
7243
7248
|
/* @__PURE__ */ a.jsx(
|
|
@@ -7261,7 +7266,7 @@ const td = ({ breadcrumbs: t, cutoff: e = 20, className: n = "" }) => {
|
|
|
7261
7266
|
) })
|
|
7262
7267
|
] });
|
|
7263
7268
|
};
|
|
7264
|
-
const
|
|
7269
|
+
const rd = ({
|
|
7265
7270
|
options: t,
|
|
7266
7271
|
allOption: e = !1,
|
|
7267
7272
|
allowMultiple: n = !0,
|
|
@@ -7297,7 +7302,7 @@ const nd = ({
|
|
|
7297
7302
|
}
|
|
7298
7303
|
) }, d);
|
|
7299
7304
|
}) });
|
|
7300
|
-
},
|
|
7305
|
+
}, oc = (t, e, n) => {
|
|
7301
7306
|
const r = String(t);
|
|
7302
7307
|
if (!n || !n.length)
|
|
7303
7308
|
return e ? `/${r}/${e}` : `/${r}`;
|
|
@@ -7309,7 +7314,7 @@ const nd = ({
|
|
|
7309
7314
|
urlForRouter: `/${s.split("/").slice(2).join("/")}`
|
|
7310
7315
|
} : s;
|
|
7311
7316
|
};
|
|
7312
|
-
const
|
|
7317
|
+
const Rt = "languageSwitcher_", ad = ({
|
|
7313
7318
|
currentLanguage: t,
|
|
7314
7319
|
isOriginalLanguage: e = !1,
|
|
7315
7320
|
isHumanTranslation: n = !1,
|
|
@@ -7331,7 +7336,7 @@ const Mt = "languageSwitcher_", rd = ({
|
|
|
7331
7336
|
const g = Object.keys(r), _ = u !== t;
|
|
7332
7337
|
return /* @__PURE__ */ a.jsxs("div", { className: S("language-switcher text-small", o, f), children: [
|
|
7333
7338
|
/* @__PURE__ */ a.jsxs("nav", { children: [
|
|
7334
|
-
o !== "short" && /* @__PURE__ */ a.jsx("p", { children: c || l.formatMessage({ id: `${
|
|
7339
|
+
o !== "short" && /* @__PURE__ */ a.jsx("p", { children: c || l.formatMessage({ id: `${Rt}label` }) }),
|
|
7335
7340
|
/* @__PURE__ */ a.jsx("ul", { children: g.map((y) => {
|
|
7336
7341
|
var j;
|
|
7337
7342
|
if (!gn[y])
|
|
@@ -7340,11 +7345,11 @@ const Mt = "languageSwitcher_", rd = ({
|
|
|
7340
7345
|
let b = { className: y };
|
|
7341
7346
|
if (u === y)
|
|
7342
7347
|
b["aria-label"] = l.formatMessage(
|
|
7343
|
-
{ id: `${
|
|
7348
|
+
{ id: `${Rt}selected` },
|
|
7344
7349
|
{ language: gn[y] }
|
|
7345
7350
|
);
|
|
7346
7351
|
else {
|
|
7347
|
-
const k =
|
|
7352
|
+
const k = oc(y, v, i);
|
|
7348
7353
|
b = {
|
|
7349
7354
|
...b,
|
|
7350
7355
|
href: typeof k == "string" ? k : k.url,
|
|
@@ -7359,7 +7364,7 @@ const Mt = "languageSwitcher_", rd = ({
|
|
|
7359
7364
|
return /* @__PURE__ */ a.jsx("li", { children: /* @__PURE__ */ a.jsx(at, { ...b, fallbackElement: "span", children: gn[y] }) }, y);
|
|
7360
7365
|
}) }),
|
|
7361
7366
|
o !== "short" && !_ && /* @__PURE__ */ a.jsx("p", { children: l.formatMessage({
|
|
7362
|
-
id: `${
|
|
7367
|
+
id: `${Rt}translation_${e ? "original" : n ? "human" : "machine"}`
|
|
7363
7368
|
}) })
|
|
7364
7369
|
] }),
|
|
7365
7370
|
o !== "short" && !_ && !e && !n && /* @__PURE__ */ a.jsx("small", {
|
|
@@ -7367,7 +7372,7 @@ const Mt = "languageSwitcher_", rd = ({
|
|
|
7367
7372
|
// @ts-ignore
|
|
7368
7373
|
// `values` are throwing a type error: https://github.com/formatjs/formatjs/issues/3633
|
|
7369
7374
|
children: l.formatMessage(
|
|
7370
|
-
{ id: `${
|
|
7375
|
+
{ id: `${Rt}disclaimer` },
|
|
7371
7376
|
{
|
|
7372
7377
|
email: ft.support,
|
|
7373
7378
|
link: (y) => {
|
|
@@ -7436,7 +7441,7 @@ const za = ({
|
|
|
7436
7441
|
}
|
|
7437
7442
|
) });
|
|
7438
7443
|
let Ft = !1;
|
|
7439
|
-
const
|
|
7444
|
+
const cc = ({
|
|
7440
7445
|
element: t = "div",
|
|
7441
7446
|
id: e = "more-menu",
|
|
7442
7447
|
options: n,
|
|
@@ -7494,8 +7499,8 @@ const oc = ({
|
|
|
7494
7499
|
}) })
|
|
7495
7500
|
] })
|
|
7496
7501
|
});
|
|
7497
|
-
},
|
|
7498
|
-
const
|
|
7502
|
+
}, lc = (t, e = !1) => e ? t.replaceAll("/", "") === e : typeof window < "u" && window.location && window.location.pathname === t;
|
|
7503
|
+
const dc = [
|
|
7499
7504
|
{
|
|
7500
7505
|
key: "homepage",
|
|
7501
7506
|
href: "/home/"
|
|
@@ -7512,13 +7517,13 @@ const lc = [
|
|
|
7512
7517
|
key: "articles",
|
|
7513
7518
|
href: "/solution-articles/"
|
|
7514
7519
|
}
|
|
7515
|
-
],
|
|
7520
|
+
], uc = ({ activeLink: t }) => {
|
|
7516
7521
|
const e = V(), n = Ee(Ie), r = n && typeof n.id == "string";
|
|
7517
7522
|
return /* @__PURE__ */ a.jsxs("ul", { id: "navigation-menu", className: "text-medium", children: [
|
|
7518
|
-
|
|
7523
|
+
dc.map(({ key: s, href: i }) => /* @__PURE__ */ a.jsx(
|
|
7519
7524
|
"li",
|
|
7520
7525
|
{
|
|
7521
|
-
className: S(s, { active:
|
|
7526
|
+
className: S(s, { active: lc(i, t) }),
|
|
7522
7527
|
children: /* @__PURE__ */ a.jsx(
|
|
7523
7528
|
"a",
|
|
7524
7529
|
{
|
|
@@ -7552,7 +7557,7 @@ const lc = [
|
|
|
7552
7557
|
}
|
|
7553
7558
|
) })
|
|
7554
7559
|
] });
|
|
7555
|
-
}, ut = (t, e, n) => `${t}?share=${e}${n ? `&uuid=${n}` : ""}`,
|
|
7560
|
+
}, ut = (t, e, n) => `${t}?share=${e}${n ? `&uuid=${n}` : ""}`, fc = ({
|
|
7556
7561
|
title: t,
|
|
7557
7562
|
link: e,
|
|
7558
7563
|
referrer: n
|
|
@@ -7595,7 +7600,7 @@ ${ut(e, "mailto", n)}&src=email`
|
|
|
7595
7600
|
onClick: (r, s) => (r.preventDefault(), r.stopPropagation(), navigator.clipboard.writeText(s))
|
|
7596
7601
|
}
|
|
7597
7602
|
];
|
|
7598
|
-
const
|
|
7603
|
+
const mc = "shareLinks_", sd = ({
|
|
7599
7604
|
title: t,
|
|
7600
7605
|
link: e,
|
|
7601
7606
|
referrer: n,
|
|
@@ -7604,7 +7609,7 @@ const fc = "shareLinks_", ad = ({
|
|
|
7604
7609
|
variant: i = "default",
|
|
7605
7610
|
className: o = ""
|
|
7606
7611
|
}) => {
|
|
7607
|
-
const c = V(), f =
|
|
7612
|
+
const c = V(), f = fc({ title: t, link: e, referrer: n });
|
|
7608
7613
|
return /* @__PURE__ */ a.jsxs("aside", { className: S("share-links", s, i, o), children: [
|
|
7609
7614
|
/* @__PURE__ */ a.jsx("p", { className: "text-small", children: c.formatMessage({ id: "shareLinks_label" }) }),
|
|
7610
7615
|
/* @__PURE__ */ a.jsx("ul", { children: f.map(({ key: l, icon: d, url: u, shouldRender: m = !0, onClick: p }) => {
|
|
@@ -7624,14 +7629,14 @@ const fc = "shareLinks_", ad = ({
|
|
|
7624
7629
|
"data-gtm-event-context": `${r}-SocialButtons`,
|
|
7625
7630
|
"data-gtm-event-type": `${l}-click`,
|
|
7626
7631
|
"data-testid": "link",
|
|
7627
|
-
screenreaderText: c.formatMessage({ id: `${
|
|
7632
|
+
screenreaderText: c.formatMessage({ id: `${mc}link_${l}` }),
|
|
7628
7633
|
...g
|
|
7629
7634
|
}
|
|
7630
7635
|
) }, l);
|
|
7631
7636
|
}) })
|
|
7632
7637
|
] });
|
|
7633
7638
|
};
|
|
7634
|
-
const
|
|
7639
|
+
const id = ({ tabs: t, className: e = "", preventLocationChange: n }) => {
|
|
7635
7640
|
var l;
|
|
7636
7641
|
const r = (d, u, m) => (d || (d = `panel-${window.btoa(u)}-${m}`), d);
|
|
7637
7642
|
let s = t.findIndex((d) => d.current === !0);
|
|
@@ -7694,11 +7699,11 @@ const sd = ({ tabs: t, className: e = "", preventLocationChange: n }) => {
|
|
|
7694
7699
|
/* @__PURE__ */ a.jsx("div", { className: "tab-content", children: f })
|
|
7695
7700
|
] });
|
|
7696
7701
|
};
|
|
7697
|
-
const
|
|
7702
|
+
const pc = {
|
|
7698
7703
|
"2-1": 901,
|
|
7699
7704
|
"1-3": 769,
|
|
7700
7705
|
"1-1": 769
|
|
7701
|
-
},
|
|
7706
|
+
}, hc = ({
|
|
7702
7707
|
layout: t = "2-1",
|
|
7703
7708
|
hideOnMobile: e = !1,
|
|
7704
7709
|
className: n = "",
|
|
@@ -7706,10 +7711,10 @@ const mc = {
|
|
|
7706
7711
|
}) => {
|
|
7707
7712
|
const s = xt(!0);
|
|
7708
7713
|
let i = r;
|
|
7709
|
-
return K.Children.count(r) === 1 && (i = K.Children.toArray(r)[0], i.props && (i = i.props.children)), /* @__PURE__ */ a.jsx("section", { className: S("columns", `layout-${t}`, n), children: K.Children.map(i, (o, c) => e !== !1 && c === e && s && s <
|
|
7714
|
+
return K.Children.count(r) === 1 && (i = K.Children.toArray(r)[0], i.props && (i = i.props.children)), /* @__PURE__ */ a.jsx("section", { className: S("columns", `layout-${t}`, n), children: K.Children.map(i, (o, c) => e !== !1 && c === e && s && s < pc[t] ? null : o) });
|
|
7710
7715
|
};
|
|
7711
7716
|
let Nn;
|
|
7712
|
-
const Pn = "contactFooter_",
|
|
7717
|
+
const Pn = "contactFooter_", od = ({ onSuccess: t = async () => {
|
|
7713
7718
|
}, onFailure: e = () => {
|
|
7714
7719
|
} }) => {
|
|
7715
7720
|
const n = pe(null), [r, s] = K.useState(0), [i, o] = K.useState(!1), c = () => {
|
|
@@ -7736,7 +7741,7 @@ const Pn = "contactFooter_", id = ({ onSuccess: t = async () => {
|
|
|
7736
7741
|
/* @__PURE__ */ a.jsx(at, { className: "mailto-link", href: "mailto:hello@apolitical.co", children: /* @__PURE__ */ a.jsx(ye, { id: `${Pn}email` }) })
|
|
7737
7742
|
] }),
|
|
7738
7743
|
/* @__PURE__ */ a.jsx(
|
|
7739
|
-
|
|
7744
|
+
Vi,
|
|
7740
7745
|
{
|
|
7741
7746
|
functions: { onSuccess: t, onFailure: e },
|
|
7742
7747
|
gtm: { context: "FooterContactUsForm", event: "contact-form-submit-click" }
|
|
@@ -7746,19 +7751,19 @@ const Pn = "contactFooter_", id = ({ onSuccess: t = async () => {
|
|
|
7746
7751
|
}
|
|
7747
7752
|
)
|
|
7748
7753
|
] }) });
|
|
7749
|
-
},
|
|
7750
|
-
/* @__PURE__ */ a.jsx(
|
|
7751
|
-
/* @__PURE__ */ a.jsx(
|
|
7754
|
+
}, cd = ({ activeLink: t, ...e }) => /* @__PURE__ */ a.jsx(Ve, { children: /* @__PURE__ */ a.jsx(hc, { layout: "1-3", children: /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
|
|
7755
|
+
/* @__PURE__ */ a.jsx(uc, { activeLink: t }),
|
|
7756
|
+
/* @__PURE__ */ a.jsx(bi, { ...e })
|
|
7752
7757
|
] }) }) });
|
|
7753
|
-
const
|
|
7758
|
+
const Mn = "cookieBanner_", Rn = [
|
|
7754
7759
|
"apol-cookie-banner",
|
|
7755
7760
|
"apolitical-performance-cookie-consent",
|
|
7756
7761
|
"functional-cookie-consent"
|
|
7757
|
-
], Fn = new Date(Date.now() + 12 * 30 * 24 * 60 * 60 * 1e3),
|
|
7758
|
-
const t = V(), [e, n, r] = oa(
|
|
7762
|
+
], Fn = new Date(Date.now() + 12 * 30 * 24 * 60 * 60 * 1e3), gc = () => {
|
|
7763
|
+
const t = V(), [e, n, r] = oa(Rn), [s, i] = J(
|
|
7759
7764
|
!e["apol-cookie-banner"]
|
|
7760
7765
|
), o = () => {
|
|
7761
|
-
|
|
7766
|
+
Rn.forEach((d) => {
|
|
7762
7767
|
n(d, !0, {
|
|
7763
7768
|
path: "/",
|
|
7764
7769
|
expires: Fn,
|
|
@@ -7769,7 +7774,7 @@ const Rn = "cookieBanner_", Mn = [
|
|
|
7769
7774
|
n("apol-cookie-banner", !0, {
|
|
7770
7775
|
path: "/",
|
|
7771
7776
|
expires: Fn
|
|
7772
|
-
}),
|
|
7777
|
+
}), Rn.forEach((d) => {
|
|
7773
7778
|
if (d === "apol-cookie-banner") {
|
|
7774
7779
|
n(d, !0, {
|
|
7775
7780
|
path: "/",
|
|
@@ -7795,14 +7800,14 @@ const Rn = "cookieBanner_", Mn = [
|
|
|
7795
7800
|
className: "gtm-trackable",
|
|
7796
7801
|
"data-gtm-event-context": "cookie-banner",
|
|
7797
7802
|
"data-gtm-event-type": `cookie-${d.gtmType}-click`,
|
|
7798
|
-
children: t.formatMessage({ id: `${
|
|
7803
|
+
children: t.formatMessage({ id: `${Mn}buttons_${d.id}` })
|
|
7799
7804
|
});
|
|
7800
7805
|
}), /* @__PURE__ */ a.jsxs("aside", { id: "cookie-banner", className: "text-medium", children: [
|
|
7801
|
-
/* @__PURE__ */ a.jsx("h6", { children: t.formatMessage({ id: `${
|
|
7802
|
-
/* @__PURE__ */ a.jsx("p", { children: t.formatMessage({ id: `${
|
|
7806
|
+
/* @__PURE__ */ a.jsx("h6", { children: t.formatMessage({ id: `${Mn}title` }) }),
|
|
7807
|
+
/* @__PURE__ */ a.jsx("p", { children: t.formatMessage({ id: `${Mn}text` }) }),
|
|
7803
7808
|
/* @__PURE__ */ a.jsx(wt, { buttons: l })
|
|
7804
7809
|
] });
|
|
7805
|
-
},
|
|
7810
|
+
}, Re = {
|
|
7806
7811
|
platform: {
|
|
7807
7812
|
order: ["events", "courses", "articles"],
|
|
7808
7813
|
// An array guarantees the right order
|
|
@@ -7896,14 +7901,14 @@ const Rn = "cookieBanner_", Mn = [
|
|
|
7896
7901
|
}
|
|
7897
7902
|
};
|
|
7898
7903
|
const Xe = "footer_", Gt = "SiteFooter", Kr = ({ group: t }) => {
|
|
7899
|
-
const e =
|
|
7904
|
+
const e = Re[t].order || [];
|
|
7900
7905
|
let n = !1;
|
|
7901
|
-
return "text" in
|
|
7906
|
+
return "text" in Re[t] && (n = Re[t].text), /* @__PURE__ */ a.jsxs(bt, { children: [
|
|
7902
7907
|
/* @__PURE__ */ a.jsx("p", { className: "pre-title", children: /* @__PURE__ */ a.jsx(ye, { id: `${Xe}${t}` }) }),
|
|
7903
7908
|
Array.isArray(e) && e.length > 0 && /* @__PURE__ */ a.jsx("ul", { className: "text-medium", children: e.map((r) => {
|
|
7904
7909
|
if (["order", "child", "text"].includes(r))
|
|
7905
7910
|
return null;
|
|
7906
|
-
const { href: s, gtmType: i } =
|
|
7911
|
+
const { href: s, gtmType: i } = Re[t][r], o = {};
|
|
7907
7912
|
return ["legal"].includes(t) && (o.target = "_blank", o.rel = "noopener"), /* @__PURE__ */ a.jsx("li", { children: /* @__PURE__ */ a.jsx(
|
|
7908
7913
|
"a",
|
|
7909
7914
|
{
|
|
@@ -7953,12 +7958,12 @@ const Xe = "footer_", Gt = "SiteFooter", Kr = ({ group: t }) => {
|
|
|
7953
7958
|
),
|
|
7954
7959
|
/* @__PURE__ */ a.jsx("footer", { children: ["platform", "community", "company", "contact"].map((t) => /* @__PURE__ */ a.jsxs("div", { className: "group", children: [
|
|
7955
7960
|
/* @__PURE__ */ a.jsx(Kr, { group: t }),
|
|
7956
|
-
Object.keys(
|
|
7961
|
+
Object.keys(Re[t]).includes("child") && /* @__PURE__ */ a.jsx(Kr, { group: Re[t].child })
|
|
7957
7962
|
] }, t)) }),
|
|
7958
7963
|
/* @__PURE__ */ a.jsx("hr", {}),
|
|
7959
7964
|
/* @__PURE__ */ a.jsxs("div", { className: "sub-footer", children: [
|
|
7960
|
-
/* @__PURE__ */ a.jsx("ul", { children: Array.isArray(
|
|
7961
|
-
const e =
|
|
7965
|
+
/* @__PURE__ */ a.jsx("ul", { children: Array.isArray(Re.social.order) && Re.social.order.map((t) => {
|
|
7966
|
+
const e = Re.social[t];
|
|
7962
7967
|
return /* @__PURE__ */ a.jsx("li", { className: t, children: /* @__PURE__ */ a.jsx(
|
|
7963
7968
|
"a",
|
|
7964
7969
|
{
|
|
@@ -8281,7 +8286,7 @@ const Xe = "footer_", Gt = "SiteFooter", Kr = ({ group: t }) => {
|
|
|
8281
8286
|
t
|
|
8282
8287
|
);
|
|
8283
8288
|
};
|
|
8284
|
-
const
|
|
8289
|
+
const vc = { height: 67, height_desktop: 83 }, Ha = ({ showNavigation: t = !0 }) => {
|
|
8285
8290
|
const e = V(), n = Ee(Ie), r = xt(!0, !0), s = n && typeof n.id == "string", i = _t(
|
|
8286
8291
|
() => fe.getIsDesktopVersion(s, r),
|
|
8287
8292
|
[s, r]
|
|
@@ -8294,7 +8299,7 @@ const gc = { height: 67, height_desktop: 83 }, Ha = ({ showNavigation: t = !0 })
|
|
|
8294
8299
|
}
|
|
8295
8300
|
}), { headerIsVisible: f, menus: l, focusElements: d } = o;
|
|
8296
8301
|
qs({
|
|
8297
|
-
scrollPosition:
|
|
8302
|
+
scrollPosition: vc[`height${i.navigation ? "_desktop" : ""}`],
|
|
8298
8303
|
callbacks: {
|
|
8299
8304
|
scrollUp: () => {
|
|
8300
8305
|
!i && l.navigation || fe.shouldChangeHeaderIsVisible(!0, l, c);
|
|
@@ -8403,7 +8408,7 @@ const gc = { height: 67, height_desktop: 83 }, Ha = ({ showNavigation: t = !0 })
|
|
|
8403
8408
|
}
|
|
8404
8409
|
),
|
|
8405
8410
|
/* @__PURE__ */ a.jsx(
|
|
8406
|
-
|
|
8411
|
+
Ki,
|
|
8407
8412
|
{
|
|
8408
8413
|
id: "global-search",
|
|
8409
8414
|
handleToggle: {
|
|
@@ -8457,7 +8462,7 @@ const gc = { height: 67, height_desktop: 83 }, Ha = ({ showNavigation: t = !0 })
|
|
|
8457
8462
|
)
|
|
8458
8463
|
] });
|
|
8459
8464
|
};
|
|
8460
|
-
const
|
|
8465
|
+
const bc = () => {
|
|
8461
8466
|
const t = V();
|
|
8462
8467
|
return /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
|
|
8463
8468
|
/* @__PURE__ */ a.jsx(Ha, {}),
|
|
@@ -8470,7 +8475,7 @@ const vc = () => {
|
|
|
8470
8475
|
) }),
|
|
8471
8476
|
/* @__PURE__ */ a.jsx(Za, {})
|
|
8472
8477
|
] });
|
|
8473
|
-
},
|
|
8478
|
+
}, yc = ({
|
|
8474
8479
|
children: t,
|
|
8475
8480
|
additionalContent: { prepended: e, appended: n } = {},
|
|
8476
8481
|
reportError: r,
|
|
@@ -8493,7 +8498,7 @@ const vc = () => {
|
|
|
8493
8498
|
}), v = It(n, {
|
|
8494
8499
|
locale: c
|
|
8495
8500
|
}), b = {};
|
|
8496
|
-
return d !== "default" && (b[d] = !0), u !== "default" && (b[u] = !0), m !== "default" && (b[m] = !0), /* @__PURE__ */ a.jsx(Ps, { onError: r, fallback: /* @__PURE__ */ a.jsx(
|
|
8501
|
+
return d !== "default" && (b[d] = !0), u !== "default" && (b[u] = !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(
|
|
8497
8502
|
"div",
|
|
8498
8503
|
{
|
|
8499
8504
|
id: "wrapper",
|
|
@@ -8518,7 +8523,7 @@ const vc = () => {
|
|
|
8518
8523
|
] }),
|
|
8519
8524
|
v && /* @__PURE__ */ a.jsx("div", { className: "additional-content appended", children: v }),
|
|
8520
8525
|
l && /* @__PURE__ */ a.jsx(Za, {}),
|
|
8521
|
-
/* @__PURE__ */ a.jsx(
|
|
8526
|
+
/* @__PURE__ */ a.jsx(gc, {})
|
|
8522
8527
|
]
|
|
8523
8528
|
}
|
|
8524
8529
|
) }) });
|
|
@@ -8541,7 +8546,7 @@ const vc = () => {
|
|
|
8541
8546
|
WorkAndTheEconomy: "work-and-the-economy"
|
|
8542
8547
|
},
|
|
8543
8548
|
"from the community": "community"
|
|
8544
|
-
},
|
|
8549
|
+
}, _c = {
|
|
8545
8550
|
getTagDetails: (t) => {
|
|
8546
8551
|
if (t.includes("topic_")) {
|
|
8547
8552
|
if (t = On.topic[t.replace("topic_", "")], t) {
|
|
@@ -8553,7 +8558,7 @@ const vc = () => {
|
|
|
8553
8558
|
return On[t] ? (t = On[t], { id: t, text: `${Gr.default}${t}` }) : null;
|
|
8554
8559
|
}
|
|
8555
8560
|
};
|
|
8556
|
-
const
|
|
8561
|
+
const ld = ({
|
|
8557
8562
|
tags: t = [],
|
|
8558
8563
|
color: e = "default",
|
|
8559
8564
|
forceOneLine: n = !1,
|
|
@@ -8569,7 +8574,7 @@ const cd = ({
|
|
|
8569
8574
|
return t.forEach((l) => {
|
|
8570
8575
|
if (!l)
|
|
8571
8576
|
return;
|
|
8572
|
-
const d =
|
|
8577
|
+
const d = _c.getTagDetails(l);
|
|
8573
8578
|
d && f.push(d);
|
|
8574
8579
|
}), f.length < 1 ? null : /* @__PURE__ */ a.jsx(
|
|
8575
8580
|
"ul",
|
|
@@ -8593,7 +8598,7 @@ const cd = ({
|
|
|
8593
8598
|
}
|
|
8594
8599
|
);
|
|
8595
8600
|
};
|
|
8596
|
-
const
|
|
8601
|
+
const dd = ({
|
|
8597
8602
|
members: { data: t = [], total: e = t.length },
|
|
8598
8603
|
hasNextPage: n = !1,
|
|
8599
8604
|
loadNextPage: r = () => {
|
|
@@ -8623,7 +8628,7 @@ const ld = ({
|
|
|
8623
8628
|
)
|
|
8624
8629
|
] });
|
|
8625
8630
|
};
|
|
8626
|
-
const
|
|
8631
|
+
const ud = ({
|
|
8627
8632
|
element: t = "p",
|
|
8628
8633
|
data: {
|
|
8629
8634
|
timeLeftToFinish: e,
|
|
@@ -8671,7 +8676,7 @@ const dd = ({
|
|
|
8671
8676
|
] })
|
|
8672
8677
|
});
|
|
8673
8678
|
};
|
|
8674
|
-
const
|
|
8679
|
+
const xc = ({
|
|
8675
8680
|
element: t = "span",
|
|
8676
8681
|
sectionId: e,
|
|
8677
8682
|
subsectionId: n,
|
|
@@ -8682,7 +8687,7 @@ const _c = ({
|
|
|
8682
8687
|
"data-number": `${e}.${n}`,
|
|
8683
8688
|
children: r
|
|
8684
8689
|
});
|
|
8685
|
-
const
|
|
8690
|
+
const wc = ({
|
|
8686
8691
|
size: t = "default",
|
|
8687
8692
|
completionTime: e,
|
|
8688
8693
|
icon: n,
|
|
@@ -8699,7 +8704,7 @@ const xc = ({
|
|
|
8699
8704
|
i ? /* @__PURE__ */ a.jsx("span", { className: "additional", children: i }) : null
|
|
8700
8705
|
] });
|
|
8701
8706
|
};
|
|
8702
|
-
const
|
|
8707
|
+
const fd = ({
|
|
8703
8708
|
course: {
|
|
8704
8709
|
articles: t,
|
|
8705
8710
|
canAccessCourse: e,
|
|
@@ -8749,11 +8754,11 @@ const ud = ({
|
|
|
8749
8754
|
isIntroduction: j,
|
|
8750
8755
|
optional: k,
|
|
8751
8756
|
slug: x,
|
|
8752
|
-
subsectionId:
|
|
8753
|
-
title:
|
|
8757
|
+
subsectionId: D,
|
|
8758
|
+
title: R,
|
|
8754
8759
|
type: Z
|
|
8755
8760
|
}) => {
|
|
8756
|
-
const
|
|
8761
|
+
const M = s && e || j, O = {};
|
|
8757
8762
|
return b && (O.style = { "--image": `url(${b})` }), /* @__PURE__ */ a.jsx(
|
|
8758
8763
|
"li",
|
|
8759
8764
|
{
|
|
@@ -8762,30 +8767,30 @@ const ud = ({
|
|
|
8762
8767
|
discussion: y === Tt.DISCUSSION,
|
|
8763
8768
|
quiz: y === Tt.QUIZ,
|
|
8764
8769
|
completed: g && y === Tt.ARTICLE,
|
|
8765
|
-
locked: !
|
|
8770
|
+
locked: !M
|
|
8766
8771
|
}),
|
|
8767
8772
|
...O,
|
|
8768
8773
|
children: /* @__PURE__ */ a.jsx(
|
|
8769
8774
|
at,
|
|
8770
8775
|
{
|
|
8771
|
-
href:
|
|
8776
|
+
href: M ? `/microcourses/en/${c}/${x}` : void 0,
|
|
8772
8777
|
fallbackElement: "span",
|
|
8773
8778
|
className: "inner",
|
|
8774
|
-
gtmContext: `MicrocourseOutline${zs(
|
|
8779
|
+
gtmContext: `MicrocourseOutline${zs(R)}`,
|
|
8775
8780
|
gtmType: "article-click",
|
|
8776
8781
|
children: /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
|
|
8777
8782
|
/* @__PURE__ */ a.jsx(
|
|
8778
|
-
|
|
8783
|
+
xc,
|
|
8779
8784
|
{
|
|
8780
8785
|
sectionId: i,
|
|
8781
|
-
subsectionId:
|
|
8782
|
-
title:
|
|
8786
|
+
subsectionId: D,
|
|
8787
|
+
title: R,
|
|
8783
8788
|
className: "course-title"
|
|
8784
8789
|
}
|
|
8785
8790
|
),
|
|
8786
8791
|
" ",
|
|
8787
8792
|
/* @__PURE__ */ a.jsx(
|
|
8788
|
-
|
|
8793
|
+
wc,
|
|
8789
8794
|
{
|
|
8790
8795
|
completionTime: _,
|
|
8791
8796
|
icon: v,
|
|
@@ -8806,7 +8811,7 @@ const ud = ({
|
|
|
8806
8811
|
}
|
|
8807
8812
|
);
|
|
8808
8813
|
};
|
|
8809
|
-
const
|
|
8814
|
+
const md = ({
|
|
8810
8815
|
isComplete: t = !1,
|
|
8811
8816
|
onClick: e,
|
|
8812
8817
|
...n
|
|
@@ -8900,7 +8905,7 @@ const we = "discussion_form_", ar = ({
|
|
|
8900
8905
|
}
|
|
8901
8906
|
const x = async (w) => {
|
|
8902
8907
|
var L;
|
|
8903
|
-
if (w.preventDefault(), w.stopPropagation(), !u || !u.id || !e ||
|
|
8908
|
+
if (w.preventDefault(), w.stopPropagation(), !u || !u.id || !e || R)
|
|
8904
8909
|
return;
|
|
8905
8910
|
Ot && clearTimeout(Ot), v("submitting");
|
|
8906
8911
|
const $ = window.location.pathname;
|
|
@@ -8935,7 +8940,7 @@ const we = "discussion_form_", ar = ({
|
|
|
8935
8940
|
await Ks(1e3), f.callback && await f.callback(U), Ot = setTimeout(() => {
|
|
8936
8941
|
p(""), v("submitted");
|
|
8937
8942
|
const I = new Event("discussionFormSubmitted");
|
|
8938
|
-
document.dispatchEvent(I),
|
|
8943
|
+
document.dispatchEvent(I), D();
|
|
8939
8944
|
}, 500);
|
|
8940
8945
|
} catch (U) {
|
|
8941
8946
|
const I = U;
|
|
@@ -8950,14 +8955,14 @@ const we = "discussion_form_", ar = ({
|
|
|
8950
8955
|
`${we}error_tooMany`,
|
|
8951
8956
|
t.type,
|
|
8952
8957
|
"action"
|
|
8953
|
-
) : I != null && I.message.includes("400") && (z = `${we}error`), _(z),
|
|
8958
|
+
) : I != null && I.message.includes("400") && (z = `${we}error`), _(z), D();
|
|
8954
8959
|
}
|
|
8955
|
-
},
|
|
8960
|
+
}, D = () => {
|
|
8956
8961
|
Ot = setTimeout(() => {
|
|
8957
8962
|
_(!1), v(!1);
|
|
8958
8963
|
}, 5e3);
|
|
8959
|
-
},
|
|
8960
|
-
return (n.isEditing && !Z || c.cancel) &&
|
|
8964
|
+
}, R = !m || !ni(m), Z = y === "submitting", M = [];
|
|
8965
|
+
return (n.isEditing && !Z || c.cancel) && M.push({
|
|
8961
8966
|
variant: "secondary",
|
|
8962
8967
|
size: { mobile: "small", 600: "medium" },
|
|
8963
8968
|
onClick: f.handleCancel,
|
|
@@ -8966,7 +8971,7 @@ const we = "discussion_form_", ar = ({
|
|
|
8966
8971
|
"data-gtm-event-type": `cancel-${t.type}-click`,
|
|
8967
8972
|
disabled: !c.cancel && (!u || !u.id || !m),
|
|
8968
8973
|
children: d.formatMessage({ id: `${we}cancel` })
|
|
8969
|
-
}),
|
|
8974
|
+
}), M.push({
|
|
8970
8975
|
variant: "primary",
|
|
8971
8976
|
size: { mobile: "small", 600: "medium" },
|
|
8972
8977
|
onClick: (w) => {
|
|
@@ -8982,7 +8987,7 @@ const we = "discussion_form_", ar = ({
|
|
|
8982
8987
|
"data-gtm-event-context": l,
|
|
8983
8988
|
"data-gtm-event-type": `${n.isEditing ? "save" : "submit"}-${t.type}-click`,
|
|
8984
8989
|
"data-testid": "save-button",
|
|
8985
|
-
disabled: !u || !u.id || !e ||
|
|
8990
|
+
disabled: !u || !u.id || !e || R || Z || n.isEditing && m === n.isEditing.text,
|
|
8986
8991
|
children: d.formatMessage({
|
|
8987
8992
|
id: `${we}${Z ? n.isEditing ? "saving" : "posting" : n.isEditing ? "save" : "post"}`
|
|
8988
8993
|
})
|
|
@@ -9006,7 +9011,7 @@ const we = "discussion_form_", ar = ({
|
|
|
9006
9011
|
),
|
|
9007
9012
|
/* @__PURE__ */ a.jsx(be, { element: "label", showOnFocus: !1, htmlFor: `${k}-input`, children: $e(d.formatMessage, `${we}label`, t.type, "action") }),
|
|
9008
9013
|
/* @__PURE__ */ a.jsx(
|
|
9009
|
-
|
|
9014
|
+
Ms,
|
|
9010
9015
|
{
|
|
9011
9016
|
ref: r,
|
|
9012
9017
|
id: `${k}-input`,
|
|
@@ -9040,7 +9045,7 @@ const we = "discussion_form_", ar = ({
|
|
|
9040
9045
|
}
|
|
9041
9046
|
)
|
|
9042
9047
|
}) }),
|
|
9043
|
-
/* @__PURE__ */ a.jsx(wt, { buttons:
|
|
9048
|
+
/* @__PURE__ */ a.jsx(wt, { buttons: M }),
|
|
9044
9049
|
y === "submitted" && n.showSuccessMessage && /* @__PURE__ */ a.jsx(Wt, { className: "success", "data-testid": "success", children: $e(d.formatMessage, `${we}success`, t.type, "action") }),
|
|
9045
9050
|
g && /* @__PURE__ */ a.jsx(Wt, { id: "error-message", className: "error", "data-testid": "error", children: c.error ? c.error : typeof g == "string" ? g.includes(" ") ? g : d.formatMessage(
|
|
9046
9051
|
{ id: g },
|
|
@@ -9080,14 +9085,14 @@ const we = "discussion_form_", ar = ({
|
|
|
9080
9085
|
...l
|
|
9081
9086
|
}
|
|
9082
9087
|
);
|
|
9083
|
-
},
|
|
9088
|
+
}, jc = {
|
|
9084
9089
|
showForm: !1
|
|
9085
|
-
}, sr = nn(
|
|
9090
|
+
}, sr = nn(jc), kc = ({ children: t }) => {
|
|
9086
9091
|
const [e, n] = J({
|
|
9087
9092
|
showForm: !1
|
|
9088
9093
|
});
|
|
9089
9094
|
return /* @__PURE__ */ a.jsx(sr.Provider, { value: { ...e, updateConversation: n }, children: t });
|
|
9090
|
-
},
|
|
9095
|
+
}, Tc = ({
|
|
9091
9096
|
question: t,
|
|
9092
9097
|
answer: e,
|
|
9093
9098
|
reply: n
|
|
@@ -9095,11 +9100,11 @@ const we = "discussion_form_", ar = ({
|
|
|
9095
9100
|
...t && { questionSlug: t },
|
|
9096
9101
|
...e && { answerSlug: e },
|
|
9097
9102
|
...n && { replySlug: n }
|
|
9098
|
-
}),
|
|
9103
|
+
}), Ec = (t, e = 10) => !t || t.length === 0 ? [] : t.slice(0, e);
|
|
9099
9104
|
let vt = !1;
|
|
9100
|
-
const
|
|
9105
|
+
const An = () => {
|
|
9101
9106
|
vt !== !1 && (clearTimeout(vt), vt = !1);
|
|
9102
|
-
},
|
|
9107
|
+
}, Dn = 5, Sc = ({
|
|
9103
9108
|
element: t = "div",
|
|
9104
9109
|
likes: e = 0,
|
|
9105
9110
|
peopleWhoLiked: n = !1,
|
|
@@ -9116,24 +9121,24 @@ const Dn = () => {
|
|
|
9116
9121
|
p(s);
|
|
9117
9122
|
}, [s]);
|
|
9118
9123
|
const [d, u] = J(e), [m, p] = J(s), [g, _] = J(!1), [y, v] = J(!1), b = _t(
|
|
9119
|
-
() =>
|
|
9124
|
+
() => Ec(n, Dn),
|
|
9120
9125
|
[n]
|
|
9121
9126
|
), j = (x) => {
|
|
9122
9127
|
if (x.preventDefault(), x.stopPropagation(), v(!1), vt)
|
|
9123
|
-
return
|
|
9124
|
-
if (
|
|
9128
|
+
return An(), !1;
|
|
9129
|
+
if (An(), g || !o)
|
|
9125
9130
|
return !1;
|
|
9126
9131
|
vt = setTimeout(k, 350);
|
|
9127
9132
|
}, k = async () => {
|
|
9128
|
-
if (
|
|
9133
|
+
if (An(), g || !o)
|
|
9129
9134
|
return !1;
|
|
9130
9135
|
let x = m ? d - 1 : d + 1;
|
|
9131
9136
|
x < 0 && (x = 0), _(!0), u(x), p(!m);
|
|
9132
9137
|
try {
|
|
9133
9138
|
if (i && i.slugs) {
|
|
9134
|
-
const
|
|
9135
|
-
m ? await f(
|
|
9136
|
-
...
|
|
9139
|
+
const D = Tc(i.slugs);
|
|
9140
|
+
m ? await f(D) : await c({
|
|
9141
|
+
...D,
|
|
9137
9142
|
payload: { contentPath: window.location.pathname }
|
|
9138
9143
|
});
|
|
9139
9144
|
}
|
|
@@ -9199,20 +9204,20 @@ const Dn = () => {
|
|
|
9199
9204
|
)
|
|
9200
9205
|
}
|
|
9201
9206
|
),
|
|
9202
|
-
n && /* @__PURE__ */ a.jsx(
|
|
9207
|
+
n && /* @__PURE__ */ a.jsx(_i, { isOpen: y, isLoading: n.length === 0, children: n.length && /* @__PURE__ */ a.jsxs("ul", { children: [
|
|
9203
9208
|
b.map((x) => typeof x == "string" || !x.name ? null : /* @__PURE__ */ a.jsx("li", { children: /* @__PURE__ */ a.jsx(
|
|
9204
9209
|
at,
|
|
9205
9210
|
{
|
|
9206
9211
|
href: x.id ? `/profiles/${x.id}` : void 0,
|
|
9207
9212
|
gtmContext: "Likes",
|
|
9208
9213
|
gtmType: "liked-name-click",
|
|
9209
|
-
onClick: (
|
|
9214
|
+
onClick: (D) => D == null ? void 0 : D.stopPropagation(),
|
|
9210
9215
|
children: x.name
|
|
9211
9216
|
}
|
|
9212
9217
|
) }, x.id || window.btoa(x.name))),
|
|
9213
|
-
e >
|
|
9218
|
+
e > Dn && /* @__PURE__ */ a.jsx("li", { children: l.formatMessage(
|
|
9214
9219
|
{ id: "discussion_likes_more" },
|
|
9215
|
-
{ number: e -
|
|
9220
|
+
{ number: e - Dn }
|
|
9216
9221
|
) })
|
|
9217
9222
|
] }) })
|
|
9218
9223
|
] })
|
|
@@ -9221,7 +9226,7 @@ const Dn = () => {
|
|
|
9221
9226
|
const e = {};
|
|
9222
9227
|
return Object.keys(t).forEach((n) => n.includes("Id") ? e[n] = t[n] : e[`${n}Slug`] = t[n]), e;
|
|
9223
9228
|
}, on = (t, e) => t && !e;
|
|
9224
|
-
const
|
|
9229
|
+
const Me = "discussion_", Cc = 280, cn = ({
|
|
9225
9230
|
element: t = "div",
|
|
9226
9231
|
content: e,
|
|
9227
9232
|
userHasPermissions: n = !0,
|
|
@@ -9253,7 +9258,7 @@ const Re = "discussion_", Sc = 280, cn = ({
|
|
|
9253
9258
|
children: _,
|
|
9254
9259
|
isTruncated: y = !1
|
|
9255
9260
|
}) => {
|
|
9256
|
-
const v = V(), b = Ee(Ie), j = Ee(sr), { author: k, canLike: x, createdAt:
|
|
9261
|
+
const v = V(), b = Ee(Ie), j = Ee(sr), { author: k, canLike: x, createdAt: D, id: R, likes: Z = 0, userLiked: M, comments: O = 0 } = e, C = b && b.id && typeof k != "string" && k.id && k.id === b.id || !1, E = typeof x == "boolean" ? x : n ? !C : !1, w = C && (!e.createdAt || Ys(e.createdAt, 10, "seconds")), $ = pe(null), [L, U] = J({
|
|
9257
9262
|
body: e && e.body || "",
|
|
9258
9263
|
isEditing: !1,
|
|
9259
9264
|
didEdit: e && e.isEdited || !1
|
|
@@ -9286,22 +9291,22 @@ const Re = "discussion_", Sc = 280, cn = ({
|
|
|
9286
9291
|
};
|
|
9287
9292
|
if (r || !e || e.type === "answer" && (!e.slugs || !e.slugs.question))
|
|
9288
9293
|
return /* @__PURE__ */ a.jsx(Se, { className: "discussion-card discussion-post" });
|
|
9289
|
-
const te = y ? et(L.body,
|
|
9294
|
+
const te = y ? et(L.body, Cc) : L.body, G = async (F) => {
|
|
9290
9295
|
F || (F = ""), W("");
|
|
9291
9296
|
try {
|
|
9292
|
-
if (!
|
|
9297
|
+
if (!Rs(F, L.body)) {
|
|
9293
9298
|
const oe = e.type === "question" ? { title: F } : { body: F };
|
|
9294
9299
|
await f(Qr(e.slugs), oe);
|
|
9295
9300
|
}
|
|
9296
9301
|
U({ body: F, isEditing: !1, didEdit: !0 });
|
|
9297
9302
|
} catch {
|
|
9298
|
-
W(`${
|
|
9303
|
+
W(`${Me}form_error`);
|
|
9299
9304
|
}
|
|
9300
9305
|
}, Y = () => {
|
|
9301
9306
|
j && j.updateConversation && j.updateConversation({ showForm: !0 }), setTimeout(() => {
|
|
9302
9307
|
var Ne, Ce, qe;
|
|
9303
|
-
const oe = `reply-form-${(e.type === "answer" ? e.slug : ((Ne = e.slugs) == null ? void 0 : Ne.reply) || ((Ce = e.slugs) == null ? void 0 : Ce.answer) || ((qe = e.slugs) == null ? void 0 : qe.question) || "").toLowerCase().slice(-15)}`,
|
|
9304
|
-
ve && ve.focus(),
|
|
9308
|
+
const oe = `reply-form-${(e.type === "answer" ? e.slug : ((Ne = e.slugs) == null ? void 0 : Ne.reply) || ((Ce = e.slugs) == null ? void 0 : Ce.answer) || ((qe = e.slugs) == null ? void 0 : qe.question) || "").toLowerCase().slice(-15)}`, A = document.getElementById(oe), ve = document.getElementById(`${oe}-input`);
|
|
9309
|
+
ve && ve.focus(), A && A.scrollIntoView({ behavior: "smooth" });
|
|
9305
9310
|
}, 0);
|
|
9306
9311
|
}, ee = async () => {
|
|
9307
9312
|
z(!1);
|
|
@@ -9312,15 +9317,15 @@ const Re = "discussion_", Sc = 280, cn = ({
|
|
|
9312
9317
|
}
|
|
9313
9318
|
}, re = [
|
|
9314
9319
|
{
|
|
9315
|
-
text: v.formatMessage({ id: `${
|
|
9320
|
+
text: v.formatMessage({ id: `${Me}moreMenu_report` }),
|
|
9316
9321
|
onClick: (F) => {
|
|
9317
9322
|
F.stopPropagation();
|
|
9318
9323
|
},
|
|
9319
9324
|
href: `mailto:community@apolitical.co?subject=${encodeURI(
|
|
9320
|
-
v.formatMessage({ id: `${
|
|
9325
|
+
v.formatMessage({ id: `${Me}report_subject` })
|
|
9321
9326
|
)}&body=${encodeURI(
|
|
9322
9327
|
v.formatMessage(
|
|
9323
|
-
{ id: `${
|
|
9328
|
+
{ id: `${Me}report_body` },
|
|
9324
9329
|
{
|
|
9325
9330
|
contentType: e.type || "",
|
|
9326
9331
|
contentSlug: e.slug || "",
|
|
@@ -9333,7 +9338,7 @@ const Re = "discussion_", Sc = 280, cn = ({
|
|
|
9333
9338
|
];
|
|
9334
9339
|
return n && C && re.push(
|
|
9335
9340
|
{
|
|
9336
|
-
text: v.formatMessage({ id: `${
|
|
9341
|
+
text: v.formatMessage({ id: `${Me}moreMenu_edit` }),
|
|
9337
9342
|
onClick: () => U({ ...L, isEditing: !0 }),
|
|
9338
9343
|
icon: "pencil-paper",
|
|
9339
9344
|
className: "gtm-trackable",
|
|
@@ -9341,7 +9346,7 @@ const Re = "discussion_", Sc = 280, cn = ({
|
|
|
9341
9346
|
"data-gtm-event-type": `edit-${e.type}-click`
|
|
9342
9347
|
},
|
|
9343
9348
|
{
|
|
9344
|
-
text: v.formatMessage({ id: `${
|
|
9349
|
+
text: v.formatMessage({ id: `${Me}moreMenu_delete` }),
|
|
9345
9350
|
onClick: (F) => {
|
|
9346
9351
|
F.preventDefault(), F.stopPropagation(), z(!0);
|
|
9347
9352
|
},
|
|
@@ -9349,7 +9354,7 @@ const Re = "discussion_", Sc = 280, cn = ({
|
|
|
9349
9354
|
className: "gtm-trackable",
|
|
9350
9355
|
"data-gtm-event-context": g,
|
|
9351
9356
|
"data-gtm-event-type": `delete-${e.type}-click`,
|
|
9352
|
-
...
|
|
9357
|
+
...Xo(`delete-${e.slug}-modal`, I)
|
|
9353
9358
|
}
|
|
9354
9359
|
), K.createElement(t, {
|
|
9355
9360
|
className: S("discussion-post", p, {
|
|
@@ -9361,7 +9366,7 @@ const Re = "discussion_", Sc = 280, cn = ({
|
|
|
9361
9366
|
/* @__PURE__ */ a.jsxs(
|
|
9362
9367
|
"div",
|
|
9363
9368
|
{
|
|
9364
|
-
id:
|
|
9369
|
+
id: R || e.slug,
|
|
9365
9370
|
className: S("discussion-card", e.type, {
|
|
9366
9371
|
editing: L.isEditing,
|
|
9367
9372
|
"has-link": m.post && !L.isEditing
|
|
@@ -9374,7 +9379,7 @@ const Re = "discussion_", Sc = 280, cn = ({
|
|
|
9374
9379
|
tr,
|
|
9375
9380
|
{
|
|
9376
9381
|
member: k,
|
|
9377
|
-
additionalContent: { createdAt:
|
|
9382
|
+
additionalContent: { createdAt: D, didEdit: L.didEdit },
|
|
9378
9383
|
className: typeof k != "string" && k.id === s ? "highlighted" : "",
|
|
9379
9384
|
gtmContext: g,
|
|
9380
9385
|
gtmType: "profile-click"
|
|
@@ -9417,7 +9422,7 @@ const Re = "discussion_", Sc = 280, cn = ({
|
|
|
9417
9422
|
className: "gtm-trackable",
|
|
9418
9423
|
"data-gtm-event-context": g,
|
|
9419
9424
|
"data-gtm-event-type": "title-click",
|
|
9420
|
-
children: /* @__PURE__ */ a.jsx(qt, { options: { overrides: { a:
|
|
9425
|
+
children: /* @__PURE__ */ a.jsx(qt, { options: { overrides: { a: gi } }, children: te })
|
|
9421
9426
|
}
|
|
9422
9427
|
) : /* @__PURE__ */ a.jsx(
|
|
9423
9428
|
qt,
|
|
@@ -9438,12 +9443,12 @@ const Re = "discussion_", Sc = 280, cn = ({
|
|
|
9438
9443
|
"data-testid": `${e.type}-actions`,
|
|
9439
9444
|
children: [
|
|
9440
9445
|
!i.likes && /* @__PURE__ */ a.jsx(
|
|
9441
|
-
|
|
9446
|
+
Sc,
|
|
9442
9447
|
{
|
|
9443
9448
|
element: "li",
|
|
9444
9449
|
likes: Z,
|
|
9445
9450
|
isShort: !1,
|
|
9446
|
-
userLiked:
|
|
9451
|
+
userLiked: M,
|
|
9447
9452
|
content: { type: e.type, slugs: e.slugs },
|
|
9448
9453
|
canLike: E,
|
|
9449
9454
|
peopleWhoLiked: e.peopleWhoLiked,
|
|
@@ -9474,13 +9479,13 @@ const Re = "discussion_", Sc = 280, cn = ({
|
|
|
9474
9479
|
"data-gtm-event-context": g,
|
|
9475
9480
|
"data-gtm-event-type": `answer-${e.type}-click`,
|
|
9476
9481
|
screenreaderText: v.formatMessage(
|
|
9477
|
-
{ id: `${
|
|
9482
|
+
{ id: `${Me}comments_screenReader` },
|
|
9478
9483
|
{ count: O }
|
|
9479
9484
|
)
|
|
9480
9485
|
}
|
|
9481
9486
|
),
|
|
9482
9487
|
/* @__PURE__ */ a.jsx("span", { children: v.formatMessage(
|
|
9483
|
-
{ id: `${
|
|
9488
|
+
{ id: `${Me}comments` },
|
|
9484
9489
|
{ count: O }
|
|
9485
9490
|
) })
|
|
9486
9491
|
]
|
|
@@ -9493,11 +9498,11 @@ const Re = "discussion_", Sc = 280, cn = ({
|
|
|
9493
9498
|
size: "medium",
|
|
9494
9499
|
styling: { muted: !0 },
|
|
9495
9500
|
onClick: Y,
|
|
9496
|
-
children: v.formatMessage({ id: `${
|
|
9501
|
+
children: v.formatMessage({ id: `${Me}reply` })
|
|
9497
9502
|
}
|
|
9498
9503
|
) }),
|
|
9499
9504
|
/* @__PURE__ */ a.jsx(
|
|
9500
|
-
|
|
9505
|
+
cc,
|
|
9501
9506
|
{
|
|
9502
9507
|
element: "li",
|
|
9503
9508
|
id: `more-${e.slug}`,
|
|
@@ -9563,7 +9568,7 @@ const Re = "discussion_", Sc = 280, cn = ({
|
|
|
9563
9568
|
] })
|
|
9564
9569
|
});
|
|
9565
9570
|
};
|
|
9566
|
-
const In = "discussion_responses_",
|
|
9571
|
+
const In = "discussion_responses_", $c = ({ type: t = "answer", responses: e = 0 }) => {
|
|
9567
9572
|
const n = V();
|
|
9568
9573
|
return e = parseInt(e), /* @__PURE__ */ a.jsxs("div", { className: "responses-heading", children: [
|
|
9569
9574
|
/* @__PURE__ */ a.jsx("h4", { children: n.formatMessage(
|
|
@@ -9573,7 +9578,7 @@ const In = "discussion_responses_", Cc = ({ type: t = "answer", responses: e = 0
|
|
|
9573
9578
|
e === 0 && /* @__PURE__ */ a.jsx("p", { children: $e(n.formatMessage, `${In}empty`, t, t) })
|
|
9574
9579
|
] });
|
|
9575
9580
|
};
|
|
9576
|
-
const
|
|
9581
|
+
const Nc = ({
|
|
9577
9582
|
loadMore: { isLoading: t, hasNextPage: e, loadNextPage: n } = {
|
|
9578
9583
|
isLoading: !1,
|
|
9579
9584
|
hasNextPage: !1,
|
|
@@ -9604,7 +9609,7 @@ const $c = ({
|
|
|
9604
9609
|
),
|
|
9605
9610
|
r && o.showForm && /* @__PURE__ */ a.jsx(ar, { ...r })
|
|
9606
9611
|
] });
|
|
9607
|
-
},
|
|
9612
|
+
}, Pc = "post", Mc = "reply", Ya = "00000000-0000-0000-0000-000000000000";
|
|
9608
9613
|
function ir({ queryClient: t, queryKey: e }) {
|
|
9609
9614
|
function n(r, s, i) {
|
|
9610
9615
|
t.setQueryData(e, i);
|
|
@@ -9635,7 +9640,7 @@ function Rc() {
|
|
|
9635
9640
|
}
|
|
9636
9641
|
};
|
|
9637
9642
|
}
|
|
9638
|
-
function
|
|
9643
|
+
function Fc() {
|
|
9639
9644
|
return {
|
|
9640
9645
|
latest_children: {
|
|
9641
9646
|
like: [],
|
|
@@ -9663,12 +9668,12 @@ function Ka(t) {
|
|
|
9663
9668
|
}
|
|
9664
9669
|
};
|
|
9665
9670
|
}
|
|
9666
|
-
function
|
|
9671
|
+
function Oc({ content: t }) {
|
|
9667
9672
|
return {
|
|
9668
9673
|
content: t,
|
|
9669
9674
|
id: Ya,
|
|
9670
9675
|
time: (/* @__PURE__ */ new Date()).toISOString(),
|
|
9671
|
-
verb:
|
|
9676
|
+
verb: Pc
|
|
9672
9677
|
};
|
|
9673
9678
|
}
|
|
9674
9679
|
function Jr({ activity: t, user: e }) {
|
|
@@ -9704,14 +9709,14 @@ function Ga({ activity: t, user: e }) {
|
|
|
9704
9709
|
like: (((s = t.own_reactions) == null ? void 0 : s.like) || []).filter(({ user_id: i }) => i !== e.id)
|
|
9705
9710
|
});
|
|
9706
9711
|
}
|
|
9707
|
-
function
|
|
9712
|
+
function Ac({ activityId: t, replyId: e, content: n }) {
|
|
9708
9713
|
return {
|
|
9709
9714
|
activity_id: t,
|
|
9710
9715
|
data: {
|
|
9711
9716
|
content: n
|
|
9712
9717
|
},
|
|
9713
9718
|
id: Ya,
|
|
9714
|
-
kind:
|
|
9719
|
+
kind: Mc,
|
|
9715
9720
|
parent: e || ""
|
|
9716
9721
|
};
|
|
9717
9722
|
}
|
|
@@ -9721,7 +9726,7 @@ function Xr({ reply: t, user: e }) {
|
|
|
9721
9726
|
...t,
|
|
9722
9727
|
user_id: n.id,
|
|
9723
9728
|
user: n,
|
|
9724
|
-
...
|
|
9729
|
+
...Fc()
|
|
9725
9730
|
};
|
|
9726
9731
|
}
|
|
9727
9732
|
function ea({ reply: t, reaction: e }) {
|
|
@@ -9806,7 +9811,7 @@ const Ja = () => {
|
|
|
9806
9811
|
object: "comment",
|
|
9807
9812
|
time: "2023-11-24T17:52:36.162000",
|
|
9808
9813
|
verb: "post"
|
|
9809
|
-
}),
|
|
9814
|
+
}), Ic = Object.freeze({
|
|
9810
9815
|
actor: `SU:${Be.id}`,
|
|
9811
9816
|
content: "some content 2",
|
|
9812
9817
|
duration: "5.53ms",
|
|
@@ -9816,7 +9821,7 @@ const Ja = () => {
|
|
|
9816
9821
|
object: "comment",
|
|
9817
9822
|
time: "2023-11-24T17:54:36.162000",
|
|
9818
9823
|
verb: "post"
|
|
9819
|
-
}),
|
|
9824
|
+
}), Lc = Object.freeze({
|
|
9820
9825
|
actor: `SU:${nt.id}`,
|
|
9821
9826
|
content: "some content 3",
|
|
9822
9827
|
duration: "5.53ms",
|
|
@@ -9826,7 +9831,7 @@ const Ja = () => {
|
|
|
9826
9831
|
object: "comment",
|
|
9827
9832
|
time: "2023-11-24T17:56:36.162000",
|
|
9828
9833
|
verb: "post"
|
|
9829
|
-
}),
|
|
9834
|
+
}), Bc = Object.freeze({
|
|
9830
9835
|
actor: `SU:${Be.id}`,
|
|
9831
9836
|
content: "some content 4",
|
|
9832
9837
|
duration: "5.53ms",
|
|
@@ -9889,7 +9894,7 @@ Object.freeze({
|
|
|
9889
9894
|
updated_at: "2023-08-31T07:11:38.677184Z"
|
|
9890
9895
|
},
|
|
9891
9896
|
kind: "reply",
|
|
9892
|
-
activity_id:
|
|
9897
|
+
activity_id: Ic.id,
|
|
9893
9898
|
data: {
|
|
9894
9899
|
content: "Some content 2..."
|
|
9895
9900
|
},
|
|
@@ -9909,7 +9914,7 @@ Object.freeze({
|
|
|
9909
9914
|
updated_at: "2023-08-31T07:11:38.677184Z"
|
|
9910
9915
|
},
|
|
9911
9916
|
kind: "reply",
|
|
9912
|
-
activity_id:
|
|
9917
|
+
activity_id: Lc.id,
|
|
9913
9918
|
data: {
|
|
9914
9919
|
content: "Some content 3..."
|
|
9915
9920
|
},
|
|
@@ -9929,7 +9934,7 @@ Object.freeze({
|
|
|
9929
9934
|
updated_at: "2023-08-31T07:11:38.677184Z"
|
|
9930
9935
|
},
|
|
9931
9936
|
kind: "reply",
|
|
9932
|
-
activity_id:
|
|
9937
|
+
activity_id: Bc.id,
|
|
9933
9938
|
data: {
|
|
9934
9939
|
content: "Some content 4..."
|
|
9935
9940
|
},
|
|
@@ -9937,7 +9942,7 @@ Object.freeze({
|
|
|
9937
9942
|
latest_children: {},
|
|
9938
9943
|
children_counts: {}
|
|
9939
9944
|
});
|
|
9940
|
-
function
|
|
9945
|
+
function qc({
|
|
9941
9946
|
mutationFn: t,
|
|
9942
9947
|
mutationHandlers: { mutate: e, error: n },
|
|
9943
9948
|
queryClient: r,
|
|
@@ -9947,7 +9952,7 @@ function Bc({
|
|
|
9947
9952
|
const { mutate: o } = je({
|
|
9948
9953
|
mutationFn: t,
|
|
9949
9954
|
onMutate: (c) => e((f) => {
|
|
9950
|
-
const l = Jr({ activity:
|
|
9955
|
+
const l = Jr({ activity: Oc(c), user: i });
|
|
9951
9956
|
return na(l, f);
|
|
9952
9957
|
}),
|
|
9953
9958
|
onError: n,
|
|
@@ -9960,7 +9965,7 @@ function Bc({
|
|
|
9960
9965
|
});
|
|
9961
9966
|
return o;
|
|
9962
9967
|
}
|
|
9963
|
-
function
|
|
9968
|
+
function Uc({
|
|
9964
9969
|
mutationFn: t,
|
|
9965
9970
|
mutationHandlers: {
|
|
9966
9971
|
mutate: e,
|
|
@@ -9977,7 +9982,7 @@ function qc({
|
|
|
9977
9982
|
});
|
|
9978
9983
|
return r;
|
|
9979
9984
|
}
|
|
9980
|
-
function
|
|
9985
|
+
function Wc({
|
|
9981
9986
|
queryFns: {
|
|
9982
9987
|
create: t,
|
|
9983
9988
|
edit: e,
|
|
@@ -9995,7 +10000,7 @@ function Uc({
|
|
|
9995
10000
|
},
|
|
9996
10001
|
user: f,
|
|
9997
10002
|
...l
|
|
9998
|
-
}, u =
|
|
10003
|
+
}, u = qc({ ...d, mutationFn: t }), m = Uc({ ...d, mutationFn: e }), p = zc({ ...d, mutationFn: n }), g = Hc({ ...d, mutationFn: s }), _ = Vc({ ...d, mutationFn: i }), { activities: y, ...v } = Zc({ queryKey: o, queryFn: r });
|
|
9999
10004
|
return {
|
|
10000
10005
|
activities: y,
|
|
10001
10006
|
mutations: {
|
|
@@ -10009,7 +10014,7 @@ function Uc({
|
|
|
10009
10014
|
...v
|
|
10010
10015
|
};
|
|
10011
10016
|
}
|
|
10012
|
-
function
|
|
10017
|
+
function zc({
|
|
10013
10018
|
mutationFn: t,
|
|
10014
10019
|
mutationHandlers: {
|
|
10015
10020
|
mutate: e,
|
|
@@ -10032,7 +10037,7 @@ function Wc({
|
|
|
10032
10037
|
});
|
|
10033
10038
|
return i;
|
|
10034
10039
|
}
|
|
10035
|
-
function
|
|
10040
|
+
function Zc({ queryFn: t, queryKey: e }) {
|
|
10036
10041
|
const {
|
|
10037
10042
|
data: n,
|
|
10038
10043
|
error: r,
|
|
@@ -10046,14 +10051,14 @@ function zc({ queryFn: t, queryKey: e }) {
|
|
|
10046
10051
|
getNextPageParam: (c) => (c == null ? void 0 : c.next) || null
|
|
10047
10052
|
});
|
|
10048
10053
|
return {
|
|
10049
|
-
activities:
|
|
10054
|
+
activities: Kc(n),
|
|
10050
10055
|
error: r,
|
|
10051
10056
|
isLoading: s,
|
|
10052
10057
|
hasNextPage: i,
|
|
10053
10058
|
fetchNextPage: o
|
|
10054
10059
|
};
|
|
10055
10060
|
}
|
|
10056
|
-
function
|
|
10061
|
+
function Hc({
|
|
10057
10062
|
mutationFn: t,
|
|
10058
10063
|
mutationHandlers: {
|
|
10059
10064
|
mutate: e,
|
|
@@ -10062,12 +10067,12 @@ function Zc({
|
|
|
10062
10067
|
}) {
|
|
10063
10068
|
const { mutate: r } = je({
|
|
10064
10069
|
mutationFn: t,
|
|
10065
|
-
onMutate: ({ activityId: s }) => e((i) =>
|
|
10070
|
+
onMutate: ({ activityId: s }) => e((i) => Yc(s, i)),
|
|
10066
10071
|
onError: n
|
|
10067
10072
|
});
|
|
10068
10073
|
return r;
|
|
10069
10074
|
}
|
|
10070
|
-
function
|
|
10075
|
+
function Vc({
|
|
10071
10076
|
mutationFn: t,
|
|
10072
10077
|
mutationHandlers: {
|
|
10073
10078
|
mutate: e,
|
|
@@ -10102,7 +10107,7 @@ function en(t, e) {
|
|
|
10102
10107
|
return r;
|
|
10103
10108
|
}
|
|
10104
10109
|
}
|
|
10105
|
-
function
|
|
10110
|
+
function Yc(t, e) {
|
|
10106
10111
|
for (const { results: n } of e.pages) {
|
|
10107
10112
|
const r = n.findIndex(({ id: s }) => s === t);
|
|
10108
10113
|
if (r !== -1) {
|
|
@@ -10112,11 +10117,11 @@ function Vc(t, e) {
|
|
|
10112
10117
|
}
|
|
10113
10118
|
return e;
|
|
10114
10119
|
}
|
|
10115
|
-
function
|
|
10120
|
+
function Kc(t) {
|
|
10116
10121
|
var e;
|
|
10117
10122
|
return ((e = t == null ? void 0 : t.pages) == null ? void 0 : e.reduce((n, { results: r }) => [...n, ...r], [])) || [];
|
|
10118
10123
|
}
|
|
10119
|
-
const
|
|
10124
|
+
const pd = ({
|
|
10120
10125
|
basePath: t,
|
|
10121
10126
|
parentId: e,
|
|
10122
10127
|
isMember: n,
|
|
@@ -10130,7 +10135,7 @@ const md = ({
|
|
|
10130
10135
|
isLoading: u,
|
|
10131
10136
|
mutations: { create: m, edit: p, remove: g, like: _, unlike: y },
|
|
10132
10137
|
user: v
|
|
10133
|
-
} =
|
|
10138
|
+
} = Wc({
|
|
10134
10139
|
queryKey: [t, e, "activities"],
|
|
10135
10140
|
queryFns: r
|
|
10136
10141
|
});
|
|
@@ -10159,10 +10164,10 @@ const md = ({
|
|
|
10159
10164
|
var L, U, I, z, X, T, N, W;
|
|
10160
10165
|
const {
|
|
10161
10166
|
id: x,
|
|
10162
|
-
own_reactions:
|
|
10163
|
-
latest_reactions:
|
|
10167
|
+
own_reactions: D,
|
|
10168
|
+
latest_reactions: R,
|
|
10164
10169
|
reaction_counts: Z
|
|
10165
|
-
} = j,
|
|
10170
|
+
} = j, M = (((L = R == null ? void 0 : R.like) == null ? void 0 : L.length) || 0) > 0, O = (((U = D == null ? void 0 : D.like) == null ? void 0 : U.length) || 0) > 0, C = O ? D == null ? void 0 : D.like[0].id : "", E = M ? (I = R == null ? void 0 : R.like) == null ? void 0 : I.map((q) => {
|
|
10166
10171
|
var H, te, G;
|
|
10167
10172
|
return {
|
|
10168
10173
|
id: (H = q == null ? void 0 : q.user) == null ? void 0 : H.id,
|
|
@@ -10220,7 +10225,7 @@ const md = ({
|
|
|
10220
10225
|
isTruncated: !0
|
|
10221
10226
|
}
|
|
10222
10227
|
),
|
|
10223
|
-
b > k + 1 && /* @__PURE__ */ a.jsx(
|
|
10228
|
+
b > k + 1 && /* @__PURE__ */ a.jsx(Ae, {})
|
|
10224
10229
|
] }, x);
|
|
10225
10230
|
}),
|
|
10226
10231
|
!u && /* @__PURE__ */ a.jsx(
|
|
@@ -10236,7 +10241,7 @@ const md = ({
|
|
|
10236
10241
|
}
|
|
10237
10242
|
)
|
|
10238
10243
|
] });
|
|
10239
|
-
},
|
|
10244
|
+
}, hd = {
|
|
10240
10245
|
next: "id_lt=67ef0342-6f6e-4807-beea-5a9184ec140c&limit=5",
|
|
10241
10246
|
results: [
|
|
10242
10247
|
{
|
|
@@ -10788,7 +10793,7 @@ const md = ({
|
|
|
10788
10793
|
],
|
|
10789
10794
|
duration: "6.48ms"
|
|
10790
10795
|
};
|
|
10791
|
-
function
|
|
10796
|
+
function Gc({
|
|
10792
10797
|
mutationFn: t,
|
|
10793
10798
|
mutationHandlers: { mutate: e, error: n },
|
|
10794
10799
|
queryClient: r,
|
|
@@ -10798,7 +10803,7 @@ function Kc({
|
|
|
10798
10803
|
const { mutate: o } = je({
|
|
10799
10804
|
mutationFn: t,
|
|
10800
10805
|
onMutate: (c) => e((f) => {
|
|
10801
|
-
const l = Xr({ reply:
|
|
10806
|
+
const l = Xr({ reply: Ac(c), user: i });
|
|
10802
10807
|
return ra(l, f, {
|
|
10803
10808
|
replace: !1,
|
|
10804
10809
|
append: (c == null ? void 0 : c.replyId) !== void 0
|
|
@@ -10817,7 +10822,7 @@ function Kc({
|
|
|
10817
10822
|
});
|
|
10818
10823
|
return o;
|
|
10819
10824
|
}
|
|
10820
|
-
function
|
|
10825
|
+
function Qc({
|
|
10821
10826
|
mutationFn: t,
|
|
10822
10827
|
mutationHandlers: {
|
|
10823
10828
|
mutate: e,
|
|
@@ -10852,7 +10857,7 @@ function es({
|
|
|
10852
10857
|
},
|
|
10853
10858
|
user: f,
|
|
10854
10859
|
...l
|
|
10855
|
-
}, u =
|
|
10860
|
+
}, u = Gc({ ...d, mutationFn: t }), m = Qc({ ...d, mutationFn: e }), p = Jc({ ...d, mutationFn: n }), g = el({ ...d, mutationFn: s }), _ = tl({ ...d, mutationFn: i }), { replies: y, ...v } = Xc({ queryKey: o, queryFn: r });
|
|
10856
10861
|
return {
|
|
10857
10862
|
replies: y,
|
|
10858
10863
|
mutations: {
|
|
@@ -10866,7 +10871,7 @@ function es({
|
|
|
10866
10871
|
...v
|
|
10867
10872
|
};
|
|
10868
10873
|
}
|
|
10869
|
-
function
|
|
10874
|
+
function Jc({
|
|
10870
10875
|
mutationFn: t,
|
|
10871
10876
|
mutationHandlers: {
|
|
10872
10877
|
mutate: e,
|
|
@@ -10889,7 +10894,7 @@ function Qc({
|
|
|
10889
10894
|
});
|
|
10890
10895
|
return i;
|
|
10891
10896
|
}
|
|
10892
|
-
function
|
|
10897
|
+
function Xc({ queryFn: t, queryKey: e }) {
|
|
10893
10898
|
const {
|
|
10894
10899
|
data: n,
|
|
10895
10900
|
error: r,
|
|
@@ -10901,7 +10906,7 @@ function Jc({ queryFn: t, queryKey: e }) {
|
|
|
10901
10906
|
queryFn: t,
|
|
10902
10907
|
initialPageParam: { next: "" },
|
|
10903
10908
|
getNextPageParam: (l) => (l == null ? void 0 : l.next) || null
|
|
10904
|
-
}), c =
|
|
10909
|
+
}), c = il(n), f = `${c.length || 0}${i ? "+" : ""}`;
|
|
10905
10910
|
return {
|
|
10906
10911
|
replies: c,
|
|
10907
10912
|
repliesCount: f,
|
|
@@ -10911,7 +10916,7 @@ function Jc({ queryFn: t, queryKey: e }) {
|
|
|
10911
10916
|
fetchNextPage: o
|
|
10912
10917
|
};
|
|
10913
10918
|
}
|
|
10914
|
-
function
|
|
10919
|
+
function el({
|
|
10915
10920
|
mutationFn: t,
|
|
10916
10921
|
mutationHandlers: {
|
|
10917
10922
|
mutate: e,
|
|
@@ -10920,12 +10925,12 @@ function Xc({
|
|
|
10920
10925
|
}) {
|
|
10921
10926
|
const { mutate: r } = je({
|
|
10922
10927
|
mutationFn: t,
|
|
10923
|
-
onMutate: ({ replyId: s }) => e((i) =>
|
|
10928
|
+
onMutate: ({ replyId: s }) => e((i) => sl(s, i)),
|
|
10924
10929
|
onError: n
|
|
10925
10930
|
});
|
|
10926
10931
|
return r;
|
|
10927
10932
|
}
|
|
10928
|
-
function
|
|
10933
|
+
function tl({
|
|
10929
10934
|
mutationFn: t,
|
|
10930
10935
|
mutationHandlers: {
|
|
10931
10936
|
mutate: e,
|
|
@@ -10943,7 +10948,7 @@ function el({
|
|
|
10943
10948
|
});
|
|
10944
10949
|
return s;
|
|
10945
10950
|
}
|
|
10946
|
-
function
|
|
10951
|
+
function nl(t) {
|
|
10947
10952
|
return {
|
|
10948
10953
|
pages: [{
|
|
10949
10954
|
next: "",
|
|
@@ -10952,15 +10957,15 @@ function tl(t) {
|
|
|
10952
10957
|
pageParams: [""]
|
|
10953
10958
|
};
|
|
10954
10959
|
}
|
|
10955
|
-
function
|
|
10960
|
+
function rl(t, e, n) {
|
|
10956
10961
|
const r = e.pages.length - 1, s = e.pages[r].results.length - 1;
|
|
10957
10962
|
return n != null && n.replace ? e.pages[r].results[s] = t : e.pages[r].results.push(t), e;
|
|
10958
10963
|
}
|
|
10959
|
-
function
|
|
10964
|
+
function al(t, e, n) {
|
|
10960
10965
|
return n != null && n.replace ? e.pages[0].results[0] = t : e.pages[0].results = [t, ...e.pages[0].results], e;
|
|
10961
10966
|
}
|
|
10962
10967
|
function ra(t, e, n) {
|
|
10963
|
-
return e ? n != null && n.append ?
|
|
10968
|
+
return e ? n != null && n.append ? rl(t, e, n) : al(t, e, n) : nl(t);
|
|
10964
10969
|
}
|
|
10965
10970
|
function tn(t, e) {
|
|
10966
10971
|
if (e)
|
|
@@ -10970,7 +10975,7 @@ function tn(t, e) {
|
|
|
10970
10975
|
return r;
|
|
10971
10976
|
}
|
|
10972
10977
|
}
|
|
10973
|
-
function
|
|
10978
|
+
function sl(t, e) {
|
|
10974
10979
|
for (const { results: n } of e.pages) {
|
|
10975
10980
|
const r = n.findIndex(({ id: s }) => s === t);
|
|
10976
10981
|
if (r !== -1) {
|
|
@@ -10980,11 +10985,11 @@ function al(t, e) {
|
|
|
10980
10985
|
}
|
|
10981
10986
|
return e;
|
|
10982
10987
|
}
|
|
10983
|
-
function
|
|
10988
|
+
function il(t) {
|
|
10984
10989
|
var e;
|
|
10985
10990
|
return ((e = t == null ? void 0 : t.pages) == null ? void 0 : e.reduce((n, r) => [...n, ...r == null ? void 0 : r.results], [])) || [];
|
|
10986
10991
|
}
|
|
10987
|
-
const
|
|
10992
|
+
const ol = ({
|
|
10988
10993
|
basePath: t,
|
|
10989
10994
|
parentId: e,
|
|
10990
10995
|
activityId: n,
|
|
@@ -11008,7 +11013,7 @@ const il = ({
|
|
|
11008
11013
|
}
|
|
11009
11014
|
});
|
|
11010
11015
|
return /* @__PURE__ */ a.jsx(
|
|
11011
|
-
|
|
11016
|
+
Nc,
|
|
11012
11017
|
{
|
|
11013
11018
|
loadMore: { isLoading: l, hasNextPage: f, loadNextPage: () => c() },
|
|
11014
11019
|
form: {
|
|
@@ -11033,10 +11038,10 @@ const il = ({
|
|
|
11033
11038
|
own_children: b,
|
|
11034
11039
|
latest_children: j,
|
|
11035
11040
|
children_counts: k
|
|
11036
|
-
} = y,
|
|
11041
|
+
} = y, D = (((L = b == null ? void 0 : b.like) == null ? void 0 : L.length) || 0) > 0 ? (U = b == null ? void 0 : b.like) == null ? void 0 : U.find((Y) => {
|
|
11037
11042
|
var ee;
|
|
11038
11043
|
return ((ee = Y == null ? void 0 : Y.user) == null ? void 0 : ee.id) === (_ == null ? void 0 : _.id);
|
|
11039
|
-
}) : !1,
|
|
11044
|
+
}) : !1, R = D ? D == null ? void 0 : D.id : "", Z = !!D, O = (((I = j == null ? void 0 : j.like) == null ? void 0 : I.length) || 0) > 0 ? (z = j == null ? void 0 : j.like) == null ? void 0 : z.map((Y) => {
|
|
11040
11045
|
var ee, re, F;
|
|
11041
11046
|
return {
|
|
11042
11047
|
id: (ee = Y == null ? void 0 : Y.user) == null ? void 0 : ee.id,
|
|
@@ -11086,7 +11091,7 @@ const il = ({
|
|
|
11086
11091
|
},
|
|
11087
11092
|
likes: {
|
|
11088
11093
|
createLike: () => m({ replyId: v }),
|
|
11089
|
-
deleteLike: () => g({ replyId: v, reactionId:
|
|
11094
|
+
deleteLike: () => g({ replyId: v, reactionId: R })
|
|
11090
11095
|
},
|
|
11091
11096
|
comments: {}
|
|
11092
11097
|
}
|
|
@@ -11096,7 +11101,7 @@ const il = ({
|
|
|
11096
11101
|
}) : null
|
|
11097
11102
|
}
|
|
11098
11103
|
);
|
|
11099
|
-
},
|
|
11104
|
+
}, cl = ({
|
|
11100
11105
|
basePath: t,
|
|
11101
11106
|
parentId: e,
|
|
11102
11107
|
activityId: n,
|
|
@@ -11116,7 +11121,7 @@ const il = ({
|
|
|
11116
11121
|
queryFns: s
|
|
11117
11122
|
});
|
|
11118
11123
|
return Us(), Ja(), /* @__PURE__ */ a.jsxs("section", { children: [
|
|
11119
|
-
/* @__PURE__ */ a.jsx(
|
|
11124
|
+
/* @__PURE__ */ a.jsx($c, { type: "comment", responses: l }),
|
|
11120
11125
|
/* @__PURE__ */ a.jsx(
|
|
11121
11126
|
Va,
|
|
11122
11127
|
{
|
|
@@ -11140,20 +11145,20 @@ const il = ({
|
|
|
11140
11145
|
),
|
|
11141
11146
|
f == null ? void 0 : f.map((j) => {
|
|
11142
11147
|
var z, X, T, N, W, q, H, te, G, Y, ee, re;
|
|
11143
|
-
const { id: k, own_children: x, latest_children:
|
|
11148
|
+
const { id: k, own_children: x, latest_children: D, children_counts: R } = j, M = (((z = x == null ? void 0 : x.like) == null ? void 0 : z.length) || 0) > 0 ? (X = x == null ? void 0 : x.like) == null ? void 0 : X.find((F) => {
|
|
11144
11149
|
var oe;
|
|
11145
11150
|
return ((oe = F == null ? void 0 : F.user) == null ? void 0 : oe.id) === (b == null ? void 0 : b.id);
|
|
11146
|
-
}) : !1, O =
|
|
11147
|
-
var oe,
|
|
11151
|
+
}) : !1, O = M ? M == null ? void 0 : M.id : "", C = !!M, w = (((T = D == null ? void 0 : D.like) == null ? void 0 : T.length) || 0) > 0 ? (N = D == null ? void 0 : D.like) == null ? void 0 : N.map((F) => {
|
|
11152
|
+
var oe, A, ve;
|
|
11148
11153
|
return {
|
|
11149
11154
|
id: (oe = F == null ? void 0 : F.user) == null ? void 0 : oe.id,
|
|
11150
|
-
name: (ve = (
|
|
11155
|
+
name: (ve = (A = F == null ? void 0 : F.user) == null ? void 0 : A.data) == null ? void 0 : ve.name
|
|
11151
11156
|
};
|
|
11152
11157
|
}) : !1, $ = j == null ? void 0 : j.user, L = ($ == null ? void 0 : $.id) === (b == null ? void 0 : b.id), U = on(r, L), I = typeof j.data.content == "string" ? (W = j == null ? void 0 : j.data) == null ? void 0 : W.content : (
|
|
11153
11158
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
11154
11159
|
((H = (q = j == null ? void 0 : j.data) == null ? void 0 : q.content) == null ? void 0 : H.text) || ""
|
|
11155
11160
|
);
|
|
11156
|
-
return /* @__PURE__ */ a.jsx(
|
|
11161
|
+
return /* @__PURE__ */ a.jsx(kc, { children: /* @__PURE__ */ a.jsx(
|
|
11157
11162
|
cn,
|
|
11158
11163
|
{
|
|
11159
11164
|
content: {
|
|
@@ -11179,7 +11184,7 @@ const il = ({
|
|
|
11179
11184
|
}
|
|
11180
11185
|
},
|
|
11181
11186
|
userLiked: C,
|
|
11182
|
-
likes: (
|
|
11187
|
+
likes: (R == null ? void 0 : R.like) || 0,
|
|
11183
11188
|
peopleWhoLiked: w
|
|
11184
11189
|
},
|
|
11185
11190
|
functions: {
|
|
@@ -11196,7 +11201,7 @@ const il = ({
|
|
|
11196
11201
|
comments: {}
|
|
11197
11202
|
},
|
|
11198
11203
|
children: /* @__PURE__ */ a.jsx(
|
|
11199
|
-
|
|
11204
|
+
ol,
|
|
11200
11205
|
{
|
|
11201
11206
|
basePath: t,
|
|
11202
11207
|
parentId: e,
|
|
@@ -11226,7 +11231,7 @@ const il = ({
|
|
|
11226
11231
|
)
|
|
11227
11232
|
] });
|
|
11228
11233
|
};
|
|
11229
|
-
function
|
|
11234
|
+
function ll({
|
|
11230
11235
|
mutationFn: t,
|
|
11231
11236
|
mutationHandlers: {
|
|
11232
11237
|
mutate: e,
|
|
@@ -11240,7 +11245,7 @@ function cl({
|
|
|
11240
11245
|
});
|
|
11241
11246
|
return r;
|
|
11242
11247
|
}
|
|
11243
|
-
function
|
|
11248
|
+
function dl({ queryFn: t, queryKey: e }) {
|
|
11244
11249
|
const {
|
|
11245
11250
|
data: n,
|
|
11246
11251
|
error: r,
|
|
@@ -11257,7 +11262,7 @@ function ll({ queryFn: t, queryKey: e }) {
|
|
|
11257
11262
|
isFetching: i
|
|
11258
11263
|
};
|
|
11259
11264
|
}
|
|
11260
|
-
function
|
|
11265
|
+
function ul({
|
|
11261
11266
|
queryFns: {
|
|
11262
11267
|
read: t,
|
|
11263
11268
|
edit: e,
|
|
@@ -11273,7 +11278,7 @@ function dl({
|
|
|
11273
11278
|
},
|
|
11274
11279
|
user: o,
|
|
11275
11280
|
...c
|
|
11276
|
-
}, l =
|
|
11281
|
+
}, l = ll({ ...f, mutationFn: e }), d = fl({ ...f, mutationFn: n }), u = ml({ ...f, mutationFn: r }), { activity: m, ...p } = dl({ queryKey: s, queryFn: t });
|
|
11277
11282
|
return {
|
|
11278
11283
|
activity: m,
|
|
11279
11284
|
mutations: {
|
|
@@ -11285,7 +11290,7 @@ function dl({
|
|
|
11285
11290
|
...p
|
|
11286
11291
|
};
|
|
11287
11292
|
}
|
|
11288
|
-
function
|
|
11293
|
+
function fl({
|
|
11289
11294
|
mutationFn: t,
|
|
11290
11295
|
mutationHandlers: {
|
|
11291
11296
|
mutate: e,
|
|
@@ -11304,7 +11309,7 @@ function ul({
|
|
|
11304
11309
|
});
|
|
11305
11310
|
return i;
|
|
11306
11311
|
}
|
|
11307
|
-
function
|
|
11312
|
+
function ml({
|
|
11308
11313
|
mutationFn: t,
|
|
11309
11314
|
mutationHandlers: {
|
|
11310
11315
|
mutate: e,
|
|
@@ -11319,7 +11324,7 @@ function fl({
|
|
|
11319
11324
|
});
|
|
11320
11325
|
return s;
|
|
11321
11326
|
}
|
|
11322
|
-
const
|
|
11327
|
+
const gd = ({
|
|
11323
11328
|
basePath: t,
|
|
11324
11329
|
parentId: e,
|
|
11325
11330
|
activityId: n,
|
|
@@ -11331,13 +11336,13 @@ const hd = ({
|
|
|
11331
11336
|
leave: f
|
|
11332
11337
|
}
|
|
11333
11338
|
}) => {
|
|
11334
|
-
var
|
|
11339
|
+
var M, O, C, E, w, $, L, U, I, z;
|
|
11335
11340
|
const l = V(), d = Ee(Ie), {
|
|
11336
11341
|
activity: u,
|
|
11337
11342
|
error: m,
|
|
11338
11343
|
isLoading: p,
|
|
11339
11344
|
mutations: { edit: g, like: _, unlike: y }
|
|
11340
|
-
} =
|
|
11345
|
+
} = ul({
|
|
11341
11346
|
queryFns: i,
|
|
11342
11347
|
queryKey: [t, e, n]
|
|
11343
11348
|
});
|
|
@@ -11351,13 +11356,13 @@ const hd = ({
|
|
|
11351
11356
|
text: l.formatMessage({ id: "activitySection_notFoundError" })
|
|
11352
11357
|
}
|
|
11353
11358
|
);
|
|
11354
|
-
const { own_reactions: v, latest_reactions: b } = u, j = (((
|
|
11359
|
+
const { own_reactions: v, latest_reactions: b } = u, j = (((M = b == null ? void 0 : b.like) == null ? void 0 : M.length) || 0) > 0, k = (((O = v == null ? void 0 : v.like) == null ? void 0 : O.length) || 0) > 0, x = k ? v == null ? void 0 : v.like[0].id : "", D = j ? (C = b == null ? void 0 : b.like) == null ? void 0 : C.map((X) => {
|
|
11355
11360
|
var T, N, W;
|
|
11356
11361
|
return {
|
|
11357
11362
|
id: (T = X == null ? void 0 : X.user) == null ? void 0 : T.id,
|
|
11358
11363
|
name: (W = (N = X == null ? void 0 : X.user) == null ? void 0 : N.data) == null ? void 0 : W.name
|
|
11359
11364
|
};
|
|
11360
|
-
}) : !1,
|
|
11365
|
+
}) : !1, R = u == null ? void 0 : u.actor, Z = (R == null ? void 0 : R.id) === (d == null ? void 0 : d.id);
|
|
11361
11366
|
return /* @__PURE__ */ a.jsxs("section", { className: "activity-section", children: [
|
|
11362
11367
|
/* @__PURE__ */ a.jsx(
|
|
11363
11368
|
cn,
|
|
@@ -11375,21 +11380,21 @@ const hd = ({
|
|
|
11375
11380
|
},
|
|
11376
11381
|
slug: n,
|
|
11377
11382
|
author: {
|
|
11378
|
-
id:
|
|
11379
|
-
name: (E =
|
|
11380
|
-
organization: (w =
|
|
11381
|
-
jobTitle: ($ =
|
|
11382
|
-
location: (L =
|
|
11383
|
+
id: R.id,
|
|
11384
|
+
name: (E = R.data) == null ? void 0 : E.name,
|
|
11385
|
+
organization: (w = R.data) == null ? void 0 : w.organization,
|
|
11386
|
+
jobTitle: ($ = R.data) == null ? void 0 : $.jobTitle,
|
|
11387
|
+
location: (L = R.data) == null ? void 0 : L.location,
|
|
11383
11388
|
image: {
|
|
11384
|
-
thumbnail: ((U =
|
|
11389
|
+
thumbnail: ((U = R.data) == null ? void 0 : U.thumbnail) || void 0
|
|
11385
11390
|
}
|
|
11386
11391
|
},
|
|
11387
11392
|
userLiked: k,
|
|
11388
11393
|
likes: ((I = u == null ? void 0 : u.reaction_counts) == null ? void 0 : I.like) || 0,
|
|
11389
11394
|
comments: ((z = u == null ? void 0 : u.reaction_counts) == null ? void 0 : z.reply) || 0,
|
|
11390
|
-
peopleWhoLiked:
|
|
11395
|
+
peopleWhoLiked: D
|
|
11391
11396
|
},
|
|
11392
|
-
originalAuthorId:
|
|
11397
|
+
originalAuthorId: R == null ? void 0 : R.id,
|
|
11393
11398
|
forceHide: { comments: !0 },
|
|
11394
11399
|
functions: {
|
|
11395
11400
|
content: {
|
|
@@ -11411,7 +11416,7 @@ const hd = ({
|
|
|
11411
11416
|
n
|
|
11412
11417
|
),
|
|
11413
11418
|
/* @__PURE__ */ a.jsx(
|
|
11414
|
-
|
|
11419
|
+
cl,
|
|
11415
11420
|
{
|
|
11416
11421
|
basePath: t,
|
|
11417
11422
|
parentId: e,
|
|
@@ -11425,7 +11430,7 @@ const hd = ({
|
|
|
11425
11430
|
}
|
|
11426
11431
|
)
|
|
11427
11432
|
] });
|
|
11428
|
-
},
|
|
11433
|
+
}, vd = ({
|
|
11429
11434
|
id: t,
|
|
11430
11435
|
data: { jobTitle: e, name: n, organization: r, thumbnail: s }
|
|
11431
11436
|
}) => ({
|
|
@@ -11478,18 +11483,18 @@ const hd = ({
|
|
|
11478
11483
|
contributors: ["community"]
|
|
11479
11484
|
}
|
|
11480
11485
|
];
|
|
11481
|
-
const
|
|
11486
|
+
const At = "notFoundError_", bd = () => {
|
|
11482
11487
|
const t = V(), e = [];
|
|
11483
11488
|
return aa.forEach((n, r) => {
|
|
11484
|
-
n.title = t.formatMessage({ id: `${
|
|
11489
|
+
n.title = t.formatMessage({ id: `${At}post_${r + 1}` }), e.push("solutionArticle");
|
|
11485
11490
|
}), /* @__PURE__ */ a.jsxs(
|
|
11486
|
-
|
|
11491
|
+
yc,
|
|
11487
11492
|
{
|
|
11488
11493
|
styling: { background: "bold", circle: "small", variant: "alt-2" },
|
|
11489
11494
|
additionalContent: {
|
|
11490
11495
|
appended: /* @__PURE__ */ a.jsxs(Ve, { children: [
|
|
11491
11496
|
/* @__PURE__ */ a.jsx(
|
|
11492
|
-
|
|
11497
|
+
rc,
|
|
11493
11498
|
{
|
|
11494
11499
|
cards: aa,
|
|
11495
11500
|
cardTypes: e,
|
|
@@ -11498,129 +11503,129 @@ const Dt = "notFoundError_", vd = () => {
|
|
|
11498
11503
|
})
|
|
11499
11504
|
}
|
|
11500
11505
|
),
|
|
11501
|
-
/* @__PURE__ */ a.jsx(se, { href: "/solution-articles/", children: t.formatMessage({ id: `${
|
|
11506
|
+
/* @__PURE__ */ a.jsx(se, { href: "/solution-articles/", children: t.formatMessage({ id: `${At}cta` }) })
|
|
11502
11507
|
] })
|
|
11503
11508
|
},
|
|
11504
11509
|
reportError: () => {
|
|
11505
11510
|
},
|
|
11506
11511
|
className: "not-found-error",
|
|
11507
11512
|
children: [
|
|
11508
|
-
/* @__PURE__ */ a.jsx("h1", { children: t.formatMessage({ id: `${
|
|
11509
|
-
/* @__PURE__ */ a.jsx("p", { children: t.formatMessage({ id: `${
|
|
11513
|
+
/* @__PURE__ */ a.jsx("h1", { children: t.formatMessage({ id: `${At}title` }) }),
|
|
11514
|
+
/* @__PURE__ */ a.jsx("p", { children: t.formatMessage({ id: `${At}text` }) })
|
|
11510
11515
|
]
|
|
11511
11516
|
}
|
|
11512
11517
|
);
|
|
11513
11518
|
};
|
|
11514
11519
|
export {
|
|
11515
11520
|
ze as ASSETS_BUCKET,
|
|
11516
|
-
|
|
11517
|
-
|
|
11521
|
+
pd as ActivitiesFeed,
|
|
11522
|
+
gd as ActivitySection,
|
|
11518
11523
|
Va as AddPost,
|
|
11519
11524
|
Dl as Banner,
|
|
11520
|
-
|
|
11521
|
-
|
|
11525
|
+
ql as BannerSection,
|
|
11526
|
+
nd as Breadcrumbs,
|
|
11522
11527
|
se as Button,
|
|
11523
11528
|
wt as ButtonWrapper,
|
|
11524
11529
|
Tt as COURSE_CONTENT_TYPES,
|
|
11525
|
-
|
|
11530
|
+
Ti as CacheProvider,
|
|
11526
11531
|
Ua as Card,
|
|
11527
|
-
|
|
11528
|
-
|
|
11532
|
+
rc as CardBlock,
|
|
11533
|
+
ed as Carousel,
|
|
11529
11534
|
Jn as CollapsibleSection,
|
|
11530
|
-
|
|
11531
|
-
|
|
11532
|
-
|
|
11533
|
-
|
|
11535
|
+
hc as Columns,
|
|
11536
|
+
td as CommunityDetails,
|
|
11537
|
+
od as ContactFooter,
|
|
11538
|
+
Vi as ContactForm,
|
|
11534
11539
|
oi as ContentTypeLabel,
|
|
11535
11540
|
Ta as Contributors,
|
|
11536
11541
|
sr as ConversationContext,
|
|
11537
|
-
|
|
11538
|
-
|
|
11539
|
-
|
|
11540
|
-
|
|
11541
|
-
|
|
11542
|
-
|
|
11542
|
+
gc as CookieBanner,
|
|
11543
|
+
ud as CourseProgression,
|
|
11544
|
+
fd as CourseStructure,
|
|
11545
|
+
Ul as CustomContentBanner,
|
|
11546
|
+
Xl as Directory,
|
|
11547
|
+
kc as DiscussionConversation,
|
|
11543
11548
|
ar as DiscussionForm,
|
|
11544
|
-
|
|
11549
|
+
Sc as DiscussionLikes,
|
|
11545
11550
|
cn as DiscussionPost,
|
|
11546
|
-
|
|
11547
|
-
|
|
11548
|
-
|
|
11551
|
+
Nc as DiscussionThread,
|
|
11552
|
+
Ae as Divider,
|
|
11553
|
+
Il as DownloadSection,
|
|
11549
11554
|
ft as EMAILS,
|
|
11550
|
-
|
|
11551
|
-
|
|
11555
|
+
Ll as EditSection,
|
|
11556
|
+
Oi as EmailHelperTextBox,
|
|
11552
11557
|
He as EmptyStateBox,
|
|
11553
|
-
|
|
11554
|
-
|
|
11558
|
+
rd as Filters,
|
|
11559
|
+
Ci as FlagsProvider,
|
|
11555
11560
|
Za as Footer,
|
|
11556
11561
|
rn as Form,
|
|
11557
11562
|
Ve as FullWidthSection,
|
|
11558
|
-
|
|
11563
|
+
Zl as GlobalProviders,
|
|
11559
11564
|
Ha as Header,
|
|
11560
11565
|
ci as HelperTextBox,
|
|
11561
11566
|
Gn as HiddenFromScreenReaders,
|
|
11562
11567
|
Rl as HideShowTextBox,
|
|
11563
|
-
|
|
11568
|
+
Wl as HighlightSection,
|
|
11564
11569
|
Oe as HighlightedTextBox,
|
|
11565
|
-
|
|
11566
|
-
|
|
11567
|
-
|
|
11568
|
-
|
|
11569
|
-
|
|
11570
|
+
Fl as IconBulletedList,
|
|
11571
|
+
Nl as ImageContainer,
|
|
11572
|
+
$i as IntlProvider,
|
|
11573
|
+
Yi as InviteForm,
|
|
11574
|
+
Jl as InviteModal,
|
|
11570
11575
|
Wa as JoinButton,
|
|
11571
11576
|
ya as LanguageContext,
|
|
11572
|
-
|
|
11573
|
-
|
|
11574
|
-
|
|
11577
|
+
ad as LanguageSwitcher,
|
|
11578
|
+
xc as LessonName,
|
|
11579
|
+
wc as LessonType,
|
|
11575
11580
|
at as Link,
|
|
11576
11581
|
sn as LoadMore,
|
|
11577
|
-
|
|
11582
|
+
Hl as LoadingBlock,
|
|
11578
11583
|
Se as LoadingPlaceholder,
|
|
11579
11584
|
wa as LoadingState,
|
|
11580
11585
|
za as Logo,
|
|
11581
|
-
|
|
11582
|
-
|
|
11586
|
+
Bl as LogoSection,
|
|
11587
|
+
md as MarkCompleteButton,
|
|
11583
11588
|
qt as MarkdownText,
|
|
11584
|
-
|
|
11589
|
+
zl as MarketingBlock,
|
|
11585
11590
|
tr as Member,
|
|
11586
|
-
|
|
11591
|
+
dd as MembersList,
|
|
11587
11592
|
qa as Modal,
|
|
11588
|
-
|
|
11589
|
-
|
|
11590
|
-
|
|
11591
|
-
|
|
11593
|
+
cc as MoreMenu,
|
|
11594
|
+
$l as NUMBER_OF_USERS,
|
|
11595
|
+
uc as NavigationMenu,
|
|
11596
|
+
bd as NotFoundError,
|
|
11592
11597
|
an as Overlay,
|
|
11593
|
-
|
|
11594
|
-
|
|
11595
|
-
|
|
11596
|
-
|
|
11598
|
+
bi as PageHeading,
|
|
11599
|
+
yc as PageLayout,
|
|
11600
|
+
Gl as PasswordForm,
|
|
11601
|
+
Hi as PasswordRules,
|
|
11597
11602
|
Ut as Pill,
|
|
11598
|
-
|
|
11603
|
+
Kl as ProfileImageChange,
|
|
11599
11604
|
Ye as ProfilePicture,
|
|
11600
11605
|
_a as ProgressBar,
|
|
11601
|
-
|
|
11602
|
-
|
|
11603
|
-
|
|
11604
|
-
|
|
11606
|
+
Pl as ProgressTracker,
|
|
11607
|
+
Vl as Rating,
|
|
11608
|
+
cl as RepliesFeed,
|
|
11609
|
+
$c as ResponsesHeading,
|
|
11605
11610
|
jt as ResponsiveImage,
|
|
11606
|
-
|
|
11607
|
-
|
|
11608
|
-
|
|
11609
|
-
|
|
11610
|
-
|
|
11611
|
+
Ml as ReturnToNavButton,
|
|
11612
|
+
Ki as SearchForm,
|
|
11613
|
+
sd as ShareLinks,
|
|
11614
|
+
Ql as SignupForm,
|
|
11615
|
+
gi as Span,
|
|
11611
11616
|
Wt as StatusBanner,
|
|
11612
|
-
|
|
11613
|
-
|
|
11614
|
-
|
|
11615
|
-
|
|
11617
|
+
Al as TableOfContents,
|
|
11618
|
+
id as Tabs,
|
|
11619
|
+
ld as Tags,
|
|
11620
|
+
Ol as TestimonialBlock,
|
|
11616
11621
|
Xn as TimeToComplete,
|
|
11617
|
-
|
|
11618
|
-
|
|
11619
|
-
|
|
11622
|
+
Yl as Toggle,
|
|
11623
|
+
_i as Tooltip,
|
|
11624
|
+
cd as TopLevelPage,
|
|
11620
11625
|
Ie as UserContext,
|
|
11621
|
-
|
|
11626
|
+
Ni as UserProvider,
|
|
11622
11627
|
be as VisuallyHidden,
|
|
11623
|
-
|
|
11628
|
+
Xo as addAriaProps,
|
|
11624
11629
|
ma as basicReducer,
|
|
11625
11630
|
Ws as camelCaseToDashCase,
|
|
11626
11631
|
Qn as checkIntlPathExists,
|
|
@@ -11630,10 +11635,10 @@ export {
|
|
|
11630
11635
|
ka as getMember,
|
|
11631
11636
|
Vs as getShortDate,
|
|
11632
11637
|
Qt as headerData,
|
|
11633
|
-
|
|
11638
|
+
vd as mapGetStreamData,
|
|
11634
11639
|
ti as pageReady,
|
|
11635
11640
|
jr as passwordValidator,
|
|
11636
|
-
|
|
11641
|
+
hd as repliesFeedMock,
|
|
11637
11642
|
gn as supportedLanguages,
|
|
11638
11643
|
zs as toCamelCase,
|
|
11639
11644
|
Zs as toSentenceCase,
|