@apolitical/component-library 2.0.2-beta.0 → 2.0.3-beta.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/discussion/components/responses-heading/responses-heading.d.ts +1 -1
- package/discussion/discussion.mock.d.ts +0 -4
- package/discussion/sections/activity-section/mocks/activity-section.mock.d.ts +0 -3
- package/discussion/shared/interfaces/user.interface.d.ts +0 -3
- package/index.js +17 -17
- package/index.mjs +904 -909
- package/package.json +1 -1
- package/style.css +1 -1
package/index.mjs
CHANGED
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
import * as nr from "react";
|
|
2
|
-
import
|
|
2
|
+
import L, { memo as Ie, useState as J, useEffect as ie, useRef as me, useMemo as at, createContext as Sn, useContext as Ce, Children as pn, useCallback as Ar, Fragment as tt, useReducer as Cn, forwardRef as Za, createElement as rr, Component as Ua, Suspense as Ha } from "react";
|
|
3
3
|
import xt from "lodash.clonedeep";
|
|
4
4
|
import Wa from "lodash.set";
|
|
5
|
-
import { useIntl as
|
|
5
|
+
import { useIntl as H, IntlProvider as Va, createIntl as Ya, FormattedMessage as xe } from "react-intl";
|
|
6
6
|
import Ue from "truncate";
|
|
7
7
|
import { QueryClient as Ga, QueryClientProvider as Ka, useMutation as we, useQueryClient as $n, useInfiniteQuery as Or, useQuery as Qa } from "@tanstack/react-query";
|
|
8
8
|
import { ReactQueryDevtools as Ja } from "@tanstack/react-query-devtools";
|
|
9
9
|
import bt from "posthog-js";
|
|
10
10
|
import { CookiesProvider as Xa, useCookies as Fr } from "react-cookie";
|
|
11
|
-
import
|
|
11
|
+
import Pt from "markdown-to-jsx";
|
|
12
12
|
import { ReactMultiEmail as es } from "react-multi-email";
|
|
13
13
|
import Lr from "lodash.get";
|
|
14
14
|
import { ErrorBoundary as ts } from "react-error-boundary";
|
|
15
15
|
import ns from "react-textarea-autosize";
|
|
16
16
|
import rs from "lodash.isequal";
|
|
17
|
-
function
|
|
17
|
+
function Mn(e) {
|
|
18
18
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
19
19
|
}
|
|
20
20
|
var Dr = { exports: {} };
|
|
@@ -54,20 +54,20 @@ var Dr = { exports: {} };
|
|
|
54
54
|
})();
|
|
55
55
|
})(Dr);
|
|
56
56
|
var as = Dr.exports;
|
|
57
|
-
const
|
|
57
|
+
const S = /* @__PURE__ */ Mn(as), ss = ({
|
|
58
58
|
element: e = "span",
|
|
59
59
|
showOnFocus: t = !0,
|
|
60
60
|
children: n,
|
|
61
61
|
...r
|
|
62
|
-
}) =>
|
|
62
|
+
}) => L.createElement(e, {
|
|
63
63
|
...r,
|
|
64
|
-
className:
|
|
64
|
+
className: S("hidden", { "show-on-focus": t }),
|
|
65
65
|
children: n
|
|
66
|
-
}),
|
|
66
|
+
}), ge = Ie(ss), is = ({
|
|
67
67
|
element: e = "span",
|
|
68
68
|
children: t = null,
|
|
69
69
|
...n
|
|
70
|
-
}) =>
|
|
70
|
+
}) => L.createElement(e, { ...n, "aria-hidden": !0 }, t), Pn = Ie(is);
|
|
71
71
|
var hn = { exports: {} }, Ye = {};
|
|
72
72
|
/**
|
|
73
73
|
* @license React
|
|
@@ -83,7 +83,7 @@ function os() {
|
|
|
83
83
|
if (ar)
|
|
84
84
|
return Ye;
|
|
85
85
|
ar = 1;
|
|
86
|
-
var e =
|
|
86
|
+
var e = L, 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 Ge = {};
|
|
|
109
109
|
var sr;
|
|
110
110
|
function cs() {
|
|
111
111
|
return sr || (sr = 1, process.env.NODE_ENV !== "production" && function() {
|
|
112
|
-
var e =
|
|
112
|
+
var e = L, 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,14 +119,14 @@ function cs() {
|
|
|
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, M = new Array(T > 1 ? T - 1 : 0),
|
|
123
|
-
M[
|
|
122
|
+
for (var T = arguments.length, M = new Array(T > 1 ? T - 1 : 0), V = 1; V < T; V++)
|
|
123
|
+
M[V - 1] = arguments[V];
|
|
124
124
|
j("error", p, M);
|
|
125
125
|
}
|
|
126
126
|
}
|
|
127
127
|
function j(p, T, M) {
|
|
128
128
|
{
|
|
129
|
-
var
|
|
129
|
+
var V = b.ReactDebugCurrentFrame, ae = V.getStackAddendum();
|
|
130
130
|
ae !== "" && (T += "%s", M = M.concat([ae]));
|
|
131
131
|
var ue = M.map(function(re) {
|
|
132
132
|
return String(re);
|
|
@@ -134,26 +134,26 @@ function cs() {
|
|
|
134
134
|
ue.unshift("Warning: " + T), Function.prototype.apply.call(console[p], console, ue);
|
|
135
135
|
}
|
|
136
136
|
}
|
|
137
|
-
var w = !1, x = !1,
|
|
137
|
+
var w = !1, x = !1, P = !1, D = !1, G = !1, N;
|
|
138
138
|
N = Symbol.for("react.module.reference");
|
|
139
|
-
function
|
|
140
|
-
return !!(typeof p == "string" || typeof p == "function" || p === r || p === i ||
|
|
139
|
+
function A(p) {
|
|
140
|
+
return !!(typeof p == "string" || typeof p == "function" || p === r || p === i || G || p === s || p === d || p === u || D || p === h || w || x || P || 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
144
|
p.$$typeof === N || p.getModuleId !== void 0));
|
|
145
145
|
}
|
|
146
|
-
function
|
|
147
|
-
var
|
|
148
|
-
if (
|
|
149
|
-
return
|
|
146
|
+
function E(p, T, M) {
|
|
147
|
+
var V = p.displayName;
|
|
148
|
+
if (V)
|
|
149
|
+
return V;
|
|
150
150
|
var ae = T.displayName || T.name || "";
|
|
151
151
|
return ae !== "" ? M + "(" + ae + ")" : M;
|
|
152
152
|
}
|
|
153
153
|
function ee(p) {
|
|
154
154
|
return p.displayName || "Context";
|
|
155
155
|
}
|
|
156
|
-
function
|
|
156
|
+
function W(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")
|
|
@@ -183,14 +183,14 @@ function cs() {
|
|
|
183
183
|
var M = p;
|
|
184
184
|
return ee(M._context) + ".Provider";
|
|
185
185
|
case f:
|
|
186
|
-
return
|
|
186
|
+
return E(p, p.render, "ForwardRef");
|
|
187
187
|
case l:
|
|
188
|
-
var
|
|
189
|
-
return
|
|
188
|
+
var V = p.displayName || null;
|
|
189
|
+
return V !== null ? V : W(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 W(re(ue));
|
|
194
194
|
} catch {
|
|
195
195
|
return null;
|
|
196
196
|
}
|
|
@@ -198,18 +198,18 @@ function cs() {
|
|
|
198
198
|
}
|
|
199
199
|
return null;
|
|
200
200
|
}
|
|
201
|
-
var U = Object.assign,
|
|
202
|
-
function
|
|
201
|
+
var U = Object.assign, F = 0, Q, X, ne, fe, k, C, B;
|
|
202
|
+
function q() {
|
|
203
203
|
}
|
|
204
|
-
|
|
205
|
-
function
|
|
204
|
+
q.__reactDisabledLog = !0;
|
|
205
|
+
function z() {
|
|
206
206
|
{
|
|
207
|
-
if (
|
|
208
|
-
Q = console.log, X = console.info,
|
|
207
|
+
if (F === 0) {
|
|
208
|
+
Q = console.log, X = console.info, ne = console.warn, fe = console.error, k = console.group, C = console.groupCollapsed, B = console.groupEnd;
|
|
209
209
|
var p = {
|
|
210
210
|
configurable: !0,
|
|
211
211
|
enumerable: !0,
|
|
212
|
-
value:
|
|
212
|
+
value: q,
|
|
213
213
|
writable: !0
|
|
214
214
|
};
|
|
215
215
|
Object.defineProperties(console, {
|
|
@@ -222,12 +222,12 @@ function cs() {
|
|
|
222
222
|
groupEnd: p
|
|
223
223
|
});
|
|
224
224
|
}
|
|
225
|
-
|
|
225
|
+
F++;
|
|
226
226
|
}
|
|
227
227
|
}
|
|
228
|
-
function
|
|
228
|
+
function K() {
|
|
229
229
|
{
|
|
230
|
-
if (
|
|
230
|
+
if (F--, F === 0) {
|
|
231
231
|
var p = {
|
|
232
232
|
configurable: !0,
|
|
233
233
|
enumerable: !0,
|
|
@@ -241,7 +241,7 @@ function cs() {
|
|
|
241
241
|
value: X
|
|
242
242
|
}),
|
|
243
243
|
warn: U({}, p, {
|
|
244
|
-
value:
|
|
244
|
+
value: ne
|
|
245
245
|
}),
|
|
246
246
|
error: U({}, p, {
|
|
247
247
|
value: fe
|
|
@@ -250,49 +250,49 @@ function cs() {
|
|
|
250
250
|
value: k
|
|
251
251
|
}),
|
|
252
252
|
groupCollapsed: U({}, p, {
|
|
253
|
-
value:
|
|
253
|
+
value: C
|
|
254
254
|
}),
|
|
255
255
|
groupEnd: U({}, p, {
|
|
256
256
|
value: B
|
|
257
257
|
})
|
|
258
258
|
});
|
|
259
259
|
}
|
|
260
|
-
|
|
260
|
+
F < 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 O = b.ReactCurrentDispatcher, I;
|
|
264
|
+
function Y(p, T, M) {
|
|
265
265
|
{
|
|
266
266
|
if (I === void 0)
|
|
267
267
|
try {
|
|
268
268
|
throw Error();
|
|
269
269
|
} catch (ae) {
|
|
270
|
-
var
|
|
271
|
-
I =
|
|
270
|
+
var V = ae.stack.trim().match(/\n( *(at )?)/);
|
|
271
|
+
I = V && V[1] || "";
|
|
272
272
|
}
|
|
273
273
|
return `
|
|
274
274
|
` + I + p;
|
|
275
275
|
}
|
|
276
276
|
}
|
|
277
|
-
var
|
|
277
|
+
var Z = !1, R;
|
|
278
278
|
{
|
|
279
|
-
var
|
|
280
|
-
|
|
279
|
+
var le = typeof WeakMap == "function" ? WeakMap : Map;
|
|
280
|
+
R = new le();
|
|
281
281
|
}
|
|
282
282
|
function $(p, T) {
|
|
283
|
-
if (!p ||
|
|
283
|
+
if (!p || Z)
|
|
284
284
|
return "";
|
|
285
285
|
{
|
|
286
|
-
var M =
|
|
286
|
+
var M = R.get(p);
|
|
287
287
|
if (M !== void 0)
|
|
288
288
|
return M;
|
|
289
289
|
}
|
|
290
|
-
var
|
|
291
|
-
|
|
290
|
+
var V;
|
|
291
|
+
Z = !0;
|
|
292
292
|
var ae = Error.prepareStackTrace;
|
|
293
293
|
Error.prepareStackTrace = void 0;
|
|
294
294
|
var ue;
|
|
295
|
-
ue =
|
|
295
|
+
ue = O.current, O.current = null, z();
|
|
296
296
|
try {
|
|
297
297
|
if (T) {
|
|
298
298
|
var re = function() {
|
|
@@ -305,30 +305,30 @@ function cs() {
|
|
|
305
305
|
}), typeof Reflect == "object" && Reflect.construct) {
|
|
306
306
|
try {
|
|
307
307
|
Reflect.construct(re, []);
|
|
308
|
-
} catch (
|
|
309
|
-
|
|
308
|
+
} catch (Me) {
|
|
309
|
+
V = Me;
|
|
310
310
|
}
|
|
311
311
|
Reflect.construct(p, [], re);
|
|
312
312
|
} else {
|
|
313
313
|
try {
|
|
314
314
|
re.call();
|
|
315
|
-
} catch (
|
|
316
|
-
|
|
315
|
+
} catch (Me) {
|
|
316
|
+
V = Me;
|
|
317
317
|
}
|
|
318
318
|
p.call(re.prototype);
|
|
319
319
|
}
|
|
320
320
|
} else {
|
|
321
321
|
try {
|
|
322
322
|
throw Error();
|
|
323
|
-
} catch (
|
|
324
|
-
|
|
323
|
+
} catch (Me) {
|
|
324
|
+
V = Me;
|
|
325
325
|
}
|
|
326
326
|
p();
|
|
327
327
|
}
|
|
328
|
-
} catch (
|
|
329
|
-
if (
|
|
330
|
-
for (var te =
|
|
331
|
-
`), ve =
|
|
328
|
+
} catch (Me) {
|
|
329
|
+
if (Me && V && typeof Me.stack == "string") {
|
|
330
|
+
for (var te = Me.stack.split(`
|
|
331
|
+
`), ve = V.stack.split(`
|
|
332
332
|
`), pe = te.length - 1, he = ve.length - 1; pe >= 1 && he >= 0 && te[pe] !== ve[he]; )
|
|
333
333
|
he--;
|
|
334
334
|
for (; pe >= 1 && he >= 0; pe--, he--)
|
|
@@ -338,19 +338,19 @@ function cs() {
|
|
|
338
338
|
if (pe--, he--, he < 0 || te[pe] !== ve[he]) {
|
|
339
339
|
var je = `
|
|
340
340
|
` + te[pe].replace(" at new ", " at ");
|
|
341
|
-
return p.displayName && je.includes("<anonymous>") && (je = je.replace("<anonymous>", p.displayName)), typeof p == "function" &&
|
|
341
|
+
return p.displayName && je.includes("<anonymous>") && (je = je.replace("<anonymous>", p.displayName)), typeof p == "function" && R.set(p, je), je;
|
|
342
342
|
}
|
|
343
343
|
while (pe >= 1 && he >= 0);
|
|
344
344
|
break;
|
|
345
345
|
}
|
|
346
346
|
}
|
|
347
347
|
} finally {
|
|
348
|
-
|
|
348
|
+
Z = !1, O.current = ue, K(), Error.prepareStackTrace = ae;
|
|
349
349
|
}
|
|
350
|
-
var qe = p ? p.displayName || p.name : "", tr = qe ?
|
|
351
|
-
return typeof p == "function" &&
|
|
350
|
+
var qe = p ? p.displayName || p.name : "", tr = qe ? Y(qe) : "";
|
|
351
|
+
return typeof p == "function" && R.set(p, tr), tr;
|
|
352
352
|
}
|
|
353
|
-
function
|
|
353
|
+
function _e(p, T, M) {
|
|
354
354
|
return $(p, !1);
|
|
355
355
|
}
|
|
356
356
|
function $e(p) {
|
|
@@ -363,21 +363,21 @@ function cs() {
|
|
|
363
363
|
if (typeof p == "function")
|
|
364
364
|
return $(p, $e(p));
|
|
365
365
|
if (typeof p == "string")
|
|
366
|
-
return
|
|
366
|
+
return Y(p);
|
|
367
367
|
switch (p) {
|
|
368
368
|
case d:
|
|
369
|
-
return
|
|
369
|
+
return Y("Suspense");
|
|
370
370
|
case u:
|
|
371
|
-
return
|
|
371
|
+
return Y("SuspenseList");
|
|
372
372
|
}
|
|
373
373
|
if (typeof p == "object")
|
|
374
374
|
switch (p.$$typeof) {
|
|
375
375
|
case f:
|
|
376
|
-
return
|
|
376
|
+
return _e(p.render);
|
|
377
377
|
case l:
|
|
378
378
|
return Ee(p.type, T, M);
|
|
379
379
|
case m: {
|
|
380
|
-
var
|
|
380
|
+
var V = p, ae = V._payload, ue = V._init;
|
|
381
381
|
try {
|
|
382
382
|
return Ee(ue(ae), T, M);
|
|
383
383
|
} catch {
|
|
@@ -394,7 +394,7 @@ function cs() {
|
|
|
394
394
|
} else
|
|
395
395
|
Un.setExtraStackFrame(null);
|
|
396
396
|
}
|
|
397
|
-
function ja(p, T, M,
|
|
397
|
+
function ja(p, T, M, V, ae) {
|
|
398
398
|
{
|
|
399
399
|
var ue = Function.call.bind(Le);
|
|
400
400
|
for (var re in p)
|
|
@@ -402,14 +402,14 @@ function cs() {
|
|
|
402
402
|
var te = void 0;
|
|
403
403
|
try {
|
|
404
404
|
if (typeof p[re] != "function") {
|
|
405
|
-
var ve = Error((
|
|
405
|
+
var ve = Error((V || "React class") + ": " + M + " 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 ve.name = "Invariant Violation", ve;
|
|
407
407
|
}
|
|
408
|
-
te = p[re](T, re,
|
|
408
|
+
te = p[re](T, re, V, M, 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) && (lt(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).",
|
|
412
|
+
te && !(te instanceof Error) && (lt(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).", V || "React class", M, re, typeof te), lt(null)), te instanceof Error && !(te.message in Zn) && (Zn[te.message] = !0, lt(ae), y("Failed %s type: %s", M, te.message), lt(null));
|
|
413
413
|
}
|
|
414
414
|
}
|
|
415
415
|
}
|
|
@@ -460,13 +460,13 @@ function cs() {
|
|
|
460
460
|
}
|
|
461
461
|
return p.key !== void 0;
|
|
462
462
|
}
|
|
463
|
-
function
|
|
463
|
+
function Ma(p, T) {
|
|
464
464
|
if (typeof p.ref == "string" && Ve.current && T && Ve.current.stateNode !== T) {
|
|
465
|
-
var M =
|
|
466
|
-
Dt[M] || (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',
|
|
465
|
+
var M = W(Ve.current.type);
|
|
466
|
+
Dt[M] || (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', W(Ve.current.type), p.ref), Dt[M] = !0);
|
|
467
467
|
}
|
|
468
468
|
}
|
|
469
|
-
function
|
|
469
|
+
function Pa(p, T) {
|
|
470
470
|
{
|
|
471
471
|
var M = function() {
|
|
472
472
|
Vn || (Vn = !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));
|
|
@@ -488,7 +488,7 @@ function cs() {
|
|
|
488
488
|
});
|
|
489
489
|
}
|
|
490
490
|
}
|
|
491
|
-
var Na = function(p, T, M,
|
|
491
|
+
var Na = function(p, T, M, V, 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,
|
|
@@ -509,7 +509,7 @@ function cs() {
|
|
|
509
509
|
configurable: !1,
|
|
510
510
|
enumerable: !1,
|
|
511
511
|
writable: !1,
|
|
512
|
-
value:
|
|
512
|
+
value: V
|
|
513
513
|
}), Object.defineProperty(te, "_source", {
|
|
514
514
|
configurable: !1,
|
|
515
515
|
enumerable: !1,
|
|
@@ -517,10 +517,10 @@ function cs() {
|
|
|
517
517
|
value: ae
|
|
518
518
|
}), Object.freeze && (Object.freeze(te.props), Object.freeze(te)), te;
|
|
519
519
|
};
|
|
520
|
-
function Aa(p, T, M,
|
|
520
|
+
function Aa(p, T, M, V, ae) {
|
|
521
521
|
{
|
|
522
522
|
var ue, re = {}, te = null, ve = null;
|
|
523
|
-
M !== void 0 && (Wn(M), te = "" + M), $a(T) && (Wn(T.key), te = "" + T.key), Ca(T) && (ve = T.ref,
|
|
523
|
+
M !== void 0 && (Wn(M), te = "" + M), $a(T) && (Wn(T.key), te = "" + T.key), Ca(T) && (ve = T.ref, Ma(T, ae));
|
|
524
524
|
for (ue in T)
|
|
525
525
|
Le.call(T, ue) && !Sa.hasOwnProperty(ue) && (re[ue] = T[ue]);
|
|
526
526
|
if (p && p.defaultProps) {
|
|
@@ -530,9 +530,9 @@ function cs() {
|
|
|
530
530
|
}
|
|
531
531
|
if (te || ve) {
|
|
532
532
|
var he = typeof p == "function" ? p.displayName || p.name || "Unknown" : p;
|
|
533
|
-
te &&
|
|
533
|
+
te && Pa(re, he), ve && Ra(re, he);
|
|
534
534
|
}
|
|
535
|
-
return Na(p, te, ve, ae,
|
|
535
|
+
return Na(p, te, ve, ae, V, Ve.current, re);
|
|
536
536
|
}
|
|
537
537
|
}
|
|
538
538
|
var It = b.ReactCurrentOwner, Gn = b.ReactDebugCurrentFrame;
|
|
@@ -551,7 +551,7 @@ function cs() {
|
|
|
551
551
|
function Kn() {
|
|
552
552
|
{
|
|
553
553
|
if (It.current) {
|
|
554
|
-
var p =
|
|
554
|
+
var p = W(It.current.type);
|
|
555
555
|
if (p)
|
|
556
556
|
return `
|
|
557
557
|
|
|
@@ -593,8 +593,8 @@ Check the top-level render call using <` + M + ">.");
|
|
|
593
593
|
if (Qn[M])
|
|
594
594
|
return;
|
|
595
595
|
Qn[M] = !0;
|
|
596
|
-
var
|
|
597
|
-
p && p._owner && p._owner !== It.current && (
|
|
596
|
+
var V = "";
|
|
597
|
+
p && p._owner && p._owner !== It.current && (V = " It was passed a child from " + W(p._owner.type) + "."), Be(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.', M, V), Be(null);
|
|
598
598
|
}
|
|
599
599
|
}
|
|
600
600
|
function Xn(p, T) {
|
|
@@ -603,8 +603,8 @@ Check the top-level render call using <` + M + ">.");
|
|
|
603
603
|
return;
|
|
604
604
|
if (Lt(p))
|
|
605
605
|
for (var M = 0; M < p.length; M++) {
|
|
606
|
-
var
|
|
607
|
-
qt(
|
|
606
|
+
var V = p[M];
|
|
607
|
+
qt(V) && Jn(V, T);
|
|
608
608
|
}
|
|
609
609
|
else if (qt(p))
|
|
610
610
|
p._store && (p._store.validated = !0);
|
|
@@ -631,11 +631,11 @@ Check the top-level render call using <` + M + ">.");
|
|
|
631
631
|
else
|
|
632
632
|
return;
|
|
633
633
|
if (M) {
|
|
634
|
-
var
|
|
635
|
-
ja(M, p.props, "prop",
|
|
634
|
+
var V = W(T);
|
|
635
|
+
ja(M, p.props, "prop", V, p);
|
|
636
636
|
} else if (T.PropTypes !== void 0 && !Bt) {
|
|
637
637
|
Bt = !0;
|
|
638
|
-
var ae =
|
|
638
|
+
var ae = W(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.");
|
|
@@ -644,25 +644,25 @@ Check the top-level render call using <` + M + ">.");
|
|
|
644
644
|
function Da(p) {
|
|
645
645
|
{
|
|
646
646
|
for (var T = Object.keys(p.props), M = 0; M < T.length; M++) {
|
|
647
|
-
var
|
|
648
|
-
if (
|
|
649
|
-
Be(p), y("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",
|
|
647
|
+
var V = T[M];
|
|
648
|
+
if (V !== "children" && V !== "key") {
|
|
649
|
+
Be(p), y("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", V), Be(null);
|
|
650
650
|
break;
|
|
651
651
|
}
|
|
652
652
|
}
|
|
653
653
|
p.ref !== null && (Be(p), y("Invalid attribute `ref` supplied to `React.Fragment`."), Be(null));
|
|
654
654
|
}
|
|
655
655
|
}
|
|
656
|
-
function er(p, T, M,
|
|
656
|
+
function er(p, T, M, V, ae, ue) {
|
|
657
657
|
{
|
|
658
|
-
var re =
|
|
658
|
+
var re = A(p);
|
|
659
659
|
if (!re) {
|
|
660
660
|
var te = "";
|
|
661
661
|
(p === void 0 || typeof p == "object" && p !== null && Object.keys(p).length === 0) && (te += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
|
|
662
662
|
var ve = Oa(ae);
|
|
663
663
|
ve ? te += ve : te += Kn();
|
|
664
664
|
var pe;
|
|
665
|
-
p === null ? pe = "null" : Lt(p) ? pe = "array" : p !== void 0 && p.$$typeof === t ? (pe = "<" + (
|
|
665
|
+
p === null ? pe = "null" : Lt(p) ? pe = "array" : p !== void 0 && p.$$typeof === t ? (pe = "<" + (W(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
667
|
var he = Aa(p, T, M, ae, ue);
|
|
668
668
|
if (he == null)
|
|
@@ -670,7 +670,7 @@ Check the top-level render call using <` + M + ">.");
|
|
|
670
670
|
if (re) {
|
|
671
671
|
var je = T.children;
|
|
672
672
|
if (je !== void 0)
|
|
673
|
-
if (
|
|
673
|
+
if (V)
|
|
674
674
|
if (Lt(je)) {
|
|
675
675
|
for (var qe = 0; qe < je.length; qe++)
|
|
676
676
|
Xn(je[qe], p);
|
|
@@ -723,36 +723,36 @@ function ds(e, t, n) {
|
|
|
723
723
|
};
|
|
724
724
|
}, []);
|
|
725
725
|
var j = at(function() {
|
|
726
|
-
var w = function(
|
|
727
|
-
var
|
|
728
|
-
return o.current = f.current = null, i.current =
|
|
729
|
-
}, x = function(
|
|
730
|
-
h && cancelAnimationFrame(c.current), c.current = h ? requestAnimationFrame(
|
|
731
|
-
},
|
|
726
|
+
var w = function(A) {
|
|
727
|
+
var E = o.current, ee = f.current;
|
|
728
|
+
return o.current = f.current = null, i.current = A, d.current = u.current.apply(ee, E);
|
|
729
|
+
}, x = function(A, E) {
|
|
730
|
+
h && cancelAnimationFrame(c.current), c.current = h ? requestAnimationFrame(A) : setTimeout(A, E);
|
|
731
|
+
}, P = function(A) {
|
|
732
732
|
if (!l.current)
|
|
733
733
|
return !1;
|
|
734
|
-
var
|
|
735
|
-
return !s.current ||
|
|
736
|
-
},
|
|
737
|
-
return c.current = null, v && o.current ? w(
|
|
738
|
-
},
|
|
739
|
-
var
|
|
740
|
-
if (
|
|
741
|
-
return
|
|
734
|
+
var E = A - s.current;
|
|
735
|
+
return !s.current || E >= t || E < 0 || _ && A - i.current >= y;
|
|
736
|
+
}, D = function(A) {
|
|
737
|
+
return c.current = null, v && o.current ? w(A) : (o.current = f.current = null, d.current);
|
|
738
|
+
}, G = function A() {
|
|
739
|
+
var E = Date.now();
|
|
740
|
+
if (P(E))
|
|
741
|
+
return D(E);
|
|
742
742
|
if (l.current) {
|
|
743
|
-
var ee = t - (
|
|
744
|
-
x(
|
|
743
|
+
var ee = t - (E - s.current), W = _ ? Math.min(ee, y - (E - i.current)) : ee;
|
|
744
|
+
x(A, W);
|
|
745
745
|
}
|
|
746
746
|
}, N = function() {
|
|
747
747
|
if (m || b) {
|
|
748
|
-
var
|
|
749
|
-
if (o.current = [].slice.call(arguments), f.current = r, s.current =
|
|
748
|
+
var A = Date.now(), E = P(A);
|
|
749
|
+
if (o.current = [].slice.call(arguments), f.current = r, s.current = A, E) {
|
|
750
750
|
if (!c.current && l.current)
|
|
751
|
-
return i.current = s.current, x(
|
|
751
|
+
return i.current = s.current, x(G, t), g ? w(s.current) : d.current;
|
|
752
752
|
if (_)
|
|
753
|
-
return x(
|
|
753
|
+
return x(G, t), w(s.current);
|
|
754
754
|
}
|
|
755
|
-
return c.current || x(
|
|
755
|
+
return c.current || x(G, t), d.current;
|
|
756
756
|
}
|
|
757
757
|
};
|
|
758
758
|
return N.cancel = function() {
|
|
@@ -760,7 +760,7 @@ function ds(e, t, n) {
|
|
|
760
760
|
}, N.isPending = function() {
|
|
761
761
|
return !!c.current;
|
|
762
762
|
}, N.flush = function() {
|
|
763
|
-
return c.current ?
|
|
763
|
+
return c.current ? D(Date.now()) : d.current;
|
|
764
764
|
}, N;
|
|
765
765
|
}, [g, _, t, y, v, h, m, b]);
|
|
766
766
|
return j;
|
|
@@ -773,7 +773,7 @@ let zt;
|
|
|
773
773
|
const st = (e = !0, t = !1, n = "window") => {
|
|
774
774
|
if (!e)
|
|
775
775
|
return;
|
|
776
|
-
const [r, s] =
|
|
776
|
+
const [r, s] = L.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 st = (e = !0, t = !1, n = "window") => {
|
|
|
804
804
|
}) => {
|
|
805
805
|
if (!window)
|
|
806
806
|
return;
|
|
807
|
-
const [s, i] =
|
|
807
|
+
const [s, i] = L.useState({
|
|
808
808
|
current: 0,
|
|
809
809
|
past: 0
|
|
810
810
|
}) || [!1, () => {
|
|
811
|
-
}], [c, o] =
|
|
811
|
+
}], [c, o] = L.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
|
-
}, yt = (e, t) =>
|
|
1295
|
+
}, yt = (e, t) => L.Children.map(e, (n) => Object.is(n, null) ? n : L.cloneElement(n, {
|
|
1296
1296
|
...t
|
|
1297
1297
|
})), ws = (e = 0) => {
|
|
1298
1298
|
setTimeout(() => {
|
|
@@ -1322,7 +1322,7 @@ Thank you for helping to protect the Apolitical community from abusive content.`
|
|
|
1322
1322
|
typeof t == "string" && g.push(t), r && (g.push("icon"), typeof r == "object" ? (g.push(r.icon), r.position ? g.push(r.position) : g.push("left"), r.hover && g.push(`hover_${r.hover}`), r.animate && (g.push("animate"), typeof r.animate == "string" && g.push(r.animate))) : (g.push(r), !r.includes("right") && !r.includes("left") && g.push("left"))), n.muted && g.push("muted"), n.fullWidth && g.push("full-width");
|
|
1323
1323
|
const v = {
|
|
1324
1324
|
...l,
|
|
1325
|
-
className:
|
|
1325
|
+
className: S(e, o, g, {
|
|
1326
1326
|
"no-text": !u,
|
|
1327
1327
|
disabled: f,
|
|
1328
1328
|
button: s
|
|
@@ -1332,22 +1332,22 @@ 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), L.createElement(
|
|
1336
1336
|
i,
|
|
1337
1337
|
v,
|
|
1338
|
-
u || (d ? /* @__PURE__ */ a.jsx(
|
|
1338
|
+
u || (d ? /* @__PURE__ */ a.jsx(ge, { showOnFocus: !1, children: d }) : null)
|
|
1339
1339
|
);
|
|
1340
1340
|
}, Rt = ({ 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
|
|
1343
|
-
className:
|
|
1342
|
+
return L.createElement(r, {
|
|
1343
|
+
className: S("button-wrapper", t),
|
|
1344
1344
|
...n,
|
|
1345
1345
|
children: s
|
|
1346
1346
|
});
|
|
1347
1347
|
};
|
|
1348
1348
|
const Oe = ({ className: e = "", maxWidth: t = !1 }) => {
|
|
1349
1349
|
const n = t ? { "--max-width": `${t / 16}rem` } : {};
|
|
1350
|
-
return /* @__PURE__ */ a.jsx("hr", { className:
|
|
1350
|
+
return /* @__PURE__ */ a.jsx("hr", { className: S(e, { "has-max-width": t }), style: n });
|
|
1351
1351
|
}, it = ({
|
|
1352
1352
|
href: e,
|
|
1353
1353
|
children: t,
|
|
@@ -1360,9 +1360,9 @@ const Oe = ({ className: e = "", maxWidth: t = !1 }) => {
|
|
|
1360
1360
|
}) => {
|
|
1361
1361
|
if (e) {
|
|
1362
1362
|
const f = { ...o };
|
|
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:
|
|
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: S("gtm-trackable", r), ...f, children: t });
|
|
1364
1364
|
}
|
|
1365
|
-
return n ?
|
|
1365
|
+
return n ? L.createElement(n, { children: t, className: r, ...o }) : t;
|
|
1366
1366
|
}, ir = {
|
|
1367
1367
|
card: {
|
|
1368
1368
|
range: [
|
|
@@ -1524,7 +1524,7 @@ const Hr = ({ image: e, className: t, testId: n }) => {
|
|
|
1524
1524
|
};
|
|
1525
1525
|
let Ke = !1;
|
|
1526
1526
|
const Es = ({ isOpen: e = !1, isLoading: t = !1, children: n }) => {
|
|
1527
|
-
const r =
|
|
1527
|
+
const r = H(), s = me(null), [i, c] = J("hidden");
|
|
1528
1528
|
ie(() => {
|
|
1529
1529
|
const f = s.current;
|
|
1530
1530
|
if (f)
|
|
@@ -1545,14 +1545,14 @@ const Es = ({ isOpen: e = !1, isLoading: t = !1, children: n }) => {
|
|
|
1545
1545
|
"aside",
|
|
1546
1546
|
{
|
|
1547
1547
|
ref: s,
|
|
1548
|
-
className:
|
|
1548
|
+
className: S("tooltip text-medium", i, { loading: t }),
|
|
1549
1549
|
hidden: i === "hidden",
|
|
1550
1550
|
children: t ? /* @__PURE__ */ a.jsx("p", { children: r.formatMessage({ id: "tooltip_loading" }) }) : typeof n == "string" ? /* @__PURE__ */ a.jsx("p", { children: n }) : n
|
|
1551
1551
|
}
|
|
1552
1552
|
);
|
|
1553
1553
|
};
|
|
1554
|
-
const ot = ({ children: e, className: t = "", ...n }) => /* @__PURE__ */ a.jsx("section", { className:
|
|
1555
|
-
const
|
|
1554
|
+
const ot = ({ children: e, className: t = "", ...n }) => /* @__PURE__ */ a.jsx("section", { className: S("full-width-section", t), ...n, children: e });
|
|
1555
|
+
const hc = ({ text: e, buttons: t, className: n = "" }) => {
|
|
1556
1556
|
const r = [];
|
|
1557
1557
|
return t.forEach((s) => {
|
|
1558
1558
|
r.push({
|
|
@@ -1565,8 +1565,8 @@ const gc = ({ text: e, buttons: t, className: n = "" }) => {
|
|
|
1565
1565
|
target: "_blank",
|
|
1566
1566
|
children: s.text
|
|
1567
1567
|
});
|
|
1568
|
-
}), /* @__PURE__ */ a.jsx(ot, { className:
|
|
1569
|
-
|
|
1568
|
+
}), /* @__PURE__ */ a.jsx(ot, { className: S("download-section", n), children: /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
|
|
1569
|
+
L.createElement(
|
|
1570
1570
|
typeof e == "string" ? "h2" : e.element,
|
|
1571
1571
|
{ className: "text" },
|
|
1572
1572
|
typeof e == "string" ? e : e.text
|
|
@@ -1574,7 +1574,7 @@ const gc = ({ text: e, buttons: t, className: n = "" }) => {
|
|
|
1574
1574
|
/* @__PURE__ */ a.jsx(Rt, { buttons: r })
|
|
1575
1575
|
] }) });
|
|
1576
1576
|
};
|
|
1577
|
-
const
|
|
1577
|
+
const gc = ({
|
|
1578
1578
|
title: e = !1,
|
|
1579
1579
|
logos: t = [],
|
|
1580
1580
|
className: n = ""
|
|
@@ -1586,12 +1586,12 @@ const _c = ({
|
|
|
1586
1586
|
element: typeof e == "object" ? e.element : "h2",
|
|
1587
1587
|
text: typeof e == "string" ? e : typeof e == "object" ? e.text : ""
|
|
1588
1588
|
};
|
|
1589
|
-
return /* @__PURE__ */ a.jsxs("div", { className:
|
|
1590
|
-
e &&
|
|
1589
|
+
return /* @__PURE__ */ a.jsxs("div", { className: S("logos", n), children: [
|
|
1590
|
+
e && L.createElement(s.element, { className: "title" }, s.text),
|
|
1591
1591
|
/* @__PURE__ */ a.jsx(
|
|
1592
1592
|
"ul",
|
|
1593
1593
|
{
|
|
1594
|
-
className:
|
|
1594
|
+
className: S({
|
|
1595
1595
|
"two-col": r === 2 || r === 4,
|
|
1596
1596
|
"three-col": r === 5 || r <= 10 && r % 3 === 0
|
|
1597
1597
|
}),
|
|
@@ -1674,7 +1674,7 @@ const Ss = [
|
|
|
1674
1674
|
}), /* @__PURE__ */ a.jsx(
|
|
1675
1675
|
ot,
|
|
1676
1676
|
{
|
|
1677
|
-
className:
|
|
1677
|
+
className: S("banner-section", r, s, e, {
|
|
1678
1678
|
"has-image": n,
|
|
1679
1679
|
"has-extra-spacing": s === "normal" && u.eyebrow && u.title
|
|
1680
1680
|
}),
|
|
@@ -1683,7 +1683,7 @@ const Ss = [
|
|
|
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
|
|
1686
|
+
return L.createElement(
|
|
1687
1687
|
h.toLowerCase(),
|
|
1688
1688
|
{ key: l, className: l },
|
|
1689
1689
|
m
|
|
@@ -1707,14 +1707,14 @@ const Ss = [
|
|
|
1707
1707
|
] })
|
|
1708
1708
|
}
|
|
1709
1709
|
);
|
|
1710
|
-
},
|
|
1711
|
-
const
|
|
1710
|
+
}, _c = Ie(Cs);
|
|
1711
|
+
const vc = ({
|
|
1712
1712
|
variant: e = "primary",
|
|
1713
1713
|
button: t = null,
|
|
1714
1714
|
title: n,
|
|
1715
1715
|
text: r,
|
|
1716
1716
|
gtmContext: s
|
|
1717
|
-
}) => !n && !r ? null : /* @__PURE__ */ a.jsxs("aside", { className:
|
|
1717
|
+
}) => !n && !r ? null : /* @__PURE__ */ a.jsxs("aside", { className: S("marketing-block", e), children: [
|
|
1718
1718
|
n && /* @__PURE__ */ a.jsx("p", { className: "title", children: n }),
|
|
1719
1719
|
r && /* @__PURE__ */ a.jsx("p", { children: r }),
|
|
1720
1720
|
t && /* @__PURE__ */ a.jsx(
|
|
@@ -1746,15 +1746,15 @@ const bc = ({
|
|
|
1746
1746
|
e && /* @__PURE__ */ a.jsx(Ja, { initialIsOpen: !1 })
|
|
1747
1747
|
] });
|
|
1748
1748
|
};
|
|
1749
|
-
var
|
|
1750
|
-
function
|
|
1749
|
+
var Ms = Sn({ client: bt });
|
|
1750
|
+
function Ps(e) {
|
|
1751
1751
|
var t = e.children, n = e.client, r = e.apiKey, s = e.options, i = at(function() {
|
|
1752
1752
|
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 && (bt.__loaded && console.warn("[PostHog.js] was already loaded elsewhere. This may cause issues."), bt.init(r, s)), bt);
|
|
1753
1753
|
}, [n, r]);
|
|
1754
|
-
return
|
|
1754
|
+
return L.createElement(Ms.Provider, { value: { client: i } }, t);
|
|
1755
1755
|
}
|
|
1756
1756
|
const Rs = ({ children: e, user: t }) => t.isLoading ? null : process.env.REACT_APP_PUBLIC_POSTHOG_KEY ? /* @__PURE__ */ a.jsx(
|
|
1757
|
-
|
|
1757
|
+
Ps,
|
|
1758
1758
|
{
|
|
1759
1759
|
apiKey: atob(process.env.REACT_APP_PUBLIC_POSTHOG_KEY),
|
|
1760
1760
|
options: {
|
|
@@ -1782,7 +1782,7 @@ const Rs = ({ children: e, user: t }) => t.isLoading ? null : process.env.REACT_
|
|
|
1782
1782
|
function Nn() {
|
|
1783
1783
|
return Ce(Ne);
|
|
1784
1784
|
}
|
|
1785
|
-
const As = ({ children: e, user: t }) => /* @__PURE__ */ a.jsx(Ne.Provider, { value: t, children: e }),
|
|
1785
|
+
const As = ({ children: e, user: t }) => /* @__PURE__ */ a.jsx(Ne.Provider, { value: t, children: e }), bc = ({ bootstrap: e, children: t, intl: n }) => {
|
|
1786
1786
|
const [r, s] = J({ isLoading: !0 });
|
|
1787
1787
|
return ie(() => {
|
|
1788
1788
|
e().then((i) => {
|
|
@@ -1796,10 +1796,10 @@ const As = ({ children: e, user: t }) => /* @__PURE__ */ a.jsx(Ne.Provider, { va
|
|
|
1796
1796
|
default: "dpo@apolitical.co",
|
|
1797
1797
|
eu: "dpo.agl@apolitical.foundation"
|
|
1798
1798
|
}
|
|
1799
|
-
},
|
|
1799
|
+
}, yc = "200,000+";
|
|
1800
1800
|
const Wr = ({ label: e = !1, className: t = "", children: n }) => {
|
|
1801
|
-
const r =
|
|
1802
|
-
return /* @__PURE__ */ a.jsxs("details", { className:
|
|
1801
|
+
const r = H();
|
|
1802
|
+
return /* @__PURE__ */ a.jsxs("details", { className: S("collapsible-section", t), children: [
|
|
1803
1803
|
/* @__PURE__ */ a.jsx("summary", { children: e || r.formatMessage({ id: "collapsibleSection_summary" }) }),
|
|
1804
1804
|
/* @__PURE__ */ a.jsx("div", { className: "content", children: n })
|
|
1805
1805
|
] });
|
|
@@ -1815,7 +1815,7 @@ const Ae = ({
|
|
|
1815
1815
|
return /* @__PURE__ */ a.jsx(
|
|
1816
1816
|
"div",
|
|
1817
1817
|
{
|
|
1818
|
-
className:
|
|
1818
|
+
className: S("highlighted-text-box", e, n, {
|
|
1819
1819
|
"has-icon": t
|
|
1820
1820
|
}),
|
|
1821
1821
|
style: i,
|
|
@@ -1846,9 +1846,9 @@ const We = ({
|
|
|
1846
1846
|
Ae,
|
|
1847
1847
|
{
|
|
1848
1848
|
variant: "subtle",
|
|
1849
|
-
className:
|
|
1849
|
+
className: S("empty-state-box", e, r),
|
|
1850
1850
|
children: /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
|
|
1851
|
-
t && /* @__PURE__ */ a.jsx(
|
|
1851
|
+
t && /* @__PURE__ */ a.jsx(Pt, { options: { forceBlock: !0 }, children: t }),
|
|
1852
1852
|
s && typeof n == "object" && (d || /* @__PURE__ */ a.jsx(
|
|
1853
1853
|
se,
|
|
1854
1854
|
{
|
|
@@ -1869,13 +1869,13 @@ const Os = ({
|
|
|
1869
1869
|
className: t = "",
|
|
1870
1870
|
heading: n = !1,
|
|
1871
1871
|
children: r
|
|
1872
|
-
}) => /* @__PURE__ */ a.jsxs("div", { className:
|
|
1872
|
+
}) => /* @__PURE__ */ a.jsxs("div", { className: S("helper-text-box text-small", e, t), children: [
|
|
1873
1873
|
n && /* @__PURE__ */ a.jsx("p", { className: "title", children: n }),
|
|
1874
1874
|
typeof r == "string" ? /* @__PURE__ */ a.jsx(
|
|
1875
|
-
|
|
1875
|
+
Pt,
|
|
1876
1876
|
{
|
|
1877
1877
|
options: {
|
|
1878
|
-
wrapper:
|
|
1878
|
+
wrapper: L.Fragment,
|
|
1879
1879
|
forceBlock: !0,
|
|
1880
1880
|
overrides: Vr
|
|
1881
1881
|
},
|
|
@@ -1883,14 +1883,14 @@ const Os = ({
|
|
|
1883
1883
|
}
|
|
1884
1884
|
) : /* @__PURE__ */ a.jsx("p", { children: r })
|
|
1885
1885
|
] });
|
|
1886
|
-
const
|
|
1886
|
+
const xc = ({
|
|
1887
1887
|
className: e = "",
|
|
1888
1888
|
show: t = !1,
|
|
1889
1889
|
hide: n = !1,
|
|
1890
1890
|
text: r,
|
|
1891
1891
|
children: s
|
|
1892
1892
|
}) => {
|
|
1893
|
-
const i =
|
|
1893
|
+
const i = H(), c = me(null), [o, f] = J(""), [d, u] = J("closed");
|
|
1894
1894
|
ie(() => {
|
|
1895
1895
|
const h = c.current;
|
|
1896
1896
|
if (h)
|
|
@@ -1919,10 +1919,10 @@ const wc = ({
|
|
|
1919
1919
|
Ae,
|
|
1920
1920
|
{
|
|
1921
1921
|
variant: "subtle",
|
|
1922
|
-
className:
|
|
1922
|
+
className: S("hide-show-text-box", e),
|
|
1923
1923
|
children: [
|
|
1924
|
-
/* @__PURE__ */ a.jsxs("div", { ref: c, className:
|
|
1925
|
-
/* @__PURE__ */ a.jsx(
|
|
1924
|
+
/* @__PURE__ */ a.jsxs("div", { ref: c, className: S("content", d), children: [
|
|
1925
|
+
/* @__PURE__ */ a.jsx(Pt, { options: { forceBlock: !0 }, children: d === "closed" ? o : r }),
|
|
1926
1926
|
d !== "closed" && s
|
|
1927
1927
|
] }),
|
|
1928
1928
|
/* @__PURE__ */ a.jsx("p", { className: "cta", children: /* @__PURE__ */ a.jsx(
|
|
@@ -1931,7 +1931,7 @@ const wc = ({
|
|
|
1931
1931
|
variant: "tertiary",
|
|
1932
1932
|
icon: { icon: "navigation_arrow", position: "left", animate: !0 },
|
|
1933
1933
|
styling: { muted: !0 },
|
|
1934
|
-
className:
|
|
1934
|
+
className: S({ "rotate-180": m }),
|
|
1935
1935
|
onClick: () => {
|
|
1936
1936
|
u(m ? "ready-to-close" : "opening");
|
|
1937
1937
|
},
|
|
@@ -1941,8 +1941,8 @@ const wc = ({
|
|
|
1941
1941
|
]
|
|
1942
1942
|
}
|
|
1943
1943
|
);
|
|
1944
|
-
}, Fs = () =>
|
|
1945
|
-
const t =
|
|
1944
|
+
}, Fs = () => L.Fragment, Ls = ({ children: e }) => /* @__PURE__ */ a.jsx(Ae, { variant: "secondary", children: e }), Ds = ["span", "strong", "h1", "h2", "h3", "h4", "h5", "h6", "p"], Is = ({ children: e }) => {
|
|
1945
|
+
const t = H();
|
|
1946
1946
|
if (!e)
|
|
1947
1947
|
return null;
|
|
1948
1948
|
let n = t.formatMessage({
|
|
@@ -1951,10 +1951,10 @@ const wc = ({
|
|
|
1951
1951
|
const r = [];
|
|
1952
1952
|
for (const i of pn.toArray(e))
|
|
1953
1953
|
if (!(!i || typeof i == "string" || typeof i == "number"))
|
|
1954
|
-
if (
|
|
1954
|
+
if (L.isValidElement(i) && i.type === "summary") {
|
|
1955
1955
|
if (i.props && i.props.children) {
|
|
1956
1956
|
for (const c of pn.toArray(i.props.children))
|
|
1957
|
-
if (!(!c || typeof c == "string" || typeof c == "number") &&
|
|
1957
|
+
if (!(!c || typeof c == "string" || typeof c == "number") && L.isValidElement(c)) {
|
|
1958
1958
|
const o = c.type;
|
|
1959
1959
|
if (Ds.includes(o)) {
|
|
1960
1960
|
for (n = c.props.children; typeof n != "string" && (Array.isArray(n) && n[0].props && n[0].props.children && n[0].props.children[0]); )
|
|
@@ -1992,11 +1992,11 @@ const wc = ({
|
|
|
1992
1992
|
}
|
|
1993
1993
|
return /* @__PURE__ */ a.jsx("div", { ...t, children: e });
|
|
1994
1994
|
}, qs = (e) => {
|
|
1995
|
-
const t =
|
|
1995
|
+
const t = H(), n = Date.now().toString();
|
|
1996
1996
|
let r = "default";
|
|
1997
1997
|
const s = e.src;
|
|
1998
1998
|
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: [
|
|
1999
|
-
/* @__PURE__ */ a.jsx(
|
|
1999
|
+
/* @__PURE__ */ a.jsx(ge, { children: /* @__PURE__ */ a.jsx("a", { href: `#content-after-iframe-${n}`, children: t.formatMessage({
|
|
2000
2000
|
id: `markdown_skip${r === "default" ? "" : `_${r}`}`
|
|
2001
2001
|
}) }) }),
|
|
2002
2002
|
/* @__PURE__ */ a.jsx(
|
|
@@ -2021,10 +2021,10 @@ const wc = ({
|
|
|
2021
2021
|
t.href && (t.href.includes("http:") || t.href.includes("https:")) && !t.target && (n.target = "_blank");
|
|
2022
2022
|
let r = e, s = !1;
|
|
2023
2023
|
for (const i of pn.toArray(e))
|
|
2024
|
-
if (!(!i || typeof i == "string" || typeof i == "number") &&
|
|
2024
|
+
if (!(!i || typeof i == "string" || typeof i == "number") && L.isValidElement(i)) {
|
|
2025
2025
|
const c = i.type;
|
|
2026
2026
|
if (["button", "center", "span", "strong"].includes(c) && i.props && i.props.children && i.props.children[0])
|
|
2027
|
-
for ((c === "button" || or(i.props.children[0]) === "button") && (s = !0), r = i.props.children[0]; r && typeof r != "string" && !(typeof r == "boolean" || typeof r == "number" || !
|
|
2027
|
+
for ((c === "button" || or(i.props.children[0]) === "button") && (s = !0), r = i.props.children[0]; r && typeof r != "string" && !(typeof r == "boolean" || typeof r == "number" || !L.isValidElement(r)); )
|
|
2028
2028
|
if (r.props && r.props.children && r.props.children[0])
|
|
2029
2029
|
r = r.props.children[0], r && or(r) === "button" && (s = !0);
|
|
2030
2030
|
else
|
|
@@ -2035,7 +2035,7 @@ const wc = ({
|
|
|
2035
2035
|
const cr = ({ className: e = "", options: t = {}, children: n }) => {
|
|
2036
2036
|
n = n.replace(/^<br\/?>/, "");
|
|
2037
2037
|
const r = {
|
|
2038
|
-
wrapper:
|
|
2038
|
+
wrapper: L.Fragment,
|
|
2039
2039
|
forceBlock: !0,
|
|
2040
2040
|
overrides: {
|
|
2041
2041
|
a: zs,
|
|
@@ -2052,7 +2052,7 @@ const cr = ({ className: e = "", options: t = {}, children: n }) => {
|
|
|
2052
2052
|
iframe: qs
|
|
2053
2053
|
}
|
|
2054
2054
|
};
|
|
2055
|
-
return /* @__PURE__ */ a.jsx("div", { className:
|
|
2055
|
+
return /* @__PURE__ */ a.jsx("div", { className: S("markdown-text", e), children: /* @__PURE__ */ a.jsx(Pt, { options: { ...r, ...t }, children: n }) });
|
|
2056
2056
|
};
|
|
2057
2057
|
const Us = ({
|
|
2058
2058
|
maxWidth: e = !1,
|
|
@@ -2062,10 +2062,10 @@ const Us = ({
|
|
|
2062
2062
|
className: s = ""
|
|
2063
2063
|
}) => {
|
|
2064
2064
|
const i = e ? { "--max-width": `${e / 16}rem` } : {};
|
|
2065
|
-
return /* @__PURE__ */ a.jsxs("section", { className:
|
|
2066
|
-
/* @__PURE__ */ a.jsxs("div", { className:
|
|
2067
|
-
t && t.text &&
|
|
2068
|
-
n && n.text &&
|
|
2065
|
+
return /* @__PURE__ */ a.jsxs("section", { className: S("page-heading", s), children: [
|
|
2066
|
+
/* @__PURE__ */ a.jsxs("div", { className: S("content", { "has-max-width": e }), style: i, children: [
|
|
2067
|
+
t && t.text && L.createElement(t.element || "h1", { className: "title" }, t.text),
|
|
2068
|
+
n && n.text && L.createElement(
|
|
2069
2069
|
n.element || "h2",
|
|
2070
2070
|
{ className: "text-medium" },
|
|
2071
2071
|
n.text
|
|
@@ -2080,34 +2080,34 @@ const jt = ({
|
|
|
2080
2080
|
className: n = "",
|
|
2081
2081
|
children: r,
|
|
2082
2082
|
...s
|
|
2083
|
-
}) => /* @__PURE__ */ a.jsx("span", { className:
|
|
2083
|
+
}) => /* @__PURE__ */ a.jsx("span", { className: S("pill", e, t, n), ...s, children: r });
|
|
2084
2084
|
const vn = ({
|
|
2085
2085
|
element: e = "p",
|
|
2086
2086
|
children: t = null,
|
|
2087
2087
|
className: n = "",
|
|
2088
2088
|
...r
|
|
2089
|
-
}) =>
|
|
2089
|
+
}) => L.createElement(
|
|
2090
2090
|
e,
|
|
2091
2091
|
{
|
|
2092
2092
|
...r,
|
|
2093
|
-
className:
|
|
2093
|
+
className: S("status-banner text-small", n),
|
|
2094
2094
|
"aria-live": "assertive"
|
|
2095
2095
|
},
|
|
2096
2096
|
t
|
|
2097
2097
|
);
|
|
2098
2098
|
const Hs = ({ progress: e = 0, text: t = !1, className: n = "" }) => {
|
|
2099
|
-
const r =
|
|
2099
|
+
const r = H(), s = e > 75 ? 100 : e > 50 ? 75 : e > 25 ? 50 : e > 5 ? 25 : 0, i = { "--progress": `${e}%` };
|
|
2100
2100
|
return /* @__PURE__ */ a.jsx(
|
|
2101
2101
|
"span",
|
|
2102
2102
|
{
|
|
2103
|
-
className:
|
|
2103
|
+
className: S(`progress-bar section-${s}`, n),
|
|
2104
2104
|
style: i,
|
|
2105
|
-
children: /* @__PURE__ */ a.jsx(
|
|
2105
|
+
children: /* @__PURE__ */ a.jsx(ge, { children: t ? `${e} ${t}` : r.formatMessage({ id: "progressBar" }, { number: e }) })
|
|
2106
2106
|
}
|
|
2107
2107
|
);
|
|
2108
2108
|
}, Ws = Ie(Hs);
|
|
2109
2109
|
const Ut = "loadingBlock_", Vs = ({ progress: e = 0, steps: t = !1, className: n = "" }) => {
|
|
2110
|
-
const r =
|
|
2110
|
+
const r = H();
|
|
2111
2111
|
t || (t = {
|
|
2112
2112
|
0: { text: r.formatMessage({ id: `${Ut}loading` }) },
|
|
2113
2113
|
75: { text: r.formatMessage({ id: `${Ut}almostDone` }) },
|
|
@@ -2123,7 +2123,7 @@ const Ut = "loadingBlock_", Vs = ({ progress: e = 0, steps: t = !1, className: n
|
|
|
2123
2123
|
return /* @__PURE__ */ a.jsxs(
|
|
2124
2124
|
Ae,
|
|
2125
2125
|
{
|
|
2126
|
-
className:
|
|
2126
|
+
className: S("loading-block", n, {
|
|
2127
2127
|
"has-icon": s && t[s].icon
|
|
2128
2128
|
}),
|
|
2129
2129
|
variant: "subtle",
|
|
@@ -2134,12 +2134,12 @@ const Ut = "loadingBlock_", Vs = ({ progress: e = 0, steps: t = !1, className: n
|
|
|
2134
2134
|
]
|
|
2135
2135
|
}
|
|
2136
2136
|
);
|
|
2137
|
-
},
|
|
2137
|
+
}, wc = Ie(Vs);
|
|
2138
2138
|
const Te = ({ element: e = "div", className: t = "", ...n }) => /* @__PURE__ */ a.jsx(
|
|
2139
|
-
|
|
2139
|
+
Pn,
|
|
2140
2140
|
{
|
|
2141
2141
|
element: e,
|
|
2142
|
-
className:
|
|
2142
|
+
className: S("loading-placeholder", t),
|
|
2143
2143
|
...n
|
|
2144
2144
|
}
|
|
2145
2145
|
);
|
|
@@ -2160,7 +2160,7 @@ const bn = {
|
|
|
2160
2160
|
"cards-section",
|
|
2161
2161
|
"footer"
|
|
2162
2162
|
]
|
|
2163
|
-
}, Yr = (e, t) => e in bn ? /* @__PURE__ */ a.jsx("div", { className: e, children: bn[e].map((n, r) => Yr(n, r)) }, t) : /* @__PURE__ */ a.jsx(Te, { className: e }, t), Gr = ({ layout: e = "overview-page", ...t }) => /* @__PURE__ */ a.jsx("div", { className:
|
|
2163
|
+
}, Yr = (e, t) => e in bn ? /* @__PURE__ */ a.jsx("div", { className: e, children: bn[e].map((n, r) => Yr(n, r)) }, t) : /* @__PURE__ */ a.jsx(Te, { className: e }, t), Gr = ({ layout: e = "overview-page", ...t }) => /* @__PURE__ */ a.jsx("div", { className: S("loading-state", e), ...t, children: bn[e].map((n, r) => Yr(n, r)) }), Kr = (e) => {
|
|
2164
2164
|
const t = e && e.toUpperCase().split(" ");
|
|
2165
2165
|
return Array.isArray(t) && t.length > 1 && t[0] !== "" ? t[1] === "" ? t[0][0] : t[0][0] + t[t.length - 1][0] : e ? e.substr(0, 1) : "";
|
|
2166
2166
|
}, dt = ["#5AB6A3", "#A2D7AF", "#806056", "#3962B3"], Ys = (e) => {
|
|
@@ -2196,7 +2196,7 @@ const lr = 256, ct = ({
|
|
|
2196
2196
|
return t && t !== "" && !o && (t.includes("http") || t.includes("//")) && (u = !0), /* @__PURE__ */ a.jsx(
|
|
2197
2197
|
"figure",
|
|
2198
2198
|
{
|
|
2199
|
-
className:
|
|
2199
|
+
className: S("profile-picture", e, { error: o }),
|
|
2200
2200
|
...c,
|
|
2201
2201
|
children: u ? /* @__PURE__ */ a.jsx(
|
|
2202
2202
|
"img",
|
|
@@ -2244,13 +2244,13 @@ const An = ({
|
|
|
2244
2244
|
gtmType: s = "member-click",
|
|
2245
2245
|
className: i = ""
|
|
2246
2246
|
}) => {
|
|
2247
|
-
const c =
|
|
2247
|
+
const c = H(), o = Qr(t);
|
|
2248
2248
|
o.name || (o.name = c.formatMessage({
|
|
2249
2249
|
id: `member_${typeof t == "string" ? t : "community"}`
|
|
2250
2250
|
}));
|
|
2251
2251
|
const { name: f, url: d, image: u } = o, l = Gs(o), m = n && n.createdAt ? gn(n.createdAt) : !1, h = n && n.createdAt ? Zr(n.createdAt) : "";
|
|
2252
|
-
return
|
|
2253
|
-
className:
|
|
2252
|
+
return L.createElement(e, {
|
|
2253
|
+
className: S("member text-medium", i),
|
|
2254
2254
|
children: /* @__PURE__ */ a.jsxs(
|
|
2255
2255
|
it,
|
|
2256
2256
|
{
|
|
@@ -2294,10 +2294,10 @@ const dr = {
|
|
|
2294
2294
|
className: f = "",
|
|
2295
2295
|
...d
|
|
2296
2296
|
}) => {
|
|
2297
|
-
const u =
|
|
2298
|
-
return !n || n.length === 0 ? null :
|
|
2297
|
+
const u = H();
|
|
2298
|
+
return !n || n.length === 0 ? null : L.createElement(e, {
|
|
2299
2299
|
...d,
|
|
2300
|
-
className:
|
|
2300
|
+
className: S("contributors", f, s, { "has-gap": i }),
|
|
2301
2301
|
children: /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
|
|
2302
2302
|
/* @__PURE__ */ a.jsx("ul", { children: n.map((l, m) => {
|
|
2303
2303
|
let h, g = "";
|
|
@@ -2319,7 +2319,7 @@ const dr = {
|
|
|
2319
2319
|
h = /* @__PURE__ */ a.jsxs(
|
|
2320
2320
|
"small",
|
|
2321
2321
|
{
|
|
2322
|
-
className:
|
|
2322
|
+
className: S({ "large-number": v > 99 }),
|
|
2323
2323
|
children: [
|
|
2324
2324
|
"+",
|
|
2325
2325
|
xs(v, 0)
|
|
@@ -2327,13 +2327,13 @@ const dr = {
|
|
|
2327
2327
|
}
|
|
2328
2328
|
), g = "number-left";
|
|
2329
2329
|
}
|
|
2330
|
-
return h ? /* @__PURE__ */ a.jsx("li", { className:
|
|
2330
|
+
return h ? /* @__PURE__ */ a.jsx("li", { className: S("contributor", g), children: h }, m) : null;
|
|
2331
2331
|
}) }),
|
|
2332
2332
|
r && /* @__PURE__ */ a.jsx("span", { className: "label", children: typeof r == "string" ? r : n.length === 1 ? typeof n[0] == "string" ? u.formatMessage({ id: `member_${n[0]}` }) : Ue(n[0].name || "", 20) : null })
|
|
2333
2333
|
] })
|
|
2334
2334
|
});
|
|
2335
2335
|
}, Ks = ({ type: e, data: t }) => {
|
|
2336
|
-
const n =
|
|
2336
|
+
const n = H(), {
|
|
2337
2337
|
answers: r,
|
|
2338
2338
|
createdAt: s,
|
|
2339
2339
|
dateHasPassed: i,
|
|
@@ -2450,7 +2450,7 @@ const dr = {
|
|
|
2450
2450
|
}
|
|
2451
2451
|
}, Qs = ({ data: e, cta: t, link: n, gtmContext: r }) => {
|
|
2452
2452
|
var g;
|
|
2453
|
-
const s =
|
|
2453
|
+
const s = H(), [i, c] = J({
|
|
2454
2454
|
loading: !1,
|
|
2455
2455
|
registered: e.registered || !1
|
|
2456
2456
|
});
|
|
@@ -2537,13 +2537,13 @@ const Xs = {
|
|
|
2537
2537
|
gtmContext: s = "Carousel",
|
|
2538
2538
|
className: i = ""
|
|
2539
2539
|
}) => {
|
|
2540
|
-
const c =
|
|
2540
|
+
const c = H(), o = Ce(Ne), f = o && typeof o.id == "string", [d, u] = J({
|
|
2541
2541
|
data: null,
|
|
2542
2542
|
isLoading: !0
|
|
2543
2543
|
}), { data: l, isLoading: m } = d, h = Ar(() => {
|
|
2544
|
-
n(t, f).then((
|
|
2545
|
-
u(() => ({ data:
|
|
2546
|
-
}).catch(() => u((
|
|
2544
|
+
n(t, f).then((G) => {
|
|
2545
|
+
u(() => ({ data: G, isLoading: !1 }));
|
|
2546
|
+
}).catch(() => u((G) => ({ ...G, isLoading: !1 })));
|
|
2547
2547
|
}, [e]);
|
|
2548
2548
|
if (ie(() => {
|
|
2549
2549
|
h();
|
|
@@ -2565,31 +2565,31 @@ const Xs = {
|
|
|
2565
2565
|
length: b,
|
|
2566
2566
|
gtmEvent: y
|
|
2567
2567
|
} = kt[g], j = Ur(`card_label_${g}`) ? c.formatMessage({ id: `card_label_${g}` }) : !1, w = l.slug ? `${v}${l.slug}` : !1, x = { ...Xs, ...b };
|
|
2568
|
-
let
|
|
2569
|
-
w && (
|
|
2568
|
+
let P = { className: "card" };
|
|
2569
|
+
w && (P = {
|
|
2570
2570
|
href: w,
|
|
2571
2571
|
className: "card gtm-trackable",
|
|
2572
2572
|
"data-gtm-event-context": `${s}-CarouselCard`,
|
|
2573
2573
|
"data-gtm-event-type": `${y}-click`,
|
|
2574
2574
|
"data-testid": "link"
|
|
2575
|
-
}, l.openInNewTab && (
|
|
2576
|
-
const
|
|
2575
|
+
}, l.openInNewTab && (P.target = "_blank"));
|
|
2576
|
+
const D = l.customIcon ? { "--custom-icon": Js(l.customIcon) } : {};
|
|
2577
2577
|
return /* @__PURE__ */ a.jsx(
|
|
2578
2578
|
"li",
|
|
2579
2579
|
{
|
|
2580
|
-
className:
|
|
2580
|
+
className: S("card-wrapper text-medium", _, i, {
|
|
2581
2581
|
"has-link": w,
|
|
2582
2582
|
"no-link": !w,
|
|
2583
2583
|
"has-custom-icon": l.customIcon,
|
|
2584
2584
|
"has-image": l.banner
|
|
2585
2585
|
}),
|
|
2586
|
-
style:
|
|
2586
|
+
style: D,
|
|
2587
2587
|
"data-testid": `${g}-card`,
|
|
2588
|
-
children:
|
|
2588
|
+
children: L.createElement(
|
|
2589
2589
|
w ? "a" : "div",
|
|
2590
|
-
|
|
2590
|
+
P,
|
|
2591
2591
|
/* @__PURE__ */ a.jsxs(a.Fragment, { children: [
|
|
2592
|
-
(l.customLabel || j) && /* @__PURE__ */ a.jsx("small", { className:
|
|
2592
|
+
(l.customLabel || j) && /* @__PURE__ */ a.jsx("small", { className: S("card-label text-small", _), children: l.customLabel || j }),
|
|
2593
2593
|
l.startDate && !l.isOngoingEvent && /* @__PURE__ */ a.jsx(
|
|
2594
2594
|
jt,
|
|
2595
2595
|
{
|
|
@@ -2624,12 +2624,12 @@ const Xs = {
|
|
|
2624
2624
|
),
|
|
2625
2625
|
l.partner && /* @__PURE__ */ a.jsx("p", { className: "partners", "data-testid": "partners", children: Ue(l.partner.title, x.partner) }),
|
|
2626
2626
|
/* Text */
|
|
2627
|
-
["title", "text", "secondaryText"].map((
|
|
2628
|
-
const N = l[
|
|
2627
|
+
["title", "text", "secondaryText"].map((G) => {
|
|
2628
|
+
const N = l[G];
|
|
2629
2629
|
if (!N)
|
|
2630
2630
|
return null;
|
|
2631
|
-
const
|
|
2632
|
-
return /* @__PURE__ */ a.jsx("p", { className:
|
|
2631
|
+
const A = ms(G);
|
|
2632
|
+
return /* @__PURE__ */ a.jsx("p", { className: A, "data-testid": A, children: Ue(N, x[G]) }, G);
|
|
2633
2633
|
}),
|
|
2634
2634
|
/* @__PURE__ */ a.jsx(Ks, { type: _ || "", data: l }),
|
|
2635
2635
|
/* @__PURE__ */ a.jsx(Qs, { data: l, cta: r, link: w || "", gtmContext: s })
|
|
@@ -2638,7 +2638,7 @@ const Xs = {
|
|
|
2638
2638
|
}
|
|
2639
2639
|
);
|
|
2640
2640
|
};
|
|
2641
|
-
const ei = ({ cards: e, cardTypes: t, className: n = "", ...r }) => /* @__PURE__ */ a.jsx("ul", { className:
|
|
2641
|
+
const ei = ({ cards: e, cardTypes: t, className: n = "", ...r }) => /* @__PURE__ */ a.jsx("ul", { className: S("card-block", n), children: e.map((s, i) => {
|
|
2642
2642
|
const c = s.slug ? `${s.slug}-${t[i]}` : `${t[i]}-${i}`;
|
|
2643
2643
|
return /* @__PURE__ */ a.jsx(
|
|
2644
2644
|
Xr,
|
|
@@ -2653,12 +2653,12 @@ const ei = ({ cards: e, cardTypes: t, className: n = "", ...r }) => /* @__PURE__
|
|
|
2653
2653
|
const s = t * n <= e, i = e < t * (n + 1), c = r.includes(Math.floor(e / t));
|
|
2654
2654
|
return s && i || c;
|
|
2655
2655
|
}, ni = ({ id: e, title: t }) => {
|
|
2656
|
-
const n =
|
|
2656
|
+
const n = H();
|
|
2657
2657
|
if (!t || !t.text)
|
|
2658
2658
|
return null;
|
|
2659
2659
|
const { text: r, element: s = "h2", variant: i = "default", size: c = "medium", link: o } = t;
|
|
2660
|
-
return
|
|
2661
|
-
className:
|
|
2660
|
+
return L.createElement(s, {
|
|
2661
|
+
className: S("title", i, c, {
|
|
2662
2662
|
"highlighted-title": i === "highlighted"
|
|
2663
2663
|
}),
|
|
2664
2664
|
children: /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
|
|
@@ -2691,8 +2691,8 @@ const ri = ({
|
|
|
2691
2691
|
className: i,
|
|
2692
2692
|
gtmContext: c
|
|
2693
2693
|
}) => {
|
|
2694
|
-
var
|
|
2695
|
-
const o =
|
|
2694
|
+
var G;
|
|
2695
|
+
const o = H(), [f, d] = J({
|
|
2696
2696
|
cardsPerPage: 4,
|
|
2697
2697
|
isLoading: !0
|
|
2698
2698
|
}), { cardsPerPage: u, isLoading: l } = f, [m, h] = J({
|
|
@@ -2701,40 +2701,40 @@ const ri = ({
|
|
|
2701
2701
|
}), { currentPage: g, loadedPages: v } = m, _ = t.length, b = Math.ceil(_ / u), y = me(null), j = st(!0, !0, y == null ? void 0 : y.current);
|
|
2702
2702
|
ie(() => {
|
|
2703
2703
|
let N = 1;
|
|
2704
|
-
j && (j >= Ht.fourCards ? N = 4 : j >= Ht.threeCards ? N = 3 : j >= Ht.twoCards && (N = 2), N > _ && (N = _)), d((
|
|
2705
|
-
...
|
|
2704
|
+
j && (j >= Ht.fourCards ? N = 4 : j >= Ht.threeCards ? N = 3 : j >= Ht.twoCards && (N = 2), N > _ && (N = _)), d((A) => ({
|
|
2705
|
+
...A,
|
|
2706
2706
|
cardsPerPage: N,
|
|
2707
2707
|
isLoading: !1
|
|
2708
2708
|
}));
|
|
2709
2709
|
}, [j, _]);
|
|
2710
2710
|
const w = (N = "next") => {
|
|
2711
|
-
let
|
|
2711
|
+
let A = g;
|
|
2712
2712
|
if (typeof N == "string")
|
|
2713
2713
|
if (N === "next")
|
|
2714
2714
|
if (g < b - 1)
|
|
2715
|
-
|
|
2715
|
+
A = g + 1;
|
|
2716
2716
|
else
|
|
2717
2717
|
return;
|
|
2718
2718
|
else if (g > 0)
|
|
2719
|
-
|
|
2719
|
+
A = g - 1;
|
|
2720
2720
|
else
|
|
2721
2721
|
return;
|
|
2722
2722
|
else
|
|
2723
|
-
|
|
2724
|
-
h((
|
|
2725
|
-
...
|
|
2726
|
-
currentPage:
|
|
2727
|
-
loadedPages: [.../* @__PURE__ */ new Set([...v,
|
|
2723
|
+
A = N;
|
|
2724
|
+
h((E) => ({
|
|
2725
|
+
...E,
|
|
2726
|
+
currentPage: A,
|
|
2727
|
+
loadedPages: [.../* @__PURE__ */ new Set([...v, A])]
|
|
2728
2728
|
}));
|
|
2729
2729
|
}, x = (N) => {
|
|
2730
2730
|
ut = N.touches[0].clientX;
|
|
2731
|
-
},
|
|
2731
|
+
}, P = (N) => {
|
|
2732
2732
|
if (ut === null)
|
|
2733
2733
|
return;
|
|
2734
|
-
const
|
|
2735
|
-
|
|
2736
|
-
},
|
|
2737
|
-
"--width": `${((
|
|
2734
|
+
const A = N.touches[0].clientX, E = ut - A;
|
|
2735
|
+
E > 5 ? w("next") : E < -5 && w("previous"), ut = null;
|
|
2736
|
+
}, D = {
|
|
2737
|
+
"--width": `${((G = y == null ? void 0 : y.current) == null ? void 0 : G.offsetWidth) || 0}px`,
|
|
2738
2738
|
"--total-cards": _,
|
|
2739
2739
|
"--cards-per-page": u,
|
|
2740
2740
|
"--page": g
|
|
@@ -2743,7 +2743,7 @@ const ri = ({
|
|
|
2743
2743
|
"section",
|
|
2744
2744
|
{
|
|
2745
2745
|
ref: y,
|
|
2746
|
-
className:
|
|
2746
|
+
className: S("carousel-wrapper", i),
|
|
2747
2747
|
"data-testid": "carousel",
|
|
2748
2748
|
children: [
|
|
2749
2749
|
/* @__PURE__ */ a.jsx(ni, { id: e, title: s }),
|
|
@@ -2752,28 +2752,28 @@ const ri = ({
|
|
|
2752
2752
|
{
|
|
2753
2753
|
className: "carousel",
|
|
2754
2754
|
onTouchStart: x,
|
|
2755
|
-
onTouchMove:
|
|
2756
|
-
style:
|
|
2755
|
+
onTouchMove: P,
|
|
2756
|
+
style: D,
|
|
2757
2757
|
"data-testid": "carousel-list",
|
|
2758
|
-
children: t.map((N,
|
|
2759
|
-
let
|
|
2760
|
-
return
|
|
2758
|
+
children: t.map((N, A) => {
|
|
2759
|
+
let E = N && N.sys && N.sys.id ? `${e}-card-${N.sys.id}` : null;
|
|
2760
|
+
return E && ti(A, u, g, v) ? /* @__PURE__ */ a.jsx(
|
|
2761
2761
|
Xr,
|
|
2762
2762
|
{
|
|
2763
|
-
id:
|
|
2764
|
-
card: { ...N, contentType: n[
|
|
2763
|
+
id: E,
|
|
2764
|
+
card: { ...N, contentType: n[A] },
|
|
2765
2765
|
buildCardData: r,
|
|
2766
2766
|
gtmContext: c
|
|
2767
2767
|
},
|
|
2768
|
-
|
|
2769
|
-
) : (
|
|
2768
|
+
E
|
|
2769
|
+
) : (E = E || `${e}-card-${A}`, /* @__PURE__ */ a.jsx(
|
|
2770
2770
|
Te,
|
|
2771
2771
|
{
|
|
2772
2772
|
element: "li",
|
|
2773
2773
|
className: "card-wrapper",
|
|
2774
2774
|
"data-testid": "card-placeholder"
|
|
2775
2775
|
},
|
|
2776
|
-
|
|
2776
|
+
E
|
|
2777
2777
|
));
|
|
2778
2778
|
})
|
|
2779
2779
|
}
|
|
@@ -2794,21 +2794,21 @@ const ri = ({
|
|
|
2794
2794
|
disabled: g <= 0
|
|
2795
2795
|
}
|
|
2796
2796
|
) }),
|
|
2797
|
-
[...Array(b)].map((N,
|
|
2797
|
+
[...Array(b)].map((N, A) => /* @__PURE__ */ a.jsx("li", { "data-testid": "carousel-controls-button", children: /* @__PURE__ */ a.jsx(
|
|
2798
2798
|
"button",
|
|
2799
2799
|
{
|
|
2800
|
-
className:
|
|
2801
|
-
selected:
|
|
2800
|
+
className: S("page-indicator", {
|
|
2801
|
+
selected: A === g
|
|
2802
2802
|
}),
|
|
2803
|
-
onClick: (
|
|
2804
|
-
|
|
2803
|
+
onClick: (E) => {
|
|
2804
|
+
E.preventDefault(), E.stopPropagation(), w(A);
|
|
2805
2805
|
},
|
|
2806
|
-
children: /* @__PURE__ */ a.jsx(
|
|
2806
|
+
children: /* @__PURE__ */ a.jsx(ge, { showOnFocus: !1, children: o.formatMessage(
|
|
2807
2807
|
{ id: "carousel_pagination_page" },
|
|
2808
|
-
{ number:
|
|
2808
|
+
{ number: A + 1, total: b }
|
|
2809
2809
|
) })
|
|
2810
2810
|
}
|
|
2811
|
-
) }, `page-indicator-${
|
|
2811
|
+
) }, `page-indicator-${A}`)),
|
|
2812
2812
|
/* @__PURE__ */ a.jsx("li", { className: "arrow next", children: /* @__PURE__ */ a.jsx(
|
|
2813
2813
|
se,
|
|
2814
2814
|
{
|
|
@@ -2826,7 +2826,7 @@ const ri = ({
|
|
|
2826
2826
|
]
|
|
2827
2827
|
}
|
|
2828
2828
|
);
|
|
2829
|
-
},
|
|
2829
|
+
}, jc = ({
|
|
2830
2830
|
carousels: e = [],
|
|
2831
2831
|
isLoading: t,
|
|
2832
2832
|
title: n,
|
|
@@ -2865,7 +2865,7 @@ const Wt = "joinCommunityButton", ea = ({
|
|
|
2865
2865
|
}, leave: () => {
|
|
2866
2866
|
} }
|
|
2867
2867
|
}) => {
|
|
2868
|
-
const s =
|
|
2868
|
+
const s = H(), i = Ce(Ne), c = i && typeof i.id == "string", [o, f] = J(e), [d, u] = J(e ? "joined" : "notJoined");
|
|
2869
2869
|
ie(() => {
|
|
2870
2870
|
d === "joining" ? u("joined") : d === "leaving" && u("notJoined");
|
|
2871
2871
|
}, [o]);
|
|
@@ -2880,7 +2880,7 @@ const Wt = "joinCommunityButton", ea = ({
|
|
|
2880
2880
|
onClick: async (h) => {
|
|
2881
2881
|
c && (h.currentTarget.blur(), o ? (u("leaving"), typeof r == "function" && await r()) : (u("joining"), typeof n == "function" && await n()), f(!o));
|
|
2882
2882
|
},
|
|
2883
|
-
className:
|
|
2883
|
+
className: S("join-community-button", d, {
|
|
2884
2884
|
active: d === "joining"
|
|
2885
2885
|
}),
|
|
2886
2886
|
disabled: !c,
|
|
@@ -2891,19 +2891,19 @@ const Wt = "joinCommunityButton", ea = ({
|
|
|
2891
2891
|
}
|
|
2892
2892
|
);
|
|
2893
2893
|
};
|
|
2894
|
-
const Vt = "communityDetails_",
|
|
2894
|
+
const Vt = "communityDetails_", kc = ({
|
|
2895
2895
|
className: e = "",
|
|
2896
2896
|
isMember: t = !1,
|
|
2897
2897
|
slug: n,
|
|
2898
2898
|
members: { number: r = 0, data: s = [] } = { number: 0, data: [] },
|
|
2899
2899
|
functions: { invite: i, ...c }
|
|
2900
2900
|
}) => {
|
|
2901
|
-
const o =
|
|
2902
|
-
return /* @__PURE__ */ a.jsxs("div", { className:
|
|
2901
|
+
const o = H(), f = 5, d = r || s.length, u = s.length ? s : Array(f).fill({}), l = `/communities/${n}/members` === window.location.pathname;
|
|
2902
|
+
return /* @__PURE__ */ a.jsxs("div", { className: S("community-details", e), children: [
|
|
2903
2903
|
/* @__PURE__ */ a.jsx(Oe, {}),
|
|
2904
2904
|
/* @__PURE__ */ a.jsxs("div", { className: "member-details", children: [
|
|
2905
2905
|
/* @__PURE__ */ a.jsxs("div", { className: "top", children: [
|
|
2906
|
-
/* @__PURE__ */ a.jsxs("
|
|
2906
|
+
/* @__PURE__ */ a.jsxs("h3", { children: [
|
|
2907
2907
|
o.formatMessage({ id: `${Vt}members` }),
|
|
2908
2908
|
/* @__PURE__ */ a.jsx("span", { className: "count", children: d })
|
|
2909
2909
|
] }),
|
|
@@ -2938,20 +2938,20 @@ const Vt = "communityDetails_", Tc = ({
|
|
|
2938
2938
|
)
|
|
2939
2939
|
] });
|
|
2940
2940
|
};
|
|
2941
|
-
const
|
|
2942
|
-
const r =
|
|
2941
|
+
const Tc = ({ breadcrumbs: e, cutoff: t = 20, className: n = "" }) => {
|
|
2942
|
+
const r = H();
|
|
2943
2943
|
return /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
|
|
2944
2944
|
/* @__PURE__ */ a.jsx(
|
|
2945
|
-
|
|
2945
|
+
ge,
|
|
2946
2946
|
{
|
|
2947
2947
|
element: "p",
|
|
2948
2948
|
children: r.formatMessage({ id: "breadcrumbs_label" })
|
|
2949
2949
|
}
|
|
2950
2950
|
),
|
|
2951
|
-
/* @__PURE__ */ a.jsx("ul", { className:
|
|
2951
|
+
/* @__PURE__ */ a.jsx("ul", { className: S("breadcrumbs text-small", n), children: e.map(
|
|
2952
2952
|
({ text: s, href: i, current: c = !1 }, o) => /* @__PURE__ */ a.jsxs("li", { children: [
|
|
2953
2953
|
c && /* @__PURE__ */ a.jsx(
|
|
2954
|
-
|
|
2954
|
+
ge,
|
|
2955
2955
|
{
|
|
2956
2956
|
element: "span",
|
|
2957
2957
|
children: r.formatMessage({ id: "breadcrumbs_currentPage" })
|
|
@@ -2962,7 +2962,7 @@ const Ec = ({ breadcrumbs: e, cutoff: t = 20, className: n = "" }) => {
|
|
|
2962
2962
|
) })
|
|
2963
2963
|
] });
|
|
2964
2964
|
};
|
|
2965
|
-
const
|
|
2965
|
+
const Ec = ({
|
|
2966
2966
|
options: e,
|
|
2967
2967
|
allOption: t = !1,
|
|
2968
2968
|
allowMultiple: n = !0,
|
|
@@ -2970,7 +2970,7 @@ const Sc = ({
|
|
|
2970
2970
|
},
|
|
2971
2971
|
className: s = ""
|
|
2972
2972
|
}) => {
|
|
2973
|
-
const i =
|
|
2973
|
+
const i = H(), c = t ? [
|
|
2974
2974
|
{
|
|
2975
2975
|
id: "all",
|
|
2976
2976
|
text: typeof t != "boolean" && t.text || i.formatMessage({ id: "filters_all" })
|
|
@@ -2980,7 +2980,7 @@ const Sc = ({
|
|
|
2980
2980
|
let m = [];
|
|
2981
2981
|
o.includes(u) ? m = o.filter((h) => h !== u) : u === "all" ? m = ["all"] : n ? m = [...o.filter((h) => h !== "all"), u] : m = [u], f((h) => (r && typeof r == "function" && r({ current: m, previous: h }), m)), l && typeof l == "function" && l();
|
|
2982
2982
|
};
|
|
2983
|
-
return /* @__PURE__ */ a.jsx("ul", { className:
|
|
2983
|
+
return /* @__PURE__ */ a.jsx("ul", { className: S("filters", s), children: c.map(({ id: u, text: l, disabled: m = !1, callback: h = () => {
|
|
2984
2984
|
} }) => {
|
|
2985
2985
|
let g = {};
|
|
2986
2986
|
return m && (g = {
|
|
@@ -2989,7 +2989,7 @@ const Sc = ({
|
|
|
2989
2989
|
}), /* @__PURE__ */ a.jsx("li", { children: /* @__PURE__ */ a.jsx(
|
|
2990
2990
|
"button",
|
|
2991
2991
|
{
|
|
2992
|
-
className:
|
|
2992
|
+
className: S(u, { selected: o.includes(u) }),
|
|
2993
2993
|
onClick: (v) => {
|
|
2994
2994
|
v.preventDefault(), v.stopPropagation(), d(u, h);
|
|
2995
2995
|
},
|
|
@@ -3012,7 +3012,7 @@ const Yt = {
|
|
|
3012
3012
|
es: "Español",
|
|
3013
3013
|
fr: "Français",
|
|
3014
3014
|
pt: "Português"
|
|
3015
|
-
}, ft = "languageSwitcher_",
|
|
3015
|
+
}, ft = "languageSwitcher_", Sc = ({
|
|
3016
3016
|
currentLanguage: e,
|
|
3017
3017
|
isOriginalLanguage: t = !1,
|
|
3018
3018
|
isHumanTranslation: n = !1,
|
|
@@ -3024,7 +3024,7 @@ const Yt = {
|
|
|
3024
3024
|
label: o,
|
|
3025
3025
|
className: f = ""
|
|
3026
3026
|
}) => {
|
|
3027
|
-
const d =
|
|
3027
|
+
const d = H(), [u, l] = J(e);
|
|
3028
3028
|
if (ie(() => {
|
|
3029
3029
|
e !== u && l(e);
|
|
3030
3030
|
}, [e]), !r || !Object.values(r).some(
|
|
@@ -3032,7 +3032,7 @@ const Yt = {
|
|
|
3032
3032
|
))
|
|
3033
3033
|
return null;
|
|
3034
3034
|
const h = Object.keys(r), g = u !== e;
|
|
3035
|
-
return /* @__PURE__ */ a.jsxs("div", { className:
|
|
3035
|
+
return /* @__PURE__ */ a.jsxs("div", { className: S("language-switcher text-small", c, f), children: [
|
|
3036
3036
|
/* @__PURE__ */ a.jsxs("nav", { children: [
|
|
3037
3037
|
c !== "short" && /* @__PURE__ */ a.jsx("p", { children: o || d.formatMessage({ id: `${ft}label` }) }),
|
|
3038
3038
|
/* @__PURE__ */ a.jsx("ul", { children: h.map((v) => {
|
|
@@ -3094,7 +3094,7 @@ const Gt = Ya({ locale: "en", messages: Rn }), Nt = ({
|
|
|
3094
3094
|
h instanceof Error ? u(h.message) : u("Unknown error");
|
|
3095
3095
|
}
|
|
3096
3096
|
};
|
|
3097
|
-
return !d && !e && !c.endOfFeed ? null : /* @__PURE__ */ a.jsx("footer", { className:
|
|
3097
|
+
return !d && !e && !c.endOfFeed ? null : /* @__PURE__ */ a.jsx("footer", { className: S("load-more", o), children: !d && e ? /* @__PURE__ */ a.jsx(
|
|
3098
3098
|
se,
|
|
3099
3099
|
{
|
|
3100
3100
|
variant: n,
|
|
@@ -3119,9 +3119,9 @@ const ta = ({
|
|
|
3119
3119
|
"a",
|
|
3120
3120
|
{
|
|
3121
3121
|
href: "/home/",
|
|
3122
|
-
className:
|
|
3122
|
+
className: S("logo", e, t, n),
|
|
3123
3123
|
...r,
|
|
3124
|
-
children: /* @__PURE__ */ a.jsx(
|
|
3124
|
+
children: /* @__PURE__ */ a.jsx(ge, { children: /* @__PURE__ */ a.jsx(xe, { id: "apolitical" }) })
|
|
3125
3125
|
}
|
|
3126
3126
|
) });
|
|
3127
3127
|
let mt = !1;
|
|
@@ -3131,16 +3131,16 @@ const si = ({
|
|
|
3131
3131
|
options: n,
|
|
3132
3132
|
className: r = ""
|
|
3133
3133
|
}) => {
|
|
3134
|
-
const s =
|
|
3134
|
+
const s = H(), i = me(
|
|
3135
3135
|
null
|
|
3136
3136
|
), [c, o] = J(!1), f = (d) => {
|
|
3137
3137
|
i.current && d.target instanceof HTMLElement && !i.current.contains(d.target) && o(!1);
|
|
3138
3138
|
};
|
|
3139
3139
|
return ie(() => (document.addEventListener("click", f, !0), () => {
|
|
3140
3140
|
document.removeEventListener("click", f, !0);
|
|
3141
|
-
})),
|
|
3141
|
+
})), L.createElement(e, {
|
|
3142
3142
|
ref: i,
|
|
3143
|
-
className:
|
|
3143
|
+
className: S("more-menu text-medium", r),
|
|
3144
3144
|
children: /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
|
|
3145
3145
|
/* @__PURE__ */ a.jsx(
|
|
3146
3146
|
se,
|
|
@@ -3202,12 +3202,12 @@ const oi = [
|
|
|
3202
3202
|
href: "/solution-articles/"
|
|
3203
3203
|
}
|
|
3204
3204
|
], ci = ({ activeLink: e }) => {
|
|
3205
|
-
const t =
|
|
3205
|
+
const t = H(), n = Ce(Ne), r = n && typeof n.id == "string";
|
|
3206
3206
|
return /* @__PURE__ */ a.jsxs("ul", { id: "navigation-menu", className: "text-medium", children: [
|
|
3207
3207
|
oi.map(({ key: s, href: i }) => /* @__PURE__ */ a.jsx(
|
|
3208
3208
|
"li",
|
|
3209
3209
|
{
|
|
3210
|
-
className:
|
|
3210
|
+
className: S(s, { active: ii(i, e) }),
|
|
3211
3211
|
children: /* @__PURE__ */ a.jsx(
|
|
3212
3212
|
"a",
|
|
3213
3213
|
{
|
|
@@ -3284,7 +3284,7 @@ ${Qe(t, "mailto", n)}&src=email`
|
|
|
3284
3284
|
onClick: (r, s) => (r.preventDefault(), r.stopPropagation(), navigator.clipboard.writeText(s))
|
|
3285
3285
|
}
|
|
3286
3286
|
];
|
|
3287
|
-
const di = "shareLinks_",
|
|
3287
|
+
const di = "shareLinks_", Cc = ({
|
|
3288
3288
|
title: e,
|
|
3289
3289
|
link: t,
|
|
3290
3290
|
referrer: n,
|
|
@@ -3293,8 +3293,8 @@ const di = "shareLinks_", $c = ({
|
|
|
3293
3293
|
variant: i = "default",
|
|
3294
3294
|
className: c = ""
|
|
3295
3295
|
}) => {
|
|
3296
|
-
const o =
|
|
3297
|
-
return /* @__PURE__ */ a.jsxs("aside", { className:
|
|
3296
|
+
const o = H(), f = li({ title: e, link: t, referrer: n });
|
|
3297
|
+
return /* @__PURE__ */ a.jsxs("aside", { className: S("share-links", s, i, c), children: [
|
|
3298
3298
|
/* @__PURE__ */ a.jsx("p", { className: "text-small", children: o.formatMessage({ id: "shareLinks_label" }) }),
|
|
3299
3299
|
/* @__PURE__ */ a.jsx("ul", { children: f.map(({ key: d, icon: u, url: l, shouldRender: m = !0, onClick: h }) => {
|
|
3300
3300
|
if (typeof m == "function" && !m())
|
|
@@ -3320,7 +3320,7 @@ const di = "shareLinks_", $c = ({
|
|
|
3320
3320
|
}) })
|
|
3321
3321
|
] });
|
|
3322
3322
|
};
|
|
3323
|
-
const
|
|
3323
|
+
const $c = ({ tabs: e, className: t = "" }) => {
|
|
3324
3324
|
var f;
|
|
3325
3325
|
const n = (d, u, l) => (d || (d = `panel-${window.btoa(u)}-${l}`), d);
|
|
3326
3326
|
let r = e.findIndex((d) => d.current === !0);
|
|
@@ -3361,7 +3361,7 @@ const Pc = ({ tabs: e, className: t = "" }) => {
|
|
|
3361
3361
|
{
|
|
3362
3362
|
href: m || `#${d}`,
|
|
3363
3363
|
id: `tab-${d}`,
|
|
3364
|
-
className:
|
|
3364
|
+
className: S({ selected: g }),
|
|
3365
3365
|
role: "tab",
|
|
3366
3366
|
"aria-selected": g,
|
|
3367
3367
|
...v,
|
|
@@ -3369,7 +3369,7 @@ const Pc = ({ tabs: e, className: t = "" }) => {
|
|
|
3369
3369
|
}
|
|
3370
3370
|
) }, `tab-${d}`)
|
|
3371
3371
|
);
|
|
3372
|
-
}), /* @__PURE__ */ a.jsxs("div", { className:
|
|
3372
|
+
}), /* @__PURE__ */ a.jsxs("div", { className: S("tabs-wrapper", t), children: [
|
|
3373
3373
|
/* @__PURE__ */ a.jsx("ul", { className: "tabs", role: "tablist", children: c }),
|
|
3374
3374
|
/* @__PURE__ */ a.jsx("div", { className: "tab-content", children: o })
|
|
3375
3375
|
] });
|
|
@@ -3385,7 +3385,7 @@ const ui = {
|
|
|
3385
3385
|
}) => {
|
|
3386
3386
|
const s = st(!0);
|
|
3387
3387
|
let i = r;
|
|
3388
|
-
return
|
|
3388
|
+
return L.Children.count(r) === 1 && (i = L.Children.toArray(r)[0], i.props && (i = i.props.children)), /* @__PURE__ */ a.jsx("section", { className: S("columns", `layout-${e}`, n), children: L.Children.map(i, (c, o) => t !== !1 && o === t && s && s < ui[e] ? null : c) });
|
|
3389
3389
|
};
|
|
3390
3390
|
const pt = "emailHelperTextBox_", mi = ({
|
|
3391
3391
|
type: e,
|
|
@@ -3393,7 +3393,7 @@ const pt = "emailHelperTextBox_", mi = ({
|
|
|
3393
3393
|
redirectPath: n,
|
|
3394
3394
|
resendVerificationCode: r
|
|
3395
3395
|
}) => {
|
|
3396
|
-
const s =
|
|
3396
|
+
const s = H(), [i, c] = J({
|
|
3397
3397
|
path: `${pt}default`,
|
|
3398
3398
|
type: "default",
|
|
3399
3399
|
link: {},
|
|
@@ -3540,13 +3540,13 @@ const pt = "emailHelperTextBox_", mi = ({
|
|
|
3540
3540
|
...d
|
|
3541
3541
|
}) => {
|
|
3542
3542
|
const u = me(), l = r || u;
|
|
3543
|
-
return
|
|
3543
|
+
return L.createElement(t, {
|
|
3544
3544
|
ref: l,
|
|
3545
3545
|
...d,
|
|
3546
3546
|
type: o,
|
|
3547
3547
|
id: n,
|
|
3548
3548
|
name: i,
|
|
3549
|
-
className:
|
|
3549
|
+
className: S(e, t, {
|
|
3550
3550
|
"has-scrollbar": o === "textarea" && l.current && l.current.clientHeight < l.current.scrollHeight
|
|
3551
3551
|
}),
|
|
3552
3552
|
value: f,
|
|
@@ -3573,7 +3573,7 @@ const na = ({
|
|
|
3573
3573
|
value: u,
|
|
3574
3574
|
...l
|
|
3575
3575
|
}) => {
|
|
3576
|
-
const m =
|
|
3576
|
+
const m = H(), { onChange: h, ...g } = r, v = () => {
|
|
3577
3577
|
t || h(u ? null : f);
|
|
3578
3578
|
}, _ = /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
|
|
3579
3579
|
/* @__PURE__ */ a.jsx(
|
|
@@ -3597,14 +3597,14 @@ const na = ({
|
|
|
3597
3597
|
id: c ? `${c}_${s}` : s
|
|
3598
3598
|
}) })
|
|
3599
3599
|
] });
|
|
3600
|
-
return
|
|
3600
|
+
return L.createElement(
|
|
3601
3601
|
n,
|
|
3602
3602
|
{
|
|
3603
3603
|
onClick: (b) => {
|
|
3604
3604
|
const y = b.target;
|
|
3605
3605
|
y.nodeName.toLowerCase() === "a" || y.parentNode && y.parentNode.nodeName.toLowerCase() === "a" || (b.preventDefault(), b.stopPropagation(), v());
|
|
3606
3606
|
},
|
|
3607
|
-
className:
|
|
3607
|
+
className: S("checkbox-wrapper", e),
|
|
3608
3608
|
...l,
|
|
3609
3609
|
...g
|
|
3610
3610
|
},
|
|
@@ -3615,9 +3615,9 @@ const pi = Ie(function({
|
|
|
3615
3615
|
direction: t = "down"
|
|
3616
3616
|
}) {
|
|
3617
3617
|
return /* @__PURE__ */ a.jsx(
|
|
3618
|
-
|
|
3618
|
+
Pn,
|
|
3619
3619
|
{
|
|
3620
|
-
className:
|
|
3620
|
+
className: S("rotating-chevron", `direction-${t}`)
|
|
3621
3621
|
}
|
|
3622
3622
|
);
|
|
3623
3623
|
});
|
|
@@ -3638,7 +3638,7 @@ const hi = ({
|
|
|
3638
3638
|
const { onChange: l, ...m } = s, h = (g) => {
|
|
3639
3639
|
d(g), l && l(g.id), o(!1);
|
|
3640
3640
|
};
|
|
3641
|
-
return /* @__PURE__ */ a.jsxs("div", { className:
|
|
3641
|
+
return /* @__PURE__ */ a.jsxs("div", { className: S("dropdown-wrapper", e), children: [
|
|
3642
3642
|
/* @__PURE__ */ a.jsxs(
|
|
3643
3643
|
"button",
|
|
3644
3644
|
{
|
|
@@ -3676,7 +3676,7 @@ const hi = ({
|
|
|
3676
3676
|
return /* @__PURE__ */ a.jsx("li", { "data-testid": "dropdown-options", children: /* @__PURE__ */ a.jsx(
|
|
3677
3677
|
"button",
|
|
3678
3678
|
{
|
|
3679
|
-
className:
|
|
3679
|
+
className: S("gtm-trackable", {
|
|
3680
3680
|
selected: v
|
|
3681
3681
|
}),
|
|
3682
3682
|
"data-gtm-event-type": `${g}-click`,
|
|
@@ -3708,12 +3708,12 @@ const gi = ({
|
|
|
3708
3708
|
value: u,
|
|
3709
3709
|
...l
|
|
3710
3710
|
}) => {
|
|
3711
|
-
const m =
|
|
3711
|
+
const m = H(), h = i ? u : [], g = u;
|
|
3712
3712
|
return /* @__PURE__ */ a.jsx(
|
|
3713
3713
|
"ul",
|
|
3714
3714
|
{
|
|
3715
3715
|
...l,
|
|
3716
|
-
className:
|
|
3716
|
+
className: S("options-wrapper", e),
|
|
3717
3717
|
"data-testid": `ul-${r}`,
|
|
3718
3718
|
children: o == null ? void 0 : o.map(
|
|
3719
3719
|
({
|
|
@@ -3727,8 +3727,8 @@ const gi = ({
|
|
|
3727
3727
|
return;
|
|
3728
3728
|
let x;
|
|
3729
3729
|
if (i) {
|
|
3730
|
-
const
|
|
3731
|
-
Array.isArray(h) &&
|
|
3730
|
+
const P = h == null ? void 0 : h.indexOf(b);
|
|
3731
|
+
Array.isArray(h) && P >= 0 ? (x = h, x.splice(P, 1)) : (!h || h.length === 0 ? x = [] : x = h, x.push(b));
|
|
3732
3732
|
} else
|
|
3733
3733
|
x = g === b ? void 0 : b;
|
|
3734
3734
|
t.onChange(x);
|
|
@@ -3764,7 +3764,7 @@ const _i = ({
|
|
|
3764
3764
|
gtm: { context: n } = { context: void 0 },
|
|
3765
3765
|
...r
|
|
3766
3766
|
}) => {
|
|
3767
|
-
const s =
|
|
3767
|
+
const s = H(), i = me(), c = e || i, [o, f] = J(!1), [d, u] = J(t), l = () => {
|
|
3768
3768
|
var m;
|
|
3769
3769
|
f(!o), u(o ? "password" : "text"), (m = c.current) == null || m.focus();
|
|
3770
3770
|
};
|
|
@@ -3773,7 +3773,7 @@ const _i = ({
|
|
|
3773
3773
|
"button",
|
|
3774
3774
|
{
|
|
3775
3775
|
type: "button",
|
|
3776
|
-
className:
|
|
3776
|
+
className: S("show-password gtm-trackable", {
|
|
3777
3777
|
"password-visible": o
|
|
3778
3778
|
}),
|
|
3779
3779
|
"data-gtm-event-context": n,
|
|
@@ -3812,7 +3812,7 @@ const ze = {
|
|
|
3812
3812
|
value: d,
|
|
3813
3813
|
...u
|
|
3814
3814
|
}) => {
|
|
3815
|
-
const l =
|
|
3815
|
+
const l = H(), 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 : Xe, v = {};
|
|
3816
3816
|
o && ["checkboxes"].includes(o) ? v.element = "span" : v.htmlFor = e;
|
|
3817
3817
|
let _ = {
|
|
3818
3818
|
...u,
|
|
@@ -3828,7 +3828,7 @@ const ze = {
|
|
|
3828
3828
|
i > 0 && (_["data-character-limit"] = i, _.functions && (_.functions.onChange = (w) => {
|
|
3829
3829
|
((w == null ? void 0 : w.toString().length) || 0) > i && (w = w == null ? void 0 : w.toString().slice(0, i)), s.onChange(w);
|
|
3830
3830
|
})), o && ze[o] && ze[o].props && (_ = { ..._, ...ze[o].props }), o && ["checkboxes"].includes(o) && (_.intlPath = `${t}_${e}`), r && (_["aria-invalid"] = !0, _["aria-describedby"] = `error-${e}`);
|
|
3831
|
-
const b = u.label || l.formatMessage({ id: t ? `${t}_${e}` : e }), y = ({ ...w }) => r ?
|
|
3831
|
+
const b = u.label || l.formatMessage({ id: t ? `${t}_${e}` : e }), y = ({ ...w }) => r ? L.createElement(
|
|
3832
3832
|
w.as || "dd",
|
|
3833
3833
|
{
|
|
3834
3834
|
id: `error-${e}`,
|
|
@@ -3846,17 +3846,17 @@ const ze = {
|
|
|
3846
3846
|
{
|
|
3847
3847
|
..._,
|
|
3848
3848
|
label: b,
|
|
3849
|
-
className:
|
|
3849
|
+
className: S("field-wrapper", n)
|
|
3850
3850
|
}
|
|
3851
3851
|
),
|
|
3852
3852
|
/* @__PURE__ */ a.jsx(y, { as: "p" })
|
|
3853
3853
|
] });
|
|
3854
|
-
const j = (w) =>
|
|
3854
|
+
const j = (w) => L.createElement(w.element || "label", {
|
|
3855
3855
|
...w,
|
|
3856
3856
|
className: "checkboxes-label text-small",
|
|
3857
3857
|
"data-testid": `label-${e}`
|
|
3858
3858
|
});
|
|
3859
|
-
return /* @__PURE__ */ a.jsxs("dl", { className:
|
|
3859
|
+
return /* @__PURE__ */ a.jsxs("dl", { className: S("field-wrapper text-medium", n), children: [
|
|
3860
3860
|
/* @__PURE__ */ a.jsx("dt", { children: /* @__PURE__ */ a.jsxs(j, { ...v, children: [
|
|
3861
3861
|
b,
|
|
3862
3862
|
m && c && /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
|
|
@@ -3873,7 +3873,7 @@ const ze = {
|
|
|
3873
3873
|
i > 0 ? /* @__PURE__ */ a.jsxs(
|
|
3874
3874
|
"small",
|
|
3875
3875
|
{
|
|
3876
|
-
className:
|
|
3876
|
+
className: S("character-limit", {
|
|
3877
3877
|
"near-limit": h >= 0.99 * i,
|
|
3878
3878
|
"approaching-limit": h >= 0.9 * i && h < 0.99 * i
|
|
3879
3879
|
}),
|
|
@@ -4014,42 +4014,42 @@ const ra = ({
|
|
|
4014
4014
|
},
|
|
4015
4015
|
...m
|
|
4016
4016
|
}) => {
|
|
4017
|
-
const { customOnSubmit: h, ...g } = i, v = 40, _ =
|
|
4018
|
-
e.length && e.forEach((
|
|
4019
|
-
const ee =
|
|
4020
|
-
ee && (b[ee] =
|
|
4017
|
+
const { customOnSubmit: h, ...g } = i, v = 40, _ = H(), b = {};
|
|
4018
|
+
e.length && e.forEach((E) => {
|
|
4019
|
+
const ee = E.id || E.name;
|
|
4020
|
+
ee && (b[ee] = E.value || "");
|
|
4021
4021
|
});
|
|
4022
4022
|
const [y, j] = Cn(bi, {
|
|
4023
4023
|
isSubmitting: !1,
|
|
4024
4024
|
formSubmitted: !1,
|
|
4025
4025
|
errors: {},
|
|
4026
4026
|
values: b
|
|
4027
|
-
}), { errors: w, isSubmitting: x, formSubmitted:
|
|
4027
|
+
}), { errors: w, isSubmitting: x, formSubmitted: P, values: D } = y;
|
|
4028
4028
|
ie(() => {
|
|
4029
|
-
c &&
|
|
4029
|
+
c && P && (Kt = setTimeout(() => {
|
|
4030
4030
|
j({
|
|
4031
4031
|
type: "updateValue",
|
|
4032
4032
|
payload: { key: "formSubmitted", value: !1 }
|
|
4033
4033
|
});
|
|
4034
4034
|
}, 3e3));
|
|
4035
|
-
}, [
|
|
4035
|
+
}, [P]), ie(() => () => {
|
|
4036
4036
|
Kt && clearTimeout(Kt);
|
|
4037
4037
|
}, []);
|
|
4038
|
-
const
|
|
4038
|
+
const G = me(null), N = r || G;
|
|
4039
4039
|
if (!e.length)
|
|
4040
4040
|
return null;
|
|
4041
4041
|
i.text || (i.text = _.formatMessage({ id: "form_submit" }));
|
|
4042
|
-
const
|
|
4042
|
+
const A = (E) => {
|
|
4043
4043
|
var U;
|
|
4044
|
-
if (
|
|
4044
|
+
if (E.preventDefault(), E.stopPropagation(), x)
|
|
4045
4045
|
return;
|
|
4046
4046
|
let ee = 0;
|
|
4047
4047
|
if ((U = N == null ? void 0 : N.current) != null && U.id) {
|
|
4048
|
-
const
|
|
4049
|
-
|
|
4048
|
+
const F = document.getElementById(N.current.id);
|
|
4049
|
+
F && (ee = F.getBoundingClientRect().top + window.scrollY);
|
|
4050
4050
|
}
|
|
4051
|
-
const
|
|
4052
|
-
if (
|
|
4051
|
+
const W = document.getElementById("header");
|
|
4052
|
+
if (W && (ee = ee - W.offsetHeight - v), ee < 0 && (ee = 0), window.scrollTo({ top: ee, behavior: "smooth" }), j({ type: "toggleSubmitting" }), i.disabled) {
|
|
4053
4053
|
typeof i.disabled == "object" && i.disabled.isClickable && j({
|
|
4054
4054
|
type: "submitForm",
|
|
4055
4055
|
payload: {
|
|
@@ -4065,9 +4065,9 @@ const ra = ({
|
|
|
4065
4065
|
payload: {
|
|
4066
4066
|
fields: e,
|
|
4067
4067
|
dispatch: j,
|
|
4068
|
-
onSuccess: (
|
|
4068
|
+
onSuccess: (F) => {
|
|
4069
4069
|
try {
|
|
4070
|
-
d && d(
|
|
4070
|
+
d && d(F), j({
|
|
4071
4071
|
type: c ? "formSubmittedAndReset" : "formSubmitted"
|
|
4072
4072
|
});
|
|
4073
4073
|
} catch (Q) {
|
|
@@ -4077,8 +4077,8 @@ const ra = ({
|
|
|
4077
4077
|
});
|
|
4078
4078
|
}
|
|
4079
4079
|
},
|
|
4080
|
-
onFailure: (
|
|
4081
|
-
l && l(
|
|
4080
|
+
onFailure: (F) => {
|
|
4081
|
+
l && l(F), j({
|
|
4082
4082
|
type: "updateValue",
|
|
4083
4083
|
payload: { key: "isSubmitting", value: !1 }
|
|
4084
4084
|
});
|
|
@@ -4087,7 +4087,7 @@ const ra = ({
|
|
|
4087
4087
|
}
|
|
4088
4088
|
});
|
|
4089
4089
|
};
|
|
4090
|
-
return /* @__PURE__ */ a.jsxs("form", { ...m, id: n, className:
|
|
4090
|
+
return /* @__PURE__ */ a.jsxs("form", { ...m, id: n, className: S("form", t), ref: N, children: [
|
|
4091
4091
|
w != null && w.general ? /* @__PURE__ */ a.jsx(
|
|
4092
4092
|
We,
|
|
4093
4093
|
{
|
|
@@ -4095,49 +4095,49 @@ const ra = ({
|
|
|
4095
4095
|
text: _.formatMessage({ id: "form_error_generalError" })
|
|
4096
4096
|
}
|
|
4097
4097
|
) : null,
|
|
4098
|
-
(!x && !
|
|
4098
|
+
(!x && !P || h) && e.map((E, ee) => {
|
|
4099
4099
|
const {
|
|
4100
|
-
id:
|
|
4100
|
+
id: W = E.name || ee,
|
|
4101
4101
|
component: U,
|
|
4102
|
-
functions:
|
|
4102
|
+
functions: F = { onChange: () => {
|
|
4103
4103
|
} }
|
|
4104
|
-
} =
|
|
4104
|
+
} = E;
|
|
4105
4105
|
if (U)
|
|
4106
|
-
return /* @__PURE__ */ a.jsx(U, { ...
|
|
4107
|
-
const Q =
|
|
4106
|
+
return /* @__PURE__ */ a.jsx(U, { ...E.props || {} }, `component-${W}-${ee}`);
|
|
4107
|
+
const Q = D ? D[W] : "";
|
|
4108
4108
|
return /* @__PURE__ */ a.jsx(
|
|
4109
4109
|
vi,
|
|
4110
4110
|
{
|
|
4111
4111
|
intlPath: s,
|
|
4112
|
-
...
|
|
4112
|
+
...E,
|
|
4113
4113
|
showRequiredLabels: o,
|
|
4114
4114
|
value: Q,
|
|
4115
|
-
error: w == null ? void 0 : w[
|
|
4115
|
+
error: w == null ? void 0 : w[W],
|
|
4116
4116
|
functions: {
|
|
4117
|
-
...
|
|
4117
|
+
...F,
|
|
4118
4118
|
onChange: (X) => {
|
|
4119
|
-
j({ type: "updateValue", payload: { key:
|
|
4119
|
+
j({ type: "updateValue", payload: { key: W, value: X } }), F.onChange(X && X.toString(), j);
|
|
4120
4120
|
}
|
|
4121
4121
|
}
|
|
4122
4122
|
},
|
|
4123
|
-
|
|
4123
|
+
W
|
|
4124
4124
|
);
|
|
4125
4125
|
}),
|
|
4126
|
-
(x ||
|
|
4126
|
+
(x || P) && h ? h : /* @__PURE__ */ a.jsx(
|
|
4127
4127
|
"p",
|
|
4128
4128
|
{
|
|
4129
|
-
className: `cta ${x ||
|
|
4129
|
+
className: `cta ${x || P ? "center" : ""} ${P ? "submitted" : ""}`,
|
|
4130
4130
|
children: /* @__PURE__ */ a.jsx(
|
|
4131
4131
|
se,
|
|
4132
4132
|
{
|
|
4133
4133
|
...g,
|
|
4134
|
-
icon:
|
|
4134
|
+
icon: P ? { icon: "tick", position: "left" } : !1,
|
|
4135
4135
|
className: "gtm-trackable",
|
|
4136
|
-
onClick:
|
|
4137
|
-
disabled: x ||
|
|
4136
|
+
onClick: A,
|
|
4137
|
+
disabled: x || P || i.disabled,
|
|
4138
4138
|
"data-gtm-event-context": f.context,
|
|
4139
4139
|
"data-gtm-event-type": f.event,
|
|
4140
|
-
children: x ||
|
|
4140
|
+
children: x || P ? _.formatMessage({
|
|
4141
4141
|
id: `form_${x ? "submitting" : "submitted"}`
|
|
4142
4142
|
}) : i.text
|
|
4143
4143
|
}
|
|
@@ -4158,21 +4158,21 @@ const ht = "passwordRules_", aa = "isMoreThanEightCharacters", sa = "includesNum
|
|
|
4158
4158
|
},
|
|
4159
4159
|
className: t = ""
|
|
4160
4160
|
}) => {
|
|
4161
|
-
const n =
|
|
4162
|
-
return /* @__PURE__ */ a.jsxs("aside", { className:
|
|
4161
|
+
const n = H();
|
|
4162
|
+
return /* @__PURE__ */ a.jsxs("aside", { className: S("password-rules", t), children: [
|
|
4163
4163
|
/* @__PURE__ */ a.jsx("small", { children: n.formatMessage({ id: `${ht}intro` }) }),
|
|
4164
4164
|
/* @__PURE__ */ a.jsx("ul", { children: [aa, sa, ia].map(
|
|
4165
4165
|
(r) => /* @__PURE__ */ a.jsxs(
|
|
4166
4166
|
"li",
|
|
4167
4167
|
{
|
|
4168
|
-
className:
|
|
4168
|
+
className: S({ matches: e[r] }),
|
|
4169
4169
|
children: [
|
|
4170
|
-
/* @__PURE__ */ a.jsxs(
|
|
4170
|
+
/* @__PURE__ */ a.jsxs(ge, { children: [
|
|
4171
4171
|
n.formatMessage({ id: `${ht}rule_label` }),
|
|
4172
4172
|
" "
|
|
4173
4173
|
] }),
|
|
4174
4174
|
/* @__PURE__ */ a.jsx("span", { children: n.formatMessage({ id: `${ht}rule_${yi[r]}` }) }),
|
|
4175
|
-
!e[r] && /* @__PURE__ */ a.jsxs(
|
|
4175
|
+
!e[r] && /* @__PURE__ */ a.jsxs(ge, { element: "strong", children: [
|
|
4176
4176
|
" ",
|
|
4177
4177
|
n.formatMessage({ id: `${ht}notMet` })
|
|
4178
4178
|
] })
|
|
@@ -4183,7 +4183,7 @@ const ht = "passwordRules_", aa = "isMoreThanEightCharacters", sa = "includesNum
|
|
|
4183
4183
|
) })
|
|
4184
4184
|
] });
|
|
4185
4185
|
}, Mc = Ie(xi);
|
|
4186
|
-
const
|
|
4186
|
+
const Pc = ({
|
|
4187
4187
|
text: e = {},
|
|
4188
4188
|
topRating: t = 5,
|
|
4189
4189
|
functions: {
|
|
@@ -4196,7 +4196,7 @@ const Rc = ({
|
|
|
4196
4196
|
className: i = "",
|
|
4197
4197
|
hasLoaded: c = !1
|
|
4198
4198
|
}) => {
|
|
4199
|
-
const o =
|
|
4199
|
+
const o = H(), [f, d] = J({
|
|
4200
4200
|
setUp: !1,
|
|
4201
4201
|
id: null,
|
|
4202
4202
|
rating: null,
|
|
@@ -4234,14 +4234,14 @@ const Rc = ({
|
|
|
4234
4234
|
d((y) => ({ ...y, disabled: !1 }));
|
|
4235
4235
|
}
|
|
4236
4236
|
};
|
|
4237
|
-
return /* @__PURE__ */ a.jsxs("div", { className:
|
|
4237
|
+
return /* @__PURE__ */ a.jsxs("div", { className: S("rating", i), children: [
|
|
4238
4238
|
/* @__PURE__ */ a.jsx("span", { className: "label", children: v[m ? "success" : "text"] }),
|
|
4239
4239
|
/* @__PURE__ */ a.jsx("ol", { children: Array.from(new Array(t).keys()).map((b) => {
|
|
4240
4240
|
const y = b + 1;
|
|
4241
4241
|
return /* @__PURE__ */ a.jsx(
|
|
4242
4242
|
"li",
|
|
4243
4243
|
{
|
|
4244
|
-
className:
|
|
4244
|
+
className: S({ selected: m && y <= m }),
|
|
4245
4245
|
children: /* @__PURE__ */ a.jsx(
|
|
4246
4246
|
se,
|
|
4247
4247
|
{
|
|
@@ -4328,7 +4328,7 @@ const ji = ({
|
|
|
4328
4328
|
initialFormStatus: d = "NOT_SUBMITTED"
|
|
4329
4329
|
/* NOT_SUBMITTED */
|
|
4330
4330
|
}) => {
|
|
4331
|
-
const [u, l] = J([]), [m, h] = J(!0), [g, v] = J(d), { formatMessage: _ } =
|
|
4331
|
+
const [u, l] = J([]), [m, h] = J(!0), [g, v] = J(d), { formatMessage: _ } = H(), b = async (w) => {
|
|
4332
4332
|
w.preventDefault();
|
|
4333
4333
|
try {
|
|
4334
4334
|
await f(u), l([]), v(
|
|
@@ -4367,7 +4367,7 @@ const ji = ({
|
|
|
4367
4367
|
{
|
|
4368
4368
|
style: { backgroundColor: i },
|
|
4369
4369
|
onSubmit: b,
|
|
4370
|
-
className:
|
|
4370
|
+
className: S("invite-form gtm-trackable"),
|
|
4371
4371
|
children: [
|
|
4372
4372
|
/* @__PURE__ */ a.jsxs("fieldset", { className: "content", children: [
|
|
4373
4373
|
/* @__PURE__ */ a.jsx("h2", { className: "title", style: { color: r }, children: e }),
|
|
@@ -4383,7 +4383,7 @@ const ji = ({
|
|
|
4383
4383
|
l(w), h(!w.length);
|
|
4384
4384
|
},
|
|
4385
4385
|
autoFocus: !1,
|
|
4386
|
-
getLabel: (w, x,
|
|
4386
|
+
getLabel: (w, x, P) => /* @__PURE__ */ a.jsxs("div", { className: "email text-medium", children: [
|
|
4387
4387
|
/* @__PURE__ */ a.jsx("div", { "data-tag-item": !0, children: w }),
|
|
4388
4388
|
/* @__PURE__ */ a.jsx(
|
|
4389
4389
|
se,
|
|
@@ -4392,7 +4392,7 @@ const ji = ({
|
|
|
4392
4392
|
size: "small",
|
|
4393
4393
|
icon: { icon: "close" },
|
|
4394
4394
|
onClick: () => {
|
|
4395
|
-
|
|
4395
|
+
P(x), h(!u.length);
|
|
4396
4396
|
},
|
|
4397
4397
|
className: "remove-email-button",
|
|
4398
4398
|
screenreaderText: _({ id: "overlay_close" })
|
|
@@ -4416,7 +4416,7 @@ const ki = ({
|
|
|
4416
4416
|
gtmContext: s = "search-bar",
|
|
4417
4417
|
gtmEvent: i = "form-submission"
|
|
4418
4418
|
}) => {
|
|
4419
|
-
const { searchIsOpen: c = !0, isDesktopVersion: o = !1 } = n || {}, f =
|
|
4419
|
+
const { searchIsOpen: c = !0, isDesktopVersion: o = !1 } = n || {}, f = H(), d = me(null);
|
|
4420
4420
|
nt(() => {
|
|
4421
4421
|
!n || o || !c || d.current && d.current.focus();
|
|
4422
4422
|
}, [c]);
|
|
@@ -4427,7 +4427,7 @@ const ki = ({
|
|
|
4427
4427
|
"form",
|
|
4428
4428
|
{
|
|
4429
4429
|
onSubmit: u,
|
|
4430
|
-
className:
|
|
4430
|
+
className: S("search-form gtm-trackable", t),
|
|
4431
4431
|
"data-gtm-event-context": s,
|
|
4432
4432
|
"data-gtm-event-type": i,
|
|
4433
4433
|
children: /* @__PURE__ */ a.jsx(
|
|
@@ -4438,7 +4438,7 @@ const ki = ({
|
|
|
4438
4438
|
role: "search",
|
|
4439
4439
|
children: /* @__PURE__ */ a.jsxs("p", { children: [
|
|
4440
4440
|
/* @__PURE__ */ a.jsx(
|
|
4441
|
-
|
|
4441
|
+
ge,
|
|
4442
4442
|
{
|
|
4443
4443
|
element: "label",
|
|
4444
4444
|
htmlFor: e,
|
|
@@ -4466,10 +4466,10 @@ const ki = ({
|
|
|
4466
4466
|
onClick: (l) => {
|
|
4467
4467
|
l.preventDefault(), l.stopPropagation(), d.current && d.current.value && (d.current.value = "");
|
|
4468
4468
|
},
|
|
4469
|
-
children: /* @__PURE__ */ a.jsx(
|
|
4469
|
+
children: /* @__PURE__ */ a.jsx(ge, { children: f.formatMessage({ id: "search_clear" }) })
|
|
4470
4470
|
}
|
|
4471
4471
|
),
|
|
4472
|
-
/* @__PURE__ */ a.jsx("button", { className: "search", onClick: u, children: /* @__PURE__ */ a.jsx(
|
|
4472
|
+
/* @__PURE__ */ a.jsx("button", { className: "search", onClick: u, children: /* @__PURE__ */ a.jsx(ge, { children: f.formatMessage({ id: "search_cta" }) }) })
|
|
4473
4473
|
] })
|
|
4474
4474
|
}
|
|
4475
4475
|
)
|
|
@@ -4574,8 +4574,8 @@ function Ei() {
|
|
|
4574
4574
|
var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103, n = e ? Symbol.for("react.portal") : 60106, r = e ? Symbol.for("react.fragment") : 60107, s = e ? Symbol.for("react.strict_mode") : 60108, i = e ? Symbol.for("react.profiler") : 60114, c = e ? Symbol.for("react.provider") : 60109, o = e ? Symbol.for("react.context") : 60110, f = e ? Symbol.for("react.async_mode") : 60111, d = e ? Symbol.for("react.concurrent_mode") : 60111, u = e ? Symbol.for("react.forward_ref") : 60112, l = e ? Symbol.for("react.suspense") : 60113, m = e ? Symbol.for("react.suspense_list") : 60120, h = e ? Symbol.for("react.memo") : 60115, g = e ? Symbol.for("react.lazy") : 60116, v = e ? Symbol.for("react.block") : 60121, _ = e ? Symbol.for("react.fundamental") : 60117, b = e ? Symbol.for("react.responder") : 60118, y = e ? Symbol.for("react.scope") : 60119;
|
|
4575
4575
|
function j(x) {
|
|
4576
4576
|
if (typeof x == "object" && x !== null) {
|
|
4577
|
-
var
|
|
4578
|
-
switch (
|
|
4577
|
+
var P = x.$$typeof;
|
|
4578
|
+
switch (P) {
|
|
4579
4579
|
case t:
|
|
4580
4580
|
switch (x = x.type, x) {
|
|
4581
4581
|
case f:
|
|
@@ -4594,11 +4594,11 @@ function Ei() {
|
|
|
4594
4594
|
case c:
|
|
4595
4595
|
return x;
|
|
4596
4596
|
default:
|
|
4597
|
-
return
|
|
4597
|
+
return P;
|
|
4598
4598
|
}
|
|
4599
4599
|
}
|
|
4600
4600
|
case n:
|
|
4601
|
-
return
|
|
4601
|
+
return P;
|
|
4602
4602
|
}
|
|
4603
4603
|
}
|
|
4604
4604
|
}
|
|
@@ -4652,8 +4652,8 @@ function Si() {
|
|
|
4652
4652
|
}
|
|
4653
4653
|
function w($) {
|
|
4654
4654
|
if (typeof $ == "object" && $ !== null) {
|
|
4655
|
-
var
|
|
4656
|
-
switch (
|
|
4655
|
+
var _e = $.$$typeof;
|
|
4656
|
+
switch (_e) {
|
|
4657
4657
|
case t:
|
|
4658
4658
|
var $e = $.type;
|
|
4659
4659
|
switch ($e) {
|
|
@@ -4674,55 +4674,55 @@ function Si() {
|
|
|
4674
4674
|
case c:
|
|
4675
4675
|
return Ee;
|
|
4676
4676
|
default:
|
|
4677
|
-
return
|
|
4677
|
+
return _e;
|
|
4678
4678
|
}
|
|
4679
4679
|
}
|
|
4680
4680
|
case n:
|
|
4681
|
-
return
|
|
4681
|
+
return _e;
|
|
4682
4682
|
}
|
|
4683
4683
|
}
|
|
4684
4684
|
}
|
|
4685
|
-
var x = f,
|
|
4685
|
+
var x = f, P = d, D = o, G = c, N = t, A = u, E = r, ee = g, W = h, U = n, F = i, Q = s, X = l, ne = !1;
|
|
4686
4686
|
function fe($) {
|
|
4687
|
-
return
|
|
4687
|
+
return ne || (ne = !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;
|
|
4688
4688
|
}
|
|
4689
4689
|
function k($) {
|
|
4690
4690
|
return w($) === d;
|
|
4691
4691
|
}
|
|
4692
|
-
function
|
|
4692
|
+
function C($) {
|
|
4693
4693
|
return w($) === o;
|
|
4694
4694
|
}
|
|
4695
4695
|
function B($) {
|
|
4696
4696
|
return w($) === c;
|
|
4697
4697
|
}
|
|
4698
|
-
function
|
|
4698
|
+
function q($) {
|
|
4699
4699
|
return typeof $ == "object" && $ !== null && $.$$typeof === t;
|
|
4700
4700
|
}
|
|
4701
|
-
function
|
|
4701
|
+
function z($) {
|
|
4702
4702
|
return w($) === u;
|
|
4703
4703
|
}
|
|
4704
|
-
function
|
|
4704
|
+
function K($) {
|
|
4705
4705
|
return w($) === r;
|
|
4706
4706
|
}
|
|
4707
|
-
function
|
|
4707
|
+
function O($) {
|
|
4708
4708
|
return w($) === g;
|
|
4709
4709
|
}
|
|
4710
4710
|
function I($) {
|
|
4711
4711
|
return w($) === h;
|
|
4712
4712
|
}
|
|
4713
|
-
function
|
|
4713
|
+
function Y($) {
|
|
4714
4714
|
return w($) === n;
|
|
4715
4715
|
}
|
|
4716
|
-
function
|
|
4716
|
+
function Z($) {
|
|
4717
4717
|
return w($) === i;
|
|
4718
4718
|
}
|
|
4719
|
-
function
|
|
4719
|
+
function R($) {
|
|
4720
4720
|
return w($) === s;
|
|
4721
4721
|
}
|
|
4722
|
-
function
|
|
4722
|
+
function le($) {
|
|
4723
4723
|
return w($) === l;
|
|
4724
4724
|
}
|
|
4725
|
-
ce.AsyncMode = x, ce.ConcurrentMode =
|
|
4725
|
+
ce.AsyncMode = x, ce.ConcurrentMode = P, ce.ContextConsumer = D, ce.ContextProvider = G, ce.Element = N, ce.ForwardRef = A, ce.Fragment = E, ce.Lazy = ee, ce.Memo = W, ce.Portal = U, ce.Profiler = F, ce.StrictMode = Q, ce.Suspense = X, ce.isAsyncMode = fe, ce.isConcurrentMode = k, ce.isContextConsumer = C, ce.isContextProvider = B, ce.isElement = q, ce.isForwardRef = z, ce.isFragment = K, ce.isLazy = O, ce.isMemo = I, ce.isPortal = Y, ce.isProfiler = Z, ce.isStrictMode = R, ce.isSuspense = le, ce.isValidElementType = j, ce.typeOf = w;
|
|
4726
4726
|
}()), ce;
|
|
4727
4727
|
}
|
|
4728
4728
|
process.env.NODE_ENV === "production" ? xn.exports = Ei() : xn.exports = Si();
|
|
@@ -4842,7 +4842,7 @@ function $i() {
|
|
|
4842
4842
|
}, en = s, en;
|
|
4843
4843
|
}
|
|
4844
4844
|
var tn, br;
|
|
4845
|
-
function
|
|
4845
|
+
function Mi() {
|
|
4846
4846
|
if (br)
|
|
4847
4847
|
return tn;
|
|
4848
4848
|
br = 1;
|
|
@@ -4862,9 +4862,9 @@ function Pi() {
|
|
|
4862
4862
|
return tn = function(o, f) {
|
|
4863
4863
|
var d = typeof Symbol == "function" && Symbol.iterator, u = "@@iterator";
|
|
4864
4864
|
function l(k) {
|
|
4865
|
-
var
|
|
4866
|
-
if (typeof
|
|
4867
|
-
return
|
|
4865
|
+
var C = k && (d && k[d] || k[u]);
|
|
4866
|
+
if (typeof C == "function")
|
|
4867
|
+
return C;
|
|
4868
4868
|
}
|
|
4869
4869
|
var m = "<<anonymous>>", h = {
|
|
4870
4870
|
array: b("array"),
|
|
@@ -4879,217 +4879,217 @@ function Pi() {
|
|
|
4879
4879
|
arrayOf: j,
|
|
4880
4880
|
element: w(),
|
|
4881
4881
|
elementType: x(),
|
|
4882
|
-
instanceOf:
|
|
4883
|
-
node:
|
|
4884
|
-
objectOf:
|
|
4885
|
-
oneOf:
|
|
4882
|
+
instanceOf: P,
|
|
4883
|
+
node: A(),
|
|
4884
|
+
objectOf: G,
|
|
4885
|
+
oneOf: D,
|
|
4886
4886
|
oneOfType: N,
|
|
4887
4887
|
shape: ee,
|
|
4888
|
-
exact:
|
|
4888
|
+
exact: W
|
|
4889
4889
|
};
|
|
4890
|
-
function g(k,
|
|
4891
|
-
return k ===
|
|
4890
|
+
function g(k, C) {
|
|
4891
|
+
return k === C ? k !== 0 || 1 / k === 1 / C : k !== k && C !== C;
|
|
4892
4892
|
}
|
|
4893
|
-
function v(k,
|
|
4894
|
-
this.message = k, this.data =
|
|
4893
|
+
function v(k, C) {
|
|
4894
|
+
this.message = k, this.data = C && typeof C == "object" ? C : {}, this.stack = "";
|
|
4895
4895
|
}
|
|
4896
4896
|
v.prototype = Error.prototype;
|
|
4897
4897
|
function _(k) {
|
|
4898
4898
|
if (process.env.NODE_ENV !== "production")
|
|
4899
|
-
var
|
|
4900
|
-
function
|
|
4901
|
-
if (
|
|
4899
|
+
var C = {}, B = 0;
|
|
4900
|
+
function q(K, O, I, Y, Z, R, le) {
|
|
4901
|
+
if (Y = Y || m, R = R || I, le !== n) {
|
|
4902
4902
|
if (f) {
|
|
4903
4903
|
var $ = new Error(
|
|
4904
4904
|
"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"
|
|
4905
4905
|
);
|
|
4906
4906
|
throw $.name = "Invariant Violation", $;
|
|
4907
4907
|
} else if (process.env.NODE_ENV !== "production" && typeof console < "u") {
|
|
4908
|
-
var
|
|
4909
|
-
!
|
|
4908
|
+
var _e = Y + ":" + I;
|
|
4909
|
+
!C[_e] && // Avoid spamming the console because they are often not actionable except for lib authors
|
|
4910
4910
|
B < 3 && (i(
|
|
4911
|
-
"You are manually calling a React.PropTypes validation function for the `" +
|
|
4912
|
-
),
|
|
4911
|
+
"You are manually calling a React.PropTypes validation function for the `" + R + "` prop on `" + Y + "`. 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."
|
|
4912
|
+
), C[_e] = !0, B++);
|
|
4913
4913
|
}
|
|
4914
4914
|
}
|
|
4915
|
-
return
|
|
4915
|
+
return O[I] == null ? K ? O[I] === null ? new v("The " + Z + " `" + R + "` is marked as required " + ("in `" + Y + "`, but its value is `null`.")) : new v("The " + Z + " `" + R + "` is marked as required in " + ("`" + Y + "`, but its value is `undefined`.")) : null : k(O, I, Y, Z, R);
|
|
4916
4916
|
}
|
|
4917
|
-
var
|
|
4918
|
-
return
|
|
4917
|
+
var z = q.bind(null, !1);
|
|
4918
|
+
return z.isRequired = q.bind(null, !0), z;
|
|
4919
4919
|
}
|
|
4920
4920
|
function b(k) {
|
|
4921
|
-
function
|
|
4922
|
-
var
|
|
4923
|
-
if (
|
|
4924
|
-
var
|
|
4921
|
+
function C(B, q, z, K, O, I) {
|
|
4922
|
+
var Y = B[q], Z = Q(Y);
|
|
4923
|
+
if (Z !== k) {
|
|
4924
|
+
var R = X(Y);
|
|
4925
4925
|
return new v(
|
|
4926
|
-
"Invalid " +
|
|
4926
|
+
"Invalid " + K + " `" + O + "` of type " + ("`" + R + "` supplied to `" + z + "`, expected ") + ("`" + k + "`."),
|
|
4927
4927
|
{ expectedType: k }
|
|
4928
4928
|
);
|
|
4929
4929
|
}
|
|
4930
4930
|
return null;
|
|
4931
4931
|
}
|
|
4932
|
-
return _(
|
|
4932
|
+
return _(C);
|
|
4933
4933
|
}
|
|
4934
4934
|
function y() {
|
|
4935
4935
|
return _(c);
|
|
4936
4936
|
}
|
|
4937
4937
|
function j(k) {
|
|
4938
|
-
function
|
|
4938
|
+
function C(B, q, z, K, O) {
|
|
4939
4939
|
if (typeof k != "function")
|
|
4940
|
-
return new v("Property `" +
|
|
4941
|
-
var I = B[
|
|
4940
|
+
return new v("Property `" + O + "` of component `" + z + "` has invalid PropType notation inside arrayOf.");
|
|
4941
|
+
var I = B[q];
|
|
4942
4942
|
if (!Array.isArray(I)) {
|
|
4943
|
-
var
|
|
4944
|
-
return new v("Invalid " +
|
|
4943
|
+
var Y = Q(I);
|
|
4944
|
+
return new v("Invalid " + K + " `" + O + "` of type " + ("`" + Y + "` supplied to `" + z + "`, expected an array."));
|
|
4945
4945
|
}
|
|
4946
|
-
for (var
|
|
4947
|
-
var
|
|
4948
|
-
if (
|
|
4949
|
-
return
|
|
4946
|
+
for (var Z = 0; Z < I.length; Z++) {
|
|
4947
|
+
var R = k(I, Z, z, K, O + "[" + Z + "]", n);
|
|
4948
|
+
if (R instanceof Error)
|
|
4949
|
+
return R;
|
|
4950
4950
|
}
|
|
4951
4951
|
return null;
|
|
4952
4952
|
}
|
|
4953
|
-
return _(
|
|
4953
|
+
return _(C);
|
|
4954
4954
|
}
|
|
4955
4955
|
function w() {
|
|
4956
|
-
function k(
|
|
4957
|
-
var
|
|
4958
|
-
if (!o(
|
|
4959
|
-
var I = Q(
|
|
4960
|
-
return new v("Invalid " +
|
|
4956
|
+
function k(C, B, q, z, K) {
|
|
4957
|
+
var O = C[B];
|
|
4958
|
+
if (!o(O)) {
|
|
4959
|
+
var I = Q(O);
|
|
4960
|
+
return new v("Invalid " + z + " `" + K + "` of type " + ("`" + I + "` supplied to `" + q + "`, expected a single ReactElement."));
|
|
4961
4961
|
}
|
|
4962
4962
|
return null;
|
|
4963
4963
|
}
|
|
4964
4964
|
return _(k);
|
|
4965
4965
|
}
|
|
4966
4966
|
function x() {
|
|
4967
|
-
function k(
|
|
4968
|
-
var
|
|
4969
|
-
if (!e.isValidElementType(
|
|
4970
|
-
var I = Q(
|
|
4971
|
-
return new v("Invalid " +
|
|
4967
|
+
function k(C, B, q, z, K) {
|
|
4968
|
+
var O = C[B];
|
|
4969
|
+
if (!e.isValidElementType(O)) {
|
|
4970
|
+
var I = Q(O);
|
|
4971
|
+
return new v("Invalid " + z + " `" + K + "` of type " + ("`" + I + "` supplied to `" + q + "`, expected a single ReactElement type."));
|
|
4972
4972
|
}
|
|
4973
4973
|
return null;
|
|
4974
4974
|
}
|
|
4975
4975
|
return _(k);
|
|
4976
4976
|
}
|
|
4977
|
-
function
|
|
4978
|
-
function
|
|
4979
|
-
if (!(B[
|
|
4980
|
-
var I = k.name || m,
|
|
4981
|
-
return new v("Invalid " +
|
|
4977
|
+
function P(k) {
|
|
4978
|
+
function C(B, q, z, K, O) {
|
|
4979
|
+
if (!(B[q] instanceof k)) {
|
|
4980
|
+
var I = k.name || m, Y = fe(B[q]);
|
|
4981
|
+
return new v("Invalid " + K + " `" + O + "` of type " + ("`" + Y + "` supplied to `" + z + "`, expected ") + ("instance of `" + I + "`."));
|
|
4982
4982
|
}
|
|
4983
4983
|
return null;
|
|
4984
4984
|
}
|
|
4985
|
-
return _(
|
|
4985
|
+
return _(C);
|
|
4986
4986
|
}
|
|
4987
|
-
function
|
|
4987
|
+
function D(k) {
|
|
4988
4988
|
if (!Array.isArray(k))
|
|
4989
4989
|
return process.env.NODE_ENV !== "production" && (arguments.length > 1 ? i(
|
|
4990
4990
|
"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])."
|
|
4991
4991
|
) : i("Invalid argument supplied to oneOf, expected an array.")), c;
|
|
4992
|
-
function
|
|
4993
|
-
for (var I = B[
|
|
4994
|
-
if (g(I, k[
|
|
4992
|
+
function C(B, q, z, K, O) {
|
|
4993
|
+
for (var I = B[q], Y = 0; Y < k.length; Y++)
|
|
4994
|
+
if (g(I, k[Y]))
|
|
4995
4995
|
return null;
|
|
4996
|
-
var
|
|
4997
|
-
var
|
|
4998
|
-
return
|
|
4996
|
+
var Z = JSON.stringify(k, function(le, $) {
|
|
4997
|
+
var _e = X($);
|
|
4998
|
+
return _e === "symbol" ? String($) : $;
|
|
4999
4999
|
});
|
|
5000
|
-
return new v("Invalid " +
|
|
5000
|
+
return new v("Invalid " + K + " `" + O + "` of value `" + String(I) + "` " + ("supplied to `" + z + "`, expected one of " + Z + "."));
|
|
5001
5001
|
}
|
|
5002
|
-
return _(
|
|
5002
|
+
return _(C);
|
|
5003
5003
|
}
|
|
5004
|
-
function
|
|
5005
|
-
function
|
|
5004
|
+
function G(k) {
|
|
5005
|
+
function C(B, q, z, K, O) {
|
|
5006
5006
|
if (typeof k != "function")
|
|
5007
|
-
return new v("Property `" +
|
|
5008
|
-
var I = B[
|
|
5009
|
-
if (
|
|
5010
|
-
return new v("Invalid " +
|
|
5011
|
-
for (var
|
|
5012
|
-
if (r(I,
|
|
5013
|
-
var
|
|
5014
|
-
if (
|
|
5015
|
-
return
|
|
5007
|
+
return new v("Property `" + O + "` of component `" + z + "` has invalid PropType notation inside objectOf.");
|
|
5008
|
+
var I = B[q], Y = Q(I);
|
|
5009
|
+
if (Y !== "object")
|
|
5010
|
+
return new v("Invalid " + K + " `" + O + "` of type " + ("`" + Y + "` supplied to `" + z + "`, expected an object."));
|
|
5011
|
+
for (var Z in I)
|
|
5012
|
+
if (r(I, Z)) {
|
|
5013
|
+
var R = k(I, Z, z, K, O + "." + Z, n);
|
|
5014
|
+
if (R instanceof Error)
|
|
5015
|
+
return R;
|
|
5016
5016
|
}
|
|
5017
5017
|
return null;
|
|
5018
5018
|
}
|
|
5019
|
-
return _(
|
|
5019
|
+
return _(C);
|
|
5020
5020
|
}
|
|
5021
5021
|
function N(k) {
|
|
5022
5022
|
if (!Array.isArray(k))
|
|
5023
5023
|
return process.env.NODE_ENV !== "production" && i("Invalid argument supplied to oneOfType, expected an instance of array."), c;
|
|
5024
|
-
for (var
|
|
5025
|
-
var B = k[
|
|
5024
|
+
for (var C = 0; C < k.length; C++) {
|
|
5025
|
+
var B = k[C];
|
|
5026
5026
|
if (typeof B != "function")
|
|
5027
5027
|
return i(
|
|
5028
|
-
"Invalid argument supplied to oneOfType. Expected an array of check functions, but received " +
|
|
5028
|
+
"Invalid argument supplied to oneOfType. Expected an array of check functions, but received " + ne(B) + " at index " + C + "."
|
|
5029
5029
|
), c;
|
|
5030
5030
|
}
|
|
5031
|
-
function
|
|
5032
|
-
for (var
|
|
5033
|
-
var
|
|
5031
|
+
function q(z, K, O, I, Y) {
|
|
5032
|
+
for (var Z = [], R = 0; R < k.length; R++) {
|
|
5033
|
+
var le = k[R], $ = le(z, K, O, I, Y, n);
|
|
5034
5034
|
if ($ == null)
|
|
5035
5035
|
return null;
|
|
5036
|
-
$.data && r($.data, "expectedType") &&
|
|
5036
|
+
$.data && r($.data, "expectedType") && Z.push($.data.expectedType);
|
|
5037
5037
|
}
|
|
5038
|
-
var
|
|
5039
|
-
return new v("Invalid " + I + " `" +
|
|
5038
|
+
var _e = Z.length > 0 ? ", expected one of type [" + Z.join(", ") + "]" : "";
|
|
5039
|
+
return new v("Invalid " + I + " `" + Y + "` supplied to " + ("`" + O + "`" + _e + "."));
|
|
5040
5040
|
}
|
|
5041
|
-
return _(
|
|
5041
|
+
return _(q);
|
|
5042
5042
|
}
|
|
5043
|
-
function
|
|
5044
|
-
function k(
|
|
5045
|
-
return U(
|
|
5043
|
+
function A() {
|
|
5044
|
+
function k(C, B, q, z, K) {
|
|
5045
|
+
return U(C[B]) ? null : new v("Invalid " + z + " `" + K + "` supplied to " + ("`" + q + "`, expected a ReactNode."));
|
|
5046
5046
|
}
|
|
5047
5047
|
return _(k);
|
|
5048
5048
|
}
|
|
5049
|
-
function
|
|
5049
|
+
function E(k, C, B, q, z) {
|
|
5050
5050
|
return new v(
|
|
5051
|
-
(k || "React class") + ": " +
|
|
5051
|
+
(k || "React class") + ": " + C + " type `" + B + "." + q + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + z + "`."
|
|
5052
5052
|
);
|
|
5053
5053
|
}
|
|
5054
5054
|
function ee(k) {
|
|
5055
|
-
function
|
|
5056
|
-
var I = B[
|
|
5057
|
-
if (
|
|
5058
|
-
return new v("Invalid " +
|
|
5059
|
-
for (var
|
|
5060
|
-
var
|
|
5061
|
-
if (typeof
|
|
5062
|
-
return
|
|
5063
|
-
var
|
|
5064
|
-
if (
|
|
5065
|
-
return
|
|
5055
|
+
function C(B, q, z, K, O) {
|
|
5056
|
+
var I = B[q], Y = Q(I);
|
|
5057
|
+
if (Y !== "object")
|
|
5058
|
+
return new v("Invalid " + K + " `" + O + "` of type `" + Y + "` " + ("supplied to `" + z + "`, expected `object`."));
|
|
5059
|
+
for (var Z in k) {
|
|
5060
|
+
var R = k[Z];
|
|
5061
|
+
if (typeof R != "function")
|
|
5062
|
+
return E(z, K, O, Z, X(R));
|
|
5063
|
+
var le = R(I, Z, z, K, O + "." + Z, n);
|
|
5064
|
+
if (le)
|
|
5065
|
+
return le;
|
|
5066
5066
|
}
|
|
5067
5067
|
return null;
|
|
5068
5068
|
}
|
|
5069
|
-
return _(
|
|
5070
|
-
}
|
|
5071
|
-
function
|
|
5072
|
-
function
|
|
5073
|
-
var I = B[
|
|
5074
|
-
if (
|
|
5075
|
-
return new v("Invalid " +
|
|
5076
|
-
var
|
|
5077
|
-
for (var
|
|
5078
|
-
var
|
|
5079
|
-
if (r(k,
|
|
5080
|
-
return
|
|
5081
|
-
if (!
|
|
5069
|
+
return _(C);
|
|
5070
|
+
}
|
|
5071
|
+
function W(k) {
|
|
5072
|
+
function C(B, q, z, K, O) {
|
|
5073
|
+
var I = B[q], Y = Q(I);
|
|
5074
|
+
if (Y !== "object")
|
|
5075
|
+
return new v("Invalid " + K + " `" + O + "` of type `" + Y + "` " + ("supplied to `" + z + "`, expected `object`."));
|
|
5076
|
+
var Z = t({}, B[q], k);
|
|
5077
|
+
for (var R in Z) {
|
|
5078
|
+
var le = k[R];
|
|
5079
|
+
if (r(k, R) && typeof le != "function")
|
|
5080
|
+
return E(z, K, O, R, X(le));
|
|
5081
|
+
if (!le)
|
|
5082
5082
|
return new v(
|
|
5083
|
-
"Invalid " +
|
|
5083
|
+
"Invalid " + K + " `" + O + "` key `" + R + "` supplied to `" + z + "`.\nBad object: " + JSON.stringify(B[q], null, " ") + `
|
|
5084
5084
|
Valid keys: ` + JSON.stringify(Object.keys(k), null, " ")
|
|
5085
5085
|
);
|
|
5086
|
-
var $ =
|
|
5086
|
+
var $ = le(I, R, z, K, O + "." + R, n);
|
|
5087
5087
|
if ($)
|
|
5088
5088
|
return $;
|
|
5089
5089
|
}
|
|
5090
5090
|
return null;
|
|
5091
5091
|
}
|
|
5092
|
-
return _(
|
|
5092
|
+
return _(C);
|
|
5093
5093
|
}
|
|
5094
5094
|
function U(k) {
|
|
5095
5095
|
switch (typeof k) {
|
|
@@ -5104,17 +5104,17 @@ Valid keys: ` + JSON.stringify(Object.keys(k), null, " ")
|
|
|
5104
5104
|
return k.every(U);
|
|
5105
5105
|
if (k === null || o(k))
|
|
5106
5106
|
return !0;
|
|
5107
|
-
var
|
|
5108
|
-
if (
|
|
5109
|
-
var B =
|
|
5110
|
-
if (
|
|
5111
|
-
for (; !(
|
|
5112
|
-
if (!U(
|
|
5107
|
+
var C = l(k);
|
|
5108
|
+
if (C) {
|
|
5109
|
+
var B = C.call(k), q;
|
|
5110
|
+
if (C !== k.entries) {
|
|
5111
|
+
for (; !(q = B.next()).done; )
|
|
5112
|
+
if (!U(q.value))
|
|
5113
5113
|
return !1;
|
|
5114
5114
|
} else
|
|
5115
|
-
for (; !(
|
|
5116
|
-
var
|
|
5117
|
-
if (
|
|
5115
|
+
for (; !(q = B.next()).done; ) {
|
|
5116
|
+
var z = q.value;
|
|
5117
|
+
if (z && !U(z[1]))
|
|
5118
5118
|
return !1;
|
|
5119
5119
|
}
|
|
5120
5120
|
} else
|
|
@@ -5124,37 +5124,37 @@ Valid keys: ` + JSON.stringify(Object.keys(k), null, " ")
|
|
|
5124
5124
|
return !1;
|
|
5125
5125
|
}
|
|
5126
5126
|
}
|
|
5127
|
-
function
|
|
5128
|
-
return k === "symbol" ? !0 :
|
|
5127
|
+
function F(k, C) {
|
|
5128
|
+
return k === "symbol" ? !0 : C ? C["@@toStringTag"] === "Symbol" || typeof Symbol == "function" && C instanceof Symbol : !1;
|
|
5129
5129
|
}
|
|
5130
5130
|
function Q(k) {
|
|
5131
|
-
var
|
|
5132
|
-
return Array.isArray(k) ? "array" : k instanceof RegExp ? "object" :
|
|
5131
|
+
var C = typeof k;
|
|
5132
|
+
return Array.isArray(k) ? "array" : k instanceof RegExp ? "object" : F(C, k) ? "symbol" : C;
|
|
5133
5133
|
}
|
|
5134
5134
|
function X(k) {
|
|
5135
5135
|
if (typeof k > "u" || k === null)
|
|
5136
5136
|
return "" + k;
|
|
5137
|
-
var
|
|
5138
|
-
if (
|
|
5137
|
+
var C = Q(k);
|
|
5138
|
+
if (C === "object") {
|
|
5139
5139
|
if (k instanceof Date)
|
|
5140
5140
|
return "date";
|
|
5141
5141
|
if (k instanceof RegExp)
|
|
5142
5142
|
return "regexp";
|
|
5143
5143
|
}
|
|
5144
|
-
return
|
|
5144
|
+
return C;
|
|
5145
5145
|
}
|
|
5146
|
-
function
|
|
5147
|
-
var
|
|
5148
|
-
switch (
|
|
5146
|
+
function ne(k) {
|
|
5147
|
+
var C = X(k);
|
|
5148
|
+
switch (C) {
|
|
5149
5149
|
case "array":
|
|
5150
5150
|
case "object":
|
|
5151
|
-
return "an " +
|
|
5151
|
+
return "an " + C;
|
|
5152
5152
|
case "boolean":
|
|
5153
5153
|
case "date":
|
|
5154
5154
|
case "regexp":
|
|
5155
|
-
return "a " +
|
|
5155
|
+
return "a " + C;
|
|
5156
5156
|
default:
|
|
5157
|
-
return
|
|
5157
|
+
return C;
|
|
5158
5158
|
}
|
|
5159
5159
|
}
|
|
5160
5160
|
function fe(k) {
|
|
@@ -5164,7 +5164,7 @@ Valid keys: ` + JSON.stringify(Object.keys(k), null, " ")
|
|
|
5164
5164
|
}, tn;
|
|
5165
5165
|
}
|
|
5166
5166
|
var nn, yr;
|
|
5167
|
-
function
|
|
5167
|
+
function Pi() {
|
|
5168
5168
|
if (yr)
|
|
5169
5169
|
return nn;
|
|
5170
5170
|
yr = 1;
|
|
@@ -5214,11 +5214,11 @@ function Mi() {
|
|
|
5214
5214
|
}
|
|
5215
5215
|
if (process.env.NODE_ENV !== "production") {
|
|
5216
5216
|
var Ri = On, Ni = !0;
|
|
5217
|
-
yn.exports =
|
|
5217
|
+
yn.exports = Mi()(Ri.isElement, Ni);
|
|
5218
5218
|
} else
|
|
5219
|
-
yn.exports =
|
|
5219
|
+
yn.exports = Pi()();
|
|
5220
5220
|
var Ai = yn.exports;
|
|
5221
|
-
const ye = /* @__PURE__ */
|
|
5221
|
+
const ye = /* @__PURE__ */ Mn(Ai);
|
|
5222
5222
|
var Oi = ["sitekey", "onChange", "theme", "type", "tabindex", "onExpired", "onErrored", "size", "stoken", "grecaptcha", "badge", "hl", "isolated"];
|
|
5223
5223
|
function wn() {
|
|
5224
5224
|
return wn = Object.assign ? Object.assign.bind() : function(e) {
|
|
@@ -5409,7 +5409,7 @@ function da(e, t, n) {
|
|
|
5409
5409
|
return e;
|
|
5410
5410
|
}
|
|
5411
5411
|
var Hi = da;
|
|
5412
|
-
const Wi = /* @__PURE__ */
|
|
5412
|
+
const Wi = /* @__PURE__ */ Mn(Hi);
|
|
5413
5413
|
function kn() {
|
|
5414
5414
|
return kn = Object.assign || function(e) {
|
|
5415
5415
|
for (var t = 1; t < arguments.length; t++) {
|
|
@@ -5468,14 +5468,14 @@ function Ki(e, t) {
|
|
|
5468
5468
|
this.asyncScriptLoaderHandleLoad(y);
|
|
5469
5469
|
return;
|
|
5470
5470
|
}
|
|
5471
|
-
y.observers[h] = function(
|
|
5472
|
-
return l.asyncScriptLoaderHandleLoad(
|
|
5471
|
+
y.observers[h] = function(D) {
|
|
5472
|
+
return l.asyncScriptLoaderHandleLoad(D);
|
|
5473
5473
|
};
|
|
5474
5474
|
return;
|
|
5475
5475
|
}
|
|
5476
5476
|
var j = {};
|
|
5477
|
-
j[h] = function(
|
|
5478
|
-
return l.asyncScriptLoaderHandleLoad(
|
|
5477
|
+
j[h] = function(D) {
|
|
5478
|
+
return l.asyncScriptLoaderHandleLoad(D);
|
|
5479
5479
|
}, ke[m] = {
|
|
5480
5480
|
loaded: !1,
|
|
5481
5481
|
observers: j
|
|
@@ -5485,24 +5485,24 @@ function Ki(e, t) {
|
|
|
5485
5485
|
for (var x in t.attributes)
|
|
5486
5486
|
w.setAttribute(x, t.attributes[x]);
|
|
5487
5487
|
b && (w.id = b);
|
|
5488
|
-
var
|
|
5488
|
+
var P = function(G) {
|
|
5489
5489
|
if (ke[m]) {
|
|
5490
|
-
var N = ke[m],
|
|
5491
|
-
for (var
|
|
5492
|
-
|
|
5490
|
+
var N = ke[m], A = N.observers;
|
|
5491
|
+
for (var E in A)
|
|
5492
|
+
G(A[E]) && delete A[E];
|
|
5493
5493
|
}
|
|
5494
5494
|
};
|
|
5495
5495
|
_ && typeof window < "u" && (window[_] = function() {
|
|
5496
5496
|
return l.asyncScriptLoaderTriggerOnScriptLoaded();
|
|
5497
5497
|
}), w.onload = function() {
|
|
5498
|
-
var
|
|
5499
|
-
|
|
5500
|
-
return _ ? !1 : (
|
|
5498
|
+
var D = ke[m];
|
|
5499
|
+
D && (D.loaded = !0, P(function(G) {
|
|
5500
|
+
return _ ? !1 : (G(D), !0);
|
|
5501
5501
|
}));
|
|
5502
5502
|
}, w.onerror = function() {
|
|
5503
|
-
var
|
|
5504
|
-
|
|
5505
|
-
return
|
|
5503
|
+
var D = ke[m];
|
|
5504
|
+
D && (D.errored = !0, P(function(G) {
|
|
5505
|
+
return G(D), !0;
|
|
5506
5506
|
}));
|
|
5507
5507
|
}, document.body.appendChild(w);
|
|
5508
5508
|
}, d.componentWillUnmount = function() {
|
|
@@ -5728,7 +5728,7 @@ const Xi = Ki(Ji, {
|
|
|
5728
5728
|
const to = ({ className: e = "" }) => /* @__PURE__ */ a.jsxs(
|
|
5729
5729
|
"div",
|
|
5730
5730
|
{
|
|
5731
|
-
className:
|
|
5731
|
+
className: S("success-message", e),
|
|
5732
5732
|
"data-testid": "success-message",
|
|
5733
5733
|
children: [
|
|
5734
5734
|
/* @__PURE__ */ a.jsx("p", { className: "success-title", children: /* @__PURE__ */ a.jsx(xe, { id: "signup_success_title" }) }),
|
|
@@ -5756,7 +5756,7 @@ const no = {
|
|
|
5756
5756
|
loadRecaptcha: !1,
|
|
5757
5757
|
showSuccessMessage: !1,
|
|
5758
5758
|
showError: !1
|
|
5759
|
-
},
|
|
5759
|
+
}, Rc = ({
|
|
5760
5760
|
className: e = "",
|
|
5761
5761
|
functions: t = {
|
|
5762
5762
|
validateEmail: () => Promise.resolve(),
|
|
@@ -5777,7 +5777,7 @@ const no = {
|
|
|
5777
5777
|
dataToSubmit: s = { ref: "sign-up-form" },
|
|
5778
5778
|
...i
|
|
5779
5779
|
}) => {
|
|
5780
|
-
const c =
|
|
5780
|
+
const c = H(), [o, f] = Cn(Br, no), {
|
|
5781
5781
|
validFields: d,
|
|
5782
5782
|
emailDetails: u,
|
|
5783
5783
|
shouldManuallyApprove: l,
|
|
@@ -5787,14 +5787,14 @@ const no = {
|
|
|
5787
5787
|
"signup-this-session",
|
|
5788
5788
|
"functional-cookie-consent"
|
|
5789
5789
|
]), _ = {
|
|
5790
|
-
form:
|
|
5791
|
-
name:
|
|
5792
|
-
email:
|
|
5793
|
-
jobTitle:
|
|
5794
|
-
organisation:
|
|
5795
|
-
tc:
|
|
5796
|
-
recaptcha:
|
|
5797
|
-
hiddenValidation:
|
|
5790
|
+
form: L.createRef(),
|
|
5791
|
+
name: L.createRef(),
|
|
5792
|
+
email: L.createRef(),
|
|
5793
|
+
jobTitle: L.createRef(),
|
|
5794
|
+
organisation: L.createRef(),
|
|
5795
|
+
tc: L.createRef(),
|
|
5796
|
+
recaptcha: L.createRef(),
|
|
5797
|
+
hiddenValidation: L.createRef()
|
|
5798
5798
|
};
|
|
5799
5799
|
ie(() => {
|
|
5800
5800
|
l === !0 && _.jobTitle.current && _.jobTitle.current.focus();
|
|
@@ -5821,7 +5821,7 @@ const no = {
|
|
|
5821
5821
|
return n.successMessage && m ? /* @__PURE__ */ a.jsx(to, { className: e }) : /* @__PURE__ */ a.jsxs(
|
|
5822
5822
|
"fieldset",
|
|
5823
5823
|
{
|
|
5824
|
-
className:
|
|
5824
|
+
className: S("signup-form-fieldset", e),
|
|
5825
5825
|
"data-testid": "signup-form",
|
|
5826
5826
|
children: [
|
|
5827
5827
|
n.title && /* @__PURE__ */ a.jsx("p", { className: "signup-title", children: /* @__PURE__ */ a.jsx(xe, { id: "signup_title" }) }),
|
|
@@ -5895,10 +5895,10 @@ const no = {
|
|
|
5895
5895
|
);
|
|
5896
5896
|
};
|
|
5897
5897
|
let rn;
|
|
5898
|
-
const an = "contactFooter_",
|
|
5898
|
+
const an = "contactFooter_", Nc = ({ onSuccess: e = () => {
|
|
5899
5899
|
}, onFailure: t = () => {
|
|
5900
5900
|
} }) => {
|
|
5901
|
-
const n = me(null), [r, s] =
|
|
5901
|
+
const n = me(null), [r, s] = L.useState(0), [i, c] = L.useState(!1), o = () => {
|
|
5902
5902
|
n.current && s(n.current.clientHeight);
|
|
5903
5903
|
}, f = () => {
|
|
5904
5904
|
i || (c(!0), clearTimeout(rn), rn = setTimeout(() => {
|
|
@@ -5932,7 +5932,7 @@ const an = "contactFooter_", Ac = ({ onSuccess: e = () => {
|
|
|
5932
5932
|
}
|
|
5933
5933
|
)
|
|
5934
5934
|
] }) });
|
|
5935
|
-
},
|
|
5935
|
+
}, Ac = ({ activeLink: e, ...t }) => /* @__PURE__ */ a.jsx(ot, { children: /* @__PURE__ */ a.jsx(fi, { layout: "1-3", children: /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
|
|
5936
5936
|
/* @__PURE__ */ a.jsx(ci, { activeLink: e }),
|
|
5937
5937
|
/* @__PURE__ */ a.jsx(Us, { ...t })
|
|
5938
5938
|
] }) }) });
|
|
@@ -5941,7 +5941,7 @@ const sn = "cookieBanner_", on = [
|
|
|
5941
5941
|
"apolitical-performance-cookie-consent",
|
|
5942
5942
|
"functional-cookie-consent"
|
|
5943
5943
|
], cn = new Date(Date.now() + 12 * 30 * 24 * 60 * 60 * 1e3), ro = () => {
|
|
5944
|
-
const e =
|
|
5944
|
+
const e = H(), [t, n, r] = Fr(on), [s, i] = J(
|
|
5945
5945
|
!t["apol-cookie-banner"]
|
|
5946
5946
|
), c = () => {
|
|
5947
5947
|
on.forEach((u) => {
|
|
@@ -6126,7 +6126,7 @@ const Ze = "footer_", Tt = "SiteFooter", kr = ({ group: e }) => {
|
|
|
6126
6126
|
] }, `dl-${e}-${r}`)) })
|
|
6127
6127
|
] }, e);
|
|
6128
6128
|
}, ua = () => /* @__PURE__ */ a.jsx("div", { id: "footer", children: /* @__PURE__ */ a.jsxs("div", { className: "wrapper", children: [
|
|
6129
|
-
/* @__PURE__ */ a.jsx(
|
|
6129
|
+
/* @__PURE__ */ a.jsx(Pn, { element: "hr" }),
|
|
6130
6130
|
/* @__PURE__ */ a.jsx(
|
|
6131
6131
|
ta,
|
|
6132
6132
|
{
|
|
@@ -6354,7 +6354,7 @@ const Ze = "footer_", Tt = "SiteFooter", kr = ({ group: e }) => {
|
|
|
6354
6354
|
},
|
|
6355
6355
|
doTrack: i = null
|
|
6356
6356
|
}) => {
|
|
6357
|
-
const c =
|
|
6357
|
+
const c = H(), o = Lr(Et, e);
|
|
6358
6358
|
if (!o || o.onlyShow && (o.onlyShow === "logged-in" && !t || o.onlyShow === "logged-out" && t))
|
|
6359
6359
|
return null;
|
|
6360
6360
|
const f = "doTrack" in o, d = i === null ? f ? o.doTrack : !0 : i, u = e.includes("buttons.");
|
|
@@ -6410,7 +6410,7 @@ const Ze = "footer_", Tt = "SiteFooter", kr = ({ group: e }) => {
|
|
|
6410
6410
|
return /* @__PURE__ */ a.jsxs(
|
|
6411
6411
|
"li",
|
|
6412
6412
|
{
|
|
6413
|
-
className:
|
|
6413
|
+
className: S({
|
|
6414
6414
|
[o.className]: o.className,
|
|
6415
6415
|
"has-submenu": h,
|
|
6416
6416
|
parent: g,
|
|
@@ -6419,7 +6419,7 @@ const Ze = "footer_", Tt = "SiteFooter", kr = ({ group: e }) => {
|
|
|
6419
6419
|
role: "none",
|
|
6420
6420
|
..._,
|
|
6421
6421
|
children: [
|
|
6422
|
-
m ?
|
|
6422
|
+
m ? L.createElement(
|
|
6423
6423
|
u ? se : "a",
|
|
6424
6424
|
m,
|
|
6425
6425
|
c.formatMessage({ id: l })
|
|
@@ -6437,7 +6437,7 @@ const Ze = "footer_", Tt = "SiteFooter", kr = ({ group: e }) => {
|
|
|
6437
6437
|
return o[y].order ? /* @__PURE__ */ a.jsxs(
|
|
6438
6438
|
"li",
|
|
6439
6439
|
{
|
|
6440
|
-
className:
|
|
6440
|
+
className: S({
|
|
6441
6441
|
[o[y].className]: o[y].className
|
|
6442
6442
|
}),
|
|
6443
6443
|
children: [
|
|
@@ -6468,7 +6468,7 @@ const Ze = "footer_", Tt = "SiteFooter", kr = ({ group: e }) => {
|
|
|
6468
6468
|
);
|
|
6469
6469
|
};
|
|
6470
6470
|
const ao = { height: 67, height_desktop: 83 }, fa = ({ showNavigation: e = !0 }) => {
|
|
6471
|
-
const t =
|
|
6471
|
+
const t = H(), n = Ce(Ne), r = st(!0, !0), s = n && typeof n.id == "string", i = at(
|
|
6472
6472
|
() => de.getIsDesktopVersion(s, r),
|
|
6473
6473
|
[s, r]
|
|
6474
6474
|
), [c, o] = Cn(Br, {
|
|
@@ -6514,14 +6514,14 @@ const ao = { height: 67, height_desktop: 83 }, fa = ({ showNavigation: e = !0 })
|
|
|
6514
6514
|
"nav",
|
|
6515
6515
|
{
|
|
6516
6516
|
id: "header",
|
|
6517
|
-
className:
|
|
6517
|
+
className: S({
|
|
6518
6518
|
"logged-in": s,
|
|
6519
6519
|
"logged-out": !s,
|
|
6520
6520
|
visible: f
|
|
6521
6521
|
}),
|
|
6522
6522
|
children: [
|
|
6523
6523
|
/* @__PURE__ */ a.jsx(
|
|
6524
|
-
|
|
6524
|
+
ge,
|
|
6525
6525
|
{
|
|
6526
6526
|
element: "a",
|
|
6527
6527
|
href: "#content-of-page",
|
|
@@ -6542,7 +6542,7 @@ const ao = { height: 67, height_desktop: 83 }, fa = ({ showNavigation: e = !0 })
|
|
|
6542
6542
|
"aria-haspopup": "true",
|
|
6543
6543
|
"aria-expanded": d.navigation,
|
|
6544
6544
|
"aria-controls": "navigation",
|
|
6545
|
-
children: /* @__PURE__ */ a.jsx(
|
|
6545
|
+
children: /* @__PURE__ */ a.jsx(ge, { children: t.formatMessage({
|
|
6546
6546
|
id: `header_menu_${d.navigation ? "hide" : "show"}`
|
|
6547
6547
|
}) })
|
|
6548
6548
|
}
|
|
@@ -6579,7 +6579,7 @@ const ao = { height: 67, height_desktop: 83 }, fa = ({ showNavigation: e = !0 })
|
|
|
6579
6579
|
"aria-expanded": d.search,
|
|
6580
6580
|
"aria-controls": "search-form",
|
|
6581
6581
|
children: /* @__PURE__ */ a.jsx(
|
|
6582
|
-
|
|
6582
|
+
ge,
|
|
6583
6583
|
{
|
|
6584
6584
|
children: t.formatMessage({
|
|
6585
6585
|
id: `header_search_${d.search ? "hide" : "show"}`
|
|
@@ -6615,7 +6615,7 @@ const ao = { height: 67, height_desktop: 83 }, fa = ({ showNavigation: e = !0 })
|
|
|
6615
6615
|
"aria-expanded": d.account,
|
|
6616
6616
|
"aria-controls": "navigation",
|
|
6617
6617
|
children: [
|
|
6618
|
-
/* @__PURE__ */ a.jsx(
|
|
6618
|
+
/* @__PURE__ */ a.jsx(ge, { children: t.formatMessage({
|
|
6619
6619
|
id: `header_account_${d.account ? "hide" : "show"}`
|
|
6620
6620
|
}) }),
|
|
6621
6621
|
/* @__PURE__ */ a.jsx(
|
|
@@ -6636,15 +6636,15 @@ const ao = { height: 67, height_desktop: 83 }, fa = ({ showNavigation: e = !0 })
|
|
|
6636
6636
|
/* @__PURE__ */ a.jsx(
|
|
6637
6637
|
"div",
|
|
6638
6638
|
{
|
|
6639
|
-
className:
|
|
6639
|
+
className: S("overlay", {
|
|
6640
6640
|
open: d.navigation || d.account || !i.search && d.search
|
|
6641
6641
|
})
|
|
6642
6642
|
}
|
|
6643
6643
|
)
|
|
6644
6644
|
] });
|
|
6645
6645
|
};
|
|
6646
|
-
const ma = ({ element: e = "section", children: t, className: n, ...r }) =>
|
|
6647
|
-
className:
|
|
6646
|
+
const ma = ({ element: e = "section", children: t, className: n, ...r }) => L.createElement(e, {
|
|
6647
|
+
className: S("modal", n),
|
|
6648
6648
|
children: typeof t == "string" ? /* @__PURE__ */ a.jsx("p", { children: t }) : t,
|
|
6649
6649
|
...r
|
|
6650
6650
|
});
|
|
@@ -6663,18 +6663,18 @@ const pa = ({
|
|
|
6663
6663
|
className: u = "",
|
|
6664
6664
|
gtmContext: l = "Modal"
|
|
6665
6665
|
}) => {
|
|
6666
|
-
const m =
|
|
6666
|
+
const m = H(), [h, g] = J(t), v = (b) => {
|
|
6667
6667
|
g(b), b ? (s(), document.body.classList.add("has-overlay")) : (i(), document.body.classList.remove("has-overlay"));
|
|
6668
6668
|
};
|
|
6669
6669
|
ie(() => {
|
|
6670
6670
|
v(t);
|
|
6671
6671
|
}, [t]);
|
|
6672
6672
|
const _ = r ? { "--max-width": `${r / 16}rem` } : {};
|
|
6673
|
-
return /* @__PURE__ */ a.jsx("div", { className:
|
|
6673
|
+
return /* @__PURE__ */ a.jsx("div", { className: S("overlay", { open: h }), children: /* @__PURE__ */ a.jsx(
|
|
6674
6674
|
ma,
|
|
6675
6675
|
{
|
|
6676
6676
|
id: e,
|
|
6677
|
-
className:
|
|
6677
|
+
className: S("overlay-modal", u, { "has-max-width": r }),
|
|
6678
6678
|
hidden: !h,
|
|
6679
6679
|
style: _,
|
|
6680
6680
|
children: t && /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
|
|
@@ -6709,7 +6709,7 @@ const pa = ({
|
|
|
6709
6709
|
"aria-expanded": t,
|
|
6710
6710
|
"aria-controls": e
|
|
6711
6711
|
});
|
|
6712
|
-
const
|
|
6712
|
+
const Oc = ({
|
|
6713
6713
|
className: e,
|
|
6714
6714
|
showModal: t = !0,
|
|
6715
6715
|
title: n,
|
|
@@ -6729,7 +6729,7 @@ const Fc = ({
|
|
|
6729
6729
|
showDivider: !1,
|
|
6730
6730
|
showIcon: c,
|
|
6731
6731
|
functions: { onClose: o },
|
|
6732
|
-
className:
|
|
6732
|
+
className: S("invite-modal", e, { success: !!n }),
|
|
6733
6733
|
children: /* @__PURE__ */ a.jsx(
|
|
6734
6734
|
ji,
|
|
6735
6735
|
{
|
|
@@ -6744,7 +6744,7 @@ const Fc = ({
|
|
|
6744
6744
|
}
|
|
6745
6745
|
);
|
|
6746
6746
|
const io = () => {
|
|
6747
|
-
const e =
|
|
6747
|
+
const e = H();
|
|
6748
6748
|
return /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
|
|
6749
6749
|
/* @__PURE__ */ a.jsx(fa, {}),
|
|
6750
6750
|
/* @__PURE__ */ a.jsx("div", { id: "content", children: /* @__PURE__ */ a.jsx(
|
|
@@ -6778,12 +6778,12 @@ const io = () => {
|
|
|
6778
6778
|
"div",
|
|
6779
6779
|
{
|
|
6780
6780
|
id: "wrapper",
|
|
6781
|
-
className:
|
|
6781
|
+
className: S(c, b, { "has-footer": d }),
|
|
6782
6782
|
children: [
|
|
6783
6783
|
/* @__PURE__ */ a.jsx(fa, { showNavigation: f }),
|
|
6784
6784
|
/* @__PURE__ */ a.jsxs("section", { id: "content-wrapper", children: [
|
|
6785
6785
|
v && /* @__PURE__ */ a.jsx("div", { className: "additional-content prepended", children: v }),
|
|
6786
|
-
|
|
6786
|
+
L.createElement(u === "bold" ? ma : "div", {
|
|
6787
6787
|
id: "content",
|
|
6788
6788
|
children: g
|
|
6789
6789
|
})
|
|
@@ -6825,7 +6825,7 @@ const io = () => {
|
|
|
6825
6825
|
return ln[e] ? (e = ln[e], { id: e, text: `${Tr.default}${e}` }) : null;
|
|
6826
6826
|
}
|
|
6827
6827
|
};
|
|
6828
|
-
const
|
|
6828
|
+
const Fc = ({
|
|
6829
6829
|
tags: e = [],
|
|
6830
6830
|
color: t = "default",
|
|
6831
6831
|
forceOneLine: n = !1,
|
|
@@ -6834,7 +6834,7 @@ const Lc = ({
|
|
|
6834
6834
|
gtmType: i = "tag-click",
|
|
6835
6835
|
gtmContext: c = "tags"
|
|
6836
6836
|
}) => {
|
|
6837
|
-
const o =
|
|
6837
|
+
const o = H();
|
|
6838
6838
|
if (!e || e.length < 1)
|
|
6839
6839
|
return null;
|
|
6840
6840
|
const f = [];
|
|
@@ -6846,7 +6846,7 @@ const Lc = ({
|
|
|
6846
6846
|
}), f.length < 1 ? null : /* @__PURE__ */ a.jsx(
|
|
6847
6847
|
"ul",
|
|
6848
6848
|
{
|
|
6849
|
-
className:
|
|
6849
|
+
className: S("tags text-small", t, s, {
|
|
6850
6850
|
"one-line": n
|
|
6851
6851
|
}),
|
|
6852
6852
|
children: f.map((d) => {
|
|
@@ -6865,7 +6865,7 @@ const Lc = ({
|
|
|
6865
6865
|
}
|
|
6866
6866
|
);
|
|
6867
6867
|
};
|
|
6868
|
-
const
|
|
6868
|
+
const Lc = ({
|
|
6869
6869
|
members: { data: e = [], total: t = e.length },
|
|
6870
6870
|
hasNextPage: n = !1,
|
|
6871
6871
|
loadNextPage: r = () => {
|
|
@@ -6874,8 +6874,8 @@ const Dc = ({
|
|
|
6874
6874
|
gtmType: i = "member-click",
|
|
6875
6875
|
className: c = ""
|
|
6876
6876
|
}) => {
|
|
6877
|
-
const o =
|
|
6878
|
-
return e.length === 0 ? null : /* @__PURE__ */ a.jsxs("div", { className:
|
|
6877
|
+
const o = H();
|
|
6878
|
+
return e.length === 0 ? null : /* @__PURE__ */ a.jsxs("div", { className: S("members-list", c), children: [
|
|
6879
6879
|
/* @__PURE__ */ a.jsxs("h1", { children: [
|
|
6880
6880
|
o.formatMessage({ id: "membersList" }),
|
|
6881
6881
|
/* @__PURE__ */ a.jsx("span", { className: "count", children: t })
|
|
@@ -6929,8 +6929,8 @@ const be = "discussion_form_", In = ({
|
|
|
6929
6929
|
},
|
|
6930
6930
|
gtmContext: d = "DiscussionForm"
|
|
6931
6931
|
}) => {
|
|
6932
|
-
var
|
|
6933
|
-
const u =
|
|
6932
|
+
var A, E, ee;
|
|
6933
|
+
const u = H(), l = Ce(Ne), [m, h] = J(
|
|
6934
6934
|
n.isEditing && n.isEditing.text || ""
|
|
6935
6935
|
), [g, v] = J(o.error || !1), [_, b] = J(!1), y = me(null);
|
|
6936
6936
|
if (r || (r = y), n.isLoading)
|
|
@@ -6941,30 +6941,30 @@ const be = "discussion_form_", In = ({
|
|
|
6941
6941
|
"data-testid": "loading-placeholder"
|
|
6942
6942
|
}
|
|
6943
6943
|
);
|
|
6944
|
-
const j = (
|
|
6945
|
-
const U =
|
|
6944
|
+
const j = (W) => {
|
|
6945
|
+
const U = W.target.value;
|
|
6946
6946
|
h(U);
|
|
6947
|
-
let
|
|
6948
|
-
!l || !l.id ?
|
|
6947
|
+
let F;
|
|
6948
|
+
!l || !l.id ? F = Se(
|
|
6949
6949
|
u.formatMessage,
|
|
6950
6950
|
`${be}error_loggedOut`,
|
|
6951
6951
|
e.type,
|
|
6952
6952
|
"action"
|
|
6953
|
-
) : t ? U.length >= i && (
|
|
6953
|
+
) : t ? U.length >= i && (F = `${be}error_tooLong`) : F = Se(
|
|
6954
6954
|
u.formatMessage,
|
|
6955
6955
|
`${be}error_noPermission`,
|
|
6956
6956
|
e.type,
|
|
6957
6957
|
"action"
|
|
6958
|
-
),
|
|
6958
|
+
), F ? v(F) : g && v(!1);
|
|
6959
6959
|
};
|
|
6960
6960
|
let w = `${e.type}-form`;
|
|
6961
6961
|
if (e.type === "response" || e.type === "reply") {
|
|
6962
|
-
const
|
|
6963
|
-
|
|
6962
|
+
const W = ((A = e.slugs) == null ? void 0 : A.reply) || ((E = e.slugs) == null ? void 0 : E.answer) || ((ee = e.slugs) == null ? void 0 : ee.question) || "";
|
|
6963
|
+
W && (w = `${w}-${W.slice(-15)}`);
|
|
6964
6964
|
}
|
|
6965
|
-
const x = async (
|
|
6966
|
-
var
|
|
6967
|
-
if (
|
|
6965
|
+
const x = async (W) => {
|
|
6966
|
+
var F;
|
|
6967
|
+
if (W.preventDefault(), W.stopPropagation(), !l || !l.id || !t || D)
|
|
6968
6968
|
return;
|
|
6969
6969
|
_t && clearTimeout(_t), b("submitting");
|
|
6970
6970
|
const U = window.location.pathname;
|
|
@@ -6978,7 +6978,7 @@ const be = "discussion_form_", In = ({
|
|
|
6978
6978
|
Q = await f.create({
|
|
6979
6979
|
title: m,
|
|
6980
6980
|
authorId: l && l.id,
|
|
6981
|
-
...(
|
|
6981
|
+
...(F = f.props) == null ? void 0 : F.create
|
|
6982
6982
|
});
|
|
6983
6983
|
break;
|
|
6984
6984
|
case "response":
|
|
@@ -6999,29 +6999,29 @@ const be = "discussion_form_", In = ({
|
|
|
6999
6999
|
await gs(1e3), f.callback && await f.callback(Q), _t = setTimeout(() => {
|
|
7000
7000
|
h(""), b("submitted");
|
|
7001
7001
|
const X = new Event("discussionFormSubmitted");
|
|
7002
|
-
document.dispatchEvent(X),
|
|
7002
|
+
document.dispatchEvent(X), P();
|
|
7003
7003
|
}, 500);
|
|
7004
7004
|
} catch (Q) {
|
|
7005
7005
|
const X = Q;
|
|
7006
|
-
let
|
|
7007
|
-
X != null && X.message.includes("entry already exists") && (
|
|
7006
|
+
let ne = `${be}error`;
|
|
7007
|
+
X != null && X.message.includes("entry already exists") && (ne = Se(
|
|
7008
7008
|
u.formatMessage,
|
|
7009
7009
|
`${be}error_alreadyExists`,
|
|
7010
7010
|
e.type,
|
|
7011
7011
|
"action"
|
|
7012
|
-
)), X != null && X.message.includes("429") ?
|
|
7012
|
+
)), X != null && X.message.includes("429") ? ne = Se(
|
|
7013
7013
|
u.formatMessage,
|
|
7014
7014
|
`${be}error_tooMany`,
|
|
7015
7015
|
e.type,
|
|
7016
7016
|
"action"
|
|
7017
|
-
) : X != null && X.message.includes("400") && (
|
|
7017
|
+
) : X != null && X.message.includes("400") && (ne = `${be}error`), v(ne), P();
|
|
7018
7018
|
}
|
|
7019
|
-
},
|
|
7019
|
+
}, P = () => {
|
|
7020
7020
|
_t = setTimeout(() => {
|
|
7021
7021
|
v(!1), b(!1);
|
|
7022
7022
|
}, 5e3);
|
|
7023
|
-
},
|
|
7024
|
-
return (n.isEditing && !
|
|
7023
|
+
}, D = !m || !js(m), G = _ === "submitting", N = [];
|
|
7024
|
+
return (n.isEditing && !G || o.cancel) && N.push({
|
|
7025
7025
|
variant: "secondary",
|
|
7026
7026
|
size: { mobile: "small", 600: "medium" },
|
|
7027
7027
|
onClick: f.handleCancel,
|
|
@@ -7033,28 +7033,28 @@ const be = "discussion_form_", In = ({
|
|
|
7033
7033
|
}), N.push({
|
|
7034
7034
|
variant: "primary",
|
|
7035
7035
|
size: { mobile: "small", 600: "medium" },
|
|
7036
|
-
onClick: (
|
|
7036
|
+
onClick: (W) => {
|
|
7037
7037
|
if (n.isEditing) {
|
|
7038
7038
|
b("submitting"), f.handleSaveEdit && f.handleSaveEdit(
|
|
7039
7039
|
y.current && "value" in y.current ? y.current.value : ""
|
|
7040
7040
|
);
|
|
7041
7041
|
return;
|
|
7042
7042
|
}
|
|
7043
|
-
x(
|
|
7043
|
+
x(W);
|
|
7044
7044
|
},
|
|
7045
7045
|
className: "gtm-trackable",
|
|
7046
7046
|
"data-gtm-event-context": d,
|
|
7047
7047
|
"data-gtm-event-type": `${n.isEditing ? "save" : "submit"}-${e.type}-click`,
|
|
7048
7048
|
"data-testid": "save-button",
|
|
7049
|
-
disabled: !l || !l.id || !t ||
|
|
7049
|
+
disabled: !l || !l.id || !t || D || G || n.isEditing && m === n.isEditing.text,
|
|
7050
7050
|
children: u.formatMessage({
|
|
7051
|
-
id: `${be}${
|
|
7051
|
+
id: `${be}${G ? n.isEditing ? "saving" : "posting" : n.isEditing ? "save" : "post"}`
|
|
7052
7052
|
})
|
|
7053
7053
|
}), /* @__PURE__ */ a.jsxs(
|
|
7054
7054
|
"form",
|
|
7055
7055
|
{
|
|
7056
7056
|
id: w,
|
|
7057
|
-
className:
|
|
7057
|
+
className: S("discussion-card discussion-form", {
|
|
7058
7058
|
"no-styling": n.isInWrapper && n.isEditing
|
|
7059
7059
|
}),
|
|
7060
7060
|
"data-testid": `discussion-${e.type}-form`,
|
|
@@ -7068,7 +7068,7 @@ const be = "discussion_form_", In = ({
|
|
|
7068
7068
|
gtmType: "profile-click"
|
|
7069
7069
|
}
|
|
7070
7070
|
),
|
|
7071
|
-
/* @__PURE__ */ a.jsx(
|
|
7071
|
+
/* @__PURE__ */ a.jsx(ge, { element: "label", showOnFocus: !1, htmlFor: `${w}-input`, children: Se(u.formatMessage, `${be}label`, e.type, "action") }),
|
|
7072
7072
|
/* @__PURE__ */ a.jsx(
|
|
7073
7073
|
ns,
|
|
7074
7074
|
{
|
|
@@ -7091,7 +7091,7 @@ const be = "discussion_form_", In = ({
|
|
|
7091
7091
|
}
|
|
7092
7092
|
),
|
|
7093
7093
|
/* @__PURE__ */ a.jsx("small", { children: Se(u.formatMessage, `${be}explainer`, e.type, "action", {
|
|
7094
|
-
a: (
|
|
7094
|
+
a: (W) => /* @__PURE__ */ a.jsx(
|
|
7095
7095
|
"a",
|
|
7096
7096
|
{
|
|
7097
7097
|
href: "https://about.apolitical.co/q-and-a-community-guidelines",
|
|
@@ -7100,7 +7100,7 @@ const be = "discussion_form_", In = ({
|
|
|
7100
7100
|
"data-gtm-event-context": d,
|
|
7101
7101
|
"data-gtm-event-type": "community-guidelines-link",
|
|
7102
7102
|
rel: "noreferrer",
|
|
7103
|
-
children:
|
|
7103
|
+
children: W
|
|
7104
7104
|
}
|
|
7105
7105
|
)
|
|
7106
7106
|
}) }),
|
|
@@ -7175,7 +7175,7 @@ const dn = () => {
|
|
|
7175
7175
|
}, deleteLike: f = () => {
|
|
7176
7176
|
} } = {}
|
|
7177
7177
|
}) => {
|
|
7178
|
-
const d =
|
|
7178
|
+
const d = H();
|
|
7179
7179
|
ie(() => {
|
|
7180
7180
|
h(s);
|
|
7181
7181
|
}, [s]);
|
|
@@ -7195,8 +7195,8 @@ const dn = () => {
|
|
|
7195
7195
|
x < 0 && (x = 0), v(!0), l(x), h(!m);
|
|
7196
7196
|
try {
|
|
7197
7197
|
if (i && i.slugs) {
|
|
7198
|
-
const
|
|
7199
|
-
m ? await f(
|
|
7198
|
+
const P = fo(i.slugs);
|
|
7199
|
+
m ? await f(P) : await o(P, { contentPath: window.location.pathname });
|
|
7200
7200
|
}
|
|
7201
7201
|
} catch {
|
|
7202
7202
|
l(t), h(s);
|
|
@@ -7204,8 +7204,8 @@ const dn = () => {
|
|
|
7204
7204
|
v(!1);
|
|
7205
7205
|
}
|
|
7206
7206
|
};
|
|
7207
|
-
return
|
|
7208
|
-
className:
|
|
7207
|
+
return L.createElement(e, {
|
|
7208
|
+
className: S("likes-wrapper text-medium action-button", {
|
|
7209
7209
|
"show-spinner": g,
|
|
7210
7210
|
"is-liked": m,
|
|
7211
7211
|
disabled: !c
|
|
@@ -7230,7 +7230,7 @@ const dn = () => {
|
|
|
7230
7230
|
variant: "tertiary",
|
|
7231
7231
|
size: "medium",
|
|
7232
7232
|
icon: { icon: m ? "heart" : "heart_empty", animate: "bounce" },
|
|
7233
|
-
className:
|
|
7233
|
+
className: S({ "do-animation": m && !s }),
|
|
7234
7234
|
screenreaderText: c ? d.formatMessage(
|
|
7235
7235
|
{
|
|
7236
7236
|
id: `discussion_likes_${m ? "unlike" : "like"}`
|
|
@@ -7252,7 +7252,7 @@ const dn = () => {
|
|
|
7252
7252
|
/* @__PURE__ */ a.jsx(
|
|
7253
7253
|
"span",
|
|
7254
7254
|
{
|
|
7255
|
-
className:
|
|
7255
|
+
className: S("number-of-likes", { "no-likes": u === 0 }),
|
|
7256
7256
|
"data-testid": "number-of-likes",
|
|
7257
7257
|
children: d.formatMessage(
|
|
7258
7258
|
{ id: `discussion_likes${r ? "_short" : ""}` },
|
|
@@ -7267,7 +7267,7 @@ const dn = () => {
|
|
|
7267
7267
|
href: x.id ? `/profiles/${x.id}` : void 0,
|
|
7268
7268
|
gtmContext: "Likes",
|
|
7269
7269
|
gtmType: "liked-name-click",
|
|
7270
|
-
onClick: (
|
|
7270
|
+
onClick: (P) => P == null ? void 0 : P.stopPropagation(),
|
|
7271
7271
|
children: x.name
|
|
7272
7272
|
}
|
|
7273
7273
|
) }, x.id || window.btoa(x.name))),
|
|
@@ -7282,7 +7282,7 @@ const dn = () => {
|
|
|
7282
7282
|
const t = {};
|
|
7283
7283
|
return Object.keys(e).forEach((n) => n.includes("Id") ? t[n] = e[n] : t[`${n}Slug`] = e[n]), t;
|
|
7284
7284
|
}, Ot = (e, t) => e && !t;
|
|
7285
|
-
const
|
|
7285
|
+
const Pe = "discussion_", ho = 280, Ft = ({
|
|
7286
7286
|
element: e = "div",
|
|
7287
7287
|
content: t,
|
|
7288
7288
|
userHasPermissions: n = !0,
|
|
@@ -7312,74 +7312,71 @@ const Me = "discussion_", ho = 280, Ft = ({
|
|
|
7312
7312
|
children: v,
|
|
7313
7313
|
isTruncated: _ = !1
|
|
7314
7314
|
}) => {
|
|
7315
|
-
const b =
|
|
7315
|
+
const b = H(), y = Ce(Ne), j = Ce(Bn), { author: w, canLike: x, createdAt: P, id: D, likes: G = 0, userLiked: N, comments: A = 0 } = t, E = y && y.id && typeof w != "string" && w.id && w.id === y.id || !1, ee = typeof x == "boolean" ? x : n ? !E : !1, W = E && (!t.createdAt || hs(t.createdAt, 10, "seconds")), U = me(null), [F, Q] = J({
|
|
7316
7316
|
body: t && t.body || "",
|
|
7317
7317
|
isEditing: !1,
|
|
7318
7318
|
didEdit: t && t.isEdited || !1
|
|
7319
|
-
}), [X,
|
|
7320
|
-
|
|
7319
|
+
}), [X, ne] = J(!1), [fe, k] = J(
|
|
7320
|
+
W ? "highlighted" : "default"
|
|
7321
7321
|
/* Default */
|
|
7322
|
-
), [
|
|
7322
|
+
), [C, B] = J("");
|
|
7323
7323
|
ie(() => {
|
|
7324
|
-
const
|
|
7325
|
-
if (!(!
|
|
7326
|
-
return document.addEventListener("discussionFormSubmitted",
|
|
7327
|
-
document.removeEventListener("discussionFormSubmitted",
|
|
7324
|
+
const R = U.current;
|
|
7325
|
+
if (!(!R || fe === "default"))
|
|
7326
|
+
return document.addEventListener("discussionFormSubmitted", q), R.addEventListener("transitionend", z), () => {
|
|
7327
|
+
document.removeEventListener("discussionFormSubmitted", q), R.removeEventListener("transitionend", z);
|
|
7328
7328
|
};
|
|
7329
7329
|
}, []), ie(() => {
|
|
7330
7330
|
Q({
|
|
7331
|
-
...
|
|
7331
|
+
...F,
|
|
7332
7332
|
body: t && t.body || "",
|
|
7333
7333
|
didEdit: t && t.isEdited || !1
|
|
7334
7334
|
});
|
|
7335
7335
|
}, [t.isEdited]);
|
|
7336
|
-
const
|
|
7336
|
+
const q = () => {
|
|
7337
7337
|
setTimeout(() => {
|
|
7338
7338
|
k(
|
|
7339
7339
|
"fading"
|
|
7340
7340
|
/* Fading */
|
|
7341
7341
|
);
|
|
7342
7342
|
}, 1e3);
|
|
7343
|
-
},
|
|
7344
|
-
|
|
7343
|
+
}, z = ({ propertyName: R }) => {
|
|
7344
|
+
R === "background-color" && k((le) => (le === "default" && (document.removeEventListener("discussionFormSubmitted", q), U.current && U.current.removeEventListener("transitionend", z)), le === "fading" ? "default" : le));
|
|
7345
7345
|
};
|
|
7346
7346
|
if (r || !t || t.type === "answer" && (!t.slugs || !t.slugs.question))
|
|
7347
7347
|
return /* @__PURE__ */ a.jsx(Te, { className: "discussion-card discussion-post" });
|
|
7348
|
-
const
|
|
7349
|
-
|
|
7348
|
+
const K = _ ? Ue(F.body, ho) : F.body, O = async (R) => {
|
|
7349
|
+
R || (R = ""), B("");
|
|
7350
7350
|
try {
|
|
7351
|
-
if (!rs(
|
|
7352
|
-
const
|
|
7353
|
-
await f(Er(t.slugs),
|
|
7351
|
+
if (!rs(R, F.body)) {
|
|
7352
|
+
const le = t.type === "question" ? { title: R } : { body: R };
|
|
7353
|
+
await f(Er(t.slugs), le);
|
|
7354
7354
|
}
|
|
7355
|
-
Q({ body:
|
|
7355
|
+
Q({ body: R, isEditing: !1, didEdit: !0 });
|
|
7356
7356
|
} catch {
|
|
7357
|
-
B(`${
|
|
7357
|
+
B(`${Pe}form_error`);
|
|
7358
7358
|
}
|
|
7359
7359
|
}, I = () => {
|
|
7360
7360
|
j && j.updateConversation && j.updateConversation({ showForm: !0 }), setTimeout(() => {
|
|
7361
7361
|
var $e, Ee, Le;
|
|
7362
|
-
const
|
|
7363
|
-
|
|
7362
|
+
const le = `reply-form-${(t.type === "answer" ? t.slug : (($e = t.slugs) == null ? void 0 : $e.reply) || ((Ee = t.slugs) == null ? void 0 : Ee.answer) || ((Le = t.slugs) == null ? void 0 : Le.question) || "").toLowerCase().slice(-15)}`, $ = document.getElementById(le), _e = document.getElementById(`${le}-input`);
|
|
7363
|
+
_e && _e.focus(), $ && $.scrollIntoView({ behavior: "smooth" });
|
|
7364
7364
|
}, 0);
|
|
7365
|
-
},
|
|
7366
|
-
|
|
7365
|
+
}, Y = () => {
|
|
7366
|
+
ne(!1);
|
|
7367
7367
|
try {
|
|
7368
7368
|
o(Er(t.slugs));
|
|
7369
7369
|
} catch {
|
|
7370
7370
|
B("delete-error");
|
|
7371
7371
|
}
|
|
7372
|
-
},
|
|
7372
|
+
}, Z = [
|
|
7373
7373
|
{
|
|
7374
|
-
text: b.formatMessage({ id: `${
|
|
7375
|
-
onClick: (C) => {
|
|
7376
|
-
C.stopPropagation();
|
|
7377
|
-
},
|
|
7374
|
+
text: b.formatMessage({ id: `${Pe}moreMenu_report` }),
|
|
7378
7375
|
href: `mailto:community@apolitical.co?subject=${encodeURI(
|
|
7379
|
-
b.formatMessage({ id: `${
|
|
7376
|
+
b.formatMessage({ id: `${Pe}report_subject` })
|
|
7380
7377
|
)}&body=${encodeURI(
|
|
7381
7378
|
b.formatMessage(
|
|
7382
|
-
{ id: `${
|
|
7379
|
+
{ id: `${Pe}report_body` },
|
|
7383
7380
|
{
|
|
7384
7381
|
contentType: t.type || "",
|
|
7385
7382
|
contentSlug: t.slug || "",
|
|
@@ -7390,19 +7387,19 @@ const Me = "discussion_", ho = 280, Ft = ({
|
|
|
7390
7387
|
icon: "flag"
|
|
7391
7388
|
}
|
|
7392
7389
|
];
|
|
7393
|
-
return n &&
|
|
7390
|
+
return n && E && Z.push(
|
|
7394
7391
|
{
|
|
7395
|
-
text: b.formatMessage({ id: `${
|
|
7396
|
-
onClick: () => Q({ ...
|
|
7392
|
+
text: b.formatMessage({ id: `${Pe}moreMenu_edit` }),
|
|
7393
|
+
onClick: () => Q({ ...F, isEditing: !0 }),
|
|
7397
7394
|
icon: "pencil-paper",
|
|
7398
7395
|
className: "gtm-trackable",
|
|
7399
7396
|
"data-gtm-event-context": g,
|
|
7400
7397
|
"data-gtm-event-type": `edit-${t.type}-click`
|
|
7401
7398
|
},
|
|
7402
7399
|
{
|
|
7403
|
-
text: b.formatMessage({ id: `${
|
|
7404
|
-
onClick: (
|
|
7405
|
-
|
|
7400
|
+
text: b.formatMessage({ id: `${Pe}moreMenu_delete` }),
|
|
7401
|
+
onClick: (R) => {
|
|
7402
|
+
R.preventDefault(), R.stopPropagation(), ne(!0);
|
|
7406
7403
|
},
|
|
7407
7404
|
icon: "trash",
|
|
7408
7405
|
className: "gtm-trackable",
|
|
@@ -7410,8 +7407,8 @@ const Me = "discussion_", ho = 280, Ft = ({
|
|
|
7410
7407
|
"data-gtm-event-type": `delete-${t.type}-click`,
|
|
7411
7408
|
...so(`delete-${t.slug}-modal`, X)
|
|
7412
7409
|
}
|
|
7413
|
-
),
|
|
7414
|
-
className:
|
|
7410
|
+
), L.createElement(e, {
|
|
7411
|
+
className: S("discussion-post", h, {
|
|
7415
7412
|
[fe]: !h || !h.includes("highlighted-text-box")
|
|
7416
7413
|
}),
|
|
7417
7414
|
ref: U,
|
|
@@ -7420,26 +7417,26 @@ const Me = "discussion_", ho = 280, Ft = ({
|
|
|
7420
7417
|
/* @__PURE__ */ a.jsxs(
|
|
7421
7418
|
"div",
|
|
7422
7419
|
{
|
|
7423
|
-
id:
|
|
7424
|
-
className:
|
|
7425
|
-
editing:
|
|
7426
|
-
"has-link": m.post && !
|
|
7420
|
+
id: D || t.slug,
|
|
7421
|
+
className: S("discussion-card", t.type, {
|
|
7422
|
+
editing: F.isEditing,
|
|
7423
|
+
"has-link": m.post && !F.isEditing
|
|
7427
7424
|
}),
|
|
7428
|
-
onClick: (
|
|
7429
|
-
!m.post ||
|
|
7425
|
+
onClick: (R) => {
|
|
7426
|
+
!m.post || F.isEditing || (R.preventDefault(), R.stopPropagation(), window.location.href = m.post);
|
|
7430
7427
|
},
|
|
7431
7428
|
children: [
|
|
7432
|
-
!
|
|
7429
|
+
!F.isEditing && /* @__PURE__ */ a.jsx(
|
|
7433
7430
|
An,
|
|
7434
7431
|
{
|
|
7435
7432
|
member: w,
|
|
7436
|
-
additionalContent: { createdAt:
|
|
7433
|
+
additionalContent: { createdAt: P, didEdit: F.didEdit },
|
|
7437
7434
|
className: typeof w != "string" && w.id === s ? "highlighted" : "",
|
|
7438
7435
|
gtmContext: g,
|
|
7439
7436
|
gtmType: "profile-click"
|
|
7440
7437
|
}
|
|
7441
7438
|
),
|
|
7442
|
-
|
|
7439
|
+
F.isEditing ? /* @__PURE__ */ a.jsx(
|
|
7443
7440
|
In,
|
|
7444
7441
|
{
|
|
7445
7442
|
content: { type: t.type, slugs: t.slugs },
|
|
@@ -7447,12 +7444,12 @@ const Me = "discussion_", ho = 280, Ft = ({
|
|
|
7447
7444
|
meta: {
|
|
7448
7445
|
isLoading: r,
|
|
7449
7446
|
isInWrapper: !0,
|
|
7450
|
-
isEditing: { text:
|
|
7447
|
+
isEditing: { text: F.body }
|
|
7451
7448
|
},
|
|
7452
7449
|
maxLength: t.type === "question" ? 250 : 5e4,
|
|
7453
7450
|
forceShow: {
|
|
7454
|
-
error:
|
|
7455
|
-
{ id:
|
|
7451
|
+
error: C !== "" && C !== "delete-error" ? b.formatMessage(
|
|
7452
|
+
{ id: C },
|
|
7456
7453
|
{
|
|
7457
7454
|
action: b.formatMessage({
|
|
7458
7455
|
id: `discussion_action_${t.type}`
|
|
@@ -7462,9 +7459,9 @@ const Me = "discussion_", ho = 280, Ft = ({
|
|
|
7462
7459
|
},
|
|
7463
7460
|
functions: {
|
|
7464
7461
|
create: c,
|
|
7465
|
-
handleSaveEdit:
|
|
7462
|
+
handleSaveEdit: O,
|
|
7466
7463
|
handleCancel: () => {
|
|
7467
|
-
B(""), Q({ ...
|
|
7464
|
+
B(""), Q({ ...F, isEditing: !1 });
|
|
7468
7465
|
}
|
|
7469
7466
|
},
|
|
7470
7467
|
gtmContext: `${g}Form`
|
|
@@ -7476,31 +7473,31 @@ const Me = "discussion_", ho = 280, Ft = ({
|
|
|
7476
7473
|
className: "gtm-trackable",
|
|
7477
7474
|
"data-gtm-event-context": g,
|
|
7478
7475
|
"data-gtm-event-type": "title-click",
|
|
7479
|
-
children: /* @__PURE__ */ a.jsx(cr, { options: { overrides: { a: Zs } }, children:
|
|
7476
|
+
children: /* @__PURE__ */ a.jsx(cr, { options: { overrides: { a: Zs } }, children: K })
|
|
7480
7477
|
}
|
|
7481
7478
|
) : /* @__PURE__ */ a.jsx(
|
|
7482
7479
|
cr,
|
|
7483
7480
|
{
|
|
7484
7481
|
options: {
|
|
7485
|
-
wrapper: t.type === "question" ? "h1" :
|
|
7482
|
+
wrapper: t.type === "question" ? "h1" : L.Fragment,
|
|
7486
7483
|
forceWrapper: t.type === "question",
|
|
7487
7484
|
forceInline: t.type === "question",
|
|
7488
7485
|
forceBlock: t.type !== "question"
|
|
7489
7486
|
},
|
|
7490
|
-
children:
|
|
7487
|
+
children: K
|
|
7491
7488
|
}
|
|
7492
7489
|
),
|
|
7493
|
-
!
|
|
7490
|
+
!F.isEditing && /* @__PURE__ */ a.jsxs(
|
|
7494
7491
|
"ul",
|
|
7495
7492
|
{
|
|
7496
|
-
className:
|
|
7493
|
+
className: S("actions text-medium", t.type),
|
|
7497
7494
|
"data-testid": `${t.type}-actions`,
|
|
7498
7495
|
children: [
|
|
7499
7496
|
/* @__PURE__ */ a.jsx(
|
|
7500
7497
|
po,
|
|
7501
7498
|
{
|
|
7502
7499
|
element: "li",
|
|
7503
|
-
likes:
|
|
7500
|
+
likes: G,
|
|
7504
7501
|
isShort: !1,
|
|
7505
7502
|
userLiked: N,
|
|
7506
7503
|
content: { type: t.type, slugs: t.slugs },
|
|
@@ -7516,8 +7513,8 @@ const Me = "discussion_", ho = 280, Ft = ({
|
|
|
7516
7513
|
"li",
|
|
7517
7514
|
{
|
|
7518
7515
|
className: "action-button",
|
|
7519
|
-
onClick: (
|
|
7520
|
-
|
|
7516
|
+
onClick: (R) => {
|
|
7517
|
+
R.preventDefault(), R.stopPropagation(), m.comments && (window.location.href = m.comments), typeof l == "function" && l();
|
|
7521
7518
|
},
|
|
7522
7519
|
children: [
|
|
7523
7520
|
/* @__PURE__ */ a.jsx(
|
|
@@ -7533,14 +7530,14 @@ const Me = "discussion_", ho = 280, Ft = ({
|
|
|
7533
7530
|
"data-gtm-event-context": g,
|
|
7534
7531
|
"data-gtm-event-type": `answer-${t.type}-click`,
|
|
7535
7532
|
screenreaderText: b.formatMessage(
|
|
7536
|
-
{ id: `${
|
|
7537
|
-
{ count:
|
|
7533
|
+
{ id: `${Pe}comments_screenReader` },
|
|
7534
|
+
{ count: A }
|
|
7538
7535
|
)
|
|
7539
7536
|
}
|
|
7540
7537
|
),
|
|
7541
7538
|
/* @__PURE__ */ a.jsx("span", { children: b.formatMessage(
|
|
7542
|
-
{ id: `${
|
|
7543
|
-
{ count:
|
|
7539
|
+
{ id: `${Pe}comments` },
|
|
7540
|
+
{ count: A }
|
|
7544
7541
|
) })
|
|
7545
7542
|
]
|
|
7546
7543
|
}
|
|
@@ -7552,7 +7549,7 @@ const Me = "discussion_", ho = 280, Ft = ({
|
|
|
7552
7549
|
size: "medium",
|
|
7553
7550
|
styling: { muted: !0 },
|
|
7554
7551
|
onClick: I,
|
|
7555
|
-
children: b.formatMessage({ id: `${
|
|
7552
|
+
children: b.formatMessage({ id: `${Pe}reply` })
|
|
7556
7553
|
}
|
|
7557
7554
|
) }),
|
|
7558
7555
|
/* @__PURE__ */ a.jsx(
|
|
@@ -7560,7 +7557,7 @@ const Me = "discussion_", ho = 280, Ft = ({
|
|
|
7560
7557
|
{
|
|
7561
7558
|
element: "li",
|
|
7562
7559
|
id: `more-${t.slug}`,
|
|
7563
|
-
options:
|
|
7560
|
+
options: Z
|
|
7564
7561
|
}
|
|
7565
7562
|
)
|
|
7566
7563
|
]
|
|
@@ -7576,9 +7573,9 @@ const Me = "discussion_", ho = 280, Ft = ({
|
|
|
7576
7573
|
id: `delete-${t.slug}-modal`,
|
|
7577
7574
|
isOpen: X,
|
|
7578
7575
|
functions: { onOpen: () => {
|
|
7579
|
-
}, onClose: () =>
|
|
7576
|
+
}, onClose: () => ne(!1) },
|
|
7580
7577
|
forceShow: {
|
|
7581
|
-
error:
|
|
7578
|
+
error: C === "delete-error" ? b.formatMessage(
|
|
7582
7579
|
{ id: "discussion_delete_error" },
|
|
7583
7580
|
{
|
|
7584
7581
|
action: b.formatMessage({
|
|
@@ -7594,13 +7591,13 @@ const Me = "discussion_", ho = 280, Ft = ({
|
|
|
7594
7591
|
buttons: [
|
|
7595
7592
|
{
|
|
7596
7593
|
variant: "secondary",
|
|
7597
|
-
onClick: () =>
|
|
7594
|
+
onClick: () => ne(!1),
|
|
7598
7595
|
children: b.formatMessage({ id: "discussion_delete_cancel" })
|
|
7599
7596
|
},
|
|
7600
7597
|
{
|
|
7601
7598
|
variant: "primary",
|
|
7602
7599
|
className: "destructive",
|
|
7603
|
-
onClick:
|
|
7600
|
+
onClick: Y,
|
|
7604
7601
|
children: b.formatMessage({ id: "discussion_delete_delete" })
|
|
7605
7602
|
}
|
|
7606
7603
|
],
|
|
@@ -7610,7 +7607,7 @@ const Me = "discussion_", ho = 280, Ft = ({
|
|
|
7610
7607
|
{
|
|
7611
7608
|
id: "discussion_delete_text",
|
|
7612
7609
|
values: {
|
|
7613
|
-
p: (
|
|
7610
|
+
p: (R) => /* @__PURE__ */ a.jsx("p", { children: R }),
|
|
7614
7611
|
action: b.formatMessage({
|
|
7615
7612
|
id: `discussion_action_${t.type}`
|
|
7616
7613
|
})
|
|
@@ -7622,17 +7619,17 @@ const Me = "discussion_", ho = 280, Ft = ({
|
|
|
7622
7619
|
] })
|
|
7623
7620
|
});
|
|
7624
7621
|
};
|
|
7625
|
-
const fn = "discussion_responses_",
|
|
7626
|
-
const n =
|
|
7627
|
-
return
|
|
7628
|
-
/* @__PURE__ */ a.jsx("
|
|
7622
|
+
const fn = "discussion_responses_", Dc = ({ type: e = "answer", responses: t = 0 }) => {
|
|
7623
|
+
const n = H();
|
|
7624
|
+
return /* @__PURE__ */ a.jsxs("div", { className: "responses-heading", children: [
|
|
7625
|
+
/* @__PURE__ */ a.jsx("h3", { children: n.formatMessage(
|
|
7629
7626
|
{ id: `${fn}title` },
|
|
7630
7627
|
{ action: n.formatMessage({ id: `${fn}${e}` }), count: t }
|
|
7631
7628
|
) }),
|
|
7632
7629
|
t === 0 && /* @__PURE__ */ a.jsx("p", { children: Se(n.formatMessage, `${fn}empty`, e, e) })
|
|
7633
7630
|
] });
|
|
7634
7631
|
};
|
|
7635
|
-
const
|
|
7632
|
+
const go = ({
|
|
7636
7633
|
loadMore: { isLoading: e, hasNextPage: t, loadNextPage: n } = {
|
|
7637
7634
|
isLoading: !1,
|
|
7638
7635
|
hasNextPage: !1,
|
|
@@ -7642,7 +7639,7 @@ const _o = ({
|
|
|
7642
7639
|
form: r,
|
|
7643
7640
|
children: s
|
|
7644
7641
|
}) => {
|
|
7645
|
-
const i =
|
|
7642
|
+
const i = H(), c = Ce(Bn), o = yt(s, {
|
|
7646
7643
|
element: "li"
|
|
7647
7644
|
});
|
|
7648
7645
|
return /* @__PURE__ */ a.jsxs("div", { className: "thread-wrapper", children: [
|
|
@@ -7663,7 +7660,7 @@ const _o = ({
|
|
|
7663
7660
|
),
|
|
7664
7661
|
r && c.showForm && /* @__PURE__ */ a.jsx(In, { ...r })
|
|
7665
7662
|
] });
|
|
7666
|
-
},
|
|
7663
|
+
}, _o = "post", vo = "reply", ga = "00000000-0000-0000-0000-000000000000";
|
|
7667
7664
|
function qn({ queryClient: e, queryKey: t }) {
|
|
7668
7665
|
function n(r, s, i) {
|
|
7669
7666
|
e.setQueryData(t, i);
|
|
@@ -7678,7 +7675,7 @@ function zn({ queryClient: e, queryKey: t }) {
|
|
|
7678
7675
|
}
|
|
7679
7676
|
return n;
|
|
7680
7677
|
}
|
|
7681
|
-
function
|
|
7678
|
+
function bo() {
|
|
7682
7679
|
return {
|
|
7683
7680
|
latest_reactions: {
|
|
7684
7681
|
like: [],
|
|
@@ -7694,7 +7691,7 @@ function yo() {
|
|
|
7694
7691
|
}
|
|
7695
7692
|
};
|
|
7696
7693
|
}
|
|
7697
|
-
function
|
|
7694
|
+
function yo() {
|
|
7698
7695
|
return {
|
|
7699
7696
|
latest_children: {
|
|
7700
7697
|
like: [],
|
|
@@ -7722,19 +7719,19 @@ function _a(e) {
|
|
|
7722
7719
|
}
|
|
7723
7720
|
};
|
|
7724
7721
|
}
|
|
7725
|
-
function
|
|
7722
|
+
function xo({ content: e }) {
|
|
7726
7723
|
return {
|
|
7727
7724
|
content: e,
|
|
7728
7725
|
id: ga,
|
|
7729
7726
|
time: (/* @__PURE__ */ new Date()).toISOString(),
|
|
7730
|
-
verb:
|
|
7727
|
+
verb: _o
|
|
7731
7728
|
};
|
|
7732
7729
|
}
|
|
7733
7730
|
function Sr({ activity: e, user: t }) {
|
|
7734
7731
|
return {
|
|
7735
7732
|
...e,
|
|
7736
7733
|
actor: _a(t),
|
|
7737
|
-
...
|
|
7734
|
+
...bo()
|
|
7738
7735
|
};
|
|
7739
7736
|
}
|
|
7740
7737
|
function Ct({ activity: e, reaction: t }) {
|
|
@@ -7763,14 +7760,14 @@ function va({ activity: e, user: t }) {
|
|
|
7763
7760
|
like: (((s = e.own_reactions) == null ? void 0 : s.like) || []).filter(({ user_id: i }) => i !== t.id)
|
|
7764
7761
|
});
|
|
7765
7762
|
}
|
|
7766
|
-
function
|
|
7763
|
+
function wo({ activityId: e, replyId: t, content: n }) {
|
|
7767
7764
|
return {
|
|
7768
7765
|
activity_id: e,
|
|
7769
7766
|
data: {
|
|
7770
7767
|
content: n
|
|
7771
7768
|
},
|
|
7772
7769
|
id: ga,
|
|
7773
|
-
kind:
|
|
7770
|
+
kind: vo,
|
|
7774
7771
|
parent: t || ""
|
|
7775
7772
|
};
|
|
7776
7773
|
}
|
|
@@ -7780,7 +7777,7 @@ function Cr({ reply: e, user: t }) {
|
|
|
7780
7777
|
...e,
|
|
7781
7778
|
user_id: n.id,
|
|
7782
7779
|
user: n,
|
|
7783
|
-
...
|
|
7780
|
+
...yo()
|
|
7784
7781
|
};
|
|
7785
7782
|
}
|
|
7786
7783
|
function $r({ reply: e, reaction: t }) {
|
|
@@ -7796,7 +7793,7 @@ function $r({ reply: e, reaction: t }) {
|
|
|
7796
7793
|
like: (n = e.children_counts) != null && n.like ? e.children_counts.like + 1 : 1
|
|
7797
7794
|
};
|
|
7798
7795
|
}
|
|
7799
|
-
function
|
|
7796
|
+
function jo({ reply: e, user: t }) {
|
|
7800
7797
|
var n, r, s;
|
|
7801
7798
|
e.children_counts = {
|
|
7802
7799
|
...e.children_counts || {},
|
|
@@ -7815,7 +7812,7 @@ const ba = (e) => {
|
|
|
7815
7812
|
});
|
|
7816
7813
|
document.dispatchEvent(t);
|
|
7817
7814
|
};
|
|
7818
|
-
let
|
|
7815
|
+
let Mr, mn = 0;
|
|
7819
7816
|
const ya = () => {
|
|
7820
7817
|
ie(() => (document.addEventListener("discussionPostAdded", e), () => {
|
|
7821
7818
|
document.removeEventListener(
|
|
@@ -7827,13 +7824,13 @@ const ya = () => {
|
|
|
7827
7824
|
const n = t.detail;
|
|
7828
7825
|
if (!n)
|
|
7829
7826
|
return;
|
|
7830
|
-
clearTimeout(
|
|
7827
|
+
clearTimeout(Mr);
|
|
7831
7828
|
const r = document.getElementById(n);
|
|
7832
7829
|
if (r) {
|
|
7833
7830
|
r.scrollIntoView({ behavior: "smooth", block: "start" }), mn = 0;
|
|
7834
7831
|
return;
|
|
7835
7832
|
}
|
|
7836
|
-
mn++, !(mn > 10) && (
|
|
7833
|
+
mn++, !(mn > 10) && (Mr = setTimeout(() => {
|
|
7837
7834
|
e(t);
|
|
7838
7835
|
}, 50));
|
|
7839
7836
|
};
|
|
@@ -7865,7 +7862,7 @@ const ya = () => {
|
|
|
7865
7862
|
object: "comment",
|
|
7866
7863
|
time: "2023-11-24T17:52:36.162000",
|
|
7867
7864
|
verb: "post"
|
|
7868
|
-
}),
|
|
7865
|
+
}), ko = Object.freeze({
|
|
7869
7866
|
actor: `SU:${Fe.id}`,
|
|
7870
7867
|
content: "some content 2",
|
|
7871
7868
|
duration: "5.53ms",
|
|
@@ -7875,7 +7872,7 @@ const ya = () => {
|
|
|
7875
7872
|
object: "comment",
|
|
7876
7873
|
time: "2023-11-24T17:54:36.162000",
|
|
7877
7874
|
verb: "post"
|
|
7878
|
-
}),
|
|
7875
|
+
}), To = Object.freeze({
|
|
7879
7876
|
actor: `SU:${He.id}`,
|
|
7880
7877
|
content: "some content 3",
|
|
7881
7878
|
duration: "5.53ms",
|
|
@@ -7885,7 +7882,7 @@ const ya = () => {
|
|
|
7885
7882
|
object: "comment",
|
|
7886
7883
|
time: "2023-11-24T17:56:36.162000",
|
|
7887
7884
|
verb: "post"
|
|
7888
|
-
}),
|
|
7885
|
+
}), Eo = Object.freeze({
|
|
7889
7886
|
actor: `SU:${Fe.id}`,
|
|
7890
7887
|
content: "some content 4",
|
|
7891
7888
|
duration: "5.53ms",
|
|
@@ -7948,7 +7945,7 @@ Object.freeze({
|
|
|
7948
7945
|
updated_at: "2023-08-31T07:11:38.677184Z"
|
|
7949
7946
|
},
|
|
7950
7947
|
kind: "reply",
|
|
7951
|
-
activity_id:
|
|
7948
|
+
activity_id: ko.id,
|
|
7952
7949
|
data: {
|
|
7953
7950
|
content: "Some content 2..."
|
|
7954
7951
|
},
|
|
@@ -7968,7 +7965,7 @@ Object.freeze({
|
|
|
7968
7965
|
updated_at: "2023-08-31T07:11:38.677184Z"
|
|
7969
7966
|
},
|
|
7970
7967
|
kind: "reply",
|
|
7971
|
-
activity_id:
|
|
7968
|
+
activity_id: To.id,
|
|
7972
7969
|
data: {
|
|
7973
7970
|
content: "Some content 3..."
|
|
7974
7971
|
},
|
|
@@ -7988,7 +7985,7 @@ Object.freeze({
|
|
|
7988
7985
|
updated_at: "2023-08-31T07:11:38.677184Z"
|
|
7989
7986
|
},
|
|
7990
7987
|
kind: "reply",
|
|
7991
|
-
activity_id:
|
|
7988
|
+
activity_id: Eo.id,
|
|
7992
7989
|
data: {
|
|
7993
7990
|
content: "Some content 4..."
|
|
7994
7991
|
},
|
|
@@ -7996,7 +7993,7 @@ Object.freeze({
|
|
|
7996
7993
|
latest_children: {},
|
|
7997
7994
|
children_counts: {}
|
|
7998
7995
|
});
|
|
7999
|
-
function
|
|
7996
|
+
function So({
|
|
8000
7997
|
mutationFn: e,
|
|
8001
7998
|
mutationHandlers: { mutate: t, error: n },
|
|
8002
7999
|
queryClient: r,
|
|
@@ -8006,20 +8003,20 @@ function Co({
|
|
|
8006
8003
|
const { mutate: c } = we({
|
|
8007
8004
|
mutationFn: e,
|
|
8008
8005
|
onMutate: (o) => t((f) => {
|
|
8009
|
-
const d = Sr({ activity:
|
|
8010
|
-
return
|
|
8006
|
+
const d = Sr({ activity: xo(o), user: i });
|
|
8007
|
+
return Pr(d, f);
|
|
8011
8008
|
}),
|
|
8012
8009
|
onError: n,
|
|
8013
8010
|
onSuccess: (o, f, d) => {
|
|
8014
8011
|
const u = Sr({ activity: o, user: i });
|
|
8015
|
-
r.setQueryData(s,
|
|
8012
|
+
r.setQueryData(s, Pr(u, d, !0)), setTimeout(() => {
|
|
8016
8013
|
ba(u.id);
|
|
8017
8014
|
}, 0);
|
|
8018
8015
|
}
|
|
8019
8016
|
});
|
|
8020
8017
|
return c;
|
|
8021
8018
|
}
|
|
8022
|
-
function
|
|
8019
|
+
function Co({
|
|
8023
8020
|
mutationFn: e,
|
|
8024
8021
|
mutationHandlers: {
|
|
8025
8022
|
mutate: t,
|
|
@@ -8036,7 +8033,7 @@ function $o({
|
|
|
8036
8033
|
});
|
|
8037
8034
|
return r;
|
|
8038
8035
|
}
|
|
8039
|
-
function
|
|
8036
|
+
function $o({
|
|
8040
8037
|
queryFns: {
|
|
8041
8038
|
create: e,
|
|
8042
8039
|
edit: t,
|
|
@@ -8054,7 +8051,7 @@ function Po({
|
|
|
8054
8051
|
},
|
|
8055
8052
|
user: f,
|
|
8056
8053
|
...d
|
|
8057
|
-
}, l =
|
|
8054
|
+
}, l = So({ ...u, mutationFn: e }), m = Co({ ...u, mutationFn: t }), h = Mo({ ...u, mutationFn: n }), g = Ro({ ...u, mutationFn: s }), v = No({ ...u, mutationFn: i }), { activities: _, ...b } = Po({ queryKey: c, queryFn: r });
|
|
8058
8055
|
return {
|
|
8059
8056
|
activities: _,
|
|
8060
8057
|
mutations: {
|
|
@@ -8091,7 +8088,7 @@ function Mo({
|
|
|
8091
8088
|
});
|
|
8092
8089
|
return i;
|
|
8093
8090
|
}
|
|
8094
|
-
function
|
|
8091
|
+
function Po({ queryFn: e, queryKey: t }) {
|
|
8095
8092
|
const {
|
|
8096
8093
|
data: n,
|
|
8097
8094
|
error: r,
|
|
@@ -8105,14 +8102,14 @@ function Ro({ queryFn: e, queryKey: t }) {
|
|
|
8105
8102
|
getNextPageParam: (o) => (o == null ? void 0 : o.next) || null
|
|
8106
8103
|
});
|
|
8107
8104
|
return {
|
|
8108
|
-
activities:
|
|
8105
|
+
activities: Oo(n),
|
|
8109
8106
|
error: r,
|
|
8110
8107
|
isLoading: s,
|
|
8111
8108
|
hasNextPage: i,
|
|
8112
8109
|
fetchNextPage: c
|
|
8113
8110
|
};
|
|
8114
8111
|
}
|
|
8115
|
-
function
|
|
8112
|
+
function Ro({
|
|
8116
8113
|
mutationFn: e,
|
|
8117
8114
|
mutationHandlers: {
|
|
8118
8115
|
mutate: t,
|
|
@@ -8121,12 +8118,12 @@ function No({
|
|
|
8121
8118
|
}) {
|
|
8122
8119
|
const { mutate: r } = we({
|
|
8123
8120
|
mutationFn: e,
|
|
8124
|
-
onMutate: ({ activityId: s }) => t((i) =>
|
|
8121
|
+
onMutate: ({ activityId: s }) => t((i) => Ao(s, i)),
|
|
8125
8122
|
onError: n
|
|
8126
8123
|
});
|
|
8127
8124
|
return r;
|
|
8128
8125
|
}
|
|
8129
|
-
function
|
|
8126
|
+
function No({
|
|
8130
8127
|
mutationFn: e,
|
|
8131
8128
|
mutationHandlers: {
|
|
8132
8129
|
mutate: t,
|
|
@@ -8144,7 +8141,7 @@ function Ao({
|
|
|
8144
8141
|
});
|
|
8145
8142
|
return s;
|
|
8146
8143
|
}
|
|
8147
|
-
function
|
|
8144
|
+
function Pr(e, t, n = !1) {
|
|
8148
8145
|
return t ? (n ? t.pages[0].results[0] = e : t.pages[0].results = [e, ...t.pages[0].results], t) : {
|
|
8149
8146
|
pages: [{
|
|
8150
8147
|
next: "",
|
|
@@ -8161,7 +8158,7 @@ function $t(e, t) {
|
|
|
8161
8158
|
return r;
|
|
8162
8159
|
}
|
|
8163
8160
|
}
|
|
8164
|
-
function
|
|
8161
|
+
function Ao(e, t) {
|
|
8165
8162
|
for (const { results: n } of t.pages) {
|
|
8166
8163
|
const r = n.findIndex(({ id: s }) => s === e);
|
|
8167
8164
|
if (r !== -1) {
|
|
@@ -8171,7 +8168,7 @@ function Oo(e, t) {
|
|
|
8171
8168
|
}
|
|
8172
8169
|
return t;
|
|
8173
8170
|
}
|
|
8174
|
-
function
|
|
8171
|
+
function Oo(e) {
|
|
8175
8172
|
var t;
|
|
8176
8173
|
return ((t = e == null ? void 0 : e.pages) == null ? void 0 : t.reduce((n, { results: r }) => [...n, ...r], [])) || [];
|
|
8177
8174
|
}
|
|
@@ -8181,7 +8178,7 @@ const Ic = ({
|
|
|
8181
8178
|
isMember: n,
|
|
8182
8179
|
functions: { activities: r, join: s, leave: i }
|
|
8183
8180
|
}) => {
|
|
8184
|
-
const c =
|
|
8181
|
+
const c = H(), {
|
|
8185
8182
|
activities: o,
|
|
8186
8183
|
error: f,
|
|
8187
8184
|
fetchNextPage: d,
|
|
@@ -8189,14 +8186,11 @@ const Ic = ({
|
|
|
8189
8186
|
isLoading: l,
|
|
8190
8187
|
mutations: { create: m, edit: h, remove: g, like: v, unlike: _ },
|
|
8191
8188
|
user: b
|
|
8192
|
-
} =
|
|
8189
|
+
} = $o({
|
|
8193
8190
|
queryKey: [e, t, "activities"],
|
|
8194
8191
|
queryFns: r
|
|
8195
8192
|
});
|
|
8196
|
-
|
|
8197
|
-
return /* @__PURE__ */ a.jsx(We, { variant: "error", text: f.message });
|
|
8198
|
-
const y = (o == null ? void 0 : o.length) || 0;
|
|
8199
|
-
return /* @__PURE__ */ a.jsxs("section", { children: [
|
|
8193
|
+
return ya(), f ? /* @__PURE__ */ a.jsx(We, { variant: "error", text: f.message }) : /* @__PURE__ */ a.jsxs("section", { children: [
|
|
8200
8194
|
/* @__PURE__ */ a.jsx(
|
|
8201
8195
|
ha,
|
|
8202
8196
|
{
|
|
@@ -8214,63 +8208,62 @@ const Ic = ({
|
|
|
8214
8208
|
}
|
|
8215
8209
|
}
|
|
8216
8210
|
),
|
|
8217
|
-
o == null ? void 0 : o.map((
|
|
8218
|
-
var
|
|
8211
|
+
o == null ? void 0 : o.map((y) => {
|
|
8212
|
+
var W, U, F, Q, X, ne, fe;
|
|
8219
8213
|
const {
|
|
8220
|
-
id:
|
|
8221
|
-
own_reactions:
|
|
8222
|
-
latest_reactions:
|
|
8223
|
-
reaction_counts:
|
|
8224
|
-
} =
|
|
8225
|
-
var
|
|
8214
|
+
id: j,
|
|
8215
|
+
own_reactions: w,
|
|
8216
|
+
latest_reactions: x,
|
|
8217
|
+
reaction_counts: P
|
|
8218
|
+
} = y, D = (((W = x == null ? void 0 : x.like) == null ? void 0 : W.length) || 0) > 0, G = (((U = w == null ? void 0 : w.like) == null ? void 0 : U.length) || 0) > 0, N = G ? w == null ? void 0 : w.like[0].id : "", A = D ? (F = x == null ? void 0 : x.like) == null ? void 0 : F.map((k) => {
|
|
8219
|
+
var C, B, q;
|
|
8226
8220
|
return {
|
|
8227
|
-
id: (
|
|
8228
|
-
name: (
|
|
8221
|
+
id: (C = k == null ? void 0 : k.user) == null ? void 0 : C.id,
|
|
8222
|
+
name: (q = (B = k == null ? void 0 : k.user) == null ? void 0 : B.data) == null ? void 0 : q.name
|
|
8229
8223
|
};
|
|
8230
|
-
}) : !1,
|
|
8224
|
+
}) : !1, E = y == null ? void 0 : y.actor, ee = (E == null ? void 0 : E.id) === (b == null ? void 0 : b.id);
|
|
8231
8225
|
return /* @__PURE__ */ a.jsxs(tt, { children: [
|
|
8232
8226
|
/* @__PURE__ */ a.jsx(
|
|
8233
8227
|
Ft,
|
|
8234
8228
|
{
|
|
8235
8229
|
content: {
|
|
8236
8230
|
type: "post",
|
|
8237
|
-
body:
|
|
8238
|
-
canLike: Ot(n,
|
|
8239
|
-
createdAt: (
|
|
8231
|
+
body: y == null ? void 0 : y.content,
|
|
8232
|
+
canLike: Ot(n, ee),
|
|
8233
|
+
createdAt: (y == null ? void 0 : y.time) || "",
|
|
8240
8234
|
slugs: {
|
|
8241
8235
|
question: `${e}/${t}`,
|
|
8242
|
-
answer:
|
|
8236
|
+
answer: j
|
|
8243
8237
|
},
|
|
8244
|
-
slug:
|
|
8238
|
+
slug: j,
|
|
8245
8239
|
author: {
|
|
8246
|
-
id:
|
|
8247
|
-
name: (
|
|
8248
|
-
organization: (
|
|
8249
|
-
jobTitle: (
|
|
8250
|
-
location: (S = A == null ? void 0 : A.data) == null ? void 0 : S.location,
|
|
8240
|
+
id: E == null ? void 0 : E.id,
|
|
8241
|
+
name: (Q = E == null ? void 0 : E.data) == null ? void 0 : Q.name,
|
|
8242
|
+
organization: (X = E == null ? void 0 : E.data) == null ? void 0 : X.organization,
|
|
8243
|
+
jobTitle: (ne = E == null ? void 0 : E.data) == null ? void 0 : ne.jobTitle,
|
|
8251
8244
|
image: {
|
|
8252
|
-
thumbnail: ((
|
|
8245
|
+
thumbnail: ((fe = E == null ? void 0 : E.data) == null ? void 0 : fe.thumbnail) || void 0
|
|
8253
8246
|
}
|
|
8254
8247
|
},
|
|
8255
|
-
userLiked:
|
|
8256
|
-
likes: (
|
|
8257
|
-
comments: (
|
|
8258
|
-
peopleWhoLiked:
|
|
8248
|
+
userLiked: G,
|
|
8249
|
+
likes: (P == null ? void 0 : P.like) || 0,
|
|
8250
|
+
comments: (P == null ? void 0 : P.reply) || 0,
|
|
8251
|
+
peopleWhoLiked: A
|
|
8259
8252
|
},
|
|
8260
8253
|
links: {
|
|
8261
|
-
post: `${e}/${t}/${
|
|
8262
|
-
comments: `${e}/${t}/${
|
|
8254
|
+
post: `${e}/${t}/${j}`,
|
|
8255
|
+
comments: `${e}/${t}/${j}`
|
|
8263
8256
|
},
|
|
8264
8257
|
functions: {
|
|
8265
8258
|
content: {
|
|
8266
8259
|
createContent: () => null,
|
|
8267
|
-
deleteContent: () => g({ activityId:
|
|
8260
|
+
deleteContent: () => g({ activityId: j }),
|
|
8268
8261
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
8269
|
-
updateContent: (
|
|
8262
|
+
updateContent: (k, { body: C }) => h({ activityId: j, content: C })
|
|
8270
8263
|
},
|
|
8271
8264
|
likes: {
|
|
8272
|
-
createLike: () => v({ activityId:
|
|
8273
|
-
deleteLike: () => _({ activityId:
|
|
8265
|
+
createLike: () => v({ activityId: j }),
|
|
8266
|
+
deleteLike: () => _({ activityId: j, reactionId: N })
|
|
8274
8267
|
},
|
|
8275
8268
|
comments: {
|
|
8276
8269
|
openComments: () => null
|
|
@@ -8279,8 +8272,8 @@ const Ic = ({
|
|
|
8279
8272
|
isTruncated: !0
|
|
8280
8273
|
}
|
|
8281
8274
|
),
|
|
8282
|
-
|
|
8283
|
-
] },
|
|
8275
|
+
/* @__PURE__ */ a.jsx(Oe, {})
|
|
8276
|
+
] }, j);
|
|
8284
8277
|
}),
|
|
8285
8278
|
!l && /* @__PURE__ */ a.jsx(
|
|
8286
8279
|
Nt,
|
|
@@ -8847,7 +8840,7 @@ const Ic = ({
|
|
|
8847
8840
|
],
|
|
8848
8841
|
duration: "6.48ms"
|
|
8849
8842
|
};
|
|
8850
|
-
function
|
|
8843
|
+
function Fo({
|
|
8851
8844
|
mutationFn: e,
|
|
8852
8845
|
mutationHandlers: { mutate: t, error: n },
|
|
8853
8846
|
queryClient: r,
|
|
@@ -8857,7 +8850,7 @@ function Lo({
|
|
|
8857
8850
|
const { mutate: c } = we({
|
|
8858
8851
|
mutationFn: e,
|
|
8859
8852
|
onMutate: (o) => t((f) => {
|
|
8860
|
-
const d = Cr({ reply:
|
|
8853
|
+
const d = Cr({ reply: wo(o), user: i });
|
|
8861
8854
|
return Rr(d, f, {
|
|
8862
8855
|
replace: !1,
|
|
8863
8856
|
append: (o == null ? void 0 : o.replyId) !== void 0
|
|
@@ -8876,7 +8869,7 @@ function Lo({
|
|
|
8876
8869
|
});
|
|
8877
8870
|
return c;
|
|
8878
8871
|
}
|
|
8879
|
-
function
|
|
8872
|
+
function Lo({
|
|
8880
8873
|
mutationFn: e,
|
|
8881
8874
|
mutationHandlers: {
|
|
8882
8875
|
mutate: t,
|
|
@@ -8886,7 +8879,7 @@ function Do({
|
|
|
8886
8879
|
const { mutate: r } = we({
|
|
8887
8880
|
mutationFn: e,
|
|
8888
8881
|
onMutate: ({ replyId: s, content: i }) => t((c) => {
|
|
8889
|
-
const o =
|
|
8882
|
+
const o = Mt(s, c);
|
|
8890
8883
|
return o && (o.data.content = i), c;
|
|
8891
8884
|
}),
|
|
8892
8885
|
onError: n
|
|
@@ -8911,7 +8904,7 @@ function wa({
|
|
|
8911
8904
|
},
|
|
8912
8905
|
user: f,
|
|
8913
8906
|
...d
|
|
8914
|
-
}, l =
|
|
8907
|
+
}, l = Fo({ ...u, mutationFn: e }), m = Lo({ ...u, mutationFn: t }), h = Do({ ...u, mutationFn: n }), g = Bo({ ...u, mutationFn: s }), v = qo({ ...u, mutationFn: i }), { replies: _, ...b } = Io({ queryKey: c, queryFn: r });
|
|
8915
8908
|
return {
|
|
8916
8909
|
replies: _,
|
|
8917
8910
|
mutations: {
|
|
@@ -8925,7 +8918,7 @@ function wa({
|
|
|
8925
8918
|
...b
|
|
8926
8919
|
};
|
|
8927
8920
|
}
|
|
8928
|
-
function
|
|
8921
|
+
function Do({
|
|
8929
8922
|
mutationFn: e,
|
|
8930
8923
|
mutationHandlers: {
|
|
8931
8924
|
mutate: t,
|
|
@@ -8937,18 +8930,18 @@ function Io({
|
|
|
8937
8930
|
const { mutate: i } = we({
|
|
8938
8931
|
mutationFn: e,
|
|
8939
8932
|
onMutate: ({ replyId: c }) => t((o) => {
|
|
8940
|
-
const f =
|
|
8933
|
+
const f = Mt(c, o);
|
|
8941
8934
|
return f && $r({ reply: f }), o;
|
|
8942
8935
|
}),
|
|
8943
8936
|
onError: n,
|
|
8944
8937
|
onSuccess: (c, { replyId: o }, f) => {
|
|
8945
|
-
const d =
|
|
8938
|
+
const d = Mt(o, f);
|
|
8946
8939
|
d && $r({ reply: d, reaction: c }), r.setQueryData(s, f);
|
|
8947
8940
|
}
|
|
8948
8941
|
});
|
|
8949
8942
|
return i;
|
|
8950
8943
|
}
|
|
8951
|
-
function
|
|
8944
|
+
function Io({ queryFn: e, queryKey: t }) {
|
|
8952
8945
|
const {
|
|
8953
8946
|
data: n,
|
|
8954
8947
|
error: r,
|
|
@@ -8960,7 +8953,7 @@ function Bo({ queryFn: e, queryKey: t }) {
|
|
|
8960
8953
|
queryFn: e,
|
|
8961
8954
|
initialPageParam: { next: "" },
|
|
8962
8955
|
getNextPageParam: (d) => (d == null ? void 0 : d.next) || null
|
|
8963
|
-
}), o =
|
|
8956
|
+
}), o = Wo(n), f = `${o.length || 0}${i ? "+" : ""}`;
|
|
8964
8957
|
return {
|
|
8965
8958
|
replies: o,
|
|
8966
8959
|
repliesCount: f,
|
|
@@ -8970,7 +8963,7 @@ function Bo({ queryFn: e, queryKey: t }) {
|
|
|
8970
8963
|
fetchNextPage: c
|
|
8971
8964
|
};
|
|
8972
8965
|
}
|
|
8973
|
-
function
|
|
8966
|
+
function Bo({
|
|
8974
8967
|
mutationFn: e,
|
|
8975
8968
|
mutationHandlers: {
|
|
8976
8969
|
mutate: t,
|
|
@@ -8979,12 +8972,12 @@ function qo({
|
|
|
8979
8972
|
}) {
|
|
8980
8973
|
const { mutate: r } = we({
|
|
8981
8974
|
mutationFn: e,
|
|
8982
|
-
onMutate: ({ replyId: s }) => t((i) =>
|
|
8975
|
+
onMutate: ({ replyId: s }) => t((i) => Ho(s, i)),
|
|
8983
8976
|
onError: n
|
|
8984
8977
|
});
|
|
8985
8978
|
return r;
|
|
8986
8979
|
}
|
|
8987
|
-
function
|
|
8980
|
+
function qo({
|
|
8988
8981
|
mutationFn: e,
|
|
8989
8982
|
mutationHandlers: {
|
|
8990
8983
|
mutate: t,
|
|
@@ -8995,14 +8988,14 @@ function zo({
|
|
|
8995
8988
|
const { mutate: s } = we({
|
|
8996
8989
|
mutationFn: e,
|
|
8997
8990
|
onMutate: ({ replyId: i }) => t((c) => {
|
|
8998
|
-
const o =
|
|
8999
|
-
return o &&
|
|
8991
|
+
const o = Mt(i, c);
|
|
8992
|
+
return o && jo({ reply: o, user: r }), c;
|
|
9000
8993
|
}),
|
|
9001
8994
|
onError: n
|
|
9002
8995
|
});
|
|
9003
8996
|
return s;
|
|
9004
8997
|
}
|
|
9005
|
-
function
|
|
8998
|
+
function zo(e) {
|
|
9006
8999
|
return {
|
|
9007
9000
|
pages: [{
|
|
9008
9001
|
next: "",
|
|
@@ -9011,17 +9004,17 @@ function Zo(e) {
|
|
|
9011
9004
|
pageParams: [""]
|
|
9012
9005
|
};
|
|
9013
9006
|
}
|
|
9014
|
-
function
|
|
9007
|
+
function Zo(e, t, n) {
|
|
9015
9008
|
const r = t.pages.length - 1, s = t.pages[r].results.length - 1;
|
|
9016
9009
|
return n != null && n.replace ? t.pages[r].results[s] = e : t.pages[r].results.push(e), t;
|
|
9017
9010
|
}
|
|
9018
|
-
function
|
|
9011
|
+
function Uo(e, t, n) {
|
|
9019
9012
|
return n != null && n.replace ? t.pages[0].results[0] = e : t.pages[0].results = [e, ...t.pages[0].results], t;
|
|
9020
9013
|
}
|
|
9021
9014
|
function Rr(e, t, n) {
|
|
9022
|
-
return t ? n != null && n.append ?
|
|
9015
|
+
return t ? n != null && n.append ? Zo(e, t, n) : Uo(e, t, n) : zo(e);
|
|
9023
9016
|
}
|
|
9024
|
-
function
|
|
9017
|
+
function Mt(e, t) {
|
|
9025
9018
|
if (t)
|
|
9026
9019
|
for (const { results: n } of t.pages) {
|
|
9027
9020
|
const r = n.find(({ id: s }) => s === e);
|
|
@@ -9029,7 +9022,7 @@ function Pt(e, t) {
|
|
|
9029
9022
|
return r;
|
|
9030
9023
|
}
|
|
9031
9024
|
}
|
|
9032
|
-
function
|
|
9025
|
+
function Ho(e, t) {
|
|
9033
9026
|
for (const { results: n } of t.pages) {
|
|
9034
9027
|
const r = n.findIndex(({ id: s }) => s === e);
|
|
9035
9028
|
if (r !== -1) {
|
|
@@ -9039,11 +9032,11 @@ function Wo(e, t) {
|
|
|
9039
9032
|
}
|
|
9040
9033
|
return t;
|
|
9041
9034
|
}
|
|
9042
|
-
function
|
|
9035
|
+
function Wo(e) {
|
|
9043
9036
|
var t;
|
|
9044
9037
|
return ((t = e == null ? void 0 : e.pages) == null ? void 0 : t.reduce((n, r) => [...n, ...r == null ? void 0 : r.results], [])) || [];
|
|
9045
9038
|
}
|
|
9046
|
-
const
|
|
9039
|
+
const Vo = ({
|
|
9047
9040
|
basePath: e,
|
|
9048
9041
|
parentId: t,
|
|
9049
9042
|
activityId: n,
|
|
@@ -9067,7 +9060,7 @@ const Yo = ({
|
|
|
9067
9060
|
}
|
|
9068
9061
|
});
|
|
9069
9062
|
return /* @__PURE__ */ a.jsx(
|
|
9070
|
-
|
|
9063
|
+
go,
|
|
9071
9064
|
{
|
|
9072
9065
|
loadMore: { isLoading: d, hasNextPage: f, loadNextPage: () => o() },
|
|
9073
9066
|
form: {
|
|
@@ -9086,24 +9079,24 @@ const Yo = ({
|
|
|
9086
9079
|
meta: { isEditing: !1, showSuccessMessage: !1 }
|
|
9087
9080
|
},
|
|
9088
9081
|
children: c && c.length > 0 ? c == null ? void 0 : c.map((_) => {
|
|
9089
|
-
var
|
|
9082
|
+
var F, Q, X, ne, fe, k, C, B, q, z, K;
|
|
9090
9083
|
const {
|
|
9091
9084
|
id: b,
|
|
9092
9085
|
own_children: y,
|
|
9093
9086
|
latest_children: j,
|
|
9094
9087
|
children_counts: w
|
|
9095
|
-
} = _,
|
|
9096
|
-
var
|
|
9097
|
-
return ((
|
|
9098
|
-
}) : !1,
|
|
9099
|
-
var
|
|
9088
|
+
} = _, P = (((F = y == null ? void 0 : y.like) == null ? void 0 : F.length) || 0) > 0 ? (Q = y == null ? void 0 : y.like) == null ? void 0 : Q.find((O) => {
|
|
9089
|
+
var I;
|
|
9090
|
+
return ((I = O == null ? void 0 : O.user) == null ? void 0 : I.id) === (v == null ? void 0 : v.id);
|
|
9091
|
+
}) : !1, D = P ? P == null ? void 0 : P.id : "", G = !!P, A = (((X = j == null ? void 0 : j.like) == null ? void 0 : X.length) || 0) > 0 ? (ne = j == null ? void 0 : j.like) == null ? void 0 : ne.map((O) => {
|
|
9092
|
+
var I, Y, Z;
|
|
9100
9093
|
return {
|
|
9101
|
-
id: (
|
|
9102
|
-
name: (
|
|
9094
|
+
id: (I = O == null ? void 0 : O.user) == null ? void 0 : I.id,
|
|
9095
|
+
name: (Z = (Y = O == null ? void 0 : O.user) == null ? void 0 : Y.data) == null ? void 0 : Z.name
|
|
9103
9096
|
};
|
|
9104
|
-
}) : !1,
|
|
9097
|
+
}) : !1, E = _ == null ? void 0 : _.user, ee = (E == null ? void 0 : E.id) === (v == null ? void 0 : v.id), W = Ot(s, ee), U = typeof _.data.content == "string" ? (fe = _ == null ? void 0 : _.data) == null ? void 0 : fe.content : (
|
|
9105
9098
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
9106
|
-
((
|
|
9099
|
+
((C = (k = _ == null ? void 0 : _.data) == null ? void 0 : k.content) == null ? void 0 : C.text) || ""
|
|
9107
9100
|
);
|
|
9108
9101
|
return /* @__PURE__ */ a.jsx(
|
|
9109
9102
|
Ft,
|
|
@@ -9112,7 +9105,7 @@ const Yo = ({
|
|
|
9112
9105
|
id: b,
|
|
9113
9106
|
type: "reply",
|
|
9114
9107
|
body: U,
|
|
9115
|
-
canLike:
|
|
9108
|
+
canLike: W,
|
|
9116
9109
|
createdAt: _ == null ? void 0 : _.created_at,
|
|
9117
9110
|
slugs: {
|
|
9118
9111
|
question: `${e}/${t}`,
|
|
@@ -9123,29 +9116,28 @@ const Yo = ({
|
|
|
9123
9116
|
},
|
|
9124
9117
|
slug: "",
|
|
9125
9118
|
author: {
|
|
9126
|
-
id:
|
|
9127
|
-
name: (B =
|
|
9128
|
-
organization: (
|
|
9129
|
-
jobTitle: (
|
|
9130
|
-
location: (Y = P.data) == null ? void 0 : Y.location,
|
|
9119
|
+
id: E == null ? void 0 : E.id,
|
|
9120
|
+
name: (B = E.data) == null ? void 0 : B.name,
|
|
9121
|
+
organization: (q = E.data) == null ? void 0 : q.organization,
|
|
9122
|
+
jobTitle: (z = E.data) == null ? void 0 : z.jobTitle,
|
|
9131
9123
|
image: {
|
|
9132
|
-
thumbnail: ((
|
|
9124
|
+
thumbnail: ((K = E.data) == null ? void 0 : K.thumbnail) || void 0
|
|
9133
9125
|
}
|
|
9134
9126
|
},
|
|
9135
|
-
userLiked:
|
|
9127
|
+
userLiked: G,
|
|
9136
9128
|
likes: (w == null ? void 0 : w.like) || 0,
|
|
9137
|
-
peopleWhoLiked:
|
|
9129
|
+
peopleWhoLiked: A
|
|
9138
9130
|
},
|
|
9139
9131
|
functions: {
|
|
9140
9132
|
content: {
|
|
9141
9133
|
createContent: () => null,
|
|
9142
9134
|
deleteContent: () => h({ replyId: b }),
|
|
9143
9135
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
9144
|
-
updateContent: (
|
|
9136
|
+
updateContent: (O, { body: I }) => l({ replyId: b, content: I })
|
|
9145
9137
|
},
|
|
9146
9138
|
likes: {
|
|
9147
9139
|
createLike: () => m({ replyId: b }),
|
|
9148
|
-
deleteLike: () => g({ replyId: b, reactionId:
|
|
9140
|
+
deleteLike: () => g({ replyId: b, reactionId: D })
|
|
9149
9141
|
},
|
|
9150
9142
|
comments: {}
|
|
9151
9143
|
}
|
|
@@ -9155,14 +9147,14 @@ const Yo = ({
|
|
|
9155
9147
|
}) : null
|
|
9156
9148
|
}
|
|
9157
9149
|
);
|
|
9158
|
-
},
|
|
9150
|
+
}, Yo = ({
|
|
9159
9151
|
basePath: e,
|
|
9160
9152
|
parentId: t,
|
|
9161
9153
|
activityId: n,
|
|
9162
9154
|
isMember: r,
|
|
9163
9155
|
functions: { reactions: s, join: i, leave: c }
|
|
9164
9156
|
}) => {
|
|
9165
|
-
const o =
|
|
9157
|
+
const o = H(), {
|
|
9166
9158
|
replies: f,
|
|
9167
9159
|
repliesCount: d,
|
|
9168
9160
|
fetchNextPage: u,
|
|
@@ -9175,7 +9167,12 @@ const Yo = ({
|
|
|
9175
9167
|
queryFns: s
|
|
9176
9168
|
});
|
|
9177
9169
|
return fs(), ya(), /* @__PURE__ */ a.jsxs("section", { children: [
|
|
9178
|
-
/* @__PURE__ */ a.
|
|
9170
|
+
/* @__PURE__ */ a.jsxs("h3", { children: [
|
|
9171
|
+
o.formatMessage({ id: "discussion_responses_comment" }),
|
|
9172
|
+
" (",
|
|
9173
|
+
d,
|
|
9174
|
+
")"
|
|
9175
|
+
] }),
|
|
9179
9176
|
/* @__PURE__ */ a.jsx(
|
|
9180
9177
|
ha,
|
|
9181
9178
|
{
|
|
@@ -9198,19 +9195,19 @@ const Yo = ({
|
|
|
9198
9195
|
}
|
|
9199
9196
|
),
|
|
9200
9197
|
f == null ? void 0 : f.map((j) => {
|
|
9201
|
-
var
|
|
9202
|
-
const { id: w, own_children: x, latest_children:
|
|
9203
|
-
var
|
|
9204
|
-
return ((
|
|
9205
|
-
}) : !1,
|
|
9206
|
-
var
|
|
9198
|
+
var ne, fe, k, C, B, q, z, K, O, I, Y;
|
|
9199
|
+
const { id: w, own_children: x, latest_children: P, children_counts: D } = j, N = (((ne = x == null ? void 0 : x.like) == null ? void 0 : ne.length) || 0) > 0 ? (fe = x == null ? void 0 : x.like) == null ? void 0 : fe.find((Z) => {
|
|
9200
|
+
var R;
|
|
9201
|
+
return ((R = Z == null ? void 0 : Z.user) == null ? void 0 : R.id) === (y == null ? void 0 : y.id);
|
|
9202
|
+
}) : !1, A = N ? N == null ? void 0 : N.id : "", E = !!N, W = (((k = P == null ? void 0 : P.like) == null ? void 0 : k.length) || 0) > 0 ? (C = P == null ? void 0 : P.like) == null ? void 0 : C.map((Z) => {
|
|
9203
|
+
var R, le, $;
|
|
9207
9204
|
return {
|
|
9208
|
-
id: (
|
|
9209
|
-
name: (
|
|
9205
|
+
id: (R = Z == null ? void 0 : Z.user) == null ? void 0 : R.id,
|
|
9206
|
+
name: ($ = (le = Z == null ? void 0 : Z.user) == null ? void 0 : le.data) == null ? void 0 : $.name
|
|
9210
9207
|
};
|
|
9211
|
-
}) : !1, U = j == null ? void 0 : j.user,
|
|
9208
|
+
}) : !1, U = j == null ? void 0 : j.user, F = (U == null ? void 0 : U.id) === (y == null ? void 0 : y.id), Q = Ot(r, F), X = typeof j.data.content == "string" ? (B = j == null ? void 0 : j.data) == null ? void 0 : B.content : (
|
|
9212
9209
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
9213
|
-
((
|
|
9210
|
+
((z = (q = j == null ? void 0 : j.data) == null ? void 0 : q.content) == null ? void 0 : z.text) || ""
|
|
9214
9211
|
);
|
|
9215
9212
|
return /* @__PURE__ */ a.jsx(uo, { children: /* @__PURE__ */ a.jsx(
|
|
9216
9213
|
Ft,
|
|
@@ -9229,33 +9226,32 @@ const Yo = ({
|
|
|
9229
9226
|
slug: w,
|
|
9230
9227
|
author: {
|
|
9231
9228
|
id: U == null ? void 0 : U.id,
|
|
9232
|
-
name: (
|
|
9233
|
-
organization: (
|
|
9229
|
+
name: (K = U.data) == null ? void 0 : K.name,
|
|
9230
|
+
organization: (O = U.data) == null ? void 0 : O.organization,
|
|
9234
9231
|
jobTitle: (I = U.data) == null ? void 0 : I.jobTitle,
|
|
9235
|
-
location: (H = U.data) == null ? void 0 : H.location,
|
|
9236
9232
|
image: {
|
|
9237
|
-
thumbnail: ((
|
|
9233
|
+
thumbnail: ((Y = U.data) == null ? void 0 : Y.thumbnail) || void 0
|
|
9238
9234
|
}
|
|
9239
9235
|
},
|
|
9240
|
-
userLiked:
|
|
9241
|
-
likes: (
|
|
9242
|
-
peopleWhoLiked:
|
|
9236
|
+
userLiked: E,
|
|
9237
|
+
likes: (D == null ? void 0 : D.like) || 0,
|
|
9238
|
+
peopleWhoLiked: W
|
|
9243
9239
|
},
|
|
9244
9240
|
functions: {
|
|
9245
9241
|
content: {
|
|
9246
9242
|
createContent: () => null,
|
|
9247
9243
|
deleteContent: () => _({ replyId: w }),
|
|
9248
9244
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
9249
|
-
updateContent: (
|
|
9245
|
+
updateContent: (Z, { body: R }) => g({ replyId: w, content: R })
|
|
9250
9246
|
},
|
|
9251
9247
|
likes: {
|
|
9252
9248
|
createLike: () => v({ replyId: w }),
|
|
9253
|
-
deleteLike: () => b({ replyId: w, reactionId:
|
|
9249
|
+
deleteLike: () => b({ replyId: w, reactionId: A })
|
|
9254
9250
|
},
|
|
9255
9251
|
comments: {}
|
|
9256
9252
|
},
|
|
9257
9253
|
children: /* @__PURE__ */ a.jsx(
|
|
9258
|
-
|
|
9254
|
+
Vo,
|
|
9259
9255
|
{
|
|
9260
9256
|
basePath: e,
|
|
9261
9257
|
parentId: t,
|
|
@@ -9285,7 +9281,7 @@ const Yo = ({
|
|
|
9285
9281
|
)
|
|
9286
9282
|
] });
|
|
9287
9283
|
};
|
|
9288
|
-
function
|
|
9284
|
+
function Go({
|
|
9289
9285
|
mutationFn: e,
|
|
9290
9286
|
mutationHandlers: {
|
|
9291
9287
|
mutate: t,
|
|
@@ -9299,7 +9295,7 @@ function Ko({
|
|
|
9299
9295
|
});
|
|
9300
9296
|
return r;
|
|
9301
9297
|
}
|
|
9302
|
-
function
|
|
9298
|
+
function Ko({ queryFn: e, queryKey: t }) {
|
|
9303
9299
|
const {
|
|
9304
9300
|
data: n,
|
|
9305
9301
|
error: r,
|
|
@@ -9316,7 +9312,7 @@ function Qo({ queryFn: e, queryKey: t }) {
|
|
|
9316
9312
|
isFetching: i
|
|
9317
9313
|
};
|
|
9318
9314
|
}
|
|
9319
|
-
function
|
|
9315
|
+
function Qo({
|
|
9320
9316
|
queryFns: {
|
|
9321
9317
|
read: e,
|
|
9322
9318
|
edit: t,
|
|
@@ -9332,7 +9328,7 @@ function Jo({
|
|
|
9332
9328
|
},
|
|
9333
9329
|
user: c,
|
|
9334
9330
|
...o
|
|
9335
|
-
}, d =
|
|
9331
|
+
}, d = Go({ ...f, mutationFn: t }), u = Jo({ ...f, mutationFn: n }), l = Xo({ ...f, mutationFn: r }), { activity: m, ...h } = Ko({ queryKey: s, queryFn: e });
|
|
9336
9332
|
return {
|
|
9337
9333
|
activity: m,
|
|
9338
9334
|
mutations: {
|
|
@@ -9344,7 +9340,7 @@ function Jo({
|
|
|
9344
9340
|
...h
|
|
9345
9341
|
};
|
|
9346
9342
|
}
|
|
9347
|
-
function
|
|
9343
|
+
function Jo({
|
|
9348
9344
|
mutationFn: e,
|
|
9349
9345
|
mutationHandlers: {
|
|
9350
9346
|
mutate: t,
|
|
@@ -9363,7 +9359,7 @@ function Xo({
|
|
|
9363
9359
|
});
|
|
9364
9360
|
return i;
|
|
9365
9361
|
}
|
|
9366
|
-
function
|
|
9362
|
+
function Xo({
|
|
9367
9363
|
mutationFn: e,
|
|
9368
9364
|
mutationHandlers: {
|
|
9369
9365
|
mutate: t,
|
|
@@ -9390,13 +9386,13 @@ const qc = ({
|
|
|
9390
9386
|
leave: f
|
|
9391
9387
|
}
|
|
9392
9388
|
}) => {
|
|
9393
|
-
var N,
|
|
9394
|
-
const d =
|
|
9389
|
+
var N, A, E, ee, W, U, F, Q, X;
|
|
9390
|
+
const d = H(), u = Ce(Ne), {
|
|
9395
9391
|
activity: l,
|
|
9396
9392
|
error: m,
|
|
9397
9393
|
isLoading: h,
|
|
9398
9394
|
mutations: { edit: g, like: v, unlike: _ }
|
|
9399
|
-
} =
|
|
9395
|
+
} = Qo({
|
|
9400
9396
|
queryFns: i,
|
|
9401
9397
|
queryKey: [e, t, n]
|
|
9402
9398
|
});
|
|
@@ -9410,13 +9406,13 @@ const qc = ({
|
|
|
9410
9406
|
text: d.formatMessage({ id: "activitySection_notFoundError" })
|
|
9411
9407
|
}
|
|
9412
9408
|
);
|
|
9413
|
-
const { own_reactions: b, latest_reactions: y } = l, j = (((N = y == null ? void 0 : y.like) == null ? void 0 : N.length) || 0) > 0, w = (((
|
|
9414
|
-
var
|
|
9409
|
+
const { own_reactions: b, latest_reactions: y } = l, j = (((N = y == null ? void 0 : y.like) == null ? void 0 : N.length) || 0) > 0, w = (((A = b == null ? void 0 : b.like) == null ? void 0 : A.length) || 0) > 0, x = w ? b == null ? void 0 : b.like[0].id : "", P = j ? (E = y == null ? void 0 : y.like) == null ? void 0 : E.map((ne) => {
|
|
9410
|
+
var fe, k, C;
|
|
9415
9411
|
return {
|
|
9416
|
-
id: (
|
|
9417
|
-
name: (
|
|
9412
|
+
id: (fe = ne == null ? void 0 : ne.user) == null ? void 0 : fe.id,
|
|
9413
|
+
name: (C = (k = ne == null ? void 0 : ne.user) == null ? void 0 : k.data) == null ? void 0 : C.name
|
|
9418
9414
|
};
|
|
9419
|
-
}) : !1,
|
|
9415
|
+
}) : !1, D = l == null ? void 0 : l.actor, G = (D == null ? void 0 : D.id) === (u == null ? void 0 : u.id);
|
|
9420
9416
|
return /* @__PURE__ */ a.jsxs("section", { className: "activity-section", children: [
|
|
9421
9417
|
/* @__PURE__ */ a.jsx(
|
|
9422
9418
|
Ft,
|
|
@@ -9426,7 +9422,7 @@ const qc = ({
|
|
|
9426
9422
|
id: n,
|
|
9427
9423
|
type: "post",
|
|
9428
9424
|
body: l == null ? void 0 : l.content,
|
|
9429
|
-
canLike: Ot(r,
|
|
9425
|
+
canLike: Ot(r, G),
|
|
9430
9426
|
createdAt: (l == null ? void 0 : l.time) || "",
|
|
9431
9427
|
slugs: {
|
|
9432
9428
|
question: `${e}/${t}`,
|
|
@@ -9434,28 +9430,27 @@ const qc = ({
|
|
|
9434
9430
|
},
|
|
9435
9431
|
slug: n,
|
|
9436
9432
|
author: {
|
|
9437
|
-
id:
|
|
9438
|
-
name: (ee =
|
|
9439
|
-
organization: (
|
|
9440
|
-
jobTitle: (U =
|
|
9441
|
-
location: (q = F.data) == null ? void 0 : q.location,
|
|
9433
|
+
id: D.id,
|
|
9434
|
+
name: (ee = D.data) == null ? void 0 : ee.name,
|
|
9435
|
+
organization: (W = D.data) == null ? void 0 : W.organization,
|
|
9436
|
+
jobTitle: (U = D.data) == null ? void 0 : U.jobTitle,
|
|
9442
9437
|
image: {
|
|
9443
|
-
thumbnail: ((
|
|
9438
|
+
thumbnail: ((F = D.data) == null ? void 0 : F.thumbnail) || void 0
|
|
9444
9439
|
}
|
|
9445
9440
|
},
|
|
9446
9441
|
userLiked: w,
|
|
9447
|
-
likes: ((
|
|
9448
|
-
comments: ((
|
|
9449
|
-
peopleWhoLiked:
|
|
9442
|
+
likes: ((Q = l == null ? void 0 : l.reaction_counts) == null ? void 0 : Q.like) || 0,
|
|
9443
|
+
comments: ((X = l == null ? void 0 : l.reaction_counts) == null ? void 0 : X.reply) || 0,
|
|
9444
|
+
peopleWhoLiked: P
|
|
9450
9445
|
},
|
|
9451
|
-
originalAuthorId:
|
|
9446
|
+
originalAuthorId: D == null ? void 0 : D.id,
|
|
9452
9447
|
forceHide: { comments: !0 },
|
|
9453
9448
|
functions: {
|
|
9454
9449
|
content: {
|
|
9455
9450
|
createContent: () => null,
|
|
9456
9451
|
deleteContent: s,
|
|
9457
9452
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
9458
|
-
updateContent: (
|
|
9453
|
+
updateContent: (ne, { body: fe }) => g({ content: fe })
|
|
9459
9454
|
},
|
|
9460
9455
|
likes: {
|
|
9461
9456
|
createLike: () => v({ activityId: n }),
|
|
@@ -9470,7 +9465,7 @@ const qc = ({
|
|
|
9470
9465
|
n
|
|
9471
9466
|
),
|
|
9472
9467
|
/* @__PURE__ */ a.jsx(
|
|
9473
|
-
|
|
9468
|
+
Yo,
|
|
9474
9469
|
{
|
|
9475
9470
|
basePath: e,
|
|
9476
9471
|
parentId: t,
|
|
@@ -9538,7 +9533,7 @@ const qc = ({
|
|
|
9538
9533
|
}
|
|
9539
9534
|
];
|
|
9540
9535
|
const vt = "notFoundError_", Zc = () => {
|
|
9541
|
-
const e =
|
|
9536
|
+
const e = H(), t = [];
|
|
9542
9537
|
return Nr.forEach((n, r) => {
|
|
9543
9538
|
n.title = e.formatMessage({ id: `${vt}post_${r + 1}` }), t.push("solutionArticle");
|
|
9544
9539
|
}), /* @__PURE__ */ a.jsxs(
|
|
@@ -9575,18 +9570,18 @@ export {
|
|
|
9575
9570
|
Ic as ActivitiesFeed,
|
|
9576
9571
|
qc as ActivitySection,
|
|
9577
9572
|
ha as AddPost,
|
|
9578
|
-
|
|
9579
|
-
|
|
9573
|
+
_c as BannerSection,
|
|
9574
|
+
Tc as Breadcrumbs,
|
|
9580
9575
|
se as Button,
|
|
9581
9576
|
Rt as ButtonWrapper,
|
|
9582
9577
|
$s as CacheProvider,
|
|
9583
9578
|
Xr as Card,
|
|
9584
9579
|
ei as CardBlock,
|
|
9585
|
-
|
|
9580
|
+
jc as Carousel,
|
|
9586
9581
|
Wr as CollapsibleSection,
|
|
9587
9582
|
fi as Columns,
|
|
9588
|
-
|
|
9589
|
-
|
|
9583
|
+
kc as CommunityDetails,
|
|
9584
|
+
Nc as ContactFooter,
|
|
9590
9585
|
wi as ContactForm,
|
|
9591
9586
|
Jr as Contributors,
|
|
9592
9587
|
Bn as ConversationContext,
|
|
@@ -9595,42 +9590,42 @@ export {
|
|
|
9595
9590
|
In as DiscussionForm,
|
|
9596
9591
|
po as DiscussionLikes,
|
|
9597
9592
|
Ft as DiscussionPost,
|
|
9598
|
-
|
|
9593
|
+
go as DiscussionThread,
|
|
9599
9594
|
Oe as Divider,
|
|
9600
|
-
|
|
9595
|
+
hc as DownloadSection,
|
|
9601
9596
|
Je as EMAILS,
|
|
9602
9597
|
mi as EmailHelperTextBox,
|
|
9603
9598
|
We as EmptyStateBox,
|
|
9604
|
-
|
|
9599
|
+
Ec as Filters,
|
|
9605
9600
|
Rs as FlagsProvider,
|
|
9606
9601
|
ua as Footer,
|
|
9607
9602
|
ra as Form,
|
|
9608
9603
|
ot as FullWidthSection,
|
|
9609
|
-
|
|
9604
|
+
bc as GlobalProviders,
|
|
9610
9605
|
fa as Header,
|
|
9611
9606
|
Os as HelperTextBox,
|
|
9612
|
-
|
|
9613
|
-
|
|
9607
|
+
Pn as HiddenFromScreenReaders,
|
|
9608
|
+
xc as HideShowTextBox,
|
|
9614
9609
|
Ae as HighlightedTextBox,
|
|
9615
9610
|
Ns as IntlProvider,
|
|
9616
9611
|
ji as InviteForm,
|
|
9617
|
-
|
|
9612
|
+
Oc as InviteModal,
|
|
9618
9613
|
ea as JoinButton,
|
|
9619
|
-
|
|
9614
|
+
Sc as LanguageSwitcher,
|
|
9620
9615
|
it as Link,
|
|
9621
9616
|
Nt as LoadMore,
|
|
9622
|
-
|
|
9617
|
+
wc as LoadingBlock,
|
|
9623
9618
|
Te as LoadingPlaceholder,
|
|
9624
9619
|
Gr as LoadingState,
|
|
9625
9620
|
ta as Logo,
|
|
9626
|
-
|
|
9621
|
+
gc as LogoSection,
|
|
9627
9622
|
cr as MarkdownText,
|
|
9628
|
-
|
|
9623
|
+
vc as MarketingBox,
|
|
9629
9624
|
An as Member,
|
|
9630
|
-
|
|
9625
|
+
Lc as MembersList,
|
|
9631
9626
|
ma as Modal,
|
|
9632
9627
|
si as MoreMenu,
|
|
9633
|
-
|
|
9628
|
+
yc as NUMBER_OF_USERS,
|
|
9634
9629
|
ci as NavigationMenu,
|
|
9635
9630
|
Zc as NotFoundError,
|
|
9636
9631
|
pa as Overlay,
|
|
@@ -9640,22 +9635,22 @@ export {
|
|
|
9640
9635
|
jt as Pill,
|
|
9641
9636
|
ct as ProfilePicture,
|
|
9642
9637
|
Ws as ProgressBar,
|
|
9643
|
-
|
|
9644
|
-
|
|
9645
|
-
|
|
9638
|
+
Pc as Rating,
|
|
9639
|
+
Yo as RepliesFeed,
|
|
9640
|
+
Dc as ResponsesHeading,
|
|
9646
9641
|
Hr as ResponsiveImage,
|
|
9647
9642
|
ki as SearchForm,
|
|
9648
|
-
|
|
9649
|
-
|
|
9643
|
+
Cc as ShareLinks,
|
|
9644
|
+
Rc as SignupForm,
|
|
9650
9645
|
Zs as Span,
|
|
9651
9646
|
vn as StatusBanner,
|
|
9652
|
-
|
|
9653
|
-
|
|
9647
|
+
$c as Tabs,
|
|
9648
|
+
Fc as Tags,
|
|
9654
9649
|
Es as Tooltip,
|
|
9655
|
-
|
|
9650
|
+
Ac as TopLevelPage,
|
|
9656
9651
|
Ne as UserContext,
|
|
9657
9652
|
As as UserProvider,
|
|
9658
|
-
|
|
9653
|
+
ge as VisuallyHidden,
|
|
9659
9654
|
so as addAriaProps,
|
|
9660
9655
|
Qr as getMember,
|
|
9661
9656
|
Et as headerData,
|