@apolitical/component-library 6.6.13-beta.1 → 6.6.13
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/form/types/publish-article-form/components/index.d.ts +0 -1
- package/form/types/publish-article-form/publish-article-form.types.d.ts +0 -3
- package/helpers/intl.d.ts +0 -14
- package/index.js +11 -11
- package/index.mjs +363 -433
- package/package.json +1 -1
- package/style.css +1 -1
- package/form/types/publish-article-form/components/tag-options.d.ts +0 -3
package/index.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import ie, { memo as rn, useRef as Be, useEffect as fe, useState as ce, useMemo as Xt, forwardRef as oo, Children as Bs, createContext as Tt, useContext as Ie, useCallback as $e, lazy as br, useReducer as yr, Suspense as ed, Fragment as Kr, useLayoutEffect as Lm, Component as zm } from "react";
|
|
2
|
-
import { useIntl as de, FormattedMessage as
|
|
2
|
+
import { useIntl as de, FormattedMessage as ft, IntlProvider as qm, createIntl as Um } from "react-intl";
|
|
3
3
|
import It from "lodash.clonedeep";
|
|
4
4
|
import Vm from "lodash.set";
|
|
5
5
|
import td from "react-dom";
|
|
@@ -474,7 +474,7 @@ function nh() {
|
|
|
474
474
|
}
|
|
475
475
|
return N.ref !== void 0;
|
|
476
476
|
}
|
|
477
|
-
function
|
|
477
|
+
function ct(N) {
|
|
478
478
|
if (Oe.call(N, "key")) {
|
|
479
479
|
var ue = Object.getOwnPropertyDescriptor(N, "key").get;
|
|
480
480
|
if (ue && ue.isReactWarning)
|
|
@@ -510,7 +510,7 @@ function nh() {
|
|
|
510
510
|
});
|
|
511
511
|
}
|
|
512
512
|
}
|
|
513
|
-
var
|
|
513
|
+
var ht = function(N, ue, he, ke, qe, Ge, Re) {
|
|
514
514
|
var Me = {
|
|
515
515
|
// This tag allows us to uniquely identify this as a React Element
|
|
516
516
|
$$typeof: t,
|
|
@@ -542,7 +542,7 @@ function nh() {
|
|
|
542
542
|
function _a(N, ue, he, ke, qe) {
|
|
543
543
|
{
|
|
544
544
|
var Ge, Re = {}, Me = null, bt = null;
|
|
545
|
-
he !== void 0 && (ae(he), Me = "" + he),
|
|
545
|
+
he !== void 0 && (ae(he), Me = "" + he), ct(ue) && (ae(ue.key), Me = "" + ue.key), Ae(ue) && (bt = ue.ref, at(ue, qe));
|
|
546
546
|
for (Ge in ue)
|
|
547
547
|
Oe.call(ue, Ge) && !oe.hasOwnProperty(Ge) && (Re[Ge] = ue[Ge]);
|
|
548
548
|
if (N && N.defaultProps) {
|
|
@@ -554,7 +554,7 @@ function nh() {
|
|
|
554
554
|
var ot = typeof N == "function" ? N.displayName || N.name || "Unknown" : N;
|
|
555
555
|
Me && st(Re, ot), bt && jt(Re, ot);
|
|
556
556
|
}
|
|
557
|
-
return
|
|
557
|
+
return ht(N, Me, bt, qe, ke, ye.current, Re);
|
|
558
558
|
}
|
|
559
559
|
}
|
|
560
560
|
var _r = g.ReactCurrentOwner, di = g.ReactDebugCurrentFrame;
|
|
@@ -985,7 +985,7 @@ const du = {}, wr = oo(
|
|
|
985
985
|
break;
|
|
986
986
|
}
|
|
987
987
|
return r;
|
|
988
|
-
}, uh = (e) => e.replace(/[A-Z]/g, (t) => `-${t.toLowerCase()}`), lh = (e = "") => e.replace(/(?:^\w|[A-Z]|\b\w)/g, (t) => t.toUpperCase()).replace(/[&\s]+/g, ""), ch = (e = "") => e.charAt(0).toUpperCase() + e.slice(1),
|
|
988
|
+
}, uh = (e) => e.replace(/[A-Z]/g, (t) => `-${t.toLowerCase()}`), lh = (e = "") => e.replace(/(?:^\w|[A-Z]|\b\w)/g, (t) => t.toUpperCase()).replace(/[&\s]+/g, ""), ch = (e = "") => e.charAt(0).toUpperCase() + e.slice(1), Ok = (e = "") => e.replace(/(?:^\w|[A-Z]|\b\w)/g, (t) => t.toUpperCase()), dn = "https://storage.googleapis.com/apolitical-assets/", Nr = {
|
|
989
989
|
general: "hello@apolitical.co",
|
|
990
990
|
support: "concierge@apolitical.co",
|
|
991
991
|
"data-protection": {
|
|
@@ -996,8 +996,8 @@ const du = {}, wr = oo(
|
|
|
996
996
|
ARTICLE: "microcourseArticle",
|
|
997
997
|
DISCUSSION: "microcourseDiscussion",
|
|
998
998
|
QUIZ: "assessmentQuiz"
|
|
999
|
-
}, fu = "SU:", Wi = "DELETED", dh = "Invalid token error: Logging user out...",
|
|
1000
|
-
function
|
|
999
|
+
}, fu = "SU:", Wi = "DELETED", dh = "Invalid token error: Logging user out...", Pk = "200,000+", Nk = "160+", Hi = /@{{([0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12})}}/g, fh = new RegExp("(?<=^|\\s)@([A-Za-z]+(?:[- ]?[A-Za-z]*)*)$");
|
|
1000
|
+
function Mk(e) {
|
|
1001
1001
|
return e ? {
|
|
1002
1002
|
"--icon": `url(${dn}icons/${e}.svg)`
|
|
1003
1003
|
} : {};
|
|
@@ -1364,20 +1364,6 @@ Thank you for helping to protect the Apolitical community from abusive content.`
|
|
|
1364
1364
|
publishArticleForm_subtitle_placeholder: "Your topic, in a nutshell",
|
|
1365
1365
|
publishArticleForm_body_label: "Body",
|
|
1366
1366
|
publishArticleForm_body_placeholder: "Type or paste your article here",
|
|
1367
|
-
publishArticleForm_tags_label: "Tags (select up to three)",
|
|
1368
|
-
"publishArticleForm__tags_cities-and-local-government": "Cities and local government",
|
|
1369
|
-
publishArticleForm__tags_climate: "Climate",
|
|
1370
|
-
"publishArticleForm__tags_digital-and-data": "Digital, data and AI",
|
|
1371
|
-
publishArticleForm__tags_education: "Education",
|
|
1372
|
-
"publishArticleForm__tags_equity-justice-and-inclusion": "Equity, justice and inclusion",
|
|
1373
|
-
"publishArticleForm__tags_health-and-social-care": "Health and social care",
|
|
1374
|
-
publishArticleForm__tags_innovation: "Innovation",
|
|
1375
|
-
"publishArticleForm__tags_leadership-and-skills": "Leadership and skills",
|
|
1376
|
-
"publishArticleForm__tags_life-in-government": "Life in government",
|
|
1377
|
-
publishArticleForm__tags_policymaking: "Policymaking",
|
|
1378
|
-
"publishArticleForm__tags_transport-and-infrastructure": "Transport and infrastructure",
|
|
1379
|
-
"publishArticleForm__tags_work-and-the-economy": "Work and the economy",
|
|
1380
|
-
publishArticleForm_tags_error: "You must select no more than three options.",
|
|
1381
1367
|
publishArticleForm_disclaimer: "Ready to publish? Before you do, consider the following: Have you thoroughly proofread your writing? Are you confident in your arguments? Have you included hyperlinks to the necessary resources to support your article?",
|
|
1382
1368
|
publishArticleForm_cta_submit: "Publish article",
|
|
1383
1369
|
publishArticleForm_cta_submitting: "Publishing...",
|
|
@@ -2000,7 +1986,7 @@ const Cr = ({ image: e, className: t, testId: n }) => {
|
|
|
2000
1986
|
)
|
|
2001
1987
|
] });
|
|
2002
1988
|
};
|
|
2003
|
-
const
|
|
1989
|
+
const Rk = ({ image: e, className: t = "", testId: n }) => /* @__PURE__ */ c.jsx(
|
|
2004
1990
|
"div",
|
|
2005
1991
|
{
|
|
2006
1992
|
className: `image-container ${t}`,
|
|
@@ -2043,12 +2029,12 @@ const Ah = oo(
|
|
|
2043
2029
|
__proto__: null,
|
|
2044
2030
|
default: oi
|
|
2045
2031
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
2046
|
-
const
|
|
2032
|
+
const $k = ({
|
|
2047
2033
|
currentStep: e = 1,
|
|
2048
2034
|
steps: t = 1
|
|
2049
2035
|
}) => /* @__PURE__ */ c.jsxs(c.Fragment, { children: [
|
|
2050
2036
|
/* @__PURE__ */ c.jsx(ze, { children: /* @__PURE__ */ c.jsx(
|
|
2051
|
-
|
|
2037
|
+
ft,
|
|
2052
2038
|
{
|
|
2053
2039
|
id: "progressTracker",
|
|
2054
2040
|
values: { current: e, total: t }
|
|
@@ -2078,7 +2064,7 @@ const Ik = ({
|
|
|
2078
2064
|
] }, r);
|
|
2079
2065
|
}) }) })
|
|
2080
2066
|
] });
|
|
2081
|
-
const
|
|
2067
|
+
const Ik = ({ elementId: e, offset: t = 20 }) => {
|
|
2082
2068
|
const n = de(), r = () => {
|
|
2083
2069
|
const i = document.getElementById(e);
|
|
2084
2070
|
if (!i)
|
|
@@ -2100,7 +2086,7 @@ const Lk = ({ elementId: e, offset: t = 20 }) => {
|
|
|
2100
2086
|
}
|
|
2101
2087
|
);
|
|
2102
2088
|
};
|
|
2103
|
-
const
|
|
2089
|
+
const Lk = ({ items: e, className: t = "", ...n }) => /* @__PURE__ */ c.jsx("ul", { className: V("buckets", t), ...n, children: e.map(({ title: r, text: i, link: a, ...s }, o) => /* @__PURE__ */ c.jsx("li", { className: "bucket text-medium", children: /* @__PURE__ */ c.jsxs("a", { href: a, ...s, children: [
|
|
2104
2090
|
/* @__PURE__ */ c.jsx("p", { className: "title", children: r }),
|
|
2105
2091
|
/* @__PURE__ */ c.jsx("p", { children: i })
|
|
2106
2092
|
] }) }, o)) }), pu = 300, gu = "ease-in-out";
|
|
@@ -2368,7 +2354,7 @@ const Ph = ({
|
|
|
2368
2354
|
}
|
|
2369
2355
|
);
|
|
2370
2356
|
};
|
|
2371
|
-
const
|
|
2357
|
+
const zk = ({
|
|
2372
2358
|
element: e = "ul",
|
|
2373
2359
|
layout: t = "vertical",
|
|
2374
2360
|
variant: n = "default",
|
|
@@ -2393,7 +2379,7 @@ const qk = ({
|
|
|
2393
2379
|
] }, `dl-${u}`) : /* @__PURE__ */ c.jsx("li", { style: m, children: typeof l.text == "string" ? /* @__PURE__ */ c.jsx(en, { options: d, children: l.text }) : l.text }, u);
|
|
2394
2380
|
})
|
|
2395
2381
|
});
|
|
2396
|
-
},
|
|
2382
|
+
}, pt = () => ie.Fragment, Nh = ({ children: e }) => /* @__PURE__ */ c.jsx(zt, { variant: "secondary", children: e }), Mh = ({ children: e }) => typeof e == "object" && Object.keys(e || {}).length === 1 ? /* @__PURE__ */ c.jsx("p", { className: "center", children: e }) : /* @__PURE__ */ c.jsx("div", { className: "center", children: e }), Rh = ["span", "strong", "h1", "h2", "h3", "h4", "h5", "h6", "p"], $h = ({ children: e }) => {
|
|
2397
2383
|
const t = de();
|
|
2398
2384
|
if (!e)
|
|
2399
2385
|
return null;
|
|
@@ -2515,28 +2501,28 @@ const qh = {
|
|
|
2515
2501
|
CaseStudy: Nh,
|
|
2516
2502
|
// Override embedded HTML
|
|
2517
2503
|
// Our content team previously used real HTML, which we need to tear out and replace with React components
|
|
2518
|
-
style:
|
|
2504
|
+
style: pt,
|
|
2519
2505
|
details: $h,
|
|
2520
2506
|
div: Ih,
|
|
2521
2507
|
iframe: Lh,
|
|
2522
2508
|
center: Mh
|
|
2523
2509
|
},
|
|
2524
2510
|
"text-only": {
|
|
2525
|
-
h1:
|
|
2526
|
-
h2:
|
|
2527
|
-
h3:
|
|
2528
|
-
h4:
|
|
2529
|
-
h5:
|
|
2530
|
-
h6:
|
|
2531
|
-
style:
|
|
2532
|
-
details:
|
|
2533
|
-
div:
|
|
2534
|
-
TextBox:
|
|
2535
|
-
CollapsibleSection:
|
|
2536
|
-
CaseStudy:
|
|
2537
|
-
blockquote:
|
|
2538
|
-
iframe:
|
|
2539
|
-
button:
|
|
2511
|
+
h1: pt,
|
|
2512
|
+
h2: pt,
|
|
2513
|
+
h3: pt,
|
|
2514
|
+
h4: pt,
|
|
2515
|
+
h5: pt,
|
|
2516
|
+
h6: pt,
|
|
2517
|
+
style: pt,
|
|
2518
|
+
details: pt,
|
|
2519
|
+
div: pt,
|
|
2520
|
+
TextBox: pt,
|
|
2521
|
+
CollapsibleSection: pt,
|
|
2522
|
+
CaseStudy: pt,
|
|
2523
|
+
blockquote: pt,
|
|
2524
|
+
iframe: pt,
|
|
2525
|
+
button: pt
|
|
2540
2526
|
}
|
|
2541
2527
|
}, dr = ({
|
|
2542
2528
|
element: e = "div",
|
|
@@ -2704,11 +2690,11 @@ const Qh = ({ children: e, locale: t, messages: n }) => {
|
|
|
2704
2690
|
es: "Español",
|
|
2705
2691
|
fr: "Français",
|
|
2706
2692
|
pt: "Português"
|
|
2707
|
-
},
|
|
2693
|
+
}, mt = Tt({ isLoading: !0 });
|
|
2708
2694
|
function po() {
|
|
2709
|
-
return Ie(
|
|
2695
|
+
return Ie(mt);
|
|
2710
2696
|
}
|
|
2711
|
-
const Jh = ({ children: e, user: t, updateDetails: n }) => /* @__PURE__ */ c.jsx(
|
|
2697
|
+
const Jh = ({ children: e, user: t, updateDetails: n }) => /* @__PURE__ */ c.jsx(mt.Provider, { value: { ...t, updateDetails: n }, children: e }), vd = Tt({
|
|
2712
2698
|
registerOverlay: () => {
|
|
2713
2699
|
},
|
|
2714
2700
|
unregisterOverlay: () => {
|
|
@@ -2724,7 +2710,7 @@ const Jh = ({ children: e, user: t, updateDetails: n }) => /* @__PURE__ */ c.jsx
|
|
|
2724
2710
|
n((s) => s.filter((o) => o !== a));
|
|
2725
2711
|
}, []);
|
|
2726
2712
|
return /* @__PURE__ */ c.jsx(vd.Provider, { value: { registerOverlay: r, unregisterOverlay: i }, children: e });
|
|
2727
|
-
},
|
|
2713
|
+
}, qk = ({ bootstrap: e, children: t, intl: n, showDevTools: r }) => {
|
|
2728
2714
|
const [i, a] = ce({ isLoading: !0 }), [s, o] = ce({ badges: [], isLoading: !0 }), l = (n == null ? void 0 : n.locale) || localStorage.getItem("language") || "en", [u, d] = ce(l), m = (h) => {
|
|
2729
2715
|
localStorage.setItem("language", h), d(h);
|
|
2730
2716
|
};
|
|
@@ -2950,7 +2936,7 @@ const wu = 256, Fn = ({
|
|
|
2950
2936
|
}
|
|
2951
2937
|
);
|
|
2952
2938
|
};
|
|
2953
|
-
var
|
|
2939
|
+
var lt = /* @__PURE__ */ ((e) => (e.DISCUSSION_FORM_SUBMITTED = "discussionFormSubmitted", e.DISCUSSION_POST_ADDED = "discussionPostAdded", e.DISCUSSION_POST_CLICKED = "discussionPostClicked", e.MEMBER_CLICKED = "memberClicked", e))(lt || {});
|
|
2954
2940
|
const vo = (e) => e === "apolitical" ? {
|
|
2955
2941
|
image: `${dn}logos/member_apolitical.svg`
|
|
2956
2942
|
} : e === "community" || e === "deleted" || typeof e == "object" && !e.name ? {
|
|
@@ -2978,7 +2964,7 @@ const vo = (e) => e === "apolitical" ? {
|
|
|
2978
2964
|
return l.length > r && (l = o), l.length > r && (l = cr(l, r)), l;
|
|
2979
2965
|
};
|
|
2980
2966
|
const lp = br(() => Promise.resolve().then(() => Bh)), cp = br(
|
|
2981
|
-
() => Promise.resolve().then(() =>
|
|
2967
|
+
() => Promise.resolve().then(() => rk)
|
|
2982
2968
|
);
|
|
2983
2969
|
let pi = null;
|
|
2984
2970
|
const En = ({
|
|
@@ -3000,7 +2986,7 @@ const En = ({
|
|
|
3000
2986
|
variant: f = "inline",
|
|
3001
2987
|
isCondensed: b = !0,
|
|
3002
2988
|
additionalContentNewLine: g = !1
|
|
3003
|
-
} = i, y = Ie(
|
|
2989
|
+
} = i, y = Ie(mt), w = h && y && typeof y.id == "string", [F, C] = ce(!1), E = vo(t);
|
|
3004
2990
|
E.name || (E.name = m.formatMessage({
|
|
3005
2991
|
id: `member_${typeof t == "string" ? t : "community"}`
|
|
3006
2992
|
}));
|
|
@@ -3027,7 +3013,7 @@ const En = ({
|
|
|
3027
3013
|
pi && clearTimeout(pi), pi = setTimeout(() => {
|
|
3028
3014
|
window.location.href = O;
|
|
3029
3015
|
}, 150);
|
|
3030
|
-
const ee = new CustomEvent(
|
|
3016
|
+
const ee = new CustomEvent(lt.MEMBER_CLICKED, {
|
|
3031
3017
|
detail: { link: O, timeout: pi }
|
|
3032
3018
|
});
|
|
3033
3019
|
document.dispatchEvent(ee);
|
|
@@ -4952,7 +4938,7 @@ const Tr = "joinCommunityButton", Pd = ({
|
|
|
4952
4938
|
}, leave: () => {
|
|
4953
4939
|
} }
|
|
4954
4940
|
}) => {
|
|
4955
|
-
const s = de(), o = Ie(
|
|
4941
|
+
const s = de(), o = Ie(mt), l = o && typeof o.id == "string", u = r || !l, [d, m] = ce(e), [h, p] = ce(e ? "joined" : "notJoined");
|
|
4956
4942
|
fe(() => {
|
|
4957
4943
|
h === "joining" ? p("joined") : h === "leaving" && p("notJoined");
|
|
4958
4944
|
}, [d]);
|
|
@@ -4995,7 +4981,7 @@ const Tr = "joinCommunityButton", Pd = ({
|
|
|
4995
4981
|
}
|
|
4996
4982
|
);
|
|
4997
4983
|
};
|
|
4998
|
-
const $a = "communityDetails_",
|
|
4984
|
+
const $a = "communityDetails_", Uk = ({
|
|
4999
4985
|
className: e = "",
|
|
5000
4986
|
isMember: t = !1,
|
|
5001
4987
|
isOpen: n = !1,
|
|
@@ -5003,7 +4989,7 @@ const $a = "communityDetails_", Vk = ({
|
|
|
5003
4989
|
members: { number: i = 0, data: a = [] } = { number: 0, data: [] },
|
|
5004
4990
|
functions: { invite: s, ...o }
|
|
5005
4991
|
}) => {
|
|
5006
|
-
const l = de(), { id: u } = Ie(
|
|
4992
|
+
const l = de(), { id: u } = Ie(mt), d = u, m = 5, h = i || a.length, p = a.length ? a : Array(m).fill({}), v = `/communities/${r}/members` === window.location.pathname, f = t || n, b = !n && !t;
|
|
5007
4993
|
return /* @__PURE__ */ c.jsxs("div", { className: V("community-details", e), children: [
|
|
5008
4994
|
f ? /* @__PURE__ */ c.jsxs("div", { className: "member-details", children: [
|
|
5009
4995
|
/* @__PURE__ */ c.jsxs("div", { className: "top", children: [
|
|
@@ -5432,7 +5418,7 @@ function xg({ reply: e, user: t }) {
|
|
|
5432
5418
|
});
|
|
5433
5419
|
}
|
|
5434
5420
|
const _o = (e, t) => {
|
|
5435
|
-
const n = new CustomEvent(
|
|
5421
|
+
const n = new CustomEvent(lt.DISCUSSION_POST_ADDED, {
|
|
5436
5422
|
detail: { id: e, type: t }
|
|
5437
5423
|
});
|
|
5438
5424
|
document.dispatchEvent(n);
|
|
@@ -5440,11 +5426,11 @@ const _o = (e, t) => {
|
|
|
5440
5426
|
let Vu, Ia = 0;
|
|
5441
5427
|
const qd = () => {
|
|
5442
5428
|
fe(() => (document.addEventListener(
|
|
5443
|
-
|
|
5429
|
+
lt.DISCUSSION_POST_ADDED,
|
|
5444
5430
|
e
|
|
5445
5431
|
), () => {
|
|
5446
5432
|
document.removeEventListener(
|
|
5447
|
-
|
|
5433
|
+
lt.DISCUSSION_POST_ADDED,
|
|
5448
5434
|
e
|
|
5449
5435
|
);
|
|
5450
5436
|
}), []);
|
|
@@ -6225,7 +6211,7 @@ const zg = 280, Ud = async (e, t, n, r = () => Promise.resolve([])) => {
|
|
|
6225
6211
|
mentions: n,
|
|
6226
6212
|
listMembers: r
|
|
6227
6213
|
}) : i;
|
|
6228
|
-
}, Vd = (e, t) => t.length === 0 || e.length === 0 ? [] : e.map((n) => t.find((r) => r.slug === n)), qg = (e, t, n) => {
|
|
6214
|
+
}, Vd = (e, t) => t.length === 0 || e.length === 0 ? [] : e.map((n) => t.find((r) => r.slug === n)).filter((n) => n !== void 0), qg = (e, t, n) => {
|
|
6229
6215
|
let r = !1;
|
|
6230
6216
|
function i(a) {
|
|
6231
6217
|
let s = 30;
|
|
@@ -6242,7 +6228,7 @@ const zg = 280, Ud = async (e, t, n, r = () => Promise.resolve([])) => {
|
|
|
6242
6228
|
}
|
|
6243
6229
|
}
|
|
6244
6230
|
return i(e.target), r;
|
|
6245
|
-
}, Ug = (e, t) => e ? typeof e == "string" ? e : e[t] : "",
|
|
6231
|
+
}, Ug = (e, t) => e ? typeof e == "string" ? e : e[t] : "", Vk = ({
|
|
6246
6232
|
basePath: e,
|
|
6247
6233
|
parentId: t,
|
|
6248
6234
|
isMember: n,
|
|
@@ -6520,7 +6506,7 @@ const zg = 280, Ud = async (e, t, n, r = () => Promise.resolve([])) => {
|
|
|
6520
6506
|
] }) }),
|
|
6521
6507
|
/* @__PURE__ */ c.jsx(Tm, { form: m })
|
|
6522
6508
|
] });
|
|
6523
|
-
},
|
|
6509
|
+
}, Wk = {
|
|
6524
6510
|
next: "id_lt=67ef0342-6f6e-4807-beea-5a9184ec140c&limit=5",
|
|
6525
6511
|
results: [
|
|
6526
6512
|
{
|
|
@@ -7361,7 +7347,7 @@ const tv = ({
|
|
|
7361
7347
|
}
|
|
7362
7348
|
),
|
|
7363
7349
|
w && /* @__PURE__ */ c.jsx(
|
|
7364
|
-
|
|
7350
|
+
U_,
|
|
7365
7351
|
{
|
|
7366
7352
|
loadMore: { isLoading: p, hasNextPage: h, loadNextPage: () => m() },
|
|
7367
7353
|
form: {
|
|
@@ -7481,7 +7467,7 @@ function nv({
|
|
|
7481
7467
|
user: v,
|
|
7482
7468
|
userLiked: f
|
|
7483
7469
|
} = s, { edit: b, like: g, remove: y, unlike: w } = e.mutations;
|
|
7484
|
-
return /* @__PURE__ */ c.jsx(
|
|
7470
|
+
return /* @__PURE__ */ c.jsx(A_, { children: /* @__PURE__ */ c.jsx(
|
|
7485
7471
|
Ea,
|
|
7486
7472
|
{
|
|
7487
7473
|
isCommunity: !0,
|
|
@@ -7580,7 +7566,7 @@ const rv = ({
|
|
|
7580
7566
|
};
|
|
7581
7567
|
return /* @__PURE__ */ c.jsxs("section", { className: "replies-feed", children: [
|
|
7582
7568
|
/* @__PURE__ */ c.jsx(
|
|
7583
|
-
|
|
7569
|
+
q_,
|
|
7584
7570
|
{
|
|
7585
7571
|
type: "comment",
|
|
7586
7572
|
responses: r,
|
|
@@ -7625,7 +7611,7 @@ const rv = ({
|
|
|
7625
7611
|
totalReplies: f.length
|
|
7626
7612
|
}
|
|
7627
7613
|
)
|
|
7628
|
-
] }) : /* @__PURE__ */ c.jsx(zt, { children: /* @__PURE__ */ c.jsx(
|
|
7614
|
+
] }) : /* @__PURE__ */ c.jsx(zt, { children: /* @__PURE__ */ c.jsx(ft, { id: "replies_feed_missing_polls_vote_message" }) }),
|
|
7629
7615
|
/* @__PURE__ */ c.jsx(Tm, { form: d })
|
|
7630
7616
|
] });
|
|
7631
7617
|
};
|
|
@@ -7669,7 +7655,7 @@ function sv({
|
|
|
7669
7655
|
}, [l]);
|
|
7670
7656
|
const u = a.map(({ user: d }) => d).map((d) => d ? li(d) : void 0).filter((d) => d && typeof d != "string");
|
|
7671
7657
|
return /* @__PURE__ */ c.jsx("section", { className: "likes-feed", children: /* @__PURE__ */ c.jsx(
|
|
7672
|
-
|
|
7658
|
+
D_,
|
|
7673
7659
|
{
|
|
7674
7660
|
members: {
|
|
7675
7661
|
data: u,
|
|
@@ -7719,7 +7705,7 @@ const ov = ({
|
|
|
7719
7705
|
}, uv = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
7720
7706
|
__proto__: null,
|
|
7721
7707
|
default: ov
|
|
7722
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
7708
|
+
}, Symbol.toStringTag, { value: "Module" })), Hk = {
|
|
7723
7709
|
results: [
|
|
7724
7710
|
{
|
|
7725
7711
|
created_at: "2024-05-16T13:17:45.940899Z",
|
|
@@ -7945,7 +7931,7 @@ const Yn = "discussion_", dv = ({
|
|
|
7945
7931
|
}
|
|
7946
7932
|
);
|
|
7947
7933
|
};
|
|
7948
|
-
const
|
|
7934
|
+
const Kk = ({ breadcrumbs: e, cutoff: t = 20, className: n = "" }) => {
|
|
7949
7935
|
const r = de();
|
|
7950
7936
|
return /* @__PURE__ */ c.jsxs(c.Fragment, { children: [
|
|
7951
7937
|
/* @__PURE__ */ c.jsx(
|
|
@@ -8091,7 +8077,7 @@ const fv = ({
|
|
|
8091
8077
|
urlForRouter: `/${i.split("/").slice(2).join("/")}`
|
|
8092
8078
|
} : i;
|
|
8093
8079
|
};
|
|
8094
|
-
const yi = "languageSwitcher_",
|
|
8080
|
+
const yi = "languageSwitcher_", Zk = ({
|
|
8095
8081
|
currentLanguage: e,
|
|
8096
8082
|
isOriginalLanguage: t = !1,
|
|
8097
8083
|
isHumanTranslation: n = !1,
|
|
@@ -8214,7 +8200,7 @@ const Kd = ({
|
|
|
8214
8200
|
href: "/home/",
|
|
8215
8201
|
className: V("logo", e, t, n),
|
|
8216
8202
|
...r,
|
|
8217
|
-
children: /* @__PURE__ */ c.jsx(ze, { children: /* @__PURE__ */ c.jsx(
|
|
8203
|
+
children: /* @__PURE__ */ c.jsx(ze, { children: /* @__PURE__ */ c.jsx(ft, { id: "apolitical" }) })
|
|
8218
8204
|
}
|
|
8219
8205
|
) });
|
|
8220
8206
|
let xi = !1;
|
|
@@ -8301,7 +8287,7 @@ const gv = br(() => Promise.resolve().then(() => dp)), vv = [
|
|
|
8301
8287
|
href: "/communities/"
|
|
8302
8288
|
}
|
|
8303
8289
|
], bv = ({ activeLink: e, profile: t }) => {
|
|
8304
|
-
const n = de(), r = Ie(
|
|
8290
|
+
const n = de(), r = Ie(mt), i = r && typeof r.id == "string";
|
|
8305
8291
|
return /* @__PURE__ */ c.jsxs("ul", { id: "navigation-menu", className: "text-medium", children: [
|
|
8306
8292
|
vv.map(({ key: a, href: s }) => {
|
|
8307
8293
|
const o = pv(s, e), l = {};
|
|
@@ -8375,7 +8361,7 @@ ${Sr(t, "mailto", n)}&src=email`
|
|
|
8375
8361
|
onClick: (r, i) => (r.preventDefault(), r.stopPropagation(), navigator.clipboard.writeText(i))
|
|
8376
8362
|
}
|
|
8377
8363
|
];
|
|
8378
|
-
const xv = "shareLinks_",
|
|
8364
|
+
const xv = "shareLinks_", Yk = ({
|
|
8379
8365
|
title: e,
|
|
8380
8366
|
link: t,
|
|
8381
8367
|
referrer: n,
|
|
@@ -8411,7 +8397,7 @@ const xv = "shareLinks_", Gk = ({
|
|
|
8411
8397
|
}) })
|
|
8412
8398
|
] });
|
|
8413
8399
|
};
|
|
8414
|
-
const
|
|
8400
|
+
const Gk = ({ tabs: e, className: t = "", preventLocationChange: n }) => {
|
|
8415
8401
|
var v;
|
|
8416
8402
|
const r = (f, b, g) => (f || (f = `panel-${window.btoa(b)}-${g}`), f), i = xr(!0) || 0;
|
|
8417
8403
|
let a = e.findIndex((f) => f.current === !0);
|
|
@@ -9968,7 +9954,7 @@ const Di = "passwordRules_", Qd = "isMoreThanEightCharacters", Jd = "includesNum
|
|
|
9968
9954
|
) })
|
|
9969
9955
|
] });
|
|
9970
9956
|
}, Pv = rn(Ov);
|
|
9971
|
-
const
|
|
9957
|
+
const Qk = ({
|
|
9972
9958
|
text: e = {},
|
|
9973
9959
|
topRating: t = 5,
|
|
9974
9960
|
functions: {
|
|
@@ -10096,7 +10082,7 @@ const Mv = ({
|
|
|
10096
10082
|
const i = r;
|
|
10097
10083
|
return i != null && i.name && i.name === Wi ? /* @__PURE__ */ c.jsxs("span", { ...e, className: "mention deleted-user", children: [
|
|
10098
10084
|
"@",
|
|
10099
|
-
/* @__PURE__ */ c.jsx(
|
|
10085
|
+
/* @__PURE__ */ c.jsx(ft, { id: "member_deleted" }),
|
|
10100
10086
|
t
|
|
10101
10087
|
] }) : /* @__PURE__ */ c.jsxs("a", { ...e, className: "mention", children: [
|
|
10102
10088
|
"@",
|
|
@@ -10336,7 +10322,7 @@ function Yb(e, t) {
|
|
|
10336
10322
|
function rl(e) {
|
|
10337
10323
|
return Object.prototype.toString.call(e) === "[object Object]";
|
|
10338
10324
|
}
|
|
10339
|
-
function
|
|
10325
|
+
function dt(e) {
|
|
10340
10326
|
var t, n;
|
|
10341
10327
|
return rl(e) === !1 ? !1 : (t = e.constructor, t === void 0 ? !0 : (n = t.prototype, !(rl(n) === !1 || n.hasOwnProperty("isPrototypeOf") === !1)));
|
|
10342
10328
|
}
|
|
@@ -11112,7 +11098,7 @@ var f0 = (e, t, n) => {
|
|
|
11112
11098
|
else if (!ve.isText(y) && !ve.isText(F))
|
|
11113
11099
|
F.children.push(...y.children);
|
|
11114
11100
|
else
|
|
11115
|
-
throw new Error('Cannot apply a "merge_node" operation at path ['.concat(g, "] to nodes of different interfaces: ").concat(
|
|
11101
|
+
throw new Error('Cannot apply a "merge_node" operation at path ['.concat(g, "] to nodes of different interfaces: ").concat(ut.stringify(y), " ").concat(ut.stringify(F)));
|
|
11116
11102
|
if (C.children.splice(E, 1), t)
|
|
11117
11103
|
for (var [B, I] of G.points(t))
|
|
11118
11104
|
t[I] = Pe.transform(B, n);
|
|
@@ -11199,7 +11185,7 @@ var f0 = (e, t, n) => {
|
|
|
11199
11185
|
else {
|
|
11200
11186
|
if (t == null) {
|
|
11201
11187
|
if (!G.isRange(K))
|
|
11202
|
-
throw new Error('Cannot apply an incomplete "set_selection" operation properties '.concat(
|
|
11188
|
+
throw new Error('Cannot apply an incomplete "set_selection" operation properties '.concat(ut.stringify(K), " when there is no current selection."));
|
|
11203
11189
|
t = Or({}, K);
|
|
11204
11190
|
}
|
|
11205
11191
|
for (var ae in K) {
|
|
@@ -11222,19 +11208,19 @@ var f0 = (e, t, n) => {
|
|
|
11222
11208
|
} = n;
|
|
11223
11209
|
if (oe.length === 0)
|
|
11224
11210
|
throw new Error('Cannot apply a "split_node" operation at path ['.concat(oe, "] because the root node cannot be split."));
|
|
11225
|
-
var ge = le.get(e, oe), Ae = le.parent(e, oe),
|
|
11211
|
+
var ge = le.get(e, oe), Ae = le.parent(e, oe), ct = oe[oe.length - 1], at;
|
|
11226
11212
|
if (ve.isText(ge)) {
|
|
11227
11213
|
var st = ge.text.slice(0, we), jt = ge.text.slice(we);
|
|
11228
11214
|
ge.text = st, at = Or(Or({}, _e), {}, {
|
|
11229
11215
|
text: jt
|
|
11230
11216
|
});
|
|
11231
11217
|
} else {
|
|
11232
|
-
var
|
|
11233
|
-
ge.children =
|
|
11218
|
+
var ht = ge.children.slice(0, we), _a = ge.children.slice(we);
|
|
11219
|
+
ge.children = ht, at = Or(Or({}, _e), {}, {
|
|
11234
11220
|
children: _a
|
|
11235
11221
|
});
|
|
11236
11222
|
}
|
|
11237
|
-
if (Ae.children.splice(
|
|
11223
|
+
if (Ae.children.splice(ct + 1, 0, at), t)
|
|
11238
11224
|
for (var [_r, di] of G.points(t))
|
|
11239
11225
|
t[di] = Pe.transform(_r, n);
|
|
11240
11226
|
break;
|
|
@@ -11304,7 +11290,7 @@ var f0 = (e, t, n) => {
|
|
|
11304
11290
|
}, pf = (e, t) => {
|
|
11305
11291
|
for (var n in e) {
|
|
11306
11292
|
var r = e[n], i = t[n];
|
|
11307
|
-
if (
|
|
11293
|
+
if (dt(r) && dt(i)) {
|
|
11308
11294
|
if (!pf(r, i))
|
|
11309
11295
|
return !1;
|
|
11310
11296
|
} else if (Array.isArray(r) && Array.isArray(i)) {
|
|
@@ -11417,7 +11403,7 @@ var G = {
|
|
|
11417
11403
|
return !G.isBackward(e);
|
|
11418
11404
|
},
|
|
11419
11405
|
isRange(e) {
|
|
11420
|
-
return
|
|
11406
|
+
return dt(e) && Pe.isPoint(e.anchor) && Pe.isPoint(e.focus);
|
|
11421
11407
|
},
|
|
11422
11408
|
*points(e) {
|
|
11423
11409
|
yield [e.anchor, "anchor"], yield [e.focus, "focus"];
|
|
@@ -11449,9 +11435,9 @@ var G = {
|
|
|
11449
11435
|
r.anchor = l, r.focus = u;
|
|
11450
11436
|
});
|
|
11451
11437
|
}
|
|
11452
|
-
}, gl = (e) =>
|
|
11438
|
+
}, gl = (e) => dt(e) && le.isNodeList(e.children) && !x.isEditor(e), pe = {
|
|
11453
11439
|
isAncestor(e) {
|
|
11454
|
-
return
|
|
11440
|
+
return dt(e) && le.isNodeList(e.children);
|
|
11455
11441
|
},
|
|
11456
11442
|
isElement: gl,
|
|
11457
11443
|
isElementList(e) {
|
|
@@ -11474,7 +11460,7 @@ var G = {
|
|
|
11474
11460
|
ancestor(e, t) {
|
|
11475
11461
|
var n = le.get(e, t);
|
|
11476
11462
|
if (ve.isText(n))
|
|
11477
|
-
throw new Error("Cannot get the ancestor node at path [".concat(t, "] because it refers to a text node instead: ").concat(
|
|
11463
|
+
throw new Error("Cannot get the ancestor node at path [".concat(t, "] because it refers to a text node instead: ").concat(ut.stringify(n)));
|
|
11478
11464
|
return n;
|
|
11479
11465
|
},
|
|
11480
11466
|
ancestors(e, t) {
|
|
@@ -11488,10 +11474,10 @@ var G = {
|
|
|
11488
11474
|
},
|
|
11489
11475
|
child(e, t) {
|
|
11490
11476
|
if (ve.isText(e))
|
|
11491
|
-
throw new Error("Cannot get the child of a text node: ".concat(
|
|
11477
|
+
throw new Error("Cannot get the child of a text node: ".concat(ut.stringify(e)));
|
|
11492
11478
|
var n = e.children[t];
|
|
11493
11479
|
if (n == null)
|
|
11494
|
-
throw new Error("Cannot get child at index `".concat(t, "` in node: ").concat(
|
|
11480
|
+
throw new Error("Cannot get child at index `".concat(t, "` in node: ").concat(ut.stringify(e)));
|
|
11495
11481
|
return n;
|
|
11496
11482
|
},
|
|
11497
11483
|
children(e, t) {
|
|
@@ -11514,7 +11500,7 @@ var G = {
|
|
|
11514
11500
|
descendant(e, t) {
|
|
11515
11501
|
var n = le.get(e, t);
|
|
11516
11502
|
if (x.isEditor(n))
|
|
11517
|
-
throw new Error("Cannot get the descendant node at path [".concat(t, "] because it refers to the root editor node instead: ").concat(
|
|
11503
|
+
throw new Error("Cannot get the descendant node at path [".concat(t, "] because it refers to the root editor node instead: ").concat(ut.stringify(n)));
|
|
11518
11504
|
return n;
|
|
11519
11505
|
},
|
|
11520
11506
|
descendants(e) {
|
|
@@ -11547,7 +11533,7 @@ var G = {
|
|
|
11547
11533
|
},
|
|
11548
11534
|
fragment(e, t) {
|
|
11549
11535
|
if (ve.isText(e))
|
|
11550
|
-
throw new Error("Cannot get a fragment starting from a root text node: ".concat(
|
|
11536
|
+
throw new Error("Cannot get a fragment starting from a root text node: ".concat(ut.stringify(e)));
|
|
11551
11537
|
var n = So({
|
|
11552
11538
|
children: e.children
|
|
11553
11539
|
}, (r) => {
|
|
@@ -11580,7 +11566,7 @@ var G = {
|
|
|
11580
11566
|
for (var n = e, r = 0; r < t.length; r++) {
|
|
11581
11567
|
var i = t[r];
|
|
11582
11568
|
if (ve.isText(n) || !n.children[i])
|
|
11583
|
-
throw new Error("Cannot find a descendant at path [".concat(t, "] in node: ").concat(
|
|
11569
|
+
throw new Error("Cannot find a descendant at path [".concat(t, "] in node: ").concat(ut.stringify(e)));
|
|
11584
11570
|
n = n.children[i];
|
|
11585
11571
|
}
|
|
11586
11572
|
return n;
|
|
@@ -11616,7 +11602,7 @@ var G = {
|
|
|
11616
11602
|
leaf(e, t) {
|
|
11617
11603
|
var n = le.get(e, t);
|
|
11618
11604
|
if (!ve.isText(n))
|
|
11619
|
-
throw new Error("Cannot get the leaf node at path [".concat(t, "] because it refers to a non-leaf node: ").concat(
|
|
11605
|
+
throw new Error("Cannot get the leaf node at path [".concat(t, "] because it refers to a non-leaf node: ").concat(ut.stringify(n)));
|
|
11620
11606
|
return n;
|
|
11621
11607
|
},
|
|
11622
11608
|
levels(e, t) {
|
|
@@ -11708,7 +11694,7 @@ var Dn = {
|
|
|
11708
11694
|
return Dn.isOperation(e) && e.type.endsWith("_node");
|
|
11709
11695
|
},
|
|
11710
11696
|
isOperation(e) {
|
|
11711
|
-
if (!
|
|
11697
|
+
if (!dt(e))
|
|
11712
11698
|
return !1;
|
|
11713
11699
|
switch (e.type) {
|
|
11714
11700
|
case "insert_node":
|
|
@@ -11716,7 +11702,7 @@ var Dn = {
|
|
|
11716
11702
|
case "insert_text":
|
|
11717
11703
|
return typeof e.offset == "number" && typeof e.text == "string" && M.isPath(e.path);
|
|
11718
11704
|
case "merge_node":
|
|
11719
|
-
return typeof e.position == "number" && M.isPath(e.path) &&
|
|
11705
|
+
return typeof e.position == "number" && M.isPath(e.path) && dt(e.properties);
|
|
11720
11706
|
case "move_node":
|
|
11721
11707
|
return M.isPath(e.path) && M.isPath(e.newPath);
|
|
11722
11708
|
case "remove_node":
|
|
@@ -11724,11 +11710,11 @@ var Dn = {
|
|
|
11724
11710
|
case "remove_text":
|
|
11725
11711
|
return typeof e.offset == "number" && typeof e.text == "string" && M.isPath(e.path);
|
|
11726
11712
|
case "set_node":
|
|
11727
|
-
return M.isPath(e.path) &&
|
|
11713
|
+
return M.isPath(e.path) && dt(e.properties) && dt(e.newProperties);
|
|
11728
11714
|
case "set_selection":
|
|
11729
|
-
return e.properties === null && G.isRange(e.newProperties) || e.newProperties === null && G.isRange(e.properties) ||
|
|
11715
|
+
return e.properties === null && G.isRange(e.newProperties) || e.newProperties === null && G.isRange(e.properties) || dt(e.properties) && dt(e.newProperties);
|
|
11730
11716
|
case "split_node":
|
|
11731
|
-
return M.isPath(e.path) && typeof e.position == "number" &&
|
|
11717
|
+
return M.isPath(e.path) && typeof e.position == "number" && dt(e.properties);
|
|
11732
11718
|
default:
|
|
11733
11719
|
return !1;
|
|
11734
11720
|
}
|
|
@@ -11820,9 +11806,9 @@ var Dn = {
|
|
|
11820
11806
|
var t = yl.get(e);
|
|
11821
11807
|
if (t !== void 0)
|
|
11822
11808
|
return t;
|
|
11823
|
-
if (!
|
|
11809
|
+
if (!dt(e))
|
|
11824
11810
|
return !1;
|
|
11825
|
-
var n = typeof e.addMark == "function" && typeof e.apply == "function" && typeof e.deleteFragment == "function" && typeof e.insertBreak == "function" && typeof e.insertSoftBreak == "function" && typeof e.insertFragment == "function" && typeof e.insertNode == "function" && typeof e.insertText == "function" && typeof e.isElementReadOnly == "function" && typeof e.isInline == "function" && typeof e.isSelectable == "function" && typeof e.isVoid == "function" && typeof e.normalizeNode == "function" && typeof e.onChange == "function" && typeof e.removeMark == "function" && typeof e.getDirtyPaths == "function" && (e.marks === null ||
|
|
11811
|
+
var n = typeof e.addMark == "function" && typeof e.apply == "function" && typeof e.deleteFragment == "function" && typeof e.insertBreak == "function" && typeof e.insertSoftBreak == "function" && typeof e.insertFragment == "function" && typeof e.insertNode == "function" && typeof e.insertText == "function" && typeof e.isElementReadOnly == "function" && typeof e.isInline == "function" && typeof e.isSelectable == "function" && typeof e.isVoid == "function" && typeof e.normalizeNode == "function" && typeof e.onChange == "function" && typeof e.removeMark == "function" && typeof e.getDirtyPaths == "function" && (e.marks === null || dt(e.marks)) && (e.selection === null || G.isRange(e.selection)) && le.isNodeList(e.children) && Dn.isOperationList(e.operations);
|
|
11826
11812
|
return yl.set(e, n), n;
|
|
11827
11813
|
}, x = {
|
|
11828
11814
|
above(e, t) {
|
|
@@ -12050,7 +12036,7 @@ var Pe = {
|
|
|
12050
12036
|
return e.offset === t.offset && M.equals(e.path, t.path);
|
|
12051
12037
|
},
|
|
12052
12038
|
isPoint(e) {
|
|
12053
|
-
return
|
|
12039
|
+
return dt(e) && typeof e.offset == "number" && M.isPath(e.path);
|
|
12054
12040
|
},
|
|
12055
12041
|
transform(e, t) {
|
|
12056
12042
|
var n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
|
|
@@ -12101,7 +12087,7 @@ var Pe = {
|
|
|
12101
12087
|
}
|
|
12102
12088
|
});
|
|
12103
12089
|
}
|
|
12104
|
-
}, Dl = void 0,
|
|
12090
|
+
}, Dl = void 0, ut = {
|
|
12105
12091
|
setScrubber(e) {
|
|
12106
12092
|
Dl = e;
|
|
12107
12093
|
},
|
|
@@ -12142,7 +12128,7 @@ var ve = {
|
|
|
12142
12128
|
return pf(r ? i(e) : e, r ? i(t) : t);
|
|
12143
12129
|
},
|
|
12144
12130
|
isText(e) {
|
|
12145
|
-
return
|
|
12131
|
+
return dt(e) && typeof e.text == "string";
|
|
12146
12132
|
},
|
|
12147
12133
|
isTextList(e) {
|
|
12148
12134
|
return Array.isArray(e) && e.every((t) => ve.isText(t));
|
|
@@ -13686,7 +13672,7 @@ var Xy = (e, t) => {
|
|
|
13686
13672
|
return;
|
|
13687
13673
|
}
|
|
13688
13674
|
if (!G.isRange(t))
|
|
13689
|
-
throw new Error("When setting the selection and the current selection is `null` you must provide at least an `anchor` and `focus`, but you passed: ".concat(
|
|
13675
|
+
throw new Error("When setting the selection and the current selection is `null` you must provide at least an `anchor` and `focus`, but you passed: ".concat(ut.stringify(t)));
|
|
13690
13676
|
e.apply({
|
|
13691
13677
|
type: "set_selection",
|
|
13692
13678
|
properties: n,
|
|
@@ -13967,7 +13953,7 @@ var d1 = function(t, n) {
|
|
|
13967
13953
|
var O = fn(p, g1);
|
|
13968
13954
|
I = f.children.length, B = O;
|
|
13969
13955
|
} else
|
|
13970
|
-
throw new Error("Cannot merge the node at path [".concat(v, "] with the previous sibling because it is not the same kind: ").concat(
|
|
13956
|
+
throw new Error("Cannot merge the node at path [".concat(v, "] with the previous sibling because it is not the same kind: ").concat(ut.stringify(p), " ").concat(ut.stringify(f)));
|
|
13971
13957
|
w || X.moveNodes(t, {
|
|
13972
13958
|
at: v,
|
|
13973
13959
|
to: g,
|
|
@@ -15378,7 +15364,7 @@ var ne = {
|
|
|
15378
15364
|
break;
|
|
15379
15365
|
n.unshift(a), r = i;
|
|
15380
15366
|
}
|
|
15381
|
-
throw new Error("Unable to find the path for Slate node: ".concat(
|
|
15367
|
+
throw new Error("Unable to find the path for Slate node: ".concat(ut.stringify(t)));
|
|
15382
15368
|
},
|
|
15383
15369
|
focus: function(t) {
|
|
15384
15370
|
var n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {
|
|
@@ -15457,7 +15443,7 @@ var ne = {
|
|
|
15457
15443
|
toDOMNode: (e, t) => {
|
|
15458
15444
|
var n = wa.get(e), r = x.isEditor(t) ? zi.get(e) : n == null ? void 0 : n.get(ne.findKey(e, t));
|
|
15459
15445
|
if (!r)
|
|
15460
|
-
throw new Error("Cannot resolve a DOM node from Slate node: ".concat(
|
|
15446
|
+
throw new Error("Cannot resolve a DOM node from Slate node: ".concat(ut.stringify(t)));
|
|
15461
15447
|
return r;
|
|
15462
15448
|
},
|
|
15463
15449
|
toDOMPoint: (e, t) => {
|
|
@@ -15496,7 +15482,7 @@ var ne = {
|
|
|
15496
15482
|
}
|
|
15497
15483
|
}
|
|
15498
15484
|
if (!i)
|
|
15499
|
-
throw new Error("Cannot resolve a DOM point from Slate point: ".concat(
|
|
15485
|
+
throw new Error("Cannot resolve a DOM point from Slate point: ".concat(ut.stringify(t)));
|
|
15500
15486
|
return i;
|
|
15501
15487
|
},
|
|
15502
15488
|
toDOMRange: (e, t) => {
|
|
@@ -17578,9 +17564,9 @@ var xw = ["editor", "children", "onChange", "onSelectionChange", "onValueChange"
|
|
|
17578
17564
|
initialValue: s
|
|
17579
17565
|
} = e, o = gr(e, xw), [l, u] = ie.useState(() => {
|
|
17580
17566
|
if (!le.isNodeList(s))
|
|
17581
|
-
throw new Error("[Slate] initialValue is invalid! Expected a list of elements but got: ".concat(
|
|
17567
|
+
throw new Error("[Slate] initialValue is invalid! Expected a list of elements but got: ".concat(ut.stringify(s)));
|
|
17582
17568
|
if (!x.isEditor(t))
|
|
17583
|
-
throw new Error("[Slate] editor is invalid! You passed: ".concat(
|
|
17569
|
+
throw new Error("[Slate] editor is invalid! You passed: ".concat(ut.stringify(t)));
|
|
17584
17570
|
return t.children = s, Object.assign(t, o), {
|
|
17585
17571
|
v: 0,
|
|
17586
17572
|
editor: t
|
|
@@ -21624,7 +21610,7 @@ function YC(e) {
|
|
|
21624
21610
|
return ae;
|
|
21625
21611
|
}
|
|
21626
21612
|
function i(K, ae, ye) {
|
|
21627
|
-
let oe = ae - 1, we = -1, _e = !1, ge, Ae,
|
|
21613
|
+
let oe = ae - 1, we = -1, _e = !1, ge, Ae, ct, at;
|
|
21628
21614
|
for (; ++oe <= ye; ) {
|
|
21629
21615
|
const st = K[oe];
|
|
21630
21616
|
switch (st[1].type) {
|
|
@@ -21635,7 +21621,7 @@ function YC(e) {
|
|
|
21635
21621
|
break;
|
|
21636
21622
|
}
|
|
21637
21623
|
case "lineEndingBlank": {
|
|
21638
|
-
st[0] === "enter" && (ge && !at && !we && !
|
|
21624
|
+
st[0] === "enter" && (ge && !at && !we && !ct && (ct = oe), at = void 0);
|
|
21639
21625
|
break;
|
|
21640
21626
|
}
|
|
21641
21627
|
case "linePrefix":
|
|
@@ -21651,15 +21637,15 @@ function YC(e) {
|
|
|
21651
21637
|
if (ge) {
|
|
21652
21638
|
let jt = oe;
|
|
21653
21639
|
for (Ae = void 0; jt--; ) {
|
|
21654
|
-
const
|
|
21655
|
-
if (
|
|
21656
|
-
if (
|
|
21640
|
+
const ht = K[jt];
|
|
21641
|
+
if (ht[1].type === "lineEnding" || ht[1].type === "lineEndingBlank") {
|
|
21642
|
+
if (ht[0] === "exit")
|
|
21657
21643
|
continue;
|
|
21658
|
-
Ae && (K[Ae][1].type = "lineEndingBlank", _e = !0),
|
|
21659
|
-
} else if (!(
|
|
21644
|
+
Ae && (K[Ae][1].type = "lineEndingBlank", _e = !0), ht[1].type = "lineEnding", Ae = jt;
|
|
21645
|
+
} else if (!(ht[1].type === "linePrefix" || ht[1].type === "blockQuotePrefix" || ht[1].type === "blockQuotePrefixWhitespace" || ht[1].type === "blockQuoteMarker" || ht[1].type === "listItemIndent"))
|
|
21660
21646
|
break;
|
|
21661
21647
|
}
|
|
21662
|
-
|
|
21648
|
+
ct && (!Ae || ct < Ae) && (ge._spread = !0), ge.end = Object.assign(
|
|
21663
21649
|
{},
|
|
21664
21650
|
Ae ? K[Ae][1].start : st[1].end
|
|
21665
21651
|
), K.splice(Ae || oe, 0, ["exit", ge, st[2]]), oe++, ye++;
|
|
@@ -21672,7 +21658,7 @@ function YC(e) {
|
|
|
21672
21658
|
// @ts-expect-error: we’ll add `end` in a second.
|
|
21673
21659
|
end: void 0
|
|
21674
21660
|
};
|
|
21675
|
-
ge = jt, K.splice(oe, 0, ["enter", jt, st[2]]), oe++, ye++,
|
|
21661
|
+
ge = jt, K.splice(oe, 0, ["enter", jt, st[2]]), oe++, ye++, ct = void 0, at = !0;
|
|
21676
21662
|
}
|
|
21677
21663
|
}
|
|
21678
21664
|
}
|
|
@@ -23649,7 +23635,7 @@ var qE = {
|
|
|
23649
23635
|
* Check if a value is a `History` object.
|
|
23650
23636
|
*/
|
|
23651
23637
|
isHistory(e) {
|
|
23652
|
-
return
|
|
23638
|
+
return dt(e) && Array.isArray(e.redos) && Array.isArray(e.undos) && (e.redos.length === 0 || Dn.isOperationList(e.redos[0].operations)) && (e.undos.length === 0 || Dn.isOperationList(e.undos[0].operations));
|
|
23653
23639
|
}
|
|
23654
23640
|
}, ps = /* @__PURE__ */ new WeakMap(), gs = /* @__PURE__ */ new WeakMap(), sr = {
|
|
23655
23641
|
/**
|
|
@@ -24198,7 +24184,7 @@ const _m = ({
|
|
|
24198
24184
|
}
|
|
24199
24185
|
) }) : /* @__PURE__ */ c.jsx(c.Fragment, {});
|
|
24200
24186
|
};
|
|
24201
|
-
const
|
|
24187
|
+
const Jk = ({
|
|
24202
24188
|
id: e = "form-toggle",
|
|
24203
24189
|
label: t,
|
|
24204
24190
|
options: n,
|
|
@@ -24497,7 +24483,7 @@ const i_ = ({ emails: e, setEmails: t, setIsDisabled: n }) => {
|
|
|
24497
24483
|
NEW_PASSWORD: "newPassword",
|
|
24498
24484
|
CONFIRMED_PASSWORD: "confirmedPassword",
|
|
24499
24485
|
CURRENT_PASSWORD: "oldPassword"
|
|
24500
|
-
},
|
|
24486
|
+
}, Xk = ({ functions: e, ...t }) => {
|
|
24501
24487
|
const { formatMessage: n } = de(), [r, i] = ce(null), [a, s] = ce(!1), [o, l] = ce({
|
|
24502
24488
|
isMoreThanEightCharacters: !1,
|
|
24503
24489
|
includesNumberAndSymbol: !1,
|
|
@@ -24571,7 +24557,7 @@ const s_ = ({
|
|
|
24571
24557
|
...a
|
|
24572
24558
|
}) => {
|
|
24573
24559
|
var I;
|
|
24574
|
-
const s = de(), o = "profileForm_", l = Ie(
|
|
24560
|
+
const s = de(), o = "profileForm_", l = Ie(mt), [u, d] = ce(l.image), [m, h] = ce(!1), {
|
|
24575
24561
|
uploadImage: p = () => {
|
|
24576
24562
|
},
|
|
24577
24563
|
onSuccess: v = async (O) => {
|
|
@@ -24727,80 +24713,43 @@ const s_ = ({
|
|
|
24727
24713
|
}
|
|
24728
24714
|
}
|
|
24729
24715
|
);
|
|
24730
|
-
}
|
|
24731
|
-
{
|
|
24732
|
-
id: "cities-and-local-government"
|
|
24733
|
-
},
|
|
24734
|
-
{
|
|
24735
|
-
id: "climate"
|
|
24736
|
-
},
|
|
24737
|
-
{
|
|
24738
|
-
id: "digital-and-data"
|
|
24739
|
-
},
|
|
24740
|
-
{
|
|
24741
|
-
id: "education"
|
|
24742
|
-
},
|
|
24743
|
-
{
|
|
24744
|
-
id: "equity-justice-and-inclusion"
|
|
24745
|
-
},
|
|
24746
|
-
{
|
|
24747
|
-
id: "health-and-social-care"
|
|
24748
|
-
},
|
|
24749
|
-
{
|
|
24750
|
-
id: "innovation"
|
|
24751
|
-
},
|
|
24752
|
-
{
|
|
24753
|
-
id: "leadership-and-skills"
|
|
24754
|
-
},
|
|
24755
|
-
{
|
|
24756
|
-
id: "life-in-government"
|
|
24757
|
-
},
|
|
24758
|
-
{
|
|
24759
|
-
id: "policymaking"
|
|
24760
|
-
},
|
|
24761
|
-
{
|
|
24762
|
-
id: "transport-and-infrastructure"
|
|
24763
|
-
},
|
|
24764
|
-
{
|
|
24765
|
-
id: "work-and-the-economy"
|
|
24766
|
-
}
|
|
24767
|
-
];
|
|
24716
|
+
};
|
|
24768
24717
|
let bs = null;
|
|
24769
|
-
const
|
|
24718
|
+
const gt = "publishArticleForm_", Hc = {}, Kc = 10, eF = ({
|
|
24770
24719
|
id: e = "publish-article-form",
|
|
24771
24720
|
values: t = Hc,
|
|
24772
24721
|
functions: n,
|
|
24773
24722
|
meta: r,
|
|
24774
24723
|
gtm: i
|
|
24775
24724
|
}) => {
|
|
24776
|
-
const a = de(), s = Ie(
|
|
24725
|
+
const a = de(), s = Ie(mt), { create: o, onSuccess: l = () => {
|
|
24777
24726
|
}, onFailure: u = () => {
|
|
24778
24727
|
} } = n || {}, { isInOverlay: d = !1 } = r || {}, [m, h] = ce(!1), [p, v] = ce(t.body || ""), [f, b] = ce(!1), [g, y] = ce("");
|
|
24779
24728
|
fe(() => {
|
|
24780
24729
|
Vi(t, Hc) || Gr(t.body) && t.body !== p && t.body !== void 0 && v(t.body);
|
|
24781
24730
|
}, [t.body]);
|
|
24782
24731
|
const w = () => {
|
|
24783
|
-
!s || !s.id ? b(a.formatMessage({ id: `${
|
|
24732
|
+
!s || !s.id ? b(a.formatMessage({ id: `${gt}error_loggedOut` })) : f && b(!1);
|
|
24784
24733
|
}, F = (I) => ({
|
|
24785
24734
|
condition: (O) => {
|
|
24786
24735
|
const L = O[I];
|
|
24787
24736
|
return !L || typeof L != "string" ? !0 : L.length < Kc;
|
|
24788
24737
|
},
|
|
24789
24738
|
error: a.formatMessage(
|
|
24790
|
-
{ id: `${
|
|
24739
|
+
{ id: `${gt}error_underMinLength` },
|
|
24791
24740
|
{ length: Kc }
|
|
24792
24741
|
)
|
|
24793
24742
|
}), C = !!p && Gr(p), E = () => /* @__PURE__ */ c.jsxs(c.Fragment, { children: [
|
|
24794
24743
|
/* @__PURE__ */ c.jsx(tn, {}),
|
|
24795
|
-
/* @__PURE__ */ c.jsx("p", { className: "text-medium", children: a.formatMessage({ id: `${
|
|
24744
|
+
/* @__PURE__ */ c.jsx("p", { className: "text-medium", children: a.formatMessage({ id: `${gt}disclaimer` }) })
|
|
24796
24745
|
] }), B = [
|
|
24797
24746
|
{
|
|
24798
24747
|
id: "title",
|
|
24799
24748
|
type: "textarea",
|
|
24800
24749
|
value: t.title || "",
|
|
24801
24750
|
limit: 65,
|
|
24802
|
-
label: a.formatMessage({ id: `${
|
|
24803
|
-
placeholder: a.formatMessage({ id: `${
|
|
24751
|
+
label: a.formatMessage({ id: `${gt}title_label` }),
|
|
24752
|
+
placeholder: a.formatMessage({ id: `${gt}title_placeholder` }),
|
|
24804
24753
|
styling: {
|
|
24805
24754
|
autosizeToFit: !0
|
|
24806
24755
|
},
|
|
@@ -24814,11 +24763,11 @@ const ut = "publishArticleForm_", Hc = {}, Kc = 10, tF = ({
|
|
|
24814
24763
|
type: "textarea",
|
|
24815
24764
|
value: t.subtitle,
|
|
24816
24765
|
limit: 115,
|
|
24817
|
-
label: a.formatMessage({ id: `${
|
|
24766
|
+
label: a.formatMessage({ id: `${gt}subtitle_label` }),
|
|
24818
24767
|
styling: {
|
|
24819
24768
|
autosizeToFit: !0
|
|
24820
24769
|
},
|
|
24821
|
-
placeholder: a.formatMessage({ id: `${
|
|
24770
|
+
placeholder: a.formatMessage({ id: `${gt}subtitle_placeholder` }),
|
|
24822
24771
|
functions: {
|
|
24823
24772
|
onChange: w
|
|
24824
24773
|
},
|
|
@@ -24829,7 +24778,7 @@ const ut = "publishArticleForm_", Hc = {}, Kc = 10, tF = ({
|
|
|
24829
24778
|
props: {
|
|
24830
24779
|
formID: e,
|
|
24831
24780
|
label: {
|
|
24832
|
-
visible: a.formatMessage({ id: `${
|
|
24781
|
+
visible: a.formatMessage({ id: `${gt}body_label` })
|
|
24833
24782
|
},
|
|
24834
24783
|
showLabel: !0
|
|
24835
24784
|
}
|
|
@@ -24839,7 +24788,7 @@ const ut = "publishArticleForm_", Hc = {}, Kc = 10, tF = ({
|
|
|
24839
24788
|
props: {
|
|
24840
24789
|
id: `${e}-input`,
|
|
24841
24790
|
value: p,
|
|
24842
|
-
placeholder: a.formatMessage({ id: `${
|
|
24791
|
+
placeholder: a.formatMessage({ id: `${gt}body_placeholder` }),
|
|
24843
24792
|
meta: { isInOverlay: d },
|
|
24844
24793
|
autoFocus: !1,
|
|
24845
24794
|
functions: {
|
|
@@ -24855,25 +24804,6 @@ const ut = "publishArticleForm_", Hc = {}, Kc = 10, tF = ({
|
|
|
24855
24804
|
"aria-invalid": !!f,
|
|
24856
24805
|
"aria-errormessage": "error-message"
|
|
24857
24806
|
}
|
|
24858
|
-
},
|
|
24859
|
-
{
|
|
24860
|
-
id: "tags",
|
|
24861
|
-
label: a.formatMessage({ id: `${ut}tags_label` }),
|
|
24862
|
-
type: "checkboxes",
|
|
24863
|
-
styling: { displayOptionsAsPills: !0 },
|
|
24864
|
-
options: u_.map((I) => ({
|
|
24865
|
-
...I,
|
|
24866
|
-
label: a.formatMessage({ id: `${ut}_tags_${I.id}` })
|
|
24867
|
-
})),
|
|
24868
|
-
validation: [
|
|
24869
|
-
{
|
|
24870
|
-
condition: (I) => {
|
|
24871
|
-
var O;
|
|
24872
|
-
return ((O = I == null ? void 0 : I.tags) == null ? void 0 : O.length) > 3;
|
|
24873
|
-
},
|
|
24874
|
-
error: a.formatMessage({ id: `${ut}tags_error` })
|
|
24875
|
-
}
|
|
24876
|
-
]
|
|
24877
24807
|
}
|
|
24878
24808
|
];
|
|
24879
24809
|
return m ? B.push({ component: tn }) : B.push({ component: E }), /* @__PURE__ */ c.jsxs("section", { className: "publish-article-form", children: [
|
|
@@ -24894,16 +24824,16 @@ const ut = "publishArticleForm_", Hc = {}, Kc = 10, tF = ({
|
|
|
24894
24824
|
const O = { ...I, body: p };
|
|
24895
24825
|
try {
|
|
24896
24826
|
o && await o(O), bs = setTimeout(() => {
|
|
24897
|
-
y(a.formatMessage({ id: `${
|
|
24827
|
+
y(a.formatMessage({ id: `${gt}aria_success` })), l(O);
|
|
24898
24828
|
}, 500);
|
|
24899
24829
|
} catch {
|
|
24900
|
-
b(a.formatMessage({ id: `${
|
|
24830
|
+
b(a.formatMessage({ id: `${gt}error` })), y(""), u();
|
|
24901
24831
|
}
|
|
24902
24832
|
},
|
|
24903
24833
|
onFailure: u
|
|
24904
24834
|
},
|
|
24905
24835
|
fields: B,
|
|
24906
|
-
intlPath:
|
|
24836
|
+
intlPath: gt,
|
|
24907
24837
|
button: {
|
|
24908
24838
|
variant: "primary",
|
|
24909
24839
|
size: { mobile: "small", 600: "medium" },
|
|
@@ -24911,12 +24841,12 @@ const ut = "publishArticleForm_", Hc = {}, Kc = 10, tF = ({
|
|
|
24911
24841
|
"data-gtm-event-type": "publish-article-click",
|
|
24912
24842
|
disabled: !s || !s.id || !C,
|
|
24913
24843
|
text: {
|
|
24914
|
-
default: a.formatMessage({ id: `${
|
|
24844
|
+
default: a.formatMessage({ id: `${gt}cta_submit` }),
|
|
24915
24845
|
submitting: a.formatMessage({
|
|
24916
|
-
id: `${
|
|
24846
|
+
id: `${gt}cta_submitting`
|
|
24917
24847
|
}),
|
|
24918
24848
|
submitted: a.formatMessage({
|
|
24919
|
-
id: `${
|
|
24849
|
+
id: `${gt}cta_submitted`
|
|
24920
24850
|
})
|
|
24921
24851
|
},
|
|
24922
24852
|
customOnSubmit: f ? /* @__PURE__ */ c.jsx(c.Fragment, {}) : /* @__PURE__ */ c.jsx(o_, {})
|
|
@@ -24924,11 +24854,11 @@ const ut = "publishArticleForm_", Hc = {}, Kc = 10, tF = ({
|
|
|
24924
24854
|
gtm: i
|
|
24925
24855
|
}
|
|
24926
24856
|
),
|
|
24927
|
-
f && /* @__PURE__ */ c.jsx(Qr, { id: "error-message", className: "error", children: typeof f == "string" && f.includes(" ") ? f : a.formatMessage({ id: `${
|
|
24857
|
+
f && /* @__PURE__ */ c.jsx(Qr, { id: "error-message", className: "error", children: typeof f == "string" && f.includes(" ") ? f : a.formatMessage({ id: `${gt}error` }) }),
|
|
24928
24858
|
g && /* @__PURE__ */ c.jsx(ze, { "aria-live": "polite", showOnFocus: !1, children: g })
|
|
24929
24859
|
] });
|
|
24930
24860
|
};
|
|
24931
|
-
const
|
|
24861
|
+
const u_ = ({
|
|
24932
24862
|
id: e = "search",
|
|
24933
24863
|
className: t = "",
|
|
24934
24864
|
handleToggle: n = !1,
|
|
@@ -25034,7 +24964,7 @@ const l_ = ({
|
|
|
25034
24964
|
},
|
|
25035
24965
|
{ type: "validFields.email", value: !0 }
|
|
25036
24966
|
]);
|
|
25037
|
-
},
|
|
24967
|
+
}, l_ = (e) => {
|
|
25038
24968
|
const t = {};
|
|
25039
24969
|
for (const n of e.entries())
|
|
25040
24970
|
t[n[0]] = n[1];
|
|
@@ -25050,7 +24980,7 @@ const l_ = ({
|
|
|
25050
24980
|
page: window.location.pathname,
|
|
25051
24981
|
"g-recaptcha-response": t["g-recaptcha-response"]
|
|
25052
24982
|
};
|
|
25053
|
-
},
|
|
24983
|
+
}, c_ = async ({
|
|
25054
24984
|
refs: e,
|
|
25055
24985
|
dataToSubmit: t,
|
|
25056
24986
|
createAccount: n,
|
|
@@ -25064,9 +24994,9 @@ const l_ = ({
|
|
|
25064
24994
|
e.hiddenValidation && e.hiddenValidation.current && e.hiddenValidation.current.click();
|
|
25065
24995
|
return;
|
|
25066
24996
|
}
|
|
25067
|
-
const s =
|
|
24997
|
+
const s = l_(new FormData(e.form.current)), o = Object.assign(s, t);
|
|
25068
24998
|
await n(o), localStorage.setItem("email", s.email), r && r({ ...s, ...a.values }), i([{ type: "showSuccessMessage", value: !0 }]);
|
|
25069
|
-
},
|
|
24999
|
+
}, d_ = ({
|
|
25070
25000
|
shouldShow: e,
|
|
25071
25001
|
placeholders: t,
|
|
25072
25002
|
labels: n,
|
|
@@ -25227,15 +25157,15 @@ const l_ = ({
|
|
|
25227
25157
|
"data-testid": "signup-terms-checkbox"
|
|
25228
25158
|
}), h;
|
|
25229
25159
|
};
|
|
25230
|
-
const
|
|
25160
|
+
const f_ = ({ className: e = "" }) => /* @__PURE__ */ c.jsxs(
|
|
25231
25161
|
"div",
|
|
25232
25162
|
{
|
|
25233
25163
|
className: V("success-message", e),
|
|
25234
25164
|
"data-testid": "success-message",
|
|
25235
25165
|
children: [
|
|
25236
|
-
/* @__PURE__ */ c.jsx("p", { className: "success-title", children: /* @__PURE__ */ c.jsx(
|
|
25166
|
+
/* @__PURE__ */ c.jsx("p", { className: "success-title", children: /* @__PURE__ */ c.jsx(ft, { id: "signup_success_title" }) }),
|
|
25237
25167
|
/* @__PURE__ */ c.jsx(
|
|
25238
|
-
|
|
25168
|
+
ft,
|
|
25239
25169
|
{
|
|
25240
25170
|
id: "signup_success_text",
|
|
25241
25171
|
values: {
|
|
@@ -25246,7 +25176,7 @@ const m_ = ({ className: e = "" }) => /* @__PURE__ */ c.jsxs(
|
|
|
25246
25176
|
]
|
|
25247
25177
|
}
|
|
25248
25178
|
);
|
|
25249
|
-
const
|
|
25179
|
+
const m_ = {
|
|
25250
25180
|
validFields: {
|
|
25251
25181
|
name: !1,
|
|
25252
25182
|
email: !1,
|
|
@@ -25259,7 +25189,7 @@ const h_ = {
|
|
|
25259
25189
|
loadRecaptcha: !1,
|
|
25260
25190
|
showSuccessMessage: !1,
|
|
25261
25191
|
showError: !1
|
|
25262
|
-
},
|
|
25192
|
+
}, tF = ({
|
|
25263
25193
|
className: e = "",
|
|
25264
25194
|
labels: t = {},
|
|
25265
25195
|
placeholders: n = {},
|
|
@@ -25287,7 +25217,7 @@ const h_ = {
|
|
|
25287
25217
|
url: m,
|
|
25288
25218
|
logInButton: h,
|
|
25289
25219
|
successMessage: p
|
|
25290
|
-
}, [f, b] = yr(ha,
|
|
25220
|
+
}, [f, b] = yr(ha, m_), {
|
|
25291
25221
|
validFields: g,
|
|
25292
25222
|
emailDetails: y,
|
|
25293
25223
|
shouldManuallyApprove: w,
|
|
@@ -25316,7 +25246,7 @@ const h_ = {
|
|
|
25316
25246
|
maxAge: 3600
|
|
25317
25247
|
});
|
|
25318
25248
|
}, [C]);
|
|
25319
|
-
const L = Xt(() =>
|
|
25249
|
+
const L = Xt(() => d_({
|
|
25320
25250
|
placeholders: n,
|
|
25321
25251
|
labels: t,
|
|
25322
25252
|
shouldShow: v,
|
|
@@ -25327,13 +25257,13 @@ const h_ = {
|
|
|
25327
25257
|
dataToSubmit: s,
|
|
25328
25258
|
intl: l
|
|
25329
25259
|
}), [s, r, l, O, v, f]), R = F ? !0 : w ? !Object.values(g).every((A) => A === !0) : !g.name || !g.email || ["exists", "pending", "verify"].includes(y.boxType);
|
|
25330
|
-
return v.successMessage && C ? /* @__PURE__ */ c.jsx(
|
|
25260
|
+
return v.successMessage && C ? /* @__PURE__ */ c.jsx(f_, { className: e }) : /* @__PURE__ */ c.jsxs(
|
|
25331
25261
|
"fieldset",
|
|
25332
25262
|
{
|
|
25333
25263
|
className: V("signup-form-fieldset", e),
|
|
25334
25264
|
"data-testid": "signup-form",
|
|
25335
25265
|
children: [
|
|
25336
|
-
v.title && /* @__PURE__ */ c.jsx("p", { className: "signup-title", children: /* @__PURE__ */ c.jsx(
|
|
25266
|
+
v.title && /* @__PURE__ */ c.jsx("p", { className: "signup-title", children: /* @__PURE__ */ c.jsx(ft, { id: "signup_title" }) }),
|
|
25337
25267
|
E && /* @__PURE__ */ c.jsx(
|
|
25338
25268
|
Vn,
|
|
25339
25269
|
{
|
|
@@ -25378,7 +25308,7 @@ const h_ = {
|
|
|
25378
25308
|
},
|
|
25379
25309
|
functions: {
|
|
25380
25310
|
onSuccess: async () => {
|
|
25381
|
-
await
|
|
25311
|
+
await c_({
|
|
25382
25312
|
refs: O,
|
|
25383
25313
|
dataToSubmit: s,
|
|
25384
25314
|
createAccount: r.createAccount,
|
|
@@ -25420,7 +25350,7 @@ const Hn = ({
|
|
|
25420
25350
|
}
|
|
25421
25351
|
);
|
|
25422
25352
|
};
|
|
25423
|
-
const
|
|
25353
|
+
const nF = ({ text: e, buttons: t, className: n = "" }) => {
|
|
25424
25354
|
const r = [];
|
|
25425
25355
|
return t.forEach((i) => {
|
|
25426
25356
|
r.push({
|
|
@@ -25453,7 +25383,7 @@ const ao = "editSection_";
|
|
|
25453
25383
|
function km({ href: e, setShowModal: t }) {
|
|
25454
25384
|
typeof e != "string" && t(!0);
|
|
25455
25385
|
}
|
|
25456
|
-
const
|
|
25386
|
+
const h_ = ({
|
|
25457
25387
|
icon: e,
|
|
25458
25388
|
description: t,
|
|
25459
25389
|
ctaMessage: n,
|
|
@@ -25475,7 +25405,7 @@ const p_ = ({
|
|
|
25475
25405
|
}
|
|
25476
25406
|
) })
|
|
25477
25407
|
] });
|
|
25478
|
-
},
|
|
25408
|
+
}, rF = ({
|
|
25479
25409
|
children: e,
|
|
25480
25410
|
className: t = "",
|
|
25481
25411
|
formProps: n,
|
|
@@ -25552,7 +25482,7 @@ const p_ = ({
|
|
|
25552
25482
|
)
|
|
25553
25483
|
] }),
|
|
25554
25484
|
e || /* @__PURE__ */ c.jsx(
|
|
25555
|
-
|
|
25485
|
+
h_,
|
|
25556
25486
|
{
|
|
25557
25487
|
...l,
|
|
25558
25488
|
href: i,
|
|
@@ -25563,7 +25493,7 @@ const p_ = ({
|
|
|
25563
25493
|
u && /* @__PURE__ */ c.jsx(tn, {})
|
|
25564
25494
|
] });
|
|
25565
25495
|
};
|
|
25566
|
-
const
|
|
25496
|
+
const iF = ({
|
|
25567
25497
|
title: e = !1,
|
|
25568
25498
|
text: t,
|
|
25569
25499
|
logos: n = [],
|
|
@@ -25623,7 +25553,7 @@ const aF = ({
|
|
|
25623
25553
|
);
|
|
25624
25554
|
};
|
|
25625
25555
|
let ys;
|
|
25626
|
-
const xs = "contactFooter_",
|
|
25556
|
+
const xs = "contactFooter_", aF = ({ onSuccess: e = async () => {
|
|
25627
25557
|
}, onFailure: t = () => {
|
|
25628
25558
|
} }) => {
|
|
25629
25559
|
const n = Be(null), [r, i] = ie.useState(0), [a, s] = ie.useState(!1), o = () => {
|
|
@@ -25636,7 +25566,7 @@ const xs = "contactFooter_", sF = ({ onSuccess: e = async () => {
|
|
|
25636
25566
|
return fe(() => (o(), window.addEventListener("resize", l), () => {
|
|
25637
25567
|
clearTimeout(ys), window.removeEventListener("resize", l);
|
|
25638
25568
|
}), []), /* @__PURE__ */ c.jsx(Hn, { id: "contactForm", className: "contact-footer", children: /* @__PURE__ */ c.jsxs("div", { className: "inner-wrapper", children: [
|
|
25639
|
-
/* @__PURE__ */ c.jsx("h2", { children: /* @__PURE__ */ c.jsx(
|
|
25569
|
+
/* @__PURE__ */ c.jsx("h2", { children: /* @__PURE__ */ c.jsx(ft, { id: `${xs}title` }) }),
|
|
25640
25570
|
/* @__PURE__ */ c.jsxs(
|
|
25641
25571
|
"div",
|
|
25642
25572
|
{
|
|
@@ -25646,8 +25576,8 @@ const xs = "contactFooter_", sF = ({ onSuccess: e = async () => {
|
|
|
25646
25576
|
style: a ? {} : { minHeight: r },
|
|
25647
25577
|
children: [
|
|
25648
25578
|
/* @__PURE__ */ c.jsxs("aside", { children: [
|
|
25649
|
-
/* @__PURE__ */ c.jsx("p", { children: /* @__PURE__ */ c.jsx(
|
|
25650
|
-
/* @__PURE__ */ c.jsx(Un, { className: "mailto-link", href: "mailto:hello@apolitical.co", children: /* @__PURE__ */ c.jsx(
|
|
25579
|
+
/* @__PURE__ */ c.jsx("p", { children: /* @__PURE__ */ c.jsx(ft, { id: `${xs}text` }) }),
|
|
25580
|
+
/* @__PURE__ */ c.jsx(Un, { className: "mailto-link", href: "mailto:hello@apolitical.co", children: /* @__PURE__ */ c.jsx(ft, { id: `${xs}email` }) })
|
|
25651
25581
|
] }),
|
|
25652
25582
|
/* @__PURE__ */ c.jsx(
|
|
25653
25583
|
r_,
|
|
@@ -25660,7 +25590,7 @@ const xs = "contactFooter_", sF = ({ onSuccess: e = async () => {
|
|
|
25660
25590
|
}
|
|
25661
25591
|
)
|
|
25662
25592
|
] }) });
|
|
25663
|
-
},
|
|
25593
|
+
}, sF = ({ activeLink: e, profile: t, ...n }) => /* @__PURE__ */ c.jsx(Hn, { children: /* @__PURE__ */ c.jsx(Dv, { layout: "1-3", children: /* @__PURE__ */ c.jsxs(c.Fragment, { children: [
|
|
25664
25594
|
/* @__PURE__ */ c.jsx(bv, { activeLink: e, profile: t }),
|
|
25665
25595
|
/* @__PURE__ */ c.jsx(Uh, { ...n })
|
|
25666
25596
|
] }) }) });
|
|
@@ -25668,7 +25598,7 @@ const ws = "cookieBanner_", Ds = [
|
|
|
25668
25598
|
"apol-cookie-banner",
|
|
25669
25599
|
"apolitical-performance-cookie-consent",
|
|
25670
25600
|
"functional-cookie-consent"
|
|
25671
|
-
], Cs = new Date(Date.now() + 12 * 30 * 24 * 60 * 60 * 1e3),
|
|
25601
|
+
], Cs = new Date(Date.now() + 12 * 30 * 24 * 60 * 60 * 1e3), p_ = () => {
|
|
25672
25602
|
const e = de(), [t, n, r] = nd(Ds), [i, a] = ce(
|
|
25673
25603
|
!t["apol-cookie-banner"]
|
|
25674
25604
|
), s = () => {
|
|
@@ -25826,7 +25756,7 @@ const or = "footer_", ca = "SiteFooter", Yc = ({ group: e }) => {
|
|
|
25826
25756
|
const t = on[e].order || [];
|
|
25827
25757
|
let n = !1;
|
|
25828
25758
|
return "text" in on[e] && (n = on[e].text), /* @__PURE__ */ c.jsxs(Kr, { children: [
|
|
25829
|
-
/* @__PURE__ */ c.jsx("p", { className: "pre-title", children: /* @__PURE__ */ c.jsx(
|
|
25759
|
+
/* @__PURE__ */ c.jsx("p", { className: "pre-title", children: /* @__PURE__ */ c.jsx(ft, { id: `${or}${e}` }) }),
|
|
25830
25760
|
Array.isArray(t) && t.length > 0 && /* @__PURE__ */ c.jsx("ul", { className: "text-medium", children: t.map((r) => {
|
|
25831
25761
|
if (["order", "child", "text"].includes(r))
|
|
25832
25762
|
return null;
|
|
@@ -25839,15 +25769,15 @@ const or = "footer_", ca = "SiteFooter", Yc = ({ group: e }) => {
|
|
|
25839
25769
|
"data-gtm-event-context": ca,
|
|
25840
25770
|
"data-gtm-event-type": a,
|
|
25841
25771
|
...s,
|
|
25842
|
-
children: /* @__PURE__ */ c.jsx(
|
|
25772
|
+
children: /* @__PURE__ */ c.jsx(ft, { id: `${or}${e}_${r}` })
|
|
25843
25773
|
}
|
|
25844
25774
|
) }, `${e}_${r}`);
|
|
25845
25775
|
}) }),
|
|
25846
25776
|
typeof n != "boolean" && "order" in n && Array.isArray(n.order) && /* @__PURE__ */ c.jsx("dl", { className: "text-medium", children: n.order.map((r) => /* @__PURE__ */ c.jsxs(Kr, { children: [
|
|
25847
|
-
/* @__PURE__ */ c.jsx("dt", { children: /* @__PURE__ */ c.jsx(
|
|
25777
|
+
/* @__PURE__ */ c.jsx("dt", { children: /* @__PURE__ */ c.jsx(ft, { id: `${or}${e}_${r}` }) }),
|
|
25848
25778
|
/* @__PURE__ */ c.jsxs("dd", { children: [
|
|
25849
25779
|
typeof n != "boolean" && n[r].address && /* @__PURE__ */ c.jsx("address", { children: /* @__PURE__ */ c.jsx(
|
|
25850
|
-
|
|
25780
|
+
ft,
|
|
25851
25781
|
{
|
|
25852
25782
|
id: `${or}${e}_${r}_address`,
|
|
25853
25783
|
values: { br: /* @__PURE__ */ c.jsx("br", {}) }
|
|
@@ -25895,12 +25825,12 @@ const or = "footer_", ca = "SiteFooter", Yc = ({ group: e }) => {
|
|
|
25895
25825
|
className: "gtm-trackable",
|
|
25896
25826
|
"data-gtm-event-context": ca,
|
|
25897
25827
|
"data-gtm-event-type": "social-click",
|
|
25898
|
-
children: /* @__PURE__ */ c.jsx("span", { className: "hidden", children: /* @__PURE__ */ c.jsx(
|
|
25828
|
+
children: /* @__PURE__ */ c.jsx("span", { className: "hidden", children: /* @__PURE__ */ c.jsx(ft, { id: `${or}social_${e}` }) })
|
|
25899
25829
|
}
|
|
25900
25830
|
) }, e);
|
|
25901
25831
|
}) }),
|
|
25902
25832
|
/* @__PURE__ */ c.jsx("small", { children: /* @__PURE__ */ c.jsx(
|
|
25903
|
-
|
|
25833
|
+
ft,
|
|
25904
25834
|
{
|
|
25905
25835
|
id: `${or}copyright`,
|
|
25906
25836
|
values: { currentYear: (/* @__PURE__ */ new Date()).getFullYear() }
|
|
@@ -26247,10 +26177,10 @@ const or = "footer_", ca = "SiteFooter", Yc = ({ group: e }) => {
|
|
|
26247
26177
|
e
|
|
26248
26178
|
);
|
|
26249
26179
|
};
|
|
26250
|
-
const
|
|
26180
|
+
const g_ = { height: 67, height_desktop: 83 };
|
|
26251
26181
|
var Ot = /* @__PURE__ */ ((e) => (e.NAVIGATION = "navigation", e.SEARCH = "search", e.ACCOUNT = "account-navigation", e.SITE = "site-navigation", e))(Ot || {});
|
|
26252
26182
|
const Am = ({ showNavigation: e = !0 }) => {
|
|
26253
|
-
const t = de(), n = Ie(
|
|
26183
|
+
const t = de(), n = Ie(mt), r = xr(!0, !0), i = n && typeof n.id == "string", a = Xt(
|
|
26254
26184
|
() => Ze.getIsDesktopVersion(i, r),
|
|
26255
26185
|
[i, r]
|
|
26256
26186
|
), [s, o] = yr(ha, {
|
|
@@ -26268,7 +26198,7 @@ const Am = ({ showNavigation: e = !0 }) => {
|
|
|
26268
26198
|
fe(() => {
|
|
26269
26199
|
m.current = s;
|
|
26270
26200
|
}, [s]), oh({
|
|
26271
|
-
scrollPosition:
|
|
26201
|
+
scrollPosition: g_[`height${a.navigation ? "_desktop" : ""}`],
|
|
26272
26202
|
callbacks: {
|
|
26273
26203
|
scrollUp: () => {
|
|
26274
26204
|
const g = m.current.menus;
|
|
@@ -26357,7 +26287,7 @@ const Am = ({ showNavigation: e = !0 }) => {
|
|
|
26357
26287
|
}
|
|
26358
26288
|
),
|
|
26359
26289
|
/* @__PURE__ */ c.jsx(
|
|
26360
|
-
|
|
26290
|
+
u_,
|
|
26361
26291
|
{
|
|
26362
26292
|
id: "global-search",
|
|
26363
26293
|
handleToggle: {
|
|
@@ -26526,7 +26456,7 @@ const Am = ({ showNavigation: e = !0 }) => {
|
|
|
26526
26456
|
)
|
|
26527
26457
|
] });
|
|
26528
26458
|
};
|
|
26529
|
-
const
|
|
26459
|
+
const v_ = () => {
|
|
26530
26460
|
const e = de();
|
|
26531
26461
|
return /* @__PURE__ */ c.jsxs(c.Fragment, { children: [
|
|
26532
26462
|
/* @__PURE__ */ c.jsx(Am, {}),
|
|
@@ -26539,7 +26469,7 @@ const b_ = () => {
|
|
|
26539
26469
|
) }),
|
|
26540
26470
|
/* @__PURE__ */ c.jsx(Fm, {})
|
|
26541
26471
|
] });
|
|
26542
|
-
},
|
|
26472
|
+
}, b_ = ({
|
|
26543
26473
|
children: e,
|
|
26544
26474
|
additionalContent: { prepended: t, appended: n } = {},
|
|
26545
26475
|
reportError: r,
|
|
@@ -26567,7 +26497,7 @@ const b_ = () => {
|
|
|
26567
26497
|
}), F = Mi(n, {
|
|
26568
26498
|
locale: o
|
|
26569
26499
|
}), C = {};
|
|
26570
|
-
return d !== "default" && (C[d] = !0), m !== "default" && (C[m] = !0), h !== "default" && (C[h] = !0), /* @__PURE__ */ c.jsx(Gm, { onError: r, fallback: /* @__PURE__ */ c.jsx(
|
|
26500
|
+
return d !== "default" && (C[d] = !0), m !== "default" && (C[m] = !0), h !== "default" && (C[h] = !0), /* @__PURE__ */ c.jsx(Gm, { onError: r, fallback: /* @__PURE__ */ c.jsx(v_, {}), children: /* @__PURE__ */ c.jsxs(ed, { fallback: null, children: [
|
|
26571
26501
|
/* @__PURE__ */ c.jsxs(
|
|
26572
26502
|
"div",
|
|
26573
26503
|
{
|
|
@@ -26593,7 +26523,7 @@ const b_ = () => {
|
|
|
26593
26523
|
] }),
|
|
26594
26524
|
F && /* @__PURE__ */ c.jsx("div", { className: "additional-content appended", children: F }),
|
|
26595
26525
|
u && /* @__PURE__ */ c.jsx(Fm, {}),
|
|
26596
|
-
/* @__PURE__ */ c.jsx(
|
|
26526
|
+
/* @__PURE__ */ c.jsx(p_, {})
|
|
26597
26527
|
]
|
|
26598
26528
|
}
|
|
26599
26529
|
),
|
|
@@ -26626,7 +26556,7 @@ const b_ = () => {
|
|
|
26626
26556
|
WorkAndTheEconomy: "work-and-the-economy"
|
|
26627
26557
|
},
|
|
26628
26558
|
"from the community": "community"
|
|
26629
|
-
},
|
|
26559
|
+
}, y_ = {
|
|
26630
26560
|
getTagDetails: (e) => {
|
|
26631
26561
|
if (e.includes("topic_")) {
|
|
26632
26562
|
if (e = Es.topic[e.replace("topic_", "")], e) {
|
|
@@ -26638,7 +26568,7 @@ const b_ = () => {
|
|
|
26638
26568
|
return Es[e] ? (e = Es[e], { id: e, text: `${Gc.default}${e}` }) : null;
|
|
26639
26569
|
}
|
|
26640
26570
|
};
|
|
26641
|
-
const
|
|
26571
|
+
const oF = ({
|
|
26642
26572
|
tags: e = [],
|
|
26643
26573
|
color: t = "default",
|
|
26644
26574
|
forceOneLine: n = !1,
|
|
@@ -26654,7 +26584,7 @@ const uF = ({
|
|
|
26654
26584
|
return e.forEach((u) => {
|
|
26655
26585
|
if (!u)
|
|
26656
26586
|
return;
|
|
26657
|
-
const d =
|
|
26587
|
+
const d = y_.getTagDetails(u);
|
|
26658
26588
|
d && l.push(d);
|
|
26659
26589
|
}), l.length < 1 ? null : /* @__PURE__ */ c.jsx(
|
|
26660
26590
|
"ul",
|
|
@@ -26678,7 +26608,7 @@ const uF = ({
|
|
|
26678
26608
|
}
|
|
26679
26609
|
);
|
|
26680
26610
|
};
|
|
26681
|
-
const
|
|
26611
|
+
const x_ = 25, w_ = ({
|
|
26682
26612
|
members: { data: e = [], total: t = e.length },
|
|
26683
26613
|
communitySlug: n,
|
|
26684
26614
|
isMember: r = !1,
|
|
@@ -26692,7 +26622,7 @@ const w_ = 25, D_ = ({
|
|
|
26692
26622
|
showPlaceholders: d = !1,
|
|
26693
26623
|
className: m = ""
|
|
26694
26624
|
}) => {
|
|
26695
|
-
const h = de(), p = "membersList", v = Ie(
|
|
26625
|
+
const h = de(), p = "membersList", v = Ie(mt), [f, b] = ce(!1);
|
|
26696
26626
|
return e.length === 0 && !d ? null : /* @__PURE__ */ c.jsxs("div", { className: V("members-list", m), children: [
|
|
26697
26627
|
u ? /* @__PURE__ */ c.jsxs("h1", { children: [
|
|
26698
26628
|
h.formatMessage({ id: p }),
|
|
@@ -26757,7 +26687,7 @@ const w_ = 25, D_ = ({
|
|
|
26757
26687
|
),
|
|
26758
26688
|
g.isAdmin && /* @__PURE__ */ c.jsx(cn, { children: h.formatMessage({ id: `${p}_admin` }) })
|
|
26759
26689
|
] }, y)),
|
|
26760
|
-
d && e.length === 0 && t > 0 ? [...new Array(Math.min(t,
|
|
26690
|
+
d && e.length === 0 && t > 0 ? [...new Array(Math.min(t, x_))].map((g, y) => /* @__PURE__ */ c.jsx("li", { children: /* @__PURE__ */ c.jsx(go, { layout: "member" }) }, y)) : /* @__PURE__ */ c.jsx(c.Fragment, {})
|
|
26761
26691
|
] }),
|
|
26762
26692
|
i && /* @__PURE__ */ c.jsx(
|
|
26763
26693
|
pa,
|
|
@@ -26782,7 +26712,7 @@ const w_ = 25, D_ = ({
|
|
|
26782
26712
|
}
|
|
26783
26713
|
) : /* @__PURE__ */ c.jsx(c.Fragment, {})
|
|
26784
26714
|
] });
|
|
26785
|
-
},
|
|
26715
|
+
}, D_ = w_, C_ = ({ intlPath: e, showGuidelines: t, type: n, gtmContext: r }) => {
|
|
26786
26716
|
const i = de();
|
|
26787
26717
|
return t ? /* @__PURE__ */ c.jsx("small", { children: Wt(i.formatMessage, `${e}explainer`, n, "action", {
|
|
26788
26718
|
a: (a) => /* @__PURE__ */ c.jsx(
|
|
@@ -26798,7 +26728,7 @@ const w_ = 25, D_ = ({
|
|
|
26798
26728
|
}
|
|
26799
26729
|
)
|
|
26800
26730
|
}) }) : /* @__PURE__ */ c.jsx(c.Fragment, {});
|
|
26801
|
-
},
|
|
26731
|
+
}, E_ = ({ intlPath: e, type: t, ...n }) => {
|
|
26802
26732
|
const r = de();
|
|
26803
26733
|
return /* @__PURE__ */ c.jsx(
|
|
26804
26734
|
fm,
|
|
@@ -26815,7 +26745,7 @@ const w_ = 25, D_ = ({
|
|
|
26815
26745
|
...n
|
|
26816
26746
|
}
|
|
26817
26747
|
);
|
|
26818
|
-
}, Qc = 5, Jc = 2,
|
|
26748
|
+
}, Qc = 5, Jc = 2, __ = (e) => {
|
|
26819
26749
|
var r;
|
|
26820
26750
|
let t = 0;
|
|
26821
26751
|
const n = [];
|
|
@@ -26851,7 +26781,7 @@ const tt = "discussion_form_", Ca = ({
|
|
|
26851
26781
|
gtmContext: m = "DiscussionForm"
|
|
26852
26782
|
}) => {
|
|
26853
26783
|
var K, ae, ye;
|
|
26854
|
-
const h = de(), p = Ie(
|
|
26784
|
+
const h = de(), p = Ie(mt), [v, f] = ce(
|
|
26855
26785
|
n.type
|
|
26856
26786
|
), [b, g] = ce(""), {
|
|
26857
26787
|
isLoading: y = !1,
|
|
@@ -26943,7 +26873,7 @@ const tt = "discussion_form_", Ca = ({
|
|
|
26943
26873
|
});
|
|
26944
26874
|
break;
|
|
26945
26875
|
case je.Poll:
|
|
26946
|
-
_e = await re(
|
|
26876
|
+
_e = await re(__(oe));
|
|
26947
26877
|
break;
|
|
26948
26878
|
case je.Question:
|
|
26949
26879
|
_e = await U({
|
|
@@ -26985,7 +26915,7 @@ const tt = "discussion_form_", Ca = ({
|
|
|
26985
26915
|
}), f(je.Post), be((Ae) => ({ ...Ae, status: "submitted" })), g(
|
|
26986
26916
|
Wt(h.formatMessage, `${tt}success`, v, "action")
|
|
26987
26917
|
);
|
|
26988
|
-
const ge = new Event(
|
|
26918
|
+
const ge = new Event(lt.DISCUSSION_FORM_SUBMITTED);
|
|
26989
26919
|
document.dispatchEvent(ge), Te();
|
|
26990
26920
|
}, 850), _e;
|
|
26991
26921
|
} catch (_e) {
|
|
@@ -27072,7 +27002,7 @@ const tt = "discussion_form_", Ca = ({
|
|
|
27072
27002
|
}
|
|
27073
27003
|
) : Le.push(
|
|
27074
27004
|
{
|
|
27075
|
-
component:
|
|
27005
|
+
component: E_,
|
|
27076
27006
|
props: {
|
|
27077
27007
|
formID: xe,
|
|
27078
27008
|
intlPath: tt,
|
|
@@ -27107,7 +27037,7 @@ const tt = "discussion_form_", Ca = ({
|
|
|
27107
27037
|
}
|
|
27108
27038
|
},
|
|
27109
27039
|
{
|
|
27110
|
-
component:
|
|
27040
|
+
component: C_,
|
|
27111
27041
|
props: {
|
|
27112
27042
|
intlPath: tt,
|
|
27113
27043
|
showGuidelines: R,
|
|
@@ -27253,19 +27183,19 @@ const tt = "discussion_form_", Ca = ({
|
|
|
27253
27183
|
) : Y }),
|
|
27254
27184
|
b && /* @__PURE__ */ c.jsx(ze, { "aria-live": "polite", showOnFocus: !1, children: b })
|
|
27255
27185
|
] });
|
|
27256
|
-
},
|
|
27186
|
+
}, k_ = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
27257
27187
|
__proto__: null,
|
|
27258
27188
|
default: Ca
|
|
27259
27189
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
27260
|
-
const
|
|
27190
|
+
const F_ = {
|
|
27261
27191
|
showForm: !1
|
|
27262
|
-
}, eu = Tt(
|
|
27192
|
+
}, eu = Tt(F_), A_ = ({ children: e }) => {
|
|
27263
27193
|
const [t, n] = ce({
|
|
27264
27194
|
showForm: !1
|
|
27265
27195
|
});
|
|
27266
27196
|
return /* @__PURE__ */ c.jsx(eu.Provider, { value: { ...t, updateConversation: n }, children: e });
|
|
27267
27197
|
};
|
|
27268
|
-
function
|
|
27198
|
+
function B_({
|
|
27269
27199
|
author: e,
|
|
27270
27200
|
originalAuthorId: t,
|
|
27271
27201
|
createdAt: n,
|
|
@@ -27313,12 +27243,12 @@ const _s = ({
|
|
|
27313
27243
|
};
|
|
27314
27244
|
return /* @__PURE__ */ c.jsx("blockquote", { ...r, children: e });
|
|
27315
27245
|
};
|
|
27316
|
-
function
|
|
27246
|
+
function T_({ content: e }) {
|
|
27317
27247
|
var t;
|
|
27318
27248
|
return !e || !((t = e.categories) != null && t.length) ? /* @__PURE__ */ c.jsx(c.Fragment, {}) : /* @__PURE__ */ c.jsx("ul", { className: "categories-list", children: e.categories.map((n) => !n.slug || !n.name ? /* @__PURE__ */ c.jsx(c.Fragment, {}) : /* @__PURE__ */ c.jsx(cn, { size: "small", element: "li", children: n.name }, n.slug)) });
|
|
27319
27249
|
}
|
|
27320
27250
|
var so = /* @__PURE__ */ ((e) => (e.Always = "always", e.AfterVoting = "after-voting", e))(so || {});
|
|
27321
|
-
const
|
|
27251
|
+
const S_ = (e, t, n) => n === void 0 ? 0 : e.some((i) => i.hasUserVoted) ? t ? e.findIndex((i) => !i.hasUserVoted) : e.findIndex((i) => i.hasUserVoted) : 0, j_ = (e, t, n, r = 0) => {
|
|
27322
27252
|
if (!e)
|
|
27323
27253
|
return { nextElement: null, nextIndex: 0 };
|
|
27324
27254
|
let i = n === "next" ? e.nextElementSibling : e.previousElementSibling, a = r + (n === "next" ? 1 : -1);
|
|
@@ -27336,7 +27266,7 @@ const j_ = (e, t, n) => n === void 0 ? 0 : e.some((i) => i.hasUserVoted) ? t ? e
|
|
|
27336
27266
|
}
|
|
27337
27267
|
return { nextElement: null, nextIndex: 0 };
|
|
27338
27268
|
};
|
|
27339
|
-
const
|
|
27269
|
+
const O_ = ({
|
|
27340
27270
|
user: e,
|
|
27341
27271
|
option: t,
|
|
27342
27272
|
optionIndex: n,
|
|
@@ -27378,7 +27308,7 @@ const P_ = ({
|
|
|
27378
27308
|
case "ArrowUp":
|
|
27379
27309
|
case "ArrowDown":
|
|
27380
27310
|
g.stopPropagation(), g.preventDefault();
|
|
27381
|
-
const w = g.code === "ArrowUp" ? "prev" : "next", { nextElement: F, nextIndex: C } =
|
|
27311
|
+
const w = g.code === "ArrowUp" ? "prev" : "next", { nextElement: F, nextIndex: C } = j_(
|
|
27382
27312
|
g.currentTarget.parentElement,
|
|
27383
27313
|
"selected",
|
|
27384
27314
|
w,
|
|
@@ -27427,13 +27357,13 @@ const P_ = ({
|
|
|
27427
27357
|
}
|
|
27428
27358
|
);
|
|
27429
27359
|
};
|
|
27430
|
-
const
|
|
27431
|
-
const i = "poll_", a = de(), s = Ie(
|
|
27360
|
+
const P_ = ({ title: e, options: t, settings: n, functions: r }) => {
|
|
27361
|
+
const i = "poll_", a = de(), s = Ie(mt), {
|
|
27432
27362
|
showRemoveVote: o = !1,
|
|
27433
27363
|
allowMultipleVotes: l = !1,
|
|
27434
27364
|
resultsVisibility: u = so.AfterVoting
|
|
27435
27365
|
} = n || {}, [d, m] = ce(
|
|
27436
|
-
|
|
27366
|
+
S_(t, l, s == null ? void 0 : s.id)
|
|
27437
27367
|
), h = t.reduce((g, y) => g + y.numVotes, 0), p = t.filter((g) => g.hasUserVoted).length, v = t.filter((g) => g.hasUserVoted), f = $e(async (g) => {
|
|
27438
27368
|
await r.createVote({ reactionId: g.id });
|
|
27439
27369
|
}, []), b = $e(async () => {
|
|
@@ -27464,7 +27394,7 @@ const N_ = ({ title: e, options: t, settings: n, functions: r }) => {
|
|
|
27464
27394
|
) })
|
|
27465
27395
|
] }),
|
|
27466
27396
|
t && /* @__PURE__ */ c.jsx("form", { children: /* @__PURE__ */ c.jsx("fieldset", { children: /* @__PURE__ */ c.jsx("ul", { className: "poll-options", children: t == null ? void 0 : t.map((g, y) => /* @__PURE__ */ c.jsx(
|
|
27467
|
-
|
|
27397
|
+
O_,
|
|
27468
27398
|
{
|
|
27469
27399
|
isTabbable: d === y,
|
|
27470
27400
|
user: s,
|
|
@@ -27487,13 +27417,13 @@ const N_ = ({ title: e, options: t, settings: n, functions: r }) => {
|
|
|
27487
27417
|
] })
|
|
27488
27418
|
] });
|
|
27489
27419
|
};
|
|
27490
|
-
function
|
|
27420
|
+
function N_({
|
|
27491
27421
|
content: e,
|
|
27492
27422
|
contentData: t,
|
|
27493
27423
|
functions: n
|
|
27494
27424
|
}) {
|
|
27495
27425
|
return /* @__PURE__ */ c.jsx(
|
|
27496
|
-
|
|
27426
|
+
P_,
|
|
27497
27427
|
{
|
|
27498
27428
|
title: t.title,
|
|
27499
27429
|
options: (e == null ? void 0 : e.pollOptions) || [],
|
|
@@ -27505,7 +27435,7 @@ function M_({
|
|
|
27505
27435
|
}
|
|
27506
27436
|
);
|
|
27507
27437
|
}
|
|
27508
|
-
function
|
|
27438
|
+
function M_({
|
|
27509
27439
|
links: e = {},
|
|
27510
27440
|
contentData: t,
|
|
27511
27441
|
postCutOff: n,
|
|
@@ -27551,7 +27481,7 @@ function R_({
|
|
|
27551
27481
|
(i = t.data) != null && i.link ? /* @__PURE__ */ c.jsx(Hd, { data: t.data.link }) : /* @__PURE__ */ c.jsx(c.Fragment, {})
|
|
27552
27482
|
] });
|
|
27553
27483
|
}
|
|
27554
|
-
const Vt = "discussion_",
|
|
27484
|
+
const Vt = "discussion_", R_ = 195;
|
|
27555
27485
|
let ji = null;
|
|
27556
27486
|
const Ea = ({
|
|
27557
27487
|
element: e = "div",
|
|
@@ -27575,7 +27505,7 @@ const Ea = ({
|
|
|
27575
27505
|
locale: y = "en"
|
|
27576
27506
|
}) => {
|
|
27577
27507
|
var K, ae, ye, oe, we, _e;
|
|
27578
|
-
const w = de(), F = Ie(eu), C = Ie(
|
|
27508
|
+
const w = de(), F = Ie(eu), C = Ie(mt), {
|
|
27579
27509
|
createContent: E = async () => {
|
|
27580
27510
|
},
|
|
27581
27511
|
deleteContent: B = async () => {
|
|
@@ -27620,9 +27550,9 @@ const Ea = ({
|
|
|
27620
27550
|
fe(() => {
|
|
27621
27551
|
const ge = te.current;
|
|
27622
27552
|
if (!(!ge || xe === "default"))
|
|
27623
|
-
return document.addEventListener(
|
|
27553
|
+
return document.addEventListener(lt.DISCUSSION_FORM_SUBMITTED, Ve), ge.addEventListener("transitionend", We), () => {
|
|
27624
27554
|
document.removeEventListener(
|
|
27625
|
-
|
|
27555
|
+
lt.DISCUSSION_FORM_SUBMITTED,
|
|
27626
27556
|
Ve
|
|
27627
27557
|
), ge.removeEventListener("transitionend", We);
|
|
27628
27558
|
};
|
|
@@ -27642,7 +27572,7 @@ const Ea = ({
|
|
|
27642
27572
|
z == null ? void 0 : z.mentions,
|
|
27643
27573
|
k
|
|
27644
27574
|
);
|
|
27645
|
-
J((
|
|
27575
|
+
J((ct) => ({ ...ct, postBody: Ae }));
|
|
27646
27576
|
})();
|
|
27647
27577
|
}, [se.body, z == null ? void 0 : z.mentions]);
|
|
27648
27578
|
const Ve = () => {
|
|
@@ -27654,7 +27584,7 @@ const Ea = ({
|
|
|
27654
27584
|
}, 1e3);
|
|
27655
27585
|
}, We = ({ propertyName: ge }) => {
|
|
27656
27586
|
ge === "background-color" && Oe((Ae) => (Ae === "default" && (document.removeEventListener(
|
|
27657
|
-
|
|
27587
|
+
lt.DISCUSSION_FORM_SUBMITTED,
|
|
27658
27588
|
Ve
|
|
27659
27589
|
), te.current && te.current.removeEventListener("transitionend", We)), Ae === "fading" ? "default" : Ae));
|
|
27660
27590
|
};
|
|
@@ -27663,19 +27593,19 @@ const Ea = ({
|
|
|
27663
27593
|
const Qe = async ({
|
|
27664
27594
|
title: ge,
|
|
27665
27595
|
body: Ae,
|
|
27666
|
-
data:
|
|
27596
|
+
data: ct
|
|
27667
27597
|
}) => {
|
|
27668
27598
|
ge || (ge = ""), Ae || (Ae = ""), Ye("");
|
|
27669
27599
|
try {
|
|
27670
27600
|
if (!Vi(ge, se.title) || !Vi(Ae, se.body)) {
|
|
27671
|
-
const at = t.type === je.Question ? { title: Ae } : { title: ge, body: Ae, data:
|
|
27601
|
+
const at = t.type === je.Question ? { title: Ae } : { title: ge, body: Ae, data: ct };
|
|
27672
27602
|
await I(Wu(t.slugs), at);
|
|
27673
27603
|
}
|
|
27674
27604
|
J((at) => ({
|
|
27675
27605
|
...at,
|
|
27676
27606
|
title: ge || "",
|
|
27677
27607
|
body: Ae || "",
|
|
27678
|
-
data: { ...at.data, ...
|
|
27608
|
+
data: { ...at.data, ...ct },
|
|
27679
27609
|
isEditing: !1,
|
|
27680
27610
|
didEdit: !0
|
|
27681
27611
|
}));
|
|
@@ -27688,9 +27618,9 @@ const Ea = ({
|
|
|
27688
27618
|
Ae && Ae.id && (v && (ge.prepopulateForm = `@{{${Ae.id}}}`), ge.mentionData = { id: Ae.id, name: Ae.name }), F.updateConversation(ge);
|
|
27689
27619
|
}
|
|
27690
27620
|
setTimeout(() => {
|
|
27691
|
-
var st, jt,
|
|
27692
|
-
const Ae = `reply-form-${(t.type === je.Answer ? t.slug : ((st = t.slugs) == null ? void 0 : st.reply) || ((jt = t.slugs) == null ? void 0 : jt.answer) || ((
|
|
27693
|
-
at && at.focus(),
|
|
27621
|
+
var st, jt, ht;
|
|
27622
|
+
const Ae = `reply-form-${(t.type === je.Answer ? t.slug : ((st = t.slugs) == null ? void 0 : st.reply) || ((jt = t.slugs) == null ? void 0 : jt.answer) || ((ht = t.slugs) == null ? void 0 : ht.question) || "").toLowerCase().slice(-15)}`, ct = document.getElementById(Ae), at = document.getElementById(`${Ae}-input`);
|
|
27623
|
+
at && at.focus(), ct && ct.scrollIntoView({ behavior: "smooth" });
|
|
27694
27624
|
}, 0);
|
|
27695
27625
|
}, Le = async () => {
|
|
27696
27626
|
me(!1);
|
|
@@ -27742,7 +27672,7 @@ const Ea = ({
|
|
|
27742
27672
|
ge.preventDefault(), ge.stopPropagation(), ji && clearTimeout(ji), ji = setTimeout(() => {
|
|
27743
27673
|
window.location.href = l.post;
|
|
27744
27674
|
}, 150);
|
|
27745
|
-
const Ae = new CustomEvent(
|
|
27675
|
+
const Ae = new CustomEvent(lt.DISCUSSION_POST_CLICKED, {
|
|
27746
27676
|
detail: { link: l.post, timeout: ji }
|
|
27747
27677
|
});
|
|
27748
27678
|
document.dispatchEvent(Ae);
|
|
@@ -27758,7 +27688,7 @@ const Ea = ({
|
|
|
27758
27688
|
}),
|
|
27759
27689
|
children: [
|
|
27760
27690
|
!se.isEditing && /* @__PURE__ */ c.jsx(
|
|
27761
|
-
|
|
27691
|
+
B_,
|
|
27762
27692
|
{
|
|
27763
27693
|
author: re,
|
|
27764
27694
|
originalAuthorId: a,
|
|
@@ -27811,7 +27741,7 @@ const Ea = ({
|
|
|
27811
27741
|
}
|
|
27812
27742
|
) : /* @__PURE__ */ c.jsxs(c.Fragment, { children: [
|
|
27813
27743
|
t.type === je.Poll ? /* @__PURE__ */ c.jsx(
|
|
27814
|
-
|
|
27744
|
+
N_,
|
|
27815
27745
|
{
|
|
27816
27746
|
content: t,
|
|
27817
27747
|
contentData: se,
|
|
@@ -27821,15 +27751,15 @@ const Ea = ({
|
|
|
27821
27751
|
}
|
|
27822
27752
|
}
|
|
27823
27753
|
) : /* @__PURE__ */ c.jsx(
|
|
27824
|
-
|
|
27754
|
+
M_,
|
|
27825
27755
|
{
|
|
27826
27756
|
links: l,
|
|
27827
27757
|
contentData: se,
|
|
27828
|
-
postCutOff:
|
|
27758
|
+
postCutOff: R_,
|
|
27829
27759
|
content: t
|
|
27830
27760
|
}
|
|
27831
27761
|
),
|
|
27832
|
-
/* @__PURE__ */ c.jsx(
|
|
27762
|
+
/* @__PURE__ */ c.jsx(T_, { content: t })
|
|
27833
27763
|
] }),
|
|
27834
27764
|
!se.isEditing && !(s != null && s.actionBar) && /* @__PURE__ */ c.jsx(
|
|
27835
27765
|
dv,
|
|
@@ -27920,7 +27850,7 @@ const Ea = ({
|
|
|
27920
27850
|
],
|
|
27921
27851
|
gtmContext: `${(t.type || "").charAt(0).toUpperCase()}${(t.type || "").slice(1)}:${t.slug}`,
|
|
27922
27852
|
children: /* @__PURE__ */ c.jsx(
|
|
27923
|
-
|
|
27853
|
+
ft,
|
|
27924
27854
|
{
|
|
27925
27855
|
id: "discussion_delete_text",
|
|
27926
27856
|
values: {
|
|
@@ -27936,10 +27866,10 @@ const Ea = ({
|
|
|
27936
27866
|
] })
|
|
27937
27867
|
});
|
|
27938
27868
|
};
|
|
27939
|
-
const
|
|
27940
|
-
() => Promise.resolve().then(() =>
|
|
27941
|
-
),
|
|
27942
|
-
const r = de(), i = "discussionFormCard_", a = "DiscardDraftModal", o = Ie(
|
|
27869
|
+
const $_ = br(
|
|
27870
|
+
() => Promise.resolve().then(() => tk)
|
|
27871
|
+
), I_ = 65, L_ = ({ forceShow: e, form: t, className: n }) => {
|
|
27872
|
+
const r = de(), i = "discussionFormCard_", a = "DiscardDraftModal", o = Ie(mt) || "community", l = vo(o);
|
|
27943
27873
|
l.name || (l.name = r.formatMessage({
|
|
27944
27874
|
id: `member_${typeof o == "string" ? o : "community"}`
|
|
27945
27875
|
}));
|
|
@@ -27953,7 +27883,7 @@ const I_ = br(
|
|
|
27953
27883
|
(async () => {
|
|
27954
27884
|
const g = await Ud(
|
|
27955
27885
|
h.title || h.body || "",
|
|
27956
|
-
|
|
27886
|
+
I_,
|
|
27957
27887
|
h.mentions
|
|
27958
27888
|
);
|
|
27959
27889
|
p((y) => ({ ...y, prettifiedText: g }));
|
|
@@ -27976,26 +27906,26 @@ const I_ = br(
|
|
|
27976
27906
|
fe(() => {
|
|
27977
27907
|
if (!h.showCachedText) {
|
|
27978
27908
|
document.removeEventListener(
|
|
27979
|
-
|
|
27909
|
+
lt.DISCUSSION_POST_CLICKED,
|
|
27980
27910
|
v
|
|
27981
27911
|
), document.removeEventListener(
|
|
27982
|
-
|
|
27912
|
+
lt.MEMBER_CLICKED,
|
|
27983
27913
|
v
|
|
27984
27914
|
), document.removeEventListener("click", v);
|
|
27985
27915
|
return;
|
|
27986
27916
|
}
|
|
27987
27917
|
return document.addEventListener(
|
|
27988
|
-
|
|
27918
|
+
lt.DISCUSSION_POST_CLICKED,
|
|
27989
27919
|
v
|
|
27990
27920
|
), document.addEventListener(
|
|
27991
|
-
|
|
27921
|
+
lt.MEMBER_CLICKED,
|
|
27992
27922
|
v
|
|
27993
27923
|
), document.addEventListener("click", v), () => {
|
|
27994
27924
|
document.removeEventListener(
|
|
27995
|
-
|
|
27925
|
+
lt.DISCUSSION_POST_CLICKED,
|
|
27996
27926
|
v
|
|
27997
27927
|
), document.removeEventListener(
|
|
27998
|
-
|
|
27928
|
+
lt.MEMBER_CLICKED,
|
|
27999
27929
|
v
|
|
28000
27930
|
), document.removeEventListener("click", v);
|
|
28001
27931
|
};
|
|
@@ -28049,7 +27979,7 @@ const I_ = br(
|
|
|
28049
27979
|
),
|
|
28050
27980
|
/* @__PURE__ */ c.jsxs(oi, { children: [
|
|
28051
27981
|
/* @__PURE__ */ c.jsx(
|
|
28052
|
-
|
|
27982
|
+
$_,
|
|
28053
27983
|
{
|
|
28054
27984
|
showModal: d.form,
|
|
28055
27985
|
functions: {
|
|
@@ -28100,7 +28030,7 @@ const I_ = br(
|
|
|
28100
28030
|
)
|
|
28101
28031
|
] })
|
|
28102
28032
|
] });
|
|
28103
|
-
},
|
|
28033
|
+
}, z_ = br(() => Promise.resolve().then(() => k_)), Bm = ({
|
|
28104
28034
|
isCard: e = !1,
|
|
28105
28035
|
form: t,
|
|
28106
28036
|
parentId: n,
|
|
@@ -28143,13 +28073,13 @@ const I_ = br(
|
|
|
28143
28073
|
...p,
|
|
28144
28074
|
id: `add-post-${p.id || ""}`
|
|
28145
28075
|
};
|
|
28146
|
-
return e ? /* @__PURE__ */ c.jsx(
|
|
28076
|
+
return e ? /* @__PURE__ */ c.jsx(L_, { form: v }) : /* @__PURE__ */ c.jsx(z_, { ...v });
|
|
28147
28077
|
}, Tm = ({ form: e }) => {
|
|
28148
|
-
const t = Ie(
|
|
28078
|
+
const t = Ie(mt), n = de(), [r, i] = ce(!1), a = () => {
|
|
28149
28079
|
Eh(t) || i(!0);
|
|
28150
28080
|
};
|
|
28151
|
-
fe(() => (document.addEventListener(
|
|
28152
|
-
document.removeEventListener(
|
|
28081
|
+
fe(() => (document.addEventListener(lt.DISCUSSION_POST_ADDED, a), () => {
|
|
28082
|
+
document.removeEventListener(lt.DISCUSSION_POST_ADDED, a);
|
|
28153
28083
|
}));
|
|
28154
28084
|
const s = {};
|
|
28155
28085
|
return ["successMessage", "title", "text"].forEach((o) => {
|
|
@@ -28168,7 +28098,7 @@ const I_ = br(
|
|
|
28168
28098
|
}
|
|
28169
28099
|
);
|
|
28170
28100
|
};
|
|
28171
|
-
const ks = "discussion_responses_",
|
|
28101
|
+
const ks = "discussion_responses_", q_ = ({
|
|
28172
28102
|
type: e = "answer",
|
|
28173
28103
|
responses: t = 0,
|
|
28174
28104
|
isLoading: n = !1
|
|
@@ -28182,7 +28112,7 @@ const ks = "discussion_responses_", U_ = ({
|
|
|
28182
28112
|
!n && t === 0 && /* @__PURE__ */ c.jsx("p", { children: Wt(r.formatMessage, `${ks}empty`, e, e) })
|
|
28183
28113
|
] });
|
|
28184
28114
|
};
|
|
28185
|
-
const
|
|
28115
|
+
const U_ = ({
|
|
28186
28116
|
loadMore: { isLoading: e, hasNextPage: t, loadNextPage: n } = {
|
|
28187
28117
|
isLoading: !1,
|
|
28188
28118
|
hasNextPage: !1,
|
|
@@ -28233,7 +28163,7 @@ const V_ = ({
|
|
|
28233
28163
|
}
|
|
28234
28164
|
);
|
|
28235
28165
|
};
|
|
28236
|
-
function
|
|
28166
|
+
function V_(e) {
|
|
28237
28167
|
var n, r;
|
|
28238
28168
|
let t = !1;
|
|
28239
28169
|
return (r = (n = e.latest_reactions) == null ? void 0 : n["poll-option"]) == null || r.forEach((i) => {
|
|
@@ -28241,7 +28171,7 @@ function W_(e) {
|
|
|
28241
28171
|
(s = (a = i.own_children) == null ? void 0 : a["poll-vote"]) != null && s.length && (t = !0);
|
|
28242
28172
|
}), t;
|
|
28243
28173
|
}
|
|
28244
|
-
function
|
|
28174
|
+
function W_({
|
|
28245
28175
|
mutationFn: e,
|
|
28246
28176
|
mutationHandlers: { mutate: t, error: n },
|
|
28247
28177
|
queryClient: r,
|
|
@@ -28264,7 +28194,7 @@ function H_({
|
|
|
28264
28194
|
});
|
|
28265
28195
|
return s;
|
|
28266
28196
|
}
|
|
28267
|
-
function
|
|
28197
|
+
function H_({
|
|
28268
28198
|
mutationFn: e,
|
|
28269
28199
|
mutationHandlers: { mutate: t, error: n }
|
|
28270
28200
|
}) {
|
|
@@ -28275,7 +28205,7 @@ function K_({
|
|
|
28275
28205
|
});
|
|
28276
28206
|
return r;
|
|
28277
28207
|
}
|
|
28278
|
-
function
|
|
28208
|
+
function K_({
|
|
28279
28209
|
mutationFn: e,
|
|
28280
28210
|
mutationHandlers: {
|
|
28281
28211
|
mutate: t,
|
|
@@ -28294,7 +28224,7 @@ function Z_({
|
|
|
28294
28224
|
});
|
|
28295
28225
|
return a;
|
|
28296
28226
|
}
|
|
28297
|
-
function
|
|
28227
|
+
function Z_({
|
|
28298
28228
|
mutationFn: e,
|
|
28299
28229
|
mutationHandlers: { mutate: t, error: n },
|
|
28300
28230
|
queryClient: r,
|
|
@@ -28310,7 +28240,7 @@ function Y_({
|
|
|
28310
28240
|
});
|
|
28311
28241
|
return a;
|
|
28312
28242
|
}
|
|
28313
|
-
function
|
|
28243
|
+
function Y_({ queryFn: e, queryKey: t }) {
|
|
28314
28244
|
const {
|
|
28315
28245
|
data: n,
|
|
28316
28246
|
error: r,
|
|
@@ -28327,7 +28257,7 @@ function G_({ queryFn: e, queryKey: t }) {
|
|
|
28327
28257
|
isFetching: a
|
|
28328
28258
|
};
|
|
28329
28259
|
}
|
|
28330
|
-
function
|
|
28260
|
+
function G_({
|
|
28331
28261
|
mutationFn: e,
|
|
28332
28262
|
mutationHandlers: { mutate: t, error: n },
|
|
28333
28263
|
user: r
|
|
@@ -28339,7 +28269,7 @@ function Q_({
|
|
|
28339
28269
|
});
|
|
28340
28270
|
return i;
|
|
28341
28271
|
}
|
|
28342
|
-
function
|
|
28272
|
+
function Q_({
|
|
28343
28273
|
queryFns: { read: e, edit: t, like: n, unlike: r, pin: i, unpin: a, createVote: s, removeVote: o },
|
|
28344
28274
|
queryKey: l
|
|
28345
28275
|
}) {
|
|
@@ -28350,13 +28280,13 @@ function J_({
|
|
|
28350
28280
|
},
|
|
28351
28281
|
user: d,
|
|
28352
28282
|
...m
|
|
28353
|
-
}, p =
|
|
28283
|
+
}, p = H_({ ...h, mutationFn: t }), v = K_({ ...h, mutationFn: n }), f = J_({ ...h, mutationFn: r }), b = Z_({ ...h, mutationFn: i }), g = X_({ ...h, mutationFn: a }), y = W_({
|
|
28354
28284
|
...h,
|
|
28355
28285
|
mutationFn: s
|
|
28356
|
-
}), w =
|
|
28286
|
+
}), w = G_({
|
|
28357
28287
|
...h,
|
|
28358
28288
|
mutationFn: o
|
|
28359
|
-
}), { activity: F, ...C } =
|
|
28289
|
+
}), { activity: F, ...C } = Y_({ queryKey: l, queryFn: e });
|
|
28360
28290
|
return {
|
|
28361
28291
|
activity: F,
|
|
28362
28292
|
mutations: {
|
|
@@ -28372,7 +28302,7 @@ function J_({
|
|
|
28372
28302
|
...C
|
|
28373
28303
|
};
|
|
28374
28304
|
}
|
|
28375
|
-
function
|
|
28305
|
+
function J_({
|
|
28376
28306
|
mutationFn: e,
|
|
28377
28307
|
mutationHandlers: {
|
|
28378
28308
|
mutate: t,
|
|
@@ -28387,7 +28317,7 @@ function X_({
|
|
|
28387
28317
|
});
|
|
28388
28318
|
return i;
|
|
28389
28319
|
}
|
|
28390
|
-
function
|
|
28320
|
+
function X_({
|
|
28391
28321
|
mutationFn: e,
|
|
28392
28322
|
mutationHandlers: { mutate: t, error: n },
|
|
28393
28323
|
user: r
|
|
@@ -28399,7 +28329,7 @@ function ek({
|
|
|
28399
28329
|
});
|
|
28400
28330
|
return i;
|
|
28401
28331
|
}
|
|
28402
|
-
const
|
|
28332
|
+
const uF = ({
|
|
28403
28333
|
basePath: e,
|
|
28404
28334
|
parentId: t,
|
|
28405
28335
|
activityId: n,
|
|
@@ -28427,7 +28357,7 @@ const lF = ({
|
|
|
28427
28357
|
error: w,
|
|
28428
28358
|
isLoading: F,
|
|
28429
28359
|
mutations: { edit: C, like: E, unlike: B, pin: I, unpin: O, createVote: L, removeVote: R }
|
|
28430
|
-
} =
|
|
28360
|
+
} = Q_({
|
|
28431
28361
|
queryFns: g,
|
|
28432
28362
|
queryKey: [e, t, n]
|
|
28433
28363
|
});
|
|
@@ -28555,7 +28485,7 @@ const lF = ({
|
|
|
28555
28485
|
basePath: e,
|
|
28556
28486
|
parentId: t,
|
|
28557
28487
|
activityId: n,
|
|
28558
|
-
showReplies: k === je.Poll ?
|
|
28488
|
+
showReplies: k === je.Poll ? V_(y) : !0,
|
|
28559
28489
|
activityTotalReplies: (y == null ? void 0 : y.total_replies) || 0,
|
|
28560
28490
|
isMember: r,
|
|
28561
28491
|
functions: {
|
|
@@ -28570,7 +28500,7 @@ const lF = ({
|
|
|
28570
28500
|
)
|
|
28571
28501
|
] });
|
|
28572
28502
|
};
|
|
28573
|
-
const
|
|
28503
|
+
const ek = ({
|
|
28574
28504
|
showModal: e = !0,
|
|
28575
28505
|
functions: t,
|
|
28576
28506
|
form: n,
|
|
@@ -28659,11 +28589,11 @@ const tk = ({
|
|
|
28659
28589
|
)
|
|
28660
28590
|
}
|
|
28661
28591
|
);
|
|
28662
|
-
},
|
|
28592
|
+
}, tk = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
28663
28593
|
__proto__: null,
|
|
28664
|
-
default:
|
|
28594
|
+
default: ek
|
|
28665
28595
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
28666
|
-
const
|
|
28596
|
+
const lF = ({
|
|
28667
28597
|
className: e,
|
|
28668
28598
|
showModal: t = !0,
|
|
28669
28599
|
title: n,
|
|
@@ -28703,7 +28633,7 @@ const cF = ({
|
|
|
28703
28633
|
}
|
|
28704
28634
|
);
|
|
28705
28635
|
};
|
|
28706
|
-
const
|
|
28636
|
+
const nk = ({
|
|
28707
28637
|
showModal: e = !0,
|
|
28708
28638
|
content: { successMessage: t, title: n, text: r } = {},
|
|
28709
28639
|
functions: i,
|
|
@@ -28757,11 +28687,11 @@ const rk = ({
|
|
|
28757
28687
|
] })
|
|
28758
28688
|
}
|
|
28759
28689
|
);
|
|
28760
|
-
}, tu =
|
|
28690
|
+
}, tu = nk, rk = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
28761
28691
|
__proto__: null,
|
|
28762
28692
|
default: tu
|
|
28763
28693
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
28764
|
-
const
|
|
28694
|
+
const cF = ({ members: e }) => {
|
|
28765
28695
|
const [t, n] = ce(!1), r = (i) => {
|
|
28766
28696
|
const { fullName: a, jobTitle: s, organisation: o, photo: l } = i || {};
|
|
28767
28697
|
return /* @__PURE__ */ c.jsxs(c.Fragment, { children: [
|
|
@@ -28801,7 +28731,7 @@ const dF = ({ members: e }) => {
|
|
|
28801
28731
|
)
|
|
28802
28732
|
] });
|
|
28803
28733
|
};
|
|
28804
|
-
const
|
|
28734
|
+
const ik = ({
|
|
28805
28735
|
author: e,
|
|
28806
28736
|
authorCite: t,
|
|
28807
28737
|
content: n,
|
|
@@ -28829,8 +28759,8 @@ const ak = ({
|
|
|
28829
28759
|
}
|
|
28830
28760
|
)
|
|
28831
28761
|
] })
|
|
28832
|
-
] }),
|
|
28833
|
-
const
|
|
28762
|
+
] }), dF = rn(ik);
|
|
28763
|
+
const fF = ({
|
|
28834
28764
|
items: e = [],
|
|
28835
28765
|
selector: t = "",
|
|
28836
28766
|
className: n = ""
|
|
@@ -28898,7 +28828,7 @@ const nu = ({
|
|
|
28898
28828
|
}
|
|
28899
28829
|
return n && (u = `${n} ${u}`, l = `${n} ${l}`), r && (u = `${u} ${r}`, l = `${l} ${r}`), /* @__PURE__ */ c.jsx("span", { className: V("time-to-complete", i), "aria-label": u, children: l });
|
|
28900
28830
|
};
|
|
28901
|
-
const
|
|
28831
|
+
const mF = ({ className: e = "", image: t, ...n }) => t ? (typeof t == "string" && (t = {
|
|
28902
28832
|
width: 1080,
|
|
28903
28833
|
height: 200,
|
|
28904
28834
|
type: "image/png",
|
|
@@ -28915,7 +28845,7 @@ const hF = ({ className: e = "", image: t, ...n }) => t ? (typeof t == "string"
|
|
|
28915
28845
|
image: { ...t, aspect: "banner" }
|
|
28916
28846
|
}
|
|
28917
28847
|
)) : null;
|
|
28918
|
-
const
|
|
28848
|
+
const ak = [
|
|
28919
28849
|
"small",
|
|
28920
28850
|
"span",
|
|
28921
28851
|
"strong",
|
|
@@ -28929,7 +28859,7 @@ const sk = [
|
|
|
28929
28859
|
"h6",
|
|
28930
28860
|
"blockquote",
|
|
28931
28861
|
"q"
|
|
28932
|
-
],
|
|
28862
|
+
], sk = ({
|
|
28933
28863
|
className: e = "",
|
|
28934
28864
|
content: t,
|
|
28935
28865
|
image: n,
|
|
@@ -28960,7 +28890,7 @@ const sk = [
|
|
|
28960
28890
|
if (typeof t[b] == "object") {
|
|
28961
28891
|
h[b] = t[b];
|
|
28962
28892
|
const { text: g, element: y } = t[b];
|
|
28963
|
-
if (y &&
|
|
28893
|
+
if (y && ak.includes(y.toLowerCase()))
|
|
28964
28894
|
return;
|
|
28965
28895
|
h[b] = {
|
|
28966
28896
|
text: g,
|
|
@@ -29026,8 +28956,8 @@ const sk = [
|
|
|
29026
28956
|
] })
|
|
29027
28957
|
}
|
|
29028
28958
|
);
|
|
29029
|
-
},
|
|
29030
|
-
const
|
|
28959
|
+
}, hF = rn(sk);
|
|
28960
|
+
const pF = ({
|
|
29031
28961
|
image: e,
|
|
29032
28962
|
variant: t = "default",
|
|
29033
28963
|
children: n,
|
|
@@ -29045,7 +28975,7 @@ const gF = ({
|
|
|
29045
28975
|
}
|
|
29046
28976
|
);
|
|
29047
28977
|
};
|
|
29048
|
-
const
|
|
28978
|
+
const ok = ({
|
|
29049
28979
|
alignImage: e = "left",
|
|
29050
28980
|
className: t,
|
|
29051
28981
|
content: n,
|
|
@@ -29090,8 +29020,8 @@ const uk = ({
|
|
|
29090
29020
|
}
|
|
29091
29021
|
)
|
|
29092
29022
|
] });
|
|
29093
|
-
},
|
|
29094
|
-
const
|
|
29023
|
+
}, gF = rn(ok);
|
|
29024
|
+
const vF = ({
|
|
29095
29025
|
variant: e = "primary",
|
|
29096
29026
|
button: t = null,
|
|
29097
29027
|
title: n,
|
|
@@ -29112,7 +29042,7 @@ const bF = ({
|
|
|
29112
29042
|
children: t.text
|
|
29113
29043
|
}
|
|
29114
29044
|
)
|
|
29115
|
-
] }),
|
|
29045
|
+
] }), uk = ({ type: e, data: t }) => {
|
|
29116
29046
|
const n = de(), {
|
|
29117
29047
|
answers: r,
|
|
29118
29048
|
createdAt: i,
|
|
@@ -29171,7 +29101,7 @@ const bF = ({
|
|
|
29171
29101
|
] });
|
|
29172
29102
|
}
|
|
29173
29103
|
return null;
|
|
29174
|
-
},
|
|
29104
|
+
}, lk = {
|
|
29175
29105
|
title: 66,
|
|
29176
29106
|
text: 3e3,
|
|
29177
29107
|
secondaryText: 1e3,
|
|
@@ -29238,7 +29168,7 @@ const bF = ({
|
|
|
29238
29168
|
},
|
|
29239
29169
|
gtmEvent: "learning-hub"
|
|
29240
29170
|
}
|
|
29241
|
-
},
|
|
29171
|
+
}, ck = ({ data: e, cta: t, link: n, gtmContext: r }) => {
|
|
29242
29172
|
var f, b;
|
|
29243
29173
|
const i = de(), [a, s] = ce({
|
|
29244
29174
|
loading: !1,
|
|
@@ -29313,8 +29243,8 @@ const bF = ({
|
|
|
29313
29243
|
}
|
|
29314
29244
|
return null;
|
|
29315
29245
|
};
|
|
29316
|
-
function
|
|
29317
|
-
const n = de(), r = Ie(
|
|
29246
|
+
function dk({ buildMemberData: e, communitySlug: t }) {
|
|
29247
|
+
const n = de(), r = Ie(mt), [i, a] = ce({
|
|
29318
29248
|
count: "...",
|
|
29319
29249
|
isMember: !1,
|
|
29320
29250
|
memberType: ""
|
|
@@ -29356,7 +29286,7 @@ const Sm = ({
|
|
|
29356
29286
|
meta: l
|
|
29357
29287
|
}) => {
|
|
29358
29288
|
var k, T;
|
|
29359
|
-
const u = de(), d = Ie(
|
|
29289
|
+
const u = de(), d = Ie(mt), m = !!(d != null && d.id), { isTabbable: h = !0, setFocus: p = !1 } = l || {}, v = ie.useRef(null), [f, b] = ce({
|
|
29360
29290
|
data: null,
|
|
29361
29291
|
isLoading: !0
|
|
29362
29292
|
});
|
|
@@ -29392,7 +29322,7 @@ const Sm = ({
|
|
|
29392
29322
|
h && g.slug && (g.slug.slice(0, 4) === "http" || g.slug.slice(0, 2) === "//" || g.slug.slice(0, 6) === "mailto" || g.slug.slice(0, 3) === "tel") && (I = g.slug);
|
|
29393
29323
|
const O = (P) => {
|
|
29394
29324
|
I && (P.preventDefault(), P.stopPropagation(), window.location.href = I);
|
|
29395
|
-
}, L = { ...
|
|
29325
|
+
}, L = { ...lk, ...E };
|
|
29396
29326
|
let R = { className: "card" }, A = {};
|
|
29397
29327
|
return I && (A = {
|
|
29398
29328
|
href: I,
|
|
@@ -29485,19 +29415,19 @@ const Sm = ({
|
|
|
29485
29415
|
return ["title", "text"].includes(P) && I ? (ee.wrapper = "a", /* @__PURE__ */ c.jsx("p", { ...re, children: /* @__PURE__ */ c.jsx(en, { options: ee, ...A, children: D }) })) : /* @__PURE__ */ c.jsx(en, { options: ee, ...re, children: D });
|
|
29486
29416
|
}),
|
|
29487
29417
|
i.contentType === "communityPage" && (i.slug || g.slug) && r && /* @__PURE__ */ c.jsx(
|
|
29488
|
-
|
|
29418
|
+
dk,
|
|
29489
29419
|
{
|
|
29490
29420
|
communitySlug: i.slug || g.slug,
|
|
29491
29421
|
buildMemberData: r
|
|
29492
29422
|
}
|
|
29493
29423
|
),
|
|
29494
|
-
/* @__PURE__ */ c.jsx(
|
|
29495
|
-
/* @__PURE__ */ c.jsx(
|
|
29424
|
+
/* @__PURE__ */ c.jsx(uk, { type: C || "", data: g }),
|
|
29425
|
+
/* @__PURE__ */ c.jsx(ck, { data: g, cta: a, link: I || "", gtmContext: s })
|
|
29496
29426
|
] })
|
|
29497
29427
|
}
|
|
29498
29428
|
);
|
|
29499
29429
|
};
|
|
29500
|
-
const
|
|
29430
|
+
const fk = ({ cards: e, cardTypes: t, className: n = "", ...r }) => /* @__PURE__ */ c.jsx("ul", { className: V("card-block", n), children: e.map((i, a) => {
|
|
29501
29431
|
const s = i.slug ? `${i.slug}-${t[a]}` : `${t[a]}-${a}`;
|
|
29502
29432
|
return /* @__PURE__ */ c.jsx(
|
|
29503
29433
|
Sm,
|
|
@@ -29509,13 +29439,13 @@ const mk = ({ cards: e, cardTypes: t, className: n = "", ...r }) => /* @__PURE__
|
|
|
29509
29439
|
},
|
|
29510
29440
|
s
|
|
29511
29441
|
);
|
|
29512
|
-
}) }),
|
|
29442
|
+
}) }), mk = (e, t, n, r) => {
|
|
29513
29443
|
const i = t * n <= e, a = e < t * (n + 1), s = r.includes(Math.floor(e / t));
|
|
29514
29444
|
return {
|
|
29515
29445
|
inView: i && a,
|
|
29516
29446
|
isLoaded: s
|
|
29517
29447
|
};
|
|
29518
|
-
},
|
|
29448
|
+
}, hk = ({ id: e, title: t }) => {
|
|
29519
29449
|
const n = de();
|
|
29520
29450
|
if (!t || !t.text)
|
|
29521
29451
|
return null;
|
|
@@ -29545,7 +29475,7 @@ const Fs = {
|
|
|
29545
29475
|
twoCards: 480
|
|
29546
29476
|
};
|
|
29547
29477
|
let Oi = null, As = null;
|
|
29548
|
-
const
|
|
29478
|
+
const pk = ({
|
|
29549
29479
|
id: e,
|
|
29550
29480
|
cards: t,
|
|
29551
29481
|
cardTypes: n,
|
|
@@ -29637,7 +29567,7 @@ const gk = ({
|
|
|
29637
29567
|
className: V("carousel-wrapper", a),
|
|
29638
29568
|
"data-testid": "carousel",
|
|
29639
29569
|
children: [
|
|
29640
|
-
/* @__PURE__ */ c.jsx(
|
|
29570
|
+
/* @__PURE__ */ c.jsx(hk, { id: e, title: i }),
|
|
29641
29571
|
/* @__PURE__ */ c.jsx(
|
|
29642
29572
|
"ul",
|
|
29643
29573
|
{
|
|
@@ -29648,7 +29578,7 @@ const gk = ({
|
|
|
29648
29578
|
"data-testid": "carousel-list",
|
|
29649
29579
|
children: t.map((k, T) => {
|
|
29650
29580
|
let P = A(k, T);
|
|
29651
|
-
const { inView: q, isLoaded: U } =
|
|
29581
|
+
const { inView: q, isLoaded: U } = mk(
|
|
29652
29582
|
T,
|
|
29653
29583
|
h,
|
|
29654
29584
|
b,
|
|
@@ -29737,7 +29667,7 @@ const gk = ({
|
|
|
29737
29667
|
]
|
|
29738
29668
|
}
|
|
29739
29669
|
);
|
|
29740
|
-
},
|
|
29670
|
+
}, bF = ({
|
|
29741
29671
|
carousels: e = [],
|
|
29742
29672
|
isLoading: t,
|
|
29743
29673
|
title: n,
|
|
@@ -29757,7 +29687,7 @@ const gk = ({
|
|
|
29757
29687
|
m ? null : /* @__PURE__ */ c.jsx(tn, {})
|
|
29758
29688
|
] }, `placeholder-${d}`) : /* @__PURE__ */ c.jsxs(Kr, { children: [
|
|
29759
29689
|
/* @__PURE__ */ c.jsx(
|
|
29760
|
-
|
|
29690
|
+
pk,
|
|
29761
29691
|
{
|
|
29762
29692
|
cards: o,
|
|
29763
29693
|
cardTypes: l,
|
|
@@ -29769,7 +29699,7 @@ const gk = ({
|
|
|
29769
29699
|
] }, `carousel-${d}`);
|
|
29770
29700
|
}
|
|
29771
29701
|
);
|
|
29772
|
-
const
|
|
29702
|
+
const yF = ({
|
|
29773
29703
|
element: e = "div",
|
|
29774
29704
|
className: t = "",
|
|
29775
29705
|
card: n,
|
|
@@ -29809,7 +29739,7 @@ const xF = ({
|
|
|
29809
29739
|
] })
|
|
29810
29740
|
});
|
|
29811
29741
|
};
|
|
29812
|
-
const
|
|
29742
|
+
const xF = ({
|
|
29813
29743
|
element: e = "p",
|
|
29814
29744
|
data: {
|
|
29815
29745
|
timeLeftToFinish: t,
|
|
@@ -29857,7 +29787,7 @@ const wF = ({
|
|
|
29857
29787
|
] })
|
|
29858
29788
|
});
|
|
29859
29789
|
};
|
|
29860
|
-
const
|
|
29790
|
+
const gk = ({
|
|
29861
29791
|
element: e = "span",
|
|
29862
29792
|
sectionId: t,
|
|
29863
29793
|
subsectionId: n,
|
|
@@ -29868,7 +29798,7 @@ const vk = ({
|
|
|
29868
29798
|
"data-number": `${t}.${n}`,
|
|
29869
29799
|
children: r
|
|
29870
29800
|
});
|
|
29871
|
-
const
|
|
29801
|
+
const vk = ({
|
|
29872
29802
|
size: e = "default",
|
|
29873
29803
|
completionTime: t,
|
|
29874
29804
|
icon: n,
|
|
@@ -29885,7 +29815,7 @@ const bk = ({
|
|
|
29885
29815
|
a ? /* @__PURE__ */ c.jsx("span", { className: "additional", children: a }) : null
|
|
29886
29816
|
] });
|
|
29887
29817
|
};
|
|
29888
|
-
const
|
|
29818
|
+
const wF = ({
|
|
29889
29819
|
course: {
|
|
29890
29820
|
articles: e,
|
|
29891
29821
|
canAccessCourse: t,
|
|
@@ -29961,7 +29891,7 @@ const DF = ({
|
|
|
29961
29891
|
gtmType: "article-click",
|
|
29962
29892
|
children: /* @__PURE__ */ c.jsxs(c.Fragment, { children: [
|
|
29963
29893
|
/* @__PURE__ */ c.jsx(
|
|
29964
|
-
|
|
29894
|
+
gk,
|
|
29965
29895
|
{
|
|
29966
29896
|
sectionId: a,
|
|
29967
29897
|
subsectionId: E,
|
|
@@ -29971,7 +29901,7 @@ const DF = ({
|
|
|
29971
29901
|
),
|
|
29972
29902
|
" ",
|
|
29973
29903
|
/* @__PURE__ */ c.jsx(
|
|
29974
|
-
|
|
29904
|
+
vk,
|
|
29975
29905
|
{
|
|
29976
29906
|
completionTime: f,
|
|
29977
29907
|
icon: g,
|
|
@@ -29992,7 +29922,7 @@ const DF = ({
|
|
|
29992
29922
|
}
|
|
29993
29923
|
);
|
|
29994
29924
|
};
|
|
29995
|
-
const
|
|
29925
|
+
const DF = ({
|
|
29996
29926
|
isComplete: e = !1,
|
|
29997
29927
|
onClick: t,
|
|
29998
29928
|
...n
|
|
@@ -30016,7 +29946,7 @@ const CF = ({
|
|
|
30016
29946
|
children: r.formatMessage({ id: `markCompleteButton${e ? "_completed" : ""}` })
|
|
30017
29947
|
}
|
|
30018
29948
|
);
|
|
30019
|
-
},
|
|
29949
|
+
}, CF = ({
|
|
30020
29950
|
id: e,
|
|
30021
29951
|
data: { jobTitle: t, name: n, organization: r, thumbnail: i }
|
|
30022
29952
|
}) => ({
|
|
@@ -30069,18 +29999,18 @@ const CF = ({
|
|
|
30069
29999
|
contributors: ["community"]
|
|
30070
30000
|
}
|
|
30071
30001
|
];
|
|
30072
|
-
const Pi = "notFoundError_",
|
|
30002
|
+
const Pi = "notFoundError_", EF = () => {
|
|
30073
30003
|
const e = de(), t = [];
|
|
30074
30004
|
return Xc.forEach((n, r) => {
|
|
30075
30005
|
n.title = e.formatMessage({ id: `${Pi}post_${r + 1}` }), t.push("solutionArticle");
|
|
30076
30006
|
}), /* @__PURE__ */ c.jsxs(
|
|
30077
|
-
|
|
30007
|
+
b_,
|
|
30078
30008
|
{
|
|
30079
30009
|
styling: { background: "bold", circle: "small", variant: "alt-2" },
|
|
30080
30010
|
additionalContent: {
|
|
30081
30011
|
appended: /* @__PURE__ */ c.jsxs(Hn, { children: [
|
|
30082
30012
|
/* @__PURE__ */ c.jsx(
|
|
30083
|
-
|
|
30013
|
+
fk,
|
|
30084
30014
|
{
|
|
30085
30015
|
cards: Xc,
|
|
30086
30016
|
cardTypes: t,
|
|
@@ -30106,8 +30036,8 @@ export {
|
|
|
30106
30036
|
dn as ASSETS_BUCKET,
|
|
30107
30037
|
dv as ActionBar,
|
|
30108
30038
|
Xi as ActionButton,
|
|
30109
|
-
|
|
30110
|
-
|
|
30039
|
+
Vk as ActivitiesFeed,
|
|
30040
|
+
uF as ActivitySection,
|
|
30111
30041
|
ui as ActivityType,
|
|
30112
30042
|
Bm as AddPost,
|
|
30113
30043
|
np as Badge,
|
|
@@ -30115,45 +30045,45 @@ export {
|
|
|
30115
30045
|
rp as Badges,
|
|
30116
30046
|
pd as BadgesContext,
|
|
30117
30047
|
Wh as BadgesProvider,
|
|
30118
|
-
|
|
30119
|
-
|
|
30120
|
-
|
|
30121
|
-
|
|
30048
|
+
mF as Banner,
|
|
30049
|
+
hF as BannerSection,
|
|
30050
|
+
Kk as Breadcrumbs,
|
|
30051
|
+
Lk as Buckets,
|
|
30122
30052
|
Se as Button,
|
|
30123
30053
|
si as ButtonWrapper,
|
|
30124
30054
|
mi as COURSE_CONTENT_TYPES,
|
|
30125
30055
|
Hh as CacheProvider,
|
|
30126
30056
|
Sm as Card,
|
|
30127
|
-
|
|
30128
|
-
|
|
30057
|
+
fk as CardBlock,
|
|
30058
|
+
bF as Carousel,
|
|
30129
30059
|
Zd as CharacterLimit,
|
|
30130
30060
|
Yd as Checkbox,
|
|
30131
30061
|
ho as CollapsibleSection,
|
|
30132
30062
|
Dv as Columns,
|
|
30133
|
-
|
|
30134
|
-
|
|
30063
|
+
Uk as CommunityDetails,
|
|
30064
|
+
aF as ContactFooter,
|
|
30135
30065
|
r_ as ContactForm,
|
|
30136
30066
|
jh as ContentTypeLabel,
|
|
30137
30067
|
wd as Contributors,
|
|
30138
30068
|
eu as ConversationContext,
|
|
30139
|
-
|
|
30140
|
-
|
|
30141
|
-
|
|
30142
|
-
|
|
30143
|
-
|
|
30069
|
+
p_ as CookieBanner,
|
|
30070
|
+
xF as CourseProgression,
|
|
30071
|
+
wF as CourseStructure,
|
|
30072
|
+
pF as CustomContentBanner,
|
|
30073
|
+
lt as CustomEvents,
|
|
30144
30074
|
Wi as DELETED_USER_ID,
|
|
30145
|
-
|
|
30075
|
+
cF as Directory,
|
|
30146
30076
|
je as DiscussionContentType,
|
|
30147
|
-
|
|
30077
|
+
A_ as DiscussionConversation,
|
|
30148
30078
|
Ca as DiscussionForm,
|
|
30149
|
-
|
|
30150
|
-
|
|
30079
|
+
L_ as DiscussionFormCard,
|
|
30080
|
+
ek as DiscussionFormModal,
|
|
30151
30081
|
Ea as DiscussionPost,
|
|
30152
|
-
|
|
30082
|
+
U_ as DiscussionThread,
|
|
30153
30083
|
tn as Divider,
|
|
30154
|
-
|
|
30084
|
+
nF as DownloadSection,
|
|
30155
30085
|
Nr as EMAILS,
|
|
30156
|
-
|
|
30086
|
+
rF as EditSection,
|
|
30157
30087
|
Ev as EmailHelperTextBox,
|
|
30158
30088
|
Vn as EmptyStateBox,
|
|
30159
30089
|
Hd as EnrichedUrl,
|
|
@@ -30166,25 +30096,25 @@ export {
|
|
|
30166
30096
|
Ut as Fragment,
|
|
30167
30097
|
Hn as FullWidthSection,
|
|
30168
30098
|
fu as GET_STREAM_USER_PREFIX,
|
|
30169
|
-
|
|
30099
|
+
qk as GlobalProviders,
|
|
30170
30100
|
Am as Header,
|
|
30171
30101
|
Oh as HelperTextBox,
|
|
30172
30102
|
co as HiddenFromScreenReaders,
|
|
30173
30103
|
Ph as HideShowTextBox,
|
|
30174
|
-
|
|
30104
|
+
gF as HighlightSection,
|
|
30175
30105
|
zt as HighlightedTextBox,
|
|
30176
30106
|
dh as INVALID_TOKEN,
|
|
30177
|
-
|
|
30178
|
-
|
|
30107
|
+
zk as IconBulletedList,
|
|
30108
|
+
Rk as ImageContainer,
|
|
30179
30109
|
Qh as IntlProvider,
|
|
30180
30110
|
a_ as InviteForm,
|
|
30181
|
-
|
|
30111
|
+
lF as InviteModal,
|
|
30182
30112
|
Pd as JoinButton,
|
|
30183
30113
|
fm as Label,
|
|
30184
30114
|
gd as LanguageContext,
|
|
30185
|
-
|
|
30186
|
-
|
|
30187
|
-
|
|
30115
|
+
Zk as LanguageSwitcher,
|
|
30116
|
+
gk as LessonName,
|
|
30117
|
+
vk as LessonType,
|
|
30188
30118
|
Bg as LikesButton,
|
|
30189
30119
|
sv as LikesFeed,
|
|
30190
30120
|
ov as LikesModal,
|
|
@@ -30194,31 +30124,31 @@ export {
|
|
|
30194
30124
|
Zt as LoadingPlaceholder,
|
|
30195
30125
|
go as LoadingState,
|
|
30196
30126
|
Kd as Logo,
|
|
30197
|
-
|
|
30198
|
-
|
|
30127
|
+
iF as LogoSection,
|
|
30128
|
+
x_ as MEMBERS_PER_PAGE,
|
|
30199
30129
|
fh as MENTION_REGEX,
|
|
30200
|
-
|
|
30130
|
+
DF as MarkCompleteButton,
|
|
30201
30131
|
dr as MarkdownText,
|
|
30202
|
-
|
|
30132
|
+
vF as MarketingBlock,
|
|
30203
30133
|
un as Marks,
|
|
30204
30134
|
En as Member,
|
|
30205
|
-
|
|
30135
|
+
D_ as MembersList,
|
|
30206
30136
|
Dd as Modal,
|
|
30207
30137
|
hv as MoreMenu,
|
|
30208
|
-
|
|
30209
|
-
|
|
30210
|
-
|
|
30138
|
+
Nk as NUMBER_OF_COUNTRIES,
|
|
30139
|
+
Pk as NUMBER_OF_USERS,
|
|
30140
|
+
yF as NarrowCard,
|
|
30211
30141
|
bv as NavigationMenu,
|
|
30212
|
-
|
|
30142
|
+
EF as NotFoundError,
|
|
30213
30143
|
An as Overlay,
|
|
30214
30144
|
vd as OverlayContext,
|
|
30215
30145
|
ep as OverlayProvider,
|
|
30216
30146
|
Uh as PageHeading,
|
|
30217
|
-
|
|
30218
|
-
|
|
30147
|
+
b_ as PageLayout,
|
|
30148
|
+
Xk as PasswordForm,
|
|
30219
30149
|
Pv as PasswordRules,
|
|
30220
30150
|
cn as Pill,
|
|
30221
|
-
|
|
30151
|
+
P_ as Poll,
|
|
30222
30152
|
Ah as Popover,
|
|
30223
30153
|
oi as Portal,
|
|
30224
30154
|
s_ as ProfileForm,
|
|
@@ -30227,31 +30157,31 @@ export {
|
|
|
30227
30157
|
Tm as ProfileModalLauncher,
|
|
30228
30158
|
Fn as ProfilePicture,
|
|
30229
30159
|
bd as ProgressBar,
|
|
30230
|
-
|
|
30231
|
-
|
|
30232
|
-
|
|
30160
|
+
$k as ProgressTracker,
|
|
30161
|
+
eF as PublishArticleForm,
|
|
30162
|
+
Qk as Rating,
|
|
30233
30163
|
rv as RepliesFeed,
|
|
30234
|
-
|
|
30164
|
+
q_ as ResponsesHeading,
|
|
30235
30165
|
Cr as ResponsiveImage,
|
|
30236
30166
|
so as ResultsVisibility,
|
|
30237
|
-
|
|
30167
|
+
Ik as ReturnToNavButton,
|
|
30238
30168
|
_m as RichTextEditor,
|
|
30239
|
-
|
|
30169
|
+
u_ as SearchForm,
|
|
30240
30170
|
cv as ShareLink,
|
|
30241
|
-
|
|
30242
|
-
|
|
30171
|
+
Yk as ShareLinks,
|
|
30172
|
+
tF as SignupForm,
|
|
30243
30173
|
xu as Span,
|
|
30244
30174
|
Qr as StatusBanner,
|
|
30245
|
-
|
|
30246
|
-
|
|
30247
|
-
|
|
30248
|
-
|
|
30175
|
+
fF as TableOfContents,
|
|
30176
|
+
Gk as Tabs,
|
|
30177
|
+
oF as Tags,
|
|
30178
|
+
dF as TestimonialBlock,
|
|
30249
30179
|
nu as TimeToComplete,
|
|
30250
|
-
|
|
30180
|
+
Jk as Toggle,
|
|
30251
30181
|
wr as Tooltip,
|
|
30252
|
-
|
|
30182
|
+
sF as TopLevelPage,
|
|
30253
30183
|
Hi as UUID_V4_REGEX,
|
|
30254
|
-
|
|
30184
|
+
mt as UserContext,
|
|
30255
30185
|
Jh as UserProvider,
|
|
30256
30186
|
ze as VisuallyHidden,
|
|
30257
30187
|
lg as addAriaProps,
|
|
@@ -30260,7 +30190,7 @@ export {
|
|
|
30260
30190
|
fo as checkIntlPathExists,
|
|
30261
30191
|
Vd as enrichPostCategories,
|
|
30262
30192
|
vs as generateConditions,
|
|
30263
|
-
|
|
30193
|
+
Mk as generateCssIcon,
|
|
30264
30194
|
li as getAuthorData,
|
|
30265
30195
|
Cv as getCharacterLimitProps,
|
|
30266
30196
|
dd as getLongDate,
|
|
@@ -30269,14 +30199,14 @@ export {
|
|
|
30269
30199
|
mh as getShortDate,
|
|
30270
30200
|
Fo as getValueLength,
|
|
30271
30201
|
da as headerData,
|
|
30272
|
-
|
|
30273
|
-
|
|
30202
|
+
Hk as likesResponseMock,
|
|
30203
|
+
CF as mapGetStreamData,
|
|
30274
30204
|
Ch as pageReady,
|
|
30275
30205
|
mu as passwordValidator,
|
|
30276
|
-
|
|
30206
|
+
Wk as repliesFeedMock,
|
|
30277
30207
|
Ta as supportedLanguages,
|
|
30278
30208
|
lh as toCamelCase,
|
|
30279
|
-
|
|
30209
|
+
Ok as toCapitalisedCase,
|
|
30280
30210
|
ch as toSentenceCase,
|
|
30281
30211
|
Wu as transformSlugs,
|
|
30282
30212
|
ah as useAutoResize,
|