@apolitical/component-library 5.5.1 → 5.5.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/helpers/intl.d.ts +1 -0
- package/index.js +21 -21
- package/index.mjs +100 -98
- package/package.json +1 -1
package/index.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import te, { memo as Xt, useState as le, useEffect as de, useRef as ke, useMemo as Gt, forwardRef as Js, Children as Ds, createContext as At, useContext as Re, useCallback as Me, lazy as mr, useReducer as pr, useLayoutEffect as xh, Component as Dh, Fragment as zr, Suspense as Mc } from "react";
|
|
2
|
-
import { useIntl as ce, FormattedMessage as
|
|
2
|
+
import { useIntl as ce, FormattedMessage as pt, IntlProvider as wh, createIntl as Ch } from "react-intl";
|
|
3
3
|
import Sn from "lodash.clonedeep";
|
|
4
4
|
import Eh from "lodash.set";
|
|
5
5
|
import Rc from "react-dom";
|
|
@@ -350,14 +350,14 @@ function Mh() {
|
|
|
350
350
|
} catch (en) {
|
|
351
351
|
if (en && Ce && typeof en.stack == "string") {
|
|
352
352
|
for (var Pe = en.stack.split(`
|
|
353
|
-
`),
|
|
354
|
-
`), nt = Pe.length - 1, at =
|
|
353
|
+
`), bt = Ce.stack.split(`
|
|
354
|
+
`), nt = Pe.length - 1, at = bt.length - 1; nt >= 1 && at >= 0 && Pe[nt] !== bt[at]; )
|
|
355
355
|
at--;
|
|
356
356
|
for (; nt >= 1 && at >= 0; nt--, at--)
|
|
357
|
-
if (Pe[nt] !==
|
|
357
|
+
if (Pe[nt] !== bt[at]) {
|
|
358
358
|
if (nt !== 1 || at !== 1)
|
|
359
359
|
do
|
|
360
|
-
if (nt--, at--, at < 0 || Pe[nt] !==
|
|
360
|
+
if (nt--, at--, at < 0 || Pe[nt] !== bt[at]) {
|
|
361
361
|
var Ot = `
|
|
362
362
|
` + Pe[nt].replace(" at new ", " at ");
|
|
363
363
|
return M.displayName && Ot.includes("<anonymous>") && (Ot = Ot.replace("<anonymous>", M.displayName)), typeof M == "function" && ne.set(M, Ot), Ot;
|
|
@@ -424,8 +424,8 @@ function Mh() {
|
|
|
424
424
|
var Pe = void 0;
|
|
425
425
|
try {
|
|
426
426
|
if (typeof M[Ne] != "function") {
|
|
427
|
-
var
|
|
428
|
-
throw
|
|
427
|
+
var bt = Error((Ce || "React class") + ": " + fe + " type `" + Ne + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof M[Ne] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
|
|
428
|
+
throw bt.name = "Invariant Violation", bt;
|
|
429
429
|
}
|
|
430
430
|
Pe = M[Ne](se, Ne, Ce, fe, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
|
|
431
431
|
} catch (nt) {
|
|
@@ -541,8 +541,8 @@ function Mh() {
|
|
|
541
541
|
};
|
|
542
542
|
function Hn(M, se, fe, Ce, $e) {
|
|
543
543
|
{
|
|
544
|
-
var Ke, Ne = {}, Pe = null,
|
|
545
|
-
fe !== void 0 && (ie(fe), Pe = "" + fe), De(se) && (ie(se.key), Pe = "" + se.key), dt(se) && (
|
|
544
|
+
var Ke, Ne = {}, Pe = null, bt = null;
|
|
545
|
+
fe !== void 0 && (ie(fe), Pe = "" + fe), De(se) && (ie(se.key), Pe = "" + se.key), dt(se) && (bt = se.ref, Fe(se, $e));
|
|
546
546
|
for (Ke in se)
|
|
547
547
|
je.call(se, Ke) && !be.hasOwnProperty(Ke) && (Ne[Ke] = se[Ke]);
|
|
548
548
|
if (M && M.defaultProps) {
|
|
@@ -550,11 +550,11 @@ function Mh() {
|
|
|
550
550
|
for (Ke in nt)
|
|
551
551
|
Ne[Ke] === void 0 && (Ne[Ke] = nt[Ke]);
|
|
552
552
|
}
|
|
553
|
-
if (Pe ||
|
|
553
|
+
if (Pe || bt) {
|
|
554
554
|
var at = typeof M == "function" ? M.displayName || M.name || "Unknown" : M;
|
|
555
|
-
Pe && Ve(Ne, at),
|
|
555
|
+
Pe && Ve(Ne, at), bt && st(Ne, at);
|
|
556
556
|
}
|
|
557
|
-
return ft(M, Pe,
|
|
557
|
+
return ft(M, Pe, bt, $e, Ce, pe.current, Ne);
|
|
558
558
|
}
|
|
559
559
|
}
|
|
560
560
|
var mn = b.ReactCurrentOwner, ni = b.ReactDebugCurrentFrame;
|
|
@@ -681,8 +681,8 @@ Check the top-level render call using <` + fe + ">.");
|
|
|
681
681
|
if (!Ne) {
|
|
682
682
|
var Pe = "";
|
|
683
683
|
(M === void 0 || typeof M == "object" && M !== null && Object.keys(M).length === 0) && (Pe += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
|
|
684
|
-
var
|
|
685
|
-
|
|
684
|
+
var bt = fh($e);
|
|
685
|
+
bt ? Pe += bt : Pe += Ho();
|
|
686
686
|
var nt;
|
|
687
687
|
M === null ? nt = "null" : Se(M) ? nt = "array" : M !== void 0 && M.$$typeof === t ? (nt = "<" + (E(M.type) || "Unknown") + " />", Pe = " Did you accidentally export a JSX literal instead of a component?") : nt = typeof M, C("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", nt, Pe);
|
|
688
688
|
}
|
|
@@ -1335,7 +1335,8 @@ Thank you for helping to protect the Apolitical community from abusive content.`
|
|
|
1335
1335
|
publishArticleForm_subtitle_label: "Subtitle",
|
|
1336
1336
|
publishArticleForm_subtitle_placeholder: "Your topic, in a nutshell",
|
|
1337
1337
|
publishArticleForm_body_label: "Body",
|
|
1338
|
-
|
|
1338
|
+
publishArticleForm_body_placeholder: "Type or paste your article here",
|
|
1339
|
+
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?",
|
|
1339
1340
|
publishArticleForm_cta_submit: "Publish article",
|
|
1340
1341
|
publishArticleForm_cta_submitting: "Publishing...",
|
|
1341
1342
|
publishArticleForm_cta_submitted: "Published!",
|
|
@@ -1993,7 +1994,7 @@ const am = Js(
|
|
|
1993
1994
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
1994
1995
|
const q_ = ({ currentStep: e = 1, steps: t = 1 }) => /* @__PURE__ */ c.jsxs(c.Fragment, { children: [
|
|
1995
1996
|
/* @__PURE__ */ c.jsx(qe, { children: /* @__PURE__ */ c.jsx(
|
|
1996
|
-
|
|
1997
|
+
pt,
|
|
1997
1998
|
{
|
|
1998
1999
|
id: "progressTracker",
|
|
1999
2000
|
values: { current: e, total: t }
|
|
@@ -2636,11 +2637,11 @@ const Am = ({ children: e, locale: t, messages: n }) => {
|
|
|
2636
2637
|
es: "Español",
|
|
2637
2638
|
fr: "Français",
|
|
2638
2639
|
pt: "Português"
|
|
2639
|
-
},
|
|
2640
|
+
}, gt = At({ isLoading: !0 });
|
|
2640
2641
|
function ao() {
|
|
2641
|
-
return Re(
|
|
2642
|
+
return Re(gt);
|
|
2642
2643
|
}
|
|
2643
|
-
const Bm = ({ children: e, user: t, updateDetails: n }) => /* @__PURE__ */ c.jsx(
|
|
2644
|
+
const Bm = ({ children: e, user: t, updateDetails: n }) => /* @__PURE__ */ c.jsx(gt.Provider, { value: { ...t, updateDetails: n }, children: e }), ed = At({
|
|
2644
2645
|
registerOverlay: () => {
|
|
2645
2646
|
},
|
|
2646
2647
|
unregisterOverlay: () => {
|
|
@@ -2930,7 +2931,7 @@ const wn = ({
|
|
|
2930
2931
|
variant: f = "inline",
|
|
2931
2932
|
isCondensed: v = !0,
|
|
2932
2933
|
additionalContentNewLine: b = !1
|
|
2933
|
-
} = i, C = Re(
|
|
2934
|
+
} = i, C = Re(gt), _ = m && C && typeof C.id == "string", [B, x] = le(!1), D = oo(t);
|
|
2934
2935
|
D.name || (D.name = h.formatMessage({
|
|
2935
2936
|
id: `member_${typeof t == "string" ? t : "community"}`
|
|
2936
2937
|
}));
|
|
@@ -4860,7 +4861,7 @@ const _r = "joinCommunityButton", vd = ({
|
|
|
4860
4861
|
}, leave: () => {
|
|
4861
4862
|
} }
|
|
4862
4863
|
}) => {
|
|
4863
|
-
const s = ce(), o = Re(
|
|
4864
|
+
const s = ce(), o = Re(gt), l = o && typeof o.id == "string", u = r || !l, [d, h] = le(e), [m, p] = le(e ? "joined" : "notJoined");
|
|
4864
4865
|
de(() => {
|
|
4865
4866
|
m === "joining" ? p("joined") : m === "leaving" && p("notJoined");
|
|
4866
4867
|
}, [d]);
|
|
@@ -4911,7 +4912,7 @@ const Sa = "communityDetails_", Z_ = ({
|
|
|
4911
4912
|
members: { number: i = 0, data: a = [] } = { number: 0, data: [] },
|
|
4912
4913
|
functions: { invite: s, ...o }
|
|
4913
4914
|
}) => {
|
|
4914
|
-
const l = ce(), { id: u } = Re(
|
|
4915
|
+
const l = ce(), { id: u } = Re(gt), d = u, h = 5, m = i || a.length, p = a.length ? a : Array(h).fill({}), g = `/communities/${r}/members` === window.location.pathname, f = t || n, v = !n && !t;
|
|
4915
4916
|
return /* @__PURE__ */ c.jsxs("div", { className: K("community-details", e), children: [
|
|
4916
4917
|
f ? /* @__PURE__ */ c.jsxs("div", { className: "member-details", children: [
|
|
4917
4918
|
/* @__PURE__ */ c.jsxs("div", { className: "top", children: [
|
|
@@ -5208,7 +5209,7 @@ const yd = ({
|
|
|
5208
5209
|
href: "/home/",
|
|
5209
5210
|
className: K("logo", e, t, n),
|
|
5210
5211
|
...r,
|
|
5211
|
-
children: /* @__PURE__ */ c.jsx(qe, { children: /* @__PURE__ */ c.jsx(
|
|
5212
|
+
children: /* @__PURE__ */ c.jsx(qe, { children: /* @__PURE__ */ c.jsx(pt, { id: "apolitical" }) })
|
|
5212
5213
|
}
|
|
5213
5214
|
) });
|
|
5214
5215
|
let di = !1;
|
|
@@ -5294,7 +5295,7 @@ const Wp = mr(() => Promise.resolve().then(() => zm)), Hp = [
|
|
|
5294
5295
|
href: "/communities/"
|
|
5295
5296
|
}
|
|
5296
5297
|
], Vp = ({ activeLink: e, profile: t }) => {
|
|
5297
|
-
const n = ce(), r = Re(
|
|
5298
|
+
const n = ce(), r = Re(gt), i = r && typeof r.id == "string";
|
|
5298
5299
|
return /* @__PURE__ */ c.jsxs("ul", { id: "navigation-menu", className: "text-medium", children: [
|
|
5299
5300
|
Hp.map(({ key: a, href: s }) => {
|
|
5300
5301
|
const o = Up(s, e), l = {};
|
|
@@ -6820,7 +6821,7 @@ const cg = ({
|
|
|
6820
6821
|
const i = r;
|
|
6821
6822
|
return i != null && i.name && i.name === Ri ? /* @__PURE__ */ c.jsxs("span", { ...e, className: "mention deleted-user", children: [
|
|
6822
6823
|
"@",
|
|
6823
|
-
/* @__PURE__ */ c.jsx(
|
|
6824
|
+
/* @__PURE__ */ c.jsx(pt, { id: "member_deleted" }),
|
|
6824
6825
|
t
|
|
6825
6826
|
] }) : /* @__PURE__ */ c.jsxs("a", { ...e, className: "mention", children: [
|
|
6826
6827
|
"@",
|
|
@@ -13916,13 +13917,13 @@ var I1 = (e) => /* @__PURE__ */ te.createElement(te.Fragment, null, hf(e)), L1 =
|
|
|
13916
13917
|
minHeight: B
|
|
13917
13918
|
} : {})), h),
|
|
13918
13919
|
onBeforeInput: Me((A) => {
|
|
13919
|
-
if (!pn && !s && !
|
|
13920
|
+
if (!pn && !s && !yt(A, g.onBeforeInput) && ee.hasSelectableTarget(f, A.target) && (A.preventDefault(), !ee.isComposing(f))) {
|
|
13920
13921
|
var j = A.data;
|
|
13921
13922
|
y.insertText(f, j);
|
|
13922
13923
|
}
|
|
13923
13924
|
}, [g.onBeforeInput, f, s]),
|
|
13924
13925
|
onInput: Me((A) => {
|
|
13925
|
-
if (!
|
|
13926
|
+
if (!yt(A, g.onInput)) {
|
|
13926
13927
|
if (z.current) {
|
|
13927
13928
|
z.current.handleInput();
|
|
13928
13929
|
return;
|
|
@@ -13933,7 +13934,7 @@ var I1 = (e) => /* @__PURE__ */ te.createElement(te.Fragment, null, hf(e)), L1 =
|
|
|
13933
13934
|
}
|
|
13934
13935
|
}, [g.onInput]),
|
|
13935
13936
|
onBlur: Me((A) => {
|
|
13936
|
-
if (!(s || N.isUpdatingSelection || !ee.hasSelectableTarget(f, A.target) ||
|
|
13937
|
+
if (!(s || N.isUpdatingSelection || !ee.hasSelectableTarget(f, A.target) || yt(A, g.onBlur))) {
|
|
13937
13938
|
var j = ee.findDocumentOrShadowRoot(f);
|
|
13938
13939
|
if (N.latestElement !== j.activeElement) {
|
|
13939
13940
|
var {
|
|
@@ -13955,7 +13956,7 @@ var I1 = (e) => /* @__PURE__ */ te.createElement(te.Fragment, null, hf(e)), L1 =
|
|
|
13955
13956
|
}
|
|
13956
13957
|
}, [s, N.isUpdatingSelection, N.latestElement, f, g.onBlur]),
|
|
13957
13958
|
onClick: Me((A) => {
|
|
13958
|
-
if (ee.hasTarget(f, A.target) && !
|
|
13959
|
+
if (ee.hasTarget(f, A.target) && !yt(A, g.onClick) && Cn(A.target)) {
|
|
13959
13960
|
var j = ee.toSlateNode(f, A.target), P = ee.findPath(f, j);
|
|
13960
13961
|
if (!y.hasPath(f, P) || oe.get(f, P) !== j)
|
|
13961
13962
|
return;
|
|
@@ -13990,7 +13991,7 @@ var I1 = (e) => /* @__PURE__ */ te.createElement(te.Fragment, null, hf(e)), L1 =
|
|
|
13990
13991
|
var j;
|
|
13991
13992
|
if (ee.isComposing(f) && Promise.resolve().then(() => {
|
|
13992
13993
|
b(!1), Tn.set(f, !1);
|
|
13993
|
-
}), (j = z.current) === null || j === void 0 || j.handleCompositionEnd(A),
|
|
13994
|
+
}), (j = z.current) === null || j === void 0 || j.handleCompositionEnd(A), yt(A, g.onCompositionEnd) || Dt)
|
|
13994
13995
|
return;
|
|
13995
13996
|
if (!jr && !Oy && !By && !Ny && !Py && A.data) {
|
|
13996
13997
|
var P = Lt.get(f);
|
|
@@ -14001,12 +14002,12 @@ var I1 = (e) => /* @__PURE__ */ te.createElement(te.Fragment, null, hf(e)), L1 =
|
|
|
14001
14002
|
}
|
|
14002
14003
|
}, [g.onCompositionEnd, f]),
|
|
14003
14004
|
onCompositionUpdate: Me((A) => {
|
|
14004
|
-
ee.hasSelectableTarget(f, A.target) && !
|
|
14005
|
+
ee.hasSelectableTarget(f, A.target) && !yt(A, g.onCompositionUpdate) && (ee.isComposing(f) || (b(!0), Tn.set(f, !0)));
|
|
14005
14006
|
}, [g.onCompositionUpdate, f]),
|
|
14006
14007
|
onCompositionStart: Me((A) => {
|
|
14007
14008
|
if (ee.hasSelectableTarget(f, A.target)) {
|
|
14008
14009
|
var j;
|
|
14009
|
-
if ((j = z.current) === null || j === void 0 || j.handleCompositionStart(A),
|
|
14010
|
+
if ((j = z.current) === null || j === void 0 || j.handleCompositionStart(A), yt(A, g.onCompositionStart) || Dt)
|
|
14010
14011
|
return;
|
|
14011
14012
|
b(!0);
|
|
14012
14013
|
var {
|
|
@@ -14019,10 +14020,10 @@ var I1 = (e) => /* @__PURE__ */ te.createElement(te.Fragment, null, hf(e)), L1 =
|
|
|
14019
14020
|
}
|
|
14020
14021
|
}, [g.onCompositionStart, f]),
|
|
14021
14022
|
onCopy: Me((A) => {
|
|
14022
|
-
ee.hasSelectableTarget(f, A.target) && !
|
|
14023
|
+
ee.hasSelectableTarget(f, A.target) && !yt(A, g.onCopy) && !ql(A) && (A.preventDefault(), ee.setFragmentData(f, A.clipboardData, "copy"));
|
|
14023
14024
|
}, [g.onCopy, f]),
|
|
14024
14025
|
onCut: Me((A) => {
|
|
14025
|
-
if (!s && ee.hasSelectableTarget(f, A.target) && !
|
|
14026
|
+
if (!s && ee.hasSelectableTarget(f, A.target) && !yt(A, g.onCut) && !ql(A)) {
|
|
14026
14027
|
A.preventDefault(), ee.setFragmentData(f, A.clipboardData, "cut");
|
|
14027
14028
|
var {
|
|
14028
14029
|
selection: j
|
|
@@ -14037,13 +14038,13 @@ var I1 = (e) => /* @__PURE__ */ te.createElement(te.Fragment, null, hf(e)), L1 =
|
|
|
14037
14038
|
}
|
|
14038
14039
|
}, [s, f, g.onCut]),
|
|
14039
14040
|
onDragOver: Me((A) => {
|
|
14040
|
-
if (ee.hasTarget(f, A.target) && !
|
|
14041
|
+
if (ee.hasTarget(f, A.target) && !yt(A, g.onDragOver)) {
|
|
14041
14042
|
var j = ee.toSlateNode(f, A.target);
|
|
14042
14043
|
he.isElement(j) && y.isVoid(f, j) && A.preventDefault();
|
|
14043
14044
|
}
|
|
14044
14045
|
}, [g.onDragOver, f]),
|
|
14045
14046
|
onDragStart: Me((A) => {
|
|
14046
|
-
if (!s && ee.hasTarget(f, A.target) && !
|
|
14047
|
+
if (!s && ee.hasTarget(f, A.target) && !yt(A, g.onDragStart)) {
|
|
14047
14048
|
var j = ee.toSlateNode(f, A.target), P = ee.findPath(f, j), L = he.isElement(j) && y.isVoid(f, j) || y.void(f, {
|
|
14048
14049
|
at: P,
|
|
14049
14050
|
voids: !0
|
|
@@ -14056,7 +14057,7 @@ var I1 = (e) => /* @__PURE__ */ te.createElement(te.Fragment, null, hf(e)), L1 =
|
|
|
14056
14057
|
}
|
|
14057
14058
|
}, [s, f, g.onDragStart, N]),
|
|
14058
14059
|
onDrop: Me((A) => {
|
|
14059
|
-
if (!s && ee.hasTarget(f, A.target) && !
|
|
14060
|
+
if (!s && ee.hasTarget(f, A.target) && !yt(A, g.onDrop)) {
|
|
14060
14061
|
A.preventDefault();
|
|
14061
14062
|
var j = f.selection, P = ee.findEventRange(f, A), L = A.dataTransfer;
|
|
14062
14063
|
J.select(f, P), N.isDraggingInternally && j && !G.equals(j, P) && !y.void(f, {
|
|
@@ -14072,7 +14073,7 @@ var I1 = (e) => /* @__PURE__ */ te.createElement(te.Fragment, null, hf(e)), L1 =
|
|
|
14072
14073
|
!s && N.isDraggingInternally && g.onDragEnd && ee.hasTarget(f, A.target) && g.onDragEnd(A), N.isDraggingInternally = !1;
|
|
14073
14074
|
}, [s, N, g, f]),
|
|
14074
14075
|
onFocus: Me((A) => {
|
|
14075
|
-
if (!s && !N.isUpdatingSelection && ee.hasEditableTarget(f, A.target) && !
|
|
14076
|
+
if (!s && !N.isUpdatingSelection && ee.hasEditableTarget(f, A.target) && !yt(A, g.onFocus)) {
|
|
14076
14077
|
var j = ee.toDOMNode(f, f), P = ee.findDocumentOrShadowRoot(f);
|
|
14077
14078
|
if (N.latestElement = P.activeElement, tr && A.target !== j) {
|
|
14078
14079
|
j.focus();
|
|
@@ -14088,7 +14089,7 @@ var I1 = (e) => /* @__PURE__ */ te.createElement(te.Fragment, null, hf(e)), L1 =
|
|
|
14088
14089
|
var {
|
|
14089
14090
|
nativeEvent: P
|
|
14090
14091
|
} = A;
|
|
14091
|
-
if (ee.isComposing(f) && P.isComposing === !1 && (Tn.set(f, !1), b(!1)),
|
|
14092
|
+
if (ee.isComposing(f) && P.isComposing === !1 && (Tn.set(f, !1), b(!1)), yt(A, g.onKeyDown) || ee.isComposing(f))
|
|
14092
14093
|
return;
|
|
14093
14094
|
var {
|
|
14094
14095
|
selection: L
|
|
@@ -14238,7 +14239,7 @@ var I1 = (e) => /* @__PURE__ */ te.createElement(te.Fragment, null, hf(e)), L1 =
|
|
|
14238
14239
|
}
|
|
14239
14240
|
}, [s, f, g.onKeyDown]),
|
|
14240
14241
|
onPaste: Me((A) => {
|
|
14241
|
-
!s && ee.hasEditableTarget(f, A.target) && !
|
|
14242
|
+
!s && ee.hasEditableTarget(f, A.target) && !yt(A, g.onPaste) && (!pn || $y(A.nativeEvent) || jr) && (A.preventDefault(), ee.insertData(f, A.clipboardData));
|
|
14242
14243
|
}, [s, f, g.onPaste])
|
|
14243
14244
|
}), /* @__PURE__ */ te.createElement(I1, {
|
|
14244
14245
|
decorations: S,
|
|
@@ -14265,7 +14266,7 @@ var I1 = (e) => /* @__PURE__ */ te.createElement(te.Fragment, null, hf(e)), L1 =
|
|
|
14265
14266
|
scrollMode: "if-needed"
|
|
14266
14267
|
}), delete n.getBoundingClientRect;
|
|
14267
14268
|
}
|
|
14268
|
-
},
|
|
14269
|
+
}, yt = (e, t) => {
|
|
14269
14270
|
if (!t)
|
|
14270
14271
|
return !1;
|
|
14271
14272
|
var n = t(e);
|
|
@@ -19824,8 +19825,8 @@ function Vf(e, t) {
|
|
|
19824
19825
|
return e.getElementsByTagName(n).length;
|
|
19825
19826
|
});
|
|
19826
19827
|
}
|
|
19827
|
-
var
|
|
19828
|
-
|
|
19828
|
+
var vt = {};
|
|
19829
|
+
vt.paragraph = {
|
|
19829
19830
|
filter: "p",
|
|
19830
19831
|
replacement: function(e) {
|
|
19831
19832
|
return `
|
|
@@ -19835,14 +19836,14 @@ gt.paragraph = {
|
|
|
19835
19836
|
`;
|
|
19836
19837
|
}
|
|
19837
19838
|
};
|
|
19838
|
-
|
|
19839
|
+
vt.lineBreak = {
|
|
19839
19840
|
filter: "br",
|
|
19840
19841
|
replacement: function(e, t, n) {
|
|
19841
19842
|
return n.br + `
|
|
19842
19843
|
`;
|
|
19843
19844
|
}
|
|
19844
19845
|
};
|
|
19845
|
-
|
|
19846
|
+
vt.heading = {
|
|
19846
19847
|
filter: ["h1", "h2", "h3", "h4", "h5", "h6"],
|
|
19847
19848
|
replacement: function(e, t, n) {
|
|
19848
19849
|
var r = Number(t.nodeName.charAt(1));
|
|
@@ -19862,7 +19863,7 @@ gt.heading = {
|
|
|
19862
19863
|
`;
|
|
19863
19864
|
}
|
|
19864
19865
|
};
|
|
19865
|
-
|
|
19866
|
+
vt.blockquote = {
|
|
19866
19867
|
filter: "blockquote",
|
|
19867
19868
|
replacement: function(e) {
|
|
19868
19869
|
return e = e.replace(/^\n+|\n+$/g, ""), e = e.replace(/^/gm, "> "), `
|
|
@@ -19872,7 +19873,7 @@ gt.blockquote = {
|
|
|
19872
19873
|
`;
|
|
19873
19874
|
}
|
|
19874
19875
|
};
|
|
19875
|
-
|
|
19876
|
+
vt.list = {
|
|
19876
19877
|
filter: ["ul", "ol"],
|
|
19877
19878
|
replacement: function(e, t) {
|
|
19878
19879
|
var n = t.parentNode;
|
|
@@ -19884,7 +19885,7 @@ gt.list = {
|
|
|
19884
19885
|
`;
|
|
19885
19886
|
}
|
|
19886
19887
|
};
|
|
19887
|
-
|
|
19888
|
+
vt.listItem = {
|
|
19888
19889
|
filter: "li",
|
|
19889
19890
|
replacement: function(e, t, n) {
|
|
19890
19891
|
e = e.replace(/^\n+/, "").replace(/\n+$/, `
|
|
@@ -19899,7 +19900,7 @@ gt.listItem = {
|
|
|
19899
19900
|
` : "");
|
|
19900
19901
|
}
|
|
19901
19902
|
};
|
|
19902
|
-
|
|
19903
|
+
vt.indentedCodeBlock = {
|
|
19903
19904
|
filter: function(e, t) {
|
|
19904
19905
|
return t.codeBlockStyle === "indented" && e.nodeName === "PRE" && e.firstChild && e.firstChild.nodeName === "CODE";
|
|
19905
19906
|
},
|
|
@@ -19912,7 +19913,7 @@ gt.indentedCodeBlock = {
|
|
|
19912
19913
|
`;
|
|
19913
19914
|
}
|
|
19914
19915
|
};
|
|
19915
|
-
|
|
19916
|
+
vt.fencedCodeBlock = {
|
|
19916
19917
|
filter: function(e, t) {
|
|
19917
19918
|
return t.codeBlockStyle === "fenced" && e.nodeName === "PRE" && e.firstChild && e.firstChild.nodeName === "CODE";
|
|
19918
19919
|
},
|
|
@@ -19929,7 +19930,7 @@ gt.fencedCodeBlock = {
|
|
|
19929
19930
|
`;
|
|
19930
19931
|
}
|
|
19931
19932
|
};
|
|
19932
|
-
|
|
19933
|
+
vt.horizontalRule = {
|
|
19933
19934
|
filter: "hr",
|
|
19934
19935
|
replacement: function(e, t, n) {
|
|
19935
19936
|
return `
|
|
@@ -19939,7 +19940,7 @@ gt.horizontalRule = {
|
|
|
19939
19940
|
`;
|
|
19940
19941
|
}
|
|
19941
19942
|
};
|
|
19942
|
-
|
|
19943
|
+
vt.inlineLink = {
|
|
19943
19944
|
filter: function(e, t) {
|
|
19944
19945
|
return t.linkStyle === "inlined" && e.nodeName === "A" && e.getAttribute("href");
|
|
19945
19946
|
},
|
|
@@ -19948,7 +19949,7 @@ gt.inlineLink = {
|
|
|
19948
19949
|
return r && (r = ' "' + r + '"'), "[" + e + "](" + n + r + ")";
|
|
19949
19950
|
}
|
|
19950
19951
|
};
|
|
19951
|
-
|
|
19952
|
+
vt.referenceLink = {
|
|
19952
19953
|
filter: function(e, t) {
|
|
19953
19954
|
return t.linkStyle === "referenced" && e.nodeName === "A" && e.getAttribute("href");
|
|
19954
19955
|
},
|
|
@@ -19980,19 +19981,19 @@ gt.referenceLink = {
|
|
|
19980
19981
|
`, this.references = []), t;
|
|
19981
19982
|
}
|
|
19982
19983
|
};
|
|
19983
|
-
|
|
19984
|
+
vt.emphasis = {
|
|
19984
19985
|
filter: ["em", "i"],
|
|
19985
19986
|
replacement: function(e, t, n) {
|
|
19986
19987
|
return e.trim() ? n.emDelimiter + e + n.emDelimiter : "";
|
|
19987
19988
|
}
|
|
19988
19989
|
};
|
|
19989
|
-
|
|
19990
|
+
vt.strong = {
|
|
19990
19991
|
filter: ["strong", "b"],
|
|
19991
19992
|
replacement: function(e, t, n) {
|
|
19992
19993
|
return e.trim() ? n.strongDelimiter + e + n.strongDelimiter : "";
|
|
19993
19994
|
}
|
|
19994
19995
|
};
|
|
19995
|
-
|
|
19996
|
+
vt.code = {
|
|
19996
19997
|
filter: function(e) {
|
|
19997
19998
|
var t = e.previousSibling || e.nextSibling, n = e.parentNode.nodeName === "PRE" && !t;
|
|
19998
19999
|
return e.nodeName === "CODE" && !n;
|
|
@@ -20006,7 +20007,7 @@ gt.code = {
|
|
|
20006
20007
|
return n + t + e + t + n;
|
|
20007
20008
|
}
|
|
20008
20009
|
};
|
|
20009
|
-
|
|
20010
|
+
vt.image = {
|
|
20010
20011
|
filter: "img",
|
|
20011
20012
|
replacement: function(e, t) {
|
|
20012
20013
|
var n = Xi(t.getAttribute("alt")), r = t.getAttribute("src") || "", i = Xi(t.getAttribute("title")), a = i ? ' "' + i + '"' : "";
|
|
@@ -20213,7 +20214,7 @@ function Qr(e) {
|
|
|
20213
20214
|
if (!(this instanceof Qr))
|
|
20214
20215
|
return new Qr(e);
|
|
20215
20216
|
var t = {
|
|
20216
|
-
rules:
|
|
20217
|
+
rules: vt,
|
|
20217
20218
|
headingStyle: "setext",
|
|
20218
20219
|
hr: "* * *",
|
|
20219
20220
|
bulletListMarker: "*",
|
|
@@ -21272,7 +21273,7 @@ const OC = ({ emails: e, setEmails: t, setIsDisabled: n }) => {
|
|
|
21272
21273
|
};
|
|
21273
21274
|
const NC = ({ hooks: e, functions: t, meta: n = {}, gtm: r }) => {
|
|
21274
21275
|
var B, x;
|
|
21275
|
-
const i = ce(), a = "profileForm_", s = Re(
|
|
21276
|
+
const i = ce(), a = "profileForm_", s = Re(gt), [o, l] = le(s.image), [u, d] = le(!1), {
|
|
21276
21277
|
uploadImage: h,
|
|
21277
21278
|
onSuccess: m = async (D) => {
|
|
21278
21279
|
},
|
|
@@ -21399,41 +21400,41 @@ const NC = ({ hooks: e, functions: t, meta: n = {}, gtm: r }) => {
|
|
|
21399
21400
|
);
|
|
21400
21401
|
};
|
|
21401
21402
|
let os = null;
|
|
21402
|
-
const
|
|
21403
|
+
const mt = "publishArticleForm_", _c = {}, kc = 10, nk = ({
|
|
21403
21404
|
id: e = "publish-article-form",
|
|
21404
21405
|
values: t = _c,
|
|
21405
21406
|
functions: n,
|
|
21406
21407
|
meta: r,
|
|
21407
21408
|
gtm: i
|
|
21408
21409
|
}) => {
|
|
21409
|
-
const a = ce(), s = Re(
|
|
21410
|
+
const a = ce(), s = Re(gt), { create: o, onSuccess: l = () => {
|
|
21410
21411
|
}, onFailure: u = () => {
|
|
21411
21412
|
} } = n || {}, { isInOverlay: d = !1 } = r || {}, [h, m] = le(t.body || ""), [p, g] = le(!1), [f, v] = le("");
|
|
21412
21413
|
de(() => {
|
|
21413
21414
|
Mi(t, _c) || Li(t.body) && t.body !== h && t.body !== void 0 && m(t.body);
|
|
21414
21415
|
}, [t.body]);
|
|
21415
21416
|
const b = () => {
|
|
21416
|
-
!s || !s.id ? g(a.formatMessage({ id: `${
|
|
21417
|
+
!s || !s.id ? g(a.formatMessage({ id: `${mt}error_loggedOut` })) : p && g(!1);
|
|
21417
21418
|
}, C = (D) => ({
|
|
21418
21419
|
condition: (T) => {
|
|
21419
21420
|
const I = T[D];
|
|
21420
21421
|
return !I || typeof I != "string" ? !0 : I.length < kc;
|
|
21421
21422
|
},
|
|
21422
21423
|
error: a.formatMessage(
|
|
21423
|
-
{ id: `${
|
|
21424
|
+
{ id: `${mt}error_underMinLength` },
|
|
21424
21425
|
{ length: kc }
|
|
21425
21426
|
)
|
|
21426
21427
|
}), _ = !h || !Li(h), B = () => /* @__PURE__ */ c.jsxs(c.Fragment, { children: [
|
|
21427
21428
|
/* @__PURE__ */ c.jsx(un, {}),
|
|
21428
|
-
/* @__PURE__ */ c.jsx("p", { className: "text-medium", children: a.formatMessage({ id: `${
|
|
21429
|
+
/* @__PURE__ */ c.jsx("p", { className: "text-medium", children: a.formatMessage({ id: `${mt}disclaimer` }) })
|
|
21429
21430
|
] }), x = [
|
|
21430
21431
|
{
|
|
21431
21432
|
id: "title",
|
|
21432
21433
|
type: "text",
|
|
21433
21434
|
value: t.title || "",
|
|
21434
21435
|
limit: 65,
|
|
21435
|
-
label: a.formatMessage({ id: `${
|
|
21436
|
-
placeholder: a.formatMessage({ id: `${
|
|
21436
|
+
label: a.formatMessage({ id: `${mt}title_label` }),
|
|
21437
|
+
placeholder: a.formatMessage({ id: `${mt}title_placeholder` }),
|
|
21437
21438
|
functions: {
|
|
21438
21439
|
onChange: b
|
|
21439
21440
|
},
|
|
@@ -21444,7 +21445,7 @@ const yt = "publishArticleForm_", _c = {}, kc = 10, nk = ({
|
|
|
21444
21445
|
// We do a check for the rich text editor value here as well, to make sure we can't
|
|
21445
21446
|
// submit an article without a body
|
|
21446
21447
|
condition: () => _,
|
|
21447
|
-
error: a.formatMessage({ id: `${
|
|
21448
|
+
error: a.formatMessage({ id: `${mt}title_error` })
|
|
21448
21449
|
}
|
|
21449
21450
|
]
|
|
21450
21451
|
},
|
|
@@ -21453,8 +21454,8 @@ const yt = "publishArticleForm_", _c = {}, kc = 10, nk = ({
|
|
|
21453
21454
|
type: "text",
|
|
21454
21455
|
value: t.subtitle,
|
|
21455
21456
|
limit: 115,
|
|
21456
|
-
label: a.formatMessage({ id: `${
|
|
21457
|
-
placeholder: a.formatMessage({ id: `${
|
|
21457
|
+
label: a.formatMessage({ id: `${mt}subtitle_label` }),
|
|
21458
|
+
placeholder: a.formatMessage({ id: `${mt}subtitle_placeholder` }),
|
|
21458
21459
|
functions: {
|
|
21459
21460
|
onChange: b
|
|
21460
21461
|
},
|
|
@@ -21465,7 +21466,7 @@ const yt = "publishArticleForm_", _c = {}, kc = 10, nk = ({
|
|
|
21465
21466
|
props: {
|
|
21466
21467
|
formID: e,
|
|
21467
21468
|
label: {
|
|
21468
|
-
visible: a.formatMessage({ id: `${
|
|
21469
|
+
visible: a.formatMessage({ id: `${mt}body_label` })
|
|
21469
21470
|
},
|
|
21470
21471
|
showLabel: !0
|
|
21471
21472
|
}
|
|
@@ -21475,6 +21476,7 @@ const yt = "publishArticleForm_", _c = {}, kc = 10, nk = ({
|
|
|
21475
21476
|
props: {
|
|
21476
21477
|
id: `${e}-input`,
|
|
21477
21478
|
value: h,
|
|
21479
|
+
placeholder: a.formatMessage({ id: `${mt}body_placeholder` }),
|
|
21478
21480
|
meta: { isInOverlay: d },
|
|
21479
21481
|
autoFocus: !1,
|
|
21480
21482
|
functions: {
|
|
@@ -21506,7 +21508,7 @@ const yt = "publishArticleForm_", _c = {}, kc = 10, nk = ({
|
|
|
21506
21508
|
const T = { ...D, body: h };
|
|
21507
21509
|
try {
|
|
21508
21510
|
o && await o(T), os = setTimeout(() => {
|
|
21509
|
-
m(""), v(a.formatMessage({ id: `${
|
|
21511
|
+
m(""), v(a.formatMessage({ id: `${mt}aria_success` })), l(T);
|
|
21510
21512
|
}, 500);
|
|
21511
21513
|
} catch {
|
|
21512
21514
|
g(!0), v(""), u();
|
|
@@ -21515,7 +21517,7 @@ const yt = "publishArticleForm_", _c = {}, kc = 10, nk = ({
|
|
|
21515
21517
|
onFailure: u
|
|
21516
21518
|
},
|
|
21517
21519
|
fields: x,
|
|
21518
|
-
intlPath:
|
|
21520
|
+
intlPath: mt,
|
|
21519
21521
|
button: {
|
|
21520
21522
|
variant: "primary",
|
|
21521
21523
|
size: { mobile: "small", 600: "medium" },
|
|
@@ -21523,19 +21525,19 @@ const yt = "publishArticleForm_", _c = {}, kc = 10, nk = ({
|
|
|
21523
21525
|
"data-gtm-event-type": "publish-article-click",
|
|
21524
21526
|
disabled: !s || !s.id || _,
|
|
21525
21527
|
text: {
|
|
21526
|
-
default: a.formatMessage({ id: `${
|
|
21528
|
+
default: a.formatMessage({ id: `${mt}cta_submit` }),
|
|
21527
21529
|
submitting: a.formatMessage({
|
|
21528
|
-
id: `${
|
|
21530
|
+
id: `${mt}cta_submitting`
|
|
21529
21531
|
}),
|
|
21530
21532
|
submitted: a.formatMessage({
|
|
21531
|
-
id: `${
|
|
21533
|
+
id: `${mt}cta_submitted`
|
|
21532
21534
|
})
|
|
21533
21535
|
}
|
|
21534
21536
|
},
|
|
21535
21537
|
gtm: i
|
|
21536
21538
|
}
|
|
21537
21539
|
),
|
|
21538
|
-
p && /* @__PURE__ */ c.jsx(Ur, { id: "error-message", className: "error", children: typeof p == "string" && p.includes(" ") ? p : a.formatMessage({ id: `${
|
|
21540
|
+
p && /* @__PURE__ */ c.jsx(Ur, { id: "error-message", className: "error", children: typeof p == "string" && p.includes(" ") ? p : a.formatMessage({ id: `${mt}error` }) }),
|
|
21539
21541
|
f && /* @__PURE__ */ c.jsx(qe, { "aria-live": "polite", showOnFocus: !1, children: f })
|
|
21540
21542
|
] });
|
|
21541
21543
|
};
|
|
@@ -21844,9 +21846,9 @@ const LC = ({ className: e = "" }) => /* @__PURE__ */ c.jsxs(
|
|
|
21844
21846
|
className: K("success-message", e),
|
|
21845
21847
|
"data-testid": "success-message",
|
|
21846
21848
|
children: [
|
|
21847
|
-
/* @__PURE__ */ c.jsx("p", { className: "success-title", children: /* @__PURE__ */ c.jsx(
|
|
21849
|
+
/* @__PURE__ */ c.jsx("p", { className: "success-title", children: /* @__PURE__ */ c.jsx(pt, { id: "signup_success_title" }) }),
|
|
21848
21850
|
/* @__PURE__ */ c.jsx(
|
|
21849
|
-
|
|
21851
|
+
pt,
|
|
21850
21852
|
{
|
|
21851
21853
|
id: "signup_success_text",
|
|
21852
21854
|
values: {
|
|
@@ -21944,7 +21946,7 @@ const zC = {
|
|
|
21944
21946
|
className: K("signup-form-fieldset", e),
|
|
21945
21947
|
"data-testid": "signup-form",
|
|
21946
21948
|
children: [
|
|
21947
|
-
g.title && /* @__PURE__ */ c.jsx("p", { className: "signup-title", children: /* @__PURE__ */ c.jsx(
|
|
21949
|
+
g.title && /* @__PURE__ */ c.jsx("p", { className: "signup-title", children: /* @__PURE__ */ c.jsx(pt, { id: "signup_title" }) }),
|
|
21948
21950
|
D && /* @__PURE__ */ c.jsx(
|
|
21949
21951
|
zn,
|
|
21950
21952
|
{
|
|
@@ -22247,7 +22249,7 @@ const ls = "contactFooter_", ok = ({ onSuccess: e = async () => {
|
|
|
22247
22249
|
return de(() => (o(), window.addEventListener("resize", l), () => {
|
|
22248
22250
|
clearTimeout(us), window.removeEventListener("resize", l);
|
|
22249
22251
|
}), []), /* @__PURE__ */ c.jsx(Wn, { id: "contactForm", className: "contact-footer", children: /* @__PURE__ */ c.jsxs("div", { className: "inner-wrapper", children: [
|
|
22250
|
-
/* @__PURE__ */ c.jsx("h2", { children: /* @__PURE__ */ c.jsx(
|
|
22252
|
+
/* @__PURE__ */ c.jsx("h2", { children: /* @__PURE__ */ c.jsx(pt, { id: `${ls}title` }) }),
|
|
22251
22253
|
/* @__PURE__ */ c.jsxs(
|
|
22252
22254
|
"div",
|
|
22253
22255
|
{
|
|
@@ -22257,8 +22259,8 @@ const ls = "contactFooter_", ok = ({ onSuccess: e = async () => {
|
|
|
22257
22259
|
style: a ? {} : { minHeight: r },
|
|
22258
22260
|
children: [
|
|
22259
22261
|
/* @__PURE__ */ c.jsxs("aside", { children: [
|
|
22260
|
-
/* @__PURE__ */ c.jsx("p", { children: /* @__PURE__ */ c.jsx(
|
|
22261
|
-
/* @__PURE__ */ c.jsx(Ln, { className: "mailto-link", href: "mailto:hello@apolitical.co", children: /* @__PURE__ */ c.jsx(
|
|
22262
|
+
/* @__PURE__ */ c.jsx("p", { children: /* @__PURE__ */ c.jsx(pt, { id: `${ls}text` }) }),
|
|
22263
|
+
/* @__PURE__ */ c.jsx(Ln, { className: "mailto-link", href: "mailto:hello@apolitical.co", children: /* @__PURE__ */ c.jsx(pt, { id: `${ls}email` }) })
|
|
22262
22264
|
] }),
|
|
22263
22265
|
/* @__PURE__ */ c.jsx(
|
|
22264
22266
|
jC,
|
|
@@ -22437,7 +22439,7 @@ const ir = "footer_", ea = "SiteFooter", Ac = ({ group: e }) => {
|
|
|
22437
22439
|
const t = nn[e].order || [];
|
|
22438
22440
|
let n = !1;
|
|
22439
22441
|
return "text" in nn[e] && (n = nn[e].text), /* @__PURE__ */ c.jsxs(zr, { children: [
|
|
22440
|
-
/* @__PURE__ */ c.jsx("p", { className: "pre-title", children: /* @__PURE__ */ c.jsx(
|
|
22442
|
+
/* @__PURE__ */ c.jsx("p", { className: "pre-title", children: /* @__PURE__ */ c.jsx(pt, { id: `${ir}${e}` }) }),
|
|
22441
22443
|
Array.isArray(t) && t.length > 0 && /* @__PURE__ */ c.jsx("ul", { className: "text-medium", children: t.map((r) => {
|
|
22442
22444
|
if (["order", "child", "text"].includes(r))
|
|
22443
22445
|
return null;
|
|
@@ -22450,15 +22452,15 @@ const ir = "footer_", ea = "SiteFooter", Ac = ({ group: e }) => {
|
|
|
22450
22452
|
"data-gtm-event-context": ea,
|
|
22451
22453
|
"data-gtm-event-type": a,
|
|
22452
22454
|
...s,
|
|
22453
|
-
children: /* @__PURE__ */ c.jsx(
|
|
22455
|
+
children: /* @__PURE__ */ c.jsx(pt, { id: `${ir}${e}_${r}` })
|
|
22454
22456
|
}
|
|
22455
22457
|
) }, `${e}_${r}`);
|
|
22456
22458
|
}) }),
|
|
22457
22459
|
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(zr, { children: [
|
|
22458
|
-
/* @__PURE__ */ c.jsx("dt", { children: /* @__PURE__ */ c.jsx(
|
|
22460
|
+
/* @__PURE__ */ c.jsx("dt", { children: /* @__PURE__ */ c.jsx(pt, { id: `${ir}${e}_${r}` }) }),
|
|
22459
22461
|
/* @__PURE__ */ c.jsxs("dd", { children: [
|
|
22460
22462
|
typeof n != "boolean" && n[r].address && /* @__PURE__ */ c.jsx("address", { children: /* @__PURE__ */ c.jsx(
|
|
22461
|
-
|
|
22463
|
+
pt,
|
|
22462
22464
|
{
|
|
22463
22465
|
id: `${ir}${e}_${r}_address`,
|
|
22464
22466
|
values: { br: /* @__PURE__ */ c.jsx("br", {}) }
|
|
@@ -22506,12 +22508,12 @@ const ir = "footer_", ea = "SiteFooter", Ac = ({ group: e }) => {
|
|
|
22506
22508
|
className: "gtm-trackable",
|
|
22507
22509
|
"data-gtm-event-context": ea,
|
|
22508
22510
|
"data-gtm-event-type": "social-click",
|
|
22509
|
-
children: /* @__PURE__ */ c.jsx("span", { className: "hidden", children: /* @__PURE__ */ c.jsx(
|
|
22511
|
+
children: /* @__PURE__ */ c.jsx("span", { className: "hidden", children: /* @__PURE__ */ c.jsx(pt, { id: `${ir}social_${e}` }) })
|
|
22510
22512
|
}
|
|
22511
22513
|
) }, e);
|
|
22512
22514
|
}) }),
|
|
22513
22515
|
/* @__PURE__ */ c.jsx("small", { children: /* @__PURE__ */ c.jsx(
|
|
22514
|
-
|
|
22516
|
+
pt,
|
|
22515
22517
|
{
|
|
22516
22518
|
id: `${ir}copyright`,
|
|
22517
22519
|
values: { currentYear: (/* @__PURE__ */ new Date()).getFullYear() }
|
|
@@ -22856,7 +22858,7 @@ const ir = "footer_", ea = "SiteFooter", Ac = ({ group: e }) => {
|
|
|
22856
22858
|
const WC = { height: 67, height_desktop: 83 };
|
|
22857
22859
|
var Tt = /* @__PURE__ */ ((e) => (e.NAVIGATION = "navigation", e.SEARCH = "search", e.ACCOUNT = "account-navigation", e.SITE = "site-navigation", e))(Tt || {});
|
|
22858
22860
|
const Xf = ({ showNavigation: e = !0 }) => {
|
|
22859
|
-
const t = ce(), n = Re(
|
|
22861
|
+
const t = ce(), n = Re(gt), r = gr(!0, !0), i = n && typeof n.id == "string", a = Gt(
|
|
22860
22862
|
() => Ue.getIsDesktopVersion(i, r),
|
|
22861
22863
|
[i, r]
|
|
22862
22864
|
), [s, o] = pr(ua, {
|
|
@@ -23298,7 +23300,7 @@ const ZC = 25, YC = ({
|
|
|
23298
23300
|
showPlaceholders: d = !1,
|
|
23299
23301
|
className: h = ""
|
|
23300
23302
|
}) => {
|
|
23301
|
-
const m = ce(), p = "membersList", g = Re(
|
|
23303
|
+
const m = ce(), p = "membersList", g = Re(gt), [f, v] = le(!1);
|
|
23302
23304
|
return e.length === 0 && !d ? null : /* @__PURE__ */ c.jsxs("div", { className: K("members-list", h), children: [
|
|
23303
23305
|
u ? /* @__PURE__ */ c.jsxs("h1", { children: [
|
|
23304
23306
|
m.formatMessage({ id: p }),
|
|
@@ -23478,7 +23480,7 @@ const rt = "discussion_form_", va = ({
|
|
|
23478
23480
|
gtmContext: m = "DiscussionForm"
|
|
23479
23481
|
}) => {
|
|
23480
23482
|
var it, Se, Ye;
|
|
23481
|
-
const p = ce(), g = Re(
|
|
23483
|
+
const p = ce(), g = Re(gt), [f, v] = le(""), {
|
|
23482
23484
|
isLoading: b = !1,
|
|
23483
23485
|
isInWrapper: C = !1,
|
|
23484
23486
|
isInOverlay: _ = !1,
|
|
@@ -26132,7 +26134,7 @@ const ba = ({
|
|
|
26132
26134
|
parentId: B
|
|
26133
26135
|
}) => {
|
|
26134
26136
|
var Ye, xe, W, ie, pe, be, _e, et, tt, dt;
|
|
26135
|
-
const x = ce(), D = Re(
|
|
26137
|
+
const x = ce(), D = Re(gt), T = Re($o), {
|
|
26136
26138
|
createContent: I = async () => {
|
|
26137
26139
|
},
|
|
26138
26140
|
deleteContent: N = async () => {
|
|
@@ -26547,7 +26549,7 @@ const ba = ({
|
|
|
26547
26549
|
],
|
|
26548
26550
|
gtmContext: `${t.type.charAt(0).toUpperCase()}${t.type.slice(1)}:${t.slug}`,
|
|
26549
26551
|
children: /* @__PURE__ */ c.jsx(
|
|
26550
|
-
|
|
26552
|
+
pt,
|
|
26551
26553
|
{
|
|
26552
26554
|
id: "discussion_delete_text",
|
|
26553
26555
|
values: {
|
|
@@ -26566,7 +26568,7 @@ const ba = ({
|
|
|
26566
26568
|
const VE = mr(
|
|
26567
26569
|
() => Promise.resolve().then(() => s_)
|
|
26568
26570
|
), KE = 65, ZE = ({ forceShow: e, form: t, className: n }) => {
|
|
26569
|
-
const r = ce(), i = "discussionFormCard_", a = "DiscardDraftModal", o = Re(
|
|
26571
|
+
const r = ce(), i = "discussionFormCard_", a = "DiscardDraftModal", o = Re(gt) || "community", l = oo(o);
|
|
26570
26572
|
l.name || (l.name = r.formatMessage({
|
|
26571
26573
|
id: `member_${typeof o == "string" ? o : "community"}`
|
|
26572
26574
|
}));
|
|
@@ -26771,7 +26773,7 @@ const VE = mr(
|
|
|
26771
26773
|
};
|
|
26772
26774
|
return e ? /* @__PURE__ */ c.jsx(ZE, { form: p }) : /* @__PURE__ */ c.jsx(YE, { ...p });
|
|
26773
26775
|
}, ch = ({ form: e }) => {
|
|
26774
|
-
const t = Re(
|
|
26776
|
+
const t = Re(gt), n = ce(), [r, i] = le(!1), a = () => {
|
|
26775
26777
|
tm(t) || i(!0);
|
|
26776
26778
|
};
|
|
26777
26779
|
de(() => (document.addEventListener(ut.DISCUSSION_POST_ADDED, a), () => {
|
|
@@ -27845,7 +27847,7 @@ const Dk = ({
|
|
|
27845
27847
|
return null;
|
|
27846
27848
|
};
|
|
27847
27849
|
function p_({ buildMemberData: e, communitySlug: t }) {
|
|
27848
|
-
const n = ce(), r = Re(
|
|
27850
|
+
const n = ce(), r = Re(gt), [i, a] = le({
|
|
27849
27851
|
count: "...",
|
|
27850
27852
|
isMember: !1,
|
|
27851
27853
|
memberType: ""
|
|
@@ -27887,7 +27889,7 @@ const dh = ({
|
|
|
27887
27889
|
setFocus: l = !1
|
|
27888
27890
|
}) => {
|
|
27889
27891
|
var $, k;
|
|
27890
|
-
const u = ce(), d = Re(
|
|
27892
|
+
const u = ce(), d = Re(gt), h = !!(d != null && d.id), m = te.useRef(null), [p, g] = le({
|
|
27891
27893
|
data: null,
|
|
27892
27894
|
isLoading: !0
|
|
27893
27895
|
});
|
|
@@ -28771,7 +28773,7 @@ export {
|
|
|
28771
28773
|
vr as Tooltip,
|
|
28772
28774
|
uk as TopLevelPage,
|
|
28773
28775
|
$i as UUID_V4_REGEX,
|
|
28774
|
-
|
|
28776
|
+
gt as UserContext,
|
|
28775
28777
|
Bm as UserProvider,
|
|
28776
28778
|
qe as VisuallyHidden,
|
|
28777
28779
|
Ip as addAriaProps,
|