@tryghost/activitypub 3.1.14 → 3.1.16
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/dist/activitypub.js +1 -1
- package/dist/{at-sign-L8c-fmBE.mjs → at-sign-DbvyEqya.mjs} +2 -2
- package/dist/{at-sign-L8c-fmBE.mjs.map → at-sign-DbvyEqya.mjs.map} +1 -1
- package/dist/{avatar-flipboard-5HTtDvB8.mjs → avatar-flipboard-DlA8At88.mjs} +2 -2
- package/dist/{avatar-flipboard-5HTtDvB8.mjs.map → avatar-flipboard-DlA8At88.mjs.map} +1 -1
- package/dist/{bluesky-sharing-z7tI7J-i.mjs → bluesky-sharing-DJF8L8YX.mjs} +4 -4
- package/dist/{bluesky-sharing-z7tI7J-i.mjs.map → bluesky-sharing-DJF8L8YX.mjs.map} +1 -1
- package/dist/{copy-CJtoT0NC.mjs → copy-o8CPkfOy.mjs} +2 -2
- package/dist/{copy-CJtoT0NC.mjs.map → copy-o8CPkfOy.mjs.map} +1 -1
- package/dist/{deleted-feed-item-DOjLF6e7.mjs → deleted-feed-item-D7Lh01A1.mjs} +2 -2
- package/dist/{deleted-feed-item-DOjLF6e7.mjs.map → deleted-feed-item-D7Lh01A1.mjs.map} +1 -1
- package/dist/{edit-profile-DGFGCTB3.mjs → edit-profile-CNx9VFB0.mjs} +343 -342
- package/dist/edit-profile-CNx9VFB0.mjs.map +1 -0
- package/dist/{feed-DHvRPZkK.mjs → feed-DUj6zuQG.mjs} +4 -4
- package/dist/{feed-DHvRPZkK.mjs.map → feed-DUj6zuQG.mjs.map} +1 -1
- package/dist/{hash-PLqN02BK.mjs → hash-Ua2cMVZZ.mjs} +2 -2
- package/dist/{hash-PLqN02BK.mjs.map → hash-Ua2cMVZZ.mjs.map} +1 -1
- package/dist/{inbox-C_XtCWhi.mjs → inbox-CHTBd4v6.mjs} +2 -2
- package/dist/{inbox-C_XtCWhi.mjs.map → inbox-CHTBd4v6.mjs.map} +1 -1
- package/dist/{index-B1KQVajL.mjs → index-0JIzksX8.mjs} +7 -7
- package/dist/{index-B1KQVajL.mjs.map → index-0JIzksX8.mjs.map} +1 -1
- package/dist/{index-DW-NK8x0.mjs → index-BUxTXK58.mjs} +8142 -7630
- package/dist/index-BUxTXK58.mjs.map +1 -0
- package/dist/{index-C4FsaHg-.mjs → index-BaP7ZzBh.mjs} +2 -2
- package/dist/{index-C4FsaHg-.mjs.map → index-BaP7ZzBh.mjs.map} +1 -1
- package/dist/{index-BZpBLgwj.mjs → index-Bdx2FYYX.mjs} +2 -2
- package/dist/{index-BZpBLgwj.mjs.map → index-Bdx2FYYX.mjs.map} +1 -1
- package/dist/{index-DKvb91i3.mjs → index-CbeWHLjc.mjs} +6 -6
- package/dist/{index-DKvb91i3.mjs.map → index-CbeWHLjc.mjs.map} +1 -1
- package/dist/{index-MBUMlRJ_.mjs → index-DSYK4l2Z.mjs} +41 -41
- package/dist/index-DSYK4l2Z.mjs.map +1 -0
- package/dist/{index-CvkZfb4P.mjs → index-Dvy73QpT.mjs} +3 -3
- package/dist/{index-CvkZfb4P.mjs.map → index-Dvy73QpT.mjs.map} +1 -1
- package/dist/{index-KBMcLxdx.mjs → index-pDs048xI.mjs} +4 -4
- package/dist/{index-KBMcLxdx.mjs.map → index-pDs048xI.mjs.map} +1 -1
- package/dist/{moderation-Dx6t4gT3.mjs → moderation-BX6PetXQ.mjs} +3 -3
- package/dist/{moderation-Dx6t4gT3.mjs.map → moderation-BX6PetXQ.mjs.map} +1 -1
- package/dist/{note-CZU4YwDt.mjs → note-DWKmf61a.mjs} +4 -4
- package/dist/{note-CZU4YwDt.mjs.map → note-DWKmf61a.mjs.map} +1 -1
- package/dist/{reply-BiQ2tbCL.mjs → reply-D3ggZn8x.mjs} +2 -2
- package/dist/{reply-BiQ2tbCL.mjs.map → reply-D3ggZn8x.mjs.map} +1 -1
- package/dist/{separator-Bh7k9bSR.mjs → separator-BvykMnKw.mjs} +2 -2
- package/dist/{separator-Bh7k9bSR.mjs.map → separator-BvykMnKw.mjs.map} +1 -1
- package/dist/{settings-BkfeI-Go.mjs → settings-DC22q-Jw.mjs} +3 -3
- package/dist/{settings-BkfeI-Go.mjs.map → settings-DC22q-Jw.mjs.map} +1 -1
- package/dist/{step-1-DdZDMnef.mjs → step-1-SDEAyCzr.mjs} +3 -3
- package/dist/{step-1-DdZDMnef.mjs.map → step-1-SDEAyCzr.mjs.map} +1 -1
- package/dist/{step-2-BnzzL30K.mjs → step-2-Cr20T_8Z.mjs} +5 -5
- package/dist/{step-2-BnzzL30K.mjs.map → step-2-Cr20T_8Z.mjs.map} +1 -1
- package/dist/{step-3-epf2QdQA.mjs → step-3-BBI6k4Pz.mjs} +7 -7
- package/dist/{step-3-epf2QdQA.mjs.map → step-3-BBI6k4Pz.mjs.map} +1 -1
- package/dist/{tabs-CB5AR-gI.mjs → tabs-Cd5f1n42.mjs} +155 -168
- package/dist/{tabs-CB5AR-gI.mjs.map → tabs-Cd5f1n42.mjs.map} +1 -1
- package/dist/{topic-filter-JC-eNOdZ.mjs → topic-filter-CXslsKa8.mjs} +2 -2
- package/dist/{topic-filter-JC-eNOdZ.mjs.map → topic-filter-CXslsKa8.mjs.map} +1 -1
- package/package.json +1 -3
- package/dist/edit-profile-DGFGCTB3.mjs.map +0 -1
- package/dist/index-DW-NK8x0.mjs.map +0 -1
- package/dist/index-MBUMlRJ_.mjs.map +0 -1
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { a6 as ee, R as Z, j as n, s as Fn, b as y, e as L, b8 as Ln, b9 as Rn, B as $,
|
|
2
|
-
import { u as
|
|
3
|
-
import { T as Ee } from "./topic-filter-
|
|
4
|
-
import { S as Ne } from "./separator-
|
|
5
|
-
import { I as Nn } from "./inbox-
|
|
1
|
+
import { a6 as ee, R as Z, j as n, s as Fn, b as y, e as L, b8 as Ln, b9 as Rn, B as $, bD as te, ba as On, bE as ae, c as W, bF as oe, W as zn, d as Tn, bG as hn, S as N, P as re, A as ie, g as Cn, r as de, h as se, aa as ce, aP as le, k as mn, F as cn, i as ln, bH as ge, bI as B, bJ as Sn, ac as pe, a as ue, u as he, l as me, L as ke, D as fe, n as xe, o as be, p as ve, bK as ye, bL as we, bM as je, ax as _n, ay as ze } from "./index-BUxTXK58.mjs";
|
|
2
|
+
import { u as Ce, D as Se, A as _e, S as En } from "./deleted-feed-item-D7Lh01A1.mjs";
|
|
3
|
+
import { T as Ee } from "./topic-filter-CXslsKa8.mjs";
|
|
4
|
+
import { S as Ne } from "./separator-BvykMnKw.mjs";
|
|
5
|
+
import { I as Nn } from "./inbox-CHTBd4v6.mjs";
|
|
6
6
|
/**
|
|
7
7
|
* @license lucide-react v0.577.0 - ISC
|
|
8
8
|
*
|
|
@@ -25,7 +25,7 @@ const kn = Z.forwardRef(({ children: t, className: r, title: a, description: i,
|
|
|
25
25
|
/* @__PURE__ */ n.jsx("h3", { className: "text-md font-medium tracking-normal text-pretty text-foreground", children: a }),
|
|
26
26
|
i && /* @__PURE__ */ n.jsx("p", { className: "text-sm leading-tight text-pretty text-muted-foreground", children: i })
|
|
27
27
|
] }),
|
|
28
|
-
d && /* @__PURE__ */ n.jsx("div", { className: "
|
|
28
|
+
d && /* @__PURE__ */ n.jsx("div", { className: "flex items-center gap-2", children: d })
|
|
29
29
|
] }));
|
|
30
30
|
kn.displayName = "EmptyIndicator";
|
|
31
31
|
const fn = ["1.5rem", "1.6rem", "1.7rem", "1.8rem", "2rem"], Q = {
|
|
@@ -252,13 +252,13 @@ const fn = ["1.5rem", "1.6rem", "1.7rem", "1.8rem", "2rem"], Q = {
|
|
|
252
252
|
const l = r.contentDocument;
|
|
253
253
|
if (!l)
|
|
254
254
|
return;
|
|
255
|
-
const I = p.scrollTop, R = 100, q = t.map((
|
|
256
|
-
id:
|
|
257
|
-
top:
|
|
255
|
+
const I = p.scrollTop, R = 100, q = t.map((C) => l.getElementById(C.id)).filter((C) => C !== null).map((C) => ({
|
|
256
|
+
id: C.id,
|
|
257
|
+
top: C.offsetTop
|
|
258
258
|
}));
|
|
259
259
|
if (!q.length)
|
|
260
260
|
return;
|
|
261
|
-
const _ = q.reduce((
|
|
261
|
+
const _ = q.reduce((C, A) => A.top - R <= I ? A : C);
|
|
262
262
|
s((_ == null ? void 0 : _.id) || null);
|
|
263
263
|
}, c = () => {
|
|
264
264
|
requestAnimationFrame(o);
|
|
@@ -3926,10 +3926,10 @@ a.kg-cta-button {
|
|
|
3926
3926
|
font-size: 1.45rem;
|
|
3927
3927
|
}
|
|
3928
3928
|
}
|
|
3929
|
-
`,
|
|
3929
|
+
`, zt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
3930
3930
|
__proto__: null,
|
|
3931
3931
|
default: jt
|
|
3932
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
3932
|
+
}, Symbol.toStringTag, { value: "Module" })), Ct = `.kg-video-card,
|
|
3933
3933
|
.kg-video-card * {
|
|
3934
3934
|
box-sizing: border-box;
|
|
3935
3935
|
}
|
|
@@ -4286,8 +4286,8 @@ a.kg-cta-button {
|
|
|
4286
4286
|
|
|
4287
4287
|
`, St = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
4288
4288
|
__proto__: null,
|
|
4289
|
-
default:
|
|
4290
|
-
}, Symbol.toStringTag, { value: "Module" })), _t = /* @__PURE__ */ Object.assign({ "../../ghost/core/core/frontend/src/cards/js/audio.js": De, "../../ghost/core/core/frontend/src/cards/js/gallery.js": qe, "../../ghost/core/core/frontend/src/cards/js/toggle.js": Ue, "../../ghost/core/core/frontend/src/cards/js/video.js": Ke }), Et = /* @__PURE__ */ Object.assign({ "../../ghost/core/core/frontend/src/cards/css/audio.css": Ye, "../../ghost/core/core/frontend/src/cards/css/blockquote.css": Ze, "../../ghost/core/core/frontend/src/cards/css/bookmark.css": Ge, "../../ghost/core/core/frontend/src/cards/css/button.css": nt, "../../ghost/core/core/frontend/src/cards/css/callout.css": tt, "../../ghost/core/core/frontend/src/cards/css/collection.css": ot, "../../ghost/core/core/frontend/src/cards/css/cta.css": it, "../../ghost/core/core/frontend/src/cards/css/file.css": st, "../../ghost/core/core/frontend/src/cards/css/gallery.css": lt, "../../ghost/core/core/frontend/src/cards/css/header.css": pt, "../../ghost/core/core/frontend/src/cards/css/header_v2.css": ht, "../../ghost/core/core/frontend/src/cards/css/nft.css": kt, "../../ghost/core/core/frontend/src/cards/css/product.css": xt, "../../ghost/core/core/frontend/src/cards/css/signup.css": vt, "../../ghost/core/core/frontend/src/cards/css/toggle.css": wt, "../../ghost/core/core/frontend/src/cards/css/transistor.css":
|
|
4289
|
+
default: Ct
|
|
4290
|
+
}, Symbol.toStringTag, { value: "Module" })), _t = /* @__PURE__ */ Object.assign({ "../../ghost/core/core/frontend/src/cards/js/audio.js": De, "../../ghost/core/core/frontend/src/cards/js/gallery.js": qe, "../../ghost/core/core/frontend/src/cards/js/toggle.js": Ue, "../../ghost/core/core/frontend/src/cards/js/video.js": Ke }), Et = /* @__PURE__ */ Object.assign({ "../../ghost/core/core/frontend/src/cards/css/audio.css": Ye, "../../ghost/core/core/frontend/src/cards/css/blockquote.css": Ze, "../../ghost/core/core/frontend/src/cards/css/bookmark.css": Ge, "../../ghost/core/core/frontend/src/cards/css/button.css": nt, "../../ghost/core/core/frontend/src/cards/css/callout.css": tt, "../../ghost/core/core/frontend/src/cards/css/collection.css": ot, "../../ghost/core/core/frontend/src/cards/css/cta.css": it, "../../ghost/core/core/frontend/src/cards/css/file.css": st, "../../ghost/core/core/frontend/src/cards/css/gallery.css": lt, "../../ghost/core/core/frontend/src/cards/css/header.css": pt, "../../ghost/core/core/frontend/src/cards/css/header_v2.css": ht, "../../ghost/core/core/frontend/src/cards/css/nft.css": kt, "../../ghost/core/core/frontend/src/cards/css/product.css": xt, "../../ghost/core/core/frontend/src/cards/css/signup.css": vt, "../../ghost/core/core/frontend/src/cards/css/toggle.css": wt, "../../ghost/core/core/frontend/src/cards/css/transistor.css": zt, "../../ghost/core/core/frontend/src/cards/css/video.css": St }), Nt = Object.values(_t).map((t) => t.default).join(`
|
|
4291
4291
|
|
|
4292
4292
|
`), It = Object.values(Et).map((t) => t.default).join(`
|
|
4293
4293
|
|
|
@@ -4306,7 +4306,7 @@ a.kg-cta-button {
|
|
|
4306
4306
|
onLoadingChange: c,
|
|
4307
4307
|
isPopoverOpen: l
|
|
4308
4308
|
}) => {
|
|
4309
|
-
const I = W(null), [R, q] = y(!0), [_,
|
|
4309
|
+
const I = W(null), [R, q] = y(!0), [_, C] = y("0px"), A = document.documentElement.classList.contains("dark") && s === "SYSTEM" || s === "DARK", J = Ae(), f = `
|
|
4310
4310
|
<html class="has-${A ? "light" : "dark"}-text has-${v}-body ${s === "SEPIA" && "has-sepia-bg"}">
|
|
4311
4311
|
<head>
|
|
4312
4312
|
${J}
|
|
@@ -4457,7 +4457,7 @@ a.kg-cta-button {
|
|
|
4457
4457
|
const O = (x) => {
|
|
4458
4458
|
if (x.data.type === "resize") {
|
|
4459
4459
|
const S = `${x.data.bodyHeight + 24}px`;
|
|
4460
|
-
|
|
4460
|
+
C(S), g.style.height = S, x.data.isLoaded && q(!1);
|
|
4461
4461
|
}
|
|
4462
4462
|
}, j = (x) => {
|
|
4463
4463
|
if (x.key === "Escape") {
|
|
@@ -4571,7 +4571,7 @@ a.kg-cta-button {
|
|
|
4571
4571
|
increaseFontSize: v,
|
|
4572
4572
|
decreaseFontSize: p,
|
|
4573
4573
|
resetFontSize: o
|
|
4574
|
-
} = Fe(), c = W(null), [l, I] = y(!1), [R, q] = y(!1), [_,
|
|
4574
|
+
} = Fe(), c = W(null), [l, I] = y(!1), [R, q] = y(!1), [_, C] = y(/* @__PURE__ */ new Set()), [A, J] = y(/* @__PURE__ */ new Set()), [f, g] = y(/* @__PURE__ */ new Set()), [O, j] = y(!1), E = W(null), x = W(null), {
|
|
4575
4575
|
post: S,
|
|
4576
4576
|
processedReplies: en,
|
|
4577
4577
|
isLoading: T,
|
|
@@ -4579,7 +4579,7 @@ a.kg-cta-button {
|
|
|
4579
4579
|
loadMoreChildReplies: tn,
|
|
4580
4580
|
hasMoreChildren: an,
|
|
4581
4581
|
hasMoreChildReplies: on
|
|
4582
|
-
} =
|
|
4582
|
+
} = Ce(t ?? "", { includeAncestors: !1 }), H = S, m = H == null ? void 0 : H.object, U = H == null ? void 0 : H.actor, An = (yn = (vn = H == null ? void 0 : H.object) == null ? void 0 : vn.metadata) == null ? void 0 : yn.ghostAuthors, $n = (m == null ? void 0 : m.replyCount) ?? 0;
|
|
4583
4583
|
L(() => {
|
|
4584
4584
|
if (!an)
|
|
4585
4585
|
return;
|
|
@@ -4607,10 +4607,10 @@ a.kg-cta-button {
|
|
|
4607
4607
|
function pn() {
|
|
4608
4608
|
}
|
|
4609
4609
|
function Dn(e) {
|
|
4610
|
-
|
|
4610
|
+
C((w) => {
|
|
4611
4611
|
const k = new Set(w);
|
|
4612
|
-
return k.has(e) ? k.delete(e) : (k.add(e), J((
|
|
4613
|
-
const M = new Set(
|
|
4612
|
+
return k.has(e) ? k.delete(e) : (k.add(e), J((z) => {
|
|
4613
|
+
const M = new Set(z);
|
|
4614
4614
|
return M.add(e), M;
|
|
4615
4615
|
})), k;
|
|
4616
4616
|
});
|
|
@@ -4624,8 +4624,8 @@ a.kg-cta-button {
|
|
|
4624
4624
|
console.error("Failed to load more replies for chain:", k);
|
|
4625
4625
|
} finally {
|
|
4626
4626
|
g((k) => {
|
|
4627
|
-
const
|
|
4628
|
-
return
|
|
4627
|
+
const z = new Set(k);
|
|
4628
|
+
return z.delete(e), z;
|
|
4629
4629
|
});
|
|
4630
4630
|
}
|
|
4631
4631
|
}
|
|
@@ -4646,18 +4646,18 @@ a.kg-cta-button {
|
|
|
4646
4646
|
};
|
|
4647
4647
|
if (G)
|
|
4648
4648
|
return;
|
|
4649
|
-
const
|
|
4650
|
-
return w &&
|
|
4649
|
+
const z = new MutationObserver(k);
|
|
4650
|
+
return w && z.observe(w, {
|
|
4651
4651
|
childList: !0,
|
|
4652
4652
|
subtree: !0,
|
|
4653
4653
|
characterData: !0
|
|
4654
4654
|
}), e == null || e.addEventListener("scroll", k), k(), () => {
|
|
4655
|
-
e == null || e.removeEventListener("scroll", k),
|
|
4655
|
+
e == null || e.removeEventListener("scroll", k), z.disconnect();
|
|
4656
4656
|
};
|
|
4657
4657
|
}, [G, un]);
|
|
4658
|
-
const [rn, Vn] = y([]), [Yn, Qn] = y(null), [V, Zn] = y(null), Jn =
|
|
4658
|
+
const [rn, Vn] = y([]), [Yn, Qn] = y(null), [V, Zn] = y(null), Jn = zn((e) => {
|
|
4659
4659
|
Vn(e);
|
|
4660
|
-
}, []), Gn =
|
|
4660
|
+
}, []), Gn = zn((e) => {
|
|
4661
4661
|
Zn(e);
|
|
4662
4662
|
}, []);
|
|
4663
4663
|
L(() => {
|
|
@@ -4667,7 +4667,7 @@ a.kg-cta-button {
|
|
|
4667
4667
|
const k = c.current;
|
|
4668
4668
|
if (!k)
|
|
4669
4669
|
return;
|
|
4670
|
-
const
|
|
4670
|
+
const z = () => {
|
|
4671
4671
|
const M = V.contentDocument;
|
|
4672
4672
|
if (!M || !M.documentElement)
|
|
4673
4673
|
return;
|
|
@@ -4687,8 +4687,8 @@ a.kg-cta-button {
|
|
|
4687
4687
|
break;
|
|
4688
4688
|
Qn((b == null ? void 0 : b.id) || null);
|
|
4689
4689
|
};
|
|
4690
|
-
return k.addEventListener("scroll",
|
|
4691
|
-
k.removeEventListener("scroll",
|
|
4690
|
+
return k.addEventListener("scroll", z), z(), () => {
|
|
4691
|
+
k.removeEventListener("scroll", z);
|
|
4692
4692
|
};
|
|
4693
4693
|
}, 100);
|
|
4694
4694
|
return () => clearTimeout(w);
|
|
@@ -4766,7 +4766,7 @@ a.kg-cta-button {
|
|
|
4766
4766
|
/* @__PURE__ */ n.jsxs("div", { className: "relative z-10 mt-0.5 flex min-w-0 cursor-pointer flex-col overflow-visible text-[1.5rem]", onClick: (e) => se(U, dn, e), children: [
|
|
4767
4767
|
/* @__PURE__ */ n.jsx("div", { className: "flex w-full", children: /* @__PURE__ */ n.jsx("span", { className: "min-w-0 truncate font-semibold whitespace-nowrap text-black hover:underline dark:text-white", children: T ? /* @__PURE__ */ n.jsx(N, { className: "w-20" }) : U.name }) }),
|
|
4768
4768
|
/* @__PURE__ */ n.jsxs("div", { className: "flex w-full", children: [
|
|
4769
|
-
!T && /* @__PURE__ */ n.jsx("span", { className: 'truncate text-gray-700 after:mx-1 after:font-normal after:text-gray-700 after:content-["·"]', children:
|
|
4769
|
+
!T && /* @__PURE__ */ n.jsx("span", { className: 'truncate text-gray-700 after:mx-1 after:font-normal after:text-gray-700 after:content-["·"]', children: Cn(U) }),
|
|
4770
4770
|
/* @__PURE__ */ n.jsx("span", { className: "text-gray-700", children: T ? /* @__PURE__ */ n.jsx(N, { className: "w-[120px]" }) : de(m, !m.authored) })
|
|
4771
4771
|
] })
|
|
4772
4772
|
] })
|
|
@@ -4775,7 +4775,7 @@ a.kg-cta-button {
|
|
|
4775
4775
|
ce,
|
|
4776
4776
|
{
|
|
4777
4777
|
following: U.followedByMe ?? !1,
|
|
4778
|
-
handle:
|
|
4778
|
+
handle: Cn(U)
|
|
4779
4779
|
}
|
|
4780
4780
|
)
|
|
4781
4781
|
] }),
|
|
@@ -4852,7 +4852,7 @@ a.kg-cta-button {
|
|
|
4852
4852
|
T && /* @__PURE__ */ n.jsx(mn, { size: "lg" }),
|
|
4853
4853
|
/* @__PURE__ */ n.jsxs("div", { ref: Hn, className: "mx-auto w-full", style: { maxWidth: K }, children: [
|
|
4854
4854
|
en.map((e, w) => {
|
|
4855
|
-
const k = w === en.length - 1,
|
|
4855
|
+
const k = w === en.length - 1, z = e.mainReply.id, M = _.has(z), Y = A.has(z), X = f.has(z), D = e.chain.length > 0;
|
|
4856
4856
|
return /* @__PURE__ */ n.jsxs(Z.Fragment, { children: [
|
|
4857
4857
|
/* @__PURE__ */ n.jsx(
|
|
4858
4858
|
cn,
|
|
@@ -4929,7 +4929,7 @@ a.kg-cta-button {
|
|
|
4929
4929
|
En,
|
|
4930
4930
|
{
|
|
4931
4931
|
variant: "expand",
|
|
4932
|
-
onClick: () => Dn(
|
|
4932
|
+
onClick: () => Dn(z)
|
|
4933
4933
|
}
|
|
4934
4934
|
),
|
|
4935
4935
|
D && M && Y && on && on(w) && /* @__PURE__ */ n.jsx(
|
|
@@ -4937,7 +4937,7 @@ a.kg-cta-button {
|
|
|
4937
4937
|
{
|
|
4938
4938
|
loading: X,
|
|
4939
4939
|
variant: "loadMore",
|
|
4940
|
-
onClick: () => Bn(
|
|
4940
|
+
onClick: () => Bn(z, w)
|
|
4941
4941
|
}
|
|
4942
4942
|
),
|
|
4943
4943
|
!k && /* @__PURE__ */ n.jsx(Pn, {})
|
|
@@ -4982,10 +4982,10 @@ a.kg-cta-button {
|
|
|
4982
4982
|
L(() => {
|
|
4983
4983
|
c(!!l.postId);
|
|
4984
4984
|
}, [l.postId]);
|
|
4985
|
-
const _ = W(null),
|
|
4985
|
+
const _ = W(null), C = W(null), A = W(null);
|
|
4986
4986
|
L(() => (_.current && _.current.disconnect(), _.current = new IntersectionObserver((f) => {
|
|
4987
4987
|
f[0].isIntersecting && d && !u && i();
|
|
4988
|
-
}),
|
|
4988
|
+
}), C.current && _.current.observe(C.current), A.current && _.current.observe(A.current), () => {
|
|
4989
4989
|
_.current && _.current.disconnect();
|
|
4990
4990
|
}), [d, u, i]);
|
|
4991
4991
|
const J = Math.max(0, Math.floor(r.length * 0.75) - 1);
|
|
@@ -5018,7 +5018,7 @@ a.kg-cta-button {
|
|
|
5018
5018
|
}
|
|
5019
5019
|
),
|
|
5020
5020
|
g < r.length - 1 && /* @__PURE__ */ n.jsx(Ne, {}),
|
|
5021
|
-
g === J && /* @__PURE__ */ n.jsx("div", { ref:
|
|
5021
|
+
g === J && /* @__PURE__ */ n.jsx("div", { ref: C, className: "h-1" })
|
|
5022
5022
|
]
|
|
5023
5023
|
},
|
|
5024
5024
|
`${f.id}-${f.type}-${g}`
|
|
@@ -5064,7 +5064,7 @@ a.kg-cta-button {
|
|
|
5064
5064
|
}, $t = () => {
|
|
5065
5065
|
const [t, r] = y("following"), { inboxQuery: a } = we({ enabled: t === "following" }), { discoveryFeedQuery: i } = je({ enabled: t !== "following", topic: t }), d = t === "following" ? a : i, { data: u, error: s, fetchNextPage: h, hasNextPage: v, isFetchingNextPage: p, isLoading: o } = d, c = s && _n(s) && s.statusCode === 404 && t !== "following";
|
|
5066
5066
|
if (s && _n(s) && !c)
|
|
5067
|
-
return /* @__PURE__ */ n.jsx(
|
|
5067
|
+
return /* @__PURE__ */ n.jsx(ze, { errorCode: s.code, statusCode: s.statusCode });
|
|
5068
5068
|
const l = c ? [] : (u == null ? void 0 : u.pages.flatMap((I) => I.posts)) ?? Array.from({ length: 5 }, (I, R) => ({ id: `placeholder-${R}`, object: {} }));
|
|
5069
5069
|
return /* @__PURE__ */ n.jsx(
|
|
5070
5070
|
Lt,
|
|
@@ -5082,4 +5082,4 @@ a.kg-cta-button {
|
|
|
5082
5082
|
export {
|
|
5083
5083
|
$t as default
|
|
5084
5084
|
};
|
|
5085
|
-
//# sourceMappingURL=index-
|
|
5085
|
+
//# sourceMappingURL=index-DSYK4l2Z.mjs.map
|