@pdf-viewer/react 1.0.1-rc.0 → 1.0.1
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-07939e60.js → RPDefaultLayout-adbb0836.js} +246 -246
- package/dist/components/RPConfig.js +318 -340
- package/dist/components/RPController.js +43 -45
- package/dist/components/RPPages.js +2 -3
- package/dist/components/RPProvider.js +1 -1
- package/dist/components/layout/RPDefaultLayout.js +3 -2
- 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 +2 -3
- 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 +3 -4
- 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 -3
- 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 +3 -3
- package/dist/components/page/AnnotationLayer.js +2 -3
- package/dist/components/page/CanvasLayer.js +2 -3
- package/dist/components/page/DualPage.js +1 -1
- package/dist/components/page/RPPage.js +2 -3
- package/dist/components/page/SinglePage.js +1 -1
- package/dist/components/page/TextLayer.js +2 -3
- package/dist/components/ui/Checkbox.js +252 -92
- package/dist/components/ui/DropDown.js +1 -1
- package/dist/components/ui/LoadingIndicator.js +1 -1
- package/dist/components/ui/RPTooltip.js +961 -224
- package/dist/contexts/PaginationContext.js +1 -1
- package/dist/contexts/PrintContext.js +1 -1
- package/dist/contexts/SearchContext.js +1 -1
- package/dist/contexts/ThumbnailsContext.js +1 -1
- package/dist/contexts/ViewportContext.js +41 -41
- package/dist/floating-ui.react-dom-e6d5fe8f.js +1327 -0
- package/dist/index-316854c1.js +2299 -0
- package/dist/index-71898eb9.js +139 -0
- package/dist/main.js +1 -1
- package/dist/types/contexts/ViewportContext.d.ts +0 -1
- package/dist/types/utils/types.d.ts +2 -2
- package/dist/utils/hooks/useFileDownload.js +2 -3
- package/dist/utils/hooks/useLicense.js +1 -1
- package/dist/utils/hooks/usePaginate.js +2 -3
- package/dist/utils/hooks/usePrint.js +2 -3
- package/dist/utils/hooks/useScrollToPage.js +2 -3
- package/dist/utils/hooks/useSearch.js +2 -3
- package/dist/utils/hooks/useThumbnail.js +2 -3
- package/dist/utils/hooks/useVirtualReactWindow.js +2 -3
- package/package.json +1 -1
- package/dist/index-1db49c1a.js +0 -1664
- package/dist/index-3dff3fa8.js +0 -307
- package/dist/index-4f17fe4d.js +0 -1657
|
@@ -15,7 +15,6 @@ import { useViewModeContext as Ue } from "./contexts/ViewModeContext.js";
|
|
|
15
15
|
import { useVirtualScrollContext as qe } from "./contexts/VirtualScrollContext.js";
|
|
16
16
|
import { useVirtualGridContext as Bt } from "./contexts/VirtualGridContext.js";
|
|
17
17
|
import { useScrollStateContext as Kt } from "./contexts/ScrollStateContext.js";
|
|
18
|
-
import { useViewportContext as _e } from "./contexts/ViewportContext.js";
|
|
19
18
|
import { useSelectionModeContext as Vn } from "./contexts/SelectionModeContext.js";
|
|
20
19
|
import { useInitialStateContext as Un } from "./contexts/InitialStateContext.js";
|
|
21
20
|
import { useFullScreenContext as qn } from "./contexts/FullScreenContext.js";
|
|
@@ -39,44 +38,45 @@ import ee from "./components/ui/RPTooltip.js";
|
|
|
39
38
|
import { c as we, C as rr } from "./Container-fdb0a71f.js";
|
|
40
39
|
import { WrapperLayout as or } from "./components/layout/WrapperLayout.js";
|
|
41
40
|
import { RPDropFileZone as ar } from "./components/RPDropFileZone.js";
|
|
41
|
+
import { useViewportContext as _e, ViewportProvider as sr } from "./contexts/ViewportContext.js";
|
|
42
42
|
import "./contexts/ThemeContext.js";
|
|
43
|
-
import { SimpleLinkService as
|
|
43
|
+
import { SimpleLinkService as ir } from "./utils/link_service.js";
|
|
44
44
|
import { dateFormatter as it } from "./utils/dateFormatter.js";
|
|
45
|
-
import { sanitizeExternalUrl as
|
|
46
|
-
import { useWatermark as
|
|
47
|
-
import { useMousePressed as
|
|
48
|
-
import { useGrabScroll as
|
|
49
|
-
import { usePinch as
|
|
45
|
+
import { sanitizeExternalUrl as cr } from "./utils/sanitizeExternalUrl.js";
|
|
46
|
+
import { useWatermark as lr } from "./utils/hooks/useWatermark.js";
|
|
47
|
+
import { useMousePressed as ur } from "./utils/hooks/useMousePressed.js";
|
|
48
|
+
import { useGrabScroll as dr } from "./utils/hooks/useGrabScroll.js";
|
|
49
|
+
import { usePinch as pr } from "./utils/hooks/usePinch.js";
|
|
50
50
|
import { getThumbnailViewport as yt } from "./utils/getThumbnailViewport.js";
|
|
51
|
-
import { useDebounce as
|
|
52
|
-
import { appConsole as
|
|
51
|
+
import { useDebounce as hr } from "./utils/hooks/useDebounce.js";
|
|
52
|
+
import { appConsole as mr } from "./utils/appConsole.js";
|
|
53
53
|
import { FileUploadTool as Yt } from "./components/layout/toolbar/FileUploadTool.js";
|
|
54
|
-
import { DarkModeTool as
|
|
55
|
-
import { ThreeDotIcon as
|
|
54
|
+
import { DarkModeTool as fr } from "./components/layout/toolbar/DarkModeTool.js";
|
|
55
|
+
import { ThreeDotIcon as gr } from "./components/icons/ThreeDotIcon.js";
|
|
56
56
|
import { UIDropDown as ft } from "./components/ui/DropDown.js";
|
|
57
|
-
import {
|
|
58
|
-
import {
|
|
59
|
-
import {
|
|
57
|
+
import { u as gt, a as Ne, c as xe, b as vt, d as vr, e as _r, h as wr, f as br, F as Cr, D as Pr, g as Tr, G as Fe } from "./index-316854c1.js";
|
|
58
|
+
import { c as Sr, e as yr, b as Ir } from "./index-71898eb9.js";
|
|
59
|
+
import { e as Ke } from "./floating-ui.react-dom-e6d5fe8f.js";
|
|
60
60
|
import { CloseIcon as Qt } from "./components/icons/CloseIcon.js";
|
|
61
|
-
import { PropertyItem as
|
|
62
|
-
import { useOtherToolContext as
|
|
63
|
-
import { DocumentProperties as
|
|
64
|
-
import { RotateTool as
|
|
65
|
-
import { ScrollModeTool as
|
|
61
|
+
import { PropertyItem as xr } from "./components/layout/toolbar/PropertyItem.js";
|
|
62
|
+
import { useOtherToolContext as Rr, OtherToolProvider as Lr } from "./contexts/OtherToolContext.js";
|
|
63
|
+
import { DocumentProperties as Nr } from "./components/layout/toolbar/DocumentProperties.js";
|
|
64
|
+
import { RotateTool as Mr } from "./components/layout/toolbar/RotateTool.js";
|
|
65
|
+
import { ScrollModeTool as Er } from "./components/layout/toolbar/ScrollModeTool.js";
|
|
66
66
|
import { MenuSeparator as _t } from "./components/layout/toolbar/MenuSeparator.js";
|
|
67
|
-
import { FileDownloadDefaultIcon as
|
|
67
|
+
import { FileDownloadDefaultIcon as Or } from "./components/icons/FileDownloadDefaultIcon.js";
|
|
68
68
|
import { MenuItem as he } from "./components/layout/toolbar/MenuItem.js";
|
|
69
|
-
import { PrintDefaultTool as
|
|
69
|
+
import { PrintDefaultTool as Dr } from "./components/icons/PrintDefaultIcon.js";
|
|
70
70
|
import { FullScreenTool as en } from "./components/layout/toolbar/FullScreenTool.js";
|
|
71
71
|
import { GoToDownIcon as tn } from "./components/icons/GoToDownIcon.js";
|
|
72
|
-
import { SelectionModeTool as
|
|
73
|
-
import { ZoomInIcon as
|
|
74
|
-
import { ZoomOutIcon as
|
|
72
|
+
import { SelectionModeTool as Ar } from "./components/layout/toolbar/SelectionModeTool.js";
|
|
73
|
+
import { ZoomInIcon as zr } from "./components/icons/ZoomInIcon.js";
|
|
74
|
+
import { ZoomOutIcon as Fr } from "./components/icons/ZoomOutIcon.js";
|
|
75
75
|
import { PAGE_PADDING as It } from "./utils/constants.js";
|
|
76
|
-
import { getZoomLevel as
|
|
77
|
-
import { SearchIcon as
|
|
76
|
+
import { getZoomLevel as kr } from "./utils/getZoomLevel.js";
|
|
77
|
+
import { SearchIcon as Wr } from "./components/icons/SearchIcon.js";
|
|
78
78
|
import { UICheckbox as xt } from "./components/ui/Checkbox.js";
|
|
79
|
-
import { ClearIcon as
|
|
79
|
+
import { ClearIcon as Hr } from "./components/icons/ClearIcon.js";
|
|
80
80
|
import './assets/RPDefaultLayout.css';const nn = () => {
|
|
81
81
|
const { viewMode: e } = Ue(), { scrollMode: t } = Pe(), { virtualScrollRef: n, pageScrollElementRef: r } = qe(), { setFocusedPage: o } = oe(), a = $(), { columnCount: c } = Bt(), i = ht(), l = $(t), p = $(e);
|
|
82
82
|
F(() => {
|
|
@@ -109,8 +109,8 @@ import './assets/RPDefaultLayout.css';const nn = () => {
|
|
|
109
109
|
},
|
|
110
110
|
[c, h, o]
|
|
111
111
|
) };
|
|
112
|
-
},
|
|
113
|
-
const [t, n] = W(e), [r, o] = W(0), { scrollToPage: a } = nn(), c = $(1), { isScrolling: i } = Kt(), { viewMode: l } = Ue(), { scrollMode: p } = Pe(), h =
|
|
112
|
+
}, $r = (e = 1) => {
|
|
113
|
+
const [t, n] = W(e), [r, o] = W(0), { scrollToPage: a } = nn(), c = $(1), { isScrolling: i } = Kt(), { viewMode: l } = Ue(), { scrollMode: p } = Pe(), h = hr(t, 100), f = R(
|
|
114
114
|
(v) => {
|
|
115
115
|
if (!/^[0-9]*$/g.test(v.toString()) || !v)
|
|
116
116
|
return { success: !1, currentPage: c.current };
|
|
@@ -154,9 +154,9 @@ import './assets/RPDefaultLayout.css';const nn = () => {
|
|
|
154
154
|
}
|
|
155
155
|
}), oe = () => {
|
|
156
156
|
const e = He(rn);
|
|
157
|
-
return typeof (e == null ? void 0 : e.focusedPage) > "u" &&
|
|
158
|
-
},
|
|
159
|
-
const { initialPage: t = 1 } = Un(), { pdf: n } = ne(), { focusedPage: r, totalPages: o, setFocusedPage: a, setTotalPages: c, goToPage: i, nextPage: l, prevPage: p } =
|
|
157
|
+
return typeof (e == null ? void 0 : e.focusedPage) > "u" && mr.error("Please use this hooks inside children component of RPController or RPLayout"), e;
|
|
158
|
+
}, Gs = ({ children: e }) => {
|
|
159
|
+
const { initialPage: t = 1 } = Un(), { pdf: n } = ne(), { focusedPage: r, totalPages: o, setFocusedPage: a, setTotalPages: c, goToPage: i, nextPage: l, prevPage: p } = $r(t);
|
|
160
160
|
return F(() => {
|
|
161
161
|
n != null && n.numPages && c(n.numPages);
|
|
162
162
|
}, [n, c, o, t]), F(() => {
|
|
@@ -179,7 +179,7 @@ import './assets/RPDefaultLayout.css';const nn = () => {
|
|
|
179
179
|
}
|
|
180
180
|
);
|
|
181
181
|
};
|
|
182
|
-
const
|
|
182
|
+
const Gr = () => {
|
|
183
183
|
const { pdf: e, pages: t } = ne(), [n, r] = W({
|
|
184
184
|
loadedPages: 0,
|
|
185
185
|
totalPages: 0,
|
|
@@ -356,8 +356,8 @@ const $r = () => {
|
|
|
356
356
|
console.error("Error in setOnError callback:", t);
|
|
357
357
|
}
|
|
358
358
|
}
|
|
359
|
-
}),
|
|
360
|
-
const [t, n] = W(null), [r, o] = W(null), { print: a, cancel: c, progress: i, isComplete: l, isError: p, error: h } =
|
|
359
|
+
}), Vs = ({ children: e }) => {
|
|
360
|
+
const [t, n] = W(null), [r, o] = W(null), { print: a, cancel: c, progress: i, isComplete: l, isError: p, error: h } = Gr(), f = R((v) => {
|
|
361
361
|
v && typeof v == "function" && o(() => v);
|
|
362
362
|
}, []), u = (v) => {
|
|
363
363
|
h && v(h);
|
|
@@ -392,7 +392,7 @@ const $r = () => {
|
|
|
392
392
|
if (!e)
|
|
393
393
|
throw new Error("usePrintContext must be used within a PrintProvider");
|
|
394
394
|
return e;
|
|
395
|
-
},
|
|
395
|
+
}, Vr = () => {
|
|
396
396
|
const [e, t] = W({}), { pages: n } = ne(), { rotate: r } = Ge(), o = A(() => Object.keys(e).length, [e]), a = R(
|
|
397
397
|
(i) => {
|
|
398
398
|
if (!n.size)
|
|
@@ -480,11 +480,11 @@ const $r = () => {
|
|
|
480
480
|
setActive: (e) => {
|
|
481
481
|
},
|
|
482
482
|
active: !1
|
|
483
|
-
}), sn = () => He(an),
|
|
483
|
+
}), sn = () => He(an), Us = ({
|
|
484
484
|
children: e,
|
|
485
485
|
initialThumbnailsVisible: t
|
|
486
486
|
}) => {
|
|
487
|
-
const { thumbnailPages: n, addPage: r, addToPage: o, thumbnailLength: a } =
|
|
487
|
+
const { thumbnailPages: n, addPage: r, addToPage: o, thumbnailLength: a } = Vr(), [c, i] = W(t);
|
|
488
488
|
return /* @__PURE__ */ s(
|
|
489
489
|
an.Provider,
|
|
490
490
|
{
|
|
@@ -492,7 +492,7 @@ const $r = () => {
|
|
|
492
492
|
children: e
|
|
493
493
|
}
|
|
494
494
|
);
|
|
495
|
-
},
|
|
495
|
+
}, Ur = (e = {}, t = "") => {
|
|
496
496
|
const [n, r] = W(t), [o, a] = W(!1), { pdf: c, pages: i } = ne(), l = ht(), p = $(!n), { currentZoom: h } = Ve(), [f, u] = W([]), { setFocusedPage: m } = oe(), [g, _] = W(0), { pageScrollElementRef: v, virtualScrollableElementRef: C } = qe(), { scrollMode: y } = Pe(), [P, L] = W(null), d = $({}), b = A(() => g === 0 ? null : f[g - 1], [g, f]), w = A(() => f.length, [f]);
|
|
497
497
|
F(() => {
|
|
498
498
|
if (!b || !i)
|
|
@@ -598,7 +598,7 @@ const $r = () => {
|
|
|
598
598
|
currentMatchElement: null,
|
|
599
599
|
setCurrentMatchElement: (e) => {
|
|
600
600
|
}
|
|
601
|
-
}),
|
|
601
|
+
}), qs = ({
|
|
602
602
|
children: e,
|
|
603
603
|
initialSearch: t
|
|
604
604
|
}) => {
|
|
@@ -614,7 +614,7 @@ const $r = () => {
|
|
|
614
614
|
prevMatch: u,
|
|
615
615
|
currentMatchElement: m,
|
|
616
616
|
setCurrentMatchElement: g
|
|
617
|
-
} =
|
|
617
|
+
} = Ur(n, t);
|
|
618
618
|
return /* @__PURE__ */ s(
|
|
619
619
|
cn.Provider,
|
|
620
620
|
{
|
|
@@ -648,7 +648,7 @@ const $r = () => {
|
|
|
648
648
|
"rp-page-wrapper": "_rp-page-wrapper_h7a2q_1",
|
|
649
649
|
"rp-page": "_rp-page_h7a2q_1",
|
|
650
650
|
"rp-loader-wrapper": "_rp-loader-wrapper_h7a2q_14"
|
|
651
|
-
},
|
|
651
|
+
}, qr = (e) => {
|
|
652
652
|
const { pageNumber: t, onLoaded: n, onLoading: r } = e, o = $(null), { pages: a } = ne(), { rotate: c } = Ge(), i = $(), { currentZoom: l } = Ve();
|
|
653
653
|
return F(() => {
|
|
654
654
|
if (!a || l === 0)
|
|
@@ -669,7 +669,7 @@ const $r = () => {
|
|
|
669
669
|
}, Je = {
|
|
670
670
|
"rp-text-layer": "_rp-text-layer_1mgyz_1",
|
|
671
671
|
"rp-text-layer-text": "_rp-text-layer-text_1mgyz_9"
|
|
672
|
-
},
|
|
672
|
+
}, Zr = (e) => {
|
|
673
673
|
const { pageNumber: t } = e, { pages: n } = ne(), r = $(null), { matches: o, currentMatch: a, setCurrentMatchElement: c } = ln(), [i, l] = W(
|
|
674
674
|
[]
|
|
675
675
|
), p = $(), h = $(), f = $(), u = A(() => o.filter((g) => g.pageIndex === t - 1), [o, t]), m = R(
|
|
@@ -731,16 +731,16 @@ const $r = () => {
|
|
|
731
731
|
ref: r
|
|
732
732
|
}
|
|
733
733
|
);
|
|
734
|
-
},
|
|
734
|
+
}, jr = {
|
|
735
735
|
"rp-annotation-layer": "_rp-annotation-layer_o0ksd_1"
|
|
736
736
|
}, un = ["click", "dblclick", "mouseover", "input", "change"];
|
|
737
|
-
let
|
|
737
|
+
let Br = "https://unpkg.com/pdfjs-dist@4.4.168/web/images/";
|
|
738
738
|
const ct = /* @__PURE__ */ new Map(), dn = (e, t) => `${e.loadingTask.docId}___${t.num}R${t.gen === 0 ? "" : t.gen}`;
|
|
739
|
-
function
|
|
739
|
+
function Kr(e, t) {
|
|
740
740
|
const n = dn(e, t);
|
|
741
741
|
return ct.has(n) ? ct.get(n) ?? null : null;
|
|
742
742
|
}
|
|
743
|
-
const
|
|
743
|
+
const Xr = (e, t, n) => {
|
|
744
744
|
ct.set(dn(e, t), n);
|
|
745
745
|
}, Rt = (e, t) => {
|
|
746
746
|
switch (t[1].name) {
|
|
@@ -779,26 +779,26 @@ const Kr = (e, t, n) => {
|
|
|
779
779
|
async function pn(e, t) {
|
|
780
780
|
let n;
|
|
781
781
|
if (typeof t == "string" ? n = await e.getDestination(t) : n = t, n && typeof n[0] == "object" && n[0] !== null) {
|
|
782
|
-
const r = n[0], o =
|
|
782
|
+
const r = n[0], o = Kr(e, r);
|
|
783
783
|
if (o === null) {
|
|
784
784
|
const a = await e.getPageIndex(r);
|
|
785
|
-
return
|
|
785
|
+
return Xr(e, r, a), await pn(e, n);
|
|
786
786
|
} else
|
|
787
787
|
return Rt(o, n);
|
|
788
788
|
} else
|
|
789
789
|
return Rt(n[0], n);
|
|
790
790
|
}
|
|
791
|
-
function
|
|
791
|
+
function Jr(e) {
|
|
792
792
|
const { id: t, url: n, unsafeUrl: r } = e;
|
|
793
793
|
new MutationObserver((a, c) => {
|
|
794
794
|
const i = document.querySelector(`[data-annotation-id="${t}"]`);
|
|
795
795
|
if (i) {
|
|
796
|
-
const l = i.querySelector("a"), p =
|
|
796
|
+
const l = i.querySelector("a"), p = cr((n || r) ?? "", "");
|
|
797
797
|
l && (l.setAttribute("target", "_blank"), l.setAttribute("href", p), l.setAttribute("rel", "noopener noreferrer")), c.disconnect();
|
|
798
798
|
}
|
|
799
799
|
}).observe(document.body, { childList: !0, subtree: !0 });
|
|
800
800
|
}
|
|
801
|
-
const
|
|
801
|
+
const Yr = (e) => {
|
|
802
802
|
const n = e.target.parentNode;
|
|
803
803
|
if (!n)
|
|
804
804
|
return;
|
|
@@ -836,7 +836,7 @@ const Jr = (e) => {
|
|
|
836
836
|
r(l);
|
|
837
837
|
});
|
|
838
838
|
};
|
|
839
|
-
function
|
|
839
|
+
function Qr(e, t) {
|
|
840
840
|
for (const n of un)
|
|
841
841
|
e.addEventListener(n, t);
|
|
842
842
|
}
|
|
@@ -844,7 +844,7 @@ function Nt(e, t) {
|
|
|
844
844
|
for (const n of un)
|
|
845
845
|
e.removeEventListener(n, t);
|
|
846
846
|
}
|
|
847
|
-
const
|
|
847
|
+
const eo = (e) => {
|
|
848
848
|
const { pageNumber: t } = e, n = $(null), { pages: r, pdf: o } = ne(), a = $(), [c, i] = W(), { setFocusedPage: l, goToPage: p } = oe(), { scrollMode: h } = Pe(), f = A(() => r.get(t), [r, t]), u = A(() => f == null ? void 0 : f.page.getViewport(), [f]);
|
|
849
849
|
F(() => {
|
|
850
850
|
a.current && (a.current.div.replaceChildren(), a.current = void 0);
|
|
@@ -857,7 +857,7 @@ const Qr = (e) => {
|
|
|
857
857
|
}, [f]);
|
|
858
858
|
const g = R(
|
|
859
859
|
(_) => {
|
|
860
|
-
|
|
860
|
+
Yr(_), !(!c || !o) && (h === J.PAGE_SCROLLING ? Lt(_, c, o, (v) => l(v.pageIndex + 1)) : Lt(_, c, o, (v) => p(v.pageIndex + 1)));
|
|
861
861
|
},
|
|
862
862
|
[o, c, p, l, h]
|
|
863
863
|
);
|
|
@@ -875,7 +875,7 @@ const Qr = (e) => {
|
|
|
875
875
|
const { annotationType: y } = C;
|
|
876
876
|
switch (y) {
|
|
877
877
|
case at.Link:
|
|
878
|
-
|
|
878
|
+
Jr(C);
|
|
879
879
|
break;
|
|
880
880
|
case at.Widget:
|
|
881
881
|
break;
|
|
@@ -900,14 +900,14 @@ const Qr = (e) => {
|
|
|
900
900
|
div: n.current,
|
|
901
901
|
viewport: _.clone({ dontFlip: !0 }),
|
|
902
902
|
page: f.page,
|
|
903
|
-
imageResourcesPath:
|
|
903
|
+
imageResourcesPath: Br,
|
|
904
904
|
renderForms: !1,
|
|
905
|
-
linkService: new
|
|
905
|
+
linkService: new ir(),
|
|
906
906
|
downloadManager: null,
|
|
907
907
|
enableScripting: !1
|
|
908
908
|
});
|
|
909
909
|
})().then(() => {
|
|
910
|
-
n.current &&
|
|
910
|
+
n.current && Qr(n.current, g);
|
|
911
911
|
}), () => {
|
|
912
912
|
n.current && Nt(n.current, g);
|
|
913
913
|
};
|
|
@@ -916,11 +916,11 @@ const Qr = (e) => {
|
|
|
916
916
|
{
|
|
917
917
|
"data-rp": `page-${t}-annotationLayer`,
|
|
918
918
|
style: { width: `${u == null ? void 0 : u.width}px`, height: `${u == null ? void 0 : u.height}px` },
|
|
919
|
-
className:
|
|
919
|
+
className: jr["rp-annotation-layer"],
|
|
920
920
|
ref: n
|
|
921
921
|
}
|
|
922
922
|
);
|
|
923
|
-
},
|
|
923
|
+
}, to = Array.from({ length: 21 }, (e, t) => Number((t * 0.05).toFixed(2))), bt = $e((e, t) => {
|
|
924
924
|
const { pageNumber: n, style: r, onIntersectRatioChange: o, ...a } = e, { pages: c } = ne(), { rotate: i } = Ge(), { textLayer: l } = Gn(), { currentZoom: p } = Ve(), h = $(c.get(n)), [f, u] = W(!1), m = $(null), [g, _] = W({
|
|
925
925
|
width: 0,
|
|
926
926
|
height: 0
|
|
@@ -951,7 +951,7 @@ const Qr = (e) => {
|
|
|
951
951
|
(L) => {
|
|
952
952
|
o && o(n, L[0].intersectionRatio);
|
|
953
953
|
},
|
|
954
|
-
{ threshold:
|
|
954
|
+
{ threshold: to }
|
|
955
955
|
);
|
|
956
956
|
return m.current && P.observe(m.current), () => {
|
|
957
957
|
P.disconnect(), o && o(n, -1);
|
|
@@ -979,10 +979,10 @@ const Qr = (e) => {
|
|
|
979
979
|
},
|
|
980
980
|
className: Xe["rp-page"],
|
|
981
981
|
children: [
|
|
982
|
-
/* @__PURE__ */ s(
|
|
982
|
+
/* @__PURE__ */ s(qr, { onLoading: C, onLoaded: y, pageNumber: n }),
|
|
983
983
|
f && /* @__PURE__ */ s("div", { className: Xe["rp-loader-wrapper"], children: /* @__PURE__ */ s(mt, {}) }),
|
|
984
|
-
l && /* @__PURE__ */ s(
|
|
985
|
-
/* @__PURE__ */ s(
|
|
984
|
+
l && /* @__PURE__ */ s(Zr, { pageNumber: n }),
|
|
985
|
+
/* @__PURE__ */ s(eo, { pageNumber: n })
|
|
986
986
|
]
|
|
987
987
|
}
|
|
988
988
|
)
|
|
@@ -1009,25 +1009,25 @@ function ut(e, t) {
|
|
|
1009
1009
|
return n.__proto__ = r, n;
|
|
1010
1010
|
}, ut(e, t);
|
|
1011
1011
|
}
|
|
1012
|
-
function
|
|
1012
|
+
function no(e, t) {
|
|
1013
1013
|
e.prototype = Object.create(t.prototype), e.prototype.constructor = e, ut(e, t);
|
|
1014
1014
|
}
|
|
1015
1015
|
var Et = Number.isNaN || function(t) {
|
|
1016
1016
|
return typeof t == "number" && t !== t;
|
|
1017
1017
|
};
|
|
1018
|
-
function
|
|
1018
|
+
function ro(e, t) {
|
|
1019
1019
|
return !!(e === t || Et(e) && Et(t));
|
|
1020
1020
|
}
|
|
1021
|
-
function
|
|
1021
|
+
function oo(e, t) {
|
|
1022
1022
|
if (e.length !== t.length)
|
|
1023
1023
|
return !1;
|
|
1024
1024
|
for (var n = 0; n < e.length; n++)
|
|
1025
|
-
if (!
|
|
1025
|
+
if (!ro(e[n], t[n]))
|
|
1026
1026
|
return !1;
|
|
1027
1027
|
return !0;
|
|
1028
1028
|
}
|
|
1029
1029
|
function Ye(e, t) {
|
|
1030
|
-
t === void 0 && (t =
|
|
1030
|
+
t === void 0 && (t = oo);
|
|
1031
1031
|
var n, r = [], o, a = !1;
|
|
1032
1032
|
function c() {
|
|
1033
1033
|
for (var i = [], l = 0; l < arguments.length; l++)
|
|
@@ -1042,13 +1042,13 @@ function Ot(e, t) {
|
|
|
1042
1042
|
var n = {};
|
|
1043
1043
|
for (var r in e)
|
|
1044
1044
|
if ({}.hasOwnProperty.call(e, r)) {
|
|
1045
|
-
if (t.
|
|
1045
|
+
if (t.includes(r))
|
|
1046
1046
|
continue;
|
|
1047
1047
|
n[r] = e[r];
|
|
1048
1048
|
}
|
|
1049
1049
|
return n;
|
|
1050
1050
|
}
|
|
1051
|
-
var
|
|
1051
|
+
var ao = typeof performance == "object" && typeof performance.now == "function", Dt = ao ? function() {
|
|
1052
1052
|
return performance.now();
|
|
1053
1053
|
} : function() {
|
|
1054
1054
|
return Date.now();
|
|
@@ -1056,7 +1056,7 @@ var oo = typeof performance == "object" && typeof performance.now == "function",
|
|
|
1056
1056
|
function At(e) {
|
|
1057
1057
|
cancelAnimationFrame(e.id);
|
|
1058
1058
|
}
|
|
1059
|
-
function
|
|
1059
|
+
function so(e, t) {
|
|
1060
1060
|
var n = Dt();
|
|
1061
1061
|
function r() {
|
|
1062
1062
|
Dt() - n >= t ? e.call(null) : o.id = requestAnimationFrame(r);
|
|
@@ -1067,7 +1067,7 @@ function ao(e, t) {
|
|
|
1067
1067
|
return o;
|
|
1068
1068
|
}
|
|
1069
1069
|
var Qe = -1;
|
|
1070
|
-
function
|
|
1070
|
+
function io(e) {
|
|
1071
1071
|
if (e === void 0 && (e = !1), Qe === -1 || e) {
|
|
1072
1072
|
var t = document.createElement("div"), n = t.style;
|
|
1073
1073
|
n.width = "50px", n.height = "50px", n.overflow = "scroll", document.body.appendChild(t), Qe = t.offsetWidth - t.clientWidth, document.body.removeChild(t);
|
|
@@ -1084,17 +1084,17 @@ function zt(e) {
|
|
|
1084
1084
|
}
|
|
1085
1085
|
return be;
|
|
1086
1086
|
}
|
|
1087
|
-
var
|
|
1087
|
+
var co = 150, lo = function(t) {
|
|
1088
1088
|
var n = t.columnIndex;
|
|
1089
1089
|
t.data;
|
|
1090
1090
|
var r = t.rowIndex;
|
|
1091
1091
|
return r + ":" + n;
|
|
1092
1092
|
}, Ee = null, Oe = null, De = null;
|
|
1093
1093
|
process.env.NODE_ENV !== "production" && typeof window < "u" && typeof window.WeakSet < "u" && (Ee = /* @__PURE__ */ new WeakSet(), Oe = /* @__PURE__ */ new WeakSet(), De = /* @__PURE__ */ new WeakSet());
|
|
1094
|
-
function
|
|
1094
|
+
function uo(e) {
|
|
1095
1095
|
var t, n = e.getColumnOffset, r = e.getColumnStartIndexForOffset, o = e.getColumnStopIndexForStartIndex, a = e.getColumnWidth, c = e.getEstimatedTotalHeight, i = e.getEstimatedTotalWidth, l = e.getOffsetForColumnAndAlignment, p = e.getOffsetForRowAndAlignment, h = e.getRowHeight, f = e.getRowOffset, u = e.getRowStartIndexForOffset, m = e.getRowStopIndexForStartIndex, g = e.initInstanceProps, _ = e.shouldResetStyleCacheOnItemSizeChange, v = e.validateProps;
|
|
1096
1096
|
return t = /* @__PURE__ */ function(C) {
|
|
1097
|
-
|
|
1097
|
+
no(y, C);
|
|
1098
1098
|
function y(L) {
|
|
1099
1099
|
var d;
|
|
1100
1100
|
return d = C.call(this, L) || this, d._instanceProps = g(d.props, Mt(d)), d._resetIsScrollingTimeoutId = null, d._outerRef = void 0, d.state = {
|
|
@@ -1172,7 +1172,7 @@ function lo(e) {
|
|
|
1172
1172
|
var w = d.props.outerRef;
|
|
1173
1173
|
d._outerRef = b, typeof w == "function" ? w(b) : w != null && typeof w == "object" && w.hasOwnProperty("current") && (w.current = b);
|
|
1174
1174
|
}, d._resetIsScrollingDebounced = function() {
|
|
1175
|
-
d._resetIsScrollingTimeoutId !== null && At(d._resetIsScrollingTimeoutId), d._resetIsScrollingTimeoutId =
|
|
1175
|
+
d._resetIsScrollingTimeoutId !== null && At(d._resetIsScrollingTimeoutId), d._resetIsScrollingTimeoutId = so(d._resetIsScrolling, co);
|
|
1176
1176
|
}, d._resetIsScrolling = function() {
|
|
1177
1177
|
d._resetIsScrollingTimeoutId = null, d.setState({
|
|
1178
1178
|
isScrolling: !1
|
|
@@ -1182,7 +1182,7 @@ function lo(e) {
|
|
|
1182
1182
|
}, d;
|
|
1183
1183
|
}
|
|
1184
1184
|
y.getDerivedStateFromProps = function(d, b) {
|
|
1185
|
-
return
|
|
1185
|
+
return po(d, b), v(d), null;
|
|
1186
1186
|
};
|
|
1187
1187
|
var P = y.prototype;
|
|
1188
1188
|
return P.scrollTo = function(d) {
|
|
@@ -1197,7 +1197,7 @@ function lo(e) {
|
|
|
1197
1197
|
};
|
|
1198
1198
|
}, this._resetIsScrollingDebounced);
|
|
1199
1199
|
}, P.scrollToItem = function(d) {
|
|
1200
|
-
var b = d.align, w = b === void 0 ? "auto" : b, T = d.columnIndex, D = d.rowIndex, I = this.props, S = I.columnCount, E = I.height, x = I.rowCount, N = I.width, M = this.state, k = M.scrollLeft, G = M.scrollTop, q =
|
|
1200
|
+
var b = d.align, w = b === void 0 ? "auto" : b, T = d.columnIndex, D = d.rowIndex, I = this.props, S = I.columnCount, E = I.height, x = I.rowCount, N = I.width, M = this.state, k = M.scrollLeft, G = M.scrollTop, q = io();
|
|
1201
1201
|
T !== void 0 && (T = Math.max(0, Math.min(T, S - 1))), D !== void 0 && (D = Math.max(0, Math.min(D, x - 1)));
|
|
1202
1202
|
var Z = c(this.props, this._instanceProps), U = i(this.props, this._instanceProps), B = U > N ? q : 0, re = Z > E ? q : 0;
|
|
1203
1203
|
this.scrollTo({
|
|
@@ -1236,7 +1236,7 @@ function lo(e) {
|
|
|
1236
1236
|
}, P.componentWillUnmount = function() {
|
|
1237
1237
|
this._resetIsScrollingTimeoutId !== null && At(this._resetIsScrollingTimeoutId);
|
|
1238
1238
|
}, P.render = function() {
|
|
1239
|
-
var d = this.props, b = d.children, w = d.className, T = d.columnCount, D = d.direction, I = d.height, S = d.innerRef, E = d.innerElementType, x = d.innerTagName, N = d.itemData, M = d.itemKey, k = M === void 0 ?
|
|
1239
|
+
var d = this.props, b = d.children, w = d.className, T = d.columnCount, D = d.direction, I = d.height, S = d.innerRef, E = d.innerElementType, x = d.innerTagName, N = d.itemData, M = d.itemKey, k = M === void 0 ? lo : M, G = d.outerElementType, q = d.outerTagName, Z = d.rowCount, U = d.style, B = d.useIsScrolling, re = d.width, pe = this.state.isScrolling, K = this._getHorizontalRangeToRender(), Y = K[0], z = K[1], H = this._getVerticalRangeToRender(), j = H[0], se = H[1], Te = [];
|
|
1240
1240
|
if (T > 0 && Z)
|
|
1241
1241
|
for (var me = j; me <= se; me++)
|
|
1242
1242
|
for (var fe = Y; fe <= z; fe++)
|
|
@@ -1304,7 +1304,7 @@ function lo(e) {
|
|
|
1304
1304
|
useIsScrolling: !1
|
|
1305
1305
|
}, t;
|
|
1306
1306
|
}
|
|
1307
|
-
var
|
|
1307
|
+
var po = function(t, n) {
|
|
1308
1308
|
var r = t.children, o = t.direction, a = t.height, c = t.innerTagName, i = t.outerTagName, l = t.overscanColumnsCount, p = t.overscanCount, h = t.overscanRowsCount, f = t.width, u = n.instance;
|
|
1309
1309
|
if (process.env.NODE_ENV !== "production") {
|
|
1310
1310
|
if (typeof p == "number" && Ee && !Ee.has(u) && (Ee.add(u), console.warn("The overscanCount prop has been deprecated. Please use the overscanColumnCount and overscanRowCount props instead.")), (typeof l == "number" || typeof h == "number") && Oe && !Oe.has(u) && (Oe.add(u), console.warn("The overscanColumnsCount and overscanRowsCount props have been deprecated. Please use the overscanColumnCount and overscanRowCount props instead.")), (c != null || i != null) && De && !De.has(u) && (De.add(u), console.warn("The innerTagName and outerTagName props have been deprecated. Please use the innerElementType and outerElementType props instead.")), r == null)
|
|
@@ -1359,7 +1359,7 @@ var uo = function(t, n) {
|
|
|
1359
1359
|
var a, c;
|
|
1360
1360
|
t === "column" ? (a = r.columnMetadataMap, c = r.lastMeasuredColumnIndex) : (a = r.rowMetadataMap, c = r.lastMeasuredRowIndex);
|
|
1361
1361
|
var i = c > 0 ? a[c].offset : 0;
|
|
1362
|
-
return i >= o ? fn(t, n, r, c, 0, o) :
|
|
1362
|
+
return i >= o ? fn(t, n, r, c, 0, o) : ho(t, n, r, Math.max(0, c), o);
|
|
1363
1363
|
}, fn = function(t, n, r, o, a, c) {
|
|
1364
1364
|
for (; a <= o; ) {
|
|
1365
1365
|
var i = a + Math.floor((o - a) / 2), l = ue(t, n, i, r).offset;
|
|
@@ -1368,7 +1368,7 @@ var uo = function(t, n) {
|
|
|
1368
1368
|
l < c ? a = i + 1 : l > c && (o = i - 1);
|
|
1369
1369
|
}
|
|
1370
1370
|
return a > 0 ? a - 1 : 0;
|
|
1371
|
-
},
|
|
1371
|
+
}, ho = function(t, n, r, o, a) {
|
|
1372
1372
|
for (var c = t === "column" ? n.columnCount : n.rowCount, i = 1; o < c && ue(t, n, o, r).offset < a; )
|
|
1373
1373
|
o += i, i *= 2;
|
|
1374
1374
|
return fn(t, n, r, Math.min(o, c - 1), Math.floor(o / 2), a);
|
|
@@ -1385,7 +1385,7 @@ var uo = function(t, n) {
|
|
|
1385
1385
|
default:
|
|
1386
1386
|
return a >= u && a <= f ? a : u > f || a < u ? u : f;
|
|
1387
1387
|
}
|
|
1388
|
-
},
|
|
1388
|
+
}, mo = /* @__PURE__ */ uo({
|
|
1389
1389
|
getColumnOffset: function(t, n, r) {
|
|
1390
1390
|
return ue("column", t, n, r).offset;
|
|
1391
1391
|
},
|
|
@@ -1467,12 +1467,12 @@ function Ht(e, t) {
|
|
|
1467
1467
|
return !0;
|
|
1468
1468
|
return !1;
|
|
1469
1469
|
}
|
|
1470
|
-
var
|
|
1471
|
-
function
|
|
1472
|
-
var n = e.style, r = Ot(e,
|
|
1470
|
+
var fo = ["style"], go = ["style"];
|
|
1471
|
+
function vo(e, t) {
|
|
1472
|
+
var n = e.style, r = Ot(e, fo), o = t.style, a = Ot(t, go);
|
|
1473
1473
|
return !Ht(n, o) && !Ht(r, a);
|
|
1474
1474
|
}
|
|
1475
|
-
const
|
|
1475
|
+
const _o = () => {
|
|
1476
1476
|
const { viewMode: e } = Ue(), { scrollMode: t } = Pe(), { setColumnCount: n } = Bt(), { virtualScrollableElementRef: r } = qe(), o = ht(), a = R(
|
|
1477
1477
|
(m) => o.widths[m] || 0,
|
|
1478
1478
|
[o]
|
|
@@ -1510,7 +1510,7 @@ tt == null || Vt == null ? (dt = et, pt = function(t) {
|
|
|
1510
1510
|
}, $t);
|
|
1511
1511
|
return [n, r];
|
|
1512
1512
|
});
|
|
1513
|
-
function
|
|
1513
|
+
function wo(e) {
|
|
1514
1514
|
let t, n, r, o, a, c, i;
|
|
1515
1515
|
const l = typeof document < "u" && document.attachEvent;
|
|
1516
1516
|
if (!l) {
|
|
@@ -1582,7 +1582,7 @@ function _o(e) {
|
|
|
1582
1582
|
}
|
|
1583
1583
|
};
|
|
1584
1584
|
}
|
|
1585
|
-
class
|
|
1585
|
+
class bo extends Wn {
|
|
1586
1586
|
constructor(...t) {
|
|
1587
1587
|
super(...t), this.state = {
|
|
1588
1588
|
height: this.props.defaultHeight || 0,
|
|
@@ -1623,7 +1623,7 @@ class wo extends Wn {
|
|
|
1623
1623
|
const r = n.ownerDocument.defaultView.ResizeObserver;
|
|
1624
1624
|
r != null ? (this._resizeObserver = new r(() => {
|
|
1625
1625
|
this._timeoutId = setTimeout(this._onResize, 0);
|
|
1626
|
-
}), this._resizeObserver.observe(n)) : (this._detectElementResize =
|
|
1626
|
+
}), this._resizeObserver.observe(n)) : (this._detectElementResize = wo(t), this._detectElementResize.addResizeListener(n, this._onResize)), this._onResize();
|
|
1627
1627
|
}
|
|
1628
1628
|
}
|
|
1629
1629
|
componentWillUnmount() {
|
|
@@ -1661,7 +1661,7 @@ class wo extends Wn {
|
|
|
1661
1661
|
}, !y && t(C));
|
|
1662
1662
|
}
|
|
1663
1663
|
}
|
|
1664
|
-
const
|
|
1664
|
+
const Co = ({ widths: e, heights: t }) => {
|
|
1665
1665
|
const { focusedPage: n, totalPages: r } = oe(), o = A(() => {
|
|
1666
1666
|
const i = [], l = Math.ceil(n / 2) * 2 - 1;
|
|
1667
1667
|
if (i.push(l), l + 1 < r) {
|
|
@@ -1685,7 +1685,7 @@ const bo = ({ widths: e, heights: t }) => {
|
|
|
1685
1685
|
}
|
|
1686
1686
|
], [e, t, o]), c = A(() => a.reduce((i, l) => i + Number(l.width || 0), 0), [a]);
|
|
1687
1687
|
return /* @__PURE__ */ s("div", { style: { width: c, position: "relative" }, children: o.map((i, l) => /* @__PURE__ */ s(bt, { style: a[l], pageNumber: i }, i)) });
|
|
1688
|
-
},
|
|
1688
|
+
}, Po = ({ widths: e, heights: t }) => {
|
|
1689
1689
|
const { focusedPage: n } = oe(), r = A(() => ({
|
|
1690
1690
|
position: "absolute",
|
|
1691
1691
|
width: e(n - 1),
|
|
@@ -1701,7 +1701,7 @@ const bo = ({ widths: e, heights: t }) => {
|
|
|
1701
1701
|
children: /* @__PURE__ */ s(bt, { style: r, pageNumber: n }, n)
|
|
1702
1702
|
}
|
|
1703
1703
|
);
|
|
1704
|
-
},
|
|
1704
|
+
}, To = Hn(({ columnIndex: e, rowIndex: t, data: n, style: r }) => {
|
|
1705
1705
|
const o = A(() => e + 1 + t * n.columnCount, [e, t, n]);
|
|
1706
1706
|
return /* @__PURE__ */ s(
|
|
1707
1707
|
bt,
|
|
@@ -1712,8 +1712,8 @@ const bo = ({ widths: e, heights: t }) => {
|
|
|
1712
1712
|
},
|
|
1713
1713
|
o
|
|
1714
1714
|
);
|
|
1715
|
-
},
|
|
1716
|
-
const { getContainer: e, container: t } =
|
|
1715
|
+
}, vo), Zs = () => {
|
|
1716
|
+
const { getContainer: e, container: t } = lr(), { scrollToPage: n } = nn(), {
|
|
1717
1717
|
virtualScrollRef: r,
|
|
1718
1718
|
getVirtualScrollRef: o,
|
|
1719
1719
|
getPageScrollElementRef: a,
|
|
@@ -1734,12 +1734,12 @@ const bo = ({ widths: e, heights: t }) => {
|
|
|
1734
1734
|
columnWidth: w,
|
|
1735
1735
|
estimatedColumnWidth: T,
|
|
1736
1736
|
estimatedRowHeight: D
|
|
1737
|
-
} =
|
|
1737
|
+
} = _o(), [I, S] = W({}), { isScrolling: E } = Kt(), x = $(), N = $({
|
|
1738
1738
|
scrollTop: 0,
|
|
1739
1739
|
scrollLeft: 0
|
|
1740
1740
|
});
|
|
1741
|
-
|
|
1742
|
-
const { isPressed: M } =
|
|
1741
|
+
pr(t);
|
|
1742
|
+
const { isPressed: M } = ur(), { selectionMode: k } = Vn(), { initializeGrabScroll: G, scrollBehavior: q } = dr({
|
|
1743
1743
|
isPressed: M
|
|
1744
1744
|
}), Z = A(() => k === $n.HAND, [k]), U = R((z, H) => {
|
|
1745
1745
|
S((j) => ({ ...j, [z]: Math.round(H * 100) }));
|
|
@@ -1826,16 +1826,16 @@ const bo = ({ widths: e, heights: t }) => {
|
|
|
1826
1826
|
},
|
|
1827
1827
|
[Z, G, le]
|
|
1828
1828
|
);
|
|
1829
|
-
return /* @__PURE__ */ s("div", { ref: e, tabIndex: -1, className: K, children: /* @__PURE__ */ s(
|
|
1829
|
+
return /* @__PURE__ */ s("div", { ref: e, tabIndex: -1, className: K, children: /* @__PURE__ */ s(bo, { children: ({ width: z, height: H }) => /* @__PURE__ */ s("div", { "data-rp": "pages", ref: Y, style: { width: z, height: H, scrollBehavior: q }, children: m === J.PAGE_SCROLLING ? /* @__PURE__ */ s(
|
|
1830
1830
|
"div",
|
|
1831
1831
|
{
|
|
1832
1832
|
ref: a,
|
|
1833
1833
|
style: { width: z, height: H },
|
|
1834
1834
|
className: Q(le["rp-pages"], le["rp-page-scrolling-wrapper"]),
|
|
1835
|
-
children: g === ze.DUAL_PAGE ? /* @__PURE__ */ s(
|
|
1835
|
+
children: g === ze.DUAL_PAGE ? /* @__PURE__ */ s(Co, { widths: w, heights: d }) : /* @__PURE__ */ s(Po, { widths: w, heights: d })
|
|
1836
1836
|
}
|
|
1837
1837
|
) : T ? /* @__PURE__ */ s(
|
|
1838
|
-
|
|
1838
|
+
mo,
|
|
1839
1839
|
{
|
|
1840
1840
|
ref: o,
|
|
1841
1841
|
itemData: B,
|
|
@@ -1855,7 +1855,7 @@ const bo = ({ widths: e, heights: t }) => {
|
|
|
1855
1855
|
m === J.HORIZONTAL_SCROLLING ? le["rp-pages-horizontal-scroll"] : ""
|
|
1856
1856
|
),
|
|
1857
1857
|
style: { scrollBehavior: q },
|
|
1858
|
-
children:
|
|
1858
|
+
children: To
|
|
1859
1859
|
}
|
|
1860
1860
|
) : null }) }) });
|
|
1861
1861
|
}, Se = {
|
|
@@ -1868,13 +1868,13 @@ const bo = ({ widths: e, heights: t }) => {
|
|
|
1868
1868
|
"rp-paginate": "_rp-paginate_1vu6o_1",
|
|
1869
1869
|
"rp-page-input": "_rp-page-input_1vu6o_6",
|
|
1870
1870
|
"rp-total-page": "_rp-total-page_1vu6o_12"
|
|
1871
|
-
},
|
|
1871
|
+
}, So = () => {
|
|
1872
1872
|
const { prevIcon: e } = ce();
|
|
1873
1873
|
return e || /* @__PURE__ */ s(Re, {});
|
|
1874
|
-
},
|
|
1874
|
+
}, yo = () => {
|
|
1875
1875
|
const { nextIcon: e } = ce();
|
|
1876
1876
|
return e || /* @__PURE__ */ s(Re, { style: { transform: "rotate(180deg" } });
|
|
1877
|
-
},
|
|
1877
|
+
}, Io = () => {
|
|
1878
1878
|
const { focusedPage: e, totalPages: t, setFocusedPage: n, nextPage: r, prevPage: o, goToPage: a } = oe(), [c, i] = W(e.toString()), { pageNavigationTool: l = !0 } = de(), { isSmallScreen: p } = _e();
|
|
1879
1879
|
F(() => {
|
|
1880
1880
|
i(e.toString());
|
|
@@ -1904,7 +1904,7 @@ const bo = ({ widths: e, heights: t }) => {
|
|
|
1904
1904
|
changePage: n
|
|
1905
1905
|
}
|
|
1906
1906
|
) : l ? /* @__PURE__ */ O("div", { className: nt["rp-paginate"], children: [
|
|
1907
|
-
!p && /* @__PURE__ */ s(ee, { content: "Previous page", children: /* @__PURE__ */ s(X, { onClick: o, disabled: e === 1, children: /* @__PURE__ */ s(
|
|
1907
|
+
!p && /* @__PURE__ */ s(ee, { content: "Previous page", children: /* @__PURE__ */ s(X, { onClick: o, disabled: e === 1, children: /* @__PURE__ */ s(So, {}) }) }),
|
|
1908
1908
|
/* @__PURE__ */ s(
|
|
1909
1909
|
jt,
|
|
1910
1910
|
{
|
|
@@ -1919,10 +1919,10 @@ const bo = ({ widths: e, heights: t }) => {
|
|
|
1919
1919
|
"/",
|
|
1920
1920
|
t
|
|
1921
1921
|
] }),
|
|
1922
|
-
!p && /* @__PURE__ */ s(ee, { content: "Next page", children: /* @__PURE__ */ s(X, { onClick: r, disabled: e === t, children: /* @__PURE__ */ s(
|
|
1922
|
+
!p && /* @__PURE__ */ s(ee, { content: "Next page", children: /* @__PURE__ */ s(X, { onClick: r, disabled: e === t, children: /* @__PURE__ */ s(yo, {}) }) })
|
|
1923
1923
|
] }) : null;
|
|
1924
1924
|
};
|
|
1925
|
-
var Ct = "Dialog", [gn,
|
|
1925
|
+
var Ct = "Dialog", [gn, js] = Sr(Ct), [xo, ae] = gn(Ct), vn = (e) => {
|
|
1926
1926
|
const {
|
|
1927
1927
|
__scopeDialog: t,
|
|
1928
1928
|
children: n,
|
|
@@ -1930,13 +1930,13 @@ var Ct = "Dialog", [gn, Zs] = gr(Ct), [Io, ae] = gn(Ct), vn = (e) => {
|
|
|
1930
1930
|
defaultOpen: o,
|
|
1931
1931
|
onOpenChange: a,
|
|
1932
1932
|
modal: c = !0
|
|
1933
|
-
} = e, i = V.useRef(null), l = V.useRef(null), [p = !1, h] =
|
|
1933
|
+
} = e, i = V.useRef(null), l = V.useRef(null), [p = !1, h] = Ir({
|
|
1934
1934
|
prop: r,
|
|
1935
1935
|
defaultProp: o,
|
|
1936
1936
|
onChange: a
|
|
1937
1937
|
});
|
|
1938
1938
|
return /* @__PURE__ */ s(
|
|
1939
|
-
|
|
1939
|
+
xo,
|
|
1940
1940
|
{
|
|
1941
1941
|
scope: t,
|
|
1942
1942
|
triggerRef: i,
|
|
@@ -1953,7 +1953,7 @@ var Ct = "Dialog", [gn, Zs] = gr(Ct), [Io, ae] = gn(Ct), vn = (e) => {
|
|
|
1953
1953
|
);
|
|
1954
1954
|
};
|
|
1955
1955
|
vn.displayName = Ct;
|
|
1956
|
-
var _n = "DialogTrigger",
|
|
1956
|
+
var _n = "DialogTrigger", Ro = V.forwardRef(
|
|
1957
1957
|
(e, t) => {
|
|
1958
1958
|
const { __scopeDialog: n, ...r } = e, o = ae(_n, n), a = gt(t, o.triggerRef);
|
|
1959
1959
|
return /* @__PURE__ */ s(
|
|
@@ -1971,28 +1971,28 @@ var _n = "DialogTrigger", xo = V.forwardRef(
|
|
|
1971
1971
|
);
|
|
1972
1972
|
}
|
|
1973
1973
|
);
|
|
1974
|
-
|
|
1975
|
-
var Pt = "DialogPortal", [
|
|
1974
|
+
Ro.displayName = _n;
|
|
1975
|
+
var Pt = "DialogPortal", [Lo, wn] = gn(Pt, {
|
|
1976
1976
|
forceMount: void 0
|
|
1977
1977
|
}), bn = (e) => {
|
|
1978
1978
|
const { __scopeDialog: t, forceMount: n, children: r, container: o } = e, a = ae(Pt, t);
|
|
1979
|
-
return /* @__PURE__ */ s(
|
|
1979
|
+
return /* @__PURE__ */ s(Lo, { scope: t, forceMount: n, children: V.Children.map(r, (c) => /* @__PURE__ */ s(vt, { present: n || a.open, children: /* @__PURE__ */ s(Tr, { asChild: !0, container: o, children: c }) })) });
|
|
1980
1980
|
};
|
|
1981
1981
|
bn.displayName = Pt;
|
|
1982
1982
|
var ke = "DialogOverlay", Cn = V.forwardRef(
|
|
1983
1983
|
(e, t) => {
|
|
1984
1984
|
const n = wn(ke, e.__scopeDialog), { forceMount: r = n.forceMount, ...o } = e, a = ae(ke, e.__scopeDialog);
|
|
1985
|
-
return a.modal ? /* @__PURE__ */ s(vt, { present: r || a.open, children: /* @__PURE__ */ s(
|
|
1985
|
+
return a.modal ? /* @__PURE__ */ s(vt, { present: r || a.open, children: /* @__PURE__ */ s(No, { ...o, ref: t }) }) : null;
|
|
1986
1986
|
}
|
|
1987
1987
|
);
|
|
1988
1988
|
Cn.displayName = ke;
|
|
1989
|
-
var
|
|
1989
|
+
var No = V.forwardRef(
|
|
1990
1990
|
(e, t) => {
|
|
1991
1991
|
const { __scopeDialog: n, ...r } = e, o = ae(ke, n);
|
|
1992
1992
|
return (
|
|
1993
1993
|
// Make sure `Content` is scrollable even when it doesn't live inside `RemoveScroll`
|
|
1994
1994
|
// ie. when `Overlay` and `Content` are siblings
|
|
1995
|
-
/* @__PURE__ */ s(
|
|
1995
|
+
/* @__PURE__ */ s(vr, { as: _r, allowPinchZoom: !0, shards: [o.contentRef], children: /* @__PURE__ */ s(
|
|
1996
1996
|
Ne.div,
|
|
1997
1997
|
{
|
|
1998
1998
|
"data-state": St(o.open),
|
|
@@ -2006,17 +2006,17 @@ var Lo = V.forwardRef(
|
|
|
2006
2006
|
), ve = "DialogContent", Pn = V.forwardRef(
|
|
2007
2007
|
(e, t) => {
|
|
2008
2008
|
const n = wn(ve, e.__scopeDialog), { forceMount: r = n.forceMount, ...o } = e, a = ae(ve, e.__scopeDialog);
|
|
2009
|
-
return /* @__PURE__ */ s(vt, { present: r || a.open, children: a.modal ? /* @__PURE__ */ s(
|
|
2009
|
+
return /* @__PURE__ */ s(vt, { present: r || a.open, children: a.modal ? /* @__PURE__ */ s(Mo, { ...o, ref: t }) : /* @__PURE__ */ s(Eo, { ...o, ref: t }) });
|
|
2010
2010
|
}
|
|
2011
2011
|
);
|
|
2012
2012
|
Pn.displayName = ve;
|
|
2013
|
-
var
|
|
2013
|
+
var Mo = V.forwardRef(
|
|
2014
2014
|
(e, t) => {
|
|
2015
2015
|
const n = ae(ve, e.__scopeDialog), r = V.useRef(null), o = gt(t, n.contentRef, r);
|
|
2016
2016
|
return V.useEffect(() => {
|
|
2017
2017
|
const a = r.current;
|
|
2018
2018
|
if (a)
|
|
2019
|
-
return
|
|
2019
|
+
return wr(a);
|
|
2020
2020
|
}, []), /* @__PURE__ */ s(
|
|
2021
2021
|
Tn,
|
|
2022
2022
|
{
|
|
@@ -2039,7 +2039,7 @@ var No = V.forwardRef(
|
|
|
2039
2039
|
}
|
|
2040
2040
|
);
|
|
2041
2041
|
}
|
|
2042
|
-
),
|
|
2042
|
+
), Eo = V.forwardRef(
|
|
2043
2043
|
(e, t) => {
|
|
2044
2044
|
const n = ae(ve, e.__scopeDialog), r = V.useRef(!1), o = V.useRef(!1);
|
|
2045
2045
|
return /* @__PURE__ */ s(
|
|
@@ -2065,9 +2065,9 @@ var No = V.forwardRef(
|
|
|
2065
2065
|
), Tn = V.forwardRef(
|
|
2066
2066
|
(e, t) => {
|
|
2067
2067
|
const { __scopeDialog: n, trapFocus: r, onOpenAutoFocus: o, onCloseAutoFocus: a, ...c } = e, i = ae(ve, n), l = V.useRef(null), p = gt(t, l);
|
|
2068
|
-
return
|
|
2068
|
+
return br(), /* @__PURE__ */ O(Ae, { children: [
|
|
2069
2069
|
/* @__PURE__ */ s(
|
|
2070
|
-
|
|
2070
|
+
Cr,
|
|
2071
2071
|
{
|
|
2072
2072
|
asChild: !0,
|
|
2073
2073
|
loop: !0,
|
|
@@ -2075,7 +2075,7 @@ var No = V.forwardRef(
|
|
|
2075
2075
|
onMountAutoFocus: o,
|
|
2076
2076
|
onUnmountAutoFocus: a,
|
|
2077
2077
|
children: /* @__PURE__ */ s(
|
|
2078
|
-
|
|
2078
|
+
Pr,
|
|
2079
2079
|
{
|
|
2080
2080
|
role: "dialog",
|
|
2081
2081
|
id: i.contentId,
|
|
@@ -2090,8 +2090,8 @@ var No = V.forwardRef(
|
|
|
2090
2090
|
}
|
|
2091
2091
|
),
|
|
2092
2092
|
/* @__PURE__ */ O(Ae, { children: [
|
|
2093
|
-
/* @__PURE__ */ s(
|
|
2094
|
-
/* @__PURE__ */ s(
|
|
2093
|
+
/* @__PURE__ */ s(Do, { titleId: i.titleId }),
|
|
2094
|
+
/* @__PURE__ */ s(zo, { contentRef: l, descriptionId: i.descriptionId })
|
|
2095
2095
|
] })
|
|
2096
2096
|
] });
|
|
2097
2097
|
}
|
|
@@ -2102,13 +2102,13 @@ var No = V.forwardRef(
|
|
|
2102
2102
|
}
|
|
2103
2103
|
);
|
|
2104
2104
|
Sn.displayName = Tt;
|
|
2105
|
-
var yn = "DialogDescription",
|
|
2105
|
+
var yn = "DialogDescription", Oo = V.forwardRef(
|
|
2106
2106
|
(e, t) => {
|
|
2107
2107
|
const { __scopeDialog: n, ...r } = e, o = ae(yn, n);
|
|
2108
2108
|
return /* @__PURE__ */ s(Ne.p, { id: o.descriptionId, ...r, ref: t });
|
|
2109
2109
|
}
|
|
2110
2110
|
);
|
|
2111
|
-
|
|
2111
|
+
Oo.displayName = yn;
|
|
2112
2112
|
var In = "DialogClose", xn = V.forwardRef(
|
|
2113
2113
|
(e, t) => {
|
|
2114
2114
|
const { __scopeDialog: n, ...r } = e, o = ae(In, n);
|
|
@@ -2127,11 +2127,11 @@ xn.displayName = In;
|
|
|
2127
2127
|
function St(e) {
|
|
2128
2128
|
return e ? "open" : "closed";
|
|
2129
2129
|
}
|
|
2130
|
-
var Rn = "DialogTitleWarning", [
|
|
2130
|
+
var Rn = "DialogTitleWarning", [Bs, Ln] = yr(Rn, {
|
|
2131
2131
|
contentName: ve,
|
|
2132
2132
|
titleName: Tt,
|
|
2133
2133
|
docsSlug: "dialog"
|
|
2134
|
-
}),
|
|
2134
|
+
}), Do = ({ titleId: e }) => {
|
|
2135
2135
|
const t = Ln(Rn), n = `\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.
|
|
2136
2136
|
|
|
2137
2137
|
If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component.
|
|
@@ -2140,14 +2140,14 @@ For more information, see https://radix-ui.com/primitives/docs/components/${t.do
|
|
|
2140
2140
|
return V.useEffect(() => {
|
|
2141
2141
|
e && (document.getElementById(e) || console.error(n));
|
|
2142
2142
|
}, [n, e]), null;
|
|
2143
|
-
},
|
|
2144
|
-
const r = `Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${Ln(
|
|
2143
|
+
}, Ao = "DialogDescriptionWarning", zo = ({ contentRef: e, descriptionId: t }) => {
|
|
2144
|
+
const r = `Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${Ln(Ao).contentName}}.`;
|
|
2145
2145
|
return V.useEffect(() => {
|
|
2146
2146
|
var a;
|
|
2147
2147
|
const o = (a = e.current) == null ? void 0 : a.getAttribute("aria-describedby");
|
|
2148
2148
|
t && o && (document.getElementById(t) || console.warn(r));
|
|
2149
2149
|
}, [r, e, t]), null;
|
|
2150
|
-
},
|
|
2150
|
+
}, Fo = vn, ko = bn, Wo = Cn, Ho = Pn, $o = Sn, Go = xn;
|
|
2151
2151
|
const ge = {
|
|
2152
2152
|
"rp-dialog-wrapper": "_rp-dialog-wrapper_slqo7_1",
|
|
2153
2153
|
"rp-dialog-overlay": "_rp-dialog-overlay_slqo7_7",
|
|
@@ -2156,8 +2156,8 @@ const ge = {
|
|
|
2156
2156
|
"rp-dialog-title": "_rp-dialog-title_slqo7_39",
|
|
2157
2157
|
"rp-dialog-close": "_rp-dialog-close_slqo7_47",
|
|
2158
2158
|
"rp-properties-divider": "_rp-properties-divider_slqo7_55"
|
|
2159
|
-
},
|
|
2160
|
-
const { pdfProperties: e } = ne(), { container: t } = Le(), { activeDocumentProperties: n, setActiveDocumentProperties: r } =
|
|
2159
|
+
}, Vo = () => {
|
|
2160
|
+
const { pdfProperties: e } = ne(), { container: t } = Le(), { activeDocumentProperties: n, setActiveDocumentProperties: r } = Rr(), o = A(() => {
|
|
2161
2161
|
if (!e)
|
|
2162
2162
|
return [];
|
|
2163
2163
|
const {
|
|
@@ -2197,45 +2197,45 @@ const ge = {
|
|
|
2197
2197
|
{ label: "Page count", value: v }
|
|
2198
2198
|
];
|
|
2199
2199
|
}, [e]);
|
|
2200
|
-
return /* @__PURE__ */ s(
|
|
2201
|
-
/* @__PURE__ */ s(
|
|
2202
|
-
/* @__PURE__ */ O(
|
|
2203
|
-
/* @__PURE__ */ s(
|
|
2204
|
-
/* @__PURE__ */ s("div", { className: ge["rp-document-properties"], children: o.map((a, c) => /* @__PURE__ */ s("div", { children: a.separate ? /* @__PURE__ */ s("div", { className: ge["rp-properties-divider"] }) : /* @__PURE__ */ s(
|
|
2205
|
-
/* @__PURE__ */ s(
|
|
2200
|
+
return /* @__PURE__ */ s(Fo, { open: n, onOpenChange: r, children: /* @__PURE__ */ s(ko, { container: t, children: /* @__PURE__ */ O("div", { className: ge["rp-dialog-wrapper"], children: [
|
|
2201
|
+
/* @__PURE__ */ s(Wo, { className: ge["rp-dialog-overlay"] }),
|
|
2202
|
+
/* @__PURE__ */ O(Ho, { className: ge["rp-document-dialog"], children: [
|
|
2203
|
+
/* @__PURE__ */ s($o, { className: ge["rp-dialog-title"], children: "Document Properties" }),
|
|
2204
|
+
/* @__PURE__ */ s("div", { className: ge["rp-document-properties"], children: o.map((a, c) => /* @__PURE__ */ s("div", { children: a.separate ? /* @__PURE__ */ s("div", { className: ge["rp-properties-divider"] }) : /* @__PURE__ */ s(xr, { label: a.label, value: a.value }) }, c)) }),
|
|
2205
|
+
/* @__PURE__ */ s(Go, { asChild: !0, className: ge["rp-dialog-close"], children: /* @__PURE__ */ s(Qt, {}) })
|
|
2206
2206
|
] })
|
|
2207
2207
|
] }) }) });
|
|
2208
|
-
},
|
|
2208
|
+
}, Uo = {
|
|
2209
2209
|
"rp-other-tool-content": "_rp-other-tool-content_su718_1"
|
|
2210
|
-
},
|
|
2210
|
+
}, qo = (e) => URL.createObjectURL(e), Zo = async (e) => {
|
|
2211
2211
|
const n = await (await fetch(e)).blob();
|
|
2212
|
-
return
|
|
2213
|
-
},
|
|
2212
|
+
return qo(n);
|
|
2213
|
+
}, jo = () => {
|
|
2214
2214
|
const { filename: e, pdfSrc: t } = ne();
|
|
2215
2215
|
return { download: R(async () => {
|
|
2216
2216
|
if (!e || !t)
|
|
2217
2217
|
throw new Error("There is no PDF source to download");
|
|
2218
2218
|
const r = document.createElement("a");
|
|
2219
|
-
r.href = await
|
|
2219
|
+
r.href = await Zo(t), r.download = e, document.body.appendChild(r), r.click(), document.body.removeChild(r);
|
|
2220
2220
|
}, []) };
|
|
2221
2221
|
}, Nn = () => {
|
|
2222
2222
|
const { downloadIcon: e } = ce();
|
|
2223
|
-
return e || /* @__PURE__ */ s(
|
|
2224
|
-
}, Mn = ({ children: e, className: t }) => /* @__PURE__ */ s(ee, { className: t, content: "Download file", children: e }),
|
|
2223
|
+
return e || /* @__PURE__ */ s(Or, {});
|
|
2224
|
+
}, Mn = ({ children: e, className: t }) => /* @__PURE__ */ s(ee, { className: t, content: "Download file", children: e }), Bo = ({ download: e }) => /* @__PURE__ */ s(Mn, { children: /* @__PURE__ */ s(X, { onClick: e, children: /* @__PURE__ */ s(Nn, {}) }) }), Ko = ({ download: e }) => /* @__PURE__ */ s(he, { onClick: e, children: /* @__PURE__ */ O(Mn, { className: "rp-menu-item", children: [
|
|
2225
2225
|
/* @__PURE__ */ s("div", { className: "rp-menu-item-left", children: /* @__PURE__ */ s(Nn, {}) }),
|
|
2226
2226
|
"Download file"
|
|
2227
2227
|
] }) }), En = () => {
|
|
2228
|
-
const { download: e } =
|
|
2229
|
-
return t ? n ? /* @__PURE__ */ s(
|
|
2228
|
+
const { download: e } = jo(), { downloadTool: t = !0 } = de(), { isSmallScreen: n } = _e();
|
|
2229
|
+
return t ? n ? /* @__PURE__ */ s(Ko, { download: e }) : typeof t == "function" ? /* @__PURE__ */ s(t, { download: e }) : t ? /* @__PURE__ */ s(Bo, { download: e }) : null : null;
|
|
2230
2230
|
}, On = () => {
|
|
2231
2231
|
const { printIcon: e } = ce();
|
|
2232
|
-
return e || /* @__PURE__ */ s(
|
|
2233
|
-
}, Dn = ({ children: e, className: t }) => /* @__PURE__ */ s(ee, { className: t, content: "Print", children: e }),
|
|
2232
|
+
return e || /* @__PURE__ */ s(Dr, {});
|
|
2233
|
+
}, Dn = ({ children: e, className: t }) => /* @__PURE__ */ s(ee, { className: t, content: "Print", children: e }), Xo = ({ print: e }) => /* @__PURE__ */ s(Dn, { children: /* @__PURE__ */ s(X, { onClick: e, children: /* @__PURE__ */ s(On, {}) }) }), Jo = ({ print: e }) => /* @__PURE__ */ s(he, { onClick: e, children: /* @__PURE__ */ O(Dn, { className: "rp-menu-item", children: [
|
|
2234
2234
|
/* @__PURE__ */ s("div", { className: "rp-menu-item-left", children: /* @__PURE__ */ s(On, {}) }),
|
|
2235
2235
|
"Print"
|
|
2236
2236
|
] }) }), An = () => {
|
|
2237
2237
|
const { print: e, cancel: t, setOnProgress: n, setOnComplete: r, setOnError: o, progress: a } = wt(), { printTool: c = !0 } = de(), { isSmallScreen: i } = _e();
|
|
2238
|
-
return c ? i ? /* @__PURE__ */ s(
|
|
2238
|
+
return c ? i ? /* @__PURE__ */ s(Jo, { print: e }) : typeof c == "function" ? /* @__PURE__ */ s(
|
|
2239
2239
|
c,
|
|
2240
2240
|
{
|
|
2241
2241
|
print: e,
|
|
@@ -2245,16 +2245,16 @@ const ge = {
|
|
|
2245
2245
|
setOnComplete: r,
|
|
2246
2246
|
progress: a
|
|
2247
2247
|
}
|
|
2248
|
-
) : c ? /* @__PURE__ */ s(
|
|
2249
|
-
},
|
|
2248
|
+
) : c ? /* @__PURE__ */ s(Xo, { print: e }) : null : null;
|
|
2249
|
+
}, Yo = {
|
|
2250
2250
|
"rp-go-to-Top": "_rp-go-to-Top_4e0yd_1"
|
|
2251
|
-
}, Yo = () => {
|
|
2252
|
-
const { goToFirstPageIcon: e } = ce();
|
|
2253
|
-
return e || /* @__PURE__ */ s(tn, { className: Jo["rp-go-to-Top"] });
|
|
2254
2251
|
}, Qo = () => {
|
|
2252
|
+
const { goToFirstPageIcon: e } = ce();
|
|
2253
|
+
return e || /* @__PURE__ */ s(tn, { className: Yo["rp-go-to-Top"] });
|
|
2254
|
+
}, ea = () => {
|
|
2255
2255
|
const { goToLastPageIcon: e } = ce();
|
|
2256
2256
|
return e || /* @__PURE__ */ s(tn, {});
|
|
2257
|
-
},
|
|
2257
|
+
}, ta = () => {
|
|
2258
2258
|
const { goToPage: e, totalPages: t, focusedPage: n } = oe(), { jumpNavigationTool: r = !0 } = de(), o = A(() => n === 1, [n]), a = A(() => n === t, [n, t]), c = R(() => {
|
|
2259
2259
|
e(1);
|
|
2260
2260
|
}, [e]), i = R(() => {
|
|
@@ -2262,16 +2262,16 @@ const ge = {
|
|
|
2262
2262
|
}, [e, t]);
|
|
2263
2263
|
return r ? /* @__PURE__ */ O(Fe, { children: [
|
|
2264
2264
|
/* @__PURE__ */ s(he, { disabled: o, onClick: c, children: /* @__PURE__ */ O(ee, { className: "rp-menu-item", content: "Go to first page", children: [
|
|
2265
|
-
/* @__PURE__ */ s("div", { className: "rp-menu-item-left", children: /* @__PURE__ */ s(
|
|
2265
|
+
/* @__PURE__ */ s("div", { className: "rp-menu-item-left", children: /* @__PURE__ */ s(Qo, {}) }),
|
|
2266
2266
|
"First page"
|
|
2267
2267
|
] }) }),
|
|
2268
2268
|
/* @__PURE__ */ s(he, { disabled: a, onClick: i, children: /* @__PURE__ */ O(ee, { className: "rp-menu-item", content: "Go to last page", children: [
|
|
2269
|
-
/* @__PURE__ */ s("div", { className: "rp-menu-item-left", children: /* @__PURE__ */ s(
|
|
2269
|
+
/* @__PURE__ */ s("div", { className: "rp-menu-item-left", children: /* @__PURE__ */ s(ea, {}) }),
|
|
2270
2270
|
"Last page"
|
|
2271
2271
|
] }) }),
|
|
2272
2272
|
/* @__PURE__ */ s(_t, {})
|
|
2273
2273
|
] }) : null;
|
|
2274
|
-
},
|
|
2274
|
+
}, na = () => {
|
|
2275
2275
|
const { container: e } = Le(), { isSmallScreen: t } = _e(), {
|
|
2276
2276
|
openFileTool: n,
|
|
2277
2277
|
downloadTool: r,
|
|
@@ -2296,13 +2296,13 @@ const ge = {
|
|
|
2296
2296
|
i,
|
|
2297
2297
|
l,
|
|
2298
2298
|
t
|
|
2299
|
-
]) ? /* @__PURE__ */ O(
|
|
2299
|
+
]) ? /* @__PURE__ */ O(Lr, { children: [
|
|
2300
2300
|
/* @__PURE__ */ s(
|
|
2301
2301
|
ft,
|
|
2302
2302
|
{
|
|
2303
2303
|
container: e,
|
|
2304
|
-
triggerComponent: /* @__PURE__ */ s("div", { role: "button", children: /* @__PURE__ */ s(ee, { content: "More options", children: /* @__PURE__ */ s(X, { children: /* @__PURE__ */ s(
|
|
2305
|
-
children: /* @__PURE__ */ O("div", { className:
|
|
2304
|
+
triggerComponent: /* @__PURE__ */ s("div", { role: "button", children: /* @__PURE__ */ s(ee, { content: "More options", children: /* @__PURE__ */ s(X, { children: /* @__PURE__ */ s(gr, {}) }) }) }),
|
|
2305
|
+
children: /* @__PURE__ */ O("div", { className: Uo["rp-other-tool-content"], "data-rp": "moreOptionsDropdown", children: [
|
|
2306
2306
|
t && /* @__PURE__ */ O(Fe, { children: [
|
|
2307
2307
|
/* @__PURE__ */ s(Yt, {}),
|
|
2308
2308
|
/* @__PURE__ */ s(En, {}),
|
|
@@ -2310,27 +2310,27 @@ const ge = {
|
|
|
2310
2310
|
/* @__PURE__ */ s(en, {}),
|
|
2311
2311
|
/* @__PURE__ */ s(_t, {})
|
|
2312
2312
|
] }),
|
|
2313
|
-
/* @__PURE__ */ s(
|
|
2314
|
-
/* @__PURE__ */ s(Nr, {}),
|
|
2315
|
-
/* @__PURE__ */ s(Dr, {}),
|
|
2313
|
+
/* @__PURE__ */ s(ta, {}),
|
|
2316
2314
|
/* @__PURE__ */ s(Mr, {}),
|
|
2317
|
-
/* @__PURE__ */ s(
|
|
2315
|
+
/* @__PURE__ */ s(Ar, {}),
|
|
2316
|
+
/* @__PURE__ */ s(Er, {}),
|
|
2317
|
+
/* @__PURE__ */ s(Nr, {})
|
|
2318
2318
|
] })
|
|
2319
2319
|
}
|
|
2320
2320
|
),
|
|
2321
|
-
/* @__PURE__ */ s(
|
|
2321
|
+
/* @__PURE__ */ s(Vo, {})
|
|
2322
2322
|
] }) : null;
|
|
2323
|
-
},
|
|
2323
|
+
}, ra = () => {
|
|
2324
2324
|
const { isSmallScreen: e } = _e();
|
|
2325
2325
|
return /* @__PURE__ */ O(Ae, { children: [
|
|
2326
|
-
/* @__PURE__ */ s(
|
|
2326
|
+
/* @__PURE__ */ s(fr, {}),
|
|
2327
2327
|
!e && /* @__PURE__ */ O(Ae, { children: [
|
|
2328
2328
|
/* @__PURE__ */ s(Yt, {}),
|
|
2329
2329
|
/* @__PURE__ */ s(En, {}),
|
|
2330
2330
|
/* @__PURE__ */ s(An, {}),
|
|
2331
2331
|
/* @__PURE__ */ s(en, {})
|
|
2332
2332
|
] }),
|
|
2333
|
-
/* @__PURE__ */ s(
|
|
2333
|
+
/* @__PURE__ */ s(na, {})
|
|
2334
2334
|
] });
|
|
2335
2335
|
}, ye = {
|
|
2336
2336
|
"rp-zoom-wrapper": "_rp-zoom-wrapper_163s9_1",
|
|
@@ -2338,13 +2338,13 @@ const ge = {
|
|
|
2338
2338
|
"rp-current-zoom-icon": "_rp-current-zoom-icon_163s9_11",
|
|
2339
2339
|
"rp-current-zoom": "_rp-current-zoom_163s9_6",
|
|
2340
2340
|
"rp-zoom-dropdown-content": "_rp-zoom-dropdown-content_163s9_20"
|
|
2341
|
-
},
|
|
2341
|
+
}, oa = 25, rt = 1e3, aa = [50, 75, 100, 125, 150, 200, 300, 400], sa = () => {
|
|
2342
2342
|
const { zoomInIcon: e } = ce();
|
|
2343
|
-
return e || /* @__PURE__ */ s(Ar, {});
|
|
2344
|
-
}, sa = () => {
|
|
2345
|
-
const { zoomOutIcon: e } = ce();
|
|
2346
2343
|
return e || /* @__PURE__ */ s(zr, {});
|
|
2347
2344
|
}, ia = () => {
|
|
2345
|
+
const { zoomOutIcon: e } = ce();
|
|
2346
|
+
return e || /* @__PURE__ */ s(Fr, {});
|
|
2347
|
+
}, ca = () => {
|
|
2348
2348
|
const { zoomLevel: e, setZoomLevel: t } = Ve(), { container: n, contentRef: r } = Le(), { zoomTool: o = !0 } = de(), { focusedPage: a } = oe(), { rotate: c } = Ge(), { pages: i } = ne(), { isSmallScreen: l } = _e(), p = R(() => {
|
|
2349
2349
|
t((v) => {
|
|
2350
2350
|
const C = Math.floor(v / 25) * 25;
|
|
@@ -2355,12 +2355,12 @@ const ge = {
|
|
|
2355
2355
|
const C = Math.ceil(v / 25) * 25;
|
|
2356
2356
|
return Math.min(C - 25, rt);
|
|
2357
2357
|
});
|
|
2358
|
-
}, [t]), f = A(() => e ===
|
|
2358
|
+
}, [t]), f = A(() => e === oa, [e]), u = A(() => e === rt, [e]), m = A(() => {
|
|
2359
2359
|
var v;
|
|
2360
2360
|
return (v = i.get(a)) == null ? void 0 : v.page.getViewport({ scale: 1, rotation: c });
|
|
2361
2361
|
}, [i, a, c]), g = R(
|
|
2362
2362
|
(v) => {
|
|
2363
|
-
const C = ((m == null ? void 0 : m.width) || 0) + 2 * It, y = ((m == null ? void 0 : m.height) || 0) + 2 * It, P = (r == null ? void 0 : r.clientWidth) || 0, L = (r == null ? void 0 : r.clientHeight) || 0, d =
|
|
2363
|
+
const C = ((m == null ? void 0 : m.width) || 0) + 2 * It, y = ((m == null ? void 0 : m.height) || 0) + 2 * It, P = (r == null ? void 0 : r.clientWidth) || 0, L = (r == null ? void 0 : r.clientHeight) || 0, d = kr(v, P, L, C, y);
|
|
2364
2364
|
t(d);
|
|
2365
2365
|
},
|
|
2366
2366
|
[t, m]
|
|
@@ -2371,7 +2371,7 @@ const ge = {
|
|
|
2371
2371
|
[t, g]
|
|
2372
2372
|
);
|
|
2373
2373
|
return typeof o != "boolean" ? /* @__PURE__ */ s(o, { zoomLevel: e, setZoomLevel: t }) : o ? /* @__PURE__ */ O("div", { className: ye["rp-zoom-wrapper"], children: [
|
|
2374
|
-
/* @__PURE__ */ s(ee, { content: "Zoom out", children: /* @__PURE__ */ s(X, { disabled: f, onClick: h, children: /* @__PURE__ */ s(
|
|
2374
|
+
/* @__PURE__ */ s(ee, { content: "Zoom out", children: /* @__PURE__ */ s(X, { disabled: f, onClick: h, children: /* @__PURE__ */ s(ia, {}) }) }),
|
|
2375
2375
|
!l && /* @__PURE__ */ s(
|
|
2376
2376
|
ft,
|
|
2377
2377
|
{
|
|
@@ -2392,14 +2392,14 @@ const ge = {
|
|
|
2392
2392
|
/* @__PURE__ */ s(he, { onClick: () => _(Be.PAGE_WIDTH), children: "Page width" })
|
|
2393
2393
|
] }),
|
|
2394
2394
|
/* @__PURE__ */ s(_t, {}),
|
|
2395
|
-
/* @__PURE__ */ s(Fe, { children:
|
|
2395
|
+
/* @__PURE__ */ s(Fe, { children: aa.map((v) => /* @__PURE__ */ O(he, { onClick: () => _(v), children: [
|
|
2396
2396
|
v,
|
|
2397
2397
|
" %"
|
|
2398
2398
|
] }, v)) })
|
|
2399
2399
|
] })
|
|
2400
2400
|
}
|
|
2401
2401
|
),
|
|
2402
|
-
/* @__PURE__ */ s(ee, { content: "Zoom in", children: /* @__PURE__ */ s(X, { disabled: u, onClick: p, children: /* @__PURE__ */ s(
|
|
2402
|
+
/* @__PURE__ */ s(ee, { content: "Zoom in", children: /* @__PURE__ */ s(X, { disabled: u, onClick: p, children: /* @__PURE__ */ s(sa, {}) }) })
|
|
2403
2403
|
] }) : null;
|
|
2404
2404
|
}, ie = {
|
|
2405
2405
|
"rp-search-tool-content": "_rp-search-tool-content_1vxow_1",
|
|
@@ -2412,8 +2412,8 @@ const ge = {
|
|
|
2412
2412
|
"rp-search-input": "_rp-search-input_1vxow_49"
|
|
2413
2413
|
}, Ut = () => {
|
|
2414
2414
|
const { searchIcon: e } = ce();
|
|
2415
|
-
return e || /* @__PURE__ */ s(
|
|
2416
|
-
},
|
|
2415
|
+
return e || /* @__PURE__ */ s(Wr, {});
|
|
2416
|
+
}, la = () => {
|
|
2417
2417
|
const { container: e } = Le(), [t, n] = W(!1), { pdf: r } = ne(), [o, a] = W(null), {
|
|
2418
2418
|
searchOptions: c,
|
|
2419
2419
|
setSearchOptions: i,
|
|
@@ -2481,7 +2481,7 @@ const ge = {
|
|
|
2481
2481
|
placeholder: "Enter to Search",
|
|
2482
2482
|
className: ie["rp-search-input"],
|
|
2483
2483
|
ref: a,
|
|
2484
|
-
children: !!v && /* @__PURE__ */ s("span", { className: ie["rp-search-tool-input-clear"], onClick: w, children: /* @__PURE__ */ s(
|
|
2484
|
+
children: !!v && /* @__PURE__ */ s("span", { className: ie["rp-search-tool-input-clear"], onClick: w, children: /* @__PURE__ */ s(Hr, {}) })
|
|
2485
2485
|
}
|
|
2486
2486
|
),
|
|
2487
2487
|
l ? /* @__PURE__ */ s("span", { children: /* @__PURE__ */ s(mt, {}) }) : /* @__PURE__ */ s("span", { children: T })
|
|
@@ -2505,15 +2505,15 @@ const ge = {
|
|
|
2505
2505
|
] })
|
|
2506
2506
|
}
|
|
2507
2507
|
) : null;
|
|
2508
|
-
},
|
|
2508
|
+
}, ua = "_loading_1snj5_1", Ce = {
|
|
2509
2509
|
"rp-loading-overlay": "_rp-loading-overlay_1snj5_1",
|
|
2510
2510
|
"rp-loading-modal": "_rp-loading-modal_1snj5_14",
|
|
2511
2511
|
"rp-loading-title": "_rp-loading-title_1snj5_27",
|
|
2512
2512
|
"rp-loading-progress-bar": "_rp-loading-progress-bar_1snj5_35",
|
|
2513
2513
|
"rp-loading-progress": "_rp-loading-progress_1snj5_35",
|
|
2514
2514
|
"rp-loading-cancel-button": "_rp-loading-cancel-button_1snj5_52",
|
|
2515
|
-
loading:
|
|
2516
|
-
},
|
|
2515
|
+
loading: ua
|
|
2516
|
+
}, da = ({ percentage: e }) => {
|
|
2517
2517
|
const { cancel: t } = wt();
|
|
2518
2518
|
return e < 1 ? null : /* @__PURE__ */ s("div", { className: Q(Ce["rp-loading-overlay"]), children: /* @__PURE__ */ O("div", { className: Q(Ce["rp-loading-modal"]), children: [
|
|
2519
2519
|
/* @__PURE__ */ s("div", { className: Q(Ce["rp-loading-title"]), children: "Preparing document..." }),
|
|
@@ -2526,18 +2526,18 @@ const ge = {
|
|
|
2526
2526
|
) }),
|
|
2527
2527
|
/* @__PURE__ */ s("button", { className: Q(Ce["rp-loading-cancel-button"]), onClick: t, children: "Cancel" })
|
|
2528
2528
|
] }) });
|
|
2529
|
-
},
|
|
2529
|
+
}, pa = $e((e, t) => {
|
|
2530
2530
|
const { showPrintProgress: n } = de(), { progress: r } = wt(), { isSmallScreen: o } = _e(), { percentage: a } = r || {}, c = () => o ? { gridTemplateColumns: "25% 60% 15%" } : void 0;
|
|
2531
2531
|
return /* @__PURE__ */ O("div", { children: [
|
|
2532
2532
|
/* @__PURE__ */ s("div", { "data-rp": "topBar", ref: t, className: Se["rp-toolbar-content"], children: /* @__PURE__ */ O("div", { className: Se["rp-toolbar-wrapper"], style: c(), children: [
|
|
2533
2533
|
/* @__PURE__ */ O("div", { "data-rp": "topBarLeft", className: Se["rp-toolbar-start"], children: [
|
|
2534
|
-
/* @__PURE__ */ s(
|
|
2535
|
-
/* @__PURE__ */ s(
|
|
2534
|
+
/* @__PURE__ */ s(la, {}),
|
|
2535
|
+
/* @__PURE__ */ s(Io, {})
|
|
2536
2536
|
] }),
|
|
2537
|
-
/* @__PURE__ */ s("div", { "data-rp": "topBarCenter", className: Se["rp-toolbar-middle"], children: /* @__PURE__ */ s(
|
|
2538
|
-
/* @__PURE__ */ s("div", { "data-rp": "topBarRight", className: Se["rp-toolbar-end"], children: /* @__PURE__ */ s(
|
|
2537
|
+
/* @__PURE__ */ s("div", { "data-rp": "topBarCenter", className: Se["rp-toolbar-middle"], children: /* @__PURE__ */ s(ca, {}) }),
|
|
2538
|
+
/* @__PURE__ */ s("div", { "data-rp": "topBarRight", className: Se["rp-toolbar-end"], children: /* @__PURE__ */ s(ra, {}) })
|
|
2539
2539
|
] }) }),
|
|
2540
|
-
n && a ? /* @__PURE__ */ s(
|
|
2540
|
+
n && a ? /* @__PURE__ */ s(da, { percentage: a }) : null
|
|
2541
2541
|
] });
|
|
2542
2542
|
}), ot = {
|
|
2543
2543
|
"rp-sidebar-content-wrapper": "_rp-sidebar-content-wrapper_4wlw3_1",
|
|
@@ -2550,7 +2550,7 @@ const ge = {
|
|
|
2550
2550
|
"rp-thumbnail": "_rp-thumbnail_3fenb_1",
|
|
2551
2551
|
"rp-thumbnail-active": "_rp-thumbnail-active_3fenb_22",
|
|
2552
2552
|
"rp-thumbnail-loader": "_rp-thumbnail-loader_3fenb_31"
|
|
2553
|
-
},
|
|
2553
|
+
}, ha = (e) => {
|
|
2554
2554
|
const { thumbnailSrc: t, pageNumber: n, isFocused: r, viewport: o } = e, { goToPage: a } = oe(), c = A(() => r ? Ie["rp-thumbnail-active"] : "", [r]), i = A(() => ({
|
|
2555
2555
|
width: Math.round(o.width),
|
|
2556
2556
|
height: Math.round(o.height)
|
|
@@ -2590,10 +2590,10 @@ const ge = {
|
|
|
2590
2590
|
}, qt = {
|
|
2591
2591
|
"rp-thumbnails-container": "_rp-thumbnails-container_16vqr_1",
|
|
2592
2592
|
"rp-thumbnails": "_rp-thumbnails_16vqr_1"
|
|
2593
|
-
},
|
|
2593
|
+
}, ma = 16, fa = (e, t) => {
|
|
2594
2594
|
const n = e == null ? void 0 : e.querySelector(`#page-${t}`);
|
|
2595
|
-
e && (n != null && n.offsetTop) && (e.scrollTop = (n == null ? void 0 : n.offsetTop) -
|
|
2596
|
-
},
|
|
2595
|
+
e && (n != null && n.offsetTop) && (e.scrollTop = (n == null ? void 0 : n.offsetTop) - ma);
|
|
2596
|
+
}, ga = $e((e, t) => {
|
|
2597
2597
|
const { show: n } = e, { focusedPage: r, totalPages: o } = oe(), { thumbnailPages: a, addPage: c, thumbnailLength: i, addToPage: l } = sn(), p = $(null), h = $(1);
|
|
2598
2598
|
Zt(t, () => p.current);
|
|
2599
2599
|
const f = A(() => Object.values(a), [a]), u = R(() => {
|
|
@@ -2601,11 +2601,11 @@ const ge = {
|
|
|
2601
2601
|
m <= o && c(m);
|
|
2602
2602
|
}, [c, o, i]);
|
|
2603
2603
|
return F(() => {
|
|
2604
|
-
r > i ? l(r) : n && h.current !== r && (
|
|
2604
|
+
r > i ? l(r) : n && h.current !== r && (fa(p.current, r), h.current = r);
|
|
2605
2605
|
}, [r, i, l, n, f]), Qn(p.current, u), /* @__PURE__ */ s("div", { ref: p, className: qt["rp-thumbnails-container"], children: /* @__PURE__ */ s("div", { className: qt["rp-thumbnails"], children: n ? f.map((m, g) => {
|
|
2606
2606
|
var _, v;
|
|
2607
2607
|
return /* @__PURE__ */ s(
|
|
2608
|
-
|
|
2608
|
+
ha,
|
|
2609
2609
|
{
|
|
2610
2610
|
isFocused: r === ((_ = m.page) == null ? void 0 : _.pageNumber),
|
|
2611
2611
|
pageNumber: (v = m.page) == null ? void 0 : v.pageNumber,
|
|
@@ -2616,13 +2616,13 @@ const ge = {
|
|
|
2616
2616
|
g
|
|
2617
2617
|
);
|
|
2618
2618
|
}) : null }) });
|
|
2619
|
-
}),
|
|
2619
|
+
}), va = () => {
|
|
2620
2620
|
const { thumbnailIcon: e } = ce();
|
|
2621
2621
|
return e || /* @__PURE__ */ s(Yn, {});
|
|
2622
|
-
},
|
|
2622
|
+
}, _a = () => {
|
|
2623
2623
|
const { active: e, setActive: t } = sn(), [n, r] = W(200), o = $(null), { thumbnailTool: a } = de(), c = R(() => {
|
|
2624
2624
|
t((l) => !l);
|
|
2625
|
-
}, []), i = A(() => typeof a != "boolean" && a ? /* @__PURE__ */ s(a, { onClick: c, active: e }) : a ? /* @__PURE__ */ s(ee, { content: "Thumbnail", children: /* @__PURE__ */ s(X, { onClick: c, active: e, children: /* @__PURE__ */ s(
|
|
2625
|
+
}, []), i = A(() => typeof a != "boolean" && a ? /* @__PURE__ */ s(a, { onClick: c, active: e }) : a ? /* @__PURE__ */ s(ee, { content: "Thumbnail", children: /* @__PURE__ */ s(X, { onClick: c, active: e, children: /* @__PURE__ */ s(va, {}) }) }) : null, [a, e, c]);
|
|
2626
2626
|
return /* @__PURE__ */ O(
|
|
2627
2627
|
"div",
|
|
2628
2628
|
{
|
|
@@ -2632,76 +2632,76 @@ const ge = {
|
|
|
2632
2632
|
children: [
|
|
2633
2633
|
/* @__PURE__ */ s("div", { className: ot["rp-sidebar-content"], children: i }),
|
|
2634
2634
|
/* @__PURE__ */ O("div", { "data-rp": "thumbnailSidebar", hidden: !e, className: ot["rp-thumbnails-wrapper"], children: [
|
|
2635
|
-
/* @__PURE__ */ s(
|
|
2635
|
+
/* @__PURE__ */ s(ga, { show: e, ref: o }),
|
|
2636
2636
|
/* @__PURE__ */ s(er, { onWidthChange: r, thumbnailRef: o })
|
|
2637
2637
|
] })
|
|
2638
2638
|
]
|
|
2639
2639
|
}
|
|
2640
2640
|
);
|
|
2641
|
-
},
|
|
2642
|
-
const { children: n, slots: r, icons: o, style: a, className: c,
|
|
2643
|
-
return F(() => (
|
|
2644
|
-
|
|
2645
|
-
}), [
|
|
2641
|
+
}, Ks = $e((e, t) => {
|
|
2642
|
+
const { children: n, slots: r, icons: o, style: a, className: c, mobileWidth: i, onLoaded: l, cleanupOnLoaded: p } = e, [h, f] = W(null), { setContainer: u, setContentRef: m } = Le();
|
|
2643
|
+
return F(() => (l && l(), () => {
|
|
2644
|
+
p && p();
|
|
2645
|
+
}), [l, p]), /* @__PURE__ */ s("div", { ref: t, className: Q(we["rp-theme-variables"], we["rp-container"]), children: /* @__PURE__ */ s(sr, { mobileWidth: i, children: /* @__PURE__ */ s(tr, { slots: r, children: /* @__PURE__ */ s(nr, { icons: o, children: /* @__PURE__ */ s(
|
|
2646
2646
|
rr,
|
|
2647
2647
|
{
|
|
2648
|
-
getContainerRef:
|
|
2649
|
-
toolbarRef:
|
|
2648
|
+
getContainerRef: u,
|
|
2649
|
+
toolbarRef: h,
|
|
2650
2650
|
style: a,
|
|
2651
2651
|
className: c,
|
|
2652
2652
|
children: /* @__PURE__ */ O(or, { children: [
|
|
2653
2653
|
/* @__PURE__ */ O("div", { className: we["rp-layout"], children: [
|
|
2654
|
-
/* @__PURE__ */ s(
|
|
2654
|
+
/* @__PURE__ */ s(pa, { ref: f }),
|
|
2655
2655
|
/* @__PURE__ */ O("div", { className: we["rp-content"], children: [
|
|
2656
|
-
/* @__PURE__ */ s("div", { className: we["rp-sidebar"], children: /* @__PURE__ */ s(
|
|
2657
|
-
/* @__PURE__ */ s("div", { ref:
|
|
2656
|
+
/* @__PURE__ */ s("div", { className: we["rp-sidebar"], children: /* @__PURE__ */ s(_a, {}) }),
|
|
2657
|
+
/* @__PURE__ */ s("div", { ref: m, className: we["rp-pages"], children: n })
|
|
2658
2658
|
] })
|
|
2659
2659
|
] }),
|
|
2660
2660
|
/* @__PURE__ */ s(ar, {})
|
|
2661
2661
|
] })
|
|
2662
2662
|
}
|
|
2663
|
-
) }) }) });
|
|
2663
|
+
) }) }) }) });
|
|
2664
2664
|
});
|
|
2665
2665
|
export {
|
|
2666
|
-
|
|
2667
|
-
|
|
2668
|
-
|
|
2669
|
-
|
|
2670
|
-
|
|
2666
|
+
eo as A,
|
|
2667
|
+
ha as B,
|
|
2668
|
+
qr as C,
|
|
2669
|
+
Co as D,
|
|
2670
|
+
ga as E,
|
|
2671
2671
|
En as F,
|
|
2672
|
-
|
|
2673
|
-
|
|
2674
|
-
|
|
2675
|
-
|
|
2676
|
-
|
|
2677
|
-
|
|
2678
|
-
|
|
2679
|
-
|
|
2680
|
-
|
|
2681
|
-
|
|
2682
|
-
|
|
2683
|
-
|
|
2672
|
+
_a as G,
|
|
2673
|
+
da as L,
|
|
2674
|
+
ta as M,
|
|
2675
|
+
na as O,
|
|
2676
|
+
Gs as P,
|
|
2677
|
+
Zs as R,
|
|
2678
|
+
qs as S,
|
|
2679
|
+
Us as T,
|
|
2680
|
+
ca as Z,
|
|
2681
|
+
Vs as a,
|
|
2682
|
+
Ks as b,
|
|
2683
|
+
jo as c,
|
|
2684
2684
|
wt as d,
|
|
2685
2685
|
ln as e,
|
|
2686
2686
|
nn as f,
|
|
2687
|
-
|
|
2687
|
+
$r as g,
|
|
2688
2688
|
rn as h,
|
|
2689
|
-
|
|
2689
|
+
Gr as i,
|
|
2690
2690
|
on as j,
|
|
2691
|
-
|
|
2691
|
+
Vr as k,
|
|
2692
2692
|
an as l,
|
|
2693
2693
|
sn as m,
|
|
2694
|
-
|
|
2694
|
+
Ur as n,
|
|
2695
2695
|
cn as o,
|
|
2696
|
-
|
|
2696
|
+
Zr as p,
|
|
2697
2697
|
bt as q,
|
|
2698
|
-
|
|
2699
|
-
|
|
2700
|
-
|
|
2698
|
+
_o as r,
|
|
2699
|
+
Po as s,
|
|
2700
|
+
Io as t,
|
|
2701
2701
|
oe as u,
|
|
2702
|
-
|
|
2702
|
+
Vo as v,
|
|
2703
2703
|
An as w,
|
|
2704
|
-
|
|
2705
|
-
|
|
2706
|
-
|
|
2704
|
+
ra as x,
|
|
2705
|
+
la as y,
|
|
2706
|
+
pa as z
|
|
2707
2707
|
};
|