@apolitical/component-library 1.17.2-beta.0 → 1.17.2-rc.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/index.js +9 -9
- package/index.mjs +71 -65
- package/layout/page-layout/components/header/header.data.d.ts +29 -33
- package/package.json +1 -1
package/index.mjs
CHANGED
|
@@ -54,7 +54,7 @@ var An = { exports: {} };
|
|
|
54
54
|
})(An);
|
|
55
55
|
var Qs = An.exports;
|
|
56
56
|
const E = /* @__PURE__ */ Hs(Qs), Us = ({ element: e = "span", showOnFocus: t = !0, children: n, ...r }) => D.createElement(e, { ...r, className: E("hidden", { "show-on-focus": t }), children: n }), ce = We(Us), Ws = ({ element: e = "span", children: t = null, ...n }) => D.createElement(e, { ...n, "aria-hidden": !0 }, t), Fn = We(Ws);
|
|
57
|
-
var
|
|
57
|
+
var qt = { exports: {} }, Ye = {};
|
|
58
58
|
/**
|
|
59
59
|
* @license React
|
|
60
60
|
* react-jsx-runtime.production.min.js
|
|
@@ -262,8 +262,8 @@ function Vs() {
|
|
|
262
262
|
}
|
|
263
263
|
var je = !1, be;
|
|
264
264
|
{
|
|
265
|
-
var
|
|
266
|
-
be = new
|
|
265
|
+
var Z = typeof WeakMap == "function" ? WeakMap : Map;
|
|
266
|
+
be = new Z();
|
|
267
267
|
}
|
|
268
268
|
function ae(f, j) {
|
|
269
269
|
if (!f || je)
|
|
@@ -315,18 +315,18 @@ function Vs() {
|
|
|
315
315
|
if (Me && C && typeof Me.stack == "string") {
|
|
316
316
|
for (var L = Me.stack.split(`
|
|
317
317
|
`), pe = C.stack.split(`
|
|
318
|
-
`),
|
|
318
|
+
`), q = L.length - 1, te = pe.length - 1; q >= 1 && te >= 0 && L[q] !== pe[te]; )
|
|
319
319
|
te--;
|
|
320
|
-
for (;
|
|
321
|
-
if (L[
|
|
322
|
-
if (
|
|
320
|
+
for (; q >= 1 && te >= 0; q--, te--)
|
|
321
|
+
if (L[q] !== pe[te]) {
|
|
322
|
+
if (q !== 1 || te !== 1)
|
|
323
323
|
do
|
|
324
|
-
if (
|
|
324
|
+
if (q--, te--, te < 0 || L[q] !== pe[te]) {
|
|
325
325
|
var ye = `
|
|
326
|
-
` + L[
|
|
326
|
+
` + L[q].replace(" at new ", " at ");
|
|
327
327
|
return f.displayName && ye.includes("<anonymous>") && (ye = ye.replace("<anonymous>", f.displayName)), typeof f == "function" && be.set(f, ye), ye;
|
|
328
328
|
}
|
|
329
|
-
while (
|
|
329
|
+
while (q >= 1 && te >= 0);
|
|
330
330
|
break;
|
|
331
331
|
}
|
|
332
332
|
}
|
|
@@ -392,8 +392,8 @@ function Vs() {
|
|
|
392
392
|
throw pe.name = "Invariant Violation", pe;
|
|
393
393
|
}
|
|
394
394
|
L = f[B](j, B, C, S, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
|
|
395
|
-
} catch (
|
|
396
|
-
L =
|
|
395
|
+
} catch (q) {
|
|
396
|
+
L = q;
|
|
397
397
|
}
|
|
398
398
|
L && !(L instanceof Error) && (Le(H), 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).", C || "React class", S, B, typeof L), Le(null)), L instanceof Error && !(L.message in Pe) && (Pe[L.message] = !0, Le(H), x("Failed %s type: %s", S, L.message), Le(null));
|
|
399
399
|
}
|
|
@@ -510,9 +510,9 @@ function Vs() {
|
|
|
510
510
|
for (W in j)
|
|
511
511
|
ve.call(j, W) && !cs.hasOwnProperty(W) && (B[W] = j[W]);
|
|
512
512
|
if (f && f.defaultProps) {
|
|
513
|
-
var
|
|
514
|
-
for (W in
|
|
515
|
-
B[W] === void 0 && (B[W] =
|
|
513
|
+
var q = f.defaultProps;
|
|
514
|
+
for (W in q)
|
|
515
|
+
B[W] === void 0 && (B[W] = q[W]);
|
|
516
516
|
}
|
|
517
517
|
if (L || pe) {
|
|
518
518
|
var te = typeof f == "function" ? f.displayName || f.name || "Unknown" : f;
|
|
@@ -647,8 +647,8 @@ Check the top-level render call using <` + S + ">.");
|
|
|
647
647
|
(f === void 0 || typeof f == "object" && f !== null && Object.keys(f).length === 0) && (L += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
|
|
648
648
|
var pe = gs(H);
|
|
649
649
|
pe ? L += pe : L += mn();
|
|
650
|
-
var
|
|
651
|
-
f === null ?
|
|
650
|
+
var q;
|
|
651
|
+
f === null ? q = "null" : Ee(f) ? q = "array" : f !== void 0 && f.$$typeof === t ? (q = "<" + (k(f.type) || "Unknown") + " />", L = " Did you accidentally export a JSX literal instead of a component?") : q = typeof f, x("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", q, L);
|
|
652
652
|
}
|
|
653
653
|
var te = ps(f, j, S, H, W);
|
|
654
654
|
if (te == null)
|
|
@@ -679,8 +679,8 @@ Check the top-level render call using <` + S + ">.");
|
|
|
679
679
|
Ge.Fragment = r, Ge.jsx = ks, Ge.jsxs = js;
|
|
680
680
|
}()), Ge;
|
|
681
681
|
}
|
|
682
|
-
process.env.NODE_ENV === "production" ?
|
|
683
|
-
var s =
|
|
682
|
+
process.env.NODE_ENV === "production" ? qt.exports = zs() : qt.exports = Vs();
|
|
683
|
+
var s = qt.exports;
|
|
684
684
|
const Ys = () => {
|
|
685
685
|
const [e, t] = A(window.location.pathname), n = () => {
|
|
686
686
|
const r = window.location.pathname;
|
|
@@ -834,12 +834,12 @@ const et = (e = !0, t = !1, n = "window") => {
|
|
|
834
834
|
break;
|
|
835
835
|
}
|
|
836
836
|
return r;
|
|
837
|
-
},
|
|
837
|
+
}, qs = (e) => e.replace(/[A-Z]/g, (t) => `-${t.toLowerCase()}`), Zs = (e, t = "en") => new Date(e).toLocaleString(t, { day: "numeric", month: "short" }), Bn = (e, t = "en") => new Date(e).toLocaleString(t, {
|
|
838
838
|
weekday: "long",
|
|
839
839
|
day: "numeric",
|
|
840
840
|
month: "short",
|
|
841
841
|
year: "numeric"
|
|
842
|
-
}),
|
|
842
|
+
}), Zt = (e) => {
|
|
843
843
|
let i;
|
|
844
844
|
const l = vn(), a = vn(new Date(e));
|
|
845
845
|
try {
|
|
@@ -1709,7 +1709,7 @@ const br = ({ children: e, user: t }) => /* @__PURE__ */ s.jsx(Se.Provider, { va
|
|
|
1709
1709
|
o({ ...i, isLoading: !1 }), rr(5e3);
|
|
1710
1710
|
}).catch(() => o({ isLoading: !1 }));
|
|
1711
1711
|
}, []), /* @__PURE__ */ s.jsx(_r, { locale: n == null ? void 0 : n.locale, messages: n == null ? void 0 : n.messages, children: /* @__PURE__ */ s.jsx(As, { children: /* @__PURE__ */ s.jsx(br, { user: r, children: /* @__PURE__ */ s.jsx(fr, { children: /* @__PURE__ */ s.jsx(gr, { user: r, children: t }) }) }) }) });
|
|
1712
|
-
}, pt = "https://storage.googleapis.com/apolitical-assets/",
|
|
1712
|
+
}, pt = "https://storage.googleapis.com/apolitical-assets/", qe = {
|
|
1713
1713
|
general: "hello@apolitical.co",
|
|
1714
1714
|
support: "concierge@apolitical.co",
|
|
1715
1715
|
"data-protection": {
|
|
@@ -2078,7 +2078,7 @@ const rn = ({
|
|
|
2078
2078
|
}) => {
|
|
2079
2079
|
const l = P(), a = Gn(t);
|
|
2080
2080
|
a.name || (a.name = l.formatMessage({ id: `member_${typeof t == "string" ? t : "community"}` }));
|
|
2081
|
-
const { name: u, url: c, image: m } = a, d = Rr(a), p = n && n.createdAt ?
|
|
2081
|
+
const { name: u, url: c, image: m } = a, d = Rr(a), p = n && n.createdAt ? Zt(n.createdAt) : !1, h = n && n.createdAt ? Bn(n.createdAt) : "";
|
|
2082
2082
|
return D.createElement(e, {
|
|
2083
2083
|
className: E("member text-medium", i),
|
|
2084
2084
|
children: /* @__PURE__ */ s.jsxs(
|
|
@@ -2171,7 +2171,7 @@ const En = {
|
|
|
2171
2171
|
startDate: m
|
|
2172
2172
|
} = t;
|
|
2173
2173
|
if (e === "question") {
|
|
2174
|
-
const d = o &&
|
|
2174
|
+
const d = o && Zt(o);
|
|
2175
2175
|
return /* @__PURE__ */ s.jsxs("p", { className: "details answers", "data-testid": "question-answers", children: [
|
|
2176
2176
|
n.formatMessage({ id: "card_answers" }, { number: r }),
|
|
2177
2177
|
o && /* @__PURE__ */ s.jsxs("span", { "data-testid": "question-created-at", children: [
|
|
@@ -2203,7 +2203,7 @@ const En = {
|
|
|
2203
2203
|
}
|
|
2204
2204
|
);
|
|
2205
2205
|
if (u || c) {
|
|
2206
|
-
const d = c &&
|
|
2206
|
+
const d = c && Zt(c);
|
|
2207
2207
|
return /* @__PURE__ */ s.jsxs("ul", { className: "details", children: [
|
|
2208
2208
|
u && /* @__PURE__ */ s.jsx("li", { "data-testid": "reading-time", children: n.formatMessage({ id: "card_time_read" }, { time: u }) }),
|
|
2209
2209
|
c && /* @__PURE__ */ s.jsx("li", { "data-testid": "published-date", children: n.formatMessage(
|
|
@@ -2423,7 +2423,7 @@ const Ir = {
|
|
|
2423
2423
|
size: "small",
|
|
2424
2424
|
variant: d.dateHasPassed ? "default" : "information",
|
|
2425
2425
|
"data-testid": "date",
|
|
2426
|
-
children: d.dateHasPassed ? l.formatMessage({ id: "card_ended" }) :
|
|
2426
|
+
children: d.dateHasPassed ? l.formatMessage({ id: "card_ended" }) : Zs(d.startDate)
|
|
2427
2427
|
}
|
|
2428
2428
|
),
|
|
2429
2429
|
d.banner ? /* @__PURE__ */ s.jsxs("p", { className: "img", children: [
|
|
@@ -2455,7 +2455,7 @@ const Ir = {
|
|
|
2455
2455
|
const $ = d[F];
|
|
2456
2456
|
if (!$)
|
|
2457
2457
|
return null;
|
|
2458
|
-
const M =
|
|
2458
|
+
const M = qs(F);
|
|
2459
2459
|
return /* @__PURE__ */ s.jsx("p", { className: M, "data-testid": M, children: Qe($, N[F]) }, F);
|
|
2460
2460
|
}),
|
|
2461
2461
|
/* @__PURE__ */ s.jsx(Ar, { type: v || "", data: d }),
|
|
@@ -2685,7 +2685,7 @@ const Qr = ({
|
|
|
2685
2685
|
] }, `carousel-${m}`);
|
|
2686
2686
|
}
|
|
2687
2687
|
);
|
|
2688
|
-
const Ot = "joinCommunityButton",
|
|
2688
|
+
const Ot = "joinCommunityButton", qn = ({ isMember: e = !1, isShort: t = !1, functions: { join: n, leave: r } = { join: () => {
|
|
2689
2689
|
}, leave: () => {
|
|
2690
2690
|
} } }) => {
|
|
2691
2691
|
const o = P(), i = we(Se), l = i && typeof i.id == "string", [a, u] = A(e), [c, m] = A(e ? "joined" : "notJoined");
|
|
@@ -2744,7 +2744,7 @@ const Bt = "communityDetails_", go = ({
|
|
|
2744
2744
|
}
|
|
2745
2745
|
)
|
|
2746
2746
|
] }),
|
|
2747
|
-
/* @__PURE__ */ s.jsx(
|
|
2747
|
+
/* @__PURE__ */ s.jsx(qn, { isMember: t, functions: { ...l } }),
|
|
2748
2748
|
t && /* @__PURE__ */ s.jsx(
|
|
2749
2749
|
Q,
|
|
2750
2750
|
{
|
|
@@ -2847,7 +2847,7 @@ const Ht = { en: "English", es: "Español", fr: "Français", pt: "Português" },
|
|
|
2847
2847
|
// @ts-ignore
|
|
2848
2848
|
// `values` are throwing a type error: https://github.com/formatjs/formatjs/issues/3633
|
|
2849
2849
|
children: c.formatMessage({ id: `${it}disclaimer` }, {
|
|
2850
|
-
email:
|
|
2850
|
+
email: qe.support,
|
|
2851
2851
|
link: (w) => {
|
|
2852
2852
|
const v = `mailto:${w}`;
|
|
2853
2853
|
return /* @__PURE__ */ s.jsx("a", { href: v, children: w });
|
|
@@ -2856,7 +2856,7 @@ const Ht = { en: "English", es: "Español", fr: "Français", pt: "Português" },
|
|
|
2856
2856
|
})
|
|
2857
2857
|
] });
|
|
2858
2858
|
};
|
|
2859
|
-
const Qt = Ms({ locale: "en", messages: sn }),
|
|
2859
|
+
const Qt = Ms({ locale: "en", messages: sn }), Zn = ({
|
|
2860
2860
|
hasNextPage: e = !0,
|
|
2861
2861
|
loadNextPage: t = () => {
|
|
2862
2862
|
},
|
|
@@ -2957,6 +2957,10 @@ const Vr = [
|
|
|
2957
2957
|
key: "microcourses",
|
|
2958
2958
|
href: "/microcourses/"
|
|
2959
2959
|
},
|
|
2960
|
+
{
|
|
2961
|
+
key: "q-and-a",
|
|
2962
|
+
href: "/questions-answers/"
|
|
2963
|
+
},
|
|
2960
2964
|
{
|
|
2961
2965
|
key: "articles",
|
|
2962
2966
|
href: "/solution-articles/"
|
|
@@ -3137,7 +3141,7 @@ const wo = ({ tabs: e, className: t = "" }) => {
|
|
|
3137
3141
|
const Xr = {
|
|
3138
3142
|
"2-1": 901,
|
|
3139
3143
|
"1-3": 769
|
|
3140
|
-
},
|
|
3144
|
+
}, qr = ({
|
|
3141
3145
|
layout: e = "2-1",
|
|
3142
3146
|
hideOnMobile: t = !1,
|
|
3143
3147
|
className: n = "",
|
|
@@ -3146,11 +3150,11 @@ const Xr = {
|
|
|
3146
3150
|
const o = et(!0);
|
|
3147
3151
|
let i = r;
|
|
3148
3152
|
return D.Children.count(r) === 1 && (i = D.Children.toArray(r)[0], i.props && (i = i.props.children)), /* @__PURE__ */ s.jsx("section", { className: E("columns", `layout-${e}`, n), children: D.Children.map(i, (l, a) => t !== !1 && a === t && o && o < Xr[e] ? null : l) });
|
|
3149
|
-
}, ko = ({ activeLink: e, ...t }) => /* @__PURE__ */ s.jsx(St, { children: /* @__PURE__ */ s.jsx(
|
|
3153
|
+
}, ko = ({ activeLink: e, ...t }) => /* @__PURE__ */ s.jsx(St, { children: /* @__PURE__ */ s.jsx(qr, { layout: "1-3", children: /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
|
|
3150
3154
|
/* @__PURE__ */ s.jsx(Yr, { activeLink: e }),
|
|
3151
3155
|
/* @__PURE__ */ s.jsx(Mr, { ...t })
|
|
3152
3156
|
] }) }) });
|
|
3153
|
-
const Ut = "cookieBanner_", Wt = ["apol-cookie-banner", "apolitical-performance-cookie-consent", "functional-cookie-consent"], zt = new Date(Date.now() + 12 * 30 * 24 * 60 * 60 * 1e3),
|
|
3157
|
+
const Ut = "cookieBanner_", Wt = ["apol-cookie-banner", "apolitical-performance-cookie-consent", "functional-cookie-consent"], zt = new Date(Date.now() + 12 * 30 * 24 * 60 * 60 * 1e3), Zr = () => {
|
|
3154
3158
|
const e = P(), [t, n, r] = Fs(Wt), [o, i] = A(!t["apol-cookie-banner"]), l = () => {
|
|
3155
3159
|
Wt.forEach((m) => {
|
|
3156
3160
|
n(m, !0, {
|
|
@@ -3198,10 +3202,11 @@ const Ut = "cookieBanner_", Wt = ["apol-cookie-banner", "apolitical-performance-
|
|
|
3198
3202
|
] });
|
|
3199
3203
|
}, Ne = {
|
|
3200
3204
|
platform: {
|
|
3201
|
-
order: ["events", "courses", "articles"],
|
|
3205
|
+
order: ["events", "courses", "qanda", "articles"],
|
|
3202
3206
|
// An array guarantees the right order
|
|
3203
3207
|
events: { href: "/events/", gtmType: "events-click" },
|
|
3204
3208
|
courses: { href: "/microcourses/", gtmType: "microcourses-click" },
|
|
3209
|
+
qanda: { href: "/questions-answers/", gtmType: "q-and-a-click" },
|
|
3205
3210
|
articles: { href: "/solution-articles/", gtmType: "articles-click" }
|
|
3206
3211
|
},
|
|
3207
3212
|
community: {
|
|
@@ -3260,11 +3265,11 @@ const Ut = "cookieBanner_", Wt = ["apol-cookie-banner", "apolitical-performance-
|
|
|
3260
3265
|
text: {
|
|
3261
3266
|
order: ["dataProtection", "euDataProtection"],
|
|
3262
3267
|
dataProtection: {
|
|
3263
|
-
email:
|
|
3268
|
+
email: qe["data-protection"].default,
|
|
3264
3269
|
gtmType: "email-dpo-link"
|
|
3265
3270
|
},
|
|
3266
3271
|
euDataProtection: {
|
|
3267
|
-
email:
|
|
3272
|
+
email: qe["data-protection"].eu,
|
|
3268
3273
|
gtmType: "email-eu-dpo-link"
|
|
3269
3274
|
}
|
|
3270
3275
|
}
|
|
@@ -3276,10 +3281,10 @@ const Ut = "cookieBanner_", Wt = ["apol-cookie-banner", "apolitical-performance-
|
|
|
3276
3281
|
registered: { address: !0 },
|
|
3277
3282
|
berlin: { address: !0 },
|
|
3278
3283
|
support: {
|
|
3279
|
-
email:
|
|
3284
|
+
email: qe.support,
|
|
3280
3285
|
gtmType: "concierge-email-click"
|
|
3281
3286
|
},
|
|
3282
|
-
business: { email:
|
|
3287
|
+
business: { email: qe.general, gtmType: "hello-email-click" }
|
|
3283
3288
|
}
|
|
3284
3289
|
},
|
|
3285
3290
|
social: {
|
|
@@ -3823,13 +3828,14 @@ const na = ({
|
|
|
3823
3828
|
order: ["explore", "topics"],
|
|
3824
3829
|
menuId: "navigation",
|
|
3825
3830
|
explore: {
|
|
3826
|
-
order: ["events", "courses", "articles"],
|
|
3831
|
+
order: ["events", "courses", "q-and-a", "articles"],
|
|
3827
3832
|
events: { href: "/events/", className: "icon events" },
|
|
3828
3833
|
courses: {
|
|
3829
3834
|
href: "/microcourses/",
|
|
3830
3835
|
gtmType: "microcourses-click",
|
|
3831
3836
|
className: "icon courses"
|
|
3832
3837
|
},
|
|
3838
|
+
"q-and-a": { href: "/questions-answers/", className: "icon q-and-a" },
|
|
3833
3839
|
articles: {
|
|
3834
3840
|
href: "/solution-articles/",
|
|
3835
3841
|
gtmType: "articles-click",
|
|
@@ -4294,7 +4300,7 @@ const aa = () => {
|
|
|
4294
4300
|
] }),
|
|
4295
4301
|
v && /* @__PURE__ */ s.jsx("div", { className: "additional-content appended", children: v }),
|
|
4296
4302
|
c && /* @__PURE__ */ s.jsx(es, {}),
|
|
4297
|
-
/* @__PURE__ */ s.jsx(
|
|
4303
|
+
/* @__PURE__ */ s.jsx(Zr, {})
|
|
4298
4304
|
]
|
|
4299
4305
|
}
|
|
4300
4306
|
) }) });
|
|
@@ -4381,7 +4387,7 @@ const To = ({
|
|
|
4381
4387
|
u.isAdmin && /* @__PURE__ */ s.jsx(gt, { children: a.formatMessage({ id: "membersList_admin" }) })
|
|
4382
4388
|
] }, c)) }),
|
|
4383
4389
|
n && /* @__PURE__ */ s.jsx(
|
|
4384
|
-
|
|
4390
|
+
Zn,
|
|
4385
4391
|
{
|
|
4386
4392
|
hasNextPage: n,
|
|
4387
4393
|
loadNextPage: r,
|
|
@@ -4620,7 +4626,7 @@ const ge = "discussion_form_", is = ({
|
|
|
4620
4626
|
text: l,
|
|
4621
4627
|
button: {
|
|
4622
4628
|
breakpoints: { mobile: !0, 901: !1 },
|
|
4623
|
-
component: /* @__PURE__ */ s.jsx(
|
|
4629
|
+
component: /* @__PURE__ */ s.jsx(qn, { isShort: !0, functions: { join: o, leave: i } })
|
|
4624
4630
|
}
|
|
4625
4631
|
}
|
|
4626
4632
|
) : /* @__PURE__ */ s.jsx(
|
|
@@ -4649,9 +4655,9 @@ const ge = "discussion_form_", is = ({
|
|
|
4649
4655
|
...t && { answerSlug: t },
|
|
4650
4656
|
...n && { replySlug: n }
|
|
4651
4657
|
}), ua = (e, t = 10) => !e || e.length === 0 ? [] : e.slice(0, t);
|
|
4652
|
-
let
|
|
4658
|
+
let Ze = !1;
|
|
4653
4659
|
const Yt = () => {
|
|
4654
|
-
|
|
4660
|
+
Ze !== !1 && (clearTimeout(Ze), Ze = !1);
|
|
4655
4661
|
}, Gt = 5, ma = ({
|
|
4656
4662
|
element: e = "div",
|
|
4657
4663
|
likes: t = 0,
|
|
@@ -4669,11 +4675,11 @@ const Yt = () => {
|
|
|
4669
4675
|
h(o);
|
|
4670
4676
|
}, [o]);
|
|
4671
4677
|
const [m, d] = A(t), [p, h] = A(o), [g, w] = A(!1), [v, y] = A(!1), x = kt(() => ua(n, Gt), [n]), _ = (N) => {
|
|
4672
|
-
if (N.preventDefault(), N.stopPropagation(), y(!1),
|
|
4678
|
+
if (N.preventDefault(), N.stopPropagation(), y(!1), Ze)
|
|
4673
4679
|
return Yt(), !1;
|
|
4674
4680
|
if (Yt(), g || !l)
|
|
4675
4681
|
return !1;
|
|
4676
|
-
|
|
4682
|
+
Ze = setTimeout(T, 350);
|
|
4677
4683
|
}, T = async () => {
|
|
4678
4684
|
if (Yt(), g || !l)
|
|
4679
4685
|
return !1;
|
|
@@ -5473,7 +5479,7 @@ const Co = ({
|
|
|
5473
5479
|
] }, x == null ? void 0 : x.id);
|
|
5474
5480
|
}),
|
|
5475
5481
|
!d && /* @__PURE__ */ s.jsx(
|
|
5476
|
-
|
|
5482
|
+
Zn,
|
|
5477
5483
|
{
|
|
5478
5484
|
hasNextPage: m,
|
|
5479
5485
|
loadNextPage: () => c(),
|
|
@@ -5851,22 +5857,22 @@ const Co = ({
|
|
|
5851
5857
|
},
|
|
5852
5858
|
userLiked: ((fe = k == null ? void 0 : k.own_children) == null ? void 0 : fe.like) && ((ke = k == null ? void 0 : k.own_children) == null ? void 0 : ke.like.length) > 0,
|
|
5853
5859
|
likes: ((xe = k == null ? void 0 : k.children_counts) == null ? void 0 : xe.like) || 0,
|
|
5854
|
-
peopleWhoLiked: ((je = k == null ? void 0 : k.latest_children) == null ? void 0 : je.like) && ((be = k == null ? void 0 : k.latest_children) == null ? void 0 : be.like.map((
|
|
5860
|
+
peopleWhoLiked: ((je = k == null ? void 0 : k.latest_children) == null ? void 0 : je.like) && ((be = k == null ? void 0 : k.latest_children) == null ? void 0 : be.like.map((Z) => {
|
|
5855
5861
|
var ae, he;
|
|
5856
5862
|
return {
|
|
5857
|
-
id:
|
|
5858
|
-
name: (he = (ae =
|
|
5863
|
+
id: Z == null ? void 0 : Z.user_id,
|
|
5864
|
+
name: (he = (ae = Z == null ? void 0 : Z.user) == null ? void 0 : ae.data) == null ? void 0 : he.name
|
|
5859
5865
|
};
|
|
5860
5866
|
}))
|
|
5861
5867
|
},
|
|
5862
5868
|
functions: {
|
|
5863
5869
|
content: {
|
|
5864
5870
|
createContent: () => console.log("create"),
|
|
5865
|
-
deleteContent: (
|
|
5866
|
-
const { replySlug: ae, replyParentId: he } =
|
|
5871
|
+
deleteContent: (Z) => {
|
|
5872
|
+
const { replySlug: ae, replyParentId: he } = Z;
|
|
5867
5873
|
return R({ replyId: ae, replyParentId: he });
|
|
5868
5874
|
},
|
|
5869
|
-
updateContent: (
|
|
5875
|
+
updateContent: (Z, ae) => T({ replyInfo: Z, content: ae })
|
|
5870
5876
|
},
|
|
5871
5877
|
likes: {
|
|
5872
5878
|
createLike: () => b({
|
|
@@ -5875,9 +5881,9 @@ const Co = ({
|
|
|
5875
5881
|
}),
|
|
5876
5882
|
deleteLike: () => {
|
|
5877
5883
|
var ae, he, K;
|
|
5878
|
-
const
|
|
5884
|
+
const Z = ((ae = k == null ? void 0 : k.own_children) == null ? void 0 : ae.like) && ((K = (he = k == null ? void 0 : k.own_children) == null ? void 0 : he.like[0]) == null ? void 0 : K.id);
|
|
5879
5885
|
return z({
|
|
5880
|
-
replyId:
|
|
5886
|
+
replyId: Z || ""
|
|
5881
5887
|
});
|
|
5882
5888
|
}
|
|
5883
5889
|
},
|
|
@@ -5950,7 +5956,7 @@ const Co = ({
|
|
|
5950
5956
|
}
|
|
5951
5957
|
),
|
|
5952
5958
|
(r == null ? void 0 : r.length) === 0 || (r == null ? void 0 : r.map((b) => {
|
|
5953
|
-
var I, J, X, le, de, ue, G, re, oe, O, me, _e, fe, ke, xe, je, be,
|
|
5959
|
+
var I, J, X, le, de, ue, G, re, oe, O, me, _e, fe, ke, xe, je, be, Z, ae, he;
|
|
5954
5960
|
const z = ((I = b == null ? void 0 : b.user) == null ? void 0 : I.id) === (g == null ? void 0 : g.id), k = on(o, z);
|
|
5955
5961
|
return /* @__PURE__ */ s.jsx(la, { children: /* @__PURE__ */ s.jsx(
|
|
5956
5962
|
Ct,
|
|
@@ -5977,7 +5983,7 @@ const Co = ({
|
|
|
5977
5983
|
},
|
|
5978
5984
|
userLiked: ((ke = b == null ? void 0 : b.own_children) == null ? void 0 : ke.like) && ((xe = b == null ? void 0 : b.own_children) == null ? void 0 : xe.like.length) > 0,
|
|
5979
5985
|
likes: ((je = b == null ? void 0 : b.children_counts) == null ? void 0 : je.like) || 0,
|
|
5980
|
-
peopleWhoLiked: ((be = b == null ? void 0 : b.latest_children) == null ? void 0 : be.like) && ((
|
|
5986
|
+
peopleWhoLiked: ((be = b == null ? void 0 : b.latest_children) == null ? void 0 : be.like) && ((Z = b == null ? void 0 : b.latest_children) == null ? void 0 : Z.like.map((K) => {
|
|
5981
5987
|
var ie, ve;
|
|
5982
5988
|
return {
|
|
5983
5989
|
id: K == null ? void 0 : K.user_id,
|
|
@@ -6134,7 +6140,7 @@ const No = ({
|
|
|
6134
6140
|
leave: w
|
|
6135
6141
|
}
|
|
6136
6142
|
}) => {
|
|
6137
|
-
var de, ue, G, re, oe, O, me, _e, fe, ke, xe, je, be,
|
|
6143
|
+
var de, ue, G, re, oe, O, me, _e, fe, ke, xe, je, be, Z, ae, he, K, ie, ve, Pe, ze, Le, nt;
|
|
6138
6144
|
const v = P(), y = we(Se), x = jt(), {
|
|
6139
6145
|
data: _,
|
|
6140
6146
|
isLoading: T,
|
|
@@ -6212,7 +6218,7 @@ const No = ({
|
|
|
6212
6218
|
organization: ((O = _ == null ? void 0 : _.actor) == null ? void 0 : O.data) && ((_e = (me = _ == null ? void 0 : _.actor) == null ? void 0 : me.data) == null ? void 0 : _e.organization),
|
|
6213
6219
|
jobTitle: ((fe = _ == null ? void 0 : _.actor) == null ? void 0 : fe.data) && ((xe = (ke = _ == null ? void 0 : _.actor) == null ? void 0 : ke.data) == null ? void 0 : xe.jobTitle),
|
|
6214
6220
|
image: {
|
|
6215
|
-
thumbnail: ((je = _ == null ? void 0 : _.actor) == null ? void 0 : je.data) && ((
|
|
6221
|
+
thumbnail: ((je = _ == null ? void 0 : _.actor) == null ? void 0 : je.data) && ((Z = (be = _ == null ? void 0 : _.actor) == null ? void 0 : be.data) == null ? void 0 : Z.thumbnail) || void 0
|
|
6216
6222
|
}
|
|
6217
6223
|
},
|
|
6218
6224
|
userLiked: ((ae = _ == null ? void 0 : _.own_reactions) == null ? void 0 : ae.like) && ((he = _ == null ? void 0 : _.own_reactions) == null ? void 0 : he.like.length) > 0,
|
|
@@ -6368,11 +6374,11 @@ export {
|
|
|
6368
6374
|
Or as CardBlock,
|
|
6369
6375
|
po as Carousel,
|
|
6370
6376
|
Un as CollapsibleSection,
|
|
6371
|
-
|
|
6377
|
+
qr as Columns,
|
|
6372
6378
|
go as CommunityDetails,
|
|
6373
6379
|
Jn as Contributors,
|
|
6374
6380
|
Mt as ConversationContext,
|
|
6375
|
-
|
|
6381
|
+
Zr as CookieBanner,
|
|
6376
6382
|
la as DiscussionConversation,
|
|
6377
6383
|
is as DiscussionForm,
|
|
6378
6384
|
ma as DiscussionLikes,
|
|
@@ -6380,7 +6386,7 @@ export {
|
|
|
6380
6386
|
ha as DiscussionThread,
|
|
6381
6387
|
Fe as Divider,
|
|
6382
6388
|
oo as DownloadSection,
|
|
6383
|
-
|
|
6389
|
+
qe as EMAILS,
|
|
6384
6390
|
jo as EmailHelperTextBox,
|
|
6385
6391
|
Tt as EmptyStateBox,
|
|
6386
6392
|
xo as Filters,
|
|
@@ -6396,10 +6402,10 @@ export {
|
|
|
6396
6402
|
_r as IntlProvider,
|
|
6397
6403
|
na as InviteForm,
|
|
6398
6404
|
$o as InviteModal,
|
|
6399
|
-
|
|
6405
|
+
qn as JoinButton,
|
|
6400
6406
|
bo as LanguageSwitcher,
|
|
6401
6407
|
$t as Link,
|
|
6402
|
-
|
|
6408
|
+
Zn as LoadMore,
|
|
6403
6409
|
ho as LoadingBlock,
|
|
6404
6410
|
$e as LoadingPlaceholder,
|
|
6405
6411
|
Vn as LoadingState,
|
|
@@ -9,31 +9,27 @@ declare namespace _default {
|
|
|
9
9
|
let order_1: string[];
|
|
10
10
|
export { order_1 as order };
|
|
11
11
|
export let menuId: string;
|
|
12
|
-
export
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
let className_2: string;
|
|
34
|
-
export { className_2 as className };
|
|
35
|
-
}
|
|
36
|
-
}
|
|
12
|
+
export let explore: {
|
|
13
|
+
order: string[];
|
|
14
|
+
events: {
|
|
15
|
+
href: string;
|
|
16
|
+
className: string;
|
|
17
|
+
};
|
|
18
|
+
courses: {
|
|
19
|
+
href: string;
|
|
20
|
+
gtmType: string;
|
|
21
|
+
className: string;
|
|
22
|
+
};
|
|
23
|
+
'q-and-a': {
|
|
24
|
+
href: string;
|
|
25
|
+
className: string;
|
|
26
|
+
};
|
|
27
|
+
articles: {
|
|
28
|
+
href: string;
|
|
29
|
+
gtmType: string;
|
|
30
|
+
className: string;
|
|
31
|
+
};
|
|
32
|
+
};
|
|
37
33
|
let topics_1: {
|
|
38
34
|
order: string[];
|
|
39
35
|
className: string;
|
|
@@ -77,8 +73,8 @@ declare namespace _default {
|
|
|
77
73
|
export { topics_1 as topics };
|
|
78
74
|
}
|
|
79
75
|
namespace partners {
|
|
80
|
-
let
|
|
81
|
-
export {
|
|
76
|
+
let href_1: string;
|
|
77
|
+
export { href_1 as href };
|
|
82
78
|
export let onlyShow: string;
|
|
83
79
|
}
|
|
84
80
|
let account: {
|
|
@@ -98,15 +94,15 @@ declare namespace _default {
|
|
|
98
94
|
};
|
|
99
95
|
};
|
|
100
96
|
namespace buttons {
|
|
101
|
-
let
|
|
102
|
-
export {
|
|
97
|
+
let order_2: string[];
|
|
98
|
+
export { order_2 as order };
|
|
103
99
|
export namespace login {
|
|
104
|
-
let
|
|
105
|
-
export {
|
|
100
|
+
let href_2: string;
|
|
101
|
+
export { href_2 as href };
|
|
106
102
|
}
|
|
107
103
|
export namespace signup {
|
|
108
|
-
let
|
|
109
|
-
export {
|
|
104
|
+
let href_3: string;
|
|
105
|
+
export { href_3 as href };
|
|
110
106
|
export namespace props {
|
|
111
107
|
let variant: string;
|
|
112
108
|
}
|