@apolitical/component-library 8.7.1 → 8.7.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.js +19 -19
- package/index.mjs +182 -178
- package/package.json +1 -1
package/index.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as dn from "react";
|
|
2
2
|
import M, { memo as mr, useRef as Ue, useEffect as pe, useState as de, useMemo as Vn, createContext as sn, useContext as We, forwardRef as Dl, Children as th, useCallback as ft, lazy as Ks, useReducer as ra, Suspense as PE, Fragment as ol, useLayoutEffect as RE, Component as FE, isValidElement as ll, cloneElement as v0, createElement as Fr } from "react";
|
|
3
|
-
import { useIntl as
|
|
3
|
+
import { useIntl as ye, FormattedMessage as en, IntlProvider as s3, createIntl as o3 } from "react-intl";
|
|
4
4
|
import rc from "posthog-js";
|
|
5
5
|
import or from "lodash.clonedeep";
|
|
6
6
|
import l3 from "lodash.set";
|
|
@@ -138,25 +138,25 @@ function C3() {
|
|
|
138
138
|
function y(K) {
|
|
139
139
|
if (K === null || typeof K != "object")
|
|
140
140
|
return null;
|
|
141
|
-
var
|
|
142
|
-
return typeof
|
|
141
|
+
var Ee = g && K[g] || K[m];
|
|
142
|
+
return typeof Ee == "function" ? Ee : null;
|
|
143
143
|
}
|
|
144
144
|
var v = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
145
145
|
function E(K) {
|
|
146
146
|
{
|
|
147
|
-
for (var
|
|
147
|
+
for (var Ee = arguments.length, ke = new Array(Ee > 1 ? Ee - 1 : 0), qe = 1; qe < Ee; qe++)
|
|
148
148
|
ke[qe - 1] = arguments[qe];
|
|
149
149
|
b("error", K, ke);
|
|
150
150
|
}
|
|
151
151
|
}
|
|
152
|
-
function b(K,
|
|
152
|
+
function b(K, Ee, ke) {
|
|
153
153
|
{
|
|
154
154
|
var qe = v.ReactDebugCurrentFrame, vt = qe.getStackAddendum();
|
|
155
|
-
vt !== "" && (
|
|
155
|
+
vt !== "" && (Ee += "%s", ke = ke.concat([vt]));
|
|
156
156
|
var Nt = ke.map(function(dt) {
|
|
157
157
|
return String(dt);
|
|
158
158
|
});
|
|
159
|
-
Nt.unshift("Warning: " +
|
|
159
|
+
Nt.unshift("Warning: " + Ee), Function.prototype.apply.call(console[K], console, Nt);
|
|
160
160
|
}
|
|
161
161
|
}
|
|
162
162
|
var _ = !1, T = !1, C = !1, A = !1, R = !1, P;
|
|
@@ -168,11 +168,11 @@ function C3() {
|
|
|
168
168
|
// with.
|
|
169
169
|
K.$$typeof === P || K.getModuleId !== void 0));
|
|
170
170
|
}
|
|
171
|
-
function I(K,
|
|
171
|
+
function I(K, Ee, ke) {
|
|
172
172
|
var qe = K.displayName;
|
|
173
173
|
if (qe)
|
|
174
174
|
return qe;
|
|
175
|
-
var vt =
|
|
175
|
+
var vt = Ee.displayName || Ee.name || "";
|
|
176
176
|
return vt !== "" ? ke + "(" + vt + ")" : ke;
|
|
177
177
|
}
|
|
178
178
|
function N(K) {
|
|
@@ -202,8 +202,8 @@ function C3() {
|
|
|
202
202
|
if (typeof K == "object")
|
|
203
203
|
switch (K.$$typeof) {
|
|
204
204
|
case o:
|
|
205
|
-
var
|
|
206
|
-
return N(
|
|
205
|
+
var Ee = K;
|
|
206
|
+
return N(Ee) + ".Consumer";
|
|
207
207
|
case s:
|
|
208
208
|
var ke = K;
|
|
209
209
|
return N(ke._context) + ".Provider";
|
|
@@ -286,7 +286,7 @@ function C3() {
|
|
|
286
286
|
}
|
|
287
287
|
}
|
|
288
288
|
var U = v.ReactCurrentDispatcher, $;
|
|
289
|
-
function ae(K,
|
|
289
|
+
function ae(K, Ee, ke) {
|
|
290
290
|
{
|
|
291
291
|
if ($ === void 0)
|
|
292
292
|
try {
|
|
@@ -304,7 +304,7 @@ function C3() {
|
|
|
304
304
|
var se = typeof WeakMap == "function" ? WeakMap : Map;
|
|
305
305
|
te = new se();
|
|
306
306
|
}
|
|
307
|
-
function re(K,
|
|
307
|
+
function re(K, Ee) {
|
|
308
308
|
if (!K || Y)
|
|
309
309
|
return "";
|
|
310
310
|
{
|
|
@@ -319,7 +319,7 @@ function C3() {
|
|
|
319
319
|
var Nt;
|
|
320
320
|
Nt = U.current, U.current = null, j();
|
|
321
321
|
try {
|
|
322
|
-
if (
|
|
322
|
+
if (Ee) {
|
|
323
323
|
var dt = function() {
|
|
324
324
|
throw Error();
|
|
325
325
|
};
|
|
@@ -375,14 +375,14 @@ function C3() {
|
|
|
375
375
|
var Xa = K ? K.displayName || K.name : "", g0 = Xa ? ae(Xa) : "";
|
|
376
376
|
return typeof K == "function" && te.set(K, g0), g0;
|
|
377
377
|
}
|
|
378
|
-
function Ae(K,
|
|
378
|
+
function Ae(K, Ee, ke) {
|
|
379
379
|
return re(K, !1);
|
|
380
380
|
}
|
|
381
381
|
function Oe(K) {
|
|
382
|
-
var
|
|
383
|
-
return !!(
|
|
382
|
+
var Ee = K.prototype;
|
|
383
|
+
return !!(Ee && Ee.isReactComponent);
|
|
384
384
|
}
|
|
385
|
-
function Ce(K,
|
|
385
|
+
function Ce(K, Ee, ke) {
|
|
386
386
|
if (K == null)
|
|
387
387
|
return "";
|
|
388
388
|
if (typeof K == "function")
|
|
@@ -400,11 +400,11 @@ function C3() {
|
|
|
400
400
|
case l:
|
|
401
401
|
return Ae(K.render);
|
|
402
402
|
case d:
|
|
403
|
-
return Ce(K.type,
|
|
403
|
+
return Ce(K.type, Ee, ke);
|
|
404
404
|
case f: {
|
|
405
405
|
var qe = K, vt = qe._payload, Nt = qe._init;
|
|
406
406
|
try {
|
|
407
|
-
return Ce(Nt(vt),
|
|
407
|
+
return Ce(Nt(vt), Ee, ke);
|
|
408
408
|
} catch {
|
|
409
409
|
}
|
|
410
410
|
}
|
|
@@ -414,12 +414,12 @@ function C3() {
|
|
|
414
414
|
var ue = Object.prototype.hasOwnProperty, fe = {}, Se = v.ReactDebugCurrentFrame;
|
|
415
415
|
function Fe(K) {
|
|
416
416
|
if (K) {
|
|
417
|
-
var
|
|
417
|
+
var Ee = K._owner, ke = Ce(K.type, K._source, Ee ? Ee.type : null);
|
|
418
418
|
Se.setExtraStackFrame(ke);
|
|
419
419
|
} else
|
|
420
420
|
Se.setExtraStackFrame(null);
|
|
421
421
|
}
|
|
422
|
-
function nt(K,
|
|
422
|
+
function nt(K, Ee, ke, qe, vt) {
|
|
423
423
|
{
|
|
424
424
|
var Nt = Function.call.bind(ue);
|
|
425
425
|
for (var dt in K)
|
|
@@ -430,7 +430,7 @@ function C3() {
|
|
|
430
430
|
var vn = Error((qe || "React class") + ": " + ke + " type `" + dt + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof K[dt] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
|
|
431
431
|
throw vn.name = "Invariant Violation", vn;
|
|
432
432
|
}
|
|
433
|
-
st = K[dt](
|
|
433
|
+
st = K[dt](Ee, dt, qe, ke, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
|
|
434
434
|
} catch (Wt) {
|
|
435
435
|
st = Wt;
|
|
436
436
|
}
|
|
@@ -444,7 +444,7 @@ function C3() {
|
|
|
444
444
|
}
|
|
445
445
|
function rt(K) {
|
|
446
446
|
{
|
|
447
|
-
var
|
|
447
|
+
var Ee = typeof Symbol == "function" && Symbol.toStringTag, ke = Ee && K[Symbol.toStringTag] || K.constructor.name || "Object";
|
|
448
448
|
return ke;
|
|
449
449
|
}
|
|
450
450
|
}
|
|
@@ -471,30 +471,30 @@ function C3() {
|
|
|
471
471
|
ve = {};
|
|
472
472
|
function Ne(K) {
|
|
473
473
|
if (ue.call(K, "ref")) {
|
|
474
|
-
var
|
|
475
|
-
if (
|
|
474
|
+
var Ee = Object.getOwnPropertyDescriptor(K, "ref").get;
|
|
475
|
+
if (Ee && Ee.isReactWarning)
|
|
476
476
|
return !1;
|
|
477
477
|
}
|
|
478
478
|
return K.ref !== void 0;
|
|
479
479
|
}
|
|
480
480
|
function Tt(K) {
|
|
481
481
|
if (ue.call(K, "key")) {
|
|
482
|
-
var
|
|
483
|
-
if (
|
|
482
|
+
var Ee = Object.getOwnPropertyDescriptor(K, "key").get;
|
|
483
|
+
if (Ee && Ee.isReactWarning)
|
|
484
484
|
return !1;
|
|
485
485
|
}
|
|
486
486
|
return K.key !== void 0;
|
|
487
487
|
}
|
|
488
|
-
function Ge(K,
|
|
489
|
-
if (typeof K.ref == "string" && Pe.current &&
|
|
488
|
+
function Ge(K, Ee) {
|
|
489
|
+
if (typeof K.ref == "string" && Pe.current && Ee && Pe.current.stateNode !== Ee) {
|
|
490
490
|
var ke = S(Pe.current.type);
|
|
491
491
|
ve[ke] || (E('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', S(Pe.current.type), K.ref), ve[ke] = !0);
|
|
492
492
|
}
|
|
493
493
|
}
|
|
494
|
-
function gt(K,
|
|
494
|
+
function gt(K, Ee) {
|
|
495
495
|
{
|
|
496
496
|
var ke = function() {
|
|
497
|
-
Q || (Q = !0, E("%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)",
|
|
497
|
+
Q || (Q = !0, E("%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)", Ee));
|
|
498
498
|
};
|
|
499
499
|
ke.isReactWarning = !0, Object.defineProperty(K, "key", {
|
|
500
500
|
get: ke,
|
|
@@ -502,10 +502,10 @@ function C3() {
|
|
|
502
502
|
});
|
|
503
503
|
}
|
|
504
504
|
}
|
|
505
|
-
function qt(K,
|
|
505
|
+
function qt(K, Ee) {
|
|
506
506
|
{
|
|
507
507
|
var ke = function() {
|
|
508
|
-
xe || (xe = !0, E("%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)",
|
|
508
|
+
xe || (xe = !0, E("%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)", Ee));
|
|
509
509
|
};
|
|
510
510
|
ke.isReactWarning = !0, Object.defineProperty(K, "ref", {
|
|
511
511
|
get: ke,
|
|
@@ -513,13 +513,13 @@ function C3() {
|
|
|
513
513
|
});
|
|
514
514
|
}
|
|
515
515
|
}
|
|
516
|
-
var wt = function(K,
|
|
516
|
+
var wt = function(K, Ee, ke, qe, vt, Nt, dt) {
|
|
517
517
|
var st = {
|
|
518
518
|
// This tag allows us to uniquely identify this as a React Element
|
|
519
519
|
$$typeof: t,
|
|
520
520
|
// Built-in properties that belong on the element
|
|
521
521
|
type: K,
|
|
522
|
-
key:
|
|
522
|
+
key: Ee,
|
|
523
523
|
ref: ke,
|
|
524
524
|
props: dt,
|
|
525
525
|
// Record the component responsible for creating this element.
|
|
@@ -542,12 +542,12 @@ function C3() {
|
|
|
542
542
|
value: vt
|
|
543
543
|
}), Object.freeze && (Object.freeze(st.props), Object.freeze(st)), st;
|
|
544
544
|
};
|
|
545
|
-
function wn(K,
|
|
545
|
+
function wn(K, Ee, ke, qe, vt) {
|
|
546
546
|
{
|
|
547
547
|
var Nt, dt = {}, st = null, vn = null;
|
|
548
|
-
ke !== void 0 && (me(ke), st = "" + ke), Tt(
|
|
549
|
-
for (Nt in
|
|
550
|
-
ue.call(
|
|
548
|
+
ke !== void 0 && (me(ke), st = "" + ke), Tt(Ee) && (me(Ee.key), st = "" + Ee.key), Ne(Ee) && (vn = Ee.ref, Ge(Ee, vt));
|
|
549
|
+
for (Nt in Ee)
|
|
550
|
+
ue.call(Ee, Nt) && !ge.hasOwnProperty(Nt) && (dt[Nt] = Ee[Nt]);
|
|
551
551
|
if (K && K.defaultProps) {
|
|
552
552
|
var Wt = K.defaultProps;
|
|
553
553
|
for (Nt in Wt)
|
|
@@ -563,7 +563,7 @@ function C3() {
|
|
|
563
563
|
var At = v.ReactCurrentOwner, Rr = v.ReactDebugCurrentFrame;
|
|
564
564
|
function Qn(K) {
|
|
565
565
|
if (K) {
|
|
566
|
-
var
|
|
566
|
+
var Ee = K._owner, ke = Ce(K.type, K._source, Ee ? Ee.type : null);
|
|
567
567
|
Rr.setExtraStackFrame(ke);
|
|
568
568
|
} else
|
|
569
569
|
Rr.setExtraStackFrame(null);
|
|
@@ -588,10 +588,10 @@ Check the render method of \`` + K + "`.";
|
|
|
588
588
|
function XC(K) {
|
|
589
589
|
{
|
|
590
590
|
if (K !== void 0) {
|
|
591
|
-
var
|
|
591
|
+
var Ee = K.fileName.replace(/^.*[\\\/]/, ""), ke = K.lineNumber;
|
|
592
592
|
return `
|
|
593
593
|
|
|
594
|
-
Check your code at ` +
|
|
594
|
+
Check your code at ` + Ee + ":" + ke + ".";
|
|
595
595
|
}
|
|
596
596
|
return "";
|
|
597
597
|
}
|
|
@@ -599,22 +599,22 @@ Check your code at ` + ye + ":" + ke + ".";
|
|
|
599
599
|
var f0 = {};
|
|
600
600
|
function JC(K) {
|
|
601
601
|
{
|
|
602
|
-
var
|
|
603
|
-
if (!
|
|
602
|
+
var Ee = d0();
|
|
603
|
+
if (!Ee) {
|
|
604
604
|
var ke = typeof K == "string" ? K : K.displayName || K.name;
|
|
605
|
-
ke && (
|
|
605
|
+
ke && (Ee = `
|
|
606
606
|
|
|
607
607
|
Check the top-level render call using <` + ke + ">.");
|
|
608
608
|
}
|
|
609
|
-
return
|
|
609
|
+
return Ee;
|
|
610
610
|
}
|
|
611
611
|
}
|
|
612
|
-
function h0(K,
|
|
612
|
+
function h0(K, Ee) {
|
|
613
613
|
{
|
|
614
614
|
if (!K._store || K._store.validated || K.key != null)
|
|
615
615
|
return;
|
|
616
616
|
K._store.validated = !0;
|
|
617
|
-
var ke = JC(
|
|
617
|
+
var ke = JC(Ee);
|
|
618
618
|
if (f0[ke])
|
|
619
619
|
return;
|
|
620
620
|
f0[ke] = !0;
|
|
@@ -622,14 +622,14 @@ Check the top-level render call using <` + ke + ">.");
|
|
|
622
622
|
K && K._owner && K._owner !== At.current && (qe = " It was passed a child from " + S(K._owner.type) + "."), Qn(K), E('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', ke, qe), Qn(null);
|
|
623
623
|
}
|
|
624
624
|
}
|
|
625
|
-
function p0(K,
|
|
625
|
+
function p0(K, Ee) {
|
|
626
626
|
{
|
|
627
627
|
if (typeof K != "object")
|
|
628
628
|
return;
|
|
629
629
|
if (Ze(K))
|
|
630
630
|
for (var ke = 0; ke < K.length; ke++) {
|
|
631
631
|
var qe = K[ke];
|
|
632
|
-
U1(qe) && h0(qe,
|
|
632
|
+
U1(qe) && h0(qe, Ee);
|
|
633
633
|
}
|
|
634
634
|
else if (U1(K))
|
|
635
635
|
K._store && (K._store.validated = !0);
|
|
@@ -637,39 +637,39 @@ Check the top-level render call using <` + ke + ">.");
|
|
|
637
637
|
var vt = y(K);
|
|
638
638
|
if (typeof vt == "function" && vt !== K.entries)
|
|
639
639
|
for (var Nt = vt.call(K), dt; !(dt = Nt.next()).done; )
|
|
640
|
-
U1(dt.value) && h0(dt.value,
|
|
640
|
+
U1(dt.value) && h0(dt.value, Ee);
|
|
641
641
|
}
|
|
642
642
|
}
|
|
643
643
|
}
|
|
644
644
|
function e3(K) {
|
|
645
645
|
{
|
|
646
|
-
var
|
|
647
|
-
if (
|
|
646
|
+
var Ee = K.type;
|
|
647
|
+
if (Ee == null || typeof Ee == "string")
|
|
648
648
|
return;
|
|
649
649
|
var ke;
|
|
650
|
-
if (typeof
|
|
651
|
-
ke =
|
|
652
|
-
else if (typeof
|
|
650
|
+
if (typeof Ee == "function")
|
|
651
|
+
ke = Ee.propTypes;
|
|
652
|
+
else if (typeof Ee == "object" && (Ee.$$typeof === l || // Note: Memo only checks outer props here.
|
|
653
653
|
// Inner props are checked in the reconciler.
|
|
654
|
-
|
|
655
|
-
ke =
|
|
654
|
+
Ee.$$typeof === d))
|
|
655
|
+
ke = Ee.propTypes;
|
|
656
656
|
else
|
|
657
657
|
return;
|
|
658
658
|
if (ke) {
|
|
659
|
-
var qe = S(
|
|
659
|
+
var qe = S(Ee);
|
|
660
660
|
nt(ke, K.props, "prop", qe, K);
|
|
661
|
-
} else if (
|
|
661
|
+
} else if (Ee.PropTypes !== void 0 && !H1) {
|
|
662
662
|
H1 = !0;
|
|
663
|
-
var vt = S(
|
|
663
|
+
var vt = S(Ee);
|
|
664
664
|
E("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", vt || "Unknown");
|
|
665
665
|
}
|
|
666
|
-
typeof
|
|
666
|
+
typeof Ee.getDefaultProps == "function" && !Ee.getDefaultProps.isReactClassApproved && E("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
|
|
667
667
|
}
|
|
668
668
|
}
|
|
669
669
|
function t3(K) {
|
|
670
670
|
{
|
|
671
|
-
for (var
|
|
672
|
-
var qe =
|
|
671
|
+
for (var Ee = Object.keys(K.props), ke = 0; ke < Ee.length; ke++) {
|
|
672
|
+
var qe = Ee[ke];
|
|
673
673
|
if (qe !== "children" && qe !== "key") {
|
|
674
674
|
Qn(K), E("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", qe), Qn(null);
|
|
675
675
|
break;
|
|
@@ -678,7 +678,7 @@ Check the top-level render call using <` + ke + ">.");
|
|
|
678
678
|
K.ref !== null && (Qn(K), E("Invalid attribute `ref` supplied to `React.Fragment`."), Qn(null));
|
|
679
679
|
}
|
|
680
680
|
}
|
|
681
|
-
function m0(K,
|
|
681
|
+
function m0(K, Ee, ke, qe, vt, Nt) {
|
|
682
682
|
{
|
|
683
683
|
var dt = L(K);
|
|
684
684
|
if (!dt) {
|
|
@@ -689,11 +689,11 @@ Check the top-level render call using <` + ke + ">.");
|
|
|
689
689
|
var Wt;
|
|
690
690
|
K === null ? Wt = "null" : Ze(K) ? Wt = "array" : K !== void 0 && K.$$typeof === t ? (Wt = "<" + (S(K.type) || "Unknown") + " />", st = " Did you accidentally export a JSX literal instead of a component?") : Wt = typeof K, E("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", Wt, st);
|
|
691
691
|
}
|
|
692
|
-
var Gt = wn(K,
|
|
692
|
+
var Gt = wn(K, Ee, ke, vt, Nt);
|
|
693
693
|
if (Gt == null)
|
|
694
694
|
return Gt;
|
|
695
695
|
if (dt) {
|
|
696
|
-
var Xn =
|
|
696
|
+
var Xn = Ee.children;
|
|
697
697
|
if (Xn !== void 0)
|
|
698
698
|
if (qe)
|
|
699
699
|
if (Ze(Xn)) {
|
|
@@ -708,11 +708,11 @@ Check the top-level render call using <` + ke + ">.");
|
|
|
708
708
|
return K === r ? t3(Gt) : e3(Gt), Gt;
|
|
709
709
|
}
|
|
710
710
|
}
|
|
711
|
-
function n3(K,
|
|
712
|
-
return m0(K,
|
|
711
|
+
function n3(K, Ee, ke) {
|
|
712
|
+
return m0(K, Ee, ke, !0);
|
|
713
713
|
}
|
|
714
|
-
function r3(K,
|
|
715
|
-
return m0(K,
|
|
714
|
+
function r3(K, Ee, ke) {
|
|
715
|
+
return m0(K, Ee, ke, !1);
|
|
716
716
|
}
|
|
717
717
|
var i3 = r3, a3 = n3;
|
|
718
718
|
so.Fragment = r, so.jsx = i3, so.jsxs = a3;
|
|
@@ -952,7 +952,7 @@ const b0 = {}, I3 = Dl(
|
|
|
952
952
|
accessibility: l = {},
|
|
953
953
|
...u
|
|
954
954
|
}, c) => {
|
|
955
|
-
const d =
|
|
955
|
+
const d = ye(), [f] = de(e || Date.now().toString()), p = Ue(null), g = c || p, [m, y] = de(n ? "open" : "hidden"), { extraPadding: v = !0, hasPointer: E = !1, hasForm: b = !1 } = t, { onOpen: _ = () => {
|
|
956
956
|
}, onClose: T = () => {
|
|
957
957
|
} } = o, { readToScreenreadersWhenClosed: C = !1, ...A } = l, R = b0[f];
|
|
958
958
|
pe(() => {
|
|
@@ -2284,7 +2284,7 @@ const qie = ({
|
|
|
2284
2284
|
}) }) })
|
|
2285
2285
|
] });
|
|
2286
2286
|
const Wie = ({ elementId: e, offset: t = 20 }) => {
|
|
2287
|
-
const n =
|
|
2287
|
+
const n = ye(), r = () => {
|
|
2288
2288
|
const i = document.getElementById(e);
|
|
2289
2289
|
if (!i)
|
|
2290
2290
|
return;
|
|
@@ -2358,7 +2358,7 @@ const pp = ({
|
|
|
2358
2358
|
children: n,
|
|
2359
2359
|
shouldAnimate: r = !1
|
|
2360
2360
|
}) => {
|
|
2361
|
-
const i =
|
|
2361
|
+
const i = ye(), a = Ue(null);
|
|
2362
2362
|
return pe(() => {
|
|
2363
2363
|
let s;
|
|
2364
2364
|
return r && (s = new c7(a.current)), () => {
|
|
@@ -2402,7 +2402,7 @@ const k0 = {
|
|
|
2402
2402
|
customLabel: n,
|
|
2403
2403
|
className: r = ""
|
|
2404
2404
|
}) => {
|
|
2405
|
-
const i =
|
|
2405
|
+
const i = ye(), a = t ? { "--custom-icon": d7(t) } : {}, s = fp(`contentTypeLabel_${e}`) ? i.formatMessage({ id: `contentTypeLabel_${e}` }) : !1;
|
|
2406
2406
|
return !n && !s ? null : /* @__PURE__ */ h.jsx(
|
|
2407
2407
|
"small",
|
|
2408
2408
|
{
|
|
@@ -2513,7 +2513,7 @@ const p7 = ({
|
|
|
2513
2513
|
fadeStyle: s = "default",
|
|
2514
2514
|
children: o
|
|
2515
2515
|
}) => {
|
|
2516
|
-
const l =
|
|
2516
|
+
const l = ye(), u = Ue(null);
|
|
2517
2517
|
e || (e = Date.now().toString());
|
|
2518
2518
|
const [c, d] = de(""), [f, p] = de("closed");
|
|
2519
2519
|
pe(() => {
|
|
@@ -2592,7 +2592,7 @@ const Kie = ({
|
|
|
2592
2592
|
})
|
|
2593
2593
|
});
|
|
2594
2594
|
}, on = () => M.Fragment, m7 = ({ children: e }) => /* @__PURE__ */ h.jsx(ur, { variant: "secondary", children: e }), g7 = ({ children: e }) => typeof e == "object" && Object.keys(e || {}).length === 1 ? /* @__PURE__ */ h.jsx("p", { className: "center", children: e }) : /* @__PURE__ */ h.jsx("div", { className: "center", children: e }), v7 = ["span", "strong", "h1", "h2", "h3", "h4", "h5", "h6", "p"], y7 = ({ children: e }) => {
|
|
2595
|
-
const t =
|
|
2595
|
+
const t = ye();
|
|
2596
2596
|
if (!e)
|
|
2597
2597
|
return null;
|
|
2598
2598
|
let n = t.formatMessage({
|
|
@@ -2750,7 +2750,7 @@ const S7 = ({ children: e, user: t, updateDetails: n }) => /* @__PURE__ */ h.jsx
|
|
|
2750
2750
|
}
|
|
2751
2751
|
) });
|
|
2752
2752
|
}, O7 = (e) => {
|
|
2753
|
-
const t =
|
|
2753
|
+
const t = ye(), n = Date.now().toString(), r = We(zt);
|
|
2754
2754
|
let i = "default", a = e.src;
|
|
2755
2755
|
a.includes("youtube") || a.includes("vimeo") ? i = "video" : a.includes("riddle") || a.includes("sli.do") ? i = "poll" : a.includes("padlet") ? i = "padlet" : a.includes("surveysparrow") && (i = "survey", r != null && r.id && (a = `${a}&user_id=${r.id}`));
|
|
2756
2756
|
const s = `content-after-iframe-${n}`;
|
|
@@ -2789,7 +2789,7 @@ const S7 = ({ children: e, user: t, updateDetails: n }) => /* @__PURE__ */ h.jsx
|
|
|
2789
2789
|
children: e,
|
|
2790
2790
|
...t
|
|
2791
2791
|
}) => {
|
|
2792
|
-
const n =
|
|
2792
|
+
const n = ye();
|
|
2793
2793
|
let r = { ...t };
|
|
2794
2794
|
t.href && (t.href.includes("http:") || t.href.includes("https:")) && !t.target && (r.target = "_blank");
|
|
2795
2795
|
let i = e, a = !1;
|
|
@@ -2958,7 +2958,7 @@ const hl = ({
|
|
|
2958
2958
|
"speech-bubble": "speech-bubble_round"
|
|
2959
2959
|
};
|
|
2960
2960
|
const F7 = (e) => e.toLowerCase().replace(/\s+/g, "-"), B7 = ({ slug: e }) => {
|
|
2961
|
-
const t =
|
|
2961
|
+
const t = ye(), n = "badgeName", { badges: r } = b7(), i = r == null ? void 0 : r.find((d) => d.slug === e);
|
|
2962
2962
|
if (!i)
|
|
2963
2963
|
return null;
|
|
2964
2964
|
const { name: a, icon: s, colour: o, description: l } = i, u = F7(a), c = t.formatMessage({
|
|
@@ -2997,7 +2997,7 @@ const { In: L7, Out: N0 } = i4, { Pending: W1, Accepted: I0, Cancelled: $7, Remo
|
|
|
2997
2997
|
meta: { topLevelButton: r = !1 } = {},
|
|
2998
2998
|
...i
|
|
2999
2999
|
}) => {
|
|
3000
|
-
const { formatMessage: a } =
|
|
3000
|
+
const { formatMessage: a } = ye(), { status: s, direction: o } = t, { onAccept: l, onCancel: u, onRemove: c, onRequest: d } = e, [f, p] = de(!1), [g, m] = de(s), [y, v] = de(o);
|
|
3001
3001
|
pe(() => {
|
|
3002
3002
|
m(s), v(o);
|
|
3003
3003
|
}, [s, o]);
|
|
@@ -3090,7 +3090,7 @@ const U7 = ({
|
|
|
3090
3090
|
text: n = !1,
|
|
3091
3091
|
className: r = ""
|
|
3092
3092
|
}) => {
|
|
3093
|
-
const i =
|
|
3093
|
+
const i = ye(), {
|
|
3094
3094
|
showText: a = !1,
|
|
3095
3095
|
layout: s = "bar",
|
|
3096
3096
|
size: o = "default",
|
|
@@ -3116,7 +3116,7 @@ const V1 = "loadingBlock_", z7 = ({
|
|
|
3116
3116
|
steps: t = !1,
|
|
3117
3117
|
className: n = ""
|
|
3118
3118
|
}) => {
|
|
3119
|
-
const r =
|
|
3119
|
+
const r = ye();
|
|
3120
3120
|
t || (t = {
|
|
3121
3121
|
0: { text: r.formatMessage({ id: `${V1}loading` }) },
|
|
3122
3122
|
75: { text: r.formatMessage({ id: `${V1}almostDone` }) },
|
|
@@ -3302,7 +3302,7 @@ const ea = ({
|
|
|
3302
3302
|
...d
|
|
3303
3303
|
}) => {
|
|
3304
3304
|
var q, O, J, X, k, w;
|
|
3305
|
-
const f =
|
|
3305
|
+
const f = ye(), { profile: p, connections: g, ...m } = a, {
|
|
3306
3306
|
size: y = "medium",
|
|
3307
3307
|
variant: v = "inline",
|
|
3308
3308
|
isCondensed: E = !0,
|
|
@@ -3475,7 +3475,7 @@ const R0 = {
|
|
|
3475
3475
|
className: u = "",
|
|
3476
3476
|
...c
|
|
3477
3477
|
}) => {
|
|
3478
|
-
const d =
|
|
3478
|
+
const d = ye();
|
|
3479
3479
|
return !n || n.length === 0 ? null : M.createElement(e, {
|
|
3480
3480
|
...c,
|
|
3481
3481
|
className: ee("contributors", u, i, { "has-gap": a }),
|
|
@@ -5187,7 +5187,7 @@ const aa = ({
|
|
|
5187
5187
|
className: c = "",
|
|
5188
5188
|
gtmContext: d = "Modal"
|
|
5189
5189
|
}) => {
|
|
5190
|
-
const f =
|
|
5190
|
+
const f = ye(), { registerOverlay: p, unregisterOverlay: g } = k7(), [m, y] = de(t), [v, E] = de(null), b = Ue(null), _ = (P) => {
|
|
5191
5191
|
m && P.key === "Escape" && A(!1);
|
|
5192
5192
|
}, T = (P) => {
|
|
5193
5193
|
E(P.target);
|
|
@@ -5280,7 +5280,7 @@ const Mi = "joinCommunityButton", T4 = ({
|
|
|
5280
5280
|
}, leave: () => {
|
|
5281
5281
|
} }
|
|
5282
5282
|
}) => {
|
|
5283
|
-
const s =
|
|
5283
|
+
const s = ye(), o = We(zt), l = o && typeof o.id == "string", u = r || !l, [c, d] = de(e), [f, p] = de(e ? "joined" : "notJoined"), [g, m] = de(!1), y = Ue(null);
|
|
5284
5284
|
return pe(() => {
|
|
5285
5285
|
f === "joining" ? p("joined") : f === "leaving" && p("notJoined");
|
|
5286
5286
|
}, [c]), pe(() => {
|
|
@@ -5371,7 +5371,7 @@ const J1 = "communityDetails_", Yie = ({
|
|
|
5371
5371
|
members: { number: i = 0, data: a = [] } = { number: 0, data: [] },
|
|
5372
5372
|
functions: { invite: s, ...o }
|
|
5373
5373
|
}) => {
|
|
5374
|
-
const l =
|
|
5374
|
+
const l = ye(), { id: u } = We(zt), c = u, d = 5, f = i || a.length, p = a.length ? a : Array(d).fill({}), g = `/communities/${r}/members` === window.location.pathname, m = t || n, y = !n && !t;
|
|
5375
5375
|
return /* @__PURE__ */ h.jsxs("div", { className: ee("community-details", e), children: [
|
|
5376
5376
|
m ? /* @__PURE__ */ h.jsxs("div", { className: "member-details", children: [
|
|
5377
5377
|
/* @__PURE__ */ h.jsxs("div", { className: "top", children: [
|
|
@@ -6154,7 +6154,7 @@ const m6 = ({
|
|
|
6154
6154
|
listLikes: f = async () => ({ next: "", results: [] })
|
|
6155
6155
|
}
|
|
6156
6156
|
}) => {
|
|
6157
|
-
const p =
|
|
6157
|
+
const p = ye(), g = {
|
|
6158
6158
|
numberOfLikes: t,
|
|
6159
6159
|
userLikedContent: i,
|
|
6160
6160
|
ignoreInteractions: !1,
|
|
@@ -6674,7 +6674,7 @@ const S6 = [
|
|
|
6674
6674
|
profile: d,
|
|
6675
6675
|
locale: f = Bs
|
|
6676
6676
|
}) => {
|
|
6677
|
-
const p =
|
|
6677
|
+
const p = ye(), [g, m] = de([
|
|
6678
6678
|
{
|
|
6679
6679
|
id: "recent_with_pin",
|
|
6680
6680
|
text: "recent",
|
|
@@ -8013,7 +8013,7 @@ const O4 = ({
|
|
|
8013
8013
|
valueLength: n,
|
|
8014
8014
|
...r
|
|
8015
8015
|
}) => {
|
|
8016
|
-
const i =
|
|
8016
|
+
const i = ye(), a = "form_fieldWrapper_characterLimit";
|
|
8017
8017
|
if (t === 0)
|
|
8018
8018
|
return null;
|
|
8019
8019
|
const s = t - n, o = Math.abs(n - t), l = n >= 0.99 * t, u = n >= 0.9 * t && n < 0.99 * t, c = n > t;
|
|
@@ -8060,7 +8060,7 @@ const nu = "emailHelperTextBox_", D6 = ({
|
|
|
8060
8060
|
redirectPath: r,
|
|
8061
8061
|
resendVerificationCode: i
|
|
8062
8062
|
}) => {
|
|
8063
|
-
const a =
|
|
8063
|
+
const a = ye(), [s, o] = de({
|
|
8064
8064
|
path: `${nu}default`,
|
|
8065
8065
|
type: "default",
|
|
8066
8066
|
link: {},
|
|
@@ -8265,7 +8265,7 @@ const Ja = {
|
|
|
8265
8265
|
predictions: [],
|
|
8266
8266
|
activePredictionIndex: -1,
|
|
8267
8267
|
isPredictionSelected: !!n
|
|
8268
|
-
}), { formatMessage: y } =
|
|
8268
|
+
}), { formatMessage: y } = ye();
|
|
8269
8269
|
r || (r = y({ id: "inputAutocomplete_placeholder" })), pe(() => {
|
|
8270
8270
|
const _ = setTimeout(() => {
|
|
8271
8271
|
g || d((T) => ({ ...T, debouncedInput: l }));
|
|
@@ -8374,7 +8374,7 @@ const N4 = ({
|
|
|
8374
8374
|
accessibilityOptions: { checkboxes: { navigateWithArrowKeys: d = !1 } = {} } = {},
|
|
8375
8375
|
...f
|
|
8376
8376
|
}) => {
|
|
8377
|
-
const p =
|
|
8377
|
+
const p = ye(), { onChange: g, ...m } = r, y = () => {
|
|
8378
8378
|
t || g(c ? null : l);
|
|
8379
8379
|
}, v = /* @__PURE__ */ h.jsxs(h.Fragment, { children: [
|
|
8380
8380
|
/* @__PURE__ */ h.jsx(
|
|
@@ -8476,7 +8476,7 @@ const P6 = ({
|
|
|
8476
8476
|
multiSelectOptions: l,
|
|
8477
8477
|
id: u
|
|
8478
8478
|
}) => {
|
|
8479
|
-
const c =
|
|
8479
|
+
const c = ye(), [d, f] = de(!1), p = r || n, g = Array.isArray(p) ? [...p] : p ? [p] : [], [m, y] = de(g);
|
|
8480
8480
|
let v;
|
|
8481
8481
|
Array.isArray(m) && m.length === 1 && typeof m[0] == "string" ? v = t && m ? t.find((A) => A.id === m[0]) : t ? t[0] : { id: "", label: "" } : Array.isArray(m) && m.length === 1 && typeof m[0] != "string" ? v = m[0] : v = { id: "", label: "" }, pe(() => {
|
|
8482
8482
|
y(g);
|
|
@@ -8660,7 +8660,7 @@ const R6 = ({
|
|
|
8660
8660
|
type: c,
|
|
8661
8661
|
...d
|
|
8662
8662
|
}) => {
|
|
8663
|
-
const f =
|
|
8663
|
+
const f = ye(), {
|
|
8664
8664
|
showCount: p = !1,
|
|
8665
8665
|
label: g,
|
|
8666
8666
|
defaultInputs: m = 1,
|
|
@@ -8861,7 +8861,7 @@ const ag = ({
|
|
|
8861
8861
|
multipleOptions: p,
|
|
8862
8862
|
...g
|
|
8863
8863
|
}) => {
|
|
8864
|
-
const m =
|
|
8864
|
+
const m = ye(), y = a ? c : [], v = c;
|
|
8865
8865
|
return /* @__PURE__ */ h.jsx(
|
|
8866
8866
|
"ul",
|
|
8867
8867
|
{
|
|
@@ -8926,7 +8926,7 @@ const F6 = ({
|
|
|
8926
8926
|
autoComplete: r = "on",
|
|
8927
8927
|
...i
|
|
8928
8928
|
}) => {
|
|
8929
|
-
const a =
|
|
8929
|
+
const a = ye(), s = Ue(), o = e || s, [l, u] = de(!1), [c, d] = de(t), f = () => {
|
|
8930
8930
|
var p;
|
|
8931
8931
|
u(!l), d(l ? "password" : "text"), (p = o.current) == null || p.focus();
|
|
8932
8932
|
};
|
|
@@ -8974,7 +8974,7 @@ const es = {
|
|
|
8974
8974
|
"multiple-inputs": { component: /* @__PURE__ */ h.jsx(h.Fragment, {}) }
|
|
8975
8975
|
// Multiple inputs is a special case which is handled separately to the rest of the inputs, as it calls this file again. We never call the `component`, it's set here to avoid casing errors.
|
|
8976
8976
|
}, I4 = (e) => {
|
|
8977
|
-
const t =
|
|
8977
|
+
const t = ye(), {
|
|
8978
8978
|
id: n,
|
|
8979
8979
|
intlPath: r = !1,
|
|
8980
8980
|
className: i = "",
|
|
@@ -9238,7 +9238,7 @@ const ti = ({
|
|
|
9238
9238
|
},
|
|
9239
9239
|
onFailure: S = () => {
|
|
9240
9240
|
}
|
|
9241
|
-
} = d || {}, F =
|
|
9241
|
+
} = d || {}, F = ye(), H = {};
|
|
9242
9242
|
t.length && t.forEach((Y) => {
|
|
9243
9243
|
const te = Y.id || Y.name;
|
|
9244
9244
|
te && (H[te] = Y.value || "");
|
|
@@ -9439,7 +9439,7 @@ const ru = "passwordRules_", P4 = "isMoreThanEightCharacters", R4 = "includesNum
|
|
|
9439
9439
|
},
|
|
9440
9440
|
className: t = ""
|
|
9441
9441
|
}) => {
|
|
9442
|
-
const n =
|
|
9442
|
+
const n = ye();
|
|
9443
9443
|
return /* @__PURE__ */ h.jsxs("aside", { className: ee("password-rules", t), children: [
|
|
9444
9444
|
/* @__PURE__ */ h.jsx("small", { children: n.formatMessage({ id: `${ru}intro` }) }),
|
|
9445
9445
|
/* @__PURE__ */ h.jsx("ul", { children: [P4, R4, F4].map(
|
|
@@ -9477,7 +9477,7 @@ const Jie = ({
|
|
|
9477
9477
|
className: a = "",
|
|
9478
9478
|
hasLoaded: s = !1
|
|
9479
9479
|
}) => {
|
|
9480
|
-
const o =
|
|
9480
|
+
const o = ye(), [l, u] = de({
|
|
9481
9481
|
setUp: !1,
|
|
9482
9482
|
id: null,
|
|
9483
9483
|
rating: null,
|
|
@@ -21955,7 +21955,7 @@ const fP = ({
|
|
|
21955
21955
|
onFallbackClick: e = () => {
|
|
21956
21956
|
}
|
|
21957
21957
|
}) => {
|
|
21958
|
-
const t =
|
|
21958
|
+
const t = ye(), n = qa(), { dispatch: r, isInOverlay: i, mentionPopover: a, id: s, onMention: o } = We(Di), { show: l, selectedUser: u, possibleUsers: c } = a, d = kb(n, "mention-popover", `toolbar-${s}`);
|
|
21959
21959
|
if (!l)
|
|
21960
21960
|
return /* @__PURE__ */ h.jsx(h.Fragment, {});
|
|
21961
21961
|
const f = Vb(i);
|
|
@@ -22052,7 +22052,7 @@ const Nh = ({ formID: e, label: t, showLabel: n }) => {
|
|
|
22052
22052
|
"aria-pressed": s,
|
|
22053
22053
|
...o
|
|
22054
22054
|
}) => {
|
|
22055
|
-
const l =
|
|
22055
|
+
const l = ye(), u = qa(), { id: c, dispatch: d } = We(Di), {
|
|
22056
22056
|
tabbableOption: f,
|
|
22057
22057
|
setFocus: p,
|
|
22058
22058
|
openTooltip: g,
|
|
@@ -22266,7 +22266,7 @@ const Nh = ({ formID: e, label: t, showLabel: n }) => {
|
|
|
22266
22266
|
};
|
|
22267
22267
|
let Ad = null;
|
|
22268
22268
|
const gP = () => {
|
|
22269
|
-
const e =
|
|
22269
|
+
const e = ye(), t = "richTextEditor_link_", {
|
|
22270
22270
|
id: n,
|
|
22271
22271
|
isInOverlay: r,
|
|
22272
22272
|
enrichedUrl: i,
|
|
@@ -22464,7 +22464,7 @@ const TP = ({
|
|
|
22464
22464
|
styling: e = { showHeadingOption: !1 },
|
|
22465
22465
|
...t
|
|
22466
22466
|
}) => {
|
|
22467
|
-
const n =
|
|
22467
|
+
const n = ye(), { id: r } = We(Di), i = {
|
|
22468
22468
|
tabbableOption: hu[0],
|
|
22469
22469
|
openTooltip: null
|
|
22470
22470
|
}, [a, s] = ra(Ol, i), o = (l) => {
|
|
@@ -23338,7 +23338,7 @@ const sT = ({
|
|
|
23338
23338
|
styling: l,
|
|
23339
23339
|
...u
|
|
23340
23340
|
}) => {
|
|
23341
|
-
const c =
|
|
23341
|
+
const c = ye(), d = H3();
|
|
23342
23342
|
typeof s > "u" && (s = !0);
|
|
23343
23343
|
const { isInOverlay: f = !1 } = i || {}, {
|
|
23344
23344
|
listMembers: p,
|
|
@@ -23772,7 +23772,7 @@ function lR({
|
|
|
23772
23772
|
button: a,
|
|
23773
23773
|
callback: s
|
|
23774
23774
|
}) {
|
|
23775
|
-
const o =
|
|
23775
|
+
const o = ye(), l = "profileImageChange_", [u, c] = de(r), [d, f] = de(!1), [p, g] = de(!1), m = Ue(null), y = async (_) => {
|
|
23776
23776
|
f(!0), g(!1);
|
|
23777
23777
|
try {
|
|
23778
23778
|
const T = _.target.files && _.target.files[0];
|
|
@@ -23884,7 +23884,7 @@ const uR = ({
|
|
|
23884
23884
|
);
|
|
23885
23885
|
};
|
|
23886
23886
|
const cR = ({ emails: e, setEmails: t, setIsDisabled: n }) => {
|
|
23887
|
-
const { formatMessage: r } =
|
|
23887
|
+
const { formatMessage: r } = ye();
|
|
23888
23888
|
return /* @__PURE__ */ h.jsx(
|
|
23889
23889
|
y3,
|
|
23890
23890
|
{
|
|
@@ -23930,7 +23930,7 @@ const cR = ({ emails: e, setEmails: t, setIsDisabled: n }) => {
|
|
|
23930
23930
|
secondaryActionButton: f,
|
|
23931
23931
|
meta: p
|
|
23932
23932
|
}) => {
|
|
23933
|
-
const [g, m] = de([]), [y, v] = de(!0), [E, b] = de(c), { formatMessage: _ } =
|
|
23933
|
+
const [g, m] = de([]), [y, v] = de(!0), [E, b] = de(c), { formatMessage: _ } = ye(), T = async (R) => {
|
|
23934
23934
|
try {
|
|
23935
23935
|
await u(g, R.message), m([]), b(
|
|
23936
23936
|
"SUCCESS"
|
|
@@ -24010,7 +24010,7 @@ const Jn = {
|
|
|
24010
24010
|
CONFIRMED_PASSWORD: "confirmedPassword",
|
|
24011
24011
|
CURRENT_PASSWORD: "oldPassword"
|
|
24012
24012
|
}, nae = ({ functions: e, ...t }) => {
|
|
24013
|
-
const { formatMessage: n } =
|
|
24013
|
+
const { formatMessage: n } = ye(), [r, i] = de(null), [a, s] = de(!1), [o, l] = de({
|
|
24014
24014
|
isMoreThanEightCharacters: !1,
|
|
24015
24015
|
includesNumberAndSymbol: !1,
|
|
24016
24016
|
includesLowerAndUppercase: !1
|
|
@@ -24083,7 +24083,7 @@ const fR = ({
|
|
|
24083
24083
|
...a
|
|
24084
24084
|
}) => {
|
|
24085
24085
|
var R;
|
|
24086
|
-
const s =
|
|
24086
|
+
const s = ye(), o = "profileForm_", l = We(zt), [u, c] = de(l.image), [d, f] = de(!1), {
|
|
24087
24087
|
uploadImage: p = () => {
|
|
24088
24088
|
},
|
|
24089
24089
|
onSuccess: g = async (P) => {
|
|
@@ -24214,7 +24214,7 @@ const fR = ({
|
|
|
24214
24214
|
}
|
|
24215
24215
|
);
|
|
24216
24216
|
}, hR = () => {
|
|
24217
|
-
const e =
|
|
24217
|
+
const e = ye(), [t, n] = de(0);
|
|
24218
24218
|
return pe(() => {
|
|
24219
24219
|
const r = setInterval(() => {
|
|
24220
24220
|
n((i) => {
|
|
@@ -24284,7 +24284,7 @@ const Vt = "publishArticleForm_", r9 = {}, i9 = 10, rae = ({
|
|
|
24284
24284
|
isEditMode: s = !1
|
|
24285
24285
|
}) => {
|
|
24286
24286
|
var I;
|
|
24287
|
-
const o =
|
|
24287
|
+
const o = ye(), l = We(zt), { create: u, edit: c, onSuccess: d = () => {
|
|
24288
24288
|
}, onFailure: f = () => {
|
|
24289
24289
|
} } = r || {}, { isInOverlay: p = !1 } = i || {}, [g, m] = de(!1), [y, v] = de(t.body || ""), [E, b] = de(!1), [_, T] = de("");
|
|
24290
24290
|
pe(() => {
|
|
@@ -24483,7 +24483,7 @@ const mR = ({
|
|
|
24483
24483
|
gtmContext: i = "search-bar",
|
|
24484
24484
|
gtmEvent: a = "form-submission"
|
|
24485
24485
|
}) => {
|
|
24486
|
-
const { searchIsOpen: s = !0, isDesktopVersion: o = !1 } = n || {}, l =
|
|
24486
|
+
const { searchIsOpen: s = !0, isDesktopVersion: o = !1 } = n || {}, l = ye(), u = Ue(null);
|
|
24487
24487
|
cl(() => {
|
|
24488
24488
|
!n || o || !s || u.current && u.current.focus();
|
|
24489
24489
|
}, [s]);
|
|
@@ -24822,7 +24822,7 @@ const bR = {
|
|
|
24822
24822
|
dataToSubmit: s = { ref: "sign-up-form" },
|
|
24823
24823
|
...o
|
|
24824
24824
|
}) => {
|
|
24825
|
-
const l =
|
|
24825
|
+
const l = ye(), u = window.location.pathname.includes("/signup") ? "/login" : `/login?returnTo=${window.location.pathname + window.location.search}`, {
|
|
24826
24826
|
title: c = !0,
|
|
24827
24827
|
expectation: d = !1,
|
|
24828
24828
|
url: f = !0,
|
|
@@ -24956,7 +24956,7 @@ function TR({
|
|
|
24956
24956
|
join: i,
|
|
24957
24957
|
meta: a
|
|
24958
24958
|
}) {
|
|
24959
|
-
const s =
|
|
24959
|
+
const s = ye();
|
|
24960
24960
|
return /* @__PURE__ */ h.jsx(
|
|
24961
24961
|
YC,
|
|
24962
24962
|
{
|
|
@@ -24989,7 +24989,7 @@ function _R({
|
|
|
24989
24989
|
setFocusReplyIndex: n,
|
|
24990
24990
|
totalReplies: r
|
|
24991
24991
|
}) {
|
|
24992
|
-
const i =
|
|
24992
|
+
const i = ye(), a = () => {
|
|
24993
24993
|
n(r), t();
|
|
24994
24994
|
};
|
|
24995
24995
|
return /* @__PURE__ */ h.jsx(
|
|
@@ -25203,7 +25203,7 @@ const IR = ({
|
|
|
25203
25203
|
functions: { reactions: a, form: s, likes: o },
|
|
25204
25204
|
type: l = Kt.Communities
|
|
25205
25205
|
}) => {
|
|
25206
|
-
const u =
|
|
25206
|
+
const u = ye(), c = 3, {
|
|
25207
25207
|
replies: d,
|
|
25208
25208
|
fetchNextPage: f,
|
|
25209
25209
|
hasNextPage: p,
|
|
@@ -25449,7 +25449,7 @@ const pu = "ALL", RR = ({
|
|
|
25449
25449
|
type: f = Kt.Communities,
|
|
25450
25450
|
repliesFilters: p
|
|
25451
25451
|
}) => {
|
|
25452
|
-
const g =
|
|
25452
|
+
const g = ye(), m = We(zt), {
|
|
25453
25453
|
fetchNextPage: y,
|
|
25454
25454
|
hasNextPage: v,
|
|
25455
25455
|
isLoading: E,
|
|
@@ -25645,7 +25645,7 @@ const LR = ({
|
|
|
25645
25645
|
className: i,
|
|
25646
25646
|
...a
|
|
25647
25647
|
}) => {
|
|
25648
|
-
const s =
|
|
25648
|
+
const s = ye();
|
|
25649
25649
|
return /* @__PURE__ */ h.jsx(
|
|
25650
25650
|
aa,
|
|
25651
25651
|
{
|
|
@@ -25741,7 +25741,7 @@ const jR = 3e3, HR = ({
|
|
|
25741
25741
|
url: e,
|
|
25742
25742
|
gtm: t = { context: "ShareLink", event: "copy-link-click" }
|
|
25743
25743
|
}) => {
|
|
25744
|
-
const n =
|
|
25744
|
+
const n = ye(), r = "discussion_share_copy_link", [i, a] = de({
|
|
25745
25745
|
isOpen: !1,
|
|
25746
25746
|
isCopied: !1
|
|
25747
25747
|
});
|
|
@@ -25802,7 +25802,7 @@ const ha = "discussion_", UR = ({
|
|
|
25802
25802
|
shareLink: o,
|
|
25803
25803
|
moreMenu: l
|
|
25804
25804
|
}) => {
|
|
25805
|
-
const u =
|
|
25805
|
+
const u = ye(), c = [];
|
|
25806
25806
|
return l && l.reportData && c.push({
|
|
25807
25807
|
text: u.formatMessage({ id: `${ha}moreMenu_report` }),
|
|
25808
25808
|
onClick: (d) => {
|
|
@@ -25914,7 +25914,7 @@ const ha = "discussion_", UR = ({
|
|
|
25914
25914
|
);
|
|
25915
25915
|
};
|
|
25916
25916
|
const sae = ({ breadcrumbs: e, cutoff: t = 20, className: n = "" }) => {
|
|
25917
|
-
const r =
|
|
25917
|
+
const r = ye();
|
|
25918
25918
|
return /* @__PURE__ */ h.jsxs(h.Fragment, { children: [
|
|
25919
25919
|
/* @__PURE__ */ h.jsx(
|
|
25920
25920
|
ht,
|
|
@@ -25999,7 +25999,7 @@ const zR = ({
|
|
|
25999
25999
|
styling: o,
|
|
26000
26000
|
gtm: l
|
|
26001
26001
|
}) => {
|
|
26002
|
-
const u =
|
|
26002
|
+
const u = ye(), { muted: c, large: d } = o || {}, f = n ? [
|
|
26003
26003
|
{
|
|
26004
26004
|
id: "all",
|
|
26005
26005
|
text: typeof n != "boolean" && n.text || u.formatMessage({ id: "filters_all" })
|
|
@@ -26080,7 +26080,7 @@ const mu = "languageSwitcher_", oae = ({
|
|
|
26080
26080
|
label: o,
|
|
26081
26081
|
className: l = ""
|
|
26082
26082
|
}) => {
|
|
26083
|
-
const u =
|
|
26083
|
+
const u = ye(), { updateLanguage: c = () => {
|
|
26084
26084
|
} } = We(t4), [d, f] = de(e);
|
|
26085
26085
|
if (pe(() => {
|
|
26086
26086
|
e !== d && f(e);
|
|
@@ -26205,7 +26205,7 @@ const Ph = ({
|
|
|
26205
26205
|
options: n,
|
|
26206
26206
|
className: r = ""
|
|
26207
26207
|
}) => {
|
|
26208
|
-
const i =
|
|
26208
|
+
const i = ye(), a = Ue(
|
|
26209
26209
|
null
|
|
26210
26210
|
), [s, o] = de(!1), l = (u) => {
|
|
26211
26211
|
a.current && u.target instanceof HTMLElement && !a.current.contains(u.target) && o(!1);
|
|
@@ -26282,7 +26282,7 @@ const VR = Ks(() => Promise.resolve().then(() => Y7)), KR = [
|
|
|
26282
26282
|
href: "/communities/"
|
|
26283
26283
|
}
|
|
26284
26284
|
], GR = ({ activeLink: e, profile: t }) => {
|
|
26285
|
-
const n =
|
|
26285
|
+
const n = ye(), r = We(zt), i = r && typeof r.id == "string";
|
|
26286
26286
|
return /* @__PURE__ */ h.jsxs("ul", { id: "navigation-menu", className: "text-medium", children: [
|
|
26287
26287
|
KR.map(({ key: a, href: s }) => {
|
|
26288
26288
|
const o = WR(s, e), l = {};
|
|
@@ -26365,7 +26365,7 @@ const ZR = "shareLinks_", lae = ({
|
|
|
26365
26365
|
variant: a = "default",
|
|
26366
26366
|
className: s = ""
|
|
26367
26367
|
}) => {
|
|
26368
|
-
const o =
|
|
26368
|
+
const o = ye(), l = YR({ title: e, link: t, referrer: n });
|
|
26369
26369
|
return /* @__PURE__ */ h.jsxs("aside", { className: ee("share-links", i, a, s), children: [
|
|
26370
26370
|
/* @__PURE__ */ h.jsx("p", { className: "text-small", children: o.formatMessage({ id: "shareLinks_label" }) }),
|
|
26371
26371
|
/* @__PURE__ */ h.jsx("ul", { children: l.map(({ key: u, icon: c, url: d, shouldRender: f = !0, onClick: p }) => {
|
|
@@ -26563,7 +26563,7 @@ const JR = ({
|
|
|
26563
26563
|
showEditButton: i,
|
|
26564
26564
|
setShowModal: a
|
|
26565
26565
|
}) => {
|
|
26566
|
-
const { formatMessage: s } =
|
|
26566
|
+
const { formatMessage: s } = ye();
|
|
26567
26567
|
return /* @__PURE__ */ h.jsxs(ur, { variant: "muted", icon: e, children: [
|
|
26568
26568
|
/* @__PURE__ */ h.jsx("p", { children: t || s({ id: `${Rh}placeholder_description` }) }),
|
|
26569
26569
|
i && /* @__PURE__ */ h.jsx("p", { children: /* @__PURE__ */ h.jsx(
|
|
@@ -26589,7 +26589,7 @@ const JR = ({
|
|
|
26589
26589
|
placeholder: l,
|
|
26590
26590
|
showDivider: u = !0
|
|
26591
26591
|
}) => {
|
|
26592
|
-
const { formatMessage: c } =
|
|
26592
|
+
const { formatMessage: c } = ye(), [d, f] = M.useState(!1), p = () => f(!1), g = !!n || !!r, m = typeof i == "string" || g;
|
|
26593
26593
|
let y;
|
|
26594
26594
|
return r && (y = M.cloneElement(r, {
|
|
26595
26595
|
functions: {
|
|
@@ -26771,7 +26771,7 @@ const Md = "cookieBanner_", Ld = [
|
|
|
26771
26771
|
"apolitical-performance-cookie-consent",
|
|
26772
26772
|
"functional-cookie-consent"
|
|
26773
26773
|
], $d = new Date(Date.now() + 12 * 30 * 24 * 60 * 60 * 1e3), eF = () => {
|
|
26774
|
-
const e =
|
|
26774
|
+
const e = ye(), [t, n, r] = ME(Ld), [i, a] = de(
|
|
26775
26775
|
!t["apol-cookie-banner"]
|
|
26776
26776
|
), s = () => {
|
|
26777
26777
|
Ld.forEach((c) => {
|
|
@@ -46160,7 +46160,7 @@ const xt = {
|
|
|
46160
46160
|
doTrack: a = null,
|
|
46161
46161
|
getHref: s
|
|
46162
46162
|
}) => {
|
|
46163
|
-
const o =
|
|
46163
|
+
const o = ye(), l = $E(sl, e);
|
|
46164
46164
|
if (!l || l.onlyShow && (l.onlyShow === "logged-in" && !t || l.onlyShow === "logged-out" && t))
|
|
46165
46165
|
return null;
|
|
46166
46166
|
const u = "doTrack" in l, c = a === null ? u ? l.doTrack : !0 : a, d = e.includes("buttons.");
|
|
@@ -46278,7 +46278,7 @@ const xt = {
|
|
|
46278
46278
|
);
|
|
46279
46279
|
};
|
|
46280
46280
|
const pre = ({ headerIsVisible: e, locale: t }) => {
|
|
46281
|
-
const n =
|
|
46281
|
+
const n = ye();
|
|
46282
46282
|
return /* @__PURE__ */ h.jsx(
|
|
46283
46283
|
"div",
|
|
46284
46284
|
{
|
|
@@ -46471,7 +46471,7 @@ const qC = ({
|
|
|
46471
46471
|
suprSendWorkspaceKey: i
|
|
46472
46472
|
}) => {
|
|
46473
46473
|
var H, q;
|
|
46474
|
-
const a =
|
|
46474
|
+
const a = ye(), s = We(zt), o = qE();
|
|
46475
46475
|
o && (sl.home.href = o);
|
|
46476
46476
|
const l = Ha(!0, !0), u = s && typeof s.id == "string", c = Vn(
|
|
46477
46477
|
() => xt.getIsDesktopVersion(u, l),
|
|
@@ -46815,7 +46815,7 @@ const qC = ({
|
|
|
46815
46815
|
] });
|
|
46816
46816
|
};
|
|
46817
46817
|
const Ere = () => {
|
|
46818
|
-
const e =
|
|
46818
|
+
const e = ye();
|
|
46819
46819
|
return /* @__PURE__ */ h.jsxs(h.Fragment, { children: [
|
|
46820
46820
|
/* @__PURE__ */ h.jsx(qC, {}),
|
|
46821
46821
|
/* @__PURE__ */ h.jsx("div", { id: "content", children: /* @__PURE__ */ h.jsx(
|
|
@@ -46837,7 +46837,7 @@ const Ere = () => {
|
|
|
46837
46837
|
locale: o = "en",
|
|
46838
46838
|
suprSendWorkspaceKey: l
|
|
46839
46839
|
}) => {
|
|
46840
|
-
const u =
|
|
46840
|
+
const u = ye(), { navigation: c = !0, footer: d = !0 } = i, {
|
|
46841
46841
|
background: f = "default",
|
|
46842
46842
|
variant: p = "default",
|
|
46843
46843
|
circle: g = "default",
|
|
@@ -46943,7 +46943,7 @@ const kae = ({
|
|
|
46943
46943
|
gtmType: a = "tag-click",
|
|
46944
46944
|
gtmContext: s = "tags"
|
|
46945
46945
|
}) => {
|
|
46946
|
-
const o =
|
|
46946
|
+
const o = ye();
|
|
46947
46947
|
if (!e || e.length < 1)
|
|
46948
46948
|
return null;
|
|
46949
46949
|
const l = [];
|
|
@@ -46988,7 +46988,7 @@ const _re = 25, Cre = ({
|
|
|
46988
46988
|
showPlaceholders: c = !1,
|
|
46989
46989
|
className: d = ""
|
|
46990
46990
|
}) => {
|
|
46991
|
-
const f =
|
|
46991
|
+
const f = ye(), p = "membersList", g = We(zt), [m, y] = de(!1);
|
|
46992
46992
|
return e.length === 0 && !c ? null : /* @__PURE__ */ h.jsxs("div", { className: ee("members-list", d), children: [
|
|
46993
46993
|
u ? /* @__PURE__ */ h.jsxs("h1", { children: [
|
|
46994
46994
|
f.formatMessage({ id: p }),
|
|
@@ -47083,7 +47083,7 @@ const _re = 25, Cre = ({
|
|
|
47083
47083
|
) : /* @__PURE__ */ h.jsx(h.Fragment, {})
|
|
47084
47084
|
] });
|
|
47085
47085
|
}, xre = Cre, wre = ({ intlPath: e, showGuidelines: t, type: n, gtmContext: r }) => {
|
|
47086
|
-
const i =
|
|
47086
|
+
const i = ye();
|
|
47087
47087
|
return t ? /* @__PURE__ */ h.jsx("small", { children: wr(i.formatMessage, `${e}explainer`, n, "action", {
|
|
47088
47088
|
a: (a) => /* @__PURE__ */ h.jsx(
|
|
47089
47089
|
"a",
|
|
@@ -47099,7 +47099,7 @@ const _re = 25, Cre = ({
|
|
|
47099
47099
|
)
|
|
47100
47100
|
}) }) : /* @__PURE__ */ h.jsx(h.Fragment, {});
|
|
47101
47101
|
}, Are = ({ intlPath: e, type: t, ...n }) => {
|
|
47102
|
-
const r =
|
|
47102
|
+
const r = ye();
|
|
47103
47103
|
return /* @__PURE__ */ h.jsx(
|
|
47104
47104
|
Nh,
|
|
47105
47105
|
{
|
|
@@ -47150,7 +47150,7 @@ const $t = "discussion_form_", $1 = ({
|
|
|
47150
47150
|
gtmContext: d = "DiscussionForm"
|
|
47151
47151
|
}) => {
|
|
47152
47152
|
var ie, me, Pe;
|
|
47153
|
-
const f =
|
|
47153
|
+
const f = ye(), p = We(zt), [g, m] = de(
|
|
47154
47154
|
n.type
|
|
47155
47155
|
), [y, v] = de(""), {
|
|
47156
47156
|
isLoading: E = !1,
|
|
@@ -47625,7 +47625,7 @@ function Rre({
|
|
|
47625
47625
|
badges: s
|
|
47626
47626
|
}) {
|
|
47627
47627
|
var d;
|
|
47628
|
-
const o = "discussion_", l =
|
|
47628
|
+
const o = "discussion_", l = ye(), u = (d = i == null ? void 0 : i.componentProps) == null ? void 0 : d.member.additionalContent, c = u ? u.customMessage : void 0;
|
|
47629
47629
|
return /* @__PURE__ */ h.jsxs("div", { className: "author-section", children: [
|
|
47630
47630
|
/* @__PURE__ */ h.jsx(
|
|
47631
47631
|
ea,
|
|
@@ -47778,7 +47778,7 @@ const Lre = ({
|
|
|
47778
47778
|
);
|
|
47779
47779
|
};
|
|
47780
47780
|
const $re = ({ title: e, options: t, settings: n, functions: r }) => {
|
|
47781
|
-
const i = "poll_", a =
|
|
47781
|
+
const i = "poll_", a = ye(), s = We(zt), {
|
|
47782
47782
|
showRemoveVote: o = !1,
|
|
47783
47783
|
allowMultipleVotes: l = !1,
|
|
47784
47784
|
resultsVisibility: u = lp.AfterVoting
|
|
@@ -47936,7 +47936,7 @@ const j1 = ({
|
|
|
47936
47936
|
disableMentions: b
|
|
47937
47937
|
}) => {
|
|
47938
47938
|
var Qe, ie, me, Pe, ge, Q, xe;
|
|
47939
|
-
const _ =
|
|
47939
|
+
const _ = ye(), T = We(l0), C = We(zt), {
|
|
47940
47940
|
createContent: A = async () => {
|
|
47941
47941
|
},
|
|
47942
47942
|
deleteContent: R = async () => {
|
|
@@ -48293,7 +48293,7 @@ const j1 = ({
|
|
|
48293
48293
|
const zre = Ks(
|
|
48294
48294
|
() => Promise.resolve().then(() => sie)
|
|
48295
48295
|
), qre = 65, Wre = ({ forceShow: e, form: t, className: n }) => {
|
|
48296
|
-
const r =
|
|
48296
|
+
const r = ye(), i = "discussionFormCard_", a = "DiscardDraftModal", o = We(zt) || "community", l = vp(o);
|
|
48297
48297
|
l.name || (l.name = r.formatMessage({
|
|
48298
48298
|
id: `member_${typeof o == "string" ? o : "community"}`
|
|
48299
48299
|
}));
|
|
@@ -48464,6 +48464,7 @@ const zre = Ks(
|
|
|
48464
48464
|
membershipRequiredToPost: { isMember: i, required: a, join: s, leave: o, notMemberStateText: l },
|
|
48465
48465
|
locale: u = Bs
|
|
48466
48466
|
}) => {
|
|
48467
|
+
const c = ye();
|
|
48467
48468
|
if (a && !i)
|
|
48468
48469
|
return /* @__PURE__ */ h.jsx(
|
|
48469
48470
|
Ci,
|
|
@@ -48475,33 +48476,36 @@ const zre = Ks(
|
|
|
48475
48476
|
}
|
|
48476
48477
|
}
|
|
48477
48478
|
);
|
|
48478
|
-
const { content:
|
|
48479
|
-
content: { type: (
|
|
48479
|
+
const { content: d, functions: f, meta: p, ...g } = t, m = {
|
|
48480
|
+
content: { type: (d == null ? void 0 : d.type) || "reply", slugs: (d == null ? void 0 : d.slugs) || {} },
|
|
48480
48481
|
functions: {
|
|
48481
|
-
...
|
|
48482
|
-
create: (
|
|
48482
|
+
...f,
|
|
48483
|
+
create: (f == null ? void 0 : f.create) || (() => {
|
|
48483
48484
|
})
|
|
48484
48485
|
},
|
|
48485
48486
|
parentId: n,
|
|
48486
48487
|
meta: {
|
|
48487
|
-
...
|
|
48488
|
-
isEditing: (
|
|
48488
|
+
...p,
|
|
48489
|
+
isEditing: (p == null ? void 0 : p.isEditing) || !1,
|
|
48489
48490
|
isPrepopulated: !1,
|
|
48490
48491
|
showSuccessMessage: !1,
|
|
48491
48492
|
postCategories: [
|
|
48492
48493
|
{
|
|
48493
|
-
name:
|
|
48494
|
+
name: c.formatMessage({
|
|
48495
|
+
id: "discussion_form__postType_no-category",
|
|
48496
|
+
defaultMessage: "Post"
|
|
48497
|
+
}),
|
|
48494
48498
|
slug: "no-category"
|
|
48495
48499
|
},
|
|
48496
48500
|
...r || []
|
|
48497
48501
|
]
|
|
48498
48502
|
},
|
|
48499
|
-
...
|
|
48500
|
-
id: `add-post-${
|
|
48503
|
+
...g,
|
|
48504
|
+
id: `add-post-${g.id || ""}`
|
|
48501
48505
|
};
|
|
48502
|
-
return e ? /* @__PURE__ */ h.jsx(Wre, { form:
|
|
48506
|
+
return e ? /* @__PURE__ */ h.jsx(Wre, { form: m }) : /* @__PURE__ */ h.jsx(Vre, { ...m });
|
|
48503
48507
|
}, ZC = ({ form: e }) => {
|
|
48504
|
-
const t = We(zt), n =
|
|
48508
|
+
const t = We(zt), n = ye(), [r, i] = de(!1), a = () => {
|
|
48505
48509
|
i7(t) || i(!0);
|
|
48506
48510
|
};
|
|
48507
48511
|
pe(() => {
|
|
@@ -48535,7 +48539,7 @@ const Xf = "discussion_responses_", Kre = ({
|
|
|
48535
48539
|
responses: t = 0,
|
|
48536
48540
|
isLoading: n = !1
|
|
48537
48541
|
}) => {
|
|
48538
|
-
const r =
|
|
48542
|
+
const r = ye();
|
|
48539
48543
|
return t = parseInt(t), /* @__PURE__ */ h.jsxs("div", { className: "responses-heading", children: [
|
|
48540
48544
|
/* @__PURE__ */ h.jsx("h4", { children: r.formatMessage(
|
|
48541
48545
|
{ id: `${Xf}title` },
|
|
@@ -48554,7 +48558,7 @@ const Gre = ({
|
|
|
48554
48558
|
form: r,
|
|
48555
48559
|
children: i
|
|
48556
48560
|
}) => {
|
|
48557
|
-
const a =
|
|
48561
|
+
const a = ye(), s = We(l0), o = ic(i, {
|
|
48558
48562
|
element: "li"
|
|
48559
48563
|
});
|
|
48560
48564
|
if (s.prepopulateForm && (r != null && r.meta) && (r.meta.isPrepopulated = { text: s.prepopulateForm }, s.mentionData)) {
|
|
@@ -48772,7 +48776,7 @@ const Dae = ({
|
|
|
48772
48776
|
repliesFilters: v
|
|
48773
48777
|
}) => {
|
|
48774
48778
|
var z, U, $, ae, Y, te, se, re, Ae, Oe, Ce, ue;
|
|
48775
|
-
const E =
|
|
48779
|
+
const E = ye(), b = We(zt), _ = {
|
|
48776
48780
|
...s,
|
|
48777
48781
|
...f
|
|
48778
48782
|
}, {
|
|
@@ -48946,7 +48950,7 @@ const aie = ({
|
|
|
48946
48950
|
cachedText: r,
|
|
48947
48951
|
className: i
|
|
48948
48952
|
}) => {
|
|
48949
|
-
const a =
|
|
48953
|
+
const a = ye(), s = "discussionFormModal_", { onClose: o = () => {
|
|
48950
48954
|
}, cacheText: l = () => {
|
|
48951
48955
|
} } = t, { data: u, meta: c, functions: d } = n, { title: f = "", body: p = "", mentions: g } = r || {}, m = "discussion-form-modal";
|
|
48952
48956
|
return /* @__PURE__ */ h.jsx(
|
|
@@ -49046,7 +49050,7 @@ const Oae = ({
|
|
|
49046
49050
|
},
|
|
49047
49051
|
sendInvites: c
|
|
49048
49052
|
}) => {
|
|
49049
|
-
const d =
|
|
49053
|
+
const d = ye();
|
|
49050
49054
|
return i || (i = d.formatMessage({ id: "inviteModal_formTitle" })), a || (a = d.formatMessage({ id: "inviteModal_formLabel" })), s || (s = d.formatMessage({ id: "inviteModal_cta" })), /* @__PURE__ */ h.jsx(
|
|
49051
49055
|
aa,
|
|
49052
49056
|
{
|
|
@@ -49079,7 +49083,7 @@ const oie = ({
|
|
|
49079
49083
|
form: a,
|
|
49080
49084
|
className: s
|
|
49081
49085
|
}) => {
|
|
49082
|
-
const o =
|
|
49086
|
+
const o = ye(), [l, u] = de(
|
|
49083
49087
|
XE("showProfile") === "true" || e
|
|
49084
49088
|
);
|
|
49085
49089
|
pe(() => {
|
|
@@ -49171,7 +49175,7 @@ const Nae = ({ members: e }) => {
|
|
|
49171
49175
|
] });
|
|
49172
49176
|
};
|
|
49173
49177
|
const Iae = ({ email: e, settings: t = {} }) => {
|
|
49174
|
-
const { formatMessage: n } =
|
|
49178
|
+
const { formatMessage: n } = ye(), r = We(zt), { myProfile: i, isConnected: a, cannotConnect: s } = t, [o, l] = de(!1), [u, c] = de(!1);
|
|
49175
49179
|
return r ? e && i ? /* @__PURE__ */ h.jsx(
|
|
49176
49180
|
je,
|
|
49177
49181
|
{
|
|
@@ -49278,7 +49282,7 @@ const Rae = ({
|
|
|
49278
49282
|
selector: t = "",
|
|
49279
49283
|
className: n = ""
|
|
49280
49284
|
}) => {
|
|
49281
|
-
const r =
|
|
49285
|
+
const r = ye(), [i, a] = de(e);
|
|
49282
49286
|
return pe(() => {
|
|
49283
49287
|
if (e.length)
|
|
49284
49288
|
return;
|
|
@@ -49312,7 +49316,7 @@ const c0 = ({
|
|
|
49312
49316
|
appendedText: r,
|
|
49313
49317
|
className: i = ""
|
|
49314
49318
|
}) => {
|
|
49315
|
-
const a =
|
|
49319
|
+
const a = ye(), s = "timeToComplete_";
|
|
49316
49320
|
if (!e || typeof e != "number")
|
|
49317
49321
|
return null;
|
|
49318
49322
|
const o = (c) => {
|
|
@@ -49556,7 +49560,7 @@ const $ae = ({
|
|
|
49556
49560
|
}
|
|
49557
49561
|
)
|
|
49558
49562
|
] }), hie = ({ type: e, data: t }) => {
|
|
49559
|
-
const n =
|
|
49563
|
+
const n = ye(), {
|
|
49560
49564
|
answers: r,
|
|
49561
49565
|
createdAt: i,
|
|
49562
49566
|
dateHasPassed: a,
|
|
@@ -49689,7 +49693,7 @@ const $ae = ({
|
|
|
49689
49693
|
}
|
|
49690
49694
|
}, mie = ({ data: e, cta: t, link: n, gtmContext: r }) => {
|
|
49691
49695
|
var m, y;
|
|
49692
|
-
const i =
|
|
49696
|
+
const i = ye(), [a, s] = de({
|
|
49693
49697
|
loading: !1,
|
|
49694
49698
|
registered: e.registered || !1
|
|
49695
49699
|
});
|
|
@@ -49772,7 +49776,7 @@ const $ae = ({
|
|
|
49772
49776
|
return null;
|
|
49773
49777
|
};
|
|
49774
49778
|
function gie({ buildMemberData: e, communitySlug: t }) {
|
|
49775
|
-
const n =
|
|
49779
|
+
const n = ye(), r = We(zt), [i, a] = de({
|
|
49776
49780
|
count: "...",
|
|
49777
49781
|
isMember: !1,
|
|
49778
49782
|
memberType: ""
|
|
@@ -49814,7 +49818,7 @@ const QC = ({
|
|
|
49814
49818
|
meta: l
|
|
49815
49819
|
}) => {
|
|
49816
49820
|
var S, F;
|
|
49817
|
-
const u =
|
|
49821
|
+
const u = ye(), c = We(zt), d = !!(c != null && c.id), { isTabbable: f = !0, setFocus: p = !1 } = l || {}, g = M.useRef(null), [m, y] = de({
|
|
49818
49822
|
data: null,
|
|
49819
49823
|
isLoading: !0
|
|
49820
49824
|
});
|
|
@@ -49992,7 +49996,7 @@ const vie = ({
|
|
|
49992
49996
|
isLoaded: s
|
|
49993
49997
|
};
|
|
49994
49998
|
}, Eie = ({ id: e, title: t }) => {
|
|
49995
|
-
const n =
|
|
49999
|
+
const n = ye();
|
|
49996
50000
|
if (!t || !t.text)
|
|
49997
50001
|
return null;
|
|
49998
50002
|
const { text: r, element: i = "h2", variant: a = "default", size: s = "medium", link: o } = t;
|
|
@@ -50031,7 +50035,7 @@ const bie = ({
|
|
|
50031
50035
|
gtmContext: s,
|
|
50032
50036
|
...o
|
|
50033
50037
|
}) => {
|
|
50034
|
-
const l =
|
|
50038
|
+
const l = ye(), u = "carousel_pagination_", [c, d] = de({
|
|
50035
50039
|
cardsPerPage: 4,
|
|
50036
50040
|
isLoading: !0
|
|
50037
50041
|
}), { cardsPerPage: f, isLoading: p } = c, [g, m] = de({
|
|
@@ -50296,7 +50300,7 @@ const Uae = ({
|
|
|
50296
50300
|
styling: s = {},
|
|
50297
50301
|
className: o = ""
|
|
50298
50302
|
}) => {
|
|
50299
|
-
const l =
|
|
50303
|
+
const l = ye();
|
|
50300
50304
|
let u = i ? n : r;
|
|
50301
50305
|
u > 99 ? u = 100 : u < 1 && (u = 0);
|
|
50302
50306
|
const { highlightPercentage: c = !1 } = s;
|
|
@@ -50352,7 +50356,7 @@ const _ie = ({
|
|
|
50352
50356
|
type: i,
|
|
50353
50357
|
children: a
|
|
50354
50358
|
}) => {
|
|
50355
|
-
const s =
|
|
50359
|
+
const s = ye(), o = fp(`lessonType_${i}`) ? s.formatMessage({ id: `lessonType_${i}` }) : F3(i || "");
|
|
50356
50360
|
return /* @__PURE__ */ h.jsxs("small", { className: ee("content-type", { [e]: e !== "default" }), children: [
|
|
50357
50361
|
/* @__PURE__ */ h.jsx("span", { className: ee("type", n), children: o }),
|
|
50358
50362
|
" ",
|
|
@@ -50376,7 +50380,7 @@ const zae = ({
|
|
|
50376
50380
|
},
|
|
50377
50381
|
quizScores: c
|
|
50378
50382
|
}) => {
|
|
50379
|
-
const d =
|
|
50383
|
+
const d = ye(), f = "courseStructure_", p = u.toLowerCase().includes("course conclusion");
|
|
50380
50384
|
return /* @__PURE__ */ h.jsxs(
|
|
50381
50385
|
pp,
|
|
50382
50386
|
{
|
|
@@ -50473,7 +50477,7 @@ const qae = ({
|
|
|
50473
50477
|
onClick: t,
|
|
50474
50478
|
...n
|
|
50475
50479
|
}) => {
|
|
50476
|
-
const r =
|
|
50480
|
+
const r = ye();
|
|
50477
50481
|
return n["data-gtm-event-context"] || (n["data-gtm-event-context"] = "LessonIntroduction"), /* @__PURE__ */ h.jsx(
|
|
50478
50482
|
je,
|
|
50479
50483
|
{
|
|
@@ -50546,7 +50550,7 @@ const qae = ({
|
|
|
50546
50550
|
}
|
|
50547
50551
|
];
|
|
50548
50552
|
const nc = "notFoundError_", Vae = () => {
|
|
50549
|
-
const e =
|
|
50553
|
+
const e = ye(), t = [];
|
|
50550
50554
|
return IE.forEach((n, r) => {
|
|
50551
50555
|
n.title = e.formatMessage({ id: `${nc}post_${r + 1}` }), t.push("solutionArticle");
|
|
50552
50556
|
}), /* @__PURE__ */ h.jsxs(
|