@apolitical/component-library 1.15.1-4187.3 → 1.15.1-4187.4
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 +11 -11
- package/index.mjs +810 -810
- package/package.json +1 -1
package/index.mjs
CHANGED
|
@@ -34,8 +34,8 @@ var Nn = { exports: {} };
|
|
|
34
34
|
r.push(d);
|
|
35
35
|
else if (Array.isArray(d)) {
|
|
36
36
|
if (d.length) {
|
|
37
|
-
var
|
|
38
|
-
|
|
37
|
+
var a = n.apply(null, d);
|
|
38
|
+
a && r.push(a);
|
|
39
39
|
}
|
|
40
40
|
} else if (u === "object") {
|
|
41
41
|
if (d.toString !== Object.prototype.toString && !d.toString.toString().includes("[native code]")) {
|
|
@@ -70,15 +70,15 @@ function Rs() {
|
|
|
70
70
|
return Ye;
|
|
71
71
|
pn = 1;
|
|
72
72
|
var e = C, t = Symbol.for("react.element"), n = Symbol.for("react.fragment"), r = Object.prototype.hasOwnProperty, i = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, d = { key: !0, ref: !0, __self: !0, __source: !0 };
|
|
73
|
-
function u(
|
|
73
|
+
function u(a, l, o) {
|
|
74
74
|
var m, c = {}, h = null, p = null;
|
|
75
|
-
|
|
75
|
+
o !== void 0 && (h = "" + o), l.key !== void 0 && (h = "" + l.key), l.ref !== void 0 && (p = l.ref);
|
|
76
76
|
for (m in l)
|
|
77
77
|
r.call(l, m) && !d.hasOwnProperty(m) && (c[m] = l[m]);
|
|
78
|
-
if (
|
|
79
|
-
for (m in l =
|
|
78
|
+
if (a && a.defaultProps)
|
|
79
|
+
for (m in l = a.defaultProps, l)
|
|
80
80
|
c[m] === void 0 && (c[m] = l[m]);
|
|
81
|
-
return { $$typeof: t, type:
|
|
81
|
+
return { $$typeof: t, type: a, key: h, ref: p, props: c, _owner: i.current };
|
|
82
82
|
}
|
|
83
83
|
return Ye.Fragment = n, Ye.jsx = u, Ye.jsxs = u, Ye;
|
|
84
84
|
}
|
|
@@ -95,7 +95,7 @@ var Ge = {};
|
|
|
95
95
|
var gn;
|
|
96
96
|
function Fs() {
|
|
97
97
|
return gn || (gn = 1, process.env.NODE_ENV !== "production" && function() {
|
|
98
|
-
var e = C, t = Symbol.for("react.element"), n = Symbol.for("react.portal"), r = Symbol.for("react.fragment"), i = Symbol.for("react.strict_mode"), d = Symbol.for("react.profiler"), u = Symbol.for("react.provider"),
|
|
98
|
+
var e = C, t = Symbol.for("react.element"), n = Symbol.for("react.portal"), r = Symbol.for("react.fragment"), i = Symbol.for("react.strict_mode"), d = Symbol.for("react.profiler"), u = Symbol.for("react.provider"), a = Symbol.for("react.context"), l = Symbol.for("react.forward_ref"), o = Symbol.for("react.suspense"), m = Symbol.for("react.suspense_list"), c = Symbol.for("react.memo"), h = Symbol.for("react.lazy"), p = Symbol.for("react.offscreen"), g = Symbol.iterator, b = "@@iterator";
|
|
99
99
|
function v(f) {
|
|
100
100
|
if (f === null || typeof f != "object")
|
|
101
101
|
return null;
|
|
@@ -114,16 +114,16 @@ function Fs() {
|
|
|
114
114
|
{
|
|
115
115
|
var M = E.ReactDebugCurrentFrame, Q = M.getStackAddendum();
|
|
116
116
|
Q !== "" && (y += "%s", $ = $.concat([Q]));
|
|
117
|
-
var z = $.map(function(
|
|
118
|
-
return String(
|
|
117
|
+
var z = $.map(function(I) {
|
|
118
|
+
return String(I);
|
|
119
119
|
});
|
|
120
120
|
z.unshift("Warning: " + y), Function.prototype.apply.call(console[f], console, z);
|
|
121
121
|
}
|
|
122
122
|
}
|
|
123
|
-
var T = !1, N = !1, R = !1, J = !1,
|
|
123
|
+
var T = !1, N = !1, R = !1, J = !1, O = !1, H;
|
|
124
124
|
H = Symbol.for("react.module.reference");
|
|
125
125
|
function F(f) {
|
|
126
|
-
return !!(typeof f == "string" || typeof f == "function" || f === r || f === d ||
|
|
126
|
+
return !!(typeof f == "string" || typeof f == "function" || f === r || f === d || O || f === i || f === o || f === m || J || f === p || T || N || R || typeof f == "object" && f !== null && (f.$$typeof === h || f.$$typeof === c || f.$$typeof === u || f.$$typeof === a || f.$$typeof === l || // This needs to include all possible module reference object
|
|
127
127
|
// types supported by any Flight configuration anywhere since
|
|
128
128
|
// we don't know which Flight build this will end up being used
|
|
129
129
|
// with.
|
|
@@ -155,14 +155,14 @@ function Fs() {
|
|
|
155
155
|
return "Profiler";
|
|
156
156
|
case i:
|
|
157
157
|
return "StrictMode";
|
|
158
|
-
case
|
|
158
|
+
case o:
|
|
159
159
|
return "Suspense";
|
|
160
160
|
case m:
|
|
161
161
|
return "SuspenseList";
|
|
162
162
|
}
|
|
163
163
|
if (typeof f == "object")
|
|
164
164
|
switch (f.$$typeof) {
|
|
165
|
-
case
|
|
165
|
+
case a:
|
|
166
166
|
var y = f;
|
|
167
167
|
return Y(y) + ".Consumer";
|
|
168
168
|
case u:
|
|
@@ -174,9 +174,9 @@ function Fs() {
|
|
|
174
174
|
var M = f.displayName || null;
|
|
175
175
|
return M !== null ? M : k(f.type) || "Memo";
|
|
176
176
|
case h: {
|
|
177
|
-
var Q = f, z = Q._payload,
|
|
177
|
+
var Q = f, z = Q._payload, I = Q._init;
|
|
178
178
|
try {
|
|
179
|
-
return k(
|
|
179
|
+
return k(I(z));
|
|
180
180
|
} catch {
|
|
181
181
|
return null;
|
|
182
182
|
}
|
|
@@ -184,14 +184,14 @@ function Fs() {
|
|
|
184
184
|
}
|
|
185
185
|
return null;
|
|
186
186
|
}
|
|
187
|
-
var w = Object.assign, V = 0, Z, se, re,
|
|
187
|
+
var w = Object.assign, V = 0, Z, se, re, ae, q, fe, ue;
|
|
188
188
|
function L() {
|
|
189
189
|
}
|
|
190
190
|
L.__reactDisabledLog = !0;
|
|
191
|
-
function
|
|
191
|
+
function oe() {
|
|
192
192
|
{
|
|
193
193
|
if (V === 0) {
|
|
194
|
-
Z = console.log, se = console.info, re = console.warn,
|
|
194
|
+
Z = console.log, se = console.info, re = console.warn, ae = console.error, q = console.group, fe = console.groupCollapsed, ue = console.groupEnd;
|
|
195
195
|
var f = {
|
|
196
196
|
configurable: !0,
|
|
197
197
|
enumerable: !0,
|
|
@@ -230,7 +230,7 @@ function Fs() {
|
|
|
230
230
|
value: re
|
|
231
231
|
}),
|
|
232
232
|
error: w({}, f, {
|
|
233
|
-
value:
|
|
233
|
+
value: ae
|
|
234
234
|
}),
|
|
235
235
|
group: w({}, f, {
|
|
236
236
|
value: q
|
|
@@ -278,30 +278,30 @@ function Fs() {
|
|
|
278
278
|
var Q = Error.prepareStackTrace;
|
|
279
279
|
Error.prepareStackTrace = void 0;
|
|
280
280
|
var z;
|
|
281
|
-
z = ce.current, ce.current = null,
|
|
281
|
+
z = ce.current, ce.current = null, oe();
|
|
282
282
|
try {
|
|
283
283
|
if (y) {
|
|
284
|
-
var
|
|
284
|
+
var I = function() {
|
|
285
285
|
throw Error();
|
|
286
286
|
};
|
|
287
|
-
if (Object.defineProperty(
|
|
287
|
+
if (Object.defineProperty(I.prototype, "props", {
|
|
288
288
|
set: function() {
|
|
289
289
|
throw Error();
|
|
290
290
|
}
|
|
291
291
|
}), typeof Reflect == "object" && Reflect.construct) {
|
|
292
292
|
try {
|
|
293
|
-
Reflect.construct(
|
|
293
|
+
Reflect.construct(I, []);
|
|
294
294
|
} catch (Ne) {
|
|
295
295
|
M = Ne;
|
|
296
296
|
}
|
|
297
|
-
Reflect.construct(f, [],
|
|
297
|
+
Reflect.construct(f, [], I);
|
|
298
298
|
} else {
|
|
299
299
|
try {
|
|
300
|
-
|
|
300
|
+
I.call();
|
|
301
301
|
} catch (Ne) {
|
|
302
302
|
M = Ne;
|
|
303
303
|
}
|
|
304
|
-
f.call(
|
|
304
|
+
f.call(I.prototype);
|
|
305
305
|
}
|
|
306
306
|
} else {
|
|
307
307
|
try {
|
|
@@ -333,7 +333,7 @@ function Fs() {
|
|
|
333
333
|
} finally {
|
|
334
334
|
be = !1, ce.current = z, he(), Error.prepareStackTrace = Q;
|
|
335
335
|
}
|
|
336
|
-
var
|
|
336
|
+
var Oe = f ? f.displayName || f.name : "", hn = Oe ? pe(Oe) : "";
|
|
337
337
|
return typeof f == "function" && ge.set(f, hn), hn;
|
|
338
338
|
}
|
|
339
339
|
function le(f, y, $) {
|
|
@@ -351,7 +351,7 @@ function Fs() {
|
|
|
351
351
|
if (typeof f == "string")
|
|
352
352
|
return pe(f);
|
|
353
353
|
switch (f) {
|
|
354
|
-
case
|
|
354
|
+
case o:
|
|
355
355
|
return pe("Suspense");
|
|
356
356
|
case m:
|
|
357
357
|
return pe("SuspenseList");
|
|
@@ -383,19 +383,19 @@ function Fs() {
|
|
|
383
383
|
function et(f, y, $, M, Q) {
|
|
384
384
|
{
|
|
385
385
|
var z = Function.call.bind(ke);
|
|
386
|
-
for (var
|
|
387
|
-
if (z(f,
|
|
386
|
+
for (var I in f)
|
|
387
|
+
if (z(f, I)) {
|
|
388
388
|
var A = void 0;
|
|
389
389
|
try {
|
|
390
|
-
if (typeof f[
|
|
391
|
-
var we = Error((M || "React class") + ": " + $ + " type `" +
|
|
390
|
+
if (typeof f[I] != "function") {
|
|
391
|
+
var we = Error((M || "React class") + ": " + $ + " type `" + I + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof f[I] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
|
|
392
392
|
throw we.name = "Invariant Violation", we;
|
|
393
393
|
}
|
|
394
|
-
A = f[
|
|
394
|
+
A = f[I](y, I, M, $, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
|
|
395
395
|
} catch (K) {
|
|
396
396
|
A = K;
|
|
397
397
|
}
|
|
398
|
-
A && !(A instanceof Error) && (Fe(Q), j("%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).", M || "React class", $,
|
|
398
|
+
A && !(A instanceof Error) && (Fe(Q), j("%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).", M || "React class", $, I, typeof A), Fe(null)), A instanceof Error && !(A.message in Ae) && (Ae[A.message] = !0, Fe(Q), j("Failed %s type: %s", $, A.message), Fe(null));
|
|
399
399
|
}
|
|
400
400
|
}
|
|
401
401
|
}
|
|
@@ -428,7 +428,7 @@ function Fs() {
|
|
|
428
428
|
ref: !0,
|
|
429
429
|
__self: !0,
|
|
430
430
|
__source: !0
|
|
431
|
-
},
|
|
431
|
+
}, an, on, $t;
|
|
432
432
|
$t = {};
|
|
433
433
|
function ts(f) {
|
|
434
434
|
if (ke.call(f, "ref")) {
|
|
@@ -455,7 +455,7 @@ function Fs() {
|
|
|
455
455
|
function rs(f, y) {
|
|
456
456
|
{
|
|
457
457
|
var $ = function() {
|
|
458
|
-
|
|
458
|
+
an || (an = !0, j("%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)", y));
|
|
459
459
|
};
|
|
460
460
|
$.isReactWarning = !0, Object.defineProperty(f, "key", {
|
|
461
461
|
get: $,
|
|
@@ -463,10 +463,10 @@ function Fs() {
|
|
|
463
463
|
});
|
|
464
464
|
}
|
|
465
465
|
}
|
|
466
|
-
function
|
|
466
|
+
function as(f, y) {
|
|
467
467
|
{
|
|
468
468
|
var $ = function() {
|
|
469
|
-
|
|
469
|
+
on || (on = !0, j("%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)", y));
|
|
470
470
|
};
|
|
471
471
|
$.isReactWarning = !0, Object.defineProperty(f, "ref", {
|
|
472
472
|
get: $,
|
|
@@ -474,7 +474,7 @@ function Fs() {
|
|
|
474
474
|
});
|
|
475
475
|
}
|
|
476
476
|
}
|
|
477
|
-
var
|
|
477
|
+
var os = function(f, y, $, M, Q, z, I) {
|
|
478
478
|
var A = {
|
|
479
479
|
// This tag allows us to uniquely identify this as a React Element
|
|
480
480
|
$$typeof: t,
|
|
@@ -482,7 +482,7 @@ function Fs() {
|
|
|
482
482
|
type: f,
|
|
483
483
|
key: y,
|
|
484
484
|
ref: $,
|
|
485
|
-
props:
|
|
485
|
+
props: I,
|
|
486
486
|
// Record the component responsible for creating this element.
|
|
487
487
|
_owner: z
|
|
488
488
|
};
|
|
@@ -505,24 +505,24 @@ function Fs() {
|
|
|
505
505
|
};
|
|
506
506
|
function is(f, y, $, M, Q) {
|
|
507
507
|
{
|
|
508
|
-
var z,
|
|
508
|
+
var z, I = {}, A = null, we = null;
|
|
509
509
|
$ !== void 0 && (rn($), A = "" + $), ns(y) && (rn(y.key), A = "" + y.key), ts(y) && (we = y.ref, ss(y, Q));
|
|
510
510
|
for (z in y)
|
|
511
|
-
ke.call(y, z) && !es.hasOwnProperty(z) && (
|
|
511
|
+
ke.call(y, z) && !es.hasOwnProperty(z) && (I[z] = y[z]);
|
|
512
512
|
if (f && f.defaultProps) {
|
|
513
513
|
var K = f.defaultProps;
|
|
514
514
|
for (z in K)
|
|
515
|
-
|
|
515
|
+
I[z] === void 0 && (I[z] = K[z]);
|
|
516
516
|
}
|
|
517
517
|
if (A || we) {
|
|
518
518
|
var ne = typeof f == "function" ? f.displayName || f.name || "Unknown" : f;
|
|
519
|
-
A && rs(
|
|
519
|
+
A && rs(I, ne), we && as(I, ne);
|
|
520
520
|
}
|
|
521
|
-
return
|
|
521
|
+
return os(f, A, we, Q, M, Ve.current, I);
|
|
522
522
|
}
|
|
523
523
|
}
|
|
524
524
|
var Tt = E.ReactCurrentOwner, cn = E.ReactDebugCurrentFrame;
|
|
525
|
-
function
|
|
525
|
+
function Ie(f) {
|
|
526
526
|
if (f) {
|
|
527
527
|
var y = f._owner, $ = me(f.type, f._source, y ? y.type : null);
|
|
528
528
|
cn.setExtraStackFrame($);
|
|
@@ -580,7 +580,7 @@ Check the top-level render call using <` + $ + ">.");
|
|
|
580
580
|
return;
|
|
581
581
|
dn[$] = !0;
|
|
582
582
|
var M = "";
|
|
583
|
-
f && f._owner && f._owner !== Tt.current && (M = " It was passed a child from " + k(f._owner.type) + "."),
|
|
583
|
+
f && f._owner && f._owner !== Tt.current && (M = " It was passed a child from " + k(f._owner.type) + "."), Ie(f), j('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', $, M), Ie(null);
|
|
584
584
|
}
|
|
585
585
|
}
|
|
586
586
|
function mn(f, y) {
|
|
@@ -597,8 +597,8 @@ Check the top-level render call using <` + $ + ">.");
|
|
|
597
597
|
else if (f) {
|
|
598
598
|
var Q = v(f);
|
|
599
599
|
if (typeof Q == "function" && Q !== f.entries)
|
|
600
|
-
for (var z = Q.call(f),
|
|
601
|
-
Nt(
|
|
600
|
+
for (var z = Q.call(f), I; !(I = z.next()).done; )
|
|
601
|
+
Nt(I.value) && un(I.value, y);
|
|
602
602
|
}
|
|
603
603
|
}
|
|
604
604
|
}
|
|
@@ -632,17 +632,17 @@ Check the top-level render call using <` + $ + ">.");
|
|
|
632
632
|
for (var y = Object.keys(f.props), $ = 0; $ < y.length; $++) {
|
|
633
633
|
var M = y[$];
|
|
634
634
|
if (M !== "children" && M !== "key") {
|
|
635
|
-
|
|
635
|
+
Ie(f), j("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", M), Ie(null);
|
|
636
636
|
break;
|
|
637
637
|
}
|
|
638
638
|
}
|
|
639
|
-
f.ref !== null && (
|
|
639
|
+
f.ref !== null && (Ie(f), j("Invalid attribute `ref` supplied to `React.Fragment`."), Ie(null));
|
|
640
640
|
}
|
|
641
641
|
}
|
|
642
642
|
function fn(f, y, $, M, Q, z) {
|
|
643
643
|
{
|
|
644
|
-
var
|
|
645
|
-
if (!
|
|
644
|
+
var I = F(f);
|
|
645
|
+
if (!I) {
|
|
646
646
|
var A = "";
|
|
647
647
|
(f === void 0 || typeof f == "object" && f !== null && Object.keys(f).length === 0) && (A += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
|
|
648
648
|
var we = cs(Q);
|
|
@@ -653,13 +653,13 @@ Check the top-level render call using <` + $ + ">.");
|
|
|
653
653
|
var ne = is(f, y, $, Q, z);
|
|
654
654
|
if (ne == null)
|
|
655
655
|
return ne;
|
|
656
|
-
if (
|
|
656
|
+
if (I) {
|
|
657
657
|
var ye = y.children;
|
|
658
658
|
if (ye !== void 0)
|
|
659
659
|
if (M)
|
|
660
660
|
if (Ee(ye)) {
|
|
661
|
-
for (var
|
|
662
|
-
mn(ye[
|
|
661
|
+
for (var Oe = 0; Oe < ye.length; Oe++)
|
|
662
|
+
mn(ye[Oe], f);
|
|
663
663
|
Object.freeze && Object.freeze(ye);
|
|
664
664
|
} else
|
|
665
665
|
j("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
|
|
@@ -695,8 +695,8 @@ const Ls = () => {
|
|
|
695
695
|
n.current ? e() : n.current = !0;
|
|
696
696
|
}, t);
|
|
697
697
|
};
|
|
698
|
-
function
|
|
699
|
-
var r = this, i = de(null), d = de(0), u = de(null),
|
|
698
|
+
function Is(e, t, n) {
|
|
699
|
+
var r = this, i = de(null), d = de(0), u = de(null), a = de([]), l = de(), o = de(), m = de(e), c = de(!0);
|
|
700
700
|
m.current = e;
|
|
701
701
|
var h = typeof window < "u", p = !t && t !== 0 && h;
|
|
702
702
|
if (typeof e != "function")
|
|
@@ -710,8 +710,8 @@ function Os(e, t, n) {
|
|
|
710
710
|
}, []);
|
|
711
711
|
var _ = xt(function() {
|
|
712
712
|
var T = function(F) {
|
|
713
|
-
var x =
|
|
714
|
-
return
|
|
713
|
+
var x = a.current, Y = l.current;
|
|
714
|
+
return a.current = l.current = null, d.current = F, o.current = m.current.apply(Y, x);
|
|
715
715
|
}, N = function(F, x) {
|
|
716
716
|
p && cancelAnimationFrame(u.current), u.current = p ? requestAnimationFrame(F) : setTimeout(F, x);
|
|
717
717
|
}, R = function(F) {
|
|
@@ -720,8 +720,8 @@ function Os(e, t, n) {
|
|
|
720
720
|
var x = F - i.current;
|
|
721
721
|
return !i.current || x >= t || x < 0 || v && F - d.current >= j;
|
|
722
722
|
}, J = function(F) {
|
|
723
|
-
return u.current = null, b &&
|
|
724
|
-
},
|
|
723
|
+
return u.current = null, b && a.current ? T(F) : (a.current = l.current = null, o.current);
|
|
724
|
+
}, O = function F() {
|
|
725
725
|
var x = Date.now();
|
|
726
726
|
if (R(x))
|
|
727
727
|
return J(x);
|
|
@@ -732,28 +732,28 @@ function Os(e, t, n) {
|
|
|
732
732
|
}, H = function() {
|
|
733
733
|
if (h || E) {
|
|
734
734
|
var F = Date.now(), x = R(F);
|
|
735
|
-
if (
|
|
735
|
+
if (a.current = [].slice.call(arguments), l.current = r, i.current = F, x) {
|
|
736
736
|
if (!u.current && c.current)
|
|
737
|
-
return d.current = i.current, N(
|
|
737
|
+
return d.current = i.current, N(O, t), g ? T(i.current) : o.current;
|
|
738
738
|
if (v)
|
|
739
|
-
return N(
|
|
739
|
+
return N(O, t), T(i.current);
|
|
740
740
|
}
|
|
741
|
-
return u.current || N(
|
|
741
|
+
return u.current || N(O, t), o.current;
|
|
742
742
|
}
|
|
743
743
|
};
|
|
744
744
|
return H.cancel = function() {
|
|
745
|
-
u.current && (p ? cancelAnimationFrame(u.current) : clearTimeout(u.current)), d.current = 0,
|
|
745
|
+
u.current && (p ? cancelAnimationFrame(u.current) : clearTimeout(u.current)), d.current = 0, a.current = i.current = l.current = u.current = null;
|
|
746
746
|
}, H.isPending = function() {
|
|
747
747
|
return !!u.current;
|
|
748
748
|
}, H.flush = function() {
|
|
749
|
-
return u.current ? J(Date.now()) :
|
|
749
|
+
return u.current ? J(Date.now()) : o.current;
|
|
750
750
|
}, H;
|
|
751
751
|
}, [g, v, t, j, b, p, h, E]);
|
|
752
752
|
return _;
|
|
753
753
|
}
|
|
754
754
|
function Cn(e, t, n) {
|
|
755
755
|
var r = n === void 0 ? {} : n, i = r.leading, d = r.trailing;
|
|
756
|
-
return
|
|
756
|
+
return Is(e, t, { maxWait: t, leading: i === void 0 || i, trailing: d === void 0 || d });
|
|
757
757
|
}
|
|
758
758
|
let Dt;
|
|
759
759
|
const vt = (e = !0, t = !1, n = "window") => {
|
|
@@ -761,25 +761,25 @@ const vt = (e = !0, t = !1, n = "window") => {
|
|
|
761
761
|
return;
|
|
762
762
|
const [r, i] = C.useState(0) || [!1, () => {
|
|
763
763
|
}];
|
|
764
|
-
G(() => (
|
|
764
|
+
G(() => (a(), window.addEventListener("resize", l), () => {
|
|
765
765
|
clearTimeout(Dt), l.flush(), window.removeEventListener("resize", l);
|
|
766
766
|
}), n === "window" ? [] : [n]);
|
|
767
767
|
const u = () => {
|
|
768
768
|
if (n)
|
|
769
769
|
return n === "window" ? window.innerWidth : n.offsetWidth;
|
|
770
|
-
},
|
|
770
|
+
}, a = () => {
|
|
771
771
|
i(u());
|
|
772
772
|
}, l = Cn(
|
|
773
773
|
() => {
|
|
774
774
|
u() !== r && (t && (clearTimeout(Dt), document.body.classList.add("is-resizing"), Dt = setTimeout(() => {
|
|
775
775
|
document.body.classList.remove("is-resizing");
|
|
776
|
-
}, 550)),
|
|
776
|
+
}, 550)), a());
|
|
777
777
|
},
|
|
778
778
|
500,
|
|
779
779
|
{ leading: !0 }
|
|
780
780
|
);
|
|
781
781
|
return r;
|
|
782
|
-
},
|
|
782
|
+
}, Os = ({
|
|
783
783
|
scrollPosition: e = 0,
|
|
784
784
|
// The position on the page to scroll past
|
|
785
785
|
offset: t = { down: 0, up: 10 },
|
|
@@ -791,23 +791,23 @@ const vt = (e = !0, t = !1, n = "window") => {
|
|
|
791
791
|
if (!window)
|
|
792
792
|
return;
|
|
793
793
|
const [i, d] = C.useState({ current: 0, past: 0 }) || [!1, () => {
|
|
794
|
-
}], [u,
|
|
794
|
+
}], [u, a] = C.useState({ scrollDown: !1, scrollUp: !1 }) || [!1, () => {
|
|
795
795
|
}];
|
|
796
|
-
G(() => (l(), window.addEventListener("scroll",
|
|
797
|
-
|
|
796
|
+
G(() => (l(), window.addEventListener("scroll", o), () => {
|
|
797
|
+
o.flush(), window.removeEventListener("scroll", o);
|
|
798
798
|
}), []);
|
|
799
799
|
const l = () => {
|
|
800
800
|
const m = window.scrollY, c = i.current, h = m - c, p = h > 0 ? "down" : "up";
|
|
801
801
|
if (d({ current: m, past: c }), p === "down") {
|
|
802
|
-
m >= e + t.down && !u.scrollDown && (!u.scrollUp || h > t.up) && (n(),
|
|
802
|
+
m >= e + t.down && !u.scrollDown && (!u.scrollUp || h > t.up) && (n(), a({ scrollUp: !1, scrollDown: !0 }));
|
|
803
803
|
return;
|
|
804
804
|
}
|
|
805
|
-
Math.abs(h) >= t.up && !u.scrollUp && (r(),
|
|
806
|
-
},
|
|
805
|
+
Math.abs(h) >= t.up && !u.scrollUp && (r(), a({ scrollUp: !0, scrollDown: !1 }));
|
|
806
|
+
}, o = Cn(() => {
|
|
807
807
|
l();
|
|
808
808
|
}, 250);
|
|
809
809
|
return i;
|
|
810
|
-
},
|
|
810
|
+
}, Bs = (e = [], t = !0) => {
|
|
811
811
|
e = Array.isArray(e) ? e : [e];
|
|
812
812
|
const n = de(!1);
|
|
813
813
|
He(() => {
|
|
@@ -834,26 +834,26 @@ const vt = (e = !0, t = !1, n = "window") => {
|
|
|
834
834
|
break;
|
|
835
835
|
}
|
|
836
836
|
return r;
|
|
837
|
-
},
|
|
837
|
+
}, Qs = (e) => e.replace(/[A-Z]/g, (t) => `-${t.toLowerCase()}`), Hs = (e, t = "en") => new Date(e).toLocaleString(t, { day: "numeric", month: "short" }), Rn = (e, t = "en") => new Date(e).toLocaleString(t, {
|
|
838
838
|
weekday: "long",
|
|
839
839
|
day: "numeric",
|
|
840
840
|
month: "short",
|
|
841
841
|
year: "numeric"
|
|
842
842
|
}), Gt = (e) => {
|
|
843
843
|
let d;
|
|
844
|
-
const u = _n(),
|
|
844
|
+
const u = _n(), a = _n(new Date(e));
|
|
845
845
|
try {
|
|
846
|
-
d = u.getTime() -
|
|
846
|
+
d = u.getTime() - a.getTime();
|
|
847
847
|
} catch {
|
|
848
848
|
return "";
|
|
849
849
|
}
|
|
850
|
-
const l = d / 36e5,
|
|
851
|
-
if (
|
|
850
|
+
const l = d / 36e5, o = Math.floor(d / 864e5);
|
|
851
|
+
if (o < 1)
|
|
852
852
|
return l < 1 ? { path: "now" } : { path: "hours", number: Math.floor(l) };
|
|
853
|
-
if (
|
|
854
|
-
return { path: "days", number:
|
|
855
|
-
const m = Math.floor(
|
|
856
|
-
return m <= 52 ? { path: "weeks", number: m } : { path: "years", number: Math.floor(
|
|
853
|
+
if (o < 7)
|
|
854
|
+
return { path: "days", number: o };
|
|
855
|
+
const m = Math.floor(o / 7);
|
|
856
|
+
return m <= 52 ? { path: "weeks", number: m } : { path: "years", number: Math.floor(o / 365) };
|
|
857
857
|
}, _n = (e) => {
|
|
858
858
|
const n = (e || /* @__PURE__ */ new Date()).toUTCString();
|
|
859
859
|
return new Date(n);
|
|
@@ -1174,35 +1174,35 @@ Thank you for helping to protect the Apolitical community from abusive content.`
|
|
|
1174
1174
|
signup_success_text: "<p>Once we've vetted your application, you'll get a secure login link to help you get started.</p><p>Please note that trust is everything to our community, so you can't login until your identity has been verified.</p>",
|
|
1175
1175
|
tags_community: "From the community",
|
|
1176
1176
|
tooltip_loading: "Loading..."
|
|
1177
|
-
},
|
|
1177
|
+
}, Us = {
|
|
1178
1178
|
languageSwitcher_label: "Me gustaría leer este artículo en...",
|
|
1179
1179
|
languageSwitcher_translation_original: "idioma original",
|
|
1180
1180
|
languageSwitcher_translation_human: "traducido por un humano",
|
|
1181
1181
|
languageSwitcher_translation_machine: "traducido por máquina",
|
|
1182
1182
|
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>"
|
|
1183
|
-
},
|
|
1183
|
+
}, Ws = {
|
|
1184
1184
|
collapsibleSection_summary: "En savoir plus",
|
|
1185
1185
|
languageSwitcher_label: "Je voudrais lire cet article dans...",
|
|
1186
1186
|
languageSwitcher_translation_original: "langue originale",
|
|
1187
1187
|
languageSwitcher_translation_human: "traduit par un humain",
|
|
1188
1188
|
languageSwitcher_translation_machine: "traduit par machine",
|
|
1189
1189
|
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>"
|
|
1190
|
-
},
|
|
1190
|
+
}, zs = {
|
|
1191
1191
|
languageSwitcher_label: "Eu gostaria de ler este artigo em...",
|
|
1192
1192
|
languageSwitcher_translation_original: "linguagem original",
|
|
1193
1193
|
languageSwitcher_translation_human: "traduzido por um humano",
|
|
1194
1194
|
languageSwitcher_translation_machine: "traduzido por máquina",
|
|
1195
1195
|
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>"
|
|
1196
|
-
},
|
|
1196
|
+
}, Vs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1197
1197
|
__proto__: null,
|
|
1198
1198
|
en: qt,
|
|
1199
|
-
es:
|
|
1200
|
-
fr:
|
|
1201
|
-
pt:
|
|
1199
|
+
es: Us,
|
|
1200
|
+
fr: Ws,
|
|
1201
|
+
pt: zs
|
|
1202
1202
|
}, Symbol.toStringTag, { value: "Module" })), Fn = (e) => e in qt, Te = (e, t, n, r, i = {}) => {
|
|
1203
1203
|
let d = "";
|
|
1204
1204
|
return Fn(`${t}_${n}`) ? d = e({ id: `${t}_${n}` }, i) : d = e({ id: t }, { [r]: n, ...i }), d;
|
|
1205
|
-
},
|
|
1205
|
+
}, Ys = (e, t, n) => {
|
|
1206
1206
|
if (!e || e === 0)
|
|
1207
1207
|
return "0";
|
|
1208
1208
|
t || (t = 0), n || (n = ["k", "m", "b", "t"]);
|
|
@@ -1216,18 +1216,18 @@ Thank you for helping to protect the Apolitical community from abusive content.`
|
|
|
1216
1216
|
}
|
|
1217
1217
|
}
|
|
1218
1218
|
return r;
|
|
1219
|
-
},
|
|
1219
|
+
}, Gs = (e = 0) => {
|
|
1220
1220
|
setTimeout(() => {
|
|
1221
1221
|
const t = document.querySelector(".splash-screen");
|
|
1222
1222
|
t && t.remove(), window.prerenderReady = !0;
|
|
1223
1223
|
}, e);
|
|
1224
|
-
},
|
|
1224
|
+
}, Js = (e) => e.replace(/\s+/g, "").length > 0, Xs = (e, t) => {
|
|
1225
1225
|
Array.isArray(t) || (t = [t]);
|
|
1226
1226
|
const n = xs(e);
|
|
1227
1227
|
return t.forEach(({ type: r, value: i }) => {
|
|
1228
1228
|
bs(n, r, i);
|
|
1229
1229
|
}), n;
|
|
1230
|
-
},
|
|
1230
|
+
}, Zs = (e) => new Promise((t) => setTimeout(t, e)), ut = (e, t) => C.Children.map(e, (n) => C.cloneElement(n, {
|
|
1231
1231
|
...t
|
|
1232
1232
|
})), W = ({
|
|
1233
1233
|
variant: e = "primary",
|
|
@@ -1237,9 +1237,9 @@ Thank you for helping to protect the Apolitical community from abusive content.`
|
|
|
1237
1237
|
href: i = !1,
|
|
1238
1238
|
element: d = "button",
|
|
1239
1239
|
onClick: u = !1,
|
|
1240
|
-
className:
|
|
1240
|
+
className: a = "",
|
|
1241
1241
|
disabled: l = !1,
|
|
1242
|
-
screenreaderText:
|
|
1242
|
+
screenreaderText: o = !1,
|
|
1243
1243
|
children: m = !1,
|
|
1244
1244
|
...c
|
|
1245
1245
|
}) => {
|
|
@@ -1252,7 +1252,7 @@ Thank you for helping to protect the Apolitical community from abusive content.`
|
|
|
1252
1252
|
typeof t == "string" && g.push(t), r && (g.push("icon"), typeof r == "object" ? (g.push(r.icon), r.position ? g.push(r.position) : g.push("left"), r.hover && g.push(`hover_${r.hover}`), r.animate && (g.push("animate"), typeof r.animate == "string" && g.push(r.animate))) : (g.push(r), !r.includes("right") && !r.includes("left") && g.push("left"))), n.muted && g.push("muted"), n.fullWidth && g.push("full-width");
|
|
1253
1253
|
const b = {
|
|
1254
1254
|
...c,
|
|
1255
|
-
className: S(e,
|
|
1255
|
+
className: S(e, a, g, {
|
|
1256
1256
|
"no-text": !m,
|
|
1257
1257
|
disabled: l,
|
|
1258
1258
|
button: i
|
|
@@ -1265,7 +1265,7 @@ Thank you for helping to protect the Apolitical community from abusive content.`
|
|
|
1265
1265
|
return i && (d = "a", b.href = i), C.createElement(
|
|
1266
1266
|
d,
|
|
1267
1267
|
b,
|
|
1268
|
-
m || (
|
|
1268
|
+
m || (o ? /* @__PURE__ */ s.jsx(_e, { showOnFocus: !1, children: o }) : null)
|
|
1269
1269
|
);
|
|
1270
1270
|
}, kt = ({ buttons: e, className: t = "", ...n }) => {
|
|
1271
1271
|
const r = e.length > 1 ? "ul" : "p", i = e.map((d, u) => r === "p" ? /* @__PURE__ */ s.jsx(W, { ...d }, u) : /* @__PURE__ */ s.jsx("li", { children: /* @__PURE__ */ s.jsx(W, { ...d }) }, u));
|
|
@@ -1282,10 +1282,10 @@ const Ue = ({ className: e = "", maxWidth: t = !1 }) => {
|
|
|
1282
1282
|
onClick: i,
|
|
1283
1283
|
gtmContext: d,
|
|
1284
1284
|
gtmType: u,
|
|
1285
|
-
...
|
|
1285
|
+
...a
|
|
1286
1286
|
}) => {
|
|
1287
1287
|
if (e) {
|
|
1288
|
-
const l = { ...
|
|
1288
|
+
const l = { ...a };
|
|
1289
1289
|
return i && (l.onClick = i), d && (l["data-gtm-event-context"] = d), u && (l["data-gtm-event-type"] = u), /* @__PURE__ */ s.jsx(
|
|
1290
1290
|
"a",
|
|
1291
1291
|
{
|
|
@@ -1296,7 +1296,7 @@ const Ue = ({ className: e = "", maxWidth: t = !1 }) => {
|
|
|
1296
1296
|
}
|
|
1297
1297
|
);
|
|
1298
1298
|
}
|
|
1299
|
-
return n ? C.createElement(n, { children: t, className: r, ...
|
|
1299
|
+
return n ? C.createElement(n, { children: t, className: r, ...a }) : t;
|
|
1300
1300
|
}, xn = {
|
|
1301
1301
|
card: {
|
|
1302
1302
|
range: [
|
|
@@ -1400,17 +1400,17 @@ const Ue = ({ className: e = "", maxWidth: t = !1 }) => {
|
|
|
1400
1400
|
],
|
|
1401
1401
|
sizes: "(min-width: 1024px) 453px, 20vw"
|
|
1402
1402
|
}
|
|
1403
|
-
},
|
|
1403
|
+
}, Ks = ({
|
|
1404
1404
|
aspect: e,
|
|
1405
1405
|
range: t,
|
|
1406
1406
|
sizes: n
|
|
1407
1407
|
}) => {
|
|
1408
1408
|
const { range: r, sizes: i } = e ? xn[e] : xn.fallback;
|
|
1409
1409
|
return { range: t && t.length > 0 ? t : r, sizes: n || i };
|
|
1410
|
-
},
|
|
1410
|
+
}, qs = ({ format: e, height: t, query: n, width: r }) => {
|
|
1411
1411
|
let i = `w=${r}&h=${t}`;
|
|
1412
1412
|
return i = e ? `${i}&fm=${e}` : i, i = n ? `${i}&${n}` : i, i;
|
|
1413
|
-
}, Ct = ({ format: e, range: t, url: n, query: r }) => t.map(({ height: i, width: d }) => `${n}?${
|
|
1413
|
+
}, Ct = ({ format: e, range: t, url: n, query: r }) => t.map(({ height: i, width: d }) => `${n}?${qs({
|
|
1414
1414
|
format: e,
|
|
1415
1415
|
height: i,
|
|
1416
1416
|
query: r,
|
|
@@ -1422,12 +1422,12 @@ const Ln = ({ image: e, className: t, testId: n }) => {
|
|
|
1422
1422
|
height: i,
|
|
1423
1423
|
type: d,
|
|
1424
1424
|
query: u,
|
|
1425
|
-
url:
|
|
1425
|
+
url: a,
|
|
1426
1426
|
width: l,
|
|
1427
|
-
loading:
|
|
1427
|
+
loading: o,
|
|
1428
1428
|
decoding: m,
|
|
1429
1429
|
fetchPriority: c
|
|
1430
|
-
} = e, { range: h, sizes: p } =
|
|
1430
|
+
} = e, { range: h, sizes: p } = Ks(e), g = Ct({ format: "avif", query: u, range: h, url: a }), b = Ct({ format: "webp", query: u, range: h, url: a }), v = Ct({ format: "", query: u, range: h, url: a });
|
|
1431
1431
|
return /* @__PURE__ */ s.jsxs("picture", { className: t, children: [
|
|
1432
1432
|
d !== "image/gif" && /* @__PURE__ */ s.jsx(
|
|
1433
1433
|
"source",
|
|
@@ -1452,9 +1452,9 @@ const Ln = ({ image: e, className: t, testId: n }) => {
|
|
|
1452
1452
|
{
|
|
1453
1453
|
srcSet: v,
|
|
1454
1454
|
sizes: p,
|
|
1455
|
-
src:
|
|
1455
|
+
src: a,
|
|
1456
1456
|
alt: r,
|
|
1457
|
-
loading:
|
|
1457
|
+
loading: o || "lazy",
|
|
1458
1458
|
decoding: m || "async",
|
|
1459
1459
|
fetchpriority: c || "auto",
|
|
1460
1460
|
width: l,
|
|
@@ -1465,17 +1465,17 @@ const Ln = ({ image: e, className: t, testId: n }) => {
|
|
|
1465
1465
|
] });
|
|
1466
1466
|
};
|
|
1467
1467
|
let Je = !1;
|
|
1468
|
-
const
|
|
1468
|
+
const er = ({ isOpen: e = !1, isLoading: t = !1, children: n }) => {
|
|
1469
1469
|
const r = D(), i = de(null), [d, u] = P("hidden");
|
|
1470
1470
|
G(() => {
|
|
1471
1471
|
const l = i.current;
|
|
1472
1472
|
if (l)
|
|
1473
|
-
return l.addEventListener("transitionend",
|
|
1474
|
-
l.removeEventListener("transitionend",
|
|
1473
|
+
return l.addEventListener("transitionend", a), () => {
|
|
1474
|
+
l.removeEventListener("transitionend", a);
|
|
1475
1475
|
};
|
|
1476
1476
|
}, []);
|
|
1477
|
-
const
|
|
1478
|
-
l === "opacity" && (Je !== !1 && clearTimeout(Je), u((
|
|
1477
|
+
const a = ({ propertyName: l }) => {
|
|
1478
|
+
l === "opacity" && (Je !== !1 && clearTimeout(Je), u((o) => o === "opening" ? "open" : o === "closing" ? "closed" : o === "closed" ? "hidden" : o));
|
|
1479
1479
|
};
|
|
1480
1480
|
return He(() => {
|
|
1481
1481
|
Je !== !1 && clearTimeout(Je);
|
|
@@ -1486,7 +1486,7 @@ const qs = ({ isOpen: e = !1, isLoading: t = !1, children: n }) => {
|
|
|
1486
1486
|
}, [e]), /* @__PURE__ */ s.jsx("aside", { ref: i, className: S("tooltip text-medium", d, { loading: t }), hidden: d === "hidden", children: t ? /* @__PURE__ */ s.jsx("p", { children: r.formatMessage({ id: "tooltip_loading" }) }) : typeof n == "string" ? /* @__PURE__ */ s.jsx("p", { children: n }) : n });
|
|
1487
1487
|
};
|
|
1488
1488
|
const en = ({ children: e, className: t = "", ...n }) => /* @__PURE__ */ s.jsx("section", { className: S("full-width-section", t), ...n, children: e });
|
|
1489
|
-
const
|
|
1489
|
+
const Ba = ({ text: e, buttons: t, className: n = "" }) => {
|
|
1490
1490
|
const r = [];
|
|
1491
1491
|
return t.forEach((i) => {
|
|
1492
1492
|
r.push({
|
|
@@ -1504,7 +1504,7 @@ const Qo = ({ text: e, buttons: t, className: n = "" }) => {
|
|
|
1504
1504
|
/* @__PURE__ */ s.jsx(kt, { buttons: r })
|
|
1505
1505
|
] }) });
|
|
1506
1506
|
};
|
|
1507
|
-
const
|
|
1507
|
+
const Qa = ({ title: e = !1, logos: t = [], className: n = "" }) => {
|
|
1508
1508
|
const r = t.length;
|
|
1509
1509
|
if (r === 0)
|
|
1510
1510
|
return null;
|
|
@@ -1519,7 +1519,7 @@ const Ho = ({ title: e = !1, logos: t = [], className: n = "" }) => {
|
|
|
1519
1519
|
{
|
|
1520
1520
|
className: S({ "two-col": r === 2 || r === 4, "three-col": r === 5 || r <= 10 && r % 3 === 0 }),
|
|
1521
1521
|
children: t.map(
|
|
1522
|
-
({ logo: d, nameOfBusiness: u, link:
|
|
1522
|
+
({ logo: d, nameOfBusiness: u, link: a = !1, description: l = !1 }, o) => {
|
|
1523
1523
|
if (!d || !d.url)
|
|
1524
1524
|
return null;
|
|
1525
1525
|
const m = /* @__PURE__ */ s.jsx(
|
|
@@ -1532,24 +1532,24 @@ const Ho = ({ title: e = !1, logos: t = [], className: n = "" }) => {
|
|
|
1532
1532
|
}
|
|
1533
1533
|
);
|
|
1534
1534
|
return /* @__PURE__ */ s.jsxs("li", { children: [
|
|
1535
|
-
/* @__PURE__ */ s.jsx("p", { className: "img-wrapper", children:
|
|
1535
|
+
/* @__PURE__ */ s.jsx("p", { className: "img-wrapper", children: a ? /* @__PURE__ */ s.jsx(
|
|
1536
1536
|
"a",
|
|
1537
1537
|
{
|
|
1538
|
-
href:
|
|
1538
|
+
href: a,
|
|
1539
1539
|
target: "_blank",
|
|
1540
1540
|
rel: "nofollow noreferrer noopener",
|
|
1541
1541
|
children: m
|
|
1542
1542
|
}
|
|
1543
1543
|
) : m }),
|
|
1544
1544
|
l && /* @__PURE__ */ s.jsx("small", { children: l })
|
|
1545
|
-
] }, window.btoa(`${d.url}_${
|
|
1545
|
+
] }, window.btoa(`${d.url}_${o}`));
|
|
1546
1546
|
}
|
|
1547
1547
|
)
|
|
1548
1548
|
}
|
|
1549
1549
|
)
|
|
1550
1550
|
] });
|
|
1551
1551
|
};
|
|
1552
|
-
const
|
|
1552
|
+
const tr = [
|
|
1553
1553
|
"small",
|
|
1554
1554
|
"span",
|
|
1555
1555
|
"strong",
|
|
@@ -1563,7 +1563,7 @@ const er = [
|
|
|
1563
1563
|
"h6",
|
|
1564
1564
|
"blockquote",
|
|
1565
1565
|
"q"
|
|
1566
|
-
],
|
|
1566
|
+
], nr = ({
|
|
1567
1567
|
className: e = "",
|
|
1568
1568
|
content: t,
|
|
1569
1569
|
image: n,
|
|
@@ -1575,9 +1575,9 @@ const er = [
|
|
|
1575
1575
|
text: !1
|
|
1576
1576
|
},
|
|
1577
1577
|
cta: u,
|
|
1578
|
-
children:
|
|
1578
|
+
children: a
|
|
1579
1579
|
}) => {
|
|
1580
|
-
const l = ["eyebrow", "title", "text"],
|
|
1580
|
+
const l = ["eyebrow", "title", "text"], o = { eyebrow: "small", title: "h1", text: "p" }, m = {};
|
|
1581
1581
|
return l.forEach((c) => {
|
|
1582
1582
|
if (!t[c]) {
|
|
1583
1583
|
m[c] = !1;
|
|
@@ -1587,17 +1587,17 @@ const er = [
|
|
|
1587
1587
|
if (typeof t[c] == "object") {
|
|
1588
1588
|
m[c] = t[c];
|
|
1589
1589
|
const { text: h, element: p } = t[c];
|
|
1590
|
-
if (p &&
|
|
1590
|
+
if (p && tr.includes(p.toLowerCase()))
|
|
1591
1591
|
return;
|
|
1592
1592
|
m[c] = {
|
|
1593
1593
|
text: h,
|
|
1594
|
-
element:
|
|
1594
|
+
element: o[c]
|
|
1595
1595
|
};
|
|
1596
1596
|
return;
|
|
1597
1597
|
}
|
|
1598
1598
|
m[c] = {
|
|
1599
1599
|
text: t[c],
|
|
1600
|
-
element:
|
|
1600
|
+
element: o[c]
|
|
1601
1601
|
};
|
|
1602
1602
|
}
|
|
1603
1603
|
}), u && u.link && u.link[0] === "#" && (u.props || (u.props = {}), u.props.onClick = (c) => {
|
|
@@ -1624,7 +1624,7 @@ const er = [
|
|
|
1624
1624
|
}
|
|
1625
1625
|
return null;
|
|
1626
1626
|
}),
|
|
1627
|
-
|
|
1627
|
+
a,
|
|
1628
1628
|
u && u.text && u.link && /* @__PURE__ */ s.jsx(
|
|
1629
1629
|
W,
|
|
1630
1630
|
{
|
|
@@ -1640,8 +1640,8 @@ const er = [
|
|
|
1640
1640
|
] })
|
|
1641
1641
|
}
|
|
1642
1642
|
);
|
|
1643
|
-
},
|
|
1644
|
-
const
|
|
1643
|
+
}, Ha = We(nr);
|
|
1644
|
+
const Ua = ({
|
|
1645
1645
|
variant: e = "primary",
|
|
1646
1646
|
button: t = null,
|
|
1647
1647
|
title: n,
|
|
@@ -1658,8 +1658,8 @@ const Wo = ({
|
|
|
1658
1658
|
default: "dpo@apolitical.co",
|
|
1659
1659
|
eu: "dpo.agl@apolitical.foundation"
|
|
1660
1660
|
}
|
|
1661
|
-
},
|
|
1662
|
-
const
|
|
1661
|
+
}, Wa = "200,000+";
|
|
1662
|
+
const In = ({ label: e = !1, className: t = "", children: n }) => {
|
|
1663
1663
|
const r = D();
|
|
1664
1664
|
return /* @__PURE__ */ s.jsxs("details", { className: S("collapsible-section", t), children: [
|
|
1665
1665
|
/* @__PURE__ */ s.jsx("summary", { children: e || r.formatMessage({ id: "collapsibleSection_summary" }) }),
|
|
@@ -1680,9 +1680,9 @@ const yt = ({
|
|
|
1680
1680
|
i = Pn(u, h, c);
|
|
1681
1681
|
}
|
|
1682
1682
|
const {
|
|
1683
|
-
breakpoints:
|
|
1683
|
+
breakpoints: a,
|
|
1684
1684
|
text: l = "",
|
|
1685
|
-
component:
|
|
1685
|
+
component: o,
|
|
1686
1686
|
...m
|
|
1687
1687
|
} = n;
|
|
1688
1688
|
return /* @__PURE__ */ s.jsx(
|
|
@@ -1692,7 +1692,7 @@ const yt = ({
|
|
|
1692
1692
|
className: S("empty-state-box", e, r),
|
|
1693
1693
|
children: /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
|
|
1694
1694
|
t && /* @__PURE__ */ s.jsx(bt, { options: { forceBlock: !0 }, children: t }),
|
|
1695
|
-
i && typeof n == "object" && (
|
|
1695
|
+
i && typeof n == "object" && (o || /* @__PURE__ */ s.jsx(
|
|
1696
1696
|
W,
|
|
1697
1697
|
{
|
|
1698
1698
|
...m,
|
|
@@ -1704,10 +1704,10 @@ const yt = ({
|
|
|
1704
1704
|
}
|
|
1705
1705
|
);
|
|
1706
1706
|
};
|
|
1707
|
-
const Jt = ({ children: e, ...t }) => /* @__PURE__ */ s.jsx("p", { ...t, children: e }),
|
|
1707
|
+
const Jt = ({ children: e, ...t }) => /* @__PURE__ */ s.jsx("p", { ...t, children: e }), On = { q: Jt, blockquote: Jt };
|
|
1708
1708
|
for (let e = 1; e <= 6; e++)
|
|
1709
|
-
|
|
1710
|
-
const
|
|
1709
|
+
On[`h${e}`] = { component: Jt, props: { className: "title" } };
|
|
1710
|
+
const sr = ({ type: e = "default", className: t = "", heading: n = !1, children: r }) => /* @__PURE__ */ s.jsxs("div", { className: S("helper-text-box text-small", e, t), children: [
|
|
1711
1711
|
n && /* @__PURE__ */ s.jsx("p", { className: "title", children: n }),
|
|
1712
1712
|
typeof r == "string" ? /* @__PURE__ */ s.jsx(
|
|
1713
1713
|
bt,
|
|
@@ -1715,14 +1715,14 @@ const nr = ({ type: e = "default", className: t = "", heading: n = !1, children:
|
|
|
1715
1715
|
options: {
|
|
1716
1716
|
wrapper: C.Fragment,
|
|
1717
1717
|
forceBlock: !0,
|
|
1718
|
-
overrides:
|
|
1718
|
+
overrides: On
|
|
1719
1719
|
},
|
|
1720
1720
|
children: r
|
|
1721
1721
|
}
|
|
1722
1722
|
) : /* @__PURE__ */ s.jsx("p", { children: r })
|
|
1723
1723
|
] });
|
|
1724
|
-
const
|
|
1725
|
-
const d = D(), u = de(null), [
|
|
1724
|
+
const za = ({ className: e = "", show: t = !1, hide: n = !1, text: r, children: i }) => {
|
|
1725
|
+
const d = D(), u = de(null), [a, l] = P(""), [o, m] = P("closed");
|
|
1726
1726
|
G(() => {
|
|
1727
1727
|
const p = u.current;
|
|
1728
1728
|
if (p)
|
|
@@ -1737,18 +1737,18 @@ const Vo = ({ className: e = "", show: t = !1, hide: n = !1, text: r, children:
|
|
|
1737
1737
|
l(p.length < 3 ? `${r.substring(0, 400)}...` : p.slice(0, 3).join(`
|
|
1738
1738
|
`));
|
|
1739
1739
|
}, [r]), G(() => {
|
|
1740
|
-
|
|
1741
|
-
}, [
|
|
1740
|
+
o === "ready-to-close" && m("closing");
|
|
1741
|
+
}, [o]);
|
|
1742
1742
|
const c = ({ propertyName: p }) => {
|
|
1743
1743
|
p === "max-height" && m((g) => g === "opening" ? "open" : g === "closing" ? "closed" : g);
|
|
1744
1744
|
};
|
|
1745
1745
|
if (!r)
|
|
1746
1746
|
return null;
|
|
1747
|
-
const h = ["opening", "open"].includes(
|
|
1747
|
+
const h = ["opening", "open"].includes(o);
|
|
1748
1748
|
return /* @__PURE__ */ s.jsxs(Re, { variant: "subtle", className: S("hide-show-text-box", e), children: [
|
|
1749
|
-
/* @__PURE__ */ s.jsxs("div", { ref: u, className: S("content",
|
|
1750
|
-
/* @__PURE__ */ s.jsx(bt, { options: { forceBlock: !0 }, children:
|
|
1751
|
-
|
|
1749
|
+
/* @__PURE__ */ s.jsxs("div", { ref: u, className: S("content", o), children: [
|
|
1750
|
+
/* @__PURE__ */ s.jsx(bt, { options: { forceBlock: !0 }, children: o === "closed" ? a : r }),
|
|
1751
|
+
o !== "closed" && i
|
|
1752
1752
|
] }),
|
|
1753
1753
|
/* @__PURE__ */ s.jsx("p", { className: "cta", children: /* @__PURE__ */ s.jsx(
|
|
1754
1754
|
W,
|
|
@@ -1764,7 +1764,7 @@ const Vo = ({ className: e = "", show: t = !1, hide: n = !1, text: r, children:
|
|
|
1764
1764
|
}
|
|
1765
1765
|
) })
|
|
1766
1766
|
] });
|
|
1767
|
-
},
|
|
1767
|
+
}, rr = () => C.Fragment, ar = ({ children: e }) => /* @__PURE__ */ s.jsx(Re, { variant: "secondary", children: e }), or = ["span", "strong", "h1", "h2", "h3", "h4", "h5", "h6", "p"], ir = ({ children: e }) => {
|
|
1768
1768
|
const t = D();
|
|
1769
1769
|
if (!e)
|
|
1770
1770
|
return null;
|
|
@@ -1776,8 +1776,8 @@ const Vo = ({ className: e = "", show: t = !1, hide: n = !1, text: r, children:
|
|
|
1776
1776
|
if (d.props && d.props.children) {
|
|
1777
1777
|
for (const u of zt.toArray(d.props.children))
|
|
1778
1778
|
if (!(!u || typeof u == "string" || typeof u == "number") && C.isValidElement(u)) {
|
|
1779
|
-
const
|
|
1780
|
-
if (or.includes(
|
|
1779
|
+
const a = u.type;
|
|
1780
|
+
if (or.includes(a)) {
|
|
1781
1781
|
for (n = u.props.children; typeof n != "string" && (Array.isArray(n) && n[0].props && n[0].props.children && n[0].props.children[0]); )
|
|
1782
1782
|
n = n[0].props.children[0];
|
|
1783
1783
|
break;
|
|
@@ -1788,14 +1788,14 @@ const Vo = ({ className: e = "", show: t = !1, hide: n = !1, text: r, children:
|
|
|
1788
1788
|
r.push(d);
|
|
1789
1789
|
const i = n ? n.toString() : "";
|
|
1790
1790
|
return /* @__PURE__ */ s.jsx(
|
|
1791
|
-
|
|
1791
|
+
In,
|
|
1792
1792
|
{
|
|
1793
1793
|
label: i,
|
|
1794
1794
|
className: ["Sources", "Resources"].includes(i) ? "discrete-links" : "",
|
|
1795
1795
|
children: r.map((d) => d)
|
|
1796
1796
|
}
|
|
1797
1797
|
);
|
|
1798
|
-
},
|
|
1798
|
+
}, cr = ({ children: e, ...t }) => {
|
|
1799
1799
|
if (t.class)
|
|
1800
1800
|
switch (t.class) {
|
|
1801
1801
|
case "casestudy":
|
|
@@ -1809,7 +1809,7 @@ const Vo = ({ className: e = "", show: t = !1, hide: n = !1, text: r, children:
|
|
|
1809
1809
|
return /* @__PURE__ */ s.jsx("div", { ...t, children: e });
|
|
1810
1810
|
}
|
|
1811
1811
|
return /* @__PURE__ */ s.jsx("div", { ...t, children: e });
|
|
1812
|
-
},
|
|
1812
|
+
}, lr = (e) => {
|
|
1813
1813
|
const t = D(), n = Date.now().toString();
|
|
1814
1814
|
let r = "default";
|
|
1815
1815
|
const i = e.src;
|
|
@@ -1821,7 +1821,7 @@ const Vo = ({ className: e = "", show: t = !1, hide: n = !1, text: r, children:
|
|
|
1821
1821
|
}, bn = (e) => {
|
|
1822
1822
|
let t = "";
|
|
1823
1823
|
return e && typeof e != "string" && typeof e != "number" && typeof e != "boolean" && "type" in e && (t = e.type), t;
|
|
1824
|
-
},
|
|
1824
|
+
}, dr = ({ children: e, ...t }) => {
|
|
1825
1825
|
let n = { ...t };
|
|
1826
1826
|
t.href && (t.href.includes("http:") || t.href.includes("https:")) && !t.target && (n.target = "_blank");
|
|
1827
1827
|
let r = e, i = !1;
|
|
@@ -1836,30 +1836,30 @@ const Vo = ({ className: e = "", show: t = !1, hide: n = !1, text: r, children:
|
|
|
1836
1836
|
break;
|
|
1837
1837
|
}
|
|
1838
1838
|
return i ? (n = { ...n, className: "button primary medium" }, /* @__PURE__ */ s.jsx("p", { className: "center", children: /* @__PURE__ */ s.jsx(W, { variant: "primary", size: "medium", ...n, children: r }) })) : /* @__PURE__ */ s.jsx("a", { ...n, children: r });
|
|
1839
|
-
},
|
|
1839
|
+
}, ur = ({ children: e }) => /* @__PURE__ */ s.jsx("span", { children: e });
|
|
1840
1840
|
const wn = ({ className: e = "", options: t = {}, children: n }) => {
|
|
1841
1841
|
n = n.replace(/^<br\/?>/, "");
|
|
1842
1842
|
const r = {
|
|
1843
1843
|
wrapper: C.Fragment,
|
|
1844
1844
|
forceBlock: !0,
|
|
1845
1845
|
overrides: {
|
|
1846
|
-
a:
|
|
1846
|
+
a: dr,
|
|
1847
1847
|
// Override psuedo-code
|
|
1848
1848
|
// We give the content team psuedo-code short cuts to use in Contentful
|
|
1849
|
-
CollapsibleSection:
|
|
1849
|
+
CollapsibleSection: In,
|
|
1850
1850
|
TextBox: Re,
|
|
1851
|
-
CaseStudy:
|
|
1851
|
+
CaseStudy: ar,
|
|
1852
1852
|
// Override embedded HTML
|
|
1853
1853
|
// Our content team previously used real HTML, which we need to tear out and replace with React components
|
|
1854
|
-
style:
|
|
1855
|
-
details:
|
|
1856
|
-
div:
|
|
1857
|
-
iframe:
|
|
1854
|
+
style: rr,
|
|
1855
|
+
details: ir,
|
|
1856
|
+
div: cr,
|
|
1857
|
+
iframe: lr
|
|
1858
1858
|
}
|
|
1859
1859
|
};
|
|
1860
1860
|
return /* @__PURE__ */ s.jsx("div", { className: S("markdown-text", e), children: /* @__PURE__ */ s.jsx(bt, { options: { ...r, ...t }, children: n }) });
|
|
1861
1861
|
};
|
|
1862
|
-
const
|
|
1862
|
+
const mr = ({
|
|
1863
1863
|
maxWidth: e = !1,
|
|
1864
1864
|
title: t,
|
|
1865
1865
|
subtitle: n,
|
|
@@ -1887,11 +1887,11 @@ const ft = ({
|
|
|
1887
1887
|
...i
|
|
1888
1888
|
}) => /* @__PURE__ */ s.jsx("span", { className: S("pill", e, t, n), ...i, children: r });
|
|
1889
1889
|
const Xt = ({ element: e = "p", children: t = null, className: n = "", ...r }) => C.createElement(e, { ...r, className: S("status-banner text-small", n), "aria-live": "assertive" }, t);
|
|
1890
|
-
const
|
|
1890
|
+
const fr = ({ progress: e = 0, text: t = !1, className: n = "" }) => {
|
|
1891
1891
|
const r = D(), i = e > 75 ? 100 : e > 50 ? 75 : e > 25 ? 50 : e > 5 ? 25 : 0, d = { "--progress": `${e}%` };
|
|
1892
1892
|
return /* @__PURE__ */ s.jsx("span", { className: S(`progress-bar section-${i}`, n), style: d, children: /* @__PURE__ */ s.jsx(_e, { children: t ? `${e} ${t}` : r.formatMessage({ id: "progressBar" }, { number: e }) }) });
|
|
1893
|
-
},
|
|
1894
|
-
const At = "loadingBlock_",
|
|
1893
|
+
}, hr = We(fr);
|
|
1894
|
+
const At = "loadingBlock_", pr = ({ progress: e = 0, steps: t = !1, className: n = "" }) => {
|
|
1895
1895
|
const r = D();
|
|
1896
1896
|
t || (t = {
|
|
1897
1897
|
0: { text: r.formatMessage({ id: `${At}loading` }) },
|
|
@@ -1900,8 +1900,8 @@ const At = "loadingBlock_", hr = ({ progress: e = 0, steps: t = !1, className: n
|
|
|
1900
1900
|
});
|
|
1901
1901
|
let i = null;
|
|
1902
1902
|
const d = Object.keys(t);
|
|
1903
|
-
for (let
|
|
1904
|
-
i = d[
|
|
1903
|
+
for (let a = 0; a < d.length && !(e < parseInt(d[a])); a++)
|
|
1904
|
+
i = d[a];
|
|
1905
1905
|
const u = i && t[i].icon ? { "--icon": `url(${mt}icons/${t[i].icon}.svg)` } : {};
|
|
1906
1906
|
return /* @__PURE__ */ s.jsxs(
|
|
1907
1907
|
Re,
|
|
@@ -1911,11 +1911,11 @@ const At = "loadingBlock_", hr = ({ progress: e = 0, steps: t = !1, className: n
|
|
|
1911
1911
|
style: u,
|
|
1912
1912
|
children: [
|
|
1913
1913
|
i && /* @__PURE__ */ s.jsx("span", { className: "step", children: t[i].text }),
|
|
1914
|
-
/* @__PURE__ */ s.jsx(
|
|
1914
|
+
/* @__PURE__ */ s.jsx(hr, { progress: e })
|
|
1915
1915
|
]
|
|
1916
1916
|
}
|
|
1917
1917
|
);
|
|
1918
|
-
},
|
|
1918
|
+
}, Va = We(pr);
|
|
1919
1919
|
const Se = ({ element: e = "div", className: t = "", ...n }) => /* @__PURE__ */ s.jsx(Dn, { element: e, className: S("loading-placeholder", t), ...n });
|
|
1920
1920
|
const Zt = {
|
|
1921
1921
|
header: ["logo", "link", "link", "search"],
|
|
@@ -1934,10 +1934,10 @@ const Zt = {
|
|
|
1934
1934
|
"cards-section",
|
|
1935
1935
|
"footer"
|
|
1936
1936
|
]
|
|
1937
|
-
}, Bn = (e, t) => e in Zt ? /* @__PURE__ */ s.jsx("div", { className: e, children: Zt[e].map((n, r) => Bn(n, r)) }, t) : /* @__PURE__ */ s.jsx(Se, { className: e }, t),
|
|
1937
|
+
}, Bn = (e, t) => e in Zt ? /* @__PURE__ */ s.jsx("div", { className: e, children: Zt[e].map((n, r) => Bn(n, r)) }, t) : /* @__PURE__ */ s.jsx(Se, { className: e }, t), Ya = ({ layout: e = "overview-page", ...t }) => /* @__PURE__ */ s.jsx("div", { className: S("loading-state", e), ...t, children: Zt[e].map((n, r) => Bn(n, r)) }), Qn = (e) => {
|
|
1938
1938
|
const t = e && e.toUpperCase().split(" ");
|
|
1939
1939
|
return Array.isArray(t) && t.length > 1 && t[0] !== "" ? t[1] === "" ? t[0][0] : t[0][0] + t[t.length - 1][0] : e ? e.substr(0, 1) : "";
|
|
1940
|
-
}, st = ["#5AB6A3", "#A2D7AF", "#806056", "#3962B3"],
|
|
1940
|
+
}, st = ["#5AB6A3", "#A2D7AF", "#806056", "#3962B3"], gr = (e) => {
|
|
1941
1941
|
const t = Math.ceil(26 / st.length), n = Qn(e).toLowerCase();
|
|
1942
1942
|
if (n === "")
|
|
1943
1943
|
return st[0];
|
|
@@ -1955,22 +1955,22 @@ const vn = 256, qe = ({
|
|
|
1955
1955
|
height: d = vn,
|
|
1956
1956
|
...u
|
|
1957
1957
|
}) => {
|
|
1958
|
-
const [
|
|
1958
|
+
const [a, l] = P(!1), o = de(null);
|
|
1959
1959
|
G(() => {
|
|
1960
|
-
const c =
|
|
1960
|
+
const c = o.current;
|
|
1961
1961
|
if (!c)
|
|
1962
1962
|
return;
|
|
1963
1963
|
const h = c.getContext("2d");
|
|
1964
1964
|
if (!h)
|
|
1965
1965
|
return;
|
|
1966
1966
|
const p = i, g = d;
|
|
1967
|
-
typeof window < "u" && window.devicePixelRatio && (c.width = p * window.devicePixelRatio, c.height = g * window.devicePixelRatio, h.scale(window.devicePixelRatio, window.devicePixelRatio)), h.fillStyle =
|
|
1967
|
+
typeof window < "u" && window.devicePixelRatio && (c.width = p * window.devicePixelRatio, c.height = g * window.devicePixelRatio, h.scale(window.devicePixelRatio, window.devicePixelRatio)), h.fillStyle = gr(n), h.fillRect(0, 0, p, g), h.font = `${p / 3}px Arial`, h.textAlign = "center", h.fillStyle = "white", h.fillText(Qn(n), p / 2, g / 1.6);
|
|
1968
1968
|
}, [n]);
|
|
1969
1969
|
let m = !1;
|
|
1970
|
-
return t && t !== "" && !
|
|
1970
|
+
return t && t !== "" && !a && (t.includes("http") || t.includes("//")) && (m = !0), /* @__PURE__ */ s.jsx(
|
|
1971
1971
|
"figure",
|
|
1972
1972
|
{
|
|
1973
|
-
className: S("profile-picture", e, { error:
|
|
1973
|
+
className: S("profile-picture", e, { error: a }),
|
|
1974
1974
|
...u,
|
|
1975
1975
|
children: m ? /* @__PURE__ */ s.jsx(
|
|
1976
1976
|
"img",
|
|
@@ -1983,7 +1983,7 @@ const vn = 256, qe = ({
|
|
|
1983
1983
|
width: i,
|
|
1984
1984
|
height: d
|
|
1985
1985
|
}
|
|
1986
|
-
) : /* @__PURE__ */ s.jsx("canvas", { ref:
|
|
1986
|
+
) : /* @__PURE__ */ s.jsx("canvas", { ref: o })
|
|
1987
1987
|
}
|
|
1988
1988
|
);
|
|
1989
1989
|
}, Hn = (e) => e === "apolitical" ? {
|
|
@@ -1997,7 +1997,7 @@ const vn = 256, qe = ({
|
|
|
1997
1997
|
country: e.location && e.location.country || "",
|
|
1998
1998
|
url: `/profiles/${e.id}`,
|
|
1999
1999
|
image: e.image && e.image.thumbnail
|
|
2000
|
-
},
|
|
2000
|
+
}, _r = ({
|
|
2001
2001
|
role: e = "",
|
|
2002
2002
|
organisation: t = "",
|
|
2003
2003
|
country: n = "",
|
|
@@ -2006,9 +2006,9 @@ const vn = 256, qe = ({
|
|
|
2006
2006
|
const i = e !== "", d = t !== "", u = n !== "";
|
|
2007
2007
|
if (!i && !d && !u)
|
|
2008
2008
|
return "";
|
|
2009
|
-
const
|
|
2010
|
-
let l = `${
|
|
2011
|
-
return l.length > r && (l =
|
|
2009
|
+
const a = `${e}${i && d ? ` — ${t}` : t}`;
|
|
2010
|
+
let l = `${a}${(i || d) && u ? `, ${n}` : n}`;
|
|
2011
|
+
return l.length > r && (l = a), l.length > r && (l = Qe(l, r)), l;
|
|
2012
2012
|
};
|
|
2013
2013
|
const tn = ({
|
|
2014
2014
|
element: e = "div",
|
|
@@ -2018,15 +2018,15 @@ const tn = ({
|
|
|
2018
2018
|
gtmType: i = "member-click",
|
|
2019
2019
|
className: d = ""
|
|
2020
2020
|
}) => {
|
|
2021
|
-
const u = D(),
|
|
2022
|
-
|
|
2023
|
-
const { name: l, url:
|
|
2021
|
+
const u = D(), a = Hn(t);
|
|
2022
|
+
a.name || (a.name = u.formatMessage({ id: `member_${typeof t == "string" ? t : "community"}` }));
|
|
2023
|
+
const { name: l, url: o, image: m } = a, c = _r(a), h = n && n.createdAt ? Gt(n.createdAt) : !1, p = n && n.createdAt ? Rn(n.createdAt) : "";
|
|
2024
2024
|
return C.createElement(e, {
|
|
2025
2025
|
className: S("member text-medium", d),
|
|
2026
2026
|
children: /* @__PURE__ */ s.jsxs(
|
|
2027
2027
|
jt,
|
|
2028
2028
|
{
|
|
2029
|
-
href:
|
|
2029
|
+
href: o,
|
|
2030
2030
|
gtmType: i,
|
|
2031
2031
|
gtmContext: r,
|
|
2032
2032
|
onClick: (g) => {
|
|
@@ -2059,18 +2059,18 @@ const kn = {
|
|
|
2059
2059
|
showGap: !0,
|
|
2060
2060
|
showPlaceholders: !1
|
|
2061
2061
|
},
|
|
2062
|
-
cutoff:
|
|
2062
|
+
cutoff: a = 2,
|
|
2063
2063
|
className: l = "",
|
|
2064
|
-
...
|
|
2064
|
+
...o
|
|
2065
2065
|
}) => {
|
|
2066
2066
|
const m = D();
|
|
2067
2067
|
return !n || n.length === 0 ? null : C.createElement(e, {
|
|
2068
|
-
...
|
|
2068
|
+
...o,
|
|
2069
2069
|
className: S("contributors", l, i, { "has-gap": d }),
|
|
2070
2070
|
children: /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
|
|
2071
2071
|
/* @__PURE__ */ s.jsx("ul", { children: n.map((c, h) => {
|
|
2072
2072
|
let p, g = "";
|
|
2073
|
-
if (h <
|
|
2073
|
+
if (h < a) {
|
|
2074
2074
|
const { name: b = "", image: v = "" } = Hn(c);
|
|
2075
2075
|
if (u)
|
|
2076
2076
|
return /* @__PURE__ */ s.jsx(Se, { element: "li", className: "contributor" }, h);
|
|
@@ -2083,15 +2083,15 @@ const kn = {
|
|
|
2083
2083
|
height: kn[i || "medium"]
|
|
2084
2084
|
}
|
|
2085
2085
|
);
|
|
2086
|
-
} else if (h ===
|
|
2087
|
-
const b = (t || n.length) -
|
|
2086
|
+
} else if (h === a) {
|
|
2087
|
+
const b = (t || n.length) - a;
|
|
2088
2088
|
p = /* @__PURE__ */ s.jsxs(
|
|
2089
2089
|
"small",
|
|
2090
2090
|
{
|
|
2091
2091
|
className: S({ "large-number": b > 99 }),
|
|
2092
2092
|
children: [
|
|
2093
2093
|
"+",
|
|
2094
|
-
|
|
2094
|
+
Ys(b, 0)
|
|
2095
2095
|
]
|
|
2096
2096
|
}
|
|
2097
2097
|
), g = "number-left";
|
|
@@ -2101,7 +2101,7 @@ const kn = {
|
|
|
2101
2101
|
r && /* @__PURE__ */ s.jsx("span", { className: "label", children: typeof r == "string" ? r : n.length === 1 ? typeof n[0] == "string" ? m.formatMessage({ id: `member_${n[0]}` }) : Qe(n[0].name || "", 20) : null })
|
|
2102
2102
|
] })
|
|
2103
2103
|
});
|
|
2104
|
-
},
|
|
2104
|
+
}, xr = ({ showDevTools: e = !0, children: t }) => {
|
|
2105
2105
|
const n = new ks({
|
|
2106
2106
|
// default options we would like on all queries can be overridden individually
|
|
2107
2107
|
defaultOptions: {
|
|
@@ -2118,15 +2118,15 @@ const kn = {
|
|
|
2118
2118
|
e && /* @__PURE__ */ s.jsx(ys, { initialIsOpen: !1 })
|
|
2119
2119
|
] });
|
|
2120
2120
|
};
|
|
2121
|
-
var
|
|
2122
|
-
function
|
|
2121
|
+
var br = Kt({ client: dt });
|
|
2122
|
+
function wr(e) {
|
|
2123
2123
|
var t = e.children, n = e.client, r = e.apiKey, i = e.options, d = xt(function() {
|
|
2124
2124
|
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 && i && 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 && (dt.__loaded && console.warn("[PostHog.js] was already loaded elsewhere. This may cause issues."), dt.init(r, i)), dt);
|
|
2125
2125
|
}, [n, r]);
|
|
2126
|
-
return C.createElement(
|
|
2126
|
+
return C.createElement(br.Provider, { value: { client: d } }, t);
|
|
2127
2127
|
}
|
|
2128
|
-
const
|
|
2129
|
-
|
|
2128
|
+
const vr = ({ children: e, user: t }) => t.isLoading ? null : process.env.REACT_APP_PUBLIC_POSTHOG_KEY ? /* @__PURE__ */ s.jsx(
|
|
2129
|
+
wr,
|
|
2130
2130
|
{
|
|
2131
2131
|
apiKey: atob(process.env.REACT_APP_PUBLIC_POSTHOG_KEY),
|
|
2132
2132
|
options: {
|
|
@@ -2142,62 +2142,62 @@ const wr = ({ children: e, user: t }) => t.isLoading ? null : process.env.REACT_
|
|
|
2142
2142
|
},
|
|
2143
2143
|
children: e
|
|
2144
2144
|
}
|
|
2145
|
-
) : e,
|
|
2145
|
+
) : e, kr = ({ children: e, locale: t, messages: n }) => {
|
|
2146
2146
|
const r = t || "en", i = {
|
|
2147
|
-
...
|
|
2147
|
+
...Vs[r],
|
|
2148
2148
|
...n || {}
|
|
2149
2149
|
};
|
|
2150
2150
|
return /* @__PURE__ */ s.jsx(ws, { locale: r, messages: i, children: e });
|
|
2151
|
-
}, $e = Kt(null),
|
|
2151
|
+
}, $e = Kt(null), jr = ({ children: e, user: t }) => /* @__PURE__ */ s.jsx($e.Provider, { value: t, children: e }), Ga = ({ bootstrap: e, children: t, intl: n }) => {
|
|
2152
2152
|
const [r, i] = P({ isLoading: !0 });
|
|
2153
2153
|
return G(() => {
|
|
2154
2154
|
e().then((d) => {
|
|
2155
|
-
i({ ...d, isLoading: !1 }),
|
|
2155
|
+
i({ ...d, isLoading: !1 }), Gs(5e3);
|
|
2156
2156
|
}).catch(() => i({ isLoading: !1 }));
|
|
2157
|
-
}, []), /* @__PURE__ */ s.jsx(
|
|
2157
|
+
}, []), /* @__PURE__ */ s.jsx(kr, { locale: n == null ? void 0 : n.locale, messages: n == null ? void 0 : n.messages, children: /* @__PURE__ */ s.jsx(Es, { children: /* @__PURE__ */ s.jsx(jr, { user: r, children: /* @__PURE__ */ s.jsx(xr, { children: /* @__PURE__ */ s.jsx(vr, { user: r, children: t }) }) }) }) });
|
|
2158
2158
|
};
|
|
2159
2159
|
const Pt = "joinCommunityButton", Wn = ({ isMember: e = !1, isShort: t = !1, functions: { join: n, leave: r } = { join: () => {
|
|
2160
2160
|
}, leave: () => {
|
|
2161
2161
|
} } }) => {
|
|
2162
|
-
const i = D(), d = je($e), u = d && typeof d.id == "string", [
|
|
2162
|
+
const i = D(), d = je($e), u = d && typeof d.id == "string", [a, l] = P(e), [o, m] = P(e ? "joined" : "notJoined");
|
|
2163
2163
|
G(() => {
|
|
2164
|
-
|
|
2165
|
-
}, [
|
|
2164
|
+
o === "joining" ? m("joined") : o === "leaving" && m("notJoined");
|
|
2165
|
+
}, [a]);
|
|
2166
2166
|
const c = {}, h = {};
|
|
2167
|
-
return
|
|
2167
|
+
return a && o !== "leaving" && (c["data-hover-text"] = i.formatMessage({ id: `${Pt}_leave` }), c["aria-label"] = i.formatMessage({ id: `${Pt}_member_aria` }), h["aria-hidden"] = "true"), /* @__PURE__ */ s.jsx(
|
|
2168
2168
|
W,
|
|
2169
2169
|
{
|
|
2170
|
-
variant:
|
|
2170
|
+
variant: a ? "secondary" : "primary",
|
|
2171
2171
|
size: "medium",
|
|
2172
2172
|
styling: { fullWidth: !0 },
|
|
2173
|
-
icon:
|
|
2173
|
+
icon: a && o !== "leaving" ? { icon: "tick", position: "left" } : !1,
|
|
2174
2174
|
onClick: async (p) => {
|
|
2175
|
-
u && (p.currentTarget.blur(),
|
|
2175
|
+
u && (p.currentTarget.blur(), a ? (m("leaving"), typeof r == "function" && await r()) : (m("joining"), typeof n == "function" && await n()), l(!a));
|
|
2176
2176
|
},
|
|
2177
|
-
className: S("join-community-button",
|
|
2177
|
+
className: S("join-community-button", o, { active: o === "joining" }),
|
|
2178
2178
|
disabled: !u,
|
|
2179
2179
|
...c,
|
|
2180
|
-
children: /* @__PURE__ */ s.jsx("span", { className: "text", ...h, children: i.formatMessage({ id: `${Pt}${["joining", "leaving"].includes(
|
|
2180
|
+
children: /* @__PURE__ */ s.jsx("span", { className: "text", ...h, children: i.formatMessage({ id: `${Pt}${["joining", "leaving"].includes(o) ? `_${o}` : a ? "_member" : t ? "_short" : ""}` }) })
|
|
2181
2181
|
}
|
|
2182
2182
|
);
|
|
2183
2183
|
};
|
|
2184
|
-
const Rt = "communityDetails_",
|
|
2184
|
+
const Rt = "communityDetails_", Ja = ({
|
|
2185
2185
|
className: e = "",
|
|
2186
2186
|
isMember: t = !1,
|
|
2187
2187
|
slug: n,
|
|
2188
2188
|
members: { number: r = 0, data: i = [] } = { number: 0, data: [] },
|
|
2189
2189
|
functions: { invite: d, ...u }
|
|
2190
2190
|
}) => {
|
|
2191
|
-
const
|
|
2191
|
+
const a = D(), l = 5, o = r || i.length, m = i.length ? i : Array(l).fill({});
|
|
2192
2192
|
return /* @__PURE__ */ s.jsxs("div", { className: S("community-details", e), children: [
|
|
2193
2193
|
/* @__PURE__ */ s.jsx(Ue, {}),
|
|
2194
2194
|
/* @__PURE__ */ s.jsxs("div", { className: "member-details", children: [
|
|
2195
2195
|
/* @__PURE__ */ s.jsxs("div", { className: "top", children: [
|
|
2196
2196
|
/* @__PURE__ */ s.jsxs("h3", { children: [
|
|
2197
|
-
|
|
2198
|
-
/* @__PURE__ */ s.jsx("span", { className: "count", children:
|
|
2197
|
+
a.formatMessage({ id: `${Rt}members` }),
|
|
2198
|
+
/* @__PURE__ */ s.jsx("span", { className: "count", children: o })
|
|
2199
2199
|
] }),
|
|
2200
|
-
/* @__PURE__ */ s.jsx("p", { className: "text-small", children: /* @__PURE__ */ s.jsx("a", { href: `/communities/${n}/members`, children:
|
|
2200
|
+
/* @__PURE__ */ s.jsx("p", { className: "text-small", children: /* @__PURE__ */ s.jsx("a", { href: `/communities/${n}/members`, children: a.formatMessage({ id: `${Rt}viewAll` }) }) })
|
|
2201
2201
|
] }),
|
|
2202
2202
|
/* @__PURE__ */ s.jsx(
|
|
2203
2203
|
Un,
|
|
@@ -2209,7 +2209,7 @@ const Rt = "communityDetails_", Xo = ({
|
|
|
2209
2209
|
styling: {
|
|
2210
2210
|
size: "medium",
|
|
2211
2211
|
showGap: !0,
|
|
2212
|
-
showPlaceholders:
|
|
2212
|
+
showPlaceholders: o === 0
|
|
2213
2213
|
},
|
|
2214
2214
|
cutoff: l
|
|
2215
2215
|
}
|
|
@@ -2223,12 +2223,12 @@ const Rt = "communityDetails_", Xo = ({
|
|
|
2223
2223
|
onClick: d,
|
|
2224
2224
|
icon: { icon: "plus" },
|
|
2225
2225
|
styling: { fullWidth: !0 },
|
|
2226
|
-
children:
|
|
2226
|
+
children: a.formatMessage({ id: `${Rt}invite` })
|
|
2227
2227
|
}
|
|
2228
2228
|
)
|
|
2229
2229
|
] });
|
|
2230
2230
|
};
|
|
2231
|
-
const
|
|
2231
|
+
const Xa = ({
|
|
2232
2232
|
breadcrumbs: e,
|
|
2233
2233
|
cutoff: t = 20,
|
|
2234
2234
|
className: n = ""
|
|
@@ -2236,13 +2236,13 @@ const Zo = ({
|
|
|
2236
2236
|
const r = D();
|
|
2237
2237
|
return /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
|
|
2238
2238
|
/* @__PURE__ */ s.jsx(_e, { element: "p", children: r.formatMessage({ id: "breadcrumbs_label" }) }),
|
|
2239
|
-
/* @__PURE__ */ s.jsx("ul", { className: S("breadcrumbs text-small", n), children: e.map(({ text: i, href: d, current: u = !1 },
|
|
2239
|
+
/* @__PURE__ */ s.jsx("ul", { className: S("breadcrumbs text-small", n), children: e.map(({ text: i, href: d, current: u = !1 }, a) => /* @__PURE__ */ s.jsxs("li", { children: [
|
|
2240
2240
|
u && /* @__PURE__ */ s.jsx(_e, { element: "span", children: r.formatMessage({ id: "breadcrumbs_currentPage" }) }),
|
|
2241
2241
|
/* @__PURE__ */ s.jsx(jt, { href: u ? void 0 : d, children: Qe(i, t) })
|
|
2242
|
-
] }, `${window.btoa(i)}_${
|
|
2242
|
+
] }, `${window.btoa(i)}_${a}`)) })
|
|
2243
2243
|
] });
|
|
2244
2244
|
};
|
|
2245
|
-
const
|
|
2245
|
+
const Za = ({
|
|
2246
2246
|
options: e,
|
|
2247
2247
|
allOption: t = !1,
|
|
2248
2248
|
allowMultiple: n = !0,
|
|
@@ -2250,9 +2250,9 @@ const Ko = ({
|
|
|
2250
2250
|
},
|
|
2251
2251
|
className: i = ""
|
|
2252
2252
|
}) => {
|
|
2253
|
-
const d = D(), u = t ? [{ id: "all", text: typeof t != "boolean" && t.text || d.formatMessage({ id: "filters_all" }) }, ...e] : e, [
|
|
2253
|
+
const d = D(), u = t ? [{ id: "all", text: typeof t != "boolean" && t.text || d.formatMessage({ id: "filters_all" }) }, ...e] : e, [a, l] = P(t ? ["all"] : []), o = (m, c) => {
|
|
2254
2254
|
let h = [];
|
|
2255
|
-
|
|
2255
|
+
a.includes(m) ? h = a.filter((p) => p !== m) : m === "all" ? h = ["all"] : n ? h = [...a.filter((p) => p !== "all"), m] : h = [m], l((p) => (r && typeof r == "function" && r({ current: h, previous: p }), h)), c && typeof c == "function" && c();
|
|
2256
2256
|
};
|
|
2257
2257
|
return /* @__PURE__ */ s.jsx("ul", { className: S("filters", i), children: u.map(({ id: m, text: c, disabled: h = !1, callback: p = () => {
|
|
2258
2258
|
} }) => {
|
|
@@ -2260,16 +2260,16 @@ const Ko = ({
|
|
|
2260
2260
|
return h && (g = { disabled: !0, "aria-label": d.formatMessage({ id: "filters_disabled" }, { name: c }) }), /* @__PURE__ */ s.jsx("li", { children: /* @__PURE__ */ s.jsx(
|
|
2261
2261
|
"button",
|
|
2262
2262
|
{
|
|
2263
|
-
className: S(m, { selected:
|
|
2263
|
+
className: S(m, { selected: a.includes(m) }),
|
|
2264
2264
|
onClick: (b) => {
|
|
2265
|
-
b.preventDefault(), b.stopPropagation(),
|
|
2265
|
+
b.preventDefault(), b.stopPropagation(), o(m, p);
|
|
2266
2266
|
},
|
|
2267
2267
|
...g,
|
|
2268
2268
|
children: c
|
|
2269
2269
|
}
|
|
2270
2270
|
) }, m);
|
|
2271
2271
|
}) });
|
|
2272
|
-
},
|
|
2272
|
+
}, yr = (e, t) => {
|
|
2273
2273
|
const n = String(e);
|
|
2274
2274
|
if (!t || !t.length)
|
|
2275
2275
|
return `/${n}`;
|
|
@@ -2278,7 +2278,7 @@ const Ko = ({
|
|
|
2278
2278
|
d === "before-lang" ? r += `/${i}` : (r.includes(`/${n}/`) || (r += `/${n}`), r += `/${i}`);
|
|
2279
2279
|
}), r.includes(`/${n}/`) || (r += `/${n}`), r;
|
|
2280
2280
|
};
|
|
2281
|
-
const Ft = { en: "English", es: "Español", fr: "Français", pt: "Português" }, rt = "languageSwitcher_",
|
|
2281
|
+
const Ft = { en: "English", es: "Español", fr: "Français", pt: "Português" }, rt = "languageSwitcher_", Ka = ({
|
|
2282
2282
|
currentLanguage: e,
|
|
2283
2283
|
isOriginalLanguage: t = !1,
|
|
2284
2284
|
isHumanTranslation: n = !1,
|
|
@@ -2287,10 +2287,10 @@ const Ft = { en: "English", es: "Español", fr: "Français", pt: "Português" },
|
|
|
2287
2287
|
},
|
|
2288
2288
|
urlParts: d,
|
|
2289
2289
|
variant: u = "default",
|
|
2290
|
-
label:
|
|
2290
|
+
label: a,
|
|
2291
2291
|
className: l = ""
|
|
2292
2292
|
}) => {
|
|
2293
|
-
const
|
|
2293
|
+
const o = D(), [m, c] = P(e);
|
|
2294
2294
|
if (G(() => {
|
|
2295
2295
|
e !== m && c(e);
|
|
2296
2296
|
}, [e]), !r || !Object.values(r).some((b) => b && b.post_name))
|
|
@@ -2298,26 +2298,26 @@ const Ft = { en: "English", es: "Español", fr: "Français", pt: "Português" },
|
|
|
2298
2298
|
const p = Object.keys(r), g = m !== e;
|
|
2299
2299
|
return /* @__PURE__ */ s.jsxs("div", { className: S("language-switcher text-small", u, l), children: [
|
|
2300
2300
|
/* @__PURE__ */ s.jsxs("nav", { children: [
|
|
2301
|
-
u !== "short" && /* @__PURE__ */ s.jsx("p", { children:
|
|
2301
|
+
u !== "short" && /* @__PURE__ */ s.jsx("p", { children: a || o.formatMessage({ id: `${rt}label` }) }),
|
|
2302
2302
|
/* @__PURE__ */ s.jsx("ul", { children: p.map((b) => {
|
|
2303
2303
|
if (!Ft[b])
|
|
2304
2304
|
return null;
|
|
2305
2305
|
let v = { className: b };
|
|
2306
|
-
return m === b ? v["aria-label"] =
|
|
2306
|
+
return m === b ? v["aria-label"] = o.formatMessage({ id: `${rt}selected` }, { language: Ft[b] }) : v = {
|
|
2307
2307
|
...v,
|
|
2308
|
-
href:
|
|
2308
|
+
href: yr(b, d),
|
|
2309
2309
|
onClick: (E) => {
|
|
2310
2310
|
E.preventDefault(), E.stopPropagation(), c(b), i(b);
|
|
2311
2311
|
}
|
|
2312
2312
|
}, /* @__PURE__ */ s.jsx("li", { children: /* @__PURE__ */ s.jsx(jt, { ...v, fallbackElement: "span", children: Ft[b] }) }, b);
|
|
2313
2313
|
}) }),
|
|
2314
|
-
u !== "short" && !g && /* @__PURE__ */ s.jsx("p", { children:
|
|
2314
|
+
u !== "short" && !g && /* @__PURE__ */ s.jsx("p", { children: o.formatMessage({ id: `${rt}translation_${t ? "original" : n ? "human" : "machine"}` }) })
|
|
2315
2315
|
] }),
|
|
2316
2316
|
u !== "short" && !g && !t && !n && /* @__PURE__ */ s.jsx("small", {
|
|
2317
2317
|
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
2318
2318
|
// @ts-ignore
|
|
2319
2319
|
// `values` are throwing a type error: https://github.com/formatjs/formatjs/issues/3633
|
|
2320
|
-
children:
|
|
2320
|
+
children: o.formatMessage({ id: `${rt}disclaimer` }, {
|
|
2321
2321
|
email: Ze.support,
|
|
2322
2322
|
link: (b) => {
|
|
2323
2323
|
const v = `mailto:${b}`;
|
|
@@ -2327,7 +2327,7 @@ const Ft = { en: "English", es: "Español", fr: "Français", pt: "Português" },
|
|
|
2327
2327
|
})
|
|
2328
2328
|
] });
|
|
2329
2329
|
};
|
|
2330
|
-
const Lt = vs({ locale: "en", messages: qt }),
|
|
2330
|
+
const Lt = vs({ locale: "en", messages: qt }), Er = ({
|
|
2331
2331
|
hasNextPage: e,
|
|
2332
2332
|
loadNextPage: t,
|
|
2333
2333
|
icon: n = !1,
|
|
@@ -2339,11 +2339,11 @@ const Lt = vs({ locale: "en", messages: qt }), yr = ({
|
|
|
2339
2339
|
className: i = "",
|
|
2340
2340
|
gtmContext: d = "LoadMore"
|
|
2341
2341
|
}) => {
|
|
2342
|
-
const [u,
|
|
2342
|
+
const [u, a] = P(!1), [l, o] = P(e), m = async (c) => {
|
|
2343
2343
|
try {
|
|
2344
2344
|
await t(c);
|
|
2345
2345
|
} catch (h) {
|
|
2346
|
-
h instanceof Error && h.message && h.message.includes("Cannot read items") ?
|
|
2346
|
+
h instanceof Error && h.message && h.message.includes("Cannot read items") ? o(!1) : a(!0);
|
|
2347
2347
|
}
|
|
2348
2348
|
};
|
|
2349
2349
|
return /* @__PURE__ */ s.jsxs("footer", { className: S("load-more", i), children: [
|
|
@@ -2364,10 +2364,10 @@ const Lt = vs({ locale: "en", messages: qt }), yr = ({
|
|
|
2364
2364
|
] });
|
|
2365
2365
|
};
|
|
2366
2366
|
const zn = ({ variant: e = "default", version: t = "default", className: n = "", ...r }) => /* @__PURE__ */ s.jsx("p", { className: "logo-wrapper", children: /* @__PURE__ */ s.jsx("a", { href: "/home/", className: S("logo", e, t, n), ...r, children: /* @__PURE__ */ s.jsx(_e, { children: /* @__PURE__ */ s.jsx(Pe, { id: "apolitical" }) }) }) });
|
|
2367
|
-
let
|
|
2368
|
-
const
|
|
2369
|
-
const i = D(), d = de(null), [u,
|
|
2370
|
-
d.current &&
|
|
2367
|
+
let at = !1;
|
|
2368
|
+
const Sr = ({ element: e = "div", id: t = "more-menu", options: n, className: r = "" }) => {
|
|
2369
|
+
const i = D(), d = de(null), [u, a] = P(!1), l = (o) => {
|
|
2370
|
+
d.current && o.target instanceof HTMLElement && !d.current.contains(o.target) && a(!1);
|
|
2371
2371
|
};
|
|
2372
2372
|
return G(() => (document.addEventListener("click", l, !0), () => {
|
|
2373
2373
|
document.removeEventListener("click", l, !0);
|
|
@@ -2381,29 +2381,29 @@ const Er = ({ element: e = "div", id: t = "more-menu", options: n, className: r
|
|
|
2381
2381
|
variant: "tertiary",
|
|
2382
2382
|
size: "medium",
|
|
2383
2383
|
icon: { icon: "ellipsis" },
|
|
2384
|
-
onClick: () =>
|
|
2384
|
+
onClick: () => a(!u),
|
|
2385
2385
|
"aria-haspopup": "true",
|
|
2386
2386
|
"aria-expanded": u,
|
|
2387
2387
|
"aria-controls": t,
|
|
2388
2388
|
screenreaderText: i.formatMessage({ id: "moreMenu" })
|
|
2389
2389
|
}
|
|
2390
2390
|
),
|
|
2391
|
-
/* @__PURE__ */ s.jsx("ul", { id: t, hidden: !u, children: n.map(({ href:
|
|
2391
|
+
/* @__PURE__ */ s.jsx("ul", { id: t, hidden: !u, children: n.map(({ href: o, onClick: m, text: c, icon: h, ...p }, g) => {
|
|
2392
2392
|
const b = {
|
|
2393
2393
|
...p,
|
|
2394
2394
|
onClick: (v) => {
|
|
2395
|
-
|
|
2395
|
+
a(!1), typeof m == "function" && m(v);
|
|
2396
2396
|
},
|
|
2397
2397
|
onFocus: () => {
|
|
2398
|
-
|
|
2398
|
+
at && (clearTimeout(at), at = !1);
|
|
2399
2399
|
},
|
|
2400
2400
|
onBlur: () => {
|
|
2401
|
-
|
|
2402
|
-
|
|
2401
|
+
at = setTimeout(() => {
|
|
2402
|
+
a(!1);
|
|
2403
2403
|
}, 100);
|
|
2404
2404
|
}
|
|
2405
2405
|
};
|
|
2406
|
-
return
|
|
2406
|
+
return o && (b.href = o), /* @__PURE__ */ s.jsx("li", { children: /* @__PURE__ */ s.jsx(
|
|
2407
2407
|
W,
|
|
2408
2408
|
{
|
|
2409
2409
|
variant: "tertiary",
|
|
@@ -2416,8 +2416,8 @@ const Er = ({ element: e = "div", id: t = "more-menu", options: n, className: r
|
|
|
2416
2416
|
}) })
|
|
2417
2417
|
] })
|
|
2418
2418
|
});
|
|
2419
|
-
},
|
|
2420
|
-
const
|
|
2419
|
+
}, $r = (e, t = !1) => t ? e.replaceAll("/", "") === t : typeof window < "u" && window.location && window.location.pathname === e;
|
|
2420
|
+
const Tr = [
|
|
2421
2421
|
{
|
|
2422
2422
|
key: "homepage",
|
|
2423
2423
|
href: "/home/"
|
|
@@ -2438,13 +2438,13 @@ const $r = [
|
|
|
2438
2438
|
key: "articles",
|
|
2439
2439
|
href: "/solution-articles/"
|
|
2440
2440
|
}
|
|
2441
|
-
],
|
|
2441
|
+
], Mr = ({ activeLink: e }) => {
|
|
2442
2442
|
const t = D(), n = je($e), r = n && typeof n.id == "string";
|
|
2443
2443
|
return /* @__PURE__ */ s.jsxs("ul", { id: "navigation-menu", className: "text-medium", children: [
|
|
2444
|
-
|
|
2444
|
+
Tr.map(({ key: i, href: d }) => /* @__PURE__ */ s.jsx(
|
|
2445
2445
|
"li",
|
|
2446
2446
|
{
|
|
2447
|
-
className: S(i, { active:
|
|
2447
|
+
className: S(i, { active: $r(d, e) }),
|
|
2448
2448
|
children: /* @__PURE__ */ s.jsx(
|
|
2449
2449
|
"a",
|
|
2450
2450
|
{
|
|
@@ -2478,7 +2478,7 @@ const $r = [
|
|
|
2478
2478
|
}
|
|
2479
2479
|
) })
|
|
2480
2480
|
] });
|
|
2481
|
-
}, Xe = (e, t, n) => `${e}?share=${t}${n ? `&uuid=${n}` : ""}`,
|
|
2481
|
+
}, Xe = (e, t, n) => `${e}?share=${t}${n ? `&uuid=${n}` : ""}`, Nr = ({
|
|
2482
2482
|
title: e,
|
|
2483
2483
|
link: t,
|
|
2484
2484
|
referrer: n
|
|
@@ -2521,7 +2521,7 @@ ${Xe(t, "mailto", n)}&src=email`
|
|
|
2521
2521
|
onClick: (r, i) => (r.preventDefault(), r.stopPropagation(), navigator.clipboard.writeText(i))
|
|
2522
2522
|
}
|
|
2523
2523
|
];
|
|
2524
|
-
const
|
|
2524
|
+
const Dr = "shareLinks_", qa = ({
|
|
2525
2525
|
title: e,
|
|
2526
2526
|
link: t,
|
|
2527
2527
|
referrer: n,
|
|
@@ -2530,10 +2530,10 @@ const Nr = "shareLinks_", ea = ({
|
|
|
2530
2530
|
variant: d = "default",
|
|
2531
2531
|
className: u = ""
|
|
2532
2532
|
}) => {
|
|
2533
|
-
const
|
|
2533
|
+
const a = D(), l = Nr({ title: e, link: t, referrer: n });
|
|
2534
2534
|
return /* @__PURE__ */ s.jsxs("aside", { className: S("share-links", i, d, u), children: [
|
|
2535
|
-
/* @__PURE__ */ s.jsx("p", { className: "text-small", children:
|
|
2536
|
-
/* @__PURE__ */ s.jsx("ul", { children: l.map(({ key:
|
|
2535
|
+
/* @__PURE__ */ s.jsx("p", { className: "text-small", children: a.formatMessage({ id: "shareLinks_label" }) }),
|
|
2536
|
+
/* @__PURE__ */ s.jsx("ul", { children: l.map(({ key: o, icon: m, url: c, shouldRender: h = !0, onClick: p }) => {
|
|
2537
2537
|
if (typeof h == "function" && !h())
|
|
2538
2538
|
return null;
|
|
2539
2539
|
const g = {};
|
|
@@ -2542,30 +2542,30 @@ const Nr = "shareLinks_", ea = ({
|
|
|
2542
2542
|
{
|
|
2543
2543
|
size: i,
|
|
2544
2544
|
variant: "tertiary",
|
|
2545
|
-
icon: { icon: m ||
|
|
2545
|
+
icon: { icon: m || o },
|
|
2546
2546
|
href: c,
|
|
2547
2547
|
target: "_blank",
|
|
2548
2548
|
rel: "noopener noreferrer",
|
|
2549
2549
|
className: "gtm-trackable",
|
|
2550
2550
|
"data-gtm-event-context": `${r}-SocialButtons`,
|
|
2551
|
-
"data-gtm-event-type": `${
|
|
2551
|
+
"data-gtm-event-type": `${o}-click`,
|
|
2552
2552
|
"data-testid": "link",
|
|
2553
|
-
screenreaderText:
|
|
2553
|
+
screenreaderText: a.formatMessage({ id: `${Dr}link_${o}` }),
|
|
2554
2554
|
...g
|
|
2555
2555
|
}
|
|
2556
|
-
) },
|
|
2556
|
+
) }, o);
|
|
2557
2557
|
}) })
|
|
2558
2558
|
] });
|
|
2559
2559
|
};
|
|
2560
|
-
const
|
|
2560
|
+
const eo = ({ tabs: e, className: t = "" }) => {
|
|
2561
2561
|
var l;
|
|
2562
|
-
const n = (
|
|
2563
|
-
let r = e.findIndex((
|
|
2562
|
+
const n = (o, m, c) => (o || (o = `panel-${window.btoa(m)}-${c}`), o);
|
|
2563
|
+
let r = e.findIndex((o) => o.current === !0);
|
|
2564
2564
|
if (r < 0 && (r = 0), window.location.hash) {
|
|
2565
|
-
const
|
|
2566
|
-
if (e.find((c) => c.id ===
|
|
2565
|
+
const o = window.location.hash.replace("#", "");
|
|
2566
|
+
if (e.find((c) => c.id === o)) {
|
|
2567
2567
|
for (let c = 0; c < e.length; c++)
|
|
2568
|
-
if (n(e[c].id, e[c].text, c) ===
|
|
2568
|
+
if (n(e[c].id, e[c].text, c) === o) {
|
|
2569
2569
|
r = c;
|
|
2570
2570
|
break;
|
|
2571
2571
|
}
|
|
@@ -2573,48 +2573,48 @@ const ta = ({ tabs: e, className: t = "" }) => {
|
|
|
2573
2573
|
}
|
|
2574
2574
|
const [i, d] = P(
|
|
2575
2575
|
(l = e[r]) != null && l.id ? e[r].id : n(e[r].id, e[r].text, r)
|
|
2576
|
-
), u = [],
|
|
2577
|
-
return e.forEach(({ id:
|
|
2578
|
-
|
|
2579
|
-
const g = i ===
|
|
2580
|
-
h || (b["aria-controls"] =
|
|
2581
|
-
v.preventDefault(), v.stopPropagation(), d(
|
|
2582
|
-
},
|
|
2576
|
+
), u = [], a = [];
|
|
2577
|
+
return e.forEach(({ id: o, text: m, content: c, href: h }, p) => {
|
|
2578
|
+
o = n(o, m, p);
|
|
2579
|
+
const g = i === o, b = {};
|
|
2580
|
+
h || (b["aria-controls"] = o, b.onClick = (v) => {
|
|
2581
|
+
v.preventDefault(), v.stopPropagation(), d(o), window.location.hash = `#${o}`;
|
|
2582
|
+
}, a.push(
|
|
2583
2583
|
/* @__PURE__ */ s.jsx(
|
|
2584
2584
|
"section",
|
|
2585
2585
|
{
|
|
2586
|
-
id:
|
|
2586
|
+
id: o,
|
|
2587
2587
|
hidden: !g,
|
|
2588
2588
|
role: "tabpanel",
|
|
2589
|
-
"aria-labelledby": `tab-${
|
|
2589
|
+
"aria-labelledby": `tab-${o}`,
|
|
2590
2590
|
"aria-live": g ? "assertive" : "off",
|
|
2591
2591
|
children: typeof c == "string" ? /* @__PURE__ */ s.jsx("p", { children: c }) : c
|
|
2592
2592
|
},
|
|
2593
|
-
`section-${
|
|
2593
|
+
`section-${o}`
|
|
2594
2594
|
)
|
|
2595
2595
|
)), u.push(
|
|
2596
2596
|
/* @__PURE__ */ s.jsx("li", { children: /* @__PURE__ */ s.jsx(
|
|
2597
2597
|
"a",
|
|
2598
2598
|
{
|
|
2599
|
-
href: h || `#${
|
|
2600
|
-
id: `tab-${
|
|
2599
|
+
href: h || `#${o}`,
|
|
2600
|
+
id: `tab-${o}`,
|
|
2601
2601
|
className: S({ selected: g }),
|
|
2602
2602
|
role: "tab",
|
|
2603
2603
|
"aria-selected": g,
|
|
2604
2604
|
...b,
|
|
2605
2605
|
children: m
|
|
2606
2606
|
}
|
|
2607
|
-
) }, `tab-${
|
|
2607
|
+
) }, `tab-${o}`)
|
|
2608
2608
|
);
|
|
2609
2609
|
}), /* @__PURE__ */ s.jsxs("div", { className: S("tabs-wrapper", t), children: [
|
|
2610
2610
|
/* @__PURE__ */ s.jsx("ul", { className: "tabs", role: "tablist", children: u }),
|
|
2611
|
-
/* @__PURE__ */ s.jsx("div", { className: "tab-content", children:
|
|
2611
|
+
/* @__PURE__ */ s.jsx("div", { className: "tab-content", children: a })
|
|
2612
2612
|
] });
|
|
2613
2613
|
};
|
|
2614
|
-
const
|
|
2614
|
+
const Cr = {
|
|
2615
2615
|
"2-1": 901,
|
|
2616
2616
|
"1-3": 769
|
|
2617
|
-
},
|
|
2617
|
+
}, Ar = ({
|
|
2618
2618
|
layout: e = "2-1",
|
|
2619
2619
|
hideOnMobile: t = !1,
|
|
2620
2620
|
className: n = "",
|
|
@@ -2622,25 +2622,25 @@ const Dr = {
|
|
|
2622
2622
|
}) => {
|
|
2623
2623
|
const i = vt(!0);
|
|
2624
2624
|
let d = r;
|
|
2625
|
-
return C.Children.count(r) === 1 && (d = C.Children.toArray(r)[0], d.props && (d = d.props.children)), /* @__PURE__ */ s.jsx("section", { className: S("columns", `layout-${e}`, n), children: C.Children.map(d, (u,
|
|
2626
|
-
},
|
|
2627
|
-
/* @__PURE__ */ s.jsx(
|
|
2628
|
-
/* @__PURE__ */ s.jsx(
|
|
2625
|
+
return C.Children.count(r) === 1 && (d = C.Children.toArray(r)[0], d.props && (d = d.props.children)), /* @__PURE__ */ s.jsx("section", { className: S("columns", `layout-${e}`, n), children: C.Children.map(d, (u, a) => t !== !1 && a === t && i && i < Cr[e] ? null : u) });
|
|
2626
|
+
}, to = ({ activeLink: e, ...t }) => /* @__PURE__ */ s.jsx(Ar, { layout: "1-3", children: /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
|
|
2627
|
+
/* @__PURE__ */ s.jsx(Mr, { activeLink: e }),
|
|
2628
|
+
/* @__PURE__ */ s.jsx(mr, { ...t })
|
|
2629
2629
|
] }) });
|
|
2630
|
-
const
|
|
2631
|
-
const e = D(), [t, n, r] = Ss(
|
|
2632
|
-
|
|
2630
|
+
const It = "cookieBanner_", Ot = ["apol-cookie-banner", "apolitical-performance-cookie-consent", "functional-cookie-consent"], Bt = new Date(Date.now() + 12 * 30 * 24 * 60 * 60 * 1e3), Pr = () => {
|
|
2631
|
+
const e = D(), [t, n, r] = Ss(Ot), [i, d] = P(!t["apol-cookie-banner"]), u = () => {
|
|
2632
|
+
Ot.forEach((m) => {
|
|
2633
2633
|
n(m, !0, {
|
|
2634
2634
|
path: "/",
|
|
2635
2635
|
expires: Bt,
|
|
2636
2636
|
domain: m === "apolitical-performance-cookie-consent" ? ".apolitical.co" : void 0
|
|
2637
2637
|
});
|
|
2638
2638
|
}), d(!1), window.location.reload();
|
|
2639
|
-
},
|
|
2639
|
+
}, a = () => {
|
|
2640
2640
|
n("apol-cookie-banner", !0, {
|
|
2641
2641
|
path: "/",
|
|
2642
2642
|
expires: Bt
|
|
2643
|
-
}),
|
|
2643
|
+
}), Ot.forEach((m) => {
|
|
2644
2644
|
if (m === "apol-cookie-banner") {
|
|
2645
2645
|
n(m, !0, {
|
|
2646
2646
|
path: "/",
|
|
@@ -2655,23 +2655,23 @@ const Ot = "cookieBanner_", It = ["apol-cookie-banner", "apolitical-performance-
|
|
|
2655
2655
|
return null;
|
|
2656
2656
|
const l = [
|
|
2657
2657
|
{ id: "settings", href: "/pages/cookie-policy", gtmType: "policy-page" },
|
|
2658
|
-
{ id: "reject", onClick:
|
|
2658
|
+
{ id: "reject", onClick: a, gtmType: "reject-all" },
|
|
2659
2659
|
{ id: "accept", onClick: u, gtmType: "accepted-all" }
|
|
2660
|
-
],
|
|
2660
|
+
], o = [];
|
|
2661
2661
|
return l.forEach((m) => {
|
|
2662
|
-
|
|
2662
|
+
o.push({
|
|
2663
2663
|
variant: m.href ? "tertiary" : "primary",
|
|
2664
2664
|
href: m.href,
|
|
2665
2665
|
onClick: m.onClick,
|
|
2666
2666
|
className: "gtm-trackable",
|
|
2667
2667
|
"data-gtm-event-context": "cookie-banner",
|
|
2668
2668
|
"data-gtm-event-type": `cookie-${m.gtmType}-click`,
|
|
2669
|
-
children: e.formatMessage({ id: `${
|
|
2669
|
+
children: e.formatMessage({ id: `${It}buttons_${m.id}` })
|
|
2670
2670
|
});
|
|
2671
2671
|
}), /* @__PURE__ */ s.jsxs("aside", { id: "cookie-banner", className: "text-medium", children: [
|
|
2672
|
-
/* @__PURE__ */ s.jsx("h6", { children: e.formatMessage({ id: `${
|
|
2673
|
-
/* @__PURE__ */ s.jsx("p", { children: e.formatMessage({ id: `${
|
|
2674
|
-
/* @__PURE__ */ s.jsx(kt, { buttons:
|
|
2672
|
+
/* @__PURE__ */ s.jsx("h6", { children: e.formatMessage({ id: `${It}title` }) }),
|
|
2673
|
+
/* @__PURE__ */ s.jsx("p", { children: e.formatMessage({ id: `${It}text` }) }),
|
|
2674
|
+
/* @__PURE__ */ s.jsx(kt, { buttons: o })
|
|
2675
2675
|
] });
|
|
2676
2676
|
}, Ce = {
|
|
2677
2677
|
platform: {
|
|
@@ -2841,19 +2841,19 @@ const Be = "footer_", ht = "SiteFooter", jn = ({ group: e }) => {
|
|
|
2841
2841
|
/* @__PURE__ */ s.jsx("small", { children: /* @__PURE__ */ s.jsx(Pe, { id: `${Be}copyright`, values: { currentYear: (/* @__PURE__ */ new Date()).getFullYear() } }) })
|
|
2842
2842
|
] })
|
|
2843
2843
|
] }) });
|
|
2844
|
-
const
|
|
2845
|
-
const i = D(), [d, u] = P({ path: `${
|
|
2844
|
+
const ot = "emailHelperTextBox_", no = ({ type: e, email: t, redirectPath: n, resendVerificationCode: r }) => {
|
|
2845
|
+
const i = D(), [d, u] = P({ path: `${ot}default`, type: "default", link: {}, mail: {}, error: "" }), [a, l] = P(!1), o = Me(
|
|
2846
2846
|
(p) => {
|
|
2847
2847
|
p.preventDefault(), p.stopPropagation();
|
|
2848
2848
|
const g = (b) => {
|
|
2849
2849
|
u({
|
|
2850
|
-
path: `${
|
|
2850
|
+
path: `${ot}error_verificationFailedToSend`,
|
|
2851
2851
|
type: "error",
|
|
2852
2852
|
link: {
|
|
2853
2853
|
"data-gtm-event-context": "VerifyEmailBox",
|
|
2854
2854
|
"data-gtm-event-type": "SendEmailClick",
|
|
2855
2855
|
className: "gtm-trackable",
|
|
2856
|
-
onClick: (v) =>
|
|
2856
|
+
onClick: (v) => o(v),
|
|
2857
2857
|
href: "#",
|
|
2858
2858
|
"data-testid": "send-verify-email-click"
|
|
2859
2859
|
},
|
|
@@ -2867,7 +2867,7 @@ const at = "emailHelperTextBox_", sa = ({ type: e, email: t, redirectPath: n, re
|
|
|
2867
2867
|
});
|
|
2868
2868
|
};
|
|
2869
2869
|
if (typeof r != "function") {
|
|
2870
|
-
g(i.formatMessage({ id: `${
|
|
2870
|
+
g(i.formatMessage({ id: `${ot}error_noFunction` }));
|
|
2871
2871
|
return;
|
|
2872
2872
|
}
|
|
2873
2873
|
l(!0), r(t).then(() => {
|
|
@@ -2883,7 +2883,7 @@ const at = "emailHelperTextBox_", sa = ({ type: e, email: t, redirectPath: n, re
|
|
|
2883
2883
|
);
|
|
2884
2884
|
G(
|
|
2885
2885
|
() => {
|
|
2886
|
-
let p =
|
|
2886
|
+
let p = ot, g = "default", b = {}, v = {};
|
|
2887
2887
|
switch (e) {
|
|
2888
2888
|
case "gov":
|
|
2889
2889
|
p += "autoApproved", g = "success";
|
|
@@ -2909,7 +2909,7 @@ const at = "emailHelperTextBox_", sa = ({ type: e, email: t, redirectPath: n, re
|
|
|
2909
2909
|
"data-gtm-event-context": "VerifyEmailBox",
|
|
2910
2910
|
"data-gtm-event-type": "SendEmailClick",
|
|
2911
2911
|
className: "gtm-trackable",
|
|
2912
|
-
onClick: (E) =>
|
|
2912
|
+
onClick: (E) => o(E),
|
|
2913
2913
|
"data-testid": "send-verify-email-click"
|
|
2914
2914
|
};
|
|
2915
2915
|
break;
|
|
@@ -2941,7 +2941,7 @@ const at = "emailHelperTextBox_", sa = ({ type: e, email: t, redirectPath: n, re
|
|
|
2941
2941
|
const m = {};
|
|
2942
2942
|
return ["link", "mail"].forEach((p) => {
|
|
2943
2943
|
m[p] = Object.keys(d[p]).length ? (g) => /* @__PURE__ */ s.jsx("a", { ...d[p], children: g }) : (g) => g;
|
|
2944
|
-
}), /* @__PURE__ */ s.jsx(
|
|
2944
|
+
}), /* @__PURE__ */ s.jsx(sr, { type: d.type, heading: a ? !1 : i.formatMessage({ id: `${d.path}_title` }), children: a ? /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
|
|
2945
2945
|
/* @__PURE__ */ s.jsx(Se, { element: "span" }),
|
|
2946
2946
|
/* @__PURE__ */ s.jsx(Se, { element: "span" })
|
|
2947
2947
|
] }) : (
|
|
@@ -2963,11 +2963,11 @@ const at = "emailHelperTextBox_", sa = ({ type: e, email: t, redirectPath: n, re
|
|
|
2963
2963
|
)
|
|
2964
2964
|
) });
|
|
2965
2965
|
};
|
|
2966
|
-
const it = "passwordRules_", Yn = "isMoreThanEightCharacters", Gn = "includesNumberAndSymbol", Jn = "includesLowerAndUppercase",
|
|
2966
|
+
const it = "passwordRules_", Yn = "isMoreThanEightCharacters", Gn = "includesNumberAndSymbol", Jn = "includesLowerAndUppercase", Rr = {
|
|
2967
2967
|
[Yn]: "8Characters",
|
|
2968
2968
|
[Gn]: "numberSymbol",
|
|
2969
2969
|
[Jn]: "lowercaseUppercase"
|
|
2970
|
-
},
|
|
2970
|
+
}, Fr = ({ matchingRules: e = { isMoreThanEightCharacters: !1, includesNumberAndSymbol: !1, includesLowerAndUppercase: !1 }, className: t = "" }) => {
|
|
2971
2971
|
const n = D();
|
|
2972
2972
|
return /* @__PURE__ */ s.jsxs("aside", { className: S("password-rules", t), children: [
|
|
2973
2973
|
/* @__PURE__ */ s.jsx("small", { children: n.formatMessage({ id: `${it}intro` }) }),
|
|
@@ -2976,7 +2976,7 @@ const it = "passwordRules_", Yn = "isMoreThanEightCharacters", Gn = "includesNum
|
|
|
2976
2976
|
n.formatMessage({ id: `${it}rule_label` }),
|
|
2977
2977
|
" "
|
|
2978
2978
|
] }),
|
|
2979
|
-
/* @__PURE__ */ s.jsx("span", { children: n.formatMessage({ id: `${it}rule_${
|
|
2979
|
+
/* @__PURE__ */ s.jsx("span", { children: n.formatMessage({ id: `${it}rule_${Rr[r]}` }) }),
|
|
2980
2980
|
!e[r] && /* @__PURE__ */ s.jsxs(_e, { element: "strong", children: [
|
|
2981
2981
|
" ",
|
|
2982
2982
|
" ",
|
|
@@ -2984,8 +2984,8 @@ const it = "passwordRules_", Yn = "isMoreThanEightCharacters", Gn = "includesNum
|
|
|
2984
2984
|
] })
|
|
2985
2985
|
] }, `rule-${r}`)) })
|
|
2986
2986
|
] });
|
|
2987
|
-
},
|
|
2988
|
-
const
|
|
2987
|
+
}, so = We(Fr);
|
|
2988
|
+
const ro = ({
|
|
2989
2989
|
text: e = {},
|
|
2990
2990
|
topRating: t = 5,
|
|
2991
2991
|
functions: { createRating: n = () => null, updateRating: r = () => {
|
|
@@ -2994,12 +2994,12 @@ const oa = ({
|
|
|
2994
2994
|
className: d = "",
|
|
2995
2995
|
hasLoaded: u = !1
|
|
2996
2996
|
}) => {
|
|
2997
|
-
const
|
|
2997
|
+
const a = D(), [l, o] = P({ setUp: !1, id: null, rating: null, disabled: !0 }), m = async () => {
|
|
2998
2998
|
try {
|
|
2999
2999
|
const E = await n();
|
|
3000
|
-
|
|
3000
|
+
o((j) => ({ ...j, setUp: !0, id: E && E.id, disabled: !1 }));
|
|
3001
3001
|
} catch (E) {
|
|
3002
|
-
|
|
3002
|
+
o((j) => ({ ...j, setUp: !0, disabled: !0 })), i(E);
|
|
3003
3003
|
}
|
|
3004
3004
|
};
|
|
3005
3005
|
if (G(() => {
|
|
@@ -3007,19 +3007,19 @@ const oa = ({
|
|
|
3007
3007
|
}, [u]), !u)
|
|
3008
3008
|
return /* @__PURE__ */ s.jsx(Se, { className: "rating-placeholder" });
|
|
3009
3009
|
const { id: c, rating: h, disabled: p } = l, g = "ratings_", b = {
|
|
3010
|
-
text:
|
|
3011
|
-
low:
|
|
3012
|
-
high:
|
|
3013
|
-
success:
|
|
3010
|
+
text: a.formatMessage({ id: `${g}text` }),
|
|
3011
|
+
low: a.formatMessage({ id: `${g}low` }),
|
|
3012
|
+
high: a.formatMessage({ id: `${g}high` }),
|
|
3013
|
+
success: a.formatMessage({ id: `${g}success` }),
|
|
3014
3014
|
...e
|
|
3015
3015
|
}, v = async (E) => {
|
|
3016
3016
|
if (!(!c || p))
|
|
3017
3017
|
try {
|
|
3018
|
-
|
|
3018
|
+
o((j) => ({ ...j, rating: E, disabled: !0 })), await r({ id: c, value: E });
|
|
3019
3019
|
} catch (j) {
|
|
3020
|
-
|
|
3020
|
+
o((_) => ({ ..._, rating: null })), i(j);
|
|
3021
3021
|
} finally {
|
|
3022
|
-
|
|
3022
|
+
o((j) => ({ ...j, disabled: !1 }));
|
|
3023
3023
|
}
|
|
3024
3024
|
};
|
|
3025
3025
|
return /* @__PURE__ */ s.jsxs("div", { className: S("rating", d), children: [
|
|
@@ -3032,7 +3032,7 @@ const oa = ({
|
|
|
3032
3032
|
variant: "tertiary",
|
|
3033
3033
|
size: "small",
|
|
3034
3034
|
icon: { icon: `star${!h || j > h ? "_empty" : ""}`, position: "left", hover: "star" },
|
|
3035
|
-
screenreaderText: `${
|
|
3035
|
+
screenreaderText: `${a.formatMessage(
|
|
3036
3036
|
{ id: `${g}stars` },
|
|
3037
3037
|
{ number: j, total: t }
|
|
3038
3038
|
)}${j === 1 || j === t ? ` - ${b[j === 1 ? "low" : "high"]}` : ""}`,
|
|
@@ -3045,7 +3045,7 @@ const oa = ({
|
|
|
3045
3045
|
}) })
|
|
3046
3046
|
] });
|
|
3047
3047
|
};
|
|
3048
|
-
const
|
|
3048
|
+
const Lr = ({
|
|
3049
3049
|
id: e = "search",
|
|
3050
3050
|
className: t = "",
|
|
3051
3051
|
handleToggle: n = !1,
|
|
@@ -3053,12 +3053,12 @@ const Fr = ({
|
|
|
3053
3053
|
gtmContext: i = "search-bar",
|
|
3054
3054
|
gtmEvent: d = "form-submission"
|
|
3055
3055
|
}) => {
|
|
3056
|
-
const { searchIsOpen: u = !0, isDesktopVersion:
|
|
3056
|
+
const { searchIsOpen: u = !0, isDesktopVersion: a = !1 } = n || {}, l = D(), o = de(null);
|
|
3057
3057
|
He(() => {
|
|
3058
|
-
!n ||
|
|
3058
|
+
!n || a || !u || o.current && o.current.focus();
|
|
3059
3059
|
}, [u]);
|
|
3060
3060
|
const m = (c) => {
|
|
3061
|
-
c.preventDefault(), c.stopPropagation(), !(!
|
|
3061
|
+
c.preventDefault(), c.stopPropagation(), !(!o.current || !o.current.value || o.current.value.length < 1) && (window.location.href = `/search?search=${encodeURIComponent(o.current.value)}`);
|
|
3062
3062
|
};
|
|
3063
3063
|
return /* @__PURE__ */ s.jsx(
|
|
3064
3064
|
"form",
|
|
@@ -3072,7 +3072,7 @@ const Fr = ({
|
|
|
3072
3072
|
/* @__PURE__ */ s.jsx(
|
|
3073
3073
|
"input",
|
|
3074
3074
|
{
|
|
3075
|
-
ref:
|
|
3075
|
+
ref: o,
|
|
3076
3076
|
type: "search",
|
|
3077
3077
|
id: e,
|
|
3078
3078
|
name: e,
|
|
@@ -3088,7 +3088,7 @@ const Fr = ({
|
|
|
3088
3088
|
{
|
|
3089
3089
|
className: "clear",
|
|
3090
3090
|
onClick: (c) => {
|
|
3091
|
-
c.preventDefault(), c.stopPropagation(),
|
|
3091
|
+
c.preventDefault(), c.stopPropagation(), o.current && o.current.value && (o.current.value = "");
|
|
3092
3092
|
},
|
|
3093
3093
|
children: /* @__PURE__ */ s.jsx(_e, { children: l.formatMessage({ id: "search_clear" }) })
|
|
3094
3094
|
}
|
|
@@ -3098,7 +3098,7 @@ const Fr = ({
|
|
|
3098
3098
|
}
|
|
3099
3099
|
);
|
|
3100
3100
|
};
|
|
3101
|
-
const
|
|
3101
|
+
const Ir = ({
|
|
3102
3102
|
title: e,
|
|
3103
3103
|
label: t,
|
|
3104
3104
|
ctaMessage: n,
|
|
@@ -3106,12 +3106,12 @@ const Lr = ({
|
|
|
3106
3106
|
labelColor: i,
|
|
3107
3107
|
backgroundColor: d,
|
|
3108
3108
|
onClose: u,
|
|
3109
|
-
reportError:
|
|
3109
|
+
reportError: a,
|
|
3110
3110
|
sendInvites: l,
|
|
3111
|
-
initialFormStatus:
|
|
3111
|
+
initialFormStatus: o = "NOT_SUBMITTED"
|
|
3112
3112
|
/* NOT_SUBMITTED */
|
|
3113
3113
|
}) => {
|
|
3114
|
-
const [m, c] = P([]), [h, p] = P(!0), [g, b] = P(
|
|
3114
|
+
const [m, c] = P([]), [h, p] = P(!0), [g, b] = P(o), { formatMessage: v } = D(), E = async (T) => {
|
|
3115
3115
|
T.preventDefault();
|
|
3116
3116
|
try {
|
|
3117
3117
|
await l(m), c([]), b(
|
|
@@ -3122,7 +3122,7 @@ const Lr = ({
|
|
|
3122
3122
|
b(
|
|
3123
3123
|
"ERROR"
|
|
3124
3124
|
/* ERROR */
|
|
3125
|
-
),
|
|
3125
|
+
), a(N);
|
|
3126
3126
|
}
|
|
3127
3127
|
}, j = (T) => {
|
|
3128
3128
|
T.preventDefault(), b(
|
|
@@ -3250,7 +3250,7 @@ const Lr = ({
|
|
|
3250
3250
|
r[e][d].focus();
|
|
3251
3251
|
return;
|
|
3252
3252
|
}
|
|
3253
|
-
let u,
|
|
3253
|
+
let u, a;
|
|
3254
3254
|
switch (e) {
|
|
3255
3255
|
case "navigation":
|
|
3256
3256
|
if (n) {
|
|
@@ -3265,9 +3265,9 @@ const Lr = ({
|
|
|
3265
3265
|
u || (u = t.current);
|
|
3266
3266
|
break;
|
|
3267
3267
|
case "account":
|
|
3268
|
-
if (
|
|
3268
|
+
if (a = U.findFirstChild(t.current.children, "className", "account"), !a || !a.children)
|
|
3269
3269
|
return;
|
|
3270
|
-
u = U.findFirstChild(
|
|
3270
|
+
u = U.findFirstChild(a.children, "href");
|
|
3271
3271
|
break;
|
|
3272
3272
|
default:
|
|
3273
3273
|
return;
|
|
@@ -3375,23 +3375,23 @@ const Lr = ({
|
|
|
3375
3375
|
},
|
|
3376
3376
|
doTrack: d = null
|
|
3377
3377
|
}) => {
|
|
3378
|
-
const u = D(),
|
|
3379
|
-
if (!
|
|
3378
|
+
const u = D(), a = Mn(pt, e);
|
|
3379
|
+
if (!a || a.onlyShow && (a.onlyShow === "logged-in" && !t || a.onlyShow === "logged-out" && t))
|
|
3380
3380
|
return null;
|
|
3381
|
-
const l = "doTrack" in
|
|
3381
|
+
const l = "doTrack" in a, o = d === null ? l ? a.doTrack : !0 : d, m = e.includes("buttons.");
|
|
3382
3382
|
let c = `header_${e.replaceAll(".", "_")}`;
|
|
3383
|
-
|
|
3383
|
+
a.hasVariantText && (c += `_logged${t ? "In" : "Out"}`);
|
|
3384
3384
|
let h = !1;
|
|
3385
|
-
if (
|
|
3386
|
-
let j =
|
|
3385
|
+
if (a.href) {
|
|
3386
|
+
let j = a.gtmType || `${e}-click`;
|
|
3387
3387
|
if (j.includes(".")) {
|
|
3388
3388
|
const _ = j.split("."), T = _[_.length - 2];
|
|
3389
3389
|
j = `${T === "topics" ? `${T}-` : ""}${_[_.length - 1]}`;
|
|
3390
3390
|
}
|
|
3391
3391
|
h = {
|
|
3392
|
-
href:
|
|
3392
|
+
href: a.href,
|
|
3393
3393
|
role: "menuitem"
|
|
3394
|
-
},
|
|
3394
|
+
}, o && (h = {
|
|
3395
3395
|
...h,
|
|
3396
3396
|
className: "gtm-trackable",
|
|
3397
3397
|
"data-gtm-event-type": j,
|
|
@@ -3400,13 +3400,13 @@ const Lr = ({
|
|
|
3400
3400
|
...h,
|
|
3401
3401
|
variant: "secondary",
|
|
3402
3402
|
size: { mobile: "small", 881: "large" },
|
|
3403
|
-
...
|
|
3403
|
+
...a.props || {}
|
|
3404
3404
|
});
|
|
3405
3405
|
}
|
|
3406
|
-
const p =
|
|
3406
|
+
const p = a.order && a.order[0] && a[a.order[0]], g = p && a[a.order[0]].order, b = h && window.location.pathname === a.href;
|
|
3407
3407
|
let v = {}, E = {};
|
|
3408
3408
|
if (p) {
|
|
3409
|
-
const j =
|
|
3409
|
+
const j = a.menuId || e, _ = {
|
|
3410
3410
|
onClick: (T) => U.events.onClick(T, { id: j, callback: i, isOpen: r[j] }),
|
|
3411
3411
|
onFocus: () => U.events.onFocus({ id: j }),
|
|
3412
3412
|
onBlur: () => U.events.onBlur({ id: j, callback: i }),
|
|
@@ -3428,21 +3428,21 @@ const Lr = ({
|
|
|
3428
3428
|
..._
|
|
3429
3429
|
});
|
|
3430
3430
|
}
|
|
3431
|
-
return /* @__PURE__ */ s.jsxs("li", { className: S({ [
|
|
3431
|
+
return /* @__PURE__ */ s.jsxs("li", { className: S({ [a.className]: a.className, "has-submenu": p, parent: g, active: b }), role: "none", ...v, children: [
|
|
3432
3432
|
h ? C.createElement(m ? W : "a", h, u.formatMessage({ id: c })) : u.formatMessage({ id: c }),
|
|
3433
|
-
|
|
3434
|
-
if (!
|
|
3433
|
+
a.order && /* @__PURE__ */ s.jsx("ul", { ...E, children: a.order.map((j) => {
|
|
3434
|
+
if (!a[j])
|
|
3435
3435
|
return null;
|
|
3436
3436
|
const _ = {
|
|
3437
3437
|
isLoggedIn: t,
|
|
3438
3438
|
isDesktopVersion: n,
|
|
3439
3439
|
menus: r,
|
|
3440
3440
|
callback: i,
|
|
3441
|
-
doTrack: l ?
|
|
3441
|
+
doTrack: l ? o : null
|
|
3442
3442
|
};
|
|
3443
|
-
return
|
|
3443
|
+
return a[j].order ? /* @__PURE__ */ s.jsxs("li", { className: S({ [a[j].className]: a[j].className }), children: [
|
|
3444
3444
|
u.formatMessage({ id: `${c}_${j}` }),
|
|
3445
|
-
/* @__PURE__ */ s.jsx("ul", { children:
|
|
3445
|
+
/* @__PURE__ */ s.jsx("ul", { children: a[j].order.map((T) => /* @__PURE__ */ s.jsx(gt, { id: `${e}.${j}.${T}`, ..._ }, T)) })
|
|
3446
3446
|
] }, j) : /* @__PURE__ */ s.jsx(gt, { id: `${e}.${j}`, ..._ }, j);
|
|
3447
3447
|
}) })
|
|
3448
3448
|
] }, e);
|
|
@@ -3451,45 +3451,45 @@ const Or = { height: 67, height_desktop: 83 }, Xn = ({ showNavigation: e = !0 })
|
|
|
3451
3451
|
const t = D(), n = je($e), r = vt(!0, !0), i = n && typeof n.id == "string", d = xt(
|
|
3452
3452
|
() => U.getIsDesktopVersion(i, r),
|
|
3453
3453
|
[i, r]
|
|
3454
|
-
), [u,
|
|
3454
|
+
), [u, a] = gs(Xs, {
|
|
3455
3455
|
headerIsVisible: !0,
|
|
3456
3456
|
menus: { navigation: !1, search: !1, account: !1 },
|
|
3457
3457
|
focusElements: {
|
|
3458
3458
|
navigation: { desktop: !1, default: !1 },
|
|
3459
3459
|
account: { desktop: !1, default: !1 }
|
|
3460
3460
|
}
|
|
3461
|
-
}), { headerIsVisible: l, menus:
|
|
3462
|
-
|
|
3461
|
+
}), { headerIsVisible: l, menus: o, focusElements: m } = u;
|
|
3462
|
+
Os({
|
|
3463
3463
|
scrollPosition: Or[`height${d.navigation ? "_desktop" : ""}`],
|
|
3464
3464
|
callbacks: {
|
|
3465
3465
|
scrollUp: () => {
|
|
3466
|
-
!d &&
|
|
3466
|
+
!d && o.navigation || U.shouldChangeHeaderIsVisible(!0, o, a);
|
|
3467
3467
|
},
|
|
3468
3468
|
scrollDown: () => {
|
|
3469
|
-
!d &&
|
|
3469
|
+
!d && o.navigation || U.shouldChangeHeaderIsVisible(!1, o, a);
|
|
3470
3470
|
}
|
|
3471
3471
|
}
|
|
3472
3472
|
});
|
|
3473
3473
|
const c = (p, g) => {
|
|
3474
|
-
U.handleMenus({ id: p, value: g, menus:
|
|
3474
|
+
U.handleMenus({ id: p, value: g, menus: o, dispatch: a });
|
|
3475
3475
|
}, h = de(null);
|
|
3476
3476
|
return He(() => {
|
|
3477
|
-
|
|
3477
|
+
o.navigation && U.autoFocus({
|
|
3478
3478
|
menu: "navigation",
|
|
3479
3479
|
navigationRef: h,
|
|
3480
3480
|
isDesktopVersion: d.navigation,
|
|
3481
3481
|
focusElements: m,
|
|
3482
|
-
dispatch:
|
|
3482
|
+
dispatch: a
|
|
3483
3483
|
});
|
|
3484
|
-
}, [
|
|
3485
|
-
|
|
3484
|
+
}, [o.navigation]), He(() => {
|
|
3485
|
+
o.account && U.autoFocus({
|
|
3486
3486
|
menu: "account",
|
|
3487
3487
|
navigationRef: h,
|
|
3488
3488
|
isDesktopVersion: d.navigation,
|
|
3489
3489
|
focusElements: m,
|
|
3490
|
-
dispatch:
|
|
3490
|
+
dispatch: a
|
|
3491
3491
|
});
|
|
3492
|
-
}, [
|
|
3492
|
+
}, [o.account]), n && n.isLoading ? null : /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
|
|
3493
3493
|
/* @__PURE__ */ s.jsxs(
|
|
3494
3494
|
"nav",
|
|
3495
3495
|
{
|
|
@@ -3515,15 +3515,15 @@ const Or = { height: 67, height_desktop: 83 }, Xn = ({ showNavigation: e = !0 })
|
|
|
3515
3515
|
{
|
|
3516
3516
|
className: "menu-button gtm-trackable",
|
|
3517
3517
|
onClick: (p) => {
|
|
3518
|
-
p.preventDefault(), p.stopPropagation(), c("navigation", !
|
|
3518
|
+
p.preventDefault(), p.stopPropagation(), c("navigation", !o.navigation);
|
|
3519
3519
|
},
|
|
3520
3520
|
"data-gtm-event-type": "open-tab-menu-click",
|
|
3521
3521
|
"data-gtm-event-context": "HeaderLeft-Chevron",
|
|
3522
3522
|
"aria-haspopup": "true",
|
|
3523
|
-
"aria-expanded":
|
|
3523
|
+
"aria-expanded": o.navigation,
|
|
3524
3524
|
"aria-controls": "navigation",
|
|
3525
3525
|
children: /* @__PURE__ */ s.jsx(_e, { children: t.formatMessage({
|
|
3526
|
-
id: `header_menu_${
|
|
3526
|
+
id: `header_menu_${o.navigation ? "hide" : "show"}`
|
|
3527
3527
|
}) })
|
|
3528
3528
|
}
|
|
3529
3529
|
),
|
|
@@ -3532,16 +3532,16 @@ const Or = { height: 67, height_desktop: 83 }, Xn = ({ showNavigation: e = !0 })
|
|
|
3532
3532
|
{
|
|
3533
3533
|
ref: h,
|
|
3534
3534
|
id: "navigation",
|
|
3535
|
-
hidden: d.navigation ||
|
|
3535
|
+
hidden: d.navigation || o.account ? !1 : !o.navigation,
|
|
3536
3536
|
role: "menu",
|
|
3537
|
-
"data-showing": !d.navigation &&
|
|
3537
|
+
"data-showing": !d.navigation && o.account ? "account" : "default",
|
|
3538
3538
|
children: pt.order.map((p) => /* @__PURE__ */ s.jsx(
|
|
3539
3539
|
gt,
|
|
3540
3540
|
{
|
|
3541
3541
|
id: p,
|
|
3542
3542
|
isLoggedIn: i,
|
|
3543
3543
|
isDesktopVersion: d.navigation,
|
|
3544
|
-
menus: { navigation:
|
|
3544
|
+
menus: { navigation: o.navigation, account: o.account },
|
|
3545
3545
|
callback: c
|
|
3546
3546
|
},
|
|
3547
3547
|
p
|
|
@@ -3553,27 +3553,27 @@ const Or = { height: 67, height_desktop: 83 }, Xn = ({ showNavigation: e = !0 })
|
|
|
3553
3553
|
{
|
|
3554
3554
|
className: "search toggle-search-button",
|
|
3555
3555
|
onClick: (p) => {
|
|
3556
|
-
p.preventDefault(), p.stopPropagation(), c("search", !
|
|
3556
|
+
p.preventDefault(), p.stopPropagation(), c("search", !o.search);
|
|
3557
3557
|
},
|
|
3558
3558
|
"aria-haspopup": "true",
|
|
3559
|
-
"aria-expanded":
|
|
3559
|
+
"aria-expanded": o.search,
|
|
3560
3560
|
"aria-controls": "search-form",
|
|
3561
3561
|
children: /* @__PURE__ */ s.jsx(
|
|
3562
3562
|
_e,
|
|
3563
3563
|
{
|
|
3564
3564
|
children: t.formatMessage({
|
|
3565
|
-
id: `header_search_${
|
|
3565
|
+
id: `header_search_${o.search ? "hide" : "show"}`
|
|
3566
3566
|
})
|
|
3567
3567
|
}
|
|
3568
3568
|
)
|
|
3569
3569
|
}
|
|
3570
3570
|
),
|
|
3571
3571
|
/* @__PURE__ */ s.jsx(
|
|
3572
|
-
|
|
3572
|
+
Lr,
|
|
3573
3573
|
{
|
|
3574
3574
|
id: "global-search",
|
|
3575
3575
|
handleToggle: {
|
|
3576
|
-
searchIsOpen:
|
|
3576
|
+
searchIsOpen: o.search,
|
|
3577
3577
|
isDesktopVersion: d.search
|
|
3578
3578
|
},
|
|
3579
3579
|
gtmContext: "search-bar-header",
|
|
@@ -3587,16 +3587,16 @@ const Or = { height: 67, height_desktop: 83 }, Xn = ({ showNavigation: e = !0 })
|
|
|
3587
3587
|
onClick: (p) => U.events.onClick(p, {
|
|
3588
3588
|
id: "account",
|
|
3589
3589
|
callback: c,
|
|
3590
|
-
isOpen:
|
|
3590
|
+
isOpen: o.account
|
|
3591
3591
|
}),
|
|
3592
3592
|
onMouseEnter: () => U.events.onMouseEnter({ id: "account", callback: c }),
|
|
3593
3593
|
onMouseLeave: () => U.events.onBlur({ id: "account", callback: c }),
|
|
3594
3594
|
"aria-haspopup": "true",
|
|
3595
|
-
"aria-expanded":
|
|
3595
|
+
"aria-expanded": o.account,
|
|
3596
3596
|
"aria-controls": "navigation",
|
|
3597
3597
|
children: [
|
|
3598
3598
|
/* @__PURE__ */ s.jsx(_e, { children: t.formatMessage({
|
|
3599
|
-
id: `header_account_${
|
|
3599
|
+
id: `header_account_${o.account ? "hide" : "show"}`
|
|
3600
3600
|
}) }),
|
|
3601
3601
|
/* @__PURE__ */ s.jsx(
|
|
3602
3602
|
qe,
|
|
@@ -3617,7 +3617,7 @@ const Or = { height: 67, height_desktop: 83 }, Xn = ({ showNavigation: e = !0 })
|
|
|
3617
3617
|
"div",
|
|
3618
3618
|
{
|
|
3619
3619
|
className: S("overlay", {
|
|
3620
|
-
open:
|
|
3620
|
+
open: o.navigation || o.account || !d.search && o.search
|
|
3621
3621
|
})
|
|
3622
3622
|
}
|
|
3623
3623
|
)
|
|
@@ -3640,9 +3640,9 @@ const Kn = ({
|
|
|
3640
3640
|
}, onClose: d = () => {
|
|
3641
3641
|
} } = {},
|
|
3642
3642
|
forceShow: { error: u = !1 } = {},
|
|
3643
|
-
title:
|
|
3643
|
+
title: a,
|
|
3644
3644
|
children: l,
|
|
3645
|
-
buttons:
|
|
3645
|
+
buttons: o,
|
|
3646
3646
|
className: m = "",
|
|
3647
3647
|
gtmContext: c = "Modal"
|
|
3648
3648
|
}) => {
|
|
@@ -3662,7 +3662,7 @@ const Kn = ({
|
|
|
3662
3662
|
style: v,
|
|
3663
3663
|
children: t && /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
|
|
3664
3664
|
/* @__PURE__ */ s.jsxs("div", { className: "top", children: [
|
|
3665
|
-
|
|
3665
|
+
a && /* @__PURE__ */ s.jsx("h2", { className: "modal-title", children: a }),
|
|
3666
3666
|
/* @__PURE__ */ s.jsx(
|
|
3667
3667
|
W,
|
|
3668
3668
|
{
|
|
@@ -3679,20 +3679,20 @@ const Kn = ({
|
|
|
3679
3679
|
] }),
|
|
3680
3680
|
n && /* @__PURE__ */ s.jsx(Ue, {}),
|
|
3681
3681
|
l,
|
|
3682
|
-
|
|
3682
|
+
o && /* @__PURE__ */ s.jsxs("div", { className: "bottom", children: [
|
|
3683
3683
|
/* @__PURE__ */ s.jsx(Ue, {}),
|
|
3684
|
-
/* @__PURE__ */ s.jsx(kt, { buttons:
|
|
3684
|
+
/* @__PURE__ */ s.jsx(kt, { buttons: o })
|
|
3685
3685
|
] }),
|
|
3686
3686
|
u && /* @__PURE__ */ s.jsx(Xt, { className: "error", children: u })
|
|
3687
3687
|
] })
|
|
3688
3688
|
}
|
|
3689
3689
|
) });
|
|
3690
|
-
},
|
|
3690
|
+
}, Br = (e, t) => ({
|
|
3691
3691
|
"aria-haspopup": !0,
|
|
3692
3692
|
"aria-expanded": t,
|
|
3693
3693
|
"aria-controls": e
|
|
3694
3694
|
});
|
|
3695
|
-
const
|
|
3695
|
+
const ao = ({
|
|
3696
3696
|
className: e,
|
|
3697
3697
|
showModal: t = !0,
|
|
3698
3698
|
title: n,
|
|
@@ -3700,10 +3700,10 @@ const aa = ({
|
|
|
3700
3700
|
formLabel: i = "Invite your colleagues by typing or pasting their emails below.",
|
|
3701
3701
|
ctaMessage: d = "Send",
|
|
3702
3702
|
showIcon: u,
|
|
3703
|
-
onClose:
|
|
3703
|
+
onClose: a,
|
|
3704
3704
|
reportError: l = () => {
|
|
3705
3705
|
},
|
|
3706
|
-
sendInvites:
|
|
3706
|
+
sendInvites: o
|
|
3707
3707
|
}) => /* @__PURE__ */ s.jsx(
|
|
3708
3708
|
Kn,
|
|
3709
3709
|
{
|
|
@@ -3711,22 +3711,22 @@ const aa = ({
|
|
|
3711
3711
|
isOpen: t,
|
|
3712
3712
|
showDivider: !1,
|
|
3713
3713
|
showIcon: u,
|
|
3714
|
-
functions: { onClose:
|
|
3714
|
+
functions: { onClose: a },
|
|
3715
3715
|
className: S("invite-modal", e, { success: !!n }),
|
|
3716
3716
|
children: /* @__PURE__ */ s.jsx(
|
|
3717
|
-
|
|
3717
|
+
Ir,
|
|
3718
3718
|
{
|
|
3719
3719
|
title: r,
|
|
3720
3720
|
label: i,
|
|
3721
3721
|
ctaMessage: d,
|
|
3722
|
-
onClose:
|
|
3723
|
-
sendInvites:
|
|
3722
|
+
onClose: a,
|
|
3723
|
+
sendInvites: o,
|
|
3724
3724
|
reportError: l
|
|
3725
3725
|
}
|
|
3726
3726
|
)
|
|
3727
3727
|
}
|
|
3728
3728
|
);
|
|
3729
|
-
const
|
|
3729
|
+
const Qr = () => {
|
|
3730
3730
|
const e = D();
|
|
3731
3731
|
return /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
|
|
3732
3732
|
/* @__PURE__ */ s.jsx(Xn, {}),
|
|
@@ -3739,29 +3739,29 @@ const Br = () => {
|
|
|
3739
3739
|
) }),
|
|
3740
3740
|
/* @__PURE__ */ s.jsx(Vn, {})
|
|
3741
3741
|
] });
|
|
3742
|
-
},
|
|
3742
|
+
}, Hr = ({
|
|
3743
3743
|
children: e,
|
|
3744
3744
|
additionalContent: { prepended: t, appended: n } = {},
|
|
3745
3745
|
reportError: r,
|
|
3746
3746
|
forceShow: i = {},
|
|
3747
3747
|
styling: d = {},
|
|
3748
3748
|
className: u = "",
|
|
3749
|
-
locale:
|
|
3749
|
+
locale: a = "en"
|
|
3750
3750
|
}) => {
|
|
3751
|
-
const { navigation: l = !0, footer:
|
|
3751
|
+
const { navigation: l = !0, footer: o = !0 } = i, { background: m = "default", variant: c = "default", circle: h = "default" } = d, p = Ls();
|
|
3752
3752
|
G(() => {
|
|
3753
3753
|
window.scrollTo(0, 0);
|
|
3754
3754
|
}, [p]);
|
|
3755
|
-
const g = ut(e, { locale:
|
|
3756
|
-
locale:
|
|
3755
|
+
const g = ut(e, { locale: a }), b = ut(t, {
|
|
3756
|
+
locale: a
|
|
3757
3757
|
}), v = ut(n, {
|
|
3758
|
-
locale:
|
|
3758
|
+
locale: a
|
|
3759
3759
|
}), E = {};
|
|
3760
|
-
return m !== "default" && (E[m] = !0), c !== "default" && (E[c] = !0), h !== "default" && (E[h] = !0), /* @__PURE__ */ s.jsx(Ts, { onError: r, fallback: /* @__PURE__ */ s.jsx(
|
|
3760
|
+
return m !== "default" && (E[m] = !0), c !== "default" && (E[c] = !0), h !== "default" && (E[h] = !0), /* @__PURE__ */ s.jsx(Ts, { onError: r, fallback: /* @__PURE__ */ s.jsx(Qr, {}), children: /* @__PURE__ */ s.jsx(_s, { fallback: null, children: /* @__PURE__ */ s.jsxs(
|
|
3761
3761
|
"div",
|
|
3762
3762
|
{
|
|
3763
3763
|
id: "wrapper",
|
|
3764
|
-
className: S(u, E, { "has-footer":
|
|
3764
|
+
className: S(u, E, { "has-footer": o }),
|
|
3765
3765
|
children: [
|
|
3766
3766
|
/* @__PURE__ */ s.jsx(Xn, { showNavigation: l }),
|
|
3767
3767
|
/* @__PURE__ */ s.jsxs("section", { id: "content-wrapper", children: [
|
|
@@ -3772,8 +3772,8 @@ const Br = () => {
|
|
|
3772
3772
|
})
|
|
3773
3773
|
] }),
|
|
3774
3774
|
v && /* @__PURE__ */ s.jsx("div", { className: "additional-content appended", children: v }),
|
|
3775
|
-
|
|
3776
|
-
/* @__PURE__ */ s.jsx(
|
|
3775
|
+
o && /* @__PURE__ */ s.jsx(Vn, {}),
|
|
3776
|
+
/* @__PURE__ */ s.jsx(Pr, {})
|
|
3777
3777
|
]
|
|
3778
3778
|
}
|
|
3779
3779
|
) }) });
|
|
@@ -3796,7 +3796,7 @@ const Br = () => {
|
|
|
3796
3796
|
WorkAndTheEconomy: "work-and-the-economy"
|
|
3797
3797
|
},
|
|
3798
3798
|
"from the community": "community"
|
|
3799
|
-
},
|
|
3799
|
+
}, Ur = {
|
|
3800
3800
|
getTagDetails: (e) => {
|
|
3801
3801
|
if (e.includes("topic_")) {
|
|
3802
3802
|
if (e = Qt.topic[e.replace("topic_", "")], e) {
|
|
@@ -3808,7 +3808,7 @@ const Br = () => {
|
|
|
3808
3808
|
return Qt[e] ? (e = Qt[e], { id: e, text: `${yn.default}${e}` }) : null;
|
|
3809
3809
|
}
|
|
3810
3810
|
};
|
|
3811
|
-
const
|
|
3811
|
+
const oo = ({
|
|
3812
3812
|
tags: e = [],
|
|
3813
3813
|
color: t = "default",
|
|
3814
3814
|
forceOneLine: n = !1,
|
|
@@ -3817,30 +3817,30 @@ const ia = ({
|
|
|
3817
3817
|
gtmType: d = "tag-click",
|
|
3818
3818
|
gtmContext: u = "tags"
|
|
3819
3819
|
}) => {
|
|
3820
|
-
const
|
|
3820
|
+
const a = D();
|
|
3821
3821
|
if (!e || e.length < 1)
|
|
3822
3822
|
return null;
|
|
3823
3823
|
const l = [];
|
|
3824
|
-
return e.forEach((
|
|
3825
|
-
if (!
|
|
3824
|
+
return e.forEach((o) => {
|
|
3825
|
+
if (!o)
|
|
3826
3826
|
return;
|
|
3827
|
-
const m =
|
|
3827
|
+
const m = Ur.getTagDetails(o);
|
|
3828
3828
|
m && l.push(m);
|
|
3829
|
-
}), l.length < 1 ? null : /* @__PURE__ */ s.jsx("ul", { className: S("tags text-small", t, i, { "one-line": n }), children: l.map((
|
|
3830
|
-
const m =
|
|
3831
|
-
return /* @__PURE__ */ s.jsx("li", { children:
|
|
3829
|
+
}), l.length < 1 ? null : /* @__PURE__ */ s.jsx("ul", { className: S("tags text-small", t, i, { "one-line": n }), children: l.map((o) => {
|
|
3830
|
+
const m = a.formatMessage({ id: o.text });
|
|
3831
|
+
return /* @__PURE__ */ s.jsx("li", { children: o.href && r ? /* @__PURE__ */ s.jsx(
|
|
3832
3832
|
"a",
|
|
3833
3833
|
{
|
|
3834
|
-
href:
|
|
3834
|
+
href: o.href,
|
|
3835
3835
|
className: "gtm-trackable",
|
|
3836
3836
|
"data-gtm-event-type": d,
|
|
3837
3837
|
"data-gtm-event-context": u,
|
|
3838
3838
|
children: m
|
|
3839
3839
|
}
|
|
3840
|
-
) : m },
|
|
3840
|
+
) : m }, o.id);
|
|
3841
3841
|
}) });
|
|
3842
3842
|
};
|
|
3843
|
-
const
|
|
3843
|
+
const io = ({
|
|
3844
3844
|
members: { data: e = [], total: t = e.length },
|
|
3845
3845
|
hasNextPage: n = !1,
|
|
3846
3846
|
loadNextPage: r = () => {
|
|
@@ -3849,18 +3849,18 @@ const ca = ({
|
|
|
3849
3849
|
gtmType: d = "member-click",
|
|
3850
3850
|
className: u = ""
|
|
3851
3851
|
}) => {
|
|
3852
|
-
const
|
|
3852
|
+
const a = D();
|
|
3853
3853
|
return e.length === 0 ? null : /* @__PURE__ */ s.jsxs("div", { className: S("members-list", u), children: [
|
|
3854
3854
|
/* @__PURE__ */ s.jsxs("h1", { children: [
|
|
3855
|
-
|
|
3855
|
+
a.formatMessage({ id: "membersList" }),
|
|
3856
3856
|
/* @__PURE__ */ s.jsx("span", { className: "count", children: t })
|
|
3857
3857
|
] }),
|
|
3858
|
-
/* @__PURE__ */ s.jsx("ul", { children: e.map((l,
|
|
3858
|
+
/* @__PURE__ */ s.jsx("ul", { children: e.map((l, o) => /* @__PURE__ */ s.jsxs("li", { children: [
|
|
3859
3859
|
/* @__PURE__ */ s.jsx(tn, { member: l, gtmContext: i, gtmType: d }),
|
|
3860
|
-
l.isAdmin && /* @__PURE__ */ s.jsx(ft, { children:
|
|
3861
|
-
] },
|
|
3860
|
+
l.isAdmin && /* @__PURE__ */ s.jsx(ft, { children: a.formatMessage({ id: "membersList_admin" }) })
|
|
3861
|
+
] }, o)) }),
|
|
3862
3862
|
n && /* @__PURE__ */ s.jsx(
|
|
3863
|
-
|
|
3863
|
+
Er,
|
|
3864
3864
|
{
|
|
3865
3865
|
hasNextPage: n,
|
|
3866
3866
|
loadNextPage: r,
|
|
@@ -3887,7 +3887,7 @@ const ve = "discussion_form_", qn = ({
|
|
|
3887
3887
|
cancel: !1,
|
|
3888
3888
|
error: !1
|
|
3889
3889
|
},
|
|
3890
|
-
functions:
|
|
3890
|
+
functions: a = {
|
|
3891
3891
|
create: () => {
|
|
3892
3892
|
},
|
|
3893
3893
|
handleSaveEdit: () => {
|
|
@@ -3903,7 +3903,7 @@ const ve = "discussion_form_", qn = ({
|
|
|
3903
3903
|
gtmContext: l = "DiscussionForm"
|
|
3904
3904
|
}) => {
|
|
3905
3905
|
var H, F;
|
|
3906
|
-
const
|
|
3906
|
+
const o = D(), m = je($e), [c, h] = P(
|
|
3907
3907
|
n.isEditing && n.isEditing.text || ""
|
|
3908
3908
|
), [p, g] = P(u.error || !1), [b, v] = P(!1), E = de(null);
|
|
3909
3909
|
if (r || (r = E), n.isLoading)
|
|
@@ -3919,12 +3919,12 @@ const ve = "discussion_form_", qn = ({
|
|
|
3919
3919
|
h(Y);
|
|
3920
3920
|
let k;
|
|
3921
3921
|
!m || !m.id ? k = Te(
|
|
3922
|
-
|
|
3922
|
+
o.formatMessage,
|
|
3923
3923
|
`${ve}error_loggedOut`,
|
|
3924
3924
|
e.type,
|
|
3925
3925
|
"action"
|
|
3926
3926
|
) : t ? Y.length >= i && (k = `${ve}error_tooLong`) : k = Te(
|
|
3927
|
-
|
|
3927
|
+
o.formatMessage,
|
|
3928
3928
|
`${ve}error_noPermission`,
|
|
3929
3929
|
e.type,
|
|
3930
3930
|
"action"
|
|
@@ -3945,23 +3945,23 @@ const ve = "discussion_form_", qn = ({
|
|
|
3945
3945
|
let w;
|
|
3946
3946
|
switch (e.type) {
|
|
3947
3947
|
case "post":
|
|
3948
|
-
w = await
|
|
3948
|
+
w = await a.create({ content: c });
|
|
3949
3949
|
break;
|
|
3950
3950
|
case "question":
|
|
3951
|
-
w = await
|
|
3951
|
+
w = await a.create({
|
|
3952
3952
|
title: c,
|
|
3953
3953
|
authorId: m && m.id,
|
|
3954
|
-
...(k =
|
|
3954
|
+
...(k = a.props) == null ? void 0 : k.create
|
|
3955
3955
|
});
|
|
3956
3956
|
break;
|
|
3957
3957
|
case "response":
|
|
3958
|
-
w = await
|
|
3958
|
+
w = await a.create(
|
|
3959
3959
|
{ question: e.slugs.question },
|
|
3960
3960
|
{ body: c, authorId: m && m.id, contentPath: Y }
|
|
3961
3961
|
);
|
|
3962
3962
|
break;
|
|
3963
3963
|
case "reply":
|
|
3964
|
-
w = await
|
|
3964
|
+
w = await a.create(
|
|
3965
3965
|
{ question: e.slugs.question, answer: e.slugs.answer },
|
|
3966
3966
|
{ body: c, authorId: m && m.id, contentPath: Y }
|
|
3967
3967
|
);
|
|
@@ -3969,19 +3969,19 @@ const ve = "discussion_form_", qn = ({
|
|
|
3969
3969
|
default:
|
|
3970
3970
|
break;
|
|
3971
3971
|
}
|
|
3972
|
-
await
|
|
3972
|
+
await Zs(1e3), a.callback && await a.callback(w), ct = setTimeout(() => {
|
|
3973
3973
|
h(""), v("submitted"), N();
|
|
3974
3974
|
}, 500);
|
|
3975
3975
|
} catch (w) {
|
|
3976
3976
|
const V = w;
|
|
3977
3977
|
let Z = `${ve}error`;
|
|
3978
3978
|
V.message.includes("entry already exists") && (Z = Te(
|
|
3979
|
-
|
|
3979
|
+
o.formatMessage,
|
|
3980
3980
|
`${ve}error_alreadyExists`,
|
|
3981
3981
|
e.type,
|
|
3982
3982
|
"action"
|
|
3983
3983
|
)), V.message.includes("429") ? Z = Te(
|
|
3984
|
-
|
|
3984
|
+
o.formatMessage,
|
|
3985
3985
|
`${ve}error_tooMany`,
|
|
3986
3986
|
e.type,
|
|
3987
3987
|
"action"
|
|
@@ -3991,22 +3991,22 @@ const ve = "discussion_form_", qn = ({
|
|
|
3991
3991
|
ct = setTimeout(() => {
|
|
3992
3992
|
g(!1), v(!1);
|
|
3993
3993
|
}, 5e3);
|
|
3994
|
-
}, R = !c || !
|
|
3995
|
-
return (n.isEditing && !J || u.cancel) &&
|
|
3994
|
+
}, R = !c || !Js(c), J = b === "submitting", O = [];
|
|
3995
|
+
return (n.isEditing && !J || u.cancel) && O.push({
|
|
3996
3996
|
variant: "secondary",
|
|
3997
3997
|
size: { mobile: "small", 600: "medium" },
|
|
3998
|
-
onClick:
|
|
3998
|
+
onClick: a.handleCancel,
|
|
3999
3999
|
className: "gtm-trackable",
|
|
4000
4000
|
"data-gtm-event-context": l,
|
|
4001
4001
|
"data-gtm-event-type": `cancel-${e.type}-click`,
|
|
4002
4002
|
disabled: !u.cancel && (!m || !m.id || !c),
|
|
4003
|
-
children:
|
|
4004
|
-
}),
|
|
4003
|
+
children: o.formatMessage({ id: `${ve}cancel` })
|
|
4004
|
+
}), O.push({
|
|
4005
4005
|
variant: "primary",
|
|
4006
4006
|
size: { mobile: "small", 600: "medium" },
|
|
4007
4007
|
onClick: (x) => {
|
|
4008
4008
|
if (n.isEditing) {
|
|
4009
|
-
v("submitting"),
|
|
4009
|
+
v("submitting"), a.handleSaveEdit && a.handleSaveEdit(
|
|
4010
4010
|
E.current && "value" in E.current ? E.current.value : ""
|
|
4011
4011
|
);
|
|
4012
4012
|
return;
|
|
@@ -4018,7 +4018,7 @@ const ve = "discussion_form_", qn = ({
|
|
|
4018
4018
|
"data-gtm-event-type": `${n.isEditing ? "save" : "submit"}-${e.type}-click`,
|
|
4019
4019
|
"data-testid": "save-button",
|
|
4020
4020
|
disabled: !m || !m.id || !t || R || J || n.isEditing && c === n.isEditing.text,
|
|
4021
|
-
children:
|
|
4021
|
+
children: o.formatMessage({
|
|
4022
4022
|
id: `${ve}${J ? n.isEditing ? "saving" : "posting" : n.isEditing ? "save" : "post"}`
|
|
4023
4023
|
})
|
|
4024
4024
|
}), /* @__PURE__ */ s.jsxs(
|
|
@@ -4030,7 +4030,7 @@ const ve = "discussion_form_", qn = ({
|
|
|
4030
4030
|
}),
|
|
4031
4031
|
"data-testid": `discussion-${e.type}-form`,
|
|
4032
4032
|
children: [
|
|
4033
|
-
(n == null ? void 0 : n.showTitle) && !n.isEditing && ["question"].includes(e.type) && /* @__PURE__ */ s.jsx("h2", { children: Te(
|
|
4033
|
+
(n == null ? void 0 : n.showTitle) && !n.isEditing && ["question"].includes(e.type) && /* @__PURE__ */ s.jsx("h2", { children: Te(o.formatMessage, `${ve}title`, e.type, "action") }),
|
|
4034
4034
|
/* @__PURE__ */ s.jsx(
|
|
4035
4035
|
tn,
|
|
4036
4036
|
{
|
|
@@ -4039,7 +4039,7 @@ const ve = "discussion_form_", qn = ({
|
|
|
4039
4039
|
gtmType: "profile-click"
|
|
4040
4040
|
}
|
|
4041
4041
|
),
|
|
4042
|
-
/* @__PURE__ */ s.jsx(_e, { element: "label", showOnFocus: !1, htmlFor: `${_}-input`, children: Te(
|
|
4042
|
+
/* @__PURE__ */ s.jsx(_e, { element: "label", showOnFocus: !1, htmlFor: `${_}-input`, children: Te(o.formatMessage, `${ve}label`, e.type, "action") }),
|
|
4043
4043
|
/* @__PURE__ */ s.jsx(
|
|
4044
4044
|
Ms,
|
|
4045
4045
|
{
|
|
@@ -4047,7 +4047,7 @@ const ve = "discussion_form_", qn = ({
|
|
|
4047
4047
|
id: `${_}-input`,
|
|
4048
4048
|
name: e.type,
|
|
4049
4049
|
placeholder: Te(
|
|
4050
|
-
|
|
4050
|
+
o.formatMessage,
|
|
4051
4051
|
`${ve}placeholder`,
|
|
4052
4052
|
e.type,
|
|
4053
4053
|
"action"
|
|
@@ -4061,7 +4061,7 @@ const ve = "discussion_form_", qn = ({
|
|
|
4061
4061
|
autoFocus: !!n.isEditing
|
|
4062
4062
|
}
|
|
4063
4063
|
),
|
|
4064
|
-
/* @__PURE__ */ s.jsx("small", { children: Te(
|
|
4064
|
+
/* @__PURE__ */ s.jsx("small", { children: Te(o.formatMessage, `${ve}explainer`, e.type, "action", {
|
|
4065
4065
|
a: (x) => /* @__PURE__ */ s.jsx(
|
|
4066
4066
|
"a",
|
|
4067
4067
|
{
|
|
@@ -4075,12 +4075,12 @@ const ve = "discussion_form_", qn = ({
|
|
|
4075
4075
|
}
|
|
4076
4076
|
)
|
|
4077
4077
|
}) }),
|
|
4078
|
-
/* @__PURE__ */ s.jsx(kt, { buttons:
|
|
4079
|
-
b === "submitted" && /* @__PURE__ */ s.jsx(Xt, { className: "success", "data-testid": "success", children: Te(
|
|
4080
|
-
p && /* @__PURE__ */ s.jsx(Xt, { id: "error-message", className: "error", "data-testid": "error", children: u.error ? u.error : typeof p == "string" ? p.includes(" ") ? p :
|
|
4078
|
+
/* @__PURE__ */ s.jsx(kt, { buttons: O }),
|
|
4079
|
+
b === "submitted" && /* @__PURE__ */ s.jsx(Xt, { className: "success", "data-testid": "success", children: Te(o.formatMessage, `${ve}success`, e.type, "action") }),
|
|
4080
|
+
p && /* @__PURE__ */ s.jsx(Xt, { id: "error-message", className: "error", "data-testid": "error", children: u.error ? u.error : typeof p == "string" ? p.includes(" ") ? p : o.formatMessage(
|
|
4081
4081
|
{ id: p },
|
|
4082
4082
|
{
|
|
4083
|
-
action:
|
|
4083
|
+
action: o.formatMessage({
|
|
4084
4084
|
id: `discussion_action_${e.type}`
|
|
4085
4085
|
}),
|
|
4086
4086
|
maxLength: i
|
|
@@ -4110,16 +4110,16 @@ const ve = "discussion_form_", qn = ({
|
|
|
4110
4110
|
create: t
|
|
4111
4111
|
}
|
|
4112
4112
|
}
|
|
4113
|
-
),
|
|
4113
|
+
), Wr = {
|
|
4114
4114
|
showThread: !1,
|
|
4115
4115
|
showForm: !1
|
|
4116
|
-
}, Et = Kt(
|
|
4116
|
+
}, Et = Kt(Wr), zr = ({ children: e }) => {
|
|
4117
4117
|
const [t, n] = P({
|
|
4118
4118
|
showThread: !1,
|
|
4119
4119
|
showForm: !1
|
|
4120
4120
|
});
|
|
4121
4121
|
return /* @__PURE__ */ s.jsx(Et.Provider, { value: { ...t, updateConversation: n }, children: e });
|
|
4122
|
-
},
|
|
4122
|
+
}, Vr = ({
|
|
4123
4123
|
question: e,
|
|
4124
4124
|
answer: t,
|
|
4125
4125
|
reply: n
|
|
@@ -4127,11 +4127,11 @@ const ve = "discussion_form_", qn = ({
|
|
|
4127
4127
|
...e && { questionSlug: e },
|
|
4128
4128
|
...t && { answerSlug: t },
|
|
4129
4129
|
...n && { replySlug: n }
|
|
4130
|
-
}),
|
|
4130
|
+
}), Yr = (e, t = 10) => !e || e.length === 0 ? [] : e.slice(0, t);
|
|
4131
4131
|
let Ke = !1;
|
|
4132
4132
|
const Ht = () => {
|
|
4133
4133
|
Ke !== !1 && (clearTimeout(Ke), Ke = !1);
|
|
4134
|
-
}, Ut = 5,
|
|
4134
|
+
}, Ut = 5, Gr = ({
|
|
4135
4135
|
element: e = "div",
|
|
4136
4136
|
likes: t = 0,
|
|
4137
4137
|
peopleWhoLiked: n = !1,
|
|
@@ -4139,15 +4139,15 @@ const Ht = () => {
|
|
|
4139
4139
|
userLiked: i = !1,
|
|
4140
4140
|
content: d = { type: "reply", slugs: {} },
|
|
4141
4141
|
canLike: u = !0,
|
|
4142
|
-
functions: { createLike:
|
|
4142
|
+
functions: { createLike: a = () => {
|
|
4143
4143
|
}, deleteLike: l = () => {
|
|
4144
4144
|
} } = {}
|
|
4145
4145
|
}) => {
|
|
4146
|
-
const
|
|
4146
|
+
const o = D();
|
|
4147
4147
|
G(() => {
|
|
4148
4148
|
p(i);
|
|
4149
4149
|
}, [i]);
|
|
4150
|
-
const [m, c] = P(t), [h, p] = P(i), [g, b] = P(!1), [v, E] = P(!1), j = xt(() =>
|
|
4150
|
+
const [m, c] = P(t), [h, p] = P(i), [g, b] = P(!1), [v, E] = P(!1), j = xt(() => Yr(n, Ut), [n]), _ = (N) => {
|
|
4151
4151
|
if (N.preventDefault(), N.stopPropagation(), E(!1), Ke)
|
|
4152
4152
|
return Ht(), !1;
|
|
4153
4153
|
if (Ht(), g || !u)
|
|
@@ -4160,8 +4160,8 @@ const Ht = () => {
|
|
|
4160
4160
|
N < 0 && (N = 0), b(!0), c(N), p(!h);
|
|
4161
4161
|
try {
|
|
4162
4162
|
if (d && d.slugs) {
|
|
4163
|
-
const R =
|
|
4164
|
-
h ? await l(R) : await
|
|
4163
|
+
const R = Vr(d.slugs);
|
|
4164
|
+
h ? await l(R) : await a(R, { contentPath: window.location.pathname });
|
|
4165
4165
|
}
|
|
4166
4166
|
} catch {
|
|
4167
4167
|
c(t), p(i);
|
|
@@ -4194,9 +4194,9 @@ const Ht = () => {
|
|
|
4194
4194
|
size: "medium",
|
|
4195
4195
|
icon: { icon: h ? "heart" : "heart_empty", animate: "bounce" },
|
|
4196
4196
|
className: S({ "do-animation": h && !i }),
|
|
4197
|
-
screenreaderText: u ?
|
|
4197
|
+
screenreaderText: u ? o.formatMessage({
|
|
4198
4198
|
id: `discussion_likes_${h ? "unlike" : "like"}`
|
|
4199
|
-
}, { action:
|
|
4199
|
+
}, { action: o.formatMessage({ id: `discussion_action_${d.type}` }) }) : !1,
|
|
4200
4200
|
onClick: _,
|
|
4201
4201
|
disabled: !u,
|
|
4202
4202
|
"aria-hidden": !u,
|
|
@@ -4205,8 +4205,8 @@ const Ht = () => {
|
|
|
4205
4205
|
"data-gtm-event-type": `like-${d.type}-click`
|
|
4206
4206
|
}
|
|
4207
4207
|
),
|
|
4208
|
-
/* @__PURE__ */ s.jsx("span", { className: S("number-of-likes", { "no-likes": m === 0 }), "data-testid": "number-of-likes", children:
|
|
4209
|
-
n && /* @__PURE__ */ s.jsx(
|
|
4208
|
+
/* @__PURE__ */ s.jsx("span", { className: S("number-of-likes", { "no-likes": m === 0 }), "data-testid": "number-of-likes", children: o.formatMessage({ id: `discussion_likes${r ? "_short" : ""}` }, { number: m }) }),
|
|
4209
|
+
n && /* @__PURE__ */ s.jsx(er, { isOpen: v, isLoading: n.length === 0, children: n.length && /* @__PURE__ */ s.jsxs("ul", { children: [
|
|
4210
4210
|
j.map((N) => typeof N == "string" || !N.name ? null : /* @__PURE__ */ s.jsx("li", { children: /* @__PURE__ */ s.jsx(
|
|
4211
4211
|
jt,
|
|
4212
4212
|
{
|
|
@@ -4217,7 +4217,7 @@ const Ht = () => {
|
|
|
4217
4217
|
children: N.name
|
|
4218
4218
|
}
|
|
4219
4219
|
) }, N.id || window.btoa(N.name))),
|
|
4220
|
-
n.length > Ut && /* @__PURE__ */ s.jsx("li", { children:
|
|
4220
|
+
n.length > Ut && /* @__PURE__ */ s.jsx("li", { children: o.formatMessage({ id: "discussion_likes_more" }, { number: n.length - Ut }) })
|
|
4221
4221
|
] }) })
|
|
4222
4222
|
] })
|
|
4223
4223
|
}
|
|
@@ -4226,14 +4226,14 @@ const Ht = () => {
|
|
|
4226
4226
|
const t = {};
|
|
4227
4227
|
return Object.keys(e).forEach((n) => n.includes("Id") ? t[n] = e[n] : t[`${n}Slug`] = e[n]), t;
|
|
4228
4228
|
}, sn = (e, t) => e && !t;
|
|
4229
|
-
const De = "discussion_",
|
|
4229
|
+
const De = "discussion_", Jr = 280, St = ({
|
|
4230
4230
|
element: e = "div",
|
|
4231
4231
|
content: t,
|
|
4232
4232
|
userHasPermissions: n = !0,
|
|
4233
4233
|
isLoading: r = !1,
|
|
4234
4234
|
originalAuthorId: i,
|
|
4235
4235
|
functions: {
|
|
4236
|
-
content: { createContent: d, deleteContent: u, updateContent:
|
|
4236
|
+
content: { createContent: d, deleteContent: u, updateContent: a } = {
|
|
4237
4237
|
createContent: () => {
|
|
4238
4238
|
},
|
|
4239
4239
|
deleteContent: () => {
|
|
@@ -4241,7 +4241,7 @@ const De = "discussion_", Gr = 280, St = ({
|
|
|
4241
4241
|
updateContent: () => {
|
|
4242
4242
|
}
|
|
4243
4243
|
},
|
|
4244
|
-
likes: { createLike: l, deleteLike:
|
|
4244
|
+
likes: { createLike: l, deleteLike: o } = { createLike: () => {
|
|
4245
4245
|
}, deleteLike: () => {
|
|
4246
4246
|
} },
|
|
4247
4247
|
comments: { openComments: m } = { openComments: () => {
|
|
@@ -4257,7 +4257,7 @@ const De = "discussion_", Gr = 280, St = ({
|
|
|
4257
4257
|
body: t && t.body || "",
|
|
4258
4258
|
isEditing: !1,
|
|
4259
4259
|
didEdit: t && t.isEdited || !1
|
|
4260
|
-
}), [N, R] = P(!1), [J,
|
|
4260
|
+
}), [N, R] = P(!1), [J, O] = P("");
|
|
4261
4261
|
if (G(() => {
|
|
4262
4262
|
T({
|
|
4263
4263
|
..._,
|
|
@@ -4266,20 +4266,20 @@ const De = "discussion_", Gr = 280, St = ({
|
|
|
4266
4266
|
});
|
|
4267
4267
|
}, [t.isEdited]), r || !t || t.type === "answer" && (!t.slugs || !t.slugs.question))
|
|
4268
4268
|
return /* @__PURE__ */ s.jsx(Se, { className: "discussion-card discussion-post" });
|
|
4269
|
-
const { author: H, canLike: F, createdAt: x, id: Y, likes: k = 0, userLiked: w, comments: V = 0 } = t, Z = b ? Qe(_.body,
|
|
4270
|
-
L || (L = ""),
|
|
4269
|
+
const { author: H, canLike: F, createdAt: x, id: Y, likes: k = 0, userLiked: w, comments: V = 0 } = t, Z = b ? Qe(_.body, Jr) : _.body, se = E && E.id && typeof H != "string" && H.id && H.id === E.id || !1, re = typeof F == "boolean" ? F : n ? !se : !1, ae = async (L) => {
|
|
4270
|
+
L || (L = ""), O("");
|
|
4271
4271
|
try {
|
|
4272
4272
|
if (!Ns(L, _.body)) {
|
|
4273
|
-
const
|
|
4274
|
-
await
|
|
4273
|
+
const oe = t.type === "question" ? { title: L } : { body: L };
|
|
4274
|
+
await a(En(t.slugs), oe);
|
|
4275
4275
|
}
|
|
4276
4276
|
T({ body: L, isEditing: !1, didEdit: !0 });
|
|
4277
4277
|
} catch {
|
|
4278
|
-
|
|
4278
|
+
O(`${De}form_error`);
|
|
4279
4279
|
}
|
|
4280
4280
|
}, q = () => {
|
|
4281
4281
|
j && j.updateConversation && j.updateConversation({ showThread: !0, showForm: !0 }), setTimeout(() => {
|
|
4282
|
-
const
|
|
4282
|
+
const oe = `reply-form-${(t.type === "answer" ? t.slug : t.slugs.answer || "").toLowerCase().slice(-15)}`, he = document.getElementById(oe), ce = document.getElementById(`${oe}-input`);
|
|
4283
4283
|
ce && ce.focus(), he && he.scrollIntoView({ behavior: "smooth" });
|
|
4284
4284
|
}, 0);
|
|
4285
4285
|
}, fe = () => {
|
|
@@ -4287,7 +4287,7 @@ const De = "discussion_", Gr = 280, St = ({
|
|
|
4287
4287
|
try {
|
|
4288
4288
|
u(En(t.slugs));
|
|
4289
4289
|
} catch {
|
|
4290
|
-
|
|
4290
|
+
O("delete-error");
|
|
4291
4291
|
}
|
|
4292
4292
|
}, ue = [
|
|
4293
4293
|
{
|
|
@@ -4325,7 +4325,7 @@ const De = "discussion_", Gr = 280, St = ({
|
|
|
4325
4325
|
className: "gtm-trackable",
|
|
4326
4326
|
"data-gtm-event-context": p,
|
|
4327
4327
|
"data-gtm-event-type": `delete-${t.type}-click`,
|
|
4328
|
-
...
|
|
4328
|
+
...Br(`delete-${t.slug}-modal`, N)
|
|
4329
4329
|
}
|
|
4330
4330
|
), C.createElement(e, {
|
|
4331
4331
|
className: S("discussion-post", h),
|
|
@@ -4376,9 +4376,9 @@ const De = "discussion_", Gr = 280, St = ({
|
|
|
4376
4376
|
},
|
|
4377
4377
|
functions: {
|
|
4378
4378
|
create: d,
|
|
4379
|
-
handleSaveEdit:
|
|
4379
|
+
handleSaveEdit: ae,
|
|
4380
4380
|
handleCancel: () => {
|
|
4381
|
-
|
|
4381
|
+
O(""), T({ ..._, isEditing: !1 });
|
|
4382
4382
|
}
|
|
4383
4383
|
},
|
|
4384
4384
|
gtmContext: `${p}Form`
|
|
@@ -4390,7 +4390,7 @@ const De = "discussion_", Gr = 280, St = ({
|
|
|
4390
4390
|
className: "gtm-trackable",
|
|
4391
4391
|
"data-gtm-event-context": p,
|
|
4392
4392
|
"data-gtm-event-type": "title-click",
|
|
4393
|
-
children: /* @__PURE__ */ s.jsx(wn, { options: { overrides: { a:
|
|
4393
|
+
children: /* @__PURE__ */ s.jsx(wn, { options: { overrides: { a: ur } }, children: Z })
|
|
4394
4394
|
}
|
|
4395
4395
|
) : /* @__PURE__ */ s.jsx(
|
|
4396
4396
|
wn,
|
|
@@ -4411,7 +4411,7 @@ const De = "discussion_", Gr = 280, St = ({
|
|
|
4411
4411
|
"data-testid": `${t.type}-actions`,
|
|
4412
4412
|
children: [
|
|
4413
4413
|
/* @__PURE__ */ s.jsx(
|
|
4414
|
-
|
|
4414
|
+
Gr,
|
|
4415
4415
|
{
|
|
4416
4416
|
element: "li",
|
|
4417
4417
|
likes: k,
|
|
@@ -4422,7 +4422,7 @@ const De = "discussion_", Gr = 280, St = ({
|
|
|
4422
4422
|
peopleWhoLiked: t.peopleWhoLiked,
|
|
4423
4423
|
functions: {
|
|
4424
4424
|
createLike: l,
|
|
4425
|
-
deleteLike:
|
|
4425
|
+
deleteLike: o
|
|
4426
4426
|
}
|
|
4427
4427
|
}
|
|
4428
4428
|
),
|
|
@@ -4470,7 +4470,7 @@ const De = "discussion_", Gr = 280, St = ({
|
|
|
4470
4470
|
}
|
|
4471
4471
|
) }),
|
|
4472
4472
|
/* @__PURE__ */ s.jsx(
|
|
4473
|
-
|
|
4473
|
+
Sr,
|
|
4474
4474
|
{
|
|
4475
4475
|
element: "li",
|
|
4476
4476
|
id: `more-${t.slug}`,
|
|
@@ -4536,15 +4536,15 @@ const De = "discussion_", Gr = 280, St = ({
|
|
|
4536
4536
|
] })
|
|
4537
4537
|
});
|
|
4538
4538
|
};
|
|
4539
|
-
const Wt = "discussion_responses_",
|
|
4539
|
+
const Wt = "discussion_responses_", co = ({ type: e = "answer", responses: t = 0 }) => {
|
|
4540
4540
|
const n = D();
|
|
4541
4541
|
return /* @__PURE__ */ s.jsxs("div", { className: "responses-heading", children: [
|
|
4542
4542
|
/* @__PURE__ */ s.jsx("h3", { children: n.formatMessage({ id: `${Wt}title` }, { action: n.formatMessage({ id: `${Wt}${e}` }), count: t }) }),
|
|
4543
4543
|
t === 0 && /* @__PURE__ */ s.jsx("p", { children: Te(n.formatMessage, `${Wt}empty`, e, e) })
|
|
4544
4544
|
] });
|
|
4545
4545
|
};
|
|
4546
|
-
const
|
|
4547
|
-
const r = D(), i = de(null), d = je(Et), [u,
|
|
4546
|
+
const Xr = ({ count: e = 0, showRepliesButton: t = !0, children: n }) => {
|
|
4547
|
+
const r = D(), i = de(null), d = je(Et), [u, a] = P(
|
|
4548
4548
|
"closed"
|
|
4549
4549
|
/* Closed */
|
|
4550
4550
|
);
|
|
@@ -4555,7 +4555,7 @@ const Jr = ({ count: e = 0, showRepliesButton: t = !0, children: n }) => {
|
|
|
4555
4555
|
c.removeEventListener("transitionend", l);
|
|
4556
4556
|
};
|
|
4557
4557
|
}, []), He(() => {
|
|
4558
|
-
u === "closed" && !d.showThread ||
|
|
4558
|
+
u === "closed" && !d.showThread || a(
|
|
4559
4559
|
[
|
|
4560
4560
|
"opening",
|
|
4561
4561
|
"open"
|
|
@@ -4564,14 +4564,14 @@ const Jr = ({ count: e = 0, showRepliesButton: t = !0, children: n }) => {
|
|
|
4564
4564
|
/* Opening */
|
|
4565
4565
|
);
|
|
4566
4566
|
}, [d.showThread]), G(() => {
|
|
4567
|
-
u === "ready-to-close" &&
|
|
4567
|
+
u === "ready-to-close" && a(
|
|
4568
4568
|
"closing"
|
|
4569
4569
|
/* Closing */
|
|
4570
4570
|
);
|
|
4571
4571
|
}, [u]);
|
|
4572
4572
|
const l = ({ propertyName: c }) => {
|
|
4573
|
-
c === "max-height" &&
|
|
4574
|
-
},
|
|
4573
|
+
c === "max-height" && a((h) => h === "opening" ? "open" : h === "closing" ? "closed" : h);
|
|
4574
|
+
}, o = [
|
|
4575
4575
|
"opening",
|
|
4576
4576
|
"open"
|
|
4577
4577
|
/* Open */
|
|
@@ -4585,7 +4585,7 @@ const Jr = ({ count: e = 0, showRepliesButton: t = !0, children: n }) => {
|
|
|
4585
4585
|
variant: "secondary",
|
|
4586
4586
|
size: "small",
|
|
4587
4587
|
styling: { muted: !0 },
|
|
4588
|
-
icon: { icon: `arrow_corner-down_${
|
|
4588
|
+
icon: { icon: `arrow_corner-down_${o ? "left" : "right"}` },
|
|
4589
4589
|
onClick: () => {
|
|
4590
4590
|
var c;
|
|
4591
4591
|
(c = d.updateConversation) == null || c.call(d, (h) => ({
|
|
@@ -4594,7 +4594,7 @@ const Jr = ({ count: e = 0, showRepliesButton: t = !0, children: n }) => {
|
|
|
4594
4594
|
}));
|
|
4595
4595
|
},
|
|
4596
4596
|
children: r.formatMessage(
|
|
4597
|
-
{ id: `discussion_thread_${
|
|
4597
|
+
{ id: `discussion_thread_${o ? "hide" : "show"}` },
|
|
4598
4598
|
{ count: e }
|
|
4599
4599
|
)
|
|
4600
4600
|
}
|
|
@@ -4609,7 +4609,7 @@ const Jr = ({ count: e = 0, showRepliesButton: t = !0, children: n }) => {
|
|
|
4609
4609
|
}
|
|
4610
4610
|
)
|
|
4611
4611
|
] });
|
|
4612
|
-
},
|
|
4612
|
+
}, Zr = ({
|
|
4613
4613
|
user: e,
|
|
4614
4614
|
content: t,
|
|
4615
4615
|
verb: n = "post"
|
|
@@ -4630,23 +4630,23 @@ const Jr = ({ count: e = 0, showRepliesButton: t = !0, children: n }) => {
|
|
|
4630
4630
|
like: 0
|
|
4631
4631
|
},
|
|
4632
4632
|
verb: n
|
|
4633
|
-
}),
|
|
4633
|
+
}), Kr = ({
|
|
4634
4634
|
queryClient: e,
|
|
4635
4635
|
queryKey: t,
|
|
4636
4636
|
user: n,
|
|
4637
4637
|
mutationFn: r
|
|
4638
|
-
}) => ({ mutationFn: r, onMutate: async ({ content:
|
|
4638
|
+
}) => ({ mutationFn: r, onMutate: async ({ content: a }) => {
|
|
4639
4639
|
if (!n)
|
|
4640
4640
|
return;
|
|
4641
|
-
const l =
|
|
4641
|
+
const l = Zr({ user: n, content: a, verb: "post" });
|
|
4642
4642
|
await e.cancelQueries({ queryKey: t });
|
|
4643
|
-
const
|
|
4644
|
-
return e.setQueryData(t, (m) => [...m, l]), { previousActivities:
|
|
4645
|
-
}, onError: (
|
|
4646
|
-
e.setQueryData(t,
|
|
4643
|
+
const o = e.getQueryData(t);
|
|
4644
|
+
return e.setQueryData(t, (m) => [...m, l]), { previousActivities: o };
|
|
4645
|
+
}, onError: (a, l, o) => {
|
|
4646
|
+
e.setQueryData(t, o.previousActivities);
|
|
4647
4647
|
}, onSettled: () => {
|
|
4648
4648
|
e.invalidateQueries({ queryKey: t });
|
|
4649
|
-
} }),
|
|
4649
|
+
} }), qr = ({
|
|
4650
4650
|
queryClient: e,
|
|
4651
4651
|
queryKey: t,
|
|
4652
4652
|
mutationFn: n
|
|
@@ -4654,77 +4654,77 @@ const Jr = ({ count: e = 0, showRepliesButton: t = !0, children: n }) => {
|
|
|
4654
4654
|
mutationFn: n,
|
|
4655
4655
|
onMutate: async ({
|
|
4656
4656
|
activityInfo: u,
|
|
4657
|
-
content: { body:
|
|
4657
|
+
content: { body: a }
|
|
4658
4658
|
}) => {
|
|
4659
|
-
if (
|
|
4659
|
+
if (a.length === 0)
|
|
4660
4660
|
return;
|
|
4661
4661
|
await e.cancelQueries({ queryKey: t });
|
|
4662
|
-
const l = e.getQueryData(t),
|
|
4663
|
-
return e.setQueryData(t, () =>
|
|
4662
|
+
const l = e.getQueryData(t), o = l == null ? void 0 : l.map((m) => ((m == null ? void 0 : m.id) === (u == null ? void 0 : u.activityId) && (m.content = a), m));
|
|
4663
|
+
return e.setQueryData(t, () => o && [...o]), { previousActivities: o };
|
|
4664
4664
|
},
|
|
4665
|
-
onError: (u,
|
|
4665
|
+
onError: (u, a, l) => {
|
|
4666
4666
|
e.setQueryData(t, l.previousActivities);
|
|
4667
4667
|
},
|
|
4668
4668
|
onSettled: () => {
|
|
4669
4669
|
e.invalidateQueries({ queryKey: t });
|
|
4670
4670
|
}
|
|
4671
|
-
}),
|
|
4671
|
+
}), ea = ({
|
|
4672
4672
|
queryClient: e,
|
|
4673
4673
|
queryKey: t,
|
|
4674
4674
|
mutationFn: n
|
|
4675
4675
|
}) => ({ mutationFn: n, onMutate: async ({ activityId: u }) => {
|
|
4676
4676
|
await e.cancelQueries({ queryKey: t });
|
|
4677
|
-
const
|
|
4678
|
-
(
|
|
4677
|
+
const a = e.getQueryData(t), l = a == null ? void 0 : a.filter(
|
|
4678
|
+
(o) => (o == null ? void 0 : o.id) !== u
|
|
4679
4679
|
);
|
|
4680
4680
|
return e.setQueryData(t, () => l && [...l]), { previousActivities: l };
|
|
4681
|
-
}, onError: (u,
|
|
4681
|
+
}, onError: (u, a, l) => {
|
|
4682
4682
|
e.setQueryData(t, l.previousActivities);
|
|
4683
|
-
}, onSettled: (u,
|
|
4683
|
+
}, onSettled: (u, a, l) => {
|
|
4684
4684
|
e.invalidateQueries({
|
|
4685
4685
|
queryKey: [...t, l.activityId]
|
|
4686
4686
|
});
|
|
4687
|
-
} }),
|
|
4687
|
+
} }), ta = ({
|
|
4688
4688
|
queryClient: e,
|
|
4689
4689
|
queryKey: t,
|
|
4690
4690
|
mutationFn: n
|
|
4691
|
-
}) => ({ mutationFn: n, onMutate: async ({ activityId:
|
|
4691
|
+
}) => ({ mutationFn: n, onMutate: async ({ activityId: a }) => {
|
|
4692
4692
|
await e.cancelQueries({ queryKey: t });
|
|
4693
|
-
const l = e.getQueryData(t),
|
|
4693
|
+
const l = e.getQueryData(t), o = l == null ? void 0 : l.map((m) => {
|
|
4694
4694
|
var c;
|
|
4695
|
-
return (m == null ? void 0 : m.id) ===
|
|
4695
|
+
return (m == null ? void 0 : m.id) === a && ((c = m.reaction_counts) != null && c.like ? m.reaction_counts.like += 1 : m.reaction_counts.like = 1), m;
|
|
4696
4696
|
});
|
|
4697
|
-
return e.setQueryData(t, () =>
|
|
4698
|
-
}, onError: (
|
|
4699
|
-
e.setQueryData(t,
|
|
4700
|
-
}, onSuccess: (
|
|
4701
|
-
const l = e.getQueryData(t),
|
|
4697
|
+
return e.setQueryData(t, () => o && [...o]), { previousActivities: o };
|
|
4698
|
+
}, onError: (a, l, o) => {
|
|
4699
|
+
e.setQueryData(t, o.previousActivities);
|
|
4700
|
+
}, onSuccess: (a) => {
|
|
4701
|
+
const l = e.getQueryData(t), o = l == null ? void 0 : l.map((m) => {
|
|
4702
4702
|
var c, h;
|
|
4703
|
-
return (m == null ? void 0 : m.id) === (
|
|
4703
|
+
return (m == null ? void 0 : m.id) === (a == null ? void 0 : a.activity_id) && ((c = m.own_reactions) != null && c.like ? m.own_reactions.like.push(a) : m.own_reactions.like = [a], (h = m.latest_reactions) != null && h.like ? m.latest_reactions.like.push(a) : m.own_reactions.like = [a]), m;
|
|
4704
4704
|
});
|
|
4705
|
-
return e.setQueryData(t, () =>
|
|
4706
|
-
}, onSettled: (
|
|
4705
|
+
return e.setQueryData(t, () => o && [...o]), { previousActivities: l };
|
|
4706
|
+
}, onSettled: (a, l, o) => {
|
|
4707
4707
|
e.invalidateQueries({
|
|
4708
|
-
queryKey: [...t,
|
|
4708
|
+
queryKey: [...t, o.activityId]
|
|
4709
4709
|
});
|
|
4710
|
-
} }),
|
|
4710
|
+
} }), na = ({
|
|
4711
4711
|
queryClient: e,
|
|
4712
4712
|
queryKey: t,
|
|
4713
4713
|
user: n,
|
|
4714
4714
|
mutationFn: r
|
|
4715
4715
|
}) => ({ mutationFn: r, onMutate: async ({ activityId: l }) => {
|
|
4716
4716
|
await e.cancelQueries({ queryKey: t });
|
|
4717
|
-
const
|
|
4717
|
+
const o = e.getQueryData(t), m = o == null ? void 0 : o.map((c) => {
|
|
4718
4718
|
var h;
|
|
4719
4719
|
return (c == null ? void 0 : c.id) === l && (h = c.reaction_counts) != null && h.like && (c.reaction_counts.like -= 1), c;
|
|
4720
4720
|
});
|
|
4721
4721
|
return e.setQueryData(t, () => m && [...m]), { previousActivities: m };
|
|
4722
|
-
}, onError: (l,
|
|
4722
|
+
}, onError: (l, o, m) => {
|
|
4723
4723
|
e.setQueryData(t, m.previousActivities);
|
|
4724
|
-
}, onSuccess: (l, { activityId:
|
|
4724
|
+
}, onSuccess: (l, { activityId: o }) => {
|
|
4725
4725
|
const m = e.getQueryData(t), c = m == null ? void 0 : m.map((h) => {
|
|
4726
4726
|
var p, g, b, v, E;
|
|
4727
|
-
if (h.id ===
|
|
4727
|
+
if (h.id === o) {
|
|
4728
4728
|
const j = (b = (g = (p = h.own_reactions) == null ? void 0 : p.like) == null ? void 0 : g.find(
|
|
4729
4729
|
(_) => _.user_id === (n == null ? void 0 : n.id)
|
|
4730
4730
|
)) == null ? void 0 : b.id;
|
|
@@ -4737,15 +4737,15 @@ const Jr = ({ count: e = 0, showRepliesButton: t = !0, children: n }) => {
|
|
|
4737
4737
|
return h;
|
|
4738
4738
|
});
|
|
4739
4739
|
return e.setQueryData(t, () => c && [...c]), { previousActivities: m };
|
|
4740
|
-
}, onSettled: (l,
|
|
4740
|
+
}, onSettled: (l, o, m) => {
|
|
4741
4741
|
e.invalidateQueries({
|
|
4742
4742
|
queryKey: [...t, m.activityId]
|
|
4743
4743
|
});
|
|
4744
|
-
} }),
|
|
4744
|
+
} }), lo = ({
|
|
4745
4745
|
basePath: e,
|
|
4746
4746
|
parentId: t,
|
|
4747
4747
|
isMember: n,
|
|
4748
|
-
functions: { list: r, create: i, edit: d, remove: u, like:
|
|
4748
|
+
functions: { list: r, create: i, edit: d, remove: u, like: a, unlike: l, join: o, leave: m }
|
|
4749
4749
|
}) => {
|
|
4750
4750
|
const c = D(), h = wt(), p = je($e), {
|
|
4751
4751
|
data: g,
|
|
@@ -4755,40 +4755,40 @@ const Jr = ({ count: e = 0, showRepliesButton: t = !0, children: n }) => {
|
|
|
4755
4755
|
} = Tn({
|
|
4756
4756
|
queryKey: [e, t],
|
|
4757
4757
|
queryFn: r
|
|
4758
|
-
}), j =
|
|
4758
|
+
}), j = Kr({
|
|
4759
4759
|
queryClient: h,
|
|
4760
4760
|
queryKey: [e, t],
|
|
4761
4761
|
user: p,
|
|
4762
4762
|
mutationFn: i
|
|
4763
|
-
}), { mutate: _ } = ie(j), T =
|
|
4763
|
+
}), { mutate: _ } = ie(j), T = qr({
|
|
4764
4764
|
queryClient: h,
|
|
4765
4765
|
queryKey: [e, t],
|
|
4766
4766
|
mutationFn: async (w) => await d(w)
|
|
4767
4767
|
}), {
|
|
4768
4768
|
mutate: N
|
|
4769
|
-
} = ie(T), R =
|
|
4769
|
+
} = ie(T), R = ea({
|
|
4770
4770
|
queryClient: h,
|
|
4771
4771
|
queryKey: [e, t],
|
|
4772
4772
|
mutationFn: async ({ activityId: w }) => await u({ activityId: w })
|
|
4773
4773
|
}), {
|
|
4774
4774
|
mutate: J
|
|
4775
|
-
} = ie(R),
|
|
4775
|
+
} = ie(R), O = ta({
|
|
4776
4776
|
queryClient: h,
|
|
4777
4777
|
queryKey: [e, t],
|
|
4778
|
-
mutationFn:
|
|
4778
|
+
mutationFn: a
|
|
4779
4779
|
}), {
|
|
4780
4780
|
mutate: H
|
|
4781
|
-
} = ie(
|
|
4781
|
+
} = ie(O), F = na({
|
|
4782
4782
|
queryClient: h,
|
|
4783
4783
|
queryKey: [e, t],
|
|
4784
4784
|
user: p,
|
|
4785
4785
|
mutationFn: async ({ activityId: w }) => {
|
|
4786
|
-
var se, re,
|
|
4786
|
+
var se, re, ae;
|
|
4787
4787
|
const V = g && (g == null ? void 0 : g.find(
|
|
4788
4788
|
(q) => q.id === w
|
|
4789
|
-
)), Z = (
|
|
4789
|
+
)), Z = (ae = (re = (se = V == null ? void 0 : V.own_reactions) == null ? void 0 : se.like) == null ? void 0 : re.find(
|
|
4790
4790
|
(q) => q.user_id === (p == null ? void 0 : p.id)
|
|
4791
|
-
)) == null ? void 0 :
|
|
4791
|
+
)) == null ? void 0 : ae.id;
|
|
4792
4792
|
await l({ reactionId: Z || "", activityId: w });
|
|
4793
4793
|
}
|
|
4794
4794
|
}), {
|
|
@@ -4809,14 +4809,14 @@ const Jr = ({ count: e = 0, showRepliesButton: t = !0, children: n }) => {
|
|
|
4809
4809
|
membershipRequiredToPost: {
|
|
4810
4810
|
isMember: n,
|
|
4811
4811
|
required: !0,
|
|
4812
|
-
join:
|
|
4812
|
+
join: o,
|
|
4813
4813
|
leave: m,
|
|
4814
4814
|
notMemberStateText: c.formatMessage({ id: "community_joinToPost" })
|
|
4815
4815
|
}
|
|
4816
4816
|
}
|
|
4817
4817
|
),
|
|
4818
4818
|
!E && Array.isArray(g) && (g == null ? void 0 : g.map((w) => {
|
|
4819
|
-
var se, re,
|
|
4819
|
+
var se, re, ae, q, fe, ue, L, oe, he, ce, xe, pe, be, ge;
|
|
4820
4820
|
const V = ((se = w == null ? void 0 : w.actor) == null ? void 0 : se.id) === (p == null ? void 0 : p.id), Z = sn(n, V);
|
|
4821
4821
|
return /* @__PURE__ */ s.jsxs(Vt, { children: [
|
|
4822
4822
|
/* @__PURE__ */ s.jsx(
|
|
@@ -4831,9 +4831,9 @@ const Jr = ({ count: e = 0, showRepliesButton: t = !0, children: n }) => {
|
|
|
4831
4831
|
slug: w == null ? void 0 : w.id,
|
|
4832
4832
|
author: {
|
|
4833
4833
|
id: (re = w == null ? void 0 : w.actor) == null ? void 0 : re.id,
|
|
4834
|
-
name: `${(q = (
|
|
4834
|
+
name: `${(q = (ae = w == null ? void 0 : w.actor) == null ? void 0 : ae.data) == null ? void 0 : q.name}`,
|
|
4835
4835
|
organization: (ue = (fe = w == null ? void 0 : w.actor) == null ? void 0 : fe.data) == null ? void 0 : ue.organization,
|
|
4836
|
-
jobTitle: (
|
|
4836
|
+
jobTitle: (oe = (L = w == null ? void 0 : w.actor) == null ? void 0 : L.data) == null ? void 0 : oe.jobTitle,
|
|
4837
4837
|
image: {
|
|
4838
4838
|
thumbnail: ((ce = (he = w == null ? void 0 : w.actor) == null ? void 0 : he.data) == null ? void 0 : ce.thumbnail) || void 0
|
|
4839
4839
|
}
|
|
@@ -4878,26 +4878,26 @@ const Jr = ({ count: e = 0, showRepliesButton: t = !0, children: n }) => {
|
|
|
4878
4878
|
] }, w == null ? void 0 : w.id);
|
|
4879
4879
|
}))
|
|
4880
4880
|
] });
|
|
4881
|
-
},
|
|
4881
|
+
}, sa = ({
|
|
4882
4882
|
queryClient: e,
|
|
4883
4883
|
queryKey: t,
|
|
4884
4884
|
mutationFn: n
|
|
4885
4885
|
}) => ({ mutationFn: n, onMutate: async () => {
|
|
4886
4886
|
await e.cancelQueries({ queryKey: t });
|
|
4887
|
-
}, onError: (
|
|
4888
|
-
e.setQueryData(t,
|
|
4889
|
-
}, onSuccess: (
|
|
4890
|
-
var
|
|
4887
|
+
}, onError: (a, l, o) => {
|
|
4888
|
+
e.setQueryData(t, o.previousActivity);
|
|
4889
|
+
}, onSuccess: (a) => {
|
|
4890
|
+
var o;
|
|
4891
4891
|
const l = e.getQueryData(t);
|
|
4892
4892
|
if (l)
|
|
4893
|
-
return (
|
|
4893
|
+
return (o = l == null ? void 0 : l.latest_reactions) != null && o.reply ? (l.latest_reactions.reply.unshift(a), l && (l.reaction_counts = {
|
|
4894
4894
|
reply: l.latest_reactions.reply.length
|
|
4895
|
-
})) : (l.latest_reactions = { reply: [
|
|
4895
|
+
})) : (l.latest_reactions = { reply: [a] }, l.reaction_counts = { reply: 1 }), e.setQueryData(t, () => ({
|
|
4896
4896
|
...l
|
|
4897
4897
|
})), { previousActivity: l };
|
|
4898
4898
|
}, onSettled: () => {
|
|
4899
4899
|
e.invalidateQueries({ queryKey: t });
|
|
4900
|
-
} }),
|
|
4900
|
+
} }), ra = ({
|
|
4901
4901
|
queryClient: e,
|
|
4902
4902
|
queryKey: t,
|
|
4903
4903
|
mutationFn: n
|
|
@@ -4907,92 +4907,92 @@ const Jr = ({ count: e = 0, showRepliesButton: t = !0, children: n }) => {
|
|
|
4907
4907
|
replyInfo: d,
|
|
4908
4908
|
content: { body: u }
|
|
4909
4909
|
}) => {
|
|
4910
|
-
var
|
|
4910
|
+
var o, m, c;
|
|
4911
4911
|
if (u.length === 0)
|
|
4912
4912
|
return;
|
|
4913
4913
|
await e.cancelQueries({ queryKey: t });
|
|
4914
|
-
const
|
|
4915
|
-
if (!
|
|
4914
|
+
const a = e.getQueryData(t);
|
|
4915
|
+
if (!a || !((o = a == null ? void 0 : a.latest_reactions) != null && o.reply))
|
|
4916
4916
|
return;
|
|
4917
|
-
const l = (c = (m =
|
|
4917
|
+
const l = (c = (m = a == null ? void 0 : a.latest_reactions) == null ? void 0 : m.reply) == null ? void 0 : c.map((h) => (h.id === d.replySlug && (h.data.content = u), h));
|
|
4918
4918
|
return e.setQueryData(t, () => ({
|
|
4919
|
-
...
|
|
4919
|
+
...a,
|
|
4920
4920
|
latest_reactions: { reply: l }
|
|
4921
|
-
})), { previousActivity:
|
|
4921
|
+
})), { previousActivity: a };
|
|
4922
4922
|
},
|
|
4923
|
-
onError: (d, u,
|
|
4924
|
-
e.setQueryData(t,
|
|
4923
|
+
onError: (d, u, a) => {
|
|
4924
|
+
e.setQueryData(t, a.previousActivity);
|
|
4925
4925
|
}
|
|
4926
|
-
}),
|
|
4926
|
+
}), aa = ({
|
|
4927
4927
|
queryClient: e,
|
|
4928
4928
|
queryKey: t,
|
|
4929
4929
|
mutationFn: n
|
|
4930
4930
|
}) => ({ mutationFn: n, onMutate: async ({ replyId: d }) => {
|
|
4931
|
-
var l,
|
|
4931
|
+
var l, o, m;
|
|
4932
4932
|
await e.cancelQueries({ queryKey: t });
|
|
4933
4933
|
const u = e.getQueryData(t);
|
|
4934
4934
|
if (!u || !((l = u == null ? void 0 : u.latest_reactions) != null && l.reply))
|
|
4935
4935
|
return;
|
|
4936
|
-
const
|
|
4936
|
+
const a = (m = (o = u == null ? void 0 : u.latest_reactions) == null ? void 0 : o.reply) == null ? void 0 : m.filter(
|
|
4937
4937
|
(c) => c.id !== d
|
|
4938
4938
|
);
|
|
4939
4939
|
return e.setQueryData(t, () => ({
|
|
4940
4940
|
...u,
|
|
4941
|
-
latest_reactions: { reply:
|
|
4941
|
+
latest_reactions: { reply: a }
|
|
4942
4942
|
})), { previousActivity: u };
|
|
4943
|
-
}, onError: (d, u,
|
|
4944
|
-
e.setQueryData(t,
|
|
4945
|
-
} }),
|
|
4943
|
+
}, onError: (d, u, a) => {
|
|
4944
|
+
e.setQueryData(t, a.previousActivity);
|
|
4945
|
+
} }), oa = ({
|
|
4946
4946
|
queryClient: e,
|
|
4947
4947
|
queryKey: t,
|
|
4948
4948
|
mutationFn: n
|
|
4949
4949
|
}) => ({ mutationFn: n, onMutate: async ({ replyId: u }) => {
|
|
4950
|
-
var
|
|
4950
|
+
var o, m;
|
|
4951
4951
|
await e.cancelQueries({ queryKey: t });
|
|
4952
|
-
const
|
|
4952
|
+
const a = e.getQueryData(t), l = (m = (o = a == null ? void 0 : a.latest_reactions) == null ? void 0 : o.reply) == null ? void 0 : m.map((c) => {
|
|
4953
4953
|
var h;
|
|
4954
4954
|
return c.id === u && ((h = c.children_counts) != null && h.like ? c.children_counts.like += 1 : c.children_counts = { like: 1 }), c;
|
|
4955
4955
|
});
|
|
4956
4956
|
return e.setQueryData(t, () => ({
|
|
4957
|
-
...
|
|
4957
|
+
...a,
|
|
4958
4958
|
latest_reactions: { reply: l }
|
|
4959
|
-
})), { previousActivity:
|
|
4960
|
-
}, onError: (u,
|
|
4959
|
+
})), { previousActivity: a };
|
|
4960
|
+
}, onError: (u, a, l) => {
|
|
4961
4961
|
e.setQueryData(t, l.previousActivity);
|
|
4962
4962
|
}, onSuccess: (u) => {
|
|
4963
|
-
var
|
|
4964
|
-
const
|
|
4963
|
+
var o;
|
|
4964
|
+
const a = e.getQueryData(t), l = (o = a == null ? void 0 : a.latest_reactions.reply) == null ? void 0 : o.map((m) => {
|
|
4965
4965
|
var c, h;
|
|
4966
4966
|
return m.id === u.id && ((c = m.own_children) != null && c.like ? m.own_children.like.push(u) : m.own_children = { like: [u] }, (h = m.latest_children) != null && h.like ? m.latest_children.like.push(u) : m.latest_children = { like: [u] }), m;
|
|
4967
4967
|
});
|
|
4968
4968
|
return e.setQueryData(t, () => ({
|
|
4969
|
-
...
|
|
4969
|
+
...a,
|
|
4970
4970
|
latest_reactions: { reply: l }
|
|
4971
|
-
})), { previousActivity:
|
|
4972
|
-
} }),
|
|
4971
|
+
})), { previousActivity: a };
|
|
4972
|
+
} }), ia = ({
|
|
4973
4973
|
queryClient: e,
|
|
4974
4974
|
queryKey: t,
|
|
4975
4975
|
user: n,
|
|
4976
4976
|
mutationFn: r
|
|
4977
|
-
}) => ({ mutationFn: r, onMutate: async ({ replyId:
|
|
4977
|
+
}) => ({ mutationFn: r, onMutate: async ({ replyId: a }) => {
|
|
4978
4978
|
var m;
|
|
4979
4979
|
await e.cancelQueries({ queryKey: t });
|
|
4980
4980
|
const l = e.getQueryData(t);
|
|
4981
4981
|
if (!l)
|
|
4982
4982
|
return;
|
|
4983
|
-
const
|
|
4983
|
+
const o = (m = l.latest_reactions.reply) == null ? void 0 : m.map((c) => (c.id === a && c.children_counts.like && (c.children_counts.like -= 1), c));
|
|
4984
4984
|
return e.setQueryData(t, () => ({
|
|
4985
4985
|
...l,
|
|
4986
|
-
latest_reactions: { reply:
|
|
4986
|
+
latest_reactions: { reply: o }
|
|
4987
4987
|
})), { previousActivity: l };
|
|
4988
|
-
}, onError: (
|
|
4989
|
-
e.setQueryData(t,
|
|
4990
|
-
}, onSuccess: (
|
|
4988
|
+
}, onError: (a, l, o) => {
|
|
4989
|
+
e.setQueryData(t, o.previousActivity);
|
|
4990
|
+
}, onSuccess: (a, { replyId: l }) => {
|
|
4991
4991
|
var c;
|
|
4992
|
-
const
|
|
4993
|
-
if (!
|
|
4992
|
+
const o = e.getQueryData(t);
|
|
4993
|
+
if (!o)
|
|
4994
4994
|
return;
|
|
4995
|
-
const m = (c =
|
|
4995
|
+
const m = (c = o.latest_reactions.reply) == null ? void 0 : c.map((h) => {
|
|
4996
4996
|
var p, g, b;
|
|
4997
4997
|
if (h.id === l) {
|
|
4998
4998
|
let v = (p = h.latest_children.reply) == null ? void 0 : p.filter(
|
|
@@ -5005,10 +5005,10 @@ const Jr = ({ count: e = 0, showRepliesButton: t = !0, children: n }) => {
|
|
|
5005
5005
|
return h;
|
|
5006
5006
|
});
|
|
5007
5007
|
return e.setQueryData(t, () => ({
|
|
5008
|
-
...
|
|
5008
|
+
...o,
|
|
5009
5009
|
latest_reactions: { reply: m }
|
|
5010
|
-
})), { previousActivity:
|
|
5011
|
-
} }),
|
|
5010
|
+
})), { previousActivity: o };
|
|
5011
|
+
} }), ca = ({
|
|
5012
5012
|
queryClient: e,
|
|
5013
5013
|
queryKey: t,
|
|
5014
5014
|
mutationFn: n
|
|
@@ -5017,130 +5017,130 @@ const Jr = ({ count: e = 0, showRepliesButton: t = !0, children: n }) => {
|
|
|
5017
5017
|
onMutate: async () => {
|
|
5018
5018
|
await e.cancelQueries({ queryKey: t });
|
|
5019
5019
|
},
|
|
5020
|
-
onSuccess: (
|
|
5020
|
+
onSuccess: (a) => {
|
|
5021
5021
|
var m;
|
|
5022
|
-
const l = e.getQueryData(t),
|
|
5022
|
+
const l = e.getQueryData(t), o = (m = l == null ? void 0 : l.latest_reactions.reply) == null ? void 0 : m.map((c) => (c.id === a.parent && (c.latest_children.reply && c.children_counts.reply ? (c.latest_children.reply.push(a), c.children_counts.reply += 1) : (c.latest_children.reply = [a], c.children_counts.reply = 1)), c));
|
|
5023
5023
|
return e.setQueryData(t, () => ({
|
|
5024
5024
|
...l,
|
|
5025
|
-
latest_reactions: { reply:
|
|
5025
|
+
latest_reactions: { reply: o }
|
|
5026
5026
|
})), { previousActivity: l };
|
|
5027
5027
|
},
|
|
5028
|
-
onError: (
|
|
5029
|
-
e.setQueryData(t,
|
|
5028
|
+
onError: (a, l, o) => {
|
|
5029
|
+
e.setQueryData(t, o.previousActivity);
|
|
5030
5030
|
},
|
|
5031
5031
|
onSettled: () => {
|
|
5032
5032
|
e.invalidateQueries({ queryKey: t });
|
|
5033
5033
|
}
|
|
5034
|
-
}),
|
|
5034
|
+
}), la = ({
|
|
5035
5035
|
queryClient: e,
|
|
5036
5036
|
queryKey: t,
|
|
5037
5037
|
mutationFn: n
|
|
5038
|
-
}) => ({ mutationFn: n, onError: (d, u,
|
|
5039
|
-
e.setQueryData(t,
|
|
5038
|
+
}) => ({ mutationFn: n, onError: (d, u, a) => {
|
|
5039
|
+
e.setQueryData(t, a.previousActivity);
|
|
5040
5040
|
}, onMutate: async ({
|
|
5041
5041
|
replyInfo: d,
|
|
5042
5042
|
content: { body: u }
|
|
5043
5043
|
}) => {
|
|
5044
|
-
var
|
|
5044
|
+
var o, m, c;
|
|
5045
5045
|
if (u.length === 0)
|
|
5046
5046
|
return;
|
|
5047
5047
|
await e.cancelQueries({ queryKey: t });
|
|
5048
|
-
const
|
|
5049
|
-
if (!
|
|
5048
|
+
const a = e.getQueryData(t);
|
|
5049
|
+
if (!a || !((o = a == null ? void 0 : a.latest_reactions) != null && o.reply))
|
|
5050
5050
|
return;
|
|
5051
|
-
const l = (c = (m =
|
|
5051
|
+
const l = (c = (m = a == null ? void 0 : a.latest_reactions) == null ? void 0 : m.reply) == null ? void 0 : c.map((h) => {
|
|
5052
5052
|
var p;
|
|
5053
5053
|
return h.id === d.replyParentId && ((p = h.latest_children.reply) == null || p.map((g) => (g.id === d.replySlug && (g.data.content = u), g))), h;
|
|
5054
5054
|
});
|
|
5055
5055
|
return e.setQueryData(t, () => ({
|
|
5056
|
-
...
|
|
5056
|
+
...a,
|
|
5057
5057
|
latest_reactions: { reply: l }
|
|
5058
|
-
})), { previousActivity:
|
|
5059
|
-
} }),
|
|
5058
|
+
})), { previousActivity: a };
|
|
5059
|
+
} }), da = ({
|
|
5060
5060
|
queryClient: e,
|
|
5061
5061
|
queryKey: t,
|
|
5062
5062
|
mutationFn: n
|
|
5063
|
-
}) => ({ mutationFn: n, onError: (d, u,
|
|
5064
|
-
e.setQueryData(t,
|
|
5063
|
+
}) => ({ mutationFn: n, onError: (d, u, a) => {
|
|
5064
|
+
e.setQueryData(t, a.previousActivity);
|
|
5065
5065
|
}, onMutate: async ({
|
|
5066
5066
|
replyId: d,
|
|
5067
5067
|
replyParentId: u
|
|
5068
5068
|
}) => {
|
|
5069
|
-
var
|
|
5069
|
+
var o, m, c;
|
|
5070
5070
|
await e.cancelQueries({ queryKey: t });
|
|
5071
|
-
const
|
|
5072
|
-
if (!
|
|
5071
|
+
const a = e.getQueryData(t);
|
|
5072
|
+
if (!a || !((o = a == null ? void 0 : a.latest_reactions) != null && o.reply))
|
|
5073
5073
|
return;
|
|
5074
|
-
const l = (c = (m =
|
|
5074
|
+
const l = (c = (m = a == null ? void 0 : a.latest_reactions) == null ? void 0 : m.reply) == null ? void 0 : c.map((h) => {
|
|
5075
5075
|
var p, g;
|
|
5076
5076
|
return h.id === u && (h.latest_children.reply = (p = h.latest_children.reply) == null ? void 0 : p.filter(
|
|
5077
5077
|
(b) => b.id !== d
|
|
5078
5078
|
), (g = h.children_counts) != null && g.reply && (h.children_counts.reply -= 1)), h;
|
|
5079
5079
|
});
|
|
5080
5080
|
return e.setQueryData(t, () => ({
|
|
5081
|
-
...
|
|
5081
|
+
...a,
|
|
5082
5082
|
latest_reactions: { reply: l }
|
|
5083
|
-
})), { previousActivity:
|
|
5084
|
-
} }),
|
|
5083
|
+
})), { previousActivity: a };
|
|
5084
|
+
} }), ua = ({
|
|
5085
5085
|
queryClient: e,
|
|
5086
5086
|
queryKey: t,
|
|
5087
5087
|
mutationFn: n
|
|
5088
5088
|
}) => ({ mutationFn: n, onMutate: async ({
|
|
5089
5089
|
replyId: u,
|
|
5090
|
-
replyParentId:
|
|
5090
|
+
replyParentId: a
|
|
5091
5091
|
}) => {
|
|
5092
5092
|
var m;
|
|
5093
5093
|
await e.cancelQueries({ queryKey: t });
|
|
5094
|
-
const l = e.getQueryData(t),
|
|
5094
|
+
const l = e.getQueryData(t), o = (m = l == null ? void 0 : l.latest_reactions.reply) == null ? void 0 : m.map((c) => {
|
|
5095
5095
|
var h;
|
|
5096
|
-
return c.id ===
|
|
5096
|
+
return c.id === a && ((h = c.latest_children.reply) == null || h.map((p) => {
|
|
5097
5097
|
var g;
|
|
5098
5098
|
return p.id === u && ((g = p.children_counts) != null && g.like ? p.children_counts.like += 1 : p.children_counts = { like: 1 }), p;
|
|
5099
5099
|
})), c;
|
|
5100
5100
|
});
|
|
5101
5101
|
return e.setQueryData(t, () => ({
|
|
5102
5102
|
...l,
|
|
5103
|
-
latest_reactions: { reply:
|
|
5103
|
+
latest_reactions: { reply: o }
|
|
5104
5104
|
})), { previousActivity: l };
|
|
5105
|
-
}, onError: (u,
|
|
5105
|
+
}, onError: (u, a, l) => {
|
|
5106
5106
|
e.setQueryData(t, l.previousActivity);
|
|
5107
|
-
}, onSuccess: (u,
|
|
5107
|
+
}, onSuccess: (u, a) => {
|
|
5108
5108
|
var m;
|
|
5109
|
-
const l = e.getQueryData(t),
|
|
5109
|
+
const l = e.getQueryData(t), o = (m = l == null ? void 0 : l.latest_reactions.reply) == null ? void 0 : m.map((c) => {
|
|
5110
5110
|
var h;
|
|
5111
|
-
return c.id ===
|
|
5111
|
+
return c.id === a.replyParentId && ((h = c.latest_children.reply) == null || h.map((p) => (p.id === a.replyId && (p.latest_children = p.latest_children || {}, p.own_children = p.own_children || {}, p.latest_children.like = p.latest_children.like || [], p.own_children.like = p.own_children.like || [], p.latest_children.like.push(u), p.own_children.like.push(u)), p))), c;
|
|
5112
5112
|
});
|
|
5113
5113
|
return e.setQueryData(t, () => ({
|
|
5114
5114
|
...l,
|
|
5115
|
-
latest_reactions: { reply:
|
|
5115
|
+
latest_reactions: { reply: o }
|
|
5116
5116
|
})), { previousActivity: l };
|
|
5117
|
-
} }),
|
|
5117
|
+
} }), ma = ({
|
|
5118
5118
|
queryClient: e,
|
|
5119
5119
|
queryKey: t,
|
|
5120
5120
|
mutationFn: n,
|
|
5121
5121
|
user: r
|
|
5122
5122
|
}) => ({ mutationFn: n, onMutate: async ({
|
|
5123
|
-
replyId:
|
|
5123
|
+
replyId: a,
|
|
5124
5124
|
replyParentId: l
|
|
5125
5125
|
}) => {
|
|
5126
5126
|
var c;
|
|
5127
5127
|
await e.cancelQueries({ queryKey: t });
|
|
5128
|
-
const
|
|
5128
|
+
const o = e.getQueryData(t), m = (c = o == null ? void 0 : o.latest_reactions.reply) == null ? void 0 : c.map((h) => {
|
|
5129
5129
|
var p;
|
|
5130
5130
|
return h.id === l && ((p = h.latest_children.reply) == null || p.map((g) => {
|
|
5131
5131
|
var b;
|
|
5132
|
-
return g.id ===
|
|
5132
|
+
return g.id === a && ((b = g.children_counts) != null && b.like ? g.children_counts.like -= 1 : g.children_counts = { like: 0 }), g;
|
|
5133
5133
|
})), h;
|
|
5134
5134
|
});
|
|
5135
5135
|
return e.setQueryData(t, () => ({
|
|
5136
|
-
...
|
|
5136
|
+
...o,
|
|
5137
5137
|
latest_reactions: { reply: m }
|
|
5138
|
-
})), { previousActivity:
|
|
5139
|
-
}, onError: (
|
|
5140
|
-
e.setQueryData(t,
|
|
5141
|
-
}, onSuccess: (
|
|
5138
|
+
})), { previousActivity: o };
|
|
5139
|
+
}, onError: (a, l, o) => {
|
|
5140
|
+
e.setQueryData(t, o.previousActivity);
|
|
5141
|
+
}, onSuccess: (a, l) => {
|
|
5142
5142
|
var c;
|
|
5143
|
-
const
|
|
5143
|
+
const o = e.getQueryData(t), m = (c = o == null ? void 0 : o.latest_reactions.reply) == null ? void 0 : c.map((h) => {
|
|
5144
5144
|
var p;
|
|
5145
5145
|
return h.id === l.replyParentId && ((p = h.latest_children.reply) == null || p.map((g) => {
|
|
5146
5146
|
var b, v;
|
|
@@ -5152,41 +5152,41 @@ const Jr = ({ count: e = 0, showRepliesButton: t = !0, children: n }) => {
|
|
|
5152
5152
|
})), h;
|
|
5153
5153
|
});
|
|
5154
5154
|
return e.setQueryData(t, () => ({
|
|
5155
|
-
...
|
|
5155
|
+
...o,
|
|
5156
5156
|
latest_reactions: { reply: m }
|
|
5157
|
-
})), { previousActivity:
|
|
5158
|
-
} }),
|
|
5157
|
+
})), { previousActivity: o };
|
|
5158
|
+
} }), fa = ({
|
|
5159
5159
|
basePath: e,
|
|
5160
5160
|
parentId: t,
|
|
5161
5161
|
replyParentId: n,
|
|
5162
5162
|
activityId: r,
|
|
5163
5163
|
replyCount: i,
|
|
5164
5164
|
replies: d,
|
|
5165
|
-
functions: { create: u, edit:
|
|
5165
|
+
functions: { create: u, edit: a, remove: l, join: o, leave: m, like: c, unlike: h }
|
|
5166
5166
|
}) => {
|
|
5167
|
-
const p = D(), g = wt(), b = je($e), v = je(Et), E =
|
|
5167
|
+
const p = D(), g = wt(), b = je($e), v = je(Et), E = ca({
|
|
5168
5168
|
queryClient: g,
|
|
5169
5169
|
queryKey: [e, t, r],
|
|
5170
5170
|
mutationFn: async (k) => u({ replyId: n, content: k.body })
|
|
5171
|
-
}), { mutate: j } = ie(E), _ =
|
|
5171
|
+
}), { mutate: j } = ie(E), _ = la({
|
|
5172
5172
|
queryClient: g,
|
|
5173
5173
|
queryKey: [e, t, r],
|
|
5174
|
-
mutationFn:
|
|
5174
|
+
mutationFn: a
|
|
5175
5175
|
}), {
|
|
5176
5176
|
mutate: T
|
|
5177
|
-
} = ie(_), N =
|
|
5177
|
+
} = ie(_), N = da({
|
|
5178
5178
|
queryClient: g,
|
|
5179
5179
|
queryKey: [e, t, r],
|
|
5180
5180
|
mutationFn: async ({ replyId: k }) => l({ replyId: k })
|
|
5181
5181
|
}), {
|
|
5182
5182
|
mutate: R
|
|
5183
|
-
} = ie(N), J =
|
|
5183
|
+
} = ie(N), J = ua({
|
|
5184
5184
|
queryClient: g,
|
|
5185
5185
|
queryKey: [e, t, r],
|
|
5186
5186
|
mutationFn: c
|
|
5187
5187
|
}), {
|
|
5188
|
-
mutate:
|
|
5189
|
-
} = ie(J), H =
|
|
5188
|
+
mutate: O
|
|
5189
|
+
} = ie(J), H = ma({
|
|
5190
5190
|
queryClient: g,
|
|
5191
5191
|
queryKey: [e, t, r],
|
|
5192
5192
|
user: b,
|
|
@@ -5194,14 +5194,14 @@ const Jr = ({ count: e = 0, showRepliesButton: t = !0, children: n }) => {
|
|
|
5194
5194
|
}), {
|
|
5195
5195
|
mutate: F
|
|
5196
5196
|
} = ie(H), x = Me(
|
|
5197
|
-
({ replyId: k, replyParentId: w }) =>
|
|
5198
|
-
[
|
|
5197
|
+
({ replyId: k, replyParentId: w }) => O({ replyId: k, replyParentId: w }),
|
|
5198
|
+
[O]
|
|
5199
5199
|
), Y = Me(
|
|
5200
5200
|
({ replyId: k, replyParentId: w }) => F({ replyId: k, replyParentId: w }),
|
|
5201
5201
|
[F]
|
|
5202
5202
|
);
|
|
5203
5203
|
return /* @__PURE__ */ s.jsx(
|
|
5204
|
-
|
|
5204
|
+
Xr,
|
|
5205
5205
|
{
|
|
5206
5206
|
count: i,
|
|
5207
5207
|
showRepliesButton: i > 0 || v.showForm,
|
|
@@ -5214,14 +5214,14 @@ const Jr = ({ count: e = 0, showRepliesButton: t = !0, children: n }) => {
|
|
|
5214
5214
|
membershipRequiredToPost: {
|
|
5215
5215
|
isMember: !0,
|
|
5216
5216
|
required: !0,
|
|
5217
|
-
join:
|
|
5217
|
+
join: o,
|
|
5218
5218
|
leave: m,
|
|
5219
5219
|
notMemberStateText: p.formatMessage({ id: "community_joinToPost" })
|
|
5220
5220
|
}
|
|
5221
5221
|
}
|
|
5222
5222
|
),
|
|
5223
5223
|
(d == null ? void 0 : d.length) === 0 || (d == null ? void 0 : d.map((k) => {
|
|
5224
|
-
var w, V, Z, se, re,
|
|
5224
|
+
var w, V, Z, se, re, ae, q, fe, ue, L, oe, he, ce, xe, pe, be, ge;
|
|
5225
5225
|
return /* @__PURE__ */ s.jsx(
|
|
5226
5226
|
St,
|
|
5227
5227
|
{
|
|
@@ -5238,11 +5238,11 @@ const Jr = ({ count: e = 0, showRepliesButton: t = !0, children: n }) => {
|
|
|
5238
5238
|
slug: "",
|
|
5239
5239
|
author: {
|
|
5240
5240
|
id: (se = k == null ? void 0 : k.user) == null ? void 0 : se.id,
|
|
5241
|
-
name: (
|
|
5241
|
+
name: (ae = (re = k == null ? void 0 : k.user) == null ? void 0 : re.data) == null ? void 0 : ae.name,
|
|
5242
5242
|
organization: (fe = (q = k == null ? void 0 : k.user) == null ? void 0 : q.data) == null ? void 0 : fe.organization,
|
|
5243
5243
|
jobTitle: (L = (ue = k == null ? void 0 : k.user) == null ? void 0 : ue.data) == null ? void 0 : L.jobTitle,
|
|
5244
5244
|
image: {
|
|
5245
|
-
thumbnail: ((he = (
|
|
5245
|
+
thumbnail: ((he = (oe = k == null ? void 0 : k.user) == null ? void 0 : oe.data) == null ? void 0 : he.thumbnail) || void 0
|
|
5246
5246
|
}
|
|
5247
5247
|
},
|
|
5248
5248
|
userLiked: ((ce = k == null ? void 0 : k.own_children) == null ? void 0 : ce.like) && ((xe = k == null ? void 0 : k.own_children) == null ? void 0 : xe.like.length) > 0,
|
|
@@ -5286,51 +5286,51 @@ const Jr = ({ count: e = 0, showRepliesButton: t = !0, children: n }) => {
|
|
|
5286
5286
|
] })
|
|
5287
5287
|
}
|
|
5288
5288
|
);
|
|
5289
|
-
},
|
|
5289
|
+
}, ha = ({
|
|
5290
5290
|
basePath: e,
|
|
5291
5291
|
parentId: t,
|
|
5292
5292
|
activityId: n,
|
|
5293
5293
|
repliesList: r,
|
|
5294
5294
|
isMember: i,
|
|
5295
|
-
functions: { create: d, edit: u, remove:
|
|
5295
|
+
functions: { create: d, edit: u, remove: a, like: l, unlike: o, join: m, leave: c }
|
|
5296
5296
|
}) => {
|
|
5297
|
-
const h = D(), p = wt(), g = je($e), b =
|
|
5297
|
+
const h = D(), p = wt(), g = je($e), b = sa({
|
|
5298
5298
|
queryClient: p,
|
|
5299
5299
|
queryKey: [e, t, n],
|
|
5300
5300
|
mutationFn: async (x) => d({ activityId: n, content: x.body })
|
|
5301
|
-
}), { mutate: v } = ie(b), E =
|
|
5301
|
+
}), { mutate: v } = ie(b), E = ra({
|
|
5302
5302
|
queryClient: p,
|
|
5303
5303
|
queryKey: [e, t, n],
|
|
5304
5304
|
mutationFn: async (x) => u(x)
|
|
5305
5305
|
}), {
|
|
5306
5306
|
mutate: j
|
|
5307
|
-
} = ie(E), _ =
|
|
5307
|
+
} = ie(E), _ = aa({
|
|
5308
5308
|
queryClient: p,
|
|
5309
5309
|
queryKey: [e, t, n],
|
|
5310
|
-
mutationFn: async ({ replyId: x }) =>
|
|
5310
|
+
mutationFn: async ({ replyId: x }) => a({ replyId: x })
|
|
5311
5311
|
}), {
|
|
5312
5312
|
mutate: T
|
|
5313
|
-
} = ie(_), N =
|
|
5313
|
+
} = ie(_), N = oa({
|
|
5314
5314
|
queryClient: p,
|
|
5315
5315
|
queryKey: [e, t, n],
|
|
5316
5316
|
mutationFn: l
|
|
5317
5317
|
}), {
|
|
5318
5318
|
mutate: R
|
|
5319
|
-
} = ie(N), J =
|
|
5319
|
+
} = ie(N), J = ia({
|
|
5320
5320
|
queryClient: p,
|
|
5321
5321
|
queryKey: [e, t, n],
|
|
5322
5322
|
user: g,
|
|
5323
|
-
mutationFn:
|
|
5323
|
+
mutationFn: o
|
|
5324
5324
|
}), {
|
|
5325
|
-
mutate:
|
|
5325
|
+
mutate: O
|
|
5326
5326
|
} = ie(J), H = Me(
|
|
5327
5327
|
({ replyId: x }) => R({ replyId: x }),
|
|
5328
5328
|
[R]
|
|
5329
5329
|
), F = Me(
|
|
5330
|
-
({ replyId: x }) =>
|
|
5331
|
-
[
|
|
5330
|
+
({ replyId: x }) => O({ replyId: x }),
|
|
5331
|
+
[O]
|
|
5332
5332
|
);
|
|
5333
|
-
return /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
|
|
5333
|
+
return Bs(), /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
|
|
5334
5334
|
/* @__PURE__ */ s.jsx(
|
|
5335
5335
|
nn,
|
|
5336
5336
|
{
|
|
@@ -5346,9 +5346,9 @@ const Jr = ({ count: e = 0, showRepliesButton: t = !0, children: n }) => {
|
|
|
5346
5346
|
}
|
|
5347
5347
|
),
|
|
5348
5348
|
(r == null ? void 0 : r.length) === 0 || (r == null ? void 0 : r.map((x) => {
|
|
5349
|
-
var w, V, Z, se, re,
|
|
5349
|
+
var w, V, Z, se, re, ae, q, fe, ue, L, oe, he, ce, xe, pe, be, ge, B, X, le;
|
|
5350
5350
|
const Y = ((w = x == null ? void 0 : x.user) == null ? void 0 : w.id) === (g == null ? void 0 : g.id), k = sn(i, Y);
|
|
5351
|
-
return /* @__PURE__ */ s.jsx(
|
|
5351
|
+
return /* @__PURE__ */ s.jsx(zr, { children: /* @__PURE__ */ s.jsx(
|
|
5352
5352
|
St,
|
|
5353
5353
|
{
|
|
5354
5354
|
content: {
|
|
@@ -5361,12 +5361,12 @@ const Jr = ({ count: e = 0, showRepliesButton: t = !0, children: n }) => {
|
|
|
5361
5361
|
parentId: t,
|
|
5362
5362
|
reply: x == null ? void 0 : x.id
|
|
5363
5363
|
},
|
|
5364
|
-
slug:
|
|
5364
|
+
slug: x == null ? void 0 : x.id,
|
|
5365
5365
|
author: {
|
|
5366
5366
|
id: (re = x == null ? void 0 : x.user) == null ? void 0 : re.id,
|
|
5367
|
-
name: (q = (
|
|
5367
|
+
name: (q = (ae = x == null ? void 0 : x.user) == null ? void 0 : ae.data) == null ? void 0 : q.name,
|
|
5368
5368
|
organization: (ue = (fe = x == null ? void 0 : x.user) == null ? void 0 : fe.data) == null ? void 0 : ue.organization,
|
|
5369
|
-
jobTitle: (
|
|
5369
|
+
jobTitle: (oe = (L = x == null ? void 0 : x.user) == null ? void 0 : L.data) == null ? void 0 : oe.jobTitle,
|
|
5370
5370
|
image: {
|
|
5371
5371
|
thumbnail: ((ce = (he = x == null ? void 0 : x.user) == null ? void 0 : he.data) == null ? void 0 : ce.thumbnail) || void 0
|
|
5372
5372
|
}
|
|
@@ -5401,7 +5401,7 @@ const Jr = ({ count: e = 0, showRepliesButton: t = !0, children: n }) => {
|
|
|
5401
5401
|
comments: {}
|
|
5402
5402
|
},
|
|
5403
5403
|
children: /* @__PURE__ */ s.jsx(
|
|
5404
|
-
|
|
5404
|
+
fa,
|
|
5405
5405
|
{
|
|
5406
5406
|
basePath: e,
|
|
5407
5407
|
parentId: t,
|
|
@@ -5413,9 +5413,9 @@ const Jr = ({ count: e = 0, showRepliesButton: t = !0, children: n }) => {
|
|
|
5413
5413
|
functions: {
|
|
5414
5414
|
create: d,
|
|
5415
5415
|
edit: u,
|
|
5416
|
-
remove:
|
|
5416
|
+
remove: a,
|
|
5417
5417
|
like: l,
|
|
5418
|
-
unlike:
|
|
5418
|
+
unlike: o,
|
|
5419
5419
|
join: m,
|
|
5420
5420
|
leave: c
|
|
5421
5421
|
}
|
|
@@ -5426,7 +5426,7 @@ const Jr = ({ count: e = 0, showRepliesButton: t = !0, children: n }) => {
|
|
|
5426
5426
|
) }, x == null ? void 0 : x.id);
|
|
5427
5427
|
}))
|
|
5428
5428
|
] });
|
|
5429
|
-
},
|
|
5429
|
+
}, pa = ({
|
|
5430
5430
|
queryClient: e,
|
|
5431
5431
|
queryKey: t,
|
|
5432
5432
|
mutationFn: n
|
|
@@ -5434,50 +5434,50 @@ const Jr = ({ count: e = 0, showRepliesButton: t = !0, children: n }) => {
|
|
|
5434
5434
|
mutationFn: n,
|
|
5435
5435
|
onMutate: async ({
|
|
5436
5436
|
activityInfo: u,
|
|
5437
|
-
content: { body:
|
|
5437
|
+
content: { body: a }
|
|
5438
5438
|
}) => {
|
|
5439
|
-
if (
|
|
5439
|
+
if (a.length === 0)
|
|
5440
5440
|
return;
|
|
5441
5441
|
await e.cancelQueries({ queryKey: t });
|
|
5442
5442
|
const l = e.getQueryData(t);
|
|
5443
|
-
return l && l.id === (u == null ? void 0 : u.activityId) && (l.content =
|
|
5443
|
+
return l && l.id === (u == null ? void 0 : u.activityId) && (l.content = a), e.setQueryData(t, () => ({
|
|
5444
5444
|
...l
|
|
5445
5445
|
})), { previousActivity: l };
|
|
5446
5446
|
},
|
|
5447
|
-
onError: (u,
|
|
5447
|
+
onError: (u, a, l) => {
|
|
5448
5448
|
e.setQueryData(t, l.previousActivity);
|
|
5449
5449
|
},
|
|
5450
5450
|
onSettled: () => {
|
|
5451
5451
|
e.invalidateQueries({ queryKey: t });
|
|
5452
5452
|
}
|
|
5453
|
-
}),
|
|
5453
|
+
}), ga = ({
|
|
5454
5454
|
queryClient: e,
|
|
5455
5455
|
queryKey: t,
|
|
5456
5456
|
redirectUrl: n,
|
|
5457
5457
|
mutationFn: r
|
|
5458
5458
|
}) => ({ mutationFn: r, onSuccess: () => {
|
|
5459
5459
|
e.invalidateQueries({ queryKey: t }), window.location.href = n;
|
|
5460
|
-
} }),
|
|
5460
|
+
} }), _a = ({
|
|
5461
5461
|
queryClient: e,
|
|
5462
5462
|
queryKey: t,
|
|
5463
5463
|
mutationFn: n
|
|
5464
5464
|
}) => ({ mutationFn: n, onMutate: async () => {
|
|
5465
5465
|
var l;
|
|
5466
5466
|
await e.cancelQueries({ queryKey: t });
|
|
5467
|
-
const
|
|
5468
|
-
return (l =
|
|
5469
|
-
...
|
|
5470
|
-
})), { previousActivity:
|
|
5471
|
-
}, onError: (
|
|
5472
|
-
e.setQueryData(t,
|
|
5473
|
-
}, onSuccess: (
|
|
5467
|
+
const a = e.getQueryData(t);
|
|
5468
|
+
return (l = a == null ? void 0 : a.reaction_counts) != null && l.like ? a.reaction_counts.like += 1 : a && (a.reaction_counts = { like: 1 }), e.setQueryData(t, () => ({
|
|
5469
|
+
...a
|
|
5470
|
+
})), { previousActivity: a };
|
|
5471
|
+
}, onError: (a, l, o) => {
|
|
5472
|
+
e.setQueryData(t, o.previousActivity);
|
|
5473
|
+
}, onSuccess: (a) => {
|
|
5474
5474
|
const l = e.getQueryData(t);
|
|
5475
|
-
return l != null && l.own_reactions.like ? l.own_reactions.like.push(
|
|
5475
|
+
return l != null && l.own_reactions.like ? l.own_reactions.like.push(a) : l && (l.own_reactions = { like: [a] }), l != null && l.latest_reactions.like ? l.latest_reactions.like.push(a) : l && (l.own_reactions = { like: [a] }), e.setQueryData(t, () => ({
|
|
5476
5476
|
...l
|
|
5477
5477
|
})), { previousActivity: l };
|
|
5478
5478
|
}, onSettled: () => {
|
|
5479
5479
|
e.invalidateQueries({ queryKey: t });
|
|
5480
|
-
} }),
|
|
5480
|
+
} }), xa = ({
|
|
5481
5481
|
queryClient: e,
|
|
5482
5482
|
queryKey: t,
|
|
5483
5483
|
user: n,
|
|
@@ -5486,31 +5486,31 @@ const Jr = ({ count: e = 0, showRepliesButton: t = !0, children: n }) => {
|
|
|
5486
5486
|
}) => ({ mutationFn: i, onMutate: async () => {
|
|
5487
5487
|
var m;
|
|
5488
5488
|
await e.cancelQueries({ queryKey: t });
|
|
5489
|
-
const
|
|
5490
|
-
return (m =
|
|
5491
|
-
...
|
|
5492
|
-
})), { previousActivity:
|
|
5493
|
-
}, onError: (
|
|
5489
|
+
const o = e.getQueryData(t);
|
|
5490
|
+
return (m = o == null ? void 0 : o.reaction_counts) != null && m.like && o.reaction_counts.like > 0 && (o.reaction_counts.like -= 1), e.setQueryData(t, () => ({
|
|
5491
|
+
...o
|
|
5492
|
+
})), { previousActivity: o };
|
|
5493
|
+
}, onError: (o, m, c) => {
|
|
5494
5494
|
e.setQueryData(t, c.previousActivity);
|
|
5495
5495
|
}, onSuccess: () => {
|
|
5496
5496
|
var c, h, p;
|
|
5497
5497
|
if (!r)
|
|
5498
5498
|
return;
|
|
5499
|
-
const
|
|
5499
|
+
const o = (p = (h = (c = r.own_reactions) == null ? void 0 : c.like) == null ? void 0 : h.find(
|
|
5500
5500
|
(g) => g.user_id === (n == null ? void 0 : n.id)
|
|
5501
5501
|
)) == null ? void 0 : p.id, m = e.getQueryData(t);
|
|
5502
5502
|
if (m != null && m.own_reactions.like && (m.own_reactions.like = m.own_reactions.like.filter(
|
|
5503
|
-
(g) => g.id !==
|
|
5503
|
+
(g) => g.id !== o
|
|
5504
5504
|
), !!(m != null && m.latest_reactions.like)))
|
|
5505
5505
|
return m.latest_reactions.like = m.latest_reactions.like.filter(
|
|
5506
|
-
(g) => g.id !==
|
|
5506
|
+
(g) => g.id !== o
|
|
5507
5507
|
), e.setQueryData(t, () => ({
|
|
5508
5508
|
...m
|
|
5509
5509
|
})), { previousActivity: m };
|
|
5510
5510
|
}, onSettled: () => {
|
|
5511
5511
|
e.invalidateQueries({ queryKey: t });
|
|
5512
5512
|
} });
|
|
5513
|
-
const
|
|
5513
|
+
const uo = ({
|
|
5514
5514
|
basePath: e,
|
|
5515
5515
|
parentId: t,
|
|
5516
5516
|
activityId: n,
|
|
@@ -5519,9 +5519,9 @@ const ua = ({
|
|
|
5519
5519
|
get: i,
|
|
5520
5520
|
editActivity: d,
|
|
5521
5521
|
removeActivity: u,
|
|
5522
|
-
likeActivity:
|
|
5522
|
+
likeActivity: a,
|
|
5523
5523
|
unlikeActivity: l,
|
|
5524
|
-
createReply:
|
|
5524
|
+
createReply: o,
|
|
5525
5525
|
editReply: m,
|
|
5526
5526
|
removeReply: c,
|
|
5527
5527
|
likeReply: h,
|
|
@@ -5530,7 +5530,7 @@ const ua = ({
|
|
|
5530
5530
|
leave: b
|
|
5531
5531
|
}
|
|
5532
5532
|
}) => {
|
|
5533
|
-
var re,
|
|
5533
|
+
var re, ae, q, fe, ue, L, oe, he, ce, xe, pe, be, ge, B, X, le, ee, me, ke, Ae, ze, Fe, et;
|
|
5534
5534
|
const v = D(), E = je($e), j = wt(), {
|
|
5535
5535
|
data: _,
|
|
5536
5536
|
isLoading: T,
|
|
@@ -5538,24 +5538,24 @@ const ua = ({
|
|
|
5538
5538
|
} = Tn({
|
|
5539
5539
|
queryKey: [e, t, n],
|
|
5540
5540
|
queryFn: i
|
|
5541
|
-
}), R =
|
|
5541
|
+
}), R = pa({
|
|
5542
5542
|
queryClient: j,
|
|
5543
5543
|
queryKey: [e, t, n],
|
|
5544
5544
|
mutationFn: async (te) => await d(te)
|
|
5545
5545
|
}), {
|
|
5546
5546
|
mutate: J
|
|
5547
|
-
} = ie(R),
|
|
5547
|
+
} = ie(R), O = ga({
|
|
5548
5548
|
queryClient: j,
|
|
5549
5549
|
queryKey: [e, t, n],
|
|
5550
5550
|
mutationFn: async ({ activityId: te }) => u({ activityId: te }),
|
|
5551
5551
|
redirectUrl: `${e}/${t}`
|
|
5552
|
-
}), { mutate: H } = ie(
|
|
5552
|
+
}), { mutate: H } = ie(O), F = _a({
|
|
5553
5553
|
queryClient: j,
|
|
5554
5554
|
queryKey: [e, t, n],
|
|
5555
|
-
mutationFn:
|
|
5555
|
+
mutationFn: a
|
|
5556
5556
|
}), {
|
|
5557
5557
|
mutate: x
|
|
5558
|
-
} = ie(F), Y =
|
|
5558
|
+
} = ie(F), Y = xa({
|
|
5559
5559
|
queryClient: j,
|
|
5560
5560
|
queryKey: [e, t, n],
|
|
5561
5561
|
user: E,
|
|
@@ -5603,9 +5603,9 @@ const ua = ({
|
|
|
5603
5603
|
},
|
|
5604
5604
|
slug: n,
|
|
5605
5605
|
author: {
|
|
5606
|
-
id: (
|
|
5606
|
+
id: (ae = _ == null ? void 0 : _.actor) == null ? void 0 : ae.id,
|
|
5607
5607
|
name: ((q = _ == null ? void 0 : _.actor) == null ? void 0 : q.data) && ((ue = (fe = _ == null ? void 0 : _.actor) == null ? void 0 : fe.data) == null ? void 0 : ue.name),
|
|
5608
|
-
organization: ((L = _ == null ? void 0 : _.actor) == null ? void 0 : L.data) && ((he = (
|
|
5608
|
+
organization: ((L = _ == null ? void 0 : _.actor) == null ? void 0 : L.data) && ((he = (oe = _ == null ? void 0 : _.actor) == null ? void 0 : oe.data) == null ? void 0 : he.organization),
|
|
5609
5609
|
jobTitle: ((ce = _ == null ? void 0 : _.actor) == null ? void 0 : ce.data) && ((pe = (xe = _ == null ? void 0 : _.actor) == null ? void 0 : xe.data) == null ? void 0 : pe.jobTitle),
|
|
5610
5610
|
image: {
|
|
5611
5611
|
thumbnail: ((be = _ == null ? void 0 : _.actor) == null ? void 0 : be.data) && ((B = (ge = _ == null ? void 0 : _.actor) == null ? void 0 : ge.data) == null ? void 0 : B.thumbnail) || void 0
|
|
@@ -5645,7 +5645,7 @@ const ua = ({
|
|
|
5645
5645
|
")"
|
|
5646
5646
|
] }),
|
|
5647
5647
|
/* @__PURE__ */ s.jsx(
|
|
5648
|
-
|
|
5648
|
+
ha,
|
|
5649
5649
|
{
|
|
5650
5650
|
basePath: e,
|
|
5651
5651
|
parentId: t,
|
|
@@ -5653,7 +5653,7 @@ const ua = ({
|
|
|
5653
5653
|
repliesList: (et = _ == null ? void 0 : _.latest_reactions) == null ? void 0 : et.reply,
|
|
5654
5654
|
isMember: r,
|
|
5655
5655
|
functions: {
|
|
5656
|
-
create:
|
|
5656
|
+
create: o,
|
|
5657
5657
|
edit: m,
|
|
5658
5658
|
remove: c,
|
|
5659
5659
|
like: h,
|
|
@@ -5667,21 +5667,21 @@ const ua = ({
|
|
|
5667
5667
|
},
|
|
5668
5668
|
n
|
|
5669
5669
|
);
|
|
5670
|
-
},
|
|
5670
|
+
}, mo = ({ id: e, data: { jobTitle: t, name: n, organization: r, thumbnail: i } }) => ({
|
|
5671
5671
|
id: e,
|
|
5672
5672
|
name: n,
|
|
5673
5673
|
jobTitle: t,
|
|
5674
5674
|
organization: r,
|
|
5675
5675
|
image: { thumbnail: i }
|
|
5676
|
-
}),
|
|
5676
|
+
}), ba = ({ type: e, data: t }) => {
|
|
5677
5677
|
const n = D(), {
|
|
5678
5678
|
answers: r,
|
|
5679
5679
|
createdAt: i,
|
|
5680
5680
|
dateHasPassed: d,
|
|
5681
5681
|
isOngoingEvent: u,
|
|
5682
|
-
pill:
|
|
5682
|
+
pill: a,
|
|
5683
5683
|
readingTime: l,
|
|
5684
|
-
publishedDate:
|
|
5684
|
+
publishedDate: o,
|
|
5685
5685
|
startDate: m
|
|
5686
5686
|
} = t;
|
|
5687
5687
|
if (e === "question") {
|
|
@@ -5706,21 +5706,21 @@ const ua = ({
|
|
|
5706
5706
|
}
|
|
5707
5707
|
if (m && !d || u)
|
|
5708
5708
|
return /* @__PURE__ */ s.jsx("p", { className: "details", children: u ? n.formatMessage({ id: "card_bootcamp" }) : Rn(m) });
|
|
5709
|
-
if (
|
|
5709
|
+
if (a)
|
|
5710
5710
|
return /* @__PURE__ */ s.jsx(
|
|
5711
5711
|
ft,
|
|
5712
5712
|
{
|
|
5713
|
-
variant:
|
|
5714
|
-
className:
|
|
5713
|
+
variant: a === "free" ? "subtle" : "highlighted",
|
|
5714
|
+
className: a,
|
|
5715
5715
|
"data-testid": "course-type",
|
|
5716
|
-
children:
|
|
5716
|
+
children: a
|
|
5717
5717
|
}
|
|
5718
5718
|
);
|
|
5719
|
-
if (l ||
|
|
5720
|
-
const c =
|
|
5719
|
+
if (l || o) {
|
|
5720
|
+
const c = o && Gt(o);
|
|
5721
5721
|
return /* @__PURE__ */ s.jsxs("ul", { className: "details", children: [
|
|
5722
5722
|
l && /* @__PURE__ */ s.jsx("li", { "data-testid": "reading-time", children: n.formatMessage({ id: "card_time_read" }, { time: l }) }),
|
|
5723
|
-
|
|
5723
|
+
o && /* @__PURE__ */ s.jsx("li", { "data-testid": "published-date", children: n.formatMessage(
|
|
5724
5724
|
{ id: "card_time_ago" },
|
|
5725
5725
|
{
|
|
5726
5726
|
time: c ? n.formatMessage(
|
|
@@ -5789,7 +5789,7 @@ const ua = ({
|
|
|
5789
5789
|
},
|
|
5790
5790
|
gtmEvent: "learning-hub"
|
|
5791
5791
|
}
|
|
5792
|
-
},
|
|
5792
|
+
}, wa = ({ data: e, cta: t, link: n, gtmContext: r }) => {
|
|
5793
5793
|
var g;
|
|
5794
5794
|
const i = D(), [d, u] = P({
|
|
5795
5795
|
loading: !1,
|
|
@@ -5798,9 +5798,9 @@ const ua = ({
|
|
|
5798
5798
|
G(() => {
|
|
5799
5799
|
e.registered && u((b) => ({ ...b, registered: !0 }));
|
|
5800
5800
|
}, [e.registered]);
|
|
5801
|
-
const { startDate:
|
|
5801
|
+
const { startDate: a, dateHasPassed: l, pill: o, slug: m } = e, c = e.contentType;
|
|
5802
5802
|
let h = "";
|
|
5803
|
-
if ((g = _t[c]) != null && g.gtmEvent && (h = _t[c].gtmEvent),
|
|
5803
|
+
if ((g = _t[c]) != null && g.gtmEvent && (h = _t[c].gtmEvent), a && l)
|
|
5804
5804
|
return /* @__PURE__ */ s.jsx(
|
|
5805
5805
|
"a",
|
|
5806
5806
|
{
|
|
@@ -5825,7 +5825,7 @@ const ua = ({
|
|
|
5825
5825
|
}
|
|
5826
5826
|
);
|
|
5827
5827
|
const p = ["microcourse", "event"];
|
|
5828
|
-
if (t && t.onClick && p.includes(c) &&
|
|
5828
|
+
if (t && t.onClick && p.includes(c) && o !== "premium") {
|
|
5829
5829
|
const b = d.loading || d.registered, v = async (E) => {
|
|
5830
5830
|
if (E.preventDefault(), E.stopPropagation(), !(b || !t || !t.onClick)) {
|
|
5831
5831
|
u((j) => ({ ...j, loading: !0 }));
|
|
@@ -5861,16 +5861,16 @@ const ua = ({
|
|
|
5861
5861
|
person: "user",
|
|
5862
5862
|
speech: "speech-bubble_round",
|
|
5863
5863
|
star: "star_empty_thin"
|
|
5864
|
-
},
|
|
5864
|
+
}, va = (e) => {
|
|
5865
5865
|
let t = e;
|
|
5866
5866
|
return Object.keys(Sn).includes(e) && (t = Sn[e]), `url(${mt}icons/${t}.svg)`;
|
|
5867
5867
|
};
|
|
5868
|
-
const
|
|
5868
|
+
const ka = {
|
|
5869
5869
|
title: 66,
|
|
5870
5870
|
text: 3e3,
|
|
5871
5871
|
secondaryText: 1e3,
|
|
5872
5872
|
partner: 25
|
|
5873
|
-
},
|
|
5873
|
+
}, ja = ({
|
|
5874
5874
|
id: e = "",
|
|
5875
5875
|
card: t,
|
|
5876
5876
|
buildCardData: n,
|
|
@@ -5878,13 +5878,13 @@ const ko = {
|
|
|
5878
5878
|
gtmContext: i = "Carousel",
|
|
5879
5879
|
className: d = ""
|
|
5880
5880
|
}) => {
|
|
5881
|
-
const u = D(),
|
|
5881
|
+
const u = D(), a = je($e), l = a && typeof a.id == "string", [o, m] = P({
|
|
5882
5882
|
data: null,
|
|
5883
5883
|
isLoading: !0
|
|
5884
|
-
}), { data: c, isLoading: h } =
|
|
5885
|
-
n(t, l).then((
|
|
5886
|
-
m(() => ({ data:
|
|
5887
|
-
}).catch(() => m((
|
|
5884
|
+
}), { data: c, isLoading: h } = o, p = Me(() => {
|
|
5885
|
+
n(t, l).then((O) => {
|
|
5886
|
+
m(() => ({ data: O, isLoading: !1 }));
|
|
5887
|
+
}).catch(() => m((O) => ({ ...O, isLoading: !1 })));
|
|
5888
5888
|
}, [e]);
|
|
5889
5889
|
if (G(() => {
|
|
5890
5890
|
p();
|
|
@@ -5905,7 +5905,7 @@ const ko = {
|
|
|
5905
5905
|
className: v,
|
|
5906
5906
|
length: E,
|
|
5907
5907
|
gtmEvent: j
|
|
5908
|
-
} = _t[g], _ = Fn(`card_label_${g}`) ? u.formatMessage({ id: `card_label_${g}` }) : !1, T = c.slug ? `${b}${c.slug}` : !1, N = { ...
|
|
5908
|
+
} = _t[g], _ = Fn(`card_label_${g}`) ? u.formatMessage({ id: `card_label_${g}` }) : !1, T = c.slug ? `${b}${c.slug}` : !1, N = { ...ka, ...E };
|
|
5909
5909
|
let R = { className: "card" };
|
|
5910
5910
|
T && (R = {
|
|
5911
5911
|
href: T,
|
|
@@ -5914,7 +5914,7 @@ const ko = {
|
|
|
5914
5914
|
"data-gtm-event-type": `${j}-click`,
|
|
5915
5915
|
"data-testid": "link"
|
|
5916
5916
|
}, c.openInNewTab && (R.target = "_blank"));
|
|
5917
|
-
const J = c.customIcon ? { "--custom-icon":
|
|
5917
|
+
const J = c.customIcon ? { "--custom-icon": va(c.customIcon) } : {};
|
|
5918
5918
|
return /* @__PURE__ */ s.jsx(
|
|
5919
5919
|
"li",
|
|
5920
5920
|
{
|
|
@@ -5937,7 +5937,7 @@ const ko = {
|
|
|
5937
5937
|
size: "small",
|
|
5938
5938
|
variant: c.dateHasPassed ? "default" : "information",
|
|
5939
5939
|
"data-testid": "date",
|
|
5940
|
-
children: c.dateHasPassed ? u.formatMessage({ id: "card_ended" }) :
|
|
5940
|
+
children: c.dateHasPassed ? u.formatMessage({ id: "card_ended" }) : Hs(c.startDate)
|
|
5941
5941
|
}
|
|
5942
5942
|
),
|
|
5943
5943
|
c.banner ? /* @__PURE__ */ s.jsxs("p", { className: "img", children: [
|
|
@@ -5965,24 +5965,24 @@ const ko = {
|
|
|
5965
5965
|
),
|
|
5966
5966
|
c.partner && /* @__PURE__ */ s.jsx("p", { className: "partners", "data-testid": "partners", children: Qe(c.partner.title, N.partner) }),
|
|
5967
5967
|
/* Text */
|
|
5968
|
-
["title", "text", "secondaryText"].map((
|
|
5969
|
-
const H = c[
|
|
5968
|
+
["title", "text", "secondaryText"].map((O) => {
|
|
5969
|
+
const H = c[O];
|
|
5970
5970
|
if (!H)
|
|
5971
5971
|
return null;
|
|
5972
|
-
const F =
|
|
5973
|
-
return /* @__PURE__ */ s.jsx("p", { className: F, "data-testid": F, children: Qe(H, N[
|
|
5972
|
+
const F = Qs(O);
|
|
5973
|
+
return /* @__PURE__ */ s.jsx("p", { className: F, "data-testid": F, children: Qe(H, N[O]) }, O);
|
|
5974
5974
|
}),
|
|
5975
|
-
/* @__PURE__ */ s.jsx(
|
|
5976
|
-
/* @__PURE__ */ s.jsx(
|
|
5975
|
+
/* @__PURE__ */ s.jsx(ba, { type: v || "", data: c }),
|
|
5976
|
+
/* @__PURE__ */ s.jsx(wa, { data: c, cta: r, link: T || "", gtmContext: i })
|
|
5977
5977
|
] })
|
|
5978
5978
|
)
|
|
5979
5979
|
}
|
|
5980
5980
|
);
|
|
5981
5981
|
};
|
|
5982
|
-
const
|
|
5982
|
+
const ya = ({ cards: e, cardTypes: t, className: n = "", ...r }) => /* @__PURE__ */ s.jsx("ul", { className: S("card-block", n), children: e.map((i, d) => {
|
|
5983
5983
|
const u = i.slug ? `${i.slug}-${t[d]}` : `${t[d]}-${d}`;
|
|
5984
5984
|
return /* @__PURE__ */ s.jsx(
|
|
5985
|
-
|
|
5985
|
+
ja,
|
|
5986
5986
|
{
|
|
5987
5987
|
id: u,
|
|
5988
5988
|
card: { ...i, contentType: t[d] },
|
|
@@ -6035,18 +6035,18 @@ const $n = [
|
|
|
6035
6035
|
contributors: ["community"]
|
|
6036
6036
|
}
|
|
6037
6037
|
];
|
|
6038
|
-
const lt = "notFoundError_",
|
|
6038
|
+
const lt = "notFoundError_", fo = () => {
|
|
6039
6039
|
const e = D(), t = [];
|
|
6040
6040
|
return $n.forEach((n, r) => {
|
|
6041
6041
|
n.title = e.formatMessage({ id: `${lt}post_${r + 1}` }), t.push("solutionArticle");
|
|
6042
6042
|
}), /* @__PURE__ */ s.jsxs(
|
|
6043
|
-
|
|
6043
|
+
Hr,
|
|
6044
6044
|
{
|
|
6045
6045
|
styling: { background: "bold", circle: "small", variant: "alt-2" },
|
|
6046
6046
|
additionalContent: {
|
|
6047
6047
|
appended: /* @__PURE__ */ s.jsxs(en, { children: [
|
|
6048
6048
|
/* @__PURE__ */ s.jsx(
|
|
6049
|
-
|
|
6049
|
+
ya,
|
|
6050
6050
|
{
|
|
6051
6051
|
cards: $n,
|
|
6052
6052
|
cardTypes: t,
|
|
@@ -6070,91 +6070,91 @@ const lt = "notFoundError_", fa = () => {
|
|
|
6070
6070
|
};
|
|
6071
6071
|
export {
|
|
6072
6072
|
mt as ASSETS_BUCKET,
|
|
6073
|
-
|
|
6074
|
-
|
|
6073
|
+
lo as ActivitiesFeed,
|
|
6074
|
+
uo as ActivitySection,
|
|
6075
6075
|
nn as AddPost,
|
|
6076
|
-
|
|
6077
|
-
|
|
6076
|
+
Ha as BannerSection,
|
|
6077
|
+
Xa as Breadcrumbs,
|
|
6078
6078
|
W as Button,
|
|
6079
6079
|
kt as ButtonWrapper,
|
|
6080
|
-
|
|
6081
|
-
|
|
6082
|
-
|
|
6083
|
-
|
|
6080
|
+
xr as CacheProvider,
|
|
6081
|
+
In as CollapsibleSection,
|
|
6082
|
+
Ar as Columns,
|
|
6083
|
+
Ja as CommunityDetails,
|
|
6084
6084
|
Un as Contributors,
|
|
6085
6085
|
Et as ConversationContext,
|
|
6086
|
-
|
|
6087
|
-
|
|
6086
|
+
Pr as CookieBanner,
|
|
6087
|
+
zr as DiscussionConversation,
|
|
6088
6088
|
qn as DiscussionForm,
|
|
6089
|
-
|
|
6089
|
+
Gr as DiscussionLikes,
|
|
6090
6090
|
St as DiscussionPost,
|
|
6091
|
-
|
|
6091
|
+
Xr as DiscussionThread,
|
|
6092
6092
|
Ue as Divider,
|
|
6093
|
-
|
|
6093
|
+
Ba as DownloadSection,
|
|
6094
6094
|
Ze as EMAILS,
|
|
6095
|
-
|
|
6095
|
+
no as EmailHelperTextBox,
|
|
6096
6096
|
yt as EmptyStateBox,
|
|
6097
|
-
|
|
6098
|
-
|
|
6097
|
+
Za as Filters,
|
|
6098
|
+
vr as FlagsProvider,
|
|
6099
6099
|
Vn as Footer,
|
|
6100
6100
|
en as FullWidthSection,
|
|
6101
|
-
|
|
6101
|
+
Ga as GlobalProviders,
|
|
6102
6102
|
Xn as Header,
|
|
6103
|
-
|
|
6103
|
+
sr as HelperTextBox,
|
|
6104
6104
|
Dn as HiddenFromScreenReaders,
|
|
6105
|
-
|
|
6105
|
+
za as HideShowTextBox,
|
|
6106
6106
|
Re as HighlightedTextBox,
|
|
6107
|
-
|
|
6108
|
-
|
|
6109
|
-
|
|
6107
|
+
kr as IntlProvider,
|
|
6108
|
+
Ir as InviteForm,
|
|
6109
|
+
ao as InviteModal,
|
|
6110
6110
|
Wn as JoinButton,
|
|
6111
|
-
|
|
6111
|
+
Ka as LanguageSwitcher,
|
|
6112
6112
|
jt as Link,
|
|
6113
|
-
|
|
6114
|
-
|
|
6113
|
+
Er as LoadMore,
|
|
6114
|
+
Va as LoadingBlock,
|
|
6115
6115
|
Se as LoadingPlaceholder,
|
|
6116
|
-
|
|
6116
|
+
Ya as LoadingState,
|
|
6117
6117
|
zn as Logo,
|
|
6118
|
-
|
|
6118
|
+
Qa as LogoSection,
|
|
6119
6119
|
wn as MarkdownText,
|
|
6120
|
-
|
|
6120
|
+
Ua as MarketingBox,
|
|
6121
6121
|
tn as Member,
|
|
6122
|
-
|
|
6122
|
+
io as MembersList,
|
|
6123
6123
|
Zn as Modal,
|
|
6124
|
-
|
|
6125
|
-
|
|
6126
|
-
|
|
6127
|
-
|
|
6124
|
+
Sr as MoreMenu,
|
|
6125
|
+
Wa as NUMBER_OF_USERS,
|
|
6126
|
+
Mr as NavigationMenu,
|
|
6127
|
+
fo as NotFoundError,
|
|
6128
6128
|
Kn as Overlay,
|
|
6129
|
-
|
|
6130
|
-
|
|
6131
|
-
|
|
6129
|
+
mr as PageHeading,
|
|
6130
|
+
Hr as PageLayout,
|
|
6131
|
+
so as PasswordRules,
|
|
6132
6132
|
ft as Pill,
|
|
6133
6133
|
qe as ProfilePicture,
|
|
6134
|
-
|
|
6135
|
-
|
|
6136
|
-
|
|
6137
|
-
|
|
6134
|
+
hr as ProgressBar,
|
|
6135
|
+
ro as Rating,
|
|
6136
|
+
ha as RepliesFeed,
|
|
6137
|
+
co as ResponsesHeading,
|
|
6138
6138
|
Ln as ResponsiveImage,
|
|
6139
|
-
|
|
6140
|
-
|
|
6141
|
-
|
|
6139
|
+
Lr as SearchForm,
|
|
6140
|
+
qa as ShareLinks,
|
|
6141
|
+
ur as Span,
|
|
6142
6142
|
Xt as StatusBanner,
|
|
6143
|
-
|
|
6144
|
-
|
|
6145
|
-
|
|
6146
|
-
|
|
6143
|
+
eo as Tabs,
|
|
6144
|
+
oo as Tags,
|
|
6145
|
+
er as Tooltip,
|
|
6146
|
+
to as TopLevelPage,
|
|
6147
6147
|
$e as UserContext,
|
|
6148
|
-
|
|
6148
|
+
jr as UserProvider,
|
|
6149
6149
|
_e as VisuallyHidden,
|
|
6150
|
-
|
|
6150
|
+
Br as addAriaProps,
|
|
6151
6151
|
Hn as getMember,
|
|
6152
6152
|
pt as headerData,
|
|
6153
|
-
|
|
6154
|
-
|
|
6153
|
+
mo as mapGetStreamData,
|
|
6154
|
+
Gs as pageReady,
|
|
6155
6155
|
Ls as useCurrentPath,
|
|
6156
6156
|
He as useEffectAfterMount,
|
|
6157
6157
|
vt as useElementWidth,
|
|
6158
|
-
|
|
6159
|
-
|
|
6158
|
+
Os as useScrollListener,
|
|
6159
|
+
Bs as useScrollToHash
|
|
6160
6160
|
};
|