@apolitical/component-library 3.5.13-ac.11 → 3.5.13-ac.12
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.js +16 -16
- package/index.mjs +521 -521
- package/package.json +1 -1
package/index.mjs
CHANGED
|
@@ -1,22 +1,22 @@
|
|
|
1
|
-
import Y, { memo as Oe, useState as J, useEffect as ae, useRef as pe, useMemo as
|
|
1
|
+
import Y, { memo as Oe, useState as J, useEffect as ae, useRef as pe, useMemo as wt, Children as Bn, createContext as nn, useContext as Ee, useCallback as ia, useReducer as Yn, Fragment as yt, Suspense as ws } from "react";
|
|
2
2
|
import pt from "lodash.clonedeep";
|
|
3
|
-
import
|
|
4
|
-
import { FormattedMessage as ye, useIntl as H, IntlProvider as
|
|
3
|
+
import js from "lodash.set";
|
|
4
|
+
import { FormattedMessage as ye, useIntl as H, IntlProvider as ks, createIntl as Ts } from "react-intl";
|
|
5
5
|
import Ie from "markdown-to-jsx";
|
|
6
6
|
import et from "truncate";
|
|
7
|
-
import { QueryClient as
|
|
8
|
-
import { ReactQueryDevtools as
|
|
9
|
-
import
|
|
10
|
-
import { CookiesProvider as
|
|
11
|
-
import { ReactMultiEmail as
|
|
12
|
-
import
|
|
13
|
-
import { ErrorBoundary as
|
|
14
|
-
import
|
|
15
|
-
import
|
|
16
|
-
function
|
|
7
|
+
import { QueryClient as Es, QueryClientProvider as Ss, useMutation as je, useQueryClient as Kn, useInfiniteQuery as oa, useQuery as Cs } from "@tanstack/react-query";
|
|
8
|
+
import { ReactQueryDevtools as Ns } from "@tanstack/react-query-devtools";
|
|
9
|
+
import Lt from "posthog-js";
|
|
10
|
+
import { CookiesProvider as $s, useCookies as ca } from "react-cookie";
|
|
11
|
+
import { ReactMultiEmail as Ps } from "react-multi-email";
|
|
12
|
+
import la from "lodash.get";
|
|
13
|
+
import { ErrorBoundary as Ms } from "react-error-boundary";
|
|
14
|
+
import Rs from "react-textarea-autosize";
|
|
15
|
+
import Fs from "lodash.isequal";
|
|
16
|
+
function ua(t) {
|
|
17
17
|
return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
|
|
18
18
|
}
|
|
19
|
-
function
|
|
19
|
+
function da(t) {
|
|
20
20
|
if (t.__esModule)
|
|
21
21
|
return t;
|
|
22
22
|
var e = t.default;
|
|
@@ -37,7 +37,7 @@ function ua(t) {
|
|
|
37
37
|
});
|
|
38
38
|
}), n;
|
|
39
39
|
}
|
|
40
|
-
var
|
|
40
|
+
var fa = { exports: {} };
|
|
41
41
|
/*!
|
|
42
42
|
Copyright (c) 2018 Jed Watson.
|
|
43
43
|
Licensed under the MIT License (MIT), see
|
|
@@ -72,9 +72,9 @@ var da = { exports: {} };
|
|
|
72
72
|
}
|
|
73
73
|
t.exports ? (n.default = n, t.exports = n) : window.classNames = n;
|
|
74
74
|
})();
|
|
75
|
-
})(
|
|
76
|
-
var
|
|
77
|
-
const E = /* @__PURE__ */
|
|
75
|
+
})(fa);
|
|
76
|
+
var Os = fa.exports;
|
|
77
|
+
const E = /* @__PURE__ */ ua(Os), As = ({
|
|
78
78
|
element: t = "span",
|
|
79
79
|
showOnFocus: e = !0,
|
|
80
80
|
children: n,
|
|
@@ -84,11 +84,11 @@ const E = /* @__PURE__ */ la(Fs), Os = ({
|
|
|
84
84
|
...s,
|
|
85
85
|
className: E("hidden", r, { "show-on-focus": e }),
|
|
86
86
|
children: n
|
|
87
|
-
}), be = Oe(
|
|
87
|
+
}), be = Oe(As), Ds = ({
|
|
88
88
|
element: t = "span",
|
|
89
89
|
children: e = null,
|
|
90
90
|
...n
|
|
91
|
-
}) => Y.createElement(t, { ...n, "aria-hidden": !0 }, e), Gn = Oe(
|
|
91
|
+
}) => Y.createElement(t, { ...n, "aria-hidden": !0 }, e), Gn = Oe(Ds);
|
|
92
92
|
var qn = { exports: {} }, it = {};
|
|
93
93
|
/**
|
|
94
94
|
* @license React
|
|
@@ -100,7 +100,7 @@ var qn = { exports: {} }, it = {};
|
|
|
100
100
|
* LICENSE file in the root directory of this source tree.
|
|
101
101
|
*/
|
|
102
102
|
var xr;
|
|
103
|
-
function
|
|
103
|
+
function Is() {
|
|
104
104
|
if (xr)
|
|
105
105
|
return it;
|
|
106
106
|
xr = 1;
|
|
@@ -128,7 +128,7 @@ var ot = {};
|
|
|
128
128
|
* LICENSE file in the root directory of this source tree.
|
|
129
129
|
*/
|
|
130
130
|
var wr;
|
|
131
|
-
function
|
|
131
|
+
function Ls() {
|
|
132
132
|
return wr || (wr = 1, process.env.NODE_ENV !== "production" && function() {
|
|
133
133
|
var t = Y, e = Symbol.for("react.element"), n = Symbol.for("react.portal"), r = Symbol.for("react.fragment"), s = Symbol.for("react.strict_mode"), i = Symbol.for("react.profiler"), o = Symbol.for("react.provider"), c = Symbol.for("react.context"), d = Symbol.for("react.forward_ref"), l = Symbol.for("react.suspense"), u = Symbol.for("react.suspense_list"), f = Symbol.for("react.memo"), m = Symbol.for("react.lazy"), p = Symbol.for("react.offscreen"), g = Symbol.iterator, v = "@@iterator";
|
|
134
134
|
function x(h) {
|
|
@@ -408,14 +408,14 @@ function Is() {
|
|
|
408
408
|
return "";
|
|
409
409
|
}
|
|
410
410
|
var qe = Object.prototype.hasOwnProperty, cr = {}, lr = b.ReactDebugCurrentFrame;
|
|
411
|
-
function
|
|
411
|
+
function Et(h) {
|
|
412
412
|
if (h) {
|
|
413
413
|
var M = h._owner, L = Ce(h.type, h._source, M ? M.type : null);
|
|
414
414
|
lr.setExtraStackFrame(L);
|
|
415
415
|
} else
|
|
416
416
|
lr.setExtraStackFrame(null);
|
|
417
417
|
}
|
|
418
|
-
function
|
|
418
|
+
function ns(h, M, L, ne, le) {
|
|
419
419
|
{
|
|
420
420
|
var me = Function.call.bind(qe);
|
|
421
421
|
for (var ce in h)
|
|
@@ -430,21 +430,21 @@ function Is() {
|
|
|
430
430
|
} catch (he) {
|
|
431
431
|
ie = he;
|
|
432
432
|
}
|
|
433
|
-
ie && !(ie instanceof Error) && (
|
|
433
|
+
ie && !(ie instanceof Error) && (Et(le), y("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", ne || "React class", L, ce, typeof ie), Et(null)), ie instanceof Error && !(ie.message in cr) && (cr[ie.message] = !0, Et(le), y("Failed %s type: %s", L, ie.message), Et(null));
|
|
434
434
|
}
|
|
435
435
|
}
|
|
436
436
|
}
|
|
437
|
-
var
|
|
437
|
+
var rs = Array.isArray;
|
|
438
438
|
function ln(h) {
|
|
439
|
-
return
|
|
439
|
+
return rs(h);
|
|
440
440
|
}
|
|
441
|
-
function
|
|
441
|
+
function as(h) {
|
|
442
442
|
{
|
|
443
443
|
var M = typeof Symbol == "function" && Symbol.toStringTag, L = M && h[Symbol.toStringTag] || h.constructor.name || "Object";
|
|
444
444
|
return L;
|
|
445
445
|
}
|
|
446
446
|
}
|
|
447
|
-
function
|
|
447
|
+
function ss(h) {
|
|
448
448
|
try {
|
|
449
449
|
return ur(h), !1;
|
|
450
450
|
} catch {
|
|
@@ -455,17 +455,17 @@ function Is() {
|
|
|
455
455
|
return "" + h;
|
|
456
456
|
}
|
|
457
457
|
function dr(h) {
|
|
458
|
-
if (
|
|
459
|
-
return y("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",
|
|
458
|
+
if (ss(h))
|
|
459
|
+
return y("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", as(h)), ur(h);
|
|
460
460
|
}
|
|
461
|
-
var st = b.ReactCurrentOwner,
|
|
461
|
+
var st = b.ReactCurrentOwner, is = {
|
|
462
462
|
key: !0,
|
|
463
463
|
ref: !0,
|
|
464
464
|
__self: !0,
|
|
465
465
|
__source: !0
|
|
466
466
|
}, fr, mr, un;
|
|
467
467
|
un = {};
|
|
468
|
-
function
|
|
468
|
+
function os(h) {
|
|
469
469
|
if (qe.call(h, "ref")) {
|
|
470
470
|
var M = Object.getOwnPropertyDescriptor(h, "ref").get;
|
|
471
471
|
if (M && M.isReactWarning)
|
|
@@ -473,7 +473,7 @@ function Is() {
|
|
|
473
473
|
}
|
|
474
474
|
return h.ref !== void 0;
|
|
475
475
|
}
|
|
476
|
-
function
|
|
476
|
+
function cs(h) {
|
|
477
477
|
if (qe.call(h, "key")) {
|
|
478
478
|
var M = Object.getOwnPropertyDescriptor(h, "key").get;
|
|
479
479
|
if (M && M.isReactWarning)
|
|
@@ -481,13 +481,13 @@ function Is() {
|
|
|
481
481
|
}
|
|
482
482
|
return h.key !== void 0;
|
|
483
483
|
}
|
|
484
|
-
function
|
|
484
|
+
function ls(h, M) {
|
|
485
485
|
if (typeof h.ref == "string" && st.current && M && st.current.stateNode !== M) {
|
|
486
486
|
var L = k(st.current.type);
|
|
487
487
|
un[L] || (y('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref', k(st.current.type), h.ref), un[L] = !0);
|
|
488
488
|
}
|
|
489
489
|
}
|
|
490
|
-
function
|
|
490
|
+
function us(h, M) {
|
|
491
491
|
{
|
|
492
492
|
var L = function() {
|
|
493
493
|
fr || (fr = !0, y("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", M));
|
|
@@ -498,7 +498,7 @@ function Is() {
|
|
|
498
498
|
});
|
|
499
499
|
}
|
|
500
500
|
}
|
|
501
|
-
function
|
|
501
|
+
function ds(h, M) {
|
|
502
502
|
{
|
|
503
503
|
var L = function() {
|
|
504
504
|
mr || (mr = !0, y("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", M));
|
|
@@ -509,7 +509,7 @@ function Is() {
|
|
|
509
509
|
});
|
|
510
510
|
}
|
|
511
511
|
}
|
|
512
|
-
var
|
|
512
|
+
var fs = function(h, M, L, ne, le, me, ce) {
|
|
513
513
|
var ie = {
|
|
514
514
|
// This tag allows us to uniquely identify this as a React Element
|
|
515
515
|
$$typeof: e,
|
|
@@ -538,12 +538,12 @@ function Is() {
|
|
|
538
538
|
value: le
|
|
539
539
|
}), Object.freeze && (Object.freeze(ie.props), Object.freeze(ie)), ie;
|
|
540
540
|
};
|
|
541
|
-
function
|
|
541
|
+
function ms(h, M, L, ne, le) {
|
|
542
542
|
{
|
|
543
543
|
var me, ce = {}, ie = null, xe = null;
|
|
544
|
-
L !== void 0 && (dr(L), ie = "" + L),
|
|
544
|
+
L !== void 0 && (dr(L), ie = "" + L), cs(M) && (dr(M.key), ie = "" + M.key), os(M) && (xe = M.ref, ls(M, le));
|
|
545
545
|
for (me in M)
|
|
546
|
-
qe.call(M, me) && !
|
|
546
|
+
qe.call(M, me) && !is.hasOwnProperty(me) && (ce[me] = M[me]);
|
|
547
547
|
if (h && h.defaultProps) {
|
|
548
548
|
var he = h.defaultProps;
|
|
549
549
|
for (me in he)
|
|
@@ -551,9 +551,9 @@ function Is() {
|
|
|
551
551
|
}
|
|
552
552
|
if (ie || xe) {
|
|
553
553
|
var ge = typeof h == "function" ? h.displayName || h.name || "Unknown" : h;
|
|
554
|
-
ie &&
|
|
554
|
+
ie && us(ce, ge), xe && ds(ce, ge);
|
|
555
555
|
}
|
|
556
|
-
return
|
|
556
|
+
return fs(h, ie, xe, le, ne, st.current, ce);
|
|
557
557
|
}
|
|
558
558
|
}
|
|
559
559
|
var dn = b.ReactCurrentOwner, pr = b.ReactDebugCurrentFrame;
|
|
@@ -581,7 +581,7 @@ Check the render method of \`` + h + "`.";
|
|
|
581
581
|
return "";
|
|
582
582
|
}
|
|
583
583
|
}
|
|
584
|
-
function
|
|
584
|
+
function ps(h) {
|
|
585
585
|
{
|
|
586
586
|
if (h !== void 0) {
|
|
587
587
|
var M = h.fileName.replace(/^.*[\\\/]/, ""), L = h.lineNumber;
|
|
@@ -593,7 +593,7 @@ Check your code at ` + M + ":" + L + ".";
|
|
|
593
593
|
}
|
|
594
594
|
}
|
|
595
595
|
var gr = {};
|
|
596
|
-
function
|
|
596
|
+
function hs(h) {
|
|
597
597
|
{
|
|
598
598
|
var M = hr();
|
|
599
599
|
if (!M) {
|
|
@@ -610,7 +610,7 @@ Check the top-level render call using <` + L + ">.");
|
|
|
610
610
|
if (!h._store || h._store.validated || h.key != null)
|
|
611
611
|
return;
|
|
612
612
|
h._store.validated = !0;
|
|
613
|
-
var L =
|
|
613
|
+
var L = hs(M);
|
|
614
614
|
if (gr[L])
|
|
615
615
|
return;
|
|
616
616
|
gr[L] = !0;
|
|
@@ -637,7 +637,7 @@ Check the top-level render call using <` + L + ">.");
|
|
|
637
637
|
}
|
|
638
638
|
}
|
|
639
639
|
}
|
|
640
|
-
function
|
|
640
|
+
function gs(h) {
|
|
641
641
|
{
|
|
642
642
|
var M = h.type;
|
|
643
643
|
if (M == null || typeof M == "string")
|
|
@@ -653,7 +653,7 @@ Check the top-level render call using <` + L + ">.");
|
|
|
653
653
|
return;
|
|
654
654
|
if (L) {
|
|
655
655
|
var ne = k(M);
|
|
656
|
-
|
|
656
|
+
ns(L, h.props, "prop", ne, h);
|
|
657
657
|
} else if (M.PropTypes !== void 0 && !fn) {
|
|
658
658
|
fn = !0;
|
|
659
659
|
var le = k(M);
|
|
@@ -662,7 +662,7 @@ Check the top-level render call using <` + L + ">.");
|
|
|
662
662
|
typeof M.getDefaultProps == "function" && !M.getDefaultProps.isReactClassApproved && y("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
|
|
663
663
|
}
|
|
664
664
|
}
|
|
665
|
-
function
|
|
665
|
+
function vs(h) {
|
|
666
666
|
{
|
|
667
667
|
for (var M = Object.keys(h.props), L = 0; L < M.length; L++) {
|
|
668
668
|
var ne = M[L];
|
|
@@ -680,12 +680,12 @@ Check the top-level render call using <` + L + ">.");
|
|
|
680
680
|
if (!ce) {
|
|
681
681
|
var ie = "";
|
|
682
682
|
(h === void 0 || typeof h == "object" && h !== null && Object.keys(h).length === 0) && (ie += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
|
|
683
|
-
var xe =
|
|
683
|
+
var xe = ps(le);
|
|
684
684
|
xe ? ie += xe : ie += hr();
|
|
685
685
|
var he;
|
|
686
686
|
h === null ? he = "null" : ln(h) ? he = "array" : h !== void 0 && h.$$typeof === e ? (he = "<" + (k(h.type) || "Unknown") + " />", ie = " Did you accidentally export a JSX literal instead of a component?") : he = typeof h, y("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", he, ie);
|
|
687
687
|
}
|
|
688
|
-
var ge =
|
|
688
|
+
var ge = ms(h, M, L, le, me);
|
|
689
689
|
if (ge == null)
|
|
690
690
|
return ge;
|
|
691
691
|
if (ce) {
|
|
@@ -701,22 +701,22 @@ Check the top-level render call using <` + L + ">.");
|
|
|
701
701
|
else
|
|
702
702
|
br(ke, h);
|
|
703
703
|
}
|
|
704
|
-
return h === r ?
|
|
704
|
+
return h === r ? vs(ge) : gs(ge), ge;
|
|
705
705
|
}
|
|
706
706
|
}
|
|
707
|
-
function
|
|
707
|
+
function bs(h, M, L) {
|
|
708
708
|
return yr(h, M, L, !0);
|
|
709
709
|
}
|
|
710
|
-
function
|
|
710
|
+
function ys(h, M, L) {
|
|
711
711
|
return yr(h, M, L, !1);
|
|
712
712
|
}
|
|
713
|
-
var
|
|
714
|
-
ot.Fragment = r, ot.jsx =
|
|
713
|
+
var _s = ys, xs = bs;
|
|
714
|
+
ot.Fragment = r, ot.jsx = _s, ot.jsxs = xs;
|
|
715
715
|
}()), ot;
|
|
716
716
|
}
|
|
717
|
-
process.env.NODE_ENV === "production" ? qn.exports =
|
|
717
|
+
process.env.NODE_ENV === "production" ? qn.exports = Is() : qn.exports = Ls();
|
|
718
718
|
var a = qn.exports;
|
|
719
|
-
const
|
|
719
|
+
const Bs = () => {
|
|
720
720
|
const [t, e] = J(window.location.pathname), n = () => {
|
|
721
721
|
const r = window.location.pathname;
|
|
722
722
|
e(r);
|
|
@@ -730,7 +730,7 @@ const Ls = () => {
|
|
|
730
730
|
n.current ? t() : n.current = !0;
|
|
731
731
|
}, e);
|
|
732
732
|
};
|
|
733
|
-
function
|
|
733
|
+
function qs(t, e, n) {
|
|
734
734
|
var r = this, s = pe(null), i = pe(0), o = pe(null), c = pe([]), d = pe(), l = pe(), u = pe(t), f = pe(!0);
|
|
735
735
|
u.current = t;
|
|
736
736
|
var m = typeof window < "u", p = !e && e !== 0 && m;
|
|
@@ -743,7 +743,7 @@ function Bs(t, e, n) {
|
|
|
743
743
|
f.current = !1;
|
|
744
744
|
};
|
|
745
745
|
}, []);
|
|
746
|
-
var S =
|
|
746
|
+
var S = wt(function() {
|
|
747
747
|
var j = function($) {
|
|
748
748
|
var C = c.current, w = d.current;
|
|
749
749
|
return c.current = d.current = null, i.current = $, l.current = u.current.apply(w, C);
|
|
@@ -786,12 +786,12 @@ function Bs(t, e, n) {
|
|
|
786
786
|
}, [g, x, e, y, v, p, m, b]);
|
|
787
787
|
return S;
|
|
788
788
|
}
|
|
789
|
-
function
|
|
789
|
+
function ma(t, e, n) {
|
|
790
790
|
var r = n === void 0 ? {} : n, s = r.leading, i = r.trailing;
|
|
791
|
-
return
|
|
791
|
+
return qs(t, e, { maxWait: e, leading: s === void 0 || s, trailing: i === void 0 || i });
|
|
792
792
|
}
|
|
793
793
|
let pn;
|
|
794
|
-
const
|
|
794
|
+
const jt = (t = !0, e = !1, n = "window") => {
|
|
795
795
|
if (!t)
|
|
796
796
|
return;
|
|
797
797
|
const [r, s] = Y.useState(0) || [!1, () => {
|
|
@@ -807,7 +807,7 @@ const wt = (t = !0, e = !1, n = "window") => {
|
|
|
807
807
|
}, d = ({ detail: u }) => {
|
|
808
808
|
const { id: f } = u;
|
|
809
809
|
n === "window" || !n.closest(`#${f}`) || o() === r || c();
|
|
810
|
-
}, l =
|
|
810
|
+
}, l = ma(
|
|
811
811
|
() => {
|
|
812
812
|
o() !== r && (e && (clearTimeout(pn), document.body.classList.add("is-resizing"), pn = setTimeout(() => {
|
|
813
813
|
document.body.classList.remove("is-resizing");
|
|
@@ -817,7 +817,7 @@ const wt = (t = !0, e = !1, n = "window") => {
|
|
|
817
817
|
{ leading: !0 }
|
|
818
818
|
);
|
|
819
819
|
return r;
|
|
820
|
-
},
|
|
820
|
+
}, Us = ({
|
|
821
821
|
scrollPosition: t = 0,
|
|
822
822
|
// The position on the page to scroll past
|
|
823
823
|
offset: e = { down: 0, up: 10 },
|
|
@@ -847,11 +847,11 @@ const wt = (t = !0, e = !1, n = "window") => {
|
|
|
847
847
|
return;
|
|
848
848
|
}
|
|
849
849
|
Math.abs(m) >= e.up && !o.scrollUp && (r(), c({ scrollUp: !0, scrollDown: !1 }));
|
|
850
|
-
}, l =
|
|
850
|
+
}, l = ma(() => {
|
|
851
851
|
d();
|
|
852
852
|
}, 250);
|
|
853
853
|
return s;
|
|
854
|
-
},
|
|
854
|
+
}, Ws = (t = [], e = !0) => {
|
|
855
855
|
t = Array.isArray(t) ? t : [t];
|
|
856
856
|
const n = pe(!1);
|
|
857
857
|
_t(() => {
|
|
@@ -862,19 +862,19 @@ const wt = (t = !0, e = !1, n = "window") => {
|
|
|
862
862
|
r && (r.scrollIntoView(e ? { behavior: "smooth" } : null), n.current = !0);
|
|
863
863
|
}
|
|
864
864
|
}, t);
|
|
865
|
-
},
|
|
865
|
+
}, pa = (t, e) => {
|
|
866
866
|
Array.isArray(e) || (e = [e]);
|
|
867
867
|
const n = pt(t);
|
|
868
868
|
return e.forEach(({ type: r, value: s }) => {
|
|
869
|
-
|
|
869
|
+
js(n, r, s);
|
|
870
870
|
}), n;
|
|
871
|
-
},
|
|
871
|
+
}, ha = (t) => {
|
|
872
872
|
const e = [];
|
|
873
873
|
return t.forEach((n) => {
|
|
874
874
|
const r = parseInt(n);
|
|
875
875
|
isNaN(r) || e.push(r);
|
|
876
876
|
}), e.sort((n, r) => n - r);
|
|
877
|
-
},
|
|
877
|
+
}, ga = (t, e, n) => {
|
|
878
878
|
let r = n.mobile;
|
|
879
879
|
for (const s in e) {
|
|
880
880
|
const i = parseInt(String(e[s]));
|
|
@@ -884,19 +884,19 @@ const wt = (t = !0, e = !1, n = "window") => {
|
|
|
884
884
|
break;
|
|
885
885
|
}
|
|
886
886
|
return r;
|
|
887
|
-
},
|
|
887
|
+
}, zs = (t) => t.replace(/[A-Z]/g, (e) => `-${e.toLowerCase()}`), Zs = (t = "") => t.replace(/(?:^\w|[A-Z]|\b\w)/g, (e) => e.toUpperCase()).replace(/[&\s]+/g, ""), Hs = (t = "") => t.charAt(0).toUpperCase() + t.slice(1), Le = "https://storage.googleapis.com/apolitical-assets/", ft = {
|
|
888
888
|
general: "hello@apolitical.co",
|
|
889
889
|
support: "concierge@apolitical.co",
|
|
890
890
|
"data-protection": {
|
|
891
891
|
default: "dpo@apolitical.co",
|
|
892
892
|
eu: "dpo.agl@apolitical.foundation"
|
|
893
893
|
}
|
|
894
|
-
},
|
|
894
|
+
}, St = {
|
|
895
895
|
ARTICLE: "microcourseArticle",
|
|
896
896
|
DISCUSSION: "microcourseDiscussion",
|
|
897
897
|
QUIZ: "assessmentQuiz"
|
|
898
898
|
}, $l = "200,000+";
|
|
899
|
-
function
|
|
899
|
+
function Vs(t) {
|
|
900
900
|
return t ? {
|
|
901
901
|
"--icon": `url(${Le}icons/${t}.svg)`
|
|
902
902
|
} : {};
|
|
@@ -912,14 +912,14 @@ const We = {
|
|
|
912
912
|
weeks: 52,
|
|
913
913
|
days: 365
|
|
914
914
|
}
|
|
915
|
-
},
|
|
915
|
+
}, Ys = (t, e = "en") => new Date(t).toLocaleString(e, { day: "numeric", month: "short" }), va = (t, e = "en") => new Date(t).toLocaleString(e, {
|
|
916
916
|
weekday: "long",
|
|
917
917
|
day: "numeric",
|
|
918
918
|
month: "short",
|
|
919
919
|
year: "numeric"
|
|
920
920
|
}), Un = (t) => {
|
|
921
921
|
let e;
|
|
922
|
-
const n =
|
|
922
|
+
const n = Ut(), r = Ut(new Date(t));
|
|
923
923
|
try {
|
|
924
924
|
e = n.getTime() - r.getTime();
|
|
925
925
|
} catch {
|
|
@@ -932,12 +932,12 @@ const We = {
|
|
|
932
932
|
return { path: "days", number: i };
|
|
933
933
|
const o = Math.floor(i / 7);
|
|
934
934
|
return o <= We.year.weeks ? { path: "weeks", number: o } : { path: "years", number: Math.floor(i / We.year.days) };
|
|
935
|
-
},
|
|
935
|
+
}, Ut = (t) => {
|
|
936
936
|
const n = (t || /* @__PURE__ */ new Date()).toUTCString();
|
|
937
937
|
return new Date(n);
|
|
938
|
-
},
|
|
938
|
+
}, Ks = (t, e, n) => {
|
|
939
939
|
let r;
|
|
940
|
-
const s =
|
|
940
|
+
const s = Ut(), i = Ut(new Date(t));
|
|
941
941
|
try {
|
|
942
942
|
r = s.getTime() - i.getTime();
|
|
943
943
|
} catch {
|
|
@@ -952,7 +952,7 @@ const We = {
|
|
|
952
952
|
return r / We.milliseconds.inHour <= e;
|
|
953
953
|
}
|
|
954
954
|
return !1;
|
|
955
|
-
},
|
|
955
|
+
}, Gs = (t) => new Promise((e) => setTimeout(e, t)), rt = {
|
|
956
956
|
/* Common */
|
|
957
957
|
apolitical: "Apolitical",
|
|
958
958
|
dates_now: "now",
|
|
@@ -1373,7 +1373,7 @@ Thank you for helping to protect the Apolitical community from abusive content.`
|
|
|
1373
1373
|
markdown_iframe_video: "Video",
|
|
1374
1374
|
markdown_iframe_padlet: "Interactive board",
|
|
1375
1375
|
markdown_iframe_poll: "Poll"
|
|
1376
|
-
},
|
|
1376
|
+
}, Qs = {
|
|
1377
1377
|
...rt,
|
|
1378
1378
|
/* Navigation */
|
|
1379
1379
|
languageSwitcher_label: "Me gustaría leer este artículo en...",
|
|
@@ -1381,7 +1381,7 @@ Thank you for helping to protect the Apolitical community from abusive content.`
|
|
|
1381
1381
|
languageSwitcher_translation_human: "traducido por un humano",
|
|
1382
1382
|
languageSwitcher_translation_machine: "traducido por máquina",
|
|
1383
1383
|
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>"
|
|
1384
|
-
},
|
|
1384
|
+
}, Js = {
|
|
1385
1385
|
...rt,
|
|
1386
1386
|
/* Navigation */
|
|
1387
1387
|
languageSwitcher_label: "Je voudrais lire cet article dans...",
|
|
@@ -1391,7 +1391,7 @@ Thank you for helping to protect the Apolitical community from abusive content.`
|
|
|
1391
1391
|
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>",
|
|
1392
1392
|
/* Text */
|
|
1393
1393
|
collapsibleSection_summary: "En savoir plus"
|
|
1394
|
-
},
|
|
1394
|
+
}, Xs = {
|
|
1395
1395
|
...rt,
|
|
1396
1396
|
/* Navigation */
|
|
1397
1397
|
languageSwitcher_label: "Eu gostaria de ler este artigo em...",
|
|
@@ -1399,16 +1399,16 @@ Thank you for helping to protect the Apolitical community from abusive content.`
|
|
|
1399
1399
|
languageSwitcher_translation_human: "traduzido por um humano",
|
|
1400
1400
|
languageSwitcher_translation_machine: "traduzido por máquina",
|
|
1401
1401
|
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>"
|
|
1402
|
-
},
|
|
1402
|
+
}, ei = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1403
1403
|
__proto__: null,
|
|
1404
1404
|
en: rt,
|
|
1405
|
-
es:
|
|
1406
|
-
fr:
|
|
1407
|
-
pt:
|
|
1405
|
+
es: Qs,
|
|
1406
|
+
fr: Js,
|
|
1407
|
+
pt: Xs
|
|
1408
1408
|
}, Symbol.toStringTag, { value: "Module" })), Qn = (t, e = rt) => t in e, Ne = (t, e, n, r, s = {}) => {
|
|
1409
1409
|
let i = "";
|
|
1410
1410
|
return Qn(`${e}_${n}`) ? i = t({ id: `${e}_${n}` }, s) : i = t({ id: e }, { [r]: n, ...s }), i;
|
|
1411
|
-
},
|
|
1411
|
+
}, ti = (t, e, n) => {
|
|
1412
1412
|
if (!t || t === 0)
|
|
1413
1413
|
return "0";
|
|
1414
1414
|
e || (e = 0), n || (n = ["k", "m", "b", "t"]);
|
|
@@ -1422,14 +1422,14 @@ Thank you for helping to protect the Apolitical community from abusive content.`
|
|
|
1422
1422
|
}
|
|
1423
1423
|
}
|
|
1424
1424
|
return r;
|
|
1425
|
-
},
|
|
1425
|
+
}, Bt = (t, e) => Y.Children.map(t, (n) => Object.is(n, null) ? n : Y.cloneElement(n, {
|
|
1426
1426
|
...e
|
|
1427
|
-
})),
|
|
1427
|
+
})), ni = (t = 0) => {
|
|
1428
1428
|
setTimeout(() => {
|
|
1429
1429
|
const e = document.querySelector(".splash-screen");
|
|
1430
1430
|
e && e.remove(), window.prerenderReady = !0;
|
|
1431
1431
|
}, t);
|
|
1432
|
-
},
|
|
1432
|
+
}, ri = (t) => t.replace(/\s+/g, "").length > 0, jr = (t) => {
|
|
1433
1433
|
const e = t.length > 8, n = /[0-9]/.test(t) && /[`!@#$%^&*()_+\-=[\]{}£;':"\\|,.<>/?~]/.test(t), r = new RegExp("^(?=.*?[A-Z])(?=.*?[a-z])").test(t);
|
|
1434
1434
|
return {
|
|
1435
1435
|
isValid: e && n && r,
|
|
@@ -1453,10 +1453,10 @@ Thank you for helping to protect the Apolitical community from abusive content.`
|
|
|
1453
1453
|
children: u = !1,
|
|
1454
1454
|
...f
|
|
1455
1455
|
}) => {
|
|
1456
|
-
const p =
|
|
1456
|
+
const p = jt(typeof e == "object");
|
|
1457
1457
|
if (typeof e == "object" && typeof p == "number") {
|
|
1458
|
-
const x = Object.assign({}, e), b =
|
|
1459
|
-
e =
|
|
1458
|
+
const x = Object.assign({}, e), b = ha(Object.keys(x));
|
|
1459
|
+
e = ga(p, b, x);
|
|
1460
1460
|
}
|
|
1461
1461
|
const g = [];
|
|
1462
1462
|
typeof e == "string" && g.push(e), r && (g.push("icon"), typeof r == "object" ? (g.push(r.icon), r.position ? g.push(r.position) : g.push("left"), r.hover && g.push(`hover_${r.hover}`), r.animate && (g.push("animate"), typeof r.animate == "string" && g.push(r.animate))) : (g.push(r), !r.includes("right") && !r.includes("left") && g.push("left"))), n.muted && g.push("muted"), n.fullWidth && g.push("full-width");
|
|
@@ -1477,7 +1477,7 @@ Thank you for helping to protect the Apolitical community from abusive content.`
|
|
|
1477
1477
|
v,
|
|
1478
1478
|
u || (l ? /* @__PURE__ */ a.jsx(be, { showOnFocus: !1, children: l }) : null)
|
|
1479
1479
|
);
|
|
1480
|
-
},
|
|
1480
|
+
}, kt = ({ buttons: t, className: e = "", ...n }) => {
|
|
1481
1481
|
const r = t.length > 1 ? "ul" : "p", s = t.map((i, o) => r === "p" ? /* @__PURE__ */ a.jsx(se, { ...i }, o) : /* @__PURE__ */ a.jsx("li", { children: /* @__PURE__ */ a.jsx(se, { ...i }) }, o));
|
|
1482
1482
|
return Y.createElement(r, {
|
|
1483
1483
|
className: E("button-wrapper", e),
|
|
@@ -1591,23 +1591,23 @@ const ze = ({ className: t = "", maxWidth: e = !1 }) => {
|
|
|
1591
1591
|
],
|
|
1592
1592
|
sizes: "(min-width: 1024px) 453px, 20vw"
|
|
1593
1593
|
}
|
|
1594
|
-
},
|
|
1594
|
+
}, ai = ({
|
|
1595
1595
|
aspect: t,
|
|
1596
1596
|
range: e,
|
|
1597
1597
|
sizes: n
|
|
1598
1598
|
}) => {
|
|
1599
1599
|
const { range: r, sizes: s } = t ? kr[t] : kr.fallback;
|
|
1600
1600
|
return { range: e && e.length > 0 ? e : r, sizes: n || s };
|
|
1601
|
-
},
|
|
1601
|
+
}, si = ({ format: t, height: e, query: n, width: r }) => {
|
|
1602
1602
|
let s = `w=${r}&h=${e}`;
|
|
1603
1603
|
return s = t ? `${s}&fm=${t}` : s, s = n ? `${s}&${n}` : s, s;
|
|
1604
|
-
}, hn = ({ format: t, range: e, url: n, query: r }) => e.map(({ height: s, width: i }) => `${n}?${
|
|
1604
|
+
}, hn = ({ format: t, range: e, url: n, query: r }) => e.map(({ height: s, width: i }) => `${n}?${si({
|
|
1605
1605
|
format: t,
|
|
1606
1606
|
height: s,
|
|
1607
1607
|
query: r,
|
|
1608
1608
|
width: i
|
|
1609
1609
|
})} ${i}w`).join(", ");
|
|
1610
|
-
const
|
|
1610
|
+
const Tt = ({ image: t, className: e, testId: n }) => {
|
|
1611
1611
|
const {
|
|
1612
1612
|
description: r,
|
|
1613
1613
|
height: s,
|
|
@@ -1618,7 +1618,7 @@ const kt = ({ image: t, className: e, testId: n }) => {
|
|
|
1618
1618
|
loading: l,
|
|
1619
1619
|
decoding: u,
|
|
1620
1620
|
fetchPriority: f
|
|
1621
|
-
} = t, { range: m, sizes: p } =
|
|
1621
|
+
} = t, { range: m, sizes: p } = ai(t), g = hn({ format: "avif", query: o, range: m, url: c }), v = hn({ format: "webp", query: o, range: m, url: c }), x = hn({ format: "", query: o, range: m, url: c });
|
|
1622
1622
|
return /* @__PURE__ */ a.jsxs("picture", { className: e, children: [
|
|
1623
1623
|
i !== "image/gif" && /* @__PURE__ */ a.jsx(
|
|
1624
1624
|
"source",
|
|
@@ -1652,7 +1652,7 @@ const Pl = ({ image: t, className: e = "", testId: n }) => /* @__PURE__ */ a.jsx
|
|
|
1652
1652
|
{
|
|
1653
1653
|
className: `image-container ${e}`,
|
|
1654
1654
|
"data-testid": n || "image-container",
|
|
1655
|
-
children: t && /* @__PURE__ */ a.jsx(
|
|
1655
|
+
children: t && /* @__PURE__ */ a.jsx(Tt, { image: { ...t }, className: "image" })
|
|
1656
1656
|
}
|
|
1657
1657
|
), at = ({
|
|
1658
1658
|
href: t,
|
|
@@ -1724,7 +1724,7 @@ const Rl = ({ elementId: t, offset: e = 20 }) => {
|
|
|
1724
1724
|
}
|
|
1725
1725
|
);
|
|
1726
1726
|
}, Tr = 300, Er = "ease-in-out";
|
|
1727
|
-
class
|
|
1727
|
+
class ii {
|
|
1728
1728
|
constructor(e) {
|
|
1729
1729
|
this.el = e, this.summary = e.querySelector("summary"), this.content = e.querySelector(".content"), this.animation = null, this.isClosing = !1, this.isExpanding = !1, this.summary.addEventListener("click", (n) => this.onClick(n));
|
|
1730
1730
|
}
|
|
@@ -1776,7 +1776,7 @@ const Jn = ({
|
|
|
1776
1776
|
const s = H(), i = pe(null);
|
|
1777
1777
|
return ae(() => {
|
|
1778
1778
|
let o;
|
|
1779
|
-
return r && (o = new
|
|
1779
|
+
return r && (o = new ii(i.current)), () => {
|
|
1780
1780
|
r && o && o.cleanUp();
|
|
1781
1781
|
};
|
|
1782
1782
|
}, []), /* @__PURE__ */ a.jsxs(
|
|
@@ -1798,7 +1798,7 @@ const Jn = ({
|
|
|
1798
1798
|
person: "user",
|
|
1799
1799
|
speech: "speech-bubble_round",
|
|
1800
1800
|
star: "star_empty_thin"
|
|
1801
|
-
},
|
|
1801
|
+
}, oi = (t) => {
|
|
1802
1802
|
let e = t;
|
|
1803
1803
|
return Object.keys(Sr).includes(t) && (e = Sr[t]), `url(${Le}icons/${e}.svg)`;
|
|
1804
1804
|
};
|
|
@@ -1810,13 +1810,13 @@ const Cr = {
|
|
|
1810
1810
|
listPage: "list",
|
|
1811
1811
|
learningHub: "learning-hub",
|
|
1812
1812
|
communityPage: "communityPage"
|
|
1813
|
-
},
|
|
1813
|
+
}, ci = ({
|
|
1814
1814
|
contentType: t,
|
|
1815
1815
|
customIcon: e,
|
|
1816
1816
|
customLabel: n,
|
|
1817
1817
|
className: r = ""
|
|
1818
1818
|
}) => {
|
|
1819
|
-
const s = H(), i = e ? { "--custom-icon":
|
|
1819
|
+
const s = H(), i = e ? { "--custom-icon": oi(e) } : {}, o = Qn(`contentTypeLabel_${t}`) ? s.formatMessage({ id: `contentTypeLabel_${t}` }) : !1;
|
|
1820
1820
|
return !n && !o ? null : /* @__PURE__ */ a.jsx(
|
|
1821
1821
|
"small",
|
|
1822
1822
|
{
|
|
@@ -1864,10 +1864,10 @@ const He = ({
|
|
|
1864
1864
|
className: r = ""
|
|
1865
1865
|
}) => {
|
|
1866
1866
|
let s = n && !!Object.keys(n).length;
|
|
1867
|
-
const i = typeof n == "object" && "breakpoints" in n, o =
|
|
1867
|
+
const i = typeof n == "object" && "breakpoints" in n, o = jt(i);
|
|
1868
1868
|
if (i && typeof n == "object" && typeof o == "number") {
|
|
1869
|
-
const f = Object.assign({}, n.breakpoints), m =
|
|
1870
|
-
s =
|
|
1869
|
+
const f = Object.assign({}, n.breakpoints), m = ha(Object.keys(f));
|
|
1870
|
+
s = ga(o, m, f);
|
|
1871
1871
|
}
|
|
1872
1872
|
const {
|
|
1873
1873
|
breakpoints: c,
|
|
@@ -1894,10 +1894,10 @@ const He = ({
|
|
|
1894
1894
|
}
|
|
1895
1895
|
);
|
|
1896
1896
|
};
|
|
1897
|
-
const Wn = ({ children: t, ...e }) => /* @__PURE__ */ a.jsx("p", { ...e, children: t }),
|
|
1897
|
+
const Wn = ({ children: t, ...e }) => /* @__PURE__ */ a.jsx("p", { ...e, children: t }), ba = { q: Wn, blockquote: Wn };
|
|
1898
1898
|
for (let t = 1; t <= 6; t++)
|
|
1899
|
-
|
|
1900
|
-
const
|
|
1899
|
+
ba[`h${t}`] = { component: Wn, props: { className: "title" } };
|
|
1900
|
+
const li = ({
|
|
1901
1901
|
type: t = "default",
|
|
1902
1902
|
className: e = "",
|
|
1903
1903
|
heading: n = !1,
|
|
@@ -1910,13 +1910,13 @@ const ci = ({
|
|
|
1910
1910
|
options: {
|
|
1911
1911
|
wrapper: Y.Fragment,
|
|
1912
1912
|
forceBlock: !0,
|
|
1913
|
-
overrides:
|
|
1913
|
+
overrides: ba
|
|
1914
1914
|
},
|
|
1915
1915
|
children: r
|
|
1916
1916
|
}
|
|
1917
1917
|
) : /* @__PURE__ */ a.jsx("p", { children: r })
|
|
1918
1918
|
] });
|
|
1919
|
-
const
|
|
1919
|
+
const ui = ({
|
|
1920
1920
|
className: t = "",
|
|
1921
1921
|
show: e = !1,
|
|
1922
1922
|
hide: n = !1,
|
|
@@ -2001,7 +2001,7 @@ const Fl = ({
|
|
|
2001
2001
|
] }, `dl-${l}`) : /* @__PURE__ */ a.jsx("li", { style: f, children: typeof d.text == "string" ? /* @__PURE__ */ a.jsx(Ie, { options: u, children: d.text }) : d.text }, l);
|
|
2002
2002
|
})
|
|
2003
2003
|
});
|
|
2004
|
-
}, _e = () => Y.Fragment,
|
|
2004
|
+
}, _e = () => Y.Fragment, di = ({ children: t }) => /* @__PURE__ */ a.jsx(Fe, { variant: "secondary", children: t }), fi = ({ children: t }) => typeof t == "object" && Object.keys(t || {}).length === 1 ? /* @__PURE__ */ a.jsx("p", { className: "center", children: t }) : /* @__PURE__ */ a.jsx("div", { className: "center", children: t }), mi = ["span", "strong", "h1", "h2", "h3", "h4", "h5", "h6", "p"], pi = ({ children: t }) => {
|
|
2005
2005
|
const e = H();
|
|
2006
2006
|
if (!t)
|
|
2007
2007
|
return null;
|
|
@@ -2016,7 +2016,7 @@ const Fl = ({
|
|
|
2016
2016
|
for (const o of Bn.toArray(i.props.children))
|
|
2017
2017
|
if (!(!o || typeof o == "string" || typeof o == "number") && Y.isValidElement(o)) {
|
|
2018
2018
|
const c = o.type;
|
|
2019
|
-
if (
|
|
2019
|
+
if (mi.includes(c)) {
|
|
2020
2020
|
for (n = o.props.children; typeof n != "string" && (Array.isArray(n) && n[0].props && n[0].props.children && n[0].props.children[0]); )
|
|
2021
2021
|
n = n[0].props.children[0];
|
|
2022
2022
|
break;
|
|
@@ -2034,7 +2034,7 @@ const Fl = ({
|
|
|
2034
2034
|
children: r.map((i) => i)
|
|
2035
2035
|
}
|
|
2036
2036
|
);
|
|
2037
|
-
},
|
|
2037
|
+
}, hi = ({
|
|
2038
2038
|
children: t,
|
|
2039
2039
|
...e
|
|
2040
2040
|
}) => {
|
|
@@ -2053,7 +2053,7 @@ const Fl = ({
|
|
|
2053
2053
|
return /* @__PURE__ */ a.jsx("div", { ...e, children: t });
|
|
2054
2054
|
}
|
|
2055
2055
|
return /* @__PURE__ */ a.jsx("div", { ...e, children: t });
|
|
2056
|
-
},
|
|
2056
|
+
}, gi = (t) => {
|
|
2057
2057
|
const e = H(), n = Date.now().toString();
|
|
2058
2058
|
let r = "default";
|
|
2059
2059
|
const s = t.src;
|
|
@@ -2075,7 +2075,7 @@ const Fl = ({
|
|
|
2075
2075
|
}, Nr = (t) => {
|
|
2076
2076
|
let e = "";
|
|
2077
2077
|
return t && typeof t != "string" && typeof t != "number" && typeof t != "boolean" && "type" in t && (e = t.type), e;
|
|
2078
|
-
},
|
|
2078
|
+
}, vi = ({
|
|
2079
2079
|
children: t,
|
|
2080
2080
|
...e
|
|
2081
2081
|
}) => {
|
|
@@ -2093,22 +2093,22 @@ const Fl = ({
|
|
|
2093
2093
|
break;
|
|
2094
2094
|
}
|
|
2095
2095
|
return s ? (n = { ...n, className: "button primary medium" }, /* @__PURE__ */ a.jsx("p", { className: "center", children: /* @__PURE__ */ a.jsx(se, { variant: "primary", size: "medium", ...n, children: r }) })) : /* @__PURE__ */ a.jsx("a", { ...n, children: r });
|
|
2096
|
-
},
|
|
2096
|
+
}, $r = ({ children: t }) => /* @__PURE__ */ a.jsx("span", { children: t });
|
|
2097
2097
|
const bi = {
|
|
2098
2098
|
default: {
|
|
2099
|
-
a:
|
|
2099
|
+
a: vi,
|
|
2100
2100
|
// Override psuedo-code
|
|
2101
2101
|
// We give the content team psuedo-code short cuts to use in Contentful
|
|
2102
2102
|
CollapsibleSection: Jn,
|
|
2103
2103
|
TextBox: Fe,
|
|
2104
|
-
CaseStudy:
|
|
2104
|
+
CaseStudy: di,
|
|
2105
2105
|
// Override embedded HTML
|
|
2106
2106
|
// Our content team previously used real HTML, which we need to tear out and replace with React components
|
|
2107
2107
|
style: _e,
|
|
2108
|
-
details:
|
|
2109
|
-
div:
|
|
2110
|
-
iframe:
|
|
2111
|
-
center:
|
|
2108
|
+
details: pi,
|
|
2109
|
+
div: hi,
|
|
2110
|
+
iframe: gi,
|
|
2111
|
+
center: fi
|
|
2112
2112
|
},
|
|
2113
2113
|
"text-only": {
|
|
2114
2114
|
h1: _e,
|
|
@@ -2127,7 +2127,7 @@ const bi = {
|
|
|
2127
2127
|
iframe: _e,
|
|
2128
2128
|
button: _e
|
|
2129
2129
|
}
|
|
2130
|
-
},
|
|
2130
|
+
}, xt = ({
|
|
2131
2131
|
className: t = "",
|
|
2132
2132
|
options: e = {},
|
|
2133
2133
|
children: n,
|
|
@@ -2194,7 +2194,7 @@ const ht = ({
|
|
|
2194
2194
|
}
|
|
2195
2195
|
);
|
|
2196
2196
|
};
|
|
2197
|
-
const
|
|
2197
|
+
const Wt = ({
|
|
2198
2198
|
element: t = "p",
|
|
2199
2199
|
children: e = null,
|
|
2200
2200
|
className: n = "",
|
|
@@ -2320,7 +2320,7 @@ const Dl = ({ className: t = "", image: e, ...n }) => e ? (typeof e == "string"
|
|
|
2320
2320
|
{ height: 200, width: 768 },
|
|
2321
2321
|
{ height: 200, width: 1368 }
|
|
2322
2322
|
], e.query = "fit=thumb&f=center", /* @__PURE__ */ a.jsx(
|
|
2323
|
-
|
|
2323
|
+
Tt,
|
|
2324
2324
|
{
|
|
2325
2325
|
...n,
|
|
2326
2326
|
className: E("banner", t),
|
|
@@ -2364,17 +2364,17 @@ const Il = ({ text: t, buttons: e, className: n = "" }) => {
|
|
|
2364
2364
|
{ className: "text" },
|
|
2365
2365
|
typeof t == "string" ? t : t.text
|
|
2366
2366
|
),
|
|
2367
|
-
/* @__PURE__ */ a.jsx(
|
|
2367
|
+
/* @__PURE__ */ a.jsx(kt, { buttons: r })
|
|
2368
2368
|
] }) });
|
|
2369
2369
|
};
|
|
2370
|
-
function
|
|
2370
|
+
function ya({ href: t, setShowModal: e }) {
|
|
2371
2371
|
typeof t != "string" && e(!0);
|
|
2372
2372
|
}
|
|
2373
2373
|
const wi = ({ icon: t, description: e, ctaMessage: n, href: r, showEditButton: s, setShowModal: i }) => {
|
|
2374
2374
|
const { formatMessage: o } = H();
|
|
2375
|
-
return /* @__PURE__ */ a.jsxs("div", { className: E("edit-section-placeholder", { "has-icon": !!t }), style:
|
|
2375
|
+
return /* @__PURE__ */ a.jsxs("div", { className: E("edit-section-placeholder", { "has-icon": !!t }), style: Vs(t), children: [
|
|
2376
2376
|
/* @__PURE__ */ a.jsx("p", { children: e || o({ id: "edit_section_placeholder_description" }) }),
|
|
2377
|
-
s && /* @__PURE__ */ a.jsx(se, { href: r, variant: "secondary", size: "small", onClick: () =>
|
|
2377
|
+
s && /* @__PURE__ */ a.jsx(se, { href: r, variant: "secondary", size: "small", onClick: () => ya({ href: r, setShowModal: i }), children: n || o({ id: "edit_section_placeholder_cta" }) })
|
|
2378
2378
|
] });
|
|
2379
2379
|
}, Ll = ({
|
|
2380
2380
|
children: t,
|
|
@@ -2414,7 +2414,7 @@ const wi = ({ icon: t, description: e, ctaMessage: n, href: r, showEditButton: s
|
|
|
2414
2414
|
),
|
|
2415
2415
|
/* @__PURE__ */ a.jsxs("div", { className: "edit-section-header", children: [
|
|
2416
2416
|
/* @__PURE__ */ a.jsx("h2", { className: "edit-section-header-title", children: s }),
|
|
2417
|
-
u && /* @__PURE__ */ a.jsx(se, { href: r, variant: "tertiary", size: "small", icon: "pencil", onClick: () =>
|
|
2417
|
+
u && /* @__PURE__ */ a.jsx(se, { href: r, variant: "tertiary", size: "small", icon: "pencil", onClick: () => ya({ href: r, setShowModal: l }), children: "Edit" })
|
|
2418
2418
|
] }),
|
|
2419
2419
|
t || /* @__PURE__ */ a.jsx(wi, { ...o, href: r, setShowModal: l, showEditButton: u }),
|
|
2420
2420
|
c && /* @__PURE__ */ a.jsx(ze, {})
|
|
@@ -2544,7 +2544,7 @@ const ji = [
|
|
|
2544
2544
|
d.map((f) => {
|
|
2545
2545
|
if (u[f] && typeof u[f] == "object") {
|
|
2546
2546
|
const { text: m, element: p = "" } = u[f];
|
|
2547
|
-
return f === "text" ? /* @__PURE__ */ a.jsx(
|
|
2547
|
+
return f === "text" ? /* @__PURE__ */ a.jsx(xt, { overrideType: "text-only", className: "text", children: m }, f) : Y.createElement(p, { key: f, className: f }, m);
|
|
2548
2548
|
}
|
|
2549
2549
|
return null;
|
|
2550
2550
|
}),
|
|
@@ -2560,7 +2560,7 @@ const ji = [
|
|
|
2560
2560
|
}
|
|
2561
2561
|
)
|
|
2562
2562
|
] }),
|
|
2563
|
-
n && /* @__PURE__ */ a.jsx(
|
|
2563
|
+
n && /* @__PURE__ */ a.jsx(Tt, { image: { ...n, aspect: "banner" } })
|
|
2564
2564
|
] })
|
|
2565
2565
|
}
|
|
2566
2566
|
);
|
|
@@ -2589,7 +2589,7 @@ const Ti = ({
|
|
|
2589
2589
|
content: n,
|
|
2590
2590
|
image: r
|
|
2591
2591
|
}) => {
|
|
2592
|
-
const s = typeof n == "string" ? /* @__PURE__ */ a.jsx(
|
|
2592
|
+
const s = typeof n == "string" ? /* @__PURE__ */ a.jsx(xt, { children: n }) : n;
|
|
2593
2593
|
return /* @__PURE__ */ a.jsxs(Ve, { className: E("highlight-section", e), children: [
|
|
2594
2594
|
r && /* @__PURE__ */ a.jsx(
|
|
2595
2595
|
"div",
|
|
@@ -2597,7 +2597,7 @@ const Ti = ({
|
|
|
2597
2597
|
className: E("highlight-container highlight-image", {
|
|
2598
2598
|
[`highlight-image-${t}`]: t === "right"
|
|
2599
2599
|
}),
|
|
2600
|
-
children: /* @__PURE__ */ a.jsx(
|
|
2600
|
+
children: /* @__PURE__ */ a.jsx(Tt, { image: r })
|
|
2601
2601
|
}
|
|
2602
2602
|
),
|
|
2603
2603
|
/* @__PURE__ */ a.jsx(
|
|
@@ -2641,7 +2641,7 @@ const zl = ({
|
|
|
2641
2641
|
}
|
|
2642
2642
|
)
|
|
2643
2643
|
] }), Ei = ({ showDevTools: t = !0, children: e }) => {
|
|
2644
|
-
const n = new
|
|
2644
|
+
const n = new Es({
|
|
2645
2645
|
// default options we would like on all queries can be overridden individually
|
|
2646
2646
|
defaultOptions: {
|
|
2647
2647
|
queries: {
|
|
@@ -2652,15 +2652,15 @@ const zl = ({
|
|
|
2652
2652
|
}
|
|
2653
2653
|
}
|
|
2654
2654
|
});
|
|
2655
|
-
return /* @__PURE__ */ a.jsxs(
|
|
2655
|
+
return /* @__PURE__ */ a.jsxs(Ss, { client: n, children: [
|
|
2656
2656
|
e,
|
|
2657
|
-
t && /* @__PURE__ */ a.jsx(
|
|
2657
|
+
t && /* @__PURE__ */ a.jsx(Ns, { initialIsOpen: !1 })
|
|
2658
2658
|
] });
|
|
2659
2659
|
};
|
|
2660
|
-
var Si =
|
|
2660
|
+
var Si = nn({ client: Lt });
|
|
2661
2661
|
function Ci(t) {
|
|
2662
|
-
var e = t.children, n = t.client, r = t.apiKey, s = t.options, i =
|
|
2663
|
-
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 && s && 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 && (
|
|
2662
|
+
var e = t.children, n = t.client, r = t.apiKey, s = t.options, i = wt(function() {
|
|
2663
|
+
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 && s && 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 && (Lt.__loaded && console.warn("[PostHog.js] was already loaded elsewhere. This may cause issues."), Lt.init(r, s)), Lt);
|
|
2664
2664
|
}, [n, r]);
|
|
2665
2665
|
return Y.createElement(Si.Provider, { value: { client: i } }, e);
|
|
2666
2666
|
}
|
|
@@ -2685,16 +2685,16 @@ const Ni = ({ children: t, user: e }) => e.isLoading ? null : process.env.REACT_
|
|
|
2685
2685
|
}
|
|
2686
2686
|
) : /* @__PURE__ */ a.jsx(a.Fragment, { children: t }), $i = ({ children: t, locale: e, messages: n }) => {
|
|
2687
2687
|
const r = e || "en", s = {
|
|
2688
|
-
...
|
|
2688
|
+
...ei[r],
|
|
2689
2689
|
...n || {}
|
|
2690
2690
|
};
|
|
2691
|
-
return /* @__PURE__ */ a.jsx(
|
|
2692
|
-
},
|
|
2691
|
+
return /* @__PURE__ */ a.jsx(ks, { locale: r, messages: s, children: t });
|
|
2692
|
+
}, _a = nn({}), gn = {
|
|
2693
2693
|
en: "English",
|
|
2694
2694
|
es: "Español",
|
|
2695
2695
|
fr: "Français",
|
|
2696
2696
|
pt: "Português"
|
|
2697
|
-
}, Ae =
|
|
2697
|
+
}, Ae = nn({ isLoading: !0 });
|
|
2698
2698
|
function er() {
|
|
2699
2699
|
return Ee(Ae);
|
|
2700
2700
|
}
|
|
@@ -2704,14 +2704,14 @@ const Pi = ({ children: t, user: e }) => /* @__PURE__ */ a.jsx(Ae.Provider, { va
|
|
|
2704
2704
|
};
|
|
2705
2705
|
return ae(() => {
|
|
2706
2706
|
t().then((u) => {
|
|
2707
|
-
i({ ...u, isLoading: !1 }),
|
|
2707
|
+
i({ ...u, isLoading: !1 }), ni(5e3);
|
|
2708
2708
|
}).catch(() => i({ isLoading: !1 }));
|
|
2709
|
-
}, []), /* @__PURE__ */ a.jsx(
|
|
2709
|
+
}, []), /* @__PURE__ */ a.jsx(_a.Provider, { value: { language: c, updateLanguage: l }, children: /* @__PURE__ */ a.jsx(
|
|
2710
2710
|
$i,
|
|
2711
2711
|
{
|
|
2712
2712
|
locale: c,
|
|
2713
2713
|
messages: n == null ? void 0 : n.messages,
|
|
2714
|
-
children: /* @__PURE__ */ a.jsx(
|
|
2714
|
+
children: /* @__PURE__ */ a.jsx($s, { children: /* @__PURE__ */ a.jsx(Pi, { user: s, children: /* @__PURE__ */ a.jsx(Ei, { showDevTools: r, children: /* @__PURE__ */ a.jsx(Ni, { user: s, children: e }) }) }) })
|
|
2715
2715
|
}
|
|
2716
2716
|
) });
|
|
2717
2717
|
};
|
|
@@ -2741,7 +2741,7 @@ const Mi = ({
|
|
|
2741
2741
|
})
|
|
2742
2742
|
}
|
|
2743
2743
|
);
|
|
2744
|
-
},
|
|
2744
|
+
}, xa = Oe(Mi);
|
|
2745
2745
|
const vn = "loadingBlock_", Ri = ({ progress: t = 0, steps: e = !1, className: n = "" }) => {
|
|
2746
2746
|
const r = H();
|
|
2747
2747
|
e || (e = {
|
|
@@ -2766,7 +2766,7 @@ const vn = "loadingBlock_", Ri = ({ progress: t = 0, steps: e = !1, className: n
|
|
|
2766
2766
|
style: o,
|
|
2767
2767
|
children: [
|
|
2768
2768
|
s && /* @__PURE__ */ a.jsx("span", { className: "step", children: e[s].text }),
|
|
2769
|
-
/* @__PURE__ */ a.jsx(
|
|
2769
|
+
/* @__PURE__ */ a.jsx(xa, { progress: t })
|
|
2770
2770
|
]
|
|
2771
2771
|
}
|
|
2772
2772
|
);
|
|
@@ -2828,25 +2828,25 @@ const zn = {
|
|
|
2828
2828
|
"course-navigation": ["button", "button"],
|
|
2829
2829
|
"course-lesson-page": ["breadcrumb", "course-navigation", "text-page"],
|
|
2830
2830
|
"course-lesson-quiz": ["text-page", "quiz-box"]
|
|
2831
|
-
},
|
|
2831
|
+
}, wa = (t, e) => t in zn ? /* @__PURE__ */ a.jsx("div", { className: t, children: zn[t].map((n, r) => wa(n, r)) }, e) : /* @__PURE__ */ a.jsx(Se, { className: t }, e), ja = ({ layout: t = "overview-page", ...e }) => /* @__PURE__ */ a.jsx("div", { className: E("loading-state", t), ...e, children: zn[t].map((n, r) => wa(n, r)) }), ka = (t) => {
|
|
2832
2832
|
const e = t && t.toUpperCase().trim().split(" ");
|
|
2833
2833
|
return Array.isArray(e) && e.length > 1 && e[0] !== "" ? e[1] === "" ? e[0][0] : e[0][0] + e[e.length - 1][0] : t ? t.substr(0, 1) : "";
|
|
2834
|
-
},
|
|
2835
|
-
const e = Math.ceil(26 /
|
|
2834
|
+
}, Ct = ["#5AB6A3", "#A2D7AF", "#806056", "#3962B3"], Fi = (t) => {
|
|
2835
|
+
const e = Math.ceil(26 / Ct.length), n = ka(t).toLowerCase();
|
|
2836
2836
|
if (n === "")
|
|
2837
|
-
return
|
|
2837
|
+
return Ct[0];
|
|
2838
2838
|
const r = n.charCodeAt(0) - 96;
|
|
2839
|
-
for (let s = 0; s <
|
|
2839
|
+
for (let s = 0; s < Ct.length; s++)
|
|
2840
2840
|
if (r <= e * (s + 1))
|
|
2841
|
-
return
|
|
2841
|
+
return Ct[s];
|
|
2842
2842
|
};
|
|
2843
|
-
const
|
|
2843
|
+
const Pr = 256, Ye = ({
|
|
2844
2844
|
className: t = "",
|
|
2845
2845
|
src: e = "",
|
|
2846
2846
|
name: n,
|
|
2847
2847
|
alt: r,
|
|
2848
|
-
width: s =
|
|
2849
|
-
height: i =
|
|
2848
|
+
width: s = Pr,
|
|
2849
|
+
height: i = Pr,
|
|
2850
2850
|
...o
|
|
2851
2851
|
}) => {
|
|
2852
2852
|
const [c, d] = J(!1), l = pe(null);
|
|
@@ -2858,7 +2858,7 @@ const $r = 256, Ye = ({
|
|
|
2858
2858
|
if (!m)
|
|
2859
2859
|
return;
|
|
2860
2860
|
const p = s, g = i;
|
|
2861
|
-
typeof window < "u" && window.devicePixelRatio && (f.width = p * window.devicePixelRatio, f.height = g * window.devicePixelRatio, m.scale(window.devicePixelRatio, window.devicePixelRatio)), m.fillStyle = Fi(n), m.fillRect(0, 0, p, g), m.font = `${p / 3}px Arial`, m.textAlign = "center", m.fillStyle = "white", m.fillText(
|
|
2861
|
+
typeof window < "u" && window.devicePixelRatio && (f.width = p * window.devicePixelRatio, f.height = g * window.devicePixelRatio, m.scale(window.devicePixelRatio, window.devicePixelRatio)), m.fillStyle = Fi(n), m.fillRect(0, 0, p, g), m.font = `${p / 3}px Arial`, m.textAlign = "center", m.fillStyle = "white", m.fillText(ka(n), p / 2, g / 1.6);
|
|
2862
2862
|
}, [n]);
|
|
2863
2863
|
let u = !1;
|
|
2864
2864
|
return e && e !== "" && !c && (e.includes("http") || e.includes("//")) && (u = !0), /* @__PURE__ */ a.jsx(
|
|
@@ -2880,7 +2880,7 @@ const $r = 256, Ye = ({
|
|
|
2880
2880
|
) : /* @__PURE__ */ a.jsx("canvas", { ref: l })
|
|
2881
2881
|
}
|
|
2882
2882
|
);
|
|
2883
|
-
},
|
|
2883
|
+
}, Ta = (t) => t === "apolitical" ? {
|
|
2884
2884
|
image: `${Le}logos/member_apolitical.svg`
|
|
2885
2885
|
} : t === "community" || typeof t == "object" && !t.name ? {
|
|
2886
2886
|
image: `${Le}logos/member_community.svg`
|
|
@@ -2912,11 +2912,11 @@ const tr = ({
|
|
|
2912
2912
|
gtmType: s = "member-click",
|
|
2913
2913
|
className: i = ""
|
|
2914
2914
|
}) => {
|
|
2915
|
-
const o = H(), c =
|
|
2915
|
+
const o = H(), c = Ta(e);
|
|
2916
2916
|
c.name || (c.name = o.formatMessage({
|
|
2917
2917
|
id: `member_${typeof e == "string" ? e : "community"}`
|
|
2918
2918
|
}));
|
|
2919
|
-
const { name: d, url: l, image: u } = c, f = Oi(c), m = n && n.createdAt ? Un(n.createdAt) : !1, p = n && n.createdAt ?
|
|
2919
|
+
const { name: d, url: l, image: u } = c, f = Oi(c), m = n && n.createdAt ? Un(n.createdAt) : !1, p = n && n.createdAt ? va(n.createdAt) : "";
|
|
2920
2920
|
return Y.createElement(t, {
|
|
2921
2921
|
className: E("member text-medium", i),
|
|
2922
2922
|
children: /* @__PURE__ */ a.jsxs(
|
|
@@ -2946,10 +2946,10 @@ const tr = ({
|
|
|
2946
2946
|
)
|
|
2947
2947
|
});
|
|
2948
2948
|
};
|
|
2949
|
-
const
|
|
2949
|
+
const Mr = {
|
|
2950
2950
|
small: 24,
|
|
2951
2951
|
medium: 48
|
|
2952
|
-
},
|
|
2952
|
+
}, Ea = ({
|
|
2953
2953
|
element: t = "div",
|
|
2954
2954
|
contributors: { total: e, data: n } = { total: void 0, data: [] },
|
|
2955
2955
|
styling: { showText: r, size: s, showGap: i, showPlaceholders: o } = {
|
|
@@ -2971,7 +2971,7 @@ const Pr = {
|
|
|
2971
2971
|
/* @__PURE__ */ a.jsx("ul", { children: n.map((m, p) => {
|
|
2972
2972
|
let g, v = "";
|
|
2973
2973
|
if (p < c) {
|
|
2974
|
-
const { name: x = "", image: b = "" } =
|
|
2974
|
+
const { name: x = "", image: b = "" } = Ta(m);
|
|
2975
2975
|
if (o)
|
|
2976
2976
|
return /* @__PURE__ */ a.jsx(Se, { element: "li", className: "contributor" }, p);
|
|
2977
2977
|
g = /* @__PURE__ */ a.jsx(
|
|
@@ -2979,8 +2979,8 @@ const Pr = {
|
|
|
2979
2979
|
{
|
|
2980
2980
|
name: x,
|
|
2981
2981
|
src: b,
|
|
2982
|
-
width:
|
|
2983
|
-
height:
|
|
2982
|
+
width: Mr[s || "medium"],
|
|
2983
|
+
height: Mr[s || "medium"]
|
|
2984
2984
|
}
|
|
2985
2985
|
);
|
|
2986
2986
|
} else if (p === c) {
|
|
@@ -2991,7 +2991,7 @@ const Pr = {
|
|
|
2991
2991
|
className: E({ "large-number": x > 99 }),
|
|
2992
2992
|
children: [
|
|
2993
2993
|
"+",
|
|
2994
|
-
|
|
2994
|
+
ti(x, 0)
|
|
2995
2995
|
]
|
|
2996
2996
|
}
|
|
2997
2997
|
), v = "number-left";
|
|
@@ -3002,24 +3002,24 @@ const Pr = {
|
|
|
3002
3002
|
] })
|
|
3003
3003
|
});
|
|
3004
3004
|
};
|
|
3005
|
-
const
|
|
3005
|
+
const Nt = "emailHelperTextBox_", Ai = ({
|
|
3006
3006
|
type: t,
|
|
3007
3007
|
email: e,
|
|
3008
3008
|
redirectPath: n,
|
|
3009
3009
|
resendVerificationCode: r
|
|
3010
3010
|
}) => {
|
|
3011
3011
|
const s = H(), [i, o] = J({
|
|
3012
|
-
path: `${
|
|
3012
|
+
path: `${Nt}default`,
|
|
3013
3013
|
type: "default",
|
|
3014
3014
|
link: {},
|
|
3015
3015
|
mail: {},
|
|
3016
3016
|
error: ""
|
|
3017
|
-
}), [c, d] = J(!1), l =
|
|
3017
|
+
}), [c, d] = J(!1), l = ia(
|
|
3018
3018
|
(p) => {
|
|
3019
3019
|
p.preventDefault(), p.stopPropagation();
|
|
3020
3020
|
const g = (v) => {
|
|
3021
3021
|
o({
|
|
3022
|
-
path: `${
|
|
3022
|
+
path: `${Nt}error_verificationFailedToSend`,
|
|
3023
3023
|
type: "error",
|
|
3024
3024
|
link: {
|
|
3025
3025
|
"data-gtm-event-context": "VerifyEmailBox",
|
|
@@ -3039,7 +3039,7 @@ const Ct = "emailHelperTextBox_", Ai = ({
|
|
|
3039
3039
|
});
|
|
3040
3040
|
};
|
|
3041
3041
|
if (typeof r != "function") {
|
|
3042
|
-
g(s.formatMessage({ id: `${
|
|
3042
|
+
g(s.formatMessage({ id: `${Nt}error_noFunction` }));
|
|
3043
3043
|
return;
|
|
3044
3044
|
}
|
|
3045
3045
|
d(!0), r(e).then(() => {
|
|
@@ -3055,7 +3055,7 @@ const Ct = "emailHelperTextBox_", Ai = ({
|
|
|
3055
3055
|
);
|
|
3056
3056
|
ae(
|
|
3057
3057
|
() => {
|
|
3058
|
-
let p =
|
|
3058
|
+
let p = Nt, g = "default", v = {}, x = {};
|
|
3059
3059
|
switch (t) {
|
|
3060
3060
|
case "gov":
|
|
3061
3061
|
p += "autoApproved", g = "success";
|
|
@@ -3114,7 +3114,7 @@ const Ct = "emailHelperTextBox_", Ai = ({
|
|
|
3114
3114
|
return ["link", "mail"].forEach((p) => {
|
|
3115
3115
|
u[p] = Object.keys(i[p]).length ? (g) => /* @__PURE__ */ a.jsx("a", { ...i[p], children: g }) : (g) => g;
|
|
3116
3116
|
}), /* @__PURE__ */ a.jsx(
|
|
3117
|
-
|
|
3117
|
+
li,
|
|
3118
3118
|
{
|
|
3119
3119
|
type: i.type,
|
|
3120
3120
|
heading: c ? !1 : s.formatMessage({ id: `${i.path}_title` }),
|
|
@@ -3296,7 +3296,7 @@ const Qe = {
|
|
|
3296
3296
|
)) })
|
|
3297
3297
|
] });
|
|
3298
3298
|
};
|
|
3299
|
-
const
|
|
3299
|
+
const Sa = ({
|
|
3300
3300
|
className: t = "",
|
|
3301
3301
|
disabled: e,
|
|
3302
3302
|
element: n = "p",
|
|
@@ -3545,7 +3545,7 @@ const qi = ({
|
|
|
3545
3545
|
e.onChange(_);
|
|
3546
3546
|
};
|
|
3547
3547
|
return /* @__PURE__ */ a.jsx(
|
|
3548
|
-
|
|
3548
|
+
Sa,
|
|
3549
3549
|
{
|
|
3550
3550
|
element: "li",
|
|
3551
3551
|
id: S,
|
|
@@ -3605,7 +3605,7 @@ const Je = {
|
|
|
3605
3605
|
text: { component: gt },
|
|
3606
3606
|
email: { component: gt },
|
|
3607
3607
|
textarea: { component: gt, props: { element: "textarea", rows: 4, cols: 10 } },
|
|
3608
|
-
checkbox: { component:
|
|
3608
|
+
checkbox: { component: Sa },
|
|
3609
3609
|
checkboxes: { component: qi, props: { multiSelect: !0 } },
|
|
3610
3610
|
select: { component: Bi },
|
|
3611
3611
|
password: { component: Ui },
|
|
@@ -3995,7 +3995,7 @@ const rn = ({
|
|
|
3995
3995
|
);
|
|
3996
3996
|
}),
|
|
3997
3997
|
v ? null : (C || w) && g ? g : /* @__PURE__ */ a.jsx(
|
|
3998
|
-
|
|
3998
|
+
kt,
|
|
3999
3999
|
{
|
|
4000
4000
|
className: E("cta", {
|
|
4001
4001
|
center: C || w,
|
|
@@ -4007,13 +4007,13 @@ const rn = ({
|
|
|
4007
4007
|
]
|
|
4008
4008
|
}
|
|
4009
4009
|
),
|
|
4010
|
-
_ && w && /* @__PURE__ */ a.jsx(
|
|
4010
|
+
_ && w && /* @__PURE__ */ a.jsx(Wt, { className: "success", children: typeof _ == "string" ? _ : F.formatMessage({ id: "form_success" }) })
|
|
4011
4011
|
] });
|
|
4012
4012
|
};
|
|
4013
|
-
const
|
|
4014
|
-
[
|
|
4015
|
-
[
|
|
4016
|
-
[
|
|
4013
|
+
const $t = "passwordRules_", Ca = "isMoreThanEightCharacters", Na = "includesNumberAndSymbol", $a = "includesLowerAndUppercase", Zi = {
|
|
4014
|
+
[Ca]: "8Characters",
|
|
4015
|
+
[Na]: "numberSymbol",
|
|
4016
|
+
[$a]: "lowercaseUppercase"
|
|
4017
4017
|
}, Hi = ({
|
|
4018
4018
|
matchingRules: t = {
|
|
4019
4019
|
isMoreThanEightCharacters: !1,
|
|
@@ -4024,21 +4024,21 @@ const Nt = "passwordRules_", Sa = "isMoreThanEightCharacters", Ca = "includesNum
|
|
|
4024
4024
|
}) => {
|
|
4025
4025
|
const n = H();
|
|
4026
4026
|
return /* @__PURE__ */ a.jsxs("aside", { className: E("password-rules", e), children: [
|
|
4027
|
-
/* @__PURE__ */ a.jsx("small", { children: n.formatMessage({ id: `${
|
|
4028
|
-
/* @__PURE__ */ a.jsx("ul", { children: [
|
|
4027
|
+
/* @__PURE__ */ a.jsx("small", { children: n.formatMessage({ id: `${$t}intro` }) }),
|
|
4028
|
+
/* @__PURE__ */ a.jsx("ul", { children: [Ca, Na, $a].map(
|
|
4029
4029
|
(r) => /* @__PURE__ */ a.jsxs(
|
|
4030
4030
|
"li",
|
|
4031
4031
|
{
|
|
4032
4032
|
className: E({ matches: t[r] }),
|
|
4033
4033
|
children: [
|
|
4034
4034
|
/* @__PURE__ */ a.jsxs(be, { children: [
|
|
4035
|
-
n.formatMessage({ id: `${
|
|
4035
|
+
n.formatMessage({ id: `${$t}rule_label` }),
|
|
4036
4036
|
" "
|
|
4037
4037
|
] }),
|
|
4038
|
-
/* @__PURE__ */ a.jsx("span", { children: n.formatMessage({ id: `${
|
|
4038
|
+
/* @__PURE__ */ a.jsx("span", { children: n.formatMessage({ id: `${$t}rule_${Zi[r]}` }) }),
|
|
4039
4039
|
!t[r] && /* @__PURE__ */ a.jsxs(be, { element: "strong", children: [
|
|
4040
4040
|
" ",
|
|
4041
|
-
n.formatMessage({ id: `${
|
|
4041
|
+
n.formatMessage({ id: `${$t}notMet` })
|
|
4042
4042
|
] })
|
|
4043
4043
|
]
|
|
4044
4044
|
},
|
|
@@ -4348,7 +4348,7 @@ const Ki = ({
|
|
|
4348
4348
|
/* @__PURE__ */ a.jsx("h2", { className: "title", style: { color: r }, children: t }),
|
|
4349
4349
|
/* @__PURE__ */ a.jsx("label", { htmlFor: "email-input", className: "label", style: { color: s }, children: e }),
|
|
4350
4350
|
/* @__PURE__ */ a.jsx(
|
|
4351
|
-
|
|
4351
|
+
Ps,
|
|
4352
4352
|
{
|
|
4353
4353
|
id: "email-input",
|
|
4354
4354
|
inputClassName: "email-input input",
|
|
@@ -4518,7 +4518,7 @@ const Gi = ({
|
|
|
4518
4518
|
)
|
|
4519
4519
|
}
|
|
4520
4520
|
);
|
|
4521
|
-
},
|
|
4521
|
+
}, Rr = async ({ ref: t, validateEmail: e, dispatch: n }) => {
|
|
4522
4522
|
const r = /^(([^<>()[\]\\.,;:\s@"]+(\.[^<>()[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/;
|
|
4523
4523
|
if (!t.current.validity.valid || !r.test(t.current.value))
|
|
4524
4524
|
return n([{ type: "validFields.email", value: !1 }]);
|
|
@@ -4633,7 +4633,7 @@ const Gi = ({
|
|
|
4633
4633
|
}),
|
|
4634
4634
|
functions: {
|
|
4635
4635
|
onBlur: () => {
|
|
4636
|
-
|
|
4636
|
+
Rr({ ref: i.email, validateEmail: r, dispatch: c });
|
|
4637
4637
|
},
|
|
4638
4638
|
onChange: (p, g) => {
|
|
4639
4639
|
c([{ type: "shouldDisableButton", value: !0 }]), g && g({
|
|
@@ -4747,7 +4747,7 @@ const Gi = ({
|
|
|
4747
4747
|
o.validFields[v] !== i[v].current.validity.valid && (g.push({
|
|
4748
4748
|
type: `validFields.${v}`,
|
|
4749
4749
|
value: i[v].current.validity.valid
|
|
4750
|
-
}), v === "email" &&
|
|
4750
|
+
}), v === "email" && Rr({ ref: i.email, validateEmail: r, dispatch: c }));
|
|
4751
4751
|
}), g.length && c(g);
|
|
4752
4752
|
}
|
|
4753
4753
|
},
|
|
@@ -4816,14 +4816,14 @@ const to = {
|
|
|
4816
4816
|
url: f,
|
|
4817
4817
|
logInButton: m,
|
|
4818
4818
|
successMessage: p
|
|
4819
|
-
}, [v, x] = Yn(
|
|
4819
|
+
}, [v, x] = Yn(pa, to), {
|
|
4820
4820
|
validFields: b,
|
|
4821
4821
|
emailDetails: y,
|
|
4822
4822
|
shouldManuallyApprove: S,
|
|
4823
4823
|
shouldDisableButton: j,
|
|
4824
4824
|
showSuccessMessage: _,
|
|
4825
4825
|
showError: F
|
|
4826
|
-
} = v, [R, X] =
|
|
4826
|
+
} = v, [R, X] = ca([
|
|
4827
4827
|
"signup-this-session",
|
|
4828
4828
|
"functional-cookie-consent"
|
|
4829
4829
|
]), B = {
|
|
@@ -4845,7 +4845,7 @@ const to = {
|
|
|
4845
4845
|
maxAge: 3600
|
|
4846
4846
|
});
|
|
4847
4847
|
}, [_]);
|
|
4848
|
-
const $ =
|
|
4848
|
+
const $ = wt(() => Xi({
|
|
4849
4849
|
placeholders: n,
|
|
4850
4850
|
labels: e,
|
|
4851
4851
|
shouldShow: g,
|
|
@@ -4930,7 +4930,7 @@ const to = {
|
|
|
4930
4930
|
}
|
|
4931
4931
|
);
|
|
4932
4932
|
};
|
|
4933
|
-
var Zn = { exports: {} },
|
|
4933
|
+
var Zn = { exports: {} }, Pt = { exports: {} }, ue = {};
|
|
4934
4934
|
/** @license React v16.13.1
|
|
4935
4935
|
* react-is.production.min.js
|
|
4936
4936
|
*
|
|
@@ -4939,11 +4939,11 @@ var Zn = { exports: {} }, $t = { exports: {} }, ue = {};
|
|
|
4939
4939
|
* This source code is licensed under the MIT license found in the
|
|
4940
4940
|
* LICENSE file in the root directory of this source tree.
|
|
4941
4941
|
*/
|
|
4942
|
-
var
|
|
4942
|
+
var Fr;
|
|
4943
4943
|
function no() {
|
|
4944
|
-
if (
|
|
4944
|
+
if (Fr)
|
|
4945
4945
|
return ue;
|
|
4946
|
-
|
|
4946
|
+
Fr = 1;
|
|
4947
4947
|
var t = typeof Symbol == "function" && Symbol.for, e = t ? Symbol.for("react.element") : 60103, n = t ? Symbol.for("react.portal") : 60106, r = t ? Symbol.for("react.fragment") : 60107, s = t ? Symbol.for("react.strict_mode") : 60108, i = t ? Symbol.for("react.profiler") : 60114, o = t ? Symbol.for("react.provider") : 60109, c = t ? Symbol.for("react.context") : 60110, d = t ? Symbol.for("react.async_mode") : 60111, l = t ? Symbol.for("react.concurrent_mode") : 60111, u = t ? Symbol.for("react.forward_ref") : 60112, f = t ? Symbol.for("react.suspense") : 60113, m = t ? Symbol.for("react.suspense_list") : 60120, p = t ? Symbol.for("react.memo") : 60115, g = t ? Symbol.for("react.lazy") : 60116, v = t ? Symbol.for("react.block") : 60121, x = t ? Symbol.for("react.fundamental") : 60117, b = t ? Symbol.for("react.responder") : 60118, y = t ? Symbol.for("react.scope") : 60119;
|
|
4948
4948
|
function S(_) {
|
|
4949
4949
|
if (typeof _ == "object" && _ !== null) {
|
|
@@ -5015,9 +5015,9 @@ var de = {};
|
|
|
5015
5015
|
* This source code is licensed under the MIT license found in the
|
|
5016
5016
|
* LICENSE file in the root directory of this source tree.
|
|
5017
5017
|
*/
|
|
5018
|
-
var
|
|
5018
|
+
var Or;
|
|
5019
5019
|
function ro() {
|
|
5020
|
-
return
|
|
5020
|
+
return Or || (Or = 1, process.env.NODE_ENV !== "production" && function() {
|
|
5021
5021
|
var t = typeof Symbol == "function" && Symbol.for, e = t ? Symbol.for("react.element") : 60103, n = t ? Symbol.for("react.portal") : 60106, r = t ? Symbol.for("react.fragment") : 60107, s = t ? Symbol.for("react.strict_mode") : 60108, i = t ? Symbol.for("react.profiler") : 60114, o = t ? Symbol.for("react.provider") : 60109, c = t ? Symbol.for("react.context") : 60110, d = t ? Symbol.for("react.async_mode") : 60111, l = t ? Symbol.for("react.concurrent_mode") : 60111, u = t ? Symbol.for("react.forward_ref") : 60112, f = t ? Symbol.for("react.suspense") : 60113, m = t ? Symbol.for("react.suspense_list") : 60120, p = t ? Symbol.for("react.memo") : 60115, g = t ? Symbol.for("react.lazy") : 60116, v = t ? Symbol.for("react.block") : 60121, x = t ? Symbol.for("react.fundamental") : 60117, b = t ? Symbol.for("react.responder") : 60118, y = t ? Symbol.for("react.scope") : 60119;
|
|
5022
5022
|
function S(D) {
|
|
5023
5023
|
return typeof D == "string" || typeof D == "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
|
|
@@ -5098,20 +5098,20 @@ function ro() {
|
|
|
5098
5098
|
de.AsyncMode = _, de.ConcurrentMode = F, de.ContextConsumer = R, de.ContextProvider = X, de.Element = B, de.ForwardRef = $, de.Fragment = C, de.Lazy = w, de.Memo = k, de.Portal = N, de.Profiler = A, de.StrictMode = U, de.Suspense = Z, de.isAsyncMode = K, de.isConcurrentMode = T, de.isContextConsumer = P, de.isContextProvider = I, de.isElement = q, de.isForwardRef = W, de.isFragment = te, de.isLazy = G, de.isMemo = V, de.isPortal = ee, de.isProfiler = re, de.isStrictMode = O, de.isSuspense = oe, de.isValidElementType = S, de.typeOf = j;
|
|
5099
5099
|
}()), de;
|
|
5100
5100
|
}
|
|
5101
|
-
var
|
|
5102
|
-
function
|
|
5103
|
-
return
|
|
5101
|
+
var Ar;
|
|
5102
|
+
function Pa() {
|
|
5103
|
+
return Ar || (Ar = 1, process.env.NODE_ENV === "production" ? Pt.exports = no() : Pt.exports = ro()), Pt.exports;
|
|
5104
5104
|
}
|
|
5105
5105
|
/*
|
|
5106
5106
|
object-assign
|
|
5107
5107
|
(c) Sindre Sorhus
|
|
5108
5108
|
@license MIT
|
|
5109
5109
|
*/
|
|
5110
|
-
var _n,
|
|
5110
|
+
var _n, Dr;
|
|
5111
5111
|
function ao() {
|
|
5112
|
-
if (
|
|
5112
|
+
if (Dr)
|
|
5113
5113
|
return _n;
|
|
5114
|
-
|
|
5114
|
+
Dr = 1;
|
|
5115
5115
|
var t = Object.getOwnPropertySymbols, e = Object.prototype.hasOwnProperty, n = Object.prototype.propertyIsEnumerable;
|
|
5116
5116
|
function r(i) {
|
|
5117
5117
|
if (i == null)
|
|
@@ -5154,27 +5154,27 @@ function ao() {
|
|
|
5154
5154
|
return d;
|
|
5155
5155
|
}, _n;
|
|
5156
5156
|
}
|
|
5157
|
-
var xn,
|
|
5157
|
+
var xn, Ir;
|
|
5158
5158
|
function nr() {
|
|
5159
|
-
if (
|
|
5159
|
+
if (Ir)
|
|
5160
5160
|
return xn;
|
|
5161
|
-
|
|
5161
|
+
Ir = 1;
|
|
5162
5162
|
var t = "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";
|
|
5163
5163
|
return xn = t, xn;
|
|
5164
5164
|
}
|
|
5165
|
-
var wn,
|
|
5166
|
-
function
|
|
5167
|
-
return
|
|
5165
|
+
var wn, Lr;
|
|
5166
|
+
function Ma() {
|
|
5167
|
+
return Lr || (Lr = 1, wn = Function.call.bind(Object.prototype.hasOwnProperty)), wn;
|
|
5168
5168
|
}
|
|
5169
|
-
var jn,
|
|
5169
|
+
var jn, Br;
|
|
5170
5170
|
function so() {
|
|
5171
|
-
if (
|
|
5171
|
+
if (Br)
|
|
5172
5172
|
return jn;
|
|
5173
|
-
|
|
5173
|
+
Br = 1;
|
|
5174
5174
|
var t = function() {
|
|
5175
5175
|
};
|
|
5176
5176
|
if (process.env.NODE_ENV !== "production") {
|
|
5177
|
-
var e = nr(), n = {}, r =
|
|
5177
|
+
var e = nr(), n = {}, r = Ma();
|
|
5178
5178
|
t = function(i) {
|
|
5179
5179
|
var o = "Warning: " + i;
|
|
5180
5180
|
typeof console < "u" && console.error(o);
|
|
@@ -5216,12 +5216,12 @@ function so() {
|
|
|
5216
5216
|
process.env.NODE_ENV !== "production" && (n = {});
|
|
5217
5217
|
}, jn = s, jn;
|
|
5218
5218
|
}
|
|
5219
|
-
var kn,
|
|
5219
|
+
var kn, qr;
|
|
5220
5220
|
function io() {
|
|
5221
|
-
if (
|
|
5221
|
+
if (qr)
|
|
5222
5222
|
return kn;
|
|
5223
|
-
|
|
5224
|
-
var t =
|
|
5223
|
+
qr = 1;
|
|
5224
|
+
var t = Pa(), e = ao(), n = nr(), r = Ma(), s = so(), i = function() {
|
|
5225
5225
|
};
|
|
5226
5226
|
process.env.NODE_ENV !== "production" && (i = function(c) {
|
|
5227
5227
|
var d = "Warning: " + c;
|
|
@@ -5538,11 +5538,11 @@ Valid keys: ` + JSON.stringify(Object.keys(T), null, " ")
|
|
|
5538
5538
|
return p.checkPropTypes = s, p.resetWarningCache = s.resetWarningCache, p.PropTypes = p, p;
|
|
5539
5539
|
}, kn;
|
|
5540
5540
|
}
|
|
5541
|
-
var Tn,
|
|
5541
|
+
var Tn, Ur;
|
|
5542
5542
|
function oo() {
|
|
5543
|
-
if (
|
|
5543
|
+
if (Ur)
|
|
5544
5544
|
return Tn;
|
|
5545
|
-
|
|
5545
|
+
Ur = 1;
|
|
5546
5546
|
var t = nr();
|
|
5547
5547
|
function e() {
|
|
5548
5548
|
}
|
|
@@ -5588,7 +5588,7 @@ function oo() {
|
|
|
5588
5588
|
}, Tn;
|
|
5589
5589
|
}
|
|
5590
5590
|
if (process.env.NODE_ENV !== "production") {
|
|
5591
|
-
var co =
|
|
5591
|
+
var co = Pa(), lo = !0;
|
|
5592
5592
|
Zn.exports = io()(co.isElement, lo);
|
|
5593
5593
|
} else
|
|
5594
5594
|
Zn.exports = oo()();
|
|
@@ -5597,13 +5597,13 @@ var uo = Zn.exports;
|
|
|
5597
5597
|
* tabbable 6.2.0
|
|
5598
5598
|
* @license MIT, https://github.com/focus-trap/tabbable/blob/master/LICENSE
|
|
5599
5599
|
*/
|
|
5600
|
-
var
|
|
5601
|
-
} : Element.prototype.matches || Element.prototype.msMatchesSelector || Element.prototype.webkitMatchesSelector,
|
|
5600
|
+
var Ra = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])", "a[href]:not([inert])", "button:not([inert])", "[tabindex]:not(slot):not([inert])", "audio[controls]:not([inert])", "video[controls]:not([inert])", '[contenteditable]:not([contenteditable="false"]):not([inert])', "details>summary:first-of-type:not([inert])", "details:not([inert])"], zt = /* @__PURE__ */ Ra.join(","), Fa = typeof Element > "u", Ze = Fa ? function() {
|
|
5601
|
+
} : Element.prototype.matches || Element.prototype.msMatchesSelector || Element.prototype.webkitMatchesSelector, Zt = !Fa && Element.prototype.getRootNode ? function(t) {
|
|
5602
5602
|
var e;
|
|
5603
5603
|
return t == null || (e = t.getRootNode) === null || e === void 0 ? void 0 : e.call(t);
|
|
5604
5604
|
} : function(t) {
|
|
5605
5605
|
return t == null ? void 0 : t.ownerDocument;
|
|
5606
|
-
},
|
|
5606
|
+
}, Ht = function t(e, n) {
|
|
5607
5607
|
var r;
|
|
5608
5608
|
n === void 0 && (n = !0);
|
|
5609
5609
|
var s = e == null || (r = e.getAttribute) === null || r === void 0 ? void 0 : r.call(e, "inert"), i = s === "" || s === "true", o = i || n && e && t(e.parentNode);
|
|
@@ -5611,15 +5611,15 @@ var Ma = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])",
|
|
|
5611
5611
|
}, fo = function(e) {
|
|
5612
5612
|
var n, r = e == null || (n = e.getAttribute) === null || n === void 0 ? void 0 : n.call(e, "contenteditable");
|
|
5613
5613
|
return r === "" || r === "true";
|
|
5614
|
-
},
|
|
5615
|
-
if (
|
|
5614
|
+
}, Oa = function(e, n, r) {
|
|
5615
|
+
if (Ht(e))
|
|
5616
5616
|
return [];
|
|
5617
|
-
var s = Array.prototype.slice.apply(e.querySelectorAll(
|
|
5618
|
-
return n && Ze.call(e,
|
|
5619
|
-
},
|
|
5617
|
+
var s = Array.prototype.slice.apply(e.querySelectorAll(zt));
|
|
5618
|
+
return n && Ze.call(e, zt) && s.unshift(e), s = s.filter(r), s;
|
|
5619
|
+
}, Aa = function t(e, n, r) {
|
|
5620
5620
|
for (var s = [], i = Array.from(e); i.length; ) {
|
|
5621
5621
|
var o = i.shift();
|
|
5622
|
-
if (!
|
|
5622
|
+
if (!Ht(o, !1))
|
|
5623
5623
|
if (o.tagName === "SLOT") {
|
|
5624
5624
|
var c = o.assignedElements(), d = c.length ? c : o.children, l = t(d, !0, r);
|
|
5625
5625
|
r.flatten ? s.push.apply(s, l) : s.push({
|
|
@@ -5627,10 +5627,10 @@ var Ma = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])",
|
|
|
5627
5627
|
candidates: l
|
|
5628
5628
|
});
|
|
5629
5629
|
} else {
|
|
5630
|
-
var u = Ze.call(o,
|
|
5630
|
+
var u = Ze.call(o, zt);
|
|
5631
5631
|
u && r.filter(o) && (n || !e.includes(o)) && s.push(o);
|
|
5632
5632
|
var f = o.shadowRoot || // check for an undisclosed shadow
|
|
5633
|
-
typeof r.getShadowRoot == "function" && r.getShadowRoot(o), m = !
|
|
5633
|
+
typeof r.getShadowRoot == "function" && r.getShadowRoot(o), m = !Ht(f, !1) && (!r.shadowRootFilter || r.shadowRootFilter(o));
|
|
5634
5634
|
if (f && m) {
|
|
5635
5635
|
var p = t(f === !0 ? o.children : f.children, !0, r);
|
|
5636
5636
|
r.flatten ? s.push.apply(s, p) : s.push({
|
|
@@ -5642,21 +5642,21 @@ var Ma = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])",
|
|
|
5642
5642
|
}
|
|
5643
5643
|
}
|
|
5644
5644
|
return s;
|
|
5645
|
-
},
|
|
5645
|
+
}, Da = function(e) {
|
|
5646
5646
|
return !isNaN(parseInt(e.getAttribute("tabindex"), 10));
|
|
5647
5647
|
}, De = function(e) {
|
|
5648
5648
|
if (!e)
|
|
5649
5649
|
throw new Error("No node provided");
|
|
5650
|
-
return e.tabIndex < 0 && (/^(AUDIO|VIDEO|DETAILS)$/.test(e.tagName) || fo(e)) && !
|
|
5650
|
+
return e.tabIndex < 0 && (/^(AUDIO|VIDEO|DETAILS)$/.test(e.tagName) || fo(e)) && !Da(e) ? 0 : e.tabIndex;
|
|
5651
5651
|
}, mo = function(e, n) {
|
|
5652
5652
|
var r = De(e);
|
|
5653
|
-
return r < 0 && n && !
|
|
5653
|
+
return r < 0 && n && !Da(e) ? 0 : r;
|
|
5654
5654
|
}, po = function(e, n) {
|
|
5655
5655
|
return e.tabIndex === n.tabIndex ? e.documentOrder - n.documentOrder : e.tabIndex - n.tabIndex;
|
|
5656
|
-
},
|
|
5656
|
+
}, Ia = function(e) {
|
|
5657
5657
|
return e.tagName === "INPUT";
|
|
5658
5658
|
}, ho = function(e) {
|
|
5659
|
-
return
|
|
5659
|
+
return Ia(e) && e.type === "hidden";
|
|
5660
5660
|
}, go = function(e) {
|
|
5661
5661
|
var n = e.tagName === "DETAILS" && Array.prototype.slice.apply(e.children).some(function(r) {
|
|
5662
5662
|
return r.tagName === "SUMMARY";
|
|
@@ -5669,7 +5669,7 @@ var Ma = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])",
|
|
|
5669
5669
|
}, bo = function(e) {
|
|
5670
5670
|
if (!e.name)
|
|
5671
5671
|
return !0;
|
|
5672
|
-
var n = e.form ||
|
|
5672
|
+
var n = e.form || Zt(e), r = function(c) {
|
|
5673
5673
|
return n.querySelectorAll('input[type="radio"][name="' + c + '"]');
|
|
5674
5674
|
}, s;
|
|
5675
5675
|
if (typeof window < "u" && typeof window.CSS < "u" && typeof window.CSS.escape == "function")
|
|
@@ -5683,20 +5683,20 @@ var Ma = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])",
|
|
|
5683
5683
|
var i = vo(s, e.form);
|
|
5684
5684
|
return !i || i === e;
|
|
5685
5685
|
}, yo = function(e) {
|
|
5686
|
-
return
|
|
5686
|
+
return Ia(e) && e.type === "radio";
|
|
5687
5687
|
}, _o = function(e) {
|
|
5688
5688
|
return yo(e) && !bo(e);
|
|
5689
5689
|
}, xo = function(e) {
|
|
5690
|
-
var n, r = e &&
|
|
5690
|
+
var n, r = e && Zt(e), s = (n = r) === null || n === void 0 ? void 0 : n.host, i = !1;
|
|
5691
5691
|
if (r && r !== e) {
|
|
5692
5692
|
var o, c, d;
|
|
5693
5693
|
for (i = !!((o = s) !== null && o !== void 0 && (c = o.ownerDocument) !== null && c !== void 0 && c.contains(s) || e != null && (d = e.ownerDocument) !== null && d !== void 0 && d.contains(e)); !i && s; ) {
|
|
5694
5694
|
var l, u, f;
|
|
5695
|
-
r =
|
|
5695
|
+
r = Zt(s), s = (l = r) === null || l === void 0 ? void 0 : l.host, i = !!((u = s) !== null && u !== void 0 && (f = u.ownerDocument) !== null && f !== void 0 && f.contains(s));
|
|
5696
5696
|
}
|
|
5697
5697
|
}
|
|
5698
5698
|
return i;
|
|
5699
|
-
},
|
|
5699
|
+
}, Wr = function(e) {
|
|
5700
5700
|
var n = e.getBoundingClientRect(), r = n.width, s = n.height;
|
|
5701
5701
|
return r === 0 && s === 0;
|
|
5702
5702
|
}, wo = function(e, n) {
|
|
@@ -5709,9 +5709,9 @@ var Ma = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])",
|
|
|
5709
5709
|
if (!r || r === "full" || r === "legacy-full") {
|
|
5710
5710
|
if (typeof s == "function") {
|
|
5711
5711
|
for (var c = e; e; ) {
|
|
5712
|
-
var d = e.parentElement, l =
|
|
5712
|
+
var d = e.parentElement, l = Zt(e);
|
|
5713
5713
|
if (d && !d.shadowRoot && s(d) === !0)
|
|
5714
|
-
return
|
|
5714
|
+
return Wr(e);
|
|
5715
5715
|
e.assignedSlot ? e = e.assignedSlot : !d && l !== e.ownerDocument ? e = l.host : e = d;
|
|
5716
5716
|
}
|
|
5717
5717
|
e = c;
|
|
@@ -5721,7 +5721,7 @@ var Ma = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])",
|
|
|
5721
5721
|
if (r !== "legacy-full")
|
|
5722
5722
|
return !0;
|
|
5723
5723
|
} else if (r === "non-zero-area")
|
|
5724
|
-
return
|
|
5724
|
+
return Wr(e);
|
|
5725
5725
|
return !1;
|
|
5726
5726
|
}, jo = function(e) {
|
|
5727
5727
|
if (/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(e.tagName))
|
|
@@ -5737,14 +5737,14 @@ var Ma = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])",
|
|
|
5737
5737
|
n = n.parentElement;
|
|
5738
5738
|
}
|
|
5739
5739
|
return !1;
|
|
5740
|
-
},
|
|
5740
|
+
}, Vt = function(e, n) {
|
|
5741
5741
|
return !(n.disabled || // we must do an inert look up to filter out any elements inside an inert ancestor
|
|
5742
5742
|
// because we're limited in the type of selectors we can use in JSDom (see related
|
|
5743
5743
|
// note related to `candidateSelectors`)
|
|
5744
|
-
|
|
5744
|
+
Ht(n) || ho(n) || wo(n, e) || // For a details element with a summary, the summary element gets the focus
|
|
5745
5745
|
go(n) || jo(n));
|
|
5746
5746
|
}, Hn = function(e, n) {
|
|
5747
|
-
return !(_o(n) || De(n) < 0 || !
|
|
5747
|
+
return !(_o(n) || De(n) < 0 || !Vt(e, n));
|
|
5748
5748
|
}, ko = function(e) {
|
|
5749
5749
|
var n = parseInt(e.getAttribute("tabindex"), 10);
|
|
5750
5750
|
return !!(isNaN(n) || n >= 0);
|
|
@@ -5762,45 +5762,45 @@ var Ma = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])",
|
|
|
5762
5762
|
}), r.sort(po).reduce(function(s, i) {
|
|
5763
5763
|
return i.isScope ? s.push.apply(s, i.content) : s.push(i.content), s;
|
|
5764
5764
|
}, []).concat(n);
|
|
5765
|
-
},
|
|
5765
|
+
}, La = function(e, n) {
|
|
5766
5766
|
n = n || {};
|
|
5767
5767
|
var r;
|
|
5768
|
-
return n.getShadowRoot ? r =
|
|
5768
|
+
return n.getShadowRoot ? r = Aa([e], n.includeContainer, {
|
|
5769
5769
|
filter: Hn.bind(null, n),
|
|
5770
5770
|
flatten: !1,
|
|
5771
5771
|
getShadowRoot: n.getShadowRoot,
|
|
5772
5772
|
shadowRootFilter: ko
|
|
5773
|
-
}) : r =
|
|
5774
|
-
},
|
|
5773
|
+
}) : r = Oa(e, n.includeContainer, Hn.bind(null, n)), To(r);
|
|
5774
|
+
}, Ba = function(e, n) {
|
|
5775
5775
|
n = n || {};
|
|
5776
5776
|
var r;
|
|
5777
|
-
return n.getShadowRoot ? r =
|
|
5778
|
-
filter:
|
|
5777
|
+
return n.getShadowRoot ? r = Aa([e], n.includeContainer, {
|
|
5778
|
+
filter: Vt.bind(null, n),
|
|
5779
5779
|
flatten: !0,
|
|
5780
5780
|
getShadowRoot: n.getShadowRoot
|
|
5781
|
-
}) : r =
|
|
5781
|
+
}) : r = Oa(e, n.includeContainer, Vt.bind(null, n)), r;
|
|
5782
5782
|
}, Ue = function(e, n) {
|
|
5783
5783
|
if (n = n || {}, !e)
|
|
5784
5784
|
throw new Error("No node provided");
|
|
5785
|
-
return Ze.call(e,
|
|
5786
|
-
}, Eo = /* @__PURE__ */
|
|
5785
|
+
return Ze.call(e, zt) === !1 ? !1 : Hn(n, e);
|
|
5786
|
+
}, Eo = /* @__PURE__ */ Ra.concat("iframe").join(","), qt = function(e, n) {
|
|
5787
5787
|
if (n = n || {}, !e)
|
|
5788
5788
|
throw new Error("No node provided");
|
|
5789
|
-
return Ze.call(e, Eo) === !1 ? !1 :
|
|
5789
|
+
return Ze.call(e, Eo) === !1 ? !1 : Vt(n, e);
|
|
5790
5790
|
};
|
|
5791
5791
|
const So = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
5792
5792
|
__proto__: null,
|
|
5793
|
-
focusable:
|
|
5793
|
+
focusable: Ba,
|
|
5794
5794
|
getTabIndex: De,
|
|
5795
|
-
isFocusable:
|
|
5795
|
+
isFocusable: qt,
|
|
5796
5796
|
isTabbable: Ue,
|
|
5797
|
-
tabbable:
|
|
5797
|
+
tabbable: La
|
|
5798
5798
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
5799
5799
|
/*!
|
|
5800
5800
|
* focus-trap 7.5.4
|
|
5801
5801
|
* @license MIT, https://github.com/focus-trap/focus-trap/blob/master/LICENSE
|
|
5802
5802
|
*/
|
|
5803
|
-
function
|
|
5803
|
+
function zr(t, e) {
|
|
5804
5804
|
var n = Object.keys(t);
|
|
5805
5805
|
if (Object.getOwnPropertySymbols) {
|
|
5806
5806
|
var r = Object.getOwnPropertySymbols(t);
|
|
@@ -5810,12 +5810,12 @@ function Wr(t, e) {
|
|
|
5810
5810
|
}
|
|
5811
5811
|
return n;
|
|
5812
5812
|
}
|
|
5813
|
-
function
|
|
5813
|
+
function Zr(t) {
|
|
5814
5814
|
for (var e = 1; e < arguments.length; e++) {
|
|
5815
5815
|
var n = arguments[e] != null ? arguments[e] : {};
|
|
5816
|
-
e % 2 ?
|
|
5816
|
+
e % 2 ? zr(Object(n), !0).forEach(function(r) {
|
|
5817
5817
|
Co(t, r, n[r]);
|
|
5818
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(t, Object.getOwnPropertyDescriptors(n)) :
|
|
5818
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(t, Object.getOwnPropertyDescriptors(n)) : zr(Object(n)).forEach(function(r) {
|
|
5819
5819
|
Object.defineProperty(t, r, Object.getOwnPropertyDescriptor(n, r));
|
|
5820
5820
|
});
|
|
5821
5821
|
}
|
|
@@ -5845,7 +5845,7 @@ function $o(t) {
|
|
|
5845
5845
|
var e = No(t, "string");
|
|
5846
5846
|
return typeof e == "symbol" ? e : String(e);
|
|
5847
5847
|
}
|
|
5848
|
-
var
|
|
5848
|
+
var Hr = {
|
|
5849
5849
|
activateTrap: function(e, n) {
|
|
5850
5850
|
if (e.length > 0) {
|
|
5851
5851
|
var r = e[e.length - 1];
|
|
@@ -5868,9 +5868,9 @@ var Zr = {
|
|
|
5868
5868
|
return vt(e) && !e.shiftKey;
|
|
5869
5869
|
}, Fo = function(e) {
|
|
5870
5870
|
return vt(e) && e.shiftKey;
|
|
5871
|
-
},
|
|
5871
|
+
}, Vr = function(e) {
|
|
5872
5872
|
return setTimeout(e, 0);
|
|
5873
|
-
},
|
|
5873
|
+
}, Yr = function(e, n) {
|
|
5874
5874
|
var r = -1;
|
|
5875
5875
|
return e.every(function(s, i) {
|
|
5876
5876
|
return n(s) ? (r = i, !1) : !0;
|
|
@@ -5879,10 +5879,10 @@ var Zr = {
|
|
|
5879
5879
|
for (var n = arguments.length, r = new Array(n > 1 ? n - 1 : 0), s = 1; s < n; s++)
|
|
5880
5880
|
r[s - 1] = arguments[s];
|
|
5881
5881
|
return typeof e == "function" ? e.apply(void 0, r) : e;
|
|
5882
|
-
},
|
|
5882
|
+
}, Mt = function(e) {
|
|
5883
5883
|
return e.target.shadowRoot && typeof e.composedPath == "function" ? e.composedPath()[0] : e.target;
|
|
5884
5884
|
}, Oo = [], Ao = function(e, n) {
|
|
5885
|
-
var r = (n == null ? void 0 : n.document) || document, s = (n == null ? void 0 : n.trapStack) || Oo, i =
|
|
5885
|
+
var r = (n == null ? void 0 : n.document) || document, s = (n == null ? void 0 : n.trapStack) || Oo, i = Zr({
|
|
5886
5886
|
returnFocusOnDeactivate: !0,
|
|
5887
5887
|
escapeDeactivates: !0,
|
|
5888
5888
|
delayInitialFocus: !0,
|
|
@@ -5958,7 +5958,7 @@ var Zr = {
|
|
|
5958
5958
|
var w = u("initialFocus");
|
|
5959
5959
|
if (w === !1)
|
|
5960
5960
|
return !1;
|
|
5961
|
-
if (w === void 0 || !
|
|
5961
|
+
if (w === void 0 || !qt(w, i.tabbableOptions))
|
|
5962
5962
|
if (l(r.activeElement) >= 0)
|
|
5963
5963
|
w = r.activeElement;
|
|
5964
5964
|
else {
|
|
@@ -5970,7 +5970,7 @@ var Zr = {
|
|
|
5970
5970
|
return w;
|
|
5971
5971
|
}, m = function() {
|
|
5972
5972
|
if (o.containerGroups = o.containers.map(function(w) {
|
|
5973
|
-
var k =
|
|
5973
|
+
var k = La(w, i.tabbableOptions), N = Ba(w, i.tabbableOptions), A = k.length > 0 ? k[0] : void 0, U = k.length > 0 ? k[k.length - 1] : void 0, Z = N.find(function(T) {
|
|
5974
5974
|
return Ue(T);
|
|
5975
5975
|
}), z = N.slice().reverse().find(function(T) {
|
|
5976
5976
|
return Ue(T);
|
|
@@ -6042,28 +6042,28 @@ var Zr = {
|
|
|
6042
6042
|
return k || (k === !1 ? !1 : w);
|
|
6043
6043
|
}, x = function(w) {
|
|
6044
6044
|
var k = w.target, N = w.event, A = w.isBackward, U = A === void 0 ? !1 : A;
|
|
6045
|
-
k = k ||
|
|
6045
|
+
k = k || Mt(N), m();
|
|
6046
6046
|
var Z = null;
|
|
6047
6047
|
if (o.tabbableGroups.length > 0) {
|
|
6048
6048
|
var z = l(k, N), K = z >= 0 ? o.containerGroups[z] : void 0;
|
|
6049
6049
|
if (z < 0)
|
|
6050
6050
|
U ? Z = o.tabbableGroups[o.tabbableGroups.length - 1].lastTabbableNode : Z = o.tabbableGroups[0].firstTabbableNode;
|
|
6051
6051
|
else if (U) {
|
|
6052
|
-
var T =
|
|
6052
|
+
var T = Yr(o.tabbableGroups, function(G) {
|
|
6053
6053
|
var V = G.firstTabbableNode;
|
|
6054
6054
|
return k === V;
|
|
6055
6055
|
});
|
|
6056
|
-
if (T < 0 && (K.container === k ||
|
|
6056
|
+
if (T < 0 && (K.container === k || qt(k, i.tabbableOptions) && !Ue(k, i.tabbableOptions) && !K.nextTabbableNode(k, !1)) && (T = z), T >= 0) {
|
|
6057
6057
|
var P = T === 0 ? o.tabbableGroups.length - 1 : T - 1, I = o.tabbableGroups[P];
|
|
6058
6058
|
Z = De(k) >= 0 ? I.lastTabbableNode : I.lastDomTabbableNode;
|
|
6059
6059
|
} else
|
|
6060
6060
|
vt(N) || (Z = K.nextTabbableNode(k, !1));
|
|
6061
6061
|
} else {
|
|
6062
|
-
var q =
|
|
6062
|
+
var q = Yr(o.tabbableGroups, function(G) {
|
|
6063
6063
|
var V = G.lastTabbableNode;
|
|
6064
6064
|
return k === V;
|
|
6065
6065
|
});
|
|
6066
|
-
if (q < 0 && (K.container === k ||
|
|
6066
|
+
if (q < 0 && (K.container === k || qt(k, i.tabbableOptions) && !Ue(k, i.tabbableOptions) && !K.nextTabbableNode(k)) && (q = z), q >= 0) {
|
|
6067
6067
|
var W = q === o.tabbableGroups.length - 1 ? 0 : q + 1, te = o.tabbableGroups[W];
|
|
6068
6068
|
Z = De(k) >= 0 ? te.firstTabbableNode : te.firstDomTabbableNode;
|
|
6069
6069
|
} else
|
|
@@ -6073,7 +6073,7 @@ var Zr = {
|
|
|
6073
6073
|
Z = u("fallbackFocus");
|
|
6074
6074
|
return Z;
|
|
6075
6075
|
}, b = function(w) {
|
|
6076
|
-
var k =
|
|
6076
|
+
var k = Mt(w);
|
|
6077
6077
|
if (!(l(k, w) >= 0)) {
|
|
6078
6078
|
if (lt(i.clickOutsideDeactivates, w)) {
|
|
6079
6079
|
c.deactivate({
|
|
@@ -6090,7 +6090,7 @@ var Zr = {
|
|
|
6090
6090
|
lt(i.allowOutsideClick, w) || w.preventDefault();
|
|
6091
6091
|
}
|
|
6092
6092
|
}, y = function(w) {
|
|
6093
|
-
var k =
|
|
6093
|
+
var k = Mt(w), N = l(k, w) >= 0;
|
|
6094
6094
|
if (N || k instanceof Document)
|
|
6095
6095
|
N && (o.mostRecentlyFocusedNode = k);
|
|
6096
6096
|
else {
|
|
@@ -6136,11 +6136,11 @@ var Zr = {
|
|
|
6136
6136
|
}
|
|
6137
6137
|
(i.isKeyForward(w) || i.isKeyBackward(w)) && S(w, i.isKeyBackward(w));
|
|
6138
6138
|
}, _ = function(w) {
|
|
6139
|
-
var k =
|
|
6139
|
+
var k = Mt(w);
|
|
6140
6140
|
l(k, w) >= 0 || lt(i.clickOutsideDeactivates, w) || lt(i.allowOutsideClick, w) || (w.preventDefault(), w.stopImmediatePropagation());
|
|
6141
6141
|
}, F = function() {
|
|
6142
6142
|
if (o.active)
|
|
6143
|
-
return
|
|
6143
|
+
return Hr.activateTrap(s, c), o.delayInitialFocusTimer = i.delayInitialFocus ? Vr(function() {
|
|
6144
6144
|
g(f());
|
|
6145
6145
|
}) : g(f()), r.addEventListener("focusin", y, !0), r.addEventListener("mousedown", b, {
|
|
6146
6146
|
capture: !0,
|
|
@@ -6194,16 +6194,16 @@ var Zr = {
|
|
|
6194
6194
|
deactivate: function(w) {
|
|
6195
6195
|
if (!o.active)
|
|
6196
6196
|
return this;
|
|
6197
|
-
var k =
|
|
6197
|
+
var k = Zr({
|
|
6198
6198
|
onDeactivate: i.onDeactivate,
|
|
6199
6199
|
onPostDeactivate: i.onPostDeactivate,
|
|
6200
6200
|
checkCanReturnFocus: i.checkCanReturnFocus
|
|
6201
6201
|
}, w);
|
|
6202
|
-
clearTimeout(o.delayInitialFocusTimer), o.delayInitialFocusTimer = void 0, R(), o.active = !1, o.paused = !1, $(),
|
|
6202
|
+
clearTimeout(o.delayInitialFocusTimer), o.delayInitialFocusTimer = void 0, R(), o.active = !1, o.paused = !1, $(), Hr.deactivateTrap(s, c);
|
|
6203
6203
|
var N = d(k, "onDeactivate"), A = d(k, "onPostDeactivate"), U = d(k, "checkCanReturnFocus"), Z = d(k, "returnFocus", "returnFocusOnDeactivate");
|
|
6204
6204
|
N == null || N();
|
|
6205
6205
|
var z = function() {
|
|
6206
|
-
|
|
6206
|
+
Vr(function() {
|
|
6207
6207
|
Z && g(v(o.nodeFocusedBeforeActivation)), A == null || A();
|
|
6208
6208
|
});
|
|
6209
6209
|
};
|
|
@@ -6232,7 +6232,7 @@ var Zr = {
|
|
|
6232
6232
|
const Do = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
6233
6233
|
__proto__: null,
|
|
6234
6234
|
createFocusTrap: Ao
|
|
6235
|
-
}, Symbol.toStringTag, { value: "Module" })), Io = /* @__PURE__ */
|
|
6235
|
+
}, Symbol.toStringTag, { value: "Module" })), Io = /* @__PURE__ */ da(Do), Lo = /* @__PURE__ */ da(So);
|
|
6236
6236
|
function tt(t) {
|
|
6237
6237
|
"@babel/helpers - typeof";
|
|
6238
6238
|
return tt = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
|
|
@@ -6245,14 +6245,14 @@ function Bo(t, e) {
|
|
|
6245
6245
|
if (!(t instanceof e))
|
|
6246
6246
|
throw new TypeError("Cannot call a class as a function");
|
|
6247
6247
|
}
|
|
6248
|
-
function
|
|
6248
|
+
function Kr(t, e) {
|
|
6249
6249
|
for (var n = 0; n < e.length; n++) {
|
|
6250
6250
|
var r = e[n];
|
|
6251
|
-
r.enumerable = r.enumerable || !1, r.configurable = !0, "value" in r && (r.writable = !0), Object.defineProperty(t,
|
|
6251
|
+
r.enumerable = r.enumerable || !1, r.configurable = !0, "value" in r && (r.writable = !0), Object.defineProperty(t, qa(r.key), r);
|
|
6252
6252
|
}
|
|
6253
6253
|
}
|
|
6254
6254
|
function qo(t, e, n) {
|
|
6255
|
-
return e &&
|
|
6255
|
+
return e && Kr(t.prototype, e), n && Kr(t, n), Object.defineProperty(t, "prototype", { writable: !1 }), t;
|
|
6256
6256
|
}
|
|
6257
6257
|
function Uo(t, e) {
|
|
6258
6258
|
if (typeof e != "function" && e !== null)
|
|
@@ -6267,9 +6267,9 @@ function Vn(t, e) {
|
|
|
6267
6267
|
function Wo(t) {
|
|
6268
6268
|
var e = Zo();
|
|
6269
6269
|
return function() {
|
|
6270
|
-
var r =
|
|
6270
|
+
var r = Yt(t), s;
|
|
6271
6271
|
if (e) {
|
|
6272
|
-
var i =
|
|
6272
|
+
var i = Yt(this).constructor;
|
|
6273
6273
|
s = Reflect.construct(r, arguments, i);
|
|
6274
6274
|
} else
|
|
6275
6275
|
s = r.apply(this, arguments);
|
|
@@ -6300,15 +6300,15 @@ function Zo() {
|
|
|
6300
6300
|
return !1;
|
|
6301
6301
|
}
|
|
6302
6302
|
}
|
|
6303
|
-
function
|
|
6304
|
-
return
|
|
6303
|
+
function Yt(t) {
|
|
6304
|
+
return Yt = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function(n) {
|
|
6305
6305
|
return n.__proto__ || Object.getPrototypeOf(n);
|
|
6306
|
-
},
|
|
6306
|
+
}, Yt(t);
|
|
6307
6307
|
}
|
|
6308
6308
|
function Ho(t, e, n) {
|
|
6309
|
-
return e =
|
|
6309
|
+
return e = qa(e), e in t ? Object.defineProperty(t, e, { value: n, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = n, t;
|
|
6310
6310
|
}
|
|
6311
|
-
function
|
|
6311
|
+
function qa(t) {
|
|
6312
6312
|
var e = Vo(t, "string");
|
|
6313
6313
|
return tt(e) === "symbol" ? e : String(e);
|
|
6314
6314
|
}
|
|
@@ -6324,7 +6324,7 @@ function Vo(t, e) {
|
|
|
6324
6324
|
}
|
|
6325
6325
|
return (e === "string" ? String : Number)(t);
|
|
6326
6326
|
}
|
|
6327
|
-
var
|
|
6327
|
+
var Rt = Y, Q = uo, Yo = Io, Ko = Yo.createFocusTrap, Go = Lo, Qo = Go.isFocusable, rr = /* @__PURE__ */ function(t) {
|
|
6328
6328
|
Uo(n, t);
|
|
6329
6329
|
var e = Wo(n);
|
|
6330
6330
|
function n(r) {
|
|
@@ -6496,14 +6496,14 @@ var Mt = Y, Q = uo, Yo = Io, Ko = Yo.createFocusTrap, Go = Lo, Qo = Go.isFocusab
|
|
|
6496
6496
|
}, {
|
|
6497
6497
|
key: "render",
|
|
6498
6498
|
value: function() {
|
|
6499
|
-
var s = this, i = this.props.children ?
|
|
6499
|
+
var s = this, i = this.props.children ? Rt.Children.only(this.props.children) : void 0;
|
|
6500
6500
|
if (i) {
|
|
6501
|
-
if (i.type && i.type ===
|
|
6501
|
+
if (i.type && i.type === Rt.Fragment)
|
|
6502
6502
|
throw new Error("A focus-trap cannot use a Fragment as its child container. Try replacing it with a <div> element.");
|
|
6503
6503
|
var o = function(l) {
|
|
6504
6504
|
var u = s.props.containerElements;
|
|
6505
6505
|
i && (typeof i.ref == "function" ? i.ref(l) : i.ref && (i.ref.current = l)), s.focusTrapElements = u || [l];
|
|
6506
|
-
}, c =
|
|
6506
|
+
}, c = Rt.cloneElement(i, {
|
|
6507
6507
|
ref: o
|
|
6508
6508
|
});
|
|
6509
6509
|
return c;
|
|
@@ -6511,7 +6511,7 @@ var Mt = Y, Q = uo, Yo = Io, Ko = Yo.createFocusTrap, Go = Lo, Qo = Go.isFocusab
|
|
|
6511
6511
|
return null;
|
|
6512
6512
|
}
|
|
6513
6513
|
}]), n;
|
|
6514
|
-
}(
|
|
6514
|
+
}(Rt.Component), ut = typeof Element > "u" ? Function : Element;
|
|
6515
6515
|
rr.propTypes = {
|
|
6516
6516
|
active: Q.bool,
|
|
6517
6517
|
paused: Q.bool,
|
|
@@ -6567,8 +6567,8 @@ rr.defaultProps = {
|
|
|
6567
6567
|
_createFocusTrap: Ko
|
|
6568
6568
|
};
|
|
6569
6569
|
var Jo = rr;
|
|
6570
|
-
const Xo = /* @__PURE__ */
|
|
6571
|
-
const
|
|
6570
|
+
const Xo = /* @__PURE__ */ ua(Jo);
|
|
6571
|
+
const Ua = ({ element: t = "section", children: e, className: n, ...r }) => Y.createElement(t, {
|
|
6572
6572
|
className: E("modal", n),
|
|
6573
6573
|
children: typeof e == "string" ? /* @__PURE__ */ a.jsx("p", { children: e }) : e,
|
|
6574
6574
|
...r
|
|
@@ -6602,7 +6602,7 @@ const an = ({
|
|
|
6602
6602
|
}, [e]);
|
|
6603
6603
|
const b = r ? { "--max-width": `${r / 16}rem` } : {};
|
|
6604
6604
|
return /* @__PURE__ */ a.jsx("div", { className: E("overlay", { open: p }), role: "dialog", children: /* @__PURE__ */ a.jsx(
|
|
6605
|
-
|
|
6605
|
+
Ua,
|
|
6606
6606
|
{
|
|
6607
6607
|
id: t,
|
|
6608
6608
|
className: E("overlay-modal", u, {
|
|
@@ -6631,9 +6631,9 @@ const an = ({
|
|
|
6631
6631
|
d,
|
|
6632
6632
|
l && /* @__PURE__ */ a.jsxs("div", { className: "bottom", children: [
|
|
6633
6633
|
/* @__PURE__ */ a.jsx(ze, {}),
|
|
6634
|
-
/* @__PURE__ */ a.jsx(
|
|
6634
|
+
/* @__PURE__ */ a.jsx(kt, { buttons: l })
|
|
6635
6635
|
] }),
|
|
6636
|
-
o && /* @__PURE__ */ a.jsx(
|
|
6636
|
+
o && /* @__PURE__ */ a.jsx(Wt, { className: "error", children: o })
|
|
6637
6637
|
] }) })
|
|
6638
6638
|
}
|
|
6639
6639
|
) });
|
|
@@ -6704,7 +6704,7 @@ const Xl = ({ members: t }) => {
|
|
|
6704
6704
|
isOpen: e !== !1,
|
|
6705
6705
|
children: e === !1 ? "" : /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
|
|
6706
6706
|
r(e),
|
|
6707
|
-
/* @__PURE__ */ a.jsx(
|
|
6707
|
+
/* @__PURE__ */ a.jsx(xt, { children: e.text })
|
|
6708
6708
|
] }),
|
|
6709
6709
|
buttons: [
|
|
6710
6710
|
{
|
|
@@ -6750,7 +6750,7 @@ const Xl = ({ members: t }) => {
|
|
|
6750
6750
|
] });
|
|
6751
6751
|
}
|
|
6752
6752
|
if (u && !i || o)
|
|
6753
|
-
return /* @__PURE__ */ a.jsx("p", { className: "details", children: o ? n.formatMessage({ id: "card_bootcamp" }) :
|
|
6753
|
+
return /* @__PURE__ */ a.jsx("p", { className: "details", children: o ? n.formatMessage({ id: "card_bootcamp" }) : va(u) });
|
|
6754
6754
|
if (c)
|
|
6755
6755
|
return /* @__PURE__ */ a.jsx(
|
|
6756
6756
|
ht,
|
|
@@ -6777,7 +6777,7 @@ const Xl = ({ members: t }) => {
|
|
|
6777
6777
|
] });
|
|
6778
6778
|
}
|
|
6779
6779
|
return null;
|
|
6780
|
-
},
|
|
6780
|
+
}, Kt = {
|
|
6781
6781
|
communityPage: {
|
|
6782
6782
|
basePath: "/communities/",
|
|
6783
6783
|
className: "communityPage",
|
|
@@ -6850,7 +6850,7 @@ const Xl = ({ members: t }) => {
|
|
|
6850
6850
|
}, [t.registered]);
|
|
6851
6851
|
const { customLinkText: c, startDate: d, dateHasPassed: l, pill: u, slug: f } = t, m = t.contentType;
|
|
6852
6852
|
let p = "";
|
|
6853
|
-
if ((v =
|
|
6853
|
+
if ((v = Kt[m]) != null && v.gtmEvent && (p = Kt[m].gtmEvent), d && l)
|
|
6854
6854
|
return n ? /* @__PURE__ */ a.jsx(
|
|
6855
6855
|
"a",
|
|
6856
6856
|
{
|
|
@@ -6919,7 +6919,7 @@ const rc = {
|
|
|
6919
6919
|
text: 3e3,
|
|
6920
6920
|
secondaryText: 1e3,
|
|
6921
6921
|
partner: 25
|
|
6922
|
-
},
|
|
6922
|
+
}, Wa = ({
|
|
6923
6923
|
id: t = "",
|
|
6924
6924
|
card: e,
|
|
6925
6925
|
buildCardData: n,
|
|
@@ -6932,7 +6932,7 @@ const rc = {
|
|
|
6932
6932
|
const c = H(), d = Ee(Ae), l = d && typeof d.id == "string", [u, f] = J({
|
|
6933
6933
|
data: null,
|
|
6934
6934
|
isLoading: !0
|
|
6935
|
-
}), { data: m, isLoading: p } = u, g =
|
|
6935
|
+
}), { data: m, isLoading: p } = u, g = ia(() => {
|
|
6936
6936
|
n(e, l).then(($) => {
|
|
6937
6937
|
f(() => ({ data: $, isLoading: !1 }));
|
|
6938
6938
|
}).catch(() => f(($) => ({ ...$, isLoading: !1 })));
|
|
@@ -6953,14 +6953,14 @@ const rc = {
|
|
|
6953
6953
|
onClick: o
|
|
6954
6954
|
});
|
|
6955
6955
|
const { contentType: v } = m;
|
|
6956
|
-
if (!v || !
|
|
6956
|
+
if (!v || !Kt[v])
|
|
6957
6957
|
return /* @__PURE__ */ a.jsx(Se, { element: "li", className: "card-wrapper" });
|
|
6958
6958
|
const {
|
|
6959
6959
|
basePath: x = "",
|
|
6960
6960
|
className: b,
|
|
6961
6961
|
length: y,
|
|
6962
6962
|
gtmEvent: S
|
|
6963
|
-
} =
|
|
6963
|
+
} = Kt[v];
|
|
6964
6964
|
let j = m.slug ? `${x}${m.slug}` : !1;
|
|
6965
6965
|
m.slug && (m.slug.slice(0, 4) === "http" || m.slug.slice(0, 2) === "//" || m.slug.slice(0, 6) === "mailto" || m.slug.slice(0, 3) === "tel") && (j = m.slug);
|
|
6966
6966
|
const _ = { ...rc, ...y };
|
|
@@ -6985,7 +6985,7 @@ const rc = {
|
|
|
6985
6985
|
F,
|
|
6986
6986
|
/* @__PURE__ */ a.jsxs(a.Fragment, { children: [
|
|
6987
6987
|
/* @__PURE__ */ a.jsx(
|
|
6988
|
-
|
|
6988
|
+
ci,
|
|
6989
6989
|
{
|
|
6990
6990
|
className: "card-label",
|
|
6991
6991
|
contentType: v,
|
|
@@ -6999,12 +6999,12 @@ const rc = {
|
|
|
6999
6999
|
size: "small",
|
|
7000
7000
|
variant: m.dateHasPassed ? "default" : "information",
|
|
7001
7001
|
"data-testid": "date",
|
|
7002
|
-
children: m.dateHasPassed ? c.formatMessage({ id: "card_ended" }) :
|
|
7002
|
+
children: m.dateHasPassed ? c.formatMessage({ id: "card_ended" }) : Ys(m.startDate)
|
|
7003
7003
|
}
|
|
7004
7004
|
),
|
|
7005
7005
|
m.banner ? /* @__PURE__ */ a.jsxs("p", { className: "img", children: [
|
|
7006
7006
|
m.registered && /* @__PURE__ */ a.jsx(ht, { size: "small", variant: "registered", children: c.formatMessage({ id: "card_registered" }) }),
|
|
7007
|
-
/* @__PURE__ */ a.jsx(
|
|
7007
|
+
/* @__PURE__ */ a.jsx(Tt, { image: m.banner })
|
|
7008
7008
|
] }) : b === "people" ? /* @__PURE__ */ a.jsx(
|
|
7009
7009
|
Ye,
|
|
7010
7010
|
{
|
|
@@ -7014,7 +7014,7 @@ const rc = {
|
|
|
7014
7014
|
}
|
|
7015
7015
|
) : null,
|
|
7016
7016
|
m.contributors && /* @__PURE__ */ a.jsx(
|
|
7017
|
-
|
|
7017
|
+
Ea,
|
|
7018
7018
|
{
|
|
7019
7019
|
contributors: { data: m.contributors },
|
|
7020
7020
|
styling: {
|
|
@@ -7035,7 +7035,7 @@ const rc = {
|
|
|
7035
7035
|
const C = m[$];
|
|
7036
7036
|
if (!C)
|
|
7037
7037
|
return null;
|
|
7038
|
-
const w =
|
|
7038
|
+
const w = zs($);
|
|
7039
7039
|
return /* @__PURE__ */ a.jsx("p", { className: w, "data-testid": w, children: et(C, _[$]) }, $);
|
|
7040
7040
|
}),
|
|
7041
7041
|
(m == null ? void 0 : m.members) && /* @__PURE__ */ a.jsxs("span", { className: "member-information", children: [
|
|
@@ -7066,7 +7066,7 @@ const rc = {
|
|
|
7066
7066
|
const ac = ({ cards: t, cardTypes: e, className: n = "", ...r }) => /* @__PURE__ */ a.jsx("ul", { className: E("card-block", n), children: t.map((s, i) => {
|
|
7067
7067
|
const o = s.slug ? `${s.slug}-${e[i]}` : `${e[i]}-${i}`;
|
|
7068
7068
|
return /* @__PURE__ */ a.jsx(
|
|
7069
|
-
|
|
7069
|
+
Wa,
|
|
7070
7070
|
{
|
|
7071
7071
|
id: o,
|
|
7072
7072
|
card: { ...s, contentType: e[i] },
|
|
@@ -7106,7 +7106,7 @@ const En = {
|
|
|
7106
7106
|
threeCards: 769,
|
|
7107
7107
|
twoCards: 480
|
|
7108
7108
|
};
|
|
7109
|
-
let
|
|
7109
|
+
let Ft = null;
|
|
7110
7110
|
const oc = ({
|
|
7111
7111
|
id: t,
|
|
7112
7112
|
cards: e,
|
|
@@ -7123,7 +7123,7 @@ const oc = ({
|
|
|
7123
7123
|
}), { cardsPerPage: f, isLoading: m } = l, [p, g] = J({
|
|
7124
7124
|
currentPage: 0,
|
|
7125
7125
|
loadedPages: [0]
|
|
7126
|
-
}), { currentPage: v, loadedPages: x } = p, b = e.length, y = Math.ceil(b / f), S = pe(null), j =
|
|
7126
|
+
}), { currentPage: v, loadedPages: x } = p, b = e.length, y = Math.ceil(b / f), S = pe(null), j = jt(!0, !0, S == null ? void 0 : S.current);
|
|
7127
7127
|
ae(() => {
|
|
7128
7128
|
let $ = 1;
|
|
7129
7129
|
j && (j >= En.fourCards ? $ = 4 : j >= En.threeCards ? $ = 3 : j >= En.twoCards && ($ = 2), $ > b && ($ = b)), u((C) => ({
|
|
@@ -7152,12 +7152,12 @@ const oc = ({
|
|
|
7152
7152
|
loadedPages: [.../* @__PURE__ */ new Set([...x, C])]
|
|
7153
7153
|
}));
|
|
7154
7154
|
}, F = ($) => {
|
|
7155
|
-
|
|
7155
|
+
Ft = $.touches[0].clientX;
|
|
7156
7156
|
}, R = ($) => {
|
|
7157
|
-
if (
|
|
7157
|
+
if (Ft === null)
|
|
7158
7158
|
return;
|
|
7159
|
-
const C = $.touches[0].clientX, w =
|
|
7160
|
-
w > 5 ? _("next") : w < -5 && _("previous"),
|
|
7159
|
+
const C = $.touches[0].clientX, w = Ft - C;
|
|
7160
|
+
w > 5 ? _("next") : w < -5 && _("previous"), Ft = null;
|
|
7161
7161
|
}, X = {
|
|
7162
7162
|
"--width": `${j || 0}px`,
|
|
7163
7163
|
"--total-cards": b,
|
|
@@ -7165,7 +7165,7 @@ const oc = ({
|
|
|
7165
7165
|
"--page": v
|
|
7166
7166
|
};
|
|
7167
7167
|
if (m)
|
|
7168
|
-
return /* @__PURE__ */ a.jsx(
|
|
7168
|
+
return /* @__PURE__ */ a.jsx(ja, { layout: `carousel${s ? "-with-title" : ""}` });
|
|
7169
7169
|
const B = ($, C) => {
|
|
7170
7170
|
var k;
|
|
7171
7171
|
let w = null;
|
|
@@ -7190,7 +7190,7 @@ const oc = ({
|
|
|
7190
7190
|
children: e.map(($, C) => {
|
|
7191
7191
|
let w = B($, C);
|
|
7192
7192
|
return w && sc(C, f, v, x) ? /* @__PURE__ */ a.jsx(
|
|
7193
|
-
|
|
7193
|
+
Wa,
|
|
7194
7194
|
{
|
|
7195
7195
|
id: w,
|
|
7196
7196
|
card: { ...$, contentType: n[C] },
|
|
@@ -7270,7 +7270,7 @@ const oc = ({
|
|
|
7270
7270
|
const u = i ? window.btoa(i) : `carousel-${l}`, f = l === t.length - 1;
|
|
7271
7271
|
return e ? /* @__PURE__ */ a.jsxs(yt, { children: [
|
|
7272
7272
|
/* @__PURE__ */ a.jsx(
|
|
7273
|
-
|
|
7273
|
+
ja,
|
|
7274
7274
|
{
|
|
7275
7275
|
layout: `carousel${i ? "-with-title" : ""}`,
|
|
7276
7276
|
"data-testid": "carousel-placeholder"
|
|
@@ -7291,7 +7291,7 @@ const oc = ({
|
|
|
7291
7291
|
] }, `carousel-${u}`);
|
|
7292
7292
|
}
|
|
7293
7293
|
);
|
|
7294
|
-
const Sn = "joinCommunityButton",
|
|
7294
|
+
const Sn = "joinCommunityButton", za = ({
|
|
7295
7295
|
isMember: t = !1,
|
|
7296
7296
|
isShort: e = !1,
|
|
7297
7297
|
functions: { join: n, leave: r } = { join: () => {
|
|
@@ -7342,7 +7342,7 @@ const Cn = "communityDetails_", tu = ({
|
|
|
7342
7342
|
!f && /* @__PURE__ */ a.jsx("p", { className: "text-small", children: /* @__PURE__ */ a.jsx("a", { href: `/communities/${n}/members`, children: c.formatMessage({ id: `${Cn}viewAll` }) }) })
|
|
7343
7343
|
] }),
|
|
7344
7344
|
/* @__PURE__ */ a.jsx(
|
|
7345
|
-
|
|
7345
|
+
Ea,
|
|
7346
7346
|
{
|
|
7347
7347
|
contributors: {
|
|
7348
7348
|
total: r,
|
|
@@ -7357,7 +7357,7 @@ const Cn = "communityDetails_", tu = ({
|
|
|
7357
7357
|
}
|
|
7358
7358
|
)
|
|
7359
7359
|
] }),
|
|
7360
|
-
/* @__PURE__ */ a.jsx(
|
|
7360
|
+
/* @__PURE__ */ a.jsx(za, { isMember: e, functions: { ...o } }),
|
|
7361
7361
|
e && /* @__PURE__ */ a.jsx(
|
|
7362
7362
|
se,
|
|
7363
7363
|
{
|
|
@@ -7442,7 +7442,7 @@ const ru = ({
|
|
|
7442
7442
|
urlForRouter: `/${s.split("/").slice(2).join("/")}`
|
|
7443
7443
|
} : s;
|
|
7444
7444
|
};
|
|
7445
|
-
const
|
|
7445
|
+
const Ot = "languageSwitcher_", au = ({
|
|
7446
7446
|
currentLanguage: t,
|
|
7447
7447
|
isOriginalLanguage: e = !1,
|
|
7448
7448
|
isHumanTranslation: n = !1,
|
|
@@ -7454,7 +7454,7 @@ const Ft = "languageSwitcher_", au = ({
|
|
|
7454
7454
|
className: d = ""
|
|
7455
7455
|
}) => {
|
|
7456
7456
|
const l = H(), { updateLanguage: u = () => {
|
|
7457
|
-
} } = Ee(
|
|
7457
|
+
} } = Ee(_a), [f, m] = J(t);
|
|
7458
7458
|
if (ae(() => {
|
|
7459
7459
|
t !== f && m(t);
|
|
7460
7460
|
}, [t]), !r || !Object.values(r).some(
|
|
@@ -7464,7 +7464,7 @@ const Ft = "languageSwitcher_", au = ({
|
|
|
7464
7464
|
const g = Object.keys(r), v = f !== t;
|
|
7465
7465
|
return /* @__PURE__ */ a.jsxs("div", { className: E("language-switcher text-small", o, d), children: [
|
|
7466
7466
|
/* @__PURE__ */ a.jsxs("nav", { children: [
|
|
7467
|
-
o !== "short" && /* @__PURE__ */ a.jsx("p", { children: c || l.formatMessage({ id: `${
|
|
7467
|
+
o !== "short" && /* @__PURE__ */ a.jsx("p", { children: c || l.formatMessage({ id: `${Ot}label` }) }),
|
|
7468
7468
|
/* @__PURE__ */ a.jsx("ul", { children: g.map((x) => {
|
|
7469
7469
|
var S;
|
|
7470
7470
|
if (!gn[x])
|
|
@@ -7473,7 +7473,7 @@ const Ft = "languageSwitcher_", au = ({
|
|
|
7473
7473
|
let y = { className: x };
|
|
7474
7474
|
if (f === x)
|
|
7475
7475
|
y["aria-label"] = l.formatMessage(
|
|
7476
|
-
{ id: `${
|
|
7476
|
+
{ id: `${Ot}selected` },
|
|
7477
7477
|
{ language: gn[x] }
|
|
7478
7478
|
);
|
|
7479
7479
|
else {
|
|
@@ -7492,7 +7492,7 @@ const Ft = "languageSwitcher_", au = ({
|
|
|
7492
7492
|
return /* @__PURE__ */ a.jsx("li", { children: /* @__PURE__ */ a.jsx(at, { ...y, fallbackElement: "span", children: gn[x] }) }, x);
|
|
7493
7493
|
}) }),
|
|
7494
7494
|
o !== "short" && !v && /* @__PURE__ */ a.jsx("p", { children: l.formatMessage({
|
|
7495
|
-
id: `${
|
|
7495
|
+
id: `${Ot}translation_${e ? "original" : n ? "human" : "machine"}`
|
|
7496
7496
|
}) })
|
|
7497
7497
|
] }),
|
|
7498
7498
|
o !== "short" && !v && !e && !n && /* @__PURE__ */ a.jsx("small", {
|
|
@@ -7500,7 +7500,7 @@ const Ft = "languageSwitcher_", au = ({
|
|
|
7500
7500
|
// @ts-ignore
|
|
7501
7501
|
// `values` are throwing a type error: https://github.com/formatjs/formatjs/issues/3633
|
|
7502
7502
|
children: l.formatMessage(
|
|
7503
|
-
{ id: `${
|
|
7503
|
+
{ id: `${Ot}disclaimer` },
|
|
7504
7504
|
{
|
|
7505
7505
|
email: ft.support,
|
|
7506
7506
|
link: (x) => {
|
|
@@ -7512,7 +7512,7 @@ const Ft = "languageSwitcher_", au = ({
|
|
|
7512
7512
|
})
|
|
7513
7513
|
] });
|
|
7514
7514
|
};
|
|
7515
|
-
const Nn =
|
|
7515
|
+
const Nn = Ts({ locale: "en", messages: rt }), sn = ({
|
|
7516
7516
|
hasNextPage: t = !0,
|
|
7517
7517
|
loadNextPage: e = () => {
|
|
7518
7518
|
},
|
|
@@ -7554,7 +7554,7 @@ const Nn = ks({ locale: "en", messages: rt }), sn = ({
|
|
|
7554
7554
|
}
|
|
7555
7555
|
) : c.endOfFeed && (!u || u != null && u.includes("Cannot read items")) ? /* @__PURE__ */ a.jsx("p", { children: c.endOfFeed }) : u && /* @__PURE__ */ a.jsx("p", { className: "error", children: c.error }) });
|
|
7556
7556
|
};
|
|
7557
|
-
const
|
|
7557
|
+
const Za = ({
|
|
7558
7558
|
variant: t = "default",
|
|
7559
7559
|
version: e = "default",
|
|
7560
7560
|
className: n = "",
|
|
@@ -7568,7 +7568,7 @@ const za = ({
|
|
|
7568
7568
|
children: /* @__PURE__ */ a.jsx(be, { children: /* @__PURE__ */ a.jsx(ye, { id: "apolitical" }) })
|
|
7569
7569
|
}
|
|
7570
7570
|
) });
|
|
7571
|
-
let
|
|
7571
|
+
let At = !1;
|
|
7572
7572
|
const lc = ({
|
|
7573
7573
|
element: t = "div",
|
|
7574
7574
|
id: e = "more-menu",
|
|
@@ -7606,10 +7606,10 @@ const lc = ({
|
|
|
7606
7606
|
c(!1), typeof u == "function" && u(x);
|
|
7607
7607
|
},
|
|
7608
7608
|
onFocus: () => {
|
|
7609
|
-
|
|
7609
|
+
At && (clearTimeout(At), At = !1);
|
|
7610
7610
|
},
|
|
7611
7611
|
onBlur: () => {
|
|
7612
|
-
|
|
7612
|
+
At = setTimeout(() => {
|
|
7613
7613
|
c(!1);
|
|
7614
7614
|
}, 100);
|
|
7615
7615
|
}
|
|
@@ -7842,7 +7842,7 @@ const hc = {
|
|
|
7842
7842
|
className: r = "",
|
|
7843
7843
|
children: s
|
|
7844
7844
|
}) => {
|
|
7845
|
-
const i =
|
|
7845
|
+
const i = jt(!0);
|
|
7846
7846
|
let o = s;
|
|
7847
7847
|
return Y.Children.count(s) === 1 && (o = Y.Children.toArray(s)[0], o.props && (o = o.props.children)), /* @__PURE__ */ a.jsx(
|
|
7848
7848
|
"section",
|
|
@@ -7901,7 +7901,7 @@ const Mn = "cookieBanner_", Rn = [
|
|
|
7901
7901
|
"apolitical-performance-cookie-consent",
|
|
7902
7902
|
"functional-cookie-consent"
|
|
7903
7903
|
], Fn = new Date(Date.now() + 12 * 30 * 24 * 60 * 60 * 1e3), vc = () => {
|
|
7904
|
-
const t = H(), [e, n, r] =
|
|
7904
|
+
const t = H(), [e, n, r] = ca(Rn), [s, i] = J(
|
|
7905
7905
|
!e["apol-cookie-banner"]
|
|
7906
7906
|
), o = () => {
|
|
7907
7907
|
Rn.forEach((u) => {
|
|
@@ -7946,7 +7946,7 @@ const Mn = "cookieBanner_", Rn = [
|
|
|
7946
7946
|
}), /* @__PURE__ */ a.jsxs("aside", { id: "cookie-banner", className: "text-medium", children: [
|
|
7947
7947
|
/* @__PURE__ */ a.jsx("h6", { children: t.formatMessage({ id: `${Mn}title` }) }),
|
|
7948
7948
|
/* @__PURE__ */ a.jsx("p", { children: t.formatMessage({ id: `${Mn}text` }) }),
|
|
7949
|
-
/* @__PURE__ */ a.jsx(
|
|
7949
|
+
/* @__PURE__ */ a.jsx(kt, { buttons: l })
|
|
7950
7950
|
] });
|
|
7951
7951
|
}, Re = {
|
|
7952
7952
|
platform: {
|
|
@@ -8046,7 +8046,7 @@ const Mn = "cookieBanner_", Rn = [
|
|
|
8046
8046
|
facebook: { href: "https://www.facebook.com/apoliticalco" }
|
|
8047
8047
|
}
|
|
8048
8048
|
};
|
|
8049
|
-
const Xe = "footer_",
|
|
8049
|
+
const Xe = "footer_", Gt = "SiteFooter", Gr = ({ group: t }) => {
|
|
8050
8050
|
const e = Re[t].order || [];
|
|
8051
8051
|
let n = !1;
|
|
8052
8052
|
return "text" in Re[t] && (n = Re[t].text), /* @__PURE__ */ a.jsxs(yt, { children: [
|
|
@@ -8060,7 +8060,7 @@ const Xe = "footer_", Kt = "SiteFooter", Kr = ({ group: t }) => {
|
|
|
8060
8060
|
{
|
|
8061
8061
|
href: s,
|
|
8062
8062
|
className: "gtm-trackable",
|
|
8063
|
-
"data-gtm-event-context":
|
|
8063
|
+
"data-gtm-event-context": Gt,
|
|
8064
8064
|
"data-gtm-event-type": i,
|
|
8065
8065
|
...o,
|
|
8066
8066
|
children: /* @__PURE__ */ a.jsx(ye, { id: `${Xe}${t}_${r}` })
|
|
@@ -8082,7 +8082,7 @@ const Xe = "footer_", Kt = "SiteFooter", Kr = ({ group: t }) => {
|
|
|
8082
8082
|
{
|
|
8083
8083
|
href: `mailto:${n[r].email}`,
|
|
8084
8084
|
className: "gtm-trackable",
|
|
8085
|
-
"data-gtm-event-context":
|
|
8085
|
+
"data-gtm-event-context": Gt,
|
|
8086
8086
|
"data-gtm-event-type": n[r].gtmType,
|
|
8087
8087
|
children: n[r].email
|
|
8088
8088
|
}
|
|
@@ -8090,21 +8090,21 @@ const Xe = "footer_", Kt = "SiteFooter", Kr = ({ group: t }) => {
|
|
|
8090
8090
|
] })
|
|
8091
8091
|
] }, `dl-${t}-${r}`)) })
|
|
8092
8092
|
] }, t);
|
|
8093
|
-
},
|
|
8093
|
+
}, Ha = () => /* @__PURE__ */ a.jsx("div", { id: "footer", children: /* @__PURE__ */ a.jsxs("div", { className: "wrapper", children: [
|
|
8094
8094
|
/* @__PURE__ */ a.jsx(Gn, { element: "hr" }),
|
|
8095
8095
|
/* @__PURE__ */ a.jsx(
|
|
8096
|
-
|
|
8096
|
+
Za,
|
|
8097
8097
|
{
|
|
8098
8098
|
variant: "inverted",
|
|
8099
8099
|
version: "full",
|
|
8100
8100
|
className: "gtm-trackable",
|
|
8101
|
-
"data-gtm-event-context":
|
|
8101
|
+
"data-gtm-event-context": Gt,
|
|
8102
8102
|
"data-gtm-event-type": "logo-homepage-link"
|
|
8103
8103
|
}
|
|
8104
8104
|
),
|
|
8105
8105
|
/* @__PURE__ */ a.jsx("footer", { children: ["platform", "community", "company", "contact"].map((t) => /* @__PURE__ */ a.jsxs("div", { className: "group", children: [
|
|
8106
|
-
/* @__PURE__ */ a.jsx(
|
|
8107
|
-
Object.keys(Re[t]).includes("child") && /* @__PURE__ */ a.jsx(
|
|
8106
|
+
/* @__PURE__ */ a.jsx(Gr, { group: t }),
|
|
8107
|
+
Object.keys(Re[t]).includes("child") && /* @__PURE__ */ a.jsx(Gr, { group: Re[t].child })
|
|
8108
8108
|
] }, t)) }),
|
|
8109
8109
|
/* @__PURE__ */ a.jsx("hr", {}),
|
|
8110
8110
|
/* @__PURE__ */ a.jsxs("div", { className: "sub-footer", children: [
|
|
@@ -8117,7 +8117,7 @@ const Xe = "footer_", Kt = "SiteFooter", Kr = ({ group: t }) => {
|
|
|
8117
8117
|
target: "_blank",
|
|
8118
8118
|
rel: "noopener noreferrer",
|
|
8119
8119
|
className: "gtm-trackable",
|
|
8120
|
-
"data-gtm-event-context":
|
|
8120
|
+
"data-gtm-event-context": Gt,
|
|
8121
8121
|
"data-gtm-event-type": "social-click",
|
|
8122
8122
|
children: /* @__PURE__ */ a.jsx("span", { className: "hidden", children: /* @__PURE__ */ a.jsx(ye, { id: `${Xe}social_${t}` }) })
|
|
8123
8123
|
}
|
|
@@ -8177,7 +8177,7 @@ const Xe = "footer_", Kt = "SiteFooter", Kr = ({ group: t }) => {
|
|
|
8177
8177
|
return t[r];
|
|
8178
8178
|
if (!e.includes("."))
|
|
8179
8179
|
continue;
|
|
8180
|
-
const s =
|
|
8180
|
+
const s = la(t[r], e);
|
|
8181
8181
|
if (!(typeof s > "u") && (!n || s[e] && s[e].includes(n) || s.value && s.value.includes(n) || s.toString().includes(n)))
|
|
8182
8182
|
return t[r];
|
|
8183
8183
|
}
|
|
@@ -8235,7 +8235,7 @@ const Xe = "footer_", Kt = "SiteFooter", Kr = ({ group: t }) => {
|
|
|
8235
8235
|
}, 250);
|
|
8236
8236
|
}
|
|
8237
8237
|
}
|
|
8238
|
-
},
|
|
8238
|
+
}, Qt = {
|
|
8239
8239
|
order: ["home", "topics", "partners", "account"],
|
|
8240
8240
|
home: {
|
|
8241
8241
|
href: "/home/",
|
|
@@ -8315,7 +8315,7 @@ const Xe = "footer_", Kt = "SiteFooter", Kr = ({ group: t }) => {
|
|
|
8315
8315
|
props: { variant: "primary" }
|
|
8316
8316
|
}
|
|
8317
8317
|
}
|
|
8318
|
-
},
|
|
8318
|
+
}, Jt = ({
|
|
8319
8319
|
id: t,
|
|
8320
8320
|
isLoggedIn: e = !1,
|
|
8321
8321
|
isDesktopVersion: n = !1,
|
|
@@ -8324,7 +8324,7 @@ const Xe = "footer_", Kt = "SiteFooter", Kr = ({ group: t }) => {
|
|
|
8324
8324
|
},
|
|
8325
8325
|
doTrack: i = null
|
|
8326
8326
|
}) => {
|
|
8327
|
-
const o = H(), c =
|
|
8327
|
+
const o = H(), c = la(Qt, t);
|
|
8328
8328
|
if (!c || c.onlyShow && (c.onlyShow === "logged-in" && !e || c.onlyShow === "logged-out" && e))
|
|
8329
8329
|
return null;
|
|
8330
8330
|
const d = "doTrack" in c, l = i === null ? d ? c.doTrack : !0 : i, u = t.includes("buttons.");
|
|
@@ -8413,7 +8413,7 @@ const Xe = "footer_", Kt = "SiteFooter", Kr = ({ group: t }) => {
|
|
|
8413
8413
|
children: [
|
|
8414
8414
|
o.formatMessage({ id: `${f}_${y}` }),
|
|
8415
8415
|
/* @__PURE__ */ a.jsx("ul", { children: c[y].order.map((j) => /* @__PURE__ */ a.jsx(
|
|
8416
|
-
|
|
8416
|
+
Jt,
|
|
8417
8417
|
{
|
|
8418
8418
|
id: `${t}.${y}.${j}`,
|
|
8419
8419
|
...S
|
|
@@ -8424,7 +8424,7 @@ const Xe = "footer_", Kt = "SiteFooter", Kr = ({ group: t }) => {
|
|
|
8424
8424
|
},
|
|
8425
8425
|
y
|
|
8426
8426
|
) : /* @__PURE__ */ a.jsx(
|
|
8427
|
-
|
|
8427
|
+
Jt,
|
|
8428
8428
|
{
|
|
8429
8429
|
id: `${t}.${y}`,
|
|
8430
8430
|
...S
|
|
@@ -8437,11 +8437,11 @@ const Xe = "footer_", Kt = "SiteFooter", Kr = ({ group: t }) => {
|
|
|
8437
8437
|
t
|
|
8438
8438
|
);
|
|
8439
8439
|
};
|
|
8440
|
-
const bc = { height: 67, height_desktop: 83 },
|
|
8441
|
-
const e = H(), n = Ee(Ae), r =
|
|
8440
|
+
const bc = { height: 67, height_desktop: 83 }, Va = ({ showNavigation: t = !0 }) => {
|
|
8441
|
+
const e = H(), n = Ee(Ae), r = jt(!0, !0), s = n && typeof n.id == "string", i = wt(
|
|
8442
8442
|
() => fe.getIsDesktopVersion(s, r),
|
|
8443
8443
|
[s, r]
|
|
8444
|
-
), [o, c] = Yn(
|
|
8444
|
+
), [o, c] = Yn(pa, {
|
|
8445
8445
|
headerIsVisible: !0,
|
|
8446
8446
|
menus: { navigation: !1, search: !1, account: !1 },
|
|
8447
8447
|
focusElements: {
|
|
@@ -8449,7 +8449,7 @@ const bc = { height: 67, height_desktop: 83 }, Ha = ({ showNavigation: t = !0 })
|
|
|
8449
8449
|
account: { desktop: !1, default: !1 }
|
|
8450
8450
|
}
|
|
8451
8451
|
}), { headerIsVisible: d, menus: l, focusElements: u } = o;
|
|
8452
|
-
|
|
8452
|
+
Us({
|
|
8453
8453
|
scrollPosition: bc[`height${i.navigation ? "_desktop" : ""}`],
|
|
8454
8454
|
callbacks: {
|
|
8455
8455
|
scrollUp: () => {
|
|
@@ -8498,7 +8498,7 @@ const bc = { height: 67, height_desktop: 83 }, Ha = ({ showNavigation: t = !0 })
|
|
|
8498
8498
|
children: e.formatMessage({ id: "header_skip" })
|
|
8499
8499
|
}
|
|
8500
8500
|
),
|
|
8501
|
-
/* @__PURE__ */ a.jsx(
|
|
8501
|
+
/* @__PURE__ */ a.jsx(Za, {}),
|
|
8502
8502
|
t && /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
|
|
8503
8503
|
!i.navigation && /* @__PURE__ */ a.jsx(
|
|
8504
8504
|
"button",
|
|
@@ -8525,8 +8525,8 @@ const bc = { height: 67, height_desktop: 83 }, Ha = ({ showNavigation: t = !0 })
|
|
|
8525
8525
|
hidden: i.navigation || l.account ? !1 : !l.navigation,
|
|
8526
8526
|
role: "menu",
|
|
8527
8527
|
"data-showing": !i.navigation && l.account ? "account" : "default",
|
|
8528
|
-
children:
|
|
8529
|
-
|
|
8528
|
+
children: Qt.order.map((p) => /* @__PURE__ */ a.jsx(
|
|
8529
|
+
Jt,
|
|
8530
8530
|
{
|
|
8531
8531
|
id: p,
|
|
8532
8532
|
isLoggedIn: s,
|
|
@@ -8597,7 +8597,7 @@ const bc = { height: 67, height_desktop: 83 }, Ha = ({ showNavigation: t = !0 })
|
|
|
8597
8597
|
)
|
|
8598
8598
|
]
|
|
8599
8599
|
}
|
|
8600
|
-
) : /* @__PURE__ */ a.jsx("ul", { className: "sign-in-buttons", children:
|
|
8600
|
+
) : /* @__PURE__ */ a.jsx("ul", { className: "sign-in-buttons", children: Qt.buttons.order.map((p) => /* @__PURE__ */ a.jsx(Jt, { id: `buttons.${p}` }, p)) })
|
|
8601
8601
|
] })
|
|
8602
8602
|
]
|
|
8603
8603
|
}
|
|
@@ -8616,7 +8616,7 @@ const bc = { height: 67, height_desktop: 83 }, Ha = ({ showNavigation: t = !0 })
|
|
|
8616
8616
|
const yc = () => {
|
|
8617
8617
|
const t = H();
|
|
8618
8618
|
return /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
|
|
8619
|
-
/* @__PURE__ */ a.jsx(
|
|
8619
|
+
/* @__PURE__ */ a.jsx(Va, {}),
|
|
8620
8620
|
/* @__PURE__ */ a.jsx("div", { id: "content", children: /* @__PURE__ */ a.jsx(
|
|
8621
8621
|
He,
|
|
8622
8622
|
{
|
|
@@ -8624,7 +8624,7 @@ const yc = () => {
|
|
|
8624
8624
|
text: t.formatMessage({ id: "pageLayout_error" })
|
|
8625
8625
|
}
|
|
8626
8626
|
) }),
|
|
8627
|
-
/* @__PURE__ */ a.jsx(
|
|
8627
|
+
/* @__PURE__ */ a.jsx(Ha, {})
|
|
8628
8628
|
] });
|
|
8629
8629
|
}, _c = ({
|
|
8630
8630
|
children: t,
|
|
@@ -8640,22 +8640,22 @@ const yc = () => {
|
|
|
8640
8640
|
variant: f = "default",
|
|
8641
8641
|
circle: m = "default",
|
|
8642
8642
|
modal: p = "default"
|
|
8643
|
-
} = i, g =
|
|
8643
|
+
} = i, g = Bs();
|
|
8644
8644
|
ae(() => {
|
|
8645
8645
|
window.scrollTo(0, 0);
|
|
8646
8646
|
}, [g]);
|
|
8647
|
-
const v =
|
|
8647
|
+
const v = Bt(t, { locale: c }), x = Bt(e, {
|
|
8648
8648
|
locale: c
|
|
8649
|
-
}), b =
|
|
8649
|
+
}), b = Bt(n, {
|
|
8650
8650
|
locale: c
|
|
8651
8651
|
}), y = {};
|
|
8652
|
-
return u !== "default" && (y[u] = !0), f !== "default" && (y[f] = !0), m !== "default" && (y[m] = !0), /* @__PURE__ */ a.jsx(
|
|
8652
|
+
return u !== "default" && (y[u] = !0), f !== "default" && (y[f] = !0), m !== "default" && (y[m] = !0), /* @__PURE__ */ a.jsx(Ms, { onError: r, fallback: /* @__PURE__ */ a.jsx(yc, {}), children: /* @__PURE__ */ a.jsx(ws, { fallback: null, children: /* @__PURE__ */ a.jsxs(
|
|
8653
8653
|
"div",
|
|
8654
8654
|
{
|
|
8655
8655
|
id: "wrapper",
|
|
8656
8656
|
className: E(o, y, { "has-footer": l }),
|
|
8657
8657
|
children: [
|
|
8658
|
-
/* @__PURE__ */ a.jsx(
|
|
8658
|
+
/* @__PURE__ */ a.jsx(Va, { showNavigation: d }),
|
|
8659
8659
|
/* @__PURE__ */ a.jsxs("section", { id: "content-wrapper", children: [
|
|
8660
8660
|
x && /* @__PURE__ */ a.jsx(
|
|
8661
8661
|
"div",
|
|
@@ -8666,19 +8666,19 @@ const yc = () => {
|
|
|
8666
8666
|
children: x
|
|
8667
8667
|
}
|
|
8668
8668
|
),
|
|
8669
|
-
Y.createElement(u === "bold" ?
|
|
8669
|
+
Y.createElement(u === "bold" ? Ua : "div", {
|
|
8670
8670
|
id: "content",
|
|
8671
8671
|
children: v,
|
|
8672
8672
|
className: E({ "large-modal": p === "large" })
|
|
8673
8673
|
})
|
|
8674
8674
|
] }),
|
|
8675
8675
|
b && /* @__PURE__ */ a.jsx("div", { className: "additional-content appended", children: b }),
|
|
8676
|
-
l && /* @__PURE__ */ a.jsx(
|
|
8676
|
+
l && /* @__PURE__ */ a.jsx(Ha, {}),
|
|
8677
8677
|
/* @__PURE__ */ a.jsx(vc, {})
|
|
8678
8678
|
]
|
|
8679
8679
|
}
|
|
8680
8680
|
) }) });
|
|
8681
|
-
},
|
|
8681
|
+
}, Qr = {
|
|
8682
8682
|
default: "tags_",
|
|
8683
8683
|
headerTopics: "header_topics_topics_"
|
|
8684
8684
|
}, On = {
|
|
@@ -8701,12 +8701,12 @@ const yc = () => {
|
|
|
8701
8701
|
getTagDetails: (t) => {
|
|
8702
8702
|
if (t.includes("topic_")) {
|
|
8703
8703
|
if (t = On.topic[t.replace("topic_", "")], t) {
|
|
8704
|
-
const e =
|
|
8705
|
-
return e ? { id: t, href: e, text: `${
|
|
8704
|
+
const e = Qt.topics.topics[t].href;
|
|
8705
|
+
return e ? { id: t, href: e, text: `${Qr.headerTopics}${t}` } : null;
|
|
8706
8706
|
}
|
|
8707
8707
|
return null;
|
|
8708
8708
|
}
|
|
8709
|
-
return On[t] ? (t = On[t], { id: t, text: `${
|
|
8709
|
+
return On[t] ? (t = On[t], { id: t, text: `${Qr.default}${t}` }) : null;
|
|
8710
8710
|
}
|
|
8711
8711
|
};
|
|
8712
8712
|
const lu = ({
|
|
@@ -8815,7 +8815,7 @@ const du = ({
|
|
|
8815
8815
|
}
|
|
8816
8816
|
),
|
|
8817
8817
|
/* @__PURE__ */ a.jsx(
|
|
8818
|
-
|
|
8818
|
+
xa,
|
|
8819
8819
|
{
|
|
8820
8820
|
progress: l,
|
|
8821
8821
|
styling: {
|
|
@@ -8846,7 +8846,7 @@ const jc = ({
|
|
|
8846
8846
|
type: s,
|
|
8847
8847
|
children: i
|
|
8848
8848
|
}) => {
|
|
8849
|
-
const o = H(), c = Qn(`lessonType_${s}`) ? o.formatMessage({ id: `lessonType_${s}` }) :
|
|
8849
|
+
const o = H(), c = Qn(`lessonType_${s}`) ? o.formatMessage({ id: `lessonType_${s}` }) : Hs(s || "");
|
|
8850
8850
|
return /* @__PURE__ */ a.jsxs("small", { className: E("content-type", { [t]: t !== "default" }), children: [
|
|
8851
8851
|
/* @__PURE__ */ a.jsx("span", { className: E("type", n), children: c }),
|
|
8852
8852
|
" ",
|
|
@@ -8914,10 +8914,10 @@ const fu = ({
|
|
|
8914
8914
|
"li",
|
|
8915
8915
|
{
|
|
8916
8916
|
className: E({
|
|
8917
|
-
article: x ===
|
|
8918
|
-
discussion: x ===
|
|
8919
|
-
quiz: x ===
|
|
8920
|
-
completed: g && x ===
|
|
8917
|
+
article: x === St.ARTICLE,
|
|
8918
|
+
discussion: x === St.DISCUSSION,
|
|
8919
|
+
quiz: x === St.QUIZ,
|
|
8920
|
+
completed: g && x === St.ARTICLE,
|
|
8921
8921
|
locked: !B
|
|
8922
8922
|
}),
|
|
8923
8923
|
...$,
|
|
@@ -8927,7 +8927,7 @@ const fu = ({
|
|
|
8927
8927
|
href: B ? `/microcourses/en/${c}/${_}` : void 0,
|
|
8928
8928
|
fallbackElement: "span",
|
|
8929
8929
|
className: "inner",
|
|
8930
|
-
gtmContext: `MicrocourseOutline${
|
|
8930
|
+
gtmContext: `MicrocourseOutline${Zs(R)}`,
|
|
8931
8931
|
gtmType: "article-click",
|
|
8932
8932
|
children: /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
|
|
8933
8933
|
/* @__PURE__ */ a.jsx(
|
|
@@ -8987,7 +8987,7 @@ const mu = ({
|
|
|
8987
8987
|
}
|
|
8988
8988
|
);
|
|
8989
8989
|
};
|
|
8990
|
-
let
|
|
8990
|
+
let Dt = null;
|
|
8991
8991
|
const we = "discussion_form_", ar = ({
|
|
8992
8992
|
content: t = { type: "response", slugs: {} },
|
|
8993
8993
|
userHasPermissions: e = !0,
|
|
@@ -9058,7 +9058,7 @@ const we = "discussion_form_", ar = ({
|
|
|
9058
9058
|
var A;
|
|
9059
9059
|
if (k.preventDefault(), k.stopPropagation(), !f || !f.id || !e || R)
|
|
9060
9060
|
return;
|
|
9061
|
-
|
|
9061
|
+
Dt && clearTimeout(Dt), b("submitting");
|
|
9062
9062
|
const N = window.location.pathname;
|
|
9063
9063
|
try {
|
|
9064
9064
|
let U;
|
|
@@ -9088,7 +9088,7 @@ const we = "discussion_form_", ar = ({
|
|
|
9088
9088
|
default:
|
|
9089
9089
|
break;
|
|
9090
9090
|
}
|
|
9091
|
-
await
|
|
9091
|
+
await Gs(1e3), d.callback && await d.callback(U), Dt = setTimeout(() => {
|
|
9092
9092
|
p(""), b("submitted");
|
|
9093
9093
|
const Z = new Event("discussionFormSubmitted");
|
|
9094
9094
|
document.dispatchEvent(Z), F();
|
|
@@ -9109,10 +9109,10 @@ const we = "discussion_form_", ar = ({
|
|
|
9109
9109
|
) : Z != null && Z.message.includes("400") && (z = `${we}error`), v(z), F();
|
|
9110
9110
|
}
|
|
9111
9111
|
}, F = () => {
|
|
9112
|
-
|
|
9112
|
+
Dt = setTimeout(() => {
|
|
9113
9113
|
v(!1), b(!1);
|
|
9114
9114
|
}, 5e3);
|
|
9115
|
-
}, R = !m || !
|
|
9115
|
+
}, R = !m || !ri(m), X = x === "submitting", B = [];
|
|
9116
9116
|
return (n.isEditing && !X || c.cancel) && B.push({
|
|
9117
9117
|
variant: "secondary",
|
|
9118
9118
|
size: { mobile: "small", 600: "medium" },
|
|
@@ -9162,7 +9162,7 @@ const we = "discussion_form_", ar = ({
|
|
|
9162
9162
|
),
|
|
9163
9163
|
/* @__PURE__ */ a.jsx(be, { element: "label", showOnFocus: !1, htmlFor: `${j}-input`, children: Ne(u.formatMessage, `${we}label`, t.type, "action") }),
|
|
9164
9164
|
/* @__PURE__ */ a.jsx(
|
|
9165
|
-
|
|
9165
|
+
Rs,
|
|
9166
9166
|
{
|
|
9167
9167
|
ref: r,
|
|
9168
9168
|
id: `${j}-input`,
|
|
@@ -9196,9 +9196,9 @@ const we = "discussion_form_", ar = ({
|
|
|
9196
9196
|
}
|
|
9197
9197
|
)
|
|
9198
9198
|
}) }),
|
|
9199
|
-
/* @__PURE__ */ a.jsx(
|
|
9200
|
-
x === "submitted" && n.showSuccessMessage && /* @__PURE__ */ a.jsx(
|
|
9201
|
-
g && /* @__PURE__ */ a.jsx(
|
|
9199
|
+
/* @__PURE__ */ a.jsx(kt, { buttons: B }),
|
|
9200
|
+
x === "submitted" && n.showSuccessMessage && /* @__PURE__ */ a.jsx(Wt, { className: "success", "data-testid": "success", children: Ne(u.formatMessage, `${we}success`, t.type, "action") }),
|
|
9201
|
+
g && /* @__PURE__ */ a.jsx(Wt, { id: "error-message", className: "error", "data-testid": "error", children: c.error ? c.error : typeof g == "string" ? g.includes(" ") ? g : u.formatMessage(
|
|
9202
9202
|
{ id: g },
|
|
9203
9203
|
{
|
|
9204
9204
|
action: u.formatMessage({
|
|
@@ -9210,7 +9210,7 @@ const we = "discussion_form_", ar = ({
|
|
|
9210
9210
|
]
|
|
9211
9211
|
}
|
|
9212
9212
|
);
|
|
9213
|
-
},
|
|
9213
|
+
}, Ya = ({
|
|
9214
9214
|
form: t,
|
|
9215
9215
|
membershipRequiredToPost: { isMember: e, required: n, join: r, leave: s, notMemberStateText: i }
|
|
9216
9216
|
}) => {
|
|
@@ -9221,7 +9221,7 @@ const we = "discussion_form_", ar = ({
|
|
|
9221
9221
|
text: i,
|
|
9222
9222
|
button: {
|
|
9223
9223
|
breakpoints: { mobile: !0, 901: !1 },
|
|
9224
|
-
component: /* @__PURE__ */ a.jsx(
|
|
9224
|
+
component: /* @__PURE__ */ a.jsx(za, { isShort: !0, functions: { join: r, leave: s } })
|
|
9225
9225
|
}
|
|
9226
9226
|
}
|
|
9227
9227
|
);
|
|
@@ -9238,7 +9238,7 @@ const we = "discussion_form_", ar = ({
|
|
|
9238
9238
|
);
|
|
9239
9239
|
}, kc = {
|
|
9240
9240
|
showForm: !1
|
|
9241
|
-
}, sr =
|
|
9241
|
+
}, sr = nn(kc), Tc = ({ children: t }) => {
|
|
9242
9242
|
const [e, n] = J({
|
|
9243
9243
|
showForm: !1
|
|
9244
9244
|
});
|
|
@@ -9271,7 +9271,7 @@ const An = () => {
|
|
|
9271
9271
|
ae(() => {
|
|
9272
9272
|
p(s);
|
|
9273
9273
|
}, [s]);
|
|
9274
|
-
const [u, f] = J(e), [m, p] = J(s), [g, v] = J(!1), [x, b] = J(!1), y =
|
|
9274
|
+
const [u, f] = J(e), [m, p] = J(s), [g, v] = J(!1), [x, b] = J(!1), y = wt(
|
|
9275
9275
|
() => Sc(n, Dn),
|
|
9276
9276
|
[n]
|
|
9277
9277
|
), S = (_) => {
|
|
@@ -9373,7 +9373,7 @@ const An = () => {
|
|
|
9373
9373
|
] }) })
|
|
9374
9374
|
] })
|
|
9375
9375
|
});
|
|
9376
|
-
},
|
|
9376
|
+
}, Jr = (t) => {
|
|
9377
9377
|
const e = {};
|
|
9378
9378
|
return Object.keys(t).forEach((n) => n.includes("Id") ? e[n] = t[n] : e[`${n}Slug`] = t[n]), e;
|
|
9379
9379
|
}, on = (t, e) => t && !e;
|
|
@@ -9409,7 +9409,7 @@ const Me = "discussion_", Nc = 280, cn = ({
|
|
|
9409
9409
|
children: v,
|
|
9410
9410
|
isTruncated: x = !1
|
|
9411
9411
|
}) => {
|
|
9412
|
-
const b = H(), y = Ee(Ae), S = Ee(sr), { author: j, canLike: _, createdAt: F, id: R, likes: X = 0, userLiked: B, comments: $ = 0 } = e, C = y && y.id && typeof j != "string" && j.id && j.id === y.id || !1, w = typeof _ == "boolean" ? _ : n ? !C : !1, k = C && (!e.createdAt ||
|
|
9412
|
+
const b = H(), y = Ee(Ae), S = Ee(sr), { author: j, canLike: _, createdAt: F, id: R, likes: X = 0, userLiked: B, comments: $ = 0 } = e, C = y && y.id && typeof j != "string" && j.id && j.id === y.id || !1, w = typeof _ == "boolean" ? _ : n ? !C : !1, k = C && (!e.createdAt || Ks(e.createdAt, 10, "seconds")), N = pe(null), [A, U] = J({
|
|
9413
9413
|
body: e && e.body || "",
|
|
9414
9414
|
isEditing: !1,
|
|
9415
9415
|
didEdit: e && e.isEdited || !1
|
|
@@ -9445,9 +9445,9 @@ const Me = "discussion_", Nc = 280, cn = ({
|
|
|
9445
9445
|
const te = x ? et(A.body, Nc) : A.body, G = async (O) => {
|
|
9446
9446
|
O || (O = ""), I("");
|
|
9447
9447
|
try {
|
|
9448
|
-
if (!
|
|
9448
|
+
if (!Fs(O, A.body)) {
|
|
9449
9449
|
const oe = e.type === "question" ? { title: O } : { body: O };
|
|
9450
|
-
await d(
|
|
9450
|
+
await d(Jr(e.slugs), oe);
|
|
9451
9451
|
}
|
|
9452
9452
|
U({ body: O, isEditing: !1, didEdit: !0 });
|
|
9453
9453
|
} catch {
|
|
@@ -9462,7 +9462,7 @@ const Me = "discussion_", Nc = 280, cn = ({
|
|
|
9462
9462
|
}, ee = async () => {
|
|
9463
9463
|
z(!1);
|
|
9464
9464
|
try {
|
|
9465
|
-
await c(
|
|
9465
|
+
await c(Jr(e.slugs));
|
|
9466
9466
|
} catch {
|
|
9467
9467
|
I("delete-error");
|
|
9468
9468
|
}
|
|
@@ -9571,14 +9571,14 @@ const Me = "discussion_", Nc = 280, cn = ({
|
|
|
9571
9571
|
) : m.post ? /* @__PURE__ */ a.jsxs("a", { href: m.post, children: [
|
|
9572
9572
|
(e == null ? void 0 : e.title) && /* @__PURE__ */ a.jsx("p", { className: "content-title", children: e.title }),
|
|
9573
9573
|
e != null && e.body && (e == null ? void 0 : e.body.length) > 195 ? /* @__PURE__ */ a.jsx(
|
|
9574
|
-
|
|
9574
|
+
ui,
|
|
9575
9575
|
{
|
|
9576
9576
|
text: e == null ? void 0 : e.body,
|
|
9577
|
-
markdownOptions: { overrides: { a:
|
|
9577
|
+
markdownOptions: { overrides: { a: $r } }
|
|
9578
9578
|
}
|
|
9579
|
-
) : /* @__PURE__ */ a.jsx(
|
|
9579
|
+
) : /* @__PURE__ */ a.jsx(xt, { options: { overrides: { a: $r } }, children: te })
|
|
9580
9580
|
] }) : /* @__PURE__ */ a.jsx(
|
|
9581
|
-
|
|
9581
|
+
xt,
|
|
9582
9582
|
{
|
|
9583
9583
|
options: {
|
|
9584
9584
|
wrapper: e.type === "question" ? "h1" : Y.Fragment,
|
|
@@ -9741,7 +9741,7 @@ const Pc = ({
|
|
|
9741
9741
|
form: r,
|
|
9742
9742
|
children: s
|
|
9743
9743
|
}) => {
|
|
9744
|
-
const i = H(), o = Ee(sr), c =
|
|
9744
|
+
const i = H(), o = Ee(sr), c = Bt(s, {
|
|
9745
9745
|
element: "li"
|
|
9746
9746
|
});
|
|
9747
9747
|
return /* @__PURE__ */ a.jsxs("div", { className: "thread-wrapper", children: [
|
|
@@ -9762,7 +9762,7 @@ const Pc = ({
|
|
|
9762
9762
|
),
|
|
9763
9763
|
r && o.showForm && /* @__PURE__ */ a.jsx(ar, { ...r })
|
|
9764
9764
|
] });
|
|
9765
|
-
}, Mc = "post", Rc = "reply",
|
|
9765
|
+
}, Mc = "post", Rc = "reply", Ka = "00000000-0000-0000-0000-000000000000";
|
|
9766
9766
|
function ir({ queryClient: t, queryKey: e }) {
|
|
9767
9767
|
function n(r, s, i) {
|
|
9768
9768
|
t.setQueryData(e, i);
|
|
@@ -9809,7 +9809,7 @@ function Oc() {
|
|
|
9809
9809
|
}
|
|
9810
9810
|
};
|
|
9811
9811
|
}
|
|
9812
|
-
function
|
|
9812
|
+
function Ga(t) {
|
|
9813
9813
|
const { id: e = "", name: n = "", organization: r = "", jobTitle: s = "", image: i = {} } = t, { thumbnail: o = "" } = i;
|
|
9814
9814
|
return {
|
|
9815
9815
|
id: e,
|
|
@@ -9824,19 +9824,19 @@ function Ka(t) {
|
|
|
9824
9824
|
function Ac({ content: t }) {
|
|
9825
9825
|
return {
|
|
9826
9826
|
content: t,
|
|
9827
|
-
id:
|
|
9827
|
+
id: Ka,
|
|
9828
9828
|
time: (/* @__PURE__ */ new Date()).toISOString(),
|
|
9829
9829
|
verb: Mc
|
|
9830
9830
|
};
|
|
9831
9831
|
}
|
|
9832
|
-
function
|
|
9832
|
+
function Xr({ activity: t, user: e }) {
|
|
9833
9833
|
return {
|
|
9834
9834
|
...t,
|
|
9835
|
-
actor:
|
|
9835
|
+
actor: Ga(e),
|
|
9836
9836
|
...Fc()
|
|
9837
9837
|
};
|
|
9838
9838
|
}
|
|
9839
|
-
function
|
|
9839
|
+
function Xt({ activity: t, reaction: e }) {
|
|
9840
9840
|
var n, r, s;
|
|
9841
9841
|
e ? (t.latest_reactions = {
|
|
9842
9842
|
...t.latest_reactions || {},
|
|
@@ -9849,7 +9849,7 @@ function Jt({ activity: t, reaction: e }) {
|
|
|
9849
9849
|
like: (n = t.reaction_counts) != null && n.like ? t.reaction_counts.like + 1 : 1
|
|
9850
9850
|
};
|
|
9851
9851
|
}
|
|
9852
|
-
function
|
|
9852
|
+
function Qa({ activity: t, user: e }) {
|
|
9853
9853
|
var n, r, s;
|
|
9854
9854
|
t.reaction_counts = {
|
|
9855
9855
|
...t.reaction_counts || {},
|
|
@@ -9868,13 +9868,13 @@ function Dc({ activityId: t, replyId: e, content: n }) {
|
|
|
9868
9868
|
data: {
|
|
9869
9869
|
content: n
|
|
9870
9870
|
},
|
|
9871
|
-
id:
|
|
9871
|
+
id: Ka,
|
|
9872
9872
|
kind: Rc,
|
|
9873
9873
|
parent: e || ""
|
|
9874
9874
|
};
|
|
9875
9875
|
}
|
|
9876
|
-
function
|
|
9877
|
-
const n =
|
|
9876
|
+
function ea({ reply: t, user: e }) {
|
|
9877
|
+
const n = Ga(e);
|
|
9878
9878
|
return {
|
|
9879
9879
|
...t,
|
|
9880
9880
|
user_id: n.id,
|
|
@@ -9882,7 +9882,7 @@ function Xr({ reply: t, user: e }) {
|
|
|
9882
9882
|
...Oc()
|
|
9883
9883
|
};
|
|
9884
9884
|
}
|
|
9885
|
-
function
|
|
9885
|
+
function ta({ reply: t, reaction: e }) {
|
|
9886
9886
|
var n, r, s;
|
|
9887
9887
|
e ? (t.latest_children = {
|
|
9888
9888
|
...t.latest_children || {},
|
|
@@ -9908,14 +9908,14 @@ function Ic({ reply: t, user: e }) {
|
|
|
9908
9908
|
like: (((s = t.own_children) == null ? void 0 : s.like) || []).filter(({ user_id: i }) => i !== e.id)
|
|
9909
9909
|
});
|
|
9910
9910
|
}
|
|
9911
|
-
const
|
|
9911
|
+
const Ja = (t) => {
|
|
9912
9912
|
const e = new CustomEvent("discussionPostAdded", {
|
|
9913
9913
|
detail: t
|
|
9914
9914
|
});
|
|
9915
9915
|
document.dispatchEvent(e);
|
|
9916
9916
|
};
|
|
9917
|
-
let
|
|
9918
|
-
const
|
|
9917
|
+
let na, Ln = 0;
|
|
9918
|
+
const Xa = () => {
|
|
9919
9919
|
ae(() => (document.addEventListener("discussionPostAdded", t), () => {
|
|
9920
9920
|
document.removeEventListener(
|
|
9921
9921
|
"discussionPostAdded",
|
|
@@ -9926,13 +9926,13 @@ const Ja = () => {
|
|
|
9926
9926
|
const n = e.detail;
|
|
9927
9927
|
if (!n)
|
|
9928
9928
|
return;
|
|
9929
|
-
clearTimeout(
|
|
9929
|
+
clearTimeout(na);
|
|
9930
9930
|
const r = document.getElementById(n);
|
|
9931
9931
|
if (r) {
|
|
9932
9932
|
r.scrollIntoView({ behavior: "smooth", block: "start" }), Ln = 0;
|
|
9933
9933
|
return;
|
|
9934
9934
|
}
|
|
9935
|
-
Ln++, !(Ln > 10) && (
|
|
9935
|
+
Ln++, !(Ln > 10) && (na = setTimeout(() => {
|
|
9936
9936
|
t(e);
|
|
9937
9937
|
}, 50));
|
|
9938
9938
|
};
|
|
@@ -9954,7 +9954,7 @@ const Ja = () => {
|
|
|
9954
9954
|
thumbnail: "https://some-user-thumbnail.com/avatar2.png"
|
|
9955
9955
|
},
|
|
9956
9956
|
isLoading: !1
|
|
9957
|
-
}),
|
|
9957
|
+
}), es = Object.freeze({
|
|
9958
9958
|
actor: `SU:${nt.id}`,
|
|
9959
9959
|
content: "some content 1",
|
|
9960
9960
|
duration: "5.53ms",
|
|
@@ -9997,7 +9997,7 @@ const Ja = () => {
|
|
|
9997
9997
|
});
|
|
9998
9998
|
Object.freeze({
|
|
9999
9999
|
id: "some-reaction-id-1",
|
|
10000
|
-
activity_id:
|
|
10000
|
+
activity_id: es.id,
|
|
10001
10001
|
kind: "like",
|
|
10002
10002
|
created_at: "2023-11-24T17:58:36.162000",
|
|
10003
10003
|
data: {},
|
|
@@ -10027,7 +10027,7 @@ Object.freeze({
|
|
|
10027
10027
|
updated_at: "2023-08-31T07:11:38.677184Z"
|
|
10028
10028
|
},
|
|
10029
10029
|
kind: "reply",
|
|
10030
|
-
activity_id:
|
|
10030
|
+
activity_id: es.id,
|
|
10031
10031
|
data: {
|
|
10032
10032
|
content: "Some content 1..."
|
|
10033
10033
|
},
|
|
@@ -10105,14 +10105,14 @@ function Uc({
|
|
|
10105
10105
|
const { mutate: o } = je({
|
|
10106
10106
|
mutationFn: t,
|
|
10107
10107
|
onMutate: (c) => e((d) => {
|
|
10108
|
-
const l =
|
|
10109
|
-
return
|
|
10108
|
+
const l = Xr({ activity: Ac(c), user: i });
|
|
10109
|
+
return ra(l, d);
|
|
10110
10110
|
}),
|
|
10111
10111
|
onError: n,
|
|
10112
10112
|
onSuccess: (c, d, l) => {
|
|
10113
|
-
const u =
|
|
10114
|
-
r.setQueryData(s,
|
|
10115
|
-
|
|
10113
|
+
const u = Xr({ activity: c, user: i });
|
|
10114
|
+
r.setQueryData(s, ra(u, l, !0)), setTimeout(() => {
|
|
10115
|
+
Ja(u.id);
|
|
10116
10116
|
}, 0);
|
|
10117
10117
|
}
|
|
10118
10118
|
});
|
|
@@ -10128,7 +10128,7 @@ function Wc({
|
|
|
10128
10128
|
const { mutate: r } = je({
|
|
10129
10129
|
mutationFn: t,
|
|
10130
10130
|
onMutate: ({ activityId: s, content: i }) => e((o) => {
|
|
10131
|
-
const c =
|
|
10131
|
+
const c = en(s, o);
|
|
10132
10132
|
return c && (c.content = i), o;
|
|
10133
10133
|
}),
|
|
10134
10134
|
onError: n
|
|
@@ -10179,13 +10179,13 @@ function Zc({
|
|
|
10179
10179
|
const { mutate: i } = je({
|
|
10180
10180
|
mutationFn: t,
|
|
10181
10181
|
onMutate: ({ activityId: o }) => e((c) => {
|
|
10182
|
-
const d =
|
|
10183
|
-
return d &&
|
|
10182
|
+
const d = en(o, c);
|
|
10183
|
+
return d && Xt({ activity: d }), c;
|
|
10184
10184
|
}),
|
|
10185
10185
|
onError: n,
|
|
10186
10186
|
onSuccess: (o, { activityId: c }, d) => {
|
|
10187
|
-
const l =
|
|
10188
|
-
l &&
|
|
10187
|
+
const l = en(c, d);
|
|
10188
|
+
l && Xt({ activity: l, reaction: o }), r.setQueryData(s, d);
|
|
10189
10189
|
}
|
|
10190
10190
|
});
|
|
10191
10191
|
return i;
|
|
@@ -10197,7 +10197,7 @@ function Hc({ queryFn: t, queryKey: e }) {
|
|
|
10197
10197
|
isLoading: s,
|
|
10198
10198
|
hasNextPage: i,
|
|
10199
10199
|
fetchNextPage: o
|
|
10200
|
-
} =
|
|
10200
|
+
} = oa({
|
|
10201
10201
|
queryKey: e,
|
|
10202
10202
|
queryFn: t,
|
|
10203
10203
|
initialPageParam: { next: null },
|
|
@@ -10236,14 +10236,14 @@ function Yc({
|
|
|
10236
10236
|
const { mutate: s } = je({
|
|
10237
10237
|
mutationFn: t,
|
|
10238
10238
|
onMutate: ({ activityId: i }) => e((o) => {
|
|
10239
|
-
const c =
|
|
10240
|
-
return c &&
|
|
10239
|
+
const c = en(i, o);
|
|
10240
|
+
return c && Qa({ activity: c, user: r }), o;
|
|
10241
10241
|
}),
|
|
10242
10242
|
onError: n
|
|
10243
10243
|
});
|
|
10244
10244
|
return s;
|
|
10245
10245
|
}
|
|
10246
|
-
function
|
|
10246
|
+
function ra(t, e, n = !1) {
|
|
10247
10247
|
return e ? (n ? e.pages[0].results[0] = t : e.pages[0].results = [t, ...e.pages[0].results], e) : {
|
|
10248
10248
|
pages: [{
|
|
10249
10249
|
next: "",
|
|
@@ -10252,7 +10252,7 @@ function na(t, e, n = !1) {
|
|
|
10252
10252
|
pageParams: [""]
|
|
10253
10253
|
};
|
|
10254
10254
|
}
|
|
10255
|
-
function
|
|
10255
|
+
function en(t, e) {
|
|
10256
10256
|
if (e)
|
|
10257
10257
|
for (const { results: n } of e.pages) {
|
|
10258
10258
|
const r = n.find(({ id: s }) => s === t);
|
|
@@ -10292,9 +10292,9 @@ const pu = ({
|
|
|
10292
10292
|
queryKey: [t, e, "activities"],
|
|
10293
10293
|
queryFns: r
|
|
10294
10294
|
});
|
|
10295
|
-
return
|
|
10295
|
+
return Xa(), d ? /* @__PURE__ */ a.jsx(He, { variant: "error", text: d.message }) : /* @__PURE__ */ a.jsxs("section", { children: [
|
|
10296
10296
|
/* @__PURE__ */ a.jsx(
|
|
10297
|
-
|
|
10297
|
+
Ya,
|
|
10298
10298
|
{
|
|
10299
10299
|
form: {
|
|
10300
10300
|
content: { type: "post", slugs: {} },
|
|
@@ -10952,20 +10952,20 @@ function Qc({
|
|
|
10952
10952
|
const { mutate: o } = je({
|
|
10953
10953
|
mutationFn: t,
|
|
10954
10954
|
onMutate: (c) => e((d) => {
|
|
10955
|
-
const l =
|
|
10956
|
-
return
|
|
10955
|
+
const l = ea({ reply: Dc(c), user: i });
|
|
10956
|
+
return aa(l, d, {
|
|
10957
10957
|
replace: !1,
|
|
10958
10958
|
append: (c == null ? void 0 : c.replyId) !== void 0
|
|
10959
10959
|
});
|
|
10960
10960
|
}),
|
|
10961
10961
|
onError: n,
|
|
10962
10962
|
onSuccess: (c, d, l) => {
|
|
10963
|
-
const u =
|
|
10963
|
+
const u = ea({ reply: c, user: i });
|
|
10964
10964
|
r.setQueryData(
|
|
10965
10965
|
s,
|
|
10966
|
-
|
|
10966
|
+
aa(u, l, { replace: !0, append: (d == null ? void 0 : d.replyId) !== void 0 })
|
|
10967
10967
|
), setTimeout(() => {
|
|
10968
|
-
|
|
10968
|
+
Ja(u.id);
|
|
10969
10969
|
}, 0);
|
|
10970
10970
|
}
|
|
10971
10971
|
});
|
|
@@ -10981,14 +10981,14 @@ function Jc({
|
|
|
10981
10981
|
const { mutate: r } = je({
|
|
10982
10982
|
mutationFn: t,
|
|
10983
10983
|
onMutate: ({ replyId: s, content: i }) => e((o) => {
|
|
10984
|
-
const c =
|
|
10984
|
+
const c = tn(s, o);
|
|
10985
10985
|
return c && (c.data.content = i), o;
|
|
10986
10986
|
}),
|
|
10987
10987
|
onError: n
|
|
10988
10988
|
});
|
|
10989
10989
|
return r;
|
|
10990
10990
|
}
|
|
10991
|
-
function
|
|
10991
|
+
function ts({
|
|
10992
10992
|
queryFns: {
|
|
10993
10993
|
create: t,
|
|
10994
10994
|
edit: e,
|
|
@@ -11032,13 +11032,13 @@ function Xc({
|
|
|
11032
11032
|
const { mutate: i } = je({
|
|
11033
11033
|
mutationFn: t,
|
|
11034
11034
|
onMutate: ({ replyId: o }) => e((c) => {
|
|
11035
|
-
const d =
|
|
11036
|
-
return d &&
|
|
11035
|
+
const d = tn(o, c);
|
|
11036
|
+
return d && ta({ reply: d }), c;
|
|
11037
11037
|
}),
|
|
11038
11038
|
onError: n,
|
|
11039
11039
|
onSuccess: (o, { replyId: c }, d) => {
|
|
11040
|
-
const l =
|
|
11041
|
-
l &&
|
|
11040
|
+
const l = tn(c, d);
|
|
11041
|
+
l && ta({ reply: l, reaction: o }), r.setQueryData(s, d);
|
|
11042
11042
|
}
|
|
11043
11043
|
});
|
|
11044
11044
|
return i;
|
|
@@ -11050,7 +11050,7 @@ function el({ queryFn: t, queryKey: e }) {
|
|
|
11050
11050
|
isLoading: s,
|
|
11051
11051
|
hasNextPage: i,
|
|
11052
11052
|
fetchNextPage: o
|
|
11053
|
-
} =
|
|
11053
|
+
} = oa({
|
|
11054
11054
|
queryKey: e,
|
|
11055
11055
|
queryFn: t,
|
|
11056
11056
|
initialPageParam: { next: "" },
|
|
@@ -11090,7 +11090,7 @@ function nl({
|
|
|
11090
11090
|
const { mutate: s } = je({
|
|
11091
11091
|
mutationFn: t,
|
|
11092
11092
|
onMutate: ({ replyId: i }) => e((o) => {
|
|
11093
|
-
const c =
|
|
11093
|
+
const c = tn(i, o);
|
|
11094
11094
|
return c && Ic({ reply: c, user: r }), o;
|
|
11095
11095
|
}),
|
|
11096
11096
|
onError: n
|
|
@@ -11113,10 +11113,10 @@ function al(t, e, n) {
|
|
|
11113
11113
|
function sl(t, e, n) {
|
|
11114
11114
|
return n != null && n.replace ? e.pages[0].results[0] = t : e.pages[0].results = [t, ...e.pages[0].results], e;
|
|
11115
11115
|
}
|
|
11116
|
-
function
|
|
11116
|
+
function aa(t, e, n) {
|
|
11117
11117
|
return e ? n != null && n.append ? al(t, e, n) : sl(t, e, n) : rl(t);
|
|
11118
11118
|
}
|
|
11119
|
-
function
|
|
11119
|
+
function tn(t, e) {
|
|
11120
11120
|
if (e)
|
|
11121
11121
|
for (const { results: n } of e.pages) {
|
|
11122
11122
|
const r = n.find(({ id: s }) => s === t);
|
|
@@ -11153,7 +11153,7 @@ const cl = ({
|
|
|
11153
11153
|
isLoading: l,
|
|
11154
11154
|
mutations: { create: u, edit: f, like: m, remove: p, unlike: g },
|
|
11155
11155
|
user: v
|
|
11156
|
-
} =
|
|
11156
|
+
} = ts({
|
|
11157
11157
|
queryKey: [t, e, n, r, "replies"],
|
|
11158
11158
|
queryFns: {
|
|
11159
11159
|
...i,
|
|
@@ -11266,14 +11266,14 @@ const ll = ({
|
|
|
11266
11266
|
isLoading: m,
|
|
11267
11267
|
mutations: { create: p, edit: g, like: v, remove: x, unlike: b },
|
|
11268
11268
|
user: y
|
|
11269
|
-
} =
|
|
11269
|
+
} = ts({
|
|
11270
11270
|
queryKey: [t, e, n, "replies"],
|
|
11271
11271
|
queryFns: s
|
|
11272
11272
|
});
|
|
11273
|
-
return
|
|
11273
|
+
return Ws(), Xa(), /* @__PURE__ */ a.jsxs("section", { className: "replies-feed", children: [
|
|
11274
11274
|
/* @__PURE__ */ a.jsx($c, { type: "comment", responses: l }),
|
|
11275
11275
|
/* @__PURE__ */ a.jsx(
|
|
11276
|
-
|
|
11276
|
+
Ya,
|
|
11277
11277
|
{
|
|
11278
11278
|
form: {
|
|
11279
11279
|
content: { type: "reply", slugs: {} },
|
|
@@ -11401,7 +11401,7 @@ function dl({ queryFn: t, queryKey: e }) {
|
|
|
11401
11401
|
error: r,
|
|
11402
11402
|
isLoading: s,
|
|
11403
11403
|
isFetching: i
|
|
11404
|
-
} =
|
|
11404
|
+
} = Cs({
|
|
11405
11405
|
queryFn: t,
|
|
11406
11406
|
queryKey: e
|
|
11407
11407
|
});
|
|
@@ -11451,10 +11451,10 @@ function ml({
|
|
|
11451
11451
|
}) {
|
|
11452
11452
|
const { mutate: i } = je({
|
|
11453
11453
|
mutationFn: t,
|
|
11454
|
-
onMutate: (o) => e((c) => (c &&
|
|
11454
|
+
onMutate: (o) => e((c) => (c && Xt({ activity: c }), c)),
|
|
11455
11455
|
onError: n,
|
|
11456
11456
|
onSuccess: (o, c, d) => {
|
|
11457
|
-
d &&
|
|
11457
|
+
d && Xt({ activity: d, reaction: o }), r.setQueryData(s, d);
|
|
11458
11458
|
}
|
|
11459
11459
|
});
|
|
11460
11460
|
return i;
|
|
@@ -11469,7 +11469,7 @@ function pl({
|
|
|
11469
11469
|
}) {
|
|
11470
11470
|
const { mutate: s } = je({
|
|
11471
11471
|
mutationFn: t,
|
|
11472
|
-
onMutate: (i) => e((o) => (o &&
|
|
11472
|
+
onMutate: (i) => e((o) => (o && Qa({ activity: o, user: r }), o)),
|
|
11473
11473
|
onError: n
|
|
11474
11474
|
});
|
|
11475
11475
|
return s;
|
|
@@ -11589,7 +11589,7 @@ const gu = ({
|
|
|
11589
11589
|
jobTitle: e,
|
|
11590
11590
|
organization: r,
|
|
11591
11591
|
image: { thumbnail: s }
|
|
11592
|
-
}),
|
|
11592
|
+
}), sa = [
|
|
11593
11593
|
{
|
|
11594
11594
|
contentType: "solutionArticle",
|
|
11595
11595
|
banner: {
|
|
@@ -11633,10 +11633,10 @@ const gu = ({
|
|
|
11633
11633
|
contributors: ["community"]
|
|
11634
11634
|
}
|
|
11635
11635
|
];
|
|
11636
|
-
const
|
|
11636
|
+
const It = "notFoundError_", bu = () => {
|
|
11637
11637
|
const t = H(), e = [];
|
|
11638
|
-
return
|
|
11639
|
-
n.title = t.formatMessage({ id: `${
|
|
11638
|
+
return sa.forEach((n, r) => {
|
|
11639
|
+
n.title = t.formatMessage({ id: `${It}post_${r + 1}` }), e.push("solutionArticle");
|
|
11640
11640
|
}), /* @__PURE__ */ a.jsxs(
|
|
11641
11641
|
_c,
|
|
11642
11642
|
{
|
|
@@ -11646,22 +11646,22 @@ const Dt = "notFoundError_", bu = () => {
|
|
|
11646
11646
|
/* @__PURE__ */ a.jsx(
|
|
11647
11647
|
ac,
|
|
11648
11648
|
{
|
|
11649
|
-
cards:
|
|
11649
|
+
cards: sa,
|
|
11650
11650
|
cardTypes: e,
|
|
11651
11651
|
buildCardData: (n) => new Promise((r, s) => {
|
|
11652
11652
|
r(n);
|
|
11653
11653
|
})
|
|
11654
11654
|
}
|
|
11655
11655
|
),
|
|
11656
|
-
/* @__PURE__ */ a.jsx(se, { href: "/solution-articles/", children: t.formatMessage({ id: `${
|
|
11656
|
+
/* @__PURE__ */ a.jsx(se, { href: "/solution-articles/", children: t.formatMessage({ id: `${It}cta` }) })
|
|
11657
11657
|
] })
|
|
11658
11658
|
},
|
|
11659
11659
|
reportError: () => {
|
|
11660
11660
|
},
|
|
11661
11661
|
className: "not-found-error",
|
|
11662
11662
|
children: [
|
|
11663
|
-
/* @__PURE__ */ a.jsx("h1", { children: t.formatMessage({ id: `${
|
|
11664
|
-
/* @__PURE__ */ a.jsx("p", { children: t.formatMessage({ id: `${
|
|
11663
|
+
/* @__PURE__ */ a.jsx("h1", { children: t.formatMessage({ id: `${It}title` }) }),
|
|
11664
|
+
/* @__PURE__ */ a.jsx("p", { children: t.formatMessage({ id: `${It}text` }) })
|
|
11665
11665
|
]
|
|
11666
11666
|
}
|
|
11667
11667
|
);
|
|
@@ -11670,15 +11670,15 @@ export {
|
|
|
11670
11670
|
Le as ASSETS_BUCKET,
|
|
11671
11671
|
pu as ActivitiesFeed,
|
|
11672
11672
|
gu as ActivitySection,
|
|
11673
|
-
|
|
11673
|
+
Ya as AddPost,
|
|
11674
11674
|
Dl as Banner,
|
|
11675
11675
|
ql as BannerSection,
|
|
11676
11676
|
nu as Breadcrumbs,
|
|
11677
11677
|
se as Button,
|
|
11678
|
-
|
|
11679
|
-
|
|
11678
|
+
kt as ButtonWrapper,
|
|
11679
|
+
St as COURSE_CONTENT_TYPES,
|
|
11680
11680
|
Ei as CacheProvider,
|
|
11681
|
-
|
|
11681
|
+
Wa as Card,
|
|
11682
11682
|
ac as CardBlock,
|
|
11683
11683
|
eu as Carousel,
|
|
11684
11684
|
Jn as CollapsibleSection,
|
|
@@ -11686,8 +11686,8 @@ export {
|
|
|
11686
11686
|
tu as CommunityDetails,
|
|
11687
11687
|
ou as ContactFooter,
|
|
11688
11688
|
Yi as ContactForm,
|
|
11689
|
-
|
|
11690
|
-
|
|
11689
|
+
ci as ContentTypeLabel,
|
|
11690
|
+
Ea as Contributors,
|
|
11691
11691
|
sr as ConversationContext,
|
|
11692
11692
|
vc as CookieBanner,
|
|
11693
11693
|
du as CourseProgression,
|
|
@@ -11707,14 +11707,14 @@ export {
|
|
|
11707
11707
|
He as EmptyStateBox,
|
|
11708
11708
|
ru as Filters,
|
|
11709
11709
|
Ni as FlagsProvider,
|
|
11710
|
-
|
|
11710
|
+
Ha as Footer,
|
|
11711
11711
|
rn as Form,
|
|
11712
11712
|
Ve as FullWidthSection,
|
|
11713
11713
|
Zl as GlobalProviders,
|
|
11714
|
-
|
|
11715
|
-
|
|
11714
|
+
Va as Header,
|
|
11715
|
+
li as HelperTextBox,
|
|
11716
11716
|
Gn as HiddenFromScreenReaders,
|
|
11717
|
-
|
|
11717
|
+
ui as HideShowTextBox,
|
|
11718
11718
|
Wl as HighlightSection,
|
|
11719
11719
|
Fe as HighlightedTextBox,
|
|
11720
11720
|
Fl as IconBulletedList,
|
|
@@ -11722,8 +11722,8 @@ export {
|
|
|
11722
11722
|
$i as IntlProvider,
|
|
11723
11723
|
Ki as InviteForm,
|
|
11724
11724
|
Jl as InviteModal,
|
|
11725
|
-
|
|
11726
|
-
|
|
11725
|
+
za as JoinButton,
|
|
11726
|
+
_a as LanguageContext,
|
|
11727
11727
|
au as LanguageSwitcher,
|
|
11728
11728
|
wc as LessonName,
|
|
11729
11729
|
jc as LessonType,
|
|
@@ -11731,15 +11731,15 @@ export {
|
|
|
11731
11731
|
sn as LoadMore,
|
|
11732
11732
|
Hl as LoadingBlock,
|
|
11733
11733
|
Se as LoadingPlaceholder,
|
|
11734
|
-
|
|
11735
|
-
|
|
11734
|
+
ja as LoadingState,
|
|
11735
|
+
Za as Logo,
|
|
11736
11736
|
Bl as LogoSection,
|
|
11737
11737
|
mu as MarkCompleteButton,
|
|
11738
|
-
|
|
11738
|
+
xt as MarkdownText,
|
|
11739
11739
|
zl as MarketingBlock,
|
|
11740
11740
|
tr as Member,
|
|
11741
11741
|
uu as MembersList,
|
|
11742
|
-
|
|
11742
|
+
Ua as Modal,
|
|
11743
11743
|
lc as MoreMenu,
|
|
11744
11744
|
$l as NUMBER_OF_USERS,
|
|
11745
11745
|
fc as NavigationMenu,
|
|
@@ -11752,18 +11752,18 @@ export {
|
|
|
11752
11752
|
ht as Pill,
|
|
11753
11753
|
Kl as ProfileImageChange,
|
|
11754
11754
|
Ye as ProfilePicture,
|
|
11755
|
-
|
|
11755
|
+
xa as ProgressBar,
|
|
11756
11756
|
Ml as ProgressTracker,
|
|
11757
11757
|
Vl as Rating,
|
|
11758
11758
|
ll as RepliesFeed,
|
|
11759
11759
|
$c as ResponsesHeading,
|
|
11760
|
-
|
|
11760
|
+
Tt as ResponsiveImage,
|
|
11761
11761
|
Rl as ReturnToNavButton,
|
|
11762
11762
|
Gi as SearchForm,
|
|
11763
11763
|
su as ShareLinks,
|
|
11764
11764
|
Ql as SignupForm,
|
|
11765
|
-
|
|
11766
|
-
|
|
11765
|
+
$r as Span,
|
|
11766
|
+
Wt as StatusBanner,
|
|
11767
11767
|
Al as TableOfContents,
|
|
11768
11768
|
iu as Tabs,
|
|
11769
11769
|
lu as Tags,
|
|
@@ -11776,26 +11776,26 @@ export {
|
|
|
11776
11776
|
Pi as UserProvider,
|
|
11777
11777
|
be as VisuallyHidden,
|
|
11778
11778
|
ec as addAriaProps,
|
|
11779
|
-
|
|
11780
|
-
|
|
11779
|
+
pa as basicReducer,
|
|
11780
|
+
zs as camelCaseToDashCase,
|
|
11781
11781
|
Qn as checkIntlPathExists,
|
|
11782
11782
|
yn as generateConditions,
|
|
11783
|
-
|
|
11784
|
-
|
|
11785
|
-
|
|
11786
|
-
|
|
11787
|
-
|
|
11783
|
+
Vs as generateCssIcon,
|
|
11784
|
+
va as getLongDate,
|
|
11785
|
+
Ta as getMember,
|
|
11786
|
+
Ys as getShortDate,
|
|
11787
|
+
Qt as headerData,
|
|
11788
11788
|
vu as mapGetStreamData,
|
|
11789
|
-
|
|
11789
|
+
ni as pageReady,
|
|
11790
11790
|
jr as passwordValidator,
|
|
11791
11791
|
hu as repliesFeedMock,
|
|
11792
11792
|
gn as supportedLanguages,
|
|
11793
|
-
|
|
11794
|
-
|
|
11795
|
-
|
|
11793
|
+
Zs as toCamelCase,
|
|
11794
|
+
Hs as toSentenceCase,
|
|
11795
|
+
Bs as useCurrentPath,
|
|
11796
11796
|
_t as useEffectAfterMount,
|
|
11797
|
-
|
|
11798
|
-
|
|
11799
|
-
|
|
11797
|
+
jt as useElementWidth,
|
|
11798
|
+
Us as useScrollListener,
|
|
11799
|
+
Ws as useScrollToHash,
|
|
11800
11800
|
er as useUser
|
|
11801
11801
|
};
|