@prose-reader/react-reader 1.240.0 → 1.242.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/annotations/useReaderWithAnnotations.d.ts +10 -9
- package/dist/context/useReader.d.ts +10 -9
- package/dist/index.js +227 -225
- package/dist/index.js.map +1 -1
- package/dist/index.umd.cjs +1 -1
- package/dist/index.umd.cjs.map +1 -1
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -1,26 +1,26 @@
|
|
|
1
1
|
import { jsx as n, jsxs as s, Fragment as oe } from "react/jsx-runtime";
|
|
2
|
-
import * as
|
|
3
|
-
import Me, { createContext as Le, memo as m, useMemo as ke, useEffect as F, useContext as
|
|
4
|
-
import { signal as de, useSignalState as Ie, useConstant as Se, useLiveRef as Ne, useSubscribe as
|
|
5
|
-
import { Subject as he, tap as ue, map as
|
|
6
|
-
import { IconButton as
|
|
7
|
-
import { LuX as Xe, LuNotebookPen as te, LuBookmark as Je, LuArrowBigRight as en, LuArrowBigLeft as nn, LuChevronDown as tn, LuCircleHelp as on, LuTableOfContents as rn, LuSearch as an, LuGalleryHorizontal as sn, LuCircleCheck as
|
|
2
|
+
import * as z from "react";
|
|
3
|
+
import Me, { createContext as Le, memo as m, useMemo as ke, useEffect as F, useContext as $e, useState as S, useLayoutEffect as _e, useCallback as N } from "react";
|
|
4
|
+
import { signal as de, useSignalState as Ie, useConstant as Se, useLiveRef as Ne, useSubscribe as D, useObserve as f, isDefined as ye, useSignalValue as He } from "reactjrx";
|
|
5
|
+
import { Subject as he, tap as ue, map as E, filter as J, switchMap as O, EMPTY as le, of as ee, withLatestFrom as We, NEVER as re, startWith as Fe, distinctUntilChanged as ge, throttleTime as je, first as Te, combineLatest as Ve, finalize as Re, mergeMap as Ge, skip as Pe, merge as we, timer as Ae, BehaviorSubject as Ye } from "rxjs";
|
|
6
|
+
import { IconButton as C, Portal as pe, Dialog as I, List as T, Link as me, Stack as k, Text as g, Tabs as A, Button as j, Presence as ne, Box as w, createToaster as Ue, Toaster as qe, Toast as M, Spinner as Qe, Heading as ae, HStack as P, Kbd as Ce, Popover as L, Progress as H, chakra as Ze, Collapsible as se, Input as Ke } from "@chakra-ui/react";
|
|
7
|
+
import { LuX as Xe, LuNotebookPen as te, LuBookmark as Je, LuArrowBigRight as en, LuArrowBigLeft as nn, LuChevronDown as tn, LuCircleHelp as on, LuTableOfContents as rn, LuSearch as an, LuGalleryHorizontal as sn, LuCircleCheck as ve } from "react-icons/lu";
|
|
8
8
|
import { createPortal as ln } from "react-dom";
|
|
9
9
|
import { isPositionInArea as cn } from "@prose-reader/enhancer-gestures";
|
|
10
|
-
import { isShallowEqual as dn, observeIntersection as hn, isHtmlTagElement as un } from "@prose-reader/core";
|
|
11
|
-
import { BsBookmarks as
|
|
12
|
-
import { RiGalleryView2 as
|
|
13
|
-
import { RxDoubleArrowUp as
|
|
10
|
+
import { isShallowEqual as dn, observeIntersection as hn, isHtmlTagElement as un, watchKeys as gn } from "@prose-reader/core";
|
|
11
|
+
import { BsBookmarks as pn } from "react-icons/bs";
|
|
12
|
+
import { RiGalleryView2 as mn } from "react-icons/ri";
|
|
13
|
+
import { RxDoubleArrowUp as fn, RxDoubleArrowLeft as bn, RxDoubleArrowDown as xn, RxDoubleArrowRight as Cn } from "react-icons/rx";
|
|
14
14
|
import { HiOutlineInformationCircle as vn } from "react-icons/hi";
|
|
15
|
-
import
|
|
15
|
+
import kn from "rc-slider";
|
|
16
16
|
import "rc-slider/assets/index.css";
|
|
17
|
-
import { IoIosArrowBack as
|
|
18
|
-
import { MdFullscreenExit as
|
|
17
|
+
import { IoIosArrowBack as In, IoMdMore as Sn } from "react-icons/io";
|
|
18
|
+
import { MdFullscreenExit as yn, MdFullscreen as Tn } from "react-icons/md";
|
|
19
19
|
const Oe = Le({
|
|
20
20
|
reader: void 0,
|
|
21
21
|
quickMenuSignal: de({ default: !1 }),
|
|
22
22
|
notificationsSubject: new he()
|
|
23
|
-
}),
|
|
23
|
+
}), jt = m(
|
|
24
24
|
({
|
|
25
25
|
children: e,
|
|
26
26
|
reader: t,
|
|
@@ -43,14 +43,14 @@ const Oe = Le({
|
|
|
43
43
|
);
|
|
44
44
|
return F(() => {
|
|
45
45
|
r.setValue(o);
|
|
46
|
-
}, [o, r]),
|
|
46
|
+
}, [o, r]), D(
|
|
47
47
|
() => r.pipe(ue(l.current)),
|
|
48
48
|
[r, l]
|
|
49
49
|
), /* @__PURE__ */ n(Oe.Provider, { value: c, children: e });
|
|
50
50
|
}
|
|
51
|
-
),
|
|
52
|
-
return /* @__PURE__ */ n(
|
|
53
|
-
}), V =
|
|
51
|
+
), Rn = z.forwardRef(function(t, o) {
|
|
52
|
+
return /* @__PURE__ */ n(C, { variant: "ghost", "aria-label": "Close", ref: o, ...t, children: t.children ?? /* @__PURE__ */ n(Xe, {}) });
|
|
53
|
+
}), V = z.forwardRef(function(t, o) {
|
|
54
54
|
const {
|
|
55
55
|
children: i,
|
|
56
56
|
portalled: r = !0,
|
|
@@ -62,7 +62,7 @@ const Oe = Le({
|
|
|
62
62
|
l && /* @__PURE__ */ n(I.Backdrop, {}),
|
|
63
63
|
/* @__PURE__ */ n(I.Positioner, { children: /* @__PURE__ */ n(I.Content, { ref: o, ...c, asChild: !1, children: i }) })
|
|
64
64
|
] });
|
|
65
|
-
}), G =
|
|
65
|
+
}), G = z.forwardRef(function(t, o) {
|
|
66
66
|
return /* @__PURE__ */ n(
|
|
67
67
|
I.CloseTrigger,
|
|
68
68
|
{
|
|
@@ -71,33 +71,33 @@ const Oe = Le({
|
|
|
71
71
|
insetEnd: "2",
|
|
72
72
|
...t,
|
|
73
73
|
asChild: !0,
|
|
74
|
-
children: /* @__PURE__ */ n(
|
|
74
|
+
children: /* @__PURE__ */ n(Rn, { size: "sm", ref: o, children: t.children })
|
|
75
75
|
}
|
|
76
76
|
);
|
|
77
77
|
}), Y = I.Root, U = I.Footer, q = I.Header, Q = I.Body;
|
|
78
78
|
I.Backdrop;
|
|
79
|
-
const
|
|
79
|
+
const Z = I.Title;
|
|
80
80
|
I.Description;
|
|
81
81
|
I.Trigger;
|
|
82
|
-
const
|
|
82
|
+
const K = I.ActionTrigger, X = () => $e(Oe), p = () => {
|
|
83
83
|
const { reader: e } = X();
|
|
84
84
|
return e;
|
|
85
|
-
},
|
|
85
|
+
}, ze = (e) => !!e && "__PROSE_READER_ENHANCER_SEARCH" in e, W = (e) => !!e && "__PROSE_READER_ENHANCER_ANNOTATIONS" in e, De = (e) => !!e && "__PROSE_READER_ENHANCER_GALLERY" in e, Pn = (e) => {
|
|
86
86
|
const t = p(), o = W(t) ? t : void 0;
|
|
87
87
|
return { data: f(
|
|
88
88
|
() => o?.annotations.annotations$.pipe(
|
|
89
|
-
|
|
89
|
+
E((r) => r.find((a) => a.id === e)),
|
|
90
90
|
J(ye),
|
|
91
91
|
O((r) => o.locateResource(r))
|
|
92
92
|
),
|
|
93
93
|
[o]
|
|
94
94
|
) };
|
|
95
|
-
},
|
|
95
|
+
}, Ee = ({
|
|
96
96
|
id: e,
|
|
97
97
|
onNavigate: t,
|
|
98
98
|
allowLeftIcon: o = !0
|
|
99
99
|
}) => {
|
|
100
|
-
const i = p(), { data: r } =
|
|
100
|
+
const i = p(), { data: r } = Pn(e), a = r?.meta.range?.toString() || r?.meta.node?.textContent;
|
|
101
101
|
return /* @__PURE__ */ n(T.Item, { children: /* @__PURE__ */ s(
|
|
102
102
|
me,
|
|
103
103
|
{
|
|
@@ -135,32 +135,32 @@ const Z = I.ActionTrigger, X = () => _e(Oe), p = () => {
|
|
|
135
135
|
),
|
|
136
136
|
[t]
|
|
137
137
|
) };
|
|
138
|
-
},
|
|
138
|
+
}, wn = () => {
|
|
139
139
|
const { data: e } = ie();
|
|
140
140
|
return {
|
|
141
141
|
data: e?.filter((t) => t.meta.isCfiRange)
|
|
142
142
|
};
|
|
143
|
-
},
|
|
144
|
-
const { data: t } =
|
|
143
|
+
}, An = ({ onNavigate: e }) => {
|
|
144
|
+
const { data: t } = wn();
|
|
145
145
|
return /* @__PURE__ */ n(T.Root, { overflowY: "auto", gap: 3, pt: 4, variant: "plain", children: t?.map((o) => /* @__PURE__ */ n(
|
|
146
|
-
|
|
146
|
+
Ee,
|
|
147
147
|
{
|
|
148
148
|
id: o.resource.id,
|
|
149
149
|
onNavigate: e
|
|
150
150
|
},
|
|
151
151
|
o.resource.id
|
|
152
152
|
)) });
|
|
153
|
-
},
|
|
153
|
+
}, On = () => {
|
|
154
154
|
const { data: e } = ie();
|
|
155
155
|
return {
|
|
156
156
|
data: e?.filter(
|
|
157
157
|
(t) => !t.meta.isCfiRange && !t.resource.notes
|
|
158
158
|
)
|
|
159
159
|
};
|
|
160
|
-
},
|
|
161
|
-
const { data: t } =
|
|
160
|
+
}, zn = ({ onNavigate: e }) => {
|
|
161
|
+
const { data: t } = On();
|
|
162
162
|
return /* @__PURE__ */ n(T.Root, { overflowY: "auto", gap: 3, pt: 4, variant: "plain", children: t?.map((o) => /* @__PURE__ */ n(
|
|
163
|
-
|
|
163
|
+
Ee,
|
|
164
164
|
{
|
|
165
165
|
id: o.resource.id,
|
|
166
166
|
onNavigate: e,
|
|
@@ -191,8 +191,8 @@ const Z = I.ActionTrigger, X = () => _e(Oe), p = () => {
|
|
|
191
191
|
] }),
|
|
192
192
|
/* @__PURE__ */ n(A.Indicator, {})
|
|
193
193
|
] }),
|
|
194
|
-
/* @__PURE__ */ n(A.Content, { value: "bookmarks", children: /* @__PURE__ */ n(
|
|
195
|
-
/* @__PURE__ */ n(A.Content, { value: "annotations", children: /* @__PURE__ */ n(
|
|
194
|
+
/* @__PURE__ */ n(A.Content, { value: "bookmarks", children: /* @__PURE__ */ n(zn, { onNavigate: e }) }),
|
|
195
|
+
/* @__PURE__ */ n(A.Content, { value: "annotations", children: /* @__PURE__ */ n(An, { onNavigate: e }) })
|
|
196
196
|
]
|
|
197
197
|
}
|
|
198
198
|
);
|
|
@@ -212,7 +212,7 @@ const Z = I.ActionTrigger, X = () => _e(Oe), p = () => {
|
|
|
212
212
|
size: { mdDown: "full", md: "lg" },
|
|
213
213
|
scrollBehavior: "inside",
|
|
214
214
|
children: /* @__PURE__ */ s(V, { height: "100%", children: [
|
|
215
|
-
/* @__PURE__ */ n(q, { children: /* @__PURE__ */ n(
|
|
215
|
+
/* @__PURE__ */ n(q, { children: /* @__PURE__ */ n(Z, { children: "Annotations" }) }),
|
|
216
216
|
/* @__PURE__ */ n(Q, { flex: 1, children: /* @__PURE__ */ n(
|
|
217
217
|
Dn,
|
|
218
218
|
{
|
|
@@ -220,41 +220,41 @@ const Z = I.ActionTrigger, X = () => _e(Oe), p = () => {
|
|
|
220
220
|
defaultTab: e
|
|
221
221
|
}
|
|
222
222
|
) }),
|
|
223
|
-
/* @__PURE__ */ n(U, { children: /* @__PURE__ */ n(
|
|
223
|
+
/* @__PURE__ */ n(U, { children: /* @__PURE__ */ n(K, { asChild: !0, children: /* @__PURE__ */ n(j, { variant: "outline", children: "Cancel" }) }) }),
|
|
224
224
|
/* @__PURE__ */ n(G, {})
|
|
225
225
|
] })
|
|
226
226
|
}
|
|
227
227
|
)
|
|
228
|
-
),
|
|
228
|
+
), Bn = m(({ children: e }) => {
|
|
229
229
|
const t = p(), o = f(() => t?.spine.element$, [t]);
|
|
230
230
|
return o ? /* @__PURE__ */ n(oe, { children: ln(e, o) }) : null;
|
|
231
|
-
}),
|
|
231
|
+
}), Mn = ({
|
|
232
232
|
absolutePageIndex: e,
|
|
233
233
|
itemIndex: t
|
|
234
234
|
}) => {
|
|
235
235
|
const o = p();
|
|
236
236
|
return {
|
|
237
237
|
spineItem: f(() => o ? t !== void 0 ? ee(o.spine.spineItemsManager.get(t)) : e !== void 0 ? o.spine.pages.observeFromAbsolutePageIndex(e).pipe(
|
|
238
|
-
|
|
238
|
+
E((r) => o.spine.spineItemsManager.get(r?.itemIndex))
|
|
239
239
|
) : le : le, [t, e, o])
|
|
240
240
|
};
|
|
241
|
-
},
|
|
241
|
+
}, Ln = ({
|
|
242
242
|
absolutePageIndex: e,
|
|
243
243
|
itemIndex: t
|
|
244
244
|
}) => {
|
|
245
|
-
const { spineItem: o } =
|
|
245
|
+
const { spineItem: o } = Mn({ absolutePageIndex: e, itemIndex: t }), i = f(
|
|
246
246
|
() => o?.isReady$ ?? ee(!1),
|
|
247
247
|
[o]
|
|
248
248
|
);
|
|
249
249
|
return { spineItem: o, isReady: i };
|
|
250
|
-
},
|
|
250
|
+
}, $n = "data-bookmark-area", _n = m(
|
|
251
251
|
({
|
|
252
252
|
absolutePageIndex: e,
|
|
253
253
|
left: t,
|
|
254
254
|
top: o,
|
|
255
255
|
width: i
|
|
256
256
|
}) => {
|
|
257
|
-
const { isReady: r } =
|
|
257
|
+
const { isReady: r } = Ln({
|
|
258
258
|
absolutePageIndex: e
|
|
259
259
|
}), { data: a } = ie(), l = a?.find(
|
|
260
260
|
(h) => h?.meta?.absolutePageIndex === e && h.meta.range === void 0
|
|
@@ -269,9 +269,9 @@ const Z = I.ActionTrigger, X = () => _e(Oe), p = () => {
|
|
|
269
269
|
animationName: { _open: "fade-in", _closed: "fade-out" },
|
|
270
270
|
animationDuration: "moderate",
|
|
271
271
|
children: /* @__PURE__ */ n(
|
|
272
|
-
|
|
272
|
+
w,
|
|
273
273
|
{
|
|
274
|
-
"data-bookmark-area":
|
|
274
|
+
"data-bookmark-area": $n,
|
|
275
275
|
position: "absolute",
|
|
276
276
|
left: t + i,
|
|
277
277
|
transform: "translateX(-100%)",
|
|
@@ -294,9 +294,9 @@ const Z = I.ActionTrigger, X = () => _e(Oe), p = () => {
|
|
|
294
294
|
}
|
|
295
295
|
);
|
|
296
296
|
}
|
|
297
|
-
),
|
|
297
|
+
), Nn = m(() => {
|
|
298
298
|
const e = p(), t = f(() => e?.layoutInfo$, [e]);
|
|
299
|
-
return /* @__PURE__ */ n(
|
|
299
|
+
return /* @__PURE__ */ n(Bn, { children: t?.pages.map(
|
|
300
300
|
({ absoluteLayout: { left: o, top: i, width: r } }, a) => /* @__PURE__ */ n(
|
|
301
301
|
_n,
|
|
302
302
|
{
|
|
@@ -308,16 +308,16 @@ const Z = I.ActionTrigger, X = () => _e(Oe), p = () => {
|
|
|
308
308
|
a
|
|
309
309
|
)
|
|
310
310
|
) });
|
|
311
|
-
}),
|
|
311
|
+
}), Hn = () => {
|
|
312
312
|
const e = p();
|
|
313
313
|
return W(e) ? e : void 0;
|
|
314
|
-
},
|
|
315
|
-
const e =
|
|
314
|
+
}, Wn = () => {
|
|
315
|
+
const e = Hn(), { data: t } = ie();
|
|
316
316
|
F(() => e ? e.gestures.hooks.register(
|
|
317
317
|
"beforeTapGesture",
|
|
318
318
|
({ event$: i }) => i.pipe(
|
|
319
319
|
We(e?.annotations.candidates$),
|
|
320
|
-
|
|
320
|
+
E(([r, a]) => {
|
|
321
321
|
if (!r.page) return !0;
|
|
322
322
|
const {
|
|
323
323
|
spineItem: l,
|
|
@@ -341,7 +341,7 @@ const Z = I.ActionTrigger, X = () => _e(Oe), p = () => {
|
|
|
341
341
|
);
|
|
342
342
|
if (!u) return !0;
|
|
343
343
|
const x = t?.find(
|
|
344
|
-
(
|
|
344
|
+
(R) => R?.meta?.absolutePageIndex === u.absolutePageIndex && R.meta.range === void 0
|
|
345
345
|
);
|
|
346
346
|
if (x)
|
|
347
347
|
return e?.annotations.delete(x.resource.id), !1;
|
|
@@ -357,7 +357,7 @@ const Z = I.ActionTrigger, X = () => _e(Oe), p = () => {
|
|
|
357
357
|
}, ce = Ue({
|
|
358
358
|
placement: "bottom-end",
|
|
359
359
|
pauseOnPageIdle: !0
|
|
360
|
-
}),
|
|
360
|
+
}), Fn = () => /* @__PURE__ */ n(pe, { children: /* @__PURE__ */ n(qe, { toaster: ce, insetInline: { mdDown: "4" }, children: (e) => /* @__PURE__ */ s(M.Root, { width: { md: "sm" }, children: [
|
|
361
361
|
e.type === "loading" ? /* @__PURE__ */ n(Qe, { size: "sm", color: "blue.solid" }) : /* @__PURE__ */ n(M.Indicator, {}),
|
|
362
362
|
/* @__PURE__ */ s(k, { gap: "1", flex: "1", maxWidth: "100%", children: [
|
|
363
363
|
e.title && /* @__PURE__ */ n(M.Title, { children: e.title }),
|
|
@@ -365,7 +365,7 @@ const Z = I.ActionTrigger, X = () => _e(Oe), p = () => {
|
|
|
365
365
|
] }),
|
|
366
366
|
e.action && /* @__PURE__ */ n(M.ActionTrigger, { children: e.action.label }),
|
|
367
367
|
e.meta?.closable && /* @__PURE__ */ n(M.CloseTrigger, {})
|
|
368
|
-
] }) }) }),
|
|
368
|
+
] }) }) }), jn = {
|
|
369
369
|
x: 0,
|
|
370
370
|
y: 0,
|
|
371
371
|
width: 0,
|
|
@@ -375,8 +375,8 @@ const Z = I.ActionTrigger, X = () => _e(Oe), p = () => {
|
|
|
375
375
|
bottom: 0,
|
|
376
376
|
right: 0
|
|
377
377
|
};
|
|
378
|
-
function
|
|
379
|
-
const [e, t] = S(null), [o, i] = S(
|
|
378
|
+
function Vn() {
|
|
379
|
+
const [e, t] = S(null), [o, i] = S(jn), r = ke(
|
|
380
380
|
() => new ResizeObserver((a) => {
|
|
381
381
|
if (a[0]) {
|
|
382
382
|
const { x: l, y: c, width: h, height: d, top: b, left: u, bottom: x, right: y } = a[0].contentRect;
|
|
@@ -385,23 +385,23 @@ function jn() {
|
|
|
385
385
|
}),
|
|
386
386
|
[]
|
|
387
387
|
);
|
|
388
|
-
return
|
|
388
|
+
return _e(() => {
|
|
389
389
|
if (e)
|
|
390
390
|
return r.observe(e), () => {
|
|
391
391
|
r.disconnect();
|
|
392
392
|
};
|
|
393
393
|
}, [e, r]), [t, o, e];
|
|
394
394
|
}
|
|
395
|
-
const
|
|
396
|
-
const i = p(), r =
|
|
397
|
-
|
|
395
|
+
const Gn = (e, t, o) => {
|
|
396
|
+
const i = p(), r = De(i) ? i : void 0;
|
|
397
|
+
D(() => {
|
|
398
398
|
if (!r || !e) return re;
|
|
399
399
|
const a = t.layout.layout$.pipe(
|
|
400
400
|
Fe(t.layout.layoutInfo),
|
|
401
401
|
ge(dn)
|
|
402
402
|
), l = hn(
|
|
403
403
|
e
|
|
404
|
-
).pipe(
|
|
404
|
+
).pipe(E((c) => c.some((h) => h.isIntersecting)));
|
|
405
405
|
return a.pipe(
|
|
406
406
|
je(100, void 0, { trailing: !0 }),
|
|
407
407
|
O(() => l.pipe(
|
|
@@ -419,16 +419,16 @@ const Vn = (e, t, o) => {
|
|
|
419
419
|
))
|
|
420
420
|
);
|
|
421
421
|
}, [r, t, o, e]);
|
|
422
|
-
},
|
|
422
|
+
}, Yn = m(
|
|
423
423
|
({ item: e, onNavigated: t }) => {
|
|
424
|
-
const [o, i, r] =
|
|
425
|
-
|
|
424
|
+
const [o, i, r] = Vn(), a = p();
|
|
425
|
+
Gn(r, e, i);
|
|
426
426
|
const l = f(
|
|
427
427
|
() => a?.locateResource(e, { mode: "shallow" }),
|
|
428
428
|
[a, e]
|
|
429
429
|
);
|
|
430
430
|
return /* @__PURE__ */ s(
|
|
431
|
-
|
|
431
|
+
w,
|
|
432
432
|
{
|
|
433
433
|
width: "100%",
|
|
434
434
|
aspectRatio: "2/3",
|
|
@@ -444,7 +444,7 @@ const Vn = (e, t, o) => {
|
|
|
444
444
|
},
|
|
445
445
|
children: [
|
|
446
446
|
/* @__PURE__ */ n(
|
|
447
|
-
|
|
447
|
+
w,
|
|
448
448
|
{
|
|
449
449
|
height: "100%",
|
|
450
450
|
width: "100%",
|
|
@@ -474,7 +474,7 @@ const Vn = (e, t, o) => {
|
|
|
474
474
|
}
|
|
475
475
|
);
|
|
476
476
|
}
|
|
477
|
-
),
|
|
477
|
+
), Un = m(
|
|
478
478
|
({ open: e, setOpen: t }) => {
|
|
479
479
|
const o = p(), i = f(() => o?.spineItemsManager.items$, [o]);
|
|
480
480
|
return /* @__PURE__ */ n(
|
|
@@ -487,9 +487,9 @@ const Vn = (e, t, o) => {
|
|
|
487
487
|
size: { mdDown: "full", md: "lg" },
|
|
488
488
|
scrollBehavior: "inside",
|
|
489
489
|
children: /* @__PURE__ */ s(V, { height: "100%", children: [
|
|
490
|
-
/* @__PURE__ */ n(q, { children: /* @__PURE__ */ n(
|
|
490
|
+
/* @__PURE__ */ n(q, { children: /* @__PURE__ */ n(Z, { children: "Gallery" }) }),
|
|
491
491
|
/* @__PURE__ */ n(Q, { children: /* @__PURE__ */ n(
|
|
492
|
-
|
|
492
|
+
w,
|
|
493
493
|
{
|
|
494
494
|
gridTemplateColumns: [
|
|
495
495
|
"repeat(2, minmax(0, 1fr))",
|
|
@@ -500,7 +500,7 @@ const Vn = (e, t, o) => {
|
|
|
500
500
|
pt: 2,
|
|
501
501
|
"data-grid": !0,
|
|
502
502
|
children: i?.map((r) => /* @__PURE__ */ n(
|
|
503
|
-
|
|
503
|
+
Yn,
|
|
504
504
|
{
|
|
505
505
|
item: r,
|
|
506
506
|
onNavigated: () => {
|
|
@@ -511,13 +511,13 @@ const Vn = (e, t, o) => {
|
|
|
511
511
|
))
|
|
512
512
|
}
|
|
513
513
|
) }),
|
|
514
|
-
/* @__PURE__ */ n(U, { children: /* @__PURE__ */ n(
|
|
514
|
+
/* @__PURE__ */ n(U, { children: /* @__PURE__ */ n(K, { asChild: !0, children: /* @__PURE__ */ n(j, { variant: "outline", children: "Cancel" }) }) }),
|
|
515
515
|
/* @__PURE__ */ n(G, {})
|
|
516
516
|
] })
|
|
517
517
|
}
|
|
518
518
|
);
|
|
519
519
|
}
|
|
520
|
-
),
|
|
520
|
+
), qn = "@prose-reader/react-reader", Qn = "1.241.0", Zn = m(
|
|
521
521
|
({ open: e, setOpen: t }) => /* @__PURE__ */ n(
|
|
522
522
|
Y,
|
|
523
523
|
{
|
|
@@ -528,7 +528,7 @@ const Vn = (e, t, o) => {
|
|
|
528
528
|
size: { mdDown: "full", md: "lg" },
|
|
529
529
|
scrollBehavior: "inside",
|
|
530
530
|
children: /* @__PURE__ */ s(V, { children: [
|
|
531
|
-
/* @__PURE__ */ n(q, { children: /* @__PURE__ */ n(
|
|
531
|
+
/* @__PURE__ */ n(q, { children: /* @__PURE__ */ n(Z, { children: "Help" }) }),
|
|
532
532
|
/* @__PURE__ */ s(
|
|
533
533
|
Q,
|
|
534
534
|
{
|
|
@@ -540,42 +540,42 @@ const Vn = (e, t, o) => {
|
|
|
540
540
|
children: [
|
|
541
541
|
/* @__PURE__ */ s(k, { children: [
|
|
542
542
|
/* @__PURE__ */ n(ae, { mb: 2, as: "h3", size: "lg", children: "Shortcuts" }),
|
|
543
|
-
/* @__PURE__ */ s(
|
|
544
|
-
/* @__PURE__ */ n(
|
|
543
|
+
/* @__PURE__ */ s(P, { mb: 1, children: [
|
|
544
|
+
/* @__PURE__ */ n(Ce, { children: /* @__PURE__ */ n(en, {}) }),
|
|
545
545
|
" ",
|
|
546
546
|
/* @__PURE__ */ n(g, { children: "Navigate to right page" })
|
|
547
547
|
] }),
|
|
548
|
-
/* @__PURE__ */ s(
|
|
549
|
-
/* @__PURE__ */ n(
|
|
548
|
+
/* @__PURE__ */ s(P, { mb: 1, children: [
|
|
549
|
+
/* @__PURE__ */ n(Ce, { children: /* @__PURE__ */ n(nn, {}) }),
|
|
550
550
|
" ",
|
|
551
551
|
/* @__PURE__ */ n(g, { children: "Navigate to left page" })
|
|
552
552
|
] })
|
|
553
553
|
] }),
|
|
554
554
|
/* @__PURE__ */ s(k, { children: [
|
|
555
555
|
/* @__PURE__ */ n(ae, { mb: 2, as: "h3", size: "lg", children: "Bookmarks" }),
|
|
556
|
-
/* @__PURE__ */ n(
|
|
556
|
+
/* @__PURE__ */ n(P, { mb: 1, children: /* @__PURE__ */ n(g, { children: "Tap on the top right corner of a page bookmark it" }) })
|
|
557
557
|
] }),
|
|
558
558
|
/* @__PURE__ */ s(k, { children: [
|
|
559
559
|
/* @__PURE__ */ n(ae, { mb: 2, as: "h3", size: "lg", children: "About" }),
|
|
560
560
|
/* @__PURE__ */ s(g, { children: [
|
|
561
|
-
|
|
561
|
+
qn,
|
|
562
562
|
" version: ",
|
|
563
|
-
|
|
563
|
+
Qn
|
|
564
564
|
] })
|
|
565
565
|
] })
|
|
566
566
|
]
|
|
567
567
|
}
|
|
568
568
|
),
|
|
569
|
-
/* @__PURE__ */ n(U, { children: /* @__PURE__ */ n(
|
|
569
|
+
/* @__PURE__ */ n(U, { children: /* @__PURE__ */ n(K, { asChild: !0, children: /* @__PURE__ */ n(j, { variant: "outline", children: "Cancel" }) }) }),
|
|
570
570
|
/* @__PURE__ */ n(G, {})
|
|
571
571
|
] })
|
|
572
572
|
}
|
|
573
573
|
)
|
|
574
|
-
),
|
|
574
|
+
), $ = () => {
|
|
575
575
|
const e = p();
|
|
576
576
|
return f(
|
|
577
577
|
() => e ? Ve([e.pagination.state$, e.context]).pipe(
|
|
578
|
-
|
|
578
|
+
E(([t, o]) => {
|
|
579
579
|
const i = o.manifest?.spineItems.every(
|
|
580
580
|
(r) => r.mediaType?.startsWith("image/")
|
|
581
581
|
);
|
|
@@ -588,14 +588,14 @@ const Vn = (e, t, o) => {
|
|
|
588
588
|
[e]
|
|
589
589
|
);
|
|
590
590
|
}, Kn = () => {
|
|
591
|
-
const e =
|
|
591
|
+
const e = $(), t = Math.floor(
|
|
592
592
|
(e?.percentageEstimateOfBook ?? 0) * 100
|
|
593
593
|
), o = t > 0 ? t : 1;
|
|
594
|
-
return e?.percentageEstimateOfBook === void 0 ? null : /* @__PURE__ */ n(
|
|
594
|
+
return e?.percentageEstimateOfBook === void 0 ? null : /* @__PURE__ */ n(w, { position: "absolute", right: 0, bottom: 0, p: 2, color: "black", children: /* @__PURE__ */ s(g, { fontSize: "sm", children: [
|
|
595
595
|
o,
|
|
596
596
|
" %"
|
|
597
597
|
] }) });
|
|
598
|
-
},
|
|
598
|
+
}, Xn = () => {
|
|
599
599
|
const [e, t] = S(/* @__PURE__ */ new Date());
|
|
600
600
|
return F(() => {
|
|
601
601
|
const o = setInterval(() => {
|
|
@@ -603,8 +603,8 @@ const Vn = (e, t, o) => {
|
|
|
603
603
|
}, 6e4);
|
|
604
604
|
return () => clearInterval(o);
|
|
605
605
|
}, []), e;
|
|
606
|
-
},
|
|
607
|
-
const t =
|
|
606
|
+
}, Jn = (e) => {
|
|
607
|
+
const t = Xn();
|
|
608
608
|
return /* @__PURE__ */ n(g, { fontSize: "xs", ...e, children: t.toLocaleTimeString(navigator.language, {
|
|
609
609
|
hour: "2-digit",
|
|
610
610
|
minute: "2-digit"
|
|
@@ -612,22 +612,22 @@ const Vn = (e, t, o) => {
|
|
|
612
612
|
}, fe = () => {
|
|
613
613
|
const { quickMenuSignal: e } = X();
|
|
614
614
|
return [He(e), e.setValue, e];
|
|
615
|
-
},
|
|
615
|
+
}, et = () => {
|
|
616
616
|
const [e] = fe();
|
|
617
617
|
return /* @__PURE__ */ n(
|
|
618
|
-
|
|
618
|
+
w,
|
|
619
619
|
{
|
|
620
620
|
position: "absolute",
|
|
621
621
|
left: 0,
|
|
622
622
|
bottom: 0,
|
|
623
623
|
p: 2,
|
|
624
624
|
color: e ? void 0 : "colorPalette.contrast",
|
|
625
|
-
children: /* @__PURE__ */ n(
|
|
625
|
+
children: /* @__PURE__ */ n(Jn, {})
|
|
626
626
|
}
|
|
627
627
|
);
|
|
628
|
-
},
|
|
628
|
+
}, nt = () => {
|
|
629
629
|
const e = p();
|
|
630
|
-
|
|
630
|
+
D(
|
|
631
631
|
() => e?.links$.subscribe((t) => {
|
|
632
632
|
if (t.type === "click" && un(t.target, "a")) {
|
|
633
633
|
if (!t.target.href) return;
|
|
@@ -639,34 +639,35 @@ const Vn = (e, t, o) => {
|
|
|
639
639
|
}),
|
|
640
640
|
[e]
|
|
641
641
|
);
|
|
642
|
-
},
|
|
642
|
+
}, tt = () => {
|
|
643
643
|
const e = p(), { notificationsSubject: t } = X();
|
|
644
|
-
|
|
645
|
-
() => e?.zoom.
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
|
|
644
|
+
D(
|
|
645
|
+
() => e?.zoom.state$.pipe(
|
|
646
|
+
gn(["isZooming", "currentScale"]),
|
|
647
|
+
O(({ isZooming: o, currentScale: i }) => {
|
|
648
|
+
if (!o || i < 1) return le;
|
|
649
|
+
const r = new he();
|
|
649
650
|
return t.next({
|
|
650
651
|
key: "zoom",
|
|
651
652
|
title: "Zooming",
|
|
652
653
|
duration: 999999,
|
|
653
|
-
abort:
|
|
654
|
+
abort: r
|
|
654
655
|
}), re.pipe(
|
|
655
|
-
|
|
656
|
-
|
|
656
|
+
Re(() => {
|
|
657
|
+
r.next(), r.complete();
|
|
657
658
|
})
|
|
658
659
|
);
|
|
659
660
|
})
|
|
660
661
|
),
|
|
661
662
|
[e]
|
|
662
663
|
);
|
|
663
|
-
},
|
|
664
|
+
}, ot = () => {
|
|
664
665
|
const e = p(), { notificationsSubject: t } = X();
|
|
665
|
-
|
|
666
|
+
D(
|
|
666
667
|
() => e?.settings.values$.pipe(
|
|
667
|
-
|
|
668
|
+
E(({ fontScale: o }) => o),
|
|
668
669
|
ge(),
|
|
669
|
-
|
|
670
|
+
Pe(1),
|
|
670
671
|
ue((o) => {
|
|
671
672
|
t.next({
|
|
672
673
|
key: "fontScaleChange",
|
|
@@ -677,9 +678,9 @@ const Vn = (e, t, o) => {
|
|
|
677
678
|
),
|
|
678
679
|
[e, t]
|
|
679
680
|
);
|
|
680
|
-
},
|
|
681
|
+
}, rt = () => {
|
|
681
682
|
const { notificationsSubject: e } = X();
|
|
682
|
-
|
|
683
|
+
ot(), tt(), D(
|
|
683
684
|
() => e.pipe(
|
|
684
685
|
J(ye),
|
|
685
686
|
Ge((t) => {
|
|
@@ -688,16 +689,16 @@ const Vn = (e, t, o) => {
|
|
|
688
689
|
description: t.description,
|
|
689
690
|
duration: o
|
|
690
691
|
}), r = e.pipe(
|
|
691
|
-
|
|
692
|
+
Pe(1),
|
|
692
693
|
J((a) => !!t.key && a?.key === t.key)
|
|
693
694
|
);
|
|
694
|
-
return
|
|
695
|
+
return we(
|
|
695
696
|
Ae(o),
|
|
696
697
|
t.abort ?? re,
|
|
697
698
|
r
|
|
698
699
|
).pipe(
|
|
699
700
|
Te(),
|
|
700
|
-
|
|
701
|
+
Re(() => {
|
|
701
702
|
ce.dismiss(i);
|
|
702
703
|
})
|
|
703
704
|
);
|
|
@@ -705,7 +706,7 @@ const Vn = (e, t, o) => {
|
|
|
705
706
|
),
|
|
706
707
|
[e]
|
|
707
708
|
);
|
|
708
|
-
},
|
|
709
|
+
}, it = z.forwardRef(
|
|
709
710
|
function(t, o) {
|
|
710
711
|
const {
|
|
711
712
|
showArrow: i,
|
|
@@ -741,10 +742,10 @@ const Vn = (e, t, o) => {
|
|
|
741
742
|
}
|
|
742
743
|
);
|
|
743
744
|
}
|
|
744
|
-
),
|
|
745
|
+
), at = z.forwardRef(function(t, o) {
|
|
745
746
|
const { children: i, ...r } = t;
|
|
746
|
-
return /* @__PURE__ */ n(
|
|
747
|
-
|
|
747
|
+
return /* @__PURE__ */ n(it, { content: i, ...r, ref: o, children: /* @__PURE__ */ n(
|
|
748
|
+
C,
|
|
748
749
|
{
|
|
749
750
|
variant: "ghost",
|
|
750
751
|
"aria-label": "info",
|
|
@@ -753,18 +754,18 @@ const Vn = (e, t, o) => {
|
|
|
753
754
|
children: /* @__PURE__ */ n(vn, {})
|
|
754
755
|
}
|
|
755
756
|
) });
|
|
756
|
-
}),
|
|
757
|
+
}), st = z.forwardRef(function(t, o) {
|
|
757
758
|
return /* @__PURE__ */ n(H.Track, { ...t, ref: o, children: /* @__PURE__ */ n(H.Range, {}) });
|
|
758
759
|
});
|
|
759
|
-
|
|
760
|
+
z.forwardRef(function(t, o) {
|
|
760
761
|
const { children: i, info: r, ...a } = t;
|
|
761
762
|
return /* @__PURE__ */ s(H.Label, { ...a, ref: o, children: [
|
|
762
763
|
i,
|
|
763
|
-
r && /* @__PURE__ */ n(
|
|
764
|
+
r && /* @__PURE__ */ n(at, { children: r })
|
|
764
765
|
] });
|
|
765
766
|
});
|
|
766
|
-
const
|
|
767
|
-
const e =
|
|
767
|
+
const lt = H.Root, ct = H.ValueText, be = () => {
|
|
768
|
+
const e = $(), t = e?.numberOfTotalPages === 1, o = (e?.beginNumberOfPagesInSpineItem ?? 0) > 1, i = (e?.endNumberOfPagesInSpineItem ?? 0) > 1, r = (e?.hasChapters ? e?.beginPageIndexInSpineItem : e?.beginAbsolutePageIndex) ?? 0, a = (e?.hasChapters ? e?.endPageIndexInSpineItem : e?.endAbsolutePageIndex) ?? 0, [l = 0, c = 0] = [
|
|
768
769
|
r,
|
|
769
770
|
a
|
|
770
771
|
].sort((b, u) => b - u), h = e?.beginPageIndexInSpineItem !== e?.endPageIndexInSpineItem || e?.beginSpineItemIndex !== e?.endSpineItemIndex, d = e?.hasChapters ? e?.beginNumberOfPagesInSpineItem : e?.numberOfTotalPages;
|
|
@@ -779,8 +780,8 @@ const st = H.Root, lt = H.ValueText, be = () => {
|
|
|
779
780
|
leftPageIndex: l,
|
|
780
781
|
rightPageIndex: c
|
|
781
782
|
};
|
|
782
|
-
},
|
|
783
|
-
const e =
|
|
783
|
+
}, dt = () => {
|
|
784
|
+
const e = $(), {
|
|
784
785
|
hasOnlyOnePage: t,
|
|
785
786
|
leftPageIndex: o,
|
|
786
787
|
rightPageIndex: i,
|
|
@@ -788,12 +789,12 @@ const st = H.Root, lt = H.ValueText, be = () => {
|
|
|
788
789
|
beginAndEndAreDifferent: a
|
|
789
790
|
} = be(), l = Math.round((e?.percentageEstimateOfBook ?? 0) * 100), c = (d) => d?.subChapter ? `${d.title} / ${c(d.subChapter)}` : d?.title || "", h = c(e?.beginChapterInfo);
|
|
790
791
|
return /* @__PURE__ */ s(k, { alignItems: "center", gap: 1, maxW: "100%", overflow: "auto", children: [
|
|
791
|
-
/* @__PURE__ */ n(
|
|
792
|
-
/* @__PURE__ */ n(
|
|
793
|
-
/* @__PURE__ */ n(
|
|
792
|
+
/* @__PURE__ */ n(lt, { value: l, size: "xs", width: 150, children: /* @__PURE__ */ s(P, { justifyContent: "space-between", children: [
|
|
793
|
+
/* @__PURE__ */ n(st, { width: 110 }),
|
|
794
|
+
/* @__PURE__ */ n(ct, { children: `${l}%` })
|
|
794
795
|
] }) }),
|
|
795
796
|
/* @__PURE__ */ n(g, { truncate: !0, maxWidth: "100%", fontSize: "sm", mt: 1, children: h ? `Chapter: ${h}` : " " }),
|
|
796
|
-
!t && /* @__PURE__ */ s(
|
|
797
|
+
!t && /* @__PURE__ */ s(P, { children: [
|
|
797
798
|
/* @__PURE__ */ n(g, { fontSize: "xs", children: a ? `${o + 1} - ${i + 1} of ${r}` : `${o + 1} of ${r}` }),
|
|
798
799
|
!!e?.hasChapters && /* @__PURE__ */ s(oe, { children: [
|
|
799
800
|
/* @__PURE__ */ n(g, { children: "-" }),
|
|
@@ -835,8 +836,8 @@ const st = H.Root, lt = H.ValueText, be = () => {
|
|
|
835
836
|
children: e
|
|
836
837
|
}
|
|
837
838
|
)
|
|
838
|
-
),
|
|
839
|
-
|
|
839
|
+
), ht = Ze(kn), ut = m((e) => /* @__PURE__ */ n(
|
|
840
|
+
w,
|
|
840
841
|
{
|
|
841
842
|
display: "contents",
|
|
842
843
|
css: {
|
|
@@ -845,7 +846,7 @@ const st = H.Root, lt = H.ValueText, be = () => {
|
|
|
845
846
|
"--color-solid": "colors.colorPalette.solid"
|
|
846
847
|
},
|
|
847
848
|
children: /* @__PURE__ */ n(
|
|
848
|
-
|
|
849
|
+
ht,
|
|
849
850
|
{
|
|
850
851
|
keyboard: !1,
|
|
851
852
|
style: {
|
|
@@ -889,8 +890,8 @@ const st = H.Root, lt = H.ValueText, be = () => {
|
|
|
889
890
|
}
|
|
890
891
|
)
|
|
891
892
|
}
|
|
892
|
-
)),
|
|
893
|
-
const t =
|
|
893
|
+
)), gt = () => {
|
|
894
|
+
const t = $()?.isUsingSpread, { beginPageIndex: o, totalApproximatePages: i = 0 } = be(), r = t ? Math.floor((o || 0) / 2) : o, [a, l] = Ie(
|
|
894
895
|
() => de({
|
|
895
896
|
default: r || 0
|
|
896
897
|
})
|
|
@@ -906,12 +907,12 @@ const st = H.Root, lt = H.ValueText, be = () => {
|
|
|
906
907
|
min: c,
|
|
907
908
|
max: h
|
|
908
909
|
};
|
|
909
|
-
},
|
|
910
|
-
const t = p(), o =
|
|
911
|
-
(
|
|
912
|
-
const [
|
|
913
|
-
u.setValue(
|
|
914
|
-
const xe = a ? Math.floor(
|
|
910
|
+
}, pt = (e) => {
|
|
911
|
+
const t = p(), o = $(), { manifest: i } = f(() => t?.context, [t]) ?? {}, r = i?.readingDirection === "rtl", a = o?.isUsingSpread, { totalApproximatePages: l = 0, isBeginWithinChapter: c } = be(), h = 1, d = c, { value: b, valueSignal: u, min: x, max: y } = gt(), R = N(
|
|
912
|
+
(_) => {
|
|
913
|
+
const [v = 0] = Array.isArray(_) ? _ : [_];
|
|
914
|
+
u.setValue(v);
|
|
915
|
+
const xe = a ? Math.floor(v) * 2 : Math.floor(v);
|
|
915
916
|
d ? t?.navigation.goToPageOfSpineItem({
|
|
916
917
|
pageIndex: xe,
|
|
917
918
|
spineItemId: t.pagination.state.beginSpineItemIndex ?? 0,
|
|
@@ -923,30 +924,30 @@ const st = H.Root, lt = H.ValueText, be = () => {
|
|
|
923
924
|
},
|
|
924
925
|
[t, a, u, d]
|
|
925
926
|
);
|
|
926
|
-
return
|
|
927
|
+
return D(
|
|
927
928
|
() => t?.navigation.throttleLock({
|
|
928
929
|
duration: 100,
|
|
929
930
|
trigger: u.subject
|
|
930
931
|
}),
|
|
931
932
|
[t, u]
|
|
932
|
-
), l === 1 || a && l === 2 ? /* @__PURE__ */ n(
|
|
933
|
-
|
|
933
|
+
), l === 1 || a && l === 2 ? /* @__PURE__ */ n(w, { style: e.style }) : /* @__PURE__ */ n(
|
|
934
|
+
ut,
|
|
934
935
|
{
|
|
935
936
|
value: [b],
|
|
936
937
|
max: y,
|
|
937
938
|
min: x,
|
|
938
939
|
reverse: r,
|
|
939
940
|
step: h,
|
|
940
|
-
onChange:
|
|
941
|
+
onChange: R,
|
|
941
942
|
...e
|
|
942
943
|
}
|
|
943
944
|
);
|
|
944
|
-
},
|
|
945
|
+
}, mt = m(
|
|
945
946
|
({
|
|
946
947
|
open: e,
|
|
947
948
|
onItemClick: t
|
|
948
949
|
}) => {
|
|
949
|
-
const o = p(), i = f(() => o?.navigation.state$, [o]),
|
|
950
|
+
const o = p(), i = f(() => o?.navigation.state$, [o]), r = f(() => o?.settings.values$, [o]), a = f(() => o?.zoom.state$, [o]), l = r?.computedPageTurnDirection === "vertical", [c, h] = S(!0);
|
|
950
951
|
return /* @__PURE__ */ s(
|
|
951
952
|
Be,
|
|
952
953
|
{
|
|
@@ -958,7 +959,7 @@ const st = H.Root, lt = H.ValueText, be = () => {
|
|
|
958
959
|
pb: 8,
|
|
959
960
|
children: [
|
|
960
961
|
/* @__PURE__ */ s(
|
|
961
|
-
|
|
962
|
+
P,
|
|
962
963
|
{
|
|
963
964
|
flex: 1,
|
|
964
965
|
alignItems: "center",
|
|
@@ -966,7 +967,7 @@ const st = H.Root, lt = H.ValueText, be = () => {
|
|
|
966
967
|
maxWidth: "100%",
|
|
967
968
|
children: [
|
|
968
969
|
/* @__PURE__ */ n(
|
|
969
|
-
|
|
970
|
+
C,
|
|
970
971
|
{
|
|
971
972
|
"aria-label": "left",
|
|
972
973
|
size: "lg",
|
|
@@ -974,7 +975,7 @@ const st = H.Root, lt = H.ValueText, be = () => {
|
|
|
974
975
|
flexShrink: 0,
|
|
975
976
|
onClick: () => o?.navigation.goToLeftOrTopSpineItem(),
|
|
976
977
|
disabled: !i?.canGoLeftSpineItem && !i?.canGoTopSpineItem,
|
|
977
|
-
children:
|
|
978
|
+
children: l ? /* @__PURE__ */ n(fn, {}) : /* @__PURE__ */ n(bn, {})
|
|
978
979
|
}
|
|
979
980
|
),
|
|
980
981
|
/* @__PURE__ */ s(
|
|
@@ -987,9 +988,9 @@ const st = H.Root, lt = H.ValueText, be = () => {
|
|
|
987
988
|
overflow: "auto",
|
|
988
989
|
px: 4,
|
|
989
990
|
children: [
|
|
990
|
-
/* @__PURE__ */ n(
|
|
991
|
+
/* @__PURE__ */ n(dt, {}),
|
|
991
992
|
/* @__PURE__ */ n(
|
|
992
|
-
|
|
993
|
+
pt,
|
|
993
994
|
{
|
|
994
995
|
style: {
|
|
995
996
|
width: "100%",
|
|
@@ -1002,7 +1003,7 @@ const st = H.Root, lt = H.ValueText, be = () => {
|
|
|
1002
1003
|
}
|
|
1003
1004
|
),
|
|
1004
1005
|
/* @__PURE__ */ n(
|
|
1005
|
-
|
|
1006
|
+
C,
|
|
1006
1007
|
{
|
|
1007
1008
|
"aria-label": "right",
|
|
1008
1009
|
size: "lg",
|
|
@@ -1012,19 +1013,19 @@ const st = H.Root, lt = H.ValueText, be = () => {
|
|
|
1012
1013
|
onClick: () => {
|
|
1013
1014
|
o?.navigation.goToRightOrBottomSpineItem();
|
|
1014
1015
|
},
|
|
1015
|
-
children:
|
|
1016
|
+
children: l ? /* @__PURE__ */ n(xn, {}) : /* @__PURE__ */ n(Cn, {})
|
|
1016
1017
|
}
|
|
1017
1018
|
)
|
|
1018
1019
|
]
|
|
1019
1020
|
}
|
|
1020
1021
|
),
|
|
1021
|
-
/* @__PURE__ */ n(
|
|
1022
|
+
/* @__PURE__ */ n(P, { alignSelf: "stretch", alignItems: "center", justifyContent: "center", children: /* @__PURE__ */ s(
|
|
1022
1023
|
se.Root,
|
|
1023
1024
|
{
|
|
1024
|
-
open:
|
|
1025
|
+
open: c,
|
|
1025
1026
|
flex: 1,
|
|
1026
|
-
onOpenChange: ({ open:
|
|
1027
|
-
|
|
1027
|
+
onOpenChange: ({ open: d }) => {
|
|
1028
|
+
h(d);
|
|
1028
1029
|
},
|
|
1029
1030
|
children: [
|
|
1030
1031
|
/* @__PURE__ */ n(
|
|
@@ -1038,7 +1039,7 @@ const st = H.Root, lt = H.ValueText, be = () => {
|
|
|
1038
1039
|
tn,
|
|
1039
1040
|
{
|
|
1040
1041
|
style: {
|
|
1041
|
-
transform:
|
|
1042
|
+
transform: c ? "rotate(0deg)" : "rotate(180deg)"
|
|
1042
1043
|
}
|
|
1043
1044
|
}
|
|
1044
1045
|
)
|
|
@@ -1046,7 +1047,7 @@ const st = H.Root, lt = H.ValueText, be = () => {
|
|
|
1046
1047
|
),
|
|
1047
1048
|
/* @__PURE__ */ s(se.Content, { display: "flex", justifyContent: "center", children: [
|
|
1048
1049
|
/* @__PURE__ */ n(
|
|
1049
|
-
|
|
1050
|
+
C,
|
|
1050
1051
|
{
|
|
1051
1052
|
"aria-label": "Help",
|
|
1052
1053
|
size: "lg",
|
|
@@ -1056,7 +1057,7 @@ const st = H.Root, lt = H.ValueText, be = () => {
|
|
|
1056
1057
|
}
|
|
1057
1058
|
),
|
|
1058
1059
|
/* @__PURE__ */ n(
|
|
1059
|
-
|
|
1060
|
+
C,
|
|
1060
1061
|
{
|
|
1061
1062
|
"aria-label": "Table of contents",
|
|
1062
1063
|
size: "lg",
|
|
@@ -1065,8 +1066,8 @@ const st = H.Root, lt = H.ValueText, be = () => {
|
|
|
1065
1066
|
children: /* @__PURE__ */ n(rn, {})
|
|
1066
1067
|
}
|
|
1067
1068
|
),
|
|
1068
|
-
|
|
1069
|
-
|
|
1069
|
+
ze(o) && /* @__PURE__ */ n(
|
|
1070
|
+
C,
|
|
1070
1071
|
{
|
|
1071
1072
|
"aria-label": "Search",
|
|
1072
1073
|
size: "lg",
|
|
@@ -1076,17 +1077,17 @@ const st = H.Root, lt = H.ValueText, be = () => {
|
|
|
1076
1077
|
}
|
|
1077
1078
|
),
|
|
1078
1079
|
W(o) && /* @__PURE__ */ n(
|
|
1079
|
-
|
|
1080
|
+
C,
|
|
1080
1081
|
{
|
|
1081
1082
|
"aria-label": "Bookmarks",
|
|
1082
1083
|
size: "lg",
|
|
1083
1084
|
variant: "ghost",
|
|
1084
1085
|
onClick: () => t("bookmarks"),
|
|
1085
|
-
children: /* @__PURE__ */ n(
|
|
1086
|
+
children: /* @__PURE__ */ n(pn, {})
|
|
1086
1087
|
}
|
|
1087
1088
|
),
|
|
1088
1089
|
W(o) && /* @__PURE__ */ n(
|
|
1089
|
-
|
|
1090
|
+
C,
|
|
1090
1091
|
{
|
|
1091
1092
|
"aria-label": "Annotations",
|
|
1092
1093
|
size: "lg",
|
|
@@ -1096,27 +1097,28 @@ const st = H.Root, lt = H.ValueText, be = () => {
|
|
|
1096
1097
|
}
|
|
1097
1098
|
),
|
|
1098
1099
|
/* @__PURE__ */ n(
|
|
1099
|
-
|
|
1100
|
+
C,
|
|
1100
1101
|
{
|
|
1101
1102
|
"aria-label": "Thumbnails",
|
|
1102
1103
|
size: "lg",
|
|
1103
|
-
variant:
|
|
1104
|
+
variant: a?.isZooming && a.currentScale < 1 ? "solid" : "ghost",
|
|
1104
1105
|
onClick: () => {
|
|
1105
|
-
o?.
|
|
1106
|
-
|
|
1106
|
+
a?.isZooming ? o?.zoom.exit() : o?.zoom.enter({
|
|
1107
|
+
animate: !0,
|
|
1108
|
+
scale: 0.5
|
|
1107
1109
|
});
|
|
1108
1110
|
},
|
|
1109
1111
|
children: /* @__PURE__ */ n(sn, {})
|
|
1110
1112
|
}
|
|
1111
1113
|
),
|
|
1112
|
-
|
|
1113
|
-
|
|
1114
|
+
De(o) && /* @__PURE__ */ n(
|
|
1115
|
+
C,
|
|
1114
1116
|
{
|
|
1115
1117
|
"aria-label": "Gallery",
|
|
1116
1118
|
size: "lg",
|
|
1117
1119
|
variant: "ghost",
|
|
1118
1120
|
onClick: () => t("gallery"),
|
|
1119
|
-
children: /* @__PURE__ */ n(
|
|
1121
|
+
children: /* @__PURE__ */ n(mn, {})
|
|
1120
1122
|
}
|
|
1121
1123
|
)
|
|
1122
1124
|
] })
|
|
@@ -1127,7 +1129,7 @@ const st = H.Root, lt = H.ValueText, be = () => {
|
|
|
1127
1129
|
}
|
|
1128
1130
|
);
|
|
1129
1131
|
}
|
|
1130
|
-
),
|
|
1132
|
+
), ft = () => {
|
|
1131
1133
|
const [e, t] = S(!1), o = N(() => document.fullscreenElement ? document.exitFullscreen().catch(console.error).then(() => {
|
|
1132
1134
|
t(!1);
|
|
1133
1135
|
}) : document.documentElement.requestFullscreen({ navigationUI: "hide" }).catch(console.error).then(() => {
|
|
@@ -1144,12 +1146,12 @@ const st = H.Root, lt = H.ValueText, be = () => {
|
|
|
1144
1146
|
isFullscreen: e,
|
|
1145
1147
|
onToggleFullscreenClick: o
|
|
1146
1148
|
};
|
|
1147
|
-
},
|
|
1149
|
+
}, bt = m(
|
|
1148
1150
|
({
|
|
1149
1151
|
open: e,
|
|
1150
1152
|
onItemClick: t
|
|
1151
1153
|
}) => {
|
|
1152
|
-
const o = p(), i = f(() => o?.context.manifest$, [o]), { isFullscreen: r, onToggleFullscreenClick: a } =
|
|
1154
|
+
const o = p(), i = f(() => o?.context.manifest$, [o]), { isFullscreen: r, onToggleFullscreenClick: a } = ft();
|
|
1153
1155
|
return /* @__PURE__ */ s(
|
|
1154
1156
|
Be,
|
|
1155
1157
|
{
|
|
@@ -1159,14 +1161,14 @@ const st = H.Root, lt = H.ValueText, be = () => {
|
|
|
1159
1161
|
justifyContent: "space-between",
|
|
1160
1162
|
children: [
|
|
1161
1163
|
/* @__PURE__ */ n(
|
|
1162
|
-
|
|
1164
|
+
C,
|
|
1163
1165
|
{
|
|
1164
1166
|
"aria-label": "left",
|
|
1165
1167
|
size: "lg",
|
|
1166
1168
|
variant: "ghost",
|
|
1167
1169
|
flexShrink: 0,
|
|
1168
1170
|
onClick: () => t("back"),
|
|
1169
|
-
children: /* @__PURE__ */ n(
|
|
1171
|
+
children: /* @__PURE__ */ n(In, {})
|
|
1170
1172
|
}
|
|
1171
1173
|
),
|
|
1172
1174
|
/* @__PURE__ */ n(
|
|
@@ -1181,27 +1183,27 @@ const st = H.Root, lt = H.ValueText, be = () => {
|
|
|
1181
1183
|
children: /* @__PURE__ */ n(g, { truncate: !0, maxWidth: "100%", children: i?.title })
|
|
1182
1184
|
}
|
|
1183
1185
|
),
|
|
1184
|
-
/* @__PURE__ */ s(
|
|
1186
|
+
/* @__PURE__ */ s(P, { children: [
|
|
1185
1187
|
/* @__PURE__ */ n(
|
|
1186
|
-
|
|
1188
|
+
C,
|
|
1187
1189
|
{
|
|
1188
1190
|
"aria-label": "right",
|
|
1189
1191
|
size: "lg",
|
|
1190
1192
|
flexShrink: 0,
|
|
1191
1193
|
variant: "ghost",
|
|
1192
1194
|
onClick: () => t("more"),
|
|
1193
|
-
children: /* @__PURE__ */ n(
|
|
1195
|
+
children: /* @__PURE__ */ n(Sn, {})
|
|
1194
1196
|
}
|
|
1195
1197
|
),
|
|
1196
1198
|
/* @__PURE__ */ n(
|
|
1197
|
-
|
|
1199
|
+
C,
|
|
1198
1200
|
{
|
|
1199
1201
|
"aria-label": "right",
|
|
1200
1202
|
size: "lg",
|
|
1201
1203
|
flexShrink: 0,
|
|
1202
1204
|
variant: "ghost",
|
|
1203
1205
|
onClick: a,
|
|
1204
|
-
children: r ? /* @__PURE__ */ n(
|
|
1206
|
+
children: r ? /* @__PURE__ */ n(yn, {}) : /* @__PURE__ */ n(Tn, {})
|
|
1205
1207
|
}
|
|
1206
1208
|
)
|
|
1207
1209
|
] })
|
|
@@ -1209,17 +1211,17 @@ const st = H.Root, lt = H.ValueText, be = () => {
|
|
|
1209
1211
|
}
|
|
1210
1212
|
);
|
|
1211
1213
|
}
|
|
1212
|
-
),
|
|
1214
|
+
), xt = m(
|
|
1213
1215
|
({
|
|
1214
1216
|
onItemClick: e
|
|
1215
1217
|
}) => {
|
|
1216
1218
|
const [t] = fe();
|
|
1217
1219
|
return /* @__PURE__ */ s(oe, { children: [
|
|
1218
|
-
/* @__PURE__ */ n(
|
|
1219
|
-
/* @__PURE__ */ n(
|
|
1220
|
+
/* @__PURE__ */ n(bt, { open: t, onItemClick: e }),
|
|
1221
|
+
/* @__PURE__ */ n(mt, { open: t, onItemClick: e })
|
|
1220
1222
|
] });
|
|
1221
1223
|
}
|
|
1222
|
-
),
|
|
1224
|
+
), Ct = m(
|
|
1223
1225
|
({
|
|
1224
1226
|
contextText: e = "",
|
|
1225
1227
|
startOffset: t = 0,
|
|
@@ -1263,18 +1265,18 @@ const st = H.Root, lt = H.ValueText, be = () => {
|
|
|
1263
1265
|
}
|
|
1264
1266
|
);
|
|
1265
1267
|
}
|
|
1266
|
-
), vt = 500,
|
|
1267
|
-
const e = Se(() => new Ye("")), t = f(e), o = p(), i =
|
|
1268
|
+
), vt = 500, kt = () => {
|
|
1269
|
+
const e = Se(() => new Ye("")), t = f(e), o = p(), i = ze(o) ? o : void 0, r = f(() => e.pipe(
|
|
1268
1270
|
ge(),
|
|
1269
1271
|
O(
|
|
1270
|
-
(a) => a === "" || !i ? ee(void 0) :
|
|
1272
|
+
(a) => a === "" || !i ? ee(void 0) : we(
|
|
1271
1273
|
ee({
|
|
1272
1274
|
type: "start",
|
|
1273
1275
|
data: void 0
|
|
1274
1276
|
}),
|
|
1275
1277
|
Ae(vt).pipe(
|
|
1276
1278
|
O(() => i.search.search(a)),
|
|
1277
|
-
|
|
1279
|
+
E((l) => ({ type: "end", data: l }))
|
|
1278
1280
|
)
|
|
1279
1281
|
)
|
|
1280
1282
|
)
|
|
@@ -1285,9 +1287,9 @@ const st = H.Root, lt = H.ValueText, be = () => {
|
|
|
1285
1287
|
status: r?.type ?? "idle",
|
|
1286
1288
|
data: r?.data
|
|
1287
1289
|
};
|
|
1288
|
-
},
|
|
1290
|
+
}, It = m(
|
|
1289
1291
|
({ onNavigate: e }) => {
|
|
1290
|
-
const t = p(), { value: o, setValue: i, status: r, data: a } =
|
|
1292
|
+
const t = p(), { value: o, setValue: i, status: r, data: a } = kt(), l = (d) => {
|
|
1291
1293
|
i(d.target.value);
|
|
1292
1294
|
}, c = N(
|
|
1293
1295
|
(d) => {
|
|
@@ -1300,7 +1302,7 @@ const st = H.Root, lt = H.ValueText, be = () => {
|
|
|
1300
1302
|
);
|
|
1301
1303
|
return /* @__PURE__ */ s(k, { flex: 1, height: "100%", gap: 2, children: [
|
|
1302
1304
|
/* @__PURE__ */ n(
|
|
1303
|
-
|
|
1305
|
+
Ke,
|
|
1304
1306
|
{
|
|
1305
1307
|
placeholder: "Type something...",
|
|
1306
1308
|
value: o,
|
|
@@ -1330,7 +1332,7 @@ const st = H.Root, lt = H.ValueText, be = () => {
|
|
|
1330
1332
|
" result(s)"
|
|
1331
1333
|
] }),
|
|
1332
1334
|
/* @__PURE__ */ n(k, { gap: 0, children: h?.map((d, b) => /* @__PURE__ */ n(
|
|
1333
|
-
|
|
1335
|
+
Ct,
|
|
1334
1336
|
{
|
|
1335
1337
|
contextText: d.meta?.range?.startContainer.parentElement?.textContent ?? "",
|
|
1336
1338
|
pageIndex: d.meta?.itemPageIndex,
|
|
@@ -1348,7 +1350,7 @@ const st = H.Root, lt = H.ValueText, be = () => {
|
|
|
1348
1350
|
)
|
|
1349
1351
|
] });
|
|
1350
1352
|
}
|
|
1351
|
-
),
|
|
1353
|
+
), St = m(
|
|
1352
1354
|
({
|
|
1353
1355
|
open: e,
|
|
1354
1356
|
setOpen: t,
|
|
@@ -1363,16 +1365,16 @@ const st = H.Root, lt = H.ValueText, be = () => {
|
|
|
1363
1365
|
size: { mdDown: "full", md: "lg" },
|
|
1364
1366
|
scrollBehavior: "inside",
|
|
1365
1367
|
children: /* @__PURE__ */ s(V, { height: "100%", children: [
|
|
1366
|
-
/* @__PURE__ */ n(q, { children: /* @__PURE__ */ n(
|
|
1367
|
-
/* @__PURE__ */ n(Q, { flex: 1, p: 0, children: /* @__PURE__ */ n(
|
|
1368
|
-
/* @__PURE__ */ n(U, { children: /* @__PURE__ */ n(
|
|
1368
|
+
/* @__PURE__ */ n(q, { children: /* @__PURE__ */ n(Z, { children: "Search" }) }),
|
|
1369
|
+
/* @__PURE__ */ n(Q, { flex: 1, p: 0, children: /* @__PURE__ */ n(It, { onNavigate: o }) }),
|
|
1370
|
+
/* @__PURE__ */ n(U, { children: /* @__PURE__ */ n(K, { asChild: !0, children: /* @__PURE__ */ n(j, { variant: "outline", children: "Cancel" }) }) }),
|
|
1369
1371
|
/* @__PURE__ */ n(G, {})
|
|
1370
1372
|
] })
|
|
1371
1373
|
}
|
|
1372
1374
|
)
|
|
1373
|
-
),
|
|
1375
|
+
), yt = m(
|
|
1374
1376
|
({ onNavigate: e }) => {
|
|
1375
|
-
const t = p(), { manifest: o, assumedRenditionLayout: i } = f(() => t?.context, [t]) ?? {}, { nav: r } = o ?? {}, a =
|
|
1377
|
+
const t = p(), { manifest: o, assumedRenditionLayout: i } = f(() => t?.context, [t]) ?? {}, { nav: r } = o ?? {}, a = $();
|
|
1376
1378
|
r?.toc;
|
|
1377
1379
|
const { beginSpineItemIndex: l, beginPageIndexInSpineItem: c } = a ?? {}, h = (i === "reflowable" ? c : l) || 0;
|
|
1378
1380
|
let d = a?.beginChapterInfo;
|
|
@@ -1395,8 +1397,8 @@ const st = H.Root, lt = H.ValueText, be = () => {
|
|
|
1395
1397
|
},
|
|
1396
1398
|
href: "#",
|
|
1397
1399
|
children: [
|
|
1398
|
-
d?.path === u.path && /* @__PURE__ */ n(T.Indicator, { asChild: !0, children: /* @__PURE__ */ n(
|
|
1399
|
-
d?.path !== u.path && /* @__PURE__ */ n(T.Indicator, { asChild: !0, visibility: "hidden", children: /* @__PURE__ */ n(
|
|
1400
|
+
d?.path === u.path && /* @__PURE__ */ n(T.Indicator, { asChild: !0, children: /* @__PURE__ */ n(ve, {}) }),
|
|
1401
|
+
d?.path !== u.path && /* @__PURE__ */ n(T.Indicator, { asChild: !0, visibility: "hidden", children: /* @__PURE__ */ n(ve, {}) }),
|
|
1400
1402
|
/* @__PURE__ */ s(k, { gap: 0, children: [
|
|
1401
1403
|
/* @__PURE__ */ n(g, { fontSize: "md", children: u.title || u.path }),
|
|
1402
1404
|
d?.path === u.path && /* @__PURE__ */ n(
|
|
@@ -1415,12 +1417,12 @@ const st = H.Root, lt = H.ValueText, be = () => {
|
|
|
1415
1417
|
}
|
|
1416
1418
|
),
|
|
1417
1419
|
u.contents.length > 0 && /* @__PURE__ */ n(T.Root, { as: "div", gap: 2, children: u.contents.map(
|
|
1418
|
-
(
|
|
1420
|
+
(R, B) => b(R, B, y + 1)
|
|
1419
1421
|
) })
|
|
1420
1422
|
] }, x);
|
|
1421
1423
|
return /* @__PURE__ */ n(T.Root, { gap: 3, overflowY: "auto", py: 4, flex: 1, children: r?.toc.map((u, x) => b(u, x, 0)) });
|
|
1422
1424
|
}
|
|
1423
|
-
),
|
|
1425
|
+
), Tt = m(
|
|
1424
1426
|
({
|
|
1425
1427
|
open: e,
|
|
1426
1428
|
setOpen: t,
|
|
@@ -1435,27 +1437,27 @@ const st = H.Root, lt = H.ValueText, be = () => {
|
|
|
1435
1437
|
size: { mdDown: "full", md: "lg" },
|
|
1436
1438
|
scrollBehavior: "inside",
|
|
1437
1439
|
children: /* @__PURE__ */ s(V, { children: [
|
|
1438
|
-
/* @__PURE__ */ n(q, { children: /* @__PURE__ */ n(
|
|
1439
|
-
/* @__PURE__ */ n(Q, { overflowY: "auto", flex: 1, children: /* @__PURE__ */ n(
|
|
1440
|
-
/* @__PURE__ */ n(U, { children: /* @__PURE__ */ n(
|
|
1440
|
+
/* @__PURE__ */ n(q, { children: /* @__PURE__ */ n(Z, { children: "Table of Contents" }) }),
|
|
1441
|
+
/* @__PURE__ */ n(Q, { overflowY: "auto", flex: 1, children: /* @__PURE__ */ n(yt, { onNavigate: o }) }),
|
|
1442
|
+
/* @__PURE__ */ n(U, { children: /* @__PURE__ */ n(K, { asChild: !0, children: /* @__PURE__ */ n(j, { variant: "outline", children: "Cancel" }) }) }),
|
|
1441
1443
|
/* @__PURE__ */ n(G, {})
|
|
1442
1444
|
] })
|
|
1443
1445
|
}
|
|
1444
1446
|
)
|
|
1445
|
-
),
|
|
1447
|
+
), Vt = ({
|
|
1446
1448
|
enableFloatingTime: e = !0,
|
|
1447
1449
|
enableFloatingProgress: t = !0,
|
|
1448
1450
|
onItemClick: o
|
|
1449
1451
|
}) => {
|
|
1450
|
-
const [i, r] = S(!1), [a, l] = S(!1), [c, h] = S(!1), [d, b] = S(void 0), [u, x] = S(!1), [y,
|
|
1451
|
-
r(!1), l(!1), h(!1), b(void 0),
|
|
1452
|
-
}, [
|
|
1453
|
-
(
|
|
1454
|
-
|
|
1452
|
+
const [i, r] = S(!1), [a, l] = S(!1), [c, h] = S(!1), [d, b] = S(void 0), [u, x] = S(!1), [y, R] = fe(), B = N(() => {
|
|
1453
|
+
r(!1), l(!1), h(!1), b(void 0), R(!1), x(!1);
|
|
1454
|
+
}, [R]), _ = N(
|
|
1455
|
+
(v) => {
|
|
1456
|
+
v === "annotations" ? b("annotations") : v === "search" ? h(!0) : v === "help" ? l(!0) : v === "toc" ? r(!0) : v === "bookmarks" ? b("bookmarks") : v === "gallery" && x(!0), o?.(v);
|
|
1455
1457
|
},
|
|
1456
1458
|
[o]
|
|
1457
1459
|
);
|
|
1458
|
-
return
|
|
1460
|
+
return nt(), rt(), Wn(), /* @__PURE__ */ s(oe, { children: [
|
|
1459
1461
|
t && /* @__PURE__ */ n(
|
|
1460
1462
|
ne,
|
|
1461
1463
|
{
|
|
@@ -1465,12 +1467,12 @@ const st = H.Root, lt = H.ValueText, be = () => {
|
|
|
1465
1467
|
children: /* @__PURE__ */ n(Kn, {})
|
|
1466
1468
|
}
|
|
1467
1469
|
),
|
|
1468
|
-
/* @__PURE__ */ n(
|
|
1469
|
-
/* @__PURE__ */ n(
|
|
1470
|
-
/* @__PURE__ */ n(
|
|
1471
|
-
/* @__PURE__ */ n(
|
|
1470
|
+
/* @__PURE__ */ n(Un, { open: u, setOpen: x }),
|
|
1471
|
+
/* @__PURE__ */ n(xt, { onItemClick: _ }),
|
|
1472
|
+
/* @__PURE__ */ n(Nn, {}),
|
|
1473
|
+
/* @__PURE__ */ n(Zn, { open: a, setOpen: l }),
|
|
1472
1474
|
/* @__PURE__ */ n(
|
|
1473
|
-
|
|
1475
|
+
Tt,
|
|
1474
1476
|
{
|
|
1475
1477
|
open: i,
|
|
1476
1478
|
setOpen: r,
|
|
@@ -1478,7 +1480,7 @@ const st = H.Root, lt = H.ValueText, be = () => {
|
|
|
1478
1480
|
}
|
|
1479
1481
|
),
|
|
1480
1482
|
/* @__PURE__ */ n(
|
|
1481
|
-
|
|
1483
|
+
St,
|
|
1482
1484
|
{
|
|
1483
1485
|
open: c,
|
|
1484
1486
|
setOpen: h,
|
|
@@ -1489,7 +1491,7 @@ const st = H.Root, lt = H.ValueText, be = () => {
|
|
|
1489
1491
|
En,
|
|
1490
1492
|
{
|
|
1491
1493
|
openWith: d,
|
|
1492
|
-
setOpen: (
|
|
1494
|
+
setOpen: (v) => b(v ? "annotations" : void 0),
|
|
1493
1495
|
onNavigate: B
|
|
1494
1496
|
}
|
|
1495
1497
|
),
|
|
@@ -1500,15 +1502,15 @@ const st = H.Root, lt = H.ValueText, be = () => {
|
|
|
1500
1502
|
animationName: { _open: "fade-in", _closed: "fade-out" },
|
|
1501
1503
|
animationDuration: "slow",
|
|
1502
1504
|
overflow: "hidden",
|
|
1503
|
-
children: /* @__PURE__ */ n(
|
|
1505
|
+
children: /* @__PURE__ */ n(et, {})
|
|
1504
1506
|
}
|
|
1505
1507
|
),
|
|
1506
|
-
/* @__PURE__ */ n(
|
|
1508
|
+
/* @__PURE__ */ n(Fn, {})
|
|
1507
1509
|
] });
|
|
1508
1510
|
};
|
|
1509
1511
|
export {
|
|
1510
|
-
|
|
1511
|
-
|
|
1512
|
-
|
|
1512
|
+
$n as BOOKMARK_AREA_DATA_ATTRIBUTE,
|
|
1513
|
+
Vt as ReactReader,
|
|
1514
|
+
jt as ReactReaderProvider
|
|
1513
1515
|
};
|
|
1514
1516
|
//# sourceMappingURL=index.js.map
|