@pdf-viewer/react 1.4.0-beta.2 → 1.4.0-beta.4
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/{RPDefaultLayout-838ad8e8.js → RPDefaultLayout-3344b69e.js} +742 -734
- package/dist/assets/RPDefaultLayout.css +1 -1
- package/dist/components/RPController.js +1 -1
- package/dist/components/RPPages.js +1 -1
- package/dist/components/RPProvider.js +1 -1
- package/dist/components/layout/RPDefaultLayout.js +1 -1
- package/dist/components/layout/sidebar/RPSidebar.js +1 -1
- package/dist/components/layout/sidebar/Thumbnail.js +1 -1
- package/dist/components/layout/sidebar/Thumbnails.js +1 -1
- package/dist/components/layout/toolbar/DocumentDialog.js +1 -1
- package/dist/components/layout/toolbar/FileDownloadTool.js +1 -1
- package/dist/components/layout/toolbar/MostPageTool.js +1 -1
- package/dist/components/layout/toolbar/OtherTool.js +1 -1
- package/dist/components/layout/toolbar/Paginate.js +1 -1
- package/dist/components/layout/toolbar/PrintTool.js +1 -1
- package/dist/components/layout/toolbar/RPToolbar.js +1 -1
- package/dist/components/layout/toolbar/RPToolbarEnd.js +1 -1
- package/dist/components/layout/toolbar/SearchTool.js +1 -1
- package/dist/components/layout/toolbar/ZoomTool.js +1 -1
- package/dist/components/page/AnnotationLayer.js +1 -1
- package/dist/components/page/CanvasLayer.js +1 -1
- package/dist/components/page/DualPage.js +1 -1
- package/dist/components/page/RPPage.js +1 -1
- package/dist/components/page/SinglePage.js +1 -1
- package/dist/components/page/TextHighlightLayer.js +1 -1
- package/dist/components/page/TextLayer.js +1 -1
- package/dist/components/ui/LoadingIndicator.js +1 -1
- package/dist/contexts/PaginationContext.js +1 -1
- package/dist/contexts/PrintContext.js +1 -1
- package/dist/contexts/SearchContext.js +1 -1
- package/dist/contexts/ThumbnailsContext.js +1 -1
- package/dist/contexts/ToolbarComponentContext.js +10 -8
- package/dist/main.js +1 -1
- package/dist/types/utils/types.d.ts +1 -0
- package/dist/utils/hooks/useFileDownload.js +1 -1
- package/dist/utils/hooks/useLicense.js +1 -1
- package/dist/utils/hooks/usePaginate.js +1 -1
- package/dist/utils/hooks/usePrint.js +1 -1
- package/dist/utils/hooks/useScrollToPage.js +1 -1
- package/dist/utils/hooks/useSearch.js +1 -1
- package/dist/utils/hooks/useThumbnail.js +1 -1
- package/dist/utils/hooks/useVirtualReactWindow.js +1 -1
- package/package.json +1 -1
|
@@ -1,78 +1,78 @@
|
|
|
1
|
-
import { jsx as i, Fragment as
|
|
1
|
+
import { jsx as i, Fragment as Ie, jsxs as z } from "react/jsx-runtime";
|
|
2
2
|
import * as V from "react";
|
|
3
|
-
import { useRef as W, useEffect as O, useCallback as x, useState as $, createContext as Ze, useContext as je, useMemo as k, forwardRef as Be, useImperativeHandle as
|
|
3
|
+
import { useRef as W, useEffect as O, useCallback as x, useState as $, createContext as Ze, useContext as je, useMemo as k, forwardRef as Be, useImperativeHandle as sn, createElement as Me, PureComponent as rr, Component as or, memo as ir } from "react";
|
|
4
4
|
import { ChevronUpIcon as ke } from "./components/icons/ChevronUpIcon.js";
|
|
5
5
|
import { UIButton as te } from "./components/ui/Button.js";
|
|
6
|
-
import { UIInput as
|
|
6
|
+
import { UIInput as cn } from "./components/ui/Input.js";
|
|
7
7
|
import { useScrollModeContext as Oe } from "./contexts/ScrollModeContext.js";
|
|
8
8
|
import { useDocumentContext as X } from "./contexts/RPDocumentContext.js";
|
|
9
9
|
import "./contexts/DarkModeContext.js";
|
|
10
|
-
import { ViewMode as Ve, ScrollMode as K, AnnotationSubType as At, SelectionMode as
|
|
10
|
+
import { ViewMode as Ve, ScrollMode as K, AnnotationSubType as At, SelectionMode as ar, ZoomLevel as ot } from "./utils/types.js";
|
|
11
11
|
import { useRotationContext as Ke } from "./contexts/RotationContext.js";
|
|
12
|
-
import { useLayerContext as
|
|
12
|
+
import { useLayerContext as sr } from "./contexts/LayerContext.js";
|
|
13
13
|
import { useZoomContext as Xe } from "./contexts/ZoomContext.js";
|
|
14
14
|
import { useViewModeContext as Je } from "./contexts/ViewModeContext.js";
|
|
15
15
|
import { useVirtualScrollContext as Ye } from "./contexts/VirtualScrollContext.js";
|
|
16
|
-
import { useVirtualGridContext as
|
|
16
|
+
import { useVirtualGridContext as ln } from "./contexts/VirtualGridContext.js";
|
|
17
17
|
import { useScrollStateContext as Qe } from "./contexts/ScrollStateContext.js";
|
|
18
|
-
import { useSelectionModeContext as
|
|
19
|
-
import { useInitialStateContext as
|
|
20
|
-
import { useFullScreenContext as
|
|
18
|
+
import { useSelectionModeContext as cr } from "./contexts/SelectionModeContext.js";
|
|
19
|
+
import { useInitialStateContext as lr } from "./contexts/InitialStateContext.js";
|
|
20
|
+
import { useFullScreenContext as ur } from "./contexts/FullScreenContext.js";
|
|
21
21
|
import "./contexts/FileInputContext.js";
|
|
22
22
|
import "./contexts/DropFileZoneContext.js";
|
|
23
23
|
import { renderPage as gt } from "./utils/renderPage.js";
|
|
24
|
-
import { highlightMatches as
|
|
24
|
+
import { highlightMatches as un, findMatches as dr, resetDivs as dn, highlightMultipleColorMatches as pr } from "./utils/highlight.js";
|
|
25
25
|
import * as Tt from "pdfjs-dist";
|
|
26
|
-
import { PixelsPerInch as
|
|
27
|
-
import { useLayoutContainer as
|
|
26
|
+
import { PixelsPerInch as hr, AnnotationMode as mr, RenderingCancelledException as fr, AnnotationLayer as gr } from "pdfjs-dist";
|
|
27
|
+
import { useLayoutContainer as xe } from "./contexts/LayoutContainerContext.js";
|
|
28
28
|
import { useDimensionPagesContext as Pt } from "./contexts/DimensionPagesContext.js";
|
|
29
29
|
import { useLocalizationContext as me } from "./contexts/LocalizationContext.js";
|
|
30
|
-
import { useHighlightContext as
|
|
31
|
-
import { useLoaderContext as
|
|
30
|
+
import { useHighlightContext as vr } from "./contexts/HighlightContext.js";
|
|
31
|
+
import { useLoaderContext as pn } from "./contexts/LoaderContext.js";
|
|
32
32
|
import "./components/RPConfig.js";
|
|
33
|
-
import { ThumbnailIcon as
|
|
33
|
+
import { ThumbnailIcon as _r } from "./components/icons/Thumbnail.js";
|
|
34
34
|
import { c as oe } from "./clsx-0c6e471a.js";
|
|
35
35
|
import { LoaderIcon as St } from "./components/icons/LoaderIcon.js";
|
|
36
|
-
import { useInfiniteScroll as
|
|
37
|
-
import { RPSplitter as
|
|
38
|
-
import { useToolbarComponentContext as _e, ToolbarComponentProvider as
|
|
39
|
-
import { useIconContext as fe, IconProvider as
|
|
36
|
+
import { useInfiniteScroll as wr } from "./utils/hooks/useInfiniteScroll.js";
|
|
37
|
+
import { RPSplitter as br } from "./components/layout/sidebar/RPSplitter.js";
|
|
38
|
+
import { useToolbarComponentContext as _e, ToolbarComponentProvider as Cr } from "./contexts/ToolbarComponentContext.js";
|
|
39
|
+
import { useIconContext as fe, IconProvider as Tr } from "./contexts/IconContext.js";
|
|
40
40
|
import q from "./components/ui/RPTooltip.js";
|
|
41
|
-
import { c as Pe, C as
|
|
42
|
-
import { WrapperLayout as
|
|
43
|
-
import { RPDropFileZone as
|
|
44
|
-
import { useViewportContext as
|
|
41
|
+
import { c as Pe, C as Pr } from "./Container-8fea0875.js";
|
|
42
|
+
import { WrapperLayout as Sr } from "./components/layout/WrapperLayout.js";
|
|
43
|
+
import { RPDropFileZone as Ir } from "./components/RPDropFileZone.js";
|
|
44
|
+
import { useViewportContext as Re, ViewportProvider as yr } from "./contexts/ViewportContext.js";
|
|
45
45
|
import "./contexts/ThemeContext.js";
|
|
46
|
-
import { SimpleLinkService as
|
|
47
|
-
import { annotationsEvents as
|
|
48
|
-
import { useWatermark as
|
|
49
|
-
import { useMousePressed as
|
|
50
|
-
import { useGrabScroll as
|
|
51
|
-
import { usePinch as
|
|
46
|
+
import { SimpleLinkService as xr } from "./utils/link_service.js";
|
|
47
|
+
import { annotationsEvents as Rr, annotationEventsHandler as Lr, handleClick as Ft, handleAnnotationWidget as Nr, handleAnnotationLink as Er, bindLayerEvents as Or, unbindLayerEvents as kt } from "./utils/annotations.js";
|
|
48
|
+
import { useWatermark as Dr } from "./utils/hooks/useWatermark.js";
|
|
49
|
+
import { useMousePressed as zr } from "./utils/hooks/useMousePressed.js";
|
|
50
|
+
import { useGrabScroll as Ar } from "./utils/hooks/useGrabScroll.js";
|
|
51
|
+
import { usePinch as Fr } from "./utils/hooks/usePinch.js";
|
|
52
52
|
import { useDebounce as vt } from "./utils/hooks/useDebounce.js";
|
|
53
53
|
import { getThumbnailViewport as Wt } from "./utils/getThumbnailViewport.js";
|
|
54
54
|
import { smoothScrollTo as Mt } from "./utils/smoothScrollTo.js";
|
|
55
|
-
import { appConsole as
|
|
56
|
-
import { FileUploadTool as
|
|
57
|
-
import { DarkModeTool as
|
|
58
|
-
import { ThreeDotIcon as
|
|
59
|
-
import { UIDropDown as
|
|
60
|
-
import { c as
|
|
61
|
-
import { D as
|
|
62
|
-
import { a as
|
|
63
|
-
import { CloseIcon as
|
|
55
|
+
import { appConsole as kr } from "./utils/appConsole.js";
|
|
56
|
+
import { FileUploadTool as hn } from "./components/layout/toolbar/FileUploadTool.js";
|
|
57
|
+
import { DarkModeTool as Wr } from "./components/layout/toolbar/DarkModeTool.js";
|
|
58
|
+
import { ThreeDotIcon as Mr } from "./components/icons/ThreeDotIcon.js";
|
|
59
|
+
import { UIDropDown as mn } from "./components/ui/DropDown.js";
|
|
60
|
+
import { c as Hr, u as It, P as We, b as Fe, d as yt, i as $r, k as Gr, a as Vr } from "./index-48ca3f30.js";
|
|
61
|
+
import { D as Ur, d as it } from "./floating-ui.react-dom-88a86594.js";
|
|
62
|
+
import { a as qr, h as Zr, u as jr, F as Br, b as Kr, G as Ue } from "./index-4ba3ab9a.js";
|
|
63
|
+
import { CloseIcon as fn } from "./components/icons/CloseIcon.js";
|
|
64
64
|
import { dateFormatter as Ht } from "./utils/dateFormatter.js";
|
|
65
|
-
import { PropertyItem as
|
|
66
|
-
import { useOtherToolContext as
|
|
67
|
-
import { DocumentProperties as
|
|
65
|
+
import { PropertyItem as Xr } from "./components/layout/toolbar/PropertyItem.js";
|
|
66
|
+
import { useOtherToolContext as Jr, OtherToolProvider as Yr } from "./contexts/OtherToolContext.js";
|
|
67
|
+
import { DocumentProperties as Qr } from "./components/layout/toolbar/DocumentProperties.js";
|
|
68
68
|
import { RotateTool as eo } from "./components/layout/toolbar/RotateTool.js";
|
|
69
69
|
import { ScrollModeTool as to } from "./components/layout/toolbar/ScrollModeTool.js";
|
|
70
70
|
import { MenuSeparator as xt } from "./components/layout/toolbar/MenuSeparator.js";
|
|
71
|
-
import { FileDownloadDefaultIcon as
|
|
71
|
+
import { FileDownloadDefaultIcon as no } from "./components/icons/FileDownloadDefaultIcon.js";
|
|
72
72
|
import { MenuItem as we } from "./components/layout/toolbar/MenuItem.js";
|
|
73
|
-
import { PrintDefaultTool as
|
|
74
|
-
import { FullScreenTool as
|
|
75
|
-
import { GoToDownIcon as
|
|
73
|
+
import { PrintDefaultTool as ro } from "./components/icons/PrintDefaultIcon.js";
|
|
74
|
+
import { FullScreenTool as gn } from "./components/layout/toolbar/FullScreenTool.js";
|
|
75
|
+
import { GoToDownIcon as vn } from "./components/icons/GoToDownIcon.js";
|
|
76
76
|
import { SelectionModeTool as oo } from "./components/layout/toolbar/SelectionModeTool.js";
|
|
77
77
|
import { ZoomInIcon as io } from "./components/icons/ZoomInIcon.js";
|
|
78
78
|
import { ZoomOutIcon as ao } from "./components/icons/ZoomOutIcon.js";
|
|
@@ -83,37 +83,37 @@ import { UICheckbox as Gt } from "./components/ui/Checkbox.js";
|
|
|
83
83
|
import { ClearIcon as lo } from "./components/icons/ClearIcon.js";
|
|
84
84
|
import { InfoIcon as Vt } from "./components/icons/InfoIcon.js";
|
|
85
85
|
import { UIPopOver as uo } from "./components/ui/Popover.js";
|
|
86
|
-
import './assets/RPDefaultLayout.css';const
|
|
87
|
-
const { viewMode: t } = Je(), { scrollMode: e } = Oe(), { virtualScrollRef:
|
|
86
|
+
import './assets/RPDefaultLayout.css';const _n = () => {
|
|
87
|
+
const { viewMode: t } = Je(), { scrollMode: e } = Oe(), { virtualScrollRef: n, virtualScrollableElementRef: o, pageScrollElementRef: r } = Ye(), { setFocusedPage: a } = ce(), c = W(), { columnCount: s } = ln(), { widths: u, heights: l } = Pt(), d = W(e), f = W(t), h = W(s);
|
|
88
88
|
O(() => {
|
|
89
|
-
|
|
90
|
-
}, [
|
|
89
|
+
n != null && n.scrollToItem && (c.current = n);
|
|
90
|
+
}, [n]), O(() => {
|
|
91
91
|
d.current = e, f.current = t;
|
|
92
92
|
}, [e, t]);
|
|
93
93
|
const g = x(
|
|
94
94
|
(b) => {
|
|
95
|
-
if (!
|
|
95
|
+
if (!r)
|
|
96
96
|
return;
|
|
97
97
|
const v = Math.ceil(b / 2) * 2 - 1;
|
|
98
98
|
return b === v + 1 ? new Promise((w) => {
|
|
99
|
-
|
|
99
|
+
r.scrollTo({
|
|
100
100
|
left: u[v],
|
|
101
101
|
top: 0
|
|
102
102
|
}), w();
|
|
103
103
|
}) : new Promise((w) => {
|
|
104
|
-
|
|
104
|
+
r.scrollTo({
|
|
105
105
|
left: 0,
|
|
106
106
|
top: 0
|
|
107
107
|
}), w();
|
|
108
108
|
});
|
|
109
109
|
},
|
|
110
|
-
[
|
|
110
|
+
[r, u, Mt]
|
|
111
111
|
);
|
|
112
112
|
return O(() => {
|
|
113
113
|
d.current = e, f.current = t;
|
|
114
114
|
}, [e, t]), O(() => {
|
|
115
|
-
h.current =
|
|
116
|
-
}, [
|
|
115
|
+
h.current = s;
|
|
116
|
+
}, [s]), { scrollToPage: x(
|
|
117
117
|
(b) => {
|
|
118
118
|
const v = b - 1;
|
|
119
119
|
let w = v, m = 0;
|
|
@@ -121,7 +121,7 @@ import './assets/RPDefaultLayout.css';const vr = () => {
|
|
|
121
121
|
return g(b), Promise.resolve();
|
|
122
122
|
if (d.current === K.PAGE_SCROLLING)
|
|
123
123
|
return a(b), Promise.resolve();
|
|
124
|
-
if (!
|
|
124
|
+
if (!c.current || !o)
|
|
125
125
|
return Promise.resolve();
|
|
126
126
|
const T = o;
|
|
127
127
|
if (d.current === K.HORIZONTAL_SCROLLING) {
|
|
@@ -157,7 +157,7 @@ import './assets/RPDefaultLayout.css';const vr = () => {
|
|
|
157
157
|
},
|
|
158
158
|
[
|
|
159
159
|
o,
|
|
160
|
-
|
|
160
|
+
s,
|
|
161
161
|
g,
|
|
162
162
|
a,
|
|
163
163
|
Mt,
|
|
@@ -166,20 +166,20 @@ import './assets/RPDefaultLayout.css';const vr = () => {
|
|
|
166
166
|
]
|
|
167
167
|
) };
|
|
168
168
|
}, po = (t = 1) => {
|
|
169
|
-
const [e,
|
|
169
|
+
const [e, n] = $(t), [o, r] = $(0), { scrollToPage: a } = _n(), c = W(1), { isScrolling: s } = Qe(), { viewMode: u } = Je(), { scrollMode: l } = Oe(), d = vt(e, 100), f = x(
|
|
170
170
|
(v) => {
|
|
171
171
|
if (!/^[0-9]*$/g.test(v.toString()) || !v)
|
|
172
|
-
return { success: !1, currentPage:
|
|
172
|
+
return { success: !1, currentPage: c.current };
|
|
173
173
|
const m = +v;
|
|
174
|
-
return m < 0 || m > o ? { success: !1, currentPage:
|
|
174
|
+
return m < 0 || m > o ? { success: !1, currentPage: c.current } : (n(m), c.current = m, { success: !0, currentPage: +v });
|
|
175
175
|
},
|
|
176
176
|
[o]
|
|
177
177
|
), h = x(f, [f]), g = x(
|
|
178
178
|
async (v) => {
|
|
179
|
-
if (
|
|
180
|
-
return { success: !1, currentPage:
|
|
179
|
+
if (s.current)
|
|
180
|
+
return { success: !1, currentPage: c.current };
|
|
181
181
|
const w = f(v);
|
|
182
|
-
return w.success && (
|
|
182
|
+
return w.success && (s.current = !0, await a(w.currentPage), s.current = !1), w;
|
|
183
183
|
},
|
|
184
184
|
[f, a]
|
|
185
185
|
), _ = x(() => {
|
|
@@ -193,12 +193,12 @@ import './assets/RPDefaultLayout.css';const vr = () => {
|
|
|
193
193
|
focusedPage: d,
|
|
194
194
|
totalPages: o,
|
|
195
195
|
setFocusedPage: h,
|
|
196
|
-
setTotalPages:
|
|
196
|
+
setTotalPages: r,
|
|
197
197
|
nextPage: b,
|
|
198
198
|
prevPage: _,
|
|
199
199
|
goToPage: g
|
|
200
200
|
};
|
|
201
|
-
},
|
|
201
|
+
}, wn = Ze({
|
|
202
202
|
focusedPage: 0,
|
|
203
203
|
setFocusedPage: (t) => {
|
|
204
204
|
},
|
|
@@ -211,34 +211,34 @@ import './assets/RPDefaultLayout.css';const vr = () => {
|
|
|
211
211
|
nextPage: () => {
|
|
212
212
|
}
|
|
213
213
|
}), ce = () => {
|
|
214
|
-
const t = je(
|
|
215
|
-
return typeof (t == null ? void 0 : t.focusedPage) > "u" &&
|
|
214
|
+
const t = je(wn);
|
|
215
|
+
return typeof (t == null ? void 0 : t.focusedPage) > "u" && kr.error("Please use this hooks inside children component of RPProvider"), t;
|
|
216
216
|
}, ms = ({ children: t }) => {
|
|
217
|
-
const { pdf: e } = X(), { focusedPage:
|
|
217
|
+
const { pdf: e } = X(), { focusedPage: n, totalPages: o, setFocusedPage: r, setTotalPages: a, goToPage: c, nextPage: s, prevPage: u } = po();
|
|
218
218
|
return O(() => {
|
|
219
219
|
e != null && e.numPages && a(e.numPages);
|
|
220
220
|
}, [e, a]), /* @__PURE__ */ i(
|
|
221
|
-
|
|
221
|
+
wn.Provider,
|
|
222
222
|
{
|
|
223
223
|
value: {
|
|
224
|
-
focusedPage:
|
|
224
|
+
focusedPage: n,
|
|
225
225
|
totalPages: o,
|
|
226
|
-
setFocusedPage:
|
|
226
|
+
setFocusedPage: r,
|
|
227
227
|
setTotalPages: a,
|
|
228
|
-
nextPage:
|
|
228
|
+
nextPage: s,
|
|
229
229
|
prevPage: u,
|
|
230
|
-
goToPage:
|
|
230
|
+
goToPage: c
|
|
231
231
|
},
|
|
232
232
|
children: t
|
|
233
233
|
}
|
|
234
234
|
);
|
|
235
235
|
};
|
|
236
236
|
const ho = () => {
|
|
237
|
-
const { pdf: t, pages: e } = X(), [
|
|
237
|
+
const { pdf: t, pages: e } = X(), [n, o] = $({
|
|
238
238
|
loadedPages: 0,
|
|
239
239
|
totalPages: 0,
|
|
240
240
|
percentage: 0
|
|
241
|
-
}), [
|
|
241
|
+
}), [r, a] = $(!1), [c, s] = $(!1), [u, l] = $(null), d = W(!1);
|
|
242
242
|
O(() => {
|
|
243
243
|
d.current;
|
|
244
244
|
}, [d]);
|
|
@@ -247,7 +247,7 @@ const ho = () => {
|
|
|
247
247
|
const T = document.querySelector(".rp-print-zone");
|
|
248
248
|
T && T.remove();
|
|
249
249
|
}, []), h = x(() => {
|
|
250
|
-
d.current = !1, a(!1),
|
|
250
|
+
d.current = !1, a(!1), s(!1), l(null), o({
|
|
251
251
|
loadedPages: 0,
|
|
252
252
|
totalPages: 0,
|
|
253
253
|
percentage: 0
|
|
@@ -267,7 +267,7 @@ const ho = () => {
|
|
|
267
267
|
h();
|
|
268
268
|
return;
|
|
269
269
|
}
|
|
270
|
-
const R = C /
|
|
270
|
+
const R = C / hr.PDF;
|
|
271
271
|
T.width = Math.floor(P.width * R), T.height = Math.floor(P.height * R);
|
|
272
272
|
const D = T.getContext("2d");
|
|
273
273
|
D.save(), D.fillStyle = "rgb(255, 255, 255)", D.fillRect(0, 0, T.width, T.height), D.restore();
|
|
@@ -284,14 +284,14 @@ const ho = () => {
|
|
|
284
284
|
transform: [R, 0, 0, R, 0, 0],
|
|
285
285
|
viewport: L.getViewport({ scale: 1, rotation: P.rotation }),
|
|
286
286
|
intent: "print",
|
|
287
|
-
annotationMode:
|
|
287
|
+
annotationMode: mr.ENABLE_STORAGE,
|
|
288
288
|
optionalContentConfigPromise: S,
|
|
289
289
|
printAnnotationStorage: F
|
|
290
290
|
};
|
|
291
291
|
try {
|
|
292
292
|
return L.render(E).promise;
|
|
293
293
|
} catch (y) {
|
|
294
|
-
throw y instanceof
|
|
294
|
+
throw y instanceof fr || console.error(y), y;
|
|
295
295
|
}
|
|
296
296
|
}, b = x(() => {
|
|
297
297
|
const T = window.print;
|
|
@@ -373,7 +373,7 @@ const ho = () => {
|
|
|
373
373
|
const A = w(I, e);
|
|
374
374
|
document.body.appendChild(A), document.documentElement.classList.add("rp-print-html-printing"), document.body.classList.add("rp-print-body-printing"), a(!0), await b();
|
|
375
375
|
} catch (p) {
|
|
376
|
-
|
|
376
|
+
s(!0), p instanceof Error && l(p);
|
|
377
377
|
} finally {
|
|
378
378
|
T.height = 0, T.width = 0;
|
|
379
379
|
}
|
|
@@ -388,12 +388,12 @@ const ho = () => {
|
|
|
388
388
|
}, [f, h]), {
|
|
389
389
|
print: m,
|
|
390
390
|
cancel: g,
|
|
391
|
-
progress:
|
|
392
|
-
isComplete:
|
|
393
|
-
isError:
|
|
391
|
+
progress: n,
|
|
392
|
+
isComplete: r,
|
|
393
|
+
isError: c,
|
|
394
394
|
error: u
|
|
395
395
|
};
|
|
396
|
-
},
|
|
396
|
+
}, bn = Ze({
|
|
397
397
|
print: () => {
|
|
398
398
|
},
|
|
399
399
|
cancel: () => {
|
|
@@ -411,15 +411,15 @@ const ho = () => {
|
|
|
411
411
|
}
|
|
412
412
|
}
|
|
413
413
|
}), fs = ({ children: t }) => {
|
|
414
|
-
const [e,
|
|
415
|
-
v && typeof v == "function" &&
|
|
414
|
+
const [e, n] = $(null), [o, r] = $(null), { print: a, cancel: c, progress: s, isComplete: u, isError: l, error: d } = ho(), f = x((v) => {
|
|
415
|
+
v && typeof v == "function" && r(() => v);
|
|
416
416
|
}, []), h = (v) => {
|
|
417
417
|
d && v(d);
|
|
418
418
|
}, g = x(
|
|
419
419
|
(v) => {
|
|
420
|
-
|
|
420
|
+
n(() => v);
|
|
421
421
|
},
|
|
422
|
-
[
|
|
422
|
+
[s, e]
|
|
423
423
|
);
|
|
424
424
|
O(() => {
|
|
425
425
|
u && o && _();
|
|
@@ -428,30 +428,30 @@ const ho = () => {
|
|
|
428
428
|
console.error(v);
|
|
429
429
|
});
|
|
430
430
|
}, [l]), O(() => {
|
|
431
|
-
|
|
432
|
-
}, [
|
|
431
|
+
s && e && e(s);
|
|
432
|
+
}, [s, e]);
|
|
433
433
|
const _ = () => {
|
|
434
|
-
o && (o(),
|
|
434
|
+
o && (o(), r(null));
|
|
435
435
|
}, b = {
|
|
436
436
|
print: a,
|
|
437
|
-
cancel:
|
|
437
|
+
cancel: c,
|
|
438
438
|
setOnProgress: g,
|
|
439
439
|
setOnComplete: f,
|
|
440
440
|
setOnError: h,
|
|
441
|
-
progress:
|
|
441
|
+
progress: s
|
|
442
442
|
};
|
|
443
|
-
return /* @__PURE__ */ i(
|
|
443
|
+
return /* @__PURE__ */ i(bn.Provider, { value: b, children: t });
|
|
444
444
|
}, et = () => {
|
|
445
|
-
const t = je(
|
|
445
|
+
const t = je(bn);
|
|
446
446
|
if (!t)
|
|
447
447
|
throw new Error("usePrintContext must be used within a PrintProvider");
|
|
448
448
|
return t;
|
|
449
449
|
}, mo = () => {
|
|
450
|
-
const [t, e] = $({}), { pages:
|
|
451
|
-
(
|
|
452
|
-
if (!
|
|
450
|
+
const [t, e] = $({}), { pages: n } = X(), { rotate: o } = Ke(), r = k(() => Object.keys(t).length, [t]), a = x(
|
|
451
|
+
(s) => {
|
|
452
|
+
if (!n.size)
|
|
453
453
|
return;
|
|
454
|
-
const u = Array.from(
|
|
454
|
+
const u = Array.from(n.values()).slice(0, s).map((f) => {
|
|
455
455
|
const { thumbnailViewport: h, scale: g } = Wt(f.page, o);
|
|
456
456
|
return {
|
|
457
457
|
scale: g,
|
|
@@ -484,21 +484,21 @@ const ho = () => {
|
|
|
484
484
|
e((g) => ({ ...g, ...h }));
|
|
485
485
|
});
|
|
486
486
|
},
|
|
487
|
-
[
|
|
487
|
+
[n, o]
|
|
488
488
|
);
|
|
489
489
|
O(() => {
|
|
490
490
|
a(10);
|
|
491
491
|
}, [a]);
|
|
492
|
-
const
|
|
493
|
-
(
|
|
494
|
-
if (!
|
|
492
|
+
const c = x(
|
|
493
|
+
(s) => {
|
|
494
|
+
if (!n)
|
|
495
495
|
return;
|
|
496
|
-
const u =
|
|
496
|
+
const u = n.get(s);
|
|
497
497
|
if (!u)
|
|
498
498
|
return;
|
|
499
499
|
e((d) => ({
|
|
500
500
|
...d,
|
|
501
|
-
[
|
|
501
|
+
[s]: {
|
|
502
502
|
loading: !0,
|
|
503
503
|
page: u.page,
|
|
504
504
|
viewport: u.thumbnailViewport,
|
|
@@ -516,13 +516,13 @@ const ho = () => {
|
|
|
516
516
|
viewport: f
|
|
517
517
|
};
|
|
518
518
|
}).then((d) => {
|
|
519
|
-
e((f) => ({ ...f, [
|
|
519
|
+
e((f) => ({ ...f, [s]: d }));
|
|
520
520
|
});
|
|
521
521
|
},
|
|
522
|
-
[
|
|
522
|
+
[n, o]
|
|
523
523
|
);
|
|
524
|
-
return { thumbnailPages: t, addPage:
|
|
525
|
-
},
|
|
524
|
+
return { thumbnailPages: t, addPage: c, addToPage: a, thumbnailLength: r };
|
|
525
|
+
}, Cn = Ze({
|
|
526
526
|
thumbnailPages: {},
|
|
527
527
|
addPage: (t) => {
|
|
528
528
|
},
|
|
@@ -532,27 +532,27 @@ const ho = () => {
|
|
|
532
532
|
setActive: (t) => {
|
|
533
533
|
},
|
|
534
534
|
active: !1
|
|
535
|
-
}),
|
|
535
|
+
}), Tn = () => je(Cn), gs = ({
|
|
536
536
|
children: t,
|
|
537
537
|
initialThumbnailsVisible: e
|
|
538
538
|
}) => {
|
|
539
|
-
const { thumbnailPages:
|
|
539
|
+
const { thumbnailPages: n, addPage: o, addToPage: r, thumbnailLength: a } = mo(), [c, s] = $(e);
|
|
540
540
|
return /* @__PURE__ */ i(
|
|
541
|
-
|
|
541
|
+
Cn.Provider,
|
|
542
542
|
{
|
|
543
|
-
value: { thumbnailPages:
|
|
543
|
+
value: { thumbnailPages: n, addPage: o, addToPage: r, thumbnailLength: a, active: c, setActive: s },
|
|
544
544
|
children: t
|
|
545
545
|
}
|
|
546
546
|
);
|
|
547
547
|
}, fo = (t = {}, e = "") => {
|
|
548
|
-
const [
|
|
548
|
+
const [n, o] = $(e), [r, a] = $(!1), { pdf: c, pages: s } = X(), u = Pt(), l = W(!n), { currentZoom: d } = Xe(), [f, h] = $([]), { setFocusedPage: g } = ce(), [_, b] = $(0), { pageScrollElementRef: v, virtualScrollableElementRef: w } = Ye(), { scrollMode: m } = Oe(), { pagesRef: T } = xe(), [I, p] = $(null), P = W({}), C = k(() => _ === 0 ? null : f[_ - 1], [_, f]), S = k(() => f.length, [f]);
|
|
549
549
|
O(() => {
|
|
550
|
-
if (!C || !
|
|
550
|
+
if (!C || !s)
|
|
551
551
|
return;
|
|
552
552
|
const L = w || v;
|
|
553
553
|
if (!L || !T)
|
|
554
554
|
return;
|
|
555
|
-
const F =
|
|
555
|
+
const F = s.get(C.page), E = T.clientHeight / 2, y = T.clientWidth / 2;
|
|
556
556
|
let N = 0, G = 0;
|
|
557
557
|
m === K.PAGE_SCROLLING && g(C.page), m === K.VERTICAL_SCROLLING && (N = u.heights.slice(0, C.page - 1).reduce((j, J) => j + J, 0)), m === K.HORIZONTAL_SCROLLING && (G = u.widths.slice(0, C.page - 1).reduce((j, J) => j + J, 0));
|
|
558
558
|
let U;
|
|
@@ -564,8 +564,8 @@ const ho = () => {
|
|
|
564
564
|
textContentSource: Z,
|
|
565
565
|
container: document.createElement("div")
|
|
566
566
|
}), U.render().then(() => {
|
|
567
|
-
const j = U.textDivs[C.start.idx], [J] =
|
|
568
|
-
j.style.position = "absolute", j.style.color = "transparent", Y.style.position = "absolute", Y.style.top = "0", Y.style.setProperty("--scale-factor", `${d}`), B.style.position = "relative", B.style.width = `${ae}px`, B.style.height = `${
|
|
567
|
+
const j = U.textDivs[C.start.idx], [J] = un([C], Z, U.textDivs), ae = u.widths[C.page - 1], ne = u.heights[C.page - 1], B = document.createElement("div"), Y = document.createElement("div");
|
|
568
|
+
j.style.position = "absolute", j.style.color = "transparent", Y.style.position = "absolute", Y.style.top = "0", Y.style.setProperty("--scale-factor", `${d}`), B.style.position = "relative", B.style.width = `${ae}px`, B.style.height = `${ne}px`, B.style.zIndex = "-1", B.appendChild(j), Y.appendChild(B), T.prepend(Y);
|
|
569
569
|
const ue = J.element.getBoundingClientRect(), be = Y.getBoundingClientRect(), De = ue.top - be.top, de = ue.left - be.left, pe = N + De - E + ue.height / 2, ge = G + de - y + ue.width / 2, Ce = {
|
|
570
570
|
left: Math.max(ge, 0),
|
|
571
571
|
top: Math.max(pe, 0)
|
|
@@ -575,7 +575,7 @@ const ho = () => {
|
|
|
575
575
|
});
|
|
576
576
|
});
|
|
577
577
|
}, [
|
|
578
|
-
|
|
578
|
+
s,
|
|
579
579
|
g,
|
|
580
580
|
u,
|
|
581
581
|
C,
|
|
@@ -601,15 +601,15 @@ const ho = () => {
|
|
|
601
601
|
return E;
|
|
602
602
|
}, []);
|
|
603
603
|
return O(() => {
|
|
604
|
-
if (!
|
|
604
|
+
if (!n) {
|
|
605
605
|
l.current = !0, h([]), b(0);
|
|
606
606
|
return;
|
|
607
607
|
}
|
|
608
|
-
l.current = !1, a(!0), h([]), b(0), D(
|
|
608
|
+
l.current = !1, a(!0), h([]), b(0), D(c).then((L) => {
|
|
609
609
|
P.current = L;
|
|
610
610
|
const E = Object.keys(L).reduce((y, N) => {
|
|
611
|
-
const G =
|
|
612
|
-
[
|
|
611
|
+
const G = dr(
|
|
612
|
+
[n],
|
|
613
613
|
L[N],
|
|
614
614
|
Number(N) - 1,
|
|
615
615
|
t
|
|
@@ -620,10 +620,10 @@ const ho = () => {
|
|
|
620
620
|
}).catch(() => {
|
|
621
621
|
h([]), b(0);
|
|
622
622
|
}).finally(() => a(!1));
|
|
623
|
-
}, [
|
|
624
|
-
search:
|
|
623
|
+
}, [n, D, c, t]), {
|
|
624
|
+
search: n,
|
|
625
625
|
setSearch: o,
|
|
626
|
-
loading:
|
|
626
|
+
loading: r,
|
|
627
627
|
matches: f,
|
|
628
628
|
totalMatches: S,
|
|
629
629
|
currentMatchPosition: _,
|
|
@@ -633,7 +633,7 @@ const ho = () => {
|
|
|
633
633
|
currentMatchElement: I,
|
|
634
634
|
setCurrentMatchElement: p
|
|
635
635
|
};
|
|
636
|
-
},
|
|
636
|
+
}, Pn = Ze({
|
|
637
637
|
search: "",
|
|
638
638
|
setSearch: (t) => {
|
|
639
639
|
},
|
|
@@ -655,11 +655,11 @@ const ho = () => {
|
|
|
655
655
|
children: t,
|
|
656
656
|
initialSearch: e
|
|
657
657
|
}) => {
|
|
658
|
-
const [
|
|
659
|
-
loading:
|
|
658
|
+
const [n, o] = $({}), {
|
|
659
|
+
loading: r,
|
|
660
660
|
setSearch: a,
|
|
661
|
-
totalMatches:
|
|
662
|
-
currentMatchPosition:
|
|
661
|
+
totalMatches: c,
|
|
662
|
+
currentMatchPosition: s,
|
|
663
663
|
currentMatch: u,
|
|
664
664
|
search: l,
|
|
665
665
|
matches: d,
|
|
@@ -667,17 +667,17 @@ const ho = () => {
|
|
|
667
667
|
prevMatch: h,
|
|
668
668
|
currentMatchElement: g,
|
|
669
669
|
setCurrentMatchElement: _
|
|
670
|
-
} = fo(
|
|
670
|
+
} = fo(n, e);
|
|
671
671
|
return /* @__PURE__ */ i(
|
|
672
|
-
|
|
672
|
+
Pn.Provider,
|
|
673
673
|
{
|
|
674
674
|
value: {
|
|
675
|
-
searchOptions:
|
|
675
|
+
searchOptions: n,
|
|
676
676
|
setSearchOptions: o,
|
|
677
|
-
loading:
|
|
677
|
+
loading: r,
|
|
678
678
|
setSearch: a,
|
|
679
|
-
totalMatches:
|
|
680
|
-
currentMatchPosition:
|
|
679
|
+
totalMatches: c,
|
|
680
|
+
currentMatchPosition: s,
|
|
681
681
|
currentMatch: u,
|
|
682
682
|
nextMatch: f,
|
|
683
683
|
prevMatch: h,
|
|
@@ -689,7 +689,7 @@ const ho = () => {
|
|
|
689
689
|
children: t
|
|
690
690
|
}
|
|
691
691
|
);
|
|
692
|
-
},
|
|
692
|
+
}, Sn = () => je(Pn), he = {
|
|
693
693
|
"rp-pages": "_rp-pages_1776r_1",
|
|
694
694
|
"rp-pages-horizontal-scroll": "_rp-pages-horizontal-scroll_1776r_7",
|
|
695
695
|
"rp-pages-container": "_rp-pages-container_1776r_11",
|
|
@@ -703,57 +703,57 @@ const ho = () => {
|
|
|
703
703
|
"rp-page": "_rp-page_h7a2q_1",
|
|
704
704
|
"rp-loader-wrapper": "_rp-loader-wrapper_h7a2q_14"
|
|
705
705
|
}, go = (t) => {
|
|
706
|
-
const { pageNumber: e, onLoaded:
|
|
706
|
+
const { pageNumber: e, onLoaded: n, onLoading: o } = t, r = W(null), { pages: a } = X(), { rotate: c } = Ke(), s = W(), { currentZoom: u } = Xe();
|
|
707
707
|
return O(() => {
|
|
708
708
|
if (!a || u === 0)
|
|
709
709
|
return;
|
|
710
710
|
const l = a.get(e);
|
|
711
|
-
if (
|
|
712
|
-
const d =
|
|
711
|
+
if (r.current && l) {
|
|
712
|
+
const d = r.current;
|
|
713
713
|
d.hidden = !0;
|
|
714
|
-
const f =
|
|
715
|
-
f && f.cancel(), o && o(),
|
|
714
|
+
const f = s.current;
|
|
715
|
+
f && f.cancel(), o && o(), s.current = gt(l.page, d, {
|
|
716
716
|
scale: u,
|
|
717
|
-
rotate:
|
|
717
|
+
rotate: c,
|
|
718
718
|
renderForms: !0
|
|
719
|
-
}),
|
|
719
|
+
}), s.current.promise.then(() => {
|
|
720
720
|
d.hidden = !1;
|
|
721
721
|
}).catch((h) => {
|
|
722
722
|
}).finally(() => {
|
|
723
|
-
|
|
723
|
+
n && n();
|
|
724
724
|
});
|
|
725
725
|
}
|
|
726
|
-
}, [a, e,
|
|
726
|
+
}, [a, e, c, u, o, n]), /* @__PURE__ */ i("canvas", { "data-rp": `page-${e}-canvas`, ref: r });
|
|
727
727
|
}, st = {
|
|
728
728
|
"rp-text-layer": "_rp-text-layer_kwwfn_1",
|
|
729
729
|
"rp-text-layer-text": "_rp-text-layer-text_kwwfn_9"
|
|
730
730
|
}, vo = (t) => {
|
|
731
|
-
const { pageNumber: e } = t, { pages:
|
|
731
|
+
const { pageNumber: e } = t, { pages: n } = X(), o = W(null), { matches: r, currentMatch: a, setCurrentMatchElement: c } = Sn(), [s, u] = $(
|
|
732
732
|
[]
|
|
733
|
-
), l = W(), d = W(), f = W(), h = k(() =>
|
|
733
|
+
), l = W(), d = W(), f = W(), h = k(() => r.filter((_) => _.pageIndex === e - 1), [r, e]), g = x(
|
|
734
734
|
(_, b, v = !1) => {
|
|
735
|
-
if (v &&
|
|
735
|
+
if (v && dn(_, b), !h.length) {
|
|
736
736
|
f.current = void 0, u([]);
|
|
737
737
|
return;
|
|
738
738
|
}
|
|
739
|
-
const w =
|
|
739
|
+
const w = un(h, _, b);
|
|
740
740
|
u(w);
|
|
741
741
|
},
|
|
742
742
|
[h]
|
|
743
743
|
);
|
|
744
744
|
return O(() => {
|
|
745
745
|
var v;
|
|
746
|
-
if ((v = f.current) == null || v.classList.remove("selected"), !
|
|
746
|
+
if ((v = f.current) == null || v.classList.remove("selected"), !s.length || !a || a.pageIndex !== e - 1)
|
|
747
747
|
return;
|
|
748
748
|
const _ = h.findIndex(
|
|
749
749
|
(w) => JSON.stringify(w) === JSON.stringify(a)
|
|
750
750
|
);
|
|
751
751
|
if (_ === -1)
|
|
752
752
|
return;
|
|
753
|
-
const b =
|
|
754
|
-
b && (f.current = b.element,
|
|
755
|
-
}, [a,
|
|
756
|
-
const _ =
|
|
753
|
+
const b = s.find((w) => w.index === _);
|
|
754
|
+
b && (f.current = b.element, c(b.element), b.element.classList.add("selected"));
|
|
755
|
+
}, [a, s, h]), O(() => {
|
|
756
|
+
const _ = n.get(e);
|
|
757
757
|
if (!(!_ || !o.current))
|
|
758
758
|
return l.current && l.current.cancel(), _.page.getTextContent().then((b) => {
|
|
759
759
|
const v = _.page.getViewport({ scale: 1 });
|
|
@@ -774,7 +774,7 @@ const ho = () => {
|
|
|
774
774
|
var b;
|
|
775
775
|
(b = l.current) == null || b.cancel();
|
|
776
776
|
};
|
|
777
|
-
}, [
|
|
777
|
+
}, [n, e]), O(() => {
|
|
778
778
|
var v;
|
|
779
779
|
[].slice.call(o.current.children).forEach((w) => {
|
|
780
780
|
w.classList.add(st["rp-text-layer-text"]);
|
|
@@ -794,25 +794,25 @@ const ho = () => {
|
|
|
794
794
|
};
|
|
795
795
|
let wo = "https://unpkg.com/pdfjs-dist@4.4.168/web/images/";
|
|
796
796
|
const bo = (t) => {
|
|
797
|
-
const { pageNumber: e } = t,
|
|
797
|
+
const { pageNumber: e } = t, n = W(null), { pages: o, pdf: r } = X(), a = W(), [c, s] = $(), { setFocusedPage: u, goToPage: l } = ce(), { scrollMode: d } = Oe(), { print: f } = et(), { download: h } = Gn(), g = k(() => o.get(e), [o, e]), _ = k(() => g == null ? void 0 : g.page.getViewport(), [g]);
|
|
798
798
|
O(() => {
|
|
799
799
|
a.current && (a.current.div.replaceChildren(), a.current = void 0);
|
|
800
|
-
}, [
|
|
800
|
+
}, [r]), O(() => {
|
|
801
801
|
g && g.page.getAnnotations().then((v) => {
|
|
802
|
-
a.current = void 0,
|
|
802
|
+
a.current = void 0, s(v), n.current && (n.current.innerText = "");
|
|
803
803
|
});
|
|
804
804
|
}, [g]);
|
|
805
805
|
const b = x(
|
|
806
806
|
(v) => {
|
|
807
|
-
!
|
|
807
|
+
!c || !r || (Rr(v), Lr(v, r, c).then((w) => {
|
|
808
808
|
var m, T;
|
|
809
809
|
((m = w == null ? void 0 : w.data) == null ? void 0 : m.action) === "Print" ? f() : ((T = w == null ? void 0 : w.data) == null ? void 0 : T.action) === "SaveAs" && h();
|
|
810
|
-
}), d === K.PAGE_SCROLLING ? Ft(v,
|
|
810
|
+
}), d === K.PAGE_SCROLLING ? Ft(v, c, r, (w) => u(w.pageIndex + 1)) : Ft(v, c, r, (w) => l(w.pageIndex + 1)));
|
|
811
811
|
},
|
|
812
|
-
[
|
|
812
|
+
[r, c, l, u, d, f, h]
|
|
813
813
|
);
|
|
814
814
|
return O(() => {
|
|
815
|
-
if (!g || !
|
|
815
|
+
if (!g || !c)
|
|
816
816
|
return;
|
|
817
817
|
const v = g.page.getViewport();
|
|
818
818
|
if (a.current) {
|
|
@@ -822,102 +822,102 @@ const bo = (t) => {
|
|
|
822
822
|
return;
|
|
823
823
|
}
|
|
824
824
|
const w = /* @__PURE__ */ new Map([]);
|
|
825
|
-
for (const I of
|
|
825
|
+
for (const I of c) {
|
|
826
826
|
const { annotationType: p } = I;
|
|
827
827
|
switch (p) {
|
|
828
828
|
case At.Link:
|
|
829
|
-
|
|
829
|
+
Er(I);
|
|
830
830
|
break;
|
|
831
831
|
case At.Widget:
|
|
832
|
-
|
|
832
|
+
Nr(I, v, w);
|
|
833
833
|
break;
|
|
834
834
|
}
|
|
835
835
|
}
|
|
836
836
|
const m = new AbortController();
|
|
837
837
|
return (async () => {
|
|
838
|
-
a.current && (a.current.div.replaceChildren(), a.current = void 0),
|
|
839
|
-
div:
|
|
838
|
+
a.current && (a.current.div.replaceChildren(), a.current = void 0), n.current && (n.current.innerText = ""), a.current = new gr({
|
|
839
|
+
div: n.current,
|
|
840
840
|
accessibilityManager: void 0,
|
|
841
841
|
annotationCanvasMap: void 0,
|
|
842
842
|
annotationEditorUIManager: void 0,
|
|
843
843
|
structTreeLayer: null,
|
|
844
844
|
page: g.page,
|
|
845
845
|
viewport: v.clone({ dontFlip: !0 })
|
|
846
|
-
}),
|
|
847
|
-
const I = await (
|
|
846
|
+
}), n.current && kt(n.current, b);
|
|
847
|
+
const I = await (r == null ? void 0 : r.hasJSActions()), p = await (r == null ? void 0 : r.getFieldObjects());
|
|
848
848
|
if (m.signal.aborted)
|
|
849
849
|
throw "abort";
|
|
850
850
|
return a.current.render({
|
|
851
|
-
annotations:
|
|
852
|
-
annotationStorage:
|
|
851
|
+
annotations: c,
|
|
852
|
+
annotationStorage: r == null ? void 0 : r.annotationStorage,
|
|
853
853
|
hasJSActions: I,
|
|
854
854
|
fieldObjects: p,
|
|
855
|
-
div:
|
|
855
|
+
div: n.current,
|
|
856
856
|
viewport: v.clone({ dontFlip: !0 }),
|
|
857
857
|
page: g.page,
|
|
858
858
|
imageResourcesPath: wo,
|
|
859
859
|
renderForms: !0,
|
|
860
|
-
linkService: new
|
|
860
|
+
linkService: new xr(),
|
|
861
861
|
downloadManager: null,
|
|
862
862
|
enableScripting: !1
|
|
863
863
|
});
|
|
864
864
|
})().then(() => {
|
|
865
|
-
|
|
865
|
+
n.current && Or(n.current, b);
|
|
866
866
|
}).catch((I) => {
|
|
867
867
|
if (I !== "abort")
|
|
868
868
|
throw I;
|
|
869
869
|
}), () => {
|
|
870
|
-
m.abort("clear"),
|
|
870
|
+
m.abort("clear"), n.current && kt(n.current, b);
|
|
871
871
|
};
|
|
872
|
-
}, [
|
|
872
|
+
}, [r, c, b]), /* @__PURE__ */ i(
|
|
873
873
|
"div",
|
|
874
874
|
{
|
|
875
875
|
"data-rp": `page-${e}-annotationLayer`,
|
|
876
876
|
style: { width: `${_ == null ? void 0 : _.width}px`, height: `${_ == null ? void 0 : _.height}px` },
|
|
877
877
|
className: _o["rp-annotation-layer"],
|
|
878
|
-
ref:
|
|
878
|
+
ref: n
|
|
879
879
|
}
|
|
880
880
|
);
|
|
881
881
|
}, ct = {
|
|
882
882
|
"rp-text-highlight-layer": "_rp-text-highlight-layer_1470i_1",
|
|
883
883
|
"rp-text-highlight-layer-text": "_rp-text-highlight-layer-text_1470i_9"
|
|
884
884
|
}, Co = ({ pageNumber: t }) => {
|
|
885
|
-
const e = W(null),
|
|
885
|
+
const e = W(null), n = W(), o = W(), { pages: r } = X(), { highlightMatches: a } = vr(), c = k(() => a.filter((l) => l.pageIndex === t - 1), [a]), s = x(
|
|
886
886
|
(u, l, d = !1) => {
|
|
887
|
-
d &&
|
|
887
|
+
d && dn(u, l), pr(c, u, l);
|
|
888
888
|
},
|
|
889
|
-
[
|
|
889
|
+
[c, r, t]
|
|
890
890
|
);
|
|
891
891
|
return O(() => {
|
|
892
|
-
const u =
|
|
892
|
+
const u = r.get(t);
|
|
893
893
|
if (!(!u || !e.current))
|
|
894
|
-
return
|
|
894
|
+
return n.current && n.current.cancel(), u.page.getTextContent().then((l) => {
|
|
895
895
|
const d = u.page.getViewport({ scale: 1 });
|
|
896
|
-
return
|
|
896
|
+
return n.current = new Tt.TextLayer({
|
|
897
897
|
viewport: d,
|
|
898
898
|
textContentSource: l,
|
|
899
899
|
container: e.current
|
|
900
|
-
}), o.current = l, e.current && (e.current.innerText = ""),
|
|
900
|
+
}), o.current = l, e.current && (e.current.innerText = ""), n.current.render();
|
|
901
901
|
}).then(() => {
|
|
902
902
|
var f;
|
|
903
903
|
[].slice.call(e.current.children).forEach((h) => {
|
|
904
904
|
h.classList.add(ct["rp-text-highlight-layer-text"]);
|
|
905
905
|
});
|
|
906
|
-
const d = (f =
|
|
907
|
-
d && o.current &&
|
|
906
|
+
const d = (f = n.current) == null ? void 0 : f.textDivs;
|
|
907
|
+
d && o.current && s(o.current, d);
|
|
908
908
|
}).catch(() => {
|
|
909
909
|
}), () => {
|
|
910
910
|
var l;
|
|
911
|
-
(l =
|
|
911
|
+
(l = n.current) == null || l.cancel();
|
|
912
912
|
};
|
|
913
|
-
}, [
|
|
913
|
+
}, [r, t]), O(() => {
|
|
914
914
|
var d;
|
|
915
915
|
[].slice.call(e.current.children).forEach((f) => {
|
|
916
916
|
f.classList.add(ct["rp-text-highlight-layer-text"]);
|
|
917
917
|
});
|
|
918
|
-
const l = (d =
|
|
919
|
-
l && o.current &&
|
|
920
|
-
}, [
|
|
918
|
+
const l = (d = n.current) == null ? void 0 : d.textDivs;
|
|
919
|
+
l && o.current && s(o.current, l, !0);
|
|
920
|
+
}, [s]), /* @__PURE__ */ i(Ie, { children: /* @__PURE__ */ i(
|
|
921
921
|
"div",
|
|
922
922
|
{
|
|
923
923
|
"data-rp": `page-${t}-textHighlightLayer`,
|
|
@@ -926,18 +926,18 @@ const bo = (t) => {
|
|
|
926
926
|
}
|
|
927
927
|
) });
|
|
928
928
|
}, To = Array.from({ length: 21 }, (t, e) => Number((e * 0.05).toFixed(2))), Rt = Be((t, e) => {
|
|
929
|
-
const { pageNumber:
|
|
929
|
+
const { pageNumber: n, style: o, onIntersectRatioChange: r, ...a } = t, { pages: c } = X(), { rotate: s } = Ke(), { textLayer: u } = sr(), { currentZoom: l } = Xe(), d = W(c.get(n)), [f, h] = $(!1), g = W(null), [_, b] = $({
|
|
930
930
|
width: 0,
|
|
931
931
|
height: 0
|
|
932
932
|
});
|
|
933
|
-
|
|
934
|
-
if (
|
|
935
|
-
const T = d.current.page.getViewport({ scale: l, rotation:
|
|
933
|
+
sn(e, () => g.current), O(() => {
|
|
934
|
+
if (c && (d.current = c.get(n), d.current)) {
|
|
935
|
+
const T = d.current.page.getViewport({ scale: l, rotation: s });
|
|
936
936
|
b(T);
|
|
937
937
|
}
|
|
938
|
-
}, [
|
|
938
|
+
}, [c, n, s, l]);
|
|
939
939
|
const v = k(() => {
|
|
940
|
-
switch (
|
|
940
|
+
switch (s) {
|
|
941
941
|
case 90:
|
|
942
942
|
return `${_.width / 2}px ${_.width / 2}px`;
|
|
943
943
|
case -90:
|
|
@@ -946,7 +946,7 @@ const bo = (t) => {
|
|
|
946
946
|
default:
|
|
947
947
|
return "center";
|
|
948
948
|
}
|
|
949
|
-
}, [
|
|
949
|
+
}, [s, _]), w = x(() => {
|
|
950
950
|
h(!0);
|
|
951
951
|
}, []), m = x(() => {
|
|
952
952
|
h(!1);
|
|
@@ -954,23 +954,23 @@ const bo = (t) => {
|
|
|
954
954
|
return O(() => {
|
|
955
955
|
const T = new IntersectionObserver(
|
|
956
956
|
(I) => {
|
|
957
|
-
n
|
|
957
|
+
r(n, I[0].intersectionRatio);
|
|
958
958
|
},
|
|
959
959
|
{ threshold: To }
|
|
960
960
|
);
|
|
961
961
|
return g.current && T.observe(g.current), () => {
|
|
962
|
-
T.disconnect(), n
|
|
962
|
+
T.disconnect(), r(n, -1);
|
|
963
963
|
};
|
|
964
|
-
}, [
|
|
964
|
+
}, [r, n, s, _]), /* @__PURE__ */ i(
|
|
965
965
|
"div",
|
|
966
966
|
{
|
|
967
967
|
ref: g,
|
|
968
|
-
id: `page-${
|
|
969
|
-
"data-rp": `page-${
|
|
968
|
+
id: `page-${n}`,
|
|
969
|
+
"data-rp": `page-${n}`,
|
|
970
970
|
...a,
|
|
971
971
|
style: {
|
|
972
972
|
...o,
|
|
973
|
-
"--rp-rotate": `${
|
|
973
|
+
"--rp-rotate": `${s}deg`,
|
|
974
974
|
"--rp-page-rotate-translate": `${v}`,
|
|
975
975
|
"--scale-factor": l
|
|
976
976
|
},
|
|
@@ -984,11 +984,11 @@ const bo = (t) => {
|
|
|
984
984
|
},
|
|
985
985
|
className: at["rp-page"],
|
|
986
986
|
children: [
|
|
987
|
-
/* @__PURE__ */ i(go, { onLoading: w, onLoaded: m, pageNumber:
|
|
987
|
+
/* @__PURE__ */ i(go, { onLoading: w, onLoaded: m, pageNumber: n }),
|
|
988
988
|
f && /* @__PURE__ */ i("div", { className: at["rp-loader-wrapper"], children: /* @__PURE__ */ i(St, {}) }),
|
|
989
|
-
u && /* @__PURE__ */ i(vo, { pageNumber:
|
|
990
|
-
/* @__PURE__ */ i(Co, { pageNumber:
|
|
991
|
-
/* @__PURE__ */ i(bo, { pageNumber:
|
|
989
|
+
u && /* @__PURE__ */ i(vo, { pageNumber: n }),
|
|
990
|
+
/* @__PURE__ */ i(Co, { pageNumber: n }),
|
|
991
|
+
/* @__PURE__ */ i(bo, { pageNumber: n })
|
|
992
992
|
]
|
|
993
993
|
}
|
|
994
994
|
)
|
|
@@ -998,9 +998,9 @@ const bo = (t) => {
|
|
|
998
998
|
function _t() {
|
|
999
999
|
return _t = Object.assign ? Object.assign.bind() : function(t) {
|
|
1000
1000
|
for (var e = 1; e < arguments.length; e++) {
|
|
1001
|
-
var
|
|
1002
|
-
for (var o in
|
|
1003
|
-
({}).hasOwnProperty.call(
|
|
1001
|
+
var n = arguments[e];
|
|
1002
|
+
for (var o in n)
|
|
1003
|
+
({}).hasOwnProperty.call(n, o) && (t[o] = n[o]);
|
|
1004
1004
|
}
|
|
1005
1005
|
return t;
|
|
1006
1006
|
}, _t.apply(null, arguments);
|
|
@@ -1011,8 +1011,8 @@ function Ut(t) {
|
|
|
1011
1011
|
return t;
|
|
1012
1012
|
}
|
|
1013
1013
|
function wt(t, e) {
|
|
1014
|
-
return wt = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(
|
|
1015
|
-
return
|
|
1014
|
+
return wt = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(n, o) {
|
|
1015
|
+
return n.__proto__ = o, n;
|
|
1016
1016
|
}, wt(t, e);
|
|
1017
1017
|
}
|
|
1018
1018
|
function Po(t, e) {
|
|
@@ -1027,32 +1027,32 @@ function So(t, e) {
|
|
|
1027
1027
|
function Io(t, e) {
|
|
1028
1028
|
if (t.length !== e.length)
|
|
1029
1029
|
return !1;
|
|
1030
|
-
for (var
|
|
1031
|
-
if (!So(t[
|
|
1030
|
+
for (var n = 0; n < t.length; n++)
|
|
1031
|
+
if (!So(t[n], e[n]))
|
|
1032
1032
|
return !1;
|
|
1033
1033
|
return !0;
|
|
1034
1034
|
}
|
|
1035
1035
|
function lt(t, e) {
|
|
1036
1036
|
e === void 0 && (e = Io);
|
|
1037
|
-
var
|
|
1038
|
-
function
|
|
1039
|
-
for (var
|
|
1040
|
-
|
|
1041
|
-
return a &&
|
|
1037
|
+
var n, o = [], r, a = !1;
|
|
1038
|
+
function c() {
|
|
1039
|
+
for (var s = [], u = 0; u < arguments.length; u++)
|
|
1040
|
+
s[u] = arguments[u];
|
|
1041
|
+
return a && n === this && e(s, o) || (r = t.apply(this, s), a = !0, n = this, o = s), r;
|
|
1042
1042
|
}
|
|
1043
|
-
return
|
|
1043
|
+
return c;
|
|
1044
1044
|
}
|
|
1045
1045
|
function Zt(t, e) {
|
|
1046
1046
|
if (t == null)
|
|
1047
1047
|
return {};
|
|
1048
|
-
var
|
|
1048
|
+
var n = {};
|
|
1049
1049
|
for (var o in t)
|
|
1050
1050
|
if ({}.hasOwnProperty.call(t, o)) {
|
|
1051
1051
|
if (e.indexOf(o) !== -1)
|
|
1052
1052
|
continue;
|
|
1053
|
-
|
|
1053
|
+
n[o] = t[o];
|
|
1054
1054
|
}
|
|
1055
|
-
return
|
|
1055
|
+
return n;
|
|
1056
1056
|
}
|
|
1057
1057
|
var yo = typeof performance == "object" && typeof performance.now == "function", jt = yo ? function() {
|
|
1058
1058
|
return performance.now();
|
|
@@ -1063,42 +1063,42 @@ function Bt(t) {
|
|
|
1063
1063
|
cancelAnimationFrame(t.id);
|
|
1064
1064
|
}
|
|
1065
1065
|
function xo(t, e) {
|
|
1066
|
-
var
|
|
1066
|
+
var n = jt();
|
|
1067
1067
|
function o() {
|
|
1068
|
-
jt() -
|
|
1068
|
+
jt() - n >= e ? t.call(null) : r.id = requestAnimationFrame(o);
|
|
1069
1069
|
}
|
|
1070
|
-
var
|
|
1070
|
+
var r = {
|
|
1071
1071
|
id: requestAnimationFrame(o)
|
|
1072
1072
|
};
|
|
1073
|
-
return
|
|
1073
|
+
return r;
|
|
1074
1074
|
}
|
|
1075
1075
|
var ut = -1;
|
|
1076
1076
|
function Ro(t) {
|
|
1077
1077
|
if (t === void 0 && (t = !1), ut === -1 || t) {
|
|
1078
|
-
var e = document.createElement("div"),
|
|
1079
|
-
|
|
1078
|
+
var e = document.createElement("div"), n = e.style;
|
|
1079
|
+
n.width = "50px", n.height = "50px", n.overflow = "scroll", document.body.appendChild(e), ut = e.offsetWidth - e.clientWidth, document.body.removeChild(e);
|
|
1080
1080
|
}
|
|
1081
1081
|
return ut;
|
|
1082
1082
|
}
|
|
1083
|
-
var
|
|
1083
|
+
var Le = null;
|
|
1084
1084
|
function Kt(t) {
|
|
1085
|
-
if (t === void 0 && (t = !1),
|
|
1086
|
-
var e = document.createElement("div"),
|
|
1087
|
-
|
|
1088
|
-
var o = document.createElement("div"),
|
|
1089
|
-
return
|
|
1085
|
+
if (t === void 0 && (t = !1), Le === null || t) {
|
|
1086
|
+
var e = document.createElement("div"), n = e.style;
|
|
1087
|
+
n.width = "50px", n.height = "50px", n.overflow = "scroll", n.direction = "rtl";
|
|
1088
|
+
var o = document.createElement("div"), r = o.style;
|
|
1089
|
+
return r.width = "100px", r.height = "100px", e.appendChild(o), document.body.appendChild(e), e.scrollLeft > 0 ? Le = "positive-descending" : (e.scrollLeft = 1, e.scrollLeft === 0 ? Le = "negative" : Le = "positive-ascending"), document.body.removeChild(e), Le;
|
|
1090
1090
|
}
|
|
1091
|
-
return
|
|
1091
|
+
return Le;
|
|
1092
1092
|
}
|
|
1093
1093
|
var Lo = 150, No = function(e) {
|
|
1094
|
-
var
|
|
1094
|
+
var n = e.columnIndex;
|
|
1095
1095
|
e.data;
|
|
1096
1096
|
var o = e.rowIndex;
|
|
1097
|
-
return o + ":" +
|
|
1097
|
+
return o + ":" + n;
|
|
1098
1098
|
}, He = null, $e = null, Ge = null;
|
|
1099
1099
|
process.env.NODE_ENV !== "production" && typeof window < "u" && typeof window.WeakSet < "u" && (He = /* @__PURE__ */ new WeakSet(), $e = /* @__PURE__ */ new WeakSet(), Ge = /* @__PURE__ */ new WeakSet());
|
|
1100
1100
|
function Eo(t) {
|
|
1101
|
-
var e,
|
|
1101
|
+
var e, n = t.getColumnOffset, o = t.getColumnStartIndexForOffset, r = t.getColumnStopIndexForStartIndex, a = t.getColumnWidth, c = t.getEstimatedTotalHeight, s = t.getEstimatedTotalWidth, u = t.getOffsetForColumnAndAlignment, l = t.getOffsetForRowAndAlignment, d = t.getRowHeight, f = t.getRowOffset, h = t.getRowStartIndexForOffset, g = t.getRowStopIndexForStartIndex, _ = t.initInstanceProps, b = t.shouldResetStyleCacheOnItemSizeChange, v = t.validateProps;
|
|
1102
1102
|
return e = /* @__PURE__ */ function(w) {
|
|
1103
1103
|
Po(m, w);
|
|
1104
1104
|
function m(I) {
|
|
@@ -1135,7 +1135,7 @@ function Eo(t) {
|
|
|
1135
1135
|
if (L.hasOwnProperty(F))
|
|
1136
1136
|
E = L[F];
|
|
1137
1137
|
else {
|
|
1138
|
-
var y =
|
|
1138
|
+
var y = n(p.props, C, p._instanceProps), N = R === "rtl";
|
|
1139
1139
|
L[F] = E = {
|
|
1140
1140
|
position: "absolute",
|
|
1141
1141
|
left: N ? void 0 : y,
|
|
@@ -1205,7 +1205,7 @@ function Eo(t) {
|
|
|
1205
1205
|
}, T.scrollToItem = function(p) {
|
|
1206
1206
|
var P = p.align, C = P === void 0 ? "auto" : P, S = p.columnIndex, A = p.rowIndex, R = this.props, D = R.columnCount, L = R.height, F = R.rowCount, E = R.width, y = this.state, N = y.scrollLeft, G = y.scrollTop, U = Ro();
|
|
1207
1207
|
S !== void 0 && (S = Math.max(0, Math.min(S, D - 1))), A !== void 0 && (A = Math.max(0, Math.min(A, F - 1)));
|
|
1208
|
-
var Z =
|
|
1208
|
+
var Z = c(this.props, this._instanceProps), ee = s(this.props, this._instanceProps), j = ee > E ? U : 0, J = Z > L ? U : 0;
|
|
1209
1209
|
this.scrollTo({
|
|
1210
1210
|
scrollLeft: S !== void 0 ? u(this.props, S, C, N, this._instanceProps, J) : N,
|
|
1211
1211
|
scrollTop: A !== void 0 ? l(this.props, A, C, G, this._instanceProps, j) : G
|
|
@@ -1242,7 +1242,7 @@ function Eo(t) {
|
|
|
1242
1242
|
}, T.componentWillUnmount = function() {
|
|
1243
1243
|
this._resetIsScrollingTimeoutId !== null && Bt(this._resetIsScrollingTimeoutId);
|
|
1244
1244
|
}, T.render = function() {
|
|
1245
|
-
var p = this.props, P = p.children, C = p.className, S = p.columnCount, A = p.direction, R = p.height, D = p.innerRef, L = p.innerElementType, F = p.innerTagName, E = p.itemData, y = p.itemKey, N = y === void 0 ? No : y, G = p.outerElementType, U = p.outerTagName, Z = p.rowCount, ee = p.style, j = p.useIsScrolling, J = p.width, ae = this.state.isScrolling,
|
|
1245
|
+
var p = this.props, P = p.children, C = p.className, S = p.columnCount, A = p.direction, R = p.height, D = p.innerRef, L = p.innerElementType, F = p.innerTagName, E = p.itemData, y = p.itemKey, N = y === void 0 ? No : y, G = p.outerElementType, U = p.outerTagName, Z = p.rowCount, ee = p.style, j = p.useIsScrolling, J = p.width, ae = this.state.isScrolling, ne = this._getHorizontalRangeToRender(), B = ne[0], Y = ne[1], ue = this._getVerticalRangeToRender(), be = ue[0], De = ue[1], de = [];
|
|
1246
1246
|
if (S > 0 && Z)
|
|
1247
1247
|
for (var pe = be; pe <= De; pe++)
|
|
1248
1248
|
for (var ge = B; ge <= Y; ge++)
|
|
@@ -1258,7 +1258,7 @@ function Eo(t) {
|
|
|
1258
1258
|
rowIndex: pe,
|
|
1259
1259
|
style: this._getItemStyle(pe, ge)
|
|
1260
1260
|
}));
|
|
1261
|
-
var Ce =
|
|
1261
|
+
var Ce = c(this.props, this._instanceProps), tt = s(this.props, this._instanceProps);
|
|
1262
1262
|
return Me(G || U || "div", {
|
|
1263
1263
|
className: C,
|
|
1264
1264
|
onScroll: this._onScroll,
|
|
@@ -1288,14 +1288,14 @@ function Eo(t) {
|
|
|
1288
1288
|
this._callOnItemsRendered(D, L, N, G, F, E, U, Z);
|
|
1289
1289
|
}
|
|
1290
1290
|
if (typeof S == "function") {
|
|
1291
|
-
var ee = this.state, j = ee.horizontalScrollDirection, J = ee.scrollLeft, ae = ee.scrollTop,
|
|
1292
|
-
this._callOnScroll(J, ae, j, B,
|
|
1291
|
+
var ee = this.state, j = ee.horizontalScrollDirection, J = ee.scrollLeft, ae = ee.scrollTop, ne = ee.scrollUpdateWasRequested, B = ee.verticalScrollDirection;
|
|
1292
|
+
this._callOnScroll(J, ae, j, B, ne);
|
|
1293
1293
|
}
|
|
1294
1294
|
}, T._getHorizontalRangeToRender = function() {
|
|
1295
1295
|
var p = this.props, P = p.columnCount, C = p.overscanColumnCount, S = p.overscanColumnsCount, A = p.overscanCount, R = p.rowCount, D = this.state, L = D.horizontalScrollDirection, F = D.isScrolling, E = D.scrollLeft, y = C || S || A || 1;
|
|
1296
1296
|
if (P === 0 || R === 0)
|
|
1297
1297
|
return [0, 0, 0, 0];
|
|
1298
|
-
var N = o(this.props, E, this._instanceProps), G =
|
|
1298
|
+
var N = o(this.props, E, this._instanceProps), G = r(this.props, N, E, this._instanceProps), U = !F || L === "backward" ? Math.max(1, y) : 1, Z = !F || L === "forward" ? Math.max(1, y) : 1;
|
|
1299
1299
|
return [Math.max(0, N - U), Math.max(0, Math.min(P - 1, G + Z)), N, G];
|
|
1300
1300
|
}, T._getVerticalRangeToRender = function() {
|
|
1301
1301
|
var p = this.props, P = p.columnCount, C = p.overscanCount, S = p.overscanRowCount, A = p.overscanRowsCount, R = p.rowCount, D = this.state, L = D.isScrolling, F = D.verticalScrollDirection, E = D.scrollTop, y = S || A || C || 1;
|
|
@@ -1304,83 +1304,83 @@ function Eo(t) {
|
|
|
1304
1304
|
var N = h(this.props, E, this._instanceProps), G = g(this.props, N, E, this._instanceProps), U = !L || F === "backward" ? Math.max(1, y) : 1, Z = !L || F === "forward" ? Math.max(1, y) : 1;
|
|
1305
1305
|
return [Math.max(0, N - U), Math.max(0, Math.min(R - 1, G + Z)), N, G];
|
|
1306
1306
|
}, m;
|
|
1307
|
-
}(
|
|
1307
|
+
}(rr), e.defaultProps = {
|
|
1308
1308
|
direction: "ltr",
|
|
1309
1309
|
itemData: void 0,
|
|
1310
1310
|
useIsScrolling: !1
|
|
1311
1311
|
}, e;
|
|
1312
1312
|
}
|
|
1313
|
-
var Oo = function(e,
|
|
1314
|
-
var o = e.children,
|
|
1313
|
+
var Oo = function(e, n) {
|
|
1314
|
+
var o = e.children, r = e.direction, a = e.height, c = e.innerTagName, s = e.outerTagName, u = e.overscanColumnsCount, l = e.overscanCount, d = e.overscanRowsCount, f = e.width, h = n.instance;
|
|
1315
1315
|
if (process.env.NODE_ENV !== "production") {
|
|
1316
|
-
if (typeof l == "number" && He && !He.has(h) && (He.add(h), console.warn("The overscanCount prop has been deprecated. Please use the overscanColumnCount and overscanRowCount props instead.")), (typeof u == "number" || typeof d == "number") && $e && !$e.has(h) && ($e.add(h), console.warn("The overscanColumnsCount and overscanRowsCount props have been deprecated. Please use the overscanColumnCount and overscanRowCount props instead.")), (
|
|
1316
|
+
if (typeof l == "number" && He && !He.has(h) && (He.add(h), console.warn("The overscanCount prop has been deprecated. Please use the overscanColumnCount and overscanRowCount props instead.")), (typeof u == "number" || typeof d == "number") && $e && !$e.has(h) && ($e.add(h), console.warn("The overscanColumnsCount and overscanRowsCount props have been deprecated. Please use the overscanColumnCount and overscanRowCount props instead.")), (c != null || s != null) && Ge && !Ge.has(h) && (Ge.add(h), console.warn("The innerTagName and outerTagName props have been deprecated. Please use the innerElementType and outerElementType props instead.")), o == null)
|
|
1317
1317
|
throw Error('An invalid "children" prop has been specified. Value should be a React component. ' + ('"' + (o === null ? "null" : typeof o) + '" was specified.'));
|
|
1318
|
-
switch (
|
|
1318
|
+
switch (r) {
|
|
1319
1319
|
case "ltr":
|
|
1320
1320
|
case "rtl":
|
|
1321
1321
|
break;
|
|
1322
1322
|
default:
|
|
1323
|
-
throw Error('An invalid "direction" prop has been specified. Value should be either "ltr" or "rtl". ' + ('"' +
|
|
1323
|
+
throw Error('An invalid "direction" prop has been specified. Value should be either "ltr" or "rtl". ' + ('"' + r + '" was specified.'));
|
|
1324
1324
|
}
|
|
1325
1325
|
if (typeof f != "number")
|
|
1326
1326
|
throw Error('An invalid "width" prop has been specified. Grids must specify a number for width. ' + ('"' + (f === null ? "null" : typeof f) + '" was specified.'));
|
|
1327
1327
|
if (typeof a != "number")
|
|
1328
1328
|
throw Error('An invalid "height" prop has been specified. Grids must specify a number for height. ' + ('"' + (a === null ? "null" : typeof a) + '" was specified.'));
|
|
1329
1329
|
}
|
|
1330
|
-
}, Xt = 50,
|
|
1331
|
-
var o = e.rowCount,
|
|
1332
|
-
if (
|
|
1333
|
-
var u =
|
|
1334
|
-
|
|
1330
|
+
}, Xt = 50, In = function(e, n) {
|
|
1331
|
+
var o = e.rowCount, r = n.rowMetadataMap, a = n.estimatedRowHeight, c = n.lastMeasuredRowIndex, s = 0;
|
|
1332
|
+
if (c >= o && (c = o - 1), c >= 0) {
|
|
1333
|
+
var u = r[c];
|
|
1334
|
+
s = u.offset + u.size;
|
|
1335
1335
|
}
|
|
1336
|
-
var l = o -
|
|
1337
|
-
return
|
|
1338
|
-
},
|
|
1339
|
-
var o = e.columnCount,
|
|
1340
|
-
if (
|
|
1341
|
-
var u =
|
|
1342
|
-
|
|
1336
|
+
var l = o - c - 1, d = l * a;
|
|
1337
|
+
return s + d;
|
|
1338
|
+
}, yn = function(e, n) {
|
|
1339
|
+
var o = e.columnCount, r = n.columnMetadataMap, a = n.estimatedColumnWidth, c = n.lastMeasuredColumnIndex, s = 0;
|
|
1340
|
+
if (c >= o && (c = o - 1), c >= 0) {
|
|
1341
|
+
var u = r[c];
|
|
1342
|
+
s = u.offset + u.size;
|
|
1343
1343
|
}
|
|
1344
|
-
var l = o -
|
|
1345
|
-
return
|
|
1346
|
-
}, ve = function(e,
|
|
1347
|
-
var a,
|
|
1348
|
-
if (e === "column" ? (a =
|
|
1344
|
+
var l = o - c - 1, d = l * a;
|
|
1345
|
+
return s + d;
|
|
1346
|
+
}, ve = function(e, n, o, r) {
|
|
1347
|
+
var a, c, s;
|
|
1348
|
+
if (e === "column" ? (a = r.columnMetadataMap, c = n.columnWidth, s = r.lastMeasuredColumnIndex) : (a = r.rowMetadataMap, c = n.rowHeight, s = r.lastMeasuredRowIndex), o > s) {
|
|
1349
1349
|
var u = 0;
|
|
1350
|
-
if (
|
|
1351
|
-
var l = a[
|
|
1350
|
+
if (s >= 0) {
|
|
1351
|
+
var l = a[s];
|
|
1352
1352
|
u = l.offset + l.size;
|
|
1353
1353
|
}
|
|
1354
|
-
for (var d =
|
|
1355
|
-
var f =
|
|
1354
|
+
for (var d = s + 1; d <= o; d++) {
|
|
1355
|
+
var f = c(d);
|
|
1356
1356
|
a[d] = {
|
|
1357
1357
|
offset: u,
|
|
1358
1358
|
size: f
|
|
1359
1359
|
}, u += f;
|
|
1360
1360
|
}
|
|
1361
|
-
e === "column" ?
|
|
1361
|
+
e === "column" ? r.lastMeasuredColumnIndex = o : r.lastMeasuredRowIndex = o;
|
|
1362
1362
|
}
|
|
1363
1363
|
return a[o];
|
|
1364
|
-
}, Jt = function(e,
|
|
1365
|
-
var a,
|
|
1366
|
-
e === "column" ? (a = o.columnMetadataMap,
|
|
1367
|
-
var
|
|
1368
|
-
return
|
|
1369
|
-
},
|
|
1370
|
-
for (; a <=
|
|
1371
|
-
var
|
|
1372
|
-
if (u ===
|
|
1373
|
-
return
|
|
1374
|
-
u <
|
|
1364
|
+
}, Jt = function(e, n, o, r) {
|
|
1365
|
+
var a, c;
|
|
1366
|
+
e === "column" ? (a = o.columnMetadataMap, c = o.lastMeasuredColumnIndex) : (a = o.rowMetadataMap, c = o.lastMeasuredRowIndex);
|
|
1367
|
+
var s = c > 0 ? a[c].offset : 0;
|
|
1368
|
+
return s >= r ? xn(e, n, o, c, 0, r) : Do(e, n, o, Math.max(0, c), r);
|
|
1369
|
+
}, xn = function(e, n, o, r, a, c) {
|
|
1370
|
+
for (; a <= r; ) {
|
|
1371
|
+
var s = a + Math.floor((r - a) / 2), u = ve(e, n, s, o).offset;
|
|
1372
|
+
if (u === c)
|
|
1373
|
+
return s;
|
|
1374
|
+
u < c ? a = s + 1 : u > c && (r = s - 1);
|
|
1375
1375
|
}
|
|
1376
1376
|
return a > 0 ? a - 1 : 0;
|
|
1377
|
-
}, Do = function(e,
|
|
1378
|
-
for (var
|
|
1379
|
-
|
|
1380
|
-
return
|
|
1381
|
-
}, Yt = function(e,
|
|
1382
|
-
var u = e === "column" ?
|
|
1383
|
-
switch (
|
|
1377
|
+
}, Do = function(e, n, o, r, a) {
|
|
1378
|
+
for (var c = e === "column" ? n.columnCount : n.rowCount, s = 1; r < c && ve(e, n, r, o).offset < a; )
|
|
1379
|
+
r += s, s *= 2;
|
|
1380
|
+
return xn(e, n, o, Math.min(r, c - 1), Math.floor(r / 2), a);
|
|
1381
|
+
}, Yt = function(e, n, o, r, a, c, s) {
|
|
1382
|
+
var u = e === "column" ? n.width : n.height, l = ve(e, n, o, c), d = e === "column" ? yn(n, c) : In(n, c), f = Math.max(0, Math.min(d - u, l.offset)), h = Math.max(0, l.offset - u + s + l.size);
|
|
1383
|
+
switch (r === "smart" && (a >= h - u && a <= f + u ? r = "auto" : r = "center"), r) {
|
|
1384
1384
|
case "start":
|
|
1385
1385
|
return f;
|
|
1386
1386
|
case "end":
|
|
@@ -1392,72 +1392,72 @@ var Oo = function(e, r) {
|
|
|
1392
1392
|
return a >= h && a <= f ? a : h > f || a < h ? h : f;
|
|
1393
1393
|
}
|
|
1394
1394
|
}, zo = /* @__PURE__ */ Eo({
|
|
1395
|
-
getColumnOffset: function(e,
|
|
1396
|
-
return ve("column", e,
|
|
1395
|
+
getColumnOffset: function(e, n, o) {
|
|
1396
|
+
return ve("column", e, n, o).offset;
|
|
1397
1397
|
},
|
|
1398
|
-
getColumnStartIndexForOffset: function(e,
|
|
1399
|
-
return Jt("column", e, o,
|
|
1398
|
+
getColumnStartIndexForOffset: function(e, n, o) {
|
|
1399
|
+
return Jt("column", e, o, n);
|
|
1400
1400
|
},
|
|
1401
|
-
getColumnStopIndexForStartIndex: function(e,
|
|
1402
|
-
for (var a = e.columnCount,
|
|
1403
|
-
d++, l += ve("column", e, d,
|
|
1401
|
+
getColumnStopIndexForStartIndex: function(e, n, o, r) {
|
|
1402
|
+
for (var a = e.columnCount, c = e.width, s = ve("column", e, n, r), u = o + c, l = s.offset + s.size, d = n; d < a - 1 && l < u; )
|
|
1403
|
+
d++, l += ve("column", e, d, r).size;
|
|
1404
1404
|
return d;
|
|
1405
1405
|
},
|
|
1406
|
-
getColumnWidth: function(e,
|
|
1407
|
-
return o.columnMetadataMap[
|
|
1406
|
+
getColumnWidth: function(e, n, o) {
|
|
1407
|
+
return o.columnMetadataMap[n].size;
|
|
1408
1408
|
},
|
|
1409
|
-
getEstimatedTotalHeight:
|
|
1410
|
-
getEstimatedTotalWidth:
|
|
1411
|
-
getOffsetForColumnAndAlignment: function(e,
|
|
1412
|
-
return Yt("column", e,
|
|
1409
|
+
getEstimatedTotalHeight: In,
|
|
1410
|
+
getEstimatedTotalWidth: yn,
|
|
1411
|
+
getOffsetForColumnAndAlignment: function(e, n, o, r, a, c) {
|
|
1412
|
+
return Yt("column", e, n, o, r, a, c);
|
|
1413
1413
|
},
|
|
1414
|
-
getOffsetForRowAndAlignment: function(e,
|
|
1415
|
-
return Yt("row", e,
|
|
1414
|
+
getOffsetForRowAndAlignment: function(e, n, o, r, a, c) {
|
|
1415
|
+
return Yt("row", e, n, o, r, a, c);
|
|
1416
1416
|
},
|
|
1417
|
-
getRowOffset: function(e,
|
|
1418
|
-
return ve("row", e,
|
|
1417
|
+
getRowOffset: function(e, n, o) {
|
|
1418
|
+
return ve("row", e, n, o).offset;
|
|
1419
1419
|
},
|
|
1420
|
-
getRowHeight: function(e,
|
|
1421
|
-
return o.rowMetadataMap[
|
|
1420
|
+
getRowHeight: function(e, n, o) {
|
|
1421
|
+
return o.rowMetadataMap[n].size;
|
|
1422
1422
|
},
|
|
1423
|
-
getRowStartIndexForOffset: function(e,
|
|
1424
|
-
return Jt("row", e, o,
|
|
1423
|
+
getRowStartIndexForOffset: function(e, n, o) {
|
|
1424
|
+
return Jt("row", e, o, n);
|
|
1425
1425
|
},
|
|
1426
|
-
getRowStopIndexForStartIndex: function(e,
|
|
1427
|
-
for (var a = e.rowCount,
|
|
1428
|
-
d++, l += ve("row", e, d,
|
|
1426
|
+
getRowStopIndexForStartIndex: function(e, n, o, r) {
|
|
1427
|
+
for (var a = e.rowCount, c = e.height, s = ve("row", e, n, r), u = o + c, l = s.offset + s.size, d = n; d < a - 1 && l < u; )
|
|
1428
|
+
d++, l += ve("row", e, d, r).size;
|
|
1429
1429
|
return d;
|
|
1430
1430
|
},
|
|
1431
|
-
initInstanceProps: function(e,
|
|
1432
|
-
var o = e,
|
|
1431
|
+
initInstanceProps: function(e, n) {
|
|
1432
|
+
var o = e, r = o.estimatedColumnWidth, a = o.estimatedRowHeight, c = {
|
|
1433
1433
|
columnMetadataMap: {},
|
|
1434
|
-
estimatedColumnWidth:
|
|
1434
|
+
estimatedColumnWidth: r || Xt,
|
|
1435
1435
|
estimatedRowHeight: a || Xt,
|
|
1436
1436
|
lastMeasuredColumnIndex: -1,
|
|
1437
1437
|
lastMeasuredRowIndex: -1,
|
|
1438
1438
|
rowMetadataMap: {}
|
|
1439
1439
|
};
|
|
1440
|
-
return
|
|
1441
|
-
u === void 0 && (u = !0),
|
|
1442
|
-
columnIndex:
|
|
1440
|
+
return n.resetAfterColumnIndex = function(s, u) {
|
|
1441
|
+
u === void 0 && (u = !0), n.resetAfterIndices({
|
|
1442
|
+
columnIndex: s,
|
|
1443
1443
|
shouldForceUpdate: u
|
|
1444
1444
|
});
|
|
1445
|
-
},
|
|
1446
|
-
u === void 0 && (u = !0),
|
|
1447
|
-
rowIndex:
|
|
1445
|
+
}, n.resetAfterRowIndex = function(s, u) {
|
|
1446
|
+
u === void 0 && (u = !0), n.resetAfterIndices({
|
|
1447
|
+
rowIndex: s,
|
|
1448
1448
|
shouldForceUpdate: u
|
|
1449
1449
|
});
|
|
1450
|
-
},
|
|
1451
|
-
var u =
|
|
1452
|
-
typeof u == "number" && (
|
|
1453
|
-
},
|
|
1450
|
+
}, n.resetAfterIndices = function(s) {
|
|
1451
|
+
var u = s.columnIndex, l = s.rowIndex, d = s.shouldForceUpdate, f = d === void 0 ? !0 : d;
|
|
1452
|
+
typeof u == "number" && (c.lastMeasuredColumnIndex = Math.min(c.lastMeasuredColumnIndex, u - 1)), typeof l == "number" && (c.lastMeasuredRowIndex = Math.min(c.lastMeasuredRowIndex, l - 1)), n._getItemStyleCache(-1), f && n.forceUpdate();
|
|
1453
|
+
}, c;
|
|
1454
1454
|
},
|
|
1455
1455
|
shouldResetStyleCacheOnItemSizeChange: !1,
|
|
1456
1456
|
validateProps: function(e) {
|
|
1457
|
-
var
|
|
1457
|
+
var n = e.columnWidth, o = e.rowHeight;
|
|
1458
1458
|
if (process.env.NODE_ENV !== "production") {
|
|
1459
|
-
if (typeof
|
|
1460
|
-
throw Error('An invalid "columnWidth" prop has been specified. Value should be a function. ' + ('"' + (
|
|
1459
|
+
if (typeof n != "function")
|
|
1460
|
+
throw Error('An invalid "columnWidth" prop has been specified. Value should be a function. ' + ('"' + (n === null ? "null" : typeof n) + '" was specified.'));
|
|
1461
1461
|
if (typeof o != "function")
|
|
1462
1462
|
throw Error('An invalid "rowHeight" prop has been specified. Value should be a function. ' + ('"' + (o === null ? "null" : typeof o) + '" was specified.'));
|
|
1463
1463
|
}
|
|
@@ -1465,8 +1465,8 @@ var Oo = function(e, r) {
|
|
|
1465
1465
|
});
|
|
1466
1466
|
process.env.NODE_ENV;
|
|
1467
1467
|
function Qt(t, e) {
|
|
1468
|
-
for (var
|
|
1469
|
-
if (!(
|
|
1468
|
+
for (var n in t)
|
|
1469
|
+
if (!(n in e))
|
|
1470
1470
|
return !0;
|
|
1471
1471
|
for (var o in e)
|
|
1472
1472
|
if (t[o] !== e[o])
|
|
@@ -1475,27 +1475,27 @@ function Qt(t, e) {
|
|
|
1475
1475
|
}
|
|
1476
1476
|
var Ao = ["style"], Fo = ["style"];
|
|
1477
1477
|
function ko(t, e) {
|
|
1478
|
-
var
|
|
1479
|
-
return !Qt(
|
|
1478
|
+
var n = t.style, o = Zt(t, Ao), r = e.style, a = Zt(e, Fo);
|
|
1479
|
+
return !Qt(n, r) && !Qt(o, a);
|
|
1480
1480
|
}
|
|
1481
1481
|
const Wo = () => {
|
|
1482
|
-
const { viewMode: t } = Je(), { scrollMode: e } = Oe(), { setColumnCount:
|
|
1483
|
-
(g) =>
|
|
1484
|
-
[
|
|
1485
|
-
),
|
|
1486
|
-
(g) =>
|
|
1487
|
-
[
|
|
1488
|
-
),
|
|
1482
|
+
const { viewMode: t } = Je(), { scrollMode: e } = Oe(), { setColumnCount: n } = ln(), { virtualScrollableElementRef: o } = Ye(), r = Pt(), a = x(
|
|
1483
|
+
(g) => r.widths[g] || 0,
|
|
1484
|
+
[r.widths]
|
|
1485
|
+
), c = x(
|
|
1486
|
+
(g) => r.heights[g] || 0,
|
|
1487
|
+
[r.heights]
|
|
1488
|
+
), s = k(() => r.heights.length, [r.heights]), u = k(() => Math.max(...r.widths), [r.widths]), l = k(() => e === K.HORIZONTAL_SCROLLING ? s : t === Ve.DUAL_PAGE ? 2 : 1, [t, e, e, s, o, u]);
|
|
1489
1489
|
O(() => {
|
|
1490
|
-
|
|
1491
|
-
}, [l,
|
|
1492
|
-
const d = k(() => e === K.HORIZONTAL_SCROLLING || e === K.PAGE_SCROLLING ? 1 : Math.round(
|
|
1490
|
+
n(l);
|
|
1491
|
+
}, [l, n]);
|
|
1492
|
+
const d = k(() => e === K.HORIZONTAL_SCROLLING || e === K.PAGE_SCROLLING ? 1 : Math.round(s / l), [l, s, e]), f = k(() => r.heights.reduce((g, _) => g + _, 0) / r.heights.length || 0, [r]), h = k(() => r.widths.reduce((g, _) => g + _, 0) / r.heights.length || 0, [r]);
|
|
1493
1493
|
return {
|
|
1494
1494
|
rowCount: d,
|
|
1495
|
-
rowHeight:
|
|
1495
|
+
rowHeight: c,
|
|
1496
1496
|
columnCount: l,
|
|
1497
1497
|
columnWidth: a,
|
|
1498
|
-
pageDimension:
|
|
1498
|
+
pageDimension: r,
|
|
1499
1499
|
estimatedRowHeight: f,
|
|
1500
1500
|
estimatedColumnWidth: h
|
|
1501
1501
|
};
|
|
@@ -1503,33 +1503,33 @@ const Wo = () => {
|
|
|
1503
1503
|
let ie;
|
|
1504
1504
|
typeof window < "u" ? ie = window : typeof self < "u" ? ie = self : ie = global;
|
|
1505
1505
|
let bt = null, Ct = null;
|
|
1506
|
-
const
|
|
1507
|
-
pt == null ||
|
|
1508
|
-
return
|
|
1509
|
-
}) : (bt = function([e,
|
|
1510
|
-
pt(e), dt(
|
|
1506
|
+
const en = 20, dt = ie.clearTimeout, tn = ie.setTimeout, pt = ie.cancelAnimationFrame || ie.mozCancelAnimationFrame || ie.webkitCancelAnimationFrame, nn = ie.requestAnimationFrame || ie.mozRequestAnimationFrame || ie.webkitRequestAnimationFrame;
|
|
1507
|
+
pt == null || nn == null ? (bt = dt, Ct = function(e) {
|
|
1508
|
+
return tn(e, en);
|
|
1509
|
+
}) : (bt = function([e, n]) {
|
|
1510
|
+
pt(e), dt(n);
|
|
1511
1511
|
}, Ct = function(e) {
|
|
1512
|
-
const
|
|
1512
|
+
const n = nn(function() {
|
|
1513
1513
|
dt(o), e();
|
|
1514
|
-
}), o =
|
|
1515
|
-
pt(
|
|
1516
|
-
},
|
|
1517
|
-
return [
|
|
1514
|
+
}), o = tn(function() {
|
|
1515
|
+
pt(n), e();
|
|
1516
|
+
}, en);
|
|
1517
|
+
return [n, o];
|
|
1518
1518
|
});
|
|
1519
1519
|
function Mo(t) {
|
|
1520
|
-
let e,
|
|
1520
|
+
let e, n, o, r, a, c, s;
|
|
1521
1521
|
const u = typeof document < "u" && document.attachEvent;
|
|
1522
1522
|
if (!u) {
|
|
1523
|
-
|
|
1523
|
+
c = function(w) {
|
|
1524
1524
|
const m = w.__resizeTriggers__, T = m.firstElementChild, I = m.lastElementChild, p = T.firstElementChild;
|
|
1525
1525
|
I.scrollLeft = I.scrollWidth, I.scrollTop = I.scrollHeight, p.style.width = T.offsetWidth + 1 + "px", p.style.height = T.offsetHeight + 1 + "px", T.scrollLeft = T.scrollWidth, T.scrollTop = T.scrollHeight;
|
|
1526
1526
|
}, a = function(w) {
|
|
1527
1527
|
return w.offsetWidth !== w.__resizeLast__.width || w.offsetHeight !== w.__resizeLast__.height;
|
|
1528
|
-
},
|
|
1528
|
+
}, s = function(w) {
|
|
1529
1529
|
if (w.target.className && typeof w.target.className.indexOf == "function" && w.target.className.indexOf("contract-trigger") < 0 && w.target.className.indexOf("expand-trigger") < 0)
|
|
1530
1530
|
return;
|
|
1531
1531
|
const m = this;
|
|
1532
|
-
|
|
1532
|
+
c(this), this.__resizeRAF__ && bt(this.__resizeRAF__), this.__resizeRAF__ = Ct(function() {
|
|
1533
1533
|
a(m) && (m.__resizeLast__.width = m.offsetWidth, m.__resizeLast__.height = m.offsetHeight, m.__resizeListeners__.forEach(function(p) {
|
|
1534
1534
|
p.call(m, w);
|
|
1535
1535
|
}));
|
|
@@ -1549,11 +1549,11 @@ function Mo(t) {
|
|
|
1549
1549
|
}
|
|
1550
1550
|
}
|
|
1551
1551
|
}
|
|
1552
|
-
|
|
1552
|
+
n = "resizeanim", e = "@" + g + "keyframes " + n + " { from { opacity: 0; } to { opacity: 0; } } ", r = g + "animation: 1ms " + n + "; ";
|
|
1553
1553
|
}
|
|
1554
1554
|
const l = function(h) {
|
|
1555
1555
|
if (!h.getElementById("detectElementResize")) {
|
|
1556
|
-
const g = (e || "") + ".resize-triggers { " + (
|
|
1556
|
+
const g = (e || "") + ".resize-triggers { " + (r || "") + 'visibility: hidden; opacity: 0; } .resize-triggers, .resize-triggers > div, .contract-trigger:before { content: " "; display: block; position: absolute; top: 0; left: 0; height: 100%; width: 100%; overflow: hidden; z-index: -1; } .resize-triggers > div { background: #eee; overflow: auto; } .contract-trigger:before { width: 200%; height: 200%; }', _ = h.head || h.getElementsByTagName("head")[0], b = h.createElement("style");
|
|
1557
1557
|
b.id = "detectElementResize", b.type = "text/css", t != null && b.setAttribute("nonce", t), b.styleSheet ? b.styleSheet.cssText = g : b.appendChild(h.createTextNode(g)), _.appendChild(b);
|
|
1558
1558
|
}
|
|
1559
1559
|
};
|
|
@@ -1568,8 +1568,8 @@ function Mo(t) {
|
|
|
1568
1568
|
const v = _.createElement("div");
|
|
1569
1569
|
v.className = "expand-trigger", v.appendChild(_.createElement("div"));
|
|
1570
1570
|
const w = _.createElement("div");
|
|
1571
|
-
w.className = "contract-trigger", h.__resizeTriggers__.appendChild(v), h.__resizeTriggers__.appendChild(w), h.appendChild(h.__resizeTriggers__),
|
|
1572
|
-
T.animationName ===
|
|
1571
|
+
w.className = "contract-trigger", h.__resizeTriggers__.appendChild(v), h.__resizeTriggers__.appendChild(w), h.appendChild(h.__resizeTriggers__), c(h), h.addEventListener("scroll", s, !0), o && (h.__resizeTriggers__.__animationListener__ = function(T) {
|
|
1572
|
+
T.animationName === n && c(h);
|
|
1573
1573
|
}, h.__resizeTriggers__.addEventListener(o, h.__resizeTriggers__.__animationListener__));
|
|
1574
1574
|
}
|
|
1575
1575
|
h.__resizeListeners__.push(g);
|
|
@@ -1579,7 +1579,7 @@ function Mo(t) {
|
|
|
1579
1579
|
if (u)
|
|
1580
1580
|
h.detachEvent("onresize", g);
|
|
1581
1581
|
else if (h.__resizeListeners__.splice(h.__resizeListeners__.indexOf(g), 1), !h.__resizeListeners__.length) {
|
|
1582
|
-
h.removeEventListener("scroll",
|
|
1582
|
+
h.removeEventListener("scroll", s, !0), h.__resizeTriggers__.__animationListener__ && (h.__resizeTriggers__.removeEventListener(o, h.__resizeTriggers__.__animationListener__), h.__resizeTriggers__.__animationListener__ = null);
|
|
1583
1583
|
try {
|
|
1584
1584
|
h.__resizeTriggers__ = !h.removeChild(h.__resizeTriggers__);
|
|
1585
1585
|
} catch {
|
|
@@ -1588,7 +1588,7 @@ function Mo(t) {
|
|
|
1588
1588
|
}
|
|
1589
1589
|
};
|
|
1590
1590
|
}
|
|
1591
|
-
class Ho extends
|
|
1591
|
+
class Ho extends or {
|
|
1592
1592
|
constructor(...e) {
|
|
1593
1593
|
super(...e), this.state = {
|
|
1594
1594
|
height: this.props.defaultHeight || 0,
|
|
@@ -1598,38 +1598,38 @@ class Ho extends nn {
|
|
|
1598
1598
|
}, this._autoSizer = null, this._detectElementResize = null, this._parentNode = null, this._resizeObserver = null, this._timeoutId = null, this._onResize = () => {
|
|
1599
1599
|
this._timeoutId = null;
|
|
1600
1600
|
const {
|
|
1601
|
-
disableHeight:
|
|
1601
|
+
disableHeight: n,
|
|
1602
1602
|
disableWidth: o,
|
|
1603
|
-
onResize:
|
|
1603
|
+
onResize: r
|
|
1604
1604
|
} = this.props;
|
|
1605
1605
|
if (this._parentNode) {
|
|
1606
|
-
const a = window.getComputedStyle(this._parentNode) || {},
|
|
1607
|
-
(!
|
|
1606
|
+
const a = window.getComputedStyle(this._parentNode) || {}, c = parseFloat(a.paddingLeft || "0"), s = parseFloat(a.paddingRight || "0"), u = parseFloat(a.paddingTop || "0"), l = parseFloat(a.paddingBottom || "0"), d = this._parentNode.getBoundingClientRect(), f = d.height - u - l, h = d.width - c - s, g = this._parentNode.offsetHeight - u - l, _ = this._parentNode.offsetWidth - c - s;
|
|
1607
|
+
(!n && (this.state.height !== g || this.state.scaledHeight !== f) || !o && (this.state.width !== _ || this.state.scaledWidth !== h)) && (this.setState({
|
|
1608
1608
|
height: g,
|
|
1609
1609
|
width: _,
|
|
1610
1610
|
scaledHeight: f,
|
|
1611
1611
|
scaledWidth: h
|
|
1612
|
-
}), typeof
|
|
1612
|
+
}), typeof r == "function" && r({
|
|
1613
1613
|
height: g,
|
|
1614
1614
|
scaledHeight: f,
|
|
1615
1615
|
scaledWidth: h,
|
|
1616
1616
|
width: _
|
|
1617
1617
|
}));
|
|
1618
1618
|
}
|
|
1619
|
-
}, this._setRef = (
|
|
1620
|
-
this._autoSizer =
|
|
1619
|
+
}, this._setRef = (n) => {
|
|
1620
|
+
this._autoSizer = n;
|
|
1621
1621
|
};
|
|
1622
1622
|
}
|
|
1623
1623
|
componentDidMount() {
|
|
1624
1624
|
const {
|
|
1625
1625
|
nonce: e
|
|
1626
|
-
} = this.props,
|
|
1627
|
-
if (
|
|
1628
|
-
this._parentNode =
|
|
1629
|
-
const o =
|
|
1626
|
+
} = this.props, n = this._autoSizer ? this._autoSizer.parentNode : null;
|
|
1627
|
+
if (n != null && n.ownerDocument && n.ownerDocument.defaultView && n instanceof n.ownerDocument.defaultView.HTMLElement) {
|
|
1628
|
+
this._parentNode = n;
|
|
1629
|
+
const o = n.ownerDocument.defaultView.ResizeObserver;
|
|
1630
1630
|
o != null ? (this._resizeObserver = new o(() => {
|
|
1631
1631
|
this._timeoutId = setTimeout(this._onResize, 0);
|
|
1632
|
-
}), this._resizeObserver.observe(
|
|
1632
|
+
}), this._resizeObserver.observe(n)) : (this._detectElementResize = Mo(e), this._detectElementResize.addResizeListener(n, this._onResize)), this._onResize();
|
|
1633
1633
|
}
|
|
1634
1634
|
}
|
|
1635
1635
|
componentWillUnmount() {
|
|
@@ -1638,12 +1638,12 @@ class Ho extends nn {
|
|
|
1638
1638
|
render() {
|
|
1639
1639
|
const {
|
|
1640
1640
|
children: e,
|
|
1641
|
-
defaultHeight:
|
|
1641
|
+
defaultHeight: n,
|
|
1642
1642
|
defaultWidth: o,
|
|
1643
|
-
disableHeight:
|
|
1643
|
+
disableHeight: r = !1,
|
|
1644
1644
|
disableWidth: a = !1,
|
|
1645
|
-
doNotBailOutOnEmptyChildren:
|
|
1646
|
-
nonce:
|
|
1645
|
+
doNotBailOutOnEmptyChildren: c = !1,
|
|
1646
|
+
nonce: s,
|
|
1647
1647
|
onResize: u,
|
|
1648
1648
|
style: l = {},
|
|
1649
1649
|
tagName: d = "div",
|
|
@@ -1657,7 +1657,7 @@ class Ho extends nn {
|
|
|
1657
1657
|
overflow: "visible"
|
|
1658
1658
|
}, w = {};
|
|
1659
1659
|
let m = !1;
|
|
1660
|
-
return
|
|
1660
|
+
return r || (h === 0 && (m = !0), v.height = 0, w.height = h, w.scaledHeight = g), a || (b === 0 && (m = !0), v.width = 0, w.width = b, w.scaledWidth = _), c && (m = !1), Me(d, {
|
|
1661
1661
|
ref: this._setRef,
|
|
1662
1662
|
style: {
|
|
1663
1663
|
...v,
|
|
@@ -1668,44 +1668,44 @@ class Ho extends nn {
|
|
|
1668
1668
|
}
|
|
1669
1669
|
}
|
|
1670
1670
|
const $o = ({ widths: t, heights: e }) => {
|
|
1671
|
-
const { focusedPage:
|
|
1672
|
-
const u = [], l = Math.ceil(
|
|
1671
|
+
const { focusedPage: n, totalPages: o } = ce(), { isScrolling: r } = Qe(), a = k(() => {
|
|
1672
|
+
const u = [], l = Math.ceil(n / 2) * 2 - 1;
|
|
1673
1673
|
if (u.push(l), l + 1 < o) {
|
|
1674
1674
|
const d = l + 1;
|
|
1675
1675
|
u.push(d);
|
|
1676
1676
|
}
|
|
1677
1677
|
return u;
|
|
1678
|
-
}, [
|
|
1678
|
+
}, [n, o]), c = k(() => [
|
|
1679
1679
|
{
|
|
1680
1680
|
position: "absolute",
|
|
1681
1681
|
left: 0,
|
|
1682
|
-
width: t(
|
|
1683
|
-
height: e(
|
|
1682
|
+
width: t(n - 1),
|
|
1683
|
+
height: e(n - 1)
|
|
1684
1684
|
},
|
|
1685
1685
|
{
|
|
1686
1686
|
position: "absolute",
|
|
1687
|
-
left: t(
|
|
1687
|
+
left: t(n),
|
|
1688
1688
|
top: 0,
|
|
1689
|
-
width: t(
|
|
1690
|
-
height: e(
|
|
1689
|
+
width: t(n),
|
|
1690
|
+
height: e(n)
|
|
1691
1691
|
}
|
|
1692
1692
|
], [t, e, a]);
|
|
1693
1693
|
O(() => {
|
|
1694
|
-
|
|
1695
|
-
}, [
|
|
1696
|
-
const
|
|
1697
|
-
return /* @__PURE__ */ i("div", { style: { width:
|
|
1698
|
-
}, style:
|
|
1694
|
+
r.current = !1;
|
|
1695
|
+
}, [n]);
|
|
1696
|
+
const s = k(() => c.reduce((u, l) => u + Number(l.width || 0), 0), [c]);
|
|
1697
|
+
return /* @__PURE__ */ i("div", { style: { width: s, position: "relative" }, children: a.map((u, l) => /* @__PURE__ */ i(Rt, { onIntersectRatioChange: () => {
|
|
1698
|
+
}, style: c[l], pageNumber: u }, u)) });
|
|
1699
1699
|
}, Go = ({ widths: t, heights: e }) => {
|
|
1700
|
-
const { focusedPage:
|
|
1700
|
+
const { focusedPage: n } = ce(), { isScrolling: o } = Qe(), r = k(() => ({
|
|
1701
1701
|
position: "absolute",
|
|
1702
|
-
width: t(
|
|
1703
|
-
height: e(
|
|
1704
|
-
}), [t, e,
|
|
1702
|
+
width: t(n - 1),
|
|
1703
|
+
height: e(n - 1)
|
|
1704
|
+
}), [t, e, n]);
|
|
1705
1705
|
O(() => {
|
|
1706
1706
|
o.current = !1;
|
|
1707
|
-
}, [
|
|
1708
|
-
const a = k(() => t(
|
|
1707
|
+
}, [n]);
|
|
1708
|
+
const a = k(() => t(n - 1), [t]);
|
|
1709
1709
|
return /* @__PURE__ */ i(
|
|
1710
1710
|
"div",
|
|
1711
1711
|
{
|
|
@@ -1716,44 +1716,44 @@ const $o = ({ widths: t, heights: e }) => {
|
|
|
1716
1716
|
children: /* @__PURE__ */ i(
|
|
1717
1717
|
Rt,
|
|
1718
1718
|
{
|
|
1719
|
-
style:
|
|
1719
|
+
style: r,
|
|
1720
1720
|
onIntersectRatioChange: () => {
|
|
1721
1721
|
},
|
|
1722
|
-
pageNumber:
|
|
1722
|
+
pageNumber: n
|
|
1723
1723
|
},
|
|
1724
|
-
|
|
1724
|
+
n
|
|
1725
1725
|
)
|
|
1726
1726
|
}
|
|
1727
1727
|
);
|
|
1728
|
-
}, Vo =
|
|
1729
|
-
const
|
|
1728
|
+
}, Vo = ir(({ columnIndex: t, rowIndex: e, data: n, style: o }) => {
|
|
1729
|
+
const r = t + 1 + e * n.columnCount;
|
|
1730
1730
|
return /* @__PURE__ */ i(
|
|
1731
1731
|
Rt,
|
|
1732
1732
|
{
|
|
1733
1733
|
style: o,
|
|
1734
|
-
onIntersectRatioChange:
|
|
1735
|
-
pageNumber:
|
|
1734
|
+
onIntersectRatioChange: n.handleIntersectRatioChange,
|
|
1735
|
+
pageNumber: r
|
|
1736
1736
|
},
|
|
1737
|
-
|
|
1737
|
+
r
|
|
1738
1738
|
);
|
|
1739
1739
|
}, ko), _s = () => {
|
|
1740
|
-
const { initialPage: t = 1, initialScrollMode: e } =
|
|
1741
|
-
|
|
1742
|
-
const { scrollToPage:
|
|
1740
|
+
const { initialPage: t = 1, initialScrollMode: e } = lr(), { pagesRef: n, setPagesRef: o } = xe();
|
|
1741
|
+
Dr(n);
|
|
1742
|
+
const { scrollToPage: r } = _n(), {
|
|
1743
1743
|
virtualScrollRef: a,
|
|
1744
|
-
getVirtualScrollRef:
|
|
1745
|
-
getPageScrollElementRef:
|
|
1744
|
+
getVirtualScrollRef: c,
|
|
1745
|
+
getPageScrollElementRef: s,
|
|
1746
1746
|
getVirtualScrollableElementRef: u,
|
|
1747
1747
|
setTotalInnerDimensions: l,
|
|
1748
1748
|
virtualScrollableElementRef: d,
|
|
1749
1749
|
totalInnerDimensions: f,
|
|
1750
1750
|
pageScrollElementRef: h
|
|
1751
|
-
} = Ye(), g = W(!0), { nextPage: _, prevPage: b, setFocusedPage: v, focusedPage: w } = ce(), { scrollMode: m } = Oe(), { viewMode: T } = Je(), I = W(null), { loading: p } = X(), { LoaderImageComponent: P } =
|
|
1751
|
+
} = Ye(), g = W(!0), { nextPage: _, prevPage: b, setFocusedPage: v, focusedPage: w } = ce(), { scrollMode: m } = Oe(), { viewMode: T } = Je(), I = W(null), { loading: p } = X(), { LoaderImageComponent: P } = pn(), C = W(
|
|
1752
1752
|
f
|
|
1753
1753
|
), S = W({
|
|
1754
1754
|
viewMode: T,
|
|
1755
1755
|
scrollMode: m
|
|
1756
|
-
}), A = W(!1), R = W(), { isFullScreen: D } =
|
|
1756
|
+
}), A = W(!1), R = W(), { isFullScreen: D } = ur(), {
|
|
1757
1757
|
pageDimension: L,
|
|
1758
1758
|
rowCount: F,
|
|
1759
1759
|
rowHeight: E,
|
|
@@ -1761,21 +1761,21 @@ const $o = ({ widths: t, heights: e }) => {
|
|
|
1761
1761
|
columnWidth: N,
|
|
1762
1762
|
estimatedColumnWidth: G,
|
|
1763
1763
|
estimatedRowHeight: U
|
|
1764
|
-
} = Wo(), Z = vt(f, 100), [ee, j] = $({}), J = vt(ee, 100), { isScrolling: ae } = Qe(),
|
|
1764
|
+
} = Wo(), Z = vt(f, 100), [ee, j] = $({}), J = vt(ee, 100), { isScrolling: ae } = Qe(), ne = W(), B = W({
|
|
1765
1765
|
scrollTop: 0,
|
|
1766
1766
|
scrollLeft: 0
|
|
1767
1767
|
});
|
|
1768
|
-
|
|
1769
|
-
const { isPressed: Y } =
|
|
1768
|
+
Fr(n);
|
|
1769
|
+
const { isPressed: Y } = zr(), { selectionMode: ue } = cr(), { initializeGrabScroll: be, resetGrabState: De } = Ar({
|
|
1770
1770
|
isPressed: Y
|
|
1771
|
-
}), de = k(() => ue ===
|
|
1771
|
+
}), de = k(() => ue === ar.HAND, [ue]), pe = x((M, H) => {
|
|
1772
1772
|
j((Q) => H > -1 ? { ...Q, [M]: Math.round(H * 100) } : (delete Q[M], Q));
|
|
1773
1773
|
}, []), ge = k(() => ({
|
|
1774
1774
|
columnCount: y,
|
|
1775
1775
|
handleIntersectRatioChange: pe
|
|
1776
1776
|
}), [y, pe]), Ce = x(
|
|
1777
1777
|
(M) => {
|
|
1778
|
-
const H = document.activeElement !==
|
|
1778
|
+
const H = document.activeElement !== n;
|
|
1779
1779
|
!D && H || (["ArrowUp", "ArrowLeft"].includes(M.key) ? (M.preventDefault(), b()) : ["ArrowDown", "ArrowRight"].includes(M.key) && (M.preventDefault(), _()));
|
|
1780
1780
|
},
|
|
1781
1781
|
[_, b, D, m]
|
|
@@ -1803,33 +1803,33 @@ const $o = ({ widths: t, heights: e }) => {
|
|
|
1803
1803
|
};
|
|
1804
1804
|
},
|
|
1805
1805
|
[d]
|
|
1806
|
-
),
|
|
1806
|
+
), Kn = x(
|
|
1807
1807
|
(M, H) => {
|
|
1808
1808
|
if (ae.current)
|
|
1809
1809
|
return;
|
|
1810
1810
|
if (S.current.viewMode !== T || S.current.scrollMode !== m) {
|
|
1811
|
-
|
|
1811
|
+
ne.current && clearTimeout(ne.current), j({}), A.current = !0, r(w), m === K.HORIZONTAL_SCROLLING && (a == null || a.scrollTo({
|
|
1812
1812
|
scrollTop: 0
|
|
1813
|
-
})),
|
|
1813
|
+
})), ne.current = setTimeout(() => {
|
|
1814
1814
|
requestAnimationFrame(() => {
|
|
1815
1815
|
S.current = { viewMode: T, scrollMode: m };
|
|
1816
1816
|
});
|
|
1817
1817
|
}, 100);
|
|
1818
1818
|
return;
|
|
1819
1819
|
}
|
|
1820
|
-
const se = M.scrollTop,
|
|
1820
|
+
const se = M.scrollTop, nt = M.scrollLeft;
|
|
1821
1821
|
if (!H.height || !H.width)
|
|
1822
1822
|
return;
|
|
1823
1823
|
A.current = !0;
|
|
1824
|
-
const { height: Te, width:
|
|
1825
|
-
if (Dt === Te && zt ===
|
|
1824
|
+
const { height: Te, width: rt } = H, { height: Dt, width: zt } = C.current;
|
|
1825
|
+
if (Dt === Te && zt === rt)
|
|
1826
1826
|
return;
|
|
1827
|
-
const
|
|
1827
|
+
const Qn = se / Dt * Te, er = nt / zt * rt, tr = Math.round(Math.min(Qn, Te)) || 0, nr = Math.round(Math.min(er, rt)) || 0;
|
|
1828
1828
|
R.current = setTimeout(() => {
|
|
1829
1829
|
requestAnimationFrame(() => {
|
|
1830
1830
|
a == null || a.scrollTo({
|
|
1831
|
-
scrollTop:
|
|
1832
|
-
scrollLeft:
|
|
1831
|
+
scrollTop: tr,
|
|
1832
|
+
scrollLeft: nr
|
|
1833
1833
|
});
|
|
1834
1834
|
});
|
|
1835
1835
|
}, 0), C.current = {
|
|
@@ -1842,18 +1842,18 @@ const $o = ({ widths: t, heights: e }) => {
|
|
|
1842
1842
|
O(() => {
|
|
1843
1843
|
clearTimeout(R.current);
|
|
1844
1844
|
const M = Array.from({ length: F }).reduce(
|
|
1845
|
-
(se,
|
|
1845
|
+
(se, nt, Te) => se + E(Te),
|
|
1846
1846
|
0
|
|
1847
1847
|
), H = Array.from({ length: y }).reduce(
|
|
1848
|
-
(se,
|
|
1848
|
+
(se, nt, Te) => se + N(Te),
|
|
1849
1849
|
0
|
|
1850
1850
|
), Q = tt(H, M);
|
|
1851
|
-
B.current = Q,
|
|
1851
|
+
B.current = Q, Kn(Q, { height: M, width: H }), l({
|
|
1852
1852
|
height: M,
|
|
1853
1853
|
width: H
|
|
1854
1854
|
});
|
|
1855
1855
|
}, [L, F, y]);
|
|
1856
|
-
const
|
|
1856
|
+
const Xn = x((M) => {
|
|
1857
1857
|
B.current = {
|
|
1858
1858
|
scrollTop: M.scrollTop,
|
|
1859
1859
|
scrollLeft: M.scrollLeft
|
|
@@ -1868,12 +1868,12 @@ const $o = ({ widths: t, heights: e }) => {
|
|
|
1868
1868
|
Q < se[1] && (H = Number(se[0]), Q = se[1]);
|
|
1869
1869
|
}), H && v(H);
|
|
1870
1870
|
}, [J, v]), O(() => () => {
|
|
1871
|
-
|
|
1871
|
+
ne.current && clearTimeout(ne.current);
|
|
1872
1872
|
}, []);
|
|
1873
|
-
const
|
|
1873
|
+
const Jn = k(() => oe(he["rp-pages-container"], {
|
|
1874
1874
|
[he["rp-cursor-grab"]]: de && !Y,
|
|
1875
1875
|
[he["rp-cursor-grabbing"]]: de && Y
|
|
1876
|
-
}), [de, Y]),
|
|
1876
|
+
}), [de, Y]), Yn = x(
|
|
1877
1877
|
(M) => {
|
|
1878
1878
|
if (de && M) {
|
|
1879
1879
|
const H = oe(he["rp-pages"]), Q = document.querySelector(`.${H}`);
|
|
@@ -1916,10 +1916,10 @@ const $o = ({ widths: t, heights: e }) => {
|
|
|
1916
1916
|
h,
|
|
1917
1917
|
v,
|
|
1918
1918
|
Z
|
|
1919
|
-
]), /* @__PURE__ */ i("div", { ref: o, tabIndex: -1, className:
|
|
1919
|
+
]), /* @__PURE__ */ i("div", { ref: o, tabIndex: -1, className: Jn, children: /* @__PURE__ */ i(Ho, { style: { minHeight: "50px" }, children: ({ width: M, height: H }) => /* @__PURE__ */ i("div", { "data-rp": "pages", ref: Yn, style: { width: M, height: H }, children: m === K.PAGE_SCROLLING ? /* @__PURE__ */ i(
|
|
1920
1920
|
"div",
|
|
1921
1921
|
{
|
|
1922
|
-
ref:
|
|
1922
|
+
ref: s,
|
|
1923
1923
|
style: { width: M, height: H },
|
|
1924
1924
|
className: oe(he["rp-pages"], he["rp-page-scrolling-wrapper"]),
|
|
1925
1925
|
children: T === Ve.DUAL_PAGE ? /* @__PURE__ */ i($o, { widths: N, heights: E }) : /* @__PURE__ */ i(Go, { widths: N, heights: E })
|
|
@@ -1927,11 +1927,11 @@ const $o = ({ widths: t, heights: e }) => {
|
|
|
1927
1927
|
) : G ? /* @__PURE__ */ i(
|
|
1928
1928
|
zo,
|
|
1929
1929
|
{
|
|
1930
|
-
ref:
|
|
1930
|
+
ref: c,
|
|
1931
1931
|
itemData: ge,
|
|
1932
1932
|
outerRef: u,
|
|
1933
1933
|
innerRef: I,
|
|
1934
|
-
onScroll:
|
|
1934
|
+
onScroll: Xn,
|
|
1935
1935
|
columnCount: y,
|
|
1936
1936
|
columnWidth: N,
|
|
1937
1937
|
rowHeight: E,
|
|
@@ -1977,18 +1977,18 @@ const $o = ({ widths: t, heights: e }) => {
|
|
|
1977
1977
|
const { nextIcon: t } = fe();
|
|
1978
1978
|
return t || /* @__PURE__ */ i(ke, { style: { transform: "rotate(180deg" } });
|
|
1979
1979
|
}, Zo = () => {
|
|
1980
|
-
const { focusedPage: t, totalPages: e, setFocusedPage:
|
|
1980
|
+
const { focusedPage: t, totalPages: e, setFocusedPage: n, nextPage: o, prevPage: r, goToPage: a } = ce(), [c, s] = $(t.toString()), { pageNavigationTool: u = !0 } = _e(), { isSmallScreen: l } = Re(), { localeMessages: d } = me();
|
|
1981
1981
|
O(() => {
|
|
1982
|
-
|
|
1982
|
+
s(t.toString());
|
|
1983
1983
|
}, [t]);
|
|
1984
1984
|
const f = x((b) => {
|
|
1985
1985
|
const v = b.target.value;
|
|
1986
|
-
|
|
1986
|
+
s(v);
|
|
1987
1987
|
}, []), h = x(async () => {
|
|
1988
|
-
const b = await a(
|
|
1989
|
-
b.success ||
|
|
1990
|
-
}, [a,
|
|
1991
|
-
|
|
1988
|
+
const b = await a(c);
|
|
1989
|
+
b.success || s(b.currentPage.toString());
|
|
1990
|
+
}, [a, c, e]), g = x(() => {
|
|
1991
|
+
s(t.toString());
|
|
1992
1992
|
}, [t]), _ = x(
|
|
1993
1993
|
(b) => {
|
|
1994
1994
|
b.key === "Enter" && h();
|
|
@@ -2001,27 +2001,27 @@ const $o = ({ widths: t, heights: e }) => {
|
|
|
2001
2001
|
total: e,
|
|
2002
2002
|
current: t,
|
|
2003
2003
|
nextPage: o,
|
|
2004
|
-
prevPage:
|
|
2004
|
+
prevPage: r,
|
|
2005
2005
|
goToPage: a,
|
|
2006
|
-
changePage:
|
|
2006
|
+
changePage: n
|
|
2007
2007
|
}
|
|
2008
2008
|
) : u ? /* @__PURE__ */ z("div", { className: ht["rp-paginate"], children: [
|
|
2009
2009
|
!l && /* @__PURE__ */ i(q, { content: d == null ? void 0 : d.previousPageTooltip, children: /* @__PURE__ */ i(
|
|
2010
2010
|
te,
|
|
2011
2011
|
{
|
|
2012
|
-
onClick:
|
|
2012
|
+
onClick: r,
|
|
2013
2013
|
"aria-label": d == null ? void 0 : d.previousPageTooltip,
|
|
2014
2014
|
"aria-disabled": t === 1,
|
|
2015
2015
|
children: /* @__PURE__ */ i(Uo, {})
|
|
2016
2016
|
}
|
|
2017
2017
|
) }),
|
|
2018
2018
|
/* @__PURE__ */ i(q, { content: d == null ? void 0 : d.currentPageTooltip, children: /* @__PURE__ */ i(
|
|
2019
|
-
|
|
2019
|
+
cn,
|
|
2020
2020
|
{
|
|
2021
2021
|
onKeyDown: _,
|
|
2022
2022
|
onBlur: g,
|
|
2023
2023
|
onChange: f,
|
|
2024
|
-
value:
|
|
2024
|
+
value: c,
|
|
2025
2025
|
className: ht["rp-page-input"]
|
|
2026
2026
|
}
|
|
2027
2027
|
) }),
|
|
@@ -2040,24 +2040,24 @@ const $o = ({ widths: t, heights: e }) => {
|
|
|
2040
2040
|
) })
|
|
2041
2041
|
] }) : null;
|
|
2042
2042
|
};
|
|
2043
|
-
var Lt = "Dialog", [
|
|
2043
|
+
var Lt = "Dialog", [Rn, ws] = Hr(Lt), [jo, le] = Rn(Lt), Ln = (t) => {
|
|
2044
2044
|
const {
|
|
2045
2045
|
__scopeDialog: e,
|
|
2046
|
-
children:
|
|
2046
|
+
children: n,
|
|
2047
2047
|
open: o,
|
|
2048
|
-
defaultOpen:
|
|
2048
|
+
defaultOpen: r,
|
|
2049
2049
|
onOpenChange: a,
|
|
2050
|
-
modal:
|
|
2051
|
-
} = t,
|
|
2050
|
+
modal: c = !0
|
|
2051
|
+
} = t, s = V.useRef(null), u = V.useRef(null), [l = !1, d] = Vr({
|
|
2052
2052
|
prop: o,
|
|
2053
|
-
defaultProp:
|
|
2053
|
+
defaultProp: r,
|
|
2054
2054
|
onChange: a
|
|
2055
2055
|
});
|
|
2056
2056
|
return /* @__PURE__ */ i(
|
|
2057
2057
|
jo,
|
|
2058
2058
|
{
|
|
2059
2059
|
scope: e,
|
|
2060
|
-
triggerRef:
|
|
2060
|
+
triggerRef: s,
|
|
2061
2061
|
contentRef: u,
|
|
2062
2062
|
contentId: it(),
|
|
2063
2063
|
titleId: it(),
|
|
@@ -2065,55 +2065,55 @@ var Lt = "Dialog", [xr, ws] = Hn(Lt), [jo, le] = xr(Lt), Rr = (t) => {
|
|
|
2065
2065
|
open: l,
|
|
2066
2066
|
onOpenChange: d,
|
|
2067
2067
|
onOpenToggle: V.useCallback(() => d((f) => !f), [d]),
|
|
2068
|
-
modal:
|
|
2069
|
-
children:
|
|
2068
|
+
modal: c,
|
|
2069
|
+
children: n
|
|
2070
2070
|
}
|
|
2071
2071
|
);
|
|
2072
2072
|
};
|
|
2073
|
-
|
|
2074
|
-
var
|
|
2073
|
+
Ln.displayName = Lt;
|
|
2074
|
+
var Nn = "DialogTrigger", Bo = V.forwardRef(
|
|
2075
2075
|
(t, e) => {
|
|
2076
|
-
const { __scopeDialog:
|
|
2076
|
+
const { __scopeDialog: n, ...o } = t, r = le(Nn, n), a = It(e, r.triggerRef);
|
|
2077
2077
|
return /* @__PURE__ */ i(
|
|
2078
2078
|
We.button,
|
|
2079
2079
|
{
|
|
2080
2080
|
type: "button",
|
|
2081
2081
|
"aria-haspopup": "dialog",
|
|
2082
|
-
"aria-expanded":
|
|
2083
|
-
"aria-controls":
|
|
2084
|
-
"data-state": Ot(
|
|
2082
|
+
"aria-expanded": r.open,
|
|
2083
|
+
"aria-controls": r.contentId,
|
|
2084
|
+
"data-state": Ot(r.open),
|
|
2085
2085
|
...o,
|
|
2086
2086
|
ref: a,
|
|
2087
|
-
onClick: Fe(t.onClick,
|
|
2087
|
+
onClick: Fe(t.onClick, r.onOpenToggle)
|
|
2088
2088
|
}
|
|
2089
2089
|
);
|
|
2090
2090
|
}
|
|
2091
2091
|
);
|
|
2092
|
-
Bo.displayName =
|
|
2093
|
-
var Nt = "DialogPortal", [Ko,
|
|
2092
|
+
Bo.displayName = Nn;
|
|
2093
|
+
var Nt = "DialogPortal", [Ko, En] = Rn(Nt, {
|
|
2094
2094
|
forceMount: void 0
|
|
2095
|
-
}),
|
|
2096
|
-
const { __scopeDialog: e, forceMount:
|
|
2097
|
-
return /* @__PURE__ */ i(Ko, { scope: e, forceMount:
|
|
2095
|
+
}), On = (t) => {
|
|
2096
|
+
const { __scopeDialog: e, forceMount: n, children: o, container: r } = t, a = le(Nt, e);
|
|
2097
|
+
return /* @__PURE__ */ i(Ko, { scope: e, forceMount: n, children: V.Children.map(o, (c) => /* @__PURE__ */ i(yt, { present: n || a.open, children: /* @__PURE__ */ i(Kr, { asChild: !0, container: r, children: c }) })) });
|
|
2098
2098
|
};
|
|
2099
|
-
|
|
2100
|
-
var qe = "DialogOverlay",
|
|
2099
|
+
On.displayName = Nt;
|
|
2100
|
+
var qe = "DialogOverlay", Dn = V.forwardRef(
|
|
2101
2101
|
(t, e) => {
|
|
2102
|
-
const
|
|
2103
|
-
return a.modal ? /* @__PURE__ */ i(yt, { present: o || a.open, children: /* @__PURE__ */ i(Xo, { ...
|
|
2102
|
+
const n = En(qe, t.__scopeDialog), { forceMount: o = n.forceMount, ...r } = t, a = le(qe, t.__scopeDialog);
|
|
2103
|
+
return a.modal ? /* @__PURE__ */ i(yt, { present: o || a.open, children: /* @__PURE__ */ i(Xo, { ...r, ref: e }) }) : null;
|
|
2104
2104
|
}
|
|
2105
2105
|
);
|
|
2106
|
-
|
|
2106
|
+
Dn.displayName = qe;
|
|
2107
2107
|
var Xo = V.forwardRef(
|
|
2108
2108
|
(t, e) => {
|
|
2109
|
-
const { __scopeDialog:
|
|
2109
|
+
const { __scopeDialog: n, ...o } = t, r = le(qe, n);
|
|
2110
2110
|
return (
|
|
2111
2111
|
// Make sure `Content` is scrollable even when it doesn't live inside `RemoveScroll`
|
|
2112
2112
|
// ie. when `Overlay` and `Content` are siblings
|
|
2113
|
-
/* @__PURE__ */ i(
|
|
2113
|
+
/* @__PURE__ */ i(qr, { as: $r, allowPinchZoom: !0, shards: [r.contentRef], children: /* @__PURE__ */ i(
|
|
2114
2114
|
We.div,
|
|
2115
2115
|
{
|
|
2116
|
-
"data-state": Ot(
|
|
2116
|
+
"data-state": Ot(r.open),
|
|
2117
2117
|
...o,
|
|
2118
2118
|
ref: e,
|
|
2119
2119
|
style: { pointerEvents: "auto", ...o.style }
|
|
@@ -2121,34 +2121,34 @@ var Xo = V.forwardRef(
|
|
|
2121
2121
|
) })
|
|
2122
2122
|
);
|
|
2123
2123
|
}
|
|
2124
|
-
),
|
|
2124
|
+
), ye = "DialogContent", zn = V.forwardRef(
|
|
2125
2125
|
(t, e) => {
|
|
2126
|
-
const
|
|
2127
|
-
return /* @__PURE__ */ i(yt, { present: o || a.open, children: a.modal ? /* @__PURE__ */ i(Jo, { ...
|
|
2126
|
+
const n = En(ye, t.__scopeDialog), { forceMount: o = n.forceMount, ...r } = t, a = le(ye, t.__scopeDialog);
|
|
2127
|
+
return /* @__PURE__ */ i(yt, { present: o || a.open, children: a.modal ? /* @__PURE__ */ i(Jo, { ...r, ref: e }) : /* @__PURE__ */ i(Yo, { ...r, ref: e }) });
|
|
2128
2128
|
}
|
|
2129
2129
|
);
|
|
2130
|
-
|
|
2130
|
+
zn.displayName = ye;
|
|
2131
2131
|
var Jo = V.forwardRef(
|
|
2132
2132
|
(t, e) => {
|
|
2133
|
-
const
|
|
2133
|
+
const n = le(ye, t.__scopeDialog), o = V.useRef(null), r = It(e, n.contentRef, o);
|
|
2134
2134
|
return V.useEffect(() => {
|
|
2135
2135
|
const a = o.current;
|
|
2136
2136
|
if (a)
|
|
2137
|
-
return
|
|
2137
|
+
return Zr(a);
|
|
2138
2138
|
}, []), /* @__PURE__ */ i(
|
|
2139
|
-
|
|
2139
|
+
An,
|
|
2140
2140
|
{
|
|
2141
2141
|
...t,
|
|
2142
|
-
ref:
|
|
2143
|
-
trapFocus:
|
|
2142
|
+
ref: r,
|
|
2143
|
+
trapFocus: n.open,
|
|
2144
2144
|
disableOutsidePointerEvents: !0,
|
|
2145
2145
|
onCloseAutoFocus: Fe(t.onCloseAutoFocus, (a) => {
|
|
2146
|
-
var
|
|
2147
|
-
a.preventDefault(), (
|
|
2146
|
+
var c;
|
|
2147
|
+
a.preventDefault(), (c = n.triggerRef.current) == null || c.focus();
|
|
2148
2148
|
}),
|
|
2149
2149
|
onPointerDownOutside: Fe(t.onPointerDownOutside, (a) => {
|
|
2150
|
-
const
|
|
2151
|
-
(
|
|
2150
|
+
const c = a.detail.originalEvent, s = c.button === 0 && c.ctrlKey === !0;
|
|
2151
|
+
(c.button === 2 || s) && a.preventDefault();
|
|
2152
2152
|
}),
|
|
2153
2153
|
onFocusOutside: Fe(
|
|
2154
2154
|
t.onFocusOutside,
|
|
@@ -2159,113 +2159,113 @@ var Jo = V.forwardRef(
|
|
|
2159
2159
|
}
|
|
2160
2160
|
), Yo = V.forwardRef(
|
|
2161
2161
|
(t, e) => {
|
|
2162
|
-
const
|
|
2162
|
+
const n = le(ye, t.__scopeDialog), o = V.useRef(!1), r = V.useRef(!1);
|
|
2163
2163
|
return /* @__PURE__ */ i(
|
|
2164
|
-
|
|
2164
|
+
An,
|
|
2165
2165
|
{
|
|
2166
2166
|
...t,
|
|
2167
2167
|
ref: e,
|
|
2168
2168
|
trapFocus: !1,
|
|
2169
2169
|
disableOutsidePointerEvents: !1,
|
|
2170
2170
|
onCloseAutoFocus: (a) => {
|
|
2171
|
-
var
|
|
2172
|
-
(
|
|
2171
|
+
var c, s;
|
|
2172
|
+
(c = t.onCloseAutoFocus) == null || c.call(t, a), a.defaultPrevented || (o.current || (s = n.triggerRef.current) == null || s.focus(), a.preventDefault()), o.current = !1, r.current = !1;
|
|
2173
2173
|
},
|
|
2174
2174
|
onInteractOutside: (a) => {
|
|
2175
2175
|
var u, l;
|
|
2176
|
-
(u = t.onInteractOutside) == null || u.call(t, a), a.defaultPrevented || (o.current = !0, a.detail.originalEvent.type === "pointerdown" && (
|
|
2177
|
-
const
|
|
2178
|
-
((l =
|
|
2176
|
+
(u = t.onInteractOutside) == null || u.call(t, a), a.defaultPrevented || (o.current = !0, a.detail.originalEvent.type === "pointerdown" && (r.current = !0));
|
|
2177
|
+
const c = a.target;
|
|
2178
|
+
((l = n.triggerRef.current) == null ? void 0 : l.contains(c)) && a.preventDefault(), a.detail.originalEvent.type === "focusin" && r.current && a.preventDefault();
|
|
2179
2179
|
}
|
|
2180
2180
|
}
|
|
2181
2181
|
);
|
|
2182
2182
|
}
|
|
2183
|
-
),
|
|
2183
|
+
), An = V.forwardRef(
|
|
2184
2184
|
(t, e) => {
|
|
2185
|
-
const { __scopeDialog:
|
|
2186
|
-
return
|
|
2185
|
+
const { __scopeDialog: n, trapFocus: o, onOpenAutoFocus: r, onCloseAutoFocus: a, ...c } = t, s = le(ye, n), u = V.useRef(null), l = It(e, u);
|
|
2186
|
+
return jr(), /* @__PURE__ */ z(Ie, { children: [
|
|
2187
2187
|
/* @__PURE__ */ i(
|
|
2188
|
-
|
|
2188
|
+
Br,
|
|
2189
2189
|
{
|
|
2190
2190
|
asChild: !0,
|
|
2191
2191
|
loop: !0,
|
|
2192
2192
|
trapped: o,
|
|
2193
|
-
onMountAutoFocus:
|
|
2193
|
+
onMountAutoFocus: r,
|
|
2194
2194
|
onUnmountAutoFocus: a,
|
|
2195
2195
|
children: /* @__PURE__ */ i(
|
|
2196
|
-
|
|
2196
|
+
Ur,
|
|
2197
2197
|
{
|
|
2198
2198
|
role: "dialog",
|
|
2199
|
-
id:
|
|
2200
|
-
"aria-describedby":
|
|
2201
|
-
"aria-labelledby":
|
|
2202
|
-
"data-state": Ot(
|
|
2203
|
-
...
|
|
2199
|
+
id: s.contentId,
|
|
2200
|
+
"aria-describedby": s.descriptionId,
|
|
2201
|
+
"aria-labelledby": s.titleId,
|
|
2202
|
+
"data-state": Ot(s.open),
|
|
2203
|
+
...c,
|
|
2204
2204
|
ref: l,
|
|
2205
|
-
onDismiss: () =>
|
|
2205
|
+
onDismiss: () => s.onOpenChange(!1)
|
|
2206
2206
|
}
|
|
2207
2207
|
)
|
|
2208
2208
|
}
|
|
2209
2209
|
),
|
|
2210
|
-
/* @__PURE__ */ z(
|
|
2211
|
-
/* @__PURE__ */ i(ei, { titleId:
|
|
2212
|
-
/* @__PURE__ */ i(
|
|
2210
|
+
/* @__PURE__ */ z(Ie, { children: [
|
|
2211
|
+
/* @__PURE__ */ i(ei, { titleId: s.titleId }),
|
|
2212
|
+
/* @__PURE__ */ i(ni, { contentRef: u, descriptionId: s.descriptionId })
|
|
2213
2213
|
] })
|
|
2214
2214
|
] });
|
|
2215
2215
|
}
|
|
2216
|
-
), Et = "DialogTitle",
|
|
2216
|
+
), Et = "DialogTitle", Fn = V.forwardRef(
|
|
2217
2217
|
(t, e) => {
|
|
2218
|
-
const { __scopeDialog:
|
|
2219
|
-
return /* @__PURE__ */ i(We.h2, { id:
|
|
2218
|
+
const { __scopeDialog: n, ...o } = t, r = le(Et, n);
|
|
2219
|
+
return /* @__PURE__ */ i(We.h2, { id: r.titleId, ...o, ref: e });
|
|
2220
2220
|
}
|
|
2221
2221
|
);
|
|
2222
|
-
|
|
2223
|
-
var
|
|
2222
|
+
Fn.displayName = Et;
|
|
2223
|
+
var kn = "DialogDescription", Qo = V.forwardRef(
|
|
2224
2224
|
(t, e) => {
|
|
2225
|
-
const { __scopeDialog:
|
|
2226
|
-
return /* @__PURE__ */ i(We.p, { id:
|
|
2225
|
+
const { __scopeDialog: n, ...o } = t, r = le(kn, n);
|
|
2226
|
+
return /* @__PURE__ */ i(We.p, { id: r.descriptionId, ...o, ref: e });
|
|
2227
2227
|
}
|
|
2228
2228
|
);
|
|
2229
|
-
Qo.displayName =
|
|
2230
|
-
var
|
|
2229
|
+
Qo.displayName = kn;
|
|
2230
|
+
var Wn = "DialogClose", Mn = V.forwardRef(
|
|
2231
2231
|
(t, e) => {
|
|
2232
|
-
const { __scopeDialog:
|
|
2232
|
+
const { __scopeDialog: n, ...o } = t, r = le(Wn, n);
|
|
2233
2233
|
return /* @__PURE__ */ i(
|
|
2234
2234
|
We.button,
|
|
2235
2235
|
{
|
|
2236
2236
|
type: "button",
|
|
2237
2237
|
...o,
|
|
2238
2238
|
ref: e,
|
|
2239
|
-
onClick: Fe(t.onClick, () =>
|
|
2239
|
+
onClick: Fe(t.onClick, () => r.onOpenChange(!1))
|
|
2240
2240
|
}
|
|
2241
2241
|
);
|
|
2242
2242
|
}
|
|
2243
2243
|
);
|
|
2244
|
-
|
|
2244
|
+
Mn.displayName = Wn;
|
|
2245
2245
|
function Ot(t) {
|
|
2246
2246
|
return t ? "open" : "closed";
|
|
2247
2247
|
}
|
|
2248
|
-
var
|
|
2249
|
-
contentName:
|
|
2248
|
+
var Hn = "DialogTitleWarning", [bs, $n] = Gr(Hn, {
|
|
2249
|
+
contentName: ye,
|
|
2250
2250
|
titleName: Et,
|
|
2251
2251
|
docsSlug: "dialog"
|
|
2252
2252
|
}), ei = ({ titleId: t }) => {
|
|
2253
|
-
const e =
|
|
2253
|
+
const e = $n(Hn), n = `\`${e.contentName}\` requires a \`${e.titleName}\` for the component to be accessible for screen reader users.
|
|
2254
2254
|
|
|
2255
2255
|
If you want to hide the \`${e.titleName}\`, you can wrap it with our VisuallyHidden component.
|
|
2256
2256
|
|
|
2257
2257
|
For more information, see https://radix-ui.com/primitives/docs/components/${e.docsSlug}`;
|
|
2258
2258
|
return V.useEffect(() => {
|
|
2259
|
-
t && (document.getElementById(t) || console.error(
|
|
2260
|
-
}, [
|
|
2261
|
-
}, ti = "DialogDescriptionWarning",
|
|
2262
|
-
const o = `Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${
|
|
2259
|
+
t && (document.getElementById(t) || console.error(n));
|
|
2260
|
+
}, [n, t]), null;
|
|
2261
|
+
}, ti = "DialogDescriptionWarning", ni = ({ contentRef: t, descriptionId: e }) => {
|
|
2262
|
+
const o = `Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${$n(ti).contentName}}.`;
|
|
2263
2263
|
return V.useEffect(() => {
|
|
2264
2264
|
var a;
|
|
2265
|
-
const
|
|
2266
|
-
e &&
|
|
2265
|
+
const r = (a = t.current) == null ? void 0 : a.getAttribute("aria-describedby");
|
|
2266
|
+
e && r && (document.getElementById(e) || console.warn(o));
|
|
2267
2267
|
}, [o, t, e]), null;
|
|
2268
|
-
},
|
|
2268
|
+
}, ri = Ln, oi = On, ii = Dn, ai = zn, si = Fn, ci = Mn;
|
|
2269
2269
|
const Se = {
|
|
2270
2270
|
"rp-dialog-wrapper": "_rp-dialog-wrapper_slqo7_1",
|
|
2271
2271
|
"rp-dialog-overlay": "_rp-dialog-overlay_slqo7_7",
|
|
@@ -2275,12 +2275,12 @@ const Se = {
|
|
|
2275
2275
|
"rp-dialog-close": "_rp-dialog-close_slqo7_47",
|
|
2276
2276
|
"rp-properties-divider": "_rp-properties-divider_slqo7_55"
|
|
2277
2277
|
}, li = () => {
|
|
2278
|
-
const { pdfProperties: t } = X(), { container: e } =
|
|
2278
|
+
const { pdfProperties: t } = X(), { container: e } = xe(), { activeDocumentProperties: n, setActiveDocumentProperties: o } = Jr(), { localeMessages: r } = me(), a = k(() => {
|
|
2279
2279
|
if (!t)
|
|
2280
2280
|
return [];
|
|
2281
2281
|
const {
|
|
2282
|
-
fileSize:
|
|
2283
|
-
filename:
|
|
2282
|
+
fileSize: c,
|
|
2283
|
+
filename: s,
|
|
2284
2284
|
title: u,
|
|
2285
2285
|
author: l,
|
|
2286
2286
|
subject: d,
|
|
@@ -2293,42 +2293,42 @@ const Se = {
|
|
|
2293
2293
|
pageCount: w
|
|
2294
2294
|
} = t;
|
|
2295
2295
|
return [
|
|
2296
|
-
{ label:
|
|
2297
|
-
{ label:
|
|
2296
|
+
{ label: r == null ? void 0 : r.propertiesFilenameLabel, value: s },
|
|
2297
|
+
{ label: r == null ? void 0 : r.propertiesFileSizeLabel, value: c },
|
|
2298
2298
|
{ separate: !0 },
|
|
2299
|
-
{ label:
|
|
2300
|
-
{ label:
|
|
2301
|
-
{ label:
|
|
2302
|
-
{ label:
|
|
2303
|
-
{ label:
|
|
2299
|
+
{ label: r == null ? void 0 : r.propertiesTitleLabel, value: u },
|
|
2300
|
+
{ label: r == null ? void 0 : r.propertiesAuthorLabel, value: l },
|
|
2301
|
+
{ label: r == null ? void 0 : r.propertiesSubjectLabel, value: d },
|
|
2302
|
+
{ label: r == null ? void 0 : r.propertiesKeywordLabel, value: g },
|
|
2303
|
+
{ label: r == null ? void 0 : r.propertiesCreatorLabel, value: h },
|
|
2304
2304
|
{
|
|
2305
|
-
label:
|
|
2305
|
+
label: r == null ? void 0 : r.propertiesCreateOnLabel,
|
|
2306
2306
|
value: f ? Ht(f) : ""
|
|
2307
2307
|
},
|
|
2308
2308
|
{
|
|
2309
|
-
label:
|
|
2309
|
+
label: r == null ? void 0 : r.propertiesModifiedOnLabel,
|
|
2310
2310
|
value: _ ? Ht(_) : ""
|
|
2311
2311
|
},
|
|
2312
2312
|
{ separate: !0 },
|
|
2313
|
-
{ label:
|
|
2314
|
-
{ label:
|
|
2315
|
-
{ label:
|
|
2313
|
+
{ label: r == null ? void 0 : r.propertiesPDFProducerLabel, value: b },
|
|
2314
|
+
{ label: r == null ? void 0 : r.propertiesPDFVersionLabel, value: v },
|
|
2315
|
+
{ label: r == null ? void 0 : r.propertiesPageCountLabel, value: w }
|
|
2316
2316
|
];
|
|
2317
|
-
}, [t,
|
|
2318
|
-
return /* @__PURE__ */ i(
|
|
2317
|
+
}, [t, r]);
|
|
2318
|
+
return /* @__PURE__ */ i(ri, { open: n, onOpenChange: o, children: /* @__PURE__ */ i(oi, { container: e, children: /* @__PURE__ */ z("div", { className: Se["rp-dialog-wrapper"], children: [
|
|
2319
2319
|
/* @__PURE__ */ i(ii, { className: Se["rp-dialog-overlay"] }),
|
|
2320
2320
|
/* @__PURE__ */ z(ai, { className: Se["rp-document-dialog"], children: [
|
|
2321
|
-
/* @__PURE__ */ i(si, { className: Se["rp-dialog-title"], children:
|
|
2322
|
-
/* @__PURE__ */ i("div", { className: Se["rp-document-properties"], children: a.map((
|
|
2323
|
-
/* @__PURE__ */ i(ci, { asChild: !0, className: Se["rp-dialog-close"], children: /* @__PURE__ */ i(
|
|
2321
|
+
/* @__PURE__ */ i(si, { className: Se["rp-dialog-title"], children: r == null ? void 0 : r.documentPropertiesLabel }),
|
|
2322
|
+
/* @__PURE__ */ i("div", { className: Se["rp-document-properties"], children: a.map((c, s) => /* @__PURE__ */ i("div", { children: c.separate ? /* @__PURE__ */ i("div", { className: Se["rp-properties-divider"] }) : /* @__PURE__ */ i(Xr, { label: c.label, value: c.value }) }, s)) }),
|
|
2323
|
+
/* @__PURE__ */ i(ci, { asChild: !0, className: Se["rp-dialog-close"], children: /* @__PURE__ */ i(fn, {}) })
|
|
2324
2324
|
] })
|
|
2325
2325
|
] }) }) });
|
|
2326
2326
|
}, ui = {
|
|
2327
2327
|
"rp-other-tool-content": "_rp-other-tool-content_su718_1"
|
|
2328
2328
|
}, di = (t) => URL.createObjectURL(t), pi = async (t) => {
|
|
2329
|
-
const
|
|
2330
|
-
return di(
|
|
2331
|
-
},
|
|
2329
|
+
const n = await (await fetch(t)).blob();
|
|
2330
|
+
return di(n);
|
|
2331
|
+
}, Gn = () => {
|
|
2332
2332
|
const { filename: t, pdfSrc: e } = X();
|
|
2333
2333
|
return { download: x(async () => {
|
|
2334
2334
|
if (!t || !e)
|
|
@@ -2336,121 +2336,121 @@ const Se = {
|
|
|
2336
2336
|
const o = document.createElement("a");
|
|
2337
2337
|
o.href = await pi(e), o.download = t, document.body.appendChild(o), o.click(), document.body.removeChild(o);
|
|
2338
2338
|
}, [t, e]) };
|
|
2339
|
-
},
|
|
2339
|
+
}, Vn = () => {
|
|
2340
2340
|
const { downloadIcon: t } = fe();
|
|
2341
|
-
return t || /* @__PURE__ */ i(
|
|
2342
|
-
},
|
|
2343
|
-
/* @__PURE__ */ i("div", { className: "rp-menu-item-left", children: /* @__PURE__ */ i(
|
|
2341
|
+
return t || /* @__PURE__ */ i(no, {});
|
|
2342
|
+
}, Un = ({ children: t, className: e, localeMessages: n }) => /* @__PURE__ */ i(q, { className: e, content: n == null ? void 0 : n.downloadFileTooltip, children: t }), hi = ({ download: t, localeMessages: e }) => /* @__PURE__ */ i(Un, { localeMessages: e, children: /* @__PURE__ */ i(te, { onClick: t, "aria-label": e == null ? void 0 : e.downloadFileTooltip, children: /* @__PURE__ */ i(Vn, {}) }) }), mi = ({ download: t, localeMessages: e }) => /* @__PURE__ */ i(we, { onClick: t, children: /* @__PURE__ */ z(Un, { className: "rp-menu-item", localeMessages: e, children: [
|
|
2343
|
+
/* @__PURE__ */ i("div", { className: "rp-menu-item-left", children: /* @__PURE__ */ i(Vn, {}) }),
|
|
2344
2344
|
e == null ? void 0 : e.downloadFileLabel
|
|
2345
|
-
] }) }),
|
|
2346
|
-
const { download: t } =
|
|
2347
|
-
return e ?
|
|
2348
|
-
},
|
|
2345
|
+
] }) }), qn = () => {
|
|
2346
|
+
const { download: t } = Gn(), { downloadTool: e = !0 } = _e(), { isSmallScreen: n } = Re(), { localeMessages: o } = me();
|
|
2347
|
+
return e ? n ? /* @__PURE__ */ i(mi, { download: t, localeMessages: o }) : typeof e == "function" ? /* @__PURE__ */ i(e, { download: t }) : e ? /* @__PURE__ */ i(hi, { download: t, localeMessages: o }) : null : null;
|
|
2348
|
+
}, Zn = () => {
|
|
2349
2349
|
const { printIcon: t } = fe();
|
|
2350
|
-
return t || /* @__PURE__ */ i(
|
|
2351
|
-
},
|
|
2352
|
-
/* @__PURE__ */ i("div", { className: "rp-menu-item-left", children: /* @__PURE__ */ i(
|
|
2350
|
+
return t || /* @__PURE__ */ i(ro, {});
|
|
2351
|
+
}, jn = ({ children: t, className: e, localeMessages: n }) => /* @__PURE__ */ i(q, { className: e, content: n == null ? void 0 : n.printTooltip, children: t }), fi = ({ print: t, localeMessages: e }) => /* @__PURE__ */ i(jn, { localeMessages: e, children: /* @__PURE__ */ i(te, { onClick: t, "aria-label": e == null ? void 0 : e.printTooltip, children: /* @__PURE__ */ i(Zn, {}) }) }), gi = ({ print: t, localeMessages: e }) => /* @__PURE__ */ i(we, { onClick: t, children: /* @__PURE__ */ z(jn, { className: "rp-menu-item", localeMessages: e, children: [
|
|
2352
|
+
/* @__PURE__ */ i("div", { className: "rp-menu-item-left", children: /* @__PURE__ */ i(Zn, {}) }),
|
|
2353
2353
|
e == null ? void 0 : e.printLabel
|
|
2354
|
-
] }) }),
|
|
2355
|
-
const { print: t, cancel: e, setOnProgress:
|
|
2356
|
-
return
|
|
2357
|
-
|
|
2354
|
+
] }) }), Bn = () => {
|
|
2355
|
+
const { print: t, cancel: e, setOnProgress: n, setOnComplete: o, setOnError: r, progress: a } = et(), { printTool: c = !0 } = _e(), { isSmallScreen: s } = Re(), { localeMessages: u } = me();
|
|
2356
|
+
return c ? s ? /* @__PURE__ */ i(gi, { print: t, localeMessages: u }) : typeof c == "function" ? /* @__PURE__ */ i(
|
|
2357
|
+
c,
|
|
2358
2358
|
{
|
|
2359
2359
|
print: t,
|
|
2360
2360
|
cancel: e,
|
|
2361
|
-
setOnProgress:
|
|
2362
|
-
setOnError:
|
|
2361
|
+
setOnProgress: n,
|
|
2362
|
+
setOnError: r,
|
|
2363
2363
|
setOnComplete: o,
|
|
2364
2364
|
progress: a
|
|
2365
2365
|
}
|
|
2366
|
-
) :
|
|
2366
|
+
) : c ? /* @__PURE__ */ i(fi, { print: t, localeMessages: u }) : null : null;
|
|
2367
2367
|
}, vi = {
|
|
2368
2368
|
"rp-go-to-Top": "_rp-go-to-Top_4e0yd_1"
|
|
2369
2369
|
}, _i = () => {
|
|
2370
2370
|
const { goToFirstPageIcon: t } = fe();
|
|
2371
|
-
return t || /* @__PURE__ */ i(
|
|
2371
|
+
return t || /* @__PURE__ */ i(vn, { className: vi["rp-go-to-Top"] });
|
|
2372
2372
|
}, wi = () => {
|
|
2373
2373
|
const { goToLastPageIcon: t } = fe();
|
|
2374
|
-
return t || /* @__PURE__ */ i(
|
|
2375
|
-
},
|
|
2376
|
-
const { goToPage: t, totalPages: e, focusedPage:
|
|
2374
|
+
return t || /* @__PURE__ */ i(vn, {});
|
|
2375
|
+
}, rn = { width: "100%" }, bi = () => {
|
|
2376
|
+
const { goToPage: t, totalPages: e, focusedPage: n } = ce(), { jumpNavigationTool: o = !0 } = _e(), { localeMessages: r } = me(), a = k(() => n === 1, [n]), c = k(() => n === e, [n, e]), s = x(() => {
|
|
2377
2377
|
t(1);
|
|
2378
2378
|
}, [t]), u = x(() => {
|
|
2379
2379
|
t(e);
|
|
2380
2380
|
}, [t, e]);
|
|
2381
2381
|
return o ? /* @__PURE__ */ z(Ue, { children: [
|
|
2382
|
-
/* @__PURE__ */ i(we, { onClick:
|
|
2382
|
+
/* @__PURE__ */ i(we, { onClick: s, children: /* @__PURE__ */ i(q, { content: r == null ? void 0 : r.firstPageTooltip, style: rn, children: /* @__PURE__ */ z("div", { className: "rp-menu-item", "aria-disabled": a, children: [
|
|
2383
2383
|
/* @__PURE__ */ i("div", { className: "rp-menu-item-left", children: /* @__PURE__ */ i(_i, {}) }),
|
|
2384
|
-
/* @__PURE__ */ i("span", { children:
|
|
2384
|
+
/* @__PURE__ */ i("span", { children: r == null ? void 0 : r.firstPageLabel })
|
|
2385
2385
|
] }) }) }),
|
|
2386
|
-
/* @__PURE__ */ i(we, { onClick: u, children: /* @__PURE__ */ i(q, { content:
|
|
2386
|
+
/* @__PURE__ */ i(we, { onClick: u, children: /* @__PURE__ */ i(q, { content: r == null ? void 0 : r.lastPageTooltip, style: rn, children: /* @__PURE__ */ z("div", { className: "rp-menu-item", "aria-disabled": c, children: [
|
|
2387
2387
|
/* @__PURE__ */ i("div", { className: "rp-menu-item-left", children: /* @__PURE__ */ i(wi, {}) }),
|
|
2388
|
-
/* @__PURE__ */ i("span", { children:
|
|
2388
|
+
/* @__PURE__ */ i("span", { children: r == null ? void 0 : r.lastPageLabel })
|
|
2389
2389
|
] }) }) }),
|
|
2390
2390
|
/* @__PURE__ */ i(xt, {})
|
|
2391
2391
|
] }) : null;
|
|
2392
2392
|
}, Ci = () => {
|
|
2393
|
-
const { container: t } =
|
|
2394
|
-
openFileTool:
|
|
2393
|
+
const { container: t } = xe(), { isSmallScreen: e } = Re(), {
|
|
2394
|
+
openFileTool: n,
|
|
2395
2395
|
downloadTool: o,
|
|
2396
|
-
documentProperties:
|
|
2396
|
+
documentProperties: r,
|
|
2397
2397
|
scrollModeTool: a,
|
|
2398
|
-
rotateTool:
|
|
2399
|
-
selectionModeTool:
|
|
2398
|
+
rotateTool: c,
|
|
2399
|
+
selectionModeTool: s,
|
|
2400
2400
|
jumpNavigationTool: u,
|
|
2401
2401
|
printTool: l,
|
|
2402
2402
|
fullscreenTool: d
|
|
2403
2403
|
} = _e(), { localeMessages: f } = me();
|
|
2404
2404
|
return k(() => {
|
|
2405
|
-
const g = u ||
|
|
2405
|
+
const g = u || c || s || a || r;
|
|
2406
2406
|
let _ = !1;
|
|
2407
|
-
return e && (_ = !(!
|
|
2407
|
+
return e && (_ = !(!n && !o && !l && !d)), g || _;
|
|
2408
2408
|
}, [
|
|
2409
|
-
r,
|
|
2410
|
-
o,
|
|
2411
2409
|
n,
|
|
2410
|
+
o,
|
|
2411
|
+
r,
|
|
2412
2412
|
a,
|
|
2413
|
-
s,
|
|
2414
2413
|
c,
|
|
2414
|
+
s,
|
|
2415
2415
|
u,
|
|
2416
2416
|
e
|
|
2417
|
-
]) ? /* @__PURE__ */ z(
|
|
2417
|
+
]) ? /* @__PURE__ */ z(Yr, { children: [
|
|
2418
2418
|
/* @__PURE__ */ i(
|
|
2419
|
-
|
|
2419
|
+
mn,
|
|
2420
2420
|
{
|
|
2421
2421
|
container: t,
|
|
2422
|
-
triggerComponent: /* @__PURE__ */ i("div", { role: "button", children: /* @__PURE__ */ i(q, { content: f == null ? void 0 : f.moreOptionTooltip, children: /* @__PURE__ */ i(te, { "aria-label": f == null ? void 0 : f.moreOptionTooltip, children: /* @__PURE__ */ i(
|
|
2422
|
+
triggerComponent: /* @__PURE__ */ i("div", { role: "button", children: /* @__PURE__ */ i(q, { content: f == null ? void 0 : f.moreOptionTooltip, children: /* @__PURE__ */ i(te, { "aria-label": f == null ? void 0 : f.moreOptionTooltip, children: /* @__PURE__ */ i(Mr, {}) }) }) }),
|
|
2423
2423
|
children: /* @__PURE__ */ z("div", { className: ui["rp-other-tool-content"], "data-rp": "moreOptionsDropdown", children: [
|
|
2424
2424
|
e && /* @__PURE__ */ z(Ue, { children: [
|
|
2425
|
-
/* @__PURE__ */ i(
|
|
2426
|
-
/* @__PURE__ */ i(
|
|
2427
|
-
/* @__PURE__ */ i(
|
|
2428
|
-
/* @__PURE__ */ i(
|
|
2425
|
+
/* @__PURE__ */ i(hn, {}),
|
|
2426
|
+
/* @__PURE__ */ i(qn, {}),
|
|
2427
|
+
/* @__PURE__ */ i(Bn, {}),
|
|
2428
|
+
/* @__PURE__ */ i(gn, {}),
|
|
2429
2429
|
/* @__PURE__ */ i(xt, {})
|
|
2430
2430
|
] }),
|
|
2431
2431
|
/* @__PURE__ */ i(bi, {}),
|
|
2432
2432
|
/* @__PURE__ */ i(eo, {}),
|
|
2433
2433
|
/* @__PURE__ */ i(oo, {}),
|
|
2434
2434
|
/* @__PURE__ */ i(to, {}),
|
|
2435
|
-
/* @__PURE__ */ i(
|
|
2435
|
+
/* @__PURE__ */ i(Qr, {})
|
|
2436
2436
|
] })
|
|
2437
2437
|
}
|
|
2438
2438
|
),
|
|
2439
2439
|
/* @__PURE__ */ i(li, {})
|
|
2440
2440
|
] }) : null;
|
|
2441
2441
|
}, Ti = () => {
|
|
2442
|
-
const { isSmallScreen: t } =
|
|
2443
|
-
return /* @__PURE__ */ z(
|
|
2444
|
-
/* @__PURE__ */ i(
|
|
2445
|
-
!t && /* @__PURE__ */ z(
|
|
2446
|
-
/* @__PURE__ */ i(
|
|
2447
|
-
/* @__PURE__ */ i(
|
|
2448
|
-
/* @__PURE__ */ i(
|
|
2449
|
-
/* @__PURE__ */ i(
|
|
2442
|
+
const { isSmallScreen: t } = Re();
|
|
2443
|
+
return /* @__PURE__ */ z(Ie, { children: [
|
|
2444
|
+
/* @__PURE__ */ i(Wr, {}),
|
|
2445
|
+
!t && /* @__PURE__ */ z(Ie, { children: [
|
|
2446
|
+
/* @__PURE__ */ i(hn, {}),
|
|
2447
|
+
/* @__PURE__ */ i(qn, {}),
|
|
2448
|
+
/* @__PURE__ */ i(Bn, {}),
|
|
2449
|
+
/* @__PURE__ */ i(gn, {})
|
|
2450
2450
|
] }),
|
|
2451
2451
|
/* @__PURE__ */ i(Ci, {})
|
|
2452
2452
|
] });
|
|
2453
|
-
},
|
|
2453
|
+
}, Ne = {
|
|
2454
2454
|
"rp-zoom-wrapper": "_rp-zoom-wrapper_cocqs_1",
|
|
2455
2455
|
"rp-current-zoom-wrapper": "_rp-current-zoom-wrapper_cocqs_6",
|
|
2456
2456
|
"rp-current-zoom-icon": "_rp-current-zoom-icon_cocqs_11",
|
|
@@ -2463,7 +2463,7 @@ const Se = {
|
|
|
2463
2463
|
const { zoomOutIcon: t } = fe();
|
|
2464
2464
|
return t || /* @__PURE__ */ i(ao, {});
|
|
2465
2465
|
}, xi = () => {
|
|
2466
|
-
const { zoomLevel: t, setZoomLevel: e } = Xe(), { container:
|
|
2466
|
+
const { zoomLevel: t, setZoomLevel: e } = Xe(), { container: n, contentRef: o } = xe(), { zoomTool: r = !0 } = _e(), { focusedPage: a } = ce(), { rotate: c } = Ke(), { pages: s } = X(), { isSmallScreen: u } = Re(), { localeMessages: l } = me(), d = x(() => {
|
|
2467
2467
|
e((w) => {
|
|
2468
2468
|
const m = Math.floor(w / 25) * 25;
|
|
2469
2469
|
return Math.min(m + 25, mt);
|
|
@@ -2475,8 +2475,8 @@ const Se = {
|
|
|
2475
2475
|
});
|
|
2476
2476
|
}, [e]), h = k(() => t === Pi, [t]), g = k(() => t === mt, [t]), _ = k(() => {
|
|
2477
2477
|
var w;
|
|
2478
|
-
return (w =
|
|
2479
|
-
}, [
|
|
2478
|
+
return (w = s.get(a)) == null ? void 0 : w.page.getViewport({ scale: 1, rotation: c });
|
|
2479
|
+
}, [s, a, c]), b = x(
|
|
2480
2480
|
(w) => {
|
|
2481
2481
|
const m = ((_ == null ? void 0 : _.width) || 0) + 2 * $t, T = ((_ == null ? void 0 : _.height) || 0) + 2 * $t, I = (o == null ? void 0 : o.clientWidth) || 0, p = (o == null ? void 0 : o.clientHeight) || 0, P = so(w, I, p, m, T);
|
|
2482
2482
|
e(P);
|
|
@@ -2488,7 +2488,7 @@ const Se = {
|
|
|
2488
2488
|
},
|
|
2489
2489
|
[e, b]
|
|
2490
2490
|
);
|
|
2491
|
-
return typeof
|
|
2491
|
+
return typeof r != "boolean" ? /* @__PURE__ */ i(r, { zoomLevel: t, setZoomLevel: e }) : r ? /* @__PURE__ */ z("div", { className: Ne["rp-zoom-wrapper"], children: [
|
|
2492
2492
|
/* @__PURE__ */ i(q, { content: l == null ? void 0 : l.zoomOutTooltip, children: /* @__PURE__ */ i(
|
|
2493
2493
|
te,
|
|
2494
2494
|
{
|
|
@@ -2499,24 +2499,24 @@ const Se = {
|
|
|
2499
2499
|
}
|
|
2500
2500
|
) }),
|
|
2501
2501
|
!u && /* @__PURE__ */ i(
|
|
2502
|
-
|
|
2502
|
+
mn,
|
|
2503
2503
|
{
|
|
2504
|
-
container:
|
|
2504
|
+
container: n,
|
|
2505
2505
|
triggerComponent: /* @__PURE__ */ i("div", { role: "button", children: /* @__PURE__ */ i(q, { content: l == null ? void 0 : l.zoomSelectTooltip, children: /* @__PURE__ */ z(
|
|
2506
2506
|
te,
|
|
2507
2507
|
{
|
|
2508
|
-
className:
|
|
2508
|
+
className: Ne["rp-current-zoom-wrapper"],
|
|
2509
2509
|
"aria-label": l == null ? void 0 : l.zoomSelectTooltip,
|
|
2510
2510
|
children: [
|
|
2511
|
-
/* @__PURE__ */ i("span", { className:
|
|
2512
|
-
/* @__PURE__ */ i("span", { className:
|
|
2513
|
-
/* @__PURE__ */ i(ke, { className:
|
|
2511
|
+
/* @__PURE__ */ i("span", { className: Ne["rp-current-zoom-text"], children: t }),
|
|
2512
|
+
/* @__PURE__ */ i("span", { className: Ne["rp-current-zoom-text"], children: "%" }),
|
|
2513
|
+
/* @__PURE__ */ i(ke, { className: Ne["rp-current-zoom-icon"] })
|
|
2514
2514
|
]
|
|
2515
2515
|
}
|
|
2516
2516
|
) }) }),
|
|
2517
2517
|
style: { minWidth: "200px" },
|
|
2518
2518
|
align: "center",
|
|
2519
|
-
children: /* @__PURE__ */ z("div", { className:
|
|
2519
|
+
children: /* @__PURE__ */ z("div", { className: Ne["rp-zoom-dropdown-content"], children: [
|
|
2520
2520
|
/* @__PURE__ */ z(Ue, { children: [
|
|
2521
2521
|
/* @__PURE__ */ i(we, { onClick: () => v(ot.ACTUAL), children: l == null ? void 0 : l.zoomActualSize }),
|
|
2522
2522
|
/* @__PURE__ */ i(we, { onClick: () => v(ot.PAGE_FIT), children: l == null ? void 0 : l.zoomPageFit }),
|
|
@@ -2540,7 +2540,7 @@ const Se = {
|
|
|
2540
2540
|
}
|
|
2541
2541
|
) })
|
|
2542
2542
|
] }) : null;
|
|
2543
|
-
},
|
|
2543
|
+
}, re = {
|
|
2544
2544
|
"rp-search-tool-content": "_rp-search-tool-content_jvchu_1",
|
|
2545
2545
|
"rp-search-tool-input": "_rp-search-tool-input_jvchu_8",
|
|
2546
2546
|
"rp-search-tool-input-icon": "_rp-search-tool-input-icon_jvchu_14",
|
|
@@ -2550,13 +2550,13 @@ const Se = {
|
|
|
2550
2550
|
"rp-search-tool-input-clear": "_rp-search-tool-input-clear_jvchu_43",
|
|
2551
2551
|
"rp-search-input": "_rp-search-input_jvchu_57",
|
|
2552
2552
|
"rp-search-icon-info": "_rp-search-icon-info_jvchu_62"
|
|
2553
|
-
},
|
|
2553
|
+
}, on = () => {
|
|
2554
2554
|
const { searchIcon: t } = fe();
|
|
2555
2555
|
return t || /* @__PURE__ */ i(co, {});
|
|
2556
2556
|
}, Ri = () => {
|
|
2557
|
-
const { container: t } =
|
|
2558
|
-
searchOptions:
|
|
2559
|
-
setSearchOptions:
|
|
2557
|
+
const { container: t } = xe(), [e, n] = $(!1), { pdf: o } = X(), [r, a] = $(null), {
|
|
2558
|
+
searchOptions: c,
|
|
2559
|
+
setSearchOptions: s,
|
|
2560
2560
|
loading: u,
|
|
2561
2561
|
setSearch: l,
|
|
2562
2562
|
totalMatches: d,
|
|
@@ -2564,10 +2564,10 @@ const Se = {
|
|
|
2564
2564
|
nextMatch: h,
|
|
2565
2565
|
prevMatch: g,
|
|
2566
2566
|
search: _
|
|
2567
|
-
} =
|
|
2568
|
-
|
|
2567
|
+
} = Sn(), { searchTool: b = !0 } = _e(), [v, w] = $(_), { localeMessages: m } = me(), T = x(() => {
|
|
2568
|
+
n(!0);
|
|
2569
2569
|
}, []), I = x(() => {
|
|
2570
|
-
l(""), w(""),
|
|
2570
|
+
l(""), w(""), n(!1);
|
|
2571
2571
|
}, [l]), p = (y) => {
|
|
2572
2572
|
const N = y.key === "Enter", G = y.key === " ";
|
|
2573
2573
|
(N || G) && I();
|
|
@@ -2585,61 +2585,61 @@ const Se = {
|
|
|
2585
2585
|
O(() => (window.addEventListener("keydown", P), () => {
|
|
2586
2586
|
window.removeEventListener("keydown", P);
|
|
2587
2587
|
}), [P]), O(() => {
|
|
2588
|
-
|
|
2589
|
-
}, [
|
|
2588
|
+
r && r.focus();
|
|
2589
|
+
}, [r]);
|
|
2590
2590
|
const S = x((y) => {
|
|
2591
2591
|
w(y.target.value);
|
|
2592
2592
|
}, []), A = x(() => {
|
|
2593
2593
|
w(""), l("");
|
|
2594
|
-
}, [l]), R = k(() => `${f} / ${d}`, [f, d]), { wholeWords: D, matchCase: L } = k(() =>
|
|
2594
|
+
}, [l]), R = k(() => `${f} / ${d}`, [f, d]), { wholeWords: D, matchCase: L } = k(() => c, [c]), F = x(
|
|
2595
2595
|
(y) => {
|
|
2596
|
-
|
|
2596
|
+
s((N) => ({ ...N, matchCase: y }));
|
|
2597
2597
|
},
|
|
2598
|
-
[
|
|
2598
|
+
[s]
|
|
2599
2599
|
), E = x(
|
|
2600
2600
|
(y) => {
|
|
2601
|
-
|
|
2601
|
+
s((N) => ({ ...N, wholeWords: y }));
|
|
2602
2602
|
},
|
|
2603
|
-
[
|
|
2603
|
+
[s]
|
|
2604
2604
|
);
|
|
2605
2605
|
return O(() => {
|
|
2606
2606
|
I();
|
|
2607
|
-
}, [o, I]), b ? /* @__PURE__ */ i(
|
|
2607
|
+
}, [o, I]), b ? /* @__PURE__ */ i(Ie, { children: /* @__PURE__ */ i(
|
|
2608
2608
|
uo,
|
|
2609
2609
|
{
|
|
2610
2610
|
open: e,
|
|
2611
2611
|
container: t,
|
|
2612
|
-
triggerComponent: /* @__PURE__ */ i(q, { content: m == null ? void 0 : m.searchButtonTooltip, children: /* @__PURE__ */ i(te, { onClick: T, "aria-label": m == null ? void 0 : m.searchButtonTooltip, children: /* @__PURE__ */ i(
|
|
2613
|
-
children: /* @__PURE__ */ z("div", { className:
|
|
2614
|
-
/* @__PURE__ */ z("div", { className:
|
|
2615
|
-
/* @__PURE__ */ z("div", { className:
|
|
2612
|
+
triggerComponent: /* @__PURE__ */ i(q, { content: m == null ? void 0 : m.searchButtonTooltip, children: /* @__PURE__ */ i(te, { onClick: T, "aria-label": m == null ? void 0 : m.searchButtonTooltip, children: /* @__PURE__ */ i(on, {}) }) }),
|
|
2613
|
+
children: /* @__PURE__ */ z("div", { className: re["rp-search-tool-content"], children: [
|
|
2614
|
+
/* @__PURE__ */ z("div", { className: re["rp-search-tool-input-wrapper"], children: [
|
|
2615
|
+
/* @__PURE__ */ z("div", { className: re["rp-search-tool-input"], children: [
|
|
2616
2616
|
/* @__PURE__ */ i(q, { content: m == null ? void 0 : m.searchInputTooltip, children: /* @__PURE__ */ i(
|
|
2617
|
-
|
|
2617
|
+
cn,
|
|
2618
2618
|
{
|
|
2619
2619
|
value: v,
|
|
2620
2620
|
onKeyDown: C,
|
|
2621
2621
|
onChange: S,
|
|
2622
|
-
icon: /* @__PURE__ */ i(
|
|
2622
|
+
icon: /* @__PURE__ */ i(on, {}),
|
|
2623
2623
|
placeholder: m == null ? void 0 : m.searchInputPlaceholder,
|
|
2624
|
-
className:
|
|
2624
|
+
className: re["rp-search-input"],
|
|
2625
2625
|
ref: a,
|
|
2626
|
-
children: !!v && /* @__PURE__ */ i("span", { className:
|
|
2626
|
+
children: !!v && /* @__PURE__ */ i("span", { className: re["rp-search-tool-input-clear"], onClick: A, children: /* @__PURE__ */ i(lo, {}) })
|
|
2627
2627
|
}
|
|
2628
2628
|
) }),
|
|
2629
2629
|
u ? /* @__PURE__ */ i("span", { children: /* @__PURE__ */ i(St, {}) }) : /* @__PURE__ */ i("span", { children: R })
|
|
2630
2630
|
] }),
|
|
2631
|
-
/* @__PURE__ */ z("div", { className:
|
|
2631
|
+
/* @__PURE__ */ z("div", { className: re["rp-search-tool-input-checkboxes"], children: [
|
|
2632
2632
|
/* @__PURE__ */ i(Gt, { name: "matchCase", value: L, onChange: F, children: m == null ? void 0 : m.searchMatchCaseLabel }),
|
|
2633
|
-
/* @__PURE__ */ i(q, { content: m == null ? void 0 : m.searchMatchCaseTooltip, children: /* @__PURE__ */ i("div", { className:
|
|
2633
|
+
/* @__PURE__ */ i(q, { content: m == null ? void 0 : m.searchMatchCaseTooltip, children: /* @__PURE__ */ i("div", { className: re["rp-search-icon-info"], tabIndex: 0, children: /* @__PURE__ */ i(Vt, {}) }) }),
|
|
2634
2634
|
/* @__PURE__ */ i(Gt, { name: "wholeWord", value: D, onChange: E, children: m == null ? void 0 : m.searchWholeWordsLabel }),
|
|
2635
|
-
/* @__PURE__ */ i(q, { content: m == null ? void 0 : m.searchWholeWordsTooltip, children: /* @__PURE__ */ i("div", { className:
|
|
2635
|
+
/* @__PURE__ */ i(q, { content: m == null ? void 0 : m.searchWholeWordsTooltip, children: /* @__PURE__ */ i("div", { className: re["rp-search-icon-info"], tabIndex: 0, children: /* @__PURE__ */ i(Vt, {}) }) })
|
|
2636
2636
|
] })
|
|
2637
2637
|
] }),
|
|
2638
|
-
/* @__PURE__ */ z("div", { className:
|
|
2638
|
+
/* @__PURE__ */ z("div", { className: re["rp-search-tool-controls"], children: [
|
|
2639
2639
|
/* @__PURE__ */ i(q, { content: m == null ? void 0 : m.searchPrevTooltip, children: /* @__PURE__ */ i(te, { onClick: g, "aria-label": m == null ? void 0 : m.searchPrevTooltip, children: /* @__PURE__ */ i(
|
|
2640
2640
|
ke,
|
|
2641
2641
|
{
|
|
2642
|
-
className:
|
|
2642
|
+
className: re["rp-search-tool-input-icon"],
|
|
2643
2643
|
"aria-disabled": !d
|
|
2644
2644
|
}
|
|
2645
2645
|
) }) }),
|
|
@@ -2647,7 +2647,7 @@ const Se = {
|
|
|
2647
2647
|
ke,
|
|
2648
2648
|
{
|
|
2649
2649
|
style: { transform: "rotate(180deg" },
|
|
2650
|
-
className:
|
|
2650
|
+
className: re["rp-search-tool-input-icon"],
|
|
2651
2651
|
"aria-disabled": !d
|
|
2652
2652
|
}
|
|
2653
2653
|
) }) }),
|
|
@@ -2656,41 +2656,41 @@ const Se = {
|
|
|
2656
2656
|
{
|
|
2657
2657
|
onKeyDown: p,
|
|
2658
2658
|
"aria-label": m == null ? void 0 : m.searchCloseButtonTooltip,
|
|
2659
|
-
children: /* @__PURE__ */ i(
|
|
2659
|
+
children: /* @__PURE__ */ i(fn, { onClick: I, className: re["rp-search-tool-input-icon"] })
|
|
2660
2660
|
}
|
|
2661
2661
|
) })
|
|
2662
2662
|
] })
|
|
2663
2663
|
] })
|
|
2664
2664
|
}
|
|
2665
2665
|
) }) : null;
|
|
2666
|
-
}, Li = "
|
|
2667
|
-
"rp-loading-overlay": "_rp-loading-
|
|
2668
|
-
"rp-loading-modal": "_rp-loading-
|
|
2669
|
-
"rp-loading-title": "_rp-loading-
|
|
2670
|
-
"rp-loading-progress-bar": "_rp-loading-progress-
|
|
2671
|
-
"rp-loading-progress": "_rp-loading-
|
|
2672
|
-
"rp-loading-cancel-button": "_rp-loading-cancel-
|
|
2666
|
+
}, Li = "_loading_1ln1d_1", Ee = {
|
|
2667
|
+
"rp-loading-overlay": "_rp-loading-overlay_1ln1d_1",
|
|
2668
|
+
"rp-loading-modal": "_rp-loading-modal_1ln1d_14",
|
|
2669
|
+
"rp-loading-title": "_rp-loading-title_1ln1d_27",
|
|
2670
|
+
"rp-loading-progress-bar": "_rp-loading-progress-bar_1ln1d_35",
|
|
2671
|
+
"rp-loading-progress": "_rp-loading-progress_1ln1d_35",
|
|
2672
|
+
"rp-loading-cancel-button": "_rp-loading-cancel-button_1ln1d_52",
|
|
2673
2673
|
loading: Li
|
|
2674
2674
|
}, Ni = ({ percentage: t }) => {
|
|
2675
|
-
const { cancel: e } = et(), { localeMessages:
|
|
2676
|
-
return t < 1 ? null : /* @__PURE__ */ i("div", { className: oe(
|
|
2677
|
-
/* @__PURE__ */ z("div", { className: oe(
|
|
2678
|
-
|
|
2675
|
+
const { cancel: e } = et(), { localeMessages: n } = me();
|
|
2676
|
+
return t < 1 ? null : /* @__PURE__ */ i("div", { className: oe(Ee["rp-loading-overlay"]), children: /* @__PURE__ */ z("div", { className: oe(Ee["rp-loading-modal"]), children: [
|
|
2677
|
+
/* @__PURE__ */ z("div", { className: oe(Ee["rp-loading-title"]), children: [
|
|
2678
|
+
n == null ? void 0 : n.printLoadingMessage,
|
|
2679
2679
|
"..."
|
|
2680
2680
|
] }),
|
|
2681
|
-
/* @__PURE__ */ i("div", { className: oe(
|
|
2681
|
+
/* @__PURE__ */ i("div", { className: oe(Ee["rp-loading-progress-bar"]), children: /* @__PURE__ */ i(
|
|
2682
2682
|
"div",
|
|
2683
2683
|
{
|
|
2684
|
-
className: oe(
|
|
2684
|
+
className: oe(Ee["rp-loading-progress"]),
|
|
2685
2685
|
style: { width: `${t}%` }
|
|
2686
2686
|
}
|
|
2687
2687
|
) }),
|
|
2688
|
-
/* @__PURE__ */ i("button", { className: oe(
|
|
2688
|
+
/* @__PURE__ */ i("button", { className: oe(Ee["rp-loading-cancel-button"]), onClick: e, children: n == null ? void 0 : n.printCancelLabel })
|
|
2689
2689
|
] }) });
|
|
2690
2690
|
}, Ei = Be((t, e) => {
|
|
2691
|
-
const { showPrintProgress:
|
|
2691
|
+
const { showPrintProgress: n } = _e(), { progress: o } = et(), { isSmallScreen: r } = Re(), { percentage: a } = o || {}, c = () => r ? { gridTemplateColumns: "25% 60% 15%" } : void 0;
|
|
2692
2692
|
return /* @__PURE__ */ z("div", { children: [
|
|
2693
|
-
/* @__PURE__ */ i("div", { "data-rp": "topBar", ref: e, className: ze["rp-toolbar-content"], children: /* @__PURE__ */ z("div", { className: ze["rp-toolbar-wrapper"], style:
|
|
2693
|
+
/* @__PURE__ */ i("div", { "data-rp": "topBar", ref: e, className: ze["rp-toolbar-content"], children: /* @__PURE__ */ z("div", { className: ze["rp-toolbar-wrapper"], style: c(), children: [
|
|
2694
2694
|
/* @__PURE__ */ z("div", { "data-rp": "topBarLeft", className: ze["rp-toolbar-start"], children: [
|
|
2695
2695
|
/* @__PURE__ */ i(Ri, {}),
|
|
2696
2696
|
/* @__PURE__ */ i(Zo, {})
|
|
@@ -2698,7 +2698,7 @@ const Se = {
|
|
|
2698
2698
|
/* @__PURE__ */ i("div", { "data-rp": "topBarCenter", className: ze["rp-toolbar-middle"], children: /* @__PURE__ */ i(xi, {}) }),
|
|
2699
2699
|
/* @__PURE__ */ i("div", { "data-rp": "topBarRight", className: ze["rp-toolbar-end"], children: /* @__PURE__ */ i(Ti, {}) })
|
|
2700
2700
|
] }) }),
|
|
2701
|
-
|
|
2701
|
+
n && a ? /* @__PURE__ */ i(Ni, { percentage: a }) : null
|
|
2702
2702
|
] });
|
|
2703
2703
|
}), ft = {
|
|
2704
2704
|
"rp-sidebar-content-wrapper": "_rp-sidebar-content-wrapper_4wlw3_1",
|
|
@@ -2712,25 +2712,25 @@ const Se = {
|
|
|
2712
2712
|
"rp-thumbnail-active": "_rp-thumbnail-active_3fenb_22",
|
|
2713
2713
|
"rp-thumbnail-loader": "_rp-thumbnail-loader_3fenb_31"
|
|
2714
2714
|
}, Oi = (t) => {
|
|
2715
|
-
const { thumbnailSrc: e, pageNumber:
|
|
2716
|
-
width: Math.round(
|
|
2717
|
-
height: Math.round(
|
|
2718
|
-
}), [
|
|
2719
|
-
|
|
2720
|
-
}, [a,
|
|
2715
|
+
const { thumbnailSrc: e, pageNumber: n, isFocused: o, viewport: r } = t, { goToPage: a } = ce(), c = k(() => o ? Ae["rp-thumbnail-active"] : "", [o]), s = k(() => ({
|
|
2716
|
+
width: Math.round(r.width),
|
|
2717
|
+
height: Math.round(r.height)
|
|
2718
|
+
}), [r]), u = x(() => {
|
|
2719
|
+
n && a(n);
|
|
2720
|
+
}, [a, n]);
|
|
2721
2721
|
return /* @__PURE__ */ z(
|
|
2722
2722
|
"div",
|
|
2723
2723
|
{
|
|
2724
2724
|
onClick: u,
|
|
2725
|
-
id: `page-${
|
|
2725
|
+
id: `page-${n}`,
|
|
2726
2726
|
className: Ae["rp-thumbnail-wrapper"],
|
|
2727
2727
|
children: [
|
|
2728
|
-
/* @__PURE__ */ i("div", { className: oe(
|
|
2728
|
+
/* @__PURE__ */ i("div", { className: oe(c, Ae["rp-thumbnail"]), children: e ? /* @__PURE__ */ i(
|
|
2729
2729
|
"img",
|
|
2730
2730
|
{
|
|
2731
2731
|
src: e,
|
|
2732
|
-
width:
|
|
2733
|
-
height:
|
|
2732
|
+
width: s.width,
|
|
2733
|
+
height: s.height,
|
|
2734
2734
|
alt: "thumbnail"
|
|
2735
2735
|
}
|
|
2736
2736
|
) : /* @__PURE__ */ i(
|
|
@@ -2738,32 +2738,32 @@ const Se = {
|
|
|
2738
2738
|
{
|
|
2739
2739
|
className: Ae["rp-thumbnail-loader"],
|
|
2740
2740
|
style: {
|
|
2741
|
-
width: `${
|
|
2742
|
-
height: `${
|
|
2741
|
+
width: `${s.width}px`,
|
|
2742
|
+
height: `${s.height}px`
|
|
2743
2743
|
},
|
|
2744
2744
|
children: /* @__PURE__ */ i(St, {})
|
|
2745
2745
|
}
|
|
2746
2746
|
) }),
|
|
2747
|
-
/* @__PURE__ */ i("div", { className: Ae["rp-thumbnail-text"], children:
|
|
2747
|
+
/* @__PURE__ */ i("div", { className: Ae["rp-thumbnail-text"], children: n })
|
|
2748
2748
|
]
|
|
2749
2749
|
}
|
|
2750
2750
|
);
|
|
2751
|
-
},
|
|
2751
|
+
}, an = {
|
|
2752
2752
|
"rp-thumbnails-container": "_rp-thumbnails-container_16vqr_1",
|
|
2753
2753
|
"rp-thumbnails": "_rp-thumbnails_16vqr_1"
|
|
2754
2754
|
}, Di = 16, zi = (t, e) => {
|
|
2755
|
-
const
|
|
2756
|
-
t && (
|
|
2755
|
+
const n = t == null ? void 0 : t.querySelector(`#page-${e}`);
|
|
2756
|
+
t && (n != null && n.offsetTop) && (t.scrollTop = (n == null ? void 0 : n.offsetTop) - Di);
|
|
2757
2757
|
}, Ai = Be((t, e) => {
|
|
2758
|
-
const { show:
|
|
2759
|
-
|
|
2758
|
+
const { show: n } = t, { focusedPage: o, totalPages: r } = ce(), { thumbnailPages: a, addPage: c, thumbnailLength: s, addToPage: u } = Tn(), l = W(null), d = W(1);
|
|
2759
|
+
sn(e, () => l.current);
|
|
2760
2760
|
const f = k(() => Object.values(a), [a]), h = x(() => {
|
|
2761
|
-
const g =
|
|
2762
|
-
g <=
|
|
2763
|
-
}, [
|
|
2761
|
+
const g = s + 1;
|
|
2762
|
+
g <= r && c(g);
|
|
2763
|
+
}, [c, r, s]);
|
|
2764
2764
|
return O(() => {
|
|
2765
|
-
o >
|
|
2766
|
-
}, [o,
|
|
2765
|
+
o > s ? u(o) : n && d.current !== o && (zi(l.current, o), d.current = o);
|
|
2766
|
+
}, [o, s, u, n, f]), wr(l.current, h), /* @__PURE__ */ i("div", { ref: l, className: an["rp-thumbnails-container"], children: /* @__PURE__ */ i("div", { className: an["rp-thumbnails"], children: n ? f.map((g, _) => {
|
|
2767
2767
|
var b, v;
|
|
2768
2768
|
return /* @__PURE__ */ i(
|
|
2769
2769
|
Oi,
|
|
@@ -2779,55 +2779,63 @@ const Se = {
|
|
|
2779
2779
|
}) : null }) });
|
|
2780
2780
|
}), Fi = () => {
|
|
2781
2781
|
const { thumbnailIcon: t } = fe();
|
|
2782
|
-
return t || /* @__PURE__ */ i(
|
|
2782
|
+
return t || /* @__PURE__ */ i(_r, {});
|
|
2783
2783
|
}, ki = () => {
|
|
2784
|
-
const { active: t, setActive: e } =
|
|
2785
|
-
e((
|
|
2786
|
-
}, []),
|
|
2784
|
+
const { active: t, setActive: e } = Tn(), [n, o] = $(200), r = W(null), { thumbnailTool: a, sidebarEnable: c } = _e(), { localeMessages: s } = me(), u = x(() => {
|
|
2785
|
+
e((d) => !d);
|
|
2786
|
+
}, []), l = k(() => typeof a != "boolean" && a ? /* @__PURE__ */ i(a, { onClick: u, active: t }) : a ? /* @__PURE__ */ i(q, { content: s == null ? void 0 : s.thumbnailTooltip, children: /* @__PURE__ */ i(
|
|
2787
2787
|
te,
|
|
2788
2788
|
{
|
|
2789
|
-
onClick:
|
|
2789
|
+
onClick: u,
|
|
2790
2790
|
active: t,
|
|
2791
2791
|
"aria-label": s == null ? void 0 : s.thumbnailTooltip,
|
|
2792
2792
|
children: /* @__PURE__ */ i(Fi, {})
|
|
2793
2793
|
}
|
|
2794
|
-
) }) : null, [a, t,
|
|
2795
|
-
return /* @__PURE__ */ z(
|
|
2794
|
+
) }) : null, [a, t, u, s]);
|
|
2795
|
+
return /* @__PURE__ */ i(Ie, { children: c && /* @__PURE__ */ z(
|
|
2796
2796
|
"div",
|
|
2797
2797
|
{
|
|
2798
|
-
style: { "--rp-thumbnail-width": `${
|
|
2798
|
+
style: { "--rp-thumbnail-width": `${n}px` },
|
|
2799
2799
|
className: ft["rp-sidebar-content-wrapper"],
|
|
2800
2800
|
"data-rp": "sidebar",
|
|
2801
2801
|
children: [
|
|
2802
|
-
/* @__PURE__ */ i("div", { className: ft["rp-sidebar-content"], children:
|
|
2803
|
-
/* @__PURE__ */ z(
|
|
2804
|
-
|
|
2805
|
-
|
|
2806
|
-
|
|
2802
|
+
/* @__PURE__ */ i("div", { className: ft["rp-sidebar-content"], children: l }),
|
|
2803
|
+
/* @__PURE__ */ z(
|
|
2804
|
+
"div",
|
|
2805
|
+
{
|
|
2806
|
+
"data-rp": "thumbnailSidebar",
|
|
2807
|
+
hidden: !t,
|
|
2808
|
+
className: ft["rp-thumbnails-wrapper"],
|
|
2809
|
+
children: [
|
|
2810
|
+
/* @__PURE__ */ i(Ai, { show: t, ref: r }),
|
|
2811
|
+
/* @__PURE__ */ i(br, { onWidthChange: o, thumbnailRef: r })
|
|
2812
|
+
]
|
|
2813
|
+
}
|
|
2814
|
+
)
|
|
2807
2815
|
]
|
|
2808
2816
|
}
|
|
2809
|
-
);
|
|
2817
|
+
) });
|
|
2810
2818
|
}, Cs = Be((t, e) => {
|
|
2811
|
-
const { children:
|
|
2819
|
+
const { children: n, slots: o, icons: r, style: a, className: c, mobileWidth: s, onLoaded: u, cleanupOnLoaded: l } = t, [d, f] = $(null), { setContainer: h, setContentRef: g } = xe(), { loading: _ } = X(), { LoaderImageComponent: b } = pn();
|
|
2812
2820
|
return O(() => (u && u(), () => {
|
|
2813
2821
|
l && l();
|
|
2814
|
-
}), [u, l]), /* @__PURE__ */ i("div", { ref: e, className: oe(Pe["rp-theme-variables"], Pe["rp-container"]), children: /* @__PURE__ */ i(
|
|
2815
|
-
|
|
2822
|
+
}), [u, l]), /* @__PURE__ */ i("div", { ref: e, className: oe(Pe["rp-theme-variables"], Pe["rp-container"]), children: /* @__PURE__ */ i(yr, { mobileWidth: s, children: /* @__PURE__ */ i(Cr, { slots: o, children: /* @__PURE__ */ i(Tr, { icons: r, children: /* @__PURE__ */ z(
|
|
2823
|
+
Pr,
|
|
2816
2824
|
{
|
|
2817
2825
|
getContainerRef: h,
|
|
2818
2826
|
toolbarRef: d,
|
|
2819
2827
|
style: a,
|
|
2820
|
-
className:
|
|
2828
|
+
className: c,
|
|
2821
2829
|
children: [
|
|
2822
|
-
/* @__PURE__ */ z(
|
|
2830
|
+
/* @__PURE__ */ z(Sr, { children: [
|
|
2823
2831
|
/* @__PURE__ */ z("div", { className: Pe["rp-layout"], children: [
|
|
2824
2832
|
/* @__PURE__ */ i(Ei, { ref: f }),
|
|
2825
2833
|
/* @__PURE__ */ z("div", { className: Pe["rp-content"], children: [
|
|
2826
2834
|
/* @__PURE__ */ i("div", { className: Pe["rp-sidebar"], children: /* @__PURE__ */ i(ki, {}) }),
|
|
2827
|
-
/* @__PURE__ */ i("div", { ref: g, className: Pe["rp-pages"], children:
|
|
2835
|
+
/* @__PURE__ */ i("div", { ref: g, className: Pe["rp-pages"], children: n })
|
|
2828
2836
|
] })
|
|
2829
2837
|
] }),
|
|
2830
|
-
/* @__PURE__ */ i(
|
|
2838
|
+
/* @__PURE__ */ i(Ir, {})
|
|
2831
2839
|
] }),
|
|
2832
2840
|
_ ? /* @__PURE__ */ i(
|
|
2833
2841
|
"div",
|
|
@@ -2867,7 +2875,7 @@ export {
|
|
|
2867
2875
|
go as C,
|
|
2868
2876
|
$o as D,
|
|
2869
2877
|
Oi as E,
|
|
2870
|
-
|
|
2878
|
+
qn as F,
|
|
2871
2879
|
Ai as G,
|
|
2872
2880
|
ki as H,
|
|
2873
2881
|
Ni as L,
|
|
@@ -2880,19 +2888,19 @@ export {
|
|
|
2880
2888
|
xi as Z,
|
|
2881
2889
|
fs as a,
|
|
2882
2890
|
Cs as b,
|
|
2883
|
-
|
|
2891
|
+
Gn as c,
|
|
2884
2892
|
et as d,
|
|
2885
|
-
|
|
2886
|
-
|
|
2893
|
+
Sn as e,
|
|
2894
|
+
_n as f,
|
|
2887
2895
|
po as g,
|
|
2888
|
-
|
|
2896
|
+
wn as h,
|
|
2889
2897
|
ho as i,
|
|
2890
|
-
|
|
2898
|
+
bn as j,
|
|
2891
2899
|
mo as k,
|
|
2892
|
-
|
|
2893
|
-
|
|
2900
|
+
Cn as l,
|
|
2901
|
+
Tn as m,
|
|
2894
2902
|
fo as n,
|
|
2895
|
-
|
|
2903
|
+
Pn as o,
|
|
2896
2904
|
vo as p,
|
|
2897
2905
|
Co as q,
|
|
2898
2906
|
Rt as r,
|
|
@@ -2901,7 +2909,7 @@ export {
|
|
|
2901
2909
|
ce as u,
|
|
2902
2910
|
Zo as v,
|
|
2903
2911
|
li as w,
|
|
2904
|
-
|
|
2912
|
+
Bn as x,
|
|
2905
2913
|
Ti as y,
|
|
2906
2914
|
Ri as z
|
|
2907
2915
|
};
|