@apolitical/component-library 6.6.17 → 6.6.18
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/index.js +6 -6
- package/index.mjs +82 -81
- package/modals/components/overlay/index.d.ts +1 -1
- package/modals/components/overlay/overlay.d.ts +2 -2
- package/package.json +1 -1
package/index.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import re, { memo as rn, useRef as Se, useEffect as fe, useState as ce, useMemo as Xt, forwardRef as oo, Children as Bs, createContext as Tt, useContext as $e, useCallback as Ie, lazy as yr, useReducer as xr, Suspense as ed, Fragment as Kr, useLayoutEffect as zm, Component as qm } from "react";
|
|
2
|
-
import { useIntl as de, FormattedMessage as
|
|
2
|
+
import { useIntl as de, FormattedMessage as ht, IntlProvider as Um, createIntl as Wm } from "react-intl";
|
|
3
3
|
import $t from "lodash.clonedeep";
|
|
4
4
|
import Vm from "lodash.set";
|
|
5
5
|
import td from "react-dom";
|
|
@@ -510,7 +510,7 @@ function rh() {
|
|
|
510
510
|
});
|
|
511
511
|
}
|
|
512
512
|
}
|
|
513
|
-
var
|
|
513
|
+
var gt = function(M, ue, he, Ae, qe, Ge, Re) {
|
|
514
514
|
var Me = {
|
|
515
515
|
// This tag allows us to uniquely identify this as a React Element
|
|
516
516
|
$$typeof: t,
|
|
@@ -554,7 +554,7 @@ function rh() {
|
|
|
554
554
|
var ot = typeof M == "function" ? M.displayName || M.name || "Unknown" : M;
|
|
555
555
|
Me && st(Re, ot), bt && jt(Re, ot);
|
|
556
556
|
}
|
|
557
|
-
return
|
|
557
|
+
return gt(M, Me, bt, qe, Ae, ye.current, Re);
|
|
558
558
|
}
|
|
559
559
|
}
|
|
560
560
|
var _r = g.ReactCurrentOwner, di = g.ReactDebugCurrentFrame;
|
|
@@ -2056,7 +2056,7 @@ const $k = ({
|
|
|
2056
2056
|
steps: t = 1
|
|
2057
2057
|
}) => /* @__PURE__ */ c.jsxs(c.Fragment, { children: [
|
|
2058
2058
|
/* @__PURE__ */ c.jsx(ze, { children: /* @__PURE__ */ c.jsx(
|
|
2059
|
-
|
|
2059
|
+
ht,
|
|
2060
2060
|
{
|
|
2061
2061
|
id: "progressTracker",
|
|
2062
2062
|
values: { current: e, total: t }
|
|
@@ -2401,7 +2401,7 @@ const qk = ({
|
|
|
2401
2401
|
] }, `dl-${u}`) : /* @__PURE__ */ c.jsx("li", { style: m, children: typeof l.text == "string" ? /* @__PURE__ */ c.jsx(en, { options: d, children: l.text }) : l.text }, u);
|
|
2402
2402
|
})
|
|
2403
2403
|
});
|
|
2404
|
-
},
|
|
2404
|
+
}, ft = () => re.Fragment, Mh = ({ children: e }) => /* @__PURE__ */ c.jsx(zt, { variant: "secondary", children: e }), Rh = ({ children: e }) => typeof e == "object" && Object.keys(e || {}).length === 1 ? /* @__PURE__ */ c.jsx("p", { className: "center", children: e }) : /* @__PURE__ */ c.jsx("div", { className: "center", children: e }), Ih = ["span", "strong", "h1", "h2", "h3", "h4", "h5", "h6", "p"], $h = ({ children: e }) => {
|
|
2405
2405
|
const t = de();
|
|
2406
2406
|
if (!e)
|
|
2407
2407
|
return null;
|
|
@@ -2523,28 +2523,29 @@ const Uh = {
|
|
|
2523
2523
|
CaseStudy: Mh,
|
|
2524
2524
|
// Override embedded HTML
|
|
2525
2525
|
// Our content team previously used real HTML, which we need to tear out and replace with React components
|
|
2526
|
-
style:
|
|
2526
|
+
style: ft,
|
|
2527
2527
|
details: $h,
|
|
2528
2528
|
div: Lh,
|
|
2529
2529
|
iframe: zh,
|
|
2530
|
-
center: Rh
|
|
2530
|
+
center: Rh,
|
|
2531
|
+
script: ft
|
|
2531
2532
|
},
|
|
2532
2533
|
"text-only": {
|
|
2533
|
-
h1:
|
|
2534
|
-
h2:
|
|
2535
|
-
h3:
|
|
2536
|
-
h4:
|
|
2537
|
-
h5:
|
|
2538
|
-
h6:
|
|
2539
|
-
style:
|
|
2540
|
-
details:
|
|
2541
|
-
div:
|
|
2542
|
-
TextBox:
|
|
2543
|
-
CollapsibleSection:
|
|
2544
|
-
CaseStudy:
|
|
2545
|
-
blockquote:
|
|
2546
|
-
iframe:
|
|
2547
|
-
button:
|
|
2534
|
+
h1: ft,
|
|
2535
|
+
h2: ft,
|
|
2536
|
+
h3: ft,
|
|
2537
|
+
h4: ft,
|
|
2538
|
+
h5: ft,
|
|
2539
|
+
h6: ft,
|
|
2540
|
+
style: ft,
|
|
2541
|
+
details: ft,
|
|
2542
|
+
div: ft,
|
|
2543
|
+
TextBox: ft,
|
|
2544
|
+
CollapsibleSection: ft,
|
|
2545
|
+
CaseStudy: ft,
|
|
2546
|
+
blockquote: ft,
|
|
2547
|
+
iframe: ft,
|
|
2548
|
+
button: ft
|
|
2548
2549
|
}
|
|
2549
2550
|
}, fr = ({
|
|
2550
2551
|
element: e = "div",
|
|
@@ -2712,11 +2713,11 @@ const Jh = ({ children: e, locale: t, messages: n }) => {
|
|
|
2712
2713
|
es: "Español",
|
|
2713
2714
|
fr: "Français",
|
|
2714
2715
|
pt: "Português"
|
|
2715
|
-
},
|
|
2716
|
+
}, pt = Tt({ isLoading: !0 });
|
|
2716
2717
|
function po() {
|
|
2717
|
-
return $e(
|
|
2718
|
+
return $e(pt);
|
|
2718
2719
|
}
|
|
2719
|
-
const Xh = ({ children: e, user: t, updateDetails: n }) => /* @__PURE__ */ c.jsx(
|
|
2720
|
+
const Xh = ({ children: e, user: t, updateDetails: n }) => /* @__PURE__ */ c.jsx(pt.Provider, { value: { ...t, updateDetails: n }, children: e }), vd = Tt({
|
|
2720
2721
|
registerOverlay: () => {
|
|
2721
2722
|
},
|
|
2722
2723
|
unregisterOverlay: () => {
|
|
@@ -3008,7 +3009,7 @@ const En = ({
|
|
|
3008
3009
|
variant: f = "inline",
|
|
3009
3010
|
isCondensed: b = !0,
|
|
3010
3011
|
additionalContentNewLine: g = !1
|
|
3011
|
-
} = i, y = $e(
|
|
3012
|
+
} = i, y = $e(pt), w = h && y && typeof y.id == "string", [A, C] = ce(!1), E = vo(t);
|
|
3012
3013
|
E.name || (E.name = m.formatMessage({
|
|
3013
3014
|
id: `member_${typeof t == "string" ? t : "community"}`
|
|
3014
3015
|
}));
|
|
@@ -4965,7 +4966,7 @@ const Tr = "joinCommunityButton", Pd = ({
|
|
|
4965
4966
|
}, leave: () => {
|
|
4966
4967
|
} }
|
|
4967
4968
|
}) => {
|
|
4968
|
-
const s = de(), o = $e(
|
|
4969
|
+
const s = de(), o = $e(pt), l = o && typeof o.id == "string", u = r || !l, [d, m] = ce(e), [h, p] = ce(e ? "joined" : "notJoined");
|
|
4969
4970
|
fe(() => {
|
|
4970
4971
|
h === "joining" ? p("joined") : h === "leaving" && p("notJoined");
|
|
4971
4972
|
}, [d]);
|
|
@@ -5016,7 +5017,7 @@ const Ia = "communityDetails_", Wk = ({
|
|
|
5016
5017
|
members: { number: i = 0, data: a = [] } = { number: 0, data: [] },
|
|
5017
5018
|
functions: { invite: s, ...o }
|
|
5018
5019
|
}) => {
|
|
5019
|
-
const l = de(), { id: u } = $e(
|
|
5020
|
+
const l = de(), { id: u } = $e(pt), d = u, m = 5, h = i || a.length, p = a.length ? a : Array(m).fill({}), v = `/communities/${r}/members` === window.location.pathname, f = t || n, b = !n && !t;
|
|
5020
5021
|
return /* @__PURE__ */ c.jsxs("div", { className: V("community-details", e), children: [
|
|
5021
5022
|
f ? /* @__PURE__ */ c.jsxs("div", { className: "member-details", children: [
|
|
5022
5023
|
/* @__PURE__ */ c.jsxs("div", { className: "top", children: [
|
|
@@ -7653,7 +7654,7 @@ const iv = ({
|
|
|
7653
7654
|
totalReplies: f.length
|
|
7654
7655
|
}
|
|
7655
7656
|
)
|
|
7656
|
-
] }) : /* @__PURE__ */ c.jsx(zt, { children: /* @__PURE__ */ c.jsx(
|
|
7657
|
+
] }) : /* @__PURE__ */ c.jsx(zt, { children: /* @__PURE__ */ c.jsx(ht, { id: "replies_feed_missing_polls_vote_message" }) }),
|
|
7657
7658
|
/* @__PURE__ */ c.jsx(Sm, { form: d })
|
|
7658
7659
|
] });
|
|
7659
7660
|
};
|
|
@@ -8246,7 +8247,7 @@ const Kd = ({
|
|
|
8246
8247
|
href: "/home/",
|
|
8247
8248
|
className: V("logo", e, t, n),
|
|
8248
8249
|
...r,
|
|
8249
|
-
children: /* @__PURE__ */ c.jsx(ze, { children: /* @__PURE__ */ c.jsx(
|
|
8250
|
+
children: /* @__PURE__ */ c.jsx(ze, { children: /* @__PURE__ */ c.jsx(ht, { id: "apolitical" }) })
|
|
8250
8251
|
}
|
|
8251
8252
|
) });
|
|
8252
8253
|
let xi = !1;
|
|
@@ -8333,7 +8334,7 @@ const vv = yr(() => Promise.resolve().then(() => fp)), bv = [
|
|
|
8333
8334
|
href: "/communities/"
|
|
8334
8335
|
}
|
|
8335
8336
|
], yv = ({ activeLink: e, profile: t }) => {
|
|
8336
|
-
const n = de(), r = $e(
|
|
8337
|
+
const n = de(), r = $e(pt), i = r && typeof r.id == "string";
|
|
8337
8338
|
return /* @__PURE__ */ c.jsxs("ul", { id: "navigation-menu", className: "text-medium", children: [
|
|
8338
8339
|
bv.map(({ key: a, href: s }) => {
|
|
8339
8340
|
const o = gv(s, e), l = {};
|
|
@@ -10136,7 +10137,7 @@ const Rv = ({
|
|
|
10136
10137
|
const i = r;
|
|
10137
10138
|
return i != null && i.name && i.name === Vi ? /* @__PURE__ */ c.jsxs("span", { ...e, className: "mention deleted-user", children: [
|
|
10138
10139
|
"@",
|
|
10139
|
-
/* @__PURE__ */ c.jsx(
|
|
10140
|
+
/* @__PURE__ */ c.jsx(ht, { id: "member_deleted" }),
|
|
10140
10141
|
t
|
|
10141
10142
|
] }) : /* @__PURE__ */ c.jsxs("a", { ...e, className: "mention", children: [
|
|
10142
10143
|
"@",
|
|
@@ -10376,7 +10377,7 @@ function Gb(e, t) {
|
|
|
10376
10377
|
function rl(e) {
|
|
10377
10378
|
return Object.prototype.toString.call(e) === "[object Object]";
|
|
10378
10379
|
}
|
|
10379
|
-
function
|
|
10380
|
+
function mt(e) {
|
|
10380
10381
|
var t, n;
|
|
10381
10382
|
return rl(e) === !1 ? !1 : (t = e.constructor, t === void 0 ? !0 : (n = t.prototype, !(rl(n) === !1 || n.hasOwnProperty("isPrototypeOf") === !1)));
|
|
10382
10383
|
}
|
|
@@ -11269,8 +11270,8 @@ var m0 = (e, t, n) => {
|
|
|
11269
11270
|
text: jt
|
|
11270
11271
|
});
|
|
11271
11272
|
} else {
|
|
11272
|
-
var
|
|
11273
|
-
ge.children =
|
|
11273
|
+
var gt = ge.children.slice(0, xe), _a = ge.children.slice(xe);
|
|
11274
|
+
ge.children = gt, at = Or(Or({}, ke), {}, {
|
|
11274
11275
|
children: _a
|
|
11275
11276
|
});
|
|
11276
11277
|
}
|
|
@@ -11344,7 +11345,7 @@ var m0 = (e, t, n) => {
|
|
|
11344
11345
|
}, pf = (e, t) => {
|
|
11345
11346
|
for (var n in e) {
|
|
11346
11347
|
var r = e[n], i = t[n];
|
|
11347
|
-
if (
|
|
11348
|
+
if (mt(r) && mt(i)) {
|
|
11348
11349
|
if (!pf(r, i))
|
|
11349
11350
|
return !1;
|
|
11350
11351
|
} else if (Array.isArray(r) && Array.isArray(i)) {
|
|
@@ -11457,7 +11458,7 @@ var Y = {
|
|
|
11457
11458
|
return !Y.isBackward(e);
|
|
11458
11459
|
},
|
|
11459
11460
|
isRange(e) {
|
|
11460
|
-
return
|
|
11461
|
+
return mt(e) && Pe.isPoint(e.anchor) && Pe.isPoint(e.focus);
|
|
11461
11462
|
},
|
|
11462
11463
|
*points(e) {
|
|
11463
11464
|
yield [e.anchor, "anchor"], yield [e.focus, "focus"];
|
|
@@ -11489,9 +11490,9 @@ var Y = {
|
|
|
11489
11490
|
r.anchor = l, r.focus = u;
|
|
11490
11491
|
});
|
|
11491
11492
|
}
|
|
11492
|
-
}, gl = (e) =>
|
|
11493
|
+
}, gl = (e) => mt(e) && le.isNodeList(e.children) && !x.isEditor(e), pe = {
|
|
11493
11494
|
isAncestor(e) {
|
|
11494
|
-
return
|
|
11495
|
+
return mt(e) && le.isNodeList(e.children);
|
|
11495
11496
|
},
|
|
11496
11497
|
isElement: gl,
|
|
11497
11498
|
isElementList(e) {
|
|
@@ -11748,7 +11749,7 @@ var Dn = {
|
|
|
11748
11749
|
return Dn.isOperation(e) && e.type.endsWith("_node");
|
|
11749
11750
|
},
|
|
11750
11751
|
isOperation(e) {
|
|
11751
|
-
if (!
|
|
11752
|
+
if (!mt(e))
|
|
11752
11753
|
return !1;
|
|
11753
11754
|
switch (e.type) {
|
|
11754
11755
|
case "insert_node":
|
|
@@ -11756,7 +11757,7 @@ var Dn = {
|
|
|
11756
11757
|
case "insert_text":
|
|
11757
11758
|
return typeof e.offset == "number" && typeof e.text == "string" && R.isPath(e.path);
|
|
11758
11759
|
case "merge_node":
|
|
11759
|
-
return typeof e.position == "number" && R.isPath(e.path) &&
|
|
11760
|
+
return typeof e.position == "number" && R.isPath(e.path) && mt(e.properties);
|
|
11760
11761
|
case "move_node":
|
|
11761
11762
|
return R.isPath(e.path) && R.isPath(e.newPath);
|
|
11762
11763
|
case "remove_node":
|
|
@@ -11764,11 +11765,11 @@ var Dn = {
|
|
|
11764
11765
|
case "remove_text":
|
|
11765
11766
|
return typeof e.offset == "number" && typeof e.text == "string" && R.isPath(e.path);
|
|
11766
11767
|
case "set_node":
|
|
11767
|
-
return R.isPath(e.path) &&
|
|
11768
|
+
return R.isPath(e.path) && mt(e.properties) && mt(e.newProperties);
|
|
11768
11769
|
case "set_selection":
|
|
11769
|
-
return e.properties === null && Y.isRange(e.newProperties) || e.newProperties === null && Y.isRange(e.properties) ||
|
|
11770
|
+
return e.properties === null && Y.isRange(e.newProperties) || e.newProperties === null && Y.isRange(e.properties) || mt(e.properties) && mt(e.newProperties);
|
|
11770
11771
|
case "split_node":
|
|
11771
|
-
return R.isPath(e.path) && typeof e.position == "number" &&
|
|
11772
|
+
return R.isPath(e.path) && typeof e.position == "number" && mt(e.properties);
|
|
11772
11773
|
default:
|
|
11773
11774
|
return !1;
|
|
11774
11775
|
}
|
|
@@ -11860,9 +11861,9 @@ var Dn = {
|
|
|
11860
11861
|
var t = yl.get(e);
|
|
11861
11862
|
if (t !== void 0)
|
|
11862
11863
|
return t;
|
|
11863
|
-
if (!
|
|
11864
|
+
if (!mt(e))
|
|
11864
11865
|
return !1;
|
|
11865
|
-
var n = typeof e.addMark == "function" && typeof e.apply == "function" && typeof e.deleteFragment == "function" && typeof e.insertBreak == "function" && typeof e.insertSoftBreak == "function" && typeof e.insertFragment == "function" && typeof e.insertNode == "function" && typeof e.insertText == "function" && typeof e.isElementReadOnly == "function" && typeof e.isInline == "function" && typeof e.isSelectable == "function" && typeof e.isVoid == "function" && typeof e.normalizeNode == "function" && typeof e.onChange == "function" && typeof e.removeMark == "function" && typeof e.getDirtyPaths == "function" && (e.marks === null ||
|
|
11866
|
+
var n = typeof e.addMark == "function" && typeof e.apply == "function" && typeof e.deleteFragment == "function" && typeof e.insertBreak == "function" && typeof e.insertSoftBreak == "function" && typeof e.insertFragment == "function" && typeof e.insertNode == "function" && typeof e.insertText == "function" && typeof e.isElementReadOnly == "function" && typeof e.isInline == "function" && typeof e.isSelectable == "function" && typeof e.isVoid == "function" && typeof e.normalizeNode == "function" && typeof e.onChange == "function" && typeof e.removeMark == "function" && typeof e.getDirtyPaths == "function" && (e.marks === null || mt(e.marks)) && (e.selection === null || Y.isRange(e.selection)) && le.isNodeList(e.children) && Dn.isOperationList(e.operations);
|
|
11866
11867
|
return yl.set(e, n), n;
|
|
11867
11868
|
}, x = {
|
|
11868
11869
|
above(e, t) {
|
|
@@ -12090,7 +12091,7 @@ var Pe = {
|
|
|
12090
12091
|
return e.offset === t.offset && R.equals(e.path, t.path);
|
|
12091
12092
|
},
|
|
12092
12093
|
isPoint(e) {
|
|
12093
|
-
return
|
|
12094
|
+
return mt(e) && typeof e.offset == "number" && R.isPath(e.path);
|
|
12094
12095
|
},
|
|
12095
12096
|
transform(e, t) {
|
|
12096
12097
|
var n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
|
|
@@ -12182,7 +12183,7 @@ var be = {
|
|
|
12182
12183
|
return pf(r ? i(e) : e, r ? i(t) : t);
|
|
12183
12184
|
},
|
|
12184
12185
|
isText(e) {
|
|
12185
|
-
return
|
|
12186
|
+
return mt(e) && typeof e.text == "string";
|
|
12186
12187
|
},
|
|
12187
12188
|
isTextList(e) {
|
|
12188
12189
|
return Array.isArray(e) && e.every((t) => be.isText(t));
|
|
@@ -21691,12 +21692,12 @@ function GC(e) {
|
|
|
21691
21692
|
if (ge) {
|
|
21692
21693
|
let jt = oe;
|
|
21693
21694
|
for (Be = void 0; jt--; ) {
|
|
21694
|
-
const
|
|
21695
|
-
if (
|
|
21696
|
-
if (
|
|
21695
|
+
const gt = K[jt];
|
|
21696
|
+
if (gt[1].type === "lineEnding" || gt[1].type === "lineEndingBlank") {
|
|
21697
|
+
if (gt[0] === "exit")
|
|
21697
21698
|
continue;
|
|
21698
|
-
Be && (K[Be][1].type = "lineEndingBlank", ke = !0),
|
|
21699
|
-
} else if (!(
|
|
21699
|
+
Be && (K[Be][1].type = "lineEndingBlank", ke = !0), gt[1].type = "lineEnding", Be = jt;
|
|
21700
|
+
} else if (!(gt[1].type === "linePrefix" || gt[1].type === "blockQuotePrefix" || gt[1].type === "blockQuotePrefixWhitespace" || gt[1].type === "blockQuoteMarker" || gt[1].type === "listItemIndent"))
|
|
21700
21701
|
break;
|
|
21701
21702
|
}
|
|
21702
21703
|
dt && (!Be || dt < Be) && (ge._spread = !0), ge.end = Object.assign(
|
|
@@ -23689,7 +23690,7 @@ var UE = {
|
|
|
23689
23690
|
* Check if a value is a `History` object.
|
|
23690
23691
|
*/
|
|
23691
23692
|
isHistory(e) {
|
|
23692
|
-
return
|
|
23693
|
+
return mt(e) && Array.isArray(e.redos) && Array.isArray(e.undos) && (e.redos.length === 0 || Dn.isOperationList(e.redos[0].operations)) && (e.undos.length === 0 || Dn.isOperationList(e.undos[0].operations));
|
|
23693
23694
|
}
|
|
23694
23695
|
}, ps = /* @__PURE__ */ new WeakMap(), gs = /* @__PURE__ */ new WeakMap(), or = {
|
|
23695
23696
|
/**
|
|
@@ -24611,7 +24612,7 @@ const o_ = ({
|
|
|
24611
24612
|
...a
|
|
24612
24613
|
}) => {
|
|
24613
24614
|
var P;
|
|
24614
|
-
const s = de(), o = "profileForm_", l = $e(
|
|
24615
|
+
const s = de(), o = "profileForm_", l = $e(pt), [u, d] = ce(l.image), [m, h] = ce(!1), {
|
|
24615
24616
|
uploadImage: p = () => {
|
|
24616
24617
|
},
|
|
24617
24618
|
onSuccess: v = async (O) => {
|
|
@@ -24777,7 +24778,7 @@ const ut = "publishArticleForm_", Hc = {}, Kc = 10, tA = ({
|
|
|
24777
24778
|
meta: r,
|
|
24778
24779
|
gtm: i
|
|
24779
24780
|
}) => {
|
|
24780
|
-
const a = de(), s = $e(
|
|
24781
|
+
const a = de(), s = $e(pt), { create: o, onSuccess: l = () => {
|
|
24781
24782
|
}, onFailure: u = () => {
|
|
24782
24783
|
} } = n || {}, { isInOverlay: d = !1 } = r || {}, [m, h] = ce(!1), [p, v] = ce(t.body || ""), [f, b] = ce(!1), [g, y] = ce("");
|
|
24783
24784
|
fe(() => {
|
|
@@ -25245,9 +25246,9 @@ const m_ = ({ className: e = "" }) => /* @__PURE__ */ c.jsxs(
|
|
|
25245
25246
|
className: V("success-message", e),
|
|
25246
25247
|
"data-testid": "success-message",
|
|
25247
25248
|
children: [
|
|
25248
|
-
/* @__PURE__ */ c.jsx("p", { className: "success-title", children: /* @__PURE__ */ c.jsx(
|
|
25249
|
+
/* @__PURE__ */ c.jsx("p", { className: "success-title", children: /* @__PURE__ */ c.jsx(ht, { id: "signup_success_title" }) }),
|
|
25249
25250
|
/* @__PURE__ */ c.jsx(
|
|
25250
|
-
|
|
25251
|
+
ht,
|
|
25251
25252
|
{
|
|
25252
25253
|
id: "signup_success_text",
|
|
25253
25254
|
values: {
|
|
@@ -25345,7 +25346,7 @@ const h_ = {
|
|
|
25345
25346
|
className: V("signup-form-fieldset", e),
|
|
25346
25347
|
"data-testid": "signup-form",
|
|
25347
25348
|
children: [
|
|
25348
|
-
v.title && /* @__PURE__ */ c.jsx("p", { className: "signup-title", children: /* @__PURE__ */ c.jsx(
|
|
25349
|
+
v.title && /* @__PURE__ */ c.jsx("p", { className: "signup-title", children: /* @__PURE__ */ c.jsx(ht, { id: "signup_title" }) }),
|
|
25349
25350
|
E && /* @__PURE__ */ c.jsx(
|
|
25350
25351
|
Vn,
|
|
25351
25352
|
{
|
|
@@ -25648,7 +25649,7 @@ const xs = "contactFooter_", sA = ({ onSuccess: e = async () => {
|
|
|
25648
25649
|
return fe(() => (o(), window.addEventListener("resize", l), () => {
|
|
25649
25650
|
clearTimeout(ys), window.removeEventListener("resize", l);
|
|
25650
25651
|
}), []), /* @__PURE__ */ c.jsx(Kn, { id: "contactForm", className: "contact-footer", children: /* @__PURE__ */ c.jsxs("div", { className: "inner-wrapper", children: [
|
|
25651
|
-
/* @__PURE__ */ c.jsx("h2", { children: /* @__PURE__ */ c.jsx(
|
|
25652
|
+
/* @__PURE__ */ c.jsx("h2", { children: /* @__PURE__ */ c.jsx(ht, { id: `${xs}title` }) }),
|
|
25652
25653
|
/* @__PURE__ */ c.jsxs(
|
|
25653
25654
|
"div",
|
|
25654
25655
|
{
|
|
@@ -25658,8 +25659,8 @@ const xs = "contactFooter_", sA = ({ onSuccess: e = async () => {
|
|
|
25658
25659
|
style: a ? {} : { minHeight: r },
|
|
25659
25660
|
children: [
|
|
25660
25661
|
/* @__PURE__ */ c.jsxs("aside", { children: [
|
|
25661
|
-
/* @__PURE__ */ c.jsx("p", { children: /* @__PURE__ */ c.jsx(
|
|
25662
|
-
/* @__PURE__ */ c.jsx(Wn, { className: "mailto-link", href: "mailto:hello@apolitical.co", children: /* @__PURE__ */ c.jsx(
|
|
25662
|
+
/* @__PURE__ */ c.jsx("p", { children: /* @__PURE__ */ c.jsx(ht, { id: `${xs}text` }) }),
|
|
25663
|
+
/* @__PURE__ */ c.jsx(Wn, { className: "mailto-link", href: "mailto:hello@apolitical.co", children: /* @__PURE__ */ c.jsx(ht, { id: `${xs}email` }) })
|
|
25663
25664
|
] }),
|
|
25664
25665
|
/* @__PURE__ */ c.jsx(
|
|
25665
25666
|
i_,
|
|
@@ -25838,7 +25839,7 @@ const ur = "footer_", ca = "SiteFooter", Yc = ({ group: e }) => {
|
|
|
25838
25839
|
const t = on[e].order || [];
|
|
25839
25840
|
let n = !1;
|
|
25840
25841
|
return "text" in on[e] && (n = on[e].text), /* @__PURE__ */ c.jsxs(Kr, { children: [
|
|
25841
|
-
/* @__PURE__ */ c.jsx("p", { className: "pre-title", children: /* @__PURE__ */ c.jsx(
|
|
25842
|
+
/* @__PURE__ */ c.jsx("p", { className: "pre-title", children: /* @__PURE__ */ c.jsx(ht, { id: `${ur}${e}` }) }),
|
|
25842
25843
|
Array.isArray(t) && t.length > 0 && /* @__PURE__ */ c.jsx("ul", { className: "text-medium", children: t.map((r) => {
|
|
25843
25844
|
if (["order", "child", "text"].includes(r))
|
|
25844
25845
|
return null;
|
|
@@ -25851,15 +25852,15 @@ const ur = "footer_", ca = "SiteFooter", Yc = ({ group: e }) => {
|
|
|
25851
25852
|
"data-gtm-event-context": ca,
|
|
25852
25853
|
"data-gtm-event-type": a,
|
|
25853
25854
|
...s,
|
|
25854
|
-
children: /* @__PURE__ */ c.jsx(
|
|
25855
|
+
children: /* @__PURE__ */ c.jsx(ht, { id: `${ur}${e}_${r}` })
|
|
25855
25856
|
}
|
|
25856
25857
|
) }, `${e}_${r}`);
|
|
25857
25858
|
}) }),
|
|
25858
25859
|
typeof n != "boolean" && "order" in n && Array.isArray(n.order) && /* @__PURE__ */ c.jsx("dl", { className: "text-medium", children: n.order.map((r) => /* @__PURE__ */ c.jsxs(Kr, { children: [
|
|
25859
|
-
/* @__PURE__ */ c.jsx("dt", { children: /* @__PURE__ */ c.jsx(
|
|
25860
|
+
/* @__PURE__ */ c.jsx("dt", { children: /* @__PURE__ */ c.jsx(ht, { id: `${ur}${e}_${r}` }) }),
|
|
25860
25861
|
/* @__PURE__ */ c.jsxs("dd", { children: [
|
|
25861
25862
|
typeof n != "boolean" && n[r].address && /* @__PURE__ */ c.jsx("address", { children: /* @__PURE__ */ c.jsx(
|
|
25862
|
-
|
|
25863
|
+
ht,
|
|
25863
25864
|
{
|
|
25864
25865
|
id: `${ur}${e}_${r}_address`,
|
|
25865
25866
|
values: { br: /* @__PURE__ */ c.jsx("br", {}) }
|
|
@@ -25907,12 +25908,12 @@ const ur = "footer_", ca = "SiteFooter", Yc = ({ group: e }) => {
|
|
|
25907
25908
|
className: "gtm-trackable",
|
|
25908
25909
|
"data-gtm-event-context": ca,
|
|
25909
25910
|
"data-gtm-event-type": "social-click",
|
|
25910
|
-
children: /* @__PURE__ */ c.jsx("span", { className: "hidden", children: /* @__PURE__ */ c.jsx(
|
|
25911
|
+
children: /* @__PURE__ */ c.jsx("span", { className: "hidden", children: /* @__PURE__ */ c.jsx(ht, { id: `${ur}social_${e}` }) })
|
|
25911
25912
|
}
|
|
25912
25913
|
) }, e);
|
|
25913
25914
|
}) }),
|
|
25914
25915
|
/* @__PURE__ */ c.jsx("small", { children: /* @__PURE__ */ c.jsx(
|
|
25915
|
-
|
|
25916
|
+
ht,
|
|
25916
25917
|
{
|
|
25917
25918
|
id: `${ur}copyright`,
|
|
25918
25919
|
values: { currentYear: (/* @__PURE__ */ new Date()).getFullYear() }
|
|
@@ -26262,7 +26263,7 @@ const ur = "footer_", ca = "SiteFooter", Yc = ({ group: e }) => {
|
|
|
26262
26263
|
const v_ = { height: 67, height_desktop: 83 };
|
|
26263
26264
|
var Ot = /* @__PURE__ */ ((e) => (e.NAVIGATION = "navigation", e.SEARCH = "search", e.ACCOUNT = "account-navigation", e.SITE = "site-navigation", e))(Ot || {});
|
|
26264
26265
|
const Bm = ({ showNavigation: e = !0 }) => {
|
|
26265
|
-
const t = de(), n = $e(
|
|
26266
|
+
const t = de(), n = $e(pt), r = Un(!0, !0), i = n && typeof n.id == "string", a = Xt(
|
|
26266
26267
|
() => Ze.getIsDesktopVersion(i, r),
|
|
26267
26268
|
[i, r]
|
|
26268
26269
|
), [s, o] = xr(ha, {
|
|
@@ -26705,7 +26706,7 @@ const w_ = 25, D_ = ({
|
|
|
26705
26706
|
showPlaceholders: d = !1,
|
|
26706
26707
|
className: m = ""
|
|
26707
26708
|
}) => {
|
|
26708
|
-
const h = de(), p = "membersList", v = $e(
|
|
26709
|
+
const h = de(), p = "membersList", v = $e(pt), [f, b] = ce(!1);
|
|
26709
26710
|
return e.length === 0 && !d ? null : /* @__PURE__ */ c.jsxs("div", { className: V("members-list", m), children: [
|
|
26710
26711
|
u ? /* @__PURE__ */ c.jsxs("h1", { children: [
|
|
26711
26712
|
h.formatMessage({ id: p }),
|
|
@@ -26864,7 +26865,7 @@ const tt = "discussion_form_", Ca = ({
|
|
|
26864
26865
|
gtmContext: m = "DiscussionForm"
|
|
26865
26866
|
}) => {
|
|
26866
26867
|
var K, ae, ye;
|
|
26867
|
-
const h = de(), p = $e(
|
|
26868
|
+
const h = de(), p = $e(pt), [v, f] = ce(
|
|
26868
26869
|
n.type
|
|
26869
26870
|
), [b, g] = ce(""), {
|
|
26870
26871
|
isLoading: y = !1,
|
|
@@ -27441,7 +27442,7 @@ const P_ = ({
|
|
|
27441
27442
|
);
|
|
27442
27443
|
};
|
|
27443
27444
|
const N_ = ({ title: e, options: t, settings: n, functions: r }) => {
|
|
27444
|
-
const i = "poll_", a = de(), s = $e(
|
|
27445
|
+
const i = "poll_", a = de(), s = $e(pt), {
|
|
27445
27446
|
showRemoveVote: o = !1,
|
|
27446
27447
|
allowMultipleVotes: l = !1,
|
|
27447
27448
|
resultsVisibility: u = so.AfterVoting
|
|
@@ -27588,7 +27589,7 @@ const Ea = ({
|
|
|
27588
27589
|
locale: y = "en"
|
|
27589
27590
|
}) => {
|
|
27590
27591
|
var K, ae, ye, oe, xe, ke;
|
|
27591
|
-
const w = de(), A = $e(eu), C = $e(
|
|
27592
|
+
const w = de(), A = $e(eu), C = $e(pt), {
|
|
27592
27593
|
createContent: E = async () => {
|
|
27593
27594
|
},
|
|
27594
27595
|
deleteContent: B = async () => {
|
|
@@ -27701,8 +27702,8 @@ const Ea = ({
|
|
|
27701
27702
|
Be && Be.id && (v && (ge.prepopulateForm = `@{{${Be.id}}}`), ge.mentionData = { id: Be.id, name: Be.name }), A.updateConversation(ge);
|
|
27702
27703
|
}
|
|
27703
27704
|
setTimeout(() => {
|
|
27704
|
-
var st, jt,
|
|
27705
|
-
const Be = `reply-form-${(t.type === Oe.Answer ? t.slug : ((st = t.slugs) == null ? void 0 : st.reply) || ((jt = t.slugs) == null ? void 0 : jt.answer) || ((
|
|
27705
|
+
var st, jt, gt;
|
|
27706
|
+
const Be = `reply-form-${(t.type === Oe.Answer ? t.slug : ((st = t.slugs) == null ? void 0 : st.reply) || ((jt = t.slugs) == null ? void 0 : jt.answer) || ((gt = t.slugs) == null ? void 0 : gt.question) || "").toLowerCase().slice(-15)}`, dt = document.getElementById(Be), at = document.getElementById(`${Be}-input`);
|
|
27706
27707
|
at && at.focus(), dt && dt.scrollIntoView({ behavior: "smooth" });
|
|
27707
27708
|
}, 0);
|
|
27708
27709
|
}, Le = async () => {
|
|
@@ -27933,7 +27934,7 @@ const Ea = ({
|
|
|
27933
27934
|
],
|
|
27934
27935
|
gtmContext: `${(t.type || "").charAt(0).toUpperCase()}${(t.type || "").slice(1)}:${t.slug}`,
|
|
27935
27936
|
children: /* @__PURE__ */ c.jsx(
|
|
27936
|
-
|
|
27937
|
+
ht,
|
|
27937
27938
|
{
|
|
27938
27939
|
id: "discussion_delete_text",
|
|
27939
27940
|
values: {
|
|
@@ -27952,7 +27953,7 @@ const Ea = ({
|
|
|
27952
27953
|
const $_ = yr(
|
|
27953
27954
|
() => Promise.resolve().then(() => nk)
|
|
27954
27955
|
), L_ = 65, z_ = ({ forceShow: e, form: t, className: n }) => {
|
|
27955
|
-
const r = de(), i = "discussionFormCard_", a = "DiscardDraftModal", o = $e(
|
|
27956
|
+
const r = de(), i = "discussionFormCard_", a = "DiscardDraftModal", o = $e(pt) || "community", l = vo(o);
|
|
27956
27957
|
l.name || (l.name = r.formatMessage({
|
|
27957
27958
|
id: `member_${typeof o == "string" ? o : "community"}`
|
|
27958
27959
|
}));
|
|
@@ -28160,7 +28161,7 @@ const $_ = yr(
|
|
|
28160
28161
|
};
|
|
28161
28162
|
return e ? /* @__PURE__ */ c.jsx(z_, { form: v }) : /* @__PURE__ */ c.jsx(q_, { ...v });
|
|
28162
28163
|
}, Sm = ({ form: e }) => {
|
|
28163
|
-
const t = $e(
|
|
28164
|
+
const t = $e(pt), n = de(), [r, i] = ce(!1), a = () => {
|
|
28164
28165
|
_h(t) || i(!0);
|
|
28165
28166
|
};
|
|
28166
28167
|
fe(() => (document.addEventListener(ct.DISCUSSION_POST_ADDED, a), () => {
|
|
@@ -29329,7 +29330,7 @@ const bA = ({
|
|
|
29329
29330
|
return null;
|
|
29330
29331
|
};
|
|
29331
29332
|
function fk({ buildMemberData: e, communitySlug: t }) {
|
|
29332
|
-
const n = de(), r = $e(
|
|
29333
|
+
const n = de(), r = $e(pt), [i, a] = ce({
|
|
29333
29334
|
count: "...",
|
|
29334
29335
|
isMember: !1,
|
|
29335
29336
|
memberType: ""
|
|
@@ -29371,7 +29372,7 @@ const jm = ({
|
|
|
29371
29372
|
meta: l
|
|
29372
29373
|
}) => {
|
|
29373
29374
|
var k, T;
|
|
29374
|
-
const u = de(), d = $e(
|
|
29375
|
+
const u = de(), d = $e(pt), m = !!(d != null && d.id), { isTabbable: h = !0, setFocus: p = !1 } = l || {}, v = re.useRef(null), [f, b] = ce({
|
|
29375
29376
|
data: null,
|
|
29376
29377
|
isLoading: !0
|
|
29377
29378
|
});
|
|
@@ -30266,7 +30267,7 @@ export {
|
|
|
30266
30267
|
wr as Tooltip,
|
|
30267
30268
|
oA as TopLevelPage,
|
|
30268
30269
|
Hi as UUID_V4_REGEX,
|
|
30269
|
-
|
|
30270
|
+
pt as UserContext,
|
|
30270
30271
|
Xh as UserProvider,
|
|
30271
30272
|
ze as VisuallyHidden,
|
|
30272
30273
|
cg as addAriaProps,
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { default as Overlay } from './overlay';
|
|
1
|
+
export { default as Overlay, type IOverlayProps } from './overlay';
|
|
2
2
|
export { addAriaProps } from './overlay.helpers';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { ButtonPropsType } from '../../../general';
|
|
3
|
-
interface
|
|
3
|
+
export interface IOverlayProps {
|
|
4
4
|
/** ID of the overlay */
|
|
5
5
|
id?: string;
|
|
6
6
|
/** If the overlay is showing or not */
|
|
@@ -36,5 +36,5 @@ interface Props {
|
|
|
36
36
|
/** Language to use */
|
|
37
37
|
locale?: string;
|
|
38
38
|
}
|
|
39
|
-
declare const Overlay: ({ id, isOpen, showDivider, maxWidth, functions: { onOpen, onClose }, forceShow: { error }, title, children, buttons, className, gtmContext, }:
|
|
39
|
+
declare const Overlay: ({ id, isOpen, showDivider, maxWidth, functions: { onOpen, onClose }, forceShow: { error }, title, children, buttons, className, gtmContext, }: IOverlayProps) => import("react/jsx-runtime").JSX.Element;
|
|
40
40
|
export default Overlay;
|