@apolitical/component-library 3.5.12-ac.1 → 3.5.12-ac.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 +901 -898
- package/package.json +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
|
|
2
|
-
import { useCookies 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 ia, useReducer as Yn, Fragment as yt, Suspense as xs } from "react";
|
|
2
|
+
import { useCookies as Kn, CookiesProvider as ws } from "react-cookie";
|
|
3
3
|
import pt from "lodash.clonedeep";
|
|
4
|
-
import
|
|
5
|
-
import { FormattedMessage as ye, useIntl as H, IntlProvider as
|
|
4
|
+
import js from "lodash.set";
|
|
5
|
+
import { FormattedMessage as ye, useIntl as H, IntlProvider as ks, createIntl as Ts } from "react-intl";
|
|
6
6
|
import Le from "markdown-to-jsx";
|
|
7
7
|
import et from "truncate";
|
|
8
|
-
import { QueryClient as
|
|
9
|
-
import { ReactQueryDevtools as
|
|
8
|
+
import { QueryClient as Es, QueryClientProvider as Ss, useMutation as je, useQueryClient as Gn, useInfiniteQuery as oa, useQuery as Cs } from "@tanstack/react-query";
|
|
9
|
+
import { ReactQueryDevtools as Ns } from "@tanstack/react-query-devtools";
|
|
10
10
|
import Lt from "posthog-js";
|
|
11
|
-
import { ReactMultiEmail as
|
|
12
|
-
import
|
|
13
|
-
import { ErrorBoundary as
|
|
14
|
-
import
|
|
15
|
-
import
|
|
16
|
-
function
|
|
11
|
+
import { ReactMultiEmail as $s } 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 E = /* @__PURE__ */
|
|
75
|
+
})(da);
|
|
76
|
+
var Fs = da.exports;
|
|
77
|
+
const E = /* @__PURE__ */ la(Fs), Os = ({
|
|
78
78
|
element: t = "span",
|
|
79
79
|
showOnFocus: e = !0,
|
|
80
80
|
children: n,
|
|
@@ -84,12 +84,12 @@ const E = /* @__PURE__ */ ua(Os), As = ({
|
|
|
84
84
|
...s,
|
|
85
85
|
className: E("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),
|
|
92
|
-
var
|
|
91
|
+
}) => Y.createElement(t, { ...n, "aria-hidden": !0 }, e), Qn = Ae(As);
|
|
92
|
+
var qn = { exports: {} }, it = {};
|
|
93
93
|
/**
|
|
94
94
|
* @license React
|
|
95
95
|
* react-jsx-runtime.production.min.js
|
|
@@ -99,11 +99,11 @@ var Un = { exports: {} }, it = {};
|
|
|
99
99
|
* This source code is licensed under the MIT license found in the
|
|
100
100
|
* LICENSE file in the root directory of this source tree.
|
|
101
101
|
*/
|
|
102
|
-
var
|
|
103
|
-
function
|
|
104
|
-
if (
|
|
102
|
+
var wr;
|
|
103
|
+
function Ds() {
|
|
104
|
+
if (wr)
|
|
105
105
|
return it;
|
|
106
|
-
|
|
106
|
+
wr = 1;
|
|
107
107
|
var t = Y, e = Symbol.for("react.element"), n = Symbol.for("react.fragment"), r = Object.prototype.hasOwnProperty, s = t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, i = { key: !0, ref: !0, __self: !0, __source: !0 };
|
|
108
108
|
function o(c, d, l) {
|
|
109
109
|
var u, f = {}, m = null, p = null;
|
|
@@ -127,9 +127,9 @@ var ot = {};
|
|
|
127
127
|
* This source code is licensed under the MIT license found in the
|
|
128
128
|
* LICENSE file in the root directory of this source tree.
|
|
129
129
|
*/
|
|
130
|
-
var
|
|
131
|
-
function
|
|
132
|
-
return
|
|
130
|
+
var jr;
|
|
131
|
+
function Is() {
|
|
132
|
+
return jr || (jr = 1, process.env.NODE_ENV !== "production" && function() {
|
|
133
133
|
var t = Y, e = Symbol.for("react.element"), n = Symbol.for("react.portal"), r = Symbol.for("react.fragment"), s = Symbol.for("react.strict_mode"), i = Symbol.for("react.profiler"), o = Symbol.for("react.provider"), c = Symbol.for("react.context"), d = Symbol.for("react.forward_ref"), l = Symbol.for("react.suspense"), u = Symbol.for("react.suspense_list"), f = Symbol.for("react.memo"), m = Symbol.for("react.lazy"), p = Symbol.for("react.offscreen"), g = Symbol.iterator, v = "@@iterator";
|
|
134
134
|
function _(h) {
|
|
135
135
|
if (h === null || typeof h != "object")
|
|
@@ -368,8 +368,8 @@ function Ls() {
|
|
|
368
368
|
} finally {
|
|
369
369
|
re = !1, G.current = me, te(), Error.prepareStackTrace = le;
|
|
370
370
|
}
|
|
371
|
-
var Ge = h ? h.displayName || h.name : "",
|
|
372
|
-
return typeof h == "function" && O.set(h,
|
|
371
|
+
var Ge = h ? h.displayName || h.name : "", xr = Ge ? ee(Ge) : "";
|
|
372
|
+
return typeof h == "function" && O.set(h, xr), xr;
|
|
373
373
|
}
|
|
374
374
|
function ve(h, M, I) {
|
|
375
375
|
return D(h, !1);
|
|
@@ -407,15 +407,15 @@ function Ls() {
|
|
|
407
407
|
}
|
|
408
408
|
return "";
|
|
409
409
|
}
|
|
410
|
-
var Ue = Object.prototype.hasOwnProperty,
|
|
410
|
+
var Ue = Object.prototype.hasOwnProperty, lr = {}, ur = y.ReactDebugCurrentFrame;
|
|
411
411
|
function Et(h) {
|
|
412
412
|
if (h) {
|
|
413
413
|
var M = h._owner, I = Ce(h.type, h._source, M ? M.type : null);
|
|
414
|
-
|
|
414
|
+
ur.setExtraStackFrame(I);
|
|
415
415
|
} else
|
|
416
|
-
|
|
416
|
+
ur.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)
|
|
@@ -430,42 +430,42 @@ function Ls() {
|
|
|
430
430
|
} catch (he) {
|
|
431
431
|
ie = he;
|
|
432
432
|
}
|
|
433
|
-
ie && !(ie instanceof Error) && (Et(le), x("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", ne || "React class", I, ce, typeof ie), Et(null)), ie instanceof Error && !(ie.message in
|
|
433
|
+
ie && !(ie instanceof Error) && (Et(le), x("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", ne || "React class", I, ce, typeof ie), Et(null)), ie instanceof Error && !(ie.message in lr) && (lr[ie.message] = !0, Et(le), x("Failed %s type: %s", I, ie.message), Et(null));
|
|
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
|
-
return
|
|
449
|
+
return dr(h), !1;
|
|
450
450
|
} catch {
|
|
451
451
|
return !0;
|
|
452
452
|
}
|
|
453
453
|
}
|
|
454
|
-
function
|
|
454
|
+
function dr(h) {
|
|
455
455
|
return "" + h;
|
|
456
456
|
}
|
|
457
|
-
function
|
|
458
|
-
if (
|
|
459
|
-
return x("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",
|
|
457
|
+
function fr(h) {
|
|
458
|
+
if (as(h))
|
|
459
|
+
return x("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", rs(h)), dr(h);
|
|
460
460
|
}
|
|
461
|
-
var st = y.ReactCurrentOwner,
|
|
461
|
+
var st = y.ReactCurrentOwner, ss = {
|
|
462
462
|
key: !0,
|
|
463
463
|
ref: !0,
|
|
464
464
|
__self: !0,
|
|
465
465
|
__source: !0
|
|
466
|
-
},
|
|
466
|
+
}, mr, pr, 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,16 +481,16 @@ 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 = j(st.current.type);
|
|
487
487
|
un[I] || (x('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', j(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
|
+
mr || (mr = !0, x("%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));
|
|
494
494
|
};
|
|
495
495
|
I.isReactWarning = !0, Object.defineProperty(h, "key", {
|
|
496
496
|
get: I,
|
|
@@ -498,10 +498,10 @@ function Ls() {
|
|
|
498
498
|
});
|
|
499
499
|
}
|
|
500
500
|
}
|
|
501
|
-
function
|
|
501
|
+
function us(h, M) {
|
|
502
502
|
{
|
|
503
503
|
var I = function() {
|
|
504
|
-
|
|
504
|
+
pr || (pr = !0, x("%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));
|
|
505
505
|
};
|
|
506
506
|
I.isReactWarning = !0, Object.defineProperty(h, "ref", {
|
|
507
507
|
get: I,
|
|
@@ -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 && (
|
|
544
|
+
I !== void 0 && (fr(I), ie = "" + I), os(M) && (fr(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,25 +551,25 @@ 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
|
-
var dn = y.ReactCurrentOwner,
|
|
559
|
+
var dn = y.ReactCurrentOwner, hr = y.ReactDebugCurrentFrame;
|
|
560
560
|
function Ke(h) {
|
|
561
561
|
if (h) {
|
|
562
562
|
var M = h._owner, I = Ce(h.type, h._source, M ? M.type : null);
|
|
563
|
-
|
|
563
|
+
hr.setExtraStackFrame(I);
|
|
564
564
|
} else
|
|
565
|
-
|
|
565
|
+
hr.setExtraStackFrame(null);
|
|
566
566
|
}
|
|
567
567
|
var fn;
|
|
568
568
|
fn = !1;
|
|
569
569
|
function mn(h) {
|
|
570
570
|
return typeof h == "object" && h !== null && h.$$typeof === e;
|
|
571
571
|
}
|
|
572
|
-
function
|
|
572
|
+
function gr() {
|
|
573
573
|
{
|
|
574
574
|
if (dn.current) {
|
|
575
575
|
var h = j(dn.current.type);
|
|
@@ -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;
|
|
@@ -592,10 +592,10 @@ Check your code at ` + M + ":" + I + ".";
|
|
|
592
592
|
return "";
|
|
593
593
|
}
|
|
594
594
|
}
|
|
595
|
-
var
|
|
596
|
-
function
|
|
595
|
+
var vr = {};
|
|
596
|
+
function ps(h) {
|
|
597
597
|
{
|
|
598
|
-
var M =
|
|
598
|
+
var M = gr();
|
|
599
599
|
if (!M) {
|
|
600
600
|
var I = typeof h == "string" ? h : h.displayName || h.name;
|
|
601
601
|
I && (M = `
|
|
@@ -605,27 +605,27 @@ Check the top-level render call using <` + I + ">.");
|
|
|
605
605
|
return M;
|
|
606
606
|
}
|
|
607
607
|
}
|
|
608
|
-
function
|
|
608
|
+
function br(h, M) {
|
|
609
609
|
{
|
|
610
610
|
if (!h._store || h._store.validated || h.key != null)
|
|
611
611
|
return;
|
|
612
612
|
h._store.validated = !0;
|
|
613
|
-
var I =
|
|
614
|
-
if (
|
|
613
|
+
var I = ps(M);
|
|
614
|
+
if (vr[I])
|
|
615
615
|
return;
|
|
616
|
-
|
|
616
|
+
vr[I] = !0;
|
|
617
617
|
var ne = "";
|
|
618
618
|
h && h._owner && h._owner !== dn.current && (ne = " It was passed a child from " + j(h._owner.type) + "."), Ke(h), x('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', I, ne), Ke(null);
|
|
619
619
|
}
|
|
620
620
|
}
|
|
621
|
-
function
|
|
621
|
+
function yr(h, M) {
|
|
622
622
|
{
|
|
623
623
|
if (typeof h != "object")
|
|
624
624
|
return;
|
|
625
625
|
if (ln(h))
|
|
626
626
|
for (var I = 0; I < h.length; I++) {
|
|
627
627
|
var ne = h[I];
|
|
628
|
-
mn(ne) &&
|
|
628
|
+
mn(ne) && br(ne, M);
|
|
629
629
|
}
|
|
630
630
|
else if (mn(h))
|
|
631
631
|
h._store && (h._store.validated = !0);
|
|
@@ -633,11 +633,11 @@ Check the top-level render call using <` + I + ">.");
|
|
|
633
633
|
var le = _(h);
|
|
634
634
|
if (typeof le == "function" && le !== h.entries)
|
|
635
635
|
for (var me = le.call(h), ce; !(ce = me.next()).done; )
|
|
636
|
-
mn(ce.value) &&
|
|
636
|
+
mn(ce.value) && br(ce.value, M);
|
|
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 = j(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 = j(M);
|
|
@@ -662,7 +662,7 @@ Check the top-level render call using <` + I + ">.");
|
|
|
662
662
|
typeof M.getDefaultProps == "function" && !M.getDefaultProps.isReactClassApproved && x("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];
|
|
@@ -674,18 +674,18 @@ Check the top-level render call using <` + I + ">.");
|
|
|
674
674
|
h.ref !== null && (Ke(h), x("Invalid attribute `ref` supplied to `React.Fragment`."), Ke(null));
|
|
675
675
|
}
|
|
676
676
|
}
|
|
677
|
-
function
|
|
677
|
+
function _r(h, M, I, ne, le, me) {
|
|
678
678
|
{
|
|
679
679
|
var ce = N(h);
|
|
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 =
|
|
684
|
-
xe ? ie += xe : ie +=
|
|
683
|
+
var xe = ms(le);
|
|
684
|
+
xe ? ie += xe : ie += gr();
|
|
685
685
|
var he;
|
|
686
686
|
h === null ? he = "null" : ln(h) ? he = "array" : h !== void 0 && h.$$typeof === e ? (he = "<" + (j(h.type) || "Unknown") + " />", ie = " Did you accidentally export a JSX literal instead of a component?") : he = typeof h, x("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) {
|
|
@@ -694,29 +694,29 @@ Check the top-level render call using <` + I + ">.");
|
|
|
694
694
|
if (ne)
|
|
695
695
|
if (ln(ke)) {
|
|
696
696
|
for (var Ge = 0; Ge < ke.length; Ge++)
|
|
697
|
-
|
|
697
|
+
yr(ke[Ge], h);
|
|
698
698
|
Object.freeze && Object.freeze(ke);
|
|
699
699
|
} else
|
|
700
700
|
x("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
|
|
701
701
|
else
|
|
702
|
-
|
|
702
|
+
yr(ke, h);
|
|
703
703
|
}
|
|
704
|
-
return h === r ?
|
|
704
|
+
return h === r ? gs(ge) : hs(ge), ge;
|
|
705
705
|
}
|
|
706
706
|
}
|
|
707
|
-
function
|
|
708
|
-
return
|
|
707
|
+
function vs(h, M, I) {
|
|
708
|
+
return _r(h, M, I, !0);
|
|
709
709
|
}
|
|
710
|
-
function
|
|
711
|
-
return
|
|
710
|
+
function bs(h, M, I) {
|
|
711
|
+
return _r(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" ?
|
|
718
|
-
var a =
|
|
719
|
-
const
|
|
717
|
+
process.env.NODE_ENV === "production" ? qn.exports = Ds() : qn.exports = Is();
|
|
718
|
+
var a = qn.exports;
|
|
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, x, v, p, m, y]);
|
|
787
787
|
return S;
|
|
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,10 +817,13 @@ const jt = (t = !0, e = !1, n = "window") => {
|
|
|
817
817
|
{ leading: !0 }
|
|
818
818
|
);
|
|
819
819
|
return r;
|
|
820
|
-
},
|
|
821
|
-
const
|
|
822
|
-
return
|
|
823
|
-
|
|
820
|
+
}, Nl = () => {
|
|
821
|
+
const t = "signup-this-session";
|
|
822
|
+
return ae(() => {
|
|
823
|
+
const [e, n, r] = Kn([t]);
|
|
824
|
+
e[t] && r(t, { path: "/" });
|
|
825
|
+
}, []), !0;
|
|
826
|
+
}, qs = ({
|
|
824
827
|
scrollPosition: t = 0,
|
|
825
828
|
// The position on the page to scroll past
|
|
826
829
|
offset: e = { down: 0, up: 10 },
|
|
@@ -850,11 +853,11 @@ const jt = (t = !0, e = !1, n = "window") => {
|
|
|
850
853
|
return;
|
|
851
854
|
}
|
|
852
855
|
Math.abs(m) >= e.up && !o.scrollUp && (r(), c({ scrollUp: !0, scrollDown: !1 }));
|
|
853
|
-
}, l =
|
|
856
|
+
}, l = fa(() => {
|
|
854
857
|
d();
|
|
855
858
|
}, 250);
|
|
856
859
|
return s;
|
|
857
|
-
},
|
|
860
|
+
}, Us = (t = [], e = !0) => {
|
|
858
861
|
t = Array.isArray(t) ? t : [t];
|
|
859
862
|
const n = pe(!1);
|
|
860
863
|
_t(() => {
|
|
@@ -865,19 +868,19 @@ const jt = (t = !0, e = !1, n = "window") => {
|
|
|
865
868
|
r && (r.scrollIntoView(e ? { behavior: "smooth" } : null), n.current = !0);
|
|
866
869
|
}
|
|
867
870
|
}, t);
|
|
868
|
-
},
|
|
871
|
+
}, ma = (t, e) => {
|
|
869
872
|
Array.isArray(e) || (e = [e]);
|
|
870
873
|
const n = pt(t);
|
|
871
874
|
return e.forEach(({ type: r, value: s }) => {
|
|
872
|
-
|
|
875
|
+
js(n, r, s);
|
|
873
876
|
}), n;
|
|
874
|
-
},
|
|
877
|
+
}, pa = (t) => {
|
|
875
878
|
const e = [];
|
|
876
879
|
return t.forEach((n) => {
|
|
877
880
|
const r = parseInt(n);
|
|
878
881
|
isNaN(r) || e.push(r);
|
|
879
882
|
}), e.sort((n, r) => n - r);
|
|
880
|
-
},
|
|
883
|
+
}, ha = (t, e, n) => {
|
|
881
884
|
let r = n.mobile;
|
|
882
885
|
for (const s in e) {
|
|
883
886
|
const i = parseInt(String(e[s]));
|
|
@@ -887,7 +890,7 @@ const jt = (t = !0, e = !1, n = "window") => {
|
|
|
887
890
|
break;
|
|
888
891
|
}
|
|
889
892
|
return r;
|
|
890
|
-
},
|
|
893
|
+
}, 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 = {
|
|
891
894
|
general: "hello@apolitical.co",
|
|
892
895
|
support: "concierge@apolitical.co",
|
|
893
896
|
"data-protection": {
|
|
@@ -898,8 +901,8 @@ const jt = (t = !0, e = !1, n = "window") => {
|
|
|
898
901
|
ARTICLE: "microcourseArticle",
|
|
899
902
|
DISCUSSION: "microcourseDiscussion",
|
|
900
903
|
QUIZ: "assessmentQuiz"
|
|
901
|
-
},
|
|
902
|
-
function
|
|
904
|
+
}, $l = "200,000+";
|
|
905
|
+
function Hs(t) {
|
|
903
906
|
return t ? {
|
|
904
907
|
"--icon": `url(${Be}icons/${t}.svg)`
|
|
905
908
|
} : {};
|
|
@@ -915,12 +918,12 @@ const ze = {
|
|
|
915
918
|
weeks: 52,
|
|
916
919
|
days: 365
|
|
917
920
|
}
|
|
918
|
-
},
|
|
921
|
+
}, Vs = (t, e = "en") => new Date(t).toLocaleString(e, { day: "numeric", month: "short" }), ga = (t, e = "en") => new Date(t).toLocaleString(e, {
|
|
919
922
|
weekday: "long",
|
|
920
923
|
day: "numeric",
|
|
921
924
|
month: "short",
|
|
922
925
|
year: "numeric"
|
|
923
|
-
}),
|
|
926
|
+
}), Un = (t) => {
|
|
924
927
|
let e;
|
|
925
928
|
const n = Ut(), r = Ut(new Date(t));
|
|
926
929
|
try {
|
|
@@ -938,7 +941,7 @@ const ze = {
|
|
|
938
941
|
}, Ut = (t) => {
|
|
939
942
|
const n = (t || /* @__PURE__ */ new Date()).toUTCString();
|
|
940
943
|
return new Date(n);
|
|
941
|
-
},
|
|
944
|
+
}, Ys = (t, e, n) => {
|
|
942
945
|
let r;
|
|
943
946
|
const s = Ut(), i = Ut(new Date(t));
|
|
944
947
|
try {
|
|
@@ -955,7 +958,7 @@ const ze = {
|
|
|
955
958
|
return r / ze.milliseconds.inHour <= e;
|
|
956
959
|
}
|
|
957
960
|
return !1;
|
|
958
|
-
},
|
|
961
|
+
}, Ks = (t) => new Promise((e) => setTimeout(e, t)), rt = {
|
|
959
962
|
/* Common */
|
|
960
963
|
apolitical: "Apolitical",
|
|
961
964
|
dates_now: "now",
|
|
@@ -1375,7 +1378,7 @@ Thank you for helping to protect the Apolitical community from abusive content.`
|
|
|
1375
1378
|
markdown_iframe_video: "Video",
|
|
1376
1379
|
markdown_iframe_padlet: "Interactive board",
|
|
1377
1380
|
markdown_iframe_poll: "Poll"
|
|
1378
|
-
},
|
|
1381
|
+
}, Gs = {
|
|
1379
1382
|
...rt,
|
|
1380
1383
|
/* Navigation */
|
|
1381
1384
|
languageSwitcher_label: "Me gustaría leer este artículo en...",
|
|
@@ -1383,7 +1386,7 @@ Thank you for helping to protect the Apolitical community from abusive content.`
|
|
|
1383
1386
|
languageSwitcher_translation_human: "traducido por un humano",
|
|
1384
1387
|
languageSwitcher_translation_machine: "traducido por máquina",
|
|
1385
1388
|
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>"
|
|
1386
|
-
},
|
|
1389
|
+
}, Qs = {
|
|
1387
1390
|
...rt,
|
|
1388
1391
|
/* Navigation */
|
|
1389
1392
|
languageSwitcher_label: "Je voudrais lire cet article dans...",
|
|
@@ -1393,7 +1396,7 @@ Thank you for helping to protect the Apolitical community from abusive content.`
|
|
|
1393
1396
|
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>",
|
|
1394
1397
|
/* Text */
|
|
1395
1398
|
collapsibleSection_summary: "En savoir plus"
|
|
1396
|
-
},
|
|
1399
|
+
}, Js = {
|
|
1397
1400
|
...rt,
|
|
1398
1401
|
/* Navigation */
|
|
1399
1402
|
languageSwitcher_label: "Eu gostaria de ler este artigo em...",
|
|
@@ -1401,16 +1404,16 @@ Thank you for helping to protect the Apolitical community from abusive content.`
|
|
|
1401
1404
|
languageSwitcher_translation_human: "traduzido por um humano",
|
|
1402
1405
|
languageSwitcher_translation_machine: "traduzido por máquina",
|
|
1403
1406
|
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>"
|
|
1404
|
-
},
|
|
1407
|
+
}, Xs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1405
1408
|
__proto__: null,
|
|
1406
1409
|
en: rt,
|
|
1407
|
-
es:
|
|
1408
|
-
fr:
|
|
1409
|
-
pt:
|
|
1410
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
1410
|
+
es: Gs,
|
|
1411
|
+
fr: Qs,
|
|
1412
|
+
pt: Js
|
|
1413
|
+
}, Symbol.toStringTag, { value: "Module" })), Jn = (t, e = rt) => t in e, Ne = (t, e, n, r, s = {}) => {
|
|
1411
1414
|
let i = "";
|
|
1412
|
-
return
|
|
1413
|
-
},
|
|
1415
|
+
return Jn(`${e}_${n}`) ? i = t({ id: `${e}_${n}` }, s) : i = t({ id: e }, { [r]: n, ...s }), i;
|
|
1416
|
+
}, ei = (t, e, n) => {
|
|
1414
1417
|
if (!t || t === 0)
|
|
1415
1418
|
return "0";
|
|
1416
1419
|
e || (e = 0), n || (n = ["k", "m", "b", "t"]);
|
|
@@ -1426,12 +1429,12 @@ Thank you for helping to protect the Apolitical community from abusive content.`
|
|
|
1426
1429
|
return r;
|
|
1427
1430
|
}, Bt = (t, e) => Y.Children.map(t, (n) => Object.is(n, null) ? n : Y.cloneElement(n, {
|
|
1428
1431
|
...e
|
|
1429
|
-
})),
|
|
1432
|
+
})), ti = (t = 0) => {
|
|
1430
1433
|
setTimeout(() => {
|
|
1431
1434
|
const e = document.querySelector(".splash-screen");
|
|
1432
1435
|
e && e.remove(), window.prerenderReady = !0;
|
|
1433
1436
|
}, t);
|
|
1434
|
-
},
|
|
1437
|
+
}, ni = (t) => t.replace(/\s+/g, "").length > 0, kr = (t) => {
|
|
1435
1438
|
const e = t.length > 8, n = /[0-9]/.test(t) && /[`!@#$%^&*()_+\-=[\]{}£;':"\\|,.<>/?~]/.test(t), r = new RegExp("^(?=.*?[A-Z])(?=.*?[a-z])").test(t);
|
|
1436
1439
|
return {
|
|
1437
1440
|
isValid: e && n && r,
|
|
@@ -1457,8 +1460,8 @@ Thank you for helping to protect the Apolitical community from abusive content.`
|
|
|
1457
1460
|
}) => {
|
|
1458
1461
|
const p = jt(typeof e == "object");
|
|
1459
1462
|
if (typeof e == "object" && typeof p == "number") {
|
|
1460
|
-
const _ = Object.assign({}, e), y =
|
|
1461
|
-
e =
|
|
1463
|
+
const _ = Object.assign({}, e), y = pa(Object.keys(_));
|
|
1464
|
+
e = ha(p, y, _);
|
|
1462
1465
|
}
|
|
1463
1466
|
const g = [];
|
|
1464
1467
|
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");
|
|
@@ -1490,7 +1493,7 @@ Thank you for helping to protect the Apolitical community from abusive content.`
|
|
|
1490
1493
|
const Oe = ({ className: t = "", maxWidth: e = !1 }) => {
|
|
1491
1494
|
const n = e ? { "--max-width": `${e / 16}rem` } : {};
|
|
1492
1495
|
return /* @__PURE__ */ a.jsx("hr", { className: E(t, { "has-max-width": e }), style: n });
|
|
1493
|
-
},
|
|
1496
|
+
}, Tr = {
|
|
1494
1497
|
card: {
|
|
1495
1498
|
range: [
|
|
1496
1499
|
{
|
|
@@ -1593,17 +1596,17 @@ const Oe = ({ className: t = "", maxWidth: e = !1 }) => {
|
|
|
1593
1596
|
],
|
|
1594
1597
|
sizes: "(min-width: 1024px) 453px, 20vw"
|
|
1595
1598
|
}
|
|
1596
|
-
},
|
|
1599
|
+
}, ri = ({
|
|
1597
1600
|
aspect: t,
|
|
1598
1601
|
range: e,
|
|
1599
1602
|
sizes: n
|
|
1600
1603
|
}) => {
|
|
1601
|
-
const { range: r, sizes: s } = t ?
|
|
1604
|
+
const { range: r, sizes: s } = t ? Tr[t] : Tr.fallback;
|
|
1602
1605
|
return { range: e && e.length > 0 ? e : r, sizes: n || s };
|
|
1603
|
-
},
|
|
1606
|
+
}, ai = ({ format: t, height: e, query: n, width: r }) => {
|
|
1604
1607
|
let s = `w=${r}&h=${e}`;
|
|
1605
1608
|
return s = t ? `${s}&fm=${t}` : s, s = n ? `${s}&${n}` : s, s;
|
|
1606
|
-
},
|
|
1609
|
+
}, hn = ({ format: t, range: e, url: n, query: r }) => e.map(({ height: s, width: i }) => `${n}?${ai({
|
|
1607
1610
|
format: t,
|
|
1608
1611
|
height: s,
|
|
1609
1612
|
query: r,
|
|
@@ -1620,7 +1623,7 @@ const Tt = ({ image: t, className: e, testId: n }) => {
|
|
|
1620
1623
|
loading: l,
|
|
1621
1624
|
decoding: u,
|
|
1622
1625
|
fetchPriority: f
|
|
1623
|
-
} = t, { range: m, sizes: p } =
|
|
1626
|
+
} = t, { range: m, sizes: p } = ri(t), g = hn({ format: "avif", query: o, range: m, url: c }), v = hn({ format: "webp", query: o, range: m, url: c }), _ = hn({ format: "", query: o, range: m, url: c });
|
|
1624
1627
|
return /* @__PURE__ */ a.jsxs("picture", { className: e, children: [
|
|
1625
1628
|
i !== "image/gif" && /* @__PURE__ */ a.jsx(
|
|
1626
1629
|
"source",
|
|
@@ -1649,7 +1652,7 @@ const Tt = ({ image: t, className: e, testId: n }) => {
|
|
|
1649
1652
|
)
|
|
1650
1653
|
] });
|
|
1651
1654
|
};
|
|
1652
|
-
const
|
|
1655
|
+
const Pl = ({ image: t, className: e, testId: n }) => /* @__PURE__ */ a.jsx(
|
|
1653
1656
|
"div",
|
|
1654
1657
|
{
|
|
1655
1658
|
className: `image-container ${e}`,
|
|
@@ -1672,7 +1675,7 @@ const Ml = ({ image: t, className: e, testId: n }) => /* @__PURE__ */ a.jsx(
|
|
|
1672
1675
|
}
|
|
1673
1676
|
return n ? Y.createElement(n, { children: e, className: r, ...c }) : /* @__PURE__ */ a.jsx(a.Fragment, { children: e });
|
|
1674
1677
|
};
|
|
1675
|
-
const
|
|
1678
|
+
const Ml = ({ currentStep: t = 1, steps: e = 1 }) => /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
|
|
1676
1679
|
/* @__PURE__ */ a.jsx(be, { children: /* @__PURE__ */ a.jsx(
|
|
1677
1680
|
ye,
|
|
1678
1681
|
{
|
|
@@ -1704,7 +1707,7 @@ const Rl = ({ currentStep: t = 1, steps: e = 1 }) => /* @__PURE__ */ a.jsxs(a.Fr
|
|
|
1704
1707
|
] }, r);
|
|
1705
1708
|
}) }) })
|
|
1706
1709
|
] });
|
|
1707
|
-
const
|
|
1710
|
+
const Rl = ({ elementId: t, offset: e = 20 }) => {
|
|
1708
1711
|
const n = H(), r = () => {
|
|
1709
1712
|
const s = document.getElementById(t);
|
|
1710
1713
|
if (!s)
|
|
@@ -1725,8 +1728,8 @@ const Fl = ({ elementId: t, offset: e = 20 }) => {
|
|
|
1725
1728
|
screenreaderText: n.formatMessage({ id: "return_to_nav_button" })
|
|
1726
1729
|
}
|
|
1727
1730
|
);
|
|
1728
|
-
},
|
|
1729
|
-
class
|
|
1731
|
+
}, Er = 300, Sr = "ease-in-out";
|
|
1732
|
+
class si {
|
|
1730
1733
|
constructor(e) {
|
|
1731
1734
|
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));
|
|
1732
1735
|
}
|
|
@@ -1744,8 +1747,8 @@ class ii {
|
|
|
1744
1747
|
height: [e, n]
|
|
1745
1748
|
},
|
|
1746
1749
|
{
|
|
1747
|
-
duration:
|
|
1748
|
-
easing:
|
|
1750
|
+
duration: Er,
|
|
1751
|
+
easing: Sr
|
|
1749
1752
|
}
|
|
1750
1753
|
), this.animation.onfinish = () => this.onAnimationFinish(!1), this.animation.oncancel = () => this.isClosing = !1;
|
|
1751
1754
|
}
|
|
@@ -1760,8 +1763,8 @@ class ii {
|
|
|
1760
1763
|
height: [e, n]
|
|
1761
1764
|
},
|
|
1762
1765
|
{
|
|
1763
|
-
duration:
|
|
1764
|
-
easing:
|
|
1766
|
+
duration: Er,
|
|
1767
|
+
easing: Sr
|
|
1765
1768
|
}
|
|
1766
1769
|
), this.animation.onfinish = () => this.onAnimationFinish(!0), this.animation.oncancel = () => this.isExpanding = !1;
|
|
1767
1770
|
}
|
|
@@ -1769,7 +1772,7 @@ class ii {
|
|
|
1769
1772
|
this.el.open = e, this.animation = null, this.isClosing = !1, this.isExpanding = !1, this.el.style.height = this.el.style.overflow = "";
|
|
1770
1773
|
}
|
|
1771
1774
|
}
|
|
1772
|
-
const
|
|
1775
|
+
const Xn = ({
|
|
1773
1776
|
label: t = !1,
|
|
1774
1777
|
className: e = "",
|
|
1775
1778
|
children: n,
|
|
@@ -1778,7 +1781,7 @@ const er = ({
|
|
|
1778
1781
|
const s = H(), i = pe(null);
|
|
1779
1782
|
return ae(() => {
|
|
1780
1783
|
let o;
|
|
1781
|
-
return r && (o = new
|
|
1784
|
+
return r && (o = new si(i.current)), () => {
|
|
1782
1785
|
r && o && o.cleanUp();
|
|
1783
1786
|
};
|
|
1784
1787
|
}, []), /* @__PURE__ */ a.jsxs(
|
|
@@ -1794,17 +1797,17 @@ const er = ({
|
|
|
1794
1797
|
]
|
|
1795
1798
|
}
|
|
1796
1799
|
);
|
|
1797
|
-
},
|
|
1800
|
+
}, Cr = {
|
|
1798
1801
|
cube: "box",
|
|
1799
1802
|
graduationCap: "graduation-cap",
|
|
1800
1803
|
person: "user",
|
|
1801
1804
|
speech: "speech-bubble_round",
|
|
1802
1805
|
star: "star_empty_thin"
|
|
1803
|
-
},
|
|
1806
|
+
}, ii = (t) => {
|
|
1804
1807
|
let e = t;
|
|
1805
|
-
return Object.keys(
|
|
1808
|
+
return Object.keys(Cr).includes(t) && (e = Cr[t]), `url(${Be}icons/${e}.svg)`;
|
|
1806
1809
|
};
|
|
1807
|
-
const
|
|
1810
|
+
const Nr = {
|
|
1808
1811
|
customCard: "custom",
|
|
1809
1812
|
microcourse: "course",
|
|
1810
1813
|
solutionArticle: "article",
|
|
@@ -1812,19 +1815,19 @@ const $r = {
|
|
|
1812
1815
|
listPage: "list",
|
|
1813
1816
|
learningHub: "learning-hub",
|
|
1814
1817
|
communityPage: "communityPage"
|
|
1815
|
-
},
|
|
1818
|
+
}, oi = ({
|
|
1816
1819
|
contentType: t,
|
|
1817
1820
|
customIcon: e,
|
|
1818
1821
|
customLabel: n,
|
|
1819
1822
|
className: r = ""
|
|
1820
1823
|
}) => {
|
|
1821
|
-
const s = H(), i = e ? { "--custom-icon":
|
|
1824
|
+
const s = H(), i = e ? { "--custom-icon": ii(e) } : {}, o = Jn(`contentTypeLabel_${t}`) ? s.formatMessage({ id: `contentTypeLabel_${t}` }) : !1;
|
|
1822
1825
|
return !n && !o ? null : /* @__PURE__ */ a.jsx(
|
|
1823
1826
|
"small",
|
|
1824
1827
|
{
|
|
1825
1828
|
className: E(
|
|
1826
1829
|
"content-type-label text-small",
|
|
1827
|
-
t in
|
|
1830
|
+
t in Nr ? Nr[t] : t,
|
|
1828
1831
|
r,
|
|
1829
1832
|
{
|
|
1830
1833
|
"has-custom-icon": e
|
|
@@ -1868,8 +1871,8 @@ const He = ({
|
|
|
1868
1871
|
let s = n && !!Object.keys(n).length;
|
|
1869
1872
|
const i = typeof n == "object" && "breakpoints" in n, o = jt(i);
|
|
1870
1873
|
if (i && typeof n == "object" && typeof o == "number") {
|
|
1871
|
-
const f = Object.assign({}, n.breakpoints), m =
|
|
1872
|
-
s =
|
|
1874
|
+
const f = Object.assign({}, n.breakpoints), m = pa(Object.keys(f));
|
|
1875
|
+
s = ha(o, m, f);
|
|
1873
1876
|
}
|
|
1874
1877
|
const {
|
|
1875
1878
|
breakpoints: c,
|
|
@@ -1896,10 +1899,10 @@ const He = ({
|
|
|
1896
1899
|
}
|
|
1897
1900
|
);
|
|
1898
1901
|
};
|
|
1899
|
-
const
|
|
1902
|
+
const Wn = ({ children: t, ...e }) => /* @__PURE__ */ a.jsx("p", { ...e, children: t }), va = { q: Wn, blockquote: Wn };
|
|
1900
1903
|
for (let t = 1; t <= 6; t++)
|
|
1901
|
-
|
|
1902
|
-
const
|
|
1904
|
+
va[`h${t}`] = { component: Wn, props: { className: "title" } };
|
|
1905
|
+
const ci = ({
|
|
1903
1906
|
type: t = "default",
|
|
1904
1907
|
className: e = "",
|
|
1905
1908
|
heading: n = !1,
|
|
@@ -1912,13 +1915,13 @@ const li = ({
|
|
|
1912
1915
|
options: {
|
|
1913
1916
|
wrapper: Y.Fragment,
|
|
1914
1917
|
forceBlock: !0,
|
|
1915
|
-
overrides:
|
|
1918
|
+
overrides: va
|
|
1916
1919
|
},
|
|
1917
1920
|
children: r
|
|
1918
1921
|
}
|
|
1919
1922
|
) : /* @__PURE__ */ a.jsx("p", { children: r })
|
|
1920
1923
|
] });
|
|
1921
|
-
const
|
|
1924
|
+
const Fl = ({
|
|
1922
1925
|
className: t = "",
|
|
1923
1926
|
show: e = !1,
|
|
1924
1927
|
hide: n = !1,
|
|
@@ -1977,7 +1980,7 @@ const Ol = ({
|
|
|
1977
1980
|
}
|
|
1978
1981
|
);
|
|
1979
1982
|
};
|
|
1980
|
-
const
|
|
1983
|
+
const Ol = ({
|
|
1981
1984
|
element: t = "ul",
|
|
1982
1985
|
layout: e = "vertical",
|
|
1983
1986
|
variant: n = "default",
|
|
@@ -2002,7 +2005,7 @@ const Al = ({
|
|
|
2002
2005
|
] }, `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);
|
|
2003
2006
|
})
|
|
2004
2007
|
});
|
|
2005
|
-
}, _e = () => Y.Fragment,
|
|
2008
|
+
}, _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 }) => {
|
|
2006
2009
|
const e = H();
|
|
2007
2010
|
if (!t)
|
|
2008
2011
|
return null;
|
|
@@ -2010,14 +2013,14 @@ const Al = ({
|
|
|
2010
2013
|
id: "markdown_collapsibleSection_summary"
|
|
2011
2014
|
});
|
|
2012
2015
|
const r = [];
|
|
2013
|
-
for (const i of
|
|
2016
|
+
for (const i of Bn.toArray(t))
|
|
2014
2017
|
if (!(!i || typeof i == "string" || typeof i == "number"))
|
|
2015
2018
|
if (Y.isValidElement(i) && i.type === "summary") {
|
|
2016
2019
|
if (i.props && i.props.children) {
|
|
2017
|
-
for (const o of
|
|
2020
|
+
for (const o of Bn.toArray(i.props.children))
|
|
2018
2021
|
if (!(!o || typeof o == "string" || typeof o == "number") && Y.isValidElement(o)) {
|
|
2019
2022
|
const c = o.type;
|
|
2020
|
-
if (
|
|
2023
|
+
if (di.includes(c)) {
|
|
2021
2024
|
for (n = o.props.children; typeof n != "string" && (Array.isArray(n) && n[0].props && n[0].props.children && n[0].props.children[0]); )
|
|
2022
2025
|
n = n[0].props.children[0];
|
|
2023
2026
|
break;
|
|
@@ -2028,14 +2031,14 @@ const Al = ({
|
|
|
2028
2031
|
r.push(i);
|
|
2029
2032
|
const s = n ? n.toString() : "";
|
|
2030
2033
|
return /* @__PURE__ */ a.jsx(
|
|
2031
|
-
|
|
2034
|
+
Xn,
|
|
2032
2035
|
{
|
|
2033
2036
|
label: s,
|
|
2034
2037
|
className: ["Sources", "Resources"].includes(s) ? "discrete-links" : "",
|
|
2035
2038
|
children: r.map((i) => i)
|
|
2036
2039
|
}
|
|
2037
2040
|
);
|
|
2038
|
-
},
|
|
2041
|
+
}, mi = ({
|
|
2039
2042
|
children: t,
|
|
2040
2043
|
...e
|
|
2041
2044
|
}) => {
|
|
@@ -2054,7 +2057,7 @@ const Al = ({
|
|
|
2054
2057
|
return /* @__PURE__ */ a.jsx("div", { ...e, children: t });
|
|
2055
2058
|
}
|
|
2056
2059
|
return /* @__PURE__ */ a.jsx("div", { ...e, children: t });
|
|
2057
|
-
},
|
|
2060
|
+
}, pi = (t) => {
|
|
2058
2061
|
const e = H(), n = Date.now().toString();
|
|
2059
2062
|
let r = "default";
|
|
2060
2063
|
const s = t.src;
|
|
@@ -2073,43 +2076,43 @@ const Al = ({
|
|
|
2073
2076
|
),
|
|
2074
2077
|
/* @__PURE__ */ a.jsx("span", { id: `content-after-iframe-${n}`, tabIndex: -1 })
|
|
2075
2078
|
] });
|
|
2076
|
-
},
|
|
2079
|
+
}, $r = (t) => {
|
|
2077
2080
|
let e = "";
|
|
2078
2081
|
return t && typeof t != "string" && typeof t != "number" && typeof t != "boolean" && "type" in t && (e = t.type), e;
|
|
2079
|
-
},
|
|
2082
|
+
}, hi = ({
|
|
2080
2083
|
children: t,
|
|
2081
2084
|
...e
|
|
2082
2085
|
}) => {
|
|
2083
2086
|
let n = { ...e };
|
|
2084
2087
|
e.href && (e.href.includes("http:") || e.href.includes("https:")) && !e.target && (n.target = "_blank");
|
|
2085
2088
|
let r = t, s = !1;
|
|
2086
|
-
for (const i of
|
|
2089
|
+
for (const i of Bn.toArray(t))
|
|
2087
2090
|
if (!(!i || typeof i == "string" || typeof i == "number") && Y.isValidElement(i)) {
|
|
2088
2091
|
const o = i.type;
|
|
2089
2092
|
if (["button", "center", "span", "strong"].includes(o) && i.props && i.props.children && i.props.children[0])
|
|
2090
|
-
for ((o === "button" ||
|
|
2093
|
+
for ((o === "button" || $r(i.props.children[0]) === "button") && (s = !0), r = i.props.children[0]; r && typeof r != "string" && !(typeof r == "boolean" || typeof r == "number" || !Y.isValidElement(r)); )
|
|
2091
2094
|
if (r.props && r.props.children && r.props.children[0])
|
|
2092
|
-
r = r.props.children[0], r &&
|
|
2095
|
+
r = r.props.children[0], r && $r(r) === "button" && (s = !0);
|
|
2093
2096
|
else
|
|
2094
2097
|
break;
|
|
2095
2098
|
}
|
|
2096
2099
|
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 });
|
|
2097
|
-
},
|
|
2098
|
-
const
|
|
2100
|
+
}, gi = ({ children: t }) => /* @__PURE__ */ a.jsx("span", { children: t });
|
|
2101
|
+
const vi = {
|
|
2099
2102
|
default: {
|
|
2100
|
-
a:
|
|
2103
|
+
a: hi,
|
|
2101
2104
|
// Override psuedo-code
|
|
2102
2105
|
// We give the content team psuedo-code short cuts to use in Contentful
|
|
2103
|
-
CollapsibleSection:
|
|
2106
|
+
CollapsibleSection: Xn,
|
|
2104
2107
|
TextBox: Fe,
|
|
2105
|
-
CaseStudy:
|
|
2108
|
+
CaseStudy: li,
|
|
2106
2109
|
// Override embedded HTML
|
|
2107
2110
|
// Our content team previously used real HTML, which we need to tear out and replace with React components
|
|
2108
2111
|
style: _e,
|
|
2109
|
-
details:
|
|
2110
|
-
div:
|
|
2111
|
-
iframe:
|
|
2112
|
-
center:
|
|
2112
|
+
details: fi,
|
|
2113
|
+
div: mi,
|
|
2114
|
+
iframe: pi,
|
|
2115
|
+
center: ui
|
|
2113
2116
|
},
|
|
2114
2117
|
"text-only": {
|
|
2115
2118
|
h1: _e,
|
|
@@ -2140,7 +2143,7 @@ const bi = {
|
|
|
2140
2143
|
const o = {
|
|
2141
2144
|
wrapper: Y.Fragment,
|
|
2142
2145
|
forceBlock: !0,
|
|
2143
|
-
overrides:
|
|
2146
|
+
overrides: vi[r]
|
|
2144
2147
|
};
|
|
2145
2148
|
return /* @__PURE__ */ a.jsx(
|
|
2146
2149
|
"div",
|
|
@@ -2152,7 +2155,7 @@ const bi = {
|
|
|
2152
2155
|
}
|
|
2153
2156
|
);
|
|
2154
2157
|
};
|
|
2155
|
-
const
|
|
2158
|
+
const bi = ({
|
|
2156
2159
|
maxWidth: t = !1,
|
|
2157
2160
|
title: e,
|
|
2158
2161
|
subtitle: n,
|
|
@@ -2209,12 +2212,12 @@ const Wt = ({
|
|
|
2209
2212
|
},
|
|
2210
2213
|
e
|
|
2211
2214
|
);
|
|
2212
|
-
const
|
|
2215
|
+
const yi = ({ author: t, authorCite: e, content: n }) => /* @__PURE__ */ a.jsxs("blockquote", { className: "testimonial-block", children: [
|
|
2213
2216
|
/* @__PURE__ */ a.jsx(Le, { className: "testimonial", children: n }),
|
|
2214
2217
|
t && /* @__PURE__ */ a.jsx("p", { className: "author text-small", children: t }),
|
|
2215
2218
|
e && /* @__PURE__ */ a.jsx("p", { className: "author-cite text-small", children: /* @__PURE__ */ a.jsx("cite", { children: e }) })
|
|
2216
|
-
] }),
|
|
2217
|
-
const
|
|
2219
|
+
] }), Al = Ae(yi);
|
|
2220
|
+
const Dl = ({
|
|
2218
2221
|
items: t = [],
|
|
2219
2222
|
selector: e = "",
|
|
2220
2223
|
className: n = ""
|
|
@@ -2246,7 +2249,7 @@ const Il = ({
|
|
|
2246
2249
|
}
|
|
2247
2250
|
);
|
|
2248
2251
|
};
|
|
2249
|
-
const
|
|
2252
|
+
const er = ({
|
|
2250
2253
|
time: t,
|
|
2251
2254
|
rangeTime: e,
|
|
2252
2255
|
prependedText: n,
|
|
@@ -2283,7 +2286,7 @@ const tr = ({
|
|
|
2283
2286
|
return n && (l = `${n} ${l}`, d = `${n} ${d}`), r && (l = `${l} ${r}`, d = `${d} ${r}`), /* @__PURE__ */ a.jsx("span", { className: E("time-to-complete", s), "aria-label": l, children: d });
|
|
2284
2287
|
};
|
|
2285
2288
|
let ct = !1;
|
|
2286
|
-
const
|
|
2289
|
+
const _i = ({ isOpen: t = !1, isLoading: e = !1, children: n }) => {
|
|
2287
2290
|
const r = H(), s = pe(null), [i, o] = X("hidden");
|
|
2288
2291
|
ae(() => {
|
|
2289
2292
|
const d = s.current;
|
|
@@ -2311,7 +2314,7 @@ const xi = ({ isOpen: t = !1, isLoading: e = !1, children: n }) => {
|
|
|
2311
2314
|
}
|
|
2312
2315
|
);
|
|
2313
2316
|
};
|
|
2314
|
-
const
|
|
2317
|
+
const Il = ({ className: t = "", image: e, ...n }) => e ? (typeof e == "string" && (e = {
|
|
2315
2318
|
width: 1080,
|
|
2316
2319
|
height: 200,
|
|
2317
2320
|
type: "image/png",
|
|
@@ -2346,7 +2349,7 @@ const Ve = ({
|
|
|
2346
2349
|
}
|
|
2347
2350
|
);
|
|
2348
2351
|
};
|
|
2349
|
-
const
|
|
2352
|
+
const Ll = ({ text: t, buttons: e, className: n = "" }) => {
|
|
2350
2353
|
const r = [];
|
|
2351
2354
|
return e.forEach((s) => {
|
|
2352
2355
|
r.push({
|
|
@@ -2368,16 +2371,16 @@ const Bl = ({ text: t, buttons: e, className: n = "" }) => {
|
|
|
2368
2371
|
/* @__PURE__ */ a.jsx(kt, { buttons: r })
|
|
2369
2372
|
] }) });
|
|
2370
2373
|
};
|
|
2371
|
-
function
|
|
2374
|
+
function ba({ href: t, setShowModal: e }) {
|
|
2372
2375
|
typeof t != "string" && e(!0);
|
|
2373
2376
|
}
|
|
2374
|
-
const
|
|
2377
|
+
const xi = ({ icon: t, description: e, ctaMessage: n, href: r, showEditButton: s, setShowModal: i }) => {
|
|
2375
2378
|
const { formatMessage: o } = H();
|
|
2376
|
-
return /* @__PURE__ */ a.jsxs("div", { className: E("edit-section-placeholder", { "has-icon": !!t }), style:
|
|
2379
|
+
return /* @__PURE__ */ a.jsxs("div", { className: E("edit-section-placeholder", { "has-icon": !!t }), style: Hs(t), children: [
|
|
2377
2380
|
/* @__PURE__ */ a.jsx("p", { children: e || o({ id: "edit_section_placeholder_description" }) }),
|
|
2378
|
-
s && /* @__PURE__ */ a.jsx(se, { href: r, variant: "secondary", size: "small", onClick: () =>
|
|
2381
|
+
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" }) })
|
|
2379
2382
|
] });
|
|
2380
|
-
},
|
|
2383
|
+
}, Bl = ({
|
|
2381
2384
|
children: t,
|
|
2382
2385
|
className: e = "",
|
|
2383
2386
|
formProps: n,
|
|
@@ -2415,13 +2418,13 @@ const wi = ({ icon: t, description: e, ctaMessage: n, href: r, showEditButton: s
|
|
|
2415
2418
|
),
|
|
2416
2419
|
/* @__PURE__ */ a.jsxs("div", { className: "edit-section-header", children: [
|
|
2417
2420
|
/* @__PURE__ */ a.jsx("h2", { className: "edit-section-header-title", children: s }),
|
|
2418
|
-
u && /* @__PURE__ */ a.jsx(se, { href: r, variant: "tertiary", size: "small", icon: "pencil", onClick: () =>
|
|
2421
|
+
u && /* @__PURE__ */ a.jsx(se, { href: r, variant: "tertiary", size: "small", icon: "pencil", onClick: () => ba({ href: r, setShowModal: l }), children: "Edit" })
|
|
2419
2422
|
] }),
|
|
2420
|
-
t || /* @__PURE__ */ a.jsx(
|
|
2423
|
+
t || /* @__PURE__ */ a.jsx(xi, { ...o, href: r, setShowModal: l, showEditButton: u }),
|
|
2421
2424
|
c && /* @__PURE__ */ a.jsx(Oe, {})
|
|
2422
2425
|
] });
|
|
2423
2426
|
};
|
|
2424
|
-
const
|
|
2427
|
+
const ql = ({
|
|
2425
2428
|
title: t = !1,
|
|
2426
2429
|
logos: e = [],
|
|
2427
2430
|
styling: n = {},
|
|
@@ -2478,7 +2481,7 @@ const Ul = ({
|
|
|
2478
2481
|
}
|
|
2479
2482
|
);
|
|
2480
2483
|
};
|
|
2481
|
-
const
|
|
2484
|
+
const wi = [
|
|
2482
2485
|
"small",
|
|
2483
2486
|
"span",
|
|
2484
2487
|
"strong",
|
|
@@ -2492,7 +2495,7 @@ const ji = [
|
|
|
2492
2495
|
"h6",
|
|
2493
2496
|
"blockquote",
|
|
2494
2497
|
"q"
|
|
2495
|
-
],
|
|
2498
|
+
], ji = ({
|
|
2496
2499
|
className: t = "",
|
|
2497
2500
|
content: e,
|
|
2498
2501
|
image: n,
|
|
@@ -2516,7 +2519,7 @@ const ji = [
|
|
|
2516
2519
|
if (typeof e[f] == "object") {
|
|
2517
2520
|
u[f] = e[f];
|
|
2518
2521
|
const { text: m, element: p } = e[f];
|
|
2519
|
-
if (p &&
|
|
2522
|
+
if (p && wi.includes(p.toLowerCase()))
|
|
2520
2523
|
return;
|
|
2521
2524
|
u[f] = {
|
|
2522
2525
|
text: m,
|
|
@@ -2565,8 +2568,8 @@ const ji = [
|
|
|
2565
2568
|
] })
|
|
2566
2569
|
}
|
|
2567
2570
|
);
|
|
2568
|
-
},
|
|
2569
|
-
const
|
|
2571
|
+
}, Ul = Ae(ji);
|
|
2572
|
+
const Wl = ({
|
|
2570
2573
|
image: t,
|
|
2571
2574
|
variant: e = "default",
|
|
2572
2575
|
children: n,
|
|
@@ -2584,7 +2587,7 @@ const zl = ({
|
|
|
2584
2587
|
}
|
|
2585
2588
|
);
|
|
2586
2589
|
};
|
|
2587
|
-
const
|
|
2590
|
+
const ki = ({
|
|
2588
2591
|
alignImage: t = "left",
|
|
2589
2592
|
className: e,
|
|
2590
2593
|
content: n,
|
|
@@ -2619,8 +2622,8 @@ const Ti = ({
|
|
|
2619
2622
|
}
|
|
2620
2623
|
)
|
|
2621
2624
|
] });
|
|
2622
|
-
},
|
|
2623
|
-
const
|
|
2625
|
+
}, zl = Ae(ki);
|
|
2626
|
+
const Zl = ({
|
|
2624
2627
|
variant: t = "primary",
|
|
2625
2628
|
button: e = null,
|
|
2626
2629
|
title: n,
|
|
@@ -2641,8 +2644,8 @@ const Hl = ({
|
|
|
2641
2644
|
children: e.text
|
|
2642
2645
|
}
|
|
2643
2646
|
)
|
|
2644
|
-
] }),
|
|
2645
|
-
const n = new
|
|
2647
|
+
] }), Ti = ({ showDevTools: t = !0, children: e }) => {
|
|
2648
|
+
const n = new Es({
|
|
2646
2649
|
// default options we would like on all queries can be overridden individually
|
|
2647
2650
|
defaultOptions: {
|
|
2648
2651
|
queries: {
|
|
@@ -2653,20 +2656,20 @@ const Hl = ({
|
|
|
2653
2656
|
}
|
|
2654
2657
|
}
|
|
2655
2658
|
});
|
|
2656
|
-
return /* @__PURE__ */ a.jsxs(
|
|
2659
|
+
return /* @__PURE__ */ a.jsxs(Ss, { client: n, children: [
|
|
2657
2660
|
e,
|
|
2658
|
-
t && /* @__PURE__ */ a.jsx(
|
|
2661
|
+
t && /* @__PURE__ */ a.jsx(Ns, { initialIsOpen: !1 })
|
|
2659
2662
|
] });
|
|
2660
2663
|
};
|
|
2661
|
-
var
|
|
2662
|
-
function
|
|
2664
|
+
var Ei = nn({ client: Lt });
|
|
2665
|
+
function Si(t) {
|
|
2663
2666
|
var e = t.children, n = t.client, r = t.apiKey, s = t.options, i = wt(function() {
|
|
2664
2667
|
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);
|
|
2665
2668
|
}, [n, r]);
|
|
2666
|
-
return Y.createElement(
|
|
2669
|
+
return Y.createElement(Ei.Provider, { value: { client: i } }, e);
|
|
2667
2670
|
}
|
|
2668
|
-
const
|
|
2669
|
-
|
|
2671
|
+
const Ci = ({ children: t, user: e }) => e.isLoading ? null : process.env.REACT_APP_PUBLIC_POSTHOG_KEY ? /* @__PURE__ */ a.jsx(
|
|
2672
|
+
Si,
|
|
2670
2673
|
{
|
|
2671
2674
|
apiKey: atob(process.env.REACT_APP_PUBLIC_POSTHOG_KEY),
|
|
2672
2675
|
options: {
|
|
@@ -2684,39 +2687,39 @@ const Ni = ({ children: t, user: e }) => e.isLoading ? null : process.env.REACT_
|
|
|
2684
2687
|
},
|
|
2685
2688
|
children: t
|
|
2686
2689
|
}
|
|
2687
|
-
) : /* @__PURE__ */ a.jsx(a.Fragment, { children: t }),
|
|
2690
|
+
) : /* @__PURE__ */ a.jsx(a.Fragment, { children: t }), Ni = ({ children: t, locale: e, messages: n }) => {
|
|
2688
2691
|
const r = e || "en", s = {
|
|
2689
|
-
...
|
|
2692
|
+
...Xs[r],
|
|
2690
2693
|
...n || {}
|
|
2691
2694
|
};
|
|
2692
|
-
return /* @__PURE__ */ a.jsx(
|
|
2693
|
-
},
|
|
2695
|
+
return /* @__PURE__ */ a.jsx(ks, { locale: r, messages: s, children: t });
|
|
2696
|
+
}, ya = nn({}), gn = {
|
|
2694
2697
|
en: "English",
|
|
2695
2698
|
es: "Español",
|
|
2696
2699
|
fr: "Français",
|
|
2697
2700
|
pt: "Português"
|
|
2698
2701
|
}, De = nn({ isLoading: !0 });
|
|
2699
|
-
function
|
|
2702
|
+
function tr() {
|
|
2700
2703
|
return Ee(De);
|
|
2701
2704
|
}
|
|
2702
|
-
const
|
|
2705
|
+
const $i = ({ children: t, user: e }) => /* @__PURE__ */ a.jsx(De.Provider, { value: e, children: t }), Hl = ({ bootstrap: t, children: e, intl: n, showDevTools: r }) => {
|
|
2703
2706
|
const [s, i] = X({ isLoading: !0 }), o = (n == null ? void 0 : n.locale) || localStorage.getItem("language") || "en", [c, d] = X(o), l = (u) => {
|
|
2704
2707
|
localStorage.setItem("language", u), d(u);
|
|
2705
2708
|
};
|
|
2706
2709
|
return ae(() => {
|
|
2707
2710
|
t().then((u) => {
|
|
2708
|
-
i({ ...u, isLoading: !1 }),
|
|
2711
|
+
i({ ...u, isLoading: !1 }), ti(5e3);
|
|
2709
2712
|
}).catch(() => i({ isLoading: !1 }));
|
|
2710
|
-
}, []), /* @__PURE__ */ a.jsx(
|
|
2711
|
-
|
|
2713
|
+
}, []), /* @__PURE__ */ a.jsx(ya.Provider, { value: { language: c, updateLanguage: l }, children: /* @__PURE__ */ a.jsx(
|
|
2714
|
+
Ni,
|
|
2712
2715
|
{
|
|
2713
2716
|
locale: c,
|
|
2714
2717
|
messages: n == null ? void 0 : n.messages,
|
|
2715
|
-
children: /* @__PURE__ */ a.jsx(
|
|
2718
|
+
children: /* @__PURE__ */ a.jsx(ws, { children: /* @__PURE__ */ a.jsx($i, { user: s, children: /* @__PURE__ */ a.jsx(Ti, { showDevTools: r, children: /* @__PURE__ */ a.jsx(Ci, { user: s, children: e }) }) }) })
|
|
2716
2719
|
}
|
|
2717
2720
|
) });
|
|
2718
2721
|
};
|
|
2719
|
-
const
|
|
2722
|
+
const Pi = ({
|
|
2720
2723
|
styling: t = {},
|
|
2721
2724
|
progress: e = 0,
|
|
2722
2725
|
text: n = !1,
|
|
@@ -2742,13 +2745,13 @@ const Mi = ({
|
|
|
2742
2745
|
})
|
|
2743
2746
|
}
|
|
2744
2747
|
);
|
|
2745
|
-
},
|
|
2746
|
-
const
|
|
2748
|
+
}, _a = Ae(Pi);
|
|
2749
|
+
const vn = "loadingBlock_", Mi = ({ progress: t = 0, steps: e = !1, className: n = "" }) => {
|
|
2747
2750
|
const r = H();
|
|
2748
2751
|
e || (e = {
|
|
2749
|
-
0: { text: r.formatMessage({ id: `${
|
|
2750
|
-
75: { text: r.formatMessage({ id: `${
|
|
2751
|
-
100: { text: r.formatMessage({ id: `${
|
|
2752
|
+
0: { text: r.formatMessage({ id: `${vn}loading` }) },
|
|
2753
|
+
75: { text: r.formatMessage({ id: `${vn}almostDone` }) },
|
|
2754
|
+
100: { text: r.formatMessage({ id: `${vn}complete` }) }
|
|
2752
2755
|
});
|
|
2753
2756
|
let s = null;
|
|
2754
2757
|
const i = Object.keys(e);
|
|
@@ -2767,20 +2770,20 @@ const bn = "loadingBlock_", Ri = ({ progress: t = 0, steps: e = !1, className: n
|
|
|
2767
2770
|
style: o,
|
|
2768
2771
|
children: [
|
|
2769
2772
|
s && /* @__PURE__ */ a.jsx("span", { className: "step", children: e[s].text }),
|
|
2770
|
-
/* @__PURE__ */ a.jsx(
|
|
2773
|
+
/* @__PURE__ */ a.jsx(_a, { progress: t })
|
|
2771
2774
|
]
|
|
2772
2775
|
}
|
|
2773
2776
|
);
|
|
2774
|
-
},
|
|
2777
|
+
}, Vl = Ae(Mi);
|
|
2775
2778
|
const Se = ({ element: t = "div", className: e = "", ...n }) => /* @__PURE__ */ a.jsx(
|
|
2776
|
-
|
|
2779
|
+
Qn,
|
|
2777
2780
|
{
|
|
2778
2781
|
element: t,
|
|
2779
2782
|
className: E("loading-placeholder", e),
|
|
2780
2783
|
...n
|
|
2781
2784
|
}
|
|
2782
2785
|
);
|
|
2783
|
-
const
|
|
2786
|
+
const zn = {
|
|
2784
2787
|
header: ["logo", "link", "link", "search"],
|
|
2785
2788
|
sidebar: ["text", "text", "text", "text", "text"],
|
|
2786
2789
|
"cards-section": ["subtitle", "cards"],
|
|
@@ -2829,11 +2832,11 @@ const Zn = {
|
|
|
2829
2832
|
"course-navigation": ["button", "button"],
|
|
2830
2833
|
"course-lesson-page": ["breadcrumb", "course-navigation", "text-page"],
|
|
2831
2834
|
"course-lesson-quiz": ["text-page", "quiz-box"]
|
|
2832
|
-
},
|
|
2835
|
+
}, 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: E("loading-state", t), ...e, children: zn[t].map((n, r) => xa(n, r)) }), ja = (t) => {
|
|
2833
2836
|
const e = t && t.toUpperCase().trim().split(" ");
|
|
2834
2837
|
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) : "";
|
|
2835
|
-
}, Ct = ["#5AB6A3", "#A2D7AF", "#806056", "#3962B3"],
|
|
2836
|
-
const e = Math.ceil(26 / Ct.length), n =
|
|
2838
|
+
}, Ct = ["#5AB6A3", "#A2D7AF", "#806056", "#3962B3"], Ri = (t) => {
|
|
2839
|
+
const e = Math.ceil(26 / Ct.length), n = ja(t).toLowerCase();
|
|
2837
2840
|
if (n === "")
|
|
2838
2841
|
return Ct[0];
|
|
2839
2842
|
const r = n.charCodeAt(0) - 96;
|
|
@@ -2841,13 +2844,13 @@ const Zn = {
|
|
|
2841
2844
|
if (r <= e * (s + 1))
|
|
2842
2845
|
return Ct[s];
|
|
2843
2846
|
};
|
|
2844
|
-
const
|
|
2847
|
+
const Pr = 256, Ye = ({
|
|
2845
2848
|
className: t = "",
|
|
2846
2849
|
src: e = "",
|
|
2847
2850
|
name: n,
|
|
2848
2851
|
alt: r,
|
|
2849
|
-
width: s =
|
|
2850
|
-
height: i =
|
|
2852
|
+
width: s = Pr,
|
|
2853
|
+
height: i = Pr,
|
|
2851
2854
|
...o
|
|
2852
2855
|
}) => {
|
|
2853
2856
|
const [c, d] = X(!1), l = pe(null);
|
|
@@ -2859,7 +2862,7 @@ const Mr = 256, Ye = ({
|
|
|
2859
2862
|
if (!m)
|
|
2860
2863
|
return;
|
|
2861
2864
|
const p = s, g = i;
|
|
2862
|
-
typeof window < "u" && window.devicePixelRatio && (f.width = p * window.devicePixelRatio, f.height = g * window.devicePixelRatio, m.scale(window.devicePixelRatio, window.devicePixelRatio)), m.fillStyle =
|
|
2865
|
+
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);
|
|
2863
2866
|
}, [n]);
|
|
2864
2867
|
let u = !1;
|
|
2865
2868
|
return e && e !== "" && !c && (e.includes("http") || e.includes("//")) && (u = !0), /* @__PURE__ */ a.jsx(
|
|
@@ -2881,7 +2884,7 @@ const Mr = 256, Ye = ({
|
|
|
2881
2884
|
) : /* @__PURE__ */ a.jsx("canvas", { ref: l })
|
|
2882
2885
|
}
|
|
2883
2886
|
);
|
|
2884
|
-
},
|
|
2887
|
+
}, ka = (t) => t === "apolitical" ? {
|
|
2885
2888
|
image: `${Be}logos/member_apolitical.svg`
|
|
2886
2889
|
} : t === "community" || typeof t == "object" && !t.name ? {
|
|
2887
2890
|
image: `${Be}logos/member_community.svg`
|
|
@@ -2892,7 +2895,7 @@ const Mr = 256, Ye = ({
|
|
|
2892
2895
|
country: t.location && t.location.country || "",
|
|
2893
2896
|
url: `/profiles/${t.id}`,
|
|
2894
2897
|
image: t.image && t.image.thumbnail
|
|
2895
|
-
},
|
|
2898
|
+
}, Fi = ({
|
|
2896
2899
|
role: t = "",
|
|
2897
2900
|
organisation: e = "",
|
|
2898
2901
|
country: n = "",
|
|
@@ -2905,7 +2908,7 @@ const Mr = 256, Ye = ({
|
|
|
2905
2908
|
let d = `${c}${(s || i) && o ? `, ${n}` : n}`;
|
|
2906
2909
|
return d.length > r && (d = c), d.length > r && (d = et(d, r)), d;
|
|
2907
2910
|
};
|
|
2908
|
-
const
|
|
2911
|
+
const nr = ({
|
|
2909
2912
|
element: t = "div",
|
|
2910
2913
|
member: e = "community",
|
|
2911
2914
|
additionalContent: n = !1,
|
|
@@ -2913,11 +2916,11 @@ const rr = ({
|
|
|
2913
2916
|
gtmType: s = "member-click",
|
|
2914
2917
|
className: i = ""
|
|
2915
2918
|
}) => {
|
|
2916
|
-
const o = H(), c =
|
|
2919
|
+
const o = H(), c = ka(e);
|
|
2917
2920
|
c.name || (c.name = o.formatMessage({
|
|
2918
2921
|
id: `member_${typeof e == "string" ? e : "community"}`
|
|
2919
2922
|
}));
|
|
2920
|
-
const { name: d, url: l, image: u } = c, f =
|
|
2923
|
+
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) : "";
|
|
2921
2924
|
return Y.createElement(t, {
|
|
2922
2925
|
className: E("member text-medium", i),
|
|
2923
2926
|
children: /* @__PURE__ */ a.jsxs(
|
|
@@ -2947,10 +2950,10 @@ const rr = ({
|
|
|
2947
2950
|
)
|
|
2948
2951
|
});
|
|
2949
2952
|
};
|
|
2950
|
-
const
|
|
2953
|
+
const Mr = {
|
|
2951
2954
|
small: 24,
|
|
2952
2955
|
medium: 48
|
|
2953
|
-
},
|
|
2956
|
+
}, Ta = ({
|
|
2954
2957
|
element: t = "div",
|
|
2955
2958
|
contributors: { total: e, data: n } = { total: void 0, data: [] },
|
|
2956
2959
|
styling: { showText: r, size: s, showGap: i, showPlaceholders: o } = {
|
|
@@ -2972,7 +2975,7 @@ const Rr = {
|
|
|
2972
2975
|
/* @__PURE__ */ a.jsx("ul", { children: n.map((m, p) => {
|
|
2973
2976
|
let g, v = "";
|
|
2974
2977
|
if (p < c) {
|
|
2975
|
-
const { name: _ = "", image: y = "" } =
|
|
2978
|
+
const { name: _ = "", image: y = "" } = ka(m);
|
|
2976
2979
|
if (o)
|
|
2977
2980
|
return /* @__PURE__ */ a.jsx(Se, { element: "li", className: "contributor" }, p);
|
|
2978
2981
|
g = /* @__PURE__ */ a.jsx(
|
|
@@ -2980,8 +2983,8 @@ const Rr = {
|
|
|
2980
2983
|
{
|
|
2981
2984
|
name: _,
|
|
2982
2985
|
src: y,
|
|
2983
|
-
width:
|
|
2984
|
-
height:
|
|
2986
|
+
width: Mr[s || "medium"],
|
|
2987
|
+
height: Mr[s || "medium"]
|
|
2985
2988
|
}
|
|
2986
2989
|
);
|
|
2987
2990
|
} else if (p === c) {
|
|
@@ -2992,7 +2995,7 @@ const Rr = {
|
|
|
2992
2995
|
className: E({ "large-number": _ > 99 }),
|
|
2993
2996
|
children: [
|
|
2994
2997
|
"+",
|
|
2995
|
-
|
|
2998
|
+
ei(_, 0)
|
|
2996
2999
|
]
|
|
2997
3000
|
}
|
|
2998
3001
|
), v = "number-left";
|
|
@@ -3003,7 +3006,7 @@ const Rr = {
|
|
|
3003
3006
|
] })
|
|
3004
3007
|
});
|
|
3005
3008
|
};
|
|
3006
|
-
const Nt = "emailHelperTextBox_",
|
|
3009
|
+
const Nt = "emailHelperTextBox_", Oi = ({
|
|
3007
3010
|
type: t,
|
|
3008
3011
|
email: e,
|
|
3009
3012
|
redirectPath: n,
|
|
@@ -3015,7 +3018,7 @@ const Nt = "emailHelperTextBox_", Ai = ({
|
|
|
3015
3018
|
link: {},
|
|
3016
3019
|
mail: {},
|
|
3017
3020
|
error: ""
|
|
3018
|
-
}), [c, d] = X(!1), l =
|
|
3021
|
+
}), [c, d] = X(!1), l = ia(
|
|
3019
3022
|
(p) => {
|
|
3020
3023
|
p.preventDefault(), p.stopPropagation();
|
|
3021
3024
|
const g = (v) => {
|
|
@@ -3115,7 +3118,7 @@ const Nt = "emailHelperTextBox_", Ai = ({
|
|
|
3115
3118
|
return ["link", "mail"].forEach((p) => {
|
|
3116
3119
|
u[p] = Object.keys(i[p]).length ? (g) => /* @__PURE__ */ a.jsx("a", { ...i[p], children: g }) : (g) => g;
|
|
3117
3120
|
}), /* @__PURE__ */ a.jsx(
|
|
3118
|
-
|
|
3121
|
+
ci,
|
|
3119
3122
|
{
|
|
3120
3123
|
type: i.type,
|
|
3121
3124
|
heading: c ? !1 : s.formatMessage({ id: `${i.path}_title` }),
|
|
@@ -3178,7 +3181,7 @@ const Qe = {
|
|
|
3178
3181
|
UP: "ArrowUp",
|
|
3179
3182
|
DOWN: "ArrowDown",
|
|
3180
3183
|
ENTER: "Enter"
|
|
3181
|
-
},
|
|
3184
|
+
}, Ai = 500, Di = ({
|
|
3182
3185
|
id: t,
|
|
3183
3186
|
name: e = t,
|
|
3184
3187
|
value: n,
|
|
@@ -3208,7 +3211,7 @@ const Qe = {
|
|
|
3208
3211
|
r || (r = _({ id: "inputAutocomplete_placeholder" })), ae(() => {
|
|
3209
3212
|
const w = setTimeout(() => {
|
|
3210
3213
|
g || f((b) => ({ ...b, debouncedInput: d }));
|
|
3211
|
-
},
|
|
3214
|
+
}, Ai);
|
|
3212
3215
|
return () => {
|
|
3213
3216
|
clearTimeout(w);
|
|
3214
3217
|
};
|
|
@@ -3297,7 +3300,7 @@ const Qe = {
|
|
|
3297
3300
|
)) })
|
|
3298
3301
|
] });
|
|
3299
3302
|
};
|
|
3300
|
-
const
|
|
3303
|
+
const Ea = ({
|
|
3301
3304
|
className: t = "",
|
|
3302
3305
|
disabled: e,
|
|
3303
3306
|
element: n = "p",
|
|
@@ -3350,17 +3353,17 @@ const Sa = ({
|
|
|
3350
3353
|
_
|
|
3351
3354
|
);
|
|
3352
3355
|
};
|
|
3353
|
-
const
|
|
3356
|
+
const Ii = Ae(function({
|
|
3354
3357
|
direction: e = "down"
|
|
3355
3358
|
}) {
|
|
3356
3359
|
return /* @__PURE__ */ a.jsx(
|
|
3357
|
-
|
|
3360
|
+
Qn,
|
|
3358
3361
|
{
|
|
3359
3362
|
className: E("rotating-chevron", `direction-${e}`)
|
|
3360
3363
|
}
|
|
3361
3364
|
);
|
|
3362
3365
|
});
|
|
3363
|
-
const
|
|
3366
|
+
const Li = ({
|
|
3364
3367
|
className: t,
|
|
3365
3368
|
options: e,
|
|
3366
3369
|
initialValue: n,
|
|
@@ -3407,7 +3410,7 @@ const Bi = ({
|
|
|
3407
3410
|
...w,
|
|
3408
3411
|
children: [
|
|
3409
3412
|
c ? `${o} · ${v.length}` : y.label,
|
|
3410
|
-
/* @__PURE__ */ a.jsx(
|
|
3413
|
+
/* @__PURE__ */ a.jsx(Ii, { direction: f ? "up" : "down" })
|
|
3411
3414
|
]
|
|
3412
3415
|
}
|
|
3413
3416
|
),
|
|
@@ -3505,7 +3508,7 @@ const Bi = ({
|
|
|
3505
3508
|
)
|
|
3506
3509
|
] });
|
|
3507
3510
|
};
|
|
3508
|
-
const
|
|
3511
|
+
const Bi = ({
|
|
3509
3512
|
className: t = "",
|
|
3510
3513
|
functions: e = { onChange: () => {
|
|
3511
3514
|
} },
|
|
@@ -3546,7 +3549,7 @@ const qi = ({
|
|
|
3546
3549
|
e.onChange(b);
|
|
3547
3550
|
};
|
|
3548
3551
|
return /* @__PURE__ */ a.jsx(
|
|
3549
|
-
|
|
3552
|
+
Ea,
|
|
3550
3553
|
{
|
|
3551
3554
|
element: "li",
|
|
3552
3555
|
id: S,
|
|
@@ -3570,7 +3573,7 @@ const qi = ({
|
|
|
3570
3573
|
}
|
|
3571
3574
|
);
|
|
3572
3575
|
};
|
|
3573
|
-
const
|
|
3576
|
+
const qi = ({
|
|
3574
3577
|
inputRef: t,
|
|
3575
3578
|
type: e = "password",
|
|
3576
3579
|
gtm: { context: n } = { context: void 0 },
|
|
@@ -3606,12 +3609,12 @@ const Je = {
|
|
|
3606
3609
|
text: { component: gt },
|
|
3607
3610
|
email: { component: gt },
|
|
3608
3611
|
textarea: { component: gt, props: { element: "textarea", rows: 4, cols: 10 } },
|
|
3609
|
-
checkbox: { component:
|
|
3610
|
-
checkboxes: { component:
|
|
3611
|
-
select: { component:
|
|
3612
|
-
password: { component:
|
|
3613
|
-
autocomplete: { component:
|
|
3614
|
-
},
|
|
3612
|
+
checkbox: { component: Ea },
|
|
3613
|
+
checkboxes: { component: Bi, props: { multiSelect: !0 } },
|
|
3614
|
+
select: { component: Li },
|
|
3615
|
+
password: { component: qi },
|
|
3616
|
+
autocomplete: { component: Di }
|
|
3617
|
+
}, Ui = ({
|
|
3615
3618
|
id: t,
|
|
3616
3619
|
intlPath: e = !1,
|
|
3617
3620
|
className: n = "",
|
|
@@ -3701,7 +3704,7 @@ const Je = {
|
|
|
3701
3704
|
] }),
|
|
3702
3705
|
/* @__PURE__ */ a.jsx(x, {})
|
|
3703
3706
|
] });
|
|
3704
|
-
},
|
|
3707
|
+
}, Wi = (t, e) => {
|
|
3705
3708
|
const { type: n, payload: r } = e, s = t.errors ? pt(t.errors) : {}, i = t.values ? pt(t.values) : {};
|
|
3706
3709
|
switch (n) {
|
|
3707
3710
|
case "toggleSubmitting":
|
|
@@ -3799,7 +3802,7 @@ const Je = {
|
|
|
3799
3802
|
return t;
|
|
3800
3803
|
}
|
|
3801
3804
|
};
|
|
3802
|
-
let
|
|
3805
|
+
let bn = null;
|
|
3803
3806
|
const rn = ({
|
|
3804
3807
|
fields: t,
|
|
3805
3808
|
className: e = "",
|
|
@@ -3848,21 +3851,21 @@ const rn = ({
|
|
|
3848
3851
|
const K = z.id || z.name;
|
|
3849
3852
|
K && (R[K] = z.value || "");
|
|
3850
3853
|
});
|
|
3851
|
-
const [Q, B] =
|
|
3854
|
+
const [Q, B] = Yn(Wi, {
|
|
3852
3855
|
isSubmitting: !1,
|
|
3853
3856
|
formSubmitted: !1,
|
|
3854
3857
|
errors: {},
|
|
3855
3858
|
values: R
|
|
3856
3859
|
}), { errors: N, isSubmitting: C, formSubmitted: k, values: j } = Q;
|
|
3857
3860
|
ae(() => {
|
|
3858
|
-
S && k && (
|
|
3861
|
+
S && k && (bn = setTimeout(() => {
|
|
3859
3862
|
B({
|
|
3860
3863
|
type: "updateValue",
|
|
3861
3864
|
payload: { key: "formSubmitted", value: !1 }
|
|
3862
3865
|
});
|
|
3863
3866
|
}, 3e3));
|
|
3864
3867
|
}, [k]), ae(() => () => {
|
|
3865
|
-
|
|
3868
|
+
bn && clearTimeout(bn);
|
|
3866
3869
|
}, []), ae(() => {
|
|
3867
3870
|
const z = (K) => {
|
|
3868
3871
|
B({
|
|
@@ -3978,7 +3981,7 @@ const rn = ({
|
|
|
3978
3981
|
return /* @__PURE__ */ a.jsx(P, { ...z.props || {} }, `component-${T}-${K}`);
|
|
3979
3982
|
const L = j ? j[T] : "";
|
|
3980
3983
|
return /* @__PURE__ */ a.jsx(
|
|
3981
|
-
|
|
3984
|
+
Ui,
|
|
3982
3985
|
{
|
|
3983
3986
|
intlPath: s,
|
|
3984
3987
|
...z,
|
|
@@ -4011,11 +4014,11 @@ const rn = ({
|
|
|
4011
4014
|
b && k && /* @__PURE__ */ a.jsx(Wt, { className: "success", children: typeof b == "string" ? b : F.formatMessage({ id: "form_success" }) })
|
|
4012
4015
|
] });
|
|
4013
4016
|
};
|
|
4014
|
-
const $t = "passwordRules_",
|
|
4015
|
-
[
|
|
4016
|
-
[
|
|
4017
|
-
[
|
|
4018
|
-
},
|
|
4017
|
+
const $t = "passwordRules_", Sa = "isMoreThanEightCharacters", Ca = "includesNumberAndSymbol", Na = "includesLowerAndUppercase", zi = {
|
|
4018
|
+
[Sa]: "8Characters",
|
|
4019
|
+
[Ca]: "numberSymbol",
|
|
4020
|
+
[Na]: "lowercaseUppercase"
|
|
4021
|
+
}, Zi = ({
|
|
4019
4022
|
matchingRules: t = {
|
|
4020
4023
|
isMoreThanEightCharacters: !1,
|
|
4021
4024
|
includesNumberAndSymbol: !1,
|
|
@@ -4026,7 +4029,7 @@ const $t = "passwordRules_", Ca = "isMoreThanEightCharacters", Na = "includesNum
|
|
|
4026
4029
|
const n = H();
|
|
4027
4030
|
return /* @__PURE__ */ a.jsxs("aside", { className: E("password-rules", e), children: [
|
|
4028
4031
|
/* @__PURE__ */ a.jsx("small", { children: n.formatMessage({ id: `${$t}intro` }) }),
|
|
4029
|
-
/* @__PURE__ */ a.jsx("ul", { children: [Ca, Na
|
|
4032
|
+
/* @__PURE__ */ a.jsx("ul", { children: [Sa, Ca, Na].map(
|
|
4030
4033
|
(r) => /* @__PURE__ */ a.jsxs(
|
|
4031
4034
|
"li",
|
|
4032
4035
|
{
|
|
@@ -4036,7 +4039,7 @@ const $t = "passwordRules_", Ca = "isMoreThanEightCharacters", Na = "includesNum
|
|
|
4036
4039
|
n.formatMessage({ id: `${$t}rule_label` }),
|
|
4037
4040
|
" "
|
|
4038
4041
|
] }),
|
|
4039
|
-
/* @__PURE__ */ a.jsx("span", { children: n.formatMessage({ id: `${$t}rule_${
|
|
4042
|
+
/* @__PURE__ */ a.jsx("span", { children: n.formatMessage({ id: `${$t}rule_${zi[r]}` }) }),
|
|
4040
4043
|
!t[r] && /* @__PURE__ */ a.jsxs(be, { element: "strong", children: [
|
|
4041
4044
|
" ",
|
|
4042
4045
|
n.formatMessage({ id: `${$t}notMet` })
|
|
@@ -4047,8 +4050,8 @@ const $t = "passwordRules_", Ca = "isMoreThanEightCharacters", Na = "includesNum
|
|
|
4047
4050
|
)
|
|
4048
4051
|
) })
|
|
4049
4052
|
] });
|
|
4050
|
-
},
|
|
4051
|
-
const
|
|
4053
|
+
}, Hi = Ae(Zi);
|
|
4054
|
+
const Yl = ({
|
|
4052
4055
|
text: t = {},
|
|
4053
4056
|
topRating: e = 5,
|
|
4054
4057
|
functions: {
|
|
@@ -4133,7 +4136,7 @@ const Kl = ({
|
|
|
4133
4136
|
}) })
|
|
4134
4137
|
] });
|
|
4135
4138
|
};
|
|
4136
|
-
const
|
|
4139
|
+
const Kl = ({
|
|
4137
4140
|
id: t = "form-toggle",
|
|
4138
4141
|
label: e,
|
|
4139
4142
|
options: n,
|
|
@@ -4192,7 +4195,7 @@ const Gl = ({
|
|
|
4192
4195
|
}
|
|
4193
4196
|
);
|
|
4194
4197
|
};
|
|
4195
|
-
function
|
|
4198
|
+
function Gl({ className: t = "", userId: e, userName: n, src: r, setUserImage: s, uploadImage: i }) {
|
|
4196
4199
|
const [o, c] = X(!1), [d, l] = X(!1), u = pe(null), f = async (m) => {
|
|
4197
4200
|
c(!0), l(!1);
|
|
4198
4201
|
try {
|
|
@@ -4243,7 +4246,7 @@ function Ql({ className: t = "", userId: e, userName: n, src: r, setUserImage: s
|
|
|
4243
4246
|
)
|
|
4244
4247
|
] });
|
|
4245
4248
|
}
|
|
4246
|
-
const
|
|
4249
|
+
const Vi = ({
|
|
4247
4250
|
gtm: t,
|
|
4248
4251
|
functions: { onSuccess: e = async () => {
|
|
4249
4252
|
}, onFailure: n = () => {
|
|
@@ -4291,7 +4294,7 @@ const Yi = ({
|
|
|
4291
4294
|
}
|
|
4292
4295
|
);
|
|
4293
4296
|
};
|
|
4294
|
-
const
|
|
4297
|
+
const Yi = ({
|
|
4295
4298
|
title: t,
|
|
4296
4299
|
label: e,
|
|
4297
4300
|
ctaMessage: n,
|
|
@@ -4349,7 +4352,7 @@ const Ki = ({
|
|
|
4349
4352
|
/* @__PURE__ */ a.jsx("h2", { className: "title", style: { color: r }, children: t }),
|
|
4350
4353
|
/* @__PURE__ */ a.jsx("label", { htmlFor: "email-input", className: "label", style: { color: s }, children: e }),
|
|
4351
4354
|
/* @__PURE__ */ a.jsx(
|
|
4352
|
-
|
|
4355
|
+
$s,
|
|
4353
4356
|
{
|
|
4354
4357
|
id: "email-input",
|
|
4355
4358
|
inputClassName: "email-input input",
|
|
@@ -4383,17 +4386,17 @@ const Ki = ({
|
|
|
4383
4386
|
]
|
|
4384
4387
|
}
|
|
4385
4388
|
) });
|
|
4386
|
-
},
|
|
4389
|
+
}, yn = (t) => t.map((e) => ({ condition: e })), Te = {
|
|
4387
4390
|
FORM_ID: "manage-account-password-change",
|
|
4388
4391
|
NEW_PASSWORD: "newPassword",
|
|
4389
4392
|
CONFIRMED_PASSWORD: "confirmedPassword",
|
|
4390
4393
|
CURRENT_PASSWORD: "oldPassword"
|
|
4391
|
-
},
|
|
4394
|
+
}, Ql = ({ functions: t, ...e }) => {
|
|
4392
4395
|
const { formatMessage: n } = H(), [r, s] = X(null), [i, o] = X(!1), [c, d] = X({
|
|
4393
4396
|
isMoreThanEightCharacters: !1,
|
|
4394
4397
|
includesNumberAndSymbol: !1,
|
|
4395
4398
|
includesLowerAndUppercase: !1
|
|
4396
|
-
}), l = (p) => p[Te.NEW_PASSWORD] !== p[Te.CONFIRMED_PASSWORD] ? n({ id: "passwordRules_unmatched_text" }) : null, u = (p) => !
|
|
4399
|
+
}), l = (p) => p[Te.NEW_PASSWORD] !== p[Te.CONFIRMED_PASSWORD] ? n({ id: "passwordRules_unmatched_text" }) : null, u = (p) => !kr(p[Te.NEW_PASSWORD]).isValid, f = [
|
|
4397
4400
|
{
|
|
4398
4401
|
"data-testid": Te.NEW_PASSWORD,
|
|
4399
4402
|
id: Te.NEW_PASSWORD,
|
|
@@ -4401,9 +4404,9 @@ const Ki = ({
|
|
|
4401
4404
|
autoComplete: "password",
|
|
4402
4405
|
placeholder: "",
|
|
4403
4406
|
label: n({ id: "passwordRules_newPassword_label" }),
|
|
4404
|
-
validation:
|
|
4407
|
+
validation: yn(["required", u]),
|
|
4405
4408
|
functions: {
|
|
4406
|
-
onChange: (p) => d(
|
|
4409
|
+
onChange: (p) => d(kr(p).matchingRules),
|
|
4407
4410
|
onFocus: () => o(!0),
|
|
4408
4411
|
onBlur: () => o(!1)
|
|
4409
4412
|
}
|
|
@@ -4415,7 +4418,7 @@ const Ki = ({
|
|
|
4415
4418
|
autoComplete: "password",
|
|
4416
4419
|
placeholder: "",
|
|
4417
4420
|
label: n({ id: "passwordRules_confirmPassword_label" }),
|
|
4418
|
-
validation:
|
|
4421
|
+
validation: yn(["required", l])
|
|
4419
4422
|
}
|
|
4420
4423
|
];
|
|
4421
4424
|
e.isPasswordChange && f.unshift({
|
|
@@ -4424,9 +4427,9 @@ const Ki = ({
|
|
|
4424
4427
|
type: "password",
|
|
4425
4428
|
placeholder: "",
|
|
4426
4429
|
label: n({ id: "passwordRules_currentPassword_label" }),
|
|
4427
|
-
validation:
|
|
4430
|
+
validation: yn(["required"])
|
|
4428
4431
|
}), i && f.push({
|
|
4429
|
-
component:
|
|
4432
|
+
component: Hi,
|
|
4430
4433
|
props: { matchingRules: c }
|
|
4431
4434
|
});
|
|
4432
4435
|
const m = {
|
|
@@ -4452,7 +4455,7 @@ const Ki = ({
|
|
|
4452
4455
|
r && /* @__PURE__ */ a.jsx(He, { variant: "error", text: r })
|
|
4453
4456
|
] });
|
|
4454
4457
|
};
|
|
4455
|
-
const
|
|
4458
|
+
const Ki = ({
|
|
4456
4459
|
id: t = "search",
|
|
4457
4460
|
className: e = "",
|
|
4458
4461
|
handleToggle: n = !1,
|
|
@@ -4519,7 +4522,7 @@ const Gi = ({
|
|
|
4519
4522
|
)
|
|
4520
4523
|
}
|
|
4521
4524
|
);
|
|
4522
|
-
},
|
|
4525
|
+
}, Rr = async ({ ref: t, validateEmail: e, dispatch: n }) => {
|
|
4523
4526
|
const r = /^(([^<>()[\]\\.,;:\s@"]+(\.[^<>()[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/;
|
|
4524
4527
|
if (!t.current.validity.valid || !r.test(t.current.value))
|
|
4525
4528
|
return n([{ type: "validFields.email", value: !1 }]);
|
|
@@ -4565,7 +4568,7 @@ const Gi = ({
|
|
|
4565
4568
|
},
|
|
4566
4569
|
{ type: "validFields.email", value: !0 }
|
|
4567
4570
|
]);
|
|
4568
|
-
},
|
|
4571
|
+
}, Gi = (t) => {
|
|
4569
4572
|
const e = {};
|
|
4570
4573
|
for (const n of t.entries())
|
|
4571
4574
|
e[n[0]] = n[1];
|
|
@@ -4581,7 +4584,7 @@ const Gi = ({
|
|
|
4581
4584
|
page: window.location.pathname,
|
|
4582
4585
|
"g-recaptcha-response": e["g-recaptcha-response"]
|
|
4583
4586
|
};
|
|
4584
|
-
},
|
|
4587
|
+
}, Qi = async ({
|
|
4585
4588
|
refs: t,
|
|
4586
4589
|
dataToSubmit: e,
|
|
4587
4590
|
createAccount: n,
|
|
@@ -4595,9 +4598,9 @@ const Gi = ({
|
|
|
4595
4598
|
t.hiddenValidation && t.hiddenValidation.current && t.hiddenValidation.current.click();
|
|
4596
4599
|
return;
|
|
4597
4600
|
}
|
|
4598
|
-
const o =
|
|
4601
|
+
const o = Gi(new FormData(t.form.current)), c = Object.assign(o, e);
|
|
4599
4602
|
await n(c), localStorage.setItem("email", o.email), r && r({ ...o, ...i.values }), s([{ type: "showSuccessMessage", value: !0 }]);
|
|
4600
|
-
},
|
|
4603
|
+
}, Ji = ({
|
|
4601
4604
|
shouldShow: t,
|
|
4602
4605
|
placeholders: e,
|
|
4603
4606
|
labels: n,
|
|
@@ -4634,7 +4637,7 @@ const Gi = ({
|
|
|
4634
4637
|
}),
|
|
4635
4638
|
functions: {
|
|
4636
4639
|
onBlur: () => {
|
|
4637
|
-
|
|
4640
|
+
Rr({ ref: i.email, validateEmail: r, dispatch: c });
|
|
4638
4641
|
},
|
|
4639
4642
|
onChange: (p, g) => {
|
|
4640
4643
|
c([{ type: "shouldDisableButton", value: !0 }]), g && g({
|
|
@@ -4649,7 +4652,7 @@ const Gi = ({
|
|
|
4649
4652
|
"data-testid": "signup-email-input"
|
|
4650
4653
|
},
|
|
4651
4654
|
{
|
|
4652
|
-
component:
|
|
4655
|
+
component: Oi,
|
|
4653
4656
|
props: {
|
|
4654
4657
|
email: u.email,
|
|
4655
4658
|
type: u.boxType,
|
|
@@ -4748,7 +4751,7 @@ const Gi = ({
|
|
|
4748
4751
|
o.validFields[v] !== i[v].current.validity.valid && (g.push({
|
|
4749
4752
|
type: `validFields.${v}`,
|
|
4750
4753
|
value: i[v].current.validity.valid
|
|
4751
|
-
}), v === "email" &&
|
|
4754
|
+
}), v === "email" && Rr({ ref: i.email, validateEmail: r, dispatch: c }));
|
|
4752
4755
|
}), g.length && c(g);
|
|
4753
4756
|
}
|
|
4754
4757
|
},
|
|
@@ -4756,7 +4759,7 @@ const Gi = ({
|
|
|
4756
4759
|
"data-testid": "signup-terms-checkbox"
|
|
4757
4760
|
}), m;
|
|
4758
4761
|
};
|
|
4759
|
-
const
|
|
4762
|
+
const Xi = ({ className: t = "" }) => /* @__PURE__ */ a.jsxs(
|
|
4760
4763
|
"div",
|
|
4761
4764
|
{
|
|
4762
4765
|
className: E("success-message", t),
|
|
@@ -4775,7 +4778,7 @@ const eo = ({ className: t = "" }) => /* @__PURE__ */ a.jsxs(
|
|
|
4775
4778
|
]
|
|
4776
4779
|
}
|
|
4777
4780
|
);
|
|
4778
|
-
const
|
|
4781
|
+
const eo = {
|
|
4779
4782
|
validFields: {
|
|
4780
4783
|
name: !1,
|
|
4781
4784
|
email: !1,
|
|
@@ -4788,7 +4791,7 @@ const to = {
|
|
|
4788
4791
|
loadRecaptcha: !1,
|
|
4789
4792
|
showSuccessMessage: !1,
|
|
4790
4793
|
showError: !1
|
|
4791
|
-
},
|
|
4794
|
+
}, Jl = ({
|
|
4792
4795
|
className: t = "",
|
|
4793
4796
|
labels: e = {},
|
|
4794
4797
|
placeholders: n = {},
|
|
@@ -4817,14 +4820,14 @@ const to = {
|
|
|
4817
4820
|
url: f,
|
|
4818
4821
|
logInButton: m,
|
|
4819
4822
|
successMessage: p
|
|
4820
|
-
}, [v, _] =
|
|
4823
|
+
}, [v, _] = Yn(ma, eo), {
|
|
4821
4824
|
validFields: y,
|
|
4822
4825
|
emailDetails: x,
|
|
4823
4826
|
shouldManuallyApprove: S,
|
|
4824
4827
|
shouldDisableButton: w,
|
|
4825
4828
|
showSuccessMessage: b,
|
|
4826
4829
|
showError: F
|
|
4827
|
-
} = v, [R, Q] =
|
|
4830
|
+
} = v, [R, Q] = Kn([
|
|
4828
4831
|
"signup-this-session",
|
|
4829
4832
|
"functional-cookie-consent"
|
|
4830
4833
|
]), B = {
|
|
@@ -4846,7 +4849,7 @@ const to = {
|
|
|
4846
4849
|
maxAge: 3600
|
|
4847
4850
|
});
|
|
4848
4851
|
}, [b]);
|
|
4849
|
-
const N = wt(() =>
|
|
4852
|
+
const N = wt(() => Ji({
|
|
4850
4853
|
placeholders: n,
|
|
4851
4854
|
labels: e,
|
|
4852
4855
|
shouldShow: g,
|
|
@@ -4857,7 +4860,7 @@ const to = {
|
|
|
4857
4860
|
dataToSubmit: o,
|
|
4858
4861
|
intl: d
|
|
4859
4862
|
}), [o, r, d, B, g, v]), C = w ? !0 : S ? !Object.values(y).every((k) => k === !0) : !y.name || !y.email || ["exists", "pending", "verify"].includes(x.boxType);
|
|
4860
|
-
return g.successMessage && b ? /* @__PURE__ */ a.jsx(
|
|
4863
|
+
return g.successMessage && b ? /* @__PURE__ */ a.jsx(Xi, { className: t }) : /* @__PURE__ */ a.jsxs(
|
|
4861
4864
|
"fieldset",
|
|
4862
4865
|
{
|
|
4863
4866
|
className: E("signup-form-fieldset", t),
|
|
@@ -4908,7 +4911,7 @@ const to = {
|
|
|
4908
4911
|
},
|
|
4909
4912
|
functions: {
|
|
4910
4913
|
onSuccess: async () => {
|
|
4911
|
-
await
|
|
4914
|
+
await Qi({
|
|
4912
4915
|
refs: B,
|
|
4913
4916
|
dataToSubmit: o,
|
|
4914
4917
|
createAccount: r.createAccount,
|
|
@@ -4931,7 +4934,7 @@ const to = {
|
|
|
4931
4934
|
}
|
|
4932
4935
|
);
|
|
4933
4936
|
};
|
|
4934
|
-
var
|
|
4937
|
+
var Zn = { exports: {} }, Pt = { exports: {} }, ue = {};
|
|
4935
4938
|
/** @license React v16.13.1
|
|
4936
4939
|
* react-is.production.min.js
|
|
4937
4940
|
*
|
|
@@ -4940,11 +4943,11 @@ var Hn = { exports: {} }, Pt = { exports: {} }, ue = {};
|
|
|
4940
4943
|
* This source code is licensed under the MIT license found in the
|
|
4941
4944
|
* LICENSE file in the root directory of this source tree.
|
|
4942
4945
|
*/
|
|
4943
|
-
var
|
|
4944
|
-
function
|
|
4945
|
-
if (
|
|
4946
|
+
var Fr;
|
|
4947
|
+
function to() {
|
|
4948
|
+
if (Fr)
|
|
4946
4949
|
return ue;
|
|
4947
|
-
|
|
4950
|
+
Fr = 1;
|
|
4948
4951
|
var t = typeof Symbol == "function" && Symbol.for, e = t ? Symbol.for("react.element") : 60103, n = t ? Symbol.for("react.portal") : 60106, r = t ? Symbol.for("react.fragment") : 60107, s = t ? Symbol.for("react.strict_mode") : 60108, i = t ? Symbol.for("react.profiler") : 60114, o = t ? Symbol.for("react.provider") : 60109, c = t ? Symbol.for("react.context") : 60110, d = t ? Symbol.for("react.async_mode") : 60111, l = t ? Symbol.for("react.concurrent_mode") : 60111, u = t ? Symbol.for("react.forward_ref") : 60112, f = t ? Symbol.for("react.suspense") : 60113, m = t ? Symbol.for("react.suspense_list") : 60120, p = t ? Symbol.for("react.memo") : 60115, g = t ? Symbol.for("react.lazy") : 60116, v = t ? Symbol.for("react.block") : 60121, _ = t ? Symbol.for("react.fundamental") : 60117, y = t ? Symbol.for("react.responder") : 60118, x = t ? Symbol.for("react.scope") : 60119;
|
|
4949
4952
|
function S(b) {
|
|
4950
4953
|
if (typeof b == "object" && b !== null) {
|
|
@@ -5016,9 +5019,9 @@ var de = {};
|
|
|
5016
5019
|
* This source code is licensed under the MIT license found in the
|
|
5017
5020
|
* LICENSE file in the root directory of this source tree.
|
|
5018
5021
|
*/
|
|
5019
|
-
var
|
|
5020
|
-
function
|
|
5021
|
-
return
|
|
5022
|
+
var Or;
|
|
5023
|
+
function no() {
|
|
5024
|
+
return Or || (Or = 1, process.env.NODE_ENV !== "production" && function() {
|
|
5022
5025
|
var t = typeof Symbol == "function" && Symbol.for, e = t ? Symbol.for("react.element") : 60103, n = t ? Symbol.for("react.portal") : 60106, r = t ? Symbol.for("react.fragment") : 60107, s = t ? Symbol.for("react.strict_mode") : 60108, i = t ? Symbol.for("react.profiler") : 60114, o = t ? Symbol.for("react.provider") : 60109, c = t ? Symbol.for("react.context") : 60110, d = t ? Symbol.for("react.async_mode") : 60111, l = t ? Symbol.for("react.concurrent_mode") : 60111, u = t ? Symbol.for("react.forward_ref") : 60112, f = t ? Symbol.for("react.suspense") : 60113, m = t ? Symbol.for("react.suspense_list") : 60120, p = t ? Symbol.for("react.memo") : 60115, g = t ? Symbol.for("react.lazy") : 60116, v = t ? Symbol.for("react.block") : 60121, _ = t ? Symbol.for("react.fundamental") : 60117, y = t ? Symbol.for("react.responder") : 60118, x = t ? Symbol.for("react.scope") : 60119;
|
|
5023
5026
|
function S(D) {
|
|
5024
5027
|
return typeof D == "string" || typeof D == "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
|
|
@@ -5099,20 +5102,20 @@ function ro() {
|
|
|
5099
5102
|
de.AsyncMode = b, de.ConcurrentMode = F, de.ContextConsumer = R, de.ContextProvider = Q, de.Element = B, de.ForwardRef = N, de.Fragment = C, de.Lazy = k, de.Memo = j, de.Portal = $, de.Profiler = A, de.StrictMode = W, de.Suspense = Z, de.isAsyncMode = K, de.isConcurrentMode = T, de.isContextConsumer = P, de.isContextProvider = q, de.isElement = L, de.isForwardRef = U, de.isFragment = te, de.isLazy = G, de.isMemo = V, de.isPortal = ee, de.isProfiler = re, de.isStrictMode = O, de.isSuspense = oe, de.isValidElementType = S, de.typeOf = w;
|
|
5100
5103
|
}()), de;
|
|
5101
5104
|
}
|
|
5102
|
-
var
|
|
5103
|
-
function
|
|
5104
|
-
return
|
|
5105
|
+
var Ar;
|
|
5106
|
+
function $a() {
|
|
5107
|
+
return Ar || (Ar = 1, process.env.NODE_ENV === "production" ? Pt.exports = to() : Pt.exports = no()), Pt.exports;
|
|
5105
5108
|
}
|
|
5106
5109
|
/*
|
|
5107
5110
|
object-assign
|
|
5108
5111
|
(c) Sindre Sorhus
|
|
5109
5112
|
@license MIT
|
|
5110
5113
|
*/
|
|
5111
|
-
var
|
|
5112
|
-
function
|
|
5113
|
-
if (
|
|
5114
|
-
return
|
|
5115
|
-
|
|
5114
|
+
var _n, Dr;
|
|
5115
|
+
function ro() {
|
|
5116
|
+
if (Dr)
|
|
5117
|
+
return _n;
|
|
5118
|
+
Dr = 1;
|
|
5116
5119
|
var t = Object.getOwnPropertySymbols, e = Object.prototype.hasOwnProperty, n = Object.prototype.propertyIsEnumerable;
|
|
5117
5120
|
function r(i) {
|
|
5118
5121
|
if (i == null)
|
|
@@ -5141,7 +5144,7 @@ function ao() {
|
|
|
5141
5144
|
return !1;
|
|
5142
5145
|
}
|
|
5143
5146
|
}
|
|
5144
|
-
return
|
|
5147
|
+
return _n = s() ? Object.assign : function(i, o) {
|
|
5145
5148
|
for (var c, d = r(i), l, u = 1; u < arguments.length; u++) {
|
|
5146
5149
|
c = Object(arguments[u]);
|
|
5147
5150
|
for (var f in c)
|
|
@@ -5153,29 +5156,29 @@ function ao() {
|
|
|
5153
5156
|
}
|
|
5154
5157
|
}
|
|
5155
5158
|
return d;
|
|
5156
|
-
},
|
|
5159
|
+
}, _n;
|
|
5157
5160
|
}
|
|
5158
|
-
var
|
|
5159
|
-
function
|
|
5160
|
-
if (
|
|
5161
|
-
return
|
|
5162
|
-
|
|
5161
|
+
var xn, Ir;
|
|
5162
|
+
function rr() {
|
|
5163
|
+
if (Ir)
|
|
5164
|
+
return xn;
|
|
5165
|
+
Ir = 1;
|
|
5163
5166
|
var t = "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";
|
|
5164
|
-
return
|
|
5167
|
+
return xn = t, xn;
|
|
5165
5168
|
}
|
|
5166
|
-
var
|
|
5167
|
-
function
|
|
5168
|
-
return
|
|
5169
|
+
var wn, Lr;
|
|
5170
|
+
function Pa() {
|
|
5171
|
+
return Lr || (Lr = 1, wn = Function.call.bind(Object.prototype.hasOwnProperty)), wn;
|
|
5169
5172
|
}
|
|
5170
|
-
var
|
|
5171
|
-
function
|
|
5172
|
-
if (
|
|
5173
|
-
return
|
|
5174
|
-
|
|
5173
|
+
var jn, Br;
|
|
5174
|
+
function ao() {
|
|
5175
|
+
if (Br)
|
|
5176
|
+
return jn;
|
|
5177
|
+
Br = 1;
|
|
5175
5178
|
var t = function() {
|
|
5176
5179
|
};
|
|
5177
5180
|
if (process.env.NODE_ENV !== "production") {
|
|
5178
|
-
var e =
|
|
5181
|
+
var e = rr(), n = {}, r = Pa();
|
|
5179
5182
|
t = function(i) {
|
|
5180
5183
|
var o = "Warning: " + i;
|
|
5181
5184
|
typeof console < "u" && console.error(o);
|
|
@@ -5215,14 +5218,14 @@ function so() {
|
|
|
5215
5218
|
}
|
|
5216
5219
|
return s.resetWarningCache = function() {
|
|
5217
5220
|
process.env.NODE_ENV !== "production" && (n = {});
|
|
5218
|
-
},
|
|
5221
|
+
}, jn = s, jn;
|
|
5219
5222
|
}
|
|
5220
|
-
var
|
|
5221
|
-
function
|
|
5222
|
-
if (
|
|
5223
|
-
return
|
|
5224
|
-
|
|
5225
|
-
var t =
|
|
5223
|
+
var kn, qr;
|
|
5224
|
+
function so() {
|
|
5225
|
+
if (qr)
|
|
5226
|
+
return kn;
|
|
5227
|
+
qr = 1;
|
|
5228
|
+
var t = $a(), e = ro(), n = rr(), r = Pa(), s = ao(), i = function() {
|
|
5226
5229
|
};
|
|
5227
5230
|
process.env.NODE_ENV !== "production" && (i = function(c) {
|
|
5228
5231
|
var d = "Warning: " + c;
|
|
@@ -5235,7 +5238,7 @@ function io() {
|
|
|
5235
5238
|
function o() {
|
|
5236
5239
|
return null;
|
|
5237
5240
|
}
|
|
5238
|
-
return
|
|
5241
|
+
return kn = function(c, d) {
|
|
5239
5242
|
var l = typeof Symbol == "function" && Symbol.iterator, u = "@@iterator";
|
|
5240
5243
|
function f(T) {
|
|
5241
5244
|
var P = T && (l && T[l] || T[u]);
|
|
@@ -5537,19 +5540,19 @@ Valid keys: ` + JSON.stringify(Object.keys(T), null, " ")
|
|
|
5537
5540
|
return !T.constructor || !T.constructor.name ? m : T.constructor.name;
|
|
5538
5541
|
}
|
|
5539
5542
|
return p.checkPropTypes = s, p.resetWarningCache = s.resetWarningCache, p.PropTypes = p, p;
|
|
5540
|
-
},
|
|
5543
|
+
}, kn;
|
|
5541
5544
|
}
|
|
5542
|
-
var
|
|
5543
|
-
function
|
|
5544
|
-
if (
|
|
5545
|
-
return
|
|
5546
|
-
|
|
5547
|
-
var t =
|
|
5545
|
+
var Tn, Ur;
|
|
5546
|
+
function io() {
|
|
5547
|
+
if (Ur)
|
|
5548
|
+
return Tn;
|
|
5549
|
+
Ur = 1;
|
|
5550
|
+
var t = rr();
|
|
5548
5551
|
function e() {
|
|
5549
5552
|
}
|
|
5550
5553
|
function n() {
|
|
5551
5554
|
}
|
|
5552
|
-
return n.resetWarningCache = e,
|
|
5555
|
+
return n.resetWarningCache = e, Tn = function() {
|
|
5553
5556
|
function r(o, c, d, l, u, f) {
|
|
5554
5557
|
if (f !== t) {
|
|
5555
5558
|
var m = new Error(
|
|
@@ -5586,20 +5589,20 @@ function oo() {
|
|
|
5586
5589
|
resetWarningCache: e
|
|
5587
5590
|
};
|
|
5588
5591
|
return i.PropTypes = i, i;
|
|
5589
|
-
},
|
|
5592
|
+
}, Tn;
|
|
5590
5593
|
}
|
|
5591
5594
|
if (process.env.NODE_ENV !== "production") {
|
|
5592
|
-
var
|
|
5593
|
-
|
|
5595
|
+
var oo = $a(), co = !0;
|
|
5596
|
+
Zn.exports = so()(oo.isElement, co);
|
|
5594
5597
|
} else
|
|
5595
|
-
|
|
5596
|
-
var
|
|
5598
|
+
Zn.exports = io()();
|
|
5599
|
+
var lo = Zn.exports;
|
|
5597
5600
|
/*!
|
|
5598
5601
|
* tabbable 6.2.0
|
|
5599
5602
|
* @license MIT, https://github.com/focus-trap/tabbable/blob/master/LICENSE
|
|
5600
5603
|
*/
|
|
5601
|
-
var
|
|
5602
|
-
} : Element.prototype.matches || Element.prototype.msMatchesSelector || Element.prototype.webkitMatchesSelector, Zt = !
|
|
5604
|
+
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() {
|
|
5605
|
+
} : Element.prototype.matches || Element.prototype.msMatchesSelector || Element.prototype.webkitMatchesSelector, Zt = !Ra && Element.prototype.getRootNode ? function(t) {
|
|
5603
5606
|
var e;
|
|
5604
5607
|
return t == null || (e = t.getRootNode) === null || e === void 0 ? void 0 : e.call(t);
|
|
5605
5608
|
} : function(t) {
|
|
@@ -5609,15 +5612,15 @@ var Ra = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])",
|
|
|
5609
5612
|
n === void 0 && (n = !0);
|
|
5610
5613
|
var s = e == null || (r = e.getAttribute) === null || r === void 0 ? void 0 : r.call(e, "inert"), i = s === "" || s === "true", o = i || n && e && t(e.parentNode);
|
|
5611
5614
|
return o;
|
|
5612
|
-
},
|
|
5615
|
+
}, uo = function(e) {
|
|
5613
5616
|
var n, r = e == null || (n = e.getAttribute) === null || n === void 0 ? void 0 : n.call(e, "contenteditable");
|
|
5614
5617
|
return r === "" || r === "true";
|
|
5615
|
-
},
|
|
5618
|
+
}, Fa = function(e, n, r) {
|
|
5616
5619
|
if (Ht(e))
|
|
5617
5620
|
return [];
|
|
5618
5621
|
var s = Array.prototype.slice.apply(e.querySelectorAll(zt));
|
|
5619
5622
|
return n && Ze.call(e, zt) && s.unshift(e), s = s.filter(r), s;
|
|
5620
|
-
},
|
|
5623
|
+
}, Oa = function t(e, n, r) {
|
|
5621
5624
|
for (var s = [], i = Array.from(e); i.length; ) {
|
|
5622
5625
|
var o = i.shift();
|
|
5623
5626
|
if (!Ht(o, !1))
|
|
@@ -5643,31 +5646,31 @@ var Ra = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])",
|
|
|
5643
5646
|
}
|
|
5644
5647
|
}
|
|
5645
5648
|
return s;
|
|
5646
|
-
},
|
|
5649
|
+
}, Aa = function(e) {
|
|
5647
5650
|
return !isNaN(parseInt(e.getAttribute("tabindex"), 10));
|
|
5648
5651
|
}, Ie = function(e) {
|
|
5649
5652
|
if (!e)
|
|
5650
5653
|
throw new Error("No node provided");
|
|
5651
|
-
return e.tabIndex < 0 && (/^(AUDIO|VIDEO|DETAILS)$/.test(e.tagName) ||
|
|
5652
|
-
},
|
|
5654
|
+
return e.tabIndex < 0 && (/^(AUDIO|VIDEO|DETAILS)$/.test(e.tagName) || uo(e)) && !Aa(e) ? 0 : e.tabIndex;
|
|
5655
|
+
}, fo = function(e, n) {
|
|
5653
5656
|
var r = Ie(e);
|
|
5654
|
-
return r < 0 && n && !
|
|
5655
|
-
},
|
|
5657
|
+
return r < 0 && n && !Aa(e) ? 0 : r;
|
|
5658
|
+
}, mo = function(e, n) {
|
|
5656
5659
|
return e.tabIndex === n.tabIndex ? e.documentOrder - n.documentOrder : e.tabIndex - n.tabIndex;
|
|
5657
|
-
},
|
|
5660
|
+
}, Da = function(e) {
|
|
5658
5661
|
return e.tagName === "INPUT";
|
|
5662
|
+
}, po = function(e) {
|
|
5663
|
+
return Da(e) && e.type === "hidden";
|
|
5659
5664
|
}, ho = function(e) {
|
|
5660
|
-
return Ia(e) && e.type === "hidden";
|
|
5661
|
-
}, go = function(e) {
|
|
5662
5665
|
var n = e.tagName === "DETAILS" && Array.prototype.slice.apply(e.children).some(function(r) {
|
|
5663
5666
|
return r.tagName === "SUMMARY";
|
|
5664
5667
|
});
|
|
5665
5668
|
return n;
|
|
5666
|
-
},
|
|
5669
|
+
}, go = function(e, n) {
|
|
5667
5670
|
for (var r = 0; r < e.length; r++)
|
|
5668
5671
|
if (e[r].checked && e[r].form === n)
|
|
5669
5672
|
return e[r];
|
|
5670
|
-
},
|
|
5673
|
+
}, vo = function(e) {
|
|
5671
5674
|
if (!e.name)
|
|
5672
5675
|
return !0;
|
|
5673
5676
|
var n = e.form || Zt(e), r = function(c) {
|
|
@@ -5681,13 +5684,13 @@ var Ra = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])",
|
|
|
5681
5684
|
} catch (o) {
|
|
5682
5685
|
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;
|
|
5683
5686
|
}
|
|
5684
|
-
var i =
|
|
5687
|
+
var i = go(s, e.form);
|
|
5685
5688
|
return !i || i === e;
|
|
5689
|
+
}, bo = function(e) {
|
|
5690
|
+
return Da(e) && e.type === "radio";
|
|
5686
5691
|
}, yo = function(e) {
|
|
5687
|
-
return
|
|
5692
|
+
return bo(e) && !vo(e);
|
|
5688
5693
|
}, _o = function(e) {
|
|
5689
|
-
return yo(e) && !bo(e);
|
|
5690
|
-
}, xo = function(e) {
|
|
5691
5694
|
var n, r = e && Zt(e), s = (n = r) === null || n === void 0 ? void 0 : n.host, i = !1;
|
|
5692
5695
|
if (r && r !== e) {
|
|
5693
5696
|
var o, c, d;
|
|
@@ -5697,10 +5700,10 @@ var Ra = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])",
|
|
|
5697
5700
|
}
|
|
5698
5701
|
}
|
|
5699
5702
|
return i;
|
|
5700
|
-
},
|
|
5703
|
+
}, Wr = function(e) {
|
|
5701
5704
|
var n = e.getBoundingClientRect(), r = n.width, s = n.height;
|
|
5702
5705
|
return r === 0 && s === 0;
|
|
5703
|
-
},
|
|
5706
|
+
}, xo = function(e, n) {
|
|
5704
5707
|
var r = n.displayCheck, s = n.getShadowRoot;
|
|
5705
5708
|
if (getComputedStyle(e).visibility === "hidden")
|
|
5706
5709
|
return !0;
|
|
@@ -5712,19 +5715,19 @@ var Ra = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])",
|
|
|
5712
5715
|
for (var c = e; e; ) {
|
|
5713
5716
|
var d = e.parentElement, l = Zt(e);
|
|
5714
5717
|
if (d && !d.shadowRoot && s(d) === !0)
|
|
5715
|
-
return
|
|
5718
|
+
return Wr(e);
|
|
5716
5719
|
e.assignedSlot ? e = e.assignedSlot : !d && l !== e.ownerDocument ? e = l.host : e = d;
|
|
5717
5720
|
}
|
|
5718
5721
|
e = c;
|
|
5719
5722
|
}
|
|
5720
|
-
if (
|
|
5723
|
+
if (_o(e))
|
|
5721
5724
|
return !e.getClientRects().length;
|
|
5722
5725
|
if (r !== "legacy-full")
|
|
5723
5726
|
return !0;
|
|
5724
5727
|
} else if (r === "non-zero-area")
|
|
5725
|
-
return
|
|
5728
|
+
return Wr(e);
|
|
5726
5729
|
return !1;
|
|
5727
|
-
},
|
|
5730
|
+
}, wo = function(e) {
|
|
5728
5731
|
if (/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(e.tagName))
|
|
5729
5732
|
for (var n = e.parentElement; n; ) {
|
|
5730
5733
|
if (n.tagName === "FIELDSET" && n.disabled) {
|
|
@@ -5742,17 +5745,17 @@ var Ra = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])",
|
|
|
5742
5745
|
return !(n.disabled || // we must do an inert look up to filter out any elements inside an inert ancestor
|
|
5743
5746
|
// because we're limited in the type of selectors we can use in JSDom (see related
|
|
5744
5747
|
// note related to `candidateSelectors`)
|
|
5745
|
-
Ht(n) ||
|
|
5746
|
-
|
|
5747
|
-
},
|
|
5748
|
-
return !(
|
|
5749
|
-
},
|
|
5748
|
+
Ht(n) || po(n) || xo(n, e) || // For a details element with a summary, the summary element gets the focus
|
|
5749
|
+
ho(n) || wo(n));
|
|
5750
|
+
}, Hn = function(e, n) {
|
|
5751
|
+
return !(yo(n) || Ie(n) < 0 || !Vt(e, n));
|
|
5752
|
+
}, jo = function(e) {
|
|
5750
5753
|
var n = parseInt(e.getAttribute("tabindex"), 10);
|
|
5751
5754
|
return !!(isNaN(n) || n >= 0);
|
|
5752
|
-
},
|
|
5755
|
+
}, ko = function t(e) {
|
|
5753
5756
|
var n = [], r = [];
|
|
5754
5757
|
return e.forEach(function(s, i) {
|
|
5755
|
-
var o = !!s.scopeParent, c = o ? s.scopeParent : s, d =
|
|
5758
|
+
var o = !!s.scopeParent, c = o ? s.scopeParent : s, d = fo(c, o), l = o ? t(s.candidates) : c;
|
|
5756
5759
|
d === 0 ? o ? n.push.apply(n, l) : n.push(c) : r.push({
|
|
5757
5760
|
documentOrder: i,
|
|
5758
5761
|
tabIndex: d,
|
|
@@ -5760,48 +5763,48 @@ var Ra = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])",
|
|
|
5760
5763
|
isScope: o,
|
|
5761
5764
|
content: l
|
|
5762
5765
|
});
|
|
5763
|
-
}), r.sort(
|
|
5766
|
+
}), r.sort(mo).reduce(function(s, i) {
|
|
5764
5767
|
return i.isScope ? s.push.apply(s, i.content) : s.push(i.content), s;
|
|
5765
5768
|
}, []).concat(n);
|
|
5766
|
-
},
|
|
5769
|
+
}, Ia = function(e, n) {
|
|
5767
5770
|
n = n || {};
|
|
5768
5771
|
var r;
|
|
5769
|
-
return n.getShadowRoot ? r =
|
|
5770
|
-
filter:
|
|
5772
|
+
return n.getShadowRoot ? r = Oa([e], n.includeContainer, {
|
|
5773
|
+
filter: Hn.bind(null, n),
|
|
5771
5774
|
flatten: !1,
|
|
5772
5775
|
getShadowRoot: n.getShadowRoot,
|
|
5773
|
-
shadowRootFilter:
|
|
5774
|
-
}) : r =
|
|
5775
|
-
},
|
|
5776
|
+
shadowRootFilter: jo
|
|
5777
|
+
}) : r = Fa(e, n.includeContainer, Hn.bind(null, n)), ko(r);
|
|
5778
|
+
}, La = function(e, n) {
|
|
5776
5779
|
n = n || {};
|
|
5777
5780
|
var r;
|
|
5778
|
-
return n.getShadowRoot ? r =
|
|
5781
|
+
return n.getShadowRoot ? r = Oa([e], n.includeContainer, {
|
|
5779
5782
|
filter: Vt.bind(null, n),
|
|
5780
5783
|
flatten: !0,
|
|
5781
5784
|
getShadowRoot: n.getShadowRoot
|
|
5782
|
-
}) : r =
|
|
5785
|
+
}) : r = Fa(e, n.includeContainer, Vt.bind(null, n)), r;
|
|
5783
5786
|
}, We = function(e, n) {
|
|
5784
5787
|
if (n = n || {}, !e)
|
|
5785
5788
|
throw new Error("No node provided");
|
|
5786
|
-
return Ze.call(e, zt) === !1 ? !1 :
|
|
5787
|
-
},
|
|
5789
|
+
return Ze.call(e, zt) === !1 ? !1 : Hn(n, e);
|
|
5790
|
+
}, To = /* @__PURE__ */ Ma.concat("iframe").join(","), qt = function(e, n) {
|
|
5788
5791
|
if (n = n || {}, !e)
|
|
5789
5792
|
throw new Error("No node provided");
|
|
5790
|
-
return Ze.call(e,
|
|
5793
|
+
return Ze.call(e, To) === !1 ? !1 : Vt(n, e);
|
|
5791
5794
|
};
|
|
5792
|
-
const
|
|
5795
|
+
const Eo = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
5793
5796
|
__proto__: null,
|
|
5794
|
-
focusable:
|
|
5797
|
+
focusable: La,
|
|
5795
5798
|
getTabIndex: Ie,
|
|
5796
5799
|
isFocusable: qt,
|
|
5797
5800
|
isTabbable: We,
|
|
5798
|
-
tabbable:
|
|
5801
|
+
tabbable: Ia
|
|
5799
5802
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
5800
5803
|
/*!
|
|
5801
5804
|
* focus-trap 7.5.4
|
|
5802
5805
|
* @license MIT, https://github.com/focus-trap/focus-trap/blob/master/LICENSE
|
|
5803
5806
|
*/
|
|
5804
|
-
function
|
|
5807
|
+
function zr(t, e) {
|
|
5805
5808
|
var n = Object.keys(t);
|
|
5806
5809
|
if (Object.getOwnPropertySymbols) {
|
|
5807
5810
|
var r = Object.getOwnPropertySymbols(t);
|
|
@@ -5811,26 +5814,26 @@ function Zr(t, e) {
|
|
|
5811
5814
|
}
|
|
5812
5815
|
return n;
|
|
5813
5816
|
}
|
|
5814
|
-
function
|
|
5817
|
+
function Zr(t) {
|
|
5815
5818
|
for (var e = 1; e < arguments.length; e++) {
|
|
5816
5819
|
var n = arguments[e] != null ? arguments[e] : {};
|
|
5817
|
-
e % 2 ?
|
|
5818
|
-
|
|
5819
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(t, Object.getOwnPropertyDescriptors(n)) :
|
|
5820
|
+
e % 2 ? zr(Object(n), !0).forEach(function(r) {
|
|
5821
|
+
So(t, r, n[r]);
|
|
5822
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(t, Object.getOwnPropertyDescriptors(n)) : zr(Object(n)).forEach(function(r) {
|
|
5820
5823
|
Object.defineProperty(t, r, Object.getOwnPropertyDescriptor(n, r));
|
|
5821
5824
|
});
|
|
5822
5825
|
}
|
|
5823
5826
|
return t;
|
|
5824
5827
|
}
|
|
5825
|
-
function
|
|
5826
|
-
return e =
|
|
5828
|
+
function So(t, e, n) {
|
|
5829
|
+
return e = No(e), e in t ? Object.defineProperty(t, e, {
|
|
5827
5830
|
value: n,
|
|
5828
5831
|
enumerable: !0,
|
|
5829
5832
|
configurable: !0,
|
|
5830
5833
|
writable: !0
|
|
5831
5834
|
}) : t[e] = n, t;
|
|
5832
5835
|
}
|
|
5833
|
-
function
|
|
5836
|
+
function Co(t, e) {
|
|
5834
5837
|
if (typeof t != "object" || t === null)
|
|
5835
5838
|
return t;
|
|
5836
5839
|
var n = t[Symbol.toPrimitive];
|
|
@@ -5842,11 +5845,11 @@ function No(t, e) {
|
|
|
5842
5845
|
}
|
|
5843
5846
|
return (e === "string" ? String : Number)(t);
|
|
5844
5847
|
}
|
|
5845
|
-
function
|
|
5846
|
-
var e =
|
|
5848
|
+
function No(t) {
|
|
5849
|
+
var e = Co(t, "string");
|
|
5847
5850
|
return typeof e == "symbol" ? e : String(e);
|
|
5848
5851
|
}
|
|
5849
|
-
var
|
|
5852
|
+
var Hr = {
|
|
5850
5853
|
activateTrap: function(e, n) {
|
|
5851
5854
|
if (e.length > 0) {
|
|
5852
5855
|
var r = e[e.length - 1];
|
|
@@ -5859,19 +5862,19 @@ var Vr = {
|
|
|
5859
5862
|
var r = e.indexOf(n);
|
|
5860
5863
|
r !== -1 && e.splice(r, 1), e.length > 0 && e[e.length - 1].unpause();
|
|
5861
5864
|
}
|
|
5862
|
-
},
|
|
5865
|
+
}, $o = function(e) {
|
|
5863
5866
|
return e.tagName && e.tagName.toLowerCase() === "input" && typeof e.select == "function";
|
|
5864
|
-
},
|
|
5867
|
+
}, Po = function(e) {
|
|
5865
5868
|
return (e == null ? void 0 : e.key) === "Escape" || (e == null ? void 0 : e.key) === "Esc" || (e == null ? void 0 : e.keyCode) === 27;
|
|
5866
5869
|
}, vt = function(e) {
|
|
5867
5870
|
return (e == null ? void 0 : e.key) === "Tab" || (e == null ? void 0 : e.keyCode) === 9;
|
|
5868
|
-
},
|
|
5871
|
+
}, Mo = function(e) {
|
|
5869
5872
|
return vt(e) && !e.shiftKey;
|
|
5870
|
-
},
|
|
5873
|
+
}, Ro = function(e) {
|
|
5871
5874
|
return vt(e) && e.shiftKey;
|
|
5872
|
-
},
|
|
5875
|
+
}, Vr = function(e) {
|
|
5873
5876
|
return setTimeout(e, 0);
|
|
5874
|
-
},
|
|
5877
|
+
}, Yr = function(e, n) {
|
|
5875
5878
|
var r = -1;
|
|
5876
5879
|
return e.every(function(s, i) {
|
|
5877
5880
|
return n(s) ? (r = i, !1) : !0;
|
|
@@ -5882,13 +5885,13 @@ var Vr = {
|
|
|
5882
5885
|
return typeof e == "function" ? e.apply(void 0, r) : e;
|
|
5883
5886
|
}, Mt = function(e) {
|
|
5884
5887
|
return e.target.shadowRoot && typeof e.composedPath == "function" ? e.composedPath()[0] : e.target;
|
|
5885
|
-
},
|
|
5886
|
-
var r = (n == null ? void 0 : n.document) || document, s = (n == null ? void 0 : n.trapStack) ||
|
|
5888
|
+
}, Fo = [], Oo = function(e, n) {
|
|
5889
|
+
var r = (n == null ? void 0 : n.document) || document, s = (n == null ? void 0 : n.trapStack) || Fo, i = Zr({
|
|
5887
5890
|
returnFocusOnDeactivate: !0,
|
|
5888
5891
|
escapeDeactivates: !0,
|
|
5889
5892
|
delayInitialFocus: !0,
|
|
5890
|
-
isKeyForward:
|
|
5891
|
-
isKeyBackward:
|
|
5893
|
+
isKeyForward: Mo,
|
|
5894
|
+
isKeyBackward: Ro
|
|
5892
5895
|
}, n), o = {
|
|
5893
5896
|
// containers given to createFocusTrap()
|
|
5894
5897
|
// @type {Array<HTMLElement>}
|
|
@@ -5971,7 +5974,7 @@ var Vr = {
|
|
|
5971
5974
|
return k;
|
|
5972
5975
|
}, m = function() {
|
|
5973
5976
|
if (o.containerGroups = o.containers.map(function(k) {
|
|
5974
|
-
var j =
|
|
5977
|
+
var j = Ia(k, i.tabbableOptions), $ = La(k, i.tabbableOptions), A = j.length > 0 ? j[0] : void 0, W = j.length > 0 ? j[j.length - 1] : void 0, Z = $.find(function(T) {
|
|
5975
5978
|
return We(T);
|
|
5976
5979
|
}), z = $.slice().reverse().find(function(T) {
|
|
5977
5980
|
return We(T);
|
|
@@ -6036,7 +6039,7 @@ var Vr = {
|
|
|
6036
6039
|
}
|
|
6037
6040
|
k.focus({
|
|
6038
6041
|
preventScroll: !!i.preventScroll
|
|
6039
|
-
}), o.mostRecentlyFocusedNode = k,
|
|
6042
|
+
}), o.mostRecentlyFocusedNode = k, $o(k) && k.select();
|
|
6040
6043
|
}
|
|
6041
6044
|
}, v = function(k) {
|
|
6042
6045
|
var j = u("setReturnFocus", k);
|
|
@@ -6050,7 +6053,7 @@ var Vr = {
|
|
|
6050
6053
|
if (z < 0)
|
|
6051
6054
|
W ? Z = o.tabbableGroups[o.tabbableGroups.length - 1].lastTabbableNode : Z = o.tabbableGroups[0].firstTabbableNode;
|
|
6052
6055
|
else if (W) {
|
|
6053
|
-
var T =
|
|
6056
|
+
var T = Yr(o.tabbableGroups, function(G) {
|
|
6054
6057
|
var V = G.firstTabbableNode;
|
|
6055
6058
|
return j === V;
|
|
6056
6059
|
});
|
|
@@ -6060,7 +6063,7 @@ var Vr = {
|
|
|
6060
6063
|
} else
|
|
6061
6064
|
vt($) || (Z = K.nextTabbableNode(j, !1));
|
|
6062
6065
|
} else {
|
|
6063
|
-
var L =
|
|
6066
|
+
var L = Yr(o.tabbableGroups, function(G) {
|
|
6064
6067
|
var V = G.lastTabbableNode;
|
|
6065
6068
|
return j === V;
|
|
6066
6069
|
});
|
|
@@ -6131,7 +6134,7 @@ var Vr = {
|
|
|
6131
6134
|
});
|
|
6132
6135
|
$ && (vt(k) && k.preventDefault(), g($));
|
|
6133
6136
|
}, w = function(k) {
|
|
6134
|
-
if (
|
|
6137
|
+
if (Po(k) && lt(i.escapeDeactivates, k) !== !1) {
|
|
6135
6138
|
k.preventDefault(), c.deactivate();
|
|
6136
6139
|
return;
|
|
6137
6140
|
}
|
|
@@ -6141,7 +6144,7 @@ var Vr = {
|
|
|
6141
6144
|
l(j, k) >= 0 || lt(i.clickOutsideDeactivates, k) || lt(i.allowOutsideClick, k) || (k.preventDefault(), k.stopImmediatePropagation());
|
|
6142
6145
|
}, F = function() {
|
|
6143
6146
|
if (o.active)
|
|
6144
|
-
return
|
|
6147
|
+
return Hr.activateTrap(s, c), o.delayInitialFocusTimer = i.delayInitialFocus ? Vr(function() {
|
|
6145
6148
|
g(f());
|
|
6146
6149
|
}) : g(f()), r.addEventListener("focusin", x, !0), r.addEventListener("mousedown", y, {
|
|
6147
6150
|
capture: !0,
|
|
@@ -6195,16 +6198,16 @@ var Vr = {
|
|
|
6195
6198
|
deactivate: function(k) {
|
|
6196
6199
|
if (!o.active)
|
|
6197
6200
|
return this;
|
|
6198
|
-
var j =
|
|
6201
|
+
var j = Zr({
|
|
6199
6202
|
onDeactivate: i.onDeactivate,
|
|
6200
6203
|
onPostDeactivate: i.onPostDeactivate,
|
|
6201
6204
|
checkCanReturnFocus: i.checkCanReturnFocus
|
|
6202
6205
|
}, k);
|
|
6203
|
-
clearTimeout(o.delayInitialFocusTimer), o.delayInitialFocusTimer = void 0, R(), o.active = !1, o.paused = !1, N(),
|
|
6206
|
+
clearTimeout(o.delayInitialFocusTimer), o.delayInitialFocusTimer = void 0, R(), o.active = !1, o.paused = !1, N(), Hr.deactivateTrap(s, c);
|
|
6204
6207
|
var $ = d(j, "onDeactivate"), A = d(j, "onPostDeactivate"), W = d(j, "checkCanReturnFocus"), Z = d(j, "returnFocus", "returnFocusOnDeactivate");
|
|
6205
6208
|
$ == null || $();
|
|
6206
6209
|
var z = function() {
|
|
6207
|
-
|
|
6210
|
+
Vr(function() {
|
|
6208
6211
|
Z && g(v(o.nodeFocusedBeforeActivation)), A == null || A();
|
|
6209
6212
|
});
|
|
6210
6213
|
};
|
|
@@ -6230,10 +6233,10 @@ var Vr = {
|
|
|
6230
6233
|
}
|
|
6231
6234
|
}, c.updateContainerElements(e), c;
|
|
6232
6235
|
};
|
|
6233
|
-
const
|
|
6236
|
+
const Ao = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
6234
6237
|
__proto__: null,
|
|
6235
|
-
createFocusTrap:
|
|
6236
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
6238
|
+
createFocusTrap: Oo
|
|
6239
|
+
}, Symbol.toStringTag, { value: "Module" })), Do = /* @__PURE__ */ ua(Ao), Io = /* @__PURE__ */ ua(Eo);
|
|
6237
6240
|
function tt(t) {
|
|
6238
6241
|
"@babel/helpers - typeof";
|
|
6239
6242
|
return tt = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
|
|
@@ -6242,31 +6245,31 @@ function tt(t) {
|
|
|
6242
6245
|
return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
|
|
6243
6246
|
}, tt(t);
|
|
6244
6247
|
}
|
|
6245
|
-
function
|
|
6248
|
+
function Lo(t, e) {
|
|
6246
6249
|
if (!(t instanceof e))
|
|
6247
6250
|
throw new TypeError("Cannot call a class as a function");
|
|
6248
6251
|
}
|
|
6249
|
-
function
|
|
6252
|
+
function Kr(t, e) {
|
|
6250
6253
|
for (var n = 0; n < e.length; n++) {
|
|
6251
6254
|
var r = e[n];
|
|
6252
|
-
r.enumerable = r.enumerable || !1, r.configurable = !0, "value" in r && (r.writable = !0), Object.defineProperty(t,
|
|
6255
|
+
r.enumerable = r.enumerable || !1, r.configurable = !0, "value" in r && (r.writable = !0), Object.defineProperty(t, Ba(r.key), r);
|
|
6253
6256
|
}
|
|
6254
6257
|
}
|
|
6255
|
-
function
|
|
6256
|
-
return e &&
|
|
6258
|
+
function Bo(t, e, n) {
|
|
6259
|
+
return e && Kr(t.prototype, e), n && Kr(t, n), Object.defineProperty(t, "prototype", { writable: !1 }), t;
|
|
6257
6260
|
}
|
|
6258
|
-
function
|
|
6261
|
+
function qo(t, e) {
|
|
6259
6262
|
if (typeof e != "function" && e !== null)
|
|
6260
6263
|
throw new TypeError("Super expression must either be null or a function");
|
|
6261
|
-
t.prototype = Object.create(e && e.prototype, { constructor: { value: t, writable: !0, configurable: !0 } }), Object.defineProperty(t, "prototype", { writable: !1 }), e &&
|
|
6264
|
+
t.prototype = Object.create(e && e.prototype, { constructor: { value: t, writable: !0, configurable: !0 } }), Object.defineProperty(t, "prototype", { writable: !1 }), e && Vn(t, e);
|
|
6262
6265
|
}
|
|
6263
|
-
function
|
|
6264
|
-
return
|
|
6266
|
+
function Vn(t, e) {
|
|
6267
|
+
return Vn = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(r, s) {
|
|
6265
6268
|
return r.__proto__ = s, r;
|
|
6266
|
-
},
|
|
6269
|
+
}, Vn(t, e);
|
|
6267
6270
|
}
|
|
6268
|
-
function
|
|
6269
|
-
var e =
|
|
6271
|
+
function Uo(t) {
|
|
6272
|
+
var e = zo();
|
|
6270
6273
|
return function() {
|
|
6271
6274
|
var r = Yt(t), s;
|
|
6272
6275
|
if (e) {
|
|
@@ -6274,10 +6277,10 @@ function Wo(t) {
|
|
|
6274
6277
|
s = Reflect.construct(r, arguments, i);
|
|
6275
6278
|
} else
|
|
6276
6279
|
s = r.apply(this, arguments);
|
|
6277
|
-
return
|
|
6280
|
+
return Wo(this, s);
|
|
6278
6281
|
};
|
|
6279
6282
|
}
|
|
6280
|
-
function
|
|
6283
|
+
function Wo(t, e) {
|
|
6281
6284
|
if (e && (tt(e) === "object" || typeof e == "function"))
|
|
6282
6285
|
return e;
|
|
6283
6286
|
if (e !== void 0)
|
|
@@ -6289,7 +6292,7 @@ function mt(t) {
|
|
|
6289
6292
|
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
6290
6293
|
return t;
|
|
6291
6294
|
}
|
|
6292
|
-
function
|
|
6295
|
+
function zo() {
|
|
6293
6296
|
if (typeof Reflect > "u" || !Reflect.construct || Reflect.construct.sham)
|
|
6294
6297
|
return !1;
|
|
6295
6298
|
if (typeof Proxy == "function")
|
|
@@ -6306,14 +6309,14 @@ function Yt(t) {
|
|
|
6306
6309
|
return n.__proto__ || Object.getPrototypeOf(n);
|
|
6307
6310
|
}, Yt(t);
|
|
6308
6311
|
}
|
|
6309
|
-
function
|
|
6310
|
-
return e =
|
|
6312
|
+
function Zo(t, e, n) {
|
|
6313
|
+
return e = Ba(e), e in t ? Object.defineProperty(t, e, { value: n, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = n, t;
|
|
6311
6314
|
}
|
|
6312
|
-
function
|
|
6313
|
-
var e =
|
|
6315
|
+
function Ba(t) {
|
|
6316
|
+
var e = Ho(t, "string");
|
|
6314
6317
|
return tt(e) === "symbol" ? e : String(e);
|
|
6315
6318
|
}
|
|
6316
|
-
function
|
|
6319
|
+
function Ho(t, e) {
|
|
6317
6320
|
if (tt(t) !== "object" || t === null)
|
|
6318
6321
|
return t;
|
|
6319
6322
|
var n = t[Symbol.toPrimitive];
|
|
@@ -6325,12 +6328,12 @@ function Vo(t, e) {
|
|
|
6325
6328
|
}
|
|
6326
6329
|
return (e === "string" ? String : Number)(t);
|
|
6327
6330
|
}
|
|
6328
|
-
var Rt = Y, J =
|
|
6329
|
-
|
|
6330
|
-
var e =
|
|
6331
|
+
var Rt = Y, J = lo, Vo = Do, Yo = Vo.createFocusTrap, Ko = Io, Go = Ko.isFocusable, ar = /* @__PURE__ */ function(t) {
|
|
6332
|
+
qo(n, t);
|
|
6333
|
+
var e = Uo(n);
|
|
6331
6334
|
function n(r) {
|
|
6332
6335
|
var s;
|
|
6333
|
-
|
|
6336
|
+
Lo(this, n), s = e.call(this, r), Zo(mt(s), "getNodeForOption", function(c) {
|
|
6334
6337
|
var d, l = (d = this.internalOptions[c]) !== null && d !== void 0 ? d : this.originalOptions[c];
|
|
6335
6338
|
if (typeof l == "function") {
|
|
6336
6339
|
for (var u = arguments.length, f = new Array(u > 1 ? u - 1 : 0), m = 1; m < u; m++)
|
|
@@ -6390,7 +6393,7 @@ var Rt = Y, J = uo, Yo = Io, Ko = Yo.createFocusTrap, Go = Lo, Qo = Go.isFocusab
|
|
|
6390
6393
|
}
|
|
6391
6394
|
return s.outsideClick = null, s.focusTrapElements = r.containerElements || [], s.updatePreviousElement(), s;
|
|
6392
6395
|
}
|
|
6393
|
-
return
|
|
6396
|
+
return Bo(n, [{
|
|
6394
6397
|
key: "getDocument",
|
|
6395
6398
|
value: function() {
|
|
6396
6399
|
return this.props.focusTrapOptions.document || (typeof document < "u" ? document : void 0);
|
|
@@ -6453,7 +6456,7 @@ var Rt = Y, J = uo, Yo = Io, Ko = Yo.createFocusTrap, Go = Lo, Qo = Go.isFocusab
|
|
|
6453
6456
|
s.outsideClick.allowDeactivation && // is the outside node NOT focusable (implying that it did NOT receive focus
|
|
6454
6457
|
// as a result of the click-through) -- in which case do NOT restore focus
|
|
6455
6458
|
// to `returnFocusNode` because focus should remain on the outside node
|
|
6456
|
-
!
|
|
6459
|
+
!Go(s.outsideClick.target, s.internalOptions.tabbableOptions))), l = s.internalOptions.preventScroll, u = l === void 0 ? !1 : l;
|
|
6457
6460
|
d && c.focus({
|
|
6458
6461
|
preventScroll: u
|
|
6459
6462
|
}), s.originalOptions.onPostDeactivate && s.originalOptions.onPostDeactivate.call(null), s.outsideClick = null;
|
|
@@ -6513,7 +6516,7 @@ var Rt = Y, J = uo, Yo = Io, Ko = Yo.createFocusTrap, Go = Lo, Qo = Go.isFocusab
|
|
|
6513
6516
|
}
|
|
6514
6517
|
}]), n;
|
|
6515
6518
|
}(Rt.Component), ut = typeof Element > "u" ? Function : Element;
|
|
6516
|
-
|
|
6519
|
+
ar.propTypes = {
|
|
6517
6520
|
active: J.bool,
|
|
6518
6521
|
paused: J.bool,
|
|
6519
6522
|
focusTrapOptions: J.shape({
|
|
@@ -6561,15 +6564,15 @@ sr.propTypes = {
|
|
|
6561
6564
|
// specify it here. It's expected to be set to the function returned from
|
|
6562
6565
|
// require('focus-trap'), or one with a compatible interface.
|
|
6563
6566
|
};
|
|
6564
|
-
|
|
6567
|
+
ar.defaultProps = {
|
|
6565
6568
|
active: !0,
|
|
6566
6569
|
paused: !1,
|
|
6567
6570
|
focusTrapOptions: {},
|
|
6568
|
-
_createFocusTrap:
|
|
6571
|
+
_createFocusTrap: Yo
|
|
6569
6572
|
};
|
|
6570
|
-
var
|
|
6571
|
-
const
|
|
6572
|
-
const
|
|
6573
|
+
var Qo = ar;
|
|
6574
|
+
const Jo = /* @__PURE__ */ la(Qo);
|
|
6575
|
+
const qa = ({ element: t = "section", children: e, className: n, ...r }) => Y.createElement(t, {
|
|
6573
6576
|
className: E("modal", n),
|
|
6574
6577
|
children: typeof e == "string" ? /* @__PURE__ */ a.jsx("p", { children: e }) : e,
|
|
6575
6578
|
...r
|
|
@@ -6603,7 +6606,7 @@ const an = ({
|
|
|
6603
6606
|
}, [e]);
|
|
6604
6607
|
const y = r ? { "--max-width": `${r / 16}rem` } : {};
|
|
6605
6608
|
return /* @__PURE__ */ a.jsx("div", { className: E("overlay", { open: p }), role: "dialog", children: /* @__PURE__ */ a.jsx(
|
|
6606
|
-
|
|
6609
|
+
qa,
|
|
6607
6610
|
{
|
|
6608
6611
|
id: t,
|
|
6609
6612
|
className: E("overlay-modal", u, {
|
|
@@ -6611,7 +6614,7 @@ const an = ({
|
|
|
6611
6614
|
}),
|
|
6612
6615
|
hidden: !p,
|
|
6613
6616
|
style: y,
|
|
6614
|
-
children: e && /* @__PURE__ */ a.jsx(
|
|
6617
|
+
children: e && /* @__PURE__ */ a.jsx(Jo, { children: /* @__PURE__ */ a.jsxs("div", { className: "overlay-content", children: [
|
|
6615
6618
|
/* @__PURE__ */ a.jsxs("div", { className: "top", children: [
|
|
6616
6619
|
c && /* @__PURE__ */ a.jsx("h2", { className: "modal-title", children: c }),
|
|
6617
6620
|
/* @__PURE__ */ a.jsx(
|
|
@@ -6638,12 +6641,12 @@ const an = ({
|
|
|
6638
6641
|
] }) })
|
|
6639
6642
|
}
|
|
6640
6643
|
) });
|
|
6641
|
-
},
|
|
6644
|
+
}, Xo = (t, e) => ({
|
|
6642
6645
|
"aria-haspopup": !0,
|
|
6643
6646
|
"aria-expanded": e,
|
|
6644
6647
|
"aria-controls": t
|
|
6645
6648
|
});
|
|
6646
|
-
const
|
|
6649
|
+
const Xl = ({
|
|
6647
6650
|
className: t,
|
|
6648
6651
|
showModal: e = !0,
|
|
6649
6652
|
title: n,
|
|
@@ -6667,7 +6670,7 @@ const eu = ({
|
|
|
6667
6670
|
functions: { onClose: c },
|
|
6668
6671
|
className: E("invite-modal", t, { success: !!n }),
|
|
6669
6672
|
children: /* @__PURE__ */ a.jsx(
|
|
6670
|
-
|
|
6673
|
+
Yi,
|
|
6671
6674
|
{
|
|
6672
6675
|
title: r,
|
|
6673
6676
|
label: s,
|
|
@@ -6680,7 +6683,7 @@ const eu = ({
|
|
|
6680
6683
|
}
|
|
6681
6684
|
);
|
|
6682
6685
|
};
|
|
6683
|
-
const
|
|
6686
|
+
const eu = ({ members: t }) => {
|
|
6684
6687
|
const [e, n] = X(!1), r = (s) => {
|
|
6685
6688
|
const { fullName: i, jobTitle: o, organisation: c, photo: d } = s || {};
|
|
6686
6689
|
return /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
|
|
@@ -6719,7 +6722,7 @@ const tu = ({ members: t }) => {
|
|
|
6719
6722
|
}
|
|
6720
6723
|
)
|
|
6721
6724
|
] });
|
|
6722
|
-
},
|
|
6725
|
+
}, ec = ({ type: t, data: e }) => {
|
|
6723
6726
|
const n = H(), {
|
|
6724
6727
|
answers: r,
|
|
6725
6728
|
createdAt: s,
|
|
@@ -6731,7 +6734,7 @@ const tu = ({ members: t }) => {
|
|
|
6731
6734
|
startDate: u
|
|
6732
6735
|
} = e;
|
|
6733
6736
|
if (t === "question") {
|
|
6734
|
-
const f = s &&
|
|
6737
|
+
const f = s && Un(s);
|
|
6735
6738
|
return /* @__PURE__ */ a.jsxs("p", { className: "details answers", "data-testid": "question-answers", children: [
|
|
6736
6739
|
n.formatMessage({ id: "card_answers" }, { number: r }),
|
|
6737
6740
|
s && /* @__PURE__ */ a.jsxs("span", { "data-testid": "question-created-at", children: [
|
|
@@ -6751,7 +6754,7 @@ const tu = ({ members: t }) => {
|
|
|
6751
6754
|
] });
|
|
6752
6755
|
}
|
|
6753
6756
|
if (u && !i || o)
|
|
6754
|
-
return /* @__PURE__ */ a.jsx("p", { className: "details", children: o ? n.formatMessage({ id: "card_bootcamp" }) :
|
|
6757
|
+
return /* @__PURE__ */ a.jsx("p", { className: "details", children: o ? n.formatMessage({ id: "card_bootcamp" }) : ga(u) });
|
|
6755
6758
|
if (c)
|
|
6756
6759
|
return /* @__PURE__ */ a.jsx(
|
|
6757
6760
|
ht,
|
|
@@ -6763,7 +6766,7 @@ const tu = ({ members: t }) => {
|
|
|
6763
6766
|
}
|
|
6764
6767
|
);
|
|
6765
6768
|
if (d || l) {
|
|
6766
|
-
const f = l &&
|
|
6769
|
+
const f = l && Un(l);
|
|
6767
6770
|
return /* @__PURE__ */ a.jsxs("ul", { className: "details", children: [
|
|
6768
6771
|
d && /* @__PURE__ */ a.jsx("li", { "data-testid": "reading-time", children: n.formatMessage({ id: "card_time_read" }, { time: d }) }),
|
|
6769
6772
|
l && /* @__PURE__ */ a.jsx("li", { "data-testid": "published-date", children: n.formatMessage(
|
|
@@ -6840,7 +6843,7 @@ const tu = ({ members: t }) => {
|
|
|
6840
6843
|
},
|
|
6841
6844
|
gtmEvent: "learning-hub"
|
|
6842
6845
|
}
|
|
6843
|
-
},
|
|
6846
|
+
}, tc = ({ data: t, cta: e, link: n, gtmContext: r }) => {
|
|
6844
6847
|
var v, _;
|
|
6845
6848
|
const s = H(), [i, o] = X({
|
|
6846
6849
|
loading: !1,
|
|
@@ -6915,12 +6918,12 @@ const tu = ({ members: t }) => {
|
|
|
6915
6918
|
}
|
|
6916
6919
|
return null;
|
|
6917
6920
|
};
|
|
6918
|
-
const
|
|
6921
|
+
const nc = {
|
|
6919
6922
|
title: 66,
|
|
6920
6923
|
text: 3e3,
|
|
6921
6924
|
secondaryText: 1e3,
|
|
6922
6925
|
partner: 25
|
|
6923
|
-
},
|
|
6926
|
+
}, Ua = ({
|
|
6924
6927
|
id: t = "",
|
|
6925
6928
|
card: e,
|
|
6926
6929
|
buildCardData: n,
|
|
@@ -6933,7 +6936,7 @@ const rc = {
|
|
|
6933
6936
|
const c = H(), d = Ee(De), l = d && typeof d.id == "string", [u, f] = X({
|
|
6934
6937
|
data: null,
|
|
6935
6938
|
isLoading: !0
|
|
6936
|
-
}), { data: m, isLoading: p } = u, g =
|
|
6939
|
+
}), { data: m, isLoading: p } = u, g = ia(() => {
|
|
6937
6940
|
n(e, l).then((N) => {
|
|
6938
6941
|
f(() => ({ data: N, isLoading: !1 }));
|
|
6939
6942
|
}).catch(() => f((N) => ({ ...N, isLoading: !1 })));
|
|
@@ -6964,7 +6967,7 @@ const rc = {
|
|
|
6964
6967
|
} = Kt[v];
|
|
6965
6968
|
let w = m.slug ? `${_}${m.slug}` : !1;
|
|
6966
6969
|
m.slug && (m.slug.slice(0, 4) === "http" || m.slug.slice(0, 2) === "//" || m.slug.slice(0, 6) === "mailto" || m.slug.slice(0, 3) === "tel") && (w = m.slug);
|
|
6967
|
-
const b = { ...
|
|
6970
|
+
const b = { ...nc, ...x };
|
|
6968
6971
|
let F = { className: "card" };
|
|
6969
6972
|
return w && (F = {
|
|
6970
6973
|
href: w,
|
|
@@ -6986,7 +6989,7 @@ const rc = {
|
|
|
6986
6989
|
F,
|
|
6987
6990
|
/* @__PURE__ */ a.jsxs(a.Fragment, { children: [
|
|
6988
6991
|
/* @__PURE__ */ a.jsx(
|
|
6989
|
-
|
|
6992
|
+
oi,
|
|
6990
6993
|
{
|
|
6991
6994
|
className: "card-label",
|
|
6992
6995
|
contentType: v,
|
|
@@ -7000,7 +7003,7 @@ const rc = {
|
|
|
7000
7003
|
size: "small",
|
|
7001
7004
|
variant: m.dateHasPassed ? "default" : "information",
|
|
7002
7005
|
"data-testid": "date",
|
|
7003
|
-
children: m.dateHasPassed ? c.formatMessage({ id: "card_ended" }) :
|
|
7006
|
+
children: m.dateHasPassed ? c.formatMessage({ id: "card_ended" }) : Vs(m.startDate)
|
|
7004
7007
|
}
|
|
7005
7008
|
),
|
|
7006
7009
|
m.banner ? /* @__PURE__ */ a.jsxs("p", { className: "img", children: [
|
|
@@ -7015,7 +7018,7 @@ const rc = {
|
|
|
7015
7018
|
}
|
|
7016
7019
|
) : null,
|
|
7017
7020
|
m.contributors && /* @__PURE__ */ a.jsx(
|
|
7018
|
-
|
|
7021
|
+
Ta,
|
|
7019
7022
|
{
|
|
7020
7023
|
contributors: { data: m.contributors },
|
|
7021
7024
|
styling: {
|
|
@@ -7036,7 +7039,7 @@ const rc = {
|
|
|
7036
7039
|
const C = m[N];
|
|
7037
7040
|
if (!C)
|
|
7038
7041
|
return null;
|
|
7039
|
-
const k =
|
|
7042
|
+
const k = Ws(N);
|
|
7040
7043
|
return /* @__PURE__ */ a.jsx("p", { className: k, "data-testid": k, children: et(C, b[N]) }, N);
|
|
7041
7044
|
}),
|
|
7042
7045
|
(m == null ? void 0 : m.members) && /* @__PURE__ */ a.jsxs("span", { className: "member-information", children: [
|
|
@@ -7057,17 +7060,17 @@ const rc = {
|
|
|
7057
7060
|
{ count: m == null ? void 0 : m.members.count }
|
|
7058
7061
|
) })
|
|
7059
7062
|
] }),
|
|
7060
|
-
/* @__PURE__ */ a.jsx(
|
|
7061
|
-
/* @__PURE__ */ a.jsx(
|
|
7063
|
+
/* @__PURE__ */ a.jsx(ec, { type: y || "", data: m }),
|
|
7064
|
+
/* @__PURE__ */ a.jsx(tc, { data: m, cta: r, link: w || "", gtmContext: s })
|
|
7062
7065
|
] })
|
|
7063
7066
|
)
|
|
7064
7067
|
}
|
|
7065
7068
|
);
|
|
7066
7069
|
};
|
|
7067
|
-
const
|
|
7070
|
+
const rc = ({ cards: t, cardTypes: e, className: n = "", ...r }) => /* @__PURE__ */ a.jsx("ul", { className: E("card-block", n), children: t.map((s, i) => {
|
|
7068
7071
|
const o = s.slug ? `${s.slug}-${e[i]}` : `${e[i]}-${i}`;
|
|
7069
7072
|
return /* @__PURE__ */ a.jsx(
|
|
7070
|
-
|
|
7073
|
+
Ua,
|
|
7071
7074
|
{
|
|
7072
7075
|
id: o,
|
|
7073
7076
|
card: { ...s, contentType: e[i] },
|
|
@@ -7075,10 +7078,10 @@ const ac = ({ cards: t, cardTypes: e, className: n = "", ...r }) => /* @__PURE__
|
|
|
7075
7078
|
},
|
|
7076
7079
|
o
|
|
7077
7080
|
);
|
|
7078
|
-
}) }),
|
|
7081
|
+
}) }), ac = (t, e, n, r) => {
|
|
7079
7082
|
const s = e * n <= t, i = t < e * (n + 1), o = r.includes(Math.floor(t / e));
|
|
7080
7083
|
return s && i || o;
|
|
7081
|
-
},
|
|
7084
|
+
}, sc = ({ id: t, title: e }) => {
|
|
7082
7085
|
const n = H();
|
|
7083
7086
|
if (!e || !e.text)
|
|
7084
7087
|
return null;
|
|
@@ -7102,13 +7105,13 @@ const ac = ({ cards: t, cardTypes: e, className: n = "", ...r }) => /* @__PURE__
|
|
|
7102
7105
|
] })
|
|
7103
7106
|
});
|
|
7104
7107
|
};
|
|
7105
|
-
const
|
|
7108
|
+
const En = {
|
|
7106
7109
|
fourCards: 1024,
|
|
7107
7110
|
threeCards: 769,
|
|
7108
7111
|
twoCards: 480
|
|
7109
7112
|
};
|
|
7110
7113
|
let Ft = null;
|
|
7111
|
-
const
|
|
7114
|
+
const ic = ({
|
|
7112
7115
|
id: t,
|
|
7113
7116
|
cards: e,
|
|
7114
7117
|
cardTypes: n,
|
|
@@ -7127,7 +7130,7 @@ const oc = ({
|
|
|
7127
7130
|
}), { currentPage: v, loadedPages: _ } = p, y = e.length, x = Math.ceil(y / f), S = pe(null), w = jt(!0, !0, S == null ? void 0 : S.current);
|
|
7128
7131
|
ae(() => {
|
|
7129
7132
|
let N = 1;
|
|
7130
|
-
w && (w >=
|
|
7133
|
+
w && (w >= En.fourCards ? N = 4 : w >= En.threeCards ? N = 3 : w >= En.twoCards && (N = 2), N > y && (N = y)), u((C) => ({
|
|
7131
7134
|
...C,
|
|
7132
7135
|
cardsPerPage: N,
|
|
7133
7136
|
isLoading: !1
|
|
@@ -7166,7 +7169,7 @@ const oc = ({
|
|
|
7166
7169
|
"--page": v
|
|
7167
7170
|
};
|
|
7168
7171
|
if (m)
|
|
7169
|
-
return /* @__PURE__ */ a.jsx(
|
|
7172
|
+
return /* @__PURE__ */ a.jsx(wa, { layout: `carousel${s ? "-with-title" : ""}` });
|
|
7170
7173
|
const B = (N, C) => {
|
|
7171
7174
|
var j;
|
|
7172
7175
|
let k = null;
|
|
@@ -7179,7 +7182,7 @@ const oc = ({
|
|
|
7179
7182
|
className: E("carousel-wrapper", i),
|
|
7180
7183
|
"data-testid": "carousel",
|
|
7181
7184
|
children: [
|
|
7182
|
-
/* @__PURE__ */ a.jsx(
|
|
7185
|
+
/* @__PURE__ */ a.jsx(sc, { id: t, title: s }),
|
|
7183
7186
|
/* @__PURE__ */ a.jsx(
|
|
7184
7187
|
"ul",
|
|
7185
7188
|
{
|
|
@@ -7190,8 +7193,8 @@ const oc = ({
|
|
|
7190
7193
|
"data-testid": "carousel-list",
|
|
7191
7194
|
children: e.map((N, C) => {
|
|
7192
7195
|
let k = B(N, C);
|
|
7193
|
-
return k &&
|
|
7194
|
-
|
|
7196
|
+
return k && ac(C, f, v, _) ? /* @__PURE__ */ a.jsx(
|
|
7197
|
+
Ua,
|
|
7195
7198
|
{
|
|
7196
7199
|
id: k,
|
|
7197
7200
|
card: { ...N, contentType: n[C] },
|
|
@@ -7260,7 +7263,7 @@ const oc = ({
|
|
|
7260
7263
|
]
|
|
7261
7264
|
}
|
|
7262
7265
|
);
|
|
7263
|
-
},
|
|
7266
|
+
}, tu = ({
|
|
7264
7267
|
carousels: t = [],
|
|
7265
7268
|
isLoading: e,
|
|
7266
7269
|
title: n,
|
|
@@ -7271,7 +7274,7 @@ const oc = ({
|
|
|
7271
7274
|
const u = i ? window.btoa(i) : `carousel-${l}`, f = l === t.length - 1;
|
|
7272
7275
|
return e ? /* @__PURE__ */ a.jsxs(yt, { children: [
|
|
7273
7276
|
/* @__PURE__ */ a.jsx(
|
|
7274
|
-
|
|
7277
|
+
wa,
|
|
7275
7278
|
{
|
|
7276
7279
|
layout: `carousel${i ? "-with-title" : ""}`,
|
|
7277
7280
|
"data-testid": "carousel-placeholder"
|
|
@@ -7280,7 +7283,7 @@ const oc = ({
|
|
|
7280
7283
|
f ? null : /* @__PURE__ */ a.jsx(Oe, {})
|
|
7281
7284
|
] }, `placeholder-${u}`) : /* @__PURE__ */ a.jsxs(yt, { children: [
|
|
7282
7285
|
/* @__PURE__ */ a.jsx(
|
|
7283
|
-
|
|
7286
|
+
ic,
|
|
7284
7287
|
{
|
|
7285
7288
|
cards: c,
|
|
7286
7289
|
cardTypes: d,
|
|
@@ -7292,7 +7295,7 @@ const oc = ({
|
|
|
7292
7295
|
] }, `carousel-${u}`);
|
|
7293
7296
|
}
|
|
7294
7297
|
);
|
|
7295
|
-
const
|
|
7298
|
+
const Sn = "joinCommunityButton", Wa = ({
|
|
7296
7299
|
isMember: t = !1,
|
|
7297
7300
|
isShort: e = !1,
|
|
7298
7301
|
functions: { join: n, leave: r } = { join: () => {
|
|
@@ -7304,7 +7307,7 @@ const Cn = "joinCommunityButton", za = ({
|
|
|
7304
7307
|
l === "joining" ? u("joined") : l === "leaving" && u("notJoined");
|
|
7305
7308
|
}, [c]);
|
|
7306
7309
|
const f = {}, m = {};
|
|
7307
|
-
return c && l !== "leaving" && (f["data-hover-text"] = s.formatMessage({ id: `${
|
|
7310
|
+
return c && l !== "leaving" && (f["data-hover-text"] = s.formatMessage({ id: `${Sn}_leave` }), f["aria-label"] = s.formatMessage({ id: `${Sn}_member_aria` }), m["aria-hidden"] = "true"), /* @__PURE__ */ a.jsx(
|
|
7308
7311
|
se,
|
|
7309
7312
|
{
|
|
7310
7313
|
variant: c ? "secondary" : "primary",
|
|
@@ -7320,12 +7323,12 @@ const Cn = "joinCommunityButton", za = ({
|
|
|
7320
7323
|
disabled: !o,
|
|
7321
7324
|
...f,
|
|
7322
7325
|
children: /* @__PURE__ */ a.jsx("span", { className: "text", ...m, children: s.formatMessage({
|
|
7323
|
-
id: `${
|
|
7326
|
+
id: `${Sn}${["joining", "leaving"].includes(l) ? `_${l}` : c ? "_member" : e ? "_short" : ""}`
|
|
7324
7327
|
}) })
|
|
7325
7328
|
}
|
|
7326
7329
|
);
|
|
7327
7330
|
};
|
|
7328
|
-
const
|
|
7331
|
+
const Cn = "communityDetails_", nu = ({
|
|
7329
7332
|
className: t = "",
|
|
7330
7333
|
isMember: e = !1,
|
|
7331
7334
|
slug: n,
|
|
@@ -7338,13 +7341,13 @@ const Nn = "communityDetails_", ru = ({
|
|
|
7338
7341
|
/* @__PURE__ */ a.jsxs("div", { className: "member-details", children: [
|
|
7339
7342
|
/* @__PURE__ */ a.jsxs("div", { className: "top", children: [
|
|
7340
7343
|
/* @__PURE__ */ a.jsxs("h4", { children: [
|
|
7341
|
-
c.formatMessage({ id: `${
|
|
7344
|
+
c.formatMessage({ id: `${Cn}members` }),
|
|
7342
7345
|
/* @__PURE__ */ a.jsx("span", { className: "count", children: l })
|
|
7343
7346
|
] }),
|
|
7344
|
-
!f && /* @__PURE__ */ a.jsx("p", { className: "text-small", children: /* @__PURE__ */ a.jsx("a", { href: `/communities/${n}/members`, children: c.formatMessage({ id: `${
|
|
7347
|
+
!f && /* @__PURE__ */ a.jsx("p", { className: "text-small", children: /* @__PURE__ */ a.jsx("a", { href: `/communities/${n}/members`, children: c.formatMessage({ id: `${Cn}viewAll` }) }) })
|
|
7345
7348
|
] }),
|
|
7346
7349
|
/* @__PURE__ */ a.jsx(
|
|
7347
|
-
|
|
7350
|
+
Ta,
|
|
7348
7351
|
{
|
|
7349
7352
|
contributors: {
|
|
7350
7353
|
total: r,
|
|
@@ -7359,7 +7362,7 @@ const Nn = "communityDetails_", ru = ({
|
|
|
7359
7362
|
}
|
|
7360
7363
|
)
|
|
7361
7364
|
] }),
|
|
7362
|
-
/* @__PURE__ */ a.jsx(
|
|
7365
|
+
/* @__PURE__ */ a.jsx(Wa, { isMember: e, functions: { ...o } }),
|
|
7363
7366
|
e && /* @__PURE__ */ a.jsx(
|
|
7364
7367
|
se,
|
|
7365
7368
|
{
|
|
@@ -7367,12 +7370,12 @@ const Nn = "communityDetails_", ru = ({
|
|
|
7367
7370
|
onClick: i,
|
|
7368
7371
|
icon: { icon: "plus" },
|
|
7369
7372
|
styling: { fullWidth: !0 },
|
|
7370
|
-
children: c.formatMessage({ id: `${
|
|
7373
|
+
children: c.formatMessage({ id: `${Cn}invite` })
|
|
7371
7374
|
}
|
|
7372
7375
|
)
|
|
7373
7376
|
] });
|
|
7374
7377
|
};
|
|
7375
|
-
const
|
|
7378
|
+
const ru = ({ breadcrumbs: t, cutoff: e = 20, className: n = "" }) => {
|
|
7376
7379
|
const r = H();
|
|
7377
7380
|
return /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
|
|
7378
7381
|
/* @__PURE__ */ a.jsx(
|
|
@@ -7396,7 +7399,7 @@ const au = ({ breadcrumbs: t, cutoff: e = 20, className: n = "" }) => {
|
|
|
7396
7399
|
) })
|
|
7397
7400
|
] });
|
|
7398
7401
|
};
|
|
7399
|
-
const
|
|
7402
|
+
const au = ({
|
|
7400
7403
|
options: t,
|
|
7401
7404
|
allOption: e = !1,
|
|
7402
7405
|
allowMultiple: n = !0,
|
|
@@ -7432,7 +7435,7 @@ const su = ({
|
|
|
7432
7435
|
}
|
|
7433
7436
|
) }, u);
|
|
7434
7437
|
}) });
|
|
7435
|
-
},
|
|
7438
|
+
}, oc = (t, e, n) => {
|
|
7436
7439
|
const r = String(t);
|
|
7437
7440
|
if (!n || !n.length)
|
|
7438
7441
|
return e ? `/${r}/${e}` : `/${r}`;
|
|
@@ -7444,7 +7447,7 @@ const su = ({
|
|
|
7444
7447
|
urlForRouter: `/${s.split("/").slice(2).join("/")}`
|
|
7445
7448
|
} : s;
|
|
7446
7449
|
};
|
|
7447
|
-
const Ot = "languageSwitcher_",
|
|
7450
|
+
const Ot = "languageSwitcher_", su = ({
|
|
7448
7451
|
currentLanguage: t,
|
|
7449
7452
|
isOriginalLanguage: e = !1,
|
|
7450
7453
|
isHumanTranslation: n = !1,
|
|
@@ -7456,7 +7459,7 @@ const Ot = "languageSwitcher_", iu = ({
|
|
|
7456
7459
|
className: d = ""
|
|
7457
7460
|
}) => {
|
|
7458
7461
|
const l = H(), { updateLanguage: u = () => {
|
|
7459
|
-
} } = Ee(
|
|
7462
|
+
} } = Ee(ya), [f, m] = X(t);
|
|
7460
7463
|
if (ae(() => {
|
|
7461
7464
|
t !== f && m(t);
|
|
7462
7465
|
}, [t]), !r || !Object.values(r).some(
|
|
@@ -7469,17 +7472,17 @@ const Ot = "languageSwitcher_", iu = ({
|
|
|
7469
7472
|
o !== "short" && /* @__PURE__ */ a.jsx("p", { children: c || l.formatMessage({ id: `${Ot}label` }) }),
|
|
7470
7473
|
/* @__PURE__ */ a.jsx("ul", { children: g.map((_) => {
|
|
7471
7474
|
var S;
|
|
7472
|
-
if (!
|
|
7475
|
+
if (!gn[_])
|
|
7473
7476
|
return null;
|
|
7474
7477
|
const y = (S = r[_]) == null ? void 0 : S.post_name;
|
|
7475
7478
|
let x = { className: _ };
|
|
7476
7479
|
if (f === _)
|
|
7477
7480
|
x["aria-label"] = l.formatMessage(
|
|
7478
7481
|
{ id: `${Ot}selected` },
|
|
7479
|
-
{ language:
|
|
7482
|
+
{ language: gn[_] }
|
|
7480
7483
|
);
|
|
7481
7484
|
else {
|
|
7482
|
-
const w =
|
|
7485
|
+
const w = oc(_, y, i);
|
|
7483
7486
|
x = {
|
|
7484
7487
|
...x,
|
|
7485
7488
|
href: typeof w == "string" ? w : w.url,
|
|
@@ -7491,7 +7494,7 @@ const Ot = "languageSwitcher_", iu = ({
|
|
|
7491
7494
|
}
|
|
7492
7495
|
};
|
|
7493
7496
|
}
|
|
7494
|
-
return /* @__PURE__ */ a.jsx("li", { children: /* @__PURE__ */ a.jsx(at, { ...x, fallbackElement: "span", children:
|
|
7497
|
+
return /* @__PURE__ */ a.jsx("li", { children: /* @__PURE__ */ a.jsx(at, { ...x, fallbackElement: "span", children: gn[_] }) }, _);
|
|
7495
7498
|
}) }),
|
|
7496
7499
|
o !== "short" && !v && /* @__PURE__ */ a.jsx("p", { children: l.formatMessage({
|
|
7497
7500
|
id: `${Ot}translation_${e ? "original" : n ? "human" : "machine"}`
|
|
@@ -7514,7 +7517,7 @@ const Ot = "languageSwitcher_", iu = ({
|
|
|
7514
7517
|
})
|
|
7515
7518
|
] });
|
|
7516
7519
|
};
|
|
7517
|
-
const
|
|
7520
|
+
const Nn = Ts({ locale: "en", messages: rt }), sn = ({
|
|
7518
7521
|
hasNextPage: t = !0,
|
|
7519
7522
|
loadNextPage: e = () => {
|
|
7520
7523
|
},
|
|
@@ -7524,9 +7527,9 @@ const $n = Es({ locale: "en", messages: rt }), sn = ({
|
|
|
7524
7527
|
styling: i = { muted: !1, fullWidth: !1 },
|
|
7525
7528
|
icon: o = !1,
|
|
7526
7529
|
messages: c = {
|
|
7527
|
-
button:
|
|
7528
|
-
endOfFeed:
|
|
7529
|
-
error:
|
|
7530
|
+
button: Nn.formatMessage({ id: "loadMore_button" }),
|
|
7531
|
+
endOfFeed: Nn.formatMessage({ id: "loadMore_endOfFeed" }),
|
|
7532
|
+
error: Nn.formatMessage({ id: "loadMore_error" })
|
|
7530
7533
|
},
|
|
7531
7534
|
className: d = "",
|
|
7532
7535
|
gtmContext: l = "LoadMore"
|
|
@@ -7556,7 +7559,7 @@ const $n = Es({ locale: "en", messages: rt }), sn = ({
|
|
|
7556
7559
|
}
|
|
7557
7560
|
) : 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 }) });
|
|
7558
7561
|
};
|
|
7559
|
-
const
|
|
7562
|
+
const za = ({
|
|
7560
7563
|
variant: t = "default",
|
|
7561
7564
|
version: e = "default",
|
|
7562
7565
|
className: n = "",
|
|
@@ -7571,7 +7574,7 @@ const Za = ({
|
|
|
7571
7574
|
}
|
|
7572
7575
|
) });
|
|
7573
7576
|
let At = !1;
|
|
7574
|
-
const
|
|
7577
|
+
const cc = ({
|
|
7575
7578
|
element: t = "div",
|
|
7576
7579
|
id: e = "more-menu",
|
|
7577
7580
|
options: n,
|
|
@@ -7629,8 +7632,8 @@ const lc = ({
|
|
|
7629
7632
|
}) })
|
|
7630
7633
|
] })
|
|
7631
7634
|
});
|
|
7632
|
-
},
|
|
7633
|
-
const
|
|
7635
|
+
}, lc = (t, e = !1) => e ? t.replaceAll("/", "") === e : typeof window < "u" && window.location && window.location.pathname === t;
|
|
7636
|
+
const uc = [
|
|
7634
7637
|
{
|
|
7635
7638
|
key: "homepage",
|
|
7636
7639
|
href: "/home/"
|
|
@@ -7651,13 +7654,13 @@ const dc = [
|
|
|
7651
7654
|
key: "communities",
|
|
7652
7655
|
href: "/communities/"
|
|
7653
7656
|
}
|
|
7654
|
-
],
|
|
7657
|
+
], dc = ({ activeLink: t }) => {
|
|
7655
7658
|
const e = H(), n = Ee(De), r = n && typeof n.id == "string";
|
|
7656
7659
|
return /* @__PURE__ */ a.jsxs("ul", { id: "navigation-menu", className: "text-medium", children: [
|
|
7657
|
-
|
|
7660
|
+
uc.map(({ key: s, href: i }) => /* @__PURE__ */ a.jsx(
|
|
7658
7661
|
"li",
|
|
7659
7662
|
{
|
|
7660
|
-
className: E(s, { active:
|
|
7663
|
+
className: E(s, { active: lc(i, t) }),
|
|
7661
7664
|
children: /* @__PURE__ */ a.jsx(
|
|
7662
7665
|
"a",
|
|
7663
7666
|
{
|
|
@@ -7691,7 +7694,7 @@ const dc = [
|
|
|
7691
7694
|
}
|
|
7692
7695
|
) })
|
|
7693
7696
|
] });
|
|
7694
|
-
}, dt = (t, e, n) => `${t}?share=${e}${n ? `&uuid=${n}` : ""}`,
|
|
7697
|
+
}, dt = (t, e, n) => `${t}?share=${e}${n ? `&uuid=${n}` : ""}`, fc = ({
|
|
7695
7698
|
title: t,
|
|
7696
7699
|
link: e,
|
|
7697
7700
|
referrer: n
|
|
@@ -7734,7 +7737,7 @@ ${dt(e, "mailto", n)}&src=email`
|
|
|
7734
7737
|
onClick: (r, s) => (r.preventDefault(), r.stopPropagation(), navigator.clipboard.writeText(s))
|
|
7735
7738
|
}
|
|
7736
7739
|
];
|
|
7737
|
-
const
|
|
7740
|
+
const mc = "shareLinks_", iu = ({
|
|
7738
7741
|
title: t,
|
|
7739
7742
|
link: e,
|
|
7740
7743
|
referrer: n,
|
|
@@ -7743,7 +7746,7 @@ const pc = "shareLinks_", ou = ({
|
|
|
7743
7746
|
variant: i = "default",
|
|
7744
7747
|
className: o = ""
|
|
7745
7748
|
}) => {
|
|
7746
|
-
const c = H(), d =
|
|
7749
|
+
const c = H(), d = fc({ title: t, link: e, referrer: n });
|
|
7747
7750
|
return /* @__PURE__ */ a.jsxs("aside", { className: E("share-links", s, i, o), children: [
|
|
7748
7751
|
/* @__PURE__ */ a.jsx("p", { className: "text-small", children: c.formatMessage({ id: "shareLinks_label" }) }),
|
|
7749
7752
|
/* @__PURE__ */ a.jsx("ul", { children: d.map(({ key: l, icon: u, url: f, shouldRender: m = !0, onClick: p }) => {
|
|
@@ -7763,14 +7766,14 @@ const pc = "shareLinks_", ou = ({
|
|
|
7763
7766
|
"data-gtm-event-context": `${r}-SocialButtons`,
|
|
7764
7767
|
"data-gtm-event-type": `${l}-click`,
|
|
7765
7768
|
"data-testid": "link",
|
|
7766
|
-
screenreaderText: c.formatMessage({ id: `${
|
|
7769
|
+
screenreaderText: c.formatMessage({ id: `${mc}link_${l}` }),
|
|
7767
7770
|
...g
|
|
7768
7771
|
}
|
|
7769
7772
|
) }, l);
|
|
7770
7773
|
}) })
|
|
7771
7774
|
] });
|
|
7772
7775
|
};
|
|
7773
|
-
const
|
|
7776
|
+
const ou = ({ tabs: t, className: e = "", preventLocationChange: n }) => {
|
|
7774
7777
|
var l;
|
|
7775
7778
|
const r = (u, f, m) => (u || (u = `panel-${window.btoa(f)}-${m}`), u);
|
|
7776
7779
|
let s = t.findIndex((u) => u.current === !0);
|
|
@@ -7833,11 +7836,11 @@ const cu = ({ tabs: t, className: e = "", preventLocationChange: n }) => {
|
|
|
7833
7836
|
/* @__PURE__ */ a.jsx("div", { className: "tab-content", children: d })
|
|
7834
7837
|
] });
|
|
7835
7838
|
};
|
|
7836
|
-
const
|
|
7839
|
+
const pc = {
|
|
7837
7840
|
"2-1": 901,
|
|
7838
7841
|
"1-3": 769,
|
|
7839
7842
|
"1-1": 769
|
|
7840
|
-
},
|
|
7843
|
+
}, hc = ({
|
|
7841
7844
|
layout: t = "2-1",
|
|
7842
7845
|
hideOnMobile: e = !1,
|
|
7843
7846
|
hasCSSContainers: n = !1,
|
|
@@ -7852,25 +7855,25 @@ const hc = {
|
|
|
7852
7855
|
className: E("columns", `layout-${t}`, r, {
|
|
7853
7856
|
"has-containers": n
|
|
7854
7857
|
}),
|
|
7855
|
-
children: Y.Children.map(o, (c, d) => e !== !1 && d === e && i && i <
|
|
7858
|
+
children: Y.Children.map(o, (c, d) => e !== !1 && d === e && i && i < pc[t] ? null : c)
|
|
7856
7859
|
}
|
|
7857
7860
|
);
|
|
7858
7861
|
};
|
|
7859
|
-
let
|
|
7860
|
-
const
|
|
7862
|
+
let $n;
|
|
7863
|
+
const Pn = "contactFooter_", cu = ({ onSuccess: t = async () => {
|
|
7861
7864
|
}, onFailure: e = () => {
|
|
7862
7865
|
} }) => {
|
|
7863
7866
|
const n = pe(null), [r, s] = Y.useState(0), [i, o] = Y.useState(!1), c = () => {
|
|
7864
7867
|
n.current && s(n.current.clientHeight);
|
|
7865
7868
|
}, d = () => {
|
|
7866
|
-
i || (o(!0), clearTimeout(
|
|
7869
|
+
i || (o(!0), clearTimeout($n), $n = setTimeout(() => {
|
|
7867
7870
|
c(), o(!1);
|
|
7868
7871
|
}, 500));
|
|
7869
7872
|
};
|
|
7870
7873
|
return ae(() => (c(), window.addEventListener("resize", d), () => {
|
|
7871
|
-
clearTimeout(
|
|
7874
|
+
clearTimeout($n), window.removeEventListener("resize", d);
|
|
7872
7875
|
}), []), /* @__PURE__ */ a.jsx(Ve, { id: "contactForm", className: "contact-footer", children: /* @__PURE__ */ a.jsxs("div", { className: "inner-wrapper", children: [
|
|
7873
|
-
/* @__PURE__ */ a.jsx("h2", { children: /* @__PURE__ */ a.jsx(ye, { id: `${
|
|
7876
|
+
/* @__PURE__ */ a.jsx("h2", { children: /* @__PURE__ */ a.jsx(ye, { id: `${Pn}title` }) }),
|
|
7874
7877
|
/* @__PURE__ */ a.jsxs(
|
|
7875
7878
|
"div",
|
|
7876
7879
|
{
|
|
@@ -7880,11 +7883,11 @@ const Mn = "contactFooter_", lu = ({ onSuccess: t = async () => {
|
|
|
7880
7883
|
style: i ? {} : { minHeight: r },
|
|
7881
7884
|
children: [
|
|
7882
7885
|
/* @__PURE__ */ a.jsxs("aside", { children: [
|
|
7883
|
-
/* @__PURE__ */ a.jsx("p", { children: /* @__PURE__ */ a.jsx(ye, { id: `${
|
|
7884
|
-
/* @__PURE__ */ a.jsx(at, { className: "mailto-link", href: "mailto:hello@apolitical.co", children: /* @__PURE__ */ a.jsx(ye, { id: `${
|
|
7886
|
+
/* @__PURE__ */ a.jsx("p", { children: /* @__PURE__ */ a.jsx(ye, { id: `${Pn}text` }) }),
|
|
7887
|
+
/* @__PURE__ */ a.jsx(at, { className: "mailto-link", href: "mailto:hello@apolitical.co", children: /* @__PURE__ */ a.jsx(ye, { id: `${Pn}email` }) })
|
|
7885
7888
|
] }),
|
|
7886
7889
|
/* @__PURE__ */ a.jsx(
|
|
7887
|
-
|
|
7890
|
+
Vi,
|
|
7888
7891
|
{
|
|
7889
7892
|
functions: { onSuccess: t, onFailure: e },
|
|
7890
7893
|
gtm: { context: "FooterContactUsForm", event: "contact-form-submit-click" }
|
|
@@ -7894,34 +7897,34 @@ const Mn = "contactFooter_", lu = ({ onSuccess: t = async () => {
|
|
|
7894
7897
|
}
|
|
7895
7898
|
)
|
|
7896
7899
|
] }) });
|
|
7897
|
-
},
|
|
7898
|
-
/* @__PURE__ */ a.jsx(
|
|
7899
|
-
/* @__PURE__ */ a.jsx(
|
|
7900
|
+
}, lu = ({ activeLink: t, ...e }) => /* @__PURE__ */ a.jsx(Ve, { children: /* @__PURE__ */ a.jsx(hc, { layout: "1-3", children: /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
|
|
7901
|
+
/* @__PURE__ */ a.jsx(dc, { activeLink: t }),
|
|
7902
|
+
/* @__PURE__ */ a.jsx(bi, { ...e })
|
|
7900
7903
|
] }) }) });
|
|
7901
|
-
const
|
|
7904
|
+
const Mn = "cookieBanner_", Rn = [
|
|
7902
7905
|
"apol-cookie-banner",
|
|
7903
7906
|
"apolitical-performance-cookie-consent",
|
|
7904
7907
|
"functional-cookie-consent"
|
|
7905
|
-
],
|
|
7906
|
-
const t = H(), [e, n, r] =
|
|
7908
|
+
], Fn = new Date(Date.now() + 12 * 30 * 24 * 60 * 60 * 1e3), gc = () => {
|
|
7909
|
+
const t = H(), [e, n, r] = Kn(Rn), [s, i] = X(
|
|
7907
7910
|
!e["apol-cookie-banner"]
|
|
7908
7911
|
), o = () => {
|
|
7909
|
-
|
|
7912
|
+
Rn.forEach((u) => {
|
|
7910
7913
|
n(u, !0, {
|
|
7911
7914
|
path: "/",
|
|
7912
|
-
expires:
|
|
7915
|
+
expires: Fn,
|
|
7913
7916
|
domain: u === "apolitical-performance-cookie-consent" ? ".apolitical.co" : void 0
|
|
7914
7917
|
});
|
|
7915
7918
|
}), i(!1), window.location.reload();
|
|
7916
7919
|
}, c = () => {
|
|
7917
7920
|
n("apol-cookie-banner", !0, {
|
|
7918
7921
|
path: "/",
|
|
7919
|
-
expires:
|
|
7920
|
-
}),
|
|
7922
|
+
expires: Fn
|
|
7923
|
+
}), Rn.forEach((u) => {
|
|
7921
7924
|
if (u === "apol-cookie-banner") {
|
|
7922
7925
|
n(u, !0, {
|
|
7923
7926
|
path: "/",
|
|
7924
|
-
expires:
|
|
7927
|
+
expires: Fn
|
|
7925
7928
|
});
|
|
7926
7929
|
return;
|
|
7927
7930
|
}
|
|
@@ -7943,11 +7946,11 @@ const Rn = "cookieBanner_", Fn = [
|
|
|
7943
7946
|
className: "gtm-trackable",
|
|
7944
7947
|
"data-gtm-event-context": "cookie-banner",
|
|
7945
7948
|
"data-gtm-event-type": `cookie-${u.gtmType}-click`,
|
|
7946
|
-
children: t.formatMessage({ id: `${
|
|
7949
|
+
children: t.formatMessage({ id: `${Mn}buttons_${u.id}` })
|
|
7947
7950
|
});
|
|
7948
7951
|
}), /* @__PURE__ */ a.jsxs("aside", { id: "cookie-banner", className: "text-medium", children: [
|
|
7949
|
-
/* @__PURE__ */ a.jsx("h6", { children: t.formatMessage({ id: `${
|
|
7950
|
-
/* @__PURE__ */ a.jsx("p", { children: t.formatMessage({ id: `${
|
|
7952
|
+
/* @__PURE__ */ a.jsx("h6", { children: t.formatMessage({ id: `${Mn}title` }) }),
|
|
7953
|
+
/* @__PURE__ */ a.jsx("p", { children: t.formatMessage({ id: `${Mn}text` }) }),
|
|
7951
7954
|
/* @__PURE__ */ a.jsx(kt, { buttons: l })
|
|
7952
7955
|
] });
|
|
7953
7956
|
}, Re = {
|
|
@@ -8044,7 +8047,7 @@ const Rn = "cookieBanner_", Fn = [
|
|
|
8044
8047
|
facebook: { href: "https://www.facebook.com/apoliticalco" }
|
|
8045
8048
|
}
|
|
8046
8049
|
};
|
|
8047
|
-
const Xe = "footer_", Gt = "SiteFooter",
|
|
8050
|
+
const Xe = "footer_", Gt = "SiteFooter", Gr = ({ group: t }) => {
|
|
8048
8051
|
const e = Re[t].order || [];
|
|
8049
8052
|
let n = !1;
|
|
8050
8053
|
return "text" in Re[t] && (n = Re[t].text), /* @__PURE__ */ a.jsxs(yt, { children: [
|
|
@@ -8088,10 +8091,10 @@ const Xe = "footer_", Gt = "SiteFooter", Qr = ({ group: t }) => {
|
|
|
8088
8091
|
] })
|
|
8089
8092
|
] }, `dl-${t}-${r}`)) })
|
|
8090
8093
|
] }, t);
|
|
8091
|
-
},
|
|
8092
|
-
/* @__PURE__ */ a.jsx(
|
|
8094
|
+
}, Za = () => /* @__PURE__ */ a.jsx("div", { id: "footer", children: /* @__PURE__ */ a.jsxs("div", { className: "wrapper", children: [
|
|
8095
|
+
/* @__PURE__ */ a.jsx(Qn, { element: "hr" }),
|
|
8093
8096
|
/* @__PURE__ */ a.jsx(
|
|
8094
|
-
|
|
8097
|
+
za,
|
|
8095
8098
|
{
|
|
8096
8099
|
variant: "inverted",
|
|
8097
8100
|
version: "full",
|
|
@@ -8101,8 +8104,8 @@ const Xe = "footer_", Gt = "SiteFooter", Qr = ({ group: t }) => {
|
|
|
8101
8104
|
}
|
|
8102
8105
|
),
|
|
8103
8106
|
/* @__PURE__ */ a.jsx("footer", { children: ["platform", "community", "company", "contact"].map((t) => /* @__PURE__ */ a.jsxs("div", { className: "group", children: [
|
|
8104
|
-
/* @__PURE__ */ a.jsx(
|
|
8105
|
-
Object.keys(Re[t]).includes("child") && /* @__PURE__ */ a.jsx(
|
|
8107
|
+
/* @__PURE__ */ a.jsx(Gr, { group: t }),
|
|
8108
|
+
Object.keys(Re[t]).includes("child") && /* @__PURE__ */ a.jsx(Gr, { group: Re[t].child })
|
|
8106
8109
|
] }, t)) }),
|
|
8107
8110
|
/* @__PURE__ */ a.jsx("hr", {}),
|
|
8108
8111
|
/* @__PURE__ */ a.jsxs("div", { className: "sub-footer", children: [
|
|
@@ -8175,7 +8178,7 @@ const Xe = "footer_", Gt = "SiteFooter", Qr = ({ group: t }) => {
|
|
|
8175
8178
|
return t[r];
|
|
8176
8179
|
if (!e.includes("."))
|
|
8177
8180
|
continue;
|
|
8178
|
-
const s =
|
|
8181
|
+
const s = ca(t[r], e);
|
|
8179
8182
|
if (!(typeof s > "u") && (!n || s[e] && s[e].includes(n) || s.value && s.value.includes(n) || s.toString().includes(n)))
|
|
8180
8183
|
return t[r];
|
|
8181
8184
|
}
|
|
@@ -8322,7 +8325,7 @@ const Xe = "footer_", Gt = "SiteFooter", Qr = ({ group: t }) => {
|
|
|
8322
8325
|
},
|
|
8323
8326
|
doTrack: i = null
|
|
8324
8327
|
}) => {
|
|
8325
|
-
const o = H(), c =
|
|
8328
|
+
const o = H(), c = ca(Qt, t);
|
|
8326
8329
|
if (!c || c.onlyShow && (c.onlyShow === "logged-in" && !e || c.onlyShow === "logged-out" && e))
|
|
8327
8330
|
return null;
|
|
8328
8331
|
const d = "doTrack" in c, l = i === null ? d ? c.doTrack : !0 : i, u = t.includes("buttons.");
|
|
@@ -8435,11 +8438,11 @@ const Xe = "footer_", Gt = "SiteFooter", Qr = ({ group: t }) => {
|
|
|
8435
8438
|
t
|
|
8436
8439
|
);
|
|
8437
8440
|
};
|
|
8438
|
-
const
|
|
8441
|
+
const vc = { height: 67, height_desktop: 83 }, Ha = ({ showNavigation: t = !0 }) => {
|
|
8439
8442
|
const e = H(), n = Ee(De), r = jt(!0, !0), s = n && typeof n.id == "string", i = wt(
|
|
8440
8443
|
() => fe.getIsDesktopVersion(s, r),
|
|
8441
8444
|
[s, r]
|
|
8442
|
-
), [o, c] =
|
|
8445
|
+
), [o, c] = Yn(ma, {
|
|
8443
8446
|
headerIsVisible: !0,
|
|
8444
8447
|
menus: { navigation: !1, search: !1, account: !1 },
|
|
8445
8448
|
focusElements: {
|
|
@@ -8447,8 +8450,8 @@ const bc = { height: 67, height_desktop: 83 }, Va = ({ showNavigation: t = !0 })
|
|
|
8447
8450
|
account: { desktop: !1, default: !1 }
|
|
8448
8451
|
}
|
|
8449
8452
|
}), { headerIsVisible: d, menus: l, focusElements: u } = o;
|
|
8450
|
-
|
|
8451
|
-
scrollPosition:
|
|
8453
|
+
qs({
|
|
8454
|
+
scrollPosition: vc[`height${i.navigation ? "_desktop" : ""}`],
|
|
8452
8455
|
callbacks: {
|
|
8453
8456
|
scrollUp: () => {
|
|
8454
8457
|
!i && l.navigation || fe.shouldChangeHeaderIsVisible(!0, l, c);
|
|
@@ -8496,7 +8499,7 @@ const bc = { height: 67, height_desktop: 83 }, Va = ({ showNavigation: t = !0 })
|
|
|
8496
8499
|
children: e.formatMessage({ id: "header_skip" })
|
|
8497
8500
|
}
|
|
8498
8501
|
),
|
|
8499
|
-
/* @__PURE__ */ a.jsx(
|
|
8502
|
+
/* @__PURE__ */ a.jsx(za, {}),
|
|
8500
8503
|
t && /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
|
|
8501
8504
|
!i.navigation && /* @__PURE__ */ a.jsx(
|
|
8502
8505
|
"button",
|
|
@@ -8557,7 +8560,7 @@ const bc = { height: 67, height_desktop: 83 }, Va = ({ showNavigation: t = !0 })
|
|
|
8557
8560
|
}
|
|
8558
8561
|
),
|
|
8559
8562
|
/* @__PURE__ */ a.jsx(
|
|
8560
|
-
|
|
8563
|
+
Ki,
|
|
8561
8564
|
{
|
|
8562
8565
|
id: "global-search",
|
|
8563
8566
|
handleToggle: {
|
|
@@ -8611,10 +8614,10 @@ const bc = { height: 67, height_desktop: 83 }, Va = ({ showNavigation: t = !0 })
|
|
|
8611
8614
|
)
|
|
8612
8615
|
] });
|
|
8613
8616
|
};
|
|
8614
|
-
const
|
|
8617
|
+
const bc = () => {
|
|
8615
8618
|
const t = H();
|
|
8616
8619
|
return /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
|
|
8617
|
-
/* @__PURE__ */ a.jsx(
|
|
8620
|
+
/* @__PURE__ */ a.jsx(Ha, {}),
|
|
8618
8621
|
/* @__PURE__ */ a.jsx("div", { id: "content", children: /* @__PURE__ */ a.jsx(
|
|
8619
8622
|
He,
|
|
8620
8623
|
{
|
|
@@ -8622,9 +8625,9 @@ const yc = () => {
|
|
|
8622
8625
|
text: t.formatMessage({ id: "pageLayout_error" })
|
|
8623
8626
|
}
|
|
8624
8627
|
) }),
|
|
8625
|
-
/* @__PURE__ */ a.jsx(
|
|
8628
|
+
/* @__PURE__ */ a.jsx(Za, {})
|
|
8626
8629
|
] });
|
|
8627
|
-
},
|
|
8630
|
+
}, yc = ({
|
|
8628
8631
|
children: t,
|
|
8629
8632
|
additionalContent: { prepended: e, appended: n } = {},
|
|
8630
8633
|
reportError: r,
|
|
@@ -8638,7 +8641,7 @@ const yc = () => {
|
|
|
8638
8641
|
variant: f = "default",
|
|
8639
8642
|
circle: m = "default",
|
|
8640
8643
|
modal: p = "default"
|
|
8641
|
-
} = i, g =
|
|
8644
|
+
} = i, g = Ls();
|
|
8642
8645
|
ae(() => {
|
|
8643
8646
|
window.scrollTo(0, 0);
|
|
8644
8647
|
}, [g]);
|
|
@@ -8647,13 +8650,13 @@ const yc = () => {
|
|
|
8647
8650
|
}), y = Bt(n, {
|
|
8648
8651
|
locale: c
|
|
8649
8652
|
}), x = {};
|
|
8650
|
-
return u !== "default" && (x[u] = !0), f !== "default" && (x[f] = !0), m !== "default" && (x[m] = !0), /* @__PURE__ */ a.jsx(
|
|
8653
|
+
return u !== "default" && (x[u] = !0), f !== "default" && (x[f] = !0), m !== "default" && (x[m] = !0), /* @__PURE__ */ a.jsx(Ps, { onError: r, fallback: /* @__PURE__ */ a.jsx(bc, {}), children: /* @__PURE__ */ a.jsx(xs, { fallback: null, children: /* @__PURE__ */ a.jsxs(
|
|
8651
8654
|
"div",
|
|
8652
8655
|
{
|
|
8653
8656
|
id: "wrapper",
|
|
8654
8657
|
className: E(o, x, { "has-footer": l }),
|
|
8655
8658
|
children: [
|
|
8656
|
-
/* @__PURE__ */ a.jsx(
|
|
8659
|
+
/* @__PURE__ */ a.jsx(Ha, { showNavigation: d }),
|
|
8657
8660
|
/* @__PURE__ */ a.jsxs("section", { id: "content-wrapper", children: [
|
|
8658
8661
|
_ && /* @__PURE__ */ a.jsx(
|
|
8659
8662
|
"div",
|
|
@@ -8664,22 +8667,22 @@ const yc = () => {
|
|
|
8664
8667
|
children: _
|
|
8665
8668
|
}
|
|
8666
8669
|
),
|
|
8667
|
-
Y.createElement(u === "bold" ?
|
|
8670
|
+
Y.createElement(u === "bold" ? qa : "div", {
|
|
8668
8671
|
id: "content",
|
|
8669
8672
|
children: v,
|
|
8670
8673
|
className: E({ "large-modal": p === "large" })
|
|
8671
8674
|
})
|
|
8672
8675
|
] }),
|
|
8673
8676
|
y && /* @__PURE__ */ a.jsx("div", { className: "additional-content appended", children: y }),
|
|
8674
|
-
l && /* @__PURE__ */ a.jsx(
|
|
8675
|
-
/* @__PURE__ */ a.jsx(
|
|
8677
|
+
l && /* @__PURE__ */ a.jsx(Za, {}),
|
|
8678
|
+
/* @__PURE__ */ a.jsx(gc, {})
|
|
8676
8679
|
]
|
|
8677
8680
|
}
|
|
8678
8681
|
) }) });
|
|
8679
|
-
},
|
|
8682
|
+
}, Qr = {
|
|
8680
8683
|
default: "tags_",
|
|
8681
8684
|
headerTopics: "header_topics_topics_"
|
|
8682
|
-
},
|
|
8685
|
+
}, On = {
|
|
8683
8686
|
topic: {
|
|
8684
8687
|
Climate: "climate",
|
|
8685
8688
|
CitiesAndLocalGovernment: "cities-and-local-government",
|
|
@@ -8695,19 +8698,19 @@ const yc = () => {
|
|
|
8695
8698
|
WorkAndTheEconomy: "work-and-the-economy"
|
|
8696
8699
|
},
|
|
8697
8700
|
"from the community": "community"
|
|
8698
|
-
},
|
|
8701
|
+
}, _c = {
|
|
8699
8702
|
getTagDetails: (t) => {
|
|
8700
8703
|
if (t.includes("topic_")) {
|
|
8701
|
-
if (t =
|
|
8704
|
+
if (t = On.topic[t.replace("topic_", "")], t) {
|
|
8702
8705
|
const e = Qt.topics.topics[t].href;
|
|
8703
|
-
return e ? { id: t, href: e, text: `${
|
|
8706
|
+
return e ? { id: t, href: e, text: `${Qr.headerTopics}${t}` } : null;
|
|
8704
8707
|
}
|
|
8705
8708
|
return null;
|
|
8706
8709
|
}
|
|
8707
|
-
return
|
|
8710
|
+
return On[t] ? (t = On[t], { id: t, text: `${Qr.default}${t}` }) : null;
|
|
8708
8711
|
}
|
|
8709
8712
|
};
|
|
8710
|
-
const
|
|
8713
|
+
const uu = ({
|
|
8711
8714
|
tags: t = [],
|
|
8712
8715
|
color: e = "default",
|
|
8713
8716
|
forceOneLine: n = !1,
|
|
@@ -8723,7 +8726,7 @@ const du = ({
|
|
|
8723
8726
|
return t.forEach((l) => {
|
|
8724
8727
|
if (!l)
|
|
8725
8728
|
return;
|
|
8726
|
-
const u =
|
|
8729
|
+
const u = _c.getTagDetails(l);
|
|
8727
8730
|
u && d.push(u);
|
|
8728
8731
|
}), d.length < 1 ? null : /* @__PURE__ */ a.jsx(
|
|
8729
8732
|
"ul",
|
|
@@ -8747,7 +8750,7 @@ const du = ({
|
|
|
8747
8750
|
}
|
|
8748
8751
|
);
|
|
8749
8752
|
};
|
|
8750
|
-
const
|
|
8753
|
+
const du = ({
|
|
8751
8754
|
members: { data: t = [], total: e = t.length },
|
|
8752
8755
|
hasNextPage: n = !1,
|
|
8753
8756
|
loadNextPage: r = () => {
|
|
@@ -8763,7 +8766,7 @@ const fu = ({
|
|
|
8763
8766
|
/* @__PURE__ */ a.jsx("span", { className: "count", children: e })
|
|
8764
8767
|
] }),
|
|
8765
8768
|
/* @__PURE__ */ a.jsx("ul", { children: t.map((d, l) => /* @__PURE__ */ a.jsxs("li", { children: [
|
|
8766
|
-
/* @__PURE__ */ a.jsx(
|
|
8769
|
+
/* @__PURE__ */ a.jsx(nr, { member: d, gtmContext: s, gtmType: i }),
|
|
8767
8770
|
d.isAdmin && /* @__PURE__ */ a.jsx(ht, { children: c.formatMessage({ id: "membersList_admin" }) })
|
|
8768
8771
|
] }, l)) }),
|
|
8769
8772
|
n && /* @__PURE__ */ a.jsx(
|
|
@@ -8777,7 +8780,7 @@ const fu = ({
|
|
|
8777
8780
|
)
|
|
8778
8781
|
] });
|
|
8779
8782
|
};
|
|
8780
|
-
const
|
|
8783
|
+
const fu = ({
|
|
8781
8784
|
element: t = "p",
|
|
8782
8785
|
data: {
|
|
8783
8786
|
timeLeftToFinish: e,
|
|
@@ -8806,14 +8809,14 @@ const mu = ({
|
|
|
8806
8809
|
}
|
|
8807
8810
|
) }),
|
|
8808
8811
|
l < 100 && s && /* @__PURE__ */ a.jsx(
|
|
8809
|
-
|
|
8812
|
+
er,
|
|
8810
8813
|
{
|
|
8811
8814
|
time: e,
|
|
8812
8815
|
appendedText: d.formatMessage({ id: "courseProgression_timeLeft" })
|
|
8813
8816
|
}
|
|
8814
8817
|
),
|
|
8815
8818
|
/* @__PURE__ */ a.jsx(
|
|
8816
|
-
|
|
8819
|
+
_a,
|
|
8817
8820
|
{
|
|
8818
8821
|
progress: l,
|
|
8819
8822
|
styling: {
|
|
@@ -8825,7 +8828,7 @@ const mu = ({
|
|
|
8825
8828
|
] })
|
|
8826
8829
|
});
|
|
8827
8830
|
};
|
|
8828
|
-
const
|
|
8831
|
+
const xc = ({
|
|
8829
8832
|
element: t = "span",
|
|
8830
8833
|
sectionId: e,
|
|
8831
8834
|
subsectionId: n,
|
|
@@ -8836,7 +8839,7 @@ const wc = ({
|
|
|
8836
8839
|
"data-number": `${e}.${n}`,
|
|
8837
8840
|
children: r
|
|
8838
8841
|
});
|
|
8839
|
-
const
|
|
8842
|
+
const wc = ({
|
|
8840
8843
|
size: t = "default",
|
|
8841
8844
|
completionTime: e,
|
|
8842
8845
|
icon: n,
|
|
@@ -8844,16 +8847,16 @@ const jc = ({
|
|
|
8844
8847
|
type: s,
|
|
8845
8848
|
children: i
|
|
8846
8849
|
}) => {
|
|
8847
|
-
const o = H(), c =
|
|
8850
|
+
const o = H(), c = Jn(`lessonType_${s}`) ? o.formatMessage({ id: `lessonType_${s}` }) : Zs(s || "");
|
|
8848
8851
|
return /* @__PURE__ */ a.jsxs("small", { className: E("content-type", { [t]: t !== "default" }), children: [
|
|
8849
8852
|
/* @__PURE__ */ a.jsx("span", { className: E("type", n), children: c }),
|
|
8850
8853
|
" ",
|
|
8851
|
-
e > 0 && !r && /* @__PURE__ */ a.jsx(
|
|
8854
|
+
e > 0 && !r && /* @__PURE__ */ a.jsx(er, { time: e }),
|
|
8852
8855
|
" ",
|
|
8853
8856
|
i ? /* @__PURE__ */ a.jsx("span", { className: "additional", children: i }) : null
|
|
8854
8857
|
] });
|
|
8855
8858
|
};
|
|
8856
|
-
const
|
|
8859
|
+
const mu = ({
|
|
8857
8860
|
course: {
|
|
8858
8861
|
articles: t,
|
|
8859
8862
|
canAccessCourse: e,
|
|
@@ -8870,7 +8873,7 @@ const pu = ({
|
|
|
8870
8873
|
}) => {
|
|
8871
8874
|
const f = H(), m = "courseStructure_", p = l.toLowerCase().includes("course conclusion");
|
|
8872
8875
|
return /* @__PURE__ */ a.jsxs(
|
|
8873
|
-
|
|
8876
|
+
Xn,
|
|
8874
8877
|
{
|
|
8875
8878
|
className: "course-structure",
|
|
8876
8879
|
label: /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
|
|
@@ -8881,7 +8884,7 @@ const pu = ({
|
|
|
8881
8884
|
),
|
|
8882
8885
|
" ",
|
|
8883
8886
|
!r && o >= 0 && /* @__PURE__ */ a.jsx("span", { className: "time", children: s && d === 0 ? f.formatMessage({ id: `${m}time_completed` }) : /* @__PURE__ */ a.jsx(
|
|
8884
|
-
|
|
8887
|
+
er,
|
|
8885
8888
|
{
|
|
8886
8889
|
time: o,
|
|
8887
8890
|
appendedText: s ? f.formatMessage({ id: `${m}time_left` }) : ""
|
|
@@ -8925,11 +8928,11 @@ const pu = ({
|
|
|
8925
8928
|
href: B ? `/microcourses/en/${c}/${b}` : void 0,
|
|
8926
8929
|
fallbackElement: "span",
|
|
8927
8930
|
className: "inner",
|
|
8928
|
-
gtmContext: `MicrocourseOutline${
|
|
8931
|
+
gtmContext: `MicrocourseOutline${zs(R)}`,
|
|
8929
8932
|
gtmType: "article-click",
|
|
8930
8933
|
children: /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
|
|
8931
8934
|
/* @__PURE__ */ a.jsx(
|
|
8932
|
-
|
|
8935
|
+
xc,
|
|
8933
8936
|
{
|
|
8934
8937
|
sectionId: i,
|
|
8935
8938
|
subsectionId: F,
|
|
@@ -8939,7 +8942,7 @@ const pu = ({
|
|
|
8939
8942
|
),
|
|
8940
8943
|
" ",
|
|
8941
8944
|
/* @__PURE__ */ a.jsx(
|
|
8942
|
-
|
|
8945
|
+
wc,
|
|
8943
8946
|
{
|
|
8944
8947
|
completionTime: v,
|
|
8945
8948
|
icon: y,
|
|
@@ -8960,7 +8963,7 @@ const pu = ({
|
|
|
8960
8963
|
}
|
|
8961
8964
|
);
|
|
8962
8965
|
};
|
|
8963
|
-
const
|
|
8966
|
+
const pu = ({
|
|
8964
8967
|
isComplete: t = !1,
|
|
8965
8968
|
onClick: e,
|
|
8966
8969
|
...n
|
|
@@ -8986,7 +8989,7 @@ const hu = ({
|
|
|
8986
8989
|
);
|
|
8987
8990
|
};
|
|
8988
8991
|
let Dt = null;
|
|
8989
|
-
const we = "discussion_form_",
|
|
8992
|
+
const we = "discussion_form_", sr = ({
|
|
8990
8993
|
content: t = { type: "response", slugs: {} },
|
|
8991
8994
|
userHasPermissions: e = !0,
|
|
8992
8995
|
meta: n = {
|
|
@@ -9086,7 +9089,7 @@ const we = "discussion_form_", ir = ({
|
|
|
9086
9089
|
default:
|
|
9087
9090
|
break;
|
|
9088
9091
|
}
|
|
9089
|
-
await
|
|
9092
|
+
await Ks(1e3), d.callback && await d.callback(W), Dt = setTimeout(() => {
|
|
9090
9093
|
p(""), y("submitted");
|
|
9091
9094
|
const Z = new Event("discussionFormSubmitted");
|
|
9092
9095
|
document.dispatchEvent(Z), F();
|
|
@@ -9110,7 +9113,7 @@ const we = "discussion_form_", ir = ({
|
|
|
9110
9113
|
Dt = setTimeout(() => {
|
|
9111
9114
|
v(!1), y(!1);
|
|
9112
9115
|
}, 5e3);
|
|
9113
|
-
}, R = !m || !
|
|
9116
|
+
}, R = !m || !ni(m), Q = _ === "submitting", B = [];
|
|
9114
9117
|
return (n.isEditing && !Q || c.cancel) && B.push({
|
|
9115
9118
|
variant: "secondary",
|
|
9116
9119
|
size: { mobile: "small", 600: "medium" },
|
|
@@ -9151,7 +9154,7 @@ const we = "discussion_form_", ir = ({
|
|
|
9151
9154
|
children: [
|
|
9152
9155
|
(n == null ? void 0 : n.showTitle) && !n.isEditing && ["question"].includes(t.type) && /* @__PURE__ */ a.jsx("h2", { children: Ne(u.formatMessage, `${we}title`, t.type, "action") }),
|
|
9153
9156
|
/* @__PURE__ */ a.jsx(
|
|
9154
|
-
|
|
9157
|
+
nr,
|
|
9155
9158
|
{
|
|
9156
9159
|
member: f || "community",
|
|
9157
9160
|
gtmContext: l,
|
|
@@ -9160,7 +9163,7 @@ const we = "discussion_form_", ir = ({
|
|
|
9160
9163
|
),
|
|
9161
9164
|
/* @__PURE__ */ a.jsx(be, { element: "label", showOnFocus: !1, htmlFor: `${w}-input`, children: Ne(u.formatMessage, `${we}label`, t.type, "action") }),
|
|
9162
9165
|
/* @__PURE__ */ a.jsx(
|
|
9163
|
-
|
|
9166
|
+
Ms,
|
|
9164
9167
|
{
|
|
9165
9168
|
ref: r,
|
|
9166
9169
|
id: `${w}-input`,
|
|
@@ -9208,7 +9211,7 @@ const we = "discussion_form_", ir = ({
|
|
|
9208
9211
|
]
|
|
9209
9212
|
}
|
|
9210
9213
|
);
|
|
9211
|
-
},
|
|
9214
|
+
}, Va = ({
|
|
9212
9215
|
form: t,
|
|
9213
9216
|
membershipRequiredToPost: { isMember: e, required: n, join: r, leave: s, notMemberStateText: i }
|
|
9214
9217
|
}) => {
|
|
@@ -9219,13 +9222,13 @@ const we = "discussion_form_", ir = ({
|
|
|
9219
9222
|
text: i,
|
|
9220
9223
|
button: {
|
|
9221
9224
|
breakpoints: { mobile: !0, 901: !1 },
|
|
9222
|
-
component: /* @__PURE__ */ a.jsx(
|
|
9225
|
+
component: /* @__PURE__ */ a.jsx(Wa, { isShort: !0, functions: { join: r, leave: s } })
|
|
9223
9226
|
}
|
|
9224
9227
|
}
|
|
9225
9228
|
);
|
|
9226
9229
|
const { content: o, functions: c, meta: d, ...l } = t;
|
|
9227
9230
|
return /* @__PURE__ */ a.jsx(
|
|
9228
|
-
|
|
9231
|
+
sr,
|
|
9229
9232
|
{
|
|
9230
9233
|
content: { type: (o == null ? void 0 : o.type) || "reply", slugs: (o == null ? void 0 : o.slugs) || {} },
|
|
9231
9234
|
functions: { ...c, create: (c == null ? void 0 : c.create) || (() => {
|
|
@@ -9234,14 +9237,14 @@ const we = "discussion_form_", ir = ({
|
|
|
9234
9237
|
...l
|
|
9235
9238
|
}
|
|
9236
9239
|
);
|
|
9237
|
-
},
|
|
9240
|
+
}, jc = {
|
|
9238
9241
|
showForm: !1
|
|
9239
|
-
},
|
|
9242
|
+
}, ir = nn(jc), kc = ({ children: t }) => {
|
|
9240
9243
|
const [e, n] = X({
|
|
9241
9244
|
showForm: !1
|
|
9242
9245
|
});
|
|
9243
|
-
return /* @__PURE__ */ a.jsx(
|
|
9244
|
-
},
|
|
9246
|
+
return /* @__PURE__ */ a.jsx(ir.Provider, { value: { ...e, updateConversation: n }, children: t });
|
|
9247
|
+
}, Tc = ({
|
|
9245
9248
|
question: t,
|
|
9246
9249
|
answer: e,
|
|
9247
9250
|
reply: n
|
|
@@ -9249,11 +9252,11 @@ const we = "discussion_form_", ir = ({
|
|
|
9249
9252
|
...t && { questionSlug: t },
|
|
9250
9253
|
...e && { answerSlug: e },
|
|
9251
9254
|
...n && { replySlug: n }
|
|
9252
|
-
}),
|
|
9255
|
+
}), Ec = (t, e = 10) => !t || t.length === 0 ? [] : t.slice(0, e);
|
|
9253
9256
|
let bt = !1;
|
|
9254
|
-
const
|
|
9257
|
+
const An = () => {
|
|
9255
9258
|
bt !== !1 && (clearTimeout(bt), bt = !1);
|
|
9256
|
-
},
|
|
9259
|
+
}, Dn = 5, Sc = ({
|
|
9257
9260
|
element: t = "div",
|
|
9258
9261
|
likes: e = 0,
|
|
9259
9262
|
peopleWhoLiked: n = !1,
|
|
@@ -9270,22 +9273,22 @@ const Dn = () => {
|
|
|
9270
9273
|
p(s);
|
|
9271
9274
|
}, [s]);
|
|
9272
9275
|
const [u, f] = X(e), [m, p] = X(s), [g, v] = X(!1), [_, y] = X(!1), x = wt(
|
|
9273
|
-
() =>
|
|
9276
|
+
() => Ec(n, Dn),
|
|
9274
9277
|
[n]
|
|
9275
9278
|
), S = (b) => {
|
|
9276
9279
|
if (b.preventDefault(), b.stopPropagation(), y(!1), bt)
|
|
9277
|
-
return
|
|
9278
|
-
if (
|
|
9280
|
+
return An(), !1;
|
|
9281
|
+
if (An(), g || !o)
|
|
9279
9282
|
return !1;
|
|
9280
9283
|
bt = setTimeout(w, 350);
|
|
9281
9284
|
}, w = async () => {
|
|
9282
|
-
if (
|
|
9285
|
+
if (An(), g || !o)
|
|
9283
9286
|
return !1;
|
|
9284
9287
|
let b = m ? u - 1 : u + 1;
|
|
9285
9288
|
b < 0 && (b = 0), v(!0), f(b), p(!m);
|
|
9286
9289
|
try {
|
|
9287
9290
|
if (i && i.slugs) {
|
|
9288
|
-
const F =
|
|
9291
|
+
const F = Tc(i.slugs);
|
|
9289
9292
|
m ? await d(F) : await c({
|
|
9290
9293
|
...F,
|
|
9291
9294
|
payload: { contentPath: window.location.pathname }
|
|
@@ -9353,7 +9356,7 @@ const Dn = () => {
|
|
|
9353
9356
|
)
|
|
9354
9357
|
}
|
|
9355
9358
|
),
|
|
9356
|
-
n && /* @__PURE__ */ a.jsx(
|
|
9359
|
+
n && /* @__PURE__ */ a.jsx(_i, { isOpen: _, isLoading: n.length === 0, children: n.length && /* @__PURE__ */ a.jsxs("ul", { children: [
|
|
9357
9360
|
x.map((b) => typeof b == "string" || !b.name ? null : /* @__PURE__ */ a.jsx("li", { children: /* @__PURE__ */ a.jsx(
|
|
9358
9361
|
at,
|
|
9359
9362
|
{
|
|
@@ -9364,18 +9367,18 @@ const Dn = () => {
|
|
|
9364
9367
|
children: b.name
|
|
9365
9368
|
}
|
|
9366
9369
|
) }, b.id || window.btoa(b.name))),
|
|
9367
|
-
e >
|
|
9370
|
+
e > Dn && /* @__PURE__ */ a.jsx("li", { children: l.formatMessage(
|
|
9368
9371
|
{ id: "discussion_likes_more" },
|
|
9369
|
-
{ number: e -
|
|
9372
|
+
{ number: e - Dn }
|
|
9370
9373
|
) })
|
|
9371
9374
|
] }) })
|
|
9372
9375
|
] })
|
|
9373
9376
|
});
|
|
9374
|
-
},
|
|
9377
|
+
}, Jr = (t) => {
|
|
9375
9378
|
const e = {};
|
|
9376
9379
|
return Object.keys(t).forEach((n) => n.includes("Id") ? e[n] = t[n] : e[`${n}Slug`] = t[n]), e;
|
|
9377
9380
|
}, on = (t, e) => t && !e;
|
|
9378
|
-
const Me = "discussion_",
|
|
9381
|
+
const Me = "discussion_", Cc = 280, cn = ({
|
|
9379
9382
|
element: t = "div",
|
|
9380
9383
|
content: e,
|
|
9381
9384
|
userHasPermissions: n = !0,
|
|
@@ -9407,7 +9410,7 @@ const Me = "discussion_", Nc = 280, cn = ({
|
|
|
9407
9410
|
children: v,
|
|
9408
9411
|
isTruncated: _ = !1
|
|
9409
9412
|
}) => {
|
|
9410
|
-
const y = H(), x = Ee(De), S = Ee(
|
|
9413
|
+
const y = H(), x = Ee(De), S = Ee(ir), { author: w, canLike: b, createdAt: F, id: R, likes: Q = 0, userLiked: B, comments: N = 0 } = e, C = x && x.id && typeof w != "string" && w.id && w.id === x.id || !1, k = typeof b == "boolean" ? b : n ? !C : !1, j = C && (!e.createdAt || Ys(e.createdAt, 10, "seconds")), $ = pe(null), [A, W] = X({
|
|
9411
9414
|
body: e && e.body || "",
|
|
9412
9415
|
isEditing: !1,
|
|
9413
9416
|
didEdit: e && e.isEdited || !1
|
|
@@ -9440,12 +9443,12 @@ const Me = "discussion_", Nc = 280, cn = ({
|
|
|
9440
9443
|
};
|
|
9441
9444
|
if (r || !e || e.type === "answer" && (!e.slugs || !e.slugs.question))
|
|
9442
9445
|
return /* @__PURE__ */ a.jsx(Se, { className: "discussion-card discussion-post" });
|
|
9443
|
-
const te = _ ? et(A.body,
|
|
9446
|
+
const te = _ ? et(A.body, Cc) : A.body, G = async (O) => {
|
|
9444
9447
|
O || (O = ""), q("");
|
|
9445
9448
|
try {
|
|
9446
|
-
if (!
|
|
9449
|
+
if (!Rs(O, A.body)) {
|
|
9447
9450
|
const oe = e.type === "question" ? { title: O } : { body: O };
|
|
9448
|
-
await d(
|
|
9451
|
+
await d(Jr(e.slugs), oe);
|
|
9449
9452
|
}
|
|
9450
9453
|
W({ body: O, isEditing: !1, didEdit: !0 });
|
|
9451
9454
|
} catch {
|
|
@@ -9460,7 +9463,7 @@ const Me = "discussion_", Nc = 280, cn = ({
|
|
|
9460
9463
|
}, ee = async () => {
|
|
9461
9464
|
z(!1);
|
|
9462
9465
|
try {
|
|
9463
|
-
await c(
|
|
9466
|
+
await c(Jr(e.slugs));
|
|
9464
9467
|
} catch {
|
|
9465
9468
|
q("delete-error");
|
|
9466
9469
|
}
|
|
@@ -9503,7 +9506,7 @@ const Me = "discussion_", Nc = 280, cn = ({
|
|
|
9503
9506
|
className: "gtm-trackable",
|
|
9504
9507
|
"data-gtm-event-context": g,
|
|
9505
9508
|
"data-gtm-event-type": `delete-${e.type}-click`,
|
|
9506
|
-
...
|
|
9509
|
+
...Xo(`delete-${e.slug}-modal`, Z)
|
|
9507
9510
|
}
|
|
9508
9511
|
), Y.createElement(t, {
|
|
9509
9512
|
className: E("discussion-post", p, {
|
|
@@ -9525,7 +9528,7 @@ const Me = "discussion_", Nc = 280, cn = ({
|
|
|
9525
9528
|
},
|
|
9526
9529
|
children: [
|
|
9527
9530
|
!A.isEditing && /* @__PURE__ */ a.jsx(
|
|
9528
|
-
|
|
9531
|
+
nr,
|
|
9529
9532
|
{
|
|
9530
9533
|
member: w,
|
|
9531
9534
|
additionalContent: { createdAt: F, didEdit: A.didEdit },
|
|
@@ -9535,7 +9538,7 @@ const Me = "discussion_", Nc = 280, cn = ({
|
|
|
9535
9538
|
}
|
|
9536
9539
|
),
|
|
9537
9540
|
A.isEditing ? /* @__PURE__ */ a.jsx(
|
|
9538
|
-
|
|
9541
|
+
sr,
|
|
9539
9542
|
{
|
|
9540
9543
|
content: { type: e.type, slugs: e.slugs },
|
|
9541
9544
|
userHasPermissions: n,
|
|
@@ -9571,7 +9574,7 @@ const Me = "discussion_", Nc = 280, cn = ({
|
|
|
9571
9574
|
className: "gtm-trackable",
|
|
9572
9575
|
"data-gtm-event-context": g,
|
|
9573
9576
|
"data-gtm-event-type": "title-click",
|
|
9574
|
-
children: /* @__PURE__ */ a.jsx(xt, { options: { overrides: { a:
|
|
9577
|
+
children: /* @__PURE__ */ a.jsx(xt, { options: { overrides: { a: gi } }, children: te })
|
|
9575
9578
|
}
|
|
9576
9579
|
) : /* @__PURE__ */ a.jsx(
|
|
9577
9580
|
xt,
|
|
@@ -9592,7 +9595,7 @@ const Me = "discussion_", Nc = 280, cn = ({
|
|
|
9592
9595
|
"data-testid": `${e.type}-actions`,
|
|
9593
9596
|
children: [
|
|
9594
9597
|
!i.likes && /* @__PURE__ */ a.jsx(
|
|
9595
|
-
|
|
9598
|
+
Sc,
|
|
9596
9599
|
{
|
|
9597
9600
|
element: "li",
|
|
9598
9601
|
likes: Q,
|
|
@@ -9651,7 +9654,7 @@ const Me = "discussion_", Nc = 280, cn = ({
|
|
|
9651
9654
|
}
|
|
9652
9655
|
) }),
|
|
9653
9656
|
/* @__PURE__ */ a.jsx(
|
|
9654
|
-
|
|
9657
|
+
cc,
|
|
9655
9658
|
{
|
|
9656
9659
|
element: "li",
|
|
9657
9660
|
id: `more-${e.slug}`,
|
|
@@ -9717,17 +9720,17 @@ const Me = "discussion_", Nc = 280, cn = ({
|
|
|
9717
9720
|
] })
|
|
9718
9721
|
});
|
|
9719
9722
|
};
|
|
9720
|
-
const
|
|
9723
|
+
const In = "discussion_responses_", Nc = ({ type: t = "answer", responses: e = 0 }) => {
|
|
9721
9724
|
const n = H();
|
|
9722
9725
|
return e = parseInt(e), /* @__PURE__ */ a.jsxs("div", { className: "responses-heading", children: [
|
|
9723
9726
|
/* @__PURE__ */ a.jsx("h4", { children: n.formatMessage(
|
|
9724
|
-
{ id: `${
|
|
9725
|
-
{ action: n.formatMessage({ id: `${
|
|
9727
|
+
{ id: `${In}title` },
|
|
9728
|
+
{ action: n.formatMessage({ id: `${In}${t}` }), count: e }
|
|
9726
9729
|
) }),
|
|
9727
|
-
e === 0 && /* @__PURE__ */ a.jsx("p", { children: Ne(n.formatMessage, `${
|
|
9730
|
+
e === 0 && /* @__PURE__ */ a.jsx("p", { children: Ne(n.formatMessage, `${In}empty`, t, t) })
|
|
9728
9731
|
] });
|
|
9729
9732
|
};
|
|
9730
|
-
const
|
|
9733
|
+
const $c = ({
|
|
9731
9734
|
loadMore: { isLoading: t, hasNextPage: e, loadNextPage: n } = {
|
|
9732
9735
|
isLoading: !1,
|
|
9733
9736
|
hasNextPage: !1,
|
|
@@ -9737,7 +9740,7 @@ const Pc = ({
|
|
|
9737
9740
|
form: r,
|
|
9738
9741
|
children: s
|
|
9739
9742
|
}) => {
|
|
9740
|
-
const i = H(), o = Ee(
|
|
9743
|
+
const i = H(), o = Ee(ir), c = Bt(s, {
|
|
9741
9744
|
element: "li"
|
|
9742
9745
|
});
|
|
9743
9746
|
return /* @__PURE__ */ a.jsxs("div", { className: "thread-wrapper", children: [
|
|
@@ -9756,16 +9759,16 @@ const Pc = ({
|
|
|
9756
9759
|
}
|
|
9757
9760
|
}
|
|
9758
9761
|
),
|
|
9759
|
-
r && o.showForm && /* @__PURE__ */ a.jsx(
|
|
9762
|
+
r && o.showForm && /* @__PURE__ */ a.jsx(sr, { ...r })
|
|
9760
9763
|
] });
|
|
9761
|
-
},
|
|
9762
|
-
function
|
|
9764
|
+
}, Pc = "post", Mc = "reply", Ya = "00000000-0000-0000-0000-000000000000";
|
|
9765
|
+
function or({ queryClient: t, queryKey: e }) {
|
|
9763
9766
|
function n(r, s, i) {
|
|
9764
9767
|
t.setQueryData(e, i);
|
|
9765
9768
|
}
|
|
9766
9769
|
return n;
|
|
9767
9770
|
}
|
|
9768
|
-
function
|
|
9771
|
+
function cr({ queryClient: t, queryKey: e }) {
|
|
9769
9772
|
async function n(r) {
|
|
9770
9773
|
await t.cancelQueries({ queryKey: e });
|
|
9771
9774
|
const s = t.getQueryData(e);
|
|
@@ -9773,7 +9776,7 @@ function lr({ queryClient: t, queryKey: e }) {
|
|
|
9773
9776
|
}
|
|
9774
9777
|
return n;
|
|
9775
9778
|
}
|
|
9776
|
-
function
|
|
9779
|
+
function Rc() {
|
|
9777
9780
|
return {
|
|
9778
9781
|
latest_reactions: {
|
|
9779
9782
|
like: [],
|
|
@@ -9789,7 +9792,7 @@ function Fc() {
|
|
|
9789
9792
|
}
|
|
9790
9793
|
};
|
|
9791
9794
|
}
|
|
9792
|
-
function
|
|
9795
|
+
function Fc() {
|
|
9793
9796
|
return {
|
|
9794
9797
|
latest_children: {
|
|
9795
9798
|
like: [],
|
|
@@ -9805,7 +9808,7 @@ function Oc() {
|
|
|
9805
9808
|
}
|
|
9806
9809
|
};
|
|
9807
9810
|
}
|
|
9808
|
-
function
|
|
9811
|
+
function Ka(t) {
|
|
9809
9812
|
const { id: e = "", name: n = "", organization: r = "", jobTitle: s = "", image: i = {} } = t, { thumbnail: o = "" } = i;
|
|
9810
9813
|
return {
|
|
9811
9814
|
id: e,
|
|
@@ -9817,19 +9820,19 @@ function Ga(t) {
|
|
|
9817
9820
|
}
|
|
9818
9821
|
};
|
|
9819
9822
|
}
|
|
9820
|
-
function
|
|
9823
|
+
function Oc({ content: t }) {
|
|
9821
9824
|
return {
|
|
9822
9825
|
content: t,
|
|
9823
|
-
id:
|
|
9826
|
+
id: Ya,
|
|
9824
9827
|
time: (/* @__PURE__ */ new Date()).toISOString(),
|
|
9825
|
-
verb:
|
|
9828
|
+
verb: Pc
|
|
9826
9829
|
};
|
|
9827
9830
|
}
|
|
9828
|
-
function
|
|
9831
|
+
function Xr({ activity: t, user: e }) {
|
|
9829
9832
|
return {
|
|
9830
9833
|
...t,
|
|
9831
|
-
actor:
|
|
9832
|
-
...
|
|
9834
|
+
actor: Ka(e),
|
|
9835
|
+
...Rc()
|
|
9833
9836
|
};
|
|
9834
9837
|
}
|
|
9835
9838
|
function Xt({ activity: t, reaction: e }) {
|
|
@@ -9845,7 +9848,7 @@ function Xt({ activity: t, reaction: e }) {
|
|
|
9845
9848
|
like: (n = t.reaction_counts) != null && n.like ? t.reaction_counts.like + 1 : 1
|
|
9846
9849
|
};
|
|
9847
9850
|
}
|
|
9848
|
-
function
|
|
9851
|
+
function Ga({ activity: t, user: e }) {
|
|
9849
9852
|
var n, r, s;
|
|
9850
9853
|
t.reaction_counts = {
|
|
9851
9854
|
...t.reaction_counts || {},
|
|
@@ -9858,27 +9861,27 @@ function Qa({ activity: t, user: e }) {
|
|
|
9858
9861
|
like: (((s = t.own_reactions) == null ? void 0 : s.like) || []).filter(({ user_id: i }) => i !== e.id)
|
|
9859
9862
|
});
|
|
9860
9863
|
}
|
|
9861
|
-
function
|
|
9864
|
+
function Ac({ activityId: t, replyId: e, content: n }) {
|
|
9862
9865
|
return {
|
|
9863
9866
|
activity_id: t,
|
|
9864
9867
|
data: {
|
|
9865
9868
|
content: n
|
|
9866
9869
|
},
|
|
9867
|
-
id:
|
|
9868
|
-
kind:
|
|
9870
|
+
id: Ya,
|
|
9871
|
+
kind: Mc,
|
|
9869
9872
|
parent: e || ""
|
|
9870
9873
|
};
|
|
9871
9874
|
}
|
|
9872
|
-
function
|
|
9873
|
-
const n =
|
|
9875
|
+
function ea({ reply: t, user: e }) {
|
|
9876
|
+
const n = Ka(e);
|
|
9874
9877
|
return {
|
|
9875
9878
|
...t,
|
|
9876
9879
|
user_id: n.id,
|
|
9877
9880
|
user: n,
|
|
9878
|
-
...
|
|
9881
|
+
...Fc()
|
|
9879
9882
|
};
|
|
9880
9883
|
}
|
|
9881
|
-
function
|
|
9884
|
+
function ta({ reply: t, reaction: e }) {
|
|
9882
9885
|
var n, r, s;
|
|
9883
9886
|
e ? (t.latest_children = {
|
|
9884
9887
|
...t.latest_children || {},
|
|
@@ -9891,7 +9894,7 @@ function na({ reply: t, reaction: e }) {
|
|
|
9891
9894
|
like: (n = t.children_counts) != null && n.like ? t.children_counts.like + 1 : 1
|
|
9892
9895
|
};
|
|
9893
9896
|
}
|
|
9894
|
-
function
|
|
9897
|
+
function Dc({ reply: t, user: e }) {
|
|
9895
9898
|
var n, r, s;
|
|
9896
9899
|
t.children_counts = {
|
|
9897
9900
|
...t.children_counts || {},
|
|
@@ -9904,14 +9907,14 @@ function Ic({ reply: t, user: e }) {
|
|
|
9904
9907
|
like: (((s = t.own_children) == null ? void 0 : s.like) || []).filter(({ user_id: i }) => i !== e.id)
|
|
9905
9908
|
});
|
|
9906
9909
|
}
|
|
9907
|
-
const
|
|
9910
|
+
const Qa = (t) => {
|
|
9908
9911
|
const e = new CustomEvent("discussionPostAdded", {
|
|
9909
9912
|
detail: t
|
|
9910
9913
|
});
|
|
9911
9914
|
document.dispatchEvent(e);
|
|
9912
9915
|
};
|
|
9913
|
-
let
|
|
9914
|
-
const
|
|
9916
|
+
let na, Ln = 0;
|
|
9917
|
+
const Ja = () => {
|
|
9915
9918
|
ae(() => (document.addEventListener("discussionPostAdded", t), () => {
|
|
9916
9919
|
document.removeEventListener(
|
|
9917
9920
|
"discussionPostAdded",
|
|
@@ -9922,13 +9925,13 @@ const Xa = () => {
|
|
|
9922
9925
|
const n = e.detail;
|
|
9923
9926
|
if (!n)
|
|
9924
9927
|
return;
|
|
9925
|
-
clearTimeout(
|
|
9928
|
+
clearTimeout(na);
|
|
9926
9929
|
const r = document.getElementById(n);
|
|
9927
9930
|
if (r) {
|
|
9928
|
-
r.scrollIntoView({ behavior: "smooth", block: "start" }),
|
|
9931
|
+
r.scrollIntoView({ behavior: "smooth", block: "start" }), Ln = 0;
|
|
9929
9932
|
return;
|
|
9930
9933
|
}
|
|
9931
|
-
|
|
9934
|
+
Ln++, !(Ln > 10) && (na = setTimeout(() => {
|
|
9932
9935
|
t(e);
|
|
9933
9936
|
}, 50));
|
|
9934
9937
|
};
|
|
@@ -9950,7 +9953,7 @@ const Xa = () => {
|
|
|
9950
9953
|
thumbnail: "https://some-user-thumbnail.com/avatar2.png"
|
|
9951
9954
|
},
|
|
9952
9955
|
isLoading: !1
|
|
9953
|
-
}),
|
|
9956
|
+
}), Xa = Object.freeze({
|
|
9954
9957
|
actor: `SU:${nt.id}`,
|
|
9955
9958
|
content: "some content 1",
|
|
9956
9959
|
duration: "5.53ms",
|
|
@@ -9960,7 +9963,7 @@ const Xa = () => {
|
|
|
9960
9963
|
object: "comment",
|
|
9961
9964
|
time: "2023-11-24T17:52:36.162000",
|
|
9962
9965
|
verb: "post"
|
|
9963
|
-
}),
|
|
9966
|
+
}), Ic = Object.freeze({
|
|
9964
9967
|
actor: `SU:${qe.id}`,
|
|
9965
9968
|
content: "some content 2",
|
|
9966
9969
|
duration: "5.53ms",
|
|
@@ -9970,7 +9973,7 @@ const Xa = () => {
|
|
|
9970
9973
|
object: "comment",
|
|
9971
9974
|
time: "2023-11-24T17:54:36.162000",
|
|
9972
9975
|
verb: "post"
|
|
9973
|
-
}),
|
|
9976
|
+
}), Lc = Object.freeze({
|
|
9974
9977
|
actor: `SU:${nt.id}`,
|
|
9975
9978
|
content: "some content 3",
|
|
9976
9979
|
duration: "5.53ms",
|
|
@@ -9980,7 +9983,7 @@ const Xa = () => {
|
|
|
9980
9983
|
object: "comment",
|
|
9981
9984
|
time: "2023-11-24T17:56:36.162000",
|
|
9982
9985
|
verb: "post"
|
|
9983
|
-
}),
|
|
9986
|
+
}), Bc = Object.freeze({
|
|
9984
9987
|
actor: `SU:${qe.id}`,
|
|
9985
9988
|
content: "some content 4",
|
|
9986
9989
|
duration: "5.53ms",
|
|
@@ -9993,7 +9996,7 @@ const Xa = () => {
|
|
|
9993
9996
|
});
|
|
9994
9997
|
Object.freeze({
|
|
9995
9998
|
id: "some-reaction-id-1",
|
|
9996
|
-
activity_id:
|
|
9999
|
+
activity_id: Xa.id,
|
|
9997
10000
|
kind: "like",
|
|
9998
10001
|
created_at: "2023-11-24T17:58:36.162000",
|
|
9999
10002
|
data: {},
|
|
@@ -10023,7 +10026,7 @@ Object.freeze({
|
|
|
10023
10026
|
updated_at: "2023-08-31T07:11:38.677184Z"
|
|
10024
10027
|
},
|
|
10025
10028
|
kind: "reply",
|
|
10026
|
-
activity_id:
|
|
10029
|
+
activity_id: Xa.id,
|
|
10027
10030
|
data: {
|
|
10028
10031
|
content: "Some content 1..."
|
|
10029
10032
|
},
|
|
@@ -10043,7 +10046,7 @@ Object.freeze({
|
|
|
10043
10046
|
updated_at: "2023-08-31T07:11:38.677184Z"
|
|
10044
10047
|
},
|
|
10045
10048
|
kind: "reply",
|
|
10046
|
-
activity_id:
|
|
10049
|
+
activity_id: Ic.id,
|
|
10047
10050
|
data: {
|
|
10048
10051
|
content: "Some content 2..."
|
|
10049
10052
|
},
|
|
@@ -10063,7 +10066,7 @@ Object.freeze({
|
|
|
10063
10066
|
updated_at: "2023-08-31T07:11:38.677184Z"
|
|
10064
10067
|
},
|
|
10065
10068
|
kind: "reply",
|
|
10066
|
-
activity_id:
|
|
10069
|
+
activity_id: Lc.id,
|
|
10067
10070
|
data: {
|
|
10068
10071
|
content: "Some content 3..."
|
|
10069
10072
|
},
|
|
@@ -10083,7 +10086,7 @@ Object.freeze({
|
|
|
10083
10086
|
updated_at: "2023-08-31T07:11:38.677184Z"
|
|
10084
10087
|
},
|
|
10085
10088
|
kind: "reply",
|
|
10086
|
-
activity_id:
|
|
10089
|
+
activity_id: Bc.id,
|
|
10087
10090
|
data: {
|
|
10088
10091
|
content: "Some content 4..."
|
|
10089
10092
|
},
|
|
@@ -10091,7 +10094,7 @@ Object.freeze({
|
|
|
10091
10094
|
latest_children: {},
|
|
10092
10095
|
children_counts: {}
|
|
10093
10096
|
});
|
|
10094
|
-
function
|
|
10097
|
+
function qc({
|
|
10095
10098
|
mutationFn: t,
|
|
10096
10099
|
mutationHandlers: { mutate: e, error: n },
|
|
10097
10100
|
queryClient: r,
|
|
@@ -10101,20 +10104,20 @@ function Uc({
|
|
|
10101
10104
|
const { mutate: o } = je({
|
|
10102
10105
|
mutationFn: t,
|
|
10103
10106
|
onMutate: (c) => e((d) => {
|
|
10104
|
-
const l =
|
|
10105
|
-
return
|
|
10107
|
+
const l = Xr({ activity: Oc(c), user: i });
|
|
10108
|
+
return ra(l, d);
|
|
10106
10109
|
}),
|
|
10107
10110
|
onError: n,
|
|
10108
10111
|
onSuccess: (c, d, l) => {
|
|
10109
|
-
const u =
|
|
10110
|
-
r.setQueryData(s,
|
|
10111
|
-
|
|
10112
|
+
const u = Xr({ activity: c, user: i });
|
|
10113
|
+
r.setQueryData(s, ra(u, l, !0)), setTimeout(() => {
|
|
10114
|
+
Qa(u.id);
|
|
10112
10115
|
}, 0);
|
|
10113
10116
|
}
|
|
10114
10117
|
});
|
|
10115
10118
|
return o;
|
|
10116
10119
|
}
|
|
10117
|
-
function
|
|
10120
|
+
function Uc({
|
|
10118
10121
|
mutationFn: t,
|
|
10119
10122
|
mutationHandlers: {
|
|
10120
10123
|
mutate: e,
|
|
@@ -10131,7 +10134,7 @@ function Wc({
|
|
|
10131
10134
|
});
|
|
10132
10135
|
return r;
|
|
10133
10136
|
}
|
|
10134
|
-
function
|
|
10137
|
+
function Wc({
|
|
10135
10138
|
queryFns: {
|
|
10136
10139
|
create: t,
|
|
10137
10140
|
edit: e,
|
|
@@ -10142,14 +10145,14 @@ function zc({
|
|
|
10142
10145
|
},
|
|
10143
10146
|
queryKey: o
|
|
10144
10147
|
}) {
|
|
10145
|
-
const c =
|
|
10148
|
+
const c = Gn(), d = tr(), l = { queryClient: c, queryKey: o }, u = {
|
|
10146
10149
|
mutationHandlers: {
|
|
10147
|
-
error:
|
|
10148
|
-
mutate:
|
|
10150
|
+
error: or(l),
|
|
10151
|
+
mutate: cr(l)
|
|
10149
10152
|
},
|
|
10150
10153
|
user: d,
|
|
10151
10154
|
...l
|
|
10152
|
-
}, f =
|
|
10155
|
+
}, f = qc({ ...u, mutationFn: t }), m = Uc({ ...u, mutationFn: e }), p = zc({ ...u, mutationFn: n }), g = Hc({ ...u, mutationFn: s }), v = Vc({ ...u, mutationFn: i }), { activities: _, ...y } = Zc({ queryKey: o, queryFn: r });
|
|
10153
10156
|
return {
|
|
10154
10157
|
activities: _,
|
|
10155
10158
|
mutations: {
|
|
@@ -10163,7 +10166,7 @@ function zc({
|
|
|
10163
10166
|
...y
|
|
10164
10167
|
};
|
|
10165
10168
|
}
|
|
10166
|
-
function
|
|
10169
|
+
function zc({
|
|
10167
10170
|
mutationFn: t,
|
|
10168
10171
|
mutationHandlers: {
|
|
10169
10172
|
mutate: e,
|
|
@@ -10186,28 +10189,28 @@ function Zc({
|
|
|
10186
10189
|
});
|
|
10187
10190
|
return i;
|
|
10188
10191
|
}
|
|
10189
|
-
function
|
|
10192
|
+
function Zc({ queryFn: t, queryKey: e }) {
|
|
10190
10193
|
const {
|
|
10191
10194
|
data: n,
|
|
10192
10195
|
error: r,
|
|
10193
10196
|
isLoading: s,
|
|
10194
10197
|
hasNextPage: i,
|
|
10195
10198
|
fetchNextPage: o
|
|
10196
|
-
} =
|
|
10199
|
+
} = oa({
|
|
10197
10200
|
queryKey: e,
|
|
10198
10201
|
queryFn: t,
|
|
10199
10202
|
initialPageParam: { next: null },
|
|
10200
10203
|
getNextPageParam: (c) => (c == null ? void 0 : c.next) || null
|
|
10201
10204
|
});
|
|
10202
10205
|
return {
|
|
10203
|
-
activities:
|
|
10206
|
+
activities: Kc(n),
|
|
10204
10207
|
error: r,
|
|
10205
10208
|
isLoading: s,
|
|
10206
10209
|
hasNextPage: i,
|
|
10207
10210
|
fetchNextPage: o
|
|
10208
10211
|
};
|
|
10209
10212
|
}
|
|
10210
|
-
function
|
|
10213
|
+
function Hc({
|
|
10211
10214
|
mutationFn: t,
|
|
10212
10215
|
mutationHandlers: {
|
|
10213
10216
|
mutate: e,
|
|
@@ -10216,12 +10219,12 @@ function Vc({
|
|
|
10216
10219
|
}) {
|
|
10217
10220
|
const { mutate: r } = je({
|
|
10218
10221
|
mutationFn: t,
|
|
10219
|
-
onMutate: ({ activityId: s }) => e((i) =>
|
|
10222
|
+
onMutate: ({ activityId: s }) => e((i) => Yc(s, i)),
|
|
10220
10223
|
onError: n
|
|
10221
10224
|
});
|
|
10222
10225
|
return r;
|
|
10223
10226
|
}
|
|
10224
|
-
function
|
|
10227
|
+
function Vc({
|
|
10225
10228
|
mutationFn: t,
|
|
10226
10229
|
mutationHandlers: {
|
|
10227
10230
|
mutate: e,
|
|
@@ -10233,13 +10236,13 @@ function Yc({
|
|
|
10233
10236
|
mutationFn: t,
|
|
10234
10237
|
onMutate: ({ activityId: i }) => e((o) => {
|
|
10235
10238
|
const c = en(i, o);
|
|
10236
|
-
return c &&
|
|
10239
|
+
return c && Ga({ activity: c, user: r }), o;
|
|
10237
10240
|
}),
|
|
10238
10241
|
onError: n
|
|
10239
10242
|
});
|
|
10240
10243
|
return s;
|
|
10241
10244
|
}
|
|
10242
|
-
function
|
|
10245
|
+
function ra(t, e, n = !1) {
|
|
10243
10246
|
return e ? (n ? e.pages[0].results[0] = t : e.pages[0].results = [t, ...e.pages[0].results], e) : {
|
|
10244
10247
|
pages: [{
|
|
10245
10248
|
next: "",
|
|
@@ -10256,7 +10259,7 @@ function en(t, e) {
|
|
|
10256
10259
|
return r;
|
|
10257
10260
|
}
|
|
10258
10261
|
}
|
|
10259
|
-
function
|
|
10262
|
+
function Yc(t, e) {
|
|
10260
10263
|
for (const { results: n } of e.pages) {
|
|
10261
10264
|
const r = n.findIndex(({ id: s }) => s === t);
|
|
10262
10265
|
if (r !== -1) {
|
|
@@ -10266,11 +10269,11 @@ function Kc(t, e) {
|
|
|
10266
10269
|
}
|
|
10267
10270
|
return e;
|
|
10268
10271
|
}
|
|
10269
|
-
function
|
|
10272
|
+
function Kc(t) {
|
|
10270
10273
|
var e;
|
|
10271
10274
|
return ((e = t == null ? void 0 : t.pages) == null ? void 0 : e.reduce((n, { results: r }) => [...n, ...r], [])) || [];
|
|
10272
10275
|
}
|
|
10273
|
-
const
|
|
10276
|
+
const hu = ({
|
|
10274
10277
|
basePath: t,
|
|
10275
10278
|
parentId: e,
|
|
10276
10279
|
isMember: n,
|
|
@@ -10284,16 +10287,16 @@ const gu = ({
|
|
|
10284
10287
|
isLoading: f,
|
|
10285
10288
|
mutations: { create: m, edit: p, remove: g, like: v, unlike: _ },
|
|
10286
10289
|
user: y
|
|
10287
|
-
} =
|
|
10290
|
+
} = Wc({
|
|
10288
10291
|
queryKey: [t, e, "activities"],
|
|
10289
10292
|
queryFns: r
|
|
10290
10293
|
});
|
|
10291
|
-
if (
|
|
10294
|
+
if (Ja(), d)
|
|
10292
10295
|
return /* @__PURE__ */ a.jsx(He, { variant: "error", text: d.message });
|
|
10293
10296
|
const x = (c == null ? void 0 : c.length) || 0;
|
|
10294
10297
|
return /* @__PURE__ */ a.jsxs("section", { children: [
|
|
10295
10298
|
/* @__PURE__ */ a.jsx(
|
|
10296
|
-
|
|
10299
|
+
Va,
|
|
10297
10300
|
{
|
|
10298
10301
|
form: {
|
|
10299
10302
|
content: { type: "post", slugs: {} },
|
|
@@ -10390,7 +10393,7 @@ const gu = ({
|
|
|
10390
10393
|
}
|
|
10391
10394
|
)
|
|
10392
10395
|
] });
|
|
10393
|
-
},
|
|
10396
|
+
}, gu = {
|
|
10394
10397
|
next: "id_lt=67ef0342-6f6e-4807-beea-5a9184ec140c&limit=5",
|
|
10395
10398
|
results: [
|
|
10396
10399
|
{
|
|
@@ -10942,7 +10945,7 @@ const gu = ({
|
|
|
10942
10945
|
],
|
|
10943
10946
|
duration: "6.48ms"
|
|
10944
10947
|
};
|
|
10945
|
-
function
|
|
10948
|
+
function Gc({
|
|
10946
10949
|
mutationFn: t,
|
|
10947
10950
|
mutationHandlers: { mutate: e, error: n },
|
|
10948
10951
|
queryClient: r,
|
|
@@ -10952,26 +10955,26 @@ function Qc({
|
|
|
10952
10955
|
const { mutate: o } = je({
|
|
10953
10956
|
mutationFn: t,
|
|
10954
10957
|
onMutate: (c) => e((d) => {
|
|
10955
|
-
const l =
|
|
10956
|
-
return
|
|
10958
|
+
const l = ea({ reply: Ac(c), user: i });
|
|
10959
|
+
return aa(l, d, {
|
|
10957
10960
|
replace: !1,
|
|
10958
10961
|
append: (c == null ? void 0 : c.replyId) !== void 0
|
|
10959
10962
|
});
|
|
10960
10963
|
}),
|
|
10961
10964
|
onError: n,
|
|
10962
10965
|
onSuccess: (c, d, l) => {
|
|
10963
|
-
const u =
|
|
10966
|
+
const u = ea({ reply: c, user: i });
|
|
10964
10967
|
r.setQueryData(
|
|
10965
10968
|
s,
|
|
10966
|
-
|
|
10969
|
+
aa(u, l, { replace: !0, append: (d == null ? void 0 : d.replyId) !== void 0 })
|
|
10967
10970
|
), setTimeout(() => {
|
|
10968
|
-
|
|
10971
|
+
Qa(u.id);
|
|
10969
10972
|
}, 0);
|
|
10970
10973
|
}
|
|
10971
10974
|
});
|
|
10972
10975
|
return o;
|
|
10973
10976
|
}
|
|
10974
|
-
function
|
|
10977
|
+
function Qc({
|
|
10975
10978
|
mutationFn: t,
|
|
10976
10979
|
mutationHandlers: {
|
|
10977
10980
|
mutate: e,
|
|
@@ -10988,7 +10991,7 @@ function Jc({
|
|
|
10988
10991
|
});
|
|
10989
10992
|
return r;
|
|
10990
10993
|
}
|
|
10991
|
-
function
|
|
10994
|
+
function es({
|
|
10992
10995
|
queryFns: {
|
|
10993
10996
|
create: t,
|
|
10994
10997
|
edit: e,
|
|
@@ -10999,14 +11002,14 @@ function ts({
|
|
|
10999
11002
|
},
|
|
11000
11003
|
queryKey: o
|
|
11001
11004
|
}) {
|
|
11002
|
-
const c =
|
|
11005
|
+
const c = Gn(), d = tr(), l = { queryClient: c, queryKey: o }, u = {
|
|
11003
11006
|
mutationHandlers: {
|
|
11004
|
-
error:
|
|
11005
|
-
mutate:
|
|
11007
|
+
error: or(l),
|
|
11008
|
+
mutate: cr(l)
|
|
11006
11009
|
},
|
|
11007
11010
|
user: d,
|
|
11008
11011
|
...l
|
|
11009
|
-
}, f =
|
|
11012
|
+
}, f = Gc({ ...u, mutationFn: t }), m = Qc({ ...u, mutationFn: e }), p = Jc({ ...u, mutationFn: n }), g = el({ ...u, mutationFn: s }), v = tl({ ...u, mutationFn: i }), { replies: _, ...y } = Xc({ queryKey: o, queryFn: r });
|
|
11010
11013
|
return {
|
|
11011
11014
|
replies: _,
|
|
11012
11015
|
mutations: {
|
|
@@ -11020,7 +11023,7 @@ function ts({
|
|
|
11020
11023
|
...y
|
|
11021
11024
|
};
|
|
11022
11025
|
}
|
|
11023
|
-
function
|
|
11026
|
+
function Jc({
|
|
11024
11027
|
mutationFn: t,
|
|
11025
11028
|
mutationHandlers: {
|
|
11026
11029
|
mutate: e,
|
|
@@ -11033,29 +11036,29 @@ function Xc({
|
|
|
11033
11036
|
mutationFn: t,
|
|
11034
11037
|
onMutate: ({ replyId: o }) => e((c) => {
|
|
11035
11038
|
const d = tn(o, c);
|
|
11036
|
-
return d &&
|
|
11039
|
+
return d && ta({ reply: d }), c;
|
|
11037
11040
|
}),
|
|
11038
11041
|
onError: n,
|
|
11039
11042
|
onSuccess: (o, { replyId: c }, d) => {
|
|
11040
11043
|
const l = tn(c, d);
|
|
11041
|
-
l &&
|
|
11044
|
+
l && ta({ reply: l, reaction: o }), r.setQueryData(s, d);
|
|
11042
11045
|
}
|
|
11043
11046
|
});
|
|
11044
11047
|
return i;
|
|
11045
11048
|
}
|
|
11046
|
-
function
|
|
11049
|
+
function Xc({ queryFn: t, queryKey: e }) {
|
|
11047
11050
|
const {
|
|
11048
11051
|
data: n,
|
|
11049
11052
|
error: r,
|
|
11050
11053
|
isLoading: s,
|
|
11051
11054
|
hasNextPage: i,
|
|
11052
11055
|
fetchNextPage: o
|
|
11053
|
-
} =
|
|
11056
|
+
} = oa({
|
|
11054
11057
|
queryKey: e,
|
|
11055
11058
|
queryFn: t,
|
|
11056
11059
|
initialPageParam: { next: "" },
|
|
11057
11060
|
getNextPageParam: (l) => (l == null ? void 0 : l.next) || null
|
|
11058
|
-
}), c =
|
|
11061
|
+
}), c = il(n), d = `${c.length || 0}${i ? "+" : ""}`;
|
|
11059
11062
|
return {
|
|
11060
11063
|
replies: c,
|
|
11061
11064
|
repliesCount: d,
|
|
@@ -11065,7 +11068,7 @@ function el({ queryFn: t, queryKey: e }) {
|
|
|
11065
11068
|
fetchNextPage: o
|
|
11066
11069
|
};
|
|
11067
11070
|
}
|
|
11068
|
-
function
|
|
11071
|
+
function el({
|
|
11069
11072
|
mutationFn: t,
|
|
11070
11073
|
mutationHandlers: {
|
|
11071
11074
|
mutate: e,
|
|
@@ -11074,12 +11077,12 @@ function tl({
|
|
|
11074
11077
|
}) {
|
|
11075
11078
|
const { mutate: r } = je({
|
|
11076
11079
|
mutationFn: t,
|
|
11077
|
-
onMutate: ({ replyId: s }) => e((i) =>
|
|
11080
|
+
onMutate: ({ replyId: s }) => e((i) => sl(s, i)),
|
|
11078
11081
|
onError: n
|
|
11079
11082
|
});
|
|
11080
11083
|
return r;
|
|
11081
11084
|
}
|
|
11082
|
-
function
|
|
11085
|
+
function tl({
|
|
11083
11086
|
mutationFn: t,
|
|
11084
11087
|
mutationHandlers: {
|
|
11085
11088
|
mutate: e,
|
|
@@ -11091,13 +11094,13 @@ function nl({
|
|
|
11091
11094
|
mutationFn: t,
|
|
11092
11095
|
onMutate: ({ replyId: i }) => e((o) => {
|
|
11093
11096
|
const c = tn(i, o);
|
|
11094
|
-
return c &&
|
|
11097
|
+
return c && Dc({ reply: c, user: r }), o;
|
|
11095
11098
|
}),
|
|
11096
11099
|
onError: n
|
|
11097
11100
|
});
|
|
11098
11101
|
return s;
|
|
11099
11102
|
}
|
|
11100
|
-
function
|
|
11103
|
+
function nl(t) {
|
|
11101
11104
|
return {
|
|
11102
11105
|
pages: [{
|
|
11103
11106
|
next: "",
|
|
@@ -11106,15 +11109,15 @@ function rl(t) {
|
|
|
11106
11109
|
pageParams: [""]
|
|
11107
11110
|
};
|
|
11108
11111
|
}
|
|
11109
|
-
function
|
|
11112
|
+
function rl(t, e, n) {
|
|
11110
11113
|
const r = e.pages.length - 1, s = e.pages[r].results.length - 1;
|
|
11111
11114
|
return n != null && n.replace ? e.pages[r].results[s] = t : e.pages[r].results.push(t), e;
|
|
11112
11115
|
}
|
|
11113
|
-
function
|
|
11116
|
+
function al(t, e, n) {
|
|
11114
11117
|
return n != null && n.replace ? e.pages[0].results[0] = t : e.pages[0].results = [t, ...e.pages[0].results], e;
|
|
11115
11118
|
}
|
|
11116
|
-
function
|
|
11117
|
-
return e ? n != null && n.append ?
|
|
11119
|
+
function aa(t, e, n) {
|
|
11120
|
+
return e ? n != null && n.append ? rl(t, e, n) : al(t, e, n) : nl(t);
|
|
11118
11121
|
}
|
|
11119
11122
|
function tn(t, e) {
|
|
11120
11123
|
if (e)
|
|
@@ -11124,7 +11127,7 @@ function tn(t, e) {
|
|
|
11124
11127
|
return r;
|
|
11125
11128
|
}
|
|
11126
11129
|
}
|
|
11127
|
-
function
|
|
11130
|
+
function sl(t, e) {
|
|
11128
11131
|
for (const { results: n } of e.pages) {
|
|
11129
11132
|
const r = n.findIndex(({ id: s }) => s === t);
|
|
11130
11133
|
if (r !== -1) {
|
|
@@ -11134,11 +11137,11 @@ function il(t, e) {
|
|
|
11134
11137
|
}
|
|
11135
11138
|
return e;
|
|
11136
11139
|
}
|
|
11137
|
-
function
|
|
11140
|
+
function il(t) {
|
|
11138
11141
|
var e;
|
|
11139
11142
|
return ((e = t == null ? void 0 : t.pages) == null ? void 0 : e.reduce((n, r) => [...n, ...r == null ? void 0 : r.results], [])) || [];
|
|
11140
11143
|
}
|
|
11141
|
-
const
|
|
11144
|
+
const ol = ({
|
|
11142
11145
|
basePath: t,
|
|
11143
11146
|
parentId: e,
|
|
11144
11147
|
activityId: n,
|
|
@@ -11153,7 +11156,7 @@ const cl = ({
|
|
|
11153
11156
|
isLoading: l,
|
|
11154
11157
|
mutations: { create: u, edit: f, like: m, remove: p, unlike: g },
|
|
11155
11158
|
user: v
|
|
11156
|
-
} =
|
|
11159
|
+
} = es({
|
|
11157
11160
|
queryKey: [t, e, n, r, "replies"],
|
|
11158
11161
|
queryFns: {
|
|
11159
11162
|
...i,
|
|
@@ -11162,7 +11165,7 @@ const cl = ({
|
|
|
11162
11165
|
}
|
|
11163
11166
|
});
|
|
11164
11167
|
return /* @__PURE__ */ a.jsx(
|
|
11165
|
-
|
|
11168
|
+
$c,
|
|
11166
11169
|
{
|
|
11167
11170
|
loadMore: { isLoading: l, hasNextPage: d, loadNextPage: () => c() },
|
|
11168
11171
|
form: {
|
|
@@ -11250,7 +11253,7 @@ const cl = ({
|
|
|
11250
11253
|
}) : null
|
|
11251
11254
|
}
|
|
11252
11255
|
);
|
|
11253
|
-
},
|
|
11256
|
+
}, cl = ({
|
|
11254
11257
|
basePath: t,
|
|
11255
11258
|
parentId: e,
|
|
11256
11259
|
activityId: n,
|
|
@@ -11265,14 +11268,14 @@ const cl = ({
|
|
|
11265
11268
|
isLoading: m,
|
|
11266
11269
|
mutations: { create: p, edit: g, like: v, remove: _, unlike: y },
|
|
11267
11270
|
user: x
|
|
11268
|
-
} =
|
|
11271
|
+
} = es({
|
|
11269
11272
|
queryKey: [t, e, n, "replies"],
|
|
11270
11273
|
queryFns: s
|
|
11271
11274
|
});
|
|
11272
|
-
return
|
|
11273
|
-
/* @__PURE__ */ a.jsx(
|
|
11275
|
+
return Us(), Ja(), /* @__PURE__ */ a.jsxs("section", { children: [
|
|
11276
|
+
/* @__PURE__ */ a.jsx(Nc, { type: "comment", responses: l }),
|
|
11274
11277
|
/* @__PURE__ */ a.jsx(
|
|
11275
|
-
|
|
11278
|
+
Va,
|
|
11276
11279
|
{
|
|
11277
11280
|
form: {
|
|
11278
11281
|
content: { type: "reply", slugs: {} },
|
|
@@ -11307,7 +11310,7 @@ const cl = ({
|
|
|
11307
11310
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
11308
11311
|
((U = (L = S == null ? void 0 : S.data) == null ? void 0 : L.content) == null ? void 0 : U.text) || ""
|
|
11309
11312
|
);
|
|
11310
|
-
return /* @__PURE__ */ a.jsx(
|
|
11313
|
+
return /* @__PURE__ */ a.jsx(kc, { children: /* @__PURE__ */ a.jsx(
|
|
11311
11314
|
cn,
|
|
11312
11315
|
{
|
|
11313
11316
|
content: {
|
|
@@ -11350,7 +11353,7 @@ const cl = ({
|
|
|
11350
11353
|
comments: {}
|
|
11351
11354
|
},
|
|
11352
11355
|
children: /* @__PURE__ */ a.jsx(
|
|
11353
|
-
|
|
11356
|
+
ol,
|
|
11354
11357
|
{
|
|
11355
11358
|
basePath: t,
|
|
11356
11359
|
parentId: e,
|
|
@@ -11380,7 +11383,7 @@ const cl = ({
|
|
|
11380
11383
|
)
|
|
11381
11384
|
] });
|
|
11382
11385
|
};
|
|
11383
|
-
function
|
|
11386
|
+
function ll({
|
|
11384
11387
|
mutationFn: t,
|
|
11385
11388
|
mutationHandlers: {
|
|
11386
11389
|
mutate: e,
|
|
@@ -11394,13 +11397,13 @@ function ul({
|
|
|
11394
11397
|
});
|
|
11395
11398
|
return r;
|
|
11396
11399
|
}
|
|
11397
|
-
function
|
|
11400
|
+
function ul({ queryFn: t, queryKey: e }) {
|
|
11398
11401
|
const {
|
|
11399
11402
|
data: n,
|
|
11400
11403
|
error: r,
|
|
11401
11404
|
isLoading: s,
|
|
11402
11405
|
isFetching: i
|
|
11403
|
-
} =
|
|
11406
|
+
} = Cs({
|
|
11404
11407
|
queryFn: t,
|
|
11405
11408
|
queryKey: e
|
|
11406
11409
|
});
|
|
@@ -11411,7 +11414,7 @@ function dl({ queryFn: t, queryKey: e }) {
|
|
|
11411
11414
|
isFetching: i
|
|
11412
11415
|
};
|
|
11413
11416
|
}
|
|
11414
|
-
function
|
|
11417
|
+
function dl({
|
|
11415
11418
|
queryFns: {
|
|
11416
11419
|
read: t,
|
|
11417
11420
|
edit: e,
|
|
@@ -11420,14 +11423,14 @@ function fl({
|
|
|
11420
11423
|
},
|
|
11421
11424
|
queryKey: s
|
|
11422
11425
|
}) {
|
|
11423
|
-
const i =
|
|
11426
|
+
const i = Gn(), o = tr(), c = { queryClient: i, queryKey: s }, d = {
|
|
11424
11427
|
mutationHandlers: {
|
|
11425
|
-
error:
|
|
11426
|
-
mutate:
|
|
11428
|
+
error: or(c),
|
|
11429
|
+
mutate: cr(c)
|
|
11427
11430
|
},
|
|
11428
11431
|
user: o,
|
|
11429
11432
|
...c
|
|
11430
|
-
}, l =
|
|
11433
|
+
}, l = ll({ ...d, mutationFn: e }), u = fl({ ...d, mutationFn: n }), f = ml({ ...d, mutationFn: r }), { activity: m, ...p } = ul({ queryKey: s, queryFn: t });
|
|
11431
11434
|
return {
|
|
11432
11435
|
activity: m,
|
|
11433
11436
|
mutations: {
|
|
@@ -11439,7 +11442,7 @@ function fl({
|
|
|
11439
11442
|
...p
|
|
11440
11443
|
};
|
|
11441
11444
|
}
|
|
11442
|
-
function
|
|
11445
|
+
function fl({
|
|
11443
11446
|
mutationFn: t,
|
|
11444
11447
|
mutationHandlers: {
|
|
11445
11448
|
mutate: e,
|
|
@@ -11458,7 +11461,7 @@ function ml({
|
|
|
11458
11461
|
});
|
|
11459
11462
|
return i;
|
|
11460
11463
|
}
|
|
11461
|
-
function
|
|
11464
|
+
function ml({
|
|
11462
11465
|
mutationFn: t,
|
|
11463
11466
|
mutationHandlers: {
|
|
11464
11467
|
mutate: e,
|
|
@@ -11468,12 +11471,12 @@ function pl({
|
|
|
11468
11471
|
}) {
|
|
11469
11472
|
const { mutate: s } = je({
|
|
11470
11473
|
mutationFn: t,
|
|
11471
|
-
onMutate: (i) => e((o) => (o &&
|
|
11474
|
+
onMutate: (i) => e((o) => (o && Ga({ activity: o, user: r }), o)),
|
|
11472
11475
|
onError: n
|
|
11473
11476
|
});
|
|
11474
11477
|
return s;
|
|
11475
11478
|
}
|
|
11476
|
-
const
|
|
11479
|
+
const vu = ({
|
|
11477
11480
|
basePath: t,
|
|
11478
11481
|
parentId: e,
|
|
11479
11482
|
activityId: n,
|
|
@@ -11491,7 +11494,7 @@ const bu = ({
|
|
|
11491
11494
|
error: m,
|
|
11492
11495
|
isLoading: p,
|
|
11493
11496
|
mutations: { edit: g, like: v, unlike: _ }
|
|
11494
|
-
} =
|
|
11497
|
+
} = dl({
|
|
11495
11498
|
queryFns: i,
|
|
11496
11499
|
queryKey: [t, e, n]
|
|
11497
11500
|
});
|
|
@@ -11565,7 +11568,7 @@ const bu = ({
|
|
|
11565
11568
|
n
|
|
11566
11569
|
),
|
|
11567
11570
|
/* @__PURE__ */ a.jsx(
|
|
11568
|
-
|
|
11571
|
+
cl,
|
|
11569
11572
|
{
|
|
11570
11573
|
basePath: t,
|
|
11571
11574
|
parentId: e,
|
|
@@ -11579,7 +11582,7 @@ const bu = ({
|
|
|
11579
11582
|
}
|
|
11580
11583
|
)
|
|
11581
11584
|
] });
|
|
11582
|
-
},
|
|
11585
|
+
}, bu = ({
|
|
11583
11586
|
id: t,
|
|
11584
11587
|
data: { jobTitle: e, name: n, organization: r, thumbnail: s }
|
|
11585
11588
|
}) => ({
|
|
@@ -11588,7 +11591,7 @@ const bu = ({
|
|
|
11588
11591
|
jobTitle: e,
|
|
11589
11592
|
organization: r,
|
|
11590
11593
|
image: { thumbnail: s }
|
|
11591
|
-
}),
|
|
11594
|
+
}), sa = [
|
|
11592
11595
|
{
|
|
11593
11596
|
contentType: "solutionArticle",
|
|
11594
11597
|
banner: {
|
|
@@ -11632,20 +11635,20 @@ const bu = ({
|
|
|
11632
11635
|
contributors: ["community"]
|
|
11633
11636
|
}
|
|
11634
11637
|
];
|
|
11635
|
-
const It = "notFoundError_",
|
|
11638
|
+
const It = "notFoundError_", yu = () => {
|
|
11636
11639
|
const t = H(), e = [];
|
|
11637
|
-
return
|
|
11640
|
+
return sa.forEach((n, r) => {
|
|
11638
11641
|
n.title = t.formatMessage({ id: `${It}post_${r + 1}` }), e.push("solutionArticle");
|
|
11639
11642
|
}), /* @__PURE__ */ a.jsxs(
|
|
11640
|
-
|
|
11643
|
+
yc,
|
|
11641
11644
|
{
|
|
11642
11645
|
styling: { background: "bold", circle: "small", variant: "alt-2" },
|
|
11643
11646
|
additionalContent: {
|
|
11644
11647
|
appended: /* @__PURE__ */ a.jsxs(Ve, { children: [
|
|
11645
11648
|
/* @__PURE__ */ a.jsx(
|
|
11646
|
-
|
|
11649
|
+
rc,
|
|
11647
11650
|
{
|
|
11648
|
-
cards:
|
|
11651
|
+
cards: sa,
|
|
11649
11652
|
cardTypes: e,
|
|
11650
11653
|
buildCardData: (n) => new Promise((r, s) => {
|
|
11651
11654
|
r(n);
|
|
@@ -11667,135 +11670,135 @@ const It = "notFoundError_", _u = () => {
|
|
|
11667
11670
|
};
|
|
11668
11671
|
export {
|
|
11669
11672
|
Be as ASSETS_BUCKET,
|
|
11670
|
-
|
|
11671
|
-
|
|
11672
|
-
|
|
11673
|
-
|
|
11674
|
-
|
|
11675
|
-
|
|
11673
|
+
hu as ActivitiesFeed,
|
|
11674
|
+
vu as ActivitySection,
|
|
11675
|
+
Va as AddPost,
|
|
11676
|
+
Il as Banner,
|
|
11677
|
+
Ul as BannerSection,
|
|
11678
|
+
ru as Breadcrumbs,
|
|
11676
11679
|
se as Button,
|
|
11677
11680
|
kt as ButtonWrapper,
|
|
11678
11681
|
St as COURSE_CONTENT_TYPES,
|
|
11679
|
-
|
|
11680
|
-
|
|
11681
|
-
|
|
11682
|
-
|
|
11683
|
-
|
|
11684
|
-
|
|
11685
|
-
|
|
11686
|
-
|
|
11687
|
-
|
|
11688
|
-
|
|
11689
|
-
|
|
11690
|
-
|
|
11691
|
-
|
|
11692
|
-
|
|
11693
|
-
|
|
11694
|
-
|
|
11695
|
-
|
|
11696
|
-
|
|
11697
|
-
|
|
11698
|
-
|
|
11682
|
+
Ti as CacheProvider,
|
|
11683
|
+
Ua as Card,
|
|
11684
|
+
rc as CardBlock,
|
|
11685
|
+
tu as Carousel,
|
|
11686
|
+
Xn as CollapsibleSection,
|
|
11687
|
+
hc as Columns,
|
|
11688
|
+
nu as CommunityDetails,
|
|
11689
|
+
cu as ContactFooter,
|
|
11690
|
+
Vi as ContactForm,
|
|
11691
|
+
oi as ContentTypeLabel,
|
|
11692
|
+
Ta as Contributors,
|
|
11693
|
+
ir as ConversationContext,
|
|
11694
|
+
gc as CookieBanner,
|
|
11695
|
+
fu as CourseProgression,
|
|
11696
|
+
mu as CourseStructure,
|
|
11697
|
+
Wl as CustomContentBanner,
|
|
11698
|
+
eu as Directory,
|
|
11699
|
+
kc as DiscussionConversation,
|
|
11700
|
+
sr as DiscussionForm,
|
|
11701
|
+
Sc as DiscussionLikes,
|
|
11699
11702
|
cn as DiscussionPost,
|
|
11700
|
-
|
|
11703
|
+
$c as DiscussionThread,
|
|
11701
11704
|
Oe as Divider,
|
|
11702
|
-
|
|
11705
|
+
Ll as DownloadSection,
|
|
11703
11706
|
ft as EMAILS,
|
|
11704
|
-
|
|
11705
|
-
|
|
11707
|
+
Bl as EditSection,
|
|
11708
|
+
Oi as EmailHelperTextBox,
|
|
11706
11709
|
He as EmptyStateBox,
|
|
11707
|
-
|
|
11708
|
-
|
|
11709
|
-
|
|
11710
|
+
au as Filters,
|
|
11711
|
+
Ci as FlagsProvider,
|
|
11712
|
+
Za as Footer,
|
|
11710
11713
|
rn as Form,
|
|
11711
11714
|
Ve as FullWidthSection,
|
|
11712
|
-
|
|
11713
|
-
|
|
11714
|
-
|
|
11715
|
-
|
|
11716
|
-
|
|
11717
|
-
|
|
11715
|
+
Hl as GlobalProviders,
|
|
11716
|
+
Ha as Header,
|
|
11717
|
+
ci as HelperTextBox,
|
|
11718
|
+
Qn as HiddenFromScreenReaders,
|
|
11719
|
+
Fl as HideShowTextBox,
|
|
11720
|
+
zl as HighlightSection,
|
|
11718
11721
|
Fe as HighlightedTextBox,
|
|
11719
|
-
|
|
11720
|
-
|
|
11721
|
-
|
|
11722
|
-
|
|
11723
|
-
|
|
11724
|
-
|
|
11725
|
-
|
|
11726
|
-
|
|
11727
|
-
|
|
11728
|
-
|
|
11722
|
+
Ol as IconBulletedList,
|
|
11723
|
+
Pl as ImageContainer,
|
|
11724
|
+
Ni as IntlProvider,
|
|
11725
|
+
Yi as InviteForm,
|
|
11726
|
+
Xl as InviteModal,
|
|
11727
|
+
Wa as JoinButton,
|
|
11728
|
+
ya as LanguageContext,
|
|
11729
|
+
su as LanguageSwitcher,
|
|
11730
|
+
xc as LessonName,
|
|
11731
|
+
wc as LessonType,
|
|
11729
11732
|
at as Link,
|
|
11730
11733
|
sn as LoadMore,
|
|
11731
|
-
|
|
11734
|
+
Vl as LoadingBlock,
|
|
11732
11735
|
Se as LoadingPlaceholder,
|
|
11733
|
-
|
|
11734
|
-
|
|
11735
|
-
|
|
11736
|
-
|
|
11736
|
+
wa as LoadingState,
|
|
11737
|
+
za as Logo,
|
|
11738
|
+
ql as LogoSection,
|
|
11739
|
+
pu as MarkCompleteButton,
|
|
11737
11740
|
xt as MarkdownText,
|
|
11738
|
-
|
|
11739
|
-
|
|
11740
|
-
|
|
11741
|
-
|
|
11742
|
-
|
|
11743
|
-
|
|
11744
|
-
|
|
11745
|
-
|
|
11741
|
+
Zl as MarketingBlock,
|
|
11742
|
+
nr as Member,
|
|
11743
|
+
du as MembersList,
|
|
11744
|
+
qa as Modal,
|
|
11745
|
+
cc as MoreMenu,
|
|
11746
|
+
$l as NUMBER_OF_USERS,
|
|
11747
|
+
dc as NavigationMenu,
|
|
11748
|
+
yu as NotFoundError,
|
|
11746
11749
|
an as Overlay,
|
|
11747
|
-
|
|
11748
|
-
|
|
11749
|
-
|
|
11750
|
-
|
|
11750
|
+
bi as PageHeading,
|
|
11751
|
+
yc as PageLayout,
|
|
11752
|
+
Ql as PasswordForm,
|
|
11753
|
+
Hi as PasswordRules,
|
|
11751
11754
|
ht as Pill,
|
|
11752
|
-
|
|
11755
|
+
Gl as ProfileImageChange,
|
|
11753
11756
|
Ye as ProfilePicture,
|
|
11754
|
-
|
|
11755
|
-
|
|
11756
|
-
|
|
11757
|
-
|
|
11758
|
-
|
|
11757
|
+
_a as ProgressBar,
|
|
11758
|
+
Ml as ProgressTracker,
|
|
11759
|
+
Yl as Rating,
|
|
11760
|
+
cl as RepliesFeed,
|
|
11761
|
+
Nc as ResponsesHeading,
|
|
11759
11762
|
Tt as ResponsiveImage,
|
|
11760
|
-
|
|
11761
|
-
|
|
11762
|
-
|
|
11763
|
-
|
|
11764
|
-
|
|
11763
|
+
Rl as ReturnToNavButton,
|
|
11764
|
+
Ki as SearchForm,
|
|
11765
|
+
iu as ShareLinks,
|
|
11766
|
+
Jl as SignupForm,
|
|
11767
|
+
gi as Span,
|
|
11765
11768
|
Wt as StatusBanner,
|
|
11766
|
-
|
|
11767
|
-
|
|
11768
|
-
|
|
11769
|
-
|
|
11770
|
-
|
|
11771
|
-
|
|
11772
|
-
|
|
11773
|
-
|
|
11769
|
+
Dl as TableOfContents,
|
|
11770
|
+
ou as Tabs,
|
|
11771
|
+
uu as Tags,
|
|
11772
|
+
Al as TestimonialBlock,
|
|
11773
|
+
er as TimeToComplete,
|
|
11774
|
+
Kl as Toggle,
|
|
11775
|
+
_i as Tooltip,
|
|
11776
|
+
lu as TopLevelPage,
|
|
11774
11777
|
De as UserContext,
|
|
11775
|
-
|
|
11778
|
+
$i as UserProvider,
|
|
11776
11779
|
be as VisuallyHidden,
|
|
11777
|
-
|
|
11778
|
-
|
|
11779
|
-
|
|
11780
|
-
|
|
11781
|
-
|
|
11782
|
-
|
|
11783
|
-
|
|
11784
|
-
|
|
11785
|
-
|
|
11780
|
+
Xo as addAriaProps,
|
|
11781
|
+
ma as basicReducer,
|
|
11782
|
+
Ws as camelCaseToDashCase,
|
|
11783
|
+
Jn as checkIntlPathExists,
|
|
11784
|
+
yn as generateConditions,
|
|
11785
|
+
Hs as generateCssIcon,
|
|
11786
|
+
ga as getLongDate,
|
|
11787
|
+
ka as getMember,
|
|
11788
|
+
Vs as getShortDate,
|
|
11786
11789
|
Qt as headerData,
|
|
11787
|
-
|
|
11788
|
-
|
|
11789
|
-
|
|
11790
|
-
|
|
11791
|
-
|
|
11792
|
-
|
|
11793
|
-
|
|
11794
|
-
|
|
11790
|
+
bu as mapGetStreamData,
|
|
11791
|
+
ti as pageReady,
|
|
11792
|
+
kr as passwordValidator,
|
|
11793
|
+
gu as repliesFeedMock,
|
|
11794
|
+
gn as supportedLanguages,
|
|
11795
|
+
zs as toCamelCase,
|
|
11796
|
+
Zs as toSentenceCase,
|
|
11797
|
+
Ls as useCurrentPath,
|
|
11795
11798
|
_t as useEffectAfterMount,
|
|
11796
11799
|
jt as useElementWidth,
|
|
11797
|
-
|
|
11798
|
-
|
|
11799
|
-
|
|
11800
|
-
|
|
11800
|
+
Nl as useRemoveSignupCookie,
|
|
11801
|
+
qs as useScrollListener,
|
|
11802
|
+
Us as useScrollToHash,
|
|
11803
|
+
tr as useUser
|
|
11801
11804
|
};
|