@apolitical/component-library 1.17.2-rc.3 → 1.17.2
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 +66 -74
- package/layout/page-layout/components/header/header.data.d.ts +33 -29
- 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 Zt = { 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 q = typeof WeakMap == "function" ? WeakMap : Map;
|
|
266
|
+
be = new q();
|
|
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
|
+
`), Z = L.length - 1, te = pe.length - 1; Z >= 1 && te >= 0 && L[Z] !== pe[te]; )
|
|
319
319
|
te--;
|
|
320
|
-
for (;
|
|
321
|
-
if (L[
|
|
322
|
-
if (
|
|
320
|
+
for (; Z >= 1 && te >= 0; Z--, te--)
|
|
321
|
+
if (L[Z] !== pe[te]) {
|
|
322
|
+
if (Z !== 1 || te !== 1)
|
|
323
323
|
do
|
|
324
|
-
if (
|
|
324
|
+
if (Z--, te--, te < 0 || L[Z] !== pe[te]) {
|
|
325
325
|
var ye = `
|
|
326
|
-
` + L[
|
|
326
|
+
` + L[Z].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 (Z >= 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 (Z) {
|
|
396
|
+
L = Z;
|
|
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 Z = f.defaultProps;
|
|
514
|
+
for (W in Z)
|
|
515
|
+
B[W] === void 0 && (B[W] = Z[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 Z;
|
|
651
|
+
f === null ? Z = "null" : Ee(f) ? Z = "array" : f !== void 0 && f.$$typeof === t ? (Z = "<" + (k(f.type) || "Unknown") + " />", L = " Did you accidentally export a JSX literal instead of a component?") : Z = 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", Z, 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" ? Zt.exports = zs() : Zt.exports = Vs();
|
|
683
|
+
var s = Zt.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
|
+
}, Zs = (e) => e.replace(/[A-Z]/g, (t) => `-${t.toLowerCase()}`), qs = (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
|
+
}), qt = (e) => {
|
|
843
843
|
let i;
|
|
844
844
|
const l = vn(), a = vn(new Date(e));
|
|
845
845
|
try {
|
|
@@ -1681,11 +1681,9 @@ const gr = ({ children: e, user: t }) => t.isLoading ? null : process.env.REACT_
|
|
|
1681
1681
|
apiKey: atob(process.env.REACT_APP_PUBLIC_POSTHOG_KEY),
|
|
1682
1682
|
options: {
|
|
1683
1683
|
api_host: "/ph",
|
|
1684
|
+
ui_host: "eu.posthog.com",
|
|
1684
1685
|
autocapture: !1,
|
|
1685
|
-
disable_session_recording: !0,
|
|
1686
|
-
persistence_name: "flags",
|
|
1687
1686
|
secure_cookie: !0,
|
|
1688
|
-
ui_host: "eu.posthog.com",
|
|
1689
1687
|
bootstrap: {
|
|
1690
1688
|
// The distinct ID is the user's ID if they are logged in, or a random ID otherwise
|
|
1691
1689
|
distinctID: t.id || "00000000-0000-0000-0000-000000000000",
|
|
@@ -1711,7 +1709,7 @@ const br = ({ children: e, user: t }) => /* @__PURE__ */ s.jsx(Se.Provider, { va
|
|
|
1711
1709
|
o({ ...i, isLoading: !1 }), rr(5e3);
|
|
1712
1710
|
}).catch(() => o({ isLoading: !1 }));
|
|
1713
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 }) }) }) }) });
|
|
1714
|
-
}, pt = "https://storage.googleapis.com/apolitical-assets/",
|
|
1712
|
+
}, pt = "https://storage.googleapis.com/apolitical-assets/", Ze = {
|
|
1715
1713
|
general: "hello@apolitical.co",
|
|
1716
1714
|
support: "concierge@apolitical.co",
|
|
1717
1715
|
"data-protection": {
|
|
@@ -2080,7 +2078,7 @@ const rn = ({
|
|
|
2080
2078
|
}) => {
|
|
2081
2079
|
const l = P(), a = Gn(t);
|
|
2082
2080
|
a.name || (a.name = l.formatMessage({ id: `member_${typeof t == "string" ? t : "community"}` }));
|
|
2083
|
-
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 ? qt(n.createdAt) : !1, h = n && n.createdAt ? Bn(n.createdAt) : "";
|
|
2084
2082
|
return D.createElement(e, {
|
|
2085
2083
|
className: E("member text-medium", i),
|
|
2086
2084
|
children: /* @__PURE__ */ s.jsxs(
|
|
@@ -2173,7 +2171,7 @@ const En = {
|
|
|
2173
2171
|
startDate: m
|
|
2174
2172
|
} = t;
|
|
2175
2173
|
if (e === "question") {
|
|
2176
|
-
const d = o &&
|
|
2174
|
+
const d = o && qt(o);
|
|
2177
2175
|
return /* @__PURE__ */ s.jsxs("p", { className: "details answers", "data-testid": "question-answers", children: [
|
|
2178
2176
|
n.formatMessage({ id: "card_answers" }, { number: r }),
|
|
2179
2177
|
o && /* @__PURE__ */ s.jsxs("span", { "data-testid": "question-created-at", children: [
|
|
@@ -2205,7 +2203,7 @@ const En = {
|
|
|
2205
2203
|
}
|
|
2206
2204
|
);
|
|
2207
2205
|
if (u || c) {
|
|
2208
|
-
const d = c &&
|
|
2206
|
+
const d = c && qt(c);
|
|
2209
2207
|
return /* @__PURE__ */ s.jsxs("ul", { className: "details", children: [
|
|
2210
2208
|
u && /* @__PURE__ */ s.jsx("li", { "data-testid": "reading-time", children: n.formatMessage({ id: "card_time_read" }, { time: u }) }),
|
|
2211
2209
|
c && /* @__PURE__ */ s.jsx("li", { "data-testid": "published-date", children: n.formatMessage(
|
|
@@ -2425,7 +2423,7 @@ const Ir = {
|
|
|
2425
2423
|
size: "small",
|
|
2426
2424
|
variant: d.dateHasPassed ? "default" : "information",
|
|
2427
2425
|
"data-testid": "date",
|
|
2428
|
-
children: d.dateHasPassed ? l.formatMessage({ id: "card_ended" }) :
|
|
2426
|
+
children: d.dateHasPassed ? l.formatMessage({ id: "card_ended" }) : qs(d.startDate)
|
|
2429
2427
|
}
|
|
2430
2428
|
),
|
|
2431
2429
|
d.banner ? /* @__PURE__ */ s.jsxs("p", { className: "img", children: [
|
|
@@ -2457,7 +2455,7 @@ const Ir = {
|
|
|
2457
2455
|
const $ = d[F];
|
|
2458
2456
|
if (!$)
|
|
2459
2457
|
return null;
|
|
2460
|
-
const M =
|
|
2458
|
+
const M = Zs(F);
|
|
2461
2459
|
return /* @__PURE__ */ s.jsx("p", { className: M, "data-testid": M, children: Qe($, N[F]) }, F);
|
|
2462
2460
|
}),
|
|
2463
2461
|
/* @__PURE__ */ s.jsx(Ar, { type: v || "", data: d }),
|
|
@@ -2687,7 +2685,7 @@ const Qr = ({
|
|
|
2687
2685
|
] }, `carousel-${m}`);
|
|
2688
2686
|
}
|
|
2689
2687
|
);
|
|
2690
|
-
const Ot = "joinCommunityButton",
|
|
2688
|
+
const Ot = "joinCommunityButton", Zn = ({ isMember: e = !1, isShort: t = !1, functions: { join: n, leave: r } = { join: () => {
|
|
2691
2689
|
}, leave: () => {
|
|
2692
2690
|
} } }) => {
|
|
2693
2691
|
const o = P(), i = we(Se), l = i && typeof i.id == "string", [a, u] = A(e), [c, m] = A(e ? "joined" : "notJoined");
|
|
@@ -2746,7 +2744,7 @@ const Bt = "communityDetails_", go = ({
|
|
|
2746
2744
|
}
|
|
2747
2745
|
)
|
|
2748
2746
|
] }),
|
|
2749
|
-
/* @__PURE__ */ s.jsx(
|
|
2747
|
+
/* @__PURE__ */ s.jsx(Zn, { isMember: t, functions: { ...l } }),
|
|
2750
2748
|
t && /* @__PURE__ */ s.jsx(
|
|
2751
2749
|
Q,
|
|
2752
2750
|
{
|
|
@@ -2849,7 +2847,7 @@ const Ht = { en: "English", es: "Español", fr: "Français", pt: "Português" },
|
|
|
2849
2847
|
// @ts-ignore
|
|
2850
2848
|
// `values` are throwing a type error: https://github.com/formatjs/formatjs/issues/3633
|
|
2851
2849
|
children: c.formatMessage({ id: `${it}disclaimer` }, {
|
|
2852
|
-
email:
|
|
2850
|
+
email: Ze.support,
|
|
2853
2851
|
link: (w) => {
|
|
2854
2852
|
const v = `mailto:${w}`;
|
|
2855
2853
|
return /* @__PURE__ */ s.jsx("a", { href: v, children: w });
|
|
@@ -2858,7 +2856,7 @@ const Ht = { en: "English", es: "Español", fr: "Français", pt: "Português" },
|
|
|
2858
2856
|
})
|
|
2859
2857
|
] });
|
|
2860
2858
|
};
|
|
2861
|
-
const Qt = Ms({ locale: "en", messages: sn }),
|
|
2859
|
+
const Qt = Ms({ locale: "en", messages: sn }), qn = ({
|
|
2862
2860
|
hasNextPage: e = !0,
|
|
2863
2861
|
loadNextPage: t = () => {
|
|
2864
2862
|
},
|
|
@@ -2959,10 +2957,6 @@ const Vr = [
|
|
|
2959
2957
|
key: "microcourses",
|
|
2960
2958
|
href: "/microcourses/"
|
|
2961
2959
|
},
|
|
2962
|
-
{
|
|
2963
|
-
key: "q-and-a",
|
|
2964
|
-
href: "/questions-answers/"
|
|
2965
|
-
},
|
|
2966
2960
|
{
|
|
2967
2961
|
key: "articles",
|
|
2968
2962
|
href: "/solution-articles/"
|
|
@@ -3143,7 +3137,7 @@ const wo = ({ tabs: e, className: t = "" }) => {
|
|
|
3143
3137
|
const Xr = {
|
|
3144
3138
|
"2-1": 901,
|
|
3145
3139
|
"1-3": 769
|
|
3146
|
-
},
|
|
3140
|
+
}, Zr = ({
|
|
3147
3141
|
layout: e = "2-1",
|
|
3148
3142
|
hideOnMobile: t = !1,
|
|
3149
3143
|
className: n = "",
|
|
@@ -3152,11 +3146,11 @@ const Xr = {
|
|
|
3152
3146
|
const o = et(!0);
|
|
3153
3147
|
let i = r;
|
|
3154
3148
|
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) });
|
|
3155
|
-
}, ko = ({ activeLink: e, ...t }) => /* @__PURE__ */ s.jsx(St, { children: /* @__PURE__ */ s.jsx(
|
|
3149
|
+
}, ko = ({ activeLink: e, ...t }) => /* @__PURE__ */ s.jsx(St, { children: /* @__PURE__ */ s.jsx(Zr, { layout: "1-3", children: /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
|
|
3156
3150
|
/* @__PURE__ */ s.jsx(Yr, { activeLink: e }),
|
|
3157
3151
|
/* @__PURE__ */ s.jsx(Mr, { ...t })
|
|
3158
3152
|
] }) }) });
|
|
3159
|
-
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),
|
|
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), qr = () => {
|
|
3160
3154
|
const e = P(), [t, n, r] = Fs(Wt), [o, i] = A(!t["apol-cookie-banner"]), l = () => {
|
|
3161
3155
|
Wt.forEach((m) => {
|
|
3162
3156
|
n(m, !0, {
|
|
@@ -3204,11 +3198,10 @@ const Ut = "cookieBanner_", Wt = ["apol-cookie-banner", "apolitical-performance-
|
|
|
3204
3198
|
] });
|
|
3205
3199
|
}, Ne = {
|
|
3206
3200
|
platform: {
|
|
3207
|
-
order: ["events", "courses", "
|
|
3201
|
+
order: ["events", "courses", "articles"],
|
|
3208
3202
|
// An array guarantees the right order
|
|
3209
3203
|
events: { href: "/events/", gtmType: "events-click" },
|
|
3210
3204
|
courses: { href: "/microcourses/", gtmType: "microcourses-click" },
|
|
3211
|
-
qanda: { href: "/questions-answers/", gtmType: "q-and-a-click" },
|
|
3212
3205
|
articles: { href: "/solution-articles/", gtmType: "articles-click" }
|
|
3213
3206
|
},
|
|
3214
3207
|
community: {
|
|
@@ -3267,11 +3260,11 @@ const Ut = "cookieBanner_", Wt = ["apol-cookie-banner", "apolitical-performance-
|
|
|
3267
3260
|
text: {
|
|
3268
3261
|
order: ["dataProtection", "euDataProtection"],
|
|
3269
3262
|
dataProtection: {
|
|
3270
|
-
email:
|
|
3263
|
+
email: Ze["data-protection"].default,
|
|
3271
3264
|
gtmType: "email-dpo-link"
|
|
3272
3265
|
},
|
|
3273
3266
|
euDataProtection: {
|
|
3274
|
-
email:
|
|
3267
|
+
email: Ze["data-protection"].eu,
|
|
3275
3268
|
gtmType: "email-eu-dpo-link"
|
|
3276
3269
|
}
|
|
3277
3270
|
}
|
|
@@ -3283,10 +3276,10 @@ const Ut = "cookieBanner_", Wt = ["apol-cookie-banner", "apolitical-performance-
|
|
|
3283
3276
|
registered: { address: !0 },
|
|
3284
3277
|
berlin: { address: !0 },
|
|
3285
3278
|
support: {
|
|
3286
|
-
email:
|
|
3279
|
+
email: Ze.support,
|
|
3287
3280
|
gtmType: "concierge-email-click"
|
|
3288
3281
|
},
|
|
3289
|
-
business: { email:
|
|
3282
|
+
business: { email: Ze.general, gtmType: "hello-email-click" }
|
|
3290
3283
|
}
|
|
3291
3284
|
},
|
|
3292
3285
|
social: {
|
|
@@ -3830,14 +3823,13 @@ const na = ({
|
|
|
3830
3823
|
order: ["explore", "topics"],
|
|
3831
3824
|
menuId: "navigation",
|
|
3832
3825
|
explore: {
|
|
3833
|
-
order: ["events", "courses", "
|
|
3826
|
+
order: ["events", "courses", "articles"],
|
|
3834
3827
|
events: { href: "/events/", className: "icon events" },
|
|
3835
3828
|
courses: {
|
|
3836
3829
|
href: "/microcourses/",
|
|
3837
3830
|
gtmType: "microcourses-click",
|
|
3838
3831
|
className: "icon courses"
|
|
3839
3832
|
},
|
|
3840
|
-
"q-and-a": { href: "/questions-answers/", className: "icon q-and-a" },
|
|
3841
3833
|
articles: {
|
|
3842
3834
|
href: "/solution-articles/",
|
|
3843
3835
|
gtmType: "articles-click",
|
|
@@ -4302,7 +4294,7 @@ const aa = () => {
|
|
|
4302
4294
|
] }),
|
|
4303
4295
|
v && /* @__PURE__ */ s.jsx("div", { className: "additional-content appended", children: v }),
|
|
4304
4296
|
c && /* @__PURE__ */ s.jsx(es, {}),
|
|
4305
|
-
/* @__PURE__ */ s.jsx(
|
|
4297
|
+
/* @__PURE__ */ s.jsx(qr, {})
|
|
4306
4298
|
]
|
|
4307
4299
|
}
|
|
4308
4300
|
) }) });
|
|
@@ -4389,7 +4381,7 @@ const To = ({
|
|
|
4389
4381
|
u.isAdmin && /* @__PURE__ */ s.jsx(gt, { children: a.formatMessage({ id: "membersList_admin" }) })
|
|
4390
4382
|
] }, c)) }),
|
|
4391
4383
|
n && /* @__PURE__ */ s.jsx(
|
|
4392
|
-
|
|
4384
|
+
qn,
|
|
4393
4385
|
{
|
|
4394
4386
|
hasNextPage: n,
|
|
4395
4387
|
loadNextPage: r,
|
|
@@ -4628,7 +4620,7 @@ const ge = "discussion_form_", is = ({
|
|
|
4628
4620
|
text: l,
|
|
4629
4621
|
button: {
|
|
4630
4622
|
breakpoints: { mobile: !0, 901: !1 },
|
|
4631
|
-
component: /* @__PURE__ */ s.jsx(
|
|
4623
|
+
component: /* @__PURE__ */ s.jsx(Zn, { isShort: !0, functions: { join: o, leave: i } })
|
|
4632
4624
|
}
|
|
4633
4625
|
}
|
|
4634
4626
|
) : /* @__PURE__ */ s.jsx(
|
|
@@ -4657,9 +4649,9 @@ const ge = "discussion_form_", is = ({
|
|
|
4657
4649
|
...t && { answerSlug: t },
|
|
4658
4650
|
...n && { replySlug: n }
|
|
4659
4651
|
}), ua = (e, t = 10) => !e || e.length === 0 ? [] : e.slice(0, t);
|
|
4660
|
-
let
|
|
4652
|
+
let qe = !1;
|
|
4661
4653
|
const Yt = () => {
|
|
4662
|
-
|
|
4654
|
+
qe !== !1 && (clearTimeout(qe), qe = !1);
|
|
4663
4655
|
}, Gt = 5, ma = ({
|
|
4664
4656
|
element: e = "div",
|
|
4665
4657
|
likes: t = 0,
|
|
@@ -4677,11 +4669,11 @@ const Yt = () => {
|
|
|
4677
4669
|
h(o);
|
|
4678
4670
|
}, [o]);
|
|
4679
4671
|
const [m, d] = A(t), [p, h] = A(o), [g, w] = A(!1), [v, y] = A(!1), x = kt(() => ua(n, Gt), [n]), _ = (N) => {
|
|
4680
|
-
if (N.preventDefault(), N.stopPropagation(), y(!1),
|
|
4672
|
+
if (N.preventDefault(), N.stopPropagation(), y(!1), qe)
|
|
4681
4673
|
return Yt(), !1;
|
|
4682
4674
|
if (Yt(), g || !l)
|
|
4683
4675
|
return !1;
|
|
4684
|
-
|
|
4676
|
+
qe = setTimeout(T, 350);
|
|
4685
4677
|
}, T = async () => {
|
|
4686
4678
|
if (Yt(), g || !l)
|
|
4687
4679
|
return !1;
|
|
@@ -5481,7 +5473,7 @@ const Co = ({
|
|
|
5481
5473
|
] }, x == null ? void 0 : x.id);
|
|
5482
5474
|
}),
|
|
5483
5475
|
!d && /* @__PURE__ */ s.jsx(
|
|
5484
|
-
|
|
5476
|
+
qn,
|
|
5485
5477
|
{
|
|
5486
5478
|
hasNextPage: m,
|
|
5487
5479
|
loadNextPage: () => c(),
|
|
@@ -5859,22 +5851,22 @@ const Co = ({
|
|
|
5859
5851
|
},
|
|
5860
5852
|
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,
|
|
5861
5853
|
likes: ((xe = k == null ? void 0 : k.children_counts) == null ? void 0 : xe.like) || 0,
|
|
5862
|
-
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((
|
|
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((q) => {
|
|
5863
5855
|
var ae, he;
|
|
5864
5856
|
return {
|
|
5865
|
-
id:
|
|
5866
|
-
name: (he = (ae =
|
|
5857
|
+
id: q == null ? void 0 : q.user_id,
|
|
5858
|
+
name: (he = (ae = q == null ? void 0 : q.user) == null ? void 0 : ae.data) == null ? void 0 : he.name
|
|
5867
5859
|
};
|
|
5868
5860
|
}))
|
|
5869
5861
|
},
|
|
5870
5862
|
functions: {
|
|
5871
5863
|
content: {
|
|
5872
5864
|
createContent: () => console.log("create"),
|
|
5873
|
-
deleteContent: (
|
|
5874
|
-
const { replySlug: ae, replyParentId: he } =
|
|
5865
|
+
deleteContent: (q) => {
|
|
5866
|
+
const { replySlug: ae, replyParentId: he } = q;
|
|
5875
5867
|
return R({ replyId: ae, replyParentId: he });
|
|
5876
5868
|
},
|
|
5877
|
-
updateContent: (
|
|
5869
|
+
updateContent: (q, ae) => T({ replyInfo: q, content: ae })
|
|
5878
5870
|
},
|
|
5879
5871
|
likes: {
|
|
5880
5872
|
createLike: () => b({
|
|
@@ -5883,9 +5875,9 @@ const Co = ({
|
|
|
5883
5875
|
}),
|
|
5884
5876
|
deleteLike: () => {
|
|
5885
5877
|
var ae, he, K;
|
|
5886
|
-
const
|
|
5878
|
+
const q = ((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);
|
|
5887
5879
|
return z({
|
|
5888
|
-
replyId:
|
|
5880
|
+
replyId: q || ""
|
|
5889
5881
|
});
|
|
5890
5882
|
}
|
|
5891
5883
|
},
|
|
@@ -5958,7 +5950,7 @@ const Co = ({
|
|
|
5958
5950
|
}
|
|
5959
5951
|
),
|
|
5960
5952
|
(r == null ? void 0 : r.length) === 0 || (r == null ? void 0 : r.map((b) => {
|
|
5961
|
-
var I, J, X, le, de, ue, G, re, oe, O, me, _e, fe, ke, xe, je, be,
|
|
5953
|
+
var I, J, X, le, de, ue, G, re, oe, O, me, _e, fe, ke, xe, je, be, q, ae, he;
|
|
5962
5954
|
const z = ((I = b == null ? void 0 : b.user) == null ? void 0 : I.id) === (g == null ? void 0 : g.id), k = on(o, z);
|
|
5963
5955
|
return /* @__PURE__ */ s.jsx(la, { children: /* @__PURE__ */ s.jsx(
|
|
5964
5956
|
Ct,
|
|
@@ -5985,7 +5977,7 @@ const Co = ({
|
|
|
5985
5977
|
},
|
|
5986
5978
|
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,
|
|
5987
5979
|
likes: ((je = b == null ? void 0 : b.children_counts) == null ? void 0 : je.like) || 0,
|
|
5988
|
-
peopleWhoLiked: ((be = b == null ? void 0 : b.latest_children) == null ? void 0 : be.like) && ((
|
|
5980
|
+
peopleWhoLiked: ((be = b == null ? void 0 : b.latest_children) == null ? void 0 : be.like) && ((q = b == null ? void 0 : b.latest_children) == null ? void 0 : q.like.map((K) => {
|
|
5989
5981
|
var ie, ve;
|
|
5990
5982
|
return {
|
|
5991
5983
|
id: K == null ? void 0 : K.user_id,
|
|
@@ -6142,7 +6134,7 @@ const No = ({
|
|
|
6142
6134
|
leave: w
|
|
6143
6135
|
}
|
|
6144
6136
|
}) => {
|
|
6145
|
-
var de, ue, G, re, oe, O, me, _e, fe, ke, xe, je, be,
|
|
6137
|
+
var de, ue, G, re, oe, O, me, _e, fe, ke, xe, je, be, q, ae, he, K, ie, ve, Pe, ze, Le, nt;
|
|
6146
6138
|
const v = P(), y = we(Se), x = jt(), {
|
|
6147
6139
|
data: _,
|
|
6148
6140
|
isLoading: T,
|
|
@@ -6220,7 +6212,7 @@ const No = ({
|
|
|
6220
6212
|
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),
|
|
6221
6213
|
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),
|
|
6222
6214
|
image: {
|
|
6223
|
-
thumbnail: ((je = _ == null ? void 0 : _.actor) == null ? void 0 : je.data) && ((
|
|
6215
|
+
thumbnail: ((je = _ == null ? void 0 : _.actor) == null ? void 0 : je.data) && ((q = (be = _ == null ? void 0 : _.actor) == null ? void 0 : be.data) == null ? void 0 : q.thumbnail) || void 0
|
|
6224
6216
|
}
|
|
6225
6217
|
},
|
|
6226
6218
|
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,
|
|
@@ -6376,11 +6368,11 @@ export {
|
|
|
6376
6368
|
Or as CardBlock,
|
|
6377
6369
|
po as Carousel,
|
|
6378
6370
|
Un as CollapsibleSection,
|
|
6379
|
-
|
|
6371
|
+
Zr as Columns,
|
|
6380
6372
|
go as CommunityDetails,
|
|
6381
6373
|
Jn as Contributors,
|
|
6382
6374
|
Mt as ConversationContext,
|
|
6383
|
-
|
|
6375
|
+
qr as CookieBanner,
|
|
6384
6376
|
la as DiscussionConversation,
|
|
6385
6377
|
is as DiscussionForm,
|
|
6386
6378
|
ma as DiscussionLikes,
|
|
@@ -6388,7 +6380,7 @@ export {
|
|
|
6388
6380
|
ha as DiscussionThread,
|
|
6389
6381
|
Fe as Divider,
|
|
6390
6382
|
oo as DownloadSection,
|
|
6391
|
-
|
|
6383
|
+
Ze as EMAILS,
|
|
6392
6384
|
jo as EmailHelperTextBox,
|
|
6393
6385
|
Tt as EmptyStateBox,
|
|
6394
6386
|
xo as Filters,
|
|
@@ -6404,10 +6396,10 @@ export {
|
|
|
6404
6396
|
_r as IntlProvider,
|
|
6405
6397
|
na as InviteForm,
|
|
6406
6398
|
$o as InviteModal,
|
|
6407
|
-
|
|
6399
|
+
Zn as JoinButton,
|
|
6408
6400
|
bo as LanguageSwitcher,
|
|
6409
6401
|
$t as Link,
|
|
6410
|
-
|
|
6402
|
+
qn as LoadMore,
|
|
6411
6403
|
ho as LoadingBlock,
|
|
6412
6404
|
$e as LoadingPlaceholder,
|
|
6413
6405
|
Vn as LoadingState,
|
|
@@ -9,27 +9,31 @@ 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
|
-
|
|
12
|
+
export namespace explore {
|
|
13
|
+
let order_2: string[];
|
|
14
|
+
export { order_2 as order };
|
|
15
|
+
export namespace events {
|
|
16
|
+
let href_1: string;
|
|
17
|
+
export { href_1 as href };
|
|
18
|
+
export let className: string;
|
|
19
|
+
}
|
|
20
|
+
export namespace courses {
|
|
21
|
+
let href_2: string;
|
|
22
|
+
export { href_2 as href };
|
|
23
|
+
let gtmType_1: string;
|
|
24
|
+
export { gtmType_1 as gtmType };
|
|
25
|
+
let className_1: string;
|
|
26
|
+
export { className_1 as className };
|
|
27
|
+
}
|
|
28
|
+
export namespace articles {
|
|
29
|
+
let href_3: string;
|
|
30
|
+
export { href_3 as href };
|
|
31
|
+
let gtmType_2: string;
|
|
32
|
+
export { gtmType_2 as gtmType };
|
|
33
|
+
let className_2: string;
|
|
34
|
+
export { className_2 as className };
|
|
35
|
+
}
|
|
36
|
+
}
|
|
33
37
|
let topics_1: {
|
|
34
38
|
order: string[];
|
|
35
39
|
className: string;
|
|
@@ -73,8 +77,8 @@ declare namespace _default {
|
|
|
73
77
|
export { topics_1 as topics };
|
|
74
78
|
}
|
|
75
79
|
namespace partners {
|
|
76
|
-
let
|
|
77
|
-
export {
|
|
80
|
+
let href_4: string;
|
|
81
|
+
export { href_4 as href };
|
|
78
82
|
export let onlyShow: string;
|
|
79
83
|
}
|
|
80
84
|
let account: {
|
|
@@ -94,15 +98,15 @@ declare namespace _default {
|
|
|
94
98
|
};
|
|
95
99
|
};
|
|
96
100
|
namespace buttons {
|
|
97
|
-
let
|
|
98
|
-
export {
|
|
101
|
+
let order_3: string[];
|
|
102
|
+
export { order_3 as order };
|
|
99
103
|
export namespace login {
|
|
100
|
-
let
|
|
101
|
-
export {
|
|
104
|
+
let href_5: string;
|
|
105
|
+
export { href_5 as href };
|
|
102
106
|
}
|
|
103
107
|
export namespace signup {
|
|
104
|
-
let
|
|
105
|
-
export {
|
|
108
|
+
let href_6: string;
|
|
109
|
+
export { href_6 as href };
|
|
106
110
|
export namespace props {
|
|
107
111
|
let variant: string;
|
|
108
112
|
}
|