@pdf-viewer/react 0.0.0-experimental.1 → 0.0.0-experimental.2
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/{ToolbarLayout.module-acfd93ef.js → ToolbarLayout.module-185b677e.js} +645 -643
- 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/LayoutContainer.js +1 -1
- package/dist/components/layout/RPDefaultLayout.js +1 -1
- package/dist/components/layout/RPLayout.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/RPMoreOptions.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/SearchResultNavigator.js +1 -1
- package/dist/components/layout/toolbar/SearchTool.js +1 -1
- package/dist/components/layout/toolbar/ThumbnailTool.js +1 -1
- package/dist/components/layout/toolbar/ToolbarCustom.js +1 -1
- package/dist/components/layout/toolbar/ToolbarDefault.js +1 -1
- package/dist/components/layout/toolbar/ToolbarLayout.js +1 -1
- package/dist/components/layout/toolbar/tools/DocumentPropertiesTool.js +1 -1
- package/dist/components/layout/toolbar/tools/FileDownloadTool.js +1 -1
- package/dist/components/layout/toolbar/tools/InputPageTool.js +1 -1
- package/dist/components/layout/toolbar/tools/NextPageTool.js +1 -1
- package/dist/components/layout/toolbar/tools/PreviousPageTool.js +1 -1
- package/dist/components/layout/toolbar/tools/PrintTool.js +1 -1
- package/dist/components/layout/toolbar/tools/ThumbnailTool.js +1 -1
- package/dist/components/layout/toolbar/tools/defaults/RPHorizontalBar.js +1 -1
- package/dist/components/layout/toolbar/tools/defaults/RPVerticalBar.js +1 -1
- package/dist/components/layout/toolbar/tools/more-options/FileDownloadTool.js +1 -1
- package/dist/components/layout/toolbar/tools/more-options/FileUploadTool.js +1 -1
- package/dist/components/layout/toolbar/tools/more-options/MostPageTool.js +1 -1
- package/dist/components/layout/toolbar/tools/more-options/PrintTool.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/RenderQueueProvider.js +1 -1
- package/dist/contexts/SearchContext.js +1 -1
- package/dist/contexts/ThumbnailsContext.js +1 -1
- package/dist/main.js +1 -1
- 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/usePresentPage.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,116 +1,116 @@
|
|
|
1
1
|
import { jsx as a, Fragment as fe, jsxs as $ } from "react/jsx-runtime";
|
|
2
2
|
import * as X from "react";
|
|
3
|
-
import { useRef as k, useEffect as M, useCallback as E, useState as q, useMemo as W, createContext as qe, useContext as Ge, useImperativeHandle as
|
|
3
|
+
import { useRef as k, useEffect as M, useCallback as E, useState as q, useMemo as W, createContext as qe, useContext as Ge, useImperativeHandle as on, createElement as Be, PureComponent as ir, Component as ar, memo as an, forwardRef as sr } from "react";
|
|
4
4
|
import { ChevronUpIcon as Xe } from "./components/icons/ChevronUpIcon.js";
|
|
5
5
|
import { UIButton as we } from "./components/ui/Button.js";
|
|
6
6
|
import { UIInput as sn } from "./components/ui/Input.js";
|
|
7
|
-
import { ViewMode as Re, ScrollMode as ne, AnnotationSubType as Dt, SelectionMode as
|
|
7
|
+
import { ViewMode as Re, ScrollMode as ne, AnnotationSubType as Dt, SelectionMode as cr, ErrorType as lr } from "./utils/types.js";
|
|
8
8
|
import { useScrollModeContext as Ee } from "./contexts/ScrollModeContext.js";
|
|
9
|
-
import { useDocumentContext as
|
|
10
|
-
import { useDocumentPasswordContext as
|
|
11
|
-
import { useDarkModeContext as
|
|
9
|
+
import { useDocumentContext as re } from "./contexts/RPDocumentContext.js";
|
|
10
|
+
import { useDocumentPasswordContext as dr } from "./contexts/DocumentPasswordContext.js";
|
|
11
|
+
import { useDarkModeContext as ur } from "./contexts/DarkModeContext.js";
|
|
12
12
|
import "./contexts/RotationContext.js";
|
|
13
|
-
import { useLayerContext as
|
|
13
|
+
import { useLayerContext as pr } from "./contexts/LayerContext.js";
|
|
14
14
|
import { useZoomContext as _t } from "./contexts/ZoomContext.js";
|
|
15
15
|
import { useViewModeContext as ze } from "./contexts/ViewModeContext.js";
|
|
16
16
|
import { useVirtualScrollContext as Je } from "./contexts/VirtualScrollContext.js";
|
|
17
17
|
import { useVirtualGridContext as cn } from "./contexts/VirtualGridContext.js";
|
|
18
|
-
import { useSelectionModeContext as
|
|
19
|
-
import { useInitialStateContext as
|
|
20
|
-
import { useFullScreenContext as
|
|
18
|
+
import { useSelectionModeContext as hr } from "./contexts/SelectionModeContext.js";
|
|
19
|
+
import { useInitialStateContext as fr } from "./contexts/InitialStateContext.js";
|
|
20
|
+
import { useFullScreenContext as mr } from "./contexts/FullScreenContext.js";
|
|
21
21
|
import "./contexts/FileInputContext.js";
|
|
22
22
|
import "./contexts/DropFileZoneContext.js";
|
|
23
|
-
import { findMatches as
|
|
23
|
+
import { findMatches as gr, resetDivs as vr, highlightMatches as wr, isMatchEntireWord as _r } from "./utils/highlight.js";
|
|
24
24
|
import { useLayoutContainer as be } from "./contexts/LayoutContainerContext.js";
|
|
25
25
|
import { useDimensionPagesContext as Ue } from "./contexts/DimensionPagesContext.js";
|
|
26
26
|
import { useLocalizationContext as me } from "./contexts/LocalizationContext.js";
|
|
27
|
-
import { useHighlightContext as
|
|
27
|
+
import { useHighlightContext as br } from "./contexts/HighlightContext.js";
|
|
28
28
|
import "./contexts/LicenseContext.js";
|
|
29
|
-
import { useDownloadContext as
|
|
29
|
+
import { useDownloadContext as Tr } from "./contexts/DownloadContext.js";
|
|
30
30
|
import { useSmoothScrollContext as ln } from "./contexts/SmoothScrollContext.js";
|
|
31
31
|
import "./contexts/ElementPageContext.js";
|
|
32
32
|
import { usePagesRotateContext as et } from "./contexts/PagesRotateContext.js";
|
|
33
|
-
import { Queue as
|
|
34
|
-
import { renderPage as
|
|
35
|
-
import { useGlobalCurrentPage as
|
|
33
|
+
import { Queue as Cr } from "./utils/Queue.js";
|
|
34
|
+
import { renderPage as Pr } from "./utils/renderPage.js";
|
|
35
|
+
import { useGlobalCurrentPage as yr } from "./contexts/GlobalCurrentPage.js";
|
|
36
36
|
import { useLoaderContext as bt } from "./contexts/LoaderContext.js";
|
|
37
37
|
import { useToolComponentContext as Ne } from "./contexts/ToolComponentContext.js";
|
|
38
38
|
import { useIconToolContext as Te } from "./contexts/IconToolContext.js";
|
|
39
|
-
import { useOtherToolContext as
|
|
40
|
-
import { useEventCallbackContext as
|
|
39
|
+
import { useOtherToolContext as Sr } from "./contexts/OtherToolContext.js";
|
|
40
|
+
import { useEventCallbackContext as Ir } from "./contexts/EventCallbackContext.js";
|
|
41
41
|
import "./components/RPConfig.js";
|
|
42
|
-
import { ThumbnailIcon as
|
|
42
|
+
import { ThumbnailIcon as xr } from "./components/icons/Thumbnail.js";
|
|
43
43
|
import { c as de } from "./clsx-0c6e471a.js";
|
|
44
44
|
import { LoaderIcon as dn } from "./components/icons/LoaderIcon.js";
|
|
45
|
-
import { Container as
|
|
46
|
-
import { useViewportContext as Oe, ViewportProvider as
|
|
47
|
-
import { useToolbarComponentContext as Ce, ToolbarComponentProvider as
|
|
48
|
-
import { RPSplitter as
|
|
49
|
-
import { WrapperLayout as
|
|
50
|
-
import { c as _e, L as
|
|
51
|
-
import { useThemeContext as
|
|
52
|
-
import { RPDropFileZone as
|
|
45
|
+
import { Container as Rr } from "./components/layout/Container.js";
|
|
46
|
+
import { useViewportContext as Oe, ViewportProvider as Lr } from "./contexts/ViewportContext.js";
|
|
47
|
+
import { useToolbarComponentContext as Ce, ToolbarComponentProvider as Er } from "./contexts/ToolbarComponentContext.js";
|
|
48
|
+
import { RPSplitter as Nr } from "./components/layout/sidebar/RPSplitter.js";
|
|
49
|
+
import { WrapperLayout as Or } from "./components/layout/WrapperLayout.js";
|
|
50
|
+
import { c as _e, L as Dr } from "./LayoutWrapper-6224491f.js";
|
|
51
|
+
import { useThemeContext as Ar } from "./contexts/ThemeContext.js";
|
|
52
|
+
import { RPDropFileZone as Mr } from "./components/RPDropFileZone.js";
|
|
53
53
|
import { c as te, S as At } from "./SearchCloseButton-08d57275.js";
|
|
54
54
|
import { UICheckbox as Mt } from "./components/ui/Checkbox.js";
|
|
55
|
-
import { useIconContext as Pe, IconProvider as
|
|
55
|
+
import { useIconContext as Pe, IconProvider as zr } from "./contexts/IconContext.js";
|
|
56
56
|
import Q from "./components/ui/RPTooltip.js";
|
|
57
57
|
import { UIDropDown as un } from "./components/ui/DropDown.js";
|
|
58
58
|
import "./ZoomTool.module-7082af8c.js";
|
|
59
59
|
import { MenuItem as Qe } from "./components/layout/toolbar/MenuItem.js";
|
|
60
60
|
import { MenuSeparator as pn } from "./components/layout/toolbar/MenuSeparator.js";
|
|
61
61
|
import { dateFormatter as zt } from "./utils/dateFormatter.js";
|
|
62
|
-
import { PropertyItem as
|
|
62
|
+
import { PropertyItem as Fr } from "./components/layout/toolbar/PropertyItem.js";
|
|
63
63
|
import "./RotateTool.module-67946714.js";
|
|
64
64
|
import { withRef as tt } from "./utils/withRef.js";
|
|
65
|
-
import { useInfiniteScroll as
|
|
66
|
-
import { THUMBNAIL_MIN_WIDTH as
|
|
67
|
-
import * as
|
|
68
|
-
import { PixelsPerInch as
|
|
65
|
+
import { useInfiniteScroll as kr } from "./utils/hooks/useInfiniteScroll.js";
|
|
66
|
+
import { THUMBNAIL_MIN_WIDTH as Wr } from "./utils/constants.js";
|
|
67
|
+
import * as Hr from "pdfjs-dist";
|
|
68
|
+
import { PixelsPerInch as $r, AnnotationMode as qr, RenderingCancelledException as Gr, AnnotationLayer as Ur } from "pdfjs-dist";
|
|
69
69
|
import { SimpleLinkService as Ft } from "./utils/link_service.js";
|
|
70
|
-
import { annotationsEvents as
|
|
71
|
-
import { normalizeSingleKeyword as
|
|
72
|
-
import { CustomElement as
|
|
73
|
-
import { getGridDimension as Tt, getPositionFromPage as
|
|
74
|
-
import { useMousePressed as
|
|
75
|
-
import { useGrabScroll as
|
|
76
|
-
import { usePinch as
|
|
70
|
+
import { annotationsEvents as Vr, annotationEventsHandler as Br, handleClick as kt, handleAnnotationWidget as jr, handleAnnotationLink as Kr, bindLayerEvents as Zr, unbindLayerEvents as Wt } from "./utils/annotations.js";
|
|
71
|
+
import { normalizeSingleKeyword as Xr, sortHighlightPosition as Qr, unwrap as Yr } from "./components/page/searchHighlight.js";
|
|
72
|
+
import { CustomElement as Jr } from "./components/page/CustomElement.js";
|
|
73
|
+
import { getGridDimension as Tt, getPositionFromPage as eo, getPageFromPosition as to } from "./utils/calculatePage.js";
|
|
74
|
+
import { useMousePressed as no } from "./utils/hooks/useMousePressed.js";
|
|
75
|
+
import { useGrabScroll as ro } from "./utils/hooks/useGrabScroll.js";
|
|
76
|
+
import { usePinch as oo } from "./utils/hooks/usePinch.js";
|
|
77
77
|
import { useDebounce as Ct } from "./utils/hooks/useDebounce.js";
|
|
78
|
-
import
|
|
78
|
+
import io from "./components/ui/PasswordModal.js";
|
|
79
79
|
import { getScrollDistance as Me } from "./utils/getScrollDistance.js";
|
|
80
|
-
import { getWordPositionInPage as
|
|
81
|
-
import { getThumbnailViewport as
|
|
80
|
+
import { getWordPositionInPage as ao } from "./utils/getWordPositionInPage.js";
|
|
81
|
+
import { getThumbnailViewport as so } from "./utils/getThumbnailViewport.js";
|
|
82
82
|
import { smoothScrollTo as at } from "./utils/smoothScrollTo.js";
|
|
83
|
-
import { appConsole as
|
|
83
|
+
import { appConsole as co } from "./utils/appConsole.js";
|
|
84
84
|
import { FileUploadTool as hn } from "./components/layout/toolbar/FileUploadTool.js";
|
|
85
|
-
import { DarkModeTool as
|
|
86
|
-
import { ThreeDotIcon as
|
|
87
|
-
import { c as
|
|
88
|
-
import { D as
|
|
89
|
-
import { a as
|
|
90
|
-
import { CloseIcon as
|
|
91
|
-
import { DocumentProperties as
|
|
92
|
-
import { RotateTool as
|
|
93
|
-
import { ViewModeTool as
|
|
94
|
-
import { ScrollModeTool as
|
|
95
|
-
import { FileDownloadDefaultIcon as
|
|
96
|
-
import { PrintDefaultTool as
|
|
85
|
+
import { DarkModeTool as lo } from "./components/layout/toolbar/DarkModeTool.js";
|
|
86
|
+
import { ThreeDotIcon as uo } from "./components/icons/ThreeDotIcon.js";
|
|
87
|
+
import { c as po, u as Pt, P as Ve, a as $e, b as yt, k as ho, e as fo, i as mo } from "./index-c9a2990a.js";
|
|
88
|
+
import { D as go, d as st } from "./floating-ui.react-dom-d22a10b4.js";
|
|
89
|
+
import { a as vo, h as wo, u as _o, F as bo, b as To, G as fn } from "./index-3bf64864.js";
|
|
90
|
+
import { CloseIcon as Co } from "./components/icons/CloseIcon.js";
|
|
91
|
+
import { DocumentProperties as Po } from "./components/layout/toolbar/DocumentProperties.js";
|
|
92
|
+
import { RotateTool as yo } from "./components/layout/toolbar/RotateTool.js";
|
|
93
|
+
import { ViewModeTool as So } from "./components/layout/toolbar/ViewModeTool.js";
|
|
94
|
+
import { ScrollModeTool as Io } from "./components/layout/toolbar/ScrollModeTool.js";
|
|
95
|
+
import { FileDownloadDefaultIcon as xo } from "./components/icons/FileDownloadDefaultIcon.js";
|
|
96
|
+
import { PrintDefaultTool as Ro } from "./components/icons/PrintDefaultIcon.js";
|
|
97
97
|
import { FullScreenTool as mn } from "./components/layout/toolbar/FullScreenTool.js";
|
|
98
98
|
import { GoToDownIcon as gn } from "./components/icons/GoToDownIcon.js";
|
|
99
|
-
import { SelectionModeTool as
|
|
100
|
-
import { ZoomTool as
|
|
99
|
+
import { SelectionModeTool as Lo } from "./components/layout/toolbar/SelectionModeTool.js";
|
|
100
|
+
import { ZoomTool as Eo } from "./components/layout/toolbar/ZoomTool.js";
|
|
101
101
|
import { SearchIcon as vn } from "./components/icons/SearchIcon.js";
|
|
102
|
-
import { ClearIcon as
|
|
102
|
+
import { ClearIcon as No } from "./components/icons/ClearIcon.js";
|
|
103
103
|
import { InfoIcon as Ht } from "./components/icons/InfoIcon.js";
|
|
104
104
|
const wn = () => {
|
|
105
|
-
const { viewMode: t } = ze(), { scrollMode: e } = Ee(), { virtualScrollRef: n, virtualScrollableElementRef:
|
|
105
|
+
const { viewMode: t } = ze(), { scrollMode: e } = Ee(), { virtualScrollRef: n, virtualScrollableElementRef: o, pageScrollElementRef: r } = Je(), { setFocusedPage: i } = pe(), c = k(), { columnCount: l } = cn(), { widths: d, heights: f } = Ue(), m = k(e), P = k(t), u = k(l), { targetScrollPage: C } = ln();
|
|
106
106
|
M(() => {
|
|
107
107
|
n != null && n.scrollToItem && (c.current = n);
|
|
108
108
|
}, [n]), M(() => {
|
|
109
109
|
m.current = e, P.current = t;
|
|
110
110
|
}, [e, t]);
|
|
111
|
-
const
|
|
111
|
+
const T = E(
|
|
112
112
|
(g, S) => {
|
|
113
|
-
if (!
|
|
113
|
+
if (!r)
|
|
114
114
|
return;
|
|
115
115
|
const v = Math.ceil(g / 2) * 2 - 1;
|
|
116
116
|
if (g === v + 1) {
|
|
@@ -119,19 +119,19 @@ const wn = () => {
|
|
|
119
119
|
top: 0
|
|
120
120
|
};
|
|
121
121
|
return new Promise(
|
|
122
|
-
(s) => at(
|
|
122
|
+
(s) => at(r, p, s)
|
|
123
123
|
);
|
|
124
124
|
}
|
|
125
125
|
const h = {
|
|
126
126
|
left: 0,
|
|
127
127
|
top: 0
|
|
128
128
|
};
|
|
129
|
-
return
|
|
129
|
+
return r == null ? void 0 : r.scrollTo({
|
|
130
130
|
...h,
|
|
131
131
|
behavior: S
|
|
132
132
|
});
|
|
133
133
|
},
|
|
134
|
-
[
|
|
134
|
+
[r, d, at]
|
|
135
135
|
);
|
|
136
136
|
return M(() => {
|
|
137
137
|
m.current = e, P.current = t;
|
|
@@ -143,17 +143,17 @@ const wn = () => {
|
|
|
143
143
|
const v = g - 1;
|
|
144
144
|
let h = v, p = 0;
|
|
145
145
|
if (P.current === Re.DUAL_PAGE && m.current === ne.PAGE_SCROLLING) {
|
|
146
|
-
|
|
146
|
+
T(g, S);
|
|
147
147
|
return;
|
|
148
148
|
}
|
|
149
149
|
if (m.current === ne.PAGE_SCROLLING) {
|
|
150
150
|
i(g);
|
|
151
151
|
return;
|
|
152
152
|
}
|
|
153
|
-
if (!c.current || !
|
|
153
|
+
if (!c.current || !o)
|
|
154
154
|
return;
|
|
155
|
-
const s =
|
|
156
|
-
S === "smooth" && (
|
|
155
|
+
const s = o;
|
|
156
|
+
S === "smooth" && (C.current = g);
|
|
157
157
|
const { columnsWidth: w, rowsHeight: _ } = Tt(
|
|
158
158
|
{ widths: d, heights: f },
|
|
159
159
|
l
|
|
@@ -190,25 +190,25 @@ const wn = () => {
|
|
|
190
190
|
});
|
|
191
191
|
},
|
|
192
192
|
[
|
|
193
|
-
|
|
193
|
+
o,
|
|
194
194
|
l,
|
|
195
|
-
|
|
195
|
+
T,
|
|
196
196
|
i,
|
|
197
197
|
at,
|
|
198
198
|
f,
|
|
199
199
|
d
|
|
200
200
|
]
|
|
201
201
|
) };
|
|
202
|
-
},
|
|
203
|
-
const [e, n] = q(t), [
|
|
202
|
+
}, Oo = (t = 1) => {
|
|
203
|
+
const [e, n] = q(t), [o, r] = q(0), { scrollToPage: i } = wn(), c = k(1), { viewMode: l } = ze(), { scrollMode: d } = Ee(), { widths: f } = Ue(), { pagesRef: m } = be(), P = Ct(e, 100), u = E(
|
|
204
204
|
(h) => {
|
|
205
205
|
if (!/^[0-9]*$/g.test(h.toString()) || !h)
|
|
206
206
|
return { success: !1, currentPage: c.current };
|
|
207
207
|
const s = +h;
|
|
208
|
-
return s < 0 || s >
|
|
208
|
+
return s < 0 || s > o ? { success: !1, currentPage: c.current } : (n(s), c.current = s, { success: !0, currentPage: +h });
|
|
209
209
|
},
|
|
210
|
-
[
|
|
211
|
-
),
|
|
210
|
+
[o]
|
|
211
|
+
), C = E(u, [u]), T = E(
|
|
212
212
|
(h) => {
|
|
213
213
|
const p = u(h);
|
|
214
214
|
return p.success && i(p.currentPage), p;
|
|
@@ -220,23 +220,23 @@ const wn = () => {
|
|
|
220
220
|
return !1;
|
|
221
221
|
const s = p ? f[h] : f[h - 1], w = p ? f[h + 1] : f[h];
|
|
222
222
|
return l === Re.DUAL_PAGE && s + w < m.clientWidth;
|
|
223
|
-
}, [l, f, m,
|
|
223
|
+
}, [l, f, m, o]), g = E(() => {
|
|
224
224
|
let h = e - 1;
|
|
225
|
-
b(h) && (h = e - 2),
|
|
226
|
-
}, [
|
|
225
|
+
b(h) && (h = e - 2), T(h);
|
|
226
|
+
}, [T, e, l, d, b]), S = W(() => l === Re.DUAL_PAGE && d === ne.PAGE_SCROLLING ? e === o - 1 : e === o, [e, o, l, d]), v = E(() => {
|
|
227
227
|
if (S)
|
|
228
228
|
return;
|
|
229
229
|
let h = e + 1;
|
|
230
|
-
b(h) && (h = e + 2),
|
|
231
|
-
}, [
|
|
230
|
+
b(h) && (h = e + 2), T(h);
|
|
231
|
+
}, [T, e, b, l, d, S]);
|
|
232
232
|
return {
|
|
233
233
|
focusedPage: P,
|
|
234
|
-
totalPages:
|
|
235
|
-
setFocusedPage:
|
|
236
|
-
setTotalPages:
|
|
234
|
+
totalPages: o,
|
|
235
|
+
setFocusedPage: C,
|
|
236
|
+
setTotalPages: r,
|
|
237
237
|
nextPage: v,
|
|
238
238
|
prevPage: g,
|
|
239
|
-
goToPage:
|
|
239
|
+
goToPage: T
|
|
240
240
|
};
|
|
241
241
|
}, _n = qe({
|
|
242
242
|
focusedPage: 0,
|
|
@@ -252,19 +252,19 @@ const wn = () => {
|
|
|
252
252
|
}
|
|
253
253
|
}), pe = () => {
|
|
254
254
|
const t = Ge(_n);
|
|
255
|
-
return typeof (t == null ? void 0 : t.focusedPage) > "u" &&
|
|
255
|
+
return typeof (t == null ? void 0 : t.focusedPage) > "u" && co.error("Please use this hooks inside children component of RPProvider"), t;
|
|
256
256
|
}, Ys = ({ children: t }) => {
|
|
257
|
-
const { pdf: e } =
|
|
257
|
+
const { pdf: e } = re(), { setCurrentPage: n } = yr(), { focusedPage: o, totalPages: r, setFocusedPage: i, setTotalPages: c, goToPage: l, nextPage: d, prevPage: f } = Oo();
|
|
258
258
|
return M(() => {
|
|
259
259
|
e != null && e.numPages && (c(e.numPages), i(1));
|
|
260
260
|
}, [e, c, i]), M(() => {
|
|
261
|
-
n(
|
|
262
|
-
}, [
|
|
261
|
+
n(o);
|
|
262
|
+
}, [o, n]), /* @__PURE__ */ a(
|
|
263
263
|
_n.Provider,
|
|
264
264
|
{
|
|
265
265
|
value: {
|
|
266
|
-
focusedPage:
|
|
267
|
-
totalPages:
|
|
266
|
+
focusedPage: o,
|
|
267
|
+
totalPages: r,
|
|
268
268
|
setFocusedPage: i,
|
|
269
269
|
setTotalPages: c,
|
|
270
270
|
nextPage: d,
|
|
@@ -274,12 +274,12 @@ const wn = () => {
|
|
|
274
274
|
children: t
|
|
275
275
|
}
|
|
276
276
|
);
|
|
277
|
-
},
|
|
278
|
-
const { pdf: t, pages: e } =
|
|
277
|
+
}, Do = () => {
|
|
278
|
+
const { pdf: t, pages: e } = re(), [n, o] = q({
|
|
279
279
|
loadedPages: 0,
|
|
280
280
|
totalPages: 0,
|
|
281
281
|
percentage: 0
|
|
282
|
-
}), [
|
|
282
|
+
}), [r, i] = q(!1), [c, l] = q(!1), [d, f] = q(null), m = k(!1);
|
|
283
283
|
M(() => {
|
|
284
284
|
m.current;
|
|
285
285
|
}, [m]);
|
|
@@ -288,14 +288,14 @@ const wn = () => {
|
|
|
288
288
|
const h = document.querySelector(".rp-print-zone");
|
|
289
289
|
h && h.remove();
|
|
290
290
|
}, []), u = E(() => {
|
|
291
|
-
m.current = !1, i(!1), l(!1), f(null),
|
|
291
|
+
m.current = !1, i(!1), l(!1), f(null), o({
|
|
292
292
|
loadedPages: 0,
|
|
293
293
|
totalPages: 0,
|
|
294
294
|
percentage: 0
|
|
295
295
|
});
|
|
296
|
-
}, []),
|
|
296
|
+
}, []), C = () => {
|
|
297
297
|
m.current = !0;
|
|
298
|
-
},
|
|
298
|
+
}, T = async ({
|
|
299
299
|
scratchCanvas: h,
|
|
300
300
|
pdfDocument: p,
|
|
301
301
|
pageNumber: s,
|
|
@@ -308,7 +308,7 @@ const wn = () => {
|
|
|
308
308
|
u();
|
|
309
309
|
return;
|
|
310
310
|
}
|
|
311
|
-
const I = _ /
|
|
311
|
+
const I = _ / $r.PDF;
|
|
312
312
|
h.width = Math.floor(w.width * I), h.height = Math.floor(w.height * I);
|
|
313
313
|
const R = h.getContext("2d");
|
|
314
314
|
R.save(), R.fillStyle = "rgb(255, 255, 255)", R.fillRect(0, 0, h.width, h.height), R.restore();
|
|
@@ -326,14 +326,14 @@ const wn = () => {
|
|
|
326
326
|
transform: [I, 0, 0, I, 0, 0],
|
|
327
327
|
viewport: L.getViewport({ scale: 1, rotation: w.rotation }),
|
|
328
328
|
intent: "print",
|
|
329
|
-
annotationMode:
|
|
329
|
+
annotationMode: qr.ENABLE_STORAGE,
|
|
330
330
|
optionalContentConfigPromise: y,
|
|
331
331
|
printAnnotationStorage: N
|
|
332
332
|
};
|
|
333
333
|
try {
|
|
334
334
|
return L.render(F).promise;
|
|
335
335
|
} catch (z) {
|
|
336
|
-
throw z instanceof
|
|
336
|
+
throw z instanceof Gr || console.error(z), z;
|
|
337
337
|
}
|
|
338
338
|
}, b = E(() => {
|
|
339
339
|
const h = window.print;
|
|
@@ -387,7 +387,7 @@ const wn = () => {
|
|
|
387
387
|
return;
|
|
388
388
|
}
|
|
389
389
|
const L = R.page.getViewport({ scale: 1 });
|
|
390
|
-
if (await
|
|
390
|
+
if (await T({
|
|
391
391
|
scratchCanvas: h,
|
|
392
392
|
pdfDocument: t,
|
|
393
393
|
pageNumber: I,
|
|
@@ -402,7 +402,7 @@ const wn = () => {
|
|
|
402
402
|
const N = await g(h);
|
|
403
403
|
p.push(N);
|
|
404
404
|
const F = parseFloat((p.length / y * 100).toFixed(2));
|
|
405
|
-
|
|
405
|
+
o({
|
|
406
406
|
loadedPages: I,
|
|
407
407
|
totalPages: y,
|
|
408
408
|
percentage: F
|
|
@@ -429,9 +429,9 @@ const wn = () => {
|
|
|
429
429
|
};
|
|
430
430
|
}, [P, u]), {
|
|
431
431
|
print: v,
|
|
432
|
-
cancel:
|
|
432
|
+
cancel: C,
|
|
433
433
|
progress: n,
|
|
434
|
-
isComplete:
|
|
434
|
+
isComplete: r,
|
|
435
435
|
isError: c,
|
|
436
436
|
error: d
|
|
437
437
|
};
|
|
@@ -453,31 +453,31 @@ const wn = () => {
|
|
|
453
453
|
}
|
|
454
454
|
}
|
|
455
455
|
}), Js = ({ children: t }) => {
|
|
456
|
-
const [e, n] = q(null), [
|
|
457
|
-
g && typeof g == "function" &&
|
|
456
|
+
const [e, n] = q(null), [o, r] = q(null), { print: i, cancel: c, progress: l, isComplete: d, isError: f, error: m } = Do(), P = E((g) => {
|
|
457
|
+
g && typeof g == "function" && r(() => g);
|
|
458
458
|
}, []), u = (g) => {
|
|
459
459
|
m && g(m);
|
|
460
|
-
},
|
|
460
|
+
}, C = E(
|
|
461
461
|
(g) => {
|
|
462
462
|
n(() => g);
|
|
463
463
|
},
|
|
464
464
|
[l, e]
|
|
465
465
|
);
|
|
466
466
|
M(() => {
|
|
467
|
-
d &&
|
|
468
|
-
}, [d,
|
|
467
|
+
d && o && T();
|
|
468
|
+
}, [d, o]), M(() => {
|
|
469
469
|
f && u((g) => {
|
|
470
470
|
console.error(g);
|
|
471
471
|
});
|
|
472
472
|
}, [f]), M(() => {
|
|
473
473
|
l && e && e(l);
|
|
474
474
|
}, [l, e]);
|
|
475
|
-
const
|
|
476
|
-
|
|
475
|
+
const T = () => {
|
|
476
|
+
o && (o(), r(null));
|
|
477
477
|
}, b = {
|
|
478
478
|
print: i,
|
|
479
479
|
cancel: c,
|
|
480
|
-
setOnProgress:
|
|
480
|
+
setOnProgress: C,
|
|
481
481
|
setOnComplete: P,
|
|
482
482
|
setOnError: u,
|
|
483
483
|
progress: l
|
|
@@ -488,13 +488,13 @@ const wn = () => {
|
|
|
488
488
|
if (!t)
|
|
489
489
|
throw new Error("usePrintContext must be used within a PrintProvider");
|
|
490
490
|
return t;
|
|
491
|
-
},
|
|
492
|
-
const [t, e] = q({}), { pages: n } =
|
|
491
|
+
}, Ao = () => {
|
|
492
|
+
const [t, e] = q({}), { pages: n } = re(), o = W(() => Object.keys(t).length, [t]), r = E(
|
|
493
493
|
(c) => {
|
|
494
494
|
if (!n.size)
|
|
495
495
|
return;
|
|
496
496
|
const l = c > n.size ? n.size : c, f = Array.from(n.values()).slice(0, l).map((m) => {
|
|
497
|
-
const { thumbnailViewport: P, scale: u } =
|
|
497
|
+
const { thumbnailViewport: P, scale: u } = so(m.page, m.defaultRotation);
|
|
498
498
|
return {
|
|
499
499
|
scale: u,
|
|
500
500
|
page: m.page,
|
|
@@ -508,8 +508,8 @@ const wn = () => {
|
|
|
508
508
|
[n]
|
|
509
509
|
);
|
|
510
510
|
M(() => {
|
|
511
|
-
|
|
512
|
-
}, [
|
|
511
|
+
r(10);
|
|
512
|
+
}, [r]);
|
|
513
513
|
const i = E(
|
|
514
514
|
(c) => {
|
|
515
515
|
if (!n)
|
|
@@ -528,7 +528,7 @@ const wn = () => {
|
|
|
528
528
|
},
|
|
529
529
|
[n]
|
|
530
530
|
);
|
|
531
|
-
return { thumbnailPages: t, addPage: i, addToPage:
|
|
531
|
+
return { thumbnailPages: t, addPage: i, addToPage: r, thumbnailLength: o };
|
|
532
532
|
}, Tn = qe({
|
|
533
533
|
thumbnailPages: {},
|
|
534
534
|
addPage: (t) => {
|
|
@@ -543,16 +543,16 @@ const wn = () => {
|
|
|
543
543
|
children: t,
|
|
544
544
|
initialThumbnailsVisible: e
|
|
545
545
|
}) => {
|
|
546
|
-
const { thumbnailPages: n, addPage:
|
|
546
|
+
const { thumbnailPages: n, addPage: o, addToPage: r, thumbnailLength: i } = Ao(), [c, l] = q(e);
|
|
547
547
|
return /* @__PURE__ */ a(
|
|
548
548
|
Tn.Provider,
|
|
549
549
|
{
|
|
550
|
-
value: { thumbnailPages: n, addPage:
|
|
550
|
+
value: { thumbnailPages: n, addPage: o, addToPage: r, thumbnailLength: i, active: c, setActive: l },
|
|
551
551
|
children: t
|
|
552
552
|
}
|
|
553
553
|
);
|
|
554
|
-
},
|
|
555
|
-
const [n,
|
|
554
|
+
}, Mo = (t = {}, e = "") => {
|
|
555
|
+
const [n, o] = q(e), [r, i] = q(!1), { pdf: c, pages: l } = re(), { widths: d, heights: f } = Ue(), m = k(!n), { currentZoom: P } = _t(), [u, C] = q([]), { setFocusedPage: T } = pe(), { columnCount: b } = ze(), { pageRotate: g } = et(), [S, v] = q(0), { pageScrollElementRef: h, virtualScrollableElementRef: p } = Je(), { scrollMode: s } = Ee(), { pagesRef: w } = be(), [_, y] = q(null), x = k({}), I = k(0), R = W(() => S === 0 ? null : u[S - 1], [S, u]), L = W(() => u.length, [u]), N = E(
|
|
556
556
|
(O) => {
|
|
557
557
|
if (O === 0)
|
|
558
558
|
return;
|
|
@@ -563,7 +563,7 @@ const wn = () => {
|
|
|
563
563
|
if (!H || !w)
|
|
564
564
|
return;
|
|
565
565
|
const U = l.get(A.page);
|
|
566
|
-
if (s === ne.PAGE_SCROLLING &&
|
|
566
|
+
if (s === ne.PAGE_SCROLLING && T(A.page), !U)
|
|
567
567
|
return;
|
|
568
568
|
let B = 0, V = 0;
|
|
569
569
|
if (s === ne.VERTICAL_SCROLLING) {
|
|
@@ -574,15 +574,15 @@ const wn = () => {
|
|
|
574
574
|
const J = {
|
|
575
575
|
height: f[A.page - 1],
|
|
576
576
|
width: d[A.page - 1]
|
|
577
|
-
}, G = g[A.page], { leftInPage: K, topInPage: Y } =
|
|
577
|
+
}, G = g[A.page], { leftInPage: K, topInPage: Y } = ao(
|
|
578
578
|
J,
|
|
579
579
|
w,
|
|
580
580
|
A.rect,
|
|
581
581
|
P,
|
|
582
582
|
G
|
|
583
|
-
), ee = V + K,
|
|
583
|
+
), ee = V + K, oe = B + Y, ie = {
|
|
584
584
|
left: Math.max(ee, 0),
|
|
585
|
-
top: Math.max(
|
|
585
|
+
top: Math.max(oe, 0)
|
|
586
586
|
};
|
|
587
587
|
H.scrollTo({
|
|
588
588
|
...ie,
|
|
@@ -591,7 +591,7 @@ const wn = () => {
|
|
|
591
591
|
},
|
|
592
592
|
[
|
|
593
593
|
l,
|
|
594
|
-
|
|
594
|
+
T,
|
|
595
595
|
d,
|
|
596
596
|
f,
|
|
597
597
|
s,
|
|
@@ -628,13 +628,13 @@ const wn = () => {
|
|
|
628
628
|
}, []);
|
|
629
629
|
return M(() => {
|
|
630
630
|
if (!n) {
|
|
631
|
-
m.current = !0,
|
|
631
|
+
m.current = !0, C([]), v(0);
|
|
632
632
|
return;
|
|
633
633
|
}
|
|
634
|
-
m.current = !1, i(!0),
|
|
634
|
+
m.current = !1, i(!0), C([]), v(0), D(c).then((O) => {
|
|
635
635
|
x.current = O;
|
|
636
636
|
const H = Object.keys(O).reduce((U, B) => {
|
|
637
|
-
const V =
|
|
637
|
+
const V = gr(
|
|
638
638
|
[n],
|
|
639
639
|
O[B],
|
|
640
640
|
Number(B) - 1,
|
|
@@ -642,14 +642,14 @@ const wn = () => {
|
|
|
642
642
|
).map((J, G) => ({ ...J, page: Number(B), pageMatchIdx: G }));
|
|
643
643
|
return [...U, ...V];
|
|
644
644
|
}, []);
|
|
645
|
-
|
|
645
|
+
C(H), v(H.length ? 1 : 0);
|
|
646
646
|
}).catch(() => {
|
|
647
|
-
|
|
647
|
+
C([]), v(0);
|
|
648
648
|
}).finally(() => i(!1));
|
|
649
649
|
}, [n, D, c, t]), {
|
|
650
650
|
search: n,
|
|
651
|
-
setSearch:
|
|
652
|
-
loading:
|
|
651
|
+
setSearch: o,
|
|
652
|
+
loading: r,
|
|
653
653
|
matches: u,
|
|
654
654
|
totalMatches: L,
|
|
655
655
|
currentMatchPosition: S,
|
|
@@ -681,8 +681,8 @@ const wn = () => {
|
|
|
681
681
|
children: t,
|
|
682
682
|
initialSearch: e
|
|
683
683
|
}) => {
|
|
684
|
-
const [n,
|
|
685
|
-
loading:
|
|
684
|
+
const [n, o] = q({}), {
|
|
685
|
+
loading: r,
|
|
686
686
|
setSearch: i,
|
|
687
687
|
totalMatches: c,
|
|
688
688
|
currentMatchPosition: l,
|
|
@@ -691,16 +691,16 @@ const wn = () => {
|
|
|
691
691
|
matches: m,
|
|
692
692
|
nextMatch: P,
|
|
693
693
|
prevMatch: u,
|
|
694
|
-
currentMatchElement:
|
|
695
|
-
setCurrentMatchElement:
|
|
696
|
-
} =
|
|
694
|
+
currentMatchElement: C,
|
|
695
|
+
setCurrentMatchElement: T
|
|
696
|
+
} = Mo(n, e);
|
|
697
697
|
return /* @__PURE__ */ a(
|
|
698
698
|
Pn.Provider,
|
|
699
699
|
{
|
|
700
700
|
value: {
|
|
701
701
|
searchOptions: n,
|
|
702
|
-
setSearchOptions:
|
|
703
|
-
loading:
|
|
702
|
+
setSearchOptions: o,
|
|
703
|
+
loading: r,
|
|
704
704
|
setSearch: i,
|
|
705
705
|
totalMatches: c,
|
|
706
706
|
currentMatchPosition: l,
|
|
@@ -709,16 +709,16 @@ const wn = () => {
|
|
|
709
709
|
prevMatch: u,
|
|
710
710
|
search: f,
|
|
711
711
|
matches: m,
|
|
712
|
-
currentMatchElement:
|
|
713
|
-
setCurrentMatchElement:
|
|
712
|
+
currentMatchElement: C,
|
|
713
|
+
setCurrentMatchElement: T
|
|
714
714
|
},
|
|
715
715
|
children: t
|
|
716
716
|
}
|
|
717
717
|
);
|
|
718
718
|
}, St = () => Ge(Pn), yn = qe(null), nc = ({ children: t }) => {
|
|
719
|
-
const e = k(!1), [n,
|
|
720
|
-
|
|
721
|
-
}, []), i = W(() => new
|
|
719
|
+
const e = k(!1), [n, o] = q([]), r = E((d) => {
|
|
720
|
+
o((f) => [...f, { id: d.page.pageNumber.toString(), data: d, priority: 0 }]);
|
|
721
|
+
}, []), i = W(() => new Cr(r), [r]), { focusedPage: c } = pe(), l = E((d) => (e.current = !0, Pr(
|
|
722
722
|
d.data.page,
|
|
723
723
|
d.data.canvasElem,
|
|
724
724
|
d.data.options
|
|
@@ -736,7 +736,7 @@ const wn = () => {
|
|
|
736
736
|
const f = i.dequeue();
|
|
737
737
|
f ? l(f).finally(() => {
|
|
738
738
|
d();
|
|
739
|
-
}) : (e.current = !1,
|
|
739
|
+
}) : (e.current = !1, o(i.peekAll()));
|
|
740
740
|
};
|
|
741
741
|
d();
|
|
742
742
|
}, [i, l, n]), /* @__PURE__ */ a(yn.Provider, { value: i, children: t });
|
|
@@ -760,17 +760,17 @@ const wn = () => {
|
|
|
760
760
|
"rp-page-wrapper": "_rp-page-wrapper_ii91u_1",
|
|
761
761
|
"rp-page": "_rp-page_ii91u_1",
|
|
762
762
|
"rp-loader-wrapper": "_rp-loader-wrapper_ii91u_15"
|
|
763
|
-
},
|
|
764
|
-
const { pageNumber: e, onLoaded: n, onLoading:
|
|
763
|
+
}, zo = (t) => {
|
|
764
|
+
const { pageNumber: e, onLoaded: n, onLoading: o } = t, r = k(null), { pages: i } = re(), { pageRotate: c } = et(), l = k(), { currentZoom: d } = _t(), f = Sn(), m = k(`page-${e}`);
|
|
765
765
|
return M(() => {
|
|
766
766
|
if (!i || d === 0)
|
|
767
767
|
return;
|
|
768
768
|
const P = i.get(e);
|
|
769
|
-
if (
|
|
770
|
-
const u =
|
|
769
|
+
if (r.current && P) {
|
|
770
|
+
const u = r.current;
|
|
771
771
|
u.hidden = !0;
|
|
772
|
-
const
|
|
773
|
-
|
|
772
|
+
const C = l.current;
|
|
773
|
+
C && C.cancel(), o && o(), f.enqueue(
|
|
774
774
|
m.current,
|
|
775
775
|
{
|
|
776
776
|
page: P.page,
|
|
@@ -788,31 +788,31 @@ const wn = () => {
|
|
|
788
788
|
return () => {
|
|
789
789
|
f.removeQueue(m.current);
|
|
790
790
|
};
|
|
791
|
-
}, [i, e, c, d,
|
|
792
|
-
},
|
|
791
|
+
}, [i, e, c, d, o, n, f]), /* @__PURE__ */ a("canvas", { "data-rp": `page-${e}-canvas`, ref: r });
|
|
792
|
+
}, Fo = "_selecting_ppr5g_10", ko = "_markedContent_ppr5g_33", ge = {
|
|
793
793
|
"rp-text-layer": "_rp-text-layer_ppr5g_1",
|
|
794
|
-
selecting:
|
|
795
|
-
markedContent:
|
|
794
|
+
selecting: Fo,
|
|
795
|
+
markedContent: ko,
|
|
796
796
|
"rp-text-layer-text": "_rp-text-layer-text_ppr5g_52"
|
|
797
|
-
},
|
|
798
|
-
const { pageNumber: e } = t, { pages: n } =
|
|
797
|
+
}, Wo = (t) => {
|
|
798
|
+
const { pageNumber: e } = t, { pages: n } = re(), o = k(null), { matches: r, currentMatch: i, setCurrentMatchElement: c } = St(), [l, d] = q(
|
|
799
799
|
[]
|
|
800
|
-
), f = k(), m = k(), P = k([]), u = W(() =>
|
|
800
|
+
), f = k(), m = k(), P = k([]), u = W(() => r.filter((h) => h.pageIndex === e - 1), [r, e]), C = E(
|
|
801
801
|
(h, p, s = !1) => {
|
|
802
|
-
if (s &&
|
|
802
|
+
if (s && vr(h, p), !u.length) {
|
|
803
803
|
P.current = [], d([]);
|
|
804
804
|
return;
|
|
805
805
|
}
|
|
806
|
-
const w =
|
|
806
|
+
const w = wr(u, h, p);
|
|
807
807
|
d(w);
|
|
808
808
|
},
|
|
809
809
|
[u]
|
|
810
|
-
),
|
|
810
|
+
), T = k(), b = k(!1), g = E(() => Array.from(document.querySelectorAll('[data-rp$="-textLayer"]')), []);
|
|
811
811
|
M(() => ((() => {
|
|
812
|
-
if (
|
|
812
|
+
if (T.current)
|
|
813
813
|
return;
|
|
814
|
-
|
|
815
|
-
const { signal: p } =
|
|
814
|
+
T.current = new AbortController();
|
|
815
|
+
const { signal: p } = T.current, s = () => {
|
|
816
816
|
g().forEach((_) => {
|
|
817
817
|
const y = _.querySelector(".endOfContent");
|
|
818
818
|
y && (_.appendChild(y), y.style.width = "", y.style.height = "", _.classList.remove(ge.selecting));
|
|
@@ -882,12 +882,12 @@ const wn = () => {
|
|
|
882
882
|
);
|
|
883
883
|
})(), () => {
|
|
884
884
|
var p;
|
|
885
|
-
(p =
|
|
885
|
+
(p = T.current) == null || p.abort(), T.current = void 0;
|
|
886
886
|
}), [g]);
|
|
887
887
|
const S = E(() => {
|
|
888
|
-
|
|
888
|
+
o.current && o.current.classList.add(ge.selecting);
|
|
889
889
|
}, []), v = E(() => {
|
|
890
|
-
|
|
890
|
+
o.current && o.current.classList.remove(ge.selecting);
|
|
891
891
|
}, []);
|
|
892
892
|
return M(() => {
|
|
893
893
|
if (P.current.forEach((s) => {
|
|
@@ -905,12 +905,12 @@ const wn = () => {
|
|
|
905
905
|
}));
|
|
906
906
|
}, [i, l, u]), M(() => {
|
|
907
907
|
const h = n.get(e);
|
|
908
|
-
if (!h || !
|
|
908
|
+
if (!h || !o.current)
|
|
909
909
|
return;
|
|
910
|
-
const p =
|
|
910
|
+
const p = o.current;
|
|
911
911
|
return f.current && f.current.cancel(), h.page.getTextContent().then((s) => {
|
|
912
912
|
const w = h.page.getViewport({ scale: 1 });
|
|
913
|
-
return f.current = new
|
|
913
|
+
return f.current = new Hr.TextLayer({
|
|
914
914
|
viewport: w,
|
|
915
915
|
textContentSource: s,
|
|
916
916
|
container: p
|
|
@@ -921,9 +921,9 @@ const wn = () => {
|
|
|
921
921
|
I.classList.add(ge["rp-text-layer-text"]), I.setAttribute("data-rp", "rp-text-layer-text");
|
|
922
922
|
});
|
|
923
923
|
const w = (y = f.current) == null ? void 0 : y.textDivs;
|
|
924
|
-
w && m.current &&
|
|
924
|
+
w && m.current && C(m.current, w);
|
|
925
925
|
const _ = document.createElement("div");
|
|
926
|
-
_.className = "endOfContent", (x =
|
|
926
|
+
_.className = "endOfContent", (x = o.current) == null || x.appendChild(_);
|
|
927
927
|
}).catch(() => {
|
|
928
928
|
}), () => {
|
|
929
929
|
var s;
|
|
@@ -931,48 +931,48 @@ const wn = () => {
|
|
|
931
931
|
};
|
|
932
932
|
}, [n, e]), M(() => {
|
|
933
933
|
var s;
|
|
934
|
-
[].slice.call(
|
|
934
|
+
[].slice.call(o.current.children).forEach((w) => {
|
|
935
935
|
w.classList.add(ge["rp-text-layer-text"]);
|
|
936
936
|
});
|
|
937
937
|
const p = (s = f.current) == null ? void 0 : s.textDivs;
|
|
938
|
-
p && m.current &&
|
|
939
|
-
}, [
|
|
938
|
+
p && m.current && C(m.current, p, !0);
|
|
939
|
+
}, [C]), /* @__PURE__ */ a(
|
|
940
940
|
"div",
|
|
941
941
|
{
|
|
942
942
|
"data-rp-text-layer": !0,
|
|
943
943
|
"data-rp": `page-${e}-textLayer`,
|
|
944
944
|
className: ge["rp-text-layer"],
|
|
945
|
-
ref:
|
|
945
|
+
ref: o,
|
|
946
946
|
onMouseDown: S,
|
|
947
947
|
onMouseUp: v
|
|
948
948
|
}
|
|
949
949
|
);
|
|
950
|
-
},
|
|
950
|
+
}, Ho = {
|
|
951
951
|
"rp-annotation-layer": "_rp-annotation-layer_1udza_1"
|
|
952
952
|
};
|
|
953
|
-
let $
|
|
954
|
-
const
|
|
955
|
-
const { pageNumber: e } = t, n = k(null), { pages:
|
|
953
|
+
let $o = "https://unpkg.com/pdfjs-dist@4.4.168/web/images/";
|
|
954
|
+
const qo = (t) => {
|
|
955
|
+
const { pageNumber: e } = t, n = k(null), { pages: o, pdf: r } = re(), i = k(), [c, l] = q(), { setFocusedPage: d, goToPage: f } = pe(), { scrollMode: m } = Ee(), { print: P } = nt(), { download: u } = Un(), C = W(() => o.get(e), [o, e]), T = W(() => C == null ? void 0 : C.page.getViewport(), [C]);
|
|
956
956
|
M(() => {
|
|
957
957
|
i.current && (i.current.div.replaceChildren(), i.current = void 0);
|
|
958
|
-
}, [
|
|
959
|
-
|
|
958
|
+
}, [r]), M(() => {
|
|
959
|
+
C && C.page.getAnnotations().then((g) => {
|
|
960
960
|
i.current = void 0, l(g), n.current && (n.current.innerText = "");
|
|
961
961
|
});
|
|
962
|
-
}, [
|
|
962
|
+
}, [C]);
|
|
963
963
|
const b = E(
|
|
964
964
|
(g) => {
|
|
965
|
-
!c || !
|
|
965
|
+
!c || !r || (Vr(g), Br(g, r, c).then((S) => {
|
|
966
966
|
var v, h;
|
|
967
967
|
((v = S == null ? void 0 : S.data) == null ? void 0 : v.action) === "Print" ? P() : ((h = S == null ? void 0 : S.data) == null ? void 0 : h.action) === "SaveAs" && u();
|
|
968
|
-
}), m === ne.PAGE_SCROLLING ? kt(g, c,
|
|
968
|
+
}), m === ne.PAGE_SCROLLING ? kt(g, c, r, (S) => d(S.pageIndex + 1)) : kt(g, c, r, (S) => f(S.pageIndex + 1)));
|
|
969
969
|
},
|
|
970
|
-
[
|
|
970
|
+
[r, c, f, d, m, P, u]
|
|
971
971
|
);
|
|
972
972
|
return M(() => {
|
|
973
|
-
if (!
|
|
973
|
+
if (!C || !c)
|
|
974
974
|
return;
|
|
975
|
-
const g =
|
|
975
|
+
const g = C.page.getViewport();
|
|
976
976
|
if (i.current) {
|
|
977
977
|
i.current.update({
|
|
978
978
|
viewport: g.clone({ dontFlip: !0 })
|
|
@@ -984,85 +984,85 @@ const qr = (t) => {
|
|
|
984
984
|
const { annotationType: s } = p;
|
|
985
985
|
switch (s) {
|
|
986
986
|
case Dt.Link:
|
|
987
|
-
|
|
987
|
+
Kr(p);
|
|
988
988
|
break;
|
|
989
989
|
case Dt.Widget:
|
|
990
|
-
|
|
990
|
+
jr(p, g, S);
|
|
991
991
|
break;
|
|
992
992
|
}
|
|
993
993
|
}
|
|
994
994
|
const v = new AbortController();
|
|
995
995
|
return (async () => {
|
|
996
996
|
var w;
|
|
997
|
-
i.current && (i.current.div.replaceChildren(), i.current = void 0), n.current && (n.current.innerText = ""), i.current = new
|
|
997
|
+
i.current && (i.current.div.replaceChildren(), i.current = void 0), n.current && (n.current.innerText = ""), i.current = new Ur({
|
|
998
998
|
div: n.current,
|
|
999
999
|
accessibilityManager: void 0,
|
|
1000
1000
|
annotationCanvasMap: void 0,
|
|
1001
1001
|
annotationEditorUIManager: void 0,
|
|
1002
1002
|
structTreeLayer: null,
|
|
1003
|
-
page:
|
|
1003
|
+
page: C.page,
|
|
1004
1004
|
viewport: g.clone({ dontFlip: !0 }),
|
|
1005
1005
|
commentManager: void 0,
|
|
1006
1006
|
linkService: new Ft(),
|
|
1007
|
-
annotationStorage:
|
|
1007
|
+
annotationStorage: r == null ? void 0 : r.annotationStorage
|
|
1008
1008
|
}), n.current && Wt(n.current, b);
|
|
1009
|
-
const p = await (
|
|
1009
|
+
const p = await (r == null ? void 0 : r.hasJSActions()), s = await (r == null ? void 0 : r.getFieldObjects());
|
|
1010
1010
|
if (v.signal.aborted)
|
|
1011
1011
|
throw "abort";
|
|
1012
1012
|
return (w = i.current) == null ? void 0 : w.render({
|
|
1013
1013
|
annotations: c,
|
|
1014
|
-
annotationStorage:
|
|
1014
|
+
annotationStorage: r == null ? void 0 : r.annotationStorage,
|
|
1015
1015
|
hasJSActions: p,
|
|
1016
1016
|
fieldObjects: s,
|
|
1017
1017
|
div: n.current,
|
|
1018
1018
|
viewport: g.clone({ dontFlip: !0 }),
|
|
1019
|
-
page:
|
|
1020
|
-
imageResourcesPath: $
|
|
1019
|
+
page: C.page,
|
|
1020
|
+
imageResourcesPath: $o,
|
|
1021
1021
|
renderForms: !0,
|
|
1022
1022
|
linkService: new Ft(),
|
|
1023
1023
|
downloadManager: null,
|
|
1024
1024
|
enableScripting: !1
|
|
1025
1025
|
});
|
|
1026
1026
|
})().then(() => {
|
|
1027
|
-
n.current &&
|
|
1027
|
+
n.current && Zr(n.current, b);
|
|
1028
1028
|
}).catch((p) => {
|
|
1029
1029
|
if (p !== "abort")
|
|
1030
1030
|
throw p;
|
|
1031
1031
|
}), () => {
|
|
1032
1032
|
v.abort("clear"), n.current && Wt(n.current, b);
|
|
1033
1033
|
};
|
|
1034
|
-
}, [
|
|
1034
|
+
}, [r, c, b]), /* @__PURE__ */ a(
|
|
1035
1035
|
"div",
|
|
1036
1036
|
{
|
|
1037
1037
|
"data-rp": `page-${e}-annotationLayer`,
|
|
1038
|
-
style: { width: `${
|
|
1039
|
-
className:
|
|
1038
|
+
style: { width: `${T == null ? void 0 : T.width}px`, height: `${T == null ? void 0 : T.height}px` },
|
|
1039
|
+
className: Ho["rp-annotation-layer"],
|
|
1040
1040
|
ref: n
|
|
1041
1041
|
}
|
|
1042
1042
|
);
|
|
1043
|
-
},
|
|
1043
|
+
}, Go = {
|
|
1044
1044
|
"rp-text-highlight": "_rp-text-highlight_jdkf8_1"
|
|
1045
|
-
},
|
|
1046
|
-
const [n,
|
|
1045
|
+
}, Uo = ({ pageNumber: t, viewport: e }) => {
|
|
1046
|
+
const [n, o] = q(), { pages: r } = re(), { highlightKeywords: i } = br(), c = !0, l = k(null), [d, f] = q(null), [m, P] = q([]);
|
|
1047
1047
|
M(() => {
|
|
1048
1048
|
l.current && f(l.current.parentElement);
|
|
1049
1049
|
}, [l]), M(() => {
|
|
1050
1050
|
(async () => {
|
|
1051
|
-
const h =
|
|
1051
|
+
const h = r.get(t);
|
|
1052
1052
|
if (!h || !l.current)
|
|
1053
1053
|
return;
|
|
1054
1054
|
const p = await h.page.getTextContent();
|
|
1055
|
-
|
|
1055
|
+
o(p);
|
|
1056
1056
|
})();
|
|
1057
|
-
}, [
|
|
1057
|
+
}, [r, t]);
|
|
1058
1058
|
const u = W(() => i ? i.map((v) => {
|
|
1059
1059
|
var h, p;
|
|
1060
1060
|
return {
|
|
1061
|
-
...
|
|
1061
|
+
...Xr(v.keyword, (h = v.options) == null ? void 0 : h.matchCase, (p = v.options) == null ? void 0 : p.wholeWords),
|
|
1062
1062
|
color: v.highlightColor
|
|
1063
1063
|
};
|
|
1064
1064
|
}) : [], [i]);
|
|
1065
|
-
function
|
|
1065
|
+
function C(v, h) {
|
|
1066
1066
|
if (!v)
|
|
1067
1067
|
return;
|
|
1068
1068
|
const p = `[data-rp="page-${h}-textLayer"]`;
|
|
@@ -1078,7 +1078,7 @@ const qr = (t) => {
|
|
|
1078
1078
|
}).observe(v, { childList: !0, subtree: !0 });
|
|
1079
1079
|
});
|
|
1080
1080
|
}
|
|
1081
|
-
function
|
|
1081
|
+
function T(v) {
|
|
1082
1082
|
return new Promise((h) => {
|
|
1083
1083
|
const p = v.querySelectorAll(
|
|
1084
1084
|
'[data-rp="rp-text-layer-text"]'
|
|
@@ -1107,7 +1107,7 @@ const qr = (t) => {
|
|
|
1107
1107
|
const R = document.createElement("span");
|
|
1108
1108
|
R.style.width = "auto", w.surroundContents(R);
|
|
1109
1109
|
const L = R.getBoundingClientRect(), N = v.getBoundingClientRect(), F = N.height, z = N.width, D = 100 * (L.left - N.left) / z, O = 100 * (L.top - N.top) / F, A = 100 * L.height / F, H = 100 * L.width / z;
|
|
1110
|
-
return
|
|
1110
|
+
return Yr(R), {
|
|
1111
1111
|
keywordStr: h,
|
|
1112
1112
|
left: D,
|
|
1113
1113
|
top: O,
|
|
@@ -1118,10 +1118,10 @@ const qr = (t) => {
|
|
|
1118
1118
|
};
|
|
1119
1119
|
};
|
|
1120
1120
|
async function g(v, h) {
|
|
1121
|
-
const p = await
|
|
1121
|
+
const p = await C(d, v);
|
|
1122
1122
|
if (!p)
|
|
1123
1123
|
return;
|
|
1124
|
-
const s = await
|
|
1124
|
+
const s = await T(p);
|
|
1125
1125
|
if (s.length) {
|
|
1126
1126
|
const w = s.map((y) => y.tagName === "BR" ? " " : y.textContent).reduce(
|
|
1127
1127
|
(y, x, I) => y.concat(
|
|
@@ -1155,7 +1155,7 @@ const qr = (t) => {
|
|
|
1155
1155
|
let D;
|
|
1156
1156
|
const O = [];
|
|
1157
1157
|
for (; (D = z.exec(y)) !== null; )
|
|
1158
|
-
L && !
|
|
1158
|
+
L && !_r(y, D.index, D[0].length) || O.push({
|
|
1159
1159
|
keyword: z,
|
|
1160
1160
|
startIndex: D.index,
|
|
1161
1161
|
endIndex: z.lastIndex
|
|
@@ -1180,13 +1180,13 @@ const qr = (t) => {
|
|
|
1180
1180
|
);
|
|
1181
1181
|
if (G) {
|
|
1182
1182
|
const { left: K, top: Y } = G;
|
|
1183
|
-
if (_.find((
|
|
1183
|
+
if (_.find((oe) => oe.left === K && oe.top === Y))
|
|
1184
1184
|
continue;
|
|
1185
1185
|
_.push({ ...G, highlightColor: H.color });
|
|
1186
1186
|
}
|
|
1187
1187
|
}
|
|
1188
1188
|
}
|
|
1189
|
-
}), _.sort(
|
|
1189
|
+
}), _.sort(Qr), _;
|
|
1190
1190
|
};
|
|
1191
1191
|
return M(() => {
|
|
1192
1192
|
(async () => {
|
|
@@ -1203,7 +1203,7 @@ const qr = (t) => {
|
|
|
1203
1203
|
}, [c, i, t, n, e]), /* @__PURE__ */ a(fe, { children: /* @__PURE__ */ a("div", { ref: l, "data-rp": `page-${t}-textHighlightLayer`, children: m.map((v, h) => /* @__PURE__ */ a(
|
|
1204
1204
|
"div",
|
|
1205
1205
|
{
|
|
1206
|
-
className:
|
|
1206
|
+
className: Go["rp-text-highlight"],
|
|
1207
1207
|
style: {
|
|
1208
1208
|
top: `${v.top}%`,
|
|
1209
1209
|
left: `${v.left}%`,
|
|
@@ -1215,11 +1215,11 @@ const qr = (t) => {
|
|
|
1215
1215
|
h
|
|
1216
1216
|
)) }) });
|
|
1217
1217
|
}, It = tt((t, e) => {
|
|
1218
|
-
const { pageNumber: n, style:
|
|
1218
|
+
const { pageNumber: n, style: o, ...r } = t, { pages: i } = re(), { pageRotate: c } = et(), { textLayer: l } = pr(), { currentZoom: d } = _t(), { LoaderImageComponent: f } = bt(), m = k(i.get(n)), [P, u] = q(!1), C = k(null), [T, b] = q({
|
|
1219
1219
|
width: 0,
|
|
1220
1220
|
height: 0
|
|
1221
1221
|
});
|
|
1222
|
-
|
|
1222
|
+
on(e, () => C.current);
|
|
1223
1223
|
const g = W(() => m.current ? c[n] : 0, [n, c]);
|
|
1224
1224
|
M(() => {
|
|
1225
1225
|
if (i && (m.current = i.get(n), m.current)) {
|
|
@@ -1233,14 +1233,14 @@ const qr = (t) => {
|
|
|
1233
1233
|
const S = W(() => {
|
|
1234
1234
|
switch (g) {
|
|
1235
1235
|
case 90:
|
|
1236
|
-
return `${
|
|
1236
|
+
return `${T.width / 2}px ${T.width / 2}px`;
|
|
1237
1237
|
case -90:
|
|
1238
1238
|
case 270:
|
|
1239
|
-
return `${
|
|
1239
|
+
return `${T.height / 2}px ${T.height / 2}px`;
|
|
1240
1240
|
default:
|
|
1241
1241
|
return "center";
|
|
1242
1242
|
}
|
|
1243
|
-
}, [g,
|
|
1243
|
+
}, [g, T]), v = E(() => {
|
|
1244
1244
|
u(!0);
|
|
1245
1245
|
}, []), h = E(() => {
|
|
1246
1246
|
u(!1);
|
|
@@ -1248,32 +1248,34 @@ const qr = (t) => {
|
|
|
1248
1248
|
return /* @__PURE__ */ a(
|
|
1249
1249
|
"div",
|
|
1250
1250
|
{
|
|
1251
|
-
ref:
|
|
1251
|
+
ref: C,
|
|
1252
1252
|
id: `page-${n}`,
|
|
1253
1253
|
"data-rp": `page-${n}`,
|
|
1254
|
-
...
|
|
1254
|
+
...r,
|
|
1255
1255
|
style: {
|
|
1256
|
-
...
|
|
1256
|
+
...o,
|
|
1257
1257
|
"--rp-rotate": `${g}deg`,
|
|
1258
1258
|
"--rp-page-rotate-translate": `${S}`,
|
|
1259
|
-
"--
|
|
1259
|
+
"--user-unit": T.userUnit || 1,
|
|
1260
|
+
"--scale-factor": d,
|
|
1261
|
+
"--total-scale-factor": "calc(var(--scale-factor) * var(--user-unit))"
|
|
1260
1262
|
},
|
|
1261
1263
|
className: ct["rp-page-wrapper"],
|
|
1262
1264
|
children: /* @__PURE__ */ $(
|
|
1263
1265
|
"div",
|
|
1264
1266
|
{
|
|
1265
1267
|
style: {
|
|
1266
|
-
width: `${
|
|
1267
|
-
height: `${
|
|
1268
|
+
width: `${T.width}px`,
|
|
1269
|
+
height: `${T.height}px`
|
|
1268
1270
|
},
|
|
1269
1271
|
className: ct["rp-page"],
|
|
1270
1272
|
children: [
|
|
1271
|
-
/* @__PURE__ */ a(
|
|
1273
|
+
/* @__PURE__ */ a(zo, { onLoading: v, onLoaded: h, pageNumber: n }),
|
|
1272
1274
|
P && f && /* @__PURE__ */ a("div", { className: ct["rp-loader-wrapper"], children: /* @__PURE__ */ a(f, {}) }),
|
|
1273
|
-
/* @__PURE__ */ a(
|
|
1274
|
-
l && /* @__PURE__ */ a(
|
|
1275
|
-
/* @__PURE__ */ a(
|
|
1276
|
-
/* @__PURE__ */ a(
|
|
1275
|
+
/* @__PURE__ */ a(Jr, { pageNumber: n }),
|
|
1276
|
+
l && /* @__PURE__ */ a(Wo, { pageNumber: n }),
|
|
1277
|
+
/* @__PURE__ */ a(Uo, { pageNumber: n, viewport: T }),
|
|
1278
|
+
/* @__PURE__ */ a(qo, { pageNumber: n })
|
|
1277
1279
|
]
|
|
1278
1280
|
}
|
|
1279
1281
|
)
|
|
@@ -1284,8 +1286,8 @@ function mt() {
|
|
|
1284
1286
|
return mt = Object.assign ? Object.assign.bind() : function(t) {
|
|
1285
1287
|
for (var e = 1; e < arguments.length; e++) {
|
|
1286
1288
|
var n = arguments[e];
|
|
1287
|
-
for (var
|
|
1288
|
-
({}).hasOwnProperty.call(n,
|
|
1289
|
+
for (var o in n)
|
|
1290
|
+
({}).hasOwnProperty.call(n, o) && (t[o] = n[o]);
|
|
1289
1291
|
}
|
|
1290
1292
|
return t;
|
|
1291
1293
|
}, mt.apply(null, arguments);
|
|
@@ -1296,34 +1298,34 @@ function $t(t) {
|
|
|
1296
1298
|
return t;
|
|
1297
1299
|
}
|
|
1298
1300
|
function gt(t, e) {
|
|
1299
|
-
return gt = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(n,
|
|
1300
|
-
return n.__proto__ =
|
|
1301
|
+
return gt = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(n, o) {
|
|
1302
|
+
return n.__proto__ = o, n;
|
|
1301
1303
|
}, gt(t, e);
|
|
1302
1304
|
}
|
|
1303
|
-
function
|
|
1305
|
+
function Vo(t, e) {
|
|
1304
1306
|
t.prototype = Object.create(e.prototype), t.prototype.constructor = t, gt(t, e);
|
|
1305
1307
|
}
|
|
1306
1308
|
var qt = Number.isNaN || function(e) {
|
|
1307
1309
|
return typeof e == "number" && e !== e;
|
|
1308
1310
|
};
|
|
1309
|
-
function
|
|
1311
|
+
function Bo(t, e) {
|
|
1310
1312
|
return !!(t === e || qt(t) && qt(e));
|
|
1311
1313
|
}
|
|
1312
|
-
function
|
|
1314
|
+
function jo(t, e) {
|
|
1313
1315
|
if (t.length !== e.length)
|
|
1314
1316
|
return !1;
|
|
1315
1317
|
for (var n = 0; n < t.length; n++)
|
|
1316
|
-
if (!
|
|
1318
|
+
if (!Bo(t[n], e[n]))
|
|
1317
1319
|
return !1;
|
|
1318
1320
|
return !0;
|
|
1319
1321
|
}
|
|
1320
1322
|
function lt(t, e) {
|
|
1321
|
-
e === void 0 && (e =
|
|
1322
|
-
var n,
|
|
1323
|
+
e === void 0 && (e = jo);
|
|
1324
|
+
var n, o = [], r, i = !1;
|
|
1323
1325
|
function c() {
|
|
1324
1326
|
for (var l = [], d = 0; d < arguments.length; d++)
|
|
1325
1327
|
l[d] = arguments[d];
|
|
1326
|
-
return i && n === this && e(l,
|
|
1328
|
+
return i && n === this && e(l, o) || (r = t.apply(this, l), i = !0, n = this, o = l), r;
|
|
1327
1329
|
}
|
|
1328
1330
|
return c;
|
|
1329
1331
|
}
|
|
@@ -1331,15 +1333,15 @@ function Gt(t, e) {
|
|
|
1331
1333
|
if (t == null)
|
|
1332
1334
|
return {};
|
|
1333
1335
|
var n = {};
|
|
1334
|
-
for (var
|
|
1335
|
-
if ({}.hasOwnProperty.call(t,
|
|
1336
|
-
if (e.indexOf(
|
|
1336
|
+
for (var o in t)
|
|
1337
|
+
if ({}.hasOwnProperty.call(t, o)) {
|
|
1338
|
+
if (e.indexOf(o) !== -1)
|
|
1337
1339
|
continue;
|
|
1338
|
-
n[
|
|
1340
|
+
n[o] = t[o];
|
|
1339
1341
|
}
|
|
1340
1342
|
return n;
|
|
1341
1343
|
}
|
|
1342
|
-
var
|
|
1344
|
+
var Ko = typeof performance == "object" && typeof performance.now == "function", Ut = Ko ? function() {
|
|
1343
1345
|
return performance.now();
|
|
1344
1346
|
} : function() {
|
|
1345
1347
|
return Date.now();
|
|
@@ -1347,18 +1349,18 @@ var Kr = typeof performance == "object" && typeof performance.now == "function",
|
|
|
1347
1349
|
function Vt(t) {
|
|
1348
1350
|
cancelAnimationFrame(t.id);
|
|
1349
1351
|
}
|
|
1350
|
-
function
|
|
1352
|
+
function Zo(t, e) {
|
|
1351
1353
|
var n = Ut();
|
|
1352
|
-
function
|
|
1353
|
-
Ut() - n >= e ? t.call(null) :
|
|
1354
|
+
function o() {
|
|
1355
|
+
Ut() - n >= e ? t.call(null) : r.id = requestAnimationFrame(o);
|
|
1354
1356
|
}
|
|
1355
|
-
var
|
|
1356
|
-
id: requestAnimationFrame(
|
|
1357
|
+
var r = {
|
|
1358
|
+
id: requestAnimationFrame(o)
|
|
1357
1359
|
};
|
|
1358
|
-
return
|
|
1360
|
+
return r;
|
|
1359
1361
|
}
|
|
1360
1362
|
var dt = -1;
|
|
1361
|
-
function
|
|
1363
|
+
function Xo(t) {
|
|
1362
1364
|
if (t === void 0 && (t = !1), dt === -1 || t) {
|
|
1363
1365
|
var e = document.createElement("div"), n = e.style;
|
|
1364
1366
|
n.width = "50px", n.height = "50px", n.overflow = "scroll", document.body.appendChild(e), dt = e.offsetWidth - e.clientWidth, document.body.removeChild(e);
|
|
@@ -1370,25 +1372,25 @@ function Bt(t) {
|
|
|
1370
1372
|
if (t === void 0 && (t = !1), De === null || t) {
|
|
1371
1373
|
var e = document.createElement("div"), n = e.style;
|
|
1372
1374
|
n.width = "50px", n.height = "50px", n.overflow = "scroll", n.direction = "rtl";
|
|
1373
|
-
var
|
|
1374
|
-
return
|
|
1375
|
+
var o = document.createElement("div"), r = o.style;
|
|
1376
|
+
return r.width = "100px", r.height = "100px", e.appendChild(o), document.body.appendChild(e), e.scrollLeft > 0 ? De = "positive-descending" : (e.scrollLeft = 1, e.scrollLeft === 0 ? De = "negative" : De = "positive-ascending"), document.body.removeChild(e), De;
|
|
1375
1377
|
}
|
|
1376
1378
|
return De;
|
|
1377
1379
|
}
|
|
1378
|
-
var
|
|
1380
|
+
var Qo = 150, Yo = function(e) {
|
|
1379
1381
|
var n = e.columnIndex;
|
|
1380
1382
|
e.data;
|
|
1381
|
-
var
|
|
1382
|
-
return
|
|
1383
|
+
var o = e.rowIndex;
|
|
1384
|
+
return o + ":" + n;
|
|
1383
1385
|
}, je = null, Ke = null, Ze = null;
|
|
1384
1386
|
process.env.NODE_ENV !== "production" && typeof window < "u" && typeof window.WeakSet < "u" && (je = /* @__PURE__ */ new WeakSet(), Ke = /* @__PURE__ */ new WeakSet(), Ze = /* @__PURE__ */ new WeakSet());
|
|
1385
|
-
function
|
|
1386
|
-
var e, n = t.getColumnOffset,
|
|
1387
|
+
function Jo(t) {
|
|
1388
|
+
var e, n = t.getColumnOffset, o = t.getColumnStartIndexForOffset, r = t.getColumnStopIndexForStartIndex, i = t.getColumnWidth, c = t.getEstimatedTotalHeight, l = t.getEstimatedTotalWidth, d = t.getOffsetForColumnAndAlignment, f = t.getOffsetForRowAndAlignment, m = t.getRowHeight, P = t.getRowOffset, u = t.getRowStartIndexForOffset, C = t.getRowStopIndexForStartIndex, T = t.initInstanceProps, b = t.shouldResetStyleCacheOnItemSizeChange, g = t.validateProps;
|
|
1387
1389
|
return e = /* @__PURE__ */ function(S) {
|
|
1388
|
-
|
|
1390
|
+
Vo(v, S);
|
|
1389
1391
|
function v(p) {
|
|
1390
1392
|
var s;
|
|
1391
|
-
return s = S.call(this, p) || this, s._instanceProps =
|
|
1393
|
+
return s = S.call(this, p) || this, s._instanceProps = T(s.props, $t(s)), s._resetIsScrollingTimeoutId = null, s._outerRef = void 0, s.state = {
|
|
1392
1394
|
instance: $t(s),
|
|
1393
1395
|
isScrolling: !1,
|
|
1394
1396
|
horizontalScrollDirection: "forward",
|
|
@@ -1463,7 +1465,7 @@ function Jr(t) {
|
|
|
1463
1465
|
var _ = s.props.outerRef;
|
|
1464
1466
|
s._outerRef = w, typeof _ == "function" ? _(w) : _ != null && typeof _ == "object" && _.hasOwnProperty("current") && (_.current = w);
|
|
1465
1467
|
}, s._resetIsScrollingDebounced = function() {
|
|
1466
|
-
s._resetIsScrollingTimeoutId !== null && Vt(s._resetIsScrollingTimeoutId), s._resetIsScrollingTimeoutId =
|
|
1468
|
+
s._resetIsScrollingTimeoutId !== null && Vt(s._resetIsScrollingTimeoutId), s._resetIsScrollingTimeoutId = Zo(s._resetIsScrolling, Qo);
|
|
1467
1469
|
}, s._resetIsScrolling = function() {
|
|
1468
1470
|
s._resetIsScrollingTimeoutId = null, s.setState({
|
|
1469
1471
|
isScrolling: !1
|
|
@@ -1488,7 +1490,7 @@ function Jr(t) {
|
|
|
1488
1490
|
};
|
|
1489
1491
|
}, this._resetIsScrollingDebounced);
|
|
1490
1492
|
}, h.scrollToItem = function(s) {
|
|
1491
|
-
var w = s.align, _ = w === void 0 ? "auto" : w, y = s.columnIndex, x = s.rowIndex, I = this.props, R = I.columnCount, L = I.height, N = I.rowCount, F = I.width, z = this.state, D = z.scrollLeft, O = z.scrollTop, A =
|
|
1493
|
+
var w = s.align, _ = w === void 0 ? "auto" : w, y = s.columnIndex, x = s.rowIndex, I = this.props, R = I.columnCount, L = I.height, N = I.rowCount, F = I.width, z = this.state, D = z.scrollLeft, O = z.scrollTop, A = Xo();
|
|
1492
1494
|
y !== void 0 && (y = Math.max(0, Math.min(y, R - 1))), x !== void 0 && (x = Math.max(0, Math.min(x, N - 1)));
|
|
1493
1495
|
var H = c(this.props, this._instanceProps), U = l(this.props, this._instanceProps), B = U > F ? A : 0, V = H > L ? A : 0;
|
|
1494
1496
|
this.scrollTo({
|
|
@@ -1527,9 +1529,9 @@ function Jr(t) {
|
|
|
1527
1529
|
}, h.componentWillUnmount = function() {
|
|
1528
1530
|
this._resetIsScrollingTimeoutId !== null && Vt(this._resetIsScrollingTimeoutId);
|
|
1529
1531
|
}, h.render = function() {
|
|
1530
|
-
var s = this.props, w = s.children, _ = s.className, y = s.columnCount, x = s.direction, I = s.height, R = s.innerRef, L = s.innerElementType, N = s.innerTagName, F = s.itemData, z = s.itemKey, D = z === void 0 ?
|
|
1532
|
+
var s = this.props, w = s.children, _ = s.className, y = s.columnCount, x = s.direction, I = s.height, R = s.innerRef, L = s.innerElementType, N = s.innerTagName, F = s.itemData, z = s.itemKey, D = z === void 0 ? Yo : z, O = s.outerElementType, A = s.outerTagName, H = s.rowCount, U = s.style, B = s.useIsScrolling, V = s.width, J = this.state.isScrolling, G = this._getHorizontalRangeToRender(), K = G[0], Y = G[1], ee = this._getVerticalRangeToRender(), oe = ee[0], ie = ee[1], se = [];
|
|
1531
1533
|
if (y > 0 && H)
|
|
1532
|
-
for (var ce =
|
|
1534
|
+
for (var ce = oe; ce <= ie; ce++)
|
|
1533
1535
|
for (var ae = K; ae <= Y; ae++)
|
|
1534
1536
|
se.push(Be(w, {
|
|
1535
1537
|
columnIndex: ae,
|
|
@@ -1580,32 +1582,32 @@ function Jr(t) {
|
|
|
1580
1582
|
var s = this.props, w = s.columnCount, _ = s.overscanColumnCount, y = s.overscanColumnsCount, x = s.overscanCount, I = s.rowCount, R = this.state, L = R.horizontalScrollDirection, N = R.isScrolling, F = R.scrollLeft, z = _ || y || x || 1;
|
|
1581
1583
|
if (w === 0 || I === 0)
|
|
1582
1584
|
return [0, 0, 0, 0];
|
|
1583
|
-
var D =
|
|
1585
|
+
var D = o(this.props, F, this._instanceProps), O = r(this.props, D, F, this._instanceProps), A = !N || L === "backward" ? Math.max(1, z) : 1, H = !N || L === "forward" ? Math.max(1, z) : 1;
|
|
1584
1586
|
return [Math.max(0, D - A), Math.max(0, Math.min(w - 1, O + H)), D, O];
|
|
1585
1587
|
}, h._getVerticalRangeToRender = function() {
|
|
1586
1588
|
var s = this.props, w = s.columnCount, _ = s.overscanCount, y = s.overscanRowCount, x = s.overscanRowsCount, I = s.rowCount, R = this.state, L = R.isScrolling, N = R.verticalScrollDirection, F = R.scrollTop, z = y || x || _ || 1;
|
|
1587
1589
|
if (w === 0 || I === 0)
|
|
1588
1590
|
return [0, 0, 0, 0];
|
|
1589
|
-
var D = u(this.props, F, this._instanceProps), O =
|
|
1591
|
+
var D = u(this.props, F, this._instanceProps), O = C(this.props, D, F, this._instanceProps), A = !L || N === "backward" ? Math.max(1, z) : 1, H = !L || N === "forward" ? Math.max(1, z) : 1;
|
|
1590
1592
|
return [Math.max(0, D - A), Math.max(0, Math.min(I - 1, O + H)), D, O];
|
|
1591
1593
|
}, v;
|
|
1592
|
-
}(
|
|
1594
|
+
}(ir), e.defaultProps = {
|
|
1593
1595
|
direction: "ltr",
|
|
1594
1596
|
itemData: void 0,
|
|
1595
1597
|
useIsScrolling: !1
|
|
1596
1598
|
}, e;
|
|
1597
1599
|
}
|
|
1598
1600
|
var ei = function(e, n) {
|
|
1599
|
-
var
|
|
1601
|
+
var o = e.children, r = e.direction, i = e.height, c = e.innerTagName, l = e.outerTagName, d = e.overscanColumnsCount, f = e.overscanCount, m = e.overscanRowsCount, P = e.width, u = n.instance;
|
|
1600
1602
|
if (process.env.NODE_ENV !== "production") {
|
|
1601
|
-
if (typeof f == "number" && je && !je.has(u) && (je.add(u), console.warn("The overscanCount prop has been deprecated. Please use the overscanColumnCount and overscanRowCount props instead.")), (typeof d == "number" || typeof m == "number") && Ke && !Ke.has(u) && (Ke.add(u), console.warn("The overscanColumnsCount and overscanRowsCount props have been deprecated. Please use the overscanColumnCount and overscanRowCount props instead.")), (c != null || l != null) && Ze && !Ze.has(u) && (Ze.add(u), console.warn("The innerTagName and outerTagName props have been deprecated. Please use the innerElementType and outerElementType props instead.")),
|
|
1602
|
-
throw Error('An invalid "children" prop has been specified. Value should be a React component. ' + ('"' + (
|
|
1603
|
-
switch (
|
|
1603
|
+
if (typeof f == "number" && je && !je.has(u) && (je.add(u), console.warn("The overscanCount prop has been deprecated. Please use the overscanColumnCount and overscanRowCount props instead.")), (typeof d == "number" || typeof m == "number") && Ke && !Ke.has(u) && (Ke.add(u), console.warn("The overscanColumnsCount and overscanRowsCount props have been deprecated. Please use the overscanColumnCount and overscanRowCount props instead.")), (c != null || l != null) && Ze && !Ze.has(u) && (Ze.add(u), console.warn("The innerTagName and outerTagName props have been deprecated. Please use the innerElementType and outerElementType props instead.")), o == null)
|
|
1604
|
+
throw Error('An invalid "children" prop has been specified. Value should be a React component. ' + ('"' + (o === null ? "null" : typeof o) + '" was specified.'));
|
|
1605
|
+
switch (r) {
|
|
1604
1606
|
case "ltr":
|
|
1605
1607
|
case "rtl":
|
|
1606
1608
|
break;
|
|
1607
1609
|
default:
|
|
1608
|
-
throw Error('An invalid "direction" prop has been specified. Value should be either "ltr" or "rtl". ' + ('"' +
|
|
1610
|
+
throw Error('An invalid "direction" prop has been specified. Value should be either "ltr" or "rtl". ' + ('"' + r + '" was specified.'));
|
|
1609
1611
|
}
|
|
1610
1612
|
if (typeof P != "number")
|
|
1611
1613
|
throw Error('An invalid "width" prop has been specified. Grids must specify a number for width. ' + ('"' + (P === null ? "null" : typeof P) + '" was specified.'));
|
|
@@ -1613,59 +1615,59 @@ var ei = function(e, n) {
|
|
|
1613
1615
|
throw Error('An invalid "height" prop has been specified. Grids must specify a number for height. ' + ('"' + (i === null ? "null" : typeof i) + '" was specified.'));
|
|
1614
1616
|
}
|
|
1615
1617
|
}, jt = 50, In = function(e, n) {
|
|
1616
|
-
var
|
|
1617
|
-
if (c >=
|
|
1618
|
-
var d =
|
|
1618
|
+
var o = e.rowCount, r = n.rowMetadataMap, i = n.estimatedRowHeight, c = n.lastMeasuredRowIndex, l = 0;
|
|
1619
|
+
if (c >= o && (c = o - 1), c >= 0) {
|
|
1620
|
+
var d = r[c];
|
|
1619
1621
|
l = d.offset + d.size;
|
|
1620
1622
|
}
|
|
1621
|
-
var f =
|
|
1623
|
+
var f = o - c - 1, m = f * i;
|
|
1622
1624
|
return l + m;
|
|
1623
1625
|
}, xn = function(e, n) {
|
|
1624
|
-
var
|
|
1625
|
-
if (c >=
|
|
1626
|
-
var d =
|
|
1626
|
+
var o = e.columnCount, r = n.columnMetadataMap, i = n.estimatedColumnWidth, c = n.lastMeasuredColumnIndex, l = 0;
|
|
1627
|
+
if (c >= o && (c = o - 1), c >= 0) {
|
|
1628
|
+
var d = r[c];
|
|
1627
1629
|
l = d.offset + d.size;
|
|
1628
1630
|
}
|
|
1629
|
-
var f =
|
|
1631
|
+
var f = o - c - 1, m = f * i;
|
|
1630
1632
|
return l + m;
|
|
1631
|
-
}, ve = function(e, n,
|
|
1633
|
+
}, ve = function(e, n, o, r) {
|
|
1632
1634
|
var i, c, l;
|
|
1633
|
-
if (e === "column" ? (i =
|
|
1635
|
+
if (e === "column" ? (i = r.columnMetadataMap, c = n.columnWidth, l = r.lastMeasuredColumnIndex) : (i = r.rowMetadataMap, c = n.rowHeight, l = r.lastMeasuredRowIndex), o > l) {
|
|
1634
1636
|
var d = 0;
|
|
1635
1637
|
if (l >= 0) {
|
|
1636
1638
|
var f = i[l];
|
|
1637
1639
|
d = f.offset + f.size;
|
|
1638
1640
|
}
|
|
1639
|
-
for (var m = l + 1; m <=
|
|
1641
|
+
for (var m = l + 1; m <= o; m++) {
|
|
1640
1642
|
var P = c(m);
|
|
1641
1643
|
i[m] = {
|
|
1642
1644
|
offset: d,
|
|
1643
1645
|
size: P
|
|
1644
1646
|
}, d += P;
|
|
1645
1647
|
}
|
|
1646
|
-
e === "column" ?
|
|
1648
|
+
e === "column" ? r.lastMeasuredColumnIndex = o : r.lastMeasuredRowIndex = o;
|
|
1647
1649
|
}
|
|
1648
|
-
return i[
|
|
1649
|
-
}, Kt = function(e, n,
|
|
1650
|
+
return i[o];
|
|
1651
|
+
}, Kt = function(e, n, o, r) {
|
|
1650
1652
|
var i, c;
|
|
1651
|
-
e === "column" ? (i =
|
|
1653
|
+
e === "column" ? (i = o.columnMetadataMap, c = o.lastMeasuredColumnIndex) : (i = o.rowMetadataMap, c = o.lastMeasuredRowIndex);
|
|
1652
1654
|
var l = c > 0 ? i[c].offset : 0;
|
|
1653
|
-
return l >=
|
|
1654
|
-
}, Rn = function(e, n,
|
|
1655
|
-
for (; i <=
|
|
1656
|
-
var l = i + Math.floor((
|
|
1655
|
+
return l >= r ? Rn(e, n, o, c, 0, r) : ti(e, n, o, Math.max(0, c), r);
|
|
1656
|
+
}, Rn = function(e, n, o, r, i, c) {
|
|
1657
|
+
for (; i <= r; ) {
|
|
1658
|
+
var l = i + Math.floor((r - i) / 2), d = ve(e, n, l, o).offset;
|
|
1657
1659
|
if (d === c)
|
|
1658
1660
|
return l;
|
|
1659
|
-
d < c ? i = l + 1 : d > c && (
|
|
1661
|
+
d < c ? i = l + 1 : d > c && (r = l - 1);
|
|
1660
1662
|
}
|
|
1661
1663
|
return i > 0 ? i - 1 : 0;
|
|
1662
|
-
}, ti = function(e, n,
|
|
1663
|
-
for (var c = e === "column" ? n.columnCount : n.rowCount, l = 1;
|
|
1664
|
-
|
|
1665
|
-
return Rn(e, n,
|
|
1666
|
-
}, Zt = function(e, n,
|
|
1667
|
-
var d = e === "column" ? n.width : n.height, f = ve(e, n,
|
|
1668
|
-
switch (
|
|
1664
|
+
}, ti = function(e, n, o, r, i) {
|
|
1665
|
+
for (var c = e === "column" ? n.columnCount : n.rowCount, l = 1; r < c && ve(e, n, r, o).offset < i; )
|
|
1666
|
+
r += l, l *= 2;
|
|
1667
|
+
return Rn(e, n, o, Math.min(r, c - 1), Math.floor(r / 2), i);
|
|
1668
|
+
}, Zt = function(e, n, o, r, i, c, l) {
|
|
1669
|
+
var d = e === "column" ? n.width : n.height, f = ve(e, n, o, c), m = e === "column" ? xn(n, c) : In(n, c), P = Math.max(0, Math.min(m - d, f.offset)), u = Math.max(0, f.offset - d + l + f.size);
|
|
1670
|
+
switch (r === "smart" && (i >= u - d && i <= P + d ? r = "auto" : r = "center"), r) {
|
|
1669
1671
|
case "start":
|
|
1670
1672
|
return P;
|
|
1671
1673
|
case "end":
|
|
@@ -1676,47 +1678,47 @@ var ei = function(e, n) {
|
|
|
1676
1678
|
default:
|
|
1677
1679
|
return i >= u && i <= P ? i : u > P || i < u ? u : P;
|
|
1678
1680
|
}
|
|
1679
|
-
}, ni = /* @__PURE__ */
|
|
1680
|
-
getColumnOffset: function(e, n,
|
|
1681
|
-
return ve("column", e, n,
|
|
1681
|
+
}, ni = /* @__PURE__ */ Jo({
|
|
1682
|
+
getColumnOffset: function(e, n, o) {
|
|
1683
|
+
return ve("column", e, n, o).offset;
|
|
1682
1684
|
},
|
|
1683
|
-
getColumnStartIndexForOffset: function(e, n,
|
|
1684
|
-
return Kt("column", e,
|
|
1685
|
+
getColumnStartIndexForOffset: function(e, n, o) {
|
|
1686
|
+
return Kt("column", e, o, n);
|
|
1685
1687
|
},
|
|
1686
|
-
getColumnStopIndexForStartIndex: function(e, n,
|
|
1687
|
-
for (var i = e.columnCount, c = e.width, l = ve("column", e, n,
|
|
1688
|
-
m++, f += ve("column", e, m,
|
|
1688
|
+
getColumnStopIndexForStartIndex: function(e, n, o, r) {
|
|
1689
|
+
for (var i = e.columnCount, c = e.width, l = ve("column", e, n, r), d = o + c, f = l.offset + l.size, m = n; m < i - 1 && f < d; )
|
|
1690
|
+
m++, f += ve("column", e, m, r).size;
|
|
1689
1691
|
return m;
|
|
1690
1692
|
},
|
|
1691
|
-
getColumnWidth: function(e, n,
|
|
1692
|
-
return
|
|
1693
|
+
getColumnWidth: function(e, n, o) {
|
|
1694
|
+
return o.columnMetadataMap[n].size;
|
|
1693
1695
|
},
|
|
1694
1696
|
getEstimatedTotalHeight: In,
|
|
1695
1697
|
getEstimatedTotalWidth: xn,
|
|
1696
|
-
getOffsetForColumnAndAlignment: function(e, n,
|
|
1697
|
-
return Zt("column", e, n,
|
|
1698
|
+
getOffsetForColumnAndAlignment: function(e, n, o, r, i, c) {
|
|
1699
|
+
return Zt("column", e, n, o, r, i, c);
|
|
1698
1700
|
},
|
|
1699
|
-
getOffsetForRowAndAlignment: function(e, n,
|
|
1700
|
-
return Zt("row", e, n,
|
|
1701
|
+
getOffsetForRowAndAlignment: function(e, n, o, r, i, c) {
|
|
1702
|
+
return Zt("row", e, n, o, r, i, c);
|
|
1701
1703
|
},
|
|
1702
|
-
getRowOffset: function(e, n,
|
|
1703
|
-
return ve("row", e, n,
|
|
1704
|
+
getRowOffset: function(e, n, o) {
|
|
1705
|
+
return ve("row", e, n, o).offset;
|
|
1704
1706
|
},
|
|
1705
|
-
getRowHeight: function(e, n,
|
|
1706
|
-
return
|
|
1707
|
+
getRowHeight: function(e, n, o) {
|
|
1708
|
+
return o.rowMetadataMap[n].size;
|
|
1707
1709
|
},
|
|
1708
|
-
getRowStartIndexForOffset: function(e, n,
|
|
1709
|
-
return Kt("row", e,
|
|
1710
|
+
getRowStartIndexForOffset: function(e, n, o) {
|
|
1711
|
+
return Kt("row", e, o, n);
|
|
1710
1712
|
},
|
|
1711
|
-
getRowStopIndexForStartIndex: function(e, n,
|
|
1712
|
-
for (var i = e.rowCount, c = e.height, l = ve("row", e, n,
|
|
1713
|
-
m++, f += ve("row", e, m,
|
|
1713
|
+
getRowStopIndexForStartIndex: function(e, n, o, r) {
|
|
1714
|
+
for (var i = e.rowCount, c = e.height, l = ve("row", e, n, r), d = o + c, f = l.offset + l.size, m = n; m < i - 1 && f < d; )
|
|
1715
|
+
m++, f += ve("row", e, m, r).size;
|
|
1714
1716
|
return m;
|
|
1715
1717
|
},
|
|
1716
1718
|
initInstanceProps: function(e, n) {
|
|
1717
|
-
var
|
|
1719
|
+
var o = e, r = o.estimatedColumnWidth, i = o.estimatedRowHeight, c = {
|
|
1718
1720
|
columnMetadataMap: {},
|
|
1719
|
-
estimatedColumnWidth:
|
|
1721
|
+
estimatedColumnWidth: r || jt,
|
|
1720
1722
|
estimatedRowHeight: i || jt,
|
|
1721
1723
|
lastMeasuredColumnIndex: -1,
|
|
1722
1724
|
lastMeasuredRowIndex: -1,
|
|
@@ -1739,12 +1741,12 @@ var ei = function(e, n) {
|
|
|
1739
1741
|
},
|
|
1740
1742
|
shouldResetStyleCacheOnItemSizeChange: !1,
|
|
1741
1743
|
validateProps: function(e) {
|
|
1742
|
-
var n = e.columnWidth,
|
|
1744
|
+
var n = e.columnWidth, o = e.rowHeight;
|
|
1743
1745
|
if (process.env.NODE_ENV !== "production") {
|
|
1744
1746
|
if (typeof n != "function")
|
|
1745
1747
|
throw Error('An invalid "columnWidth" prop has been specified. Value should be a function. ' + ('"' + (n === null ? "null" : typeof n) + '" was specified.'));
|
|
1746
|
-
if (typeof
|
|
1747
|
-
throw Error('An invalid "rowHeight" prop has been specified. Value should be a function. ' + ('"' + (
|
|
1748
|
+
if (typeof o != "function")
|
|
1749
|
+
throw Error('An invalid "rowHeight" prop has been specified. Value should be a function. ' + ('"' + (o === null ? "null" : typeof o) + '" was specified.'));
|
|
1748
1750
|
}
|
|
1749
1751
|
}
|
|
1750
1752
|
});
|
|
@@ -1753,21 +1755,21 @@ function Xt(t, e) {
|
|
|
1753
1755
|
for (var n in t)
|
|
1754
1756
|
if (!(n in e))
|
|
1755
1757
|
return !0;
|
|
1756
|
-
for (var
|
|
1757
|
-
if (t[
|
|
1758
|
+
for (var o in e)
|
|
1759
|
+
if (t[o] !== e[o])
|
|
1758
1760
|
return !0;
|
|
1759
1761
|
return !1;
|
|
1760
1762
|
}
|
|
1761
|
-
var
|
|
1763
|
+
var ri = ["style"], oi = ["style"];
|
|
1762
1764
|
function ii(t, e) {
|
|
1763
|
-
var n = t.style,
|
|
1764
|
-
return !Xt(n,
|
|
1765
|
+
var n = t.style, o = Gt(t, ri), r = e.style, i = Gt(e, oi);
|
|
1766
|
+
return !Xt(n, r) && !Xt(o, i);
|
|
1765
1767
|
}
|
|
1766
1768
|
const ai = () => {
|
|
1767
|
-
const { viewMode: t } = ze(), { scrollMode: e } = Ee(), { setColumnCount: n } = cn(), { virtualScrollableElementRef:
|
|
1769
|
+
const { viewMode: t } = ze(), { scrollMode: e } = Ee(), { setColumnCount: n } = cn(), { virtualScrollableElementRef: o } = Je(), r = Ue(), i = W(() => r.heights.length, [r.heights]), c = W(() => e === ne.HORIZONTAL_SCROLLING ? i : t === Re.DUAL_PAGE ? 2 : 1, [t, e, e, i, o]), l = W(() => r.widths.reduce((g, S, v) => {
|
|
1768
1770
|
const h = v % c;
|
|
1769
1771
|
return (!g[h] || S > g[h]) && (g[h] = S), g;
|
|
1770
|
-
}, []), [
|
|
1772
|
+
}, []), [r.widths, c]), d = E(
|
|
1771
1773
|
(b) => {
|
|
1772
1774
|
const g = b % l.length;
|
|
1773
1775
|
return l[g] || 0;
|
|
@@ -1777,35 +1779,35 @@ const ai = () => {
|
|
|
1777
1779
|
(b) => {
|
|
1778
1780
|
const g = Array.from({ length: c }, (S, v) => {
|
|
1779
1781
|
const h = b * c + v;
|
|
1780
|
-
return
|
|
1782
|
+
return r.heights[h] || 0;
|
|
1781
1783
|
});
|
|
1782
1784
|
return Math.max(...g);
|
|
1783
1785
|
},
|
|
1784
|
-
[
|
|
1786
|
+
[r.heights, c]
|
|
1785
1787
|
);
|
|
1786
1788
|
M(() => {
|
|
1787
1789
|
n(c);
|
|
1788
1790
|
}, [c, n]);
|
|
1789
|
-
const m = W(() => e === ne.HORIZONTAL_SCROLLING || e === ne.PAGE_SCROLLING ? 1 : Math.round(i / c), [c, i, e]), P = W(() =>
|
|
1790
|
-
const { rowsHeight: b, columnsWidth: g } = Tt(
|
|
1791
|
+
const m = W(() => e === ne.HORIZONTAL_SCROLLING || e === ne.PAGE_SCROLLING ? 1 : Math.round(i / c), [c, i, e]), P = W(() => r.heights.reduce((b, g) => b + g, 0) / r.heights.length || 0, [r]), u = W(() => r.widths.reduce((b, g) => b + g, 0) / r.widths.length || 0, [r]), C = W(() => {
|
|
1792
|
+
const { rowsHeight: b, columnsWidth: g } = Tt(r, c);
|
|
1791
1793
|
return {
|
|
1792
1794
|
rowsHeight: b,
|
|
1793
1795
|
columnsWidth: g
|
|
1794
1796
|
};
|
|
1795
|
-
}, [
|
|
1796
|
-
width:
|
|
1797
|
-
height:
|
|
1798
|
-
}), [
|
|
1797
|
+
}, [r, c]), T = W(() => ({
|
|
1798
|
+
width: C.columnsWidth.reduce((b, g) => b + g, 0),
|
|
1799
|
+
height: C.rowsHeight.reduce((b, g) => b + g, 0)
|
|
1800
|
+
}), [C]);
|
|
1799
1801
|
return {
|
|
1800
1802
|
rowCount: m,
|
|
1801
1803
|
rowHeight: f,
|
|
1802
1804
|
columnCount: c,
|
|
1803
1805
|
columnWidth: d,
|
|
1804
|
-
pageDimension:
|
|
1806
|
+
pageDimension: r,
|
|
1805
1807
|
estimatedRowHeight: P,
|
|
1806
1808
|
estimatedColumnWidth: u,
|
|
1807
|
-
gridDimension:
|
|
1808
|
-
totalDimension:
|
|
1809
|
+
gridDimension: C,
|
|
1810
|
+
totalDimension: T
|
|
1809
1811
|
};
|
|
1810
1812
|
};
|
|
1811
1813
|
let ue;
|
|
@@ -1818,14 +1820,14 @@ pt == null || Jt == null ? (vt = ut, wt = function(e) {
|
|
|
1818
1820
|
pt(e), ut(n);
|
|
1819
1821
|
}, wt = function(e) {
|
|
1820
1822
|
const n = Jt(function() {
|
|
1821
|
-
ut(
|
|
1822
|
-
}),
|
|
1823
|
+
ut(o), e();
|
|
1824
|
+
}), o = Yt(function() {
|
|
1823
1825
|
pt(n), e();
|
|
1824
1826
|
}, Qt);
|
|
1825
|
-
return [n,
|
|
1827
|
+
return [n, o];
|
|
1826
1828
|
});
|
|
1827
1829
|
function si(t) {
|
|
1828
|
-
let e, n,
|
|
1830
|
+
let e, n, o, r, i, c, l;
|
|
1829
1831
|
const d = typeof document < "u" && document.attachEvent;
|
|
1830
1832
|
if (!d) {
|
|
1831
1833
|
c = function(S) {
|
|
@@ -1843,51 +1845,51 @@ function si(t) {
|
|
|
1843
1845
|
}));
|
|
1844
1846
|
});
|
|
1845
1847
|
};
|
|
1846
|
-
let u = !1,
|
|
1847
|
-
|
|
1848
|
-
const
|
|
1848
|
+
let u = !1, C = "";
|
|
1849
|
+
o = "animationstart";
|
|
1850
|
+
const T = "Webkit Moz O ms".split(" ");
|
|
1849
1851
|
let b = "webkitAnimationStart animationstart oAnimationStart MSAnimationStart".split(" "), g = "";
|
|
1850
1852
|
{
|
|
1851
1853
|
const S = document.createElement("fakeelement");
|
|
1852
1854
|
if (S.style.animationName !== void 0 && (u = !0), u === !1) {
|
|
1853
|
-
for (let v = 0; v <
|
|
1854
|
-
if (S.style[
|
|
1855
|
-
g =
|
|
1855
|
+
for (let v = 0; v < T.length; v++)
|
|
1856
|
+
if (S.style[T[v] + "AnimationName"] !== void 0) {
|
|
1857
|
+
g = T[v], C = "-" + g.toLowerCase() + "-", o = b[v], u = !0;
|
|
1856
1858
|
break;
|
|
1857
1859
|
}
|
|
1858
1860
|
}
|
|
1859
1861
|
}
|
|
1860
|
-
n = "resizeanim", e = "@" +
|
|
1862
|
+
n = "resizeanim", e = "@" + C + "keyframes " + n + " { from { opacity: 0; } to { opacity: 0; } } ", r = C + "animation: 1ms " + n + "; ";
|
|
1861
1863
|
}
|
|
1862
1864
|
const f = function(u) {
|
|
1863
1865
|
if (!u.getElementById("detectElementResize")) {
|
|
1864
|
-
const
|
|
1865
|
-
b.id = "detectElementResize", b.type = "text/css", t != null && b.setAttribute("nonce", t), b.styleSheet ? b.styleSheet.cssText =
|
|
1866
|
+
const C = (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%; }', T = u.head || u.getElementsByTagName("head")[0], b = u.createElement("style");
|
|
1867
|
+
b.id = "detectElementResize", b.type = "text/css", t != null && b.setAttribute("nonce", t), b.styleSheet ? b.styleSheet.cssText = C : b.appendChild(u.createTextNode(C)), T.appendChild(b);
|
|
1866
1868
|
}
|
|
1867
1869
|
};
|
|
1868
1870
|
return {
|
|
1869
|
-
addResizeListener: function(u,
|
|
1871
|
+
addResizeListener: function(u, C) {
|
|
1870
1872
|
if (d)
|
|
1871
|
-
u.attachEvent("onresize",
|
|
1873
|
+
u.attachEvent("onresize", C);
|
|
1872
1874
|
else {
|
|
1873
1875
|
if (!u.__resizeTriggers__) {
|
|
1874
|
-
const
|
|
1875
|
-
b && b.position === "static" && (u.style.position = "relative"), f(
|
|
1876
|
-
const g =
|
|
1877
|
-
g.className = "expand-trigger", g.appendChild(
|
|
1878
|
-
const S =
|
|
1879
|
-
S.className = "contract-trigger", u.__resizeTriggers__.appendChild(g), u.__resizeTriggers__.appendChild(S), u.appendChild(u.__resizeTriggers__), c(u), u.addEventListener("scroll", l, !0),
|
|
1876
|
+
const T = u.ownerDocument, b = ue.getComputedStyle(u);
|
|
1877
|
+
b && b.position === "static" && (u.style.position = "relative"), f(T), u.__resizeLast__ = {}, u.__resizeListeners__ = [], (u.__resizeTriggers__ = T.createElement("div")).className = "resize-triggers";
|
|
1878
|
+
const g = T.createElement("div");
|
|
1879
|
+
g.className = "expand-trigger", g.appendChild(T.createElement("div"));
|
|
1880
|
+
const S = T.createElement("div");
|
|
1881
|
+
S.className = "contract-trigger", u.__resizeTriggers__.appendChild(g), u.__resizeTriggers__.appendChild(S), u.appendChild(u.__resizeTriggers__), c(u), u.addEventListener("scroll", l, !0), o && (u.__resizeTriggers__.__animationListener__ = function(h) {
|
|
1880
1882
|
h.animationName === n && c(u);
|
|
1881
|
-
}, u.__resizeTriggers__.addEventListener(
|
|
1883
|
+
}, u.__resizeTriggers__.addEventListener(o, u.__resizeTriggers__.__animationListener__));
|
|
1882
1884
|
}
|
|
1883
|
-
u.__resizeListeners__.push(
|
|
1885
|
+
u.__resizeListeners__.push(C);
|
|
1884
1886
|
}
|
|
1885
1887
|
},
|
|
1886
|
-
removeResizeListener: function(u,
|
|
1888
|
+
removeResizeListener: function(u, C) {
|
|
1887
1889
|
if (d)
|
|
1888
|
-
u.detachEvent("onresize",
|
|
1889
|
-
else if (u.__resizeListeners__.splice(u.__resizeListeners__.indexOf(
|
|
1890
|
-
u.removeEventListener("scroll", l, !0), u.__resizeTriggers__.__animationListener__ && (u.__resizeTriggers__.removeEventListener(
|
|
1890
|
+
u.detachEvent("onresize", C);
|
|
1891
|
+
else if (u.__resizeListeners__.splice(u.__resizeListeners__.indexOf(C), 1), !u.__resizeListeners__.length) {
|
|
1892
|
+
u.removeEventListener("scroll", l, !0), u.__resizeTriggers__.__animationListener__ && (u.__resizeTriggers__.removeEventListener(o, u.__resizeTriggers__.__animationListener__), u.__resizeTriggers__.__animationListener__ = null);
|
|
1891
1893
|
try {
|
|
1892
1894
|
u.__resizeTriggers__ = !u.removeChild(u.__resizeTriggers__);
|
|
1893
1895
|
} catch {
|
|
@@ -1896,7 +1898,7 @@ function si(t) {
|
|
|
1896
1898
|
}
|
|
1897
1899
|
};
|
|
1898
1900
|
}
|
|
1899
|
-
class ci extends
|
|
1901
|
+
class ci extends ar {
|
|
1900
1902
|
constructor(...e) {
|
|
1901
1903
|
super(...e), this.state = {
|
|
1902
1904
|
height: this.props.defaultHeight || 0,
|
|
@@ -1905,28 +1907,28 @@ class ci extends ao {
|
|
|
1905
1907
|
this._timeoutId = null;
|
|
1906
1908
|
const {
|
|
1907
1909
|
disableHeight: n,
|
|
1908
|
-
disableWidth:
|
|
1909
|
-
onResize:
|
|
1910
|
+
disableWidth: o,
|
|
1911
|
+
onResize: r
|
|
1910
1912
|
} = this.props;
|
|
1911
1913
|
if (this._parentNode) {
|
|
1912
1914
|
const i = window.getComputedStyle(this._parentNode) || {}, c = parseFloat(i.paddingLeft || "0"), l = parseFloat(i.paddingRight || "0"), d = parseFloat(i.paddingTop || "0"), f = parseFloat(i.paddingBottom || "0"), m = this._parentNode.getBoundingClientRect(), P = m.height - d - f, u = m.width - c - l;
|
|
1913
|
-
if (!n && this.state.height !== P || !
|
|
1915
|
+
if (!n && this.state.height !== P || !o && this.state.width !== u) {
|
|
1914
1916
|
this.setState({
|
|
1915
1917
|
height: P,
|
|
1916
1918
|
width: u
|
|
1917
1919
|
});
|
|
1918
|
-
const
|
|
1920
|
+
const C = () => {
|
|
1919
1921
|
this._didLogDeprecationWarning || (this._didLogDeprecationWarning = !0, console.warn("scaledWidth and scaledHeight parameters have been deprecated; use width and height instead"));
|
|
1920
1922
|
};
|
|
1921
|
-
typeof
|
|
1923
|
+
typeof r == "function" && r({
|
|
1922
1924
|
height: P,
|
|
1923
1925
|
width: u,
|
|
1924
1926
|
// TODO Remove these params in the next major release
|
|
1925
1927
|
get scaledHeight() {
|
|
1926
|
-
return
|
|
1928
|
+
return C(), P;
|
|
1927
1929
|
},
|
|
1928
1930
|
get scaledWidth() {
|
|
1929
|
-
return
|
|
1931
|
+
return C(), u;
|
|
1930
1932
|
}
|
|
1931
1933
|
});
|
|
1932
1934
|
}
|
|
@@ -1941,8 +1943,8 @@ class ci extends ao {
|
|
|
1941
1943
|
} = this.props, n = this._autoSizer ? this._autoSizer.parentNode : null;
|
|
1942
1944
|
if (n != null && n.ownerDocument && n.ownerDocument.defaultView && n instanceof n.ownerDocument.defaultView.HTMLElement) {
|
|
1943
1945
|
this._parentNode = n;
|
|
1944
|
-
const
|
|
1945
|
-
|
|
1946
|
+
const o = n.ownerDocument.defaultView.ResizeObserver;
|
|
1947
|
+
o != null ? (this._resizeObserver = new o(() => {
|
|
1946
1948
|
this._timeoutId = setTimeout(this._onResize, 0);
|
|
1947
1949
|
}), this._resizeObserver.observe(n)) : (this._detectElementResize = si(e), this._detectElementResize.addResizeListener(n, this._onResize)), this._onResize();
|
|
1948
1950
|
}
|
|
@@ -1954,8 +1956,8 @@ class ci extends ao {
|
|
|
1954
1956
|
const {
|
|
1955
1957
|
children: e,
|
|
1956
1958
|
defaultHeight: n,
|
|
1957
|
-
defaultWidth:
|
|
1958
|
-
disableHeight:
|
|
1959
|
+
defaultWidth: o,
|
|
1960
|
+
disableHeight: r = !1,
|
|
1959
1961
|
disableWidth: i = !1,
|
|
1960
1962
|
doNotBailOutOnEmptyChildren: c = !1,
|
|
1961
1963
|
nonce: l,
|
|
@@ -1965,15 +1967,15 @@ class ci extends ao {
|
|
|
1965
1967
|
...P
|
|
1966
1968
|
} = this.props, {
|
|
1967
1969
|
height: u,
|
|
1968
|
-
width:
|
|
1969
|
-
} = this.state,
|
|
1970
|
+
width: C
|
|
1971
|
+
} = this.state, T = {
|
|
1970
1972
|
overflow: "visible"
|
|
1971
1973
|
}, b = {};
|
|
1972
1974
|
let g = !1;
|
|
1973
|
-
return
|
|
1975
|
+
return r || (u === 0 && (g = !0), T.height = 0, b.height = u, b.scaledHeight = u), i || (C === 0 && (g = !0), T.width = 0, b.width = C, b.scaledWidth = C), c && (g = !1), Be(m, {
|
|
1974
1976
|
ref: this._setRef,
|
|
1975
1977
|
style: {
|
|
1976
|
-
...
|
|
1978
|
+
...T,
|
|
1977
1979
|
...f
|
|
1978
1980
|
},
|
|
1979
1981
|
...P
|
|
@@ -1981,14 +1983,14 @@ class ci extends ao {
|
|
|
1981
1983
|
}
|
|
1982
1984
|
}
|
|
1983
1985
|
const li = an(({ widths: t, heights: e }) => {
|
|
1984
|
-
const { focusedPage: n, totalPages:
|
|
1986
|
+
const { focusedPage: n, totalPages: o } = pe(), r = W(() => {
|
|
1985
1987
|
const l = [], d = Math.ceil(n / 2) * 2 - 1;
|
|
1986
|
-
if (l.push(d), d + 1 <=
|
|
1988
|
+
if (l.push(d), d + 1 <= o) {
|
|
1987
1989
|
const f = d + 1;
|
|
1988
1990
|
l.push(f);
|
|
1989
1991
|
}
|
|
1990
1992
|
return l;
|
|
1991
|
-
}, [n,
|
|
1993
|
+
}, [n, o]), i = W(() => {
|
|
1992
1994
|
const l = n % 2 === 1 ? n - 1 : n - 2, d = Math.floor(l / 2), f = e(d), m = t(l), P = t(l + 1);
|
|
1993
1995
|
return [
|
|
1994
1996
|
{
|
|
@@ -2004,29 +2006,29 @@ const li = an(({ widths: t, heights: e }) => {
|
|
|
2004
2006
|
height: f
|
|
2005
2007
|
}
|
|
2006
2008
|
];
|
|
2007
|
-
}, [t, e,
|
|
2008
|
-
return /* @__PURE__ */ a("div", { style: { width: c, position: "relative" }, children:
|
|
2009
|
+
}, [t, e, r]), c = W(() => i.reduce((l, d) => l + Number(d.width || 0), 0), [i]);
|
|
2010
|
+
return /* @__PURE__ */ a("div", { style: { width: c, position: "relative" }, children: r.map((l, d) => /* @__PURE__ */ a(It, { style: i[d], pageNumber: l }, l)) });
|
|
2009
2011
|
}), di = ({ widths: t, heights: e }) => {
|
|
2010
|
-
const { focusedPage: n } = pe(),
|
|
2012
|
+
const { focusedPage: n } = pe(), o = W(() => ({
|
|
2011
2013
|
position: "absolute",
|
|
2012
2014
|
width: t(n - 1),
|
|
2013
2015
|
height: e(n - 1)
|
|
2014
|
-
}), [t, e, n]),
|
|
2016
|
+
}), [t, e, n]), r = W(() => t(n - 1), [t]);
|
|
2015
2017
|
return /* @__PURE__ */ a(
|
|
2016
2018
|
"div",
|
|
2017
2019
|
{
|
|
2018
2020
|
style: {
|
|
2019
|
-
width:
|
|
2021
|
+
width: r,
|
|
2020
2022
|
position: "relative"
|
|
2021
2023
|
},
|
|
2022
|
-
children: /* @__PURE__ */ a(It, { style:
|
|
2024
|
+
children: /* @__PURE__ */ a(It, { style: o, pageNumber: n }, n)
|
|
2023
2025
|
}
|
|
2024
2026
|
);
|
|
2025
2027
|
}, ui = (t, e, n) => {
|
|
2026
|
-
const
|
|
2027
|
-
const { rowsHeight:
|
|
2028
|
+
const o = k(), { contentRef: r } = be(), { heights: i, widths: c } = Ue(), { setFocusedPage: l } = pe(), [d, f] = q([]), { targetScrollPage: m } = ln(), P = Ct(d, 0, 500), u = W(() => {
|
|
2029
|
+
const { rowsHeight: T, columnsWidth: b } = Tt({ heights: i, widths: c }, t);
|
|
2028
2030
|
return i.map((g, S) => {
|
|
2029
|
-
const v = c[S], h =
|
|
2031
|
+
const v = c[S], h = eo(S + 1, t), p = b.slice(0, h.columnIndex).reduce((y, x) => y + x, 0), s = T.slice(0, h.rowIndex).reduce((y, x) => y + x, 0), w = p + v, _ = s + g;
|
|
2030
2032
|
return {
|
|
2031
2033
|
pageNumber: S + 1,
|
|
2032
2034
|
...h,
|
|
@@ -2045,10 +2047,10 @@ const li = an(({ widths: t, heights: e }) => {
|
|
|
2045
2047
|
m.current = void 0;
|
|
2046
2048
|
}, 500);
|
|
2047
2049
|
}, [P, l]);
|
|
2048
|
-
const
|
|
2049
|
-
(
|
|
2050
|
-
|
|
2051
|
-
const b =
|
|
2050
|
+
const C = E(
|
|
2051
|
+
(T) => {
|
|
2052
|
+
o.current && cancelAnimationFrame(o.current), o.current = requestAnimationFrame(() => {
|
|
2053
|
+
const b = T.target, g = {
|
|
2052
2054
|
startTop: b.scrollTop,
|
|
2053
2055
|
startLeft: b.scrollLeft,
|
|
2054
2056
|
endTop: b.scrollTop + b.clientHeight,
|
|
@@ -2066,16 +2068,16 @@ const li = an(({ widths: t, heights: e }) => {
|
|
|
2066
2068
|
f(S);
|
|
2067
2069
|
});
|
|
2068
2070
|
},
|
|
2069
|
-
[
|
|
2071
|
+
[r, u]
|
|
2070
2072
|
);
|
|
2071
2073
|
M(() => {
|
|
2072
2074
|
if (n)
|
|
2073
|
-
return n == null || n.addEventListener("scroll",
|
|
2074
|
-
n == null || n.removeEventListener("scroll",
|
|
2075
|
+
return n == null || n.addEventListener("scroll", C), () => {
|
|
2076
|
+
n == null || n.removeEventListener("scroll", C);
|
|
2075
2077
|
};
|
|
2076
|
-
}, [n,
|
|
2078
|
+
}, [n, C]);
|
|
2077
2079
|
}, Ln = tt((t, e) => {
|
|
2078
|
-
const { children: n, toolbarRef:
|
|
2080
|
+
const { children: n, toolbarRef: o, style: r, className: i, ...c } = t, { customVariables: l, customDarkVariables: d } = Ar(), { darkMode: f } = ur();
|
|
2079
2081
|
return /* @__PURE__ */ a(
|
|
2080
2082
|
"div",
|
|
2081
2083
|
{
|
|
@@ -2088,33 +2090,33 @@ const li = an(({ widths: t, heights: e }) => {
|
|
|
2088
2090
|
i
|
|
2089
2091
|
),
|
|
2090
2092
|
style: {
|
|
2091
|
-
"--rp-toolbar-height": `${(
|
|
2093
|
+
"--rp-toolbar-height": `${(o == null ? void 0 : o.clientHeight) || 48}px`,
|
|
2092
2094
|
...l,
|
|
2093
2095
|
...f ? d : {},
|
|
2094
|
-
...
|
|
2096
|
+
...r
|
|
2095
2097
|
},
|
|
2096
2098
|
children: n
|
|
2097
2099
|
}
|
|
2098
2100
|
);
|
|
2099
|
-
}), pi = an(({ columnIndex: t, rowIndex: e, data: n, style:
|
|
2100
|
-
const
|
|
2101
|
-
return /* @__PURE__ */ a(It, { style:
|
|
2102
|
-
}, ii),
|
|
2103
|
-
const { initialPage: t = 1, initialScrollMode: e, instanceId: n } =
|
|
2101
|
+
}), pi = an(({ columnIndex: t, rowIndex: e, data: n, style: o }) => {
|
|
2102
|
+
const r = to(e, t, n.columnCount);
|
|
2103
|
+
return /* @__PURE__ */ a(It, { style: o, pageNumber: r }, r);
|
|
2104
|
+
}, ii), rc = () => {
|
|
2105
|
+
const { initialPage: t = 1, initialScrollMode: e, instanceId: n } = fr(), { pagesRef: o, setPagesRef: r, setContentRef: i } = be(), { scrollToPage: c } = wn(), {
|
|
2104
2106
|
virtualScrollRef: l,
|
|
2105
2107
|
getVirtualScrollRef: d,
|
|
2106
2108
|
getPageScrollElementRef: f,
|
|
2107
2109
|
getVirtualScrollableElementRef: m,
|
|
2108
2110
|
setTotalInnerDimensions: P,
|
|
2109
2111
|
virtualScrollableElementRef: u,
|
|
2110
|
-
totalInnerDimensions:
|
|
2111
|
-
pageScrollElementRef:
|
|
2112
|
-
} = Je(), b = k(!0), { nextPage: g, prevPage: S, setFocusedPage: v, focusedPage: h } = pe(), { scrollMode: p } = Ee(), { viewMode: s } = ze(), w = k(null), { loading: _, error: y } =
|
|
2113
|
-
|
|
2112
|
+
totalInnerDimensions: C,
|
|
2113
|
+
pageScrollElementRef: T
|
|
2114
|
+
} = Je(), b = k(!0), { nextPage: g, prevPage: S, setFocusedPage: v, focusedPage: h } = pe(), { scrollMode: p } = Ee(), { viewMode: s } = ze(), w = k(null), { loading: _, error: y } = re(), { passwordRequired: x } = dr(), { LoaderImageComponent: I } = bt(), R = k(
|
|
2115
|
+
C
|
|
2114
2116
|
), L = k({
|
|
2115
2117
|
viewMode: s,
|
|
2116
2118
|
scrollMode: p
|
|
2117
|
-
}), N = k(!1), F = k(), { isFullScreen: z } =
|
|
2119
|
+
}), N = k(!1), F = k(), { isFullScreen: z } = mr(), {
|
|
2118
2120
|
pageDimension: D,
|
|
2119
2121
|
rowCount: O,
|
|
2120
2122
|
rowHeight: A,
|
|
@@ -2123,20 +2125,20 @@ const li = an(({ widths: t, heights: e }) => {
|
|
|
2123
2125
|
estimatedColumnWidth: B,
|
|
2124
2126
|
estimatedRowHeight: V,
|
|
2125
2127
|
totalDimension: J
|
|
2126
|
-
} = ai(), G = Ct(
|
|
2128
|
+
} = ai(), G = Ct(C, 100), { onScroll: K } = Ir(), Y = k();
|
|
2127
2129
|
ui(H, O, u);
|
|
2128
2130
|
const ee = k({
|
|
2129
2131
|
scrollTop: 0,
|
|
2130
2132
|
scrollLeft: 0
|
|
2131
2133
|
});
|
|
2132
|
-
|
|
2133
|
-
const { isPressed:
|
|
2134
|
-
isPressed:
|
|
2135
|
-
}), ae = W(() => ie ===
|
|
2134
|
+
oo(o);
|
|
2135
|
+
const { isPressed: oe } = no(), { selectionMode: ie } = hr(), { initializeGrabScroll: se, resetGrabState: ce } = ro({
|
|
2136
|
+
isPressed: oe
|
|
2137
|
+
}), ae = W(() => ie === cr.HAND, [ie]), Fe = W(() => ({
|
|
2136
2138
|
columnCount: H
|
|
2137
2139
|
}), [H]), ke = E(
|
|
2138
2140
|
(j) => {
|
|
2139
|
-
const Z = document.activeElement !==
|
|
2141
|
+
const Z = document.activeElement !== o;
|
|
2140
2142
|
!z && Z || (["ArrowUp", "ArrowLeft"].includes(j.key) ? (j.preventDefault(), S()) : ["ArrowDown", "ArrowRight"].includes(j.key) && (j.preventDefault(), g()));
|
|
2141
2143
|
},
|
|
2142
2144
|
[g, S, z, p]
|
|
@@ -2174,19 +2176,19 @@ const li = an(({ widths: t, heights: e }) => {
|
|
|
2174
2176
|
}, 100);
|
|
2175
2177
|
return;
|
|
2176
2178
|
}
|
|
2177
|
-
const Se = j.scrollTop,
|
|
2179
|
+
const Se = j.scrollTop, ot = j.scrollLeft;
|
|
2178
2180
|
if (!Z.height || !Z.width)
|
|
2179
2181
|
return;
|
|
2180
2182
|
N.current = !0;
|
|
2181
2183
|
const { height: Ie, width: it } = Z, { height: Nt, width: Ot } = R.current;
|
|
2182
2184
|
if (Nt === Ie && Ot === it)
|
|
2183
2185
|
return;
|
|
2184
|
-
const
|
|
2186
|
+
const tr = Se / Nt * Ie, nr = ot / Ot * it, rr = Math.round(Math.min(tr, Ie)) || 0, or = Math.round(Math.min(nr, it)) || 0;
|
|
2185
2187
|
F.current = setTimeout(() => {
|
|
2186
2188
|
requestAnimationFrame(() => {
|
|
2187
2189
|
u == null || u.scrollTo({
|
|
2188
|
-
top:
|
|
2189
|
-
left:
|
|
2190
|
+
top: rr,
|
|
2191
|
+
left: or,
|
|
2190
2192
|
behavior: "auto"
|
|
2191
2193
|
});
|
|
2192
2194
|
});
|
|
@@ -2200,10 +2202,10 @@ const li = an(({ widths: t, heights: e }) => {
|
|
|
2200
2202
|
M(() => {
|
|
2201
2203
|
clearTimeout(F.current);
|
|
2202
2204
|
const j = Array.from({ length: O }).reduce(
|
|
2203
|
-
(Se,
|
|
2205
|
+
(Se, ot, Ie) => Se + A(Ie),
|
|
2204
2206
|
0
|
|
2205
2207
|
), Z = Array.from({ length: H }).reduce(
|
|
2206
|
-
(Se,
|
|
2208
|
+
(Se, ot, Ie) => Se + U(Ie),
|
|
2207
2209
|
0
|
|
2208
2210
|
), ye = Qn(Z, j);
|
|
2209
2211
|
ee.current = ye, Et(ye, { height: j, width: Z }), P({
|
|
@@ -2222,16 +2224,16 @@ const li = an(({ widths: t, heights: e }) => {
|
|
|
2222
2224
|
);
|
|
2223
2225
|
M(() => {
|
|
2224
2226
|
if (K)
|
|
2225
|
-
return
|
|
2226
|
-
|
|
2227
|
+
return T && T.addEventListener("scroll", K), u && u.addEventListener("scroll", K), () => {
|
|
2228
|
+
T == null || T.removeEventListener("scroll", K), u == null || u.removeEventListener("scroll", K);
|
|
2227
2229
|
};
|
|
2228
|
-
}, [u,
|
|
2230
|
+
}, [u, T, K]), M(() => () => {
|
|
2229
2231
|
Y.current && clearTimeout(Y.current);
|
|
2230
2232
|
}, []);
|
|
2231
2233
|
const Jn = W(() => de(le["rp-pages-container"], {
|
|
2232
|
-
[le["rp-cursor-grab"]]: ae && !
|
|
2233
|
-
[le["rp-cursor-grabbing"]]: ae &&
|
|
2234
|
-
}), [ae,
|
|
2234
|
+
[le["rp-cursor-grab"]]: ae && !oe,
|
|
2235
|
+
[le["rp-cursor-grabbing"]]: ae && oe
|
|
2236
|
+
}), [ae, oe]), er = E(
|
|
2235
2237
|
(j) => {
|
|
2236
2238
|
if (ae && j) {
|
|
2237
2239
|
const Z = de(le["rp-pages"]), ye = document.querySelector(`.${Z}`);
|
|
@@ -2245,7 +2247,7 @@ const li = an(({ widths: t, heights: e }) => {
|
|
|
2245
2247
|
}, [_]), M(() => {
|
|
2246
2248
|
if (!(G.height === 0 || !b.current)) {
|
|
2247
2249
|
if (e === ne.PAGE_SCROLLING) {
|
|
2248
|
-
t !== h &&
|
|
2250
|
+
t !== h && T && v(t), b.current = !1;
|
|
2249
2251
|
return;
|
|
2250
2252
|
}
|
|
2251
2253
|
c(t, "auto"), v(t), b.current = !1;
|
|
@@ -2253,18 +2255,18 @@ const li = an(({ widths: t, heights: e }) => {
|
|
|
2253
2255
|
}, [
|
|
2254
2256
|
c,
|
|
2255
2257
|
e,
|
|
2256
|
-
|
|
2258
|
+
T,
|
|
2257
2259
|
v,
|
|
2258
2260
|
G
|
|
2259
2261
|
]), /* @__PURE__ */ $(fe, { children: [
|
|
2260
|
-
/* @__PURE__ */ a(
|
|
2262
|
+
/* @__PURE__ */ a(Dr, { ref: i, children: /* @__PURE__ */ a(
|
|
2261
2263
|
Ln,
|
|
2262
2264
|
{
|
|
2263
2265
|
id: n,
|
|
2264
|
-
ref:
|
|
2266
|
+
ref: r,
|
|
2265
2267
|
tabIndex: -1,
|
|
2266
2268
|
className: Jn,
|
|
2267
|
-
children: /* @__PURE__ */ a(ci, { style: { minHeight: "50px" }, children: ({ width: j, height: Z }) => /* @__PURE__ */ a("div", { "data-rp": "pages", ref:
|
|
2269
|
+
children: /* @__PURE__ */ a(ci, { style: { minHeight: "50px" }, children: ({ width: j, height: Z }) => /* @__PURE__ */ a("div", { "data-rp": "pages", ref: er, style: { width: j, height: Z }, children: p === ne.PAGE_SCROLLING ? /* @__PURE__ */ a(
|
|
2268
2270
|
"div",
|
|
2269
2271
|
{
|
|
2270
2272
|
ref: f,
|
|
@@ -2313,7 +2315,7 @@ const li = an(({ widths: t, heights: e }) => {
|
|
|
2313
2315
|
},
|
|
2314
2316
|
children: I && /* @__PURE__ */ a(I, {})
|
|
2315
2317
|
}
|
|
2316
|
-
) : y ===
|
|
2318
|
+
) : y === lr.NOT_SUPPORTED ? /* @__PURE__ */ a("div", { className: le["rp-not-supported"], children: /* @__PURE__ */ $("div", { className: le["rp-not-supported-content"], children: [
|
|
2317
2319
|
"React PDF is unable to render on this browser. Please use the supported browsers from the list below:",
|
|
2318
2320
|
/* @__PURE__ */ a("div", { children: /* @__PURE__ */ $("ul", { children: [
|
|
2319
2321
|
/* @__PURE__ */ a("li", { children: "Chrome 110+" }),
|
|
@@ -2326,7 +2328,7 @@ const li = an(({ widths: t, heights: e }) => {
|
|
|
2326
2328
|
] }) }) : null }) })
|
|
2327
2329
|
}
|
|
2328
2330
|
) }),
|
|
2329
|
-
x && /* @__PURE__ */ a(
|
|
2331
|
+
x && /* @__PURE__ */ a(io, {})
|
|
2330
2332
|
] });
|
|
2331
2333
|
}, We = {
|
|
2332
2334
|
"rp-toolbar-content": "_rp-toolbar-content_sz31z_1",
|
|
@@ -2345,11 +2347,11 @@ const li = an(({ widths: t, heights: e }) => {
|
|
|
2345
2347
|
const { nextIcon: t } = Pe(), { nextIcon: e } = Te();
|
|
2346
2348
|
return t || e || /* @__PURE__ */ a(Xe, { style: { transform: "rotate(180deg" } });
|
|
2347
2349
|
}, mi = () => {
|
|
2348
|
-
const { focusedPage: t, totalPages: e, setFocusedPage: n, nextPage:
|
|
2350
|
+
const { focusedPage: t, totalPages: e, setFocusedPage: n, nextPage: o, prevPage: r, goToPage: i } = pe(), [c, l] = q(t.toString()), { pageNavigationTool: d = !0 } = Ce(), { pageNavigationTool: f = !0 } = Ne(), { isSmallScreen: m } = Oe(), { viewMode: P } = ze(), { scrollMode: u } = Ee(), { localeMessages: C } = me();
|
|
2349
2351
|
M(() => {
|
|
2350
2352
|
l(t.toString());
|
|
2351
2353
|
}, [t]);
|
|
2352
|
-
const
|
|
2354
|
+
const T = E((h) => {
|
|
2353
2355
|
const p = h.target.value;
|
|
2354
2356
|
l(p);
|
|
2355
2357
|
}, []), b = E(async () => {
|
|
@@ -2368,8 +2370,8 @@ const li = an(({ widths: t, heights: e }) => {
|
|
|
2368
2370
|
{
|
|
2369
2371
|
total: e,
|
|
2370
2372
|
current: t,
|
|
2371
|
-
nextPage:
|
|
2372
|
-
prevPage:
|
|
2373
|
+
nextPage: o,
|
|
2374
|
+
prevPage: r,
|
|
2373
2375
|
goToPage: i,
|
|
2374
2376
|
changePage: n
|
|
2375
2377
|
}
|
|
@@ -2378,27 +2380,27 @@ const li = an(({ widths: t, heights: e }) => {
|
|
|
2378
2380
|
{
|
|
2379
2381
|
total: e,
|
|
2380
2382
|
current: t,
|
|
2381
|
-
nextPage:
|
|
2382
|
-
prevPage:
|
|
2383
|
+
nextPage: o,
|
|
2384
|
+
prevPage: r,
|
|
2383
2385
|
goToPage: i,
|
|
2384
2386
|
changePage: n
|
|
2385
2387
|
}
|
|
2386
2388
|
) : /* @__PURE__ */ $("div", { className: ht["rp-paginate"], children: [
|
|
2387
|
-
!m && /* @__PURE__ */ a(Q, { content:
|
|
2389
|
+
!m && /* @__PURE__ */ a(Q, { content: C == null ? void 0 : C.previousPageTooltip, children: /* @__PURE__ */ a(
|
|
2388
2390
|
we,
|
|
2389
2391
|
{
|
|
2390
|
-
onClick:
|
|
2391
|
-
"aria-label":
|
|
2392
|
+
onClick: r,
|
|
2393
|
+
"aria-label": C == null ? void 0 : C.previousPageTooltip,
|
|
2392
2394
|
"aria-disabled": t === 1,
|
|
2393
2395
|
children: /* @__PURE__ */ a(hi, {})
|
|
2394
2396
|
}
|
|
2395
2397
|
) }),
|
|
2396
|
-
/* @__PURE__ */ a(Q, { content:
|
|
2398
|
+
/* @__PURE__ */ a(Q, { content: C == null ? void 0 : C.currentPageTooltip, children: /* @__PURE__ */ a(
|
|
2397
2399
|
sn,
|
|
2398
2400
|
{
|
|
2399
2401
|
onKeyDown: S,
|
|
2400
2402
|
onBlur: g,
|
|
2401
|
-
onChange:
|
|
2403
|
+
onChange: T,
|
|
2402
2404
|
value: c,
|
|
2403
2405
|
className: ht["rp-page-input"],
|
|
2404
2406
|
id: "page-input",
|
|
@@ -2409,30 +2411,30 @@ const li = an(({ widths: t, heights: e }) => {
|
|
|
2409
2411
|
"/",
|
|
2410
2412
|
e
|
|
2411
2413
|
] }),
|
|
2412
|
-
!m && /* @__PURE__ */ a(Q, { content:
|
|
2414
|
+
!m && /* @__PURE__ */ a(Q, { content: C == null ? void 0 : C.nextPageTooltip, children: /* @__PURE__ */ a(
|
|
2413
2415
|
we,
|
|
2414
2416
|
{
|
|
2415
|
-
onClick:
|
|
2416
|
-
"aria-label":
|
|
2417
|
+
onClick: o,
|
|
2418
|
+
"aria-label": C == null ? void 0 : C.nextPageTooltip,
|
|
2417
2419
|
"aria-disabled": v,
|
|
2418
2420
|
children: /* @__PURE__ */ a(fi, {})
|
|
2419
2421
|
}
|
|
2420
2422
|
) })
|
|
2421
2423
|
] });
|
|
2422
2424
|
};
|
|
2423
|
-
var
|
|
2425
|
+
var rt = "Dialog", [En, oc] = po(rt), [gi, he] = En(rt), Nn = (t) => {
|
|
2424
2426
|
const {
|
|
2425
2427
|
__scopeDialog: e,
|
|
2426
2428
|
children: n,
|
|
2427
|
-
open:
|
|
2428
|
-
defaultOpen:
|
|
2429
|
+
open: o,
|
|
2430
|
+
defaultOpen: r,
|
|
2429
2431
|
onOpenChange: i,
|
|
2430
2432
|
modal: c = !0
|
|
2431
|
-
} = t, l = X.useRef(null), d = X.useRef(null), [f, m] =
|
|
2432
|
-
prop:
|
|
2433
|
-
defaultProp:
|
|
2433
|
+
} = t, l = X.useRef(null), d = X.useRef(null), [f, m] = fo({
|
|
2434
|
+
prop: o,
|
|
2435
|
+
defaultProp: r ?? !1,
|
|
2434
2436
|
onChange: i,
|
|
2435
|
-
caller:
|
|
2437
|
+
caller: rt
|
|
2436
2438
|
});
|
|
2437
2439
|
return /* @__PURE__ */ a(
|
|
2438
2440
|
gi,
|
|
@@ -2451,21 +2453,21 @@ var ot = "Dialog", [En, rc] = pr(ot), [gi, he] = En(ot), Nn = (t) => {
|
|
|
2451
2453
|
}
|
|
2452
2454
|
);
|
|
2453
2455
|
};
|
|
2454
|
-
Nn.displayName =
|
|
2456
|
+
Nn.displayName = rt;
|
|
2455
2457
|
var On = "DialogTrigger", vi = X.forwardRef(
|
|
2456
2458
|
(t, e) => {
|
|
2457
|
-
const { __scopeDialog: n, ...
|
|
2459
|
+
const { __scopeDialog: n, ...o } = t, r = he(On, n), i = Pt(e, r.triggerRef);
|
|
2458
2460
|
return /* @__PURE__ */ a(
|
|
2459
2461
|
Ve.button,
|
|
2460
2462
|
{
|
|
2461
2463
|
type: "button",
|
|
2462
2464
|
"aria-haspopup": "dialog",
|
|
2463
|
-
"aria-expanded":
|
|
2464
|
-
"aria-controls":
|
|
2465
|
-
"data-state": Lt(
|
|
2466
|
-
...
|
|
2465
|
+
"aria-expanded": r.open,
|
|
2466
|
+
"aria-controls": r.contentId,
|
|
2467
|
+
"data-state": Lt(r.open),
|
|
2468
|
+
...o,
|
|
2467
2469
|
ref: i,
|
|
2468
|
-
onClick: $e(t.onClick,
|
|
2470
|
+
onClick: $e(t.onClick, r.onOpenToggle)
|
|
2469
2471
|
}
|
|
2470
2472
|
);
|
|
2471
2473
|
}
|
|
@@ -2474,53 +2476,53 @@ vi.displayName = On;
|
|
|
2474
2476
|
var xt = "DialogPortal", [wi, Dn] = En(xt, {
|
|
2475
2477
|
forceMount: void 0
|
|
2476
2478
|
}), An = (t) => {
|
|
2477
|
-
const { __scopeDialog: e, forceMount: n, children:
|
|
2478
|
-
return /* @__PURE__ */ a(wi, { scope: e, forceMount: n, children: X.Children.map(
|
|
2479
|
+
const { __scopeDialog: e, forceMount: n, children: o, container: r } = t, i = he(xt, e);
|
|
2480
|
+
return /* @__PURE__ */ a(wi, { scope: e, forceMount: n, children: X.Children.map(o, (c) => /* @__PURE__ */ a(yt, { present: n || i.open, children: /* @__PURE__ */ a(To, { asChild: !0, container: r, children: c }) })) });
|
|
2479
2481
|
};
|
|
2480
2482
|
An.displayName = xt;
|
|
2481
2483
|
var Ye = "DialogOverlay", Mn = X.forwardRef(
|
|
2482
2484
|
(t, e) => {
|
|
2483
|
-
const n = Dn(Ye, t.__scopeDialog), { forceMount:
|
|
2484
|
-
return i.modal ? /* @__PURE__ */ a(yt, { present:
|
|
2485
|
+
const n = Dn(Ye, t.__scopeDialog), { forceMount: o = n.forceMount, ...r } = t, i = he(Ye, t.__scopeDialog);
|
|
2486
|
+
return i.modal ? /* @__PURE__ */ a(yt, { present: o || i.open, children: /* @__PURE__ */ a(bi, { ...r, ref: e }) }) : null;
|
|
2485
2487
|
}
|
|
2486
2488
|
);
|
|
2487
2489
|
Mn.displayName = Ye;
|
|
2488
|
-
var _i =
|
|
2490
|
+
var _i = mo("DialogOverlay.RemoveScroll"), bi = X.forwardRef(
|
|
2489
2491
|
(t, e) => {
|
|
2490
|
-
const { __scopeDialog: n, ...
|
|
2492
|
+
const { __scopeDialog: n, ...o } = t, r = he(Ye, n);
|
|
2491
2493
|
return (
|
|
2492
2494
|
// Make sure `Content` is scrollable even when it doesn't live inside `RemoveScroll`
|
|
2493
2495
|
// ie. when `Overlay` and `Content` are siblings
|
|
2494
|
-
/* @__PURE__ */ a(
|
|
2496
|
+
/* @__PURE__ */ a(vo, { as: _i, allowPinchZoom: !0, shards: [r.contentRef], children: /* @__PURE__ */ a(
|
|
2495
2497
|
Ve.div,
|
|
2496
2498
|
{
|
|
2497
|
-
"data-state": Lt(
|
|
2498
|
-
...
|
|
2499
|
+
"data-state": Lt(r.open),
|
|
2500
|
+
...o,
|
|
2499
2501
|
ref: e,
|
|
2500
|
-
style: { pointerEvents: "auto", ...
|
|
2502
|
+
style: { pointerEvents: "auto", ...o.style }
|
|
2501
2503
|
}
|
|
2502
2504
|
) })
|
|
2503
2505
|
);
|
|
2504
2506
|
}
|
|
2505
2507
|
), Le = "DialogContent", zn = X.forwardRef(
|
|
2506
2508
|
(t, e) => {
|
|
2507
|
-
const n = Dn(Le, t.__scopeDialog), { forceMount:
|
|
2508
|
-
return /* @__PURE__ */ a(yt, { present:
|
|
2509
|
+
const n = Dn(Le, t.__scopeDialog), { forceMount: o = n.forceMount, ...r } = t, i = he(Le, t.__scopeDialog);
|
|
2510
|
+
return /* @__PURE__ */ a(yt, { present: o || i.open, children: i.modal ? /* @__PURE__ */ a(Ti, { ...r, ref: e }) : /* @__PURE__ */ a(Ci, { ...r, ref: e }) });
|
|
2509
2511
|
}
|
|
2510
2512
|
);
|
|
2511
2513
|
zn.displayName = Le;
|
|
2512
2514
|
var Ti = X.forwardRef(
|
|
2513
2515
|
(t, e) => {
|
|
2514
|
-
const n = he(Le, t.__scopeDialog),
|
|
2516
|
+
const n = he(Le, t.__scopeDialog), o = X.useRef(null), r = Pt(e, n.contentRef, o);
|
|
2515
2517
|
return X.useEffect(() => {
|
|
2516
|
-
const i =
|
|
2518
|
+
const i = o.current;
|
|
2517
2519
|
if (i)
|
|
2518
|
-
return
|
|
2520
|
+
return wo(i);
|
|
2519
2521
|
}, []), /* @__PURE__ */ a(
|
|
2520
2522
|
Fn,
|
|
2521
2523
|
{
|
|
2522
2524
|
...t,
|
|
2523
|
-
ref:
|
|
2525
|
+
ref: r,
|
|
2524
2526
|
trapFocus: n.open,
|
|
2525
2527
|
disableOutsidePointerEvents: !0,
|
|
2526
2528
|
onCloseAutoFocus: $e(t.onCloseAutoFocus, (i) => {
|
|
@@ -2540,7 +2542,7 @@ var Ti = X.forwardRef(
|
|
|
2540
2542
|
}
|
|
2541
2543
|
), Ci = X.forwardRef(
|
|
2542
2544
|
(t, e) => {
|
|
2543
|
-
const n = he(Le, t.__scopeDialog),
|
|
2545
|
+
const n = he(Le, t.__scopeDialog), o = X.useRef(!1), r = X.useRef(!1);
|
|
2544
2546
|
return /* @__PURE__ */ a(
|
|
2545
2547
|
Fn,
|
|
2546
2548
|
{
|
|
@@ -2550,31 +2552,31 @@ var Ti = X.forwardRef(
|
|
|
2550
2552
|
disableOutsidePointerEvents: !1,
|
|
2551
2553
|
onCloseAutoFocus: (i) => {
|
|
2552
2554
|
var c, l;
|
|
2553
|
-
(c = t.onCloseAutoFocus) == null || c.call(t, i), i.defaultPrevented || (
|
|
2555
|
+
(c = t.onCloseAutoFocus) == null || c.call(t, i), i.defaultPrevented || (o.current || (l = n.triggerRef.current) == null || l.focus(), i.preventDefault()), o.current = !1, r.current = !1;
|
|
2554
2556
|
},
|
|
2555
2557
|
onInteractOutside: (i) => {
|
|
2556
2558
|
var d, f;
|
|
2557
|
-
(d = t.onInteractOutside) == null || d.call(t, i), i.defaultPrevented || (
|
|
2559
|
+
(d = t.onInteractOutside) == null || d.call(t, i), i.defaultPrevented || (o.current = !0, i.detail.originalEvent.type === "pointerdown" && (r.current = !0));
|
|
2558
2560
|
const c = i.target;
|
|
2559
|
-
((f = n.triggerRef.current) == null ? void 0 : f.contains(c)) && i.preventDefault(), i.detail.originalEvent.type === "focusin" &&
|
|
2561
|
+
((f = n.triggerRef.current) == null ? void 0 : f.contains(c)) && i.preventDefault(), i.detail.originalEvent.type === "focusin" && r.current && i.preventDefault();
|
|
2560
2562
|
}
|
|
2561
2563
|
}
|
|
2562
2564
|
);
|
|
2563
2565
|
}
|
|
2564
2566
|
), Fn = X.forwardRef(
|
|
2565
2567
|
(t, e) => {
|
|
2566
|
-
const { __scopeDialog: n, trapFocus:
|
|
2567
|
-
return
|
|
2568
|
+
const { __scopeDialog: n, trapFocus: o, onOpenAutoFocus: r, onCloseAutoFocus: i, ...c } = t, l = he(Le, n), d = X.useRef(null), f = Pt(e, d);
|
|
2569
|
+
return _o(), /* @__PURE__ */ $(fe, { children: [
|
|
2568
2570
|
/* @__PURE__ */ a(
|
|
2569
|
-
|
|
2571
|
+
bo,
|
|
2570
2572
|
{
|
|
2571
2573
|
asChild: !0,
|
|
2572
2574
|
loop: !0,
|
|
2573
|
-
trapped:
|
|
2574
|
-
onMountAutoFocus:
|
|
2575
|
+
trapped: o,
|
|
2576
|
+
onMountAutoFocus: r,
|
|
2575
2577
|
onUnmountAutoFocus: i,
|
|
2576
2578
|
children: /* @__PURE__ */ a(
|
|
2577
|
-
|
|
2579
|
+
go,
|
|
2578
2580
|
{
|
|
2579
2581
|
role: "dialog",
|
|
2580
2582
|
id: l.contentId,
|
|
@@ -2596,28 +2598,28 @@ var Ti = X.forwardRef(
|
|
|
2596
2598
|
}
|
|
2597
2599
|
), Rt = "DialogTitle", kn = X.forwardRef(
|
|
2598
2600
|
(t, e) => {
|
|
2599
|
-
const { __scopeDialog: n, ...
|
|
2600
|
-
return /* @__PURE__ */ a(Ve.h2, { id:
|
|
2601
|
+
const { __scopeDialog: n, ...o } = t, r = he(Rt, n);
|
|
2602
|
+
return /* @__PURE__ */ a(Ve.h2, { id: r.titleId, ...o, ref: e });
|
|
2601
2603
|
}
|
|
2602
2604
|
);
|
|
2603
2605
|
kn.displayName = Rt;
|
|
2604
2606
|
var Wn = "DialogDescription", Pi = X.forwardRef(
|
|
2605
2607
|
(t, e) => {
|
|
2606
|
-
const { __scopeDialog: n, ...
|
|
2607
|
-
return /* @__PURE__ */ a(Ve.p, { id:
|
|
2608
|
+
const { __scopeDialog: n, ...o } = t, r = he(Wn, n);
|
|
2609
|
+
return /* @__PURE__ */ a(Ve.p, { id: r.descriptionId, ...o, ref: e });
|
|
2608
2610
|
}
|
|
2609
2611
|
);
|
|
2610
2612
|
Pi.displayName = Wn;
|
|
2611
2613
|
var Hn = "DialogClose", $n = X.forwardRef(
|
|
2612
2614
|
(t, e) => {
|
|
2613
|
-
const { __scopeDialog: n, ...
|
|
2615
|
+
const { __scopeDialog: n, ...o } = t, r = he(Hn, n);
|
|
2614
2616
|
return /* @__PURE__ */ a(
|
|
2615
2617
|
Ve.button,
|
|
2616
2618
|
{
|
|
2617
2619
|
type: "button",
|
|
2618
|
-
...
|
|
2620
|
+
...o,
|
|
2619
2621
|
ref: e,
|
|
2620
|
-
onClick: $e(t.onClick, () =>
|
|
2622
|
+
onClick: $e(t.onClick, () => r.onOpenChange(!1))
|
|
2621
2623
|
}
|
|
2622
2624
|
);
|
|
2623
2625
|
}
|
|
@@ -2626,7 +2628,7 @@ $n.displayName = Hn;
|
|
|
2626
2628
|
function Lt(t) {
|
|
2627
2629
|
return t ? "open" : "closed";
|
|
2628
2630
|
}
|
|
2629
|
-
var qn = "DialogTitleWarning", [ic, Gn] =
|
|
2631
|
+
var qn = "DialogTitleWarning", [ic, Gn] = ho(qn, {
|
|
2630
2632
|
contentName: Le,
|
|
2631
2633
|
titleName: Rt,
|
|
2632
2634
|
docsSlug: "dialog"
|
|
@@ -2640,12 +2642,12 @@ For more information, see https://radix-ui.com/primitives/docs/components/${e.do
|
|
|
2640
2642
|
t && (document.getElementById(t) || console.error(n));
|
|
2641
2643
|
}, [n, t]), null;
|
|
2642
2644
|
}, Si = "DialogDescriptionWarning", Ii = ({ contentRef: t, descriptionId: e }) => {
|
|
2643
|
-
const
|
|
2645
|
+
const o = `Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${Gn(Si).contentName}}.`;
|
|
2644
2646
|
return X.useEffect(() => {
|
|
2645
2647
|
var i;
|
|
2646
|
-
const
|
|
2647
|
-
e &&
|
|
2648
|
-
}, [
|
|
2648
|
+
const r = (i = t.current) == null ? void 0 : i.getAttribute("aria-describedby");
|
|
2649
|
+
e && r && (document.getElementById(e) || console.warn(o));
|
|
2650
|
+
}, [o, t, e]), null;
|
|
2649
2651
|
}, xi = Nn, Ri = An, Li = Mn, Ei = zn, Ni = kn, Oi = $n;
|
|
2650
2652
|
const xe = {
|
|
2651
2653
|
"rp-dialog-wrapper": "_rp-dialog-wrapper_slqo7_1",
|
|
@@ -2656,7 +2658,7 @@ const xe = {
|
|
|
2656
2658
|
"rp-dialog-close": "_rp-dialog-close_slqo7_47",
|
|
2657
2659
|
"rp-properties-divider": "_rp-properties-divider_slqo7_55"
|
|
2658
2660
|
}, Di = () => {
|
|
2659
|
-
const { pdfProperties: t } =
|
|
2661
|
+
const { pdfProperties: t } = re(), { container: e } = be(), { activeDocumentProperties: n, setActiveDocumentProperties: o } = Sr(), { localeMessages: r } = me(), i = W(() => {
|
|
2660
2662
|
if (!t)
|
|
2661
2663
|
return [];
|
|
2662
2664
|
const {
|
|
@@ -2667,41 +2669,41 @@ const xe = {
|
|
|
2667
2669
|
subject: m,
|
|
2668
2670
|
createdOn: P,
|
|
2669
2671
|
creator: u,
|
|
2670
|
-
keywords:
|
|
2671
|
-
modifiedOn:
|
|
2672
|
+
keywords: C,
|
|
2673
|
+
modifiedOn: T,
|
|
2672
2674
|
pdfProducer: b,
|
|
2673
2675
|
pdfVersion: g,
|
|
2674
2676
|
pageCount: S
|
|
2675
2677
|
} = t;
|
|
2676
2678
|
return [
|
|
2677
|
-
{ label:
|
|
2678
|
-
{ label:
|
|
2679
|
+
{ label: r == null ? void 0 : r.propertiesFilenameLabel, value: l },
|
|
2680
|
+
{ label: r == null ? void 0 : r.propertiesFileSizeLabel, value: c },
|
|
2679
2681
|
{ separate: !0 },
|
|
2680
|
-
{ label:
|
|
2681
|
-
{ label:
|
|
2682
|
-
{ label:
|
|
2683
|
-
{ label:
|
|
2684
|
-
{ label:
|
|
2682
|
+
{ label: r == null ? void 0 : r.propertiesTitleLabel, value: d },
|
|
2683
|
+
{ label: r == null ? void 0 : r.propertiesAuthorLabel, value: f },
|
|
2684
|
+
{ label: r == null ? void 0 : r.propertiesSubjectLabel, value: m },
|
|
2685
|
+
{ label: r == null ? void 0 : r.propertiesKeywordLabel, value: C },
|
|
2686
|
+
{ label: r == null ? void 0 : r.propertiesCreatorLabel, value: u },
|
|
2685
2687
|
{
|
|
2686
|
-
label:
|
|
2688
|
+
label: r == null ? void 0 : r.propertiesCreateOnLabel,
|
|
2687
2689
|
value: P ? zt(P) : ""
|
|
2688
2690
|
},
|
|
2689
2691
|
{
|
|
2690
|
-
label:
|
|
2691
|
-
value:
|
|
2692
|
+
label: r == null ? void 0 : r.propertiesModifiedOnLabel,
|
|
2693
|
+
value: T ? zt(T) : ""
|
|
2692
2694
|
},
|
|
2693
2695
|
{ separate: !0 },
|
|
2694
|
-
{ label:
|
|
2695
|
-
{ label:
|
|
2696
|
-
{ label:
|
|
2696
|
+
{ label: r == null ? void 0 : r.propertiesPDFProducerLabel, value: b },
|
|
2697
|
+
{ label: r == null ? void 0 : r.propertiesPDFVersionLabel, value: g },
|
|
2698
|
+
{ label: r == null ? void 0 : r.propertiesPageCountLabel, value: S }
|
|
2697
2699
|
];
|
|
2698
|
-
}, [t,
|
|
2699
|
-
return /* @__PURE__ */ a(xi, { open: n, onOpenChange:
|
|
2700
|
+
}, [t, r]);
|
|
2701
|
+
return /* @__PURE__ */ a(xi, { open: n, onOpenChange: o, children: /* @__PURE__ */ a(Ri, { container: e, children: /* @__PURE__ */ $("div", { className: xe["rp-dialog-wrapper"], children: [
|
|
2700
2702
|
/* @__PURE__ */ a(Li, { className: xe["rp-dialog-overlay"] }),
|
|
2701
2703
|
/* @__PURE__ */ $(Ei, { className: xe["rp-document-dialog"], children: [
|
|
2702
|
-
/* @__PURE__ */ a(Ni, { className: xe["rp-dialog-title"], children:
|
|
2703
|
-
/* @__PURE__ */ a("div", { className: xe["rp-document-properties"], children: i.map((c, l) => /* @__PURE__ */ a("div", { children: c.separate ? /* @__PURE__ */ a("div", { className: xe["rp-properties-divider"] }) : /* @__PURE__ */ a(
|
|
2704
|
-
/* @__PURE__ */ a(Oi, { asChild: !0, className: xe["rp-dialog-close"], children: /* @__PURE__ */ a(
|
|
2704
|
+
/* @__PURE__ */ a(Ni, { className: xe["rp-dialog-title"], children: r == null ? void 0 : r.documentPropertiesLabel }),
|
|
2705
|
+
/* @__PURE__ */ a("div", { className: xe["rp-document-properties"], children: i.map((c, l) => /* @__PURE__ */ a("div", { children: c.separate ? /* @__PURE__ */ a("div", { className: xe["rp-properties-divider"] }) : /* @__PURE__ */ a(Fr, { label: c.label, value: c.value }) }, l)) }),
|
|
2706
|
+
/* @__PURE__ */ a(Oi, { asChild: !0, className: xe["rp-dialog-close"], children: /* @__PURE__ */ a(Co, {}) })
|
|
2705
2707
|
] })
|
|
2706
2708
|
] }) }) });
|
|
2707
2709
|
}, Ai = {
|
|
@@ -2710,7 +2712,7 @@ const xe = {
|
|
|
2710
2712
|
const n = await (await fetch(t)).blob();
|
|
2711
2713
|
return Mi(n);
|
|
2712
2714
|
}, Un = () => {
|
|
2713
|
-
const { filename: t, pdfSrc: e } =
|
|
2715
|
+
const { filename: t, pdfSrc: e } = re(), { downloadFilename: n } = Tr(), o = (i) => {
|
|
2714
2716
|
const c = n || i;
|
|
2715
2717
|
return c.endsWith(en) ? c : `${c}${en}`;
|
|
2716
2718
|
};
|
|
@@ -2718,33 +2720,33 @@ const xe = {
|
|
|
2718
2720
|
if (!t || !e)
|
|
2719
2721
|
throw new Error("There is no PDF source to download");
|
|
2720
2722
|
const i = document.createElement("a");
|
|
2721
|
-
i.href = await zi(e), i.download =
|
|
2723
|
+
i.href = await zi(e), i.download = o(t), document.body.appendChild(i), i.click(), document.body.removeChild(i);
|
|
2722
2724
|
}, [t, e]) };
|
|
2723
2725
|
}, Vn = () => {
|
|
2724
2726
|
const { downloadIcon: t } = Pe(), { downloadIcon: e } = Te();
|
|
2725
|
-
return t || e || /* @__PURE__ */ a(
|
|
2727
|
+
return t || e || /* @__PURE__ */ a(xo, {});
|
|
2726
2728
|
}, Bn = ({ children: t, className: e, localeMessages: n }) => /* @__PURE__ */ a(Q, { className: e, content: n == null ? void 0 : n.downloadFileTooltip, children: t }), Fi = ({ download: t, localeMessages: e }) => /* @__PURE__ */ a(Bn, { localeMessages: e, children: /* @__PURE__ */ a(we, { onClick: t, "aria-label": e == null ? void 0 : e.downloadFileTooltip, children: /* @__PURE__ */ a(Vn, {}) }) }), ki = ({ download: t, localeMessages: e }) => /* @__PURE__ */ a(Qe, { onClick: t, children: /* @__PURE__ */ $(Bn, { className: "rp-menu-item", localeMessages: e, children: [
|
|
2727
2729
|
/* @__PURE__ */ a("div", { className: "rp-menu-item-left", children: /* @__PURE__ */ a(Vn, {}) }),
|
|
2728
2730
|
e == null ? void 0 : e.downloadFileLabel
|
|
2729
2731
|
] }) }), jn = () => {
|
|
2730
|
-
const { download: t } = Un(), { downloadTool: e = !0 } = Ce(), { downloadTool: n = !0 } = Ne(), { isSmallScreen:
|
|
2731
|
-
return !e || !n ? null :
|
|
2732
|
+
const { download: t } = Un(), { downloadTool: e = !0 } = Ce(), { downloadTool: n = !0 } = Ne(), { isSmallScreen: o } = Oe(), { localeMessages: r } = me(), i = r == null ? void 0 : r.downloadFileTooltip;
|
|
2733
|
+
return !e || !n ? null : o ? /* @__PURE__ */ a(ki, { download: t, localeMessages: r }) : typeof e == "function" ? /* @__PURE__ */ a(Q, { content: i, children: /* @__PURE__ */ a(e, { download: t }) }) : typeof n == "function" ? /* @__PURE__ */ a(Q, { content: i, children: /* @__PURE__ */ a(n, { download: t }) }) : /* @__PURE__ */ a(Fi, { download: t, localeMessages: r });
|
|
2732
2734
|
}, Kn = () => {
|
|
2733
2735
|
const { printIcon: t } = Pe(), { printIcon: e } = Te();
|
|
2734
|
-
return t || e || /* @__PURE__ */ a(
|
|
2736
|
+
return t || e || /* @__PURE__ */ a(Ro, {});
|
|
2735
2737
|
}, Zn = ({ children: t, className: e, localeMessages: n }) => /* @__PURE__ */ a(Q, { className: e, content: n == null ? void 0 : n.printTooltip, children: t }), Wi = ({ print: t, localeMessages: e }) => /* @__PURE__ */ a(Zn, { localeMessages: e, children: /* @__PURE__ */ a(we, { onClick: t, "aria-label": e == null ? void 0 : e.printTooltip, children: /* @__PURE__ */ a(Kn, {}) }) }), Hi = ({ print: t, localeMessages: e }) => /* @__PURE__ */ a(Qe, { onClick: t, children: /* @__PURE__ */ $(Zn, { className: "rp-menu-item", localeMessages: e, children: [
|
|
2736
2738
|
/* @__PURE__ */ a("div", { className: "rp-menu-item-left", children: /* @__PURE__ */ a(Kn, {}) }),
|
|
2737
2739
|
e == null ? void 0 : e.printLabel
|
|
2738
2740
|
] }) }), Xn = () => {
|
|
2739
|
-
const { print: t, cancel: e, setOnProgress: n, setOnComplete:
|
|
2741
|
+
const { print: t, cancel: e, setOnProgress: n, setOnComplete: o, setOnError: r, progress: i } = nt(), { printTool: c = !0 } = Ce(), { printTool: l = !0 } = Ne(), { isSmallScreen: d } = Oe(), { localeMessages: f } = me(), m = f == null ? void 0 : f.printTooltip;
|
|
2740
2742
|
return !c || !l ? null : d ? /* @__PURE__ */ a(Hi, { print: t, localeMessages: f }) : typeof c == "function" ? /* @__PURE__ */ a(Q, { content: m, children: /* @__PURE__ */ a(
|
|
2741
2743
|
c,
|
|
2742
2744
|
{
|
|
2743
2745
|
print: t,
|
|
2744
2746
|
cancel: e,
|
|
2745
2747
|
setOnProgress: n,
|
|
2746
|
-
setOnError:
|
|
2747
|
-
setOnComplete:
|
|
2748
|
+
setOnError: r,
|
|
2749
|
+
setOnComplete: o,
|
|
2748
2750
|
progress: i
|
|
2749
2751
|
}
|
|
2750
2752
|
) }) : typeof l == "function" ? /* @__PURE__ */ a(Q, { content: m, children: /* @__PURE__ */ a(
|
|
@@ -2753,8 +2755,8 @@ const xe = {
|
|
|
2753
2755
|
print: t,
|
|
2754
2756
|
cancel: e,
|
|
2755
2757
|
setOnProgress: n,
|
|
2756
|
-
setOnError:
|
|
2757
|
-
setOnComplete:
|
|
2758
|
+
setOnError: r,
|
|
2759
|
+
setOnComplete: o,
|
|
2758
2760
|
progress: i
|
|
2759
2761
|
}
|
|
2760
2762
|
) }) : /* @__PURE__ */ a(Wi, { print: t, localeMessages: f });
|
|
@@ -2767,12 +2769,12 @@ const xe = {
|
|
|
2767
2769
|
const { goToLastPageIcon: t } = Pe(), { goToLastPageIcon: e } = Te();
|
|
2768
2770
|
return t || e || /* @__PURE__ */ a(gn, {});
|
|
2769
2771
|
}, tn = { width: "100%" }, Ui = () => {
|
|
2770
|
-
const { goToPage: t, totalPages: e, focusedPage: n } = pe(), { jumpNavigationTool:
|
|
2772
|
+
const { goToPage: t, totalPages: e, focusedPage: n } = pe(), { jumpNavigationTool: o = !0 } = Ce(), { jumpNavigationTool: r = !0 } = Ne(), { localeMessages: i } = me(), c = W(() => n === 1, [n]), l = W(() => n === e, [n, e]), d = E(() => {
|
|
2771
2773
|
t(1);
|
|
2772
2774
|
}, [t]), f = E(() => {
|
|
2773
2775
|
t(e);
|
|
2774
2776
|
}, [t, e]);
|
|
2775
|
-
return !
|
|
2777
|
+
return !o || !r ? null : /* @__PURE__ */ $(fn, { children: [
|
|
2776
2778
|
/* @__PURE__ */ a(Qe, { onClick: d, children: /* @__PURE__ */ a(Q, { content: i == null ? void 0 : i.firstPageTooltip, style: tn, children: /* @__PURE__ */ $("div", { className: "rp-menu-item", "aria-disabled": c, children: [
|
|
2777
2779
|
/* @__PURE__ */ a("div", { className: "rp-menu-item-left", children: /* @__PURE__ */ a(qi, {}) }),
|
|
2778
2780
|
/* @__PURE__ */ a("span", { children: i == null ? void 0 : i.firstPageLabel })
|
|
@@ -2784,7 +2786,7 @@ const xe = {
|
|
|
2784
2786
|
/* @__PURE__ */ a(pn, {})
|
|
2785
2787
|
] });
|
|
2786
2788
|
}, Vi = () => {
|
|
2787
|
-
const [t, e] = q(!1), { container: n, pagesRef:
|
|
2789
|
+
const [t, e] = q(!1), { container: n, pagesRef: o } = be(), { isSmallScreen: r } = Oe(), {
|
|
2788
2790
|
openFileTool: i,
|
|
2789
2791
|
downloadTool: c,
|
|
2790
2792
|
documentProperties: l,
|
|
@@ -2793,8 +2795,8 @@ const xe = {
|
|
|
2793
2795
|
selectionModeTool: m,
|
|
2794
2796
|
jumpNavigationTool: P,
|
|
2795
2797
|
printTool: u,
|
|
2796
|
-
fullscreenTool:
|
|
2797
|
-
viewModeTool:
|
|
2798
|
+
fullscreenTool: C,
|
|
2799
|
+
viewModeTool: T
|
|
2798
2800
|
} = Ce(), {
|
|
2799
2801
|
openFileTool: b,
|
|
2800
2802
|
downloadTool: g,
|
|
@@ -2810,18 +2812,18 @@ const xe = {
|
|
|
2810
2812
|
new ResizeObserver((z) => {
|
|
2811
2813
|
R(z[0].contentRect.height);
|
|
2812
2814
|
})
|
|
2813
|
-
), N = W(() => P || f || m || d || l ||
|
|
2815
|
+
), N = W(() => P || f || m || d || l || T || r && (i || c || u || C), [
|
|
2814
2816
|
i,
|
|
2815
2817
|
c,
|
|
2816
2818
|
u,
|
|
2817
|
-
|
|
2819
|
+
C,
|
|
2818
2820
|
l,
|
|
2819
2821
|
d,
|
|
2820
2822
|
f,
|
|
2821
2823
|
m,
|
|
2822
2824
|
P,
|
|
2823
|
-
|
|
2824
|
-
]), F = W(() => s || h || p || v || S || y ||
|
|
2825
|
+
r
|
|
2826
|
+
]), F = W(() => s || h || p || v || S || y || r && (b || g || w || _), [
|
|
2825
2827
|
b,
|
|
2826
2828
|
g,
|
|
2827
2829
|
w,
|
|
@@ -2831,17 +2833,17 @@ const xe = {
|
|
|
2831
2833
|
h,
|
|
2832
2834
|
p,
|
|
2833
2835
|
s,
|
|
2834
|
-
|
|
2836
|
+
r
|
|
2835
2837
|
]);
|
|
2836
|
-
return M(() => (
|
|
2838
|
+
return M(() => (o && L.current.observe(o), () => {
|
|
2837
2839
|
L.current.disconnect();
|
|
2838
|
-
}), [
|
|
2840
|
+
}), [o]), !N || !F ? null : /* @__PURE__ */ $(fe, { children: [
|
|
2839
2841
|
/* @__PURE__ */ a(
|
|
2840
2842
|
un,
|
|
2841
2843
|
{
|
|
2842
2844
|
container: n,
|
|
2843
2845
|
onOpenChange: e,
|
|
2844
|
-
triggerComponent: /* @__PURE__ */ a("div", { role: "button", children: /* @__PURE__ */ a(Q, { content: x == null ? void 0 : x.moreOptionTooltip, children: /* @__PURE__ */ a(we, { active: t, "aria-label": x == null ? void 0 : x.moreOptionTooltip, children: /* @__PURE__ */ a(
|
|
2846
|
+
triggerComponent: /* @__PURE__ */ a("div", { role: "button", children: /* @__PURE__ */ a(Q, { content: x == null ? void 0 : x.moreOptionTooltip, children: /* @__PURE__ */ a(we, { active: t, "aria-label": x == null ? void 0 : x.moreOptionTooltip, children: /* @__PURE__ */ a(uo, {}) }) }) }),
|
|
2845
2847
|
side: "bottom",
|
|
2846
2848
|
avoidCollisions: !1,
|
|
2847
2849
|
children: /* @__PURE__ */ $(
|
|
@@ -2851,7 +2853,7 @@ const xe = {
|
|
|
2851
2853
|
className: Ai["rp-other-tool-content"],
|
|
2852
2854
|
"data-rp": "moreOptionsDropdown",
|
|
2853
2855
|
children: [
|
|
2854
|
-
|
|
2856
|
+
r && /* @__PURE__ */ $(fn, { children: [
|
|
2855
2857
|
/* @__PURE__ */ a(hn, {}),
|
|
2856
2858
|
/* @__PURE__ */ a(jn, {}),
|
|
2857
2859
|
/* @__PURE__ */ a(Xn, {}),
|
|
@@ -2859,11 +2861,11 @@ const xe = {
|
|
|
2859
2861
|
/* @__PURE__ */ a(pn, {})
|
|
2860
2862
|
] }),
|
|
2861
2863
|
/* @__PURE__ */ a(Ui, {}),
|
|
2862
|
-
/* @__PURE__ */ a(
|
|
2863
|
-
/* @__PURE__ */ a(
|
|
2864
|
-
/* @__PURE__ */ a(
|
|
2865
|
-
/* @__PURE__ */ a(
|
|
2866
|
-
/* @__PURE__ */ a(
|
|
2864
|
+
/* @__PURE__ */ a(yo, {}),
|
|
2865
|
+
/* @__PURE__ */ a(Lo, {}),
|
|
2866
|
+
/* @__PURE__ */ a(So, {}),
|
|
2867
|
+
/* @__PURE__ */ a(Io, {}),
|
|
2868
|
+
/* @__PURE__ */ a(Po, {})
|
|
2867
2869
|
]
|
|
2868
2870
|
}
|
|
2869
2871
|
)
|
|
@@ -2874,7 +2876,7 @@ const xe = {
|
|
|
2874
2876
|
}, Bi = () => {
|
|
2875
2877
|
const { isSmallScreen: t } = Oe();
|
|
2876
2878
|
return /* @__PURE__ */ $(fe, { children: [
|
|
2877
|
-
/* @__PURE__ */ a(
|
|
2879
|
+
/* @__PURE__ */ a(lo, {}),
|
|
2878
2880
|
!t && /* @__PURE__ */ $(fe, { children: [
|
|
2879
2881
|
/* @__PURE__ */ a(hn, {}),
|
|
2880
2882
|
/* @__PURE__ */ a(jn, {}),
|
|
@@ -2884,14 +2886,14 @@ const xe = {
|
|
|
2884
2886
|
/* @__PURE__ */ a(Vi, {})
|
|
2885
2887
|
] });
|
|
2886
2888
|
}, nn = () => {
|
|
2887
|
-
const { totalMatches: t, nextMatch: e, prevMatch: n } = St(), { localeMessages:
|
|
2889
|
+
const { totalMatches: t, nextMatch: e, prevMatch: n } = St(), { localeMessages: o } = me();
|
|
2888
2890
|
return /* @__PURE__ */ $(fe, { children: [
|
|
2889
2891
|
/* @__PURE__ */ a(
|
|
2890
2892
|
Q,
|
|
2891
2893
|
{
|
|
2892
|
-
content:
|
|
2894
|
+
content: o == null ? void 0 : o.searchPrevTooltip,
|
|
2893
2895
|
className: te["rp-search-tool-result-navigator"],
|
|
2894
|
-
children: /* @__PURE__ */ a(we, { tabIndex: 0, onClick: n, "aria-label":
|
|
2896
|
+
children: /* @__PURE__ */ a(we, { tabIndex: 0, onClick: n, "aria-label": o == null ? void 0 : o.searchPrevTooltip, children: /* @__PURE__ */ a(
|
|
2895
2897
|
Xe,
|
|
2896
2898
|
{
|
|
2897
2899
|
className: te["rp-search-tool-input-icon"],
|
|
@@ -2903,9 +2905,9 @@ const xe = {
|
|
|
2903
2905
|
/* @__PURE__ */ a(
|
|
2904
2906
|
Q,
|
|
2905
2907
|
{
|
|
2906
|
-
content:
|
|
2908
|
+
content: o == null ? void 0 : o.searchNextTooltip,
|
|
2907
2909
|
className: te["rp-search-tool-result-navigator"],
|
|
2908
|
-
children: /* @__PURE__ */ a(we, { tabIndex: 0, onClick: e, "aria-label":
|
|
2910
|
+
children: /* @__PURE__ */ a(we, { tabIndex: 0, onClick: e, "aria-label": o == null ? void 0 : o.searchNextTooltip, children: /* @__PURE__ */ a(
|
|
2909
2911
|
Xe,
|
|
2910
2912
|
{
|
|
2911
2913
|
style: { transform: "rotate(180deg" },
|
|
@@ -2920,20 +2922,20 @@ const xe = {
|
|
|
2920
2922
|
const { searchIcon: t } = Pe(), { searchIcon: e } = Te();
|
|
2921
2923
|
return t || e || /* @__PURE__ */ a(vn, {});
|
|
2922
2924
|
}, Ki = ({ icon: t }) => {
|
|
2923
|
-
const { container: e } = be(), [n,
|
|
2925
|
+
const { container: e } = be(), [n, o] = q(!1), { pdf: r } = re(), [i, c] = q(null), {
|
|
2924
2926
|
searchOptions: l,
|
|
2925
2927
|
setSearchOptions: d,
|
|
2926
2928
|
loading: f,
|
|
2927
2929
|
setSearch: m,
|
|
2928
2930
|
totalMatches: P,
|
|
2929
2931
|
currentMatchPosition: u,
|
|
2930
|
-
nextMatch:
|
|
2931
|
-
prevMatch:
|
|
2932
|
+
nextMatch: C,
|
|
2933
|
+
prevMatch: T,
|
|
2932
2934
|
search: b
|
|
2933
2935
|
} = St(), { searchTool: g = !0 } = Ce(), { searchTool: S = !0 } = Ne(), [v, h] = q(b), { localeMessages: p } = me(), { isSmallScreen: s } = Oe(), [w, _] = q(null), [y, x] = q(!1), I = E(() => {
|
|
2934
|
-
|
|
2936
|
+
o(!0);
|
|
2935
2937
|
}, []), R = E(() => {
|
|
2936
|
-
m(""), h(""),
|
|
2938
|
+
m(""), h(""), o(!1);
|
|
2937
2939
|
}, [m]), L = (G) => {
|
|
2938
2940
|
const K = G.key === "Enter", Y = G.key === " ";
|
|
2939
2941
|
(K || Y) && R();
|
|
@@ -2944,15 +2946,15 @@ const xe = {
|
|
|
2944
2946
|
[n]
|
|
2945
2947
|
), F = E(
|
|
2946
2948
|
(G) => {
|
|
2947
|
-
G.shiftKey && G.key === "Enter" ?
|
|
2949
|
+
G.shiftKey && G.key === "Enter" ? T() : G.key === "Enter" && b !== v ? m(v) : G.key === "Enter" && C();
|
|
2948
2950
|
},
|
|
2949
|
-
[v,
|
|
2951
|
+
[v, T, C, m, b]
|
|
2950
2952
|
);
|
|
2951
2953
|
M(() => {
|
|
2952
2954
|
h(b);
|
|
2953
2955
|
}, [b]), M(() => {
|
|
2954
|
-
b &&
|
|
2955
|
-
}, [b,
|
|
2956
|
+
b && r && x(!0);
|
|
2957
|
+
}, [b, r]), M(() => {
|
|
2956
2958
|
b && b.trim() !== "" && (h(b), m(b));
|
|
2957
2959
|
}, []), M(() => (window.addEventListener("keydown", N), () => {
|
|
2958
2960
|
window.removeEventListener("keydown", N);
|
|
@@ -2977,8 +2979,8 @@ const xe = {
|
|
|
2977
2979
|
[d]
|
|
2978
2980
|
);
|
|
2979
2981
|
M(() => {
|
|
2980
|
-
|
|
2981
|
-
}, [
|
|
2982
|
+
r && y && R();
|
|
2983
|
+
}, [r, R]);
|
|
2982
2984
|
const V = W(() => (w == null ? void 0 : w.querySelectorAll('[tabindex]:not([tabindex="-1"])')) || [], [w]), J = E(
|
|
2983
2985
|
(G) => {
|
|
2984
2986
|
if (G.key === "Tab") {
|
|
@@ -2989,9 +2991,9 @@ const xe = {
|
|
|
2989
2991
|
});
|
|
2990
2992
|
let ee = Y + 1;
|
|
2991
2993
|
G.shiftKey && (ee = Y - 1);
|
|
2992
|
-
const
|
|
2993
|
-
if (
|
|
2994
|
-
|
|
2994
|
+
const oe = V[ee];
|
|
2995
|
+
if (oe)
|
|
2996
|
+
oe.focus();
|
|
2995
2997
|
else if (ee > V.length - 1) {
|
|
2996
2998
|
const ie = V[0];
|
|
2997
2999
|
ie && ie.focus();
|
|
@@ -3044,7 +3046,7 @@ const xe = {
|
|
|
3044
3046
|
id: "search-input",
|
|
3045
3047
|
name: "search-input",
|
|
3046
3048
|
tabIndex: 0,
|
|
3047
|
-
children: !!v && /* @__PURE__ */ a("span", { className: te["rp-search-tool-input-clear"], onClick: D, children: /* @__PURE__ */ a(
|
|
3049
|
+
children: !!v && /* @__PURE__ */ a("span", { className: te["rp-search-tool-input-clear"], onClick: D, children: /* @__PURE__ */ a(No, {}) })
|
|
3048
3050
|
}
|
|
3049
3051
|
) }),
|
|
3050
3052
|
f ? /* @__PURE__ */ a("span", { children: /* @__PURE__ */ a(dn, { className: te["rp-search-loader-icon"] }) }) : /* @__PURE__ */ a("span", { children: O }),
|
|
@@ -3110,8 +3112,8 @@ const xe = {
|
|
|
3110
3112
|
/* @__PURE__ */ a("button", { className: de(Ae["rp-loading-cancel-button"]), onClick: e, children: n == null ? void 0 : n.printCancelLabel })
|
|
3111
3113
|
] }) });
|
|
3112
3114
|
}, Qi = tt((t, e) => {
|
|
3113
|
-
const { showPrintProgress: n = !0 } = Ce(), { showPrintProgress:
|
|
3114
|
-
if (!(!n || !
|
|
3115
|
+
const { showPrintProgress: n = !0 } = Ce(), { showPrintProgress: o = !0 } = Ne(), { progress: r } = nt(), { isSmallScreen: i } = Oe(), { percentage: c } = r || {}, l = () => i ? { gridTemplateColumns: "25% 60% 15%" } : void 0, d = () => {
|
|
3116
|
+
if (!(!n || !o || !c))
|
|
3115
3117
|
return /* @__PURE__ */ a(Xi, { percentage: c });
|
|
3116
3118
|
};
|
|
3117
3119
|
return /* @__PURE__ */ $("div", { children: [
|
|
@@ -3120,7 +3122,7 @@ const xe = {
|
|
|
3120
3122
|
/* @__PURE__ */ a(Ki, {}),
|
|
3121
3123
|
/* @__PURE__ */ a(mi, {})
|
|
3122
3124
|
] }),
|
|
3123
|
-
/* @__PURE__ */ a("div", { "data-rp": "topBarCenter", className: We["rp-toolbar-middle"], children: /* @__PURE__ */ a(
|
|
3125
|
+
/* @__PURE__ */ a("div", { "data-rp": "topBarCenter", className: We["rp-toolbar-middle"], children: /* @__PURE__ */ a(Eo, {}) }),
|
|
3124
3126
|
/* @__PURE__ */ a("div", { "data-rp": "topBarRight", className: We["rp-toolbar-end"], children: /* @__PURE__ */ a(Bi, {}) })
|
|
3125
3127
|
] }) }),
|
|
3126
3128
|
/* @__PURE__ */ a(d, {})
|
|
@@ -3136,12 +3138,12 @@ const xe = {
|
|
|
3136
3138
|
"rp-thumbnail-active": "_rp-thumbnail-active_3fenb_22",
|
|
3137
3139
|
"rp-thumbnail-loader": "_rp-thumbnail-loader_3fenb_31"
|
|
3138
3140
|
}, Yi = (t) => {
|
|
3139
|
-
const { pageNumber: e, isFocused: n, viewport:
|
|
3140
|
-
width: Math.round(
|
|
3141
|
-
height: Math.round(
|
|
3142
|
-
}), [
|
|
3143
|
-
e &&
|
|
3144
|
-
}, [
|
|
3141
|
+
const { pageNumber: e, isFocused: n, viewport: o } = t, { goToPage: r } = pe(), { pageRotate: i } = et(), c = k(null), l = Sn(), { pages: d } = re(), [f, m] = q(null), P = k(!1), u = k(), C = W(() => n ? He["rp-thumbnail-active"] : "", [n]), T = W(() => ({
|
|
3142
|
+
width: Math.round(o.width),
|
|
3143
|
+
height: Math.round(o.height)
|
|
3144
|
+
}), [o]), b = E(() => {
|
|
3145
|
+
e && r(e);
|
|
3146
|
+
}, [r, e]);
|
|
3145
3147
|
return M(() => {
|
|
3146
3148
|
const g = d.get(e);
|
|
3147
3149
|
u.current === g || (m(null), u.current = g);
|
|
@@ -3196,13 +3198,13 @@ const xe = {
|
|
|
3196
3198
|
style: {
|
|
3197
3199
|
transform: `rotate(${i[e || 0]}deg)`
|
|
3198
3200
|
},
|
|
3199
|
-
className: de(
|
|
3201
|
+
className: de(C, He["rp-thumbnail"]),
|
|
3200
3202
|
children: f ? /* @__PURE__ */ a(
|
|
3201
3203
|
"img",
|
|
3202
3204
|
{
|
|
3203
3205
|
src: f,
|
|
3204
|
-
width:
|
|
3205
|
-
height:
|
|
3206
|
+
width: T.width,
|
|
3207
|
+
height: T.height,
|
|
3206
3208
|
alt: "thumbnail"
|
|
3207
3209
|
}
|
|
3208
3210
|
) : /* @__PURE__ */ a(
|
|
@@ -3210,8 +3212,8 @@ const xe = {
|
|
|
3210
3212
|
{
|
|
3211
3213
|
className: He["rp-thumbnail-loader"],
|
|
3212
3214
|
style: {
|
|
3213
|
-
width: `${
|
|
3214
|
-
height: `${
|
|
3215
|
+
width: `${T.width}px`,
|
|
3216
|
+
height: `${T.height}px`
|
|
3215
3217
|
},
|
|
3216
3218
|
children: /* @__PURE__ */ a(dn, {})
|
|
3217
3219
|
}
|
|
@@ -3222,40 +3224,40 @@ const xe = {
|
|
|
3222
3224
|
]
|
|
3223
3225
|
}
|
|
3224
3226
|
);
|
|
3225
|
-
},
|
|
3227
|
+
}, rn = {
|
|
3226
3228
|
"rp-thumbnails-container": "_rp-thumbnails-container_16vqr_1",
|
|
3227
3229
|
"rp-thumbnails": "_rp-thumbnails_16vqr_1"
|
|
3228
3230
|
}, Ji = 16, ea = (t, e) => {
|
|
3229
3231
|
const n = t == null ? void 0 : t.querySelector(`#page-${e}`);
|
|
3230
3232
|
t && (n != null && n.offsetTop) && (t.scrollTop = (n == null ? void 0 : n.offsetTop) - Ji);
|
|
3231
3233
|
}, ta = tt((t, e) => {
|
|
3232
|
-
const { show: n, width:
|
|
3233
|
-
|
|
3234
|
-
const u = W(() => Object.values(c), [c]),
|
|
3235
|
-
const
|
|
3236
|
-
|
|
3234
|
+
const { show: n, width: o } = t, { focusedPage: r, totalPages: i } = pe(), { thumbnailPages: c, addPage: l, thumbnailLength: d, addToPage: f } = Cn(), m = k(null), P = k(1);
|
|
3235
|
+
on(e, () => m.current);
|
|
3236
|
+
const u = W(() => Object.values(c), [c]), C = E(() => {
|
|
3237
|
+
const T = d + 1;
|
|
3238
|
+
T <= i && l(T);
|
|
3237
3239
|
}, [l, i, d]);
|
|
3238
3240
|
return M(() => {
|
|
3239
|
-
|
|
3240
|
-
}, [
|
|
3241
|
+
r > d && i > d ? f(r) : n && P.current !== r && (ea(m.current, r), P.current = r);
|
|
3242
|
+
}, [r, d, f, n, u]), kr(m.current, C), /* @__PURE__ */ a("div", { ref: m, className: rn["rp-thumbnails-container"], style: { width: o }, children: /* @__PURE__ */ a("div", { className: rn["rp-thumbnails"], children: n ? u.map((T, b) => {
|
|
3241
3243
|
var g, S;
|
|
3242
3244
|
return /* @__PURE__ */ a(
|
|
3243
3245
|
Yi,
|
|
3244
3246
|
{
|
|
3245
|
-
isFocused:
|
|
3246
|
-
pageNumber: (S =
|
|
3247
|
-
loading:
|
|
3248
|
-
viewport:
|
|
3249
|
-
defaultRotation:
|
|
3247
|
+
isFocused: r === ((g = T.page) == null ? void 0 : g.pageNumber),
|
|
3248
|
+
pageNumber: (S = T.page) == null ? void 0 : S.pageNumber,
|
|
3249
|
+
loading: T.loading,
|
|
3250
|
+
viewport: T.viewport,
|
|
3251
|
+
defaultRotation: T.defaultRotation
|
|
3250
3252
|
},
|
|
3251
3253
|
b
|
|
3252
3254
|
);
|
|
3253
3255
|
}) : null }) });
|
|
3254
3256
|
}), na = () => {
|
|
3255
3257
|
const { thumbnailIcon: t } = Pe(), { thumbnailIcon: e } = Te();
|
|
3256
|
-
return t || e || /* @__PURE__ */ a(
|
|
3257
|
-
},
|
|
3258
|
-
const { active: t, setActive: e } = Cn(), [n,
|
|
3258
|
+
return t || e || /* @__PURE__ */ a(xr, {});
|
|
3259
|
+
}, ra = () => {
|
|
3260
|
+
const { active: t, setActive: e } = Cn(), [n, o] = q(Wr), r = k(null), i = k(null), { thumbnailTool: c, sidebarEnable: l } = Ce(), { localeMessages: d } = me(), f = E(() => {
|
|
3259
3261
|
e((P) => !P);
|
|
3260
3262
|
}, []), m = W(() => typeof c != "boolean" && c ? /* @__PURE__ */ a(c, { onClick: f, active: t }) : c ? /* @__PURE__ */ a(Q, { content: d == null ? void 0 : d.thumbnailTooltip, children: /* @__PURE__ */ a(
|
|
3261
3263
|
we,
|
|
@@ -3281,12 +3283,12 @@ const xe = {
|
|
|
3281
3283
|
hidden: !t,
|
|
3282
3284
|
className: ft["rp-thumbnails-wrapper"],
|
|
3283
3285
|
children: [
|
|
3284
|
-
/* @__PURE__ */ a(ta, { show: t, ref:
|
|
3286
|
+
/* @__PURE__ */ a(ta, { show: t, ref: r }),
|
|
3285
3287
|
/* @__PURE__ */ a(
|
|
3286
|
-
|
|
3288
|
+
Nr,
|
|
3287
3289
|
{
|
|
3288
|
-
onWidthChange:
|
|
3289
|
-
thumbnailRef:
|
|
3290
|
+
onWidthChange: o,
|
|
3291
|
+
thumbnailRef: r,
|
|
3290
3292
|
leftSidebarRef: i
|
|
3291
3293
|
}
|
|
3292
3294
|
)
|
|
@@ -3296,23 +3298,23 @@ const xe = {
|
|
|
3296
3298
|
]
|
|
3297
3299
|
}
|
|
3298
3300
|
) });
|
|
3299
|
-
}, ac =
|
|
3301
|
+
}, ac = sr((t, e) => {
|
|
3300
3302
|
const {
|
|
3301
3303
|
children: n,
|
|
3302
|
-
slots:
|
|
3303
|
-
icons:
|
|
3304
|
+
slots: o,
|
|
3305
|
+
icons: r,
|
|
3304
3306
|
style: i,
|
|
3305
3307
|
className: c,
|
|
3306
3308
|
mobileWidth: l,
|
|
3307
3309
|
onLoaded: d,
|
|
3308
3310
|
cleanupOnLoaded: f,
|
|
3309
3311
|
onLayoutWidthChange: m
|
|
3310
|
-
} = t, [P, u] = q(null), { setContainer:
|
|
3312
|
+
} = t, [P, u] = q(null), { setContainer: C, setContentRef: T } = be(), { loading: b } = re(), { LoaderImageComponent: g } = bt();
|
|
3311
3313
|
return M(() => (d && d(), () => {
|
|
3312
3314
|
f && f();
|
|
3313
3315
|
}), [d, f]), // TODO: deprecated in v2.0.0, remove later ~
|
|
3314
|
-
/* @__PURE__ */ a(Ln, { toolbarRef: P, ref: e, children: /* @__PURE__ */ a(
|
|
3315
|
-
/* @__PURE__ */ $(
|
|
3316
|
+
/* @__PURE__ */ a(Ln, { toolbarRef: P, ref: e, children: /* @__PURE__ */ a(Lr, { mobileWidth: l, onLayoutWidthChange: m, children: /* @__PURE__ */ a(Er, { slots: o, children: /* @__PURE__ */ a(zr, { icons: r, children: /* @__PURE__ */ $(Rr, { getContainerRef: C, style: i, className: c, children: [
|
|
3317
|
+
/* @__PURE__ */ $(Or, { children: [
|
|
3316
3318
|
/* @__PURE__ */ $("div", { className: _e["rp-layout"], children: [
|
|
3317
3319
|
/* @__PURE__ */ a(
|
|
3318
3320
|
Qi,
|
|
@@ -3321,11 +3323,11 @@ const xe = {
|
|
|
3321
3323
|
}
|
|
3322
3324
|
),
|
|
3323
3325
|
/* @__PURE__ */ $("div", { className: _e["rp-content"], children: [
|
|
3324
|
-
/* @__PURE__ */ a("div", { className: _e["rp-sidebar"], children: /* @__PURE__ */ a(
|
|
3325
|
-
/* @__PURE__ */ a("div", { ref:
|
|
3326
|
+
/* @__PURE__ */ a("div", { className: _e["rp-sidebar"], children: /* @__PURE__ */ a(ra, {}) }),
|
|
3327
|
+
/* @__PURE__ */ a("div", { ref: T, className: _e["rp-pages"], children: n })
|
|
3326
3328
|
] })
|
|
3327
3329
|
] }),
|
|
3328
|
-
/* @__PURE__ */ a(
|
|
3330
|
+
/* @__PURE__ */ a(Mr, {})
|
|
3329
3331
|
] }),
|
|
3330
3332
|
b ? /* @__PURE__ */ a(
|
|
3331
3333
|
"div",
|
|
@@ -3369,10 +3371,10 @@ export {
|
|
|
3369
3371
|
yn as B,
|
|
3370
3372
|
Sn as C,
|
|
3371
3373
|
Di as D,
|
|
3372
|
-
|
|
3373
|
-
|
|
3374
|
-
|
|
3375
|
-
|
|
3374
|
+
zo as E,
|
|
3375
|
+
Wo as F,
|
|
3376
|
+
qo as G,
|
|
3377
|
+
Uo as H,
|
|
3376
3378
|
It as I,
|
|
3377
3379
|
ai as J,
|
|
3378
3380
|
li as K,
|
|
@@ -3382,7 +3384,7 @@ export {
|
|
|
3382
3384
|
jn as O,
|
|
3383
3385
|
Ys as P,
|
|
3384
3386
|
Xn as Q,
|
|
3385
|
-
|
|
3387
|
+
rc as R,
|
|
3386
3388
|
Ki as S,
|
|
3387
3389
|
ec as T,
|
|
3388
3390
|
Ui as U,
|
|
@@ -3390,7 +3392,7 @@ export {
|
|
|
3390
3392
|
nn as W,
|
|
3391
3393
|
Qi as X,
|
|
3392
3394
|
Yi as Y,
|
|
3393
|
-
|
|
3395
|
+
ra as Z,
|
|
3394
3396
|
ac as a,
|
|
3395
3397
|
Un as b,
|
|
3396
3398
|
nt as c,
|
|
@@ -3409,12 +3411,12 @@ export {
|
|
|
3409
3411
|
Ai as p,
|
|
3410
3412
|
$i as q,
|
|
3411
3413
|
wn as r,
|
|
3412
|
-
|
|
3414
|
+
Oo as s,
|
|
3413
3415
|
_n as t,
|
|
3414
3416
|
pe as u,
|
|
3415
|
-
|
|
3417
|
+
Do as v,
|
|
3416
3418
|
bn as w,
|
|
3417
|
-
|
|
3419
|
+
Ao as x,
|
|
3418
3420
|
Tn as y,
|
|
3419
|
-
|
|
3421
|
+
Mo as z
|
|
3420
3422
|
};
|