@apolitical/component-library 3.5.15 → 3.5.17-ac.0
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/discussion/components/button/button.d.ts +6 -0
- package/discussion/components/button/index.d.ts +1 -0
- package/discussion/components/likes/likes.d.ts +1 -10
- package/index.js +19 -19
- package/index.mjs +947 -970
- package/package.json +1 -1
- package/style.css +1 -1
package/index.mjs
CHANGED
|
@@ -1,22 +1,22 @@
|
|
|
1
|
-
import Y, { memo as Oe, useState as J, useEffect as ae, useRef as pe, useMemo as wt, Children as qn, useCallback as
|
|
1
|
+
import Y, { memo as Oe, useState as J, useEffect as ae, useRef as pe, useMemo as wt, Children as qn, useCallback as oa, useReducer as Gn, createContext as nn, useContext as Ee, Fragment as yt, Suspense as js } from "react";
|
|
2
2
|
import pt from "lodash.clonedeep";
|
|
3
|
-
import
|
|
4
|
-
import { FormattedMessage as ye, useIntl as H, IntlProvider as
|
|
3
|
+
import ks from "lodash.set";
|
|
4
|
+
import { FormattedMessage as ye, useIntl as H, IntlProvider as Ts, createIntl as Es } from "react-intl";
|
|
5
5
|
import Ie from "markdown-to-jsx";
|
|
6
6
|
import et from "truncate";
|
|
7
|
-
import { QueryClient as
|
|
8
|
-
import { ReactQueryDevtools as
|
|
7
|
+
import { QueryClient as Ss, QueryClientProvider as Cs, useMutation as je, useQueryClient as Qn, useInfiniteQuery as ca, useQuery as Ns } from "@tanstack/react-query";
|
|
8
|
+
import { ReactQueryDevtools as $s } from "@tanstack/react-query-devtools";
|
|
9
9
|
import Lt from "posthog-js";
|
|
10
|
-
import { useCookies as
|
|
11
|
-
import { ReactMultiEmail as
|
|
12
|
-
import
|
|
13
|
-
import { ErrorBoundary as
|
|
14
|
-
import
|
|
15
|
-
import
|
|
16
|
-
function
|
|
10
|
+
import { useCookies as la, CookiesProvider as Ps } from "react-cookie";
|
|
11
|
+
import { ReactMultiEmail as Ms } from "react-multi-email";
|
|
12
|
+
import ua from "lodash.get";
|
|
13
|
+
import { ErrorBoundary as Rs } from "react-error-boundary";
|
|
14
|
+
import Fs from "react-textarea-autosize";
|
|
15
|
+
import Os from "lodash.isequal";
|
|
16
|
+
function da(t) {
|
|
17
17
|
return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
|
|
18
18
|
}
|
|
19
|
-
function
|
|
19
|
+
function fa(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 ma = { 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
|
+
})(ma);
|
|
76
|
+
var As = ma.exports;
|
|
77
|
+
const E = /* @__PURE__ */ da(As), Ds = ({
|
|
78
78
|
element: t = "span",
|
|
79
79
|
showOnFocus: e = !0,
|
|
80
80
|
children: n,
|
|
@@ -84,11 +84,11 @@ 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 = Oe(
|
|
87
|
+
}), be = Oe(Ds), Is = ({
|
|
88
88
|
element: t = "span",
|
|
89
89
|
children: e = null,
|
|
90
90
|
...n
|
|
91
|
-
}) => Y.createElement(t, { ...n, "aria-hidden": !0 }, e),
|
|
91
|
+
}) => Y.createElement(t, { ...n, "aria-hidden": !0 }, e), Jn = Oe(Is);
|
|
92
92
|
var Wn = { exports: {} }, it = {};
|
|
93
93
|
/**
|
|
94
94
|
* @license React
|
|
@@ -99,11 +99,11 @@ var Wn = { 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 Ls() {
|
|
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, m = {}, f = 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 Bs() {
|
|
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"), m = Symbol.for("react.memo"), f = Symbol.for("react.lazy"), p = Symbol.for("react.offscreen"), h = Symbol.iterator, b = "@@iterator";
|
|
134
134
|
function v(g) {
|
|
135
135
|
if (g === null || typeof g != "object")
|
|
@@ -348,17 +348,17 @@ function Ls() {
|
|
|
348
348
|
}
|
|
349
349
|
} catch (Pe) {
|
|
350
350
|
if (Pe && ne && typeof Pe.stack == "string") {
|
|
351
|
-
for (var
|
|
351
|
+
for (var se = Pe.stack.split(`
|
|
352
352
|
`), xe = ne.stack.split(`
|
|
353
|
-
`), he =
|
|
353
|
+
`), he = se.length - 1, ge = xe.length - 1; he >= 1 && ge >= 0 && se[he] !== xe[ge]; )
|
|
354
354
|
ge--;
|
|
355
355
|
for (; he >= 1 && ge >= 0; he--, ge--)
|
|
356
|
-
if (
|
|
356
|
+
if (se[he] !== xe[ge]) {
|
|
357
357
|
if (he !== 1 || ge !== 1)
|
|
358
358
|
do
|
|
359
|
-
if (he--, ge--, ge < 0 ||
|
|
359
|
+
if (he--, ge--, ge < 0 || se[he] !== xe[ge]) {
|
|
360
360
|
var ke = `
|
|
361
|
-
` +
|
|
361
|
+
` + se[he].replace(" at new ", " at ");
|
|
362
362
|
return g.displayName && ke.includes("<anonymous>") && (ke = ke.replace("<anonymous>", g.displayName)), typeof g == "function" && O.set(g, ke), ke;
|
|
363
363
|
}
|
|
364
364
|
while (he >= 1 && ge >= 0);
|
|
@@ -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 = g ? g.displayName || g.name : "",
|
|
372
|
-
return typeof g == "function" && O.set(g,
|
|
371
|
+
var Ge = g ? g.displayName || g.name : "", xr = Ge ? ee(Ge) : "";
|
|
372
|
+
return typeof g == "function" && O.set(g, xr), xr;
|
|
373
373
|
}
|
|
374
374
|
function ve(g, M, L) {
|
|
375
375
|
return D(g, !1);
|
|
@@ -407,65 +407,65 @@ function Ls() {
|
|
|
407
407
|
}
|
|
408
408
|
return "";
|
|
409
409
|
}
|
|
410
|
-
var qe = Object.prototype.hasOwnProperty,
|
|
410
|
+
var qe = Object.prototype.hasOwnProperty, lr = {}, ur = y.ReactDebugCurrentFrame;
|
|
411
411
|
function Et(g) {
|
|
412
412
|
if (g) {
|
|
413
413
|
var M = g._owner, L = Ce(g.type, g._source, M ? M.type : null);
|
|
414
|
-
|
|
414
|
+
ur.setExtraStackFrame(L);
|
|
415
415
|
} else
|
|
416
|
-
|
|
416
|
+
ur.setExtraStackFrame(null);
|
|
417
417
|
}
|
|
418
|
-
function
|
|
418
|
+
function rs(g, M, L, ne, le) {
|
|
419
419
|
{
|
|
420
420
|
var me = Function.call.bind(qe);
|
|
421
421
|
for (var ce in g)
|
|
422
422
|
if (me(g, ce)) {
|
|
423
|
-
var
|
|
423
|
+
var se = void 0;
|
|
424
424
|
try {
|
|
425
425
|
if (typeof g[ce] != "function") {
|
|
426
426
|
var xe = Error((ne || "React class") + ": " + L + " type `" + ce + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof g[ce] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
|
|
427
427
|
throw xe.name = "Invariant Violation", xe;
|
|
428
428
|
}
|
|
429
|
-
|
|
429
|
+
se = g[ce](M, ce, ne, L, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
|
|
430
430
|
} catch (he) {
|
|
431
|
-
|
|
431
|
+
se = he;
|
|
432
432
|
}
|
|
433
|
-
|
|
433
|
+
se && !(se instanceof Error) && (Et(le), _("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", ne || "React class", L, ce, typeof se), Et(null)), se instanceof Error && !(se.message in lr) && (lr[se.message] = !0, Et(le), _("Failed %s type: %s", L, se.message), Et(null));
|
|
434
434
|
}
|
|
435
435
|
}
|
|
436
436
|
}
|
|
437
|
-
var
|
|
437
|
+
var as = Array.isArray;
|
|
438
438
|
function un(g) {
|
|
439
|
-
return
|
|
439
|
+
return as(g);
|
|
440
440
|
}
|
|
441
|
-
function
|
|
441
|
+
function ss(g) {
|
|
442
442
|
{
|
|
443
443
|
var M = typeof Symbol == "function" && Symbol.toStringTag, L = M && g[Symbol.toStringTag] || g.constructor.name || "Object";
|
|
444
444
|
return L;
|
|
445
445
|
}
|
|
446
446
|
}
|
|
447
|
-
function
|
|
447
|
+
function is(g) {
|
|
448
448
|
try {
|
|
449
|
-
return
|
|
449
|
+
return dr(g), !1;
|
|
450
450
|
} catch {
|
|
451
451
|
return !0;
|
|
452
452
|
}
|
|
453
453
|
}
|
|
454
|
-
function
|
|
454
|
+
function dr(g) {
|
|
455
455
|
return "" + g;
|
|
456
456
|
}
|
|
457
|
-
function
|
|
458
|
-
if (
|
|
459
|
-
return _("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",
|
|
457
|
+
function fr(g) {
|
|
458
|
+
if (is(g))
|
|
459
|
+
return _("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", ss(g)), dr(g);
|
|
460
460
|
}
|
|
461
|
-
var st = y.ReactCurrentOwner,
|
|
461
|
+
var st = y.ReactCurrentOwner, os = {
|
|
462
462
|
key: !0,
|
|
463
463
|
ref: !0,
|
|
464
464
|
__self: !0,
|
|
465
465
|
__source: !0
|
|
466
|
-
},
|
|
466
|
+
}, mr, pr, dn;
|
|
467
467
|
dn = {};
|
|
468
|
-
function
|
|
468
|
+
function cs(g) {
|
|
469
469
|
if (qe.call(g, "ref")) {
|
|
470
470
|
var M = Object.getOwnPropertyDescriptor(g, "ref").get;
|
|
471
471
|
if (M && M.isReactWarning)
|
|
@@ -473,7 +473,7 @@ function Ls() {
|
|
|
473
473
|
}
|
|
474
474
|
return g.ref !== void 0;
|
|
475
475
|
}
|
|
476
|
-
function
|
|
476
|
+
function ls(g) {
|
|
477
477
|
if (qe.call(g, "key")) {
|
|
478
478
|
var M = Object.getOwnPropertyDescriptor(g, "key").get;
|
|
479
479
|
if (M && M.isReactWarning)
|
|
@@ -481,16 +481,16 @@ function Ls() {
|
|
|
481
481
|
}
|
|
482
482
|
return g.key !== void 0;
|
|
483
483
|
}
|
|
484
|
-
function
|
|
484
|
+
function us(g, M) {
|
|
485
485
|
if (typeof g.ref == "string" && st.current && M && st.current.stateNode !== M) {
|
|
486
486
|
var L = k(st.current.type);
|
|
487
487
|
dn[L] || (_('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref', k(st.current.type), g.ref), dn[L] = !0);
|
|
488
488
|
}
|
|
489
489
|
}
|
|
490
|
-
function
|
|
490
|
+
function ds(g, M) {
|
|
491
491
|
{
|
|
492
492
|
var L = function() {
|
|
493
|
-
|
|
493
|
+
mr || (mr = !0, _("%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
|
L.isReactWarning = !0, Object.defineProperty(g, "key", {
|
|
496
496
|
get: L,
|
|
@@ -498,10 +498,10 @@ function Ls() {
|
|
|
498
498
|
});
|
|
499
499
|
}
|
|
500
500
|
}
|
|
501
|
-
function
|
|
501
|
+
function fs(g, M) {
|
|
502
502
|
{
|
|
503
503
|
var L = function() {
|
|
504
|
-
|
|
504
|
+
pr || (pr = !0, _("%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
|
L.isReactWarning = !0, Object.defineProperty(g, "ref", {
|
|
507
507
|
get: L,
|
|
@@ -509,8 +509,8 @@ function Ls() {
|
|
|
509
509
|
});
|
|
510
510
|
}
|
|
511
511
|
}
|
|
512
|
-
var
|
|
513
|
-
var
|
|
512
|
+
var ms = function(g, M, L, ne, le, me, ce) {
|
|
513
|
+
var se = {
|
|
514
514
|
// This tag allows us to uniquely identify this as a React Element
|
|
515
515
|
$$typeof: e,
|
|
516
516
|
// Built-in properties that belong on the element
|
|
@@ -521,55 +521,55 @@ function Ls() {
|
|
|
521
521
|
// Record the component responsible for creating this element.
|
|
522
522
|
_owner: me
|
|
523
523
|
};
|
|
524
|
-
return
|
|
524
|
+
return se._store = {}, Object.defineProperty(se._store, "validated", {
|
|
525
525
|
configurable: !1,
|
|
526
526
|
enumerable: !1,
|
|
527
527
|
writable: !0,
|
|
528
528
|
value: !1
|
|
529
|
-
}), Object.defineProperty(
|
|
529
|
+
}), Object.defineProperty(se, "_self", {
|
|
530
530
|
configurable: !1,
|
|
531
531
|
enumerable: !1,
|
|
532
532
|
writable: !1,
|
|
533
533
|
value: ne
|
|
534
|
-
}), Object.defineProperty(
|
|
534
|
+
}), Object.defineProperty(se, "_source", {
|
|
535
535
|
configurable: !1,
|
|
536
536
|
enumerable: !1,
|
|
537
537
|
writable: !1,
|
|
538
538
|
value: le
|
|
539
|
-
}), Object.freeze && (Object.freeze(
|
|
539
|
+
}), Object.freeze && (Object.freeze(se.props), Object.freeze(se)), se;
|
|
540
540
|
};
|
|
541
|
-
function
|
|
541
|
+
function ps(g, M, L, ne, le) {
|
|
542
542
|
{
|
|
543
|
-
var me, ce = {},
|
|
544
|
-
L !== void 0 && (
|
|
543
|
+
var me, ce = {}, se = null, xe = null;
|
|
544
|
+
L !== void 0 && (fr(L), se = "" + L), ls(M) && (fr(M.key), se = "" + M.key), cs(M) && (xe = M.ref, us(M, le));
|
|
545
545
|
for (me in M)
|
|
546
|
-
qe.call(M, me) && !
|
|
546
|
+
qe.call(M, me) && !os.hasOwnProperty(me) && (ce[me] = M[me]);
|
|
547
547
|
if (g && g.defaultProps) {
|
|
548
548
|
var he = g.defaultProps;
|
|
549
549
|
for (me in he)
|
|
550
550
|
ce[me] === void 0 && (ce[me] = he[me]);
|
|
551
551
|
}
|
|
552
|
-
if (
|
|
552
|
+
if (se || xe) {
|
|
553
553
|
var ge = typeof g == "function" ? g.displayName || g.name || "Unknown" : g;
|
|
554
|
-
|
|
554
|
+
se && ds(ce, ge), xe && fs(ce, ge);
|
|
555
555
|
}
|
|
556
|
-
return
|
|
556
|
+
return ms(g, se, xe, le, ne, st.current, ce);
|
|
557
557
|
}
|
|
558
558
|
}
|
|
559
|
-
var fn = y.ReactCurrentOwner,
|
|
559
|
+
var fn = y.ReactCurrentOwner, hr = y.ReactDebugCurrentFrame;
|
|
560
560
|
function Ke(g) {
|
|
561
561
|
if (g) {
|
|
562
562
|
var M = g._owner, L = Ce(g.type, g._source, M ? M.type : null);
|
|
563
|
-
|
|
563
|
+
hr.setExtraStackFrame(L);
|
|
564
564
|
} else
|
|
565
|
-
|
|
565
|
+
hr.setExtraStackFrame(null);
|
|
566
566
|
}
|
|
567
567
|
var mn;
|
|
568
568
|
mn = !1;
|
|
569
569
|
function pn(g) {
|
|
570
570
|
return typeof g == "object" && g !== null && g.$$typeof === e;
|
|
571
571
|
}
|
|
572
|
-
function
|
|
572
|
+
function gr() {
|
|
573
573
|
{
|
|
574
574
|
if (fn.current) {
|
|
575
575
|
var g = k(fn.current.type);
|
|
@@ -581,7 +581,7 @@ Check the render method of \`` + g + "`.";
|
|
|
581
581
|
return "";
|
|
582
582
|
}
|
|
583
583
|
}
|
|
584
|
-
function
|
|
584
|
+
function hs(g) {
|
|
585
585
|
{
|
|
586
586
|
if (g !== void 0) {
|
|
587
587
|
var M = g.fileName.replace(/^.*[\\\/]/, ""), L = g.lineNumber;
|
|
@@ -592,10 +592,10 @@ Check your code at ` + M + ":" + L + ".";
|
|
|
592
592
|
return "";
|
|
593
593
|
}
|
|
594
594
|
}
|
|
595
|
-
var
|
|
596
|
-
function
|
|
595
|
+
var vr = {};
|
|
596
|
+
function gs(g) {
|
|
597
597
|
{
|
|
598
|
-
var M =
|
|
598
|
+
var M = gr();
|
|
599
599
|
if (!M) {
|
|
600
600
|
var L = typeof g == "string" ? g : g.displayName || g.name;
|
|
601
601
|
L && (M = `
|
|
@@ -605,27 +605,27 @@ Check the top-level render call using <` + L + ">.");
|
|
|
605
605
|
return M;
|
|
606
606
|
}
|
|
607
607
|
}
|
|
608
|
-
function
|
|
608
|
+
function br(g, M) {
|
|
609
609
|
{
|
|
610
610
|
if (!g._store || g._store.validated || g.key != null)
|
|
611
611
|
return;
|
|
612
612
|
g._store.validated = !0;
|
|
613
|
-
var L =
|
|
614
|
-
if (
|
|
613
|
+
var L = gs(M);
|
|
614
|
+
if (vr[L])
|
|
615
615
|
return;
|
|
616
|
-
|
|
616
|
+
vr[L] = !0;
|
|
617
617
|
var ne = "";
|
|
618
618
|
g && g._owner && g._owner !== fn.current && (ne = " It was passed a child from " + k(g._owner.type) + "."), Ke(g), _('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', L, ne), Ke(null);
|
|
619
619
|
}
|
|
620
620
|
}
|
|
621
|
-
function
|
|
621
|
+
function yr(g, M) {
|
|
622
622
|
{
|
|
623
623
|
if (typeof g != "object")
|
|
624
624
|
return;
|
|
625
625
|
if (un(g))
|
|
626
626
|
for (var L = 0; L < g.length; L++) {
|
|
627
627
|
var ne = g[L];
|
|
628
|
-
pn(ne) &&
|
|
628
|
+
pn(ne) && br(ne, M);
|
|
629
629
|
}
|
|
630
630
|
else if (pn(g))
|
|
631
631
|
g._store && (g._store.validated = !0);
|
|
@@ -633,11 +633,11 @@ Check the top-level render call using <` + L + ">.");
|
|
|
633
633
|
var le = v(g);
|
|
634
634
|
if (typeof le == "function" && le !== g.entries)
|
|
635
635
|
for (var me = le.call(g), ce; !(ce = me.next()).done; )
|
|
636
|
-
pn(ce.value) &&
|
|
636
|
+
pn(ce.value) && br(ce.value, M);
|
|
637
637
|
}
|
|
638
638
|
}
|
|
639
639
|
}
|
|
640
|
-
function
|
|
640
|
+
function vs(g) {
|
|
641
641
|
{
|
|
642
642
|
var M = g.type;
|
|
643
643
|
if (M == null || typeof M == "string")
|
|
@@ -653,7 +653,7 @@ Check the top-level render call using <` + L + ">.");
|
|
|
653
653
|
return;
|
|
654
654
|
if (L) {
|
|
655
655
|
var ne = k(M);
|
|
656
|
-
|
|
656
|
+
rs(L, g.props, "prop", ne, g);
|
|
657
657
|
} else if (M.PropTypes !== void 0 && !mn) {
|
|
658
658
|
mn = !0;
|
|
659
659
|
var le = k(M);
|
|
@@ -662,7 +662,7 @@ Check the top-level render call using <` + L + ">.");
|
|
|
662
662
|
typeof M.getDefaultProps == "function" && !M.getDefaultProps.isReactClassApproved && _("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
|
|
663
663
|
}
|
|
664
664
|
}
|
|
665
|
-
function
|
|
665
|
+
function bs(g) {
|
|
666
666
|
{
|
|
667
667
|
for (var M = Object.keys(g.props), L = 0; L < M.length; L++) {
|
|
668
668
|
var ne = M[L];
|
|
@@ -674,18 +674,18 @@ Check the top-level render call using <` + L + ">.");
|
|
|
674
674
|
g.ref !== null && (Ke(g), _("Invalid attribute `ref` supplied to `React.Fragment`."), Ke(null));
|
|
675
675
|
}
|
|
676
676
|
}
|
|
677
|
-
function
|
|
677
|
+
function _r(g, M, L, ne, le, me) {
|
|
678
678
|
{
|
|
679
679
|
var ce = $(g);
|
|
680
680
|
if (!ce) {
|
|
681
|
-
var
|
|
682
|
-
(g === void 0 || typeof g == "object" && g !== null && Object.keys(g).length === 0) && (
|
|
683
|
-
var xe =
|
|
684
|
-
xe ?
|
|
681
|
+
var se = "";
|
|
682
|
+
(g === void 0 || typeof g == "object" && g !== null && Object.keys(g).length === 0) && (se += " 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 = hs(le);
|
|
684
|
+
xe ? se += xe : se += gr();
|
|
685
685
|
var he;
|
|
686
|
-
g === null ? he = "null" : un(g) ? he = "array" : g !== void 0 && g.$$typeof === e ? (he = "<" + (k(g.type) || "Unknown") + " />",
|
|
686
|
+
g === null ? he = "null" : un(g) ? he = "array" : g !== void 0 && g.$$typeof === e ? (he = "<" + (k(g.type) || "Unknown") + " />", se = " Did you accidentally export a JSX literal instead of a component?") : he = typeof g, _("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", he, se);
|
|
687
687
|
}
|
|
688
|
-
var ge =
|
|
688
|
+
var ge = ps(g, M, L, 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 <` + L + ">.");
|
|
|
694
694
|
if (ne)
|
|
695
695
|
if (un(ke)) {
|
|
696
696
|
for (var Ge = 0; Ge < ke.length; Ge++)
|
|
697
|
-
|
|
697
|
+
yr(ke[Ge], g);
|
|
698
698
|
Object.freeze && Object.freeze(ke);
|
|
699
699
|
} else
|
|
700
700
|
_("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, g);
|
|
703
703
|
}
|
|
704
|
-
return g === r ?
|
|
704
|
+
return g === r ? bs(ge) : vs(ge), ge;
|
|
705
705
|
}
|
|
706
706
|
}
|
|
707
|
-
function bs(g, M, L) {
|
|
708
|
-
return yr(g, M, L, !0);
|
|
709
|
-
}
|
|
710
707
|
function ys(g, M, L) {
|
|
711
|
-
return
|
|
708
|
+
return _r(g, M, L, !0);
|
|
712
709
|
}
|
|
713
|
-
|
|
714
|
-
|
|
710
|
+
function _s(g, M, L) {
|
|
711
|
+
return _r(g, M, L, !1);
|
|
712
|
+
}
|
|
713
|
+
var xs = _s, ws = ys;
|
|
714
|
+
ot.Fragment = r, ot.jsx = xs, ot.jsxs = ws;
|
|
715
715
|
}()), ot;
|
|
716
716
|
}
|
|
717
|
-
process.env.NODE_ENV === "production" ? Wn.exports =
|
|
717
|
+
process.env.NODE_ENV === "production" ? Wn.exports = Ls() : Wn.exports = Bs();
|
|
718
718
|
var a = Wn.exports;
|
|
719
|
-
const
|
|
719
|
+
const qs = () => {
|
|
720
720
|
const [t, e] = J(window.location.pathname), n = () => {
|
|
721
721
|
const r = window.location.pathname;
|
|
722
722
|
e(r);
|
|
@@ -730,7 +730,7 @@ const Bs = () => {
|
|
|
730
730
|
n.current ? t() : n.current = !0;
|
|
731
731
|
}, e);
|
|
732
732
|
};
|
|
733
|
-
function
|
|
733
|
+
function Ws(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), m = pe(!0);
|
|
735
735
|
u.current = t;
|
|
736
736
|
var f = typeof window < "u", p = !e && e !== 0 && f;
|
|
@@ -786,9 +786,9 @@ function qs(t, e, n) {
|
|
|
786
786
|
}, [h, v, e, _, b, p, f, y]);
|
|
787
787
|
return S;
|
|
788
788
|
}
|
|
789
|
-
function
|
|
789
|
+
function pa(t, e, n) {
|
|
790
790
|
var r = n === void 0 ? {} : n, s = r.leading, i = r.trailing;
|
|
791
|
-
return
|
|
791
|
+
return Ws(t, e, { maxWait: e, leading: s === void 0 || s, trailing: i === void 0 || i });
|
|
792
792
|
}
|
|
793
793
|
let hn;
|
|
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: m } = u;
|
|
809
809
|
n === "window" || !n.closest(`#${m}`) || o() === r || c();
|
|
810
|
-
}, l =
|
|
810
|
+
}, l = pa(
|
|
811
811
|
() => {
|
|
812
812
|
o() !== r && (e && (clearTimeout(hn), document.body.classList.add("is-resizing"), hn = setTimeout(() => {
|
|
813
813
|
document.body.classList.remove("is-resizing");
|
|
@@ -817,7 +817,7 @@ const jt = (t = !0, e = !1, n = "window") => {
|
|
|
817
817
|
{ leading: !0 }
|
|
818
818
|
);
|
|
819
819
|
return r;
|
|
820
|
-
},
|
|
820
|
+
}, Us = ({
|
|
821
821
|
scrollPosition: t = 0,
|
|
822
822
|
// The position on the page to scroll past
|
|
823
823
|
offset: e = { down: 0, up: 10 },
|
|
@@ -847,11 +847,11 @@ const jt = (t = !0, e = !1, n = "window") => {
|
|
|
847
847
|
return;
|
|
848
848
|
}
|
|
849
849
|
Math.abs(f) >= e.up && !o.scrollUp && (r(), c({ scrollUp: !0, scrollDown: !1 }));
|
|
850
|
-
}, l =
|
|
850
|
+
}, l = pa(() => {
|
|
851
851
|
d();
|
|
852
852
|
}, 250);
|
|
853
853
|
return s;
|
|
854
|
-
},
|
|
854
|
+
}, zs = (t = [], e = !0) => {
|
|
855
855
|
t = Array.isArray(t) ? t : [t];
|
|
856
856
|
const n = pe(!1);
|
|
857
857
|
_t(() => {
|
|
@@ -862,19 +862,19 @@ const jt = (t = !0, e = !1, n = "window") => {
|
|
|
862
862
|
r && (r.scrollIntoView(e ? { behavior: "smooth" } : null), n.current = !0);
|
|
863
863
|
}
|
|
864
864
|
}, t);
|
|
865
|
-
},
|
|
865
|
+
}, ha = (t, e) => {
|
|
866
866
|
Array.isArray(e) || (e = [e]);
|
|
867
867
|
const n = pt(t);
|
|
868
868
|
return e.forEach(({ type: r, value: s }) => {
|
|
869
|
-
|
|
869
|
+
ks(n, r, s);
|
|
870
870
|
}), n;
|
|
871
|
-
},
|
|
871
|
+
}, ga = (t) => {
|
|
872
872
|
const e = [];
|
|
873
873
|
return t.forEach((n) => {
|
|
874
874
|
const r = parseInt(n);
|
|
875
875
|
isNaN(r) || e.push(r);
|
|
876
876
|
}), e.sort((n, r) => n - r);
|
|
877
|
-
},
|
|
877
|
+
}, va = (t, e, n) => {
|
|
878
878
|
let r = n.mobile;
|
|
879
879
|
for (const s in e) {
|
|
880
880
|
const i = parseInt(String(e[s]));
|
|
@@ -884,7 +884,7 @@ const jt = (t = !0, e = !1, n = "window") => {
|
|
|
884
884
|
break;
|
|
885
885
|
}
|
|
886
886
|
return r;
|
|
887
|
-
},
|
|
887
|
+
}, Zs = (t) => t.replace(/[A-Z]/g, (e) => `-${e.toLowerCase()}`), Hs = (t = "") => t.replace(/(?:^\w|[A-Z]|\b\w)/g, (e) => e.toUpperCase()).replace(/[&\s]+/g, ""), Vs = (t = "") => t.charAt(0).toUpperCase() + t.slice(1), Le = "https://storage.googleapis.com/apolitical-assets/", ft = {
|
|
888
888
|
general: "hello@apolitical.co",
|
|
889
889
|
support: "concierge@apolitical.co",
|
|
890
890
|
"data-protection": {
|
|
@@ -895,8 +895,8 @@ const jt = (t = !0, e = !1, n = "window") => {
|
|
|
895
895
|
ARTICLE: "microcourseArticle",
|
|
896
896
|
DISCUSSION: "microcourseDiscussion",
|
|
897
897
|
QUIZ: "assessmentQuiz"
|
|
898
|
-
},
|
|
899
|
-
function
|
|
898
|
+
}, Pl = "200,000+", Ml = "160+";
|
|
899
|
+
function Ys(t) {
|
|
900
900
|
return t ? {
|
|
901
901
|
"--icon": `url(${Le}icons/${t}.svg)`
|
|
902
902
|
} : {};
|
|
@@ -912,7 +912,7 @@ const Ue = {
|
|
|
912
912
|
weeks: 52,
|
|
913
913
|
days: 365
|
|
914
914
|
}
|
|
915
|
-
},
|
|
915
|
+
}, Ks = (t, e = "en") => new Date(t).toLocaleString(e, { day: "numeric", month: "short" }), ba = (t, e = "en") => new Date(t).toLocaleString(e, {
|
|
916
916
|
weekday: "long",
|
|
917
917
|
day: "numeric",
|
|
918
918
|
month: "short",
|
|
@@ -935,7 +935,7 @@ const Ue = {
|
|
|
935
935
|
}, Wt = (t) => {
|
|
936
936
|
const n = (t || /* @__PURE__ */ new Date()).toUTCString();
|
|
937
937
|
return new Date(n);
|
|
938
|
-
},
|
|
938
|
+
}, Gs = (t, e, n) => {
|
|
939
939
|
let r;
|
|
940
940
|
const s = Wt(), i = Wt(new Date(t));
|
|
941
941
|
try {
|
|
@@ -952,7 +952,7 @@ const Ue = {
|
|
|
952
952
|
return r / Ue.milliseconds.inHour <= e;
|
|
953
953
|
}
|
|
954
954
|
return !1;
|
|
955
|
-
},
|
|
955
|
+
}, Qs = (t) => new Promise((e) => setTimeout(e, t)), rt = {
|
|
956
956
|
/* Common */
|
|
957
957
|
apolitical: "Apolitical",
|
|
958
958
|
dates_now: "now",
|
|
@@ -1373,7 +1373,7 @@ Thank you for helping to protect the Apolitical community from abusive content.`
|
|
|
1373
1373
|
markdown_iframe_video: "Video",
|
|
1374
1374
|
markdown_iframe_padlet: "Interactive board",
|
|
1375
1375
|
markdown_iframe_poll: "Poll"
|
|
1376
|
-
},
|
|
1376
|
+
}, Js = {
|
|
1377
1377
|
...rt,
|
|
1378
1378
|
/* Navigation */
|
|
1379
1379
|
languageSwitcher_label: "Me gustaría leer este artículo en...",
|
|
@@ -1381,7 +1381,7 @@ Thank you for helping to protect the Apolitical community from abusive content.`
|
|
|
1381
1381
|
languageSwitcher_translation_human: "traducido por un humano",
|
|
1382
1382
|
languageSwitcher_translation_machine: "traducido por máquina",
|
|
1383
1383
|
languageSwitcher_disclaimer: "Este contenido fue traducido automáticamente y ocasionalmente tendrá errores de género u otras traducciones directas. Estamos intentando resolver este problema, pero mientras tanto, si notas algún error grave, escríbenos a <link>{email}</link>"
|
|
1384
|
-
},
|
|
1384
|
+
}, Xs = {
|
|
1385
1385
|
...rt,
|
|
1386
1386
|
/* Navigation */
|
|
1387
1387
|
languageSwitcher_label: "Je voudrais lire cet article dans...",
|
|
@@ -1391,7 +1391,7 @@ Thank you for helping to protect the Apolitical community from abusive content.`
|
|
|
1391
1391
|
languageSwitcher_disclaimer: "Ce contenu est traduit automatiquement et contiendra d’évantuelles erreurs de genre ou d’autres traductions directes. Nous essayons de résoudre ce problème, mais en attendant, si vous remarquez une erreur importante, faites-le nous savoir à <link>{email}</link>",
|
|
1392
1392
|
/* Text */
|
|
1393
1393
|
collapsibleSection_summary: "En savoir plus"
|
|
1394
|
-
},
|
|
1394
|
+
}, ei = {
|
|
1395
1395
|
...rt,
|
|
1396
1396
|
/* Navigation */
|
|
1397
1397
|
languageSwitcher_label: "Eu gostaria de ler este artigo em...",
|
|
@@ -1399,16 +1399,16 @@ Thank you for helping to protect the Apolitical community from abusive content.`
|
|
|
1399
1399
|
languageSwitcher_translation_human: "traduzido por um humano",
|
|
1400
1400
|
languageSwitcher_translation_machine: "traduzido por máquina",
|
|
1401
1401
|
languageSwitcher_disclaimer: "Este conteúdo foi traduzido automaticamente e, ocasionalmente, poderão ocorrer erros de linguagem de gênero ou outras traduções diretas. Estamos tentando resolver isso, porém se perceber algo errado por favor nos avise em <link>{email}</link>"
|
|
1402
|
-
},
|
|
1402
|
+
}, ti = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1403
1403
|
__proto__: null,
|
|
1404
1404
|
en: rt,
|
|
1405
|
-
es:
|
|
1406
|
-
fr:
|
|
1407
|
-
pt:
|
|
1408
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
1405
|
+
es: Js,
|
|
1406
|
+
fr: Xs,
|
|
1407
|
+
pt: ei
|
|
1408
|
+
}, Symbol.toStringTag, { value: "Module" })), Xn = (t, e = rt) => t in e, Ne = (t, e, n, r, s = {}) => {
|
|
1409
1409
|
let i = "";
|
|
1410
|
-
return
|
|
1411
|
-
},
|
|
1410
|
+
return Xn(`${e}_${n}`) ? i = t({ id: `${e}_${n}` }, s) : i = t({ id: e }, { [r]: n, ...s }), i;
|
|
1411
|
+
}, ni = (t, e, n) => {
|
|
1412
1412
|
if (!t || t === 0)
|
|
1413
1413
|
return "0";
|
|
1414
1414
|
e || (e = 0), n || (n = ["k", "m", "b", "t"]);
|
|
@@ -1424,12 +1424,12 @@ Thank you for helping to protect the Apolitical community from abusive content.`
|
|
|
1424
1424
|
return r;
|
|
1425
1425
|
}, Bt = (t, e) => Y.Children.map(t, (n) => Object.is(n, null) ? n : Y.cloneElement(n, {
|
|
1426
1426
|
...e
|
|
1427
|
-
})),
|
|
1427
|
+
})), ri = (t = 0) => {
|
|
1428
1428
|
setTimeout(() => {
|
|
1429
1429
|
const e = document.querySelector(".splash-screen");
|
|
1430
1430
|
e && e.remove(), window.prerenderReady = !0;
|
|
1431
1431
|
}, t);
|
|
1432
|
-
},
|
|
1432
|
+
}, ai = (t) => t.replace(/\s+/g, "").length > 0, kr = (t) => {
|
|
1433
1433
|
const e = t.length > 8, n = /[0-9]/.test(t) && /[`!@#$%^&*()_+\-=[\]{}£;':"\\|,.<>/?~]/.test(t), r = new RegExp("^(?=.*?[A-Z])(?=.*?[a-z])").test(t);
|
|
1434
1434
|
return {
|
|
1435
1435
|
isValid: e && n && r,
|
|
@@ -1439,7 +1439,7 @@ Thank you for helping to protect the Apolitical community from abusive content.`
|
|
|
1439
1439
|
includesLowerAndUppercase: r
|
|
1440
1440
|
}
|
|
1441
1441
|
};
|
|
1442
|
-
},
|
|
1442
|
+
}, ie = ({
|
|
1443
1443
|
variant: t = "primary",
|
|
1444
1444
|
size: e = "medium",
|
|
1445
1445
|
styling: n = { muted: !1, fullWidth: !1 },
|
|
@@ -1455,8 +1455,8 @@ Thank you for helping to protect the Apolitical community from abusive content.`
|
|
|
1455
1455
|
}) => {
|
|
1456
1456
|
const p = jt(typeof e == "object");
|
|
1457
1457
|
if (typeof e == "object" && typeof p == "number") {
|
|
1458
|
-
const v = Object.assign({}, e), y =
|
|
1459
|
-
e =
|
|
1458
|
+
const v = Object.assign({}, e), y = ga(Object.keys(v));
|
|
1459
|
+
e = va(p, y, v);
|
|
1460
1460
|
}
|
|
1461
1461
|
const h = [];
|
|
1462
1462
|
typeof e == "string" && h.push(e), r && (h.push("icon"), typeof r == "object" ? (h.push(r.icon), r.position ? h.push(r.position) : h.push("left"), r.hover && h.push(`hover_${r.hover}`), r.animate && (h.push("animate"), typeof r.animate == "string" && h.push(r.animate))) : (h.push(r), !r.includes("right") && !r.includes("left") && h.push("left"))), n.muted && h.push("muted"), n.fullWidth && h.push("full-width");
|
|
@@ -1478,7 +1478,7 @@ Thank you for helping to protect the Apolitical community from abusive content.`
|
|
|
1478
1478
|
u || (l ? /* @__PURE__ */ a.jsx(be, { showOnFocus: !1, children: l }) : null)
|
|
1479
1479
|
);
|
|
1480
1480
|
}, kt = ({ buttons: t, className: e = "", ...n }) => {
|
|
1481
|
-
const r = t.length > 1 ? "ul" : "p", s = t.map((i, o) => r === "p" ? /* @__PURE__ */ a.jsx(
|
|
1481
|
+
const r = t.length > 1 ? "ul" : "p", s = t.map((i, o) => r === "p" ? /* @__PURE__ */ a.jsx(ie, { ...i }, o) : /* @__PURE__ */ a.jsx("li", { children: /* @__PURE__ */ a.jsx(ie, { ...i }) }, o));
|
|
1482
1482
|
return Y.createElement(r, {
|
|
1483
1483
|
className: E("button-wrapper", e),
|
|
1484
1484
|
...n,
|
|
@@ -1488,7 +1488,7 @@ Thank you for helping to protect the Apolitical community from abusive content.`
|
|
|
1488
1488
|
const ze = ({ className: t = "", maxWidth: e = !1 }) => {
|
|
1489
1489
|
const n = e ? { "--max-width": `${e / 16}rem` } : {};
|
|
1490
1490
|
return /* @__PURE__ */ a.jsx("hr", { className: E(t, { "has-max-width": e }), style: n });
|
|
1491
|
-
},
|
|
1491
|
+
}, Tr = {
|
|
1492
1492
|
card: {
|
|
1493
1493
|
range: [
|
|
1494
1494
|
{
|
|
@@ -1591,17 +1591,17 @@ const ze = ({ className: t = "", maxWidth: e = !1 }) => {
|
|
|
1591
1591
|
],
|
|
1592
1592
|
sizes: "(min-width: 1024px) 453px, 20vw"
|
|
1593
1593
|
}
|
|
1594
|
-
},
|
|
1594
|
+
}, si = ({
|
|
1595
1595
|
aspect: t,
|
|
1596
1596
|
range: e,
|
|
1597
1597
|
sizes: n
|
|
1598
1598
|
}) => {
|
|
1599
|
-
const { range: r, sizes: s } = t ?
|
|
1599
|
+
const { range: r, sizes: s } = t ? Tr[t] : Tr.fallback;
|
|
1600
1600
|
return { range: e && e.length > 0 ? e : r, sizes: n || s };
|
|
1601
|
-
},
|
|
1601
|
+
}, ii = ({ format: t, height: e, query: n, width: r }) => {
|
|
1602
1602
|
let s = `w=${r}&h=${e}`;
|
|
1603
1603
|
return s = t ? `${s}&fm=${t}` : s, s = n ? `${s}&${n}` : s, s;
|
|
1604
|
-
}, gn = ({ format: t, range: e, url: n, query: r }) => e.map(({ height: s, width: i }) => `${n}?${
|
|
1604
|
+
}, gn = ({ format: t, range: e, url: n, query: r }) => e.map(({ height: s, width: i }) => `${n}?${ii({
|
|
1605
1605
|
format: t,
|
|
1606
1606
|
height: s,
|
|
1607
1607
|
query: r,
|
|
@@ -1618,7 +1618,7 @@ const Tt = ({ image: t, className: e, testId: n }) => {
|
|
|
1618
1618
|
loading: l,
|
|
1619
1619
|
decoding: u,
|
|
1620
1620
|
fetchPriority: m
|
|
1621
|
-
} = t, { range: f, sizes: p } =
|
|
1621
|
+
} = t, { range: f, sizes: p } = si(t), h = gn({ format: "avif", query: o, range: f, url: c }), b = gn({ format: "webp", query: o, range: f, url: c }), v = gn({ format: "", query: o, range: f, url: c });
|
|
1622
1622
|
return i && i.includes("svg") ? /* @__PURE__ */ a.jsx("picture", { className: e, children: /* @__PURE__ */ a.jsx(
|
|
1623
1623
|
"img",
|
|
1624
1624
|
{
|
|
@@ -1659,7 +1659,7 @@ const Tt = ({ image: t, className: e, testId: n }) => {
|
|
|
1659
1659
|
)
|
|
1660
1660
|
] });
|
|
1661
1661
|
};
|
|
1662
|
-
const
|
|
1662
|
+
const Rl = ({ image: t, className: e = "", testId: n }) => /* @__PURE__ */ a.jsx(
|
|
1663
1663
|
"div",
|
|
1664
1664
|
{
|
|
1665
1665
|
className: `image-container ${e}`,
|
|
@@ -1682,7 +1682,7 @@ const Ml = ({ image: t, className: e = "", testId: n }) => /* @__PURE__ */ a.jsx
|
|
|
1682
1682
|
}
|
|
1683
1683
|
return n ? Y.createElement(n, { children: e, className: r, ...c }) : /* @__PURE__ */ a.jsx(a.Fragment, { children: e });
|
|
1684
1684
|
};
|
|
1685
|
-
const
|
|
1685
|
+
const Fl = ({ currentStep: t = 1, steps: e = 1 }) => /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
|
|
1686
1686
|
/* @__PURE__ */ a.jsx(be, { children: /* @__PURE__ */ a.jsx(
|
|
1687
1687
|
ye,
|
|
1688
1688
|
{
|
|
@@ -1714,7 +1714,7 @@ const Rl = ({ currentStep: t = 1, steps: e = 1 }) => /* @__PURE__ */ a.jsxs(a.Fr
|
|
|
1714
1714
|
] }, r);
|
|
1715
1715
|
}) }) })
|
|
1716
1716
|
] });
|
|
1717
|
-
const
|
|
1717
|
+
const Ol = ({ elementId: t, offset: e = 20 }) => {
|
|
1718
1718
|
const n = H(), r = () => {
|
|
1719
1719
|
const s = document.getElementById(t);
|
|
1720
1720
|
if (!s)
|
|
@@ -1725,7 +1725,7 @@ const Fl = ({ elementId: t, offset: e = 20 }) => {
|
|
|
1725
1725
|
});
|
|
1726
1726
|
};
|
|
1727
1727
|
return /* @__PURE__ */ a.jsx(
|
|
1728
|
-
|
|
1728
|
+
ie,
|
|
1729
1729
|
{
|
|
1730
1730
|
variant: "secondary",
|
|
1731
1731
|
className: "return-to-nav",
|
|
@@ -1736,11 +1736,11 @@ const Fl = ({ elementId: t, offset: e = 20 }) => {
|
|
|
1736
1736
|
}
|
|
1737
1737
|
);
|
|
1738
1738
|
};
|
|
1739
|
-
const
|
|
1739
|
+
const Al = ({ items: t, className: e = "", ...n }) => /* @__PURE__ */ a.jsx("ul", { className: E("buckets", e), ...n, children: t.map(({ title: r, text: s, link: i, ...o }, c) => /* @__PURE__ */ a.jsx("li", { className: "bucket text-medium", children: /* @__PURE__ */ a.jsxs("a", { href: i, ...o, children: [
|
|
1740
1740
|
/* @__PURE__ */ a.jsx("p", { className: "title", children: r }),
|
|
1741
1741
|
/* @__PURE__ */ a.jsx("p", { children: s })
|
|
1742
|
-
] }) }, c)) }),
|
|
1743
|
-
class
|
|
1742
|
+
] }) }, c)) }), Er = 300, Sr = "ease-in-out";
|
|
1743
|
+
class oi {
|
|
1744
1744
|
constructor(e) {
|
|
1745
1745
|
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));
|
|
1746
1746
|
}
|
|
@@ -1758,8 +1758,8 @@ class ii {
|
|
|
1758
1758
|
height: [e, n]
|
|
1759
1759
|
},
|
|
1760
1760
|
{
|
|
1761
|
-
duration:
|
|
1762
|
-
easing:
|
|
1761
|
+
duration: Er,
|
|
1762
|
+
easing: Sr
|
|
1763
1763
|
}
|
|
1764
1764
|
), this.animation.onfinish = () => this.onAnimationFinish(!1), this.animation.oncancel = () => this.isClosing = !1;
|
|
1765
1765
|
}
|
|
@@ -1774,8 +1774,8 @@ class ii {
|
|
|
1774
1774
|
height: [e, n]
|
|
1775
1775
|
},
|
|
1776
1776
|
{
|
|
1777
|
-
duration:
|
|
1778
|
-
easing:
|
|
1777
|
+
duration: Er,
|
|
1778
|
+
easing: Sr
|
|
1779
1779
|
}
|
|
1780
1780
|
), this.animation.onfinish = () => this.onAnimationFinish(!0), this.animation.oncancel = () => this.isExpanding = !1;
|
|
1781
1781
|
}
|
|
@@ -1783,7 +1783,7 @@ class ii {
|
|
|
1783
1783
|
this.el.open = e, this.animation = null, this.isClosing = !1, this.isExpanding = !1, this.el.style.height = this.el.style.overflow = "";
|
|
1784
1784
|
}
|
|
1785
1785
|
}
|
|
1786
|
-
const
|
|
1786
|
+
const er = ({
|
|
1787
1787
|
label: t = !1,
|
|
1788
1788
|
className: e = "",
|
|
1789
1789
|
children: n,
|
|
@@ -1792,7 +1792,7 @@ const Xn = ({
|
|
|
1792
1792
|
const s = H(), i = pe(null);
|
|
1793
1793
|
return ae(() => {
|
|
1794
1794
|
let o;
|
|
1795
|
-
return r && (o = new
|
|
1795
|
+
return r && (o = new oi(i.current)), () => {
|
|
1796
1796
|
r && o && o.cleanUp();
|
|
1797
1797
|
};
|
|
1798
1798
|
}, []), /* @__PURE__ */ a.jsxs(
|
|
@@ -1808,17 +1808,17 @@ const Xn = ({
|
|
|
1808
1808
|
]
|
|
1809
1809
|
}
|
|
1810
1810
|
);
|
|
1811
|
-
},
|
|
1811
|
+
}, Cr = {
|
|
1812
1812
|
cube: "box",
|
|
1813
1813
|
graduationCap: "graduation-cap",
|
|
1814
1814
|
person: "user",
|
|
1815
1815
|
speech: "speech-bubble_round",
|
|
1816
1816
|
star: "star_empty_thin"
|
|
1817
|
-
},
|
|
1817
|
+
}, ci = (t) => {
|
|
1818
1818
|
let e = t;
|
|
1819
|
-
return Object.keys(
|
|
1819
|
+
return Object.keys(Cr).includes(t) && (e = Cr[t]), `url(${Le}icons/${e}.svg)`;
|
|
1820
1820
|
};
|
|
1821
|
-
const
|
|
1821
|
+
const Nr = {
|
|
1822
1822
|
customCard: "custom",
|
|
1823
1823
|
microcourse: "course",
|
|
1824
1824
|
solutionArticle: "article",
|
|
@@ -1826,19 +1826,19 @@ const Cr = {
|
|
|
1826
1826
|
listPage: "list",
|
|
1827
1827
|
learningHub: "learning-hub",
|
|
1828
1828
|
communityPage: "communityPage"
|
|
1829
|
-
},
|
|
1829
|
+
}, li = ({
|
|
1830
1830
|
contentType: t,
|
|
1831
1831
|
customIcon: e,
|
|
1832
1832
|
customLabel: n,
|
|
1833
1833
|
className: r = ""
|
|
1834
1834
|
}) => {
|
|
1835
|
-
const s = H(), i = e ? { "--custom-icon":
|
|
1835
|
+
const s = H(), i = e ? { "--custom-icon": ci(e) } : {}, o = Xn(`contentTypeLabel_${t}`) ? s.formatMessage({ id: `contentTypeLabel_${t}` }) : !1;
|
|
1836
1836
|
return !n && !o ? null : /* @__PURE__ */ a.jsx(
|
|
1837
1837
|
"small",
|
|
1838
1838
|
{
|
|
1839
1839
|
className: E(
|
|
1840
1840
|
"content-type-label text-small",
|
|
1841
|
-
t in
|
|
1841
|
+
t in Nr ? Nr[t] : t,
|
|
1842
1842
|
r,
|
|
1843
1843
|
{
|
|
1844
1844
|
"has-custom-icon": e
|
|
@@ -1882,8 +1882,8 @@ const He = ({
|
|
|
1882
1882
|
let s = n && !!Object.keys(n).length;
|
|
1883
1883
|
const i = typeof n == "object" && "breakpoints" in n, o = jt(i);
|
|
1884
1884
|
if (i && typeof n == "object" && typeof o == "number") {
|
|
1885
|
-
const m = Object.assign({}, n.breakpoints), f =
|
|
1886
|
-
s =
|
|
1885
|
+
const m = Object.assign({}, n.breakpoints), f = ga(Object.keys(m));
|
|
1886
|
+
s = va(o, f, m);
|
|
1887
1887
|
}
|
|
1888
1888
|
const {
|
|
1889
1889
|
breakpoints: c,
|
|
@@ -1899,7 +1899,7 @@ const He = ({
|
|
|
1899
1899
|
children: /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
|
|
1900
1900
|
e && typeof e == "string" ? /* @__PURE__ */ a.jsx(Ie, { options: { forceBlock: !0 }, children: e }) : e,
|
|
1901
1901
|
s && typeof n == "object" && (l || /* @__PURE__ */ a.jsx(
|
|
1902
|
-
|
|
1902
|
+
ie,
|
|
1903
1903
|
{
|
|
1904
1904
|
...u,
|
|
1905
1905
|
variant: n.variant ? n.variant : "secondary",
|
|
@@ -1910,10 +1910,10 @@ const He = ({
|
|
|
1910
1910
|
}
|
|
1911
1911
|
);
|
|
1912
1912
|
};
|
|
1913
|
-
const zn = ({ children: t, ...e }) => /* @__PURE__ */ a.jsx("p", { ...e, children: t }),
|
|
1913
|
+
const zn = ({ children: t, ...e }) => /* @__PURE__ */ a.jsx("p", { ...e, children: t }), ya = { q: zn, blockquote: zn };
|
|
1914
1914
|
for (let t = 1; t <= 6; t++)
|
|
1915
|
-
|
|
1916
|
-
const
|
|
1915
|
+
ya[`h${t}`] = { component: zn, props: { className: "title" } };
|
|
1916
|
+
const ui = ({
|
|
1917
1917
|
type: t = "default",
|
|
1918
1918
|
className: e = "",
|
|
1919
1919
|
heading: n = !1,
|
|
@@ -1926,13 +1926,13 @@ const li = ({
|
|
|
1926
1926
|
options: {
|
|
1927
1927
|
wrapper: Y.Fragment,
|
|
1928
1928
|
forceBlock: !0,
|
|
1929
|
-
overrides:
|
|
1929
|
+
overrides: ya
|
|
1930
1930
|
},
|
|
1931
1931
|
children: r
|
|
1932
1932
|
}
|
|
1933
1933
|
) : /* @__PURE__ */ a.jsx("p", { children: r })
|
|
1934
1934
|
] });
|
|
1935
|
-
const
|
|
1935
|
+
const di = ({
|
|
1936
1936
|
className: t = "",
|
|
1937
1937
|
show: e = !1,
|
|
1938
1938
|
hide: n = !1,
|
|
@@ -1976,7 +1976,7 @@ const ui = ({
|
|
|
1976
1976
|
u !== "closed" && i
|
|
1977
1977
|
] }),
|
|
1978
1978
|
/* @__PURE__ */ a.jsx("p", { className: "cta", children: /* @__PURE__ */ a.jsx(
|
|
1979
|
-
|
|
1979
|
+
ie,
|
|
1980
1980
|
{
|
|
1981
1981
|
variant: "tertiary",
|
|
1982
1982
|
icon: { icon: "navigation_arrow", position: "left", animate: !0 },
|
|
@@ -1992,7 +1992,7 @@ const ui = ({
|
|
|
1992
1992
|
}
|
|
1993
1993
|
);
|
|
1994
1994
|
};
|
|
1995
|
-
const
|
|
1995
|
+
const Dl = ({
|
|
1996
1996
|
element: t = "ul",
|
|
1997
1997
|
layout: e = "vertical",
|
|
1998
1998
|
variant: n = "default",
|
|
@@ -2017,7 +2017,7 @@ const Al = ({
|
|
|
2017
2017
|
] }, `dl-${l}`) : /* @__PURE__ */ a.jsx("li", { style: m, children: typeof d.text == "string" ? /* @__PURE__ */ a.jsx(Ie, { options: u, children: d.text }) : d.text }, l);
|
|
2018
2018
|
})
|
|
2019
2019
|
});
|
|
2020
|
-
}, _e = () => Y.Fragment,
|
|
2020
|
+
}, _e = () => Y.Fragment, fi = ({ children: t }) => /* @__PURE__ */ a.jsx(Fe, { variant: "secondary", children: t }), mi = ({ 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 }), pi = ["span", "strong", "h1", "h2", "h3", "h4", "h5", "h6", "p"], hi = ({ children: t }) => {
|
|
2021
2021
|
const e = H();
|
|
2022
2022
|
if (!t)
|
|
2023
2023
|
return null;
|
|
@@ -2032,7 +2032,7 @@ const Al = ({
|
|
|
2032
2032
|
for (const o of qn.toArray(i.props.children))
|
|
2033
2033
|
if (!(!o || typeof o == "string" || typeof o == "number") && Y.isValidElement(o)) {
|
|
2034
2034
|
const c = o.type;
|
|
2035
|
-
if (
|
|
2035
|
+
if (pi.includes(c)) {
|
|
2036
2036
|
for (n = o.props.children; typeof n != "string" && (Array.isArray(n) && n[0].props && n[0].props.children && n[0].props.children[0]); )
|
|
2037
2037
|
n = n[0].props.children[0];
|
|
2038
2038
|
break;
|
|
@@ -2043,14 +2043,14 @@ const Al = ({
|
|
|
2043
2043
|
r.push(i);
|
|
2044
2044
|
const s = n ? n.toString() : "";
|
|
2045
2045
|
return /* @__PURE__ */ a.jsx(
|
|
2046
|
-
|
|
2046
|
+
er,
|
|
2047
2047
|
{
|
|
2048
2048
|
label: s,
|
|
2049
2049
|
className: ["Sources", "Resources"].includes(s) ? "discrete-links" : "",
|
|
2050
2050
|
children: r.map((i) => i)
|
|
2051
2051
|
}
|
|
2052
2052
|
);
|
|
2053
|
-
},
|
|
2053
|
+
}, gi = ({
|
|
2054
2054
|
children: t,
|
|
2055
2055
|
...e
|
|
2056
2056
|
}) => {
|
|
@@ -2069,7 +2069,7 @@ const Al = ({
|
|
|
2069
2069
|
return /* @__PURE__ */ a.jsx("div", { ...e, children: t });
|
|
2070
2070
|
}
|
|
2071
2071
|
return /* @__PURE__ */ a.jsx("div", { ...e, children: t });
|
|
2072
|
-
},
|
|
2072
|
+
}, vi = (t) => {
|
|
2073
2073
|
const e = H(), n = Date.now().toString();
|
|
2074
2074
|
let r = "default";
|
|
2075
2075
|
const s = t.src;
|
|
@@ -2088,10 +2088,10 @@ const Al = ({
|
|
|
2088
2088
|
),
|
|
2089
2089
|
/* @__PURE__ */ a.jsx("span", { id: `content-after-iframe-${n}`, tabIndex: -1 })
|
|
2090
2090
|
] });
|
|
2091
|
-
},
|
|
2091
|
+
}, $r = (t) => {
|
|
2092
2092
|
let e = "";
|
|
2093
2093
|
return t && typeof t != "string" && typeof t != "number" && typeof t != "boolean" && "type" in t && (e = t.type), e;
|
|
2094
|
-
},
|
|
2094
|
+
}, bi = ({
|
|
2095
2095
|
children: t,
|
|
2096
2096
|
...e
|
|
2097
2097
|
}) => {
|
|
@@ -2102,29 +2102,29 @@ const Al = ({
|
|
|
2102
2102
|
if (!(!i || typeof i == "string" || typeof i == "number") && Y.isValidElement(i)) {
|
|
2103
2103
|
const o = i.type;
|
|
2104
2104
|
if (["button", "center", "span", "strong"].includes(o) && i.props && i.props.children && i.props.children[0])
|
|
2105
|
-
for ((o === "button" ||
|
|
2105
|
+
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)); )
|
|
2106
2106
|
if (r.props && r.props.children && r.props.children[0])
|
|
2107
|
-
r = r.props.children[0], r &&
|
|
2107
|
+
r = r.props.children[0], r && $r(r) === "button" && (s = !0);
|
|
2108
2108
|
else
|
|
2109
2109
|
break;
|
|
2110
2110
|
}
|
|
2111
|
-
return s ? (n = { ...n, className: "button primary medium" }, /* @__PURE__ */ a.jsx("p", { className: "center", children: /* @__PURE__ */ a.jsx(
|
|
2112
|
-
},
|
|
2113
|
-
const
|
|
2111
|
+
return s ? (n = { ...n, className: "button primary medium" }, /* @__PURE__ */ a.jsx("p", { className: "center", children: /* @__PURE__ */ a.jsx(ie, { variant: "primary", size: "medium", ...n, children: r }) })) : /* @__PURE__ */ a.jsx("a", { ...n, children: r });
|
|
2112
|
+
}, Pr = ({ children: t }) => /* @__PURE__ */ a.jsx("span", { children: t });
|
|
2113
|
+
const yi = {
|
|
2114
2114
|
default: {
|
|
2115
|
-
a:
|
|
2115
|
+
a: bi,
|
|
2116
2116
|
// Override psuedo-code
|
|
2117
2117
|
// We give the content team psuedo-code short cuts to use in Contentful
|
|
2118
|
-
CollapsibleSection:
|
|
2118
|
+
CollapsibleSection: er,
|
|
2119
2119
|
TextBox: Fe,
|
|
2120
|
-
CaseStudy:
|
|
2120
|
+
CaseStudy: fi,
|
|
2121
2121
|
// Override embedded HTML
|
|
2122
2122
|
// Our content team previously used real HTML, which we need to tear out and replace with React components
|
|
2123
2123
|
style: _e,
|
|
2124
|
-
details:
|
|
2125
|
-
div:
|
|
2126
|
-
iframe:
|
|
2127
|
-
center:
|
|
2124
|
+
details: hi,
|
|
2125
|
+
div: gi,
|
|
2126
|
+
iframe: vi,
|
|
2127
|
+
center: mi
|
|
2128
2128
|
},
|
|
2129
2129
|
"text-only": {
|
|
2130
2130
|
h1: _e,
|
|
@@ -2155,7 +2155,7 @@ const bi = {
|
|
|
2155
2155
|
const o = {
|
|
2156
2156
|
wrapper: Y.Fragment,
|
|
2157
2157
|
forceBlock: !0,
|
|
2158
|
-
overrides:
|
|
2158
|
+
overrides: yi[r]
|
|
2159
2159
|
};
|
|
2160
2160
|
return /* @__PURE__ */ a.jsx(
|
|
2161
2161
|
"div",
|
|
@@ -2167,7 +2167,7 @@ const bi = {
|
|
|
2167
2167
|
}
|
|
2168
2168
|
);
|
|
2169
2169
|
};
|
|
2170
|
-
const
|
|
2170
|
+
const _i = ({
|
|
2171
2171
|
maxWidth: t = !1,
|
|
2172
2172
|
title: e,
|
|
2173
2173
|
subtitle: n,
|
|
@@ -2224,7 +2224,7 @@ const Ut = ({
|
|
|
2224
2224
|
},
|
|
2225
2225
|
e
|
|
2226
2226
|
);
|
|
2227
|
-
const
|
|
2227
|
+
const xi = ({
|
|
2228
2228
|
styling: t = {},
|
|
2229
2229
|
progress: e = 0,
|
|
2230
2230
|
text: n = !1,
|
|
@@ -2250,8 +2250,8 @@ const _i = ({
|
|
|
2250
2250
|
})
|
|
2251
2251
|
}
|
|
2252
2252
|
);
|
|
2253
|
-
},
|
|
2254
|
-
const vn = "loadingBlock_",
|
|
2253
|
+
}, _a = Oe(xi);
|
|
2254
|
+
const vn = "loadingBlock_", wi = ({ progress: t = 0, steps: e = !1, className: n = "" }) => {
|
|
2255
2255
|
const r = H();
|
|
2256
2256
|
e || (e = {
|
|
2257
2257
|
0: { text: r.formatMessage({ id: `${vn}loading` }) },
|
|
@@ -2275,13 +2275,13 @@ const vn = "loadingBlock_", xi = ({ progress: t = 0, steps: e = !1, className: n
|
|
|
2275
2275
|
style: o,
|
|
2276
2276
|
children: [
|
|
2277
2277
|
s && /* @__PURE__ */ a.jsx("span", { className: "step", children: e[s].text }),
|
|
2278
|
-
/* @__PURE__ */ a.jsx(
|
|
2278
|
+
/* @__PURE__ */ a.jsx(_a, { progress: t })
|
|
2279
2279
|
]
|
|
2280
2280
|
}
|
|
2281
2281
|
);
|
|
2282
|
-
},
|
|
2282
|
+
}, Il = Oe(wi);
|
|
2283
2283
|
const Se = ({ element: t = "div", className: e = "", ...n }) => /* @__PURE__ */ a.jsx(
|
|
2284
|
-
|
|
2284
|
+
Jn,
|
|
2285
2285
|
{
|
|
2286
2286
|
element: t,
|
|
2287
2287
|
className: E("loading-placeholder", e),
|
|
@@ -2337,11 +2337,11 @@ const Zn = {
|
|
|
2337
2337
|
"course-navigation": ["button", "button"],
|
|
2338
2338
|
"course-lesson-page": ["breadcrumb", "course-navigation", "text-page"],
|
|
2339
2339
|
"course-lesson-quiz": ["text-page", "quiz-box"]
|
|
2340
|
-
},
|
|
2340
|
+
}, 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) => {
|
|
2341
2341
|
const e = t && t.toUpperCase().trim().split(" ");
|
|
2342
2342
|
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) : "";
|
|
2343
|
-
}, Ct = ["#5AB6A3", "#A2D7AF", "#806056", "#3962B3"],
|
|
2344
|
-
const e = Math.ceil(26 / Ct.length), n =
|
|
2343
|
+
}, Ct = ["#5AB6A3", "#A2D7AF", "#806056", "#3962B3"], ji = (t) => {
|
|
2344
|
+
const e = Math.ceil(26 / Ct.length), n = ja(t).toLowerCase();
|
|
2345
2345
|
if (n === "")
|
|
2346
2346
|
return Ct[0];
|
|
2347
2347
|
const r = n.charCodeAt(0) - 96;
|
|
@@ -2349,13 +2349,13 @@ const Zn = {
|
|
|
2349
2349
|
if (r <= e * (s + 1))
|
|
2350
2350
|
return Ct[s];
|
|
2351
2351
|
};
|
|
2352
|
-
const
|
|
2352
|
+
const Mr = 256, Ve = ({
|
|
2353
2353
|
className: t = "",
|
|
2354
2354
|
src: e = "",
|
|
2355
2355
|
name: n,
|
|
2356
2356
|
alt: r,
|
|
2357
|
-
width: s =
|
|
2358
|
-
height: i =
|
|
2357
|
+
width: s = Mr,
|
|
2358
|
+
height: i = Mr,
|
|
2359
2359
|
...o
|
|
2360
2360
|
}) => {
|
|
2361
2361
|
const [c, d] = J(!1), l = pe(null);
|
|
@@ -2367,7 +2367,7 @@ const Pr = 256, Ve = ({
|
|
|
2367
2367
|
if (!f)
|
|
2368
2368
|
return;
|
|
2369
2369
|
const p = s, h = i;
|
|
2370
|
-
typeof window < "u" && window.devicePixelRatio && (m.width = p * window.devicePixelRatio, m.height = h * window.devicePixelRatio, f.scale(window.devicePixelRatio, window.devicePixelRatio)), f.fillStyle =
|
|
2370
|
+
typeof window < "u" && window.devicePixelRatio && (m.width = p * window.devicePixelRatio, m.height = h * window.devicePixelRatio, f.scale(window.devicePixelRatio, window.devicePixelRatio)), f.fillStyle = ji(n), f.fillRect(0, 0, p, h), f.font = `${p / 3}px Arial`, f.textAlign = "center", f.fillStyle = "white", f.fillText(ja(n), p / 2, h / 1.6);
|
|
2371
2371
|
}, [n]);
|
|
2372
2372
|
let u = !1;
|
|
2373
2373
|
return e && e !== "" && !c && (e.includes("http") || e.includes("//")) && (u = !0), /* @__PURE__ */ a.jsx(
|
|
@@ -2389,7 +2389,7 @@ const Pr = 256, Ve = ({
|
|
|
2389
2389
|
) : /* @__PURE__ */ a.jsx("canvas", { ref: l })
|
|
2390
2390
|
}
|
|
2391
2391
|
);
|
|
2392
|
-
},
|
|
2392
|
+
}, ka = (t) => t === "apolitical" ? {
|
|
2393
2393
|
image: `${Le}logos/member_apolitical.svg`
|
|
2394
2394
|
} : t === "community" || typeof t == "object" && !t.name ? {
|
|
2395
2395
|
image: `${Le}logos/member_community.svg`
|
|
@@ -2400,7 +2400,7 @@ const Pr = 256, Ve = ({
|
|
|
2400
2400
|
country: t.location && t.location.country || "",
|
|
2401
2401
|
url: `/profiles/${t.id}`,
|
|
2402
2402
|
image: t.image && t.image.thumbnail
|
|
2403
|
-
},
|
|
2403
|
+
}, ki = ({
|
|
2404
2404
|
role: t = "",
|
|
2405
2405
|
organisation: e = "",
|
|
2406
2406
|
country: n = "",
|
|
@@ -2422,14 +2422,14 @@ const rn = ({
|
|
|
2422
2422
|
gtmType: i = "member-click",
|
|
2423
2423
|
className: o = ""
|
|
2424
2424
|
}) => {
|
|
2425
|
-
const c = H(), { size: d = "medium" } = r, l =
|
|
2425
|
+
const c = H(), { size: d = "medium" } = r, l = ka(e);
|
|
2426
2426
|
l.name || (l.name = c.formatMessage({
|
|
2427
2427
|
id: `member_${typeof e == "string" ? e : "community"}`
|
|
2428
2428
|
}));
|
|
2429
2429
|
const { name: u, image: m } = l;
|
|
2430
2430
|
let { url: f } = l;
|
|
2431
2431
|
e.link !== void 0 && (e.link === !1 ? f = void 0 : f = e.link);
|
|
2432
|
-
const p =
|
|
2432
|
+
const p = ki(l), h = n && n.createdAt ? Un(n.createdAt) : !1, b = n && n.createdAt ? ba(n.createdAt) : "";
|
|
2433
2433
|
return Y.createElement(t, {
|
|
2434
2434
|
className: E("member text-medium", d, o),
|
|
2435
2435
|
children: /* @__PURE__ */ a.jsxs(
|
|
@@ -2459,10 +2459,10 @@ const rn = ({
|
|
|
2459
2459
|
)
|
|
2460
2460
|
});
|
|
2461
2461
|
};
|
|
2462
|
-
const
|
|
2462
|
+
const Rr = {
|
|
2463
2463
|
small: 24,
|
|
2464
2464
|
medium: 48
|
|
2465
|
-
},
|
|
2465
|
+
}, Ta = ({
|
|
2466
2466
|
element: t = "div",
|
|
2467
2467
|
contributors: { total: e, data: n } = { total: void 0, data: [] },
|
|
2468
2468
|
styling: { showText: r, size: s, showGap: i, showPlaceholders: o } = {
|
|
@@ -2484,7 +2484,7 @@ const Mr = {
|
|
|
2484
2484
|
/* @__PURE__ */ a.jsx("ul", { children: n.map((f, p) => {
|
|
2485
2485
|
let h, b = "";
|
|
2486
2486
|
if (p < c) {
|
|
2487
|
-
const { name: v = "", image: y = "" } =
|
|
2487
|
+
const { name: v = "", image: y = "" } = ka(f);
|
|
2488
2488
|
if (o)
|
|
2489
2489
|
return /* @__PURE__ */ a.jsx(Se, { element: "li", className: "contributor" }, p);
|
|
2490
2490
|
h = /* @__PURE__ */ a.jsx(
|
|
@@ -2492,8 +2492,8 @@ const Mr = {
|
|
|
2492
2492
|
{
|
|
2493
2493
|
name: v,
|
|
2494
2494
|
src: y,
|
|
2495
|
-
width:
|
|
2496
|
-
height:
|
|
2495
|
+
width: Rr[s || "medium"],
|
|
2496
|
+
height: Rr[s || "medium"]
|
|
2497
2497
|
}
|
|
2498
2498
|
);
|
|
2499
2499
|
} else if (p === c) {
|
|
@@ -2504,7 +2504,7 @@ const Mr = {
|
|
|
2504
2504
|
className: E({ "large-number": v > 99 }),
|
|
2505
2505
|
children: [
|
|
2506
2506
|
"+",
|
|
2507
|
-
|
|
2507
|
+
ni(v, 0)
|
|
2508
2508
|
]
|
|
2509
2509
|
}
|
|
2510
2510
|
), b = "number-left";
|
|
@@ -2515,7 +2515,7 @@ const Mr = {
|
|
|
2515
2515
|
] })
|
|
2516
2516
|
});
|
|
2517
2517
|
};
|
|
2518
|
-
const Nt = "emailHelperTextBox_",
|
|
2518
|
+
const Nt = "emailHelperTextBox_", Ti = ({
|
|
2519
2519
|
type: t,
|
|
2520
2520
|
email: e,
|
|
2521
2521
|
redirectPath: n,
|
|
@@ -2527,7 +2527,7 @@ const Nt = "emailHelperTextBox_", ki = ({
|
|
|
2527
2527
|
link: {},
|
|
2528
2528
|
mail: {},
|
|
2529
2529
|
error: ""
|
|
2530
|
-
}), [c, d] = J(!1), l =
|
|
2530
|
+
}), [c, d] = J(!1), l = oa(
|
|
2531
2531
|
(p) => {
|
|
2532
2532
|
p.preventDefault(), p.stopPropagation();
|
|
2533
2533
|
const h = (b) => {
|
|
@@ -2627,7 +2627,7 @@ const Nt = "emailHelperTextBox_", ki = ({
|
|
|
2627
2627
|
return ["link", "mail"].forEach((p) => {
|
|
2628
2628
|
u[p] = Object.keys(i[p]).length ? (h) => /* @__PURE__ */ a.jsx("a", { ...i[p], children: h }) : (h) => h;
|
|
2629
2629
|
}), /* @__PURE__ */ a.jsx(
|
|
2630
|
-
|
|
2630
|
+
ui,
|
|
2631
2631
|
{
|
|
2632
2632
|
type: i.type,
|
|
2633
2633
|
heading: c ? !1 : s.formatMessage({ id: `${i.path}_title` }),
|
|
@@ -2690,7 +2690,7 @@ const Qe = {
|
|
|
2690
2690
|
UP: "ArrowUp",
|
|
2691
2691
|
DOWN: "ArrowDown",
|
|
2692
2692
|
ENTER: "Enter"
|
|
2693
|
-
},
|
|
2693
|
+
}, Ei = 500, Si = ({
|
|
2694
2694
|
id: t,
|
|
2695
2695
|
name: e = t,
|
|
2696
2696
|
value: n,
|
|
@@ -2720,7 +2720,7 @@ const Qe = {
|
|
|
2720
2720
|
r || (r = v({ id: "inputAutocomplete_placeholder" })), ae(() => {
|
|
2721
2721
|
const j = setTimeout(() => {
|
|
2722
2722
|
h || m((x) => ({ ...x, debouncedInput: d }));
|
|
2723
|
-
},
|
|
2723
|
+
}, Ei);
|
|
2724
2724
|
return () => {
|
|
2725
2725
|
clearTimeout(j);
|
|
2726
2726
|
};
|
|
@@ -2809,7 +2809,7 @@ const Qe = {
|
|
|
2809
2809
|
)) })
|
|
2810
2810
|
] });
|
|
2811
2811
|
};
|
|
2812
|
-
const
|
|
2812
|
+
const Ea = ({
|
|
2813
2813
|
className: t = "",
|
|
2814
2814
|
disabled: e,
|
|
2815
2815
|
element: n = "p",
|
|
@@ -2862,17 +2862,17 @@ const Ta = ({
|
|
|
2862
2862
|
v
|
|
2863
2863
|
);
|
|
2864
2864
|
};
|
|
2865
|
-
const
|
|
2865
|
+
const Ci = Oe(function({
|
|
2866
2866
|
direction: e = "down"
|
|
2867
2867
|
}) {
|
|
2868
2868
|
return /* @__PURE__ */ a.jsx(
|
|
2869
|
-
|
|
2869
|
+
Jn,
|
|
2870
2870
|
{
|
|
2871
2871
|
className: E("rotating-chevron", `direction-${e}`)
|
|
2872
2872
|
}
|
|
2873
2873
|
);
|
|
2874
2874
|
});
|
|
2875
|
-
const
|
|
2875
|
+
const Ni = ({
|
|
2876
2876
|
className: t,
|
|
2877
2877
|
options: e,
|
|
2878
2878
|
initialValue: n,
|
|
@@ -2919,7 +2919,7 @@ const Ci = ({
|
|
|
2919
2919
|
...j,
|
|
2920
2920
|
children: [
|
|
2921
2921
|
c ? `${o} · ${b.length}` : y.label,
|
|
2922
|
-
/* @__PURE__ */ a.jsx(
|
|
2922
|
+
/* @__PURE__ */ a.jsx(Ci, { direction: m ? "up" : "down" })
|
|
2923
2923
|
]
|
|
2924
2924
|
}
|
|
2925
2925
|
),
|
|
@@ -2949,7 +2949,7 @@ const Ci = ({
|
|
|
2949
2949
|
/* @__PURE__ */ a.jsx("p", { children: `${b == null ? void 0 : b.length} selected` }),
|
|
2950
2950
|
/* @__PURE__ */ a.jsxs("ul", { children: [
|
|
2951
2951
|
/* @__PURE__ */ a.jsx("li", { children: /* @__PURE__ */ a.jsx(
|
|
2952
|
-
|
|
2952
|
+
ie,
|
|
2953
2953
|
{
|
|
2954
2954
|
variant: "tertiary",
|
|
2955
2955
|
size: "small",
|
|
@@ -2959,7 +2959,7 @@ const Ci = ({
|
|
|
2959
2959
|
}
|
|
2960
2960
|
) }),
|
|
2961
2961
|
/* @__PURE__ */ a.jsx("li", { children: /* @__PURE__ */ a.jsx(
|
|
2962
|
-
|
|
2962
|
+
ie,
|
|
2963
2963
|
{
|
|
2964
2964
|
variant: "tertiary",
|
|
2965
2965
|
size: "small",
|
|
@@ -2996,7 +2996,7 @@ const Ci = ({
|
|
|
2996
2996
|
}) })
|
|
2997
2997
|
] }),
|
|
2998
2998
|
(d == null ? void 0 : d.submitSection) && /* @__PURE__ */ a.jsx("p", { className: "submit", children: /* @__PURE__ */ a.jsx(
|
|
2999
|
-
|
|
2999
|
+
ie,
|
|
3000
3000
|
{
|
|
3001
3001
|
variant: "secondary",
|
|
3002
3002
|
onClick: () => {
|
|
@@ -3017,7 +3017,7 @@ const Ci = ({
|
|
|
3017
3017
|
)
|
|
3018
3018
|
] });
|
|
3019
3019
|
};
|
|
3020
|
-
const
|
|
3020
|
+
const $i = ({
|
|
3021
3021
|
className: t = "",
|
|
3022
3022
|
functions: e = { onChange: () => {
|
|
3023
3023
|
} },
|
|
@@ -3058,7 +3058,7 @@ const Ni = ({
|
|
|
3058
3058
|
e.onChange(x);
|
|
3059
3059
|
};
|
|
3060
3060
|
return /* @__PURE__ */ a.jsx(
|
|
3061
|
-
|
|
3061
|
+
Ea,
|
|
3062
3062
|
{
|
|
3063
3063
|
element: "li",
|
|
3064
3064
|
id: S,
|
|
@@ -3082,7 +3082,7 @@ const Ni = ({
|
|
|
3082
3082
|
}
|
|
3083
3083
|
);
|
|
3084
3084
|
};
|
|
3085
|
-
const
|
|
3085
|
+
const Pi = ({
|
|
3086
3086
|
inputRef: t,
|
|
3087
3087
|
type: e = "password",
|
|
3088
3088
|
gtm: { context: n } = { context: void 0 },
|
|
@@ -3118,12 +3118,12 @@ const Je = {
|
|
|
3118
3118
|
text: { component: gt },
|
|
3119
3119
|
email: { component: gt },
|
|
3120
3120
|
textarea: { component: gt, props: { element: "textarea", rows: 4, cols: 10 } },
|
|
3121
|
-
checkbox: { component:
|
|
3122
|
-
checkboxes: { component:
|
|
3123
|
-
select: { component:
|
|
3124
|
-
password: { component:
|
|
3125
|
-
autocomplete: { component:
|
|
3126
|
-
},
|
|
3121
|
+
checkbox: { component: Ea },
|
|
3122
|
+
checkboxes: { component: $i, props: { multiSelect: !0 } },
|
|
3123
|
+
select: { component: Ni },
|
|
3124
|
+
password: { component: Pi },
|
|
3125
|
+
autocomplete: { component: Si }
|
|
3126
|
+
}, Mi = ({
|
|
3127
3127
|
id: t,
|
|
3128
3128
|
intlPath: e = !1,
|
|
3129
3129
|
className: n = "",
|
|
@@ -3213,7 +3213,7 @@ const Je = {
|
|
|
3213
3213
|
] }),
|
|
3214
3214
|
/* @__PURE__ */ a.jsx(_, {})
|
|
3215
3215
|
] });
|
|
3216
|
-
},
|
|
3216
|
+
}, Ri = (t, e) => {
|
|
3217
3217
|
const { type: n, payload: r } = e, s = t.errors ? pt(t.errors) : {}, i = t.values ? pt(t.values) : {};
|
|
3218
3218
|
switch (n) {
|
|
3219
3219
|
case "toggleSubmitting":
|
|
@@ -3360,7 +3360,7 @@ const an = ({
|
|
|
3360
3360
|
const K = z.id || z.name;
|
|
3361
3361
|
K && (R[K] = z.value || "");
|
|
3362
3362
|
});
|
|
3363
|
-
const [X, B] =
|
|
3363
|
+
const [X, B] = Gn(Ri, {
|
|
3364
3364
|
isSubmitting: !1,
|
|
3365
3365
|
formSubmitted: !1,
|
|
3366
3366
|
errors: {},
|
|
@@ -3490,7 +3490,7 @@ const an = ({
|
|
|
3490
3490
|
return /* @__PURE__ */ a.jsx(P, { ...z.props || {} }, `component-${T}-${K}`);
|
|
3491
3491
|
const q = k ? k[T] : "";
|
|
3492
3492
|
return /* @__PURE__ */ a.jsx(
|
|
3493
|
-
|
|
3493
|
+
Mi,
|
|
3494
3494
|
{
|
|
3495
3495
|
intlPath: s,
|
|
3496
3496
|
...z,
|
|
@@ -3523,11 +3523,11 @@ const an = ({
|
|
|
3523
3523
|
x && w && /* @__PURE__ */ a.jsx(Ut, { className: "success", children: typeof x == "string" ? x : F.formatMessage({ id: "form_success" }) })
|
|
3524
3524
|
] });
|
|
3525
3525
|
};
|
|
3526
|
-
const $t = "passwordRules_",
|
|
3527
|
-
[
|
|
3528
|
-
[
|
|
3529
|
-
[
|
|
3530
|
-
},
|
|
3526
|
+
const $t = "passwordRules_", Sa = "isMoreThanEightCharacters", Ca = "includesNumberAndSymbol", Na = "includesLowerAndUppercase", Fi = {
|
|
3527
|
+
[Sa]: "8Characters",
|
|
3528
|
+
[Ca]: "numberSymbol",
|
|
3529
|
+
[Na]: "lowercaseUppercase"
|
|
3530
|
+
}, Oi = ({
|
|
3531
3531
|
matchingRules: t = {
|
|
3532
3532
|
isMoreThanEightCharacters: !1,
|
|
3533
3533
|
includesNumberAndSymbol: !1,
|
|
@@ -3538,7 +3538,7 @@ const $t = "passwordRules_", Ea = "isMoreThanEightCharacters", Sa = "includesNum
|
|
|
3538
3538
|
const n = H();
|
|
3539
3539
|
return /* @__PURE__ */ a.jsxs("aside", { className: E("password-rules", e), children: [
|
|
3540
3540
|
/* @__PURE__ */ a.jsx("small", { children: n.formatMessage({ id: `${$t}intro` }) }),
|
|
3541
|
-
/* @__PURE__ */ a.jsx("ul", { children: [
|
|
3541
|
+
/* @__PURE__ */ a.jsx("ul", { children: [Sa, Ca, Na].map(
|
|
3542
3542
|
(r) => /* @__PURE__ */ a.jsxs(
|
|
3543
3543
|
"li",
|
|
3544
3544
|
{
|
|
@@ -3548,7 +3548,7 @@ const $t = "passwordRules_", Ea = "isMoreThanEightCharacters", Sa = "includesNum
|
|
|
3548
3548
|
n.formatMessage({ id: `${$t}rule_label` }),
|
|
3549
3549
|
" "
|
|
3550
3550
|
] }),
|
|
3551
|
-
/* @__PURE__ */ a.jsx("span", { children: n.formatMessage({ id: `${$t}rule_${
|
|
3551
|
+
/* @__PURE__ */ a.jsx("span", { children: n.formatMessage({ id: `${$t}rule_${Fi[r]}` }) }),
|
|
3552
3552
|
!t[r] && /* @__PURE__ */ a.jsxs(be, { element: "strong", children: [
|
|
3553
3553
|
" ",
|
|
3554
3554
|
n.formatMessage({ id: `${$t}notMet` })
|
|
@@ -3559,8 +3559,8 @@ const $t = "passwordRules_", Ea = "isMoreThanEightCharacters", Sa = "includesNum
|
|
|
3559
3559
|
)
|
|
3560
3560
|
) })
|
|
3561
3561
|
] });
|
|
3562
|
-
},
|
|
3563
|
-
const
|
|
3562
|
+
}, Ai = Oe(Oi);
|
|
3563
|
+
const Ll = ({
|
|
3564
3564
|
text: t = {},
|
|
3565
3565
|
topRating: e = 5,
|
|
3566
3566
|
functions: {
|
|
@@ -3620,7 +3620,7 @@ const Il = ({
|
|
|
3620
3620
|
{
|
|
3621
3621
|
className: E({ selected: f && _ <= f }),
|
|
3622
3622
|
children: /* @__PURE__ */ a.jsx(
|
|
3623
|
-
|
|
3623
|
+
ie,
|
|
3624
3624
|
{
|
|
3625
3625
|
variant: "tertiary",
|
|
3626
3626
|
size: "small",
|
|
@@ -3645,7 +3645,7 @@ const Il = ({
|
|
|
3645
3645
|
}) })
|
|
3646
3646
|
] });
|
|
3647
3647
|
};
|
|
3648
|
-
const
|
|
3648
|
+
const Bl = ({
|
|
3649
3649
|
id: t = "form-toggle",
|
|
3650
3650
|
label: e,
|
|
3651
3651
|
options: n,
|
|
@@ -3704,7 +3704,7 @@ const Ll = ({
|
|
|
3704
3704
|
}
|
|
3705
3705
|
);
|
|
3706
3706
|
};
|
|
3707
|
-
function
|
|
3707
|
+
function ql({ className: t = "", userId: e, userName: n, src: r, setUserImage: s, uploadImage: i }) {
|
|
3708
3708
|
const [o, c] = J(!1), [d, l] = J(!1), u = pe(null), m = async (f) => {
|
|
3709
3709
|
c(!0), l(!1);
|
|
3710
3710
|
try {
|
|
@@ -3742,7 +3742,7 @@ function Bl({ className: t = "", userId: e, userName: n, src: r, setUserImage: s
|
|
|
3742
3742
|
}
|
|
3743
3743
|
),
|
|
3744
3744
|
/* @__PURE__ */ a.jsx(
|
|
3745
|
-
|
|
3745
|
+
ie,
|
|
3746
3746
|
{
|
|
3747
3747
|
onClick: () => u.current && u.current.click(),
|
|
3748
3748
|
variant: "secondary",
|
|
@@ -3755,7 +3755,7 @@ function Bl({ className: t = "", userId: e, userName: n, src: r, setUserImage: s
|
|
|
3755
3755
|
)
|
|
3756
3756
|
] });
|
|
3757
3757
|
}
|
|
3758
|
-
const
|
|
3758
|
+
const Di = ({
|
|
3759
3759
|
gtm: t,
|
|
3760
3760
|
functions: { onSuccess: e = async () => {
|
|
3761
3761
|
}, onFailure: n = () => {
|
|
@@ -3803,7 +3803,7 @@ const Ai = ({
|
|
|
3803
3803
|
}
|
|
3804
3804
|
);
|
|
3805
3805
|
};
|
|
3806
|
-
const
|
|
3806
|
+
const Ii = ({
|
|
3807
3807
|
title: t,
|
|
3808
3808
|
label: e,
|
|
3809
3809
|
ctaMessage: n,
|
|
@@ -3847,9 +3847,9 @@ const Di = ({
|
|
|
3847
3847
|
] }) }),
|
|
3848
3848
|
/* @__PURE__ */ a.jsx(ze, {}),
|
|
3849
3849
|
/* @__PURE__ */ a.jsx("div", { className: "footer", children: h === "SUCCESS" ? /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
|
|
3850
|
-
/* @__PURE__ */ a.jsx(
|
|
3851
|
-
/* @__PURE__ */ a.jsx(
|
|
3852
|
-
] }) : /* @__PURE__ */ a.jsx(
|
|
3850
|
+
/* @__PURE__ */ a.jsx(ie, { variant: "secondary", onClick: _, children: v({ id: "inviteForm_ctaSendMoreInvites" }) }),
|
|
3851
|
+
/* @__PURE__ */ a.jsx(ie, { onClick: S, children: v({ id: "inviteForm_ctaDone" }) })
|
|
3852
|
+
] }) : /* @__PURE__ */ a.jsx(ie, { onClick: _, children: v({ id: "inviteForm_ctaTryAgain" }) }) })
|
|
3853
3853
|
] }) : /* @__PURE__ */ a.jsx("div", { className: "invite-form-wrapper", children: /* @__PURE__ */ a.jsxs(
|
|
3854
3854
|
"form",
|
|
3855
3855
|
{
|
|
@@ -3861,7 +3861,7 @@ const Di = ({
|
|
|
3861
3861
|
/* @__PURE__ */ a.jsx("h2", { className: "title", style: { color: r }, children: t }),
|
|
3862
3862
|
/* @__PURE__ */ a.jsx("label", { htmlFor: "email-input", className: "label", style: { color: s }, children: e }),
|
|
3863
3863
|
/* @__PURE__ */ a.jsx(
|
|
3864
|
-
|
|
3864
|
+
Ms,
|
|
3865
3865
|
{
|
|
3866
3866
|
id: "email-input",
|
|
3867
3867
|
inputClassName: "email-input input",
|
|
@@ -3874,7 +3874,7 @@ const Di = ({
|
|
|
3874
3874
|
getLabel: (j, x, F) => /* @__PURE__ */ a.jsxs("div", { className: "email text-medium", children: [
|
|
3875
3875
|
/* @__PURE__ */ a.jsx("div", { "data-tag-item": !0, children: j }),
|
|
3876
3876
|
/* @__PURE__ */ a.jsx(
|
|
3877
|
-
|
|
3877
|
+
ie,
|
|
3878
3878
|
{
|
|
3879
3879
|
variant: "tertiary",
|
|
3880
3880
|
size: "small",
|
|
@@ -3891,7 +3891,7 @@ const Di = ({
|
|
|
3891
3891
|
)
|
|
3892
3892
|
] }),
|
|
3893
3893
|
/* @__PURE__ */ a.jsx(ze, {}),
|
|
3894
|
-
/* @__PURE__ */ a.jsx("fieldset", { className: "footer", children: /* @__PURE__ */ a.jsx(
|
|
3894
|
+
/* @__PURE__ */ a.jsx("fieldset", { className: "footer", children: /* @__PURE__ */ a.jsx(ie, { className: "sendEmailsButton", disabled: f, children: n }) })
|
|
3895
3895
|
]
|
|
3896
3896
|
}
|
|
3897
3897
|
) });
|
|
@@ -3900,12 +3900,12 @@ const Di = ({
|
|
|
3900
3900
|
NEW_PASSWORD: "newPassword",
|
|
3901
3901
|
CONFIRMED_PASSWORD: "confirmedPassword",
|
|
3902
3902
|
CURRENT_PASSWORD: "oldPassword"
|
|
3903
|
-
},
|
|
3903
|
+
}, Wl = ({ functions: t, ...e }) => {
|
|
3904
3904
|
const { formatMessage: n } = H(), [r, s] = J(null), [i, o] = J(!1), [c, d] = J({
|
|
3905
3905
|
isMoreThanEightCharacters: !1,
|
|
3906
3906
|
includesNumberAndSymbol: !1,
|
|
3907
3907
|
includesLowerAndUppercase: !1
|
|
3908
|
-
}), l = (p) => p[Te.NEW_PASSWORD] !== p[Te.CONFIRMED_PASSWORD] ? n({ id: "passwordRules_unmatched_text" }) : null, u = (p) => !
|
|
3908
|
+
}), l = (p) => p[Te.NEW_PASSWORD] !== p[Te.CONFIRMED_PASSWORD] ? n({ id: "passwordRules_unmatched_text" }) : null, u = (p) => !kr(p[Te.NEW_PASSWORD]).isValid, m = [
|
|
3909
3909
|
{
|
|
3910
3910
|
"data-testid": Te.NEW_PASSWORD,
|
|
3911
3911
|
id: Te.NEW_PASSWORD,
|
|
@@ -3915,7 +3915,7 @@ const Di = ({
|
|
|
3915
3915
|
label: n({ id: "passwordRules_newPassword_label" }),
|
|
3916
3916
|
validation: yn(["required", u]),
|
|
3917
3917
|
functions: {
|
|
3918
|
-
onChange: (p) => d(
|
|
3918
|
+
onChange: (p) => d(kr(p).matchingRules),
|
|
3919
3919
|
onFocus: () => o(!0),
|
|
3920
3920
|
onBlur: () => o(!1)
|
|
3921
3921
|
}
|
|
@@ -3938,7 +3938,7 @@ const Di = ({
|
|
|
3938
3938
|
label: n({ id: "passwordRules_currentPassword_label" }),
|
|
3939
3939
|
validation: yn(["required"])
|
|
3940
3940
|
}), i && m.push({
|
|
3941
|
-
component:
|
|
3941
|
+
component: Ai,
|
|
3942
3942
|
props: { matchingRules: c }
|
|
3943
3943
|
});
|
|
3944
3944
|
const f = {
|
|
@@ -3964,7 +3964,7 @@ const Di = ({
|
|
|
3964
3964
|
r && /* @__PURE__ */ a.jsx(He, { variant: "error", text: r })
|
|
3965
3965
|
] });
|
|
3966
3966
|
};
|
|
3967
|
-
const
|
|
3967
|
+
const Li = ({
|
|
3968
3968
|
id: t = "search",
|
|
3969
3969
|
className: e = "",
|
|
3970
3970
|
handleToggle: n = !1,
|
|
@@ -4031,7 +4031,7 @@ const Ii = ({
|
|
|
4031
4031
|
)
|
|
4032
4032
|
}
|
|
4033
4033
|
);
|
|
4034
|
-
},
|
|
4034
|
+
}, Fr = async ({ ref: t, validateEmail: e, dispatch: n }) => {
|
|
4035
4035
|
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,}))$/;
|
|
4036
4036
|
if (!t.current.validity.valid || !r.test(t.current.value))
|
|
4037
4037
|
return n([{ type: "validFields.email", value: !1 }]);
|
|
@@ -4077,7 +4077,7 @@ const Ii = ({
|
|
|
4077
4077
|
},
|
|
4078
4078
|
{ type: "validFields.email", value: !0 }
|
|
4079
4079
|
]);
|
|
4080
|
-
},
|
|
4080
|
+
}, Bi = (t) => {
|
|
4081
4081
|
const e = {};
|
|
4082
4082
|
for (const n of t.entries())
|
|
4083
4083
|
e[n[0]] = n[1];
|
|
@@ -4093,7 +4093,7 @@ const Ii = ({
|
|
|
4093
4093
|
page: window.location.pathname,
|
|
4094
4094
|
"g-recaptcha-response": e["g-recaptcha-response"]
|
|
4095
4095
|
};
|
|
4096
|
-
},
|
|
4096
|
+
}, qi = async ({
|
|
4097
4097
|
refs: t,
|
|
4098
4098
|
dataToSubmit: e,
|
|
4099
4099
|
createAccount: n,
|
|
@@ -4107,9 +4107,9 @@ const Ii = ({
|
|
|
4107
4107
|
t.hiddenValidation && t.hiddenValidation.current && t.hiddenValidation.current.click();
|
|
4108
4108
|
return;
|
|
4109
4109
|
}
|
|
4110
|
-
const o =
|
|
4110
|
+
const o = Bi(new FormData(t.form.current)), c = Object.assign(o, e);
|
|
4111
4111
|
await n(c), localStorage.setItem("email", o.email), r && r({ ...o, ...i.values }), s([{ type: "showSuccessMessage", value: !0 }]);
|
|
4112
|
-
},
|
|
4112
|
+
}, Wi = ({
|
|
4113
4113
|
shouldShow: t,
|
|
4114
4114
|
placeholders: e,
|
|
4115
4115
|
labels: n,
|
|
@@ -4146,7 +4146,7 @@ const Ii = ({
|
|
|
4146
4146
|
}),
|
|
4147
4147
|
functions: {
|
|
4148
4148
|
onBlur: () => {
|
|
4149
|
-
|
|
4149
|
+
Fr({ ref: i.email, validateEmail: r, dispatch: c });
|
|
4150
4150
|
},
|
|
4151
4151
|
onChange: (p, h) => {
|
|
4152
4152
|
c([{ type: "shouldDisableButton", value: !0 }]), h && h({
|
|
@@ -4161,7 +4161,7 @@ const Ii = ({
|
|
|
4161
4161
|
"data-testid": "signup-email-input"
|
|
4162
4162
|
},
|
|
4163
4163
|
{
|
|
4164
|
-
component:
|
|
4164
|
+
component: Ti,
|
|
4165
4165
|
props: {
|
|
4166
4166
|
email: u.email,
|
|
4167
4167
|
type: u.boxType,
|
|
@@ -4260,7 +4260,7 @@ const Ii = ({
|
|
|
4260
4260
|
o.validFields[b] !== i[b].current.validity.valid && (h.push({
|
|
4261
4261
|
type: `validFields.${b}`,
|
|
4262
4262
|
value: i[b].current.validity.valid
|
|
4263
|
-
}), b === "email" &&
|
|
4263
|
+
}), b === "email" && Fr({ ref: i.email, validateEmail: r, dispatch: c }));
|
|
4264
4264
|
}), h.length && c(h);
|
|
4265
4265
|
}
|
|
4266
4266
|
},
|
|
@@ -4268,7 +4268,7 @@ const Ii = ({
|
|
|
4268
4268
|
"data-testid": "signup-terms-checkbox"
|
|
4269
4269
|
}), f;
|
|
4270
4270
|
};
|
|
4271
|
-
const
|
|
4271
|
+
const Ui = ({ className: t = "" }) => /* @__PURE__ */ a.jsxs(
|
|
4272
4272
|
"div",
|
|
4273
4273
|
{
|
|
4274
4274
|
className: E("success-message", t),
|
|
@@ -4287,7 +4287,7 @@ const Wi = ({ className: t = "" }) => /* @__PURE__ */ a.jsxs(
|
|
|
4287
4287
|
]
|
|
4288
4288
|
}
|
|
4289
4289
|
);
|
|
4290
|
-
const
|
|
4290
|
+
const zi = {
|
|
4291
4291
|
validFields: {
|
|
4292
4292
|
name: !1,
|
|
4293
4293
|
email: !1,
|
|
@@ -4300,7 +4300,7 @@ const Ui = {
|
|
|
4300
4300
|
loadRecaptcha: !1,
|
|
4301
4301
|
showSuccessMessage: !1,
|
|
4302
4302
|
showError: !1
|
|
4303
|
-
},
|
|
4303
|
+
}, Ul = ({
|
|
4304
4304
|
className: t = "",
|
|
4305
4305
|
labels: e = {},
|
|
4306
4306
|
placeholders: n = {},
|
|
@@ -4329,14 +4329,14 @@ const Ui = {
|
|
|
4329
4329
|
url: m,
|
|
4330
4330
|
logInButton: f,
|
|
4331
4331
|
successMessage: p
|
|
4332
|
-
}, [b, v] =
|
|
4332
|
+
}, [b, v] = Gn(ha, zi), {
|
|
4333
4333
|
validFields: y,
|
|
4334
4334
|
emailDetails: _,
|
|
4335
4335
|
shouldManuallyApprove: S,
|
|
4336
4336
|
shouldDisableButton: j,
|
|
4337
4337
|
showSuccessMessage: x,
|
|
4338
4338
|
showError: F
|
|
4339
|
-
} = b, [R, X] =
|
|
4339
|
+
} = b, [R, X] = la([
|
|
4340
4340
|
"signup-this-session",
|
|
4341
4341
|
"functional-cookie-consent"
|
|
4342
4342
|
]), B = {
|
|
@@ -4358,7 +4358,7 @@ const Ui = {
|
|
|
4358
4358
|
maxAge: 3600
|
|
4359
4359
|
});
|
|
4360
4360
|
}, [x]);
|
|
4361
|
-
const $ = wt(() =>
|
|
4361
|
+
const $ = wt(() => Wi({
|
|
4362
4362
|
placeholders: n,
|
|
4363
4363
|
labels: e,
|
|
4364
4364
|
shouldShow: h,
|
|
@@ -4369,7 +4369,7 @@ const Ui = {
|
|
|
4369
4369
|
dataToSubmit: o,
|
|
4370
4370
|
intl: d
|
|
4371
4371
|
}), [o, r, d, B, h, b]), C = j ? !0 : S ? !Object.values(y).every((w) => w === !0) : !y.name || !y.email || ["exists", "pending", "verify"].includes(_.boxType);
|
|
4372
|
-
return h.successMessage && x ? /* @__PURE__ */ a.jsx(
|
|
4372
|
+
return h.successMessage && x ? /* @__PURE__ */ a.jsx(Ui, { className: t }) : /* @__PURE__ */ a.jsxs(
|
|
4373
4373
|
"fieldset",
|
|
4374
4374
|
{
|
|
4375
4375
|
className: E("signup-form-fieldset", t),
|
|
@@ -4420,7 +4420,7 @@ const Ui = {
|
|
|
4420
4420
|
},
|
|
4421
4421
|
functions: {
|
|
4422
4422
|
onSuccess: async () => {
|
|
4423
|
-
await
|
|
4423
|
+
await qi({
|
|
4424
4424
|
refs: B,
|
|
4425
4425
|
dataToSubmit: o,
|
|
4426
4426
|
createAccount: r.createAccount,
|
|
@@ -4452,11 +4452,11 @@ var Hn = { exports: {} }, Pt = { exports: {} }, ue = {};
|
|
|
4452
4452
|
* This source code is licensed under the MIT license found in the
|
|
4453
4453
|
* LICENSE file in the root directory of this source tree.
|
|
4454
4454
|
*/
|
|
4455
|
-
var
|
|
4456
|
-
function
|
|
4457
|
-
if (
|
|
4455
|
+
var Or;
|
|
4456
|
+
function Zi() {
|
|
4457
|
+
if (Or)
|
|
4458
4458
|
return ue;
|
|
4459
|
-
|
|
4459
|
+
Or = 1;
|
|
4460
4460
|
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, m = t ? Symbol.for("react.suspense") : 60113, f = t ? Symbol.for("react.suspense_list") : 60120, p = t ? Symbol.for("react.memo") : 60115, h = t ? Symbol.for("react.lazy") : 60116, b = t ? Symbol.for("react.block") : 60121, v = t ? Symbol.for("react.fundamental") : 60117, y = t ? Symbol.for("react.responder") : 60118, _ = t ? Symbol.for("react.scope") : 60119;
|
|
4461
4461
|
function S(x) {
|
|
4462
4462
|
if (typeof x == "object" && x !== null) {
|
|
@@ -4528,9 +4528,9 @@ var de = {};
|
|
|
4528
4528
|
* This source code is licensed under the MIT license found in the
|
|
4529
4529
|
* LICENSE file in the root directory of this source tree.
|
|
4530
4530
|
*/
|
|
4531
|
-
var
|
|
4532
|
-
function
|
|
4533
|
-
return
|
|
4531
|
+
var Ar;
|
|
4532
|
+
function Hi() {
|
|
4533
|
+
return Ar || (Ar = 1, process.env.NODE_ENV !== "production" && function() {
|
|
4534
4534
|
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, m = t ? Symbol.for("react.suspense") : 60113, f = t ? Symbol.for("react.suspense_list") : 60120, p = t ? Symbol.for("react.memo") : 60115, h = t ? Symbol.for("react.lazy") : 60116, b = t ? Symbol.for("react.block") : 60121, v = t ? Symbol.for("react.fundamental") : 60117, y = t ? Symbol.for("react.responder") : 60118, _ = t ? Symbol.for("react.scope") : 60119;
|
|
4535
4535
|
function S(D) {
|
|
4536
4536
|
return typeof D == "string" || typeof D == "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
|
|
@@ -4611,20 +4611,20 @@ function Zi() {
|
|
|
4611
4611
|
de.AsyncMode = x, de.ConcurrentMode = F, de.ContextConsumer = R, de.ContextProvider = X, de.Element = B, de.ForwardRef = $, de.Fragment = C, de.Lazy = w, de.Memo = k, de.Portal = N, de.Profiler = A, de.StrictMode = W, de.Suspense = Z, de.isAsyncMode = K, de.isConcurrentMode = T, de.isContextConsumer = P, de.isContextProvider = I, de.isElement = q, 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 = j;
|
|
4612
4612
|
}()), de;
|
|
4613
4613
|
}
|
|
4614
|
-
var
|
|
4615
|
-
function
|
|
4616
|
-
return
|
|
4614
|
+
var Dr;
|
|
4615
|
+
function $a() {
|
|
4616
|
+
return Dr || (Dr = 1, process.env.NODE_ENV === "production" ? Pt.exports = Zi() : Pt.exports = Hi()), Pt.exports;
|
|
4617
4617
|
}
|
|
4618
4618
|
/*
|
|
4619
4619
|
object-assign
|
|
4620
4620
|
(c) Sindre Sorhus
|
|
4621
4621
|
@license MIT
|
|
4622
4622
|
*/
|
|
4623
|
-
var _n,
|
|
4624
|
-
function
|
|
4625
|
-
if (
|
|
4623
|
+
var _n, Ir;
|
|
4624
|
+
function Vi() {
|
|
4625
|
+
if (Ir)
|
|
4626
4626
|
return _n;
|
|
4627
|
-
|
|
4627
|
+
Ir = 1;
|
|
4628
4628
|
var t = Object.getOwnPropertySymbols, e = Object.prototype.hasOwnProperty, n = Object.prototype.propertyIsEnumerable;
|
|
4629
4629
|
function r(i) {
|
|
4630
4630
|
if (i == null)
|
|
@@ -4667,27 +4667,27 @@ function Hi() {
|
|
|
4667
4667
|
return d;
|
|
4668
4668
|
}, _n;
|
|
4669
4669
|
}
|
|
4670
|
-
var xn,
|
|
4671
|
-
function
|
|
4672
|
-
if (
|
|
4670
|
+
var xn, Lr;
|
|
4671
|
+
function tr() {
|
|
4672
|
+
if (Lr)
|
|
4673
4673
|
return xn;
|
|
4674
|
-
|
|
4674
|
+
Lr = 1;
|
|
4675
4675
|
var t = "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";
|
|
4676
4676
|
return xn = t, xn;
|
|
4677
4677
|
}
|
|
4678
|
-
var wn,
|
|
4679
|
-
function
|
|
4680
|
-
return
|
|
4678
|
+
var wn, Br;
|
|
4679
|
+
function Pa() {
|
|
4680
|
+
return Br || (Br = 1, wn = Function.call.bind(Object.prototype.hasOwnProperty)), wn;
|
|
4681
4681
|
}
|
|
4682
|
-
var jn,
|
|
4683
|
-
function
|
|
4684
|
-
if (
|
|
4682
|
+
var jn, qr;
|
|
4683
|
+
function Yi() {
|
|
4684
|
+
if (qr)
|
|
4685
4685
|
return jn;
|
|
4686
|
-
|
|
4686
|
+
qr = 1;
|
|
4687
4687
|
var t = function() {
|
|
4688
4688
|
};
|
|
4689
4689
|
if (process.env.NODE_ENV !== "production") {
|
|
4690
|
-
var e =
|
|
4690
|
+
var e = tr(), n = {}, r = Pa();
|
|
4691
4691
|
t = function(i) {
|
|
4692
4692
|
var o = "Warning: " + i;
|
|
4693
4693
|
typeof console < "u" && console.error(o);
|
|
@@ -4729,12 +4729,12 @@ function Vi() {
|
|
|
4729
4729
|
process.env.NODE_ENV !== "production" && (n = {});
|
|
4730
4730
|
}, jn = s, jn;
|
|
4731
4731
|
}
|
|
4732
|
-
var kn,
|
|
4733
|
-
function
|
|
4734
|
-
if (
|
|
4732
|
+
var kn, Wr;
|
|
4733
|
+
function Ki() {
|
|
4734
|
+
if (Wr)
|
|
4735
4735
|
return kn;
|
|
4736
|
-
|
|
4737
|
-
var t =
|
|
4736
|
+
Wr = 1;
|
|
4737
|
+
var t = $a(), e = Vi(), n = tr(), r = Pa(), s = Yi(), i = function() {
|
|
4738
4738
|
};
|
|
4739
4739
|
process.env.NODE_ENV !== "production" && (i = function(c) {
|
|
4740
4740
|
var d = "Warning: " + c;
|
|
@@ -5051,12 +5051,12 @@ Valid keys: ` + JSON.stringify(Object.keys(T), null, " ")
|
|
|
5051
5051
|
return p.checkPropTypes = s, p.resetWarningCache = s.resetWarningCache, p.PropTypes = p, p;
|
|
5052
5052
|
}, kn;
|
|
5053
5053
|
}
|
|
5054
|
-
var Tn,
|
|
5055
|
-
function
|
|
5056
|
-
if (
|
|
5054
|
+
var Tn, Ur;
|
|
5055
|
+
function Gi() {
|
|
5056
|
+
if (Ur)
|
|
5057
5057
|
return Tn;
|
|
5058
|
-
|
|
5059
|
-
var t =
|
|
5058
|
+
Ur = 1;
|
|
5059
|
+
var t = tr();
|
|
5060
5060
|
function e() {
|
|
5061
5061
|
}
|
|
5062
5062
|
function n() {
|
|
@@ -5101,17 +5101,17 @@ function Ki() {
|
|
|
5101
5101
|
}, Tn;
|
|
5102
5102
|
}
|
|
5103
5103
|
if (process.env.NODE_ENV !== "production") {
|
|
5104
|
-
var
|
|
5105
|
-
Hn.exports =
|
|
5104
|
+
var Qi = $a(), Ji = !0;
|
|
5105
|
+
Hn.exports = Ki()(Qi.isElement, Ji);
|
|
5106
5106
|
} else
|
|
5107
|
-
Hn.exports =
|
|
5108
|
-
var
|
|
5107
|
+
Hn.exports = Gi()();
|
|
5108
|
+
var Xi = Hn.exports;
|
|
5109
5109
|
/*!
|
|
5110
5110
|
* tabbable 6.2.0
|
|
5111
5111
|
* @license MIT, https://github.com/focus-trap/tabbable/blob/master/LICENSE
|
|
5112
5112
|
*/
|
|
5113
|
-
var
|
|
5114
|
-
} : Element.prototype.matches || Element.prototype.msMatchesSelector || Element.prototype.webkitMatchesSelector, Zt = !
|
|
5113
|
+
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() {
|
|
5114
|
+
} : Element.prototype.matches || Element.prototype.msMatchesSelector || Element.prototype.webkitMatchesSelector, Zt = !Ra && Element.prototype.getRootNode ? function(t) {
|
|
5115
5115
|
var e;
|
|
5116
5116
|
return t == null || (e = t.getRootNode) === null || e === void 0 ? void 0 : e.call(t);
|
|
5117
5117
|
} : function(t) {
|
|
@@ -5121,15 +5121,15 @@ var Pa = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])",
|
|
|
5121
5121
|
n === void 0 && (n = !0);
|
|
5122
5122
|
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);
|
|
5123
5123
|
return o;
|
|
5124
|
-
},
|
|
5124
|
+
}, eo = function(e) {
|
|
5125
5125
|
var n, r = e == null || (n = e.getAttribute) === null || n === void 0 ? void 0 : n.call(e, "contenteditable");
|
|
5126
5126
|
return r === "" || r === "true";
|
|
5127
|
-
},
|
|
5127
|
+
}, Fa = function(e, n, r) {
|
|
5128
5128
|
if (Ht(e))
|
|
5129
5129
|
return [];
|
|
5130
5130
|
var s = Array.prototype.slice.apply(e.querySelectorAll(zt));
|
|
5131
5131
|
return n && Ze.call(e, zt) && s.unshift(e), s = s.filter(r), s;
|
|
5132
|
-
},
|
|
5132
|
+
}, Oa = function t(e, n, r) {
|
|
5133
5133
|
for (var s = [], i = Array.from(e); i.length; ) {
|
|
5134
5134
|
var o = i.shift();
|
|
5135
5135
|
if (!Ht(o, !1))
|
|
@@ -5155,31 +5155,31 @@ var Pa = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])",
|
|
|
5155
5155
|
}
|
|
5156
5156
|
}
|
|
5157
5157
|
return s;
|
|
5158
|
-
},
|
|
5158
|
+
}, Aa = function(e) {
|
|
5159
5159
|
return !isNaN(parseInt(e.getAttribute("tabindex"), 10));
|
|
5160
5160
|
}, De = function(e) {
|
|
5161
5161
|
if (!e)
|
|
5162
5162
|
throw new Error("No node provided");
|
|
5163
|
-
return e.tabIndex < 0 && (/^(AUDIO|VIDEO|DETAILS)$/.test(e.tagName) ||
|
|
5164
|
-
}, eo = function(e, n) {
|
|
5165
|
-
var r = De(e);
|
|
5166
|
-
return r < 0 && n && !Oa(e) ? 0 : r;
|
|
5163
|
+
return e.tabIndex < 0 && (/^(AUDIO|VIDEO|DETAILS)$/.test(e.tagName) || eo(e)) && !Aa(e) ? 0 : e.tabIndex;
|
|
5167
5164
|
}, to = function(e, n) {
|
|
5165
|
+
var r = De(e);
|
|
5166
|
+
return r < 0 && n && !Aa(e) ? 0 : r;
|
|
5167
|
+
}, no = function(e, n) {
|
|
5168
5168
|
return e.tabIndex === n.tabIndex ? e.documentOrder - n.documentOrder : e.tabIndex - n.tabIndex;
|
|
5169
|
-
},
|
|
5169
|
+
}, Da = function(e) {
|
|
5170
5170
|
return e.tagName === "INPUT";
|
|
5171
|
-
}, no = function(e) {
|
|
5172
|
-
return Aa(e) && e.type === "hidden";
|
|
5173
5171
|
}, ro = function(e) {
|
|
5172
|
+
return Da(e) && e.type === "hidden";
|
|
5173
|
+
}, ao = function(e) {
|
|
5174
5174
|
var n = e.tagName === "DETAILS" && Array.prototype.slice.apply(e.children).some(function(r) {
|
|
5175
5175
|
return r.tagName === "SUMMARY";
|
|
5176
5176
|
});
|
|
5177
5177
|
return n;
|
|
5178
|
-
},
|
|
5178
|
+
}, so = function(e, n) {
|
|
5179
5179
|
for (var r = 0; r < e.length; r++)
|
|
5180
5180
|
if (e[r].checked && e[r].form === n)
|
|
5181
5181
|
return e[r];
|
|
5182
|
-
},
|
|
5182
|
+
}, io = function(e) {
|
|
5183
5183
|
if (!e.name)
|
|
5184
5184
|
return !0;
|
|
5185
5185
|
var n = e.form || Zt(e), r = function(c) {
|
|
@@ -5193,13 +5193,13 @@ var Pa = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])",
|
|
|
5193
5193
|
} catch (o) {
|
|
5194
5194
|
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;
|
|
5195
5195
|
}
|
|
5196
|
-
var i =
|
|
5196
|
+
var i = so(s, e.form);
|
|
5197
5197
|
return !i || i === e;
|
|
5198
|
-
}, io = function(e) {
|
|
5199
|
-
return Aa(e) && e.type === "radio";
|
|
5200
5198
|
}, oo = function(e) {
|
|
5201
|
-
return
|
|
5199
|
+
return Da(e) && e.type === "radio";
|
|
5202
5200
|
}, co = function(e) {
|
|
5201
|
+
return oo(e) && !io(e);
|
|
5202
|
+
}, lo = function(e) {
|
|
5203
5203
|
var n, r = e && Zt(e), s = (n = r) === null || n === void 0 ? void 0 : n.host, i = !1;
|
|
5204
5204
|
if (r && r !== e) {
|
|
5205
5205
|
var o, c, d;
|
|
@@ -5209,10 +5209,10 @@ var Pa = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])",
|
|
|
5209
5209
|
}
|
|
5210
5210
|
}
|
|
5211
5211
|
return i;
|
|
5212
|
-
},
|
|
5212
|
+
}, zr = function(e) {
|
|
5213
5213
|
var n = e.getBoundingClientRect(), r = n.width, s = n.height;
|
|
5214
5214
|
return r === 0 && s === 0;
|
|
5215
|
-
},
|
|
5215
|
+
}, uo = function(e, n) {
|
|
5216
5216
|
var r = n.displayCheck, s = n.getShadowRoot;
|
|
5217
5217
|
if (getComputedStyle(e).visibility === "hidden")
|
|
5218
5218
|
return !0;
|
|
@@ -5224,19 +5224,19 @@ var Pa = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])",
|
|
|
5224
5224
|
for (var c = e; e; ) {
|
|
5225
5225
|
var d = e.parentElement, l = Zt(e);
|
|
5226
5226
|
if (d && !d.shadowRoot && s(d) === !0)
|
|
5227
|
-
return
|
|
5227
|
+
return zr(e);
|
|
5228
5228
|
e.assignedSlot ? e = e.assignedSlot : !d && l !== e.ownerDocument ? e = l.host : e = d;
|
|
5229
5229
|
}
|
|
5230
5230
|
e = c;
|
|
5231
5231
|
}
|
|
5232
|
-
if (
|
|
5232
|
+
if (lo(e))
|
|
5233
5233
|
return !e.getClientRects().length;
|
|
5234
5234
|
if (r !== "legacy-full")
|
|
5235
5235
|
return !0;
|
|
5236
5236
|
} else if (r === "non-zero-area")
|
|
5237
|
-
return
|
|
5237
|
+
return zr(e);
|
|
5238
5238
|
return !1;
|
|
5239
|
-
},
|
|
5239
|
+
}, fo = function(e) {
|
|
5240
5240
|
if (/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(e.tagName))
|
|
5241
5241
|
for (var n = e.parentElement; n; ) {
|
|
5242
5242
|
if (n.tagName === "FIELDSET" && n.disabled) {
|
|
@@ -5254,17 +5254,17 @@ var Pa = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])",
|
|
|
5254
5254
|
return !(n.disabled || // we must do an inert look up to filter out any elements inside an inert ancestor
|
|
5255
5255
|
// because we're limited in the type of selectors we can use in JSDom (see related
|
|
5256
5256
|
// note related to `candidateSelectors`)
|
|
5257
|
-
Ht(n) ||
|
|
5258
|
-
|
|
5257
|
+
Ht(n) || ro(n) || uo(n, e) || // For a details element with a summary, the summary element gets the focus
|
|
5258
|
+
ao(n) || fo(n));
|
|
5259
5259
|
}, Vn = function(e, n) {
|
|
5260
|
-
return !(
|
|
5261
|
-
},
|
|
5260
|
+
return !(co(n) || De(n) < 0 || !Vt(e, n));
|
|
5261
|
+
}, mo = function(e) {
|
|
5262
5262
|
var n = parseInt(e.getAttribute("tabindex"), 10);
|
|
5263
5263
|
return !!(isNaN(n) || n >= 0);
|
|
5264
|
-
},
|
|
5264
|
+
}, po = function t(e) {
|
|
5265
5265
|
var n = [], r = [];
|
|
5266
5266
|
return e.forEach(function(s, i) {
|
|
5267
|
-
var o = !!s.scopeParent, c = o ? s.scopeParent : s, d =
|
|
5267
|
+
var o = !!s.scopeParent, c = o ? s.scopeParent : s, d = to(c, o), l = o ? t(s.candidates) : c;
|
|
5268
5268
|
d === 0 ? o ? n.push.apply(n, l) : n.push(c) : r.push({
|
|
5269
5269
|
documentOrder: i,
|
|
5270
5270
|
tabIndex: d,
|
|
@@ -5272,48 +5272,48 @@ var Pa = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])",
|
|
|
5272
5272
|
isScope: o,
|
|
5273
5273
|
content: l
|
|
5274
5274
|
});
|
|
5275
|
-
}), r.sort(
|
|
5275
|
+
}), r.sort(no).reduce(function(s, i) {
|
|
5276
5276
|
return i.isScope ? s.push.apply(s, i.content) : s.push(i.content), s;
|
|
5277
5277
|
}, []).concat(n);
|
|
5278
|
-
},
|
|
5278
|
+
}, Ia = function(e, n) {
|
|
5279
5279
|
n = n || {};
|
|
5280
5280
|
var r;
|
|
5281
|
-
return n.getShadowRoot ? r =
|
|
5281
|
+
return n.getShadowRoot ? r = Oa([e], n.includeContainer, {
|
|
5282
5282
|
filter: Vn.bind(null, n),
|
|
5283
5283
|
flatten: !1,
|
|
5284
5284
|
getShadowRoot: n.getShadowRoot,
|
|
5285
|
-
shadowRootFilter:
|
|
5286
|
-
}) : r =
|
|
5287
|
-
},
|
|
5285
|
+
shadowRootFilter: mo
|
|
5286
|
+
}) : r = Fa(e, n.includeContainer, Vn.bind(null, n)), po(r);
|
|
5287
|
+
}, La = function(e, n) {
|
|
5288
5288
|
n = n || {};
|
|
5289
5289
|
var r;
|
|
5290
|
-
return n.getShadowRoot ? r =
|
|
5290
|
+
return n.getShadowRoot ? r = Oa([e], n.includeContainer, {
|
|
5291
5291
|
filter: Vt.bind(null, n),
|
|
5292
5292
|
flatten: !0,
|
|
5293
5293
|
getShadowRoot: n.getShadowRoot
|
|
5294
|
-
}) : r =
|
|
5294
|
+
}) : r = Fa(e, n.includeContainer, Vt.bind(null, n)), r;
|
|
5295
5295
|
}, We = function(e, n) {
|
|
5296
5296
|
if (n = n || {}, !e)
|
|
5297
5297
|
throw new Error("No node provided");
|
|
5298
5298
|
return Ze.call(e, zt) === !1 ? !1 : Vn(n, e);
|
|
5299
|
-
},
|
|
5299
|
+
}, ho = /* @__PURE__ */ Ma.concat("iframe").join(","), qt = function(e, n) {
|
|
5300
5300
|
if (n = n || {}, !e)
|
|
5301
5301
|
throw new Error("No node provided");
|
|
5302
|
-
return Ze.call(e,
|
|
5302
|
+
return Ze.call(e, ho) === !1 ? !1 : Vt(n, e);
|
|
5303
5303
|
};
|
|
5304
|
-
const
|
|
5304
|
+
const go = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
5305
5305
|
__proto__: null,
|
|
5306
|
-
focusable:
|
|
5306
|
+
focusable: La,
|
|
5307
5307
|
getTabIndex: De,
|
|
5308
5308
|
isFocusable: qt,
|
|
5309
5309
|
isTabbable: We,
|
|
5310
|
-
tabbable:
|
|
5310
|
+
tabbable: Ia
|
|
5311
5311
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
5312
5312
|
/*!
|
|
5313
5313
|
* focus-trap 7.5.4
|
|
5314
5314
|
* @license MIT, https://github.com/focus-trap/focus-trap/blob/master/LICENSE
|
|
5315
5315
|
*/
|
|
5316
|
-
function
|
|
5316
|
+
function Zr(t, e) {
|
|
5317
5317
|
var n = Object.keys(t);
|
|
5318
5318
|
if (Object.getOwnPropertySymbols) {
|
|
5319
5319
|
var r = Object.getOwnPropertySymbols(t);
|
|
@@ -5323,26 +5323,26 @@ function zr(t, e) {
|
|
|
5323
5323
|
}
|
|
5324
5324
|
return n;
|
|
5325
5325
|
}
|
|
5326
|
-
function
|
|
5326
|
+
function Hr(t) {
|
|
5327
5327
|
for (var e = 1; e < arguments.length; e++) {
|
|
5328
5328
|
var n = arguments[e] != null ? arguments[e] : {};
|
|
5329
|
-
e % 2 ?
|
|
5330
|
-
|
|
5331
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(t, Object.getOwnPropertyDescriptors(n)) :
|
|
5329
|
+
e % 2 ? Zr(Object(n), !0).forEach(function(r) {
|
|
5330
|
+
vo(t, r, n[r]);
|
|
5331
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(t, Object.getOwnPropertyDescriptors(n)) : Zr(Object(n)).forEach(function(r) {
|
|
5332
5332
|
Object.defineProperty(t, r, Object.getOwnPropertyDescriptor(n, r));
|
|
5333
5333
|
});
|
|
5334
5334
|
}
|
|
5335
5335
|
return t;
|
|
5336
5336
|
}
|
|
5337
|
-
function
|
|
5338
|
-
return e =
|
|
5337
|
+
function vo(t, e, n) {
|
|
5338
|
+
return e = yo(e), e in t ? Object.defineProperty(t, e, {
|
|
5339
5339
|
value: n,
|
|
5340
5340
|
enumerable: !0,
|
|
5341
5341
|
configurable: !0,
|
|
5342
5342
|
writable: !0
|
|
5343
5343
|
}) : t[e] = n, t;
|
|
5344
5344
|
}
|
|
5345
|
-
function
|
|
5345
|
+
function bo(t, e) {
|
|
5346
5346
|
if (typeof t != "object" || t === null)
|
|
5347
5347
|
return t;
|
|
5348
5348
|
var n = t[Symbol.toPrimitive];
|
|
@@ -5354,11 +5354,11 @@ function vo(t, e) {
|
|
|
5354
5354
|
}
|
|
5355
5355
|
return (e === "string" ? String : Number)(t);
|
|
5356
5356
|
}
|
|
5357
|
-
function
|
|
5358
|
-
var e =
|
|
5357
|
+
function yo(t) {
|
|
5358
|
+
var e = bo(t, "string");
|
|
5359
5359
|
return typeof e == "symbol" ? e : String(e);
|
|
5360
5360
|
}
|
|
5361
|
-
var
|
|
5361
|
+
var Vr = {
|
|
5362
5362
|
activateTrap: function(e, n) {
|
|
5363
5363
|
if (e.length > 0) {
|
|
5364
5364
|
var r = e[e.length - 1];
|
|
@@ -5371,19 +5371,19 @@ var Hr = {
|
|
|
5371
5371
|
var r = e.indexOf(n);
|
|
5372
5372
|
r !== -1 && e.splice(r, 1), e.length > 0 && e[e.length - 1].unpause();
|
|
5373
5373
|
}
|
|
5374
|
-
}, yo = function(e) {
|
|
5375
|
-
return e.tagName && e.tagName.toLowerCase() === "input" && typeof e.select == "function";
|
|
5376
5374
|
}, _o = function(e) {
|
|
5375
|
+
return e.tagName && e.tagName.toLowerCase() === "input" && typeof e.select == "function";
|
|
5376
|
+
}, xo = function(e) {
|
|
5377
5377
|
return (e == null ? void 0 : e.key) === "Escape" || (e == null ? void 0 : e.key) === "Esc" || (e == null ? void 0 : e.keyCode) === 27;
|
|
5378
5378
|
}, vt = function(e) {
|
|
5379
5379
|
return (e == null ? void 0 : e.key) === "Tab" || (e == null ? void 0 : e.keyCode) === 9;
|
|
5380
|
-
}, xo = function(e) {
|
|
5381
|
-
return vt(e) && !e.shiftKey;
|
|
5382
5380
|
}, wo = function(e) {
|
|
5381
|
+
return vt(e) && !e.shiftKey;
|
|
5382
|
+
}, jo = function(e) {
|
|
5383
5383
|
return vt(e) && e.shiftKey;
|
|
5384
|
-
},
|
|
5384
|
+
}, Yr = function(e) {
|
|
5385
5385
|
return setTimeout(e, 0);
|
|
5386
|
-
},
|
|
5386
|
+
}, Kr = function(e, n) {
|
|
5387
5387
|
var r = -1;
|
|
5388
5388
|
return e.every(function(s, i) {
|
|
5389
5389
|
return n(s) ? (r = i, !1) : !0;
|
|
@@ -5394,13 +5394,13 @@ var Hr = {
|
|
|
5394
5394
|
return typeof e == "function" ? e.apply(void 0, r) : e;
|
|
5395
5395
|
}, Mt = function(e) {
|
|
5396
5396
|
return e.target.shadowRoot && typeof e.composedPath == "function" ? e.composedPath()[0] : e.target;
|
|
5397
|
-
},
|
|
5398
|
-
var r = (n == null ? void 0 : n.document) || document, s = (n == null ? void 0 : n.trapStack) ||
|
|
5397
|
+
}, ko = [], To = function(e, n) {
|
|
5398
|
+
var r = (n == null ? void 0 : n.document) || document, s = (n == null ? void 0 : n.trapStack) || ko, i = Hr({
|
|
5399
5399
|
returnFocusOnDeactivate: !0,
|
|
5400
5400
|
escapeDeactivates: !0,
|
|
5401
5401
|
delayInitialFocus: !0,
|
|
5402
|
-
isKeyForward:
|
|
5403
|
-
isKeyBackward:
|
|
5402
|
+
isKeyForward: wo,
|
|
5403
|
+
isKeyBackward: jo
|
|
5404
5404
|
}, n), o = {
|
|
5405
5405
|
// containers given to createFocusTrap()
|
|
5406
5406
|
// @type {Array<HTMLElement>}
|
|
@@ -5483,7 +5483,7 @@ var Hr = {
|
|
|
5483
5483
|
return w;
|
|
5484
5484
|
}, f = function() {
|
|
5485
5485
|
if (o.containerGroups = o.containers.map(function(w) {
|
|
5486
|
-
var k =
|
|
5486
|
+
var k = Ia(w, i.tabbableOptions), N = La(w, i.tabbableOptions), A = k.length > 0 ? k[0] : void 0, W = k.length > 0 ? k[k.length - 1] : void 0, Z = N.find(function(T) {
|
|
5487
5487
|
return We(T);
|
|
5488
5488
|
}), z = N.slice().reverse().find(function(T) {
|
|
5489
5489
|
return We(T);
|
|
@@ -5548,7 +5548,7 @@ var Hr = {
|
|
|
5548
5548
|
}
|
|
5549
5549
|
w.focus({
|
|
5550
5550
|
preventScroll: !!i.preventScroll
|
|
5551
|
-
}), o.mostRecentlyFocusedNode = w,
|
|
5551
|
+
}), o.mostRecentlyFocusedNode = w, _o(w) && w.select();
|
|
5552
5552
|
}
|
|
5553
5553
|
}, b = function(w) {
|
|
5554
5554
|
var k = u("setReturnFocus", w);
|
|
@@ -5562,7 +5562,7 @@ var Hr = {
|
|
|
5562
5562
|
if (z < 0)
|
|
5563
5563
|
W ? Z = o.tabbableGroups[o.tabbableGroups.length - 1].lastTabbableNode : Z = o.tabbableGroups[0].firstTabbableNode;
|
|
5564
5564
|
else if (W) {
|
|
5565
|
-
var T =
|
|
5565
|
+
var T = Kr(o.tabbableGroups, function(G) {
|
|
5566
5566
|
var V = G.firstTabbableNode;
|
|
5567
5567
|
return k === V;
|
|
5568
5568
|
});
|
|
@@ -5572,7 +5572,7 @@ var Hr = {
|
|
|
5572
5572
|
} else
|
|
5573
5573
|
vt(N) || (Z = K.nextTabbableNode(k, !1));
|
|
5574
5574
|
} else {
|
|
5575
|
-
var q =
|
|
5575
|
+
var q = Kr(o.tabbableGroups, function(G) {
|
|
5576
5576
|
var V = G.lastTabbableNode;
|
|
5577
5577
|
return k === V;
|
|
5578
5578
|
});
|
|
@@ -5643,7 +5643,7 @@ var Hr = {
|
|
|
5643
5643
|
});
|
|
5644
5644
|
N && (vt(w) && w.preventDefault(), h(N));
|
|
5645
5645
|
}, j = function(w) {
|
|
5646
|
-
if (
|
|
5646
|
+
if (xo(w) && ct(i.escapeDeactivates, w) !== !1) {
|
|
5647
5647
|
w.preventDefault(), c.deactivate();
|
|
5648
5648
|
return;
|
|
5649
5649
|
}
|
|
@@ -5653,7 +5653,7 @@ var Hr = {
|
|
|
5653
5653
|
l(k, w) >= 0 || ct(i.clickOutsideDeactivates, w) || ct(i.allowOutsideClick, w) || (w.preventDefault(), w.stopImmediatePropagation());
|
|
5654
5654
|
}, F = function() {
|
|
5655
5655
|
if (o.active)
|
|
5656
|
-
return
|
|
5656
|
+
return Vr.activateTrap(s, c), o.delayInitialFocusTimer = i.delayInitialFocus ? Yr(function() {
|
|
5657
5657
|
h(m());
|
|
5658
5658
|
}) : h(m()), r.addEventListener("focusin", _, !0), r.addEventListener("mousedown", y, {
|
|
5659
5659
|
capture: !0,
|
|
@@ -5707,16 +5707,16 @@ var Hr = {
|
|
|
5707
5707
|
deactivate: function(w) {
|
|
5708
5708
|
if (!o.active)
|
|
5709
5709
|
return this;
|
|
5710
|
-
var k =
|
|
5710
|
+
var k = Hr({
|
|
5711
5711
|
onDeactivate: i.onDeactivate,
|
|
5712
5712
|
onPostDeactivate: i.onPostDeactivate,
|
|
5713
5713
|
checkCanReturnFocus: i.checkCanReturnFocus
|
|
5714
5714
|
}, w);
|
|
5715
|
-
clearTimeout(o.delayInitialFocusTimer), o.delayInitialFocusTimer = void 0, R(), o.active = !1, o.paused = !1, $(),
|
|
5715
|
+
clearTimeout(o.delayInitialFocusTimer), o.delayInitialFocusTimer = void 0, R(), o.active = !1, o.paused = !1, $(), Vr.deactivateTrap(s, c);
|
|
5716
5716
|
var N = d(k, "onDeactivate"), A = d(k, "onPostDeactivate"), W = d(k, "checkCanReturnFocus"), Z = d(k, "returnFocus", "returnFocusOnDeactivate");
|
|
5717
5717
|
N == null || N();
|
|
5718
5718
|
var z = function() {
|
|
5719
|
-
|
|
5719
|
+
Yr(function() {
|
|
5720
5720
|
Z && h(b(o.nodeFocusedBeforeActivation)), A == null || A();
|
|
5721
5721
|
});
|
|
5722
5722
|
};
|
|
@@ -5742,10 +5742,10 @@ var Hr = {
|
|
|
5742
5742
|
}
|
|
5743
5743
|
}, c.updateContainerElements(e), c;
|
|
5744
5744
|
};
|
|
5745
|
-
const
|
|
5745
|
+
const Eo = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
5746
5746
|
__proto__: null,
|
|
5747
|
-
createFocusTrap:
|
|
5748
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
5747
|
+
createFocusTrap: To
|
|
5748
|
+
}, Symbol.toStringTag, { value: "Module" })), So = /* @__PURE__ */ fa(Eo), Co = /* @__PURE__ */ fa(go);
|
|
5749
5749
|
function tt(t) {
|
|
5750
5750
|
"@babel/helpers - typeof";
|
|
5751
5751
|
return tt = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
|
|
@@ -5754,20 +5754,20 @@ function tt(t) {
|
|
|
5754
5754
|
return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
|
|
5755
5755
|
}, tt(t);
|
|
5756
5756
|
}
|
|
5757
|
-
function
|
|
5757
|
+
function No(t, e) {
|
|
5758
5758
|
if (!(t instanceof e))
|
|
5759
5759
|
throw new TypeError("Cannot call a class as a function");
|
|
5760
5760
|
}
|
|
5761
|
-
function
|
|
5761
|
+
function Gr(t, e) {
|
|
5762
5762
|
for (var n = 0; n < e.length; n++) {
|
|
5763
5763
|
var r = e[n];
|
|
5764
|
-
r.enumerable = r.enumerable || !1, r.configurable = !0, "value" in r && (r.writable = !0), Object.defineProperty(t,
|
|
5764
|
+
r.enumerable = r.enumerable || !1, r.configurable = !0, "value" in r && (r.writable = !0), Object.defineProperty(t, Ba(r.key), r);
|
|
5765
5765
|
}
|
|
5766
5766
|
}
|
|
5767
|
-
function
|
|
5768
|
-
return e &&
|
|
5767
|
+
function $o(t, e, n) {
|
|
5768
|
+
return e && Gr(t.prototype, e), n && Gr(t, n), Object.defineProperty(t, "prototype", { writable: !1 }), t;
|
|
5769
5769
|
}
|
|
5770
|
-
function
|
|
5770
|
+
function Po(t, e) {
|
|
5771
5771
|
if (typeof e != "function" && e !== null)
|
|
5772
5772
|
throw new TypeError("Super expression must either be null or a function");
|
|
5773
5773
|
t.prototype = Object.create(e && e.prototype, { constructor: { value: t, writable: !0, configurable: !0 } }), Object.defineProperty(t, "prototype", { writable: !1 }), e && Yn(t, e);
|
|
@@ -5777,8 +5777,8 @@ function Yn(t, e) {
|
|
|
5777
5777
|
return r.__proto__ = s, r;
|
|
5778
5778
|
}, Yn(t, e);
|
|
5779
5779
|
}
|
|
5780
|
-
function
|
|
5781
|
-
var e =
|
|
5780
|
+
function Mo(t) {
|
|
5781
|
+
var e = Fo();
|
|
5782
5782
|
return function() {
|
|
5783
5783
|
var r = Yt(t), s;
|
|
5784
5784
|
if (e) {
|
|
@@ -5786,10 +5786,10 @@ function Po(t) {
|
|
|
5786
5786
|
s = Reflect.construct(r, arguments, i);
|
|
5787
5787
|
} else
|
|
5788
5788
|
s = r.apply(this, arguments);
|
|
5789
|
-
return
|
|
5789
|
+
return Ro(this, s);
|
|
5790
5790
|
};
|
|
5791
5791
|
}
|
|
5792
|
-
function
|
|
5792
|
+
function Ro(t, e) {
|
|
5793
5793
|
if (e && (tt(e) === "object" || typeof e == "function"))
|
|
5794
5794
|
return e;
|
|
5795
5795
|
if (e !== void 0)
|
|
@@ -5801,7 +5801,7 @@ function mt(t) {
|
|
|
5801
5801
|
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
5802
5802
|
return t;
|
|
5803
5803
|
}
|
|
5804
|
-
function
|
|
5804
|
+
function Fo() {
|
|
5805
5805
|
if (typeof Reflect > "u" || !Reflect.construct || Reflect.construct.sham)
|
|
5806
5806
|
return !1;
|
|
5807
5807
|
if (typeof Proxy == "function")
|
|
@@ -5818,14 +5818,14 @@ function Yt(t) {
|
|
|
5818
5818
|
return n.__proto__ || Object.getPrototypeOf(n);
|
|
5819
5819
|
}, Yt(t);
|
|
5820
5820
|
}
|
|
5821
|
-
function
|
|
5822
|
-
return e =
|
|
5821
|
+
function Oo(t, e, n) {
|
|
5822
|
+
return e = Ba(e), e in t ? Object.defineProperty(t, e, { value: n, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = n, t;
|
|
5823
5823
|
}
|
|
5824
|
-
function
|
|
5825
|
-
var e =
|
|
5824
|
+
function Ba(t) {
|
|
5825
|
+
var e = Ao(t, "string");
|
|
5826
5826
|
return tt(e) === "symbol" ? e : String(e);
|
|
5827
5827
|
}
|
|
5828
|
-
function
|
|
5828
|
+
function Ao(t, e) {
|
|
5829
5829
|
if (tt(t) !== "object" || t === null)
|
|
5830
5830
|
return t;
|
|
5831
5831
|
var n = t[Symbol.toPrimitive];
|
|
@@ -5837,12 +5837,12 @@ function Oo(t, e) {
|
|
|
5837
5837
|
}
|
|
5838
5838
|
return (e === "string" ? String : Number)(t);
|
|
5839
5839
|
}
|
|
5840
|
-
var Rt = Y, Q =
|
|
5841
|
-
|
|
5842
|
-
var e =
|
|
5840
|
+
var Rt = Y, Q = Xi, Do = So, Io = Do.createFocusTrap, Lo = Co, Bo = Lo.isFocusable, nr = /* @__PURE__ */ function(t) {
|
|
5841
|
+
Po(n, t);
|
|
5842
|
+
var e = Mo(n);
|
|
5843
5843
|
function n(r) {
|
|
5844
5844
|
var s;
|
|
5845
|
-
|
|
5845
|
+
No(this, n), s = e.call(this, r), Oo(mt(s), "getNodeForOption", function(c) {
|
|
5846
5846
|
var d, l = (d = this.internalOptions[c]) !== null && d !== void 0 ? d : this.originalOptions[c];
|
|
5847
5847
|
if (typeof l == "function") {
|
|
5848
5848
|
for (var u = arguments.length, m = new Array(u > 1 ? u - 1 : 0), f = 1; f < u; f++)
|
|
@@ -5902,7 +5902,7 @@ var Rt = Y, Q = Ji, Ao = Eo, Do = Ao.createFocusTrap, Io = So, Lo = Io.isFocusab
|
|
|
5902
5902
|
}
|
|
5903
5903
|
return s.outsideClick = null, s.focusTrapElements = r.containerElements || [], s.updatePreviousElement(), s;
|
|
5904
5904
|
}
|
|
5905
|
-
return
|
|
5905
|
+
return $o(n, [{
|
|
5906
5906
|
key: "getDocument",
|
|
5907
5907
|
value: function() {
|
|
5908
5908
|
return this.props.focusTrapOptions.document || (typeof document < "u" ? document : void 0);
|
|
@@ -5965,7 +5965,7 @@ var Rt = Y, Q = Ji, Ao = Eo, Do = Ao.createFocusTrap, Io = So, Lo = Io.isFocusab
|
|
|
5965
5965
|
s.outsideClick.allowDeactivation && // is the outside node NOT focusable (implying that it did NOT receive focus
|
|
5966
5966
|
// as a result of the click-through) -- in which case do NOT restore focus
|
|
5967
5967
|
// to `returnFocusNode` because focus should remain on the outside node
|
|
5968
|
-
!
|
|
5968
|
+
!Bo(s.outsideClick.target, s.internalOptions.tabbableOptions))), l = s.internalOptions.preventScroll, u = l === void 0 ? !1 : l;
|
|
5969
5969
|
d && c.focus({
|
|
5970
5970
|
preventScroll: u
|
|
5971
5971
|
}), s.originalOptions.onPostDeactivate && s.originalOptions.onPostDeactivate.call(null), s.outsideClick = null;
|
|
@@ -6025,7 +6025,7 @@ var Rt = Y, Q = Ji, Ao = Eo, Do = Ao.createFocusTrap, Io = So, Lo = Io.isFocusab
|
|
|
6025
6025
|
}
|
|
6026
6026
|
}]), n;
|
|
6027
6027
|
}(Rt.Component), lt = typeof Element > "u" ? Function : Element;
|
|
6028
|
-
|
|
6028
|
+
nr.propTypes = {
|
|
6029
6029
|
active: Q.bool,
|
|
6030
6030
|
paused: Q.bool,
|
|
6031
6031
|
focusTrapOptions: Q.shape({
|
|
@@ -6073,15 +6073,15 @@ tr.propTypes = {
|
|
|
6073
6073
|
// specify it here. It's expected to be set to the function returned from
|
|
6074
6074
|
// require('focus-trap'), or one with a compatible interface.
|
|
6075
6075
|
};
|
|
6076
|
-
|
|
6076
|
+
nr.defaultProps = {
|
|
6077
6077
|
active: !0,
|
|
6078
6078
|
paused: !1,
|
|
6079
6079
|
focusTrapOptions: {},
|
|
6080
|
-
_createFocusTrap:
|
|
6080
|
+
_createFocusTrap: Io
|
|
6081
6081
|
};
|
|
6082
|
-
var
|
|
6083
|
-
const
|
|
6084
|
-
const
|
|
6082
|
+
var qo = nr;
|
|
6083
|
+
const Wo = /* @__PURE__ */ da(qo);
|
|
6084
|
+
const qa = ({ element: t = "section", children: e, className: n, ...r }) => Y.createElement(t, {
|
|
6085
6085
|
className: E("modal", n),
|
|
6086
6086
|
children: typeof e == "string" ? /* @__PURE__ */ a.jsx("p", { children: e }) : e,
|
|
6087
6087
|
...r
|
|
@@ -6115,7 +6115,7 @@ const sn = ({
|
|
|
6115
6115
|
}, [e]);
|
|
6116
6116
|
const y = r ? { "--max-width": `${r / 16}rem` } : {};
|
|
6117
6117
|
return /* @__PURE__ */ a.jsx("div", { className: E("overlay", { open: p }), role: "dialog", children: /* @__PURE__ */ a.jsx(
|
|
6118
|
-
|
|
6118
|
+
qa,
|
|
6119
6119
|
{
|
|
6120
6120
|
id: t,
|
|
6121
6121
|
className: E("overlay-modal", u, {
|
|
@@ -6123,11 +6123,11 @@ const sn = ({
|
|
|
6123
6123
|
}),
|
|
6124
6124
|
hidden: !p,
|
|
6125
6125
|
style: y,
|
|
6126
|
-
children: e && /* @__PURE__ */ a.jsx(
|
|
6126
|
+
children: e && /* @__PURE__ */ a.jsx(Wo, { children: /* @__PURE__ */ a.jsxs("div", { className: "overlay-content", children: [
|
|
6127
6127
|
/* @__PURE__ */ a.jsxs("div", { className: "top", children: [
|
|
6128
6128
|
c && /* @__PURE__ */ a.jsx("h2", { className: "modal-title", children: c }),
|
|
6129
6129
|
/* @__PURE__ */ a.jsx(
|
|
6130
|
-
|
|
6130
|
+
ie,
|
|
6131
6131
|
{
|
|
6132
6132
|
variant: "tertiary",
|
|
6133
6133
|
size: "medium",
|
|
@@ -6150,12 +6150,12 @@ const sn = ({
|
|
|
6150
6150
|
] }) })
|
|
6151
6151
|
}
|
|
6152
6152
|
) });
|
|
6153
|
-
},
|
|
6153
|
+
}, Uo = (t, e) => ({
|
|
6154
6154
|
"aria-haspopup": !0,
|
|
6155
6155
|
"aria-expanded": e,
|
|
6156
6156
|
"aria-controls": t
|
|
6157
6157
|
});
|
|
6158
|
-
const
|
|
6158
|
+
const zl = ({
|
|
6159
6159
|
className: t,
|
|
6160
6160
|
showModal: e = !0,
|
|
6161
6161
|
title: n,
|
|
@@ -6179,7 +6179,7 @@ const Ul = ({
|
|
|
6179
6179
|
functions: { onClose: c },
|
|
6180
6180
|
className: E("invite-modal", t, { success: !!n }),
|
|
6181
6181
|
children: /* @__PURE__ */ a.jsx(
|
|
6182
|
-
|
|
6182
|
+
Ii,
|
|
6183
6183
|
{
|
|
6184
6184
|
title: r,
|
|
6185
6185
|
label: s,
|
|
@@ -6192,7 +6192,7 @@ const Ul = ({
|
|
|
6192
6192
|
}
|
|
6193
6193
|
);
|
|
6194
6194
|
};
|
|
6195
|
-
const
|
|
6195
|
+
const Zl = ({ members: t }) => {
|
|
6196
6196
|
const [e, n] = J(!1), r = (s) => {
|
|
6197
6197
|
const { fullName: i, jobTitle: o, organisation: c, photo: d } = s || {};
|
|
6198
6198
|
return /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
|
|
@@ -6232,7 +6232,7 @@ const zl = ({ members: t }) => {
|
|
|
6232
6232
|
)
|
|
6233
6233
|
] });
|
|
6234
6234
|
};
|
|
6235
|
-
const
|
|
6235
|
+
const zo = ({
|
|
6236
6236
|
author: t,
|
|
6237
6237
|
authorCite: e,
|
|
6238
6238
|
content: n,
|
|
@@ -6260,8 +6260,8 @@ const Uo = ({
|
|
|
6260
6260
|
}
|
|
6261
6261
|
)
|
|
6262
6262
|
] })
|
|
6263
|
-
] }),
|
|
6264
|
-
const
|
|
6263
|
+
] }), Hl = Oe(zo);
|
|
6264
|
+
const Vl = ({
|
|
6265
6265
|
items: t = [],
|
|
6266
6266
|
selector: e = "",
|
|
6267
6267
|
className: n = ""
|
|
@@ -6293,7 +6293,7 @@ const Hl = ({
|
|
|
6293
6293
|
}
|
|
6294
6294
|
);
|
|
6295
6295
|
};
|
|
6296
|
-
const
|
|
6296
|
+
const rr = ({
|
|
6297
6297
|
time: t,
|
|
6298
6298
|
rangeTime: e,
|
|
6299
6299
|
prependedText: n,
|
|
@@ -6330,7 +6330,7 @@ const nr = ({
|
|
|
6330
6330
|
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 });
|
|
6331
6331
|
};
|
|
6332
6332
|
let ut = !1;
|
|
6333
|
-
const
|
|
6333
|
+
const Zo = ({ isOpen: t = !1, isLoading: e = !1, children: n }) => {
|
|
6334
6334
|
const r = H(), s = pe(null), [i, o] = J(t ? "open" : "hidden");
|
|
6335
6335
|
ae(() => {
|
|
6336
6336
|
const d = s.current;
|
|
@@ -6358,7 +6358,7 @@ const zo = ({ isOpen: t = !1, isLoading: e = !1, children: n }) => {
|
|
|
6358
6358
|
}
|
|
6359
6359
|
);
|
|
6360
6360
|
};
|
|
6361
|
-
const
|
|
6361
|
+
const Yl = ({ className: t = "", image: e, ...n }) => e ? (typeof e == "string" && (e = {
|
|
6362
6362
|
width: 1080,
|
|
6363
6363
|
height: 200,
|
|
6364
6364
|
type: "image/png",
|
|
@@ -6393,7 +6393,7 @@ const Ye = ({
|
|
|
6393
6393
|
}
|
|
6394
6394
|
);
|
|
6395
6395
|
};
|
|
6396
|
-
const
|
|
6396
|
+
const Kl = ({ text: t, buttons: e, className: n = "" }) => {
|
|
6397
6397
|
const r = [];
|
|
6398
6398
|
return e.forEach((s) => {
|
|
6399
6399
|
r.push({
|
|
@@ -6415,16 +6415,16 @@ const Yl = ({ text: t, buttons: e, className: n = "" }) => {
|
|
|
6415
6415
|
/* @__PURE__ */ a.jsx(kt, { buttons: r })
|
|
6416
6416
|
] }) });
|
|
6417
6417
|
};
|
|
6418
|
-
function
|
|
6418
|
+
function Wa({ href: t, setShowModal: e }) {
|
|
6419
6419
|
typeof t != "string" && e(!0);
|
|
6420
6420
|
}
|
|
6421
|
-
const
|
|
6421
|
+
const Ho = ({ icon: t, description: e, ctaMessage: n, href: r, showEditButton: s, setShowModal: i }) => {
|
|
6422
6422
|
const { formatMessage: o } = H();
|
|
6423
|
-
return /* @__PURE__ */ a.jsxs("div", { className: E("edit-section-placeholder", { "has-icon": !!t }), style:
|
|
6423
|
+
return /* @__PURE__ */ a.jsxs("div", { className: E("edit-section-placeholder", { "has-icon": !!t }), style: Ys(t), children: [
|
|
6424
6424
|
/* @__PURE__ */ a.jsx("p", { children: e || o({ id: "edit_section_placeholder_description" }) }),
|
|
6425
|
-
s && /* @__PURE__ */ a.jsx(
|
|
6425
|
+
s && /* @__PURE__ */ a.jsx(ie, { href: r, variant: "secondary", size: "small", onClick: () => Wa({ href: r, setShowModal: i }), children: n || o({ id: "edit_section_placeholder_cta" }) })
|
|
6426
6426
|
] });
|
|
6427
|
-
},
|
|
6427
|
+
}, Gl = ({
|
|
6428
6428
|
children: t,
|
|
6429
6429
|
className: e = "",
|
|
6430
6430
|
formProps: n,
|
|
@@ -6462,13 +6462,13 @@ const Zo = ({ icon: t, description: e, ctaMessage: n, href: r, showEditButton: s
|
|
|
6462
6462
|
),
|
|
6463
6463
|
/* @__PURE__ */ a.jsxs("div", { className: "edit-section-header", children: [
|
|
6464
6464
|
/* @__PURE__ */ a.jsx("h2", { className: "edit-section-header-title", children: s }),
|
|
6465
|
-
u && /* @__PURE__ */ a.jsx(
|
|
6465
|
+
u && /* @__PURE__ */ a.jsx(ie, { href: r, variant: "tertiary", size: "small", icon: "pencil", onClick: () => Wa({ href: r, setShowModal: l }), children: "Edit" })
|
|
6466
6466
|
] }),
|
|
6467
|
-
t || /* @__PURE__ */ a.jsx(
|
|
6467
|
+
t || /* @__PURE__ */ a.jsx(Ho, { ...o, href: r, setShowModal: l, showEditButton: u }),
|
|
6468
6468
|
c && /* @__PURE__ */ a.jsx(ze, {})
|
|
6469
6469
|
] });
|
|
6470
6470
|
};
|
|
6471
|
-
const
|
|
6471
|
+
const Ql = ({
|
|
6472
6472
|
title: t = !1,
|
|
6473
6473
|
logos: e = [],
|
|
6474
6474
|
styling: n = {},
|
|
@@ -6525,7 +6525,7 @@ const Gl = ({
|
|
|
6525
6525
|
}
|
|
6526
6526
|
);
|
|
6527
6527
|
};
|
|
6528
|
-
const
|
|
6528
|
+
const Vo = [
|
|
6529
6529
|
"small",
|
|
6530
6530
|
"span",
|
|
6531
6531
|
"strong",
|
|
@@ -6539,7 +6539,7 @@ const Ho = [
|
|
|
6539
6539
|
"h6",
|
|
6540
6540
|
"blockquote",
|
|
6541
6541
|
"q"
|
|
6542
|
-
],
|
|
6542
|
+
], Yo = ({
|
|
6543
6543
|
className: t = "",
|
|
6544
6544
|
content: e,
|
|
6545
6545
|
image: n,
|
|
@@ -6570,7 +6570,7 @@ const Ho = [
|
|
|
6570
6570
|
if (typeof e[v] == "object") {
|
|
6571
6571
|
f[v] = e[v];
|
|
6572
6572
|
const { text: y, element: _ } = e[v];
|
|
6573
|
-
if (_ &&
|
|
6573
|
+
if (_ && Vo.includes(_.toLowerCase()))
|
|
6574
6574
|
return;
|
|
6575
6575
|
f[v] = {
|
|
6576
6576
|
text: y,
|
|
@@ -6610,7 +6610,7 @@ const Ho = [
|
|
|
6610
6610
|
}),
|
|
6611
6611
|
d,
|
|
6612
6612
|
p && /* @__PURE__ */ a.jsx(
|
|
6613
|
-
|
|
6613
|
+
ie,
|
|
6614
6614
|
{
|
|
6615
6615
|
variant: n || ["light", "subtle"].includes(r) ? "primary" : "secondary",
|
|
6616
6616
|
size: { mobile: "medium", 768: "large" },
|
|
@@ -6636,8 +6636,8 @@ const Ho = [
|
|
|
6636
6636
|
] })
|
|
6637
6637
|
}
|
|
6638
6638
|
);
|
|
6639
|
-
},
|
|
6640
|
-
const
|
|
6639
|
+
}, Jl = Oe(Yo);
|
|
6640
|
+
const Xl = ({
|
|
6641
6641
|
image: t,
|
|
6642
6642
|
variant: e = "default",
|
|
6643
6643
|
children: n,
|
|
@@ -6655,7 +6655,7 @@ const Jl = ({
|
|
|
6655
6655
|
}
|
|
6656
6656
|
);
|
|
6657
6657
|
};
|
|
6658
|
-
const
|
|
6658
|
+
const Ko = ({
|
|
6659
6659
|
alignImage: t = "left",
|
|
6660
6660
|
className: e,
|
|
6661
6661
|
content: n,
|
|
@@ -6690,8 +6690,8 @@ const Yo = ({
|
|
|
6690
6690
|
}
|
|
6691
6691
|
)
|
|
6692
6692
|
] });
|
|
6693
|
-
},
|
|
6694
|
-
const
|
|
6693
|
+
}, eu = Oe(Ko);
|
|
6694
|
+
const tu = ({
|
|
6695
6695
|
variant: t = "primary",
|
|
6696
6696
|
button: e = null,
|
|
6697
6697
|
title: n,
|
|
@@ -6701,7 +6701,7 @@ const eu = ({
|
|
|
6701
6701
|
n && /* @__PURE__ */ a.jsx("p", { className: "title", children: n }),
|
|
6702
6702
|
r && /* @__PURE__ */ a.jsx("p", { children: r }),
|
|
6703
6703
|
e && /* @__PURE__ */ a.jsx(
|
|
6704
|
-
|
|
6704
|
+
ie,
|
|
6705
6705
|
{
|
|
6706
6706
|
variant: "secondary",
|
|
6707
6707
|
size: "medium",
|
|
@@ -6712,8 +6712,8 @@ const eu = ({
|
|
|
6712
6712
|
children: e.text
|
|
6713
6713
|
}
|
|
6714
6714
|
)
|
|
6715
|
-
] }),
|
|
6716
|
-
const n = new
|
|
6715
|
+
] }), Go = ({ showDevTools: t = !0, children: e }) => {
|
|
6716
|
+
const n = new Ss({
|
|
6717
6717
|
// default options we would like on all queries can be overridden individually
|
|
6718
6718
|
defaultOptions: {
|
|
6719
6719
|
queries: {
|
|
@@ -6724,20 +6724,20 @@ const eu = ({
|
|
|
6724
6724
|
}
|
|
6725
6725
|
}
|
|
6726
6726
|
});
|
|
6727
|
-
return /* @__PURE__ */ a.jsxs(
|
|
6727
|
+
return /* @__PURE__ */ a.jsxs(Cs, { client: n, children: [
|
|
6728
6728
|
e,
|
|
6729
|
-
t && /* @__PURE__ */ a.jsx(
|
|
6729
|
+
t && /* @__PURE__ */ a.jsx($s, { initialIsOpen: !1 })
|
|
6730
6730
|
] });
|
|
6731
6731
|
};
|
|
6732
|
-
var
|
|
6733
|
-
function
|
|
6732
|
+
var Qo = nn({ client: Lt });
|
|
6733
|
+
function Jo(t) {
|
|
6734
6734
|
var e = t.children, n = t.client, r = t.apiKey, s = t.options, i = wt(function() {
|
|
6735
6735
|
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);
|
|
6736
6736
|
}, [n, r]);
|
|
6737
|
-
return Y.createElement(
|
|
6737
|
+
return Y.createElement(Qo.Provider, { value: { client: i } }, e);
|
|
6738
6738
|
}
|
|
6739
|
-
const
|
|
6740
|
-
|
|
6739
|
+
const Xo = ({ children: t, user: e }) => e.isLoading ? null : process.env.REACT_APP_PUBLIC_POSTHOG_KEY ? /* @__PURE__ */ a.jsx(
|
|
6740
|
+
Jo,
|
|
6741
6741
|
{
|
|
6742
6742
|
apiKey: atob(process.env.REACT_APP_PUBLIC_POSTHOG_KEY),
|
|
6743
6743
|
options: {
|
|
@@ -6755,38 +6755,38 @@ const Jo = ({ children: t, user: e }) => e.isLoading ? null : process.env.REACT_
|
|
|
6755
6755
|
},
|
|
6756
6756
|
children: t
|
|
6757
6757
|
}
|
|
6758
|
-
) : /* @__PURE__ */ a.jsx(a.Fragment, { children: t }),
|
|
6758
|
+
) : /* @__PURE__ */ a.jsx(a.Fragment, { children: t }), ec = ({ children: t, locale: e, messages: n }) => {
|
|
6759
6759
|
const r = e || "en", s = {
|
|
6760
|
-
...
|
|
6760
|
+
...ti[r],
|
|
6761
6761
|
...n || {}
|
|
6762
6762
|
};
|
|
6763
|
-
return /* @__PURE__ */ a.jsx(
|
|
6764
|
-
},
|
|
6763
|
+
return /* @__PURE__ */ a.jsx(Ts, { locale: r, messages: s, children: t });
|
|
6764
|
+
}, Ua = nn({}), En = {
|
|
6765
6765
|
en: "English",
|
|
6766
6766
|
es: "Español",
|
|
6767
6767
|
fr: "Français",
|
|
6768
6768
|
pt: "Português"
|
|
6769
6769
|
}, Ae = nn({ isLoading: !0 });
|
|
6770
|
-
function
|
|
6770
|
+
function ar() {
|
|
6771
6771
|
return Ee(Ae);
|
|
6772
6772
|
}
|
|
6773
|
-
const
|
|
6773
|
+
const tc = ({ children: t, user: e }) => /* @__PURE__ */ a.jsx(Ae.Provider, { value: e, children: t }), nu = ({ bootstrap: t, children: e, intl: n, showDevTools: r }) => {
|
|
6774
6774
|
const [s, i] = J({ isLoading: !0 }), o = (n == null ? void 0 : n.locale) || localStorage.getItem("language") || "en", [c, d] = J(o), l = (u) => {
|
|
6775
6775
|
localStorage.setItem("language", u), d(u);
|
|
6776
6776
|
};
|
|
6777
6777
|
return ae(() => {
|
|
6778
6778
|
t().then((u) => {
|
|
6779
|
-
i({ ...u, isLoading: !1 }),
|
|
6779
|
+
i({ ...u, isLoading: !1 }), ri(5e3);
|
|
6780
6780
|
}).catch(() => i({ isLoading: !1 }));
|
|
6781
|
-
}, []), /* @__PURE__ */ a.jsx(
|
|
6782
|
-
|
|
6781
|
+
}, []), /* @__PURE__ */ a.jsx(Ua.Provider, { value: { language: c, updateLanguage: l }, children: /* @__PURE__ */ a.jsx(
|
|
6782
|
+
ec,
|
|
6783
6783
|
{
|
|
6784
6784
|
locale: c,
|
|
6785
6785
|
messages: n == null ? void 0 : n.messages,
|
|
6786
|
-
children: /* @__PURE__ */ a.jsx(
|
|
6786
|
+
children: /* @__PURE__ */ a.jsx(Ps, { children: /* @__PURE__ */ a.jsx(tc, { user: s, children: /* @__PURE__ */ a.jsx(Go, { showDevTools: r, children: /* @__PURE__ */ a.jsx(Xo, { user: s, children: e }) }) }) })
|
|
6787
6787
|
}
|
|
6788
6788
|
) });
|
|
6789
|
-
},
|
|
6789
|
+
}, nc = ({ type: t, data: e }) => {
|
|
6790
6790
|
const n = H(), {
|
|
6791
6791
|
answers: r,
|
|
6792
6792
|
createdAt: s,
|
|
@@ -6818,7 +6818,7 @@ const ec = ({ children: t, user: e }) => /* @__PURE__ */ a.jsx(Ae.Provider, { va
|
|
|
6818
6818
|
] });
|
|
6819
6819
|
}
|
|
6820
6820
|
if (u && !i || o)
|
|
6821
|
-
return /* @__PURE__ */ a.jsx("p", { className: "details", children: o ? n.formatMessage({ id: "card_bootcamp" }) :
|
|
6821
|
+
return /* @__PURE__ */ a.jsx("p", { className: "details", children: o ? n.formatMessage({ id: "card_bootcamp" }) : ba(u) });
|
|
6822
6822
|
if (c)
|
|
6823
6823
|
return /* @__PURE__ */ a.jsx(
|
|
6824
6824
|
ht,
|
|
@@ -6907,7 +6907,7 @@ const ec = ({ children: t, user: e }) => /* @__PURE__ */ a.jsx(Ae.Provider, { va
|
|
|
6907
6907
|
},
|
|
6908
6908
|
gtmEvent: "learning-hub"
|
|
6909
6909
|
}
|
|
6910
|
-
},
|
|
6910
|
+
}, rc = ({ data: t, cta: e, link: n, gtmContext: r }) => {
|
|
6911
6911
|
var b, v;
|
|
6912
6912
|
const s = H(), [i, o] = J({
|
|
6913
6913
|
loading: !1,
|
|
@@ -6931,7 +6931,7 @@ const ec = ({ children: t, user: e }) => /* @__PURE__ */ a.jsx(Ae.Provider, { va
|
|
|
6931
6931
|
) : null;
|
|
6932
6932
|
if (f === "people")
|
|
6933
6933
|
return n ? /* @__PURE__ */ a.jsx(
|
|
6934
|
-
|
|
6934
|
+
ie,
|
|
6935
6935
|
{
|
|
6936
6936
|
variant: "tertiary",
|
|
6937
6937
|
size: "small",
|
|
@@ -6962,7 +6962,7 @@ const ec = ({ children: t, user: e }) => /* @__PURE__ */ a.jsx(Ae.Provider, { va
|
|
|
6962
6962
|
"has-member-section": t == null ? void 0 : t.members
|
|
6963
6963
|
}),
|
|
6964
6964
|
children: /* @__PURE__ */ a.jsx(
|
|
6965
|
-
|
|
6965
|
+
ie,
|
|
6966
6966
|
{
|
|
6967
6967
|
onClick: _,
|
|
6968
6968
|
className: "gtm-trackable",
|
|
@@ -6982,12 +6982,12 @@ const ec = ({ children: t, user: e }) => /* @__PURE__ */ a.jsx(Ae.Provider, { va
|
|
|
6982
6982
|
}
|
|
6983
6983
|
return null;
|
|
6984
6984
|
};
|
|
6985
|
-
const
|
|
6985
|
+
const ac = {
|
|
6986
6986
|
title: 66,
|
|
6987
6987
|
text: 3e3,
|
|
6988
6988
|
secondaryText: 1e3,
|
|
6989
6989
|
partner: 25
|
|
6990
|
-
},
|
|
6990
|
+
}, za = ({
|
|
6991
6991
|
id: t = "",
|
|
6992
6992
|
card: e,
|
|
6993
6993
|
buildCardData: n,
|
|
@@ -7000,7 +7000,7 @@ const rc = {
|
|
|
7000
7000
|
const c = H(), d = Ee(Ae), l = d && typeof d.id == "string", [u, m] = J({
|
|
7001
7001
|
data: null,
|
|
7002
7002
|
isLoading: !0
|
|
7003
|
-
}), { data: f, isLoading: p } = u, h =
|
|
7003
|
+
}), { data: f, isLoading: p } = u, h = oa(() => {
|
|
7004
7004
|
n(e, l).then(($) => {
|
|
7005
7005
|
m(() => ({ data: $, isLoading: !1 }));
|
|
7006
7006
|
}).catch(() => m(($) => ({ ...$, isLoading: !1 })));
|
|
@@ -7031,7 +7031,7 @@ const rc = {
|
|
|
7031
7031
|
} = Kt[b];
|
|
7032
7032
|
let j = f.slug ? `${v}${f.slug}` : !1;
|
|
7033
7033
|
f.slug && (f.slug.slice(0, 4) === "http" || f.slug.slice(0, 2) === "//" || f.slug.slice(0, 6) === "mailto" || f.slug.slice(0, 3) === "tel") && (j = f.slug);
|
|
7034
|
-
const x = { ...
|
|
7034
|
+
const x = { ...ac, ..._ };
|
|
7035
7035
|
let F = { className: "card" };
|
|
7036
7036
|
return j && (F = {
|
|
7037
7037
|
href: j,
|
|
@@ -7053,7 +7053,7 @@ const rc = {
|
|
|
7053
7053
|
F,
|
|
7054
7054
|
/* @__PURE__ */ a.jsxs(a.Fragment, { children: [
|
|
7055
7055
|
/* @__PURE__ */ a.jsx(
|
|
7056
|
-
|
|
7056
|
+
li,
|
|
7057
7057
|
{
|
|
7058
7058
|
className: "card-label",
|
|
7059
7059
|
contentType: b,
|
|
@@ -7067,7 +7067,7 @@ const rc = {
|
|
|
7067
7067
|
size: "small",
|
|
7068
7068
|
variant: f.dateHasPassed ? "default" : "information",
|
|
7069
7069
|
"data-testid": "date",
|
|
7070
|
-
children: f.dateHasPassed ? c.formatMessage({ id: "card_ended" }) :
|
|
7070
|
+
children: f.dateHasPassed ? c.formatMessage({ id: "card_ended" }) : Ks(f.startDate)
|
|
7071
7071
|
}
|
|
7072
7072
|
),
|
|
7073
7073
|
f.banner ? /* @__PURE__ */ a.jsxs("p", { className: "img", children: [
|
|
@@ -7082,7 +7082,7 @@ const rc = {
|
|
|
7082
7082
|
}
|
|
7083
7083
|
) : null,
|
|
7084
7084
|
f.contributors && /* @__PURE__ */ a.jsx(
|
|
7085
|
-
|
|
7085
|
+
Ta,
|
|
7086
7086
|
{
|
|
7087
7087
|
contributors: { data: f.contributors },
|
|
7088
7088
|
styling: {
|
|
@@ -7103,7 +7103,7 @@ const rc = {
|
|
|
7103
7103
|
const C = f[$];
|
|
7104
7104
|
if (!C)
|
|
7105
7105
|
return null;
|
|
7106
|
-
const w =
|
|
7106
|
+
const w = Zs($);
|
|
7107
7107
|
return /* @__PURE__ */ a.jsx("p", { className: w, "data-testid": w, children: et(C, x[$]) }, $);
|
|
7108
7108
|
}),
|
|
7109
7109
|
(f == null ? void 0 : f.members) && /* @__PURE__ */ a.jsxs("span", { className: "member-information", children: [
|
|
@@ -7124,17 +7124,17 @@ const rc = {
|
|
|
7124
7124
|
{ count: f == null ? void 0 : f.members.count }
|
|
7125
7125
|
) })
|
|
7126
7126
|
] }),
|
|
7127
|
-
/* @__PURE__ */ a.jsx(
|
|
7128
|
-
/* @__PURE__ */ a.jsx(
|
|
7127
|
+
/* @__PURE__ */ a.jsx(nc, { type: y || "", data: f }),
|
|
7128
|
+
/* @__PURE__ */ a.jsx(rc, { data: f, cta: r, link: j || "", gtmContext: s })
|
|
7129
7129
|
] })
|
|
7130
7130
|
)
|
|
7131
7131
|
}
|
|
7132
7132
|
);
|
|
7133
7133
|
};
|
|
7134
|
-
const
|
|
7134
|
+
const sc = ({ cards: t, cardTypes: e, className: n = "", ...r }) => /* @__PURE__ */ a.jsx("ul", { className: E("card-block", n), children: t.map((s, i) => {
|
|
7135
7135
|
const o = s.slug ? `${s.slug}-${e[i]}` : `${e[i]}-${i}`;
|
|
7136
7136
|
return /* @__PURE__ */ a.jsx(
|
|
7137
|
-
|
|
7137
|
+
za,
|
|
7138
7138
|
{
|
|
7139
7139
|
id: o,
|
|
7140
7140
|
card: { ...s, contentType: e[i] },
|
|
@@ -7142,10 +7142,10 @@ const ac = ({ cards: t, cardTypes: e, className: n = "", ...r }) => /* @__PURE__
|
|
|
7142
7142
|
},
|
|
7143
7143
|
o
|
|
7144
7144
|
);
|
|
7145
|
-
}) }),
|
|
7145
|
+
}) }), ic = (t, e, n, r) => {
|
|
7146
7146
|
const s = e * n <= t, i = t < e * (n + 1), o = r.includes(Math.floor(t / e));
|
|
7147
7147
|
return s && i || o;
|
|
7148
|
-
},
|
|
7148
|
+
}, oc = ({ id: t, title: e }) => {
|
|
7149
7149
|
const n = H();
|
|
7150
7150
|
if (!e || !e.text)
|
|
7151
7151
|
return null;
|
|
@@ -7175,7 +7175,7 @@ const Sn = {
|
|
|
7175
7175
|
twoCards: 480
|
|
7176
7176
|
};
|
|
7177
7177
|
let Ft = null;
|
|
7178
|
-
const
|
|
7178
|
+
const cc = ({
|
|
7179
7179
|
id: t,
|
|
7180
7180
|
cards: e,
|
|
7181
7181
|
cardTypes: n,
|
|
@@ -7233,7 +7233,7 @@ const oc = ({
|
|
|
7233
7233
|
"--page": b
|
|
7234
7234
|
};
|
|
7235
7235
|
if (f)
|
|
7236
|
-
return /* @__PURE__ */ a.jsx(
|
|
7236
|
+
return /* @__PURE__ */ a.jsx(wa, { layout: `carousel${s ? "-with-title" : ""}` });
|
|
7237
7237
|
const B = ($, C) => {
|
|
7238
7238
|
var k;
|
|
7239
7239
|
let w = null;
|
|
@@ -7246,7 +7246,7 @@ const oc = ({
|
|
|
7246
7246
|
className: E("carousel-wrapper", i),
|
|
7247
7247
|
"data-testid": "carousel",
|
|
7248
7248
|
children: [
|
|
7249
|
-
/* @__PURE__ */ a.jsx(
|
|
7249
|
+
/* @__PURE__ */ a.jsx(oc, { id: t, title: s }),
|
|
7250
7250
|
/* @__PURE__ */ a.jsx(
|
|
7251
7251
|
"ul",
|
|
7252
7252
|
{
|
|
@@ -7257,8 +7257,8 @@ const oc = ({
|
|
|
7257
7257
|
"data-testid": "carousel-list",
|
|
7258
7258
|
children: e.map(($, C) => {
|
|
7259
7259
|
let w = B($, C);
|
|
7260
|
-
return w &&
|
|
7261
|
-
|
|
7260
|
+
return w && ic(C, m, b, v) ? /* @__PURE__ */ a.jsx(
|
|
7261
|
+
za,
|
|
7262
7262
|
{
|
|
7263
7263
|
id: w,
|
|
7264
7264
|
card: { ...$, contentType: n[C] },
|
|
@@ -7281,7 +7281,7 @@ const oc = ({
|
|
|
7281
7281
|
),
|
|
7282
7282
|
_ <= 1 ? null : /* @__PURE__ */ a.jsxs("ul", { className: "controls", "data-testid": "carousel-controls", children: [
|
|
7283
7283
|
/* @__PURE__ */ a.jsx("li", { className: "arrow previous", children: /* @__PURE__ */ a.jsx(
|
|
7284
|
-
|
|
7284
|
+
ie,
|
|
7285
7285
|
{
|
|
7286
7286
|
variant: "secondary",
|
|
7287
7287
|
size: "large",
|
|
@@ -7311,7 +7311,7 @@ const oc = ({
|
|
|
7311
7311
|
}
|
|
7312
7312
|
) }, `page-indicator-${C}`)),
|
|
7313
7313
|
/* @__PURE__ */ a.jsx("li", { className: "arrow next", children: /* @__PURE__ */ a.jsx(
|
|
7314
|
-
|
|
7314
|
+
ie,
|
|
7315
7315
|
{
|
|
7316
7316
|
variant: "secondary",
|
|
7317
7317
|
size: "large",
|
|
@@ -7327,7 +7327,7 @@ const oc = ({
|
|
|
7327
7327
|
]
|
|
7328
7328
|
}
|
|
7329
7329
|
);
|
|
7330
|
-
},
|
|
7330
|
+
}, ru = ({
|
|
7331
7331
|
carousels: t = [],
|
|
7332
7332
|
isLoading: e,
|
|
7333
7333
|
title: n,
|
|
@@ -7338,7 +7338,7 @@ const oc = ({
|
|
|
7338
7338
|
const u = i ? window.btoa(i) : `carousel-${l}`, m = l === t.length - 1;
|
|
7339
7339
|
return e ? /* @__PURE__ */ a.jsxs(yt, { children: [
|
|
7340
7340
|
/* @__PURE__ */ a.jsx(
|
|
7341
|
-
|
|
7341
|
+
wa,
|
|
7342
7342
|
{
|
|
7343
7343
|
layout: `carousel${i ? "-with-title" : ""}`,
|
|
7344
7344
|
"data-testid": "carousel-placeholder"
|
|
@@ -7347,7 +7347,7 @@ const oc = ({
|
|
|
7347
7347
|
m ? null : /* @__PURE__ */ a.jsx(ze, {})
|
|
7348
7348
|
] }, `placeholder-${u}`) : /* @__PURE__ */ a.jsxs(yt, { children: [
|
|
7349
7349
|
/* @__PURE__ */ a.jsx(
|
|
7350
|
-
|
|
7350
|
+
cc,
|
|
7351
7351
|
{
|
|
7352
7352
|
cards: c,
|
|
7353
7353
|
cardTypes: d,
|
|
@@ -7359,7 +7359,7 @@ const oc = ({
|
|
|
7359
7359
|
] }, `carousel-${u}`);
|
|
7360
7360
|
}
|
|
7361
7361
|
);
|
|
7362
|
-
const Cn = "joinCommunityButton",
|
|
7362
|
+
const Cn = "joinCommunityButton", Za = ({
|
|
7363
7363
|
isMember: t = !1,
|
|
7364
7364
|
isShort: e = !1,
|
|
7365
7365
|
functions: { join: n, leave: r } = { join: () => {
|
|
@@ -7372,7 +7372,7 @@ const Cn = "joinCommunityButton", za = ({
|
|
|
7372
7372
|
}, [c]);
|
|
7373
7373
|
const m = {}, f = {};
|
|
7374
7374
|
return c && l !== "leaving" && (m["data-hover-text"] = s.formatMessage({ id: `${Cn}_leave` }), m["aria-label"] = s.formatMessage({ id: `${Cn}_member_aria` }), f["aria-hidden"] = "true"), /* @__PURE__ */ a.jsx(
|
|
7375
|
-
|
|
7375
|
+
ie,
|
|
7376
7376
|
{
|
|
7377
7377
|
variant: c ? "secondary" : "primary",
|
|
7378
7378
|
size: "medium",
|
|
@@ -7392,7 +7392,7 @@ const Cn = "joinCommunityButton", za = ({
|
|
|
7392
7392
|
}
|
|
7393
7393
|
);
|
|
7394
7394
|
};
|
|
7395
|
-
const Nn = "communityDetails_",
|
|
7395
|
+
const Nn = "communityDetails_", au = ({
|
|
7396
7396
|
className: t = "",
|
|
7397
7397
|
isMember: e = !1,
|
|
7398
7398
|
slug: n,
|
|
@@ -7410,7 +7410,7 @@ const Nn = "communityDetails_", ru = ({
|
|
|
7410
7410
|
!m && /* @__PURE__ */ a.jsx("p", { className: "text-small", children: /* @__PURE__ */ a.jsx("a", { href: `/communities/${n}/members`, children: c.formatMessage({ id: `${Nn}viewAll` }) }) })
|
|
7411
7411
|
] }),
|
|
7412
7412
|
/* @__PURE__ */ a.jsx(
|
|
7413
|
-
|
|
7413
|
+
Ta,
|
|
7414
7414
|
{
|
|
7415
7415
|
contributors: {
|
|
7416
7416
|
total: r,
|
|
@@ -7425,9 +7425,9 @@ const Nn = "communityDetails_", ru = ({
|
|
|
7425
7425
|
}
|
|
7426
7426
|
)
|
|
7427
7427
|
] }),
|
|
7428
|
-
/* @__PURE__ */ a.jsx(
|
|
7428
|
+
/* @__PURE__ */ a.jsx(Za, { isMember: e, functions: { ...o } }),
|
|
7429
7429
|
e && /* @__PURE__ */ a.jsx(
|
|
7430
|
-
|
|
7430
|
+
ie,
|
|
7431
7431
|
{
|
|
7432
7432
|
variant: "primary",
|
|
7433
7433
|
onClick: i,
|
|
@@ -7438,7 +7438,7 @@ const Nn = "communityDetails_", ru = ({
|
|
|
7438
7438
|
)
|
|
7439
7439
|
] });
|
|
7440
7440
|
};
|
|
7441
|
-
const
|
|
7441
|
+
const su = ({ breadcrumbs: t, cutoff: e = 20, className: n = "" }) => {
|
|
7442
7442
|
const r = H();
|
|
7443
7443
|
return /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
|
|
7444
7444
|
/* @__PURE__ */ a.jsx(
|
|
@@ -7462,7 +7462,7 @@ const au = ({ breadcrumbs: t, cutoff: e = 20, className: n = "" }) => {
|
|
|
7462
7462
|
) })
|
|
7463
7463
|
] });
|
|
7464
7464
|
};
|
|
7465
|
-
const
|
|
7465
|
+
const iu = ({
|
|
7466
7466
|
options: t,
|
|
7467
7467
|
allOption: e = !1,
|
|
7468
7468
|
allowMultiple: n = !0,
|
|
@@ -7498,7 +7498,7 @@ const su = ({
|
|
|
7498
7498
|
}
|
|
7499
7499
|
) }, u);
|
|
7500
7500
|
}) });
|
|
7501
|
-
},
|
|
7501
|
+
}, lc = (t, e, n) => {
|
|
7502
7502
|
const r = String(t);
|
|
7503
7503
|
if (!n || !n.length)
|
|
7504
7504
|
return e ? `/${r}/${e}` : `/${r}`;
|
|
@@ -7510,7 +7510,7 @@ const su = ({
|
|
|
7510
7510
|
urlForRouter: `/${s.split("/").slice(2).join("/")}`
|
|
7511
7511
|
} : s;
|
|
7512
7512
|
};
|
|
7513
|
-
const Ot = "languageSwitcher_",
|
|
7513
|
+
const Ot = "languageSwitcher_", ou = ({
|
|
7514
7514
|
currentLanguage: t,
|
|
7515
7515
|
isOriginalLanguage: e = !1,
|
|
7516
7516
|
isHumanTranslation: n = !1,
|
|
@@ -7522,7 +7522,7 @@ const Ot = "languageSwitcher_", iu = ({
|
|
|
7522
7522
|
className: d = ""
|
|
7523
7523
|
}) => {
|
|
7524
7524
|
const l = H(), { updateLanguage: u = () => {
|
|
7525
|
-
} } = Ee(
|
|
7525
|
+
} } = Ee(Ua), [m, f] = J(t);
|
|
7526
7526
|
if (ae(() => {
|
|
7527
7527
|
t !== m && f(t);
|
|
7528
7528
|
}, [t]), !r || !Object.values(r).some(
|
|
@@ -7545,7 +7545,7 @@ const Ot = "languageSwitcher_", iu = ({
|
|
|
7545
7545
|
{ language: En[v] }
|
|
7546
7546
|
);
|
|
7547
7547
|
else {
|
|
7548
|
-
const j =
|
|
7548
|
+
const j = lc(v, y, i);
|
|
7549
7549
|
_ = {
|
|
7550
7550
|
..._,
|
|
7551
7551
|
href: typeof j == "string" ? j : j.url,
|
|
@@ -7580,7 +7580,7 @@ const Ot = "languageSwitcher_", iu = ({
|
|
|
7580
7580
|
})
|
|
7581
7581
|
] });
|
|
7582
7582
|
};
|
|
7583
|
-
const $n =
|
|
7583
|
+
const $n = Es({ locale: "en", messages: rt }), on = ({
|
|
7584
7584
|
hasNextPage: t = !0,
|
|
7585
7585
|
loadNextPage: e = () => {
|
|
7586
7586
|
},
|
|
@@ -7606,7 +7606,7 @@ const $n = Ts({ locale: "en", messages: rt }), on = ({
|
|
|
7606
7606
|
}
|
|
7607
7607
|
};
|
|
7608
7608
|
return !u && !t && !c.endOfFeed ? null : /* @__PURE__ */ a.jsx("footer", { className: E("load-more", d), children: !u && t ? /* @__PURE__ */ a.jsx(
|
|
7609
|
-
|
|
7609
|
+
ie,
|
|
7610
7610
|
{
|
|
7611
7611
|
variant: r,
|
|
7612
7612
|
size: s,
|
|
@@ -7622,7 +7622,7 @@ const $n = Ts({ locale: "en", messages: rt }), on = ({
|
|
|
7622
7622
|
}
|
|
7623
7623
|
) : 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 }) });
|
|
7624
7624
|
};
|
|
7625
|
-
const
|
|
7625
|
+
const Ha = ({
|
|
7626
7626
|
variant: t = "default",
|
|
7627
7627
|
version: e = "default",
|
|
7628
7628
|
className: n = "",
|
|
@@ -7637,7 +7637,7 @@ const Za = ({
|
|
|
7637
7637
|
}
|
|
7638
7638
|
) });
|
|
7639
7639
|
let At = !1;
|
|
7640
|
-
const
|
|
7640
|
+
const uc = ({
|
|
7641
7641
|
element: t = "div",
|
|
7642
7642
|
id: e = "more-menu",
|
|
7643
7643
|
options: n,
|
|
@@ -7655,7 +7655,7 @@ const lc = ({
|
|
|
7655
7655
|
className: E("more-menu text-medium", r),
|
|
7656
7656
|
children: /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
|
|
7657
7657
|
/* @__PURE__ */ a.jsx(
|
|
7658
|
-
|
|
7658
|
+
ie,
|
|
7659
7659
|
{
|
|
7660
7660
|
variant: "tertiary",
|
|
7661
7661
|
size: "medium",
|
|
@@ -7683,7 +7683,7 @@ const lc = ({
|
|
|
7683
7683
|
}
|
|
7684
7684
|
};
|
|
7685
7685
|
return l && (b.href = l), /* @__PURE__ */ a.jsx("li", { children: /* @__PURE__ */ a.jsx(
|
|
7686
|
-
|
|
7686
|
+
ie,
|
|
7687
7687
|
{
|
|
7688
7688
|
variant: "tertiary",
|
|
7689
7689
|
size: "medium",
|
|
@@ -7695,8 +7695,8 @@ const lc = ({
|
|
|
7695
7695
|
}) })
|
|
7696
7696
|
] })
|
|
7697
7697
|
});
|
|
7698
|
-
},
|
|
7699
|
-
const
|
|
7698
|
+
}, dc = (t, e = !1) => e ? t.replaceAll("/", "") === e : typeof window < "u" && window.location && window.location.pathname === t;
|
|
7699
|
+
const fc = [
|
|
7700
7700
|
{
|
|
7701
7701
|
key: "homepage",
|
|
7702
7702
|
href: "/home/"
|
|
@@ -7717,13 +7717,13 @@ const dc = [
|
|
|
7717
7717
|
key: "communities",
|
|
7718
7718
|
href: "/communities/"
|
|
7719
7719
|
}
|
|
7720
|
-
],
|
|
7720
|
+
], mc = ({ activeLink: t }) => {
|
|
7721
7721
|
const e = H(), n = Ee(Ae), r = n && typeof n.id == "string";
|
|
7722
7722
|
return /* @__PURE__ */ a.jsxs("ul", { id: "navigation-menu", className: "text-medium", children: [
|
|
7723
|
-
|
|
7723
|
+
fc.map(({ key: s, href: i }) => /* @__PURE__ */ a.jsx(
|
|
7724
7724
|
"li",
|
|
7725
7725
|
{
|
|
7726
|
-
className: E(s, { active:
|
|
7726
|
+
className: E(s, { active: dc(i, t) }),
|
|
7727
7727
|
children: /* @__PURE__ */ a.jsx(
|
|
7728
7728
|
"a",
|
|
7729
7729
|
{
|
|
@@ -7757,7 +7757,7 @@ const dc = [
|
|
|
7757
7757
|
}
|
|
7758
7758
|
) })
|
|
7759
7759
|
] });
|
|
7760
|
-
}, dt = (t, e, n) => `${t}?share=${e}${n ? `&uuid=${n}` : ""}`,
|
|
7760
|
+
}, dt = (t, e, n) => `${t}?share=${e}${n ? `&uuid=${n}` : ""}`, pc = ({
|
|
7761
7761
|
title: t,
|
|
7762
7762
|
link: e,
|
|
7763
7763
|
referrer: n
|
|
@@ -7800,7 +7800,7 @@ ${dt(e, "mailto", n)}&src=email`
|
|
|
7800
7800
|
onClick: (r, s) => (r.preventDefault(), r.stopPropagation(), navigator.clipboard.writeText(s))
|
|
7801
7801
|
}
|
|
7802
7802
|
];
|
|
7803
|
-
const
|
|
7803
|
+
const hc = "shareLinks_", cu = ({
|
|
7804
7804
|
title: t,
|
|
7805
7805
|
link: e,
|
|
7806
7806
|
referrer: n,
|
|
@@ -7809,7 +7809,7 @@ const pc = "shareLinks_", ou = ({
|
|
|
7809
7809
|
variant: i = "default",
|
|
7810
7810
|
className: o = ""
|
|
7811
7811
|
}) => {
|
|
7812
|
-
const c = H(), d =
|
|
7812
|
+
const c = H(), d = pc({ title: t, link: e, referrer: n });
|
|
7813
7813
|
return /* @__PURE__ */ a.jsxs("aside", { className: E("share-links", s, i, o), children: [
|
|
7814
7814
|
/* @__PURE__ */ a.jsx("p", { className: "text-small", children: c.formatMessage({ id: "shareLinks_label" }) }),
|
|
7815
7815
|
/* @__PURE__ */ a.jsx("ul", { children: d.map(({ key: l, icon: u, url: m, shouldRender: f = !0, onClick: p }) => {
|
|
@@ -7817,7 +7817,7 @@ const pc = "shareLinks_", ou = ({
|
|
|
7817
7817
|
return null;
|
|
7818
7818
|
const h = {};
|
|
7819
7819
|
return p && (h.onClick = (b) => p(b, m)), /* @__PURE__ */ a.jsx("li", { children: /* @__PURE__ */ a.jsx(
|
|
7820
|
-
|
|
7820
|
+
ie,
|
|
7821
7821
|
{
|
|
7822
7822
|
size: s,
|
|
7823
7823
|
variant: "tertiary",
|
|
@@ -7829,14 +7829,14 @@ const pc = "shareLinks_", ou = ({
|
|
|
7829
7829
|
"data-gtm-event-context": `${r}-SocialButtons`,
|
|
7830
7830
|
"data-gtm-event-type": `${l}-click`,
|
|
7831
7831
|
"data-testid": "link",
|
|
7832
|
-
screenreaderText: c.formatMessage({ id: `${
|
|
7832
|
+
screenreaderText: c.formatMessage({ id: `${hc}link_${l}` }),
|
|
7833
7833
|
...h
|
|
7834
7834
|
}
|
|
7835
7835
|
) }, l);
|
|
7836
7836
|
}) })
|
|
7837
7837
|
] });
|
|
7838
7838
|
};
|
|
7839
|
-
const
|
|
7839
|
+
const lu = ({ tabs: t, className: e = "", preventLocationChange: n }) => {
|
|
7840
7840
|
var l;
|
|
7841
7841
|
const r = (u, m, f) => (u || (u = `panel-${window.btoa(m)}-${f}`), u);
|
|
7842
7842
|
let s = t.findIndex((u) => u.current === !0);
|
|
@@ -7899,11 +7899,11 @@ const cu = ({ tabs: t, className: e = "", preventLocationChange: n }) => {
|
|
|
7899
7899
|
/* @__PURE__ */ a.jsx("div", { className: "tab-content", children: d })
|
|
7900
7900
|
] });
|
|
7901
7901
|
};
|
|
7902
|
-
const
|
|
7902
|
+
const gc = {
|
|
7903
7903
|
"2-1": 901,
|
|
7904
7904
|
"1-3": 769,
|
|
7905
7905
|
"1-1": 769
|
|
7906
|
-
},
|
|
7906
|
+
}, vc = ({
|
|
7907
7907
|
layout: t = "2-1",
|
|
7908
7908
|
hideOnMobile: e = !1,
|
|
7909
7909
|
hasCSSContainers: n = !1,
|
|
@@ -7918,12 +7918,12 @@ const hc = {
|
|
|
7918
7918
|
className: E("columns", `layout-${t}`, r, {
|
|
7919
7919
|
"has-containers": n
|
|
7920
7920
|
}),
|
|
7921
|
-
children: Y.Children.map(o, (c, d) => e !== !1 && d === e && i && i <
|
|
7921
|
+
children: Y.Children.map(o, (c, d) => e !== !1 && d === e && i && i < gc[t] ? null : c)
|
|
7922
7922
|
}
|
|
7923
7923
|
);
|
|
7924
7924
|
};
|
|
7925
7925
|
let Pn;
|
|
7926
|
-
const Mn = "contactFooter_",
|
|
7926
|
+
const Mn = "contactFooter_", uu = ({ onSuccess: t = async () => {
|
|
7927
7927
|
}, onFailure: e = () => {
|
|
7928
7928
|
} }) => {
|
|
7929
7929
|
const n = pe(null), [r, s] = Y.useState(0), [i, o] = Y.useState(!1), c = () => {
|
|
@@ -7950,7 +7950,7 @@ const Mn = "contactFooter_", lu = ({ onSuccess: t = async () => {
|
|
|
7950
7950
|
/* @__PURE__ */ a.jsx(at, { className: "mailto-link", href: "mailto:hello@apolitical.co", children: /* @__PURE__ */ a.jsx(ye, { id: `${Mn}email` }) })
|
|
7951
7951
|
] }),
|
|
7952
7952
|
/* @__PURE__ */ a.jsx(
|
|
7953
|
-
|
|
7953
|
+
Di,
|
|
7954
7954
|
{
|
|
7955
7955
|
functions: { onSuccess: t, onFailure: e },
|
|
7956
7956
|
gtm: { context: "FooterContactUsForm", event: "contact-form-submit-click" }
|
|
@@ -7960,16 +7960,16 @@ const Mn = "contactFooter_", lu = ({ onSuccess: t = async () => {
|
|
|
7960
7960
|
}
|
|
7961
7961
|
)
|
|
7962
7962
|
] }) });
|
|
7963
|
-
},
|
|
7964
|
-
/* @__PURE__ */ a.jsx(
|
|
7965
|
-
/* @__PURE__ */ a.jsx(
|
|
7963
|
+
}, du = ({ activeLink: t, ...e }) => /* @__PURE__ */ a.jsx(Ye, { children: /* @__PURE__ */ a.jsx(vc, { layout: "1-3", children: /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
|
|
7964
|
+
/* @__PURE__ */ a.jsx(mc, { activeLink: t }),
|
|
7965
|
+
/* @__PURE__ */ a.jsx(_i, { ...e })
|
|
7966
7966
|
] }) }) });
|
|
7967
7967
|
const Rn = "cookieBanner_", Fn = [
|
|
7968
7968
|
"apol-cookie-banner",
|
|
7969
7969
|
"apolitical-performance-cookie-consent",
|
|
7970
7970
|
"functional-cookie-consent"
|
|
7971
|
-
], On = new Date(Date.now() + 12 * 30 * 24 * 60 * 60 * 1e3),
|
|
7972
|
-
const t = H(), [e, n, r] =
|
|
7971
|
+
], On = new Date(Date.now() + 12 * 30 * 24 * 60 * 60 * 1e3), bc = () => {
|
|
7972
|
+
const t = H(), [e, n, r] = la(Fn), [s, i] = J(
|
|
7973
7973
|
!e["apol-cookie-banner"]
|
|
7974
7974
|
), o = () => {
|
|
7975
7975
|
Fn.forEach((u) => {
|
|
@@ -8114,7 +8114,7 @@ const Rn = "cookieBanner_", Fn = [
|
|
|
8114
8114
|
facebook: { href: "https://www.facebook.com/apoliticalco" }
|
|
8115
8115
|
}
|
|
8116
8116
|
};
|
|
8117
|
-
const Xe = "footer_", Gt = "SiteFooter",
|
|
8117
|
+
const Xe = "footer_", Gt = "SiteFooter", Qr = ({ group: t }) => {
|
|
8118
8118
|
const e = Re[t].order || [];
|
|
8119
8119
|
let n = !1;
|
|
8120
8120
|
return "text" in Re[t] && (n = Re[t].text), /* @__PURE__ */ a.jsxs(yt, { children: [
|
|
@@ -8158,10 +8158,10 @@ const Xe = "footer_", Gt = "SiteFooter", Gr = ({ group: t }) => {
|
|
|
8158
8158
|
] })
|
|
8159
8159
|
] }, `dl-${t}-${r}`)) })
|
|
8160
8160
|
] }, t);
|
|
8161
|
-
},
|
|
8162
|
-
/* @__PURE__ */ a.jsx(
|
|
8161
|
+
}, Va = () => /* @__PURE__ */ a.jsx("div", { id: "footer", children: /* @__PURE__ */ a.jsxs("div", { className: "wrapper", children: [
|
|
8162
|
+
/* @__PURE__ */ a.jsx(Jn, { element: "hr" }),
|
|
8163
8163
|
/* @__PURE__ */ a.jsx(
|
|
8164
|
-
|
|
8164
|
+
Ha,
|
|
8165
8165
|
{
|
|
8166
8166
|
variant: "inverted",
|
|
8167
8167
|
version: "full",
|
|
@@ -8171,8 +8171,8 @@ const Xe = "footer_", Gt = "SiteFooter", Gr = ({ group: t }) => {
|
|
|
8171
8171
|
}
|
|
8172
8172
|
),
|
|
8173
8173
|
/* @__PURE__ */ a.jsx("footer", { children: ["platform", "community", "company", "contact"].map((t) => /* @__PURE__ */ a.jsxs("div", { className: "group", children: [
|
|
8174
|
-
/* @__PURE__ */ a.jsx(
|
|
8175
|
-
Object.keys(Re[t]).includes("child") && /* @__PURE__ */ a.jsx(
|
|
8174
|
+
/* @__PURE__ */ a.jsx(Qr, { group: t }),
|
|
8175
|
+
Object.keys(Re[t]).includes("child") && /* @__PURE__ */ a.jsx(Qr, { group: Re[t].child })
|
|
8176
8176
|
] }, t)) }),
|
|
8177
8177
|
/* @__PURE__ */ a.jsx("hr", {}),
|
|
8178
8178
|
/* @__PURE__ */ a.jsxs("div", { className: "sub-footer", children: [
|
|
@@ -8245,7 +8245,7 @@ const Xe = "footer_", Gt = "SiteFooter", Gr = ({ group: t }) => {
|
|
|
8245
8245
|
return t[r];
|
|
8246
8246
|
if (!e.includes("."))
|
|
8247
8247
|
continue;
|
|
8248
|
-
const s =
|
|
8248
|
+
const s = ua(t[r], e);
|
|
8249
8249
|
if (!(typeof s > "u") && (!n || s[e] && s[e].includes(n) || s.value && s.value.includes(n) || s.toString().includes(n)))
|
|
8250
8250
|
return t[r];
|
|
8251
8251
|
}
|
|
@@ -8392,7 +8392,7 @@ const Xe = "footer_", Gt = "SiteFooter", Gr = ({ group: t }) => {
|
|
|
8392
8392
|
},
|
|
8393
8393
|
doTrack: i = null
|
|
8394
8394
|
}) => {
|
|
8395
|
-
const o = H(), c =
|
|
8395
|
+
const o = H(), c = ua(Qt, t);
|
|
8396
8396
|
if (!c || c.onlyShow && (c.onlyShow === "logged-in" && !e || c.onlyShow === "logged-out" && e))
|
|
8397
8397
|
return null;
|
|
8398
8398
|
const d = "doTrack" in c, l = i === null ? d ? c.doTrack : !0 : i, u = t.includes("buttons.");
|
|
@@ -8458,7 +8458,7 @@ const Xe = "footer_", Gt = "SiteFooter", Gr = ({ group: t }) => {
|
|
|
8458
8458
|
...v,
|
|
8459
8459
|
children: [
|
|
8460
8460
|
f ? Y.createElement(
|
|
8461
|
-
u ?
|
|
8461
|
+
u ? ie : "a",
|
|
8462
8462
|
f,
|
|
8463
8463
|
o.formatMessage({ id: m })
|
|
8464
8464
|
) : o.formatMessage({ id: m }),
|
|
@@ -8505,11 +8505,11 @@ const Xe = "footer_", Gt = "SiteFooter", Gr = ({ group: t }) => {
|
|
|
8505
8505
|
t
|
|
8506
8506
|
);
|
|
8507
8507
|
};
|
|
8508
|
-
const
|
|
8508
|
+
const yc = { height: 67, height_desktop: 83 }, Ya = ({ showNavigation: t = !0 }) => {
|
|
8509
8509
|
const e = H(), n = Ee(Ae), r = jt(!0, !0), s = n && typeof n.id == "string", i = wt(
|
|
8510
8510
|
() => fe.getIsDesktopVersion(s, r),
|
|
8511
8511
|
[s, r]
|
|
8512
|
-
), [o, c] =
|
|
8512
|
+
), [o, c] = Gn(ha, {
|
|
8513
8513
|
headerIsVisible: !0,
|
|
8514
8514
|
menus: { navigation: !1, search: !1, account: !1 },
|
|
8515
8515
|
focusElements: {
|
|
@@ -8517,8 +8517,8 @@ const bc = { height: 67, height_desktop: 83 }, Va = ({ showNavigation: t = !0 })
|
|
|
8517
8517
|
account: { desktop: !1, default: !1 }
|
|
8518
8518
|
}
|
|
8519
8519
|
}), { headerIsVisible: d, menus: l, focusElements: u } = o;
|
|
8520
|
-
|
|
8521
|
-
scrollPosition:
|
|
8520
|
+
Us({
|
|
8521
|
+
scrollPosition: yc[`height${i.navigation ? "_desktop" : ""}`],
|
|
8522
8522
|
callbacks: {
|
|
8523
8523
|
scrollUp: () => {
|
|
8524
8524
|
!i && l.navigation || fe.shouldChangeHeaderIsVisible(!0, l, c);
|
|
@@ -8566,7 +8566,7 @@ const bc = { height: 67, height_desktop: 83 }, Va = ({ showNavigation: t = !0 })
|
|
|
8566
8566
|
children: e.formatMessage({ id: "header_skip" })
|
|
8567
8567
|
}
|
|
8568
8568
|
),
|
|
8569
|
-
/* @__PURE__ */ a.jsx(
|
|
8569
|
+
/* @__PURE__ */ a.jsx(Ha, { variant: "monochrome" }),
|
|
8570
8570
|
t && /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
|
|
8571
8571
|
!i.navigation && /* @__PURE__ */ a.jsx(
|
|
8572
8572
|
"button",
|
|
@@ -8627,7 +8627,7 @@ const bc = { height: 67, height_desktop: 83 }, Va = ({ showNavigation: t = !0 })
|
|
|
8627
8627
|
}
|
|
8628
8628
|
),
|
|
8629
8629
|
/* @__PURE__ */ a.jsx(
|
|
8630
|
-
|
|
8630
|
+
Li,
|
|
8631
8631
|
{
|
|
8632
8632
|
id: "global-search",
|
|
8633
8633
|
handleToggle: {
|
|
@@ -8681,10 +8681,10 @@ const bc = { height: 67, height_desktop: 83 }, Va = ({ showNavigation: t = !0 })
|
|
|
8681
8681
|
)
|
|
8682
8682
|
] });
|
|
8683
8683
|
};
|
|
8684
|
-
const
|
|
8684
|
+
const _c = () => {
|
|
8685
8685
|
const t = H();
|
|
8686
8686
|
return /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
|
|
8687
|
-
/* @__PURE__ */ a.jsx(
|
|
8687
|
+
/* @__PURE__ */ a.jsx(Ya, {}),
|
|
8688
8688
|
/* @__PURE__ */ a.jsx("div", { id: "content", children: /* @__PURE__ */ a.jsx(
|
|
8689
8689
|
He,
|
|
8690
8690
|
{
|
|
@@ -8692,9 +8692,9 @@ const yc = () => {
|
|
|
8692
8692
|
text: t.formatMessage({ id: "pageLayout_error" })
|
|
8693
8693
|
}
|
|
8694
8694
|
) }),
|
|
8695
|
-
/* @__PURE__ */ a.jsx(
|
|
8695
|
+
/* @__PURE__ */ a.jsx(Va, {})
|
|
8696
8696
|
] });
|
|
8697
|
-
},
|
|
8697
|
+
}, xc = ({
|
|
8698
8698
|
children: t,
|
|
8699
8699
|
additionalContent: { prepended: e, appended: n } = {},
|
|
8700
8700
|
reportError: r,
|
|
@@ -8708,7 +8708,7 @@ const yc = () => {
|
|
|
8708
8708
|
variant: m = "default",
|
|
8709
8709
|
circle: f = "default",
|
|
8710
8710
|
modal: p = "default"
|
|
8711
|
-
} = i, h =
|
|
8711
|
+
} = i, h = qs();
|
|
8712
8712
|
ae(() => {
|
|
8713
8713
|
window.scrollTo(0, 0);
|
|
8714
8714
|
}, [h]);
|
|
@@ -8717,13 +8717,13 @@ const yc = () => {
|
|
|
8717
8717
|
}), y = Bt(n, {
|
|
8718
8718
|
locale: c
|
|
8719
8719
|
}), _ = {};
|
|
8720
|
-
return u !== "default" && (_[u] = !0), m !== "default" && (_[m] = !0), f !== "default" && (_[f] = !0), /* @__PURE__ */ a.jsx(
|
|
8720
|
+
return u !== "default" && (_[u] = !0), m !== "default" && (_[m] = !0), f !== "default" && (_[f] = !0), /* @__PURE__ */ a.jsx(Rs, { onError: r, fallback: /* @__PURE__ */ a.jsx(_c, {}), children: /* @__PURE__ */ a.jsx(js, { fallback: null, children: /* @__PURE__ */ a.jsxs(
|
|
8721
8721
|
"div",
|
|
8722
8722
|
{
|
|
8723
8723
|
id: "wrapper",
|
|
8724
8724
|
className: E(o, _, { "has-footer": l }),
|
|
8725
8725
|
children: [
|
|
8726
|
-
/* @__PURE__ */ a.jsx(
|
|
8726
|
+
/* @__PURE__ */ a.jsx(Ya, { showNavigation: d }),
|
|
8727
8727
|
/* @__PURE__ */ a.jsxs("section", { id: "content-wrapper", children: [
|
|
8728
8728
|
v && /* @__PURE__ */ a.jsx(
|
|
8729
8729
|
"div",
|
|
@@ -8734,19 +8734,19 @@ const yc = () => {
|
|
|
8734
8734
|
children: v
|
|
8735
8735
|
}
|
|
8736
8736
|
),
|
|
8737
|
-
Y.createElement(u === "bold" ?
|
|
8737
|
+
Y.createElement(u === "bold" ? qa : "div", {
|
|
8738
8738
|
id: "content",
|
|
8739
8739
|
children: b,
|
|
8740
8740
|
className: E({ "large-modal": p === "large" })
|
|
8741
8741
|
})
|
|
8742
8742
|
] }),
|
|
8743
8743
|
y && /* @__PURE__ */ a.jsx("div", { className: "additional-content appended", children: y }),
|
|
8744
|
-
l && /* @__PURE__ */ a.jsx(
|
|
8745
|
-
/* @__PURE__ */ a.jsx(
|
|
8744
|
+
l && /* @__PURE__ */ a.jsx(Va, {}),
|
|
8745
|
+
/* @__PURE__ */ a.jsx(bc, {})
|
|
8746
8746
|
]
|
|
8747
8747
|
}
|
|
8748
8748
|
) }) });
|
|
8749
|
-
},
|
|
8749
|
+
}, Jr = {
|
|
8750
8750
|
default: "tags_",
|
|
8751
8751
|
headerTopics: "header_topics_topics_"
|
|
8752
8752
|
}, An = {
|
|
@@ -8765,19 +8765,19 @@ const yc = () => {
|
|
|
8765
8765
|
WorkAndTheEconomy: "work-and-the-economy"
|
|
8766
8766
|
},
|
|
8767
8767
|
"from the community": "community"
|
|
8768
|
-
},
|
|
8768
|
+
}, wc = {
|
|
8769
8769
|
getTagDetails: (t) => {
|
|
8770
8770
|
if (t.includes("topic_")) {
|
|
8771
8771
|
if (t = An.topic[t.replace("topic_", "")], t) {
|
|
8772
8772
|
const e = Qt.topics.topics[t].href;
|
|
8773
|
-
return e ? { id: t, href: e, text: `${
|
|
8773
|
+
return e ? { id: t, href: e, text: `${Jr.headerTopics}${t}` } : null;
|
|
8774
8774
|
}
|
|
8775
8775
|
return null;
|
|
8776
8776
|
}
|
|
8777
|
-
return An[t] ? (t = An[t], { id: t, text: `${
|
|
8777
|
+
return An[t] ? (t = An[t], { id: t, text: `${Jr.default}${t}` }) : null;
|
|
8778
8778
|
}
|
|
8779
8779
|
};
|
|
8780
|
-
const
|
|
8780
|
+
const fu = ({
|
|
8781
8781
|
tags: t = [],
|
|
8782
8782
|
color: e = "default",
|
|
8783
8783
|
forceOneLine: n = !1,
|
|
@@ -8793,7 +8793,7 @@ const du = ({
|
|
|
8793
8793
|
return t.forEach((l) => {
|
|
8794
8794
|
if (!l)
|
|
8795
8795
|
return;
|
|
8796
|
-
const u =
|
|
8796
|
+
const u = wc.getTagDetails(l);
|
|
8797
8797
|
u && d.push(u);
|
|
8798
8798
|
}), d.length < 1 ? null : /* @__PURE__ */ a.jsx(
|
|
8799
8799
|
"ul",
|
|
@@ -8817,7 +8817,7 @@ const du = ({
|
|
|
8817
8817
|
}
|
|
8818
8818
|
);
|
|
8819
8819
|
};
|
|
8820
|
-
const
|
|
8820
|
+
const mu = ({
|
|
8821
8821
|
members: { data: t = [], total: e = t.length },
|
|
8822
8822
|
hasNextPage: n = !1,
|
|
8823
8823
|
loadNextPage: r = () => {
|
|
@@ -8847,7 +8847,7 @@ const fu = ({
|
|
|
8847
8847
|
)
|
|
8848
8848
|
] });
|
|
8849
8849
|
};
|
|
8850
|
-
const
|
|
8850
|
+
const pu = ({
|
|
8851
8851
|
element: t = "p",
|
|
8852
8852
|
data: {
|
|
8853
8853
|
timeLeftToFinish: e,
|
|
@@ -8876,14 +8876,14 @@ const mu = ({
|
|
|
8876
8876
|
}
|
|
8877
8877
|
) }),
|
|
8878
8878
|
l < 100 && s && /* @__PURE__ */ a.jsx(
|
|
8879
|
-
|
|
8879
|
+
rr,
|
|
8880
8880
|
{
|
|
8881
8881
|
time: e,
|
|
8882
8882
|
appendedText: d.formatMessage({ id: "courseProgression_timeLeft" })
|
|
8883
8883
|
}
|
|
8884
8884
|
),
|
|
8885
8885
|
/* @__PURE__ */ a.jsx(
|
|
8886
|
-
|
|
8886
|
+
_a,
|
|
8887
8887
|
{
|
|
8888
8888
|
progress: l,
|
|
8889
8889
|
styling: {
|
|
@@ -8895,7 +8895,7 @@ const mu = ({
|
|
|
8895
8895
|
] })
|
|
8896
8896
|
});
|
|
8897
8897
|
};
|
|
8898
|
-
const
|
|
8898
|
+
const jc = ({
|
|
8899
8899
|
element: t = "span",
|
|
8900
8900
|
sectionId: e,
|
|
8901
8901
|
subsectionId: n,
|
|
@@ -8906,7 +8906,7 @@ const wc = ({
|
|
|
8906
8906
|
"data-number": `${e}.${n}`,
|
|
8907
8907
|
children: r
|
|
8908
8908
|
});
|
|
8909
|
-
const
|
|
8909
|
+
const kc = ({
|
|
8910
8910
|
size: t = "default",
|
|
8911
8911
|
completionTime: e,
|
|
8912
8912
|
icon: n,
|
|
@@ -8914,16 +8914,16 @@ const jc = ({
|
|
|
8914
8914
|
type: s,
|
|
8915
8915
|
children: i
|
|
8916
8916
|
}) => {
|
|
8917
|
-
const o = H(), c =
|
|
8917
|
+
const o = H(), c = Xn(`lessonType_${s}`) ? o.formatMessage({ id: `lessonType_${s}` }) : Vs(s || "");
|
|
8918
8918
|
return /* @__PURE__ */ a.jsxs("small", { className: E("content-type", { [t]: t !== "default" }), children: [
|
|
8919
8919
|
/* @__PURE__ */ a.jsx("span", { className: E("type", n), children: c }),
|
|
8920
8920
|
" ",
|
|
8921
|
-
e > 0 && !r && /* @__PURE__ */ a.jsx(
|
|
8921
|
+
e > 0 && !r && /* @__PURE__ */ a.jsx(rr, { time: e }),
|
|
8922
8922
|
" ",
|
|
8923
8923
|
i ? /* @__PURE__ */ a.jsx("span", { className: "additional", children: i }) : null
|
|
8924
8924
|
] });
|
|
8925
8925
|
};
|
|
8926
|
-
const
|
|
8926
|
+
const hu = ({
|
|
8927
8927
|
course: {
|
|
8928
8928
|
articles: t,
|
|
8929
8929
|
canAccessCourse: e,
|
|
@@ -8940,7 +8940,7 @@ const pu = ({
|
|
|
8940
8940
|
}) => {
|
|
8941
8941
|
const m = H(), f = "courseStructure_", p = l.toLowerCase().includes("course conclusion");
|
|
8942
8942
|
return /* @__PURE__ */ a.jsxs(
|
|
8943
|
-
|
|
8943
|
+
er,
|
|
8944
8944
|
{
|
|
8945
8945
|
className: "course-structure",
|
|
8946
8946
|
label: /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
|
|
@@ -8951,7 +8951,7 @@ const pu = ({
|
|
|
8951
8951
|
),
|
|
8952
8952
|
" ",
|
|
8953
8953
|
!r && o >= 0 && /* @__PURE__ */ a.jsx("span", { className: "time", children: s && d === 0 ? m.formatMessage({ id: `${f}time_completed` }) : /* @__PURE__ */ a.jsx(
|
|
8954
|
-
|
|
8954
|
+
rr,
|
|
8955
8955
|
{
|
|
8956
8956
|
time: o,
|
|
8957
8957
|
appendedText: s ? m.formatMessage({ id: `${f}time_left` }) : ""
|
|
@@ -8995,11 +8995,11 @@ const pu = ({
|
|
|
8995
8995
|
href: B ? `/microcourses/en/${c}/${x}` : void 0,
|
|
8996
8996
|
fallbackElement: "span",
|
|
8997
8997
|
className: "inner",
|
|
8998
|
-
gtmContext: `MicrocourseOutline${
|
|
8998
|
+
gtmContext: `MicrocourseOutline${Hs(R)}`,
|
|
8999
8999
|
gtmType: "article-click",
|
|
9000
9000
|
children: /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
|
|
9001
9001
|
/* @__PURE__ */ a.jsx(
|
|
9002
|
-
|
|
9002
|
+
jc,
|
|
9003
9003
|
{
|
|
9004
9004
|
sectionId: i,
|
|
9005
9005
|
subsectionId: F,
|
|
@@ -9009,7 +9009,7 @@ const pu = ({
|
|
|
9009
9009
|
),
|
|
9010
9010
|
" ",
|
|
9011
9011
|
/* @__PURE__ */ a.jsx(
|
|
9012
|
-
|
|
9012
|
+
kc,
|
|
9013
9013
|
{
|
|
9014
9014
|
completionTime: b,
|
|
9015
9015
|
icon: y,
|
|
@@ -9030,14 +9030,14 @@ const pu = ({
|
|
|
9030
9030
|
}
|
|
9031
9031
|
);
|
|
9032
9032
|
};
|
|
9033
|
-
const
|
|
9033
|
+
const gu = ({
|
|
9034
9034
|
isComplete: t = !1,
|
|
9035
9035
|
onClick: e,
|
|
9036
9036
|
...n
|
|
9037
9037
|
}) => {
|
|
9038
9038
|
const r = H();
|
|
9039
9039
|
return n["data-gtm-event-context"] || (n["data-gtm-event-context"] = "LessonIntroduction"), /* @__PURE__ */ a.jsx(
|
|
9040
|
-
|
|
9040
|
+
ie,
|
|
9041
9041
|
{
|
|
9042
9042
|
...n,
|
|
9043
9043
|
variant: "tertiary",
|
|
@@ -9056,7 +9056,7 @@ const hu = ({
|
|
|
9056
9056
|
);
|
|
9057
9057
|
};
|
|
9058
9058
|
let Dt = null;
|
|
9059
|
-
const we = "discussion_form_",
|
|
9059
|
+
const we = "discussion_form_", sr = ({
|
|
9060
9060
|
content: t = { type: "response", slugs: {} },
|
|
9061
9061
|
userHasPermissions: e = !0,
|
|
9062
9062
|
meta: n = {
|
|
@@ -9156,7 +9156,7 @@ const we = "discussion_form_", ar = ({
|
|
|
9156
9156
|
default:
|
|
9157
9157
|
break;
|
|
9158
9158
|
}
|
|
9159
|
-
await
|
|
9159
|
+
await Qs(1e3), d.callback && await d.callback(W), Dt = setTimeout(() => {
|
|
9160
9160
|
p(""), y("submitted");
|
|
9161
9161
|
const Z = new Event("discussionFormSubmitted");
|
|
9162
9162
|
document.dispatchEvent(Z), F();
|
|
@@ -9180,7 +9180,7 @@ const we = "discussion_form_", ar = ({
|
|
|
9180
9180
|
Dt = setTimeout(() => {
|
|
9181
9181
|
b(!1), y(!1);
|
|
9182
9182
|
}, 5e3);
|
|
9183
|
-
}, R = !f || !
|
|
9183
|
+
}, R = !f || !ai(f), X = v === "submitting", B = [];
|
|
9184
9184
|
return (n.isEditing && !X || c.cancel) && B.push({
|
|
9185
9185
|
variant: "secondary",
|
|
9186
9186
|
size: { mobile: "small", 600: "medium" },
|
|
@@ -9230,7 +9230,7 @@ const we = "discussion_form_", ar = ({
|
|
|
9230
9230
|
),
|
|
9231
9231
|
/* @__PURE__ */ a.jsx(be, { element: "label", showOnFocus: !1, htmlFor: `${j}-input`, children: Ne(u.formatMessage, `${we}label`, t.type, "action") }),
|
|
9232
9232
|
/* @__PURE__ */ a.jsx(
|
|
9233
|
-
|
|
9233
|
+
Fs,
|
|
9234
9234
|
{
|
|
9235
9235
|
ref: r,
|
|
9236
9236
|
id: `${j}-input`,
|
|
@@ -9278,7 +9278,7 @@ const we = "discussion_form_", ar = ({
|
|
|
9278
9278
|
]
|
|
9279
9279
|
}
|
|
9280
9280
|
);
|
|
9281
|
-
},
|
|
9281
|
+
}, Ka = ({
|
|
9282
9282
|
form: t,
|
|
9283
9283
|
membershipRequiredToPost: { isMember: e, required: n, join: r, leave: s, notMemberStateText: i }
|
|
9284
9284
|
}) => {
|
|
@@ -9289,13 +9289,13 @@ const we = "discussion_form_", ar = ({
|
|
|
9289
9289
|
text: i,
|
|
9290
9290
|
button: {
|
|
9291
9291
|
breakpoints: { mobile: !0, 901: !1 },
|
|
9292
|
-
component: /* @__PURE__ */ a.jsx(
|
|
9292
|
+
component: /* @__PURE__ */ a.jsx(Za, { isShort: !0, functions: { join: r, leave: s } })
|
|
9293
9293
|
}
|
|
9294
9294
|
}
|
|
9295
9295
|
);
|
|
9296
9296
|
const { content: o, functions: c, meta: d, ...l } = t;
|
|
9297
9297
|
return /* @__PURE__ */ a.jsx(
|
|
9298
|
-
|
|
9298
|
+
sr,
|
|
9299
9299
|
{
|
|
9300
9300
|
content: { type: (o == null ? void 0 : o.type) || "reply", slugs: (o == null ? void 0 : o.slugs) || {} },
|
|
9301
9301
|
functions: { ...c, create: (c == null ? void 0 : c.create) || (() => {
|
|
@@ -9304,14 +9304,14 @@ const we = "discussion_form_", ar = ({
|
|
|
9304
9304
|
...l
|
|
9305
9305
|
}
|
|
9306
9306
|
);
|
|
9307
|
-
},
|
|
9307
|
+
}, Tc = {
|
|
9308
9308
|
showForm: !1
|
|
9309
|
-
},
|
|
9309
|
+
}, ir = nn(Tc), Ec = ({ children: t }) => {
|
|
9310
9310
|
const [e, n] = J({
|
|
9311
9311
|
showForm: !1
|
|
9312
9312
|
});
|
|
9313
|
-
return /* @__PURE__ */ a.jsx(
|
|
9314
|
-
},
|
|
9313
|
+
return /* @__PURE__ */ a.jsx(ir.Provider, { value: { ...e, updateConversation: n }, children: t });
|
|
9314
|
+
}, Sc = ({
|
|
9315
9315
|
question: t,
|
|
9316
9316
|
answer: e,
|
|
9317
9317
|
reply: n
|
|
@@ -9319,11 +9319,15 @@ const we = "discussion_form_", ar = ({
|
|
|
9319
9319
|
...t && { questionSlug: t },
|
|
9320
9320
|
...e && { answerSlug: e },
|
|
9321
9321
|
...n && { replySlug: n }
|
|
9322
|
-
}),
|
|
9322
|
+
}), Cc = (t, e = 10) => !t || t.length === 0 ? [] : t.slice(0, e);
|
|
9323
|
+
const Kn = ({
|
|
9324
|
+
icon: t,
|
|
9325
|
+
...e
|
|
9326
|
+
}) => /* @__PURE__ */ a.jsx(ie, { className: "discussion-button", variant: "tertiary", icon: t, ...e });
|
|
9323
9327
|
let bt = !1;
|
|
9324
9328
|
const Dn = () => {
|
|
9325
9329
|
bt !== !1 && (clearTimeout(bt), bt = !1);
|
|
9326
|
-
}, In = 5,
|
|
9330
|
+
}, In = 5, Nc = ({
|
|
9327
9331
|
element: t = "div",
|
|
9328
9332
|
likes: e = 0,
|
|
9329
9333
|
peopleWhoLiked: n = !1,
|
|
@@ -9340,7 +9344,7 @@ const Dn = () => {
|
|
|
9340
9344
|
p(s);
|
|
9341
9345
|
}, [s]);
|
|
9342
9346
|
const [u, m] = J(e), [f, p] = J(s), [h, b] = J(!1), [v, y] = J(!1), _ = wt(
|
|
9343
|
-
() =>
|
|
9347
|
+
() => Cc(n, In),
|
|
9344
9348
|
[n]
|
|
9345
9349
|
), S = (x) => {
|
|
9346
9350
|
if (x.preventDefault(), x.stopPropagation(), y(!1), bt)
|
|
@@ -9355,7 +9359,7 @@ const Dn = () => {
|
|
|
9355
9359
|
x < 0 && (x = 0), b(!0), m(x), p(!f);
|
|
9356
9360
|
try {
|
|
9357
9361
|
if (i && i.slugs) {
|
|
9358
|
-
const F =
|
|
9362
|
+
const F = Sc(i.slugs);
|
|
9359
9363
|
f ? await d(F) : await c({
|
|
9360
9364
|
...F,
|
|
9361
9365
|
payload: { contentPath: window.location.pathname }
|
|
@@ -9367,85 +9371,80 @@ const Dn = () => {
|
|
|
9367
9371
|
b(!1);
|
|
9368
9372
|
}
|
|
9369
9373
|
};
|
|
9370
|
-
return
|
|
9371
|
-
|
|
9372
|
-
|
|
9373
|
-
"
|
|
9374
|
-
|
|
9375
|
-
|
|
9376
|
-
|
|
9377
|
-
|
|
9378
|
-
|
|
9379
|
-
|
|
9380
|
-
|
|
9381
|
-
|
|
9382
|
-
|
|
9383
|
-
|
|
9384
|
-
|
|
9385
|
-
|
|
9386
|
-
|
|
9387
|
-
|
|
9388
|
-
|
|
9389
|
-
|
|
9390
|
-
|
|
9391
|
-
|
|
9392
|
-
|
|
9393
|
-
|
|
9394
|
-
|
|
9395
|
-
|
|
9396
|
-
|
|
9397
|
-
|
|
9398
|
-
{
|
|
9399
|
-
id: `discussion_likes_${f ? "unlike" : "like"}`
|
|
9374
|
+
return /* @__PURE__ */ a.jsxs(
|
|
9375
|
+
"div",
|
|
9376
|
+
{
|
|
9377
|
+
className: "likes-wrapper",
|
|
9378
|
+
onMouseEnter: () => {
|
|
9379
|
+
y(!0);
|
|
9380
|
+
},
|
|
9381
|
+
onMouseLeave: () => {
|
|
9382
|
+
y(!1);
|
|
9383
|
+
},
|
|
9384
|
+
onFocus: () => {
|
|
9385
|
+
y(!0);
|
|
9386
|
+
},
|
|
9387
|
+
onBlur: () => {
|
|
9388
|
+
y(!1);
|
|
9389
|
+
},
|
|
9390
|
+
children: [
|
|
9391
|
+
/* @__PURE__ */ a.jsx(
|
|
9392
|
+
Kn,
|
|
9393
|
+
{
|
|
9394
|
+
className: E("discussion-button text-medium action-button", {
|
|
9395
|
+
"show-spinner": h,
|
|
9396
|
+
"is-liked": f,
|
|
9397
|
+
disabled: !o
|
|
9398
|
+
}),
|
|
9399
|
+
icon: {
|
|
9400
|
+
icon: f ? "heart" : "heart_empty",
|
|
9401
|
+
animate: "bounce"
|
|
9400
9402
|
},
|
|
9403
|
+
disabled: !o,
|
|
9404
|
+
"data-testid": "like-button",
|
|
9405
|
+
"data-gtm-event-context": "Likes",
|
|
9406
|
+
"data-gtm-event-type": `like-${i.type}-click`,
|
|
9407
|
+
onClick: S,
|
|
9408
|
+
screenreaderText: o ? l.formatMessage(
|
|
9409
|
+
{
|
|
9410
|
+
id: `discussion_likes_${f ? "unlike" : "like"}`
|
|
9411
|
+
},
|
|
9412
|
+
{
|
|
9413
|
+
action: l.formatMessage({
|
|
9414
|
+
id: `discussion_action_${i.type}`
|
|
9415
|
+
})
|
|
9416
|
+
}
|
|
9417
|
+
) : !1,
|
|
9418
|
+
children: /* @__PURE__ */ a.jsx("span", { "data-testid": "number-of-likes", className: "number-of-likes", children: l.formatMessage(
|
|
9419
|
+
{ id: `discussion_likes${r ? "_short" : ""}` },
|
|
9420
|
+
{ number: u }
|
|
9421
|
+
) })
|
|
9422
|
+
}
|
|
9423
|
+
),
|
|
9424
|
+
n && /* @__PURE__ */ a.jsx(Zo, { isOpen: v, isLoading: n.length === 0, children: n.length && /* @__PURE__ */ a.jsxs("ul", { children: [
|
|
9425
|
+
_.map((x) => typeof x == "string" || !x.name ? null : /* @__PURE__ */ a.jsx("li", { children: /* @__PURE__ */ a.jsx(
|
|
9426
|
+
at,
|
|
9401
9427
|
{
|
|
9402
|
-
|
|
9403
|
-
|
|
9404
|
-
|
|
9428
|
+
href: x.id ? `/profiles/${x.id}` : void 0,
|
|
9429
|
+
gtmContext: "Likes",
|
|
9430
|
+
gtmType: "liked-name-click",
|
|
9431
|
+
onClick: (F) => F == null ? void 0 : F.stopPropagation(),
|
|
9432
|
+
children: x.name
|
|
9405
9433
|
}
|
|
9406
|
-
)
|
|
9407
|
-
|
|
9408
|
-
|
|
9409
|
-
|
|
9410
|
-
|
|
9411
|
-
|
|
9412
|
-
|
|
9413
|
-
|
|
9414
|
-
|
|
9415
|
-
|
|
9416
|
-
"span",
|
|
9417
|
-
{
|
|
9418
|
-
className: E("number-of-likes", { "no-likes": u === 0 }),
|
|
9419
|
-
"data-testid": "number-of-likes",
|
|
9420
|
-
children: l.formatMessage(
|
|
9421
|
-
{ id: `discussion_likes${r ? "_short" : ""}` },
|
|
9422
|
-
{ number: u }
|
|
9423
|
-
)
|
|
9424
|
-
}
|
|
9425
|
-
),
|
|
9426
|
-
n && /* @__PURE__ */ a.jsx(zo, { isOpen: v, isLoading: n.length === 0, children: n.length && /* @__PURE__ */ a.jsxs("ul", { children: [
|
|
9427
|
-
_.map((x) => typeof x == "string" || !x.name ? null : /* @__PURE__ */ a.jsx("li", { children: /* @__PURE__ */ a.jsx(
|
|
9428
|
-
at,
|
|
9429
|
-
{
|
|
9430
|
-
href: x.id ? `/profiles/${x.id}` : void 0,
|
|
9431
|
-
gtmContext: "Likes",
|
|
9432
|
-
gtmType: "liked-name-click",
|
|
9433
|
-
onClick: (F) => F == null ? void 0 : F.stopPropagation(),
|
|
9434
|
-
children: x.name
|
|
9435
|
-
}
|
|
9436
|
-
) }, x.id || window.btoa(x.name))),
|
|
9437
|
-
e > In && /* @__PURE__ */ a.jsx("li", { children: l.formatMessage(
|
|
9438
|
-
{ id: "discussion_likes_more" },
|
|
9439
|
-
{ number: e - In }
|
|
9440
|
-
) })
|
|
9441
|
-
] }) })
|
|
9442
|
-
] })
|
|
9443
|
-
});
|
|
9444
|
-
}, Jr = (t) => {
|
|
9434
|
+
) }, x.id || window.btoa(x.name))),
|
|
9435
|
+
e > In && /* @__PURE__ */ a.jsx("li", { children: l.formatMessage(
|
|
9436
|
+
{ id: "discussion_likes_more" },
|
|
9437
|
+
{ number: e - In }
|
|
9438
|
+
) })
|
|
9439
|
+
] }) })
|
|
9440
|
+
]
|
|
9441
|
+
}
|
|
9442
|
+
);
|
|
9443
|
+
}, Xr = (t) => {
|
|
9445
9444
|
const e = {};
|
|
9446
9445
|
return Object.keys(t).forEach((n) => n.includes("Id") ? e[n] = t[n] : e[`${n}Slug`] = t[n]), e;
|
|
9447
9446
|
}, cn = (t, e) => t && !e;
|
|
9448
|
-
const Me = "discussion_",
|
|
9447
|
+
const Me = "discussion_", $c = 280, ln = ({
|
|
9449
9448
|
element: t = "div",
|
|
9450
9449
|
content: e,
|
|
9451
9450
|
userHasPermissions: n = !0,
|
|
@@ -9477,7 +9476,7 @@ const Me = "discussion_", Nc = 280, ln = ({
|
|
|
9477
9476
|
children: b,
|
|
9478
9477
|
isTruncated: v = !1
|
|
9479
9478
|
}) => {
|
|
9480
|
-
const y = H(), _ = Ee(Ae), S = Ee(
|
|
9479
|
+
const y = H(), _ = Ee(Ae), S = Ee(ir), { author: j, canLike: x, createdAt: F, id: R, likes: X = 0, userLiked: B, comments: $ = 0 } = e, C = _ && _.id && typeof j != "string" && j.id && j.id === _.id || !1, w = typeof x == "boolean" ? x : n ? !C : !1, k = C && (!e.createdAt || Gs(e.createdAt, 10, "seconds")), N = pe(null), [A, W] = J({
|
|
9481
9480
|
body: e && e.body || "",
|
|
9482
9481
|
isEditing: !1,
|
|
9483
9482
|
didEdit: e && e.isEdited || !1
|
|
@@ -9510,12 +9509,12 @@ const Me = "discussion_", Nc = 280, ln = ({
|
|
|
9510
9509
|
};
|
|
9511
9510
|
if (r || !e || e.type === "answer" && (!e.slugs || !e.slugs.question))
|
|
9512
9511
|
return /* @__PURE__ */ a.jsx(Se, { className: "discussion-card discussion-post" });
|
|
9513
|
-
const te = v ? et(A.body,
|
|
9512
|
+
const te = v ? et(A.body, $c) : A.body, G = async (O) => {
|
|
9514
9513
|
O || (O = ""), I("");
|
|
9515
9514
|
try {
|
|
9516
|
-
if (!
|
|
9515
|
+
if (!Os(O, A.body)) {
|
|
9517
9516
|
const oe = e.type === "question" ? { title: O } : { body: O };
|
|
9518
|
-
await d(
|
|
9517
|
+
await d(Xr(e.slugs), oe);
|
|
9519
9518
|
}
|
|
9520
9519
|
W({ body: O, isEditing: !1, didEdit: !0 });
|
|
9521
9520
|
} catch {
|
|
@@ -9530,7 +9529,7 @@ const Me = "discussion_", Nc = 280, ln = ({
|
|
|
9530
9529
|
}, ee = async () => {
|
|
9531
9530
|
z(!1);
|
|
9532
9531
|
try {
|
|
9533
|
-
await c(
|
|
9532
|
+
await c(Xr(e.slugs));
|
|
9534
9533
|
} catch {
|
|
9535
9534
|
I("delete-error");
|
|
9536
9535
|
}
|
|
@@ -9573,7 +9572,7 @@ const Me = "discussion_", Nc = 280, ln = ({
|
|
|
9573
9572
|
className: "gtm-trackable",
|
|
9574
9573
|
"data-gtm-event-context": h,
|
|
9575
9574
|
"data-gtm-event-type": `delete-${e.type}-click`,
|
|
9576
|
-
...
|
|
9575
|
+
...Uo(`delete-${e.slug}-modal`, Z)
|
|
9577
9576
|
}
|
|
9578
9577
|
), Y.createElement(t, {
|
|
9579
9578
|
className: E("discussion-post", p, {
|
|
@@ -9607,7 +9606,7 @@ const Me = "discussion_", Nc = 280, ln = ({
|
|
|
9607
9606
|
}
|
|
9608
9607
|
),
|
|
9609
9608
|
A.isEditing ? /* @__PURE__ */ a.jsx(
|
|
9610
|
-
|
|
9609
|
+
sr,
|
|
9611
9610
|
{
|
|
9612
9611
|
content: { type: e.type, slugs: e.slugs },
|
|
9613
9612
|
userHasPermissions: n,
|
|
@@ -9639,12 +9638,12 @@ const Me = "discussion_", Nc = 280, ln = ({
|
|
|
9639
9638
|
) : f.post ? /* @__PURE__ */ a.jsxs("a", { href: f.post, children: [
|
|
9640
9639
|
(e == null ? void 0 : e.title) && /* @__PURE__ */ a.jsx("p", { className: "content-title", children: e.title }),
|
|
9641
9640
|
e != null && e.body && (e == null ? void 0 : e.body.length) > 195 ? /* @__PURE__ */ a.jsx(
|
|
9642
|
-
|
|
9641
|
+
di,
|
|
9643
9642
|
{
|
|
9644
9643
|
text: e == null ? void 0 : e.body,
|
|
9645
|
-
markdownOptions: { overrides: { a:
|
|
9644
|
+
markdownOptions: { overrides: { a: Pr } }
|
|
9646
9645
|
}
|
|
9647
|
-
) : /* @__PURE__ */ a.jsx(xt, { options: { overrides: { a:
|
|
9646
|
+
) : /* @__PURE__ */ a.jsx(xt, { options: { overrides: { a: Pr } }, children: te })
|
|
9648
9647
|
] }) : /* @__PURE__ */ a.jsx(
|
|
9649
9648
|
xt,
|
|
9650
9649
|
{
|
|
@@ -9664,7 +9663,7 @@ const Me = "discussion_", Nc = 280, ln = ({
|
|
|
9664
9663
|
"data-testid": `${e.type}-actions`,
|
|
9665
9664
|
children: [
|
|
9666
9665
|
!i.likes && /* @__PURE__ */ a.jsx(
|
|
9667
|
-
|
|
9666
|
+
Nc,
|
|
9668
9667
|
{
|
|
9669
9668
|
element: "li",
|
|
9670
9669
|
likes: X,
|
|
@@ -9679,51 +9678,29 @@ const Me = "discussion_", Nc = 280, ln = ({
|
|
|
9679
9678
|
}
|
|
9680
9679
|
}
|
|
9681
9680
|
),
|
|
9682
|
-
!i.comments && (["question", "post"].includes(e.type) || f.comments || typeof m == "function") && /* @__PURE__ */ a.
|
|
9683
|
-
|
|
9681
|
+
!i.comments && (["question", "post"].includes(e.type) || f.comments || typeof m == "function") && /* @__PURE__ */ a.jsx(
|
|
9682
|
+
Kn,
|
|
9684
9683
|
{
|
|
9685
|
-
className: "action-button",
|
|
9686
9684
|
onClick: (O) => {
|
|
9687
9685
|
O.preventDefault(), O.stopPropagation(), f.comments && (window.location.href = f.comments), typeof m == "function" && m();
|
|
9688
9686
|
},
|
|
9689
|
-
|
|
9690
|
-
|
|
9691
|
-
|
|
9692
|
-
|
|
9693
|
-
|
|
9694
|
-
|
|
9695
|
-
|
|
9696
|
-
|
|
9697
|
-
|
|
9698
|
-
|
|
9699
|
-
|
|
9700
|
-
|
|
9701
|
-
"data-gtm-event-type": `answer-${e.type}-click`,
|
|
9702
|
-
screenreaderText: y.formatMessage(
|
|
9703
|
-
{ id: `${Me}comments_screenReader` },
|
|
9704
|
-
{ count: $ }
|
|
9705
|
-
)
|
|
9706
|
-
}
|
|
9707
|
-
),
|
|
9708
|
-
/* @__PURE__ */ a.jsx("span", { children: y.formatMessage(
|
|
9709
|
-
{ id: `${Me}comments` },
|
|
9710
|
-
{ count: $ }
|
|
9711
|
-
) })
|
|
9712
|
-
]
|
|
9687
|
+
icon: { icon: "speech-bubble_square_thick" },
|
|
9688
|
+
href: f.comments ? f.comments : !1,
|
|
9689
|
+
"data-gtm-event-context": h,
|
|
9690
|
+
"data-gtm-event-type": `answer-${e.type}-click`,
|
|
9691
|
+
screenreaderText: y.formatMessage(
|
|
9692
|
+
{ id: `${Me}comments_screenReader` },
|
|
9693
|
+
{ count: $ }
|
|
9694
|
+
),
|
|
9695
|
+
children: y.formatMessage(
|
|
9696
|
+
{ id: `${Me}comments` },
|
|
9697
|
+
{ count: $ }
|
|
9698
|
+
)
|
|
9713
9699
|
}
|
|
9714
9700
|
),
|
|
9715
|
-
(e.type === "answer" || e.type === "reply") && /* @__PURE__ */ a.jsx("li", { children: /* @__PURE__ */ a.jsx(
|
|
9716
|
-
se,
|
|
9717
|
-
{
|
|
9718
|
-
variant: "tertiary",
|
|
9719
|
-
size: "medium",
|
|
9720
|
-
styling: { muted: !0 },
|
|
9721
|
-
onClick: V,
|
|
9722
|
-
children: y.formatMessage({ id: `${Me}reply` })
|
|
9723
|
-
}
|
|
9724
|
-
) }),
|
|
9701
|
+
(e.type === "answer" || e.type === "reply") && /* @__PURE__ */ a.jsx("li", { children: /* @__PURE__ */ a.jsx(Kn, { styling: { muted: !0 }, onClick: V, children: y.formatMessage({ id: `${Me}reply` }) }) }),
|
|
9725
9702
|
/* @__PURE__ */ a.jsx(
|
|
9726
|
-
|
|
9703
|
+
uc,
|
|
9727
9704
|
{
|
|
9728
9705
|
element: "li",
|
|
9729
9706
|
id: `more-${e.slug}`,
|
|
@@ -9789,7 +9766,7 @@ const Me = "discussion_", Nc = 280, ln = ({
|
|
|
9789
9766
|
] })
|
|
9790
9767
|
});
|
|
9791
9768
|
};
|
|
9792
|
-
const Ln = "discussion_responses_",
|
|
9769
|
+
const Ln = "discussion_responses_", Pc = ({ type: t = "answer", responses: e = 0 }) => {
|
|
9793
9770
|
const n = H();
|
|
9794
9771
|
return e = parseInt(e), /* @__PURE__ */ a.jsxs("div", { className: "responses-heading", children: [
|
|
9795
9772
|
/* @__PURE__ */ a.jsx("h4", { children: n.formatMessage(
|
|
@@ -9799,7 +9776,7 @@ const Ln = "discussion_responses_", $c = ({ type: t = "answer", responses: e = 0
|
|
|
9799
9776
|
e === 0 && /* @__PURE__ */ a.jsx("p", { children: Ne(n.formatMessage, `${Ln}empty`, t, t) })
|
|
9800
9777
|
] });
|
|
9801
9778
|
};
|
|
9802
|
-
const
|
|
9779
|
+
const Mc = ({
|
|
9803
9780
|
loadMore: { isLoading: t, hasNextPage: e, loadNextPage: n } = {
|
|
9804
9781
|
isLoading: !1,
|
|
9805
9782
|
hasNextPage: !1,
|
|
@@ -9809,7 +9786,7 @@ const Pc = ({
|
|
|
9809
9786
|
form: r,
|
|
9810
9787
|
children: s
|
|
9811
9788
|
}) => {
|
|
9812
|
-
const i = H(), o = Ee(
|
|
9789
|
+
const i = H(), o = Ee(ir), c = Bt(s, {
|
|
9813
9790
|
element: "li"
|
|
9814
9791
|
});
|
|
9815
9792
|
return /* @__PURE__ */ a.jsxs("div", { className: "thread-wrapper", children: [
|
|
@@ -9828,16 +9805,16 @@ const Pc = ({
|
|
|
9828
9805
|
}
|
|
9829
9806
|
}
|
|
9830
9807
|
),
|
|
9831
|
-
r && o.showForm && /* @__PURE__ */ a.jsx(
|
|
9808
|
+
r && o.showForm && /* @__PURE__ */ a.jsx(sr, { ...r })
|
|
9832
9809
|
] });
|
|
9833
|
-
},
|
|
9834
|
-
function
|
|
9810
|
+
}, Rc = "post", Fc = "reply", Ga = "00000000-0000-0000-0000-000000000000";
|
|
9811
|
+
function or({ queryClient: t, queryKey: e }) {
|
|
9835
9812
|
function n(r, s, i) {
|
|
9836
9813
|
t.setQueryData(e, i);
|
|
9837
9814
|
}
|
|
9838
9815
|
return n;
|
|
9839
9816
|
}
|
|
9840
|
-
function
|
|
9817
|
+
function cr({ queryClient: t, queryKey: e }) {
|
|
9841
9818
|
async function n(r) {
|
|
9842
9819
|
await t.cancelQueries({ queryKey: e });
|
|
9843
9820
|
const s = t.getQueryData(e);
|
|
@@ -9845,7 +9822,7 @@ function or({ queryClient: t, queryKey: e }) {
|
|
|
9845
9822
|
}
|
|
9846
9823
|
return n;
|
|
9847
9824
|
}
|
|
9848
|
-
function
|
|
9825
|
+
function Oc() {
|
|
9849
9826
|
return {
|
|
9850
9827
|
latest_reactions: {
|
|
9851
9828
|
like: [],
|
|
@@ -9861,7 +9838,7 @@ function Fc() {
|
|
|
9861
9838
|
}
|
|
9862
9839
|
};
|
|
9863
9840
|
}
|
|
9864
|
-
function
|
|
9841
|
+
function Ac() {
|
|
9865
9842
|
return {
|
|
9866
9843
|
latest_children: {
|
|
9867
9844
|
like: [],
|
|
@@ -9877,7 +9854,7 @@ function Oc() {
|
|
|
9877
9854
|
}
|
|
9878
9855
|
};
|
|
9879
9856
|
}
|
|
9880
|
-
function
|
|
9857
|
+
function Qa(t) {
|
|
9881
9858
|
const { id: e = "", name: n = "", organization: r = "", jobTitle: s = "", image: i = {} } = t, { thumbnail: o = "" } = i;
|
|
9882
9859
|
return {
|
|
9883
9860
|
id: e,
|
|
@@ -9889,19 +9866,19 @@ function Ga(t) {
|
|
|
9889
9866
|
}
|
|
9890
9867
|
};
|
|
9891
9868
|
}
|
|
9892
|
-
function
|
|
9869
|
+
function Dc({ content: t }) {
|
|
9893
9870
|
return {
|
|
9894
9871
|
content: t,
|
|
9895
|
-
id:
|
|
9872
|
+
id: Ga,
|
|
9896
9873
|
time: (/* @__PURE__ */ new Date()).toISOString(),
|
|
9897
|
-
verb:
|
|
9874
|
+
verb: Rc
|
|
9898
9875
|
};
|
|
9899
9876
|
}
|
|
9900
|
-
function
|
|
9877
|
+
function ea({ activity: t, user: e }) {
|
|
9901
9878
|
return {
|
|
9902
9879
|
...t,
|
|
9903
|
-
actor:
|
|
9904
|
-
...
|
|
9880
|
+
actor: Qa(e),
|
|
9881
|
+
...Oc()
|
|
9905
9882
|
};
|
|
9906
9883
|
}
|
|
9907
9884
|
function Xt({ activity: t, reaction: e }) {
|
|
@@ -9917,7 +9894,7 @@ function Xt({ activity: t, reaction: e }) {
|
|
|
9917
9894
|
like: (n = t.reaction_counts) != null && n.like ? t.reaction_counts.like + 1 : 1
|
|
9918
9895
|
};
|
|
9919
9896
|
}
|
|
9920
|
-
function
|
|
9897
|
+
function Ja({ activity: t, user: e }) {
|
|
9921
9898
|
var n, r, s;
|
|
9922
9899
|
t.reaction_counts = {
|
|
9923
9900
|
...t.reaction_counts || {},
|
|
@@ -9930,27 +9907,27 @@ function Qa({ activity: t, user: e }) {
|
|
|
9930
9907
|
like: (((s = t.own_reactions) == null ? void 0 : s.like) || []).filter(({ user_id: i }) => i !== e.id)
|
|
9931
9908
|
});
|
|
9932
9909
|
}
|
|
9933
|
-
function
|
|
9910
|
+
function Ic({ activityId: t, replyId: e, content: n }) {
|
|
9934
9911
|
return {
|
|
9935
9912
|
activity_id: t,
|
|
9936
9913
|
data: {
|
|
9937
9914
|
content: n
|
|
9938
9915
|
},
|
|
9939
|
-
id:
|
|
9940
|
-
kind:
|
|
9916
|
+
id: Ga,
|
|
9917
|
+
kind: Fc,
|
|
9941
9918
|
parent: e || ""
|
|
9942
9919
|
};
|
|
9943
9920
|
}
|
|
9944
|
-
function
|
|
9945
|
-
const n =
|
|
9921
|
+
function ta({ reply: t, user: e }) {
|
|
9922
|
+
const n = Qa(e);
|
|
9946
9923
|
return {
|
|
9947
9924
|
...t,
|
|
9948
9925
|
user_id: n.id,
|
|
9949
9926
|
user: n,
|
|
9950
|
-
...
|
|
9927
|
+
...Ac()
|
|
9951
9928
|
};
|
|
9952
9929
|
}
|
|
9953
|
-
function
|
|
9930
|
+
function na({ reply: t, reaction: e }) {
|
|
9954
9931
|
var n, r, s;
|
|
9955
9932
|
e ? (t.latest_children = {
|
|
9956
9933
|
...t.latest_children || {},
|
|
@@ -9963,7 +9940,7 @@ function ta({ reply: t, reaction: e }) {
|
|
|
9963
9940
|
like: (n = t.children_counts) != null && n.like ? t.children_counts.like + 1 : 1
|
|
9964
9941
|
};
|
|
9965
9942
|
}
|
|
9966
|
-
function
|
|
9943
|
+
function Lc({ reply: t, user: e }) {
|
|
9967
9944
|
var n, r, s;
|
|
9968
9945
|
t.children_counts = {
|
|
9969
9946
|
...t.children_counts || {},
|
|
@@ -9976,14 +9953,14 @@ function Ic({ reply: t, user: e }) {
|
|
|
9976
9953
|
like: (((s = t.own_children) == null ? void 0 : s.like) || []).filter(({ user_id: i }) => i !== e.id)
|
|
9977
9954
|
});
|
|
9978
9955
|
}
|
|
9979
|
-
const
|
|
9956
|
+
const Xa = (t) => {
|
|
9980
9957
|
const e = new CustomEvent("discussionPostAdded", {
|
|
9981
9958
|
detail: t
|
|
9982
9959
|
});
|
|
9983
9960
|
document.dispatchEvent(e);
|
|
9984
9961
|
};
|
|
9985
|
-
let
|
|
9986
|
-
const
|
|
9962
|
+
let ra, Bn = 0;
|
|
9963
|
+
const es = () => {
|
|
9987
9964
|
ae(() => (document.addEventListener("discussionPostAdded", t), () => {
|
|
9988
9965
|
document.removeEventListener(
|
|
9989
9966
|
"discussionPostAdded",
|
|
@@ -9994,13 +9971,13 @@ const Xa = () => {
|
|
|
9994
9971
|
const n = e.detail;
|
|
9995
9972
|
if (!n)
|
|
9996
9973
|
return;
|
|
9997
|
-
clearTimeout(
|
|
9974
|
+
clearTimeout(ra);
|
|
9998
9975
|
const r = document.getElementById(n);
|
|
9999
9976
|
if (r) {
|
|
10000
9977
|
r.scrollIntoView({ behavior: "smooth", block: "start" }), Bn = 0;
|
|
10001
9978
|
return;
|
|
10002
9979
|
}
|
|
10003
|
-
Bn++, !(Bn > 10) && (
|
|
9980
|
+
Bn++, !(Bn > 10) && (ra = setTimeout(() => {
|
|
10004
9981
|
t(e);
|
|
10005
9982
|
}, 50));
|
|
10006
9983
|
};
|
|
@@ -10022,7 +9999,7 @@ const Xa = () => {
|
|
|
10022
9999
|
thumbnail: "https://some-user-thumbnail.com/avatar2.png"
|
|
10023
10000
|
},
|
|
10024
10001
|
isLoading: !1
|
|
10025
|
-
}),
|
|
10002
|
+
}), ts = Object.freeze({
|
|
10026
10003
|
actor: `SU:${nt.id}`,
|
|
10027
10004
|
content: "some content 1",
|
|
10028
10005
|
duration: "5.53ms",
|
|
@@ -10032,7 +10009,7 @@ const Xa = () => {
|
|
|
10032
10009
|
object: "comment",
|
|
10033
10010
|
time: "2023-11-24T17:52:36.162000",
|
|
10034
10011
|
verb: "post"
|
|
10035
|
-
}),
|
|
10012
|
+
}), Bc = Object.freeze({
|
|
10036
10013
|
actor: `SU:${Be.id}`,
|
|
10037
10014
|
content: "some content 2",
|
|
10038
10015
|
duration: "5.53ms",
|
|
@@ -10042,7 +10019,7 @@ const Xa = () => {
|
|
|
10042
10019
|
object: "comment",
|
|
10043
10020
|
time: "2023-11-24T17:54:36.162000",
|
|
10044
10021
|
verb: "post"
|
|
10045
|
-
}),
|
|
10022
|
+
}), qc = Object.freeze({
|
|
10046
10023
|
actor: `SU:${nt.id}`,
|
|
10047
10024
|
content: "some content 3",
|
|
10048
10025
|
duration: "5.53ms",
|
|
@@ -10052,7 +10029,7 @@ const Xa = () => {
|
|
|
10052
10029
|
object: "comment",
|
|
10053
10030
|
time: "2023-11-24T17:56:36.162000",
|
|
10054
10031
|
verb: "post"
|
|
10055
|
-
}),
|
|
10032
|
+
}), Wc = Object.freeze({
|
|
10056
10033
|
actor: `SU:${Be.id}`,
|
|
10057
10034
|
content: "some content 4",
|
|
10058
10035
|
duration: "5.53ms",
|
|
@@ -10065,7 +10042,7 @@ const Xa = () => {
|
|
|
10065
10042
|
});
|
|
10066
10043
|
Object.freeze({
|
|
10067
10044
|
id: "some-reaction-id-1",
|
|
10068
|
-
activity_id:
|
|
10045
|
+
activity_id: ts.id,
|
|
10069
10046
|
kind: "like",
|
|
10070
10047
|
created_at: "2023-11-24T17:58:36.162000",
|
|
10071
10048
|
data: {},
|
|
@@ -10095,7 +10072,7 @@ Object.freeze({
|
|
|
10095
10072
|
updated_at: "2023-08-31T07:11:38.677184Z"
|
|
10096
10073
|
},
|
|
10097
10074
|
kind: "reply",
|
|
10098
|
-
activity_id:
|
|
10075
|
+
activity_id: ts.id,
|
|
10099
10076
|
data: {
|
|
10100
10077
|
content: "Some content 1..."
|
|
10101
10078
|
},
|
|
@@ -10115,7 +10092,7 @@ Object.freeze({
|
|
|
10115
10092
|
updated_at: "2023-08-31T07:11:38.677184Z"
|
|
10116
10093
|
},
|
|
10117
10094
|
kind: "reply",
|
|
10118
|
-
activity_id:
|
|
10095
|
+
activity_id: Bc.id,
|
|
10119
10096
|
data: {
|
|
10120
10097
|
content: "Some content 2..."
|
|
10121
10098
|
},
|
|
@@ -10135,7 +10112,7 @@ Object.freeze({
|
|
|
10135
10112
|
updated_at: "2023-08-31T07:11:38.677184Z"
|
|
10136
10113
|
},
|
|
10137
10114
|
kind: "reply",
|
|
10138
|
-
activity_id:
|
|
10115
|
+
activity_id: qc.id,
|
|
10139
10116
|
data: {
|
|
10140
10117
|
content: "Some content 3..."
|
|
10141
10118
|
},
|
|
@@ -10155,7 +10132,7 @@ Object.freeze({
|
|
|
10155
10132
|
updated_at: "2023-08-31T07:11:38.677184Z"
|
|
10156
10133
|
},
|
|
10157
10134
|
kind: "reply",
|
|
10158
|
-
activity_id:
|
|
10135
|
+
activity_id: Wc.id,
|
|
10159
10136
|
data: {
|
|
10160
10137
|
content: "Some content 4..."
|
|
10161
10138
|
},
|
|
@@ -10163,7 +10140,7 @@ Object.freeze({
|
|
|
10163
10140
|
latest_children: {},
|
|
10164
10141
|
children_counts: {}
|
|
10165
10142
|
});
|
|
10166
|
-
function
|
|
10143
|
+
function Uc({
|
|
10167
10144
|
mutationFn: t,
|
|
10168
10145
|
mutationHandlers: { mutate: e, error: n },
|
|
10169
10146
|
queryClient: r,
|
|
@@ -10173,20 +10150,20 @@ function Wc({
|
|
|
10173
10150
|
const { mutate: o } = je({
|
|
10174
10151
|
mutationFn: t,
|
|
10175
10152
|
onMutate: (c) => e((d) => {
|
|
10176
|
-
const l =
|
|
10177
|
-
return
|
|
10153
|
+
const l = ea({ activity: Dc(c), user: i });
|
|
10154
|
+
return aa(l, d);
|
|
10178
10155
|
}),
|
|
10179
10156
|
onError: n,
|
|
10180
10157
|
onSuccess: (c, d, l) => {
|
|
10181
|
-
const u =
|
|
10182
|
-
r.setQueryData(s,
|
|
10183
|
-
|
|
10158
|
+
const u = ea({ activity: c, user: i });
|
|
10159
|
+
r.setQueryData(s, aa(u, l, !0)), setTimeout(() => {
|
|
10160
|
+
Xa(u.id);
|
|
10184
10161
|
}, 0);
|
|
10185
10162
|
}
|
|
10186
10163
|
});
|
|
10187
10164
|
return o;
|
|
10188
10165
|
}
|
|
10189
|
-
function
|
|
10166
|
+
function zc({
|
|
10190
10167
|
mutationFn: t,
|
|
10191
10168
|
mutationHandlers: {
|
|
10192
10169
|
mutate: e,
|
|
@@ -10203,7 +10180,7 @@ function Uc({
|
|
|
10203
10180
|
});
|
|
10204
10181
|
return r;
|
|
10205
10182
|
}
|
|
10206
|
-
function
|
|
10183
|
+
function Zc({
|
|
10207
10184
|
queryFns: {
|
|
10208
10185
|
create: t,
|
|
10209
10186
|
edit: e,
|
|
@@ -10214,14 +10191,14 @@ function zc({
|
|
|
10214
10191
|
},
|
|
10215
10192
|
queryKey: o
|
|
10216
10193
|
}) {
|
|
10217
|
-
const c =
|
|
10194
|
+
const c = Qn(), d = ar(), l = { queryClient: c, queryKey: o }, u = {
|
|
10218
10195
|
mutationHandlers: {
|
|
10219
|
-
error:
|
|
10220
|
-
mutate:
|
|
10196
|
+
error: or(l),
|
|
10197
|
+
mutate: cr(l)
|
|
10221
10198
|
},
|
|
10222
10199
|
user: d,
|
|
10223
10200
|
...l
|
|
10224
|
-
}, m =
|
|
10201
|
+
}, m = Uc({ ...u, mutationFn: t }), f = zc({ ...u, mutationFn: e }), p = Hc({ ...u, mutationFn: n }), h = Yc({ ...u, mutationFn: s }), b = Kc({ ...u, mutationFn: i }), { activities: v, ...y } = Vc({ queryKey: o, queryFn: r });
|
|
10225
10202
|
return {
|
|
10226
10203
|
activities: v,
|
|
10227
10204
|
mutations: {
|
|
@@ -10235,7 +10212,7 @@ function zc({
|
|
|
10235
10212
|
...y
|
|
10236
10213
|
};
|
|
10237
10214
|
}
|
|
10238
|
-
function
|
|
10215
|
+
function Hc({
|
|
10239
10216
|
mutationFn: t,
|
|
10240
10217
|
mutationHandlers: {
|
|
10241
10218
|
mutate: e,
|
|
@@ -10258,28 +10235,28 @@ function Zc({
|
|
|
10258
10235
|
});
|
|
10259
10236
|
return i;
|
|
10260
10237
|
}
|
|
10261
|
-
function
|
|
10238
|
+
function Vc({ queryFn: t, queryKey: e }) {
|
|
10262
10239
|
const {
|
|
10263
10240
|
data: n,
|
|
10264
10241
|
error: r,
|
|
10265
10242
|
isLoading: s,
|
|
10266
10243
|
hasNextPage: i,
|
|
10267
10244
|
fetchNextPage: o
|
|
10268
|
-
} =
|
|
10245
|
+
} = ca({
|
|
10269
10246
|
queryKey: e,
|
|
10270
10247
|
queryFn: t,
|
|
10271
10248
|
initialPageParam: { next: null },
|
|
10272
10249
|
getNextPageParam: (c) => (c == null ? void 0 : c.next) || null
|
|
10273
10250
|
});
|
|
10274
10251
|
return {
|
|
10275
|
-
activities:
|
|
10252
|
+
activities: Qc(n),
|
|
10276
10253
|
error: r,
|
|
10277
10254
|
isLoading: s,
|
|
10278
10255
|
hasNextPage: i,
|
|
10279
10256
|
fetchNextPage: o
|
|
10280
10257
|
};
|
|
10281
10258
|
}
|
|
10282
|
-
function
|
|
10259
|
+
function Yc({
|
|
10283
10260
|
mutationFn: t,
|
|
10284
10261
|
mutationHandlers: {
|
|
10285
10262
|
mutate: e,
|
|
@@ -10288,12 +10265,12 @@ function Vc({
|
|
|
10288
10265
|
}) {
|
|
10289
10266
|
const { mutate: r } = je({
|
|
10290
10267
|
mutationFn: t,
|
|
10291
|
-
onMutate: ({ activityId: s }) => e((i) =>
|
|
10268
|
+
onMutate: ({ activityId: s }) => e((i) => Gc(s, i)),
|
|
10292
10269
|
onError: n
|
|
10293
10270
|
});
|
|
10294
10271
|
return r;
|
|
10295
10272
|
}
|
|
10296
|
-
function
|
|
10273
|
+
function Kc({
|
|
10297
10274
|
mutationFn: t,
|
|
10298
10275
|
mutationHandlers: {
|
|
10299
10276
|
mutate: e,
|
|
@@ -10305,13 +10282,13 @@ function Yc({
|
|
|
10305
10282
|
mutationFn: t,
|
|
10306
10283
|
onMutate: ({ activityId: i }) => e((o) => {
|
|
10307
10284
|
const c = en(i, o);
|
|
10308
|
-
return c &&
|
|
10285
|
+
return c && Ja({ activity: c, user: r }), o;
|
|
10309
10286
|
}),
|
|
10310
10287
|
onError: n
|
|
10311
10288
|
});
|
|
10312
10289
|
return s;
|
|
10313
10290
|
}
|
|
10314
|
-
function
|
|
10291
|
+
function aa(t, e, n = !1) {
|
|
10315
10292
|
return e ? (n ? e.pages[0].results[0] = t : e.pages[0].results = [t, ...e.pages[0].results], e) : {
|
|
10316
10293
|
pages: [{
|
|
10317
10294
|
next: "",
|
|
@@ -10328,7 +10305,7 @@ function en(t, e) {
|
|
|
10328
10305
|
return r;
|
|
10329
10306
|
}
|
|
10330
10307
|
}
|
|
10331
|
-
function
|
|
10308
|
+
function Gc(t, e) {
|
|
10332
10309
|
for (const { results: n } of e.pages) {
|
|
10333
10310
|
const r = n.findIndex(({ id: s }) => s === t);
|
|
10334
10311
|
if (r !== -1) {
|
|
@@ -10338,11 +10315,11 @@ function Kc(t, e) {
|
|
|
10338
10315
|
}
|
|
10339
10316
|
return e;
|
|
10340
10317
|
}
|
|
10341
|
-
function
|
|
10318
|
+
function Qc(t) {
|
|
10342
10319
|
var e;
|
|
10343
10320
|
return ((e = t == null ? void 0 : t.pages) == null ? void 0 : e.reduce((n, { results: r }) => [...n, ...r], [])) || [];
|
|
10344
10321
|
}
|
|
10345
|
-
const
|
|
10322
|
+
const vu = ({
|
|
10346
10323
|
basePath: t,
|
|
10347
10324
|
parentId: e,
|
|
10348
10325
|
isMember: n,
|
|
@@ -10356,13 +10333,13 @@ const gu = ({
|
|
|
10356
10333
|
isLoading: m,
|
|
10357
10334
|
mutations: { create: f, edit: p, remove: h, like: b, unlike: v },
|
|
10358
10335
|
user: y
|
|
10359
|
-
} =
|
|
10336
|
+
} = Zc({
|
|
10360
10337
|
queryKey: [t, e, "activities"],
|
|
10361
10338
|
queryFns: r
|
|
10362
10339
|
});
|
|
10363
|
-
return
|
|
10340
|
+
return es(), d ? /* @__PURE__ */ a.jsx(He, { variant: "error", text: d.message }) : /* @__PURE__ */ a.jsxs("section", { children: [
|
|
10364
10341
|
/* @__PURE__ */ a.jsx(
|
|
10365
|
-
|
|
10342
|
+
Ka,
|
|
10366
10343
|
{
|
|
10367
10344
|
form: {
|
|
10368
10345
|
content: { type: "post", slugs: {} },
|
|
@@ -10458,7 +10435,7 @@ const gu = ({
|
|
|
10458
10435
|
}
|
|
10459
10436
|
)
|
|
10460
10437
|
] });
|
|
10461
|
-
},
|
|
10438
|
+
}, bu = {
|
|
10462
10439
|
next: "id_lt=67ef0342-6f6e-4807-beea-5a9184ec140c&limit=5",
|
|
10463
10440
|
results: [
|
|
10464
10441
|
{
|
|
@@ -11010,7 +10987,7 @@ const gu = ({
|
|
|
11010
10987
|
],
|
|
11011
10988
|
duration: "6.48ms"
|
|
11012
10989
|
};
|
|
11013
|
-
function
|
|
10990
|
+
function Jc({
|
|
11014
10991
|
mutationFn: t,
|
|
11015
10992
|
mutationHandlers: { mutate: e, error: n },
|
|
11016
10993
|
queryClient: r,
|
|
@@ -11020,26 +10997,26 @@ function Qc({
|
|
|
11020
10997
|
const { mutate: o } = je({
|
|
11021
10998
|
mutationFn: t,
|
|
11022
10999
|
onMutate: (c) => e((d) => {
|
|
11023
|
-
const l =
|
|
11024
|
-
return
|
|
11000
|
+
const l = ta({ reply: Ic(c), user: i });
|
|
11001
|
+
return sa(l, d, {
|
|
11025
11002
|
replace: !1,
|
|
11026
11003
|
append: (c == null ? void 0 : c.replyId) !== void 0
|
|
11027
11004
|
});
|
|
11028
11005
|
}),
|
|
11029
11006
|
onError: n,
|
|
11030
11007
|
onSuccess: (c, d, l) => {
|
|
11031
|
-
const u =
|
|
11008
|
+
const u = ta({ reply: c, user: i });
|
|
11032
11009
|
r.setQueryData(
|
|
11033
11010
|
s,
|
|
11034
|
-
|
|
11011
|
+
sa(u, l, { replace: !0, append: (d == null ? void 0 : d.replyId) !== void 0 })
|
|
11035
11012
|
), setTimeout(() => {
|
|
11036
|
-
|
|
11013
|
+
Xa(u.id);
|
|
11037
11014
|
}, 0);
|
|
11038
11015
|
}
|
|
11039
11016
|
});
|
|
11040
11017
|
return o;
|
|
11041
11018
|
}
|
|
11042
|
-
function
|
|
11019
|
+
function Xc({
|
|
11043
11020
|
mutationFn: t,
|
|
11044
11021
|
mutationHandlers: {
|
|
11045
11022
|
mutate: e,
|
|
@@ -11056,7 +11033,7 @@ function Jc({
|
|
|
11056
11033
|
});
|
|
11057
11034
|
return r;
|
|
11058
11035
|
}
|
|
11059
|
-
function
|
|
11036
|
+
function ns({
|
|
11060
11037
|
queryFns: {
|
|
11061
11038
|
create: t,
|
|
11062
11039
|
edit: e,
|
|
@@ -11067,14 +11044,14 @@ function ts({
|
|
|
11067
11044
|
},
|
|
11068
11045
|
queryKey: o
|
|
11069
11046
|
}) {
|
|
11070
|
-
const c =
|
|
11047
|
+
const c = Qn(), d = ar(), l = { queryClient: c, queryKey: o }, u = {
|
|
11071
11048
|
mutationHandlers: {
|
|
11072
|
-
error:
|
|
11073
|
-
mutate:
|
|
11049
|
+
error: or(l),
|
|
11050
|
+
mutate: cr(l)
|
|
11074
11051
|
},
|
|
11075
11052
|
user: d,
|
|
11076
11053
|
...l
|
|
11077
|
-
}, m =
|
|
11054
|
+
}, m = Jc({ ...u, mutationFn: t }), f = Xc({ ...u, mutationFn: e }), p = el({ ...u, mutationFn: n }), h = nl({ ...u, mutationFn: s }), b = rl({ ...u, mutationFn: i }), { replies: v, ...y } = tl({ queryKey: o, queryFn: r });
|
|
11078
11055
|
return {
|
|
11079
11056
|
replies: v,
|
|
11080
11057
|
mutations: {
|
|
@@ -11088,7 +11065,7 @@ function ts({
|
|
|
11088
11065
|
...y
|
|
11089
11066
|
};
|
|
11090
11067
|
}
|
|
11091
|
-
function
|
|
11068
|
+
function el({
|
|
11092
11069
|
mutationFn: t,
|
|
11093
11070
|
mutationHandlers: {
|
|
11094
11071
|
mutate: e,
|
|
@@ -11101,29 +11078,29 @@ function Xc({
|
|
|
11101
11078
|
mutationFn: t,
|
|
11102
11079
|
onMutate: ({ replyId: o }) => e((c) => {
|
|
11103
11080
|
const d = tn(o, c);
|
|
11104
|
-
return d &&
|
|
11081
|
+
return d && na({ reply: d }), c;
|
|
11105
11082
|
}),
|
|
11106
11083
|
onError: n,
|
|
11107
11084
|
onSuccess: (o, { replyId: c }, d) => {
|
|
11108
11085
|
const l = tn(c, d);
|
|
11109
|
-
l &&
|
|
11086
|
+
l && na({ reply: l, reaction: o }), r.setQueryData(s, d);
|
|
11110
11087
|
}
|
|
11111
11088
|
});
|
|
11112
11089
|
return i;
|
|
11113
11090
|
}
|
|
11114
|
-
function
|
|
11091
|
+
function tl({ queryFn: t, queryKey: e }) {
|
|
11115
11092
|
const {
|
|
11116
11093
|
data: n,
|
|
11117
11094
|
error: r,
|
|
11118
11095
|
isLoading: s,
|
|
11119
11096
|
hasNextPage: i,
|
|
11120
11097
|
fetchNextPage: o
|
|
11121
|
-
} =
|
|
11098
|
+
} = ca({
|
|
11122
11099
|
queryKey: e,
|
|
11123
11100
|
queryFn: t,
|
|
11124
11101
|
initialPageParam: { next: "" },
|
|
11125
11102
|
getNextPageParam: (l) => (l == null ? void 0 : l.next) || null
|
|
11126
|
-
}), c =
|
|
11103
|
+
}), c = cl(n), d = `${c.length || 0}${i ? "+" : ""}`;
|
|
11127
11104
|
return {
|
|
11128
11105
|
replies: c,
|
|
11129
11106
|
repliesCount: d,
|
|
@@ -11133,7 +11110,7 @@ function el({ queryFn: t, queryKey: e }) {
|
|
|
11133
11110
|
fetchNextPage: o
|
|
11134
11111
|
};
|
|
11135
11112
|
}
|
|
11136
|
-
function
|
|
11113
|
+
function nl({
|
|
11137
11114
|
mutationFn: t,
|
|
11138
11115
|
mutationHandlers: {
|
|
11139
11116
|
mutate: e,
|
|
@@ -11142,12 +11119,12 @@ function tl({
|
|
|
11142
11119
|
}) {
|
|
11143
11120
|
const { mutate: r } = je({
|
|
11144
11121
|
mutationFn: t,
|
|
11145
|
-
onMutate: ({ replyId: s }) => e((i) =>
|
|
11122
|
+
onMutate: ({ replyId: s }) => e((i) => ol(s, i)),
|
|
11146
11123
|
onError: n
|
|
11147
11124
|
});
|
|
11148
11125
|
return r;
|
|
11149
11126
|
}
|
|
11150
|
-
function
|
|
11127
|
+
function rl({
|
|
11151
11128
|
mutationFn: t,
|
|
11152
11129
|
mutationHandlers: {
|
|
11153
11130
|
mutate: e,
|
|
@@ -11159,13 +11136,13 @@ function nl({
|
|
|
11159
11136
|
mutationFn: t,
|
|
11160
11137
|
onMutate: ({ replyId: i }) => e((o) => {
|
|
11161
11138
|
const c = tn(i, o);
|
|
11162
|
-
return c &&
|
|
11139
|
+
return c && Lc({ reply: c, user: r }), o;
|
|
11163
11140
|
}),
|
|
11164
11141
|
onError: n
|
|
11165
11142
|
});
|
|
11166
11143
|
return s;
|
|
11167
11144
|
}
|
|
11168
|
-
function
|
|
11145
|
+
function al(t) {
|
|
11169
11146
|
return {
|
|
11170
11147
|
pages: [{
|
|
11171
11148
|
next: "",
|
|
@@ -11174,15 +11151,15 @@ function rl(t) {
|
|
|
11174
11151
|
pageParams: [""]
|
|
11175
11152
|
};
|
|
11176
11153
|
}
|
|
11177
|
-
function
|
|
11154
|
+
function sl(t, e, n) {
|
|
11178
11155
|
const r = e.pages.length - 1, s = e.pages[r].results.length - 1;
|
|
11179
11156
|
return n != null && n.replace ? e.pages[r].results[s] = t : e.pages[r].results.push(t), e;
|
|
11180
11157
|
}
|
|
11181
|
-
function
|
|
11158
|
+
function il(t, e, n) {
|
|
11182
11159
|
return n != null && n.replace ? e.pages[0].results[0] = t : e.pages[0].results = [t, ...e.pages[0].results], e;
|
|
11183
11160
|
}
|
|
11184
|
-
function
|
|
11185
|
-
return e ? n != null && n.append ?
|
|
11161
|
+
function sa(t, e, n) {
|
|
11162
|
+
return e ? n != null && n.append ? sl(t, e, n) : il(t, e, n) : al(t);
|
|
11186
11163
|
}
|
|
11187
11164
|
function tn(t, e) {
|
|
11188
11165
|
if (e)
|
|
@@ -11192,7 +11169,7 @@ function tn(t, e) {
|
|
|
11192
11169
|
return r;
|
|
11193
11170
|
}
|
|
11194
11171
|
}
|
|
11195
|
-
function
|
|
11172
|
+
function ol(t, e) {
|
|
11196
11173
|
for (const { results: n } of e.pages) {
|
|
11197
11174
|
const r = n.findIndex(({ id: s }) => s === t);
|
|
11198
11175
|
if (r !== -1) {
|
|
@@ -11202,11 +11179,11 @@ function il(t, e) {
|
|
|
11202
11179
|
}
|
|
11203
11180
|
return e;
|
|
11204
11181
|
}
|
|
11205
|
-
function
|
|
11182
|
+
function cl(t) {
|
|
11206
11183
|
var e;
|
|
11207
11184
|
return ((e = t == null ? void 0 : t.pages) == null ? void 0 : e.reduce((n, r) => [...n, ...r == null ? void 0 : r.results], [])) || [];
|
|
11208
11185
|
}
|
|
11209
|
-
const
|
|
11186
|
+
const ll = ({
|
|
11210
11187
|
basePath: t,
|
|
11211
11188
|
parentId: e,
|
|
11212
11189
|
activityId: n,
|
|
@@ -11221,7 +11198,7 @@ const cl = ({
|
|
|
11221
11198
|
isLoading: l,
|
|
11222
11199
|
mutations: { create: u, edit: m, like: f, remove: p, unlike: h },
|
|
11223
11200
|
user: b
|
|
11224
|
-
} =
|
|
11201
|
+
} = ns({
|
|
11225
11202
|
queryKey: [t, e, n, r, "replies"],
|
|
11226
11203
|
queryFns: {
|
|
11227
11204
|
...i,
|
|
@@ -11230,7 +11207,7 @@ const cl = ({
|
|
|
11230
11207
|
}
|
|
11231
11208
|
});
|
|
11232
11209
|
return /* @__PURE__ */ a.jsx(
|
|
11233
|
-
|
|
11210
|
+
Mc,
|
|
11234
11211
|
{
|
|
11235
11212
|
loadMore: { isLoading: l, hasNextPage: d, loadNextPage: () => c() },
|
|
11236
11213
|
form: {
|
|
@@ -11319,7 +11296,7 @@ const cl = ({
|
|
|
11319
11296
|
}
|
|
11320
11297
|
);
|
|
11321
11298
|
};
|
|
11322
|
-
const
|
|
11299
|
+
const ul = ({
|
|
11323
11300
|
basePath: t,
|
|
11324
11301
|
parentId: e,
|
|
11325
11302
|
activityId: n,
|
|
@@ -11334,14 +11311,14 @@ const ll = ({
|
|
|
11334
11311
|
isLoading: f,
|
|
11335
11312
|
mutations: { create: p, edit: h, like: b, remove: v, unlike: y },
|
|
11336
11313
|
user: _
|
|
11337
|
-
} =
|
|
11314
|
+
} = ns({
|
|
11338
11315
|
queryKey: [t, e, n, "replies"],
|
|
11339
11316
|
queryFns: s
|
|
11340
11317
|
});
|
|
11341
|
-
return
|
|
11342
|
-
/* @__PURE__ */ a.jsx(
|
|
11318
|
+
return zs(), es(), /* @__PURE__ */ a.jsxs("section", { className: "replies-feed", children: [
|
|
11319
|
+
/* @__PURE__ */ a.jsx(Pc, { type: "comment", responses: l }),
|
|
11343
11320
|
/* @__PURE__ */ a.jsx(
|
|
11344
|
-
|
|
11321
|
+
Ka,
|
|
11345
11322
|
{
|
|
11346
11323
|
form: {
|
|
11347
11324
|
content: { type: "reply", slugs: {} },
|
|
@@ -11376,7 +11353,7 @@ const ll = ({
|
|
|
11376
11353
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
11377
11354
|
((U = (q = S == null ? void 0 : S.data) == null ? void 0 : q.content) == null ? void 0 : U.text) || ""
|
|
11378
11355
|
);
|
|
11379
|
-
return /* @__PURE__ */ a.jsx(
|
|
11356
|
+
return /* @__PURE__ */ a.jsx(Ec, { children: /* @__PURE__ */ a.jsx(
|
|
11380
11357
|
ln,
|
|
11381
11358
|
{
|
|
11382
11359
|
content: {
|
|
@@ -11419,7 +11396,7 @@ const ll = ({
|
|
|
11419
11396
|
comments: {}
|
|
11420
11397
|
},
|
|
11421
11398
|
children: /* @__PURE__ */ a.jsx(
|
|
11422
|
-
|
|
11399
|
+
ll,
|
|
11423
11400
|
{
|
|
11424
11401
|
basePath: t,
|
|
11425
11402
|
parentId: e,
|
|
@@ -11449,7 +11426,7 @@ const ll = ({
|
|
|
11449
11426
|
)
|
|
11450
11427
|
] });
|
|
11451
11428
|
};
|
|
11452
|
-
function
|
|
11429
|
+
function dl({
|
|
11453
11430
|
mutationFn: t,
|
|
11454
11431
|
mutationHandlers: {
|
|
11455
11432
|
mutate: e,
|
|
@@ -11463,13 +11440,13 @@ function ul({
|
|
|
11463
11440
|
});
|
|
11464
11441
|
return r;
|
|
11465
11442
|
}
|
|
11466
|
-
function
|
|
11443
|
+
function fl({ queryFn: t, queryKey: e }) {
|
|
11467
11444
|
const {
|
|
11468
11445
|
data: n,
|
|
11469
11446
|
error: r,
|
|
11470
11447
|
isLoading: s,
|
|
11471
11448
|
isFetching: i
|
|
11472
|
-
} =
|
|
11449
|
+
} = Ns({
|
|
11473
11450
|
queryFn: t,
|
|
11474
11451
|
queryKey: e
|
|
11475
11452
|
});
|
|
@@ -11480,7 +11457,7 @@ function dl({ queryFn: t, queryKey: e }) {
|
|
|
11480
11457
|
isFetching: i
|
|
11481
11458
|
};
|
|
11482
11459
|
}
|
|
11483
|
-
function
|
|
11460
|
+
function ml({
|
|
11484
11461
|
queryFns: {
|
|
11485
11462
|
read: t,
|
|
11486
11463
|
edit: e,
|
|
@@ -11489,14 +11466,14 @@ function fl({
|
|
|
11489
11466
|
},
|
|
11490
11467
|
queryKey: s
|
|
11491
11468
|
}) {
|
|
11492
|
-
const i =
|
|
11469
|
+
const i = Qn(), o = ar(), c = { queryClient: i, queryKey: s }, d = {
|
|
11493
11470
|
mutationHandlers: {
|
|
11494
|
-
error:
|
|
11495
|
-
mutate:
|
|
11471
|
+
error: or(c),
|
|
11472
|
+
mutate: cr(c)
|
|
11496
11473
|
},
|
|
11497
11474
|
user: o,
|
|
11498
11475
|
...c
|
|
11499
|
-
}, l =
|
|
11476
|
+
}, l = dl({ ...d, mutationFn: e }), u = pl({ ...d, mutationFn: n }), m = hl({ ...d, mutationFn: r }), { activity: f, ...p } = fl({ queryKey: s, queryFn: t });
|
|
11500
11477
|
return {
|
|
11501
11478
|
activity: f,
|
|
11502
11479
|
mutations: {
|
|
@@ -11508,7 +11485,7 @@ function fl({
|
|
|
11508
11485
|
...p
|
|
11509
11486
|
};
|
|
11510
11487
|
}
|
|
11511
|
-
function
|
|
11488
|
+
function pl({
|
|
11512
11489
|
mutationFn: t,
|
|
11513
11490
|
mutationHandlers: {
|
|
11514
11491
|
mutate: e,
|
|
@@ -11527,7 +11504,7 @@ function ml({
|
|
|
11527
11504
|
});
|
|
11528
11505
|
return i;
|
|
11529
11506
|
}
|
|
11530
|
-
function
|
|
11507
|
+
function hl({
|
|
11531
11508
|
mutationFn: t,
|
|
11532
11509
|
mutationHandlers: {
|
|
11533
11510
|
mutate: e,
|
|
@@ -11537,12 +11514,12 @@ function pl({
|
|
|
11537
11514
|
}) {
|
|
11538
11515
|
const { mutate: s } = je({
|
|
11539
11516
|
mutationFn: t,
|
|
11540
|
-
onMutate: (i) => e((o) => (o &&
|
|
11517
|
+
onMutate: (i) => e((o) => (o && Ja({ activity: o, user: r }), o)),
|
|
11541
11518
|
onError: n
|
|
11542
11519
|
});
|
|
11543
11520
|
return s;
|
|
11544
11521
|
}
|
|
11545
|
-
const
|
|
11522
|
+
const yu = ({
|
|
11546
11523
|
basePath: t,
|
|
11547
11524
|
parentId: e,
|
|
11548
11525
|
activityId: n,
|
|
@@ -11560,7 +11537,7 @@ const bu = ({
|
|
|
11560
11537
|
error: f,
|
|
11561
11538
|
isLoading: p,
|
|
11562
11539
|
mutations: { edit: h, like: b, unlike: v }
|
|
11563
|
-
} =
|
|
11540
|
+
} = ml({
|
|
11564
11541
|
queryFns: i,
|
|
11565
11542
|
queryKey: [t, e, n]
|
|
11566
11543
|
});
|
|
@@ -11634,7 +11611,7 @@ const bu = ({
|
|
|
11634
11611
|
n
|
|
11635
11612
|
),
|
|
11636
11613
|
/* @__PURE__ */ a.jsx(
|
|
11637
|
-
|
|
11614
|
+
ul,
|
|
11638
11615
|
{
|
|
11639
11616
|
basePath: t,
|
|
11640
11617
|
parentId: e,
|
|
@@ -11648,7 +11625,7 @@ const bu = ({
|
|
|
11648
11625
|
}
|
|
11649
11626
|
)
|
|
11650
11627
|
] });
|
|
11651
|
-
},
|
|
11628
|
+
}, _u = ({
|
|
11652
11629
|
id: t,
|
|
11653
11630
|
data: { jobTitle: e, name: n, organization: r, thumbnail: s }
|
|
11654
11631
|
}) => ({
|
|
@@ -11657,7 +11634,7 @@ const bu = ({
|
|
|
11657
11634
|
jobTitle: e,
|
|
11658
11635
|
organization: r,
|
|
11659
11636
|
image: { thumbnail: s }
|
|
11660
|
-
}),
|
|
11637
|
+
}), ia = [
|
|
11661
11638
|
{
|
|
11662
11639
|
contentType: "solutionArticle",
|
|
11663
11640
|
banner: {
|
|
@@ -11701,27 +11678,27 @@ const bu = ({
|
|
|
11701
11678
|
contributors: ["community"]
|
|
11702
11679
|
}
|
|
11703
11680
|
];
|
|
11704
|
-
const It = "notFoundError_",
|
|
11681
|
+
const It = "notFoundError_", xu = () => {
|
|
11705
11682
|
const t = H(), e = [];
|
|
11706
|
-
return
|
|
11683
|
+
return ia.forEach((n, r) => {
|
|
11707
11684
|
n.title = t.formatMessage({ id: `${It}post_${r + 1}` }), e.push("solutionArticle");
|
|
11708
11685
|
}), /* @__PURE__ */ a.jsxs(
|
|
11709
|
-
|
|
11686
|
+
xc,
|
|
11710
11687
|
{
|
|
11711
11688
|
styling: { background: "bold", circle: "small", variant: "alt-2" },
|
|
11712
11689
|
additionalContent: {
|
|
11713
11690
|
appended: /* @__PURE__ */ a.jsxs(Ye, { children: [
|
|
11714
11691
|
/* @__PURE__ */ a.jsx(
|
|
11715
|
-
|
|
11692
|
+
sc,
|
|
11716
11693
|
{
|
|
11717
|
-
cards:
|
|
11694
|
+
cards: ia,
|
|
11718
11695
|
cardTypes: e,
|
|
11719
11696
|
buildCardData: (n) => new Promise((r, s) => {
|
|
11720
11697
|
r(n);
|
|
11721
11698
|
})
|
|
11722
11699
|
}
|
|
11723
11700
|
),
|
|
11724
|
-
/* @__PURE__ */ a.jsx(
|
|
11701
|
+
/* @__PURE__ */ a.jsx(ie, { href: "/solution-articles/", children: t.formatMessage({ id: `${It}cta` }) })
|
|
11725
11702
|
] })
|
|
11726
11703
|
},
|
|
11727
11704
|
reportError: () => {
|
|
@@ -11736,136 +11713,136 @@ const It = "notFoundError_", _u = () => {
|
|
|
11736
11713
|
};
|
|
11737
11714
|
export {
|
|
11738
11715
|
Le as ASSETS_BUCKET,
|
|
11739
|
-
|
|
11740
|
-
|
|
11741
|
-
|
|
11742
|
-
|
|
11743
|
-
|
|
11744
|
-
|
|
11745
|
-
|
|
11746
|
-
|
|
11716
|
+
vu as ActivitiesFeed,
|
|
11717
|
+
yu as ActivitySection,
|
|
11718
|
+
Ka as AddPost,
|
|
11719
|
+
Yl as Banner,
|
|
11720
|
+
Jl as BannerSection,
|
|
11721
|
+
su as Breadcrumbs,
|
|
11722
|
+
Al as Buckets,
|
|
11723
|
+
ie as Button,
|
|
11747
11724
|
kt as ButtonWrapper,
|
|
11748
11725
|
St as COURSE_CONTENT_TYPES,
|
|
11749
|
-
|
|
11750
|
-
|
|
11751
|
-
|
|
11752
|
-
|
|
11753
|
-
|
|
11754
|
-
|
|
11755
|
-
|
|
11756
|
-
|
|
11757
|
-
|
|
11758
|
-
|
|
11759
|
-
|
|
11760
|
-
|
|
11761
|
-
|
|
11762
|
-
|
|
11763
|
-
|
|
11764
|
-
|
|
11765
|
-
|
|
11766
|
-
|
|
11767
|
-
|
|
11768
|
-
|
|
11726
|
+
Go as CacheProvider,
|
|
11727
|
+
za as Card,
|
|
11728
|
+
sc as CardBlock,
|
|
11729
|
+
ru as Carousel,
|
|
11730
|
+
er as CollapsibleSection,
|
|
11731
|
+
vc as Columns,
|
|
11732
|
+
au as CommunityDetails,
|
|
11733
|
+
uu as ContactFooter,
|
|
11734
|
+
Di as ContactForm,
|
|
11735
|
+
li as ContentTypeLabel,
|
|
11736
|
+
Ta as Contributors,
|
|
11737
|
+
ir as ConversationContext,
|
|
11738
|
+
bc as CookieBanner,
|
|
11739
|
+
pu as CourseProgression,
|
|
11740
|
+
hu as CourseStructure,
|
|
11741
|
+
Xl as CustomContentBanner,
|
|
11742
|
+
Zl as Directory,
|
|
11743
|
+
Ec as DiscussionConversation,
|
|
11744
|
+
sr as DiscussionForm,
|
|
11745
|
+
Nc as DiscussionLikes,
|
|
11769
11746
|
ln as DiscussionPost,
|
|
11770
|
-
|
|
11747
|
+
Mc as DiscussionThread,
|
|
11771
11748
|
ze as Divider,
|
|
11772
|
-
|
|
11749
|
+
Kl as DownloadSection,
|
|
11773
11750
|
ft as EMAILS,
|
|
11774
|
-
|
|
11775
|
-
|
|
11751
|
+
Gl as EditSection,
|
|
11752
|
+
Ti as EmailHelperTextBox,
|
|
11776
11753
|
He as EmptyStateBox,
|
|
11777
|
-
|
|
11778
|
-
|
|
11779
|
-
|
|
11754
|
+
iu as Filters,
|
|
11755
|
+
Xo as FlagsProvider,
|
|
11756
|
+
Va as Footer,
|
|
11780
11757
|
an as Form,
|
|
11781
11758
|
Ye as FullWidthSection,
|
|
11782
|
-
|
|
11783
|
-
|
|
11784
|
-
|
|
11785
|
-
|
|
11786
|
-
|
|
11787
|
-
|
|
11759
|
+
nu as GlobalProviders,
|
|
11760
|
+
Ya as Header,
|
|
11761
|
+
ui as HelperTextBox,
|
|
11762
|
+
Jn as HiddenFromScreenReaders,
|
|
11763
|
+
di as HideShowTextBox,
|
|
11764
|
+
eu as HighlightSection,
|
|
11788
11765
|
Fe as HighlightedTextBox,
|
|
11789
|
-
|
|
11790
|
-
|
|
11791
|
-
|
|
11792
|
-
|
|
11793
|
-
|
|
11794
|
-
|
|
11795
|
-
|
|
11796
|
-
|
|
11797
|
-
|
|
11798
|
-
|
|
11766
|
+
Dl as IconBulletedList,
|
|
11767
|
+
Rl as ImageContainer,
|
|
11768
|
+
ec as IntlProvider,
|
|
11769
|
+
Ii as InviteForm,
|
|
11770
|
+
zl as InviteModal,
|
|
11771
|
+
Za as JoinButton,
|
|
11772
|
+
Ua as LanguageContext,
|
|
11773
|
+
ou as LanguageSwitcher,
|
|
11774
|
+
jc as LessonName,
|
|
11775
|
+
kc as LessonType,
|
|
11799
11776
|
at as Link,
|
|
11800
11777
|
on as LoadMore,
|
|
11801
|
-
|
|
11778
|
+
Il as LoadingBlock,
|
|
11802
11779
|
Se as LoadingPlaceholder,
|
|
11803
|
-
|
|
11804
|
-
|
|
11805
|
-
|
|
11806
|
-
|
|
11780
|
+
wa as LoadingState,
|
|
11781
|
+
Ha as Logo,
|
|
11782
|
+
Ql as LogoSection,
|
|
11783
|
+
gu as MarkCompleteButton,
|
|
11807
11784
|
xt as MarkdownText,
|
|
11808
|
-
|
|
11785
|
+
tu as MarketingBlock,
|
|
11809
11786
|
rn as Member,
|
|
11810
|
-
|
|
11811
|
-
|
|
11812
|
-
|
|
11813
|
-
|
|
11814
|
-
|
|
11815
|
-
|
|
11816
|
-
|
|
11787
|
+
mu as MembersList,
|
|
11788
|
+
qa as Modal,
|
|
11789
|
+
uc as MoreMenu,
|
|
11790
|
+
Ml as NUMBER_OF_COUNTRIES,
|
|
11791
|
+
Pl as NUMBER_OF_USERS,
|
|
11792
|
+
mc as NavigationMenu,
|
|
11793
|
+
xu as NotFoundError,
|
|
11817
11794
|
sn as Overlay,
|
|
11818
|
-
|
|
11819
|
-
|
|
11820
|
-
|
|
11821
|
-
|
|
11795
|
+
_i as PageHeading,
|
|
11796
|
+
xc as PageLayout,
|
|
11797
|
+
Wl as PasswordForm,
|
|
11798
|
+
Ai as PasswordRules,
|
|
11822
11799
|
ht as Pill,
|
|
11823
|
-
|
|
11800
|
+
ql as ProfileImageChange,
|
|
11824
11801
|
Ve as ProfilePicture,
|
|
11825
|
-
|
|
11826
|
-
|
|
11827
|
-
|
|
11828
|
-
|
|
11829
|
-
|
|
11802
|
+
_a as ProgressBar,
|
|
11803
|
+
Fl as ProgressTracker,
|
|
11804
|
+
Ll as Rating,
|
|
11805
|
+
ul as RepliesFeed,
|
|
11806
|
+
Pc as ResponsesHeading,
|
|
11830
11807
|
Tt as ResponsiveImage,
|
|
11831
|
-
|
|
11832
|
-
|
|
11833
|
-
|
|
11834
|
-
|
|
11835
|
-
|
|
11808
|
+
Ol as ReturnToNavButton,
|
|
11809
|
+
Li as SearchForm,
|
|
11810
|
+
cu as ShareLinks,
|
|
11811
|
+
Ul as SignupForm,
|
|
11812
|
+
Pr as Span,
|
|
11836
11813
|
Ut as StatusBanner,
|
|
11837
|
-
|
|
11838
|
-
|
|
11839
|
-
|
|
11840
|
-
|
|
11841
|
-
|
|
11842
|
-
|
|
11843
|
-
|
|
11844
|
-
|
|
11814
|
+
Vl as TableOfContents,
|
|
11815
|
+
lu as Tabs,
|
|
11816
|
+
fu as Tags,
|
|
11817
|
+
Hl as TestimonialBlock,
|
|
11818
|
+
rr as TimeToComplete,
|
|
11819
|
+
Bl as Toggle,
|
|
11820
|
+
Zo as Tooltip,
|
|
11821
|
+
du as TopLevelPage,
|
|
11845
11822
|
Ae as UserContext,
|
|
11846
|
-
|
|
11823
|
+
tc as UserProvider,
|
|
11847
11824
|
be as VisuallyHidden,
|
|
11848
|
-
|
|
11849
|
-
|
|
11850
|
-
|
|
11851
|
-
|
|
11825
|
+
Uo as addAriaProps,
|
|
11826
|
+
ha as basicReducer,
|
|
11827
|
+
Zs as camelCaseToDashCase,
|
|
11828
|
+
Xn as checkIntlPathExists,
|
|
11852
11829
|
yn as generateConditions,
|
|
11853
|
-
|
|
11854
|
-
|
|
11855
|
-
|
|
11856
|
-
|
|
11830
|
+
Ys as generateCssIcon,
|
|
11831
|
+
ba as getLongDate,
|
|
11832
|
+
ka as getMember,
|
|
11833
|
+
Ks as getShortDate,
|
|
11857
11834
|
Qt as headerData,
|
|
11858
|
-
|
|
11859
|
-
|
|
11860
|
-
|
|
11861
|
-
|
|
11835
|
+
_u as mapGetStreamData,
|
|
11836
|
+
ri as pageReady,
|
|
11837
|
+
kr as passwordValidator,
|
|
11838
|
+
bu as repliesFeedMock,
|
|
11862
11839
|
En as supportedLanguages,
|
|
11863
|
-
|
|
11864
|
-
|
|
11865
|
-
|
|
11840
|
+
Hs as toCamelCase,
|
|
11841
|
+
Vs as toSentenceCase,
|
|
11842
|
+
qs as useCurrentPath,
|
|
11866
11843
|
_t as useEffectAfterMount,
|
|
11867
11844
|
jt as useElementWidth,
|
|
11868
|
-
|
|
11869
|
-
|
|
11870
|
-
|
|
11845
|
+
Us as useScrollListener,
|
|
11846
|
+
zs as useScrollToHash,
|
|
11847
|
+
ar as useUser
|
|
11871
11848
|
};
|