@apolitical/component-library 1.13.2 → 1.13.3-beta.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/communities/community-details/community-details.d.ts +3 -1
- package/discussion/components/post/post.d.ts +1 -3
- package/index.js +13 -13
- package/index.mjs +1125 -1179
- package/package.json +1 -1
- package/style.css +1 -1
package/index.mjs
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import A, { memo as Ae, useState as
|
|
1
|
+
import A, { memo as Ae, useState as D, useEffect as z, useRef as Z, useMemo as qe, Children as yt, createContext as Mt, useContext as ye, Fragment as Zt, useCallback as Ee, useReducer as rr, Suspense as sr } from "react";
|
|
2
2
|
import or from "lodash.clonedeep";
|
|
3
3
|
import ar from "lodash.set";
|
|
4
|
-
import { useIntl as
|
|
5
|
-
import
|
|
6
|
-
import
|
|
4
|
+
import { useIntl as P, IntlProvider as ir, createIntl as lr, FormattedMessage as we } from "react-intl";
|
|
5
|
+
import Ct from "truncate";
|
|
6
|
+
import Ke from "markdown-to-jsx";
|
|
7
7
|
import { QueryClient as cr, QueryClientProvider as ur, useQueryClient as At, useQuery as cn, useMutation as fe } from "@tanstack/react-query";
|
|
8
8
|
import { ReactQueryDevtools as dr } from "@tanstack/react-query-devtools";
|
|
9
9
|
import Ge from "posthog-js";
|
|
@@ -29,15 +29,15 @@ var dn = { exports: {} };
|
|
|
29
29
|
for (var s = [], o = 0; o < arguments.length; o++) {
|
|
30
30
|
var l = arguments[o];
|
|
31
31
|
if (l) {
|
|
32
|
-
var
|
|
33
|
-
if (
|
|
32
|
+
var m = typeof l;
|
|
33
|
+
if (m === "string" || m === "number")
|
|
34
34
|
s.push(l);
|
|
35
35
|
else if (Array.isArray(l)) {
|
|
36
36
|
if (l.length) {
|
|
37
37
|
var a = n.apply(null, l);
|
|
38
38
|
a && s.push(a);
|
|
39
39
|
}
|
|
40
|
-
} else if (
|
|
40
|
+
} else if (m === "object") {
|
|
41
41
|
if (l.toString !== Object.prototype.toString && !l.toString.toString().includes("[native code]")) {
|
|
42
42
|
s.push(l.toString());
|
|
43
43
|
continue;
|
|
@@ -53,8 +53,8 @@ var dn = { exports: {} };
|
|
|
53
53
|
})();
|
|
54
54
|
})(dn);
|
|
55
55
|
var vr = dn.exports;
|
|
56
|
-
const j = /* @__PURE__ */ xr(vr), br = ({ element: e = "span", showOnFocus: t = !0, children: n, ...s }) => A.createElement(e, { ...s, className: j("hidden", { "show-on-focus": t }), children: n }),
|
|
57
|
-
var
|
|
56
|
+
const j = /* @__PURE__ */ xr(vr), br = ({ element: e = "span", showOnFocus: t = !0, children: n, ...s }) => A.createElement(e, { ...s, className: j("hidden", { "show-on-focus": t }), children: n }), ne = Ae(br), wr = ({ element: e = "span", children: t = null, ...n }) => A.createElement(e, { ...n, "aria-hidden": !0 }, t), mn = Ae(wr);
|
|
57
|
+
var jt = { exports: {} }, De = {};
|
|
58
58
|
/**
|
|
59
59
|
* @license React
|
|
60
60
|
* react-jsx-runtime.production.min.js
|
|
@@ -67,10 +67,10 @@ var St = { exports: {} }, Pe = {};
|
|
|
67
67
|
var qt;
|
|
68
68
|
function kr() {
|
|
69
69
|
if (qt)
|
|
70
|
-
return
|
|
70
|
+
return De;
|
|
71
71
|
qt = 1;
|
|
72
72
|
var e = A, t = Symbol.for("react.element"), n = Symbol.for("react.fragment"), s = Object.prototype.hasOwnProperty, o = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, l = { key: !0, ref: !0, __self: !0, __source: !0 };
|
|
73
|
-
function
|
|
73
|
+
function m(a, i, c) {
|
|
74
74
|
var u, f = {}, p = null, h = null;
|
|
75
75
|
c !== void 0 && (p = "" + c), i.key !== void 0 && (p = "" + i.key), i.ref !== void 0 && (h = i.ref);
|
|
76
76
|
for (u in i)
|
|
@@ -80,9 +80,9 @@ function kr() {
|
|
|
80
80
|
f[u] === void 0 && (f[u] = i[u]);
|
|
81
81
|
return { $$typeof: t, type: a, key: p, ref: h, props: f, _owner: o.current };
|
|
82
82
|
}
|
|
83
|
-
return
|
|
83
|
+
return De.Fragment = n, De.jsx = m, De.jsxs = m, De;
|
|
84
84
|
}
|
|
85
|
-
var
|
|
85
|
+
var Pe = {};
|
|
86
86
|
/**
|
|
87
87
|
* @license React
|
|
88
88
|
* react-jsx-runtime.development.js
|
|
@@ -95,58 +95,58 @@ var Fe = {};
|
|
|
95
95
|
var Kt;
|
|
96
96
|
function yr() {
|
|
97
97
|
return Kt || (Kt = 1, process.env.NODE_ENV !== "production" && function() {
|
|
98
|
-
var e = A, t = Symbol.for("react.element"), n = Symbol.for("react.portal"), s = Symbol.for("react.fragment"), o = Symbol.for("react.strict_mode"), l = Symbol.for("react.profiler"),
|
|
99
|
-
function g(
|
|
100
|
-
if (
|
|
98
|
+
var e = A, t = Symbol.for("react.element"), n = Symbol.for("react.portal"), s = Symbol.for("react.fragment"), o = Symbol.for("react.strict_mode"), l = Symbol.for("react.profiler"), m = Symbol.for("react.provider"), a = Symbol.for("react.context"), i = Symbol.for("react.forward_ref"), c = Symbol.for("react.suspense"), u = Symbol.for("react.suspense_list"), f = Symbol.for("react.memo"), p = Symbol.for("react.lazy"), h = Symbol.for("react.offscreen"), _ = Symbol.iterator, v = "@@iterator";
|
|
99
|
+
function g(d) {
|
|
100
|
+
if (d === null || typeof d != "object")
|
|
101
101
|
return null;
|
|
102
|
-
var
|
|
103
|
-
return typeof
|
|
102
|
+
var b = _ && d[_] || d[v];
|
|
103
|
+
return typeof b == "function" ? b : null;
|
|
104
104
|
}
|
|
105
105
|
var E = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
106
|
-
function
|
|
106
|
+
function x(d) {
|
|
107
107
|
{
|
|
108
|
-
for (var
|
|
109
|
-
y[
|
|
110
|
-
|
|
108
|
+
for (var b = arguments.length, y = new Array(b > 1 ? b - 1 : 0), S = 1; S < b; S++)
|
|
109
|
+
y[S - 1] = arguments[S];
|
|
110
|
+
$("error", d, y);
|
|
111
111
|
}
|
|
112
112
|
}
|
|
113
|
-
function
|
|
113
|
+
function $(d, b, y) {
|
|
114
114
|
{
|
|
115
|
-
var
|
|
116
|
-
O !== "" && (
|
|
117
|
-
var H = y.map(function(
|
|
118
|
-
return String(
|
|
115
|
+
var S = E.ReactDebugCurrentFrame, O = S.getStackAddendum();
|
|
116
|
+
O !== "" && (b += "%s", y = y.concat([O]));
|
|
117
|
+
var H = y.map(function(N) {
|
|
118
|
+
return String(N);
|
|
119
119
|
});
|
|
120
|
-
H.unshift("Warning: " +
|
|
120
|
+
H.unshift("Warning: " + b), Function.prototype.apply.call(console[d], console, H);
|
|
121
121
|
}
|
|
122
122
|
}
|
|
123
|
-
var T = !1, M = !1, Q = !1, V = !1,
|
|
124
|
-
|
|
125
|
-
function q(
|
|
126
|
-
return !!(typeof
|
|
123
|
+
var T = !1, M = !1, Q = !1, V = !1, w = !1, F;
|
|
124
|
+
F = Symbol.for("react.module.reference");
|
|
125
|
+
function q(d) {
|
|
126
|
+
return !!(typeof d == "string" || typeof d == "function" || d === s || d === l || w || d === o || d === c || d === u || V || d === h || T || M || Q || typeof d == "object" && d !== null && (d.$$typeof === p || d.$$typeof === f || d.$$typeof === m || d.$$typeof === a || d.$$typeof === i || // This needs to include all possible module reference object
|
|
127
127
|
// types supported by any Flight configuration anywhere since
|
|
128
128
|
// we don't know which Flight build this will end up being used
|
|
129
129
|
// with.
|
|
130
|
-
|
|
130
|
+
d.$$typeof === F || d.getModuleId !== void 0));
|
|
131
131
|
}
|
|
132
|
-
function
|
|
133
|
-
var
|
|
134
|
-
if (
|
|
135
|
-
return
|
|
136
|
-
var O =
|
|
132
|
+
function k(d, b, y) {
|
|
133
|
+
var S = d.displayName;
|
|
134
|
+
if (S)
|
|
135
|
+
return S;
|
|
136
|
+
var O = b.displayName || b.name || "";
|
|
137
137
|
return O !== "" ? y + "(" + O + ")" : y;
|
|
138
138
|
}
|
|
139
|
-
function
|
|
140
|
-
return
|
|
139
|
+
function Y(d) {
|
|
140
|
+
return d.displayName || "Context";
|
|
141
141
|
}
|
|
142
|
-
function
|
|
143
|
-
if (
|
|
142
|
+
function B(d) {
|
|
143
|
+
if (d == null)
|
|
144
144
|
return null;
|
|
145
|
-
if (typeof
|
|
146
|
-
return
|
|
147
|
-
if (typeof
|
|
148
|
-
return
|
|
149
|
-
switch (
|
|
145
|
+
if (typeof d.tag == "number" && x("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof d == "function")
|
|
146
|
+
return d.displayName || d.name || null;
|
|
147
|
+
if (typeof d == "string")
|
|
148
|
+
return d;
|
|
149
|
+
switch (d) {
|
|
150
150
|
case s:
|
|
151
151
|
return "Fragment";
|
|
152
152
|
case n:
|
|
@@ -160,23 +160,23 @@ function yr() {
|
|
|
160
160
|
case u:
|
|
161
161
|
return "SuspenseList";
|
|
162
162
|
}
|
|
163
|
-
if (typeof
|
|
164
|
-
switch (
|
|
163
|
+
if (typeof d == "object")
|
|
164
|
+
switch (d.$$typeof) {
|
|
165
165
|
case a:
|
|
166
|
-
var
|
|
167
|
-
return
|
|
168
|
-
case
|
|
169
|
-
var y =
|
|
170
|
-
return
|
|
166
|
+
var b = d;
|
|
167
|
+
return Y(b) + ".Consumer";
|
|
168
|
+
case m:
|
|
169
|
+
var y = d;
|
|
170
|
+
return Y(y._context) + ".Provider";
|
|
171
171
|
case i:
|
|
172
|
-
return
|
|
172
|
+
return k(d, d.render, "ForwardRef");
|
|
173
173
|
case f:
|
|
174
|
-
var
|
|
175
|
-
return
|
|
174
|
+
var S = d.displayName || null;
|
|
175
|
+
return S !== null ? S : B(d.type) || "Memo";
|
|
176
176
|
case p: {
|
|
177
|
-
var O =
|
|
177
|
+
var O = d, H = O._payload, N = O._init;
|
|
178
178
|
try {
|
|
179
|
-
return
|
|
179
|
+
return B(N(H));
|
|
180
180
|
} catch {
|
|
181
181
|
return null;
|
|
182
182
|
}
|
|
@@ -184,80 +184,80 @@ function yr() {
|
|
|
184
184
|
}
|
|
185
185
|
return null;
|
|
186
186
|
}
|
|
187
|
-
var
|
|
188
|
-
function
|
|
187
|
+
var L = Object.assign, U = 0, G, K, ie, le, se, R, ee;
|
|
188
|
+
function oe() {
|
|
189
189
|
}
|
|
190
|
-
|
|
191
|
-
function
|
|
190
|
+
oe.__reactDisabledLog = !0;
|
|
191
|
+
function ce() {
|
|
192
192
|
{
|
|
193
193
|
if (U === 0) {
|
|
194
|
-
|
|
195
|
-
var
|
|
194
|
+
G = console.log, K = console.info, ie = console.warn, le = console.error, se = console.group, R = console.groupCollapsed, ee = console.groupEnd;
|
|
195
|
+
var d = {
|
|
196
196
|
configurable: !0,
|
|
197
197
|
enumerable: !0,
|
|
198
|
-
value:
|
|
198
|
+
value: oe,
|
|
199
199
|
writable: !0
|
|
200
200
|
};
|
|
201
201
|
Object.defineProperties(console, {
|
|
202
|
-
info:
|
|
203
|
-
log:
|
|
204
|
-
warn:
|
|
205
|
-
error:
|
|
206
|
-
group:
|
|
207
|
-
groupCollapsed:
|
|
208
|
-
groupEnd:
|
|
202
|
+
info: d,
|
|
203
|
+
log: d,
|
|
204
|
+
warn: d,
|
|
205
|
+
error: d,
|
|
206
|
+
group: d,
|
|
207
|
+
groupCollapsed: d,
|
|
208
|
+
groupEnd: d
|
|
209
209
|
});
|
|
210
210
|
}
|
|
211
211
|
U++;
|
|
212
212
|
}
|
|
213
213
|
}
|
|
214
|
-
function
|
|
214
|
+
function te() {
|
|
215
215
|
{
|
|
216
216
|
if (U--, U === 0) {
|
|
217
|
-
var
|
|
217
|
+
var d = {
|
|
218
218
|
configurable: !0,
|
|
219
219
|
enumerable: !0,
|
|
220
220
|
writable: !0
|
|
221
221
|
};
|
|
222
222
|
Object.defineProperties(console, {
|
|
223
|
-
log:
|
|
224
|
-
value:
|
|
223
|
+
log: L({}, d, {
|
|
224
|
+
value: G
|
|
225
225
|
}),
|
|
226
|
-
info:
|
|
226
|
+
info: L({}, d, {
|
|
227
227
|
value: K
|
|
228
228
|
}),
|
|
229
|
-
warn:
|
|
229
|
+
warn: L({}, d, {
|
|
230
230
|
value: ie
|
|
231
231
|
}),
|
|
232
|
-
error:
|
|
232
|
+
error: L({}, d, {
|
|
233
233
|
value: le
|
|
234
234
|
}),
|
|
235
|
-
group:
|
|
236
|
-
value:
|
|
235
|
+
group: L({}, d, {
|
|
236
|
+
value: se
|
|
237
237
|
}),
|
|
238
|
-
groupCollapsed:
|
|
239
|
-
value:
|
|
238
|
+
groupCollapsed: L({}, d, {
|
|
239
|
+
value: R
|
|
240
240
|
}),
|
|
241
|
-
groupEnd:
|
|
242
|
-
value:
|
|
241
|
+
groupEnd: L({}, d, {
|
|
242
|
+
value: ee
|
|
243
243
|
})
|
|
244
244
|
});
|
|
245
245
|
}
|
|
246
|
-
U < 0 &&
|
|
246
|
+
U < 0 && x("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
|
|
247
247
|
}
|
|
248
248
|
}
|
|
249
|
-
var
|
|
250
|
-
function pe(
|
|
249
|
+
var ue = E.ReactCurrentDispatcher, me;
|
|
250
|
+
function pe(d, b, y) {
|
|
251
251
|
{
|
|
252
252
|
if (me === void 0)
|
|
253
253
|
try {
|
|
254
254
|
throw Error();
|
|
255
255
|
} catch (O) {
|
|
256
|
-
var
|
|
257
|
-
me =
|
|
256
|
+
var S = O.stack.trim().match(/\n( *(at )?)/);
|
|
257
|
+
me = S && S[1] || "";
|
|
258
258
|
}
|
|
259
259
|
return `
|
|
260
|
-
` + me +
|
|
260
|
+
` + me + d;
|
|
261
261
|
}
|
|
262
262
|
}
|
|
263
263
|
var ge = !1, Se;
|
|
@@ -265,224 +265,224 @@ function yr() {
|
|
|
265
265
|
var Pn = typeof WeakMap == "function" ? WeakMap : Map;
|
|
266
266
|
Se = new Pn();
|
|
267
267
|
}
|
|
268
|
-
function
|
|
269
|
-
if (!
|
|
268
|
+
function Ot(d, b) {
|
|
269
|
+
if (!d || ge)
|
|
270
270
|
return "";
|
|
271
271
|
{
|
|
272
|
-
var y = Se.get(
|
|
272
|
+
var y = Se.get(d);
|
|
273
273
|
if (y !== void 0)
|
|
274
274
|
return y;
|
|
275
275
|
}
|
|
276
|
-
var
|
|
276
|
+
var S;
|
|
277
277
|
ge = !0;
|
|
278
278
|
var O = Error.prepareStackTrace;
|
|
279
279
|
Error.prepareStackTrace = void 0;
|
|
280
280
|
var H;
|
|
281
|
-
H =
|
|
281
|
+
H = ue.current, ue.current = null, ce();
|
|
282
282
|
try {
|
|
283
|
-
if (
|
|
284
|
-
var
|
|
283
|
+
if (b) {
|
|
284
|
+
var N = function() {
|
|
285
285
|
throw Error();
|
|
286
286
|
};
|
|
287
|
-
if (Object.defineProperty(
|
|
287
|
+
if (Object.defineProperty(N.prototype, "props", {
|
|
288
288
|
set: function() {
|
|
289
289
|
throw Error();
|
|
290
290
|
}
|
|
291
291
|
}), typeof Reflect == "object" && Reflect.construct) {
|
|
292
292
|
try {
|
|
293
|
-
Reflect.construct(
|
|
293
|
+
Reflect.construct(N, []);
|
|
294
294
|
} catch (_e) {
|
|
295
|
-
|
|
295
|
+
S = _e;
|
|
296
296
|
}
|
|
297
|
-
Reflect.construct(
|
|
297
|
+
Reflect.construct(d, [], N);
|
|
298
298
|
} else {
|
|
299
299
|
try {
|
|
300
|
-
|
|
300
|
+
N.call();
|
|
301
301
|
} catch (_e) {
|
|
302
|
-
|
|
302
|
+
S = _e;
|
|
303
303
|
}
|
|
304
|
-
|
|
304
|
+
d.call(N.prototype);
|
|
305
305
|
}
|
|
306
306
|
} else {
|
|
307
307
|
try {
|
|
308
308
|
throw Error();
|
|
309
309
|
} catch (_e) {
|
|
310
|
-
|
|
310
|
+
S = _e;
|
|
311
311
|
}
|
|
312
|
-
|
|
312
|
+
d();
|
|
313
313
|
}
|
|
314
314
|
} catch (_e) {
|
|
315
|
-
if (_e &&
|
|
315
|
+
if (_e && S && typeof _e.stack == "string") {
|
|
316
316
|
for (var C = _e.stack.split(`
|
|
317
|
-
`),
|
|
318
|
-
`), J = C.length - 1,
|
|
319
|
-
|
|
320
|
-
for (; J >= 1 &&
|
|
321
|
-
if (C[J] !==
|
|
322
|
-
if (J !== 1 ||
|
|
317
|
+
`), re = S.stack.split(`
|
|
318
|
+
`), J = C.length - 1, X = re.length - 1; J >= 1 && X >= 0 && C[J] !== re[X]; )
|
|
319
|
+
X--;
|
|
320
|
+
for (; J >= 1 && X >= 0; J--, X--)
|
|
321
|
+
if (C[J] !== re[X]) {
|
|
322
|
+
if (J !== 1 || X !== 1)
|
|
323
323
|
do
|
|
324
|
-
if (J--,
|
|
324
|
+
if (J--, X--, X < 0 || C[J] !== re[X]) {
|
|
325
325
|
var de = `
|
|
326
326
|
` + C[J].replace(" at new ", " at ");
|
|
327
|
-
return
|
|
327
|
+
return d.displayName && de.includes("<anonymous>") && (de = de.replace("<anonymous>", d.displayName)), typeof d == "function" && Se.set(d, de), de;
|
|
328
328
|
}
|
|
329
|
-
while (J >= 1 &&
|
|
329
|
+
while (J >= 1 && X >= 0);
|
|
330
330
|
break;
|
|
331
331
|
}
|
|
332
332
|
}
|
|
333
333
|
} finally {
|
|
334
|
-
ge = !1,
|
|
334
|
+
ge = !1, ue.current = H, te(), Error.prepareStackTrace = O;
|
|
335
335
|
}
|
|
336
|
-
var Te =
|
|
337
|
-
return typeof
|
|
336
|
+
var Te = d ? d.displayName || d.name : "", Xt = Te ? pe(Te) : "";
|
|
337
|
+
return typeof d == "function" && Se.set(d, Xt), Xt;
|
|
338
338
|
}
|
|
339
|
-
function Fn(
|
|
340
|
-
return
|
|
339
|
+
function Fn(d, b, y) {
|
|
340
|
+
return Ot(d, !1);
|
|
341
341
|
}
|
|
342
|
-
function Rn(
|
|
343
|
-
var
|
|
344
|
-
return !!(
|
|
342
|
+
function Rn(d) {
|
|
343
|
+
var b = d.prototype;
|
|
344
|
+
return !!(b && b.isReactComponent);
|
|
345
345
|
}
|
|
346
|
-
function Be(
|
|
347
|
-
if (
|
|
346
|
+
function Be(d, b, y) {
|
|
347
|
+
if (d == null)
|
|
348
348
|
return "";
|
|
349
|
-
if (typeof
|
|
350
|
-
return
|
|
351
|
-
if (typeof
|
|
352
|
-
return pe(
|
|
353
|
-
switch (
|
|
349
|
+
if (typeof d == "function")
|
|
350
|
+
return Ot(d, Rn(d));
|
|
351
|
+
if (typeof d == "string")
|
|
352
|
+
return pe(d);
|
|
353
|
+
switch (d) {
|
|
354
354
|
case c:
|
|
355
355
|
return pe("Suspense");
|
|
356
356
|
case u:
|
|
357
357
|
return pe("SuspenseList");
|
|
358
358
|
}
|
|
359
|
-
if (typeof
|
|
360
|
-
switch (
|
|
359
|
+
if (typeof d == "object")
|
|
360
|
+
switch (d.$$typeof) {
|
|
361
361
|
case i:
|
|
362
|
-
return Fn(
|
|
362
|
+
return Fn(d.render);
|
|
363
363
|
case f:
|
|
364
|
-
return Be(
|
|
364
|
+
return Be(d.type, b, y);
|
|
365
365
|
case p: {
|
|
366
|
-
var
|
|
366
|
+
var S = d, O = S._payload, H = S._init;
|
|
367
367
|
try {
|
|
368
|
-
return Be(H(O),
|
|
368
|
+
return Be(H(O), b, y);
|
|
369
369
|
} catch {
|
|
370
370
|
}
|
|
371
371
|
}
|
|
372
372
|
}
|
|
373
373
|
return "";
|
|
374
374
|
}
|
|
375
|
-
var Ie = Object.prototype.hasOwnProperty,
|
|
376
|
-
function He(
|
|
377
|
-
if (
|
|
378
|
-
var
|
|
379
|
-
|
|
375
|
+
var Ie = Object.prototype.hasOwnProperty, Lt = {}, Bt = E.ReactDebugCurrentFrame;
|
|
376
|
+
function He(d) {
|
|
377
|
+
if (d) {
|
|
378
|
+
var b = d._owner, y = Be(d.type, d._source, b ? b.type : null);
|
|
379
|
+
Bt.setExtraStackFrame(y);
|
|
380
380
|
} else
|
|
381
|
-
|
|
381
|
+
Bt.setExtraStackFrame(null);
|
|
382
382
|
}
|
|
383
|
-
function On(
|
|
383
|
+
function On(d, b, y, S, O) {
|
|
384
384
|
{
|
|
385
385
|
var H = Function.call.bind(Ie);
|
|
386
|
-
for (var
|
|
387
|
-
if (H(
|
|
386
|
+
for (var N in d)
|
|
387
|
+
if (H(d, N)) {
|
|
388
388
|
var C = void 0;
|
|
389
389
|
try {
|
|
390
|
-
if (typeof
|
|
391
|
-
var
|
|
392
|
-
throw
|
|
390
|
+
if (typeof d[N] != "function") {
|
|
391
|
+
var re = Error((S || "React class") + ": " + y + " type `" + N + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof d[N] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
|
|
392
|
+
throw re.name = "Invariant Violation", re;
|
|
393
393
|
}
|
|
394
|
-
C =
|
|
394
|
+
C = d[N](b, N, S, y, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
|
|
395
395
|
} catch (J) {
|
|
396
396
|
C = J;
|
|
397
397
|
}
|
|
398
|
-
C && !(C instanceof Error) && (He(O),
|
|
398
|
+
C && !(C instanceof Error) && (He(O), x("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", S || "React class", y, N, typeof C), He(null)), C instanceof Error && !(C.message in Lt) && (Lt[C.message] = !0, He(O), x("Failed %s type: %s", y, C.message), He(null));
|
|
399
399
|
}
|
|
400
400
|
}
|
|
401
401
|
}
|
|
402
402
|
var Ln = Array.isArray;
|
|
403
|
-
function
|
|
404
|
-
return Ln(
|
|
403
|
+
function st(d) {
|
|
404
|
+
return Ln(d);
|
|
405
405
|
}
|
|
406
|
-
function Bn(
|
|
406
|
+
function Bn(d) {
|
|
407
407
|
{
|
|
408
|
-
var
|
|
408
|
+
var b = typeof Symbol == "function" && Symbol.toStringTag, y = b && d[Symbol.toStringTag] || d.constructor.name || "Object";
|
|
409
409
|
return y;
|
|
410
410
|
}
|
|
411
411
|
}
|
|
412
|
-
function In(
|
|
412
|
+
function In(d) {
|
|
413
413
|
try {
|
|
414
|
-
return
|
|
414
|
+
return It(d), !1;
|
|
415
415
|
} catch {
|
|
416
416
|
return !0;
|
|
417
417
|
}
|
|
418
418
|
}
|
|
419
|
-
function
|
|
420
|
-
return "" +
|
|
419
|
+
function It(d) {
|
|
420
|
+
return "" + d;
|
|
421
421
|
}
|
|
422
|
-
function
|
|
423
|
-
if (In(
|
|
424
|
-
return
|
|
422
|
+
function Ht(d) {
|
|
423
|
+
if (In(d))
|
|
424
|
+
return x("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", Bn(d)), It(d);
|
|
425
425
|
}
|
|
426
|
-
var
|
|
426
|
+
var Ne = E.ReactCurrentOwner, Hn = {
|
|
427
427
|
key: !0,
|
|
428
428
|
ref: !0,
|
|
429
429
|
__self: !0,
|
|
430
430
|
__source: !0
|
|
431
|
-
},
|
|
432
|
-
|
|
433
|
-
function Qn(
|
|
434
|
-
if (Ie.call(
|
|
435
|
-
var
|
|
436
|
-
if (
|
|
431
|
+
}, Qt, Ut, ot;
|
|
432
|
+
ot = {};
|
|
433
|
+
function Qn(d) {
|
|
434
|
+
if (Ie.call(d, "ref")) {
|
|
435
|
+
var b = Object.getOwnPropertyDescriptor(d, "ref").get;
|
|
436
|
+
if (b && b.isReactWarning)
|
|
437
437
|
return !1;
|
|
438
438
|
}
|
|
439
|
-
return
|
|
439
|
+
return d.ref !== void 0;
|
|
440
440
|
}
|
|
441
|
-
function Un(
|
|
442
|
-
if (Ie.call(
|
|
443
|
-
var
|
|
444
|
-
if (
|
|
441
|
+
function Un(d) {
|
|
442
|
+
if (Ie.call(d, "key")) {
|
|
443
|
+
var b = Object.getOwnPropertyDescriptor(d, "key").get;
|
|
444
|
+
if (b && b.isReactWarning)
|
|
445
445
|
return !1;
|
|
446
446
|
}
|
|
447
|
-
return
|
|
447
|
+
return d.key !== void 0;
|
|
448
448
|
}
|
|
449
|
-
function Wn(
|
|
450
|
-
if (typeof
|
|
451
|
-
var y =
|
|
452
|
-
|
|
449
|
+
function Wn(d, b) {
|
|
450
|
+
if (typeof d.ref == "string" && Ne.current && b && Ne.current.stateNode !== b) {
|
|
451
|
+
var y = B(Ne.current.type);
|
|
452
|
+
ot[y] || (x('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref', B(Ne.current.type), d.ref), ot[y] = !0);
|
|
453
453
|
}
|
|
454
454
|
}
|
|
455
|
-
function zn(
|
|
455
|
+
function zn(d, b) {
|
|
456
456
|
{
|
|
457
457
|
var y = function() {
|
|
458
|
-
|
|
458
|
+
Qt || (Qt = !0, x("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", b));
|
|
459
459
|
};
|
|
460
|
-
y.isReactWarning = !0, Object.defineProperty(
|
|
460
|
+
y.isReactWarning = !0, Object.defineProperty(d, "key", {
|
|
461
461
|
get: y,
|
|
462
462
|
configurable: !0
|
|
463
463
|
});
|
|
464
464
|
}
|
|
465
465
|
}
|
|
466
|
-
function Vn(
|
|
466
|
+
function Vn(d, b) {
|
|
467
467
|
{
|
|
468
468
|
var y = function() {
|
|
469
|
-
|
|
469
|
+
Ut || (Ut = !0, x("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", b));
|
|
470
470
|
};
|
|
471
|
-
y.isReactWarning = !0, Object.defineProperty(
|
|
471
|
+
y.isReactWarning = !0, Object.defineProperty(d, "ref", {
|
|
472
472
|
get: y,
|
|
473
473
|
configurable: !0
|
|
474
474
|
});
|
|
475
475
|
}
|
|
476
476
|
}
|
|
477
|
-
var Yn = function(
|
|
477
|
+
var Yn = function(d, b, y, S, O, H, N) {
|
|
478
478
|
var C = {
|
|
479
479
|
// This tag allows us to uniquely identify this as a React Element
|
|
480
480
|
$$typeof: t,
|
|
481
481
|
// Built-in properties that belong on the element
|
|
482
|
-
type:
|
|
483
|
-
key:
|
|
482
|
+
type: d,
|
|
483
|
+
key: b,
|
|
484
484
|
ref: y,
|
|
485
|
-
props:
|
|
485
|
+
props: N,
|
|
486
486
|
// Record the component responsible for creating this element.
|
|
487
487
|
_owner: H
|
|
488
488
|
};
|
|
@@ -495,7 +495,7 @@ function yr() {
|
|
|
495
495
|
configurable: !1,
|
|
496
496
|
enumerable: !1,
|
|
497
497
|
writable: !1,
|
|
498
|
-
value:
|
|
498
|
+
value: S
|
|
499
499
|
}), Object.defineProperty(C, "_source", {
|
|
500
500
|
configurable: !1,
|
|
501
501
|
enumerable: !1,
|
|
@@ -503,186 +503,186 @@ function yr() {
|
|
|
503
503
|
value: O
|
|
504
504
|
}), Object.freeze && (Object.freeze(C.props), Object.freeze(C)), C;
|
|
505
505
|
};
|
|
506
|
-
function Gn(
|
|
506
|
+
function Gn(d, b, y, S, O) {
|
|
507
507
|
{
|
|
508
|
-
var H,
|
|
509
|
-
y !== void 0 && (
|
|
510
|
-
for (H in
|
|
511
|
-
Ie.call(
|
|
512
|
-
if (
|
|
513
|
-
var J =
|
|
508
|
+
var H, N = {}, C = null, re = null;
|
|
509
|
+
y !== void 0 && (Ht(y), C = "" + y), Un(b) && (Ht(b.key), C = "" + b.key), Qn(b) && (re = b.ref, Wn(b, O));
|
|
510
|
+
for (H in b)
|
|
511
|
+
Ie.call(b, H) && !Hn.hasOwnProperty(H) && (N[H] = b[H]);
|
|
512
|
+
if (d && d.defaultProps) {
|
|
513
|
+
var J = d.defaultProps;
|
|
514
514
|
for (H in J)
|
|
515
|
-
|
|
515
|
+
N[H] === void 0 && (N[H] = J[H]);
|
|
516
516
|
}
|
|
517
|
-
if (C ||
|
|
518
|
-
var
|
|
519
|
-
C && zn(
|
|
517
|
+
if (C || re) {
|
|
518
|
+
var X = typeof d == "function" ? d.displayName || d.name || "Unknown" : d;
|
|
519
|
+
C && zn(N, X), re && Vn(N, X);
|
|
520
520
|
}
|
|
521
|
-
return Yn(
|
|
521
|
+
return Yn(d, C, re, O, S, Ne.current, N);
|
|
522
522
|
}
|
|
523
523
|
}
|
|
524
|
-
var
|
|
525
|
-
function $e(
|
|
526
|
-
if (
|
|
527
|
-
var
|
|
528
|
-
|
|
524
|
+
var at = E.ReactCurrentOwner, Wt = E.ReactDebugCurrentFrame;
|
|
525
|
+
function $e(d) {
|
|
526
|
+
if (d) {
|
|
527
|
+
var b = d._owner, y = Be(d.type, d._source, b ? b.type : null);
|
|
528
|
+
Wt.setExtraStackFrame(y);
|
|
529
529
|
} else
|
|
530
|
-
|
|
530
|
+
Wt.setExtraStackFrame(null);
|
|
531
531
|
}
|
|
532
|
-
var
|
|
533
|
-
|
|
534
|
-
function
|
|
535
|
-
return typeof
|
|
532
|
+
var it;
|
|
533
|
+
it = !1;
|
|
534
|
+
function lt(d) {
|
|
535
|
+
return typeof d == "object" && d !== null && d.$$typeof === t;
|
|
536
536
|
}
|
|
537
|
-
function
|
|
537
|
+
function zt() {
|
|
538
538
|
{
|
|
539
|
-
if (
|
|
540
|
-
var
|
|
541
|
-
if (
|
|
539
|
+
if (at.current) {
|
|
540
|
+
var d = B(at.current.type);
|
|
541
|
+
if (d)
|
|
542
542
|
return `
|
|
543
543
|
|
|
544
|
-
Check the render method of \`` +
|
|
544
|
+
Check the render method of \`` + d + "`.";
|
|
545
545
|
}
|
|
546
546
|
return "";
|
|
547
547
|
}
|
|
548
548
|
}
|
|
549
|
-
function Jn(
|
|
549
|
+
function Jn(d) {
|
|
550
550
|
{
|
|
551
|
-
if (
|
|
552
|
-
var
|
|
551
|
+
if (d !== void 0) {
|
|
552
|
+
var b = d.fileName.replace(/^.*[\\\/]/, ""), y = d.lineNumber;
|
|
553
553
|
return `
|
|
554
554
|
|
|
555
|
-
Check your code at ` +
|
|
555
|
+
Check your code at ` + b + ":" + y + ".";
|
|
556
556
|
}
|
|
557
557
|
return "";
|
|
558
558
|
}
|
|
559
559
|
}
|
|
560
|
-
var
|
|
561
|
-
function Xn(
|
|
560
|
+
var Vt = {};
|
|
561
|
+
function Xn(d) {
|
|
562
562
|
{
|
|
563
|
-
var
|
|
564
|
-
if (!
|
|
565
|
-
var y = typeof
|
|
566
|
-
y && (
|
|
563
|
+
var b = zt();
|
|
564
|
+
if (!b) {
|
|
565
|
+
var y = typeof d == "string" ? d : d.displayName || d.name;
|
|
566
|
+
y && (b = `
|
|
567
567
|
|
|
568
568
|
Check the top-level render call using <` + y + ">.");
|
|
569
569
|
}
|
|
570
|
-
return
|
|
570
|
+
return b;
|
|
571
571
|
}
|
|
572
572
|
}
|
|
573
|
-
function
|
|
573
|
+
function Yt(d, b) {
|
|
574
574
|
{
|
|
575
|
-
if (!
|
|
575
|
+
if (!d._store || d._store.validated || d.key != null)
|
|
576
576
|
return;
|
|
577
|
-
|
|
578
|
-
var y = Xn(
|
|
579
|
-
if (
|
|
577
|
+
d._store.validated = !0;
|
|
578
|
+
var y = Xn(b);
|
|
579
|
+
if (Vt[y])
|
|
580
580
|
return;
|
|
581
|
-
|
|
582
|
-
var
|
|
583
|
-
|
|
581
|
+
Vt[y] = !0;
|
|
582
|
+
var S = "";
|
|
583
|
+
d && d._owner && d._owner !== at.current && (S = " It was passed a child from " + B(d._owner.type) + "."), $e(d), x('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', y, S), $e(null);
|
|
584
584
|
}
|
|
585
585
|
}
|
|
586
|
-
function
|
|
586
|
+
function Gt(d, b) {
|
|
587
587
|
{
|
|
588
|
-
if (typeof
|
|
588
|
+
if (typeof d != "object")
|
|
589
589
|
return;
|
|
590
|
-
if (
|
|
591
|
-
for (var y = 0; y <
|
|
592
|
-
var
|
|
593
|
-
|
|
590
|
+
if (st(d))
|
|
591
|
+
for (var y = 0; y < d.length; y++) {
|
|
592
|
+
var S = d[y];
|
|
593
|
+
lt(S) && Yt(S, b);
|
|
594
594
|
}
|
|
595
|
-
else if (
|
|
596
|
-
|
|
597
|
-
else if (
|
|
598
|
-
var O = g(
|
|
599
|
-
if (typeof O == "function" && O !==
|
|
600
|
-
for (var H = O.call(
|
|
601
|
-
|
|
595
|
+
else if (lt(d))
|
|
596
|
+
d._store && (d._store.validated = !0);
|
|
597
|
+
else if (d) {
|
|
598
|
+
var O = g(d);
|
|
599
|
+
if (typeof O == "function" && O !== d.entries)
|
|
600
|
+
for (var H = O.call(d), N; !(N = H.next()).done; )
|
|
601
|
+
lt(N.value) && Yt(N.value, b);
|
|
602
602
|
}
|
|
603
603
|
}
|
|
604
604
|
}
|
|
605
|
-
function Zn(
|
|
605
|
+
function Zn(d) {
|
|
606
606
|
{
|
|
607
|
-
var
|
|
608
|
-
if (
|
|
607
|
+
var b = d.type;
|
|
608
|
+
if (b == null || typeof b == "string")
|
|
609
609
|
return;
|
|
610
610
|
var y;
|
|
611
|
-
if (typeof
|
|
612
|
-
y =
|
|
613
|
-
else if (typeof
|
|
611
|
+
if (typeof b == "function")
|
|
612
|
+
y = b.propTypes;
|
|
613
|
+
else if (typeof b == "object" && (b.$$typeof === i || // Note: Memo only checks outer props here.
|
|
614
614
|
// Inner props are checked in the reconciler.
|
|
615
|
-
|
|
616
|
-
y =
|
|
615
|
+
b.$$typeof === f))
|
|
616
|
+
y = b.propTypes;
|
|
617
617
|
else
|
|
618
618
|
return;
|
|
619
619
|
if (y) {
|
|
620
|
-
var
|
|
621
|
-
On(y,
|
|
622
|
-
} else if (
|
|
623
|
-
|
|
624
|
-
var O =
|
|
625
|
-
|
|
620
|
+
var S = B(b);
|
|
621
|
+
On(y, d.props, "prop", S, d);
|
|
622
|
+
} else if (b.PropTypes !== void 0 && !it) {
|
|
623
|
+
it = !0;
|
|
624
|
+
var O = B(b);
|
|
625
|
+
x("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", O || "Unknown");
|
|
626
626
|
}
|
|
627
|
-
typeof
|
|
627
|
+
typeof b.getDefaultProps == "function" && !b.getDefaultProps.isReactClassApproved && x("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
|
|
628
628
|
}
|
|
629
629
|
}
|
|
630
|
-
function qn(
|
|
630
|
+
function qn(d) {
|
|
631
631
|
{
|
|
632
|
-
for (var
|
|
633
|
-
var
|
|
634
|
-
if (
|
|
635
|
-
$e(
|
|
632
|
+
for (var b = Object.keys(d.props), y = 0; y < b.length; y++) {
|
|
633
|
+
var S = b[y];
|
|
634
|
+
if (S !== "children" && S !== "key") {
|
|
635
|
+
$e(d), x("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", S), $e(null);
|
|
636
636
|
break;
|
|
637
637
|
}
|
|
638
638
|
}
|
|
639
|
-
|
|
639
|
+
d.ref !== null && ($e(d), x("Invalid attribute `ref` supplied to `React.Fragment`."), $e(null));
|
|
640
640
|
}
|
|
641
641
|
}
|
|
642
|
-
function
|
|
642
|
+
function Jt(d, b, y, S, O, H) {
|
|
643
643
|
{
|
|
644
|
-
var
|
|
645
|
-
if (!
|
|
644
|
+
var N = q(d);
|
|
645
|
+
if (!N) {
|
|
646
646
|
var C = "";
|
|
647
|
-
(
|
|
648
|
-
var
|
|
649
|
-
|
|
647
|
+
(d === void 0 || typeof d == "object" && d !== null && Object.keys(d).length === 0) && (C += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
|
|
648
|
+
var re = Jn(O);
|
|
649
|
+
re ? C += re : C += zt();
|
|
650
650
|
var J;
|
|
651
|
-
|
|
651
|
+
d === null ? J = "null" : st(d) ? J = "array" : d !== void 0 && d.$$typeof === t ? (J = "<" + (B(d.type) || "Unknown") + " />", C = " Did you accidentally export a JSX literal instead of a component?") : J = typeof d, x("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", J, C);
|
|
652
652
|
}
|
|
653
|
-
var
|
|
654
|
-
if (
|
|
655
|
-
return
|
|
656
|
-
if (
|
|
657
|
-
var de =
|
|
653
|
+
var X = Gn(d, b, y, O, H);
|
|
654
|
+
if (X == null)
|
|
655
|
+
return X;
|
|
656
|
+
if (N) {
|
|
657
|
+
var de = b.children;
|
|
658
658
|
if (de !== void 0)
|
|
659
|
-
if (
|
|
660
|
-
if (
|
|
659
|
+
if (S)
|
|
660
|
+
if (st(de)) {
|
|
661
661
|
for (var Te = 0; Te < de.length; Te++)
|
|
662
|
-
|
|
662
|
+
Gt(de[Te], d);
|
|
663
663
|
Object.freeze && Object.freeze(de);
|
|
664
664
|
} else
|
|
665
|
-
|
|
665
|
+
x("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
|
|
666
666
|
else
|
|
667
|
-
|
|
667
|
+
Gt(de, d);
|
|
668
668
|
}
|
|
669
|
-
return
|
|
669
|
+
return d === s ? qn(X) : Zn(X), X;
|
|
670
670
|
}
|
|
671
671
|
}
|
|
672
|
-
function Kn(
|
|
673
|
-
return
|
|
672
|
+
function Kn(d, b, y) {
|
|
673
|
+
return Jt(d, b, y, !0);
|
|
674
674
|
}
|
|
675
|
-
function er(
|
|
676
|
-
return
|
|
675
|
+
function er(d, b, y) {
|
|
676
|
+
return Jt(d, b, y, !1);
|
|
677
677
|
}
|
|
678
678
|
var tr = er, nr = Kn;
|
|
679
|
-
|
|
680
|
-
}()),
|
|
679
|
+
Pe.Fragment = s, Pe.jsx = tr, Pe.jsxs = nr;
|
|
680
|
+
}()), Pe;
|
|
681
681
|
}
|
|
682
|
-
process.env.NODE_ENV === "production" ?
|
|
683
|
-
var r =
|
|
682
|
+
process.env.NODE_ENV === "production" ? jt.exports = kr() : jt.exports = yr();
|
|
683
|
+
var r = jt.exports;
|
|
684
684
|
const jr = () => {
|
|
685
|
-
const [e, t] =
|
|
685
|
+
const [e, t] = D(window.location.pathname), n = () => {
|
|
686
686
|
const s = window.location.pathname;
|
|
687
687
|
t(s);
|
|
688
688
|
};
|
|
@@ -690,13 +690,13 @@ const jr = () => {
|
|
|
690
690
|
window.removeEventListener("popstate", n);
|
|
691
691
|
}), []), e;
|
|
692
692
|
}, Ce = (e, t) => {
|
|
693
|
-
const n =
|
|
693
|
+
const n = Z(!1);
|
|
694
694
|
z(() => {
|
|
695
695
|
n.current ? e() : n.current = !0;
|
|
696
696
|
}, t);
|
|
697
697
|
};
|
|
698
698
|
function Er(e, t, n) {
|
|
699
|
-
var s = this, o =
|
|
699
|
+
var s = this, o = Z(null), l = Z(0), m = Z(null), a = Z([]), i = Z(), c = Z(), u = Z(e), f = Z(!0);
|
|
700
700
|
z(function() {
|
|
701
701
|
u.current = e;
|
|
702
702
|
}, [e]);
|
|
@@ -704,71 +704,71 @@ function Er(e, t, n) {
|
|
|
704
704
|
if (typeof e != "function")
|
|
705
705
|
throw new TypeError("Expected a function");
|
|
706
706
|
t = +t || 0;
|
|
707
|
-
var h = !!(n = n || {}).leading, _ = !("trailing" in n) || !!n.trailing,
|
|
707
|
+
var h = !!(n = n || {}).leading, _ = !("trailing" in n) || !!n.trailing, v = "maxWait" in n, g = v ? 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
713
|
var E = qe(function() {
|
|
714
|
-
var
|
|
715
|
-
var
|
|
716
|
-
return a.current = i.current = null, l.current =
|
|
717
|
-
},
|
|
718
|
-
p && cancelAnimationFrame(
|
|
719
|
-
}, T = function(
|
|
714
|
+
var x = function(w) {
|
|
715
|
+
var F = a.current, q = i.current;
|
|
716
|
+
return a.current = i.current = null, l.current = w, c.current = u.current.apply(q, F);
|
|
717
|
+
}, $ = function(w, F) {
|
|
718
|
+
p && cancelAnimationFrame(m.current), m.current = p ? requestAnimationFrame(w) : setTimeout(w, F);
|
|
719
|
+
}, T = function(w) {
|
|
720
720
|
if (!f.current)
|
|
721
721
|
return !1;
|
|
722
|
-
var
|
|
723
|
-
return !o.current ||
|
|
724
|
-
}, M = function(
|
|
725
|
-
return
|
|
726
|
-
}, Q = function
|
|
727
|
-
var
|
|
728
|
-
if (T(
|
|
729
|
-
return M(
|
|
722
|
+
var F = w - o.current;
|
|
723
|
+
return !o.current || F >= t || F < 0 || v && w - l.current >= g;
|
|
724
|
+
}, M = function(w) {
|
|
725
|
+
return m.current = null, _ && a.current ? x(w) : (a.current = i.current = null, c.current);
|
|
726
|
+
}, Q = function w() {
|
|
727
|
+
var F = Date.now();
|
|
728
|
+
if (T(F))
|
|
729
|
+
return M(F);
|
|
730
730
|
if (f.current) {
|
|
731
|
-
var q = t - (
|
|
732
|
-
|
|
731
|
+
var q = t - (F - o.current), k = v ? Math.min(q, g - (F - l.current)) : q;
|
|
732
|
+
$(w, k);
|
|
733
733
|
}
|
|
734
734
|
}, V = function() {
|
|
735
|
-
var
|
|
736
|
-
if (a.current = [].slice.call(arguments), i.current = s, o.current =
|
|
737
|
-
if (!
|
|
738
|
-
return l.current = o.current,
|
|
739
|
-
if (
|
|
740
|
-
return
|
|
735
|
+
var w = Date.now(), F = T(w);
|
|
736
|
+
if (a.current = [].slice.call(arguments), i.current = s, o.current = w, F) {
|
|
737
|
+
if (!m.current && f.current)
|
|
738
|
+
return l.current = o.current, $(Q, t), h ? x(o.current) : c.current;
|
|
739
|
+
if (v)
|
|
740
|
+
return $(Q, t), x(o.current);
|
|
741
741
|
}
|
|
742
|
-
return
|
|
742
|
+
return m.current || $(Q, t), c.current;
|
|
743
743
|
};
|
|
744
744
|
return V.cancel = function() {
|
|
745
|
-
|
|
745
|
+
m.current && (p ? cancelAnimationFrame(m.current) : clearTimeout(m.current)), l.current = 0, a.current = o.current = i.current = m.current = null;
|
|
746
746
|
}, V.isPending = function() {
|
|
747
|
-
return !!
|
|
747
|
+
return !!m.current;
|
|
748
748
|
}, V.flush = function() {
|
|
749
|
-
return
|
|
749
|
+
return m.current ? M(Date.now()) : c.current;
|
|
750
750
|
}, V;
|
|
751
|
-
}, [h,
|
|
751
|
+
}, [h, v, t, g, _, p]);
|
|
752
752
|
return E;
|
|
753
753
|
}
|
|
754
754
|
function fn(e, t, n) {
|
|
755
755
|
var s = n === void 0 ? {} : n, o = s.leading, l = s.trailing;
|
|
756
756
|
return Er(e, t, { maxWait: t, leading: o === void 0 || o, trailing: l === void 0 || l });
|
|
757
757
|
}
|
|
758
|
-
let
|
|
759
|
-
const
|
|
758
|
+
let ct;
|
|
759
|
+
const et = (e = !0, t = !1) => {
|
|
760
760
|
if (!e)
|
|
761
761
|
return;
|
|
762
762
|
const [n, s] = A.useState(0) || [!1, () => {
|
|
763
763
|
}];
|
|
764
|
-
z(() => (l(), window.addEventListener("resize",
|
|
765
|
-
clearTimeout(
|
|
764
|
+
z(() => (l(), window.addEventListener("resize", m), () => {
|
|
765
|
+
clearTimeout(ct), m.flush(), window.removeEventListener("resize", m);
|
|
766
766
|
}), []);
|
|
767
767
|
const o = () => window.innerWidth, l = () => {
|
|
768
768
|
s(o());
|
|
769
|
-
},
|
|
769
|
+
}, m = fn(
|
|
770
770
|
() => {
|
|
771
|
-
o() !== n && (t && (clearTimeout(
|
|
771
|
+
o() !== n && (t && (clearTimeout(ct), document.body.classList.add("is-resizing"), ct = setTimeout(() => {
|
|
772
772
|
document.body.classList.remove("is-resizing");
|
|
773
773
|
}, 550)), l());
|
|
774
774
|
},
|
|
@@ -788,7 +788,7 @@ const tt = (e = !0, t = !1) => {
|
|
|
788
788
|
if (!window)
|
|
789
789
|
return;
|
|
790
790
|
const [o, l] = A.useState({ current: 0, past: 0 }) || [!1, () => {
|
|
791
|
-
}], [
|
|
791
|
+
}], [m, a] = A.useState({ scrollDown: !1, scrollUp: !1 }) || [!1, () => {
|
|
792
792
|
}];
|
|
793
793
|
z(() => (i(), window.addEventListener("scroll", c), () => {
|
|
794
794
|
c.flush(), window.removeEventListener("scroll", c);
|
|
@@ -796,17 +796,17 @@ const tt = (e = !0, t = !1) => {
|
|
|
796
796
|
const i = () => {
|
|
797
797
|
const u = window.scrollY, f = o.current, p = u - f, h = p > 0 ? "down" : "up";
|
|
798
798
|
if (l({ current: u, past: f }), h === "down") {
|
|
799
|
-
u >= e + t.down && !
|
|
799
|
+
u >= e + t.down && !m.scrollDown && (!m.scrollUp || p > t.up) && (n(), a({ scrollUp: !1, scrollDown: !0 }));
|
|
800
800
|
return;
|
|
801
801
|
}
|
|
802
|
-
Math.abs(p) >= t.up && !
|
|
802
|
+
Math.abs(p) >= t.up && !m.scrollUp && (s(), a({ scrollUp: !0, scrollDown: !1 }));
|
|
803
803
|
}, c = fn(() => {
|
|
804
804
|
i();
|
|
805
805
|
}, 250);
|
|
806
806
|
return o;
|
|
807
|
-
},
|
|
807
|
+
}, so = (e = [], t = !0) => {
|
|
808
808
|
e = Array.isArray(e) ? e : [e];
|
|
809
|
-
const n =
|
|
809
|
+
const n = Z(!1);
|
|
810
810
|
Ce(() => {
|
|
811
811
|
if (window && window.location && window.location.hash) {
|
|
812
812
|
if (n.current)
|
|
@@ -849,14 +849,14 @@ const tt = (e = !0, t = !1) => {
|
|
|
849
849
|
} catch {
|
|
850
850
|
return "";
|
|
851
851
|
}
|
|
852
|
-
const
|
|
852
|
+
const m = l / 36e5, a = Math.floor(l / 864e5);
|
|
853
853
|
if (a < 1)
|
|
854
|
-
return
|
|
854
|
+
return m < 1 ? { path: "now" } : { path: "hours", number: Math.floor(m) };
|
|
855
855
|
if (a < 7)
|
|
856
856
|
return { path: "days", number: a };
|
|
857
857
|
const i = Math.floor(a / 7);
|
|
858
858
|
return i <= 52 ? { path: "weeks", number: i } : { path: "years", number: Math.floor(a / 365) };
|
|
859
|
-
}, Cr = (e) => new Promise((t) => setTimeout(t, e)),
|
|
859
|
+
}, Cr = (e) => new Promise((t) => setTimeout(t, e)), Nt = {
|
|
860
860
|
apolitical: "Apolitical",
|
|
861
861
|
breadcrumbs_label: "Go back to:",
|
|
862
862
|
breadcrumbs_currentPage: "Current page:",
|
|
@@ -1139,13 +1139,13 @@ Thank you for helping to protect the Apolitical community from abusive content.`
|
|
|
1139
1139
|
sharedLinks_copy_text: "Copy link",
|
|
1140
1140
|
tags_community: "From the community",
|
|
1141
1141
|
tooltip_loading: "Loading..."
|
|
1142
|
-
},
|
|
1142
|
+
}, Ar = {
|
|
1143
1143
|
languageSwitcher_label: "Me gustaría leer este artículo en...",
|
|
1144
1144
|
languageSwitcher_translation_original: "idioma original",
|
|
1145
1145
|
languageSwitcher_translation_human: "traducido por un humano",
|
|
1146
1146
|
languageSwitcher_translation_machine: "traducido por máquina",
|
|
1147
1147
|
languageSwitcher_disclaimer: "Este contenido fue traducido automáticamente y ocasionalmente tendrá errores de género u otras traducciones directas. Estamos intentando resolver este problema, pero mientras tanto, si notas algún error grave, escríbenos a <link>{email}</link>"
|
|
1148
|
-
},
|
|
1148
|
+
}, Nr = {
|
|
1149
1149
|
collapsibleSection_summary: "En savoir plus",
|
|
1150
1150
|
languageSwitcher_label: "Je voudrais lire cet article dans...",
|
|
1151
1151
|
languageSwitcher_translation_original: "langue originale",
|
|
@@ -1160,13 +1160,13 @@ Thank you for helping to protect the Apolitical community from abusive content.`
|
|
|
1160
1160
|
languageSwitcher_disclaimer: "Este conteúdo foi traduzido automaticamente e, ocasionalmente, poderão ocorrer erros de linguagem de gênero ou outras traduções diretas. Estamos tentando resolver isso, porém se perceber algo errado por favor nos avise em <link>{email}</link>"
|
|
1161
1161
|
}, Pr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1162
1162
|
__proto__: null,
|
|
1163
|
-
en:
|
|
1164
|
-
es:
|
|
1165
|
-
fr:
|
|
1163
|
+
en: Nt,
|
|
1164
|
+
es: Ar,
|
|
1165
|
+
fr: Nr,
|
|
1166
1166
|
pt: Dr
|
|
1167
1167
|
}, Symbol.toStringTag, { value: "Module" })), he = (e, t, n, s, o = {}) => {
|
|
1168
1168
|
let l = "";
|
|
1169
|
-
return `${t}_${n}` in
|
|
1169
|
+
return `${t}_${n}` in Nt ? l = e({ id: `${t}_${n}` }, o) : l = e({ id: t }, { [s]: n, ...o }), l;
|
|
1170
1170
|
}, Fr = (e, t, n) => {
|
|
1171
1171
|
if (!e || e === 0)
|
|
1172
1172
|
return "0";
|
|
@@ -1190,21 +1190,21 @@ Thank you for helping to protect the Apolitical community from abusive content.`
|
|
|
1190
1190
|
icon: s = !1,
|
|
1191
1191
|
href: o = !1,
|
|
1192
1192
|
element: l = "button",
|
|
1193
|
-
onClick:
|
|
1193
|
+
onClick: m = !1,
|
|
1194
1194
|
className: a = "",
|
|
1195
1195
|
disabled: i = !1,
|
|
1196
1196
|
screenreaderText: c = !1,
|
|
1197
1197
|
children: u = !1,
|
|
1198
1198
|
...f
|
|
1199
1199
|
}) => {
|
|
1200
|
-
const h =
|
|
1200
|
+
const h = et(typeof t == "object");
|
|
1201
1201
|
if (typeof t == "object" && typeof h == "number") {
|
|
1202
1202
|
const g = Object.assign({}, t), E = pn(Object.keys(g));
|
|
1203
1203
|
t = hn(h, E, g);
|
|
1204
1204
|
}
|
|
1205
1205
|
const _ = [];
|
|
1206
1206
|
typeof t == "string" && _.push(t), s && (_.push("icon"), typeof s == "object" ? (_.push(s.icon), s.position ? _.push(s.position) : _.push("left"), s.hover && _.push(`hover_${s.hover}`), s.animate && (_.push("animate"), typeof s.animate == "string" && _.push(s.animate))) : (_.push(s), !s.includes("right") && !s.includes("left") && _.push("left"))), n.muted && _.push("muted"), n.fullWidth && _.push("full-width");
|
|
1207
|
-
const
|
|
1207
|
+
const v = {
|
|
1208
1208
|
...f,
|
|
1209
1209
|
className: j(e, a, _, {
|
|
1210
1210
|
"no-text": !u,
|
|
@@ -1212,35 +1212,35 @@ Thank you for helping to protect the Apolitical community from abusive content.`
|
|
|
1212
1212
|
button: o
|
|
1213
1213
|
}),
|
|
1214
1214
|
onClick: (g) => {
|
|
1215
|
-
(!o || o[0] === "#") &&
|
|
1215
|
+
(!o || o[0] === "#") && m && (g.preventDefault(), g.stopPropagation()), m && m(g);
|
|
1216
1216
|
},
|
|
1217
1217
|
disabled: typeof i == "object" && "isClickable" in i ? !i.isClickable : i
|
|
1218
1218
|
};
|
|
1219
|
-
return o && (l = "a",
|
|
1219
|
+
return o && (l = "a", v.href = o), A.createElement(
|
|
1220
1220
|
l,
|
|
1221
|
-
|
|
1222
|
-
u || (c ? /* @__PURE__ */ r.jsx(
|
|
1221
|
+
v,
|
|
1222
|
+
u || (c ? /* @__PURE__ */ r.jsx(ne, { showOnFocus: !1, children: c }) : null)
|
|
1223
1223
|
);
|
|
1224
|
-
},
|
|
1225
|
-
const s = e.length > 1 ? "ul" : "p", o = e.map((l,
|
|
1224
|
+
}, tt = ({ buttons: e, className: t = "", ...n }) => {
|
|
1225
|
+
const s = e.length > 1 ? "ul" : "p", o = e.map((l, m) => s === "p" ? /* @__PURE__ */ r.jsx(W, { ...l }, m) : /* @__PURE__ */ r.jsx("li", { children: /* @__PURE__ */ r.jsx(W, { ...l }) }, m));
|
|
1226
1226
|
return A.createElement(s, { className: j("button-wrapper", t), ...n, children: o });
|
|
1227
1227
|
};
|
|
1228
|
-
const
|
|
1228
|
+
const Le = ({ maxWidth: e = !1 }) => {
|
|
1229
1229
|
const t = e ? { "--max-width": `${e / 16}rem` } : {};
|
|
1230
1230
|
return /* @__PURE__ */ r.jsx("hr", { className: j({ "has-max-width": e }), style: t });
|
|
1231
|
-
},
|
|
1231
|
+
}, nt = ({
|
|
1232
1232
|
href: e,
|
|
1233
1233
|
children: t,
|
|
1234
1234
|
fallbackElement: n,
|
|
1235
1235
|
className: s = "",
|
|
1236
1236
|
onClick: o,
|
|
1237
1237
|
gtmContext: l,
|
|
1238
|
-
gtmType:
|
|
1238
|
+
gtmType: m,
|
|
1239
1239
|
...a
|
|
1240
1240
|
}) => {
|
|
1241
1241
|
if (e) {
|
|
1242
1242
|
const i = { ...a };
|
|
1243
|
-
return o && (i.onClick = o), l && (i["data-gtm-event-context"] = l),
|
|
1243
|
+
return o && (i.onClick = o), l && (i["data-gtm-event-context"] = l), m && (i["data-gtm-event-type"] = m), /* @__PURE__ */ r.jsx(
|
|
1244
1244
|
"a",
|
|
1245
1245
|
{
|
|
1246
1246
|
href: e,
|
|
@@ -1364,7 +1364,7 @@ const Ne = ({ maxWidth: e = !1 }) => {
|
|
|
1364
1364
|
}, Lr = ({ format: e, height: t, query: n, width: s }) => {
|
|
1365
1365
|
let o = `w=${s}&h=${t}`;
|
|
1366
1366
|
return o = e ? `${o}&fm=${e}` : o, o = n ? `${o}&${n}` : o, o;
|
|
1367
|
-
},
|
|
1367
|
+
}, ut = ({ format: e, range: t, url: n, query: s }) => t.map(({ height: o, width: l }) => `${n}?${Lr({
|
|
1368
1368
|
format: e,
|
|
1369
1369
|
height: o,
|
|
1370
1370
|
query: s,
|
|
@@ -1375,13 +1375,13 @@ const Br = ({ image: e, className: t, testId: n }) => {
|
|
|
1375
1375
|
description: s,
|
|
1376
1376
|
height: o,
|
|
1377
1377
|
type: l,
|
|
1378
|
-
query:
|
|
1378
|
+
query: m,
|
|
1379
1379
|
url: a,
|
|
1380
1380
|
width: i,
|
|
1381
1381
|
loading: c,
|
|
1382
1382
|
decoding: u,
|
|
1383
1383
|
fetchPriority: f
|
|
1384
|
-
} = e, { range: p, sizes: h } = Or(e), _ =
|
|
1384
|
+
} = e, { range: p, sizes: h } = Or(e), _ = ut({ format: "avif", query: m, range: p, url: a }), v = ut({ format: "webp", query: m, range: p, url: a }), g = ut({ format: "", query: m, range: p, url: a });
|
|
1385
1385
|
return /* @__PURE__ */ r.jsxs("picture", { className: t, children: [
|
|
1386
1386
|
l !== "image/gif" && /* @__PURE__ */ r.jsx(
|
|
1387
1387
|
"source",
|
|
@@ -1396,7 +1396,7 @@ const Br = ({ image: e, className: t, testId: n }) => {
|
|
|
1396
1396
|
"source",
|
|
1397
1397
|
{
|
|
1398
1398
|
type: "image/webp",
|
|
1399
|
-
srcSet:
|
|
1399
|
+
srcSet: v,
|
|
1400
1400
|
sizes: h,
|
|
1401
1401
|
"data-testid": "source"
|
|
1402
1402
|
}
|
|
@@ -1418,9 +1418,9 @@ const Br = ({ image: e, className: t, testId: n }) => {
|
|
|
1418
1418
|
)
|
|
1419
1419
|
] });
|
|
1420
1420
|
};
|
|
1421
|
-
let
|
|
1421
|
+
let Fe = !1;
|
|
1422
1422
|
const Ir = ({ isOpen: e = !1, isLoading: t = !1, children: n }) => {
|
|
1423
|
-
const s =
|
|
1423
|
+
const s = P(), o = Z(null), [l, m] = D("hidden");
|
|
1424
1424
|
z(() => {
|
|
1425
1425
|
const i = o.current;
|
|
1426
1426
|
if (i)
|
|
@@ -1429,18 +1429,18 @@ const Ir = ({ isOpen: e = !1, isLoading: t = !1, children: n }) => {
|
|
|
1429
1429
|
};
|
|
1430
1430
|
}, []);
|
|
1431
1431
|
const a = ({ propertyName: i }) => {
|
|
1432
|
-
i === "opacity" && (
|
|
1432
|
+
i === "opacity" && (Fe !== !1 && clearTimeout(Fe), m((c) => c === "opening" ? "open" : c === "closing" ? "closed" : c === "closed" ? "hidden" : c));
|
|
1433
1433
|
};
|
|
1434
1434
|
return Ce(() => {
|
|
1435
|
-
|
|
1435
|
+
Fe !== !1 && clearTimeout(Fe);
|
|
1436
1436
|
let i = "open";
|
|
1437
|
-
e ?
|
|
1438
|
-
|
|
1437
|
+
e ? m("opening") : (m("closing"), i = "hidden"), Fe = setTimeout(() => {
|
|
1438
|
+
m(i);
|
|
1439
1439
|
}, 300);
|
|
1440
1440
|
}, [e]), /* @__PURE__ */ r.jsx("aside", { ref: o, className: j("tooltip text-medium", l, { loading: t }), hidden: l === "hidden", children: t ? /* @__PURE__ */ r.jsx("p", { children: s.formatMessage({ id: "tooltip_loading" }) }) : typeof n == "string" ? /* @__PURE__ */ r.jsx("p", { children: n }) : n });
|
|
1441
1441
|
};
|
|
1442
1442
|
const _n = ({ children: e, className: t = "", ...n }) => /* @__PURE__ */ r.jsx("section", { className: j("full-width-section", t), ...n, children: e });
|
|
1443
|
-
const
|
|
1443
|
+
const oo = ({ text: e, buttons: t, className: n = "" }) => {
|
|
1444
1444
|
const s = [];
|
|
1445
1445
|
return t.forEach((o) => {
|
|
1446
1446
|
s.push({
|
|
@@ -1455,10 +1455,10 @@ const ao = ({ text: e, buttons: t, className: n = "" }) => {
|
|
|
1455
1455
|
});
|
|
1456
1456
|
}), /* @__PURE__ */ r.jsx(_n, { className: j("download-section", n), children: /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
|
|
1457
1457
|
A.createElement(typeof e == "string" ? "h2" : e.element, { className: "text" }, typeof e == "string" ? e : e.text),
|
|
1458
|
-
/* @__PURE__ */ r.jsx(
|
|
1458
|
+
/* @__PURE__ */ r.jsx(tt, { buttons: s })
|
|
1459
1459
|
] }) });
|
|
1460
1460
|
};
|
|
1461
|
-
const
|
|
1461
|
+
const ao = ({ title: e = !1, logos: t = [], className: n = "" }) => {
|
|
1462
1462
|
const s = t.length;
|
|
1463
1463
|
if (s === 0)
|
|
1464
1464
|
return null;
|
|
@@ -1473,7 +1473,7 @@ const io = ({ title: e = !1, logos: t = [], className: n = "" }) => {
|
|
|
1473
1473
|
{
|
|
1474
1474
|
className: j({ "two-col": s === 2 || s === 4, "three-col": s === 5 || s <= 10 && s % 3 === 0 }),
|
|
1475
1475
|
children: t.map(
|
|
1476
|
-
({ logo: l, nameOfBusiness:
|
|
1476
|
+
({ logo: l, nameOfBusiness: m, link: a = !1, description: i = !1 }, c) => {
|
|
1477
1477
|
if (!l || !l.url)
|
|
1478
1478
|
return null;
|
|
1479
1479
|
const u = /* @__PURE__ */ r.jsx(
|
|
@@ -1482,7 +1482,7 @@ const io = ({ title: e = !1, logos: t = [], className: n = "" }) => {
|
|
|
1482
1482
|
src: l.url,
|
|
1483
1483
|
width: l.width || "auto",
|
|
1484
1484
|
height: l.height || "auto",
|
|
1485
|
-
alt:
|
|
1485
|
+
alt: m
|
|
1486
1486
|
}
|
|
1487
1487
|
);
|
|
1488
1488
|
return /* @__PURE__ */ r.jsxs("li", { children: [
|
|
@@ -1518,8 +1518,8 @@ const Hr = [
|
|
|
1518
1518
|
"blockquote",
|
|
1519
1519
|
"q"
|
|
1520
1520
|
], Qr = ({ content: e, image: t, variant: n = "default", spacing: s = "normal", cta: o, children: l }) => {
|
|
1521
|
-
const
|
|
1522
|
-
return
|
|
1521
|
+
const m = ["eyebrow", "title", "text"], a = { eyebrow: "small", title: "h1", text: "p" }, i = {};
|
|
1522
|
+
return m.forEach((c) => {
|
|
1523
1523
|
if (!e[c]) {
|
|
1524
1524
|
i[c] = !1;
|
|
1525
1525
|
return;
|
|
@@ -1542,7 +1542,7 @@ const Hr = [
|
|
|
1542
1542
|
u && u.scrollIntoView({ behavior: "smooth" });
|
|
1543
1543
|
}), /* @__PURE__ */ r.jsx(_n, { className: j("banner-section", n, s, { "has-image": t, "has-extra-spacing": s === "normal" && i.eyebrow && i.title }), children: /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
|
|
1544
1544
|
/* @__PURE__ */ r.jsxs("div", { className: "content-wrapper", children: [
|
|
1545
|
-
|
|
1545
|
+
m.map((c) => {
|
|
1546
1546
|
if (i[c] && typeof i[c] == "object") {
|
|
1547
1547
|
const { text: u, element: f = "" } = i[c];
|
|
1548
1548
|
return A.createElement(
|
|
@@ -1567,8 +1567,8 @@ const Hr = [
|
|
|
1567
1567
|
] }),
|
|
1568
1568
|
t && /* @__PURE__ */ r.jsx(Br, { image: { ...t, aspect: "banner" } })
|
|
1569
1569
|
] }) });
|
|
1570
|
-
},
|
|
1571
|
-
const
|
|
1570
|
+
}, io = Ae(Qr);
|
|
1571
|
+
const lo = ({
|
|
1572
1572
|
variant: e = "primary",
|
|
1573
1573
|
button: t = null,
|
|
1574
1574
|
title: n,
|
|
@@ -1578,32 +1578,32 @@ const co = ({
|
|
|
1578
1578
|
n && /* @__PURE__ */ r.jsx("p", { className: "title", children: n }),
|
|
1579
1579
|
s && /* @__PURE__ */ r.jsx("p", { children: s }),
|
|
1580
1580
|
t && /* @__PURE__ */ r.jsx(W, { variant: "secondary", size: "medium", href: t.link, className: "gtm-trackable", "data-gtm-event-context": o, "data-gtm-event-type": "learn-more-click", children: t.text })
|
|
1581
|
-
] }),
|
|
1581
|
+
] }), Et = "https://storage.googleapis.com/apolitical-assets/", Re = {
|
|
1582
1582
|
general: "hello@apolitical.co",
|
|
1583
1583
|
support: "concierge@apolitical.co",
|
|
1584
1584
|
"data-protection": {
|
|
1585
1585
|
default: "dpo@apolitical.co",
|
|
1586
1586
|
eu: "dpo.agl@apolitical.foundation"
|
|
1587
1587
|
}
|
|
1588
|
-
},
|
|
1588
|
+
}, co = "200,000+";
|
|
1589
1589
|
const xn = ({ label: e = !1, className: t = "", children: n }) => {
|
|
1590
|
-
const s =
|
|
1590
|
+
const s = P();
|
|
1591
1591
|
return /* @__PURE__ */ r.jsxs("details", { className: j("collapsible-section", t), children: [
|
|
1592
1592
|
/* @__PURE__ */ r.jsx("summary", { children: e || s.formatMessage({ id: "collapsibleSection_summary" }) }),
|
|
1593
1593
|
/* @__PURE__ */ r.jsx("div", { className: "content", children: n })
|
|
1594
1594
|
] });
|
|
1595
1595
|
};
|
|
1596
1596
|
const ke = ({ variant: e = "primary", className: t = "", children: n, ...s }) => /* @__PURE__ */ r.jsx("div", { className: j("highlighted-text-box", e, t), ...s, children: n });
|
|
1597
|
-
const
|
|
1597
|
+
const rt = ({ variant: e = "empty", text: t = !1, button: n = !1, className: s = "" }) => {
|
|
1598
1598
|
let o = n && !!Object.keys(n).length;
|
|
1599
|
-
const l = typeof n == "object" && "breakpoints" in n,
|
|
1600
|
-
if (l && typeof n == "object" && typeof
|
|
1599
|
+
const l = typeof n == "object" && "breakpoints" in n, m = et(l);
|
|
1600
|
+
if (l && typeof n == "object" && typeof m == "number") {
|
|
1601
1601
|
const f = Object.assign({}, n.breakpoints), p = pn(Object.keys(f));
|
|
1602
|
-
o = hn(
|
|
1602
|
+
o = hn(m, p, f);
|
|
1603
1603
|
}
|
|
1604
1604
|
const { breakpoints: a, text: i = "", component: c, ...u } = n;
|
|
1605
1605
|
return /* @__PURE__ */ r.jsx(ke, { variant: "subtle", className: j("empty-state-box", e, s), children: /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
|
|
1606
|
-
t && /* @__PURE__ */ r.jsx(
|
|
1606
|
+
t && /* @__PURE__ */ r.jsx(Ke, { options: { forceBlock: !0 }, children: t }),
|
|
1607
1607
|
o && typeof n == "object" && (c || /* @__PURE__ */ r.jsx(
|
|
1608
1608
|
W,
|
|
1609
1609
|
{
|
|
@@ -1614,13 +1614,13 @@ const st = ({ variant: e = "empty", text: t = !1, button: n = !1, className: s =
|
|
|
1614
1614
|
))
|
|
1615
1615
|
] }) });
|
|
1616
1616
|
};
|
|
1617
|
-
const
|
|
1617
|
+
const St = ({ children: e, ...t }) => /* @__PURE__ */ r.jsx("p", { ...t, children: e }), vn = { q: St, blockquote: St };
|
|
1618
1618
|
for (let e = 1; e <= 6; e++)
|
|
1619
|
-
vn[`h${e}`] = { component:
|
|
1619
|
+
vn[`h${e}`] = { component: St, props: { className: "title" } };
|
|
1620
1620
|
const Ur = ({ type: e = "default", className: t = "", heading: n = !1, children: s }) => /* @__PURE__ */ r.jsxs("div", { className: j("helper-text-box text-small", e, t), children: [
|
|
1621
1621
|
n && /* @__PURE__ */ r.jsx("p", { className: "title", children: n }),
|
|
1622
1622
|
typeof s == "string" ? /* @__PURE__ */ r.jsx(
|
|
1623
|
-
|
|
1623
|
+
Ke,
|
|
1624
1624
|
{
|
|
1625
1625
|
options: {
|
|
1626
1626
|
wrapper: A.Fragment,
|
|
@@ -1631,10 +1631,10 @@ const Ur = ({ type: e = "default", className: t = "", heading: n = !1, children:
|
|
|
1631
1631
|
}
|
|
1632
1632
|
) : /* @__PURE__ */ r.jsx("p", { children: s })
|
|
1633
1633
|
] });
|
|
1634
|
-
const
|
|
1635
|
-
const l =
|
|
1634
|
+
const uo = ({ className: e = "", show: t = !1, hide: n = !1, text: s, children: o }) => {
|
|
1635
|
+
const l = P(), m = Z(null), [a, i] = D(""), [c, u] = D("closed");
|
|
1636
1636
|
z(() => {
|
|
1637
|
-
const h =
|
|
1637
|
+
const h = m.current;
|
|
1638
1638
|
if (h)
|
|
1639
1639
|
return h.addEventListener("transitionend", f), () => {
|
|
1640
1640
|
h.removeEventListener("transitionend", f);
|
|
@@ -1656,8 +1656,8 @@ const mo = ({ className: e = "", show: t = !1, hide: n = !1, text: s, children:
|
|
|
1656
1656
|
return null;
|
|
1657
1657
|
const p = ["opening", "open"].includes(c);
|
|
1658
1658
|
return /* @__PURE__ */ r.jsxs(ke, { variant: "subtle", className: j("hide-show-text-box", e), children: [
|
|
1659
|
-
/* @__PURE__ */ r.jsxs("div", { ref:
|
|
1660
|
-
/* @__PURE__ */ r.jsx(
|
|
1659
|
+
/* @__PURE__ */ r.jsxs("div", { ref: m, className: j("content", c), children: [
|
|
1660
|
+
/* @__PURE__ */ r.jsx(Ke, { options: { forceBlock: !0 }, children: c === "closed" ? a : s }),
|
|
1661
1661
|
c !== "closed" && o
|
|
1662
1662
|
] }),
|
|
1663
1663
|
/* @__PURE__ */ r.jsx("p", { className: "cta", children: /* @__PURE__ */ r.jsx(
|
|
@@ -1675,20 +1675,20 @@ const mo = ({ className: e = "", show: t = !1, hide: n = !1, text: s, children:
|
|
|
1675
1675
|
) })
|
|
1676
1676
|
] });
|
|
1677
1677
|
}, Wr = () => A.Fragment, zr = ({ children: e }) => /* @__PURE__ */ r.jsx(ke, { variant: "secondary", children: e }), Vr = ["span", "strong", "h1", "h2", "h3", "h4", "h5", "h6", "p"], Yr = ({ children: e }) => {
|
|
1678
|
-
const t =
|
|
1678
|
+
const t = P();
|
|
1679
1679
|
if (!e)
|
|
1680
1680
|
return null;
|
|
1681
1681
|
let n = t.formatMessage({ id: "markdown_collapsibleSection_summary" });
|
|
1682
1682
|
const s = [];
|
|
1683
|
-
for (const l of
|
|
1683
|
+
for (const l of yt.toArray(e))
|
|
1684
1684
|
if (!(!l || typeof l == "string" || typeof l == "number"))
|
|
1685
1685
|
if (A.isValidElement(l) && l.type === "summary") {
|
|
1686
1686
|
if (l.props && l.props.children) {
|
|
1687
|
-
for (const
|
|
1688
|
-
if (!(!
|
|
1689
|
-
const a =
|
|
1687
|
+
for (const m of yt.toArray(l.props.children))
|
|
1688
|
+
if (!(!m || typeof m == "string" || typeof m == "number") && A.isValidElement(m)) {
|
|
1689
|
+
const a = m.type;
|
|
1690
1690
|
if (Vr.includes(a)) {
|
|
1691
|
-
for (n =
|
|
1691
|
+
for (n = m.props.children; typeof n != "string" && (Array.isArray(n) && n[0].props && n[0].props.children && n[0].props.children[0]); )
|
|
1692
1692
|
n = n[0].props.children[0];
|
|
1693
1693
|
break;
|
|
1694
1694
|
}
|
|
@@ -1720,11 +1720,11 @@ const mo = ({ className: e = "", show: t = !1, hide: n = !1, text: s, children:
|
|
|
1720
1720
|
}
|
|
1721
1721
|
return /* @__PURE__ */ r.jsx("div", { ...t, children: e });
|
|
1722
1722
|
}, Jr = (e) => {
|
|
1723
|
-
const t =
|
|
1723
|
+
const t = P(), n = Date.now().toString();
|
|
1724
1724
|
let s = "default";
|
|
1725
1725
|
const o = e.src;
|
|
1726
1726
|
return o.includes("youtube") || o.includes("vimeo") ? s = "video" : o.includes("riddle") || o.includes("sli.do") ? s = "poll" : o.includes("padlet") && (s = "padlet"), /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
|
|
1727
|
-
/* @__PURE__ */ r.jsx(
|
|
1727
|
+
/* @__PURE__ */ r.jsx(ne, { children: /* @__PURE__ */ r.jsx("a", { href: `#content-after-iframe-${n}`, children: t.formatMessage({ id: `markdown_skip${s === "default" ? "" : `_${s}`}` }) }) }),
|
|
1728
1728
|
/* @__PURE__ */ r.jsx("iframe", { ...e, title: t.formatMessage({ id: `markdown_iframe${s === "default" ? "" : `_${s}`}` }) }),
|
|
1729
1729
|
/* @__PURE__ */ r.jsx("span", { id: `content-after-iframe-${n}`, tabIndex: -1 })
|
|
1730
1730
|
] });
|
|
@@ -1735,11 +1735,11 @@ const mo = ({ className: e = "", show: t = !1, hide: n = !1, text: s, children:
|
|
|
1735
1735
|
let n = { ...t };
|
|
1736
1736
|
t.href && (t.href.includes("http:") || t.href.includes("https:")) && !t.target && (n.target = "_blank");
|
|
1737
1737
|
let s = e, o = !1;
|
|
1738
|
-
for (const l of
|
|
1738
|
+
for (const l of yt.toArray(e))
|
|
1739
1739
|
if (!(!l || typeof l == "string" || typeof l == "number") && A.isValidElement(l)) {
|
|
1740
|
-
const
|
|
1741
|
-
if (["button", "center", "span", "strong"].includes(
|
|
1742
|
-
for ((
|
|
1740
|
+
const m = l.type;
|
|
1741
|
+
if (["button", "center", "span", "strong"].includes(m) && l.props && l.props.children && l.props.children[0])
|
|
1742
|
+
for ((m === "button" || tn(l.props.children[0]) === "button") && (o = !0), s = l.props.children[0]; s && typeof s != "string" && !(typeof s == "boolean" || typeof s == "number" || !A.isValidElement(s)); )
|
|
1743
1743
|
if (s.props && s.props.children && s.props.children[0])
|
|
1744
1744
|
s = s.props.children[0], s && tn(s) === "button" && (o = !0);
|
|
1745
1745
|
else
|
|
@@ -1767,47 +1767,47 @@ const nn = ({ className: e = "", options: t = {}, children: n }) => {
|
|
|
1767
1767
|
iframe: Jr
|
|
1768
1768
|
}
|
|
1769
1769
|
};
|
|
1770
|
-
return /* @__PURE__ */ r.jsx("div", { className: j("markdown-text", e), children: /* @__PURE__ */ r.jsx(
|
|
1770
|
+
return /* @__PURE__ */ r.jsx("div", { className: j("markdown-text", e), children: /* @__PURE__ */ r.jsx(Ke, { options: { ...s, ...t }, children: n }) });
|
|
1771
1771
|
};
|
|
1772
1772
|
const qr = ({ size: e = "medium", variant: t = "default", className: n = "", children: s }) => /* @__PURE__ */ r.jsx("span", { className: j("pill", e, t, n), children: s });
|
|
1773
|
-
const
|
|
1773
|
+
const $t = ({ element: e = "p", children: t = null, className: n = "", ...s }) => A.createElement(e, { ...s, className: j("status-banner text-small", n), "aria-live": "assertive" }, t);
|
|
1774
1774
|
const Kr = ({ progress: e = 0, text: t = !1, className: n = "" }) => {
|
|
1775
|
-
const s =
|
|
1776
|
-
return /* @__PURE__ */ r.jsx("span", { className: j(`progress-bar section-${o}`, n), style: l, children: /* @__PURE__ */ r.jsx(
|
|
1775
|
+
const s = P(), o = e > 75 ? 100 : e > 50 ? 75 : e > 25 ? 50 : e > 5 ? 25 : 0, l = { "--progress": `${e}%` };
|
|
1776
|
+
return /* @__PURE__ */ r.jsx("span", { className: j(`progress-bar section-${o}`, n), style: l, children: /* @__PURE__ */ r.jsx(ne, { children: t ? `${e} ${t}` : s.formatMessage({ id: "progressBar" }, { number: e }) }) });
|
|
1777
1777
|
}, es = Ae(Kr);
|
|
1778
|
-
const
|
|
1779
|
-
const s =
|
|
1778
|
+
const dt = "loadingBlock_", ts = ({ progress: e = 0, steps: t = !1, className: n = "" }) => {
|
|
1779
|
+
const s = P();
|
|
1780
1780
|
t || (t = {
|
|
1781
|
-
0: { text: s.formatMessage({ id: `${
|
|
1782
|
-
75: { text: s.formatMessage({ id: `${
|
|
1783
|
-
100: { text: s.formatMessage({ id: `${
|
|
1781
|
+
0: { text: s.formatMessage({ id: `${dt}loading` }) },
|
|
1782
|
+
75: { text: s.formatMessage({ id: `${dt}almostDone` }) },
|
|
1783
|
+
100: { text: s.formatMessage({ id: `${dt}complete` }) }
|
|
1784
1784
|
});
|
|
1785
1785
|
let o = null;
|
|
1786
1786
|
const l = Object.keys(t);
|
|
1787
1787
|
for (let a = 0; a < l.length && !(e < parseInt(l[a])); a++)
|
|
1788
1788
|
o = l[a];
|
|
1789
|
-
const
|
|
1789
|
+
const m = o && t[o].icon ? { "--icon": `url(${Et}icons/${t[o].icon}.svg)` } : {};
|
|
1790
1790
|
return /* @__PURE__ */ r.jsxs(
|
|
1791
1791
|
ke,
|
|
1792
1792
|
{
|
|
1793
1793
|
className: j("loading-block", n, { "has-icon": o && t[o].icon }),
|
|
1794
1794
|
variant: "subtle",
|
|
1795
|
-
style:
|
|
1795
|
+
style: m,
|
|
1796
1796
|
children: [
|
|
1797
1797
|
o && /* @__PURE__ */ r.jsx("span", { className: "step", children: t[o].text }),
|
|
1798
1798
|
/* @__PURE__ */ r.jsx(es, { progress: e })
|
|
1799
1799
|
]
|
|
1800
1800
|
}
|
|
1801
1801
|
);
|
|
1802
|
-
},
|
|
1802
|
+
}, mo = Ae(ts);
|
|
1803
1803
|
const be = ({ element: e = "div", className: t = "", ...n }) => /* @__PURE__ */ r.jsx(mn, { element: e, className: j("loading-placeholder", t), ...n });
|
|
1804
|
-
const
|
|
1804
|
+
const Tt = {
|
|
1805
1805
|
header: ["logo", "link", "link", "search"],
|
|
1806
1806
|
sidebar: ["text", "text", "text", "text", "text"],
|
|
1807
1807
|
"cards-section": ["subtitle", "cards"],
|
|
1808
1808
|
cards: ["card", "card", "card", "card"],
|
|
1809
1809
|
"overview-page": ["header", "sidebar", "title", "text", "cards-section", "cards-section", "footer"]
|
|
1810
|
-
}, bn = (e, t) => e in
|
|
1810
|
+
}, bn = (e, t) => e in Tt ? /* @__PURE__ */ r.jsx("div", { className: e, children: Tt[e].map((n, s) => bn(n, s)) }, t) : /* @__PURE__ */ r.jsx(be, { className: e }, t), ns = ({ layout: e = "overview-page" }) => /* @__PURE__ */ r.jsx("div", { className: j("loading-state", e), children: Tt[e].map((t, n) => bn(t, n)) }), wn = (e) => {
|
|
1811
1811
|
const t = e && e.toUpperCase().split(" ");
|
|
1812
1812
|
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) : "";
|
|
1813
1813
|
}, Qe = ["#5AB6A3", "#A2D7AF", "#806056", "#3962B3"], rs = (e) => {
|
|
@@ -1819,8 +1819,8 @@ const Ct = {
|
|
|
1819
1819
|
if (s <= t * (o + 1))
|
|
1820
1820
|
return Qe[o];
|
|
1821
1821
|
};
|
|
1822
|
-
const rn = 256,
|
|
1823
|
-
const [a, i] =
|
|
1822
|
+
const rn = 256, Dt = ({ className: e = "", src: t = "", name: n, alt: s, width: o = rn, height: l = rn, ...m }) => {
|
|
1823
|
+
const [a, i] = D(!1), c = Z(null);
|
|
1824
1824
|
z(() => {
|
|
1825
1825
|
const f = c.current;
|
|
1826
1826
|
if (!f)
|
|
@@ -1832,7 +1832,7 @@ const rn = 256, Pt = ({ className: e = "", src: t = "", name: n, alt: s, width:
|
|
|
1832
1832
|
typeof window < "u" && window.devicePixelRatio && (f.width = h * window.devicePixelRatio, f.height = _ * window.devicePixelRatio, p.scale(window.devicePixelRatio, window.devicePixelRatio)), p.fillStyle = rs(n), p.fillRect(0, 0, h, _), p.font = `${h / 3}px Arial`, p.textAlign = "center", p.fillStyle = "white", p.fillText(wn(n), h / 2, _ / 1.6);
|
|
1833
1833
|
}, [n]);
|
|
1834
1834
|
let u = !1;
|
|
1835
|
-
return t && t !== "" && !a && (t.includes("http") || t.includes("//")) && (u = !0), /* @__PURE__ */ r.jsx("figure", { className: j("profile-picture", e, { error: a }), ...
|
|
1835
|
+
return t && t !== "" && !a && (t.includes("http") || t.includes("//")) && (u = !0), /* @__PURE__ */ r.jsx("figure", { className: j("profile-picture", e, { error: a }), ...m, children: u ? /* @__PURE__ */ r.jsx(
|
|
1836
1836
|
"img",
|
|
1837
1837
|
{
|
|
1838
1838
|
src: t,
|
|
@@ -1845,9 +1845,9 @@ const rn = 256, Pt = ({ className: e = "", src: t = "", name: n, alt: s, width:
|
|
|
1845
1845
|
}
|
|
1846
1846
|
) : /* @__PURE__ */ r.jsx("canvas", { ref: c }) });
|
|
1847
1847
|
}, kn = (e) => e === "apolitical" ? {
|
|
1848
|
-
image: `${
|
|
1848
|
+
image: `${Et}logos/member_apolitical.svg`
|
|
1849
1849
|
} : e === "community" || typeof e == "object" && !e.name ? {
|
|
1850
|
-
image: `${
|
|
1850
|
+
image: `${Et}logos/member_community.svg`
|
|
1851
1851
|
} : {
|
|
1852
1852
|
name: e.name,
|
|
1853
1853
|
role: e.jobTitle || "",
|
|
@@ -1861,14 +1861,14 @@ const rn = 256, Pt = ({ className: e = "", src: t = "", name: n, alt: s, width:
|
|
|
1861
1861
|
country: n = "",
|
|
1862
1862
|
maximumCharacters: s = 80
|
|
1863
1863
|
}) => {
|
|
1864
|
-
const o = e !== "", l = t !== "",
|
|
1865
|
-
if (!o && !l && !
|
|
1864
|
+
const o = e !== "", l = t !== "", m = n !== "";
|
|
1865
|
+
if (!o && !l && !m)
|
|
1866
1866
|
return "";
|
|
1867
1867
|
const a = `${e}${o && l ? ` — ${t}` : t}`;
|
|
1868
|
-
let i = `${a}${(o || l) &&
|
|
1869
|
-
return i.length > s && (i = a), i.length > s && (i =
|
|
1868
|
+
let i = `${a}${(o || l) && m ? `, ${n}` : n}`;
|
|
1869
|
+
return i.length > s && (i = a), i.length > s && (i = Ct(i, s)), i;
|
|
1870
1870
|
};
|
|
1871
|
-
const
|
|
1871
|
+
const Pt = ({
|
|
1872
1872
|
element: e = "div",
|
|
1873
1873
|
member: t = "community",
|
|
1874
1874
|
additionalContent: n = !1,
|
|
@@ -1876,13 +1876,13 @@ const Ft = ({
|
|
|
1876
1876
|
gtmType: o = "member-click",
|
|
1877
1877
|
className: l = ""
|
|
1878
1878
|
}) => {
|
|
1879
|
-
const
|
|
1880
|
-
a.name || (a.name =
|
|
1879
|
+
const m = P(), a = kn(t);
|
|
1880
|
+
a.name || (a.name = m.formatMessage({ id: `member_${typeof t == "string" ? t : "community"}` }));
|
|
1881
1881
|
const { name: i, url: c, image: u } = a, f = ss(a), p = n && n.createdAt ? Mr(n.createdAt) : !1, h = n && n.createdAt ? Tr(n.createdAt) : "";
|
|
1882
1882
|
return A.createElement(e, {
|
|
1883
1883
|
className: j("member text-medium", l),
|
|
1884
1884
|
children: /* @__PURE__ */ r.jsxs(
|
|
1885
|
-
|
|
1885
|
+
nt,
|
|
1886
1886
|
{
|
|
1887
1887
|
href: c,
|
|
1888
1888
|
gtmType: o,
|
|
@@ -1891,12 +1891,12 @@ const Ft = ({
|
|
|
1891
1891
|
_ == null || _.stopPropagation();
|
|
1892
1892
|
},
|
|
1893
1893
|
children: [
|
|
1894
|
-
/* @__PURE__ */ r.jsx(
|
|
1894
|
+
/* @__PURE__ */ r.jsx(Dt, { name: i, src: u }),
|
|
1895
1895
|
/* @__PURE__ */ r.jsxs("p", { className: "details", children: [
|
|
1896
1896
|
/* @__PURE__ */ r.jsx("strong", { children: i }),
|
|
1897
1897
|
n && /* @__PURE__ */ r.jsxs("span", { className: "additional-content", children: [
|
|
1898
|
-
n.createdAt && p && /* @__PURE__ */ r.jsx("span", { className: "date", title: h, "aria-label": h, children:
|
|
1899
|
-
n.didEdit && /* @__PURE__ */ r.jsx("em", { children:
|
|
1898
|
+
n.createdAt && p && /* @__PURE__ */ r.jsx("span", { className: "date", title: h, "aria-label": h, children: m.formatMessage({ id: `dates_${p.path}` }, { number: p.number }) }),
|
|
1899
|
+
n.didEdit && /* @__PURE__ */ r.jsx("em", { children: m.formatMessage({ id: "discussion_edited" }) })
|
|
1900
1900
|
] }),
|
|
1901
1901
|
f && /* @__PURE__ */ r.jsx("small", { children: f })
|
|
1902
1902
|
] })
|
|
@@ -1908,18 +1908,18 @@ const Ft = ({
|
|
|
1908
1908
|
const sn = {
|
|
1909
1909
|
small: 24,
|
|
1910
1910
|
medium: 48
|
|
1911
|
-
}, os = ({ element: e = "div", contributors: { total: t, data: n } = { total: void 0, data: [] }, styling: { showText: s, size: o, showGap: l, showPlaceholders:
|
|
1912
|
-
const c =
|
|
1911
|
+
}, os = ({ element: e = "div", contributors: { total: t, data: n } = { total: void 0, data: [] }, styling: { showText: s, size: o, showGap: l, showPlaceholders: m } = { showText: !0, size: "medium", showGap: !0, showPlaceholders: !1 }, cutoff: a = 2, className: i = "" }) => {
|
|
1912
|
+
const c = P();
|
|
1913
1913
|
return !n || n.length === 0 ? null : A.createElement(
|
|
1914
1914
|
e,
|
|
1915
1915
|
{ className: j("contributors", i, o, { "has-gap": l }), children: /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
|
|
1916
1916
|
/* @__PURE__ */ r.jsx("ul", { children: n.map((u, f) => {
|
|
1917
1917
|
let p, h = "";
|
|
1918
1918
|
if (f < a) {
|
|
1919
|
-
const { name: _ = "", image:
|
|
1920
|
-
if (
|
|
1919
|
+
const { name: _ = "", image: v = "" } = kn(u);
|
|
1920
|
+
if (m)
|
|
1921
1921
|
return /* @__PURE__ */ r.jsx(be, { element: "li", className: "contributor" }, f);
|
|
1922
|
-
p = /* @__PURE__ */ r.jsx(
|
|
1922
|
+
p = /* @__PURE__ */ r.jsx(Dt, { name: _, src: v, width: sn[o || "medium"], height: sn[o || "medium"] });
|
|
1923
1923
|
} else if (f === a) {
|
|
1924
1924
|
const _ = (t || n.length) - a;
|
|
1925
1925
|
p = /* @__PURE__ */ r.jsxs("small", { className: j({ "large-number": _ > 99 }), children: [
|
|
@@ -1929,7 +1929,7 @@ const sn = {
|
|
|
1929
1929
|
}
|
|
1930
1930
|
return p ? /* @__PURE__ */ r.jsx("li", { className: j("contributor", h), children: p }, f) : null;
|
|
1931
1931
|
}) }),
|
|
1932
|
-
s && /* @__PURE__ */ r.jsx("span", { className: "label", children: typeof s == "string" ? s : n.length === 1 ? typeof n[0] == "string" ? c.formatMessage({ id: `member_${n[0]}` }) :
|
|
1932
|
+
s && /* @__PURE__ */ r.jsx("span", { className: "label", children: typeof s == "string" ? s : n.length === 1 ? typeof n[0] == "string" ? c.formatMessage({ id: `member_${n[0]}` }) : Ct(n[0].name || "", 20) : null })
|
|
1933
1933
|
] }) }
|
|
1934
1934
|
);
|
|
1935
1935
|
}, as = ({ showDevTools: e = !0, children: t }) => {
|
|
@@ -1949,7 +1949,7 @@ const sn = {
|
|
|
1949
1949
|
e && /* @__PURE__ */ r.jsx(dr, { initialIsOpen: !1 })
|
|
1950
1950
|
] });
|
|
1951
1951
|
};
|
|
1952
|
-
var is =
|
|
1952
|
+
var is = Mt({ client: Ge });
|
|
1953
1953
|
function ls(e) {
|
|
1954
1954
|
var t = e.children, n = e.client, s = e.apiKey, o = e.options, l = qe(function() {
|
|
1955
1955
|
return n && s && console.warn("[PostHog.js] You have provided both a client and an apiKey to PostHogProvider. The apiKey will be ignored in favour of the client."), n && o && console.warn("[PostHog.js] You have provided both a client and options to PostHogProvider. The options will be ignored in favour of the client."), n || (s && (Ge.__loaded && console.warn("[PostHog.js] was already loaded elsewhere. This may cause issues."), Ge.init(s, o)), Ge);
|
|
@@ -1978,21 +1978,21 @@ const cs = ({ children: e, user: t }) => t.isLoading ? /* @__PURE__ */ r.jsx(r.F
|
|
|
1978
1978
|
...n || {}
|
|
1979
1979
|
};
|
|
1980
1980
|
return /* @__PURE__ */ r.jsx(ir, { locale: s, messages: o, children: e });
|
|
1981
|
-
}, je =
|
|
1982
|
-
const [s, o] =
|
|
1981
|
+
}, je = Mt(null), ds = ({ children: e, user: t }) => /* @__PURE__ */ r.jsx(je.Provider, { value: t, children: e }), fo = ({ bootstrap: e, children: t, intl: n }) => {
|
|
1982
|
+
const [s, o] = D({ isLoading: !0 });
|
|
1983
1983
|
return z(() => {
|
|
1984
1984
|
e().then((l) => o({ ...l, isLoading: !1 })).catch(() => o({ isLoading: !1 }));
|
|
1985
1985
|
}, []), /* @__PURE__ */ r.jsx(us, { locale: n == null ? void 0 : n.locale, messages: n == null ? void 0 : n.messages, children: /* @__PURE__ */ r.jsx(ds, { user: s, children: /* @__PURE__ */ r.jsx(as, { children: /* @__PURE__ */ r.jsx(cs, { user: s, children: t }) }) }) });
|
|
1986
1986
|
};
|
|
1987
|
-
const
|
|
1987
|
+
const mt = "joinCommunityButton", yn = ({ isMember: e = !1, isShort: t = !1, functions: { join: n, leave: s } = { join: () => {
|
|
1988
1988
|
}, leave: () => {
|
|
1989
1989
|
} } }) => {
|
|
1990
|
-
const o =
|
|
1990
|
+
const o = P(), l = ye(je), m = l && typeof l.id == "string", [a, i] = D(e), [c, u] = D(e ? "joined" : "notJoined");
|
|
1991
1991
|
z(() => {
|
|
1992
1992
|
c === "joining" ? u("joined") : c === "leaving" && u("notJoined");
|
|
1993
1993
|
}, [a]);
|
|
1994
1994
|
const f = {}, p = {};
|
|
1995
|
-
return a && c !== "leaving" && (f["data-hover-text"] = o.formatMessage({ id: `${
|
|
1995
|
+
return a && c !== "leaving" && (f["data-hover-text"] = o.formatMessage({ id: `${mt}_leave` }), f["aria-label"] = o.formatMessage({ id: `${mt}_member_aria` }), p["aria-hidden"] = "true"), /* @__PURE__ */ r.jsx(
|
|
1996
1996
|
W,
|
|
1997
1997
|
{
|
|
1998
1998
|
variant: a ? "secondary" : "primary",
|
|
@@ -2000,48 +2000,78 @@ const ft = "joinCommunityButton", yn = ({ isMember: e = !1, isShort: t = !1, fun
|
|
|
2000
2000
|
styling: { fullWidth: !0 },
|
|
2001
2001
|
icon: a && c !== "leaving" ? { icon: "tick", position: "left" } : !1,
|
|
2002
2002
|
onClick: async (h) => {
|
|
2003
|
-
|
|
2003
|
+
m && (h.currentTarget.blur(), a ? (u("leaving"), typeof s == "function" && await s()) : (u("joining"), typeof n == "function" && await n()), i(!a));
|
|
2004
2004
|
},
|
|
2005
2005
|
className: j("join-community-button", c, { active: c === "joining" }),
|
|
2006
|
-
disabled: !
|
|
2006
|
+
disabled: !m,
|
|
2007
2007
|
...f,
|
|
2008
|
-
children: /* @__PURE__ */ r.jsx("span", { className: "text", ...p, children: o.formatMessage({ id: `${
|
|
2008
|
+
children: /* @__PURE__ */ r.jsx("span", { className: "text", ...p, children: o.formatMessage({ id: `${mt}${["joining", "leaving"].includes(c) ? `_${c}` : a ? "_member" : t ? "_short" : ""}` }) })
|
|
2009
2009
|
}
|
|
2010
2010
|
);
|
|
2011
2011
|
};
|
|
2012
|
-
const
|
|
2013
|
-
|
|
2012
|
+
const ft = "communityDetails_", po = ({
|
|
2013
|
+
isMember: e = !1,
|
|
2014
|
+
slug: t,
|
|
2015
|
+
members: { number: n, data: s } = { number: void 0, data: [] },
|
|
2016
|
+
className: o = "",
|
|
2017
|
+
onInviteClick: l,
|
|
2018
|
+
...m
|
|
2019
|
+
}) => {
|
|
2020
|
+
const a = P(), i = n || (s == null ? void 0 : s.length) || 0;
|
|
2014
2021
|
return /* @__PURE__ */ r.jsxs("div", { className: j("community-details", o), children: [
|
|
2015
|
-
/* @__PURE__ */ r.jsx(
|
|
2022
|
+
/* @__PURE__ */ r.jsx(Le, {}),
|
|
2016
2023
|
/* @__PURE__ */ r.jsxs("div", { className: "member-details", children: [
|
|
2017
2024
|
/* @__PURE__ */ r.jsxs("div", { className: "top", children: [
|
|
2018
2025
|
/* @__PURE__ */ r.jsxs("h3", { children: [
|
|
2019
|
-
|
|
2020
|
-
/* @__PURE__ */ r.jsx("span", { className: "count", children:
|
|
2026
|
+
a.formatMessage({ id: `${ft}members` }),
|
|
2027
|
+
/* @__PURE__ */ r.jsx("span", { className: "count", children: i })
|
|
2021
2028
|
] }),
|
|
2022
|
-
/* @__PURE__ */ r.jsx("p", { className: "text-small", children: /* @__PURE__ */ r.jsx("a", { href: `/communities/${t}/members`, children:
|
|
2029
|
+
/* @__PURE__ */ r.jsx("p", { className: "text-small", children: /* @__PURE__ */ r.jsx("a", { href: `/communities/${t}/members`, children: a.formatMessage({ id: `${ft}viewAll` }) }) })
|
|
2023
2030
|
] }),
|
|
2024
|
-
/* @__PURE__ */ r.jsx(
|
|
2031
|
+
/* @__PURE__ */ r.jsx(
|
|
2032
|
+
os,
|
|
2033
|
+
{
|
|
2034
|
+
contributors: {
|
|
2035
|
+
total: n,
|
|
2036
|
+
data: s != null && s.length ? s : [{}, {}, {}, {}, {}]
|
|
2037
|
+
},
|
|
2038
|
+
styling: {
|
|
2039
|
+
size: "medium",
|
|
2040
|
+
showGap: !0,
|
|
2041
|
+
showPlaceholders: i === 0
|
|
2042
|
+
},
|
|
2043
|
+
cutoff: 5
|
|
2044
|
+
}
|
|
2045
|
+
)
|
|
2025
2046
|
] }),
|
|
2026
|
-
/* @__PURE__ */ r.jsx(yn, { isMember: e, ...
|
|
2027
|
-
e && /* @__PURE__ */ r.jsx(
|
|
2047
|
+
/* @__PURE__ */ r.jsx(yn, { isMember: e, ...m }),
|
|
2048
|
+
e && /* @__PURE__ */ r.jsx(
|
|
2049
|
+
W,
|
|
2050
|
+
{
|
|
2051
|
+
variant: "primary",
|
|
2052
|
+
onClick: l,
|
|
2053
|
+
icon: { icon: "plus" },
|
|
2054
|
+
styling: { fullWidth: !0 },
|
|
2055
|
+
children: a.formatMessage({ id: `${ft}invite` })
|
|
2056
|
+
}
|
|
2057
|
+
)
|
|
2028
2058
|
] });
|
|
2029
2059
|
};
|
|
2030
|
-
const
|
|
2060
|
+
const ho = ({
|
|
2031
2061
|
breadcrumbs: e,
|
|
2032
2062
|
cutoff: t = 20,
|
|
2033
2063
|
className: n = ""
|
|
2034
2064
|
}) => {
|
|
2035
|
-
const s =
|
|
2065
|
+
const s = P();
|
|
2036
2066
|
return /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
|
|
2037
|
-
/* @__PURE__ */ r.jsx(
|
|
2038
|
-
/* @__PURE__ */ r.jsx("ul", { className: j("breadcrumbs text-small", n), children: e.map(({ text: o, href: l, current:
|
|
2039
|
-
|
|
2040
|
-
/* @__PURE__ */ r.jsx(
|
|
2067
|
+
/* @__PURE__ */ r.jsx(ne, { element: "p", children: s.formatMessage({ id: "breadcrumbs_label" }) }),
|
|
2068
|
+
/* @__PURE__ */ r.jsx("ul", { className: j("breadcrumbs text-small", n), children: e.map(({ text: o, href: l, current: m = !1 }, a) => /* @__PURE__ */ r.jsxs("li", { children: [
|
|
2069
|
+
m && /* @__PURE__ */ r.jsx(ne, { element: "span", children: s.formatMessage({ id: "breadcrumbs_currentPage" }) }),
|
|
2070
|
+
/* @__PURE__ */ r.jsx(nt, { href: m ? void 0 : l, children: Ct(o, t) })
|
|
2041
2071
|
] }, `${window.btoa(o)}_${a}`)) })
|
|
2042
2072
|
] });
|
|
2043
2073
|
};
|
|
2044
|
-
const
|
|
2074
|
+
const go = ({
|
|
2045
2075
|
options: e,
|
|
2046
2076
|
allOption: t = !1,
|
|
2047
2077
|
allowMultiple: n = !0,
|
|
@@ -2049,19 +2079,19 @@ const _o = ({
|
|
|
2049
2079
|
},
|
|
2050
2080
|
className: o = ""
|
|
2051
2081
|
}) => {
|
|
2052
|
-
const l =
|
|
2082
|
+
const l = P(), m = t ? [{ id: "all", text: typeof t != "boolean" && t.text || l.formatMessage({ id: "filters_all" }) }, ...e] : e, [a, i] = D(t ? ["all"] : []), c = (u, f) => {
|
|
2053
2083
|
let p = [];
|
|
2054
2084
|
a.includes(u) ? p = a.filter((h) => h !== u) : u === "all" ? p = ["all"] : n ? p = [...a.filter((h) => h !== "all"), u] : p = [u], i((h) => (s && typeof s == "function" && s({ current: p, previous: h }), p)), f && typeof f == "function" && f();
|
|
2055
2085
|
};
|
|
2056
|
-
return /* @__PURE__ */ r.jsx("ul", { className: j("filters", o), children:
|
|
2086
|
+
return /* @__PURE__ */ r.jsx("ul", { className: j("filters", o), children: m.map(({ id: u, text: f, disabled: p = !1, callback: h = () => {
|
|
2057
2087
|
} }) => {
|
|
2058
2088
|
let _ = {};
|
|
2059
2089
|
return p && (_ = { disabled: !0, "aria-label": l.formatMessage({ id: "filters_disabled" }, { name: f }) }), /* @__PURE__ */ r.jsx("li", { children: /* @__PURE__ */ r.jsx(
|
|
2060
2090
|
"button",
|
|
2061
2091
|
{
|
|
2062
2092
|
className: j(u, { selected: a.includes(u) }),
|
|
2063
|
-
onClick: (
|
|
2064
|
-
|
|
2093
|
+
onClick: (v) => {
|
|
2094
|
+
v.preventDefault(), v.stopPropagation(), c(u, h);
|
|
2065
2095
|
},
|
|
2066
2096
|
..._,
|
|
2067
2097
|
children: f
|
|
@@ -2077,7 +2107,7 @@ const _o = ({
|
|
|
2077
2107
|
l === "before-lang" ? s += `/${o}` : (s.includes(`/${n}/`) || (s += `/${n}`), s += `/${o}`);
|
|
2078
2108
|
}), s.includes(`/${n}/`) || (s += `/${n}`), s;
|
|
2079
2109
|
};
|
|
2080
|
-
const
|
|
2110
|
+
const pt = { en: "English", es: "Español", fr: "Français", pt: "Português" }, Ue = "languageSwitcher_", _o = ({
|
|
2081
2111
|
currentLanguage: e,
|
|
2082
2112
|
isOriginalLanguage: t = !1,
|
|
2083
2113
|
isHumanTranslation: n = !1,
|
|
@@ -2085,48 +2115,48 @@ const ht = { en: "English", es: "Español", fr: "Français", pt: "Português" },
|
|
|
2085
2115
|
onChange: o = () => {
|
|
2086
2116
|
},
|
|
2087
2117
|
urlParts: l,
|
|
2088
|
-
variant:
|
|
2118
|
+
variant: m = "default",
|
|
2089
2119
|
label: a,
|
|
2090
2120
|
className: i = ""
|
|
2091
2121
|
}) => {
|
|
2092
|
-
const c =
|
|
2122
|
+
const c = P(), [u, f] = D(e);
|
|
2093
2123
|
if (z(() => {
|
|
2094
2124
|
e !== u && f(e);
|
|
2095
|
-
}, [e]), !s || !Object.values(s).some((
|
|
2125
|
+
}, [e]), !s || !Object.values(s).some((v) => v && v.post_name))
|
|
2096
2126
|
return null;
|
|
2097
2127
|
const h = Object.keys(s), _ = u !== e;
|
|
2098
|
-
return /* @__PURE__ */ r.jsxs("div", { className: j("language-switcher text-small",
|
|
2128
|
+
return /* @__PURE__ */ r.jsxs("div", { className: j("language-switcher text-small", m, i), children: [
|
|
2099
2129
|
/* @__PURE__ */ r.jsxs("nav", { children: [
|
|
2100
|
-
|
|
2101
|
-
/* @__PURE__ */ r.jsx("ul", { children: h.map((
|
|
2102
|
-
if (!
|
|
2130
|
+
m !== "short" && /* @__PURE__ */ r.jsx("p", { children: a || c.formatMessage({ id: `${Ue}label` }) }),
|
|
2131
|
+
/* @__PURE__ */ r.jsx("ul", { children: h.map((v) => {
|
|
2132
|
+
if (!pt[v])
|
|
2103
2133
|
return null;
|
|
2104
|
-
let g = { className:
|
|
2105
|
-
return u ===
|
|
2134
|
+
let g = { className: v };
|
|
2135
|
+
return u === v ? g["aria-label"] = c.formatMessage({ id: `${Ue}selected` }, { language: pt[v] }) : g = {
|
|
2106
2136
|
...g,
|
|
2107
|
-
href: ms(
|
|
2137
|
+
href: ms(v, l),
|
|
2108
2138
|
onClick: (E) => {
|
|
2109
|
-
E.preventDefault(), E.stopPropagation(), f(
|
|
2139
|
+
E.preventDefault(), E.stopPropagation(), f(v), o(v);
|
|
2110
2140
|
}
|
|
2111
|
-
}, /* @__PURE__ */ r.jsx("li", { children: /* @__PURE__ */ r.jsx(
|
|
2141
|
+
}, /* @__PURE__ */ r.jsx("li", { children: /* @__PURE__ */ r.jsx(nt, { ...g, fallbackElement: "span", children: pt[v] }) }, v);
|
|
2112
2142
|
}) }),
|
|
2113
|
-
|
|
2143
|
+
m !== "short" && !_ && /* @__PURE__ */ r.jsx("p", { children: c.formatMessage({ id: `${Ue}translation_${t ? "original" : n ? "human" : "machine"}` }) })
|
|
2114
2144
|
] }),
|
|
2115
|
-
|
|
2145
|
+
m !== "short" && !_ && !t && !n && /* @__PURE__ */ r.jsx("small", {
|
|
2116
2146
|
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
2117
2147
|
// @ts-ignore
|
|
2118
2148
|
// `values` are throwing a type error: https://github.com/formatjs/formatjs/issues/3633
|
|
2119
2149
|
children: c.formatMessage({ id: `${Ue}disclaimer` }, {
|
|
2120
|
-
email:
|
|
2121
|
-
link: (
|
|
2122
|
-
const g = `mailto:${
|
|
2123
|
-
return /* @__PURE__ */ r.jsx("a", { href: g, children:
|
|
2150
|
+
email: Re.support,
|
|
2151
|
+
link: (v) => {
|
|
2152
|
+
const g = `mailto:${v}`;
|
|
2153
|
+
return /* @__PURE__ */ r.jsx("a", { href: g, children: v });
|
|
2124
2154
|
}
|
|
2125
2155
|
})
|
|
2126
2156
|
})
|
|
2127
2157
|
] });
|
|
2128
2158
|
};
|
|
2129
|
-
const
|
|
2159
|
+
const ht = lr({ locale: "en", messages: Nt }), fs = ({
|
|
2130
2160
|
page: e = 1,
|
|
2131
2161
|
length: t = 0,
|
|
2132
2162
|
limit: n = 10,
|
|
@@ -2134,14 +2164,14 @@ const gt = lr({ locale: "en", messages: Dt }), fs = ({
|
|
|
2134
2164
|
},
|
|
2135
2165
|
icon: o = !1,
|
|
2136
2166
|
messages: l = {
|
|
2137
|
-
button:
|
|
2138
|
-
endOfFeed:
|
|
2139
|
-
error:
|
|
2167
|
+
button: ht.formatMessage({ id: "loadMore_button" }),
|
|
2168
|
+
endOfFeed: ht.formatMessage({ id: "loadMore_endOfFeed" }),
|
|
2169
|
+
error: ht.formatMessage({ id: "loadMore_error" })
|
|
2140
2170
|
},
|
|
2141
|
-
className:
|
|
2171
|
+
className: m = "",
|
|
2142
2172
|
gtmContext: a = "LoadMore"
|
|
2143
2173
|
}) => {
|
|
2144
|
-
const [i, c] =
|
|
2174
|
+
const [i, c] = D(!1), [u, f] = D(!1);
|
|
2145
2175
|
if (t <= 0 || t < n * e)
|
|
2146
2176
|
return null;
|
|
2147
2177
|
const p = async (h) => {
|
|
@@ -2151,7 +2181,7 @@ const gt = lr({ locale: "en", messages: Dt }), fs = ({
|
|
|
2151
2181
|
_ instanceof Error && _.message && _.message.includes("Cannot read items") ? f(!0) : c(!0);
|
|
2152
2182
|
}
|
|
2153
2183
|
};
|
|
2154
|
-
return /* @__PURE__ */ r.jsxs("footer", { className: j("load-more",
|
|
2184
|
+
return /* @__PURE__ */ r.jsxs("footer", { className: j("load-more", m), children: [
|
|
2155
2185
|
i && /* @__PURE__ */ r.jsx("p", { className: "error", children: l.error }),
|
|
2156
2186
|
u ? /* @__PURE__ */ r.jsx("p", { children: l.endOfFeed }) : /* @__PURE__ */ r.jsx(
|
|
2157
2187
|
W,
|
|
@@ -2170,7 +2200,7 @@ const gt = lr({ locale: "en", messages: Dt }), fs = ({
|
|
|
2170
2200
|
};
|
|
2171
2201
|
let We = !1;
|
|
2172
2202
|
const ps = ({ element: e = "div", id: t = "more-menu", options: n, className: s = "" }) => {
|
|
2173
|
-
const o =
|
|
2203
|
+
const o = P(), l = Z(null), [m, a] = D(!1), i = (c) => {
|
|
2174
2204
|
l.current && c.target instanceof HTMLElement && !l.current.contains(c.target) && a(!1);
|
|
2175
2205
|
};
|
|
2176
2206
|
return z(() => (document.addEventListener("click", i, !0), () => {
|
|
@@ -2185,15 +2215,15 @@ const ps = ({ element: e = "div", id: t = "more-menu", options: n, className: s
|
|
|
2185
2215
|
variant: "tertiary",
|
|
2186
2216
|
size: "medium",
|
|
2187
2217
|
icon: { icon: "ellipsis" },
|
|
2188
|
-
onClick: () => a(!
|
|
2218
|
+
onClick: () => a(!m),
|
|
2189
2219
|
"aria-haspopup": "true",
|
|
2190
|
-
"aria-expanded":
|
|
2220
|
+
"aria-expanded": m,
|
|
2191
2221
|
"aria-controls": t,
|
|
2192
2222
|
screenreaderText: o.formatMessage({ id: "moreMenu" })
|
|
2193
2223
|
}
|
|
2194
2224
|
),
|
|
2195
|
-
/* @__PURE__ */ r.jsx("ul", { id: t, hidden: !
|
|
2196
|
-
const
|
|
2225
|
+
/* @__PURE__ */ r.jsx("ul", { id: t, hidden: !m, children: n.map(({ href: c, onClick: u, text: f, icon: p, ...h }, _) => {
|
|
2226
|
+
const v = {
|
|
2197
2227
|
...h,
|
|
2198
2228
|
onClick: (g) => {
|
|
2199
2229
|
a(!1), typeof u == "function" && u(g);
|
|
@@ -2207,13 +2237,13 @@ const ps = ({ element: e = "div", id: t = "more-menu", options: n, className: s
|
|
|
2207
2237
|
}, 100);
|
|
2208
2238
|
}
|
|
2209
2239
|
};
|
|
2210
|
-
return c && (
|
|
2240
|
+
return c && (v.href = c), /* @__PURE__ */ r.jsx("li", { children: /* @__PURE__ */ r.jsx(
|
|
2211
2241
|
W,
|
|
2212
2242
|
{
|
|
2213
2243
|
variant: "tertiary",
|
|
2214
2244
|
size: "medium",
|
|
2215
2245
|
icon: p ? { icon: p, position: "left" } : !1,
|
|
2216
|
-
...
|
|
2246
|
+
...v,
|
|
2217
2247
|
children: f
|
|
2218
2248
|
}
|
|
2219
2249
|
) }, `${window.btoa(f)}_${_}`);
|
|
@@ -2221,32 +2251,32 @@ const ps = ({ element: e = "div", id: t = "more-menu", options: n, className: s
|
|
|
2221
2251
|
] })
|
|
2222
2252
|
});
|
|
2223
2253
|
};
|
|
2224
|
-
const jn = ({ variant: e = "default", version: t = "default", className: n = "", ...s }) => /* @__PURE__ */ r.jsx("p", { className: "logo-wrapper", children: /* @__PURE__ */ r.jsx("a", { href: "/home/", className: j("logo", e, t, n), ...s, children: /* @__PURE__ */ r.jsx(
|
|
2254
|
+
const jn = ({ variant: e = "default", version: t = "default", className: n = "", ...s }) => /* @__PURE__ */ r.jsx("p", { className: "logo-wrapper", children: /* @__PURE__ */ r.jsx("a", { href: "/home/", className: j("logo", e, t, n), ...s, children: /* @__PURE__ */ r.jsx(ne, { children: /* @__PURE__ */ r.jsx(we, { id: "apolitical" }) }) }) });
|
|
2225
2255
|
const hs = {
|
|
2226
2256
|
"2-1": 901
|
|
2227
|
-
},
|
|
2228
|
-
const o =
|
|
2257
|
+
}, xo = ({ layout: e = "2-1", hideOnMobile: t = !1, className: n = "", children: s }) => {
|
|
2258
|
+
const o = et(!0);
|
|
2229
2259
|
let l = s;
|
|
2230
|
-
return A.Children.count(s) === 1 && (l = A.Children.toArray(s)[0], l.props && (l = l.props.children)), /* @__PURE__ */ r.jsx("section", { className: j("columns", `layout-${e}`, n), children: A.Children.map(l, (
|
|
2260
|
+
return A.Children.count(s) === 1 && (l = A.Children.toArray(s)[0], l.props && (l = l.props.children)), /* @__PURE__ */ r.jsx("section", { className: j("columns", `layout-${e}`, n), children: A.Children.map(l, (m, a) => t !== !1 && a === t && o && o < hs[e] ? null : m) });
|
|
2231
2261
|
};
|
|
2232
|
-
const
|
|
2233
|
-
const e =
|
|
2234
|
-
|
|
2262
|
+
const gt = "cookieBanner_", _t = ["apol-cookie-banner", "apolitical-performance-cookie-consent", "functional-cookie-consent"], xt = new Date(Date.now() + 12 * 30 * 24 * 60 * 60 * 1e3), gs = () => {
|
|
2263
|
+
const e = P(), [t, n, s] = mr(_t), [o, l] = D(!t["apol-cookie-banner"]), m = () => {
|
|
2264
|
+
_t.forEach((u) => {
|
|
2235
2265
|
n(u, !0, {
|
|
2236
2266
|
path: "/",
|
|
2237
|
-
expires:
|
|
2267
|
+
expires: xt,
|
|
2238
2268
|
domain: u === "apolitical-performance-cookie-consent" ? ".apolitical.co" : void 0
|
|
2239
2269
|
});
|
|
2240
2270
|
}), l(!1), window.location.reload();
|
|
2241
2271
|
}, a = () => {
|
|
2242
2272
|
n("apol-cookie-banner", !0, {
|
|
2243
2273
|
path: "/",
|
|
2244
|
-
expires:
|
|
2245
|
-
}),
|
|
2274
|
+
expires: xt
|
|
2275
|
+
}), _t.forEach((u) => {
|
|
2246
2276
|
if (u === "apol-cookie-banner") {
|
|
2247
2277
|
n(u, !0, {
|
|
2248
2278
|
path: "/",
|
|
2249
|
-
expires:
|
|
2279
|
+
expires: xt
|
|
2250
2280
|
});
|
|
2251
2281
|
return;
|
|
2252
2282
|
}
|
|
@@ -2258,7 +2288,7 @@ const _t = "cookieBanner_", xt = ["apol-cookie-banner", "apolitical-performance-
|
|
|
2258
2288
|
const i = [
|
|
2259
2289
|
{ id: "settings", href: "/pages/cookie-policy", gtmType: "policy-page" },
|
|
2260
2290
|
{ id: "reject", onClick: a, gtmType: "reject-all" },
|
|
2261
|
-
{ id: "accept", onClick:
|
|
2291
|
+
{ id: "accept", onClick: m, gtmType: "accepted-all" }
|
|
2262
2292
|
], c = [];
|
|
2263
2293
|
return i.forEach((u) => {
|
|
2264
2294
|
c.push({
|
|
@@ -2268,12 +2298,12 @@ const _t = "cookieBanner_", xt = ["apol-cookie-banner", "apolitical-performance-
|
|
|
2268
2298
|
className: "gtm-trackable",
|
|
2269
2299
|
"data-gtm-event-context": "cookie-banner",
|
|
2270
2300
|
"data-gtm-event-type": `cookie-${u.gtmType}-click`,
|
|
2271
|
-
children: e.formatMessage({ id: `${
|
|
2301
|
+
children: e.formatMessage({ id: `${gt}buttons_${u.id}` })
|
|
2272
2302
|
});
|
|
2273
2303
|
}), /* @__PURE__ */ r.jsxs("aside", { id: "cookie-banner", className: "text-medium", children: [
|
|
2274
|
-
/* @__PURE__ */ r.jsx("h6", { children: e.formatMessage({ id: `${
|
|
2275
|
-
/* @__PURE__ */ r.jsx("p", { children: e.formatMessage({ id: `${
|
|
2276
|
-
/* @__PURE__ */ r.jsx(
|
|
2304
|
+
/* @__PURE__ */ r.jsx("h6", { children: e.formatMessage({ id: `${gt}title` }) }),
|
|
2305
|
+
/* @__PURE__ */ r.jsx("p", { children: e.formatMessage({ id: `${gt}text` }) }),
|
|
2306
|
+
/* @__PURE__ */ r.jsx(tt, { buttons: c })
|
|
2277
2307
|
] });
|
|
2278
2308
|
}, ve = {
|
|
2279
2309
|
platform: {
|
|
@@ -2340,11 +2370,11 @@ const _t = "cookieBanner_", xt = ["apol-cookie-banner", "apolitical-performance-
|
|
|
2340
2370
|
text: {
|
|
2341
2371
|
order: ["dataProtection", "euDataProtection"],
|
|
2342
2372
|
dataProtection: {
|
|
2343
|
-
email:
|
|
2373
|
+
email: Re["data-protection"].default,
|
|
2344
2374
|
gtmType: "email-dpo-link"
|
|
2345
2375
|
},
|
|
2346
2376
|
euDataProtection: {
|
|
2347
|
-
email:
|
|
2377
|
+
email: Re["data-protection"].eu,
|
|
2348
2378
|
gtmType: "email-eu-dpo-link"
|
|
2349
2379
|
}
|
|
2350
2380
|
}
|
|
@@ -2356,10 +2386,10 @@ const _t = "cookieBanner_", xt = ["apol-cookie-banner", "apolitical-performance-
|
|
|
2356
2386
|
registered: { address: !0 },
|
|
2357
2387
|
berlin: { address: !0 },
|
|
2358
2388
|
support: {
|
|
2359
|
-
email:
|
|
2389
|
+
email: Re.support,
|
|
2360
2390
|
gtmType: "concierge-email-click"
|
|
2361
2391
|
},
|
|
2362
|
-
business: { email:
|
|
2392
|
+
business: { email: Re.general, gtmType: "hello-email-click" }
|
|
2363
2393
|
}
|
|
2364
2394
|
},
|
|
2365
2395
|
social: {
|
|
@@ -2372,25 +2402,25 @@ const _t = "cookieBanner_", xt = ["apol-cookie-banner", "apolitical-performance-
|
|
|
2372
2402
|
const Me = "footer_", Je = "SiteFooter", on = ({ group: e }) => {
|
|
2373
2403
|
const t = ve[e].order || [];
|
|
2374
2404
|
let n = !1;
|
|
2375
|
-
return "text" in ve[e] && (n = ve[e].text), /* @__PURE__ */ r.jsxs(
|
|
2405
|
+
return "text" in ve[e] && (n = ve[e].text), /* @__PURE__ */ r.jsxs(Zt, { children: [
|
|
2376
2406
|
/* @__PURE__ */ r.jsx("p", { className: "pre-title", children: /* @__PURE__ */ r.jsx(we, { id: `${Me}${e}` }) }),
|
|
2377
2407
|
Array.isArray(t) && t.length > 0 && /* @__PURE__ */ r.jsx("ul", { className: "text-medium", children: t.map((s) => {
|
|
2378
2408
|
if (["order", "child", "text"].includes(s))
|
|
2379
2409
|
return null;
|
|
2380
|
-
const { href: o, gtmType: l } = ve[e][s],
|
|
2381
|
-
return ["legal"].includes(e) && (
|
|
2410
|
+
const { href: o, gtmType: l } = ve[e][s], m = {};
|
|
2411
|
+
return ["legal"].includes(e) && (m.target = "_blank", m.rel = "noopener"), /* @__PURE__ */ r.jsx("li", { children: /* @__PURE__ */ r.jsx(
|
|
2382
2412
|
"a",
|
|
2383
2413
|
{
|
|
2384
2414
|
href: o,
|
|
2385
2415
|
className: "gtm-trackable",
|
|
2386
2416
|
"data-gtm-event-context": Je,
|
|
2387
2417
|
"data-gtm-event-type": l,
|
|
2388
|
-
...
|
|
2418
|
+
...m,
|
|
2389
2419
|
children: /* @__PURE__ */ r.jsx(we, { id: `${Me}${e}_${s}` })
|
|
2390
2420
|
}
|
|
2391
2421
|
) }, `${e}_${s}`);
|
|
2392
2422
|
}) }),
|
|
2393
|
-
typeof n != "boolean" && "order" in n && Array.isArray(n.order) && /* @__PURE__ */ r.jsx("dl", { className: "text-medium", children: n.order.map((s) => /* @__PURE__ */ r.jsxs(
|
|
2423
|
+
typeof n != "boolean" && "order" in n && Array.isArray(n.order) && /* @__PURE__ */ r.jsx("dl", { className: "text-medium", children: n.order.map((s) => /* @__PURE__ */ r.jsxs(Zt, { children: [
|
|
2394
2424
|
/* @__PURE__ */ r.jsx("dt", { children: /* @__PURE__ */ r.jsx(we, { id: `${Me}${e}_${s}` }) }),
|
|
2395
2425
|
/* @__PURE__ */ r.jsxs("dd", { children: [
|
|
2396
2426
|
typeof n != "boolean" && n[s].address && /* @__PURE__ */ r.jsx("address", { children: /* @__PURE__ */ r.jsx(we, { id: `${Me}${e}_${s}_address`, values: { br: /* @__PURE__ */ r.jsx("br", {}) } }) }),
|
|
@@ -2443,12 +2473,12 @@ const Me = "footer_", Je = "SiteFooter", on = ({ group: e }) => {
|
|
|
2443
2473
|
/* @__PURE__ */ r.jsx("small", { children: /* @__PURE__ */ r.jsx(we, { id: `${Me}copyright`, values: { currentYear: (/* @__PURE__ */ new Date()).getFullYear() } }) })
|
|
2444
2474
|
] })
|
|
2445
2475
|
] }) });
|
|
2446
|
-
const ze = "emailHelperTextBox_",
|
|
2447
|
-
const o =
|
|
2476
|
+
const ze = "emailHelperTextBox_", vo = ({ type: e, email: t, redirectPath: n, resendVerificationCode: s }) => {
|
|
2477
|
+
const o = P(), [l, m] = D({ path: `${ze}default`, type: "default", link: {}, mail: {}, error: "" }), [a, i] = D(!1), c = Ee(
|
|
2448
2478
|
(h) => {
|
|
2449
2479
|
h.preventDefault(), h.stopPropagation();
|
|
2450
|
-
const _ = (
|
|
2451
|
-
|
|
2480
|
+
const _ = (v) => {
|
|
2481
|
+
m({
|
|
2452
2482
|
path: `${ze}error_verificationFailedToSend`,
|
|
2453
2483
|
type: "error",
|
|
2454
2484
|
link: {
|
|
@@ -2465,7 +2495,7 @@ const ze = "emailHelperTextBox_", bo = ({ type: e, email: t, redirectPath: n, re
|
|
|
2465
2495
|
"data-gtm-event-context": "ErrorVerifyingBox",
|
|
2466
2496
|
"data-gtm-event-type": "email-concierge-click"
|
|
2467
2497
|
},
|
|
2468
|
-
error:
|
|
2498
|
+
error: v
|
|
2469
2499
|
});
|
|
2470
2500
|
};
|
|
2471
2501
|
if (typeof s != "function") {
|
|
@@ -2474,8 +2504,8 @@ const ze = "emailHelperTextBox_", bo = ({ type: e, email: t, redirectPath: n, re
|
|
|
2474
2504
|
}
|
|
2475
2505
|
i(!0), s(t).then(() => {
|
|
2476
2506
|
localStorage.setItem("email", t), window.location.href = n || "/signup/verify-email";
|
|
2477
|
-
}).catch((
|
|
2478
|
-
_(
|
|
2507
|
+
}).catch((v) => {
|
|
2508
|
+
_(v.message);
|
|
2479
2509
|
}).finally(() => {
|
|
2480
2510
|
i(!1);
|
|
2481
2511
|
});
|
|
@@ -2485,13 +2515,13 @@ const ze = "emailHelperTextBox_", bo = ({ type: e, email: t, redirectPath: n, re
|
|
|
2485
2515
|
);
|
|
2486
2516
|
z(
|
|
2487
2517
|
() => {
|
|
2488
|
-
let h = ze, _ = "default",
|
|
2518
|
+
let h = ze, _ = "default", v = {}, g = {};
|
|
2489
2519
|
switch (e) {
|
|
2490
2520
|
case "gov":
|
|
2491
2521
|
h += "autoApproved", _ = "success";
|
|
2492
2522
|
break;
|
|
2493
2523
|
case "nonGov":
|
|
2494
|
-
h += "unrecognisedEmail", _ = "error",
|
|
2524
|
+
h += "unrecognisedEmail", _ = "error", v = {
|
|
2495
2525
|
href: "https://about.apolitical.co/who-can-join-the-community",
|
|
2496
2526
|
"data-gtm-event-context": "NonGovEmailHelperTextBox",
|
|
2497
2527
|
"data-gtm-event-type": "LearnMoreClick"
|
|
@@ -2506,7 +2536,7 @@ const ze = "emailHelperTextBox_", bo = ({ type: e, email: t, redirectPath: n, re
|
|
|
2506
2536
|
};
|
|
2507
2537
|
break;
|
|
2508
2538
|
case "verify":
|
|
2509
|
-
h += "emailUnverified", _ = "error",
|
|
2539
|
+
h += "emailUnverified", _ = "error", v = {
|
|
2510
2540
|
href: "#",
|
|
2511
2541
|
"data-gtm-event-context": "VerifyEmailBox",
|
|
2512
2542
|
"data-gtm-event-type": "SendEmailClick",
|
|
@@ -2516,7 +2546,7 @@ const ze = "emailHelperTextBox_", bo = ({ type: e, email: t, redirectPath: n, re
|
|
|
2516
2546
|
};
|
|
2517
2547
|
break;
|
|
2518
2548
|
case "exists":
|
|
2519
|
-
h += "emailAlreadyExists", _ = "error",
|
|
2549
|
+
h += "emailAlreadyExists", _ = "error", v = {
|
|
2520
2550
|
href: "/user-onboarding/login",
|
|
2521
2551
|
"data-gtm-event-context": "EmailExistsBox",
|
|
2522
2552
|
"data-gtm-event-type": "login-click"
|
|
@@ -2528,14 +2558,14 @@ const ze = "emailHelperTextBox_", bo = ({ type: e, email: t, redirectPath: n, re
|
|
|
2528
2558
|
};
|
|
2529
2559
|
break;
|
|
2530
2560
|
default:
|
|
2531
|
-
h += "default",
|
|
2561
|
+
h += "default", v = {
|
|
2532
2562
|
href: "https://about.apolitical.co/who-can-join-the-community",
|
|
2533
2563
|
"data-gtm-event-context": "DefaultEmailHelperTextBox",
|
|
2534
2564
|
"data-gtm-event-type": "LearnMoreClick"
|
|
2535
2565
|
};
|
|
2536
2566
|
break;
|
|
2537
2567
|
}
|
|
2538
|
-
|
|
2568
|
+
m({ ...l, path: h, type: _, link: v, mail: g });
|
|
2539
2569
|
},
|
|
2540
2570
|
/* eslint-disable react-hooks/exhaustive-deps */
|
|
2541
2571
|
[e]
|
|
@@ -2570,45 +2600,45 @@ const Ve = "passwordRules_", Sn = "isMoreThanEightCharacters", $n = "includesNum
|
|
|
2570
2600
|
[$n]: "numberSymbol",
|
|
2571
2601
|
[Tn]: "lowercaseUppercase"
|
|
2572
2602
|
}, xs = ({ matchingRules: e = { isMoreThanEightCharacters: !1, includesNumberAndSymbol: !1, includesLowerAndUppercase: !1 }, className: t = "" }) => {
|
|
2573
|
-
const n =
|
|
2603
|
+
const n = P();
|
|
2574
2604
|
return /* @__PURE__ */ r.jsxs("aside", { className: j("password-rules", t), children: [
|
|
2575
2605
|
/* @__PURE__ */ r.jsx("small", { children: n.formatMessage({ id: `${Ve}intro` }) }),
|
|
2576
2606
|
/* @__PURE__ */ r.jsx("ul", { children: [Sn, $n, Tn].map((s) => /* @__PURE__ */ r.jsxs("li", { className: j({ matches: e[s] }), children: [
|
|
2577
|
-
/* @__PURE__ */ r.jsxs(
|
|
2607
|
+
/* @__PURE__ */ r.jsxs(ne, { children: [
|
|
2578
2608
|
n.formatMessage({ id: `${Ve}rule_label` }),
|
|
2579
2609
|
" "
|
|
2580
2610
|
] }),
|
|
2581
2611
|
/* @__PURE__ */ r.jsx("span", { children: n.formatMessage({ id: `${Ve}rule_${_s[s]}` }) }),
|
|
2582
|
-
!e[s] && /* @__PURE__ */ r.jsxs(
|
|
2612
|
+
!e[s] && /* @__PURE__ */ r.jsxs(ne, { element: "strong", children: [
|
|
2583
2613
|
" ",
|
|
2584
2614
|
" ",
|
|
2585
2615
|
n.formatMessage({ id: `${Ve}notMet` })
|
|
2586
2616
|
] })
|
|
2587
2617
|
] }, `rule-${s}`)) })
|
|
2588
2618
|
] });
|
|
2589
|
-
},
|
|
2590
|
-
const
|
|
2619
|
+
}, bo = Ae(xs);
|
|
2620
|
+
const wo = ({
|
|
2591
2621
|
text: e = {},
|
|
2592
2622
|
topRating: t = 5,
|
|
2593
2623
|
functions: { createRating: n = () => null, updateRating: s = () => {
|
|
2594
2624
|
}, reportError: o = () => {
|
|
2595
2625
|
} },
|
|
2596
2626
|
className: l = "",
|
|
2597
|
-
hasLoaded:
|
|
2627
|
+
hasLoaded: m = !1
|
|
2598
2628
|
}) => {
|
|
2599
|
-
const a =
|
|
2629
|
+
const a = P(), [i, c] = D({ setUp: !1, id: null, rating: null, disabled: !0 }), u = async () => {
|
|
2600
2630
|
try {
|
|
2601
2631
|
const E = await n();
|
|
2602
|
-
c((
|
|
2632
|
+
c((x) => ({ ...x, setUp: !0, id: E && E.id, disabled: !1 }));
|
|
2603
2633
|
} catch (E) {
|
|
2604
|
-
c((
|
|
2634
|
+
c((x) => ({ ...x, setUp: !0, disabled: !0 })), o(E);
|
|
2605
2635
|
}
|
|
2606
2636
|
};
|
|
2607
2637
|
if (z(() => {
|
|
2608
|
-
|
|
2609
|
-
}, [
|
|
2638
|
+
m && !i.setUp && u();
|
|
2639
|
+
}, [m]), !m)
|
|
2610
2640
|
return /* @__PURE__ */ r.jsx(be, { className: "rating-placeholder" });
|
|
2611
|
-
const { id: f, rating: p, disabled: h } = i, _ = "ratings_",
|
|
2641
|
+
const { id: f, rating: p, disabled: h } = i, _ = "ratings_", v = {
|
|
2612
2642
|
text: a.formatMessage({ id: `${_}text` }),
|
|
2613
2643
|
low: a.formatMessage({ id: `${_}low` }),
|
|
2614
2644
|
high: a.formatMessage({ id: `${_}high` }),
|
|
@@ -2617,33 +2647,33 @@ const ko = ({
|
|
|
2617
2647
|
}, g = async (E) => {
|
|
2618
2648
|
if (!(!f || h))
|
|
2619
2649
|
try {
|
|
2620
|
-
c((
|
|
2621
|
-
} catch (
|
|
2622
|
-
c((
|
|
2650
|
+
c((x) => ({ ...x, rating: E, disabled: !0 })), await s({ id: f, value: E });
|
|
2651
|
+
} catch (x) {
|
|
2652
|
+
c(($) => ({ ...$, rating: null })), o(x);
|
|
2623
2653
|
} finally {
|
|
2624
|
-
c((
|
|
2654
|
+
c((x) => ({ ...x, disabled: !1 }));
|
|
2625
2655
|
}
|
|
2626
2656
|
};
|
|
2627
2657
|
return /* @__PURE__ */ r.jsxs("div", { className: j("rating", l), children: [
|
|
2628
|
-
/* @__PURE__ */ r.jsx("span", { className: "label", children:
|
|
2658
|
+
/* @__PURE__ */ r.jsx("span", { className: "label", children: v[p ? "success" : "text"] }),
|
|
2629
2659
|
/* @__PURE__ */ r.jsx("ol", { children: Array.from(new Array(t).keys()).map((E) => {
|
|
2630
|
-
const
|
|
2631
|
-
return /* @__PURE__ */ r.jsx("li", { className: j({ selected: p &&
|
|
2660
|
+
const x = E + 1;
|
|
2661
|
+
return /* @__PURE__ */ r.jsx("li", { className: j({ selected: p && x <= p }), children: /* @__PURE__ */ r.jsx(
|
|
2632
2662
|
W,
|
|
2633
2663
|
{
|
|
2634
2664
|
variant: "tertiary",
|
|
2635
2665
|
size: "small",
|
|
2636
|
-
icon: { icon: `star${!p ||
|
|
2666
|
+
icon: { icon: `star${!p || x > p ? "_empty" : ""}`, position: "left", hover: "star" },
|
|
2637
2667
|
screenreaderText: `${a.formatMessage(
|
|
2638
2668
|
{ id: `${_}stars` },
|
|
2639
|
-
{ number:
|
|
2640
|
-
)}${
|
|
2641
|
-
onClick: (
|
|
2642
|
-
|
|
2669
|
+
{ number: x, total: t }
|
|
2670
|
+
)}${x === 1 || x === t ? ` - ${v[x === 1 ? "low" : "high"]}` : ""}`,
|
|
2671
|
+
onClick: ($) => {
|
|
2672
|
+
$.preventDefault(), $.stopPropagation(), g(x);
|
|
2643
2673
|
},
|
|
2644
2674
|
disabled: h
|
|
2645
2675
|
}
|
|
2646
|
-
) }, `rating-${
|
|
2676
|
+
) }, `rating-${x}`);
|
|
2647
2677
|
}) })
|
|
2648
2678
|
] });
|
|
2649
2679
|
};
|
|
@@ -2655,10 +2685,10 @@ const vs = ({
|
|
|
2655
2685
|
gtmContext: o = "search-bar",
|
|
2656
2686
|
gtmEvent: l = "form-submission"
|
|
2657
2687
|
}) => {
|
|
2658
|
-
const { searchIsOpen:
|
|
2688
|
+
const { searchIsOpen: m = !0, isDesktopVersion: a = !1 } = n || {}, i = P(), c = Z(null);
|
|
2659
2689
|
Ce(() => {
|
|
2660
|
-
!n || a || !
|
|
2661
|
-
}, [
|
|
2690
|
+
!n || a || !m || c.current && c.current.focus();
|
|
2691
|
+
}, [m]);
|
|
2662
2692
|
const u = (f) => {
|
|
2663
2693
|
f.preventDefault(), f.stopPropagation(), !(!c.current || !c.current.value || c.current.value.length < 1) && (window.location.href = `/search?search=${encodeURIComponent(c.current.value)}`);
|
|
2664
2694
|
};
|
|
@@ -2669,8 +2699,8 @@ const vs = ({
|
|
|
2669
2699
|
className: j("search-form gtm-trackable", t),
|
|
2670
2700
|
"data-gtm-event-context": o,
|
|
2671
2701
|
"data-gtm-event-type": l,
|
|
2672
|
-
children: /* @__PURE__ */ r.jsx("fieldset", { id: `${e}-form`, hidden: n ? !
|
|
2673
|
-
/* @__PURE__ */ r.jsx(
|
|
2702
|
+
children: /* @__PURE__ */ r.jsx("fieldset", { id: `${e}-form`, hidden: n ? !m : !1, role: "search", children: /* @__PURE__ */ r.jsxs("p", { children: [
|
|
2703
|
+
/* @__PURE__ */ r.jsx(ne, { element: "label", htmlFor: e, children: i.formatMessage({ id: "search_label" }) }),
|
|
2674
2704
|
/* @__PURE__ */ r.jsx(
|
|
2675
2705
|
"input",
|
|
2676
2706
|
{
|
|
@@ -2692,10 +2722,10 @@ const vs = ({
|
|
|
2692
2722
|
onClick: (f) => {
|
|
2693
2723
|
f.preventDefault(), f.stopPropagation(), c.current && c.current.value && (c.current.value = "");
|
|
2694
2724
|
},
|
|
2695
|
-
children: /* @__PURE__ */ r.jsx(
|
|
2725
|
+
children: /* @__PURE__ */ r.jsx(ne, { children: i.formatMessage({ id: "search_clear" }) })
|
|
2696
2726
|
}
|
|
2697
2727
|
),
|
|
2698
|
-
/* @__PURE__ */ r.jsx("button", { className: "search", onClick: u, children: /* @__PURE__ */ r.jsx(
|
|
2728
|
+
/* @__PURE__ */ r.jsx("button", { className: "search", onClick: u, children: /* @__PURE__ */ r.jsx(ne, { children: i.formatMessage({ id: "search_cta" }) }) })
|
|
2699
2729
|
] }) })
|
|
2700
2730
|
}
|
|
2701
2731
|
);
|
|
@@ -2707,32 +2737,32 @@ const bs = ({
|
|
|
2707
2737
|
titleColor: s,
|
|
2708
2738
|
labelColor: o,
|
|
2709
2739
|
backgroundColor: l,
|
|
2710
|
-
onClose:
|
|
2740
|
+
onClose: m,
|
|
2711
2741
|
reportError: a,
|
|
2712
2742
|
sendInvites: i,
|
|
2713
2743
|
initialFormStatus: c = "NOT_SUBMITTED"
|
|
2714
2744
|
/* NOT_SUBMITTED */
|
|
2715
2745
|
}) => {
|
|
2716
|
-
const [u, f] =
|
|
2746
|
+
const [u, f] = D([]), [p, h] = D(!0), [_, v] = D(c), { formatMessage: g } = P(), E = async (T) => {
|
|
2717
2747
|
T.preventDefault();
|
|
2718
2748
|
try {
|
|
2719
|
-
await i(u), f([]),
|
|
2749
|
+
await i(u), f([]), v(
|
|
2720
2750
|
"SUCCESS"
|
|
2721
2751
|
/* SUCCESS */
|
|
2722
2752
|
);
|
|
2723
2753
|
} catch (M) {
|
|
2724
|
-
|
|
2754
|
+
v(
|
|
2725
2755
|
"ERROR"
|
|
2726
2756
|
/* ERROR */
|
|
2727
2757
|
), a(M);
|
|
2728
2758
|
}
|
|
2729
|
-
},
|
|
2730
|
-
T.preventDefault(),
|
|
2759
|
+
}, x = (T) => {
|
|
2760
|
+
T.preventDefault(), v(
|
|
2731
2761
|
"NOT_SUBMITTED"
|
|
2732
2762
|
/* NOT_SUBMITTED */
|
|
2733
2763
|
), h(!0), f([]);
|
|
2734
|
-
},
|
|
2735
|
-
T.preventDefault(),
|
|
2764
|
+
}, $ = (T) => {
|
|
2765
|
+
T.preventDefault(), m(), v(
|
|
2736
2766
|
"CLOSED"
|
|
2737
2767
|
/* CLOSED */
|
|
2738
2768
|
);
|
|
@@ -2742,11 +2772,11 @@ const bs = ({
|
|
|
2742
2772
|
" ",
|
|
2743
2773
|
g({ id: "inviteForm_error" })
|
|
2744
2774
|
] }) }),
|
|
2745
|
-
/* @__PURE__ */ r.jsx(
|
|
2775
|
+
/* @__PURE__ */ r.jsx(Le, {}),
|
|
2746
2776
|
/* @__PURE__ */ r.jsx("div", { className: "footer", children: _ === "SUCCESS" ? /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
|
|
2747
|
-
/* @__PURE__ */ r.jsx(W, { variant: "secondary", onClick:
|
|
2748
|
-
/* @__PURE__ */ r.jsx(W, { onClick:
|
|
2749
|
-
] }) : /* @__PURE__ */ r.jsx(W, { onClick:
|
|
2777
|
+
/* @__PURE__ */ r.jsx(W, { variant: "secondary", onClick: x, children: g({ id: "inviteForm_ctaSendMoreInvites" }) }),
|
|
2778
|
+
/* @__PURE__ */ r.jsx(W, { onClick: $, children: g({ id: "inviteForm_ctaDone" }) })
|
|
2779
|
+
] }) : /* @__PURE__ */ r.jsx(W, { onClick: x, children: g({ id: "inviteForm_ctaTryAgain" }) }) })
|
|
2750
2780
|
] }) : /* @__PURE__ */ r.jsxs(
|
|
2751
2781
|
"form",
|
|
2752
2782
|
{
|
|
@@ -2787,7 +2817,7 @@ const bs = ({
|
|
|
2787
2817
|
}
|
|
2788
2818
|
)
|
|
2789
2819
|
] }),
|
|
2790
|
-
/* @__PURE__ */ r.jsx(
|
|
2820
|
+
/* @__PURE__ */ r.jsx(Le, {}),
|
|
2791
2821
|
/* @__PURE__ */ r.jsx("fieldset", { className: "footer", children: /* @__PURE__ */ r.jsx(W, { className: "sendEmailsButton", disabled: p, children: n }) })
|
|
2792
2822
|
]
|
|
2793
2823
|
}
|
|
@@ -2800,8 +2830,8 @@ const bs = ({
|
|
|
2800
2830
|
navigation: { loggedIn: 769, loggedOut: 881 },
|
|
2801
2831
|
search: { loggedIn: 961, loggedOut: 1121 }
|
|
2802
2832
|
}, s = (l) => {
|
|
2803
|
-
const
|
|
2804
|
-
return t >= n[l][
|
|
2833
|
+
const m = `logged${e ? "In" : "Out"}`;
|
|
2834
|
+
return t >= n[l][m];
|
|
2805
2835
|
};
|
|
2806
2836
|
let o = {};
|
|
2807
2837
|
return ["navigation", "search"].forEach((l) => {
|
|
@@ -2819,8 +2849,8 @@ const bs = ({
|
|
|
2819
2849
|
return;
|
|
2820
2850
|
I.handlerCalled[e] = o;
|
|
2821
2851
|
let l = [{ type: `menus.${e}`, value: t }];
|
|
2822
|
-
t === !0 && Object.keys(n).forEach((
|
|
2823
|
-
|
|
2852
|
+
t === !0 && Object.keys(n).forEach((m) => {
|
|
2853
|
+
m === e || n[m] === !1 || l.push({ type: `menus.${m}`, value: !1 });
|
|
2824
2854
|
}), s(l);
|
|
2825
2855
|
},
|
|
2826
2856
|
// Find the first child inside a ref that matches the `key` (and optional `value`) we're looking for,
|
|
@@ -2852,7 +2882,7 @@ const bs = ({
|
|
|
2852
2882
|
s[e][l].focus();
|
|
2853
2883
|
return;
|
|
2854
2884
|
}
|
|
2855
|
-
let
|
|
2885
|
+
let m, a;
|
|
2856
2886
|
switch (e) {
|
|
2857
2887
|
case "navigation":
|
|
2858
2888
|
if (n) {
|
|
@@ -2861,20 +2891,20 @@ const bs = ({
|
|
|
2861
2891
|
"attributes.aria-controls",
|
|
2862
2892
|
"navigation"
|
|
2863
2893
|
);
|
|
2864
|
-
|
|
2894
|
+
m = I.findFirstChild(i.children, "href");
|
|
2865
2895
|
} else
|
|
2866
|
-
|
|
2867
|
-
|
|
2896
|
+
m = I.findFirstChild(t.current.children, "href");
|
|
2897
|
+
m || (m = t.current);
|
|
2868
2898
|
break;
|
|
2869
2899
|
case "account":
|
|
2870
2900
|
if (a = I.findFirstChild(t.current.children, "className", "account"), !a || !a.children)
|
|
2871
2901
|
return;
|
|
2872
|
-
|
|
2902
|
+
m = I.findFirstChild(a.children, "href");
|
|
2873
2903
|
break;
|
|
2874
2904
|
default:
|
|
2875
2905
|
return;
|
|
2876
2906
|
}
|
|
2877
|
-
|
|
2907
|
+
m && (o([{ type: `focusElements.${e}.${l}`, value: m }]), m.focus());
|
|
2878
2908
|
},
|
|
2879
2909
|
events: {
|
|
2880
2910
|
onClick: (e, { id: t, callback: n, isOpen: s }) => {
|
|
@@ -2977,7 +3007,7 @@ const bs = ({
|
|
|
2977
3007
|
},
|
|
2978
3008
|
doTrack: l = null
|
|
2979
3009
|
}) => {
|
|
2980
|
-
const
|
|
3010
|
+
const m = P(), a = un(Xe, e);
|
|
2981
3011
|
if (!a || a.onlyShow && (a.onlyShow === "logged-in" && !t || a.onlyShow === "logged-out" && t))
|
|
2982
3012
|
return null;
|
|
2983
3013
|
const i = "doTrack" in a, c = l === null ? i ? a.doTrack : !0 : l, u = e.includes("buttons.");
|
|
@@ -2985,10 +3015,10 @@ const bs = ({
|
|
|
2985
3015
|
a.hasVariantText && (f += `_logged${t ? "In" : "Out"}`);
|
|
2986
3016
|
let p = !1;
|
|
2987
3017
|
if (a.href) {
|
|
2988
|
-
let
|
|
2989
|
-
if (
|
|
2990
|
-
const
|
|
2991
|
-
|
|
3018
|
+
let x = a.gtmType || `${e}-click`;
|
|
3019
|
+
if (x.includes(".")) {
|
|
3020
|
+
const $ = x.split("."), T = $[$.length - 2];
|
|
3021
|
+
x = `${T === "topics" ? `${T}-` : ""}${$[$.length - 1]}`;
|
|
2992
3022
|
}
|
|
2993
3023
|
p = {
|
|
2994
3024
|
href: a.href,
|
|
@@ -2996,7 +3026,7 @@ const bs = ({
|
|
|
2996
3026
|
}, c && (p = {
|
|
2997
3027
|
...p,
|
|
2998
3028
|
className: "gtm-trackable",
|
|
2999
|
-
"data-gtm-event-type":
|
|
3029
|
+
"data-gtm-event-type": x,
|
|
3000
3030
|
"data-gtm-event-context": "HeaderButtons"
|
|
3001
3031
|
}), u && (p = {
|
|
3002
3032
|
...p,
|
|
@@ -3005,55 +3035,55 @@ const bs = ({
|
|
|
3005
3035
|
...a.props || {}
|
|
3006
3036
|
});
|
|
3007
3037
|
}
|
|
3008
|
-
const h = a.order && a.order[0] && a[a.order[0]], _ = h && a[a.order[0]].order,
|
|
3038
|
+
const h = a.order && a.order[0] && a[a.order[0]], _ = h && a[a.order[0]].order, v = p && window.location.pathname === a.href;
|
|
3009
3039
|
let g = {}, E = {};
|
|
3010
3040
|
if (h) {
|
|
3011
|
-
const
|
|
3012
|
-
onClick: (T) => I.events.onClick(T, { id:
|
|
3013
|
-
onFocus: () => I.events.onFocus({ id:
|
|
3014
|
-
onBlur: () => I.events.onBlur({ id:
|
|
3015
|
-
onMouseLeave: () => I.events.onBlur({ id:
|
|
3016
|
-
onMouseEnter: () => I.events.onMouseEnter({ id:
|
|
3041
|
+
const x = a.menuId || e, $ = {
|
|
3042
|
+
onClick: (T) => I.events.onClick(T, { id: x, callback: o, isOpen: s[x] }),
|
|
3043
|
+
onFocus: () => I.events.onFocus({ id: x }),
|
|
3044
|
+
onBlur: () => I.events.onBlur({ id: x, callback: o }),
|
|
3045
|
+
onMouseLeave: () => I.events.onBlur({ id: x, callback: o }),
|
|
3046
|
+
onMouseEnter: () => I.events.onMouseEnter({ id: x, callback: o })
|
|
3017
3047
|
};
|
|
3018
3048
|
n && (_ && (g = {
|
|
3019
|
-
|
|
3049
|
+
...$,
|
|
3020
3050
|
onKeyPress: (T) => {
|
|
3021
|
-
T.key === "Enter" && I.events.onClick(T, { id:
|
|
3051
|
+
T.key === "Enter" && I.events.onClick(T, { id: x, callback: o, isOpen: s[x] });
|
|
3022
3052
|
},
|
|
3023
3053
|
tabIndex: "0",
|
|
3024
3054
|
// Add a `tabIndex` so keyboard users can focus on the `li`
|
|
3025
3055
|
"aria-haspopup": !0,
|
|
3026
|
-
"aria-expanded": s[
|
|
3027
|
-
"aria-controls":
|
|
3028
|
-
}), E = { hidden:
|
|
3056
|
+
"aria-expanded": s[x],
|
|
3057
|
+
"aria-controls": x
|
|
3058
|
+
}), E = { hidden: x in s ? !s[x] : !0 }), _ || (E = {
|
|
3029
3059
|
...E,
|
|
3030
|
-
|
|
3060
|
+
...$
|
|
3031
3061
|
});
|
|
3032
3062
|
}
|
|
3033
|
-
return /* @__PURE__ */ r.jsxs("li", { className: j({ [a.className]: a.className, "has-submenu": h, parent: _, active:
|
|
3034
|
-
p ? A.createElement(u ? W : "a", p,
|
|
3035
|
-
a.order && /* @__PURE__ */ r.jsx("ul", { ...E, children: a.order.map((
|
|
3036
|
-
if (!a[
|
|
3063
|
+
return /* @__PURE__ */ r.jsxs("li", { className: j({ [a.className]: a.className, "has-submenu": h, parent: _, active: v }), role: "none", ...g, children: [
|
|
3064
|
+
p ? A.createElement(u ? W : "a", p, m.formatMessage({ id: f })) : m.formatMessage({ id: f }),
|
|
3065
|
+
a.order && /* @__PURE__ */ r.jsx("ul", { ...E, children: a.order.map((x) => {
|
|
3066
|
+
if (!a[x])
|
|
3037
3067
|
return null;
|
|
3038
|
-
const
|
|
3068
|
+
const $ = {
|
|
3039
3069
|
isLoggedIn: t,
|
|
3040
3070
|
isDesktopVersion: n,
|
|
3041
3071
|
menus: s,
|
|
3042
3072
|
callback: o,
|
|
3043
3073
|
doTrack: i ? c : null
|
|
3044
3074
|
};
|
|
3045
|
-
return a[
|
|
3046
|
-
|
|
3047
|
-
/* @__PURE__ */ r.jsx("ul", { children: a[
|
|
3048
|
-
] },
|
|
3075
|
+
return a[x].order ? /* @__PURE__ */ r.jsxs("li", { className: j({ [a[x].className]: a[x].className }), children: [
|
|
3076
|
+
m.formatMessage({ id: `${f}_${x}` }),
|
|
3077
|
+
/* @__PURE__ */ r.jsx("ul", { children: a[x].order.map((T) => /* @__PURE__ */ r.jsx(Ze, { id: `${e}.${x}.${T}`, ...$ }, T)) })
|
|
3078
|
+
] }, x) : /* @__PURE__ */ r.jsx(Ze, { id: `${e}.${x}`, ...$ }, x);
|
|
3049
3079
|
}) })
|
|
3050
3080
|
] }, e);
|
|
3051
3081
|
};
|
|
3052
3082
|
const ws = { height: 67, height_desktop: 83 }, Mn = () => {
|
|
3053
|
-
const e =
|
|
3083
|
+
const e = P(), t = ye(je), n = et(!0, !0), s = t && typeof t.id == "string", o = qe(
|
|
3054
3084
|
() => I.getIsDesktopVersion(s, n),
|
|
3055
3085
|
[s, n]
|
|
3056
|
-
), [l,
|
|
3086
|
+
), [l, m] = rr($r, {
|
|
3057
3087
|
headerIsVisible: !0,
|
|
3058
3088
|
menus: { navigation: !1, search: !1, account: !1 },
|
|
3059
3089
|
focusElements: {
|
|
@@ -3065,23 +3095,23 @@ const ws = { height: 67, height_desktop: 83 }, Mn = () => {
|
|
|
3065
3095
|
scrollPosition: ws[`height${o.navigation ? "_desktop" : ""}`],
|
|
3066
3096
|
callbacks: {
|
|
3067
3097
|
scrollUp: () => {
|
|
3068
|
-
!o && i.navigation || I.shouldChangeHeaderIsVisible(!0, i,
|
|
3098
|
+
!o && i.navigation || I.shouldChangeHeaderIsVisible(!0, i, m);
|
|
3069
3099
|
},
|
|
3070
3100
|
scrollDown: () => {
|
|
3071
|
-
!o && i.navigation || I.shouldChangeHeaderIsVisible(!1, i,
|
|
3101
|
+
!o && i.navigation || I.shouldChangeHeaderIsVisible(!1, i, m);
|
|
3072
3102
|
}
|
|
3073
3103
|
}
|
|
3074
3104
|
});
|
|
3075
3105
|
const u = (p, h) => {
|
|
3076
|
-
I.handleMenus({ id: p, value: h, menus: i, dispatch:
|
|
3077
|
-
}, f =
|
|
3106
|
+
I.handleMenus({ id: p, value: h, menus: i, dispatch: m });
|
|
3107
|
+
}, f = Z(null);
|
|
3078
3108
|
return Ce(() => {
|
|
3079
3109
|
i.navigation && I.autoFocus({
|
|
3080
3110
|
menu: "navigation",
|
|
3081
3111
|
navigationRef: f,
|
|
3082
3112
|
isDesktopVersion: o.navigation,
|
|
3083
3113
|
focusElements: c,
|
|
3084
|
-
dispatch:
|
|
3114
|
+
dispatch: m
|
|
3085
3115
|
});
|
|
3086
3116
|
}, [i.navigation]), Ce(() => {
|
|
3087
3117
|
i.account && I.autoFocus({
|
|
@@ -3089,11 +3119,11 @@ const ws = { height: 67, height_desktop: 83 }, Mn = () => {
|
|
|
3089
3119
|
navigationRef: f,
|
|
3090
3120
|
isDesktopVersion: o.navigation,
|
|
3091
3121
|
focusElements: c,
|
|
3092
|
-
dispatch:
|
|
3122
|
+
dispatch: m
|
|
3093
3123
|
});
|
|
3094
3124
|
}, [i.account]), t && t.isLoading ? null : /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
|
|
3095
3125
|
/* @__PURE__ */ r.jsxs("nav", { id: "header", className: j({ "logged-in": s, "logged-out": !s, visible: a }), children: [
|
|
3096
|
-
/* @__PURE__ */ r.jsx(
|
|
3126
|
+
/* @__PURE__ */ r.jsx(ne, { element: "a", href: "#content-of-page", children: e.formatMessage({ id: "header_skip" }) }),
|
|
3097
3127
|
/* @__PURE__ */ r.jsx(jn, {}),
|
|
3098
3128
|
!o.navigation && /* @__PURE__ */ r.jsx(
|
|
3099
3129
|
"button",
|
|
@@ -3107,7 +3137,7 @@ const ws = { height: 67, height_desktop: 83 }, Mn = () => {
|
|
|
3107
3137
|
"aria-haspopup": "true",
|
|
3108
3138
|
"aria-expanded": i.navigation,
|
|
3109
3139
|
"aria-controls": "navigation",
|
|
3110
|
-
children: /* @__PURE__ */ r.jsx(
|
|
3140
|
+
children: /* @__PURE__ */ r.jsx(ne, { children: e.formatMessage({ id: `header_menu_${i.navigation ? "hide" : "show"}` }) })
|
|
3111
3141
|
}
|
|
3112
3142
|
),
|
|
3113
3143
|
/* @__PURE__ */ r.jsx(
|
|
@@ -3141,7 +3171,7 @@ const ws = { height: 67, height_desktop: 83 }, Mn = () => {
|
|
|
3141
3171
|
"aria-haspopup": "true",
|
|
3142
3172
|
"aria-expanded": i.search,
|
|
3143
3173
|
"aria-controls": "search-form",
|
|
3144
|
-
children: /* @__PURE__ */ r.jsx(
|
|
3174
|
+
children: /* @__PURE__ */ r.jsx(ne, { children: e.formatMessage({ id: `header_search_${i.search ? "hide" : "show"}` }) })
|
|
3145
3175
|
}
|
|
3146
3176
|
),
|
|
3147
3177
|
/* @__PURE__ */ r.jsx(
|
|
@@ -3164,8 +3194,8 @@ const ws = { height: 67, height_desktop: 83 }, Mn = () => {
|
|
|
3164
3194
|
"aria-expanded": i.account,
|
|
3165
3195
|
"aria-controls": "navigation",
|
|
3166
3196
|
children: [
|
|
3167
|
-
/* @__PURE__ */ r.jsx(
|
|
3168
|
-
/* @__PURE__ */ r.jsx(
|
|
3197
|
+
/* @__PURE__ */ r.jsx(ne, { children: e.formatMessage({ id: `header_account_${i.account ? "hide" : "show"}` }) }),
|
|
3198
|
+
/* @__PURE__ */ r.jsx(Dt, { name: t && t.name || "", src: t && t.image && t.image.thumbnail || "" })
|
|
3169
3199
|
]
|
|
3170
3200
|
}
|
|
3171
3201
|
) : /* @__PURE__ */ r.jsx("ul", { className: "sign-in-buttons", children: Xe.buttons.order.map((p) => /* @__PURE__ */ r.jsx(Ze, { id: `buttons.${p}` }, p)) })
|
|
@@ -3180,28 +3210,28 @@ const ws = { height: 67, height_desktop: 83 }, Mn = () => {
|
|
|
3180
3210
|
] });
|
|
3181
3211
|
};
|
|
3182
3212
|
const ks = () => {
|
|
3183
|
-
const e =
|
|
3213
|
+
const e = P();
|
|
3184
3214
|
return /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
|
|
3185
3215
|
/* @__PURE__ */ r.jsx(Mn, {}),
|
|
3186
|
-
/* @__PURE__ */ r.jsx("div", {
|
|
3216
|
+
/* @__PURE__ */ r.jsx("div", { id: "content", children: /* @__PURE__ */ r.jsx(rt, { variant: "error", text: e.formatMessage({ id: "pageLayout_error" }) }) }),
|
|
3187
3217
|
/* @__PURE__ */ r.jsx(En, {})
|
|
3188
3218
|
] });
|
|
3189
|
-
},
|
|
3190
|
-
const
|
|
3219
|
+
}, ko = ({ children: e, reportError: t, showFooter: n = !0, background: s = "default", className: o = "", locale: l = "en" }) => {
|
|
3220
|
+
const m = jr();
|
|
3191
3221
|
z(() => {
|
|
3192
3222
|
window.scrollTo(0, 0);
|
|
3193
|
-
}, [
|
|
3223
|
+
}, [m]);
|
|
3194
3224
|
const a = gn(e, { locale: l });
|
|
3195
3225
|
return /* @__PURE__ */ r.jsx(hr, { onError: t, fallback: /* @__PURE__ */ r.jsx(ks, {}), children: /* @__PURE__ */ r.jsx(sr, { fallback: /* @__PURE__ */ r.jsx(ns, { layout: "overview-page" }), children: /* @__PURE__ */ r.jsx("div", { id: "wrapper", className: j(o, { [s]: s !== "default" }), children: /* @__PURE__ */ r.jsxs(fr, { children: [
|
|
3196
3226
|
/* @__PURE__ */ r.jsx(Mn, {}),
|
|
3197
|
-
/* @__PURE__ */ r.jsx("div", {
|
|
3227
|
+
/* @__PURE__ */ r.jsx("div", { id: "content", children: a }),
|
|
3198
3228
|
n && /* @__PURE__ */ r.jsx(En, {}),
|
|
3199
3229
|
/* @__PURE__ */ r.jsx(gs, {})
|
|
3200
3230
|
] }) }) }) });
|
|
3201
3231
|
}, an = {
|
|
3202
3232
|
default: "tags_",
|
|
3203
3233
|
headerTopics: "header_topics_topics_"
|
|
3204
|
-
},
|
|
3234
|
+
}, vt = {
|
|
3205
3235
|
topic: {
|
|
3206
3236
|
Climate: "climate",
|
|
3207
3237
|
CitiesAndLocalGovernment: "cities-and-local-government",
|
|
@@ -3220,25 +3250,25 @@ const ks = () => {
|
|
|
3220
3250
|
}, ys = {
|
|
3221
3251
|
getTagDetails: (e) => {
|
|
3222
3252
|
if (e.includes("topic_")) {
|
|
3223
|
-
if (e =
|
|
3253
|
+
if (e = vt.topic[e.replace("topic_", "")], e) {
|
|
3224
3254
|
const t = Xe.topics.topics[e].href;
|
|
3225
3255
|
return t ? { id: e, href: t, text: `${an.headerTopics}${e}` } : null;
|
|
3226
3256
|
}
|
|
3227
3257
|
return null;
|
|
3228
3258
|
}
|
|
3229
|
-
return
|
|
3259
|
+
return vt[e] ? (e = vt[e], { id: e, text: `${an.default}${e}` }) : null;
|
|
3230
3260
|
}
|
|
3231
3261
|
};
|
|
3232
|
-
const
|
|
3262
|
+
const yo = ({
|
|
3233
3263
|
tags: e = [],
|
|
3234
3264
|
color: t = "default",
|
|
3235
3265
|
forceOneLine: n = !1,
|
|
3236
3266
|
canHaveLinks: s = !0,
|
|
3237
3267
|
className: o = "",
|
|
3238
3268
|
gtmType: l = "tag-click",
|
|
3239
|
-
gtmContext:
|
|
3269
|
+
gtmContext: m = "tags"
|
|
3240
3270
|
}) => {
|
|
3241
|
-
const a =
|
|
3271
|
+
const a = P();
|
|
3242
3272
|
if (!e || e.length < 1)
|
|
3243
3273
|
return null;
|
|
3244
3274
|
const i = [];
|
|
@@ -3255,28 +3285,28 @@ const jo = ({
|
|
|
3255
3285
|
href: c.href,
|
|
3256
3286
|
className: "gtm-trackable",
|
|
3257
3287
|
"data-gtm-event-type": l,
|
|
3258
|
-
"data-gtm-event-context":
|
|
3288
|
+
"data-gtm-event-context": m,
|
|
3259
3289
|
children: u
|
|
3260
3290
|
}
|
|
3261
3291
|
) : u }, c.id);
|
|
3262
3292
|
}) });
|
|
3263
3293
|
};
|
|
3264
|
-
const
|
|
3294
|
+
const jo = ({
|
|
3265
3295
|
members: { total: e, data: t = [] },
|
|
3266
3296
|
pagination: n,
|
|
3267
3297
|
gtmContext: s = "member",
|
|
3268
3298
|
gtmType: o = "member-click",
|
|
3269
3299
|
className: l = ""
|
|
3270
3300
|
}) => {
|
|
3271
|
-
const
|
|
3301
|
+
const m = P();
|
|
3272
3302
|
return t.length === 0 ? null : (e || (e = t.length), /* @__PURE__ */ r.jsxs("div", { className: j("members-list", l), children: [
|
|
3273
3303
|
/* @__PURE__ */ r.jsxs("h1", { children: [
|
|
3274
|
-
|
|
3304
|
+
m.formatMessage({ id: "membersList" }),
|
|
3275
3305
|
/* @__PURE__ */ r.jsx("span", { className: "count", children: e })
|
|
3276
3306
|
] }),
|
|
3277
3307
|
/* @__PURE__ */ r.jsx("ul", { children: t.map((a, i) => /* @__PURE__ */ r.jsxs("li", { children: [
|
|
3278
|
-
/* @__PURE__ */ r.jsx(
|
|
3279
|
-
a.isAdmin && /* @__PURE__ */ r.jsx(qr, { children:
|
|
3308
|
+
/* @__PURE__ */ r.jsx(Pt, { member: a, gtmContext: s, gtmType: o }),
|
|
3309
|
+
a.isAdmin && /* @__PURE__ */ r.jsx(qr, { children: m.formatMessage({ id: "membersList_admin" }) })
|
|
3280
3310
|
] }, i)) }),
|
|
3281
3311
|
n && /* @__PURE__ */ r.jsx(
|
|
3282
3312
|
fs,
|
|
@@ -3301,7 +3331,7 @@ const ae = "discussion_form_", Cn = ({
|
|
|
3301
3331
|
inputRef: s,
|
|
3302
3332
|
maxLength: o = 5e4,
|
|
3303
3333
|
minRows: l = 4,
|
|
3304
|
-
forceShow:
|
|
3334
|
+
forceShow: m = {
|
|
3305
3335
|
cancel: !1,
|
|
3306
3336
|
error: !1
|
|
3307
3337
|
},
|
|
@@ -3320,10 +3350,10 @@ const ae = "discussion_form_", Cn = ({
|
|
|
3320
3350
|
},
|
|
3321
3351
|
gtmContext: i = "DiscussionForm"
|
|
3322
3352
|
}) => {
|
|
3323
|
-
var
|
|
3324
|
-
const c =
|
|
3353
|
+
var F, q;
|
|
3354
|
+
const c = P(), u = ye(je), [f, p] = D(
|
|
3325
3355
|
n.isEditing && n.isEditing.text || ""
|
|
3326
|
-
), [h, _] =
|
|
3356
|
+
), [h, _] = D(m.error || !1), [v, g] = D(!1), E = Z(null);
|
|
3327
3357
|
if (s || (s = E), n.isLoading)
|
|
3328
3358
|
return /* @__PURE__ */ r.jsx(
|
|
3329
3359
|
be,
|
|
@@ -3332,104 +3362,104 @@ const ae = "discussion_form_", Cn = ({
|
|
|
3332
3362
|
"data-testid": "loading-placeholder"
|
|
3333
3363
|
}
|
|
3334
3364
|
);
|
|
3335
|
-
const
|
|
3336
|
-
const
|
|
3337
|
-
p(
|
|
3338
|
-
let
|
|
3339
|
-
!u || !u.id ?
|
|
3365
|
+
const x = (k) => {
|
|
3366
|
+
const Y = k.target.value;
|
|
3367
|
+
p(Y);
|
|
3368
|
+
let B;
|
|
3369
|
+
!u || !u.id ? B = he(
|
|
3340
3370
|
c.formatMessage,
|
|
3341
3371
|
`${ae}error_loggedOut`,
|
|
3342
3372
|
e.type,
|
|
3343
3373
|
"action"
|
|
3344
|
-
) : t ?
|
|
3374
|
+
) : t ? Y.length >= o && (B = `${ae}error_tooLong`) : B = he(
|
|
3345
3375
|
c.formatMessage,
|
|
3346
3376
|
`${ae}error_noPermission`,
|
|
3347
3377
|
e.type,
|
|
3348
3378
|
"action"
|
|
3349
|
-
),
|
|
3379
|
+
), B ? _(B) : h && _(!1);
|
|
3350
3380
|
};
|
|
3351
|
-
let
|
|
3381
|
+
let $ = `${e.type}-form`;
|
|
3352
3382
|
if (e.type === "response" || e.type === "reply") {
|
|
3353
|
-
const
|
|
3354
|
-
|
|
3383
|
+
const k = e.type === "response" ? ((F = e.slugs) == null ? void 0 : F.question) || "" : ((q = e.slugs) == null ? void 0 : q.answer) || "";
|
|
3384
|
+
k && ($ = `${$}-${k.slice(-15)}`);
|
|
3355
3385
|
}
|
|
3356
|
-
const T = async (
|
|
3357
|
-
var
|
|
3358
|
-
if (
|
|
3386
|
+
const T = async (k) => {
|
|
3387
|
+
var B;
|
|
3388
|
+
if (k.preventDefault(), k.stopPropagation(), !u || !u.id || !t || Q)
|
|
3359
3389
|
return;
|
|
3360
3390
|
Ye && clearTimeout(Ye), g("submitting");
|
|
3361
|
-
const
|
|
3391
|
+
const Y = window.location.pathname;
|
|
3362
3392
|
try {
|
|
3363
|
-
let
|
|
3393
|
+
let L;
|
|
3364
3394
|
switch (e.type) {
|
|
3365
3395
|
case "post":
|
|
3366
|
-
|
|
3396
|
+
L = await a.create({ content: f });
|
|
3367
3397
|
break;
|
|
3368
3398
|
case "question":
|
|
3369
|
-
|
|
3399
|
+
L = await a.create({
|
|
3370
3400
|
title: f,
|
|
3371
3401
|
authorId: u && u.id,
|
|
3372
|
-
...(
|
|
3402
|
+
...(B = a.props) == null ? void 0 : B.create
|
|
3373
3403
|
});
|
|
3374
3404
|
break;
|
|
3375
3405
|
case "response":
|
|
3376
|
-
|
|
3406
|
+
L = await a.create(
|
|
3377
3407
|
{ question: e.slugs.question },
|
|
3378
|
-
{ body: f, authorId: u && u.id, contentPath:
|
|
3408
|
+
{ body: f, authorId: u && u.id, contentPath: Y }
|
|
3379
3409
|
);
|
|
3380
3410
|
break;
|
|
3381
3411
|
case "reply":
|
|
3382
|
-
|
|
3412
|
+
L = await a.create(
|
|
3383
3413
|
{ question: e.slugs.question, answer: e.slugs.answer },
|
|
3384
|
-
{ body: f, authorId: u && u.id, contentPath:
|
|
3414
|
+
{ body: f, authorId: u && u.id, contentPath: Y }
|
|
3385
3415
|
);
|
|
3386
3416
|
break;
|
|
3387
3417
|
default:
|
|
3388
3418
|
break;
|
|
3389
3419
|
}
|
|
3390
|
-
await Cr(1e3), a.callback && await a.callback(
|
|
3420
|
+
await Cr(1e3), a.callback && await a.callback(L), Ye = setTimeout(() => {
|
|
3391
3421
|
p(""), g("submitted"), M();
|
|
3392
3422
|
}, 500);
|
|
3393
|
-
} catch (
|
|
3394
|
-
const U =
|
|
3395
|
-
let
|
|
3396
|
-
U.message.includes("entry already exists") && (
|
|
3423
|
+
} catch (L) {
|
|
3424
|
+
const U = L;
|
|
3425
|
+
let G = `${ae}error`;
|
|
3426
|
+
U.message.includes("entry already exists") && (G = he(
|
|
3397
3427
|
c.formatMessage,
|
|
3398
3428
|
`${ae}error_alreadyExists`,
|
|
3399
3429
|
e.type,
|
|
3400
3430
|
"action"
|
|
3401
|
-
)), U.message.includes("429") ?
|
|
3431
|
+
)), U.message.includes("429") ? G = he(
|
|
3402
3432
|
c.formatMessage,
|
|
3403
3433
|
`${ae}error_tooMany`,
|
|
3404
3434
|
e.type,
|
|
3405
3435
|
"action"
|
|
3406
|
-
) : U.message.includes("400") && (
|
|
3436
|
+
) : U.message.includes("400") && (G = `${ae}error`), _(G), M();
|
|
3407
3437
|
}
|
|
3408
3438
|
}, M = () => {
|
|
3409
3439
|
Ye = setTimeout(() => {
|
|
3410
3440
|
_(!1), g(!1);
|
|
3411
3441
|
}, 5e3);
|
|
3412
|
-
}, Q = !f || !Rr(f), V =
|
|
3413
|
-
return (n.isEditing && !V ||
|
|
3442
|
+
}, Q = !f || !Rr(f), V = v === "submitting", w = [];
|
|
3443
|
+
return (n.isEditing && !V || m.cancel) && w.push({
|
|
3414
3444
|
variant: "secondary",
|
|
3415
3445
|
size: { mobile: "small", 600: "medium" },
|
|
3416
3446
|
onClick: a.handleCancel,
|
|
3417
3447
|
className: "gtm-trackable",
|
|
3418
3448
|
"data-gtm-event-context": i,
|
|
3419
3449
|
"data-gtm-event-type": `cancel-${e.type}-click`,
|
|
3420
|
-
disabled: !
|
|
3450
|
+
disabled: !m.cancel && (!u || !u.id || !f),
|
|
3421
3451
|
children: c.formatMessage({ id: `${ae}cancel` })
|
|
3422
|
-
}),
|
|
3452
|
+
}), w.push({
|
|
3423
3453
|
variant: "primary",
|
|
3424
3454
|
size: { mobile: "small", 600: "medium" },
|
|
3425
|
-
onClick: (
|
|
3455
|
+
onClick: (k) => {
|
|
3426
3456
|
if (n.isEditing) {
|
|
3427
3457
|
g("submitting"), a.handleSaveEdit && a.handleSaveEdit(
|
|
3428
3458
|
E.current && "value" in E.current ? E.current.value : ""
|
|
3429
3459
|
);
|
|
3430
3460
|
return;
|
|
3431
3461
|
}
|
|
3432
|
-
T(
|
|
3462
|
+
T(k);
|
|
3433
3463
|
},
|
|
3434
3464
|
className: "gtm-trackable",
|
|
3435
3465
|
"data-gtm-event-context": i,
|
|
@@ -3442,7 +3472,7 @@ const ae = "discussion_form_", Cn = ({
|
|
|
3442
3472
|
}), /* @__PURE__ */ r.jsxs(
|
|
3443
3473
|
"form",
|
|
3444
3474
|
{
|
|
3445
|
-
id:
|
|
3475
|
+
id: $,
|
|
3446
3476
|
className: j("discussion-card discussion-form", {
|
|
3447
3477
|
"no-styling": n.isInWrapper && n.isEditing
|
|
3448
3478
|
}),
|
|
@@ -3450,19 +3480,19 @@ const ae = "discussion_form_", Cn = ({
|
|
|
3450
3480
|
children: [
|
|
3451
3481
|
(n == null ? void 0 : n.showTitle) && !n.isEditing && ["question"].includes(e.type) && /* @__PURE__ */ r.jsx("h2", { children: he(c.formatMessage, `${ae}title`, e.type, "action") }),
|
|
3452
3482
|
/* @__PURE__ */ r.jsx(
|
|
3453
|
-
|
|
3483
|
+
Pt,
|
|
3454
3484
|
{
|
|
3455
3485
|
member: u || "community",
|
|
3456
3486
|
gtmContext: i,
|
|
3457
3487
|
gtmType: "profile-click"
|
|
3458
3488
|
}
|
|
3459
3489
|
),
|
|
3460
|
-
/* @__PURE__ */ r.jsx(
|
|
3490
|
+
/* @__PURE__ */ r.jsx(ne, { element: "label", showOnFocus: !1, htmlFor: `${$}-input`, children: he(c.formatMessage, `${ae}label`, e.type, "action") }),
|
|
3461
3491
|
/* @__PURE__ */ r.jsx(
|
|
3462
3492
|
gr,
|
|
3463
3493
|
{
|
|
3464
3494
|
ref: s,
|
|
3465
|
-
id: `${
|
|
3495
|
+
id: `${$}-input`,
|
|
3466
3496
|
name: e.type,
|
|
3467
3497
|
placeholder: he(
|
|
3468
3498
|
c.formatMessage,
|
|
@@ -3470,7 +3500,7 @@ const ae = "discussion_form_", Cn = ({
|
|
|
3470
3500
|
e.type,
|
|
3471
3501
|
"action"
|
|
3472
3502
|
),
|
|
3473
|
-
onChange:
|
|
3503
|
+
onChange: x,
|
|
3474
3504
|
value: f,
|
|
3475
3505
|
maxLength: o,
|
|
3476
3506
|
"aria-invalid": !!h,
|
|
@@ -3480,7 +3510,7 @@ const ae = "discussion_form_", Cn = ({
|
|
|
3480
3510
|
}
|
|
3481
3511
|
),
|
|
3482
3512
|
/* @__PURE__ */ r.jsx("small", { children: he(c.formatMessage, `${ae}explainer`, e.type, "action", {
|
|
3483
|
-
a: (
|
|
3513
|
+
a: (k) => /* @__PURE__ */ r.jsx(
|
|
3484
3514
|
"a",
|
|
3485
3515
|
{
|
|
3486
3516
|
href: "https://about.apolitical.co/q-and-a-community-guidelines",
|
|
@@ -3489,13 +3519,13 @@ const ae = "discussion_form_", Cn = ({
|
|
|
3489
3519
|
"data-gtm-event-context": i,
|
|
3490
3520
|
"data-gtm-event-type": "community-guidelines-link",
|
|
3491
3521
|
rel: "noreferrer",
|
|
3492
|
-
children:
|
|
3522
|
+
children: k
|
|
3493
3523
|
}
|
|
3494
3524
|
)
|
|
3495
3525
|
}) }),
|
|
3496
|
-
/* @__PURE__ */ r.jsx(
|
|
3497
|
-
|
|
3498
|
-
h && /* @__PURE__ */ r.jsx(
|
|
3526
|
+
/* @__PURE__ */ r.jsx(tt, { buttons: w }),
|
|
3527
|
+
v === "submitted" && /* @__PURE__ */ r.jsx($t, { className: "success", "data-testid": "success", children: he(c.formatMessage, `${ae}success`, e.type, "action") }),
|
|
3528
|
+
h && /* @__PURE__ */ r.jsx($t, { id: "error-message", className: "error", "data-testid": "error", children: m.error ? m.error : typeof h == "string" ? h.includes(" ") ? h : c.formatMessage(
|
|
3499
3529
|
{ id: h },
|
|
3500
3530
|
{
|
|
3501
3531
|
action: c.formatMessage({
|
|
@@ -3507,14 +3537,14 @@ const ae = "discussion_form_", Cn = ({
|
|
|
3507
3537
|
]
|
|
3508
3538
|
}
|
|
3509
3539
|
);
|
|
3510
|
-
},
|
|
3540
|
+
}, An = ({
|
|
3511
3541
|
contentType: e,
|
|
3512
3542
|
createPost: t,
|
|
3513
|
-
membershipRequiredToPost: { isMember: n, required: s, join: o, leave: l, notMemberStateText:
|
|
3543
|
+
membershipRequiredToPost: { isMember: n, required: s, join: o, leave: l, notMemberStateText: m }
|
|
3514
3544
|
}) => s && !n ? /* @__PURE__ */ r.jsx(
|
|
3515
|
-
|
|
3545
|
+
rt,
|
|
3516
3546
|
{
|
|
3517
|
-
text:
|
|
3547
|
+
text: m,
|
|
3518
3548
|
button: {
|
|
3519
3549
|
component: /* @__PURE__ */ r.jsx(yn, { functions: { join: o, leave: l } })
|
|
3520
3550
|
}
|
|
@@ -3530,12 +3560,12 @@ const ae = "discussion_form_", Cn = ({
|
|
|
3530
3560
|
), js = {
|
|
3531
3561
|
showThread: !1,
|
|
3532
3562
|
showForm: !1
|
|
3533
|
-
},
|
|
3534
|
-
const [t, n] =
|
|
3563
|
+
}, Nn = Mt(js), Eo = ({ children: e }) => {
|
|
3564
|
+
const [t, n] = D({
|
|
3535
3565
|
showThread: !1,
|
|
3536
3566
|
showForm: !1
|
|
3537
3567
|
});
|
|
3538
|
-
return /* @__PURE__ */ r.jsx(
|
|
3568
|
+
return /* @__PURE__ */ r.jsx(Nn.Provider, { value: { ...t, updateConversation: n }, children: e });
|
|
3539
3569
|
}, Es = ({
|
|
3540
3570
|
question: e,
|
|
3541
3571
|
answer: t,
|
|
@@ -3545,36 +3575,36 @@ const ae = "discussion_form_", Cn = ({
|
|
|
3545
3575
|
...t && { answerSlug: t },
|
|
3546
3576
|
...n && { replySlug: n }
|
|
3547
3577
|
}), Ss = (e, t = 10) => !e || e.length === 0 ? [] : e.slice(0, t);
|
|
3548
|
-
let
|
|
3549
|
-
const
|
|
3550
|
-
|
|
3551
|
-
},
|
|
3578
|
+
let Oe = !1;
|
|
3579
|
+
const bt = () => {
|
|
3580
|
+
Oe !== !1 && (clearTimeout(Oe), Oe = !1);
|
|
3581
|
+
}, wt = 10, $s = ({
|
|
3552
3582
|
element: e = "div",
|
|
3553
3583
|
likes: t = 0,
|
|
3554
3584
|
peopleWhoLiked: n = !1,
|
|
3555
3585
|
isShort: s = !0,
|
|
3556
3586
|
userLiked: o = !1,
|
|
3557
3587
|
content: l = { type: "reply", slugs: {} },
|
|
3558
|
-
canLike:
|
|
3588
|
+
canLike: m = !0,
|
|
3559
3589
|
functions: { createLike: a = () => {
|
|
3560
3590
|
}, deleteLike: i = () => {
|
|
3561
3591
|
} } = {}
|
|
3562
3592
|
}) => {
|
|
3563
|
-
const c =
|
|
3593
|
+
const c = P();
|
|
3564
3594
|
z(() => {
|
|
3565
3595
|
h(o);
|
|
3566
3596
|
}, [o]);
|
|
3567
|
-
const [u, f] =
|
|
3568
|
-
if (M.preventDefault(), M.stopPropagation(), E(!1),
|
|
3569
|
-
return
|
|
3570
|
-
if (
|
|
3597
|
+
const [u, f] = D(t), [p, h] = D(o), [_, v] = D(!1), [g, E] = D(!1), x = qe(() => Ss(n, wt), [n]), $ = (M) => {
|
|
3598
|
+
if (M.preventDefault(), M.stopPropagation(), E(!1), Oe)
|
|
3599
|
+
return bt(), !1;
|
|
3600
|
+
if (bt(), _ || !m)
|
|
3571
3601
|
return !1;
|
|
3572
|
-
|
|
3602
|
+
Oe = setTimeout(T, 350);
|
|
3573
3603
|
}, T = async () => {
|
|
3574
|
-
if (
|
|
3604
|
+
if (bt(), _ || !m)
|
|
3575
3605
|
return !1;
|
|
3576
3606
|
let M = p ? u - 1 : u + 1;
|
|
3577
|
-
M < 0 && (M = 0),
|
|
3607
|
+
M < 0 && (M = 0), v(!0), f(M), h(!p);
|
|
3578
3608
|
try {
|
|
3579
3609
|
if (l && l.slugs) {
|
|
3580
3610
|
const Q = Es(l.slugs);
|
|
@@ -3583,14 +3613,14 @@ const wt = () => {
|
|
|
3583
3613
|
} catch {
|
|
3584
3614
|
f(t), h(o);
|
|
3585
3615
|
} finally {
|
|
3586
|
-
|
|
3616
|
+
v(!1);
|
|
3587
3617
|
}
|
|
3588
3618
|
};
|
|
3589
3619
|
return A.createElement(
|
|
3590
3620
|
e,
|
|
3591
3621
|
{
|
|
3592
|
-
className: j("likes-wrapper text-medium action-button", { "show-spinner": _, "is-liked": p, disabled: !
|
|
3593
|
-
onClick:
|
|
3622
|
+
className: j("likes-wrapper text-medium action-button", { "show-spinner": _, "is-liked": p, disabled: !m }),
|
|
3623
|
+
onClick: $,
|
|
3594
3624
|
onMouseEnter: () => {
|
|
3595
3625
|
E(!0);
|
|
3596
3626
|
},
|
|
@@ -3611,12 +3641,12 @@ const wt = () => {
|
|
|
3611
3641
|
size: "medium",
|
|
3612
3642
|
icon: { icon: p ? "heart" : "heart_empty", animate: "bounce" },
|
|
3613
3643
|
className: j({ "do-animation": p && !o }),
|
|
3614
|
-
screenreaderText:
|
|
3644
|
+
screenreaderText: m ? c.formatMessage({
|
|
3615
3645
|
id: `discussion_likes_${p ? "unlike" : "like"}`
|
|
3616
3646
|
}, { action: c.formatMessage({ id: `discussion_action_${l.type}` }) }) : !1,
|
|
3617
|
-
onClick:
|
|
3618
|
-
disabled: !
|
|
3619
|
-
"aria-hidden": !
|
|
3647
|
+
onClick: $,
|
|
3648
|
+
disabled: !m,
|
|
3649
|
+
"aria-hidden": !m,
|
|
3620
3650
|
"data-testid": "like-button",
|
|
3621
3651
|
"data-gtm-event-context": "Likes",
|
|
3622
3652
|
"data-gtm-event-type": `like-${l.type}-click`
|
|
@@ -3624,8 +3654,8 @@ const wt = () => {
|
|
|
3624
3654
|
),
|
|
3625
3655
|
/* @__PURE__ */ r.jsx("span", { className: j("number-of-likes", { "no-likes": u === 0 }), "data-testid": "number-of-likes", children: c.formatMessage({ id: `discussion_likes${s ? "_short" : ""}` }, { number: u }) }),
|
|
3626
3656
|
n && /* @__PURE__ */ r.jsx(Ir, { isOpen: g, isLoading: n.length === 0, children: n.length && /* @__PURE__ */ r.jsxs("ul", { children: [
|
|
3627
|
-
|
|
3628
|
-
n.length >
|
|
3657
|
+
x.map((M) => typeof M == "string" || !M.name ? null : /* @__PURE__ */ r.jsx("li", { children: /* @__PURE__ */ r.jsx(nt, { href: M.id ? `/profiles/${M.id}` : void 0, gtmContext: "Likes", gtmType: "liked-name-click", children: M.name }) }, M.id || window.btoa(M.name))),
|
|
3658
|
+
n.length > wt && /* @__PURE__ */ r.jsx("li", { children: c.formatMessage({ id: "discussion_likes_more" }, { number: n.length - wt }) })
|
|
3629
3659
|
] }) })
|
|
3630
3660
|
] })
|
|
3631
3661
|
}
|
|
@@ -3647,18 +3677,18 @@ const Dn = ({
|
|
|
3647
3677
|
functions: { onOpen: o = () => {
|
|
3648
3678
|
}, onClose: l = () => {
|
|
3649
3679
|
} } = {},
|
|
3650
|
-
forceShow: { error:
|
|
3680
|
+
forceShow: { error: m = !1 } = {},
|
|
3651
3681
|
title: a,
|
|
3652
3682
|
children: i,
|
|
3653
3683
|
buttons: c,
|
|
3654
3684
|
className: u = "",
|
|
3655
3685
|
gtmContext: f = "Modal"
|
|
3656
3686
|
}) => {
|
|
3657
|
-
const p =
|
|
3687
|
+
const p = P(), [h, _] = D(t), v = (E) => {
|
|
3658
3688
|
_(E), E ? (o(), document.body.classList.add("has-overlay")) : (l(), document.body.classList.remove("has-overlay"));
|
|
3659
3689
|
};
|
|
3660
3690
|
z(() => {
|
|
3661
|
-
|
|
3691
|
+
v(t);
|
|
3662
3692
|
}, [t]);
|
|
3663
3693
|
const g = s ? { "--max-width": `${s / 16}rem` } : {};
|
|
3664
3694
|
return /* @__PURE__ */ r.jsx("div", { className: j("overlay", { open: h }), children: /* @__PURE__ */ r.jsx(
|
|
@@ -3677,7 +3707,7 @@ const Dn = ({
|
|
|
3677
3707
|
variant: "tertiary",
|
|
3678
3708
|
size: "medium",
|
|
3679
3709
|
icon: { icon: "close" },
|
|
3680
|
-
onClick: () =>
|
|
3710
|
+
onClick: () => v(!1),
|
|
3681
3711
|
className: "gtm-trackable",
|
|
3682
3712
|
"data-gtm-event-type": "close-modal-click",
|
|
3683
3713
|
"data-gtm-event-context": f,
|
|
@@ -3685,13 +3715,13 @@ const Dn = ({
|
|
|
3685
3715
|
}
|
|
3686
3716
|
)
|
|
3687
3717
|
] }),
|
|
3688
|
-
n && /* @__PURE__ */ r.jsx(
|
|
3718
|
+
n && /* @__PURE__ */ r.jsx(Le, {}),
|
|
3689
3719
|
i,
|
|
3690
3720
|
c && /* @__PURE__ */ r.jsxs("div", { className: "bottom", children: [
|
|
3691
|
-
/* @__PURE__ */ r.jsx(
|
|
3692
|
-
/* @__PURE__ */ r.jsx(
|
|
3721
|
+
/* @__PURE__ */ r.jsx(Le, {}),
|
|
3722
|
+
/* @__PURE__ */ r.jsx(tt, { buttons: c })
|
|
3693
3723
|
] }),
|
|
3694
|
-
|
|
3724
|
+
m && /* @__PURE__ */ r.jsx($t, { className: "error", children: m })
|
|
3695
3725
|
] })
|
|
3696
3726
|
}
|
|
3697
3727
|
) });
|
|
@@ -3700,14 +3730,14 @@ const Dn = ({
|
|
|
3700
3730
|
"aria-expanded": t,
|
|
3701
3731
|
"aria-controls": e
|
|
3702
3732
|
});
|
|
3703
|
-
const
|
|
3733
|
+
const So = ({
|
|
3704
3734
|
className: e,
|
|
3705
3735
|
showModal: t = !0,
|
|
3706
3736
|
title: n,
|
|
3707
3737
|
formTitle: s = "Know someone who might like to join this workshop?",
|
|
3708
|
-
formLabel: o = "
|
|
3709
|
-
ctaMessage: l = "Send
|
|
3710
|
-
showIcon:
|
|
3738
|
+
formLabel: o = "Invite your colleagues by typing or pasting their emails below.",
|
|
3739
|
+
ctaMessage: l = "Send",
|
|
3740
|
+
showIcon: m,
|
|
3711
3741
|
onClose: a,
|
|
3712
3742
|
reportError: i = () => {
|
|
3713
3743
|
},
|
|
@@ -3718,7 +3748,8 @@ const $o = ({
|
|
|
3718
3748
|
title: n,
|
|
3719
3749
|
isOpen: t,
|
|
3720
3750
|
showDivider: !1,
|
|
3721
|
-
showIcon:
|
|
3751
|
+
showIcon: m,
|
|
3752
|
+
functions: { onClose: a },
|
|
3722
3753
|
className: j("invite-modal", e, { success: !!n }),
|
|
3723
3754
|
children: /* @__PURE__ */ r.jsx(
|
|
3724
3755
|
bs,
|
|
@@ -3735,22 +3766,18 @@ const $o = ({
|
|
|
3735
3766
|
), ln = (e) => {
|
|
3736
3767
|
const t = {};
|
|
3737
3768
|
return Object.keys(e).forEach((n) => n.includes("Id") ? t[n] = e[n] : t[`${n}Slug`] = e[n]), t;
|
|
3738
|
-
},
|
|
3739
|
-
const xe = "discussion_",
|
|
3769
|
+
}, Ft = (e, t) => e && !t;
|
|
3770
|
+
const xe = "discussion_", Rt = ({
|
|
3740
3771
|
element: e = "div",
|
|
3741
3772
|
content: t,
|
|
3742
3773
|
userHasPermissions: n = !0,
|
|
3743
3774
|
isLoading: s = !1,
|
|
3744
3775
|
originalAuthorId: o,
|
|
3745
3776
|
functions: {
|
|
3746
|
-
content: { createContent: l, deleteContent:
|
|
3747
|
-
|
|
3748
|
-
|
|
3749
|
-
|
|
3750
|
-
},
|
|
3751
|
-
updateContent: () => {
|
|
3752
|
-
}
|
|
3753
|
-
},
|
|
3777
|
+
content: { createContent: l, deleteContent: m, updateContent: a } = { createContent: () => {
|
|
3778
|
+
}, deleteContent: () => {
|
|
3779
|
+
}, updateContent: () => {
|
|
3780
|
+
} },
|
|
3754
3781
|
likes: { createLike: i, deleteLike: c } = { createLike: () => {
|
|
3755
3782
|
}, deleteLike: () => {
|
|
3756
3783
|
} },
|
|
@@ -3760,81 +3787,76 @@ const xe = "discussion_", Cs = 280, Ot = ({
|
|
|
3760
3787
|
links: f = {},
|
|
3761
3788
|
className: p,
|
|
3762
3789
|
gtmContext: h = "DiscussionAnswer",
|
|
3763
|
-
children: _
|
|
3764
|
-
isTruncated: k = !1
|
|
3790
|
+
children: _
|
|
3765
3791
|
}) => {
|
|
3766
|
-
const
|
|
3792
|
+
const v = P(), g = ye(je), E = ye(Nn), [x, $] = D({
|
|
3767
3793
|
body: t && t.body || "",
|
|
3768
3794
|
isEditing: !1,
|
|
3769
3795
|
didEdit: t && t.isEdited || !1
|
|
3770
|
-
}), [
|
|
3796
|
+
}), [T, M] = D(!1), [Q, V] = D("");
|
|
3771
3797
|
if (z(() => {
|
|
3772
|
-
|
|
3773
|
-
...
|
|
3798
|
+
$({
|
|
3799
|
+
...x,
|
|
3774
3800
|
body: t && t.body || "",
|
|
3775
3801
|
didEdit: t && t.isEdited || !1
|
|
3776
3802
|
});
|
|
3777
3803
|
}, [t.isEdited]), s || !t || t.type === "answer" && (!t.slugs || !t.slugs.question))
|
|
3778
3804
|
return /* @__PURE__ */ r.jsx(be, { className: "discussion-card discussion-post" });
|
|
3779
|
-
const { author:
|
|
3780
|
-
R || (R = ""),
|
|
3805
|
+
const { author: w, canLike: F, createdAt: q, id: k, likes: Y = 0, userLiked: B, comments: L = 0 } = t, U = g && g.id && typeof w != "string" && w.id && w.id === g.id || !1, G = typeof F == "boolean" ? F : n ? !U : !1, K = async (R) => {
|
|
3806
|
+
R || (R = ""), V("");
|
|
3781
3807
|
try {
|
|
3782
|
-
if (!_r(R,
|
|
3783
|
-
const
|
|
3784
|
-
await a(ln(t.slugs),
|
|
3808
|
+
if (!_r(R, x.body)) {
|
|
3809
|
+
const ee = t.type === "question" ? { title: R } : { body: R };
|
|
3810
|
+
await a(ln(t.slugs), ee);
|
|
3785
3811
|
}
|
|
3786
|
-
|
|
3812
|
+
$({ body: R, isEditing: !1, didEdit: !0 });
|
|
3787
3813
|
} catch {
|
|
3788
|
-
|
|
3814
|
+
V(`${xe}form_error`);
|
|
3789
3815
|
}
|
|
3790
|
-
},
|
|
3791
|
-
|
|
3792
|
-
const
|
|
3793
|
-
|
|
3816
|
+
}, ie = () => {
|
|
3817
|
+
E && E.updateConversation && E.updateConversation({ showThread: !0, showForm: !0 }), setTimeout(() => {
|
|
3818
|
+
const ee = `reply-form-${(t.type === "answer" ? t.slug : t.slugs.answer || "").toLowerCase().slice(-15)}`, oe = document.getElementById(ee), ce = document.getElementById(`${ee}-input`);
|
|
3819
|
+
ce && ce.focus(), oe && oe.scrollIntoView({ behavior: "smooth" });
|
|
3794
3820
|
}, 0);
|
|
3795
|
-
},
|
|
3821
|
+
}, le = () => {
|
|
3796
3822
|
try {
|
|
3797
|
-
|
|
3823
|
+
m(ln(t.slugs));
|
|
3798
3824
|
} catch {
|
|
3799
|
-
|
|
3825
|
+
V("delete-error");
|
|
3800
3826
|
}
|
|
3801
|
-
},
|
|
3802
|
-
{
|
|
3803
|
-
|
|
3804
|
-
|
|
3805
|
-
|
|
3806
|
-
|
|
3807
|
-
|
|
3808
|
-
|
|
3809
|
-
{
|
|
3810
|
-
|
|
3811
|
-
|
|
3812
|
-
|
|
3813
|
-
|
|
3814
|
-
|
|
3815
|
-
|
|
3816
|
-
icon: "flag"
|
|
3817
|
-
}
|
|
3818
|
-
];
|
|
3819
|
-
return n && K && oe.push(
|
|
3827
|
+
}, se = [{
|
|
3828
|
+
text: v.formatMessage({ id: `${xe}moreMenu_report` }),
|
|
3829
|
+
href: `mailto:community@apolitical.co?subject=${encodeURI(v.formatMessage({ id: `${xe}report_subject` }))}&body=${encodeURI(
|
|
3830
|
+
v.formatMessage(
|
|
3831
|
+
{ id: `${xe}report_body` },
|
|
3832
|
+
{
|
|
3833
|
+
contentType: t.type || "",
|
|
3834
|
+
contentSlug: t.slug || "",
|
|
3835
|
+
contentUrl: `${window.origin}${typeof process < "u" && process.env.PUBLIC_URL || ""}/${t.slugs.question || ""}`
|
|
3836
|
+
}
|
|
3837
|
+
)
|
|
3838
|
+
)}`,
|
|
3839
|
+
icon: "flag"
|
|
3840
|
+
}];
|
|
3841
|
+
return n && U && se.push(
|
|
3820
3842
|
{
|
|
3821
|
-
text:
|
|
3822
|
-
onClick: () =>
|
|
3843
|
+
text: v.formatMessage({ id: `${xe}moreMenu_edit` }),
|
|
3844
|
+
onClick: () => $({ ...x, isEditing: !0 }),
|
|
3823
3845
|
icon: "pencil-paper",
|
|
3824
3846
|
className: "gtm-trackable",
|
|
3825
3847
|
"data-gtm-event-context": h,
|
|
3826
3848
|
"data-gtm-event-type": `edit-${t.type}-click`
|
|
3827
3849
|
},
|
|
3828
3850
|
{
|
|
3829
|
-
text:
|
|
3851
|
+
text: v.formatMessage({ id: `${xe}moreMenu_delete` }),
|
|
3830
3852
|
onClick: (R) => {
|
|
3831
|
-
R.preventDefault(), R.stopPropagation(),
|
|
3853
|
+
R.preventDefault(), R.stopPropagation(), M(!0);
|
|
3832
3854
|
},
|
|
3833
3855
|
icon: "trash",
|
|
3834
3856
|
className: "gtm-trackable",
|
|
3835
3857
|
"data-gtm-event-context": h,
|
|
3836
3858
|
"data-gtm-event-type": `delete-${t.type}-click`,
|
|
3837
|
-
...Ms(`delete-${t.slug}-modal`,
|
|
3859
|
+
...Ms(`delete-${t.slug}-modal`, T)
|
|
3838
3860
|
}
|
|
3839
3861
|
), A.createElement(e, {
|
|
3840
3862
|
className: j("discussion-post", p),
|
|
@@ -3843,151 +3865,92 @@ const xe = "discussion_", Cs = 280, Ot = ({
|
|
|
3843
3865
|
/* @__PURE__ */ r.jsxs(
|
|
3844
3866
|
"div",
|
|
3845
3867
|
{
|
|
3846
|
-
id:
|
|
3847
|
-
className: j("discussion-card", t.type, {
|
|
3848
|
-
editing: S.isEditing,
|
|
3849
|
-
"has-link": f.post && !S.isEditing
|
|
3850
|
-
}),
|
|
3868
|
+
id: k || t.slug,
|
|
3869
|
+
className: j("discussion-card", t.type, { editing: x.isEditing, "has-link": f.post && !x.isEditing }),
|
|
3851
3870
|
onClick: (R) => {
|
|
3852
|
-
!f.post ||
|
|
3871
|
+
!f.post || x.isEditing || (R.preventDefault(), R.stopPropagation(), window.location.href = f.post);
|
|
3853
3872
|
},
|
|
3854
3873
|
children: [
|
|
3855
|
-
!
|
|
3856
|
-
|
|
3874
|
+
!x.isEditing && /* @__PURE__ */ r.jsx(
|
|
3875
|
+
Pt,
|
|
3857
3876
|
{
|
|
3858
|
-
member:
|
|
3859
|
-
additionalContent: { createdAt:
|
|
3860
|
-
className: typeof
|
|
3877
|
+
member: w,
|
|
3878
|
+
additionalContent: { createdAt: q, didEdit: x.didEdit },
|
|
3879
|
+
className: typeof w != "string" && w.id === o ? "highlighted" : "",
|
|
3861
3880
|
gtmContext: h,
|
|
3862
3881
|
gtmType: "profile-click"
|
|
3863
3882
|
}
|
|
3864
3883
|
),
|
|
3865
|
-
|
|
3884
|
+
x.isEditing ? /* @__PURE__ */ r.jsx(
|
|
3866
3885
|
Cn,
|
|
3867
3886
|
{
|
|
3868
3887
|
content: { type: t.type, slugs: t.slugs },
|
|
3869
3888
|
userHasPermissions: n,
|
|
3870
|
-
meta: {
|
|
3871
|
-
isLoading: s,
|
|
3872
|
-
isInWrapper: !0,
|
|
3873
|
-
isEditing: { text: S.body }
|
|
3874
|
-
},
|
|
3889
|
+
meta: { isLoading: s, isInWrapper: !0, isEditing: { text: x.body } },
|
|
3875
3890
|
maxLength: t.type === "question" ? 250 : 5e4,
|
|
3876
|
-
forceShow: {
|
|
3877
|
-
|
|
3878
|
-
|
|
3879
|
-
|
|
3880
|
-
|
|
3881
|
-
id: `discussion_action_${t.type}`
|
|
3882
|
-
})
|
|
3883
|
-
}
|
|
3884
|
-
) : !1
|
|
3885
|
-
},
|
|
3891
|
+
forceShow: { error: Q !== "" && Q !== "delete-error" ? v.formatMessage({ id: Q }, {
|
|
3892
|
+
action: v.formatMessage({
|
|
3893
|
+
id: `discussion_action_${t.type}`
|
|
3894
|
+
})
|
|
3895
|
+
}) : !1 },
|
|
3886
3896
|
functions: {
|
|
3887
3897
|
create: l,
|
|
3888
|
-
handleSaveEdit:
|
|
3898
|
+
handleSaveEdit: K,
|
|
3889
3899
|
handleCancel: () => {
|
|
3890
|
-
|
|
3900
|
+
V(""), $({ ...x, isEditing: !1 });
|
|
3891
3901
|
}
|
|
3892
3902
|
},
|
|
3893
3903
|
gtmContext: `${h}Form`
|
|
3894
3904
|
}
|
|
3895
|
-
) : f.post ? /* @__PURE__ */ r.jsx(
|
|
3896
|
-
|
|
3897
|
-
|
|
3898
|
-
|
|
3899
|
-
|
|
3900
|
-
|
|
3901
|
-
|
|
3902
|
-
|
|
3903
|
-
|
|
3904
|
-
|
|
3905
|
-
|
|
3906
|
-
|
|
3907
|
-
|
|
3908
|
-
|
|
3909
|
-
|
|
3910
|
-
|
|
3911
|
-
|
|
3912
|
-
|
|
3913
|
-
|
|
3914
|
-
}
|
|
3915
|
-
|
|
3916
|
-
|
|
3917
|
-
|
|
3918
|
-
|
|
3919
|
-
|
|
3920
|
-
|
|
3921
|
-
|
|
3922
|
-
|
|
3923
|
-
|
|
3924
|
-
|
|
3925
|
-
|
|
3926
|
-
|
|
3927
|
-
|
|
3928
|
-
|
|
3929
|
-
|
|
3930
|
-
|
|
3931
|
-
|
|
3932
|
-
|
|
3933
|
-
|
|
3934
|
-
|
|
3935
|
-
|
|
3936
|
-
|
|
3937
|
-
|
|
3938
|
-
|
|
3939
|
-
|
|
3940
|
-
|
|
3941
|
-
|
|
3942
|
-
|
|
3943
|
-
|
|
3944
|
-
children: [
|
|
3945
|
-
/* @__PURE__ */ r.jsx(
|
|
3946
|
-
W,
|
|
3947
|
-
{
|
|
3948
|
-
variant: "tertiary",
|
|
3949
|
-
size: "medium",
|
|
3950
|
-
styling: { muted: !0 },
|
|
3951
|
-
icon: { icon: "speech-bubble_square_thick" },
|
|
3952
|
-
href: f.comments ? f.comments : !1,
|
|
3953
|
-
onClick: f.comments || typeof u != "function" ? !1 : u,
|
|
3954
|
-
className: "gtm-trackable",
|
|
3955
|
-
"data-gtm-event-context": h,
|
|
3956
|
-
"data-gtm-event-type": `answer-${t.type}-click`,
|
|
3957
|
-
screenreaderText: g.formatMessage(
|
|
3958
|
-
{ id: `${xe}comments_screenReader` },
|
|
3959
|
-
{ count: U }
|
|
3960
|
-
)
|
|
3961
|
-
}
|
|
3962
|
-
),
|
|
3963
|
-
/* @__PURE__ */ r.jsx("span", { children: g.formatMessage(
|
|
3964
|
-
{ id: `${xe}comments` },
|
|
3965
|
-
{ count: U }
|
|
3966
|
-
) })
|
|
3967
|
-
]
|
|
3968
|
-
}
|
|
3969
|
-
),
|
|
3970
|
-
(t.type === "answer" || t.type === "reply") && /* @__PURE__ */ r.jsx("li", { children: /* @__PURE__ */ r.jsx(
|
|
3971
|
-
W,
|
|
3972
|
-
{
|
|
3973
|
-
variant: "tertiary",
|
|
3974
|
-
size: "medium",
|
|
3975
|
-
styling: { muted: !0 },
|
|
3976
|
-
onClick: ce,
|
|
3977
|
-
children: g.formatMessage({ id: `${xe}reply` })
|
|
3978
|
-
}
|
|
3979
|
-
) }),
|
|
3980
|
-
/* @__PURE__ */ r.jsx(
|
|
3981
|
-
ps,
|
|
3982
|
-
{
|
|
3983
|
-
element: "li",
|
|
3984
|
-
id: `more-${t.slug}`,
|
|
3985
|
-
options: oe
|
|
3986
|
-
}
|
|
3987
|
-
)
|
|
3988
|
-
]
|
|
3989
|
-
}
|
|
3990
|
-
)
|
|
3905
|
+
) : f.post ? /* @__PURE__ */ r.jsx("a", { href: f.post, className: "gtm-trackable", "data-gtm-event-context": h, "data-gtm-event-type": "title-click", children: /* @__PURE__ */ r.jsx(nn, { options: { overrides: { a: Zr } }, children: x.body }) }) : /* @__PURE__ */ r.jsx(nn, { options: { wrapper: t.type === "question" ? "h1" : A.Fragment, forceWrapper: t.type === "question", forceInline: t.type === "question", forceBlock: t.type !== "question" }, children: x.body }),
|
|
3906
|
+
!x.isEditing && /* @__PURE__ */ r.jsxs("ul", { className: j("actions text-medium", t.type), "data-testid": `${t.type}-actions`, children: [
|
|
3907
|
+
/* @__PURE__ */ r.jsx(
|
|
3908
|
+
$s,
|
|
3909
|
+
{
|
|
3910
|
+
element: "li",
|
|
3911
|
+
likes: Y,
|
|
3912
|
+
isShort: !1,
|
|
3913
|
+
userLiked: B,
|
|
3914
|
+
content: { type: t.type, slugs: t.slugs },
|
|
3915
|
+
canLike: G,
|
|
3916
|
+
functions: {
|
|
3917
|
+
createLike: i,
|
|
3918
|
+
deleteLike: c
|
|
3919
|
+
}
|
|
3920
|
+
}
|
|
3921
|
+
),
|
|
3922
|
+
(["question", "post"].includes(t.type) || f.comments || typeof u == "function") && /* @__PURE__ */ r.jsxs("li", { className: "action-button", onClick: (R) => {
|
|
3923
|
+
R.preventDefault(), R.stopPropagation(), f.comments && (window.location.href = f.comments), typeof u == "function" && u();
|
|
3924
|
+
}, children: [
|
|
3925
|
+
/* @__PURE__ */ r.jsx(
|
|
3926
|
+
W,
|
|
3927
|
+
{
|
|
3928
|
+
variant: "tertiary",
|
|
3929
|
+
size: "medium",
|
|
3930
|
+
styling: { muted: !0 },
|
|
3931
|
+
icon: { icon: "speech-bubble_square_thick" },
|
|
3932
|
+
href: f.comments ? f.comments : !1,
|
|
3933
|
+
onClick: f.comments || typeof u != "function" ? !1 : u,
|
|
3934
|
+
className: "gtm-trackable",
|
|
3935
|
+
"data-gtm-event-context": h,
|
|
3936
|
+
"data-gtm-event-type": `answer-${t.type}-click`,
|
|
3937
|
+
screenreaderText: v.formatMessage({ id: `${xe}comments_screenReader` }, { count: L })
|
|
3938
|
+
}
|
|
3939
|
+
),
|
|
3940
|
+
/* @__PURE__ */ r.jsx("span", { children: v.formatMessage({ id: `${xe}comments` }, { count: L }) })
|
|
3941
|
+
] }),
|
|
3942
|
+
(t.type === "answer" || t.type === "reply") && /* @__PURE__ */ r.jsx("li", { children: /* @__PURE__ */ r.jsx(
|
|
3943
|
+
W,
|
|
3944
|
+
{
|
|
3945
|
+
variant: "tertiary",
|
|
3946
|
+
size: "medium",
|
|
3947
|
+
styling: { muted: !0 },
|
|
3948
|
+
onClick: ie,
|
|
3949
|
+
children: v.formatMessage({ id: `${xe}reply` })
|
|
3950
|
+
}
|
|
3951
|
+
) }),
|
|
3952
|
+
/* @__PURE__ */ r.jsx(ps, { element: "li", id: `more-${t.slug}`, options: se })
|
|
3953
|
+
] })
|
|
3991
3954
|
]
|
|
3992
3955
|
}
|
|
3993
3956
|
),
|
|
@@ -3996,35 +3959,21 @@ const xe = "discussion_", Cs = 280, Ot = ({
|
|
|
3996
3959
|
Dn,
|
|
3997
3960
|
{
|
|
3998
3961
|
id: `delete-${t.slug}-modal`,
|
|
3999
|
-
isOpen:
|
|
3962
|
+
isOpen: T,
|
|
4000
3963
|
functions: { onOpen: () => {
|
|
4001
|
-
}, onClose: () =>
|
|
4002
|
-
forceShow: {
|
|
4003
|
-
|
|
4004
|
-
|
|
4005
|
-
|
|
4006
|
-
|
|
4007
|
-
|
|
4008
|
-
})
|
|
4009
|
-
}
|
|
4010
|
-
) : !1
|
|
4011
|
-
},
|
|
4012
|
-
title: g.formatMessage(
|
|
3964
|
+
}, onClose: () => M(!1) },
|
|
3965
|
+
forceShow: { error: Q === "delete-error" ? v.formatMessage({ id: "discussion_delete_error" }, {
|
|
3966
|
+
action: v.formatMessage({
|
|
3967
|
+
id: `discussion_action_${t.type}`
|
|
3968
|
+
})
|
|
3969
|
+
}) : !1 },
|
|
3970
|
+
title: v.formatMessage(
|
|
4013
3971
|
{ id: "discussion_delete_title" },
|
|
4014
|
-
{ action:
|
|
3972
|
+
{ action: v.formatMessage({ id: `discussion_action_${t.type}` }) }
|
|
4015
3973
|
),
|
|
4016
3974
|
buttons: [
|
|
4017
|
-
{
|
|
4018
|
-
|
|
4019
|
-
onClick: () => Q(!1),
|
|
4020
|
-
children: g.formatMessage({ id: "discussion_delete_cancel" })
|
|
4021
|
-
},
|
|
4022
|
-
{
|
|
4023
|
-
variant: "primary",
|
|
4024
|
-
className: "destructive",
|
|
4025
|
-
onClick: ue,
|
|
4026
|
-
children: g.formatMessage({ id: "discussion_delete_delete" })
|
|
4027
|
-
}
|
|
3975
|
+
{ variant: "secondary", onClick: () => M(!1), children: v.formatMessage({ id: "discussion_delete_cancel" }) },
|
|
3976
|
+
{ variant: "primary", className: "destructive", onClick: le, children: v.formatMessage({ id: "discussion_delete_delete" }) }
|
|
4028
3977
|
],
|
|
4029
3978
|
gtmContext: `${t.type.charAt(0).toUpperCase()}${t.type.slice(1)}:${t.slug}`,
|
|
4030
3979
|
children: /* @__PURE__ */ r.jsx(
|
|
@@ -4033,7 +3982,7 @@ const xe = "discussion_", Cs = 280, Ot = ({
|
|
|
4033
3982
|
id: "discussion_delete_text",
|
|
4034
3983
|
values: {
|
|
4035
3984
|
p: (R) => /* @__PURE__ */ r.jsx("p", { children: R }),
|
|
4036
|
-
action:
|
|
3985
|
+
action: v.formatMessage({
|
|
4037
3986
|
id: `discussion_action_${t.type}`
|
|
4038
3987
|
})
|
|
4039
3988
|
}
|
|
@@ -4044,15 +3993,15 @@ const xe = "discussion_", Cs = 280, Ot = ({
|
|
|
4044
3993
|
] })
|
|
4045
3994
|
});
|
|
4046
3995
|
};
|
|
4047
|
-
const
|
|
4048
|
-
const n =
|
|
3996
|
+
const kt = "discussion_responses_", $o = ({ type: e = "answer", responses: t = 0 }) => {
|
|
3997
|
+
const n = P();
|
|
4049
3998
|
return /* @__PURE__ */ r.jsxs("div", { className: "responses-heading", children: [
|
|
4050
|
-
/* @__PURE__ */ r.jsx("h3", { children: n.formatMessage({ id: `${
|
|
4051
|
-
t === 0 && /* @__PURE__ */ r.jsx("p", { children: he(n.formatMessage, `${
|
|
3999
|
+
/* @__PURE__ */ r.jsx("h3", { children: n.formatMessage({ id: `${kt}title` }, { action: n.formatMessage({ id: `${kt}${e}` }), count: t }) }),
|
|
4000
|
+
t === 0 && /* @__PURE__ */ r.jsx("p", { children: he(n.formatMessage, `${kt}empty`, e, e) })
|
|
4052
4001
|
] });
|
|
4053
4002
|
};
|
|
4054
|
-
const
|
|
4055
|
-
const s =
|
|
4003
|
+
const To = ({ isOpen: e = !1, count: t = 0, children: n }) => {
|
|
4004
|
+
const s = P(), o = Z(null), [l, m] = D(e), [a, i] = D("closed");
|
|
4056
4005
|
z(() => {
|
|
4057
4006
|
const p = o.current;
|
|
4058
4007
|
if (p)
|
|
@@ -4076,14 +4025,14 @@ const Mo = ({ isOpen: e = !1, count: t = 0, children: n }) => {
|
|
|
4076
4025
|
styling: { muted: !0 },
|
|
4077
4026
|
icon: { icon: `arrow_corner-down_${u ? "left" : "right"}` },
|
|
4078
4027
|
onClick: () => {
|
|
4079
|
-
|
|
4028
|
+
m(!l);
|
|
4080
4029
|
},
|
|
4081
4030
|
children: s.formatMessage({ id: `discussion_thread_${u ? "hide" : "show"}` }, { count: t })
|
|
4082
4031
|
}
|
|
4083
4032
|
),
|
|
4084
4033
|
/* @__PURE__ */ r.jsx("ul", { ref: o, className: j("thread", a), hidden: !l, children: f })
|
|
4085
4034
|
] });
|
|
4086
|
-
},
|
|
4035
|
+
}, Cs = ({
|
|
4087
4036
|
user: e,
|
|
4088
4037
|
content: t,
|
|
4089
4038
|
verb: n = "post"
|
|
@@ -4112,7 +4061,7 @@ const Mo = ({ isOpen: e = !1, count: t = 0, children: n }) => {
|
|
|
4112
4061
|
}) => ({ mutationFn: s, onMutate: async ({ content: a }) => {
|
|
4113
4062
|
if (!n)
|
|
4114
4063
|
return;
|
|
4115
|
-
const i =
|
|
4064
|
+
const i = Cs({ user: n, content: a, verb: "post" });
|
|
4116
4065
|
await e.cancelQueries({ queryKey: t });
|
|
4117
4066
|
const c = e.getQueryData(t);
|
|
4118
4067
|
return e.setQueryData(t, (u) => [...u, i]), { previousActivities: c };
|
|
@@ -4120,29 +4069,29 @@ const Mo = ({ isOpen: e = !1, count: t = 0, children: n }) => {
|
|
|
4120
4069
|
e.setQueryData(t, c.previousActivities);
|
|
4121
4070
|
}, onSettled: () => {
|
|
4122
4071
|
e.invalidateQueries({ queryKey: t });
|
|
4123
|
-
} }),
|
|
4072
|
+
} }), Ns = ({
|
|
4124
4073
|
queryClient: e,
|
|
4125
4074
|
queryKey: t,
|
|
4126
4075
|
mutationFn: n
|
|
4127
4076
|
}) => ({
|
|
4128
4077
|
mutationFn: n,
|
|
4129
4078
|
onMutate: async ({
|
|
4130
|
-
activityInfo:
|
|
4079
|
+
activityInfo: m,
|
|
4131
4080
|
content: { body: a }
|
|
4132
4081
|
}) => {
|
|
4133
4082
|
if (a.length === 0)
|
|
4134
4083
|
return;
|
|
4135
4084
|
await e.cancelQueries({ queryKey: t });
|
|
4136
|
-
const i = e.getQueryData(t), c = i == null ? void 0 : i.map((u) => ((u == null ? void 0 : u.id) === (
|
|
4085
|
+
const i = e.getQueryData(t), c = i == null ? void 0 : i.map((u) => ((u == null ? void 0 : u.id) === (m == null ? void 0 : m.activityId) && (u.content = a), u));
|
|
4137
4086
|
return e.setQueryData(t, () => c && [...c]), { previousActivities: c };
|
|
4138
4087
|
},
|
|
4139
|
-
onError: (
|
|
4088
|
+
onError: (m, a, i) => {
|
|
4140
4089
|
e.setQueryData(t, i.previousActivities);
|
|
4141
4090
|
},
|
|
4142
4091
|
onSettled: () => {
|
|
4143
4092
|
e.invalidateQueries({ queryKey: t });
|
|
4144
4093
|
}
|
|
4145
|
-
}),
|
|
4094
|
+
}), Ds = ({
|
|
4146
4095
|
queryClient: e,
|
|
4147
4096
|
queryKey: t,
|
|
4148
4097
|
mutationFn: n
|
|
@@ -4162,7 +4111,7 @@ const Mo = ({ isOpen: e = !1, count: t = 0, children: n }) => {
|
|
|
4162
4111
|
e.invalidateQueries({
|
|
4163
4112
|
queryKey: [...t, c.activityId]
|
|
4164
4113
|
});
|
|
4165
|
-
} }),
|
|
4114
|
+
} }), Ps = ({
|
|
4166
4115
|
queryClient: e,
|
|
4167
4116
|
queryKey: t,
|
|
4168
4117
|
user: n,
|
|
@@ -4178,13 +4127,13 @@ const Mo = ({ isOpen: e = !1, count: t = 0, children: n }) => {
|
|
|
4178
4127
|
e.setQueryData(t, u.previousActivities);
|
|
4179
4128
|
}, onSuccess: (i, { activityId: c }) => {
|
|
4180
4129
|
const u = e.getQueryData(t), f = u == null ? void 0 : u.map((p) => {
|
|
4181
|
-
var h, _,
|
|
4130
|
+
var h, _, v, g;
|
|
4182
4131
|
if (p.id === c) {
|
|
4183
|
-
const E = (
|
|
4184
|
-
(
|
|
4185
|
-
)) == null ? void 0 :
|
|
4132
|
+
const E = (v = (_ = (h = p.latest_reactions) == null ? void 0 : h.like) == null ? void 0 : _.find(
|
|
4133
|
+
(x) => x.user_id === (n == null ? void 0 : n.id)
|
|
4134
|
+
)) == null ? void 0 : v.id;
|
|
4186
4135
|
return p.latest_reactions.like = (g = p.latest_reactions.like) == null ? void 0 : g.filter(
|
|
4187
|
-
(
|
|
4136
|
+
(x) => x.id !== E
|
|
4188
4137
|
), p;
|
|
4189
4138
|
} else
|
|
4190
4139
|
return p;
|
|
@@ -4194,16 +4143,16 @@ const Mo = ({ isOpen: e = !1, count: t = 0, children: n }) => {
|
|
|
4194
4143
|
e.invalidateQueries({
|
|
4195
4144
|
queryKey: [...t, u.activityId]
|
|
4196
4145
|
});
|
|
4197
|
-
} }),
|
|
4146
|
+
} }), Mo = ({
|
|
4198
4147
|
basePath: e,
|
|
4199
4148
|
parentId: t,
|
|
4200
4149
|
isMember: n,
|
|
4201
|
-
functions: { list: s, create: o, edit: l, like:
|
|
4150
|
+
functions: { list: s, create: o, edit: l, like: m, unlike: a, join: i, leave: c }
|
|
4202
4151
|
}) => {
|
|
4203
|
-
const u =
|
|
4152
|
+
const u = P(), f = At(), p = ye(je), {
|
|
4204
4153
|
data: h,
|
|
4205
4154
|
error: _,
|
|
4206
|
-
isLoading:
|
|
4155
|
+
isLoading: v,
|
|
4207
4156
|
isFetching: g
|
|
4208
4157
|
} = cn({
|
|
4209
4158
|
queryKey: [e, t],
|
|
@@ -4213,46 +4162,46 @@ const Mo = ({ isOpen: e = !1, count: t = 0, children: n }) => {
|
|
|
4213
4162
|
queryKey: [e, t],
|
|
4214
4163
|
user: p,
|
|
4215
4164
|
mutationFn: o
|
|
4216
|
-
}), { mutate:
|
|
4165
|
+
}), { mutate: x } = fe(E), $ = Ns({
|
|
4217
4166
|
queryClient: f,
|
|
4218
4167
|
queryKey: [e, t],
|
|
4219
|
-
mutationFn: async (
|
|
4168
|
+
mutationFn: async (k) => await l(k)
|
|
4220
4169
|
}), {
|
|
4221
4170
|
mutate: T
|
|
4222
|
-
} = fe(
|
|
4171
|
+
} = fe($), M = Ds({
|
|
4223
4172
|
queryClient: f,
|
|
4224
4173
|
queryKey: [e, t],
|
|
4225
|
-
mutationFn:
|
|
4174
|
+
mutationFn: m
|
|
4226
4175
|
}), {
|
|
4227
4176
|
mutate: Q
|
|
4228
|
-
} = fe(M), V =
|
|
4177
|
+
} = fe(M), V = Ps({
|
|
4229
4178
|
queryClient: f,
|
|
4230
4179
|
queryKey: [e, t],
|
|
4231
4180
|
user: p,
|
|
4232
|
-
mutationFn: async ({ activityId:
|
|
4233
|
-
var
|
|
4234
|
-
const
|
|
4235
|
-
(K) => K.id ===
|
|
4236
|
-
)),
|
|
4181
|
+
mutationFn: async ({ activityId: k }) => {
|
|
4182
|
+
var L, U, G;
|
|
4183
|
+
const Y = h && (h == null ? void 0 : h.find(
|
|
4184
|
+
(K) => K.id === k
|
|
4185
|
+
)), B = (G = (U = (L = Y == null ? void 0 : Y.latest_reactions) == null ? void 0 : L.like) == null ? void 0 : U.find(
|
|
4237
4186
|
(K) => K.user_id === (p == null ? void 0 : p.id)
|
|
4238
|
-
)) == null ? void 0 :
|
|
4239
|
-
await a({ reactionId:
|
|
4187
|
+
)) == null ? void 0 : G.id;
|
|
4188
|
+
await a({ reactionId: B || "", activityId: k });
|
|
4240
4189
|
}
|
|
4241
4190
|
}), {
|
|
4242
|
-
mutate:
|
|
4243
|
-
} = fe(V),
|
|
4244
|
-
({ activityId:
|
|
4191
|
+
mutate: w
|
|
4192
|
+
} = fe(V), F = Ee(
|
|
4193
|
+
({ activityId: k }) => Q({ activityId: k }),
|
|
4245
4194
|
[Q]
|
|
4246
4195
|
), q = Ee(
|
|
4247
|
-
({ activityId:
|
|
4248
|
-
[
|
|
4196
|
+
({ activityId: k }) => w({ activityId: k }),
|
|
4197
|
+
[w]
|
|
4249
4198
|
);
|
|
4250
|
-
return _ ? /* @__PURE__ */ r.jsx(
|
|
4199
|
+
return _ ? /* @__PURE__ */ r.jsx(rt, { variant: "error", text: _.message }) : v ? /* @__PURE__ */ r.jsx(be, { style: { height: "400px" } }) : /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
|
|
4251
4200
|
/* @__PURE__ */ r.jsx(
|
|
4252
|
-
|
|
4201
|
+
An,
|
|
4253
4202
|
{
|
|
4254
4203
|
contentType: "post",
|
|
4255
|
-
createPost:
|
|
4204
|
+
createPost: x,
|
|
4256
4205
|
membershipRequiredToPost: {
|
|
4257
4206
|
isMember: n,
|
|
4258
4207
|
required: !0,
|
|
@@ -4262,63 +4211,60 @@ const Mo = ({ isOpen: e = !1, count: t = 0, children: n }) => {
|
|
|
4262
4211
|
}
|
|
4263
4212
|
}
|
|
4264
4213
|
),
|
|
4265
|
-
!g && Array.isArray(h) && (h == null ? void 0 : h.map((
|
|
4266
|
-
var
|
|
4267
|
-
const
|
|
4268
|
-
return /* @__PURE__ */ r.
|
|
4269
|
-
|
|
4270
|
-
|
|
4271
|
-
{
|
|
4272
|
-
|
|
4273
|
-
|
|
4274
|
-
|
|
4275
|
-
|
|
4276
|
-
|
|
4277
|
-
|
|
4278
|
-
|
|
4279
|
-
|
|
4280
|
-
|
|
4281
|
-
|
|
4282
|
-
|
|
4283
|
-
|
|
4284
|
-
|
|
4285
|
-
|
|
4286
|
-
}
|
|
4287
|
-
},
|
|
4288
|
-
userLiked: ((te = w == null ? void 0 : w.own_reactions) == null ? void 0 : te.like) && ((X = w == null ? void 0 : w.own_reactions) == null ? void 0 : X.like.length) > 0,
|
|
4289
|
-
likes: (w == null ? void 0 : w.reaction_counts.like) || 0,
|
|
4290
|
-
comments: (w == null ? void 0 : w.reaction_counts.reply) || 0
|
|
4214
|
+
!g && Array.isArray(h) && (h == null ? void 0 : h.map((k) => {
|
|
4215
|
+
var L, U, G, K, ie, le, se, R, ee, oe, ce, te;
|
|
4216
|
+
const Y = ((L = k == null ? void 0 : k.actor) == null ? void 0 : L.id) === (p == null ? void 0 : p.id), B = Ft(n, Y);
|
|
4217
|
+
return /* @__PURE__ */ r.jsx(
|
|
4218
|
+
Rt,
|
|
4219
|
+
{
|
|
4220
|
+
content: {
|
|
4221
|
+
type: "post",
|
|
4222
|
+
body: k == null ? void 0 : k.content,
|
|
4223
|
+
canLike: B,
|
|
4224
|
+
createdAt: (k == null ? void 0 : k.time) || "",
|
|
4225
|
+
slugs: { parentId: t, activityId: k == null ? void 0 : k.id },
|
|
4226
|
+
slug: k == null ? void 0 : k.id,
|
|
4227
|
+
author: {
|
|
4228
|
+
id: (U = k == null ? void 0 : k.actor) == null ? void 0 : U.id,
|
|
4229
|
+
name: `${(K = (G = k == null ? void 0 : k.actor) == null ? void 0 : G.data) == null ? void 0 : K.name}`,
|
|
4230
|
+
organization: (le = (ie = k == null ? void 0 : k.actor) == null ? void 0 : ie.data) == null ? void 0 : le.organization,
|
|
4231
|
+
jobTitle: (R = (se = k == null ? void 0 : k.actor) == null ? void 0 : se.data) == null ? void 0 : R.jobTitle,
|
|
4232
|
+
image: {
|
|
4233
|
+
thumbnail: ((oe = (ee = k == null ? void 0 : k.actor) == null ? void 0 : ee.data) == null ? void 0 : oe.thumbnail) || void 0
|
|
4234
|
+
}
|
|
4291
4235
|
},
|
|
4292
|
-
|
|
4293
|
-
|
|
4294
|
-
|
|
4236
|
+
userLiked: ((ce = k == null ? void 0 : k.own_reactions) == null ? void 0 : ce.like) && ((te = k == null ? void 0 : k.own_reactions) == null ? void 0 : te.like.length) > 0,
|
|
4237
|
+
likes: (k == null ? void 0 : k.reaction_counts.like) || 0,
|
|
4238
|
+
comments: (k == null ? void 0 : k.reaction_counts.reply) || 0
|
|
4239
|
+
},
|
|
4240
|
+
links: {
|
|
4241
|
+
post: `${e}/${t}/${k == null ? void 0 : k.id}`,
|
|
4242
|
+
comments: `${e}/${t}/${k == null ? void 0 : k.id}`
|
|
4243
|
+
},
|
|
4244
|
+
functions: {
|
|
4245
|
+
content: {
|
|
4246
|
+
createContent: () => null,
|
|
4247
|
+
deleteContent: () => null,
|
|
4248
|
+
updateContent: (ue, me) => T({ activityInfo: ue, content: me })
|
|
4295
4249
|
},
|
|
4296
|
-
|
|
4297
|
-
|
|
4298
|
-
|
|
4299
|
-
deleteContent: () => null,
|
|
4300
|
-
updateContent: (ne, me) => T({ activityInfo: ne, content: me })
|
|
4301
|
-
},
|
|
4302
|
-
likes: {
|
|
4303
|
-
createLike: () => {
|
|
4304
|
-
N({ activityId: w == null ? void 0 : w.id });
|
|
4305
|
-
},
|
|
4306
|
-
deleteLike: () => {
|
|
4307
|
-
q({ activityId: w == null ? void 0 : w.id });
|
|
4308
|
-
}
|
|
4250
|
+
likes: {
|
|
4251
|
+
createLike: () => {
|
|
4252
|
+
F({ activityId: k == null ? void 0 : k.id });
|
|
4309
4253
|
},
|
|
4310
|
-
|
|
4311
|
-
|
|
4254
|
+
deleteLike: () => {
|
|
4255
|
+
q({ activityId: k == null ? void 0 : k.id });
|
|
4312
4256
|
}
|
|
4313
4257
|
},
|
|
4314
|
-
|
|
4258
|
+
comments: {
|
|
4259
|
+
openComments: () => null
|
|
4260
|
+
}
|
|
4315
4261
|
}
|
|
4316
|
-
|
|
4317
|
-
|
|
4318
|
-
|
|
4262
|
+
},
|
|
4263
|
+
k == null ? void 0 : k.id
|
|
4264
|
+
);
|
|
4319
4265
|
}))
|
|
4320
4266
|
] });
|
|
4321
|
-
},
|
|
4267
|
+
}, Fs = ({
|
|
4322
4268
|
queryClient: e,
|
|
4323
4269
|
queryKey: t,
|
|
4324
4270
|
mutationFn: n
|
|
@@ -4337,7 +4283,7 @@ const Mo = ({ isOpen: e = !1, count: t = 0, children: n }) => {
|
|
|
4337
4283
|
})), { previousActivity: i };
|
|
4338
4284
|
}, onSettled: () => {
|
|
4339
4285
|
e.invalidateQueries({ queryKey: t });
|
|
4340
|
-
} }),
|
|
4286
|
+
} }), Rs = ({
|
|
4341
4287
|
queryClient: e,
|
|
4342
4288
|
queryKey: t,
|
|
4343
4289
|
mutationFn: n
|
|
@@ -4345,49 +4291,49 @@ const Mo = ({ isOpen: e = !1, count: t = 0, children: n }) => {
|
|
|
4345
4291
|
mutationFn: n,
|
|
4346
4292
|
onMutate: async ({
|
|
4347
4293
|
replyInfo: l,
|
|
4348
|
-
content: { body:
|
|
4294
|
+
content: { body: m }
|
|
4349
4295
|
}) => {
|
|
4350
4296
|
var c, u, f;
|
|
4351
|
-
if (
|
|
4297
|
+
if (m.length === 0)
|
|
4352
4298
|
return;
|
|
4353
4299
|
await e.cancelQueries({ queryKey: t });
|
|
4354
4300
|
const a = e.getQueryData(t);
|
|
4355
4301
|
if (!a || !((c = a == null ? void 0 : a.latest_reactions) != null && c.reply))
|
|
4356
4302
|
return;
|
|
4357
|
-
const i = (f = (u = a == null ? void 0 : a.latest_reactions) == null ? void 0 : u.reply) == null ? void 0 : f.map((p) => (p.id === l.replySlug && (p.data.content =
|
|
4303
|
+
const i = (f = (u = a == null ? void 0 : a.latest_reactions) == null ? void 0 : u.reply) == null ? void 0 : f.map((p) => (p.id === l.replySlug && (p.data.content = m), p));
|
|
4358
4304
|
return e.setQueryData(t, () => ({
|
|
4359
4305
|
...a,
|
|
4360
4306
|
latest_reactions: { reply: i }
|
|
4361
4307
|
})), { previousActivity: a };
|
|
4362
4308
|
},
|
|
4363
|
-
onError: (l,
|
|
4309
|
+
onError: (l, m, a) => {
|
|
4364
4310
|
e.setQueryData(t, a.previousActivity);
|
|
4365
4311
|
}
|
|
4366
|
-
}),
|
|
4312
|
+
}), Os = ({
|
|
4367
4313
|
queryClient: e,
|
|
4368
4314
|
queryKey: t,
|
|
4369
4315
|
mutationFn: n
|
|
4370
|
-
}) => ({ mutationFn: n, onMutate: async ({ replyId:
|
|
4316
|
+
}) => ({ mutationFn: n, onMutate: async ({ replyId: m }) => {
|
|
4371
4317
|
var c, u;
|
|
4372
4318
|
await e.cancelQueries({ queryKey: t });
|
|
4373
4319
|
const a = e.getQueryData(t), i = (u = (c = a == null ? void 0 : a.latest_reactions) == null ? void 0 : c.reply) == null ? void 0 : u.map((f) => {
|
|
4374
4320
|
var p;
|
|
4375
|
-
return f.id ===
|
|
4321
|
+
return f.id === m && ((p = f.children_counts) != null && p.like ? f.children_counts.like += 1 : f.children_counts = { like: 1 }), f;
|
|
4376
4322
|
});
|
|
4377
4323
|
return e.setQueryData(t, () => ({
|
|
4378
4324
|
...a,
|
|
4379
4325
|
latest_reactions: { reply: i }
|
|
4380
4326
|
})), { previousActivity: a };
|
|
4381
|
-
}, onError: (
|
|
4327
|
+
}, onError: (m, a, i) => {
|
|
4382
4328
|
e.setQueryData(t, i.previousActivity);
|
|
4383
|
-
}, onSuccess: (
|
|
4329
|
+
}, onSuccess: (m) => {
|
|
4384
4330
|
var c;
|
|
4385
|
-
const a = e.getQueryData(t), i = (c = a == null ? void 0 : a.latest_reactions.reply) == null ? void 0 : c.map((u) => (u.id ===
|
|
4331
|
+
const a = e.getQueryData(t), i = (c = a == null ? void 0 : a.latest_reactions.reply) == null ? void 0 : c.map((u) => (u.id === m.id && (u.latest_children.like ? u.latest_children.like.push(m) : u.latest_children.like = [m]), u));
|
|
4386
4332
|
return e.setQueryData(t, () => ({
|
|
4387
4333
|
...a,
|
|
4388
4334
|
latest_reactions: { reply: i }
|
|
4389
4335
|
})), { previousActivity: a };
|
|
4390
|
-
} }),
|
|
4336
|
+
} }), Ls = ({
|
|
4391
4337
|
queryClient: e,
|
|
4392
4338
|
queryKey: t,
|
|
4393
4339
|
user: n,
|
|
@@ -4413,38 +4359,38 @@ const Mo = ({ isOpen: e = !1, count: t = 0, children: n }) => {
|
|
|
4413
4359
|
const u = (f = c.latest_reactions.reply) == null ? void 0 : f.map((p) => {
|
|
4414
4360
|
var h;
|
|
4415
4361
|
return p.id === i ? (h = p.latest_children.reply) == null ? void 0 : h.filter(
|
|
4416
|
-
(
|
|
4362
|
+
(v) => v.user_id !== (n == null ? void 0 : n.id)
|
|
4417
4363
|
) : p;
|
|
4418
4364
|
});
|
|
4419
4365
|
return e.setQueryData(t, () => ({
|
|
4420
4366
|
...c,
|
|
4421
4367
|
latest_reactions: { reply: u }
|
|
4422
4368
|
})), { previousActivity: c };
|
|
4423
|
-
} }),
|
|
4369
|
+
} }), Bs = ({
|
|
4424
4370
|
basePath: e,
|
|
4425
4371
|
parentId: t,
|
|
4426
4372
|
activityId: n,
|
|
4427
4373
|
repliesList: s,
|
|
4428
4374
|
isMember: o,
|
|
4429
|
-
functions: { createReply: l, editReply:
|
|
4375
|
+
functions: { createReply: l, editReply: m, like: a, unlike: i, join: c, leave: u }
|
|
4430
4376
|
}) => {
|
|
4431
|
-
const f =
|
|
4377
|
+
const f = P(), p = At(), h = ye(je), _ = Fs({
|
|
4432
4378
|
queryClient: p,
|
|
4433
4379
|
queryKey: [e, t, n],
|
|
4434
4380
|
mutationFn: l
|
|
4435
|
-
}), { mutate:
|
|
4381
|
+
}), { mutate: v } = fe(_), g = Rs({
|
|
4436
4382
|
queryClient: p,
|
|
4437
4383
|
queryKey: [e, t, n],
|
|
4438
|
-
mutationFn: async (
|
|
4384
|
+
mutationFn: async (w) => m(w)
|
|
4439
4385
|
}), {
|
|
4440
4386
|
mutate: E
|
|
4441
|
-
} = fe(g),
|
|
4387
|
+
} = fe(g), x = Os({
|
|
4442
4388
|
queryClient: p,
|
|
4443
4389
|
queryKey: [e, t, n],
|
|
4444
4390
|
mutationFn: a
|
|
4445
4391
|
}), {
|
|
4446
|
-
mutate:
|
|
4447
|
-
} = fe(
|
|
4392
|
+
mutate: $
|
|
4393
|
+
} = fe(x), T = Ls({
|
|
4448
4394
|
queryClient: p,
|
|
4449
4395
|
queryKey: [e, t, n],
|
|
4450
4396
|
user: h,
|
|
@@ -4452,18 +4398,18 @@ const Mo = ({ isOpen: e = !1, count: t = 0, children: n }) => {
|
|
|
4452
4398
|
}), {
|
|
4453
4399
|
mutate: M
|
|
4454
4400
|
} = fe(T), Q = Ee(
|
|
4455
|
-
({ replyId:
|
|
4456
|
-
[
|
|
4401
|
+
({ replyId: w }) => $({ replyId: w }),
|
|
4402
|
+
[$]
|
|
4457
4403
|
), V = Ee(
|
|
4458
|
-
({ replyId:
|
|
4404
|
+
({ replyId: w }) => M({ replyId: w }),
|
|
4459
4405
|
[M]
|
|
4460
4406
|
);
|
|
4461
4407
|
return /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
|
|
4462
4408
|
/* @__PURE__ */ r.jsx(
|
|
4463
|
-
|
|
4409
|
+
An,
|
|
4464
4410
|
{
|
|
4465
4411
|
contentType: "post",
|
|
4466
|
-
createPost:
|
|
4412
|
+
createPost: v,
|
|
4467
4413
|
membershipRequiredToPost: {
|
|
4468
4414
|
isMember: o,
|
|
4469
4415
|
required: !0,
|
|
@@ -4473,37 +4419,37 @@ const Mo = ({ isOpen: e = !1, count: t = 0, children: n }) => {
|
|
|
4473
4419
|
}
|
|
4474
4420
|
}
|
|
4475
4421
|
),
|
|
4476
|
-
(s == null ? void 0 : s.length) === 0 || (s == null ? void 0 : s.map((
|
|
4477
|
-
var
|
|
4478
|
-
const
|
|
4422
|
+
(s == null ? void 0 : s.length) === 0 || (s == null ? void 0 : s.map((w) => {
|
|
4423
|
+
var Y, B, L, U, G, K, ie, le, se, R, ee, oe, ce, te, ue, me, pe;
|
|
4424
|
+
const F = ((Y = w == null ? void 0 : w.latest_children) == null ? void 0 : Y.like) && ((B = w == null ? void 0 : w.latest_children) == null ? void 0 : B.like.filter(
|
|
4479
4425
|
(ge) => ge.user_id === (h == null ? void 0 : h.id)
|
|
4480
|
-
)), q = ((
|
|
4426
|
+
)), q = ((L = w == null ? void 0 : w.user) == null ? void 0 : L.id) === (h == null ? void 0 : h.id), k = Ft(o, q);
|
|
4481
4427
|
return /* @__PURE__ */ r.jsx(
|
|
4482
|
-
|
|
4428
|
+
Rt,
|
|
4483
4429
|
{
|
|
4484
4430
|
content: {
|
|
4485
4431
|
type: "post",
|
|
4486
|
-
body: typeof
|
|
4487
|
-
canLike:
|
|
4488
|
-
createdAt:
|
|
4432
|
+
body: typeof w.data.content == "string" ? (U = w == null ? void 0 : w.data) == null ? void 0 : U.content : ((K = (G = w == null ? void 0 : w.data) == null ? void 0 : G.content) == null ? void 0 : K.text) || "",
|
|
4433
|
+
canLike: k,
|
|
4434
|
+
createdAt: w == null ? void 0 : w.created_at,
|
|
4489
4435
|
slugs: {
|
|
4490
4436
|
question: `${e}/${t}/${n}`,
|
|
4491
4437
|
parentId: t,
|
|
4492
|
-
reply:
|
|
4438
|
+
reply: w == null ? void 0 : w.id
|
|
4493
4439
|
},
|
|
4494
|
-
slug: `${e}/${t}/${n}#${
|
|
4440
|
+
slug: `${e}/${t}/${n}#${w == null ? void 0 : w.id}`,
|
|
4495
4441
|
author: {
|
|
4496
|
-
id: (ie =
|
|
4497
|
-
name: (
|
|
4498
|
-
organization: (
|
|
4499
|
-
jobTitle: (
|
|
4442
|
+
id: (ie = w == null ? void 0 : w.user) == null ? void 0 : ie.id,
|
|
4443
|
+
name: (se = (le = w == null ? void 0 : w.user) == null ? void 0 : le.data) == null ? void 0 : se.name,
|
|
4444
|
+
organization: (ee = (R = w == null ? void 0 : w.user) == null ? void 0 : R.data) == null ? void 0 : ee.organization,
|
|
4445
|
+
jobTitle: (ce = (oe = w == null ? void 0 : w.user) == null ? void 0 : oe.data) == null ? void 0 : ce.jobTitle,
|
|
4500
4446
|
image: {
|
|
4501
|
-
thumbnail: ((
|
|
4447
|
+
thumbnail: ((ue = (te = w == null ? void 0 : w.user) == null ? void 0 : te.data) == null ? void 0 : ue.thumbnail) || void 0
|
|
4502
4448
|
}
|
|
4503
4449
|
},
|
|
4504
|
-
userLiked: !!(
|
|
4505
|
-
likes: ((me =
|
|
4506
|
-
comments: ((pe =
|
|
4450
|
+
userLiked: !!(F != null && F.length),
|
|
4451
|
+
likes: ((me = w == null ? void 0 : w.children_counts) == null ? void 0 : me.like) || 0,
|
|
4452
|
+
comments: ((pe = w == null ? void 0 : w.children_counts) == null ? void 0 : pe.reply) || 0
|
|
4507
4453
|
},
|
|
4508
4454
|
functions: {
|
|
4509
4455
|
content: {
|
|
@@ -4512,8 +4458,8 @@ const Mo = ({ isOpen: e = !1, count: t = 0, children: n }) => {
|
|
|
4512
4458
|
updateContent: (ge, Se) => E({ replyInfo: ge, content: Se })
|
|
4513
4459
|
},
|
|
4514
4460
|
likes: {
|
|
4515
|
-
createLike: () => Q({ replyId:
|
|
4516
|
-
deleteLike: () => V({ replyId:
|
|
4461
|
+
createLike: () => Q({ replyId: w == null ? void 0 : w.id }),
|
|
4462
|
+
deleteLike: () => V({ replyId: w == null ? void 0 : w.id })
|
|
4517
4463
|
},
|
|
4518
4464
|
comments: {
|
|
4519
4465
|
openComments: () => {
|
|
@@ -4521,35 +4467,35 @@ const Mo = ({ isOpen: e = !1, count: t = 0, children: n }) => {
|
|
|
4521
4467
|
}
|
|
4522
4468
|
}
|
|
4523
4469
|
},
|
|
4524
|
-
|
|
4470
|
+
w == null ? void 0 : w.id
|
|
4525
4471
|
);
|
|
4526
4472
|
}))
|
|
4527
4473
|
] });
|
|
4528
|
-
},
|
|
4474
|
+
}, Is = ({
|
|
4529
4475
|
queryClient: e,
|
|
4530
4476
|
queryKey: t,
|
|
4531
4477
|
mutationFn: n
|
|
4532
4478
|
}) => ({
|
|
4533
4479
|
mutationFn: n,
|
|
4534
4480
|
onMutate: async ({
|
|
4535
|
-
activityInfo:
|
|
4481
|
+
activityInfo: m,
|
|
4536
4482
|
content: { body: a }
|
|
4537
4483
|
}) => {
|
|
4538
4484
|
if (a.length === 0)
|
|
4539
4485
|
return;
|
|
4540
4486
|
await e.cancelQueries({ queryKey: t });
|
|
4541
4487
|
const i = e.getQueryData(t);
|
|
4542
|
-
return i && i.id === (
|
|
4488
|
+
return i && i.id === (m == null ? void 0 : m.activityId) && (i.content = a), e.setQueryData(t, () => ({
|
|
4543
4489
|
...i
|
|
4544
4490
|
})), { previousActivity: i };
|
|
4545
4491
|
},
|
|
4546
|
-
onError: (
|
|
4492
|
+
onError: (m, a, i) => {
|
|
4547
4493
|
e.setQueryData(t, i.previousActivity);
|
|
4548
4494
|
},
|
|
4549
4495
|
onSettled: () => {
|
|
4550
4496
|
e.invalidateQueries({ queryKey: t });
|
|
4551
4497
|
}
|
|
4552
|
-
}),
|
|
4498
|
+
}), Hs = ({
|
|
4553
4499
|
queryClient: e,
|
|
4554
4500
|
queryKey: t,
|
|
4555
4501
|
mutationFn: n
|
|
@@ -4569,7 +4515,7 @@ const Mo = ({ isOpen: e = !1, count: t = 0, children: n }) => {
|
|
|
4569
4515
|
})), { previousActivity: i };
|
|
4570
4516
|
}, onSettled: () => {
|
|
4571
4517
|
e.invalidateQueries({ queryKey: t });
|
|
4572
|
-
} }),
|
|
4518
|
+
} }), Qs = ({
|
|
4573
4519
|
queryClient: e,
|
|
4574
4520
|
queryKey: t,
|
|
4575
4521
|
user: n,
|
|
@@ -4599,7 +4545,7 @@ const Mo = ({ isOpen: e = !1, count: t = 0, children: n }) => {
|
|
|
4599
4545
|
})), { previousActivity: u };
|
|
4600
4546
|
}, onSettled: () => {
|
|
4601
4547
|
e.invalidateQueries({ queryKey: t });
|
|
4602
|
-
} }),
|
|
4548
|
+
} }), Co = ({
|
|
4603
4549
|
basePath: e,
|
|
4604
4550
|
parentId: t,
|
|
4605
4551
|
activityId: n,
|
|
@@ -4607,7 +4553,7 @@ const Mo = ({ isOpen: e = !1, count: t = 0, children: n }) => {
|
|
|
4607
4553
|
functions: {
|
|
4608
4554
|
get: o,
|
|
4609
4555
|
editActivity: l,
|
|
4610
|
-
likeActivity:
|
|
4556
|
+
likeActivity: m,
|
|
4611
4557
|
unlikeActivity: a,
|
|
4612
4558
|
createReply: i,
|
|
4613
4559
|
editReply: c,
|
|
@@ -4617,60 +4563,60 @@ const Mo = ({ isOpen: e = !1, count: t = 0, children: n }) => {
|
|
|
4617
4563
|
leave: h
|
|
4618
4564
|
}
|
|
4619
4565
|
}) => {
|
|
4620
|
-
var
|
|
4621
|
-
const _ = ye(je),
|
|
4566
|
+
var L, U, G, K, ie, le, se, R, ee, oe, ce;
|
|
4567
|
+
const _ = ye(je), v = At(), {
|
|
4622
4568
|
data: g,
|
|
4623
4569
|
error: E,
|
|
4624
|
-
isLoading:
|
|
4625
|
-
isFetching:
|
|
4570
|
+
isLoading: x,
|
|
4571
|
+
isFetching: $
|
|
4626
4572
|
} = cn({
|
|
4627
4573
|
queryKey: [e, t, n],
|
|
4628
4574
|
queryFn: o
|
|
4629
|
-
}), T =
|
|
4630
|
-
queryClient:
|
|
4575
|
+
}), T = Is({
|
|
4576
|
+
queryClient: v,
|
|
4631
4577
|
queryKey: [e, t, n],
|
|
4632
|
-
mutationFn: async (
|
|
4578
|
+
mutationFn: async (te) => await l(te)
|
|
4633
4579
|
}), {
|
|
4634
4580
|
mutate: M
|
|
4635
|
-
} = fe(T), Q =
|
|
4636
|
-
queryClient:
|
|
4581
|
+
} = fe(T), Q = Hs({
|
|
4582
|
+
queryClient: v,
|
|
4637
4583
|
queryKey: [e, t, n],
|
|
4638
|
-
mutationFn:
|
|
4584
|
+
mutationFn: m
|
|
4639
4585
|
}), {
|
|
4640
4586
|
mutate: V
|
|
4641
|
-
} = fe(Q),
|
|
4642
|
-
queryClient:
|
|
4587
|
+
} = fe(Q), w = Qs({
|
|
4588
|
+
queryClient: v,
|
|
4643
4589
|
queryKey: [e, t, n],
|
|
4644
4590
|
user: _,
|
|
4645
4591
|
mutationFn: async () => {
|
|
4646
|
-
var
|
|
4647
|
-
const
|
|
4592
|
+
var ue, me, pe;
|
|
4593
|
+
const te = (pe = (me = (ue = g == null ? void 0 : g.latest_reactions) == null ? void 0 : ue.like) == null ? void 0 : me.find(
|
|
4648
4594
|
(ge) => ge.user_id === (_ == null ? void 0 : _.id)
|
|
4649
4595
|
)) == null ? void 0 : pe.id;
|
|
4650
|
-
await a({ activityId: n, reactionId:
|
|
4596
|
+
await a({ activityId: n, reactionId: te });
|
|
4651
4597
|
},
|
|
4652
4598
|
activity: g
|
|
4653
4599
|
}), {
|
|
4654
|
-
mutate:
|
|
4655
|
-
} = fe(
|
|
4656
|
-
({ activityId:
|
|
4600
|
+
mutate: F
|
|
4601
|
+
} = fe(w), q = Ee(
|
|
4602
|
+
({ activityId: te }) => V({ activityId: te }),
|
|
4657
4603
|
[V]
|
|
4658
|
-
),
|
|
4659
|
-
async ({ activityId:
|
|
4660
|
-
[
|
|
4604
|
+
), k = Ee(
|
|
4605
|
+
async ({ activityId: te }) => F({ activityId: te }),
|
|
4606
|
+
[F]
|
|
4661
4607
|
);
|
|
4662
4608
|
if (E)
|
|
4663
|
-
return /* @__PURE__ */ r.jsx(
|
|
4664
|
-
if (
|
|
4609
|
+
return /* @__PURE__ */ r.jsx(rt, { variant: "error", text: E.message });
|
|
4610
|
+
if (x || $)
|
|
4665
4611
|
return /* @__PURE__ */ r.jsx(be, { style: { height: "400px" } });
|
|
4666
|
-
const
|
|
4612
|
+
const Y = ((L = g == null ? void 0 : g.actor) == null ? void 0 : L.id) === (_ == null ? void 0 : _.id), B = Ft(s, Y);
|
|
4667
4613
|
return /* @__PURE__ */ r.jsx(
|
|
4668
|
-
|
|
4614
|
+
Rt,
|
|
4669
4615
|
{
|
|
4670
4616
|
content: {
|
|
4671
4617
|
type: "post",
|
|
4672
4618
|
body: g == null ? void 0 : g.content,
|
|
4673
|
-
canLike:
|
|
4619
|
+
canLike: B,
|
|
4674
4620
|
createdAt: (g == null ? void 0 : g.time) || "",
|
|
4675
4621
|
slugs: {
|
|
4676
4622
|
question: `${t}/${n}`,
|
|
@@ -4680,27 +4626,27 @@ const Mo = ({ isOpen: e = !1, count: t = 0, children: n }) => {
|
|
|
4680
4626
|
slug: n,
|
|
4681
4627
|
author: {
|
|
4682
4628
|
id: (U = g == null ? void 0 : g.actor) == null ? void 0 : U.id,
|
|
4683
|
-
name: (
|
|
4629
|
+
name: (G = g == null ? void 0 : g.actor) == null ? void 0 : G.data.name,
|
|
4684
4630
|
organization: (K = g == null ? void 0 : g.actor) == null ? void 0 : K.data.organization,
|
|
4685
4631
|
jobTitle: (ie = g == null ? void 0 : g.actor) == null ? void 0 : ie.data.jobTitle,
|
|
4686
4632
|
image: {
|
|
4687
4633
|
thumbnail: ((le = g == null ? void 0 : g.actor) == null ? void 0 : le.data.thumbnail) || void 0
|
|
4688
4634
|
}
|
|
4689
4635
|
},
|
|
4690
|
-
userLiked: ((
|
|
4636
|
+
userLiked: ((se = g == null ? void 0 : g.own_reactions) == null ? void 0 : se.like) && ((R = g == null ? void 0 : g.own_reactions) == null ? void 0 : R.like.length) > 0,
|
|
4691
4637
|
likes: g && (g == null ? void 0 : g.reaction_counts.like),
|
|
4692
4638
|
comments: g && (g == null ? void 0 : g.reaction_counts.reply)
|
|
4693
4639
|
},
|
|
4694
|
-
originalAuthorId: (
|
|
4640
|
+
originalAuthorId: (ee = g == null ? void 0 : g.actor) == null ? void 0 : ee.id,
|
|
4695
4641
|
functions: {
|
|
4696
4642
|
content: {
|
|
4697
4643
|
createContent: () => console.log("create"),
|
|
4698
4644
|
deleteContent: () => console.log("delete"),
|
|
4699
|
-
updateContent: (
|
|
4645
|
+
updateContent: (te, ue) => M({ activityInfo: te, content: ue })
|
|
4700
4646
|
},
|
|
4701
4647
|
likes: {
|
|
4702
4648
|
createLike: () => q({ activityId: n }),
|
|
4703
|
-
deleteLike: () =>
|
|
4649
|
+
deleteLike: () => k({ activityId: n })
|
|
4704
4650
|
},
|
|
4705
4651
|
comments: {
|
|
4706
4652
|
openComments: () => {
|
|
@@ -4710,16 +4656,16 @@ const Mo = ({ isOpen: e = !1, count: t = 0, children: n }) => {
|
|
|
4710
4656
|
children: /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
|
|
4711
4657
|
/* @__PURE__ */ r.jsxs("h3", { children: [
|
|
4712
4658
|
"Comments (",
|
|
4713
|
-
((
|
|
4659
|
+
((oe = g == null ? void 0 : g.reaction_counts) == null ? void 0 : oe.reply) || 0,
|
|
4714
4660
|
")"
|
|
4715
4661
|
] }),
|
|
4716
4662
|
/* @__PURE__ */ r.jsx(
|
|
4717
|
-
|
|
4663
|
+
Bs,
|
|
4718
4664
|
{
|
|
4719
4665
|
basePath: e,
|
|
4720
4666
|
parentId: t,
|
|
4721
4667
|
activityId: n,
|
|
4722
|
-
repliesList: (
|
|
4668
|
+
repliesList: (ce = g == null ? void 0 : g.latest_reactions) == null ? void 0 : ce.reply,
|
|
4723
4669
|
isMember: s,
|
|
4724
4670
|
functions: {
|
|
4725
4671
|
createReply: i,
|
|
@@ -4743,85 +4689,85 @@ const Mo = ({ isOpen: e = !1, count: t = 0, children: n }) => {
|
|
|
4743
4689
|
image: { thumbnail: o }
|
|
4744
4690
|
});
|
|
4745
4691
|
export {
|
|
4746
|
-
|
|
4747
|
-
|
|
4748
|
-
|
|
4749
|
-
|
|
4750
|
-
|
|
4751
|
-
|
|
4692
|
+
Et as ASSETS_BUCKET,
|
|
4693
|
+
Mo as ActivitiesFeed,
|
|
4694
|
+
Co as ActivitySection,
|
|
4695
|
+
An as AddPost,
|
|
4696
|
+
io as BannerSection,
|
|
4697
|
+
ho as Breadcrumbs,
|
|
4752
4698
|
W as Button,
|
|
4753
|
-
|
|
4699
|
+
tt as ButtonWrapper,
|
|
4754
4700
|
as as CacheProvider,
|
|
4755
4701
|
xn as CollapsibleSection,
|
|
4756
|
-
|
|
4757
|
-
|
|
4702
|
+
xo as Columns,
|
|
4703
|
+
po as CommunityDetails,
|
|
4758
4704
|
os as Contributors,
|
|
4759
|
-
|
|
4705
|
+
Nn as ConversationContext,
|
|
4760
4706
|
gs as CookieBanner,
|
|
4761
|
-
|
|
4707
|
+
Eo as DiscussionConversation,
|
|
4762
4708
|
Cn as DiscussionForm,
|
|
4763
4709
|
$s as DiscussionLikes,
|
|
4764
|
-
|
|
4765
|
-
|
|
4766
|
-
|
|
4767
|
-
|
|
4768
|
-
|
|
4769
|
-
|
|
4770
|
-
|
|
4771
|
-
|
|
4710
|
+
Rt as DiscussionPost,
|
|
4711
|
+
To as DiscussionThread,
|
|
4712
|
+
Le as Divider,
|
|
4713
|
+
oo as DownloadSection,
|
|
4714
|
+
Re as EMAILS,
|
|
4715
|
+
vo as EmailHelperTextBox,
|
|
4716
|
+
rt as EmptyStateBox,
|
|
4717
|
+
go as Filters,
|
|
4772
4718
|
cs as FlagsProvider,
|
|
4773
4719
|
En as Footer,
|
|
4774
4720
|
_n as FullWidthSection,
|
|
4775
|
-
|
|
4721
|
+
fo as GlobalProviders,
|
|
4776
4722
|
Mn as Header,
|
|
4777
4723
|
Ur as HelperTextBox,
|
|
4778
4724
|
mn as HiddenFromScreenReaders,
|
|
4779
|
-
|
|
4725
|
+
uo as HideShowTextBox,
|
|
4780
4726
|
ke as HighlightedTextBox,
|
|
4781
4727
|
us as IntlProvider,
|
|
4782
4728
|
bs as InviteForm,
|
|
4783
|
-
|
|
4729
|
+
So as InviteModal,
|
|
4784
4730
|
yn as JoinButton,
|
|
4785
|
-
|
|
4786
|
-
|
|
4731
|
+
_o as LanguageSwitcher,
|
|
4732
|
+
nt as Link,
|
|
4787
4733
|
fs as LoadMore,
|
|
4788
|
-
|
|
4734
|
+
mo as LoadingBlock,
|
|
4789
4735
|
be as LoadingPlaceholder,
|
|
4790
4736
|
ns as LoadingState,
|
|
4791
4737
|
jn as Logo,
|
|
4792
|
-
|
|
4738
|
+
ao as LogoSection,
|
|
4793
4739
|
nn as MarkdownText,
|
|
4794
|
-
|
|
4795
|
-
|
|
4796
|
-
|
|
4740
|
+
lo as MarketingBox,
|
|
4741
|
+
Pt as Member,
|
|
4742
|
+
jo as MembersList,
|
|
4797
4743
|
Ts as Modal,
|
|
4798
4744
|
ps as MoreMenu,
|
|
4799
|
-
|
|
4745
|
+
co as NUMBER_OF_USERS,
|
|
4800
4746
|
Dn as Overlay,
|
|
4801
|
-
|
|
4802
|
-
|
|
4747
|
+
ko as PageLayout,
|
|
4748
|
+
bo as PasswordRules,
|
|
4803
4749
|
qr as Pill,
|
|
4804
|
-
|
|
4750
|
+
Dt as ProfilePicture,
|
|
4805
4751
|
es as ProgressBar,
|
|
4806
|
-
|
|
4807
|
-
|
|
4808
|
-
|
|
4752
|
+
wo as Rating,
|
|
4753
|
+
Bs as RepliesFeed,
|
|
4754
|
+
$o as ResponsesHeading,
|
|
4809
4755
|
Br as ResponsiveImage,
|
|
4810
4756
|
vs as SearchForm,
|
|
4811
4757
|
Zr as Span,
|
|
4812
|
-
|
|
4813
|
-
|
|
4758
|
+
$t as StatusBanner,
|
|
4759
|
+
yo as Tags,
|
|
4814
4760
|
Ir as Tooltip,
|
|
4815
4761
|
je as UserContext,
|
|
4816
4762
|
ds as UserProvider,
|
|
4817
|
-
|
|
4763
|
+
ne as VisuallyHidden,
|
|
4818
4764
|
Ms as addAriaProps,
|
|
4819
4765
|
kn as getMember,
|
|
4820
4766
|
Xe as headerData,
|
|
4821
4767
|
Ao as mapGetStreamData,
|
|
4822
4768
|
jr as useCurrentPath,
|
|
4823
4769
|
Ce as useEffectAfterMount,
|
|
4824
|
-
|
|
4770
|
+
et as useScreenWidth,
|
|
4825
4771
|
Sr as useScrollListener,
|
|
4826
|
-
|
|
4772
|
+
so as useScrollToHash
|
|
4827
4773
|
};
|