@prose-reader/react-reader 1.268.0 → 1.270.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/components/ui/slider.d.ts +3 -1
- package/dist/index.js +349 -348
- 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,25 +1,25 @@
|
|
|
1
|
-
import { jsx as e, jsxs as s, Fragment as
|
|
2
|
-
import { IconButton as k, Portal as
|
|
1
|
+
import { jsx as e, jsxs as s, Fragment as de } from "react/jsx-runtime";
|
|
2
|
+
import { IconButton as k, Portal as ve, Dialog as z, List as B, Link as xe, Stack as O, Text as b, Tabs as P, Button as W, Presence as ue, Box as _, createToaster as en, Toaster as nn, Toast as J, Spinner as tn, RadioGroup as ie, Slider as M, HStack as F, For as on, Fieldset as N, Heading as me, Kbd as we, Popover as ee, Progress as le, chakra as rn, Collapsible as be, Field as oe, Input as an } from "@chakra-ui/react";
|
|
3
3
|
import * as A from "react";
|
|
4
|
-
import
|
|
5
|
-
import { LuX as
|
|
6
|
-
import { signal as ne, useObserve as S, isDefined as
|
|
7
|
-
import { Subject as zn, map as E, filter as
|
|
8
|
-
import { createPortal as
|
|
9
|
-
import { isPositionInArea as
|
|
10
|
-
import { isShallowEqual as
|
|
11
|
-
import { isShallowEqual as
|
|
12
|
-
import { BiFontSize as
|
|
13
|
-
import { BsBookmarks as
|
|
14
|
-
import { MdOutlineFitScreen as
|
|
15
|
-
import { RiGalleryView2 as
|
|
16
|
-
import { RxDoubleArrowUp as
|
|
17
|
-
import { HiOutlineInformationCircle as
|
|
18
|
-
import
|
|
4
|
+
import ln, { createContext as sn, useContext as Fe, memo as g, useState as w, useEffect as $, useCallback as T, useMemo as cn, useLayoutEffect as dn, useRef as un } from "react";
|
|
5
|
+
import { LuX as hn, LuNotebookPen as pe, LuBookmark as pn, LuCheck as gn, LuArrowBigRight as fn, LuArrowBigLeft as mn, LuChevronDown as bn, LuCircleHelp as Sn, LuTableOfContents as Cn, LuSearch as vn, LuZoomOut as xn, LuZoomIn as kn, LuGalleryHorizontal as In, LuCircleCheck as ye } from "react-icons/lu";
|
|
6
|
+
import { signal as ne, useObserve as S, isDefined as _e, useSubscribe as H, useConstant as he, useSignalValue as Se, useMemoCompare as On, useLiveRef as Rn, useSignalState as Tn } from "reactjrx";
|
|
7
|
+
import { Subject as zn, map as E, filter as se, switchMap as V, EMPTY as Pe, of as ge, withLatestFrom as ke, NEVER as Ie, startWith as Mn, distinctUntilChanged as De, throttleTime as Le, tap as $e, first as Ne, combineLatest as wn, mergeMap as yn, Observable as Pn, skip as En, merge as Ve, timer as We, finalize as An, BehaviorSubject as Bn, animationFrameScheduler as Fn } from "rxjs";
|
|
8
|
+
import { createPortal as _n } from "react-dom";
|
|
9
|
+
import { isPositionInArea as Dn } from "@prose-reader/enhancer-gestures";
|
|
10
|
+
import { isShallowEqual as Ln } from "@prose-reader/shared";
|
|
11
|
+
import { isShallowEqual as $n, observeIntersection as Nn, isHtmlTagElement as Vn } from "@prose-reader/core";
|
|
12
|
+
import { BiFontSize as Wn } from "react-icons/bi";
|
|
13
|
+
import { BsBookmarks as Hn } from "react-icons/bs";
|
|
14
|
+
import { MdOutlineFitScreen as Gn, MdFullscreenExit as qn, MdFullscreen as jn } from "react-icons/md";
|
|
15
|
+
import { RiGalleryView2 as Un } from "react-icons/ri";
|
|
16
|
+
import { RxDoubleArrowUp as Qn, RxDoubleArrowLeft as Yn, RxDoubleArrowDown as Zn, RxDoubleArrowRight as Xn } from "react-icons/rx";
|
|
17
|
+
import { HiOutlineInformationCircle as Kn } from "react-icons/hi";
|
|
18
|
+
import Jn from "rc-slider";
|
|
19
19
|
import "rc-slider/assets/index.css";
|
|
20
|
-
import { IoIosArrowBack as
|
|
21
|
-
const
|
|
22
|
-
return /* @__PURE__ */ e(k, { variant: "ghost", "aria-label": "Close", ref: o, ...t, children: t.children ?? /* @__PURE__ */ e(
|
|
20
|
+
import { IoIosArrowBack as et, IoMdMore as nt } from "react-icons/io";
|
|
21
|
+
const tt = "data-bookmark-area", He = 5, ot = A.forwardRef(function(t, o) {
|
|
22
|
+
return /* @__PURE__ */ e(k, { variant: "ghost", "aria-label": "Close", ref: o, ...t, children: t.children ?? /* @__PURE__ */ e(hn, {}) });
|
|
23
23
|
}), G = A.forwardRef(function(t, o) {
|
|
24
24
|
const {
|
|
25
25
|
children: r,
|
|
@@ -28,28 +28,28 @@ const nt = "data-bookmark-area", We = 5, tt = A.forwardRef(function(t, o) {
|
|
|
28
28
|
backdrop: l = !0,
|
|
29
29
|
...c
|
|
30
30
|
} = t;
|
|
31
|
-
return /* @__PURE__ */ s(
|
|
32
|
-
l && /* @__PURE__ */ e(
|
|
33
|
-
/* @__PURE__ */ e(
|
|
31
|
+
return /* @__PURE__ */ s(ve, { disabled: !i, container: a, children: [
|
|
32
|
+
l && /* @__PURE__ */ e(z.Backdrop, {}),
|
|
33
|
+
/* @__PURE__ */ e(z.Positioner, { children: /* @__PURE__ */ e(z.Content, { ref: o, ...c, asChild: !1, children: r }) })
|
|
34
34
|
] });
|
|
35
35
|
}), q = A.forwardRef(function(t, o) {
|
|
36
36
|
return /* @__PURE__ */ e(
|
|
37
|
-
|
|
37
|
+
z.CloseTrigger,
|
|
38
38
|
{
|
|
39
39
|
position: "absolute",
|
|
40
40
|
top: "2",
|
|
41
41
|
insetEnd: "2",
|
|
42
42
|
...t,
|
|
43
43
|
asChild: !0,
|
|
44
|
-
children: /* @__PURE__ */ e(
|
|
44
|
+
children: /* @__PURE__ */ e(ot, { size: "sm", ref: o, children: t.children })
|
|
45
45
|
}
|
|
46
46
|
);
|
|
47
|
-
}), j =
|
|
48
|
-
|
|
49
|
-
const Z =
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
const X =
|
|
47
|
+
}), j = z.Root, U = z.Footer, Q = z.Header, Y = z.Body;
|
|
48
|
+
z.Backdrop;
|
|
49
|
+
const Z = z.Title;
|
|
50
|
+
z.Description;
|
|
51
|
+
z.Trigger;
|
|
52
|
+
const X = z.ActionTrigger, Ge = () => ({
|
|
53
53
|
_quickMenuOpen: !1,
|
|
54
54
|
_onQuickMenuOpenChange: (n) => n,
|
|
55
55
|
reader: void 0,
|
|
@@ -67,39 +67,39 @@ const X = T.ActionTrigger, He = () => ({
|
|
|
67
67
|
fontSizeMax: 5,
|
|
68
68
|
uncontrolledFontSize: 1,
|
|
69
69
|
enableFloatingProgress: !0
|
|
70
|
-
}),
|
|
71
|
-
ne({ default:
|
|
70
|
+
}), Oe = sn(
|
|
71
|
+
ne({ default: Ge() })
|
|
72
72
|
), y = (n) => {
|
|
73
|
-
const t =
|
|
73
|
+
const t = Fe(Oe);
|
|
74
74
|
return S(t, n);
|
|
75
|
-
},
|
|
75
|
+
}, qe = () => Fe(Oe), m = () => {
|
|
76
76
|
const { reader: n } = y(["reader"]);
|
|
77
77
|
return n;
|
|
78
|
-
},
|
|
79
|
-
const t = m(), o =
|
|
78
|
+
}, je = (n) => !!n && "__PROSE_READER_ENHANCER_SEARCH" in n, ce = (n) => !!n && "__PROSE_READER_ENHANCER_ANNOTATIONS" in n, Ue = (n) => !!n && "__PROSE_READER_ENHANCER_GALLERY" in n, Qe = (n) => !!n && "__PROSE_READER_ENHANCER_REFIT" in n, rt = (n) => {
|
|
79
|
+
const t = m(), o = ce(t) ? t : void 0;
|
|
80
80
|
return { data: S(
|
|
81
81
|
() => o?.annotations.annotations$.pipe(
|
|
82
82
|
E((i) => i.find((a) => a.id === n)),
|
|
83
|
-
|
|
83
|
+
se(_e),
|
|
84
84
|
V((i) => o.locateResource(i))
|
|
85
85
|
),
|
|
86
86
|
[o]
|
|
87
87
|
) };
|
|
88
|
-
},
|
|
88
|
+
}, Ye = ({
|
|
89
89
|
id: n,
|
|
90
90
|
onNavigate: t,
|
|
91
91
|
allowLeftIcon: o = !0
|
|
92
92
|
}) => {
|
|
93
|
-
const r = m(), { data: i } =
|
|
93
|
+
const r = m(), { data: i } = rt(n), a = i?.meta.range?.toString() || i?.meta.node?.textContent;
|
|
94
94
|
return /* @__PURE__ */ e(B.Item, { children: /* @__PURE__ */ s(
|
|
95
|
-
|
|
95
|
+
xe,
|
|
96
96
|
{
|
|
97
97
|
href: "#",
|
|
98
98
|
onClick: () => {
|
|
99
99
|
t(), r?.navigation.goToCfi(i?.meta.cfi ?? "");
|
|
100
100
|
},
|
|
101
101
|
children: [
|
|
102
|
-
i?.resource?.notes ? /* @__PURE__ */ e(B.Indicator, { asChild: !0, children: /* @__PURE__ */ e(
|
|
102
|
+
i?.resource?.notes ? /* @__PURE__ */ e(B.Indicator, { asChild: !0, children: /* @__PURE__ */ e(pe, {}) }) : o ? /* @__PURE__ */ e(B.Indicator, { asChild: !0, visibility: "hidden", children: /* @__PURE__ */ e(pe, {}) }) : null,
|
|
103
103
|
/* @__PURE__ */ s(O, { gap: 0, children: [
|
|
104
104
|
a ? /* @__PURE__ */ e(b, { lineClamp: 2, fontSize: "md", children: a }) : /* @__PURE__ */ s(b, { lineClamp: 2, fontSize: "md", fontStyle: "italic", children: [
|
|
105
105
|
"Page ",
|
|
@@ -118,8 +118,8 @@ const X = T.ActionTrigger, He = () => ({
|
|
|
118
118
|
]
|
|
119
119
|
}
|
|
120
120
|
) });
|
|
121
|
-
},
|
|
122
|
-
const n = m(), t =
|
|
121
|
+
}, fe = () => {
|
|
122
|
+
const n = m(), t = ce(n) ? n : void 0;
|
|
123
123
|
return { data: S(
|
|
124
124
|
() => t?.annotations.annotations$.pipe(
|
|
125
125
|
V(
|
|
@@ -128,32 +128,32 @@ const X = T.ActionTrigger, He = () => ({
|
|
|
128
128
|
),
|
|
129
129
|
[t]
|
|
130
130
|
) };
|
|
131
|
-
},
|
|
132
|
-
const { data: n } =
|
|
131
|
+
}, it = () => {
|
|
132
|
+
const { data: n } = fe();
|
|
133
133
|
return {
|
|
134
134
|
data: n?.filter((t) => t.meta.isCfiRange)
|
|
135
135
|
};
|
|
136
|
-
},
|
|
137
|
-
const { data: t } =
|
|
136
|
+
}, at = ({ onNavigate: n }) => {
|
|
137
|
+
const { data: t } = it();
|
|
138
138
|
return /* @__PURE__ */ e(B.Root, { overflowY: "auto", gap: 3, pt: 4, variant: "plain", children: t?.map((o) => /* @__PURE__ */ e(
|
|
139
|
-
|
|
139
|
+
Ye,
|
|
140
140
|
{
|
|
141
141
|
id: o.resource.id,
|
|
142
142
|
onNavigate: n
|
|
143
143
|
},
|
|
144
144
|
o.resource.id
|
|
145
145
|
)) });
|
|
146
|
-
},
|
|
147
|
-
const { data: n } =
|
|
146
|
+
}, lt = () => {
|
|
147
|
+
const { data: n } = fe();
|
|
148
148
|
return {
|
|
149
149
|
data: n?.filter(
|
|
150
150
|
(t) => !t.meta.isCfiRange && !t.resource.notes
|
|
151
151
|
)
|
|
152
152
|
};
|
|
153
|
-
},
|
|
154
|
-
const { data: t } =
|
|
153
|
+
}, st = ({ onNavigate: n }) => {
|
|
154
|
+
const { data: t } = lt();
|
|
155
155
|
return /* @__PURE__ */ e(B.Root, { overflowY: "auto", gap: 3, pt: 4, variant: "plain", children: t?.map((o) => /* @__PURE__ */ e(
|
|
156
|
-
|
|
156
|
+
Ye,
|
|
157
157
|
{
|
|
158
158
|
id: o.resource.id,
|
|
159
159
|
onNavigate: n,
|
|
@@ -161,7 +161,7 @@ const X = T.ActionTrigger, He = () => ({
|
|
|
161
161
|
},
|
|
162
162
|
o.resource.id
|
|
163
163
|
)) });
|
|
164
|
-
},
|
|
164
|
+
}, ct = g(
|
|
165
165
|
({
|
|
166
166
|
onNavigate: n,
|
|
167
167
|
defaultTab: t
|
|
@@ -175,22 +175,22 @@ const X = T.ActionTrigger, He = () => ({
|
|
|
175
175
|
children: [
|
|
176
176
|
/* @__PURE__ */ s(P.List, { children: [
|
|
177
177
|
/* @__PURE__ */ s(P.Trigger, { value: "bookmarks", children: [
|
|
178
|
-
/* @__PURE__ */ e(
|
|
178
|
+
/* @__PURE__ */ e(pn, {}),
|
|
179
179
|
"Bookmarks"
|
|
180
180
|
] }),
|
|
181
181
|
/* @__PURE__ */ s(P.Trigger, { value: "annotations", children: [
|
|
182
|
-
/* @__PURE__ */ e(
|
|
182
|
+
/* @__PURE__ */ e(pe, {}),
|
|
183
183
|
"Annotations"
|
|
184
184
|
] }),
|
|
185
185
|
/* @__PURE__ */ e(P.Indicator, {})
|
|
186
186
|
] }),
|
|
187
|
-
/* @__PURE__ */ e(P.Content, { value: "bookmarks", children: /* @__PURE__ */ e(
|
|
188
|
-
/* @__PURE__ */ e(P.Content, { value: "annotations", children: /* @__PURE__ */ e(
|
|
187
|
+
/* @__PURE__ */ e(P.Content, { value: "bookmarks", children: /* @__PURE__ */ e(st, { onNavigate: n }) }),
|
|
188
|
+
/* @__PURE__ */ e(P.Content, { value: "annotations", children: /* @__PURE__ */ e(at, { onNavigate: n }) })
|
|
189
189
|
]
|
|
190
190
|
}
|
|
191
191
|
);
|
|
192
192
|
}
|
|
193
|
-
),
|
|
193
|
+
), dt = g(
|
|
194
194
|
({
|
|
195
195
|
openWith: n,
|
|
196
196
|
setOpen: t,
|
|
@@ -207,7 +207,7 @@ const X = T.ActionTrigger, He = () => ({
|
|
|
207
207
|
children: /* @__PURE__ */ s(G, { height: "100%", children: [
|
|
208
208
|
/* @__PURE__ */ e(Q, { children: /* @__PURE__ */ e(Z, { children: "Annotations" }) }),
|
|
209
209
|
/* @__PURE__ */ e(Y, { flex: 1, children: /* @__PURE__ */ e(
|
|
210
|
-
|
|
210
|
+
ct,
|
|
211
211
|
{
|
|
212
212
|
onNavigate: o,
|
|
213
213
|
defaultTab: n
|
|
@@ -218,44 +218,44 @@ const X = T.ActionTrigger, He = () => ({
|
|
|
218
218
|
] })
|
|
219
219
|
}
|
|
220
220
|
)
|
|
221
|
-
),
|
|
221
|
+
), ut = g(({ children: n }) => {
|
|
222
222
|
const t = m(), o = S(() => t?.spine.element$, [t]);
|
|
223
|
-
return o ? /* @__PURE__ */ e(
|
|
224
|
-
}),
|
|
223
|
+
return o ? /* @__PURE__ */ e(de, { children: _n(n, o) }) : null;
|
|
224
|
+
}), ht = ({
|
|
225
225
|
absolutePageIndex: n,
|
|
226
226
|
itemIndex: t
|
|
227
227
|
}) => {
|
|
228
228
|
const o = m();
|
|
229
229
|
return {
|
|
230
|
-
spineItem: S(() => o ? t !== void 0 ?
|
|
230
|
+
spineItem: S(() => o ? t !== void 0 ? ge(o.spine.spineItemsManager.get(t)) : n !== void 0 ? o.spine.pages.observeFromAbsolutePageIndex(n).pipe(
|
|
231
231
|
E((i) => o.spine.spineItemsManager.get(i?.itemIndex))
|
|
232
|
-
) :
|
|
232
|
+
) : Pe : Pe, [t, n, o])
|
|
233
233
|
};
|
|
234
|
-
},
|
|
234
|
+
}, pt = ({
|
|
235
235
|
absolutePageIndex: n,
|
|
236
236
|
itemIndex: t
|
|
237
237
|
}) => {
|
|
238
|
-
const { spineItem: o } =
|
|
239
|
-
() => o?.isReady$ ??
|
|
238
|
+
const { spineItem: o } = ht({ absolutePageIndex: n, itemIndex: t }), r = S(
|
|
239
|
+
() => o?.isReady$ ?? ge(!1),
|
|
240
240
|
[o]
|
|
241
241
|
);
|
|
242
242
|
return { spineItem: o, isReady: r };
|
|
243
|
-
},
|
|
243
|
+
}, gt = g(
|
|
244
244
|
({
|
|
245
245
|
absolutePageIndex: n,
|
|
246
246
|
left: t,
|
|
247
247
|
top: o,
|
|
248
248
|
width: r
|
|
249
249
|
}) => {
|
|
250
|
-
const { isReady: i } =
|
|
250
|
+
const { isReady: i } = pt({
|
|
251
251
|
absolutePageIndex: n
|
|
252
|
-
}), { data: a } =
|
|
252
|
+
}), { data: a } = fe(), l = a?.find(
|
|
253
253
|
(d) => d?.meta?.absolutePageIndex === n && !d.meta.isCfiRange
|
|
254
254
|
);
|
|
255
255
|
if (!i) return null;
|
|
256
256
|
const c = r * 0.1 / 2;
|
|
257
257
|
return /* @__PURE__ */ e(
|
|
258
|
-
|
|
258
|
+
ue,
|
|
259
259
|
{
|
|
260
260
|
present: !!l,
|
|
261
261
|
lazyMount: !0,
|
|
@@ -264,7 +264,7 @@ const X = T.ActionTrigger, He = () => ({
|
|
|
264
264
|
children: /* @__PURE__ */ e(
|
|
265
265
|
_,
|
|
266
266
|
{
|
|
267
|
-
"data-bookmark-area":
|
|
267
|
+
"data-bookmark-area": tt,
|
|
268
268
|
position: "absolute",
|
|
269
269
|
left: t + r,
|
|
270
270
|
transform: "translateX(-100%)",
|
|
@@ -287,11 +287,11 @@ const X = T.ActionTrigger, He = () => ({
|
|
|
287
287
|
}
|
|
288
288
|
);
|
|
289
289
|
}
|
|
290
|
-
),
|
|
290
|
+
), ft = g(() => {
|
|
291
291
|
const n = m(), t = S(() => n?.layoutInfo$, [n]);
|
|
292
|
-
return /* @__PURE__ */ e(
|
|
292
|
+
return /* @__PURE__ */ e(ut, { children: t?.pages.map(
|
|
293
293
|
({ absoluteLayout: { left: o, top: r, width: i } }, a) => /* @__PURE__ */ e(
|
|
294
|
-
|
|
294
|
+
gt,
|
|
295
295
|
{
|
|
296
296
|
absolutePageIndex: a,
|
|
297
297
|
left: o,
|
|
@@ -301,24 +301,24 @@ const X = T.ActionTrigger, He = () => ({
|
|
|
301
301
|
a
|
|
302
302
|
)
|
|
303
303
|
) });
|
|
304
|
-
}),
|
|
304
|
+
}), Ze = () => {
|
|
305
305
|
const n = m();
|
|
306
|
-
return
|
|
307
|
-
},
|
|
308
|
-
const n =
|
|
306
|
+
return ce(n) ? n : void 0;
|
|
307
|
+
}, re = !0, mt = () => {
|
|
308
|
+
const n = Ze(), { data: t } = fe();
|
|
309
309
|
$(() => n ? n.gestures.hooks.register(
|
|
310
310
|
"beforeTapGesture",
|
|
311
311
|
({ event$: r }) => r.pipe(
|
|
312
|
-
|
|
312
|
+
ke(n?.annotations.candidates$),
|
|
313
313
|
E(([i, a]) => {
|
|
314
|
-
if (!i.page) return
|
|
314
|
+
if (!i.page) return re;
|
|
315
315
|
const {
|
|
316
316
|
spineItem: l,
|
|
317
317
|
spineItemPageIndex: c,
|
|
318
318
|
spineItemPagePosition: d,
|
|
319
319
|
pageSize: u
|
|
320
320
|
} = i.page;
|
|
321
|
-
if (
|
|
321
|
+
if (Dn(
|
|
322
322
|
d,
|
|
323
323
|
{
|
|
324
324
|
type: "corner",
|
|
@@ -332,23 +332,23 @@ const X = T.ActionTrigger, He = () => ({
|
|
|
332
332
|
l,
|
|
333
333
|
c
|
|
334
334
|
);
|
|
335
|
-
if (!h) return
|
|
335
|
+
if (!h) return re;
|
|
336
336
|
const C = t?.find(
|
|
337
337
|
(R) => R?.meta?.absolutePageIndex === h.absolutePageIndex && R.meta.range === void 0
|
|
338
338
|
);
|
|
339
339
|
if (C)
|
|
340
|
-
return n?.annotations.delete(C.resource.id), !
|
|
340
|
+
return n?.annotations.delete(C.resource.id), !re;
|
|
341
341
|
if (a?.[h.absolutePageIndex])
|
|
342
342
|
return n?.annotations.annotateAbsolutePage({
|
|
343
343
|
absolutePageIndex: h.absolutePageIndex
|
|
344
|
-
}), !
|
|
344
|
+
}), !re;
|
|
345
345
|
}
|
|
346
|
-
return
|
|
346
|
+
return re;
|
|
347
347
|
})
|
|
348
348
|
)
|
|
349
349
|
) : void 0, [n, t]);
|
|
350
|
-
},
|
|
351
|
-
const n =
|
|
350
|
+
}, bt = () => {
|
|
351
|
+
const n = Ze();
|
|
352
352
|
H(
|
|
353
353
|
() => (
|
|
354
354
|
/**
|
|
@@ -357,7 +357,7 @@ const X = T.ActionTrigger, He = () => ({
|
|
|
357
357
|
n?.gestures.hooks.register(
|
|
358
358
|
"beforeTapGesture",
|
|
359
359
|
({ event$: t }) => t.pipe(
|
|
360
|
-
|
|
360
|
+
ke(n.selection.lastSelectionOnPointerdown$),
|
|
361
361
|
E(([{ event: o }, r]) => {
|
|
362
362
|
const i = o.event.target;
|
|
363
363
|
return !(i && n.annotations.isTargetWithinHighlight(i) || r);
|
|
@@ -367,31 +367,31 @@ const X = T.ActionTrigger, He = () => ({
|
|
|
367
367
|
),
|
|
368
368
|
[n]
|
|
369
369
|
);
|
|
370
|
-
},
|
|
370
|
+
}, Ce = en({
|
|
371
371
|
placement: "bottom-end",
|
|
372
372
|
pauseOnPageIdle: !0
|
|
373
|
-
}),
|
|
374
|
-
n.type === "loading" ? /* @__PURE__ */ e(
|
|
373
|
+
}), St = () => /* @__PURE__ */ e(ve, { children: /* @__PURE__ */ e(nn, { toaster: Ce, insetInline: { mdDown: "4" }, children: (n) => /* @__PURE__ */ s(J.Root, { width: { md: "sm" }, children: [
|
|
374
|
+
n.type === "loading" ? /* @__PURE__ */ e(tn, { size: "sm", color: "blue.solid" }) : /* @__PURE__ */ e(J.Indicator, {}),
|
|
375
375
|
/* @__PURE__ */ s(O, { gap: "1", flex: "1", maxWidth: "100%", children: [
|
|
376
376
|
n.title && /* @__PURE__ */ e(J.Title, { children: n.title }),
|
|
377
377
|
n.description && /* @__PURE__ */ e(J.Description, { children: n.description })
|
|
378
378
|
] }),
|
|
379
379
|
n.action && /* @__PURE__ */ e(J.ActionTrigger, { children: n.action.label }),
|
|
380
380
|
n.meta?.closable && /* @__PURE__ */ e(J.CloseTrigger, {})
|
|
381
|
-
] }) }) }),
|
|
381
|
+
] }) }) }), Ct = ({
|
|
382
382
|
children: n,
|
|
383
383
|
...t
|
|
384
384
|
}) => {
|
|
385
|
-
const o =
|
|
385
|
+
const o = he(() => ne({ default: Ge() })), r = he(
|
|
386
386
|
() => ne({ default: o.value.fontSizeMenuOpen })
|
|
387
|
-
), i =
|
|
387
|
+
), i = Se(
|
|
388
388
|
r
|
|
389
|
-
), a =
|
|
389
|
+
), a = T(
|
|
390
390
|
(h) => {
|
|
391
391
|
r.update(h);
|
|
392
392
|
},
|
|
393
393
|
[r]
|
|
394
|
-
), l =
|
|
394
|
+
), l = T(
|
|
395
395
|
(h) => {
|
|
396
396
|
o.update((C) => ({
|
|
397
397
|
...C,
|
|
@@ -399,16 +399,16 @@ const X = T.ActionTrigger, He = () => ({
|
|
|
399
399
|
}));
|
|
400
400
|
},
|
|
401
401
|
[o]
|
|
402
|
-
), c =
|
|
402
|
+
), c = he(
|
|
403
403
|
() => ne({ default: o.value.refitMenuOpen })
|
|
404
|
-
), d =
|
|
404
|
+
), d = T(
|
|
405
405
|
(h) => {
|
|
406
406
|
c.update(h);
|
|
407
407
|
},
|
|
408
408
|
[c]
|
|
409
|
-
), u =
|
|
409
|
+
), u = Se(
|
|
410
410
|
c
|
|
411
|
-
), p =
|
|
411
|
+
), p = On(t, Ln);
|
|
412
412
|
return $(() => {
|
|
413
413
|
o.update((h) => ({
|
|
414
414
|
...h,
|
|
@@ -427,40 +427,41 @@ const X = T.ActionTrigger, He = () => ({
|
|
|
427
427
|
a,
|
|
428
428
|
u,
|
|
429
429
|
d
|
|
430
|
-
]), /* @__PURE__ */ e(
|
|
431
|
-
},
|
|
432
|
-
({ children: n, ...t }) => /* @__PURE__ */ e(
|
|
433
|
-
),
|
|
430
|
+
]), /* @__PURE__ */ e(Oe.Provider, { value: o, children: n });
|
|
431
|
+
}, vt = g(
|
|
432
|
+
({ children: n, ...t }) => /* @__PURE__ */ e(Ct, { ...t, children: n })
|
|
433
|
+
), ae = A.forwardRef(
|
|
434
434
|
function(t, o) {
|
|
435
435
|
const { children: r, inputProps: i, rootRef: a, ...l } = t;
|
|
436
|
-
return /* @__PURE__ */ s(
|
|
437
|
-
/* @__PURE__ */ e(
|
|
438
|
-
/* @__PURE__ */ e(
|
|
439
|
-
r && /* @__PURE__ */ e(
|
|
436
|
+
return /* @__PURE__ */ s(ie.Item, { ref: a, ...l, children: [
|
|
437
|
+
/* @__PURE__ */ e(ie.ItemHiddenInput, { ref: o, ...i }),
|
|
438
|
+
/* @__PURE__ */ e(ie.ItemIndicator, {}),
|
|
439
|
+
r && /* @__PURE__ */ e(ie.ItemText, { children: r })
|
|
440
440
|
] });
|
|
441
441
|
}
|
|
442
|
-
),
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
/* @__PURE__ */
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
);
|
|
459
|
-
|
|
442
|
+
), Xe = ie.Root, Re = A.memo(function({
|
|
443
|
+
ref: t,
|
|
444
|
+
...o
|
|
445
|
+
}) {
|
|
446
|
+
const { marks: r, label: i, showValue: a, ...l } = o, c = o.defaultValue ?? o.value, d = r?.map((p) => typeof p == "number" ? { value: p, label: void 0 } : p), u = !!d?.some((p) => p.label);
|
|
447
|
+
return /* @__PURE__ */ s(M.Root, { ref: t, thumbAlignment: "center", ...l, children: [
|
|
448
|
+
i && !a && /* @__PURE__ */ e(M.Label, { children: i }),
|
|
449
|
+
i && a && /* @__PURE__ */ s(F, { justify: "space-between", children: [
|
|
450
|
+
/* @__PURE__ */ e(M.Label, { children: i }),
|
|
451
|
+
/* @__PURE__ */ e(M.ValueText, {})
|
|
452
|
+
] }),
|
|
453
|
+
/* @__PURE__ */ s(M.Control, { "data-has-mark-label": u || void 0, children: [
|
|
454
|
+
/* @__PURE__ */ e(M.Track, { children: /* @__PURE__ */ e(M.Range, {}) }),
|
|
455
|
+
/* @__PURE__ */ e(xt, { value: c }),
|
|
456
|
+
/* @__PURE__ */ e(kt, { marks: d })
|
|
457
|
+
] })
|
|
458
|
+
] });
|
|
459
|
+
});
|
|
460
|
+
function xt(n) {
|
|
460
461
|
const { value: t } = n;
|
|
461
|
-
return /* @__PURE__ */ e(
|
|
462
|
+
return /* @__PURE__ */ e(on, { each: t, children: (o, r) => /* @__PURE__ */ e(M.Thumb, { index: r, children: /* @__PURE__ */ e(M.HiddenInput, {}) }, r) });
|
|
462
463
|
}
|
|
463
|
-
const
|
|
464
|
+
const kt = A.forwardRef(
|
|
464
465
|
function(t, o) {
|
|
465
466
|
const { marks: r } = t;
|
|
466
467
|
return r?.length ? /* @__PURE__ */ e(M.MarkerGroup, { ref: o, children: r.map((i, a) => {
|
|
@@ -471,7 +472,7 @@ const xt = A.forwardRef(
|
|
|
471
472
|
] }, a);
|
|
472
473
|
}) }) : null;
|
|
473
474
|
}
|
|
474
|
-
),
|
|
475
|
+
), Te = [
|
|
475
476
|
{
|
|
476
477
|
value: "global",
|
|
477
478
|
references: ["global"]
|
|
@@ -484,15 +485,15 @@ const xt = A.forwardRef(
|
|
|
484
485
|
value: "screen",
|
|
485
486
|
references: ["mobile", "tablet", "desktop"]
|
|
486
487
|
}
|
|
487
|
-
],
|
|
488
|
+
], It = Te.map((n) => n.value), Ee = Te.flatMap(
|
|
488
489
|
(n) => n.references
|
|
489
|
-
),
|
|
490
|
+
), Ot = (n) => {
|
|
490
491
|
if (n)
|
|
491
|
-
return
|
|
492
|
+
return Te.find(
|
|
492
493
|
(t) => t.references.includes(n)
|
|
493
494
|
)?.value;
|
|
494
|
-
},
|
|
495
|
-
const n =
|
|
495
|
+
}, Rt = g(() => {
|
|
496
|
+
const n = qe(), {
|
|
496
497
|
fontSizeMenuOpen: t,
|
|
497
498
|
onFontSizeMenuOpenChange: o,
|
|
498
499
|
uncontrolledFontSize: r,
|
|
@@ -514,28 +515,28 @@ const xt = A.forwardRef(
|
|
|
514
515
|
"onFontSizeScopeChange",
|
|
515
516
|
"uncontrolledFontSize",
|
|
516
517
|
"fontSizeValues"
|
|
517
|
-
]), h =
|
|
518
|
+
]), h = Rn(u), [C, v] = w(
|
|
518
519
|
c ?? "global"
|
|
519
|
-
), R =
|
|
520
|
+
), R = T(
|
|
520
521
|
(f, K) => {
|
|
521
|
-
h.current ? h.current(f, K) : n.update((
|
|
522
|
-
...
|
|
522
|
+
h.current ? h.current(f, K) : n.update((Je) => ({
|
|
523
|
+
...Je,
|
|
523
524
|
uncontrolledFontSize: K
|
|
524
525
|
}));
|
|
525
526
|
},
|
|
526
527
|
[h, n]
|
|
527
|
-
), D =
|
|
528
|
+
), D = T(
|
|
528
529
|
(f) => d?.[f] ?? i,
|
|
529
530
|
[i, d]
|
|
530
|
-
), x =
|
|
531
|
+
), x = T(
|
|
531
532
|
(f) => {
|
|
532
533
|
const K = f.value;
|
|
533
534
|
p?.(K);
|
|
534
535
|
},
|
|
535
536
|
[p]
|
|
536
|
-
), L =
|
|
537
|
+
), L = T((f) => {
|
|
537
538
|
v(f.value);
|
|
538
|
-
}, []), I =
|
|
539
|
+
}, []), I = T(
|
|
539
540
|
(f) => {
|
|
540
541
|
const K = f.value[0] ?? 0;
|
|
541
542
|
R(C, K / 100);
|
|
@@ -563,12 +564,12 @@ const xt = A.forwardRef(
|
|
|
563
564
|
/* @__PURE__ */ e(N.Legend, { children: "Scope" }),
|
|
564
565
|
/* @__PURE__ */ e(N.HelperText, { children: "The scope to which apply the font size for this book." }),
|
|
565
566
|
/* @__PURE__ */ e(N.Content, { children: /* @__PURE__ */ e(
|
|
566
|
-
|
|
567
|
+
Xe,
|
|
567
568
|
{
|
|
568
569
|
onValueChange: x,
|
|
569
|
-
value:
|
|
570
|
+
value: Ot(c) ?? "global",
|
|
570
571
|
disabled: !p,
|
|
571
|
-
children: /* @__PURE__ */ e(F, { gap: 2, children:
|
|
572
|
+
children: /* @__PURE__ */ e(F, { gap: 2, children: It.map((f) => /* @__PURE__ */ e(ae, { value: f, children: f }, f)) })
|
|
572
573
|
}
|
|
573
574
|
) })
|
|
574
575
|
] }),
|
|
@@ -580,21 +581,21 @@ const xt = A.forwardRef(
|
|
|
580
581
|
fitted: !1,
|
|
581
582
|
size: "sm",
|
|
582
583
|
children: [
|
|
583
|
-
/* @__PURE__ */ e(P.List, { children:
|
|
584
|
+
/* @__PURE__ */ e(P.List, { children: Ee.map((f) => /* @__PURE__ */ s(
|
|
584
585
|
P.Trigger,
|
|
585
586
|
{
|
|
586
587
|
value: f,
|
|
587
588
|
textTransform: "capitalize",
|
|
588
589
|
disabled: f !== "global" && !c,
|
|
589
590
|
children: [
|
|
590
|
-
c === f && /* @__PURE__ */ e(
|
|
591
|
+
c === f && /* @__PURE__ */ e(gn, {}),
|
|
591
592
|
f
|
|
592
593
|
]
|
|
593
594
|
},
|
|
594
595
|
f
|
|
595
596
|
)) }),
|
|
596
|
-
|
|
597
|
-
|
|
597
|
+
Ee.map((f) => /* @__PURE__ */ e(P.Content, { value: f, children: /* @__PURE__ */ e(
|
|
598
|
+
Re,
|
|
598
599
|
{
|
|
599
600
|
label: "%",
|
|
600
601
|
value: [(D(f) ?? 1) * 100],
|
|
@@ -626,8 +627,8 @@ const xt = A.forwardRef(
|
|
|
626
627
|
] })
|
|
627
628
|
}
|
|
628
629
|
);
|
|
629
|
-
}),
|
|
630
|
-
const n = m(), t =
|
|
630
|
+
}), Tt = () => {
|
|
631
|
+
const n = m(), t = qe(), { fontSize: o, uncontrolledFontSize: r } = y([
|
|
631
632
|
"fontSize",
|
|
632
633
|
"uncontrolledFontSize",
|
|
633
634
|
"onFontSizeChange"
|
|
@@ -666,8 +667,8 @@ const xt = A.forwardRef(
|
|
|
666
667
|
bottom: 0,
|
|
667
668
|
right: 0
|
|
668
669
|
};
|
|
669
|
-
function
|
|
670
|
-
const [n, t] = w(null), [o, r] = w(zt), i =
|
|
670
|
+
function Mt() {
|
|
671
|
+
const [n, t] = w(null), [o, r] = w(zt), i = cn(
|
|
671
672
|
() => new ResizeObserver((a) => {
|
|
672
673
|
if (a[0]) {
|
|
673
674
|
const { x: l, y: c, width: d, height: u, top: p, left: h, bottom: C, right: v } = a[0].contentRect;
|
|
@@ -676,31 +677,31 @@ function Tt() {
|
|
|
676
677
|
}),
|
|
677
678
|
[]
|
|
678
679
|
);
|
|
679
|
-
return
|
|
680
|
+
return dn(() => {
|
|
680
681
|
if (n)
|
|
681
682
|
return i.observe(n), () => {
|
|
682
683
|
i.disconnect();
|
|
683
684
|
};
|
|
684
685
|
}, [n, i]), [t, o, n];
|
|
685
686
|
}
|
|
686
|
-
const
|
|
687
|
-
const r = m(), i =
|
|
687
|
+
const wt = (n, t, o) => {
|
|
688
|
+
const r = m(), i = Ue(r) ? r : void 0;
|
|
688
689
|
H(() => {
|
|
689
|
-
if (!i || !n) return
|
|
690
|
+
if (!i || !n) return Ie;
|
|
690
691
|
const a = t.layout.layout$.pipe(
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
), l =
|
|
692
|
+
Mn(t.layout.layoutInfo),
|
|
693
|
+
De($n)
|
|
694
|
+
), l = Nn(
|
|
694
695
|
n
|
|
695
696
|
).pipe(E((c) => c.some((d) => d.isIntersecting)));
|
|
696
697
|
return a.pipe(
|
|
697
|
-
|
|
698
|
+
Le(100, void 0, { trailing: !0 }),
|
|
698
699
|
V(() => l.pipe(
|
|
699
|
-
|
|
700
|
+
$e((c) => {
|
|
700
701
|
c || (n.innerHTML = "");
|
|
701
702
|
}),
|
|
702
|
-
|
|
703
|
-
|
|
703
|
+
se((c) => c),
|
|
704
|
+
Ne()
|
|
704
705
|
).pipe(
|
|
705
706
|
V(() => (n.innerHTML = "", i?.gallery.snapshot(
|
|
706
707
|
t,
|
|
@@ -710,10 +711,10 @@ const Mt = (n, t, o) => {
|
|
|
710
711
|
))
|
|
711
712
|
);
|
|
712
713
|
}, [i, t, o, n]);
|
|
713
|
-
},
|
|
714
|
+
}, yt = g(
|
|
714
715
|
({ item: n, onNavigated: t }) => {
|
|
715
|
-
const [o, r, i] =
|
|
716
|
-
|
|
716
|
+
const [o, r, i] = Mt(), a = m();
|
|
717
|
+
wt(i, n, r);
|
|
717
718
|
const l = S(
|
|
718
719
|
() => a?.locateResource(n, { mode: "shallow" }),
|
|
719
720
|
[a, n]
|
|
@@ -765,7 +766,7 @@ const Mt = (n, t, o) => {
|
|
|
765
766
|
}
|
|
766
767
|
);
|
|
767
768
|
}
|
|
768
|
-
),
|
|
769
|
+
), Pt = g(
|
|
769
770
|
({ open: n, setOpen: t }) => {
|
|
770
771
|
const o = m(), r = S(() => o?.spineItemsManager.items$, [o]);
|
|
771
772
|
return /* @__PURE__ */ e(
|
|
@@ -791,7 +792,7 @@ const Mt = (n, t, o) => {
|
|
|
791
792
|
pt: 2,
|
|
792
793
|
"data-grid": !0,
|
|
793
794
|
children: r?.map((i) => /* @__PURE__ */ e(
|
|
794
|
-
|
|
795
|
+
yt,
|
|
795
796
|
{
|
|
796
797
|
item: i,
|
|
797
798
|
onNavigated: () => {
|
|
@@ -808,7 +809,7 @@ const Mt = (n, t, o) => {
|
|
|
808
809
|
}
|
|
809
810
|
);
|
|
810
811
|
}
|
|
811
|
-
),
|
|
812
|
+
), Et = "@prose-reader/react-reader", At = "1.269.0", Bt = g(
|
|
812
813
|
({ open: n, setOpen: t }) => /* @__PURE__ */ e(
|
|
813
814
|
j,
|
|
814
815
|
{
|
|
@@ -830,28 +831,28 @@ const Mt = (n, t, o) => {
|
|
|
830
831
|
gap: 4,
|
|
831
832
|
children: [
|
|
832
833
|
/* @__PURE__ */ s(O, { children: [
|
|
833
|
-
/* @__PURE__ */ e(
|
|
834
|
+
/* @__PURE__ */ e(me, { mb: 2, as: "h3", size: "lg", children: "Shortcuts" }),
|
|
834
835
|
/* @__PURE__ */ s(F, { mb: 1, children: [
|
|
835
|
-
/* @__PURE__ */ e(
|
|
836
|
+
/* @__PURE__ */ e(we, { children: /* @__PURE__ */ e(fn, {}) }),
|
|
836
837
|
" ",
|
|
837
838
|
/* @__PURE__ */ e(b, { children: "Navigate to right page" })
|
|
838
839
|
] }),
|
|
839
840
|
/* @__PURE__ */ s(F, { mb: 1, children: [
|
|
840
|
-
/* @__PURE__ */ e(
|
|
841
|
+
/* @__PURE__ */ e(we, { children: /* @__PURE__ */ e(mn, {}) }),
|
|
841
842
|
" ",
|
|
842
843
|
/* @__PURE__ */ e(b, { children: "Navigate to left page" })
|
|
843
844
|
] })
|
|
844
845
|
] }),
|
|
845
846
|
/* @__PURE__ */ s(O, { children: [
|
|
846
|
-
/* @__PURE__ */ e(
|
|
847
|
+
/* @__PURE__ */ e(me, { mb: 2, as: "h3", size: "lg", children: "Bookmarks" }),
|
|
847
848
|
/* @__PURE__ */ e(F, { mb: 1, children: /* @__PURE__ */ e(b, { children: "Tap on the top right corner of a page bookmark it" }) })
|
|
848
849
|
] }),
|
|
849
850
|
/* @__PURE__ */ s(O, { children: [
|
|
850
|
-
/* @__PURE__ */ e(
|
|
851
|
+
/* @__PURE__ */ e(me, { mb: 2, as: "h3", size: "lg", children: "About" }),
|
|
851
852
|
/* @__PURE__ */ s(b, { children: [
|
|
852
|
-
|
|
853
|
+
Et,
|
|
853
854
|
" version: ",
|
|
854
|
-
|
|
855
|
+
At
|
|
855
856
|
] })
|
|
856
857
|
] })
|
|
857
858
|
]
|
|
@@ -865,7 +866,7 @@ const Mt = (n, t, o) => {
|
|
|
865
866
|
), te = () => {
|
|
866
867
|
const n = m();
|
|
867
868
|
return S(
|
|
868
|
-
() => n ?
|
|
869
|
+
() => n ? wn([n.pagination.state$, n.context]).pipe(
|
|
869
870
|
E(([t, o]) => {
|
|
870
871
|
const r = o.manifest?.spineItems.every(
|
|
871
872
|
(i) => i.mediaType?.startsWith("image/")
|
|
@@ -875,10 +876,10 @@ const Mt = (n, t, o) => {
|
|
|
875
876
|
hasChapters: !o.isFullyPrePaginated && !r
|
|
876
877
|
};
|
|
877
878
|
})
|
|
878
|
-
) :
|
|
879
|
+
) : Ie,
|
|
879
880
|
[n]
|
|
880
881
|
);
|
|
881
|
-
},
|
|
882
|
+
}, Ft = { _open: "fade-in", _closed: "fade-out" }, _t = () => {
|
|
882
883
|
const { enableFloatingProgress: n, quickMenuOpen: t } = y([
|
|
883
884
|
"enableFloatingProgress",
|
|
884
885
|
"quickMenuOpen"
|
|
@@ -886,10 +887,10 @@ const Mt = (n, t, o) => {
|
|
|
886
887
|
(o?.percentageEstimateOfBook ?? 0) * 100
|
|
887
888
|
), i = r > 0 ? r : 1;
|
|
888
889
|
return o?.percentageEstimateOfBook === void 0 || !n ? null : /* @__PURE__ */ e(
|
|
889
|
-
|
|
890
|
+
ue,
|
|
890
891
|
{
|
|
891
892
|
present: !t,
|
|
892
|
-
animationName:
|
|
893
|
+
animationName: Ft,
|
|
893
894
|
animationDuration: "moderate",
|
|
894
895
|
children: /* @__PURE__ */ e(
|
|
895
896
|
_,
|
|
@@ -911,7 +912,7 @@ const Mt = (n, t, o) => {
|
|
|
911
912
|
)
|
|
912
913
|
}
|
|
913
914
|
);
|
|
914
|
-
},
|
|
915
|
+
}, Dt = () => {
|
|
915
916
|
const [n, t] = w(/* @__PURE__ */ new Date());
|
|
916
917
|
return $(() => {
|
|
917
918
|
const o = setInterval(() => {
|
|
@@ -919,13 +920,13 @@ const Mt = (n, t, o) => {
|
|
|
919
920
|
}, 6e4);
|
|
920
921
|
return () => clearInterval(o);
|
|
921
922
|
}, []), n;
|
|
922
|
-
},
|
|
923
|
-
const t =
|
|
923
|
+
}, Lt = (n) => {
|
|
924
|
+
const t = Dt();
|
|
924
925
|
return /* @__PURE__ */ e(b, { fontSize: "md", ...n, children: t.toLocaleTimeString(navigator.language, {
|
|
925
926
|
hour: "2-digit",
|
|
926
927
|
minute: "2-digit"
|
|
927
928
|
}) });
|
|
928
|
-
},
|
|
929
|
+
}, $t = g(() => /* @__PURE__ */ e(
|
|
929
930
|
_,
|
|
930
931
|
{
|
|
931
932
|
position: "absolute",
|
|
@@ -937,13 +938,13 @@ const Mt = (n, t, o) => {
|
|
|
937
938
|
paintOrder: "stroke fill",
|
|
938
939
|
pointerEvents: "none",
|
|
939
940
|
letterSpacing: 1,
|
|
940
|
-
children: /* @__PURE__ */ e(
|
|
941
|
+
children: /* @__PURE__ */ e(Lt, {})
|
|
941
942
|
}
|
|
942
|
-
)),
|
|
943
|
+
)), Nt = () => {
|
|
943
944
|
const n = m();
|
|
944
945
|
H(
|
|
945
946
|
() => n?.links$.subscribe((t) => {
|
|
946
|
-
if (t.type === "click" &&
|
|
947
|
+
if (t.type === "click" && Vn(t.target, "a")) {
|
|
947
948
|
if (!t.target.href) return;
|
|
948
949
|
const o = new URL(t.target.href);
|
|
949
950
|
window.location.host !== o.host && confirm(
|
|
@@ -953,18 +954,18 @@ const Mt = (n, t, o) => {
|
|
|
953
954
|
}),
|
|
954
955
|
[n]
|
|
955
956
|
);
|
|
956
|
-
},
|
|
957
|
+
}, Vt = () => {
|
|
957
958
|
const { notificationsSubject: n } = y([
|
|
958
959
|
"notificationsSubject"
|
|
959
960
|
]);
|
|
960
961
|
H(
|
|
961
962
|
() => n.pipe(
|
|
962
|
-
|
|
963
|
-
|
|
964
|
-
const o = t.duration ?? 3e3, r = new
|
|
963
|
+
se(_e),
|
|
964
|
+
yn((t) => {
|
|
965
|
+
const o = t.duration ?? 3e3, r = new Pn((a) => {
|
|
965
966
|
try {
|
|
966
967
|
queueMicrotask(() => {
|
|
967
|
-
const l =
|
|
968
|
+
const l = Ce.create({
|
|
968
969
|
title: t.title,
|
|
969
970
|
description: t.description,
|
|
970
971
|
duration: o
|
|
@@ -975,20 +976,20 @@ const Mt = (n, t, o) => {
|
|
|
975
976
|
a.error(l);
|
|
976
977
|
}
|
|
977
978
|
}), i = n.pipe(
|
|
978
|
-
|
|
979
|
-
|
|
979
|
+
En(1),
|
|
980
|
+
se((a) => !!t.key && a?.key === t.key)
|
|
980
981
|
);
|
|
981
982
|
return r.pipe(
|
|
982
983
|
V(
|
|
983
|
-
(a) =>
|
|
984
|
-
|
|
985
|
-
t.abort ??
|
|
984
|
+
(a) => Ve(
|
|
985
|
+
We(o),
|
|
986
|
+
t.abort ?? Ie,
|
|
986
987
|
i
|
|
987
988
|
).pipe(
|
|
988
|
-
|
|
989
|
-
|
|
989
|
+
Ne(),
|
|
990
|
+
An(() => {
|
|
990
991
|
queueMicrotask(() => {
|
|
991
|
-
|
|
992
|
+
Ce.dismiss(a);
|
|
992
993
|
});
|
|
993
994
|
})
|
|
994
995
|
)
|
|
@@ -998,7 +999,7 @@ const Mt = (n, t, o) => {
|
|
|
998
999
|
),
|
|
999
1000
|
[n]
|
|
1000
1001
|
);
|
|
1001
|
-
},
|
|
1002
|
+
}, Wt = A.forwardRef(
|
|
1002
1003
|
function(t, o) {
|
|
1003
1004
|
const {
|
|
1004
1005
|
showArrow: r,
|
|
@@ -1015,7 +1016,7 @@ const Mt = (n, t, o) => {
|
|
|
1015
1016
|
positioning: { ...d.positioning, gutter: 4 },
|
|
1016
1017
|
children: [
|
|
1017
1018
|
/* @__PURE__ */ e(ee.Trigger, { asChild: !0, children: i }),
|
|
1018
|
-
/* @__PURE__ */ e(
|
|
1019
|
+
/* @__PURE__ */ e(ve, { disabled: !a, container: c, children: /* @__PURE__ */ e(ee.Positioner, { children: /* @__PURE__ */ s(
|
|
1019
1020
|
ee.Content,
|
|
1020
1021
|
{
|
|
1021
1022
|
width: "auto",
|
|
@@ -1034,29 +1035,29 @@ const Mt = (n, t, o) => {
|
|
|
1034
1035
|
}
|
|
1035
1036
|
);
|
|
1036
1037
|
}
|
|
1037
|
-
),
|
|
1038
|
+
), Ht = A.forwardRef(function(t, o) {
|
|
1038
1039
|
const { children: r, ...i } = t;
|
|
1039
|
-
return /* @__PURE__ */ e(
|
|
1040
|
+
return /* @__PURE__ */ e(Wt, { content: r, ...i, ref: o, children: /* @__PURE__ */ e(
|
|
1040
1041
|
k,
|
|
1041
1042
|
{
|
|
1042
1043
|
variant: "ghost",
|
|
1043
1044
|
"aria-label": "info",
|
|
1044
1045
|
size: "2xs",
|
|
1045
1046
|
colorPalette: "gray",
|
|
1046
|
-
children: /* @__PURE__ */ e(
|
|
1047
|
+
children: /* @__PURE__ */ e(Kn, {})
|
|
1047
1048
|
}
|
|
1048
1049
|
) });
|
|
1049
|
-
}),
|
|
1050
|
-
return /* @__PURE__ */ e(
|
|
1050
|
+
}), Gt = A.forwardRef(function(t, o) {
|
|
1051
|
+
return /* @__PURE__ */ e(le.Track, { ...t, ref: o, children: /* @__PURE__ */ e(le.Range, {}) });
|
|
1051
1052
|
});
|
|
1052
1053
|
A.forwardRef(function(t, o) {
|
|
1053
1054
|
const { children: r, info: i, ...a } = t;
|
|
1054
|
-
return /* @__PURE__ */ s(
|
|
1055
|
+
return /* @__PURE__ */ s(le.Label, { ...a, ref: o, children: [
|
|
1055
1056
|
r,
|
|
1056
|
-
i && /* @__PURE__ */ e(
|
|
1057
|
+
i && /* @__PURE__ */ e(Ht, { children: i })
|
|
1057
1058
|
] });
|
|
1058
1059
|
});
|
|
1059
|
-
const
|
|
1060
|
+
const qt = le.Root, jt = le.ValueText, ze = () => {
|
|
1060
1061
|
const n = te(), t = n?.numberOfTotalPages === 1, o = (n?.beginNumberOfPagesInSpineItem ?? 0) > 1, r = (n?.endNumberOfPagesInSpineItem ?? 0) > 1, i = (n?.hasChapters ? n?.beginPageIndexInSpineItem : n?.beginAbsolutePageIndex) ?? 0, a = (n?.hasChapters ? n?.endPageIndexInSpineItem : n?.endAbsolutePageIndex) ?? 0, [l = 0, c = 0] = [
|
|
1061
1062
|
i,
|
|
1062
1063
|
a
|
|
@@ -1072,7 +1073,7 @@ const Gt = ae.Root, qt = ae.ValueText, ze = () => {
|
|
|
1072
1073
|
leftPageIndex: l,
|
|
1073
1074
|
rightPageIndex: c
|
|
1074
1075
|
};
|
|
1075
|
-
},
|
|
1076
|
+
}, Ut = () => {
|
|
1076
1077
|
const n = te(), {
|
|
1077
1078
|
hasOnlyOnePage: t,
|
|
1078
1079
|
leftPageIndex: o,
|
|
@@ -1081,14 +1082,14 @@ const Gt = ae.Root, qt = ae.ValueText, ze = () => {
|
|
|
1081
1082
|
beginAndEndAreDifferent: a
|
|
1082
1083
|
} = ze(), l = Math.round((n?.percentageEstimateOfBook ?? 0) * 100), c = (u) => u?.subChapter ? `${u.title} / ${c(u.subChapter)}` : u?.title || "", d = c(n?.beginChapterInfo);
|
|
1083
1084
|
return /* @__PURE__ */ s(O, { alignItems: "center", gap: 1, maxW: "100%", overflow: "auto", children: [
|
|
1084
|
-
/* @__PURE__ */ e(
|
|
1085
|
-
/* @__PURE__ */ e(
|
|
1086
|
-
/* @__PURE__ */ e(
|
|
1085
|
+
/* @__PURE__ */ e(qt, { value: l, size: "xs", width: 150, children: /* @__PURE__ */ s(F, { justifyContent: "space-between", children: [
|
|
1086
|
+
/* @__PURE__ */ e(Gt, { width: 110 }),
|
|
1087
|
+
/* @__PURE__ */ e(jt, { children: `${l}%` })
|
|
1087
1088
|
] }) }),
|
|
1088
1089
|
/* @__PURE__ */ e(b, { truncate: !0, maxWidth: "100%", fontSize: "sm", mt: 1, children: d ? `Chapter: ${d}` : " " }),
|
|
1089
1090
|
!t && /* @__PURE__ */ s(F, { children: [
|
|
1090
1091
|
/* @__PURE__ */ e(b, { fontSize: "xs", children: a ? `${o + 1} - ${r + 1} of ${i}` : `${o + 1} of ${i}` }),
|
|
1091
|
-
!!n?.hasChapters && /* @__PURE__ */ s(
|
|
1092
|
+
!!n?.hasChapters && /* @__PURE__ */ s(de, { children: [
|
|
1092
1093
|
/* @__PURE__ */ e(b, { children: "-" }),
|
|
1093
1094
|
/* @__PURE__ */ s(b, { fontSize: "xs", children: [
|
|
1094
1095
|
"(",
|
|
@@ -1098,13 +1099,13 @@ const Gt = ae.Root, qt = ae.ValueText, ze = () => {
|
|
|
1098
1099
|
] })
|
|
1099
1100
|
] })
|
|
1100
1101
|
] });
|
|
1101
|
-
},
|
|
1102
|
+
}, Ke = g(
|
|
1102
1103
|
({
|
|
1103
1104
|
children: n,
|
|
1104
1105
|
position: t,
|
|
1105
1106
|
...o
|
|
1106
1107
|
}) => /* @__PURE__ */ e(
|
|
1107
|
-
|
|
1108
|
+
ue,
|
|
1108
1109
|
{
|
|
1109
1110
|
display: "flex",
|
|
1110
1111
|
flexDirection: "row",
|
|
@@ -1128,7 +1129,7 @@ const Gt = ae.Root, qt = ae.ValueText, ze = () => {
|
|
|
1128
1129
|
children: n
|
|
1129
1130
|
}
|
|
1130
1131
|
)
|
|
1131
|
-
),
|
|
1132
|
+
), Qt = rn(Jn), Yt = g((n) => /* @__PURE__ */ e(
|
|
1132
1133
|
_,
|
|
1133
1134
|
{
|
|
1134
1135
|
display: "contents",
|
|
@@ -1138,7 +1139,7 @@ const Gt = ae.Root, qt = ae.ValueText, ze = () => {
|
|
|
1138
1139
|
"--color-solid": "colors.colorPalette.solid"
|
|
1139
1140
|
},
|
|
1140
1141
|
children: /* @__PURE__ */ e(
|
|
1141
|
-
|
|
1142
|
+
Qt,
|
|
1142
1143
|
{
|
|
1143
1144
|
keyboard: !1,
|
|
1144
1145
|
style: {
|
|
@@ -1182,8 +1183,8 @@ const Gt = ae.Root, qt = ae.ValueText, ze = () => {
|
|
|
1182
1183
|
}
|
|
1183
1184
|
)
|
|
1184
1185
|
}
|
|
1185
|
-
)),
|
|
1186
|
-
const t = te()?.isUsingSpread, { beginPageIndex: o, totalApproximatePages: r = 0 } = ze(), i = t ? Math.floor((o || 0) / 2) : o, [a, l] =
|
|
1186
|
+
)), Zt = () => {
|
|
1187
|
+
const t = te()?.isUsingSpread, { beginPageIndex: o, totalApproximatePages: r = 0 } = ze(), i = t ? Math.floor((o || 0) / 2) : o, [a, l] = Tn(
|
|
1187
1188
|
() => ne({
|
|
1188
1189
|
default: i || 0
|
|
1189
1190
|
})
|
|
@@ -1199,8 +1200,8 @@ const Gt = ae.Root, qt = ae.ValueText, ze = () => {
|
|
|
1199
1200
|
min: c,
|
|
1200
1201
|
max: d
|
|
1201
1202
|
};
|
|
1202
|
-
},
|
|
1203
|
-
const t = m(), o = te(), { manifest: r } = S(() => t?.context, [t]) ?? {}, i = r?.readingDirection === "rtl", a = o?.isUsingSpread, { totalApproximatePages: l = 0, isBeginWithinChapter: c } = ze(), d = 1, u = c, { value: p, valueSignal: h, min: C, max: v } =
|
|
1203
|
+
}, Xt = (n) => {
|
|
1204
|
+
const t = m(), o = te(), { manifest: r } = S(() => t?.context, [t]) ?? {}, i = r?.readingDirection === "rtl", a = o?.isUsingSpread, { totalApproximatePages: l = 0, isBeginWithinChapter: c } = ze(), d = 1, u = c, { value: p, valueSignal: h, min: C, max: v } = Zt(), R = T(
|
|
1204
1205
|
(x) => {
|
|
1205
1206
|
const [L = 0] = Array.isArray(x) ? x : [x];
|
|
1206
1207
|
h.update(L);
|
|
@@ -1223,7 +1224,7 @@ const Gt = ae.Root, qt = ae.ValueText, ze = () => {
|
|
|
1223
1224
|
}),
|
|
1224
1225
|
[t, h]
|
|
1225
1226
|
), l === 1 || a && l === 2 ? /* @__PURE__ */ e(_, { style: n.style }) : /* @__PURE__ */ e(
|
|
1226
|
-
|
|
1227
|
+
Yt,
|
|
1227
1228
|
{
|
|
1228
1229
|
value: [p],
|
|
1229
1230
|
max: v,
|
|
@@ -1234,12 +1235,12 @@ const Gt = ae.Root, qt = ae.ValueText, ze = () => {
|
|
|
1234
1235
|
...n
|
|
1235
1236
|
}
|
|
1236
1237
|
);
|
|
1237
|
-
},
|
|
1238
|
+
}, Kt = g(
|
|
1238
1239
|
({
|
|
1239
1240
|
open: n,
|
|
1240
1241
|
onItemClick: t
|
|
1241
1242
|
}) => {
|
|
1242
|
-
const o =
|
|
1243
|
+
const o = un(null), r = m(), {
|
|
1243
1244
|
quickMenuBottomBarBoundingBoxSignal: i,
|
|
1244
1245
|
onFontSizeMenuOpenChange: a,
|
|
1245
1246
|
onRefitMenuOpenChange: l
|
|
@@ -1265,7 +1266,7 @@ const Gt = ae.Root, qt = ae.ValueText, ze = () => {
|
|
|
1265
1266
|
x.disconnect();
|
|
1266
1267
|
};
|
|
1267
1268
|
}, [i]), /* @__PURE__ */ s(
|
|
1268
|
-
|
|
1269
|
+
Ke,
|
|
1269
1270
|
{
|
|
1270
1271
|
present: n,
|
|
1271
1272
|
position: "bottom",
|
|
@@ -1294,7 +1295,7 @@ const Gt = ae.Root, qt = ae.ValueText, ze = () => {
|
|
|
1294
1295
|
flexShrink: 0,
|
|
1295
1296
|
onClick: () => r?.navigation.goToLeftOrTopSpineItem(),
|
|
1296
1297
|
disabled: !c?.canGoLeftSpineItem && !c?.canGoTopSpineItem,
|
|
1297
|
-
children: v ? /* @__PURE__ */ e(
|
|
1298
|
+
children: v ? /* @__PURE__ */ e(Qn, {}) : /* @__PURE__ */ e(Yn, {})
|
|
1298
1299
|
}
|
|
1299
1300
|
),
|
|
1300
1301
|
/* @__PURE__ */ s(
|
|
@@ -1307,9 +1308,9 @@ const Gt = ae.Root, qt = ae.ValueText, ze = () => {
|
|
|
1307
1308
|
overflow: "auto",
|
|
1308
1309
|
px: 4,
|
|
1309
1310
|
children: [
|
|
1310
|
-
/* @__PURE__ */ e(
|
|
1311
|
+
/* @__PURE__ */ e(Ut, {}),
|
|
1311
1312
|
/* @__PURE__ */ e(
|
|
1312
|
-
|
|
1313
|
+
Xt,
|
|
1313
1314
|
{
|
|
1314
1315
|
style: {
|
|
1315
1316
|
width: "100%",
|
|
@@ -1332,14 +1333,14 @@ const Gt = ae.Root, qt = ae.ValueText, ze = () => {
|
|
|
1332
1333
|
onClick: () => {
|
|
1333
1334
|
r?.navigation.goToRightOrBottomSpineItem();
|
|
1334
1335
|
},
|
|
1335
|
-
children: v ? /* @__PURE__ */ e(
|
|
1336
|
+
children: v ? /* @__PURE__ */ e(Zn, {}) : /* @__PURE__ */ e(Xn, {})
|
|
1336
1337
|
}
|
|
1337
1338
|
)
|
|
1338
1339
|
]
|
|
1339
1340
|
}
|
|
1340
1341
|
),
|
|
1341
1342
|
/* @__PURE__ */ e(F, { alignSelf: "stretch", alignItems: "center", justifyContent: "center", children: /* @__PURE__ */ s(
|
|
1342
|
-
|
|
1343
|
+
be.Root,
|
|
1343
1344
|
{
|
|
1344
1345
|
open: R,
|
|
1345
1346
|
flex: 1,
|
|
@@ -1349,14 +1350,14 @@ const Gt = ae.Root, qt = ae.ValueText, ze = () => {
|
|
|
1349
1350
|
width: "100%",
|
|
1350
1351
|
children: [
|
|
1351
1352
|
/* @__PURE__ */ e(
|
|
1352
|
-
|
|
1353
|
+
be.Trigger,
|
|
1353
1354
|
{
|
|
1354
1355
|
paddingY: "3",
|
|
1355
1356
|
width: "100%",
|
|
1356
1357
|
display: "flex",
|
|
1357
1358
|
justifyContent: "center",
|
|
1358
1359
|
children: /* @__PURE__ */ e(
|
|
1359
|
-
|
|
1360
|
+
bn,
|
|
1360
1361
|
{
|
|
1361
1362
|
style: {
|
|
1362
1363
|
transform: R ? "rotate(0deg)" : "rotate(180deg)"
|
|
@@ -1365,7 +1366,7 @@ const Gt = ae.Root, qt = ae.ValueText, ze = () => {
|
|
|
1365
1366
|
)
|
|
1366
1367
|
}
|
|
1367
1368
|
),
|
|
1368
|
-
/* @__PURE__ */ e(
|
|
1369
|
+
/* @__PURE__ */ e(be.Content, { display: "flex", justifyContent: "center", children: /* @__PURE__ */ s(_, { display: "flex", overflowX: "auto", px: 4, pb: 1, children: [
|
|
1369
1370
|
/* @__PURE__ */ e(
|
|
1370
1371
|
k,
|
|
1371
1372
|
{
|
|
@@ -1373,7 +1374,7 @@ const Gt = ae.Root, qt = ae.ValueText, ze = () => {
|
|
|
1373
1374
|
size: "lg",
|
|
1374
1375
|
variant: "ghost",
|
|
1375
1376
|
onClick: () => t("help"),
|
|
1376
|
-
children: /* @__PURE__ */ e(
|
|
1377
|
+
children: /* @__PURE__ */ e(Sn, {})
|
|
1377
1378
|
}
|
|
1378
1379
|
),
|
|
1379
1380
|
/* @__PURE__ */ e(
|
|
@@ -1383,17 +1384,17 @@ const Gt = ae.Root, qt = ae.ValueText, ze = () => {
|
|
|
1383
1384
|
size: "lg",
|
|
1384
1385
|
variant: "ghost",
|
|
1385
1386
|
onClick: () => t("toc"),
|
|
1386
|
-
children: /* @__PURE__ */ e(
|
|
1387
|
+
children: /* @__PURE__ */ e(Cn, {})
|
|
1387
1388
|
}
|
|
1388
1389
|
),
|
|
1389
|
-
|
|
1390
|
+
je(r) && /* @__PURE__ */ e(
|
|
1390
1391
|
k,
|
|
1391
1392
|
{
|
|
1392
1393
|
"aria-label": "Search",
|
|
1393
1394
|
size: "lg",
|
|
1394
1395
|
variant: "ghost",
|
|
1395
1396
|
onClick: () => t("search"),
|
|
1396
|
-
children: /* @__PURE__ */ e(
|
|
1397
|
+
children: /* @__PURE__ */ e(vn, {})
|
|
1397
1398
|
}
|
|
1398
1399
|
),
|
|
1399
1400
|
/* @__PURE__ */ e(
|
|
@@ -1408,7 +1409,7 @@ const Gt = ae.Root, qt = ae.ValueText, ze = () => {
|
|
|
1408
1409
|
scale: 2
|
|
1409
1410
|
});
|
|
1410
1411
|
},
|
|
1411
|
-
children: p ? /* @__PURE__ */ e(
|
|
1412
|
+
children: p ? /* @__PURE__ */ e(xn, {}) : /* @__PURE__ */ e(kn, {})
|
|
1412
1413
|
}
|
|
1413
1414
|
),
|
|
1414
1415
|
/* @__PURE__ */ e(
|
|
@@ -1420,30 +1421,30 @@ const Gt = ae.Root, qt = ae.ValueText, ze = () => {
|
|
|
1420
1421
|
a(!0);
|
|
1421
1422
|
},
|
|
1422
1423
|
variant: "ghost",
|
|
1423
|
-
children: /* @__PURE__ */ e(
|
|
1424
|
+
children: /* @__PURE__ */ e(Wn, {})
|
|
1424
1425
|
}
|
|
1425
1426
|
),
|
|
1426
|
-
|
|
1427
|
+
ce(r) && /* @__PURE__ */ e(
|
|
1427
1428
|
k,
|
|
1428
1429
|
{
|
|
1429
1430
|
"aria-label": "Bookmarks",
|
|
1430
1431
|
size: "lg",
|
|
1431
1432
|
variant: "ghost",
|
|
1432
1433
|
onClick: () => t("bookmarks"),
|
|
1433
|
-
children: /* @__PURE__ */ e(
|
|
1434
|
+
children: /* @__PURE__ */ e(Hn, {})
|
|
1434
1435
|
}
|
|
1435
1436
|
),
|
|
1436
|
-
|
|
1437
|
+
ce(r) && /* @__PURE__ */ e(
|
|
1437
1438
|
k,
|
|
1438
1439
|
{
|
|
1439
1440
|
"aria-label": "Annotations",
|
|
1440
1441
|
size: "lg",
|
|
1441
1442
|
variant: "ghost",
|
|
1442
1443
|
onClick: () => t("annotations"),
|
|
1443
|
-
children: /* @__PURE__ */ e(
|
|
1444
|
+
children: /* @__PURE__ */ e(pe, {})
|
|
1444
1445
|
}
|
|
1445
1446
|
),
|
|
1446
|
-
|
|
1447
|
+
Qe(r) && /* @__PURE__ */ e(
|
|
1447
1448
|
k,
|
|
1448
1449
|
{
|
|
1449
1450
|
"aria-label": "Refit",
|
|
@@ -1453,7 +1454,7 @@ const Gt = ae.Root, qt = ae.ValueText, ze = () => {
|
|
|
1453
1454
|
l(!0);
|
|
1454
1455
|
},
|
|
1455
1456
|
disabled: !C,
|
|
1456
|
-
children: /* @__PURE__ */ e(
|
|
1457
|
+
children: /* @__PURE__ */ e(Gn, {})
|
|
1457
1458
|
}
|
|
1458
1459
|
),
|
|
1459
1460
|
/* @__PURE__ */ e(
|
|
@@ -1468,17 +1469,17 @@ const Gt = ae.Root, qt = ae.ValueText, ze = () => {
|
|
|
1468
1469
|
scale: 0.5
|
|
1469
1470
|
});
|
|
1470
1471
|
},
|
|
1471
|
-
children: /* @__PURE__ */ e(
|
|
1472
|
+
children: /* @__PURE__ */ e(In, {})
|
|
1472
1473
|
}
|
|
1473
1474
|
),
|
|
1474
|
-
|
|
1475
|
+
Ue(r) && /* @__PURE__ */ e(
|
|
1475
1476
|
k,
|
|
1476
1477
|
{
|
|
1477
1478
|
"aria-label": "Gallery",
|
|
1478
1479
|
size: "lg",
|
|
1479
1480
|
variant: "ghost",
|
|
1480
1481
|
onClick: () => t("gallery"),
|
|
1481
|
-
children: /* @__PURE__ */ e(
|
|
1482
|
+
children: /* @__PURE__ */ e(Un, {})
|
|
1482
1483
|
}
|
|
1483
1484
|
)
|
|
1484
1485
|
] }) })
|
|
@@ -1489,8 +1490,8 @@ const Gt = ae.Root, qt = ae.ValueText, ze = () => {
|
|
|
1489
1490
|
}
|
|
1490
1491
|
);
|
|
1491
1492
|
}
|
|
1492
|
-
),
|
|
1493
|
-
const [n, t] = w(!1), o =
|
|
1493
|
+
), Jt = () => {
|
|
1494
|
+
const [n, t] = w(!1), o = T(() => document.fullscreenElement ? document.exitFullscreen().catch(console.error).then(() => {
|
|
1494
1495
|
t(!1);
|
|
1495
1496
|
}) : document.documentElement.requestFullscreen({ navigationUI: "hide" }).catch(console.error).then(() => {
|
|
1496
1497
|
t(!0);
|
|
@@ -1506,14 +1507,14 @@ const Gt = ae.Root, qt = ae.ValueText, ze = () => {
|
|
|
1506
1507
|
isFullscreen: n,
|
|
1507
1508
|
onToggleFullscreenClick: o
|
|
1508
1509
|
};
|
|
1509
|
-
},
|
|
1510
|
+
}, eo = g(
|
|
1510
1511
|
({
|
|
1511
1512
|
open: n,
|
|
1512
1513
|
onItemClick: t
|
|
1513
1514
|
}) => {
|
|
1514
|
-
const o = m(), r = S(() => o?.context.manifest$, [o]), { isFullscreen: i, onToggleFullscreenClick: a } =
|
|
1515
|
+
const o = m(), r = S(() => o?.context.manifest$, [o]), { isFullscreen: i, onToggleFullscreenClick: a } = Jt();
|
|
1515
1516
|
return /* @__PURE__ */ s(
|
|
1516
|
-
|
|
1517
|
+
Ke,
|
|
1517
1518
|
{
|
|
1518
1519
|
present: n,
|
|
1519
1520
|
position: "top",
|
|
@@ -1528,7 +1529,7 @@ const Gt = ae.Root, qt = ae.ValueText, ze = () => {
|
|
|
1528
1529
|
variant: "ghost",
|
|
1529
1530
|
flexShrink: 0,
|
|
1530
1531
|
onClick: () => t("back"),
|
|
1531
|
-
children: /* @__PURE__ */ e(
|
|
1532
|
+
children: /* @__PURE__ */ e(et, {})
|
|
1532
1533
|
}
|
|
1533
1534
|
),
|
|
1534
1535
|
/* @__PURE__ */ e(
|
|
@@ -1552,7 +1553,7 @@ const Gt = ae.Root, qt = ae.ValueText, ze = () => {
|
|
|
1552
1553
|
flexShrink: 0,
|
|
1553
1554
|
variant: "ghost",
|
|
1554
1555
|
onClick: () => t("more"),
|
|
1555
|
-
children: /* @__PURE__ */ e(
|
|
1556
|
+
children: /* @__PURE__ */ e(nt, {})
|
|
1556
1557
|
}
|
|
1557
1558
|
),
|
|
1558
1559
|
/* @__PURE__ */ e(
|
|
@@ -1563,7 +1564,7 @@ const Gt = ae.Root, qt = ae.ValueText, ze = () => {
|
|
|
1563
1564
|
flexShrink: 0,
|
|
1564
1565
|
variant: "ghost",
|
|
1565
1566
|
onClick: a,
|
|
1566
|
-
children: i ? /* @__PURE__ */ e(
|
|
1567
|
+
children: i ? /* @__PURE__ */ e(qn, {}) : /* @__PURE__ */ e(jn, {})
|
|
1567
1568
|
}
|
|
1568
1569
|
)
|
|
1569
1570
|
] })
|
|
@@ -1571,7 +1572,7 @@ const Gt = ae.Root, qt = ae.ValueText, ze = () => {
|
|
|
1571
1572
|
}
|
|
1572
1573
|
);
|
|
1573
1574
|
}
|
|
1574
|
-
),
|
|
1575
|
+
), Me = () => {
|
|
1575
1576
|
const {
|
|
1576
1577
|
quickMenuOpen: n,
|
|
1577
1578
|
onQuickMenuOpenChange: t,
|
|
@@ -1587,24 +1588,24 @@ const Gt = ae.Root, qt = ae.ValueText, ze = () => {
|
|
|
1587
1588
|
n ?? o,
|
|
1588
1589
|
t ?? r
|
|
1589
1590
|
];
|
|
1590
|
-
},
|
|
1591
|
+
}, no = g(
|
|
1591
1592
|
({
|
|
1592
1593
|
onItemClick: n
|
|
1593
1594
|
}) => {
|
|
1594
|
-
const [t] =
|
|
1595
|
+
const [t] = Me(), { refitMenuOpen: o, fontSizeMenuOpen: r } = y([
|
|
1595
1596
|
"refitMenuOpen",
|
|
1596
1597
|
"fontSizeMenuOpen"
|
|
1597
1598
|
]);
|
|
1598
|
-
return /* @__PURE__ */ s(
|
|
1599
|
+
return /* @__PURE__ */ s(de, { children: [
|
|
1599
1600
|
/* @__PURE__ */ e(
|
|
1600
|
-
|
|
1601
|
+
eo,
|
|
1601
1602
|
{
|
|
1602
1603
|
open: t && !o && !r,
|
|
1603
1604
|
onItemClick: n
|
|
1604
1605
|
}
|
|
1605
1606
|
),
|
|
1606
1607
|
/* @__PURE__ */ e(
|
|
1607
|
-
|
|
1608
|
+
Kt,
|
|
1608
1609
|
{
|
|
1609
1610
|
open: t && !o && !r,
|
|
1610
1611
|
onItemClick: n
|
|
@@ -1612,19 +1613,19 @@ const Gt = ae.Root, qt = ae.ValueText, ze = () => {
|
|
|
1612
1613
|
)
|
|
1613
1614
|
] });
|
|
1614
1615
|
}
|
|
1615
|
-
),
|
|
1616
|
-
const [n, t] =
|
|
1616
|
+
), to = () => {
|
|
1617
|
+
const [n, t] = Me(), o = m();
|
|
1617
1618
|
H(() => o?.gestures.gestures$.pipe(
|
|
1618
|
-
|
|
1619
|
-
|
|
1619
|
+
se((r) => r.type === "tap" && !r.handled),
|
|
1620
|
+
ke(
|
|
1620
1621
|
o.selection.selection$,
|
|
1621
1622
|
o.selection.lastSelectionOnPointerdown$
|
|
1622
1623
|
),
|
|
1623
|
-
|
|
1624
|
+
$e(([, r, i]) => {
|
|
1624
1625
|
t(r || i ? !1 : (a) => !a);
|
|
1625
1626
|
})
|
|
1626
1627
|
), [o]);
|
|
1627
|
-
},
|
|
1628
|
+
}, oo = A.forwardRef(
|
|
1628
1629
|
function(t, o) {
|
|
1629
1630
|
const { label: r, children: i, helperText: a, errorText: l, optionalText: c, ...d } = t;
|
|
1630
1631
|
return /* @__PURE__ */ s(oe.Root, { ref: o, ...d, children: [
|
|
@@ -1637,11 +1638,11 @@ const Gt = ae.Root, qt = ae.ValueText, ze = () => {
|
|
|
1637
1638
|
l && /* @__PURE__ */ e(oe.ErrorText, { children: l })
|
|
1638
1639
|
] });
|
|
1639
1640
|
}
|
|
1640
|
-
),
|
|
1641
|
+
), ro = g(() => {
|
|
1641
1642
|
const { refitMenuOpen: t, onRefitMenuOpenChange: o } = y([
|
|
1642
1643
|
"refitMenuOpen",
|
|
1643
1644
|
"onRefitMenuOpenChange"
|
|
1644
|
-
]), r = m(), i =
|
|
1645
|
+
]), r = m(), i = Qe(r) ? r : void 0, a = S(
|
|
1645
1646
|
() => i?.refit.settings$,
|
|
1646
1647
|
[i]
|
|
1647
1648
|
);
|
|
@@ -1657,8 +1658,8 @@ const Gt = ae.Root, qt = ae.ValueText, ze = () => {
|
|
|
1657
1658
|
/* @__PURE__ */ e(Y, { children: /* @__PURE__ */ s(N.Root, { children: [
|
|
1658
1659
|
/* @__PURE__ */ e(N.HelperText, { children: "Adjust the viewport for a more comfortable reading experience." }),
|
|
1659
1660
|
/* @__PURE__ */ s(N.Content, { children: [
|
|
1660
|
-
/* @__PURE__ */ e(
|
|
1661
|
-
|
|
1661
|
+
/* @__PURE__ */ e(oo, { label: "Profile", children: /* @__PURE__ */ e(
|
|
1662
|
+
Xe,
|
|
1662
1663
|
{
|
|
1663
1664
|
defaultValue: "fit",
|
|
1664
1665
|
onValueChange: (l) => {
|
|
@@ -1670,15 +1671,15 @@ const Gt = ae.Root, qt = ae.ValueText, ze = () => {
|
|
|
1670
1671
|
},
|
|
1671
1672
|
value: a?.viewportFit ?? "fit",
|
|
1672
1673
|
children: /* @__PURE__ */ s(O, { gap: 2, children: [
|
|
1673
|
-
/* @__PURE__ */ e(
|
|
1674
|
-
/* @__PURE__ */ e(
|
|
1675
|
-
/* @__PURE__ */ e(
|
|
1676
|
-
/* @__PURE__ */ e(
|
|
1674
|
+
/* @__PURE__ */ e(ae, { value: "desktop", children: "Desktop" }),
|
|
1675
|
+
/* @__PURE__ */ e(ae, { value: "tablet", children: "Tablet" }),
|
|
1676
|
+
/* @__PURE__ */ e(ae, { value: "fit", children: "Full width (default)" }),
|
|
1677
|
+
/* @__PURE__ */ e(ae, { value: "custom", children: "Custom" })
|
|
1677
1678
|
] })
|
|
1678
1679
|
}
|
|
1679
1680
|
) }),
|
|
1680
1681
|
/* @__PURE__ */ e(
|
|
1681
|
-
|
|
1682
|
+
Re,
|
|
1682
1683
|
{
|
|
1683
1684
|
label: "Maximum width (%)",
|
|
1684
1685
|
showValue: !0,
|
|
@@ -1702,7 +1703,7 @@ const Gt = ae.Root, qt = ae.ValueText, ze = () => {
|
|
|
1702
1703
|
] })
|
|
1703
1704
|
}
|
|
1704
1705
|
);
|
|
1705
|
-
}),
|
|
1706
|
+
}), io = g(
|
|
1706
1707
|
({
|
|
1707
1708
|
contextText: n = "",
|
|
1708
1709
|
startOffset: t = 0,
|
|
@@ -1722,7 +1723,7 @@ const Gt = ae.Root, qt = ae.ValueText, ze = () => {
|
|
|
1722
1723
|
)
|
|
1723
1724
|
);
|
|
1724
1725
|
return /* @__PURE__ */ s(
|
|
1725
|
-
|
|
1726
|
+
xe,
|
|
1726
1727
|
{
|
|
1727
1728
|
href: r,
|
|
1728
1729
|
style: { margin: 5, overflow: "hidden" },
|
|
@@ -1746,16 +1747,16 @@ const Gt = ae.Root, qt = ae.ValueText, ze = () => {
|
|
|
1746
1747
|
}
|
|
1747
1748
|
);
|
|
1748
1749
|
}
|
|
1749
|
-
),
|
|
1750
|
-
const n =
|
|
1751
|
-
|
|
1750
|
+
), ao = 500, lo = () => {
|
|
1751
|
+
const n = he(() => new Bn("")), t = S(n), o = m(), r = je(o) ? o : void 0, i = S(() => n.pipe(
|
|
1752
|
+
De(),
|
|
1752
1753
|
V(
|
|
1753
|
-
(a) => a === "" || !r ?
|
|
1754
|
-
|
|
1754
|
+
(a) => a === "" || !r ? ge(void 0) : Ve(
|
|
1755
|
+
ge({
|
|
1755
1756
|
type: "start",
|
|
1756
1757
|
data: void 0
|
|
1757
1758
|
}),
|
|
1758
|
-
|
|
1759
|
+
We(ao).pipe(
|
|
1759
1760
|
V(() => r.search.search(a)),
|
|
1760
1761
|
E((l) => ({ type: "end", data: l }))
|
|
1761
1762
|
)
|
|
@@ -1768,11 +1769,11 @@ const Gt = ae.Root, qt = ae.ValueText, ze = () => {
|
|
|
1768
1769
|
status: i?.type ?? "idle",
|
|
1769
1770
|
data: i?.data
|
|
1770
1771
|
};
|
|
1771
|
-
},
|
|
1772
|
+
}, so = g(
|
|
1772
1773
|
({ onNavigate: n }) => {
|
|
1773
|
-
const t = m(), { value: o, setValue: r, status: i, data: a } =
|
|
1774
|
+
const t = m(), { value: o, setValue: r, status: i, data: a } = lo(), l = (u) => {
|
|
1774
1775
|
r(u.target.value);
|
|
1775
|
-
}, c =
|
|
1776
|
+
}, c = T(
|
|
1776
1777
|
(u) => {
|
|
1777
1778
|
n(), t?.navigation.goToCfi(u);
|
|
1778
1779
|
},
|
|
@@ -1783,7 +1784,7 @@ const Gt = ae.Root, qt = ae.ValueText, ze = () => {
|
|
|
1783
1784
|
);
|
|
1784
1785
|
return /* @__PURE__ */ s(O, { flex: 1, height: "100%", gap: 2, children: [
|
|
1785
1786
|
/* @__PURE__ */ e(
|
|
1786
|
-
|
|
1787
|
+
an,
|
|
1787
1788
|
{
|
|
1788
1789
|
placeholder: "Type something...",
|
|
1789
1790
|
value: o,
|
|
@@ -1813,7 +1814,7 @@ const Gt = ae.Root, qt = ae.ValueText, ze = () => {
|
|
|
1813
1814
|
" result(s)"
|
|
1814
1815
|
] }),
|
|
1815
1816
|
/* @__PURE__ */ e(O, { gap: 0, children: d?.map((u, p) => /* @__PURE__ */ e(
|
|
1816
|
-
|
|
1817
|
+
io,
|
|
1817
1818
|
{
|
|
1818
1819
|
contextText: u.meta?.range?.startContainer.parentElement?.textContent ?? "",
|
|
1819
1820
|
pageIndex: u.meta?.itemPageIndex,
|
|
@@ -1831,7 +1832,7 @@ const Gt = ae.Root, qt = ae.ValueText, ze = () => {
|
|
|
1831
1832
|
)
|
|
1832
1833
|
] });
|
|
1833
1834
|
}
|
|
1834
|
-
),
|
|
1835
|
+
), co = g(
|
|
1835
1836
|
({
|
|
1836
1837
|
open: n,
|
|
1837
1838
|
setOpen: t,
|
|
@@ -1847,13 +1848,13 @@ const Gt = ae.Root, qt = ae.ValueText, ze = () => {
|
|
|
1847
1848
|
scrollBehavior: "inside",
|
|
1848
1849
|
children: /* @__PURE__ */ s(G, { height: "100%", children: [
|
|
1849
1850
|
/* @__PURE__ */ e(Q, { children: /* @__PURE__ */ e(Z, { children: "Search" }) }),
|
|
1850
|
-
/* @__PURE__ */ e(Y, { flex: 1, p: 0, children: /* @__PURE__ */ e(
|
|
1851
|
+
/* @__PURE__ */ e(Y, { flex: 1, p: 0, children: /* @__PURE__ */ e(so, { onNavigate: o }) }),
|
|
1851
1852
|
/* @__PURE__ */ e(U, { children: /* @__PURE__ */ e(X, { asChild: !0, children: /* @__PURE__ */ e(W, { variant: "outline", children: "Cancel" }) }) }),
|
|
1852
1853
|
/* @__PURE__ */ e(q, {})
|
|
1853
1854
|
] })
|
|
1854
1855
|
}
|
|
1855
1856
|
)
|
|
1856
|
-
),
|
|
1857
|
+
), uo = g(
|
|
1857
1858
|
({ onNavigate: n }) => {
|
|
1858
1859
|
const t = m(), { manifest: o, assumedRenditionLayout: r } = S(() => t?.context, [t]) ?? {}, { nav: i } = o ?? {}, a = te();
|
|
1859
1860
|
i?.toc;
|
|
@@ -1861,7 +1862,7 @@ const Gt = ae.Root, qt = ae.ValueText, ze = () => {
|
|
|
1861
1862
|
let u = a?.beginChapterInfo;
|
|
1862
1863
|
for (; u?.subChapter; )
|
|
1863
1864
|
u = u?.subChapter;
|
|
1864
|
-
const p = (h, C, v) => /* @__PURE__ */ s(
|
|
1865
|
+
const p = (h, C, v) => /* @__PURE__ */ s(ln.Fragment, { children: [
|
|
1865
1866
|
/* @__PURE__ */ e(
|
|
1866
1867
|
B.Item,
|
|
1867
1868
|
{
|
|
@@ -1871,15 +1872,15 @@ const Gt = ae.Root, qt = ae.ValueText, ze = () => {
|
|
|
1871
1872
|
alignItems: "center"
|
|
1872
1873
|
},
|
|
1873
1874
|
children: /* @__PURE__ */ s(
|
|
1874
|
-
|
|
1875
|
+
xe,
|
|
1875
1876
|
{
|
|
1876
1877
|
onClick: () => {
|
|
1877
1878
|
n(), t?.navigation.goToUrl(h.href);
|
|
1878
1879
|
},
|
|
1879
1880
|
href: "#",
|
|
1880
1881
|
children: [
|
|
1881
|
-
u?.path === h.path && /* @__PURE__ */ e(B.Indicator, { asChild: !0, children: /* @__PURE__ */ e(
|
|
1882
|
-
u?.path !== h.path && /* @__PURE__ */ e(B.Indicator, { asChild: !0, visibility: "hidden", children: /* @__PURE__ */ e(
|
|
1882
|
+
u?.path === h.path && /* @__PURE__ */ e(B.Indicator, { asChild: !0, children: /* @__PURE__ */ e(ye, {}) }),
|
|
1883
|
+
u?.path !== h.path && /* @__PURE__ */ e(B.Indicator, { asChild: !0, visibility: "hidden", children: /* @__PURE__ */ e(ye, {}) }),
|
|
1883
1884
|
/* @__PURE__ */ s(O, { gap: 0, children: [
|
|
1884
1885
|
/* @__PURE__ */ e(b, { fontSize: "md", children: h.title || h.path }),
|
|
1885
1886
|
u?.path === h.path && /* @__PURE__ */ e(
|
|
@@ -1903,7 +1904,7 @@ const Gt = ae.Root, qt = ae.ValueText, ze = () => {
|
|
|
1903
1904
|
] }, C);
|
|
1904
1905
|
return /* @__PURE__ */ e(B.Root, { gap: 3, overflowY: "auto", py: 4, flex: 1, children: i?.toc.map((h, C) => p(h, C, 0)) });
|
|
1905
1906
|
}
|
|
1906
|
-
),
|
|
1907
|
+
), ho = g(
|
|
1907
1908
|
({
|
|
1908
1909
|
open: n,
|
|
1909
1910
|
setOpen: t,
|
|
@@ -1919,37 +1920,37 @@ const Gt = ae.Root, qt = ae.ValueText, ze = () => {
|
|
|
1919
1920
|
scrollBehavior: "inside",
|
|
1920
1921
|
children: /* @__PURE__ */ s(G, { children: [
|
|
1921
1922
|
/* @__PURE__ */ e(Q, { children: /* @__PURE__ */ e(Z, { children: "Table of Contents" }) }),
|
|
1922
|
-
/* @__PURE__ */ e(Y, { overflowY: "auto", flex: 1, children: /* @__PURE__ */ e(
|
|
1923
|
+
/* @__PURE__ */ e(Y, { overflowY: "auto", flex: 1, children: /* @__PURE__ */ e(uo, { onNavigate: o }) }),
|
|
1923
1924
|
/* @__PURE__ */ e(U, { children: /* @__PURE__ */ e(X, { asChild: !0, children: /* @__PURE__ */ e(W, { variant: "outline", children: "Cancel" }) }) }),
|
|
1924
1925
|
/* @__PURE__ */ e(q, {})
|
|
1925
1926
|
] })
|
|
1926
1927
|
}
|
|
1927
1928
|
)
|
|
1928
|
-
),
|
|
1929
|
+
), po = () => {
|
|
1929
1930
|
const n = m(), { zoomMaxScale: t } = y(["zoomMaxScale"]);
|
|
1930
1931
|
$(
|
|
1931
1932
|
function() {
|
|
1932
1933
|
n?.gestures.settings.update({
|
|
1933
|
-
zoomMaxScale: t ??
|
|
1934
|
+
zoomMaxScale: t ?? He
|
|
1934
1935
|
});
|
|
1935
1936
|
},
|
|
1936
1937
|
[n, t]
|
|
1937
1938
|
);
|
|
1938
|
-
},
|
|
1939
|
+
}, Ae = 0.5, Be = 1, go = (n, t, o, r) => {
|
|
1939
1940
|
if (n > t && n < t + r)
|
|
1940
1941
|
return t + r;
|
|
1941
1942
|
const i = Math.min(Math.max(n, t), o), a = Math.round((i - t) / r) * r + t;
|
|
1942
1943
|
return Math.round(a * 100) / 100;
|
|
1943
|
-
},
|
|
1944
|
-
const { quickMenuBottomBarBoundingBoxSignal: n, zoomMaxScale: t =
|
|
1944
|
+
}, fo = g(() => {
|
|
1945
|
+
const { quickMenuBottomBarBoundingBoxSignal: n, zoomMaxScale: t = He } = y([
|
|
1945
1946
|
"quickMenuBottomBarBoundingBoxSignal",
|
|
1946
1947
|
"zoomMaxScale"
|
|
1947
|
-
]), o =
|
|
1948
|
+
]), o = Se(
|
|
1948
1949
|
n
|
|
1949
1950
|
), r = m(), i = S(
|
|
1950
1951
|
() => r?.zoom.state$.pipe(
|
|
1951
1952
|
E((d) => d.currentScale),
|
|
1952
|
-
|
|
1953
|
+
Le(100, Fn, {
|
|
1953
1954
|
leading: !0,
|
|
1954
1955
|
trailing: !0
|
|
1955
1956
|
})
|
|
@@ -1958,14 +1959,14 @@ const Gt = ae.Root, qt = ae.ValueText, ze = () => {
|
|
|
1958
1959
|
) ?? 1, a = S(
|
|
1959
1960
|
() => r?.zoom.state$.pipe(E((d) => d.isZooming)),
|
|
1960
1961
|
[r]
|
|
1961
|
-
) ?? !1, l =
|
|
1962
|
+
) ?? !1, l = go(
|
|
1962
1963
|
i,
|
|
1963
|
-
|
|
1964
|
+
Be,
|
|
1964
1965
|
t,
|
|
1965
|
-
|
|
1966
|
+
Ae
|
|
1966
1967
|
), c = o?.borderBoxSize?.[0]?.blockSize ?? 1;
|
|
1967
1968
|
return /* @__PURE__ */ e(
|
|
1968
|
-
|
|
1969
|
+
ue,
|
|
1969
1970
|
{
|
|
1970
1971
|
present: a && i > 1,
|
|
1971
1972
|
animationName: { _open: "fade-in", _closed: "fade-out" },
|
|
@@ -1978,12 +1979,12 @@ const Gt = ae.Root, qt = ae.ValueText, ze = () => {
|
|
|
1978
1979
|
borderRadius: "md",
|
|
1979
1980
|
p: 4,
|
|
1980
1981
|
children: /* @__PURE__ */ e(
|
|
1981
|
-
|
|
1982
|
+
Re,
|
|
1982
1983
|
{
|
|
1983
1984
|
value: [l],
|
|
1984
|
-
min:
|
|
1985
|
+
min: Be,
|
|
1985
1986
|
max: t,
|
|
1986
|
-
step:
|
|
1987
|
+
step: Ae,
|
|
1987
1988
|
minWidth: 200,
|
|
1988
1989
|
onValueChange: (d) => {
|
|
1989
1990
|
const u = d.value?.[0] ?? 1;
|
|
@@ -1995,10 +1996,10 @@ const Gt = ae.Root, qt = ae.ValueText, ze = () => {
|
|
|
1995
1996
|
)
|
|
1996
1997
|
}
|
|
1997
1998
|
);
|
|
1998
|
-
}),
|
|
1999
|
-
/* @__PURE__ */ e(
|
|
2000
|
-
/* @__PURE__ */ e(
|
|
2001
|
-
] }))),
|
|
1999
|
+
}), mo = { _open: "fade-in", _closed: "fade-out" }, bo = g(() => (mt(), null)), So = g(() => (po(), Nt(), Vt(), to(), bt(), /* @__PURE__ */ s(de, { children: [
|
|
2000
|
+
/* @__PURE__ */ e(Tt, {}),
|
|
2001
|
+
/* @__PURE__ */ e(bo, {})
|
|
2002
|
+
] }))), Co = g(
|
|
2002
2003
|
({
|
|
2003
2004
|
children: n,
|
|
2004
2005
|
...t
|
|
@@ -2006,16 +2007,16 @@ const Gt = ae.Root, qt = ae.ValueText, ze = () => {
|
|
|
2006
2007
|
const { enableFloatingTime: o, onItemClick: r } = y([
|
|
2007
2008
|
"enableFloatingTime",
|
|
2008
2009
|
"onItemClick"
|
|
2009
|
-
]), [i, a] = w(!1), [l, c] = w(!1), [d, u] = w(!1), [p, h] = w(void 0), [C, v] = w(!1), [R, D] =
|
|
2010
|
+
]), [i, a] = w(!1), [l, c] = w(!1), [d, u] = w(!1), [p, h] = w(void 0), [C, v] = w(!1), [R, D] = Me(), x = T(() => {
|
|
2010
2011
|
a(!1), c(!1), u(!1), h(void 0), D(!1), v(!1);
|
|
2011
|
-
}, [D]), L =
|
|
2012
|
+
}, [D]), L = T(
|
|
2012
2013
|
(I) => {
|
|
2013
2014
|
I === "annotations" ? h("annotations") : I === "search" ? u(!0) : I === "help" ? c(!0) : I === "toc" ? a(!0) : I === "bookmarks" ? h("bookmarks") : I === "gallery" && v(!0), r?.(I);
|
|
2014
2015
|
},
|
|
2015
2016
|
[r]
|
|
2016
2017
|
);
|
|
2017
|
-
return /* @__PURE__ */ s(
|
|
2018
|
-
/* @__PURE__ */ e(
|
|
2018
|
+
return /* @__PURE__ */ s(de, { children: [
|
|
2019
|
+
/* @__PURE__ */ e(So, {}),
|
|
2019
2020
|
/* @__PURE__ */ s(
|
|
2020
2021
|
_,
|
|
2021
2022
|
{
|
|
@@ -2029,16 +2030,16 @@ const Gt = ae.Root, qt = ae.ValueText, ze = () => {
|
|
|
2029
2030
|
...t,
|
|
2030
2031
|
children: [
|
|
2031
2032
|
n,
|
|
2032
|
-
/* @__PURE__ */ e(
|
|
2033
|
-
/* @__PURE__ */ e(
|
|
2034
|
-
/* @__PURE__ */ e(
|
|
2035
|
-
/* @__PURE__ */ e(
|
|
2036
|
-
/* @__PURE__ */ e(
|
|
2037
|
-
/* @__PURE__ */ e(
|
|
2038
|
-
/* @__PURE__ */ e(
|
|
2039
|
-
/* @__PURE__ */ e(
|
|
2033
|
+
/* @__PURE__ */ e(_t, {}),
|
|
2034
|
+
/* @__PURE__ */ e(Pt, { open: C, setOpen: v }),
|
|
2035
|
+
/* @__PURE__ */ e(ro, {}),
|
|
2036
|
+
/* @__PURE__ */ e(no, { onItemClick: L }),
|
|
2037
|
+
/* @__PURE__ */ e(fo, {}),
|
|
2038
|
+
/* @__PURE__ */ e(Rt, {}),
|
|
2039
|
+
/* @__PURE__ */ e(ft, {}),
|
|
2040
|
+
/* @__PURE__ */ e(Bt, { open: l, setOpen: c }),
|
|
2040
2041
|
/* @__PURE__ */ e(
|
|
2041
|
-
|
|
2042
|
+
ho,
|
|
2042
2043
|
{
|
|
2043
2044
|
open: i,
|
|
2044
2045
|
setOpen: a,
|
|
@@ -2046,7 +2047,7 @@ const Gt = ae.Root, qt = ae.ValueText, ze = () => {
|
|
|
2046
2047
|
}
|
|
2047
2048
|
),
|
|
2048
2049
|
/* @__PURE__ */ e(
|
|
2049
|
-
|
|
2050
|
+
co,
|
|
2050
2051
|
{
|
|
2051
2052
|
open: d,
|
|
2052
2053
|
setOpen: u,
|
|
@@ -2054,7 +2055,7 @@ const Gt = ae.Root, qt = ae.ValueText, ze = () => {
|
|
|
2054
2055
|
}
|
|
2055
2056
|
),
|
|
2056
2057
|
/* @__PURE__ */ e(
|
|
2057
|
-
|
|
2058
|
+
dt,
|
|
2058
2059
|
{
|
|
2059
2060
|
openWith: p,
|
|
2060
2061
|
setOpen: (I) => h(I ? "annotations" : void 0),
|
|
@@ -2062,34 +2063,34 @@ const Gt = ae.Root, qt = ae.ValueText, ze = () => {
|
|
|
2062
2063
|
}
|
|
2063
2064
|
),
|
|
2064
2065
|
/* @__PURE__ */ e(
|
|
2065
|
-
|
|
2066
|
+
ue,
|
|
2066
2067
|
{
|
|
2067
2068
|
present: o || R,
|
|
2068
|
-
animationName:
|
|
2069
|
+
animationName: mo,
|
|
2069
2070
|
animationDuration: "slow",
|
|
2070
2071
|
overflow: "hidden",
|
|
2071
|
-
children: /* @__PURE__ */ e(
|
|
2072
|
+
children: /* @__PURE__ */ e($t, {})
|
|
2072
2073
|
}
|
|
2073
2074
|
),
|
|
2074
|
-
/* @__PURE__ */ e(
|
|
2075
|
+
/* @__PURE__ */ e(St, {})
|
|
2075
2076
|
]
|
|
2076
2077
|
}
|
|
2077
2078
|
)
|
|
2078
2079
|
] });
|
|
2079
2080
|
}
|
|
2080
|
-
),
|
|
2081
|
+
), $o = g(
|
|
2081
2082
|
({
|
|
2082
2083
|
children: n,
|
|
2083
2084
|
slots: t,
|
|
2084
2085
|
...o
|
|
2085
2086
|
}) => {
|
|
2086
2087
|
const { container: { props: r = {} } = {} } = t ?? {};
|
|
2087
|
-
return /* @__PURE__ */ e(
|
|
2088
|
+
return /* @__PURE__ */ e(vt, { ...o, children: /* @__PURE__ */ e(Co, { ...r, children: n }) });
|
|
2088
2089
|
}
|
|
2089
2090
|
);
|
|
2090
2091
|
export {
|
|
2091
|
-
|
|
2092
|
-
|
|
2093
|
-
|
|
2092
|
+
tt as BOOKMARK_AREA_DATA_ATTRIBUTE,
|
|
2093
|
+
He as MAX_ZOOM_SCALE,
|
|
2094
|
+
$o as ReactReader
|
|
2094
2095
|
};
|
|
2095
2096
|
//# sourceMappingURL=index.js.map
|