@apolitical/component-library 1.14.10 → 1.14.11-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/helpers/index.d.ts +4 -3
- package/helpers/prerender.d.ts +1 -0
- package/index.d.ts +1 -0
- package/index.js +13 -13
- package/index.mjs +257 -250
- package/package.json +1 -1
package/index.mjs
CHANGED
|
@@ -807,7 +807,7 @@ const vt = (e = !0, t = !1, n = "window") => {
|
|
|
807
807
|
l();
|
|
808
808
|
}, 250);
|
|
809
809
|
return c;
|
|
810
|
-
},
|
|
810
|
+
}, Oa = (e = [], t = !0) => {
|
|
811
811
|
e = Array.isArray(e) ? e : [e];
|
|
812
812
|
const n = de(!1);
|
|
813
813
|
He(() => {
|
|
@@ -818,12 +818,6 @@ const vt = (e = !0, t = !1, n = "window") => {
|
|
|
818
818
|
r && (r.scrollIntoView(t ? { behavior: "smooth" } : null), n.current = !0);
|
|
819
819
|
}
|
|
820
820
|
}, e);
|
|
821
|
-
}, Is = (e, t) => {
|
|
822
|
-
Array.isArray(t) || (t = [t]);
|
|
823
|
-
const n = _s(e);
|
|
824
|
-
return t.forEach(({ type: r, value: c }) => {
|
|
825
|
-
xs(n, r, c);
|
|
826
|
-
}), n;
|
|
827
821
|
}, Cn = (e) => {
|
|
828
822
|
const t = [];
|
|
829
823
|
return e.forEach((n) => {
|
|
@@ -840,7 +834,7 @@ const vt = (e = !0, t = !1, n = "window") => {
|
|
|
840
834
|
break;
|
|
841
835
|
}
|
|
842
836
|
return r;
|
|
843
|
-
},
|
|
837
|
+
}, Is = (e) => e.replace(/[A-Z]/g, (t) => `-${t.toLowerCase()}`), Bs = (e, t = "en") => new Date(e).toLocaleString(t, { day: "numeric", month: "short" }), Pn = (e, t = "en") => new Date(e).toLocaleString(t, {
|
|
844
838
|
weekday: "long",
|
|
845
839
|
day: "numeric",
|
|
846
840
|
month: "short",
|
|
@@ -859,7 +853,7 @@ const vt = (e = !0, t = !1, n = "window") => {
|
|
|
859
853
|
return { path: "days", number: a };
|
|
860
854
|
const l = Math.floor(a / 7);
|
|
861
855
|
return l <= 52 ? { path: "weeks", number: l } : { path: "years", number: Math.floor(a / 365) };
|
|
862
|
-
},
|
|
856
|
+
}, qt = {
|
|
863
857
|
apolitical: "Apolitical",
|
|
864
858
|
breadcrumbs_label: "Go back to:",
|
|
865
859
|
breadcrumbs_currentPage: "Current page:",
|
|
@@ -1176,35 +1170,35 @@ Thank you for helping to protect the Apolitical community from abusive content.`
|
|
|
1176
1170
|
signup_success_text: "<p>Once we've vetted your application, you'll get a secure login link to help you get started.</p><p>Please note that trust is everything to our community, so you can't login until your identity has been verified.</p>",
|
|
1177
1171
|
tags_community: "From the community",
|
|
1178
1172
|
tooltip_loading: "Loading..."
|
|
1179
|
-
},
|
|
1173
|
+
}, Qs = {
|
|
1180
1174
|
languageSwitcher_label: "Me gustaría leer este artículo en...",
|
|
1181
1175
|
languageSwitcher_translation_original: "idioma original",
|
|
1182
1176
|
languageSwitcher_translation_human: "traducido por un humano",
|
|
1183
1177
|
languageSwitcher_translation_machine: "traducido por máquina",
|
|
1184
1178
|
languageSwitcher_disclaimer: "Este contenido fue traducido automáticamente y ocasionalmente tendrá errores de género u otras traducciones directas. Estamos intentando resolver este problema, pero mientras tanto, si notas algún error grave, escríbenos a <link>{email}</link>"
|
|
1185
|
-
},
|
|
1179
|
+
}, Hs = {
|
|
1186
1180
|
collapsibleSection_summary: "En savoir plus",
|
|
1187
1181
|
languageSwitcher_label: "Je voudrais lire cet article dans...",
|
|
1188
1182
|
languageSwitcher_translation_original: "langue originale",
|
|
1189
1183
|
languageSwitcher_translation_human: "traduit par un humain",
|
|
1190
1184
|
languageSwitcher_translation_machine: "traduit par machine",
|
|
1191
1185
|
languageSwitcher_disclaimer: "Ce contenu est traduit automatiquement et contiendra d’évantuelles erreurs de genre ou d’autres traductions directes. Nous essayons de résoudre ce problème, mais en attendant, si vous remarquez une erreur importante, faites-le nous savoir à <link>{email}</link>"
|
|
1192
|
-
},
|
|
1186
|
+
}, Us = {
|
|
1193
1187
|
languageSwitcher_label: "Eu gostaria de ler este artigo em...",
|
|
1194
1188
|
languageSwitcher_translation_original: "linguagem original",
|
|
1195
1189
|
languageSwitcher_translation_human: "traduzido por um humano",
|
|
1196
1190
|
languageSwitcher_translation_machine: "traduzido por máquina",
|
|
1197
1191
|
languageSwitcher_disclaimer: "Este conteúdo foi traduzido automaticamente e, ocasionalmente, poderão ocorrer erros de linguagem de gênero ou outras traduções diretas. Estamos tentando resolver isso, porém se perceber algo errado por favor nos avise em <link>{email}</link>"
|
|
1198
|
-
},
|
|
1192
|
+
}, Ws = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1199
1193
|
__proto__: null,
|
|
1200
1194
|
en: qt,
|
|
1201
|
-
es:
|
|
1202
|
-
fr:
|
|
1203
|
-
pt:
|
|
1195
|
+
es: Qs,
|
|
1196
|
+
fr: Hs,
|
|
1197
|
+
pt: Us
|
|
1204
1198
|
}, Symbol.toStringTag, { value: "Module" })), Rn = (e) => e in qt, Te = (e, t, n, r, c = {}) => {
|
|
1205
1199
|
let i = "";
|
|
1206
1200
|
return Rn(`${t}_${n}`) ? i = e({ id: `${t}_${n}` }, c) : i = e({ id: t }, { [r]: n, ...c }), i;
|
|
1207
|
-
},
|
|
1201
|
+
}, zs = (e, t, n) => {
|
|
1208
1202
|
if (!e || e === 0)
|
|
1209
1203
|
return "0";
|
|
1210
1204
|
t || (t = 0), n || (n = ["k", "m", "b", "t"]);
|
|
@@ -1218,9 +1212,19 @@ Thank you for helping to protect the Apolitical community from abusive content.`
|
|
|
1218
1212
|
}
|
|
1219
1213
|
}
|
|
1220
1214
|
return r;
|
|
1221
|
-
},
|
|
1215
|
+
}, Vs = (e = 0) => {
|
|
1216
|
+
setTimeout(() => {
|
|
1217
|
+
typeof (window == null ? void 0 : window.pageReady) == "function" && window.pageReady();
|
|
1218
|
+
}, e);
|
|
1219
|
+
}, Ys = (e) => e.replace(/\s+/g, "").length > 0, Gs = (e, t) => {
|
|
1220
|
+
Array.isArray(t) || (t = [t]);
|
|
1221
|
+
const n = _s(e);
|
|
1222
|
+
return t.forEach(({ type: r, value: c }) => {
|
|
1223
|
+
xs(n, r, c);
|
|
1224
|
+
}), n;
|
|
1225
|
+
}, Js = (e) => new Promise((t) => setTimeout(t, e)), ut = (e, t) => A.Children.map(e, (n) => A.cloneElement(n, {
|
|
1222
1226
|
...t
|
|
1223
|
-
})),
|
|
1227
|
+
})), U = ({
|
|
1224
1228
|
variant: e = "primary",
|
|
1225
1229
|
size: t = "medium",
|
|
1226
1230
|
styling: n = { muted: !1, fullWidth: !1 },
|
|
@@ -1391,17 +1395,17 @@ const Ue = ({ className: e = "", maxWidth: t = !1 }) => {
|
|
|
1391
1395
|
],
|
|
1392
1396
|
sizes: "(min-width: 1024px) 453px, 20vw"
|
|
1393
1397
|
}
|
|
1394
|
-
},
|
|
1398
|
+
}, Xs = ({
|
|
1395
1399
|
aspect: e,
|
|
1396
1400
|
range: t,
|
|
1397
1401
|
sizes: n
|
|
1398
1402
|
}) => {
|
|
1399
1403
|
const { range: r, sizes: c } = e ? _n[e] : _n.fallback;
|
|
1400
1404
|
return { range: t && t.length > 0 ? t : r, sizes: n || c };
|
|
1401
|
-
},
|
|
1405
|
+
}, Zs = ({ format: e, height: t, query: n, width: r }) => {
|
|
1402
1406
|
let c = `w=${r}&h=${t}`;
|
|
1403
1407
|
return c = e ? `${c}&fm=${e}` : c, c = n ? `${c}&${n}` : c, c;
|
|
1404
|
-
}, Ct = ({ format: e, range: t, url: n, query: r }) => t.map(({ height: c, width: i }) => `${n}?${
|
|
1408
|
+
}, Ct = ({ format: e, range: t, url: n, query: r }) => t.map(({ height: c, width: i }) => `${n}?${Zs({
|
|
1405
1409
|
format: e,
|
|
1406
1410
|
height: c,
|
|
1407
1411
|
query: r,
|
|
@@ -1418,7 +1422,7 @@ const Fn = ({ image: e, className: t, testId: n }) => {
|
|
|
1418
1422
|
loading: o,
|
|
1419
1423
|
decoding: d,
|
|
1420
1424
|
fetchPriority: m
|
|
1421
|
-
} = e, { range: h, sizes: p } =
|
|
1425
|
+
} = e, { range: h, sizes: p } = Xs(e), g = Ct({ format: "avif", query: u, range: h, url: a }), b = Ct({ format: "webp", query: u, range: h, url: a }), v = Ct({ format: "", query: u, range: h, url: a });
|
|
1422
1426
|
return /* @__PURE__ */ s.jsxs("picture", { className: t, children: [
|
|
1423
1427
|
i !== "image/gif" && /* @__PURE__ */ s.jsx(
|
|
1424
1428
|
"source",
|
|
@@ -1456,7 +1460,7 @@ const Fn = ({ image: e, className: t, testId: n }) => {
|
|
|
1456
1460
|
] });
|
|
1457
1461
|
};
|
|
1458
1462
|
let Je = !1;
|
|
1459
|
-
const
|
|
1463
|
+
const Ks = ({ isOpen: e = !1, isLoading: t = !1, children: n }) => {
|
|
1460
1464
|
const r = D(), c = de(null), [i, u] = L("hidden");
|
|
1461
1465
|
Y(() => {
|
|
1462
1466
|
const l = c.current;
|
|
@@ -1477,7 +1481,7 @@ const Zs = ({ isOpen: e = !1, isLoading: t = !1, children: n }) => {
|
|
|
1477
1481
|
}, [e]), /* @__PURE__ */ s.jsx("aside", { ref: c, className: $("tooltip text-medium", i, { loading: t }), hidden: i === "hidden", children: t ? /* @__PURE__ */ s.jsx("p", { children: r.formatMessage({ id: "tooltip_loading" }) }) : typeof n == "string" ? /* @__PURE__ */ s.jsx("p", { children: n }) : n });
|
|
1478
1482
|
};
|
|
1479
1483
|
const en = ({ children: e, className: t = "", ...n }) => /* @__PURE__ */ s.jsx("section", { className: $("full-width-section", t), ...n, children: e });
|
|
1480
|
-
const
|
|
1484
|
+
const Ia = ({ text: e, buttons: t, className: n = "" }) => {
|
|
1481
1485
|
const r = [];
|
|
1482
1486
|
return t.forEach((c) => {
|
|
1483
1487
|
r.push({
|
|
@@ -1495,7 +1499,7 @@ const Oa = ({ text: e, buttons: t, className: n = "" }) => {
|
|
|
1495
1499
|
/* @__PURE__ */ s.jsx(kt, { buttons: r })
|
|
1496
1500
|
] }) });
|
|
1497
1501
|
};
|
|
1498
|
-
const
|
|
1502
|
+
const Ba = ({ title: e = !1, logos: t = [], className: n = "" }) => {
|
|
1499
1503
|
const r = t.length;
|
|
1500
1504
|
if (r === 0)
|
|
1501
1505
|
return null;
|
|
@@ -1540,7 +1544,7 @@ const Ia = ({ title: e = !1, logos: t = [], className: n = "" }) => {
|
|
|
1540
1544
|
)
|
|
1541
1545
|
] });
|
|
1542
1546
|
};
|
|
1543
|
-
const
|
|
1547
|
+
const qs = [
|
|
1544
1548
|
"small",
|
|
1545
1549
|
"span",
|
|
1546
1550
|
"strong",
|
|
@@ -1554,7 +1558,7 @@ const Ks = [
|
|
|
1554
1558
|
"h6",
|
|
1555
1559
|
"blockquote",
|
|
1556
1560
|
"q"
|
|
1557
|
-
],
|
|
1561
|
+
], er = ({
|
|
1558
1562
|
className: e = "",
|
|
1559
1563
|
content: t,
|
|
1560
1564
|
image: n,
|
|
@@ -1572,7 +1576,7 @@ const Ks = [
|
|
|
1572
1576
|
if (typeof t[d] == "object") {
|
|
1573
1577
|
o[d] = t[d];
|
|
1574
1578
|
const { text: m, element: h } = t[d];
|
|
1575
|
-
if (h &&
|
|
1579
|
+
if (h && qs.includes(h.toLowerCase()))
|
|
1576
1580
|
return;
|
|
1577
1581
|
o[d] = {
|
|
1578
1582
|
text: m,
|
|
@@ -1624,8 +1628,8 @@ const Ks = [
|
|
|
1624
1628
|
] })
|
|
1625
1629
|
}
|
|
1626
1630
|
);
|
|
1627
|
-
},
|
|
1628
|
-
const
|
|
1631
|
+
}, Qa = We(er);
|
|
1632
|
+
const Ha = ({
|
|
1629
1633
|
variant: e = "primary",
|
|
1630
1634
|
button: t = null,
|
|
1631
1635
|
title: n,
|
|
@@ -1642,7 +1646,7 @@ const Qa = ({
|
|
|
1642
1646
|
default: "dpo@apolitical.co",
|
|
1643
1647
|
eu: "dpo.agl@apolitical.foundation"
|
|
1644
1648
|
}
|
|
1645
|
-
},
|
|
1649
|
+
}, Ua = "200,000+";
|
|
1646
1650
|
const Ln = ({ label: e = !1, className: t = "", children: n }) => {
|
|
1647
1651
|
const r = D();
|
|
1648
1652
|
return /* @__PURE__ */ s.jsxs("details", { className: $("collapsible-section", t), children: [
|
|
@@ -1691,7 +1695,7 @@ const yt = ({
|
|
|
1691
1695
|
const Jt = ({ children: e, ...t }) => /* @__PURE__ */ s.jsx("p", { ...t, children: e }), On = { q: Jt, blockquote: Jt };
|
|
1692
1696
|
for (let e = 1; e <= 6; e++)
|
|
1693
1697
|
On[`h${e}`] = { component: Jt, props: { className: "title" } };
|
|
1694
|
-
const
|
|
1698
|
+
const tr = ({ type: e = "default", className: t = "", heading: n = !1, children: r }) => /* @__PURE__ */ s.jsxs("div", { className: $("helper-text-box text-small", e, t), children: [
|
|
1695
1699
|
n && /* @__PURE__ */ s.jsx("p", { className: "title", children: n }),
|
|
1696
1700
|
typeof r == "string" ? /* @__PURE__ */ s.jsx(
|
|
1697
1701
|
bt,
|
|
@@ -1705,7 +1709,7 @@ const er = ({ type: e = "default", className: t = "", heading: n = !1, children:
|
|
|
1705
1709
|
}
|
|
1706
1710
|
) : /* @__PURE__ */ s.jsx("p", { children: r })
|
|
1707
1711
|
] });
|
|
1708
|
-
const
|
|
1712
|
+
const Wa = ({ className: e = "", show: t = !1, hide: n = !1, text: r, children: c }) => {
|
|
1709
1713
|
const i = D(), u = de(null), [a, l] = L(""), [o, d] = L("closed");
|
|
1710
1714
|
Y(() => {
|
|
1711
1715
|
const p = u.current;
|
|
@@ -1748,7 +1752,7 @@ const Ua = ({ className: e = "", show: t = !1, hide: n = !1, text: r, children:
|
|
|
1748
1752
|
}
|
|
1749
1753
|
) })
|
|
1750
1754
|
] });
|
|
1751
|
-
},
|
|
1755
|
+
}, nr = () => A.Fragment, sr = ({ children: e }) => /* @__PURE__ */ s.jsx(Re, { variant: "secondary", children: e }), rr = ["span", "strong", "h1", "h2", "h3", "h4", "h5", "h6", "p"], ar = ({ children: e }) => {
|
|
1752
1756
|
const t = D();
|
|
1753
1757
|
if (!e)
|
|
1754
1758
|
return null;
|
|
@@ -1761,7 +1765,7 @@ const Ua = ({ className: e = "", show: t = !1, hide: n = !1, text: r, children:
|
|
|
1761
1765
|
for (const u of zt.toArray(i.props.children))
|
|
1762
1766
|
if (!(!u || typeof u == "string" || typeof u == "number") && A.isValidElement(u)) {
|
|
1763
1767
|
const a = u.type;
|
|
1764
|
-
if (
|
|
1768
|
+
if (rr.includes(a)) {
|
|
1765
1769
|
for (n = u.props.children; typeof n != "string" && (Array.isArray(n) && n[0].props && n[0].props.children && n[0].props.children[0]); )
|
|
1766
1770
|
n = n[0].props.children[0];
|
|
1767
1771
|
break;
|
|
@@ -1779,7 +1783,7 @@ const Ua = ({ className: e = "", show: t = !1, hide: n = !1, text: r, children:
|
|
|
1779
1783
|
children: r.map((i) => i)
|
|
1780
1784
|
}
|
|
1781
1785
|
);
|
|
1782
|
-
},
|
|
1786
|
+
}, or = ({ children: e, ...t }) => {
|
|
1783
1787
|
if (t.class)
|
|
1784
1788
|
switch (t.class) {
|
|
1785
1789
|
case "casestudy":
|
|
@@ -1793,7 +1797,7 @@ const Ua = ({ className: e = "", show: t = !1, hide: n = !1, text: r, children:
|
|
|
1793
1797
|
return /* @__PURE__ */ s.jsx("div", { ...t, children: e });
|
|
1794
1798
|
}
|
|
1795
1799
|
return /* @__PURE__ */ s.jsx("div", { ...t, children: e });
|
|
1796
|
-
},
|
|
1800
|
+
}, ir = (e) => {
|
|
1797
1801
|
const t = D(), n = Date.now().toString();
|
|
1798
1802
|
let r = "default";
|
|
1799
1803
|
const c = e.src;
|
|
@@ -1805,7 +1809,7 @@ const Ua = ({ className: e = "", show: t = !1, hide: n = !1, text: r, children:
|
|
|
1805
1809
|
}, xn = (e) => {
|
|
1806
1810
|
let t = "";
|
|
1807
1811
|
return e && typeof e != "string" && typeof e != "number" && typeof e != "boolean" && "type" in e && (t = e.type), t;
|
|
1808
|
-
},
|
|
1812
|
+
}, cr = ({ children: e, ...t }) => {
|
|
1809
1813
|
let n = { ...t };
|
|
1810
1814
|
t.href && (t.href.includes("http:") || t.href.includes("https:")) && !t.target && (n.target = "_blank");
|
|
1811
1815
|
let r = e, c = !1;
|
|
@@ -1820,30 +1824,30 @@ const Ua = ({ className: e = "", show: t = !1, hide: n = !1, text: r, children:
|
|
|
1820
1824
|
break;
|
|
1821
1825
|
}
|
|
1822
1826
|
return c ? (n = { ...n, className: "button primary medium" }, /* @__PURE__ */ s.jsx("p", { className: "center", children: /* @__PURE__ */ s.jsx(U, { variant: "primary", size: "medium", ...n, children: r }) })) : /* @__PURE__ */ s.jsx("a", { ...n, children: r });
|
|
1823
|
-
},
|
|
1827
|
+
}, lr = ({ children: e }) => /* @__PURE__ */ s.jsx("span", { children: e });
|
|
1824
1828
|
const bn = ({ className: e = "", options: t = {}, children: n }) => {
|
|
1825
1829
|
n = n.replace(/^<br\/?>/, "");
|
|
1826
1830
|
const r = {
|
|
1827
1831
|
wrapper: A.Fragment,
|
|
1828
1832
|
forceBlock: !0,
|
|
1829
1833
|
overrides: {
|
|
1830
|
-
a:
|
|
1834
|
+
a: cr,
|
|
1831
1835
|
// Override psuedo-code
|
|
1832
1836
|
// We give the content team psuedo-code short cuts to use in Contentful
|
|
1833
1837
|
CollapsibleSection: Ln,
|
|
1834
1838
|
TextBox: Re,
|
|
1835
|
-
CaseStudy:
|
|
1839
|
+
CaseStudy: sr,
|
|
1836
1840
|
// Override embedded HTML
|
|
1837
1841
|
// Our content team previously used real HTML, which we need to tear out and replace with React components
|
|
1838
|
-
style:
|
|
1839
|
-
details:
|
|
1840
|
-
div:
|
|
1841
|
-
iframe:
|
|
1842
|
+
style: nr,
|
|
1843
|
+
details: ar,
|
|
1844
|
+
div: or,
|
|
1845
|
+
iframe: ir
|
|
1842
1846
|
}
|
|
1843
1847
|
};
|
|
1844
1848
|
return /* @__PURE__ */ s.jsx("div", { className: $("markdown-text", e), children: /* @__PURE__ */ s.jsx(bt, { options: { ...r, ...t }, children: n }) });
|
|
1845
1849
|
};
|
|
1846
|
-
const
|
|
1850
|
+
const dr = ({
|
|
1847
1851
|
maxWidth: e = !1,
|
|
1848
1852
|
title: t,
|
|
1849
1853
|
subtitle: n,
|
|
@@ -1871,11 +1875,11 @@ const ft = ({
|
|
|
1871
1875
|
...c
|
|
1872
1876
|
}) => /* @__PURE__ */ s.jsx("span", { className: $("pill", e, t, n), ...c, children: r });
|
|
1873
1877
|
const Xt = ({ element: e = "p", children: t = null, className: n = "", ...r }) => A.createElement(e, { ...r, className: $("status-banner text-small", n), "aria-live": "assertive" }, t);
|
|
1874
|
-
const
|
|
1878
|
+
const ur = ({ progress: e = 0, text: t = !1, className: n = "" }) => {
|
|
1875
1879
|
const r = D(), c = e > 75 ? 100 : e > 50 ? 75 : e > 25 ? 50 : e > 5 ? 25 : 0, i = { "--progress": `${e}%` };
|
|
1876
1880
|
return /* @__PURE__ */ s.jsx("span", { className: $(`progress-bar section-${c}`, n), style: i, children: /* @__PURE__ */ s.jsx(_e, { children: t ? `${e} ${t}` : r.formatMessage({ id: "progressBar" }, { number: e }) }) });
|
|
1877
|
-
},
|
|
1878
|
-
const At = "loadingBlock_",
|
|
1881
|
+
}, mr = We(ur);
|
|
1882
|
+
const At = "loadingBlock_", fr = ({ progress: e = 0, steps: t = !1, className: n = "" }) => {
|
|
1879
1883
|
const r = D();
|
|
1880
1884
|
t || (t = {
|
|
1881
1885
|
0: { text: r.formatMessage({ id: `${At}loading` }) },
|
|
@@ -1895,11 +1899,11 @@ const At = "loadingBlock_", mr = ({ progress: e = 0, steps: t = !1, className: n
|
|
|
1895
1899
|
style: u,
|
|
1896
1900
|
children: [
|
|
1897
1901
|
c && /* @__PURE__ */ s.jsx("span", { className: "step", children: t[c].text }),
|
|
1898
|
-
/* @__PURE__ */ s.jsx(
|
|
1902
|
+
/* @__PURE__ */ s.jsx(mr, { progress: e })
|
|
1899
1903
|
]
|
|
1900
1904
|
}
|
|
1901
1905
|
);
|
|
1902
|
-
},
|
|
1906
|
+
}, za = We(fr);
|
|
1903
1907
|
const Se = ({ element: e = "div", className: t = "", ...n }) => /* @__PURE__ */ s.jsx(Nn, { element: e, className: $("loading-placeholder", t), ...n });
|
|
1904
1908
|
const Zt = {
|
|
1905
1909
|
header: ["logo", "link", "link", "search"],
|
|
@@ -1918,10 +1922,10 @@ const Zt = {
|
|
|
1918
1922
|
"cards-section",
|
|
1919
1923
|
"footer"
|
|
1920
1924
|
]
|
|
1921
|
-
}, In = (e, t) => e in Zt ? /* @__PURE__ */ s.jsx("div", { className: e, children: Zt[e].map((n, r) => In(n, r)) }, t) : /* @__PURE__ */ s.jsx(Se, { className: e }, t),
|
|
1925
|
+
}, In = (e, t) => e in Zt ? /* @__PURE__ */ s.jsx("div", { className: e, children: Zt[e].map((n, r) => In(n, r)) }, t) : /* @__PURE__ */ s.jsx(Se, { className: e }, t), Va = ({ layout: e = "overview-page", ...t }) => /* @__PURE__ */ s.jsx("div", { className: $("loading-state", e), ...t, children: Zt[e].map((n, r) => In(n, r)) }), Bn = (e) => {
|
|
1922
1926
|
const t = e && e.toUpperCase().split(" ");
|
|
1923
1927
|
return Array.isArray(t) && t.length > 1 && t[0] !== "" ? t[1] === "" ? t[0][0] : t[0][0] + t[t.length - 1][0] : e ? e.substr(0, 1) : "";
|
|
1924
|
-
}, st = ["#5AB6A3", "#A2D7AF", "#806056", "#3962B3"],
|
|
1928
|
+
}, st = ["#5AB6A3", "#A2D7AF", "#806056", "#3962B3"], hr = (e) => {
|
|
1925
1929
|
const t = Math.ceil(26 / st.length), n = Bn(e).toLowerCase();
|
|
1926
1930
|
if (n === "")
|
|
1927
1931
|
return st[0];
|
|
@@ -1948,7 +1952,7 @@ const wn = 256, qe = ({
|
|
|
1948
1952
|
if (!h)
|
|
1949
1953
|
return;
|
|
1950
1954
|
const p = c, g = i;
|
|
1951
|
-
typeof window < "u" && window.devicePixelRatio && (m.width = p * window.devicePixelRatio, m.height = g * window.devicePixelRatio, h.scale(window.devicePixelRatio, window.devicePixelRatio)), h.fillStyle =
|
|
1955
|
+
typeof window < "u" && window.devicePixelRatio && (m.width = p * window.devicePixelRatio, m.height = g * window.devicePixelRatio, h.scale(window.devicePixelRatio, window.devicePixelRatio)), h.fillStyle = hr(n), h.fillRect(0, 0, p, g), h.font = `${p / 3}px Arial`, h.textAlign = "center", h.fillStyle = "white", h.fillText(Bn(n), p / 2, g / 1.6);
|
|
1952
1956
|
}, [n]);
|
|
1953
1957
|
let d = !1;
|
|
1954
1958
|
return t && t !== "" && !a && (t.includes("http") || t.includes("//")) && (d = !0), /* @__PURE__ */ s.jsx(
|
|
@@ -1981,7 +1985,7 @@ const wn = 256, qe = ({
|
|
|
1981
1985
|
country: e.location && e.location.country || "",
|
|
1982
1986
|
url: `/profiles/${e.id}`,
|
|
1983
1987
|
image: e.image && e.image.thumbnail
|
|
1984
|
-
},
|
|
1988
|
+
}, pr = ({
|
|
1985
1989
|
role: e = "",
|
|
1986
1990
|
organisation: t = "",
|
|
1987
1991
|
country: n = "",
|
|
@@ -2004,7 +2008,7 @@ const tn = ({
|
|
|
2004
2008
|
}) => {
|
|
2005
2009
|
const u = D(), a = Qn(t);
|
|
2006
2010
|
a.name || (a.name = u.formatMessage({ id: `member_${typeof t == "string" ? t : "community"}` }));
|
|
2007
|
-
const { name: l, url: o, image: d } = a, m =
|
|
2011
|
+
const { name: l, url: o, image: d } = a, m = pr(a), h = n && n.createdAt ? Gt(n.createdAt) : !1, p = n && n.createdAt ? Pn(n.createdAt) : "";
|
|
2008
2012
|
return A.createElement(e, {
|
|
2009
2013
|
className: $("member text-medium", i),
|
|
2010
2014
|
children: /* @__PURE__ */ s.jsxs(
|
|
@@ -2075,7 +2079,7 @@ const vn = {
|
|
|
2075
2079
|
className: $({ "large-number": b > 99 }),
|
|
2076
2080
|
children: [
|
|
2077
2081
|
"+",
|
|
2078
|
-
|
|
2082
|
+
zs(b, 0)
|
|
2079
2083
|
]
|
|
2080
2084
|
}
|
|
2081
2085
|
), g = "number-left";
|
|
@@ -2085,7 +2089,7 @@ const vn = {
|
|
|
2085
2089
|
r && /* @__PURE__ */ s.jsx("span", { className: "label", children: typeof r == "string" ? r : n.length === 1 ? typeof n[0] == "string" ? d.formatMessage({ id: `member_${n[0]}` }) : Qe(n[0].name || "", 20) : null })
|
|
2086
2090
|
] })
|
|
2087
2091
|
});
|
|
2088
|
-
},
|
|
2092
|
+
}, gr = ({ showDevTools: e = !0, children: t }) => {
|
|
2089
2093
|
const n = new vs({
|
|
2090
2094
|
// default options we would like on all queries can be overridden individually
|
|
2091
2095
|
defaultOptions: {
|
|
@@ -2102,15 +2106,15 @@ const vn = {
|
|
|
2102
2106
|
e && /* @__PURE__ */ s.jsx(js, { initialIsOpen: !1 })
|
|
2103
2107
|
] });
|
|
2104
2108
|
};
|
|
2105
|
-
var
|
|
2106
|
-
function
|
|
2109
|
+
var _r = Kt({ client: dt });
|
|
2110
|
+
function xr(e) {
|
|
2107
2111
|
var t = e.children, n = e.client, r = e.apiKey, c = e.options, i = xt(function() {
|
|
2108
2112
|
return n && r && console.warn("[PostHog.js] You have provided both a client and an apiKey to PostHogProvider. The apiKey will be ignored in favour of the client."), n && c && console.warn("[PostHog.js] You have provided both a client and options to PostHogProvider. The options will be ignored in favour of the client."), n || (r && (dt.__loaded && console.warn("[PostHog.js] was already loaded elsewhere. This may cause issues."), dt.init(r, c)), dt);
|
|
2109
2113
|
}, [n, r]);
|
|
2110
|
-
return A.createElement(
|
|
2114
|
+
return A.createElement(_r.Provider, { value: { client: i } }, t);
|
|
2111
2115
|
}
|
|
2112
|
-
const
|
|
2113
|
-
|
|
2116
|
+
const br = ({ children: e, user: t }) => t.isLoading ? null : process.env.REACT_APP_PUBLIC_POSTHOG_KEY ? /* @__PURE__ */ s.jsx(
|
|
2117
|
+
xr,
|
|
2114
2118
|
{
|
|
2115
2119
|
apiKey: atob(process.env.REACT_APP_PUBLIC_POSTHOG_KEY),
|
|
2116
2120
|
options: {
|
|
@@ -2125,17 +2129,19 @@ const xr = ({ children: e, user: t }) => t.isLoading ? null : process.env.REACT_
|
|
|
2125
2129
|
},
|
|
2126
2130
|
children: e
|
|
2127
2131
|
}
|
|
2128
|
-
) : e,
|
|
2132
|
+
) : e, wr = ({ children: e, locale: t, messages: n }) => {
|
|
2129
2133
|
const r = t || "en", c = {
|
|
2130
|
-
...
|
|
2134
|
+
...Ws[r],
|
|
2131
2135
|
...n || {}
|
|
2132
2136
|
};
|
|
2133
2137
|
return /* @__PURE__ */ s.jsx(bs, { locale: r, messages: c, children: e });
|
|
2134
|
-
}, $e = Kt(null),
|
|
2138
|
+
}, $e = Kt(null), vr = ({ children: e, user: t }) => /* @__PURE__ */ s.jsx($e.Provider, { value: t, children: e }), Ya = ({ bootstrap: e, children: t, intl: n }) => {
|
|
2135
2139
|
const [r, c] = L({ isLoading: !0 });
|
|
2136
2140
|
return Y(() => {
|
|
2137
|
-
e().then((i) =>
|
|
2138
|
-
|
|
2141
|
+
e().then((i) => {
|
|
2142
|
+
c({ ...i, isLoading: !1 }), Vs(5e3);
|
|
2143
|
+
}).catch(() => c({ isLoading: !1 }));
|
|
2144
|
+
}, []), /* @__PURE__ */ s.jsx(wr, { locale: n == null ? void 0 : n.locale, messages: n == null ? void 0 : n.messages, children: /* @__PURE__ */ s.jsx(ys, { children: /* @__PURE__ */ s.jsx(vr, { user: r, children: /* @__PURE__ */ s.jsx(gr, { children: /* @__PURE__ */ s.jsx(br, { user: r, children: t }) }) }) }) });
|
|
2139
2145
|
};
|
|
2140
2146
|
const Pt = "joinCommunityButton", Un = ({ isMember: e = !1, isShort: t = !1, functions: { join: n, leave: r } = { join: () => {
|
|
2141
2147
|
}, leave: () => {
|
|
@@ -2162,7 +2168,7 @@ const Pt = "joinCommunityButton", Un = ({ isMember: e = !1, isShort: t = !1, fun
|
|
|
2162
2168
|
}
|
|
2163
2169
|
);
|
|
2164
2170
|
};
|
|
2165
|
-
const Rt = "communityDetails_",
|
|
2171
|
+
const Rt = "communityDetails_", Ga = ({
|
|
2166
2172
|
className: e = "",
|
|
2167
2173
|
isMember: t = !1,
|
|
2168
2174
|
slug: n,
|
|
@@ -2209,7 +2215,7 @@ const Rt = "communityDetails_", Ya = ({
|
|
|
2209
2215
|
)
|
|
2210
2216
|
] });
|
|
2211
2217
|
};
|
|
2212
|
-
const
|
|
2218
|
+
const Ja = ({
|
|
2213
2219
|
breadcrumbs: e,
|
|
2214
2220
|
cutoff: t = 20,
|
|
2215
2221
|
className: n = ""
|
|
@@ -2223,7 +2229,7 @@ const Ga = ({
|
|
|
2223
2229
|
] }, `${window.btoa(c)}_${a}`)) })
|
|
2224
2230
|
] });
|
|
2225
2231
|
};
|
|
2226
|
-
const
|
|
2232
|
+
const Xa = ({
|
|
2227
2233
|
options: e,
|
|
2228
2234
|
allOption: t = !1,
|
|
2229
2235
|
allowMultiple: n = !0,
|
|
@@ -2250,7 +2256,7 @@ const Ja = ({
|
|
|
2250
2256
|
}
|
|
2251
2257
|
) }, d);
|
|
2252
2258
|
}) });
|
|
2253
|
-
},
|
|
2259
|
+
}, kr = (e, t) => {
|
|
2254
2260
|
const n = String(e);
|
|
2255
2261
|
if (!t || !t.length)
|
|
2256
2262
|
return `/${n}`;
|
|
@@ -2259,7 +2265,7 @@ const Ja = ({
|
|
|
2259
2265
|
i === "before-lang" ? r += `/${c}` : (r.includes(`/${n}/`) || (r += `/${n}`), r += `/${c}`);
|
|
2260
2266
|
}), r.includes(`/${n}/`) || (r += `/${n}`), r;
|
|
2261
2267
|
};
|
|
2262
|
-
const Ft = { en: "English", es: "Español", fr: "Français", pt: "Português" }, rt = "languageSwitcher_",
|
|
2268
|
+
const Ft = { en: "English", es: "Español", fr: "Français", pt: "Português" }, rt = "languageSwitcher_", Za = ({
|
|
2263
2269
|
currentLanguage: e,
|
|
2264
2270
|
isOriginalLanguage: t = !1,
|
|
2265
2271
|
isHumanTranslation: n = !1,
|
|
@@ -2286,7 +2292,7 @@ const Ft = { en: "English", es: "Español", fr: "Français", pt: "Português" },
|
|
|
2286
2292
|
let v = { className: b };
|
|
2287
2293
|
return d === b ? v["aria-label"] = o.formatMessage({ id: `${rt}selected` }, { language: Ft[b] }) : v = {
|
|
2288
2294
|
...v,
|
|
2289
|
-
href:
|
|
2295
|
+
href: kr(b, i),
|
|
2290
2296
|
onClick: (E) => {
|
|
2291
2297
|
E.preventDefault(), E.stopPropagation(), m(b), c(b);
|
|
2292
2298
|
}
|
|
@@ -2308,7 +2314,7 @@ const Ft = { en: "English", es: "Español", fr: "Français", pt: "Português" },
|
|
|
2308
2314
|
})
|
|
2309
2315
|
] });
|
|
2310
2316
|
};
|
|
2311
|
-
const Lt = ws({ locale: "en", messages: qt }),
|
|
2317
|
+
const Lt = ws({ locale: "en", messages: qt }), jr = ({
|
|
2312
2318
|
page: e = 1,
|
|
2313
2319
|
length: t = 0,
|
|
2314
2320
|
limit: n = 10,
|
|
@@ -2352,7 +2358,7 @@ const Lt = ws({ locale: "en", messages: qt }), kr = ({
|
|
|
2352
2358
|
};
|
|
2353
2359
|
const Wn = ({ variant: e = "default", version: t = "default", className: n = "", ...r }) => /* @__PURE__ */ s.jsx("p", { className: "logo-wrapper", children: /* @__PURE__ */ s.jsx("a", { href: "/home/", className: $("logo", e, t, n), ...r, children: /* @__PURE__ */ s.jsx(_e, { children: /* @__PURE__ */ s.jsx(Pe, { id: "apolitical" }) }) }) });
|
|
2354
2360
|
let at = !1;
|
|
2355
|
-
const
|
|
2361
|
+
const yr = ({ element: e = "div", id: t = "more-menu", options: n, className: r = "" }) => {
|
|
2356
2362
|
const c = D(), i = de(null), [u, a] = L(!1), l = (o) => {
|
|
2357
2363
|
i.current && o.target instanceof HTMLElement && !i.current.contains(o.target) && a(!1);
|
|
2358
2364
|
};
|
|
@@ -2403,8 +2409,8 @@ const jr = ({ element: e = "div", id: t = "more-menu", options: n, className: r
|
|
|
2403
2409
|
}) })
|
|
2404
2410
|
] })
|
|
2405
2411
|
});
|
|
2406
|
-
},
|
|
2407
|
-
const
|
|
2412
|
+
}, Er = (e, t = !1) => t ? e.replaceAll("/", "") === t : typeof window < "u" && window.location && window.location.pathname === e;
|
|
2413
|
+
const Sr = [
|
|
2408
2414
|
{
|
|
2409
2415
|
key: "homepage",
|
|
2410
2416
|
href: "/home/"
|
|
@@ -2425,13 +2431,13 @@ const Er = [
|
|
|
2425
2431
|
key: "articles",
|
|
2426
2432
|
href: "/solution-articles/"
|
|
2427
2433
|
}
|
|
2428
|
-
],
|
|
2434
|
+
], $r = ({ activeLink: e }) => {
|
|
2429
2435
|
const t = D(), n = je($e), r = n && typeof n.id == "string";
|
|
2430
2436
|
return /* @__PURE__ */ s.jsxs("ul", { id: "navigation-menu", className: "text-medium", children: [
|
|
2431
|
-
|
|
2437
|
+
Sr.map(({ key: c, href: i }) => /* @__PURE__ */ s.jsx(
|
|
2432
2438
|
"li",
|
|
2433
2439
|
{
|
|
2434
|
-
className: $(c, { active:
|
|
2440
|
+
className: $(c, { active: Er(i, e) }),
|
|
2435
2441
|
children: /* @__PURE__ */ s.jsx(
|
|
2436
2442
|
"a",
|
|
2437
2443
|
{
|
|
@@ -2465,7 +2471,7 @@ const Er = [
|
|
|
2465
2471
|
}
|
|
2466
2472
|
) })
|
|
2467
2473
|
] });
|
|
2468
|
-
}, Xe = (e, t, n) => `${e}?share=${t}${n ? `&uuid=${n}` : ""}`,
|
|
2474
|
+
}, Xe = (e, t, n) => `${e}?share=${t}${n ? `&uuid=${n}` : ""}`, Tr = ({
|
|
2469
2475
|
title: e,
|
|
2470
2476
|
link: t,
|
|
2471
2477
|
referrer: n
|
|
@@ -2508,7 +2514,7 @@ ${Xe(t, "mailto", n)}&src=email`
|
|
|
2508
2514
|
onClick: (r, c) => (r.preventDefault(), r.stopPropagation(), navigator.clipboard.writeText(c))
|
|
2509
2515
|
}
|
|
2510
2516
|
];
|
|
2511
|
-
const
|
|
2517
|
+
const Mr = "shareLinks_", Ka = ({
|
|
2512
2518
|
title: e,
|
|
2513
2519
|
link: t,
|
|
2514
2520
|
referrer: n,
|
|
@@ -2517,7 +2523,7 @@ const Tr = "shareLinks_", Za = ({
|
|
|
2517
2523
|
variant: i = "default",
|
|
2518
2524
|
className: u = ""
|
|
2519
2525
|
}) => {
|
|
2520
|
-
const a = D(), l =
|
|
2526
|
+
const a = D(), l = Tr({ title: e, link: t, referrer: n });
|
|
2521
2527
|
return /* @__PURE__ */ s.jsxs("aside", { className: $("share-links", c, i, u), children: [
|
|
2522
2528
|
/* @__PURE__ */ s.jsx("p", { className: "text-small", children: a.formatMessage({ id: "shareLinks_label" }) }),
|
|
2523
2529
|
/* @__PURE__ */ s.jsx("ul", { children: l.map(({ key: o, icon: d, url: m, shouldRender: h = !0, onClick: p }) => {
|
|
@@ -2537,17 +2543,17 @@ const Tr = "shareLinks_", Za = ({
|
|
|
2537
2543
|
"data-gtm-event-context": `${r}-SocialButtons`,
|
|
2538
2544
|
"data-gtm-event-type": `${o}-click`,
|
|
2539
2545
|
"data-testid": "link",
|
|
2540
|
-
screenreaderText: a.formatMessage({ id: `${
|
|
2546
|
+
screenreaderText: a.formatMessage({ id: `${Mr}link_${o}` }),
|
|
2541
2547
|
...g
|
|
2542
2548
|
}
|
|
2543
2549
|
) }, o);
|
|
2544
2550
|
}) })
|
|
2545
2551
|
] });
|
|
2546
2552
|
};
|
|
2547
|
-
const
|
|
2553
|
+
const Nr = {
|
|
2548
2554
|
"2-1": 901,
|
|
2549
2555
|
"1-3": 769
|
|
2550
|
-
},
|
|
2556
|
+
}, Dr = ({
|
|
2551
2557
|
layout: e = "2-1",
|
|
2552
2558
|
hideOnMobile: t = !1,
|
|
2553
2559
|
className: n = "",
|
|
@@ -2555,12 +2561,12 @@ const Mr = {
|
|
|
2555
2561
|
}) => {
|
|
2556
2562
|
const c = vt(!0);
|
|
2557
2563
|
let i = r;
|
|
2558
|
-
return A.Children.count(r) === 1 && (i = A.Children.toArray(r)[0], i.props && (i = i.props.children)), /* @__PURE__ */ s.jsx("section", { className: $("columns", `layout-${e}`, n), children: A.Children.map(i, (u, a) => t !== !1 && a === t && c && c <
|
|
2559
|
-
},
|
|
2560
|
-
/* @__PURE__ */ s.jsx(
|
|
2561
|
-
/* @__PURE__ */ s.jsx(
|
|
2564
|
+
return A.Children.count(r) === 1 && (i = A.Children.toArray(r)[0], i.props && (i = i.props.children)), /* @__PURE__ */ s.jsx("section", { className: $("columns", `layout-${e}`, n), children: A.Children.map(i, (u, a) => t !== !1 && a === t && c && c < Nr[e] ? null : u) });
|
|
2565
|
+
}, qa = ({ activeLink: e, ...t }) => /* @__PURE__ */ s.jsx(Dr, { layout: "1-3", children: /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
|
|
2566
|
+
/* @__PURE__ */ s.jsx($r, { activeLink: e }),
|
|
2567
|
+
/* @__PURE__ */ s.jsx(dr, { ...t })
|
|
2562
2568
|
] }) });
|
|
2563
|
-
const Ot = "cookieBanner_", It = ["apol-cookie-banner", "apolitical-performance-cookie-consent", "functional-cookie-consent"], Bt = new Date(Date.now() + 12 * 30 * 24 * 60 * 60 * 1e3),
|
|
2569
|
+
const Ot = "cookieBanner_", It = ["apol-cookie-banner", "apolitical-performance-cookie-consent", "functional-cookie-consent"], Bt = new Date(Date.now() + 12 * 30 * 24 * 60 * 60 * 1e3), Cr = () => {
|
|
2564
2570
|
const e = D(), [t, n, r] = Es(It), [c, i] = L(!t["apol-cookie-banner"]), u = () => {
|
|
2565
2571
|
It.forEach((d) => {
|
|
2566
2572
|
n(d, !0, {
|
|
@@ -2774,7 +2780,7 @@ const Be = "footer_", ht = "SiteFooter", kn = ({ group: e }) => {
|
|
|
2774
2780
|
/* @__PURE__ */ s.jsx("small", { children: /* @__PURE__ */ s.jsx(Pe, { id: `${Be}copyright`, values: { currentYear: (/* @__PURE__ */ new Date()).getFullYear() } }) })
|
|
2775
2781
|
] })
|
|
2776
2782
|
] }) });
|
|
2777
|
-
const ot = "emailHelperTextBox_",
|
|
2783
|
+
const ot = "emailHelperTextBox_", eo = ({ type: e, email: t, redirectPath: n, resendVerificationCode: r }) => {
|
|
2778
2784
|
const c = D(), [i, u] = L({ path: `${ot}default`, type: "default", link: {}, mail: {}, error: "" }), [a, l] = L(!1), o = Me(
|
|
2779
2785
|
(p) => {
|
|
2780
2786
|
p.preventDefault(), p.stopPropagation();
|
|
@@ -2874,7 +2880,7 @@ const ot = "emailHelperTextBox_", qa = ({ type: e, email: t, redirectPath: n, re
|
|
|
2874
2880
|
const d = {};
|
|
2875
2881
|
return ["link", "mail"].forEach((p) => {
|
|
2876
2882
|
d[p] = Object.keys(i[p]).length ? (g) => /* @__PURE__ */ s.jsx("a", { ...i[p], children: g }) : (g) => g;
|
|
2877
|
-
}), /* @__PURE__ */ s.jsx(
|
|
2883
|
+
}), /* @__PURE__ */ s.jsx(tr, { type: i.type, heading: a ? !1 : c.formatMessage({ id: `${i.path}_title` }), children: a ? /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
|
|
2878
2884
|
/* @__PURE__ */ s.jsx(Se, { element: "span" }),
|
|
2879
2885
|
/* @__PURE__ */ s.jsx(Se, { element: "span" })
|
|
2880
2886
|
] }) : (
|
|
@@ -2896,11 +2902,11 @@ const ot = "emailHelperTextBox_", qa = ({ type: e, email: t, redirectPath: n, re
|
|
|
2896
2902
|
)
|
|
2897
2903
|
) });
|
|
2898
2904
|
};
|
|
2899
|
-
const it = "passwordRules_", Vn = "isMoreThanEightCharacters", Yn = "includesNumberAndSymbol", Gn = "includesLowerAndUppercase",
|
|
2905
|
+
const it = "passwordRules_", Vn = "isMoreThanEightCharacters", Yn = "includesNumberAndSymbol", Gn = "includesLowerAndUppercase", Ar = {
|
|
2900
2906
|
[Vn]: "8Characters",
|
|
2901
2907
|
[Yn]: "numberSymbol",
|
|
2902
2908
|
[Gn]: "lowercaseUppercase"
|
|
2903
|
-
},
|
|
2909
|
+
}, Pr = ({ matchingRules: e = { isMoreThanEightCharacters: !1, includesNumberAndSymbol: !1, includesLowerAndUppercase: !1 }, className: t = "" }) => {
|
|
2904
2910
|
const n = D();
|
|
2905
2911
|
return /* @__PURE__ */ s.jsxs("aside", { className: $("password-rules", t), children: [
|
|
2906
2912
|
/* @__PURE__ */ s.jsx("small", { children: n.formatMessage({ id: `${it}intro` }) }),
|
|
@@ -2909,7 +2915,7 @@ const it = "passwordRules_", Vn = "isMoreThanEightCharacters", Yn = "includesNum
|
|
|
2909
2915
|
n.formatMessage({ id: `${it}rule_label` }),
|
|
2910
2916
|
" "
|
|
2911
2917
|
] }),
|
|
2912
|
-
/* @__PURE__ */ s.jsx("span", { children: n.formatMessage({ id: `${it}rule_${
|
|
2918
|
+
/* @__PURE__ */ s.jsx("span", { children: n.formatMessage({ id: `${it}rule_${Ar[r]}` }) }),
|
|
2913
2919
|
!e[r] && /* @__PURE__ */ s.jsxs(_e, { element: "strong", children: [
|
|
2914
2920
|
" ",
|
|
2915
2921
|
" ",
|
|
@@ -2917,8 +2923,8 @@ const it = "passwordRules_", Vn = "isMoreThanEightCharacters", Yn = "includesNum
|
|
|
2917
2923
|
] })
|
|
2918
2924
|
] }, `rule-${r}`)) })
|
|
2919
2925
|
] });
|
|
2920
|
-
},
|
|
2921
|
-
const
|
|
2926
|
+
}, to = We(Pr);
|
|
2927
|
+
const no = ({
|
|
2922
2928
|
text: e = {},
|
|
2923
2929
|
topRating: t = 5,
|
|
2924
2930
|
functions: { createRating: n = () => null, updateRating: r = () => {
|
|
@@ -2978,7 +2984,7 @@ const to = ({
|
|
|
2978
2984
|
}) })
|
|
2979
2985
|
] });
|
|
2980
2986
|
};
|
|
2981
|
-
const
|
|
2987
|
+
const Rr = ({
|
|
2982
2988
|
id: e = "search",
|
|
2983
2989
|
className: t = "",
|
|
2984
2990
|
handleToggle: n = !1,
|
|
@@ -3031,7 +3037,7 @@ const Pr = ({
|
|
|
3031
3037
|
}
|
|
3032
3038
|
);
|
|
3033
3039
|
};
|
|
3034
|
-
const
|
|
3040
|
+
const Fr = ({
|
|
3035
3041
|
title: e,
|
|
3036
3042
|
label: t,
|
|
3037
3043
|
ctaMessage: n,
|
|
@@ -3380,11 +3386,11 @@ const Rr = ({
|
|
|
3380
3386
|
}) })
|
|
3381
3387
|
] }, e);
|
|
3382
3388
|
};
|
|
3383
|
-
const
|
|
3389
|
+
const Lr = { height: 67, height_desktop: 83 }, Jn = ({ showNavigation: e = !0 }) => {
|
|
3384
3390
|
const t = D(), n = je($e), r = vt(!0, !0), c = n && typeof n.id == "string", i = xt(
|
|
3385
3391
|
() => H.getIsDesktopVersion(c, r),
|
|
3386
3392
|
[c, r]
|
|
3387
|
-
), [u, a] = ps(
|
|
3393
|
+
), [u, a] = ps(Gs, {
|
|
3388
3394
|
headerIsVisible: !0,
|
|
3389
3395
|
menus: { navigation: !1, search: !1, account: !1 },
|
|
3390
3396
|
focusElements: {
|
|
@@ -3393,7 +3399,7 @@ const Fr = { height: 67, height_desktop: 83 }, Jn = ({ showNavigation: e = !0 })
|
|
|
3393
3399
|
}
|
|
3394
3400
|
}), { headerIsVisible: l, menus: o, focusElements: d } = u;
|
|
3395
3401
|
Os({
|
|
3396
|
-
scrollPosition:
|
|
3402
|
+
scrollPosition: Lr[`height${i.navigation ? "_desktop" : ""}`],
|
|
3397
3403
|
callbacks: {
|
|
3398
3404
|
scrollUp: () => {
|
|
3399
3405
|
!i && o.navigation || H.shouldChangeHeaderIsVisible(!0, o, a);
|
|
@@ -3502,7 +3508,7 @@ const Fr = { height: 67, height_desktop: 83 }, Jn = ({ showNavigation: e = !0 })
|
|
|
3502
3508
|
}
|
|
3503
3509
|
),
|
|
3504
3510
|
/* @__PURE__ */ s.jsx(
|
|
3505
|
-
|
|
3511
|
+
Rr,
|
|
3506
3512
|
{
|
|
3507
3513
|
id: "global-search",
|
|
3508
3514
|
handleToggle: {
|
|
@@ -3620,12 +3626,12 @@ const Zn = ({
|
|
|
3620
3626
|
] })
|
|
3621
3627
|
}
|
|
3622
3628
|
) });
|
|
3623
|
-
},
|
|
3629
|
+
}, Or = (e, t) => ({
|
|
3624
3630
|
"aria-haspopup": !0,
|
|
3625
3631
|
"aria-expanded": t,
|
|
3626
3632
|
"aria-controls": e
|
|
3627
3633
|
});
|
|
3628
|
-
const
|
|
3634
|
+
const so = ({
|
|
3629
3635
|
className: e,
|
|
3630
3636
|
showModal: t = !0,
|
|
3631
3637
|
title: n,
|
|
@@ -3647,7 +3653,7 @@ const no = ({
|
|
|
3647
3653
|
functions: { onClose: a },
|
|
3648
3654
|
className: $("invite-modal", e, { success: !!n }),
|
|
3649
3655
|
children: /* @__PURE__ */ s.jsx(
|
|
3650
|
-
|
|
3656
|
+
Fr,
|
|
3651
3657
|
{
|
|
3652
3658
|
title: r,
|
|
3653
3659
|
label: c,
|
|
@@ -3659,7 +3665,7 @@ const no = ({
|
|
|
3659
3665
|
)
|
|
3660
3666
|
}
|
|
3661
3667
|
);
|
|
3662
|
-
const
|
|
3668
|
+
const Ir = () => {
|
|
3663
3669
|
const e = D();
|
|
3664
3670
|
return /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
|
|
3665
3671
|
/* @__PURE__ */ s.jsx(Jn, {}),
|
|
@@ -3672,7 +3678,7 @@ const Or = () => {
|
|
|
3672
3678
|
) }),
|
|
3673
3679
|
/* @__PURE__ */ s.jsx(zn, {})
|
|
3674
3680
|
] });
|
|
3675
|
-
},
|
|
3681
|
+
}, Br = ({
|
|
3676
3682
|
children: e,
|
|
3677
3683
|
additionalContent: { prepended: t, appended: n } = {},
|
|
3678
3684
|
reportError: r,
|
|
@@ -3690,7 +3696,7 @@ const Or = () => {
|
|
|
3690
3696
|
}), v = ut(n, {
|
|
3691
3697
|
locale: a
|
|
3692
3698
|
}), E = {};
|
|
3693
|
-
return d !== "default" && (E[d] = !0), m !== "default" && (E[m] = !0), h !== "default" && (E[h] = !0), /* @__PURE__ */ s.jsx($s, { onError: r, fallback: /* @__PURE__ */ s.jsx(
|
|
3699
|
+
return d !== "default" && (E[d] = !0), m !== "default" && (E[m] = !0), h !== "default" && (E[h] = !0), /* @__PURE__ */ s.jsx($s, { onError: r, fallback: /* @__PURE__ */ s.jsx(Ir, {}), children: /* @__PURE__ */ s.jsx(gs, { fallback: null, children: /* @__PURE__ */ s.jsxs(
|
|
3694
3700
|
"div",
|
|
3695
3701
|
{
|
|
3696
3702
|
id: "wrapper",
|
|
@@ -3706,7 +3712,7 @@ const Or = () => {
|
|
|
3706
3712
|
] }),
|
|
3707
3713
|
v && /* @__PURE__ */ s.jsx("div", { className: "additional-content appended", children: v }),
|
|
3708
3714
|
o && /* @__PURE__ */ s.jsx(zn, {}),
|
|
3709
|
-
/* @__PURE__ */ s.jsx(
|
|
3715
|
+
/* @__PURE__ */ s.jsx(Cr, {})
|
|
3710
3716
|
]
|
|
3711
3717
|
}
|
|
3712
3718
|
) }) });
|
|
@@ -3729,7 +3735,7 @@ const Or = () => {
|
|
|
3729
3735
|
WorkAndTheEconomy: "work-and-the-economy"
|
|
3730
3736
|
},
|
|
3731
3737
|
"from the community": "community"
|
|
3732
|
-
},
|
|
3738
|
+
}, Qr = {
|
|
3733
3739
|
getTagDetails: (e) => {
|
|
3734
3740
|
if (e.includes("topic_")) {
|
|
3735
3741
|
if (e = Qt.topic[e.replace("topic_", "")], e) {
|
|
@@ -3741,7 +3747,7 @@ const Or = () => {
|
|
|
3741
3747
|
return Qt[e] ? (e = Qt[e], { id: e, text: `${jn.default}${e}` }) : null;
|
|
3742
3748
|
}
|
|
3743
3749
|
};
|
|
3744
|
-
const
|
|
3750
|
+
const ro = ({
|
|
3745
3751
|
tags: e = [],
|
|
3746
3752
|
color: t = "default",
|
|
3747
3753
|
forceOneLine: n = !1,
|
|
@@ -3757,7 +3763,7 @@ const so = ({
|
|
|
3757
3763
|
return e.forEach((o) => {
|
|
3758
3764
|
if (!o)
|
|
3759
3765
|
return;
|
|
3760
|
-
const d =
|
|
3766
|
+
const d = Qr.getTagDetails(o);
|
|
3761
3767
|
d && l.push(d);
|
|
3762
3768
|
}), l.length < 1 ? null : /* @__PURE__ */ s.jsx("ul", { className: $("tags text-small", t, c, { "one-line": n }), children: l.map((o) => {
|
|
3763
3769
|
const d = a.formatMessage({ id: o.text });
|
|
@@ -3773,7 +3779,7 @@ const so = ({
|
|
|
3773
3779
|
) : d }, o.id);
|
|
3774
3780
|
}) });
|
|
3775
3781
|
};
|
|
3776
|
-
const
|
|
3782
|
+
const ao = ({
|
|
3777
3783
|
members: { total: e, data: t = [] },
|
|
3778
3784
|
pagination: n,
|
|
3779
3785
|
gtmContext: r = "member",
|
|
@@ -3791,7 +3797,7 @@ const ro = ({
|
|
|
3791
3797
|
a.isAdmin && /* @__PURE__ */ s.jsx(ft, { children: u.formatMessage({ id: "membersList_admin" }) })
|
|
3792
3798
|
] }, l)) }),
|
|
3793
3799
|
n && /* @__PURE__ */ s.jsx(
|
|
3794
|
-
|
|
3800
|
+
jr,
|
|
3795
3801
|
{
|
|
3796
3802
|
...n,
|
|
3797
3803
|
icon: { icon: "arrow-down", position: "right" },
|
|
@@ -3899,7 +3905,7 @@ const ve = "discussion_form_", Kn = ({
|
|
|
3899
3905
|
default:
|
|
3900
3906
|
break;
|
|
3901
3907
|
}
|
|
3902
|
-
await
|
|
3908
|
+
await Js(1e3), a.callback && await a.callback(w), ct = setTimeout(() => {
|
|
3903
3909
|
h(""), v("submitted"), C();
|
|
3904
3910
|
}, 500);
|
|
3905
3911
|
} catch (w) {
|
|
@@ -3921,7 +3927,7 @@ const ve = "discussion_form_", Kn = ({
|
|
|
3921
3927
|
ct = setTimeout(() => {
|
|
3922
3928
|
g(!1), v(!1);
|
|
3923
3929
|
}, 5e3);
|
|
3924
|
-
}, R = !m || !
|
|
3930
|
+
}, R = !m || !Ys(m), V = b === "submitting", N = [];
|
|
3925
3931
|
return (n.isEditing && !V || u.cancel) && N.push({
|
|
3926
3932
|
variant: "secondary",
|
|
3927
3933
|
size: { mobile: "small", 600: "medium" },
|
|
@@ -4039,16 +4045,16 @@ const ve = "discussion_form_", Kn = ({
|
|
|
4039
4045
|
create: t
|
|
4040
4046
|
}
|
|
4041
4047
|
}
|
|
4042
|
-
),
|
|
4048
|
+
), Hr = {
|
|
4043
4049
|
showThread: !1,
|
|
4044
4050
|
showForm: !1
|
|
4045
|
-
}, Et = Kt(
|
|
4051
|
+
}, Et = Kt(Hr), Ur = ({ children: e }) => {
|
|
4046
4052
|
const [t, n] = L({
|
|
4047
4053
|
showThread: !1,
|
|
4048
4054
|
showForm: !1
|
|
4049
4055
|
});
|
|
4050
4056
|
return /* @__PURE__ */ s.jsx(Et.Provider, { value: { ...t, updateConversation: n }, children: e });
|
|
4051
|
-
},
|
|
4057
|
+
}, Wr = ({
|
|
4052
4058
|
question: e,
|
|
4053
4059
|
answer: t,
|
|
4054
4060
|
reply: n
|
|
@@ -4056,11 +4062,11 @@ const ve = "discussion_form_", Kn = ({
|
|
|
4056
4062
|
...e && { questionSlug: e },
|
|
4057
4063
|
...t && { answerSlug: t },
|
|
4058
4064
|
...n && { replySlug: n }
|
|
4059
|
-
}),
|
|
4065
|
+
}), zr = (e, t = 10) => !e || e.length === 0 ? [] : e.slice(0, t);
|
|
4060
4066
|
let Ke = !1;
|
|
4061
4067
|
const Ht = () => {
|
|
4062
4068
|
Ke !== !1 && (clearTimeout(Ke), Ke = !1);
|
|
4063
|
-
}, Ut = 5,
|
|
4069
|
+
}, Ut = 5, Vr = ({
|
|
4064
4070
|
element: e = "div",
|
|
4065
4071
|
likes: t = 0,
|
|
4066
4072
|
peopleWhoLiked: n = !1,
|
|
@@ -4076,7 +4082,7 @@ const Ht = () => {
|
|
|
4076
4082
|
Y(() => {
|
|
4077
4083
|
p(c);
|
|
4078
4084
|
}, [c]);
|
|
4079
|
-
const [d, m] = L(t), [h, p] = L(c), [g, b] = L(!1), [v, E] = L(!1), k = xt(() =>
|
|
4085
|
+
const [d, m] = L(t), [h, p] = L(c), [g, b] = L(!1), [v, E] = L(!1), k = xt(() => zr(n, Ut), [n]), _ = (C) => {
|
|
4080
4086
|
if (C.preventDefault(), C.stopPropagation(), E(!1), Ke)
|
|
4081
4087
|
return Ht(), !1;
|
|
4082
4088
|
if (Ht(), g || !u)
|
|
@@ -4089,7 +4095,7 @@ const Ht = () => {
|
|
|
4089
4095
|
C < 0 && (C = 0), b(!0), m(C), p(!h);
|
|
4090
4096
|
try {
|
|
4091
4097
|
if (i && i.slugs) {
|
|
4092
|
-
const R =
|
|
4098
|
+
const R = Wr(i.slugs);
|
|
4093
4099
|
h ? await l(R) : await a(R, { contentPath: window.location.pathname });
|
|
4094
4100
|
}
|
|
4095
4101
|
} catch {
|
|
@@ -4135,7 +4141,7 @@ const Ht = () => {
|
|
|
4135
4141
|
}
|
|
4136
4142
|
),
|
|
4137
4143
|
/* @__PURE__ */ s.jsx("span", { className: $("number-of-likes", { "no-likes": d === 0 }), "data-testid": "number-of-likes", children: o.formatMessage({ id: `discussion_likes${r ? "_short" : ""}` }, { number: d }) }),
|
|
4138
|
-
n && /* @__PURE__ */ s.jsx(
|
|
4144
|
+
n && /* @__PURE__ */ s.jsx(Ks, { isOpen: v, isLoading: n.length === 0, children: n.length && /* @__PURE__ */ s.jsxs("ul", { children: [
|
|
4139
4145
|
k.map((C) => typeof C == "string" || !C.name ? null : /* @__PURE__ */ s.jsx("li", { children: /* @__PURE__ */ s.jsx(
|
|
4140
4146
|
jt,
|
|
4141
4147
|
{
|
|
@@ -4155,7 +4161,7 @@ const Ht = () => {
|
|
|
4155
4161
|
const t = {};
|
|
4156
4162
|
return Object.keys(e).forEach((n) => n.includes("Id") ? t[n] = e[n] : t[`${n}Slug`] = e[n]), t;
|
|
4157
4163
|
}, sn = (e, t) => e && !t;
|
|
4158
|
-
const De = "discussion_",
|
|
4164
|
+
const De = "discussion_", Yr = 280, St = ({
|
|
4159
4165
|
element: e = "div",
|
|
4160
4166
|
content: t,
|
|
4161
4167
|
userHasPermissions: n = !0,
|
|
@@ -4195,7 +4201,7 @@ const De = "discussion_", Vr = 280, St = ({
|
|
|
4195
4201
|
});
|
|
4196
4202
|
}, [t.isEdited]), r || !t || t.type === "answer" && (!t.slugs || !t.slugs.question))
|
|
4197
4203
|
return /* @__PURE__ */ s.jsx(Se, { className: "discussion-card discussion-post" });
|
|
4198
|
-
const { author: P, canLike: G, createdAt: x, id: K, likes: j = 0, userLiked: w, comments: z = 0 } = t, X = b ? Qe(_.body,
|
|
4204
|
+
const { author: P, canLike: G, createdAt: x, id: K, likes: j = 0, userLiked: w, comments: z = 0 } = t, X = b ? Qe(_.body, Yr) : _.body, se = E && E.id && typeof P != "string" && P.id && P.id === E.id || !1, re = typeof G == "boolean" ? G : n ? !se : !1, ae = async (O) => {
|
|
4199
4205
|
O || (O = ""), N("");
|
|
4200
4206
|
try {
|
|
4201
4207
|
if (!Ms(O, _.body)) {
|
|
@@ -4254,7 +4260,7 @@ const De = "discussion_", Vr = 280, St = ({
|
|
|
4254
4260
|
className: "gtm-trackable",
|
|
4255
4261
|
"data-gtm-event-context": p,
|
|
4256
4262
|
"data-gtm-event-type": `delete-${t.type}-click`,
|
|
4257
|
-
...
|
|
4263
|
+
...Or(`delete-${t.slug}-modal`, C)
|
|
4258
4264
|
}
|
|
4259
4265
|
), A.createElement(e, {
|
|
4260
4266
|
className: $("discussion-post", h),
|
|
@@ -4319,7 +4325,7 @@ const De = "discussion_", Vr = 280, St = ({
|
|
|
4319
4325
|
className: "gtm-trackable",
|
|
4320
4326
|
"data-gtm-event-context": p,
|
|
4321
4327
|
"data-gtm-event-type": "title-click",
|
|
4322
|
-
children: /* @__PURE__ */ s.jsx(bn, { options: { overrides: { a:
|
|
4328
|
+
children: /* @__PURE__ */ s.jsx(bn, { options: { overrides: { a: lr } }, children: X })
|
|
4323
4329
|
}
|
|
4324
4330
|
) : /* @__PURE__ */ s.jsx(
|
|
4325
4331
|
bn,
|
|
@@ -4340,7 +4346,7 @@ const De = "discussion_", Vr = 280, St = ({
|
|
|
4340
4346
|
"data-testid": `${t.type}-actions`,
|
|
4341
4347
|
children: [
|
|
4342
4348
|
/* @__PURE__ */ s.jsx(
|
|
4343
|
-
|
|
4349
|
+
Vr,
|
|
4344
4350
|
{
|
|
4345
4351
|
element: "li",
|
|
4346
4352
|
likes: j,
|
|
@@ -4399,7 +4405,7 @@ const De = "discussion_", Vr = 280, St = ({
|
|
|
4399
4405
|
}
|
|
4400
4406
|
) }),
|
|
4401
4407
|
/* @__PURE__ */ s.jsx(
|
|
4402
|
-
|
|
4408
|
+
yr,
|
|
4403
4409
|
{
|
|
4404
4410
|
element: "li",
|
|
4405
4411
|
id: `more-${t.slug}`,
|
|
@@ -4465,14 +4471,14 @@ const De = "discussion_", Vr = 280, St = ({
|
|
|
4465
4471
|
] })
|
|
4466
4472
|
});
|
|
4467
4473
|
};
|
|
4468
|
-
const Wt = "discussion_responses_",
|
|
4474
|
+
const Wt = "discussion_responses_", oo = ({ type: e = "answer", responses: t = 0 }) => {
|
|
4469
4475
|
const n = D();
|
|
4470
4476
|
return /* @__PURE__ */ s.jsxs("div", { className: "responses-heading", children: [
|
|
4471
4477
|
/* @__PURE__ */ s.jsx("h3", { children: n.formatMessage({ id: `${Wt}title` }, { action: n.formatMessage({ id: `${Wt}${e}` }), count: t }) }),
|
|
4472
4478
|
t === 0 && /* @__PURE__ */ s.jsx("p", { children: Te(n.formatMessage, `${Wt}empty`, e, e) })
|
|
4473
4479
|
] });
|
|
4474
4480
|
};
|
|
4475
|
-
const
|
|
4481
|
+
const Gr = ({ count: e = 0, showRepliesButton: t = !0, children: n }) => {
|
|
4476
4482
|
const r = D(), c = de(null), i = je(Et), [u, a] = L(
|
|
4477
4483
|
"closed"
|
|
4478
4484
|
/* Closed */
|
|
@@ -4538,7 +4544,7 @@ const Yr = ({ count: e = 0, showRepliesButton: t = !0, children: n }) => {
|
|
|
4538
4544
|
}
|
|
4539
4545
|
)
|
|
4540
4546
|
] });
|
|
4541
|
-
},
|
|
4547
|
+
}, Jr = ({
|
|
4542
4548
|
user: e,
|
|
4543
4549
|
content: t,
|
|
4544
4550
|
verb: n = "post"
|
|
@@ -4559,7 +4565,7 @@ const Yr = ({ count: e = 0, showRepliesButton: t = !0, children: n }) => {
|
|
|
4559
4565
|
like: 0
|
|
4560
4566
|
},
|
|
4561
4567
|
verb: n
|
|
4562
|
-
}),
|
|
4568
|
+
}), Xr = ({
|
|
4563
4569
|
queryClient: e,
|
|
4564
4570
|
queryKey: t,
|
|
4565
4571
|
user: n,
|
|
@@ -4567,7 +4573,7 @@ const Yr = ({ count: e = 0, showRepliesButton: t = !0, children: n }) => {
|
|
|
4567
4573
|
}) => ({ mutationFn: r, onMutate: async ({ content: a }) => {
|
|
4568
4574
|
if (!n)
|
|
4569
4575
|
return;
|
|
4570
|
-
const l =
|
|
4576
|
+
const l = Jr({ user: n, content: a, verb: "post" });
|
|
4571
4577
|
await e.cancelQueries({ queryKey: t });
|
|
4572
4578
|
const o = e.getQueryData(t);
|
|
4573
4579
|
return e.setQueryData(t, (d) => [...d, l]), { previousActivities: o };
|
|
@@ -4575,7 +4581,7 @@ const Yr = ({ count: e = 0, showRepliesButton: t = !0, children: n }) => {
|
|
|
4575
4581
|
e.setQueryData(t, o.previousActivities);
|
|
4576
4582
|
}, onSettled: () => {
|
|
4577
4583
|
e.invalidateQueries({ queryKey: t });
|
|
4578
|
-
} }),
|
|
4584
|
+
} }), Zr = ({
|
|
4579
4585
|
queryClient: e,
|
|
4580
4586
|
queryKey: t,
|
|
4581
4587
|
mutationFn: n
|
|
@@ -4597,7 +4603,7 @@ const Yr = ({ count: e = 0, showRepliesButton: t = !0, children: n }) => {
|
|
|
4597
4603
|
onSettled: () => {
|
|
4598
4604
|
e.invalidateQueries({ queryKey: t });
|
|
4599
4605
|
}
|
|
4600
|
-
}),
|
|
4606
|
+
}), Kr = ({
|
|
4601
4607
|
queryClient: e,
|
|
4602
4608
|
queryKey: t,
|
|
4603
4609
|
mutationFn: n
|
|
@@ -4613,7 +4619,7 @@ const Yr = ({ count: e = 0, showRepliesButton: t = !0, children: n }) => {
|
|
|
4613
4619
|
e.invalidateQueries({
|
|
4614
4620
|
queryKey: [...t, l.activityId]
|
|
4615
4621
|
});
|
|
4616
|
-
} }),
|
|
4622
|
+
} }), qr = ({
|
|
4617
4623
|
queryClient: e,
|
|
4618
4624
|
queryKey: t,
|
|
4619
4625
|
mutationFn: n
|
|
@@ -4636,7 +4642,7 @@ const Yr = ({ count: e = 0, showRepliesButton: t = !0, children: n }) => {
|
|
|
4636
4642
|
e.invalidateQueries({
|
|
4637
4643
|
queryKey: [...t, o.activityId]
|
|
4638
4644
|
});
|
|
4639
|
-
} }),
|
|
4645
|
+
} }), ea = ({
|
|
4640
4646
|
queryClient: e,
|
|
4641
4647
|
queryKey: t,
|
|
4642
4648
|
user: n,
|
|
@@ -4670,7 +4676,7 @@ const Yr = ({ count: e = 0, showRepliesButton: t = !0, children: n }) => {
|
|
|
4670
4676
|
e.invalidateQueries({
|
|
4671
4677
|
queryKey: [...t, d.activityId]
|
|
4672
4678
|
});
|
|
4673
|
-
} }),
|
|
4679
|
+
} }), io = ({
|
|
4674
4680
|
basePath: e,
|
|
4675
4681
|
parentId: t,
|
|
4676
4682
|
isMember: n,
|
|
@@ -4684,30 +4690,30 @@ const Yr = ({ count: e = 0, showRepliesButton: t = !0, children: n }) => {
|
|
|
4684
4690
|
} = $n({
|
|
4685
4691
|
queryKey: [e, t],
|
|
4686
4692
|
queryFn: r
|
|
4687
|
-
}), k =
|
|
4693
|
+
}), k = Xr({
|
|
4688
4694
|
queryClient: h,
|
|
4689
4695
|
queryKey: [e, t],
|
|
4690
4696
|
user: p,
|
|
4691
4697
|
mutationFn: c
|
|
4692
|
-
}), { mutate: _ } = ie(k), T =
|
|
4698
|
+
}), { mutate: _ } = ie(k), T = Zr({
|
|
4693
4699
|
queryClient: h,
|
|
4694
4700
|
queryKey: [e, t],
|
|
4695
4701
|
mutationFn: async (w) => await i(w)
|
|
4696
4702
|
}), {
|
|
4697
4703
|
mutate: C
|
|
4698
|
-
} = ie(T), R =
|
|
4704
|
+
} = ie(T), R = Kr({
|
|
4699
4705
|
queryClient: h,
|
|
4700
4706
|
queryKey: [e, t],
|
|
4701
4707
|
mutationFn: async ({ activityId: w }) => await u({ activityId: w })
|
|
4702
4708
|
}), {
|
|
4703
4709
|
mutate: V
|
|
4704
|
-
} = ie(R), N =
|
|
4710
|
+
} = ie(R), N = qr({
|
|
4705
4711
|
queryClient: h,
|
|
4706
4712
|
queryKey: [e, t],
|
|
4707
4713
|
mutationFn: a
|
|
4708
4714
|
}), {
|
|
4709
4715
|
mutate: P
|
|
4710
|
-
} = ie(N), G =
|
|
4716
|
+
} = ie(N), G = ea({
|
|
4711
4717
|
queryClient: h,
|
|
4712
4718
|
queryKey: [e, t],
|
|
4713
4719
|
user: p,
|
|
@@ -4807,7 +4813,7 @@ const Yr = ({ count: e = 0, showRepliesButton: t = !0, children: n }) => {
|
|
|
4807
4813
|
] }, w == null ? void 0 : w.id);
|
|
4808
4814
|
}))
|
|
4809
4815
|
] });
|
|
4810
|
-
},
|
|
4816
|
+
}, ta = ({
|
|
4811
4817
|
queryClient: e,
|
|
4812
4818
|
queryKey: t,
|
|
4813
4819
|
mutationFn: n
|
|
@@ -4826,7 +4832,7 @@ const Yr = ({ count: e = 0, showRepliesButton: t = !0, children: n }) => {
|
|
|
4826
4832
|
})), { previousActivity: l };
|
|
4827
4833
|
}, onSettled: () => {
|
|
4828
4834
|
e.invalidateQueries({ queryKey: t });
|
|
4829
|
-
} }),
|
|
4835
|
+
} }), na = ({
|
|
4830
4836
|
queryClient: e,
|
|
4831
4837
|
queryKey: t,
|
|
4832
4838
|
mutationFn: n
|
|
@@ -4852,7 +4858,7 @@ const Yr = ({ count: e = 0, showRepliesButton: t = !0, children: n }) => {
|
|
|
4852
4858
|
onError: (i, u, a) => {
|
|
4853
4859
|
e.setQueryData(t, a.previousActivity);
|
|
4854
4860
|
}
|
|
4855
|
-
}),
|
|
4861
|
+
}), sa = ({
|
|
4856
4862
|
queryClient: e,
|
|
4857
4863
|
queryKey: t,
|
|
4858
4864
|
mutationFn: n
|
|
@@ -4871,7 +4877,7 @@ const Yr = ({ count: e = 0, showRepliesButton: t = !0, children: n }) => {
|
|
|
4871
4877
|
})), { previousActivity: u };
|
|
4872
4878
|
}, onError: (i, u, a) => {
|
|
4873
4879
|
e.setQueryData(t, a.previousActivity);
|
|
4874
|
-
} }),
|
|
4880
|
+
} }), ra = ({
|
|
4875
4881
|
queryClient: e,
|
|
4876
4882
|
queryKey: t,
|
|
4877
4883
|
mutationFn: n
|
|
@@ -4898,7 +4904,7 @@ const Yr = ({ count: e = 0, showRepliesButton: t = !0, children: n }) => {
|
|
|
4898
4904
|
...a,
|
|
4899
4905
|
latest_reactions: { reply: l }
|
|
4900
4906
|
})), { previousActivity: a };
|
|
4901
|
-
} }),
|
|
4907
|
+
} }), aa = ({
|
|
4902
4908
|
queryClient: e,
|
|
4903
4909
|
queryKey: t,
|
|
4904
4910
|
user: n,
|
|
@@ -4937,7 +4943,7 @@ const Yr = ({ count: e = 0, showRepliesButton: t = !0, children: n }) => {
|
|
|
4937
4943
|
...o,
|
|
4938
4944
|
latest_reactions: { reply: d }
|
|
4939
4945
|
})), { previousActivity: o };
|
|
4940
|
-
} }),
|
|
4946
|
+
} }), oa = ({
|
|
4941
4947
|
queryClient: e,
|
|
4942
4948
|
queryKey: t,
|
|
4943
4949
|
mutationFn: n
|
|
@@ -4960,7 +4966,7 @@ const Yr = ({ count: e = 0, showRepliesButton: t = !0, children: n }) => {
|
|
|
4960
4966
|
onSettled: () => {
|
|
4961
4967
|
e.invalidateQueries({ queryKey: t });
|
|
4962
4968
|
}
|
|
4963
|
-
}),
|
|
4969
|
+
}), ia = ({
|
|
4964
4970
|
queryClient: e,
|
|
4965
4971
|
queryKey: t,
|
|
4966
4972
|
mutationFn: n
|
|
@@ -4985,7 +4991,7 @@ const Yr = ({ count: e = 0, showRepliesButton: t = !0, children: n }) => {
|
|
|
4985
4991
|
...a,
|
|
4986
4992
|
latest_reactions: { reply: l }
|
|
4987
4993
|
})), { previousActivity: a };
|
|
4988
|
-
} }),
|
|
4994
|
+
} }), ca = ({
|
|
4989
4995
|
queryClient: e,
|
|
4990
4996
|
queryKey: t,
|
|
4991
4997
|
mutationFn: n
|
|
@@ -5010,7 +5016,7 @@ const Yr = ({ count: e = 0, showRepliesButton: t = !0, children: n }) => {
|
|
|
5010
5016
|
...a,
|
|
5011
5017
|
latest_reactions: { reply: l }
|
|
5012
5018
|
})), { previousActivity: a };
|
|
5013
|
-
} }),
|
|
5019
|
+
} }), la = ({
|
|
5014
5020
|
queryClient: e,
|
|
5015
5021
|
queryKey: t,
|
|
5016
5022
|
mutationFn: n
|
|
@@ -5043,7 +5049,7 @@ const Yr = ({ count: e = 0, showRepliesButton: t = !0, children: n }) => {
|
|
|
5043
5049
|
...l,
|
|
5044
5050
|
latest_reactions: { reply: o }
|
|
5045
5051
|
})), { previousActivity: l };
|
|
5046
|
-
} }),
|
|
5052
|
+
} }), da = ({
|
|
5047
5053
|
queryClient: e,
|
|
5048
5054
|
queryKey: t,
|
|
5049
5055
|
mutationFn: n,
|
|
@@ -5084,7 +5090,7 @@ const Yr = ({ count: e = 0, showRepliesButton: t = !0, children: n }) => {
|
|
|
5084
5090
|
...o,
|
|
5085
5091
|
latest_reactions: { reply: d }
|
|
5086
5092
|
})), { previousActivity: o };
|
|
5087
|
-
} }),
|
|
5093
|
+
} }), ua = ({
|
|
5088
5094
|
basePath: e,
|
|
5089
5095
|
parentId: t,
|
|
5090
5096
|
replyParentId: n,
|
|
@@ -5093,29 +5099,29 @@ const Yr = ({ count: e = 0, showRepliesButton: t = !0, children: n }) => {
|
|
|
5093
5099
|
replies: i,
|
|
5094
5100
|
functions: { create: u, edit: a, remove: l, join: o, leave: d, like: m, unlike: h }
|
|
5095
5101
|
}) => {
|
|
5096
|
-
const p = D(), g = wt(), b = je($e), v = je(Et), E =
|
|
5102
|
+
const p = D(), g = wt(), b = je($e), v = je(Et), E = oa({
|
|
5097
5103
|
queryClient: g,
|
|
5098
5104
|
queryKey: [e, t, r],
|
|
5099
5105
|
mutationFn: async (j) => u({ replyId: n, content: j.body })
|
|
5100
|
-
}), { mutate: k } = ie(E), _ =
|
|
5106
|
+
}), { mutate: k } = ie(E), _ = ia({
|
|
5101
5107
|
queryClient: g,
|
|
5102
5108
|
queryKey: [e, t, r],
|
|
5103
5109
|
mutationFn: a
|
|
5104
5110
|
}), {
|
|
5105
5111
|
mutate: T
|
|
5106
|
-
} = ie(_), C =
|
|
5112
|
+
} = ie(_), C = ca({
|
|
5107
5113
|
queryClient: g,
|
|
5108
5114
|
queryKey: [e, t, r],
|
|
5109
5115
|
mutationFn: async ({ replyId: j }) => l({ replyId: j })
|
|
5110
5116
|
}), {
|
|
5111
5117
|
mutate: R
|
|
5112
|
-
} = ie(C), V =
|
|
5118
|
+
} = ie(C), V = la({
|
|
5113
5119
|
queryClient: g,
|
|
5114
5120
|
queryKey: [e, t, r],
|
|
5115
5121
|
mutationFn: m
|
|
5116
5122
|
}), {
|
|
5117
5123
|
mutate: N
|
|
5118
|
-
} = ie(V), P =
|
|
5124
|
+
} = ie(V), P = da({
|
|
5119
5125
|
queryClient: g,
|
|
5120
5126
|
queryKey: [e, t, r],
|
|
5121
5127
|
user: b,
|
|
@@ -5130,7 +5136,7 @@ const Yr = ({ count: e = 0, showRepliesButton: t = !0, children: n }) => {
|
|
|
5130
5136
|
[G]
|
|
5131
5137
|
);
|
|
5132
5138
|
return /* @__PURE__ */ s.jsx(
|
|
5133
|
-
|
|
5139
|
+
Gr,
|
|
5134
5140
|
{
|
|
5135
5141
|
count: c,
|
|
5136
5142
|
showRepliesButton: c > 0 || v.showForm,
|
|
@@ -5215,7 +5221,7 @@ const Yr = ({ count: e = 0, showRepliesButton: t = !0, children: n }) => {
|
|
|
5215
5221
|
] })
|
|
5216
5222
|
}
|
|
5217
5223
|
);
|
|
5218
|
-
},
|
|
5224
|
+
}, ma = ({
|
|
5219
5225
|
basePath: e,
|
|
5220
5226
|
parentId: t,
|
|
5221
5227
|
activityId: n,
|
|
@@ -5223,29 +5229,29 @@ const Yr = ({ count: e = 0, showRepliesButton: t = !0, children: n }) => {
|
|
|
5223
5229
|
isMember: c,
|
|
5224
5230
|
functions: { create: i, edit: u, remove: a, like: l, unlike: o, join: d, leave: m }
|
|
5225
5231
|
}) => {
|
|
5226
|
-
const h = D(), p = wt(), g = je($e), b =
|
|
5232
|
+
const h = D(), p = wt(), g = je($e), b = ta({
|
|
5227
5233
|
queryClient: p,
|
|
5228
5234
|
queryKey: [e, t, n],
|
|
5229
5235
|
mutationFn: async (x) => i({ activityId: n, content: x.body })
|
|
5230
|
-
}), { mutate: v } = ie(b), E =
|
|
5236
|
+
}), { mutate: v } = ie(b), E = na({
|
|
5231
5237
|
queryClient: p,
|
|
5232
5238
|
queryKey: [e, t, n],
|
|
5233
5239
|
mutationFn: async (x) => u(x)
|
|
5234
5240
|
}), {
|
|
5235
5241
|
mutate: k
|
|
5236
|
-
} = ie(E), _ =
|
|
5242
|
+
} = ie(E), _ = sa({
|
|
5237
5243
|
queryClient: p,
|
|
5238
5244
|
queryKey: [e, t, n],
|
|
5239
5245
|
mutationFn: async ({ replyId: x }) => a({ replyId: x })
|
|
5240
5246
|
}), {
|
|
5241
5247
|
mutate: T
|
|
5242
|
-
} = ie(_), C =
|
|
5248
|
+
} = ie(_), C = ra({
|
|
5243
5249
|
queryClient: p,
|
|
5244
5250
|
queryKey: [e, t, n],
|
|
5245
5251
|
mutationFn: l
|
|
5246
5252
|
}), {
|
|
5247
5253
|
mutate: R
|
|
5248
|
-
} = ie(C), V =
|
|
5254
|
+
} = ie(C), V = aa({
|
|
5249
5255
|
queryClient: p,
|
|
5250
5256
|
queryKey: [e, t, n],
|
|
5251
5257
|
user: g,
|
|
@@ -5277,7 +5283,7 @@ const Yr = ({ count: e = 0, showRepliesButton: t = !0, children: n }) => {
|
|
|
5277
5283
|
(r == null ? void 0 : r.length) === 0 || (r == null ? void 0 : r.map((x) => {
|
|
5278
5284
|
var w, z, X, se, re, ae, q, fe, ue, O, oe, he, ce, xe, pe, be, ge, B, J, le;
|
|
5279
5285
|
const K = ((w = x == null ? void 0 : x.user) == null ? void 0 : w.id) === (g == null ? void 0 : g.id), j = sn(c, K);
|
|
5280
|
-
return /* @__PURE__ */ s.jsx(
|
|
5286
|
+
return /* @__PURE__ */ s.jsx(Ur, { children: /* @__PURE__ */ s.jsx(
|
|
5281
5287
|
St,
|
|
5282
5288
|
{
|
|
5283
5289
|
content: {
|
|
@@ -5330,7 +5336,7 @@ const Yr = ({ count: e = 0, showRepliesButton: t = !0, children: n }) => {
|
|
|
5330
5336
|
comments: {}
|
|
5331
5337
|
},
|
|
5332
5338
|
children: /* @__PURE__ */ s.jsx(
|
|
5333
|
-
|
|
5339
|
+
ua,
|
|
5334
5340
|
{
|
|
5335
5341
|
basePath: e,
|
|
5336
5342
|
parentId: t,
|
|
@@ -5355,7 +5361,7 @@ const Yr = ({ count: e = 0, showRepliesButton: t = !0, children: n }) => {
|
|
|
5355
5361
|
) }, x == null ? void 0 : x.id);
|
|
5356
5362
|
}))
|
|
5357
5363
|
] });
|
|
5358
|
-
},
|
|
5364
|
+
}, fa = ({
|
|
5359
5365
|
queryClient: e,
|
|
5360
5366
|
queryKey: t,
|
|
5361
5367
|
mutationFn: n
|
|
@@ -5379,14 +5385,14 @@ const Yr = ({ count: e = 0, showRepliesButton: t = !0, children: n }) => {
|
|
|
5379
5385
|
onSettled: () => {
|
|
5380
5386
|
e.invalidateQueries({ queryKey: t });
|
|
5381
5387
|
}
|
|
5382
|
-
}),
|
|
5388
|
+
}), ha = ({
|
|
5383
5389
|
queryClient: e,
|
|
5384
5390
|
queryKey: t,
|
|
5385
5391
|
redirectUrl: n,
|
|
5386
5392
|
mutationFn: r
|
|
5387
5393
|
}) => ({ mutationFn: r, onSuccess: () => {
|
|
5388
5394
|
e.invalidateQueries({ queryKey: t }), window.location.href = n;
|
|
5389
|
-
} }),
|
|
5395
|
+
} }), pa = ({
|
|
5390
5396
|
queryClient: e,
|
|
5391
5397
|
queryKey: t,
|
|
5392
5398
|
mutationFn: n
|
|
@@ -5406,7 +5412,7 @@ const Yr = ({ count: e = 0, showRepliesButton: t = !0, children: n }) => {
|
|
|
5406
5412
|
})), { previousActivity: l };
|
|
5407
5413
|
}, onSettled: () => {
|
|
5408
5414
|
e.invalidateQueries({ queryKey: t });
|
|
5409
|
-
} }),
|
|
5415
|
+
} }), ga = ({
|
|
5410
5416
|
queryClient: e,
|
|
5411
5417
|
queryKey: t,
|
|
5412
5418
|
user: n,
|
|
@@ -5439,7 +5445,7 @@ const Yr = ({ count: e = 0, showRepliesButton: t = !0, children: n }) => {
|
|
|
5439
5445
|
}, onSettled: () => {
|
|
5440
5446
|
e.invalidateQueries({ queryKey: t });
|
|
5441
5447
|
} });
|
|
5442
|
-
const
|
|
5448
|
+
const co = ({
|
|
5443
5449
|
basePath: e,
|
|
5444
5450
|
parentId: t,
|
|
5445
5451
|
activityId: n,
|
|
@@ -5467,24 +5473,24 @@ const io = ({
|
|
|
5467
5473
|
} = $n({
|
|
5468
5474
|
queryKey: [e, t, n],
|
|
5469
5475
|
queryFn: c
|
|
5470
|
-
}), R =
|
|
5476
|
+
}), R = fa({
|
|
5471
5477
|
queryClient: k,
|
|
5472
5478
|
queryKey: [e, t, n],
|
|
5473
5479
|
mutationFn: async (te) => await i(te)
|
|
5474
5480
|
}), {
|
|
5475
5481
|
mutate: V
|
|
5476
|
-
} = ie(R), N =
|
|
5482
|
+
} = ie(R), N = ha({
|
|
5477
5483
|
queryClient: k,
|
|
5478
5484
|
queryKey: [e, t, n],
|
|
5479
5485
|
mutationFn: async ({ activityId: te }) => u({ activityId: te }),
|
|
5480
5486
|
redirectUrl: `${e}/${t}`
|
|
5481
|
-
}), { mutate: P } = ie(N), G =
|
|
5487
|
+
}), { mutate: P } = ie(N), G = pa({
|
|
5482
5488
|
queryClient: k,
|
|
5483
5489
|
queryKey: [e, t, n],
|
|
5484
5490
|
mutationFn: a
|
|
5485
5491
|
}), {
|
|
5486
5492
|
mutate: x
|
|
5487
|
-
} = ie(G), K =
|
|
5493
|
+
} = ie(G), K = ga({
|
|
5488
5494
|
queryClient: k,
|
|
5489
5495
|
queryKey: [e, t, n],
|
|
5490
5496
|
user: E,
|
|
@@ -5574,7 +5580,7 @@ const io = ({
|
|
|
5574
5580
|
")"
|
|
5575
5581
|
] }),
|
|
5576
5582
|
/* @__PURE__ */ s.jsx(
|
|
5577
|
-
|
|
5583
|
+
ma,
|
|
5578
5584
|
{
|
|
5579
5585
|
basePath: e,
|
|
5580
5586
|
parentId: t,
|
|
@@ -5596,13 +5602,13 @@ const io = ({
|
|
|
5596
5602
|
},
|
|
5597
5603
|
n
|
|
5598
5604
|
);
|
|
5599
|
-
},
|
|
5605
|
+
}, lo = ({ id: e, data: { jobTitle: t, name: n, organization: r, thumbnail: c } }) => ({
|
|
5600
5606
|
id: e,
|
|
5601
5607
|
name: n,
|
|
5602
5608
|
jobTitle: t,
|
|
5603
5609
|
organization: r,
|
|
5604
5610
|
image: { thumbnail: c }
|
|
5605
|
-
}),
|
|
5611
|
+
}), _a = ({ type: e, data: t }) => {
|
|
5606
5612
|
const n = D(), {
|
|
5607
5613
|
answers: r,
|
|
5608
5614
|
createdAt: c,
|
|
@@ -5718,7 +5724,7 @@ const io = ({
|
|
|
5718
5724
|
},
|
|
5719
5725
|
gtmEvent: "learning-hub"
|
|
5720
5726
|
}
|
|
5721
|
-
},
|
|
5727
|
+
}, xa = ({ data: e, cta: t, link: n, gtmContext: r }) => {
|
|
5722
5728
|
var g;
|
|
5723
5729
|
const c = D(), [i, u] = L({
|
|
5724
5730
|
loading: !1,
|
|
@@ -5790,16 +5796,16 @@ const io = ({
|
|
|
5790
5796
|
person: "user",
|
|
5791
5797
|
speech: "speech-bubble_round",
|
|
5792
5798
|
star: "star_empty_thin"
|
|
5793
|
-
},
|
|
5799
|
+
}, ba = (e) => {
|
|
5794
5800
|
let t = e;
|
|
5795
5801
|
return Object.keys(En).includes(e) && (t = En[e]), `url(${mt}icons/${t}.svg)`;
|
|
5796
5802
|
};
|
|
5797
|
-
const
|
|
5803
|
+
const wa = {
|
|
5798
5804
|
title: 66,
|
|
5799
5805
|
text: 3e3,
|
|
5800
5806
|
secondaryText: 1e3,
|
|
5801
5807
|
partner: 25
|
|
5802
|
-
},
|
|
5808
|
+
}, va = ({
|
|
5803
5809
|
id: e = "",
|
|
5804
5810
|
card: t,
|
|
5805
5811
|
buildCardData: n,
|
|
@@ -5834,7 +5840,7 @@ const ba = {
|
|
|
5834
5840
|
className: v,
|
|
5835
5841
|
length: E,
|
|
5836
5842
|
gtmEvent: k
|
|
5837
|
-
} = _t[g], _ = Rn(`card_label_${g}`) ? u.formatMessage({ id: `card_label_${g}` }) : !1, T = m.slug ? `${b}${m.slug}` : !1, C = { ...
|
|
5843
|
+
} = _t[g], _ = Rn(`card_label_${g}`) ? u.formatMessage({ id: `card_label_${g}` }) : !1, T = m.slug ? `${b}${m.slug}` : !1, C = { ...wa, ...E };
|
|
5838
5844
|
let R = { className: "card" };
|
|
5839
5845
|
T && (R = {
|
|
5840
5846
|
href: T,
|
|
@@ -5843,7 +5849,7 @@ const ba = {
|
|
|
5843
5849
|
"data-gtm-event-type": `${k}-click`,
|
|
5844
5850
|
"data-testid": "link"
|
|
5845
5851
|
}, m.openInNewTab && (R.target = "_blank"));
|
|
5846
|
-
const V = m.customIcon ? { "--custom-icon":
|
|
5852
|
+
const V = m.customIcon ? { "--custom-icon": ba(m.customIcon) } : {};
|
|
5847
5853
|
return /* @__PURE__ */ s.jsx(
|
|
5848
5854
|
"li",
|
|
5849
5855
|
{
|
|
@@ -5866,7 +5872,7 @@ const ba = {
|
|
|
5866
5872
|
size: "small",
|
|
5867
5873
|
variant: m.dateHasPassed ? "default" : "information",
|
|
5868
5874
|
"data-testid": "date",
|
|
5869
|
-
children: m.dateHasPassed ? u.formatMessage({ id: "card_ended" }) :
|
|
5875
|
+
children: m.dateHasPassed ? u.formatMessage({ id: "card_ended" }) : Bs(m.startDate)
|
|
5870
5876
|
}
|
|
5871
5877
|
),
|
|
5872
5878
|
m.banner ? /* @__PURE__ */ s.jsxs("p", { className: "img", children: [
|
|
@@ -5898,20 +5904,20 @@ const ba = {
|
|
|
5898
5904
|
const P = m[N];
|
|
5899
5905
|
if (!P)
|
|
5900
5906
|
return null;
|
|
5901
|
-
const G =
|
|
5907
|
+
const G = Is(N);
|
|
5902
5908
|
return /* @__PURE__ */ s.jsx("p", { className: G, "data-testid": G, children: Qe(P, C[N]) }, N);
|
|
5903
5909
|
}),
|
|
5904
|
-
/* @__PURE__ */ s.jsx(
|
|
5905
|
-
/* @__PURE__ */ s.jsx(
|
|
5910
|
+
/* @__PURE__ */ s.jsx(_a, { type: v || "", data: m }),
|
|
5911
|
+
/* @__PURE__ */ s.jsx(xa, { data: m, cta: r, link: T || "", gtmContext: c })
|
|
5906
5912
|
] })
|
|
5907
5913
|
)
|
|
5908
5914
|
}
|
|
5909
5915
|
);
|
|
5910
5916
|
};
|
|
5911
|
-
const
|
|
5917
|
+
const ka = ({ cards: e, cardTypes: t, className: n = "", ...r }) => /* @__PURE__ */ s.jsx("ul", { className: $("card-block", n), children: e.map((c, i) => {
|
|
5912
5918
|
const u = c.slug ? `${c.slug}-${t[i]}` : `${t[i]}-${i}`;
|
|
5913
5919
|
return /* @__PURE__ */ s.jsx(
|
|
5914
|
-
|
|
5920
|
+
va,
|
|
5915
5921
|
{
|
|
5916
5922
|
id: u,
|
|
5917
5923
|
card: { ...c, contentType: t[i] },
|
|
@@ -5964,18 +5970,18 @@ const Sn = [
|
|
|
5964
5970
|
contributors: ["community"]
|
|
5965
5971
|
}
|
|
5966
5972
|
];
|
|
5967
|
-
const lt = "notFoundError_",
|
|
5973
|
+
const lt = "notFoundError_", uo = () => {
|
|
5968
5974
|
const e = D(), t = [];
|
|
5969
5975
|
return Sn.forEach((n, r) => {
|
|
5970
5976
|
n.title = e.formatMessage({ id: `${lt}post_${r + 1}` }), t.push("solutionArticle");
|
|
5971
5977
|
}), /* @__PURE__ */ s.jsxs(
|
|
5972
|
-
|
|
5978
|
+
Br,
|
|
5973
5979
|
{
|
|
5974
5980
|
styling: { background: "bold", circle: "small", variant: "alt-2" },
|
|
5975
5981
|
additionalContent: {
|
|
5976
5982
|
appended: /* @__PURE__ */ s.jsxs(en, { children: [
|
|
5977
5983
|
/* @__PURE__ */ s.jsx(
|
|
5978
|
-
|
|
5984
|
+
ka,
|
|
5979
5985
|
{
|
|
5980
5986
|
cards: Sn,
|
|
5981
5987
|
cardTypes: t,
|
|
@@ -5999,89 +6005,90 @@ const lt = "notFoundError_", lo = () => {
|
|
|
5999
6005
|
};
|
|
6000
6006
|
export {
|
|
6001
6007
|
mt as ASSETS_BUCKET,
|
|
6002
|
-
|
|
6003
|
-
|
|
6008
|
+
io as ActivitiesFeed,
|
|
6009
|
+
co as ActivitySection,
|
|
6004
6010
|
nn as AddPost,
|
|
6005
|
-
|
|
6006
|
-
|
|
6011
|
+
Qa as BannerSection,
|
|
6012
|
+
Ja as Breadcrumbs,
|
|
6007
6013
|
U as Button,
|
|
6008
6014
|
kt as ButtonWrapper,
|
|
6009
|
-
|
|
6015
|
+
gr as CacheProvider,
|
|
6010
6016
|
Ln as CollapsibleSection,
|
|
6011
|
-
|
|
6012
|
-
|
|
6017
|
+
Dr as Columns,
|
|
6018
|
+
Ga as CommunityDetails,
|
|
6013
6019
|
Hn as Contributors,
|
|
6014
6020
|
Et as ConversationContext,
|
|
6015
|
-
|
|
6016
|
-
|
|
6021
|
+
Cr as CookieBanner,
|
|
6022
|
+
Ur as DiscussionConversation,
|
|
6017
6023
|
Kn as DiscussionForm,
|
|
6018
|
-
|
|
6024
|
+
Vr as DiscussionLikes,
|
|
6019
6025
|
St as DiscussionPost,
|
|
6020
|
-
|
|
6026
|
+
Gr as DiscussionThread,
|
|
6021
6027
|
Ue as Divider,
|
|
6022
|
-
|
|
6028
|
+
Ia as DownloadSection,
|
|
6023
6029
|
Ze as EMAILS,
|
|
6024
|
-
|
|
6030
|
+
eo as EmailHelperTextBox,
|
|
6025
6031
|
yt as EmptyStateBox,
|
|
6026
|
-
|
|
6027
|
-
|
|
6032
|
+
Xa as Filters,
|
|
6033
|
+
br as FlagsProvider,
|
|
6028
6034
|
zn as Footer,
|
|
6029
6035
|
en as FullWidthSection,
|
|
6030
|
-
|
|
6036
|
+
Ya as GlobalProviders,
|
|
6031
6037
|
Jn as Header,
|
|
6032
|
-
|
|
6038
|
+
tr as HelperTextBox,
|
|
6033
6039
|
Nn as HiddenFromScreenReaders,
|
|
6034
|
-
|
|
6040
|
+
Wa as HideShowTextBox,
|
|
6035
6041
|
Re as HighlightedTextBox,
|
|
6036
|
-
|
|
6037
|
-
|
|
6038
|
-
|
|
6042
|
+
wr as IntlProvider,
|
|
6043
|
+
Fr as InviteForm,
|
|
6044
|
+
so as InviteModal,
|
|
6039
6045
|
Un as JoinButton,
|
|
6040
|
-
|
|
6046
|
+
Za as LanguageSwitcher,
|
|
6041
6047
|
jt as Link,
|
|
6042
|
-
|
|
6043
|
-
|
|
6048
|
+
jr as LoadMore,
|
|
6049
|
+
za as LoadingBlock,
|
|
6044
6050
|
Se as LoadingPlaceholder,
|
|
6045
|
-
|
|
6051
|
+
Va as LoadingState,
|
|
6046
6052
|
Wn as Logo,
|
|
6047
|
-
|
|
6053
|
+
Ba as LogoSection,
|
|
6048
6054
|
bn as MarkdownText,
|
|
6049
|
-
|
|
6055
|
+
Ha as MarketingBox,
|
|
6050
6056
|
tn as Member,
|
|
6051
|
-
|
|
6057
|
+
ao as MembersList,
|
|
6052
6058
|
Xn as Modal,
|
|
6053
|
-
|
|
6054
|
-
|
|
6055
|
-
|
|
6056
|
-
|
|
6059
|
+
yr as MoreMenu,
|
|
6060
|
+
Ua as NUMBER_OF_USERS,
|
|
6061
|
+
$r as NavigationMenu,
|
|
6062
|
+
uo as NotFoundError,
|
|
6057
6063
|
Zn as Overlay,
|
|
6058
|
-
|
|
6059
|
-
|
|
6060
|
-
|
|
6064
|
+
dr as PageHeading,
|
|
6065
|
+
Br as PageLayout,
|
|
6066
|
+
to as PasswordRules,
|
|
6061
6067
|
ft as Pill,
|
|
6062
6068
|
qe as ProfilePicture,
|
|
6063
|
-
|
|
6064
|
-
|
|
6065
|
-
|
|
6066
|
-
|
|
6069
|
+
mr as ProgressBar,
|
|
6070
|
+
no as Rating,
|
|
6071
|
+
ma as RepliesFeed,
|
|
6072
|
+
oo as ResponsesHeading,
|
|
6067
6073
|
Fn as ResponsiveImage,
|
|
6068
|
-
|
|
6069
|
-
|
|
6070
|
-
|
|
6074
|
+
Rr as SearchForm,
|
|
6075
|
+
Ka as ShareLinks,
|
|
6076
|
+
lr as Span,
|
|
6071
6077
|
Xt as StatusBanner,
|
|
6072
|
-
|
|
6073
|
-
|
|
6074
|
-
|
|
6078
|
+
ro as Tags,
|
|
6079
|
+
Ks as Tooltip,
|
|
6080
|
+
qa as TopLevelPage,
|
|
6075
6081
|
$e as UserContext,
|
|
6076
|
-
|
|
6082
|
+
vr as UserProvider,
|
|
6077
6083
|
_e as VisuallyHidden,
|
|
6078
|
-
|
|
6084
|
+
Or as addAriaProps,
|
|
6079
6085
|
Qn as getMember,
|
|
6080
6086
|
pt as headerData,
|
|
6081
|
-
|
|
6087
|
+
lo as mapGetStreamData,
|
|
6088
|
+
Vs as triggerPageReady,
|
|
6082
6089
|
Fs as useCurrentPath,
|
|
6083
6090
|
He as useEffectAfterMount,
|
|
6084
6091
|
vt as useElementWidth,
|
|
6085
6092
|
Os as useScrollListener,
|
|
6086
|
-
|
|
6093
|
+
Oa as useScrollToHash
|
|
6087
6094
|
};
|