@apolitical/component-library 1.13.0 → 1.13.1
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/communities/community-details/community-details.d.ts +3 -1
- package/index.js +10 -10
- package/index.mjs +447 -416
- package/package.json +1 -1
- package/style.css +1 -1
package/index.mjs
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
1
|
+
import A, { memo as Ae, useState as D, useEffect as z, useRef as Z, useMemo as qe, Children as yt, createContext as Mt, useContext as ye, Fragment as Zt, useCallback as Ee, useReducer as rr, Suspense as sr } from "react";
|
|
2
2
|
import or from "lodash.clonedeep";
|
|
3
3
|
import ar from "lodash.set";
|
|
4
4
|
import { useIntl as P, IntlProvider as ir, createIntl as lr, FormattedMessage as we } from "react-intl";
|
|
5
5
|
import Ct from "truncate";
|
|
6
6
|
import Ke from "markdown-to-jsx";
|
|
7
|
-
import { QueryClient as cr, QueryClientProvider as ur, useQueryClient as
|
|
7
|
+
import { QueryClient as cr, QueryClientProvider as ur, useQueryClient as At, useQuery as cn, useMutation as fe } from "@tanstack/react-query";
|
|
8
8
|
import { ReactQueryDevtools as dr } from "@tanstack/react-query-devtools";
|
|
9
9
|
import Ge from "posthog-js";
|
|
10
10
|
import { useCookies as mr, CookiesProvider as fr } from "react-cookie";
|
|
@@ -29,15 +29,15 @@ var dn = { exports: {} };
|
|
|
29
29
|
for (var s = [], o = 0; o < arguments.length; o++) {
|
|
30
30
|
var l = arguments[o];
|
|
31
31
|
if (l) {
|
|
32
|
-
var
|
|
33
|
-
if (
|
|
32
|
+
var m = typeof l;
|
|
33
|
+
if (m === "string" || m === "number")
|
|
34
34
|
s.push(l);
|
|
35
35
|
else if (Array.isArray(l)) {
|
|
36
36
|
if (l.length) {
|
|
37
37
|
var a = n.apply(null, l);
|
|
38
38
|
a && s.push(a);
|
|
39
39
|
}
|
|
40
|
-
} else if (
|
|
40
|
+
} else if (m === "object") {
|
|
41
41
|
if (l.toString !== Object.prototype.toString && !l.toString.toString().includes("[native code]")) {
|
|
42
42
|
s.push(l.toString());
|
|
43
43
|
continue;
|
|
@@ -53,7 +53,7 @@ var dn = { exports: {} };
|
|
|
53
53
|
})();
|
|
54
54
|
})(dn);
|
|
55
55
|
var vr = dn.exports;
|
|
56
|
-
const j = /* @__PURE__ */ xr(vr), br = ({ element: e = "span", showOnFocus: t = !0, children: n, ...s }) =>
|
|
56
|
+
const j = /* @__PURE__ */ xr(vr), br = ({ element: e = "span", showOnFocus: t = !0, children: n, ...s }) => A.createElement(e, { ...s, className: j("hidden", { "show-on-focus": t }), children: n }), ne = Ae(br), wr = ({ element: e = "span", children: t = null, ...n }) => A.createElement(e, { ...n, "aria-hidden": !0 }, t), mn = Ae(wr);
|
|
57
57
|
var jt = { exports: {} }, De = {};
|
|
58
58
|
/**
|
|
59
59
|
* @license React
|
|
@@ -69,8 +69,8 @@ function kr() {
|
|
|
69
69
|
if (qt)
|
|
70
70
|
return De;
|
|
71
71
|
qt = 1;
|
|
72
|
-
var e =
|
|
73
|
-
function
|
|
72
|
+
var e = A, t = Symbol.for("react.element"), n = Symbol.for("react.fragment"), s = Object.prototype.hasOwnProperty, o = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, l = { key: !0, ref: !0, __self: !0, __source: !0 };
|
|
73
|
+
function m(a, i, c) {
|
|
74
74
|
var u, f = {}, p = null, h = null;
|
|
75
75
|
c !== void 0 && (p = "" + c), i.key !== void 0 && (p = "" + i.key), i.ref !== void 0 && (h = i.ref);
|
|
76
76
|
for (u in i)
|
|
@@ -80,7 +80,7 @@ function kr() {
|
|
|
80
80
|
f[u] === void 0 && (f[u] = i[u]);
|
|
81
81
|
return { $$typeof: t, type: a, key: p, ref: h, props: f, _owner: o.current };
|
|
82
82
|
}
|
|
83
|
-
return De.Fragment = n, De.jsx =
|
|
83
|
+
return De.Fragment = n, De.jsx = m, De.jsxs = m, De;
|
|
84
84
|
}
|
|
85
85
|
var Pe = {};
|
|
86
86
|
/**
|
|
@@ -95,58 +95,58 @@ var Pe = {};
|
|
|
95
95
|
var Kt;
|
|
96
96
|
function yr() {
|
|
97
97
|
return Kt || (Kt = 1, process.env.NODE_ENV !== "production" && function() {
|
|
98
|
-
var e =
|
|
99
|
-
function g(
|
|
100
|
-
if (
|
|
98
|
+
var e = A, t = Symbol.for("react.element"), n = Symbol.for("react.portal"), s = Symbol.for("react.fragment"), o = Symbol.for("react.strict_mode"), l = Symbol.for("react.profiler"), m = Symbol.for("react.provider"), a = Symbol.for("react.context"), i = Symbol.for("react.forward_ref"), c = Symbol.for("react.suspense"), u = Symbol.for("react.suspense_list"), f = Symbol.for("react.memo"), p = Symbol.for("react.lazy"), h = Symbol.for("react.offscreen"), _ = Symbol.iterator, v = "@@iterator";
|
|
99
|
+
function g(d) {
|
|
100
|
+
if (d === null || typeof d != "object")
|
|
101
101
|
return null;
|
|
102
|
-
var b = _ &&
|
|
102
|
+
var b = _ && d[_] || d[v];
|
|
103
103
|
return typeof b == "function" ? b : null;
|
|
104
104
|
}
|
|
105
105
|
var E = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
106
|
-
function x(
|
|
106
|
+
function x(d) {
|
|
107
107
|
{
|
|
108
108
|
for (var b = arguments.length, y = new Array(b > 1 ? b - 1 : 0), S = 1; S < b; S++)
|
|
109
109
|
y[S - 1] = arguments[S];
|
|
110
|
-
$("error",
|
|
110
|
+
$("error", d, y);
|
|
111
111
|
}
|
|
112
112
|
}
|
|
113
|
-
function $(
|
|
113
|
+
function $(d, b, y) {
|
|
114
114
|
{
|
|
115
115
|
var S = E.ReactDebugCurrentFrame, O = S.getStackAddendum();
|
|
116
116
|
O !== "" && (b += "%s", y = y.concat([O]));
|
|
117
|
-
var H = y.map(function(
|
|
118
|
-
return String(
|
|
117
|
+
var H = y.map(function(N) {
|
|
118
|
+
return String(N);
|
|
119
119
|
});
|
|
120
|
-
H.unshift("Warning: " + b), Function.prototype.apply.call(console[
|
|
120
|
+
H.unshift("Warning: " + b), Function.prototype.apply.call(console[d], console, H);
|
|
121
121
|
}
|
|
122
122
|
}
|
|
123
123
|
var T = !1, M = !1, Q = !1, V = !1, w = !1, F;
|
|
124
124
|
F = Symbol.for("react.module.reference");
|
|
125
|
-
function q(
|
|
126
|
-
return !!(typeof
|
|
125
|
+
function q(d) {
|
|
126
|
+
return !!(typeof d == "string" || typeof d == "function" || d === s || d === l || w || d === o || d === c || d === u || V || d === h || T || M || Q || typeof d == "object" && d !== null && (d.$$typeof === p || d.$$typeof === f || d.$$typeof === m || d.$$typeof === a || d.$$typeof === i || // 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.
|
|
130
|
-
|
|
130
|
+
d.$$typeof === F || d.getModuleId !== void 0));
|
|
131
131
|
}
|
|
132
|
-
function k(
|
|
133
|
-
var S =
|
|
132
|
+
function k(d, b, y) {
|
|
133
|
+
var S = d.displayName;
|
|
134
134
|
if (S)
|
|
135
135
|
return S;
|
|
136
136
|
var O = b.displayName || b.name || "";
|
|
137
137
|
return O !== "" ? y + "(" + O + ")" : y;
|
|
138
138
|
}
|
|
139
|
-
function Y(
|
|
140
|
-
return
|
|
139
|
+
function Y(d) {
|
|
140
|
+
return d.displayName || "Context";
|
|
141
141
|
}
|
|
142
|
-
function B(
|
|
143
|
-
if (
|
|
142
|
+
function B(d) {
|
|
143
|
+
if (d == null)
|
|
144
144
|
return null;
|
|
145
|
-
if (typeof
|
|
146
|
-
return
|
|
147
|
-
if (typeof
|
|
148
|
-
return
|
|
149
|
-
switch (
|
|
145
|
+
if (typeof d.tag == "number" && x("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof d == "function")
|
|
146
|
+
return d.displayName || d.name || null;
|
|
147
|
+
if (typeof d == "string")
|
|
148
|
+
return d;
|
|
149
|
+
switch (d) {
|
|
150
150
|
case s:
|
|
151
151
|
return "Fragment";
|
|
152
152
|
case n:
|
|
@@ -160,23 +160,23 @@ function yr() {
|
|
|
160
160
|
case u:
|
|
161
161
|
return "SuspenseList";
|
|
162
162
|
}
|
|
163
|
-
if (typeof
|
|
164
|
-
switch (
|
|
163
|
+
if (typeof d == "object")
|
|
164
|
+
switch (d.$$typeof) {
|
|
165
165
|
case a:
|
|
166
|
-
var b =
|
|
166
|
+
var b = d;
|
|
167
167
|
return Y(b) + ".Consumer";
|
|
168
|
-
case
|
|
169
|
-
var y =
|
|
168
|
+
case m:
|
|
169
|
+
var y = d;
|
|
170
170
|
return Y(y._context) + ".Provider";
|
|
171
171
|
case i:
|
|
172
|
-
return k(
|
|
172
|
+
return k(d, d.render, "ForwardRef");
|
|
173
173
|
case f:
|
|
174
|
-
var S =
|
|
175
|
-
return S !== null ? S : B(
|
|
174
|
+
var S = d.displayName || null;
|
|
175
|
+
return S !== null ? S : B(d.type) || "Memo";
|
|
176
176
|
case p: {
|
|
177
|
-
var O =
|
|
177
|
+
var O = d, H = O._payload, N = O._init;
|
|
178
178
|
try {
|
|
179
|
-
return B(
|
|
179
|
+
return B(N(H));
|
|
180
180
|
} catch {
|
|
181
181
|
return null;
|
|
182
182
|
}
|
|
@@ -192,20 +192,20 @@ function yr() {
|
|
|
192
192
|
{
|
|
193
193
|
if (U === 0) {
|
|
194
194
|
G = console.log, K = console.info, ie = console.warn, le = console.error, se = console.group, R = console.groupCollapsed, ee = console.groupEnd;
|
|
195
|
-
var
|
|
195
|
+
var d = {
|
|
196
196
|
configurable: !0,
|
|
197
197
|
enumerable: !0,
|
|
198
198
|
value: oe,
|
|
199
199
|
writable: !0
|
|
200
200
|
};
|
|
201
201
|
Object.defineProperties(console, {
|
|
202
|
-
info:
|
|
203
|
-
log:
|
|
204
|
-
warn:
|
|
205
|
-
error:
|
|
206
|
-
group:
|
|
207
|
-
groupCollapsed:
|
|
208
|
-
groupEnd:
|
|
202
|
+
info: d,
|
|
203
|
+
log: d,
|
|
204
|
+
warn: d,
|
|
205
|
+
error: d,
|
|
206
|
+
group: d,
|
|
207
|
+
groupCollapsed: d,
|
|
208
|
+
groupEnd: d
|
|
209
209
|
});
|
|
210
210
|
}
|
|
211
211
|
U++;
|
|
@@ -214,31 +214,31 @@ function yr() {
|
|
|
214
214
|
function te() {
|
|
215
215
|
{
|
|
216
216
|
if (U--, U === 0) {
|
|
217
|
-
var
|
|
217
|
+
var d = {
|
|
218
218
|
configurable: !0,
|
|
219
219
|
enumerable: !0,
|
|
220
220
|
writable: !0
|
|
221
221
|
};
|
|
222
222
|
Object.defineProperties(console, {
|
|
223
|
-
log: L({},
|
|
223
|
+
log: L({}, d, {
|
|
224
224
|
value: G
|
|
225
225
|
}),
|
|
226
|
-
info: L({},
|
|
226
|
+
info: L({}, d, {
|
|
227
227
|
value: K
|
|
228
228
|
}),
|
|
229
|
-
warn: L({},
|
|
229
|
+
warn: L({}, d, {
|
|
230
230
|
value: ie
|
|
231
231
|
}),
|
|
232
|
-
error: L({},
|
|
232
|
+
error: L({}, d, {
|
|
233
233
|
value: le
|
|
234
234
|
}),
|
|
235
|
-
group: L({},
|
|
235
|
+
group: L({}, d, {
|
|
236
236
|
value: se
|
|
237
237
|
}),
|
|
238
|
-
groupCollapsed: L({},
|
|
238
|
+
groupCollapsed: L({}, d, {
|
|
239
239
|
value: R
|
|
240
240
|
}),
|
|
241
|
-
groupEnd: L({},
|
|
241
|
+
groupEnd: L({}, d, {
|
|
242
242
|
value: ee
|
|
243
243
|
})
|
|
244
244
|
});
|
|
@@ -247,7 +247,7 @@ function yr() {
|
|
|
247
247
|
}
|
|
248
248
|
}
|
|
249
249
|
var ue = E.ReactCurrentDispatcher, me;
|
|
250
|
-
function pe(
|
|
250
|
+
function pe(d, b, y) {
|
|
251
251
|
{
|
|
252
252
|
if (me === void 0)
|
|
253
253
|
try {
|
|
@@ -257,7 +257,7 @@ function yr() {
|
|
|
257
257
|
me = S && S[1] || "";
|
|
258
258
|
}
|
|
259
259
|
return `
|
|
260
|
-
` + me +
|
|
260
|
+
` + me + d;
|
|
261
261
|
}
|
|
262
262
|
}
|
|
263
263
|
var ge = !1, Se;
|
|
@@ -265,11 +265,11 @@ function yr() {
|
|
|
265
265
|
var Pn = typeof WeakMap == "function" ? WeakMap : Map;
|
|
266
266
|
Se = new Pn();
|
|
267
267
|
}
|
|
268
|
-
function Ot(
|
|
269
|
-
if (!
|
|
268
|
+
function Ot(d, b) {
|
|
269
|
+
if (!d || ge)
|
|
270
270
|
return "";
|
|
271
271
|
{
|
|
272
|
-
var y = Se.get(
|
|
272
|
+
var y = Se.get(d);
|
|
273
273
|
if (y !== void 0)
|
|
274
274
|
return y;
|
|
275
275
|
}
|
|
@@ -281,27 +281,27 @@ function yr() {
|
|
|
281
281
|
H = ue.current, ue.current = null, ce();
|
|
282
282
|
try {
|
|
283
283
|
if (b) {
|
|
284
|
-
var
|
|
284
|
+
var N = function() {
|
|
285
285
|
throw Error();
|
|
286
286
|
};
|
|
287
|
-
if (Object.defineProperty(
|
|
287
|
+
if (Object.defineProperty(N.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(N, []);
|
|
294
294
|
} catch (_e) {
|
|
295
295
|
S = _e;
|
|
296
296
|
}
|
|
297
|
-
Reflect.construct(
|
|
297
|
+
Reflect.construct(d, [], N);
|
|
298
298
|
} else {
|
|
299
299
|
try {
|
|
300
|
-
|
|
300
|
+
N.call();
|
|
301
301
|
} catch (_e) {
|
|
302
302
|
S = _e;
|
|
303
303
|
}
|
|
304
|
-
|
|
304
|
+
d.call(N.prototype);
|
|
305
305
|
}
|
|
306
306
|
} else {
|
|
307
307
|
try {
|
|
@@ -309,7 +309,7 @@ function yr() {
|
|
|
309
309
|
} catch (_e) {
|
|
310
310
|
S = _e;
|
|
311
311
|
}
|
|
312
|
-
|
|
312
|
+
d();
|
|
313
313
|
}
|
|
314
314
|
} catch (_e) {
|
|
315
315
|
if (_e && S && typeof _e.stack == "string") {
|
|
@@ -324,7 +324,7 @@ function yr() {
|
|
|
324
324
|
if (J--, X--, X < 0 || C[J] !== re[X]) {
|
|
325
325
|
var de = `
|
|
326
326
|
` + C[J].replace(" at new ", " at ");
|
|
327
|
-
return
|
|
327
|
+
return d.displayName && de.includes("<anonymous>") && (de = de.replace("<anonymous>", d.displayName)), typeof d == "function" && Se.set(d, de), de;
|
|
328
328
|
}
|
|
329
329
|
while (J >= 1 && X >= 0);
|
|
330
330
|
break;
|
|
@@ -333,37 +333,37 @@ function yr() {
|
|
|
333
333
|
} finally {
|
|
334
334
|
ge = !1, ue.current = H, te(), Error.prepareStackTrace = O;
|
|
335
335
|
}
|
|
336
|
-
var Te =
|
|
337
|
-
return typeof
|
|
336
|
+
var Te = d ? d.displayName || d.name : "", Xt = Te ? pe(Te) : "";
|
|
337
|
+
return typeof d == "function" && Se.set(d, Xt), Xt;
|
|
338
338
|
}
|
|
339
|
-
function Fn(
|
|
340
|
-
return Ot(
|
|
339
|
+
function Fn(d, b, y) {
|
|
340
|
+
return Ot(d, !1);
|
|
341
341
|
}
|
|
342
|
-
function Rn(
|
|
343
|
-
var b =
|
|
342
|
+
function Rn(d) {
|
|
343
|
+
var b = d.prototype;
|
|
344
344
|
return !!(b && b.isReactComponent);
|
|
345
345
|
}
|
|
346
|
-
function Be(
|
|
347
|
-
if (
|
|
346
|
+
function Be(d, b, y) {
|
|
347
|
+
if (d == null)
|
|
348
348
|
return "";
|
|
349
|
-
if (typeof
|
|
350
|
-
return Ot(
|
|
351
|
-
if (typeof
|
|
352
|
-
return pe(
|
|
353
|
-
switch (
|
|
349
|
+
if (typeof d == "function")
|
|
350
|
+
return Ot(d, Rn(d));
|
|
351
|
+
if (typeof d == "string")
|
|
352
|
+
return pe(d);
|
|
353
|
+
switch (d) {
|
|
354
354
|
case c:
|
|
355
355
|
return pe("Suspense");
|
|
356
356
|
case u:
|
|
357
357
|
return pe("SuspenseList");
|
|
358
358
|
}
|
|
359
|
-
if (typeof
|
|
360
|
-
switch (
|
|
359
|
+
if (typeof d == "object")
|
|
360
|
+
switch (d.$$typeof) {
|
|
361
361
|
case i:
|
|
362
|
-
return Fn(
|
|
362
|
+
return Fn(d.render);
|
|
363
363
|
case f:
|
|
364
|
-
return Be(
|
|
364
|
+
return Be(d.type, b, y);
|
|
365
365
|
case p: {
|
|
366
|
-
var S =
|
|
366
|
+
var S = d, O = S._payload, H = S._init;
|
|
367
367
|
try {
|
|
368
368
|
return Be(H(O), b, y);
|
|
369
369
|
} catch {
|
|
@@ -373,116 +373,116 @@ function yr() {
|
|
|
373
373
|
return "";
|
|
374
374
|
}
|
|
375
375
|
var Ie = Object.prototype.hasOwnProperty, Lt = {}, Bt = E.ReactDebugCurrentFrame;
|
|
376
|
-
function He(
|
|
377
|
-
if (
|
|
378
|
-
var b =
|
|
376
|
+
function He(d) {
|
|
377
|
+
if (d) {
|
|
378
|
+
var b = d._owner, y = Be(d.type, d._source, b ? b.type : null);
|
|
379
379
|
Bt.setExtraStackFrame(y);
|
|
380
380
|
} else
|
|
381
381
|
Bt.setExtraStackFrame(null);
|
|
382
382
|
}
|
|
383
|
-
function On(
|
|
383
|
+
function On(d, b, y, S, O) {
|
|
384
384
|
{
|
|
385
385
|
var H = Function.call.bind(Ie);
|
|
386
|
-
for (var
|
|
387
|
-
if (H(
|
|
386
|
+
for (var N in d)
|
|
387
|
+
if (H(d, N)) {
|
|
388
388
|
var C = void 0;
|
|
389
389
|
try {
|
|
390
|
-
if (typeof
|
|
391
|
-
var re = Error((S || "React class") + ": " + y + " type `" +
|
|
390
|
+
if (typeof d[N] != "function") {
|
|
391
|
+
var re = Error((S || "React class") + ": " + y + " type `" + N + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof d[N] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
|
|
392
392
|
throw re.name = "Invariant Violation", re;
|
|
393
393
|
}
|
|
394
|
-
C =
|
|
394
|
+
C = d[N](b, N, S, y, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
|
|
395
395
|
} catch (J) {
|
|
396
396
|
C = J;
|
|
397
397
|
}
|
|
398
|
-
C && !(C instanceof Error) && (He(O), x("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", S || "React class", y,
|
|
398
|
+
C && !(C instanceof Error) && (He(O), x("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", S || "React class", y, N, typeof C), He(null)), C instanceof Error && !(C.message in Lt) && (Lt[C.message] = !0, He(O), x("Failed %s type: %s", y, C.message), He(null));
|
|
399
399
|
}
|
|
400
400
|
}
|
|
401
401
|
}
|
|
402
402
|
var Ln = Array.isArray;
|
|
403
|
-
function st(
|
|
404
|
-
return Ln(
|
|
403
|
+
function st(d) {
|
|
404
|
+
return Ln(d);
|
|
405
405
|
}
|
|
406
|
-
function Bn(
|
|
406
|
+
function Bn(d) {
|
|
407
407
|
{
|
|
408
|
-
var b = typeof Symbol == "function" && Symbol.toStringTag, y = b &&
|
|
408
|
+
var b = typeof Symbol == "function" && Symbol.toStringTag, y = b && d[Symbol.toStringTag] || d.constructor.name || "Object";
|
|
409
409
|
return y;
|
|
410
410
|
}
|
|
411
411
|
}
|
|
412
|
-
function In(
|
|
412
|
+
function In(d) {
|
|
413
413
|
try {
|
|
414
|
-
return It(
|
|
414
|
+
return It(d), !1;
|
|
415
415
|
} catch {
|
|
416
416
|
return !0;
|
|
417
417
|
}
|
|
418
418
|
}
|
|
419
|
-
function It(
|
|
420
|
-
return "" +
|
|
419
|
+
function It(d) {
|
|
420
|
+
return "" + d;
|
|
421
421
|
}
|
|
422
|
-
function Ht(
|
|
423
|
-
if (In(
|
|
424
|
-
return x("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", Bn(
|
|
422
|
+
function Ht(d) {
|
|
423
|
+
if (In(d))
|
|
424
|
+
return x("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", Bn(d)), It(d);
|
|
425
425
|
}
|
|
426
|
-
var
|
|
426
|
+
var Ne = E.ReactCurrentOwner, Hn = {
|
|
427
427
|
key: !0,
|
|
428
428
|
ref: !0,
|
|
429
429
|
__self: !0,
|
|
430
430
|
__source: !0
|
|
431
431
|
}, Qt, Ut, ot;
|
|
432
432
|
ot = {};
|
|
433
|
-
function Qn(
|
|
434
|
-
if (Ie.call(
|
|
435
|
-
var b = Object.getOwnPropertyDescriptor(
|
|
433
|
+
function Qn(d) {
|
|
434
|
+
if (Ie.call(d, "ref")) {
|
|
435
|
+
var b = Object.getOwnPropertyDescriptor(d, "ref").get;
|
|
436
436
|
if (b && b.isReactWarning)
|
|
437
437
|
return !1;
|
|
438
438
|
}
|
|
439
|
-
return
|
|
439
|
+
return d.ref !== void 0;
|
|
440
440
|
}
|
|
441
|
-
function Un(
|
|
442
|
-
if (Ie.call(
|
|
443
|
-
var b = Object.getOwnPropertyDescriptor(
|
|
441
|
+
function Un(d) {
|
|
442
|
+
if (Ie.call(d, "key")) {
|
|
443
|
+
var b = Object.getOwnPropertyDescriptor(d, "key").get;
|
|
444
444
|
if (b && b.isReactWarning)
|
|
445
445
|
return !1;
|
|
446
446
|
}
|
|
447
|
-
return
|
|
447
|
+
return d.key !== void 0;
|
|
448
448
|
}
|
|
449
|
-
function Wn(
|
|
450
|
-
if (typeof
|
|
451
|
-
var y = B(
|
|
452
|
-
ot[y] || (x('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref', B(
|
|
449
|
+
function Wn(d, b) {
|
|
450
|
+
if (typeof d.ref == "string" && Ne.current && b && Ne.current.stateNode !== b) {
|
|
451
|
+
var y = B(Ne.current.type);
|
|
452
|
+
ot[y] || (x('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref', B(Ne.current.type), d.ref), ot[y] = !0);
|
|
453
453
|
}
|
|
454
454
|
}
|
|
455
|
-
function zn(
|
|
455
|
+
function zn(d, b) {
|
|
456
456
|
{
|
|
457
457
|
var y = function() {
|
|
458
458
|
Qt || (Qt = !0, x("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", b));
|
|
459
459
|
};
|
|
460
|
-
y.isReactWarning = !0, Object.defineProperty(
|
|
460
|
+
y.isReactWarning = !0, Object.defineProperty(d, "key", {
|
|
461
461
|
get: y,
|
|
462
462
|
configurable: !0
|
|
463
463
|
});
|
|
464
464
|
}
|
|
465
465
|
}
|
|
466
|
-
function Vn(
|
|
466
|
+
function Vn(d, b) {
|
|
467
467
|
{
|
|
468
468
|
var y = function() {
|
|
469
469
|
Ut || (Ut = !0, x("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", b));
|
|
470
470
|
};
|
|
471
|
-
y.isReactWarning = !0, Object.defineProperty(
|
|
471
|
+
y.isReactWarning = !0, Object.defineProperty(d, "ref", {
|
|
472
472
|
get: y,
|
|
473
473
|
configurable: !0
|
|
474
474
|
});
|
|
475
475
|
}
|
|
476
476
|
}
|
|
477
|
-
var Yn = function(
|
|
477
|
+
var Yn = function(d, b, y, S, O, H, N) {
|
|
478
478
|
var C = {
|
|
479
479
|
// This tag allows us to uniquely identify this as a React Element
|
|
480
480
|
$$typeof: t,
|
|
481
481
|
// Built-in properties that belong on the element
|
|
482
|
-
type:
|
|
482
|
+
type: d,
|
|
483
483
|
key: b,
|
|
484
484
|
ref: y,
|
|
485
|
-
props:
|
|
485
|
+
props: N,
|
|
486
486
|
// Record the component responsible for creating this element.
|
|
487
487
|
_owner: H
|
|
488
488
|
};
|
|
@@ -503,53 +503,53 @@ function yr() {
|
|
|
503
503
|
value: O
|
|
504
504
|
}), Object.freeze && (Object.freeze(C.props), Object.freeze(C)), C;
|
|
505
505
|
};
|
|
506
|
-
function Gn(
|
|
506
|
+
function Gn(d, b, y, S, O) {
|
|
507
507
|
{
|
|
508
|
-
var H,
|
|
508
|
+
var H, N = {}, C = null, re = null;
|
|
509
509
|
y !== void 0 && (Ht(y), C = "" + y), Un(b) && (Ht(b.key), C = "" + b.key), Qn(b) && (re = b.ref, Wn(b, O));
|
|
510
510
|
for (H in b)
|
|
511
|
-
Ie.call(b, H) && !Hn.hasOwnProperty(H) && (
|
|
512
|
-
if (
|
|
513
|
-
var J =
|
|
511
|
+
Ie.call(b, H) && !Hn.hasOwnProperty(H) && (N[H] = b[H]);
|
|
512
|
+
if (d && d.defaultProps) {
|
|
513
|
+
var J = d.defaultProps;
|
|
514
514
|
for (H in J)
|
|
515
|
-
|
|
515
|
+
N[H] === void 0 && (N[H] = J[H]);
|
|
516
516
|
}
|
|
517
517
|
if (C || re) {
|
|
518
|
-
var X = typeof
|
|
519
|
-
C && zn(
|
|
518
|
+
var X = typeof d == "function" ? d.displayName || d.name || "Unknown" : d;
|
|
519
|
+
C && zn(N, X), re && Vn(N, X);
|
|
520
520
|
}
|
|
521
|
-
return Yn(
|
|
521
|
+
return Yn(d, C, re, O, S, Ne.current, N);
|
|
522
522
|
}
|
|
523
523
|
}
|
|
524
524
|
var at = E.ReactCurrentOwner, Wt = E.ReactDebugCurrentFrame;
|
|
525
|
-
function $e(
|
|
526
|
-
if (
|
|
527
|
-
var b =
|
|
525
|
+
function $e(d) {
|
|
526
|
+
if (d) {
|
|
527
|
+
var b = d._owner, y = Be(d.type, d._source, b ? b.type : null);
|
|
528
528
|
Wt.setExtraStackFrame(y);
|
|
529
529
|
} else
|
|
530
530
|
Wt.setExtraStackFrame(null);
|
|
531
531
|
}
|
|
532
532
|
var it;
|
|
533
533
|
it = !1;
|
|
534
|
-
function lt(
|
|
535
|
-
return typeof
|
|
534
|
+
function lt(d) {
|
|
535
|
+
return typeof d == "object" && d !== null && d.$$typeof === t;
|
|
536
536
|
}
|
|
537
537
|
function zt() {
|
|
538
538
|
{
|
|
539
539
|
if (at.current) {
|
|
540
|
-
var
|
|
541
|
-
if (
|
|
540
|
+
var d = B(at.current.type);
|
|
541
|
+
if (d)
|
|
542
542
|
return `
|
|
543
543
|
|
|
544
|
-
Check the render method of \`` +
|
|
544
|
+
Check the render method of \`` + d + "`.";
|
|
545
545
|
}
|
|
546
546
|
return "";
|
|
547
547
|
}
|
|
548
548
|
}
|
|
549
|
-
function Jn(
|
|
549
|
+
function Jn(d) {
|
|
550
550
|
{
|
|
551
|
-
if (
|
|
552
|
-
var b =
|
|
551
|
+
if (d !== void 0) {
|
|
552
|
+
var b = d.fileName.replace(/^.*[\\\/]/, ""), y = d.lineNumber;
|
|
553
553
|
return `
|
|
554
554
|
|
|
555
555
|
Check your code at ` + b + ":" + y + ".";
|
|
@@ -558,11 +558,11 @@ Check your code at ` + b + ":" + y + ".";
|
|
|
558
558
|
}
|
|
559
559
|
}
|
|
560
560
|
var Vt = {};
|
|
561
|
-
function Xn(
|
|
561
|
+
function Xn(d) {
|
|
562
562
|
{
|
|
563
563
|
var b = zt();
|
|
564
564
|
if (!b) {
|
|
565
|
-
var y = typeof
|
|
565
|
+
var y = typeof d == "string" ? d : d.displayName || d.name;
|
|
566
566
|
y && (b = `
|
|
567
567
|
|
|
568
568
|
Check the top-level render call using <` + y + ">.");
|
|
@@ -570,41 +570,41 @@ Check the top-level render call using <` + y + ">.");
|
|
|
570
570
|
return b;
|
|
571
571
|
}
|
|
572
572
|
}
|
|
573
|
-
function Yt(
|
|
573
|
+
function Yt(d, b) {
|
|
574
574
|
{
|
|
575
|
-
if (!
|
|
575
|
+
if (!d._store || d._store.validated || d.key != null)
|
|
576
576
|
return;
|
|
577
|
-
|
|
577
|
+
d._store.validated = !0;
|
|
578
578
|
var y = Xn(b);
|
|
579
579
|
if (Vt[y])
|
|
580
580
|
return;
|
|
581
581
|
Vt[y] = !0;
|
|
582
582
|
var S = "";
|
|
583
|
-
|
|
583
|
+
d && d._owner && d._owner !== at.current && (S = " It was passed a child from " + B(d._owner.type) + "."), $e(d), x('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', y, S), $e(null);
|
|
584
584
|
}
|
|
585
585
|
}
|
|
586
|
-
function Gt(
|
|
586
|
+
function Gt(d, b) {
|
|
587
587
|
{
|
|
588
|
-
if (typeof
|
|
588
|
+
if (typeof d != "object")
|
|
589
589
|
return;
|
|
590
|
-
if (st(
|
|
591
|
-
for (var y = 0; y <
|
|
592
|
-
var S =
|
|
590
|
+
if (st(d))
|
|
591
|
+
for (var y = 0; y < d.length; y++) {
|
|
592
|
+
var S = d[y];
|
|
593
593
|
lt(S) && Yt(S, b);
|
|
594
594
|
}
|
|
595
|
-
else if (lt(
|
|
596
|
-
|
|
597
|
-
else if (
|
|
598
|
-
var O = g(
|
|
599
|
-
if (typeof O == "function" && O !==
|
|
600
|
-
for (var H = O.call(
|
|
601
|
-
lt(
|
|
595
|
+
else if (lt(d))
|
|
596
|
+
d._store && (d._store.validated = !0);
|
|
597
|
+
else if (d) {
|
|
598
|
+
var O = g(d);
|
|
599
|
+
if (typeof O == "function" && O !== d.entries)
|
|
600
|
+
for (var H = O.call(d), N; !(N = H.next()).done; )
|
|
601
|
+
lt(N.value) && Yt(N.value, b);
|
|
602
602
|
}
|
|
603
603
|
}
|
|
604
604
|
}
|
|
605
|
-
function Zn(
|
|
605
|
+
function Zn(d) {
|
|
606
606
|
{
|
|
607
|
-
var b =
|
|
607
|
+
var b = d.type;
|
|
608
608
|
if (b == null || typeof b == "string")
|
|
609
609
|
return;
|
|
610
610
|
var y;
|
|
@@ -618,7 +618,7 @@ Check the top-level render call using <` + y + ">.");
|
|
|
618
618
|
return;
|
|
619
619
|
if (y) {
|
|
620
620
|
var S = B(b);
|
|
621
|
-
On(y,
|
|
621
|
+
On(y, d.props, "prop", S, d);
|
|
622
622
|
} else if (b.PropTypes !== void 0 && !it) {
|
|
623
623
|
it = !0;
|
|
624
624
|
var O = B(b);
|
|
@@ -627,53 +627,53 @@ Check the top-level render call using <` + y + ">.");
|
|
|
627
627
|
typeof b.getDefaultProps == "function" && !b.getDefaultProps.isReactClassApproved && x("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
|
|
628
628
|
}
|
|
629
629
|
}
|
|
630
|
-
function qn(
|
|
630
|
+
function qn(d) {
|
|
631
631
|
{
|
|
632
|
-
for (var b = Object.keys(
|
|
632
|
+
for (var b = Object.keys(d.props), y = 0; y < b.length; y++) {
|
|
633
633
|
var S = b[y];
|
|
634
634
|
if (S !== "children" && S !== "key") {
|
|
635
|
-
$e(
|
|
635
|
+
$e(d), x("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", S), $e(null);
|
|
636
636
|
break;
|
|
637
637
|
}
|
|
638
638
|
}
|
|
639
|
-
|
|
639
|
+
d.ref !== null && ($e(d), x("Invalid attribute `ref` supplied to `React.Fragment`."), $e(null));
|
|
640
640
|
}
|
|
641
641
|
}
|
|
642
|
-
function Jt(
|
|
642
|
+
function Jt(d, b, y, S, O, H) {
|
|
643
643
|
{
|
|
644
|
-
var
|
|
645
|
-
if (!
|
|
644
|
+
var N = q(d);
|
|
645
|
+
if (!N) {
|
|
646
646
|
var C = "";
|
|
647
|
-
(
|
|
647
|
+
(d === void 0 || typeof d == "object" && d !== null && Object.keys(d).length === 0) && (C += " 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 re = Jn(O);
|
|
649
649
|
re ? C += re : C += zt();
|
|
650
650
|
var J;
|
|
651
|
-
|
|
651
|
+
d === null ? J = "null" : st(d) ? J = "array" : d !== void 0 && d.$$typeof === t ? (J = "<" + (B(d.type) || "Unknown") + " />", C = " Did you accidentally export a JSX literal instead of a component?") : J = typeof d, x("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", J, C);
|
|
652
652
|
}
|
|
653
|
-
var X = Gn(
|
|
653
|
+
var X = Gn(d, b, y, O, H);
|
|
654
654
|
if (X == null)
|
|
655
655
|
return X;
|
|
656
|
-
if (
|
|
656
|
+
if (N) {
|
|
657
657
|
var de = b.children;
|
|
658
658
|
if (de !== void 0)
|
|
659
659
|
if (S)
|
|
660
660
|
if (st(de)) {
|
|
661
661
|
for (var Te = 0; Te < de.length; Te++)
|
|
662
|
-
Gt(de[Te],
|
|
662
|
+
Gt(de[Te], d);
|
|
663
663
|
Object.freeze && Object.freeze(de);
|
|
664
664
|
} else
|
|
665
665
|
x("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
|
|
666
666
|
else
|
|
667
|
-
Gt(de,
|
|
667
|
+
Gt(de, d);
|
|
668
668
|
}
|
|
669
|
-
return
|
|
669
|
+
return d === s ? qn(X) : Zn(X), X;
|
|
670
670
|
}
|
|
671
671
|
}
|
|
672
|
-
function Kn(
|
|
673
|
-
return Jt(
|
|
672
|
+
function Kn(d, b, y) {
|
|
673
|
+
return Jt(d, b, y, !0);
|
|
674
674
|
}
|
|
675
|
-
function er(
|
|
676
|
-
return Jt(
|
|
675
|
+
function er(d, b, y) {
|
|
676
|
+
return Jt(d, b, y, !1);
|
|
677
677
|
}
|
|
678
678
|
var tr = er, nr = Kn;
|
|
679
679
|
Pe.Fragment = s, Pe.jsx = tr, Pe.jsxs = nr;
|
|
@@ -696,7 +696,7 @@ const jr = () => {
|
|
|
696
696
|
}, t);
|
|
697
697
|
};
|
|
698
698
|
function Er(e, t, n) {
|
|
699
|
-
var s = this, o = Z(null), l = Z(0),
|
|
699
|
+
var s = this, o = Z(null), l = Z(0), m = Z(null), a = Z([]), i = Z(), c = Z(), u = Z(e), f = Z(!0);
|
|
700
700
|
z(function() {
|
|
701
701
|
u.current = e;
|
|
702
702
|
}, [e]);
|
|
@@ -715,14 +715,14 @@ function Er(e, t, n) {
|
|
|
715
715
|
var F = a.current, q = i.current;
|
|
716
716
|
return a.current = i.current = null, l.current = w, c.current = u.current.apply(q, F);
|
|
717
717
|
}, $ = function(w, F) {
|
|
718
|
-
p && cancelAnimationFrame(
|
|
718
|
+
p && cancelAnimationFrame(m.current), m.current = p ? requestAnimationFrame(w) : setTimeout(w, F);
|
|
719
719
|
}, T = function(w) {
|
|
720
720
|
if (!f.current)
|
|
721
721
|
return !1;
|
|
722
722
|
var F = w - o.current;
|
|
723
723
|
return !o.current || F >= t || F < 0 || v && w - l.current >= g;
|
|
724
724
|
}, M = function(w) {
|
|
725
|
-
return
|
|
725
|
+
return m.current = null, _ && a.current ? x(w) : (a.current = i.current = null, c.current);
|
|
726
726
|
}, Q = function w() {
|
|
727
727
|
var F = Date.now();
|
|
728
728
|
if (T(F))
|
|
@@ -734,19 +734,19 @@ function Er(e, t, n) {
|
|
|
734
734
|
}, V = function() {
|
|
735
735
|
var w = Date.now(), F = T(w);
|
|
736
736
|
if (a.current = [].slice.call(arguments), i.current = s, o.current = w, F) {
|
|
737
|
-
if (!
|
|
737
|
+
if (!m.current && f.current)
|
|
738
738
|
return l.current = o.current, $(Q, t), h ? x(o.current) : c.current;
|
|
739
739
|
if (v)
|
|
740
740
|
return $(Q, t), x(o.current);
|
|
741
741
|
}
|
|
742
|
-
return
|
|
742
|
+
return m.current || $(Q, t), c.current;
|
|
743
743
|
};
|
|
744
744
|
return V.cancel = function() {
|
|
745
|
-
|
|
745
|
+
m.current && (p ? cancelAnimationFrame(m.current) : clearTimeout(m.current)), l.current = 0, a.current = o.current = i.current = m.current = null;
|
|
746
746
|
}, V.isPending = function() {
|
|
747
|
-
return !!
|
|
747
|
+
return !!m.current;
|
|
748
748
|
}, V.flush = function() {
|
|
749
|
-
return
|
|
749
|
+
return m.current ? M(Date.now()) : c.current;
|
|
750
750
|
}, V;
|
|
751
751
|
}, [h, v, t, g, _, p]);
|
|
752
752
|
return E;
|
|
@@ -759,14 +759,14 @@ let ct;
|
|
|
759
759
|
const et = (e = !0, t = !1) => {
|
|
760
760
|
if (!e)
|
|
761
761
|
return;
|
|
762
|
-
const [n, s] =
|
|
762
|
+
const [n, s] = A.useState(0) || [!1, () => {
|
|
763
763
|
}];
|
|
764
|
-
z(() => (l(), window.addEventListener("resize",
|
|
765
|
-
clearTimeout(ct),
|
|
764
|
+
z(() => (l(), window.addEventListener("resize", m), () => {
|
|
765
|
+
clearTimeout(ct), m.flush(), window.removeEventListener("resize", m);
|
|
766
766
|
}), []);
|
|
767
767
|
const o = () => window.innerWidth, l = () => {
|
|
768
768
|
s(o());
|
|
769
|
-
},
|
|
769
|
+
}, m = fn(
|
|
770
770
|
() => {
|
|
771
771
|
o() !== n && (t && (clearTimeout(ct), document.body.classList.add("is-resizing"), ct = setTimeout(() => {
|
|
772
772
|
document.body.classList.remove("is-resizing");
|
|
@@ -787,8 +787,8 @@ const et = (e = !0, t = !1) => {
|
|
|
787
787
|
}) => {
|
|
788
788
|
if (!window)
|
|
789
789
|
return;
|
|
790
|
-
const [o, l] =
|
|
791
|
-
}], [
|
|
790
|
+
const [o, l] = A.useState({ current: 0, past: 0 }) || [!1, () => {
|
|
791
|
+
}], [m, a] = A.useState({ scrollDown: !1, scrollUp: !1 }) || [!1, () => {
|
|
792
792
|
}];
|
|
793
793
|
z(() => (i(), window.addEventListener("scroll", c), () => {
|
|
794
794
|
c.flush(), window.removeEventListener("scroll", c);
|
|
@@ -796,10 +796,10 @@ const et = (e = !0, t = !1) => {
|
|
|
796
796
|
const i = () => {
|
|
797
797
|
const u = window.scrollY, f = o.current, p = u - f, h = p > 0 ? "down" : "up";
|
|
798
798
|
if (l({ current: u, past: f }), h === "down") {
|
|
799
|
-
u >= e + t.down && !
|
|
799
|
+
u >= e + t.down && !m.scrollDown && (!m.scrollUp || p > t.up) && (n(), a({ scrollUp: !1, scrollDown: !0 }));
|
|
800
800
|
return;
|
|
801
801
|
}
|
|
802
|
-
Math.abs(p) >= t.up && !
|
|
802
|
+
Math.abs(p) >= t.up && !m.scrollUp && (s(), a({ scrollUp: !0, scrollDown: !1 }));
|
|
803
803
|
}, c = fn(() => {
|
|
804
804
|
i();
|
|
805
805
|
}, 250);
|
|
@@ -849,14 +849,14 @@ const et = (e = !0, t = !1) => {
|
|
|
849
849
|
} catch {
|
|
850
850
|
return "";
|
|
851
851
|
}
|
|
852
|
-
const
|
|
852
|
+
const m = l / 36e5, a = Math.floor(l / 864e5);
|
|
853
853
|
if (a < 1)
|
|
854
|
-
return
|
|
854
|
+
return m < 1 ? { path: "now" } : { path: "hours", number: Math.floor(m) };
|
|
855
855
|
if (a < 7)
|
|
856
856
|
return { path: "days", number: a };
|
|
857
857
|
const i = Math.floor(a / 7);
|
|
858
858
|
return i <= 52 ? { path: "weeks", number: i } : { path: "years", number: Math.floor(a / 365) };
|
|
859
|
-
}, Cr = (e) => new Promise((t) => setTimeout(t, e)),
|
|
859
|
+
}, Cr = (e) => new Promise((t) => setTimeout(t, e)), Nt = {
|
|
860
860
|
apolitical: "Apolitical",
|
|
861
861
|
breadcrumbs_label: "Go back to:",
|
|
862
862
|
breadcrumbs_currentPage: "Current page:",
|
|
@@ -1139,13 +1139,13 @@ Thank you for helping to protect the Apolitical community from abusive content.`
|
|
|
1139
1139
|
sharedLinks_copy_text: "Copy link",
|
|
1140
1140
|
tags_community: "From the community",
|
|
1141
1141
|
tooltip_loading: "Loading..."
|
|
1142
|
-
},
|
|
1142
|
+
}, Ar = {
|
|
1143
1143
|
languageSwitcher_label: "Me gustaría leer este artículo en...",
|
|
1144
1144
|
languageSwitcher_translation_original: "idioma original",
|
|
1145
1145
|
languageSwitcher_translation_human: "traducido por un humano",
|
|
1146
1146
|
languageSwitcher_translation_machine: "traducido por máquina",
|
|
1147
1147
|
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>"
|
|
1148
|
-
},
|
|
1148
|
+
}, Nr = {
|
|
1149
1149
|
collapsibleSection_summary: "En savoir plus",
|
|
1150
1150
|
languageSwitcher_label: "Je voudrais lire cet article dans...",
|
|
1151
1151
|
languageSwitcher_translation_original: "langue originale",
|
|
@@ -1160,13 +1160,13 @@ Thank you for helping to protect the Apolitical community from abusive content.`
|
|
|
1160
1160
|
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>"
|
|
1161
1161
|
}, Pr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1162
1162
|
__proto__: null,
|
|
1163
|
-
en:
|
|
1164
|
-
es:
|
|
1165
|
-
fr:
|
|
1163
|
+
en: Nt,
|
|
1164
|
+
es: Ar,
|
|
1165
|
+
fr: Nr,
|
|
1166
1166
|
pt: Dr
|
|
1167
1167
|
}, Symbol.toStringTag, { value: "Module" })), he = (e, t, n, s, o = {}) => {
|
|
1168
1168
|
let l = "";
|
|
1169
|
-
return `${t}_${n}` in
|
|
1169
|
+
return `${t}_${n}` in Nt ? l = e({ id: `${t}_${n}` }, o) : l = e({ id: t }, { [s]: n, ...o }), l;
|
|
1170
1170
|
}, Fr = (e, t, n) => {
|
|
1171
1171
|
if (!e || e === 0)
|
|
1172
1172
|
return "0";
|
|
@@ -1181,7 +1181,7 @@ Thank you for helping to protect the Apolitical community from abusive content.`
|
|
|
1181
1181
|
}
|
|
1182
1182
|
}
|
|
1183
1183
|
return s;
|
|
1184
|
-
}, gn = (e, t) =>
|
|
1184
|
+
}, gn = (e, t) => A.Children.map(e, (n) => A.cloneElement(n, {
|
|
1185
1185
|
...t
|
|
1186
1186
|
})), Rr = (e) => e.replace(/\s+/g, "").length > 0, W = ({
|
|
1187
1187
|
variant: e = "primary",
|
|
@@ -1190,7 +1190,7 @@ Thank you for helping to protect the Apolitical community from abusive content.`
|
|
|
1190
1190
|
icon: s = !1,
|
|
1191
1191
|
href: o = !1,
|
|
1192
1192
|
element: l = "button",
|
|
1193
|
-
onClick:
|
|
1193
|
+
onClick: m = !1,
|
|
1194
1194
|
className: a = "",
|
|
1195
1195
|
disabled: i = !1,
|
|
1196
1196
|
screenreaderText: c = !1,
|
|
@@ -1212,18 +1212,18 @@ Thank you for helping to protect the Apolitical community from abusive content.`
|
|
|
1212
1212
|
button: o
|
|
1213
1213
|
}),
|
|
1214
1214
|
onClick: (g) => {
|
|
1215
|
-
(!o || o[0] === "#") &&
|
|
1215
|
+
(!o || o[0] === "#") && m && (g.preventDefault(), g.stopPropagation()), m && m(g);
|
|
1216
1216
|
},
|
|
1217
1217
|
disabled: typeof i == "object" && "isClickable" in i ? !i.isClickable : i
|
|
1218
1218
|
};
|
|
1219
|
-
return o && (l = "a", v.href = o),
|
|
1219
|
+
return o && (l = "a", v.href = o), A.createElement(
|
|
1220
1220
|
l,
|
|
1221
1221
|
v,
|
|
1222
1222
|
u || (c ? /* @__PURE__ */ r.jsx(ne, { showOnFocus: !1, children: c }) : null)
|
|
1223
1223
|
);
|
|
1224
1224
|
}, tt = ({ buttons: e, className: t = "", ...n }) => {
|
|
1225
|
-
const s = e.length > 1 ? "ul" : "p", o = e.map((l,
|
|
1226
|
-
return
|
|
1225
|
+
const s = e.length > 1 ? "ul" : "p", o = e.map((l, m) => s === "p" ? /* @__PURE__ */ r.jsx(W, { ...l }, m) : /* @__PURE__ */ r.jsx("li", { children: /* @__PURE__ */ r.jsx(W, { ...l }) }, m));
|
|
1226
|
+
return A.createElement(s, { className: j("button-wrapper", t), ...n, children: o });
|
|
1227
1227
|
};
|
|
1228
1228
|
const Le = ({ maxWidth: e = !1 }) => {
|
|
1229
1229
|
const t = e ? { "--max-width": `${e / 16}rem` } : {};
|
|
@@ -1235,12 +1235,12 @@ const Le = ({ maxWidth: e = !1 }) => {
|
|
|
1235
1235
|
className: s = "",
|
|
1236
1236
|
onClick: o,
|
|
1237
1237
|
gtmContext: l,
|
|
1238
|
-
gtmType:
|
|
1238
|
+
gtmType: m,
|
|
1239
1239
|
...a
|
|
1240
1240
|
}) => {
|
|
1241
1241
|
if (e) {
|
|
1242
1242
|
const i = { ...a };
|
|
1243
|
-
return o && (i.onClick = o), l && (i["data-gtm-event-context"] = l),
|
|
1243
|
+
return o && (i.onClick = o), l && (i["data-gtm-event-context"] = l), m && (i["data-gtm-event-type"] = m), /* @__PURE__ */ r.jsx(
|
|
1244
1244
|
"a",
|
|
1245
1245
|
{
|
|
1246
1246
|
href: e,
|
|
@@ -1250,7 +1250,7 @@ const Le = ({ maxWidth: e = !1 }) => {
|
|
|
1250
1250
|
}
|
|
1251
1251
|
);
|
|
1252
1252
|
}
|
|
1253
|
-
return n ?
|
|
1253
|
+
return n ? A.createElement(n, { children: t, className: s, ...a }) : t;
|
|
1254
1254
|
}, en = {
|
|
1255
1255
|
card: {
|
|
1256
1256
|
range: [
|
|
@@ -1375,13 +1375,13 @@ const Br = ({ image: e, className: t, testId: n }) => {
|
|
|
1375
1375
|
description: s,
|
|
1376
1376
|
height: o,
|
|
1377
1377
|
type: l,
|
|
1378
|
-
query:
|
|
1378
|
+
query: m,
|
|
1379
1379
|
url: a,
|
|
1380
1380
|
width: i,
|
|
1381
1381
|
loading: c,
|
|
1382
1382
|
decoding: u,
|
|
1383
1383
|
fetchPriority: f
|
|
1384
|
-
} = e, { range: p, sizes: h } = Or(e), _ = ut({ format: "avif", query:
|
|
1384
|
+
} = e, { range: p, sizes: h } = Or(e), _ = ut({ format: "avif", query: m, range: p, url: a }), v = ut({ format: "webp", query: m, range: p, url: a }), g = ut({ format: "", query: m, range: p, url: a });
|
|
1385
1385
|
return /* @__PURE__ */ r.jsxs("picture", { className: t, children: [
|
|
1386
1386
|
l !== "image/gif" && /* @__PURE__ */ r.jsx(
|
|
1387
1387
|
"source",
|
|
@@ -1420,7 +1420,7 @@ const Br = ({ image: e, className: t, testId: n }) => {
|
|
|
1420
1420
|
};
|
|
1421
1421
|
let Fe = !1;
|
|
1422
1422
|
const Ir = ({ isOpen: e = !1, isLoading: t = !1, children: n }) => {
|
|
1423
|
-
const s = P(), o = Z(null), [l,
|
|
1423
|
+
const s = P(), o = Z(null), [l, m] = D("hidden");
|
|
1424
1424
|
z(() => {
|
|
1425
1425
|
const i = o.current;
|
|
1426
1426
|
if (i)
|
|
@@ -1429,13 +1429,13 @@ const Ir = ({ isOpen: e = !1, isLoading: t = !1, children: n }) => {
|
|
|
1429
1429
|
};
|
|
1430
1430
|
}, []);
|
|
1431
1431
|
const a = ({ propertyName: i }) => {
|
|
1432
|
-
i === "opacity" && (Fe !== !1 && clearTimeout(Fe),
|
|
1432
|
+
i === "opacity" && (Fe !== !1 && clearTimeout(Fe), m((c) => c === "opening" ? "open" : c === "closing" ? "closed" : c === "closed" ? "hidden" : c));
|
|
1433
1433
|
};
|
|
1434
1434
|
return Ce(() => {
|
|
1435
1435
|
Fe !== !1 && clearTimeout(Fe);
|
|
1436
1436
|
let i = "open";
|
|
1437
|
-
e ?
|
|
1438
|
-
|
|
1437
|
+
e ? m("opening") : (m("closing"), i = "hidden"), Fe = setTimeout(() => {
|
|
1438
|
+
m(i);
|
|
1439
1439
|
}, 300);
|
|
1440
1440
|
}, [e]), /* @__PURE__ */ r.jsx("aside", { ref: o, className: j("tooltip text-medium", l, { loading: t }), hidden: l === "hidden", children: t ? /* @__PURE__ */ r.jsx("p", { children: s.formatMessage({ id: "tooltip_loading" }) }) : typeof n == "string" ? /* @__PURE__ */ r.jsx("p", { children: n }) : n });
|
|
1441
1441
|
};
|
|
@@ -1454,7 +1454,7 @@ const oo = ({ text: e, buttons: t, className: n = "" }) => {
|
|
|
1454
1454
|
children: o.text
|
|
1455
1455
|
});
|
|
1456
1456
|
}), /* @__PURE__ */ r.jsx(_n, { className: j("download-section", n), children: /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
|
|
1457
|
-
|
|
1457
|
+
A.createElement(typeof e == "string" ? "h2" : e.element, { className: "text" }, typeof e == "string" ? e : e.text),
|
|
1458
1458
|
/* @__PURE__ */ r.jsx(tt, { buttons: s })
|
|
1459
1459
|
] }) });
|
|
1460
1460
|
};
|
|
@@ -1467,13 +1467,13 @@ const ao = ({ title: e = !1, logos: t = [], className: n = "" }) => {
|
|
|
1467
1467
|
text: typeof e == "string" ? e : typeof e == "object" ? e.text : ""
|
|
1468
1468
|
};
|
|
1469
1469
|
return /* @__PURE__ */ r.jsxs("div", { className: j("logos", n), children: [
|
|
1470
|
-
e &&
|
|
1470
|
+
e && A.createElement(o.element, { className: "title" }, o.text),
|
|
1471
1471
|
/* @__PURE__ */ r.jsx(
|
|
1472
1472
|
"ul",
|
|
1473
1473
|
{
|
|
1474
1474
|
className: j({ "two-col": s === 2 || s === 4, "three-col": s === 5 || s <= 10 && s % 3 === 0 }),
|
|
1475
1475
|
children: t.map(
|
|
1476
|
-
({ logo: l, nameOfBusiness:
|
|
1476
|
+
({ logo: l, nameOfBusiness: m, link: a = !1, description: i = !1 }, c) => {
|
|
1477
1477
|
if (!l || !l.url)
|
|
1478
1478
|
return null;
|
|
1479
1479
|
const u = /* @__PURE__ */ r.jsx(
|
|
@@ -1482,7 +1482,7 @@ const ao = ({ title: e = !1, logos: t = [], className: n = "" }) => {
|
|
|
1482
1482
|
src: l.url,
|
|
1483
1483
|
width: l.width || "auto",
|
|
1484
1484
|
height: l.height || "auto",
|
|
1485
|
-
alt:
|
|
1485
|
+
alt: m
|
|
1486
1486
|
}
|
|
1487
1487
|
);
|
|
1488
1488
|
return /* @__PURE__ */ r.jsxs("li", { children: [
|
|
@@ -1518,8 +1518,8 @@ const Hr = [
|
|
|
1518
1518
|
"blockquote",
|
|
1519
1519
|
"q"
|
|
1520
1520
|
], Qr = ({ content: e, image: t, variant: n = "default", spacing: s = "normal", cta: o, children: l }) => {
|
|
1521
|
-
const
|
|
1522
|
-
return
|
|
1521
|
+
const m = ["eyebrow", "title", "text"], a = { eyebrow: "small", title: "h1", text: "p" }, i = {};
|
|
1522
|
+
return m.forEach((c) => {
|
|
1523
1523
|
if (!e[c]) {
|
|
1524
1524
|
i[c] = !1;
|
|
1525
1525
|
return;
|
|
@@ -1542,10 +1542,10 @@ const Hr = [
|
|
|
1542
1542
|
u && u.scrollIntoView({ behavior: "smooth" });
|
|
1543
1543
|
}), /* @__PURE__ */ r.jsx(_n, { className: j("banner-section", n, s, { "has-image": t, "has-extra-spacing": s === "normal" && i.eyebrow && i.title }), children: /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
|
|
1544
1544
|
/* @__PURE__ */ r.jsxs("div", { className: "content-wrapper", children: [
|
|
1545
|
-
|
|
1545
|
+
m.map((c) => {
|
|
1546
1546
|
if (i[c] && typeof i[c] == "object") {
|
|
1547
1547
|
const { text: u, element: f = "" } = i[c];
|
|
1548
|
-
return
|
|
1548
|
+
return A.createElement(
|
|
1549
1549
|
f.toLowerCase(),
|
|
1550
1550
|
{ key: c, className: c },
|
|
1551
1551
|
u
|
|
@@ -1567,7 +1567,7 @@ const Hr = [
|
|
|
1567
1567
|
] }),
|
|
1568
1568
|
t && /* @__PURE__ */ r.jsx(Br, { image: { ...t, aspect: "banner" } })
|
|
1569
1569
|
] }) });
|
|
1570
|
-
}, io =
|
|
1570
|
+
}, io = Ae(Qr);
|
|
1571
1571
|
const lo = ({
|
|
1572
1572
|
variant: e = "primary",
|
|
1573
1573
|
button: t = null,
|
|
@@ -1596,10 +1596,10 @@ const xn = ({ label: e = !1, className: t = "", children: n }) => {
|
|
|
1596
1596
|
const ke = ({ variant: e = "primary", className: t = "", children: n, ...s }) => /* @__PURE__ */ r.jsx("div", { className: j("highlighted-text-box", e, t), ...s, children: n });
|
|
1597
1597
|
const rt = ({ variant: e = "empty", text: t = !1, button: n = !1, className: s = "" }) => {
|
|
1598
1598
|
let o = n && !!Object.keys(n).length;
|
|
1599
|
-
const l = typeof n == "object" && "breakpoints" in n,
|
|
1600
|
-
if (l && typeof n == "object" && typeof
|
|
1599
|
+
const l = typeof n == "object" && "breakpoints" in n, m = et(l);
|
|
1600
|
+
if (l && typeof n == "object" && typeof m == "number") {
|
|
1601
1601
|
const f = Object.assign({}, n.breakpoints), p = pn(Object.keys(f));
|
|
1602
|
-
o = hn(
|
|
1602
|
+
o = hn(m, p, f);
|
|
1603
1603
|
}
|
|
1604
1604
|
const { breakpoints: a, text: i = "", component: c, ...u } = n;
|
|
1605
1605
|
return /* @__PURE__ */ r.jsx(ke, { variant: "subtle", className: j("empty-state-box", e, s), children: /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
|
|
@@ -1623,7 +1623,7 @@ const Ur = ({ type: e = "default", className: t = "", heading: n = !1, children:
|
|
|
1623
1623
|
Ke,
|
|
1624
1624
|
{
|
|
1625
1625
|
options: {
|
|
1626
|
-
wrapper:
|
|
1626
|
+
wrapper: A.Fragment,
|
|
1627
1627
|
forceBlock: !0,
|
|
1628
1628
|
overrides: vn
|
|
1629
1629
|
},
|
|
@@ -1632,9 +1632,9 @@ const Ur = ({ type: e = "default", className: t = "", heading: n = !1, children:
|
|
|
1632
1632
|
) : /* @__PURE__ */ r.jsx("p", { children: s })
|
|
1633
1633
|
] });
|
|
1634
1634
|
const uo = ({ className: e = "", show: t = !1, hide: n = !1, text: s, children: o }) => {
|
|
1635
|
-
const l = P(),
|
|
1635
|
+
const l = P(), m = Z(null), [a, i] = D(""), [c, u] = D("closed");
|
|
1636
1636
|
z(() => {
|
|
1637
|
-
const h =
|
|
1637
|
+
const h = m.current;
|
|
1638
1638
|
if (h)
|
|
1639
1639
|
return h.addEventListener("transitionend", f), () => {
|
|
1640
1640
|
h.removeEventListener("transitionend", f);
|
|
@@ -1656,7 +1656,7 @@ const uo = ({ className: e = "", show: t = !1, hide: n = !1, text: s, children:
|
|
|
1656
1656
|
return null;
|
|
1657
1657
|
const p = ["opening", "open"].includes(c);
|
|
1658
1658
|
return /* @__PURE__ */ r.jsxs(ke, { variant: "subtle", className: j("hide-show-text-box", e), children: [
|
|
1659
|
-
/* @__PURE__ */ r.jsxs("div", { ref:
|
|
1659
|
+
/* @__PURE__ */ r.jsxs("div", { ref: m, className: j("content", c), children: [
|
|
1660
1660
|
/* @__PURE__ */ r.jsx(Ke, { options: { forceBlock: !0 }, children: c === "closed" ? a : s }),
|
|
1661
1661
|
c !== "closed" && o
|
|
1662
1662
|
] }),
|
|
@@ -1674,7 +1674,7 @@ const uo = ({ className: e = "", show: t = !1, hide: n = !1, text: s, children:
|
|
|
1674
1674
|
}
|
|
1675
1675
|
) })
|
|
1676
1676
|
] });
|
|
1677
|
-
}, Wr = () =>
|
|
1677
|
+
}, Wr = () => A.Fragment, zr = ({ children: e }) => /* @__PURE__ */ r.jsx(ke, { variant: "secondary", children: e }), Vr = ["span", "strong", "h1", "h2", "h3", "h4", "h5", "h6", "p"], Yr = ({ children: e }) => {
|
|
1678
1678
|
const t = P();
|
|
1679
1679
|
if (!e)
|
|
1680
1680
|
return null;
|
|
@@ -1682,13 +1682,13 @@ const uo = ({ className: e = "", show: t = !1, hide: n = !1, text: s, children:
|
|
|
1682
1682
|
const s = [];
|
|
1683
1683
|
for (const l of yt.toArray(e))
|
|
1684
1684
|
if (!(!l || typeof l == "string" || typeof l == "number"))
|
|
1685
|
-
if (
|
|
1685
|
+
if (A.isValidElement(l) && l.type === "summary") {
|
|
1686
1686
|
if (l.props && l.props.children) {
|
|
1687
|
-
for (const
|
|
1688
|
-
if (!(!
|
|
1689
|
-
const a =
|
|
1687
|
+
for (const m of yt.toArray(l.props.children))
|
|
1688
|
+
if (!(!m || typeof m == "string" || typeof m == "number") && A.isValidElement(m)) {
|
|
1689
|
+
const a = m.type;
|
|
1690
1690
|
if (Vr.includes(a)) {
|
|
1691
|
-
for (n =
|
|
1691
|
+
for (n = m.props.children; typeof n != "string" && (Array.isArray(n) && n[0].props && n[0].props.children && n[0].props.children[0]); )
|
|
1692
1692
|
n = n[0].props.children[0];
|
|
1693
1693
|
break;
|
|
1694
1694
|
}
|
|
@@ -1736,10 +1736,10 @@ const uo = ({ className: e = "", show: t = !1, hide: n = !1, text: s, children:
|
|
|
1736
1736
|
t.href && (t.href.includes("http:") || t.href.includes("https:")) && !t.target && (n.target = "_blank");
|
|
1737
1737
|
let s = e, o = !1;
|
|
1738
1738
|
for (const l of yt.toArray(e))
|
|
1739
|
-
if (!(!l || typeof l == "string" || typeof l == "number") &&
|
|
1740
|
-
const
|
|
1741
|
-
if (["button", "center", "span", "strong"].includes(
|
|
1742
|
-
for ((
|
|
1739
|
+
if (!(!l || typeof l == "string" || typeof l == "number") && A.isValidElement(l)) {
|
|
1740
|
+
const m = l.type;
|
|
1741
|
+
if (["button", "center", "span", "strong"].includes(m) && l.props && l.props.children && l.props.children[0])
|
|
1742
|
+
for ((m === "button" || tn(l.props.children[0]) === "button") && (o = !0), s = l.props.children[0]; s && typeof s != "string" && !(typeof s == "boolean" || typeof s == "number" || !A.isValidElement(s)); )
|
|
1743
1743
|
if (s.props && s.props.children && s.props.children[0])
|
|
1744
1744
|
s = s.props.children[0], s && tn(s) === "button" && (o = !0);
|
|
1745
1745
|
else
|
|
@@ -1750,7 +1750,7 @@ const uo = ({ className: e = "", show: t = !1, hide: n = !1, text: s, children:
|
|
|
1750
1750
|
const nn = ({ className: e = "", options: t = {}, children: n }) => {
|
|
1751
1751
|
n = n.replace(/^<br\/?>/, "");
|
|
1752
1752
|
const s = {
|
|
1753
|
-
wrapper:
|
|
1753
|
+
wrapper: A.Fragment,
|
|
1754
1754
|
forceBlock: !0,
|
|
1755
1755
|
overrides: {
|
|
1756
1756
|
a: Xr,
|
|
@@ -1770,11 +1770,11 @@ const nn = ({ className: e = "", options: t = {}, children: n }) => {
|
|
|
1770
1770
|
return /* @__PURE__ */ r.jsx("div", { className: j("markdown-text", e), children: /* @__PURE__ */ r.jsx(Ke, { options: { ...s, ...t }, children: n }) });
|
|
1771
1771
|
};
|
|
1772
1772
|
const qr = ({ size: e = "medium", variant: t = "default", className: n = "", children: s }) => /* @__PURE__ */ r.jsx("span", { className: j("pill", e, t, n), children: s });
|
|
1773
|
-
const $t = ({ element: e = "p", children: t = null, className: n = "", ...s }) =>
|
|
1773
|
+
const $t = ({ element: e = "p", children: t = null, className: n = "", ...s }) => A.createElement(e, { ...s, className: j("status-banner text-small", n), "aria-live": "assertive" }, t);
|
|
1774
1774
|
const Kr = ({ progress: e = 0, text: t = !1, className: n = "" }) => {
|
|
1775
1775
|
const s = P(), o = e > 75 ? 100 : e > 50 ? 75 : e > 25 ? 50 : e > 5 ? 25 : 0, l = { "--progress": `${e}%` };
|
|
1776
1776
|
return /* @__PURE__ */ r.jsx("span", { className: j(`progress-bar section-${o}`, n), style: l, children: /* @__PURE__ */ r.jsx(ne, { children: t ? `${e} ${t}` : s.formatMessage({ id: "progressBar" }, { number: e }) }) });
|
|
1777
|
-
}, es =
|
|
1777
|
+
}, es = Ae(Kr);
|
|
1778
1778
|
const dt = "loadingBlock_", ts = ({ progress: e = 0, steps: t = !1, className: n = "" }) => {
|
|
1779
1779
|
const s = P();
|
|
1780
1780
|
t || (t = {
|
|
@@ -1786,20 +1786,20 @@ const dt = "loadingBlock_", ts = ({ progress: e = 0, steps: t = !1, className: n
|
|
|
1786
1786
|
const l = Object.keys(t);
|
|
1787
1787
|
for (let a = 0; a < l.length && !(e < parseInt(l[a])); a++)
|
|
1788
1788
|
o = l[a];
|
|
1789
|
-
const
|
|
1789
|
+
const m = o && t[o].icon ? { "--icon": `url(${Et}icons/${t[o].icon}.svg)` } : {};
|
|
1790
1790
|
return /* @__PURE__ */ r.jsxs(
|
|
1791
1791
|
ke,
|
|
1792
1792
|
{
|
|
1793
1793
|
className: j("loading-block", n, { "has-icon": o && t[o].icon }),
|
|
1794
1794
|
variant: "subtle",
|
|
1795
|
-
style:
|
|
1795
|
+
style: m,
|
|
1796
1796
|
children: [
|
|
1797
1797
|
o && /* @__PURE__ */ r.jsx("span", { className: "step", children: t[o].text }),
|
|
1798
1798
|
/* @__PURE__ */ r.jsx(es, { progress: e })
|
|
1799
1799
|
]
|
|
1800
1800
|
}
|
|
1801
1801
|
);
|
|
1802
|
-
}, mo =
|
|
1802
|
+
}, mo = Ae(ts);
|
|
1803
1803
|
const be = ({ element: e = "div", className: t = "", ...n }) => /* @__PURE__ */ r.jsx(mn, { element: e, className: j("loading-placeholder", t), ...n });
|
|
1804
1804
|
const Tt = {
|
|
1805
1805
|
header: ["logo", "link", "link", "search"],
|
|
@@ -1819,7 +1819,7 @@ const Tt = {
|
|
|
1819
1819
|
if (s <= t * (o + 1))
|
|
1820
1820
|
return Qe[o];
|
|
1821
1821
|
};
|
|
1822
|
-
const rn = 256, Dt = ({ className: e = "", src: t = "", name: n, alt: s, width: o = rn, height: l = rn, ...
|
|
1822
|
+
const rn = 256, Dt = ({ className: e = "", src: t = "", name: n, alt: s, width: o = rn, height: l = rn, ...m }) => {
|
|
1823
1823
|
const [a, i] = D(!1), c = Z(null);
|
|
1824
1824
|
z(() => {
|
|
1825
1825
|
const f = c.current;
|
|
@@ -1832,7 +1832,7 @@ const rn = 256, Dt = ({ className: e = "", src: t = "", name: n, alt: s, width:
|
|
|
1832
1832
|
typeof window < "u" && window.devicePixelRatio && (f.width = h * window.devicePixelRatio, f.height = _ * window.devicePixelRatio, p.scale(window.devicePixelRatio, window.devicePixelRatio)), p.fillStyle = rs(n), p.fillRect(0, 0, h, _), p.font = `${h / 3}px Arial`, p.textAlign = "center", p.fillStyle = "white", p.fillText(wn(n), h / 2, _ / 1.6);
|
|
1833
1833
|
}, [n]);
|
|
1834
1834
|
let u = !1;
|
|
1835
|
-
return t && t !== "" && !a && (t.includes("http") || t.includes("//")) && (u = !0), /* @__PURE__ */ r.jsx("figure", { className: j("profile-picture", e, { error: a }), ...
|
|
1835
|
+
return t && t !== "" && !a && (t.includes("http") || t.includes("//")) && (u = !0), /* @__PURE__ */ r.jsx("figure", { className: j("profile-picture", e, { error: a }), ...m, children: u ? /* @__PURE__ */ r.jsx(
|
|
1836
1836
|
"img",
|
|
1837
1837
|
{
|
|
1838
1838
|
src: t,
|
|
@@ -1861,11 +1861,11 @@ const rn = 256, Dt = ({ className: e = "", src: t = "", name: n, alt: s, width:
|
|
|
1861
1861
|
country: n = "",
|
|
1862
1862
|
maximumCharacters: s = 80
|
|
1863
1863
|
}) => {
|
|
1864
|
-
const o = e !== "", l = t !== "",
|
|
1865
|
-
if (!o && !l && !
|
|
1864
|
+
const o = e !== "", l = t !== "", m = n !== "";
|
|
1865
|
+
if (!o && !l && !m)
|
|
1866
1866
|
return "";
|
|
1867
1867
|
const a = `${e}${o && l ? ` — ${t}` : t}`;
|
|
1868
|
-
let i = `${a}${(o || l) &&
|
|
1868
|
+
let i = `${a}${(o || l) && m ? `, ${n}` : n}`;
|
|
1869
1869
|
return i.length > s && (i = a), i.length > s && (i = Ct(i, s)), i;
|
|
1870
1870
|
};
|
|
1871
1871
|
const Pt = ({
|
|
@@ -1876,10 +1876,10 @@ const Pt = ({
|
|
|
1876
1876
|
gtmType: o = "member-click",
|
|
1877
1877
|
className: l = ""
|
|
1878
1878
|
}) => {
|
|
1879
|
-
const
|
|
1880
|
-
a.name || (a.name =
|
|
1879
|
+
const m = P(), a = kn(t);
|
|
1880
|
+
a.name || (a.name = m.formatMessage({ id: `member_${typeof t == "string" ? t : "community"}` }));
|
|
1881
1881
|
const { name: i, url: c, image: u } = a, f = ss(a), p = n && n.createdAt ? Mr(n.createdAt) : !1, h = n && n.createdAt ? Tr(n.createdAt) : "";
|
|
1882
|
-
return
|
|
1882
|
+
return A.createElement(e, {
|
|
1883
1883
|
className: j("member text-medium", l),
|
|
1884
1884
|
children: /* @__PURE__ */ r.jsxs(
|
|
1885
1885
|
nt,
|
|
@@ -1895,8 +1895,8 @@ const Pt = ({
|
|
|
1895
1895
|
/* @__PURE__ */ r.jsxs("p", { className: "details", children: [
|
|
1896
1896
|
/* @__PURE__ */ r.jsx("strong", { children: i }),
|
|
1897
1897
|
n && /* @__PURE__ */ r.jsxs("span", { className: "additional-content", children: [
|
|
1898
|
-
n.createdAt && p && /* @__PURE__ */ r.jsx("span", { className: "date", title: h, "aria-label": h, children:
|
|
1899
|
-
n.didEdit && /* @__PURE__ */ r.jsx("em", { children:
|
|
1898
|
+
n.createdAt && p && /* @__PURE__ */ r.jsx("span", { className: "date", title: h, "aria-label": h, children: m.formatMessage({ id: `dates_${p.path}` }, { number: p.number }) }),
|
|
1899
|
+
n.didEdit && /* @__PURE__ */ r.jsx("em", { children: m.formatMessage({ id: "discussion_edited" }) })
|
|
1900
1900
|
] }),
|
|
1901
1901
|
f && /* @__PURE__ */ r.jsx("small", { children: f })
|
|
1902
1902
|
] })
|
|
@@ -1908,16 +1908,16 @@ const Pt = ({
|
|
|
1908
1908
|
const sn = {
|
|
1909
1909
|
small: 24,
|
|
1910
1910
|
medium: 48
|
|
1911
|
-
}, os = ({ element: e = "div", contributors: { total: t, data: n } = { total: void 0, data: [] }, styling: { showText: s, size: o, showGap: l, showPlaceholders:
|
|
1911
|
+
}, os = ({ element: e = "div", contributors: { total: t, data: n } = { total: void 0, data: [] }, styling: { showText: s, size: o, showGap: l, showPlaceholders: m } = { showText: !0, size: "medium", showGap: !0, showPlaceholders: !1 }, cutoff: a = 2, className: i = "" }) => {
|
|
1912
1912
|
const c = P();
|
|
1913
|
-
return !n || n.length === 0 ? null :
|
|
1913
|
+
return !n || n.length === 0 ? null : A.createElement(
|
|
1914
1914
|
e,
|
|
1915
1915
|
{ className: j("contributors", i, o, { "has-gap": l }), children: /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
|
|
1916
1916
|
/* @__PURE__ */ r.jsx("ul", { children: n.map((u, f) => {
|
|
1917
1917
|
let p, h = "";
|
|
1918
1918
|
if (f < a) {
|
|
1919
1919
|
const { name: _ = "", image: v = "" } = kn(u);
|
|
1920
|
-
if (
|
|
1920
|
+
if (m)
|
|
1921
1921
|
return /* @__PURE__ */ r.jsx(be, { element: "li", className: "contributor" }, f);
|
|
1922
1922
|
p = /* @__PURE__ */ r.jsx(Dt, { name: _, src: v, width: sn[o || "medium"], height: sn[o || "medium"] });
|
|
1923
1923
|
} else if (f === a) {
|
|
@@ -1954,7 +1954,7 @@ function ls(e) {
|
|
|
1954
1954
|
var t = e.children, n = e.client, s = e.apiKey, o = e.options, l = qe(function() {
|
|
1955
1955
|
return n && s && 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 && o && 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 || (s && (Ge.__loaded && console.warn("[PostHog.js] was already loaded elsewhere. This may cause issues."), Ge.init(s, o)), Ge);
|
|
1956
1956
|
}, [n, s]);
|
|
1957
|
-
return
|
|
1957
|
+
return A.createElement(is.Provider, { value: { client: l } }, t);
|
|
1958
1958
|
}
|
|
1959
1959
|
const cs = ({ children: e, user: t }) => t.isLoading ? /* @__PURE__ */ r.jsx(r.Fragment, {}) : process.env.REACT_APP_PUBLIC_POSTHOG_KEY ? /* @__PURE__ */ r.jsx(
|
|
1960
1960
|
ls,
|
|
@@ -1987,7 +1987,7 @@ const cs = ({ children: e, user: t }) => t.isLoading ? /* @__PURE__ */ r.jsx(r.F
|
|
|
1987
1987
|
const mt = "joinCommunityButton", yn = ({ isMember: e = !1, isShort: t = !1, functions: { join: n, leave: s } = { join: () => {
|
|
1988
1988
|
}, leave: () => {
|
|
1989
1989
|
} } }) => {
|
|
1990
|
-
const o = P(), l = ye(je),
|
|
1990
|
+
const o = P(), l = ye(je), m = l && typeof l.id == "string", [a, i] = D(e), [c, u] = D(e ? "joined" : "notJoined");
|
|
1991
1991
|
z(() => {
|
|
1992
1992
|
c === "joining" ? u("joined") : c === "leaving" && u("notJoined");
|
|
1993
1993
|
}, [a]);
|
|
@@ -2000,31 +2000,61 @@ const mt = "joinCommunityButton", yn = ({ isMember: e = !1, isShort: t = !1, fun
|
|
|
2000
2000
|
styling: { fullWidth: !0 },
|
|
2001
2001
|
icon: a && c !== "leaving" ? { icon: "tick", position: "left" } : !1,
|
|
2002
2002
|
onClick: async (h) => {
|
|
2003
|
-
|
|
2003
|
+
m && (h.currentTarget.blur(), a ? (u("leaving"), typeof s == "function" && await s()) : (u("joining"), typeof n == "function" && await n()), i(!a));
|
|
2004
2004
|
},
|
|
2005
2005
|
className: j("join-community-button", c, { active: c === "joining" }),
|
|
2006
|
-
disabled: !
|
|
2006
|
+
disabled: !m,
|
|
2007
2007
|
...f,
|
|
2008
2008
|
children: /* @__PURE__ */ r.jsx("span", { className: "text", ...p, children: o.formatMessage({ id: `${mt}${["joining", "leaving"].includes(c) ? `_${c}` : a ? "_member" : t ? "_short" : ""}` }) })
|
|
2009
2009
|
}
|
|
2010
2010
|
);
|
|
2011
2011
|
};
|
|
2012
|
-
const ft = "communityDetails_", po = ({
|
|
2013
|
-
|
|
2012
|
+
const ft = "communityDetails_", po = ({
|
|
2013
|
+
isMember: e = !1,
|
|
2014
|
+
slug: t,
|
|
2015
|
+
members: { number: n, data: s } = { number: void 0, data: [] },
|
|
2016
|
+
className: o = "",
|
|
2017
|
+
onInviteClick: l,
|
|
2018
|
+
...m
|
|
2019
|
+
}) => {
|
|
2020
|
+
const a = P(), i = n || (s == null ? void 0 : s.length) || 0;
|
|
2014
2021
|
return /* @__PURE__ */ r.jsxs("div", { className: j("community-details", o), children: [
|
|
2015
2022
|
/* @__PURE__ */ r.jsx(Le, {}),
|
|
2016
2023
|
/* @__PURE__ */ r.jsxs("div", { className: "member-details", children: [
|
|
2017
2024
|
/* @__PURE__ */ r.jsxs("div", { className: "top", children: [
|
|
2018
2025
|
/* @__PURE__ */ r.jsxs("h3", { children: [
|
|
2019
|
-
|
|
2020
|
-
/* @__PURE__ */ r.jsx("span", { className: "count", children:
|
|
2026
|
+
a.formatMessage({ id: `${ft}members` }),
|
|
2027
|
+
/* @__PURE__ */ r.jsx("span", { className: "count", children: i })
|
|
2021
2028
|
] }),
|
|
2022
|
-
/* @__PURE__ */ r.jsx("p", { className: "text-small", children: /* @__PURE__ */ r.jsx("a", { href: `/communities/${t}/members`, children:
|
|
2029
|
+
/* @__PURE__ */ r.jsx("p", { className: "text-small", children: /* @__PURE__ */ r.jsx("a", { href: `/communities/${t}/members`, children: a.formatMessage({ id: `${ft}viewAll` }) }) })
|
|
2023
2030
|
] }),
|
|
2024
|
-
/* @__PURE__ */ r.jsx(
|
|
2031
|
+
/* @__PURE__ */ r.jsx(
|
|
2032
|
+
os,
|
|
2033
|
+
{
|
|
2034
|
+
contributors: {
|
|
2035
|
+
total: n,
|
|
2036
|
+
data: s != null && s.length ? s : [{}, {}, {}, {}, {}]
|
|
2037
|
+
},
|
|
2038
|
+
styling: {
|
|
2039
|
+
size: "medium",
|
|
2040
|
+
showGap: !0,
|
|
2041
|
+
showPlaceholders: i === 0
|
|
2042
|
+
},
|
|
2043
|
+
cutoff: 5
|
|
2044
|
+
}
|
|
2045
|
+
)
|
|
2025
2046
|
] }),
|
|
2026
|
-
/* @__PURE__ */ r.jsx(yn, { isMember: e, ...
|
|
2027
|
-
e && /* @__PURE__ */ r.jsx(
|
|
2047
|
+
/* @__PURE__ */ r.jsx(yn, { isMember: e, ...m }),
|
|
2048
|
+
e && /* @__PURE__ */ r.jsx(
|
|
2049
|
+
W,
|
|
2050
|
+
{
|
|
2051
|
+
variant: "primary",
|
|
2052
|
+
onClick: () => l(),
|
|
2053
|
+
icon: { icon: "plus" },
|
|
2054
|
+
styling: { fullWidth: !0 },
|
|
2055
|
+
children: a.formatMessage({ id: `${ft}invite` })
|
|
2056
|
+
}
|
|
2057
|
+
)
|
|
2028
2058
|
] });
|
|
2029
2059
|
};
|
|
2030
2060
|
const ho = ({
|
|
@@ -2035,9 +2065,9 @@ const ho = ({
|
|
|
2035
2065
|
const s = P();
|
|
2036
2066
|
return /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
|
|
2037
2067
|
/* @__PURE__ */ r.jsx(ne, { element: "p", children: s.formatMessage({ id: "breadcrumbs_label" }) }),
|
|
2038
|
-
/* @__PURE__ */ r.jsx("ul", { className: j("breadcrumbs text-small", n), children: e.map(({ text: o, href: l, current:
|
|
2039
|
-
|
|
2040
|
-
/* @__PURE__ */ r.jsx(nt, { href:
|
|
2068
|
+
/* @__PURE__ */ r.jsx("ul", { className: j("breadcrumbs text-small", n), children: e.map(({ text: o, href: l, current: m = !1 }, a) => /* @__PURE__ */ r.jsxs("li", { children: [
|
|
2069
|
+
m && /* @__PURE__ */ r.jsx(ne, { element: "span", children: s.formatMessage({ id: "breadcrumbs_currentPage" }) }),
|
|
2070
|
+
/* @__PURE__ */ r.jsx(nt, { href: m ? void 0 : l, children: Ct(o, t) })
|
|
2041
2071
|
] }, `${window.btoa(o)}_${a}`)) })
|
|
2042
2072
|
] });
|
|
2043
2073
|
};
|
|
@@ -2049,11 +2079,11 @@ const go = ({
|
|
|
2049
2079
|
},
|
|
2050
2080
|
className: o = ""
|
|
2051
2081
|
}) => {
|
|
2052
|
-
const l = P(),
|
|
2082
|
+
const l = P(), m = t ? [{ id: "all", text: typeof t != "boolean" && t.text || l.formatMessage({ id: "filters_all" }) }, ...e] : e, [a, i] = D(t ? ["all"] : []), c = (u, f) => {
|
|
2053
2083
|
let p = [];
|
|
2054
2084
|
a.includes(u) ? p = a.filter((h) => h !== u) : u === "all" ? p = ["all"] : n ? p = [...a.filter((h) => h !== "all"), u] : p = [u], i((h) => (s && typeof s == "function" && s({ current: p, previous: h }), p)), f && typeof f == "function" && f();
|
|
2055
2085
|
};
|
|
2056
|
-
return /* @__PURE__ */ r.jsx("ul", { className: j("filters", o), children:
|
|
2086
|
+
return /* @__PURE__ */ r.jsx("ul", { className: j("filters", o), children: m.map(({ id: u, text: f, disabled: p = !1, callback: h = () => {
|
|
2057
2087
|
} }) => {
|
|
2058
2088
|
let _ = {};
|
|
2059
2089
|
return p && (_ = { disabled: !0, "aria-label": l.formatMessage({ id: "filters_disabled" }, { name: f }) }), /* @__PURE__ */ r.jsx("li", { children: /* @__PURE__ */ r.jsx(
|
|
@@ -2085,7 +2115,7 @@ const pt = { en: "English", es: "Español", fr: "Français", pt: "Português" },
|
|
|
2085
2115
|
onChange: o = () => {
|
|
2086
2116
|
},
|
|
2087
2117
|
urlParts: l,
|
|
2088
|
-
variant:
|
|
2118
|
+
variant: m = "default",
|
|
2089
2119
|
label: a,
|
|
2090
2120
|
className: i = ""
|
|
2091
2121
|
}) => {
|
|
@@ -2095,9 +2125,9 @@ const pt = { en: "English", es: "Español", fr: "Français", pt: "Português" },
|
|
|
2095
2125
|
}, [e]), !s || !Object.values(s).some((v) => v && v.post_name))
|
|
2096
2126
|
return null;
|
|
2097
2127
|
const h = Object.keys(s), _ = u !== e;
|
|
2098
|
-
return /* @__PURE__ */ r.jsxs("div", { className: j("language-switcher text-small",
|
|
2128
|
+
return /* @__PURE__ */ r.jsxs("div", { className: j("language-switcher text-small", m, i), children: [
|
|
2099
2129
|
/* @__PURE__ */ r.jsxs("nav", { children: [
|
|
2100
|
-
|
|
2130
|
+
m !== "short" && /* @__PURE__ */ r.jsx("p", { children: a || c.formatMessage({ id: `${Ue}label` }) }),
|
|
2101
2131
|
/* @__PURE__ */ r.jsx("ul", { children: h.map((v) => {
|
|
2102
2132
|
if (!pt[v])
|
|
2103
2133
|
return null;
|
|
@@ -2110,9 +2140,9 @@ const pt = { en: "English", es: "Español", fr: "Français", pt: "Português" },
|
|
|
2110
2140
|
}
|
|
2111
2141
|
}, /* @__PURE__ */ r.jsx("li", { children: /* @__PURE__ */ r.jsx(nt, { ...g, fallbackElement: "span", children: pt[v] }) }, v);
|
|
2112
2142
|
}) }),
|
|
2113
|
-
|
|
2143
|
+
m !== "short" && !_ && /* @__PURE__ */ r.jsx("p", { children: c.formatMessage({ id: `${Ue}translation_${t ? "original" : n ? "human" : "machine"}` }) })
|
|
2114
2144
|
] }),
|
|
2115
|
-
|
|
2145
|
+
m !== "short" && !_ && !t && !n && /* @__PURE__ */ r.jsx("small", {
|
|
2116
2146
|
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
2117
2147
|
// @ts-ignore
|
|
2118
2148
|
// `values` are throwing a type error: https://github.com/formatjs/formatjs/issues/3633
|
|
@@ -2126,7 +2156,7 @@ const pt = { en: "English", es: "Español", fr: "Français", pt: "Português" },
|
|
|
2126
2156
|
})
|
|
2127
2157
|
] });
|
|
2128
2158
|
};
|
|
2129
|
-
const ht = lr({ locale: "en", messages:
|
|
2159
|
+
const ht = lr({ locale: "en", messages: Nt }), fs = ({
|
|
2130
2160
|
page: e = 1,
|
|
2131
2161
|
length: t = 0,
|
|
2132
2162
|
limit: n = 10,
|
|
@@ -2138,7 +2168,7 @@ const ht = lr({ locale: "en", messages: At }), fs = ({
|
|
|
2138
2168
|
endOfFeed: ht.formatMessage({ id: "loadMore_endOfFeed" }),
|
|
2139
2169
|
error: ht.formatMessage({ id: "loadMore_error" })
|
|
2140
2170
|
},
|
|
2141
|
-
className:
|
|
2171
|
+
className: m = "",
|
|
2142
2172
|
gtmContext: a = "LoadMore"
|
|
2143
2173
|
}) => {
|
|
2144
2174
|
const [i, c] = D(!1), [u, f] = D(!1);
|
|
@@ -2151,7 +2181,7 @@ const ht = lr({ locale: "en", messages: At }), fs = ({
|
|
|
2151
2181
|
_ instanceof Error && _.message && _.message.includes("Cannot read items") ? f(!0) : c(!0);
|
|
2152
2182
|
}
|
|
2153
2183
|
};
|
|
2154
|
-
return /* @__PURE__ */ r.jsxs("footer", { className: j("load-more",
|
|
2184
|
+
return /* @__PURE__ */ r.jsxs("footer", { className: j("load-more", m), children: [
|
|
2155
2185
|
i && /* @__PURE__ */ r.jsx("p", { className: "error", children: l.error }),
|
|
2156
2186
|
u ? /* @__PURE__ */ r.jsx("p", { children: l.endOfFeed }) : /* @__PURE__ */ r.jsx(
|
|
2157
2187
|
W,
|
|
@@ -2170,12 +2200,12 @@ const ht = lr({ locale: "en", messages: At }), fs = ({
|
|
|
2170
2200
|
};
|
|
2171
2201
|
let We = !1;
|
|
2172
2202
|
const ps = ({ element: e = "div", id: t = "more-menu", options: n, className: s = "" }) => {
|
|
2173
|
-
const o = P(), l = Z(null), [
|
|
2203
|
+
const o = P(), l = Z(null), [m, a] = D(!1), i = (c) => {
|
|
2174
2204
|
l.current && c.target instanceof HTMLElement && !l.current.contains(c.target) && a(!1);
|
|
2175
2205
|
};
|
|
2176
2206
|
return z(() => (document.addEventListener("click", i, !0), () => {
|
|
2177
2207
|
document.removeEventListener("click", i, !0);
|
|
2178
|
-
})),
|
|
2208
|
+
})), A.createElement(e, {
|
|
2179
2209
|
ref: l,
|
|
2180
2210
|
className: j("more-menu text-medium", s),
|
|
2181
2211
|
children: /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
|
|
@@ -2185,14 +2215,14 @@ const ps = ({ element: e = "div", id: t = "more-menu", options: n, className: s
|
|
|
2185
2215
|
variant: "tertiary",
|
|
2186
2216
|
size: "medium",
|
|
2187
2217
|
icon: { icon: "ellipsis" },
|
|
2188
|
-
onClick: () => a(!
|
|
2218
|
+
onClick: () => a(!m),
|
|
2189
2219
|
"aria-haspopup": "true",
|
|
2190
|
-
"aria-expanded":
|
|
2220
|
+
"aria-expanded": m,
|
|
2191
2221
|
"aria-controls": t,
|
|
2192
2222
|
screenreaderText: o.formatMessage({ id: "moreMenu" })
|
|
2193
2223
|
}
|
|
2194
2224
|
),
|
|
2195
|
-
/* @__PURE__ */ r.jsx("ul", { id: t, hidden: !
|
|
2225
|
+
/* @__PURE__ */ r.jsx("ul", { id: t, hidden: !m, children: n.map(({ href: c, onClick: u, text: f, icon: p, ...h }, _) => {
|
|
2196
2226
|
const v = {
|
|
2197
2227
|
...h,
|
|
2198
2228
|
onClick: (g) => {
|
|
@@ -2227,10 +2257,10 @@ const hs = {
|
|
|
2227
2257
|
}, xo = ({ layout: e = "2-1", hideOnMobile: t = !1, className: n = "", children: s }) => {
|
|
2228
2258
|
const o = et(!0);
|
|
2229
2259
|
let l = s;
|
|
2230
|
-
return
|
|
2260
|
+
return A.Children.count(s) === 1 && (l = A.Children.toArray(s)[0], l.props && (l = l.props.children)), /* @__PURE__ */ r.jsx("section", { className: j("columns", `layout-${e}`, n), children: A.Children.map(l, (m, a) => t !== !1 && a === t && o && o < hs[e] ? null : m) });
|
|
2231
2261
|
};
|
|
2232
2262
|
const gt = "cookieBanner_", _t = ["apol-cookie-banner", "apolitical-performance-cookie-consent", "functional-cookie-consent"], xt = new Date(Date.now() + 12 * 30 * 24 * 60 * 60 * 1e3), gs = () => {
|
|
2233
|
-
const e = P(), [t, n, s] = mr(_t), [o, l] = D(!t["apol-cookie-banner"]),
|
|
2263
|
+
const e = P(), [t, n, s] = mr(_t), [o, l] = D(!t["apol-cookie-banner"]), m = () => {
|
|
2234
2264
|
_t.forEach((u) => {
|
|
2235
2265
|
n(u, !0, {
|
|
2236
2266
|
path: "/",
|
|
@@ -2258,7 +2288,7 @@ const gt = "cookieBanner_", _t = ["apol-cookie-banner", "apolitical-performance-
|
|
|
2258
2288
|
const i = [
|
|
2259
2289
|
{ id: "settings", href: "/pages/cookie-policy", gtmType: "policy-page" },
|
|
2260
2290
|
{ id: "reject", onClick: a, gtmType: "reject-all" },
|
|
2261
|
-
{ id: "accept", onClick:
|
|
2291
|
+
{ id: "accept", onClick: m, gtmType: "accepted-all" }
|
|
2262
2292
|
], c = [];
|
|
2263
2293
|
return i.forEach((u) => {
|
|
2264
2294
|
c.push({
|
|
@@ -2377,15 +2407,15 @@ const Me = "footer_", Je = "SiteFooter", on = ({ group: e }) => {
|
|
|
2377
2407
|
Array.isArray(t) && t.length > 0 && /* @__PURE__ */ r.jsx("ul", { className: "text-medium", children: t.map((s) => {
|
|
2378
2408
|
if (["order", "child", "text"].includes(s))
|
|
2379
2409
|
return null;
|
|
2380
|
-
const { href: o, gtmType: l } = ve[e][s],
|
|
2381
|
-
return ["legal"].includes(e) && (
|
|
2410
|
+
const { href: o, gtmType: l } = ve[e][s], m = {};
|
|
2411
|
+
return ["legal"].includes(e) && (m.target = "_blank", m.rel = "noopener"), /* @__PURE__ */ r.jsx("li", { children: /* @__PURE__ */ r.jsx(
|
|
2382
2412
|
"a",
|
|
2383
2413
|
{
|
|
2384
2414
|
href: o,
|
|
2385
2415
|
className: "gtm-trackable",
|
|
2386
2416
|
"data-gtm-event-context": Je,
|
|
2387
2417
|
"data-gtm-event-type": l,
|
|
2388
|
-
...
|
|
2418
|
+
...m,
|
|
2389
2419
|
children: /* @__PURE__ */ r.jsx(we, { id: `${Me}${e}_${s}` })
|
|
2390
2420
|
}
|
|
2391
2421
|
) }, `${e}_${s}`);
|
|
@@ -2444,11 +2474,11 @@ const Me = "footer_", Je = "SiteFooter", on = ({ group: e }) => {
|
|
|
2444
2474
|
] })
|
|
2445
2475
|
] }) });
|
|
2446
2476
|
const ze = "emailHelperTextBox_", vo = ({ type: e, email: t, redirectPath: n, resendVerificationCode: s }) => {
|
|
2447
|
-
const o = P(), [l,
|
|
2477
|
+
const o = P(), [l, m] = D({ path: `${ze}default`, type: "default", link: {}, mail: {}, error: "" }), [a, i] = D(!1), c = Ee(
|
|
2448
2478
|
(h) => {
|
|
2449
2479
|
h.preventDefault(), h.stopPropagation();
|
|
2450
2480
|
const _ = (v) => {
|
|
2451
|
-
|
|
2481
|
+
m({
|
|
2452
2482
|
path: `${ze}error_verificationFailedToSend`,
|
|
2453
2483
|
type: "error",
|
|
2454
2484
|
link: {
|
|
@@ -2535,7 +2565,7 @@ const ze = "emailHelperTextBox_", vo = ({ type: e, email: t, redirectPath: n, re
|
|
|
2535
2565
|
};
|
|
2536
2566
|
break;
|
|
2537
2567
|
}
|
|
2538
|
-
|
|
2568
|
+
m({ ...l, path: h, type: _, link: v, mail: g });
|
|
2539
2569
|
},
|
|
2540
2570
|
/* eslint-disable react-hooks/exhaustive-deps */
|
|
2541
2571
|
[e]
|
|
@@ -2586,7 +2616,7 @@ const Ve = "passwordRules_", Sn = "isMoreThanEightCharacters", $n = "includesNum
|
|
|
2586
2616
|
] })
|
|
2587
2617
|
] }, `rule-${s}`)) })
|
|
2588
2618
|
] });
|
|
2589
|
-
}, bo =
|
|
2619
|
+
}, bo = Ae(xs);
|
|
2590
2620
|
const wo = ({
|
|
2591
2621
|
text: e = {},
|
|
2592
2622
|
topRating: t = 5,
|
|
@@ -2594,7 +2624,7 @@ const wo = ({
|
|
|
2594
2624
|
}, reportError: o = () => {
|
|
2595
2625
|
} },
|
|
2596
2626
|
className: l = "",
|
|
2597
|
-
hasLoaded:
|
|
2627
|
+
hasLoaded: m = !1
|
|
2598
2628
|
}) => {
|
|
2599
2629
|
const a = P(), [i, c] = D({ setUp: !1, id: null, rating: null, disabled: !0 }), u = async () => {
|
|
2600
2630
|
try {
|
|
@@ -2605,8 +2635,8 @@ const wo = ({
|
|
|
2605
2635
|
}
|
|
2606
2636
|
};
|
|
2607
2637
|
if (z(() => {
|
|
2608
|
-
|
|
2609
|
-
}, [
|
|
2638
|
+
m && !i.setUp && u();
|
|
2639
|
+
}, [m]), !m)
|
|
2610
2640
|
return /* @__PURE__ */ r.jsx(be, { className: "rating-placeholder" });
|
|
2611
2641
|
const { id: f, rating: p, disabled: h } = i, _ = "ratings_", v = {
|
|
2612
2642
|
text: a.formatMessage({ id: `${_}text` }),
|
|
@@ -2655,10 +2685,10 @@ const vs = ({
|
|
|
2655
2685
|
gtmContext: o = "search-bar",
|
|
2656
2686
|
gtmEvent: l = "form-submission"
|
|
2657
2687
|
}) => {
|
|
2658
|
-
const { searchIsOpen:
|
|
2688
|
+
const { searchIsOpen: m = !0, isDesktopVersion: a = !1 } = n || {}, i = P(), c = Z(null);
|
|
2659
2689
|
Ce(() => {
|
|
2660
|
-
!n || a || !
|
|
2661
|
-
}, [
|
|
2690
|
+
!n || a || !m || c.current && c.current.focus();
|
|
2691
|
+
}, [m]);
|
|
2662
2692
|
const u = (f) => {
|
|
2663
2693
|
f.preventDefault(), f.stopPropagation(), !(!c.current || !c.current.value || c.current.value.length < 1) && (window.location.href = `/search?search=${encodeURIComponent(c.current.value)}`);
|
|
2664
2694
|
};
|
|
@@ -2669,7 +2699,7 @@ const vs = ({
|
|
|
2669
2699
|
className: j("search-form gtm-trackable", t),
|
|
2670
2700
|
"data-gtm-event-context": o,
|
|
2671
2701
|
"data-gtm-event-type": l,
|
|
2672
|
-
children: /* @__PURE__ */ r.jsx("fieldset", { id: `${e}-form`, hidden: n ? !
|
|
2702
|
+
children: /* @__PURE__ */ r.jsx("fieldset", { id: `${e}-form`, hidden: n ? !m : !1, role: "search", children: /* @__PURE__ */ r.jsxs("p", { children: [
|
|
2673
2703
|
/* @__PURE__ */ r.jsx(ne, { element: "label", htmlFor: e, children: i.formatMessage({ id: "search_label" }) }),
|
|
2674
2704
|
/* @__PURE__ */ r.jsx(
|
|
2675
2705
|
"input",
|
|
@@ -2707,7 +2737,7 @@ const bs = ({
|
|
|
2707
2737
|
titleColor: s,
|
|
2708
2738
|
labelColor: o,
|
|
2709
2739
|
backgroundColor: l,
|
|
2710
|
-
onClose:
|
|
2740
|
+
onClose: m,
|
|
2711
2741
|
reportError: a,
|
|
2712
2742
|
sendInvites: i,
|
|
2713
2743
|
initialFormStatus: c = "NOT_SUBMITTED"
|
|
@@ -2732,7 +2762,7 @@ const bs = ({
|
|
|
2732
2762
|
/* NOT_SUBMITTED */
|
|
2733
2763
|
), h(!0), f([]);
|
|
2734
2764
|
}, $ = (T) => {
|
|
2735
|
-
T.preventDefault(),
|
|
2765
|
+
T.preventDefault(), m(), v(
|
|
2736
2766
|
"CLOSED"
|
|
2737
2767
|
/* CLOSED */
|
|
2738
2768
|
);
|
|
@@ -2800,8 +2830,8 @@ const bs = ({
|
|
|
2800
2830
|
navigation: { loggedIn: 769, loggedOut: 881 },
|
|
2801
2831
|
search: { loggedIn: 961, loggedOut: 1121 }
|
|
2802
2832
|
}, s = (l) => {
|
|
2803
|
-
const
|
|
2804
|
-
return t >= n[l][
|
|
2833
|
+
const m = `logged${e ? "In" : "Out"}`;
|
|
2834
|
+
return t >= n[l][m];
|
|
2805
2835
|
};
|
|
2806
2836
|
let o = {};
|
|
2807
2837
|
return ["navigation", "search"].forEach((l) => {
|
|
@@ -2819,8 +2849,8 @@ const bs = ({
|
|
|
2819
2849
|
return;
|
|
2820
2850
|
I.handlerCalled[e] = o;
|
|
2821
2851
|
let l = [{ type: `menus.${e}`, value: t }];
|
|
2822
|
-
t === !0 && Object.keys(n).forEach((
|
|
2823
|
-
|
|
2852
|
+
t === !0 && Object.keys(n).forEach((m) => {
|
|
2853
|
+
m === e || n[m] === !1 || l.push({ type: `menus.${m}`, value: !1 });
|
|
2824
2854
|
}), s(l);
|
|
2825
2855
|
},
|
|
2826
2856
|
// Find the first child inside a ref that matches the `key` (and optional `value`) we're looking for,
|
|
@@ -2852,7 +2882,7 @@ const bs = ({
|
|
|
2852
2882
|
s[e][l].focus();
|
|
2853
2883
|
return;
|
|
2854
2884
|
}
|
|
2855
|
-
let
|
|
2885
|
+
let m, a;
|
|
2856
2886
|
switch (e) {
|
|
2857
2887
|
case "navigation":
|
|
2858
2888
|
if (n) {
|
|
@@ -2861,20 +2891,20 @@ const bs = ({
|
|
|
2861
2891
|
"attributes.aria-controls",
|
|
2862
2892
|
"navigation"
|
|
2863
2893
|
);
|
|
2864
|
-
|
|
2894
|
+
m = I.findFirstChild(i.children, "href");
|
|
2865
2895
|
} else
|
|
2866
|
-
|
|
2867
|
-
|
|
2896
|
+
m = I.findFirstChild(t.current.children, "href");
|
|
2897
|
+
m || (m = t.current);
|
|
2868
2898
|
break;
|
|
2869
2899
|
case "account":
|
|
2870
2900
|
if (a = I.findFirstChild(t.current.children, "className", "account"), !a || !a.children)
|
|
2871
2901
|
return;
|
|
2872
|
-
|
|
2902
|
+
m = I.findFirstChild(a.children, "href");
|
|
2873
2903
|
break;
|
|
2874
2904
|
default:
|
|
2875
2905
|
return;
|
|
2876
2906
|
}
|
|
2877
|
-
|
|
2907
|
+
m && (o([{ type: `focusElements.${e}.${l}`, value: m }]), m.focus());
|
|
2878
2908
|
},
|
|
2879
2909
|
events: {
|
|
2880
2910
|
onClick: (e, { id: t, callback: n, isOpen: s }) => {
|
|
@@ -2977,7 +3007,7 @@ const bs = ({
|
|
|
2977
3007
|
},
|
|
2978
3008
|
doTrack: l = null
|
|
2979
3009
|
}) => {
|
|
2980
|
-
const
|
|
3010
|
+
const m = P(), a = un(Xe, e);
|
|
2981
3011
|
if (!a || a.onlyShow && (a.onlyShow === "logged-in" && !t || a.onlyShow === "logged-out" && t))
|
|
2982
3012
|
return null;
|
|
2983
3013
|
const i = "doTrack" in a, c = l === null ? i ? a.doTrack : !0 : l, u = e.includes("buttons.");
|
|
@@ -3031,7 +3061,7 @@ const bs = ({
|
|
|
3031
3061
|
});
|
|
3032
3062
|
}
|
|
3033
3063
|
return /* @__PURE__ */ r.jsxs("li", { className: j({ [a.className]: a.className, "has-submenu": h, parent: _, active: v }), role: "none", ...g, children: [
|
|
3034
|
-
p ?
|
|
3064
|
+
p ? A.createElement(u ? W : "a", p, m.formatMessage({ id: f })) : m.formatMessage({ id: f }),
|
|
3035
3065
|
a.order && /* @__PURE__ */ r.jsx("ul", { ...E, children: a.order.map((x) => {
|
|
3036
3066
|
if (!a[x])
|
|
3037
3067
|
return null;
|
|
@@ -3043,7 +3073,7 @@ const bs = ({
|
|
|
3043
3073
|
doTrack: i ? c : null
|
|
3044
3074
|
};
|
|
3045
3075
|
return a[x].order ? /* @__PURE__ */ r.jsxs("li", { className: j({ [a[x].className]: a[x].className }), children: [
|
|
3046
|
-
|
|
3076
|
+
m.formatMessage({ id: `${f}_${x}` }),
|
|
3047
3077
|
/* @__PURE__ */ r.jsx("ul", { children: a[x].order.map((T) => /* @__PURE__ */ r.jsx(Ze, { id: `${e}.${x}.${T}`, ...$ }, T)) })
|
|
3048
3078
|
] }, x) : /* @__PURE__ */ r.jsx(Ze, { id: `${e}.${x}`, ...$ }, x);
|
|
3049
3079
|
}) })
|
|
@@ -3053,7 +3083,7 @@ const ws = { height: 67, height_desktop: 83 }, Mn = () => {
|
|
|
3053
3083
|
const e = P(), t = ye(je), n = et(!0, !0), s = t && typeof t.id == "string", o = qe(
|
|
3054
3084
|
() => I.getIsDesktopVersion(s, n),
|
|
3055
3085
|
[s, n]
|
|
3056
|
-
), [l,
|
|
3086
|
+
), [l, m] = rr($r, {
|
|
3057
3087
|
headerIsVisible: !0,
|
|
3058
3088
|
menus: { navigation: !1, search: !1, account: !1 },
|
|
3059
3089
|
focusElements: {
|
|
@@ -3065,15 +3095,15 @@ const ws = { height: 67, height_desktop: 83 }, Mn = () => {
|
|
|
3065
3095
|
scrollPosition: ws[`height${o.navigation ? "_desktop" : ""}`],
|
|
3066
3096
|
callbacks: {
|
|
3067
3097
|
scrollUp: () => {
|
|
3068
|
-
!o && i.navigation || I.shouldChangeHeaderIsVisible(!0, i,
|
|
3098
|
+
!o && i.navigation || I.shouldChangeHeaderIsVisible(!0, i, m);
|
|
3069
3099
|
},
|
|
3070
3100
|
scrollDown: () => {
|
|
3071
|
-
!o && i.navigation || I.shouldChangeHeaderIsVisible(!1, i,
|
|
3101
|
+
!o && i.navigation || I.shouldChangeHeaderIsVisible(!1, i, m);
|
|
3072
3102
|
}
|
|
3073
3103
|
}
|
|
3074
3104
|
});
|
|
3075
3105
|
const u = (p, h) => {
|
|
3076
|
-
I.handleMenus({ id: p, value: h, menus: i, dispatch:
|
|
3106
|
+
I.handleMenus({ id: p, value: h, menus: i, dispatch: m });
|
|
3077
3107
|
}, f = Z(null);
|
|
3078
3108
|
return Ce(() => {
|
|
3079
3109
|
i.navigation && I.autoFocus({
|
|
@@ -3081,7 +3111,7 @@ const ws = { height: 67, height_desktop: 83 }, Mn = () => {
|
|
|
3081
3111
|
navigationRef: f,
|
|
3082
3112
|
isDesktopVersion: o.navigation,
|
|
3083
3113
|
focusElements: c,
|
|
3084
|
-
dispatch:
|
|
3114
|
+
dispatch: m
|
|
3085
3115
|
});
|
|
3086
3116
|
}, [i.navigation]), Ce(() => {
|
|
3087
3117
|
i.account && I.autoFocus({
|
|
@@ -3089,7 +3119,7 @@ const ws = { height: 67, height_desktop: 83 }, Mn = () => {
|
|
|
3089
3119
|
navigationRef: f,
|
|
3090
3120
|
isDesktopVersion: o.navigation,
|
|
3091
3121
|
focusElements: c,
|
|
3092
|
-
dispatch:
|
|
3122
|
+
dispatch: m
|
|
3093
3123
|
});
|
|
3094
3124
|
}, [i.account]), t && t.isLoading ? null : /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
|
|
3095
3125
|
/* @__PURE__ */ r.jsxs("nav", { id: "header", className: j({ "logged-in": s, "logged-out": !s, visible: a }), children: [
|
|
@@ -3183,18 +3213,18 @@ const ks = () => {
|
|
|
3183
3213
|
const e = P();
|
|
3184
3214
|
return /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
|
|
3185
3215
|
/* @__PURE__ */ r.jsx(Mn, {}),
|
|
3186
|
-
/* @__PURE__ */ r.jsx("div", {
|
|
3216
|
+
/* @__PURE__ */ r.jsx("div", { id: "content", children: /* @__PURE__ */ r.jsx(rt, { variant: "error", text: e.formatMessage({ id: "pageLayout_error" }) }) }),
|
|
3187
3217
|
/* @__PURE__ */ r.jsx(En, {})
|
|
3188
3218
|
] });
|
|
3189
3219
|
}, ko = ({ children: e, reportError: t, showFooter: n = !0, background: s = "default", className: o = "", locale: l = "en" }) => {
|
|
3190
|
-
const
|
|
3220
|
+
const m = jr();
|
|
3191
3221
|
z(() => {
|
|
3192
3222
|
window.scrollTo(0, 0);
|
|
3193
|
-
}, [
|
|
3223
|
+
}, [m]);
|
|
3194
3224
|
const a = gn(e, { locale: l });
|
|
3195
3225
|
return /* @__PURE__ */ r.jsx(hr, { onError: t, fallback: /* @__PURE__ */ r.jsx(ks, {}), children: /* @__PURE__ */ r.jsx(sr, { fallback: /* @__PURE__ */ r.jsx(ns, { layout: "overview-page" }), children: /* @__PURE__ */ r.jsx("div", { id: "wrapper", className: j(o, { [s]: s !== "default" }), children: /* @__PURE__ */ r.jsxs(fr, { children: [
|
|
3196
3226
|
/* @__PURE__ */ r.jsx(Mn, {}),
|
|
3197
|
-
/* @__PURE__ */ r.jsx("div", {
|
|
3227
|
+
/* @__PURE__ */ r.jsx("div", { id: "content", children: a }),
|
|
3198
3228
|
n && /* @__PURE__ */ r.jsx(En, {}),
|
|
3199
3229
|
/* @__PURE__ */ r.jsx(gs, {})
|
|
3200
3230
|
] }) }) }) });
|
|
@@ -3236,7 +3266,7 @@ const yo = ({
|
|
|
3236
3266
|
canHaveLinks: s = !0,
|
|
3237
3267
|
className: o = "",
|
|
3238
3268
|
gtmType: l = "tag-click",
|
|
3239
|
-
gtmContext:
|
|
3269
|
+
gtmContext: m = "tags"
|
|
3240
3270
|
}) => {
|
|
3241
3271
|
const a = P();
|
|
3242
3272
|
if (!e || e.length < 1)
|
|
@@ -3255,7 +3285,7 @@ const yo = ({
|
|
|
3255
3285
|
href: c.href,
|
|
3256
3286
|
className: "gtm-trackable",
|
|
3257
3287
|
"data-gtm-event-type": l,
|
|
3258
|
-
"data-gtm-event-context":
|
|
3288
|
+
"data-gtm-event-context": m,
|
|
3259
3289
|
children: u
|
|
3260
3290
|
}
|
|
3261
3291
|
) : u }, c.id);
|
|
@@ -3268,15 +3298,15 @@ const jo = ({
|
|
|
3268
3298
|
gtmType: o = "member-click",
|
|
3269
3299
|
className: l = ""
|
|
3270
3300
|
}) => {
|
|
3271
|
-
const
|
|
3301
|
+
const m = P();
|
|
3272
3302
|
return t.length === 0 ? null : (e || (e = t.length), /* @__PURE__ */ r.jsxs("div", { className: j("members-list", l), children: [
|
|
3273
3303
|
/* @__PURE__ */ r.jsxs("h1", { children: [
|
|
3274
|
-
|
|
3304
|
+
m.formatMessage({ id: "membersList" }),
|
|
3275
3305
|
/* @__PURE__ */ r.jsx("span", { className: "count", children: e })
|
|
3276
3306
|
] }),
|
|
3277
3307
|
/* @__PURE__ */ r.jsx("ul", { children: t.map((a, i) => /* @__PURE__ */ r.jsxs("li", { children: [
|
|
3278
3308
|
/* @__PURE__ */ r.jsx(Pt, { member: a, gtmContext: s, gtmType: o }),
|
|
3279
|
-
a.isAdmin && /* @__PURE__ */ r.jsx(qr, { children:
|
|
3309
|
+
a.isAdmin && /* @__PURE__ */ r.jsx(qr, { children: m.formatMessage({ id: "membersList_admin" }) })
|
|
3280
3310
|
] }, i)) }),
|
|
3281
3311
|
n && /* @__PURE__ */ r.jsx(
|
|
3282
3312
|
fs,
|
|
@@ -3301,7 +3331,7 @@ const ae = "discussion_form_", Cn = ({
|
|
|
3301
3331
|
inputRef: s,
|
|
3302
3332
|
maxLength: o = 5e4,
|
|
3303
3333
|
minRows: l = 4,
|
|
3304
|
-
forceShow:
|
|
3334
|
+
forceShow: m = {
|
|
3305
3335
|
cancel: !1,
|
|
3306
3336
|
error: !1
|
|
3307
3337
|
},
|
|
@@ -3323,7 +3353,7 @@ const ae = "discussion_form_", Cn = ({
|
|
|
3323
3353
|
var F, q;
|
|
3324
3354
|
const c = P(), u = ye(je), [f, p] = D(
|
|
3325
3355
|
n.isEditing && n.isEditing.text || ""
|
|
3326
|
-
), [h, _] = D(
|
|
3356
|
+
), [h, _] = D(m.error || !1), [v, g] = D(!1), E = Z(null);
|
|
3327
3357
|
if (s || (s = E), n.isLoading)
|
|
3328
3358
|
return /* @__PURE__ */ r.jsx(
|
|
3329
3359
|
be,
|
|
@@ -3410,14 +3440,14 @@ const ae = "discussion_form_", Cn = ({
|
|
|
3410
3440
|
_(!1), g(!1);
|
|
3411
3441
|
}, 5e3);
|
|
3412
3442
|
}, Q = !f || !Rr(f), V = v === "submitting", w = [];
|
|
3413
|
-
return (n.isEditing && !V ||
|
|
3443
|
+
return (n.isEditing && !V || m.cancel) && w.push({
|
|
3414
3444
|
variant: "secondary",
|
|
3415
3445
|
size: { mobile: "small", 600: "medium" },
|
|
3416
3446
|
onClick: a.handleCancel,
|
|
3417
3447
|
className: "gtm-trackable",
|
|
3418
3448
|
"data-gtm-event-context": i,
|
|
3419
3449
|
"data-gtm-event-type": `cancel-${e.type}-click`,
|
|
3420
|
-
disabled: !
|
|
3450
|
+
disabled: !m.cancel && (!u || !u.id || !f),
|
|
3421
3451
|
children: c.formatMessage({ id: `${ae}cancel` })
|
|
3422
3452
|
}), w.push({
|
|
3423
3453
|
variant: "primary",
|
|
@@ -3495,7 +3525,7 @@ const ae = "discussion_form_", Cn = ({
|
|
|
3495
3525
|
}) }),
|
|
3496
3526
|
/* @__PURE__ */ r.jsx(tt, { buttons: w }),
|
|
3497
3527
|
v === "submitted" && /* @__PURE__ */ r.jsx($t, { className: "success", "data-testid": "success", children: he(c.formatMessage, `${ae}success`, e.type, "action") }),
|
|
3498
|
-
h && /* @__PURE__ */ r.jsx($t, { id: "error-message", className: "error", "data-testid": "error", children:
|
|
3528
|
+
h && /* @__PURE__ */ r.jsx($t, { id: "error-message", className: "error", "data-testid": "error", children: m.error ? m.error : typeof h == "string" ? h.includes(" ") ? h : c.formatMessage(
|
|
3499
3529
|
{ id: h },
|
|
3500
3530
|
{
|
|
3501
3531
|
action: c.formatMessage({
|
|
@@ -3507,14 +3537,14 @@ const ae = "discussion_form_", Cn = ({
|
|
|
3507
3537
|
]
|
|
3508
3538
|
}
|
|
3509
3539
|
);
|
|
3510
|
-
},
|
|
3540
|
+
}, An = ({
|
|
3511
3541
|
contentType: e,
|
|
3512
3542
|
createPost: t,
|
|
3513
|
-
membershipRequiredToPost: { isMember: n, required: s, join: o, leave: l, notMemberStateText:
|
|
3543
|
+
membershipRequiredToPost: { isMember: n, required: s, join: o, leave: l, notMemberStateText: m }
|
|
3514
3544
|
}) => s && !n ? /* @__PURE__ */ r.jsx(
|
|
3515
3545
|
rt,
|
|
3516
3546
|
{
|
|
3517
|
-
text:
|
|
3547
|
+
text: m,
|
|
3518
3548
|
button: {
|
|
3519
3549
|
component: /* @__PURE__ */ r.jsx(yn, { functions: { join: o, leave: l } })
|
|
3520
3550
|
}
|
|
@@ -3530,12 +3560,12 @@ const ae = "discussion_form_", Cn = ({
|
|
|
3530
3560
|
), js = {
|
|
3531
3561
|
showThread: !1,
|
|
3532
3562
|
showForm: !1
|
|
3533
|
-
},
|
|
3563
|
+
}, Nn = Mt(js), Eo = ({ children: e }) => {
|
|
3534
3564
|
const [t, n] = D({
|
|
3535
3565
|
showThread: !1,
|
|
3536
3566
|
showForm: !1
|
|
3537
3567
|
});
|
|
3538
|
-
return /* @__PURE__ */ r.jsx(
|
|
3568
|
+
return /* @__PURE__ */ r.jsx(Nn.Provider, { value: { ...t, updateConversation: n }, children: e });
|
|
3539
3569
|
}, Es = ({
|
|
3540
3570
|
question: e,
|
|
3541
3571
|
answer: t,
|
|
@@ -3555,7 +3585,7 @@ const bt = () => {
|
|
|
3555
3585
|
isShort: s = !0,
|
|
3556
3586
|
userLiked: o = !1,
|
|
3557
3587
|
content: l = { type: "reply", slugs: {} },
|
|
3558
|
-
canLike:
|
|
3588
|
+
canLike: m = !0,
|
|
3559
3589
|
functions: { createLike: a = () => {
|
|
3560
3590
|
}, deleteLike: i = () => {
|
|
3561
3591
|
} } = {}
|
|
@@ -3567,11 +3597,11 @@ const bt = () => {
|
|
|
3567
3597
|
const [u, f] = D(t), [p, h] = D(o), [_, v] = D(!1), [g, E] = D(!1), x = qe(() => Ss(n, wt), [n]), $ = (M) => {
|
|
3568
3598
|
if (M.preventDefault(), M.stopPropagation(), E(!1), Oe)
|
|
3569
3599
|
return bt(), !1;
|
|
3570
|
-
if (bt(), _ || !
|
|
3600
|
+
if (bt(), _ || !m)
|
|
3571
3601
|
return !1;
|
|
3572
3602
|
Oe = setTimeout(T, 350);
|
|
3573
3603
|
}, T = async () => {
|
|
3574
|
-
if (bt(), _ || !
|
|
3604
|
+
if (bt(), _ || !m)
|
|
3575
3605
|
return !1;
|
|
3576
3606
|
let M = p ? u - 1 : u + 1;
|
|
3577
3607
|
M < 0 && (M = 0), v(!0), f(M), h(!p);
|
|
@@ -3586,10 +3616,10 @@ const bt = () => {
|
|
|
3586
3616
|
v(!1);
|
|
3587
3617
|
}
|
|
3588
3618
|
};
|
|
3589
|
-
return
|
|
3619
|
+
return A.createElement(
|
|
3590
3620
|
e,
|
|
3591
3621
|
{
|
|
3592
|
-
className: j("likes-wrapper text-medium action-button", { "show-spinner": _, "is-liked": p, disabled: !
|
|
3622
|
+
className: j("likes-wrapper text-medium action-button", { "show-spinner": _, "is-liked": p, disabled: !m }),
|
|
3593
3623
|
onClick: $,
|
|
3594
3624
|
onMouseEnter: () => {
|
|
3595
3625
|
E(!0);
|
|
@@ -3611,12 +3641,12 @@ const bt = () => {
|
|
|
3611
3641
|
size: "medium",
|
|
3612
3642
|
icon: { icon: p ? "heart" : "heart_empty", animate: "bounce" },
|
|
3613
3643
|
className: j({ "do-animation": p && !o }),
|
|
3614
|
-
screenreaderText:
|
|
3644
|
+
screenreaderText: m ? c.formatMessage({
|
|
3615
3645
|
id: `discussion_likes_${p ? "unlike" : "like"}`
|
|
3616
3646
|
}, { action: c.formatMessage({ id: `discussion_action_${l.type}` }) }) : !1,
|
|
3617
3647
|
onClick: $,
|
|
3618
|
-
disabled: !
|
|
3619
|
-
"aria-hidden": !
|
|
3648
|
+
disabled: !m,
|
|
3649
|
+
"aria-hidden": !m,
|
|
3620
3650
|
"data-testid": "like-button",
|
|
3621
3651
|
"data-gtm-event-context": "Likes",
|
|
3622
3652
|
"data-gtm-event-type": `like-${l.type}-click`
|
|
@@ -3631,7 +3661,7 @@ const bt = () => {
|
|
|
3631
3661
|
}
|
|
3632
3662
|
);
|
|
3633
3663
|
};
|
|
3634
|
-
const Ts = ({ element: e = "section", children: t, className: n, ...s }) =>
|
|
3664
|
+
const Ts = ({ element: e = "section", children: t, className: n, ...s }) => A.createElement(
|
|
3635
3665
|
e,
|
|
3636
3666
|
{
|
|
3637
3667
|
className: j("modal", n),
|
|
@@ -3647,7 +3677,7 @@ const Dn = ({
|
|
|
3647
3677
|
functions: { onOpen: o = () => {
|
|
3648
3678
|
}, onClose: l = () => {
|
|
3649
3679
|
} } = {},
|
|
3650
|
-
forceShow: { error:
|
|
3680
|
+
forceShow: { error: m = !1 } = {},
|
|
3651
3681
|
title: a,
|
|
3652
3682
|
children: i,
|
|
3653
3683
|
buttons: c,
|
|
@@ -3691,7 +3721,7 @@ const Dn = ({
|
|
|
3691
3721
|
/* @__PURE__ */ r.jsx(Le, {}),
|
|
3692
3722
|
/* @__PURE__ */ r.jsx(tt, { buttons: c })
|
|
3693
3723
|
] }),
|
|
3694
|
-
|
|
3724
|
+
m && /* @__PURE__ */ r.jsx($t, { className: "error", children: m })
|
|
3695
3725
|
] })
|
|
3696
3726
|
}
|
|
3697
3727
|
) });
|
|
@@ -3707,7 +3737,7 @@ const So = ({
|
|
|
3707
3737
|
formTitle: s = "Know someone who might like to join this workshop?",
|
|
3708
3738
|
formLabel: o = "Send an invitation to your colleagues below",
|
|
3709
3739
|
ctaMessage: l = "Send invites",
|
|
3710
|
-
showIcon:
|
|
3740
|
+
showIcon: m,
|
|
3711
3741
|
onClose: a,
|
|
3712
3742
|
reportError: i = () => {
|
|
3713
3743
|
},
|
|
@@ -3718,7 +3748,8 @@ const So = ({
|
|
|
3718
3748
|
title: n,
|
|
3719
3749
|
isOpen: t,
|
|
3720
3750
|
showDivider: !1,
|
|
3721
|
-
showIcon:
|
|
3751
|
+
showIcon: m,
|
|
3752
|
+
functions: { onClose: a },
|
|
3722
3753
|
className: j("invite-modal", e, { success: !!n }),
|
|
3723
3754
|
children: /* @__PURE__ */ r.jsx(
|
|
3724
3755
|
bs,
|
|
@@ -3743,7 +3774,7 @@ const xe = "discussion_", Rt = ({
|
|
|
3743
3774
|
isLoading: s = !1,
|
|
3744
3775
|
originalAuthorId: o,
|
|
3745
3776
|
functions: {
|
|
3746
|
-
content: { createContent: l, deleteContent:
|
|
3777
|
+
content: { createContent: l, deleteContent: m, updateContent: a } = { createContent: () => {
|
|
3747
3778
|
}, deleteContent: () => {
|
|
3748
3779
|
}, updateContent: () => {
|
|
3749
3780
|
} },
|
|
@@ -3758,7 +3789,7 @@ const xe = "discussion_", Rt = ({
|
|
|
3758
3789
|
gtmContext: h = "DiscussionAnswer",
|
|
3759
3790
|
children: _
|
|
3760
3791
|
}) => {
|
|
3761
|
-
const v = P(), g = ye(je), E = ye(
|
|
3792
|
+
const v = P(), g = ye(je), E = ye(Nn), [x, $] = D({
|
|
3762
3793
|
body: t && t.body || "",
|
|
3763
3794
|
isEditing: !1,
|
|
3764
3795
|
didEdit: t && t.isEdited || !1
|
|
@@ -3789,7 +3820,7 @@ const xe = "discussion_", Rt = ({
|
|
|
3789
3820
|
}, 0);
|
|
3790
3821
|
}, le = () => {
|
|
3791
3822
|
try {
|
|
3792
|
-
|
|
3823
|
+
m(ln(t.slugs));
|
|
3793
3824
|
} catch {
|
|
3794
3825
|
V("delete-error");
|
|
3795
3826
|
}
|
|
@@ -3827,7 +3858,7 @@ const xe = "discussion_", Rt = ({
|
|
|
3827
3858
|
"data-gtm-event-type": `delete-${t.type}-click`,
|
|
3828
3859
|
...Ms(`delete-${t.slug}-modal`, T)
|
|
3829
3860
|
}
|
|
3830
|
-
),
|
|
3861
|
+
), A.createElement(e, {
|
|
3831
3862
|
className: j("discussion-post", p),
|
|
3832
3863
|
"data-testid": `discussion-${t.type}-thread`,
|
|
3833
3864
|
children: /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
|
|
@@ -3871,7 +3902,7 @@ const xe = "discussion_", Rt = ({
|
|
|
3871
3902
|
},
|
|
3872
3903
|
gtmContext: `${h}Form`
|
|
3873
3904
|
}
|
|
3874
|
-
) : f.post ? /* @__PURE__ */ r.jsx("a", { href: f.post, className: "gtm-trackable", "data-gtm-event-context": h, "data-gtm-event-type": "title-click", children: /* @__PURE__ */ r.jsx(nn, { options: { overrides: { a: Zr } }, children: x.body }) }) : /* @__PURE__ */ r.jsx(nn, { options: { wrapper: t.type === "question" ? "h1" :
|
|
3905
|
+
) : f.post ? /* @__PURE__ */ r.jsx("a", { href: f.post, className: "gtm-trackable", "data-gtm-event-context": h, "data-gtm-event-type": "title-click", children: /* @__PURE__ */ r.jsx(nn, { options: { overrides: { a: Zr } }, children: x.body }) }) : /* @__PURE__ */ r.jsx(nn, { options: { wrapper: t.type === "question" ? "h1" : A.Fragment, forceWrapper: t.type === "question", forceInline: t.type === "question", forceBlock: t.type !== "question" }, children: x.body }),
|
|
3875
3906
|
!x.isEditing && /* @__PURE__ */ r.jsxs("ul", { className: j("actions text-medium", t.type), "data-testid": `${t.type}-actions`, children: [
|
|
3876
3907
|
/* @__PURE__ */ r.jsx(
|
|
3877
3908
|
$s,
|
|
@@ -3970,7 +4001,7 @@ const kt = "discussion_responses_", $o = ({ type: e = "answer", responses: t = 0
|
|
|
3970
4001
|
] });
|
|
3971
4002
|
};
|
|
3972
4003
|
const To = ({ isOpen: e = !1, count: t = 0, children: n }) => {
|
|
3973
|
-
const s = P(), o = Z(null), [l,
|
|
4004
|
+
const s = P(), o = Z(null), [l, m] = D(e), [a, i] = D("closed");
|
|
3974
4005
|
z(() => {
|
|
3975
4006
|
const p = o.current;
|
|
3976
4007
|
if (p)
|
|
@@ -3994,7 +4025,7 @@ const To = ({ isOpen: e = !1, count: t = 0, children: n }) => {
|
|
|
3994
4025
|
styling: { muted: !0 },
|
|
3995
4026
|
icon: { icon: `arrow_corner-down_${u ? "left" : "right"}` },
|
|
3996
4027
|
onClick: () => {
|
|
3997
|
-
|
|
4028
|
+
m(!l);
|
|
3998
4029
|
},
|
|
3999
4030
|
children: s.formatMessage({ id: `discussion_thread_${u ? "hide" : "show"}` }, { count: t })
|
|
4000
4031
|
}
|
|
@@ -4022,7 +4053,7 @@ const To = ({ isOpen: e = !1, count: t = 0, children: n }) => {
|
|
|
4022
4053
|
like: 0
|
|
4023
4054
|
},
|
|
4024
4055
|
verb: n
|
|
4025
|
-
}),
|
|
4056
|
+
}), As = ({
|
|
4026
4057
|
queryClient: e,
|
|
4027
4058
|
queryKey: t,
|
|
4028
4059
|
user: n,
|
|
@@ -4038,23 +4069,23 @@ const To = ({ isOpen: e = !1, count: t = 0, children: n }) => {
|
|
|
4038
4069
|
e.setQueryData(t, c.previousActivities);
|
|
4039
4070
|
}, onSettled: () => {
|
|
4040
4071
|
e.invalidateQueries({ queryKey: t });
|
|
4041
|
-
} }),
|
|
4072
|
+
} }), Ns = ({
|
|
4042
4073
|
queryClient: e,
|
|
4043
4074
|
queryKey: t,
|
|
4044
4075
|
mutationFn: n
|
|
4045
4076
|
}) => ({
|
|
4046
4077
|
mutationFn: n,
|
|
4047
4078
|
onMutate: async ({
|
|
4048
|
-
activityInfo:
|
|
4079
|
+
activityInfo: m,
|
|
4049
4080
|
content: { body: a }
|
|
4050
4081
|
}) => {
|
|
4051
4082
|
if (a.length === 0)
|
|
4052
4083
|
return;
|
|
4053
4084
|
await e.cancelQueries({ queryKey: t });
|
|
4054
|
-
const i = e.getQueryData(t), c = i == null ? void 0 : i.map((u) => ((u == null ? void 0 : u.id) === (
|
|
4085
|
+
const i = e.getQueryData(t), c = i == null ? void 0 : i.map((u) => ((u == null ? void 0 : u.id) === (m == null ? void 0 : m.activityId) && (u.content = a), u));
|
|
4055
4086
|
return e.setQueryData(t, () => c && [...c]), { previousActivities: c };
|
|
4056
4087
|
},
|
|
4057
|
-
onError: (
|
|
4088
|
+
onError: (m, a, i) => {
|
|
4058
4089
|
e.setQueryData(t, i.previousActivities);
|
|
4059
4090
|
},
|
|
4060
4091
|
onSettled: () => {
|
|
@@ -4116,9 +4147,9 @@ const To = ({ isOpen: e = !1, count: t = 0, children: n }) => {
|
|
|
4116
4147
|
basePath: e,
|
|
4117
4148
|
parentId: t,
|
|
4118
4149
|
isMember: n,
|
|
4119
|
-
functions: { list: s, create: o, edit: l, like:
|
|
4150
|
+
functions: { list: s, create: o, edit: l, like: m, unlike: a, join: i, leave: c }
|
|
4120
4151
|
}) => {
|
|
4121
|
-
const u = P(), f =
|
|
4152
|
+
const u = P(), f = At(), p = ye(je), {
|
|
4122
4153
|
data: h,
|
|
4123
4154
|
error: _,
|
|
4124
4155
|
isLoading: v,
|
|
@@ -4126,12 +4157,12 @@ const To = ({ isOpen: e = !1, count: t = 0, children: n }) => {
|
|
|
4126
4157
|
} = cn({
|
|
4127
4158
|
queryKey: [e, t],
|
|
4128
4159
|
queryFn: s
|
|
4129
|
-
}), E =
|
|
4160
|
+
}), E = As({
|
|
4130
4161
|
queryClient: f,
|
|
4131
4162
|
queryKey: [e, t],
|
|
4132
4163
|
user: p,
|
|
4133
4164
|
mutationFn: o
|
|
4134
|
-
}), { mutate: x } = fe(E), $ =
|
|
4165
|
+
}), { mutate: x } = fe(E), $ = Ns({
|
|
4135
4166
|
queryClient: f,
|
|
4136
4167
|
queryKey: [e, t],
|
|
4137
4168
|
mutationFn: async (k) => await l(k)
|
|
@@ -4140,7 +4171,7 @@ const To = ({ isOpen: e = !1, count: t = 0, children: n }) => {
|
|
|
4140
4171
|
} = fe($), M = Ds({
|
|
4141
4172
|
queryClient: f,
|
|
4142
4173
|
queryKey: [e, t],
|
|
4143
|
-
mutationFn:
|
|
4174
|
+
mutationFn: m
|
|
4144
4175
|
}), {
|
|
4145
4176
|
mutate: Q
|
|
4146
4177
|
} = fe(M), V = Ps({
|
|
@@ -4167,7 +4198,7 @@ const To = ({ isOpen: e = !1, count: t = 0, children: n }) => {
|
|
|
4167
4198
|
);
|
|
4168
4199
|
return _ ? /* @__PURE__ */ r.jsx(rt, { variant: "error", text: _.message }) : v ? /* @__PURE__ */ r.jsx(be, { style: { height: "400px" } }) : /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
|
|
4169
4200
|
/* @__PURE__ */ r.jsx(
|
|
4170
|
-
|
|
4201
|
+
An,
|
|
4171
4202
|
{
|
|
4172
4203
|
contentType: "post",
|
|
4173
4204
|
createPost: x,
|
|
@@ -4260,44 +4291,44 @@ const To = ({ isOpen: e = !1, count: t = 0, children: n }) => {
|
|
|
4260
4291
|
mutationFn: n,
|
|
4261
4292
|
onMutate: async ({
|
|
4262
4293
|
replyInfo: l,
|
|
4263
|
-
content: { body:
|
|
4294
|
+
content: { body: m }
|
|
4264
4295
|
}) => {
|
|
4265
4296
|
var c, u, f;
|
|
4266
|
-
if (
|
|
4297
|
+
if (m.length === 0)
|
|
4267
4298
|
return;
|
|
4268
4299
|
await e.cancelQueries({ queryKey: t });
|
|
4269
4300
|
const a = e.getQueryData(t);
|
|
4270
4301
|
if (!a || !((c = a == null ? void 0 : a.latest_reactions) != null && c.reply))
|
|
4271
4302
|
return;
|
|
4272
|
-
const i = (f = (u = a == null ? void 0 : a.latest_reactions) == null ? void 0 : u.reply) == null ? void 0 : f.map((p) => (p.id === l.replySlug && (p.data.content =
|
|
4303
|
+
const i = (f = (u = a == null ? void 0 : a.latest_reactions) == null ? void 0 : u.reply) == null ? void 0 : f.map((p) => (p.id === l.replySlug && (p.data.content = m), p));
|
|
4273
4304
|
return e.setQueryData(t, () => ({
|
|
4274
4305
|
...a,
|
|
4275
4306
|
latest_reactions: { reply: i }
|
|
4276
4307
|
})), { previousActivity: a };
|
|
4277
4308
|
},
|
|
4278
|
-
onError: (l,
|
|
4309
|
+
onError: (l, m, a) => {
|
|
4279
4310
|
e.setQueryData(t, a.previousActivity);
|
|
4280
4311
|
}
|
|
4281
4312
|
}), Os = ({
|
|
4282
4313
|
queryClient: e,
|
|
4283
4314
|
queryKey: t,
|
|
4284
4315
|
mutationFn: n
|
|
4285
|
-
}) => ({ mutationFn: n, onMutate: async ({ replyId:
|
|
4316
|
+
}) => ({ mutationFn: n, onMutate: async ({ replyId: m }) => {
|
|
4286
4317
|
var c, u;
|
|
4287
4318
|
await e.cancelQueries({ queryKey: t });
|
|
4288
4319
|
const a = e.getQueryData(t), i = (u = (c = a == null ? void 0 : a.latest_reactions) == null ? void 0 : c.reply) == null ? void 0 : u.map((f) => {
|
|
4289
4320
|
var p;
|
|
4290
|
-
return f.id ===
|
|
4321
|
+
return f.id === m && ((p = f.children_counts) != null && p.like ? f.children_counts.like += 1 : f.children_counts = { like: 1 }), f;
|
|
4291
4322
|
});
|
|
4292
4323
|
return e.setQueryData(t, () => ({
|
|
4293
4324
|
...a,
|
|
4294
4325
|
latest_reactions: { reply: i }
|
|
4295
4326
|
})), { previousActivity: a };
|
|
4296
|
-
}, onError: (
|
|
4327
|
+
}, onError: (m, a, i) => {
|
|
4297
4328
|
e.setQueryData(t, i.previousActivity);
|
|
4298
|
-
}, onSuccess: (
|
|
4329
|
+
}, onSuccess: (m) => {
|
|
4299
4330
|
var c;
|
|
4300
|
-
const a = e.getQueryData(t), i = (c = a == null ? void 0 : a.latest_reactions.reply) == null ? void 0 : c.map((u) => (u.id ===
|
|
4331
|
+
const a = e.getQueryData(t), i = (c = a == null ? void 0 : a.latest_reactions.reply) == null ? void 0 : c.map((u) => (u.id === m.id && (u.latest_children.like ? u.latest_children.like.push(m) : u.latest_children.like = [m]), u));
|
|
4301
4332
|
return e.setQueryData(t, () => ({
|
|
4302
4333
|
...a,
|
|
4303
4334
|
latest_reactions: { reply: i }
|
|
@@ -4341,16 +4372,16 @@ const To = ({ isOpen: e = !1, count: t = 0, children: n }) => {
|
|
|
4341
4372
|
activityId: n,
|
|
4342
4373
|
repliesList: s,
|
|
4343
4374
|
isMember: o,
|
|
4344
|
-
functions: { createReply: l, editReply:
|
|
4375
|
+
functions: { createReply: l, editReply: m, like: a, unlike: i, join: c, leave: u }
|
|
4345
4376
|
}) => {
|
|
4346
|
-
const f = P(), p =
|
|
4377
|
+
const f = P(), p = At(), h = ye(je), _ = Fs({
|
|
4347
4378
|
queryClient: p,
|
|
4348
4379
|
queryKey: [e, t, n],
|
|
4349
4380
|
mutationFn: l
|
|
4350
4381
|
}), { mutate: v } = fe(_), g = Rs({
|
|
4351
4382
|
queryClient: p,
|
|
4352
4383
|
queryKey: [e, t, n],
|
|
4353
|
-
mutationFn: async (w) =>
|
|
4384
|
+
mutationFn: async (w) => m(w)
|
|
4354
4385
|
}), {
|
|
4355
4386
|
mutate: E
|
|
4356
4387
|
} = fe(g), x = Os({
|
|
@@ -4375,7 +4406,7 @@ const To = ({ isOpen: e = !1, count: t = 0, children: n }) => {
|
|
|
4375
4406
|
);
|
|
4376
4407
|
return /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
|
|
4377
4408
|
/* @__PURE__ */ r.jsx(
|
|
4378
|
-
|
|
4409
|
+
An,
|
|
4379
4410
|
{
|
|
4380
4411
|
contentType: "post",
|
|
4381
4412
|
createPost: v,
|
|
@@ -4447,18 +4478,18 @@ const To = ({ isOpen: e = !1, count: t = 0, children: n }) => {
|
|
|
4447
4478
|
}) => ({
|
|
4448
4479
|
mutationFn: n,
|
|
4449
4480
|
onMutate: async ({
|
|
4450
|
-
activityInfo:
|
|
4481
|
+
activityInfo: m,
|
|
4451
4482
|
content: { body: a }
|
|
4452
4483
|
}) => {
|
|
4453
4484
|
if (a.length === 0)
|
|
4454
4485
|
return;
|
|
4455
4486
|
await e.cancelQueries({ queryKey: t });
|
|
4456
4487
|
const i = e.getQueryData(t);
|
|
4457
|
-
return i && i.id === (
|
|
4488
|
+
return i && i.id === (m == null ? void 0 : m.activityId) && (i.content = a), e.setQueryData(t, () => ({
|
|
4458
4489
|
...i
|
|
4459
4490
|
})), { previousActivity: i };
|
|
4460
4491
|
},
|
|
4461
|
-
onError: (
|
|
4492
|
+
onError: (m, a, i) => {
|
|
4462
4493
|
e.setQueryData(t, i.previousActivity);
|
|
4463
4494
|
},
|
|
4464
4495
|
onSettled: () => {
|
|
@@ -4522,7 +4553,7 @@ const To = ({ isOpen: e = !1, count: t = 0, children: n }) => {
|
|
|
4522
4553
|
functions: {
|
|
4523
4554
|
get: o,
|
|
4524
4555
|
editActivity: l,
|
|
4525
|
-
likeActivity:
|
|
4556
|
+
likeActivity: m,
|
|
4526
4557
|
unlikeActivity: a,
|
|
4527
4558
|
createReply: i,
|
|
4528
4559
|
editReply: c,
|
|
@@ -4533,7 +4564,7 @@ const To = ({ isOpen: e = !1, count: t = 0, children: n }) => {
|
|
|
4533
4564
|
}
|
|
4534
4565
|
}) => {
|
|
4535
4566
|
var L, U, G, K, ie, le, se, R, ee, oe, ce;
|
|
4536
|
-
const _ = ye(je), v =
|
|
4567
|
+
const _ = ye(je), v = At(), {
|
|
4537
4568
|
data: g,
|
|
4538
4569
|
error: E,
|
|
4539
4570
|
isLoading: x,
|
|
@@ -4550,7 +4581,7 @@ const To = ({ isOpen: e = !1, count: t = 0, children: n }) => {
|
|
|
4550
4581
|
} = fe(T), Q = Hs({
|
|
4551
4582
|
queryClient: v,
|
|
4552
4583
|
queryKey: [e, t, n],
|
|
4553
|
-
mutationFn:
|
|
4584
|
+
mutationFn: m
|
|
4554
4585
|
}), {
|
|
4555
4586
|
mutate: V
|
|
4556
4587
|
} = fe(Q), w = Qs({
|
|
@@ -4650,7 +4681,7 @@ const To = ({ isOpen: e = !1, count: t = 0, children: n }) => {
|
|
|
4650
4681
|
},
|
|
4651
4682
|
n
|
|
4652
4683
|
);
|
|
4653
|
-
},
|
|
4684
|
+
}, Ao = ({ id: e, data: { jobTitle: t, name: n, organization: s, thumbnail: o } }) => ({
|
|
4654
4685
|
id: e,
|
|
4655
4686
|
name: n,
|
|
4656
4687
|
jobTitle: t,
|
|
@@ -4661,7 +4692,7 @@ export {
|
|
|
4661
4692
|
Et as ASSETS_BUCKET,
|
|
4662
4693
|
Mo as ActivitiesFeed,
|
|
4663
4694
|
Co as ActivitySection,
|
|
4664
|
-
|
|
4695
|
+
An as AddPost,
|
|
4665
4696
|
io as BannerSection,
|
|
4666
4697
|
ho as Breadcrumbs,
|
|
4667
4698
|
W as Button,
|
|
@@ -4671,7 +4702,7 @@ export {
|
|
|
4671
4702
|
xo as Columns,
|
|
4672
4703
|
po as CommunityDetails,
|
|
4673
4704
|
os as Contributors,
|
|
4674
|
-
|
|
4705
|
+
Nn as ConversationContext,
|
|
4675
4706
|
gs as CookieBanner,
|
|
4676
4707
|
Eo as DiscussionConversation,
|
|
4677
4708
|
Cn as DiscussionForm,
|
|
@@ -4733,7 +4764,7 @@ export {
|
|
|
4733
4764
|
Ms as addAriaProps,
|
|
4734
4765
|
kn as getMember,
|
|
4735
4766
|
Xe as headerData,
|
|
4736
|
-
|
|
4767
|
+
Ao as mapGetStreamData,
|
|
4737
4768
|
jr as useCurrentPath,
|
|
4738
4769
|
Ce as useEffectAfterMount,
|
|
4739
4770
|
et as useScreenWidth,
|