@apolitical/component-library 3.5.11 → 3.5.12
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 -1
- package/index.js +3 -3
- package/index.mjs +219 -214
- package/package.json +1 -1
- package/style.css +1 -1
- package/styles/base/_blockquotes.scss +11 -0
- package/styles/base/_lists.scss +3 -3
package/index.mjs
CHANGED
|
@@ -7,8 +7,8 @@ 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
9
|
import Lt from "posthog-js";
|
|
10
|
-
import { CookiesProvider as
|
|
11
|
-
import { ReactMultiEmail as
|
|
10
|
+
import { CookiesProvider as Ns, useCookies as oa } from "react-cookie";
|
|
11
|
+
import { ReactMultiEmail as $s } from "react-multi-email";
|
|
12
12
|
import ca from "lodash.get";
|
|
13
13
|
import { ErrorBoundary as Ps } from "react-error-boundary";
|
|
14
14
|
import Ms from "react-textarea-autosize";
|
|
@@ -157,7 +157,7 @@ function Is() {
|
|
|
157
157
|
}
|
|
158
158
|
var w = !1, b = !1, F = !1, R = !1, Q = !1, B;
|
|
159
159
|
B = Symbol.for("react.module.reference");
|
|
160
|
-
function
|
|
160
|
+
function N(h) {
|
|
161
161
|
return !!(typeof h == "string" || typeof h == "function" || h === r || h === i || Q || h === s || h === l || h === u || R || h === p || w || b || F || typeof h == "object" && h !== null && (h.$$typeof === m || h.$$typeof === f || h.$$typeof === o || h.$$typeof === c || h.$$typeof === d || // 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
|
|
@@ -219,7 +219,7 @@ function Is() {
|
|
|
219
219
|
}
|
|
220
220
|
return null;
|
|
221
221
|
}
|
|
222
|
-
var
|
|
222
|
+
var $ = Object.assign, A = 0, W, Z, z, K, T, P, q;
|
|
223
223
|
function L() {
|
|
224
224
|
}
|
|
225
225
|
L.__reactDisabledLog = !0;
|
|
@@ -255,25 +255,25 @@ function Is() {
|
|
|
255
255
|
writable: !0
|
|
256
256
|
};
|
|
257
257
|
Object.defineProperties(console, {
|
|
258
|
-
log:
|
|
258
|
+
log: $({}, h, {
|
|
259
259
|
value: W
|
|
260
260
|
}),
|
|
261
|
-
info:
|
|
261
|
+
info: $({}, h, {
|
|
262
262
|
value: Z
|
|
263
263
|
}),
|
|
264
|
-
warn:
|
|
264
|
+
warn: $({}, h, {
|
|
265
265
|
value: z
|
|
266
266
|
}),
|
|
267
|
-
error:
|
|
267
|
+
error: $({}, h, {
|
|
268
268
|
value: K
|
|
269
269
|
}),
|
|
270
|
-
group:
|
|
270
|
+
group: $({}, h, {
|
|
271
271
|
value: T
|
|
272
272
|
}),
|
|
273
|
-
groupCollapsed:
|
|
273
|
+
groupCollapsed: $({}, h, {
|
|
274
274
|
value: P
|
|
275
275
|
}),
|
|
276
|
-
groupEnd:
|
|
276
|
+
groupEnd: $({}, h, {
|
|
277
277
|
value: q
|
|
278
278
|
})
|
|
279
279
|
});
|
|
@@ -374,7 +374,7 @@ function Is() {
|
|
|
374
374
|
function ve(h, M, I) {
|
|
375
375
|
return D(h, !1);
|
|
376
376
|
}
|
|
377
|
-
function
|
|
377
|
+
function $e(h) {
|
|
378
378
|
var M = h.prototype;
|
|
379
379
|
return !!(M && M.isReactComponent);
|
|
380
380
|
}
|
|
@@ -382,7 +382,7 @@ function Is() {
|
|
|
382
382
|
if (h == null)
|
|
383
383
|
return "";
|
|
384
384
|
if (typeof h == "function")
|
|
385
|
-
return D(h,
|
|
385
|
+
return D(h, $e(h));
|
|
386
386
|
if (typeof h == "string")
|
|
387
387
|
return ee(h);
|
|
388
388
|
switch (h) {
|
|
@@ -676,7 +676,7 @@ Check the top-level render call using <` + I + ">.");
|
|
|
676
676
|
}
|
|
677
677
|
function yr(h, M, I, ne, le, me) {
|
|
678
678
|
{
|
|
679
|
-
var ce =
|
|
679
|
+
var ce = N(h);
|
|
680
680
|
if (!ce) {
|
|
681
681
|
var ie = "";
|
|
682
682
|
(h === void 0 || typeof h == "object" && h !== null && Object.keys(h).length === 0) && (ie += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
|
|
@@ -744,30 +744,30 @@ function Bs(t, e, n) {
|
|
|
744
744
|
};
|
|
745
745
|
}, []);
|
|
746
746
|
var S = wt(function() {
|
|
747
|
-
var w = function(
|
|
747
|
+
var w = function(N) {
|
|
748
748
|
var C = c.current, k = d.current;
|
|
749
|
-
return c.current = d.current = null, i.current =
|
|
750
|
-
}, b = function(
|
|
751
|
-
p && cancelAnimationFrame(o.current), o.current = p ? requestAnimationFrame(
|
|
752
|
-
}, F = function(
|
|
749
|
+
return c.current = d.current = null, i.current = N, l.current = u.current.apply(k, C);
|
|
750
|
+
}, b = function(N, C) {
|
|
751
|
+
p && cancelAnimationFrame(o.current), o.current = p ? requestAnimationFrame(N) : setTimeout(N, C);
|
|
752
|
+
}, F = function(N) {
|
|
753
753
|
if (!f.current)
|
|
754
754
|
return !1;
|
|
755
|
-
var C =
|
|
756
|
-
return !s.current || C >= e || C < 0 || _ &&
|
|
757
|
-
}, R = function(
|
|
758
|
-
return o.current = null, v && c.current ? w(
|
|
759
|
-
}, Q = function
|
|
755
|
+
var C = N - s.current;
|
|
756
|
+
return !s.current || C >= e || C < 0 || _ && N - i.current >= x;
|
|
757
|
+
}, R = function(N) {
|
|
758
|
+
return o.current = null, v && c.current ? w(N) : (c.current = d.current = null, l.current);
|
|
759
|
+
}, Q = function N() {
|
|
760
760
|
var C = Date.now();
|
|
761
761
|
if (F(C))
|
|
762
762
|
return R(C);
|
|
763
763
|
if (f.current) {
|
|
764
764
|
var k = e - (C - s.current), j = _ ? Math.min(k, x - (C - i.current)) : k;
|
|
765
|
-
b(
|
|
765
|
+
b(N, j);
|
|
766
766
|
}
|
|
767
767
|
}, B = function() {
|
|
768
768
|
if (m || y) {
|
|
769
|
-
var
|
|
770
|
-
if (c.current = [].slice.call(arguments), d.current = r, s.current =
|
|
769
|
+
var N = Date.now(), C = F(N);
|
|
770
|
+
if (c.current = [].slice.call(arguments), d.current = r, s.current = N, C) {
|
|
771
771
|
if (!o.current && f.current)
|
|
772
772
|
return i.current = s.current, b(Q, e), g ? w(s.current) : l.current;
|
|
773
773
|
if (_)
|
|
@@ -895,7 +895,7 @@ const jt = (t = !0, e = !1, n = "window") => {
|
|
|
895
895
|
ARTICLE: "microcourseArticle",
|
|
896
896
|
DISCUSSION: "microcourseDiscussion",
|
|
897
897
|
QUIZ: "assessmentQuiz"
|
|
898
|
-
},
|
|
898
|
+
}, Nl = "200,000+";
|
|
899
899
|
function Hs(t) {
|
|
900
900
|
return t ? {
|
|
901
901
|
"--icon": `url(${Be}icons/${t}.svg)`
|
|
@@ -1221,7 +1221,7 @@ Thank you for helping to protect the Apolitical community from abusive content.`
|
|
|
1221
1221
|
timeToComplete_range_aria: "between {early} and {late}",
|
|
1222
1222
|
tooltip_loading: "Loading...",
|
|
1223
1223
|
return_to_nav_button: "Back to top",
|
|
1224
|
-
|
|
1224
|
+
progressTracker: "Step {current} of {total}",
|
|
1225
1225
|
/* Layout */
|
|
1226
1226
|
cookieBanner_title: "Cookies and your privacy",
|
|
1227
1227
|
cookieBanner_text: "We take your trust and privacy very seriously. Apolitical uses safe cookies (small files on your device) to run the site. You can reject non-essential cookies, but some site features may not work without them.",
|
|
@@ -1240,6 +1240,7 @@ Thank you for helping to protect the Apolitical community from abusive content.`
|
|
|
1240
1240
|
footer_community_join: "Who can join",
|
|
1241
1241
|
footer_community_guidelines: "Guidelines & values",
|
|
1242
1242
|
footer_company: "Company",
|
|
1243
|
+
footer_company_news: "News",
|
|
1243
1244
|
footer_company_story: "Our story",
|
|
1244
1245
|
footer_company_team: "Meet our team",
|
|
1245
1246
|
footer_company_careers: "Careers",
|
|
@@ -1404,7 +1405,7 @@ Thank you for helping to protect the Apolitical community from abusive content.`
|
|
|
1404
1405
|
es: Gs,
|
|
1405
1406
|
fr: Qs,
|
|
1406
1407
|
pt: Js
|
|
1407
|
-
}, Symbol.toStringTag, { value: "Module" })), Qn = (t, e = rt) => t in e,
|
|
1408
|
+
}, Symbol.toStringTag, { value: "Module" })), Qn = (t, e = rt) => t in e, Ne = (t, e, n, r, s = {}) => {
|
|
1408
1409
|
let i = "";
|
|
1409
1410
|
return Qn(`${e}_${n}`) ? i = t({ id: `${e}_${n}` }, s) : i = t({ id: e }, { [r]: n, ...s }), i;
|
|
1410
1411
|
}, ei = (t, e, n) => {
|
|
@@ -1646,7 +1647,7 @@ const Tt = ({ image: t, className: e, testId: n }) => {
|
|
|
1646
1647
|
)
|
|
1647
1648
|
] });
|
|
1648
1649
|
};
|
|
1649
|
-
const
|
|
1650
|
+
const $l = ({ image: t, className: e = "", testId: n }) => /* @__PURE__ */ a.jsx(
|
|
1650
1651
|
"div",
|
|
1651
1652
|
{
|
|
1652
1653
|
className: `image-container ${e}`,
|
|
@@ -1673,8 +1674,8 @@ const Pl = ({ currentStep: t = 1, steps: e = 1 }) => /* @__PURE__ */ a.jsxs(a.Fr
|
|
|
1673
1674
|
/* @__PURE__ */ a.jsx(be, { children: /* @__PURE__ */ a.jsx(
|
|
1674
1675
|
ye,
|
|
1675
1676
|
{
|
|
1676
|
-
id: "
|
|
1677
|
-
values: {
|
|
1677
|
+
id: "progressTracker",
|
|
1678
|
+
values: { current: t, total: e }
|
|
1678
1679
|
}
|
|
1679
1680
|
) }),
|
|
1680
1681
|
/* @__PURE__ */ a.jsx("div", { className: "progress-tracker", children: /* @__PURE__ */ a.jsx("div", { className: "dots-wrapper", children: new Array(e).fill("").map((n, r) => {
|
|
@@ -2070,7 +2071,7 @@ const Fl = ({
|
|
|
2070
2071
|
),
|
|
2071
2072
|
/* @__PURE__ */ a.jsx("span", { id: `content-after-iframe-${n}`, tabIndex: -1 })
|
|
2072
2073
|
] });
|
|
2073
|
-
},
|
|
2074
|
+
}, Nr = (t) => {
|
|
2074
2075
|
let e = "";
|
|
2075
2076
|
return t && typeof t != "string" && typeof t != "number" && typeof t != "boolean" && "type" in t && (e = t.type), e;
|
|
2076
2077
|
}, hi = ({
|
|
@@ -2084,9 +2085,9 @@ const Fl = ({
|
|
|
2084
2085
|
if (!(!i || typeof i == "string" || typeof i == "number") && Y.isValidElement(i)) {
|
|
2085
2086
|
const o = i.type;
|
|
2086
2087
|
if (["button", "center", "span", "strong"].includes(o) && i.props && i.props.children && i.props.children[0])
|
|
2087
|
-
for ((o === "button" ||
|
|
2088
|
+
for ((o === "button" || Nr(i.props.children[0]) === "button") && (s = !0), r = i.props.children[0]; r && typeof r != "string" && !(typeof r == "boolean" || typeof r == "number" || !Y.isValidElement(r)); )
|
|
2088
2089
|
if (r.props && r.props.children && r.props.children[0])
|
|
2089
|
-
r = r.props.children[0], r &&
|
|
2090
|
+
r = r.props.children[0], r && Nr(r) === "button" && (s = !0);
|
|
2090
2091
|
else
|
|
2091
2092
|
break;
|
|
2092
2093
|
}
|
|
@@ -2281,7 +2282,7 @@ const Xn = ({
|
|
|
2281
2282
|
};
|
|
2282
2283
|
let ct = !1;
|
|
2283
2284
|
const _i = ({ isOpen: t = !1, isLoading: e = !1, children: n }) => {
|
|
2284
|
-
const r = H(), s = pe(null), [i, o] = X("hidden");
|
|
2285
|
+
const r = H(), s = pe(null), [i, o] = X(t ? "open" : "hidden");
|
|
2285
2286
|
ae(() => {
|
|
2286
2287
|
const d = s.current;
|
|
2287
2288
|
if (d)
|
|
@@ -2681,7 +2682,7 @@ const Ci = ({ children: t, user: e }) => e.isLoading ? null : process.env.REACT_
|
|
|
2681
2682
|
},
|
|
2682
2683
|
children: t
|
|
2683
2684
|
}
|
|
2684
|
-
) : /* @__PURE__ */ a.jsx(a.Fragment, { children: t }),
|
|
2685
|
+
) : /* @__PURE__ */ a.jsx(a.Fragment, { children: t }), Ni = ({ children: t, locale: e, messages: n }) => {
|
|
2685
2686
|
const r = e || "en", s = {
|
|
2686
2687
|
...Xs[r],
|
|
2687
2688
|
...n || {}
|
|
@@ -2696,7 +2697,7 @@ const Ci = ({ children: t, user: e }) => e.isLoading ? null : process.env.REACT_
|
|
|
2696
2697
|
function er() {
|
|
2697
2698
|
return Ee(De);
|
|
2698
2699
|
}
|
|
2699
|
-
const
|
|
2700
|
+
const $i = ({ children: t, user: e }) => /* @__PURE__ */ a.jsx(De.Provider, { value: e, children: t }), Zl = ({ bootstrap: t, children: e, intl: n, showDevTools: r }) => {
|
|
2700
2701
|
const [s, i] = X({ isLoading: !0 }), o = (n == null ? void 0 : n.locale) || localStorage.getItem("language") || "en", [c, d] = X(o), l = (u) => {
|
|
2701
2702
|
localStorage.setItem("language", u), d(u);
|
|
2702
2703
|
};
|
|
@@ -2705,11 +2706,11 @@ const Ni = ({ children: t, user: e }) => /* @__PURE__ */ a.jsx(De.Provider, { va
|
|
|
2705
2706
|
i({ ...u, isLoading: !1 }), ti(5e3);
|
|
2706
2707
|
}).catch(() => i({ isLoading: !1 }));
|
|
2707
2708
|
}, []), /* @__PURE__ */ a.jsx(ya.Provider, { value: { language: c, updateLanguage: l }, children: /* @__PURE__ */ a.jsx(
|
|
2708
|
-
|
|
2709
|
+
Ni,
|
|
2709
2710
|
{
|
|
2710
2711
|
locale: c,
|
|
2711
2712
|
messages: n == null ? void 0 : n.messages,
|
|
2712
|
-
children: /* @__PURE__ */ a.jsx(
|
|
2713
|
+
children: /* @__PURE__ */ a.jsx(Ns, { children: /* @__PURE__ */ a.jsx($i, { user: s, children: /* @__PURE__ */ a.jsx(Ti, { showDevTools: r, children: /* @__PURE__ */ a.jsx(Ci, { user: s, children: e }) }) }) })
|
|
2713
2714
|
}
|
|
2714
2715
|
) });
|
|
2715
2716
|
};
|
|
@@ -2838,13 +2839,13 @@ const zn = {
|
|
|
2838
2839
|
if (r <= e * (s + 1))
|
|
2839
2840
|
return Ct[s];
|
|
2840
2841
|
};
|
|
2841
|
-
const
|
|
2842
|
+
const $r = 256, Ye = ({
|
|
2842
2843
|
className: t = "",
|
|
2843
2844
|
src: e = "",
|
|
2844
2845
|
name: n,
|
|
2845
2846
|
alt: r,
|
|
2846
|
-
width: s =
|
|
2847
|
-
height: i =
|
|
2847
|
+
width: s = $r,
|
|
2848
|
+
height: i = $r,
|
|
2848
2849
|
...o
|
|
2849
2850
|
}) => {
|
|
2850
2851
|
const [c, d] = X(!1), l = pe(null);
|
|
@@ -3000,14 +3001,14 @@ const Pr = {
|
|
|
3000
3001
|
] })
|
|
3001
3002
|
});
|
|
3002
3003
|
};
|
|
3003
|
-
const
|
|
3004
|
+
const Nt = "emailHelperTextBox_", Oi = ({
|
|
3004
3005
|
type: t,
|
|
3005
3006
|
email: e,
|
|
3006
3007
|
redirectPath: n,
|
|
3007
3008
|
resendVerificationCode: r
|
|
3008
3009
|
}) => {
|
|
3009
3010
|
const s = H(), [i, o] = X({
|
|
3010
|
-
path: `${
|
|
3011
|
+
path: `${Nt}default`,
|
|
3011
3012
|
type: "default",
|
|
3012
3013
|
link: {},
|
|
3013
3014
|
mail: {},
|
|
@@ -3017,7 +3018,7 @@ const $t = "emailHelperTextBox_", Oi = ({
|
|
|
3017
3018
|
p.preventDefault(), p.stopPropagation();
|
|
3018
3019
|
const g = (v) => {
|
|
3019
3020
|
o({
|
|
3020
|
-
path: `${
|
|
3021
|
+
path: `${Nt}error_verificationFailedToSend`,
|
|
3021
3022
|
type: "error",
|
|
3022
3023
|
link: {
|
|
3023
3024
|
"data-gtm-event-context": "VerifyEmailBox",
|
|
@@ -3037,7 +3038,7 @@ const $t = "emailHelperTextBox_", Oi = ({
|
|
|
3037
3038
|
});
|
|
3038
3039
|
};
|
|
3039
3040
|
if (typeof r != "function") {
|
|
3040
|
-
g(s.formatMessage({ id: `${
|
|
3041
|
+
g(s.formatMessage({ id: `${Nt}error_noFunction` }));
|
|
3041
3042
|
return;
|
|
3042
3043
|
}
|
|
3043
3044
|
d(!0), r(e).then(() => {
|
|
@@ -3053,7 +3054,7 @@ const $t = "emailHelperTextBox_", Oi = ({
|
|
|
3053
3054
|
);
|
|
3054
3055
|
ae(
|
|
3055
3056
|
() => {
|
|
3056
|
-
let p =
|
|
3057
|
+
let p = Nt, g = "default", v = {}, _ = {};
|
|
3057
3058
|
switch (t) {
|
|
3058
3059
|
case "gov":
|
|
3059
3060
|
p += "autoApproved", g = "success";
|
|
@@ -3850,7 +3851,7 @@ const rn = ({
|
|
|
3850
3851
|
formSubmitted: !1,
|
|
3851
3852
|
errors: {},
|
|
3852
3853
|
values: R
|
|
3853
|
-
}), { errors:
|
|
3854
|
+
}), { errors: N, isSubmitting: C, formSubmitted: k, values: j } = Q;
|
|
3854
3855
|
ae(() => {
|
|
3855
3856
|
S && k && (bn = setTimeout(() => {
|
|
3856
3857
|
B({
|
|
@@ -3877,7 +3878,7 @@ const rn = ({
|
|
|
3877
3878
|
);
|
|
3878
3879
|
};
|
|
3879
3880
|
}, []);
|
|
3880
|
-
const
|
|
3881
|
+
const $ = pe(null), A = r || $;
|
|
3881
3882
|
if (!t.length)
|
|
3882
3883
|
return null;
|
|
3883
3884
|
i.text || (i.text = F.formatMessage({ id: "form_submit" }));
|
|
@@ -3957,7 +3958,7 @@ const rn = ({
|
|
|
3957
3958
|
className: E("form", e),
|
|
3958
3959
|
ref: A,
|
|
3959
3960
|
children: [
|
|
3960
|
-
|
|
3961
|
+
N != null && N.general ? /* @__PURE__ */ a.jsx(
|
|
3961
3962
|
He,
|
|
3962
3963
|
{
|
|
3963
3964
|
variant: "error",
|
|
@@ -3981,7 +3982,7 @@ const rn = ({
|
|
|
3981
3982
|
...z,
|
|
3982
3983
|
showRequiredLabels: w,
|
|
3983
3984
|
value: L,
|
|
3984
|
-
error:
|
|
3985
|
+
error: N == null ? void 0 : N[T],
|
|
3985
3986
|
functions: {
|
|
3986
3987
|
...q,
|
|
3987
3988
|
onChange: (U) => {
|
|
@@ -4008,10 +4009,10 @@ const rn = ({
|
|
|
4008
4009
|
b && k && /* @__PURE__ */ a.jsx(Wt, { className: "success", children: typeof b == "string" ? b : F.formatMessage({ id: "form_success" }) })
|
|
4009
4010
|
] });
|
|
4010
4011
|
};
|
|
4011
|
-
const
|
|
4012
|
+
const $t = "passwordRules_", Sa = "isMoreThanEightCharacters", Ca = "includesNumberAndSymbol", Na = "includesLowerAndUppercase", zi = {
|
|
4012
4013
|
[Sa]: "8Characters",
|
|
4013
4014
|
[Ca]: "numberSymbol",
|
|
4014
|
-
[
|
|
4015
|
+
[Na]: "lowercaseUppercase"
|
|
4015
4016
|
}, Zi = ({
|
|
4016
4017
|
matchingRules: t = {
|
|
4017
4018
|
isMoreThanEightCharacters: !1,
|
|
@@ -4022,21 +4023,21 @@ const Nt = "passwordRules_", Sa = "isMoreThanEightCharacters", Ca = "includesNum
|
|
|
4022
4023
|
}) => {
|
|
4023
4024
|
const n = H();
|
|
4024
4025
|
return /* @__PURE__ */ a.jsxs("aside", { className: E("password-rules", e), children: [
|
|
4025
|
-
/* @__PURE__ */ a.jsx("small", { children: n.formatMessage({ id: `${
|
|
4026
|
-
/* @__PURE__ */ a.jsx("ul", { children: [Sa, Ca,
|
|
4026
|
+
/* @__PURE__ */ a.jsx("small", { children: n.formatMessage({ id: `${$t}intro` }) }),
|
|
4027
|
+
/* @__PURE__ */ a.jsx("ul", { children: [Sa, Ca, Na].map(
|
|
4027
4028
|
(r) => /* @__PURE__ */ a.jsxs(
|
|
4028
4029
|
"li",
|
|
4029
4030
|
{
|
|
4030
4031
|
className: E({ matches: t[r] }),
|
|
4031
4032
|
children: [
|
|
4032
4033
|
/* @__PURE__ */ a.jsxs(be, { children: [
|
|
4033
|
-
n.formatMessage({ id: `${
|
|
4034
|
+
n.formatMessage({ id: `${$t}rule_label` }),
|
|
4034
4035
|
" "
|
|
4035
4036
|
] }),
|
|
4036
|
-
/* @__PURE__ */ a.jsx("span", { children: n.formatMessage({ id: `${
|
|
4037
|
+
/* @__PURE__ */ a.jsx("span", { children: n.formatMessage({ id: `${$t}rule_${zi[r]}` }) }),
|
|
4037
4038
|
!t[r] && /* @__PURE__ */ a.jsxs(be, { element: "strong", children: [
|
|
4038
4039
|
" ",
|
|
4039
|
-
n.formatMessage({ id: `${
|
|
4040
|
+
n.formatMessage({ id: `${$t}notMet` })
|
|
4040
4041
|
] })
|
|
4041
4042
|
]
|
|
4042
4043
|
},
|
|
@@ -4346,7 +4347,7 @@ const Yi = ({
|
|
|
4346
4347
|
/* @__PURE__ */ a.jsx("h2", { className: "title", style: { color: r }, children: t }),
|
|
4347
4348
|
/* @__PURE__ */ a.jsx("label", { htmlFor: "email-input", className: "label", style: { color: s }, children: e }),
|
|
4348
4349
|
/* @__PURE__ */ a.jsx(
|
|
4349
|
-
|
|
4350
|
+
$s,
|
|
4350
4351
|
{
|
|
4351
4352
|
id: "email-input",
|
|
4352
4353
|
inputClassName: "email-input input",
|
|
@@ -4843,7 +4844,7 @@ const eo = {
|
|
|
4843
4844
|
maxAge: 3600
|
|
4844
4845
|
});
|
|
4845
4846
|
}, [b]);
|
|
4846
|
-
const
|
|
4847
|
+
const N = wt(() => Ji({
|
|
4847
4848
|
placeholders: n,
|
|
4848
4849
|
labels: e,
|
|
4849
4850
|
shouldShow: g,
|
|
@@ -4874,7 +4875,7 @@ const eo = {
|
|
|
4874
4875
|
className: "signup-form",
|
|
4875
4876
|
formRef: B.form,
|
|
4876
4877
|
id: "sign-up-form",
|
|
4877
|
-
fields:
|
|
4878
|
+
fields: N,
|
|
4878
4879
|
intlPath: "signup",
|
|
4879
4880
|
button: {
|
|
4880
4881
|
variant: "primary",
|
|
@@ -5026,17 +5027,17 @@ function no() {
|
|
|
5026
5027
|
var ve = D.$$typeof;
|
|
5027
5028
|
switch (ve) {
|
|
5028
5029
|
case e:
|
|
5029
|
-
var
|
|
5030
|
-
switch (
|
|
5030
|
+
var $e = D.type;
|
|
5031
|
+
switch ($e) {
|
|
5031
5032
|
case d:
|
|
5032
5033
|
case l:
|
|
5033
5034
|
case r:
|
|
5034
5035
|
case i:
|
|
5035
5036
|
case s:
|
|
5036
5037
|
case f:
|
|
5037
|
-
return
|
|
5038
|
+
return $e;
|
|
5038
5039
|
default:
|
|
5039
|
-
var Ce =
|
|
5040
|
+
var Ce = $e && $e.$$typeof;
|
|
5040
5041
|
switch (Ce) {
|
|
5041
5042
|
case c:
|
|
5042
5043
|
case u:
|
|
@@ -5053,7 +5054,7 @@ function no() {
|
|
|
5053
5054
|
}
|
|
5054
5055
|
}
|
|
5055
5056
|
}
|
|
5056
|
-
var b = d, F = l, R = c, Q = o, B = e,
|
|
5057
|
+
var b = d, F = l, R = c, Q = o, B = e, N = u, C = r, k = g, j = p, $ = n, A = i, W = s, Z = f, z = !1;
|
|
5057
5058
|
function K(D) {
|
|
5058
5059
|
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(D) || w(D) === d;
|
|
5059
5060
|
}
|
|
@@ -5093,11 +5094,11 @@ function no() {
|
|
|
5093
5094
|
function oe(D) {
|
|
5094
5095
|
return w(D) === f;
|
|
5095
5096
|
}
|
|
5096
|
-
de.AsyncMode = b, de.ConcurrentMode = F, de.ContextConsumer = R, de.ContextProvider = Q, de.Element = B, de.ForwardRef =
|
|
5097
|
+
de.AsyncMode = b, de.ConcurrentMode = F, de.ContextConsumer = R, de.ContextProvider = Q, de.Element = B, de.ForwardRef = N, de.Fragment = C, de.Lazy = k, de.Memo = j, de.Portal = $, de.Profiler = A, de.StrictMode = W, de.Suspense = Z, de.isAsyncMode = K, de.isConcurrentMode = T, de.isContextConsumer = P, de.isContextProvider = q, de.isElement = L, de.isForwardRef = U, de.isFragment = te, de.isLazy = G, de.isMemo = V, de.isPortal = ee, de.isProfiler = re, de.isStrictMode = O, de.isSuspense = oe, de.isValidElementType = S, de.typeOf = w;
|
|
5097
5098
|
}()), de;
|
|
5098
5099
|
}
|
|
5099
5100
|
var Or;
|
|
5100
|
-
function
|
|
5101
|
+
function $a() {
|
|
5101
5102
|
return Or || (Or = 1, process.env.NODE_ENV === "production" ? Pt.exports = to() : Pt.exports = no()), Pt.exports;
|
|
5102
5103
|
}
|
|
5103
5104
|
/*
|
|
@@ -5219,7 +5220,7 @@ function so() {
|
|
|
5219
5220
|
if (Br)
|
|
5220
5221
|
return kn;
|
|
5221
5222
|
Br = 1;
|
|
5222
|
-
var t =
|
|
5223
|
+
var t = $a(), e = ro(), n = nr(), r = Pa(), s = ao(), i = function() {
|
|
5223
5224
|
};
|
|
5224
5225
|
process.env.NODE_ENV !== "production" && (i = function(c) {
|
|
5225
5226
|
var d = "Warning: " + c;
|
|
@@ -5253,7 +5254,7 @@ function so() {
|
|
|
5253
5254
|
element: w(),
|
|
5254
5255
|
elementType: b(),
|
|
5255
5256
|
instanceOf: F,
|
|
5256
|
-
node:
|
|
5257
|
+
node: N(),
|
|
5257
5258
|
objectOf: Q,
|
|
5258
5259
|
oneOf: R,
|
|
5259
5260
|
oneOfType: B,
|
|
@@ -5413,9 +5414,9 @@ function so() {
|
|
|
5413
5414
|
}
|
|
5414
5415
|
return _(L);
|
|
5415
5416
|
}
|
|
5416
|
-
function
|
|
5417
|
+
function N() {
|
|
5417
5418
|
function T(P, q, L, U, te) {
|
|
5418
|
-
return
|
|
5419
|
+
return $(P[q]) ? null : new v("Invalid " + U + " `" + te + "` supplied to " + ("`" + L + "`, expected a ReactNode."));
|
|
5419
5420
|
}
|
|
5420
5421
|
return _(T);
|
|
5421
5422
|
}
|
|
@@ -5464,7 +5465,7 @@ Valid keys: ` + JSON.stringify(Object.keys(T), null, " ")
|
|
|
5464
5465
|
}
|
|
5465
5466
|
return _(P);
|
|
5466
5467
|
}
|
|
5467
|
-
function
|
|
5468
|
+
function $(T) {
|
|
5468
5469
|
switch (typeof T) {
|
|
5469
5470
|
case "number":
|
|
5470
5471
|
case "string":
|
|
@@ -5474,7 +5475,7 @@ Valid keys: ` + JSON.stringify(Object.keys(T), null, " ")
|
|
|
5474
5475
|
return !T;
|
|
5475
5476
|
case "object":
|
|
5476
5477
|
if (Array.isArray(T))
|
|
5477
|
-
return T.every(
|
|
5478
|
+
return T.every($);
|
|
5478
5479
|
if (T === null || c(T))
|
|
5479
5480
|
return !0;
|
|
5480
5481
|
var P = f(T);
|
|
@@ -5482,12 +5483,12 @@ Valid keys: ` + JSON.stringify(Object.keys(T), null, " ")
|
|
|
5482
5483
|
var q = P.call(T), L;
|
|
5483
5484
|
if (P !== T.entries) {
|
|
5484
5485
|
for (; !(L = q.next()).done; )
|
|
5485
|
-
if (
|
|
5486
|
+
if (!$(L.value))
|
|
5486
5487
|
return !1;
|
|
5487
5488
|
} else
|
|
5488
5489
|
for (; !(L = q.next()).done; ) {
|
|
5489
5490
|
var U = L.value;
|
|
5490
|
-
if (U &&
|
|
5491
|
+
if (U && !$(U[1]))
|
|
5491
5492
|
return !1;
|
|
5492
5493
|
}
|
|
5493
5494
|
} else
|
|
@@ -5586,7 +5587,7 @@ function io() {
|
|
|
5586
5587
|
}, Tn;
|
|
5587
5588
|
}
|
|
5588
5589
|
if (process.env.NODE_ENV !== "production") {
|
|
5589
|
-
var oo =
|
|
5590
|
+
var oo = $a(), co = !0;
|
|
5590
5591
|
Zn.exports = so()(oo.isElement, co);
|
|
5591
5592
|
} else
|
|
5592
5593
|
Zn.exports = io()();
|
|
@@ -5820,7 +5821,7 @@ function zr(t) {
|
|
|
5820
5821
|
return t;
|
|
5821
5822
|
}
|
|
5822
5823
|
function So(t, e, n) {
|
|
5823
|
-
return e =
|
|
5824
|
+
return e = No(e), e in t ? Object.defineProperty(t, e, {
|
|
5824
5825
|
value: n,
|
|
5825
5826
|
enumerable: !0,
|
|
5826
5827
|
configurable: !0,
|
|
@@ -5839,7 +5840,7 @@ function Co(t, e) {
|
|
|
5839
5840
|
}
|
|
5840
5841
|
return (e === "string" ? String : Number)(t);
|
|
5841
5842
|
}
|
|
5842
|
-
function
|
|
5843
|
+
function No(t) {
|
|
5843
5844
|
var e = Co(t, "string");
|
|
5844
5845
|
return typeof e == "symbol" ? e : String(e);
|
|
5845
5846
|
}
|
|
@@ -5856,7 +5857,7 @@ var Zr = {
|
|
|
5856
5857
|
var r = e.indexOf(n);
|
|
5857
5858
|
r !== -1 && e.splice(r, 1), e.length > 0 && e[e.length - 1].unpause();
|
|
5858
5859
|
}
|
|
5859
|
-
},
|
|
5860
|
+
}, $o = function(e) {
|
|
5860
5861
|
return e.tagName && e.tagName.toLowerCase() === "input" && typeof e.select == "function";
|
|
5861
5862
|
}, Po = function(e) {
|
|
5862
5863
|
return (e == null ? void 0 : e.key) === "Escape" || (e == null ? void 0 : e.key) === "Esc" || (e == null ? void 0 : e.keyCode) === 27;
|
|
@@ -5922,24 +5923,24 @@ var Zr = {
|
|
|
5922
5923
|
delayInitialFocusTimer: void 0,
|
|
5923
5924
|
// the most recent KeyboardEvent for the configured nav key (typically [SHIFT+]TAB), if any
|
|
5924
5925
|
recentNavEvent: void 0
|
|
5925
|
-
}, c, d = function(k, j,
|
|
5926
|
-
return k && k[j] !== void 0 ? k[j] : i[
|
|
5926
|
+
}, c, d = function(k, j, $) {
|
|
5927
|
+
return k && k[j] !== void 0 ? k[j] : i[$ || j];
|
|
5927
5928
|
}, l = function(k, j) {
|
|
5928
|
-
var
|
|
5929
|
+
var $ = typeof (j == null ? void 0 : j.composedPath) == "function" ? j.composedPath() : void 0;
|
|
5929
5930
|
return o.containerGroups.findIndex(function(A) {
|
|
5930
5931
|
var W = A.container, Z = A.tabbableNodes;
|
|
5931
5932
|
return W.contains(k) || // fall back to explicit tabbable search which will take into consideration any
|
|
5932
5933
|
// web components if the `tabbableOptions.getShadowRoot` option was used for
|
|
5933
5934
|
// the trap, enabling shadow DOM support in tabbable (`Node.contains()` doesn't
|
|
5934
5935
|
// look inside web components even if open)
|
|
5935
|
-
(
|
|
5936
|
+
($ == null ? void 0 : $.includes(W)) || Z.find(function(z) {
|
|
5936
5937
|
return z === k;
|
|
5937
5938
|
});
|
|
5938
5939
|
});
|
|
5939
5940
|
}, u = function(k) {
|
|
5940
5941
|
var j = i[k];
|
|
5941
5942
|
if (typeof j == "function") {
|
|
5942
|
-
for (var
|
|
5943
|
+
for (var $ = arguments.length, A = new Array($ > 1 ? $ - 1 : 0), W = 1; W < $; W++)
|
|
5943
5944
|
A[W - 1] = arguments[W];
|
|
5944
5945
|
j = j.apply(void 0, A);
|
|
5945
5946
|
}
|
|
@@ -5960,17 +5961,17 @@ var Zr = {
|
|
|
5960
5961
|
if (l(r.activeElement) >= 0)
|
|
5961
5962
|
k = r.activeElement;
|
|
5962
5963
|
else {
|
|
5963
|
-
var j = o.tabbableGroups[0],
|
|
5964
|
-
k =
|
|
5964
|
+
var j = o.tabbableGroups[0], $ = j && j.firstTabbableNode;
|
|
5965
|
+
k = $ || u("fallbackFocus");
|
|
5965
5966
|
}
|
|
5966
5967
|
if (!k)
|
|
5967
5968
|
throw new Error("Your focus-trap needs to have at least one focusable element");
|
|
5968
5969
|
return k;
|
|
5969
5970
|
}, m = function() {
|
|
5970
5971
|
if (o.containerGroups = o.containers.map(function(k) {
|
|
5971
|
-
var j = Ia(k, i.tabbableOptions),
|
|
5972
|
+
var j = Ia(k, i.tabbableOptions), $ = La(k, i.tabbableOptions), A = j.length > 0 ? j[0] : void 0, W = j.length > 0 ? j[j.length - 1] : void 0, Z = $.find(function(T) {
|
|
5972
5973
|
return We(T);
|
|
5973
|
-
}), z =
|
|
5974
|
+
}), z = $.slice().reverse().find(function(T) {
|
|
5974
5975
|
return We(T);
|
|
5975
5976
|
}), K = !!j.find(function(T) {
|
|
5976
5977
|
return Ie(T) > 0;
|
|
@@ -5978,7 +5979,7 @@ var Zr = {
|
|
|
5978
5979
|
return {
|
|
5979
5980
|
container: k,
|
|
5980
5981
|
tabbableNodes: j,
|
|
5981
|
-
focusableNodes:
|
|
5982
|
+
focusableNodes: $,
|
|
5982
5983
|
/** True if at least one node with positive `tabindex` was found in this container. */
|
|
5983
5984
|
posTabIndexesFound: K,
|
|
5984
5985
|
/** First tabbable node in container, __tabindex__ order; `undefined` if none. */
|
|
@@ -6006,9 +6007,9 @@ var Zr = {
|
|
|
6006
6007
|
*/
|
|
6007
6008
|
nextTabbableNode: function(P) {
|
|
6008
6009
|
var q = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !0, L = j.indexOf(P);
|
|
6009
|
-
return L < 0 ? q ?
|
|
6010
|
+
return L < 0 ? q ? $.slice($.indexOf(P) + 1).find(function(U) {
|
|
6010
6011
|
return We(U);
|
|
6011
|
-
}) :
|
|
6012
|
+
}) : $.slice(0, $.indexOf(P)).reverse().find(function(U) {
|
|
6012
6013
|
return We(U);
|
|
6013
6014
|
}) : j[L + (q ? 1 : -1)];
|
|
6014
6015
|
}
|
|
@@ -6033,17 +6034,17 @@ var Zr = {
|
|
|
6033
6034
|
}
|
|
6034
6035
|
k.focus({
|
|
6035
6036
|
preventScroll: !!i.preventScroll
|
|
6036
|
-
}), o.mostRecentlyFocusedNode = k,
|
|
6037
|
+
}), o.mostRecentlyFocusedNode = k, $o(k) && k.select();
|
|
6037
6038
|
}
|
|
6038
6039
|
}, v = function(k) {
|
|
6039
6040
|
var j = u("setReturnFocus", k);
|
|
6040
6041
|
return j || (j === !1 ? !1 : k);
|
|
6041
6042
|
}, _ = function(k) {
|
|
6042
|
-
var j = k.target,
|
|
6043
|
-
j = j || Mt(
|
|
6043
|
+
var j = k.target, $ = k.event, A = k.isBackward, W = A === void 0 ? !1 : A;
|
|
6044
|
+
j = j || Mt($), m();
|
|
6044
6045
|
var Z = null;
|
|
6045
6046
|
if (o.tabbableGroups.length > 0) {
|
|
6046
|
-
var z = l(j,
|
|
6047
|
+
var z = l(j, $), K = z >= 0 ? o.containerGroups[z] : void 0;
|
|
6047
6048
|
if (z < 0)
|
|
6048
6049
|
W ? Z = o.tabbableGroups[o.tabbableGroups.length - 1].lastTabbableNode : Z = o.tabbableGroups[0].firstTabbableNode;
|
|
6049
6050
|
else if (W) {
|
|
@@ -6055,7 +6056,7 @@ var Zr = {
|
|
|
6055
6056
|
var P = T === 0 ? o.tabbableGroups.length - 1 : T - 1, q = o.tabbableGroups[P];
|
|
6056
6057
|
Z = Ie(j) >= 0 ? q.lastTabbableNode : q.lastDomTabbableNode;
|
|
6057
6058
|
} else
|
|
6058
|
-
vt(
|
|
6059
|
+
vt($) || (Z = K.nextTabbableNode(j, !1));
|
|
6059
6060
|
} else {
|
|
6060
6061
|
var L = Vr(o.tabbableGroups, function(G) {
|
|
6061
6062
|
var V = G.lastTabbableNode;
|
|
@@ -6065,7 +6066,7 @@ var Zr = {
|
|
|
6065
6066
|
var U = L === o.tabbableGroups.length - 1 ? 0 : L + 1, te = o.tabbableGroups[U];
|
|
6066
6067
|
Z = Ie(j) >= 0 ? te.firstTabbableNode : te.firstDomTabbableNode;
|
|
6067
6068
|
} else
|
|
6068
|
-
vt(
|
|
6069
|
+
vt($) || (Z = K.nextTabbableNode(j));
|
|
6069
6070
|
}
|
|
6070
6071
|
} else
|
|
6071
6072
|
Z = u("fallbackFocus");
|
|
@@ -6088,9 +6089,9 @@ var Zr = {
|
|
|
6088
6089
|
lt(i.allowOutsideClick, k) || k.preventDefault();
|
|
6089
6090
|
}
|
|
6090
6091
|
}, x = function(k) {
|
|
6091
|
-
var j = Mt(k),
|
|
6092
|
-
if (
|
|
6093
|
-
|
|
6092
|
+
var j = Mt(k), $ = l(j, k) >= 0;
|
|
6093
|
+
if ($ || j instanceof Document)
|
|
6094
|
+
$ && (o.mostRecentlyFocusedNode = j);
|
|
6094
6095
|
else {
|
|
6095
6096
|
k.stopImmediatePropagation();
|
|
6096
6097
|
var A, W = !0;
|
|
@@ -6122,11 +6123,11 @@ var Zr = {
|
|
|
6122
6123
|
}, S = function(k) {
|
|
6123
6124
|
var j = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !1;
|
|
6124
6125
|
o.recentNavEvent = k;
|
|
6125
|
-
var
|
|
6126
|
+
var $ = _({
|
|
6126
6127
|
event: k,
|
|
6127
6128
|
isBackward: j
|
|
6128
6129
|
});
|
|
6129
|
-
|
|
6130
|
+
$ && (vt(k) && k.preventDefault(), g($));
|
|
6130
6131
|
}, w = function(k) {
|
|
6131
6132
|
if (Po(k) && lt(i.escapeDeactivates, k) !== !1) {
|
|
6132
6133
|
k.preventDefault(), c.deactivate();
|
|
@@ -6157,14 +6158,14 @@ var Zr = {
|
|
|
6157
6158
|
if (o.active)
|
|
6158
6159
|
return r.removeEventListener("focusin", x, !0), r.removeEventListener("mousedown", y, !0), r.removeEventListener("touchstart", y, !0), r.removeEventListener("click", b, !0), r.removeEventListener("keydown", w, !0), c;
|
|
6159
6160
|
}, Q = function(k) {
|
|
6160
|
-
var j = k.some(function(
|
|
6161
|
-
var A = Array.from(
|
|
6161
|
+
var j = k.some(function($) {
|
|
6162
|
+
var A = Array.from($.removedNodes);
|
|
6162
6163
|
return A.some(function(W) {
|
|
6163
6164
|
return W === o.mostRecentlyFocusedNode;
|
|
6164
6165
|
});
|
|
6165
6166
|
});
|
|
6166
6167
|
j && g(f());
|
|
6167
|
-
}, B = typeof window < "u" && "MutationObserver" in window ? new MutationObserver(Q) : void 0,
|
|
6168
|
+
}, B = typeof window < "u" && "MutationObserver" in window ? new MutationObserver(Q) : void 0, N = function() {
|
|
6168
6169
|
B && (B.disconnect(), o.active && !o.paused && o.containers.map(function(k) {
|
|
6169
6170
|
B.observe(k, {
|
|
6170
6171
|
subtree: !0,
|
|
@@ -6182,10 +6183,10 @@ var Zr = {
|
|
|
6182
6183
|
activate: function(k) {
|
|
6183
6184
|
if (o.active)
|
|
6184
6185
|
return this;
|
|
6185
|
-
var j = d(k, "onActivate"),
|
|
6186
|
+
var j = d(k, "onActivate"), $ = d(k, "onPostActivate"), A = d(k, "checkCanFocusTrap");
|
|
6186
6187
|
A || m(), o.active = !0, o.paused = !1, o.nodeFocusedBeforeActivation = r.activeElement, j == null || j();
|
|
6187
6188
|
var W = function() {
|
|
6188
|
-
A && m(), F(),
|
|
6189
|
+
A && m(), F(), N(), $ == null || $();
|
|
6189
6190
|
};
|
|
6190
6191
|
return A ? (A(o.containers.concat()).then(W, W), this) : (W(), this);
|
|
6191
6192
|
},
|
|
@@ -6197,9 +6198,9 @@ var Zr = {
|
|
|
6197
6198
|
onPostDeactivate: i.onPostDeactivate,
|
|
6198
6199
|
checkCanReturnFocus: i.checkCanReturnFocus
|
|
6199
6200
|
}, k);
|
|
6200
|
-
clearTimeout(o.delayInitialFocusTimer), o.delayInitialFocusTimer = void 0, R(), o.active = !1, o.paused = !1,
|
|
6201
|
-
var
|
|
6202
|
-
|
|
6201
|
+
clearTimeout(o.delayInitialFocusTimer), o.delayInitialFocusTimer = void 0, R(), o.active = !1, o.paused = !1, N(), Zr.deactivateTrap(s, c);
|
|
6202
|
+
var $ = d(j, "onDeactivate"), A = d(j, "onPostDeactivate"), W = d(j, "checkCanReturnFocus"), Z = d(j, "returnFocus", "returnFocusOnDeactivate");
|
|
6203
|
+
$ == null || $();
|
|
6203
6204
|
var z = function() {
|
|
6204
6205
|
Hr(function() {
|
|
6205
6206
|
Z && g(v(o.nodeFocusedBeforeActivation)), A == null || A();
|
|
@@ -6210,20 +6211,20 @@ var Zr = {
|
|
|
6210
6211
|
pause: function(k) {
|
|
6211
6212
|
if (o.paused || !o.active)
|
|
6212
6213
|
return this;
|
|
6213
|
-
var j = d(k, "onPause"),
|
|
6214
|
-
return o.paused = !0, j == null || j(), R(),
|
|
6214
|
+
var j = d(k, "onPause"), $ = d(k, "onPostPause");
|
|
6215
|
+
return o.paused = !0, j == null || j(), R(), N(), $ == null || $(), this;
|
|
6215
6216
|
},
|
|
6216
6217
|
unpause: function(k) {
|
|
6217
6218
|
if (!o.paused || !o.active)
|
|
6218
6219
|
return this;
|
|
6219
|
-
var j = d(k, "onUnpause"),
|
|
6220
|
-
return o.paused = !1, j == null || j(), m(), F(),
|
|
6220
|
+
var j = d(k, "onUnpause"), $ = d(k, "onPostUnpause");
|
|
6221
|
+
return o.paused = !1, j == null || j(), m(), F(), N(), $ == null || $(), this;
|
|
6221
6222
|
},
|
|
6222
6223
|
updateContainerElements: function(k) {
|
|
6223
6224
|
var j = [].concat(k).filter(Boolean);
|
|
6224
|
-
return o.containers = j.map(function(
|
|
6225
|
-
return typeof
|
|
6226
|
-
}), o.active && m(),
|
|
6225
|
+
return o.containers = j.map(function($) {
|
|
6226
|
+
return typeof $ == "string" ? r.querySelector($) : $;
|
|
6227
|
+
}), o.active && m(), N(), this;
|
|
6227
6228
|
}
|
|
6228
6229
|
}, c.updateContainerElements(e), c;
|
|
6229
6230
|
};
|
|
@@ -6931,9 +6932,9 @@ const nc = {
|
|
|
6931
6932
|
data: null,
|
|
6932
6933
|
isLoading: !0
|
|
6933
6934
|
}), { data: m, isLoading: p } = u, g = sa(() => {
|
|
6934
|
-
n(e, l).then((
|
|
6935
|
-
f(() => ({ data:
|
|
6936
|
-
}).catch(() => f((
|
|
6935
|
+
n(e, l).then((N) => {
|
|
6936
|
+
f(() => ({ data: N, isLoading: !1 }));
|
|
6937
|
+
}).catch(() => f((N) => ({ ...N, isLoading: !1 })));
|
|
6937
6938
|
}, [t]);
|
|
6938
6939
|
if (ae(() => {
|
|
6939
6940
|
g();
|
|
@@ -7029,12 +7030,12 @@ const nc = {
|
|
|
7029
7030
|
{ partner: m.partner[0], number: m.partner.length - 1 }
|
|
7030
7031
|
) : et(m.partner[0], b.partner) }),
|
|
7031
7032
|
/* Text */
|
|
7032
|
-
["title", "text", "secondaryText"].map((
|
|
7033
|
-
const C = m[
|
|
7033
|
+
["title", "text", "secondaryText"].map((N) => {
|
|
7034
|
+
const C = m[N];
|
|
7034
7035
|
if (!C)
|
|
7035
7036
|
return null;
|
|
7036
|
-
const k = Ws(
|
|
7037
|
-
return /* @__PURE__ */ a.jsx("p", { className: k, "data-testid": k, children: et(C, b[
|
|
7037
|
+
const k = Ws(N);
|
|
7038
|
+
return /* @__PURE__ */ a.jsx("p", { className: k, "data-testid": k, children: et(C, b[N]) }, N);
|
|
7038
7039
|
}),
|
|
7039
7040
|
(m == null ? void 0 : m.members) && /* @__PURE__ */ a.jsxs("span", { className: "member-information", children: [
|
|
7040
7041
|
((R = m == null ? void 0 : m.members) == null ? void 0 : R.isMember) && /* @__PURE__ */ a.jsx(
|
|
@@ -7123,17 +7124,17 @@ const ic = ({
|
|
|
7123
7124
|
loadedPages: [0]
|
|
7124
7125
|
}), { currentPage: v, loadedPages: _ } = p, y = e.length, x = Math.ceil(y / f), S = pe(null), w = jt(!0, !0, S == null ? void 0 : S.current);
|
|
7125
7126
|
ae(() => {
|
|
7126
|
-
let
|
|
7127
|
-
w && (w >= En.fourCards ?
|
|
7127
|
+
let N = 1;
|
|
7128
|
+
w && (w >= En.fourCards ? N = 4 : w >= En.threeCards ? N = 3 : w >= En.twoCards && (N = 2), N > y && (N = y)), u((C) => ({
|
|
7128
7129
|
...C,
|
|
7129
|
-
cardsPerPage:
|
|
7130
|
+
cardsPerPage: N,
|
|
7130
7131
|
isLoading: !1
|
|
7131
7132
|
}));
|
|
7132
7133
|
}, [w, y]);
|
|
7133
|
-
const b = (
|
|
7134
|
+
const b = (N = "next") => {
|
|
7134
7135
|
let C = v;
|
|
7135
|
-
if (typeof
|
|
7136
|
-
if (
|
|
7136
|
+
if (typeof N == "string")
|
|
7137
|
+
if (N === "next")
|
|
7137
7138
|
if (v < x - 1)
|
|
7138
7139
|
C = v + 1;
|
|
7139
7140
|
else
|
|
@@ -7143,18 +7144,18 @@ const ic = ({
|
|
|
7143
7144
|
else
|
|
7144
7145
|
return;
|
|
7145
7146
|
else
|
|
7146
|
-
C =
|
|
7147
|
+
C = N;
|
|
7147
7148
|
g((k) => ({
|
|
7148
7149
|
...k,
|
|
7149
7150
|
currentPage: C,
|
|
7150
7151
|
loadedPages: [.../* @__PURE__ */ new Set([..._, C])]
|
|
7151
7152
|
}));
|
|
7152
|
-
}, F = (
|
|
7153
|
-
Ft =
|
|
7154
|
-
}, R = (
|
|
7153
|
+
}, F = (N) => {
|
|
7154
|
+
Ft = N.touches[0].clientX;
|
|
7155
|
+
}, R = (N) => {
|
|
7155
7156
|
if (Ft === null)
|
|
7156
7157
|
return;
|
|
7157
|
-
const C =
|
|
7158
|
+
const C = N.touches[0].clientX, k = Ft - C;
|
|
7158
7159
|
k > 5 ? b("next") : k < -5 && b("previous"), Ft = null;
|
|
7159
7160
|
}, Q = {
|
|
7160
7161
|
"--width": `${w || 0}px`,
|
|
@@ -7164,10 +7165,10 @@ const ic = ({
|
|
|
7164
7165
|
};
|
|
7165
7166
|
if (m)
|
|
7166
7167
|
return /* @__PURE__ */ a.jsx(wa, { layout: `carousel${s ? "-with-title" : ""}` });
|
|
7167
|
-
const B = (
|
|
7168
|
+
const B = (N, C) => {
|
|
7168
7169
|
var j;
|
|
7169
7170
|
let k = null;
|
|
7170
|
-
return (j =
|
|
7171
|
+
return (j = N == null ? void 0 : N.sys) != null && j.id ? k = `card-${N.sys.id}` : N != null && N.slug ? k = `card-${N.slug}` : [n[C], N.contentType].includes("customCard") && (k = `card-${window.btoa(`${N.title} ${N.createdAt}`)}-${C}`), k;
|
|
7171
7172
|
};
|
|
7172
7173
|
return /* @__PURE__ */ a.jsxs(
|
|
7173
7174
|
"section",
|
|
@@ -7185,13 +7186,13 @@ const ic = ({
|
|
|
7185
7186
|
onTouchMove: R,
|
|
7186
7187
|
style: Q,
|
|
7187
7188
|
"data-testid": "carousel-list",
|
|
7188
|
-
children: e.map((
|
|
7189
|
-
let k = B(
|
|
7189
|
+
children: e.map((N, C) => {
|
|
7190
|
+
let k = B(N, C);
|
|
7190
7191
|
return k && ac(C, f, v, _) ? /* @__PURE__ */ a.jsx(
|
|
7191
7192
|
Ua,
|
|
7192
7193
|
{
|
|
7193
7194
|
id: k,
|
|
7194
|
-
card: {
|
|
7195
|
+
card: { ...N, contentType: n[C] },
|
|
7195
7196
|
buildCardData: r,
|
|
7196
7197
|
gtmContext: o,
|
|
7197
7198
|
...c
|
|
@@ -7216,8 +7217,8 @@ const ic = ({
|
|
|
7216
7217
|
variant: "secondary",
|
|
7217
7218
|
size: "large",
|
|
7218
7219
|
icon: { icon: "chevron_left" },
|
|
7219
|
-
onClick: (
|
|
7220
|
-
|
|
7220
|
+
onClick: (N) => {
|
|
7221
|
+
N.preventDefault(), N.stopPropagation(), b("previous");
|
|
7221
7222
|
},
|
|
7222
7223
|
screenreaderText: d.formatMessage({
|
|
7223
7224
|
id: "carousel_pagination_previous"
|
|
@@ -7225,7 +7226,7 @@ const ic = ({
|
|
|
7225
7226
|
disabled: v <= 0
|
|
7226
7227
|
}
|
|
7227
7228
|
) }),
|
|
7228
|
-
[...Array(x)].map((
|
|
7229
|
+
[...Array(x)].map((N, C) => /* @__PURE__ */ a.jsx("li", { "data-testid": "carousel-controls-button", children: /* @__PURE__ */ a.jsx(
|
|
7229
7230
|
"button",
|
|
7230
7231
|
{
|
|
7231
7232
|
className: E("page-indicator", {
|
|
@@ -7246,8 +7247,8 @@ const ic = ({
|
|
|
7246
7247
|
variant: "secondary",
|
|
7247
7248
|
size: "large",
|
|
7248
7249
|
icon: { icon: "chevron_right" },
|
|
7249
|
-
onClick: (
|
|
7250
|
-
|
|
7250
|
+
onClick: (N) => {
|
|
7251
|
+
N.preventDefault(), N.stopPropagation(), b("next");
|
|
7251
7252
|
},
|
|
7252
7253
|
screenreaderText: d.formatMessage({ id: "carousel_pagination_next" }),
|
|
7253
7254
|
disabled: v >= x - 1
|
|
@@ -7511,7 +7512,7 @@ const Ot = "languageSwitcher_", au = ({
|
|
|
7511
7512
|
})
|
|
7512
7513
|
] });
|
|
7513
7514
|
};
|
|
7514
|
-
const
|
|
7515
|
+
const Nn = ks({ locale: "en", messages: rt }), sn = ({
|
|
7515
7516
|
hasNextPage: t = !0,
|
|
7516
7517
|
loadNextPage: e = () => {
|
|
7517
7518
|
},
|
|
@@ -7521,9 +7522,9 @@ const $n = ks({ locale: "en", messages: rt }), sn = ({
|
|
|
7521
7522
|
styling: i = { muted: !1, fullWidth: !1 },
|
|
7522
7523
|
icon: o = !1,
|
|
7523
7524
|
messages: c = {
|
|
7524
|
-
button:
|
|
7525
|
-
endOfFeed:
|
|
7526
|
-
error:
|
|
7525
|
+
button: Nn.formatMessage({ id: "loadMore_button" }),
|
|
7526
|
+
endOfFeed: Nn.formatMessage({ id: "loadMore_endOfFeed" }),
|
|
7527
|
+
error: Nn.formatMessage({ id: "loadMore_error" })
|
|
7527
7528
|
},
|
|
7528
7529
|
className: d = "",
|
|
7529
7530
|
gtmContext: l = "LoadMore"
|
|
@@ -7853,19 +7854,19 @@ const pc = {
|
|
|
7853
7854
|
}
|
|
7854
7855
|
);
|
|
7855
7856
|
};
|
|
7856
|
-
let
|
|
7857
|
+
let $n;
|
|
7857
7858
|
const Pn = "contactFooter_", ou = ({ onSuccess: t = async () => {
|
|
7858
7859
|
}, onFailure: e = () => {
|
|
7859
7860
|
} }) => {
|
|
7860
7861
|
const n = pe(null), [r, s] = Y.useState(0), [i, o] = Y.useState(!1), c = () => {
|
|
7861
7862
|
n.current && s(n.current.clientHeight);
|
|
7862
7863
|
}, d = () => {
|
|
7863
|
-
i || (o(!0), clearTimeout(
|
|
7864
|
+
i || (o(!0), clearTimeout($n), $n = setTimeout(() => {
|
|
7864
7865
|
c(), o(!1);
|
|
7865
7866
|
}, 500));
|
|
7866
7867
|
};
|
|
7867
7868
|
return ae(() => (c(), window.addEventListener("resize", d), () => {
|
|
7868
|
-
clearTimeout(
|
|
7869
|
+
clearTimeout($n), window.removeEventListener("resize", d);
|
|
7869
7870
|
}), []), /* @__PURE__ */ a.jsx(Ve, { id: "contactForm", className: "contact-footer", children: /* @__PURE__ */ a.jsxs("div", { className: "inner-wrapper", children: [
|
|
7870
7871
|
/* @__PURE__ */ a.jsx("h2", { children: /* @__PURE__ */ a.jsx(ye, { id: `${Pn}title` }) }),
|
|
7871
7872
|
/* @__PURE__ */ a.jsxs(
|
|
@@ -7974,7 +7975,11 @@ const Mn = "cookieBanner_", Rn = [
|
|
|
7974
7975
|
}
|
|
7975
7976
|
},
|
|
7976
7977
|
company: {
|
|
7977
|
-
order: ["story", "team", "careers", "partner", "contact"],
|
|
7978
|
+
order: ["news", "story", "team", "careers", "partner", "contact"],
|
|
7979
|
+
news: {
|
|
7980
|
+
href: "/learning-hub/updates/",
|
|
7981
|
+
gtmType: "news-click"
|
|
7982
|
+
},
|
|
7978
7983
|
story: {
|
|
7979
7984
|
href: "/pages/our-story",
|
|
7980
7985
|
gtmType: "our-story-click"
|
|
@@ -8904,8 +8909,8 @@ const fu = ({
|
|
|
8904
8909
|
title: R,
|
|
8905
8910
|
type: Q
|
|
8906
8911
|
}) => {
|
|
8907
|
-
const B = s && e || S,
|
|
8908
|
-
return x && (
|
|
8912
|
+
const B = s && e || S, N = {};
|
|
8913
|
+
return x && (N.style = { "--image": `url(${x})` }), /* @__PURE__ */ a.jsx(
|
|
8909
8914
|
"li",
|
|
8910
8915
|
{
|
|
8911
8916
|
className: E({
|
|
@@ -8915,7 +8920,7 @@ const fu = ({
|
|
|
8915
8920
|
completed: g && _ === St.ARTICLE,
|
|
8916
8921
|
locked: !B
|
|
8917
8922
|
}),
|
|
8918
|
-
|
|
8923
|
+
...N,
|
|
8919
8924
|
children: /* @__PURE__ */ a.jsx(
|
|
8920
8925
|
at,
|
|
8921
8926
|
{
|
|
@@ -9016,7 +9021,7 @@ const we = "discussion_form_", ar = ({
|
|
|
9016
9021
|
},
|
|
9017
9022
|
gtmContext: l = "DiscussionForm"
|
|
9018
9023
|
}) => {
|
|
9019
|
-
var
|
|
9024
|
+
var N, C, k;
|
|
9020
9025
|
const u = H(), f = Ee(De), [m, p] = X(
|
|
9021
9026
|
n.isEditing && n.isEditing.text || ""
|
|
9022
9027
|
), [g, v] = X(c.error || !1), [_, y] = X(!1), x = pe(null);
|
|
@@ -9029,15 +9034,15 @@ const we = "discussion_form_", ar = ({
|
|
|
9029
9034
|
}
|
|
9030
9035
|
);
|
|
9031
9036
|
const S = (j) => {
|
|
9032
|
-
const
|
|
9033
|
-
p(
|
|
9037
|
+
const $ = j.target.value;
|
|
9038
|
+
p($);
|
|
9034
9039
|
let A;
|
|
9035
|
-
!f || !f.id ? A =
|
|
9040
|
+
!f || !f.id ? A = Ne(
|
|
9036
9041
|
u.formatMessage,
|
|
9037
9042
|
`${we}error_loggedOut`,
|
|
9038
9043
|
t.type,
|
|
9039
9044
|
"action"
|
|
9040
|
-
) : e ?
|
|
9045
|
+
) : e ? $.length >= i && (A = `${we}error_tooLong`) : A = Ne(
|
|
9041
9046
|
u.formatMessage,
|
|
9042
9047
|
`${we}error_noPermission`,
|
|
9043
9048
|
t.type,
|
|
@@ -9046,7 +9051,7 @@ const we = "discussion_form_", ar = ({
|
|
|
9046
9051
|
};
|
|
9047
9052
|
let w = `${t.type}-form`;
|
|
9048
9053
|
if (t.type === "response" || t.type === "reply") {
|
|
9049
|
-
const j = ((
|
|
9054
|
+
const j = ((N = t.slugs) == null ? void 0 : N.reply) || ((C = t.slugs) == null ? void 0 : C.answer) || ((k = t.slugs) == null ? void 0 : k.question) || "";
|
|
9050
9055
|
j && (w = `${w}-${j.slice(-15)}`);
|
|
9051
9056
|
}
|
|
9052
9057
|
const b = async (j) => {
|
|
@@ -9054,7 +9059,7 @@ const we = "discussion_form_", ar = ({
|
|
|
9054
9059
|
if (j.preventDefault(), j.stopPropagation(), !f || !f.id || !e || R)
|
|
9055
9060
|
return;
|
|
9056
9061
|
Dt && clearTimeout(Dt), y("submitting");
|
|
9057
|
-
const
|
|
9062
|
+
const $ = window.location.pathname;
|
|
9058
9063
|
try {
|
|
9059
9064
|
let W;
|
|
9060
9065
|
switch (t.type) {
|
|
@@ -9071,13 +9076,13 @@ const we = "discussion_form_", ar = ({
|
|
|
9071
9076
|
case "response":
|
|
9072
9077
|
W = await d.create(
|
|
9073
9078
|
{ questionSlug: t.slugs.question },
|
|
9074
|
-
{ body: m, authorId: f && f.id, contentPath:
|
|
9079
|
+
{ body: m, authorId: f && f.id, contentPath: $ }
|
|
9075
9080
|
);
|
|
9076
9081
|
break;
|
|
9077
9082
|
case "reply":
|
|
9078
9083
|
W = await d.create(
|
|
9079
9084
|
{ questionSlug: t.slugs.question, answerSlug: t.slugs.answer },
|
|
9080
|
-
{ body: m, authorId: f && f.id, contentPath:
|
|
9085
|
+
{ body: m, authorId: f && f.id, contentPath: $ }
|
|
9081
9086
|
);
|
|
9082
9087
|
break;
|
|
9083
9088
|
default:
|
|
@@ -9091,12 +9096,12 @@ const we = "discussion_form_", ar = ({
|
|
|
9091
9096
|
} catch (W) {
|
|
9092
9097
|
const Z = W;
|
|
9093
9098
|
let z = `${we}error`;
|
|
9094
|
-
Z != null && Z.message.includes("entry already exists") && (z =
|
|
9099
|
+
Z != null && Z.message.includes("entry already exists") && (z = Ne(
|
|
9095
9100
|
u.formatMessage,
|
|
9096
9101
|
`${we}error_alreadyExists`,
|
|
9097
9102
|
t.type,
|
|
9098
9103
|
"action"
|
|
9099
|
-
)), Z != null && Z.message.includes("429") ? z =
|
|
9104
|
+
)), Z != null && Z.message.includes("429") ? z = Ne(
|
|
9100
9105
|
u.formatMessage,
|
|
9101
9106
|
`${we}error_tooMany`,
|
|
9102
9107
|
t.type,
|
|
@@ -9146,7 +9151,7 @@ const we = "discussion_form_", ar = ({
|
|
|
9146
9151
|
}),
|
|
9147
9152
|
"data-testid": `discussion-${t.type}-form`,
|
|
9148
9153
|
children: [
|
|
9149
|
-
(n == null ? void 0 : n.showTitle) && !n.isEditing && ["question"].includes(t.type) && /* @__PURE__ */ a.jsx("h2", { children:
|
|
9154
|
+
(n == null ? void 0 : n.showTitle) && !n.isEditing && ["question"].includes(t.type) && /* @__PURE__ */ a.jsx("h2", { children: Ne(u.formatMessage, `${we}title`, t.type, "action") }),
|
|
9150
9155
|
/* @__PURE__ */ a.jsx(
|
|
9151
9156
|
tr,
|
|
9152
9157
|
{
|
|
@@ -9155,14 +9160,14 @@ const we = "discussion_form_", ar = ({
|
|
|
9155
9160
|
gtmType: "profile-click"
|
|
9156
9161
|
}
|
|
9157
9162
|
),
|
|
9158
|
-
/* @__PURE__ */ a.jsx(be, { element: "label", showOnFocus: !1, htmlFor: `${w}-input`, children:
|
|
9163
|
+
/* @__PURE__ */ a.jsx(be, { element: "label", showOnFocus: !1, htmlFor: `${w}-input`, children: Ne(u.formatMessage, `${we}label`, t.type, "action") }),
|
|
9159
9164
|
/* @__PURE__ */ a.jsx(
|
|
9160
9165
|
Ms,
|
|
9161
9166
|
{
|
|
9162
9167
|
ref: r,
|
|
9163
9168
|
id: `${w}-input`,
|
|
9164
9169
|
name: t.type,
|
|
9165
|
-
placeholder: s ||
|
|
9170
|
+
placeholder: s || Ne(
|
|
9166
9171
|
u.formatMessage,
|
|
9167
9172
|
`${we}placeholder`,
|
|
9168
9173
|
t.type,
|
|
@@ -9177,7 +9182,7 @@ const we = "discussion_form_", ar = ({
|
|
|
9177
9182
|
autoFocus: !!n.isEditing
|
|
9178
9183
|
}
|
|
9179
9184
|
),
|
|
9180
|
-
/* @__PURE__ */ a.jsx("small", { children:
|
|
9185
|
+
/* @__PURE__ */ a.jsx("small", { children: Ne(u.formatMessage, `${we}explainer`, t.type, "action", {
|
|
9181
9186
|
a: (j) => /* @__PURE__ */ a.jsx(
|
|
9182
9187
|
"a",
|
|
9183
9188
|
{
|
|
@@ -9192,7 +9197,7 @@ const we = "discussion_form_", ar = ({
|
|
|
9192
9197
|
)
|
|
9193
9198
|
}) }),
|
|
9194
9199
|
/* @__PURE__ */ a.jsx(kt, { buttons: B }),
|
|
9195
|
-
_ === "submitted" && n.showSuccessMessage && /* @__PURE__ */ a.jsx(Wt, { className: "success", "data-testid": "success", children:
|
|
9200
|
+
_ === "submitted" && n.showSuccessMessage && /* @__PURE__ */ a.jsx(Wt, { className: "success", "data-testid": "success", children: Ne(u.formatMessage, `${we}success`, t.type, "action") }),
|
|
9196
9201
|
g && /* @__PURE__ */ a.jsx(Wt, { id: "error-message", className: "error", "data-testid": "error", children: c.error ? c.error : typeof g == "string" ? g.includes(" ") ? g : u.formatMessage(
|
|
9197
9202
|
{ id: g },
|
|
9198
9203
|
{
|
|
@@ -9404,7 +9409,7 @@ const Me = "discussion_", Cc = 280, cn = ({
|
|
|
9404
9409
|
children: v,
|
|
9405
9410
|
isTruncated: _ = !1
|
|
9406
9411
|
}) => {
|
|
9407
|
-
const y = H(), x = Ee(De), S = Ee(sr), { author: w, canLike: b, createdAt: F, id: R, likes: Q = 0, userLiked: B, comments:
|
|
9412
|
+
const y = H(), x = Ee(De), S = Ee(sr), { author: w, canLike: b, createdAt: F, id: R, likes: Q = 0, userLiked: B, comments: N = 0 } = e, C = x && x.id && typeof w != "string" && w.id && w.id === x.id || !1, k = typeof b == "boolean" ? b : n ? !C : !1, j = C && (!e.createdAt || Ys(e.createdAt, 10, "seconds")), $ = pe(null), [A, W] = X({
|
|
9408
9413
|
body: e && e.body || "",
|
|
9409
9414
|
isEditing: !1,
|
|
9410
9415
|
didEdit: e && e.isEdited || !1
|
|
@@ -9413,7 +9418,7 @@ const Me = "discussion_", Cc = 280, cn = ({
|
|
|
9413
9418
|
/* Default */
|
|
9414
9419
|
), [P, q] = X("");
|
|
9415
9420
|
ae(() => {
|
|
9416
|
-
const O =
|
|
9421
|
+
const O = $.current;
|
|
9417
9422
|
if (!(!O || K === "default"))
|
|
9418
9423
|
return document.addEventListener("discussionFormSubmitted", L), O.addEventListener("transitionend", U), () => {
|
|
9419
9424
|
document.removeEventListener("discussionFormSubmitted", L), O.removeEventListener("transitionend", U);
|
|
@@ -9433,7 +9438,7 @@ const Me = "discussion_", Cc = 280, cn = ({
|
|
|
9433
9438
|
);
|
|
9434
9439
|
}, 1e3);
|
|
9435
9440
|
}, U = ({ propertyName: O }) => {
|
|
9436
|
-
O === "background-color" && T((oe) => (oe === "default" && (document.removeEventListener("discussionFormSubmitted", L),
|
|
9441
|
+
O === "background-color" && T((oe) => (oe === "default" && (document.removeEventListener("discussionFormSubmitted", L), $.current && $.current.removeEventListener("transitionend", U)), oe === "fading" ? "default" : oe));
|
|
9437
9442
|
};
|
|
9438
9443
|
if (r || !e || e.type === "answer" && (!e.slugs || !e.slugs.question))
|
|
9439
9444
|
return /* @__PURE__ */ a.jsx(Se, { className: "discussion-card discussion-post" });
|
|
@@ -9450,8 +9455,8 @@ const Me = "discussion_", Cc = 280, cn = ({
|
|
|
9450
9455
|
}
|
|
9451
9456
|
}, V = () => {
|
|
9452
9457
|
S && S.updateConversation && S.updateConversation({ showForm: !0 }), setTimeout(() => {
|
|
9453
|
-
var
|
|
9454
|
-
const oe = `reply-form-${(e.type === "answer" ? e.slug : ((
|
|
9458
|
+
var $e, Ce, Ue;
|
|
9459
|
+
const oe = `reply-form-${(e.type === "answer" ? e.slug : (($e = e.slugs) == null ? void 0 : $e.reply) || ((Ce = e.slugs) == null ? void 0 : Ce.answer) || ((Ue = e.slugs) == null ? void 0 : Ue.question) || "").toLowerCase().slice(-15)}`, D = document.getElementById(oe), ve = document.getElementById(`${oe}-input`);
|
|
9455
9460
|
ve && ve.focus(), D && D.scrollIntoView({ behavior: "smooth" });
|
|
9456
9461
|
}, 0);
|
|
9457
9462
|
}, ee = async () => {
|
|
@@ -9506,7 +9511,7 @@ const Me = "discussion_", Cc = 280, cn = ({
|
|
|
9506
9511
|
className: E("discussion-post", p, {
|
|
9507
9512
|
[K]: !p || !p.includes("highlighted-text-box")
|
|
9508
9513
|
}),
|
|
9509
|
-
ref:
|
|
9514
|
+
ref: $,
|
|
9510
9515
|
"data-testid": `discussion-${e.type}-thread`,
|
|
9511
9516
|
children: /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
|
|
9512
9517
|
/* @__PURE__ */ a.jsxs(
|
|
@@ -9626,13 +9631,13 @@ const Me = "discussion_", Cc = 280, cn = ({
|
|
|
9626
9631
|
"data-gtm-event-type": `answer-${e.type}-click`,
|
|
9627
9632
|
screenreaderText: y.formatMessage(
|
|
9628
9633
|
{ id: `${Me}comments_screenReader` },
|
|
9629
|
-
{ count:
|
|
9634
|
+
{ count: N }
|
|
9630
9635
|
)
|
|
9631
9636
|
}
|
|
9632
9637
|
),
|
|
9633
9638
|
/* @__PURE__ */ a.jsx("span", { children: y.formatMessage(
|
|
9634
9639
|
{ id: `${Me}comments` },
|
|
9635
|
-
{ count:
|
|
9640
|
+
{ count: N }
|
|
9636
9641
|
) })
|
|
9637
9642
|
]
|
|
9638
9643
|
}
|
|
@@ -9714,17 +9719,17 @@ const Me = "discussion_", Cc = 280, cn = ({
|
|
|
9714
9719
|
] })
|
|
9715
9720
|
});
|
|
9716
9721
|
};
|
|
9717
|
-
const In = "discussion_responses_",
|
|
9722
|
+
const In = "discussion_responses_", Nc = ({ type: t = "answer", responses: e = 0 }) => {
|
|
9718
9723
|
const n = H();
|
|
9719
9724
|
return e = parseInt(e), /* @__PURE__ */ a.jsxs("div", { className: "responses-heading", children: [
|
|
9720
9725
|
/* @__PURE__ */ a.jsx("h4", { children: n.formatMessage(
|
|
9721
9726
|
{ id: `${In}title` },
|
|
9722
9727
|
{ action: n.formatMessage({ id: `${In}${t}` }), count: e }
|
|
9723
9728
|
) }),
|
|
9724
|
-
e === 0 && /* @__PURE__ */ a.jsx("p", { children:
|
|
9729
|
+
e === 0 && /* @__PURE__ */ a.jsx("p", { children: Ne(n.formatMessage, `${In}empty`, t, t) })
|
|
9725
9730
|
] });
|
|
9726
9731
|
};
|
|
9727
|
-
const
|
|
9732
|
+
const $c = ({
|
|
9728
9733
|
loadMore: { isLoading: t, hasNextPage: e, loadNextPage: n } = {
|
|
9729
9734
|
isLoading: !1,
|
|
9730
9735
|
hasNextPage: !1,
|
|
@@ -10313,13 +10318,13 @@ const pu = ({
|
|
|
10313
10318
|
own_reactions: F,
|
|
10314
10319
|
latest_reactions: R,
|
|
10315
10320
|
reaction_counts: Q
|
|
10316
|
-
} = S, B = (((A = R == null ? void 0 : R.like) == null ? void 0 : A.length) || 0) > 0,
|
|
10321
|
+
} = S, B = (((A = R == null ? void 0 : R.like) == null ? void 0 : A.length) || 0) > 0, N = (((W = F == null ? void 0 : F.like) == null ? void 0 : W.length) || 0) > 0, C = N ? F == null ? void 0 : F.like[0].id : "", k = B ? (Z = R == null ? void 0 : R.like) == null ? void 0 : Z.map((L) => {
|
|
10317
10322
|
var U, te, G;
|
|
10318
10323
|
return {
|
|
10319
10324
|
id: (U = L == null ? void 0 : L.user) == null ? void 0 : U.id,
|
|
10320
10325
|
name: (G = (te = L == null ? void 0 : L.user) == null ? void 0 : te.data) == null ? void 0 : G.name
|
|
10321
10326
|
};
|
|
10322
|
-
}) : !1, j = S == null ? void 0 : S.actor,
|
|
10327
|
+
}) : !1, j = S == null ? void 0 : S.actor, $ = (j == null ? void 0 : j.id) === (y == null ? void 0 : y.id);
|
|
10323
10328
|
return /* @__PURE__ */ a.jsxs(yt, { children: [
|
|
10324
10329
|
/* @__PURE__ */ a.jsx(
|
|
10325
10330
|
cn,
|
|
@@ -10327,7 +10332,7 @@ const pu = ({
|
|
|
10327
10332
|
content: {
|
|
10328
10333
|
type: "post",
|
|
10329
10334
|
body: S == null ? void 0 : S.content,
|
|
10330
|
-
canLike: on(n,
|
|
10335
|
+
canLike: on(n, $),
|
|
10331
10336
|
createdAt: (S == null ? void 0 : S.time) || "",
|
|
10332
10337
|
slugs: {
|
|
10333
10338
|
question: `${t}/${e}`,
|
|
@@ -10344,7 +10349,7 @@ const pu = ({
|
|
|
10344
10349
|
thumbnail: ((q = j == null ? void 0 : j.data) == null ? void 0 : q.thumbnail) || void 0
|
|
10345
10350
|
}
|
|
10346
10351
|
},
|
|
10347
|
-
userLiked:
|
|
10352
|
+
userLiked: N,
|
|
10348
10353
|
likes: (Q == null ? void 0 : Q.like) || 0,
|
|
10349
10354
|
comments: (Q == null ? void 0 : Q.reply) || 0,
|
|
10350
10355
|
peopleWhoLiked: k
|
|
@@ -11159,7 +11164,7 @@ const ol = ({
|
|
|
11159
11164
|
}
|
|
11160
11165
|
});
|
|
11161
11166
|
return /* @__PURE__ */ a.jsx(
|
|
11162
|
-
|
|
11167
|
+
$c,
|
|
11163
11168
|
{
|
|
11164
11169
|
loadMore: { isLoading: l, hasNextPage: d, loadNextPage: () => c() },
|
|
11165
11170
|
form: {
|
|
@@ -11187,13 +11192,13 @@ const ol = ({
|
|
|
11187
11192
|
} = _, F = (((A = x == null ? void 0 : x.like) == null ? void 0 : A.length) || 0) > 0 ? (W = x == null ? void 0 : x.like) == null ? void 0 : W.find((V) => {
|
|
11188
11193
|
var ee;
|
|
11189
11194
|
return ((ee = V == null ? void 0 : V.user) == null ? void 0 : ee.id) === (v == null ? void 0 : v.id);
|
|
11190
|
-
}) : !1, R = F ? F == null ? void 0 : F.id : "", Q = !!F,
|
|
11195
|
+
}) : !1, R = F ? F == null ? void 0 : F.id : "", Q = !!F, N = (((Z = S == null ? void 0 : S.like) == null ? void 0 : Z.length) || 0) > 0 ? (z = S == null ? void 0 : S.like) == null ? void 0 : z.map((V) => {
|
|
11191
11196
|
var ee, re, O;
|
|
11192
11197
|
return {
|
|
11193
11198
|
id: (ee = V == null ? void 0 : V.user) == null ? void 0 : ee.id,
|
|
11194
11199
|
name: (O = (re = V == null ? void 0 : V.user) == null ? void 0 : re.data) == null ? void 0 : O.name
|
|
11195
11200
|
};
|
|
11196
|
-
}) : !1, C = _ == null ? void 0 : _.user, k = (C == null ? void 0 : C.id) === (v == null ? void 0 : v.id), j = on(s, k),
|
|
11201
|
+
}) : !1, C = _ == null ? void 0 : _.user, k = (C == null ? void 0 : C.id) === (v == null ? void 0 : v.id), j = on(s, k), $ = typeof _.data.content == "string" ? (K = _ == null ? void 0 : _.data) == null ? void 0 : K.content : (
|
|
11197
11202
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
11198
11203
|
((P = (T = _ == null ? void 0 : _.data) == null ? void 0 : T.content) == null ? void 0 : P.text) || ""
|
|
11199
11204
|
);
|
|
@@ -11203,7 +11208,7 @@ const ol = ({
|
|
|
11203
11208
|
content: {
|
|
11204
11209
|
id: y,
|
|
11205
11210
|
type: "reply",
|
|
11206
|
-
body:
|
|
11211
|
+
body: $,
|
|
11207
11212
|
canLike: j,
|
|
11208
11213
|
createdAt: _ == null ? void 0 : _.created_at,
|
|
11209
11214
|
slugs: {
|
|
@@ -11226,7 +11231,7 @@ const ol = ({
|
|
|
11226
11231
|
},
|
|
11227
11232
|
userLiked: Q,
|
|
11228
11233
|
likes: (w == null ? void 0 : w.like) || 0,
|
|
11229
|
-
peopleWhoLiked:
|
|
11234
|
+
peopleWhoLiked: N
|
|
11230
11235
|
},
|
|
11231
11236
|
functions: {
|
|
11232
11237
|
content: {
|
|
@@ -11267,7 +11272,7 @@ const ol = ({
|
|
|
11267
11272
|
queryFns: s
|
|
11268
11273
|
});
|
|
11269
11274
|
return Us(), Ja(), /* @__PURE__ */ a.jsxs("section", { children: [
|
|
11270
|
-
/* @__PURE__ */ a.jsx(
|
|
11275
|
+
/* @__PURE__ */ a.jsx(Nc, { type: "comment", responses: l }),
|
|
11271
11276
|
/* @__PURE__ */ a.jsx(
|
|
11272
11277
|
Va,
|
|
11273
11278
|
{
|
|
@@ -11294,13 +11299,13 @@ const ol = ({
|
|
|
11294
11299
|
const { id: w, own_children: b, latest_children: F, children_counts: R } = S, B = (((z = b == null ? void 0 : b.like) == null ? void 0 : z.length) || 0) > 0 ? (K = b == null ? void 0 : b.like) == null ? void 0 : K.find((O) => {
|
|
11295
11300
|
var oe;
|
|
11296
11301
|
return ((oe = O == null ? void 0 : O.user) == null ? void 0 : oe.id) === (x == null ? void 0 : x.id);
|
|
11297
|
-
}) : !1,
|
|
11302
|
+
}) : !1, N = B ? B == null ? void 0 : B.id : "", C = !!B, j = (((T = F == null ? void 0 : F.like) == null ? void 0 : T.length) || 0) > 0 ? (P = F == null ? void 0 : F.like) == null ? void 0 : P.map((O) => {
|
|
11298
11303
|
var oe, D, ve;
|
|
11299
11304
|
return {
|
|
11300
11305
|
id: (oe = O == null ? void 0 : O.user) == null ? void 0 : oe.id,
|
|
11301
11306
|
name: (ve = (D = O == null ? void 0 : O.user) == null ? void 0 : D.data) == null ? void 0 : ve.name
|
|
11302
11307
|
};
|
|
11303
|
-
}) : !1,
|
|
11308
|
+
}) : !1, $ = S == null ? void 0 : S.user, A = ($ == null ? void 0 : $.id) === (x == null ? void 0 : x.id), W = on(r, A), Z = typeof S.data.content == "string" ? (q = S == null ? void 0 : S.data) == null ? void 0 : q.content : (
|
|
11304
11309
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
11305
11310
|
((U = (L = S == null ? void 0 : S.data) == null ? void 0 : L.content) == null ? void 0 : U.text) || ""
|
|
11306
11311
|
);
|
|
@@ -11320,13 +11325,13 @@ const ol = ({
|
|
|
11320
11325
|
},
|
|
11321
11326
|
slug: w,
|
|
11322
11327
|
author: {
|
|
11323
|
-
id:
|
|
11324
|
-
name: (te =
|
|
11325
|
-
organization: (G =
|
|
11326
|
-
jobTitle: (V =
|
|
11327
|
-
location: (ee =
|
|
11328
|
+
id: $ == null ? void 0 : $.id,
|
|
11329
|
+
name: (te = $.data) == null ? void 0 : te.name,
|
|
11330
|
+
organization: (G = $.data) == null ? void 0 : G.organization,
|
|
11331
|
+
jobTitle: (V = $.data) == null ? void 0 : V.jobTitle,
|
|
11332
|
+
location: (ee = $.data) == null ? void 0 : ee.location,
|
|
11328
11333
|
image: {
|
|
11329
|
-
thumbnail: ((re =
|
|
11334
|
+
thumbnail: ((re = $.data) == null ? void 0 : re.thumbnail) || void 0
|
|
11330
11335
|
}
|
|
11331
11336
|
},
|
|
11332
11337
|
userLiked: C,
|
|
@@ -11342,7 +11347,7 @@ const ol = ({
|
|
|
11342
11347
|
},
|
|
11343
11348
|
likes: {
|
|
11344
11349
|
createLike: () => v({ replyId: w }),
|
|
11345
|
-
deleteLike: () => y({ replyId: w, reactionId:
|
|
11350
|
+
deleteLike: () => y({ replyId: w, reactionId: N })
|
|
11346
11351
|
},
|
|
11347
11352
|
comments: {}
|
|
11348
11353
|
},
|
|
@@ -11482,7 +11487,7 @@ const gu = ({
|
|
|
11482
11487
|
leave: d
|
|
11483
11488
|
}
|
|
11484
11489
|
}) => {
|
|
11485
|
-
var B,
|
|
11490
|
+
var B, N, C, k, j, $, A, W, Z, z;
|
|
11486
11491
|
const l = H(), u = Ee(De), {
|
|
11487
11492
|
activity: f,
|
|
11488
11493
|
error: m,
|
|
@@ -11502,7 +11507,7 @@ const gu = ({
|
|
|
11502
11507
|
text: l.formatMessage({ id: "activitySection_notFoundError" })
|
|
11503
11508
|
}
|
|
11504
11509
|
);
|
|
11505
|
-
const { own_reactions: y, latest_reactions: x } = f, S = (((B = x == null ? void 0 : x.like) == null ? void 0 : B.length) || 0) > 0, w = (((
|
|
11510
|
+
const { own_reactions: y, latest_reactions: x } = f, S = (((B = x == null ? void 0 : x.like) == null ? void 0 : B.length) || 0) > 0, w = (((N = y == null ? void 0 : y.like) == null ? void 0 : N.length) || 0) > 0, b = w ? y == null ? void 0 : y.like[0].id : "", F = S ? (C = x == null ? void 0 : x.like) == null ? void 0 : C.map((K) => {
|
|
11506
11511
|
var T, P, q;
|
|
11507
11512
|
return {
|
|
11508
11513
|
id: (T = K == null ? void 0 : K.user) == null ? void 0 : T.id,
|
|
@@ -11529,7 +11534,7 @@ const gu = ({
|
|
|
11529
11534
|
id: R.id,
|
|
11530
11535
|
name: (k = R.data) == null ? void 0 : k.name,
|
|
11531
11536
|
organization: (j = R.data) == null ? void 0 : j.organization,
|
|
11532
|
-
jobTitle: (
|
|
11537
|
+
jobTitle: ($ = R.data) == null ? void 0 : $.jobTitle,
|
|
11533
11538
|
location: (A = R.data) == null ? void 0 : A.location,
|
|
11534
11539
|
image: {
|
|
11535
11540
|
thumbnail: ((W = R.data) == null ? void 0 : W.thumbnail) || void 0
|
|
@@ -11694,7 +11699,7 @@ export {
|
|
|
11694
11699
|
ar as DiscussionForm,
|
|
11695
11700
|
Sc as DiscussionLikes,
|
|
11696
11701
|
cn as DiscussionPost,
|
|
11697
|
-
|
|
11702
|
+
$c as DiscussionThread,
|
|
11698
11703
|
Oe as Divider,
|
|
11699
11704
|
Il as DownloadSection,
|
|
11700
11705
|
ft as EMAILS,
|
|
@@ -11714,8 +11719,8 @@ export {
|
|
|
11714
11719
|
Wl as HighlightSection,
|
|
11715
11720
|
Fe as HighlightedTextBox,
|
|
11716
11721
|
Fl as IconBulletedList,
|
|
11717
|
-
|
|
11718
|
-
|
|
11722
|
+
$l as ImageContainer,
|
|
11723
|
+
Ni as IntlProvider,
|
|
11719
11724
|
Yi as InviteForm,
|
|
11720
11725
|
Jl as InviteModal,
|
|
11721
11726
|
Wa as JoinButton,
|
|
@@ -11737,7 +11742,7 @@ export {
|
|
|
11737
11742
|
uu as MembersList,
|
|
11738
11743
|
qa as Modal,
|
|
11739
11744
|
cc as MoreMenu,
|
|
11740
|
-
|
|
11745
|
+
Nl as NUMBER_OF_USERS,
|
|
11741
11746
|
dc as NavigationMenu,
|
|
11742
11747
|
bu as NotFoundError,
|
|
11743
11748
|
an as Overlay,
|
|
@@ -11752,7 +11757,7 @@ export {
|
|
|
11752
11757
|
Pl as ProgressTracker,
|
|
11753
11758
|
Vl as Rating,
|
|
11754
11759
|
cl as RepliesFeed,
|
|
11755
|
-
|
|
11760
|
+
Nc as ResponsesHeading,
|
|
11756
11761
|
Tt as ResponsiveImage,
|
|
11757
11762
|
Ml as ReturnToNavButton,
|
|
11758
11763
|
Ki as SearchForm,
|
|
@@ -11769,7 +11774,7 @@ export {
|
|
|
11769
11774
|
_i as Tooltip,
|
|
11770
11775
|
cu as TopLevelPage,
|
|
11771
11776
|
De as UserContext,
|
|
11772
|
-
|
|
11777
|
+
$i as UserProvider,
|
|
11773
11778
|
be as VisuallyHidden,
|
|
11774
11779
|
Xo as addAriaProps,
|
|
11775
11780
|
ma as basicReducer,
|