@apolitical/component-library 1.14.0 → 1.14.1-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.js +13 -13
- package/index.mjs +831 -814
- package/package.json +1 -1
- package/style.css +1 -1
package/index.mjs
CHANGED
|
@@ -1,22 +1,22 @@
|
|
|
1
|
-
import D, { memo as
|
|
1
|
+
import D, { memo as Pe, useState as L, useEffect as Z, useRef as se, useMemo as nt, Children as At, createContext as Ot, useContext as be, Fragment as Dt, useCallback as je, useReducer as rs, Suspense as os } from "react";
|
|
2
2
|
import as from "lodash.clonedeep";
|
|
3
3
|
import is from "lodash.set";
|
|
4
|
-
import { useIntl as N, IntlProvider as ls, createIntl as cs, FormattedMessage as
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import { QueryClient as ds, QueryClientProvider as us, useQueryClient as
|
|
4
|
+
import { useIntl as N, IntlProvider as ls, createIntl as cs, FormattedMessage as Ee } from "react-intl";
|
|
5
|
+
import st from "truncate";
|
|
6
|
+
import rt from "markdown-to-jsx";
|
|
7
|
+
import { QueryClient as ds, QueryClientProvider as us, useQueryClient as ot, useQuery as pn, useMutation as me } from "@tanstack/react-query";
|
|
8
8
|
import { ReactQueryDevtools as ms } from "@tanstack/react-query-devtools";
|
|
9
|
-
import
|
|
9
|
+
import Ke from "posthog-js";
|
|
10
10
|
import { useCookies as fs, CookiesProvider as hs } from "react-cookie";
|
|
11
11
|
import { ReactMultiEmail as ps } from "react-multi-email";
|
|
12
|
-
import
|
|
12
|
+
import gn from "lodash.get";
|
|
13
13
|
import { ErrorBoundary as gs } from "react-error-boundary";
|
|
14
14
|
import _s from "react-textarea-autosize";
|
|
15
15
|
import xs from "lodash.isequal";
|
|
16
16
|
function bs(e) {
|
|
17
17
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
18
18
|
}
|
|
19
|
-
var
|
|
19
|
+
var _n = { exports: {} };
|
|
20
20
|
/*!
|
|
21
21
|
Copyright (c) 2018 Jed Watson.
|
|
22
22
|
Licensed under the MIT License (MIT), see
|
|
@@ -51,10 +51,10 @@ var pn = { exports: {} };
|
|
|
51
51
|
}
|
|
52
52
|
e.exports ? (n.default = n, e.exports = n) : window.classNames = n;
|
|
53
53
|
})();
|
|
54
|
-
})(
|
|
55
|
-
var
|
|
56
|
-
const S = /* @__PURE__ */ bs(
|
|
57
|
-
var
|
|
54
|
+
})(_n);
|
|
55
|
+
var ws = _n.exports;
|
|
56
|
+
const S = /* @__PURE__ */ bs(ws), vs = ({ element: e = "span", showOnFocus: t = !0, children: n, ...r }) => D.createElement(e, { ...r, className: S("hidden", { "show-on-focus": t }), children: n }), de = Pe(vs), ks = ({ element: e = "span", children: t = null, ...n }) => D.createElement(e, { ...n, "aria-hidden": !0 }, t), xn = Pe(ks);
|
|
57
|
+
var Nt = { exports: {} }, Fe = {};
|
|
58
58
|
/**
|
|
59
59
|
* @license React
|
|
60
60
|
* react-jsx-runtime.production.min.js
|
|
@@ -64,11 +64,11 @@ var At = { exports: {} }, Re = {};
|
|
|
64
64
|
* This source code is licensed under the MIT license found in the
|
|
65
65
|
* LICENSE file in the root directory of this source tree.
|
|
66
66
|
*/
|
|
67
|
-
var
|
|
67
|
+
var sn;
|
|
68
68
|
function js() {
|
|
69
|
-
if (
|
|
70
|
-
return
|
|
71
|
-
|
|
69
|
+
if (sn)
|
|
70
|
+
return Fe;
|
|
71
|
+
sn = 1;
|
|
72
72
|
var e = D, t = Symbol.for("react.element"), n = Symbol.for("react.fragment"), r = Object.prototype.hasOwnProperty, i = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, c = { key: !0, ref: !0, __self: !0, __source: !0 };
|
|
73
73
|
function d(o, a, u) {
|
|
74
74
|
var l, f = {}, h = null, p = null;
|
|
@@ -80,9 +80,9 @@ function js() {
|
|
|
80
80
|
f[l] === void 0 && (f[l] = a[l]);
|
|
81
81
|
return { $$typeof: t, type: o, key: h, ref: p, props: f, _owner: i.current };
|
|
82
82
|
}
|
|
83
|
-
return
|
|
83
|
+
return Fe.Fragment = n, Fe.jsx = d, Fe.jsxs = d, Fe;
|
|
84
84
|
}
|
|
85
|
-
var
|
|
85
|
+
var Le = {};
|
|
86
86
|
/**
|
|
87
87
|
* @license React
|
|
88
88
|
* react-jsx-runtime.development.js
|
|
@@ -92,9 +92,9 @@ var Fe = {};
|
|
|
92
92
|
* This source code is licensed under the MIT license found in the
|
|
93
93
|
* LICENSE file in the root directory of this source tree.
|
|
94
94
|
*/
|
|
95
|
-
var
|
|
95
|
+
var rn;
|
|
96
96
|
function ys() {
|
|
97
|
-
return
|
|
97
|
+
return rn || (rn = 1, process.env.NODE_ENV !== "production" && function() {
|
|
98
98
|
var e = D, t = Symbol.for("react.element"), n = Symbol.for("react.portal"), r = Symbol.for("react.fragment"), i = Symbol.for("react.strict_mode"), c = Symbol.for("react.profiler"), d = Symbol.for("react.provider"), o = Symbol.for("react.context"), a = Symbol.for("react.forward_ref"), u = Symbol.for("react.suspense"), l = Symbol.for("react.suspense_list"), f = Symbol.for("react.memo"), h = Symbol.for("react.lazy"), p = Symbol.for("react.offscreen"), _ = Symbol.iterator, j = "@@iterator";
|
|
99
99
|
function g(m) {
|
|
100
100
|
if (m === null || typeof m != "object")
|
|
@@ -112,18 +112,18 @@ function ys() {
|
|
|
112
112
|
}
|
|
113
113
|
function T(m, v, y) {
|
|
114
114
|
{
|
|
115
|
-
var $ = E.ReactDebugCurrentFrame,
|
|
116
|
-
|
|
115
|
+
var $ = E.ReactDebugCurrentFrame, I = $.getStackAddendum();
|
|
116
|
+
I !== "" && (v += "%s", y = y.concat([I]));
|
|
117
117
|
var z = y.map(function(R) {
|
|
118
118
|
return String(R);
|
|
119
119
|
});
|
|
120
120
|
z.unshift("Warning: " + v), Function.prototype.apply.call(console[m], console, z);
|
|
121
121
|
}
|
|
122
122
|
}
|
|
123
|
-
var M = !1, C = !1,
|
|
123
|
+
var M = !1, C = !1, H = !1, Y = !1, x = !1, b;
|
|
124
124
|
b = Symbol.for("react.module.reference");
|
|
125
|
-
function
|
|
126
|
-
return !!(typeof m == "string" || typeof m == "function" || m === r || m === c || x || m === i || m === u || m === l ||
|
|
125
|
+
function U(m) {
|
|
126
|
+
return !!(typeof m == "string" || typeof m == "function" || m === r || m === c || x || m === i || m === u || m === l || Y || m === p || M || C || H || typeof m == "object" && m !== null && (m.$$typeof === h || m.$$typeof === f || m.$$typeof === d || m.$$typeof === o || m.$$typeof === a || // This needs to include all possible module reference object
|
|
127
127
|
// types supported by any Flight configuration anywhere since
|
|
128
128
|
// we don't know which Flight build this will end up being used
|
|
129
129
|
// with.
|
|
@@ -133,13 +133,13 @@ function ys() {
|
|
|
133
133
|
var $ = m.displayName;
|
|
134
134
|
if ($)
|
|
135
135
|
return $;
|
|
136
|
-
var
|
|
137
|
-
return
|
|
136
|
+
var I = v.displayName || v.name || "";
|
|
137
|
+
return I !== "" ? y + "(" + I + ")" : y;
|
|
138
138
|
}
|
|
139
|
-
function
|
|
139
|
+
function G(m) {
|
|
140
140
|
return m.displayName || "Context";
|
|
141
141
|
}
|
|
142
|
-
function
|
|
142
|
+
function O(m) {
|
|
143
143
|
if (m == null)
|
|
144
144
|
return null;
|
|
145
145
|
if (typeof m.tag == "number" && k("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof m == "function")
|
|
@@ -164,19 +164,19 @@ function ys() {
|
|
|
164
164
|
switch (m.$$typeof) {
|
|
165
165
|
case o:
|
|
166
166
|
var v = m;
|
|
167
|
-
return
|
|
167
|
+
return G(v) + ".Consumer";
|
|
168
168
|
case d:
|
|
169
169
|
var y = m;
|
|
170
|
-
return
|
|
170
|
+
return G(y._context) + ".Provider";
|
|
171
171
|
case a:
|
|
172
172
|
return w(m, m.render, "ForwardRef");
|
|
173
173
|
case f:
|
|
174
174
|
var $ = m.displayName || null;
|
|
175
|
-
return $ !== null ? $ :
|
|
175
|
+
return $ !== null ? $ : O(m.type) || "Memo";
|
|
176
176
|
case h: {
|
|
177
|
-
var
|
|
177
|
+
var I = m, z = I._payload, R = I._init;
|
|
178
178
|
try {
|
|
179
|
-
return
|
|
179
|
+
return O(R(z));
|
|
180
180
|
} catch {
|
|
181
181
|
return null;
|
|
182
182
|
}
|
|
@@ -184,14 +184,14 @@ function ys() {
|
|
|
184
184
|
}
|
|
185
185
|
return null;
|
|
186
186
|
}
|
|
187
|
-
var
|
|
187
|
+
var B = Object.assign, W = 0, V, K, oe, ae, ie, le, re;
|
|
188
188
|
function P() {
|
|
189
189
|
}
|
|
190
190
|
P.__reactDisabledLog = !0;
|
|
191
191
|
function te() {
|
|
192
192
|
{
|
|
193
|
-
if (
|
|
194
|
-
|
|
193
|
+
if (W === 0) {
|
|
194
|
+
V = console.log, K = console.info, oe = console.warn, ae = console.error, ie = console.group, le = console.groupCollapsed, re = console.groupEnd;
|
|
195
195
|
var m = {
|
|
196
196
|
configurable: !0,
|
|
197
197
|
enumerable: !0,
|
|
@@ -208,77 +208,77 @@ function ys() {
|
|
|
208
208
|
groupEnd: m
|
|
209
209
|
});
|
|
210
210
|
}
|
|
211
|
-
|
|
211
|
+
W++;
|
|
212
212
|
}
|
|
213
213
|
}
|
|
214
|
-
function
|
|
214
|
+
function ce() {
|
|
215
215
|
{
|
|
216
|
-
if (
|
|
216
|
+
if (W--, W === 0) {
|
|
217
217
|
var m = {
|
|
218
218
|
configurable: !0,
|
|
219
219
|
enumerable: !0,
|
|
220
220
|
writable: !0
|
|
221
221
|
};
|
|
222
222
|
Object.defineProperties(console, {
|
|
223
|
-
log:
|
|
224
|
-
value:
|
|
223
|
+
log: B({}, m, {
|
|
224
|
+
value: V
|
|
225
225
|
}),
|
|
226
|
-
info:
|
|
227
|
-
value:
|
|
226
|
+
info: B({}, m, {
|
|
227
|
+
value: K
|
|
228
228
|
}),
|
|
229
|
-
warn:
|
|
230
|
-
value: re
|
|
231
|
-
}),
|
|
232
|
-
error: O({}, m, {
|
|
229
|
+
warn: B({}, m, {
|
|
233
230
|
value: oe
|
|
234
231
|
}),
|
|
235
|
-
|
|
232
|
+
error: B({}, m, {
|
|
236
233
|
value: ae
|
|
237
234
|
}),
|
|
238
|
-
|
|
235
|
+
group: B({}, m, {
|
|
239
236
|
value: ie
|
|
240
237
|
}),
|
|
241
|
-
|
|
242
|
-
value:
|
|
238
|
+
groupCollapsed: B({}, m, {
|
|
239
|
+
value: le
|
|
240
|
+
}),
|
|
241
|
+
groupEnd: B({}, m, {
|
|
242
|
+
value: re
|
|
243
243
|
})
|
|
244
244
|
});
|
|
245
245
|
}
|
|
246
|
-
|
|
246
|
+
W < 0 && k("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
|
|
247
247
|
}
|
|
248
248
|
}
|
|
249
|
-
var
|
|
250
|
-
function
|
|
249
|
+
var ne = E.ReactCurrentDispatcher, F;
|
|
250
|
+
function J(m, v, y) {
|
|
251
251
|
{
|
|
252
|
-
if (
|
|
252
|
+
if (F === void 0)
|
|
253
253
|
try {
|
|
254
254
|
throw Error();
|
|
255
|
-
} catch (
|
|
256
|
-
var $ =
|
|
257
|
-
|
|
255
|
+
} catch (I) {
|
|
256
|
+
var $ = I.stack.trim().match(/\n( *(at )?)/);
|
|
257
|
+
F = $ && $[1] || "";
|
|
258
258
|
}
|
|
259
259
|
return `
|
|
260
|
-
` +
|
|
260
|
+
` + F + m;
|
|
261
261
|
}
|
|
262
262
|
}
|
|
263
|
-
var
|
|
263
|
+
var fe = !1, pe;
|
|
264
264
|
{
|
|
265
|
-
var
|
|
266
|
-
|
|
265
|
+
var ge = typeof WeakMap == "function" ? WeakMap : Map;
|
|
266
|
+
pe = new ge();
|
|
267
267
|
}
|
|
268
|
-
function
|
|
269
|
-
if (!m ||
|
|
268
|
+
function $e(m, v) {
|
|
269
|
+
if (!m || fe)
|
|
270
270
|
return "";
|
|
271
271
|
{
|
|
272
|
-
var y =
|
|
272
|
+
var y = pe.get(m);
|
|
273
273
|
if (y !== void 0)
|
|
274
274
|
return y;
|
|
275
275
|
}
|
|
276
276
|
var $;
|
|
277
|
-
|
|
278
|
-
var
|
|
277
|
+
fe = !0;
|
|
278
|
+
var I = Error.prepareStackTrace;
|
|
279
279
|
Error.prepareStackTrace = void 0;
|
|
280
280
|
var z;
|
|
281
|
-
z =
|
|
281
|
+
z = ne.current, ne.current = null, te();
|
|
282
282
|
try {
|
|
283
283
|
if (v) {
|
|
284
284
|
var R = function() {
|
|
@@ -291,116 +291,116 @@ function ys() {
|
|
|
291
291
|
}), typeof Reflect == "object" && Reflect.construct) {
|
|
292
292
|
try {
|
|
293
293
|
Reflect.construct(R, []);
|
|
294
|
-
} catch (
|
|
295
|
-
$ =
|
|
294
|
+
} catch (we) {
|
|
295
|
+
$ = we;
|
|
296
296
|
}
|
|
297
297
|
Reflect.construct(m, [], R);
|
|
298
298
|
} else {
|
|
299
299
|
try {
|
|
300
300
|
R.call();
|
|
301
|
-
} catch (
|
|
302
|
-
$ =
|
|
301
|
+
} catch (we) {
|
|
302
|
+
$ = we;
|
|
303
303
|
}
|
|
304
304
|
m.call(R.prototype);
|
|
305
305
|
}
|
|
306
306
|
} else {
|
|
307
307
|
try {
|
|
308
308
|
throw Error();
|
|
309
|
-
} catch (
|
|
310
|
-
$ =
|
|
309
|
+
} catch (we) {
|
|
310
|
+
$ = we;
|
|
311
311
|
}
|
|
312
312
|
m();
|
|
313
313
|
}
|
|
314
|
-
} catch (
|
|
315
|
-
if (
|
|
316
|
-
for (var A =
|
|
317
|
-
`),
|
|
318
|
-
`), q = A.length - 1, ee =
|
|
314
|
+
} catch (we) {
|
|
315
|
+
if (we && $ && typeof we.stack == "string") {
|
|
316
|
+
for (var A = we.stack.split(`
|
|
317
|
+
`), ue = $.stack.split(`
|
|
318
|
+
`), q = A.length - 1, ee = ue.length - 1; q >= 1 && ee >= 0 && A[q] !== ue[ee]; )
|
|
319
319
|
ee--;
|
|
320
320
|
for (; q >= 1 && ee >= 0; q--, ee--)
|
|
321
|
-
if (A[q] !==
|
|
321
|
+
if (A[q] !== ue[ee]) {
|
|
322
322
|
if (q !== 1 || ee !== 1)
|
|
323
323
|
do
|
|
324
|
-
if (q--, ee--, ee < 0 || A[q] !==
|
|
325
|
-
var
|
|
324
|
+
if (q--, ee--, ee < 0 || A[q] !== ue[ee]) {
|
|
325
|
+
var _e = `
|
|
326
326
|
` + A[q].replace(" at new ", " at ");
|
|
327
|
-
return m.displayName &&
|
|
327
|
+
return m.displayName && _e.includes("<anonymous>") && (_e = _e.replace("<anonymous>", m.displayName)), typeof m == "function" && pe.set(m, _e), _e;
|
|
328
328
|
}
|
|
329
329
|
while (q >= 1 && ee >= 0);
|
|
330
330
|
break;
|
|
331
331
|
}
|
|
332
332
|
}
|
|
333
333
|
} finally {
|
|
334
|
-
|
|
334
|
+
fe = !1, ne.current = z, ce(), Error.prepareStackTrace = I;
|
|
335
335
|
}
|
|
336
|
-
var
|
|
337
|
-
return typeof m == "function" &&
|
|
336
|
+
var Ce = m ? m.displayName || m.name : "", nn = Ce ? J(Ce) : "";
|
|
337
|
+
return typeof m == "function" && pe.set(m, nn), nn;
|
|
338
338
|
}
|
|
339
|
-
function
|
|
340
|
-
return
|
|
339
|
+
function He(m, v, y) {
|
|
340
|
+
return $e(m, !1);
|
|
341
341
|
}
|
|
342
|
-
function
|
|
342
|
+
function Qe(m) {
|
|
343
343
|
var v = m.prototype;
|
|
344
344
|
return !!(v && v.isReactComponent);
|
|
345
345
|
}
|
|
346
|
-
function
|
|
346
|
+
function Ue(m, v, y) {
|
|
347
347
|
if (m == null)
|
|
348
348
|
return "";
|
|
349
349
|
if (typeof m == "function")
|
|
350
|
-
return
|
|
350
|
+
return $e(m, Qe(m));
|
|
351
351
|
if (typeof m == "string")
|
|
352
|
-
return
|
|
352
|
+
return J(m);
|
|
353
353
|
switch (m) {
|
|
354
354
|
case u:
|
|
355
|
-
return
|
|
355
|
+
return J("Suspense");
|
|
356
356
|
case l:
|
|
357
|
-
return
|
|
357
|
+
return J("SuspenseList");
|
|
358
358
|
}
|
|
359
359
|
if (typeof m == "object")
|
|
360
360
|
switch (m.$$typeof) {
|
|
361
361
|
case a:
|
|
362
|
-
return
|
|
362
|
+
return He(m.render);
|
|
363
363
|
case f:
|
|
364
|
-
return
|
|
364
|
+
return Ue(m.type, v, y);
|
|
365
365
|
case h: {
|
|
366
|
-
var $ = m,
|
|
366
|
+
var $ = m, I = $._payload, z = $._init;
|
|
367
367
|
try {
|
|
368
|
-
return
|
|
368
|
+
return Ue(z(I), v, y);
|
|
369
369
|
} catch {
|
|
370
370
|
}
|
|
371
371
|
}
|
|
372
372
|
}
|
|
373
373
|
return "";
|
|
374
374
|
}
|
|
375
|
-
var
|
|
376
|
-
function
|
|
375
|
+
var We = Object.prototype.hasOwnProperty, Wt = {}, zt = E.ReactDebugCurrentFrame;
|
|
376
|
+
function ze(m) {
|
|
377
377
|
if (m) {
|
|
378
|
-
var v = m._owner, y =
|
|
379
|
-
|
|
378
|
+
var v = m._owner, y = Ue(m.type, m._source, v ? v.type : null);
|
|
379
|
+
zt.setExtraStackFrame(y);
|
|
380
380
|
} else
|
|
381
|
-
|
|
381
|
+
zt.setExtraStackFrame(null);
|
|
382
382
|
}
|
|
383
|
-
function On(m, v, y, $,
|
|
383
|
+
function On(m, v, y, $, I) {
|
|
384
384
|
{
|
|
385
|
-
var z = Function.call.bind(
|
|
385
|
+
var z = Function.call.bind(We);
|
|
386
386
|
for (var R in m)
|
|
387
387
|
if (z(m, R)) {
|
|
388
388
|
var A = void 0;
|
|
389
389
|
try {
|
|
390
390
|
if (typeof m[R] != "function") {
|
|
391
|
-
var
|
|
392
|
-
throw
|
|
391
|
+
var ue = Error(($ || "React class") + ": " + y + " type `" + R + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof m[R] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
|
|
392
|
+
throw ue.name = "Invariant Violation", ue;
|
|
393
393
|
}
|
|
394
394
|
A = m[R](v, R, $, y, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
|
|
395
395
|
} catch (q) {
|
|
396
396
|
A = q;
|
|
397
397
|
}
|
|
398
|
-
A && !(A instanceof Error) && (
|
|
398
|
+
A && !(A instanceof Error) && (ze(I), k("%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).", $ || "React class", y, R, typeof A), ze(null)), A instanceof Error && !(A.message in Wt) && (Wt[A.message] = !0, ze(I), k("Failed %s type: %s", y, A.message), ze(null));
|
|
399
399
|
}
|
|
400
400
|
}
|
|
401
401
|
}
|
|
402
402
|
var Bn = Array.isArray;
|
|
403
|
-
function
|
|
403
|
+
function mt(m) {
|
|
404
404
|
return Bn(m);
|
|
405
405
|
}
|
|
406
406
|
function In(m) {
|
|
@@ -411,51 +411,51 @@ function ys() {
|
|
|
411
411
|
}
|
|
412
412
|
function Hn(m) {
|
|
413
413
|
try {
|
|
414
|
-
return
|
|
414
|
+
return Vt(m), !1;
|
|
415
415
|
} catch {
|
|
416
416
|
return !0;
|
|
417
417
|
}
|
|
418
418
|
}
|
|
419
|
-
function
|
|
419
|
+
function Vt(m) {
|
|
420
420
|
return "" + m;
|
|
421
421
|
}
|
|
422
|
-
function
|
|
422
|
+
function Yt(m) {
|
|
423
423
|
if (Hn(m))
|
|
424
|
-
return k("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", In(m)),
|
|
424
|
+
return k("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", In(m)), Vt(m);
|
|
425
425
|
}
|
|
426
|
-
var
|
|
426
|
+
var Re = E.ReactCurrentOwner, Qn = {
|
|
427
427
|
key: !0,
|
|
428
428
|
ref: !0,
|
|
429
429
|
__self: !0,
|
|
430
430
|
__source: !0
|
|
431
|
-
},
|
|
432
|
-
|
|
431
|
+
}, Gt, Jt, ft;
|
|
432
|
+
ft = {};
|
|
433
433
|
function Un(m) {
|
|
434
|
-
if (
|
|
434
|
+
if (We.call(m, "ref")) {
|
|
435
435
|
var v = Object.getOwnPropertyDescriptor(m, "ref").get;
|
|
436
436
|
if (v && v.isReactWarning)
|
|
437
437
|
return !1;
|
|
438
438
|
}
|
|
439
439
|
return m.ref !== void 0;
|
|
440
440
|
}
|
|
441
|
-
function
|
|
442
|
-
if (
|
|
441
|
+
function Wn(m) {
|
|
442
|
+
if (We.call(m, "key")) {
|
|
443
443
|
var v = Object.getOwnPropertyDescriptor(m, "key").get;
|
|
444
444
|
if (v && v.isReactWarning)
|
|
445
445
|
return !1;
|
|
446
446
|
}
|
|
447
447
|
return m.key !== void 0;
|
|
448
448
|
}
|
|
449
|
-
function
|
|
450
|
-
if (typeof m.ref == "string" &&
|
|
451
|
-
var y =
|
|
452
|
-
|
|
449
|
+
function zn(m, v) {
|
|
450
|
+
if (typeof m.ref == "string" && Re.current && v && Re.current.stateNode !== v) {
|
|
451
|
+
var y = O(Re.current.type);
|
|
452
|
+
ft[y] || (k('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', O(Re.current.type), m.ref), ft[y] = !0);
|
|
453
453
|
}
|
|
454
454
|
}
|
|
455
455
|
function Vn(m, v) {
|
|
456
456
|
{
|
|
457
457
|
var y = function() {
|
|
458
|
-
|
|
458
|
+
Gt || (Gt = !0, k("%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)", v));
|
|
459
459
|
};
|
|
460
460
|
y.isReactWarning = !0, Object.defineProperty(m, "key", {
|
|
461
461
|
get: y,
|
|
@@ -466,7 +466,7 @@ function ys() {
|
|
|
466
466
|
function Yn(m, v) {
|
|
467
467
|
{
|
|
468
468
|
var y = function() {
|
|
469
|
-
|
|
469
|
+
Jt || (Jt = !0, k("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", v));
|
|
470
470
|
};
|
|
471
471
|
y.isReactWarning = !0, Object.defineProperty(m, "ref", {
|
|
472
472
|
get: y,
|
|
@@ -474,7 +474,7 @@ function ys() {
|
|
|
474
474
|
});
|
|
475
475
|
}
|
|
476
476
|
}
|
|
477
|
-
var Gn = function(m, v, y, $,
|
|
477
|
+
var Gn = function(m, v, y, $, I, z, R) {
|
|
478
478
|
var A = {
|
|
479
479
|
// This tag allows us to uniquely identify this as a React Element
|
|
480
480
|
$$typeof: t,
|
|
@@ -500,44 +500,44 @@ function ys() {
|
|
|
500
500
|
configurable: !1,
|
|
501
501
|
enumerable: !1,
|
|
502
502
|
writable: !1,
|
|
503
|
-
value:
|
|
503
|
+
value: I
|
|
504
504
|
}), Object.freeze && (Object.freeze(A.props), Object.freeze(A)), A;
|
|
505
505
|
};
|
|
506
|
-
function Jn(m, v, y, $,
|
|
506
|
+
function Jn(m, v, y, $, I) {
|
|
507
507
|
{
|
|
508
|
-
var z, R = {}, A = null,
|
|
509
|
-
y !== void 0 && (
|
|
508
|
+
var z, R = {}, A = null, ue = null;
|
|
509
|
+
y !== void 0 && (Yt(y), A = "" + y), Wn(v) && (Yt(v.key), A = "" + v.key), Un(v) && (ue = v.ref, zn(v, I));
|
|
510
510
|
for (z in v)
|
|
511
|
-
|
|
511
|
+
We.call(v, z) && !Qn.hasOwnProperty(z) && (R[z] = v[z]);
|
|
512
512
|
if (m && m.defaultProps) {
|
|
513
513
|
var q = m.defaultProps;
|
|
514
514
|
for (z in q)
|
|
515
515
|
R[z] === void 0 && (R[z] = q[z]);
|
|
516
516
|
}
|
|
517
|
-
if (A ||
|
|
517
|
+
if (A || ue) {
|
|
518
518
|
var ee = typeof m == "function" ? m.displayName || m.name || "Unknown" : m;
|
|
519
|
-
A && Vn(R, ee),
|
|
519
|
+
A && Vn(R, ee), ue && Yn(R, ee);
|
|
520
520
|
}
|
|
521
|
-
return Gn(m, A,
|
|
521
|
+
return Gn(m, A, ue, I, $, Re.current, R);
|
|
522
522
|
}
|
|
523
523
|
}
|
|
524
|
-
var
|
|
525
|
-
function
|
|
524
|
+
var ht = E.ReactCurrentOwner, Xt = E.ReactDebugCurrentFrame;
|
|
525
|
+
function Me(m) {
|
|
526
526
|
if (m) {
|
|
527
|
-
var v = m._owner, y =
|
|
528
|
-
|
|
527
|
+
var v = m._owner, y = Ue(m.type, m._source, v ? v.type : null);
|
|
528
|
+
Xt.setExtraStackFrame(y);
|
|
529
529
|
} else
|
|
530
|
-
|
|
530
|
+
Xt.setExtraStackFrame(null);
|
|
531
531
|
}
|
|
532
|
-
var
|
|
533
|
-
|
|
534
|
-
function
|
|
532
|
+
var pt;
|
|
533
|
+
pt = !1;
|
|
534
|
+
function gt(m) {
|
|
535
535
|
return typeof m == "object" && m !== null && m.$$typeof === t;
|
|
536
536
|
}
|
|
537
|
-
function
|
|
537
|
+
function Zt() {
|
|
538
538
|
{
|
|
539
|
-
if (
|
|
540
|
-
var m =
|
|
539
|
+
if (ht.current) {
|
|
540
|
+
var m = O(ht.current.type);
|
|
541
541
|
if (m)
|
|
542
542
|
return `
|
|
543
543
|
|
|
@@ -557,10 +557,10 @@ Check your code at ` + v + ":" + y + ".";
|
|
|
557
557
|
return "";
|
|
558
558
|
}
|
|
559
559
|
}
|
|
560
|
-
var
|
|
560
|
+
var Kt = {};
|
|
561
561
|
function Zn(m) {
|
|
562
562
|
{
|
|
563
|
-
var v =
|
|
563
|
+
var v = Zt();
|
|
564
564
|
if (!v) {
|
|
565
565
|
var y = typeof m == "string" ? m : m.displayName || m.name;
|
|
566
566
|
y && (v = `
|
|
@@ -570,35 +570,35 @@ Check the top-level render call using <` + y + ">.");
|
|
|
570
570
|
return v;
|
|
571
571
|
}
|
|
572
572
|
}
|
|
573
|
-
function
|
|
573
|
+
function qt(m, v) {
|
|
574
574
|
{
|
|
575
575
|
if (!m._store || m._store.validated || m.key != null)
|
|
576
576
|
return;
|
|
577
577
|
m._store.validated = !0;
|
|
578
578
|
var y = Zn(v);
|
|
579
|
-
if (
|
|
579
|
+
if (Kt[y])
|
|
580
580
|
return;
|
|
581
|
-
|
|
581
|
+
Kt[y] = !0;
|
|
582
582
|
var $ = "";
|
|
583
|
-
m && m._owner && m._owner !==
|
|
583
|
+
m && m._owner && m._owner !== ht.current && ($ = " It was passed a child from " + O(m._owner.type) + "."), Me(m), k('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', y, $), Me(null);
|
|
584
584
|
}
|
|
585
585
|
}
|
|
586
|
-
function
|
|
586
|
+
function en(m, v) {
|
|
587
587
|
{
|
|
588
588
|
if (typeof m != "object")
|
|
589
589
|
return;
|
|
590
|
-
if (
|
|
590
|
+
if (mt(m))
|
|
591
591
|
for (var y = 0; y < m.length; y++) {
|
|
592
592
|
var $ = m[y];
|
|
593
|
-
|
|
593
|
+
gt($) && qt($, v);
|
|
594
594
|
}
|
|
595
|
-
else if (
|
|
595
|
+
else if (gt(m))
|
|
596
596
|
m._store && (m._store.validated = !0);
|
|
597
597
|
else if (m) {
|
|
598
|
-
var
|
|
599
|
-
if (typeof
|
|
600
|
-
for (var z =
|
|
601
|
-
|
|
598
|
+
var I = g(m);
|
|
599
|
+
if (typeof I == "function" && I !== m.entries)
|
|
600
|
+
for (var z = I.call(m), R; !(R = z.next()).done; )
|
|
601
|
+
gt(R.value) && qt(R.value, v);
|
|
602
602
|
}
|
|
603
603
|
}
|
|
604
604
|
}
|
|
@@ -617,12 +617,12 @@ Check the top-level render call using <` + y + ">.");
|
|
|
617
617
|
else
|
|
618
618
|
return;
|
|
619
619
|
if (y) {
|
|
620
|
-
var $ =
|
|
620
|
+
var $ = O(v);
|
|
621
621
|
On(y, m.props, "prop", $, m);
|
|
622
|
-
} else if (v.PropTypes !== void 0 && !
|
|
623
|
-
|
|
624
|
-
var
|
|
625
|
-
k("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",
|
|
622
|
+
} else if (v.PropTypes !== void 0 && !pt) {
|
|
623
|
+
pt = !0;
|
|
624
|
+
var I = O(v);
|
|
625
|
+
k("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", I || "Unknown");
|
|
626
626
|
}
|
|
627
627
|
typeof v.getDefaultProps == "function" && !v.getDefaultProps.isReactClassApproved && k("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
|
|
628
628
|
}
|
|
@@ -632,72 +632,72 @@ Check the top-level render call using <` + y + ">.");
|
|
|
632
632
|
for (var v = Object.keys(m.props), y = 0; y < v.length; y++) {
|
|
633
633
|
var $ = v[y];
|
|
634
634
|
if ($ !== "children" && $ !== "key") {
|
|
635
|
-
|
|
635
|
+
Me(m), k("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", $), Me(null);
|
|
636
636
|
break;
|
|
637
637
|
}
|
|
638
638
|
}
|
|
639
|
-
m.ref !== null && (
|
|
639
|
+
m.ref !== null && (Me(m), k("Invalid attribute `ref` supplied to `React.Fragment`."), Me(null));
|
|
640
640
|
}
|
|
641
641
|
}
|
|
642
|
-
function
|
|
642
|
+
function tn(m, v, y, $, I, z) {
|
|
643
643
|
{
|
|
644
|
-
var R =
|
|
644
|
+
var R = U(m);
|
|
645
645
|
if (!R) {
|
|
646
646
|
var A = "";
|
|
647
647
|
(m === void 0 || typeof m == "object" && m !== null && Object.keys(m).length === 0) && (A += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
|
|
648
|
-
var
|
|
649
|
-
|
|
648
|
+
var ue = Xn(I);
|
|
649
|
+
ue ? A += ue : A += Zt();
|
|
650
650
|
var q;
|
|
651
|
-
m === null ? q = "null" :
|
|
651
|
+
m === null ? q = "null" : mt(m) ? q = "array" : m !== void 0 && m.$$typeof === t ? (q = "<" + (O(m.type) || "Unknown") + " />", A = " Did you accidentally export a JSX literal instead of a component?") : q = typeof m, k("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", q, A);
|
|
652
652
|
}
|
|
653
|
-
var ee = Jn(m, v, y,
|
|
653
|
+
var ee = Jn(m, v, y, I, z);
|
|
654
654
|
if (ee == null)
|
|
655
655
|
return ee;
|
|
656
656
|
if (R) {
|
|
657
|
-
var
|
|
658
|
-
if (
|
|
657
|
+
var _e = v.children;
|
|
658
|
+
if (_e !== void 0)
|
|
659
659
|
if ($)
|
|
660
|
-
if (
|
|
661
|
-
for (var
|
|
662
|
-
|
|
663
|
-
Object.freeze && Object.freeze(
|
|
660
|
+
if (mt(_e)) {
|
|
661
|
+
for (var Ce = 0; Ce < _e.length; Ce++)
|
|
662
|
+
en(_e[Ce], m);
|
|
663
|
+
Object.freeze && Object.freeze(_e);
|
|
664
664
|
} else
|
|
665
665
|
k("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
|
|
666
666
|
else
|
|
667
|
-
|
|
667
|
+
en(_e, m);
|
|
668
668
|
}
|
|
669
669
|
return m === r ? qn(ee) : Kn(ee), ee;
|
|
670
670
|
}
|
|
671
671
|
}
|
|
672
672
|
function es(m, v, y) {
|
|
673
|
-
return
|
|
673
|
+
return tn(m, v, y, !0);
|
|
674
674
|
}
|
|
675
675
|
function ts(m, v, y) {
|
|
676
|
-
return
|
|
676
|
+
return tn(m, v, y, !1);
|
|
677
677
|
}
|
|
678
678
|
var ns = ts, ss = es;
|
|
679
|
-
|
|
680
|
-
}()),
|
|
679
|
+
Le.Fragment = r, Le.jsx = ns, Le.jsxs = ss;
|
|
680
|
+
}()), Le;
|
|
681
681
|
}
|
|
682
|
-
process.env.NODE_ENV === "production" ?
|
|
683
|
-
var s =
|
|
682
|
+
process.env.NODE_ENV === "production" ? Nt.exports = js() : Nt.exports = ys();
|
|
683
|
+
var s = Nt.exports;
|
|
684
684
|
const Es = () => {
|
|
685
|
-
const [e, t] =
|
|
685
|
+
const [e, t] = L(window.location.pathname), n = () => {
|
|
686
686
|
const r = window.location.pathname;
|
|
687
687
|
t(r);
|
|
688
688
|
};
|
|
689
|
-
return
|
|
689
|
+
return Z(() => (window.addEventListener("popstate", n), () => {
|
|
690
690
|
window.removeEventListener("popstate", n);
|
|
691
691
|
}), []), e;
|
|
692
|
-
},
|
|
693
|
-
const n =
|
|
694
|
-
|
|
692
|
+
}, De = (e, t) => {
|
|
693
|
+
const n = se(!1);
|
|
694
|
+
Z(() => {
|
|
695
695
|
n.current ? e() : n.current = !0;
|
|
696
696
|
}, t);
|
|
697
697
|
};
|
|
698
698
|
function Ss(e, t, n) {
|
|
699
|
-
var r = this, i =
|
|
700
|
-
|
|
699
|
+
var r = this, i = se(null), c = se(0), d = se(null), o = se([]), a = se(), u = se(), l = se(e), f = se(!0);
|
|
700
|
+
Z(function() {
|
|
701
701
|
l.current = e;
|
|
702
702
|
}, [e]);
|
|
703
703
|
var h = !t && t !== 0 && typeof window < "u";
|
|
@@ -705,15 +705,15 @@ function Ss(e, t, n) {
|
|
|
705
705
|
throw new TypeError("Expected a function");
|
|
706
706
|
t = +t || 0;
|
|
707
707
|
var p = !!(n = n || {}).leading, _ = !("trailing" in n) || !!n.trailing, j = "maxWait" in n, g = j ? Math.max(+n.maxWait || 0, t) : null;
|
|
708
|
-
|
|
708
|
+
Z(function() {
|
|
709
709
|
return f.current = !0, function() {
|
|
710
710
|
f.current = !1;
|
|
711
711
|
};
|
|
712
712
|
}, []);
|
|
713
|
-
var E =
|
|
713
|
+
var E = nt(function() {
|
|
714
714
|
var k = function(x) {
|
|
715
|
-
var b = o.current,
|
|
716
|
-
return o.current = a.current = null, c.current = x, u.current = l.current.apply(
|
|
715
|
+
var b = o.current, U = a.current;
|
|
716
|
+
return o.current = a.current = null, c.current = x, u.current = l.current.apply(U, b);
|
|
717
717
|
}, T = function(x, b) {
|
|
718
718
|
h && cancelAnimationFrame(d.current), d.current = h ? requestAnimationFrame(x) : setTimeout(x, b);
|
|
719
719
|
}, M = function(x) {
|
|
@@ -723,55 +723,55 @@ function Ss(e, t, n) {
|
|
|
723
723
|
return !i.current || b >= t || b < 0 || j && x - c.current >= g;
|
|
724
724
|
}, C = function(x) {
|
|
725
725
|
return d.current = null, _ && o.current ? k(x) : (o.current = a.current = null, u.current);
|
|
726
|
-
},
|
|
726
|
+
}, H = function x() {
|
|
727
727
|
var b = Date.now();
|
|
728
728
|
if (M(b))
|
|
729
729
|
return C(b);
|
|
730
730
|
if (f.current) {
|
|
731
|
-
var
|
|
731
|
+
var U = t - (b - i.current), w = j ? Math.min(U, g - (b - c.current)) : U;
|
|
732
732
|
T(x, w);
|
|
733
733
|
}
|
|
734
|
-
},
|
|
734
|
+
}, Y = function() {
|
|
735
735
|
var x = Date.now(), b = M(x);
|
|
736
736
|
if (o.current = [].slice.call(arguments), a.current = r, i.current = x, b) {
|
|
737
737
|
if (!d.current && f.current)
|
|
738
|
-
return c.current = i.current, T(
|
|
738
|
+
return c.current = i.current, T(H, t), p ? k(i.current) : u.current;
|
|
739
739
|
if (j)
|
|
740
|
-
return T(
|
|
740
|
+
return T(H, t), k(i.current);
|
|
741
741
|
}
|
|
742
|
-
return d.current || T(
|
|
742
|
+
return d.current || T(H, t), u.current;
|
|
743
743
|
};
|
|
744
|
-
return
|
|
744
|
+
return Y.cancel = function() {
|
|
745
745
|
d.current && (h ? cancelAnimationFrame(d.current) : clearTimeout(d.current)), c.current = 0, o.current = i.current = a.current = d.current = null;
|
|
746
|
-
},
|
|
746
|
+
}, Y.isPending = function() {
|
|
747
747
|
return !!d.current;
|
|
748
|
-
},
|
|
748
|
+
}, Y.flush = function() {
|
|
749
749
|
return d.current ? C(Date.now()) : u.current;
|
|
750
|
-
},
|
|
750
|
+
}, Y;
|
|
751
751
|
}, [p, j, t, g, _, h]);
|
|
752
752
|
return E;
|
|
753
753
|
}
|
|
754
|
-
function
|
|
754
|
+
function bn(e, t, n) {
|
|
755
755
|
var r = n === void 0 ? {} : n, i = r.leading, c = r.trailing;
|
|
756
756
|
return Ss(e, t, { maxWait: t, leading: i === void 0 || i, trailing: c === void 0 || c });
|
|
757
757
|
}
|
|
758
|
-
let
|
|
759
|
-
const
|
|
758
|
+
let _t;
|
|
759
|
+
const at = (e = !0, t = !1, n = "window") => {
|
|
760
760
|
if (!e)
|
|
761
761
|
return;
|
|
762
762
|
const [r, i] = D.useState(0) || [!1, () => {
|
|
763
763
|
}];
|
|
764
|
-
|
|
765
|
-
clearTimeout(
|
|
764
|
+
Z(() => (o(), window.addEventListener("resize", a), () => {
|
|
765
|
+
clearTimeout(_t), a.flush(), window.removeEventListener("resize", a);
|
|
766
766
|
}), n === "window" ? [] : [n]);
|
|
767
767
|
const d = () => {
|
|
768
768
|
if (n)
|
|
769
769
|
return n === "window" ? window.innerWidth : n.offsetWidth;
|
|
770
770
|
}, o = () => {
|
|
771
771
|
i(d());
|
|
772
|
-
}, a =
|
|
772
|
+
}, a = bn(
|
|
773
773
|
() => {
|
|
774
|
-
d() !== r && (t && (clearTimeout(
|
|
774
|
+
d() !== r && (t && (clearTimeout(_t), document.body.classList.add("is-resizing"), _t = setTimeout(() => {
|
|
775
775
|
document.body.classList.remove("is-resizing");
|
|
776
776
|
}, 550)), o());
|
|
777
777
|
},
|
|
@@ -793,7 +793,7 @@ const rt = (e = !0, t = !1, n = "window") => {
|
|
|
793
793
|
const [i, c] = D.useState({ current: 0, past: 0 }) || [!1, () => {
|
|
794
794
|
}], [d, o] = D.useState({ scrollDown: !1, scrollUp: !1 }) || [!1, () => {
|
|
795
795
|
}];
|
|
796
|
-
|
|
796
|
+
Z(() => (a(), window.addEventListener("scroll", u), () => {
|
|
797
797
|
u.flush(), window.removeEventListener("scroll", u);
|
|
798
798
|
}), []);
|
|
799
799
|
const a = () => {
|
|
@@ -803,14 +803,14 @@ const rt = (e = !0, t = !1, n = "window") => {
|
|
|
803
803
|
return;
|
|
804
804
|
}
|
|
805
805
|
Math.abs(h) >= t.up && !d.scrollUp && (r(), o({ scrollUp: !0, scrollDown: !1 }));
|
|
806
|
-
}, u =
|
|
806
|
+
}, u = bn(() => {
|
|
807
807
|
a();
|
|
808
808
|
}, 250);
|
|
809
809
|
return i;
|
|
810
810
|
}, fo = (e = [], t = !0) => {
|
|
811
811
|
e = Array.isArray(e) ? e : [e];
|
|
812
|
-
const n =
|
|
813
|
-
|
|
812
|
+
const n = se(!1);
|
|
813
|
+
De(() => {
|
|
814
814
|
if (window && window.location && window.location.hash) {
|
|
815
815
|
if (n.current)
|
|
816
816
|
return;
|
|
@@ -824,13 +824,13 @@ const rt = (e = !0, t = !1, n = "window") => {
|
|
|
824
824
|
return t.forEach(({ type: r, value: i }) => {
|
|
825
825
|
is(n, r, i);
|
|
826
826
|
}), n;
|
|
827
|
-
},
|
|
827
|
+
}, wn = (e) => {
|
|
828
828
|
const t = [];
|
|
829
829
|
return e.forEach((n) => {
|
|
830
830
|
const r = parseInt(n);
|
|
831
831
|
isNaN(r) || t.push(r);
|
|
832
832
|
}), t.sort((n, r) => n - r);
|
|
833
|
-
},
|
|
833
|
+
}, vn = (e, t, n) => {
|
|
834
834
|
let r = n.mobile;
|
|
835
835
|
for (const i in t) {
|
|
836
836
|
const c = parseInt(String(t[i]));
|
|
@@ -859,7 +859,7 @@ const rt = (e = !0, t = !1, n = "window") => {
|
|
|
859
859
|
return { path: "days", number: o };
|
|
860
860
|
const a = Math.floor(o / 7);
|
|
861
861
|
return a <= 52 ? { path: "weeks", number: a } : { path: "years", number: Math.floor(o / 365) };
|
|
862
|
-
}, As = (e) => new Promise((t) => setTimeout(t, e)),
|
|
862
|
+
}, As = (e) => new Promise((t) => setTimeout(t, e)), Bt = {
|
|
863
863
|
apolitical: "Apolitical",
|
|
864
864
|
breadcrumbs_label: "Go back to:",
|
|
865
865
|
breadcrumbs_currentPage: "Current page:",
|
|
@@ -1179,11 +1179,11 @@ Thank you for helping to protect the Apolitical community from abusive content.`
|
|
|
1179
1179
|
languageSwitcher_disclaimer: "Este conteúdo foi traduzido automaticamente e, ocasionalmente, poderão ocorrer erros de linguagem de gênero ou outras traduções diretas. Estamos tentando resolver isso, porém se perceber algo errado por favor nos avise em <link>{email}</link>"
|
|
1180
1180
|
}, Rs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1181
1181
|
__proto__: null,
|
|
1182
|
-
en:
|
|
1182
|
+
en: Bt,
|
|
1183
1183
|
es: Ds,
|
|
1184
1184
|
fr: Ns,
|
|
1185
1185
|
pt: Ps
|
|
1186
|
-
}, Symbol.toStringTag, { value: "Module" })), Fs = (e) => e in
|
|
1186
|
+
}, Symbol.toStringTag, { value: "Module" })), Fs = (e) => e in Bt, xe = (e, t, n, r, i = {}) => {
|
|
1187
1187
|
let c = "";
|
|
1188
1188
|
return Fs(`${t}_${n}`) ? c = e({ id: `${t}_${n}` }, i) : c = e({ id: t }, { [r]: n, ...i }), c;
|
|
1189
1189
|
}, Ls = (e, t, n) => {
|
|
@@ -1200,9 +1200,9 @@ Thank you for helping to protect the Apolitical community from abusive content.`
|
|
|
1200
1200
|
}
|
|
1201
1201
|
}
|
|
1202
1202
|
return r;
|
|
1203
|
-
},
|
|
1203
|
+
}, kn = (e, t) => D.Children.map(e, (n) => D.cloneElement(n, {
|
|
1204
1204
|
...t
|
|
1205
|
-
})), Os = (e) => e.replace(/\s+/g, "").length > 0,
|
|
1205
|
+
})), Os = (e) => e.replace(/\s+/g, "").length > 0, X = ({
|
|
1206
1206
|
variant: e = "primary",
|
|
1207
1207
|
size: t = "medium",
|
|
1208
1208
|
styling: n = { muted: !1, fullWidth: !1 },
|
|
@@ -1216,10 +1216,10 @@ Thank you for helping to protect the Apolitical community from abusive content.`
|
|
|
1216
1216
|
children: l = !1,
|
|
1217
1217
|
...f
|
|
1218
1218
|
}) => {
|
|
1219
|
-
const p =
|
|
1219
|
+
const p = at(typeof t == "object");
|
|
1220
1220
|
if (typeof t == "object" && typeof p == "number") {
|
|
1221
|
-
const g = Object.assign({}, t), E =
|
|
1222
|
-
t =
|
|
1221
|
+
const g = Object.assign({}, t), E = wn(Object.keys(g));
|
|
1222
|
+
t = vn(p, E, g);
|
|
1223
1223
|
}
|
|
1224
1224
|
const _ = [];
|
|
1225
1225
|
typeof t == "string" && _.push(t), r && (_.push("icon"), typeof r == "object" ? (_.push(r.icon), r.position ? _.push(r.position) : _.push("left"), r.hover && _.push(`hover_${r.hover}`), r.animate && (_.push("animate"), typeof r.animate == "string" && _.push(r.animate))) : (_.push(r), !r.includes("right") && !r.includes("left") && _.push("left"))), n.muted && _.push("muted"), n.fullWidth && _.push("full-width");
|
|
@@ -1238,16 +1238,16 @@ Thank you for helping to protect the Apolitical community from abusive content.`
|
|
|
1238
1238
|
return i && (c = "a", j.href = i), D.createElement(
|
|
1239
1239
|
c,
|
|
1240
1240
|
j,
|
|
1241
|
-
l || (u ? /* @__PURE__ */ s.jsx(
|
|
1241
|
+
l || (u ? /* @__PURE__ */ s.jsx(de, { showOnFocus: !1, children: u }) : null)
|
|
1242
1242
|
);
|
|
1243
|
-
},
|
|
1244
|
-
const r = e.length > 1 ? "ul" : "p", i = e.map((c, d) => r === "p" ? /* @__PURE__ */ s.jsx(
|
|
1243
|
+
}, it = ({ buttons: e, className: t = "", ...n }) => {
|
|
1244
|
+
const r = e.length > 1 ? "ul" : "p", i = e.map((c, d) => r === "p" ? /* @__PURE__ */ s.jsx(X, { ...c }, d) : /* @__PURE__ */ s.jsx("li", { children: /* @__PURE__ */ s.jsx(X, { ...c }) }, d));
|
|
1245
1245
|
return D.createElement(r, { className: S("button-wrapper", t), ...n, children: i });
|
|
1246
1246
|
};
|
|
1247
|
-
const
|
|
1247
|
+
const Ne = ({ className: e = "", maxWidth: t = !1 }) => {
|
|
1248
1248
|
const n = t ? { "--max-width": `${t / 16}rem` } : {};
|
|
1249
1249
|
return /* @__PURE__ */ s.jsx("hr", { className: S(e, { "has-max-width": t }), style: n });
|
|
1250
|
-
},
|
|
1250
|
+
}, lt = ({
|
|
1251
1251
|
href: e,
|
|
1252
1252
|
children: t,
|
|
1253
1253
|
fallbackElement: n,
|
|
@@ -1270,7 +1270,7 @@ const Ae = ({ className: e = "", maxWidth: t = !1 }) => {
|
|
|
1270
1270
|
);
|
|
1271
1271
|
}
|
|
1272
1272
|
return n ? D.createElement(n, { children: t, className: r, ...o }) : t;
|
|
1273
|
-
},
|
|
1273
|
+
}, on = {
|
|
1274
1274
|
card: {
|
|
1275
1275
|
range: [
|
|
1276
1276
|
{
|
|
@@ -1378,12 +1378,12 @@ const Ae = ({ className: e = "", maxWidth: t = !1 }) => {
|
|
|
1378
1378
|
range: t,
|
|
1379
1379
|
sizes: n
|
|
1380
1380
|
}) => {
|
|
1381
|
-
const { range: r, sizes: i } = e ?
|
|
1381
|
+
const { range: r, sizes: i } = e ? on[e] : on.fallback;
|
|
1382
1382
|
return { range: t && t.length > 0 ? t : r, sizes: n || i };
|
|
1383
1383
|
}, Is = ({ format: e, height: t, query: n, width: r }) => {
|
|
1384
1384
|
let i = `w=${r}&h=${t}`;
|
|
1385
1385
|
return i = e ? `${i}&fm=${e}` : i, i = n ? `${i}&${n}` : i, i;
|
|
1386
|
-
},
|
|
1386
|
+
}, xt = ({ format: e, range: t, url: n, query: r }) => t.map(({ height: i, width: c }) => `${n}?${Is({
|
|
1387
1387
|
format: e,
|
|
1388
1388
|
height: i,
|
|
1389
1389
|
query: r,
|
|
@@ -1400,7 +1400,7 @@ const Hs = ({ image: e, className: t, testId: n }) => {
|
|
|
1400
1400
|
loading: u,
|
|
1401
1401
|
decoding: l,
|
|
1402
1402
|
fetchPriority: f
|
|
1403
|
-
} = e, { range: h, sizes: p } = Bs(e), _ =
|
|
1403
|
+
} = e, { range: h, sizes: p } = Bs(e), _ = xt({ format: "avif", query: d, range: h, url: o }), j = xt({ format: "webp", query: d, range: h, url: o }), g = xt({ format: "", query: d, range: h, url: o });
|
|
1404
1404
|
return /* @__PURE__ */ s.jsxs("picture", { className: t, children: [
|
|
1405
1405
|
c !== "image/gif" && /* @__PURE__ */ s.jsx(
|
|
1406
1406
|
"source",
|
|
@@ -1437,10 +1437,10 @@ const Hs = ({ image: e, className: t, testId: n }) => {
|
|
|
1437
1437
|
)
|
|
1438
1438
|
] });
|
|
1439
1439
|
};
|
|
1440
|
-
let
|
|
1440
|
+
let Oe = !1;
|
|
1441
1441
|
const Qs = ({ isOpen: e = !1, isLoading: t = !1, children: n }) => {
|
|
1442
|
-
const r = N(), i =
|
|
1443
|
-
|
|
1442
|
+
const r = N(), i = se(null), [c, d] = L("hidden");
|
|
1443
|
+
Z(() => {
|
|
1444
1444
|
const a = i.current;
|
|
1445
1445
|
if (a)
|
|
1446
1446
|
return a.addEventListener("transitionend", o), () => {
|
|
@@ -1448,17 +1448,17 @@ const Qs = ({ isOpen: e = !1, isLoading: t = !1, children: n }) => {
|
|
|
1448
1448
|
};
|
|
1449
1449
|
}, []);
|
|
1450
1450
|
const o = ({ propertyName: a }) => {
|
|
1451
|
-
a === "opacity" && (
|
|
1451
|
+
a === "opacity" && (Oe !== !1 && clearTimeout(Oe), d((u) => u === "opening" ? "open" : u === "closing" ? "closed" : u === "closed" ? "hidden" : u));
|
|
1452
1452
|
};
|
|
1453
|
-
return
|
|
1454
|
-
|
|
1453
|
+
return De(() => {
|
|
1454
|
+
Oe !== !1 && clearTimeout(Oe);
|
|
1455
1455
|
let a = "open";
|
|
1456
|
-
e ? d("opening") : (d("closing"), a = "hidden"),
|
|
1456
|
+
e ? d("opening") : (d("closing"), a = "hidden"), Oe = setTimeout(() => {
|
|
1457
1457
|
d(a);
|
|
1458
1458
|
}, 300);
|
|
1459
1459
|
}, [e]), /* @__PURE__ */ s.jsx("aside", { ref: i, className: S("tooltip text-medium", c, { loading: t }), hidden: c === "hidden", children: t ? /* @__PURE__ */ s.jsx("p", { children: r.formatMessage({ id: "tooltip_loading" }) }) : typeof n == "string" ? /* @__PURE__ */ s.jsx("p", { children: n }) : n });
|
|
1460
1460
|
};
|
|
1461
|
-
const
|
|
1461
|
+
const jn = ({ children: e, className: t = "", ...n }) => /* @__PURE__ */ s.jsx("section", { className: S("full-width-section", t), ...n, children: e });
|
|
1462
1462
|
const ho = ({ text: e, buttons: t, className: n = "" }) => {
|
|
1463
1463
|
const r = [];
|
|
1464
1464
|
return t.forEach((i) => {
|
|
@@ -1472,9 +1472,9 @@ const ho = ({ text: e, buttons: t, className: n = "" }) => {
|
|
|
1472
1472
|
target: "_blank",
|
|
1473
1473
|
children: i.text
|
|
1474
1474
|
});
|
|
1475
|
-
}), /* @__PURE__ */ s.jsx(
|
|
1475
|
+
}), /* @__PURE__ */ s.jsx(jn, { className: S("download-section", n), children: /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
|
|
1476
1476
|
D.createElement(typeof e == "string" ? "h2" : e.element, { className: "text" }, typeof e == "string" ? e : e.text),
|
|
1477
|
-
/* @__PURE__ */ s.jsx(
|
|
1477
|
+
/* @__PURE__ */ s.jsx(it, { buttons: r })
|
|
1478
1478
|
] }) });
|
|
1479
1479
|
};
|
|
1480
1480
|
const po = ({ title: e = !1, logos: t = [], className: n = "" }) => {
|
|
@@ -1536,7 +1536,7 @@ const Us = [
|
|
|
1536
1536
|
"h6",
|
|
1537
1537
|
"blockquote",
|
|
1538
1538
|
"q"
|
|
1539
|
-
],
|
|
1539
|
+
], Ws = ({
|
|
1540
1540
|
className: e = "",
|
|
1541
1541
|
content: t,
|
|
1542
1542
|
image: n,
|
|
@@ -1571,7 +1571,7 @@ const Us = [
|
|
|
1571
1571
|
const f = document.getElementById(c.link.substring(1));
|
|
1572
1572
|
f && f.scrollIntoView({ behavior: "smooth" });
|
|
1573
1573
|
}), /* @__PURE__ */ s.jsx(
|
|
1574
|
-
|
|
1574
|
+
jn,
|
|
1575
1575
|
{
|
|
1576
1576
|
className: S("banner-section", r, i, e, {
|
|
1577
1577
|
"has-image": n,
|
|
@@ -1592,7 +1592,7 @@ const Us = [
|
|
|
1592
1592
|
}),
|
|
1593
1593
|
d,
|
|
1594
1594
|
c && c.text && c.link && /* @__PURE__ */ s.jsx(
|
|
1595
|
-
|
|
1595
|
+
X,
|
|
1596
1596
|
{
|
|
1597
1597
|
variant: n || r === "light" ? "primary" : "secondary",
|
|
1598
1598
|
size: { mobile: "medium", 768: "large" },
|
|
@@ -1606,7 +1606,7 @@ const Us = [
|
|
|
1606
1606
|
] })
|
|
1607
1607
|
}
|
|
1608
1608
|
);
|
|
1609
|
-
}, go =
|
|
1609
|
+
}, go = Pe(Ws);
|
|
1610
1610
|
const _o = ({
|
|
1611
1611
|
variant: e = "primary",
|
|
1612
1612
|
button: t = null,
|
|
@@ -1616,8 +1616,8 @@ const _o = ({
|
|
|
1616
1616
|
}) => !n && !r ? null : /* @__PURE__ */ s.jsxs("aside", { className: S("marketing-block", e), children: [
|
|
1617
1617
|
n && /* @__PURE__ */ s.jsx("p", { className: "title", children: n }),
|
|
1618
1618
|
r && /* @__PURE__ */ s.jsx("p", { children: r }),
|
|
1619
|
-
t && /* @__PURE__ */ s.jsx(
|
|
1620
|
-
] }),
|
|
1619
|
+
t && /* @__PURE__ */ s.jsx(X, { variant: "secondary", size: "medium", href: t.link, className: "gtm-trackable", "data-gtm-event-context": i, "data-gtm-event-type": "learn-more-click", children: t.text })
|
|
1620
|
+
] }), Pt = "https://storage.googleapis.com/apolitical-assets/", Be = {
|
|
1621
1621
|
general: "hello@apolitical.co",
|
|
1622
1622
|
support: "concierge@apolitical.co",
|
|
1623
1623
|
"data-protection": {
|
|
@@ -1625,25 +1625,25 @@ const _o = ({
|
|
|
1625
1625
|
eu: "dpo.agl@apolitical.foundation"
|
|
1626
1626
|
}
|
|
1627
1627
|
}, xo = "200,000+";
|
|
1628
|
-
const
|
|
1628
|
+
const yn = ({ label: e = !1, className: t = "", children: n }) => {
|
|
1629
1629
|
const r = N();
|
|
1630
1630
|
return /* @__PURE__ */ s.jsxs("details", { className: S("collapsible-section", t), children: [
|
|
1631
1631
|
/* @__PURE__ */ s.jsx("summary", { children: e || r.formatMessage({ id: "collapsibleSection_summary" }) }),
|
|
1632
1632
|
/* @__PURE__ */ s.jsx("div", { className: "content", children: n })
|
|
1633
1633
|
] });
|
|
1634
1634
|
};
|
|
1635
|
-
const
|
|
1636
|
-
const
|
|
1635
|
+
const Se = ({ variant: e = "primary", className: t = "", children: n, ...r }) => /* @__PURE__ */ s.jsx("div", { className: S("highlighted-text-box", e, t), ...r, children: n });
|
|
1636
|
+
const ct = ({
|
|
1637
1637
|
variant: e = "empty",
|
|
1638
1638
|
text: t = !1,
|
|
1639
1639
|
button: n = !1,
|
|
1640
1640
|
className: r = ""
|
|
1641
1641
|
}) => {
|
|
1642
1642
|
let i = n && !!Object.keys(n).length;
|
|
1643
|
-
const c = typeof n == "object" && "breakpoints" in n, d =
|
|
1643
|
+
const c = typeof n == "object" && "breakpoints" in n, d = at(c);
|
|
1644
1644
|
if (c && typeof n == "object" && typeof d == "number") {
|
|
1645
|
-
const f = Object.assign({}, n.breakpoints), h =
|
|
1646
|
-
i =
|
|
1645
|
+
const f = Object.assign({}, n.breakpoints), h = wn(Object.keys(f));
|
|
1646
|
+
i = vn(d, h, f);
|
|
1647
1647
|
}
|
|
1648
1648
|
const {
|
|
1649
1649
|
breakpoints: o,
|
|
@@ -1652,14 +1652,14 @@ const it = ({
|
|
|
1652
1652
|
...l
|
|
1653
1653
|
} = n;
|
|
1654
1654
|
return /* @__PURE__ */ s.jsx(
|
|
1655
|
-
|
|
1655
|
+
Se,
|
|
1656
1656
|
{
|
|
1657
1657
|
variant: "subtle",
|
|
1658
1658
|
className: S("empty-state-box", e, r),
|
|
1659
1659
|
children: /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
|
|
1660
|
-
t && /* @__PURE__ */ s.jsx(
|
|
1660
|
+
t && /* @__PURE__ */ s.jsx(rt, { options: { forceBlock: !0 }, children: t }),
|
|
1661
1661
|
i && typeof n == "object" && (u || /* @__PURE__ */ s.jsx(
|
|
1662
|
-
|
|
1662
|
+
X,
|
|
1663
1663
|
{
|
|
1664
1664
|
...l,
|
|
1665
1665
|
variant: n.variant ? n.variant : "secondary",
|
|
@@ -1670,39 +1670,39 @@ const it = ({
|
|
|
1670
1670
|
}
|
|
1671
1671
|
);
|
|
1672
1672
|
};
|
|
1673
|
-
const
|
|
1673
|
+
const Rt = ({ children: e, ...t }) => /* @__PURE__ */ s.jsx("p", { ...t, children: e }), En = { q: Rt, blockquote: Rt };
|
|
1674
1674
|
for (let e = 1; e <= 6; e++)
|
|
1675
|
-
|
|
1676
|
-
const
|
|
1675
|
+
En[`h${e}`] = { component: Rt, props: { className: "title" } };
|
|
1676
|
+
const zs = ({ type: e = "default", className: t = "", heading: n = !1, children: r }) => /* @__PURE__ */ s.jsxs("div", { className: S("helper-text-box text-small", e, t), children: [
|
|
1677
1677
|
n && /* @__PURE__ */ s.jsx("p", { className: "title", children: n }),
|
|
1678
1678
|
typeof r == "string" ? /* @__PURE__ */ s.jsx(
|
|
1679
|
-
|
|
1679
|
+
rt,
|
|
1680
1680
|
{
|
|
1681
1681
|
options: {
|
|
1682
1682
|
wrapper: D.Fragment,
|
|
1683
1683
|
forceBlock: !0,
|
|
1684
|
-
overrides:
|
|
1684
|
+
overrides: En
|
|
1685
1685
|
},
|
|
1686
1686
|
children: r
|
|
1687
1687
|
}
|
|
1688
1688
|
) : /* @__PURE__ */ s.jsx("p", { children: r })
|
|
1689
1689
|
] });
|
|
1690
1690
|
const bo = ({ className: e = "", show: t = !1, hide: n = !1, text: r, children: i }) => {
|
|
1691
|
-
const c = N(), d =
|
|
1692
|
-
|
|
1691
|
+
const c = N(), d = se(null), [o, a] = L(""), [u, l] = L("closed");
|
|
1692
|
+
Z(() => {
|
|
1693
1693
|
const p = d.current;
|
|
1694
1694
|
if (p)
|
|
1695
1695
|
return p.addEventListener("transitionend", f), () => {
|
|
1696
1696
|
p.removeEventListener("transitionend", f);
|
|
1697
1697
|
};
|
|
1698
|
-
}, []),
|
|
1698
|
+
}, []), Z(() => {
|
|
1699
1699
|
if (!r || typeof r != "string")
|
|
1700
1700
|
return;
|
|
1701
1701
|
const p = r.split(`
|
|
1702
1702
|
`);
|
|
1703
1703
|
a(p.length < 3 ? `${r.substring(0, 400)}...` : p.slice(0, 3).join(`
|
|
1704
1704
|
`));
|
|
1705
|
-
}, [r]),
|
|
1705
|
+
}, [r]), Z(() => {
|
|
1706
1706
|
u === "ready-to-close" && l("closing");
|
|
1707
1707
|
}, [u]);
|
|
1708
1708
|
const f = ({ propertyName: p }) => {
|
|
@@ -1711,13 +1711,13 @@ const bo = ({ className: e = "", show: t = !1, hide: n = !1, text: r, children:
|
|
|
1711
1711
|
if (!r)
|
|
1712
1712
|
return null;
|
|
1713
1713
|
const h = ["opening", "open"].includes(u);
|
|
1714
|
-
return /* @__PURE__ */ s.jsxs(
|
|
1714
|
+
return /* @__PURE__ */ s.jsxs(Se, { variant: "subtle", className: S("hide-show-text-box", e), children: [
|
|
1715
1715
|
/* @__PURE__ */ s.jsxs("div", { ref: d, className: S("content", u), children: [
|
|
1716
|
-
/* @__PURE__ */ s.jsx(
|
|
1716
|
+
/* @__PURE__ */ s.jsx(rt, { options: { forceBlock: !0 }, children: u === "closed" ? o : r }),
|
|
1717
1717
|
u !== "closed" && i
|
|
1718
1718
|
] }),
|
|
1719
1719
|
/* @__PURE__ */ s.jsx("p", { className: "cta", children: /* @__PURE__ */ s.jsx(
|
|
1720
|
-
|
|
1720
|
+
X,
|
|
1721
1721
|
{
|
|
1722
1722
|
variant: "tertiary",
|
|
1723
1723
|
icon: { icon: "navigation_arrow", position: "left", animate: !0 },
|
|
@@ -1730,17 +1730,17 @@ const bo = ({ className: e = "", show: t = !1, hide: n = !1, text: r, children:
|
|
|
1730
1730
|
}
|
|
1731
1731
|
) })
|
|
1732
1732
|
] });
|
|
1733
|
-
}, Vs = () => D.Fragment, Ys = ({ children: e }) => /* @__PURE__ */ s.jsx(
|
|
1733
|
+
}, Vs = () => D.Fragment, Ys = ({ children: e }) => /* @__PURE__ */ s.jsx(Se, { variant: "secondary", children: e }), Gs = ["span", "strong", "h1", "h2", "h3", "h4", "h5", "h6", "p"], Js = ({ children: e }) => {
|
|
1734
1734
|
const t = N();
|
|
1735
1735
|
if (!e)
|
|
1736
1736
|
return null;
|
|
1737
1737
|
let n = t.formatMessage({ id: "markdown_collapsibleSection_summary" });
|
|
1738
1738
|
const r = [];
|
|
1739
|
-
for (const c of
|
|
1739
|
+
for (const c of At.toArray(e))
|
|
1740
1740
|
if (!(!c || typeof c == "string" || typeof c == "number"))
|
|
1741
1741
|
if (D.isValidElement(c) && c.type === "summary") {
|
|
1742
1742
|
if (c.props && c.props.children) {
|
|
1743
|
-
for (const d of
|
|
1743
|
+
for (const d of At.toArray(c.props.children))
|
|
1744
1744
|
if (!(!d || typeof d == "string" || typeof d == "number") && D.isValidElement(d)) {
|
|
1745
1745
|
const o = d.type;
|
|
1746
1746
|
if (Gs.includes(o)) {
|
|
@@ -1754,7 +1754,7 @@ const bo = ({ className: e = "", show: t = !1, hide: n = !1, text: r, children:
|
|
|
1754
1754
|
r.push(c);
|
|
1755
1755
|
const i = n ? n.toString() : "";
|
|
1756
1756
|
return /* @__PURE__ */ s.jsx(
|
|
1757
|
-
|
|
1757
|
+
yn,
|
|
1758
1758
|
{
|
|
1759
1759
|
label: i,
|
|
1760
1760
|
className: ["Sources", "Resources"].includes(i) ? "discrete-links" : "",
|
|
@@ -1765,12 +1765,12 @@ const bo = ({ className: e = "", show: t = !1, hide: n = !1, text: r, children:
|
|
|
1765
1765
|
if (t.class)
|
|
1766
1766
|
switch (t.class) {
|
|
1767
1767
|
case "casestudy":
|
|
1768
|
-
return /* @__PURE__ */ s.jsx(
|
|
1768
|
+
return /* @__PURE__ */ s.jsx(Se, { variant: "secondary", children: e });
|
|
1769
1769
|
case "general-textbox":
|
|
1770
1770
|
case "highlight-box":
|
|
1771
|
-
return /* @__PURE__ */ s.jsx(
|
|
1771
|
+
return /* @__PURE__ */ s.jsx(Se, { variant: "primary", children: e });
|
|
1772
1772
|
case "pink-textbox":
|
|
1773
|
-
return /* @__PURE__ */ s.jsx(
|
|
1773
|
+
return /* @__PURE__ */ s.jsx(Se, { variant: "tertiary", children: e });
|
|
1774
1774
|
default:
|
|
1775
1775
|
return /* @__PURE__ */ s.jsx("div", { ...t, children: e });
|
|
1776
1776
|
}
|
|
@@ -1780,30 +1780,30 @@ const bo = ({ className: e = "", show: t = !1, hide: n = !1, text: r, children:
|
|
|
1780
1780
|
let r = "default";
|
|
1781
1781
|
const i = e.src;
|
|
1782
1782
|
return i.includes("youtube") || i.includes("vimeo") ? r = "video" : i.includes("riddle") || i.includes("sli.do") ? r = "poll" : i.includes("padlet") && (r = "padlet"), /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
|
|
1783
|
-
/* @__PURE__ */ s.jsx(
|
|
1783
|
+
/* @__PURE__ */ s.jsx(de, { children: /* @__PURE__ */ s.jsx("a", { href: `#content-after-iframe-${n}`, children: t.formatMessage({ id: `markdown_skip${r === "default" ? "" : `_${r}`}` }) }) }),
|
|
1784
1784
|
/* @__PURE__ */ s.jsx("iframe", { ...e, title: t.formatMessage({ id: `markdown_iframe${r === "default" ? "" : `_${r}`}` }) }),
|
|
1785
1785
|
/* @__PURE__ */ s.jsx("span", { id: `content-after-iframe-${n}`, tabIndex: -1 })
|
|
1786
1786
|
] });
|
|
1787
|
-
},
|
|
1787
|
+
}, an = (e) => {
|
|
1788
1788
|
let t = "";
|
|
1789
1789
|
return e && typeof e != "string" && typeof e != "number" && typeof e != "boolean" && "type" in e && (t = e.type), t;
|
|
1790
1790
|
}, Ks = ({ children: e, ...t }) => {
|
|
1791
1791
|
let n = { ...t };
|
|
1792
1792
|
t.href && (t.href.includes("http:") || t.href.includes("https:")) && !t.target && (n.target = "_blank");
|
|
1793
1793
|
let r = e, i = !1;
|
|
1794
|
-
for (const c of
|
|
1794
|
+
for (const c of At.toArray(e))
|
|
1795
1795
|
if (!(!c || typeof c == "string" || typeof c == "number") && D.isValidElement(c)) {
|
|
1796
1796
|
const d = c.type;
|
|
1797
1797
|
if (["button", "center", "span", "strong"].includes(d) && c.props && c.props.children && c.props.children[0])
|
|
1798
|
-
for ((d === "button" ||
|
|
1798
|
+
for ((d === "button" || an(c.props.children[0]) === "button") && (i = !0), r = c.props.children[0]; r && typeof r != "string" && !(typeof r == "boolean" || typeof r == "number" || !D.isValidElement(r)); )
|
|
1799
1799
|
if (r.props && r.props.children && r.props.children[0])
|
|
1800
|
-
r = r.props.children[0], r &&
|
|
1800
|
+
r = r.props.children[0], r && an(r) === "button" && (i = !0);
|
|
1801
1801
|
else
|
|
1802
1802
|
break;
|
|
1803
1803
|
}
|
|
1804
|
-
return i ? (n = { ...n, className: "button primary medium" }, /* @__PURE__ */ s.jsx("p", { className: "center", children: /* @__PURE__ */ s.jsx(
|
|
1804
|
+
return i ? (n = { ...n, className: "button primary medium" }, /* @__PURE__ */ s.jsx("p", { className: "center", children: /* @__PURE__ */ s.jsx(X, { variant: "primary", size: "medium", ...n, children: r }) })) : /* @__PURE__ */ s.jsx("a", { ...n, children: r });
|
|
1805
1805
|
}, qs = ({ children: e }) => /* @__PURE__ */ s.jsx("span", { children: e });
|
|
1806
|
-
const
|
|
1806
|
+
const ln = ({ className: e = "", options: t = {}, children: n }) => {
|
|
1807
1807
|
n = n.replace(/^<br\/?>/, "");
|
|
1808
1808
|
const r = {
|
|
1809
1809
|
wrapper: D.Fragment,
|
|
@@ -1812,8 +1812,8 @@ const on = ({ className: e = "", options: t = {}, children: n }) => {
|
|
|
1812
1812
|
a: Ks,
|
|
1813
1813
|
// Override psuedo-code
|
|
1814
1814
|
// We give the content team psuedo-code short cuts to use in Contentful
|
|
1815
|
-
CollapsibleSection:
|
|
1816
|
-
TextBox:
|
|
1815
|
+
CollapsibleSection: yn,
|
|
1816
|
+
TextBox: Se,
|
|
1817
1817
|
CaseStudy: Ys,
|
|
1818
1818
|
// Override embedded HTML
|
|
1819
1819
|
// Our content team previously used real HTML, which we need to tear out and replace with React components
|
|
@@ -1823,7 +1823,7 @@ const on = ({ className: e = "", options: t = {}, children: n }) => {
|
|
|
1823
1823
|
iframe: Zs
|
|
1824
1824
|
}
|
|
1825
1825
|
};
|
|
1826
|
-
return /* @__PURE__ */ s.jsx("div", { className: S("markdown-text", e), children: /* @__PURE__ */ s.jsx(
|
|
1826
|
+
return /* @__PURE__ */ s.jsx("div", { className: S("markdown-text", e), children: /* @__PURE__ */ s.jsx(rt, { options: { ...r, ...t }, children: n }) });
|
|
1827
1827
|
};
|
|
1828
1828
|
const er = ({
|
|
1829
1829
|
size: e = "medium",
|
|
@@ -1832,25 +1832,25 @@ const er = ({
|
|
|
1832
1832
|
children: r,
|
|
1833
1833
|
...i
|
|
1834
1834
|
}) => /* @__PURE__ */ s.jsx("span", { className: S("pill", e, t, n), ...i, children: r });
|
|
1835
|
-
const
|
|
1835
|
+
const Ft = ({ element: e = "p", children: t = null, className: n = "", ...r }) => D.createElement(e, { ...r, className: S("status-banner text-small", n), "aria-live": "assertive" }, t);
|
|
1836
1836
|
const tr = ({ progress: e = 0, text: t = !1, className: n = "" }) => {
|
|
1837
1837
|
const r = N(), i = e > 75 ? 100 : e > 50 ? 75 : e > 25 ? 50 : e > 5 ? 25 : 0, c = { "--progress": `${e}%` };
|
|
1838
|
-
return /* @__PURE__ */ s.jsx("span", { className: S(`progress-bar section-${i}`, n), style: c, children: /* @__PURE__ */ s.jsx(
|
|
1839
|
-
}, nr =
|
|
1840
|
-
const
|
|
1838
|
+
return /* @__PURE__ */ s.jsx("span", { className: S(`progress-bar section-${i}`, n), style: c, children: /* @__PURE__ */ s.jsx(de, { children: t ? `${e} ${t}` : r.formatMessage({ id: "progressBar" }, { number: e }) }) });
|
|
1839
|
+
}, nr = Pe(tr);
|
|
1840
|
+
const bt = "loadingBlock_", sr = ({ progress: e = 0, steps: t = !1, className: n = "" }) => {
|
|
1841
1841
|
const r = N();
|
|
1842
1842
|
t || (t = {
|
|
1843
|
-
0: { text: r.formatMessage({ id: `${
|
|
1844
|
-
75: { text: r.formatMessage({ id: `${
|
|
1845
|
-
100: { text: r.formatMessage({ id: `${
|
|
1843
|
+
0: { text: r.formatMessage({ id: `${bt}loading` }) },
|
|
1844
|
+
75: { text: r.formatMessage({ id: `${bt}almostDone` }) },
|
|
1845
|
+
100: { text: r.formatMessage({ id: `${bt}complete` }) }
|
|
1846
1846
|
});
|
|
1847
1847
|
let i = null;
|
|
1848
1848
|
const c = Object.keys(t);
|
|
1849
1849
|
for (let o = 0; o < c.length && !(e < parseInt(c[o])); o++)
|
|
1850
1850
|
i = c[o];
|
|
1851
|
-
const d = i && t[i].icon ? { "--icon": `url(${
|
|
1851
|
+
const d = i && t[i].icon ? { "--icon": `url(${Pt}icons/${t[i].icon}.svg)` } : {};
|
|
1852
1852
|
return /* @__PURE__ */ s.jsxs(
|
|
1853
|
-
|
|
1853
|
+
Se,
|
|
1854
1854
|
{
|
|
1855
1855
|
className: S("loading-block", n, { "has-icon": i && t[i].icon }),
|
|
1856
1856
|
variant: "subtle",
|
|
@@ -1861,9 +1861,9 @@ const _t = "loadingBlock_", sr = ({ progress: e = 0, steps: t = !1, className: n
|
|
|
1861
1861
|
]
|
|
1862
1862
|
}
|
|
1863
1863
|
);
|
|
1864
|
-
},
|
|
1865
|
-
const
|
|
1866
|
-
const
|
|
1864
|
+
}, wo = Pe(sr);
|
|
1865
|
+
const ye = ({ element: e = "div", className: t = "", ...n }) => /* @__PURE__ */ s.jsx(xn, { element: e, className: S("loading-placeholder", t), ...n });
|
|
1866
|
+
const Lt = {
|
|
1867
1867
|
header: ["logo", "link", "link", "search"],
|
|
1868
1868
|
sidebar: ["text", "text", "text", "text", "text"],
|
|
1869
1869
|
"cards-section": ["subtitle", "cards"],
|
|
@@ -1880,29 +1880,29 @@ const Rt = {
|
|
|
1880
1880
|
"cards-section",
|
|
1881
1881
|
"footer"
|
|
1882
1882
|
]
|
|
1883
|
-
},
|
|
1883
|
+
}, Sn = (e, t) => e in Lt ? /* @__PURE__ */ s.jsx("div", { className: e, children: Lt[e].map((n, r) => Sn(n, r)) }, t) : /* @__PURE__ */ s.jsx(ye, { className: e }, t), rr = ({ layout: e = "overview-page", ...t }) => /* @__PURE__ */ s.jsx("div", { className: S("loading-state", e), ...t, children: Lt[e].map((n, r) => Sn(n, r)) }), Tn = (e) => {
|
|
1884
1884
|
const t = e && e.toUpperCase().split(" ");
|
|
1885
1885
|
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) : "";
|
|
1886
|
-
},
|
|
1887
|
-
const t = Math.ceil(26 /
|
|
1886
|
+
}, Ve = ["#5AB6A3", "#A2D7AF", "#806056", "#3962B3"], or = (e) => {
|
|
1887
|
+
const t = Math.ceil(26 / Ve.length), n = Tn(e).toLowerCase();
|
|
1888
1888
|
if (n === "")
|
|
1889
|
-
return
|
|
1889
|
+
return Ve[0];
|
|
1890
1890
|
const r = n.charCodeAt(0) - 96;
|
|
1891
|
-
for (let i = 0; i <
|
|
1891
|
+
for (let i = 0; i < Ve.length; i++)
|
|
1892
1892
|
if (r <= t * (i + 1))
|
|
1893
|
-
return
|
|
1893
|
+
return Ve[i];
|
|
1894
1894
|
};
|
|
1895
|
-
const
|
|
1895
|
+
const cn = 256, It = ({
|
|
1896
1896
|
className: e = "",
|
|
1897
1897
|
src: t = "",
|
|
1898
1898
|
name: n,
|
|
1899
1899
|
alt: r,
|
|
1900
|
-
width: i =
|
|
1901
|
-
height: c =
|
|
1900
|
+
width: i = cn,
|
|
1901
|
+
height: c = cn,
|
|
1902
1902
|
...d
|
|
1903
1903
|
}) => {
|
|
1904
|
-
const [o, a] =
|
|
1905
|
-
|
|
1904
|
+
const [o, a] = L(!1), u = se(null);
|
|
1905
|
+
Z(() => {
|
|
1906
1906
|
const f = u.current;
|
|
1907
1907
|
if (!f)
|
|
1908
1908
|
return;
|
|
@@ -1910,7 +1910,7 @@ const an = 256, Ot = ({
|
|
|
1910
1910
|
if (!h)
|
|
1911
1911
|
return;
|
|
1912
1912
|
const p = i, _ = c;
|
|
1913
|
-
typeof window < "u" && window.devicePixelRatio && (f.width = p * window.devicePixelRatio, f.height = _ * window.devicePixelRatio, h.scale(window.devicePixelRatio, window.devicePixelRatio)), h.fillStyle = or(n), h.fillRect(0, 0, p, _), h.font = `${p / 3}px Arial`, h.textAlign = "center", h.fillStyle = "white", h.fillText(
|
|
1913
|
+
typeof window < "u" && window.devicePixelRatio && (f.width = p * window.devicePixelRatio, f.height = _ * window.devicePixelRatio, h.scale(window.devicePixelRatio, window.devicePixelRatio)), h.fillStyle = or(n), h.fillRect(0, 0, p, _), h.font = `${p / 3}px Arial`, h.textAlign = "center", h.fillStyle = "white", h.fillText(Tn(n), p / 2, _ / 1.6);
|
|
1914
1914
|
}, [n]);
|
|
1915
1915
|
let l = !1;
|
|
1916
1916
|
return t && t !== "" && !o && (t.includes("http") || t.includes("//")) && (l = !0), /* @__PURE__ */ s.jsx(
|
|
@@ -1932,10 +1932,10 @@ const an = 256, Ot = ({
|
|
|
1932
1932
|
) : /* @__PURE__ */ s.jsx("canvas", { ref: u })
|
|
1933
1933
|
}
|
|
1934
1934
|
);
|
|
1935
|
-
},
|
|
1936
|
-
image: `${
|
|
1935
|
+
}, $n = (e) => e === "apolitical" ? {
|
|
1936
|
+
image: `${Pt}logos/member_apolitical.svg`
|
|
1937
1937
|
} : e === "community" || typeof e == "object" && !e.name ? {
|
|
1938
|
-
image: `${
|
|
1938
|
+
image: `${Pt}logos/member_community.svg`
|
|
1939
1939
|
} : {
|
|
1940
1940
|
name: e.name,
|
|
1941
1941
|
role: e.jobTitle || "",
|
|
@@ -1954,9 +1954,9 @@ const an = 256, Ot = ({
|
|
|
1954
1954
|
return "";
|
|
1955
1955
|
const o = `${e}${i && c ? ` — ${t}` : t}`;
|
|
1956
1956
|
let a = `${o}${(i || c) && d ? `, ${n}` : n}`;
|
|
1957
|
-
return a.length > r && (a = o), a.length > r && (a =
|
|
1957
|
+
return a.length > r && (a = o), a.length > r && (a = st(a, r)), a;
|
|
1958
1958
|
};
|
|
1959
|
-
const
|
|
1959
|
+
const Ht = ({
|
|
1960
1960
|
element: e = "div",
|
|
1961
1961
|
member: t = "community",
|
|
1962
1962
|
additionalContent: n = !1,
|
|
@@ -1964,13 +1964,13 @@ const Bt = ({
|
|
|
1964
1964
|
gtmType: i = "member-click",
|
|
1965
1965
|
className: c = ""
|
|
1966
1966
|
}) => {
|
|
1967
|
-
const d = N(), o =
|
|
1967
|
+
const d = N(), o = $n(t);
|
|
1968
1968
|
o.name || (o.name = d.formatMessage({ id: `member_${typeof t == "string" ? t : "community"}` }));
|
|
1969
1969
|
const { name: a, url: u, image: l } = o, f = ar(o), h = n && n.createdAt ? Cs(n.createdAt) : !1, p = n && n.createdAt ? Ms(n.createdAt) : "";
|
|
1970
1970
|
return D.createElement(e, {
|
|
1971
1971
|
className: S("member text-medium", c),
|
|
1972
1972
|
children: /* @__PURE__ */ s.jsxs(
|
|
1973
|
-
|
|
1973
|
+
lt,
|
|
1974
1974
|
{
|
|
1975
1975
|
href: u,
|
|
1976
1976
|
gtmType: i,
|
|
@@ -1979,7 +1979,7 @@ const Bt = ({
|
|
|
1979
1979
|
_ == null || _.stopPropagation();
|
|
1980
1980
|
},
|
|
1981
1981
|
children: [
|
|
1982
|
-
/* @__PURE__ */ s.jsx(
|
|
1982
|
+
/* @__PURE__ */ s.jsx(It, { name: a, src: l }),
|
|
1983
1983
|
/* @__PURE__ */ s.jsxs("p", { className: "details", children: [
|
|
1984
1984
|
/* @__PURE__ */ s.jsx("strong", { children: a }),
|
|
1985
1985
|
n && /* @__PURE__ */ s.jsxs("span", { className: "additional-content", children: [
|
|
@@ -1993,7 +1993,7 @@ const Bt = ({
|
|
|
1993
1993
|
)
|
|
1994
1994
|
});
|
|
1995
1995
|
};
|
|
1996
|
-
const
|
|
1996
|
+
const dn = {
|
|
1997
1997
|
small: 24,
|
|
1998
1998
|
medium: 48
|
|
1999
1999
|
}, ir = ({
|
|
@@ -2017,16 +2017,16 @@ const ln = {
|
|
|
2017
2017
|
/* @__PURE__ */ s.jsx("ul", { children: n.map((f, h) => {
|
|
2018
2018
|
let p, _ = "";
|
|
2019
2019
|
if (h < o) {
|
|
2020
|
-
const { name: j = "", image: g = "" } =
|
|
2020
|
+
const { name: j = "", image: g = "" } = $n(f);
|
|
2021
2021
|
if (d)
|
|
2022
|
-
return /* @__PURE__ */ s.jsx(
|
|
2022
|
+
return /* @__PURE__ */ s.jsx(ye, { element: "li", className: "contributor" }, h);
|
|
2023
2023
|
p = /* @__PURE__ */ s.jsx(
|
|
2024
|
-
|
|
2024
|
+
It,
|
|
2025
2025
|
{
|
|
2026
2026
|
name: j,
|
|
2027
2027
|
src: g,
|
|
2028
|
-
width:
|
|
2029
|
-
height:
|
|
2028
|
+
width: dn[i || "medium"],
|
|
2029
|
+
height: dn[i || "medium"]
|
|
2030
2030
|
}
|
|
2031
2031
|
);
|
|
2032
2032
|
} else if (h === o) {
|
|
@@ -2044,7 +2044,7 @@ const ln = {
|
|
|
2044
2044
|
}
|
|
2045
2045
|
return p ? /* @__PURE__ */ s.jsx("li", { className: S("contributor", _), children: p }, h) : null;
|
|
2046
2046
|
}) }),
|
|
2047
|
-
r && /* @__PURE__ */ s.jsx("span", { className: "label", children: typeof r == "string" ? r : n.length === 1 ? typeof n[0] == "string" ? l.formatMessage({ id: `member_${n[0]}` }) :
|
|
2047
|
+
r && /* @__PURE__ */ s.jsx("span", { className: "label", children: typeof r == "string" ? r : n.length === 1 ? typeof n[0] == "string" ? l.formatMessage({ id: `member_${n[0]}` }) : st(n[0].name || "", 20) : null })
|
|
2048
2048
|
] })
|
|
2049
2049
|
});
|
|
2050
2050
|
}, lr = ({ showDevTools: e = !0, children: t }) => {
|
|
@@ -2064,10 +2064,10 @@ const ln = {
|
|
|
2064
2064
|
e && /* @__PURE__ */ s.jsx(ms, { initialIsOpen: !1 })
|
|
2065
2065
|
] });
|
|
2066
2066
|
};
|
|
2067
|
-
var cr =
|
|
2067
|
+
var cr = Ot({ client: Ke });
|
|
2068
2068
|
function dr(e) {
|
|
2069
|
-
var t = e.children, n = e.client, r = e.apiKey, i = e.options, c =
|
|
2070
|
-
return n && r && console.warn("[PostHog.js] You have provided both a client and an apiKey to PostHogProvider. The apiKey will be ignored in favour of the client."), n && i && console.warn("[PostHog.js] You have provided both a client and options to PostHogProvider. The options will be ignored in favour of the client."), n || (r && (
|
|
2069
|
+
var t = e.children, n = e.client, r = e.apiKey, i = e.options, c = nt(function() {
|
|
2070
|
+
return n && r && console.warn("[PostHog.js] You have provided both a client and an apiKey to PostHogProvider. The apiKey will be ignored in favour of the client."), n && i && console.warn("[PostHog.js] You have provided both a client and options to PostHogProvider. The options will be ignored in favour of the client."), n || (r && (Ke.__loaded && console.warn("[PostHog.js] was already loaded elsewhere. This may cause issues."), Ke.init(r, i)), Ke);
|
|
2071
2071
|
}, [n, r]);
|
|
2072
2072
|
return D.createElement(cr.Provider, { value: { client: c } }, t);
|
|
2073
2073
|
}
|
|
@@ -2093,22 +2093,22 @@ const ur = ({ children: e, user: t }) => t.isLoading ? /* @__PURE__ */ s.jsx(s.F
|
|
|
2093
2093
|
...n || {}
|
|
2094
2094
|
};
|
|
2095
2095
|
return /* @__PURE__ */ s.jsx(ls, { locale: r, messages: i, children: e });
|
|
2096
|
-
},
|
|
2097
|
-
const [r, i] =
|
|
2098
|
-
return
|
|
2096
|
+
}, Te = Ot(null), fr = ({ children: e, user: t }) => /* @__PURE__ */ s.jsx(Te.Provider, { value: t, children: e }), vo = ({ bootstrap: e, children: t, intl: n }) => {
|
|
2097
|
+
const [r, i] = L({ isLoading: !0 });
|
|
2098
|
+
return Z(() => {
|
|
2099
2099
|
e().then((c) => i({ ...c, isLoading: !1 })).catch(() => i({ isLoading: !1 }));
|
|
2100
2100
|
}, []), /* @__PURE__ */ s.jsx(mr, { locale: n == null ? void 0 : n.locale, messages: n == null ? void 0 : n.messages, children: /* @__PURE__ */ s.jsx(fr, { user: r, children: /* @__PURE__ */ s.jsx(lr, { children: /* @__PURE__ */ s.jsx(ur, { user: r, children: t }) }) }) });
|
|
2101
2101
|
};
|
|
2102
|
-
const
|
|
2102
|
+
const wt = "joinCommunityButton", Mn = ({ isMember: e = !1, isShort: t = !1, functions: { join: n, leave: r } = { join: () => {
|
|
2103
2103
|
}, leave: () => {
|
|
2104
2104
|
} } }) => {
|
|
2105
|
-
const i = N(), c =
|
|
2106
|
-
|
|
2105
|
+
const i = N(), c = be(Te), d = c && typeof c.id == "string", [o, a] = L(e), [u, l] = L(e ? "joined" : "notJoined");
|
|
2106
|
+
Z(() => {
|
|
2107
2107
|
u === "joining" ? l("joined") : u === "leaving" && l("notJoined");
|
|
2108
2108
|
}, [o]);
|
|
2109
2109
|
const f = {}, h = {};
|
|
2110
|
-
return o && u !== "leaving" && (f["data-hover-text"] = i.formatMessage({ id: `${
|
|
2111
|
-
|
|
2110
|
+
return o && u !== "leaving" && (f["data-hover-text"] = i.formatMessage({ id: `${wt}_leave` }), f["aria-label"] = i.formatMessage({ id: `${wt}_member_aria` }), h["aria-hidden"] = "true"), /* @__PURE__ */ s.jsx(
|
|
2111
|
+
X,
|
|
2112
2112
|
{
|
|
2113
2113
|
variant: o ? "secondary" : "primary",
|
|
2114
2114
|
size: "medium",
|
|
@@ -2120,11 +2120,11 @@ const xt = "joinCommunityButton", Tn = ({ isMember: e = !1, isShort: t = !1, fun
|
|
|
2120
2120
|
className: S("join-community-button", u, { active: u === "joining" }),
|
|
2121
2121
|
disabled: !d,
|
|
2122
2122
|
...f,
|
|
2123
|
-
children: /* @__PURE__ */ s.jsx("span", { className: "text", ...h, children: i.formatMessage({ id: `${
|
|
2123
|
+
children: /* @__PURE__ */ s.jsx("span", { className: "text", ...h, children: i.formatMessage({ id: `${wt}${["joining", "leaving"].includes(u) ? `_${u}` : o ? "_member" : t ? "_short" : ""}` }) })
|
|
2124
2124
|
}
|
|
2125
2125
|
);
|
|
2126
2126
|
};
|
|
2127
|
-
const
|
|
2127
|
+
const vt = "communityDetails_", ko = ({
|
|
2128
2128
|
className: e = "",
|
|
2129
2129
|
isMember: t = !1,
|
|
2130
2130
|
slug: n,
|
|
@@ -2133,14 +2133,14 @@ const bt = "communityDetails_", ko = ({
|
|
|
2133
2133
|
}) => {
|
|
2134
2134
|
const o = N(), a = 5, u = r || i.length, l = i.length ? i : Array(a).fill({});
|
|
2135
2135
|
return /* @__PURE__ */ s.jsxs("div", { className: S("community-details", e), children: [
|
|
2136
|
-
/* @__PURE__ */ s.jsx(
|
|
2136
|
+
/* @__PURE__ */ s.jsx(Ne, {}),
|
|
2137
2137
|
/* @__PURE__ */ s.jsxs("div", { className: "member-details", children: [
|
|
2138
2138
|
/* @__PURE__ */ s.jsxs("div", { className: "top", children: [
|
|
2139
2139
|
/* @__PURE__ */ s.jsxs("h3", { children: [
|
|
2140
|
-
o.formatMessage({ id: `${
|
|
2140
|
+
o.formatMessage({ id: `${vt}members` }),
|
|
2141
2141
|
/* @__PURE__ */ s.jsx("span", { className: "count", children: u })
|
|
2142
2142
|
] }),
|
|
2143
|
-
/* @__PURE__ */ s.jsx("p", { className: "text-small", children: /* @__PURE__ */ s.jsx("a", { href: `/communities/${n}/members`, children: o.formatMessage({ id: `${
|
|
2143
|
+
/* @__PURE__ */ s.jsx("p", { className: "text-small", children: /* @__PURE__ */ s.jsx("a", { href: `/communities/${n}/members`, children: o.formatMessage({ id: `${vt}viewAll` }) }) })
|
|
2144
2144
|
] }),
|
|
2145
2145
|
/* @__PURE__ */ s.jsx(
|
|
2146
2146
|
ir,
|
|
@@ -2158,15 +2158,15 @@ const bt = "communityDetails_", ko = ({
|
|
|
2158
2158
|
}
|
|
2159
2159
|
)
|
|
2160
2160
|
] }),
|
|
2161
|
-
/* @__PURE__ */ s.jsx(
|
|
2161
|
+
/* @__PURE__ */ s.jsx(Mn, { isMember: t, functions: { ...d } }),
|
|
2162
2162
|
t && /* @__PURE__ */ s.jsx(
|
|
2163
|
-
|
|
2163
|
+
X,
|
|
2164
2164
|
{
|
|
2165
2165
|
variant: "primary",
|
|
2166
2166
|
onClick: c,
|
|
2167
2167
|
icon: { icon: "plus" },
|
|
2168
2168
|
styling: { fullWidth: !0 },
|
|
2169
|
-
children: o.formatMessage({ id: `${
|
|
2169
|
+
children: o.formatMessage({ id: `${vt}invite` })
|
|
2170
2170
|
}
|
|
2171
2171
|
)
|
|
2172
2172
|
] });
|
|
@@ -2178,10 +2178,10 @@ const jo = ({
|
|
|
2178
2178
|
}) => {
|
|
2179
2179
|
const r = N();
|
|
2180
2180
|
return /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
|
|
2181
|
-
/* @__PURE__ */ s.jsx(
|
|
2181
|
+
/* @__PURE__ */ s.jsx(de, { element: "p", children: r.formatMessage({ id: "breadcrumbs_label" }) }),
|
|
2182
2182
|
/* @__PURE__ */ s.jsx("ul", { className: S("breadcrumbs text-small", n), children: e.map(({ text: i, href: c, current: d = !1 }, o) => /* @__PURE__ */ s.jsxs("li", { children: [
|
|
2183
|
-
d && /* @__PURE__ */ s.jsx(
|
|
2184
|
-
/* @__PURE__ */ s.jsx(
|
|
2183
|
+
d && /* @__PURE__ */ s.jsx(de, { element: "span", children: r.formatMessage({ id: "breadcrumbs_currentPage" }) }),
|
|
2184
|
+
/* @__PURE__ */ s.jsx(lt, { href: d ? void 0 : c, children: st(i, t) })
|
|
2185
2185
|
] }, `${window.btoa(i)}_${o}`)) })
|
|
2186
2186
|
] });
|
|
2187
2187
|
};
|
|
@@ -2193,7 +2193,7 @@ const yo = ({
|
|
|
2193
2193
|
},
|
|
2194
2194
|
className: i = ""
|
|
2195
2195
|
}) => {
|
|
2196
|
-
const c = N(), d = t ? [{ id: "all", text: typeof t != "boolean" && t.text || c.formatMessage({ id: "filters_all" }) }, ...e] : e, [o, a] =
|
|
2196
|
+
const c = N(), d = t ? [{ id: "all", text: typeof t != "boolean" && t.text || c.formatMessage({ id: "filters_all" }) }, ...e] : e, [o, a] = L(t ? ["all"] : []), u = (l, f) => {
|
|
2197
2197
|
let h = [];
|
|
2198
2198
|
o.includes(l) ? h = o.filter((p) => p !== l) : l === "all" ? h = ["all"] : n ? h = [...o.filter((p) => p !== "all"), l] : h = [l], a((p) => (r && typeof r == "function" && r({ current: h, previous: p }), h)), f && typeof f == "function" && f();
|
|
2199
2199
|
};
|
|
@@ -2221,7 +2221,7 @@ const yo = ({
|
|
|
2221
2221
|
c === "before-lang" ? r += `/${i}` : (r.includes(`/${n}/`) || (r += `/${n}`), r += `/${i}`);
|
|
2222
2222
|
}), r.includes(`/${n}/`) || (r += `/${n}`), r;
|
|
2223
2223
|
};
|
|
2224
|
-
const
|
|
2224
|
+
const kt = { en: "English", es: "Español", fr: "Français", pt: "Português" }, Ye = "languageSwitcher_", Eo = ({
|
|
2225
2225
|
currentLanguage: e,
|
|
2226
2226
|
isOriginalLanguage: t = !1,
|
|
2227
2227
|
isHumanTranslation: n = !1,
|
|
@@ -2233,35 +2233,35 @@ const vt = { en: "English", es: "Español", fr: "Français", pt: "Português" },
|
|
|
2233
2233
|
label: o,
|
|
2234
2234
|
className: a = ""
|
|
2235
2235
|
}) => {
|
|
2236
|
-
const u = N(), [l, f] =
|
|
2237
|
-
if (
|
|
2236
|
+
const u = N(), [l, f] = L(e);
|
|
2237
|
+
if (Z(() => {
|
|
2238
2238
|
e !== l && f(e);
|
|
2239
2239
|
}, [e]), !r || !Object.values(r).some((j) => j && j.post_name))
|
|
2240
2240
|
return null;
|
|
2241
2241
|
const p = Object.keys(r), _ = l !== e;
|
|
2242
2242
|
return /* @__PURE__ */ s.jsxs("div", { className: S("language-switcher text-small", d, a), children: [
|
|
2243
2243
|
/* @__PURE__ */ s.jsxs("nav", { children: [
|
|
2244
|
-
d !== "short" && /* @__PURE__ */ s.jsx("p", { children: o || u.formatMessage({ id: `${
|
|
2244
|
+
d !== "short" && /* @__PURE__ */ s.jsx("p", { children: o || u.formatMessage({ id: `${Ye}label` }) }),
|
|
2245
2245
|
/* @__PURE__ */ s.jsx("ul", { children: p.map((j) => {
|
|
2246
|
-
if (!
|
|
2246
|
+
if (!kt[j])
|
|
2247
2247
|
return null;
|
|
2248
2248
|
let g = { className: j };
|
|
2249
|
-
return l === j ? g["aria-label"] = u.formatMessage({ id: `${
|
|
2249
|
+
return l === j ? g["aria-label"] = u.formatMessage({ id: `${Ye}selected` }, { language: kt[j] }) : g = {
|
|
2250
2250
|
...g,
|
|
2251
2251
|
href: hr(j, c),
|
|
2252
2252
|
onClick: (E) => {
|
|
2253
2253
|
E.preventDefault(), E.stopPropagation(), f(j), i(j);
|
|
2254
2254
|
}
|
|
2255
|
-
}, /* @__PURE__ */ s.jsx("li", { children: /* @__PURE__ */ s.jsx(
|
|
2255
|
+
}, /* @__PURE__ */ s.jsx("li", { children: /* @__PURE__ */ s.jsx(lt, { ...g, fallbackElement: "span", children: kt[j] }) }, j);
|
|
2256
2256
|
}) }),
|
|
2257
|
-
d !== "short" && !_ && /* @__PURE__ */ s.jsx("p", { children: u.formatMessage({ id: `${
|
|
2257
|
+
d !== "short" && !_ && /* @__PURE__ */ s.jsx("p", { children: u.formatMessage({ id: `${Ye}translation_${t ? "original" : n ? "human" : "machine"}` }) })
|
|
2258
2258
|
] }),
|
|
2259
2259
|
d !== "short" && !_ && !t && !n && /* @__PURE__ */ s.jsx("small", {
|
|
2260
2260
|
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
2261
2261
|
// @ts-ignore
|
|
2262
2262
|
// `values` are throwing a type error: https://github.com/formatjs/formatjs/issues/3633
|
|
2263
|
-
children: u.formatMessage({ id: `${
|
|
2264
|
-
email:
|
|
2263
|
+
children: u.formatMessage({ id: `${Ye}disclaimer` }, {
|
|
2264
|
+
email: Be.support,
|
|
2265
2265
|
link: (j) => {
|
|
2266
2266
|
const g = `mailto:${j}`;
|
|
2267
2267
|
return /* @__PURE__ */ s.jsx("a", { href: g, children: j });
|
|
@@ -2270,7 +2270,7 @@ const vt = { en: "English", es: "Español", fr: "Français", pt: "Português" },
|
|
|
2270
2270
|
})
|
|
2271
2271
|
] });
|
|
2272
2272
|
};
|
|
2273
|
-
const
|
|
2273
|
+
const jt = cs({ locale: "en", messages: Bt }), pr = ({
|
|
2274
2274
|
page: e = 1,
|
|
2275
2275
|
length: t = 0,
|
|
2276
2276
|
limit: n = 10,
|
|
@@ -2278,14 +2278,14 @@ const wt = cs({ locale: "en", messages: Lt }), pr = ({
|
|
|
2278
2278
|
},
|
|
2279
2279
|
icon: i = !1,
|
|
2280
2280
|
messages: c = {
|
|
2281
|
-
button:
|
|
2282
|
-
endOfFeed:
|
|
2283
|
-
error:
|
|
2281
|
+
button: jt.formatMessage({ id: "loadMore_button" }),
|
|
2282
|
+
endOfFeed: jt.formatMessage({ id: "loadMore_endOfFeed" }),
|
|
2283
|
+
error: jt.formatMessage({ id: "loadMore_error" })
|
|
2284
2284
|
},
|
|
2285
2285
|
className: d = "",
|
|
2286
2286
|
gtmContext: o = "LoadMore"
|
|
2287
2287
|
}) => {
|
|
2288
|
-
const [a, u] =
|
|
2288
|
+
const [a, u] = L(!1), [l, f] = L(!1);
|
|
2289
2289
|
if (t <= 0 || t < n * e)
|
|
2290
2290
|
return null;
|
|
2291
2291
|
const h = async (p) => {
|
|
@@ -2298,7 +2298,7 @@ const wt = cs({ locale: "en", messages: Lt }), pr = ({
|
|
|
2298
2298
|
return /* @__PURE__ */ s.jsxs("footer", { className: S("load-more", d), children: [
|
|
2299
2299
|
a && /* @__PURE__ */ s.jsx("p", { className: "error", children: c.error }),
|
|
2300
2300
|
l ? /* @__PURE__ */ s.jsx("p", { children: c.endOfFeed }) : /* @__PURE__ */ s.jsx(
|
|
2301
|
-
|
|
2301
|
+
X,
|
|
2302
2302
|
{
|
|
2303
2303
|
variant: "secondary",
|
|
2304
2304
|
icon: i,
|
|
@@ -2312,19 +2312,19 @@ const wt = cs({ locale: "en", messages: Lt }), pr = ({
|
|
|
2312
2312
|
)
|
|
2313
2313
|
] });
|
|
2314
2314
|
};
|
|
2315
|
-
let
|
|
2315
|
+
let Ge = !1;
|
|
2316
2316
|
const gr = ({ element: e = "div", id: t = "more-menu", options: n, className: r = "" }) => {
|
|
2317
|
-
const i = N(), c =
|
|
2317
|
+
const i = N(), c = se(null), [d, o] = L(!1), a = (u) => {
|
|
2318
2318
|
c.current && u.target instanceof HTMLElement && !c.current.contains(u.target) && o(!1);
|
|
2319
2319
|
};
|
|
2320
|
-
return
|
|
2320
|
+
return Z(() => (document.addEventListener("click", a, !0), () => {
|
|
2321
2321
|
document.removeEventListener("click", a, !0);
|
|
2322
2322
|
})), D.createElement(e, {
|
|
2323
2323
|
ref: c,
|
|
2324
2324
|
className: S("more-menu text-medium", r),
|
|
2325
2325
|
children: /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
|
|
2326
2326
|
/* @__PURE__ */ s.jsx(
|
|
2327
|
-
|
|
2327
|
+
X,
|
|
2328
2328
|
{
|
|
2329
2329
|
variant: "tertiary",
|
|
2330
2330
|
size: "medium",
|
|
@@ -2343,16 +2343,16 @@ const gr = ({ element: e = "div", id: t = "more-menu", options: n, className: r
|
|
|
2343
2343
|
o(!1), typeof l == "function" && l(g);
|
|
2344
2344
|
},
|
|
2345
2345
|
onFocus: () => {
|
|
2346
|
-
|
|
2346
|
+
Ge && (clearTimeout(Ge), Ge = !1);
|
|
2347
2347
|
},
|
|
2348
2348
|
onBlur: () => {
|
|
2349
|
-
|
|
2349
|
+
Ge = setTimeout(() => {
|
|
2350
2350
|
o(!1);
|
|
2351
2351
|
}, 100);
|
|
2352
2352
|
}
|
|
2353
2353
|
};
|
|
2354
2354
|
return u && (j.href = u), /* @__PURE__ */ s.jsx("li", { children: /* @__PURE__ */ s.jsx(
|
|
2355
|
-
|
|
2355
|
+
X,
|
|
2356
2356
|
{
|
|
2357
2357
|
variant: "tertiary",
|
|
2358
2358
|
size: "medium",
|
|
@@ -2365,7 +2365,7 @@ const gr = ({ element: e = "div", id: t = "more-menu", options: n, className: r
|
|
|
2365
2365
|
] })
|
|
2366
2366
|
});
|
|
2367
2367
|
};
|
|
2368
|
-
const
|
|
2368
|
+
const Cn = ({ variant: e = "default", version: t = "default", className: n = "", ...r }) => /* @__PURE__ */ s.jsx("p", { className: "logo-wrapper", children: /* @__PURE__ */ s.jsx("a", { href: "/home/", className: S("logo", e, t, n), ...r, children: /* @__PURE__ */ s.jsx(de, { children: /* @__PURE__ */ s.jsx(Ee, { id: "apolitical" }) }) }) });
|
|
2369
2369
|
const _r = {
|
|
2370
2370
|
"2-1": 901
|
|
2371
2371
|
}, So = ({
|
|
@@ -2374,28 +2374,28 @@ const _r = {
|
|
|
2374
2374
|
className: n = "",
|
|
2375
2375
|
children: r
|
|
2376
2376
|
}) => {
|
|
2377
|
-
const i =
|
|
2377
|
+
const i = at(!0);
|
|
2378
2378
|
let c = r;
|
|
2379
2379
|
return D.Children.count(r) === 1 && (c = D.Children.toArray(r)[0], c.props && (c = c.props.children)), /* @__PURE__ */ s.jsx("section", { className: S("columns", `layout-${e}`, n), children: D.Children.map(c, (d, o) => t !== !1 && o === t && i && i < _r[e] ? null : d) });
|
|
2380
2380
|
};
|
|
2381
|
-
const
|
|
2382
|
-
const e = N(), [t, n, r] = fs(
|
|
2383
|
-
|
|
2381
|
+
const yt = "cookieBanner_", Et = ["apol-cookie-banner", "apolitical-performance-cookie-consent", "functional-cookie-consent"], St = new Date(Date.now() + 12 * 30 * 24 * 60 * 60 * 1e3), xr = () => {
|
|
2382
|
+
const e = N(), [t, n, r] = fs(Et), [i, c] = L(!t["apol-cookie-banner"]), d = () => {
|
|
2383
|
+
Et.forEach((l) => {
|
|
2384
2384
|
n(l, !0, {
|
|
2385
2385
|
path: "/",
|
|
2386
|
-
expires:
|
|
2386
|
+
expires: St,
|
|
2387
2387
|
domain: l === "apolitical-performance-cookie-consent" ? ".apolitical.co" : void 0
|
|
2388
2388
|
});
|
|
2389
2389
|
}), c(!1), window.location.reload();
|
|
2390
2390
|
}, o = () => {
|
|
2391
2391
|
n("apol-cookie-banner", !0, {
|
|
2392
2392
|
path: "/",
|
|
2393
|
-
expires:
|
|
2394
|
-
}),
|
|
2393
|
+
expires: St
|
|
2394
|
+
}), Et.forEach((l) => {
|
|
2395
2395
|
if (l === "apol-cookie-banner") {
|
|
2396
2396
|
n(l, !0, {
|
|
2397
2397
|
path: "/",
|
|
2398
|
-
expires:
|
|
2398
|
+
expires: St
|
|
2399
2399
|
});
|
|
2400
2400
|
return;
|
|
2401
2401
|
}
|
|
@@ -2417,14 +2417,14 @@ const kt = "cookieBanner_", jt = ["apol-cookie-banner", "apolitical-performance-
|
|
|
2417
2417
|
className: "gtm-trackable",
|
|
2418
2418
|
"data-gtm-event-context": "cookie-banner",
|
|
2419
2419
|
"data-gtm-event-type": `cookie-${l.gtmType}-click`,
|
|
2420
|
-
children: e.formatMessage({ id: `${
|
|
2420
|
+
children: e.formatMessage({ id: `${yt}buttons_${l.id}` })
|
|
2421
2421
|
});
|
|
2422
2422
|
}), /* @__PURE__ */ s.jsxs("aside", { id: "cookie-banner", className: "text-medium", children: [
|
|
2423
|
-
/* @__PURE__ */ s.jsx("h6", { children: e.formatMessage({ id: `${
|
|
2424
|
-
/* @__PURE__ */ s.jsx("p", { children: e.formatMessage({ id: `${
|
|
2425
|
-
/* @__PURE__ */ s.jsx(
|
|
2423
|
+
/* @__PURE__ */ s.jsx("h6", { children: e.formatMessage({ id: `${yt}title` }) }),
|
|
2424
|
+
/* @__PURE__ */ s.jsx("p", { children: e.formatMessage({ id: `${yt}text` }) }),
|
|
2425
|
+
/* @__PURE__ */ s.jsx(it, { buttons: u })
|
|
2426
2426
|
] });
|
|
2427
|
-
},
|
|
2427
|
+
}, ke = {
|
|
2428
2428
|
platform: {
|
|
2429
2429
|
order: ["events", "courses", "qanda", "articles"],
|
|
2430
2430
|
// An array guarantees the right order
|
|
@@ -2489,11 +2489,11 @@ const kt = "cookieBanner_", jt = ["apol-cookie-banner", "apolitical-performance-
|
|
|
2489
2489
|
text: {
|
|
2490
2490
|
order: ["dataProtection", "euDataProtection"],
|
|
2491
2491
|
dataProtection: {
|
|
2492
|
-
email:
|
|
2492
|
+
email: Be["data-protection"].default,
|
|
2493
2493
|
gtmType: "email-dpo-link"
|
|
2494
2494
|
},
|
|
2495
2495
|
euDataProtection: {
|
|
2496
|
-
email:
|
|
2496
|
+
email: Be["data-protection"].eu,
|
|
2497
2497
|
gtmType: "email-eu-dpo-link"
|
|
2498
2498
|
}
|
|
2499
2499
|
}
|
|
@@ -2505,10 +2505,10 @@ const kt = "cookieBanner_", jt = ["apol-cookie-banner", "apolitical-performance-
|
|
|
2505
2505
|
registered: { address: !0 },
|
|
2506
2506
|
berlin: { address: !0 },
|
|
2507
2507
|
support: {
|
|
2508
|
-
email:
|
|
2508
|
+
email: Be.support,
|
|
2509
2509
|
gtmType: "concierge-email-click"
|
|
2510
2510
|
},
|
|
2511
|
-
business: { email:
|
|
2511
|
+
business: { email: Be.general, gtmType: "hello-email-click" }
|
|
2512
2512
|
}
|
|
2513
2513
|
},
|
|
2514
2514
|
social: {
|
|
@@ -2518,37 +2518,37 @@ const kt = "cookieBanner_", jt = ["apol-cookie-banner", "apolitical-performance-
|
|
|
2518
2518
|
facebook: { href: "https://www.facebook.com/apoliticalco" }
|
|
2519
2519
|
}
|
|
2520
2520
|
};
|
|
2521
|
-
const
|
|
2522
|
-
const t =
|
|
2521
|
+
const Ae = "footer_", qe = "SiteFooter", un = ({ group: e }) => {
|
|
2522
|
+
const t = ke[e].order || [];
|
|
2523
2523
|
let n = !1;
|
|
2524
|
-
return "text" in
|
|
2525
|
-
/* @__PURE__ */ s.jsx("p", { className: "pre-title", children: /* @__PURE__ */ s.jsx(
|
|
2524
|
+
return "text" in ke[e] && (n = ke[e].text), /* @__PURE__ */ s.jsxs(Dt, { children: [
|
|
2525
|
+
/* @__PURE__ */ s.jsx("p", { className: "pre-title", children: /* @__PURE__ */ s.jsx(Ee, { id: `${Ae}${e}` }) }),
|
|
2526
2526
|
Array.isArray(t) && t.length > 0 && /* @__PURE__ */ s.jsx("ul", { className: "text-medium", children: t.map((r) => {
|
|
2527
2527
|
if (["order", "child", "text"].includes(r))
|
|
2528
2528
|
return null;
|
|
2529
|
-
const { href: i, gtmType: c } =
|
|
2529
|
+
const { href: i, gtmType: c } = ke[e][r], d = {};
|
|
2530
2530
|
return ["legal"].includes(e) && (d.target = "_blank", d.rel = "noopener"), /* @__PURE__ */ s.jsx("li", { children: /* @__PURE__ */ s.jsx(
|
|
2531
2531
|
"a",
|
|
2532
2532
|
{
|
|
2533
2533
|
href: i,
|
|
2534
2534
|
className: "gtm-trackable",
|
|
2535
|
-
"data-gtm-event-context":
|
|
2535
|
+
"data-gtm-event-context": qe,
|
|
2536
2536
|
"data-gtm-event-type": c,
|
|
2537
2537
|
...d,
|
|
2538
|
-
children: /* @__PURE__ */ s.jsx(
|
|
2538
|
+
children: /* @__PURE__ */ s.jsx(Ee, { id: `${Ae}${e}_${r}` })
|
|
2539
2539
|
}
|
|
2540
2540
|
) }, `${e}_${r}`);
|
|
2541
2541
|
}) }),
|
|
2542
|
-
typeof n != "boolean" && "order" in n && Array.isArray(n.order) && /* @__PURE__ */ s.jsx("dl", { className: "text-medium", children: n.order.map((r) => /* @__PURE__ */ s.jsxs(
|
|
2543
|
-
/* @__PURE__ */ s.jsx("dt", { children: /* @__PURE__ */ s.jsx(
|
|
2542
|
+
typeof n != "boolean" && "order" in n && Array.isArray(n.order) && /* @__PURE__ */ s.jsx("dl", { className: "text-medium", children: n.order.map((r) => /* @__PURE__ */ s.jsxs(Dt, { children: [
|
|
2543
|
+
/* @__PURE__ */ s.jsx("dt", { children: /* @__PURE__ */ s.jsx(Ee, { id: `${Ae}${e}_${r}` }) }),
|
|
2544
2544
|
/* @__PURE__ */ s.jsxs("dd", { children: [
|
|
2545
|
-
typeof n != "boolean" && n[r].address && /* @__PURE__ */ s.jsx("address", { children: /* @__PURE__ */ s.jsx(
|
|
2545
|
+
typeof n != "boolean" && n[r].address && /* @__PURE__ */ s.jsx("address", { children: /* @__PURE__ */ s.jsx(Ee, { id: `${Ae}${e}_${r}_address`, values: { br: /* @__PURE__ */ s.jsx("br", {}) } }) }),
|
|
2546
2546
|
typeof n != "boolean" && n[r].email && /* @__PURE__ */ s.jsx(
|
|
2547
2547
|
"a",
|
|
2548
2548
|
{
|
|
2549
2549
|
href: `mailto:${n[r].email}`,
|
|
2550
2550
|
className: "gtm-trackable",
|
|
2551
|
-
"data-gtm-event-context":
|
|
2551
|
+
"data-gtm-event-context": qe,
|
|
2552
2552
|
"data-gtm-event-type": n[r].gtmType,
|
|
2553
2553
|
children: n[r].email
|
|
2554
2554
|
}
|
|
@@ -2556,26 +2556,26 @@ const Me = "footer_", Ze = "SiteFooter", cn = ({ group: e }) => {
|
|
|
2556
2556
|
] })
|
|
2557
2557
|
] }, `dl-${e}-${r}`)) })
|
|
2558
2558
|
] }, e);
|
|
2559
|
-
},
|
|
2560
|
-
/* @__PURE__ */ s.jsx(
|
|
2559
|
+
}, An = () => /* @__PURE__ */ s.jsx("div", { id: "footer", children: /* @__PURE__ */ s.jsxs("div", { className: "wrapper", children: [
|
|
2560
|
+
/* @__PURE__ */ s.jsx(xn, { element: "hr" }),
|
|
2561
2561
|
/* @__PURE__ */ s.jsx(
|
|
2562
|
-
|
|
2562
|
+
Cn,
|
|
2563
2563
|
{
|
|
2564
2564
|
variant: "inverted",
|
|
2565
2565
|
version: "full",
|
|
2566
2566
|
className: "gtm-trackable",
|
|
2567
|
-
"data-gtm-event-context":
|
|
2567
|
+
"data-gtm-event-context": qe,
|
|
2568
2568
|
"data-gtm-event-type": "logo-homepage-link"
|
|
2569
2569
|
}
|
|
2570
2570
|
),
|
|
2571
2571
|
/* @__PURE__ */ s.jsx("footer", { children: ["platform", "community", "company", "contact"].map((e) => /* @__PURE__ */ s.jsxs("div", { className: "group", children: [
|
|
2572
|
-
/* @__PURE__ */ s.jsx(
|
|
2573
|
-
Object.keys(
|
|
2572
|
+
/* @__PURE__ */ s.jsx(un, { group: e }),
|
|
2573
|
+
Object.keys(ke[e]).includes("child") && /* @__PURE__ */ s.jsx(un, { group: ke[e].child })
|
|
2574
2574
|
] }, e)) }),
|
|
2575
2575
|
/* @__PURE__ */ s.jsx("hr", {}),
|
|
2576
2576
|
/* @__PURE__ */ s.jsxs("div", { className: "sub-footer", children: [
|
|
2577
|
-
/* @__PURE__ */ s.jsx("ul", { children: Array.isArray(
|
|
2578
|
-
const t =
|
|
2577
|
+
/* @__PURE__ */ s.jsx("ul", { children: Array.isArray(ke.social.order) && ke.social.order.map((e) => {
|
|
2578
|
+
const t = ke.social[e];
|
|
2579
2579
|
return /* @__PURE__ */ s.jsx("li", { className: e, children: /* @__PURE__ */ s.jsx(
|
|
2580
2580
|
"a",
|
|
2581
2581
|
{
|
|
@@ -2583,22 +2583,22 @@ const Me = "footer_", Ze = "SiteFooter", cn = ({ group: e }) => {
|
|
|
2583
2583
|
target: "_blank",
|
|
2584
2584
|
rel: "noopener noreferrer",
|
|
2585
2585
|
className: "gtm-trackable",
|
|
2586
|
-
"data-gtm-event-context":
|
|
2586
|
+
"data-gtm-event-context": qe,
|
|
2587
2587
|
"data-gtm-event-type": "social-click",
|
|
2588
|
-
children: /* @__PURE__ */ s.jsx("span", { className: "hidden", children: /* @__PURE__ */ s.jsx(
|
|
2588
|
+
children: /* @__PURE__ */ s.jsx("span", { className: "hidden", children: /* @__PURE__ */ s.jsx(Ee, { id: `${Ae}social_${e}` }) })
|
|
2589
2589
|
}
|
|
2590
2590
|
) }, e);
|
|
2591
2591
|
}) }),
|
|
2592
|
-
/* @__PURE__ */ s.jsx("small", { children: /* @__PURE__ */ s.jsx(
|
|
2592
|
+
/* @__PURE__ */ s.jsx("small", { children: /* @__PURE__ */ s.jsx(Ee, { id: `${Ae}copyright`, values: { currentYear: (/* @__PURE__ */ new Date()).getFullYear() } }) })
|
|
2593
2593
|
] })
|
|
2594
2594
|
] }) });
|
|
2595
|
-
const
|
|
2596
|
-
const i = N(), [c, d] =
|
|
2595
|
+
const Je = "emailHelperTextBox_", To = ({ type: e, email: t, redirectPath: n, resendVerificationCode: r }) => {
|
|
2596
|
+
const i = N(), [c, d] = L({ path: `${Je}default`, type: "default", link: {}, mail: {}, error: "" }), [o, a] = L(!1), u = je(
|
|
2597
2597
|
(p) => {
|
|
2598
2598
|
p.preventDefault(), p.stopPropagation();
|
|
2599
2599
|
const _ = (j) => {
|
|
2600
2600
|
d({
|
|
2601
|
-
path: `${
|
|
2601
|
+
path: `${Je}error_verificationFailedToSend`,
|
|
2602
2602
|
type: "error",
|
|
2603
2603
|
link: {
|
|
2604
2604
|
"data-gtm-event-context": "VerifyEmailBox",
|
|
@@ -2618,7 +2618,7 @@ const Ye = "emailHelperTextBox_", To = ({ type: e, email: t, redirectPath: n, re
|
|
|
2618
2618
|
});
|
|
2619
2619
|
};
|
|
2620
2620
|
if (typeof r != "function") {
|
|
2621
|
-
_(i.formatMessage({ id: `${
|
|
2621
|
+
_(i.formatMessage({ id: `${Je}error_noFunction` }));
|
|
2622
2622
|
return;
|
|
2623
2623
|
}
|
|
2624
2624
|
a(!0), r(t).then(() => {
|
|
@@ -2632,9 +2632,9 @@ const Ye = "emailHelperTextBox_", To = ({ type: e, email: t, redirectPath: n, re
|
|
|
2632
2632
|
/* eslint-disable react-hooks/exhaustive-deps */
|
|
2633
2633
|
[t, n, r]
|
|
2634
2634
|
);
|
|
2635
|
-
|
|
2635
|
+
Z(
|
|
2636
2636
|
() => {
|
|
2637
|
-
let p =
|
|
2637
|
+
let p = Je, _ = "default", j = {}, g = {};
|
|
2638
2638
|
switch (e) {
|
|
2639
2639
|
case "gov":
|
|
2640
2640
|
p += "autoApproved", _ = "success";
|
|
@@ -2692,9 +2692,9 @@ const Ye = "emailHelperTextBox_", To = ({ type: e, email: t, redirectPath: n, re
|
|
|
2692
2692
|
const l = {};
|
|
2693
2693
|
return ["link", "mail"].forEach((p) => {
|
|
2694
2694
|
l[p] = Object.keys(c[p]).length ? (_) => /* @__PURE__ */ s.jsx("a", { ...c[p], children: _ }) : (_) => _;
|
|
2695
|
-
}), /* @__PURE__ */ s.jsx(
|
|
2696
|
-
/* @__PURE__ */ s.jsx(
|
|
2697
|
-
/* @__PURE__ */ s.jsx(
|
|
2695
|
+
}), /* @__PURE__ */ s.jsx(zs, { type: c.type, heading: o ? !1 : i.formatMessage({ id: `${c.path}_title` }), children: o ? /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
|
|
2696
|
+
/* @__PURE__ */ s.jsx(ye, { element: "span" }),
|
|
2697
|
+
/* @__PURE__ */ s.jsx(ye, { element: "span" })
|
|
2698
2698
|
] }) : (
|
|
2699
2699
|
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
2700
2700
|
// @ts-ignore
|
|
@@ -2714,28 +2714,28 @@ const Ye = "emailHelperTextBox_", To = ({ type: e, email: t, redirectPath: n, re
|
|
|
2714
2714
|
)
|
|
2715
2715
|
) });
|
|
2716
2716
|
};
|
|
2717
|
-
const
|
|
2718
|
-
[
|
|
2719
|
-
[
|
|
2720
|
-
[
|
|
2721
|
-
},
|
|
2717
|
+
const Xe = "passwordRules_", Dn = "isMoreThanEightCharacters", Nn = "includesNumberAndSymbol", Pn = "includesLowerAndUppercase", br = {
|
|
2718
|
+
[Dn]: "8Characters",
|
|
2719
|
+
[Nn]: "numberSymbol",
|
|
2720
|
+
[Pn]: "lowercaseUppercase"
|
|
2721
|
+
}, wr = ({ matchingRules: e = { isMoreThanEightCharacters: !1, includesNumberAndSymbol: !1, includesLowerAndUppercase: !1 }, className: t = "" }) => {
|
|
2722
2722
|
const n = N();
|
|
2723
2723
|
return /* @__PURE__ */ s.jsxs("aside", { className: S("password-rules", t), children: [
|
|
2724
|
-
/* @__PURE__ */ s.jsx("small", { children: n.formatMessage({ id: `${
|
|
2725
|
-
/* @__PURE__ */ s.jsx("ul", { children: [
|
|
2726
|
-
/* @__PURE__ */ s.jsxs(
|
|
2727
|
-
n.formatMessage({ id: `${
|
|
2724
|
+
/* @__PURE__ */ s.jsx("small", { children: n.formatMessage({ id: `${Xe}intro` }) }),
|
|
2725
|
+
/* @__PURE__ */ s.jsx("ul", { children: [Dn, Nn, Pn].map((r) => /* @__PURE__ */ s.jsxs("li", { className: S({ matches: e[r] }), children: [
|
|
2726
|
+
/* @__PURE__ */ s.jsxs(de, { children: [
|
|
2727
|
+
n.formatMessage({ id: `${Xe}rule_label` }),
|
|
2728
2728
|
" "
|
|
2729
2729
|
] }),
|
|
2730
|
-
/* @__PURE__ */ s.jsx("span", { children: n.formatMessage({ id: `${
|
|
2731
|
-
!e[r] && /* @__PURE__ */ s.jsxs(
|
|
2730
|
+
/* @__PURE__ */ s.jsx("span", { children: n.formatMessage({ id: `${Xe}rule_${br[r]}` }) }),
|
|
2731
|
+
!e[r] && /* @__PURE__ */ s.jsxs(de, { element: "strong", children: [
|
|
2732
2732
|
" ",
|
|
2733
2733
|
" ",
|
|
2734
|
-
n.formatMessage({ id: `${
|
|
2734
|
+
n.formatMessage({ id: `${Xe}notMet` })
|
|
2735
2735
|
] })
|
|
2736
2736
|
] }, `rule-${r}`)) })
|
|
2737
2737
|
] });
|
|
2738
|
-
}, $o =
|
|
2738
|
+
}, $o = Pe(wr);
|
|
2739
2739
|
const Mo = ({
|
|
2740
2740
|
text: e = {},
|
|
2741
2741
|
topRating: t = 5,
|
|
@@ -2745,7 +2745,7 @@ const Mo = ({
|
|
|
2745
2745
|
className: c = "",
|
|
2746
2746
|
hasLoaded: d = !1
|
|
2747
2747
|
}) => {
|
|
2748
|
-
const o = N(), [a, u] =
|
|
2748
|
+
const o = N(), [a, u] = L({ setUp: !1, id: null, rating: null, disabled: !0 }), l = async () => {
|
|
2749
2749
|
try {
|
|
2750
2750
|
const E = await n();
|
|
2751
2751
|
u((k) => ({ ...k, setUp: !0, id: E && E.id, disabled: !1 }));
|
|
@@ -2753,10 +2753,10 @@ const Mo = ({
|
|
|
2753
2753
|
u((k) => ({ ...k, setUp: !0, disabled: !0 })), i(E);
|
|
2754
2754
|
}
|
|
2755
2755
|
};
|
|
2756
|
-
if (
|
|
2756
|
+
if (Z(() => {
|
|
2757
2757
|
d && !a.setUp && l();
|
|
2758
2758
|
}, [d]), !d)
|
|
2759
|
-
return /* @__PURE__ */ s.jsx(
|
|
2759
|
+
return /* @__PURE__ */ s.jsx(ye, { className: "rating-placeholder" });
|
|
2760
2760
|
const { id: f, rating: h, disabled: p } = a, _ = "ratings_", j = {
|
|
2761
2761
|
text: o.formatMessage({ id: `${_}text` }),
|
|
2762
2762
|
low: o.formatMessage({ id: `${_}low` }),
|
|
@@ -2778,7 +2778,7 @@ const Mo = ({
|
|
|
2778
2778
|
/* @__PURE__ */ s.jsx("ol", { children: Array.from(new Array(t).keys()).map((E) => {
|
|
2779
2779
|
const k = E + 1;
|
|
2780
2780
|
return /* @__PURE__ */ s.jsx("li", { className: S({ selected: h && k <= h }), children: /* @__PURE__ */ s.jsx(
|
|
2781
|
-
|
|
2781
|
+
X,
|
|
2782
2782
|
{
|
|
2783
2783
|
variant: "tertiary",
|
|
2784
2784
|
size: "small",
|
|
@@ -2796,7 +2796,7 @@ const Mo = ({
|
|
|
2796
2796
|
}) })
|
|
2797
2797
|
] });
|
|
2798
2798
|
};
|
|
2799
|
-
const
|
|
2799
|
+
const vr = ({
|
|
2800
2800
|
id: e = "search",
|
|
2801
2801
|
className: t = "",
|
|
2802
2802
|
handleToggle: n = !1,
|
|
@@ -2804,8 +2804,8 @@ const wr = ({
|
|
|
2804
2804
|
gtmContext: i = "search-bar",
|
|
2805
2805
|
gtmEvent: c = "form-submission"
|
|
2806
2806
|
}) => {
|
|
2807
|
-
const { searchIsOpen: d = !0, isDesktopVersion: o = !1 } = n || {}, a = N(), u =
|
|
2808
|
-
|
|
2807
|
+
const { searchIsOpen: d = !0, isDesktopVersion: o = !1 } = n || {}, a = N(), u = se(null);
|
|
2808
|
+
De(() => {
|
|
2809
2809
|
!n || o || !d || u.current && u.current.focus();
|
|
2810
2810
|
}, [d]);
|
|
2811
2811
|
const l = (f) => {
|
|
@@ -2819,7 +2819,7 @@ const wr = ({
|
|
|
2819
2819
|
"data-gtm-event-context": i,
|
|
2820
2820
|
"data-gtm-event-type": c,
|
|
2821
2821
|
children: /* @__PURE__ */ s.jsx("fieldset", { id: `${e}-form`, hidden: n ? !d : !1, role: "search", children: /* @__PURE__ */ s.jsxs("p", { children: [
|
|
2822
|
-
/* @__PURE__ */ s.jsx(
|
|
2822
|
+
/* @__PURE__ */ s.jsx(de, { element: "label", htmlFor: e, children: a.formatMessage({ id: "search_label" }) }),
|
|
2823
2823
|
/* @__PURE__ */ s.jsx(
|
|
2824
2824
|
"input",
|
|
2825
2825
|
{
|
|
@@ -2841,10 +2841,10 @@ const wr = ({
|
|
|
2841
2841
|
onClick: (f) => {
|
|
2842
2842
|
f.preventDefault(), f.stopPropagation(), u.current && u.current.value && (u.current.value = "");
|
|
2843
2843
|
},
|
|
2844
|
-
children: /* @__PURE__ */ s.jsx(
|
|
2844
|
+
children: /* @__PURE__ */ s.jsx(de, { children: a.formatMessage({ id: "search_clear" }) })
|
|
2845
2845
|
}
|
|
2846
2846
|
),
|
|
2847
|
-
/* @__PURE__ */ s.jsx("button", { className: "search", onClick: l, children: /* @__PURE__ */ s.jsx(
|
|
2847
|
+
/* @__PURE__ */ s.jsx("button", { className: "search", onClick: l, children: /* @__PURE__ */ s.jsx(de, { children: a.formatMessage({ id: "search_cta" }) }) })
|
|
2848
2848
|
] }) })
|
|
2849
2849
|
}
|
|
2850
2850
|
);
|
|
@@ -2862,7 +2862,7 @@ const kr = ({
|
|
|
2862
2862
|
initialFormStatus: u = "NOT_SUBMITTED"
|
|
2863
2863
|
/* NOT_SUBMITTED */
|
|
2864
2864
|
}) => {
|
|
2865
|
-
const [l, f] =
|
|
2865
|
+
const [l, f] = L([]), [h, p] = L(!0), [_, j] = L(u), { formatMessage: g } = N(), E = async (M) => {
|
|
2866
2866
|
M.preventDefault();
|
|
2867
2867
|
try {
|
|
2868
2868
|
await a(l), f([]), j(
|
|
@@ -2891,11 +2891,11 @@ const kr = ({
|
|
|
2891
2891
|
" ",
|
|
2892
2892
|
g({ id: "inviteForm_error" })
|
|
2893
2893
|
] }) }),
|
|
2894
|
-
/* @__PURE__ */ s.jsx(
|
|
2894
|
+
/* @__PURE__ */ s.jsx(Ne, {}),
|
|
2895
2895
|
/* @__PURE__ */ s.jsx("div", { className: "footer", children: _ === "SUCCESS" ? /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
|
|
2896
|
-
/* @__PURE__ */ s.jsx(
|
|
2897
|
-
/* @__PURE__ */ s.jsx(
|
|
2898
|
-
] }) : /* @__PURE__ */ s.jsx(
|
|
2896
|
+
/* @__PURE__ */ s.jsx(X, { variant: "secondary", onClick: k, children: g({ id: "inviteForm_ctaSendMoreInvites" }) }),
|
|
2897
|
+
/* @__PURE__ */ s.jsx(X, { onClick: T, children: g({ id: "inviteForm_ctaDone" }) })
|
|
2898
|
+
] }) : /* @__PURE__ */ s.jsx(X, { onClick: k, children: g({ id: "inviteForm_ctaTryAgain" }) }) })
|
|
2899
2899
|
] }) : /* @__PURE__ */ s.jsx("div", { className: "invite-form-wrapper", children: /* @__PURE__ */ s.jsxs(
|
|
2900
2900
|
"form",
|
|
2901
2901
|
{
|
|
@@ -2917,16 +2917,16 @@ const kr = ({
|
|
|
2917
2917
|
f(M), p(!M.length);
|
|
2918
2918
|
},
|
|
2919
2919
|
autoFocus: !1,
|
|
2920
|
-
getLabel: (M, C,
|
|
2920
|
+
getLabel: (M, C, H) => /* @__PURE__ */ s.jsxs("div", { className: "email text-medium", children: [
|
|
2921
2921
|
/* @__PURE__ */ s.jsx("div", { "data-tag-item": !0, children: M }),
|
|
2922
2922
|
/* @__PURE__ */ s.jsx(
|
|
2923
|
-
|
|
2923
|
+
X,
|
|
2924
2924
|
{
|
|
2925
2925
|
variant: "tertiary",
|
|
2926
2926
|
size: "small",
|
|
2927
2927
|
icon: { icon: "close" },
|
|
2928
2928
|
onClick: () => {
|
|
2929
|
-
|
|
2929
|
+
H(C), p(!l.length);
|
|
2930
2930
|
},
|
|
2931
2931
|
className: "remove-email-button",
|
|
2932
2932
|
screenreaderText: g({ id: "overlay_close" })
|
|
@@ -2936,12 +2936,12 @@ const kr = ({
|
|
|
2936
2936
|
}
|
|
2937
2937
|
)
|
|
2938
2938
|
] }),
|
|
2939
|
-
/* @__PURE__ */ s.jsx(
|
|
2940
|
-
/* @__PURE__ */ s.jsx("fieldset", { className: "footer", children: /* @__PURE__ */ s.jsx(
|
|
2939
|
+
/* @__PURE__ */ s.jsx(Ne, {}),
|
|
2940
|
+
/* @__PURE__ */ s.jsx("fieldset", { className: "footer", children: /* @__PURE__ */ s.jsx(X, { className: "sendEmailsButton", disabled: h, children: n }) })
|
|
2941
2941
|
]
|
|
2942
2942
|
}
|
|
2943
2943
|
) });
|
|
2944
|
-
},
|
|
2944
|
+
}, Q = {
|
|
2945
2945
|
timeouts: {},
|
|
2946
2946
|
handlerCalled: {},
|
|
2947
2947
|
getIsDesktopVersion: (e, t) => {
|
|
@@ -2964,9 +2964,9 @@ const kr = ({
|
|
|
2964
2964
|
if (n[e] === t || e === "account" && t === !1 && n.navigation === !0)
|
|
2965
2965
|
return;
|
|
2966
2966
|
const i = Date.now();
|
|
2967
|
-
if (!t &&
|
|
2967
|
+
if (!t && Q.handlerCalled[e] && i - Q.handlerCalled[e] < 500)
|
|
2968
2968
|
return;
|
|
2969
|
-
|
|
2969
|
+
Q.handlerCalled[e] = i;
|
|
2970
2970
|
let c = [{ type: `menus.${e}`, value: t }];
|
|
2971
2971
|
t === !0 && Object.keys(n).forEach((d) => {
|
|
2972
2972
|
d === e || n[d] === !1 || c.push({ type: `menus.${d}`, value: !1 });
|
|
@@ -2987,11 +2987,11 @@ const kr = ({
|
|
|
2987
2987
|
return e[r];
|
|
2988
2988
|
if (!t.includes("."))
|
|
2989
2989
|
continue;
|
|
2990
|
-
const i =
|
|
2990
|
+
const i = gn(e[r], t);
|
|
2991
2991
|
if (!(typeof i > "u") && (!n || i[t] && i[t].includes(n) || i.value && i.value.includes(n) || i.toString().includes(n)))
|
|
2992
2992
|
return e[r];
|
|
2993
2993
|
}
|
|
2994
|
-
return e[0].children ?
|
|
2994
|
+
return e[0].children ? Q.findFirstChild(e[0].children, t, n) : !1;
|
|
2995
2995
|
},
|
|
2996
2996
|
autoFocus: ({ menu: e, navigationRef: t, isDesktopVersion: n, focusElements: r, dispatch: i }) => {
|
|
2997
2997
|
if (!t.current || !t.current.children)
|
|
@@ -3005,20 +3005,20 @@ const kr = ({
|
|
|
3005
3005
|
switch (e) {
|
|
3006
3006
|
case "navigation":
|
|
3007
3007
|
if (n) {
|
|
3008
|
-
const a =
|
|
3008
|
+
const a = Q.findFirstChild(
|
|
3009
3009
|
t.current.children,
|
|
3010
3010
|
"attributes.aria-controls",
|
|
3011
3011
|
"navigation"
|
|
3012
3012
|
);
|
|
3013
|
-
d =
|
|
3013
|
+
d = Q.findFirstChild(a.children, "href");
|
|
3014
3014
|
} else
|
|
3015
|
-
d =
|
|
3015
|
+
d = Q.findFirstChild(t.current.children, "href");
|
|
3016
3016
|
d || (d = t.current);
|
|
3017
3017
|
break;
|
|
3018
3018
|
case "account":
|
|
3019
|
-
if (o =
|
|
3019
|
+
if (o = Q.findFirstChild(t.current.children, "className", "account"), !o || !o.children)
|
|
3020
3020
|
return;
|
|
3021
|
-
d =
|
|
3021
|
+
d = Q.findFirstChild(o.children, "href");
|
|
3022
3022
|
break;
|
|
3023
3023
|
default:
|
|
3024
3024
|
return;
|
|
@@ -3027,21 +3027,21 @@ const kr = ({
|
|
|
3027
3027
|
},
|
|
3028
3028
|
events: {
|
|
3029
3029
|
onClick: (e, { id: t, callback: n, isOpen: r }) => {
|
|
3030
|
-
e.target && e.target.attributes && e.target.attributes.href || (e.preventDefault(), e.stopPropagation(), clearTimeout(
|
|
3030
|
+
e.target && e.target.attributes && e.target.attributes.href || (e.preventDefault(), e.stopPropagation(), clearTimeout(Q.timeouts[t]), n(t, !r));
|
|
3031
3031
|
},
|
|
3032
3032
|
onFocus: ({ id: e }) => {
|
|
3033
|
-
clearTimeout(
|
|
3033
|
+
clearTimeout(Q.timeouts[e]);
|
|
3034
3034
|
},
|
|
3035
3035
|
onMouseEnter: ({ id: e, callback: t }) => {
|
|
3036
|
-
clearTimeout(
|
|
3036
|
+
clearTimeout(Q.timeouts[e]), t(e, !0);
|
|
3037
3037
|
},
|
|
3038
3038
|
onBlur: ({ id: e, callback: t }) => {
|
|
3039
|
-
|
|
3039
|
+
Q.timeouts[e] = setTimeout(() => {
|
|
3040
3040
|
t(e, !1);
|
|
3041
3041
|
}, 250);
|
|
3042
3042
|
}
|
|
3043
3043
|
}
|
|
3044
|
-
},
|
|
3044
|
+
}, et = {
|
|
3045
3045
|
order: ["home", "topics", "partners", "account"],
|
|
3046
3046
|
home: {
|
|
3047
3047
|
href: "/home/",
|
|
@@ -3117,7 +3117,7 @@ const kr = ({
|
|
|
3117
3117
|
props: { variant: "primary" }
|
|
3118
3118
|
}
|
|
3119
3119
|
}
|
|
3120
|
-
},
|
|
3120
|
+
}, tt = ({
|
|
3121
3121
|
id: e,
|
|
3122
3122
|
isLoggedIn: t = !1,
|
|
3123
3123
|
isDesktopVersion: n = !1,
|
|
@@ -3126,7 +3126,7 @@ const kr = ({
|
|
|
3126
3126
|
},
|
|
3127
3127
|
doTrack: c = null
|
|
3128
3128
|
}) => {
|
|
3129
|
-
const d = N(), o =
|
|
3129
|
+
const d = N(), o = gn(et, e);
|
|
3130
3130
|
if (!o || o.onlyShow && (o.onlyShow === "logged-in" && !t || o.onlyShow === "logged-out" && t))
|
|
3131
3131
|
return null;
|
|
3132
3132
|
const a = "doTrack" in o, u = c === null ? a ? o.doTrack : !0 : c, l = e.includes("buttons.");
|
|
@@ -3158,16 +3158,16 @@ const kr = ({
|
|
|
3158
3158
|
let g = {}, E = {};
|
|
3159
3159
|
if (p) {
|
|
3160
3160
|
const k = o.menuId || e, T = {
|
|
3161
|
-
onClick: (M) =>
|
|
3162
|
-
onFocus: () =>
|
|
3163
|
-
onBlur: () =>
|
|
3164
|
-
onMouseLeave: () =>
|
|
3165
|
-
onMouseEnter: () =>
|
|
3161
|
+
onClick: (M) => Q.events.onClick(M, { id: k, callback: i, isOpen: r[k] }),
|
|
3162
|
+
onFocus: () => Q.events.onFocus({ id: k }),
|
|
3163
|
+
onBlur: () => Q.events.onBlur({ id: k, callback: i }),
|
|
3164
|
+
onMouseLeave: () => Q.events.onBlur({ id: k, callback: i }),
|
|
3165
|
+
onMouseEnter: () => Q.events.onMouseEnter({ id: k, callback: i })
|
|
3166
3166
|
};
|
|
3167
3167
|
n && (_ && (g = {
|
|
3168
3168
|
...T,
|
|
3169
3169
|
onKeyPress: (M) => {
|
|
3170
|
-
M.key === "Enter" &&
|
|
3170
|
+
M.key === "Enter" && Q.events.onClick(M, { id: k, callback: i, isOpen: r[k] });
|
|
3171
3171
|
},
|
|
3172
3172
|
tabIndex: "0",
|
|
3173
3173
|
// Add a `tabIndex` so keyboard users can focus on the `li`
|
|
@@ -3180,7 +3180,7 @@ const kr = ({
|
|
|
3180
3180
|
});
|
|
3181
3181
|
}
|
|
3182
3182
|
return /* @__PURE__ */ s.jsxs("li", { className: S({ [o.className]: o.className, "has-submenu": p, parent: _, active: j }), role: "none", ...g, children: [
|
|
3183
|
-
h ? D.createElement(l ?
|
|
3183
|
+
h ? D.createElement(l ? X : "a", h, d.formatMessage({ id: f })) : d.formatMessage({ id: f }),
|
|
3184
3184
|
o.order && /* @__PURE__ */ s.jsx("ul", { ...E, children: o.order.map((k) => {
|
|
3185
3185
|
if (!o[k])
|
|
3186
3186
|
return null;
|
|
@@ -3193,14 +3193,14 @@ const kr = ({
|
|
|
3193
3193
|
};
|
|
3194
3194
|
return o[k].order ? /* @__PURE__ */ s.jsxs("li", { className: S({ [o[k].className]: o[k].className }), children: [
|
|
3195
3195
|
d.formatMessage({ id: `${f}_${k}` }),
|
|
3196
|
-
/* @__PURE__ */ s.jsx("ul", { children: o[k].order.map((M) => /* @__PURE__ */ s.jsx(
|
|
3197
|
-
] }, k) : /* @__PURE__ */ s.jsx(
|
|
3196
|
+
/* @__PURE__ */ s.jsx("ul", { children: o[k].order.map((M) => /* @__PURE__ */ s.jsx(tt, { id: `${e}.${k}.${M}`, ...T }, M)) })
|
|
3197
|
+
] }, k) : /* @__PURE__ */ s.jsx(tt, { id: `${e}.${k}`, ...T }, k);
|
|
3198
3198
|
}) })
|
|
3199
3199
|
] }, e);
|
|
3200
3200
|
};
|
|
3201
|
-
const jr = { height: 67, height_desktop: 83 },
|
|
3202
|
-
const e = N(), t =
|
|
3203
|
-
() =>
|
|
3201
|
+
const jr = { height: 67, height_desktop: 83 }, Rn = () => {
|
|
3202
|
+
const e = N(), t = be(Te), n = at(!0, !0), r = t && typeof t.id == "string", i = nt(
|
|
3203
|
+
() => Q.getIsDesktopVersion(r, n),
|
|
3204
3204
|
[r, n]
|
|
3205
3205
|
), [c, d] = rs($s, {
|
|
3206
3206
|
headerIsVisible: !0,
|
|
@@ -3214,26 +3214,26 @@ const jr = { height: 67, height_desktop: 83 }, Nn = () => {
|
|
|
3214
3214
|
scrollPosition: jr[`height${i.navigation ? "_desktop" : ""}`],
|
|
3215
3215
|
callbacks: {
|
|
3216
3216
|
scrollUp: () => {
|
|
3217
|
-
!i && a.navigation ||
|
|
3217
|
+
!i && a.navigation || Q.shouldChangeHeaderIsVisible(!0, a, d);
|
|
3218
3218
|
},
|
|
3219
3219
|
scrollDown: () => {
|
|
3220
|
-
!i && a.navigation ||
|
|
3220
|
+
!i && a.navigation || Q.shouldChangeHeaderIsVisible(!1, a, d);
|
|
3221
3221
|
}
|
|
3222
3222
|
}
|
|
3223
3223
|
});
|
|
3224
3224
|
const l = (h, p) => {
|
|
3225
|
-
|
|
3226
|
-
}, f =
|
|
3227
|
-
return
|
|
3228
|
-
a.navigation &&
|
|
3225
|
+
Q.handleMenus({ id: h, value: p, menus: a, dispatch: d });
|
|
3226
|
+
}, f = se(null);
|
|
3227
|
+
return De(() => {
|
|
3228
|
+
a.navigation && Q.autoFocus({
|
|
3229
3229
|
menu: "navigation",
|
|
3230
3230
|
navigationRef: f,
|
|
3231
3231
|
isDesktopVersion: i.navigation,
|
|
3232
3232
|
focusElements: u,
|
|
3233
3233
|
dispatch: d
|
|
3234
3234
|
});
|
|
3235
|
-
}, [a.navigation]),
|
|
3236
|
-
a.account &&
|
|
3235
|
+
}, [a.navigation]), De(() => {
|
|
3236
|
+
a.account && Q.autoFocus({
|
|
3237
3237
|
menu: "account",
|
|
3238
3238
|
navigationRef: f,
|
|
3239
3239
|
isDesktopVersion: i.navigation,
|
|
@@ -3252,14 +3252,14 @@ const jr = { height: 67, height_desktop: 83 }, Nn = () => {
|
|
|
3252
3252
|
}),
|
|
3253
3253
|
children: [
|
|
3254
3254
|
/* @__PURE__ */ s.jsx(
|
|
3255
|
-
|
|
3255
|
+
de,
|
|
3256
3256
|
{
|
|
3257
3257
|
element: "a",
|
|
3258
3258
|
href: "#content-of-page",
|
|
3259
3259
|
children: e.formatMessage({ id: "header_skip" })
|
|
3260
3260
|
}
|
|
3261
3261
|
),
|
|
3262
|
-
/* @__PURE__ */ s.jsx(
|
|
3262
|
+
/* @__PURE__ */ s.jsx(Cn, {}),
|
|
3263
3263
|
!i.navigation && /* @__PURE__ */ s.jsx(
|
|
3264
3264
|
"button",
|
|
3265
3265
|
{
|
|
@@ -3272,7 +3272,7 @@ const jr = { height: 67, height_desktop: 83 }, Nn = () => {
|
|
|
3272
3272
|
"aria-haspopup": "true",
|
|
3273
3273
|
"aria-expanded": a.navigation,
|
|
3274
3274
|
"aria-controls": "navigation",
|
|
3275
|
-
children: /* @__PURE__ */ s.jsx(
|
|
3275
|
+
children: /* @__PURE__ */ s.jsx(de, { children: e.formatMessage({
|
|
3276
3276
|
id: `header_menu_${a.navigation ? "hide" : "show"}`
|
|
3277
3277
|
}) })
|
|
3278
3278
|
}
|
|
@@ -3285,8 +3285,8 @@ const jr = { height: 67, height_desktop: 83 }, Nn = () => {
|
|
|
3285
3285
|
hidden: i.navigation || a.account ? !1 : !a.navigation,
|
|
3286
3286
|
role: "menu",
|
|
3287
3287
|
"data-showing": !i.navigation && a.account ? "account" : "default",
|
|
3288
|
-
children:
|
|
3289
|
-
|
|
3288
|
+
children: et.order.map((h) => /* @__PURE__ */ s.jsx(
|
|
3289
|
+
tt,
|
|
3290
3290
|
{
|
|
3291
3291
|
id: h,
|
|
3292
3292
|
isLoggedIn: r,
|
|
@@ -3309,7 +3309,7 @@ const jr = { height: 67, height_desktop: 83 }, Nn = () => {
|
|
|
3309
3309
|
"aria-expanded": a.search,
|
|
3310
3310
|
"aria-controls": "search-form",
|
|
3311
3311
|
children: /* @__PURE__ */ s.jsx(
|
|
3312
|
-
|
|
3312
|
+
de,
|
|
3313
3313
|
{
|
|
3314
3314
|
children: e.formatMessage({
|
|
3315
3315
|
id: `header_search_${a.search ? "hide" : "show"}`
|
|
@@ -3319,7 +3319,7 @@ const jr = { height: 67, height_desktop: 83 }, Nn = () => {
|
|
|
3319
3319
|
}
|
|
3320
3320
|
),
|
|
3321
3321
|
/* @__PURE__ */ s.jsx(
|
|
3322
|
-
|
|
3322
|
+
vr,
|
|
3323
3323
|
{
|
|
3324
3324
|
id: "global-search",
|
|
3325
3325
|
handleToggle: {
|
|
@@ -3334,22 +3334,22 @@ const jr = { height: 67, height_desktop: 83 }, Nn = () => {
|
|
|
3334
3334
|
"button",
|
|
3335
3335
|
{
|
|
3336
3336
|
className: "account-button",
|
|
3337
|
-
onClick: (h) =>
|
|
3337
|
+
onClick: (h) => Q.events.onClick(h, {
|
|
3338
3338
|
id: "account",
|
|
3339
3339
|
callback: l,
|
|
3340
3340
|
isOpen: a.account
|
|
3341
3341
|
}),
|
|
3342
|
-
onMouseEnter: () =>
|
|
3343
|
-
onMouseLeave: () =>
|
|
3342
|
+
onMouseEnter: () => Q.events.onMouseEnter({ id: "account", callback: l }),
|
|
3343
|
+
onMouseLeave: () => Q.events.onBlur({ id: "account", callback: l }),
|
|
3344
3344
|
"aria-haspopup": "true",
|
|
3345
3345
|
"aria-expanded": a.account,
|
|
3346
3346
|
"aria-controls": "navigation",
|
|
3347
3347
|
children: [
|
|
3348
|
-
/* @__PURE__ */ s.jsx(
|
|
3348
|
+
/* @__PURE__ */ s.jsx(de, { children: e.formatMessage({
|
|
3349
3349
|
id: `header_account_${a.account ? "hide" : "show"}`
|
|
3350
3350
|
}) }),
|
|
3351
3351
|
/* @__PURE__ */ s.jsx(
|
|
3352
|
-
|
|
3352
|
+
It,
|
|
3353
3353
|
{
|
|
3354
3354
|
name: t && t.name || "",
|
|
3355
3355
|
src: t && t.image && t.image.thumbnail || ""
|
|
@@ -3357,7 +3357,7 @@ const jr = { height: 67, height_desktop: 83 }, Nn = () => {
|
|
|
3357
3357
|
)
|
|
3358
3358
|
]
|
|
3359
3359
|
}
|
|
3360
|
-
) : /* @__PURE__ */ s.jsx("ul", { className: "sign-in-buttons", children:
|
|
3360
|
+
) : /* @__PURE__ */ s.jsx("ul", { className: "sign-in-buttons", children: et.buttons.order.map((h) => /* @__PURE__ */ s.jsx(tt, { id: `buttons.${h}` }, h)) })
|
|
3361
3361
|
]
|
|
3362
3362
|
}
|
|
3363
3363
|
),
|
|
@@ -3375,26 +3375,26 @@ const jr = { height: 67, height_desktop: 83 }, Nn = () => {
|
|
|
3375
3375
|
const yr = () => {
|
|
3376
3376
|
const e = N();
|
|
3377
3377
|
return /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
|
|
3378
|
-
/* @__PURE__ */ s.jsx(
|
|
3379
|
-
/* @__PURE__ */ s.jsx("div", { id: "content", children: /* @__PURE__ */ s.jsx(
|
|
3380
|
-
/* @__PURE__ */ s.jsx(
|
|
3378
|
+
/* @__PURE__ */ s.jsx(Rn, {}),
|
|
3379
|
+
/* @__PURE__ */ s.jsx("div", { id: "content", children: /* @__PURE__ */ s.jsx(ct, { variant: "error", text: e.formatMessage({ id: "pageLayout_error" }) }) }),
|
|
3380
|
+
/* @__PURE__ */ s.jsx(An, {})
|
|
3381
3381
|
] });
|
|
3382
3382
|
}, Co = ({ children: e, reportError: t, showFooter: n = !0, background: r = "default", className: i = "", locale: c = "en" }) => {
|
|
3383
3383
|
const d = Es();
|
|
3384
|
-
|
|
3384
|
+
Z(() => {
|
|
3385
3385
|
window.scrollTo(0, 0);
|
|
3386
3386
|
}, [d]);
|
|
3387
|
-
const o =
|
|
3387
|
+
const o = kn(e, { locale: c });
|
|
3388
3388
|
return /* @__PURE__ */ s.jsx(gs, { onError: t, fallback: /* @__PURE__ */ s.jsx(yr, {}), children: /* @__PURE__ */ s.jsx(os, { fallback: /* @__PURE__ */ s.jsx(rr, { layout: "overview-page" }), children: /* @__PURE__ */ s.jsx("div", { id: "wrapper", className: S(i, { [r]: r !== "default" }), children: /* @__PURE__ */ s.jsxs(hs, { children: [
|
|
3389
|
-
/* @__PURE__ */ s.jsx(
|
|
3389
|
+
/* @__PURE__ */ s.jsx(Rn, {}),
|
|
3390
3390
|
/* @__PURE__ */ s.jsx("div", { id: "content", children: o }),
|
|
3391
|
-
n && /* @__PURE__ */ s.jsx(
|
|
3391
|
+
n && /* @__PURE__ */ s.jsx(An, {}),
|
|
3392
3392
|
/* @__PURE__ */ s.jsx(xr, {})
|
|
3393
3393
|
] }) }) }) });
|
|
3394
|
-
},
|
|
3394
|
+
}, mn = {
|
|
3395
3395
|
default: "tags_",
|
|
3396
3396
|
headerTopics: "header_topics_topics_"
|
|
3397
|
-
},
|
|
3397
|
+
}, Tt = {
|
|
3398
3398
|
topic: {
|
|
3399
3399
|
Climate: "climate",
|
|
3400
3400
|
CitiesAndLocalGovernment: "cities-and-local-government",
|
|
@@ -3413,13 +3413,13 @@ const yr = () => {
|
|
|
3413
3413
|
}, Er = {
|
|
3414
3414
|
getTagDetails: (e) => {
|
|
3415
3415
|
if (e.includes("topic_")) {
|
|
3416
|
-
if (e =
|
|
3417
|
-
const t =
|
|
3418
|
-
return t ? { id: e, href: t, text: `${
|
|
3416
|
+
if (e = Tt.topic[e.replace("topic_", "")], e) {
|
|
3417
|
+
const t = et.topics.topics[e].href;
|
|
3418
|
+
return t ? { id: e, href: t, text: `${mn.headerTopics}${e}` } : null;
|
|
3419
3419
|
}
|
|
3420
3420
|
return null;
|
|
3421
3421
|
}
|
|
3422
|
-
return
|
|
3422
|
+
return Tt[e] ? (e = Tt[e], { id: e, text: `${mn.default}${e}` }) : null;
|
|
3423
3423
|
}
|
|
3424
3424
|
};
|
|
3425
3425
|
const Ao = ({
|
|
@@ -3468,7 +3468,7 @@ const Do = ({
|
|
|
3468
3468
|
/* @__PURE__ */ s.jsx("span", { className: "count", children: e })
|
|
3469
3469
|
] }),
|
|
3470
3470
|
/* @__PURE__ */ s.jsx("ul", { children: t.map((o, a) => /* @__PURE__ */ s.jsxs("li", { children: [
|
|
3471
|
-
/* @__PURE__ */ s.jsx(
|
|
3471
|
+
/* @__PURE__ */ s.jsx(Ht, { member: o, gtmContext: r, gtmType: i }),
|
|
3472
3472
|
o.isAdmin && /* @__PURE__ */ s.jsx(er, { children: d.formatMessage({ id: "membersList_admin" }) })
|
|
3473
3473
|
] }, a)) }),
|
|
3474
3474
|
n && /* @__PURE__ */ s.jsx(
|
|
@@ -3481,8 +3481,8 @@ const Do = ({
|
|
|
3481
3481
|
)
|
|
3482
3482
|
] }));
|
|
3483
3483
|
};
|
|
3484
|
-
let
|
|
3485
|
-
const
|
|
3484
|
+
let Ze = null;
|
|
3485
|
+
const he = "discussion_form_", Fn = ({
|
|
3486
3486
|
content: e = { type: "response", slugs: {} },
|
|
3487
3487
|
userHasPermissions: t = !0,
|
|
3488
3488
|
meta: n = {
|
|
@@ -3513,97 +3513,97 @@ const me = "discussion_form_", Pn = ({
|
|
|
3513
3513
|
},
|
|
3514
3514
|
gtmContext: a = "DiscussionForm"
|
|
3515
3515
|
}) => {
|
|
3516
|
-
var b,
|
|
3517
|
-
const u = N(), l =
|
|
3516
|
+
var b, U;
|
|
3517
|
+
const u = N(), l = be(Te), [f, h] = L(
|
|
3518
3518
|
n.isEditing && n.isEditing.text || ""
|
|
3519
|
-
), [p, _] =
|
|
3519
|
+
), [p, _] = L(d.error || !1), [j, g] = L(!1), E = se(null);
|
|
3520
3520
|
if (r || (r = E), n.isLoading)
|
|
3521
3521
|
return /* @__PURE__ */ s.jsx(
|
|
3522
|
-
|
|
3522
|
+
ye,
|
|
3523
3523
|
{
|
|
3524
3524
|
className: "discussion-card discussion-form",
|
|
3525
3525
|
"data-testid": "loading-placeholder"
|
|
3526
3526
|
}
|
|
3527
3527
|
);
|
|
3528
3528
|
const k = (w) => {
|
|
3529
|
-
const
|
|
3530
|
-
h(
|
|
3531
|
-
let
|
|
3532
|
-
!l || !l.id ?
|
|
3529
|
+
const G = w.target.value;
|
|
3530
|
+
h(G);
|
|
3531
|
+
let O;
|
|
3532
|
+
!l || !l.id ? O = xe(
|
|
3533
3533
|
u.formatMessage,
|
|
3534
|
-
`${
|
|
3534
|
+
`${he}error_loggedOut`,
|
|
3535
3535
|
e.type,
|
|
3536
3536
|
"action"
|
|
3537
|
-
) : t ?
|
|
3537
|
+
) : t ? G.length >= i && (O = `${he}error_tooLong`) : O = xe(
|
|
3538
3538
|
u.formatMessage,
|
|
3539
|
-
`${
|
|
3539
|
+
`${he}error_noPermission`,
|
|
3540
3540
|
e.type,
|
|
3541
3541
|
"action"
|
|
3542
|
-
),
|
|
3542
|
+
), O ? _(O) : p && _(!1);
|
|
3543
3543
|
};
|
|
3544
3544
|
let T = `${e.type}-form`;
|
|
3545
3545
|
if (e.type === "response" || e.type === "reply") {
|
|
3546
|
-
const w = e.type === "response" ? ((b = e.slugs) == null ? void 0 : b.question) || "" : ((
|
|
3546
|
+
const w = e.type === "response" ? ((b = e.slugs) == null ? void 0 : b.question) || "" : ((U = e.slugs) == null ? void 0 : U.answer) || "";
|
|
3547
3547
|
w && (T = `${T}-${w.slice(-15)}`);
|
|
3548
3548
|
}
|
|
3549
3549
|
const M = async (w) => {
|
|
3550
|
-
var
|
|
3551
|
-
if (w.preventDefault(), w.stopPropagation(), !l || !l.id || !t ||
|
|
3550
|
+
var O;
|
|
3551
|
+
if (w.preventDefault(), w.stopPropagation(), !l || !l.id || !t || H)
|
|
3552
3552
|
return;
|
|
3553
|
-
|
|
3554
|
-
const
|
|
3553
|
+
Ze && clearTimeout(Ze), g("submitting");
|
|
3554
|
+
const G = window.location.pathname;
|
|
3555
3555
|
try {
|
|
3556
|
-
let
|
|
3556
|
+
let B;
|
|
3557
3557
|
switch (e.type) {
|
|
3558
3558
|
case "post":
|
|
3559
|
-
|
|
3559
|
+
B = await o.create({ content: f });
|
|
3560
3560
|
break;
|
|
3561
3561
|
case "question":
|
|
3562
|
-
|
|
3562
|
+
B = await o.create({
|
|
3563
3563
|
title: f,
|
|
3564
3564
|
authorId: l && l.id,
|
|
3565
|
-
...(
|
|
3565
|
+
...(O = o.props) == null ? void 0 : O.create
|
|
3566
3566
|
});
|
|
3567
3567
|
break;
|
|
3568
3568
|
case "response":
|
|
3569
|
-
|
|
3569
|
+
B = await o.create(
|
|
3570
3570
|
{ question: e.slugs.question },
|
|
3571
|
-
{ body: f, authorId: l && l.id, contentPath:
|
|
3571
|
+
{ body: f, authorId: l && l.id, contentPath: G }
|
|
3572
3572
|
);
|
|
3573
3573
|
break;
|
|
3574
3574
|
case "reply":
|
|
3575
|
-
|
|
3575
|
+
B = await o.create(
|
|
3576
3576
|
{ question: e.slugs.question, answer: e.slugs.answer },
|
|
3577
|
-
{ body: f, authorId: l && l.id, contentPath:
|
|
3577
|
+
{ body: f, authorId: l && l.id, contentPath: G }
|
|
3578
3578
|
);
|
|
3579
3579
|
break;
|
|
3580
3580
|
default:
|
|
3581
3581
|
break;
|
|
3582
3582
|
}
|
|
3583
|
-
await As(1e3), o.callback && await o.callback(
|
|
3583
|
+
await As(1e3), o.callback && await o.callback(B), Ze = setTimeout(() => {
|
|
3584
3584
|
h(""), g("submitted"), C();
|
|
3585
3585
|
}, 500);
|
|
3586
|
-
} catch (
|
|
3587
|
-
const
|
|
3588
|
-
let
|
|
3589
|
-
|
|
3586
|
+
} catch (B) {
|
|
3587
|
+
const W = B;
|
|
3588
|
+
let V = `${he}error`;
|
|
3589
|
+
W.message.includes("entry already exists") && (V = xe(
|
|
3590
3590
|
u.formatMessage,
|
|
3591
|
-
`${
|
|
3591
|
+
`${he}error_alreadyExists`,
|
|
3592
3592
|
e.type,
|
|
3593
3593
|
"action"
|
|
3594
|
-
)),
|
|
3594
|
+
)), W.message.includes("429") ? V = xe(
|
|
3595
3595
|
u.formatMessage,
|
|
3596
|
-
`${
|
|
3596
|
+
`${he}error_tooMany`,
|
|
3597
3597
|
e.type,
|
|
3598
3598
|
"action"
|
|
3599
|
-
) :
|
|
3599
|
+
) : W.message.includes("400") && (V = `${he}error`), _(V), C();
|
|
3600
3600
|
}
|
|
3601
3601
|
}, C = () => {
|
|
3602
|
-
|
|
3602
|
+
Ze = setTimeout(() => {
|
|
3603
3603
|
_(!1), g(!1);
|
|
3604
3604
|
}, 5e3);
|
|
3605
|
-
},
|
|
3606
|
-
return (n.isEditing && !
|
|
3605
|
+
}, H = !f || !Os(f), Y = j === "submitting", x = [];
|
|
3606
|
+
return (n.isEditing && !Y || d.cancel) && x.push({
|
|
3607
3607
|
variant: "secondary",
|
|
3608
3608
|
size: { mobile: "small", 600: "medium" },
|
|
3609
3609
|
onClick: o.handleCancel,
|
|
@@ -3611,7 +3611,7 @@ const me = "discussion_form_", Pn = ({
|
|
|
3611
3611
|
"data-gtm-event-context": a,
|
|
3612
3612
|
"data-gtm-event-type": `cancel-${e.type}-click`,
|
|
3613
3613
|
disabled: !d.cancel && (!l || !l.id || !f),
|
|
3614
|
-
children: u.formatMessage({ id: `${
|
|
3614
|
+
children: u.formatMessage({ id: `${he}cancel` })
|
|
3615
3615
|
}), x.push({
|
|
3616
3616
|
variant: "primary",
|
|
3617
3617
|
size: { mobile: "small", 600: "medium" },
|
|
@@ -3628,9 +3628,9 @@ const me = "discussion_form_", Pn = ({
|
|
|
3628
3628
|
"data-gtm-event-context": a,
|
|
3629
3629
|
"data-gtm-event-type": `${n.isEditing ? "save" : "submit"}-${e.type}-click`,
|
|
3630
3630
|
"data-testid": "save-button",
|
|
3631
|
-
disabled: !l || !l.id || !t ||
|
|
3631
|
+
disabled: !l || !l.id || !t || H || Y || n.isEditing && f === n.isEditing.text,
|
|
3632
3632
|
children: u.formatMessage({
|
|
3633
|
-
id: `${
|
|
3633
|
+
id: `${he}${Y ? n.isEditing ? "saving" : "posting" : n.isEditing ? "save" : "post"}`
|
|
3634
3634
|
})
|
|
3635
3635
|
}), /* @__PURE__ */ s.jsxs(
|
|
3636
3636
|
"form",
|
|
@@ -3641,25 +3641,25 @@ const me = "discussion_form_", Pn = ({
|
|
|
3641
3641
|
}),
|
|
3642
3642
|
"data-testid": `discussion-${e.type}-form`,
|
|
3643
3643
|
children: [
|
|
3644
|
-
(n == null ? void 0 : n.showTitle) && !n.isEditing && ["question"].includes(e.type) && /* @__PURE__ */ s.jsx("h2", { children:
|
|
3644
|
+
(n == null ? void 0 : n.showTitle) && !n.isEditing && ["question"].includes(e.type) && /* @__PURE__ */ s.jsx("h2", { children: xe(u.formatMessage, `${he}title`, e.type, "action") }),
|
|
3645
3645
|
/* @__PURE__ */ s.jsx(
|
|
3646
|
-
|
|
3646
|
+
Ht,
|
|
3647
3647
|
{
|
|
3648
3648
|
member: l || "community",
|
|
3649
3649
|
gtmContext: a,
|
|
3650
3650
|
gtmType: "profile-click"
|
|
3651
3651
|
}
|
|
3652
3652
|
),
|
|
3653
|
-
/* @__PURE__ */ s.jsx(
|
|
3653
|
+
/* @__PURE__ */ s.jsx(de, { element: "label", showOnFocus: !1, htmlFor: `${T}-input`, children: xe(u.formatMessage, `${he}label`, e.type, "action") }),
|
|
3654
3654
|
/* @__PURE__ */ s.jsx(
|
|
3655
3655
|
_s,
|
|
3656
3656
|
{
|
|
3657
3657
|
ref: r,
|
|
3658
3658
|
id: `${T}-input`,
|
|
3659
3659
|
name: e.type,
|
|
3660
|
-
placeholder:
|
|
3660
|
+
placeholder: xe(
|
|
3661
3661
|
u.formatMessage,
|
|
3662
|
-
`${
|
|
3662
|
+
`${he}placeholder`,
|
|
3663
3663
|
e.type,
|
|
3664
3664
|
"action"
|
|
3665
3665
|
),
|
|
@@ -3672,7 +3672,7 @@ const me = "discussion_form_", Pn = ({
|
|
|
3672
3672
|
autoFocus: !!n.isEditing
|
|
3673
3673
|
}
|
|
3674
3674
|
),
|
|
3675
|
-
/* @__PURE__ */ s.jsx("small", { children:
|
|
3675
|
+
/* @__PURE__ */ s.jsx("small", { children: xe(u.formatMessage, `${he}explainer`, e.type, "action", {
|
|
3676
3676
|
a: (w) => /* @__PURE__ */ s.jsx(
|
|
3677
3677
|
"a",
|
|
3678
3678
|
{
|
|
@@ -3686,9 +3686,9 @@ const me = "discussion_form_", Pn = ({
|
|
|
3686
3686
|
}
|
|
3687
3687
|
)
|
|
3688
3688
|
}) }),
|
|
3689
|
-
/* @__PURE__ */ s.jsx(
|
|
3690
|
-
j === "submitted" && /* @__PURE__ */ s.jsx(
|
|
3691
|
-
p && /* @__PURE__ */ s.jsx(
|
|
3689
|
+
/* @__PURE__ */ s.jsx(it, { buttons: x }),
|
|
3690
|
+
j === "submitted" && /* @__PURE__ */ s.jsx(Ft, { className: "success", "data-testid": "success", children: xe(u.formatMessage, `${he}success`, e.type, "action") }),
|
|
3691
|
+
p && /* @__PURE__ */ s.jsx(Ft, { id: "error-message", className: "error", "data-testid": "error", children: d.error ? d.error : typeof p == "string" ? p.includes(" ") ? p : u.formatMessage(
|
|
3692
3692
|
{ id: p },
|
|
3693
3693
|
{
|
|
3694
3694
|
action: u.formatMessage({
|
|
@@ -3700,20 +3700,20 @@ const me = "discussion_form_", Pn = ({
|
|
|
3700
3700
|
]
|
|
3701
3701
|
}
|
|
3702
3702
|
);
|
|
3703
|
-
},
|
|
3703
|
+
}, Qt = ({
|
|
3704
3704
|
contentType: e,
|
|
3705
3705
|
createPost: t,
|
|
3706
3706
|
membershipRequiredToPost: { isMember: n, required: r, join: i, leave: c, notMemberStateText: d }
|
|
3707
3707
|
}) => r && !n ? /* @__PURE__ */ s.jsx(
|
|
3708
|
-
|
|
3708
|
+
ct,
|
|
3709
3709
|
{
|
|
3710
3710
|
text: d,
|
|
3711
3711
|
button: {
|
|
3712
|
-
component: /* @__PURE__ */ s.jsx(
|
|
3712
|
+
component: /* @__PURE__ */ s.jsx(Mn, { functions: { join: i, leave: c } })
|
|
3713
3713
|
}
|
|
3714
3714
|
}
|
|
3715
3715
|
) : /* @__PURE__ */ s.jsx(
|
|
3716
|
-
|
|
3716
|
+
Fn,
|
|
3717
3717
|
{
|
|
3718
3718
|
content: { type: e, slugs: {} },
|
|
3719
3719
|
functions: {
|
|
@@ -3723,12 +3723,12 @@ const me = "discussion_form_", Pn = ({
|
|
|
3723
3723
|
), Sr = {
|
|
3724
3724
|
showThread: !1,
|
|
3725
3725
|
showForm: !1
|
|
3726
|
-
},
|
|
3727
|
-
const [t, n] =
|
|
3726
|
+
}, dt = Ot(Sr), Tr = ({ children: e }) => {
|
|
3727
|
+
const [t, n] = L({
|
|
3728
3728
|
showThread: !1,
|
|
3729
3729
|
showForm: !1
|
|
3730
3730
|
});
|
|
3731
|
-
return /* @__PURE__ */ s.jsx(
|
|
3731
|
+
return /* @__PURE__ */ s.jsx(dt.Provider, { value: { ...t, updateConversation: n }, children: e });
|
|
3732
3732
|
}, $r = ({
|
|
3733
3733
|
question: e,
|
|
3734
3734
|
answer: t,
|
|
@@ -3738,10 +3738,10 @@ const me = "discussion_form_", Pn = ({
|
|
|
3738
3738
|
...t && { answerSlug: t },
|
|
3739
3739
|
...n && { replySlug: n }
|
|
3740
3740
|
}), Mr = (e, t = 10) => !e || e.length === 0 ? [] : e.slice(0, t);
|
|
3741
|
-
let
|
|
3742
|
-
const
|
|
3743
|
-
|
|
3744
|
-
},
|
|
3741
|
+
let Ie = !1;
|
|
3742
|
+
const $t = () => {
|
|
3743
|
+
Ie !== !1 && (clearTimeout(Ie), Ie = !1);
|
|
3744
|
+
}, Mt = 10, Cr = ({
|
|
3745
3745
|
element: e = "div",
|
|
3746
3746
|
likes: t = 0,
|
|
3747
3747
|
peopleWhoLiked: n = !1,
|
|
@@ -3754,24 +3754,24 @@ const St = () => {
|
|
|
3754
3754
|
} } = {}
|
|
3755
3755
|
}) => {
|
|
3756
3756
|
const u = N();
|
|
3757
|
-
|
|
3757
|
+
Z(() => {
|
|
3758
3758
|
p(i);
|
|
3759
3759
|
}, [i]);
|
|
3760
|
-
const [l, f] =
|
|
3761
|
-
if (C.preventDefault(), C.stopPropagation(), E(!1),
|
|
3762
|
-
return
|
|
3763
|
-
if (
|
|
3760
|
+
const [l, f] = L(t), [h, p] = L(i), [_, j] = L(!1), [g, E] = L(!1), k = nt(() => Mr(n, Mt), [n]), T = (C) => {
|
|
3761
|
+
if (C.preventDefault(), C.stopPropagation(), E(!1), Ie)
|
|
3762
|
+
return $t(), !1;
|
|
3763
|
+
if ($t(), _ || !d)
|
|
3764
3764
|
return !1;
|
|
3765
|
-
|
|
3765
|
+
Ie = setTimeout(M, 350);
|
|
3766
3766
|
}, M = async () => {
|
|
3767
|
-
if (
|
|
3767
|
+
if ($t(), _ || !d)
|
|
3768
3768
|
return !1;
|
|
3769
3769
|
let C = h ? l - 1 : l + 1;
|
|
3770
3770
|
C < 0 && (C = 0), j(!0), f(C), p(!h);
|
|
3771
3771
|
try {
|
|
3772
3772
|
if (c && c.slugs) {
|
|
3773
|
-
const
|
|
3774
|
-
h ? await a(
|
|
3773
|
+
const H = $r(c.slugs);
|
|
3774
|
+
h ? await a(H) : await o(H, { contentPath: window.location.pathname });
|
|
3775
3775
|
}
|
|
3776
3776
|
} catch {
|
|
3777
3777
|
f(t), p(i);
|
|
@@ -3798,7 +3798,7 @@ const St = () => {
|
|
|
3798
3798
|
},
|
|
3799
3799
|
children: /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
|
|
3800
3800
|
/* @__PURE__ */ s.jsx(
|
|
3801
|
-
|
|
3801
|
+
X,
|
|
3802
3802
|
{
|
|
3803
3803
|
variant: "tertiary",
|
|
3804
3804
|
size: "medium",
|
|
@@ -3817,8 +3817,8 @@ const St = () => {
|
|
|
3817
3817
|
),
|
|
3818
3818
|
/* @__PURE__ */ s.jsx("span", { className: S("number-of-likes", { "no-likes": l === 0 }), "data-testid": "number-of-likes", children: u.formatMessage({ id: `discussion_likes${r ? "_short" : ""}` }, { number: l }) }),
|
|
3819
3819
|
n && /* @__PURE__ */ s.jsx(Qs, { isOpen: g, isLoading: n.length === 0, children: n.length && /* @__PURE__ */ s.jsxs("ul", { children: [
|
|
3820
|
-
k.map((C) => typeof C == "string" || !C.name ? null : /* @__PURE__ */ s.jsx("li", { children: /* @__PURE__ */ s.jsx(
|
|
3821
|
-
n.length >
|
|
3820
|
+
k.map((C) => typeof C == "string" || !C.name ? null : /* @__PURE__ */ s.jsx("li", { children: /* @__PURE__ */ s.jsx(lt, { href: C.id ? `/profiles/${C.id}` : void 0, gtmContext: "Likes", gtmType: "liked-name-click", children: C.name }) }, C.id || window.btoa(C.name))),
|
|
3821
|
+
n.length > Mt && /* @__PURE__ */ s.jsx("li", { children: u.formatMessage({ id: "discussion_likes_more" }, { number: n.length - Mt }) })
|
|
3822
3822
|
] }) })
|
|
3823
3823
|
] })
|
|
3824
3824
|
}
|
|
@@ -3832,7 +3832,7 @@ const Ar = ({ element: e = "section", children: t, className: n, ...r }) => D.cr
|
|
|
3832
3832
|
...r
|
|
3833
3833
|
}
|
|
3834
3834
|
);
|
|
3835
|
-
const
|
|
3835
|
+
const Ln = ({
|
|
3836
3836
|
id: e = "content-overlay",
|
|
3837
3837
|
isOpen: t = !1,
|
|
3838
3838
|
showDivider: n = !0,
|
|
@@ -3847,10 +3847,10 @@ const Rn = ({
|
|
|
3847
3847
|
className: l = "",
|
|
3848
3848
|
gtmContext: f = "Modal"
|
|
3849
3849
|
}) => {
|
|
3850
|
-
const h = N(), [p, _] =
|
|
3850
|
+
const h = N(), [p, _] = L(t), j = (E) => {
|
|
3851
3851
|
_(E), E ? (i(), document.body.classList.add("has-overlay")) : (c(), document.body.classList.remove("has-overlay"));
|
|
3852
3852
|
};
|
|
3853
|
-
|
|
3853
|
+
Z(() => {
|
|
3854
3854
|
j(t);
|
|
3855
3855
|
}, [t]);
|
|
3856
3856
|
const g = r ? { "--max-width": `${r / 16}rem` } : {};
|
|
@@ -3865,7 +3865,7 @@ const Rn = ({
|
|
|
3865
3865
|
/* @__PURE__ */ s.jsxs("div", { className: "top", children: [
|
|
3866
3866
|
o && /* @__PURE__ */ s.jsx("h2", { className: "modal-title", children: o }),
|
|
3867
3867
|
/* @__PURE__ */ s.jsx(
|
|
3868
|
-
|
|
3868
|
+
X,
|
|
3869
3869
|
{
|
|
3870
3870
|
variant: "tertiary",
|
|
3871
3871
|
size: "medium",
|
|
@@ -3878,13 +3878,13 @@ const Rn = ({
|
|
|
3878
3878
|
}
|
|
3879
3879
|
)
|
|
3880
3880
|
] }),
|
|
3881
|
-
n && /* @__PURE__ */ s.jsx(
|
|
3881
|
+
n && /* @__PURE__ */ s.jsx(Ne, {}),
|
|
3882
3882
|
a,
|
|
3883
3883
|
u && /* @__PURE__ */ s.jsxs("div", { className: "bottom", children: [
|
|
3884
|
-
/* @__PURE__ */ s.jsx(
|
|
3885
|
-
/* @__PURE__ */ s.jsx(
|
|
3884
|
+
/* @__PURE__ */ s.jsx(Ne, {}),
|
|
3885
|
+
/* @__PURE__ */ s.jsx(it, { buttons: u })
|
|
3886
3886
|
] }),
|
|
3887
|
-
d && /* @__PURE__ */ s.jsx(
|
|
3887
|
+
d && /* @__PURE__ */ s.jsx(Ft, { className: "error", children: d })
|
|
3888
3888
|
] })
|
|
3889
3889
|
}
|
|
3890
3890
|
) });
|
|
@@ -3906,7 +3906,7 @@ const No = ({
|
|
|
3906
3906
|
},
|
|
3907
3907
|
sendInvites: u
|
|
3908
3908
|
}) => /* @__PURE__ */ s.jsx(
|
|
3909
|
-
|
|
3909
|
+
Ln,
|
|
3910
3910
|
{
|
|
3911
3911
|
title: n,
|
|
3912
3912
|
isOpen: t,
|
|
@@ -3926,11 +3926,11 @@ const No = ({
|
|
|
3926
3926
|
}
|
|
3927
3927
|
)
|
|
3928
3928
|
}
|
|
3929
|
-
),
|
|
3929
|
+
), fn = (e) => {
|
|
3930
3930
|
const t = {};
|
|
3931
3931
|
return Object.keys(e).forEach((n) => n.includes("Id") ? t[n] = e[n] : t[`${n}Slug`] = e[n]), t;
|
|
3932
|
-
},
|
|
3933
|
-
const ve = "discussion_", Nr = 280,
|
|
3932
|
+
}, Ut = (e, t) => e && !t;
|
|
3933
|
+
const ve = "discussion_", Nr = 280, ut = ({
|
|
3934
3934
|
element: e = "div",
|
|
3935
3935
|
content: t,
|
|
3936
3936
|
userHasPermissions: n = !0,
|
|
@@ -3957,42 +3957,42 @@ const ve = "discussion_", Nr = 280, ct = ({
|
|
|
3957
3957
|
children: _,
|
|
3958
3958
|
isTruncated: j = !1
|
|
3959
3959
|
}) => {
|
|
3960
|
-
const g = N(), E =
|
|
3960
|
+
const g = N(), E = be(Te), k = be(dt), [T, M] = L({
|
|
3961
3961
|
body: t && t.body || "",
|
|
3962
3962
|
isEditing: !1,
|
|
3963
3963
|
didEdit: t && t.isEdited || !1
|
|
3964
|
-
}), [C,
|
|
3965
|
-
if (
|
|
3964
|
+
}), [C, H] = L(!1), [Y, x] = L("");
|
|
3965
|
+
if (Z(() => {
|
|
3966
3966
|
M({
|
|
3967
3967
|
...T,
|
|
3968
3968
|
body: t && t.body || "",
|
|
3969
3969
|
didEdit: t && t.isEdited || !1
|
|
3970
3970
|
});
|
|
3971
3971
|
}, [t.isEdited]), r || !t || t.type === "answer" && (!t.slugs || !t.slugs.question))
|
|
3972
|
-
return /* @__PURE__ */ s.jsx(
|
|
3973
|
-
const { author: b, canLike:
|
|
3972
|
+
return /* @__PURE__ */ s.jsx(ye, { className: "discussion-card discussion-post" });
|
|
3973
|
+
const { author: b, canLike: U, createdAt: w, id: G, likes: O = 0, userLiked: B, comments: W = 0 } = t, V = j ? st(T.body, Nr) : T.body, K = E && E.id && typeof b != "string" && b.id && b.id === E.id || !1, oe = typeof U == "boolean" ? U : n ? !K : !1, ae = async (P) => {
|
|
3974
3974
|
P || (P = ""), x("");
|
|
3975
3975
|
try {
|
|
3976
3976
|
if (!xs(P, T.body)) {
|
|
3977
3977
|
const te = t.type === "question" ? { title: P } : { body: P };
|
|
3978
|
-
await o(
|
|
3978
|
+
await o(fn(t.slugs), te);
|
|
3979
3979
|
}
|
|
3980
3980
|
M({ body: P, isEditing: !1, didEdit: !0 });
|
|
3981
3981
|
} catch {
|
|
3982
3982
|
x(`${ve}form_error`);
|
|
3983
3983
|
}
|
|
3984
|
-
},
|
|
3984
|
+
}, ie = () => {
|
|
3985
3985
|
k && k.updateConversation && k.updateConversation({ showThread: !0, showForm: !0 }), setTimeout(() => {
|
|
3986
|
-
const te = `reply-form-${(t.type === "answer" ? t.slug : t.slugs.answer || "").toLowerCase().slice(-15)}`,
|
|
3987
|
-
|
|
3986
|
+
const te = `reply-form-${(t.type === "answer" ? t.slug : t.slugs.answer || "").toLowerCase().slice(-15)}`, ce = document.getElementById(te), ne = document.getElementById(`${te}-input`);
|
|
3987
|
+
ne && ne.focus(), ce && ce.scrollIntoView({ behavior: "smooth" });
|
|
3988
3988
|
}, 0);
|
|
3989
|
-
},
|
|
3989
|
+
}, le = () => {
|
|
3990
3990
|
try {
|
|
3991
|
-
d(
|
|
3991
|
+
d(fn(t.slugs));
|
|
3992
3992
|
} catch {
|
|
3993
3993
|
x("delete-error");
|
|
3994
3994
|
}
|
|
3995
|
-
},
|
|
3995
|
+
}, re = [
|
|
3996
3996
|
{
|
|
3997
3997
|
text: g.formatMessage({ id: `${ve}moreMenu_report` }),
|
|
3998
3998
|
href: `mailto:community@apolitical.co?subject=${encodeURI(
|
|
@@ -4010,7 +4010,7 @@ const ve = "discussion_", Nr = 280, ct = ({
|
|
|
4010
4010
|
icon: "flag"
|
|
4011
4011
|
}
|
|
4012
4012
|
];
|
|
4013
|
-
return n &&
|
|
4013
|
+
return n && K && re.push(
|
|
4014
4014
|
{
|
|
4015
4015
|
text: g.formatMessage({ id: `${ve}moreMenu_edit` }),
|
|
4016
4016
|
onClick: () => M({ ...T, isEditing: !0 }),
|
|
@@ -4022,7 +4022,7 @@ const ve = "discussion_", Nr = 280, ct = ({
|
|
|
4022
4022
|
{
|
|
4023
4023
|
text: g.formatMessage({ id: `${ve}moreMenu_delete` }),
|
|
4024
4024
|
onClick: (P) => {
|
|
4025
|
-
P.preventDefault(), P.stopPropagation(),
|
|
4025
|
+
P.preventDefault(), P.stopPropagation(), H(!0);
|
|
4026
4026
|
},
|
|
4027
4027
|
icon: "trash",
|
|
4028
4028
|
className: "gtm-trackable",
|
|
@@ -4037,7 +4037,7 @@ const ve = "discussion_", Nr = 280, ct = ({
|
|
|
4037
4037
|
/* @__PURE__ */ s.jsxs(
|
|
4038
4038
|
"div",
|
|
4039
4039
|
{
|
|
4040
|
-
id:
|
|
4040
|
+
id: G || t.slug,
|
|
4041
4041
|
className: S("discussion-card", t.type, {
|
|
4042
4042
|
editing: T.isEditing,
|
|
4043
4043
|
"has-link": f.post && !T.isEditing
|
|
@@ -4047,7 +4047,7 @@ const ve = "discussion_", Nr = 280, ct = ({
|
|
|
4047
4047
|
},
|
|
4048
4048
|
children: [
|
|
4049
4049
|
!T.isEditing && /* @__PURE__ */ s.jsx(
|
|
4050
|
-
|
|
4050
|
+
Ht,
|
|
4051
4051
|
{
|
|
4052
4052
|
member: b,
|
|
4053
4053
|
additionalContent: { createdAt: w, didEdit: T.didEdit },
|
|
@@ -4057,7 +4057,7 @@ const ve = "discussion_", Nr = 280, ct = ({
|
|
|
4057
4057
|
}
|
|
4058
4058
|
),
|
|
4059
4059
|
T.isEditing ? /* @__PURE__ */ s.jsx(
|
|
4060
|
-
|
|
4060
|
+
Fn,
|
|
4061
4061
|
{
|
|
4062
4062
|
content: { type: t.type, slugs: t.slugs },
|
|
4063
4063
|
userHasPermissions: n,
|
|
@@ -4068,8 +4068,8 @@ const ve = "discussion_", Nr = 280, ct = ({
|
|
|
4068
4068
|
},
|
|
4069
4069
|
maxLength: t.type === "question" ? 250 : 5e4,
|
|
4070
4070
|
forceShow: {
|
|
4071
|
-
error:
|
|
4072
|
-
{ id:
|
|
4071
|
+
error: Y !== "" && Y !== "delete-error" ? g.formatMessage(
|
|
4072
|
+
{ id: Y },
|
|
4073
4073
|
{
|
|
4074
4074
|
action: g.formatMessage({
|
|
4075
4075
|
id: `discussion_action_${t.type}`
|
|
@@ -4079,7 +4079,7 @@ const ve = "discussion_", Nr = 280, ct = ({
|
|
|
4079
4079
|
},
|
|
4080
4080
|
functions: {
|
|
4081
4081
|
create: c,
|
|
4082
|
-
handleSaveEdit:
|
|
4082
|
+
handleSaveEdit: ae,
|
|
4083
4083
|
handleCancel: () => {
|
|
4084
4084
|
x(""), M({ ...T, isEditing: !1 });
|
|
4085
4085
|
}
|
|
@@ -4093,10 +4093,10 @@ const ve = "discussion_", Nr = 280, ct = ({
|
|
|
4093
4093
|
className: "gtm-trackable",
|
|
4094
4094
|
"data-gtm-event-context": p,
|
|
4095
4095
|
"data-gtm-event-type": "title-click",
|
|
4096
|
-
children: /* @__PURE__ */ s.jsx(
|
|
4096
|
+
children: /* @__PURE__ */ s.jsx(ln, { options: { overrides: { a: qs } }, children: V })
|
|
4097
4097
|
}
|
|
4098
4098
|
) : /* @__PURE__ */ s.jsx(
|
|
4099
|
-
|
|
4099
|
+
ln,
|
|
4100
4100
|
{
|
|
4101
4101
|
options: {
|
|
4102
4102
|
wrapper: t.type === "question" ? "h1" : D.Fragment,
|
|
@@ -4104,7 +4104,7 @@ const ve = "discussion_", Nr = 280, ct = ({
|
|
|
4104
4104
|
forceInline: t.type === "question",
|
|
4105
4105
|
forceBlock: t.type !== "question"
|
|
4106
4106
|
},
|
|
4107
|
-
children:
|
|
4107
|
+
children: V
|
|
4108
4108
|
}
|
|
4109
4109
|
),
|
|
4110
4110
|
!T.isEditing && /* @__PURE__ */ s.jsxs(
|
|
@@ -4117,11 +4117,12 @@ const ve = "discussion_", Nr = 280, ct = ({
|
|
|
4117
4117
|
Cr,
|
|
4118
4118
|
{
|
|
4119
4119
|
element: "li",
|
|
4120
|
-
likes:
|
|
4120
|
+
likes: O,
|
|
4121
4121
|
isShort: !1,
|
|
4122
|
-
userLiked:
|
|
4122
|
+
userLiked: B,
|
|
4123
4123
|
content: { type: t.type, slugs: t.slugs },
|
|
4124
|
-
canLike:
|
|
4124
|
+
canLike: oe,
|
|
4125
|
+
peopleWhoLiked: t.peopleWhoLiked,
|
|
4125
4126
|
functions: {
|
|
4126
4127
|
createLike: a,
|
|
4127
4128
|
deleteLike: u
|
|
@@ -4137,7 +4138,7 @@ const ve = "discussion_", Nr = 280, ct = ({
|
|
|
4137
4138
|
},
|
|
4138
4139
|
children: [
|
|
4139
4140
|
/* @__PURE__ */ s.jsx(
|
|
4140
|
-
|
|
4141
|
+
X,
|
|
4141
4142
|
{
|
|
4142
4143
|
variant: "tertiary",
|
|
4143
4144
|
size: "medium",
|
|
@@ -4150,24 +4151,24 @@ const ve = "discussion_", Nr = 280, ct = ({
|
|
|
4150
4151
|
"data-gtm-event-type": `answer-${t.type}-click`,
|
|
4151
4152
|
screenreaderText: g.formatMessage(
|
|
4152
4153
|
{ id: `${ve}comments_screenReader` },
|
|
4153
|
-
{ count:
|
|
4154
|
+
{ count: W }
|
|
4154
4155
|
)
|
|
4155
4156
|
}
|
|
4156
4157
|
),
|
|
4157
4158
|
/* @__PURE__ */ s.jsx("span", { children: g.formatMessage(
|
|
4158
4159
|
{ id: `${ve}comments` },
|
|
4159
|
-
{ count:
|
|
4160
|
+
{ count: W }
|
|
4160
4161
|
) })
|
|
4161
4162
|
]
|
|
4162
4163
|
}
|
|
4163
4164
|
),
|
|
4164
4165
|
(t.type === "answer" || t.type === "reply") && /* @__PURE__ */ s.jsx("li", { children: /* @__PURE__ */ s.jsx(
|
|
4165
|
-
|
|
4166
|
+
X,
|
|
4166
4167
|
{
|
|
4167
4168
|
variant: "tertiary",
|
|
4168
4169
|
size: "medium",
|
|
4169
4170
|
styling: { muted: !0 },
|
|
4170
|
-
onClick:
|
|
4171
|
+
onClick: ie,
|
|
4171
4172
|
children: g.formatMessage({ id: `${ve}reply` })
|
|
4172
4173
|
}
|
|
4173
4174
|
) }),
|
|
@@ -4176,7 +4177,7 @@ const ve = "discussion_", Nr = 280, ct = ({
|
|
|
4176
4177
|
{
|
|
4177
4178
|
element: "li",
|
|
4178
4179
|
id: `more-${t.slug}`,
|
|
4179
|
-
options:
|
|
4180
|
+
options: re
|
|
4180
4181
|
}
|
|
4181
4182
|
)
|
|
4182
4183
|
]
|
|
@@ -4187,14 +4188,14 @@ const ve = "discussion_", Nr = 280, ct = ({
|
|
|
4187
4188
|
),
|
|
4188
4189
|
_,
|
|
4189
4190
|
/* @__PURE__ */ s.jsx(
|
|
4190
|
-
|
|
4191
|
+
Ln,
|
|
4191
4192
|
{
|
|
4192
4193
|
id: `delete-${t.slug}-modal`,
|
|
4193
4194
|
isOpen: C,
|
|
4194
4195
|
functions: { onOpen: () => {
|
|
4195
|
-
}, onClose: () =>
|
|
4196
|
+
}, onClose: () => H(!1) },
|
|
4196
4197
|
forceShow: {
|
|
4197
|
-
error:
|
|
4198
|
+
error: Y === "delete-error" ? g.formatMessage(
|
|
4198
4199
|
{ id: "discussion_delete_error" },
|
|
4199
4200
|
{
|
|
4200
4201
|
action: g.formatMessage({
|
|
@@ -4210,19 +4211,19 @@ const ve = "discussion_", Nr = 280, ct = ({
|
|
|
4210
4211
|
buttons: [
|
|
4211
4212
|
{
|
|
4212
4213
|
variant: "secondary",
|
|
4213
|
-
onClick: () =>
|
|
4214
|
+
onClick: () => H(!1),
|
|
4214
4215
|
children: g.formatMessage({ id: "discussion_delete_cancel" })
|
|
4215
4216
|
},
|
|
4216
4217
|
{
|
|
4217
4218
|
variant: "primary",
|
|
4218
4219
|
className: "destructive",
|
|
4219
|
-
onClick:
|
|
4220
|
+
onClick: le,
|
|
4220
4221
|
children: g.formatMessage({ id: "discussion_delete_delete" })
|
|
4221
4222
|
}
|
|
4222
4223
|
],
|
|
4223
4224
|
gtmContext: `${t.type.charAt(0).toUpperCase()}${t.type.slice(1)}:${t.slug}`,
|
|
4224
4225
|
children: /* @__PURE__ */ s.jsx(
|
|
4225
|
-
|
|
4226
|
+
Ee,
|
|
4226
4227
|
{
|
|
4227
4228
|
id: "discussion_delete_text",
|
|
4228
4229
|
values: {
|
|
@@ -4238,25 +4239,25 @@ const ve = "discussion_", Nr = 280, ct = ({
|
|
|
4238
4239
|
] })
|
|
4239
4240
|
});
|
|
4240
4241
|
};
|
|
4241
|
-
const
|
|
4242
|
+
const Ct = "discussion_responses_", Po = ({ type: e = "answer", responses: t = 0 }) => {
|
|
4242
4243
|
const n = N();
|
|
4243
4244
|
return /* @__PURE__ */ s.jsxs("div", { className: "responses-heading", children: [
|
|
4244
|
-
/* @__PURE__ */ s.jsx("h3", { children: n.formatMessage({ id: `${
|
|
4245
|
-
t === 0 && /* @__PURE__ */ s.jsx("p", { children:
|
|
4245
|
+
/* @__PURE__ */ s.jsx("h3", { children: n.formatMessage({ id: `${Ct}title` }, { action: n.formatMessage({ id: `${Ct}${e}` }), count: t }) }),
|
|
4246
|
+
t === 0 && /* @__PURE__ */ s.jsx("p", { children: xe(n.formatMessage, `${Ct}empty`, e, e) })
|
|
4246
4247
|
] });
|
|
4247
4248
|
};
|
|
4248
4249
|
const Pr = ({ count: e = 0, showRepliesButton: t = !0, children: n }) => {
|
|
4249
|
-
const r = N(), i =
|
|
4250
|
+
const r = N(), i = se(null), c = be(dt), [d, o] = L(
|
|
4250
4251
|
"closed"
|
|
4251
4252
|
/* Closed */
|
|
4252
4253
|
);
|
|
4253
|
-
|
|
4254
|
+
Z(() => {
|
|
4254
4255
|
const f = i.current;
|
|
4255
4256
|
if (f)
|
|
4256
4257
|
return f.addEventListener("transitionend", a), () => {
|
|
4257
4258
|
f.removeEventListener("transitionend", a);
|
|
4258
4259
|
};
|
|
4259
|
-
}, []),
|
|
4260
|
+
}, []), De(() => {
|
|
4260
4261
|
d === "closed" && !c.showThread || o(
|
|
4261
4262
|
[
|
|
4262
4263
|
"opening",
|
|
@@ -4265,7 +4266,7 @@ const Pr = ({ count: e = 0, showRepliesButton: t = !0, children: n }) => {
|
|
|
4265
4266
|
].includes(d) ? "ready-to-close" : "opening"
|
|
4266
4267
|
/* Opening */
|
|
4267
4268
|
);
|
|
4268
|
-
}, [c.showThread]),
|
|
4269
|
+
}, [c.showThread]), Z(() => {
|
|
4269
4270
|
d === "ready-to-close" && o(
|
|
4270
4271
|
"closing"
|
|
4271
4272
|
/* Closing */
|
|
@@ -4277,12 +4278,12 @@ const Pr = ({ count: e = 0, showRepliesButton: t = !0, children: n }) => {
|
|
|
4277
4278
|
"opening",
|
|
4278
4279
|
"open"
|
|
4279
4280
|
/* Open */
|
|
4280
|
-
].includes(d), l =
|
|
4281
|
+
].includes(d), l = kn(n, {
|
|
4281
4282
|
element: "li"
|
|
4282
4283
|
});
|
|
4283
4284
|
return /* @__PURE__ */ s.jsxs("div", { className: "thread-wrapper", children: [
|
|
4284
4285
|
t && /* @__PURE__ */ s.jsx(
|
|
4285
|
-
|
|
4286
|
+
X,
|
|
4286
4287
|
{
|
|
4287
4288
|
variant: "secondary",
|
|
4288
4289
|
size: "small",
|
|
@@ -4433,12 +4434,12 @@ const Pr = ({ count: e = 0, showRepliesButton: t = !0, children: n }) => {
|
|
|
4433
4434
|
isMember: n,
|
|
4434
4435
|
functions: { list: r, create: i, edit: c, like: d, unlike: o, join: a, leave: u }
|
|
4435
4436
|
}) => {
|
|
4436
|
-
const l = N(), f =
|
|
4437
|
+
const l = N(), f = ot(), h = be(Te), {
|
|
4437
4438
|
data: p,
|
|
4438
4439
|
error: _,
|
|
4439
4440
|
isLoading: j,
|
|
4440
4441
|
isFetching: g
|
|
4441
|
-
} =
|
|
4442
|
+
} = pn({
|
|
4442
4443
|
queryKey: [e, t],
|
|
4443
4444
|
queryFn: r
|
|
4444
4445
|
}), E = Fr({
|
|
@@ -4446,43 +4447,43 @@ const Pr = ({ count: e = 0, showRepliesButton: t = !0, children: n }) => {
|
|
|
4446
4447
|
queryKey: [e, t],
|
|
4447
4448
|
user: h,
|
|
4448
4449
|
mutationFn: i
|
|
4449
|
-
}), { mutate: k } =
|
|
4450
|
+
}), { mutate: k } = me(E), T = Lr({
|
|
4450
4451
|
queryClient: f,
|
|
4451
4452
|
queryKey: [e, t],
|
|
4452
4453
|
mutationFn: async (w) => await c(w)
|
|
4453
4454
|
}), {
|
|
4454
4455
|
mutate: M
|
|
4455
|
-
} =
|
|
4456
|
+
} = me(T), C = Or({
|
|
4456
4457
|
queryClient: f,
|
|
4457
4458
|
queryKey: [e, t],
|
|
4458
4459
|
mutationFn: d
|
|
4459
4460
|
}), {
|
|
4460
|
-
mutate:
|
|
4461
|
-
} =
|
|
4461
|
+
mutate: H
|
|
4462
|
+
} = me(C), Y = Br({
|
|
4462
4463
|
queryClient: f,
|
|
4463
4464
|
queryKey: [e, t],
|
|
4464
4465
|
user: h,
|
|
4465
4466
|
mutationFn: async ({ activityId: w }) => {
|
|
4466
|
-
var
|
|
4467
|
-
const
|
|
4468
|
-
(
|
|
4469
|
-
)),
|
|
4470
|
-
(
|
|
4471
|
-
)) == null ? void 0 :
|
|
4472
|
-
await o({ reactionId:
|
|
4467
|
+
var B, W, V;
|
|
4468
|
+
const G = p && (p == null ? void 0 : p.find(
|
|
4469
|
+
(K) => K.id === w
|
|
4470
|
+
)), O = (V = (W = (B = G == null ? void 0 : G.own_reactions) == null ? void 0 : B.like) == null ? void 0 : W.find(
|
|
4471
|
+
(K) => K.user_id === (h == null ? void 0 : h.id)
|
|
4472
|
+
)) == null ? void 0 : V.id;
|
|
4473
|
+
await o({ reactionId: O || "", activityId: w });
|
|
4473
4474
|
}
|
|
4474
4475
|
}), {
|
|
4475
4476
|
mutate: x
|
|
4476
|
-
} =
|
|
4477
|
-
({ activityId: w }) =>
|
|
4478
|
-
[
|
|
4479
|
-
),
|
|
4477
|
+
} = me(Y), b = je(
|
|
4478
|
+
({ activityId: w }) => H({ activityId: w }),
|
|
4479
|
+
[H]
|
|
4480
|
+
), U = je(
|
|
4480
4481
|
({ activityId: w }) => x({ activityId: w }),
|
|
4481
4482
|
[x]
|
|
4482
4483
|
);
|
|
4483
|
-
return _ ? /* @__PURE__ */ s.jsx(
|
|
4484
|
+
return _ ? /* @__PURE__ */ s.jsx(ct, { variant: "error", text: _.message }) : j ? /* @__PURE__ */ s.jsx(ye, { style: { height: "400px" } }) : /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
|
|
4484
4485
|
/* @__PURE__ */ s.jsx(
|
|
4485
|
-
|
|
4486
|
+
Qt,
|
|
4486
4487
|
{
|
|
4487
4488
|
contentType: "post",
|
|
4488
4489
|
createPost: k,
|
|
@@ -4496,31 +4497,35 @@ const Pr = ({ count: e = 0, showRepliesButton: t = !0, children: n }) => {
|
|
|
4496
4497
|
}
|
|
4497
4498
|
),
|
|
4498
4499
|
!g && Array.isArray(p) && (p == null ? void 0 : p.map((w) => {
|
|
4499
|
-
var
|
|
4500
|
-
const
|
|
4501
|
-
return /* @__PURE__ */ s.jsxs(
|
|
4500
|
+
var B, W, V, K, oe, ae, ie, le, re, P, te, ce, ne, F;
|
|
4501
|
+
const G = ((B = w == null ? void 0 : w.actor) == null ? void 0 : B.id) === (h == null ? void 0 : h.id), O = Ut(n, G);
|
|
4502
|
+
return /* @__PURE__ */ s.jsxs(Dt, { children: [
|
|
4502
4503
|
/* @__PURE__ */ s.jsx(
|
|
4503
|
-
|
|
4504
|
+
ut,
|
|
4504
4505
|
{
|
|
4505
4506
|
content: {
|
|
4506
4507
|
type: "post",
|
|
4507
4508
|
body: w == null ? void 0 : w.content,
|
|
4508
|
-
canLike:
|
|
4509
|
+
canLike: O,
|
|
4509
4510
|
createdAt: (w == null ? void 0 : w.time) || "",
|
|
4510
4511
|
slugs: { parentId: t, activityId: w == null ? void 0 : w.id },
|
|
4511
4512
|
slug: w == null ? void 0 : w.id,
|
|
4512
4513
|
author: {
|
|
4513
|
-
id: (
|
|
4514
|
-
name: `${(
|
|
4515
|
-
organization: (
|
|
4516
|
-
jobTitle: (
|
|
4514
|
+
id: (W = w == null ? void 0 : w.actor) == null ? void 0 : W.id,
|
|
4515
|
+
name: `${(K = (V = w == null ? void 0 : w.actor) == null ? void 0 : V.data) == null ? void 0 : K.name}`,
|
|
4516
|
+
organization: (ae = (oe = w == null ? void 0 : w.actor) == null ? void 0 : oe.data) == null ? void 0 : ae.organization,
|
|
4517
|
+
jobTitle: (le = (ie = w == null ? void 0 : w.actor) == null ? void 0 : ie.data) == null ? void 0 : le.jobTitle,
|
|
4517
4518
|
image: {
|
|
4518
|
-
thumbnail: ((P = (
|
|
4519
|
+
thumbnail: ((P = (re = w == null ? void 0 : w.actor) == null ? void 0 : re.data) == null ? void 0 : P.thumbnail) || void 0
|
|
4519
4520
|
}
|
|
4520
4521
|
},
|
|
4521
|
-
userLiked: ((te = w == null ? void 0 : w.own_reactions) == null ? void 0 : te.like) && ((
|
|
4522
|
+
userLiked: ((te = w == null ? void 0 : w.own_reactions) == null ? void 0 : te.like) && ((ce = w == null ? void 0 : w.own_reactions) == null ? void 0 : ce.like.length) > 0,
|
|
4522
4523
|
likes: (w == null ? void 0 : w.reaction_counts.like) || 0,
|
|
4523
|
-
comments: (w == null ? void 0 : w.reaction_counts.reply) || 0
|
|
4524
|
+
comments: (w == null ? void 0 : w.reaction_counts.reply) || 0,
|
|
4525
|
+
peopleWhoLiked: ((ne = w == null ? void 0 : w.latest_reactions) == null ? void 0 : ne.like) && ((F = w == null ? void 0 : w.latest_reactions) == null ? void 0 : F.like.map((J) => ({
|
|
4526
|
+
id: J == null ? void 0 : J.user_id,
|
|
4527
|
+
name: J.user.data.name
|
|
4528
|
+
})))
|
|
4524
4529
|
},
|
|
4525
4530
|
links: {
|
|
4526
4531
|
post: `${e}/${t}/${w == null ? void 0 : w.id}`,
|
|
@@ -4530,14 +4535,14 @@ const Pr = ({ count: e = 0, showRepliesButton: t = !0, children: n }) => {
|
|
|
4530
4535
|
content: {
|
|
4531
4536
|
createContent: () => null,
|
|
4532
4537
|
deleteContent: () => null,
|
|
4533
|
-
updateContent: (
|
|
4538
|
+
updateContent: (J, fe) => M({ activityInfo: J, content: fe })
|
|
4534
4539
|
},
|
|
4535
4540
|
likes: {
|
|
4536
4541
|
createLike: () => {
|
|
4537
4542
|
b({ activityId: w == null ? void 0 : w.id });
|
|
4538
4543
|
},
|
|
4539
4544
|
deleteLike: () => {
|
|
4540
|
-
|
|
4545
|
+
U({ activityId: w == null ? void 0 : w.id });
|
|
4541
4546
|
}
|
|
4542
4547
|
},
|
|
4543
4548
|
comments: {
|
|
@@ -4547,7 +4552,7 @@ const Pr = ({ count: e = 0, showRepliesButton: t = !0, children: n }) => {
|
|
|
4547
4552
|
isTruncated: !0
|
|
4548
4553
|
}
|
|
4549
4554
|
),
|
|
4550
|
-
/* @__PURE__ */ s.jsx(
|
|
4555
|
+
/* @__PURE__ */ s.jsx(Ne, {})
|
|
4551
4556
|
] }, w == null ? void 0 : w.id);
|
|
4552
4557
|
}))
|
|
4553
4558
|
] });
|
|
@@ -4662,7 +4667,7 @@ const Pr = ({ count: e = 0, showRepliesButton: t = !0, children: n }) => {
|
|
|
4662
4667
|
...u,
|
|
4663
4668
|
latest_reactions: { reply: l }
|
|
4664
4669
|
})), { previousActivity: u };
|
|
4665
|
-
} }),
|
|
4670
|
+
} }), Wr = ({
|
|
4666
4671
|
queryClient: e,
|
|
4667
4672
|
queryKey: t,
|
|
4668
4673
|
mutationFn: n
|
|
@@ -4685,7 +4690,7 @@ const Pr = ({ count: e = 0, showRepliesButton: t = !0, children: n }) => {
|
|
|
4685
4690
|
onSettled: () => {
|
|
4686
4691
|
e.invalidateQueries({ queryKey: t });
|
|
4687
4692
|
}
|
|
4688
|
-
}),
|
|
4693
|
+
}), zr = ({
|
|
4689
4694
|
queryClient: e,
|
|
4690
4695
|
queryKey: t,
|
|
4691
4696
|
mutationFn: n
|
|
@@ -4710,7 +4715,7 @@ const Pr = ({ count: e = 0, showRepliesButton: t = !0, children: n }) => {
|
|
|
4710
4715
|
...o,
|
|
4711
4716
|
latest_reactions: { reply: a }
|
|
4712
4717
|
})), { previousActivity: o };
|
|
4713
|
-
} }),
|
|
4718
|
+
} }), hn = ({
|
|
4714
4719
|
queryClient: e,
|
|
4715
4720
|
queryKey: t,
|
|
4716
4721
|
mutationFn: n
|
|
@@ -4752,34 +4757,34 @@ const Pr = ({ count: e = 0, showRepliesButton: t = !0, children: n }) => {
|
|
|
4752
4757
|
replies: c,
|
|
4753
4758
|
functions: { create: d, edit: o, join: a, leave: u, like: l, unlike: f }
|
|
4754
4759
|
}) => {
|
|
4755
|
-
const h = N(), p =
|
|
4760
|
+
const h = N(), p = ot(), _ = be(dt), j = Wr({
|
|
4756
4761
|
queryClient: p,
|
|
4757
4762
|
queryKey: [e, t, r],
|
|
4758
4763
|
mutationFn: async (b) => d({ replyId: n, content: b.body })
|
|
4759
|
-
}), { mutate: g } =
|
|
4764
|
+
}), { mutate: g } = me(j), E = zr({
|
|
4760
4765
|
queryClient: p,
|
|
4761
4766
|
queryKey: [e, t, r],
|
|
4762
4767
|
mutationFn: o
|
|
4763
4768
|
}), {
|
|
4764
4769
|
mutate: k
|
|
4765
|
-
} =
|
|
4770
|
+
} = me(E), T = hn({
|
|
4766
4771
|
queryClient: p,
|
|
4767
4772
|
queryKey: [e, t, r],
|
|
4768
4773
|
mutationFn: l
|
|
4769
4774
|
}), {
|
|
4770
4775
|
mutate: M
|
|
4771
|
-
} =
|
|
4776
|
+
} = me(T), C = hn({
|
|
4772
4777
|
queryClient: p,
|
|
4773
4778
|
queryKey: [e, t, r],
|
|
4774
4779
|
mutationFn: f
|
|
4775
4780
|
}), {
|
|
4776
|
-
mutate:
|
|
4777
|
-
} =
|
|
4778
|
-
({ replyId: b, replyParentId:
|
|
4781
|
+
mutate: H
|
|
4782
|
+
} = me(C), Y = je(
|
|
4783
|
+
({ replyId: b, replyParentId: U }) => M({ replyId: b, replyParentId: U }),
|
|
4779
4784
|
[M]
|
|
4780
|
-
), x =
|
|
4781
|
-
({ replyId: b, replyParentId:
|
|
4782
|
-
[
|
|
4785
|
+
), x = je(
|
|
4786
|
+
({ replyId: b, replyParentId: U }) => H({ replyId: b, replyParentId: U }),
|
|
4787
|
+
[H]
|
|
4783
4788
|
);
|
|
4784
4789
|
return /* @__PURE__ */ s.jsx(
|
|
4785
4790
|
Pr,
|
|
@@ -4788,10 +4793,10 @@ const Pr = ({ count: e = 0, showRepliesButton: t = !0, children: n }) => {
|
|
|
4788
4793
|
showRepliesButton: i > 0 || _.showForm,
|
|
4789
4794
|
children: /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
|
|
4790
4795
|
_.showForm && /* @__PURE__ */ s.jsx(
|
|
4791
|
-
|
|
4796
|
+
Qt,
|
|
4792
4797
|
{
|
|
4793
4798
|
contentType: "reply",
|
|
4794
|
-
createPost: (b,
|
|
4799
|
+
createPost: (b, U) => g(U),
|
|
4795
4800
|
membershipRequiredToPost: {
|
|
4796
4801
|
isMember: !0,
|
|
4797
4802
|
required: !0,
|
|
@@ -4802,13 +4807,13 @@ const Pr = ({ count: e = 0, showRepliesButton: t = !0, children: n }) => {
|
|
|
4802
4807
|
}
|
|
4803
4808
|
),
|
|
4804
4809
|
(c == null ? void 0 : c.length) === 0 || (c == null ? void 0 : c.map((b) => {
|
|
4805
|
-
var
|
|
4810
|
+
var U, w, G, O, B, W, V, K, oe, ae, ie, le, re, P, te, ce, ne;
|
|
4806
4811
|
return /* @__PURE__ */ s.jsx(
|
|
4807
|
-
|
|
4812
|
+
ut,
|
|
4808
4813
|
{
|
|
4809
4814
|
content: {
|
|
4810
4815
|
type: "reply",
|
|
4811
|
-
body: typeof b.data.content == "string" ? (
|
|
4816
|
+
body: typeof b.data.content == "string" ? (U = b == null ? void 0 : b.data) == null ? void 0 : U.content : ((G = (w = b == null ? void 0 : b.data) == null ? void 0 : w.content) == null ? void 0 : G.text) || "",
|
|
4812
4817
|
createdAt: b == null ? void 0 : b.created_at,
|
|
4813
4818
|
slugs: {
|
|
4814
4819
|
parentId: t,
|
|
@@ -4818,33 +4823,37 @@ const Pr = ({ count: e = 0, showRepliesButton: t = !0, children: n }) => {
|
|
|
4818
4823
|
},
|
|
4819
4824
|
slug: "",
|
|
4820
4825
|
author: {
|
|
4821
|
-
id: (
|
|
4822
|
-
name: (
|
|
4823
|
-
organization: (
|
|
4824
|
-
jobTitle: (
|
|
4826
|
+
id: (O = b == null ? void 0 : b.user) == null ? void 0 : O.id,
|
|
4827
|
+
name: (W = (B = b == null ? void 0 : b.user) == null ? void 0 : B.data) == null ? void 0 : W.name,
|
|
4828
|
+
organization: (K = (V = b == null ? void 0 : b.user) == null ? void 0 : V.data) == null ? void 0 : K.organization,
|
|
4829
|
+
jobTitle: (ae = (oe = b == null ? void 0 : b.user) == null ? void 0 : oe.data) == null ? void 0 : ae.jobTitle,
|
|
4825
4830
|
image: {
|
|
4826
|
-
thumbnail: ((
|
|
4831
|
+
thumbnail: ((le = (ie = b == null ? void 0 : b.user) == null ? void 0 : ie.data) == null ? void 0 : le.thumbnail) || void 0
|
|
4827
4832
|
}
|
|
4828
4833
|
},
|
|
4829
|
-
userLiked: ((
|
|
4830
|
-
likes: ((te = b == null ? void 0 : b.children_counts) == null ? void 0 : te.like) || 0
|
|
4834
|
+
userLiked: ((re = b == null ? void 0 : b.own_children) == null ? void 0 : re.like) && ((P = b == null ? void 0 : b.own_children) == null ? void 0 : P.like.length) > 0,
|
|
4835
|
+
likes: ((te = b == null ? void 0 : b.children_counts) == null ? void 0 : te.like) || 0,
|
|
4836
|
+
peopleWhoLiked: ((ce = b == null ? void 0 : b.latest_children) == null ? void 0 : ce.like) && ((ne = b == null ? void 0 : b.latest_children) == null ? void 0 : ne.like.map((F) => ({
|
|
4837
|
+
id: F == null ? void 0 : F.user_id,
|
|
4838
|
+
name: F.user.data.name
|
|
4839
|
+
})))
|
|
4831
4840
|
},
|
|
4832
4841
|
functions: {
|
|
4833
4842
|
content: {
|
|
4834
4843
|
createContent: () => console.log("create"),
|
|
4835
4844
|
deleteContent: () => console.log("delete"),
|
|
4836
|
-
updateContent: (
|
|
4845
|
+
updateContent: (F, J) => k({ replyInfo: F, content: J })
|
|
4837
4846
|
},
|
|
4838
4847
|
likes: {
|
|
4839
|
-
createLike: () =>
|
|
4848
|
+
createLike: () => Y({
|
|
4840
4849
|
replyId: b == null ? void 0 : b.id,
|
|
4841
4850
|
replyParentId: b == null ? void 0 : b.parent
|
|
4842
4851
|
}),
|
|
4843
4852
|
deleteLike: () => {
|
|
4844
|
-
var
|
|
4845
|
-
const
|
|
4853
|
+
var J, fe, pe;
|
|
4854
|
+
const F = ((J = b == null ? void 0 : b.own_children) == null ? void 0 : J.like) && ((pe = (fe = b == null ? void 0 : b.own_children) == null ? void 0 : fe.like[0]) == null ? void 0 : pe.id);
|
|
4846
4855
|
return x({
|
|
4847
|
-
replyId:
|
|
4856
|
+
replyId: F || ""
|
|
4848
4857
|
});
|
|
4849
4858
|
}
|
|
4850
4859
|
},
|
|
@@ -4865,39 +4874,39 @@ const Pr = ({ count: e = 0, showRepliesButton: t = !0, children: n }) => {
|
|
|
4865
4874
|
isMember: i,
|
|
4866
4875
|
functions: { createReply: c, editReply: d, like: o, unlike: a, join: u, leave: l }
|
|
4867
4876
|
}) => {
|
|
4868
|
-
const f = N(), h =
|
|
4877
|
+
const f = N(), h = ot(), p = be(Te), _ = Ir({
|
|
4869
4878
|
queryClient: h,
|
|
4870
4879
|
queryKey: [e, t, n],
|
|
4871
4880
|
mutationFn: async (x) => c({ activityId: n, content: x.body })
|
|
4872
|
-
}), { mutate: j } =
|
|
4881
|
+
}), { mutate: j } = me(_), g = Hr({
|
|
4873
4882
|
queryClient: h,
|
|
4874
4883
|
queryKey: [e, t, n],
|
|
4875
4884
|
mutationFn: async (x) => d(x)
|
|
4876
4885
|
}), {
|
|
4877
4886
|
mutate: E
|
|
4878
|
-
} =
|
|
4887
|
+
} = me(g), k = Qr({
|
|
4879
4888
|
queryClient: h,
|
|
4880
4889
|
queryKey: [e, t, n],
|
|
4881
4890
|
mutationFn: o
|
|
4882
4891
|
}), {
|
|
4883
4892
|
mutate: T
|
|
4884
|
-
} =
|
|
4893
|
+
} = me(k), M = Ur({
|
|
4885
4894
|
queryClient: h,
|
|
4886
4895
|
queryKey: [e, t, n],
|
|
4887
4896
|
user: p,
|
|
4888
4897
|
mutationFn: a
|
|
4889
4898
|
}), {
|
|
4890
4899
|
mutate: C
|
|
4891
|
-
} =
|
|
4900
|
+
} = me(M), H = je(
|
|
4892
4901
|
({ replyId: x }) => T({ replyId: x }),
|
|
4893
4902
|
[T]
|
|
4894
|
-
),
|
|
4903
|
+
), Y = je(
|
|
4895
4904
|
({ replyId: x }) => C({ replyId: x }),
|
|
4896
4905
|
[C]
|
|
4897
4906
|
);
|
|
4898
4907
|
return /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
|
|
4899
4908
|
/* @__PURE__ */ s.jsx(
|
|
4900
|
-
|
|
4909
|
+
Qt,
|
|
4901
4910
|
{
|
|
4902
4911
|
contentType: "reply",
|
|
4903
4912
|
createPost: (x, b) => j(b),
|
|
@@ -4911,15 +4920,15 @@ const Pr = ({ count: e = 0, showRepliesButton: t = !0, children: n }) => {
|
|
|
4911
4920
|
}
|
|
4912
4921
|
),
|
|
4913
4922
|
(r == null ? void 0 : r.length) === 0 || (r == null ? void 0 : r.map((x) => {
|
|
4914
|
-
var w,
|
|
4915
|
-
const b = ((w = x == null ? void 0 : x.user) == null ? void 0 : w.id) === (p == null ? void 0 : p.id),
|
|
4923
|
+
var w, G, O, B, W, V, K, oe, ae, ie, le, re, P, te, ce, ne, F, J, fe, pe;
|
|
4924
|
+
const b = ((w = x == null ? void 0 : x.user) == null ? void 0 : w.id) === (p == null ? void 0 : p.id), U = Ut(i, b);
|
|
4916
4925
|
return /* @__PURE__ */ s.jsx(Tr, { children: /* @__PURE__ */ s.jsx(
|
|
4917
|
-
|
|
4926
|
+
ut,
|
|
4918
4927
|
{
|
|
4919
4928
|
content: {
|
|
4920
4929
|
type: "reply",
|
|
4921
|
-
body: typeof x.data.content == "string" ? (
|
|
4922
|
-
canLike:
|
|
4930
|
+
body: typeof x.data.content == "string" ? (G = x == null ? void 0 : x.data) == null ? void 0 : G.content : ((B = (O = x == null ? void 0 : x.data) == null ? void 0 : O.content) == null ? void 0 : B.text) || "",
|
|
4931
|
+
canLike: U,
|
|
4923
4932
|
createdAt: x == null ? void 0 : x.created_at,
|
|
4924
4933
|
slugs: {
|
|
4925
4934
|
question: `${e}/${t}/${n}`,
|
|
@@ -4928,29 +4937,33 @@ const Pr = ({ count: e = 0, showRepliesButton: t = !0, children: n }) => {
|
|
|
4928
4937
|
},
|
|
4929
4938
|
slug: `${e}/${t}/${n}#${x == null ? void 0 : x.id}`,
|
|
4930
4939
|
author: {
|
|
4931
|
-
id: (
|
|
4932
|
-
name: (
|
|
4933
|
-
organization: (
|
|
4934
|
-
jobTitle: (
|
|
4940
|
+
id: (W = x == null ? void 0 : x.user) == null ? void 0 : W.id,
|
|
4941
|
+
name: (K = (V = x == null ? void 0 : x.user) == null ? void 0 : V.data) == null ? void 0 : K.name,
|
|
4942
|
+
organization: (ae = (oe = x == null ? void 0 : x.user) == null ? void 0 : oe.data) == null ? void 0 : ae.organization,
|
|
4943
|
+
jobTitle: (le = (ie = x == null ? void 0 : x.user) == null ? void 0 : ie.data) == null ? void 0 : le.jobTitle,
|
|
4935
4944
|
image: {
|
|
4936
|
-
thumbnail: ((P = (
|
|
4945
|
+
thumbnail: ((P = (re = x == null ? void 0 : x.user) == null ? void 0 : re.data) == null ? void 0 : P.thumbnail) || void 0
|
|
4937
4946
|
}
|
|
4938
4947
|
},
|
|
4939
|
-
userLiked: ((te = x == null ? void 0 : x.own_children) == null ? void 0 : te.like) && ((
|
|
4940
|
-
likes: ((
|
|
4948
|
+
userLiked: ((te = x == null ? void 0 : x.own_children) == null ? void 0 : te.like) && ((ce = x == null ? void 0 : x.own_children) == null ? void 0 : ce.like.length) > 0,
|
|
4949
|
+
likes: ((ne = x == null ? void 0 : x.children_counts) == null ? void 0 : ne.like) || 0,
|
|
4950
|
+
peopleWhoLiked: ((F = x == null ? void 0 : x.latest_children) == null ? void 0 : F.like) && ((J = x == null ? void 0 : x.latest_children) == null ? void 0 : J.like.map((ge) => ({
|
|
4951
|
+
id: ge == null ? void 0 : ge.user_id,
|
|
4952
|
+
name: ge.user.data.name
|
|
4953
|
+
})))
|
|
4941
4954
|
},
|
|
4942
4955
|
functions: {
|
|
4943
4956
|
content: {
|
|
4944
4957
|
createContent: () => console.log("create"),
|
|
4945
4958
|
deleteContent: () => console.log("delete"),
|
|
4946
|
-
updateContent: (
|
|
4959
|
+
updateContent: (ge, $e) => E({ replyInfo: ge, content: $e })
|
|
4947
4960
|
},
|
|
4948
4961
|
likes: {
|
|
4949
|
-
createLike: () =>
|
|
4962
|
+
createLike: () => H({ replyId: x == null ? void 0 : x.id }),
|
|
4950
4963
|
deleteLike: () => {
|
|
4951
|
-
var
|
|
4952
|
-
const
|
|
4953
|
-
return
|
|
4964
|
+
var $e, He, Qe;
|
|
4965
|
+
const ge = (($e = x == null ? void 0 : x.own_children) == null ? void 0 : $e.like) && ((Qe = (He = x == null ? void 0 : x.own_children) == null ? void 0 : He.like[0]) == null ? void 0 : Qe.id);
|
|
4966
|
+
return Y({ replyId: ge || "" });
|
|
4954
4967
|
}
|
|
4955
4968
|
},
|
|
4956
4969
|
comments: {}
|
|
@@ -4962,8 +4975,8 @@ const Pr = ({ count: e = 0, showRepliesButton: t = !0, children: n }) => {
|
|
|
4962
4975
|
parentId: t,
|
|
4963
4976
|
replyParentId: x == null ? void 0 : x.id,
|
|
4964
4977
|
activityId: n,
|
|
4965
|
-
replyCount: ((
|
|
4966
|
-
replies: (
|
|
4978
|
+
replyCount: ((fe = x == null ? void 0 : x.children_counts) == null ? void 0 : fe.reply) || 0,
|
|
4979
|
+
replies: (pe = x == null ? void 0 : x.latest_children) == null ? void 0 : pe.reply,
|
|
4967
4980
|
isMember: i,
|
|
4968
4981
|
functions: {
|
|
4969
4982
|
create: c,
|
|
@@ -5075,61 +5088,61 @@ const Fo = ({
|
|
|
5075
5088
|
leave: p
|
|
5076
5089
|
}
|
|
5077
5090
|
}) => {
|
|
5078
|
-
var
|
|
5079
|
-
const _ =
|
|
5091
|
+
var B, W, V, K, oe, ae, ie, le, re, P, te, ce, ne;
|
|
5092
|
+
const _ = be(Te), j = ot(), {
|
|
5080
5093
|
data: g,
|
|
5081
5094
|
error: E,
|
|
5082
5095
|
isLoading: k,
|
|
5083
5096
|
isFetching: T
|
|
5084
|
-
} =
|
|
5097
|
+
} = pn({
|
|
5085
5098
|
queryKey: [e, t, n],
|
|
5086
5099
|
queryFn: i
|
|
5087
5100
|
}), M = Gr({
|
|
5088
5101
|
queryClient: j,
|
|
5089
5102
|
queryKey: [e, t, n],
|
|
5090
|
-
mutationFn: async (
|
|
5103
|
+
mutationFn: async (F) => await c(F)
|
|
5091
5104
|
}), {
|
|
5092
5105
|
mutate: C
|
|
5093
|
-
} =
|
|
5106
|
+
} = me(M), H = Jr({
|
|
5094
5107
|
queryClient: j,
|
|
5095
5108
|
queryKey: [e, t, n],
|
|
5096
5109
|
mutationFn: d
|
|
5097
5110
|
}), {
|
|
5098
|
-
mutate:
|
|
5099
|
-
} =
|
|
5111
|
+
mutate: Y
|
|
5112
|
+
} = me(H), x = Xr({
|
|
5100
5113
|
queryClient: j,
|
|
5101
5114
|
queryKey: [e, t, n],
|
|
5102
5115
|
user: _,
|
|
5103
5116
|
mutationFn: async () => {
|
|
5104
|
-
var
|
|
5105
|
-
const
|
|
5106
|
-
(
|
|
5107
|
-
)) == null ? void 0 :
|
|
5108
|
-
await o({ activityId: n, reactionId:
|
|
5117
|
+
var J, fe, pe;
|
|
5118
|
+
const F = (pe = (fe = (J = g == null ? void 0 : g.own_reactions) == null ? void 0 : J.like) == null ? void 0 : fe.find(
|
|
5119
|
+
(ge) => ge.user_id === (_ == null ? void 0 : _.id)
|
|
5120
|
+
)) == null ? void 0 : pe.id;
|
|
5121
|
+
await o({ activityId: n, reactionId: F });
|
|
5109
5122
|
},
|
|
5110
5123
|
activity: g
|
|
5111
5124
|
}), {
|
|
5112
5125
|
mutate: b
|
|
5113
|
-
} =
|
|
5114
|
-
({ activityId:
|
|
5115
|
-
[
|
|
5116
|
-
), w =
|
|
5117
|
-
async ({ activityId:
|
|
5126
|
+
} = me(x), U = je(
|
|
5127
|
+
({ activityId: F }) => Y({ activityId: F }),
|
|
5128
|
+
[Y]
|
|
5129
|
+
), w = je(
|
|
5130
|
+
async ({ activityId: F }) => b({ activityId: F }),
|
|
5118
5131
|
[b]
|
|
5119
5132
|
);
|
|
5120
5133
|
if (E)
|
|
5121
|
-
return /* @__PURE__ */ s.jsx(
|
|
5134
|
+
return /* @__PURE__ */ s.jsx(ct, { variant: "error", text: E.message });
|
|
5122
5135
|
if (k || T)
|
|
5123
|
-
return /* @__PURE__ */ s.jsx(
|
|
5124
|
-
const
|
|
5136
|
+
return /* @__PURE__ */ s.jsx(ye, { style: { height: "400px" } });
|
|
5137
|
+
const G = ((B = g == null ? void 0 : g.actor) == null ? void 0 : B.id) === (_ == null ? void 0 : _.id), O = Ut(r, G);
|
|
5125
5138
|
return /* @__PURE__ */ s.jsx(
|
|
5126
|
-
|
|
5139
|
+
ut,
|
|
5127
5140
|
{
|
|
5128
5141
|
className: "activity-section",
|
|
5129
5142
|
content: {
|
|
5130
5143
|
type: "post",
|
|
5131
5144
|
body: g == null ? void 0 : g.content,
|
|
5132
|
-
canLike:
|
|
5145
|
+
canLike: O,
|
|
5133
5146
|
createdAt: (g == null ? void 0 : g.time) || "",
|
|
5134
5147
|
slugs: {
|
|
5135
5148
|
question: `${t}/${n}`,
|
|
@@ -5138,27 +5151,31 @@ const Fo = ({
|
|
|
5138
5151
|
},
|
|
5139
5152
|
slug: n,
|
|
5140
5153
|
author: {
|
|
5141
|
-
id: (
|
|
5142
|
-
name: (
|
|
5143
|
-
organization: (
|
|
5144
|
-
jobTitle: (
|
|
5154
|
+
id: (W = g == null ? void 0 : g.actor) == null ? void 0 : W.id,
|
|
5155
|
+
name: (V = g == null ? void 0 : g.actor) == null ? void 0 : V.data.name,
|
|
5156
|
+
organization: (K = g == null ? void 0 : g.actor) == null ? void 0 : K.data.organization,
|
|
5157
|
+
jobTitle: (oe = g == null ? void 0 : g.actor) == null ? void 0 : oe.data.jobTitle,
|
|
5145
5158
|
image: {
|
|
5146
|
-
thumbnail: ((
|
|
5159
|
+
thumbnail: ((ae = g == null ? void 0 : g.actor) == null ? void 0 : ae.data.thumbnail) || void 0
|
|
5147
5160
|
}
|
|
5148
5161
|
},
|
|
5149
|
-
userLiked: ((
|
|
5162
|
+
userLiked: ((ie = g == null ? void 0 : g.own_reactions) == null ? void 0 : ie.like) && ((le = g == null ? void 0 : g.own_reactions) == null ? void 0 : le.like.length) > 0,
|
|
5150
5163
|
likes: g && (g == null ? void 0 : g.reaction_counts.like),
|
|
5151
|
-
comments: g && (g == null ? void 0 : g.reaction_counts.reply)
|
|
5164
|
+
comments: g && (g == null ? void 0 : g.reaction_counts.reply),
|
|
5165
|
+
peopleWhoLiked: ((re = g == null ? void 0 : g.latest_reactions) == null ? void 0 : re.like) && ((P = g == null ? void 0 : g.latest_reactions) == null ? void 0 : P.like.map((F) => ({
|
|
5166
|
+
id: F == null ? void 0 : F.user_id,
|
|
5167
|
+
name: F.user.data.name
|
|
5168
|
+
})))
|
|
5152
5169
|
},
|
|
5153
|
-
originalAuthorId: (
|
|
5170
|
+
originalAuthorId: (te = g == null ? void 0 : g.actor) == null ? void 0 : te.id,
|
|
5154
5171
|
functions: {
|
|
5155
5172
|
content: {
|
|
5156
5173
|
createContent: () => console.log("create"),
|
|
5157
5174
|
deleteContent: () => console.log("delete"),
|
|
5158
|
-
updateContent: (
|
|
5175
|
+
updateContent: (F, J) => C({ activityInfo: F, content: J })
|
|
5159
5176
|
},
|
|
5160
5177
|
likes: {
|
|
5161
|
-
createLike: () =>
|
|
5178
|
+
createLike: () => U({ activityId: n }),
|
|
5162
5179
|
deleteLike: () => w({ activityId: n })
|
|
5163
5180
|
},
|
|
5164
5181
|
comments: {
|
|
@@ -5169,7 +5186,7 @@ const Fo = ({
|
|
|
5169
5186
|
children: /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
|
|
5170
5187
|
/* @__PURE__ */ s.jsxs("h3", { children: [
|
|
5171
5188
|
"Comments (",
|
|
5172
|
-
((
|
|
5189
|
+
((ce = g == null ? void 0 : g.reaction_counts) == null ? void 0 : ce.reply) || 0,
|
|
5173
5190
|
")"
|
|
5174
5191
|
] }),
|
|
5175
5192
|
/* @__PURE__ */ s.jsx(
|
|
@@ -5178,7 +5195,7 @@ const Fo = ({
|
|
|
5178
5195
|
basePath: e,
|
|
5179
5196
|
parentId: t,
|
|
5180
5197
|
activityId: n,
|
|
5181
|
-
repliesList: (
|
|
5198
|
+
repliesList: (ne = g == null ? void 0 : g.latest_reactions) == null ? void 0 : ne.reply,
|
|
5182
5199
|
isMember: r,
|
|
5183
5200
|
functions: {
|
|
5184
5201
|
createReply: a,
|
|
@@ -5202,85 +5219,85 @@ const Fo = ({
|
|
|
5202
5219
|
image: { thumbnail: i }
|
|
5203
5220
|
});
|
|
5204
5221
|
export {
|
|
5205
|
-
|
|
5222
|
+
Pt as ASSETS_BUCKET,
|
|
5206
5223
|
Ro as ActivitiesFeed,
|
|
5207
5224
|
Fo as ActivitySection,
|
|
5208
|
-
|
|
5225
|
+
Qt as AddPost,
|
|
5209
5226
|
go as BannerSection,
|
|
5210
5227
|
jo as Breadcrumbs,
|
|
5211
|
-
|
|
5212
|
-
|
|
5228
|
+
X as Button,
|
|
5229
|
+
it as ButtonWrapper,
|
|
5213
5230
|
lr as CacheProvider,
|
|
5214
|
-
|
|
5231
|
+
yn as CollapsibleSection,
|
|
5215
5232
|
So as Columns,
|
|
5216
5233
|
ko as CommunityDetails,
|
|
5217
5234
|
ir as Contributors,
|
|
5218
|
-
|
|
5235
|
+
dt as ConversationContext,
|
|
5219
5236
|
xr as CookieBanner,
|
|
5220
5237
|
Tr as DiscussionConversation,
|
|
5221
|
-
|
|
5238
|
+
Fn as DiscussionForm,
|
|
5222
5239
|
Cr as DiscussionLikes,
|
|
5223
|
-
|
|
5240
|
+
ut as DiscussionPost,
|
|
5224
5241
|
Pr as DiscussionThread,
|
|
5225
|
-
|
|
5242
|
+
Ne as Divider,
|
|
5226
5243
|
ho as DownloadSection,
|
|
5227
|
-
|
|
5244
|
+
Be as EMAILS,
|
|
5228
5245
|
To as EmailHelperTextBox,
|
|
5229
|
-
|
|
5246
|
+
ct as EmptyStateBox,
|
|
5230
5247
|
yo as Filters,
|
|
5231
5248
|
ur as FlagsProvider,
|
|
5232
|
-
|
|
5233
|
-
|
|
5234
|
-
|
|
5235
|
-
|
|
5236
|
-
|
|
5237
|
-
|
|
5249
|
+
An as Footer,
|
|
5250
|
+
jn as FullWidthSection,
|
|
5251
|
+
vo as GlobalProviders,
|
|
5252
|
+
Rn as Header,
|
|
5253
|
+
zs as HelperTextBox,
|
|
5254
|
+
xn as HiddenFromScreenReaders,
|
|
5238
5255
|
bo as HideShowTextBox,
|
|
5239
|
-
|
|
5256
|
+
Se as HighlightedTextBox,
|
|
5240
5257
|
mr as IntlProvider,
|
|
5241
5258
|
kr as InviteForm,
|
|
5242
5259
|
No as InviteModal,
|
|
5243
|
-
|
|
5260
|
+
Mn as JoinButton,
|
|
5244
5261
|
Eo as LanguageSwitcher,
|
|
5245
|
-
|
|
5262
|
+
lt as Link,
|
|
5246
5263
|
pr as LoadMore,
|
|
5247
|
-
|
|
5248
|
-
|
|
5264
|
+
wo as LoadingBlock,
|
|
5265
|
+
ye as LoadingPlaceholder,
|
|
5249
5266
|
rr as LoadingState,
|
|
5250
|
-
|
|
5267
|
+
Cn as Logo,
|
|
5251
5268
|
po as LogoSection,
|
|
5252
|
-
|
|
5269
|
+
ln as MarkdownText,
|
|
5253
5270
|
_o as MarketingBox,
|
|
5254
|
-
|
|
5271
|
+
Ht as Member,
|
|
5255
5272
|
Do as MembersList,
|
|
5256
5273
|
Ar as Modal,
|
|
5257
5274
|
gr as MoreMenu,
|
|
5258
5275
|
xo as NUMBER_OF_USERS,
|
|
5259
|
-
|
|
5276
|
+
Ln as Overlay,
|
|
5260
5277
|
Co as PageLayout,
|
|
5261
5278
|
$o as PasswordRules,
|
|
5262
5279
|
er as Pill,
|
|
5263
|
-
|
|
5280
|
+
It as ProfilePicture,
|
|
5264
5281
|
nr as ProgressBar,
|
|
5265
5282
|
Mo as Rating,
|
|
5266
5283
|
Yr as RepliesFeed,
|
|
5267
5284
|
Po as ResponsesHeading,
|
|
5268
5285
|
Hs as ResponsiveImage,
|
|
5269
|
-
|
|
5286
|
+
vr as SearchForm,
|
|
5270
5287
|
qs as Span,
|
|
5271
|
-
|
|
5288
|
+
Ft as StatusBanner,
|
|
5272
5289
|
Ao as Tags,
|
|
5273
5290
|
Qs as Tooltip,
|
|
5274
|
-
|
|
5291
|
+
Te as UserContext,
|
|
5275
5292
|
fr as UserProvider,
|
|
5276
|
-
|
|
5293
|
+
de as VisuallyHidden,
|
|
5277
5294
|
Dr as addAriaProps,
|
|
5278
|
-
|
|
5279
|
-
|
|
5295
|
+
$n as getMember,
|
|
5296
|
+
et as headerData,
|
|
5280
5297
|
Lo as mapGetStreamData,
|
|
5281
5298
|
Es as useCurrentPath,
|
|
5282
|
-
|
|
5283
|
-
|
|
5299
|
+
De as useEffectAfterMount,
|
|
5300
|
+
at as useElementWidth,
|
|
5284
5301
|
Ts as useScrollListener,
|
|
5285
5302
|
fo as useScrollToHash
|
|
5286
5303
|
};
|