@pdf-viewer/react 1.2.0-rc.1 → 1.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{RPDefaultLayout-7ebbc6e0.js → RPDefaultLayout-8ee7a95b.js} +352 -344
- package/dist/components/RPController.js +1 -1
- package/dist/components/RPPages.js +1 -1
- package/dist/components/RPProvider.js +1 -1
- package/dist/components/layout/RPDefaultLayout.js +1 -1
- package/dist/components/layout/sidebar/RPSidebar.js +1 -1
- package/dist/components/layout/sidebar/Thumbnail.js +1 -1
- package/dist/components/layout/sidebar/Thumbnails.js +1 -1
- package/dist/components/layout/toolbar/DocumentDialog.js +1 -1
- package/dist/components/layout/toolbar/FileDownloadTool.js +1 -1
- package/dist/components/layout/toolbar/MenuItem.js +1 -1
- package/dist/components/layout/toolbar/MenuSeparator.js +1 -1
- package/dist/components/layout/toolbar/MostPageTool.js +2 -2
- package/dist/components/layout/toolbar/OtherTool.js +2 -2
- package/dist/components/layout/toolbar/Paginate.js +1 -1
- package/dist/components/layout/toolbar/PrintTool.js +1 -1
- package/dist/components/layout/toolbar/RPToolbar.js +1 -1
- package/dist/components/layout/toolbar/RPToolbarEnd.js +1 -1
- package/dist/components/layout/toolbar/RotateTool.js +1 -1
- package/dist/components/layout/toolbar/ScrollModeTool.js +1 -1
- package/dist/components/layout/toolbar/SearchTool.js +2 -2
- package/dist/components/layout/toolbar/SelectionModeTool.js +1 -1
- package/dist/components/layout/toolbar/ViewModeTool.js +1 -1
- package/dist/components/layout/toolbar/ZoomTool.js +2 -2
- 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/TextLayer.js +1 -1
- package/dist/components/ui/Checkbox.js +13 -14
- package/dist/components/ui/DropDown.js +1 -1
- package/dist/components/ui/LoadingIndicator.js +1 -1
- package/dist/components/ui/Popover.js +3058 -4
- package/dist/components/ui/RPTooltip.js +328 -687
- package/dist/contexts/PaginationContext.js +1 -1
- package/dist/contexts/PrintContext.js +1 -1
- package/dist/contexts/SearchContext.js +1 -1
- package/dist/contexts/ThumbnailsContext.js +1 -1
- package/dist/floating-ui.react-dom-88a86594.js +1447 -0
- package/dist/index-48ca3f30.js +307 -0
- package/dist/index-4ba3ab9a.js +1877 -0
- package/dist/main.js +1 -1
- package/dist/utils/hooks/useFileDownload.js +1 -1
- package/dist/utils/hooks/useLicense.js +32 -40
- package/dist/utils/hooks/usePaginate.js +1 -1
- package/dist/utils/hooks/usePrint.js +1 -1
- package/dist/utils/hooks/useScrollToPage.js +1 -1
- package/dist/utils/hooks/useSearch.js +1 -1
- package/dist/utils/hooks/useThumbnail.js +1 -1
- package/dist/utils/hooks/useVirtualReactWindow.js +1 -1
- package/package.json +1 -1
- package/dist/Popover-aaa4344e.js +0 -1445
- package/dist/component-1da194e8.js +0 -337
- package/dist/floating-ui.react-dom-15b9b819.js +0 -1310
- package/dist/index-2e540713.js +0 -23
- package/dist/index-353ec0a6.js +0 -172
- package/dist/index-5ff5dbd0.js +0 -1675
- package/dist/index-71898eb9.js +0 -139
|
@@ -1,91 +1,89 @@
|
|
|
1
1
|
import { jsx as i, jsxs as D, Fragment as ke } from "react/jsx-runtime";
|
|
2
2
|
import * as V from "react";
|
|
3
|
-
import { useRef as W, useEffect as O, useCallback as L, useState as H, createContext as Be, useContext as Ke, useMemo as k, forwardRef as Xe, useImperativeHandle as
|
|
3
|
+
import { useRef as W, useEffect as O, useCallback as L, useState as H, createContext as Be, useContext as Ke, useMemo as k, forwardRef as Xe, useImperativeHandle as en, createElement as $e, PureComponent as Jn, Component as Yn, memo as Qn } from "react";
|
|
4
4
|
import { ChevronUpIcon as We } from "./components/icons/ChevronUpIcon.js";
|
|
5
5
|
import { UIButton as te } from "./components/ui/Button.js";
|
|
6
|
-
import { UIInput as
|
|
6
|
+
import { UIInput as tn } from "./components/ui/Input.js";
|
|
7
7
|
import { useScrollModeContext as Ee } from "./contexts/ScrollModeContext.js";
|
|
8
8
|
import { useDocumentContext as Y } from "./contexts/RPDocumentContext.js";
|
|
9
9
|
import "./contexts/DarkModeContext.js";
|
|
10
|
-
import { ViewMode as qe, ScrollMode as X, AnnotationSubType as ht, SelectionMode as
|
|
10
|
+
import { ViewMode as qe, ScrollMode as X, AnnotationSubType as ht, SelectionMode as er, ZoomLevel as nt } from "./utils/types.js";
|
|
11
11
|
import { useRotationContext as Je } from "./contexts/RotationContext.js";
|
|
12
|
-
import { useLayerContext as
|
|
12
|
+
import { useLayerContext as tr } from "./contexts/LayerContext.js";
|
|
13
13
|
import { useZoomContext as Ye } from "./contexts/ZoomContext.js";
|
|
14
14
|
import { useViewModeContext as Qe } from "./contexts/ViewModeContext.js";
|
|
15
15
|
import { useVirtualScrollContext as et } from "./contexts/VirtualScrollContext.js";
|
|
16
|
-
import { useVirtualGridContext as
|
|
16
|
+
import { useVirtualGridContext as nn } from "./contexts/VirtualGridContext.js";
|
|
17
17
|
import { useScrollStateContext as tt } from "./contexts/ScrollStateContext.js";
|
|
18
|
-
import { useSelectionModeContext as
|
|
19
|
-
import { useInitialStateContext as
|
|
20
|
-
import { useFullScreenContext as
|
|
18
|
+
import { useSelectionModeContext as nr } from "./contexts/SelectionModeContext.js";
|
|
19
|
+
import { useInitialStateContext as rr } from "./contexts/InitialStateContext.js";
|
|
20
|
+
import { useFullScreenContext as or } from "./contexts/FullScreenContext.js";
|
|
21
21
|
import "./contexts/FileInputContext.js";
|
|
22
22
|
import "./contexts/DropFileZoneContext.js";
|
|
23
23
|
import { renderPage as mt } from "./utils/renderPage.js";
|
|
24
|
-
import { highlightMatches as
|
|
25
|
-
import * as
|
|
26
|
-
import { PixelsPerInch as
|
|
24
|
+
import { highlightMatches as rn, findMatches as ir, resetDivs as ar } from "./utils/highlight.js";
|
|
25
|
+
import * as on from "pdfjs-dist";
|
|
26
|
+
import { PixelsPerInch as sr, AnnotationMode as cr, RenderingCancelledException as lr, AnnotationLayer as ur } from "pdfjs-dist";
|
|
27
27
|
import { useLayoutContainer as Ie } from "./contexts/LayoutContainerContext.js";
|
|
28
|
-
import { useDimensionPagesContext as
|
|
28
|
+
import { useDimensionPagesContext as an } from "./contexts/DimensionPagesContext.js";
|
|
29
29
|
import { useLocalizationContext as le } from "./contexts/LocalizationContext.js";
|
|
30
30
|
import "./components/RPConfig.js";
|
|
31
|
-
import { ThumbnailIcon as
|
|
31
|
+
import { ThumbnailIcon as dr } from "./components/icons/Thumbnail.js";
|
|
32
32
|
import { c as re } from "./clsx-0c6e471a.js";
|
|
33
33
|
import { LoaderIcon as Me } from "./components/icons/LoaderIcon.js";
|
|
34
|
-
import { useInfiniteScroll as
|
|
35
|
-
import { RPSplitter as
|
|
36
|
-
import { useToolbarComponentContext as ge, ToolbarComponentProvider as
|
|
37
|
-
import { useIconContext as ue, IconProvider as
|
|
38
|
-
import
|
|
39
|
-
import { c as Ce, C as
|
|
40
|
-
import { WrapperLayout as
|
|
41
|
-
import { RPDropFileZone as
|
|
42
|
-
import { useViewportContext as ye, ViewportProvider as
|
|
34
|
+
import { useInfiniteScroll as pr } from "./utils/hooks/useInfiniteScroll.js";
|
|
35
|
+
import { RPSplitter as hr } from "./components/layout/sidebar/RPSplitter.js";
|
|
36
|
+
import { useToolbarComponentContext as ge, ToolbarComponentProvider as mr } from "./contexts/ToolbarComponentContext.js";
|
|
37
|
+
import { useIconContext as ue, IconProvider as fr } from "./contexts/IconContext.js";
|
|
38
|
+
import j from "./components/ui/RPTooltip.js";
|
|
39
|
+
import { c as Ce, C as gr } from "./Container-8fea0875.js";
|
|
40
|
+
import { WrapperLayout as vr } from "./components/layout/WrapperLayout.js";
|
|
41
|
+
import { RPDropFileZone as _r } from "./components/RPDropFileZone.js";
|
|
42
|
+
import { useViewportContext as ye, ViewportProvider as wr } from "./contexts/ViewportContext.js";
|
|
43
43
|
import "./contexts/ThemeContext.js";
|
|
44
|
-
import { SimpleLinkService as
|
|
44
|
+
import { SimpleLinkService as br } from "./utils/link_service.js";
|
|
45
45
|
import { dateFormatter as ft } from "./utils/dateFormatter.js";
|
|
46
|
-
import { sanitizeExternalUrl as
|
|
47
|
-
import { useWatermark as
|
|
48
|
-
import {
|
|
49
|
-
import {
|
|
50
|
-
import {
|
|
51
|
-
import { usePinch as yr } from "./utils/hooks/usePinch.js";
|
|
46
|
+
import { sanitizeExternalUrl as Cr } from "./utils/sanitizeExternalUrl.js";
|
|
47
|
+
import { useWatermark as Tr } from "./utils/hooks/useWatermark.js";
|
|
48
|
+
import { useMousePressed as Pr } from "./utils/hooks/useMousePressed.js";
|
|
49
|
+
import { useGrabScroll as Sr } from "./utils/hooks/useGrabScroll.js";
|
|
50
|
+
import { usePinch as Ir } from "./utils/hooks/usePinch.js";
|
|
52
51
|
import { useDebounce as gt } from "./utils/hooks/useDebounce.js";
|
|
53
|
-
import { getThumbnailViewport as
|
|
54
|
-
import { useDimensionPages as
|
|
52
|
+
import { getThumbnailViewport as Et } from "./utils/getThumbnailViewport.js";
|
|
53
|
+
import { useDimensionPages as yr } from "./utils/hooks/useDimensionPages.js";
|
|
55
54
|
import { smoothScrollTo as Te } from "./utils/smoothScrollTo.js";
|
|
56
|
-
import { appConsole as
|
|
57
|
-
import { FileUploadTool as
|
|
58
|
-
import { DarkModeTool as
|
|
59
|
-
import { ThreeDotIcon as
|
|
60
|
-
import { UIDropDown as
|
|
61
|
-
import { u as
|
|
62
|
-
import {
|
|
63
|
-
import { a as
|
|
64
|
-
import {
|
|
65
|
-
import {
|
|
66
|
-
import {
|
|
67
|
-
import {
|
|
68
|
-
import {
|
|
69
|
-
import {
|
|
70
|
-
import {
|
|
71
|
-
import { ScrollModeTool as Zr } from "./components/layout/toolbar/ScrollModeTool.js";
|
|
72
|
-
import { MenuSeparator as Pt } from "./components/layout/toolbar/MenuSeparator.js";
|
|
55
|
+
import { appConsole as xr } from "./utils/appConsole.js";
|
|
56
|
+
import { FileUploadTool as sn } from "./components/layout/toolbar/FileUploadTool.js";
|
|
57
|
+
import { DarkModeTool as Rr } from "./components/layout/toolbar/DarkModeTool.js";
|
|
58
|
+
import { ThreeDotIcon as Lr } from "./components/icons/ThreeDotIcon.js";
|
|
59
|
+
import { UIDropDown as cn } from "./components/ui/DropDown.js";
|
|
60
|
+
import { c as Nr, u as Tt, P as He, b as Fe, d as Pt, i as Er, k as Or, a as Dr } from "./index-48ca3f30.js";
|
|
61
|
+
import { D as zr, d as rt } from "./floating-ui.react-dom-88a86594.js";
|
|
62
|
+
import { a as Ar, h as Fr, u as kr, F as Wr, b as Mr, G as je } from "./index-4ba3ab9a.js";
|
|
63
|
+
import { CloseIcon as ln } from "./components/icons/CloseIcon.js";
|
|
64
|
+
import { PropertyItem as Hr } from "./components/layout/toolbar/PropertyItem.js";
|
|
65
|
+
import { useOtherToolContext as $r, OtherToolProvider as Gr } from "./contexts/OtherToolContext.js";
|
|
66
|
+
import { DocumentProperties as Vr } from "./components/layout/toolbar/DocumentProperties.js";
|
|
67
|
+
import { RotateTool as Ur } from "./components/layout/toolbar/RotateTool.js";
|
|
68
|
+
import { ScrollModeTool as qr } from "./components/layout/toolbar/ScrollModeTool.js";
|
|
69
|
+
import { MenuSeparator as St } from "./components/layout/toolbar/MenuSeparator.js";
|
|
73
70
|
import { FileDownloadDefaultIcon as jr } from "./components/icons/FileDownloadDefaultIcon.js";
|
|
74
71
|
import { MenuItem as we } from "./components/layout/toolbar/MenuItem.js";
|
|
75
|
-
import { PrintDefaultTool as
|
|
76
|
-
import { FullScreenTool as
|
|
77
|
-
import { GoToDownIcon as
|
|
78
|
-
import { SelectionModeTool as
|
|
79
|
-
import { ZoomInIcon as
|
|
80
|
-
import { ZoomOutIcon as
|
|
81
|
-
import { PAGE_PADDING as
|
|
82
|
-
import { getZoomLevel as
|
|
83
|
-
import { SearchIcon as
|
|
84
|
-
import { UICheckbox as
|
|
85
|
-
import { ClearIcon as
|
|
86
|
-
import { InfoIcon as
|
|
87
|
-
import
|
|
88
|
-
|
|
72
|
+
import { PrintDefaultTool as Zr } from "./components/icons/PrintDefaultIcon.js";
|
|
73
|
+
import { FullScreenTool as un } from "./components/layout/toolbar/FullScreenTool.js";
|
|
74
|
+
import { GoToDownIcon as dn } from "./components/icons/GoToDownIcon.js";
|
|
75
|
+
import { SelectionModeTool as Br } from "./components/layout/toolbar/SelectionModeTool.js";
|
|
76
|
+
import { ZoomInIcon as Kr } from "./components/icons/ZoomInIcon.js";
|
|
77
|
+
import { ZoomOutIcon as Xr } from "./components/icons/ZoomOutIcon.js";
|
|
78
|
+
import { PAGE_PADDING as Ot } from "./utils/constants.js";
|
|
79
|
+
import { getZoomLevel as Jr } from "./utils/getZoomLevel.js";
|
|
80
|
+
import { SearchIcon as Yr } from "./components/icons/SearchIcon.js";
|
|
81
|
+
import { UICheckbox as Dt } from "./components/ui/Checkbox.js";
|
|
82
|
+
import { ClearIcon as Qr } from "./components/icons/ClearIcon.js";
|
|
83
|
+
import { InfoIcon as zt } from "./components/icons/InfoIcon.js";
|
|
84
|
+
import { UIPopOver as eo } from "./components/ui/Popover.js";
|
|
85
|
+
import './assets/RPDefaultLayout.css';const pn = () => {
|
|
86
|
+
const { viewMode: t } = Qe(), { scrollMode: e } = Ee(), { virtualScrollRef: n, virtualScrollableElementRef: o, pageScrollElementRef: r } = et(), { setFocusedPage: a } = se(), s = W(), { columnCount: c } = nn(), { widths: l, heights: u } = yr(), h = W(e), m = W(t), d = W(c);
|
|
89
87
|
O(() => {
|
|
90
88
|
n != null && n.scrollToItem && (s.current = n);
|
|
91
89
|
}, [n]), O(() => {
|
|
@@ -156,7 +154,7 @@ import './assets/RPDefaultLayout.css';const dn = () => {
|
|
|
156
154
|
]
|
|
157
155
|
) };
|
|
158
156
|
}, to = (t = 1) => {
|
|
159
|
-
const [e, n] = H(t), [o, r] = H(0), { scrollToPage: a } =
|
|
157
|
+
const [e, n] = H(t), [o, r] = H(0), { scrollToPage: a } = pn(), s = W(1), { isScrolling: c } = tt(), { viewMode: l } = Qe(), { scrollMode: u } = Ee(), h = gt(e, 100), m = L(
|
|
160
158
|
(v) => {
|
|
161
159
|
if (!/^[0-9]*$/g.test(v.toString()) || !v)
|
|
162
160
|
return { success: !1, currentPage: s.current };
|
|
@@ -188,7 +186,7 @@ import './assets/RPDefaultLayout.css';const dn = () => {
|
|
|
188
186
|
prevPage: g,
|
|
189
187
|
goToPage: w
|
|
190
188
|
};
|
|
191
|
-
},
|
|
189
|
+
}, hn = Be({
|
|
192
190
|
focusedPage: 0,
|
|
193
191
|
setFocusedPage: (t) => {
|
|
194
192
|
},
|
|
@@ -201,14 +199,14 @@ import './assets/RPDefaultLayout.css';const dn = () => {
|
|
|
201
199
|
nextPage: () => {
|
|
202
200
|
}
|
|
203
201
|
}), se = () => {
|
|
204
|
-
const t = Ke(
|
|
205
|
-
return typeof (t == null ? void 0 : t.focusedPage) > "u" &&
|
|
206
|
-
},
|
|
202
|
+
const t = Ke(hn);
|
|
203
|
+
return typeof (t == null ? void 0 : t.focusedPage) > "u" && xr.error("Please use this hooks inside children component of RPProvider"), t;
|
|
204
|
+
}, ss = ({ children: t }) => {
|
|
207
205
|
const { pdf: e } = Y(), { focusedPage: n, totalPages: o, setFocusedPage: r, setTotalPages: a, goToPage: s, nextPage: c, prevPage: l } = to();
|
|
208
206
|
return O(() => {
|
|
209
207
|
e != null && e.numPages && a(e.numPages);
|
|
210
208
|
}, [e, a]), /* @__PURE__ */ i(
|
|
211
|
-
|
|
209
|
+
hn.Provider,
|
|
212
210
|
{
|
|
213
211
|
value: {
|
|
214
212
|
focusedPage: n,
|
|
@@ -257,7 +255,7 @@ const no = () => {
|
|
|
257
255
|
d();
|
|
258
256
|
return;
|
|
259
257
|
}
|
|
260
|
-
const I = C /
|
|
258
|
+
const I = C / sr.PDF;
|
|
261
259
|
P.width = Math.floor(T.width * I), P.height = Math.floor(T.height * I);
|
|
262
260
|
const E = P.getContext("2d");
|
|
263
261
|
E.save(), E.fillStyle = "rgb(255, 255, 255)", E.fillRect(0, 0, P.width, P.height), E.restore();
|
|
@@ -274,14 +272,14 @@ const no = () => {
|
|
|
274
272
|
transform: [I, 0, 0, I, 0, 0],
|
|
275
273
|
viewport: y.getViewport({ scale: 1, rotation: T.rotation }),
|
|
276
274
|
intent: "print",
|
|
277
|
-
annotationMode:
|
|
275
|
+
annotationMode: cr.ENABLE_STORAGE,
|
|
278
276
|
optionalContentConfigPromise: S,
|
|
279
277
|
printAnnotationStorage: F
|
|
280
278
|
};
|
|
281
279
|
try {
|
|
282
280
|
return y.render(z).promise;
|
|
283
281
|
} catch (x) {
|
|
284
|
-
throw x instanceof
|
|
282
|
+
throw x instanceof lr || console.error(x), x;
|
|
285
283
|
}
|
|
286
284
|
}, b = L(() => {
|
|
287
285
|
const P = window.print;
|
|
@@ -383,7 +381,7 @@ const no = () => {
|
|
|
383
381
|
isError: s,
|
|
384
382
|
error: l
|
|
385
383
|
};
|
|
386
|
-
},
|
|
384
|
+
}, mn = Be({
|
|
387
385
|
print: () => {
|
|
388
386
|
},
|
|
389
387
|
cancel: () => {
|
|
@@ -400,7 +398,7 @@ const no = () => {
|
|
|
400
398
|
console.error("Error in setOnError callback:", e);
|
|
401
399
|
}
|
|
402
400
|
}
|
|
403
|
-
}),
|
|
401
|
+
}), cs = ({ children: t }) => {
|
|
404
402
|
const [e, n] = H(null), [o, r] = H(null), { print: a, cancel: s, progress: c, isComplete: l, isError: u, error: h } = no(), m = L((v) => {
|
|
405
403
|
v && typeof v == "function" && r(() => v);
|
|
406
404
|
}, []), d = (v) => {
|
|
@@ -430,9 +428,9 @@ const no = () => {
|
|
|
430
428
|
setOnError: d,
|
|
431
429
|
progress: c
|
|
432
430
|
};
|
|
433
|
-
return /* @__PURE__ */ i(
|
|
434
|
-
},
|
|
435
|
-
const t = Ke(
|
|
431
|
+
return /* @__PURE__ */ i(mn.Provider, { value: b, children: t });
|
|
432
|
+
}, It = () => {
|
|
433
|
+
const t = Ke(mn);
|
|
436
434
|
if (!t)
|
|
437
435
|
throw new Error("usePrintContext must be used within a PrintProvider");
|
|
438
436
|
return t;
|
|
@@ -442,7 +440,7 @@ const no = () => {
|
|
|
442
440
|
if (!n.size)
|
|
443
441
|
return;
|
|
444
442
|
const l = Array.from(n.values()).slice(0, c).map((m) => {
|
|
445
|
-
const { thumbnailViewport: d, scale: w } =
|
|
443
|
+
const { thumbnailViewport: d, scale: w } = Et(m.page, o);
|
|
446
444
|
return {
|
|
447
445
|
scale: w,
|
|
448
446
|
page: m.page,
|
|
@@ -499,7 +497,7 @@ const no = () => {
|
|
|
499
497
|
}));
|
|
500
498
|
const u = document.createElement("canvas");
|
|
501
499
|
mt(l.page, u, l.thumbnailScale, o).promise.then(() => {
|
|
502
|
-
const h = u.toDataURL(), { thumbnailViewport: m, scale: d } =
|
|
500
|
+
const h = u.toDataURL(), { thumbnailViewport: m, scale: d } = Et(l.page, o);
|
|
503
501
|
return {
|
|
504
502
|
scale: d,
|
|
505
503
|
thumbnailSrc: h,
|
|
@@ -514,7 +512,7 @@ const no = () => {
|
|
|
514
512
|
[n, o]
|
|
515
513
|
);
|
|
516
514
|
return { thumbnailPages: t, addPage: s, addToPage: a, thumbnailLength: r };
|
|
517
|
-
},
|
|
515
|
+
}, fn = Be({
|
|
518
516
|
thumbnailPages: {},
|
|
519
517
|
addPage: (t) => {
|
|
520
518
|
},
|
|
@@ -524,20 +522,20 @@ const no = () => {
|
|
|
524
522
|
setActive: (t) => {
|
|
525
523
|
},
|
|
526
524
|
active: !1
|
|
527
|
-
}),
|
|
525
|
+
}), gn = () => Ke(fn), ls = ({
|
|
528
526
|
children: t,
|
|
529
527
|
initialThumbnailsVisible: e
|
|
530
528
|
}) => {
|
|
531
529
|
const { thumbnailPages: n, addPage: o, addToPage: r, thumbnailLength: a } = ro(), [s, c] = H(e);
|
|
532
530
|
return /* @__PURE__ */ i(
|
|
533
|
-
|
|
531
|
+
fn.Provider,
|
|
534
532
|
{
|
|
535
533
|
value: { thumbnailPages: n, addPage: o, addToPage: r, thumbnailLength: a, active: s, setActive: c },
|
|
536
534
|
children: t
|
|
537
535
|
}
|
|
538
536
|
);
|
|
539
537
|
}, oo = (t = {}, e = "") => {
|
|
540
|
-
const [n, o] = H(e), [r, a] = H(!1), { pdf: s, pages: c } = Y(), l =
|
|
538
|
+
const [n, o] = H(e), [r, a] = H(!1), { pdf: s, pages: c } = Y(), l = an(), u = W(!n), { currentZoom: h } = Ye(), [m, d] = H([]), { setFocusedPage: w } = se(), [g, b] = H(0), { pageScrollElementRef: v, virtualScrollableElementRef: _ } = et(), { scrollMode: f } = Ee(), { pagesRef: P } = Ie(), [R, p] = H(null), T = W({}), C = k(() => g === 0 ? null : m[g - 1], [g, m]), S = k(() => m.length, [m]);
|
|
541
539
|
O(() => {
|
|
542
540
|
if (!C || !c)
|
|
543
541
|
return;
|
|
@@ -550,13 +548,13 @@ const no = () => {
|
|
|
550
548
|
let U;
|
|
551
549
|
if (!F)
|
|
552
550
|
return;
|
|
553
|
-
const
|
|
554
|
-
U = new
|
|
551
|
+
const Z = T.current[C.page], B = F.page.getViewport({ scale: 1 });
|
|
552
|
+
U = new on.TextLayer({
|
|
555
553
|
viewport: B,
|
|
556
|
-
textContentSource:
|
|
554
|
+
textContentSource: Z,
|
|
557
555
|
container: document.createElement("div")
|
|
558
556
|
}), U.render().then(() => {
|
|
559
|
-
const q = U.textDivs[C.start.idx], [K] =
|
|
557
|
+
const q = U.textDivs[C.start.idx], [K] = rn([C], Z, U.textDivs), ie = l.widths[C.page - 1], de = l.heights[C.page - 1], Q = document.createElement("div"), ae = document.createElement("div");
|
|
560
558
|
q.style.position = "absolute", q.style.color = "transparent", ae.style.position = "absolute", ae.style.top = "0", ae.style.setProperty("--scale-factor", `${h}`), Q.style.position = "relative", Q.style.width = `${ie}px`, Q.style.height = `${de}px`, Q.style.zIndex = "-1", Q.appendChild(q), ae.appendChild(Q), P.prepend(ae);
|
|
561
559
|
const ee = K.element.getBoundingClientRect(), be = ae.getBoundingClientRect(), Oe = ee.top - be.top, ve = ee.left - be.left, pe = N + Oe - z + ee.height / 2, he = $ + ve - x + ee.width / 2, De = {
|
|
562
560
|
left: Math.max(he, 0),
|
|
@@ -600,12 +598,12 @@ const no = () => {
|
|
|
600
598
|
u.current = !1, a(!0), d([]), b(0), E(s).then((y) => {
|
|
601
599
|
T.current = y;
|
|
602
600
|
const z = Object.keys(y).reduce((x, N) => {
|
|
603
|
-
const $ =
|
|
601
|
+
const $ = ir(
|
|
604
602
|
[n],
|
|
605
603
|
y[N],
|
|
606
604
|
Number(N) - 1,
|
|
607
605
|
t
|
|
608
|
-
).map((U,
|
|
606
|
+
).map((U, Z) => ({ ...U, page: Number(N), pageMatchIdx: Z }));
|
|
609
607
|
return [...x, ...$];
|
|
610
608
|
}, []);
|
|
611
609
|
d(z), b(z.length ? 1 : 0);
|
|
@@ -625,7 +623,7 @@ const no = () => {
|
|
|
625
623
|
currentMatchElement: R,
|
|
626
624
|
setCurrentMatchElement: p
|
|
627
625
|
};
|
|
628
|
-
},
|
|
626
|
+
}, vn = Be({
|
|
629
627
|
search: "",
|
|
630
628
|
setSearch: (t) => {
|
|
631
629
|
},
|
|
@@ -643,7 +641,7 @@ const no = () => {
|
|
|
643
641
|
currentMatchElement: null,
|
|
644
642
|
setCurrentMatchElement: (t) => {
|
|
645
643
|
}
|
|
646
|
-
}),
|
|
644
|
+
}), us = ({
|
|
647
645
|
children: t,
|
|
648
646
|
initialSearch: e
|
|
649
647
|
}) => {
|
|
@@ -661,7 +659,7 @@ const no = () => {
|
|
|
661
659
|
setCurrentMatchElement: g
|
|
662
660
|
} = oo(n, e);
|
|
663
661
|
return /* @__PURE__ */ i(
|
|
664
|
-
|
|
662
|
+
vn.Provider,
|
|
665
663
|
{
|
|
666
664
|
value: {
|
|
667
665
|
searchOptions: n,
|
|
@@ -681,7 +679,7 @@ const no = () => {
|
|
|
681
679
|
children: t
|
|
682
680
|
}
|
|
683
681
|
);
|
|
684
|
-
},
|
|
682
|
+
}, _n = () => Ke(vn), me = {
|
|
685
683
|
"rp-pages": "_rp-pages_34orh_1",
|
|
686
684
|
"rp-pages-horizontal-scroll": "_rp-pages-horizontal-scroll_34orh_7",
|
|
687
685
|
"rp-pages-container": "_rp-pages-container_34orh_11",
|
|
@@ -715,15 +713,15 @@ const no = () => {
|
|
|
715
713
|
"rp-text-layer": "_rp-text-layer_1mgyz_1",
|
|
716
714
|
"rp-text-layer-text": "_rp-text-layer-text_1mgyz_9"
|
|
717
715
|
}, ao = (t) => {
|
|
718
|
-
const { pageNumber: e } = t, { pages: n } = Y(), o = W(null), { matches: r, currentMatch: a, setCurrentMatchElement: s } =
|
|
716
|
+
const { pageNumber: e } = t, { pages: n } = Y(), o = W(null), { matches: r, currentMatch: a, setCurrentMatchElement: s } = _n(), [c, l] = H(
|
|
719
717
|
[]
|
|
720
718
|
), u = W(), h = W(), m = W(), d = k(() => r.filter((g) => g.pageIndex === e - 1), [r, e]), w = L(
|
|
721
719
|
(g, b, v = !1) => {
|
|
722
|
-
if (v &&
|
|
720
|
+
if (v && ar(g, b), !d.length) {
|
|
723
721
|
m.current = void 0, l([]);
|
|
724
722
|
return;
|
|
725
723
|
}
|
|
726
|
-
const _ =
|
|
724
|
+
const _ = rn(d, g, b);
|
|
727
725
|
l(_);
|
|
728
726
|
},
|
|
729
727
|
[d]
|
|
@@ -744,7 +742,7 @@ const no = () => {
|
|
|
744
742
|
if (!(!g || !o.current))
|
|
745
743
|
return u.current && u.current.cancel(), g.page.getTextContent().then((b) => {
|
|
746
744
|
const v = g.page.getViewport({ scale: 1 });
|
|
747
|
-
return u.current = new
|
|
745
|
+
return u.current = new on.TextLayer({
|
|
748
746
|
viewport: v,
|
|
749
747
|
textContentSource: b,
|
|
750
748
|
container: o.current
|
|
@@ -778,16 +776,16 @@ const no = () => {
|
|
|
778
776
|
);
|
|
779
777
|
}, so = {
|
|
780
778
|
"rp-annotation-layer": "_rp-annotation-layer_o0ksd_1"
|
|
781
|
-
},
|
|
779
|
+
}, wn = ["click", "dblclick", "mouseover", "input", "change"];
|
|
782
780
|
let co = "https://unpkg.com/pdfjs-dist@4.4.168/web/images/";
|
|
783
|
-
const vt = /* @__PURE__ */ new Map(),
|
|
781
|
+
const vt = /* @__PURE__ */ new Map(), bn = (t, e) => `${t.loadingTask.docId}___${e.num}R${e.gen === 0 ? "" : e.gen}`;
|
|
784
782
|
function lo(t, e) {
|
|
785
|
-
const n =
|
|
783
|
+
const n = bn(t, e);
|
|
786
784
|
return vt.has(n) ? vt.get(n) ?? null : null;
|
|
787
785
|
}
|
|
788
786
|
const uo = (t, e, n) => {
|
|
789
|
-
vt.set(
|
|
790
|
-
},
|
|
787
|
+
vt.set(bn(t, e), n);
|
|
788
|
+
}, At = (t, e) => {
|
|
791
789
|
switch (e[1].name) {
|
|
792
790
|
case "XYZ":
|
|
793
791
|
return {
|
|
@@ -821,24 +819,24 @@ const uo = (t, e, n) => {
|
|
|
821
819
|
};
|
|
822
820
|
}
|
|
823
821
|
};
|
|
824
|
-
async function
|
|
822
|
+
async function Cn(t, e) {
|
|
825
823
|
let n;
|
|
826
824
|
if (typeof e == "string" ? n = await t.getDestination(e) : n = e, n && typeof n[0] == "object" && n[0] !== null) {
|
|
827
825
|
const o = n[0], r = lo(t, o);
|
|
828
826
|
if (r === null) {
|
|
829
827
|
const a = await t.getPageIndex(o);
|
|
830
|
-
return uo(t, o, a), await
|
|
828
|
+
return uo(t, o, a), await Cn(t, n);
|
|
831
829
|
} else
|
|
832
|
-
return
|
|
830
|
+
return At(r, n);
|
|
833
831
|
} else
|
|
834
|
-
return
|
|
832
|
+
return At(n[0], n);
|
|
835
833
|
}
|
|
836
834
|
function po(t) {
|
|
837
835
|
const { id: e, url: n, unsafeUrl: o } = t;
|
|
838
836
|
new MutationObserver((a, s) => {
|
|
839
837
|
const c = document.querySelector(`[data-annotation-id="${e}"]`);
|
|
840
838
|
if (c) {
|
|
841
|
-
const l = c.querySelector("a"), u =
|
|
839
|
+
const l = c.querySelector("a"), u = Cr((n || o) ?? "", "");
|
|
842
840
|
l && (l.setAttribute("target", "_blank"), l.setAttribute("href", u), l.setAttribute("rel", "noopener noreferrer")), s.disconnect();
|
|
843
841
|
}
|
|
844
842
|
}).observe(document.body, { childList: !0, subtree: !0 });
|
|
@@ -870,23 +868,23 @@ const ho = (t) => {
|
|
|
870
868
|
attributes: !0
|
|
871
869
|
// Watch for changes to attributes
|
|
872
870
|
}), () => o.disconnect();
|
|
873
|
-
},
|
|
871
|
+
}, Ft = (t, e, n, o) => {
|
|
874
872
|
if (t.type !== "click")
|
|
875
873
|
return;
|
|
876
874
|
const r = t.target, a = r.getAttribute("data-element-id"), s = r.getAttribute("href");
|
|
877
875
|
if (s && s !== "#")
|
|
878
876
|
return;
|
|
879
877
|
const c = e.find((l) => l.id === a);
|
|
880
|
-
!c || c.annotationType !== ht.Link || c.dest &&
|
|
878
|
+
!c || c.annotationType !== ht.Link || c.dest && Cn(n, c.dest).then((l) => {
|
|
881
879
|
o(l);
|
|
882
880
|
});
|
|
883
881
|
};
|
|
884
882
|
function mo(t, e) {
|
|
885
|
-
for (const n of
|
|
883
|
+
for (const n of wn)
|
|
886
884
|
t.addEventListener(n, e);
|
|
887
885
|
}
|
|
888
|
-
function
|
|
889
|
-
for (const n of
|
|
886
|
+
function kt(t, e) {
|
|
887
|
+
for (const n of wn)
|
|
890
888
|
t.removeEventListener(n, e);
|
|
891
889
|
}
|
|
892
890
|
const fo = (t) => {
|
|
@@ -902,7 +900,7 @@ const fo = (t) => {
|
|
|
902
900
|
}, [m]);
|
|
903
901
|
const g = L(
|
|
904
902
|
(b) => {
|
|
905
|
-
ho(b), !(!s || !r) && (h === X.PAGE_SCROLLING ?
|
|
903
|
+
ho(b), !(!s || !r) && (h === X.PAGE_SCROLLING ? Ft(b, s, r, (v) => l(v.pageIndex + 1)) : Ft(b, s, r, (v) => u(v.pageIndex + 1)));
|
|
906
904
|
},
|
|
907
905
|
[r, s, u, l, h]
|
|
908
906
|
);
|
|
@@ -927,7 +925,7 @@ const fo = (t) => {
|
|
|
927
925
|
}
|
|
928
926
|
}
|
|
929
927
|
return (async () => {
|
|
930
|
-
a.current = new
|
|
928
|
+
a.current = new ur({
|
|
931
929
|
div: n.current,
|
|
932
930
|
accessibilityManager: void 0,
|
|
933
931
|
annotationCanvasMap: void 0,
|
|
@@ -935,7 +933,7 @@ const fo = (t) => {
|
|
|
935
933
|
structTreeLayer: void 0,
|
|
936
934
|
page: m.page,
|
|
937
935
|
viewport: b.clone({ dontFlip: !0 })
|
|
938
|
-
}), n.current &&
|
|
936
|
+
}), n.current && kt(n.current, g);
|
|
939
937
|
const _ = await (r == null ? void 0 : r.hasJSActions()), f = await (r == null ? void 0 : r.getFieldObjects());
|
|
940
938
|
return a.current.render({
|
|
941
939
|
annotations: s,
|
|
@@ -947,14 +945,14 @@ const fo = (t) => {
|
|
|
947
945
|
page: m.page,
|
|
948
946
|
imageResourcesPath: co,
|
|
949
947
|
renderForms: !1,
|
|
950
|
-
linkService: new
|
|
948
|
+
linkService: new br(),
|
|
951
949
|
downloadManager: null,
|
|
952
950
|
enableScripting: !1
|
|
953
951
|
});
|
|
954
952
|
})().then(() => {
|
|
955
953
|
n.current && mo(n.current, g);
|
|
956
954
|
}), () => {
|
|
957
|
-
n.current &&
|
|
955
|
+
n.current && kt(n.current, g);
|
|
958
956
|
};
|
|
959
957
|
}, [r, s, g]), /* @__PURE__ */ i(
|
|
960
958
|
"div",
|
|
@@ -965,12 +963,12 @@ const fo = (t) => {
|
|
|
965
963
|
ref: n
|
|
966
964
|
}
|
|
967
965
|
);
|
|
968
|
-
}, go = Array.from({ length: 21 }, (t, e) => Number((e * 0.05).toFixed(2))),
|
|
969
|
-
const { pageNumber: n, style: o, onIntersectRatioChange: r, ...a } = t, { pages: s } = Y(), { rotate: c } = Je(), { textLayer: l } =
|
|
966
|
+
}, go = Array.from({ length: 21 }, (t, e) => Number((e * 0.05).toFixed(2))), yt = Xe((t, e) => {
|
|
967
|
+
const { pageNumber: n, style: o, onIntersectRatioChange: r, ...a } = t, { pages: s } = Y(), { rotate: c } = Je(), { textLayer: l } = tr(), { currentZoom: u } = Ye(), h = W(s.get(n)), [m, d] = H(!1), w = W(null), [g, b] = H({
|
|
970
968
|
width: 0,
|
|
971
969
|
height: 0
|
|
972
970
|
});
|
|
973
|
-
|
|
971
|
+
en(e, () => w.current), O(() => {
|
|
974
972
|
if (s && (h.current = s.get(n), h.current)) {
|
|
975
973
|
const P = h.current.page.getViewport({ scale: u, rotation: c });
|
|
976
974
|
b(P);
|
|
@@ -1034,24 +1032,34 @@ const fo = (t) => {
|
|
|
1034
1032
|
}
|
|
1035
1033
|
);
|
|
1036
1034
|
});
|
|
1037
|
-
function
|
|
1035
|
+
function _t() {
|
|
1036
|
+
return _t = Object.assign ? Object.assign.bind() : function(t) {
|
|
1037
|
+
for (var e = 1; e < arguments.length; e++) {
|
|
1038
|
+
var n = arguments[e];
|
|
1039
|
+
for (var o in n)
|
|
1040
|
+
({}).hasOwnProperty.call(n, o) && (t[o] = n[o]);
|
|
1041
|
+
}
|
|
1042
|
+
return t;
|
|
1043
|
+
}, _t.apply(null, arguments);
|
|
1044
|
+
}
|
|
1045
|
+
function Wt(t) {
|
|
1038
1046
|
if (t === void 0)
|
|
1039
1047
|
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
1040
1048
|
return t;
|
|
1041
1049
|
}
|
|
1042
|
-
function
|
|
1043
|
-
return
|
|
1050
|
+
function wt(t, e) {
|
|
1051
|
+
return wt = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(n, o) {
|
|
1044
1052
|
return n.__proto__ = o, n;
|
|
1045
|
-
},
|
|
1053
|
+
}, wt(t, e);
|
|
1046
1054
|
}
|
|
1047
1055
|
function vo(t, e) {
|
|
1048
|
-
t.prototype = Object.create(e.prototype), t.prototype.constructor = t,
|
|
1056
|
+
t.prototype = Object.create(e.prototype), t.prototype.constructor = t, wt(t, e);
|
|
1049
1057
|
}
|
|
1050
|
-
var
|
|
1058
|
+
var Mt = Number.isNaN || function(e) {
|
|
1051
1059
|
return typeof e == "number" && e !== e;
|
|
1052
1060
|
};
|
|
1053
1061
|
function _o(t, e) {
|
|
1054
|
-
return !!(t === e ||
|
|
1062
|
+
return !!(t === e || Mt(t) && Mt(e));
|
|
1055
1063
|
}
|
|
1056
1064
|
function wo(t, e) {
|
|
1057
1065
|
if (t.length !== e.length)
|
|
@@ -1071,7 +1079,7 @@ function at(t, e) {
|
|
|
1071
1079
|
}
|
|
1072
1080
|
return s;
|
|
1073
1081
|
}
|
|
1074
|
-
function
|
|
1082
|
+
function Ht(t, e) {
|
|
1075
1083
|
if (t == null)
|
|
1076
1084
|
return {};
|
|
1077
1085
|
var n = {};
|
|
@@ -1083,18 +1091,18 @@ function Mt(t, e) {
|
|
|
1083
1091
|
}
|
|
1084
1092
|
return n;
|
|
1085
1093
|
}
|
|
1086
|
-
var bo = typeof performance == "object" && typeof performance.now == "function",
|
|
1094
|
+
var bo = typeof performance == "object" && typeof performance.now == "function", $t = bo ? function() {
|
|
1087
1095
|
return performance.now();
|
|
1088
1096
|
} : function() {
|
|
1089
1097
|
return Date.now();
|
|
1090
1098
|
};
|
|
1091
|
-
function
|
|
1099
|
+
function Gt(t) {
|
|
1092
1100
|
cancelAnimationFrame(t.id);
|
|
1093
1101
|
}
|
|
1094
1102
|
function Co(t, e) {
|
|
1095
|
-
var n =
|
|
1103
|
+
var n = $t();
|
|
1096
1104
|
function o() {
|
|
1097
|
-
|
|
1105
|
+
$t() - n >= e ? t.call(null) : r.id = requestAnimationFrame(o);
|
|
1098
1106
|
}
|
|
1099
1107
|
var r = {
|
|
1100
1108
|
id: requestAnimationFrame(o)
|
|
@@ -1110,7 +1118,7 @@ function To(t) {
|
|
|
1110
1118
|
return st;
|
|
1111
1119
|
}
|
|
1112
1120
|
var Re = null;
|
|
1113
|
-
function
|
|
1121
|
+
function Vt(t) {
|
|
1114
1122
|
if (t === void 0 && (t = !1), Re === null || t) {
|
|
1115
1123
|
var e = document.createElement("div"), n = e.style;
|
|
1116
1124
|
n.width = "50px", n.height = "50px", n.overflow = "scroll", n.direction = "rtl";
|
|
@@ -1132,8 +1140,8 @@ function Io(t) {
|
|
|
1132
1140
|
vo(f, _);
|
|
1133
1141
|
function f(R) {
|
|
1134
1142
|
var p;
|
|
1135
|
-
return p = _.call(this, R) || this, p._instanceProps = g(p.props,
|
|
1136
|
-
instance:
|
|
1143
|
+
return p = _.call(this, R) || this, p._instanceProps = g(p.props, Wt(p)), p._resetIsScrollingTimeoutId = null, p._outerRef = void 0, p.state = {
|
|
1144
|
+
instance: Wt(p),
|
|
1137
1145
|
isScrolling: !1,
|
|
1138
1146
|
horizontalScrollDirection: "forward",
|
|
1139
1147
|
scrollLeft: typeof p.props.initialScrollLeft == "number" ? p.props.initialScrollLeft : 0,
|
|
@@ -1184,7 +1192,7 @@ function Io(t) {
|
|
|
1184
1192
|
return null;
|
|
1185
1193
|
var x = p.props.direction, N = I;
|
|
1186
1194
|
if (x === "rtl")
|
|
1187
|
-
switch (
|
|
1195
|
+
switch (Vt()) {
|
|
1188
1196
|
case "negative":
|
|
1189
1197
|
N = -I;
|
|
1190
1198
|
break;
|
|
@@ -1207,7 +1215,7 @@ function Io(t) {
|
|
|
1207
1215
|
var C = p.props.outerRef;
|
|
1208
1216
|
p._outerRef = T, typeof C == "function" ? C(T) : C != null && typeof C == "object" && C.hasOwnProperty("current") && (C.current = T);
|
|
1209
1217
|
}, p._resetIsScrollingDebounced = function() {
|
|
1210
|
-
p._resetIsScrollingTimeoutId !== null &&
|
|
1218
|
+
p._resetIsScrollingTimeoutId !== null && Gt(p._resetIsScrollingTimeoutId), p._resetIsScrollingTimeoutId = Co(p._resetIsScrolling, Po);
|
|
1211
1219
|
}, p._resetIsScrolling = function() {
|
|
1212
1220
|
p._resetIsScrollingTimeoutId = null, p.setState({
|
|
1213
1221
|
isScrolling: !1
|
|
@@ -1234,7 +1242,7 @@ function Io(t) {
|
|
|
1234
1242
|
}, P.scrollToItem = function(p) {
|
|
1235
1243
|
var T = p.align, C = T === void 0 ? "auto" : T, S = p.columnIndex, A = p.rowIndex, I = this.props, E = I.columnCount, y = I.height, F = I.rowCount, z = I.width, x = this.state, N = x.scrollLeft, $ = x.scrollTop, U = To();
|
|
1236
1244
|
S !== void 0 && (S = Math.max(0, Math.min(S, E - 1))), A !== void 0 && (A = Math.max(0, Math.min(A, F - 1)));
|
|
1237
|
-
var
|
|
1245
|
+
var Z = s(this.props, this._instanceProps), B = c(this.props, this._instanceProps), q = B > z ? U : 0, K = Z > y ? U : 0;
|
|
1238
1246
|
this.scrollTo({
|
|
1239
1247
|
scrollLeft: S !== void 0 ? l(this.props, S, C, N, this._instanceProps, K) : N,
|
|
1240
1248
|
scrollTop: A !== void 0 ? u(this.props, A, C, $, this._instanceProps, q) : $
|
|
@@ -1251,7 +1259,7 @@ function Io(t) {
|
|
|
1251
1259
|
if (A && this._outerRef != null) {
|
|
1252
1260
|
var I = this._outerRef;
|
|
1253
1261
|
if (p === "rtl")
|
|
1254
|
-
switch (
|
|
1262
|
+
switch (Vt()) {
|
|
1255
1263
|
case "negative":
|
|
1256
1264
|
I.scrollLeft = -C;
|
|
1257
1265
|
break;
|
|
@@ -1269,10 +1277,10 @@ function Io(t) {
|
|
|
1269
1277
|
}
|
|
1270
1278
|
this._callPropsCallbacks();
|
|
1271
1279
|
}, P.componentWillUnmount = function() {
|
|
1272
|
-
this._resetIsScrollingTimeoutId !== null &&
|
|
1280
|
+
this._resetIsScrollingTimeoutId !== null && Gt(this._resetIsScrollingTimeoutId);
|
|
1273
1281
|
}, P.render = function() {
|
|
1274
|
-
var p = this.props, T = p.children, C = p.className, S = p.columnCount, A = p.direction, I = p.height, E = p.innerRef, y = p.innerElementType, F = p.innerTagName, z = p.itemData, x = p.itemKey, N = x === void 0 ? So : x, $ = p.outerElementType, U = p.outerTagName,
|
|
1275
|
-
if (S > 0 &&
|
|
1282
|
+
var p = this.props, T = p.children, C = p.className, S = p.columnCount, A = p.direction, I = p.height, E = p.innerRef, y = p.innerElementType, F = p.innerTagName, z = p.itemData, x = p.itemKey, N = x === void 0 ? So : x, $ = p.outerElementType, U = p.outerTagName, Z = p.rowCount, B = p.style, q = p.useIsScrolling, K = p.width, ie = this.state.isScrolling, de = this._getHorizontalRangeToRender(), Q = de[0], ae = de[1], ee = this._getVerticalRangeToRender(), be = ee[0], Oe = ee[1], ve = [];
|
|
1283
|
+
if (S > 0 && Z)
|
|
1276
1284
|
for (var pe = be; pe <= Oe; pe++)
|
|
1277
1285
|
for (var he = Q; he <= ae; he++)
|
|
1278
1286
|
ve.push($e(T, {
|
|
@@ -1292,7 +1300,7 @@ function Io(t) {
|
|
|
1292
1300
|
className: C,
|
|
1293
1301
|
onScroll: this._onScroll,
|
|
1294
1302
|
ref: this._outerRefSetter,
|
|
1295
|
-
style:
|
|
1303
|
+
style: _t({
|
|
1296
1304
|
position: "relative",
|
|
1297
1305
|
height: I,
|
|
1298
1306
|
width: K,
|
|
@@ -1313,8 +1321,8 @@ function Io(t) {
|
|
|
1313
1321
|
}, P._callPropsCallbacks = function() {
|
|
1314
1322
|
var p = this.props, T = p.columnCount, C = p.onItemsRendered, S = p.onScroll, A = p.rowCount;
|
|
1315
1323
|
if (typeof C == "function" && T > 0 && A > 0) {
|
|
1316
|
-
var I = this._getHorizontalRangeToRender(), E = I[0], y = I[1], F = I[2], z = I[3], x = this._getVerticalRangeToRender(), N = x[0], $ = x[1], U = x[2],
|
|
1317
|
-
this._callOnItemsRendered(E, y, N, $, F, z, U,
|
|
1324
|
+
var I = this._getHorizontalRangeToRender(), E = I[0], y = I[1], F = I[2], z = I[3], x = this._getVerticalRangeToRender(), N = x[0], $ = x[1], U = x[2], Z = x[3];
|
|
1325
|
+
this._callOnItemsRendered(E, y, N, $, F, z, U, Z);
|
|
1318
1326
|
}
|
|
1319
1327
|
if (typeof S == "function") {
|
|
1320
1328
|
var B = this.state, q = B.horizontalScrollDirection, K = B.scrollLeft, ie = B.scrollTop, de = B.scrollUpdateWasRequested, Q = B.verticalScrollDirection;
|
|
@@ -1324,16 +1332,16 @@ function Io(t) {
|
|
|
1324
1332
|
var p = this.props, T = p.columnCount, C = p.overscanColumnCount, S = p.overscanColumnsCount, A = p.overscanCount, I = p.rowCount, E = this.state, y = E.horizontalScrollDirection, F = E.isScrolling, z = E.scrollLeft, x = C || S || A || 1;
|
|
1325
1333
|
if (T === 0 || I === 0)
|
|
1326
1334
|
return [0, 0, 0, 0];
|
|
1327
|
-
var N = o(this.props, z, this._instanceProps), $ = r(this.props, N, z, this._instanceProps), U = !F || y === "backward" ? Math.max(1, x) : 1,
|
|
1328
|
-
return [Math.max(0, N - U), Math.max(0, Math.min(T - 1, $ +
|
|
1335
|
+
var N = o(this.props, z, this._instanceProps), $ = r(this.props, N, z, this._instanceProps), U = !F || y === "backward" ? Math.max(1, x) : 1, Z = !F || y === "forward" ? Math.max(1, x) : 1;
|
|
1336
|
+
return [Math.max(0, N - U), Math.max(0, Math.min(T - 1, $ + Z)), N, $];
|
|
1329
1337
|
}, P._getVerticalRangeToRender = function() {
|
|
1330
1338
|
var p = this.props, T = p.columnCount, C = p.overscanCount, S = p.overscanRowCount, A = p.overscanRowsCount, I = p.rowCount, E = this.state, y = E.isScrolling, F = E.verticalScrollDirection, z = E.scrollTop, x = S || A || C || 1;
|
|
1331
1339
|
if (T === 0 || I === 0)
|
|
1332
1340
|
return [0, 0, 0, 0];
|
|
1333
|
-
var N = d(this.props, z, this._instanceProps), $ = w(this.props, N, z, this._instanceProps), U = !y || F === "backward" ? Math.max(1, x) : 1,
|
|
1334
|
-
return [Math.max(0, N - U), Math.max(0, Math.min(I - 1, $ +
|
|
1341
|
+
var N = d(this.props, z, this._instanceProps), $ = w(this.props, N, z, this._instanceProps), U = !y || F === "backward" ? Math.max(1, x) : 1, Z = !y || F === "forward" ? Math.max(1, x) : 1;
|
|
1342
|
+
return [Math.max(0, N - U), Math.max(0, Math.min(I - 1, $ + Z)), N, $];
|
|
1335
1343
|
}, f;
|
|
1336
|
-
}(
|
|
1344
|
+
}(Jn), e.defaultProps = {
|
|
1337
1345
|
direction: "ltr",
|
|
1338
1346
|
itemData: void 0,
|
|
1339
1347
|
useIsScrolling: !1
|
|
@@ -1356,7 +1364,7 @@ var yo = function(e, n) {
|
|
|
1356
1364
|
if (typeof a != "number")
|
|
1357
1365
|
throw Error('An invalid "height" prop has been specified. Grids must specify a number for height. ' + ('"' + (a === null ? "null" : typeof a) + '" was specified.'));
|
|
1358
1366
|
}
|
|
1359
|
-
},
|
|
1367
|
+
}, Ut = 50, Tn = function(e, n) {
|
|
1360
1368
|
var o = e.rowCount, r = n.rowMetadataMap, a = n.estimatedRowHeight, s = n.lastMeasuredRowIndex, c = 0;
|
|
1361
1369
|
if (s >= o && (s = o - 1), s >= 0) {
|
|
1362
1370
|
var l = r[s];
|
|
@@ -1364,7 +1372,7 @@ var yo = function(e, n) {
|
|
|
1364
1372
|
}
|
|
1365
1373
|
var u = o - s - 1, h = u * a;
|
|
1366
1374
|
return c + h;
|
|
1367
|
-
},
|
|
1375
|
+
}, Pn = function(e, n) {
|
|
1368
1376
|
var o = e.columnCount, r = n.columnMetadataMap, a = n.estimatedColumnWidth, s = n.lastMeasuredColumnIndex, c = 0;
|
|
1369
1377
|
if (s >= o && (s = o - 1), s >= 0) {
|
|
1370
1378
|
var l = r[s];
|
|
@@ -1390,12 +1398,12 @@ var yo = function(e, n) {
|
|
|
1390
1398
|
e === "column" ? r.lastMeasuredColumnIndex = o : r.lastMeasuredRowIndex = o;
|
|
1391
1399
|
}
|
|
1392
1400
|
return a[o];
|
|
1393
|
-
},
|
|
1401
|
+
}, qt = function(e, n, o, r) {
|
|
1394
1402
|
var a, s;
|
|
1395
1403
|
e === "column" ? (a = o.columnMetadataMap, s = o.lastMeasuredColumnIndex) : (a = o.rowMetadataMap, s = o.lastMeasuredRowIndex);
|
|
1396
1404
|
var c = s > 0 ? a[s].offset : 0;
|
|
1397
|
-
return c >= r ?
|
|
1398
|
-
},
|
|
1405
|
+
return c >= r ? Sn(e, n, o, s, 0, r) : xo(e, n, o, Math.max(0, s), r);
|
|
1406
|
+
}, Sn = function(e, n, o, r, a, s) {
|
|
1399
1407
|
for (; a <= r; ) {
|
|
1400
1408
|
var c = a + Math.floor((r - a) / 2), l = fe(e, n, c, o).offset;
|
|
1401
1409
|
if (l === s)
|
|
@@ -1406,9 +1414,9 @@ var yo = function(e, n) {
|
|
|
1406
1414
|
}, xo = function(e, n, o, r, a) {
|
|
1407
1415
|
for (var s = e === "column" ? n.columnCount : n.rowCount, c = 1; r < s && fe(e, n, r, o).offset < a; )
|
|
1408
1416
|
r += c, c *= 2;
|
|
1409
|
-
return
|
|
1410
|
-
},
|
|
1411
|
-
var l = e === "column" ? n.width : n.height, u = fe(e, n, o, s), h = e === "column" ?
|
|
1417
|
+
return Sn(e, n, o, Math.min(r, s - 1), Math.floor(r / 2), a);
|
|
1418
|
+
}, jt = function(e, n, o, r, a, s, c) {
|
|
1419
|
+
var l = e === "column" ? n.width : n.height, u = fe(e, n, o, s), h = e === "column" ? Pn(n, s) : Tn(n, s), m = Math.max(0, Math.min(h - l, u.offset)), d = Math.max(0, u.offset - l + c + u.size);
|
|
1412
1420
|
switch (r === "smart" && (a >= d - l && a <= m + l ? r = "auto" : r = "center"), r) {
|
|
1413
1421
|
case "start":
|
|
1414
1422
|
return m;
|
|
@@ -1425,7 +1433,7 @@ var yo = function(e, n) {
|
|
|
1425
1433
|
return fe("column", e, n, o).offset;
|
|
1426
1434
|
},
|
|
1427
1435
|
getColumnStartIndexForOffset: function(e, n, o) {
|
|
1428
|
-
return
|
|
1436
|
+
return qt("column", e, o, n);
|
|
1429
1437
|
},
|
|
1430
1438
|
getColumnStopIndexForStartIndex: function(e, n, o, r) {
|
|
1431
1439
|
for (var a = e.columnCount, s = e.width, c = fe("column", e, n, r), l = o + s, u = c.offset + c.size, h = n; h < a - 1 && u < l; )
|
|
@@ -1435,13 +1443,13 @@ var yo = function(e, n) {
|
|
|
1435
1443
|
getColumnWidth: function(e, n, o) {
|
|
1436
1444
|
return o.columnMetadataMap[n].size;
|
|
1437
1445
|
},
|
|
1438
|
-
getEstimatedTotalHeight:
|
|
1439
|
-
getEstimatedTotalWidth:
|
|
1446
|
+
getEstimatedTotalHeight: Tn,
|
|
1447
|
+
getEstimatedTotalWidth: Pn,
|
|
1440
1448
|
getOffsetForColumnAndAlignment: function(e, n, o, r, a, s) {
|
|
1441
|
-
return
|
|
1449
|
+
return jt("column", e, n, o, r, a, s);
|
|
1442
1450
|
},
|
|
1443
1451
|
getOffsetForRowAndAlignment: function(e, n, o, r, a, s) {
|
|
1444
|
-
return
|
|
1452
|
+
return jt("row", e, n, o, r, a, s);
|
|
1445
1453
|
},
|
|
1446
1454
|
getRowOffset: function(e, n, o) {
|
|
1447
1455
|
return fe("row", e, n, o).offset;
|
|
@@ -1450,7 +1458,7 @@ var yo = function(e, n) {
|
|
|
1450
1458
|
return o.rowMetadataMap[n].size;
|
|
1451
1459
|
},
|
|
1452
1460
|
getRowStartIndexForOffset: function(e, n, o) {
|
|
1453
|
-
return
|
|
1461
|
+
return qt("row", e, o, n);
|
|
1454
1462
|
},
|
|
1455
1463
|
getRowStopIndexForStartIndex: function(e, n, o, r) {
|
|
1456
1464
|
for (var a = e.rowCount, s = e.height, c = fe("row", e, n, r), l = o + s, u = c.offset + c.size, h = n; h < a - 1 && u < l; )
|
|
@@ -1460,8 +1468,8 @@ var yo = function(e, n) {
|
|
|
1460
1468
|
initInstanceProps: function(e, n) {
|
|
1461
1469
|
var o = e, r = o.estimatedColumnWidth, a = o.estimatedRowHeight, s = {
|
|
1462
1470
|
columnMetadataMap: {},
|
|
1463
|
-
estimatedColumnWidth: r ||
|
|
1464
|
-
estimatedRowHeight: a ||
|
|
1471
|
+
estimatedColumnWidth: r || Ut,
|
|
1472
|
+
estimatedRowHeight: a || Ut,
|
|
1465
1473
|
lastMeasuredColumnIndex: -1,
|
|
1466
1474
|
lastMeasuredRowIndex: -1,
|
|
1467
1475
|
rowMetadataMap: {}
|
|
@@ -1504,11 +1512,11 @@ function Zt(t, e) {
|
|
|
1504
1512
|
}
|
|
1505
1513
|
var Lo = ["style"], No = ["style"];
|
|
1506
1514
|
function Eo(t, e) {
|
|
1507
|
-
var n = t.style, o =
|
|
1515
|
+
var n = t.style, o = Ht(t, Lo), r = e.style, a = Ht(e, No);
|
|
1508
1516
|
return !Zt(n, r) && !Zt(o, a);
|
|
1509
1517
|
}
|
|
1510
1518
|
const Oo = () => {
|
|
1511
|
-
const { viewMode: t } = Qe(), { scrollMode: e } = Ee(), { setColumnCount: n } =
|
|
1519
|
+
const { viewMode: t } = Qe(), { scrollMode: e } = Ee(), { setColumnCount: n } = nn(), { virtualScrollableElementRef: o } = et(), r = an(), a = L(
|
|
1512
1520
|
(w) => r.widths[w] || 0,
|
|
1513
1521
|
[r.widths]
|
|
1514
1522
|
), s = L(
|
|
@@ -1531,18 +1539,18 @@ const Oo = () => {
|
|
|
1531
1539
|
};
|
|
1532
1540
|
let oe;
|
|
1533
1541
|
typeof window < "u" ? oe = window : typeof self < "u" ? oe = self : oe = global;
|
|
1534
|
-
let
|
|
1535
|
-
const
|
|
1536
|
-
lt == null ||
|
|
1537
|
-
return
|
|
1538
|
-
}) : (
|
|
1542
|
+
let bt = null, Ct = null;
|
|
1543
|
+
const Bt = 20, ct = oe.clearTimeout, Kt = oe.setTimeout, lt = oe.cancelAnimationFrame || oe.mozCancelAnimationFrame || oe.webkitCancelAnimationFrame, Xt = oe.requestAnimationFrame || oe.mozRequestAnimationFrame || oe.webkitRequestAnimationFrame;
|
|
1544
|
+
lt == null || Xt == null ? (bt = ct, Ct = function(e) {
|
|
1545
|
+
return Kt(e, Bt);
|
|
1546
|
+
}) : (bt = function([e, n]) {
|
|
1539
1547
|
lt(e), ct(n);
|
|
1540
|
-
},
|
|
1541
|
-
const n =
|
|
1548
|
+
}, Ct = function(e) {
|
|
1549
|
+
const n = Xt(function() {
|
|
1542
1550
|
ct(o), e();
|
|
1543
|
-
}), o =
|
|
1551
|
+
}), o = Kt(function() {
|
|
1544
1552
|
lt(n), e();
|
|
1545
|
-
},
|
|
1553
|
+
}, Bt);
|
|
1546
1554
|
return [n, o];
|
|
1547
1555
|
});
|
|
1548
1556
|
function Do(t) {
|
|
@@ -1558,7 +1566,7 @@ function Do(t) {
|
|
|
1558
1566
|
if (_.target.className && typeof _.target.className.indexOf == "function" && _.target.className.indexOf("contract-trigger") < 0 && _.target.className.indexOf("expand-trigger") < 0)
|
|
1559
1567
|
return;
|
|
1560
1568
|
const f = this;
|
|
1561
|
-
s(this), this.__resizeRAF__ &&
|
|
1569
|
+
s(this), this.__resizeRAF__ && bt(this.__resizeRAF__), this.__resizeRAF__ = Ct(function() {
|
|
1562
1570
|
a(f) && (f.__resizeLast__.width = f.offsetWidth, f.__resizeLast__.height = f.offsetHeight, f.__resizeListeners__.forEach(function(p) {
|
|
1563
1571
|
p.call(f, _);
|
|
1564
1572
|
}));
|
|
@@ -1617,7 +1625,7 @@ function Do(t) {
|
|
|
1617
1625
|
}
|
|
1618
1626
|
};
|
|
1619
1627
|
}
|
|
1620
|
-
class zo extends
|
|
1628
|
+
class zo extends Yn {
|
|
1621
1629
|
constructor(...e) {
|
|
1622
1630
|
super(...e), this.state = {
|
|
1623
1631
|
height: this.props.defaultHeight || 0,
|
|
@@ -1723,7 +1731,7 @@ const Ao = ({ widths: t, heights: e }) => {
|
|
|
1723
1731
|
r.current = !1;
|
|
1724
1732
|
}, [n]);
|
|
1725
1733
|
const c = k(() => s.reduce((l, u) => l + Number(u.width || 0), 0), [s]);
|
|
1726
|
-
return /* @__PURE__ */ i("div", { style: { width: c, position: "relative" }, children: a.map((l, u) => /* @__PURE__ */ i(
|
|
1734
|
+
return /* @__PURE__ */ i("div", { style: { width: c, position: "relative" }, children: a.map((l, u) => /* @__PURE__ */ i(yt, { onIntersectRatioChange: () => {
|
|
1727
1735
|
}, style: s[u], pageNumber: l }, l)) });
|
|
1728
1736
|
}, Fo = ({ widths: t, heights: e }) => {
|
|
1729
1737
|
const { focusedPage: n } = se(), { isScrolling: o } = tt(), r = k(() => ({
|
|
@@ -1743,7 +1751,7 @@ const Ao = ({ widths: t, heights: e }) => {
|
|
|
1743
1751
|
position: "relative"
|
|
1744
1752
|
},
|
|
1745
1753
|
children: /* @__PURE__ */ i(
|
|
1746
|
-
|
|
1754
|
+
yt,
|
|
1747
1755
|
{
|
|
1748
1756
|
style: r,
|
|
1749
1757
|
onIntersectRatioChange: () => {
|
|
@@ -1754,10 +1762,10 @@ const Ao = ({ widths: t, heights: e }) => {
|
|
|
1754
1762
|
)
|
|
1755
1763
|
}
|
|
1756
1764
|
);
|
|
1757
|
-
}, ko =
|
|
1765
|
+
}, ko = Qn(({ columnIndex: t, rowIndex: e, data: n, style: o }) => {
|
|
1758
1766
|
const r = t + 1 + e * n.columnCount;
|
|
1759
1767
|
return /* @__PURE__ */ i(
|
|
1760
|
-
|
|
1768
|
+
yt,
|
|
1761
1769
|
{
|
|
1762
1770
|
style: o,
|
|
1763
1771
|
onIntersectRatioChange: n.handleIntersectRatioChange,
|
|
@@ -1765,10 +1773,10 @@ const Ao = ({ widths: t, heights: e }) => {
|
|
|
1765
1773
|
},
|
|
1766
1774
|
r
|
|
1767
1775
|
);
|
|
1768
|
-
}, Eo),
|
|
1769
|
-
const { initialPage: t = 1, initialScrollMode: e } =
|
|
1770
|
-
|
|
1771
|
-
const { scrollToPage: r } =
|
|
1776
|
+
}, Eo), ds = () => {
|
|
1777
|
+
const { initialPage: t = 1, initialScrollMode: e } = rr(), { pagesRef: n, setPagesRef: o } = Ie();
|
|
1778
|
+
Tr(n);
|
|
1779
|
+
const { scrollToPage: r } = pn(), {
|
|
1772
1780
|
virtualScrollRef: a,
|
|
1773
1781
|
getVirtualScrollRef: s,
|
|
1774
1782
|
getPageScrollElementRef: c,
|
|
@@ -1781,7 +1789,7 @@ const Ao = ({ widths: t, heights: e }) => {
|
|
|
1781
1789
|
), p = W({
|
|
1782
1790
|
viewMode: _,
|
|
1783
1791
|
scrollMode: v
|
|
1784
|
-
}), T = W(!1), C = W(), { isFullScreen: S } =
|
|
1792
|
+
}), T = W(!1), C = W(), { isFullScreen: S } = or(), {
|
|
1785
1793
|
pageDimension: A,
|
|
1786
1794
|
rowCount: I,
|
|
1787
1795
|
rowHeight: E,
|
|
@@ -1789,14 +1797,14 @@ const Ao = ({ widths: t, heights: e }) => {
|
|
|
1789
1797
|
columnWidth: F,
|
|
1790
1798
|
estimatedColumnWidth: z,
|
|
1791
1799
|
estimatedRowHeight: x
|
|
1792
|
-
} = Oo(), N = gt(h, 100), [$, U] = H({}),
|
|
1800
|
+
} = Oo(), N = gt(h, 100), [$, U] = H({}), Z = gt($, 100), { isScrolling: B } = tt(), q = W(), K = W({
|
|
1793
1801
|
scrollTop: 0,
|
|
1794
1802
|
scrollLeft: 0
|
|
1795
1803
|
});
|
|
1796
|
-
|
|
1797
|
-
const { isPressed: ie } =
|
|
1804
|
+
Ir(n);
|
|
1805
|
+
const { isPressed: ie } = Pr(), { selectionMode: de } = nr(), { initializeGrabScroll: Q, resetGrabState: ae } = Sr({
|
|
1798
1806
|
isPressed: ie
|
|
1799
|
-
}), ee = k(() => de ===
|
|
1807
|
+
}), ee = k(() => de === er.HAND, [de]), be = L((M, G) => {
|
|
1800
1808
|
U((J) => G > -1 ? { ...J, [M]: Math.round(G * 100) } : (delete J[M], J));
|
|
1801
1809
|
}, []), Oe = k(() => ({
|
|
1802
1810
|
columnCount: y,
|
|
@@ -1852,10 +1860,10 @@ const Ao = ({ widths: t, heights: e }) => {
|
|
|
1852
1860
|
const G = K.current.scrollTop, J = K.current.scrollLeft;
|
|
1853
1861
|
if (N.height && N.width) {
|
|
1854
1862
|
T.current = !0;
|
|
1855
|
-
const { height: _e, width: xe } = N, { height:
|
|
1863
|
+
const { height: _e, width: xe } = N, { height: qn, width: jn } = R.current, Zn = G / qn * _e, Bn = J / jn * xe, Kn = Math.min(Zn, _e) || 0, Xn = Math.min(Bn, xe) || 0;
|
|
1856
1864
|
a == null || a.scrollTo({
|
|
1857
|
-
scrollTop:
|
|
1858
|
-
scrollLeft:
|
|
1865
|
+
scrollTop: Kn,
|
|
1866
|
+
scrollLeft: Xn
|
|
1859
1867
|
}), R.current = {
|
|
1860
1868
|
height: N.height,
|
|
1861
1869
|
width: N.width
|
|
@@ -1866,12 +1874,12 @@ const Ao = ({ widths: t, heights: e }) => {
|
|
|
1866
1874
|
}, [N, _, v]), O(() => {
|
|
1867
1875
|
if ((B.current || T.current) && (B.current = !1), B.current)
|
|
1868
1876
|
return;
|
|
1869
|
-
const M = Object.entries(
|
|
1877
|
+
const M = Object.entries(Z);
|
|
1870
1878
|
let G = 0, J = -1;
|
|
1871
1879
|
M.forEach((_e) => {
|
|
1872
1880
|
J < _e[1] && (G = Number(_e[0]), J = _e[1]);
|
|
1873
1881
|
}), G && g(G);
|
|
1874
|
-
}, [
|
|
1882
|
+
}, [Z, g]), O(() => () => {
|
|
1875
1883
|
q.current && clearTimeout(q.current), C.current && clearTimeout(C.current);
|
|
1876
1884
|
}, []);
|
|
1877
1885
|
const he = k(() => re(me["rp-pages-container"], {
|
|
@@ -1999,7 +2007,7 @@ const Ao = ({ widths: t, heights: e }) => {
|
|
|
1999
2007
|
changePage: n
|
|
2000
2008
|
}
|
|
2001
2009
|
) : l ? /* @__PURE__ */ D("div", { className: ut["rp-paginate"], children: [
|
|
2002
|
-
!u && /* @__PURE__ */ i(
|
|
2010
|
+
!u && /* @__PURE__ */ i(j, { content: h == null ? void 0 : h.previousPageTooltip, children: /* @__PURE__ */ i(
|
|
2003
2011
|
te,
|
|
2004
2012
|
{
|
|
2005
2013
|
onClick: r,
|
|
@@ -2008,8 +2016,8 @@ const Ao = ({ widths: t, heights: e }) => {
|
|
|
2008
2016
|
children: /* @__PURE__ */ i(Wo, {})
|
|
2009
2017
|
}
|
|
2010
2018
|
) }),
|
|
2011
|
-
/* @__PURE__ */ i(
|
|
2012
|
-
|
|
2019
|
+
/* @__PURE__ */ i(j, { content: h == null ? void 0 : h.currentPageTooltip, children: /* @__PURE__ */ i(
|
|
2020
|
+
tn,
|
|
2013
2021
|
{
|
|
2014
2022
|
onKeyDown: g,
|
|
2015
2023
|
onBlur: w,
|
|
@@ -2022,7 +2030,7 @@ const Ao = ({ widths: t, heights: e }) => {
|
|
|
2022
2030
|
"/",
|
|
2023
2031
|
e
|
|
2024
2032
|
] }),
|
|
2025
|
-
!u && /* @__PURE__ */ i(
|
|
2033
|
+
!u && /* @__PURE__ */ i(j, { content: h == null ? void 0 : h.nextPageTooltip, children: /* @__PURE__ */ i(
|
|
2026
2034
|
te,
|
|
2027
2035
|
{
|
|
2028
2036
|
onClick: o,
|
|
@@ -2033,7 +2041,7 @@ const Ao = ({ widths: t, heights: e }) => {
|
|
|
2033
2041
|
) })
|
|
2034
2042
|
] }) : null;
|
|
2035
2043
|
};
|
|
2036
|
-
var
|
|
2044
|
+
var xt = "Dialog", [In, ps] = Nr(xt), [$o, ce] = In(xt), yn = (t) => {
|
|
2037
2045
|
const {
|
|
2038
2046
|
__scopeDialog: e,
|
|
2039
2047
|
children: n,
|
|
@@ -2041,7 +2049,7 @@ var yt = "Dialog", [Sn, ms] = Or(yt), [$o, ce] = Sn(yt), In = (t) => {
|
|
|
2041
2049
|
defaultOpen: r,
|
|
2042
2050
|
onOpenChange: a,
|
|
2043
2051
|
modal: s = !0
|
|
2044
|
-
} = t, c = V.useRef(null), l = V.useRef(null), [u = !1, h] =
|
|
2052
|
+
} = t, c = V.useRef(null), l = V.useRef(null), [u = !1, h] = Dr({
|
|
2045
2053
|
prop: o,
|
|
2046
2054
|
defaultProp: r,
|
|
2047
2055
|
onChange: a
|
|
@@ -2063,10 +2071,10 @@ var yt = "Dialog", [Sn, ms] = Or(yt), [$o, ce] = Sn(yt), In = (t) => {
|
|
|
2063
2071
|
}
|
|
2064
2072
|
);
|
|
2065
2073
|
};
|
|
2066
|
-
|
|
2067
|
-
var
|
|
2074
|
+
yn.displayName = xt;
|
|
2075
|
+
var xn = "DialogTrigger", Go = V.forwardRef(
|
|
2068
2076
|
(t, e) => {
|
|
2069
|
-
const { __scopeDialog: n, ...o } = t, r = ce(
|
|
2077
|
+
const { __scopeDialog: n, ...o } = t, r = ce(xn, n), a = Tt(e, r.triggerRef);
|
|
2070
2078
|
return /* @__PURE__ */ i(
|
|
2071
2079
|
He.button,
|
|
2072
2080
|
{
|
|
@@ -2074,7 +2082,7 @@ var yn = "DialogTrigger", Go = V.forwardRef(
|
|
|
2074
2082
|
"aria-haspopup": "dialog",
|
|
2075
2083
|
"aria-expanded": r.open,
|
|
2076
2084
|
"aria-controls": r.contentId,
|
|
2077
|
-
"data-state":
|
|
2085
|
+
"data-state": Nt(r.open),
|
|
2078
2086
|
...o,
|
|
2079
2087
|
ref: a,
|
|
2080
2088
|
onClick: Fe(t.onClick, r.onOpenToggle)
|
|
@@ -2082,31 +2090,31 @@ var yn = "DialogTrigger", Go = V.forwardRef(
|
|
|
2082
2090
|
);
|
|
2083
2091
|
}
|
|
2084
2092
|
);
|
|
2085
|
-
Go.displayName =
|
|
2086
|
-
var
|
|
2093
|
+
Go.displayName = xn;
|
|
2094
|
+
var Rt = "DialogPortal", [Vo, Rn] = In(Rt, {
|
|
2087
2095
|
forceMount: void 0
|
|
2088
|
-
}),
|
|
2089
|
-
const { __scopeDialog: e, forceMount: n, children: o, container: r } = t, a = ce(
|
|
2090
|
-
return /* @__PURE__ */ i(Vo, { scope: e, forceMount: n, children: V.Children.map(o, (s) => /* @__PURE__ */ i(
|
|
2096
|
+
}), Ln = (t) => {
|
|
2097
|
+
const { __scopeDialog: e, forceMount: n, children: o, container: r } = t, a = ce(Rt, e);
|
|
2098
|
+
return /* @__PURE__ */ i(Vo, { scope: e, forceMount: n, children: V.Children.map(o, (s) => /* @__PURE__ */ i(Pt, { present: n || a.open, children: /* @__PURE__ */ i(Mr, { asChild: !0, container: r, children: s }) })) });
|
|
2091
2099
|
};
|
|
2092
|
-
|
|
2093
|
-
var
|
|
2100
|
+
Ln.displayName = Rt;
|
|
2101
|
+
var Ze = "DialogOverlay", Nn = V.forwardRef(
|
|
2094
2102
|
(t, e) => {
|
|
2095
|
-
const n =
|
|
2096
|
-
return a.modal ? /* @__PURE__ */ i(
|
|
2103
|
+
const n = Rn(Ze, t.__scopeDialog), { forceMount: o = n.forceMount, ...r } = t, a = ce(Ze, t.__scopeDialog);
|
|
2104
|
+
return a.modal ? /* @__PURE__ */ i(Pt, { present: o || a.open, children: /* @__PURE__ */ i(Uo, { ...r, ref: e }) }) : null;
|
|
2097
2105
|
}
|
|
2098
2106
|
);
|
|
2099
|
-
|
|
2107
|
+
Nn.displayName = Ze;
|
|
2100
2108
|
var Uo = V.forwardRef(
|
|
2101
2109
|
(t, e) => {
|
|
2102
|
-
const { __scopeDialog: n, ...o } = t, r = ce(
|
|
2110
|
+
const { __scopeDialog: n, ...o } = t, r = ce(Ze, n);
|
|
2103
2111
|
return (
|
|
2104
2112
|
// Make sure `Content` is scrollable even when it doesn't live inside `RemoveScroll`
|
|
2105
2113
|
// ie. when `Overlay` and `Content` are siblings
|
|
2106
2114
|
/* @__PURE__ */ i(Ar, { as: Er, allowPinchZoom: !0, shards: [r.contentRef], children: /* @__PURE__ */ i(
|
|
2107
2115
|
He.div,
|
|
2108
2116
|
{
|
|
2109
|
-
"data-state":
|
|
2117
|
+
"data-state": Nt(r.open),
|
|
2110
2118
|
...o,
|
|
2111
2119
|
ref: e,
|
|
2112
2120
|
style: { pointerEvents: "auto", ...o.style }
|
|
@@ -2114,22 +2122,22 @@ var Uo = V.forwardRef(
|
|
|
2114
2122
|
) })
|
|
2115
2123
|
);
|
|
2116
2124
|
}
|
|
2117
|
-
), Se = "DialogContent",
|
|
2125
|
+
), Se = "DialogContent", En = V.forwardRef(
|
|
2118
2126
|
(t, e) => {
|
|
2119
|
-
const n =
|
|
2120
|
-
return /* @__PURE__ */ i(
|
|
2127
|
+
const n = Rn(Se, t.__scopeDialog), { forceMount: o = n.forceMount, ...r } = t, a = ce(Se, t.__scopeDialog);
|
|
2128
|
+
return /* @__PURE__ */ i(Pt, { present: o || a.open, children: a.modal ? /* @__PURE__ */ i(qo, { ...r, ref: e }) : /* @__PURE__ */ i(jo, { ...r, ref: e }) });
|
|
2121
2129
|
}
|
|
2122
2130
|
);
|
|
2123
|
-
|
|
2131
|
+
En.displayName = Se;
|
|
2124
2132
|
var qo = V.forwardRef(
|
|
2125
2133
|
(t, e) => {
|
|
2126
|
-
const n = ce(Se, t.__scopeDialog), o = V.useRef(null), r =
|
|
2134
|
+
const n = ce(Se, t.__scopeDialog), o = V.useRef(null), r = Tt(e, n.contentRef, o);
|
|
2127
2135
|
return V.useEffect(() => {
|
|
2128
2136
|
const a = o.current;
|
|
2129
2137
|
if (a)
|
|
2130
|
-
return
|
|
2138
|
+
return Fr(a);
|
|
2131
2139
|
}, []), /* @__PURE__ */ i(
|
|
2132
|
-
|
|
2140
|
+
On,
|
|
2133
2141
|
{
|
|
2134
2142
|
...t,
|
|
2135
2143
|
ref: r,
|
|
@@ -2150,11 +2158,11 @@ var qo = V.forwardRef(
|
|
|
2150
2158
|
}
|
|
2151
2159
|
);
|
|
2152
2160
|
}
|
|
2153
|
-
),
|
|
2161
|
+
), jo = V.forwardRef(
|
|
2154
2162
|
(t, e) => {
|
|
2155
2163
|
const n = ce(Se, t.__scopeDialog), o = V.useRef(!1), r = V.useRef(!1);
|
|
2156
2164
|
return /* @__PURE__ */ i(
|
|
2157
|
-
|
|
2165
|
+
On,
|
|
2158
2166
|
{
|
|
2159
2167
|
...t,
|
|
2160
2168
|
ref: e,
|
|
@@ -2173,12 +2181,12 @@ var qo = V.forwardRef(
|
|
|
2173
2181
|
}
|
|
2174
2182
|
);
|
|
2175
2183
|
}
|
|
2176
|
-
),
|
|
2184
|
+
), On = V.forwardRef(
|
|
2177
2185
|
(t, e) => {
|
|
2178
|
-
const { __scopeDialog: n, trapFocus: o, onOpenAutoFocus: r, onCloseAutoFocus: a, ...s } = t, c = ce(Se, n), l = V.useRef(null), u =
|
|
2179
|
-
return
|
|
2186
|
+
const { __scopeDialog: n, trapFocus: o, onOpenAutoFocus: r, onCloseAutoFocus: a, ...s } = t, c = ce(Se, n), l = V.useRef(null), u = Tt(e, l);
|
|
2187
|
+
return kr(), /* @__PURE__ */ D(ke, { children: [
|
|
2180
2188
|
/* @__PURE__ */ i(
|
|
2181
|
-
|
|
2189
|
+
Wr,
|
|
2182
2190
|
{
|
|
2183
2191
|
asChild: !0,
|
|
2184
2192
|
loop: !0,
|
|
@@ -2186,13 +2194,13 @@ var qo = V.forwardRef(
|
|
|
2186
2194
|
onMountAutoFocus: r,
|
|
2187
2195
|
onUnmountAutoFocus: a,
|
|
2188
2196
|
children: /* @__PURE__ */ i(
|
|
2189
|
-
|
|
2197
|
+
zr,
|
|
2190
2198
|
{
|
|
2191
2199
|
role: "dialog",
|
|
2192
2200
|
id: c.contentId,
|
|
2193
2201
|
"aria-describedby": c.descriptionId,
|
|
2194
2202
|
"aria-labelledby": c.titleId,
|
|
2195
|
-
"data-state":
|
|
2203
|
+
"data-state": Nt(c.open),
|
|
2196
2204
|
...s,
|
|
2197
2205
|
ref: u,
|
|
2198
2206
|
onDismiss: () => c.onOpenChange(!1)
|
|
@@ -2206,23 +2214,23 @@ var qo = V.forwardRef(
|
|
|
2206
2214
|
] })
|
|
2207
2215
|
] });
|
|
2208
2216
|
}
|
|
2209
|
-
),
|
|
2217
|
+
), Lt = "DialogTitle", Dn = V.forwardRef(
|
|
2210
2218
|
(t, e) => {
|
|
2211
|
-
const { __scopeDialog: n, ...o } = t, r = ce(
|
|
2219
|
+
const { __scopeDialog: n, ...o } = t, r = ce(Lt, n);
|
|
2212
2220
|
return /* @__PURE__ */ i(He.h2, { id: r.titleId, ...o, ref: e });
|
|
2213
2221
|
}
|
|
2214
2222
|
);
|
|
2215
|
-
|
|
2216
|
-
var
|
|
2223
|
+
Dn.displayName = Lt;
|
|
2224
|
+
var zn = "DialogDescription", Zo = V.forwardRef(
|
|
2217
2225
|
(t, e) => {
|
|
2218
|
-
const { __scopeDialog: n, ...o } = t, r = ce(
|
|
2226
|
+
const { __scopeDialog: n, ...o } = t, r = ce(zn, n);
|
|
2219
2227
|
return /* @__PURE__ */ i(He.p, { id: r.descriptionId, ...o, ref: e });
|
|
2220
2228
|
}
|
|
2221
2229
|
);
|
|
2222
|
-
|
|
2223
|
-
var
|
|
2230
|
+
Zo.displayName = zn;
|
|
2231
|
+
var An = "DialogClose", Fn = V.forwardRef(
|
|
2224
2232
|
(t, e) => {
|
|
2225
|
-
const { __scopeDialog: n, ...o } = t, r = ce(
|
|
2233
|
+
const { __scopeDialog: n, ...o } = t, r = ce(An, n);
|
|
2226
2234
|
return /* @__PURE__ */ i(
|
|
2227
2235
|
He.button,
|
|
2228
2236
|
{
|
|
@@ -2234,16 +2242,16 @@ var zn = "DialogClose", An = V.forwardRef(
|
|
|
2234
2242
|
);
|
|
2235
2243
|
}
|
|
2236
2244
|
);
|
|
2237
|
-
|
|
2238
|
-
function
|
|
2245
|
+
Fn.displayName = An;
|
|
2246
|
+
function Nt(t) {
|
|
2239
2247
|
return t ? "open" : "closed";
|
|
2240
2248
|
}
|
|
2241
|
-
var
|
|
2249
|
+
var kn = "DialogTitleWarning", [hs, Wn] = Or(kn, {
|
|
2242
2250
|
contentName: Se,
|
|
2243
|
-
titleName:
|
|
2251
|
+
titleName: Lt,
|
|
2244
2252
|
docsSlug: "dialog"
|
|
2245
2253
|
}), Bo = ({ titleId: t }) => {
|
|
2246
|
-
const e = kn
|
|
2254
|
+
const e = Wn(kn), n = `\`${e.contentName}\` requires a \`${e.titleName}\` for the component to be accessible for screen reader users.
|
|
2247
2255
|
|
|
2248
2256
|
If you want to hide the \`${e.titleName}\`, you can wrap it with our VisuallyHidden component.
|
|
2249
2257
|
|
|
@@ -2252,13 +2260,13 @@ For more information, see https://radix-ui.com/primitives/docs/components/${e.do
|
|
|
2252
2260
|
t && (document.getElementById(t) || console.error(n));
|
|
2253
2261
|
}, [n, t]), null;
|
|
2254
2262
|
}, Ko = "DialogDescriptionWarning", Xo = ({ contentRef: t, descriptionId: e }) => {
|
|
2255
|
-
const o = `Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${
|
|
2263
|
+
const o = `Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${Wn(Ko).contentName}}.`;
|
|
2256
2264
|
return V.useEffect(() => {
|
|
2257
2265
|
var a;
|
|
2258
2266
|
const r = (a = t.current) == null ? void 0 : a.getAttribute("aria-describedby");
|
|
2259
2267
|
e && r && (document.getElementById(e) || console.warn(o));
|
|
2260
2268
|
}, [o, t, e]), null;
|
|
2261
|
-
}, Jo =
|
|
2269
|
+
}, Jo = yn, Yo = Ln, Qo = Nn, ei = En, ti = Dn, ni = Fn;
|
|
2262
2270
|
const Pe = {
|
|
2263
2271
|
"rp-dialog-wrapper": "_rp-dialog-wrapper_slqo7_1",
|
|
2264
2272
|
"rp-dialog-overlay": "_rp-dialog-overlay_slqo7_7",
|
|
@@ -2268,7 +2276,7 @@ const Pe = {
|
|
|
2268
2276
|
"rp-dialog-close": "_rp-dialog-close_slqo7_47",
|
|
2269
2277
|
"rp-properties-divider": "_rp-properties-divider_slqo7_55"
|
|
2270
2278
|
}, ri = () => {
|
|
2271
|
-
const { pdfProperties: t } = Y(), { container: e } = Ie(), { activeDocumentProperties: n, setActiveDocumentProperties: o } =
|
|
2279
|
+
const { pdfProperties: t } = Y(), { container: e } = Ie(), { activeDocumentProperties: n, setActiveDocumentProperties: o } = $r(), { localeMessages: r } = le(), a = k(() => {
|
|
2272
2280
|
if (!t)
|
|
2273
2281
|
return [];
|
|
2274
2282
|
const {
|
|
@@ -2312,8 +2320,8 @@ const Pe = {
|
|
|
2312
2320
|
/* @__PURE__ */ i(Qo, { className: Pe["rp-dialog-overlay"] }),
|
|
2313
2321
|
/* @__PURE__ */ D(ei, { className: Pe["rp-document-dialog"], children: [
|
|
2314
2322
|
/* @__PURE__ */ i(ti, { className: Pe["rp-dialog-title"], children: r == null ? void 0 : r.documentPropertiesLabel }),
|
|
2315
|
-
/* @__PURE__ */ i("div", { className: Pe["rp-document-properties"], children: a.map((s, c) => /* @__PURE__ */ i("div", { children: s.separate ? /* @__PURE__ */ i("div", { className: Pe["rp-properties-divider"] }) : /* @__PURE__ */ i(
|
|
2316
|
-
/* @__PURE__ */ i(ni, { asChild: !0, className: Pe["rp-dialog-close"], children: /* @__PURE__ */ i(
|
|
2323
|
+
/* @__PURE__ */ i("div", { className: Pe["rp-document-properties"], children: a.map((s, c) => /* @__PURE__ */ i("div", { children: s.separate ? /* @__PURE__ */ i("div", { className: Pe["rp-properties-divider"] }) : /* @__PURE__ */ i(Hr, { label: s.label, value: s.value }) }, c)) }),
|
|
2324
|
+
/* @__PURE__ */ i(ni, { asChild: !0, className: Pe["rp-dialog-close"], children: /* @__PURE__ */ i(ln, {}) })
|
|
2317
2325
|
] })
|
|
2318
2326
|
] }) }) });
|
|
2319
2327
|
}, oi = {
|
|
@@ -2329,23 +2337,23 @@ const Pe = {
|
|
|
2329
2337
|
const o = document.createElement("a");
|
|
2330
2338
|
o.href = await ai(e), o.download = t, document.body.appendChild(o), o.click(), document.body.removeChild(o);
|
|
2331
2339
|
}, [t, e]) };
|
|
2332
|
-
},
|
|
2340
|
+
}, Mn = () => {
|
|
2333
2341
|
const { downloadIcon: t } = ue();
|
|
2334
2342
|
return t || /* @__PURE__ */ i(jr, {});
|
|
2335
|
-
},
|
|
2336
|
-
/* @__PURE__ */ i("div", { className: "rp-menu-item-left", children: /* @__PURE__ */ i(
|
|
2343
|
+
}, Hn = ({ children: t, className: e, localeMessages: n }) => /* @__PURE__ */ i(j, { className: e, content: n == null ? void 0 : n.downloadFileTooltip, children: t }), ci = ({ download: t, localeMessages: e }) => /* @__PURE__ */ i(Hn, { localeMessages: e, children: /* @__PURE__ */ i(te, { onClick: t, "aria-label": e == null ? void 0 : e.downloadFileTooltip, children: /* @__PURE__ */ i(Mn, {}) }) }), li = ({ download: t, localeMessages: e }) => /* @__PURE__ */ i(we, { onClick: t, children: /* @__PURE__ */ D(Hn, { className: "rp-menu-item", localeMessages: e, children: [
|
|
2344
|
+
/* @__PURE__ */ i("div", { className: "rp-menu-item-left", children: /* @__PURE__ */ i(Mn, {}) }),
|
|
2337
2345
|
e == null ? void 0 : e.downloadFileLabel
|
|
2338
|
-
] }) }),
|
|
2346
|
+
] }) }), $n = () => {
|
|
2339
2347
|
const { download: t } = si(), { downloadTool: e = !0 } = ge(), { isSmallScreen: n } = ye(), { localeMessages: o } = le();
|
|
2340
2348
|
return e ? n ? /* @__PURE__ */ i(li, { download: t, localeMessages: o }) : typeof e == "function" ? /* @__PURE__ */ i(e, { download: t }) : e ? /* @__PURE__ */ i(ci, { download: t, localeMessages: o }) : null : null;
|
|
2341
|
-
},
|
|
2349
|
+
}, Gn = () => {
|
|
2342
2350
|
const { printIcon: t } = ue();
|
|
2343
|
-
return t || /* @__PURE__ */ i(
|
|
2344
|
-
},
|
|
2345
|
-
/* @__PURE__ */ i("div", { className: "rp-menu-item-left", children: /* @__PURE__ */ i(
|
|
2351
|
+
return t || /* @__PURE__ */ i(Zr, {});
|
|
2352
|
+
}, Vn = ({ children: t, className: e, localeMessages: n }) => /* @__PURE__ */ i(j, { className: e, content: n == null ? void 0 : n.printTooltip, children: t }), ui = ({ print: t, localeMessages: e }) => /* @__PURE__ */ i(Vn, { localeMessages: e, children: /* @__PURE__ */ i(te, { onClick: t, "aria-label": e == null ? void 0 : e.printTooltip, children: /* @__PURE__ */ i(Gn, {}) }) }), di = ({ print: t, localeMessages: e }) => /* @__PURE__ */ i(we, { onClick: t, children: /* @__PURE__ */ D(Vn, { className: "rp-menu-item", localeMessages: e, children: [
|
|
2353
|
+
/* @__PURE__ */ i("div", { className: "rp-menu-item-left", children: /* @__PURE__ */ i(Gn, {}) }),
|
|
2346
2354
|
e == null ? void 0 : e.printLabel
|
|
2347
|
-
] }) }),
|
|
2348
|
-
const { print: t, cancel: e, setOnProgress: n, setOnComplete: o, setOnError: r, progress: a } =
|
|
2355
|
+
] }) }), Un = () => {
|
|
2356
|
+
const { print: t, cancel: e, setOnProgress: n, setOnComplete: o, setOnError: r, progress: a } = It(), { printTool: s = !0 } = ge(), { isSmallScreen: c } = ye(), { localeMessages: l } = le();
|
|
2349
2357
|
return s ? c ? /* @__PURE__ */ i(di, { print: t, localeMessages: l }) : typeof s == "function" ? /* @__PURE__ */ i(
|
|
2350
2358
|
s,
|
|
2351
2359
|
{
|
|
@@ -2361,26 +2369,26 @@ const Pe = {
|
|
|
2361
2369
|
"rp-go-to-Top": "_rp-go-to-Top_4e0yd_1"
|
|
2362
2370
|
}, hi = () => {
|
|
2363
2371
|
const { goToFirstPageIcon: t } = ue();
|
|
2364
|
-
return t || /* @__PURE__ */ i(
|
|
2372
|
+
return t || /* @__PURE__ */ i(dn, { className: pi["rp-go-to-Top"] });
|
|
2365
2373
|
}, mi = () => {
|
|
2366
2374
|
const { goToLastPageIcon: t } = ue();
|
|
2367
|
-
return t || /* @__PURE__ */ i(
|
|
2368
|
-
},
|
|
2375
|
+
return t || /* @__PURE__ */ i(dn, {});
|
|
2376
|
+
}, Jt = { width: "100%" }, fi = () => {
|
|
2369
2377
|
const { goToPage: t, totalPages: e, focusedPage: n } = se(), { jumpNavigationTool: o = !0 } = ge(), { localeMessages: r } = le(), a = k(() => n === 1, [n]), s = k(() => n === e, [n, e]), c = L(() => {
|
|
2370
2378
|
t(1);
|
|
2371
2379
|
}, [t]), l = L(() => {
|
|
2372
2380
|
t(e);
|
|
2373
2381
|
}, [t, e]);
|
|
2374
|
-
return o ? /* @__PURE__ */ D(
|
|
2375
|
-
/* @__PURE__ */ i(we, { onClick: c, children: /* @__PURE__ */ i(
|
|
2382
|
+
return o ? /* @__PURE__ */ D(je, { children: [
|
|
2383
|
+
/* @__PURE__ */ i(we, { onClick: c, children: /* @__PURE__ */ i(j, { content: r == null ? void 0 : r.firstPageTooltip, style: Jt, children: /* @__PURE__ */ D("div", { className: "rp-menu-item", "aria-disabled": a, children: [
|
|
2376
2384
|
/* @__PURE__ */ i("div", { className: "rp-menu-item-left", children: /* @__PURE__ */ i(hi, {}) }),
|
|
2377
2385
|
/* @__PURE__ */ i("span", { children: r == null ? void 0 : r.firstPageLabel })
|
|
2378
2386
|
] }) }) }),
|
|
2379
|
-
/* @__PURE__ */ i(we, { onClick: l, children: /* @__PURE__ */ i(
|
|
2387
|
+
/* @__PURE__ */ i(we, { onClick: l, children: /* @__PURE__ */ i(j, { content: r == null ? void 0 : r.lastPageTooltip, style: Jt, children: /* @__PURE__ */ D("div", { className: "rp-menu-item", "aria-disabled": s, children: [
|
|
2380
2388
|
/* @__PURE__ */ i("div", { className: "rp-menu-item-left", children: /* @__PURE__ */ i(mi, {}) }),
|
|
2381
2389
|
/* @__PURE__ */ i("span", { children: r == null ? void 0 : r.lastPageLabel })
|
|
2382
2390
|
] }) }) }),
|
|
2383
|
-
/* @__PURE__ */ i(
|
|
2391
|
+
/* @__PURE__ */ i(St, {})
|
|
2384
2392
|
] }) : null;
|
|
2385
2393
|
}, gi = () => {
|
|
2386
2394
|
const { container: t } = Ie(), { isSmallScreen: e } = ye(), {
|
|
@@ -2407,25 +2415,25 @@ const Pe = {
|
|
|
2407
2415
|
c,
|
|
2408
2416
|
l,
|
|
2409
2417
|
e
|
|
2410
|
-
]) ? /* @__PURE__ */ D(
|
|
2418
|
+
]) ? /* @__PURE__ */ D(Gr, { children: [
|
|
2411
2419
|
/* @__PURE__ */ i(
|
|
2412
|
-
|
|
2420
|
+
cn,
|
|
2413
2421
|
{
|
|
2414
2422
|
container: t,
|
|
2415
|
-
triggerComponent: /* @__PURE__ */ i("div", { role: "button", children: /* @__PURE__ */ i(
|
|
2423
|
+
triggerComponent: /* @__PURE__ */ i("div", { role: "button", children: /* @__PURE__ */ i(j, { content: m == null ? void 0 : m.moreOptionTooltip, children: /* @__PURE__ */ i(te, { "aria-label": m == null ? void 0 : m.moreOptionTooltip, children: /* @__PURE__ */ i(Lr, {}) }) }) }),
|
|
2416
2424
|
children: /* @__PURE__ */ D("div", { className: oi["rp-other-tool-content"], "data-rp": "moreOptionsDropdown", children: [
|
|
2417
|
-
e && /* @__PURE__ */ D(
|
|
2418
|
-
/* @__PURE__ */ i(
|
|
2419
|
-
/* @__PURE__ */ i(
|
|
2420
|
-
/* @__PURE__ */ i(
|
|
2421
|
-
/* @__PURE__ */ i(
|
|
2422
|
-
/* @__PURE__ */ i(
|
|
2425
|
+
e && /* @__PURE__ */ D(je, { children: [
|
|
2426
|
+
/* @__PURE__ */ i(sn, {}),
|
|
2427
|
+
/* @__PURE__ */ i($n, {}),
|
|
2428
|
+
/* @__PURE__ */ i(Un, {}),
|
|
2429
|
+
/* @__PURE__ */ i(un, {}),
|
|
2430
|
+
/* @__PURE__ */ i(St, {})
|
|
2423
2431
|
] }),
|
|
2424
2432
|
/* @__PURE__ */ i(fi, {}),
|
|
2433
|
+
/* @__PURE__ */ i(Ur, {}),
|
|
2434
|
+
/* @__PURE__ */ i(Br, {}),
|
|
2425
2435
|
/* @__PURE__ */ i(qr, {}),
|
|
2426
|
-
/* @__PURE__ */ i(
|
|
2427
|
-
/* @__PURE__ */ i(Zr, {}),
|
|
2428
|
-
/* @__PURE__ */ i(Ur, {})
|
|
2436
|
+
/* @__PURE__ */ i(Vr, {})
|
|
2429
2437
|
] })
|
|
2430
2438
|
}
|
|
2431
2439
|
),
|
|
@@ -2434,12 +2442,12 @@ const Pe = {
|
|
|
2434
2442
|
}, vi = () => {
|
|
2435
2443
|
const { isSmallScreen: t } = ye();
|
|
2436
2444
|
return /* @__PURE__ */ D(ke, { children: [
|
|
2437
|
-
/* @__PURE__ */ i(
|
|
2445
|
+
/* @__PURE__ */ i(Rr, {}),
|
|
2438
2446
|
!t && /* @__PURE__ */ D(ke, { children: [
|
|
2439
|
-
/* @__PURE__ */ i(
|
|
2440
|
-
/* @__PURE__ */ i(
|
|
2441
|
-
/* @__PURE__ */ i(
|
|
2442
|
-
/* @__PURE__ */ i(
|
|
2447
|
+
/* @__PURE__ */ i(sn, {}),
|
|
2448
|
+
/* @__PURE__ */ i($n, {}),
|
|
2449
|
+
/* @__PURE__ */ i(Un, {}),
|
|
2450
|
+
/* @__PURE__ */ i(un, {})
|
|
2443
2451
|
] }),
|
|
2444
2452
|
/* @__PURE__ */ i(gi, {})
|
|
2445
2453
|
] });
|
|
@@ -2451,10 +2459,10 @@ const Pe = {
|
|
|
2451
2459
|
"rp-zoom-dropdown-content": "_rp-zoom-dropdown-content_cocqs_20"
|
|
2452
2460
|
}, _i = 25, dt = 1e3, wi = [50, 75, 100, 125, 150, 200, 300, 400], bi = () => {
|
|
2453
2461
|
const { zoomInIcon: t } = ue();
|
|
2454
|
-
return t || /* @__PURE__ */ i(
|
|
2462
|
+
return t || /* @__PURE__ */ i(Kr, {});
|
|
2455
2463
|
}, Ci = () => {
|
|
2456
2464
|
const { zoomOutIcon: t } = ue();
|
|
2457
|
-
return t || /* @__PURE__ */ i(
|
|
2465
|
+
return t || /* @__PURE__ */ i(Xr, {});
|
|
2458
2466
|
}, Ti = () => {
|
|
2459
2467
|
const { zoomLevel: t, setZoomLevel: e } = Ye(), { container: n, contentRef: o } = Ie(), { zoomTool: r = !0 } = ge(), { focusedPage: a } = se(), { rotate: s } = Je(), { pages: c } = Y(), { isSmallScreen: l } = ye(), { localeMessages: u } = le(), h = L(() => {
|
|
2460
2468
|
e((_) => {
|
|
@@ -2471,7 +2479,7 @@ const Pe = {
|
|
|
2471
2479
|
return (_ = c.get(a)) == null ? void 0 : _.page.getViewport({ scale: 1, rotation: s });
|
|
2472
2480
|
}, [c, a, s]), b = L(
|
|
2473
2481
|
(_) => {
|
|
2474
|
-
const f = ((g == null ? void 0 : g.width) || 0) + 2 *
|
|
2482
|
+
const f = ((g == null ? void 0 : g.width) || 0) + 2 * Ot, P = ((g == null ? void 0 : g.height) || 0) + 2 * Ot, R = (o == null ? void 0 : o.clientWidth) || 0, p = (o == null ? void 0 : o.clientHeight) || 0, T = Jr(_, R, p, f, P);
|
|
2475
2483
|
e(T);
|
|
2476
2484
|
},
|
|
2477
2485
|
[e, g]
|
|
@@ -2482,7 +2490,7 @@ const Pe = {
|
|
|
2482
2490
|
[e, b]
|
|
2483
2491
|
);
|
|
2484
2492
|
return typeof r != "boolean" ? /* @__PURE__ */ i(r, { zoomLevel: t, setZoomLevel: e }) : r ? /* @__PURE__ */ D("div", { className: Le["rp-zoom-wrapper"], children: [
|
|
2485
|
-
/* @__PURE__ */ i(
|
|
2493
|
+
/* @__PURE__ */ i(j, { content: u == null ? void 0 : u.zoomOutTooltip, children: /* @__PURE__ */ i(
|
|
2486
2494
|
te,
|
|
2487
2495
|
{
|
|
2488
2496
|
disabled: d,
|
|
@@ -2492,10 +2500,10 @@ const Pe = {
|
|
|
2492
2500
|
}
|
|
2493
2501
|
) }),
|
|
2494
2502
|
!l && /* @__PURE__ */ i(
|
|
2495
|
-
|
|
2503
|
+
cn,
|
|
2496
2504
|
{
|
|
2497
2505
|
container: n,
|
|
2498
|
-
triggerComponent: /* @__PURE__ */ i("div", { role: "button", children: /* @__PURE__ */ i(
|
|
2506
|
+
triggerComponent: /* @__PURE__ */ i("div", { role: "button", children: /* @__PURE__ */ i(j, { content: u == null ? void 0 : u.zoomSelectTooltip, children: /* @__PURE__ */ D(
|
|
2499
2507
|
te,
|
|
2500
2508
|
{
|
|
2501
2509
|
className: Le["rp-current-zoom-wrapper"],
|
|
@@ -2510,20 +2518,20 @@ const Pe = {
|
|
|
2510
2518
|
style: { minWidth: "200px" },
|
|
2511
2519
|
align: "center",
|
|
2512
2520
|
children: /* @__PURE__ */ D("div", { className: Le["rp-zoom-dropdown-content"], children: [
|
|
2513
|
-
/* @__PURE__ */ D(
|
|
2521
|
+
/* @__PURE__ */ D(je, { children: [
|
|
2514
2522
|
/* @__PURE__ */ i(we, { onClick: () => v(nt.ACTUAL), children: u == null ? void 0 : u.zoomActualSize }),
|
|
2515
2523
|
/* @__PURE__ */ i(we, { onClick: () => v(nt.PAGE_FIT), children: u == null ? void 0 : u.zoomPageFit }),
|
|
2516
2524
|
/* @__PURE__ */ i(we, { onClick: () => v(nt.PAGE_WIDTH), children: u == null ? void 0 : u.zoomPageWidth })
|
|
2517
2525
|
] }),
|
|
2518
|
-
/* @__PURE__ */ i(
|
|
2519
|
-
/* @__PURE__ */ i(
|
|
2526
|
+
/* @__PURE__ */ i(St, {}),
|
|
2527
|
+
/* @__PURE__ */ i(je, { children: wi.map((_) => /* @__PURE__ */ D(we, { onClick: () => v(_), children: [
|
|
2520
2528
|
_,
|
|
2521
2529
|
" %"
|
|
2522
2530
|
] }, _)) })
|
|
2523
2531
|
] })
|
|
2524
2532
|
}
|
|
2525
2533
|
),
|
|
2526
|
-
/* @__PURE__ */ i(
|
|
2534
|
+
/* @__PURE__ */ i(j, { content: u == null ? void 0 : u.zoomInTooltip, children: /* @__PURE__ */ i(
|
|
2527
2535
|
te,
|
|
2528
2536
|
{
|
|
2529
2537
|
disabled: w,
|
|
@@ -2543,9 +2551,9 @@ const Pe = {
|
|
|
2543
2551
|
"rp-search-tool-input-clear": "_rp-search-tool-input-clear_jvchu_43",
|
|
2544
2552
|
"rp-search-input": "_rp-search-input_jvchu_57",
|
|
2545
2553
|
"rp-search-icon-info": "_rp-search-icon-info_jvchu_62"
|
|
2546
|
-
},
|
|
2554
|
+
}, Yt = () => {
|
|
2547
2555
|
const { searchIcon: t } = ue();
|
|
2548
|
-
return t || /* @__PURE__ */ i(
|
|
2556
|
+
return t || /* @__PURE__ */ i(Yr, {});
|
|
2549
2557
|
}, Pi = () => {
|
|
2550
2558
|
const { container: t } = Ie(), [e, n] = H(!1), { pdf: o } = Y(), [r, a] = H(null), {
|
|
2551
2559
|
searchOptions: s,
|
|
@@ -2557,7 +2565,7 @@ const Pe = {
|
|
|
2557
2565
|
nextMatch: d,
|
|
2558
2566
|
prevMatch: w,
|
|
2559
2567
|
search: g
|
|
2560
|
-
} =
|
|
2568
|
+
} = _n(), { searchTool: b = !0 } = ge(), [v, _] = H(g), { localeMessages: f } = le(), P = L(() => {
|
|
2561
2569
|
n(!0);
|
|
2562
2570
|
}, []), R = L(() => {
|
|
2563
2571
|
u(""), _(""), n(!1);
|
|
@@ -2598,45 +2606,45 @@ const Pe = {
|
|
|
2598
2606
|
return O(() => {
|
|
2599
2607
|
R();
|
|
2600
2608
|
}, [o, R]), b ? /* @__PURE__ */ i(ke, { children: /* @__PURE__ */ i(
|
|
2601
|
-
|
|
2609
|
+
eo,
|
|
2602
2610
|
{
|
|
2603
2611
|
open: e,
|
|
2604
2612
|
container: t,
|
|
2605
|
-
triggerComponent: /* @__PURE__ */ i(
|
|
2613
|
+
triggerComponent: /* @__PURE__ */ i(j, { content: f == null ? void 0 : f.searchButtonTooltip, children: /* @__PURE__ */ i(te, { onClick: P, "aria-label": f == null ? void 0 : f.searchButtonTooltip, children: /* @__PURE__ */ i(Yt, {}) }) }),
|
|
2606
2614
|
children: /* @__PURE__ */ D("div", { className: ne["rp-search-tool-content"], children: [
|
|
2607
2615
|
/* @__PURE__ */ D("div", { className: ne["rp-search-tool-input-wrapper"], children: [
|
|
2608
2616
|
/* @__PURE__ */ D("div", { className: ne["rp-search-tool-input"], children: [
|
|
2609
|
-
/* @__PURE__ */ i(
|
|
2610
|
-
|
|
2617
|
+
/* @__PURE__ */ i(j, { content: f == null ? void 0 : f.searchInputTooltip, children: /* @__PURE__ */ i(
|
|
2618
|
+
tn,
|
|
2611
2619
|
{
|
|
2612
2620
|
value: v,
|
|
2613
2621
|
onKeyDown: C,
|
|
2614
2622
|
onChange: S,
|
|
2615
|
-
icon: /* @__PURE__ */ i(
|
|
2623
|
+
icon: /* @__PURE__ */ i(Yt, {}),
|
|
2616
2624
|
placeholder: f == null ? void 0 : f.searchInputPlaceholder,
|
|
2617
2625
|
className: ne["rp-search-input"],
|
|
2618
2626
|
ref: a,
|
|
2619
|
-
children: !!v && /* @__PURE__ */ i("span", { className: ne["rp-search-tool-input-clear"], onClick: A, children: /* @__PURE__ */ i(
|
|
2627
|
+
children: !!v && /* @__PURE__ */ i("span", { className: ne["rp-search-tool-input-clear"], onClick: A, children: /* @__PURE__ */ i(Qr, {}) })
|
|
2620
2628
|
}
|
|
2621
2629
|
) }),
|
|
2622
2630
|
l ? /* @__PURE__ */ i("span", { children: /* @__PURE__ */ i(Me, {}) }) : /* @__PURE__ */ i("span", { children: I })
|
|
2623
2631
|
] }),
|
|
2624
2632
|
/* @__PURE__ */ D("div", { className: ne["rp-search-tool-input-checkboxes"], children: [
|
|
2625
|
-
/* @__PURE__ */ i(
|
|
2626
|
-
/* @__PURE__ */ i(
|
|
2627
|
-
/* @__PURE__ */ i(
|
|
2628
|
-
/* @__PURE__ */ i(
|
|
2633
|
+
/* @__PURE__ */ i(Dt, { name: "matchCase", value: y, onChange: F, children: f == null ? void 0 : f.searchMatchCaseLabel }),
|
|
2634
|
+
/* @__PURE__ */ i(j, { content: f == null ? void 0 : f.searchMatchCaseTooltip, children: /* @__PURE__ */ i("div", { className: ne["rp-search-icon-info"], tabIndex: 0, children: /* @__PURE__ */ i(zt, {}) }) }),
|
|
2635
|
+
/* @__PURE__ */ i(Dt, { name: "wholeWord", value: E, onChange: z, children: f == null ? void 0 : f.searchWholeWordsLabel }),
|
|
2636
|
+
/* @__PURE__ */ i(j, { content: f == null ? void 0 : f.searchWholeWordsTooltip, children: /* @__PURE__ */ i("div", { className: ne["rp-search-icon-info"], tabIndex: 0, children: /* @__PURE__ */ i(zt, {}) }) })
|
|
2629
2637
|
] })
|
|
2630
2638
|
] }),
|
|
2631
2639
|
/* @__PURE__ */ D("div", { className: ne["rp-search-tool-controls"], children: [
|
|
2632
|
-
/* @__PURE__ */ i(
|
|
2640
|
+
/* @__PURE__ */ i(j, { content: f == null ? void 0 : f.searchPrevTooltip, children: /* @__PURE__ */ i(te, { onClick: w, "aria-label": f == null ? void 0 : f.searchPrevTooltip, children: /* @__PURE__ */ i(
|
|
2633
2641
|
We,
|
|
2634
2642
|
{
|
|
2635
2643
|
className: ne["rp-search-tool-input-icon"],
|
|
2636
2644
|
"aria-disabled": !h
|
|
2637
2645
|
}
|
|
2638
2646
|
) }) }),
|
|
2639
|
-
/* @__PURE__ */ i(
|
|
2647
|
+
/* @__PURE__ */ i(j, { content: f == null ? void 0 : f.searchNextTooltip, children: /* @__PURE__ */ i(te, { onClick: d, "aria-label": f == null ? void 0 : f.searchNextTooltip, children: /* @__PURE__ */ i(
|
|
2640
2648
|
We,
|
|
2641
2649
|
{
|
|
2642
2650
|
style: { transform: "rotate(180deg" },
|
|
@@ -2644,12 +2652,12 @@ const Pe = {
|
|
|
2644
2652
|
"aria-disabled": !h
|
|
2645
2653
|
}
|
|
2646
2654
|
) }) }),
|
|
2647
|
-
/* @__PURE__ */ i(
|
|
2655
|
+
/* @__PURE__ */ i(j, { content: f == null ? void 0 : f.searchCloseButtonTooltip, children: /* @__PURE__ */ i(
|
|
2648
2656
|
te,
|
|
2649
2657
|
{
|
|
2650
2658
|
onKeyDown: p,
|
|
2651
2659
|
"aria-label": f == null ? void 0 : f.searchCloseButtonTooltip,
|
|
2652
|
-
children: /* @__PURE__ */ i(
|
|
2660
|
+
children: /* @__PURE__ */ i(ln, { onClick: R, className: ne["rp-search-tool-input-icon"] })
|
|
2653
2661
|
}
|
|
2654
2662
|
) })
|
|
2655
2663
|
] })
|
|
@@ -2665,7 +2673,7 @@ const Pe = {
|
|
|
2665
2673
|
"rp-loading-cancel-button": "_rp-loading-cancel-button_16o91_52",
|
|
2666
2674
|
loading: Si
|
|
2667
2675
|
}, Ii = ({ percentage: t }) => {
|
|
2668
|
-
const { cancel: e } =
|
|
2676
|
+
const { cancel: e } = It(), { localeMessages: n } = le();
|
|
2669
2677
|
return t < 1 ? null : /* @__PURE__ */ i("div", { className: re(Ne["rp-loading-overlay"]), children: /* @__PURE__ */ D("div", { className: re(Ne["rp-loading-modal"]), children: [
|
|
2670
2678
|
/* @__PURE__ */ D("div", { className: re(Ne["rp-loading-title"]), children: [
|
|
2671
2679
|
n == null ? void 0 : n.printLoadingMessage,
|
|
@@ -2681,7 +2689,7 @@ const Pe = {
|
|
|
2681
2689
|
/* @__PURE__ */ i("button", { className: re(Ne["rp-loading-cancel-button"]), onClick: e, children: n == null ? void 0 : n.printCancelLabel })
|
|
2682
2690
|
] }) });
|
|
2683
2691
|
}, yi = Xe((t, e) => {
|
|
2684
|
-
const { showPrintProgress: n } = ge(), { progress: o } =
|
|
2692
|
+
const { showPrintProgress: n } = ge(), { progress: o } = It(), { isSmallScreen: r } = ye(), { percentage: a } = o || {}, s = () => r ? { gridTemplateColumns: "25% 60% 15%" } : void 0;
|
|
2685
2693
|
return /* @__PURE__ */ D("div", { children: [
|
|
2686
2694
|
/* @__PURE__ */ i("div", { "data-rp": "topBar", ref: e, className: ze["rp-toolbar-content"], children: /* @__PURE__ */ D("div", { className: ze["rp-toolbar-wrapper"], style: s(), children: [
|
|
2687
2695
|
/* @__PURE__ */ D("div", { "data-rp": "topBarLeft", className: ze["rp-toolbar-start"], children: [
|
|
@@ -2741,22 +2749,22 @@ const Pe = {
|
|
|
2741
2749
|
]
|
|
2742
2750
|
}
|
|
2743
2751
|
);
|
|
2744
|
-
},
|
|
2752
|
+
}, Qt = {
|
|
2745
2753
|
"rp-thumbnails-container": "_rp-thumbnails-container_16vqr_1",
|
|
2746
2754
|
"rp-thumbnails": "_rp-thumbnails_16vqr_1"
|
|
2747
2755
|
}, Ri = 16, Li = (t, e) => {
|
|
2748
2756
|
const n = t == null ? void 0 : t.querySelector(`#page-${e}`);
|
|
2749
2757
|
t && (n != null && n.offsetTop) && (t.scrollTop = (n == null ? void 0 : n.offsetTop) - Ri);
|
|
2750
2758
|
}, Ni = Xe((t, e) => {
|
|
2751
|
-
const { show: n } = t, { focusedPage: o, totalPages: r } = se(), { thumbnailPages: a, addPage: s, thumbnailLength: c, addToPage: l } =
|
|
2752
|
-
|
|
2759
|
+
const { show: n } = t, { focusedPage: o, totalPages: r } = se(), { thumbnailPages: a, addPage: s, thumbnailLength: c, addToPage: l } = gn(), u = W(null), h = W(1);
|
|
2760
|
+
en(e, () => u.current);
|
|
2753
2761
|
const m = k(() => Object.values(a), [a]), d = L(() => {
|
|
2754
2762
|
const w = c + 1;
|
|
2755
2763
|
w <= r && s(w);
|
|
2756
2764
|
}, [s, r, c]);
|
|
2757
2765
|
return O(() => {
|
|
2758
2766
|
o > c ? l(o) : n && h.current !== o && (Li(u.current, o), h.current = o);
|
|
2759
|
-
}, [o, c, l, n, m]),
|
|
2767
|
+
}, [o, c, l, n, m]), pr(u.current, d), /* @__PURE__ */ i("div", { ref: u, className: Qt["rp-thumbnails-container"], children: /* @__PURE__ */ i("div", { className: Qt["rp-thumbnails"], children: n ? m.map((w, g) => {
|
|
2760
2768
|
var b, v;
|
|
2761
2769
|
return /* @__PURE__ */ i(
|
|
2762
2770
|
xi,
|
|
@@ -2772,11 +2780,11 @@ const Pe = {
|
|
|
2772
2780
|
}) : null }) });
|
|
2773
2781
|
}), Ei = () => {
|
|
2774
2782
|
const { thumbnailIcon: t } = ue();
|
|
2775
|
-
return t || /* @__PURE__ */ i(
|
|
2783
|
+
return t || /* @__PURE__ */ i(dr, {});
|
|
2776
2784
|
}, Oi = () => {
|
|
2777
|
-
const { active: t, setActive: e } =
|
|
2785
|
+
const { active: t, setActive: e } = gn(), [n, o] = H(200), r = W(null), { thumbnailTool: a } = ge(), { localeMessages: s } = le(), c = L(() => {
|
|
2778
2786
|
e((u) => !u);
|
|
2779
|
-
}, []), l = k(() => typeof a != "boolean" && a ? /* @__PURE__ */ i(a, { onClick: c, active: t }) : a ? /* @__PURE__ */ i(
|
|
2787
|
+
}, []), l = k(() => typeof a != "boolean" && a ? /* @__PURE__ */ i(a, { onClick: c, active: t }) : a ? /* @__PURE__ */ i(j, { content: s == null ? void 0 : s.thumbnailTooltip, children: /* @__PURE__ */ i(
|
|
2780
2788
|
te,
|
|
2781
2789
|
{
|
|
2782
2790
|
onClick: c,
|
|
@@ -2795,24 +2803,24 @@ const Pe = {
|
|
|
2795
2803
|
/* @__PURE__ */ i("div", { className: pt["rp-sidebar-content"], children: l }),
|
|
2796
2804
|
/* @__PURE__ */ D("div", { "data-rp": "thumbnailSidebar", hidden: !t, className: pt["rp-thumbnails-wrapper"], children: [
|
|
2797
2805
|
/* @__PURE__ */ i(Ni, { show: t, ref: r }),
|
|
2798
|
-
/* @__PURE__ */ i(
|
|
2806
|
+
/* @__PURE__ */ i(hr, { onWidthChange: o, thumbnailRef: r })
|
|
2799
2807
|
] })
|
|
2800
2808
|
]
|
|
2801
2809
|
}
|
|
2802
2810
|
);
|
|
2803
|
-
},
|
|
2811
|
+
}, ms = Xe((t, e) => {
|
|
2804
2812
|
const { children: n, slots: o, icons: r, style: a, className: s, mobileWidth: c, onLoaded: l, cleanupOnLoaded: u } = t, [h, m] = H(null), { setContainer: d, setContentRef: w } = Ie(), { loading: g } = Y();
|
|
2805
2813
|
return O(() => (l && l(), () => {
|
|
2806
2814
|
u && u();
|
|
2807
|
-
}), [l, u]), /* @__PURE__ */ i("div", { ref: e, className: re(Ce["rp-theme-variables"], Ce["rp-container"]), children: /* @__PURE__ */ i(
|
|
2808
|
-
|
|
2815
|
+
}), [l, u]), /* @__PURE__ */ i("div", { ref: e, className: re(Ce["rp-theme-variables"], Ce["rp-container"]), children: /* @__PURE__ */ i(wr, { mobileWidth: c, children: /* @__PURE__ */ i(mr, { slots: o, children: /* @__PURE__ */ i(fr, { icons: r, children: /* @__PURE__ */ D(
|
|
2816
|
+
gr,
|
|
2809
2817
|
{
|
|
2810
2818
|
getContainerRef: d,
|
|
2811
2819
|
toolbarRef: h,
|
|
2812
2820
|
style: a,
|
|
2813
2821
|
className: s,
|
|
2814
2822
|
children: [
|
|
2815
|
-
/* @__PURE__ */ D(
|
|
2823
|
+
/* @__PURE__ */ D(vr, { children: [
|
|
2816
2824
|
/* @__PURE__ */ D("div", { className: Ce["rp-layout"], children: [
|
|
2817
2825
|
/* @__PURE__ */ i(yi, { ref: m }),
|
|
2818
2826
|
/* @__PURE__ */ D("div", { className: Ce["rp-content"], children: [
|
|
@@ -2820,7 +2828,7 @@ const Pe = {
|
|
|
2820
2828
|
/* @__PURE__ */ i("div", { ref: w, className: Ce["rp-pages"], children: n })
|
|
2821
2829
|
] })
|
|
2822
2830
|
] }),
|
|
2823
|
-
/* @__PURE__ */ i(
|
|
2831
|
+
/* @__PURE__ */ i(_r, {})
|
|
2824
2832
|
] }),
|
|
2825
2833
|
g ? /* @__PURE__ */ i(
|
|
2826
2834
|
"div",
|
|
@@ -2860,39 +2868,39 @@ export {
|
|
|
2860
2868
|
io as C,
|
|
2861
2869
|
Ao as D,
|
|
2862
2870
|
Ni as E,
|
|
2863
|
-
|
|
2871
|
+
$n as F,
|
|
2864
2872
|
Oi as G,
|
|
2865
2873
|
Ii as L,
|
|
2866
2874
|
fi as M,
|
|
2867
2875
|
gi as O,
|
|
2868
|
-
|
|
2869
|
-
|
|
2870
|
-
|
|
2871
|
-
|
|
2876
|
+
ss as P,
|
|
2877
|
+
ds as R,
|
|
2878
|
+
us as S,
|
|
2879
|
+
ls as T,
|
|
2872
2880
|
Ti as Z,
|
|
2873
|
-
|
|
2874
|
-
|
|
2881
|
+
cs as a,
|
|
2882
|
+
ms as b,
|
|
2875
2883
|
si as c,
|
|
2876
|
-
|
|
2877
|
-
|
|
2878
|
-
|
|
2884
|
+
It as d,
|
|
2885
|
+
_n as e,
|
|
2886
|
+
pn as f,
|
|
2879
2887
|
to as g,
|
|
2880
|
-
|
|
2888
|
+
hn as h,
|
|
2881
2889
|
no as i,
|
|
2882
|
-
|
|
2890
|
+
mn as j,
|
|
2883
2891
|
ro as k,
|
|
2884
|
-
|
|
2885
|
-
|
|
2892
|
+
fn as l,
|
|
2893
|
+
gn as m,
|
|
2886
2894
|
oo as n,
|
|
2887
|
-
|
|
2895
|
+
vn as o,
|
|
2888
2896
|
ao as p,
|
|
2889
|
-
|
|
2897
|
+
yt as q,
|
|
2890
2898
|
Oo as r,
|
|
2891
2899
|
Fo as s,
|
|
2892
2900
|
Ho as t,
|
|
2893
2901
|
se as u,
|
|
2894
2902
|
ri as v,
|
|
2895
|
-
|
|
2903
|
+
Un as w,
|
|
2896
2904
|
vi as x,
|
|
2897
2905
|
Pi as y,
|
|
2898
2906
|
yi as z
|