@tryghost/activitypub 3.0.8 → 3.1.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/dist/activitypub.js +2 -2
- package/dist/{at-sign-Fsk3x72r.mjs → at-sign-l8HMU0fk.mjs} +2 -2
- package/dist/{at-sign-Fsk3x72r.mjs.map → at-sign-l8HMU0fk.mjs.map} +1 -1
- package/dist/{avatar-flipboard-C10JfFS_.mjs → avatar-flipboard-D12yCmyH.mjs} +2 -2
- package/dist/{avatar-flipboard-C10JfFS_.mjs.map → avatar-flipboard-D12yCmyH.mjs.map} +1 -1
- package/dist/{bluesky-sharing-C1xeGSL6.mjs → bluesky-sharing-D65sfQFX.mjs} +4 -4
- package/dist/{bluesky-sharing-C1xeGSL6.mjs.map → bluesky-sharing-D65sfQFX.mjs.map} +1 -1
- package/dist/{copy-C1fElSkQ.mjs → copy-DCHXVz-9.mjs} +2 -2
- package/dist/{copy-C1fElSkQ.mjs.map → copy-DCHXVz-9.mjs.map} +1 -1
- package/dist/{deleted-feed-item-Bun4tY2_.mjs → deleted-feed-item-BkXeOOSC.mjs} +4 -4
- package/dist/{deleted-feed-item-Bun4tY2_.mjs.map → deleted-feed-item-BkXeOOSC.mjs.map} +1 -1
- package/dist/{edit-profile-CYh00FZ7.mjs → edit-profile-DdCJ6UkE.mjs} +3 -3
- package/dist/{edit-profile-CYh00FZ7.mjs.map → edit-profile-DdCJ6UkE.mjs.map} +1 -1
- package/dist/{feed-BxUqmcN9.mjs → feed-D4gYSgoO.mjs} +4 -4
- package/dist/{feed-BxUqmcN9.mjs.map → feed-D4gYSgoO.mjs.map} +1 -1
- package/dist/{hash-CNgwAx-U.mjs → hash-D_Ql6FHR.mjs} +2 -2
- package/dist/{hash-CNgwAx-U.mjs.map → hash-D_Ql6FHR.mjs.map} +1 -1
- package/dist/{inbox-DqNqII4a.mjs → inbox-BIeU-G-G.mjs} +2 -2
- package/dist/{inbox-DqNqII4a.mjs.map → inbox-BIeU-G-G.mjs.map} +1 -1
- package/dist/{index-CJJXnqq1.mjs → index-BlNT1f8K.mjs} +38 -38
- package/dist/index-BlNT1f8K.mjs.map +1 -0
- package/dist/{index-C9pnotJK.mjs → index-BurflorF.mjs} +466 -375
- package/dist/index-BurflorF.mjs.map +1 -0
- package/dist/{index-CONoLlDU.mjs → index-BvOcRwis.mjs} +2 -2
- package/dist/{index-CONoLlDU.mjs.map → index-BvOcRwis.mjs.map} +1 -1
- package/dist/{index-Dvh9q3jy.mjs → index-CPG1Xmp8.mjs} +6 -6
- package/dist/{index-Dvh9q3jy.mjs.map → index-CPG1Xmp8.mjs.map} +1 -1
- package/dist/{index--Q6orQkb.mjs → index-DIicyWvr.mjs} +10224 -9581
- package/dist/index-DIicyWvr.mjs.map +1 -0
- package/dist/{index-jhjmoHwu.mjs → index-DK0316YP.mjs} +13 -13
- package/dist/{index-jhjmoHwu.mjs.map → index-DK0316YP.mjs.map} +1 -1
- package/dist/{index-C3KJXzZE.mjs → index-DiYjJ67s.mjs} +115 -115
- package/dist/index-DiYjJ67s.mjs.map +1 -0
- package/dist/{index-BueIufRq.mjs → index-l72TqahD.mjs} +5 -5
- package/dist/{index-BueIufRq.mjs.map → index-l72TqahD.mjs.map} +1 -1
- package/dist/{moderation-CYhwUFi2.mjs → moderation-B0rtiaEH.mjs} +3 -3
- package/dist/{moderation-CYhwUFi2.mjs.map → moderation-B0rtiaEH.mjs.map} +1 -1
- package/dist/{note-COVa8CMw.mjs → note-DjaU27En.mjs} +4 -4
- package/dist/{note-COVa8CMw.mjs.map → note-DjaU27En.mjs.map} +1 -1
- package/dist/{reply-BHpKVBxx.mjs → reply-4cqNFwLY.mjs} +2 -2
- package/dist/{reply-BHpKVBxx.mjs.map → reply-4cqNFwLY.mjs.map} +1 -1
- package/dist/{separator-DP7q5sFH.mjs → separator-Dgj8LPTF.mjs} +12 -12
- package/dist/{separator-DP7q5sFH.mjs.map → separator-Dgj8LPTF.mjs.map} +1 -1
- package/dist/{settings-3n7zo_3K.mjs → settings-qNWc2HyW.mjs} +3 -3
- package/dist/{settings-3n7zo_3K.mjs.map → settings-qNWc2HyW.mjs.map} +1 -1
- package/dist/{step-1-BmUukywZ.mjs → step-1-CuRWXSkm.mjs} +12 -12
- package/dist/{step-1-BmUukywZ.mjs.map → step-1-CuRWXSkm.mjs.map} +1 -1
- package/dist/{step-2-C--I3xxp.mjs → step-2-BsxjLzY8.mjs} +5 -5
- package/dist/{step-2-C--I3xxp.mjs.map → step-2-BsxjLzY8.mjs.map} +1 -1
- package/dist/{step-3-0Deh5N9c.mjs → step-3-NBvYqr7R.mjs} +7 -7
- package/dist/{step-3-0Deh5N9c.mjs.map → step-3-NBvYqr7R.mjs.map} +1 -1
- package/dist/{tabs-D_vmoLBo.mjs → tabs-ROut24vi.mjs} +3 -3
- package/dist/{tabs-D_vmoLBo.mjs.map → tabs-ROut24vi.mjs.map} +1 -1
- package/dist/{topic-filter-DJMrhH-c.mjs → topic-filter-YL1wy3Q1.mjs} +2 -2
- package/dist/{topic-filter-DJMrhH-c.mjs.map → topic-filter-YL1wy3Q1.mjs.map} +1 -1
- package/package.json +3 -1
- package/dist/index--Q6orQkb.mjs.map +0 -1
- package/dist/index-C3KJXzZE.mjs.map +0 -1
- package/dist/index-C9pnotJK.mjs.map +0 -1
- package/dist/index-CJJXnqq1.mjs.map +0 -1
|
@@ -1,34 +1,34 @@
|
|
|
1
|
-
import { a6 as
|
|
2
|
-
import { u as
|
|
3
|
-
import { T as
|
|
4
|
-
import { S as
|
|
5
|
-
import { I as
|
|
1
|
+
import { a6 as ee, R as Z, j as n, s as Fn, b as y, e as L, bb as Ln, bc as Rn, B as $, bF as te, bd as On, bG as ae, c as W, bH as oe, W as zn, d as Tn, bI as hn, S as N, P as re, A as ie, h as de, g as Cn, r as se, aa as ce, aU as le, k as mn, F as cn, i as ln, bJ as ge, bK as B, ac as pe, bL as Sn, a as ue, u as he, l as me, L as ke, D as fe, n as be, o as xe, p as ve, bM as ye, bN as we, bO as je, aw as _n, ax as ze } from "./index-DIicyWvr.mjs";
|
|
2
|
+
import { u as Ce, D as Se, A as _e, S as En } from "./deleted-feed-item-BkXeOOSC.mjs";
|
|
3
|
+
import { T as Ee } from "./topic-filter-YL1wy3Q1.mjs";
|
|
4
|
+
import { S as Ne } from "./separator-Dgj8LPTF.mjs";
|
|
5
|
+
import { I as Nn } from "./inbox-BIeU-G-G.mjs";
|
|
6
6
|
/**
|
|
7
7
|
* @license lucide-react v0.553.0 - ISC
|
|
8
8
|
*
|
|
9
9
|
* This source code is licensed under the ISC license.
|
|
10
10
|
* See the LICENSE file in the root directory of this source tree.
|
|
11
11
|
*/
|
|
12
|
-
const
|
|
12
|
+
const Ie = [["path", { d: "M5 12h14", key: "1ays0h" }]], Pe = ee("minus", Ie), Mn = Z.forwardRef(({ children: t, className: r, ...a }, i) => /* @__PURE__ */ n.jsx(
|
|
13
13
|
"div",
|
|
14
14
|
{
|
|
15
15
|
ref: i,
|
|
16
|
-
className:
|
|
17
|
-
...
|
|
18
|
-
children:
|
|
16
|
+
className: Fn("flex items-center justify-center rounded-full bg-muted w-12 h-12 max-w-12 max-h-12 [&_svg]:size-4 [&_svg]:text-muted-foreground [&_svg]:shrink-0", r),
|
|
17
|
+
...a,
|
|
18
|
+
children: t
|
|
19
19
|
}
|
|
20
20
|
));
|
|
21
|
-
|
|
22
|
-
const
|
|
23
|
-
/* @__PURE__ */ n.jsx(
|
|
21
|
+
Mn.displayName = "EmptyBadge";
|
|
22
|
+
const kn = Z.forwardRef(({ children: t, className: r, title: a, description: i, actions: d, ...u }, s) => /* @__PURE__ */ n.jsxs("div", { ref: s, className: Fn("flex flex-col items-center justify-center space-y-3 text-center", r), ...u, children: [
|
|
23
|
+
/* @__PURE__ */ n.jsx(Mn, { children: t }),
|
|
24
24
|
/* @__PURE__ */ n.jsxs("div", { className: "max-w-[320px] space-y-1.5", children: [
|
|
25
|
-
/* @__PURE__ */ n.jsx("h3", { className: "text-pretty text-md font-medium tracking-normal text-foreground", children:
|
|
25
|
+
/* @__PURE__ */ n.jsx("h3", { className: "text-pretty text-md font-medium tracking-normal text-foreground", children: a }),
|
|
26
26
|
i && /* @__PURE__ */ n.jsx("p", { className: "text-pretty text-sm leading-tight text-muted-foreground", children: i })
|
|
27
27
|
] }),
|
|
28
28
|
d && /* @__PURE__ */ n.jsx("div", { className: "mt-4 flex items-center gap-2", children: d })
|
|
29
29
|
] }));
|
|
30
|
-
|
|
31
|
-
const
|
|
30
|
+
kn.displayName = "EmptyIndicator";
|
|
31
|
+
const fn = ["1.5rem", "1.6rem", "1.7rem", "1.8rem", "2rem"], Q = {
|
|
32
32
|
BACKGROUND_COLOR: "ghost-ap-background-color",
|
|
33
33
|
FONT_SIZE: "ghost-ap-font-size",
|
|
34
34
|
FONT_STYLE: "ghost-ap-font-style"
|
|
@@ -61,77 +61,77 @@ const kn = ["1.5rem", "1.6rem", "1.7rem", "1.8rem", "2rem"], Y = {
|
|
|
61
61
|
button: "text-white dark:bg-black dark:hover:bg-gray-900",
|
|
62
62
|
border: "border-black/[8%] dark:border-gray-950"
|
|
63
63
|
}
|
|
64
|
-
},
|
|
65
|
-
const [
|
|
66
|
-
const o = localStorage.getItem(
|
|
64
|
+
}, Fe = () => {
|
|
65
|
+
const [t, r] = y(() => {
|
|
66
|
+
const o = localStorage.getItem(Q.BACKGROUND_COLOR);
|
|
67
67
|
return (o == null ? void 0 : o.toUpperCase()) || "SYSTEM";
|
|
68
|
-
}), [
|
|
69
|
-
const o = localStorage.getItem(
|
|
68
|
+
}), [a, i] = y(() => {
|
|
69
|
+
const o = localStorage.getItem(Q.FONT_SIZE);
|
|
70
70
|
return o ? parseInt(o) : 2;
|
|
71
|
-
}), [d, u] = y(() => localStorage.getItem(
|
|
72
|
-
r(o), localStorage.setItem(
|
|
71
|
+
}), [d, u] = y(() => localStorage.getItem(Q.FONT_STYLE) || "sans"), s = (o) => {
|
|
72
|
+
r(o), localStorage.setItem(Q.BACKGROUND_COLOR, F[o].id);
|
|
73
73
|
};
|
|
74
74
|
return L(() => {
|
|
75
|
-
localStorage.setItem(
|
|
76
|
-
}, [
|
|
77
|
-
localStorage.setItem(
|
|
75
|
+
localStorage.setItem(Q.FONT_SIZE, a.toString());
|
|
76
|
+
}, [a]), L(() => {
|
|
77
|
+
localStorage.setItem(Q.FONT_STYLE, d);
|
|
78
78
|
}, [d]), {
|
|
79
|
-
backgroundColor:
|
|
80
|
-
currentFontSizeIndex:
|
|
79
|
+
backgroundColor: t,
|
|
80
|
+
currentFontSizeIndex: a,
|
|
81
81
|
fontStyle: d,
|
|
82
|
-
handleColorChange:
|
|
82
|
+
handleColorChange: s,
|
|
83
83
|
setFontStyle: u,
|
|
84
84
|
increaseFontSize: () => {
|
|
85
|
-
i((o) => Math.min(o + 1,
|
|
85
|
+
i((o) => Math.min(o + 1, fn.length - 1));
|
|
86
86
|
},
|
|
87
87
|
decreaseFontSize: () => {
|
|
88
88
|
i((o) => Math.max(o - 1, 0));
|
|
89
89
|
},
|
|
90
90
|
resetFontSize: () => i(2),
|
|
91
|
-
fontSize:
|
|
91
|
+
fontSize: fn[a]
|
|
92
92
|
};
|
|
93
|
-
},
|
|
94
|
-
backgroundColor:
|
|
93
|
+
}, In = ({
|
|
94
|
+
backgroundColor: t,
|
|
95
95
|
currentFontSizeIndex: r,
|
|
96
|
-
fontStyle:
|
|
96
|
+
fontStyle: a,
|
|
97
97
|
onColorChange: i,
|
|
98
98
|
onFontStyleChange: d,
|
|
99
99
|
onDecreaseFontSize: u,
|
|
100
|
-
onIncreaseFontSize:
|
|
100
|
+
onIncreaseFontSize: s,
|
|
101
101
|
onResetFontSize: h,
|
|
102
102
|
onOpenChange: v
|
|
103
103
|
}) => {
|
|
104
|
-
const p = (
|
|
104
|
+
const p = (c) => t === c, o = (c) => a === c;
|
|
105
105
|
return /* @__PURE__ */ n.jsx(
|
|
106
|
-
|
|
106
|
+
Le,
|
|
107
107
|
{
|
|
108
|
-
backgroundColor:
|
|
108
|
+
backgroundColor: t,
|
|
109
109
|
currentFontSizeIndex: r,
|
|
110
|
-
fontStyle:
|
|
110
|
+
fontStyle: a,
|
|
111
111
|
isActiveColor: p,
|
|
112
112
|
isActiveFont: o,
|
|
113
113
|
onColorChange: i,
|
|
114
114
|
onDecreaseFontSize: u,
|
|
115
115
|
onFontStyleChange: d,
|
|
116
|
-
onIncreaseFontSize:
|
|
116
|
+
onIncreaseFontSize: s,
|
|
117
117
|
onOpenChange: v,
|
|
118
118
|
onResetFontSize: h
|
|
119
119
|
}
|
|
120
120
|
);
|
|
121
|
-
},
|
|
122
|
-
backgroundColor:
|
|
121
|
+
}, Le = ({
|
|
122
|
+
backgroundColor: t,
|
|
123
123
|
isActiveColor: r,
|
|
124
|
-
isActiveFont:
|
|
124
|
+
isActiveFont: a,
|
|
125
125
|
onColorChange: i,
|
|
126
126
|
onFontStyleChange: d,
|
|
127
127
|
currentFontSizeIndex: u,
|
|
128
|
-
onDecreaseFontSize:
|
|
128
|
+
onDecreaseFontSize: s,
|
|
129
129
|
onIncreaseFontSize: h,
|
|
130
130
|
onResetFontSize: v,
|
|
131
131
|
onOpenChange: p
|
|
132
|
-
}) => /* @__PURE__ */ n.jsxs(
|
|
133
|
-
/* @__PURE__ */ n.jsx(
|
|
134
|
-
/* @__PURE__ */ n.jsx(
|
|
132
|
+
}) => /* @__PURE__ */ n.jsxs(Ln, { modal: !1, onOpenChange: p, children: [
|
|
133
|
+
/* @__PURE__ */ n.jsx(Rn, { asChild: !0, children: /* @__PURE__ */ n.jsx($, { className: `size-9 rounded-full ${F[t].button}`, variant: "ghost", children: /* @__PURE__ */ n.jsx(te.Typography, { className: "!size-[18px]" }) }) }),
|
|
134
|
+
/* @__PURE__ */ n.jsx(On, { align: "end", className: "w-[224px]", onCloseAutoFocus: (o) => o.preventDefault(), onOpenAutoFocus: (o) => o.preventDefault(), children: /* @__PURE__ */ n.jsxs("div", { className: "flex flex-col gap-4", children: [
|
|
135
135
|
/* @__PURE__ */ n.jsxs("div", { className: "flex items-center justify-between gap-[6px]", children: [
|
|
136
136
|
/* @__PURE__ */ n.jsx(
|
|
137
137
|
$,
|
|
@@ -168,7 +168,7 @@ const kn = ["1.5rem", "1.6rem", "1.7rem", "1.8rem", "2rem"], Y = {
|
|
|
168
168
|
/* @__PURE__ */ n.jsxs(
|
|
169
169
|
$,
|
|
170
170
|
{
|
|
171
|
-
className: `flex h-auto w-full flex-col gap-1 rounded-[6px] bg-gray-200 text-black hover:bg-gray-250 dark:bg-gray-925 dark:text-white dark:hover:bg-gray-900 ${
|
|
171
|
+
className: `flex h-auto w-full flex-col gap-1 rounded-[6px] bg-gray-200 text-black hover:bg-gray-250 dark:bg-gray-925 dark:text-white dark:hover:bg-gray-900 ${a("sans") && "outline outline-2 outline-green"}`,
|
|
172
172
|
variant: "secondary",
|
|
173
173
|
onClick: () => d("sans"),
|
|
174
174
|
children: [
|
|
@@ -180,7 +180,7 @@ const kn = ["1.5rem", "1.6rem", "1.7rem", "1.8rem", "2rem"], Y = {
|
|
|
180
180
|
/* @__PURE__ */ n.jsxs(
|
|
181
181
|
$,
|
|
182
182
|
{
|
|
183
|
-
className: `flex h-auto w-full flex-col gap-1 rounded-[6px] bg-gray-200 text-black hover:bg-gray-250 dark:bg-gray-925 dark:text-white dark:hover:bg-gray-900 ${
|
|
183
|
+
className: `flex h-auto w-full flex-col gap-1 rounded-[6px] bg-gray-200 text-black hover:bg-gray-250 dark:bg-gray-925 dark:text-white dark:hover:bg-gray-900 ${a("serif") && "outline outline-2 outline-green"}`,
|
|
184
184
|
variant: "secondary",
|
|
185
185
|
onClick: () => d("serif"),
|
|
186
186
|
children: [
|
|
@@ -197,8 +197,8 @@ const kn = ["1.5rem", "1.6rem", "1.7rem", "1.8rem", "2rem"], Y = {
|
|
|
197
197
|
className: "h-8 w-full rounded-[6px] bg-gray-200 text-black hover:bg-gray-250 dark:bg-gray-925 dark:text-white dark:hover:bg-gray-900 [&_svg]:size-[14px]",
|
|
198
198
|
disabled: u === 0,
|
|
199
199
|
variant: "secondary",
|
|
200
|
-
onClick:
|
|
201
|
-
children: /* @__PURE__ */ n.jsx(
|
|
200
|
+
onClick: s,
|
|
201
|
+
children: /* @__PURE__ */ n.jsx(Pe, {})
|
|
202
202
|
}
|
|
203
203
|
),
|
|
204
204
|
/* @__PURE__ */ n.jsx(
|
|
@@ -214,26 +214,26 @@ const kn = ["1.5rem", "1.6rem", "1.7rem", "1.8rem", "2rem"], Y = {
|
|
|
214
214
|
$,
|
|
215
215
|
{
|
|
216
216
|
className: "h-8 w-full rounded-[6px] bg-gray-200 text-black hover:bg-gray-250 dark:bg-gray-925 dark:text-white dark:hover:bg-gray-900 [&_svg]:size-[14px]",
|
|
217
|
-
disabled: u ===
|
|
217
|
+
disabled: u === fn.length - 1,
|
|
218
218
|
variant: "secondary",
|
|
219
219
|
onClick: h,
|
|
220
|
-
children: /* @__PURE__ */ n.jsx(
|
|
220
|
+
children: /* @__PURE__ */ n.jsx(ae, {})
|
|
221
221
|
}
|
|
222
222
|
)
|
|
223
223
|
] })
|
|
224
224
|
] }) })
|
|
225
|
-
] }),
|
|
226
|
-
tocItems:
|
|
225
|
+
] }), Re = ({
|
|
226
|
+
tocItems: t,
|
|
227
227
|
iframeElement: r,
|
|
228
|
-
modalRef:
|
|
228
|
+
modalRef: a,
|
|
229
229
|
className: i = "!visible absolute inset-y-0 right-7 z-40 hidden lg:!block",
|
|
230
230
|
onOpenChange: d
|
|
231
231
|
}) => {
|
|
232
|
-
const [u,
|
|
232
|
+
const [u, s] = y(null), h = Z.useRef(!1), v = (p) => {
|
|
233
233
|
if (!(r != null && r.contentDocument))
|
|
234
234
|
return;
|
|
235
235
|
const o = r.contentDocument.getElementById(p);
|
|
236
|
-
o &&
|
|
236
|
+
o && a.current && (h.current = !0, s(p), a.current.scrollTo({
|
|
237
237
|
top: o.offsetTop - 20,
|
|
238
238
|
behavior: "smooth"
|
|
239
239
|
}), setTimeout(() => {
|
|
@@ -241,9 +241,9 @@ const kn = ["1.5rem", "1.6rem", "1.7rem", "1.8rem", "2rem"], Y = {
|
|
|
241
241
|
}, 1e3));
|
|
242
242
|
};
|
|
243
243
|
return L(() => {
|
|
244
|
-
if (!(r != null && r.contentDocument) ||
|
|
244
|
+
if (!(r != null && r.contentDocument) || t.length <= 1)
|
|
245
245
|
return;
|
|
246
|
-
const p =
|
|
246
|
+
const p = a.current;
|
|
247
247
|
if (!p)
|
|
248
248
|
return;
|
|
249
249
|
const o = () => {
|
|
@@ -252,58 +252,58 @@ const kn = ["1.5rem", "1.6rem", "1.7rem", "1.8rem", "2rem"], Y = {
|
|
|
252
252
|
const l = r.contentDocument;
|
|
253
253
|
if (!l)
|
|
254
254
|
return;
|
|
255
|
-
const I = p.scrollTop, R = 100,
|
|
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
|
-
if (!
|
|
259
|
+
if (!q.length)
|
|
260
260
|
return;
|
|
261
|
-
const _ =
|
|
262
|
-
|
|
263
|
-
},
|
|
261
|
+
const _ = q.reduce((C, A) => A.top - R <= I ? A : C);
|
|
262
|
+
s((_ == null ? void 0 : _.id) || null);
|
|
263
|
+
}, c = () => {
|
|
264
264
|
requestAnimationFrame(o);
|
|
265
265
|
};
|
|
266
|
-
return p.addEventListener("scroll",
|
|
267
|
-
p.removeEventListener("scroll",
|
|
266
|
+
return p.addEventListener("scroll", c), o(), () => {
|
|
267
|
+
p.removeEventListener("scroll", c);
|
|
268
268
|
};
|
|
269
|
-
}, [r,
|
|
270
|
-
|
|
269
|
+
}, [r, t, a]), t.length <= 1 ? null : /* @__PURE__ */ n.jsx("div", { className: i, children: /* @__PURE__ */ n.jsx("div", { className: "sticky top-1/2 -translate-y-1/2", children: /* @__PURE__ */ n.jsx(
|
|
270
|
+
Me,
|
|
271
271
|
{
|
|
272
272
|
activeHeading: u || "",
|
|
273
|
-
items:
|
|
273
|
+
items: t,
|
|
274
274
|
onItemClick: v,
|
|
275
275
|
onOpenChange: d
|
|
276
276
|
}
|
|
277
277
|
) }) });
|
|
278
|
-
},
|
|
278
|
+
}, Oe = {
|
|
279
279
|
1: "w-3",
|
|
280
280
|
2: "w-2",
|
|
281
281
|
3: "w-1"
|
|
282
|
-
},
|
|
282
|
+
}, Te = {
|
|
283
283
|
1: "pl-2",
|
|
284
284
|
2: "pl-6",
|
|
285
285
|
3: "pl-10"
|
|
286
|
-
},
|
|
287
|
-
const [d, u] = y(!1),
|
|
288
|
-
if (
|
|
289
|
-
|
|
290
|
-
}, []),
|
|
286
|
+
}, Me = ({ items: t, activeHeading: r, onItemClick: a, onOpenChange: i }) => {
|
|
287
|
+
const [d, u] = y(!1), s = Z.useRef();
|
|
288
|
+
if (Z.useEffect(() => () => {
|
|
289
|
+
s.current && clearTimeout(s.current);
|
|
290
|
+
}, []), t.length === 0)
|
|
291
291
|
return null;
|
|
292
|
-
const h = (l) => Math.min(l, 3), v = (l) =>
|
|
293
|
-
|
|
294
|
-
},
|
|
295
|
-
|
|
292
|
+
const h = (l) => Math.min(l, 3), v = (l) => Oe[h(l)], p = (l) => Te[h(l)], o = () => {
|
|
293
|
+
s.current && clearTimeout(s.current), u(!0), i == null || i(!0);
|
|
294
|
+
}, c = () => {
|
|
295
|
+
s.current = setTimeout(() => {
|
|
296
296
|
u(!1), i == null || i(!1);
|
|
297
297
|
}, 100);
|
|
298
298
|
};
|
|
299
|
-
return /* @__PURE__ */ n.jsxs(
|
|
300
|
-
/* @__PURE__ */ n.jsx(
|
|
299
|
+
return /* @__PURE__ */ n.jsxs(Ln, { modal: !1, open: d, onOpenChange: u, children: [
|
|
300
|
+
/* @__PURE__ */ n.jsx(Rn, { asChild: !0, children: /* @__PURE__ */ n.jsx(
|
|
301
301
|
"div",
|
|
302
302
|
{
|
|
303
303
|
className: "absolute right-2 top-1/2 flex -translate-y-1/2 flex-col items-end gap-2 rounded-md p-2 text-base dark:bg-black",
|
|
304
304
|
onMouseEnter: o,
|
|
305
|
-
onMouseLeave:
|
|
306
|
-
children:
|
|
305
|
+
onMouseLeave: c,
|
|
306
|
+
children: t.map((l) => /* @__PURE__ */ n.jsx(
|
|
307
307
|
"div",
|
|
308
308
|
{
|
|
309
309
|
className: `h-[2px] rounded-sm ${r === l.id ? "bg-black dark:bg-white" : "bg-gray-400 dark:bg-gray-700"} pr-1 transition-all ${v(l.level)}`
|
|
@@ -313,7 +313,7 @@ const kn = ["1.5rem", "1.6rem", "1.7rem", "1.8rem", "2rem"], Y = {
|
|
|
313
313
|
}
|
|
314
314
|
) }),
|
|
315
315
|
/* @__PURE__ */ n.jsx(
|
|
316
|
-
|
|
316
|
+
On,
|
|
317
317
|
{
|
|
318
318
|
align: "center",
|
|
319
319
|
className: "w-[240px] p-2",
|
|
@@ -321,7 +321,7 @@ const kn = ["1.5rem", "1.6rem", "1.7rem", "1.8rem", "2rem"], Y = {
|
|
|
321
321
|
sideOffset: -28,
|
|
322
322
|
onCloseAutoFocus: (l) => l.preventDefault(),
|
|
323
323
|
onMouseEnter: o,
|
|
324
|
-
onMouseLeave:
|
|
324
|
+
onMouseLeave: c,
|
|
325
325
|
onOpenAutoFocus: (l) => l.preventDefault(),
|
|
326
326
|
children: /* @__PURE__ */ n.jsx(
|
|
327
327
|
"nav",
|
|
@@ -329,12 +329,12 @@ const kn = ["1.5rem", "1.6rem", "1.7rem", "1.8rem", "2rem"], Y = {
|
|
|
329
329
|
"aria-label": "Table of contents navigation",
|
|
330
330
|
className: "max-h-[60vh] overflow-y-auto",
|
|
331
331
|
role: "navigation",
|
|
332
|
-
children:
|
|
332
|
+
children: t.map((l) => /* @__PURE__ */ n.jsx(
|
|
333
333
|
"button",
|
|
334
334
|
{
|
|
335
335
|
className: `line-clamp-2 block w-full cursor-pointer rounded py-1 text-left text-sm leading-tight ${r === l.id ? "text-black dark:text-white" : "text-gray-700 dark:text-gray-600"} hover:bg-gray-75 hover:text-gray-900 dark:hover:bg-grey-925 dark:hover:text-white ${p(l.level)}`,
|
|
336
336
|
type: "button",
|
|
337
|
-
onClick: () =>
|
|
337
|
+
onClick: () => a(l.id),
|
|
338
338
|
children: /* @__PURE__ */ n.jsx("span", { className: "line-clamp-2", children: l.text })
|
|
339
339
|
},
|
|
340
340
|
l.id
|
|
@@ -344,7 +344,7 @@ const kn = ["1.5rem", "1.6rem", "1.7rem", "1.8rem", "2rem"], Y = {
|
|
|
344
344
|
}
|
|
345
345
|
)
|
|
346
346
|
] });
|
|
347
|
-
},
|
|
347
|
+
}, Ae = () => `<style>
|
|
348
348
|
|
|
349
349
|
/* Variables */
|
|
350
350
|
|
|
@@ -929,7 +929,7 @@ html.has-light-text .gh-paid-content-notice {
|
|
|
929
929
|
font-family: var(--font-serif-alt);
|
|
930
930
|
}
|
|
931
931
|
|
|
932
|
-
</style>`,
|
|
932
|
+
</style>`, $e = `(function() {
|
|
933
933
|
const handleAudioPlayer = function (audioElementContainer) {
|
|
934
934
|
const audioPlayerContainer = audioElementContainer.querySelector('.kg-audio-player-container');
|
|
935
935
|
const playIconContainer = audioElementContainer.querySelector('.kg-audio-play-icon');
|
|
@@ -1075,10 +1075,10 @@ html.has-light-text .gh-paid-content-notice {
|
|
|
1075
1075
|
handleAudioPlayer(audioCardElements[i]);
|
|
1076
1076
|
}
|
|
1077
1077
|
})();
|
|
1078
|
-
`,
|
|
1078
|
+
`, De = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1079
1079
|
__proto__: null,
|
|
1080
|
-
default:
|
|
1081
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
1080
|
+
default: $e
|
|
1081
|
+
}, Symbol.toStringTag, { value: "Module" })), Be = `(function() {
|
|
1082
1082
|
const images = document.querySelectorAll('.kg-gallery-image img');
|
|
1083
1083
|
images.forEach(function (image) {
|
|
1084
1084
|
const container = image.closest('.kg-gallery-image');
|
|
@@ -1088,10 +1088,10 @@ html.has-light-text .gh-paid-content-notice {
|
|
|
1088
1088
|
container.style.flex = ratio + ' 1 0%';
|
|
1089
1089
|
})
|
|
1090
1090
|
})();
|
|
1091
|
-
`,
|
|
1091
|
+
`, qe = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1092
1092
|
__proto__: null,
|
|
1093
|
-
default:
|
|
1094
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
1093
|
+
default: Be
|
|
1094
|
+
}, Symbol.toStringTag, { value: "Module" })), He = `(function() {
|
|
1095
1095
|
const toggleHeadingElements = document.getElementsByClassName("kg-toggle-heading");
|
|
1096
1096
|
|
|
1097
1097
|
const toggleFn = function(event) {
|
|
@@ -1109,10 +1109,10 @@ html.has-light-text .gh-paid-content-notice {
|
|
|
1109
1109
|
toggleHeadingElements[i].addEventListener('click', toggleFn, false);
|
|
1110
1110
|
}
|
|
1111
1111
|
})();
|
|
1112
|
-
`,
|
|
1112
|
+
`, Ue = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1113
1113
|
__proto__: null,
|
|
1114
|
-
default:
|
|
1115
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
1114
|
+
default: He
|
|
1115
|
+
}, Symbol.toStringTag, { value: "Module" })), We = `(function() {
|
|
1116
1116
|
const handleVideoPlayer = function (videoElementContainer) {
|
|
1117
1117
|
const videoPlayer = videoElementContainer.querySelector('.kg-video-player');
|
|
1118
1118
|
const videoPlayerContainer = videoElementContainer.querySelector('.kg-video-player-container');
|
|
@@ -1354,10 +1354,10 @@ html.has-light-text .gh-paid-content-notice {
|
|
|
1354
1354
|
handleVideoPlayer(videoCardElements[i]);
|
|
1355
1355
|
}
|
|
1356
1356
|
})();
|
|
1357
|
-
`,
|
|
1357
|
+
`, Ke = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1358
1358
|
__proto__: null,
|
|
1359
|
-
default:
|
|
1360
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
1359
|
+
default: We
|
|
1360
|
+
}, Symbol.toStringTag, { value: "Module" })), Ve = `.kg-audio-card,
|
|
1361
1361
|
.kg-audio-card * {
|
|
1362
1362
|
box-sizing: border-box;
|
|
1363
1363
|
}
|
|
@@ -1689,10 +1689,10 @@ html.has-light-text .gh-paid-content-notice {
|
|
|
1689
1689
|
.kg-audio-player-container input[type="range"]:active::-ms-thumb {
|
|
1690
1690
|
transform: scale(1.2);
|
|
1691
1691
|
}
|
|
1692
|
-
`,
|
|
1692
|
+
`, Ye = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1693
1693
|
__proto__: null,
|
|
1694
|
-
default:
|
|
1695
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
1694
|
+
default: Ve
|
|
1695
|
+
}, Symbol.toStringTag, { value: "Module" })), Qe = `.kg-blockquote-alt {
|
|
1696
1696
|
font-size: 1.5em;
|
|
1697
1697
|
font-style: italic;
|
|
1698
1698
|
line-height: 1.7em;
|
|
@@ -1715,10 +1715,10 @@ html.has-light-text .gh-paid-content-notice {
|
|
|
1715
1715
|
padding-right: 1.75em;
|
|
1716
1716
|
}
|
|
1717
1717
|
}
|
|
1718
|
-
`,
|
|
1718
|
+
`, Ze = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1719
1719
|
__proto__: null,
|
|
1720
|
-
default:
|
|
1721
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
1720
|
+
default: Qe
|
|
1721
|
+
}, Symbol.toStringTag, { value: "Module" })), Je = `.kg-bookmark-card,
|
|
1722
1722
|
.kg-bookmark-card * {
|
|
1723
1723
|
box-sizing: border-box;
|
|
1724
1724
|
}
|
|
@@ -1834,10 +1834,10 @@ html.has-light-text .gh-paid-content-notice {
|
|
|
1834
1834
|
left: 0;
|
|
1835
1835
|
border-radius: 0 2px 2px 0;
|
|
1836
1836
|
}
|
|
1837
|
-
`,
|
|
1837
|
+
`, Ge = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1838
1838
|
__proto__: null,
|
|
1839
|
-
default:
|
|
1840
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
1839
|
+
default: Je
|
|
1840
|
+
}, Symbol.toStringTag, { value: "Module" })), Xe = `.kg-button-card,
|
|
1841
1841
|
.kg-button-card * {
|
|
1842
1842
|
box-sizing: border-box;
|
|
1843
1843
|
}
|
|
@@ -1876,10 +1876,10 @@ html.has-light-text .gh-paid-content-notice {
|
|
|
1876
1876
|
.kg-button-card a.kg-btn-accent {
|
|
1877
1877
|
background-color: var(--ghost-accent-color);
|
|
1878
1878
|
color: #fff;
|
|
1879
|
-
}`,
|
|
1879
|
+
}`, nt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1880
1880
|
__proto__: null,
|
|
1881
|
-
default:
|
|
1882
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
1881
|
+
default: Xe
|
|
1882
|
+
}, Symbol.toStringTag, { value: "Module" })), et = `.kg-callout-card,
|
|
1883
1883
|
.kg-callout-card * {
|
|
1884
1884
|
box-sizing: border-box;
|
|
1885
1885
|
}
|
|
@@ -1946,10 +1946,10 @@ html.has-light-text .gh-paid-content-notice {
|
|
|
1946
1946
|
|
|
1947
1947
|
.kg-callout-card + .kg-callout-card {
|
|
1948
1948
|
margin-top: 1em;
|
|
1949
|
-
}`,
|
|
1949
|
+
}`, tt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1950
1950
|
__proto__: null,
|
|
1951
|
-
default:
|
|
1952
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
1951
|
+
default: et
|
|
1952
|
+
}, Symbol.toStringTag, { value: "Module" })), at = `.kg-collection-card {
|
|
1953
1953
|
width: 100%;
|
|
1954
1954
|
margin-top: 6vmin;
|
|
1955
1955
|
}
|
|
@@ -2164,10 +2164,10 @@ p.kg-collection-card-post-excerpt {
|
|
|
2164
2164
|
.kg-collection-card-grid.columns-4 h2.kg-collection-card-post-title {
|
|
2165
2165
|
font-size: 1.7rem;
|
|
2166
2166
|
}
|
|
2167
|
-
}`,
|
|
2167
|
+
}`, ot = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
2168
2168
|
__proto__: null,
|
|
2169
|
-
default:
|
|
2170
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
2169
|
+
default: at
|
|
2170
|
+
}, Symbol.toStringTag, { value: "Module" })), rt = `.kg-cta-card,
|
|
2171
2171
|
.kg-cta-card * {
|
|
2172
2172
|
box-sizing: border-box;
|
|
2173
2173
|
}
|
|
@@ -2419,10 +2419,10 @@ a.kg-cta-button {
|
|
|
2419
2419
|
width: 100%;
|
|
2420
2420
|
}
|
|
2421
2421
|
|
|
2422
|
-
`,
|
|
2422
|
+
`, it = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
2423
2423
|
__proto__: null,
|
|
2424
|
-
default:
|
|
2425
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
2424
|
+
default: rt
|
|
2425
|
+
}, Symbol.toStringTag, { value: "Module" })), dt = `.kg-file-card,
|
|
2426
2426
|
.kg-file-card * {
|
|
2427
2427
|
box-sizing: border-box;
|
|
2428
2428
|
}
|
|
@@ -2565,10 +2565,10 @@ a.kg-cta-button {
|
|
|
2565
2565
|
.kg-file-card + .kg-file-card {
|
|
2566
2566
|
margin-top: 1em;
|
|
2567
2567
|
}
|
|
2568
|
-
`,
|
|
2568
|
+
`, st = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
2569
2569
|
__proto__: null,
|
|
2570
|
-
default:
|
|
2571
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
2570
|
+
default: dt
|
|
2571
|
+
}, Symbol.toStringTag, { value: "Module" })), ct = `.kg-gallery-card,
|
|
2572
2572
|
.kg-gallery-card * {
|
|
2573
2573
|
box-sizing: border-box;
|
|
2574
2574
|
}
|
|
@@ -2616,10 +2616,10 @@ a.kg-cta-button {
|
|
|
2616
2616
|
--gap: 0.6rem;
|
|
2617
2617
|
}
|
|
2618
2618
|
}
|
|
2619
|
-
`,
|
|
2619
|
+
`, lt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
2620
2620
|
__proto__: null,
|
|
2621
|
-
default:
|
|
2622
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
2621
|
+
default: ct
|
|
2622
|
+
}, Symbol.toStringTag, { value: "Module" })), gt = `.kg-header-card,
|
|
2623
2623
|
.kg-header-card * {
|
|
2624
2624
|
box-sizing: border-box;
|
|
2625
2625
|
}
|
|
@@ -2852,10 +2852,10 @@ a.kg-cta-button {
|
|
|
2852
2852
|
font-size: 1em;
|
|
2853
2853
|
}
|
|
2854
2854
|
}
|
|
2855
|
-
`,
|
|
2855
|
+
`, pt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
2856
2856
|
__proto__: null,
|
|
2857
|
-
default:
|
|
2858
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
2857
|
+
default: gt
|
|
2858
|
+
}, Symbol.toStringTag, { value: "Module" })), ut = `.kg-header-card.kg-v2 {
|
|
2859
2859
|
position: relative;
|
|
2860
2860
|
padding: 0;
|
|
2861
2861
|
min-height: initial;
|
|
@@ -3117,10 +3117,10 @@ a.kg-cta-button {
|
|
|
3117
3117
|
font-size: 1em;
|
|
3118
3118
|
}
|
|
3119
3119
|
}
|
|
3120
|
-
`,
|
|
3120
|
+
`, ht = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
3121
3121
|
__proto__: null,
|
|
3122
|
-
default:
|
|
3123
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
3122
|
+
default: ut
|
|
3123
|
+
}, Symbol.toStringTag, { value: "Module" })), mt = `.kg-nft-card,
|
|
3124
3124
|
.kg-nft-card * {
|
|
3125
3125
|
box-sizing: border-box;
|
|
3126
3126
|
}
|
|
@@ -3214,10 +3214,10 @@ a.kg-cta-button {
|
|
|
3214
3214
|
line-height: 1.4em;
|
|
3215
3215
|
margin: 20px 0 0;
|
|
3216
3216
|
color: #222;
|
|
3217
|
-
}`,
|
|
3217
|
+
}`, kt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
3218
3218
|
__proto__: null,
|
|
3219
|
-
default:
|
|
3220
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
3219
|
+
default: mt
|
|
3220
|
+
}, Symbol.toStringTag, { value: "Module" })), ft = `.kg-product-card,
|
|
3221
3221
|
.kg-product-card * {
|
|
3222
3222
|
box-sizing: border-box;
|
|
3223
3223
|
}
|
|
@@ -3350,10 +3350,10 @@ a.kg-cta-button {
|
|
|
3350
3350
|
background-color: var(--ghost-accent-color);
|
|
3351
3351
|
color: #fff;
|
|
3352
3352
|
}
|
|
3353
|
-
`,
|
|
3353
|
+
`, bt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
3354
3354
|
__proto__: null,
|
|
3355
|
-
default:
|
|
3356
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
3355
|
+
default: ft
|
|
3356
|
+
}, Symbol.toStringTag, { value: "Module" })), xt = `.kg-signup-card {
|
|
3357
3357
|
position: relative;
|
|
3358
3358
|
}
|
|
3359
3359
|
|
|
@@ -3735,10 +3735,10 @@ a.kg-cta-button {
|
|
|
3735
3735
|
font-size: 1em;
|
|
3736
3736
|
}
|
|
3737
3737
|
}
|
|
3738
|
-
`,
|
|
3738
|
+
`, vt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
3739
3739
|
__proto__: null,
|
|
3740
|
-
default:
|
|
3741
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
3740
|
+
default: xt
|
|
3741
|
+
}, Symbol.toStringTag, { value: "Module" })), yt = `.kg-toggle-card,
|
|
3742
3742
|
.kg-toggle-card * {
|
|
3743
3743
|
box-sizing: border-box;
|
|
3744
3744
|
}
|
|
@@ -3835,10 +3835,101 @@ a.kg-cta-button {
|
|
|
3835
3835
|
.kg-toggle-card + .kg-toggle-card {
|
|
3836
3836
|
margin-top: 1em;
|
|
3837
3837
|
}
|
|
3838
|
-
`,
|
|
3838
|
+
`, wt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
3839
3839
|
__proto__: null,
|
|
3840
|
-
default:
|
|
3841
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
3840
|
+
default: yt
|
|
3841
|
+
}, Symbol.toStringTag, { value: "Module" })), jt = `.kg-transistor-card {
|
|
3842
|
+
display: flex;
|
|
3843
|
+
justify-content: center;
|
|
3844
|
+
}
|
|
3845
|
+
|
|
3846
|
+
.kg-transistor-placeholder {
|
|
3847
|
+
display: flex;
|
|
3848
|
+
flex-direction: column;
|
|
3849
|
+
align-items: center;
|
|
3850
|
+
gap: 2.4rem;
|
|
3851
|
+
width: 100%;
|
|
3852
|
+
max-width: 100%;
|
|
3853
|
+
padding: 3rem 2.4rem;
|
|
3854
|
+
border: 1px solid rgba(255, 255, 255, 0.14);
|
|
3855
|
+
border: 1px solid color-mix(in srgb, currentColor 14%, transparent);
|
|
3856
|
+
border-radius: 12px;
|
|
3857
|
+
background: rgba(255, 255, 255, 0.04);
|
|
3858
|
+
background: color-mix(in srgb, currentColor 4%, transparent);
|
|
3859
|
+
color: inherit;
|
|
3860
|
+
text-align: center;
|
|
3861
|
+
box-sizing: border-box;
|
|
3862
|
+
}
|
|
3863
|
+
|
|
3864
|
+
.kg-transistor-icon {
|
|
3865
|
+
display: flex;
|
|
3866
|
+
flex-shrink: 0;
|
|
3867
|
+
align-items: center;
|
|
3868
|
+
justify-content: center;
|
|
3869
|
+
width: 116px;
|
|
3870
|
+
height: 116px;
|
|
3871
|
+
border-radius: 14px;
|
|
3872
|
+
background: var(--ghost-accent-color, #b8a5ac);
|
|
3873
|
+
color: #fff;
|
|
3874
|
+
}
|
|
3875
|
+
|
|
3876
|
+
.kg-transistor-icon svg {
|
|
3877
|
+
display: block;
|
|
3878
|
+
width: 56px;
|
|
3879
|
+
height: 56px;
|
|
3880
|
+
}
|
|
3881
|
+
|
|
3882
|
+
.kg-transistor-content {
|
|
3883
|
+
min-width: 0;
|
|
3884
|
+
max-width: 640px;
|
|
3885
|
+
}
|
|
3886
|
+
|
|
3887
|
+
.kg-transistor-title {
|
|
3888
|
+
margin: 0;
|
|
3889
|
+
color: inherit;
|
|
3890
|
+
font-size: 2.3rem;
|
|
3891
|
+
font-weight: 600;
|
|
3892
|
+
line-height: 1.2;
|
|
3893
|
+
}
|
|
3894
|
+
|
|
3895
|
+
.kg-transistor-description {
|
|
3896
|
+
margin-top: 1.6rem;
|
|
3897
|
+
color: inherit;
|
|
3898
|
+
font-size: 1.6rem;
|
|
3899
|
+
line-height: 1.5;
|
|
3900
|
+
opacity: 0.65;
|
|
3901
|
+
}
|
|
3902
|
+
|
|
3903
|
+
@media (max-width: 640px) {
|
|
3904
|
+
.kg-transistor-placeholder {
|
|
3905
|
+
gap: 1.6rem;
|
|
3906
|
+
padding: 2.4rem 1.8rem;
|
|
3907
|
+
}
|
|
3908
|
+
|
|
3909
|
+
.kg-transistor-icon {
|
|
3910
|
+
width: 88px;
|
|
3911
|
+
height: 88px;
|
|
3912
|
+
border-radius: 12px;
|
|
3913
|
+
}
|
|
3914
|
+
|
|
3915
|
+
.kg-transistor-icon svg {
|
|
3916
|
+
width: 44px;
|
|
3917
|
+
height: 44px;
|
|
3918
|
+
}
|
|
3919
|
+
|
|
3920
|
+
.kg-transistor-title {
|
|
3921
|
+
font-size: 1.8rem;
|
|
3922
|
+
}
|
|
3923
|
+
|
|
3924
|
+
.kg-transistor-description {
|
|
3925
|
+
margin-top: 1rem;
|
|
3926
|
+
font-size: 1.45rem;
|
|
3927
|
+
}
|
|
3928
|
+
}
|
|
3929
|
+
`, zt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
3930
|
+
__proto__: null,
|
|
3931
|
+
default: jt
|
|
3932
|
+
}, Symbol.toStringTag, { value: "Module" })), Ct = `.kg-video-card,
|
|
3842
3933
|
.kg-video-card * {
|
|
3843
3934
|
box-sizing: border-box;
|
|
3844
3935
|
}
|
|
@@ -4193,32 +4284,32 @@ a.kg-cta-button {
|
|
|
4193
4284
|
transform: scale(1.2);
|
|
4194
4285
|
}
|
|
4195
4286
|
|
|
4196
|
-
`,
|
|
4287
|
+
`, St = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
4197
4288
|
__proto__: null,
|
|
4198
|
-
default:
|
|
4199
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
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": bt, "../../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(`
|
|
4200
4291
|
|
|
4201
|
-
`),
|
|
4292
|
+
`), It = Object.values(Et).map((t) => t.default).join(`
|
|
4202
4293
|
|
|
4203
|
-
`),
|
|
4204
|
-
postUrl:
|
|
4294
|
+
`), Pt = ({
|
|
4295
|
+
postUrl: t,
|
|
4205
4296
|
heading: r,
|
|
4206
|
-
image:
|
|
4297
|
+
image: a,
|
|
4207
4298
|
excerpt: i,
|
|
4208
4299
|
authors: d,
|
|
4209
4300
|
html: u,
|
|
4210
|
-
backgroundColor:
|
|
4301
|
+
backgroundColor: s,
|
|
4211
4302
|
fontSize: h,
|
|
4212
4303
|
fontStyle: v,
|
|
4213
4304
|
onHeadingsExtracted: p,
|
|
4214
4305
|
onIframeLoad: o,
|
|
4215
|
-
onLoadingChange:
|
|
4306
|
+
onLoadingChange: c,
|
|
4216
4307
|
isPopoverOpen: l
|
|
4217
4308
|
}) => {
|
|
4218
|
-
const I =
|
|
4219
|
-
<html class="has-${A ? "light" : "dark"}-text has-${v}-body ${
|
|
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
|
+
<html class="has-${A ? "light" : "dark"}-text has-${v}-body ${s === "SEPIA" && "has-sepia-bg"}">
|
|
4220
4311
|
<head>
|
|
4221
|
-
${
|
|
4312
|
+
${J}
|
|
4222
4313
|
<style>
|
|
4223
4314
|
:root {
|
|
4224
4315
|
--font-size: ${h};
|
|
@@ -4233,7 +4324,7 @@ a.kg-cta-button {
|
|
|
4233
4324
|
}
|
|
4234
4325
|
</style>
|
|
4235
4326
|
<style>
|
|
4236
|
-
${
|
|
4327
|
+
${It}
|
|
4237
4328
|
</style>
|
|
4238
4329
|
|
|
4239
4330
|
<script>
|
|
@@ -4309,14 +4400,14 @@ a.kg-cta-button {
|
|
|
4309
4400
|
</head>
|
|
4310
4401
|
<body>
|
|
4311
4402
|
<header class='gh-article-header gh-canvas'>
|
|
4312
|
-
<h1 class='gh-article-title is-title' data-test-article-heading>${r}</h1>
|
|
4313
|
-
${i ? `<p class='gh-article-excerpt'>${i}</p>` : ""}
|
|
4314
|
-
<a href="${
|
|
4403
|
+
<h1 class='gh-article-title is-title' data-test-article-heading>${B(r)}</h1>
|
|
4404
|
+
${i ? `<p class='gh-article-excerpt'>${B(i)}</p>` : ""}
|
|
4405
|
+
<a href="${t && Sn(t) ? B(t) : "#"}" target="_blank" rel="noopener noreferrer" class="gh-article-meta">
|
|
4315
4406
|
${d && d.length > 0 ? `
|
|
4316
4407
|
<div class="gh-article-author-image">
|
|
4317
4408
|
${d.map((g) => `
|
|
4318
4409
|
<span>
|
|
4319
|
-
${g.profile_image ? `<img src="${g.profile_image}" alt="${g.name}">` : '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" height="24" width="24"><path d="M6.75 6a5.25 5.25 0 1 0 10.5 0 5.25 5.25 0 1 0 -10.5 0" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5"></path><path d="M2.25 23.25a9.75 9.75 0 0 1 19.5 0" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5"></path></svg>'}
|
|
4410
|
+
${g.profile_image ? `<img src="${B(g.profile_image)}" alt="${B(g.name)}">` : '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" height="24" width="24"><path d="M6.75 6a5.25 5.25 0 1 0 10.5 0 5.25 5.25 0 1 0 -10.5 0" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5"></path><path d="M2.25 23.25a9.75 9.75 0 0 1 19.5 0" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5"></path></svg>'}
|
|
4320
4411
|
</span>
|
|
4321
4412
|
`).join("")}
|
|
4322
4413
|
</div>
|
|
@@ -4324,20 +4415,20 @@ a.kg-cta-button {
|
|
|
4324
4415
|
<div class="gh-article-meta-wrapper">
|
|
4325
4416
|
${d && d.length > 0 ? `
|
|
4326
4417
|
<span class="gh-article-author-name">
|
|
4327
|
-
${d.length > 1 ? `${d[0].name} and ${d.length - 1} ${d.length - 1 === 1 ? "other" : "others"}` : d[0].name}
|
|
4418
|
+
${d.length > 1 ? `${B(d[0].name)} and ${d.length - 1} ${d.length - 1 === 1 ? "other" : "others"}` : B(d[0].name)}
|
|
4328
4419
|
</span>
|
|
4329
4420
|
` : ""}
|
|
4330
|
-
<span class="gh-article-source">${
|
|
4421
|
+
<span class="gh-article-source">${t && Sn(t) ? B(new URL(t).hostname) : ""} <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-external-link-icon lucide-external-link"><path d="M15 3h6v6"/><path d="M10 14 21 3"/><path d="M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6"/></svg></span>
|
|
4331
4422
|
</div>
|
|
4332
4423
|
</a>
|
|
4333
|
-
${
|
|
4424
|
+
${a ? `
|
|
4334
4425
|
<figure class='gh-article-image'>
|
|
4335
|
-
<img src='${
|
|
4426
|
+
<img src='${B(a)}' alt='${B(r)}' />
|
|
4336
4427
|
</figure>
|
|
4337
4428
|
` : ""}
|
|
4338
4429
|
</header>
|
|
4339
4430
|
<div class='gh-content gh-canvas is-body'>
|
|
4340
|
-
${
|
|
4431
|
+
${pe(u)}
|
|
4341
4432
|
</div>
|
|
4342
4433
|
<script>
|
|
4343
4434
|
(function () {
|
|
@@ -4353,7 +4444,7 @@ a.kg-cta-button {
|
|
|
4353
4444
|
})();
|
|
4354
4445
|
<\/script>
|
|
4355
4446
|
<script>
|
|
4356
|
-
${
|
|
4447
|
+
${Nt}
|
|
4357
4448
|
<\/script>
|
|
4358
4449
|
</body>
|
|
4359
4450
|
</html>
|
|
@@ -4363,10 +4454,10 @@ a.kg-cta-button {
|
|
|
4363
4454
|
if (!g)
|
|
4364
4455
|
return;
|
|
4365
4456
|
g.srcdoc || (g.srcdoc = f);
|
|
4366
|
-
const
|
|
4457
|
+
const O = (b) => {
|
|
4367
4458
|
if (b.data.type === "resize") {
|
|
4368
4459
|
const S = `${b.data.bodyHeight + 24}px`;
|
|
4369
|
-
|
|
4460
|
+
C(S), g.style.height = S, b.data.isLoaded && q(!1);
|
|
4370
4461
|
}
|
|
4371
4462
|
}, j = (b) => {
|
|
4372
4463
|
if (b.key === "Escape") {
|
|
@@ -4385,8 +4476,8 @@ a.kg-cta-button {
|
|
|
4385
4476
|
const b = g.contentWindow;
|
|
4386
4477
|
b && b.addEventListener("keydown", j);
|
|
4387
4478
|
};
|
|
4388
|
-
return g.addEventListener("load", E), window.addEventListener("message",
|
|
4389
|
-
window.removeEventListener("message",
|
|
4479
|
+
return g.addEventListener("load", E), window.addEventListener("message", O), () => {
|
|
4480
|
+
window.removeEventListener("message", O), g.removeEventListener("load", E);
|
|
4390
4481
|
const b = g.contentWindow;
|
|
4391
4482
|
b && b.removeEventListener("keydown", j);
|
|
4392
4483
|
};
|
|
@@ -4395,23 +4486,23 @@ a.kg-cta-button {
|
|
|
4395
4486
|
const g = I.current;
|
|
4396
4487
|
if (!g)
|
|
4397
4488
|
return;
|
|
4398
|
-
const
|
|
4399
|
-
if (!
|
|
4489
|
+
const O = g.contentDocument || ((b = g.contentWindow) == null ? void 0 : b.document);
|
|
4490
|
+
if (!O)
|
|
4400
4491
|
return;
|
|
4401
|
-
const j =
|
|
4402
|
-
j.style.setProperty("--font-size", h), j.classList.remove("has-sans-body", "has-serif-body"), j.classList.add(`has-${v}-body`), j.classList.remove("has-dark-text", "has-light-text"), j.classList.add(`has-${A ? "light" : "dark"}-text`),
|
|
4492
|
+
const j = O.documentElement;
|
|
4493
|
+
j.style.setProperty("--font-size", h), j.classList.remove("has-sans-body", "has-serif-body"), j.classList.add(`has-${v}-body`), j.classList.remove("has-dark-text", "has-light-text"), j.classList.add(`has-${A ? "light" : "dark"}-text`), s === "SEPIA" ? j.classList.add("has-sepia-bg") : j.classList.remove("has-sepia-bg");
|
|
4403
4494
|
const E = g.contentWindow;
|
|
4404
4495
|
if (E && typeof E.resizeIframe == "function")
|
|
4405
4496
|
E.resizeIframe();
|
|
4406
4497
|
else {
|
|
4407
4498
|
const S = new Event("resize");
|
|
4408
|
-
|
|
4499
|
+
O.dispatchEvent(S);
|
|
4409
4500
|
}
|
|
4410
|
-
}, [h, v,
|
|
4501
|
+
}, [h, v, s, A]), L(() => {
|
|
4411
4502
|
const g = I.current;
|
|
4412
4503
|
if (!g)
|
|
4413
4504
|
return;
|
|
4414
|
-
const
|
|
4505
|
+
const O = () => {
|
|
4415
4506
|
if (!g.contentDocument)
|
|
4416
4507
|
return;
|
|
4417
4508
|
const j = Array.from(
|
|
@@ -4421,23 +4512,23 @@ a.kg-cta-button {
|
|
|
4421
4512
|
return;
|
|
4422
4513
|
const E = Math.min(
|
|
4423
4514
|
...j.map((S) => parseInt(S.tagName[1]))
|
|
4424
|
-
), b = j.map((S,
|
|
4425
|
-
const
|
|
4426
|
-
S.id =
|
|
4427
|
-
const
|
|
4515
|
+
), b = j.map((S, en) => {
|
|
4516
|
+
const T = `heading-${en}`;
|
|
4517
|
+
S.id = T;
|
|
4518
|
+
const tn = parseInt(S.tagName[1]) - E + 1;
|
|
4428
4519
|
return {
|
|
4429
|
-
id:
|
|
4520
|
+
id: T,
|
|
4430
4521
|
text: S.textContent || "",
|
|
4431
|
-
level:
|
|
4522
|
+
level: tn,
|
|
4432
4523
|
element: S
|
|
4433
4524
|
};
|
|
4434
4525
|
});
|
|
4435
4526
|
p == null || p(b), o == null || o(g);
|
|
4436
4527
|
};
|
|
4437
|
-
return g.addEventListener("load",
|
|
4528
|
+
return g.addEventListener("load", O), () => g.removeEventListener("load", O);
|
|
4438
4529
|
}, [p, o]), L(() => {
|
|
4439
|
-
|
|
4440
|
-
}, [R,
|
|
4530
|
+
c == null || c(R);
|
|
4531
|
+
}, [R, c]), /* @__PURE__ */ n.jsx("div", { className: "w-full pb-6", children: /* @__PURE__ */ n.jsxs("div", { className: "relative -mx-6", children: [
|
|
4441
4532
|
R && /* @__PURE__ */ n.jsxs("div", { className: "mx-auto mt-6 w-full max-w-[640px] max-lg:px-4", children: [
|
|
4442
4533
|
/* @__PURE__ */ n.jsxs("div", { className: "mb-6 flex flex-col gap-2", children: [
|
|
4443
4534
|
/* @__PURE__ */ n.jsx(N, { className: "h-8" }),
|
|
@@ -4465,41 +4556,41 @@ a.kg-cta-button {
|
|
|
4465
4556
|
}
|
|
4466
4557
|
)
|
|
4467
4558
|
] }) });
|
|
4468
|
-
},
|
|
4469
|
-
postId:
|
|
4559
|
+
}, Pn = () => /* @__PURE__ */ n.jsx("div", { className: "h-px bg-black/[8%] dark:bg-gray-950" }), nn = /* @__PURE__ */ new Map(), Ft = ({
|
|
4560
|
+
postId: t = null,
|
|
4470
4561
|
onClose: r
|
|
4471
4562
|
}) => {
|
|
4472
|
-
var
|
|
4563
|
+
var vn, yn, wn;
|
|
4473
4564
|
const {
|
|
4474
|
-
backgroundColor:
|
|
4565
|
+
backgroundColor: a,
|
|
4475
4566
|
currentFontSizeIndex: i,
|
|
4476
4567
|
fontStyle: d,
|
|
4477
4568
|
fontSize: u,
|
|
4478
|
-
handleColorChange:
|
|
4569
|
+
handleColorChange: s,
|
|
4479
4570
|
setFontStyle: h,
|
|
4480
4571
|
increaseFontSize: v,
|
|
4481
4572
|
decreaseFontSize: p,
|
|
4482
4573
|
resetFontSize: o
|
|
4483
|
-
} =
|
|
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), b = W(null), {
|
|
4484
4575
|
post: S,
|
|
4485
|
-
processedReplies:
|
|
4486
|
-
isLoading:
|
|
4487
|
-
loadMoreChildren:
|
|
4488
|
-
loadMoreChildReplies:
|
|
4489
|
-
hasMoreChildren:
|
|
4490
|
-
hasMoreChildReplies:
|
|
4491
|
-
} =
|
|
4576
|
+
processedReplies: en,
|
|
4577
|
+
isLoading: T,
|
|
4578
|
+
loadMoreChildren: gn,
|
|
4579
|
+
loadMoreChildReplies: tn,
|
|
4580
|
+
hasMoreChildren: an,
|
|
4581
|
+
hasMoreChildReplies: on
|
|
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;
|
|
4492
4583
|
L(() => {
|
|
4493
|
-
if (!
|
|
4584
|
+
if (!an)
|
|
4494
4585
|
return;
|
|
4495
4586
|
E.current && E.current.disconnect();
|
|
4496
|
-
const e =
|
|
4587
|
+
const e = c.current;
|
|
4497
4588
|
if (e)
|
|
4498
4589
|
return E.current = new IntersectionObserver(async (w) => {
|
|
4499
|
-
if (w[0].isIntersecting &&
|
|
4590
|
+
if (w[0].isIntersecting && an && !O) {
|
|
4500
4591
|
j(!0);
|
|
4501
4592
|
try {
|
|
4502
|
-
await
|
|
4593
|
+
await gn();
|
|
4503
4594
|
} catch (k) {
|
|
4504
4595
|
console.error("Failed to load more top-level replies:", k);
|
|
4505
4596
|
} finally {
|
|
@@ -4512,119 +4603,119 @@ a.kg-cta-button {
|
|
|
4512
4603
|
}), b.current && E.current.observe(b.current), () => {
|
|
4513
4604
|
E.current && E.current.disconnect();
|
|
4514
4605
|
};
|
|
4515
|
-
}, [
|
|
4516
|
-
function
|
|
4606
|
+
}, [an, O, gn]);
|
|
4607
|
+
function pn() {
|
|
4517
4608
|
}
|
|
4518
|
-
function
|
|
4519
|
-
|
|
4609
|
+
function Dn(e) {
|
|
4610
|
+
C((w) => {
|
|
4520
4611
|
const k = new Set(w);
|
|
4521
|
-
return k.has(e) ? k.delete(e) : (k.add(e),
|
|
4522
|
-
const M = new Set(
|
|
4612
|
+
return k.has(e) ? k.delete(e) : (k.add(e), J((z) => {
|
|
4613
|
+
const M = new Set(z);
|
|
4523
4614
|
return M.add(e), M;
|
|
4524
4615
|
})), k;
|
|
4525
4616
|
});
|
|
4526
4617
|
}
|
|
4527
|
-
async function
|
|
4618
|
+
async function Bn(e, w) {
|
|
4528
4619
|
if (!f.has(e)) {
|
|
4529
4620
|
g((k) => new Set(k).add(e));
|
|
4530
4621
|
try {
|
|
4531
|
-
|
|
4622
|
+
tn && await tn(w);
|
|
4532
4623
|
} catch (k) {
|
|
4533
4624
|
console.error("Failed to load more replies for chain:", k);
|
|
4534
4625
|
} finally {
|
|
4535
4626
|
g((k) => {
|
|
4536
|
-
const
|
|
4537
|
-
return
|
|
4627
|
+
const z = new Set(k);
|
|
4628
|
+
return z.delete(e), z;
|
|
4538
4629
|
});
|
|
4539
4630
|
}
|
|
4540
4631
|
}
|
|
4541
4632
|
}
|
|
4542
|
-
const
|
|
4543
|
-
},
|
|
4633
|
+
const qn = () => {
|
|
4634
|
+
}, Hn = W(null), Un = "904px", K = "640px", [bn, Wn] = y(0), [G, Kn] = y(!0), [un] = oe(Wn, 100), xn = 1;
|
|
4544
4635
|
L(() => {
|
|
4545
|
-
const e =
|
|
4546
|
-
if (
|
|
4636
|
+
const e = c.current, w = document.getElementById("object-content"), k = () => {
|
|
4637
|
+
if (G || !e || !w)
|
|
4547
4638
|
return;
|
|
4548
|
-
const M = w.getBoundingClientRect(),
|
|
4549
|
-
if (M.height <=
|
|
4550
|
-
|
|
4639
|
+
const M = w.getBoundingClientRect(), Y = e.getBoundingClientRect();
|
|
4640
|
+
if (M.height <= Y.height) {
|
|
4641
|
+
un(100);
|
|
4551
4642
|
return;
|
|
4552
4643
|
}
|
|
4553
|
-
const D = Math.max(0,
|
|
4554
|
-
|
|
4644
|
+
const D = Math.max(0, Y.top - M.top), x = w.offsetHeight - e.offsetHeight, P = Math.min(Math.max(D / x * 100, 0), 100), sn = Math.round(P / xn) * xn;
|
|
4645
|
+
un(sn);
|
|
4555
4646
|
};
|
|
4556
|
-
if (
|
|
4647
|
+
if (G)
|
|
4557
4648
|
return;
|
|
4558
|
-
const
|
|
4559
|
-
return w &&
|
|
4649
|
+
const z = new MutationObserver(k);
|
|
4650
|
+
return w && z.observe(w, {
|
|
4560
4651
|
childList: !0,
|
|
4561
4652
|
subtree: !0,
|
|
4562
4653
|
characterData: !0
|
|
4563
4654
|
}), e == null || e.addEventListener("scroll", k), k(), () => {
|
|
4564
|
-
e == null || e.removeEventListener("scroll", k),
|
|
4655
|
+
e == null || e.removeEventListener("scroll", k), z.disconnect();
|
|
4565
4656
|
};
|
|
4566
|
-
}, [
|
|
4567
|
-
const [
|
|
4568
|
-
|
|
4569
|
-
}, []),
|
|
4570
|
-
|
|
4657
|
+
}, [G, un]);
|
|
4658
|
+
const [rn, Vn] = y([]), [Yn, Qn] = y(null), [V, Zn] = y(null), Jn = zn((e) => {
|
|
4659
|
+
Vn(e);
|
|
4660
|
+
}, []), Gn = zn((e) => {
|
|
4661
|
+
Zn(e);
|
|
4571
4662
|
}, []);
|
|
4572
4663
|
L(() => {
|
|
4573
|
-
if (!(
|
|
4664
|
+
if (!(V != null && V.contentDocument) || !rn.length)
|
|
4574
4665
|
return;
|
|
4575
4666
|
const w = setTimeout(() => {
|
|
4576
|
-
const k =
|
|
4667
|
+
const k = c.current;
|
|
4577
4668
|
if (!k)
|
|
4578
4669
|
return;
|
|
4579
|
-
const
|
|
4580
|
-
const M =
|
|
4670
|
+
const z = () => {
|
|
4671
|
+
const M = V.contentDocument;
|
|
4581
4672
|
if (!M || !M.documentElement)
|
|
4582
4673
|
return;
|
|
4583
|
-
const
|
|
4674
|
+
const Y = k.scrollTop, X = rn.map((P) => M.getElementById(P.id)).filter((P) => P !== null).map((P) => ({
|
|
4584
4675
|
element: P,
|
|
4585
4676
|
id: P.id,
|
|
4586
4677
|
top: P.offsetTop
|
|
4587
4678
|
}));
|
|
4588
|
-
if (!
|
|
4679
|
+
if (!X.length)
|
|
4589
4680
|
return;
|
|
4590
4681
|
const D = 100;
|
|
4591
4682
|
let x = null;
|
|
4592
|
-
for (const P of
|
|
4593
|
-
if (P.top - D <=
|
|
4683
|
+
for (const P of X)
|
|
4684
|
+
if (P.top - D <= Y)
|
|
4594
4685
|
x = P;
|
|
4595
4686
|
else
|
|
4596
4687
|
break;
|
|
4597
|
-
|
|
4688
|
+
Qn((x == null ? void 0 : x.id) || null);
|
|
4598
4689
|
};
|
|
4599
|
-
return k.addEventListener("scroll",
|
|
4600
|
-
k.removeEventListener("scroll",
|
|
4690
|
+
return k.addEventListener("scroll", z), z(), () => {
|
|
4691
|
+
k.removeEventListener("scroll", z);
|
|
4601
4692
|
};
|
|
4602
4693
|
}, 100);
|
|
4603
4694
|
return () => clearTimeout(w);
|
|
4604
|
-
}, [
|
|
4605
|
-
const
|
|
4695
|
+
}, [V, rn, Yn]);
|
|
4696
|
+
const dn = Tn();
|
|
4606
4697
|
return L(() => {
|
|
4607
|
-
const e =
|
|
4698
|
+
const e = c.current;
|
|
4608
4699
|
return () => {
|
|
4609
|
-
e &&
|
|
4700
|
+
e && t && nn.set(t, e.scrollTop);
|
|
4610
4701
|
};
|
|
4611
|
-
}, [
|
|
4612
|
-
if (!
|
|
4613
|
-
const e =
|
|
4702
|
+
}, [t]), L(() => {
|
|
4703
|
+
if (!G && !T && t && c.current) {
|
|
4704
|
+
const e = nn.get(t);
|
|
4614
4705
|
e !== void 0 && e > 0 && setTimeout(() => {
|
|
4615
|
-
|
|
4706
|
+
c.current && (c.current.scrollTop = e);
|
|
4616
4707
|
}, 100);
|
|
4617
4708
|
}
|
|
4618
|
-
}, [
|
|
4619
|
-
/* @__PURE__ */ n.jsx("div", { className: `sticky top-0 z-50 flex h-[102px] items-center justify-center rounded-t-md border-b max-md:h-[68px] ${F[
|
|
4709
|
+
}, [G, T, t]), T ? /* @__PURE__ */ n.jsx("div", { className: `max-h-full overflow-auto rounded-md ${a === "DARK" && "dark"} ${(a === "LIGHT" || a === "SEPIA") && "light"} ${F[a].background}`, children: /* @__PURE__ */ n.jsx("div", { className: "flex h-full flex-col", children: /* @__PURE__ */ n.jsxs("div", { className: "relative flex-1", children: [
|
|
4710
|
+
/* @__PURE__ */ n.jsx("div", { className: `sticky top-0 z-50 flex h-[102px] items-center justify-center rounded-t-md border-b max-md:h-[68px] ${F[a].background} ${F[a].border}`, children: /* @__PURE__ */ n.jsxs(
|
|
4620
4711
|
"div",
|
|
4621
4712
|
{
|
|
4622
4713
|
className: "grid w-full px-8 max-lg:px-4",
|
|
4623
4714
|
style: {
|
|
4624
|
-
gridTemplateColumns: `1fr minmax(0,${
|
|
4715
|
+
gridTemplateColumns: `1fr minmax(0,${K}) 1fr`
|
|
4625
4716
|
},
|
|
4626
4717
|
children: [
|
|
4627
|
-
/* @__PURE__ */ n.jsx("div", { className: "flex items-center", children: /* @__PURE__ */ n.jsx(
|
|
4718
|
+
/* @__PURE__ */ n.jsx("div", { className: "flex items-center", children: /* @__PURE__ */ n.jsx(hn, { className: F[a].button, onClick: r }) }),
|
|
4628
4719
|
/* @__PURE__ */ n.jsxs("div", { className: "col-[2/3] mx-auto flex w-full items-center gap-3 max-md:hidden", children: [
|
|
4629
4720
|
/* @__PURE__ */ n.jsx(N, { className: "size-10 rounded-full" }),
|
|
4630
4721
|
/* @__PURE__ */ n.jsxs("div", { className: "grow pt-1", children: [
|
|
@@ -4633,12 +4724,12 @@ a.kg-cta-button {
|
|
|
4633
4724
|
] })
|
|
4634
4725
|
] }),
|
|
4635
4726
|
/* @__PURE__ */ n.jsx("div", { className: "col-[3/4] flex items-center justify-end gap-2", children: /* @__PURE__ */ n.jsx(
|
|
4636
|
-
|
|
4727
|
+
In,
|
|
4637
4728
|
{
|
|
4638
|
-
backgroundColor:
|
|
4729
|
+
backgroundColor: a,
|
|
4639
4730
|
currentFontSizeIndex: i,
|
|
4640
4731
|
fontStyle: d,
|
|
4641
|
-
onColorChange:
|
|
4732
|
+
onColorChange: s,
|
|
4642
4733
|
onDecreaseFontSize: p,
|
|
4643
4734
|
onFontStyleChange: h,
|
|
4644
4735
|
onIncreaseFontSize: v,
|
|
@@ -4658,43 +4749,43 @@ a.kg-cta-button {
|
|
|
4658
4749
|
/* @__PURE__ */ n.jsx(N, { className: "mt-8 h-[400px]" }),
|
|
4659
4750
|
/* @__PURE__ */ n.jsx(N, { className: "mt-2 h-4", containerClassName: "block mt-7 mb-4", count: 8, randomize: !0 })
|
|
4660
4751
|
] }) })
|
|
4661
|
-
] }) }) }) : S ? /* @__PURE__ */ n.jsx("div", { ref:
|
|
4752
|
+
] }) }) }) : S ? /* @__PURE__ */ n.jsx("div", { ref: c, className: `max-h-full overflow-auto rounded-md ${a === "DARK" && "dark"} ${(a === "LIGHT" || a === "SEPIA") && "light"} ${F[a].background}`, "data-scrollable-container": !0, children: /* @__PURE__ */ n.jsx(n.Fragment, { children: /* @__PURE__ */ n.jsxs("div", { className: "flex h-full flex-col", children: [
|
|
4662
4753
|
/* @__PURE__ */ n.jsxs("div", { className: "relative flex-1", children: [
|
|
4663
|
-
/* @__PURE__ */ n.jsx("div", { className: `sticky top-0 z-50 flex h-[102px] items-center justify-center rounded-t-md border-b max-md:h-[68px] ${F[
|
|
4754
|
+
/* @__PURE__ */ n.jsx("div", { className: `sticky top-0 z-50 flex h-[102px] items-center justify-center rounded-t-md border-b max-md:h-[68px] ${F[a].background} ${F[a].border}`, children: /* @__PURE__ */ n.jsxs(
|
|
4664
4755
|
"div",
|
|
4665
4756
|
{
|
|
4666
4757
|
className: "grid w-full px-8 max-lg:px-4",
|
|
4667
4758
|
style: {
|
|
4668
|
-
gridTemplateColumns: `1fr minmax(0,${
|
|
4759
|
+
gridTemplateColumns: `1fr minmax(0,${K}) 1fr`
|
|
4669
4760
|
},
|
|
4670
4761
|
children: [
|
|
4671
|
-
/* @__PURE__ */ n.jsx("div", { className: "flex items-center", children: /* @__PURE__ */ n.jsx(
|
|
4762
|
+
/* @__PURE__ */ n.jsx("div", { className: "flex items-center", children: /* @__PURE__ */ n.jsx(hn, { className: F[a].button, onClick: r }) }),
|
|
4672
4763
|
/* @__PURE__ */ n.jsxs("div", { className: "col-[2/3] mx-auto flex w-full items-center justify-between gap-3 max-md:hidden", children: [
|
|
4673
|
-
/* @__PURE__ */ n.jsx(
|
|
4674
|
-
/* @__PURE__ */ n.jsx("div", { className: "relative z-10 pt-0.5", children: /* @__PURE__ */ n.jsx(
|
|
4675
|
-
/* @__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) =>
|
|
4676
|
-
/* @__PURE__ */ n.jsx("div", { className: "flex w-full", children: /* @__PURE__ */ n.jsx("span", { className: "min-w-0 truncate whitespace-nowrap font-semibold text-black hover:underline dark:text-white", children:
|
|
4764
|
+
/* @__PURE__ */ n.jsx(re, { actor: U, isCurrentUser: m.authored, children: /* @__PURE__ */ n.jsxs("div", { className: "flex cursor-pointer items-center gap-3", children: [
|
|
4765
|
+
/* @__PURE__ */ n.jsx("div", { className: "relative z-10 pt-0.5", children: /* @__PURE__ */ n.jsx(ie, { author: U }) }),
|
|
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) => de(U, dn, e), children: [
|
|
4767
|
+
/* @__PURE__ */ n.jsx("div", { className: "flex w-full", children: /* @__PURE__ */ n.jsx("span", { className: "min-w-0 truncate whitespace-nowrap font-semibold text-black hover:underline dark:text-white", children: T ? /* @__PURE__ */ n.jsx(N, { className: "w-20" }) : U.name }) }),
|
|
4677
4768
|
/* @__PURE__ */ n.jsxs("div", { className: "flex w-full", children: [
|
|
4678
|
-
!
|
|
4679
|
-
/* @__PURE__ */ n.jsx("span", { className: "text-gray-700", 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
|
+
/* @__PURE__ */ n.jsx("span", { className: "text-gray-700", children: T ? /* @__PURE__ */ n.jsx(N, { className: "w-[120px]" }) : se(m, !m.authored) })
|
|
4680
4771
|
] })
|
|
4681
4772
|
] })
|
|
4682
4773
|
] }) }),
|
|
4683
|
-
!m.authored && !
|
|
4684
|
-
|
|
4774
|
+
!m.authored && !T && /* @__PURE__ */ n.jsx(
|
|
4775
|
+
ce,
|
|
4685
4776
|
{
|
|
4686
|
-
following:
|
|
4687
|
-
handle: Cn(
|
|
4777
|
+
following: U.followedByMe ?? !1,
|
|
4778
|
+
handle: Cn(U)
|
|
4688
4779
|
}
|
|
4689
4780
|
)
|
|
4690
4781
|
] }),
|
|
4691
4782
|
/* @__PURE__ */ n.jsx("div", { className: "col-[3/4] flex items-center justify-end gap-2", children: /* @__PURE__ */ n.jsx(
|
|
4692
|
-
|
|
4783
|
+
In,
|
|
4693
4784
|
{
|
|
4694
|
-
backgroundColor:
|
|
4785
|
+
backgroundColor: a,
|
|
4695
4786
|
currentFontSizeIndex: i,
|
|
4696
4787
|
fontStyle: d,
|
|
4697
|
-
onColorChange:
|
|
4788
|
+
onColorChange: s,
|
|
4698
4789
|
onDecreaseFontSize: p,
|
|
4699
4790
|
onFontStyleChange: h,
|
|
4700
4791
|
onIncreaseFontSize: v,
|
|
@@ -4707,62 +4798,62 @@ a.kg-cta-button {
|
|
|
4707
4798
|
) }),
|
|
4708
4799
|
/* @__PURE__ */ n.jsxs("div", { className: "relative flex-1", children: [
|
|
4709
4800
|
/* @__PURE__ */ n.jsx(
|
|
4710
|
-
|
|
4801
|
+
Re,
|
|
4711
4802
|
{
|
|
4712
|
-
iframeElement:
|
|
4713
|
-
modalRef:
|
|
4714
|
-
tocItems:
|
|
4715
|
-
onOpenChange:
|
|
4803
|
+
iframeElement: V,
|
|
4804
|
+
modalRef: c,
|
|
4805
|
+
tocItems: rn,
|
|
4806
|
+
onOpenChange: q
|
|
4716
4807
|
}
|
|
4717
4808
|
),
|
|
4718
|
-
!
|
|
4809
|
+
!T && /* @__PURE__ */ n.jsx("div", { className: "grow overflow-y-auto", children: /* @__PURE__ */ n.jsxs("div", { className: "mx-auto px-6 pb-10 pt-5", style: { maxWidth: Un }, children: [
|
|
4719
4810
|
/* @__PURE__ */ n.jsxs("div", { className: "flex flex-col items-center pb-8", id: "object-content", children: [
|
|
4720
4811
|
/* @__PURE__ */ n.jsx(
|
|
4721
|
-
|
|
4812
|
+
Pt,
|
|
4722
4813
|
{
|
|
4723
|
-
authors:
|
|
4724
|
-
backgroundColor:
|
|
4814
|
+
authors: An,
|
|
4815
|
+
backgroundColor: a,
|
|
4725
4816
|
excerpt: m.summary ?? "",
|
|
4726
4817
|
fontSize: u,
|
|
4727
4818
|
fontStyle: d,
|
|
4728
4819
|
heading: m.name,
|
|
4729
4820
|
html: m.content ?? "",
|
|
4730
|
-
image: typeof m.image == "string" ? m.image : (
|
|
4821
|
+
image: typeof m.image == "string" ? m.image : (wn = m.image) == null ? void 0 : wn.url,
|
|
4731
4822
|
isPopoverOpen: l || R,
|
|
4732
4823
|
postUrl: (m == null ? void 0 : m.url) || "",
|
|
4733
|
-
onHeadingsExtracted:
|
|
4734
|
-
onIframeLoad:
|
|
4735
|
-
onLoadingChange:
|
|
4824
|
+
onHeadingsExtracted: Jn,
|
|
4825
|
+
onIframeLoad: Gn,
|
|
4826
|
+
onLoadingChange: Kn
|
|
4736
4827
|
}
|
|
4737
4828
|
),
|
|
4738
|
-
/* @__PURE__ */ n.jsx("div", { className: "-ml-3 w-full", style: { maxWidth:
|
|
4739
|
-
|
|
4829
|
+
/* @__PURE__ */ n.jsx("div", { className: "-ml-3 w-full", style: { maxWidth: K }, children: /* @__PURE__ */ n.jsx(
|
|
4830
|
+
le,
|
|
4740
4831
|
{
|
|
4741
|
-
actor:
|
|
4742
|
-
commentCount:
|
|
4832
|
+
actor: U,
|
|
4833
|
+
commentCount: $n,
|
|
4743
4834
|
layout: "modal",
|
|
4744
4835
|
likeCount: m.likeCount ?? 0,
|
|
4745
4836
|
object: m,
|
|
4746
4837
|
repostCount: m.repostCount ?? 0,
|
|
4747
|
-
onLikeClick:
|
|
4838
|
+
onLikeClick: qn
|
|
4748
4839
|
}
|
|
4749
4840
|
) })
|
|
4750
4841
|
] }),
|
|
4751
|
-
m.type === "Tombstone" && /* @__PURE__ */ n.jsx(
|
|
4752
|
-
/* @__PURE__ */ n.jsxs("div", { className: "mx-auto w-full border-t border-black/[8%] dark:border-gray-950", style: { maxWidth:
|
|
4842
|
+
m.type === "Tombstone" && /* @__PURE__ */ n.jsx(Se, { last: !0 }),
|
|
4843
|
+
/* @__PURE__ */ n.jsxs("div", { className: "mx-auto w-full border-t border-black/[8%] dark:border-gray-950", style: { maxWidth: K }, children: [
|
|
4753
4844
|
/* @__PURE__ */ n.jsx(
|
|
4754
|
-
|
|
4845
|
+
_e,
|
|
4755
4846
|
{
|
|
4756
4847
|
object: m
|
|
4757
4848
|
}
|
|
4758
4849
|
),
|
|
4759
|
-
/* @__PURE__ */ n.jsx(
|
|
4850
|
+
/* @__PURE__ */ n.jsx(Pn, {})
|
|
4760
4851
|
] }),
|
|
4761
|
-
|
|
4762
|
-
/* @__PURE__ */ n.jsxs("div", { ref:
|
|
4763
|
-
|
|
4764
|
-
const k = w ===
|
|
4765
|
-
return /* @__PURE__ */ n.jsxs(
|
|
4852
|
+
T && /* @__PURE__ */ n.jsx(mn, { size: "lg" }),
|
|
4853
|
+
/* @__PURE__ */ n.jsxs("div", { ref: Hn, className: "mx-auto w-full", style: { maxWidth: K }, children: [
|
|
4854
|
+
en.map((e, w) => {
|
|
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
|
+
return /* @__PURE__ */ n.jsxs(Z.Fragment, { children: [
|
|
4766
4857
|
/* @__PURE__ */ n.jsx(
|
|
4767
4858
|
cn,
|
|
4768
4859
|
{
|
|
@@ -4770,7 +4861,7 @@ a.kg-cta-button {
|
|
|
4770
4861
|
allowDelete: e.mainReply.object.authored,
|
|
4771
4862
|
commentCount: e.mainReply.object.replyCount ?? 0,
|
|
4772
4863
|
isChainParent: D,
|
|
4773
|
-
isPending:
|
|
4864
|
+
isPending: ln(e.mainReply.id),
|
|
4774
4865
|
last: !D,
|
|
4775
4866
|
layout: "reply",
|
|
4776
4867
|
likeCount: e.mainReply.object.likeCount ?? 0,
|
|
@@ -4779,10 +4870,10 @@ a.kg-cta-button {
|
|
|
4779
4870
|
repostCount: e.mainReply.object.repostCount ?? 0,
|
|
4780
4871
|
type: "Note",
|
|
4781
4872
|
onClick: () => {
|
|
4782
|
-
const x =
|
|
4783
|
-
x &&
|
|
4873
|
+
const x = c.current;
|
|
4874
|
+
x && t && nn.set(t, x.scrollTop), dn(`/notes/${encodeURIComponent(e.mainReply.id)}`);
|
|
4784
4875
|
},
|
|
4785
|
-
onDelete:
|
|
4876
|
+
onDelete: pn
|
|
4786
4877
|
}
|
|
4787
4878
|
),
|
|
4788
4879
|
D && e.chain[0] && /* @__PURE__ */ n.jsx(
|
|
@@ -4792,7 +4883,7 @@ a.kg-cta-button {
|
|
|
4792
4883
|
allowDelete: e.chain[0].object.authored,
|
|
4793
4884
|
commentCount: e.chain[0].object.replyCount ?? 0,
|
|
4794
4885
|
isChainContinuation: !0,
|
|
4795
|
-
isPending:
|
|
4886
|
+
isPending: ln(e.chain[0].id),
|
|
4796
4887
|
last: e.chain.length === 1,
|
|
4797
4888
|
layout: "reply",
|
|
4798
4889
|
likeCount: e.chain[0].object.likeCount ?? 0,
|
|
@@ -4801,15 +4892,15 @@ a.kg-cta-button {
|
|
|
4801
4892
|
repostCount: e.chain[0].object.repostCount ?? 0,
|
|
4802
4893
|
type: "Note",
|
|
4803
4894
|
onClick: () => {
|
|
4804
|
-
const x =
|
|
4805
|
-
x &&
|
|
4895
|
+
const x = c.current;
|
|
4896
|
+
x && t && nn.set(t, x.scrollTop), dn(`/notes/${encodeURIComponent(e.chain[0].id)}`);
|
|
4806
4897
|
},
|
|
4807
|
-
onDelete:
|
|
4898
|
+
onDelete: pn
|
|
4808
4899
|
},
|
|
4809
4900
|
e.chain[0].id
|
|
4810
4901
|
),
|
|
4811
4902
|
D && M && e.chain.slice(1).map((x, P) => {
|
|
4812
|
-
const
|
|
4903
|
+
const sn = P === e.chain.slice(1).length - 1, Xn = on && on(w), ne = sn && Xn;
|
|
4813
4904
|
return /* @__PURE__ */ n.jsx(
|
|
4814
4905
|
cn,
|
|
4815
4906
|
{
|
|
@@ -4817,8 +4908,8 @@ a.kg-cta-button {
|
|
|
4817
4908
|
allowDelete: x.object.authored,
|
|
4818
4909
|
commentCount: x.object.replyCount ?? 0,
|
|
4819
4910
|
isChainContinuation: !0,
|
|
4820
|
-
isPending:
|
|
4821
|
-
last:
|
|
4911
|
+
isPending: ln(x.id),
|
|
4912
|
+
last: sn && !ne,
|
|
4822
4913
|
layout: "reply",
|
|
4823
4914
|
likeCount: x.object.likeCount ?? 0,
|
|
4824
4915
|
object: x.object,
|
|
@@ -4826,80 +4917,80 @@ a.kg-cta-button {
|
|
|
4826
4917
|
repostCount: x.object.repostCount ?? 0,
|
|
4827
4918
|
type: "Note",
|
|
4828
4919
|
onClick: () => {
|
|
4829
|
-
const
|
|
4830
|
-
|
|
4920
|
+
const jn = c.current;
|
|
4921
|
+
jn && t && nn.set(t, jn.scrollTop), dn(`/notes/${encodeURIComponent(x.id)}`);
|
|
4831
4922
|
},
|
|
4832
|
-
onDelete:
|
|
4923
|
+
onDelete: pn
|
|
4833
4924
|
},
|
|
4834
4925
|
x.id
|
|
4835
4926
|
);
|
|
4836
4927
|
}),
|
|
4837
4928
|
D && e.chain.length > 1 && !M && /* @__PURE__ */ n.jsx(
|
|
4838
|
-
|
|
4929
|
+
En,
|
|
4839
4930
|
{
|
|
4840
4931
|
variant: "expand",
|
|
4841
|
-
onClick: () =>
|
|
4932
|
+
onClick: () => Dn(z)
|
|
4842
4933
|
}
|
|
4843
4934
|
),
|
|
4844
|
-
D && M &&
|
|
4845
|
-
|
|
4935
|
+
D && M && Y && on && on(w) && /* @__PURE__ */ n.jsx(
|
|
4936
|
+
En,
|
|
4846
4937
|
{
|
|
4847
|
-
loading:
|
|
4938
|
+
loading: X,
|
|
4848
4939
|
variant: "loadMore",
|
|
4849
|
-
onClick: () =>
|
|
4940
|
+
onClick: () => Bn(z, w)
|
|
4850
4941
|
}
|
|
4851
4942
|
),
|
|
4852
|
-
!k && /* @__PURE__ */ n.jsx(
|
|
4943
|
+
!k && /* @__PURE__ */ n.jsx(Pn, {})
|
|
4853
4944
|
] }, e.mainReply.id);
|
|
4854
4945
|
}),
|
|
4855
|
-
|
|
4946
|
+
O && /* @__PURE__ */ n.jsx("div", { className: "flex flex-col items-center justify-center text-center", children: /* @__PURE__ */ n.jsx(mn, { size: "md" }) })
|
|
4856
4947
|
] }),
|
|
4857
|
-
|
|
4948
|
+
an && /* @__PURE__ */ n.jsx("div", { ref: b, className: "h-1" })
|
|
4858
4949
|
] }) })
|
|
4859
4950
|
] })
|
|
4860
4951
|
] }),
|
|
4861
|
-
!
|
|
4862
|
-
/* @__PURE__ */ n.jsx("div", { className: "pointer-events-auto text-gray-600", children:
|
|
4952
|
+
!T && /* @__PURE__ */ n.jsxs("div", { className: "pointer-events-none !visible sticky bottom-0 hidden items-end justify-between px-10 pb-[42px] lg:!flex", children: [
|
|
4953
|
+
/* @__PURE__ */ n.jsx("div", { className: "pointer-events-auto text-gray-600", children: ge(m.content ?? "") }),
|
|
4863
4954
|
/* @__PURE__ */ n.jsxs("div", { className: "pointer-events-auto min-w-10 text-right text-gray-600 transition-all duration-200 ease-out", children: [
|
|
4864
|
-
|
|
4955
|
+
bn,
|
|
4865
4956
|
"%"
|
|
4866
|
-
] },
|
|
4957
|
+
] }, bn)
|
|
4867
4958
|
] })
|
|
4868
|
-
] }) }) }) : /* @__PURE__ */ n.jsx("div", { className: `max-h-full overflow-auto rounded-md ${
|
|
4959
|
+
] }) }) }) : /* @__PURE__ */ n.jsx("div", { className: `max-h-full overflow-auto rounded-md ${a === "DARK" && "dark"} ${(a === "LIGHT" || a === "SEPIA") && "light"} ${F[a].background}`, children: /* @__PURE__ */ n.jsx("div", { className: "flex h-full flex-col", children: /* @__PURE__ */ n.jsx("div", { className: "relative flex-1", children: /* @__PURE__ */ n.jsx("div", { className: `sticky top-0 z-50 flex h-[102px] items-center justify-center rounded-t-md border-b max-md:h-[68px] ${F[a].background} ${F[a].border}`, children: /* @__PURE__ */ n.jsxs(
|
|
4869
4960
|
"div",
|
|
4870
4961
|
{
|
|
4871
4962
|
className: "grid w-full px-8 max-lg:px-4",
|
|
4872
4963
|
style: {
|
|
4873
|
-
gridTemplateColumns: `1fr minmax(0,${
|
|
4964
|
+
gridTemplateColumns: `1fr minmax(0,${K}) 1fr`
|
|
4874
4965
|
},
|
|
4875
4966
|
children: [
|
|
4876
|
-
/* @__PURE__ */ n.jsx("div", { className: "flex items-center", children: /* @__PURE__ */ n.jsx(
|
|
4967
|
+
/* @__PURE__ */ n.jsx("div", { className: "flex items-center", children: /* @__PURE__ */ n.jsx(hn, { className: F[a].button, onClick: r }) }),
|
|
4877
4968
|
/* @__PURE__ */ n.jsx("div", { className: "col-[2/3] mx-auto flex w-full items-center gap-3 max-md:hidden", children: /* @__PURE__ */ n.jsx("div", { className: "grow text-center", children: /* @__PURE__ */ n.jsx("span", { children: "Error loading article." }) }) })
|
|
4878
4969
|
]
|
|
4879
4970
|
}
|
|
4880
4971
|
) }) }) }) });
|
|
4881
|
-
},
|
|
4882
|
-
isLoading:
|
|
4972
|
+
}, Lt = ({
|
|
4973
|
+
isLoading: t,
|
|
4883
4974
|
activities: r,
|
|
4884
|
-
currentTopic:
|
|
4975
|
+
currentTopic: a,
|
|
4885
4976
|
fetchNextPage: i,
|
|
4886
4977
|
hasNextPage: d,
|
|
4887
4978
|
isFetchingNextPage: u,
|
|
4888
|
-
onTopicChange:
|
|
4979
|
+
onTopicChange: s
|
|
4889
4980
|
}) => {
|
|
4890
|
-
const h =
|
|
4981
|
+
const h = Tn(), { canGoBack: v, goBack: p } = ue(), [o, c] = y(!1), l = he(), { topicsQuery: I } = me(), { data: R } = I, q = R && R.topics.length > 0;
|
|
4891
4982
|
L(() => {
|
|
4892
|
-
|
|
4983
|
+
c(!!l.postId);
|
|
4893
4984
|
}, [l.postId]);
|
|
4894
|
-
const _ =
|
|
4985
|
+
const _ = W(null), C = W(null), A = W(null);
|
|
4895
4986
|
L(() => (_.current && _.current.disconnect(), _.current = new IntersectionObserver((f) => {
|
|
4896
4987
|
f[0].isIntersecting && d && !u && i();
|
|
4897
|
-
}),
|
|
4988
|
+
}), C.current && _.current.observe(C.current), A.current && _.current.observe(A.current), () => {
|
|
4898
4989
|
_.current && _.current.disconnect();
|
|
4899
4990
|
}), [d, u, i]);
|
|
4900
|
-
const
|
|
4901
|
-
return /* @__PURE__ */ n.jsxs(
|
|
4902
|
-
|
|
4991
|
+
const J = Math.max(0, Math.floor(r.length * 0.75) - 1);
|
|
4992
|
+
return /* @__PURE__ */ n.jsxs(ke, { children: [
|
|
4993
|
+
q && /* @__PURE__ */ n.jsx(Ee, { currentTopic: a, excludeTopics: ["top"], onTopicChange: s }),
|
|
4903
4994
|
/* @__PURE__ */ n.jsx("div", { className: "flex w-full flex-col", children: /* @__PURE__ */ n.jsx("div", { className: "w-full", children: r.length > 0 ? /* @__PURE__ */ n.jsx("div", { className: "my-4", children: /* @__PURE__ */ n.jsx("div", { className: "mx-auto flex min-h-[calc(100dvh_-_117px)] items-start gap-11", children: /* @__PURE__ */ n.jsx("div", { className: "flex w-full min-w-0 flex-col items-center", children: /* @__PURE__ */ n.jsxs("div", { className: "flex w-full min-w-0 flex-col items-start", children: [
|
|
4904
4995
|
/* @__PURE__ */ n.jsxs("ul", { className: "mx-auto flex w-full flex-col", "data-testid": "inbox-list", children: [
|
|
4905
4996
|
r.map((f, g) => /* @__PURE__ */ n.jsxs(
|
|
@@ -4914,8 +5005,8 @@ a.kg-cta-button {
|
|
|
4914
5005
|
actor: f.actor,
|
|
4915
5006
|
allowDelete: f.object.authored,
|
|
4916
5007
|
commentCount: f.object.replyCount ?? 0,
|
|
4917
|
-
isLoading:
|
|
4918
|
-
isPending:
|
|
5008
|
+
isLoading: t,
|
|
5009
|
+
isPending: ln(f.id),
|
|
4919
5010
|
layout: "inbox",
|
|
4920
5011
|
likeCount: f.object.likeCount ?? 0,
|
|
4921
5012
|
object: f.object,
|
|
@@ -4926,60 +5017,60 @@ a.kg-cta-button {
|
|
|
4926
5017
|
}
|
|
4927
5018
|
}
|
|
4928
5019
|
),
|
|
4929
|
-
g < r.length - 1 && /* @__PURE__ */ n.jsx(
|
|
4930
|
-
g ===
|
|
5020
|
+
g < r.length - 1 && /* @__PURE__ */ n.jsx(Ne, {}),
|
|
5021
|
+
g === J && /* @__PURE__ */ n.jsx("div", { ref: C, className: "h-1" })
|
|
4931
5022
|
]
|
|
4932
5023
|
},
|
|
4933
5024
|
`${f.id}-${f.type}-${g}`
|
|
4934
5025
|
)),
|
|
4935
|
-
u && /* @__PURE__ */ n.jsx("li", { className: "flex flex-col items-center justify-center space-y-4 text-center", children: /* @__PURE__ */ n.jsx(
|
|
5026
|
+
u && /* @__PURE__ */ n.jsx("li", { className: "flex flex-col items-center justify-center space-y-4 text-center", children: /* @__PURE__ */ n.jsx(mn, { size: "md" }) })
|
|
4936
5027
|
] }),
|
|
4937
5028
|
/* @__PURE__ */ n.jsx("div", { ref: A, className: "h-1" })
|
|
4938
|
-
] }) }) }) }) :
|
|
4939
|
-
|
|
5029
|
+
] }) }) }) }) : a !== "following" ? /* @__PURE__ */ n.jsx("div", { className: "mt-[24vh]", children: /* @__PURE__ */ n.jsx(
|
|
5030
|
+
kn,
|
|
4940
5031
|
{
|
|
4941
5032
|
description: "Explore other topics for more content.",
|
|
4942
5033
|
title: "Nothing here yet",
|
|
4943
|
-
children: /* @__PURE__ */ n.jsx(
|
|
5034
|
+
children: /* @__PURE__ */ n.jsx(Nn, {})
|
|
4944
5035
|
}
|
|
4945
5036
|
) }) : /* @__PURE__ */ n.jsx("div", { className: "mt-[24vh]", children: /* @__PURE__ */ n.jsx(
|
|
4946
|
-
|
|
5037
|
+
kn,
|
|
4947
5038
|
{
|
|
4948
|
-
actions:
|
|
5039
|
+
actions: q ? /* @__PURE__ */ n.jsx($, { onClick: () => h("/explore"), children: "Find accounts to follow →" }) : /* @__PURE__ */ n.jsx($, { asChild: !0, children: /* @__PURE__ */ n.jsx("a", { href: "https://explore.ghost.org/social-web", rel: "noopener noreferrer", target: "_blank", children: "Find accounts to follow →" }) }),
|
|
4949
5040
|
description: "Start following publishers to see their long-form posts here.",
|
|
4950
5041
|
title: "Your Reader is empty",
|
|
4951
|
-
children: /* @__PURE__ */ n.jsx(
|
|
5042
|
+
children: /* @__PURE__ */ n.jsx(Nn, {})
|
|
4952
5043
|
}
|
|
4953
5044
|
) }) }) }),
|
|
4954
5045
|
/* @__PURE__ */ n.jsx(
|
|
4955
|
-
|
|
5046
|
+
fe,
|
|
4956
5047
|
{
|
|
4957
5048
|
open: o,
|
|
4958
5049
|
onOpenChange: (f) => {
|
|
4959
|
-
f || (v ? p() : h("/reader")),
|
|
5050
|
+
f || (v ? p() : h("/reader")), c(f);
|
|
4960
5051
|
},
|
|
4961
|
-
children: /* @__PURE__ */ n.jsxs(
|
|
4962
|
-
/* @__PURE__ */ n.jsxs(
|
|
4963
|
-
/* @__PURE__ */ n.jsx(
|
|
4964
|
-
/* @__PURE__ */ n.jsx(
|
|
5052
|
+
children: /* @__PURE__ */ n.jsxs(be, { className: "inset-y-3 h-[calc(100vh-24px)] w-screen max-w-[calc(100vw-24px)] !animate-none p-0 focus:outline-none dark:bg-gray-950", children: [
|
|
5053
|
+
/* @__PURE__ */ n.jsxs(xe, { className: "hidden", children: [
|
|
5054
|
+
/* @__PURE__ */ n.jsx(ve, { children: "Reader" }),
|
|
5055
|
+
/* @__PURE__ */ n.jsx(ye, { children: "Ghost reader for long form articles" })
|
|
4965
5056
|
] }),
|
|
4966
|
-
l.postId && /* @__PURE__ */ n.jsx(
|
|
5057
|
+
l.postId && /* @__PURE__ */ n.jsx(Ft, { postId: l.postId, onClose: () => {
|
|
4967
5058
|
v ? p() : h("/reader");
|
|
4968
5059
|
} })
|
|
4969
5060
|
] })
|
|
4970
5061
|
}
|
|
4971
5062
|
)
|
|
4972
5063
|
] });
|
|
4973
|
-
},
|
|
4974
|
-
const [
|
|
4975
|
-
if (
|
|
4976
|
-
return /* @__PURE__ */ n.jsx(
|
|
4977
|
-
const l =
|
|
5064
|
+
}, $t = () => {
|
|
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
|
+
if (s && _n(s) && !c)
|
|
5067
|
+
return /* @__PURE__ */ n.jsx(ze, { errorCode: s.code, statusCode: s.statusCode });
|
|
5068
|
+
const l = c ? [] : (u == null ? void 0 : u.pages.flatMap((I) => I.posts)) ?? Array.from({ length: 5 }, (I, R) => ({ id: `placeholder-${R}`, object: {} }));
|
|
4978
5069
|
return /* @__PURE__ */ n.jsx(
|
|
4979
|
-
|
|
5070
|
+
Lt,
|
|
4980
5071
|
{
|
|
4981
5072
|
activities: l,
|
|
4982
|
-
currentTopic:
|
|
5073
|
+
currentTopic: t,
|
|
4983
5074
|
fetchNextPage: h,
|
|
4984
5075
|
hasNextPage: v,
|
|
4985
5076
|
isFetchingNextPage: p,
|
|
@@ -4989,6 +5080,6 @@ a.kg-cta-button {
|
|
|
4989
5080
|
);
|
|
4990
5081
|
};
|
|
4991
5082
|
export {
|
|
4992
|
-
|
|
5083
|
+
$t as default
|
|
4993
5084
|
};
|
|
4994
|
-
//# sourceMappingURL=index-
|
|
5085
|
+
//# sourceMappingURL=index-BurflorF.mjs.map
|