@react-pdf-kit/viewer 0.0.0-experimental.1 → 0.0.0-experimental.3
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/README.md +84 -49
- package/dist/{Combination-54a77a7a.js → Combination-479e39c6.js} +2 -2
- package/dist/assets/style.css +1 -1
- package/dist/assets/style.js +8 -8
- package/dist/components/RPConfig.js +5 -7
- package/dist/components/RPController.js +76 -77
- package/dist/components/RPDropFileZone.js +4 -3
- package/dist/components/RPPages.js +577 -573
- package/dist/components/RPProvider.js +2 -2
- package/dist/components/layout/RPDefaultLayout.js +10 -9
- package/dist/components/layout/RPLayout.js +10 -9
- package/dist/components/layout/WrapperLayout.js +4 -3
- package/dist/components/layout/sidebar/RPSidebar.js +8 -7
- package/dist/components/layout/sidebar/Thumbnail.js +4 -3
- package/dist/components/layout/sidebar/Thumbnails.js +4 -3
- package/dist/components/layout/toolbar/DarkModeTool.js +4 -4
- package/dist/components/layout/toolbar/DocumentDialog.js +43 -34
- package/dist/components/layout/toolbar/DocumentProperties.js +6 -6
- package/dist/components/layout/toolbar/FileDownloadTool.js +10 -9
- package/dist/components/layout/toolbar/FileUploadTool.js +10 -9
- package/dist/components/layout/toolbar/FullScreenTool.js +6 -6
- package/dist/components/layout/toolbar/MenuItem.js +6 -6
- package/dist/components/layout/toolbar/MenuSeparator.js +6 -6
- package/dist/components/layout/toolbar/MostPageTool.js +10 -9
- package/dist/components/layout/toolbar/OtherTool.js +10 -9
- package/dist/components/layout/toolbar/Paginate.js +8 -7
- package/dist/components/layout/toolbar/PrintTool.js +10 -9
- package/dist/components/layout/toolbar/RPMenuItem.js +6 -6
- package/dist/components/layout/toolbar/RPMoreOptions.js +10 -9
- package/dist/components/layout/toolbar/RPToolbar.js +10 -9
- package/dist/components/layout/toolbar/RPToolbarEnd.js +10 -9
- package/dist/components/layout/toolbar/RotateTool.js +10 -9
- package/dist/components/layout/toolbar/ScrollModeTool.js +6 -6
- package/dist/components/layout/toolbar/SearchCloseButton.js +4 -4
- package/dist/components/layout/toolbar/SearchResultNavigator.js +23 -30
- package/dist/components/layout/toolbar/SearchTool.js +104 -100
- package/dist/components/layout/toolbar/SelectionModeTool.js +6 -6
- package/dist/components/layout/toolbar/ThumbnailTool.js +8 -7
- package/dist/components/layout/toolbar/ToolbarCustom.js +4 -3
- package/dist/components/layout/toolbar/ToolbarDefault.js +10 -9
- package/dist/components/layout/toolbar/ToolbarLayout.js +10 -9
- package/dist/components/layout/toolbar/ViewModeTool.js +6 -6
- package/dist/components/layout/toolbar/ZoomTool.js +10 -9
- package/dist/components/layout/toolbar/tools/DocumentPropertiesTool.js +9 -8
- package/dist/components/layout/toolbar/tools/DualPageTool.js +4 -4
- package/dist/components/layout/toolbar/tools/DualPageWithCoverTool.js +10 -11
- package/dist/components/layout/toolbar/tools/FileDownloadTool.js +8 -7
- package/dist/components/layout/toolbar/tools/FileUploadTool.js +8 -7
- package/dist/components/layout/toolbar/tools/FirstPageTool.js +10 -11
- package/dist/components/layout/toolbar/tools/FullScreenTool.js +4 -4
- package/dist/components/layout/toolbar/tools/HorizontalScrollingTool.js +4 -4
- package/dist/components/layout/toolbar/tools/InputPageTool.js +8 -7
- package/dist/components/layout/toolbar/tools/LastPageTool.js +10 -11
- package/dist/components/layout/toolbar/tools/NextPageTool.js +8 -7
- package/dist/components/layout/toolbar/tools/PageScrollingTool.js +4 -4
- package/dist/components/layout/toolbar/tools/PreviousPageTool.js +8 -7
- package/dist/components/layout/toolbar/tools/PrintTool.js +8 -7
- package/dist/components/layout/toolbar/tools/RotateClockwiseTool.js +8 -7
- package/dist/components/layout/toolbar/tools/RotateCounterclockwiseTool.js +8 -7
- package/dist/components/layout/toolbar/tools/SelectionModeSwitcherTool.js +4 -4
- package/dist/components/layout/toolbar/tools/SinglePageTool.js +4 -4
- package/dist/components/layout/toolbar/tools/ThemeSwitcherTool.js +4 -4
- package/dist/components/layout/toolbar/tools/ThumbnailTool.js +8 -7
- package/dist/components/layout/toolbar/tools/VerticalScrollingTool.js +4 -4
- package/dist/components/layout/toolbar/tools/ZoomInTool.js +8 -7
- package/dist/components/layout/toolbar/tools/ZoomLevelTool.js +20 -19
- package/dist/components/layout/toolbar/tools/ZoomOutTool.js +8 -7
- package/dist/components/layout/toolbar/tools/defaults/RPHorizontalBar.js +10 -9
- package/dist/components/layout/toolbar/tools/defaults/RPVerticalBar.js +8 -7
- package/dist/components/layout/toolbar/tools/more-options/DocumentProperties.js +6 -6
- package/dist/components/layout/toolbar/tools/more-options/FileDownloadTool.js +10 -9
- package/dist/components/layout/toolbar/tools/more-options/FileUploadTool.js +10 -9
- package/dist/components/layout/toolbar/tools/more-options/FullScreenTool.js +6 -6
- package/dist/components/layout/toolbar/tools/more-options/MostPageTool.js +10 -9
- package/dist/components/layout/toolbar/tools/more-options/PrintTool.js +10 -9
- package/dist/components/layout/toolbar/tools/more-options/RotateTool.js +10 -9
- package/dist/components/layout/toolbar/tools/more-options/ScrollModeTool.js +6 -6
- package/dist/components/layout/toolbar/tools/more-options/SelectionModeTool.js +6 -6
- package/dist/components/layout/toolbar/tools/more-options/ViewModeTool.js +6 -6
- package/dist/components/page/AnnotationLayer.js +25 -24
- package/dist/components/page/CanvasLayer.js +38 -54
- package/dist/components/page/CustomElement.js +4 -3
- package/dist/components/page/DualPage.js +2 -2
- package/dist/components/page/DualPageWithCover.js +2 -2
- package/dist/components/page/RPPage.js +35 -35
- package/dist/components/page/SinglePage.js +2 -2
- package/dist/components/page/TextHighlightLayer.js +16 -15
- package/dist/components/page/TextLayer.js +27 -28
- package/dist/components/ui/Checkbox.js +2 -2
- package/dist/components/ui/DropDown.js +6 -6
- package/dist/components/ui/Input.js +10 -10
- package/dist/components/ui/LoadingIndicator.js +8 -7
- package/dist/components/ui/RPTooltip.js +197 -411
- package/dist/contexts/DimensionPagesContext.js +28 -56
- package/dist/contexts/DropFileZoneContext.js +5 -4
- package/dist/contexts/ElementPageContext.js +6 -5
- package/dist/contexts/FileInputContext.js +6 -5
- package/dist/contexts/HighlightContext.js +6 -5
- package/dist/contexts/InitialStateContext.js +6 -8
- package/dist/contexts/PagesRotateContext.js +6 -5
- package/dist/contexts/PaginationContext.js +6 -5
- package/dist/contexts/PrintContext.js +17 -16
- package/dist/contexts/RPDocumentContext.js +14 -13
- package/dist/contexts/RenderQueueProvider.js +14 -13
- package/dist/contexts/RotationContext.js +9 -8
- package/dist/contexts/SearchContext.js +6 -5
- package/dist/contexts/ThumbnailsContext.js +5 -4
- package/dist/contexts/ZoomContext.js +6 -5
- package/dist/{index-c0faa594.js → index-113053cf.js} +2 -2
- package/dist/{index-e3ee9457.js → index-23911b43.js} +6 -6
- package/dist/index-535ad364.js +983 -0
- package/dist/{index-655864a7.js → index-ada501c4.js} +1 -1
- package/dist/index-d0f0aa9a.js +1542 -0
- package/dist/main.js +47 -47
- package/dist/types/components/layout/sidebar/Thumbnail.d.ts +2 -2
- package/dist/types/contexts/RPDocumentContext.d.ts +1 -1
- package/dist/types/contexts/RenderQueueProvider.d.ts +1 -2
- package/dist/types/contexts/RenderedPagesCache.d.ts +2 -2
- package/dist/types/main.d.ts +3 -1
- package/dist/types/utils/annotations.d.ts +2 -2
- package/dist/types/utils/getThumbnailViewport.d.ts +2 -2
- package/dist/types/utils/highlight.d.ts +5 -5
- package/dist/types/utils/hooks/useHighlight.d.ts +1 -1
- package/dist/types/utils/hooks/useLoadPdf.d.ts +2 -2
- package/dist/types/utils/hooks/useLoadWorker.d.ts +5 -1
- package/dist/types/utils/hooks/usePdfProperties.d.ts +1 -1
- package/dist/types/utils/hooks/useWatermark.d.ts +1 -1
- package/dist/types/utils/link_service.d.ts +2 -3
- package/dist/types/utils/renderPage.d.ts +2 -2
- package/dist/types/utils/types.d.ts +7 -8
- package/dist/utils/highlight.js +36 -36
- package/dist/utils/hooks/useFileDownload.js +6 -5
- package/dist/utils/hooks/useHighlight.js +78 -40
- package/dist/utils/hooks/useLicense.js +1 -1
- package/dist/utils/hooks/useLoadPdf.js +96 -70
- package/dist/utils/hooks/useLoadWorker.js +4 -14
- package/dist/utils/hooks/usePageRotateContext.js +8 -7
- package/dist/utils/hooks/usePaginate.js +4 -3
- package/dist/utils/hooks/usePinch.js +44 -90
- package/dist/utils/hooks/usePresentPage.js +4 -3
- package/dist/utils/hooks/usePrint.js +71 -72
- package/dist/utils/hooks/useRotate.js +4 -3
- package/dist/utils/hooks/useScrollToPage.js +4 -3
- package/dist/utils/hooks/useSearch.js +16 -15
- package/dist/utils/hooks/useThumbnail.js +18 -17
- package/dist/utils/hooks/useVirtualReactWindow.js +4 -3
- package/dist/utils/hooks/useWatermark.js +43 -61
- package/dist/utils/injectPrintCSS.js +4 -3
- package/dist/utils/link_service.js +18 -19
- package/dist/utils/renderPage.js +14 -14
- package/package.json +2 -3
- package/dist/contexts/SmoothScaleContext.js +0 -67
- package/dist/floating-ui.react-dom-5ec29bd6.js +0 -1327
- package/dist/index-4baea9b5.js +0 -1198
- package/dist/types/contexts/SmoothScaleContext.d.ts +0 -16
- package/dist/types/utils/hooks/useAccumulateFactor.d.ts +0 -9
- package/dist/utils/hooks/useAccumulateFactor.js +0 -17
|
@@ -13,7 +13,8 @@ import { combinedCSS as D } from "../assets/style.js";
|
|
|
13
13
|
import { injectGlobalCSS as E } from "../libInjectCss.js";
|
|
14
14
|
import { injectPrintCSS as R } from "../utils/injectPrintCSS.js";
|
|
15
15
|
import "../utils/hooks/useLoadPdf.js";
|
|
16
|
-
import "
|
|
16
|
+
import "@pdf-viewer/pdfium";
|
|
17
|
+
import "@pdf-viewer/pdfium/compat";
|
|
17
18
|
import "../utils/types.js";
|
|
18
19
|
import "../de_DE-a553b162.js";
|
|
19
20
|
import "../utils/getThumbnailViewport.js";
|
|
@@ -73,7 +74,6 @@ import "../utils/getElementPositionInPage.js";
|
|
|
73
74
|
import "../contexts/RenderQueueProvider.js";
|
|
74
75
|
import "../utils/Queue.js";
|
|
75
76
|
import "../utils/renderPage.js";
|
|
76
|
-
import "../contexts/SmoothScaleContext.js";
|
|
77
77
|
import "./icons/LoaderIcon.js";
|
|
78
78
|
import "../clsx-0c6e471a.js";
|
|
79
79
|
const to = (i) => {
|
|
@@ -45,11 +45,11 @@ import "../../contexts/SmoothScrollContext.js";
|
|
|
45
45
|
import "../../utils/getScrollDistance.js";
|
|
46
46
|
import "../../utils/calculatePage.js";
|
|
47
47
|
import "../ui/RPTooltip.js";
|
|
48
|
-
import "../../index-
|
|
48
|
+
import "../../index-113053cf.js";
|
|
49
49
|
import "react-dom";
|
|
50
|
-
import "../../index-
|
|
51
|
-
import "../../
|
|
52
|
-
import "../../index-
|
|
50
|
+
import "../../index-23911b43.js";
|
|
51
|
+
import "../../index-d0f0aa9a.js";
|
|
52
|
+
import "../../index-ada501c4.js";
|
|
53
53
|
import "../../contexts/LocalizationContext.js";
|
|
54
54
|
import "../../utils/hooks/useLocalization.js";
|
|
55
55
|
import "../../contexts/IconToolContext.js";
|
|
@@ -58,8 +58,8 @@ import "./toolbar/RPToolbarEnd.js";
|
|
|
58
58
|
import "./toolbar/FileUploadTool.js";
|
|
59
59
|
import "../icons/FileUploadDefaultIcon.js";
|
|
60
60
|
import "./toolbar/MenuItem.js";
|
|
61
|
-
import "../../index-
|
|
62
|
-
import "../../Combination-
|
|
61
|
+
import "../../index-535ad364.js";
|
|
62
|
+
import "../../Combination-479e39c6.js";
|
|
63
63
|
import "../../contexts/FileInputContext.js";
|
|
64
64
|
import "../../contexts/DocumentPasswordContext.js";
|
|
65
65
|
import "./toolbar/DarkModeTool.js";
|
|
@@ -100,7 +100,7 @@ import "./toolbar/PrintTool.js";
|
|
|
100
100
|
import "../icons/PrintDefaultIcon.js";
|
|
101
101
|
import "../../contexts/PrintContext.js";
|
|
102
102
|
import "../../utils/hooks/usePrint.js";
|
|
103
|
-
import "
|
|
103
|
+
import "@pdf-viewer/pdfium/compat";
|
|
104
104
|
import "./toolbar/FullScreenTool.js";
|
|
105
105
|
import "../../contexts/FullScreenContext.js";
|
|
106
106
|
import "../../utils/hooks/useFullScreen.js";
|
|
@@ -147,12 +147,13 @@ import "../../contexts/DropFileZoneContext.js";
|
|
|
147
147
|
import "../icons/LightPdfIcon.js";
|
|
148
148
|
import "../icons/DarkPdfIcon.js";
|
|
149
149
|
import "../../utils/hooks/useLoadPdf.js";
|
|
150
|
+
import "@pdf-viewer/pdfium";
|
|
150
151
|
import "../../contexts/ConfigContext.js";
|
|
151
152
|
import "../../utils/hooks/usePdfProperties.js";
|
|
152
153
|
import "../../utils/convertPdfDate.js";
|
|
153
154
|
import "../../utils/formatFileSize.js";
|
|
154
155
|
import "../../contexts/ThemeContext.js";
|
|
155
|
-
const
|
|
156
|
+
const Ft = L((n, a) => {
|
|
156
157
|
const {
|
|
157
158
|
children: l,
|
|
158
159
|
slots: s,
|
|
@@ -234,5 +235,5 @@ const kt = L((n, a) => {
|
|
|
234
235
|
] }) }) }) }) });
|
|
235
236
|
});
|
|
236
237
|
export {
|
|
237
|
-
|
|
238
|
+
Ft as RPDefaultLayout
|
|
238
239
|
};
|
|
@@ -42,7 +42,7 @@ import "../../utils/calculatePage.js";
|
|
|
42
42
|
import "../../contexts/RenderQueueProvider.js";
|
|
43
43
|
import "../../utils/Queue.js";
|
|
44
44
|
import "../../utils/renderPage.js";
|
|
45
|
-
import "
|
|
45
|
+
import "@pdf-viewer/pdfium/compat";
|
|
46
46
|
import "../../contexts/ThumbnailsContext.js";
|
|
47
47
|
import "../../utils/hooks/useThumbnail.js";
|
|
48
48
|
import "../../utils/getThumbnailViewport.js";
|
|
@@ -56,11 +56,11 @@ import "./toolbar/ThumbnailTool.js";
|
|
|
56
56
|
import "../icons/Thumbnail.js";
|
|
57
57
|
import "../ui/Button.js";
|
|
58
58
|
import "../ui/RPTooltip.js";
|
|
59
|
-
import "../../index-
|
|
59
|
+
import "../../index-113053cf.js";
|
|
60
60
|
import "react-dom";
|
|
61
|
-
import "../../index-
|
|
62
|
-
import "../../
|
|
63
|
-
import "../../index-
|
|
61
|
+
import "../../index-23911b43.js";
|
|
62
|
+
import "../../index-d0f0aa9a.js";
|
|
63
|
+
import "../../index-ada501c4.js";
|
|
64
64
|
import "../../contexts/LocalizationContext.js";
|
|
65
65
|
import "../../utils/hooks/useLocalization.js";
|
|
66
66
|
import "./toolbar/tools/defaults/RPHorizontalBar.js";
|
|
@@ -83,8 +83,8 @@ import "../icons/ChevronUpIcon.js";
|
|
|
83
83
|
import "./toolbar/SearchCloseButton.js";
|
|
84
84
|
import "../icons/CloseIcon.js";
|
|
85
85
|
import "../ui/DropDown.js";
|
|
86
|
-
import "../../index-
|
|
87
|
-
import "../../Combination-
|
|
86
|
+
import "../../index-535ad364.js";
|
|
87
|
+
import "../../Combination-479e39c6.js";
|
|
88
88
|
import "./toolbar/Paginate.js";
|
|
89
89
|
import "../../Paginate.module-4eef00aa.js";
|
|
90
90
|
import "./toolbar/ZoomTool.js";
|
|
@@ -150,6 +150,7 @@ import "../../RPSplitter-f6acf13b.js";
|
|
|
150
150
|
import "./toolbar/ToolbarCustom.js";
|
|
151
151
|
import "../../contexts/DropFileZoneContext.js";
|
|
152
152
|
import "../../utils/hooks/useLoadPdf.js";
|
|
153
|
+
import "@pdf-viewer/pdfium";
|
|
153
154
|
import "../../contexts/ConfigContext.js";
|
|
154
155
|
import "../../utils/hooks/usePdfProperties.js";
|
|
155
156
|
import "../../utils/convertPdfDate.js";
|
|
@@ -157,7 +158,7 @@ import "../../utils/formatFileSize.js";
|
|
|
157
158
|
import "../icons/LightPdfIcon.js";
|
|
158
159
|
import "../icons/DarkPdfIcon.js";
|
|
159
160
|
import "../../contexts/ThemeContext.js";
|
|
160
|
-
const
|
|
161
|
+
const wr = (e) => {
|
|
161
162
|
const {
|
|
162
163
|
children: n,
|
|
163
164
|
style: a,
|
|
@@ -209,5 +210,5 @@ const vr = (e) => {
|
|
|
209
210
|
] }) }) });
|
|
210
211
|
};
|
|
211
212
|
export {
|
|
212
|
-
|
|
213
|
+
wr as RPLayout
|
|
213
214
|
};
|
|
@@ -5,7 +5,8 @@ import { useToolComponentContext as a } from "../../contexts/ToolComponentContex
|
|
|
5
5
|
import "react";
|
|
6
6
|
import "../../contexts/RPDocumentContext.js";
|
|
7
7
|
import "../../utils/hooks/useLoadPdf.js";
|
|
8
|
-
import "
|
|
8
|
+
import "@pdf-viewer/pdfium";
|
|
9
|
+
import "@pdf-viewer/pdfium/compat";
|
|
9
10
|
import "../../utils/types.js";
|
|
10
11
|
import "../../de_DE-a553b162.js";
|
|
11
12
|
import "../../utils/getThumbnailViewport.js";
|
|
@@ -17,10 +18,10 @@ import "../../utils/convertPdfDate.js";
|
|
|
17
18
|
import "../../utils/formatFileSize.js";
|
|
18
19
|
const s = {
|
|
19
20
|
"rp-wrapper-layout": "_rp-wrapper-layout_2cghq_1"
|
|
20
|
-
},
|
|
21
|
+
}, q = ({ children: o }) => {
|
|
21
22
|
const { handleDragEnter: m } = n(), { dropFileZone: t } = i(), { dropFileZone: p } = a();
|
|
22
23
|
return typeof t == "boolean" && !t ? /* @__PURE__ */ r(e, { children: o }) : typeof p == "boolean" && !p ? /* @__PURE__ */ r(e, { children: o }) : /* @__PURE__ */ r("div", { className: s["rp-wrapper-layout"], onDragEnter: m, children: o });
|
|
23
24
|
};
|
|
24
25
|
export {
|
|
25
|
-
|
|
26
|
+
q as WrapperLayout
|
|
26
27
|
};
|
|
@@ -24,7 +24,8 @@ import "../../../utils/appConsole.js";
|
|
|
24
24
|
import "../../../contexts/InitialStateContext.js";
|
|
25
25
|
import "../../../contexts/RPDocumentContext.js";
|
|
26
26
|
import "../../../utils/hooks/useLoadPdf.js";
|
|
27
|
-
import "
|
|
27
|
+
import "@pdf-viewer/pdfium";
|
|
28
|
+
import "@pdf-viewer/pdfium/compat";
|
|
28
29
|
import "../../../utils/getThumbnailViewport.js";
|
|
29
30
|
import "../../../contexts/ConfigContext.js";
|
|
30
31
|
import "../../../contexts/DocumentPasswordContext.js";
|
|
@@ -51,16 +52,16 @@ import "../../../utils/Queue.js";
|
|
|
51
52
|
import "../../../utils/renderPage.js";
|
|
52
53
|
import "../../../utils/hooks/useInfiniteScroll.js";
|
|
53
54
|
import "../../../utils/hooks/useThumbnail.js";
|
|
54
|
-
import "../../../index-
|
|
55
|
+
import "../../../index-113053cf.js";
|
|
55
56
|
import "react-dom";
|
|
56
|
-
import "../../../index-
|
|
57
|
-
import "../../../
|
|
58
|
-
import "../../../index-
|
|
57
|
+
import "../../../index-23911b43.js";
|
|
58
|
+
import "../../../index-d0f0aa9a.js";
|
|
59
|
+
import "../../../index-ada501c4.js";
|
|
59
60
|
import "../../../utils/hooks/useLocalization.js";
|
|
60
61
|
const $ = () => {
|
|
61
62
|
const { thumbnailIcon: o } = k(), { thumbnailIcon: p } = P();
|
|
62
63
|
return o || p || /* @__PURE__ */ t(x, {});
|
|
63
|
-
},
|
|
64
|
+
}, _t = () => {
|
|
64
65
|
const { active: o, setActive: p } = N(), [c, u] = T(W), e = s(null), a = s(null), { thumbnailTool: i, sidebarEnable: h } = S(), { localeMessages: r } = B(), n = C(() => {
|
|
65
66
|
p((d) => !d);
|
|
66
67
|
}, []), b = I(() => typeof i != "boolean" && i ? /* @__PURE__ */ t(i, { onClick: n, active: o }) : i ? /* @__PURE__ */ t(y, { content: r == null ? void 0 : r.thumbnailTooltip, children: /* @__PURE__ */ t(
|
|
@@ -103,5 +104,5 @@ const $ = () => {
|
|
|
103
104
|
) });
|
|
104
105
|
};
|
|
105
106
|
export {
|
|
106
|
-
|
|
107
|
+
_t as RPSidebar
|
|
107
108
|
};
|
|
@@ -24,7 +24,8 @@ import "../../../utils/getZoomLevel.js";
|
|
|
24
24
|
import "../../../contexts/LayoutContainerContext.js";
|
|
25
25
|
import "../../../contexts/RotationContext.js";
|
|
26
26
|
import "../../../utils/hooks/useLoadPdf.js";
|
|
27
|
-
import "
|
|
27
|
+
import "@pdf-viewer/pdfium";
|
|
28
|
+
import "@pdf-viewer/pdfium/compat";
|
|
28
29
|
import "../../../utils/getThumbnailViewport.js";
|
|
29
30
|
import "../../../contexts/ConfigContext.js";
|
|
30
31
|
import "../../../contexts/DocumentPasswordContext.js";
|
|
@@ -43,7 +44,7 @@ const i = {
|
|
|
43
44
|
"rp-thumbnail": "_rp-thumbnail_3fenb_1",
|
|
44
45
|
"rp-thumbnail-active": "_rp-thumbnail-active_3fenb_22",
|
|
45
46
|
"rp-thumbnail-loader": "_rp-thumbnail-loader_3fenb_31"
|
|
46
|
-
},
|
|
47
|
+
}, Pt = ($) => {
|
|
47
48
|
const { pageNumber: t, isFocused: p, viewport: s } = $, { goToPage: d } = j(), { pageRotate: P } = q(), o = h(null), n = D(), { pages: a } = M(), [m, b] = N(null), c = h(!1), f = h(), R = _(() => p ? i["rp-thumbnail-active"] : "", [p]), u = _(() => ({
|
|
48
49
|
width: Math.round(s.width),
|
|
49
50
|
height: Math.round(s.height)
|
|
@@ -141,5 +142,5 @@ const i = {
|
|
|
141
142
|
);
|
|
142
143
|
};
|
|
143
144
|
export {
|
|
144
|
-
|
|
145
|
+
Pt as Thumbnail
|
|
145
146
|
};
|
|
@@ -10,7 +10,8 @@ import "../../icons/LoaderIcon.js";
|
|
|
10
10
|
import "../../../contexts/PagesRotateContext.js";
|
|
11
11
|
import "../../../contexts/RPDocumentContext.js";
|
|
12
12
|
import "../../../utils/hooks/useLoadPdf.js";
|
|
13
|
-
import "
|
|
13
|
+
import "@pdf-viewer/pdfium";
|
|
14
|
+
import "@pdf-viewer/pdfium/compat";
|
|
14
15
|
import "../../../utils/types.js";
|
|
15
16
|
import "../../../de_DE-a553b162.js";
|
|
16
17
|
import "../../../utils/getThumbnailViewport.js";
|
|
@@ -48,7 +49,7 @@ const d = {
|
|
|
48
49
|
}, j = 16, D = (r, n) => {
|
|
49
50
|
const t = r == null ? void 0 : r.querySelector(`#page-${n}`);
|
|
50
51
|
r && (t != null && t.offsetTop) && (r.scrollTop = (t == null ? void 0 : t.offsetTop) - j);
|
|
51
|
-
},
|
|
52
|
+
}, xt = S((r, n) => {
|
|
52
53
|
const { show: t, width: T } = r, { focusedPage: i, totalPages: a } = I(), { thumbnailPages: e, addPage: u, thumbnailLength: m, addToPage: c } = y(), p = b(null), l = b(1);
|
|
53
54
|
v(n, () => p.current);
|
|
54
55
|
const f = N(() => Object.values(e), [e]), P = x(() => {
|
|
@@ -73,5 +74,5 @@ const d = {
|
|
|
73
74
|
}) : null }) });
|
|
74
75
|
});
|
|
75
76
|
export {
|
|
76
|
-
|
|
77
|
+
xt as Thumbnails
|
|
77
78
|
};
|
|
@@ -14,11 +14,11 @@ import "../../../clsx-0c6e471a.js";
|
|
|
14
14
|
import "../../../utils/withRef.js";
|
|
15
15
|
import "../../../utils/hooks/useDarkMode.js";
|
|
16
16
|
import "../../../utils/appConsole.js";
|
|
17
|
-
import "../../../index-
|
|
17
|
+
import "../../../index-113053cf.js";
|
|
18
18
|
import "react-dom";
|
|
19
|
-
import "../../../index-
|
|
20
|
-
import "../../../
|
|
21
|
-
import "../../../index-
|
|
19
|
+
import "../../../index-23911b43.js";
|
|
20
|
+
import "../../../index-d0f0aa9a.js";
|
|
21
|
+
import "../../../index-ada501c4.js";
|
|
22
22
|
import "../../../utils/hooks/useLocalization.js";
|
|
23
23
|
import "../../../de_DE-a553b162.js";
|
|
24
24
|
const M = () => {
|
|
@@ -1,19 +1,20 @@
|
|
|
1
1
|
import { jsx as a, jsxs as C, Fragment as x } from "react/jsx-runtime";
|
|
2
2
|
import * as c from "react";
|
|
3
3
|
import { useMemo as J } from "react";
|
|
4
|
-
import { c as Q, a as
|
|
5
|
-
import { D as te, u as
|
|
6
|
-
import { R as oe, h as re, u as ne, F as ie, P as ae } from "../../../Combination-
|
|
4
|
+
import { c as Q, a as R, P as D, b as v, d as y, e as X, f as M, g as ee } from "../../../index-113053cf.js";
|
|
5
|
+
import { D as te, u as P } from "../../../index-23911b43.js";
|
|
6
|
+
import { R as oe, h as re, u as ne, F as ie, P as ae } from "../../../Combination-479e39c6.js";
|
|
7
7
|
import { useLayoutContainer as le } from "../../../contexts/LayoutContainerContext.js";
|
|
8
8
|
import { CloseIcon as ce } from "../../icons/CloseIcon.js";
|
|
9
9
|
import { dateFormatter as A } from "../../../utils/dateFormatter.js";
|
|
10
10
|
import { useDocumentContext as se } from "../../../contexts/RPDocumentContext.js";
|
|
11
11
|
import { PropertyItem as ue } from "./PropertyItem.js";
|
|
12
|
-
import { useOtherToolContext as
|
|
13
|
-
import { useLocalizationContext as
|
|
12
|
+
import { useOtherToolContext as pe } from "../../../contexts/OtherToolContext.js";
|
|
13
|
+
import { useLocalizationContext as de } from "../../../contexts/LocalizationContext.js";
|
|
14
14
|
import "react-dom";
|
|
15
15
|
import "../../../utils/hooks/useLoadPdf.js";
|
|
16
|
-
import "
|
|
16
|
+
import "@pdf-viewer/pdfium";
|
|
17
|
+
import "@pdf-viewer/pdfium/compat";
|
|
17
18
|
import "../../../utils/types.js";
|
|
18
19
|
import "../../../de_DE-a553b162.js";
|
|
19
20
|
import "../../../utils/getThumbnailViewport.js";
|
|
@@ -24,7 +25,7 @@ import "../../../utils/hooks/usePdfProperties.js";
|
|
|
24
25
|
import "../../../utils/convertPdfDate.js";
|
|
25
26
|
import "../../../utils/formatFileSize.js";
|
|
26
27
|
import "../../../utils/hooks/useLocalization.js";
|
|
27
|
-
var h = "Dialog", [T,
|
|
28
|
+
var h = "Dialog", [T, ot] = Q(h), [fe, u] = T(h), L = (t) => {
|
|
28
29
|
const {
|
|
29
30
|
__scopeDialog: r,
|
|
30
31
|
children: n,
|
|
@@ -32,7 +33,7 @@ var h = "Dialog", [T, tt] = Q(h), [fe, u] = T(h), L = (t) => {
|
|
|
32
33
|
defaultOpen: e,
|
|
33
34
|
onOpenChange: o,
|
|
34
35
|
modal: l = !0
|
|
35
|
-
} = t, s = c.useRef(null),
|
|
36
|
+
} = t, s = c.useRef(null), p = c.useRef(null), [d, g] = M({
|
|
36
37
|
prop: i,
|
|
37
38
|
defaultProp: e ?? !1,
|
|
38
39
|
onChange: o,
|
|
@@ -43,11 +44,11 @@ var h = "Dialog", [T, tt] = Q(h), [fe, u] = T(h), L = (t) => {
|
|
|
43
44
|
{
|
|
44
45
|
scope: r,
|
|
45
46
|
triggerRef: s,
|
|
46
|
-
contentRef:
|
|
47
|
-
contentId:
|
|
48
|
-
titleId:
|
|
49
|
-
descriptionId:
|
|
50
|
-
open:
|
|
47
|
+
contentRef: p,
|
|
48
|
+
contentId: P(),
|
|
49
|
+
titleId: P(),
|
|
50
|
+
descriptionId: P(),
|
|
51
|
+
open: d,
|
|
51
52
|
onOpenChange: g,
|
|
52
53
|
onOpenToggle: c.useCallback(() => g((_) => !_), [g]),
|
|
53
54
|
modal: l,
|
|
@@ -58,7 +59,7 @@ var h = "Dialog", [T, tt] = Q(h), [fe, u] = T(h), L = (t) => {
|
|
|
58
59
|
L.displayName = h;
|
|
59
60
|
var w = "DialogTrigger", me = c.forwardRef(
|
|
60
61
|
(t, r) => {
|
|
61
|
-
const { __scopeDialog: n, ...i } = t, e = u(w, n), o =
|
|
62
|
+
const { __scopeDialog: n, ...i } = t, e = u(w, n), o = R(r, e.triggerRef);
|
|
62
63
|
return /* @__PURE__ */ a(
|
|
63
64
|
D.button,
|
|
64
65
|
{
|
|
@@ -115,7 +116,7 @@ var ve = ee("DialogOverlay.RemoveScroll"), De = c.forwardRef(
|
|
|
115
116
|
k.displayName = m;
|
|
116
117
|
var _e = c.forwardRef(
|
|
117
118
|
(t, r) => {
|
|
118
|
-
const n = u(m, t.__scopeDialog), i = c.useRef(null), e =
|
|
119
|
+
const n = u(m, t.__scopeDialog), i = c.useRef(null), e = R(r, n.contentRef, i);
|
|
119
120
|
return c.useEffect(() => {
|
|
120
121
|
const o = i.current;
|
|
121
122
|
if (o)
|
|
@@ -157,17 +158,17 @@ var _e = c.forwardRef(
|
|
|
157
158
|
(l = t.onCloseAutoFocus) == null || l.call(t, o), o.defaultPrevented || (i.current || (s = n.triggerRef.current) == null || s.focus(), o.preventDefault()), i.current = !1, e.current = !1;
|
|
158
159
|
},
|
|
159
160
|
onInteractOutside: (o) => {
|
|
160
|
-
var
|
|
161
|
-
(
|
|
161
|
+
var p, d;
|
|
162
|
+
(p = t.onInteractOutside) == null || p.call(t, o), o.defaultPrevented || (i.current = !0, o.detail.originalEvent.type === "pointerdown" && (e.current = !0));
|
|
162
163
|
const l = o.target;
|
|
163
|
-
((
|
|
164
|
+
((d = n.triggerRef.current) == null ? void 0 : d.contains(l)) && o.preventDefault(), o.detail.originalEvent.type === "focusin" && e.current && o.preventDefault();
|
|
164
165
|
}
|
|
165
166
|
}
|
|
166
167
|
);
|
|
167
168
|
}
|
|
168
169
|
), q = c.forwardRef(
|
|
169
170
|
(t, r) => {
|
|
170
|
-
const { __scopeDialog: n, trapFocus: i, onOpenAutoFocus: e, onCloseAutoFocus: o, ...l } = t, s = u(m, n),
|
|
171
|
+
const { __scopeDialog: n, trapFocus: i, onOpenAutoFocus: e, onCloseAutoFocus: o, ...l } = t, s = u(m, n), p = c.useRef(null), d = R(r, p);
|
|
171
172
|
return ne(), /* @__PURE__ */ C(x, { children: [
|
|
172
173
|
/* @__PURE__ */ a(
|
|
173
174
|
ie,
|
|
@@ -186,7 +187,7 @@ var _e = c.forwardRef(
|
|
|
186
187
|
"aria-labelledby": s.titleId,
|
|
187
188
|
"data-state": E(s.open),
|
|
188
189
|
...l,
|
|
189
|
-
ref:
|
|
190
|
+
ref: d,
|
|
190
191
|
onDismiss: () => s.onOpenChange(!1)
|
|
191
192
|
}
|
|
192
193
|
)
|
|
@@ -194,7 +195,7 @@ var _e = c.forwardRef(
|
|
|
194
195
|
),
|
|
195
196
|
/* @__PURE__ */ C(x, { children: [
|
|
196
197
|
/* @__PURE__ */ a(he, { titleId: s.titleId }),
|
|
197
|
-
/* @__PURE__ */ a(
|
|
198
|
+
/* @__PURE__ */ a(Re, { contentRef: p, descriptionId: s.descriptionId })
|
|
198
199
|
] })
|
|
199
200
|
] });
|
|
200
201
|
}
|
|
@@ -230,7 +231,7 @@ z.displayName = j;
|
|
|
230
231
|
function E(t) {
|
|
231
232
|
return t ? "open" : "closed";
|
|
232
233
|
}
|
|
233
|
-
var B = "DialogTitleWarning", [
|
|
234
|
+
var B = "DialogTitleWarning", [rt, V] = X(B, {
|
|
234
235
|
contentName: m,
|
|
235
236
|
titleName: O,
|
|
236
237
|
docsSlug: "dialog"
|
|
@@ -243,8 +244,8 @@ For more information, see https://radix-ui.com/primitives/docs/components/${r.do
|
|
|
243
244
|
return c.useEffect(() => {
|
|
244
245
|
t && (document.getElementById(t) || console.error(n));
|
|
245
246
|
}, [n, t]), null;
|
|
246
|
-
},
|
|
247
|
-
const i = `Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${V(
|
|
247
|
+
}, Pe = "DialogDescriptionWarning", Re = ({ contentRef: t, descriptionId: r }) => {
|
|
248
|
+
const i = `Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${V(Pe).contentName}}.`;
|
|
248
249
|
return c.useEffect(() => {
|
|
249
250
|
var o;
|
|
250
251
|
const e = (o = t.current) == null ? void 0 : o.getAttribute("aria-describedby");
|
|
@@ -259,15 +260,15 @@ const f = {
|
|
|
259
260
|
"rp-dialog-title": "_rp-dialog-title_slqo7_39",
|
|
260
261
|
"rp-dialog-close": "_rp-dialog-close_slqo7_47",
|
|
261
262
|
"rp-properties-divider": "_rp-properties-divider_slqo7_55"
|
|
262
|
-
},
|
|
263
|
-
const { pdfProperties: t } = se(), { container: r } = le(), { activeDocumentProperties: n, setActiveDocumentProperties: i } =
|
|
263
|
+
}, nt = () => {
|
|
264
|
+
const { pdfProperties: t } = se(), { container: r } = le(), { activeDocumentProperties: n, setActiveDocumentProperties: i } = pe(), { localeMessages: e } = de(), o = J(() => {
|
|
264
265
|
if (!t)
|
|
265
266
|
return [];
|
|
266
267
|
const {
|
|
267
268
|
fileSize: l,
|
|
268
269
|
filename: s,
|
|
269
|
-
title:
|
|
270
|
-
author:
|
|
270
|
+
title: p,
|
|
271
|
+
author: d,
|
|
271
272
|
subject: g,
|
|
272
273
|
createdOn: _,
|
|
273
274
|
creator: H,
|
|
@@ -281,8 +282,8 @@ const f = {
|
|
|
281
282
|
{ label: e == null ? void 0 : e.propertiesFilenameLabel, value: s },
|
|
282
283
|
{ label: e == null ? void 0 : e.propertiesFileSizeLabel, value: l },
|
|
283
284
|
{ separate: !0 },
|
|
284
|
-
{ label: e == null ? void 0 : e.propertiesTitleLabel, value:
|
|
285
|
-
{ label: e == null ? void 0 : e.propertiesAuthorLabel, value:
|
|
285
|
+
{ label: e == null ? void 0 : e.propertiesTitleLabel, value: p },
|
|
286
|
+
{ label: e == null ? void 0 : e.propertiesAuthorLabel, value: d },
|
|
286
287
|
{ label: e == null ? void 0 : e.propertiesSubjectLabel, value: g },
|
|
287
288
|
{ label: e == null ? void 0 : e.propertiesKeywordLabel, value: K },
|
|
288
289
|
{ label: e == null ? void 0 : e.propertiesCreatorLabel, value: H },
|
|
@@ -302,13 +303,21 @@ const f = {
|
|
|
302
303
|
}, [t, e]);
|
|
303
304
|
return /* @__PURE__ */ a(ye, { open: n, onOpenChange: i, children: /* @__PURE__ */ a(Ne, { container: r, children: /* @__PURE__ */ C("div", { className: f["rp-dialog-wrapper"], children: [
|
|
304
305
|
/* @__PURE__ */ a(Oe, { className: f["rp-dialog-overlay"] }),
|
|
305
|
-
/* @__PURE__ */ C(Ee, { className: f["rp-document-dialog"], "aria-
|
|
306
|
-
/* @__PURE__ */ a(Ie, {
|
|
307
|
-
/* @__PURE__ */ a(
|
|
306
|
+
/* @__PURE__ */ C(Ee, { className: f["rp-document-dialog"], "aria-describedby": void 0, children: [
|
|
307
|
+
/* @__PURE__ */ a(Ie, { className: f["rp-dialog-title"], children: (e == null ? void 0 : e.documentPropertiesLabel) ?? "Document properties" }),
|
|
308
|
+
/* @__PURE__ */ a(
|
|
309
|
+
"div",
|
|
310
|
+
{
|
|
311
|
+
className: f["rp-document-properties"],
|
|
312
|
+
role: "region",
|
|
313
|
+
"aria-label": (e == null ? void 0 : e.documentPropertiesLabel) ?? "Document properties",
|
|
314
|
+
children: o.map((l, s) => /* @__PURE__ */ a("div", { children: l.separate ? /* @__PURE__ */ a("div", { className: f["rp-properties-divider"], role: "separator", "aria-orientation": "horizontal" }) : /* @__PURE__ */ a(ue, { label: l.label, value: l.value }) }, s))
|
|
315
|
+
}
|
|
316
|
+
),
|
|
308
317
|
/* @__PURE__ */ a(xe, { asChild: !0, className: f["rp-dialog-close"], "aria-label": (e == null ? void 0 : e.searchCloseButtonTooltip) || "Close dialog", children: /* @__PURE__ */ a(ce, { "aria-hidden": "true" }) })
|
|
309
318
|
] })
|
|
310
319
|
] }) }) });
|
|
311
320
|
};
|
|
312
321
|
export {
|
|
313
|
-
|
|
322
|
+
nt as DocumentDialog
|
|
314
323
|
};
|
|
@@ -9,14 +9,14 @@ import { useLocalizationContext as x } from "../../../contexts/LocalizationConte
|
|
|
9
9
|
import { useIconToolContext as C } from "../../../contexts/IconToolContext.js";
|
|
10
10
|
import { useToolComponentContext as I } from "../../../contexts/ToolComponentContext.js";
|
|
11
11
|
import { MenuSeparator as T } from "./MenuSeparator.js";
|
|
12
|
-
import "../../../index-
|
|
12
|
+
import "../../../index-535ad364.js";
|
|
13
13
|
import "react";
|
|
14
|
-
import "../../../index-
|
|
14
|
+
import "../../../index-113053cf.js";
|
|
15
15
|
import "react-dom";
|
|
16
|
-
import "../../../index-
|
|
17
|
-
import "../../../Combination-
|
|
18
|
-
import "../../../
|
|
19
|
-
import "../../../index-
|
|
16
|
+
import "../../../index-23911b43.js";
|
|
17
|
+
import "../../../Combination-479e39c6.js";
|
|
18
|
+
import "../../../index-d0f0aa9a.js";
|
|
19
|
+
import "../../../index-ada501c4.js";
|
|
20
20
|
import "../../../clsx-0c6e471a.js";
|
|
21
21
|
import "../../../utils/withRef.js";
|
|
22
22
|
import "../../../utils/appConsole.js";
|
|
@@ -15,7 +15,8 @@ import "../../../clsx-0c6e471a.js";
|
|
|
15
15
|
import "../../../utils/withRef.js";
|
|
16
16
|
import "../../../contexts/RPDocumentContext.js";
|
|
17
17
|
import "../../../utils/hooks/useLoadPdf.js";
|
|
18
|
-
import "
|
|
18
|
+
import "@pdf-viewer/pdfium";
|
|
19
|
+
import "@pdf-viewer/pdfium/compat";
|
|
19
20
|
import "../../../utils/types.js";
|
|
20
21
|
import "../../../de_DE-a553b162.js";
|
|
21
22
|
import "../../../utils/getThumbnailViewport.js";
|
|
@@ -26,13 +27,13 @@ import "../../../utils/hooks/usePdfProperties.js";
|
|
|
26
27
|
import "../../../utils/convertPdfDate.js";
|
|
27
28
|
import "../../../utils/formatFileSize.js";
|
|
28
29
|
import "../../../contexts/DownloadContext.js";
|
|
29
|
-
import "../../../index-
|
|
30
|
-
import "../../../index-
|
|
30
|
+
import "../../../index-535ad364.js";
|
|
31
|
+
import "../../../index-113053cf.js";
|
|
31
32
|
import "react-dom";
|
|
32
|
-
import "../../../index-
|
|
33
|
-
import "../../../Combination-
|
|
34
|
-
import "../../../
|
|
35
|
-
import "../../../index-
|
|
33
|
+
import "../../../index-23911b43.js";
|
|
34
|
+
import "../../../Combination-479e39c6.js";
|
|
35
|
+
import "../../../index-d0f0aa9a.js";
|
|
36
|
+
import "../../../index-ada501c4.js";
|
|
36
37
|
import "../../../contexts/LayoutContainerContext.js";
|
|
37
38
|
import "../../../utils/hooks/useLocalization.js";
|
|
38
39
|
const d = () => {
|
|
@@ -41,10 +42,10 @@ const d = () => {
|
|
|
41
42
|
}, l = ({ children: n, className: o, localeMessages: r }) => /* @__PURE__ */ t(m, { className: o, content: r == null ? void 0 : r.downloadFileTooltip, children: n }), b = ({ download: n, localeMessages: o }) => /* @__PURE__ */ t(l, { localeMessages: o, children: /* @__PURE__ */ t(T, { onClick: n, "aria-label": o == null ? void 0 : o.downloadFileTooltip, children: /* @__PURE__ */ t(d, {}) }) }), a = ({ download: n, localeMessages: o }) => /* @__PURE__ */ t(C, { onClick: n, children: /* @__PURE__ */ u(l, { className: "rp-menu-item", localeMessages: o, children: [
|
|
42
43
|
/* @__PURE__ */ t("div", { className: "rp-menu-item-left", children: /* @__PURE__ */ t(d, {}) }),
|
|
43
44
|
o == null ? void 0 : o.downloadFileLabel
|
|
44
|
-
] }) }),
|
|
45
|
+
] }) }), lo = () => {
|
|
45
46
|
const { download: n } = D(), { downloadTool: o = !0 } = w(), { downloadTool: r = !0 } = h(), { isSmallScreen: c } = x(), { localeMessages: i } = F(), p = i == null ? void 0 : i.downloadFileTooltip;
|
|
46
47
|
return !o || !r ? null : c ? /* @__PURE__ */ t(a, { download: n, localeMessages: i }) : typeof o == "function" ? /* @__PURE__ */ t(m, { content: p, children: /* @__PURE__ */ t(o, { download: n }) }) : typeof r == "function" ? /* @__PURE__ */ t(m, { content: p, children: /* @__PURE__ */ t(r, { download: n }) }) : /* @__PURE__ */ t(b, { download: n, localeMessages: i });
|
|
47
48
|
};
|
|
48
49
|
export {
|
|
49
|
-
|
|
50
|
+
lo as FileDownloadTool
|
|
50
51
|
};
|
|
@@ -13,17 +13,18 @@ import { useToolComponentContext as U } from "../../../contexts/ToolComponentCon
|
|
|
13
13
|
import "react";
|
|
14
14
|
import "../../../clsx-0c6e471a.js";
|
|
15
15
|
import "../../../utils/withRef.js";
|
|
16
|
-
import "../../../index-
|
|
17
|
-
import "../../../index-
|
|
16
|
+
import "../../../index-535ad364.js";
|
|
17
|
+
import "../../../index-113053cf.js";
|
|
18
18
|
import "react-dom";
|
|
19
|
-
import "../../../index-
|
|
20
|
-
import "../../../Combination-
|
|
21
|
-
import "../../../
|
|
22
|
-
import "../../../index-
|
|
19
|
+
import "../../../index-23911b43.js";
|
|
20
|
+
import "../../../Combination-479e39c6.js";
|
|
21
|
+
import "../../../index-d0f0aa9a.js";
|
|
22
|
+
import "../../../index-ada501c4.js";
|
|
23
23
|
import "../../../contexts/LayoutContainerContext.js";
|
|
24
24
|
import "../../../contexts/RPDocumentContext.js";
|
|
25
25
|
import "../../../utils/hooks/useLoadPdf.js";
|
|
26
|
-
import "
|
|
26
|
+
import "@pdf-viewer/pdfium";
|
|
27
|
+
import "@pdf-viewer/pdfium/compat";
|
|
27
28
|
import "../../../utils/types.js";
|
|
28
29
|
import "../../../de_DE-a553b162.js";
|
|
29
30
|
import "../../../utils/getThumbnailViewport.js";
|
|
@@ -40,10 +41,10 @@ const e = () => {
|
|
|
40
41
|
}, l = ({ children: i, className: o, localeMessages: n }) => /* @__PURE__ */ t(p, { className: o, content: n == null ? void 0 : n.openLocalFileTooltip, children: i }), b = ({ onFileChange: i, localeMessages: o }) => /* @__PURE__ */ t(C, { onClick: i, children: /* @__PURE__ */ u(l, { className: "rp-menu-item", localeMessages: o, children: [
|
|
41
42
|
/* @__PURE__ */ t("div", { className: "rp-menu-item-left", children: /* @__PURE__ */ t(e, {}) }),
|
|
42
43
|
o == null ? void 0 : o.openLocalFileLabel
|
|
43
|
-
] }) }), O = ({ onFileChange: i, localeMessages: o }) => /* @__PURE__ */ t(l, { localeMessages: o, children: /* @__PURE__ */ t(d, { onClick: i, "aria-label": o == null ? void 0 : o.openLocalFileTooltip, children: /* @__PURE__ */ t(e, {}) }) }),
|
|
44
|
+
] }) }), O = ({ onFileChange: i, localeMessages: o }) => /* @__PURE__ */ t(l, { localeMessages: o, children: /* @__PURE__ */ t(d, { onClick: i, "aria-label": o == null ? void 0 : o.openLocalFileTooltip, children: /* @__PURE__ */ t(e, {}) }) }), mo = () => {
|
|
44
45
|
const { openFileTool: i = !0 } = F(), { openFileTool: o = !0 } = U(), { openFile: n } = h(), { isSmallScreen: c } = x(), { localeMessages: r } = I(), m = r == null ? void 0 : r.openLocalFileTooltip;
|
|
45
46
|
return !i || !o ? null : c ? /* @__PURE__ */ t(b, { onFileChange: n, localeMessages: r }) : typeof i == "function" ? /* @__PURE__ */ t(p, { content: m, children: /* @__PURE__ */ t(i, { openFile: n }) }) : typeof o == "function" ? /* @__PURE__ */ t(p, { content: m, children: /* @__PURE__ */ t(o, { openFile: n }) }) : /* @__PURE__ */ t(O, { onFileChange: n, localeMessages: r });
|
|
46
47
|
};
|
|
47
48
|
export {
|
|
48
|
-
|
|
49
|
+
mo as FileUploadTool
|
|
49
50
|
};
|
|
@@ -15,13 +15,13 @@ import "../../../utils/hooks/useFullScreen.js";
|
|
|
15
15
|
import "../../../clsx-0c6e471a.js";
|
|
16
16
|
import "../../../utils/withRef.js";
|
|
17
17
|
import "../../../contexts/LayoutContainerContext.js";
|
|
18
|
-
import "../../../index-
|
|
19
|
-
import "../../../index-
|
|
18
|
+
import "../../../index-535ad364.js";
|
|
19
|
+
import "../../../index-113053cf.js";
|
|
20
20
|
import "react-dom";
|
|
21
|
-
import "../../../index-
|
|
22
|
-
import "../../../Combination-
|
|
23
|
-
import "../../../
|
|
24
|
-
import "../../../index-
|
|
21
|
+
import "../../../index-23911b43.js";
|
|
22
|
+
import "../../../Combination-479e39c6.js";
|
|
23
|
+
import "../../../index-d0f0aa9a.js";
|
|
24
|
+
import "../../../index-ada501c4.js";
|
|
25
25
|
import "../../../utils/appConsole.js";
|
|
26
26
|
import "../../../utils/hooks/useLocalization.js";
|
|
27
27
|
import "../../../de_DE-a553b162.js";
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { jsx as e } from "react/jsx-runtime";
|
|
2
|
-
import { I as s } from "../../../index-
|
|
2
|
+
import { I as s } from "../../../index-535ad364.js";
|
|
3
3
|
import { c as p } from "../../../clsx-0c6e471a.js";
|
|
4
4
|
import "react";
|
|
5
|
-
import "../../../index-
|
|
5
|
+
import "../../../index-113053cf.js";
|
|
6
6
|
import "react-dom";
|
|
7
|
-
import "../../../index-
|
|
8
|
-
import "../../../Combination-
|
|
9
|
-
import "../../../
|
|
10
|
-
import "../../../index-
|
|
7
|
+
import "../../../index-23911b43.js";
|
|
8
|
+
import "../../../Combination-479e39c6.js";
|
|
9
|
+
import "../../../index-d0f0aa9a.js";
|
|
10
|
+
import "../../../index-ada501c4.js";
|
|
11
11
|
const i = {
|
|
12
12
|
"rp-menu-item": "_rp-menu-item_cu12j_1"
|
|
13
13
|
}, j = (m) => {
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { jsx as r } from "react/jsx-runtime";
|
|
2
|
-
import { S as o } from "../../../index-
|
|
2
|
+
import { S as o } from "../../../index-535ad364.js";
|
|
3
3
|
import "react";
|
|
4
|
-
import "../../../index-
|
|
4
|
+
import "../../../index-113053cf.js";
|
|
5
5
|
import "react-dom";
|
|
6
|
-
import "../../../index-
|
|
7
|
-
import "../../../Combination-
|
|
8
|
-
import "../../../
|
|
9
|
-
import "../../../index-
|
|
6
|
+
import "../../../index-23911b43.js";
|
|
7
|
+
import "../../../Combination-479e39c6.js";
|
|
8
|
+
import "../../../index-d0f0aa9a.js";
|
|
9
|
+
import "../../../index-ada501c4.js";
|
|
10
10
|
const p = {
|
|
11
11
|
"rp-menu-separator": "_rp-menu-separator_17dlz_1"
|
|
12
12
|
}, l = () => /* @__PURE__ */ r(o, { className: p["rp-menu-separator"] });
|