@apolitical/component-library 2.0.4 → 2.0.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.js +11 -11
- package/index.mjs +528 -529
- package/package.json +1 -1
- package/style.css +1 -1
package/index.mjs
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import * as sr from "react";
|
|
2
|
-
import
|
|
2
|
+
import Z, { memo as Ae, useState as J, useEffect as ie, useRef as me, useMemo as ot, createContext as $n, useContext as $e, Children as hn, useCallback as Fr, Fragment as at, useReducer as Pn, forwardRef as Ua, createElement as ir, Component as Ha, Suspense as Wa } from "react";
|
|
3
3
|
import jt from "lodash.clonedeep";
|
|
4
4
|
import Va from "lodash.set";
|
|
5
|
-
import { useIntl as
|
|
5
|
+
import { useIntl as V, IntlProvider as Ya, createIntl as Ga, FormattedMessage as we } from "react-intl";
|
|
6
6
|
import Ve from "markdown-to-jsx";
|
|
7
7
|
import He from "truncate";
|
|
8
8
|
import { QueryClient as Ka, QueryClientProvider as Qa, useMutation as je, useQueryClient as Mn, useInfiniteQuery as Lr, useQuery as Ja } from "@tanstack/react-query";
|
|
@@ -59,7 +59,7 @@ const E = /* @__PURE__ */ Rn(ss), is = ({
|
|
|
59
59
|
showOnFocus: t = !0,
|
|
60
60
|
children: n,
|
|
61
61
|
...r
|
|
62
|
-
}) =>
|
|
62
|
+
}) => Z.createElement(e, {
|
|
63
63
|
...r,
|
|
64
64
|
className: E("hidden", { "show-on-focus": t }),
|
|
65
65
|
children: n
|
|
@@ -67,7 +67,7 @@ const E = /* @__PURE__ */ Rn(ss), is = ({
|
|
|
67
67
|
element: e = "span",
|
|
68
68
|
children: t = null,
|
|
69
69
|
...n
|
|
70
|
-
}) =>
|
|
70
|
+
}) => Z.createElement(e, { ...n, "aria-hidden": !0 }, t), Nn = Ae(os);
|
|
71
71
|
var gn = { exports: {} }, Qe = {};
|
|
72
72
|
/**
|
|
73
73
|
* @license React
|
|
@@ -83,7 +83,7 @@ function cs() {
|
|
|
83
83
|
if (or)
|
|
84
84
|
return Qe;
|
|
85
85
|
or = 1;
|
|
86
|
-
var e =
|
|
86
|
+
var e = Z, t = Symbol.for("react.element"), n = Symbol.for("react.fragment"), r = Object.prototype.hasOwnProperty, s = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, i = { key: !0, ref: !0, __self: !0, __source: !0 };
|
|
87
87
|
function c(o, f, d) {
|
|
88
88
|
var u, l = {}, m = null, h = null;
|
|
89
89
|
d !== void 0 && (m = "" + d), f.key !== void 0 && (m = "" + f.key), f.ref !== void 0 && (h = f.ref);
|
|
@@ -109,7 +109,7 @@ var Je = {};
|
|
|
109
109
|
var cr;
|
|
110
110
|
function ls() {
|
|
111
111
|
return cr || (cr = 1, process.env.NODE_ENV !== "production" && function() {
|
|
112
|
-
var e =
|
|
112
|
+
var e = Z, t = Symbol.for("react.element"), n = Symbol.for("react.portal"), r = Symbol.for("react.fragment"), s = Symbol.for("react.strict_mode"), i = Symbol.for("react.profiler"), c = Symbol.for("react.provider"), o = Symbol.for("react.context"), f = Symbol.for("react.forward_ref"), d = Symbol.for("react.suspense"), u = Symbol.for("react.suspense_list"), l = Symbol.for("react.memo"), m = Symbol.for("react.lazy"), h = Symbol.for("react.offscreen"), g = Symbol.iterator, v = "@@iterator";
|
|
113
113
|
function _(p) {
|
|
114
114
|
if (p === null || typeof p != "object")
|
|
115
115
|
return null;
|
|
@@ -119,41 +119,41 @@ function ls() {
|
|
|
119
119
|
var b = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
120
120
|
function y(p) {
|
|
121
121
|
{
|
|
122
|
-
for (var T = arguments.length,
|
|
123
|
-
|
|
124
|
-
j("error", p,
|
|
122
|
+
for (var T = arguments.length, P = new Array(T > 1 ? T - 1 : 0), G = 1; G < T; G++)
|
|
123
|
+
P[G - 1] = arguments[G];
|
|
124
|
+
j("error", p, P);
|
|
125
125
|
}
|
|
126
126
|
}
|
|
127
|
-
function j(p, T,
|
|
127
|
+
function j(p, T, P) {
|
|
128
128
|
{
|
|
129
129
|
var G = b.ReactDebugCurrentFrame, ae = G.getStackAddendum();
|
|
130
|
-
ae !== "" && (T += "%s",
|
|
131
|
-
var ue =
|
|
130
|
+
ae !== "" && (T += "%s", P = P.concat([ae]));
|
|
131
|
+
var ue = P.map(function(re) {
|
|
132
132
|
return String(re);
|
|
133
133
|
});
|
|
134
134
|
ue.unshift("Warning: " + T), Function.prototype.apply.call(console[p], console, ue);
|
|
135
135
|
}
|
|
136
136
|
}
|
|
137
|
-
var w = !1, x = !1, R = !1, F = !1,
|
|
138
|
-
|
|
137
|
+
var w = !1, x = !1, R = !1, F = !1, M = !1, L;
|
|
138
|
+
L = Symbol.for("react.module.reference");
|
|
139
139
|
function O(p) {
|
|
140
|
-
return !!(typeof p == "string" || typeof p == "function" || p === r || p === i ||
|
|
140
|
+
return !!(typeof p == "string" || typeof p == "function" || p === r || p === i || M || p === s || p === d || p === u || F || p === h || w || x || R || typeof p == "object" && p !== null && (p.$$typeof === m || p.$$typeof === l || p.$$typeof === c || p.$$typeof === o || p.$$typeof === f || // This needs to include all possible module reference object
|
|
141
141
|
// types supported by any Flight configuration anywhere since
|
|
142
142
|
// we don't know which Flight build this will end up being used
|
|
143
143
|
// with.
|
|
144
|
-
p.$$typeof ===
|
|
144
|
+
p.$$typeof === L || p.getModuleId !== void 0));
|
|
145
145
|
}
|
|
146
|
-
function
|
|
146
|
+
function A(p, T, P) {
|
|
147
147
|
var G = p.displayName;
|
|
148
148
|
if (G)
|
|
149
149
|
return G;
|
|
150
150
|
var ae = T.displayName || T.name || "";
|
|
151
|
-
return ae !== "" ?
|
|
151
|
+
return ae !== "" ? P + "(" + ae + ")" : P;
|
|
152
152
|
}
|
|
153
153
|
function ee(p) {
|
|
154
154
|
return p.displayName || "Context";
|
|
155
155
|
}
|
|
156
|
-
function
|
|
156
|
+
function N(p) {
|
|
157
157
|
if (p == null)
|
|
158
158
|
return null;
|
|
159
159
|
if (typeof p.tag == "number" && y("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof p == "function")
|
|
@@ -180,17 +180,17 @@ function ls() {
|
|
|
180
180
|
var T = p;
|
|
181
181
|
return ee(T) + ".Consumer";
|
|
182
182
|
case c:
|
|
183
|
-
var
|
|
184
|
-
return ee(
|
|
183
|
+
var P = p;
|
|
184
|
+
return ee(P._context) + ".Provider";
|
|
185
185
|
case f:
|
|
186
|
-
return
|
|
186
|
+
return A(p, p.render, "ForwardRef");
|
|
187
187
|
case l:
|
|
188
188
|
var G = p.displayName || null;
|
|
189
|
-
return G !== null ? G :
|
|
189
|
+
return G !== null ? G : N(p.type) || "Memo";
|
|
190
190
|
case m: {
|
|
191
191
|
var ae = p, ue = ae._payload, re = ae._init;
|
|
192
192
|
try {
|
|
193
|
-
return
|
|
193
|
+
return N(re(ue));
|
|
194
194
|
} catch {
|
|
195
195
|
return null;
|
|
196
196
|
}
|
|
@@ -198,18 +198,18 @@ function ls() {
|
|
|
198
198
|
}
|
|
199
199
|
return null;
|
|
200
200
|
}
|
|
201
|
-
var
|
|
202
|
-
function L() {
|
|
203
|
-
}
|
|
204
|
-
L.__reactDisabledLog = !0;
|
|
201
|
+
var H = Object.assign, z = 0, Q, X, le, fe, k, S, q;
|
|
205
202
|
function D() {
|
|
203
|
+
}
|
|
204
|
+
D.__reactDisabledLog = !0;
|
|
205
|
+
function I() {
|
|
206
206
|
{
|
|
207
|
-
if (
|
|
208
|
-
Q = console.log, X = console.info, le = console.warn, fe = console.error, k = console.group, S = console.groupCollapsed,
|
|
207
|
+
if (z === 0) {
|
|
208
|
+
Q = console.log, X = console.info, le = console.warn, fe = console.error, k = console.group, S = console.groupCollapsed, q = console.groupEnd;
|
|
209
209
|
var p = {
|
|
210
210
|
configurable: !0,
|
|
211
211
|
enumerable: !0,
|
|
212
|
-
value:
|
|
212
|
+
value: D,
|
|
213
213
|
writable: !0
|
|
214
214
|
};
|
|
215
215
|
Object.defineProperties(console, {
|
|
@@ -222,56 +222,56 @@ function ls() {
|
|
|
222
222
|
groupEnd: p
|
|
223
223
|
});
|
|
224
224
|
}
|
|
225
|
-
|
|
225
|
+
z++;
|
|
226
226
|
}
|
|
227
227
|
}
|
|
228
228
|
function Y() {
|
|
229
229
|
{
|
|
230
|
-
if (
|
|
230
|
+
if (z--, z === 0) {
|
|
231
231
|
var p = {
|
|
232
232
|
configurable: !0,
|
|
233
233
|
enumerable: !0,
|
|
234
234
|
writable: !0
|
|
235
235
|
};
|
|
236
236
|
Object.defineProperties(console, {
|
|
237
|
-
log:
|
|
237
|
+
log: H({}, p, {
|
|
238
238
|
value: Q
|
|
239
239
|
}),
|
|
240
|
-
info:
|
|
240
|
+
info: H({}, p, {
|
|
241
241
|
value: X
|
|
242
242
|
}),
|
|
243
|
-
warn:
|
|
243
|
+
warn: H({}, p, {
|
|
244
244
|
value: le
|
|
245
245
|
}),
|
|
246
|
-
error:
|
|
246
|
+
error: H({}, p, {
|
|
247
247
|
value: fe
|
|
248
248
|
}),
|
|
249
|
-
group:
|
|
249
|
+
group: H({}, p, {
|
|
250
250
|
value: k
|
|
251
251
|
}),
|
|
252
|
-
groupCollapsed:
|
|
252
|
+
groupCollapsed: H({}, p, {
|
|
253
253
|
value: S
|
|
254
254
|
}),
|
|
255
|
-
groupEnd:
|
|
256
|
-
value:
|
|
255
|
+
groupEnd: H({}, p, {
|
|
256
|
+
value: q
|
|
257
257
|
})
|
|
258
258
|
});
|
|
259
259
|
}
|
|
260
|
-
|
|
260
|
+
z < 0 && y("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
|
|
261
261
|
}
|
|
262
262
|
}
|
|
263
|
-
var
|
|
264
|
-
function
|
|
263
|
+
var U = b.ReactCurrentDispatcher, B;
|
|
264
|
+
function W(p, T, P) {
|
|
265
265
|
{
|
|
266
|
-
if (
|
|
266
|
+
if (B === void 0)
|
|
267
267
|
try {
|
|
268
268
|
throw Error();
|
|
269
269
|
} catch (ae) {
|
|
270
270
|
var G = ae.stack.trim().match(/\n( *(at )?)/);
|
|
271
|
-
|
|
271
|
+
B = G && G[1] || "";
|
|
272
272
|
}
|
|
273
273
|
return `
|
|
274
|
-
` +
|
|
274
|
+
` + B + p;
|
|
275
275
|
}
|
|
276
276
|
}
|
|
277
277
|
var K = !1, C;
|
|
@@ -283,16 +283,16 @@ function ls() {
|
|
|
283
283
|
if (!p || K)
|
|
284
284
|
return "";
|
|
285
285
|
{
|
|
286
|
-
var
|
|
287
|
-
if (
|
|
288
|
-
return
|
|
286
|
+
var P = C.get(p);
|
|
287
|
+
if (P !== void 0)
|
|
288
|
+
return P;
|
|
289
289
|
}
|
|
290
290
|
var G;
|
|
291
291
|
K = !0;
|
|
292
292
|
var ae = Error.prepareStackTrace;
|
|
293
293
|
Error.prepareStackTrace = void 0;
|
|
294
294
|
var ue;
|
|
295
|
-
ue =
|
|
295
|
+
ue = U.current, U.current = null, I();
|
|
296
296
|
try {
|
|
297
297
|
if (T) {
|
|
298
298
|
var re = function() {
|
|
@@ -345,41 +345,41 @@ function ls() {
|
|
|
345
345
|
}
|
|
346
346
|
}
|
|
347
347
|
} finally {
|
|
348
|
-
K = !1,
|
|
348
|
+
K = !1, U.current = ue, Y(), Error.prepareStackTrace = ae;
|
|
349
349
|
}
|
|
350
|
-
var ze = p ? p.displayName || p.name : "", ar = ze ?
|
|
350
|
+
var ze = p ? p.displayName || p.name : "", ar = ze ? W(ze) : "";
|
|
351
351
|
return typeof p == "function" && C.set(p, ar), ar;
|
|
352
352
|
}
|
|
353
|
-
function ge(p, T,
|
|
353
|
+
function ge(p, T, P) {
|
|
354
354
|
return $(p, !1);
|
|
355
355
|
}
|
|
356
356
|
function Pe(p) {
|
|
357
357
|
var T = p.prototype;
|
|
358
358
|
return !!(T && T.isReactComponent);
|
|
359
359
|
}
|
|
360
|
-
function Se(p, T,
|
|
360
|
+
function Se(p, T, P) {
|
|
361
361
|
if (p == null)
|
|
362
362
|
return "";
|
|
363
363
|
if (typeof p == "function")
|
|
364
364
|
return $(p, Pe(p));
|
|
365
365
|
if (typeof p == "string")
|
|
366
|
-
return
|
|
366
|
+
return W(p);
|
|
367
367
|
switch (p) {
|
|
368
368
|
case d:
|
|
369
|
-
return
|
|
369
|
+
return W("Suspense");
|
|
370
370
|
case u:
|
|
371
|
-
return
|
|
371
|
+
return W("SuspenseList");
|
|
372
372
|
}
|
|
373
373
|
if (typeof p == "object")
|
|
374
374
|
switch (p.$$typeof) {
|
|
375
375
|
case f:
|
|
376
376
|
return ge(p.render);
|
|
377
377
|
case l:
|
|
378
|
-
return Se(p.type, T,
|
|
378
|
+
return Se(p.type, T, P);
|
|
379
379
|
case m: {
|
|
380
380
|
var G = p, ae = G._payload, ue = G._init;
|
|
381
381
|
try {
|
|
382
|
-
return Se(ue(ae), T,
|
|
382
|
+
return Se(ue(ae), T, P);
|
|
383
383
|
} catch {
|
|
384
384
|
}
|
|
385
385
|
}
|
|
@@ -389,12 +389,12 @@ function ls() {
|
|
|
389
389
|
var Ie = Object.prototype.hasOwnProperty, Wn = {}, Vn = b.ReactDebugCurrentFrame;
|
|
390
390
|
function ut(p) {
|
|
391
391
|
if (p) {
|
|
392
|
-
var T = p._owner,
|
|
393
|
-
Vn.setExtraStackFrame(
|
|
392
|
+
var T = p._owner, P = Se(p.type, p._source, T ? T.type : null);
|
|
393
|
+
Vn.setExtraStackFrame(P);
|
|
394
394
|
} else
|
|
395
395
|
Vn.setExtraStackFrame(null);
|
|
396
396
|
}
|
|
397
|
-
function ka(p, T,
|
|
397
|
+
function ka(p, T, P, G, ae) {
|
|
398
398
|
{
|
|
399
399
|
var ue = Function.call.bind(Ie);
|
|
400
400
|
for (var re in p)
|
|
@@ -402,14 +402,14 @@ function ls() {
|
|
|
402
402
|
var te = void 0;
|
|
403
403
|
try {
|
|
404
404
|
if (typeof p[re] != "function") {
|
|
405
|
-
var be = Error((G || "React class") + ": " +
|
|
405
|
+
var be = Error((G || "React class") + ": " + P + " type `" + re + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof p[re] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
|
|
406
406
|
throw be.name = "Invariant Violation", be;
|
|
407
407
|
}
|
|
408
|
-
te = p[re](T, re, G,
|
|
408
|
+
te = p[re](T, re, G, P, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
|
|
409
409
|
} catch (pe) {
|
|
410
410
|
te = pe;
|
|
411
411
|
}
|
|
412
|
-
te && !(te instanceof Error) && (ut(ae), y("%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).", G || "React class",
|
|
412
|
+
te && !(te instanceof Error) && (ut(ae), y("%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).", G || "React class", P, re, typeof te), ut(null)), te instanceof Error && !(te.message in Wn) && (Wn[te.message] = !0, ut(ae), y("Failed %s type: %s", P, te.message), ut(null));
|
|
413
413
|
}
|
|
414
414
|
}
|
|
415
415
|
}
|
|
@@ -419,8 +419,8 @@ function ls() {
|
|
|
419
419
|
}
|
|
420
420
|
function Ea(p) {
|
|
421
421
|
{
|
|
422
|
-
var T = typeof Symbol == "function" && Symbol.toStringTag,
|
|
423
|
-
return
|
|
422
|
+
var T = typeof Symbol == "function" && Symbol.toStringTag, P = T && p[Symbol.toStringTag] || p.constructor.name || "Object";
|
|
423
|
+
return P;
|
|
424
424
|
}
|
|
425
425
|
}
|
|
426
426
|
function Sa(p) {
|
|
@@ -462,40 +462,40 @@ function ls() {
|
|
|
462
462
|
}
|
|
463
463
|
function Ma(p, T) {
|
|
464
464
|
if (typeof p.ref == "string" && Ke.current && T && Ke.current.stateNode !== T) {
|
|
465
|
-
var
|
|
466
|
-
It[
|
|
465
|
+
var P = N(Ke.current.type);
|
|
466
|
+
It[P] || (y('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', N(Ke.current.type), p.ref), It[P] = !0);
|
|
467
467
|
}
|
|
468
468
|
}
|
|
469
469
|
function Ra(p, T) {
|
|
470
470
|
{
|
|
471
|
-
var
|
|
471
|
+
var P = function() {
|
|
472
472
|
Kn || (Kn = !0, y("%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)", T));
|
|
473
473
|
};
|
|
474
|
-
|
|
475
|
-
get:
|
|
474
|
+
P.isReactWarning = !0, Object.defineProperty(p, "key", {
|
|
475
|
+
get: P,
|
|
476
476
|
configurable: !0
|
|
477
477
|
});
|
|
478
478
|
}
|
|
479
479
|
}
|
|
480
480
|
function Na(p, T) {
|
|
481
481
|
{
|
|
482
|
-
var
|
|
482
|
+
var P = function() {
|
|
483
483
|
Qn || (Qn = !0, y("%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)", T));
|
|
484
484
|
};
|
|
485
|
-
|
|
486
|
-
get:
|
|
485
|
+
P.isReactWarning = !0, Object.defineProperty(p, "ref", {
|
|
486
|
+
get: P,
|
|
487
487
|
configurable: !0
|
|
488
488
|
});
|
|
489
489
|
}
|
|
490
490
|
}
|
|
491
|
-
var Aa = function(p, T,
|
|
491
|
+
var Aa = function(p, T, P, G, ae, ue, re) {
|
|
492
492
|
var te = {
|
|
493
493
|
// This tag allows us to uniquely identify this as a React Element
|
|
494
494
|
$$typeof: t,
|
|
495
495
|
// Built-in properties that belong on the element
|
|
496
496
|
type: p,
|
|
497
497
|
key: T,
|
|
498
|
-
ref:
|
|
498
|
+
ref: P,
|
|
499
499
|
props: re,
|
|
500
500
|
// Record the component responsible for creating this element.
|
|
501
501
|
_owner: ue
|
|
@@ -517,10 +517,10 @@ function ls() {
|
|
|
517
517
|
value: ae
|
|
518
518
|
}), Object.freeze && (Object.freeze(te.props), Object.freeze(te)), te;
|
|
519
519
|
};
|
|
520
|
-
function Oa(p, T,
|
|
520
|
+
function Oa(p, T, P, G, ae) {
|
|
521
521
|
{
|
|
522
522
|
var ue, re = {}, te = null, be = null;
|
|
523
|
-
|
|
523
|
+
P !== void 0 && (Gn(P), te = "" + P), Pa(T) && (Gn(T.key), te = "" + T.key), $a(T) && (be = T.ref, Ma(T, ae));
|
|
524
524
|
for (ue in T)
|
|
525
525
|
Ie.call(T, ue) && !Ca.hasOwnProperty(ue) && (re[ue] = T[ue]);
|
|
526
526
|
if (p && p.defaultProps) {
|
|
@@ -538,8 +538,8 @@ function ls() {
|
|
|
538
538
|
var Bt = b.ReactCurrentOwner, Jn = b.ReactDebugCurrentFrame;
|
|
539
539
|
function qe(p) {
|
|
540
540
|
if (p) {
|
|
541
|
-
var T = p._owner,
|
|
542
|
-
Jn.setExtraStackFrame(
|
|
541
|
+
var T = p._owner, P = Se(p.type, p._source, T ? T.type : null);
|
|
542
|
+
Jn.setExtraStackFrame(P);
|
|
543
543
|
} else
|
|
544
544
|
Jn.setExtraStackFrame(null);
|
|
545
545
|
}
|
|
@@ -551,7 +551,7 @@ function ls() {
|
|
|
551
551
|
function Xn() {
|
|
552
552
|
{
|
|
553
553
|
if (Bt.current) {
|
|
554
|
-
var p =
|
|
554
|
+
var p = N(Bt.current.type);
|
|
555
555
|
if (p)
|
|
556
556
|
return `
|
|
557
557
|
|
|
@@ -563,10 +563,10 @@ Check the render method of \`` + p + "`.";
|
|
|
563
563
|
function Fa(p) {
|
|
564
564
|
{
|
|
565
565
|
if (p !== void 0) {
|
|
566
|
-
var T = p.fileName.replace(/^.*[\\\/]/, ""),
|
|
566
|
+
var T = p.fileName.replace(/^.*[\\\/]/, ""), P = p.lineNumber;
|
|
567
567
|
return `
|
|
568
568
|
|
|
569
|
-
Check your code at ` + T + ":" +
|
|
569
|
+
Check your code at ` + T + ":" + P + ".";
|
|
570
570
|
}
|
|
571
571
|
return "";
|
|
572
572
|
}
|
|
@@ -576,10 +576,10 @@ Check your code at ` + T + ":" + M + ".";
|
|
|
576
576
|
{
|
|
577
577
|
var T = Xn();
|
|
578
578
|
if (!T) {
|
|
579
|
-
var
|
|
580
|
-
|
|
579
|
+
var P = typeof p == "string" ? p : p.displayName || p.name;
|
|
580
|
+
P && (T = `
|
|
581
581
|
|
|
582
|
-
Check the top-level render call using <` +
|
|
582
|
+
Check the top-level render call using <` + P + ">.");
|
|
583
583
|
}
|
|
584
584
|
return T;
|
|
585
585
|
}
|
|
@@ -589,12 +589,12 @@ Check the top-level render call using <` + M + ">.");
|
|
|
589
589
|
if (!p._store || p._store.validated || p.key != null)
|
|
590
590
|
return;
|
|
591
591
|
p._store.validated = !0;
|
|
592
|
-
var
|
|
593
|
-
if (er[
|
|
592
|
+
var P = La(T);
|
|
593
|
+
if (er[P])
|
|
594
594
|
return;
|
|
595
|
-
er[
|
|
595
|
+
er[P] = !0;
|
|
596
596
|
var G = "";
|
|
597
|
-
p && p._owner && p._owner !== Bt.current && (G = " It was passed a child from " +
|
|
597
|
+
p && p._owner && p._owner !== Bt.current && (G = " It was passed a child from " + N(p._owner.type) + "."), qe(p), y('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', P, G), qe(null);
|
|
598
598
|
}
|
|
599
599
|
}
|
|
600
600
|
function nr(p, T) {
|
|
@@ -602,8 +602,8 @@ Check the top-level render call using <` + M + ">.");
|
|
|
602
602
|
if (typeof p != "object")
|
|
603
603
|
return;
|
|
604
604
|
if (Dt(p))
|
|
605
|
-
for (var
|
|
606
|
-
var G = p[
|
|
605
|
+
for (var P = 0; P < p.length; P++) {
|
|
606
|
+
var G = p[P];
|
|
607
607
|
zt(G) && tr(G, T);
|
|
608
608
|
}
|
|
609
609
|
else if (zt(p))
|
|
@@ -621,21 +621,21 @@ Check the top-level render call using <` + M + ">.");
|
|
|
621
621
|
var T = p.type;
|
|
622
622
|
if (T == null || typeof T == "string")
|
|
623
623
|
return;
|
|
624
|
-
var
|
|
624
|
+
var P;
|
|
625
625
|
if (typeof T == "function")
|
|
626
|
-
|
|
626
|
+
P = T.propTypes;
|
|
627
627
|
else if (typeof T == "object" && (T.$$typeof === f || // Note: Memo only checks outer props here.
|
|
628
628
|
// Inner props are checked in the reconciler.
|
|
629
629
|
T.$$typeof === l))
|
|
630
|
-
|
|
630
|
+
P = T.propTypes;
|
|
631
631
|
else
|
|
632
632
|
return;
|
|
633
|
-
if (
|
|
634
|
-
var G =
|
|
635
|
-
ka(
|
|
633
|
+
if (P) {
|
|
634
|
+
var G = N(T);
|
|
635
|
+
ka(P, p.props, "prop", G, p);
|
|
636
636
|
} else if (T.PropTypes !== void 0 && !qt) {
|
|
637
637
|
qt = !0;
|
|
638
|
-
var ae =
|
|
638
|
+
var ae = N(T);
|
|
639
639
|
y("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", ae || "Unknown");
|
|
640
640
|
}
|
|
641
641
|
typeof T.getDefaultProps == "function" && !T.getDefaultProps.isReactClassApproved && y("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
|
|
@@ -643,8 +643,8 @@ Check the top-level render call using <` + M + ">.");
|
|
|
643
643
|
}
|
|
644
644
|
function Ia(p) {
|
|
645
645
|
{
|
|
646
|
-
for (var T = Object.keys(p.props),
|
|
647
|
-
var G = T[
|
|
646
|
+
for (var T = Object.keys(p.props), P = 0; P < T.length; P++) {
|
|
647
|
+
var G = T[P];
|
|
648
648
|
if (G !== "children" && G !== "key") {
|
|
649
649
|
qe(p), y("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", G), qe(null);
|
|
650
650
|
break;
|
|
@@ -653,7 +653,7 @@ Check the top-level render call using <` + M + ">.");
|
|
|
653
653
|
p.ref !== null && (qe(p), y("Invalid attribute `ref` supplied to `React.Fragment`."), qe(null));
|
|
654
654
|
}
|
|
655
655
|
}
|
|
656
|
-
function rr(p, T,
|
|
656
|
+
function rr(p, T, P, G, ae, ue) {
|
|
657
657
|
{
|
|
658
658
|
var re = O(p);
|
|
659
659
|
if (!re) {
|
|
@@ -662,9 +662,9 @@ Check the top-level render call using <` + M + ">.");
|
|
|
662
662
|
var be = Fa(ae);
|
|
663
663
|
be ? te += be : te += Xn();
|
|
664
664
|
var pe;
|
|
665
|
-
p === null ? pe = "null" : Dt(p) ? pe = "array" : p !== void 0 && p.$$typeof === t ? (pe = "<" + (
|
|
665
|
+
p === null ? pe = "null" : Dt(p) ? pe = "array" : p !== void 0 && p.$$typeof === t ? (pe = "<" + (N(p.type) || "Unknown") + " />", te = " Did you accidentally export a JSX literal instead of a component?") : pe = typeof p, y("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", pe, te);
|
|
666
666
|
}
|
|
667
|
-
var he = Oa(p, T,
|
|
667
|
+
var he = Oa(p, T, P, ae, ue);
|
|
668
668
|
if (he == null)
|
|
669
669
|
return he;
|
|
670
670
|
if (re) {
|
|
@@ -683,11 +683,11 @@ Check the top-level render call using <` + M + ">.");
|
|
|
683
683
|
return p === r ? Ia(he) : Da(he), he;
|
|
684
684
|
}
|
|
685
685
|
}
|
|
686
|
-
function Ba(p, T,
|
|
687
|
-
return rr(p, T,
|
|
686
|
+
function Ba(p, T, P) {
|
|
687
|
+
return rr(p, T, P, !0);
|
|
688
688
|
}
|
|
689
|
-
function qa(p, T,
|
|
690
|
-
return rr(p, T,
|
|
689
|
+
function qa(p, T, P) {
|
|
690
|
+
return rr(p, T, P, !1);
|
|
691
691
|
}
|
|
692
692
|
var za = qa, Za = Ba;
|
|
693
693
|
Je.Fragment = r, Je.jsx = za, Je.jsxs = Za;
|
|
@@ -724,44 +724,44 @@ function us(e, t, n) {
|
|
|
724
724
|
}, []);
|
|
725
725
|
var j = ot(function() {
|
|
726
726
|
var w = function(O) {
|
|
727
|
-
var
|
|
728
|
-
return o.current = f.current = null, i.current = O, d.current = u.current.apply(ee,
|
|
729
|
-
}, x = function(O,
|
|
730
|
-
h && cancelAnimationFrame(c.current), c.current = h ? requestAnimationFrame(O) : setTimeout(O,
|
|
727
|
+
var A = o.current, ee = f.current;
|
|
728
|
+
return o.current = f.current = null, i.current = O, d.current = u.current.apply(ee, A);
|
|
729
|
+
}, x = function(O, A) {
|
|
730
|
+
h && cancelAnimationFrame(c.current), c.current = h ? requestAnimationFrame(O) : setTimeout(O, A);
|
|
731
731
|
}, R = function(O) {
|
|
732
732
|
if (!l.current)
|
|
733
733
|
return !1;
|
|
734
|
-
var
|
|
735
|
-
return !s.current ||
|
|
734
|
+
var A = O - s.current;
|
|
735
|
+
return !s.current || A >= t || A < 0 || _ && O - i.current >= y;
|
|
736
736
|
}, F = function(O) {
|
|
737
737
|
return c.current = null, v && o.current ? w(O) : (o.current = f.current = null, d.current);
|
|
738
|
-
},
|
|
739
|
-
var
|
|
740
|
-
if (R(
|
|
741
|
-
return F(
|
|
738
|
+
}, M = function O() {
|
|
739
|
+
var A = Date.now();
|
|
740
|
+
if (R(A))
|
|
741
|
+
return F(A);
|
|
742
742
|
if (l.current) {
|
|
743
|
-
var ee = t - (
|
|
744
|
-
x(O,
|
|
743
|
+
var ee = t - (A - s.current), N = _ ? Math.min(ee, y - (A - i.current)) : ee;
|
|
744
|
+
x(O, N);
|
|
745
745
|
}
|
|
746
|
-
},
|
|
746
|
+
}, L = function() {
|
|
747
747
|
if (m || b) {
|
|
748
|
-
var O = Date.now(),
|
|
749
|
-
if (o.current = [].slice.call(arguments), f.current = r, s.current = O,
|
|
748
|
+
var O = Date.now(), A = R(O);
|
|
749
|
+
if (o.current = [].slice.call(arguments), f.current = r, s.current = O, A) {
|
|
750
750
|
if (!c.current && l.current)
|
|
751
|
-
return i.current = s.current, x(
|
|
751
|
+
return i.current = s.current, x(M, t), g ? w(s.current) : d.current;
|
|
752
752
|
if (_)
|
|
753
|
-
return x(
|
|
753
|
+
return x(M, t), w(s.current);
|
|
754
754
|
}
|
|
755
|
-
return c.current || x(
|
|
755
|
+
return c.current || x(M, t), d.current;
|
|
756
756
|
}
|
|
757
757
|
};
|
|
758
|
-
return
|
|
758
|
+
return L.cancel = function() {
|
|
759
759
|
c.current && (h ? cancelAnimationFrame(c.current) : clearTimeout(c.current)), i.current = 0, o.current = s.current = f.current = c.current = null;
|
|
760
|
-
},
|
|
760
|
+
}, L.isPending = function() {
|
|
761
761
|
return !!c.current;
|
|
762
|
-
},
|
|
762
|
+
}, L.flush = function() {
|
|
763
763
|
return c.current ? F(Date.now()) : d.current;
|
|
764
|
-
},
|
|
764
|
+
}, L;
|
|
765
765
|
}, [g, _, t, y, v, h, m, b]);
|
|
766
766
|
return j;
|
|
767
767
|
}
|
|
@@ -773,7 +773,7 @@ let Zt;
|
|
|
773
773
|
const ct = (e = !0, t = !1, n = "window") => {
|
|
774
774
|
if (!e)
|
|
775
775
|
return;
|
|
776
|
-
const [r, s] =
|
|
776
|
+
const [r, s] = Z.useState(0) || [!1, () => {
|
|
777
777
|
}];
|
|
778
778
|
ie(() => (o(), window.addEventListener("resize", f), () => {
|
|
779
779
|
clearTimeout(Zt), f.flush(), window.removeEventListener("resize", f);
|
|
@@ -804,11 +804,11 @@ const ct = (e = !0, t = !1, n = "window") => {
|
|
|
804
804
|
}) => {
|
|
805
805
|
if (!window)
|
|
806
806
|
return;
|
|
807
|
-
const [s, i] =
|
|
807
|
+
const [s, i] = Z.useState({
|
|
808
808
|
current: 0,
|
|
809
809
|
past: 0
|
|
810
810
|
}) || [!1, () => {
|
|
811
|
-
}], [c, o] =
|
|
811
|
+
}], [c, o] = Z.useState({
|
|
812
812
|
scrollDown: !1,
|
|
813
813
|
scrollUp: !1
|
|
814
814
|
}) || [!1, () => {
|
|
@@ -1292,7 +1292,7 @@ Thank you for helping to protect the Apolitical community from abusive content.`
|
|
|
1292
1292
|
}
|
|
1293
1293
|
}
|
|
1294
1294
|
return r;
|
|
1295
|
-
}, wt = (e, t) =>
|
|
1295
|
+
}, wt = (e, t) => Z.Children.map(e, (n) => Object.is(n, null) ? n : Z.cloneElement(n, {
|
|
1296
1296
|
...t
|
|
1297
1297
|
})), js = (e = 0) => {
|
|
1298
1298
|
setTimeout(() => {
|
|
@@ -1332,14 +1332,14 @@ Thank you for helping to protect the Apolitical community from abusive content.`
|
|
|
1332
1332
|
},
|
|
1333
1333
|
disabled: typeof f == "object" && "isClickable" in f ? !f.isClickable : f
|
|
1334
1334
|
};
|
|
1335
|
-
return s && (i = "a", v.href = s),
|
|
1335
|
+
return s && (i = "a", v.href = s), Z.createElement(
|
|
1336
1336
|
i,
|
|
1337
1337
|
v,
|
|
1338
1338
|
u || (d ? /* @__PURE__ */ a.jsx(_e, { showOnFocus: !1, children: d }) : null)
|
|
1339
1339
|
);
|
|
1340
1340
|
}, Nt = ({ buttons: e, className: t = "", ...n }) => {
|
|
1341
1341
|
const r = e.length > 1 ? "ul" : "p", s = e.map((i, c) => r === "p" ? /* @__PURE__ */ a.jsx(se, { ...i }, c) : /* @__PURE__ */ a.jsx("li", { children: /* @__PURE__ */ a.jsx(se, { ...i }) }, c));
|
|
1342
|
-
return
|
|
1342
|
+
return Z.createElement(r, {
|
|
1343
1343
|
className: E("button-wrapper", t),
|
|
1344
1344
|
...n,
|
|
1345
1345
|
children: s
|
|
@@ -1362,7 +1362,7 @@ const Le = ({ className: e = "", maxWidth: t = !1 }) => {
|
|
|
1362
1362
|
const f = { ...o };
|
|
1363
1363
|
return s && (f.onClick = s), i && (f["data-gtm-event-context"] = i), c && (f["data-gtm-event-type"] = c), /* @__PURE__ */ a.jsx("a", { href: e, className: E("gtm-trackable", r), ...f, children: t });
|
|
1364
1364
|
}
|
|
1365
|
-
return n ?
|
|
1365
|
+
return n ? Z.createElement(n, { children: t, className: r, ...o }) : t;
|
|
1366
1366
|
}, lr = {
|
|
1367
1367
|
card: {
|
|
1368
1368
|
range: [
|
|
@@ -1524,7 +1524,7 @@ const On = ({ image: e, className: t, testId: n }) => {
|
|
|
1524
1524
|
};
|
|
1525
1525
|
let Xe = !1;
|
|
1526
1526
|
const Ss = ({ isOpen: e = !1, isLoading: t = !1, children: n }) => {
|
|
1527
|
-
const r =
|
|
1527
|
+
const r = V(), s = me(null), [i, c] = J("hidden");
|
|
1528
1528
|
ie(() => {
|
|
1529
1529
|
const f = s.current;
|
|
1530
1530
|
if (f)
|
|
@@ -1566,7 +1566,7 @@ const bc = ({ text: e, buttons: t, className: n = "" }) => {
|
|
|
1566
1566
|
children: s.text
|
|
1567
1567
|
});
|
|
1568
1568
|
}), /* @__PURE__ */ a.jsx(Ye, { className: E("download-section", n), children: /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
|
|
1569
|
-
|
|
1569
|
+
Z.createElement(
|
|
1570
1570
|
typeof e == "string" ? "h2" : e.element,
|
|
1571
1571
|
{ className: "text" },
|
|
1572
1572
|
typeof e == "string" ? e : e.text
|
|
@@ -1587,7 +1587,7 @@ const yc = ({
|
|
|
1587
1587
|
text: typeof e == "string" ? e : typeof e == "object" ? e.text : ""
|
|
1588
1588
|
};
|
|
1589
1589
|
return /* @__PURE__ */ a.jsxs("div", { className: E("logos", n), children: [
|
|
1590
|
-
e &&
|
|
1590
|
+
e && Z.createElement(s.element, { className: "title" }, s.text),
|
|
1591
1591
|
/* @__PURE__ */ a.jsx(
|
|
1592
1592
|
"ul",
|
|
1593
1593
|
{
|
|
@@ -1683,7 +1683,7 @@ const Cs = [
|
|
|
1683
1683
|
f.map((l) => {
|
|
1684
1684
|
if (u[l] && typeof u[l] == "object") {
|
|
1685
1685
|
const { text: m, element: h = "" } = u[l];
|
|
1686
|
-
return l === "text" ? /* @__PURE__ */ a.jsx(bn, { overrideType: "text-only", className: "text", children: m }, l) :
|
|
1686
|
+
return l === "text" ? /* @__PURE__ */ a.jsx(bn, { overrideType: "text-only", className: "text", children: m }, l) : Z.createElement(h, { key: l, className: l }, m);
|
|
1687
1687
|
}
|
|
1688
1688
|
return null;
|
|
1689
1689
|
}),
|
|
@@ -1783,7 +1783,7 @@ function Ns(e) {
|
|
|
1783
1783
|
var t = e.children, n = e.client, r = e.apiKey, s = e.options, i = ot(function() {
|
|
1784
1784
|
return n && r && console.warn("[PostHog.js] You have provided both a client and an apiKey to PostHogProvider. The apiKey will be ignored in favour of the client."), n && s && console.warn("[PostHog.js] You have provided both a client and options to PostHogProvider. The options will be ignored in favour of the client."), n || (r && (xt.__loaded && console.warn("[PostHog.js] was already loaded elsewhere. This may cause issues."), xt.init(r, s)), xt);
|
|
1785
1785
|
}, [n, r]);
|
|
1786
|
-
return
|
|
1786
|
+
return Z.createElement(Rs.Provider, { value: { client: i } }, t);
|
|
1787
1787
|
}
|
|
1788
1788
|
const As = ({ children: e, user: t }) => t.isLoading ? null : process.env.REACT_APP_PUBLIC_POSTHOG_KEY ? /* @__PURE__ */ a.jsx(
|
|
1789
1789
|
Ns,
|
|
@@ -1830,7 +1830,7 @@ const Fs = ({ children: e, user: t }) => /* @__PURE__ */ a.jsx(Oe.Provider, { va
|
|
|
1830
1830
|
}
|
|
1831
1831
|
}, Tc = "200,000+";
|
|
1832
1832
|
const Vr = ({ label: e = !1, className: t = "", children: n }) => {
|
|
1833
|
-
const r =
|
|
1833
|
+
const r = V();
|
|
1834
1834
|
return /* @__PURE__ */ a.jsxs("details", { className: E("collapsible-section", t), children: [
|
|
1835
1835
|
/* @__PURE__ */ a.jsx("summary", { children: e || r.formatMessage({ id: "collapsibleSection_summary" }) }),
|
|
1836
1836
|
/* @__PURE__ */ a.jsx("div", { className: "content", children: n })
|
|
@@ -1907,7 +1907,7 @@ const Ls = ({
|
|
|
1907
1907
|
Ve,
|
|
1908
1908
|
{
|
|
1909
1909
|
options: {
|
|
1910
|
-
wrapper:
|
|
1910
|
+
wrapper: Z.Fragment,
|
|
1911
1911
|
forceBlock: !0,
|
|
1912
1912
|
overrides: Yr
|
|
1913
1913
|
},
|
|
@@ -1922,7 +1922,7 @@ const Ec = ({
|
|
|
1922
1922
|
text: r,
|
|
1923
1923
|
children: s
|
|
1924
1924
|
}) => {
|
|
1925
|
-
const i =
|
|
1925
|
+
const i = V(), c = me(null), [o, f] = J(""), [d, u] = J("closed");
|
|
1926
1926
|
ie(() => {
|
|
1927
1927
|
const h = c.current;
|
|
1928
1928
|
if (h)
|
|
@@ -1973,8 +1973,8 @@ const Ec = ({
|
|
|
1973
1973
|
]
|
|
1974
1974
|
}
|
|
1975
1975
|
);
|
|
1976
|
-
}, ve = () =>
|
|
1977
|
-
const t =
|
|
1976
|
+
}, ve = () => Z.Fragment, Ds = ({ children: e }) => /* @__PURE__ */ a.jsx(Fe, { variant: "secondary", children: e }), Is = ["span", "strong", "h1", "h2", "h3", "h4", "h5", "h6", "p"], Bs = ({ children: e }) => {
|
|
1977
|
+
const t = V();
|
|
1978
1978
|
if (!e)
|
|
1979
1979
|
return null;
|
|
1980
1980
|
let n = t.formatMessage({
|
|
@@ -1983,10 +1983,10 @@ const Ec = ({
|
|
|
1983
1983
|
const r = [];
|
|
1984
1984
|
for (const i of hn.toArray(e))
|
|
1985
1985
|
if (!(!i || typeof i == "string" || typeof i == "number"))
|
|
1986
|
-
if (
|
|
1986
|
+
if (Z.isValidElement(i) && i.type === "summary") {
|
|
1987
1987
|
if (i.props && i.props.children) {
|
|
1988
1988
|
for (const c of hn.toArray(i.props.children))
|
|
1989
|
-
if (!(!c || typeof c == "string" || typeof c == "number") &&
|
|
1989
|
+
if (!(!c || typeof c == "string" || typeof c == "number") && Z.isValidElement(c)) {
|
|
1990
1990
|
const o = c.type;
|
|
1991
1991
|
if (Is.includes(o)) {
|
|
1992
1992
|
for (n = c.props.children; typeof n != "string" && (Array.isArray(n) && n[0].props && n[0].props.children && n[0].props.children[0]); )
|
|
@@ -2024,7 +2024,7 @@ const Ec = ({
|
|
|
2024
2024
|
}
|
|
2025
2025
|
return /* @__PURE__ */ a.jsx("div", { ...t, children: e });
|
|
2026
2026
|
}, zs = (e) => {
|
|
2027
|
-
const t =
|
|
2027
|
+
const t = V(), n = Date.now().toString();
|
|
2028
2028
|
let r = "default";
|
|
2029
2029
|
const s = e.src;
|
|
2030
2030
|
return s.includes("youtube") || s.includes("vimeo") ? r = "video" : s.includes("riddle") || s.includes("sli.do") ? r = "poll" : s.includes("padlet") && (r = "padlet"), /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
|
|
@@ -2053,10 +2053,10 @@ const Ec = ({
|
|
|
2053
2053
|
t.href && (t.href.includes("http:") || t.href.includes("https:")) && !t.target && (n.target = "_blank");
|
|
2054
2054
|
let r = e, s = !1;
|
|
2055
2055
|
for (const i of hn.toArray(e))
|
|
2056
|
-
if (!(!i || typeof i == "string" || typeof i == "number") &&
|
|
2056
|
+
if (!(!i || typeof i == "string" || typeof i == "number") && Z.isValidElement(i)) {
|
|
2057
2057
|
const c = i.type;
|
|
2058
2058
|
if (["button", "center", "span", "strong"].includes(c) && i.props && i.props.children && i.props.children[0])
|
|
2059
|
-
for ((c === "button" || dr(i.props.children[0]) === "button") && (s = !0), r = i.props.children[0]; r && typeof r != "string" && !(typeof r == "boolean" || typeof r == "number" || !
|
|
2059
|
+
for ((c === "button" || dr(i.props.children[0]) === "button") && (s = !0), r = i.props.children[0]; r && typeof r != "string" && !(typeof r == "boolean" || typeof r == "number" || !Z.isValidElement(r)); )
|
|
2060
2060
|
if (r.props && r.props.children && r.props.children[0])
|
|
2061
2061
|
r = r.props.children[0], r && dr(r) === "button" && (s = !0);
|
|
2062
2062
|
else
|
|
@@ -2104,7 +2104,7 @@ const Hs = {
|
|
|
2104
2104
|
}) => {
|
|
2105
2105
|
n = n.replace(/^<br\/?>/, "");
|
|
2106
2106
|
const s = {
|
|
2107
|
-
wrapper:
|
|
2107
|
+
wrapper: Z.Fragment,
|
|
2108
2108
|
forceBlock: !0,
|
|
2109
2109
|
overrides: Hs[r]
|
|
2110
2110
|
};
|
|
@@ -2120,8 +2120,8 @@ const Ws = ({
|
|
|
2120
2120
|
const i = e ? { "--max-width": `${e / 16}rem` } : {};
|
|
2121
2121
|
return /* @__PURE__ */ a.jsxs("section", { className: E("page-heading", s), children: [
|
|
2122
2122
|
/* @__PURE__ */ a.jsxs("div", { className: E("content", { "has-max-width": e }), style: i, children: [
|
|
2123
|
-
t && t.text &&
|
|
2124
|
-
n && n.text &&
|
|
2123
|
+
t && t.text && Z.createElement(t.element || "h1", { className: "title" }, t.text),
|
|
2124
|
+
n && n.text && Z.createElement(
|
|
2125
2125
|
n.element || "h2",
|
|
2126
2126
|
{ className: "text-medium" },
|
|
2127
2127
|
n.text
|
|
@@ -2142,7 +2142,7 @@ const yn = ({
|
|
|
2142
2142
|
children: t = null,
|
|
2143
2143
|
className: n = "",
|
|
2144
2144
|
...r
|
|
2145
|
-
}) =>
|
|
2145
|
+
}) => Z.createElement(
|
|
2146
2146
|
e,
|
|
2147
2147
|
{
|
|
2148
2148
|
...r,
|
|
@@ -2157,7 +2157,7 @@ const Vs = ({ author: e, authorCite: t, content: n }) => /* @__PURE__ */ a.jsxs(
|
|
|
2157
2157
|
t && /* @__PURE__ */ a.jsx("p", { className: "author-cite text-small", children: /* @__PURE__ */ a.jsx("cite", { children: t }) })
|
|
2158
2158
|
] }), Sc = Ae(Vs);
|
|
2159
2159
|
const Ys = ({ progress: e = 0, text: t = !1, className: n = "" }) => {
|
|
2160
|
-
const r =
|
|
2160
|
+
const r = V(), s = e > 75 ? 100 : e > 50 ? 75 : e > 25 ? 50 : e > 5 ? 25 : 0, i = { "--progress": `${e}%` };
|
|
2161
2161
|
return /* @__PURE__ */ a.jsx(
|
|
2162
2162
|
"span",
|
|
2163
2163
|
{
|
|
@@ -2168,7 +2168,7 @@ const Ys = ({ progress: e = 0, text: t = !1, className: n = "" }) => {
|
|
|
2168
2168
|
);
|
|
2169
2169
|
}, Gs = Ae(Ys);
|
|
2170
2170
|
const Ht = "loadingBlock_", Ks = ({ progress: e = 0, steps: t = !1, className: n = "" }) => {
|
|
2171
|
-
const r =
|
|
2171
|
+
const r = V();
|
|
2172
2172
|
t || (t = {
|
|
2173
2173
|
0: { text: r.formatMessage({ id: `${Ht}loading` }) },
|
|
2174
2174
|
75: { text: r.formatMessage({ id: `${Ht}almostDone` }) },
|
|
@@ -2305,12 +2305,12 @@ const Ln = ({
|
|
|
2305
2305
|
gtmType: s = "member-click",
|
|
2306
2306
|
className: i = ""
|
|
2307
2307
|
}) => {
|
|
2308
|
-
const c =
|
|
2308
|
+
const c = V(), o = Jr(t);
|
|
2309
2309
|
o.name || (o.name = c.formatMessage({
|
|
2310
2310
|
id: `member_${typeof t == "string" ? t : "community"}`
|
|
2311
2311
|
}));
|
|
2312
2312
|
const { name: f, url: d, image: u } = o, l = Js(o), m = n && n.createdAt ? _n(n.createdAt) : !1, h = n && n.createdAt ? Hr(n.createdAt) : "";
|
|
2313
|
-
return
|
|
2313
|
+
return Z.createElement(e, {
|
|
2314
2314
|
className: E("member text-medium", i),
|
|
2315
2315
|
children: /* @__PURE__ */ a.jsxs(
|
|
2316
2316
|
lt,
|
|
@@ -2355,8 +2355,8 @@ const fr = {
|
|
|
2355
2355
|
className: f = "",
|
|
2356
2356
|
...d
|
|
2357
2357
|
}) => {
|
|
2358
|
-
const u =
|
|
2359
|
-
return !n || n.length === 0 ? null :
|
|
2358
|
+
const u = V();
|
|
2359
|
+
return !n || n.length === 0 ? null : Z.createElement(e, {
|
|
2360
2360
|
...d,
|
|
2361
2361
|
className: E("contributors", f, s, { "has-gap": i }),
|
|
2362
2362
|
children: /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
|
|
@@ -2394,7 +2394,7 @@ const fr = {
|
|
|
2394
2394
|
] })
|
|
2395
2395
|
});
|
|
2396
2396
|
}, Xs = ({ type: e, data: t }) => {
|
|
2397
|
-
const n =
|
|
2397
|
+
const n = V(), {
|
|
2398
2398
|
answers: r,
|
|
2399
2399
|
createdAt: s,
|
|
2400
2400
|
dateHasPassed: i,
|
|
@@ -2511,7 +2511,7 @@ const fr = {
|
|
|
2511
2511
|
}
|
|
2512
2512
|
}, ei = ({ data: e, cta: t, link: n, gtmContext: r }) => {
|
|
2513
2513
|
var g;
|
|
2514
|
-
const s =
|
|
2514
|
+
const s = V(), [i, c] = J({
|
|
2515
2515
|
loading: !1,
|
|
2516
2516
|
registered: e.registered || !1
|
|
2517
2517
|
});
|
|
@@ -2598,13 +2598,13 @@ const ni = {
|
|
|
2598
2598
|
gtmContext: s = "Carousel",
|
|
2599
2599
|
className: i = ""
|
|
2600
2600
|
}) => {
|
|
2601
|
-
const c =
|
|
2601
|
+
const c = V(), o = $e(Oe), f = o && typeof o.id == "string", [d, u] = J({
|
|
2602
2602
|
data: null,
|
|
2603
2603
|
isLoading: !0
|
|
2604
2604
|
}), { data: l, isLoading: m } = d, h = Fr(() => {
|
|
2605
|
-
n(t, f).then((
|
|
2606
|
-
u(() => ({ data:
|
|
2607
|
-
}).catch(() => u((
|
|
2605
|
+
n(t, f).then((M) => {
|
|
2606
|
+
u(() => ({ data: M, isLoading: !1 }));
|
|
2607
|
+
}).catch(() => u((M) => ({ ...M, isLoading: !1 })));
|
|
2608
2608
|
}, [e]);
|
|
2609
2609
|
if (ie(() => {
|
|
2610
2610
|
h();
|
|
@@ -2646,7 +2646,7 @@ const ni = {
|
|
|
2646
2646
|
}),
|
|
2647
2647
|
style: F,
|
|
2648
2648
|
"data-testid": `${g}-card`,
|
|
2649
|
-
children:
|
|
2649
|
+
children: Z.createElement(
|
|
2650
2650
|
w ? "a" : "div",
|
|
2651
2651
|
R,
|
|
2652
2652
|
/* @__PURE__ */ a.jsxs(a.Fragment, { children: [
|
|
@@ -2685,12 +2685,12 @@ const ni = {
|
|
|
2685
2685
|
),
|
|
2686
2686
|
l.partner && /* @__PURE__ */ a.jsx("p", { className: "partners", "data-testid": "partners", children: He(l.partner.title, x.partner) }),
|
|
2687
2687
|
/* Text */
|
|
2688
|
-
["title", "text", "secondaryText"].map((
|
|
2689
|
-
const
|
|
2690
|
-
if (!
|
|
2688
|
+
["title", "text", "secondaryText"].map((M) => {
|
|
2689
|
+
const L = l[M];
|
|
2690
|
+
if (!L)
|
|
2691
2691
|
return null;
|
|
2692
|
-
const O = ps(
|
|
2693
|
-
return /* @__PURE__ */ a.jsx("p", { className: O, "data-testid": O, children: He(
|
|
2692
|
+
const O = ps(M);
|
|
2693
|
+
return /* @__PURE__ */ a.jsx("p", { className: O, "data-testid": O, children: He(L, x[M]) }, M);
|
|
2694
2694
|
}),
|
|
2695
2695
|
/* @__PURE__ */ a.jsx(Xs, { type: _ || "", data: l }),
|
|
2696
2696
|
/* @__PURE__ */ a.jsx(ei, { data: l, cta: r, link: w || "", gtmContext: s })
|
|
@@ -2714,11 +2714,11 @@ const ri = ({ cards: e, cardTypes: t, className: n = "", ...r }) => /* @__PURE__
|
|
|
2714
2714
|
const s = t * n <= e, i = e < t * (n + 1), c = r.includes(Math.floor(e / t));
|
|
2715
2715
|
return s && i || c;
|
|
2716
2716
|
}, si = ({ id: e, title: t }) => {
|
|
2717
|
-
const n =
|
|
2717
|
+
const n = V();
|
|
2718
2718
|
if (!t || !t.text)
|
|
2719
2719
|
return null;
|
|
2720
2720
|
const { text: r, element: s = "h2", variant: i = "default", size: c = "medium", link: o } = t;
|
|
2721
|
-
return
|
|
2721
|
+
return Z.createElement(s, {
|
|
2722
2722
|
className: E("title", i, c, {
|
|
2723
2723
|
"highlighted-title": i === "highlighted"
|
|
2724
2724
|
}),
|
|
@@ -2752,8 +2752,7 @@ const ii = ({
|
|
|
2752
2752
|
className: i,
|
|
2753
2753
|
gtmContext: c
|
|
2754
2754
|
}) => {
|
|
2755
|
-
|
|
2756
|
-
const o = W(), [f, d] = J({
|
|
2755
|
+
const o = V(), [f, d] = J({
|
|
2757
2756
|
cardsPerPage: 4,
|
|
2758
2757
|
isLoading: !0
|
|
2759
2758
|
}), { cardsPerPage: u, isLoading: l } = f, [m, h] = J({
|
|
@@ -2761,41 +2760,41 @@ const ii = ({
|
|
|
2761
2760
|
loadedPages: [0]
|
|
2762
2761
|
}), { currentPage: g, loadedPages: v } = m, _ = t.length, b = Math.ceil(_ / u), y = me(null), j = ct(!0, !0, y == null ? void 0 : y.current);
|
|
2763
2762
|
ie(() => {
|
|
2764
|
-
let
|
|
2765
|
-
j && (j >= Wt.fourCards ?
|
|
2766
|
-
...
|
|
2767
|
-
cardsPerPage:
|
|
2763
|
+
let M = 1;
|
|
2764
|
+
j && (j >= Wt.fourCards ? M = 4 : j >= Wt.threeCards ? M = 3 : j >= Wt.twoCards && (M = 2), M > _ && (M = _)), d((L) => ({
|
|
2765
|
+
...L,
|
|
2766
|
+
cardsPerPage: M,
|
|
2768
2767
|
isLoading: !1
|
|
2769
2768
|
}));
|
|
2770
2769
|
}, [j, _]);
|
|
2771
|
-
const w = (
|
|
2772
|
-
let
|
|
2773
|
-
if (typeof
|
|
2774
|
-
if (
|
|
2770
|
+
const w = (M = "next") => {
|
|
2771
|
+
let L = g;
|
|
2772
|
+
if (typeof M == "string")
|
|
2773
|
+
if (M === "next")
|
|
2775
2774
|
if (g < b - 1)
|
|
2776
|
-
|
|
2775
|
+
L = g + 1;
|
|
2777
2776
|
else
|
|
2778
2777
|
return;
|
|
2779
2778
|
else if (g > 0)
|
|
2780
|
-
|
|
2779
|
+
L = g - 1;
|
|
2781
2780
|
else
|
|
2782
2781
|
return;
|
|
2783
2782
|
else
|
|
2784
|
-
|
|
2785
|
-
h((
|
|
2786
|
-
...
|
|
2787
|
-
currentPage:
|
|
2788
|
-
loadedPages: [.../* @__PURE__ */ new Set([...v,
|
|
2783
|
+
L = M;
|
|
2784
|
+
h((O) => ({
|
|
2785
|
+
...O,
|
|
2786
|
+
currentPage: L,
|
|
2787
|
+
loadedPages: [.../* @__PURE__ */ new Set([...v, L])]
|
|
2789
2788
|
}));
|
|
2790
|
-
}, x = (
|
|
2791
|
-
mt =
|
|
2792
|
-
}, R = (
|
|
2789
|
+
}, x = (M) => {
|
|
2790
|
+
mt = M.touches[0].clientX;
|
|
2791
|
+
}, R = (M) => {
|
|
2793
2792
|
if (mt === null)
|
|
2794
2793
|
return;
|
|
2795
|
-
const
|
|
2796
|
-
|
|
2794
|
+
const L = M.touches[0].clientX, O = mt - L;
|
|
2795
|
+
O > 5 ? w("next") : O < -5 && w("previous"), mt = null;
|
|
2797
2796
|
}, F = {
|
|
2798
|
-
"--width": `${
|
|
2797
|
+
"--width": `${j || 0}px`,
|
|
2799
2798
|
"--total-cards": _,
|
|
2800
2799
|
"--cards-per-page": u,
|
|
2801
2800
|
"--page": g
|
|
@@ -2816,25 +2815,25 @@ const ii = ({
|
|
|
2816
2815
|
onTouchMove: R,
|
|
2817
2816
|
style: F,
|
|
2818
2817
|
"data-testid": "carousel-list",
|
|
2819
|
-
children: t.map((
|
|
2820
|
-
let
|
|
2821
|
-
return
|
|
2818
|
+
children: t.map((M, L) => {
|
|
2819
|
+
let O = M && M.sys && M.sys.id ? `${e}-card-${M.sys.id}` : null;
|
|
2820
|
+
return O && ai(L, u, g, v) ? /* @__PURE__ */ a.jsx(
|
|
2822
2821
|
ea,
|
|
2823
2822
|
{
|
|
2824
|
-
id:
|
|
2825
|
-
card: { ...
|
|
2823
|
+
id: O,
|
|
2824
|
+
card: { ...M, contentType: n[L] },
|
|
2826
2825
|
buildCardData: r,
|
|
2827
2826
|
gtmContext: c
|
|
2828
2827
|
},
|
|
2829
|
-
|
|
2830
|
-
) : (
|
|
2828
|
+
O
|
|
2829
|
+
) : (O = O || `${e}-card-${L}`, /* @__PURE__ */ a.jsx(
|
|
2831
2830
|
Ee,
|
|
2832
2831
|
{
|
|
2833
2832
|
element: "li",
|
|
2834
2833
|
className: "card-wrapper",
|
|
2835
2834
|
"data-testid": "card-placeholder"
|
|
2836
2835
|
},
|
|
2837
|
-
|
|
2836
|
+
O
|
|
2838
2837
|
));
|
|
2839
2838
|
})
|
|
2840
2839
|
}
|
|
@@ -2846,8 +2845,8 @@ const ii = ({
|
|
|
2846
2845
|
variant: "secondary",
|
|
2847
2846
|
size: "large",
|
|
2848
2847
|
icon: { icon: "chevron_left" },
|
|
2849
|
-
onClick: (
|
|
2850
|
-
|
|
2848
|
+
onClick: (M) => {
|
|
2849
|
+
M.preventDefault(), M.stopPropagation(), w("previous");
|
|
2851
2850
|
},
|
|
2852
2851
|
screenreaderText: o.formatMessage({
|
|
2853
2852
|
id: "carousel_pagination_previous"
|
|
@@ -2855,29 +2854,29 @@ const ii = ({
|
|
|
2855
2854
|
disabled: g <= 0
|
|
2856
2855
|
}
|
|
2857
2856
|
) }),
|
|
2858
|
-
[...Array(b)].map((
|
|
2857
|
+
[...Array(b)].map((M, L) => /* @__PURE__ */ a.jsx("li", { "data-testid": "carousel-controls-button", children: /* @__PURE__ */ a.jsx(
|
|
2859
2858
|
"button",
|
|
2860
2859
|
{
|
|
2861
2860
|
className: E("page-indicator", {
|
|
2862
|
-
selected:
|
|
2861
|
+
selected: L === g
|
|
2863
2862
|
}),
|
|
2864
|
-
onClick: (
|
|
2865
|
-
|
|
2863
|
+
onClick: (O) => {
|
|
2864
|
+
O.preventDefault(), O.stopPropagation(), w(L);
|
|
2866
2865
|
},
|
|
2867
2866
|
children: /* @__PURE__ */ a.jsx(_e, { showOnFocus: !1, children: o.formatMessage(
|
|
2868
2867
|
{ id: "carousel_pagination_page" },
|
|
2869
|
-
{ number:
|
|
2868
|
+
{ number: L + 1, total: b }
|
|
2870
2869
|
) })
|
|
2871
2870
|
}
|
|
2872
|
-
) }, `page-indicator-${
|
|
2871
|
+
) }, `page-indicator-${L}`)),
|
|
2873
2872
|
/* @__PURE__ */ a.jsx("li", { className: "arrow next", children: /* @__PURE__ */ a.jsx(
|
|
2874
2873
|
se,
|
|
2875
2874
|
{
|
|
2876
2875
|
variant: "secondary",
|
|
2877
2876
|
size: "large",
|
|
2878
2877
|
icon: { icon: "chevron_right" },
|
|
2879
|
-
onClick: (
|
|
2880
|
-
|
|
2878
|
+
onClick: (M) => {
|
|
2879
|
+
M.preventDefault(), M.stopPropagation(), w("next");
|
|
2881
2880
|
},
|
|
2882
2881
|
screenreaderText: o.formatMessage({ id: "carousel_pagination_next" }),
|
|
2883
2882
|
disabled: g >= b - 1
|
|
@@ -2926,7 +2925,7 @@ const Vt = "joinCommunityButton", ta = ({
|
|
|
2926
2925
|
}, leave: () => {
|
|
2927
2926
|
} }
|
|
2928
2927
|
}) => {
|
|
2929
|
-
const s =
|
|
2928
|
+
const s = V(), i = $e(Oe), c = i && typeof i.id == "string", [o, f] = J(e), [d, u] = J(e ? "joined" : "notJoined");
|
|
2930
2929
|
ie(() => {
|
|
2931
2930
|
d === "joining" ? u("joined") : d === "leaving" && u("notJoined");
|
|
2932
2931
|
}, [o]);
|
|
@@ -2959,7 +2958,7 @@ const Yt = "communityDetails_", Pc = ({
|
|
|
2959
2958
|
members: { number: r = 0, data: s = [] } = { number: 0, data: [] },
|
|
2960
2959
|
functions: { invite: i, ...c }
|
|
2961
2960
|
}) => {
|
|
2962
|
-
const o =
|
|
2961
|
+
const o = V(), f = 5, d = r || s.length, u = s.length ? s : Array(f).fill({}), l = `/communities/${n}/members` === window.location.pathname;
|
|
2963
2962
|
return /* @__PURE__ */ a.jsxs("div", { className: E("community-details", e), children: [
|
|
2964
2963
|
/* @__PURE__ */ a.jsx(Le, {}),
|
|
2965
2964
|
/* @__PURE__ */ a.jsxs("div", { className: "member-details", children: [
|
|
@@ -3000,7 +2999,7 @@ const Yt = "communityDetails_", Pc = ({
|
|
|
3000
2999
|
] });
|
|
3001
3000
|
};
|
|
3002
3001
|
const Mc = ({ breadcrumbs: e, cutoff: t = 20, className: n = "" }) => {
|
|
3003
|
-
const r =
|
|
3002
|
+
const r = V();
|
|
3004
3003
|
return /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
|
|
3005
3004
|
/* @__PURE__ */ a.jsx(
|
|
3006
3005
|
_e,
|
|
@@ -3031,7 +3030,7 @@ const Rc = ({
|
|
|
3031
3030
|
},
|
|
3032
3031
|
className: s = ""
|
|
3033
3032
|
}) => {
|
|
3034
|
-
const i =
|
|
3033
|
+
const i = V(), c = t ? [
|
|
3035
3034
|
{
|
|
3036
3035
|
id: "all",
|
|
3037
3036
|
text: typeof t != "boolean" && t.text || i.formatMessage({ id: "filters_all" })
|
|
@@ -3085,7 +3084,7 @@ const Gt = {
|
|
|
3085
3084
|
label: o,
|
|
3086
3085
|
className: f = ""
|
|
3087
3086
|
}) => {
|
|
3088
|
-
const d =
|
|
3087
|
+
const d = V(), [u, l] = J(e);
|
|
3089
3088
|
if (ie(() => {
|
|
3090
3089
|
e !== u && l(e);
|
|
3091
3090
|
}, [e]), !r || !Object.values(r).some(
|
|
@@ -3192,14 +3191,14 @@ const ci = ({
|
|
|
3192
3191
|
options: n,
|
|
3193
3192
|
className: r = ""
|
|
3194
3193
|
}) => {
|
|
3195
|
-
const s =
|
|
3194
|
+
const s = V(), i = me(
|
|
3196
3195
|
null
|
|
3197
3196
|
), [c, o] = J(!1), f = (d) => {
|
|
3198
3197
|
i.current && d.target instanceof HTMLElement && !i.current.contains(d.target) && o(!1);
|
|
3199
3198
|
};
|
|
3200
3199
|
return ie(() => (document.addEventListener("click", f, !0), () => {
|
|
3201
3200
|
document.removeEventListener("click", f, !0);
|
|
3202
|
-
})),
|
|
3201
|
+
})), Z.createElement(e, {
|
|
3203
3202
|
ref: i,
|
|
3204
3203
|
className: E("more-menu text-medium", r),
|
|
3205
3204
|
children: /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
|
|
@@ -3263,7 +3262,7 @@ const di = [
|
|
|
3263
3262
|
href: "/solution-articles/"
|
|
3264
3263
|
}
|
|
3265
3264
|
], ui = ({ activeLink: e }) => {
|
|
3266
|
-
const t =
|
|
3265
|
+
const t = V(), n = $e(Oe), r = n && typeof n.id == "string";
|
|
3267
3266
|
return /* @__PURE__ */ a.jsxs("ul", { id: "navigation-menu", className: "text-medium", children: [
|
|
3268
3267
|
di.map(({ key: s, href: i }) => /* @__PURE__ */ a.jsx(
|
|
3269
3268
|
"li",
|
|
@@ -3354,7 +3353,7 @@ const mi = "shareLinks_", Ac = ({
|
|
|
3354
3353
|
variant: i = "default",
|
|
3355
3354
|
className: c = ""
|
|
3356
3355
|
}) => {
|
|
3357
|
-
const o =
|
|
3356
|
+
const o = V(), f = fi({ title: e, link: t, referrer: n });
|
|
3358
3357
|
return /* @__PURE__ */ a.jsxs("aside", { className: E("share-links", s, i, c), children: [
|
|
3359
3358
|
/* @__PURE__ */ a.jsx("p", { className: "text-small", children: o.formatMessage({ id: "shareLinks_label" }) }),
|
|
3360
3359
|
/* @__PURE__ */ a.jsx("ul", { children: f.map(({ key: d, icon: u, url: l, shouldRender: m = !0, onClick: h }) => {
|
|
@@ -3446,7 +3445,7 @@ const pi = {
|
|
|
3446
3445
|
}) => {
|
|
3447
3446
|
const s = ct(!0);
|
|
3448
3447
|
let i = r;
|
|
3449
|
-
return
|
|
3448
|
+
return Z.Children.count(r) === 1 && (i = Z.Children.toArray(r)[0], i.props && (i = i.props.children)), /* @__PURE__ */ a.jsx("section", { className: E("columns", `layout-${e}`, n), children: Z.Children.map(i, (c, o) => t !== !1 && o === t && s && s < pi[e] ? null : c) });
|
|
3450
3449
|
};
|
|
3451
3450
|
const gt = "emailHelperTextBox_", gi = ({
|
|
3452
3451
|
type: e,
|
|
@@ -3454,7 +3453,7 @@ const gt = "emailHelperTextBox_", gi = ({
|
|
|
3454
3453
|
redirectPath: n,
|
|
3455
3454
|
resendVerificationCode: r
|
|
3456
3455
|
}) => {
|
|
3457
|
-
const s =
|
|
3456
|
+
const s = V(), [i, c] = J({
|
|
3458
3457
|
path: `${gt}default`,
|
|
3459
3458
|
type: "default",
|
|
3460
3459
|
link: {},
|
|
@@ -3601,7 +3600,7 @@ const gt = "emailHelperTextBox_", gi = ({
|
|
|
3601
3600
|
...d
|
|
3602
3601
|
}) => {
|
|
3603
3602
|
const u = me(), l = r || u;
|
|
3604
|
-
return
|
|
3603
|
+
return Z.createElement(t, {
|
|
3605
3604
|
ref: l,
|
|
3606
3605
|
...d,
|
|
3607
3606
|
type: o,
|
|
@@ -3634,7 +3633,7 @@ const ra = ({
|
|
|
3634
3633
|
value: u,
|
|
3635
3634
|
...l
|
|
3636
3635
|
}) => {
|
|
3637
|
-
const m =
|
|
3636
|
+
const m = V(), { onChange: h, ...g } = r, v = () => {
|
|
3638
3637
|
t || h(u ? null : f);
|
|
3639
3638
|
}, _ = /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
|
|
3640
3639
|
/* @__PURE__ */ a.jsx(
|
|
@@ -3658,7 +3657,7 @@ const ra = ({
|
|
|
3658
3657
|
id: c ? `${c}_${s}` : s
|
|
3659
3658
|
}) })
|
|
3660
3659
|
] });
|
|
3661
|
-
return
|
|
3660
|
+
return Z.createElement(
|
|
3662
3661
|
n,
|
|
3663
3662
|
{
|
|
3664
3663
|
onClick: (b) => {
|
|
@@ -3769,7 +3768,7 @@ const bi = ({
|
|
|
3769
3768
|
value: u,
|
|
3770
3769
|
...l
|
|
3771
3770
|
}) => {
|
|
3772
|
-
const m =
|
|
3771
|
+
const m = V(), h = i ? u : [], g = u;
|
|
3773
3772
|
return /* @__PURE__ */ a.jsx(
|
|
3774
3773
|
"ul",
|
|
3775
3774
|
{
|
|
@@ -3825,7 +3824,7 @@ const yi = ({
|
|
|
3825
3824
|
gtm: { context: n } = { context: void 0 },
|
|
3826
3825
|
...r
|
|
3827
3826
|
}) => {
|
|
3828
|
-
const s =
|
|
3827
|
+
const s = V(), i = me(), c = e || i, [o, f] = J(!1), [d, u] = J(t), l = () => {
|
|
3829
3828
|
var m;
|
|
3830
3829
|
f(!o), u(o ? "password" : "text"), (m = c.current) == null || m.focus();
|
|
3831
3830
|
};
|
|
@@ -3873,7 +3872,7 @@ const Ze = {
|
|
|
3873
3872
|
value: d,
|
|
3874
3873
|
...u
|
|
3875
3874
|
}) => {
|
|
3876
|
-
const l =
|
|
3875
|
+
const l = V(), m = f && f.some(({ condition: w }) => w === "required"), h = (d == null ? void 0 : d.toString().length) || 0, g = o && Ze[o] && Ze[o].component ? Ze[o].component : nt, v = {};
|
|
3877
3876
|
o && ["checkboxes"].includes(o) ? v.element = "span" : v.htmlFor = e;
|
|
3878
3877
|
let _ = {
|
|
3879
3878
|
...u,
|
|
@@ -3889,7 +3888,7 @@ const Ze = {
|
|
|
3889
3888
|
i > 0 && (_["data-character-limit"] = i, _.functions && (_.functions.onChange = (w) => {
|
|
3890
3889
|
((w == null ? void 0 : w.toString().length) || 0) > i && (w = w == null ? void 0 : w.toString().slice(0, i)), s.onChange(w);
|
|
3891
3890
|
})), o && Ze[o] && Ze[o].props && (_ = { ..._, ...Ze[o].props }), o && ["checkboxes"].includes(o) && (_.intlPath = `${t}_${e}`), r && (_["aria-invalid"] = !0, _["aria-describedby"] = `error-${e}`);
|
|
3892
|
-
const b = u.label || l.formatMessage({ id: t ? `${t}_${e}` : e }), y = ({ ...w }) => r ?
|
|
3891
|
+
const b = u.label || l.formatMessage({ id: t ? `${t}_${e}` : e }), y = ({ ...w }) => r ? Z.createElement(
|
|
3893
3892
|
w.as || "dd",
|
|
3894
3893
|
{
|
|
3895
3894
|
id: `error-${e}`,
|
|
@@ -3912,7 +3911,7 @@ const Ze = {
|
|
|
3912
3911
|
),
|
|
3913
3912
|
/* @__PURE__ */ a.jsx(y, { as: "p" })
|
|
3914
3913
|
] });
|
|
3915
|
-
const j = (w) =>
|
|
3914
|
+
const j = (w) => Z.createElement(w.element || "label", {
|
|
3916
3915
|
...w,
|
|
3917
3916
|
className: "checkboxes-label text-small",
|
|
3918
3917
|
"data-testid": `label-${e}`
|
|
@@ -4075,10 +4074,10 @@ const aa = ({
|
|
|
4075
4074
|
},
|
|
4076
4075
|
...m
|
|
4077
4076
|
}) => {
|
|
4078
|
-
const { customOnSubmit: h, ...g } = i, v = 40, _ =
|
|
4079
|
-
e.length && e.forEach((
|
|
4080
|
-
const ee =
|
|
4081
|
-
ee && (b[ee] =
|
|
4077
|
+
const { customOnSubmit: h, ...g } = i, v = 40, _ = V(), b = {};
|
|
4078
|
+
e.length && e.forEach((A) => {
|
|
4079
|
+
const ee = A.id || A.name;
|
|
4080
|
+
ee && (b[ee] = A.value || "");
|
|
4082
4081
|
});
|
|
4083
4082
|
const [y, j] = Pn(wi, {
|
|
4084
4083
|
isSubmitting: !1,
|
|
@@ -4096,21 +4095,21 @@ const aa = ({
|
|
|
4096
4095
|
}, [R]), ie(() => () => {
|
|
4097
4096
|
Qt && clearTimeout(Qt);
|
|
4098
4097
|
}, []);
|
|
4099
|
-
const
|
|
4098
|
+
const M = me(null), L = r || M;
|
|
4100
4099
|
if (!e.length)
|
|
4101
4100
|
return null;
|
|
4102
4101
|
i.text || (i.text = _.formatMessage({ id: "form_submit" }));
|
|
4103
|
-
const O = (
|
|
4104
|
-
var
|
|
4105
|
-
if (
|
|
4102
|
+
const O = (A) => {
|
|
4103
|
+
var H;
|
|
4104
|
+
if (A.preventDefault(), A.stopPropagation(), x)
|
|
4106
4105
|
return;
|
|
4107
4106
|
let ee = 0;
|
|
4108
|
-
if ((
|
|
4109
|
-
const
|
|
4110
|
-
|
|
4107
|
+
if ((H = L == null ? void 0 : L.current) != null && H.id) {
|
|
4108
|
+
const z = document.getElementById(L.current.id);
|
|
4109
|
+
z && (ee = z.getBoundingClientRect().top + window.scrollY);
|
|
4111
4110
|
}
|
|
4112
|
-
const
|
|
4113
|
-
if (
|
|
4111
|
+
const N = document.getElementById("header");
|
|
4112
|
+
if (N && (ee = ee - N.offsetHeight - v), ee < 0 && (ee = 0), window.scrollTo({ top: ee, behavior: "smooth" }), j({ type: "toggleSubmitting" }), i.disabled) {
|
|
4114
4113
|
typeof i.disabled == "object" && i.disabled.isClickable && j({
|
|
4115
4114
|
type: "submitForm",
|
|
4116
4115
|
payload: {
|
|
@@ -4126,9 +4125,9 @@ const aa = ({
|
|
|
4126
4125
|
payload: {
|
|
4127
4126
|
fields: e,
|
|
4128
4127
|
dispatch: j,
|
|
4129
|
-
onSuccess: (
|
|
4128
|
+
onSuccess: (z) => {
|
|
4130
4129
|
try {
|
|
4131
|
-
d && d(
|
|
4130
|
+
d && d(z), j({
|
|
4132
4131
|
type: c ? "formSubmittedAndReset" : "formSubmitted"
|
|
4133
4132
|
});
|
|
4134
4133
|
} catch (Q) {
|
|
@@ -4138,8 +4137,8 @@ const aa = ({
|
|
|
4138
4137
|
});
|
|
4139
4138
|
}
|
|
4140
4139
|
},
|
|
4141
|
-
onFailure: (
|
|
4142
|
-
l && l(
|
|
4140
|
+
onFailure: (z) => {
|
|
4141
|
+
l && l(z), j({
|
|
4143
4142
|
type: "updateValue",
|
|
4144
4143
|
payload: { key: "isSubmitting", value: !1 }
|
|
4145
4144
|
});
|
|
@@ -4148,7 +4147,7 @@ const aa = ({
|
|
|
4148
4147
|
}
|
|
4149
4148
|
});
|
|
4150
4149
|
};
|
|
4151
|
-
return /* @__PURE__ */ a.jsxs("form", { ...m, id: n, className: E("form", t), ref:
|
|
4150
|
+
return /* @__PURE__ */ a.jsxs("form", { ...m, id: n, className: E("form", t), ref: L, children: [
|
|
4152
4151
|
w != null && w.general ? /* @__PURE__ */ a.jsx(
|
|
4153
4152
|
Ge,
|
|
4154
4153
|
{
|
|
@@ -4156,32 +4155,32 @@ const aa = ({
|
|
|
4156
4155
|
text: _.formatMessage({ id: "form_error_generalError" })
|
|
4157
4156
|
}
|
|
4158
4157
|
) : null,
|
|
4159
|
-
(!x && !R || h) && e.map((
|
|
4158
|
+
(!x && !R || h) && e.map((A, ee) => {
|
|
4160
4159
|
const {
|
|
4161
|
-
id:
|
|
4162
|
-
component:
|
|
4163
|
-
functions:
|
|
4160
|
+
id: N = A.name || ee,
|
|
4161
|
+
component: H,
|
|
4162
|
+
functions: z = { onChange: () => {
|
|
4164
4163
|
} }
|
|
4165
|
-
} =
|
|
4166
|
-
if (
|
|
4167
|
-
return /* @__PURE__ */ a.jsx(
|
|
4168
|
-
const Q = F ? F[
|
|
4164
|
+
} = A;
|
|
4165
|
+
if (H)
|
|
4166
|
+
return /* @__PURE__ */ a.jsx(H, { ...A.props || {} }, `component-${N}-${ee}`);
|
|
4167
|
+
const Q = F ? F[N] : "";
|
|
4169
4168
|
return /* @__PURE__ */ a.jsx(
|
|
4170
4169
|
xi,
|
|
4171
4170
|
{
|
|
4172
4171
|
intlPath: s,
|
|
4173
|
-
...
|
|
4172
|
+
...A,
|
|
4174
4173
|
showRequiredLabels: o,
|
|
4175
4174
|
value: Q,
|
|
4176
|
-
error: w == null ? void 0 : w[
|
|
4175
|
+
error: w == null ? void 0 : w[N],
|
|
4177
4176
|
functions: {
|
|
4178
|
-
...
|
|
4177
|
+
...z,
|
|
4179
4178
|
onChange: (X) => {
|
|
4180
|
-
j({ type: "updateValue", payload: { key:
|
|
4179
|
+
j({ type: "updateValue", payload: { key: N, value: X } }), z.onChange(X && X.toString(), j);
|
|
4181
4180
|
}
|
|
4182
4181
|
}
|
|
4183
4182
|
},
|
|
4184
|
-
|
|
4183
|
+
N
|
|
4185
4184
|
);
|
|
4186
4185
|
}),
|
|
4187
4186
|
(x || R) && h ? h : /* @__PURE__ */ a.jsx(
|
|
@@ -4219,7 +4218,7 @@ const _t = "passwordRules_", sa = "isMoreThanEightCharacters", ia = "includesNum
|
|
|
4219
4218
|
},
|
|
4220
4219
|
className: t = ""
|
|
4221
4220
|
}) => {
|
|
4222
|
-
const n =
|
|
4221
|
+
const n = V();
|
|
4223
4222
|
return /* @__PURE__ */ a.jsxs("aside", { className: E("password-rules", t), children: [
|
|
4224
4223
|
/* @__PURE__ */ a.jsx("small", { children: n.formatMessage({ id: `${_t}intro` }) }),
|
|
4225
4224
|
/* @__PURE__ */ a.jsx("ul", { children: [sa, ia, oa].map(
|
|
@@ -4257,7 +4256,7 @@ const Lc = ({
|
|
|
4257
4256
|
className: i = "",
|
|
4258
4257
|
hasLoaded: c = !1
|
|
4259
4258
|
}) => {
|
|
4260
|
-
const o =
|
|
4259
|
+
const o = V(), [f, d] = J({
|
|
4261
4260
|
setUp: !1,
|
|
4262
4261
|
id: null,
|
|
4263
4262
|
rating: null,
|
|
@@ -4389,7 +4388,7 @@ const Ei = ({
|
|
|
4389
4388
|
initialFormStatus: d = "NOT_SUBMITTED"
|
|
4390
4389
|
/* NOT_SUBMITTED */
|
|
4391
4390
|
}) => {
|
|
4392
|
-
const [u, l] = J([]), [m, h] = J(!0), [g, v] = J(d), { formatMessage: _ } =
|
|
4391
|
+
const [u, l] = J([]), [m, h] = J(!0), [g, v] = J(d), { formatMessage: _ } = V(), b = async (w) => {
|
|
4393
4392
|
w.preventDefault();
|
|
4394
4393
|
try {
|
|
4395
4394
|
await f(u), l([]), v(
|
|
@@ -4477,7 +4476,7 @@ const Si = ({
|
|
|
4477
4476
|
gtmContext: s = "search-bar",
|
|
4478
4477
|
gtmEvent: i = "form-submission"
|
|
4479
4478
|
}) => {
|
|
4480
|
-
const { searchIsOpen: c = !0, isDesktopVersion: o = !1 } = n || {}, f =
|
|
4479
|
+
const { searchIsOpen: c = !0, isDesktopVersion: o = !1 } = n || {}, f = V(), d = me(null);
|
|
4481
4480
|
st(() => {
|
|
4482
4481
|
!n || o || !c || d.current && d.current.focus();
|
|
4483
4482
|
}, [c]);
|
|
@@ -4743,7 +4742,7 @@ function Pi() {
|
|
|
4743
4742
|
}
|
|
4744
4743
|
}
|
|
4745
4744
|
}
|
|
4746
|
-
var x = f, R = d, F = o,
|
|
4745
|
+
var x = f, R = d, F = o, M = c, L = t, O = u, A = r, ee = g, N = h, H = n, z = i, Q = s, X = l, le = !1;
|
|
4747
4746
|
function fe($) {
|
|
4748
4747
|
return le || (le = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")), k($) || w($) === f;
|
|
4749
4748
|
}
|
|
@@ -4753,25 +4752,25 @@ function Pi() {
|
|
|
4753
4752
|
function S($) {
|
|
4754
4753
|
return w($) === o;
|
|
4755
4754
|
}
|
|
4756
|
-
function
|
|
4755
|
+
function q($) {
|
|
4757
4756
|
return w($) === c;
|
|
4758
4757
|
}
|
|
4759
|
-
function
|
|
4758
|
+
function D($) {
|
|
4760
4759
|
return typeof $ == "object" && $ !== null && $.$$typeof === t;
|
|
4761
4760
|
}
|
|
4762
|
-
function
|
|
4761
|
+
function I($) {
|
|
4763
4762
|
return w($) === u;
|
|
4764
4763
|
}
|
|
4765
4764
|
function Y($) {
|
|
4766
4765
|
return w($) === r;
|
|
4767
4766
|
}
|
|
4768
|
-
function
|
|
4767
|
+
function U($) {
|
|
4769
4768
|
return w($) === g;
|
|
4770
4769
|
}
|
|
4771
|
-
function
|
|
4770
|
+
function B($) {
|
|
4772
4771
|
return w($) === h;
|
|
4773
4772
|
}
|
|
4774
|
-
function
|
|
4773
|
+
function W($) {
|
|
4775
4774
|
return w($) === n;
|
|
4776
4775
|
}
|
|
4777
4776
|
function K($) {
|
|
@@ -4783,7 +4782,7 @@ function Pi() {
|
|
|
4783
4782
|
function ne($) {
|
|
4784
4783
|
return w($) === l;
|
|
4785
4784
|
}
|
|
4786
|
-
ce.AsyncMode = x, ce.ConcurrentMode = R, ce.ContextConsumer = F, ce.ContextProvider =
|
|
4785
|
+
ce.AsyncMode = x, ce.ConcurrentMode = R, ce.ContextConsumer = F, ce.ContextProvider = M, ce.Element = L, ce.ForwardRef = O, ce.Fragment = A, ce.Lazy = ee, ce.Memo = N, ce.Portal = H, ce.Profiler = z, ce.StrictMode = Q, ce.Suspense = X, ce.isAsyncMode = fe, ce.isConcurrentMode = k, ce.isContextConsumer = S, ce.isContextProvider = q, ce.isElement = D, ce.isForwardRef = I, ce.isFragment = Y, ce.isLazy = U, ce.isMemo = B, ce.isPortal = W, ce.isProfiler = K, ce.isStrictMode = C, ce.isSuspense = ne, ce.isValidElementType = j, ce.typeOf = w;
|
|
4787
4786
|
}()), ce;
|
|
4788
4787
|
}
|
|
4789
4788
|
process.env.NODE_ENV === "production" ? jn.exports = $i() : jn.exports = Pi();
|
|
@@ -4942,11 +4941,11 @@ function Ni() {
|
|
|
4942
4941
|
elementType: x(),
|
|
4943
4942
|
instanceOf: R,
|
|
4944
4943
|
node: O(),
|
|
4945
|
-
objectOf:
|
|
4944
|
+
objectOf: M,
|
|
4946
4945
|
oneOf: F,
|
|
4947
|
-
oneOfType:
|
|
4946
|
+
oneOfType: L,
|
|
4948
4947
|
shape: ee,
|
|
4949
|
-
exact:
|
|
4948
|
+
exact: N
|
|
4950
4949
|
};
|
|
4951
4950
|
function g(k, S) {
|
|
4952
4951
|
return k === S ? k !== 0 || 1 / k === 1 / S : k !== k && S !== S;
|
|
@@ -4957,34 +4956,34 @@ function Ni() {
|
|
|
4957
4956
|
v.prototype = Error.prototype;
|
|
4958
4957
|
function _(k) {
|
|
4959
4958
|
if (process.env.NODE_ENV !== "production")
|
|
4960
|
-
var S = {},
|
|
4961
|
-
function
|
|
4962
|
-
if (
|
|
4959
|
+
var S = {}, q = 0;
|
|
4960
|
+
function D(Y, U, B, W, K, C, ne) {
|
|
4961
|
+
if (W = W || m, C = C || B, ne !== n) {
|
|
4963
4962
|
if (f) {
|
|
4964
4963
|
var $ = new Error(
|
|
4965
4964
|
"Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types"
|
|
4966
4965
|
);
|
|
4967
4966
|
throw $.name = "Invariant Violation", $;
|
|
4968
4967
|
} else if (process.env.NODE_ENV !== "production" && typeof console < "u") {
|
|
4969
|
-
var ge =
|
|
4968
|
+
var ge = W + ":" + B;
|
|
4970
4969
|
!S[ge] && // Avoid spamming the console because they are often not actionable except for lib authors
|
|
4971
|
-
|
|
4972
|
-
"You are manually calling a React.PropTypes validation function for the `" + C + "` prop on `" +
|
|
4973
|
-
), S[ge] = !0,
|
|
4970
|
+
q < 3 && (i(
|
|
4971
|
+
"You are manually calling a React.PropTypes validation function for the `" + C + "` prop on `" + W + "`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."
|
|
4972
|
+
), S[ge] = !0, q++);
|
|
4974
4973
|
}
|
|
4975
4974
|
}
|
|
4976
|
-
return
|
|
4975
|
+
return U[B] == null ? Y ? U[B] === null ? new v("The " + K + " `" + C + "` is marked as required " + ("in `" + W + "`, but its value is `null`.")) : new v("The " + K + " `" + C + "` is marked as required in " + ("`" + W + "`, but its value is `undefined`.")) : null : k(U, B, W, K, C);
|
|
4977
4976
|
}
|
|
4978
|
-
var
|
|
4979
|
-
return
|
|
4977
|
+
var I = D.bind(null, !1);
|
|
4978
|
+
return I.isRequired = D.bind(null, !0), I;
|
|
4980
4979
|
}
|
|
4981
4980
|
function b(k) {
|
|
4982
|
-
function S(
|
|
4983
|
-
var
|
|
4981
|
+
function S(q, D, I, Y, U, B) {
|
|
4982
|
+
var W = q[D], K = Q(W);
|
|
4984
4983
|
if (K !== k) {
|
|
4985
|
-
var C = X(
|
|
4984
|
+
var C = X(W);
|
|
4986
4985
|
return new v(
|
|
4987
|
-
"Invalid " + Y + " `" +
|
|
4986
|
+
"Invalid " + Y + " `" + U + "` of type " + ("`" + C + "` supplied to `" + I + "`, expected ") + ("`" + k + "`."),
|
|
4988
4987
|
{ expectedType: k }
|
|
4989
4988
|
);
|
|
4990
4989
|
}
|
|
@@ -4996,16 +4995,16 @@ function Ni() {
|
|
|
4996
4995
|
return _(c);
|
|
4997
4996
|
}
|
|
4998
4997
|
function j(k) {
|
|
4999
|
-
function S(
|
|
4998
|
+
function S(q, D, I, Y, U) {
|
|
5000
4999
|
if (typeof k != "function")
|
|
5001
|
-
return new v("Property `" +
|
|
5002
|
-
var
|
|
5003
|
-
if (!Array.isArray(
|
|
5004
|
-
var
|
|
5005
|
-
return new v("Invalid " + Y + " `" +
|
|
5000
|
+
return new v("Property `" + U + "` of component `" + I + "` has invalid PropType notation inside arrayOf.");
|
|
5001
|
+
var B = q[D];
|
|
5002
|
+
if (!Array.isArray(B)) {
|
|
5003
|
+
var W = Q(B);
|
|
5004
|
+
return new v("Invalid " + Y + " `" + U + "` of type " + ("`" + W + "` supplied to `" + I + "`, expected an array."));
|
|
5006
5005
|
}
|
|
5007
|
-
for (var K = 0; K <
|
|
5008
|
-
var C = k(
|
|
5006
|
+
for (var K = 0; K < B.length; K++) {
|
|
5007
|
+
var C = k(B, K, I, Y, U + "[" + K + "]", n);
|
|
5009
5008
|
if (C instanceof Error)
|
|
5010
5009
|
return C;
|
|
5011
5010
|
}
|
|
@@ -5014,32 +5013,32 @@ function Ni() {
|
|
|
5014
5013
|
return _(S);
|
|
5015
5014
|
}
|
|
5016
5015
|
function w() {
|
|
5017
|
-
function k(S,
|
|
5018
|
-
var
|
|
5019
|
-
if (!o(
|
|
5020
|
-
var
|
|
5021
|
-
return new v("Invalid " +
|
|
5016
|
+
function k(S, q, D, I, Y) {
|
|
5017
|
+
var U = S[q];
|
|
5018
|
+
if (!o(U)) {
|
|
5019
|
+
var B = Q(U);
|
|
5020
|
+
return new v("Invalid " + I + " `" + Y + "` of type " + ("`" + B + "` supplied to `" + D + "`, expected a single ReactElement."));
|
|
5022
5021
|
}
|
|
5023
5022
|
return null;
|
|
5024
5023
|
}
|
|
5025
5024
|
return _(k);
|
|
5026
5025
|
}
|
|
5027
5026
|
function x() {
|
|
5028
|
-
function k(S,
|
|
5029
|
-
var
|
|
5030
|
-
if (!e.isValidElementType(
|
|
5031
|
-
var
|
|
5032
|
-
return new v("Invalid " +
|
|
5027
|
+
function k(S, q, D, I, Y) {
|
|
5028
|
+
var U = S[q];
|
|
5029
|
+
if (!e.isValidElementType(U)) {
|
|
5030
|
+
var B = Q(U);
|
|
5031
|
+
return new v("Invalid " + I + " `" + Y + "` of type " + ("`" + B + "` supplied to `" + D + "`, expected a single ReactElement type."));
|
|
5033
5032
|
}
|
|
5034
5033
|
return null;
|
|
5035
5034
|
}
|
|
5036
5035
|
return _(k);
|
|
5037
5036
|
}
|
|
5038
5037
|
function R(k) {
|
|
5039
|
-
function S(
|
|
5040
|
-
if (!(
|
|
5041
|
-
var
|
|
5042
|
-
return new v("Invalid " + Y + " `" +
|
|
5038
|
+
function S(q, D, I, Y, U) {
|
|
5039
|
+
if (!(q[D] instanceof k)) {
|
|
5040
|
+
var B = k.name || m, W = fe(q[D]);
|
|
5041
|
+
return new v("Invalid " + Y + " `" + U + "` of type " + ("`" + W + "` supplied to `" + I + "`, expected ") + ("instance of `" + B + "`."));
|
|
5043
5042
|
}
|
|
5044
5043
|
return null;
|
|
5045
5044
|
}
|
|
@@ -5050,28 +5049,28 @@ function Ni() {
|
|
|
5050
5049
|
return process.env.NODE_ENV !== "production" && (arguments.length > 1 ? i(
|
|
5051
5050
|
"Invalid arguments supplied to oneOf, expected an array, got " + arguments.length + " arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."
|
|
5052
5051
|
) : i("Invalid argument supplied to oneOf, expected an array.")), c;
|
|
5053
|
-
function S(
|
|
5054
|
-
for (var
|
|
5055
|
-
if (g(
|
|
5052
|
+
function S(q, D, I, Y, U) {
|
|
5053
|
+
for (var B = q[D], W = 0; W < k.length; W++)
|
|
5054
|
+
if (g(B, k[W]))
|
|
5056
5055
|
return null;
|
|
5057
5056
|
var K = JSON.stringify(k, function(ne, $) {
|
|
5058
5057
|
var ge = X($);
|
|
5059
5058
|
return ge === "symbol" ? String($) : $;
|
|
5060
5059
|
});
|
|
5061
|
-
return new v("Invalid " + Y + " `" +
|
|
5060
|
+
return new v("Invalid " + Y + " `" + U + "` of value `" + String(B) + "` " + ("supplied to `" + I + "`, expected one of " + K + "."));
|
|
5062
5061
|
}
|
|
5063
5062
|
return _(S);
|
|
5064
5063
|
}
|
|
5065
|
-
function
|
|
5066
|
-
function S(
|
|
5064
|
+
function M(k) {
|
|
5065
|
+
function S(q, D, I, Y, U) {
|
|
5067
5066
|
if (typeof k != "function")
|
|
5068
|
-
return new v("Property `" +
|
|
5069
|
-
var
|
|
5070
|
-
if (
|
|
5071
|
-
return new v("Invalid " + Y + " `" +
|
|
5072
|
-
for (var K in
|
|
5073
|
-
if (r(
|
|
5074
|
-
var C = k(
|
|
5067
|
+
return new v("Property `" + U + "` of component `" + I + "` has invalid PropType notation inside objectOf.");
|
|
5068
|
+
var B = q[D], W = Q(B);
|
|
5069
|
+
if (W !== "object")
|
|
5070
|
+
return new v("Invalid " + Y + " `" + U + "` of type " + ("`" + W + "` supplied to `" + I + "`, expected an object."));
|
|
5071
|
+
for (var K in B)
|
|
5072
|
+
if (r(B, K)) {
|
|
5073
|
+
var C = k(B, K, I, Y, U + "." + K, n);
|
|
5075
5074
|
if (C instanceof Error)
|
|
5076
5075
|
return C;
|
|
5077
5076
|
}
|
|
@@ -5079,49 +5078,49 @@ function Ni() {
|
|
|
5079
5078
|
}
|
|
5080
5079
|
return _(S);
|
|
5081
5080
|
}
|
|
5082
|
-
function
|
|
5081
|
+
function L(k) {
|
|
5083
5082
|
if (!Array.isArray(k))
|
|
5084
5083
|
return process.env.NODE_ENV !== "production" && i("Invalid argument supplied to oneOfType, expected an instance of array."), c;
|
|
5085
5084
|
for (var S = 0; S < k.length; S++) {
|
|
5086
|
-
var
|
|
5087
|
-
if (typeof
|
|
5085
|
+
var q = k[S];
|
|
5086
|
+
if (typeof q != "function")
|
|
5088
5087
|
return i(
|
|
5089
|
-
"Invalid argument supplied to oneOfType. Expected an array of check functions, but received " + le(
|
|
5088
|
+
"Invalid argument supplied to oneOfType. Expected an array of check functions, but received " + le(q) + " at index " + S + "."
|
|
5090
5089
|
), c;
|
|
5091
5090
|
}
|
|
5092
|
-
function
|
|
5091
|
+
function D(I, Y, U, B, W) {
|
|
5093
5092
|
for (var K = [], C = 0; C < k.length; C++) {
|
|
5094
|
-
var ne = k[C], $ = ne(
|
|
5093
|
+
var ne = k[C], $ = ne(I, Y, U, B, W, n);
|
|
5095
5094
|
if ($ == null)
|
|
5096
5095
|
return null;
|
|
5097
5096
|
$.data && r($.data, "expectedType") && K.push($.data.expectedType);
|
|
5098
5097
|
}
|
|
5099
5098
|
var ge = K.length > 0 ? ", expected one of type [" + K.join(", ") + "]" : "";
|
|
5100
|
-
return new v("Invalid " +
|
|
5099
|
+
return new v("Invalid " + B + " `" + W + "` supplied to " + ("`" + U + "`" + ge + "."));
|
|
5101
5100
|
}
|
|
5102
|
-
return _(
|
|
5101
|
+
return _(D);
|
|
5103
5102
|
}
|
|
5104
5103
|
function O() {
|
|
5105
|
-
function k(S,
|
|
5106
|
-
return
|
|
5104
|
+
function k(S, q, D, I, Y) {
|
|
5105
|
+
return H(S[q]) ? null : new v("Invalid " + I + " `" + Y + "` supplied to " + ("`" + D + "`, expected a ReactNode."));
|
|
5107
5106
|
}
|
|
5108
5107
|
return _(k);
|
|
5109
5108
|
}
|
|
5110
|
-
function
|
|
5109
|
+
function A(k, S, q, D, I) {
|
|
5111
5110
|
return new v(
|
|
5112
|
-
(k || "React class") + ": " + S + " type `" +
|
|
5111
|
+
(k || "React class") + ": " + S + " type `" + q + "." + D + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + I + "`."
|
|
5113
5112
|
);
|
|
5114
5113
|
}
|
|
5115
5114
|
function ee(k) {
|
|
5116
|
-
function S(
|
|
5117
|
-
var
|
|
5118
|
-
if (
|
|
5119
|
-
return new v("Invalid " + Y + " `" +
|
|
5115
|
+
function S(q, D, I, Y, U) {
|
|
5116
|
+
var B = q[D], W = Q(B);
|
|
5117
|
+
if (W !== "object")
|
|
5118
|
+
return new v("Invalid " + Y + " `" + U + "` of type `" + W + "` " + ("supplied to `" + I + "`, expected `object`."));
|
|
5120
5119
|
for (var K in k) {
|
|
5121
5120
|
var C = k[K];
|
|
5122
5121
|
if (typeof C != "function")
|
|
5123
|
-
return
|
|
5124
|
-
var ne = C(
|
|
5122
|
+
return A(I, Y, U, K, X(C));
|
|
5123
|
+
var ne = C(B, K, I, Y, U + "." + K, n);
|
|
5125
5124
|
if (ne)
|
|
5126
5125
|
return ne;
|
|
5127
5126
|
}
|
|
@@ -5129,22 +5128,22 @@ function Ni() {
|
|
|
5129
5128
|
}
|
|
5130
5129
|
return _(S);
|
|
5131
5130
|
}
|
|
5132
|
-
function
|
|
5133
|
-
function S(
|
|
5134
|
-
var
|
|
5135
|
-
if (
|
|
5136
|
-
return new v("Invalid " + Y + " `" +
|
|
5137
|
-
var K = t({},
|
|
5131
|
+
function N(k) {
|
|
5132
|
+
function S(q, D, I, Y, U) {
|
|
5133
|
+
var B = q[D], W = Q(B);
|
|
5134
|
+
if (W !== "object")
|
|
5135
|
+
return new v("Invalid " + Y + " `" + U + "` of type `" + W + "` " + ("supplied to `" + I + "`, expected `object`."));
|
|
5136
|
+
var K = t({}, q[D], k);
|
|
5138
5137
|
for (var C in K) {
|
|
5139
5138
|
var ne = k[C];
|
|
5140
5139
|
if (r(k, C) && typeof ne != "function")
|
|
5141
|
-
return
|
|
5140
|
+
return A(I, Y, U, C, X(ne));
|
|
5142
5141
|
if (!ne)
|
|
5143
5142
|
return new v(
|
|
5144
|
-
"Invalid " + Y + " `" +
|
|
5143
|
+
"Invalid " + Y + " `" + U + "` key `" + C + "` supplied to `" + I + "`.\nBad object: " + JSON.stringify(q[D], null, " ") + `
|
|
5145
5144
|
Valid keys: ` + JSON.stringify(Object.keys(k), null, " ")
|
|
5146
5145
|
);
|
|
5147
|
-
var $ = ne(
|
|
5146
|
+
var $ = ne(B, C, I, Y, U + "." + C, n);
|
|
5148
5147
|
if ($)
|
|
5149
5148
|
return $;
|
|
5150
5149
|
}
|
|
@@ -5152,7 +5151,7 @@ Valid keys: ` + JSON.stringify(Object.keys(k), null, " ")
|
|
|
5152
5151
|
}
|
|
5153
5152
|
return _(S);
|
|
5154
5153
|
}
|
|
5155
|
-
function
|
|
5154
|
+
function H(k) {
|
|
5156
5155
|
switch (typeof k) {
|
|
5157
5156
|
case "number":
|
|
5158
5157
|
case "string":
|
|
@@ -5162,20 +5161,20 @@ Valid keys: ` + JSON.stringify(Object.keys(k), null, " ")
|
|
|
5162
5161
|
return !k;
|
|
5163
5162
|
case "object":
|
|
5164
5163
|
if (Array.isArray(k))
|
|
5165
|
-
return k.every(
|
|
5164
|
+
return k.every(H);
|
|
5166
5165
|
if (k === null || o(k))
|
|
5167
5166
|
return !0;
|
|
5168
5167
|
var S = l(k);
|
|
5169
5168
|
if (S) {
|
|
5170
|
-
var
|
|
5169
|
+
var q = S.call(k), D;
|
|
5171
5170
|
if (S !== k.entries) {
|
|
5172
|
-
for (; !(
|
|
5173
|
-
if (!
|
|
5171
|
+
for (; !(D = q.next()).done; )
|
|
5172
|
+
if (!H(D.value))
|
|
5174
5173
|
return !1;
|
|
5175
5174
|
} else
|
|
5176
|
-
for (; !(
|
|
5177
|
-
var
|
|
5178
|
-
if (
|
|
5175
|
+
for (; !(D = q.next()).done; ) {
|
|
5176
|
+
var I = D.value;
|
|
5177
|
+
if (I && !H(I[1]))
|
|
5179
5178
|
return !1;
|
|
5180
5179
|
}
|
|
5181
5180
|
} else
|
|
@@ -5185,12 +5184,12 @@ Valid keys: ` + JSON.stringify(Object.keys(k), null, " ")
|
|
|
5185
5184
|
return !1;
|
|
5186
5185
|
}
|
|
5187
5186
|
}
|
|
5188
|
-
function
|
|
5187
|
+
function z(k, S) {
|
|
5189
5188
|
return k === "symbol" ? !0 : S ? S["@@toStringTag"] === "Symbol" || typeof Symbol == "function" && S instanceof Symbol : !1;
|
|
5190
5189
|
}
|
|
5191
5190
|
function Q(k) {
|
|
5192
5191
|
var S = typeof k;
|
|
5193
|
-
return Array.isArray(k) ? "array" : k instanceof RegExp ? "object" :
|
|
5192
|
+
return Array.isArray(k) ? "array" : k instanceof RegExp ? "object" : z(S, k) ? "symbol" : S;
|
|
5194
5193
|
}
|
|
5195
5194
|
function X(k) {
|
|
5196
5195
|
if (typeof k > "u" || k === null)
|
|
@@ -5546,24 +5545,24 @@ function Xi(e, t) {
|
|
|
5546
5545
|
for (var x in t.attributes)
|
|
5547
5546
|
w.setAttribute(x, t.attributes[x]);
|
|
5548
5547
|
b && (w.id = b);
|
|
5549
|
-
var R = function(
|
|
5548
|
+
var R = function(M) {
|
|
5550
5549
|
if (Te[m]) {
|
|
5551
|
-
var
|
|
5552
|
-
for (var
|
|
5553
|
-
|
|
5550
|
+
var L = Te[m], O = L.observers;
|
|
5551
|
+
for (var A in O)
|
|
5552
|
+
M(O[A]) && delete O[A];
|
|
5554
5553
|
}
|
|
5555
5554
|
};
|
|
5556
5555
|
_ && typeof window < "u" && (window[_] = function() {
|
|
5557
5556
|
return l.asyncScriptLoaderTriggerOnScriptLoaded();
|
|
5558
5557
|
}), w.onload = function() {
|
|
5559
5558
|
var F = Te[m];
|
|
5560
|
-
F && (F.loaded = !0, R(function(
|
|
5561
|
-
return _ ? !1 : (
|
|
5559
|
+
F && (F.loaded = !0, R(function(M) {
|
|
5560
|
+
return _ ? !1 : (M(F), !0);
|
|
5562
5561
|
}));
|
|
5563
5562
|
}, w.onerror = function() {
|
|
5564
5563
|
var F = Te[m];
|
|
5565
|
-
F && (F.errored = !0, R(function(
|
|
5566
|
-
return
|
|
5564
|
+
F && (F.errored = !0, R(function(M) {
|
|
5565
|
+
return M(F), !0;
|
|
5567
5566
|
}));
|
|
5568
5567
|
}, document.body.appendChild(w);
|
|
5569
5568
|
}, d.componentWillUnmount = function() {
|
|
@@ -5838,7 +5837,7 @@ const so = {
|
|
|
5838
5837
|
dataToSubmit: s = { ref: "sign-up-form" },
|
|
5839
5838
|
...i
|
|
5840
5839
|
}) => {
|
|
5841
|
-
const c =
|
|
5840
|
+
const c = V(), [o, f] = Pn(zr, so), {
|
|
5842
5841
|
validFields: d,
|
|
5843
5842
|
emailDetails: u,
|
|
5844
5843
|
shouldManuallyApprove: l,
|
|
@@ -5848,14 +5847,14 @@ const so = {
|
|
|
5848
5847
|
"signup-this-session",
|
|
5849
5848
|
"functional-cookie-consent"
|
|
5850
5849
|
]), _ = {
|
|
5851
|
-
form:
|
|
5852
|
-
name:
|
|
5853
|
-
email:
|
|
5854
|
-
jobTitle:
|
|
5855
|
-
organisation:
|
|
5856
|
-
tc:
|
|
5857
|
-
recaptcha:
|
|
5858
|
-
hiddenValidation:
|
|
5850
|
+
form: Z.createRef(),
|
|
5851
|
+
name: Z.createRef(),
|
|
5852
|
+
email: Z.createRef(),
|
|
5853
|
+
jobTitle: Z.createRef(),
|
|
5854
|
+
organisation: Z.createRef(),
|
|
5855
|
+
tc: Z.createRef(),
|
|
5856
|
+
recaptcha: Z.createRef(),
|
|
5857
|
+
hiddenValidation: Z.createRef()
|
|
5859
5858
|
};
|
|
5860
5859
|
ie(() => {
|
|
5861
5860
|
l === !0 && _.jobTitle.current && _.jobTitle.current.focus();
|
|
@@ -5959,7 +5958,7 @@ let an;
|
|
|
5959
5958
|
const sn = "contactFooter_", Ic = ({ onSuccess: e = () => {
|
|
5960
5959
|
}, onFailure: t = () => {
|
|
5961
5960
|
} }) => {
|
|
5962
|
-
const n = me(null), [r, s] =
|
|
5961
|
+
const n = me(null), [r, s] = Z.useState(0), [i, c] = Z.useState(!1), o = () => {
|
|
5963
5962
|
n.current && s(n.current.clientHeight);
|
|
5964
5963
|
}, f = () => {
|
|
5965
5964
|
i || (c(!0), clearTimeout(an), an = setTimeout(() => {
|
|
@@ -6002,7 +6001,7 @@ const on = "cookieBanner_", cn = [
|
|
|
6002
6001
|
"apolitical-performance-cookie-consent",
|
|
6003
6002
|
"functional-cookie-consent"
|
|
6004
6003
|
], ln = new Date(Date.now() + 12 * 30 * 24 * 60 * 60 * 1e3), io = () => {
|
|
6005
|
-
const e =
|
|
6004
|
+
const e = V(), [t, n, r] = Dr(cn), [s, i] = J(
|
|
6006
6005
|
!t["apol-cookie-banner"]
|
|
6007
6006
|
), c = () => {
|
|
6008
6007
|
cn.forEach((u) => {
|
|
@@ -6415,7 +6414,7 @@ const Ue = "footer_", St = "SiteFooter", Er = ({ group: e }) => {
|
|
|
6415
6414
|
},
|
|
6416
6415
|
doTrack: i = null
|
|
6417
6416
|
}) => {
|
|
6418
|
-
const c =
|
|
6417
|
+
const c = V(), o = Ir(Ct, e);
|
|
6419
6418
|
if (!o || o.onlyShow && (o.onlyShow === "logged-in" && !t || o.onlyShow === "logged-out" && t))
|
|
6420
6419
|
return null;
|
|
6421
6420
|
const f = "doTrack" in o, d = i === null ? f ? o.doTrack : !0 : i, u = e.includes("buttons.");
|
|
@@ -6480,7 +6479,7 @@ const Ue = "footer_", St = "SiteFooter", Er = ({ group: e }) => {
|
|
|
6480
6479
|
role: "none",
|
|
6481
6480
|
..._,
|
|
6482
6481
|
children: [
|
|
6483
|
-
m ?
|
|
6482
|
+
m ? Z.createElement(
|
|
6484
6483
|
u ? se : "a",
|
|
6485
6484
|
m,
|
|
6486
6485
|
c.formatMessage({ id: l })
|
|
@@ -6529,7 +6528,7 @@ const Ue = "footer_", St = "SiteFooter", Er = ({ group: e }) => {
|
|
|
6529
6528
|
);
|
|
6530
6529
|
};
|
|
6531
6530
|
const oo = { height: 67, height_desktop: 83 }, ma = ({ showNavigation: e = !0 }) => {
|
|
6532
|
-
const t =
|
|
6531
|
+
const t = V(), n = $e(Oe), r = ct(!0, !0), s = n && typeof n.id == "string", i = ot(
|
|
6533
6532
|
() => de.getIsDesktopVersion(s, r),
|
|
6534
6533
|
[s, r]
|
|
6535
6534
|
), [c, o] = Pn(zr, {
|
|
@@ -6704,7 +6703,7 @@ const oo = { height: 67, height_desktop: 83 }, ma = ({ showNavigation: e = !0 })
|
|
|
6704
6703
|
)
|
|
6705
6704
|
] });
|
|
6706
6705
|
};
|
|
6707
|
-
const pa = ({ element: e = "section", children: t, className: n, ...r }) =>
|
|
6706
|
+
const pa = ({ element: e = "section", children: t, className: n, ...r }) => Z.createElement(e, {
|
|
6708
6707
|
className: E("modal", n),
|
|
6709
6708
|
children: typeof t == "string" ? /* @__PURE__ */ a.jsx("p", { children: t }) : t,
|
|
6710
6709
|
...r
|
|
@@ -6724,7 +6723,7 @@ const ha = ({
|
|
|
6724
6723
|
className: u = "",
|
|
6725
6724
|
gtmContext: l = "Modal"
|
|
6726
6725
|
}) => {
|
|
6727
|
-
const m =
|
|
6726
|
+
const m = V(), [h, g] = J(t), v = (b) => {
|
|
6728
6727
|
g(b), b ? (s(), document.body.classList.add("has-overlay")) : (i(), document.body.classList.remove("has-overlay"));
|
|
6729
6728
|
};
|
|
6730
6729
|
ie(() => {
|
|
@@ -6805,7 +6804,7 @@ const qc = ({
|
|
|
6805
6804
|
}
|
|
6806
6805
|
);
|
|
6807
6806
|
const lo = () => {
|
|
6808
|
-
const e =
|
|
6807
|
+
const e = V();
|
|
6809
6808
|
return /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
|
|
6810
6809
|
/* @__PURE__ */ a.jsx(ma, {}),
|
|
6811
6810
|
/* @__PURE__ */ a.jsx("div", { id: "content", children: /* @__PURE__ */ a.jsx(
|
|
@@ -6844,7 +6843,7 @@ const lo = () => {
|
|
|
6844
6843
|
/* @__PURE__ */ a.jsx(ma, { showNavigation: f }),
|
|
6845
6844
|
/* @__PURE__ */ a.jsxs("section", { id: "content-wrapper", children: [
|
|
6846
6845
|
v && /* @__PURE__ */ a.jsx("div", { className: "additional-content prepended", children: v }),
|
|
6847
|
-
|
|
6846
|
+
Z.createElement(u === "bold" ? pa : "div", {
|
|
6848
6847
|
id: "content",
|
|
6849
6848
|
children: g
|
|
6850
6849
|
})
|
|
@@ -6895,7 +6894,7 @@ const zc = ({
|
|
|
6895
6894
|
gtmType: i = "tag-click",
|
|
6896
6895
|
gtmContext: c = "tags"
|
|
6897
6896
|
}) => {
|
|
6898
|
-
const o =
|
|
6897
|
+
const o = V();
|
|
6899
6898
|
if (!e || e.length < 1)
|
|
6900
6899
|
return null;
|
|
6901
6900
|
const f = [];
|
|
@@ -6935,7 +6934,7 @@ const Zc = ({
|
|
|
6935
6934
|
gtmType: i = "member-click",
|
|
6936
6935
|
className: c = ""
|
|
6937
6936
|
}) => {
|
|
6938
|
-
const o =
|
|
6937
|
+
const o = V();
|
|
6939
6938
|
return e.length === 0 ? null : /* @__PURE__ */ a.jsxs("div", { className: E("members-list", c), children: [
|
|
6940
6939
|
/* @__PURE__ */ a.jsxs("h1", { children: [
|
|
6941
6940
|
o.formatMessage({ id: "membersList" }),
|
|
@@ -6990,8 +6989,8 @@ const ye = "discussion_form_", zn = ({
|
|
|
6990
6989
|
},
|
|
6991
6990
|
gtmContext: d = "DiscussionForm"
|
|
6992
6991
|
}) => {
|
|
6993
|
-
var O,
|
|
6994
|
-
const u =
|
|
6992
|
+
var O, A, ee;
|
|
6993
|
+
const u = V(), l = $e(Oe), [m, h] = J(
|
|
6995
6994
|
n.isEditing && n.isEditing.text || ""
|
|
6996
6995
|
), [g, v] = J(o.error || !1), [_, b] = J(!1), y = me(null);
|
|
6997
6996
|
if (r || (r = y), n.isLoading)
|
|
@@ -7002,33 +7001,33 @@ const ye = "discussion_form_", zn = ({
|
|
|
7002
7001
|
"data-testid": "loading-placeholder"
|
|
7003
7002
|
}
|
|
7004
7003
|
);
|
|
7005
|
-
const j = (
|
|
7006
|
-
const
|
|
7007
|
-
h(
|
|
7008
|
-
let
|
|
7009
|
-
!l || !l.id ?
|
|
7004
|
+
const j = (N) => {
|
|
7005
|
+
const H = N.target.value;
|
|
7006
|
+
h(H);
|
|
7007
|
+
let z;
|
|
7008
|
+
!l || !l.id ? z = Ce(
|
|
7010
7009
|
u.formatMessage,
|
|
7011
7010
|
`${ye}error_loggedOut`,
|
|
7012
7011
|
e.type,
|
|
7013
7012
|
"action"
|
|
7014
|
-
) : t ?
|
|
7013
|
+
) : t ? H.length >= i && (z = `${ye}error_tooLong`) : z = Ce(
|
|
7015
7014
|
u.formatMessage,
|
|
7016
7015
|
`${ye}error_noPermission`,
|
|
7017
7016
|
e.type,
|
|
7018
7017
|
"action"
|
|
7019
|
-
),
|
|
7018
|
+
), z ? v(z) : g && v(!1);
|
|
7020
7019
|
};
|
|
7021
7020
|
let w = `${e.type}-form`;
|
|
7022
7021
|
if (e.type === "response" || e.type === "reply") {
|
|
7023
|
-
const
|
|
7024
|
-
|
|
7022
|
+
const N = ((O = e.slugs) == null ? void 0 : O.reply) || ((A = e.slugs) == null ? void 0 : A.answer) || ((ee = e.slugs) == null ? void 0 : ee.question) || "";
|
|
7023
|
+
N && (w = `${w}-${N.slice(-15)}`);
|
|
7025
7024
|
}
|
|
7026
|
-
const x = async (
|
|
7027
|
-
var
|
|
7028
|
-
if (
|
|
7025
|
+
const x = async (N) => {
|
|
7026
|
+
var z;
|
|
7027
|
+
if (N.preventDefault(), N.stopPropagation(), !l || !l.id || !t || F)
|
|
7029
7028
|
return;
|
|
7030
7029
|
bt && clearTimeout(bt), b("submitting");
|
|
7031
|
-
const
|
|
7030
|
+
const H = window.location.pathname;
|
|
7032
7031
|
try {
|
|
7033
7032
|
let Q;
|
|
7034
7033
|
switch (e.type) {
|
|
@@ -7039,19 +7038,19 @@ const ye = "discussion_form_", zn = ({
|
|
|
7039
7038
|
Q = await f.create({
|
|
7040
7039
|
title: m,
|
|
7041
7040
|
authorId: l && l.id,
|
|
7042
|
-
...(
|
|
7041
|
+
...(z = f.props) == null ? void 0 : z.create
|
|
7043
7042
|
});
|
|
7044
7043
|
break;
|
|
7045
7044
|
case "response":
|
|
7046
7045
|
Q = await f.create(
|
|
7047
7046
|
{ question: e.slugs.question },
|
|
7048
|
-
{ body: m, authorId: l && l.id, contentPath:
|
|
7047
|
+
{ body: m, authorId: l && l.id, contentPath: H }
|
|
7049
7048
|
);
|
|
7050
7049
|
break;
|
|
7051
7050
|
case "reply":
|
|
7052
7051
|
Q = await f.create(
|
|
7053
7052
|
{ question: e.slugs.question, answer: e.slugs.answer },
|
|
7054
|
-
{ body: m, authorId: l && l.id, contentPath:
|
|
7053
|
+
{ body: m, authorId: l && l.id, contentPath: H }
|
|
7055
7054
|
);
|
|
7056
7055
|
break;
|
|
7057
7056
|
default:
|
|
@@ -7081,8 +7080,8 @@ const ye = "discussion_form_", zn = ({
|
|
|
7081
7080
|
bt = setTimeout(() => {
|
|
7082
7081
|
v(!1), b(!1);
|
|
7083
7082
|
}, 5e3);
|
|
7084
|
-
}, F = !m || !ks(m),
|
|
7085
|
-
return (n.isEditing && !
|
|
7083
|
+
}, F = !m || !ks(m), M = _ === "submitting", L = [];
|
|
7084
|
+
return (n.isEditing && !M || o.cancel) && L.push({
|
|
7086
7085
|
variant: "secondary",
|
|
7087
7086
|
size: { mobile: "small", 600: "medium" },
|
|
7088
7087
|
onClick: f.handleCancel,
|
|
@@ -7091,25 +7090,25 @@ const ye = "discussion_form_", zn = ({
|
|
|
7091
7090
|
"data-gtm-event-type": `cancel-${e.type}-click`,
|
|
7092
7091
|
disabled: !o.cancel && (!l || !l.id || !m),
|
|
7093
7092
|
children: u.formatMessage({ id: `${ye}cancel` })
|
|
7094
|
-
}),
|
|
7093
|
+
}), L.push({
|
|
7095
7094
|
variant: "primary",
|
|
7096
7095
|
size: { mobile: "small", 600: "medium" },
|
|
7097
|
-
onClick: (
|
|
7096
|
+
onClick: (N) => {
|
|
7098
7097
|
if (n.isEditing) {
|
|
7099
7098
|
b("submitting"), f.handleSaveEdit && f.handleSaveEdit(
|
|
7100
7099
|
y.current && "value" in y.current ? y.current.value : ""
|
|
7101
7100
|
);
|
|
7102
7101
|
return;
|
|
7103
7102
|
}
|
|
7104
|
-
x(
|
|
7103
|
+
x(N);
|
|
7105
7104
|
},
|
|
7106
7105
|
className: "gtm-trackable",
|
|
7107
7106
|
"data-gtm-event-context": d,
|
|
7108
7107
|
"data-gtm-event-type": `${n.isEditing ? "save" : "submit"}-${e.type}-click`,
|
|
7109
7108
|
"data-testid": "save-button",
|
|
7110
|
-
disabled: !l || !l.id || !t || F ||
|
|
7109
|
+
disabled: !l || !l.id || !t || F || M || n.isEditing && m === n.isEditing.text,
|
|
7111
7110
|
children: u.formatMessage({
|
|
7112
|
-
id: `${ye}${
|
|
7111
|
+
id: `${ye}${M ? n.isEditing ? "saving" : "posting" : n.isEditing ? "save" : "post"}`
|
|
7113
7112
|
})
|
|
7114
7113
|
}), /* @__PURE__ */ a.jsxs(
|
|
7115
7114
|
"form",
|
|
@@ -7152,7 +7151,7 @@ const ye = "discussion_form_", zn = ({
|
|
|
7152
7151
|
}
|
|
7153
7152
|
),
|
|
7154
7153
|
/* @__PURE__ */ a.jsx("small", { children: Ce(u.formatMessage, `${ye}explainer`, e.type, "action", {
|
|
7155
|
-
a: (
|
|
7154
|
+
a: (N) => /* @__PURE__ */ a.jsx(
|
|
7156
7155
|
"a",
|
|
7157
7156
|
{
|
|
7158
7157
|
href: "https://about.apolitical.co/q-and-a-community-guidelines",
|
|
@@ -7161,11 +7160,11 @@ const ye = "discussion_form_", zn = ({
|
|
|
7161
7160
|
"data-gtm-event-context": d,
|
|
7162
7161
|
"data-gtm-event-type": "community-guidelines-link",
|
|
7163
7162
|
rel: "noreferrer",
|
|
7164
|
-
children:
|
|
7163
|
+
children: N
|
|
7165
7164
|
}
|
|
7166
7165
|
)
|
|
7167
7166
|
}) }),
|
|
7168
|
-
/* @__PURE__ */ a.jsx(Nt, { buttons:
|
|
7167
|
+
/* @__PURE__ */ a.jsx(Nt, { buttons: L }),
|
|
7169
7168
|
_ === "submitted" && n.showSuccessMessage && /* @__PURE__ */ a.jsx(yn, { className: "success", "data-testid": "success", children: Ce(u.formatMessage, `${ye}success`, e.type, "action") }),
|
|
7170
7169
|
g && /* @__PURE__ */ a.jsx(yn, { id: "error-message", className: "error", "data-testid": "error", children: o.error ? o.error : typeof g == "string" ? g.includes(" ") ? g : u.formatMessage(
|
|
7171
7170
|
{ id: g },
|
|
@@ -7236,7 +7235,7 @@ const un = () => {
|
|
|
7236
7235
|
}, deleteLike: f = () => {
|
|
7237
7236
|
} } = {}
|
|
7238
7237
|
}) => {
|
|
7239
|
-
const d =
|
|
7238
|
+
const d = V();
|
|
7240
7239
|
ie(() => {
|
|
7241
7240
|
h(s);
|
|
7242
7241
|
}, [s]);
|
|
@@ -7265,7 +7264,7 @@ const un = () => {
|
|
|
7265
7264
|
v(!1);
|
|
7266
7265
|
}
|
|
7267
7266
|
};
|
|
7268
|
-
return
|
|
7267
|
+
return Z.createElement(e, {
|
|
7269
7268
|
className: E("likes-wrapper text-medium action-button", {
|
|
7270
7269
|
"show-spinner": g,
|
|
7271
7270
|
"is-liked": m,
|
|
@@ -7373,62 +7372,62 @@ const Re = "discussion_", vo = 280, Lt = ({
|
|
|
7373
7372
|
children: v,
|
|
7374
7373
|
isTruncated: _ = !1
|
|
7375
7374
|
}) => {
|
|
7376
|
-
const b =
|
|
7375
|
+
const b = V(), y = $e(Oe), j = $e(Zn), { author: w, canLike: x, createdAt: R, id: F, likes: M = 0, userLiked: L, comments: O = 0 } = t, A = y && y.id && typeof w != "string" && w.id && w.id === y.id || !1, ee = typeof x == "boolean" ? x : n ? !A : !1, N = A && (!t.createdAt || gs(t.createdAt, 10, "seconds")), H = me(null), [z, Q] = J({
|
|
7377
7376
|
body: t && t.body || "",
|
|
7378
7377
|
isEditing: !1,
|
|
7379
7378
|
didEdit: t && t.isEdited || !1
|
|
7380
7379
|
}), [X, le] = J(!1), [fe, k] = J(
|
|
7381
|
-
|
|
7380
|
+
N ? "highlighted" : "default"
|
|
7382
7381
|
/* Default */
|
|
7383
|
-
), [S,
|
|
7382
|
+
), [S, q] = J("");
|
|
7384
7383
|
ie(() => {
|
|
7385
|
-
const C =
|
|
7384
|
+
const C = H.current;
|
|
7386
7385
|
if (!(!C || fe === "default"))
|
|
7387
|
-
return document.addEventListener("discussionFormSubmitted",
|
|
7388
|
-
document.removeEventListener("discussionFormSubmitted",
|
|
7386
|
+
return document.addEventListener("discussionFormSubmitted", D), C.addEventListener("transitionend", I), () => {
|
|
7387
|
+
document.removeEventListener("discussionFormSubmitted", D), C.removeEventListener("transitionend", I);
|
|
7389
7388
|
};
|
|
7390
7389
|
}, []), ie(() => {
|
|
7391
7390
|
Q({
|
|
7392
|
-
...
|
|
7391
|
+
...z,
|
|
7393
7392
|
body: t && t.body || "",
|
|
7394
7393
|
didEdit: t && t.isEdited || !1
|
|
7395
7394
|
});
|
|
7396
7395
|
}, [t.isEdited]);
|
|
7397
|
-
const
|
|
7396
|
+
const D = () => {
|
|
7398
7397
|
setTimeout(() => {
|
|
7399
7398
|
k(
|
|
7400
7399
|
"fading"
|
|
7401
7400
|
/* Fading */
|
|
7402
7401
|
);
|
|
7403
7402
|
}, 1e3);
|
|
7404
|
-
},
|
|
7405
|
-
C === "background-color" && k((ne) => (ne === "default" && (document.removeEventListener("discussionFormSubmitted",
|
|
7403
|
+
}, I = ({ propertyName: C }) => {
|
|
7404
|
+
C === "background-color" && k((ne) => (ne === "default" && (document.removeEventListener("discussionFormSubmitted", D), H.current && H.current.removeEventListener("transitionend", I)), ne === "fading" ? "default" : ne));
|
|
7406
7405
|
};
|
|
7407
7406
|
if (r || !t || t.type === "answer" && (!t.slugs || !t.slugs.question))
|
|
7408
7407
|
return /* @__PURE__ */ a.jsx(Ee, { className: "discussion-card discussion-post" });
|
|
7409
|
-
const Y = _ ? He(
|
|
7410
|
-
C || (C = ""),
|
|
7408
|
+
const Y = _ ? He(z.body, vo) : z.body, U = async (C) => {
|
|
7409
|
+
C || (C = ""), q("");
|
|
7411
7410
|
try {
|
|
7412
|
-
if (!as(C,
|
|
7411
|
+
if (!as(C, z.body)) {
|
|
7413
7412
|
const ne = t.type === "question" ? { title: C } : { body: C };
|
|
7414
7413
|
await f(Cr(t.slugs), ne);
|
|
7415
7414
|
}
|
|
7416
7415
|
Q({ body: C, isEditing: !1, didEdit: !0 });
|
|
7417
7416
|
} catch {
|
|
7418
|
-
|
|
7417
|
+
q(`${Re}form_error`);
|
|
7419
7418
|
}
|
|
7420
|
-
},
|
|
7419
|
+
}, B = () => {
|
|
7421
7420
|
j && j.updateConversation && j.updateConversation({ showForm: !0 }), setTimeout(() => {
|
|
7422
7421
|
var Pe, Se, Ie;
|
|
7423
7422
|
const ne = `reply-form-${(t.type === "answer" ? t.slug : ((Pe = t.slugs) == null ? void 0 : Pe.reply) || ((Se = t.slugs) == null ? void 0 : Se.answer) || ((Ie = t.slugs) == null ? void 0 : Ie.question) || "").toLowerCase().slice(-15)}`, $ = document.getElementById(ne), ge = document.getElementById(`${ne}-input`);
|
|
7424
7423
|
ge && ge.focus(), $ && $.scrollIntoView({ behavior: "smooth" });
|
|
7425
7424
|
}, 0);
|
|
7426
|
-
},
|
|
7425
|
+
}, W = () => {
|
|
7427
7426
|
le(!1);
|
|
7428
7427
|
try {
|
|
7429
7428
|
o(Cr(t.slugs));
|
|
7430
7429
|
} catch {
|
|
7431
|
-
|
|
7430
|
+
q("delete-error");
|
|
7432
7431
|
}
|
|
7433
7432
|
}, K = [
|
|
7434
7433
|
{
|
|
@@ -7451,10 +7450,10 @@ const Re = "discussion_", vo = 280, Lt = ({
|
|
|
7451
7450
|
icon: "flag"
|
|
7452
7451
|
}
|
|
7453
7452
|
];
|
|
7454
|
-
return n &&
|
|
7453
|
+
return n && A && K.push(
|
|
7455
7454
|
{
|
|
7456
7455
|
text: b.formatMessage({ id: `${Re}moreMenu_edit` }),
|
|
7457
|
-
onClick: () => Q({ ...
|
|
7456
|
+
onClick: () => Q({ ...z, isEditing: !0 }),
|
|
7458
7457
|
icon: "pencil-paper",
|
|
7459
7458
|
className: "gtm-trackable",
|
|
7460
7459
|
"data-gtm-event-context": g,
|
|
@@ -7471,11 +7470,11 @@ const Re = "discussion_", vo = 280, Lt = ({
|
|
|
7471
7470
|
"data-gtm-event-type": `delete-${t.type}-click`,
|
|
7472
7471
|
...co(`delete-${t.slug}-modal`, X)
|
|
7473
7472
|
}
|
|
7474
|
-
),
|
|
7473
|
+
), Z.createElement(e, {
|
|
7475
7474
|
className: E("discussion-post", h, {
|
|
7476
7475
|
[fe]: !h || !h.includes("highlighted-text-box")
|
|
7477
7476
|
}),
|
|
7478
|
-
ref:
|
|
7477
|
+
ref: H,
|
|
7479
7478
|
"data-testid": `discussion-${t.type}-thread`,
|
|
7480
7479
|
children: /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
|
|
7481
7480
|
/* @__PURE__ */ a.jsxs(
|
|
@@ -7483,24 +7482,24 @@ const Re = "discussion_", vo = 280, Lt = ({
|
|
|
7483
7482
|
{
|
|
7484
7483
|
id: F || t.slug,
|
|
7485
7484
|
className: E("discussion-card", t.type, {
|
|
7486
|
-
editing:
|
|
7487
|
-
"has-link": m.post && !
|
|
7485
|
+
editing: z.isEditing,
|
|
7486
|
+
"has-link": m.post && !z.isEditing
|
|
7488
7487
|
}),
|
|
7489
7488
|
onClick: (C) => {
|
|
7490
|
-
!m.post ||
|
|
7489
|
+
!m.post || z.isEditing || (C.preventDefault(), C.stopPropagation(), window.location.href = m.post);
|
|
7491
7490
|
},
|
|
7492
7491
|
children: [
|
|
7493
|
-
!
|
|
7492
|
+
!z.isEditing && /* @__PURE__ */ a.jsx(
|
|
7494
7493
|
Ln,
|
|
7495
7494
|
{
|
|
7496
7495
|
member: w,
|
|
7497
|
-
additionalContent: { createdAt: R, didEdit:
|
|
7496
|
+
additionalContent: { createdAt: R, didEdit: z.didEdit },
|
|
7498
7497
|
className: typeof w != "string" && w.id === s ? "highlighted" : "",
|
|
7499
7498
|
gtmContext: g,
|
|
7500
7499
|
gtmType: "profile-click"
|
|
7501
7500
|
}
|
|
7502
7501
|
),
|
|
7503
|
-
|
|
7502
|
+
z.isEditing ? /* @__PURE__ */ a.jsx(
|
|
7504
7503
|
zn,
|
|
7505
7504
|
{
|
|
7506
7505
|
content: { type: t.type, slugs: t.slugs },
|
|
@@ -7508,7 +7507,7 @@ const Re = "discussion_", vo = 280, Lt = ({
|
|
|
7508
7507
|
meta: {
|
|
7509
7508
|
isLoading: r,
|
|
7510
7509
|
isInWrapper: !0,
|
|
7511
|
-
isEditing: { text:
|
|
7510
|
+
isEditing: { text: z.body }
|
|
7512
7511
|
},
|
|
7513
7512
|
maxLength: t.type === "question" ? 250 : 5e4,
|
|
7514
7513
|
forceShow: {
|
|
@@ -7523,9 +7522,9 @@ const Re = "discussion_", vo = 280, Lt = ({
|
|
|
7523
7522
|
},
|
|
7524
7523
|
functions: {
|
|
7525
7524
|
create: c,
|
|
7526
|
-
handleSaveEdit:
|
|
7525
|
+
handleSaveEdit: U,
|
|
7527
7526
|
handleCancel: () => {
|
|
7528
|
-
|
|
7527
|
+
q(""), Q({ ...z, isEditing: !1 });
|
|
7529
7528
|
}
|
|
7530
7529
|
},
|
|
7531
7530
|
gtmContext: `${g}Form`
|
|
@@ -7543,7 +7542,7 @@ const Re = "discussion_", vo = 280, Lt = ({
|
|
|
7543
7542
|
bn,
|
|
7544
7543
|
{
|
|
7545
7544
|
options: {
|
|
7546
|
-
wrapper: t.type === "question" ? "h1" :
|
|
7545
|
+
wrapper: t.type === "question" ? "h1" : Z.Fragment,
|
|
7547
7546
|
forceWrapper: t.type === "question",
|
|
7548
7547
|
forceInline: t.type === "question",
|
|
7549
7548
|
forceBlock: t.type !== "question"
|
|
@@ -7551,7 +7550,7 @@ const Re = "discussion_", vo = 280, Lt = ({
|
|
|
7551
7550
|
children: Y
|
|
7552
7551
|
}
|
|
7553
7552
|
),
|
|
7554
|
-
!
|
|
7553
|
+
!z.isEditing && /* @__PURE__ */ a.jsxs(
|
|
7555
7554
|
"ul",
|
|
7556
7555
|
{
|
|
7557
7556
|
className: E("actions text-medium", t.type),
|
|
@@ -7561,9 +7560,9 @@ const Re = "discussion_", vo = 280, Lt = ({
|
|
|
7561
7560
|
_o,
|
|
7562
7561
|
{
|
|
7563
7562
|
element: "li",
|
|
7564
|
-
likes:
|
|
7563
|
+
likes: M,
|
|
7565
7564
|
isShort: !1,
|
|
7566
|
-
userLiked:
|
|
7565
|
+
userLiked: L,
|
|
7567
7566
|
content: { type: t.type, slugs: t.slugs },
|
|
7568
7567
|
canLike: ee,
|
|
7569
7568
|
peopleWhoLiked: t.peopleWhoLiked,
|
|
@@ -7612,7 +7611,7 @@ const Re = "discussion_", vo = 280, Lt = ({
|
|
|
7612
7611
|
variant: "tertiary",
|
|
7613
7612
|
size: "medium",
|
|
7614
7613
|
styling: { muted: !0 },
|
|
7615
|
-
onClick:
|
|
7614
|
+
onClick: B,
|
|
7616
7615
|
children: b.formatMessage({ id: `${Re}reply` })
|
|
7617
7616
|
}
|
|
7618
7617
|
) }),
|
|
@@ -7661,7 +7660,7 @@ const Re = "discussion_", vo = 280, Lt = ({
|
|
|
7661
7660
|
{
|
|
7662
7661
|
variant: "primary",
|
|
7663
7662
|
className: "destructive",
|
|
7664
|
-
onClick:
|
|
7663
|
+
onClick: W,
|
|
7665
7664
|
children: b.formatMessage({ id: "discussion_delete_delete" })
|
|
7666
7665
|
}
|
|
7667
7666
|
],
|
|
@@ -7684,7 +7683,7 @@ const Re = "discussion_", vo = 280, Lt = ({
|
|
|
7684
7683
|
});
|
|
7685
7684
|
};
|
|
7686
7685
|
const mn = "discussion_responses_", bo = ({ type: e = "answer", responses: t = 0 }) => {
|
|
7687
|
-
const n =
|
|
7686
|
+
const n = V();
|
|
7688
7687
|
return t = parseInt(t), /* @__PURE__ */ a.jsxs("div", { className: "responses-heading", children: [
|
|
7689
7688
|
/* @__PURE__ */ a.jsx("h4", { children: n.formatMessage(
|
|
7690
7689
|
{ id: `${mn}title` },
|
|
@@ -7703,7 +7702,7 @@ const yo = ({
|
|
|
7703
7702
|
form: r,
|
|
7704
7703
|
children: s
|
|
7705
7704
|
}) => {
|
|
7706
|
-
const i =
|
|
7705
|
+
const i = V(), c = $e(Zn), o = wt(s, {
|
|
7707
7706
|
element: "li"
|
|
7708
7707
|
});
|
|
7709
7708
|
return /* @__PURE__ */ a.jsxs("div", { className: "thread-wrapper", children: [
|
|
@@ -8242,7 +8241,7 @@ const Uc = ({
|
|
|
8242
8241
|
isMember: n,
|
|
8243
8242
|
functions: { activities: r, join: s, leave: i }
|
|
8244
8243
|
}) => {
|
|
8245
|
-
const c =
|
|
8244
|
+
const c = V(), {
|
|
8246
8245
|
activities: o,
|
|
8247
8246
|
error: f,
|
|
8248
8247
|
fetchNextPage: d,
|
|
@@ -8276,19 +8275,19 @@ const Uc = ({
|
|
|
8276
8275
|
}
|
|
8277
8276
|
),
|
|
8278
8277
|
o == null ? void 0 : o.map((j, w) => {
|
|
8279
|
-
var
|
|
8278
|
+
var z, Q, X, le, fe, k, S, q;
|
|
8280
8279
|
const {
|
|
8281
8280
|
id: x,
|
|
8282
8281
|
own_reactions: R,
|
|
8283
8282
|
latest_reactions: F,
|
|
8284
|
-
reaction_counts:
|
|
8285
|
-
} = j,
|
|
8286
|
-
var
|
|
8283
|
+
reaction_counts: M
|
|
8284
|
+
} = j, L = (((z = F == null ? void 0 : F.like) == null ? void 0 : z.length) || 0) > 0, O = (((Q = R == null ? void 0 : R.like) == null ? void 0 : Q.length) || 0) > 0, A = O ? R == null ? void 0 : R.like[0].id : "", ee = L ? (X = F == null ? void 0 : F.like) == null ? void 0 : X.map((D) => {
|
|
8285
|
+
var I, Y, U;
|
|
8287
8286
|
return {
|
|
8288
|
-
id: (
|
|
8289
|
-
name: (
|
|
8287
|
+
id: (I = D == null ? void 0 : D.user) == null ? void 0 : I.id,
|
|
8288
|
+
name: (U = (Y = D == null ? void 0 : D.user) == null ? void 0 : Y.data) == null ? void 0 : U.name
|
|
8290
8289
|
};
|
|
8291
|
-
}) : !1,
|
|
8290
|
+
}) : !1, N = j == null ? void 0 : j.actor, H = (N == null ? void 0 : N.id) === (b == null ? void 0 : b.id);
|
|
8292
8291
|
return /* @__PURE__ */ a.jsxs(at, { children: [
|
|
8293
8292
|
/* @__PURE__ */ a.jsx(
|
|
8294
8293
|
Lt,
|
|
@@ -8296,7 +8295,7 @@ const Uc = ({
|
|
|
8296
8295
|
content: {
|
|
8297
8296
|
type: "post",
|
|
8298
8297
|
body: j == null ? void 0 : j.content,
|
|
8299
|
-
canLike: Ft(n,
|
|
8298
|
+
canLike: Ft(n, H),
|
|
8300
8299
|
createdAt: (j == null ? void 0 : j.time) || "",
|
|
8301
8300
|
slugs: {
|
|
8302
8301
|
question: `${e}/${t}`,
|
|
@@ -8304,18 +8303,18 @@ const Uc = ({
|
|
|
8304
8303
|
},
|
|
8305
8304
|
slug: x,
|
|
8306
8305
|
author: {
|
|
8307
|
-
id:
|
|
8308
|
-
name: (le =
|
|
8309
|
-
organization: (fe =
|
|
8310
|
-
jobTitle: (k =
|
|
8311
|
-
location: (S =
|
|
8306
|
+
id: N == null ? void 0 : N.id,
|
|
8307
|
+
name: (le = N == null ? void 0 : N.data) == null ? void 0 : le.name,
|
|
8308
|
+
organization: (fe = N == null ? void 0 : N.data) == null ? void 0 : fe.organization,
|
|
8309
|
+
jobTitle: (k = N == null ? void 0 : N.data) == null ? void 0 : k.jobTitle,
|
|
8310
|
+
location: (S = N == null ? void 0 : N.data) == null ? void 0 : S.location,
|
|
8312
8311
|
image: {
|
|
8313
|
-
thumbnail: ((
|
|
8312
|
+
thumbnail: ((q = N == null ? void 0 : N.data) == null ? void 0 : q.thumbnail) || void 0
|
|
8314
8313
|
}
|
|
8315
8314
|
},
|
|
8316
8315
|
userLiked: O,
|
|
8317
|
-
likes: (
|
|
8318
|
-
comments: (
|
|
8316
|
+
likes: (M == null ? void 0 : M.like) || 0,
|
|
8317
|
+
comments: (M == null ? void 0 : M.reply) || 0,
|
|
8319
8318
|
peopleWhoLiked: ee
|
|
8320
8319
|
},
|
|
8321
8320
|
links: {
|
|
@@ -8327,11 +8326,11 @@ const Uc = ({
|
|
|
8327
8326
|
createContent: () => null,
|
|
8328
8327
|
deleteContent: () => g({ activityId: x }),
|
|
8329
8328
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
8330
|
-
updateContent: (
|
|
8329
|
+
updateContent: (D, { body: I }) => h({ activityId: x, content: I })
|
|
8331
8330
|
},
|
|
8332
8331
|
likes: {
|
|
8333
8332
|
createLike: () => v({ activityId: x }),
|
|
8334
|
-
deleteLike: () => _({ activityId: x, reactionId:
|
|
8333
|
+
deleteLike: () => _({ activityId: x, reactionId: A })
|
|
8335
8334
|
},
|
|
8336
8335
|
comments: {
|
|
8337
8336
|
openComments: () => null
|
|
@@ -9147,22 +9146,22 @@ const Qo = ({
|
|
|
9147
9146
|
meta: { isEditing: !1, showSuccessMessage: !1 }
|
|
9148
9147
|
},
|
|
9149
9148
|
children: c && c.length > 0 ? c == null ? void 0 : c.map((_) => {
|
|
9150
|
-
var
|
|
9149
|
+
var z, Q, X, le, fe, k, S, q, D, I, Y, U;
|
|
9151
9150
|
const {
|
|
9152
9151
|
id: b,
|
|
9153
9152
|
own_children: y,
|
|
9154
9153
|
latest_children: j,
|
|
9155
9154
|
children_counts: w
|
|
9156
|
-
} = _, R = (((
|
|
9157
|
-
var
|
|
9158
|
-
return ((
|
|
9159
|
-
}) : !1, F = R ? R == null ? void 0 : R.id : "",
|
|
9160
|
-
var
|
|
9155
|
+
} = _, R = (((z = y == null ? void 0 : y.like) == null ? void 0 : z.length) || 0) > 0 ? (Q = y == null ? void 0 : y.like) == null ? void 0 : Q.find((B) => {
|
|
9156
|
+
var W;
|
|
9157
|
+
return ((W = B == null ? void 0 : B.user) == null ? void 0 : W.id) === (v == null ? void 0 : v.id);
|
|
9158
|
+
}) : !1, F = R ? R == null ? void 0 : R.id : "", M = !!R, O = (((X = j == null ? void 0 : j.like) == null ? void 0 : X.length) || 0) > 0 ? (le = j == null ? void 0 : j.like) == null ? void 0 : le.map((B) => {
|
|
9159
|
+
var W, K, C;
|
|
9161
9160
|
return {
|
|
9162
|
-
id: (
|
|
9163
|
-
name: (C = (K =
|
|
9161
|
+
id: (W = B == null ? void 0 : B.user) == null ? void 0 : W.id,
|
|
9162
|
+
name: (C = (K = B == null ? void 0 : B.user) == null ? void 0 : K.data) == null ? void 0 : C.name
|
|
9164
9163
|
};
|
|
9165
|
-
}) : !1,
|
|
9164
|
+
}) : !1, A = _ == null ? void 0 : _.user, ee = (A == null ? void 0 : A.id) === (v == null ? void 0 : v.id), N = Ft(s, ee), H = typeof _.data.content == "string" ? (fe = _ == null ? void 0 : _.data) == null ? void 0 : fe.content : (
|
|
9166
9165
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
9167
9166
|
((S = (k = _ == null ? void 0 : _.data) == null ? void 0 : k.content) == null ? void 0 : S.text) || ""
|
|
9168
9167
|
);
|
|
@@ -9172,8 +9171,8 @@ const Qo = ({
|
|
|
9172
9171
|
content: {
|
|
9173
9172
|
id: b,
|
|
9174
9173
|
type: "reply",
|
|
9175
|
-
body:
|
|
9176
|
-
canLike:
|
|
9174
|
+
body: H,
|
|
9175
|
+
canLike: N,
|
|
9177
9176
|
createdAt: _ == null ? void 0 : _.created_at,
|
|
9178
9177
|
slugs: {
|
|
9179
9178
|
question: `${e}/${t}`,
|
|
@@ -9184,16 +9183,16 @@ const Qo = ({
|
|
|
9184
9183
|
},
|
|
9185
9184
|
slug: "",
|
|
9186
9185
|
author: {
|
|
9187
|
-
id:
|
|
9188
|
-
name: (
|
|
9189
|
-
organization: (
|
|
9190
|
-
jobTitle: (
|
|
9191
|
-
location: (Y =
|
|
9186
|
+
id: A == null ? void 0 : A.id,
|
|
9187
|
+
name: (q = A.data) == null ? void 0 : q.name,
|
|
9188
|
+
organization: (D = A.data) == null ? void 0 : D.organization,
|
|
9189
|
+
jobTitle: (I = A.data) == null ? void 0 : I.jobTitle,
|
|
9190
|
+
location: (Y = A.data) == null ? void 0 : Y.location,
|
|
9192
9191
|
image: {
|
|
9193
|
-
thumbnail: ((
|
|
9192
|
+
thumbnail: ((U = A.data) == null ? void 0 : U.thumbnail) || void 0
|
|
9194
9193
|
}
|
|
9195
9194
|
},
|
|
9196
|
-
userLiked:
|
|
9195
|
+
userLiked: M,
|
|
9197
9196
|
likes: (w == null ? void 0 : w.like) || 0,
|
|
9198
9197
|
peopleWhoLiked: O
|
|
9199
9198
|
},
|
|
@@ -9202,7 +9201,7 @@ const Qo = ({
|
|
|
9202
9201
|
createContent: () => null,
|
|
9203
9202
|
deleteContent: () => h({ replyId: b }),
|
|
9204
9203
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
9205
|
-
updateContent: (
|
|
9204
|
+
updateContent: (B, { body: W }) => l({ replyId: b, content: W })
|
|
9206
9205
|
},
|
|
9207
9206
|
likes: {
|
|
9208
9207
|
createLike: () => m({ replyId: b }),
|
|
@@ -9223,7 +9222,7 @@ const Qo = ({
|
|
|
9223
9222
|
isMember: r,
|
|
9224
9223
|
functions: { reactions: s, join: i, leave: c }
|
|
9225
9224
|
}) => {
|
|
9226
|
-
const o =
|
|
9225
|
+
const o = V(), {
|
|
9227
9226
|
replies: f,
|
|
9228
9227
|
repliesCount: d,
|
|
9229
9228
|
fetchNextPage: u,
|
|
@@ -9259,19 +9258,19 @@ const Qo = ({
|
|
|
9259
9258
|
}
|
|
9260
9259
|
),
|
|
9261
9260
|
f == null ? void 0 : f.map((j) => {
|
|
9262
|
-
var le, fe, k, S,
|
|
9263
|
-
const { id: w, own_children: x, latest_children: R, children_counts: F } = j,
|
|
9261
|
+
var le, fe, k, S, q, D, I, Y, U, B, W, K;
|
|
9262
|
+
const { id: w, own_children: x, latest_children: R, children_counts: F } = j, L = (((le = x == null ? void 0 : x.like) == null ? void 0 : le.length) || 0) > 0 ? (fe = x == null ? void 0 : x.like) == null ? void 0 : fe.find((C) => {
|
|
9264
9263
|
var ne;
|
|
9265
9264
|
return ((ne = C == null ? void 0 : C.user) == null ? void 0 : ne.id) === (y == null ? void 0 : y.id);
|
|
9266
|
-
}) : !1, O =
|
|
9265
|
+
}) : !1, O = L ? L == null ? void 0 : L.id : "", A = !!L, N = (((k = R == null ? void 0 : R.like) == null ? void 0 : k.length) || 0) > 0 ? (S = R == null ? void 0 : R.like) == null ? void 0 : S.map((C) => {
|
|
9267
9266
|
var ne, $, ge;
|
|
9268
9267
|
return {
|
|
9269
9268
|
id: (ne = C == null ? void 0 : C.user) == null ? void 0 : ne.id,
|
|
9270
9269
|
name: (ge = ($ = C == null ? void 0 : C.user) == null ? void 0 : $.data) == null ? void 0 : ge.name
|
|
9271
9270
|
};
|
|
9272
|
-
}) : !1,
|
|
9271
|
+
}) : !1, H = j == null ? void 0 : j.user, z = (H == null ? void 0 : H.id) === (y == null ? void 0 : y.id), Q = Ft(r, z), X = typeof j.data.content == "string" ? (q = j == null ? void 0 : j.data) == null ? void 0 : q.content : (
|
|
9273
9272
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
9274
|
-
((
|
|
9273
|
+
((I = (D = j == null ? void 0 : j.data) == null ? void 0 : D.content) == null ? void 0 : I.text) || ""
|
|
9275
9274
|
);
|
|
9276
9275
|
return /* @__PURE__ */ a.jsx(po, { children: /* @__PURE__ */ a.jsx(
|
|
9277
9276
|
Lt,
|
|
@@ -9289,18 +9288,18 @@ const Qo = ({
|
|
|
9289
9288
|
},
|
|
9290
9289
|
slug: w,
|
|
9291
9290
|
author: {
|
|
9292
|
-
id:
|
|
9293
|
-
name: (Y =
|
|
9294
|
-
organization: (
|
|
9295
|
-
jobTitle: (
|
|
9296
|
-
location: (
|
|
9291
|
+
id: H == null ? void 0 : H.id,
|
|
9292
|
+
name: (Y = H.data) == null ? void 0 : Y.name,
|
|
9293
|
+
organization: (U = H.data) == null ? void 0 : U.organization,
|
|
9294
|
+
jobTitle: (B = H.data) == null ? void 0 : B.jobTitle,
|
|
9295
|
+
location: (W = H.data) == null ? void 0 : W.location,
|
|
9297
9296
|
image: {
|
|
9298
|
-
thumbnail: ((K =
|
|
9297
|
+
thumbnail: ((K = H.data) == null ? void 0 : K.thumbnail) || void 0
|
|
9299
9298
|
}
|
|
9300
9299
|
},
|
|
9301
|
-
userLiked:
|
|
9300
|
+
userLiked: A,
|
|
9302
9301
|
likes: (F == null ? void 0 : F.like) || 0,
|
|
9303
|
-
peopleWhoLiked:
|
|
9302
|
+
peopleWhoLiked: N
|
|
9304
9303
|
},
|
|
9305
9304
|
functions: {
|
|
9306
9305
|
content: {
|
|
@@ -9451,8 +9450,8 @@ const Wc = ({
|
|
|
9451
9450
|
leave: f
|
|
9452
9451
|
}
|
|
9453
9452
|
}) => {
|
|
9454
|
-
var
|
|
9455
|
-
const d =
|
|
9453
|
+
var L, O, A, ee, N, H, z, Q, X, le;
|
|
9454
|
+
const d = V(), u = $e(Oe), {
|
|
9456
9455
|
activity: l,
|
|
9457
9456
|
error: m,
|
|
9458
9457
|
isLoading: h,
|
|
@@ -9471,13 +9470,13 @@ const Wc = ({
|
|
|
9471
9470
|
text: d.formatMessage({ id: "activitySection_notFoundError" })
|
|
9472
9471
|
}
|
|
9473
9472
|
);
|
|
9474
|
-
const { own_reactions: b, latest_reactions: y } = l, j = (((
|
|
9475
|
-
var k, S,
|
|
9473
|
+
const { own_reactions: b, latest_reactions: y } = l, j = (((L = y == null ? void 0 : y.like) == null ? void 0 : L.length) || 0) > 0, w = (((O = b == null ? void 0 : b.like) == null ? void 0 : O.length) || 0) > 0, x = w ? b == null ? void 0 : b.like[0].id : "", R = j ? (A = y == null ? void 0 : y.like) == null ? void 0 : A.map((fe) => {
|
|
9474
|
+
var k, S, q;
|
|
9476
9475
|
return {
|
|
9477
9476
|
id: (k = fe == null ? void 0 : fe.user) == null ? void 0 : k.id,
|
|
9478
|
-
name: (
|
|
9477
|
+
name: (q = (S = fe == null ? void 0 : fe.user) == null ? void 0 : S.data) == null ? void 0 : q.name
|
|
9479
9478
|
};
|
|
9480
|
-
}) : !1, F = l == null ? void 0 : l.actor,
|
|
9479
|
+
}) : !1, F = l == null ? void 0 : l.actor, M = (F == null ? void 0 : F.id) === (u == null ? void 0 : u.id);
|
|
9481
9480
|
return /* @__PURE__ */ a.jsxs("section", { className: "activity-section", children: [
|
|
9482
9481
|
/* @__PURE__ */ a.jsx(
|
|
9483
9482
|
Lt,
|
|
@@ -9487,7 +9486,7 @@ const Wc = ({
|
|
|
9487
9486
|
id: n,
|
|
9488
9487
|
type: "post",
|
|
9489
9488
|
body: l == null ? void 0 : l.content,
|
|
9490
|
-
canLike: Ft(r,
|
|
9489
|
+
canLike: Ft(r, M),
|
|
9491
9490
|
createdAt: (l == null ? void 0 : l.time) || "",
|
|
9492
9491
|
slugs: {
|
|
9493
9492
|
question: `${e}/${t}`,
|
|
@@ -9497,9 +9496,9 @@ const Wc = ({
|
|
|
9497
9496
|
author: {
|
|
9498
9497
|
id: F.id,
|
|
9499
9498
|
name: (ee = F.data) == null ? void 0 : ee.name,
|
|
9500
|
-
organization: (
|
|
9501
|
-
jobTitle: (
|
|
9502
|
-
location: (
|
|
9499
|
+
organization: (N = F.data) == null ? void 0 : N.organization,
|
|
9500
|
+
jobTitle: (H = F.data) == null ? void 0 : H.jobTitle,
|
|
9501
|
+
location: (z = F.data) == null ? void 0 : z.location,
|
|
9503
9502
|
image: {
|
|
9504
9503
|
thumbnail: ((Q = F.data) == null ? void 0 : Q.thumbnail) || void 0
|
|
9505
9504
|
}
|
|
@@ -9599,7 +9598,7 @@ const Wc = ({
|
|
|
9599
9598
|
}
|
|
9600
9599
|
];
|
|
9601
9600
|
const yt = "notFoundError_", Yc = () => {
|
|
9602
|
-
const e =
|
|
9601
|
+
const e = V(), t = [];
|
|
9603
9602
|
return Or.forEach((n, r) => {
|
|
9604
9603
|
n.title = e.formatMessage({ id: `${yt}post_${r + 1}` }), t.push("solutionArticle");
|
|
9605
9604
|
}), /* @__PURE__ */ a.jsxs(
|