@apolitical/component-library 3.5.7-SW.1 → 3.5.7-SW.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.js +17 -17
- package/index.mjs +461 -461
- package/package.json +1 -1
- package/style.css +1 -1
package/index.mjs
CHANGED
|
@@ -1,22 +1,22 @@
|
|
|
1
|
-
import Y, { memo as Ae, useState as X, useEffect as ae, useRef as pe, useMemo as wt, Children as Bn, createContext as nn, useContext as Ee, useCallback as
|
|
1
|
+
import Y, { memo as Ae, useState as X, useEffect as ae, useRef as pe, useMemo as wt, Children as Bn, createContext as nn, useContext as Ee, useCallback as sa, useReducer as Yn, Fragment as yt, Suspense as xs } from "react";
|
|
2
2
|
import pt from "lodash.clonedeep";
|
|
3
|
-
import
|
|
4
|
-
import { FormattedMessage as ye, useIntl as H, IntlProvider as
|
|
3
|
+
import ws from "lodash.set";
|
|
4
|
+
import { FormattedMessage as ye, useIntl as H, IntlProvider as js, createIntl as ks } from "react-intl";
|
|
5
5
|
import Le from "markdown-to-jsx";
|
|
6
6
|
import et from "truncate";
|
|
7
|
-
import { QueryClient as
|
|
8
|
-
import { ReactQueryDevtools as
|
|
7
|
+
import { QueryClient as Ts, QueryClientProvider as Es, useMutation as je, useQueryClient as Kn, useInfiniteQuery as ia, useQuery as Ss } from "@tanstack/react-query";
|
|
8
|
+
import { ReactQueryDevtools as Cs } from "@tanstack/react-query-devtools";
|
|
9
9
|
import Lt from "posthog-js";
|
|
10
|
-
import { CookiesProvider as
|
|
11
|
-
import { ReactMultiEmail as
|
|
12
|
-
import
|
|
13
|
-
import { ErrorBoundary as
|
|
14
|
-
import
|
|
15
|
-
import
|
|
16
|
-
function
|
|
10
|
+
import { CookiesProvider as $s, useCookies as oa } from "react-cookie";
|
|
11
|
+
import { ReactMultiEmail as Ns } from "react-multi-email";
|
|
12
|
+
import ca from "lodash.get";
|
|
13
|
+
import { ErrorBoundary as Ps } from "react-error-boundary";
|
|
14
|
+
import Ms from "react-textarea-autosize";
|
|
15
|
+
import Rs from "lodash.isequal";
|
|
16
|
+
function la(t) {
|
|
17
17
|
return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
|
|
18
18
|
}
|
|
19
|
-
function
|
|
19
|
+
function ua(t) {
|
|
20
20
|
if (t.__esModule)
|
|
21
21
|
return t;
|
|
22
22
|
var e = t.default;
|
|
@@ -37,7 +37,7 @@ function da(t) {
|
|
|
37
37
|
});
|
|
38
38
|
}), n;
|
|
39
39
|
}
|
|
40
|
-
var
|
|
40
|
+
var da = { exports: {} };
|
|
41
41
|
/*!
|
|
42
42
|
Copyright (c) 2018 Jed Watson.
|
|
43
43
|
Licensed under the MIT License (MIT), see
|
|
@@ -72,9 +72,9 @@ var fa = { exports: {} };
|
|
|
72
72
|
}
|
|
73
73
|
t.exports ? (n.default = n, t.exports = n) : window.classNames = n;
|
|
74
74
|
})();
|
|
75
|
-
})(
|
|
76
|
-
var
|
|
77
|
-
const S = /* @__PURE__ */
|
|
75
|
+
})(da);
|
|
76
|
+
var Fs = da.exports;
|
|
77
|
+
const S = /* @__PURE__ */ la(Fs), Os = ({
|
|
78
78
|
element: t = "span",
|
|
79
79
|
showOnFocus: e = !0,
|
|
80
80
|
children: n,
|
|
@@ -84,11 +84,11 @@ const S = /* @__PURE__ */ ua(Os), As = ({
|
|
|
84
84
|
...s,
|
|
85
85
|
className: S("hidden", r, { "show-on-focus": e }),
|
|
86
86
|
children: n
|
|
87
|
-
}), be = Ae(
|
|
87
|
+
}), be = Ae(Os), As = ({
|
|
88
88
|
element: t = "span",
|
|
89
89
|
children: e = null,
|
|
90
90
|
...n
|
|
91
|
-
}) => Y.createElement(t, { ...n, "aria-hidden": !0 }, e), Gn = Ae(
|
|
91
|
+
}) => Y.createElement(t, { ...n, "aria-hidden": !0 }, e), Gn = Ae(As);
|
|
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 Ds() {
|
|
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 Is() {
|
|
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, y = "@@iterator";
|
|
134
134
|
function _(h) {
|
|
@@ -415,7 +415,7 @@ function Ls() {
|
|
|
415
415
|
} else
|
|
416
416
|
lr.setExtraStackFrame(null);
|
|
417
417
|
}
|
|
418
|
-
function
|
|
418
|
+
function ts(h, M, I, ne, le) {
|
|
419
419
|
{
|
|
420
420
|
var me = Function.call.bind(Ue);
|
|
421
421
|
for (var ce in h)
|
|
@@ -434,17 +434,17 @@ function Ls() {
|
|
|
434
434
|
}
|
|
435
435
|
}
|
|
436
436
|
}
|
|
437
|
-
var
|
|
437
|
+
var ns = Array.isArray;
|
|
438
438
|
function ln(h) {
|
|
439
|
-
return
|
|
439
|
+
return ns(h);
|
|
440
440
|
}
|
|
441
|
-
function
|
|
441
|
+
function rs(h) {
|
|
442
442
|
{
|
|
443
443
|
var M = typeof Symbol == "function" && Symbol.toStringTag, I = M && h[Symbol.toStringTag] || h.constructor.name || "Object";
|
|
444
444
|
return I;
|
|
445
445
|
}
|
|
446
446
|
}
|
|
447
|
-
function
|
|
447
|
+
function as(h) {
|
|
448
448
|
try {
|
|
449
449
|
return ur(h), !1;
|
|
450
450
|
} catch {
|
|
@@ -455,17 +455,17 @@ function Ls() {
|
|
|
455
455
|
return "" + h;
|
|
456
456
|
}
|
|
457
457
|
function dr(h) {
|
|
458
|
-
if (
|
|
459
|
-
return b("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",
|
|
458
|
+
if (as(h))
|
|
459
|
+
return b("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", rs(h)), ur(h);
|
|
460
460
|
}
|
|
461
|
-
var st = v.ReactCurrentOwner,
|
|
461
|
+
var st = v.ReactCurrentOwner, ss = {
|
|
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 is(h) {
|
|
469
469
|
if (Ue.call(h, "ref")) {
|
|
470
470
|
var M = Object.getOwnPropertyDescriptor(h, "ref").get;
|
|
471
471
|
if (M && M.isReactWarning)
|
|
@@ -473,7 +473,7 @@ function Ls() {
|
|
|
473
473
|
}
|
|
474
474
|
return h.ref !== void 0;
|
|
475
475
|
}
|
|
476
|
-
function
|
|
476
|
+
function os(h) {
|
|
477
477
|
if (Ue.call(h, "key")) {
|
|
478
478
|
var M = Object.getOwnPropertyDescriptor(h, "key").get;
|
|
479
479
|
if (M && M.isReactWarning)
|
|
@@ -481,13 +481,13 @@ function Ls() {
|
|
|
481
481
|
}
|
|
482
482
|
return h.key !== void 0;
|
|
483
483
|
}
|
|
484
|
-
function
|
|
484
|
+
function cs(h, M) {
|
|
485
485
|
if (typeof h.ref == "string" && st.current && M && st.current.stateNode !== M) {
|
|
486
486
|
var I = x(st.current.type);
|
|
487
487
|
un[I] || (b('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', x(st.current.type), h.ref), un[I] = !0);
|
|
488
488
|
}
|
|
489
489
|
}
|
|
490
|
-
function
|
|
490
|
+
function ls(h, M) {
|
|
491
491
|
{
|
|
492
492
|
var I = function() {
|
|
493
493
|
fr || (fr = !0, b("%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 Ls() {
|
|
|
498
498
|
});
|
|
499
499
|
}
|
|
500
500
|
}
|
|
501
|
-
function
|
|
501
|
+
function us(h, M) {
|
|
502
502
|
{
|
|
503
503
|
var I = function() {
|
|
504
504
|
mr || (mr = !0, b("%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 Ls() {
|
|
|
509
509
|
});
|
|
510
510
|
}
|
|
511
511
|
}
|
|
512
|
-
var
|
|
512
|
+
var ds = function(h, M, I, 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 Ls() {
|
|
|
538
538
|
value: le
|
|
539
539
|
}), Object.freeze && (Object.freeze(ie.props), Object.freeze(ie)), ie;
|
|
540
540
|
};
|
|
541
|
-
function
|
|
541
|
+
function fs(h, M, I, ne, le) {
|
|
542
542
|
{
|
|
543
543
|
var me, ce = {}, ie = null, xe = null;
|
|
544
|
-
I !== void 0 && (dr(I), ie = "" + I),
|
|
544
|
+
I !== void 0 && (dr(I), ie = "" + I), os(M) && (dr(M.key), ie = "" + M.key), is(M) && (xe = M.ref, cs(M, le));
|
|
545
545
|
for (me in M)
|
|
546
|
-
Ue.call(M, me) && !
|
|
546
|
+
Ue.call(M, me) && !ss.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 Ls() {
|
|
|
551
551
|
}
|
|
552
552
|
if (ie || xe) {
|
|
553
553
|
var ge = typeof h == "function" ? h.displayName || h.name || "Unknown" : h;
|
|
554
|
-
ie &&
|
|
554
|
+
ie && ls(ce, ge), xe && us(ce, ge);
|
|
555
555
|
}
|
|
556
|
-
return
|
|
556
|
+
return ds(h, ie, xe, le, ne, st.current, ce);
|
|
557
557
|
}
|
|
558
558
|
}
|
|
559
559
|
var dn = v.ReactCurrentOwner, pr = v.ReactDebugCurrentFrame;
|
|
@@ -581,7 +581,7 @@ Check the render method of \`` + h + "`.";
|
|
|
581
581
|
return "";
|
|
582
582
|
}
|
|
583
583
|
}
|
|
584
|
-
function
|
|
584
|
+
function ms(h) {
|
|
585
585
|
{
|
|
586
586
|
if (h !== void 0) {
|
|
587
587
|
var M = h.fileName.replace(/^.*[\\\/]/, ""), I = h.lineNumber;
|
|
@@ -593,7 +593,7 @@ Check your code at ` + M + ":" + I + ".";
|
|
|
593
593
|
}
|
|
594
594
|
}
|
|
595
595
|
var gr = {};
|
|
596
|
-
function
|
|
596
|
+
function ps(h) {
|
|
597
597
|
{
|
|
598
598
|
var M = hr();
|
|
599
599
|
if (!M) {
|
|
@@ -610,7 +610,7 @@ Check the top-level render call using <` + I + ">.");
|
|
|
610
610
|
if (!h._store || h._store.validated || h.key != null)
|
|
611
611
|
return;
|
|
612
612
|
h._store.validated = !0;
|
|
613
|
-
var I =
|
|
613
|
+
var I = ps(M);
|
|
614
614
|
if (gr[I])
|
|
615
615
|
return;
|
|
616
616
|
gr[I] = !0;
|
|
@@ -637,7 +637,7 @@ Check the top-level render call using <` + I + ">.");
|
|
|
637
637
|
}
|
|
638
638
|
}
|
|
639
639
|
}
|
|
640
|
-
function
|
|
640
|
+
function hs(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 <` + I + ">.");
|
|
|
653
653
|
return;
|
|
654
654
|
if (I) {
|
|
655
655
|
var ne = x(M);
|
|
656
|
-
|
|
656
|
+
ts(I, h.props, "prop", ne, h);
|
|
657
657
|
} else if (M.PropTypes !== void 0 && !fn) {
|
|
658
658
|
fn = !0;
|
|
659
659
|
var le = x(M);
|
|
@@ -662,7 +662,7 @@ Check the top-level render call using <` + I + ">.");
|
|
|
662
662
|
typeof M.getDefaultProps == "function" && !M.getDefaultProps.isReactClassApproved && b("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
|
|
663
663
|
}
|
|
664
664
|
}
|
|
665
|
-
function
|
|
665
|
+
function gs(h) {
|
|
666
666
|
{
|
|
667
667
|
for (var M = Object.keys(h.props), I = 0; I < M.length; I++) {
|
|
668
668
|
var ne = M[I];
|
|
@@ -680,12 +680,12 @@ Check the top-level render call using <` + I + ">.");
|
|
|
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 = ms(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 = "<" + (x(h.type) || "Unknown") + " />", ie = " Did you accidentally export a JSX literal instead of a component?") : he = typeof h, b("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 = fs(h, M, I, 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 <` + I + ">.");
|
|
|
701
701
|
else
|
|
702
702
|
br(ke, h);
|
|
703
703
|
}
|
|
704
|
-
return h === r ?
|
|
704
|
+
return h === r ? gs(ge) : hs(ge), ge;
|
|
705
705
|
}
|
|
706
706
|
}
|
|
707
|
-
function
|
|
707
|
+
function vs(h, M, I) {
|
|
708
708
|
return yr(h, M, I, !0);
|
|
709
709
|
}
|
|
710
|
-
function
|
|
710
|
+
function bs(h, M, I) {
|
|
711
711
|
return yr(h, M, I, !1);
|
|
712
712
|
}
|
|
713
|
-
var
|
|
714
|
-
ot.Fragment = r, ot.jsx =
|
|
713
|
+
var ys = bs, _s = vs;
|
|
714
|
+
ot.Fragment = r, ot.jsx = ys, ot.jsxs = _s;
|
|
715
715
|
}()), ot;
|
|
716
716
|
}
|
|
717
|
-
process.env.NODE_ENV === "production" ? qn.exports =
|
|
717
|
+
process.env.NODE_ENV === "production" ? qn.exports = Ds() : qn.exports = Is();
|
|
718
718
|
var a = qn.exports;
|
|
719
|
-
const
|
|
719
|
+
const Ls = () => {
|
|
720
720
|
const [t, e] = X(window.location.pathname), n = () => {
|
|
721
721
|
const r = window.location.pathname;
|
|
722
722
|
e(r);
|
|
@@ -730,7 +730,7 @@ const Bs = () => {
|
|
|
730
730
|
n.current ? t() : n.current = !0;
|
|
731
731
|
}, e);
|
|
732
732
|
};
|
|
733
|
-
function
|
|
733
|
+
function Bs(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;
|
|
@@ -786,9 +786,9 @@ function qs(t, e, n) {
|
|
|
786
786
|
}, [g, _, e, b, y, p, m, v]);
|
|
787
787
|
return E;
|
|
788
788
|
}
|
|
789
|
-
function
|
|
789
|
+
function fa(t, e, n) {
|
|
790
790
|
var r = n === void 0 ? {} : n, s = r.leading, i = r.trailing;
|
|
791
|
-
return
|
|
791
|
+
return Bs(t, e, { maxWait: e, leading: s === void 0 || s, trailing: i === void 0 || i });
|
|
792
792
|
}
|
|
793
793
|
let pn;
|
|
794
794
|
const jt = (t = !0, e = !1, n = "window") => {
|
|
@@ -807,7 +807,7 @@ const jt = (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 = fa(
|
|
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 jt = (t = !0, e = !1, n = "window") => {
|
|
|
817
817
|
{ leading: !0 }
|
|
818
818
|
);
|
|
819
819
|
return r;
|
|
820
|
-
},
|
|
820
|
+
}, qs = ({
|
|
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 jt = (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 = fa(() => {
|
|
851
851
|
d();
|
|
852
852
|
}, 250);
|
|
853
853
|
return s;
|
|
854
|
-
},
|
|
854
|
+
}, Us = (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 jt = (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
|
+
}, ma = (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
|
+
ws(n, r, s);
|
|
870
870
|
}), n;
|
|
871
|
-
},
|
|
871
|
+
}, pa = (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
|
+
}, ha = (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,7 +884,7 @@ const jt = (t = !0, e = !1, n = "window") => {
|
|
|
884
884
|
break;
|
|
885
885
|
}
|
|
886
886
|
return r;
|
|
887
|
-
},
|
|
887
|
+
}, Ws = (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, ""), Zs = (t = "") => t.charAt(0).toUpperCase() + t.slice(1), Be = "https://storage.googleapis.com/apolitical-assets/", ft = {
|
|
888
888
|
general: "hello@apolitical.co",
|
|
889
889
|
support: "concierge@apolitical.co",
|
|
890
890
|
"data-protection": {
|
|
@@ -896,7 +896,7 @@ const jt = (t = !0, e = !1, n = "window") => {
|
|
|
896
896
|
DISCUSSION: "microcourseDiscussion",
|
|
897
897
|
QUIZ: "assessmentQuiz"
|
|
898
898
|
}, $l = "200,000+";
|
|
899
|
-
function
|
|
899
|
+
function Hs(t) {
|
|
900
900
|
return t ? {
|
|
901
901
|
"--icon": `url(${Be}icons/${t}.svg)`
|
|
902
902
|
} : {};
|
|
@@ -912,7 +912,7 @@ const ze = {
|
|
|
912
912
|
weeks: 52,
|
|
913
913
|
days: 365
|
|
914
914
|
}
|
|
915
|
-
},
|
|
915
|
+
}, Vs = (t, e = "en") => new Date(t).toLocaleString(e, { day: "numeric", month: "short" }), ga = (t, e = "en") => new Date(t).toLocaleString(e, {
|
|
916
916
|
weekday: "long",
|
|
917
917
|
day: "numeric",
|
|
918
918
|
month: "short",
|
|
@@ -935,7 +935,7 @@ const ze = {
|
|
|
935
935
|
}, Ut = (t) => {
|
|
936
936
|
const n = (t || /* @__PURE__ */ new Date()).toUTCString();
|
|
937
937
|
return new Date(n);
|
|
938
|
-
},
|
|
938
|
+
}, Ys = (t, e, n) => {
|
|
939
939
|
let r;
|
|
940
940
|
const s = Ut(), i = Ut(new Date(t));
|
|
941
941
|
try {
|
|
@@ -952,7 +952,7 @@ const ze = {
|
|
|
952
952
|
return r / ze.milliseconds.inHour <= e;
|
|
953
953
|
}
|
|
954
954
|
return !1;
|
|
955
|
-
},
|
|
955
|
+
}, Ks = (t) => new Promise((e) => setTimeout(e, t)), rt = {
|
|
956
956
|
/* Common */
|
|
957
957
|
apolitical: "Apolitical",
|
|
958
958
|
dates_now: "now",
|
|
@@ -1369,7 +1369,7 @@ Thank you for helping to protect the Apolitical community from abusive content.`
|
|
|
1369
1369
|
markdown_iframe_video: "Video",
|
|
1370
1370
|
markdown_iframe_padlet: "Interactive board",
|
|
1371
1371
|
markdown_iframe_poll: "Poll"
|
|
1372
|
-
},
|
|
1372
|
+
}, Gs = {
|
|
1373
1373
|
...rt,
|
|
1374
1374
|
/* Navigation */
|
|
1375
1375
|
languageSwitcher_label: "Me gustaría leer este artículo en...",
|
|
@@ -1377,7 +1377,7 @@ Thank you for helping to protect the Apolitical community from abusive content.`
|
|
|
1377
1377
|
languageSwitcher_translation_human: "traducido por un humano",
|
|
1378
1378
|
languageSwitcher_translation_machine: "traducido por máquina",
|
|
1379
1379
|
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>"
|
|
1380
|
-
},
|
|
1380
|
+
}, Qs = {
|
|
1381
1381
|
...rt,
|
|
1382
1382
|
/* Navigation */
|
|
1383
1383
|
languageSwitcher_label: "Je voudrais lire cet article dans...",
|
|
@@ -1387,7 +1387,7 @@ Thank you for helping to protect the Apolitical community from abusive content.`
|
|
|
1387
1387
|
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>",
|
|
1388
1388
|
/* Text */
|
|
1389
1389
|
collapsibleSection_summary: "En savoir plus"
|
|
1390
|
-
},
|
|
1390
|
+
}, Js = {
|
|
1391
1391
|
...rt,
|
|
1392
1392
|
/* Navigation */
|
|
1393
1393
|
languageSwitcher_label: "Eu gostaria de ler este artigo em...",
|
|
@@ -1395,16 +1395,16 @@ Thank you for helping to protect the Apolitical community from abusive content.`
|
|
|
1395
1395
|
languageSwitcher_translation_human: "traduzido por um humano",
|
|
1396
1396
|
languageSwitcher_translation_machine: "traduzido por máquina",
|
|
1397
1397
|
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>"
|
|
1398
|
-
},
|
|
1398
|
+
}, Xs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1399
1399
|
__proto__: null,
|
|
1400
1400
|
en: rt,
|
|
1401
|
-
es:
|
|
1402
|
-
fr:
|
|
1403
|
-
pt:
|
|
1401
|
+
es: Gs,
|
|
1402
|
+
fr: Qs,
|
|
1403
|
+
pt: Js
|
|
1404
1404
|
}, Symbol.toStringTag, { value: "Module" })), Qn = (t, e = rt) => t in e, $e = (t, e, n, r, s = {}) => {
|
|
1405
1405
|
let i = "";
|
|
1406
1406
|
return Qn(`${e}_${n}`) ? i = t({ id: `${e}_${n}` }, s) : i = t({ id: e }, { [r]: n, ...s }), i;
|
|
1407
|
-
},
|
|
1407
|
+
}, ei = (t, e, n) => {
|
|
1408
1408
|
if (!t || t === 0)
|
|
1409
1409
|
return "0";
|
|
1410
1410
|
e || (e = 0), n || (n = ["k", "m", "b", "t"]);
|
|
@@ -1420,12 +1420,12 @@ Thank you for helping to protect the Apolitical community from abusive content.`
|
|
|
1420
1420
|
return r;
|
|
1421
1421
|
}, Bt = (t, e) => Y.Children.map(t, (n) => Object.is(n, null) ? n : Y.cloneElement(n, {
|
|
1422
1422
|
...e
|
|
1423
|
-
})),
|
|
1423
|
+
})), ti = (t = 0) => {
|
|
1424
1424
|
setTimeout(() => {
|
|
1425
1425
|
const e = document.querySelector(".splash-screen");
|
|
1426
1426
|
e && e.remove(), window.prerenderReady = !0;
|
|
1427
1427
|
}, t);
|
|
1428
|
-
},
|
|
1428
|
+
}, ni = (t) => t.replace(/\s+/g, "").length > 0, jr = (t) => {
|
|
1429
1429
|
const e = t.length > 8, n = /[0-9]/.test(t) && /[`!@#$%^&*()_+\-=[\]{}£;':"\\|,.<>/?~]/.test(t), r = new RegExp("^(?=.*?[A-Z])(?=.*?[a-z])").test(t);
|
|
1430
1430
|
return {
|
|
1431
1431
|
isValid: e && n && r,
|
|
@@ -1451,8 +1451,8 @@ Thank you for helping to protect the Apolitical community from abusive content.`
|
|
|
1451
1451
|
}) => {
|
|
1452
1452
|
const p = jt(typeof e == "object");
|
|
1453
1453
|
if (typeof e == "object" && typeof p == "number") {
|
|
1454
|
-
const _ = Object.assign({}, e), v =
|
|
1455
|
-
e =
|
|
1454
|
+
const _ = Object.assign({}, e), v = pa(Object.keys(_));
|
|
1455
|
+
e = ha(p, v, _);
|
|
1456
1456
|
}
|
|
1457
1457
|
const g = [];
|
|
1458
1458
|
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");
|
|
@@ -1587,17 +1587,17 @@ const Oe = ({ className: t = "", maxWidth: e = !1 }) => {
|
|
|
1587
1587
|
],
|
|
1588
1588
|
sizes: "(min-width: 1024px) 453px, 20vw"
|
|
1589
1589
|
}
|
|
1590
|
-
},
|
|
1590
|
+
}, ri = ({
|
|
1591
1591
|
aspect: t,
|
|
1592
1592
|
range: e,
|
|
1593
1593
|
sizes: n
|
|
1594
1594
|
}) => {
|
|
1595
1595
|
const { range: r, sizes: s } = t ? kr[t] : kr.fallback;
|
|
1596
1596
|
return { range: e && e.length > 0 ? e : r, sizes: n || s };
|
|
1597
|
-
},
|
|
1597
|
+
}, ai = ({ format: t, height: e, query: n, width: r }) => {
|
|
1598
1598
|
let s = `w=${r}&h=${e}`;
|
|
1599
1599
|
return s = t ? `${s}&fm=${t}` : s, s = n ? `${s}&${n}` : s, s;
|
|
1600
|
-
}, hn = ({ format: t, range: e, url: n, query: r }) => e.map(({ height: s, width: i }) => `${n}?${
|
|
1600
|
+
}, hn = ({ format: t, range: e, url: n, query: r }) => e.map(({ height: s, width: i }) => `${n}?${ai({
|
|
1601
1601
|
format: t,
|
|
1602
1602
|
height: s,
|
|
1603
1603
|
query: r,
|
|
@@ -1614,7 +1614,7 @@ const Tt = ({ image: t, className: e, testId: n }) => {
|
|
|
1614
1614
|
loading: l,
|
|
1615
1615
|
decoding: u,
|
|
1616
1616
|
fetchPriority: f
|
|
1617
|
-
} = t, { range: m, sizes: p } =
|
|
1617
|
+
} = t, { range: m, sizes: p } = ri(t), g = hn({ format: "avif", query: o, range: m, url: c }), y = hn({ format: "webp", query: o, range: m, url: c }), _ = hn({ format: "", query: o, range: m, url: c });
|
|
1618
1618
|
return /* @__PURE__ */ a.jsxs("picture", { className: e, children: [
|
|
1619
1619
|
i !== "image/gif" && /* @__PURE__ */ a.jsx(
|
|
1620
1620
|
"source",
|
|
@@ -1720,7 +1720,7 @@ const Ml = ({ elementId: t, offset: e = 20 }) => {
|
|
|
1720
1720
|
}
|
|
1721
1721
|
);
|
|
1722
1722
|
}, Tr = 300, Er = "ease-in-out";
|
|
1723
|
-
class
|
|
1723
|
+
class si {
|
|
1724
1724
|
constructor(e) {
|
|
1725
1725
|
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));
|
|
1726
1726
|
}
|
|
@@ -1772,7 +1772,7 @@ const Jn = ({
|
|
|
1772
1772
|
const s = H(), i = pe(null);
|
|
1773
1773
|
return ae(() => {
|
|
1774
1774
|
let o;
|
|
1775
|
-
return r && (o = new
|
|
1775
|
+
return r && (o = new si(i.current)), () => {
|
|
1776
1776
|
r && o && o.cleanUp();
|
|
1777
1777
|
};
|
|
1778
1778
|
}, []), /* @__PURE__ */ a.jsxs(
|
|
@@ -1794,7 +1794,7 @@ const Jn = ({
|
|
|
1794
1794
|
person: "user",
|
|
1795
1795
|
speech: "speech-bubble_round",
|
|
1796
1796
|
star: "star_empty_thin"
|
|
1797
|
-
},
|
|
1797
|
+
}, ii = (t) => {
|
|
1798
1798
|
let e = t;
|
|
1799
1799
|
return Object.keys(Sr).includes(t) && (e = Sr[t]), `url(${Be}icons/${e}.svg)`;
|
|
1800
1800
|
};
|
|
@@ -1806,13 +1806,13 @@ const Cr = {
|
|
|
1806
1806
|
listPage: "list",
|
|
1807
1807
|
learningHub: "learning-hub",
|
|
1808
1808
|
communityPage: "communityPage"
|
|
1809
|
-
},
|
|
1809
|
+
}, oi = ({
|
|
1810
1810
|
contentType: t,
|
|
1811
1811
|
customIcon: e,
|
|
1812
1812
|
customLabel: n,
|
|
1813
1813
|
className: r = ""
|
|
1814
1814
|
}) => {
|
|
1815
|
-
const s = H(), i = e ? { "--custom-icon":
|
|
1815
|
+
const s = H(), i = e ? { "--custom-icon": ii(e) } : {}, o = Qn(`contentTypeLabel_${t}`) ? s.formatMessage({ id: `contentTypeLabel_${t}` }) : !1;
|
|
1816
1816
|
return !n && !o ? null : /* @__PURE__ */ a.jsx(
|
|
1817
1817
|
"small",
|
|
1818
1818
|
{
|
|
@@ -1862,8 +1862,8 @@ const He = ({
|
|
|
1862
1862
|
let s = n && !!Object.keys(n).length;
|
|
1863
1863
|
const i = typeof n == "object" && "breakpoints" in n, o = jt(i);
|
|
1864
1864
|
if (i && typeof n == "object" && typeof o == "number") {
|
|
1865
|
-
const f = Object.assign({}, n.breakpoints), m =
|
|
1866
|
-
s =
|
|
1865
|
+
const f = Object.assign({}, n.breakpoints), m = pa(Object.keys(f));
|
|
1866
|
+
s = ha(o, m, f);
|
|
1867
1867
|
}
|
|
1868
1868
|
const {
|
|
1869
1869
|
breakpoints: c,
|
|
@@ -1890,10 +1890,10 @@ const He = ({
|
|
|
1890
1890
|
}
|
|
1891
1891
|
);
|
|
1892
1892
|
};
|
|
1893
|
-
const Wn = ({ children: t, ...e }) => /* @__PURE__ */ a.jsx("p", { ...e, children: t }),
|
|
1893
|
+
const Wn = ({ children: t, ...e }) => /* @__PURE__ */ a.jsx("p", { ...e, children: t }), va = { q: Wn, blockquote: Wn };
|
|
1894
1894
|
for (let t = 1; t <= 6; t++)
|
|
1895
|
-
|
|
1896
|
-
const
|
|
1895
|
+
va[`h${t}`] = { component: Wn, props: { className: "title" } };
|
|
1896
|
+
const ci = ({
|
|
1897
1897
|
type: t = "default",
|
|
1898
1898
|
className: e = "",
|
|
1899
1899
|
heading: n = !1,
|
|
@@ -1906,7 +1906,7 @@ const li = ({
|
|
|
1906
1906
|
options: {
|
|
1907
1907
|
wrapper: Y.Fragment,
|
|
1908
1908
|
forceBlock: !0,
|
|
1909
|
-
overrides:
|
|
1909
|
+
overrides: va
|
|
1910
1910
|
},
|
|
1911
1911
|
children: r
|
|
1912
1912
|
}
|
|
@@ -1996,7 +1996,7 @@ const Fl = ({
|
|
|
1996
1996
|
] }, `dl-${l}`) : /* @__PURE__ */ a.jsx("li", { style: f, children: typeof d.text == "string" ? /* @__PURE__ */ a.jsx(Le, { options: u, children: d.text }) : d.text }, l);
|
|
1997
1997
|
})
|
|
1998
1998
|
});
|
|
1999
|
-
}, _e = () => Y.Fragment,
|
|
1999
|
+
}, _e = () => Y.Fragment, li = ({ children: t }) => /* @__PURE__ */ a.jsx(Fe, { variant: "secondary", children: t }), ui = ({ 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 }), di = ["span", "strong", "h1", "h2", "h3", "h4", "h5", "h6", "p"], fi = ({ children: t }) => {
|
|
2000
2000
|
const e = H();
|
|
2001
2001
|
if (!t)
|
|
2002
2002
|
return null;
|
|
@@ -2011,7 +2011,7 @@ const Fl = ({
|
|
|
2011
2011
|
for (const o of Bn.toArray(i.props.children))
|
|
2012
2012
|
if (!(!o || typeof o == "string" || typeof o == "number") && Y.isValidElement(o)) {
|
|
2013
2013
|
const c = o.type;
|
|
2014
|
-
if (
|
|
2014
|
+
if (di.includes(c)) {
|
|
2015
2015
|
for (n = o.props.children; typeof n != "string" && (Array.isArray(n) && n[0].props && n[0].props.children && n[0].props.children[0]); )
|
|
2016
2016
|
n = n[0].props.children[0];
|
|
2017
2017
|
break;
|
|
@@ -2029,7 +2029,7 @@ const Fl = ({
|
|
|
2029
2029
|
children: r.map((i) => i)
|
|
2030
2030
|
}
|
|
2031
2031
|
);
|
|
2032
|
-
},
|
|
2032
|
+
}, mi = ({
|
|
2033
2033
|
children: t,
|
|
2034
2034
|
...e
|
|
2035
2035
|
}) => {
|
|
@@ -2048,7 +2048,7 @@ const Fl = ({
|
|
|
2048
2048
|
return /* @__PURE__ */ a.jsx("div", { ...e, children: t });
|
|
2049
2049
|
}
|
|
2050
2050
|
return /* @__PURE__ */ a.jsx("div", { ...e, children: t });
|
|
2051
|
-
},
|
|
2051
|
+
}, pi = (t) => {
|
|
2052
2052
|
const e = H(), n = Date.now().toString();
|
|
2053
2053
|
let r = "default";
|
|
2054
2054
|
const s = t.src;
|
|
@@ -2070,7 +2070,7 @@ const Fl = ({
|
|
|
2070
2070
|
}, $r = (t) => {
|
|
2071
2071
|
let e = "";
|
|
2072
2072
|
return t && typeof t != "string" && typeof t != "number" && typeof t != "boolean" && "type" in t && (e = t.type), e;
|
|
2073
|
-
},
|
|
2073
|
+
}, hi = ({
|
|
2074
2074
|
children: t,
|
|
2075
2075
|
...e
|
|
2076
2076
|
}) => {
|
|
@@ -2088,22 +2088,22 @@ const Fl = ({
|
|
|
2088
2088
|
break;
|
|
2089
2089
|
}
|
|
2090
2090
|
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 });
|
|
2091
|
-
},
|
|
2092
|
-
const
|
|
2091
|
+
}, gi = ({ children: t }) => /* @__PURE__ */ a.jsx("span", { children: t });
|
|
2092
|
+
const vi = {
|
|
2093
2093
|
default: {
|
|
2094
|
-
a:
|
|
2094
|
+
a: hi,
|
|
2095
2095
|
// Override psuedo-code
|
|
2096
2096
|
// We give the content team psuedo-code short cuts to use in Contentful
|
|
2097
2097
|
CollapsibleSection: Jn,
|
|
2098
2098
|
TextBox: Fe,
|
|
2099
|
-
CaseStudy:
|
|
2099
|
+
CaseStudy: li,
|
|
2100
2100
|
// Override embedded HTML
|
|
2101
2101
|
// Our content team previously used real HTML, which we need to tear out and replace with React components
|
|
2102
2102
|
style: _e,
|
|
2103
|
-
details:
|
|
2104
|
-
div:
|
|
2105
|
-
iframe:
|
|
2106
|
-
center:
|
|
2103
|
+
details: fi,
|
|
2104
|
+
div: mi,
|
|
2105
|
+
iframe: pi,
|
|
2106
|
+
center: ui
|
|
2107
2107
|
},
|
|
2108
2108
|
"text-only": {
|
|
2109
2109
|
h1: _e,
|
|
@@ -2134,7 +2134,7 @@ const bi = {
|
|
|
2134
2134
|
const o = {
|
|
2135
2135
|
wrapper: Y.Fragment,
|
|
2136
2136
|
forceBlock: !0,
|
|
2137
|
-
overrides:
|
|
2137
|
+
overrides: vi[r]
|
|
2138
2138
|
};
|
|
2139
2139
|
return /* @__PURE__ */ a.jsx(
|
|
2140
2140
|
"div",
|
|
@@ -2146,7 +2146,7 @@ const bi = {
|
|
|
2146
2146
|
}
|
|
2147
2147
|
);
|
|
2148
2148
|
};
|
|
2149
|
-
const
|
|
2149
|
+
const bi = ({
|
|
2150
2150
|
maxWidth: t = !1,
|
|
2151
2151
|
title: e,
|
|
2152
2152
|
subtitle: n,
|
|
@@ -2203,11 +2203,11 @@ const Wt = ({
|
|
|
2203
2203
|
},
|
|
2204
2204
|
e
|
|
2205
2205
|
);
|
|
2206
|
-
const
|
|
2206
|
+
const yi = ({ author: t, authorCite: e, content: n }) => /* @__PURE__ */ a.jsxs("blockquote", { className: "testimonial-block", children: [
|
|
2207
2207
|
/* @__PURE__ */ a.jsx(Le, { className: "testimonial", children: n }),
|
|
2208
2208
|
t && /* @__PURE__ */ a.jsx("p", { className: "author text-small", children: t }),
|
|
2209
2209
|
e && /* @__PURE__ */ a.jsx("p", { className: "author-cite text-small", children: /* @__PURE__ */ a.jsx("cite", { children: e }) })
|
|
2210
|
-
] }), Ol = Ae(
|
|
2210
|
+
] }), Ol = Ae(yi);
|
|
2211
2211
|
const Al = ({
|
|
2212
2212
|
items: t = [],
|
|
2213
2213
|
selector: e = "",
|
|
@@ -2277,7 +2277,7 @@ const Xn = ({
|
|
|
2277
2277
|
return n && (l = `${n} ${l}`, d = `${n} ${d}`), r && (l = `${l} ${r}`, d = `${d} ${r}`), /* @__PURE__ */ a.jsx("span", { className: S("time-to-complete", s), "aria-label": l, children: d });
|
|
2278
2278
|
};
|
|
2279
2279
|
let ct = !1;
|
|
2280
|
-
const
|
|
2280
|
+
const _i = ({ isOpen: t = !1, isLoading: e = !1, children: n }) => {
|
|
2281
2281
|
const r = H(), s = pe(null), [i, o] = X("hidden");
|
|
2282
2282
|
ae(() => {
|
|
2283
2283
|
const d = s.current;
|
|
@@ -2362,14 +2362,14 @@ const Il = ({ text: t, buttons: e, className: n = "" }) => {
|
|
|
2362
2362
|
/* @__PURE__ */ a.jsx(kt, { buttons: r })
|
|
2363
2363
|
] }) });
|
|
2364
2364
|
};
|
|
2365
|
-
function
|
|
2365
|
+
function ba({ href: t, setShowModal: e }) {
|
|
2366
2366
|
typeof t != "string" && e(!0);
|
|
2367
2367
|
}
|
|
2368
|
-
const
|
|
2368
|
+
const xi = ({ icon: t, description: e, ctaMessage: n, href: r, showEditButton: s, setShowModal: i }) => {
|
|
2369
2369
|
const { formatMessage: o } = H();
|
|
2370
|
-
return /* @__PURE__ */ a.jsxs("div", { className: S("edit-section-placeholder", { "has-icon": !!t }), style:
|
|
2370
|
+
return /* @__PURE__ */ a.jsxs("div", { className: S("edit-section-placeholder", { "has-icon": !!t }), style: Hs(t), children: [
|
|
2371
2371
|
/* @__PURE__ */ a.jsx("p", { children: e || o({ id: "edit_section_placeholder_description" }) }),
|
|
2372
|
-
s && /* @__PURE__ */ a.jsx(se, { href: r, variant: "secondary", size: "small", onClick: () =>
|
|
2372
|
+
s && /* @__PURE__ */ a.jsx(se, { href: r, variant: "secondary", size: "small", onClick: () => ba({ href: r, setShowModal: i }), children: n || o({ id: "edit_section_placeholder_cta" }) })
|
|
2373
2373
|
] });
|
|
2374
2374
|
}, Ll = ({
|
|
2375
2375
|
children: t,
|
|
@@ -2409,9 +2409,9 @@ const wi = ({ icon: t, description: e, ctaMessage: n, href: r, showEditButton: s
|
|
|
2409
2409
|
),
|
|
2410
2410
|
/* @__PURE__ */ a.jsxs("div", { className: "edit-section-header", children: [
|
|
2411
2411
|
/* @__PURE__ */ a.jsx("h2", { className: "edit-section-header-title", children: s }),
|
|
2412
|
-
u && /* @__PURE__ */ a.jsx(se, { href: r, variant: "tertiary", size: "small", icon: "pencil", onClick: () =>
|
|
2412
|
+
u && /* @__PURE__ */ a.jsx(se, { href: r, variant: "tertiary", size: "small", icon: "pencil", onClick: () => ba({ href: r, setShowModal: l }), children: "Edit" })
|
|
2413
2413
|
] }),
|
|
2414
|
-
t || /* @__PURE__ */ a.jsx(
|
|
2414
|
+
t || /* @__PURE__ */ a.jsx(xi, { ...o, href: r, setShowModal: l, showEditButton: u }),
|
|
2415
2415
|
c && /* @__PURE__ */ a.jsx(Oe, {})
|
|
2416
2416
|
] });
|
|
2417
2417
|
};
|
|
@@ -2472,7 +2472,7 @@ const Bl = ({
|
|
|
2472
2472
|
}
|
|
2473
2473
|
);
|
|
2474
2474
|
};
|
|
2475
|
-
const
|
|
2475
|
+
const wi = [
|
|
2476
2476
|
"small",
|
|
2477
2477
|
"span",
|
|
2478
2478
|
"strong",
|
|
@@ -2486,7 +2486,7 @@ const ji = [
|
|
|
2486
2486
|
"h6",
|
|
2487
2487
|
"blockquote",
|
|
2488
2488
|
"q"
|
|
2489
|
-
],
|
|
2489
|
+
], ji = ({
|
|
2490
2490
|
className: t = "",
|
|
2491
2491
|
content: e,
|
|
2492
2492
|
image: n,
|
|
@@ -2510,7 +2510,7 @@ const ji = [
|
|
|
2510
2510
|
if (typeof e[f] == "object") {
|
|
2511
2511
|
u[f] = e[f];
|
|
2512
2512
|
const { text: m, element: p } = e[f];
|
|
2513
|
-
if (p &&
|
|
2513
|
+
if (p && wi.includes(p.toLowerCase()))
|
|
2514
2514
|
return;
|
|
2515
2515
|
u[f] = {
|
|
2516
2516
|
text: m,
|
|
@@ -2559,7 +2559,7 @@ const ji = [
|
|
|
2559
2559
|
] })
|
|
2560
2560
|
}
|
|
2561
2561
|
);
|
|
2562
|
-
}, ql = Ae(
|
|
2562
|
+
}, ql = Ae(ji);
|
|
2563
2563
|
const Ul = ({
|
|
2564
2564
|
image: t,
|
|
2565
2565
|
variant: e = "default",
|
|
@@ -2578,7 +2578,7 @@ const Ul = ({
|
|
|
2578
2578
|
}
|
|
2579
2579
|
);
|
|
2580
2580
|
};
|
|
2581
|
-
const
|
|
2581
|
+
const ki = ({
|
|
2582
2582
|
alignImage: t = "left",
|
|
2583
2583
|
className: e,
|
|
2584
2584
|
content: n,
|
|
@@ -2613,7 +2613,7 @@ const Ti = ({
|
|
|
2613
2613
|
}
|
|
2614
2614
|
)
|
|
2615
2615
|
] });
|
|
2616
|
-
}, Wl = Ae(
|
|
2616
|
+
}, Wl = Ae(ki);
|
|
2617
2617
|
const zl = ({
|
|
2618
2618
|
variant: t = "primary",
|
|
2619
2619
|
button: e = null,
|
|
@@ -2635,8 +2635,8 @@ const zl = ({
|
|
|
2635
2635
|
children: e.text
|
|
2636
2636
|
}
|
|
2637
2637
|
)
|
|
2638
|
-
] }),
|
|
2639
|
-
const n = new
|
|
2638
|
+
] }), Ti = ({ showDevTools: t = !0, children: e }) => {
|
|
2639
|
+
const n = new Ts({
|
|
2640
2640
|
// default options we would like on all queries can be overridden individually
|
|
2641
2641
|
defaultOptions: {
|
|
2642
2642
|
queries: {
|
|
@@ -2647,20 +2647,20 @@ const zl = ({
|
|
|
2647
2647
|
}
|
|
2648
2648
|
}
|
|
2649
2649
|
});
|
|
2650
|
-
return /* @__PURE__ */ a.jsxs(
|
|
2650
|
+
return /* @__PURE__ */ a.jsxs(Es, { client: n, children: [
|
|
2651
2651
|
e,
|
|
2652
|
-
t && /* @__PURE__ */ a.jsx(
|
|
2652
|
+
t && /* @__PURE__ */ a.jsx(Cs, { initialIsOpen: !1 })
|
|
2653
2653
|
] });
|
|
2654
2654
|
};
|
|
2655
|
-
var
|
|
2656
|
-
function
|
|
2655
|
+
var Ei = nn({ client: Lt });
|
|
2656
|
+
function Si(t) {
|
|
2657
2657
|
var e = t.children, n = t.client, r = t.apiKey, s = t.options, i = wt(function() {
|
|
2658
2658
|
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);
|
|
2659
2659
|
}, [n, r]);
|
|
2660
|
-
return Y.createElement(
|
|
2660
|
+
return Y.createElement(Ei.Provider, { value: { client: i } }, e);
|
|
2661
2661
|
}
|
|
2662
|
-
const
|
|
2663
|
-
|
|
2662
|
+
const Ci = ({ children: t, user: e }) => e.isLoading ? null : process.env.REACT_APP_PUBLIC_POSTHOG_KEY ? /* @__PURE__ */ a.jsx(
|
|
2663
|
+
Si,
|
|
2664
2664
|
{
|
|
2665
2665
|
apiKey: atob(process.env.REACT_APP_PUBLIC_POSTHOG_KEY),
|
|
2666
2666
|
options: {
|
|
@@ -2678,13 +2678,13 @@ const $i = ({ children: t, user: e }) => e.isLoading ? null : process.env.REACT_
|
|
|
2678
2678
|
},
|
|
2679
2679
|
children: t
|
|
2680
2680
|
}
|
|
2681
|
-
) : /* @__PURE__ */ a.jsx(a.Fragment, { children: t }),
|
|
2681
|
+
) : /* @__PURE__ */ a.jsx(a.Fragment, { children: t }), $i = ({ children: t, locale: e, messages: n }) => {
|
|
2682
2682
|
const r = e || "en", s = {
|
|
2683
|
-
...
|
|
2683
|
+
...Xs[r],
|
|
2684
2684
|
...n || {}
|
|
2685
2685
|
};
|
|
2686
|
-
return /* @__PURE__ */ a.jsx(
|
|
2687
|
-
},
|
|
2686
|
+
return /* @__PURE__ */ a.jsx(js, { locale: r, messages: s, children: t });
|
|
2687
|
+
}, ya = nn({}), gn = {
|
|
2688
2688
|
en: "English",
|
|
2689
2689
|
es: "Español",
|
|
2690
2690
|
fr: "Français",
|
|
@@ -2693,24 +2693,24 @@ const $i = ({ children: t, user: e }) => e.isLoading ? null : process.env.REACT_
|
|
|
2693
2693
|
function er() {
|
|
2694
2694
|
return Ee(De);
|
|
2695
2695
|
}
|
|
2696
|
-
const
|
|
2696
|
+
const Ni = ({ children: t, user: e }) => /* @__PURE__ */ a.jsx(De.Provider, { value: e, children: t }), Zl = ({ bootstrap: t, children: e, intl: n, showDevTools: r }) => {
|
|
2697
2697
|
const [s, i] = X({ isLoading: !0 }), o = (n == null ? void 0 : n.locale) || localStorage.getItem("language") || "en", [c, d] = X(o), l = (u) => {
|
|
2698
2698
|
localStorage.setItem("language", u), d(u);
|
|
2699
2699
|
};
|
|
2700
2700
|
return ae(() => {
|
|
2701
2701
|
t().then((u) => {
|
|
2702
|
-
i({ ...u, isLoading: !1 }),
|
|
2702
|
+
i({ ...u, isLoading: !1 }), ti(5e3);
|
|
2703
2703
|
}).catch(() => i({ isLoading: !1 }));
|
|
2704
|
-
}, []), /* @__PURE__ */ a.jsx(
|
|
2705
|
-
|
|
2704
|
+
}, []), /* @__PURE__ */ a.jsx(ya.Provider, { value: { language: c, updateLanguage: l }, children: /* @__PURE__ */ a.jsx(
|
|
2705
|
+
$i,
|
|
2706
2706
|
{
|
|
2707
2707
|
locale: c,
|
|
2708
2708
|
messages: n == null ? void 0 : n.messages,
|
|
2709
|
-
children: /* @__PURE__ */ a.jsx(
|
|
2709
|
+
children: /* @__PURE__ */ a.jsx($s, { children: /* @__PURE__ */ a.jsx(Ni, { user: s, children: /* @__PURE__ */ a.jsx(Ti, { showDevTools: r, children: /* @__PURE__ */ a.jsx(Ci, { user: s, children: e }) }) }) })
|
|
2710
2710
|
}
|
|
2711
2711
|
) });
|
|
2712
2712
|
};
|
|
2713
|
-
const
|
|
2713
|
+
const Pi = ({
|
|
2714
2714
|
styling: t = {},
|
|
2715
2715
|
progress: e = 0,
|
|
2716
2716
|
text: n = !1,
|
|
@@ -2736,8 +2736,8 @@ const Mi = ({
|
|
|
2736
2736
|
})
|
|
2737
2737
|
}
|
|
2738
2738
|
);
|
|
2739
|
-
},
|
|
2740
|
-
const vn = "loadingBlock_",
|
|
2739
|
+
}, _a = Ae(Pi);
|
|
2740
|
+
const vn = "loadingBlock_", Mi = ({ progress: t = 0, steps: e = !1, className: n = "" }) => {
|
|
2741
2741
|
const r = H();
|
|
2742
2742
|
e || (e = {
|
|
2743
2743
|
0: { text: r.formatMessage({ id: `${vn}loading` }) },
|
|
@@ -2761,11 +2761,11 @@ const vn = "loadingBlock_", Ri = ({ progress: t = 0, steps: e = !1, className: n
|
|
|
2761
2761
|
style: o,
|
|
2762
2762
|
children: [
|
|
2763
2763
|
s && /* @__PURE__ */ a.jsx("span", { className: "step", children: e[s].text }),
|
|
2764
|
-
/* @__PURE__ */ a.jsx(
|
|
2764
|
+
/* @__PURE__ */ a.jsx(_a, { progress: t })
|
|
2765
2765
|
]
|
|
2766
2766
|
}
|
|
2767
2767
|
);
|
|
2768
|
-
}, Hl = Ae(
|
|
2768
|
+
}, Hl = Ae(Mi);
|
|
2769
2769
|
const Se = ({ element: t = "div", className: e = "", ...n }) => /* @__PURE__ */ a.jsx(
|
|
2770
2770
|
Gn,
|
|
2771
2771
|
{
|
|
@@ -2823,11 +2823,11 @@ const zn = {
|
|
|
2823
2823
|
"course-navigation": ["button", "button"],
|
|
2824
2824
|
"course-lesson-page": ["breadcrumb", "course-navigation", "text-page"],
|
|
2825
2825
|
"course-lesson-quiz": ["text-page", "quiz-box"]
|
|
2826
|
-
},
|
|
2826
|
+
}, xa = (t, e) => t in zn ? /* @__PURE__ */ a.jsx("div", { className: t, children: zn[t].map((n, r) => xa(n, r)) }, e) : /* @__PURE__ */ a.jsx(Se, { className: t }, e), wa = ({ layout: t = "overview-page", ...e }) => /* @__PURE__ */ a.jsx("div", { className: S("loading-state", t), ...e, children: zn[t].map((n, r) => xa(n, r)) }), ja = (t) => {
|
|
2827
2827
|
const e = t && t.toUpperCase().trim().split(" ");
|
|
2828
2828
|
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) : "";
|
|
2829
|
-
}, Ct = ["#5AB6A3", "#A2D7AF", "#806056", "#3962B3"],
|
|
2830
|
-
const e = Math.ceil(26 / Ct.length), n =
|
|
2829
|
+
}, Ct = ["#5AB6A3", "#A2D7AF", "#806056", "#3962B3"], Ri = (t) => {
|
|
2830
|
+
const e = Math.ceil(26 / Ct.length), n = ja(t).toLowerCase();
|
|
2831
2831
|
if (n === "")
|
|
2832
2832
|
return Ct[0];
|
|
2833
2833
|
const r = n.charCodeAt(0) - 96;
|
|
@@ -2853,7 +2853,7 @@ const Nr = 256, Ye = ({
|
|
|
2853
2853
|
if (!m)
|
|
2854
2854
|
return;
|
|
2855
2855
|
const p = s, g = i;
|
|
2856
|
-
typeof window < "u" && window.devicePixelRatio && (f.width = p * window.devicePixelRatio, f.height = g * window.devicePixelRatio, m.scale(window.devicePixelRatio, window.devicePixelRatio)), m.fillStyle =
|
|
2856
|
+
typeof window < "u" && window.devicePixelRatio && (f.width = p * window.devicePixelRatio, f.height = g * window.devicePixelRatio, m.scale(window.devicePixelRatio, window.devicePixelRatio)), m.fillStyle = Ri(n), m.fillRect(0, 0, p, g), m.font = `${p / 3}px Arial`, m.textAlign = "center", m.fillStyle = "white", m.fillText(ja(n), p / 2, g / 1.6);
|
|
2857
2857
|
}, [n]);
|
|
2858
2858
|
let u = !1;
|
|
2859
2859
|
return e && e !== "" && !c && (e.includes("http") || e.includes("//")) && (u = !0), /* @__PURE__ */ a.jsx(
|
|
@@ -2875,7 +2875,7 @@ const Nr = 256, Ye = ({
|
|
|
2875
2875
|
) : /* @__PURE__ */ a.jsx("canvas", { ref: l })
|
|
2876
2876
|
}
|
|
2877
2877
|
);
|
|
2878
|
-
},
|
|
2878
|
+
}, ka = (t) => t === "apolitical" ? {
|
|
2879
2879
|
image: `${Be}logos/member_apolitical.svg`
|
|
2880
2880
|
} : t === "community" || typeof t == "object" && !t.name ? {
|
|
2881
2881
|
image: `${Be}logos/member_community.svg`
|
|
@@ -2886,7 +2886,7 @@ const Nr = 256, Ye = ({
|
|
|
2886
2886
|
country: t.location && t.location.country || "",
|
|
2887
2887
|
url: `/profiles/${t.id}`,
|
|
2888
2888
|
image: t.image && t.image.thumbnail
|
|
2889
|
-
},
|
|
2889
|
+
}, Fi = ({
|
|
2890
2890
|
role: t = "",
|
|
2891
2891
|
organisation: e = "",
|
|
2892
2892
|
country: n = "",
|
|
@@ -2907,11 +2907,11 @@ const tr = ({
|
|
|
2907
2907
|
gtmType: s = "member-click",
|
|
2908
2908
|
className: i = ""
|
|
2909
2909
|
}) => {
|
|
2910
|
-
const o = H(), c =
|
|
2910
|
+
const o = H(), c = ka(e);
|
|
2911
2911
|
c.name || (c.name = o.formatMessage({
|
|
2912
2912
|
id: `member_${typeof e == "string" ? e : "community"}`
|
|
2913
2913
|
}));
|
|
2914
|
-
const { name: d, url: l, image: u } = c, f =
|
|
2914
|
+
const { name: d, url: l, image: u } = c, f = Fi(c), m = n && n.createdAt ? Un(n.createdAt) : !1, p = n && n.createdAt ? ga(n.createdAt) : "";
|
|
2915
2915
|
return Y.createElement(t, {
|
|
2916
2916
|
className: S("member text-medium", i),
|
|
2917
2917
|
children: /* @__PURE__ */ a.jsxs(
|
|
@@ -2944,7 +2944,7 @@ const tr = ({
|
|
|
2944
2944
|
const Pr = {
|
|
2945
2945
|
small: 24,
|
|
2946
2946
|
medium: 48
|
|
2947
|
-
},
|
|
2947
|
+
}, Ta = ({
|
|
2948
2948
|
element: t = "div",
|
|
2949
2949
|
contributors: { total: e, data: n } = { total: void 0, data: [] },
|
|
2950
2950
|
styling: { showText: r, size: s, showGap: i, showPlaceholders: o } = {
|
|
@@ -2966,7 +2966,7 @@ const Pr = {
|
|
|
2966
2966
|
/* @__PURE__ */ a.jsx("ul", { children: n.map((m, p) => {
|
|
2967
2967
|
let g, y = "";
|
|
2968
2968
|
if (p < c) {
|
|
2969
|
-
const { name: _ = "", image: v = "" } =
|
|
2969
|
+
const { name: _ = "", image: v = "" } = ka(m);
|
|
2970
2970
|
if (o)
|
|
2971
2971
|
return /* @__PURE__ */ a.jsx(Se, { element: "li", className: "contributor" }, p);
|
|
2972
2972
|
g = /* @__PURE__ */ a.jsx(
|
|
@@ -2986,7 +2986,7 @@ const Pr = {
|
|
|
2986
2986
|
className: S({ "large-number": _ > 99 }),
|
|
2987
2987
|
children: [
|
|
2988
2988
|
"+",
|
|
2989
|
-
|
|
2989
|
+
ei(_, 0)
|
|
2990
2990
|
]
|
|
2991
2991
|
}
|
|
2992
2992
|
), y = "number-left";
|
|
@@ -2997,7 +2997,7 @@ const Pr = {
|
|
|
2997
2997
|
] })
|
|
2998
2998
|
});
|
|
2999
2999
|
};
|
|
3000
|
-
const $t = "emailHelperTextBox_",
|
|
3000
|
+
const $t = "emailHelperTextBox_", Oi = ({
|
|
3001
3001
|
type: t,
|
|
3002
3002
|
email: e,
|
|
3003
3003
|
redirectPath: n,
|
|
@@ -3009,7 +3009,7 @@ const $t = "emailHelperTextBox_", Ai = ({
|
|
|
3009
3009
|
link: {},
|
|
3010
3010
|
mail: {},
|
|
3011
3011
|
error: ""
|
|
3012
|
-
}), [c, d] = X(!1), l =
|
|
3012
|
+
}), [c, d] = X(!1), l = sa(
|
|
3013
3013
|
(p) => {
|
|
3014
3014
|
p.preventDefault(), p.stopPropagation();
|
|
3015
3015
|
const g = (y) => {
|
|
@@ -3109,7 +3109,7 @@ const $t = "emailHelperTextBox_", Ai = ({
|
|
|
3109
3109
|
return ["link", "mail"].forEach((p) => {
|
|
3110
3110
|
u[p] = Object.keys(i[p]).length ? (g) => /* @__PURE__ */ a.jsx("a", { ...i[p], children: g }) : (g) => g;
|
|
3111
3111
|
}), /* @__PURE__ */ a.jsx(
|
|
3112
|
-
|
|
3112
|
+
ci,
|
|
3113
3113
|
{
|
|
3114
3114
|
type: i.type,
|
|
3115
3115
|
heading: c ? !1 : s.formatMessage({ id: `${i.path}_title` }),
|
|
@@ -3172,7 +3172,7 @@ const Qe = {
|
|
|
3172
3172
|
UP: "ArrowUp",
|
|
3173
3173
|
DOWN: "ArrowDown",
|
|
3174
3174
|
ENTER: "Enter"
|
|
3175
|
-
},
|
|
3175
|
+
}, Ai = 500, Di = ({
|
|
3176
3176
|
value: t,
|
|
3177
3177
|
placeholder: e,
|
|
3178
3178
|
functions: n = {
|
|
@@ -3196,7 +3196,7 @@ const Qe = {
|
|
|
3196
3196
|
e || (e = p({ id: "inputAutocomplete_placeholder" })), ae(() => {
|
|
3197
3197
|
const v = setTimeout(() => {
|
|
3198
3198
|
f || d((b) => ({ ...b, debouncedInput: i }));
|
|
3199
|
-
},
|
|
3199
|
+
}, Ai);
|
|
3200
3200
|
return () => {
|
|
3201
3201
|
clearTimeout(v);
|
|
3202
3202
|
};
|
|
@@ -3242,7 +3242,7 @@ const Qe = {
|
|
|
3242
3242
|
)) })
|
|
3243
3243
|
] });
|
|
3244
3244
|
};
|
|
3245
|
-
const
|
|
3245
|
+
const Ea = ({
|
|
3246
3246
|
className: t = "",
|
|
3247
3247
|
disabled: e,
|
|
3248
3248
|
element: n = "p",
|
|
@@ -3295,7 +3295,7 @@ const Sa = ({
|
|
|
3295
3295
|
_
|
|
3296
3296
|
);
|
|
3297
3297
|
};
|
|
3298
|
-
const
|
|
3298
|
+
const Ii = Ae(function({
|
|
3299
3299
|
direction: e = "down"
|
|
3300
3300
|
}) {
|
|
3301
3301
|
return /* @__PURE__ */ a.jsx(
|
|
@@ -3305,7 +3305,7 @@ const Li = Ae(function({
|
|
|
3305
3305
|
}
|
|
3306
3306
|
);
|
|
3307
3307
|
});
|
|
3308
|
-
const
|
|
3308
|
+
const Li = ({
|
|
3309
3309
|
className: t,
|
|
3310
3310
|
options: e,
|
|
3311
3311
|
initialValue: n,
|
|
@@ -3352,7 +3352,7 @@ const Bi = ({
|
|
|
3352
3352
|
...k,
|
|
3353
3353
|
children: [
|
|
3354
3354
|
c ? `${o} · ${y.length}` : v.label,
|
|
3355
|
-
/* @__PURE__ */ a.jsx(
|
|
3355
|
+
/* @__PURE__ */ a.jsx(Ii, { direction: f ? "up" : "down" })
|
|
3356
3356
|
]
|
|
3357
3357
|
}
|
|
3358
3358
|
),
|
|
@@ -3450,7 +3450,7 @@ const Bi = ({
|
|
|
3450
3450
|
)
|
|
3451
3451
|
] });
|
|
3452
3452
|
};
|
|
3453
|
-
const
|
|
3453
|
+
const Bi = ({
|
|
3454
3454
|
className: t = "",
|
|
3455
3455
|
functions: e = { onChange: () => {
|
|
3456
3456
|
} },
|
|
@@ -3491,7 +3491,7 @@ const qi = ({
|
|
|
3491
3491
|
e.onChange(w);
|
|
3492
3492
|
};
|
|
3493
3493
|
return /* @__PURE__ */ a.jsx(
|
|
3494
|
-
|
|
3494
|
+
Ea,
|
|
3495
3495
|
{
|
|
3496
3496
|
element: "li",
|
|
3497
3497
|
id: E,
|
|
@@ -3515,7 +3515,7 @@ const qi = ({
|
|
|
3515
3515
|
}
|
|
3516
3516
|
);
|
|
3517
3517
|
};
|
|
3518
|
-
const
|
|
3518
|
+
const qi = ({
|
|
3519
3519
|
inputRef: t,
|
|
3520
3520
|
type: e = "password",
|
|
3521
3521
|
gtm: { context: n } = { context: void 0 },
|
|
@@ -3551,12 +3551,12 @@ const Je = {
|
|
|
3551
3551
|
text: { component: gt },
|
|
3552
3552
|
email: { component: gt },
|
|
3553
3553
|
textarea: { component: gt, props: { element: "textarea", rows: 4, cols: 10 } },
|
|
3554
|
-
checkbox: { component:
|
|
3555
|
-
checkboxes: { component:
|
|
3556
|
-
select: { component:
|
|
3557
|
-
password: { component:
|
|
3558
|
-
autocomplete: { component:
|
|
3559
|
-
},
|
|
3554
|
+
checkbox: { component: Ea },
|
|
3555
|
+
checkboxes: { component: Bi, props: { multiSelect: !0 } },
|
|
3556
|
+
select: { component: Li },
|
|
3557
|
+
password: { component: qi },
|
|
3558
|
+
autocomplete: { component: Di }
|
|
3559
|
+
}, Ui = ({
|
|
3560
3560
|
id: t,
|
|
3561
3561
|
intlPath: e = !1,
|
|
3562
3562
|
className: n = "",
|
|
@@ -3646,7 +3646,7 @@ const Je = {
|
|
|
3646
3646
|
] }),
|
|
3647
3647
|
/* @__PURE__ */ a.jsx(b, {})
|
|
3648
3648
|
] });
|
|
3649
|
-
},
|
|
3649
|
+
}, Wi = (t, e) => {
|
|
3650
3650
|
const { type: n, payload: r } = e, s = t.errors ? pt(t.errors) : {}, i = t.values ? pt(t.values) : {};
|
|
3651
3651
|
switch (n) {
|
|
3652
3652
|
case "toggleSubmitting":
|
|
@@ -3793,7 +3793,7 @@ const rn = ({
|
|
|
3793
3793
|
const K = z.id || z.name;
|
|
3794
3794
|
K && (R[K] = z.value || "");
|
|
3795
3795
|
});
|
|
3796
|
-
const [Q, B] = Yn(
|
|
3796
|
+
const [Q, B] = Yn(Wi, {
|
|
3797
3797
|
isSubmitting: !1,
|
|
3798
3798
|
formSubmitted: !1,
|
|
3799
3799
|
errors: {},
|
|
@@ -3923,7 +3923,7 @@ const rn = ({
|
|
|
3923
3923
|
return /* @__PURE__ */ a.jsx(P, { ...z.props || {} }, `component-${T}-${K}`);
|
|
3924
3924
|
const L = x ? x[T] : "";
|
|
3925
3925
|
return /* @__PURE__ */ a.jsx(
|
|
3926
|
-
|
|
3926
|
+
Ui,
|
|
3927
3927
|
{
|
|
3928
3928
|
intlPath: s,
|
|
3929
3929
|
...z,
|
|
@@ -3956,11 +3956,11 @@ const rn = ({
|
|
|
3956
3956
|
w && j && /* @__PURE__ */ a.jsx(Wt, { className: "success", children: typeof w == "string" ? w : D.formatMessage({ id: "form_success" }) })
|
|
3957
3957
|
] });
|
|
3958
3958
|
};
|
|
3959
|
-
const Nt = "passwordRules_",
|
|
3960
|
-
[
|
|
3961
|
-
[
|
|
3962
|
-
[
|
|
3963
|
-
},
|
|
3959
|
+
const Nt = "passwordRules_", Sa = "isMoreThanEightCharacters", Ca = "includesNumberAndSymbol", $a = "includesLowerAndUppercase", zi = {
|
|
3960
|
+
[Sa]: "8Characters",
|
|
3961
|
+
[Ca]: "numberSymbol",
|
|
3962
|
+
[$a]: "lowercaseUppercase"
|
|
3963
|
+
}, Zi = ({
|
|
3964
3964
|
matchingRules: t = {
|
|
3965
3965
|
isMoreThanEightCharacters: !1,
|
|
3966
3966
|
includesNumberAndSymbol: !1,
|
|
@@ -3971,7 +3971,7 @@ const Nt = "passwordRules_", Ca = "isMoreThanEightCharacters", $a = "includesNum
|
|
|
3971
3971
|
const n = H();
|
|
3972
3972
|
return /* @__PURE__ */ a.jsxs("aside", { className: S("password-rules", e), children: [
|
|
3973
3973
|
/* @__PURE__ */ a.jsx("small", { children: n.formatMessage({ id: `${Nt}intro` }) }),
|
|
3974
|
-
/* @__PURE__ */ a.jsx("ul", { children: [Ca, $a
|
|
3974
|
+
/* @__PURE__ */ a.jsx("ul", { children: [Sa, Ca, $a].map(
|
|
3975
3975
|
(r) => /* @__PURE__ */ a.jsxs(
|
|
3976
3976
|
"li",
|
|
3977
3977
|
{
|
|
@@ -3981,7 +3981,7 @@ const Nt = "passwordRules_", Ca = "isMoreThanEightCharacters", $a = "includesNum
|
|
|
3981
3981
|
n.formatMessage({ id: `${Nt}rule_label` }),
|
|
3982
3982
|
" "
|
|
3983
3983
|
] }),
|
|
3984
|
-
/* @__PURE__ */ a.jsx("span", { children: n.formatMessage({ id: `${Nt}rule_${
|
|
3984
|
+
/* @__PURE__ */ a.jsx("span", { children: n.formatMessage({ id: `${Nt}rule_${zi[r]}` }) }),
|
|
3985
3985
|
!t[r] && /* @__PURE__ */ a.jsxs(be, { element: "strong", children: [
|
|
3986
3986
|
" ",
|
|
3987
3987
|
n.formatMessage({ id: `${Nt}notMet` })
|
|
@@ -3992,7 +3992,7 @@ const Nt = "passwordRules_", Ca = "isMoreThanEightCharacters", $a = "includesNum
|
|
|
3992
3992
|
)
|
|
3993
3993
|
) })
|
|
3994
3994
|
] });
|
|
3995
|
-
},
|
|
3995
|
+
}, Hi = Ae(Zi);
|
|
3996
3996
|
const Vl = ({
|
|
3997
3997
|
text: t = {},
|
|
3998
3998
|
topRating: e = 5,
|
|
@@ -4188,7 +4188,7 @@ function Kl({ className: t = "", userId: e, userName: n, src: r, setUserImage: s
|
|
|
4188
4188
|
)
|
|
4189
4189
|
] });
|
|
4190
4190
|
}
|
|
4191
|
-
const
|
|
4191
|
+
const Vi = ({
|
|
4192
4192
|
gtm: t,
|
|
4193
4193
|
functions: { onSuccess: e = async () => {
|
|
4194
4194
|
}, onFailure: n = () => {
|
|
@@ -4236,7 +4236,7 @@ const Yi = ({
|
|
|
4236
4236
|
}
|
|
4237
4237
|
);
|
|
4238
4238
|
};
|
|
4239
|
-
const
|
|
4239
|
+
const Yi = ({
|
|
4240
4240
|
title: t,
|
|
4241
4241
|
label: e,
|
|
4242
4242
|
ctaMessage: n,
|
|
@@ -4294,7 +4294,7 @@ const Ki = ({
|
|
|
4294
4294
|
/* @__PURE__ */ a.jsx("h2", { className: "title", style: { color: r }, children: t }),
|
|
4295
4295
|
/* @__PURE__ */ a.jsx("label", { htmlFor: "email-input", className: "label", style: { color: s }, children: e }),
|
|
4296
4296
|
/* @__PURE__ */ a.jsx(
|
|
4297
|
-
|
|
4297
|
+
Ns,
|
|
4298
4298
|
{
|
|
4299
4299
|
id: "email-input",
|
|
4300
4300
|
inputClassName: "email-input input",
|
|
@@ -4371,7 +4371,7 @@ const Ki = ({
|
|
|
4371
4371
|
label: n({ id: "passwordRules_currentPassword_label" }),
|
|
4372
4372
|
validation: yn(["required"])
|
|
4373
4373
|
}), i && f.push({
|
|
4374
|
-
component:
|
|
4374
|
+
component: Hi,
|
|
4375
4375
|
props: { matchingRules: c }
|
|
4376
4376
|
});
|
|
4377
4377
|
const m = {
|
|
@@ -4397,7 +4397,7 @@ const Ki = ({
|
|
|
4397
4397
|
r && /* @__PURE__ */ a.jsx(He, { variant: "error", text: r })
|
|
4398
4398
|
] });
|
|
4399
4399
|
};
|
|
4400
|
-
const
|
|
4400
|
+
const Ki = ({
|
|
4401
4401
|
id: t = "search",
|
|
4402
4402
|
className: e = "",
|
|
4403
4403
|
handleToggle: n = !1,
|
|
@@ -4510,7 +4510,7 @@ const Gi = ({
|
|
|
4510
4510
|
},
|
|
4511
4511
|
{ type: "validFields.email", value: !0 }
|
|
4512
4512
|
]);
|
|
4513
|
-
},
|
|
4513
|
+
}, Gi = (t) => {
|
|
4514
4514
|
const e = {};
|
|
4515
4515
|
for (const n of t.entries())
|
|
4516
4516
|
e[n[0]] = n[1];
|
|
@@ -4526,7 +4526,7 @@ const Gi = ({
|
|
|
4526
4526
|
page: window.location.pathname,
|
|
4527
4527
|
"g-recaptcha-response": e["g-recaptcha-response"]
|
|
4528
4528
|
};
|
|
4529
|
-
},
|
|
4529
|
+
}, Qi = async ({
|
|
4530
4530
|
refs: t,
|
|
4531
4531
|
dataToSubmit: e,
|
|
4532
4532
|
createAccount: n,
|
|
@@ -4540,9 +4540,9 @@ const Gi = ({
|
|
|
4540
4540
|
t.hiddenValidation && t.hiddenValidation.current && t.hiddenValidation.current.click();
|
|
4541
4541
|
return;
|
|
4542
4542
|
}
|
|
4543
|
-
const o =
|
|
4543
|
+
const o = Gi(new FormData(t.form.current)), c = Object.assign(o, e);
|
|
4544
4544
|
await n(c), localStorage.setItem("email", o.email), r && r({ ...o, ...i.values }), s([{ type: "showSuccessMessage", value: !0 }]);
|
|
4545
|
-
},
|
|
4545
|
+
}, Ji = ({
|
|
4546
4546
|
shouldShow: t,
|
|
4547
4547
|
placeholders: e,
|
|
4548
4548
|
labels: n,
|
|
@@ -4594,7 +4594,7 @@ const Gi = ({
|
|
|
4594
4594
|
"data-testid": "signup-email-input"
|
|
4595
4595
|
},
|
|
4596
4596
|
{
|
|
4597
|
-
component:
|
|
4597
|
+
component: Oi,
|
|
4598
4598
|
props: {
|
|
4599
4599
|
email: u.email,
|
|
4600
4600
|
type: u.boxType,
|
|
@@ -4701,7 +4701,7 @@ const Gi = ({
|
|
|
4701
4701
|
"data-testid": "signup-terms-checkbox"
|
|
4702
4702
|
}), m;
|
|
4703
4703
|
};
|
|
4704
|
-
const
|
|
4704
|
+
const Xi = ({ className: t = "" }) => /* @__PURE__ */ a.jsxs(
|
|
4705
4705
|
"div",
|
|
4706
4706
|
{
|
|
4707
4707
|
className: S("success-message", t),
|
|
@@ -4720,7 +4720,7 @@ const eo = ({ className: t = "" }) => /* @__PURE__ */ a.jsxs(
|
|
|
4720
4720
|
]
|
|
4721
4721
|
}
|
|
4722
4722
|
);
|
|
4723
|
-
const
|
|
4723
|
+
const eo = {
|
|
4724
4724
|
validFields: {
|
|
4725
4725
|
name: !1,
|
|
4726
4726
|
email: !1,
|
|
@@ -4762,14 +4762,14 @@ const to = {
|
|
|
4762
4762
|
url: f,
|
|
4763
4763
|
logInButton: m,
|
|
4764
4764
|
successMessage: p
|
|
4765
|
-
}, [y, _] = Yn(
|
|
4765
|
+
}, [y, _] = Yn(ma, eo), {
|
|
4766
4766
|
validFields: v,
|
|
4767
4767
|
emailDetails: b,
|
|
4768
4768
|
shouldManuallyApprove: E,
|
|
4769
4769
|
shouldDisableButton: k,
|
|
4770
4770
|
showSuccessMessage: w,
|
|
4771
4771
|
showError: D
|
|
4772
|
-
} = y, [R, Q] =
|
|
4772
|
+
} = y, [R, Q] = oa([
|
|
4773
4773
|
"signup-this-session",
|
|
4774
4774
|
"functional-cookie-consent"
|
|
4775
4775
|
]), B = {
|
|
@@ -4791,7 +4791,7 @@ const to = {
|
|
|
4791
4791
|
maxAge: 3600
|
|
4792
4792
|
});
|
|
4793
4793
|
}, [w]);
|
|
4794
|
-
const $ = wt(() =>
|
|
4794
|
+
const $ = wt(() => Ji({
|
|
4795
4795
|
placeholders: n,
|
|
4796
4796
|
labels: e,
|
|
4797
4797
|
shouldShow: g,
|
|
@@ -4802,7 +4802,7 @@ const to = {
|
|
|
4802
4802
|
dataToSubmit: o,
|
|
4803
4803
|
intl: d
|
|
4804
4804
|
}), [o, r, d, B, g, y]), C = k ? !0 : E ? !Object.values(v).every((j) => j === !0) : !v.name || !v.email || ["exists", "pending", "verify"].includes(b.boxType);
|
|
4805
|
-
return g.successMessage && w ? /* @__PURE__ */ a.jsx(
|
|
4805
|
+
return g.successMessage && w ? /* @__PURE__ */ a.jsx(Xi, { className: t }) : /* @__PURE__ */ a.jsxs(
|
|
4806
4806
|
"fieldset",
|
|
4807
4807
|
{
|
|
4808
4808
|
className: S("signup-form-fieldset", t),
|
|
@@ -4853,7 +4853,7 @@ const to = {
|
|
|
4853
4853
|
},
|
|
4854
4854
|
functions: {
|
|
4855
4855
|
onSuccess: async () => {
|
|
4856
|
-
await
|
|
4856
|
+
await Qi({
|
|
4857
4857
|
refs: B,
|
|
4858
4858
|
dataToSubmit: o,
|
|
4859
4859
|
createAccount: r.createAccount,
|
|
@@ -4886,7 +4886,7 @@ var Zn = { exports: {} }, Pt = { exports: {} }, ue = {};
|
|
|
4886
4886
|
* LICENSE file in the root directory of this source tree.
|
|
4887
4887
|
*/
|
|
4888
4888
|
var Rr;
|
|
4889
|
-
function
|
|
4889
|
+
function to() {
|
|
4890
4890
|
if (Rr)
|
|
4891
4891
|
return ue;
|
|
4892
4892
|
Rr = 1;
|
|
@@ -4962,7 +4962,7 @@ var de = {};
|
|
|
4962
4962
|
* LICENSE file in the root directory of this source tree.
|
|
4963
4963
|
*/
|
|
4964
4964
|
var Fr;
|
|
4965
|
-
function
|
|
4965
|
+
function no() {
|
|
4966
4966
|
return Fr || (Fr = 1, process.env.NODE_ENV !== "production" && function() {
|
|
4967
4967
|
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, y = t ? Symbol.for("react.block") : 60121, _ = t ? Symbol.for("react.fundamental") : 60117, v = t ? Symbol.for("react.responder") : 60118, b = t ? Symbol.for("react.scope") : 60119;
|
|
4968
4968
|
function E(A) {
|
|
@@ -5045,8 +5045,8 @@ function ro() {
|
|
|
5045
5045
|
}()), de;
|
|
5046
5046
|
}
|
|
5047
5047
|
var Or;
|
|
5048
|
-
function
|
|
5049
|
-
return Or || (Or = 1, process.env.NODE_ENV === "production" ? Pt.exports =
|
|
5048
|
+
function Na() {
|
|
5049
|
+
return Or || (Or = 1, process.env.NODE_ENV === "production" ? Pt.exports = to() : Pt.exports = no()), Pt.exports;
|
|
5050
5050
|
}
|
|
5051
5051
|
/*
|
|
5052
5052
|
object-assign
|
|
@@ -5054,7 +5054,7 @@ object-assign
|
|
|
5054
5054
|
@license MIT
|
|
5055
5055
|
*/
|
|
5056
5056
|
var _n, Ar;
|
|
5057
|
-
function
|
|
5057
|
+
function ro() {
|
|
5058
5058
|
if (Ar)
|
|
5059
5059
|
return _n;
|
|
5060
5060
|
Ar = 1;
|
|
@@ -5109,18 +5109,18 @@ function nr() {
|
|
|
5109
5109
|
return xn = t, xn;
|
|
5110
5110
|
}
|
|
5111
5111
|
var wn, Ir;
|
|
5112
|
-
function
|
|
5112
|
+
function Pa() {
|
|
5113
5113
|
return Ir || (Ir = 1, wn = Function.call.bind(Object.prototype.hasOwnProperty)), wn;
|
|
5114
5114
|
}
|
|
5115
5115
|
var jn, Lr;
|
|
5116
|
-
function
|
|
5116
|
+
function ao() {
|
|
5117
5117
|
if (Lr)
|
|
5118
5118
|
return jn;
|
|
5119
5119
|
Lr = 1;
|
|
5120
5120
|
var t = function() {
|
|
5121
5121
|
};
|
|
5122
5122
|
if (process.env.NODE_ENV !== "production") {
|
|
5123
|
-
var e = nr(), n = {}, r =
|
|
5123
|
+
var e = nr(), n = {}, r = Pa();
|
|
5124
5124
|
t = function(i) {
|
|
5125
5125
|
var o = "Warning: " + i;
|
|
5126
5126
|
typeof console < "u" && console.error(o);
|
|
@@ -5163,11 +5163,11 @@ function so() {
|
|
|
5163
5163
|
}, jn = s, jn;
|
|
5164
5164
|
}
|
|
5165
5165
|
var kn, Br;
|
|
5166
|
-
function
|
|
5166
|
+
function so() {
|
|
5167
5167
|
if (Br)
|
|
5168
5168
|
return kn;
|
|
5169
5169
|
Br = 1;
|
|
5170
|
-
var t =
|
|
5170
|
+
var t = Na(), e = ro(), n = nr(), r = Pa(), s = ao(), i = function() {
|
|
5171
5171
|
};
|
|
5172
5172
|
process.env.NODE_ENV !== "production" && (i = function(c) {
|
|
5173
5173
|
var d = "Warning: " + c;
|
|
@@ -5485,7 +5485,7 @@ Valid keys: ` + JSON.stringify(Object.keys(T), null, " ")
|
|
|
5485
5485
|
}, kn;
|
|
5486
5486
|
}
|
|
5487
5487
|
var Tn, qr;
|
|
5488
|
-
function
|
|
5488
|
+
function io() {
|
|
5489
5489
|
if (qr)
|
|
5490
5490
|
return Tn;
|
|
5491
5491
|
qr = 1;
|
|
@@ -5534,17 +5534,17 @@ function oo() {
|
|
|
5534
5534
|
}, Tn;
|
|
5535
5535
|
}
|
|
5536
5536
|
if (process.env.NODE_ENV !== "production") {
|
|
5537
|
-
var
|
|
5538
|
-
Zn.exports =
|
|
5537
|
+
var oo = Na(), co = !0;
|
|
5538
|
+
Zn.exports = so()(oo.isElement, co);
|
|
5539
5539
|
} else
|
|
5540
|
-
Zn.exports =
|
|
5541
|
-
var
|
|
5540
|
+
Zn.exports = io()();
|
|
5541
|
+
var lo = Zn.exports;
|
|
5542
5542
|
/*!
|
|
5543
5543
|
* tabbable 6.2.0
|
|
5544
5544
|
* @license MIT, https://github.com/focus-trap/tabbable/blob/master/LICENSE
|
|
5545
5545
|
*/
|
|
5546
|
-
var
|
|
5547
|
-
} : Element.prototype.matches || Element.prototype.msMatchesSelector || Element.prototype.webkitMatchesSelector, Zt = !
|
|
5546
|
+
var Ma = ["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__ */ Ma.join(","), Ra = typeof Element > "u", Ze = Ra ? function() {
|
|
5547
|
+
} : Element.prototype.matches || Element.prototype.msMatchesSelector || Element.prototype.webkitMatchesSelector, Zt = !Ra && Element.prototype.getRootNode ? function(t) {
|
|
5548
5548
|
var e;
|
|
5549
5549
|
return t == null || (e = t.getRootNode) === null || e === void 0 ? void 0 : e.call(t);
|
|
5550
5550
|
} : function(t) {
|
|
@@ -5554,15 +5554,15 @@ var Ra = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])",
|
|
|
5554
5554
|
n === void 0 && (n = !0);
|
|
5555
5555
|
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);
|
|
5556
5556
|
return o;
|
|
5557
|
-
},
|
|
5557
|
+
}, uo = function(e) {
|
|
5558
5558
|
var n, r = e == null || (n = e.getAttribute) === null || n === void 0 ? void 0 : n.call(e, "contenteditable");
|
|
5559
5559
|
return r === "" || r === "true";
|
|
5560
|
-
},
|
|
5560
|
+
}, Fa = function(e, n, r) {
|
|
5561
5561
|
if (Ht(e))
|
|
5562
5562
|
return [];
|
|
5563
5563
|
var s = Array.prototype.slice.apply(e.querySelectorAll(zt));
|
|
5564
5564
|
return n && Ze.call(e, zt) && s.unshift(e), s = s.filter(r), s;
|
|
5565
|
-
},
|
|
5565
|
+
}, Oa = function t(e, n, r) {
|
|
5566
5566
|
for (var s = [], i = Array.from(e); i.length; ) {
|
|
5567
5567
|
var o = i.shift();
|
|
5568
5568
|
if (!Ht(o, !1))
|
|
@@ -5588,31 +5588,31 @@ var Ra = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])",
|
|
|
5588
5588
|
}
|
|
5589
5589
|
}
|
|
5590
5590
|
return s;
|
|
5591
|
-
},
|
|
5591
|
+
}, Aa = function(e) {
|
|
5592
5592
|
return !isNaN(parseInt(e.getAttribute("tabindex"), 10));
|
|
5593
5593
|
}, Ie = function(e) {
|
|
5594
5594
|
if (!e)
|
|
5595
5595
|
throw new Error("No node provided");
|
|
5596
|
-
return e.tabIndex < 0 && (/^(AUDIO|VIDEO|DETAILS)$/.test(e.tagName) ||
|
|
5597
|
-
},
|
|
5596
|
+
return e.tabIndex < 0 && (/^(AUDIO|VIDEO|DETAILS)$/.test(e.tagName) || uo(e)) && !Aa(e) ? 0 : e.tabIndex;
|
|
5597
|
+
}, fo = function(e, n) {
|
|
5598
5598
|
var r = Ie(e);
|
|
5599
|
-
return r < 0 && n && !
|
|
5600
|
-
},
|
|
5599
|
+
return r < 0 && n && !Aa(e) ? 0 : r;
|
|
5600
|
+
}, mo = function(e, n) {
|
|
5601
5601
|
return e.tabIndex === n.tabIndex ? e.documentOrder - n.documentOrder : e.tabIndex - n.tabIndex;
|
|
5602
|
-
},
|
|
5602
|
+
}, Da = function(e) {
|
|
5603
5603
|
return e.tagName === "INPUT";
|
|
5604
|
+
}, po = function(e) {
|
|
5605
|
+
return Da(e) && e.type === "hidden";
|
|
5604
5606
|
}, ho = function(e) {
|
|
5605
|
-
return Ia(e) && e.type === "hidden";
|
|
5606
|
-
}, go = function(e) {
|
|
5607
5607
|
var n = e.tagName === "DETAILS" && Array.prototype.slice.apply(e.children).some(function(r) {
|
|
5608
5608
|
return r.tagName === "SUMMARY";
|
|
5609
5609
|
});
|
|
5610
5610
|
return n;
|
|
5611
|
-
},
|
|
5611
|
+
}, go = function(e, n) {
|
|
5612
5612
|
for (var r = 0; r < e.length; r++)
|
|
5613
5613
|
if (e[r].checked && e[r].form === n)
|
|
5614
5614
|
return e[r];
|
|
5615
|
-
},
|
|
5615
|
+
}, vo = function(e) {
|
|
5616
5616
|
if (!e.name)
|
|
5617
5617
|
return !0;
|
|
5618
5618
|
var n = e.form || Zt(e), r = function(c) {
|
|
@@ -5626,13 +5626,13 @@ var Ra = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])",
|
|
|
5626
5626
|
} catch (o) {
|
|
5627
5627
|
return console.error("Looks like you have a radio button with a name attribute containing invalid CSS selector characters and need the CSS.escape polyfill: %s", o.message), !1;
|
|
5628
5628
|
}
|
|
5629
|
-
var i =
|
|
5629
|
+
var i = go(s, e.form);
|
|
5630
5630
|
return !i || i === e;
|
|
5631
|
+
}, bo = function(e) {
|
|
5632
|
+
return Da(e) && e.type === "radio";
|
|
5631
5633
|
}, yo = function(e) {
|
|
5632
|
-
return
|
|
5634
|
+
return bo(e) && !vo(e);
|
|
5633
5635
|
}, _o = function(e) {
|
|
5634
|
-
return yo(e) && !bo(e);
|
|
5635
|
-
}, xo = function(e) {
|
|
5636
5636
|
var n, r = e && Zt(e), s = (n = r) === null || n === void 0 ? void 0 : n.host, i = !1;
|
|
5637
5637
|
if (r && r !== e) {
|
|
5638
5638
|
var o, c, d;
|
|
@@ -5645,7 +5645,7 @@ var Ra = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])",
|
|
|
5645
5645
|
}, Ur = function(e) {
|
|
5646
5646
|
var n = e.getBoundingClientRect(), r = n.width, s = n.height;
|
|
5647
5647
|
return r === 0 && s === 0;
|
|
5648
|
-
},
|
|
5648
|
+
}, xo = function(e, n) {
|
|
5649
5649
|
var r = n.displayCheck, s = n.getShadowRoot;
|
|
5650
5650
|
if (getComputedStyle(e).visibility === "hidden")
|
|
5651
5651
|
return !0;
|
|
@@ -5662,14 +5662,14 @@ var Ra = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])",
|
|
|
5662
5662
|
}
|
|
5663
5663
|
e = c;
|
|
5664
5664
|
}
|
|
5665
|
-
if (
|
|
5665
|
+
if (_o(e))
|
|
5666
5666
|
return !e.getClientRects().length;
|
|
5667
5667
|
if (r !== "legacy-full")
|
|
5668
5668
|
return !0;
|
|
5669
5669
|
} else if (r === "non-zero-area")
|
|
5670
5670
|
return Ur(e);
|
|
5671
5671
|
return !1;
|
|
5672
|
-
},
|
|
5672
|
+
}, wo = function(e) {
|
|
5673
5673
|
if (/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(e.tagName))
|
|
5674
5674
|
for (var n = e.parentElement; n; ) {
|
|
5675
5675
|
if (n.tagName === "FIELDSET" && n.disabled) {
|
|
@@ -5687,17 +5687,17 @@ var Ra = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])",
|
|
|
5687
5687
|
return !(n.disabled || // we must do an inert look up to filter out any elements inside an inert ancestor
|
|
5688
5688
|
// because we're limited in the type of selectors we can use in JSDom (see related
|
|
5689
5689
|
// note related to `candidateSelectors`)
|
|
5690
|
-
Ht(n) ||
|
|
5691
|
-
|
|
5690
|
+
Ht(n) || po(n) || xo(n, e) || // For a details element with a summary, the summary element gets the focus
|
|
5691
|
+
ho(n) || wo(n));
|
|
5692
5692
|
}, Hn = function(e, n) {
|
|
5693
|
-
return !(
|
|
5694
|
-
},
|
|
5693
|
+
return !(yo(n) || Ie(n) < 0 || !Vt(e, n));
|
|
5694
|
+
}, jo = function(e) {
|
|
5695
5695
|
var n = parseInt(e.getAttribute("tabindex"), 10);
|
|
5696
5696
|
return !!(isNaN(n) || n >= 0);
|
|
5697
|
-
},
|
|
5697
|
+
}, ko = function t(e) {
|
|
5698
5698
|
var n = [], r = [];
|
|
5699
5699
|
return e.forEach(function(s, i) {
|
|
5700
|
-
var o = !!s.scopeParent, c = o ? s.scopeParent : s, d =
|
|
5700
|
+
var o = !!s.scopeParent, c = o ? s.scopeParent : s, d = fo(c, o), l = o ? t(s.candidates) : c;
|
|
5701
5701
|
d === 0 ? o ? n.push.apply(n, l) : n.push(c) : r.push({
|
|
5702
5702
|
documentOrder: i,
|
|
5703
5703
|
tabIndex: d,
|
|
@@ -5705,42 +5705,42 @@ var Ra = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])",
|
|
|
5705
5705
|
isScope: o,
|
|
5706
5706
|
content: l
|
|
5707
5707
|
});
|
|
5708
|
-
}), r.sort(
|
|
5708
|
+
}), r.sort(mo).reduce(function(s, i) {
|
|
5709
5709
|
return i.isScope ? s.push.apply(s, i.content) : s.push(i.content), s;
|
|
5710
5710
|
}, []).concat(n);
|
|
5711
|
-
},
|
|
5711
|
+
}, Ia = function(e, n) {
|
|
5712
5712
|
n = n || {};
|
|
5713
5713
|
var r;
|
|
5714
|
-
return n.getShadowRoot ? r =
|
|
5714
|
+
return n.getShadowRoot ? r = Oa([e], n.includeContainer, {
|
|
5715
5715
|
filter: Hn.bind(null, n),
|
|
5716
5716
|
flatten: !1,
|
|
5717
5717
|
getShadowRoot: n.getShadowRoot,
|
|
5718
|
-
shadowRootFilter:
|
|
5719
|
-
}) : r =
|
|
5720
|
-
},
|
|
5718
|
+
shadowRootFilter: jo
|
|
5719
|
+
}) : r = Fa(e, n.includeContainer, Hn.bind(null, n)), ko(r);
|
|
5720
|
+
}, La = function(e, n) {
|
|
5721
5721
|
n = n || {};
|
|
5722
5722
|
var r;
|
|
5723
|
-
return n.getShadowRoot ? r =
|
|
5723
|
+
return n.getShadowRoot ? r = Oa([e], n.includeContainer, {
|
|
5724
5724
|
filter: Vt.bind(null, n),
|
|
5725
5725
|
flatten: !0,
|
|
5726
5726
|
getShadowRoot: n.getShadowRoot
|
|
5727
|
-
}) : r =
|
|
5727
|
+
}) : r = Fa(e, n.includeContainer, Vt.bind(null, n)), r;
|
|
5728
5728
|
}, We = function(e, n) {
|
|
5729
5729
|
if (n = n || {}, !e)
|
|
5730
5730
|
throw new Error("No node provided");
|
|
5731
5731
|
return Ze.call(e, zt) === !1 ? !1 : Hn(n, e);
|
|
5732
|
-
},
|
|
5732
|
+
}, To = /* @__PURE__ */ Ma.concat("iframe").join(","), qt = function(e, n) {
|
|
5733
5733
|
if (n = n || {}, !e)
|
|
5734
5734
|
throw new Error("No node provided");
|
|
5735
|
-
return Ze.call(e,
|
|
5735
|
+
return Ze.call(e, To) === !1 ? !1 : Vt(n, e);
|
|
5736
5736
|
};
|
|
5737
|
-
const
|
|
5737
|
+
const Eo = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
5738
5738
|
__proto__: null,
|
|
5739
|
-
focusable:
|
|
5739
|
+
focusable: La,
|
|
5740
5740
|
getTabIndex: Ie,
|
|
5741
5741
|
isFocusable: qt,
|
|
5742
5742
|
isTabbable: We,
|
|
5743
|
-
tabbable:
|
|
5743
|
+
tabbable: Ia
|
|
5744
5744
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
5745
5745
|
/*!
|
|
5746
5746
|
* focus-trap 7.5.4
|
|
@@ -5760,22 +5760,22 @@ function zr(t) {
|
|
|
5760
5760
|
for (var e = 1; e < arguments.length; e++) {
|
|
5761
5761
|
var n = arguments[e] != null ? arguments[e] : {};
|
|
5762
5762
|
e % 2 ? Wr(Object(n), !0).forEach(function(r) {
|
|
5763
|
-
|
|
5763
|
+
So(t, r, n[r]);
|
|
5764
5764
|
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(t, Object.getOwnPropertyDescriptors(n)) : Wr(Object(n)).forEach(function(r) {
|
|
5765
5765
|
Object.defineProperty(t, r, Object.getOwnPropertyDescriptor(n, r));
|
|
5766
5766
|
});
|
|
5767
5767
|
}
|
|
5768
5768
|
return t;
|
|
5769
5769
|
}
|
|
5770
|
-
function
|
|
5771
|
-
return e =
|
|
5770
|
+
function So(t, e, n) {
|
|
5771
|
+
return e = $o(e), e in t ? Object.defineProperty(t, e, {
|
|
5772
5772
|
value: n,
|
|
5773
5773
|
enumerable: !0,
|
|
5774
5774
|
configurable: !0,
|
|
5775
5775
|
writable: !0
|
|
5776
5776
|
}) : t[e] = n, t;
|
|
5777
5777
|
}
|
|
5778
|
-
function
|
|
5778
|
+
function Co(t, e) {
|
|
5779
5779
|
if (typeof t != "object" || t === null)
|
|
5780
5780
|
return t;
|
|
5781
5781
|
var n = t[Symbol.toPrimitive];
|
|
@@ -5787,8 +5787,8 @@ function $o(t, e) {
|
|
|
5787
5787
|
}
|
|
5788
5788
|
return (e === "string" ? String : Number)(t);
|
|
5789
5789
|
}
|
|
5790
|
-
function
|
|
5791
|
-
var e =
|
|
5790
|
+
function $o(t) {
|
|
5791
|
+
var e = Co(t, "string");
|
|
5792
5792
|
return typeof e == "symbol" ? e : String(e);
|
|
5793
5793
|
}
|
|
5794
5794
|
var Zr = {
|
|
@@ -5804,15 +5804,15 @@ var Zr = {
|
|
|
5804
5804
|
var r = e.indexOf(n);
|
|
5805
5805
|
r !== -1 && e.splice(r, 1), e.length > 0 && e[e.length - 1].unpause();
|
|
5806
5806
|
}
|
|
5807
|
-
},
|
|
5807
|
+
}, No = function(e) {
|
|
5808
5808
|
return e.tagName && e.tagName.toLowerCase() === "input" && typeof e.select == "function";
|
|
5809
|
-
},
|
|
5809
|
+
}, Po = function(e) {
|
|
5810
5810
|
return (e == null ? void 0 : e.key) === "Escape" || (e == null ? void 0 : e.key) === "Esc" || (e == null ? void 0 : e.keyCode) === 27;
|
|
5811
5811
|
}, vt = function(e) {
|
|
5812
5812
|
return (e == null ? void 0 : e.key) === "Tab" || (e == null ? void 0 : e.keyCode) === 9;
|
|
5813
|
-
},
|
|
5813
|
+
}, Mo = function(e) {
|
|
5814
5814
|
return vt(e) && !e.shiftKey;
|
|
5815
|
-
},
|
|
5815
|
+
}, Ro = function(e) {
|
|
5816
5816
|
return vt(e) && e.shiftKey;
|
|
5817
5817
|
}, Hr = function(e) {
|
|
5818
5818
|
return setTimeout(e, 0);
|
|
@@ -5827,13 +5827,13 @@ var Zr = {
|
|
|
5827
5827
|
return typeof e == "function" ? e.apply(void 0, r) : e;
|
|
5828
5828
|
}, Mt = function(e) {
|
|
5829
5829
|
return e.target.shadowRoot && typeof e.composedPath == "function" ? e.composedPath()[0] : e.target;
|
|
5830
|
-
},
|
|
5831
|
-
var r = (n == null ? void 0 : n.document) || document, s = (n == null ? void 0 : n.trapStack) ||
|
|
5830
|
+
}, Fo = [], Oo = function(e, n) {
|
|
5831
|
+
var r = (n == null ? void 0 : n.document) || document, s = (n == null ? void 0 : n.trapStack) || Fo, i = zr({
|
|
5832
5832
|
returnFocusOnDeactivate: !0,
|
|
5833
5833
|
escapeDeactivates: !0,
|
|
5834
5834
|
delayInitialFocus: !0,
|
|
5835
|
-
isKeyForward:
|
|
5836
|
-
isKeyBackward:
|
|
5835
|
+
isKeyForward: Mo,
|
|
5836
|
+
isKeyBackward: Ro
|
|
5837
5837
|
}, n), o = {
|
|
5838
5838
|
// containers given to createFocusTrap()
|
|
5839
5839
|
// @type {Array<HTMLElement>}
|
|
@@ -5916,7 +5916,7 @@ var Zr = {
|
|
|
5916
5916
|
return j;
|
|
5917
5917
|
}, m = function() {
|
|
5918
5918
|
if (o.containerGroups = o.containers.map(function(j) {
|
|
5919
|
-
var x =
|
|
5919
|
+
var x = Ia(j, i.tabbableOptions), N = La(j, i.tabbableOptions), O = x.length > 0 ? x[0] : void 0, W = x.length > 0 ? x[x.length - 1] : void 0, Z = N.find(function(T) {
|
|
5920
5920
|
return We(T);
|
|
5921
5921
|
}), z = N.slice().reverse().find(function(T) {
|
|
5922
5922
|
return We(T);
|
|
@@ -5981,7 +5981,7 @@ var Zr = {
|
|
|
5981
5981
|
}
|
|
5982
5982
|
j.focus({
|
|
5983
5983
|
preventScroll: !!i.preventScroll
|
|
5984
|
-
}), o.mostRecentlyFocusedNode = j,
|
|
5984
|
+
}), o.mostRecentlyFocusedNode = j, No(j) && j.select();
|
|
5985
5985
|
}
|
|
5986
5986
|
}, y = function(j) {
|
|
5987
5987
|
var x = u("setReturnFocus", j);
|
|
@@ -6076,7 +6076,7 @@ var Zr = {
|
|
|
6076
6076
|
});
|
|
6077
6077
|
N && (vt(j) && j.preventDefault(), g(N));
|
|
6078
6078
|
}, k = function(j) {
|
|
6079
|
-
if (
|
|
6079
|
+
if (Po(j) && lt(i.escapeDeactivates, j) !== !1) {
|
|
6080
6080
|
j.preventDefault(), c.deactivate();
|
|
6081
6081
|
return;
|
|
6082
6082
|
}
|
|
@@ -6175,10 +6175,10 @@ var Zr = {
|
|
|
6175
6175
|
}
|
|
6176
6176
|
}, c.updateContainerElements(e), c;
|
|
6177
6177
|
};
|
|
6178
|
-
const
|
|
6178
|
+
const Ao = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
6179
6179
|
__proto__: null,
|
|
6180
|
-
createFocusTrap:
|
|
6181
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
6180
|
+
createFocusTrap: Oo
|
|
6181
|
+
}, Symbol.toStringTag, { value: "Module" })), Do = /* @__PURE__ */ ua(Ao), Io = /* @__PURE__ */ ua(Eo);
|
|
6182
6182
|
function tt(t) {
|
|
6183
6183
|
"@babel/helpers - typeof";
|
|
6184
6184
|
return tt = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
|
|
@@ -6187,20 +6187,20 @@ function tt(t) {
|
|
|
6187
6187
|
return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
|
|
6188
6188
|
}, tt(t);
|
|
6189
6189
|
}
|
|
6190
|
-
function
|
|
6190
|
+
function Lo(t, e) {
|
|
6191
6191
|
if (!(t instanceof e))
|
|
6192
6192
|
throw new TypeError("Cannot call a class as a function");
|
|
6193
6193
|
}
|
|
6194
6194
|
function Yr(t, e) {
|
|
6195
6195
|
for (var n = 0; n < e.length; n++) {
|
|
6196
6196
|
var r = e[n];
|
|
6197
|
-
r.enumerable = r.enumerable || !1, r.configurable = !0, "value" in r && (r.writable = !0), Object.defineProperty(t,
|
|
6197
|
+
r.enumerable = r.enumerable || !1, r.configurable = !0, "value" in r && (r.writable = !0), Object.defineProperty(t, Ba(r.key), r);
|
|
6198
6198
|
}
|
|
6199
6199
|
}
|
|
6200
|
-
function
|
|
6200
|
+
function Bo(t, e, n) {
|
|
6201
6201
|
return e && Yr(t.prototype, e), n && Yr(t, n), Object.defineProperty(t, "prototype", { writable: !1 }), t;
|
|
6202
6202
|
}
|
|
6203
|
-
function
|
|
6203
|
+
function qo(t, e) {
|
|
6204
6204
|
if (typeof e != "function" && e !== null)
|
|
6205
6205
|
throw new TypeError("Super expression must either be null or a function");
|
|
6206
6206
|
t.prototype = Object.create(e && e.prototype, { constructor: { value: t, writable: !0, configurable: !0 } }), Object.defineProperty(t, "prototype", { writable: !1 }), e && Vn(t, e);
|
|
@@ -6210,8 +6210,8 @@ function Vn(t, e) {
|
|
|
6210
6210
|
return r.__proto__ = s, r;
|
|
6211
6211
|
}, Vn(t, e);
|
|
6212
6212
|
}
|
|
6213
|
-
function
|
|
6214
|
-
var e =
|
|
6213
|
+
function Uo(t) {
|
|
6214
|
+
var e = zo();
|
|
6215
6215
|
return function() {
|
|
6216
6216
|
var r = Yt(t), s;
|
|
6217
6217
|
if (e) {
|
|
@@ -6219,10 +6219,10 @@ function Wo(t) {
|
|
|
6219
6219
|
s = Reflect.construct(r, arguments, i);
|
|
6220
6220
|
} else
|
|
6221
6221
|
s = r.apply(this, arguments);
|
|
6222
|
-
return
|
|
6222
|
+
return Wo(this, s);
|
|
6223
6223
|
};
|
|
6224
6224
|
}
|
|
6225
|
-
function
|
|
6225
|
+
function Wo(t, e) {
|
|
6226
6226
|
if (e && (tt(e) === "object" || typeof e == "function"))
|
|
6227
6227
|
return e;
|
|
6228
6228
|
if (e !== void 0)
|
|
@@ -6234,7 +6234,7 @@ function mt(t) {
|
|
|
6234
6234
|
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
6235
6235
|
return t;
|
|
6236
6236
|
}
|
|
6237
|
-
function
|
|
6237
|
+
function zo() {
|
|
6238
6238
|
if (typeof Reflect > "u" || !Reflect.construct || Reflect.construct.sham)
|
|
6239
6239
|
return !1;
|
|
6240
6240
|
if (typeof Proxy == "function")
|
|
@@ -6251,14 +6251,14 @@ function Yt(t) {
|
|
|
6251
6251
|
return n.__proto__ || Object.getPrototypeOf(n);
|
|
6252
6252
|
}, Yt(t);
|
|
6253
6253
|
}
|
|
6254
|
-
function
|
|
6255
|
-
return e =
|
|
6254
|
+
function Zo(t, e, n) {
|
|
6255
|
+
return e = Ba(e), e in t ? Object.defineProperty(t, e, { value: n, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = n, t;
|
|
6256
6256
|
}
|
|
6257
|
-
function
|
|
6258
|
-
var e =
|
|
6257
|
+
function Ba(t) {
|
|
6258
|
+
var e = Ho(t, "string");
|
|
6259
6259
|
return tt(e) === "symbol" ? e : String(e);
|
|
6260
6260
|
}
|
|
6261
|
-
function
|
|
6261
|
+
function Ho(t, e) {
|
|
6262
6262
|
if (tt(t) !== "object" || t === null)
|
|
6263
6263
|
return t;
|
|
6264
6264
|
var n = t[Symbol.toPrimitive];
|
|
@@ -6270,12 +6270,12 @@ function Vo(t, e) {
|
|
|
6270
6270
|
}
|
|
6271
6271
|
return (e === "string" ? String : Number)(t);
|
|
6272
6272
|
}
|
|
6273
|
-
var Rt = Y, J =
|
|
6274
|
-
|
|
6275
|
-
var e =
|
|
6273
|
+
var Rt = Y, J = lo, Vo = Do, Yo = Vo.createFocusTrap, Ko = Io, Go = Ko.isFocusable, rr = /* @__PURE__ */ function(t) {
|
|
6274
|
+
qo(n, t);
|
|
6275
|
+
var e = Uo(n);
|
|
6276
6276
|
function n(r) {
|
|
6277
6277
|
var s;
|
|
6278
|
-
|
|
6278
|
+
Lo(this, n), s = e.call(this, r), Zo(mt(s), "getNodeForOption", function(c) {
|
|
6279
6279
|
var d, l = (d = this.internalOptions[c]) !== null && d !== void 0 ? d : this.originalOptions[c];
|
|
6280
6280
|
if (typeof l == "function") {
|
|
6281
6281
|
for (var u = arguments.length, f = new Array(u > 1 ? u - 1 : 0), m = 1; m < u; m++)
|
|
@@ -6335,7 +6335,7 @@ var Rt = Y, J = uo, Yo = Io, Ko = Yo.createFocusTrap, Go = Lo, Qo = Go.isFocusab
|
|
|
6335
6335
|
}
|
|
6336
6336
|
return s.outsideClick = null, s.focusTrapElements = r.containerElements || [], s.updatePreviousElement(), s;
|
|
6337
6337
|
}
|
|
6338
|
-
return
|
|
6338
|
+
return Bo(n, [{
|
|
6339
6339
|
key: "getDocument",
|
|
6340
6340
|
value: function() {
|
|
6341
6341
|
return this.props.focusTrapOptions.document || (typeof document < "u" ? document : void 0);
|
|
@@ -6398,7 +6398,7 @@ var Rt = Y, J = uo, Yo = Io, Ko = Yo.createFocusTrap, Go = Lo, Qo = Go.isFocusab
|
|
|
6398
6398
|
s.outsideClick.allowDeactivation && // is the outside node NOT focusable (implying that it did NOT receive focus
|
|
6399
6399
|
// as a result of the click-through) -- in which case do NOT restore focus
|
|
6400
6400
|
// to `returnFocusNode` because focus should remain on the outside node
|
|
6401
|
-
!
|
|
6401
|
+
!Go(s.outsideClick.target, s.internalOptions.tabbableOptions))), l = s.internalOptions.preventScroll, u = l === void 0 ? !1 : l;
|
|
6402
6402
|
d && c.focus({
|
|
6403
6403
|
preventScroll: u
|
|
6404
6404
|
}), s.originalOptions.onPostDeactivate && s.originalOptions.onPostDeactivate.call(null), s.outsideClick = null;
|
|
@@ -6510,11 +6510,11 @@ rr.defaultProps = {
|
|
|
6510
6510
|
active: !0,
|
|
6511
6511
|
paused: !1,
|
|
6512
6512
|
focusTrapOptions: {},
|
|
6513
|
-
_createFocusTrap:
|
|
6513
|
+
_createFocusTrap: Yo
|
|
6514
6514
|
};
|
|
6515
|
-
var
|
|
6516
|
-
const
|
|
6517
|
-
const
|
|
6515
|
+
var Qo = rr;
|
|
6516
|
+
const Jo = /* @__PURE__ */ la(Qo);
|
|
6517
|
+
const qa = ({ element: t = "section", children: e, className: n, ...r }) => Y.createElement(t, {
|
|
6518
6518
|
className: S("modal", n),
|
|
6519
6519
|
children: typeof e == "string" ? /* @__PURE__ */ a.jsx("p", { children: e }) : e,
|
|
6520
6520
|
...r
|
|
@@ -6548,7 +6548,7 @@ const an = ({
|
|
|
6548
6548
|
}, [e]);
|
|
6549
6549
|
const v = r ? { "--max-width": `${r / 16}rem` } : {};
|
|
6550
6550
|
return /* @__PURE__ */ a.jsx("div", { className: S("overlay", { open: p }), role: "dialog", children: /* @__PURE__ */ a.jsx(
|
|
6551
|
-
|
|
6551
|
+
qa,
|
|
6552
6552
|
{
|
|
6553
6553
|
id: t,
|
|
6554
6554
|
className: S("overlay-modal", u, {
|
|
@@ -6556,7 +6556,7 @@ const an = ({
|
|
|
6556
6556
|
}),
|
|
6557
6557
|
hidden: !p,
|
|
6558
6558
|
style: v,
|
|
6559
|
-
children: e && /* @__PURE__ */ a.jsx(
|
|
6559
|
+
children: e && /* @__PURE__ */ a.jsx(Jo, { children: /* @__PURE__ */ a.jsxs("div", { className: "overlay-content", children: [
|
|
6560
6560
|
/* @__PURE__ */ a.jsxs("div", { className: "top", children: [
|
|
6561
6561
|
c && /* @__PURE__ */ a.jsx("h2", { className: "modal-title", children: c }),
|
|
6562
6562
|
/* @__PURE__ */ a.jsx(
|
|
@@ -6583,7 +6583,7 @@ const an = ({
|
|
|
6583
6583
|
] }) })
|
|
6584
6584
|
}
|
|
6585
6585
|
) });
|
|
6586
|
-
},
|
|
6586
|
+
}, Xo = (t, e) => ({
|
|
6587
6587
|
"aria-haspopup": !0,
|
|
6588
6588
|
"aria-expanded": e,
|
|
6589
6589
|
"aria-controls": t
|
|
@@ -6612,7 +6612,7 @@ const Jl = ({
|
|
|
6612
6612
|
functions: { onClose: c },
|
|
6613
6613
|
className: S("invite-modal", t, { success: !!n }),
|
|
6614
6614
|
children: /* @__PURE__ */ a.jsx(
|
|
6615
|
-
|
|
6615
|
+
Yi,
|
|
6616
6616
|
{
|
|
6617
6617
|
title: r,
|
|
6618
6618
|
label: s,
|
|
@@ -6664,7 +6664,7 @@ const Xl = ({ members: t }) => {
|
|
|
6664
6664
|
}
|
|
6665
6665
|
)
|
|
6666
6666
|
] });
|
|
6667
|
-
},
|
|
6667
|
+
}, ec = ({ type: t, data: e }) => {
|
|
6668
6668
|
const n = H(), {
|
|
6669
6669
|
answers: r,
|
|
6670
6670
|
createdAt: s,
|
|
@@ -6696,7 +6696,7 @@ const Xl = ({ members: t }) => {
|
|
|
6696
6696
|
] });
|
|
6697
6697
|
}
|
|
6698
6698
|
if (u && !i || o)
|
|
6699
|
-
return /* @__PURE__ */ a.jsx("p", { className: "details", children: o ? n.formatMessage({ id: "card_bootcamp" }) :
|
|
6699
|
+
return /* @__PURE__ */ a.jsx("p", { className: "details", children: o ? n.formatMessage({ id: "card_bootcamp" }) : ga(u) });
|
|
6700
6700
|
if (c)
|
|
6701
6701
|
return /* @__PURE__ */ a.jsx(
|
|
6702
6702
|
ht,
|
|
@@ -6785,7 +6785,7 @@ const Xl = ({ members: t }) => {
|
|
|
6785
6785
|
},
|
|
6786
6786
|
gtmEvent: "learning-hub"
|
|
6787
6787
|
}
|
|
6788
|
-
},
|
|
6788
|
+
}, tc = ({ data: t, cta: e, link: n, gtmContext: r }) => {
|
|
6789
6789
|
var y;
|
|
6790
6790
|
const s = H(), [i, o] = X({
|
|
6791
6791
|
loading: !1,
|
|
@@ -6833,7 +6833,7 @@ const Xl = ({ members: t }) => {
|
|
|
6833
6833
|
}
|
|
6834
6834
|
}
|
|
6835
6835
|
};
|
|
6836
|
-
return /* @__PURE__ */ a.jsx(
|
|
6836
|
+
return /* @__PURE__ */ a.jsx("p", { className: "cta-wrapper", children: /* @__PURE__ */ a.jsx(
|
|
6837
6837
|
se,
|
|
6838
6838
|
{
|
|
6839
6839
|
onClick: v,
|
|
@@ -6848,7 +6848,7 @@ const Xl = ({ members: t }) => {
|
|
|
6848
6848
|
id: `card_cta_${m}${_ ? `_${i.loading ? "loading" : "done"}` : ""}`
|
|
6849
6849
|
})
|
|
6850
6850
|
}
|
|
6851
|
-
);
|
|
6851
|
+
) });
|
|
6852
6852
|
}
|
|
6853
6853
|
return null;
|
|
6854
6854
|
};
|
|
@@ -6857,7 +6857,7 @@ const nc = {
|
|
|
6857
6857
|
text: 3e3,
|
|
6858
6858
|
secondaryText: 1e3,
|
|
6859
6859
|
partner: 25
|
|
6860
|
-
},
|
|
6860
|
+
}, Ua = ({
|
|
6861
6861
|
id: t = "",
|
|
6862
6862
|
card: e,
|
|
6863
6863
|
buildCardData: n,
|
|
@@ -6870,7 +6870,7 @@ const nc = {
|
|
|
6870
6870
|
const c = H(), d = Ee(De), l = d && typeof d.id == "string", [u, f] = X({
|
|
6871
6871
|
data: null,
|
|
6872
6872
|
isLoading: !0
|
|
6873
|
-
}), { data: m, isLoading: p } = u, g =
|
|
6873
|
+
}), { data: m, isLoading: p } = u, g = sa(() => {
|
|
6874
6874
|
n(e, l).then(($) => {
|
|
6875
6875
|
f(() => ({ data: $, isLoading: !1 }));
|
|
6876
6876
|
}).catch(() => f(($) => ({ ...$, isLoading: !1 })));
|
|
@@ -6923,7 +6923,7 @@ const nc = {
|
|
|
6923
6923
|
D,
|
|
6924
6924
|
/* @__PURE__ */ a.jsxs(a.Fragment, { children: [
|
|
6925
6925
|
/* @__PURE__ */ a.jsx(
|
|
6926
|
-
|
|
6926
|
+
oi,
|
|
6927
6927
|
{
|
|
6928
6928
|
className: "card-label",
|
|
6929
6929
|
contentType: y,
|
|
@@ -6937,7 +6937,7 @@ const nc = {
|
|
|
6937
6937
|
size: "small",
|
|
6938
6938
|
variant: m.dateHasPassed ? "default" : "information",
|
|
6939
6939
|
"data-testid": "date",
|
|
6940
|
-
children: m.dateHasPassed ? c.formatMessage({ id: "card_ended" }) :
|
|
6940
|
+
children: m.dateHasPassed ? c.formatMessage({ id: "card_ended" }) : Vs(m.startDate)
|
|
6941
6941
|
}
|
|
6942
6942
|
),
|
|
6943
6943
|
m.banner ? /* @__PURE__ */ a.jsxs("p", { className: "img", children: [
|
|
@@ -6952,7 +6952,7 @@ const nc = {
|
|
|
6952
6952
|
}
|
|
6953
6953
|
) : null,
|
|
6954
6954
|
m.contributors && /* @__PURE__ */ a.jsx(
|
|
6955
|
-
|
|
6955
|
+
Ta,
|
|
6956
6956
|
{
|
|
6957
6957
|
contributors: { data: m.contributors },
|
|
6958
6958
|
styling: {
|
|
@@ -6973,7 +6973,7 @@ const nc = {
|
|
|
6973
6973
|
const C = m[$];
|
|
6974
6974
|
if (!C)
|
|
6975
6975
|
return null;
|
|
6976
|
-
const j =
|
|
6976
|
+
const j = Ws($);
|
|
6977
6977
|
return /* @__PURE__ */ a.jsx("p", { className: j, "data-testid": j, children: et(C, w[$]) }, $);
|
|
6978
6978
|
}),
|
|
6979
6979
|
(m == null ? void 0 : m.members) && /* @__PURE__ */ a.jsxs("span", { className: "member-information", children: [
|
|
@@ -6994,8 +6994,8 @@ const nc = {
|
|
|
6994
6994
|
{ count: m == null ? void 0 : m.members.count }
|
|
6995
6995
|
) })
|
|
6996
6996
|
] }),
|
|
6997
|
-
/* @__PURE__ */ a.jsx(
|
|
6998
|
-
|
|
6997
|
+
/* @__PURE__ */ a.jsx(ec, { type: v || "", data: m }),
|
|
6998
|
+
/* @__PURE__ */ a.jsx(tc, { data: m, cta: r, link: k || "", gtmContext: s })
|
|
6999
6999
|
] })
|
|
7000
7000
|
)
|
|
7001
7001
|
}
|
|
@@ -7004,7 +7004,7 @@ const nc = {
|
|
|
7004
7004
|
const rc = ({ cards: t, cardTypes: e, className: n = "", ...r }) => /* @__PURE__ */ a.jsx("ul", { className: S("card-block", n), children: t.map((s, i) => {
|
|
7005
7005
|
const o = s.slug ? `${s.slug}-${e[i]}` : `${e[i]}-${i}`;
|
|
7006
7006
|
return /* @__PURE__ */ a.jsx(
|
|
7007
|
-
|
|
7007
|
+
Ua,
|
|
7008
7008
|
{
|
|
7009
7009
|
id: o,
|
|
7010
7010
|
card: { ...s, contentType: e[i] },
|
|
@@ -7103,7 +7103,7 @@ const ic = ({
|
|
|
7103
7103
|
"--page": y
|
|
7104
7104
|
};
|
|
7105
7105
|
if (m)
|
|
7106
|
-
return /* @__PURE__ */ a.jsx(
|
|
7106
|
+
return /* @__PURE__ */ a.jsx(wa, { layout: `carousel${s ? "-with-title" : ""}` });
|
|
7107
7107
|
const B = ($, C) => {
|
|
7108
7108
|
var x;
|
|
7109
7109
|
let j = null;
|
|
@@ -7128,7 +7128,7 @@ const ic = ({
|
|
|
7128
7128
|
children: e.map(($, C) => {
|
|
7129
7129
|
let j = B($, C);
|
|
7130
7130
|
return j && ac(C, f, y, _) ? /* @__PURE__ */ a.jsx(
|
|
7131
|
-
|
|
7131
|
+
Ua,
|
|
7132
7132
|
{
|
|
7133
7133
|
id: j,
|
|
7134
7134
|
card: { ...$, contentType: n[C] },
|
|
@@ -7208,7 +7208,7 @@ const ic = ({
|
|
|
7208
7208
|
const u = i ? window.btoa(i) : `carousel-${l}`, f = l === t.length - 1;
|
|
7209
7209
|
return e ? /* @__PURE__ */ a.jsxs(yt, { children: [
|
|
7210
7210
|
/* @__PURE__ */ a.jsx(
|
|
7211
|
-
|
|
7211
|
+
wa,
|
|
7212
7212
|
{
|
|
7213
7213
|
layout: `carousel${i ? "-with-title" : ""}`,
|
|
7214
7214
|
"data-testid": "carousel-placeholder"
|
|
@@ -7229,7 +7229,7 @@ const ic = ({
|
|
|
7229
7229
|
] }, `carousel-${u}`);
|
|
7230
7230
|
}
|
|
7231
7231
|
);
|
|
7232
|
-
const Sn = "joinCommunityButton",
|
|
7232
|
+
const Sn = "joinCommunityButton", Wa = ({
|
|
7233
7233
|
isMember: t = !1,
|
|
7234
7234
|
isShort: e = !1,
|
|
7235
7235
|
functions: { join: n, leave: r } = { join: () => {
|
|
@@ -7281,7 +7281,7 @@ const Cn = "communityDetails_", tu = ({
|
|
|
7281
7281
|
!f && /* @__PURE__ */ a.jsx("p", { className: "text-small", children: /* @__PURE__ */ a.jsx("a", { href: `/communities/${n}/members`, children: c.formatMessage({ id: `${Cn}viewAll` }) }) })
|
|
7282
7282
|
] }),
|
|
7283
7283
|
/* @__PURE__ */ a.jsx(
|
|
7284
|
-
|
|
7284
|
+
Ta,
|
|
7285
7285
|
{
|
|
7286
7286
|
contributors: {
|
|
7287
7287
|
total: r,
|
|
@@ -7296,7 +7296,7 @@ const Cn = "communityDetails_", tu = ({
|
|
|
7296
7296
|
}
|
|
7297
7297
|
)
|
|
7298
7298
|
] }),
|
|
7299
|
-
/* @__PURE__ */ a.jsx(
|
|
7299
|
+
/* @__PURE__ */ a.jsx(Wa, { isMember: e, functions: { ...o } }),
|
|
7300
7300
|
e && /* @__PURE__ */ a.jsx(
|
|
7301
7301
|
se,
|
|
7302
7302
|
{
|
|
@@ -7393,7 +7393,7 @@ const Ot = "languageSwitcher_", au = ({
|
|
|
7393
7393
|
className: d = ""
|
|
7394
7394
|
}) => {
|
|
7395
7395
|
const l = H(), { updateLanguage: u = () => {
|
|
7396
|
-
} } = Ee(
|
|
7396
|
+
} } = Ee(ya), [f, m] = X(t);
|
|
7397
7397
|
if (ae(() => {
|
|
7398
7398
|
t !== f && m(t);
|
|
7399
7399
|
}, [t]), !r || !Object.values(r).some(
|
|
@@ -7451,7 +7451,7 @@ const Ot = "languageSwitcher_", au = ({
|
|
|
7451
7451
|
})
|
|
7452
7452
|
] });
|
|
7453
7453
|
};
|
|
7454
|
-
const $n =
|
|
7454
|
+
const $n = ks({ locale: "en", messages: rt }), sn = ({
|
|
7455
7455
|
hasNextPage: t = !0,
|
|
7456
7456
|
loadNextPage: e = () => {
|
|
7457
7457
|
},
|
|
@@ -7493,7 +7493,7 @@ const $n = Ts({ locale: "en", messages: rt }), sn = ({
|
|
|
7493
7493
|
}
|
|
7494
7494
|
) : 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 }) });
|
|
7495
7495
|
};
|
|
7496
|
-
const
|
|
7496
|
+
const za = ({
|
|
7497
7497
|
variant: t = "default",
|
|
7498
7498
|
version: e = "default",
|
|
7499
7499
|
className: n = "",
|
|
@@ -7812,7 +7812,7 @@ const Pn = "contactFooter_", ou = ({ onSuccess: t = async () => {
|
|
|
7812
7812
|
/* @__PURE__ */ a.jsx(at, { className: "mailto-link", href: "mailto:hello@apolitical.co", children: /* @__PURE__ */ a.jsx(ye, { id: `${Pn}email` }) })
|
|
7813
7813
|
] }),
|
|
7814
7814
|
/* @__PURE__ */ a.jsx(
|
|
7815
|
-
|
|
7815
|
+
Vi,
|
|
7816
7816
|
{
|
|
7817
7817
|
functions: { onSuccess: t, onFailure: e },
|
|
7818
7818
|
gtm: { context: "FooterContactUsForm", event: "contact-form-submit-click" }
|
|
@@ -7824,14 +7824,14 @@ const Pn = "contactFooter_", ou = ({ onSuccess: t = async () => {
|
|
|
7824
7824
|
] }) });
|
|
7825
7825
|
}, cu = ({ activeLink: t, ...e }) => /* @__PURE__ */ a.jsx(Ve, { children: /* @__PURE__ */ a.jsx(hc, { layout: "1-3", children: /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
|
|
7826
7826
|
/* @__PURE__ */ a.jsx(dc, { activeLink: t }),
|
|
7827
|
-
/* @__PURE__ */ a.jsx(
|
|
7827
|
+
/* @__PURE__ */ a.jsx(bi, { ...e })
|
|
7828
7828
|
] }) }) });
|
|
7829
7829
|
const Mn = "cookieBanner_", Rn = [
|
|
7830
7830
|
"apol-cookie-banner",
|
|
7831
7831
|
"apolitical-performance-cookie-consent",
|
|
7832
7832
|
"functional-cookie-consent"
|
|
7833
7833
|
], Fn = new Date(Date.now() + 12 * 30 * 24 * 60 * 60 * 1e3), gc = () => {
|
|
7834
|
-
const t = H(), [e, n, r] =
|
|
7834
|
+
const t = H(), [e, n, r] = oa(Rn), [s, i] = X(
|
|
7835
7835
|
!e["apol-cookie-banner"]
|
|
7836
7836
|
), o = () => {
|
|
7837
7837
|
Rn.forEach((u) => {
|
|
@@ -7972,7 +7972,7 @@ const Mn = "cookieBanner_", Rn = [
|
|
|
7972
7972
|
facebook: { href: "https://www.facebook.com/apoliticalco" }
|
|
7973
7973
|
}
|
|
7974
7974
|
};
|
|
7975
|
-
const Xe = "footer_", Gt = "SiteFooter",
|
|
7975
|
+
const Xe = "footer_", Gt = "SiteFooter", Kr = ({ group: t }) => {
|
|
7976
7976
|
const e = Re[t].order || [];
|
|
7977
7977
|
let n = !1;
|
|
7978
7978
|
return "text" in Re[t] && (n = Re[t].text), /* @__PURE__ */ a.jsxs(yt, { children: [
|
|
@@ -8016,10 +8016,10 @@ const Xe = "footer_", Gt = "SiteFooter", Gr = ({ group: t }) => {
|
|
|
8016
8016
|
] })
|
|
8017
8017
|
] }, `dl-${t}-${r}`)) })
|
|
8018
8018
|
] }, t);
|
|
8019
|
-
},
|
|
8019
|
+
}, Za = () => /* @__PURE__ */ a.jsx("div", { id: "footer", children: /* @__PURE__ */ a.jsxs("div", { className: "wrapper", children: [
|
|
8020
8020
|
/* @__PURE__ */ a.jsx(Gn, { element: "hr" }),
|
|
8021
8021
|
/* @__PURE__ */ a.jsx(
|
|
8022
|
-
|
|
8022
|
+
za,
|
|
8023
8023
|
{
|
|
8024
8024
|
variant: "inverted",
|
|
8025
8025
|
version: "full",
|
|
@@ -8029,8 +8029,8 @@ const Xe = "footer_", Gt = "SiteFooter", Gr = ({ group: t }) => {
|
|
|
8029
8029
|
}
|
|
8030
8030
|
),
|
|
8031
8031
|
/* @__PURE__ */ a.jsx("footer", { children: ["platform", "community", "company", "contact"].map((t) => /* @__PURE__ */ a.jsxs("div", { className: "group", children: [
|
|
8032
|
-
/* @__PURE__ */ a.jsx(
|
|
8033
|
-
Object.keys(Re[t]).includes("child") && /* @__PURE__ */ a.jsx(
|
|
8032
|
+
/* @__PURE__ */ a.jsx(Kr, { group: t }),
|
|
8033
|
+
Object.keys(Re[t]).includes("child") && /* @__PURE__ */ a.jsx(Kr, { group: Re[t].child })
|
|
8034
8034
|
] }, t)) }),
|
|
8035
8035
|
/* @__PURE__ */ a.jsx("hr", {}),
|
|
8036
8036
|
/* @__PURE__ */ a.jsxs("div", { className: "sub-footer", children: [
|
|
@@ -8103,7 +8103,7 @@ const Xe = "footer_", Gt = "SiteFooter", Gr = ({ group: t }) => {
|
|
|
8103
8103
|
return t[r];
|
|
8104
8104
|
if (!e.includes("."))
|
|
8105
8105
|
continue;
|
|
8106
|
-
const s =
|
|
8106
|
+
const s = ca(t[r], e);
|
|
8107
8107
|
if (!(typeof s > "u") && (!n || s[e] && s[e].includes(n) || s.value && s.value.includes(n) || s.toString().includes(n)))
|
|
8108
8108
|
return t[r];
|
|
8109
8109
|
}
|
|
@@ -8250,7 +8250,7 @@ const Xe = "footer_", Gt = "SiteFooter", Gr = ({ group: t }) => {
|
|
|
8250
8250
|
},
|
|
8251
8251
|
doTrack: i = null
|
|
8252
8252
|
}) => {
|
|
8253
|
-
const o = H(), c =
|
|
8253
|
+
const o = H(), c = ca(Qt, t);
|
|
8254
8254
|
if (!c || c.onlyShow && (c.onlyShow === "logged-in" && !e || c.onlyShow === "logged-out" && e))
|
|
8255
8255
|
return null;
|
|
8256
8256
|
const d = "doTrack" in c, l = i === null ? d ? c.doTrack : !0 : i, u = t.includes("buttons.");
|
|
@@ -8363,11 +8363,11 @@ const Xe = "footer_", Gt = "SiteFooter", Gr = ({ group: t }) => {
|
|
|
8363
8363
|
t
|
|
8364
8364
|
);
|
|
8365
8365
|
};
|
|
8366
|
-
const vc = { height: 67, height_desktop: 83 },
|
|
8366
|
+
const vc = { height: 67, height_desktop: 83 }, Ha = ({ showNavigation: t = !0 }) => {
|
|
8367
8367
|
const e = H(), n = Ee(De), r = jt(!0, !0), s = n && typeof n.id == "string", i = wt(
|
|
8368
8368
|
() => fe.getIsDesktopVersion(s, r),
|
|
8369
8369
|
[s, r]
|
|
8370
|
-
), [o, c] = Yn(
|
|
8370
|
+
), [o, c] = Yn(ma, {
|
|
8371
8371
|
headerIsVisible: !0,
|
|
8372
8372
|
menus: { navigation: !1, search: !1, account: !1 },
|
|
8373
8373
|
focusElements: {
|
|
@@ -8375,7 +8375,7 @@ const vc = { height: 67, height_desktop: 83 }, Va = ({ showNavigation: t = !0 })
|
|
|
8375
8375
|
account: { desktop: !1, default: !1 }
|
|
8376
8376
|
}
|
|
8377
8377
|
}), { headerIsVisible: d, menus: l, focusElements: u } = o;
|
|
8378
|
-
|
|
8378
|
+
qs({
|
|
8379
8379
|
scrollPosition: vc[`height${i.navigation ? "_desktop" : ""}`],
|
|
8380
8380
|
callbacks: {
|
|
8381
8381
|
scrollUp: () => {
|
|
@@ -8424,7 +8424,7 @@ const vc = { height: 67, height_desktop: 83 }, Va = ({ showNavigation: t = !0 })
|
|
|
8424
8424
|
children: e.formatMessage({ id: "header_skip" })
|
|
8425
8425
|
}
|
|
8426
8426
|
),
|
|
8427
|
-
/* @__PURE__ */ a.jsx(
|
|
8427
|
+
/* @__PURE__ */ a.jsx(za, {}),
|
|
8428
8428
|
t && /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
|
|
8429
8429
|
!i.navigation && /* @__PURE__ */ a.jsx(
|
|
8430
8430
|
"button",
|
|
@@ -8485,7 +8485,7 @@ const vc = { height: 67, height_desktop: 83 }, Va = ({ showNavigation: t = !0 })
|
|
|
8485
8485
|
}
|
|
8486
8486
|
),
|
|
8487
8487
|
/* @__PURE__ */ a.jsx(
|
|
8488
|
-
|
|
8488
|
+
Ki,
|
|
8489
8489
|
{
|
|
8490
8490
|
id: "global-search",
|
|
8491
8491
|
handleToggle: {
|
|
@@ -8542,7 +8542,7 @@ const vc = { height: 67, height_desktop: 83 }, Va = ({ showNavigation: t = !0 })
|
|
|
8542
8542
|
const bc = () => {
|
|
8543
8543
|
const t = H();
|
|
8544
8544
|
return /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
|
|
8545
|
-
/* @__PURE__ */ a.jsx(
|
|
8545
|
+
/* @__PURE__ */ a.jsx(Ha, {}),
|
|
8546
8546
|
/* @__PURE__ */ a.jsx("div", { id: "content", children: /* @__PURE__ */ a.jsx(
|
|
8547
8547
|
He,
|
|
8548
8548
|
{
|
|
@@ -8550,7 +8550,7 @@ const bc = () => {
|
|
|
8550
8550
|
text: t.formatMessage({ id: "pageLayout_error" })
|
|
8551
8551
|
}
|
|
8552
8552
|
) }),
|
|
8553
|
-
/* @__PURE__ */ a.jsx(
|
|
8553
|
+
/* @__PURE__ */ a.jsx(Za, {})
|
|
8554
8554
|
] });
|
|
8555
8555
|
}, yc = ({
|
|
8556
8556
|
children: t,
|
|
@@ -8566,7 +8566,7 @@ const bc = () => {
|
|
|
8566
8566
|
variant: f = "default",
|
|
8567
8567
|
circle: m = "default",
|
|
8568
8568
|
modal: p = "default"
|
|
8569
|
-
} = i, g =
|
|
8569
|
+
} = i, g = Ls();
|
|
8570
8570
|
ae(() => {
|
|
8571
8571
|
window.scrollTo(0, 0);
|
|
8572
8572
|
}, [g]);
|
|
@@ -8575,13 +8575,13 @@ const bc = () => {
|
|
|
8575
8575
|
}), v = Bt(n, {
|
|
8576
8576
|
locale: c
|
|
8577
8577
|
}), b = {};
|
|
8578
|
-
return u !== "default" && (b[u] = !0), f !== "default" && (b[f] = !0), m !== "default" && (b[m] = !0), /* @__PURE__ */ a.jsx(
|
|
8578
|
+
return u !== "default" && (b[u] = !0), f !== "default" && (b[f] = !0), m !== "default" && (b[m] = !0), /* @__PURE__ */ a.jsx(Ps, { onError: r, fallback: /* @__PURE__ */ a.jsx(bc, {}), children: /* @__PURE__ */ a.jsx(xs, { fallback: null, children: /* @__PURE__ */ a.jsxs(
|
|
8579
8579
|
"div",
|
|
8580
8580
|
{
|
|
8581
8581
|
id: "wrapper",
|
|
8582
8582
|
className: S(o, b, { "has-footer": l }),
|
|
8583
8583
|
children: [
|
|
8584
|
-
/* @__PURE__ */ a.jsx(
|
|
8584
|
+
/* @__PURE__ */ a.jsx(Ha, { showNavigation: d }),
|
|
8585
8585
|
/* @__PURE__ */ a.jsxs("section", { id: "content-wrapper", children: [
|
|
8586
8586
|
_ && /* @__PURE__ */ a.jsx(
|
|
8587
8587
|
"div",
|
|
@@ -8592,19 +8592,19 @@ const bc = () => {
|
|
|
8592
8592
|
children: _
|
|
8593
8593
|
}
|
|
8594
8594
|
),
|
|
8595
|
-
Y.createElement(u === "bold" ?
|
|
8595
|
+
Y.createElement(u === "bold" ? qa : "div", {
|
|
8596
8596
|
id: "content",
|
|
8597
8597
|
children: y,
|
|
8598
8598
|
className: S({ "large-modal": p === "large" })
|
|
8599
8599
|
})
|
|
8600
8600
|
] }),
|
|
8601
8601
|
v && /* @__PURE__ */ a.jsx("div", { className: "additional-content appended", children: v }),
|
|
8602
|
-
l && /* @__PURE__ */ a.jsx(
|
|
8602
|
+
l && /* @__PURE__ */ a.jsx(Za, {}),
|
|
8603
8603
|
/* @__PURE__ */ a.jsx(gc, {})
|
|
8604
8604
|
]
|
|
8605
8605
|
}
|
|
8606
8606
|
) }) });
|
|
8607
|
-
},
|
|
8607
|
+
}, Gr = {
|
|
8608
8608
|
default: "tags_",
|
|
8609
8609
|
headerTopics: "header_topics_topics_"
|
|
8610
8610
|
}, On = {
|
|
@@ -8628,11 +8628,11 @@ const bc = () => {
|
|
|
8628
8628
|
if (t.includes("topic_")) {
|
|
8629
8629
|
if (t = On.topic[t.replace("topic_", "")], t) {
|
|
8630
8630
|
const e = Qt.topics.topics[t].href;
|
|
8631
|
-
return e ? { id: t, href: e, text: `${
|
|
8631
|
+
return e ? { id: t, href: e, text: `${Gr.headerTopics}${t}` } : null;
|
|
8632
8632
|
}
|
|
8633
8633
|
return null;
|
|
8634
8634
|
}
|
|
8635
|
-
return On[t] ? (t = On[t], { id: t, text: `${
|
|
8635
|
+
return On[t] ? (t = On[t], { id: t, text: `${Gr.default}${t}` }) : null;
|
|
8636
8636
|
}
|
|
8637
8637
|
};
|
|
8638
8638
|
const lu = ({
|
|
@@ -8741,7 +8741,7 @@ const du = ({
|
|
|
8741
8741
|
}
|
|
8742
8742
|
),
|
|
8743
8743
|
/* @__PURE__ */ a.jsx(
|
|
8744
|
-
|
|
8744
|
+
_a,
|
|
8745
8745
|
{
|
|
8746
8746
|
progress: l,
|
|
8747
8747
|
styling: {
|
|
@@ -8772,7 +8772,7 @@ const wc = ({
|
|
|
8772
8772
|
type: s,
|
|
8773
8773
|
children: i
|
|
8774
8774
|
}) => {
|
|
8775
|
-
const o = H(), c = Qn(`lessonType_${s}`) ? o.formatMessage({ id: `lessonType_${s}` }) :
|
|
8775
|
+
const o = H(), c = Qn(`lessonType_${s}`) ? o.formatMessage({ id: `lessonType_${s}` }) : Zs(s || "");
|
|
8776
8776
|
return /* @__PURE__ */ a.jsxs("small", { className: S("content-type", { [t]: t !== "default" }), children: [
|
|
8777
8777
|
/* @__PURE__ */ a.jsx("span", { className: S("type", n), children: c }),
|
|
8778
8778
|
" ",
|
|
@@ -8853,7 +8853,7 @@ const fu = ({
|
|
|
8853
8853
|
href: B ? `/microcourses/en/${c}/${w}` : void 0,
|
|
8854
8854
|
fallbackElement: "span",
|
|
8855
8855
|
className: "inner",
|
|
8856
|
-
gtmContext: `MicrocourseOutline${
|
|
8856
|
+
gtmContext: `MicrocourseOutline${zs(R)}`,
|
|
8857
8857
|
gtmType: "article-click",
|
|
8858
8858
|
children: /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
|
|
8859
8859
|
/* @__PURE__ */ a.jsx(
|
|
@@ -9014,7 +9014,7 @@ const we = "discussion_form_", ar = ({
|
|
|
9014
9014
|
default:
|
|
9015
9015
|
break;
|
|
9016
9016
|
}
|
|
9017
|
-
await
|
|
9017
|
+
await Ks(1e3), d.callback && await d.callback(W), Dt = setTimeout(() => {
|
|
9018
9018
|
p(""), v("submitted");
|
|
9019
9019
|
const Z = new Event("discussionFormSubmitted");
|
|
9020
9020
|
document.dispatchEvent(Z), D();
|
|
@@ -9038,7 +9038,7 @@ const we = "discussion_form_", ar = ({
|
|
|
9038
9038
|
Dt = setTimeout(() => {
|
|
9039
9039
|
y(!1), v(!1);
|
|
9040
9040
|
}, 5e3);
|
|
9041
|
-
}, R = !m || !
|
|
9041
|
+
}, R = !m || !ni(m), Q = _ === "submitting", B = [];
|
|
9042
9042
|
return (n.isEditing && !Q || c.cancel) && B.push({
|
|
9043
9043
|
variant: "secondary",
|
|
9044
9044
|
size: { mobile: "small", 600: "medium" },
|
|
@@ -9088,7 +9088,7 @@ const we = "discussion_form_", ar = ({
|
|
|
9088
9088
|
),
|
|
9089
9089
|
/* @__PURE__ */ a.jsx(be, { element: "label", showOnFocus: !1, htmlFor: `${k}-input`, children: $e(u.formatMessage, `${we}label`, t.type, "action") }),
|
|
9090
9090
|
/* @__PURE__ */ a.jsx(
|
|
9091
|
-
|
|
9091
|
+
Ms,
|
|
9092
9092
|
{
|
|
9093
9093
|
ref: r,
|
|
9094
9094
|
id: `${k}-input`,
|
|
@@ -9136,7 +9136,7 @@ const we = "discussion_form_", ar = ({
|
|
|
9136
9136
|
]
|
|
9137
9137
|
}
|
|
9138
9138
|
);
|
|
9139
|
-
},
|
|
9139
|
+
}, Va = ({
|
|
9140
9140
|
form: t,
|
|
9141
9141
|
membershipRequiredToPost: { isMember: e, required: n, join: r, leave: s, notMemberStateText: i }
|
|
9142
9142
|
}) => {
|
|
@@ -9147,7 +9147,7 @@ const we = "discussion_form_", ar = ({
|
|
|
9147
9147
|
text: i,
|
|
9148
9148
|
button: {
|
|
9149
9149
|
breakpoints: { mobile: !0, 901: !1 },
|
|
9150
|
-
component: /* @__PURE__ */ a.jsx(
|
|
9150
|
+
component: /* @__PURE__ */ a.jsx(Wa, { isShort: !0, functions: { join: r, leave: s } })
|
|
9151
9151
|
}
|
|
9152
9152
|
}
|
|
9153
9153
|
);
|
|
@@ -9281,7 +9281,7 @@ const An = () => {
|
|
|
9281
9281
|
)
|
|
9282
9282
|
}
|
|
9283
9283
|
),
|
|
9284
|
-
n && /* @__PURE__ */ a.jsx(
|
|
9284
|
+
n && /* @__PURE__ */ a.jsx(_i, { isOpen: _, isLoading: n.length === 0, children: n.length && /* @__PURE__ */ a.jsxs("ul", { children: [
|
|
9285
9285
|
b.map((w) => typeof w == "string" || !w.name ? null : /* @__PURE__ */ a.jsx("li", { children: /* @__PURE__ */ a.jsx(
|
|
9286
9286
|
at,
|
|
9287
9287
|
{
|
|
@@ -9299,7 +9299,7 @@ const An = () => {
|
|
|
9299
9299
|
] }) })
|
|
9300
9300
|
] })
|
|
9301
9301
|
});
|
|
9302
|
-
},
|
|
9302
|
+
}, Qr = (t) => {
|
|
9303
9303
|
const e = {};
|
|
9304
9304
|
return Object.keys(t).forEach((n) => n.includes("Id") ? e[n] = t[n] : e[`${n}Slug`] = t[n]), e;
|
|
9305
9305
|
}, on = (t, e) => t && !e;
|
|
@@ -9335,7 +9335,7 @@ const Me = "discussion_", Cc = 280, cn = ({
|
|
|
9335
9335
|
children: y,
|
|
9336
9336
|
isTruncated: _ = !1
|
|
9337
9337
|
}) => {
|
|
9338
|
-
const v = H(), b = Ee(De), E = Ee(sr), { author: k, canLike: w, createdAt: D, id: R, likes: Q = 0, userLiked: B, comments: $ = 0 } = e, C = b && b.id && typeof k != "string" && k.id && k.id === b.id || !1, j = typeof w == "boolean" ? w : n ? !C : !1, x = C && (!e.createdAt ||
|
|
9338
|
+
const v = H(), b = Ee(De), E = Ee(sr), { author: k, canLike: w, createdAt: D, id: R, likes: Q = 0, userLiked: B, comments: $ = 0 } = e, C = b && b.id && typeof k != "string" && k.id && k.id === b.id || !1, j = typeof w == "boolean" ? w : n ? !C : !1, x = C && (!e.createdAt || Ys(e.createdAt, 10, "seconds")), N = pe(null), [O, W] = X({
|
|
9339
9339
|
body: e && e.body || "",
|
|
9340
9340
|
isEditing: !1,
|
|
9341
9341
|
didEdit: e && e.isEdited || !1
|
|
@@ -9371,9 +9371,9 @@ const Me = "discussion_", Cc = 280, cn = ({
|
|
|
9371
9371
|
const te = _ ? et(O.body, Cc) : O.body, G = async (F) => {
|
|
9372
9372
|
F || (F = ""), q("");
|
|
9373
9373
|
try {
|
|
9374
|
-
if (!
|
|
9374
|
+
if (!Rs(F, O.body)) {
|
|
9375
9375
|
const oe = e.type === "question" ? { title: F } : { body: F };
|
|
9376
|
-
await d(
|
|
9376
|
+
await d(Qr(e.slugs), oe);
|
|
9377
9377
|
}
|
|
9378
9378
|
W({ body: F, isEditing: !1, didEdit: !0 });
|
|
9379
9379
|
} catch {
|
|
@@ -9388,7 +9388,7 @@ const Me = "discussion_", Cc = 280, cn = ({
|
|
|
9388
9388
|
}, ee = async () => {
|
|
9389
9389
|
z(!1);
|
|
9390
9390
|
try {
|
|
9391
|
-
await c(
|
|
9391
|
+
await c(Qr(e.slugs));
|
|
9392
9392
|
} catch {
|
|
9393
9393
|
q("delete-error");
|
|
9394
9394
|
}
|
|
@@ -9431,7 +9431,7 @@ const Me = "discussion_", Cc = 280, cn = ({
|
|
|
9431
9431
|
className: "gtm-trackable",
|
|
9432
9432
|
"data-gtm-event-context": g,
|
|
9433
9433
|
"data-gtm-event-type": `delete-${e.type}-click`,
|
|
9434
|
-
...
|
|
9434
|
+
...Xo(`delete-${e.slug}-modal`, Z)
|
|
9435
9435
|
}
|
|
9436
9436
|
), Y.createElement(t, {
|
|
9437
9437
|
className: S("discussion-post", p, {
|
|
@@ -9499,7 +9499,7 @@ const Me = "discussion_", Cc = 280, cn = ({
|
|
|
9499
9499
|
className: "gtm-trackable",
|
|
9500
9500
|
"data-gtm-event-context": g,
|
|
9501
9501
|
"data-gtm-event-type": "title-click",
|
|
9502
|
-
children: /* @__PURE__ */ a.jsx(xt, { options: { overrides: { a:
|
|
9502
|
+
children: /* @__PURE__ */ a.jsx(xt, { options: { overrides: { a: gi } }, children: te })
|
|
9503
9503
|
}
|
|
9504
9504
|
) : /* @__PURE__ */ a.jsx(
|
|
9505
9505
|
xt,
|
|
@@ -9686,7 +9686,7 @@ const Nc = ({
|
|
|
9686
9686
|
),
|
|
9687
9687
|
r && o.showForm && /* @__PURE__ */ a.jsx(ar, { ...r })
|
|
9688
9688
|
] });
|
|
9689
|
-
}, Pc = "post", Mc = "reply",
|
|
9689
|
+
}, Pc = "post", Mc = "reply", Ya = "00000000-0000-0000-0000-000000000000";
|
|
9690
9690
|
function ir({ queryClient: t, queryKey: e }) {
|
|
9691
9691
|
function n(r, s, i) {
|
|
9692
9692
|
t.setQueryData(e, i);
|
|
@@ -9733,7 +9733,7 @@ function Fc() {
|
|
|
9733
9733
|
}
|
|
9734
9734
|
};
|
|
9735
9735
|
}
|
|
9736
|
-
function
|
|
9736
|
+
function Ka(t) {
|
|
9737
9737
|
const { id: e = "", name: n = "", organization: r = "", jobTitle: s = "", image: i = {} } = t, { thumbnail: o = "" } = i;
|
|
9738
9738
|
return {
|
|
9739
9739
|
id: e,
|
|
@@ -9748,15 +9748,15 @@ function Ga(t) {
|
|
|
9748
9748
|
function Oc({ content: t }) {
|
|
9749
9749
|
return {
|
|
9750
9750
|
content: t,
|
|
9751
|
-
id:
|
|
9751
|
+
id: Ya,
|
|
9752
9752
|
time: (/* @__PURE__ */ new Date()).toISOString(),
|
|
9753
9753
|
verb: Pc
|
|
9754
9754
|
};
|
|
9755
9755
|
}
|
|
9756
|
-
function
|
|
9756
|
+
function Jr({ activity: t, user: e }) {
|
|
9757
9757
|
return {
|
|
9758
9758
|
...t,
|
|
9759
|
-
actor:
|
|
9759
|
+
actor: Ka(e),
|
|
9760
9760
|
...Rc()
|
|
9761
9761
|
};
|
|
9762
9762
|
}
|
|
@@ -9773,7 +9773,7 @@ function Xt({ activity: t, reaction: e }) {
|
|
|
9773
9773
|
like: (n = t.reaction_counts) != null && n.like ? t.reaction_counts.like + 1 : 1
|
|
9774
9774
|
};
|
|
9775
9775
|
}
|
|
9776
|
-
function
|
|
9776
|
+
function Ga({ activity: t, user: e }) {
|
|
9777
9777
|
var n, r, s;
|
|
9778
9778
|
t.reaction_counts = {
|
|
9779
9779
|
...t.reaction_counts || {},
|
|
@@ -9792,13 +9792,13 @@ function Ac({ activityId: t, replyId: e, content: n }) {
|
|
|
9792
9792
|
data: {
|
|
9793
9793
|
content: n
|
|
9794
9794
|
},
|
|
9795
|
-
id:
|
|
9795
|
+
id: Ya,
|
|
9796
9796
|
kind: Mc,
|
|
9797
9797
|
parent: e || ""
|
|
9798
9798
|
};
|
|
9799
9799
|
}
|
|
9800
|
-
function
|
|
9801
|
-
const n =
|
|
9800
|
+
function Xr({ reply: t, user: e }) {
|
|
9801
|
+
const n = Ka(e);
|
|
9802
9802
|
return {
|
|
9803
9803
|
...t,
|
|
9804
9804
|
user_id: n.id,
|
|
@@ -9806,7 +9806,7 @@ function ea({ reply: t, user: e }) {
|
|
|
9806
9806
|
...Fc()
|
|
9807
9807
|
};
|
|
9808
9808
|
}
|
|
9809
|
-
function
|
|
9809
|
+
function ea({ reply: t, reaction: e }) {
|
|
9810
9810
|
var n, r, s;
|
|
9811
9811
|
e ? (t.latest_children = {
|
|
9812
9812
|
...t.latest_children || {},
|
|
@@ -9832,14 +9832,14 @@ function Dc({ reply: t, user: e }) {
|
|
|
9832
9832
|
like: (((s = t.own_children) == null ? void 0 : s.like) || []).filter(({ user_id: i }) => i !== e.id)
|
|
9833
9833
|
});
|
|
9834
9834
|
}
|
|
9835
|
-
const
|
|
9835
|
+
const Qa = (t) => {
|
|
9836
9836
|
const e = new CustomEvent("discussionPostAdded", {
|
|
9837
9837
|
detail: t
|
|
9838
9838
|
});
|
|
9839
9839
|
document.dispatchEvent(e);
|
|
9840
9840
|
};
|
|
9841
|
-
let
|
|
9842
|
-
const
|
|
9841
|
+
let ta, Ln = 0;
|
|
9842
|
+
const Ja = () => {
|
|
9843
9843
|
ae(() => (document.addEventListener("discussionPostAdded", t), () => {
|
|
9844
9844
|
document.removeEventListener(
|
|
9845
9845
|
"discussionPostAdded",
|
|
@@ -9850,13 +9850,13 @@ const Xa = () => {
|
|
|
9850
9850
|
const n = e.detail;
|
|
9851
9851
|
if (!n)
|
|
9852
9852
|
return;
|
|
9853
|
-
clearTimeout(
|
|
9853
|
+
clearTimeout(ta);
|
|
9854
9854
|
const r = document.getElementById(n);
|
|
9855
9855
|
if (r) {
|
|
9856
9856
|
r.scrollIntoView({ behavior: "smooth", block: "start" }), Ln = 0;
|
|
9857
9857
|
return;
|
|
9858
9858
|
}
|
|
9859
|
-
Ln++, !(Ln > 10) && (
|
|
9859
|
+
Ln++, !(Ln > 10) && (ta = setTimeout(() => {
|
|
9860
9860
|
t(e);
|
|
9861
9861
|
}, 50));
|
|
9862
9862
|
};
|
|
@@ -9878,7 +9878,7 @@ const Xa = () => {
|
|
|
9878
9878
|
thumbnail: "https://some-user-thumbnail.com/avatar2.png"
|
|
9879
9879
|
},
|
|
9880
9880
|
isLoading: !1
|
|
9881
|
-
}),
|
|
9881
|
+
}), Xa = Object.freeze({
|
|
9882
9882
|
actor: `SU:${nt.id}`,
|
|
9883
9883
|
content: "some content 1",
|
|
9884
9884
|
duration: "5.53ms",
|
|
@@ -9921,7 +9921,7 @@ const Xa = () => {
|
|
|
9921
9921
|
});
|
|
9922
9922
|
Object.freeze({
|
|
9923
9923
|
id: "some-reaction-id-1",
|
|
9924
|
-
activity_id:
|
|
9924
|
+
activity_id: Xa.id,
|
|
9925
9925
|
kind: "like",
|
|
9926
9926
|
created_at: "2023-11-24T17:58:36.162000",
|
|
9927
9927
|
data: {},
|
|
@@ -9951,7 +9951,7 @@ Object.freeze({
|
|
|
9951
9951
|
updated_at: "2023-08-31T07:11:38.677184Z"
|
|
9952
9952
|
},
|
|
9953
9953
|
kind: "reply",
|
|
9954
|
-
activity_id:
|
|
9954
|
+
activity_id: Xa.id,
|
|
9955
9955
|
data: {
|
|
9956
9956
|
content: "Some content 1..."
|
|
9957
9957
|
},
|
|
@@ -10029,14 +10029,14 @@ function qc({
|
|
|
10029
10029
|
const { mutate: o } = je({
|
|
10030
10030
|
mutationFn: t,
|
|
10031
10031
|
onMutate: (c) => e((d) => {
|
|
10032
|
-
const l =
|
|
10033
|
-
return
|
|
10032
|
+
const l = Jr({ activity: Oc(c), user: i });
|
|
10033
|
+
return na(l, d);
|
|
10034
10034
|
}),
|
|
10035
10035
|
onError: n,
|
|
10036
10036
|
onSuccess: (c, d, l) => {
|
|
10037
|
-
const u =
|
|
10038
|
-
r.setQueryData(s,
|
|
10039
|
-
|
|
10037
|
+
const u = Jr({ activity: c, user: i });
|
|
10038
|
+
r.setQueryData(s, na(u, l, !0)), setTimeout(() => {
|
|
10039
|
+
Qa(u.id);
|
|
10040
10040
|
}, 0);
|
|
10041
10041
|
}
|
|
10042
10042
|
});
|
|
@@ -10121,7 +10121,7 @@ function Zc({ queryFn: t, queryKey: e }) {
|
|
|
10121
10121
|
isLoading: s,
|
|
10122
10122
|
hasNextPage: i,
|
|
10123
10123
|
fetchNextPage: o
|
|
10124
|
-
} =
|
|
10124
|
+
} = ia({
|
|
10125
10125
|
queryKey: e,
|
|
10126
10126
|
queryFn: t,
|
|
10127
10127
|
initialPageParam: { next: null },
|
|
@@ -10161,13 +10161,13 @@ function Vc({
|
|
|
10161
10161
|
mutationFn: t,
|
|
10162
10162
|
onMutate: ({ activityId: i }) => e((o) => {
|
|
10163
10163
|
const c = en(i, o);
|
|
10164
|
-
return c &&
|
|
10164
|
+
return c && Ga({ activity: c, user: r }), o;
|
|
10165
10165
|
}),
|
|
10166
10166
|
onError: n
|
|
10167
10167
|
});
|
|
10168
10168
|
return s;
|
|
10169
10169
|
}
|
|
10170
|
-
function
|
|
10170
|
+
function na(t, e, n = !1) {
|
|
10171
10171
|
return e ? (n ? e.pages[0].results[0] = t : e.pages[0].results = [t, ...e.pages[0].results], e) : {
|
|
10172
10172
|
pages: [{
|
|
10173
10173
|
next: "",
|
|
@@ -10216,12 +10216,12 @@ const pu = ({
|
|
|
10216
10216
|
queryKey: [t, e, "activities"],
|
|
10217
10217
|
queryFns: r
|
|
10218
10218
|
});
|
|
10219
|
-
if (
|
|
10219
|
+
if (Ja(), d)
|
|
10220
10220
|
return /* @__PURE__ */ a.jsx(He, { variant: "error", text: d.message });
|
|
10221
10221
|
const b = (c == null ? void 0 : c.length) || 0;
|
|
10222
10222
|
return /* @__PURE__ */ a.jsxs("section", { children: [
|
|
10223
10223
|
/* @__PURE__ */ a.jsx(
|
|
10224
|
-
|
|
10224
|
+
Va,
|
|
10225
10225
|
{
|
|
10226
10226
|
form: {
|
|
10227
10227
|
content: { type: "post", slugs: {} },
|
|
@@ -10880,20 +10880,20 @@ function Gc({
|
|
|
10880
10880
|
const { mutate: o } = je({
|
|
10881
10881
|
mutationFn: t,
|
|
10882
10882
|
onMutate: (c) => e((d) => {
|
|
10883
|
-
const l =
|
|
10884
|
-
return
|
|
10883
|
+
const l = Xr({ reply: Ac(c), user: i });
|
|
10884
|
+
return ra(l, d, {
|
|
10885
10885
|
replace: !1,
|
|
10886
10886
|
append: (c == null ? void 0 : c.replyId) !== void 0
|
|
10887
10887
|
});
|
|
10888
10888
|
}),
|
|
10889
10889
|
onError: n,
|
|
10890
10890
|
onSuccess: (c, d, l) => {
|
|
10891
|
-
const u =
|
|
10891
|
+
const u = Xr({ reply: c, user: i });
|
|
10892
10892
|
r.setQueryData(
|
|
10893
10893
|
s,
|
|
10894
|
-
|
|
10894
|
+
ra(u, l, { replace: !0, append: (d == null ? void 0 : d.replyId) !== void 0 })
|
|
10895
10895
|
), setTimeout(() => {
|
|
10896
|
-
|
|
10896
|
+
Qa(u.id);
|
|
10897
10897
|
}, 0);
|
|
10898
10898
|
}
|
|
10899
10899
|
});
|
|
@@ -10916,7 +10916,7 @@ function Qc({
|
|
|
10916
10916
|
});
|
|
10917
10917
|
return r;
|
|
10918
10918
|
}
|
|
10919
|
-
function
|
|
10919
|
+
function es({
|
|
10920
10920
|
queryFns: {
|
|
10921
10921
|
create: t,
|
|
10922
10922
|
edit: e,
|
|
@@ -10961,12 +10961,12 @@ function Jc({
|
|
|
10961
10961
|
mutationFn: t,
|
|
10962
10962
|
onMutate: ({ replyId: o }) => e((c) => {
|
|
10963
10963
|
const d = tn(o, c);
|
|
10964
|
-
return d &&
|
|
10964
|
+
return d && ea({ reply: d }), c;
|
|
10965
10965
|
}),
|
|
10966
10966
|
onError: n,
|
|
10967
10967
|
onSuccess: (o, { replyId: c }, d) => {
|
|
10968
10968
|
const l = tn(c, d);
|
|
10969
|
-
l &&
|
|
10969
|
+
l && ea({ reply: l, reaction: o }), r.setQueryData(s, d);
|
|
10970
10970
|
}
|
|
10971
10971
|
});
|
|
10972
10972
|
return i;
|
|
@@ -10978,7 +10978,7 @@ function Xc({ queryFn: t, queryKey: e }) {
|
|
|
10978
10978
|
isLoading: s,
|
|
10979
10979
|
hasNextPage: i,
|
|
10980
10980
|
fetchNextPage: o
|
|
10981
|
-
} =
|
|
10981
|
+
} = ia({
|
|
10982
10982
|
queryKey: e,
|
|
10983
10983
|
queryFn: t,
|
|
10984
10984
|
initialPageParam: { next: "" },
|
|
@@ -11041,7 +11041,7 @@ function rl(t, e, n) {
|
|
|
11041
11041
|
function al(t, e, n) {
|
|
11042
11042
|
return n != null && n.replace ? e.pages[0].results[0] = t : e.pages[0].results = [t, ...e.pages[0].results], e;
|
|
11043
11043
|
}
|
|
11044
|
-
function
|
|
11044
|
+
function ra(t, e, n) {
|
|
11045
11045
|
return e ? n != null && n.append ? rl(t, e, n) : al(t, e, n) : nl(t);
|
|
11046
11046
|
}
|
|
11047
11047
|
function tn(t, e) {
|
|
@@ -11081,7 +11081,7 @@ const ol = ({
|
|
|
11081
11081
|
isLoading: l,
|
|
11082
11082
|
mutations: { create: u, edit: f, like: m, remove: p, unlike: g },
|
|
11083
11083
|
user: y
|
|
11084
|
-
} =
|
|
11084
|
+
} = es({
|
|
11085
11085
|
queryKey: [t, e, n, r, "replies"],
|
|
11086
11086
|
queryFns: {
|
|
11087
11087
|
...i,
|
|
@@ -11193,14 +11193,14 @@ const ol = ({
|
|
|
11193
11193
|
isLoading: m,
|
|
11194
11194
|
mutations: { create: p, edit: g, like: y, remove: _, unlike: v },
|
|
11195
11195
|
user: b
|
|
11196
|
-
} =
|
|
11196
|
+
} = es({
|
|
11197
11197
|
queryKey: [t, e, n, "replies"],
|
|
11198
11198
|
queryFns: s
|
|
11199
11199
|
});
|
|
11200
|
-
return
|
|
11200
|
+
return Us(), Ja(), /* @__PURE__ */ a.jsxs("section", { children: [
|
|
11201
11201
|
/* @__PURE__ */ a.jsx($c, { type: "comment", responses: l }),
|
|
11202
11202
|
/* @__PURE__ */ a.jsx(
|
|
11203
|
-
|
|
11203
|
+
Va,
|
|
11204
11204
|
{
|
|
11205
11205
|
form: {
|
|
11206
11206
|
content: { type: "reply", slugs: {} },
|
|
@@ -11328,7 +11328,7 @@ function ul({ queryFn: t, queryKey: e }) {
|
|
|
11328
11328
|
error: r,
|
|
11329
11329
|
isLoading: s,
|
|
11330
11330
|
isFetching: i
|
|
11331
|
-
} =
|
|
11331
|
+
} = Ss({
|
|
11332
11332
|
queryFn: t,
|
|
11333
11333
|
queryKey: e
|
|
11334
11334
|
});
|
|
@@ -11396,7 +11396,7 @@ function ml({
|
|
|
11396
11396
|
}) {
|
|
11397
11397
|
const { mutate: s } = je({
|
|
11398
11398
|
mutationFn: t,
|
|
11399
|
-
onMutate: (i) => e((o) => (o &&
|
|
11399
|
+
onMutate: (i) => e((o) => (o && Ga({ activity: o, user: r }), o)),
|
|
11400
11400
|
onError: n
|
|
11401
11401
|
});
|
|
11402
11402
|
return s;
|
|
@@ -11516,7 +11516,7 @@ const gu = ({
|
|
|
11516
11516
|
jobTitle: e,
|
|
11517
11517
|
organization: r,
|
|
11518
11518
|
image: { thumbnail: s }
|
|
11519
|
-
}),
|
|
11519
|
+
}), aa = [
|
|
11520
11520
|
{
|
|
11521
11521
|
contentType: "solutionArticle",
|
|
11522
11522
|
banner: {
|
|
@@ -11562,7 +11562,7 @@ const gu = ({
|
|
|
11562
11562
|
];
|
|
11563
11563
|
const It = "notFoundError_", bu = () => {
|
|
11564
11564
|
const t = H(), e = [];
|
|
11565
|
-
return
|
|
11565
|
+
return aa.forEach((n, r) => {
|
|
11566
11566
|
n.title = t.formatMessage({ id: `${It}post_${r + 1}` }), e.push("solutionArticle");
|
|
11567
11567
|
}), /* @__PURE__ */ a.jsxs(
|
|
11568
11568
|
yc,
|
|
@@ -11573,7 +11573,7 @@ const It = "notFoundError_", bu = () => {
|
|
|
11573
11573
|
/* @__PURE__ */ a.jsx(
|
|
11574
11574
|
rc,
|
|
11575
11575
|
{
|
|
11576
|
-
cards:
|
|
11576
|
+
cards: aa,
|
|
11577
11577
|
cardTypes: e,
|
|
11578
11578
|
buildCardData: (n) => new Promise((r, s) => {
|
|
11579
11579
|
r(n);
|
|
@@ -11597,24 +11597,24 @@ export {
|
|
|
11597
11597
|
Be as ASSETS_BUCKET,
|
|
11598
11598
|
pu as ActivitiesFeed,
|
|
11599
11599
|
gu as ActivitySection,
|
|
11600
|
-
|
|
11600
|
+
Va as AddPost,
|
|
11601
11601
|
Dl as Banner,
|
|
11602
11602
|
ql as BannerSection,
|
|
11603
11603
|
nu as Breadcrumbs,
|
|
11604
11604
|
se as Button,
|
|
11605
11605
|
kt as ButtonWrapper,
|
|
11606
11606
|
St as COURSE_CONTENT_TYPES,
|
|
11607
|
-
|
|
11608
|
-
|
|
11607
|
+
Ti as CacheProvider,
|
|
11608
|
+
Ua as Card,
|
|
11609
11609
|
rc as CardBlock,
|
|
11610
11610
|
eu as Carousel,
|
|
11611
11611
|
Jn as CollapsibleSection,
|
|
11612
11612
|
hc as Columns,
|
|
11613
11613
|
tu as CommunityDetails,
|
|
11614
11614
|
ou as ContactFooter,
|
|
11615
|
-
|
|
11616
|
-
|
|
11617
|
-
|
|
11615
|
+
Vi as ContactForm,
|
|
11616
|
+
oi as ContentTypeLabel,
|
|
11617
|
+
Ta as Contributors,
|
|
11618
11618
|
sr as ConversationContext,
|
|
11619
11619
|
gc as CookieBanner,
|
|
11620
11620
|
du as CourseProgression,
|
|
@@ -11630,27 +11630,27 @@ export {
|
|
|
11630
11630
|
Il as DownloadSection,
|
|
11631
11631
|
ft as EMAILS,
|
|
11632
11632
|
Ll as EditSection,
|
|
11633
|
-
|
|
11633
|
+
Oi as EmailHelperTextBox,
|
|
11634
11634
|
He as EmptyStateBox,
|
|
11635
11635
|
ru as Filters,
|
|
11636
|
-
|
|
11637
|
-
|
|
11636
|
+
Ci as FlagsProvider,
|
|
11637
|
+
Za as Footer,
|
|
11638
11638
|
rn as Form,
|
|
11639
11639
|
Ve as FullWidthSection,
|
|
11640
11640
|
Zl as GlobalProviders,
|
|
11641
|
-
|
|
11642
|
-
|
|
11641
|
+
Ha as Header,
|
|
11642
|
+
ci as HelperTextBox,
|
|
11643
11643
|
Gn as HiddenFromScreenReaders,
|
|
11644
11644
|
Rl as HideShowTextBox,
|
|
11645
11645
|
Wl as HighlightSection,
|
|
11646
11646
|
Fe as HighlightedTextBox,
|
|
11647
11647
|
Fl as IconBulletedList,
|
|
11648
11648
|
Nl as ImageContainer,
|
|
11649
|
-
|
|
11650
|
-
|
|
11649
|
+
$i as IntlProvider,
|
|
11650
|
+
Yi as InviteForm,
|
|
11651
11651
|
Jl as InviteModal,
|
|
11652
|
-
|
|
11653
|
-
|
|
11652
|
+
Wa as JoinButton,
|
|
11653
|
+
ya as LanguageContext,
|
|
11654
11654
|
au as LanguageSwitcher,
|
|
11655
11655
|
xc as LessonName,
|
|
11656
11656
|
wc as LessonType,
|
|
@@ -11658,38 +11658,38 @@ export {
|
|
|
11658
11658
|
sn as LoadMore,
|
|
11659
11659
|
Hl as LoadingBlock,
|
|
11660
11660
|
Se as LoadingPlaceholder,
|
|
11661
|
-
|
|
11662
|
-
|
|
11661
|
+
wa as LoadingState,
|
|
11662
|
+
za as Logo,
|
|
11663
11663
|
Bl as LogoSection,
|
|
11664
11664
|
mu as MarkCompleteButton,
|
|
11665
11665
|
xt as MarkdownText,
|
|
11666
11666
|
zl as MarketingBlock,
|
|
11667
11667
|
tr as Member,
|
|
11668
11668
|
uu as MembersList,
|
|
11669
|
-
|
|
11669
|
+
qa as Modal,
|
|
11670
11670
|
cc as MoreMenu,
|
|
11671
11671
|
$l as NUMBER_OF_USERS,
|
|
11672
11672
|
dc as NavigationMenu,
|
|
11673
11673
|
bu as NotFoundError,
|
|
11674
11674
|
an as Overlay,
|
|
11675
|
-
|
|
11675
|
+
bi as PageHeading,
|
|
11676
11676
|
yc as PageLayout,
|
|
11677
11677
|
Gl as PasswordForm,
|
|
11678
|
-
|
|
11678
|
+
Hi as PasswordRules,
|
|
11679
11679
|
ht as Pill,
|
|
11680
11680
|
Kl as ProfileImageChange,
|
|
11681
11681
|
Ye as ProfilePicture,
|
|
11682
|
-
|
|
11682
|
+
_a as ProgressBar,
|
|
11683
11683
|
Pl as ProgressTracker,
|
|
11684
11684
|
Vl as Rating,
|
|
11685
11685
|
cl as RepliesFeed,
|
|
11686
11686
|
$c as ResponsesHeading,
|
|
11687
11687
|
Tt as ResponsiveImage,
|
|
11688
11688
|
Ml as ReturnToNavButton,
|
|
11689
|
-
|
|
11689
|
+
Ki as SearchForm,
|
|
11690
11690
|
su as ShareLinks,
|
|
11691
11691
|
Ql as SignupForm,
|
|
11692
|
-
|
|
11692
|
+
gi as Span,
|
|
11693
11693
|
Wt as StatusBanner,
|
|
11694
11694
|
Al as TableOfContents,
|
|
11695
11695
|
iu as Tabs,
|
|
@@ -11697,32 +11697,32 @@ export {
|
|
|
11697
11697
|
Ol as TestimonialBlock,
|
|
11698
11698
|
Xn as TimeToComplete,
|
|
11699
11699
|
Yl as Toggle,
|
|
11700
|
-
|
|
11700
|
+
_i as Tooltip,
|
|
11701
11701
|
cu as TopLevelPage,
|
|
11702
11702
|
De as UserContext,
|
|
11703
|
-
|
|
11703
|
+
Ni as UserProvider,
|
|
11704
11704
|
be as VisuallyHidden,
|
|
11705
|
-
|
|
11706
|
-
|
|
11707
|
-
|
|
11705
|
+
Xo as addAriaProps,
|
|
11706
|
+
ma as basicReducer,
|
|
11707
|
+
Ws as camelCaseToDashCase,
|
|
11708
11708
|
Qn as checkIntlPathExists,
|
|
11709
11709
|
yn as generateConditions,
|
|
11710
|
-
|
|
11711
|
-
|
|
11712
|
-
|
|
11713
|
-
|
|
11710
|
+
Hs as generateCssIcon,
|
|
11711
|
+
ga as getLongDate,
|
|
11712
|
+
ka as getMember,
|
|
11713
|
+
Vs as getShortDate,
|
|
11714
11714
|
Qt as headerData,
|
|
11715
11715
|
vu as mapGetStreamData,
|
|
11716
|
-
|
|
11716
|
+
ti as pageReady,
|
|
11717
11717
|
jr as passwordValidator,
|
|
11718
11718
|
hu as repliesFeedMock,
|
|
11719
11719
|
gn as supportedLanguages,
|
|
11720
|
-
|
|
11721
|
-
|
|
11722
|
-
|
|
11720
|
+
zs as toCamelCase,
|
|
11721
|
+
Zs as toSentenceCase,
|
|
11722
|
+
Ls as useCurrentPath,
|
|
11723
11723
|
_t as useEffectAfterMount,
|
|
11724
11724
|
jt as useElementWidth,
|
|
11725
|
-
|
|
11726
|
-
|
|
11725
|
+
qs as useScrollListener,
|
|
11726
|
+
Us as useScrollToHash,
|
|
11727
11727
|
er as useUser
|
|
11728
11728
|
};
|