@react-pdf-kit/viewer 0.0.0-experimental.0 → 0.0.0-experimental.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +84 -49
- package/dist/{Combination-54a77a7a.js → Combination-17ab8af1.js} +184 -187
- 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-11f3cd64.js +983 -0
- package/dist/{index-e3ee9457.js → index-23911b43.js} +6 -6
- 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 +92 -100
- 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
|
@@ -1,59 +1,59 @@
|
|
|
1
|
-
import { jsx as x, jsxs as
|
|
2
|
-
import { createElement as
|
|
3
|
-
import { RPPage as
|
|
4
|
-
import { useVirtualReactWindow as
|
|
5
|
-
import { useVirtualScrollContext as
|
|
6
|
-
import { a as
|
|
7
|
-
import { useDocumentContext as
|
|
8
|
-
import { useViewModeContext as
|
|
9
|
-
import { useScrollModeContext as
|
|
10
|
-
import { SelectionMode as
|
|
11
|
-
import { useFullScreenContext as
|
|
12
|
-
import { c as
|
|
13
|
-
import { DualPage as
|
|
14
|
-
import { DualPageWithCover as
|
|
15
|
-
import { SinglePage as
|
|
16
|
-
import { useMousePressed as
|
|
17
|
-
import { useSelectionModeContext as
|
|
18
|
-
import { useGrabScroll as
|
|
19
|
-
import { usePinch as
|
|
20
|
-
import { useInitialStateContext as
|
|
21
|
-
import { useLayoutContainer as
|
|
22
|
-
import { useDebounce as
|
|
23
|
-
import { useLoaderContext as
|
|
24
|
-
import
|
|
25
|
-
import { usePresentPage as
|
|
26
|
-
import { getPageFromPosition as
|
|
27
|
-
import { useDocumentPasswordContext as
|
|
28
|
-
import { LayoutContainer as
|
|
29
|
-
import { LayoutWrapper as
|
|
30
|
-
import { useEventCallbackContext as
|
|
31
|
-
import { useCopyText as
|
|
32
|
-
import { useTextSelection as
|
|
33
|
-
import {
|
|
34
|
-
import { approximateFraction as Ue } from "../utils/approximateFragtion.js";
|
|
35
|
-
import { useSmoothScaleContext as Bt } from "../contexts/SmoothScaleContext.js";
|
|
1
|
+
import { jsx as x, jsxs as _e, Fragment as st } from "react/jsx-runtime";
|
|
2
|
+
import { createElement as ue, PureComponent as at, Component as lt, memo as ct, useRef as G, useMemo as we, useCallback as ae, useEffect as ne } from "react";
|
|
3
|
+
import { RPPage as Ce } from "./page/RPPage.js";
|
|
4
|
+
import { useVirtualReactWindow as ut } from "../utils/hooks/useVirtualReactWindow.js";
|
|
5
|
+
import { useVirtualScrollContext as dt } from "../contexts/VirtualScrollContext.js";
|
|
6
|
+
import { a as ft, u as mt } from "../PaginationContext-9217cab4.js";
|
|
7
|
+
import { useDocumentContext as pt } from "../contexts/RPDocumentContext.js";
|
|
8
|
+
import { useViewModeContext as ht } from "../contexts/ViewModeContext.js";
|
|
9
|
+
import { useScrollModeContext as gt } from "../contexts/ScrollModeContext.js";
|
|
10
|
+
import { SelectionMode as vt, ViewMode as Se, ScrollMode as Ie, ErrorType as _t } from "../utils/types.js";
|
|
11
|
+
import { useFullScreenContext as wt } from "../contexts/FullScreenContext.js";
|
|
12
|
+
import { c as ce } from "../clsx-0c6e471a.js";
|
|
13
|
+
import { DualPage as Ct } from "./page/DualPage.js";
|
|
14
|
+
import { DualPageWithCover as St } from "./page/DualPageWithCover.js";
|
|
15
|
+
import { SinglePage as It } from "./page/SinglePage.js";
|
|
16
|
+
import { useMousePressed as Tt } from "../utils/hooks/useMousePressed.js";
|
|
17
|
+
import { useSelectionModeContext as Rt } from "../contexts/SelectionModeContext.js";
|
|
18
|
+
import { useGrabScroll as xt } from "../utils/hooks/useGrabScroll.js";
|
|
19
|
+
import { usePinch as yt } from "../utils/hooks/usePinch.js";
|
|
20
|
+
import { useInitialStateContext as bt } from "../contexts/InitialStateContext.js";
|
|
21
|
+
import { useLayoutContainer as zt } from "../contexts/LayoutContainerContext.js";
|
|
22
|
+
import { useDebounce as Lt } from "../utils/hooks/useDebounce.js";
|
|
23
|
+
import { useLoaderContext as Mt } from "../contexts/LoaderContext.js";
|
|
24
|
+
import Et from "./ui/PasswordModal.js";
|
|
25
|
+
import { usePresentPage as Ot } from "../utils/hooks/usePresentPage.js";
|
|
26
|
+
import { getPageFromPosition as Wt } from "../utils/calculatePage.js";
|
|
27
|
+
import { useDocumentPasswordContext as Pt } from "../contexts/DocumentPasswordContext.js";
|
|
28
|
+
import { LayoutContainer as At } from "./layout/LayoutContainer.js";
|
|
29
|
+
import { LayoutWrapper as Nt } from "./layout/LayoutWrapper.js";
|
|
30
|
+
import { useEventCallbackContext as Ft } from "../contexts/EventCallbackContext.js";
|
|
31
|
+
import { useCopyText as Dt } from "../utils/hooks/useCopyText.js";
|
|
32
|
+
import { useTextSelection as Ht } from "../utils/hooks/useTextSelection.js";
|
|
33
|
+
import { approximateFraction as Pe } from "../utils/approximateFragtion.js";
|
|
36
34
|
import "./page/CanvasLayer.js";
|
|
37
|
-
import "../contexts/
|
|
38
|
-
import "../contexts/RotationContext.js";
|
|
35
|
+
import "../contexts/ZoomContext.js";
|
|
39
36
|
import "../utils/appConsole.js";
|
|
37
|
+
import "../utils/constants.js";
|
|
38
|
+
import "../utils/getZoomLevel.js";
|
|
39
|
+
import "../de_DE-a553b162.js";
|
|
40
|
+
import "../contexts/RotationContext.js";
|
|
40
41
|
import "../utils/hooks/useLoadPdf.js";
|
|
42
|
+
import "@pdf-viewer/pdfium";
|
|
43
|
+
import "@pdf-viewer/pdfium/compat";
|
|
41
44
|
import "../utils/getThumbnailViewport.js";
|
|
42
45
|
import "../contexts/ConfigContext.js";
|
|
43
|
-
import "../de_DE-a553b162.js";
|
|
44
46
|
import "../utils/hooks/usePdfProperties.js";
|
|
45
47
|
import "../utils/convertPdfDate.js";
|
|
46
48
|
import "../utils/formatFileSize.js";
|
|
49
|
+
import "../contexts/GlobalCurrentPage.js";
|
|
50
|
+
import "../contexts/PagesRotateContext.js";
|
|
47
51
|
import "../contexts/RenderQueueProvider.js";
|
|
48
52
|
import "../utils/Queue.js";
|
|
49
53
|
import "../utils/renderPage.js";
|
|
50
|
-
import "../contexts/GlobalCurrentPage.js";
|
|
51
54
|
import "../contexts/VirtualGridContext.js";
|
|
52
55
|
import "../utils/smoothScrollTo.js";
|
|
53
56
|
import "../contexts/DimensionPagesContext.js";
|
|
54
|
-
import "../contexts/ZoomContext.js";
|
|
55
|
-
import "../utils/constants.js";
|
|
56
|
-
import "../utils/getZoomLevel.js";
|
|
57
57
|
import "../contexts/SmoothScrollContext.js";
|
|
58
58
|
import "../utils/getScrollDistance.js";
|
|
59
59
|
import "./page/TextLayer.js";
|
|
@@ -85,14 +85,13 @@ import "../utils/getElementPositionInPage.js";
|
|
|
85
85
|
import "../utils/withRef.js";
|
|
86
86
|
import "./icons/LoaderIcon.js";
|
|
87
87
|
import "../utils/hooks/useFullScreen.js";
|
|
88
|
-
import "../utils/hooks/useAccumulateFactor.js";
|
|
89
88
|
import "../contexts/LocalizationContext.js";
|
|
90
89
|
import "../utils/hooks/useLocalization.js";
|
|
91
90
|
import "../RPLayout.module-b4b23e29.js";
|
|
92
91
|
import "../contexts/ThemeContext.js";
|
|
93
92
|
import "../contexts/DarkModeContext.js";
|
|
94
93
|
import "../utils/hooks/useDarkMode.js";
|
|
95
|
-
const
|
|
94
|
+
const U = {
|
|
96
95
|
"rp-pages": "_rp-pages_u7m2r_1",
|
|
97
96
|
"rp-page-scrolling-wrapper": "_rp-page-scrolling-wrapper_u7m2r_6",
|
|
98
97
|
"rp-pages-horizontal-scroll": "_rp-pages-horizontal-scroll_u7m2r_11",
|
|
@@ -104,54 +103,54 @@ const V = {
|
|
|
104
103
|
"rp-not-supported": "_rp-not-supported_u7m2r_86",
|
|
105
104
|
"rp-not-supported-content": "_rp-not-supported-content_u7m2r_102"
|
|
106
105
|
};
|
|
107
|
-
function
|
|
108
|
-
return
|
|
106
|
+
function be() {
|
|
107
|
+
return be = Object.assign ? Object.assign.bind() : function(n) {
|
|
109
108
|
for (var e = 1; e < arguments.length; e++) {
|
|
110
109
|
var t = arguments[e];
|
|
111
110
|
for (var r in t)
|
|
112
111
|
({}).hasOwnProperty.call(t, r) && (n[r] = t[r]);
|
|
113
112
|
}
|
|
114
113
|
return n;
|
|
115
|
-
},
|
|
114
|
+
}, be.apply(null, arguments);
|
|
116
115
|
}
|
|
117
|
-
function
|
|
116
|
+
function Ae(n) {
|
|
118
117
|
if (n === void 0)
|
|
119
118
|
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
120
119
|
return n;
|
|
121
120
|
}
|
|
122
|
-
function
|
|
123
|
-
return
|
|
121
|
+
function ze(n, e) {
|
|
122
|
+
return ze = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(t, r) {
|
|
124
123
|
return t.__proto__ = r, t;
|
|
125
|
-
},
|
|
124
|
+
}, ze(n, e);
|
|
126
125
|
}
|
|
127
|
-
function
|
|
128
|
-
n.prototype = Object.create(e.prototype), n.prototype.constructor = n,
|
|
126
|
+
function kt(n, e) {
|
|
127
|
+
n.prototype = Object.create(e.prototype), n.prototype.constructor = n, ze(n, e);
|
|
129
128
|
}
|
|
130
|
-
var
|
|
129
|
+
var Ne = Number.isNaN || function(e) {
|
|
131
130
|
return typeof e == "number" && e !== e;
|
|
132
131
|
};
|
|
133
|
-
function
|
|
134
|
-
return !!(n === e ||
|
|
132
|
+
function Ut(n, e) {
|
|
133
|
+
return !!(n === e || Ne(n) && Ne(e));
|
|
135
134
|
}
|
|
136
|
-
function
|
|
135
|
+
function Vt(n, e) {
|
|
137
136
|
if (n.length !== e.length)
|
|
138
137
|
return !1;
|
|
139
138
|
for (var t = 0; t < n.length; t++)
|
|
140
|
-
if (!
|
|
139
|
+
if (!Ut(n[t], e[t]))
|
|
141
140
|
return !1;
|
|
142
141
|
return !0;
|
|
143
142
|
}
|
|
144
|
-
function
|
|
145
|
-
e === void 0 && (e =
|
|
146
|
-
var t, r = [],
|
|
143
|
+
function Te(n, e) {
|
|
144
|
+
e === void 0 && (e = Vt);
|
|
145
|
+
var t, r = [], s, l = !1;
|
|
147
146
|
function a() {
|
|
148
|
-
for (var c = [],
|
|
149
|
-
c[
|
|
150
|
-
return l && t === this && e(c, r) || (
|
|
147
|
+
for (var c = [], f = 0; f < arguments.length; f++)
|
|
148
|
+
c[f] = arguments[f];
|
|
149
|
+
return l && t === this && e(c, r) || (s = n.apply(this, c), l = !0, t = this, r = c), s;
|
|
151
150
|
}
|
|
152
151
|
return a;
|
|
153
152
|
}
|
|
154
|
-
function
|
|
153
|
+
function Fe(n, e) {
|
|
155
154
|
if (n == null)
|
|
156
155
|
return {};
|
|
157
156
|
var t = {};
|
|
@@ -163,131 +162,131 @@ function Ge(n, e) {
|
|
|
163
162
|
}
|
|
164
163
|
return t;
|
|
165
164
|
}
|
|
166
|
-
var
|
|
165
|
+
var qt = typeof performance == "object" && typeof performance.now == "function", De = qt ? function() {
|
|
167
166
|
return performance.now();
|
|
168
167
|
} : function() {
|
|
169
168
|
return Date.now();
|
|
170
169
|
};
|
|
171
|
-
function
|
|
170
|
+
function He(n) {
|
|
172
171
|
cancelAnimationFrame(n.id);
|
|
173
172
|
}
|
|
174
|
-
function
|
|
175
|
-
var t =
|
|
173
|
+
function Gt(n, e) {
|
|
174
|
+
var t = De();
|
|
176
175
|
function r() {
|
|
177
|
-
|
|
176
|
+
De() - t >= e ? n.call(null) : s.id = requestAnimationFrame(r);
|
|
178
177
|
}
|
|
179
|
-
var
|
|
178
|
+
var s = {
|
|
180
179
|
id: requestAnimationFrame(r)
|
|
181
180
|
};
|
|
182
|
-
return
|
|
181
|
+
return s;
|
|
183
182
|
}
|
|
184
|
-
var
|
|
185
|
-
function
|
|
186
|
-
if (n === void 0 && (n = !1),
|
|
183
|
+
var Re = -1;
|
|
184
|
+
function $t(n) {
|
|
185
|
+
if (n === void 0 && (n = !1), Re === -1 || n) {
|
|
187
186
|
var e = document.createElement("div"), t = e.style;
|
|
188
|
-
t.width = "50px", t.height = "50px", t.overflow = "scroll", document.body.appendChild(e),
|
|
187
|
+
t.width = "50px", t.height = "50px", t.overflow = "scroll", document.body.appendChild(e), Re = e.offsetWidth - e.clientWidth, document.body.removeChild(e);
|
|
189
188
|
}
|
|
190
|
-
return
|
|
189
|
+
return Re;
|
|
191
190
|
}
|
|
192
|
-
var
|
|
193
|
-
function
|
|
194
|
-
if (n === void 0 && (n = !1),
|
|
191
|
+
var se = null;
|
|
192
|
+
function ke(n) {
|
|
193
|
+
if (n === void 0 && (n = !1), se === null || n) {
|
|
195
194
|
var e = document.createElement("div"), t = e.style;
|
|
196
195
|
t.width = "50px", t.height = "50px", t.overflow = "scroll", t.direction = "rtl";
|
|
197
|
-
var r = document.createElement("div"),
|
|
198
|
-
return
|
|
196
|
+
var r = document.createElement("div"), s = r.style;
|
|
197
|
+
return s.width = "100px", s.height = "100px", e.appendChild(r), document.body.appendChild(e), e.scrollLeft > 0 ? se = "positive-descending" : (e.scrollLeft = 1, e.scrollLeft === 0 ? se = "negative" : se = "positive-ascending"), document.body.removeChild(e), se;
|
|
199
198
|
}
|
|
200
|
-
return
|
|
199
|
+
return se;
|
|
201
200
|
}
|
|
202
|
-
var
|
|
201
|
+
var jt = 150, Bt = function(e) {
|
|
203
202
|
var t = e.columnIndex;
|
|
204
203
|
e.data;
|
|
205
204
|
var r = e.rowIndex;
|
|
206
205
|
return r + ":" + t;
|
|
207
|
-
},
|
|
208
|
-
process.env.NODE_ENV !== "production" && typeof window < "u" && typeof window.WeakSet < "u" && (
|
|
209
|
-
function
|
|
210
|
-
var e, t = n.getColumnOffset, r = n.getColumnStartIndexForOffset,
|
|
211
|
-
return e = /* @__PURE__ */ function(
|
|
212
|
-
|
|
213
|
-
function
|
|
206
|
+
}, de = null, fe = null, me = null;
|
|
207
|
+
process.env.NODE_ENV !== "production" && typeof window < "u" && typeof window.WeakSet < "u" && (de = /* @__PURE__ */ new WeakSet(), fe = /* @__PURE__ */ new WeakSet(), me = /* @__PURE__ */ new WeakSet());
|
|
208
|
+
function Kt(n) {
|
|
209
|
+
var e, t = n.getColumnOffset, r = n.getColumnStartIndexForOffset, s = n.getColumnStopIndexForStartIndex, l = n.getColumnWidth, a = n.getEstimatedTotalHeight, c = n.getEstimatedTotalWidth, f = n.getOffsetForColumnAndAlignment, g = n.getOffsetForRowAndAlignment, h = n.getRowHeight, _ = n.getRowOffset, i = n.getRowStartIndexForOffset, y = n.getRowStopIndexForStartIndex, w = n.initInstanceProps, S = n.shouldResetStyleCacheOnItemSizeChange, D = n.validateProps;
|
|
210
|
+
return e = /* @__PURE__ */ function(b) {
|
|
211
|
+
kt(I, b);
|
|
212
|
+
function I(P) {
|
|
214
213
|
var o;
|
|
215
|
-
return o =
|
|
216
|
-
instance:
|
|
214
|
+
return o = b.call(this, P) || this, o._instanceProps = w(o.props, Ae(o)), o._resetIsScrollingTimeoutId = null, o._outerRef = void 0, o.state = {
|
|
215
|
+
instance: Ae(o),
|
|
217
216
|
isScrolling: !1,
|
|
218
217
|
horizontalScrollDirection: "forward",
|
|
219
218
|
scrollLeft: typeof o.props.initialScrollLeft == "number" ? o.props.initialScrollLeft : 0,
|
|
220
219
|
scrollTop: typeof o.props.initialScrollTop == "number" ? o.props.initialScrollTop : 0,
|
|
221
220
|
scrollUpdateWasRequested: !1,
|
|
222
221
|
verticalScrollDirection: "forward"
|
|
223
|
-
}, o._callOnItemsRendered = void 0, o._callOnItemsRendered =
|
|
222
|
+
}, o._callOnItemsRendered = void 0, o._callOnItemsRendered = Te(function(u, d, m, C, p, T, z, L) {
|
|
224
223
|
return o.props.onItemsRendered({
|
|
225
|
-
overscanColumnStartIndex:
|
|
226
|
-
overscanColumnStopIndex:
|
|
227
|
-
overscanRowStartIndex:
|
|
228
|
-
overscanRowStopIndex:
|
|
229
|
-
visibleColumnStartIndex:
|
|
230
|
-
visibleColumnStopIndex:
|
|
224
|
+
overscanColumnStartIndex: u,
|
|
225
|
+
overscanColumnStopIndex: d,
|
|
226
|
+
overscanRowStartIndex: m,
|
|
227
|
+
overscanRowStopIndex: C,
|
|
228
|
+
visibleColumnStartIndex: p,
|
|
229
|
+
visibleColumnStopIndex: T,
|
|
231
230
|
visibleRowStartIndex: z,
|
|
232
|
-
visibleRowStopIndex:
|
|
231
|
+
visibleRowStopIndex: L
|
|
233
232
|
});
|
|
234
|
-
}), o._callOnScroll = void 0, o._callOnScroll =
|
|
233
|
+
}), o._callOnScroll = void 0, o._callOnScroll = Te(function(u, d, m, C, p) {
|
|
235
234
|
return o.props.onScroll({
|
|
236
|
-
horizontalScrollDirection:
|
|
237
|
-
scrollLeft:
|
|
238
|
-
scrollTop:
|
|
239
|
-
verticalScrollDirection:
|
|
240
|
-
scrollUpdateWasRequested:
|
|
235
|
+
horizontalScrollDirection: m,
|
|
236
|
+
scrollLeft: u,
|
|
237
|
+
scrollTop: d,
|
|
238
|
+
verticalScrollDirection: C,
|
|
239
|
+
scrollUpdateWasRequested: p
|
|
241
240
|
});
|
|
242
|
-
}), o._getItemStyle = void 0, o._getItemStyle = function(
|
|
243
|
-
var
|
|
244
|
-
if (z.hasOwnProperty(
|
|
245
|
-
|
|
241
|
+
}), o._getItemStyle = void 0, o._getItemStyle = function(u, d) {
|
|
242
|
+
var m = o.props, C = m.columnWidth, p = m.direction, T = m.rowHeight, z = o._getItemStyleCache(S && C, S && p, S && T), L = u + ":" + d, M;
|
|
243
|
+
if (z.hasOwnProperty(L))
|
|
244
|
+
M = z[L];
|
|
246
245
|
else {
|
|
247
|
-
var
|
|
248
|
-
z[
|
|
246
|
+
var E = t(o.props, d, o._instanceProps), R = p === "rtl";
|
|
247
|
+
z[L] = M = {
|
|
249
248
|
position: "absolute",
|
|
250
|
-
left: R ? void 0 :
|
|
251
|
-
right: R ?
|
|
252
|
-
top:
|
|
253
|
-
height:
|
|
254
|
-
width: l(o.props,
|
|
249
|
+
left: R ? void 0 : E,
|
|
250
|
+
right: R ? E : void 0,
|
|
251
|
+
top: _(o.props, u, o._instanceProps),
|
|
252
|
+
height: h(o.props, u, o._instanceProps),
|
|
253
|
+
width: l(o.props, d, o._instanceProps)
|
|
255
254
|
};
|
|
256
255
|
}
|
|
257
|
-
return
|
|
258
|
-
}, o._getItemStyleCache = void 0, o._getItemStyleCache =
|
|
256
|
+
return M;
|
|
257
|
+
}, o._getItemStyleCache = void 0, o._getItemStyleCache = Te(function(u, d, m) {
|
|
259
258
|
return {};
|
|
260
|
-
}), o._onScroll = function(
|
|
261
|
-
var
|
|
262
|
-
o.setState(function(
|
|
263
|
-
if (
|
|
259
|
+
}), o._onScroll = function(u) {
|
|
260
|
+
var d = u.currentTarget, m = d.clientHeight, C = d.clientWidth, p = d.scrollLeft, T = d.scrollTop, z = d.scrollHeight, L = d.scrollWidth;
|
|
261
|
+
o.setState(function(M) {
|
|
262
|
+
if (M.scrollLeft === p && M.scrollTop === T)
|
|
264
263
|
return null;
|
|
265
|
-
var
|
|
266
|
-
if (
|
|
267
|
-
switch (
|
|
264
|
+
var E = o.props.direction, R = p;
|
|
265
|
+
if (E === "rtl")
|
|
266
|
+
switch (ke()) {
|
|
268
267
|
case "negative":
|
|
269
|
-
R = -
|
|
268
|
+
R = -p;
|
|
270
269
|
break;
|
|
271
270
|
case "positive-descending":
|
|
272
|
-
R =
|
|
271
|
+
R = L - C - p;
|
|
273
272
|
break;
|
|
274
273
|
}
|
|
275
|
-
R = Math.max(0, Math.min(R,
|
|
276
|
-
var
|
|
274
|
+
R = Math.max(0, Math.min(R, L - C));
|
|
275
|
+
var F = Math.max(0, Math.min(T, z - m));
|
|
277
276
|
return {
|
|
278
277
|
isScrolling: !0,
|
|
279
|
-
horizontalScrollDirection:
|
|
278
|
+
horizontalScrollDirection: M.scrollLeft < p ? "forward" : "backward",
|
|
280
279
|
scrollLeft: R,
|
|
281
|
-
scrollTop:
|
|
282
|
-
verticalScrollDirection:
|
|
280
|
+
scrollTop: F,
|
|
281
|
+
verticalScrollDirection: M.scrollTop < T ? "forward" : "backward",
|
|
283
282
|
scrollUpdateWasRequested: !1
|
|
284
283
|
};
|
|
285
284
|
}, o._resetIsScrollingDebounced);
|
|
286
|
-
}, o._outerRefSetter = function(
|
|
287
|
-
var
|
|
288
|
-
o._outerRef =
|
|
285
|
+
}, o._outerRefSetter = function(u) {
|
|
286
|
+
var d = o.props.outerRef;
|
|
287
|
+
o._outerRef = u, typeof d == "function" ? d(u) : d != null && typeof d == "object" && d.hasOwnProperty("current") && (d.current = u);
|
|
289
288
|
}, o._resetIsScrollingDebounced = function() {
|
|
290
|
-
o._resetIsScrollingTimeoutId !== null &&
|
|
289
|
+
o._resetIsScrollingTimeoutId !== null && He(o._resetIsScrollingTimeoutId), o._resetIsScrollingTimeoutId = Gt(o._resetIsScrolling, jt);
|
|
291
290
|
}, o._resetIsScrolling = function() {
|
|
292
291
|
o._resetIsScrollingTimeoutId = null, o.setState({
|
|
293
292
|
isScrolling: !1
|
|
@@ -296,269 +295,269 @@ function rr(n) {
|
|
|
296
295
|
});
|
|
297
296
|
}, o;
|
|
298
297
|
}
|
|
299
|
-
|
|
300
|
-
return
|
|
298
|
+
I.getDerivedStateFromProps = function(o, u) {
|
|
299
|
+
return Zt(o, u), D(o), null;
|
|
301
300
|
};
|
|
302
|
-
var
|
|
303
|
-
return
|
|
304
|
-
var
|
|
305
|
-
|
|
306
|
-
return
|
|
307
|
-
horizontalScrollDirection:
|
|
308
|
-
scrollLeft:
|
|
309
|
-
scrollTop:
|
|
301
|
+
var W = I.prototype;
|
|
302
|
+
return W.scrollTo = function(o) {
|
|
303
|
+
var u = o.scrollLeft, d = o.scrollTop;
|
|
304
|
+
u !== void 0 && (u = Math.max(0, u)), d !== void 0 && (d = Math.max(0, d)), this.setState(function(m) {
|
|
305
|
+
return u === void 0 && (u = m.scrollLeft), d === void 0 && (d = m.scrollTop), m.scrollLeft === u && m.scrollTop === d ? null : {
|
|
306
|
+
horizontalScrollDirection: m.scrollLeft < u ? "forward" : "backward",
|
|
307
|
+
scrollLeft: u,
|
|
308
|
+
scrollTop: d,
|
|
310
309
|
scrollUpdateWasRequested: !0,
|
|
311
|
-
verticalScrollDirection:
|
|
310
|
+
verticalScrollDirection: m.scrollTop < d ? "forward" : "backward"
|
|
312
311
|
};
|
|
313
312
|
}, this._resetIsScrollingDebounced);
|
|
314
|
-
},
|
|
315
|
-
var
|
|
316
|
-
|
|
317
|
-
var
|
|
313
|
+
}, W.scrollToItem = function(o) {
|
|
314
|
+
var u = o.align, d = u === void 0 ? "auto" : u, m = o.columnIndex, C = o.rowIndex, p = this.props, T = p.columnCount, z = p.height, L = p.rowCount, M = p.width, E = this.state, R = E.scrollLeft, F = E.scrollTop, N = $t();
|
|
315
|
+
m !== void 0 && (m = Math.max(0, Math.min(m, T - 1))), C !== void 0 && (C = Math.max(0, Math.min(C, L - 1)));
|
|
316
|
+
var H = a(this.props, this._instanceProps), A = c(this.props, this._instanceProps), k = A > M ? N : 0, Z = H > z ? N : 0;
|
|
318
317
|
this.scrollTo({
|
|
319
|
-
scrollLeft:
|
|
320
|
-
scrollTop:
|
|
318
|
+
scrollLeft: m !== void 0 ? f(this.props, m, d, R, this._instanceProps, Z) : R,
|
|
319
|
+
scrollTop: C !== void 0 ? g(this.props, C, d, F, this._instanceProps, k) : F
|
|
321
320
|
});
|
|
322
|
-
},
|
|
323
|
-
var o = this.props,
|
|
321
|
+
}, W.componentDidMount = function() {
|
|
322
|
+
var o = this.props, u = o.initialScrollLeft, d = o.initialScrollTop;
|
|
324
323
|
if (this._outerRef != null) {
|
|
325
|
-
var
|
|
326
|
-
typeof
|
|
324
|
+
var m = this._outerRef;
|
|
325
|
+
typeof u == "number" && (m.scrollLeft = u), typeof d == "number" && (m.scrollTop = d);
|
|
327
326
|
}
|
|
328
327
|
this._callPropsCallbacks();
|
|
329
|
-
},
|
|
330
|
-
var o = this.props.direction,
|
|
331
|
-
if (
|
|
332
|
-
var
|
|
328
|
+
}, W.componentDidUpdate = function() {
|
|
329
|
+
var o = this.props.direction, u = this.state, d = u.scrollLeft, m = u.scrollTop, C = u.scrollUpdateWasRequested;
|
|
330
|
+
if (C && this._outerRef != null) {
|
|
331
|
+
var p = this._outerRef;
|
|
333
332
|
if (o === "rtl")
|
|
334
|
-
switch (
|
|
333
|
+
switch (ke()) {
|
|
335
334
|
case "negative":
|
|
336
|
-
|
|
335
|
+
p.scrollLeft = -d;
|
|
337
336
|
break;
|
|
338
337
|
case "positive-ascending":
|
|
339
|
-
|
|
338
|
+
p.scrollLeft = d;
|
|
340
339
|
break;
|
|
341
340
|
default:
|
|
342
|
-
var
|
|
343
|
-
|
|
341
|
+
var T = p.clientWidth, z = p.scrollWidth;
|
|
342
|
+
p.scrollLeft = z - T - d;
|
|
344
343
|
break;
|
|
345
344
|
}
|
|
346
345
|
else
|
|
347
|
-
|
|
348
|
-
|
|
346
|
+
p.scrollLeft = Math.max(0, d);
|
|
347
|
+
p.scrollTop = Math.max(0, m);
|
|
349
348
|
}
|
|
350
349
|
this._callPropsCallbacks();
|
|
351
|
-
},
|
|
352
|
-
this._resetIsScrollingTimeoutId !== null &&
|
|
353
|
-
},
|
|
354
|
-
var o = this.props,
|
|
355
|
-
if (
|
|
356
|
-
for (var
|
|
357
|
-
for (var
|
|
358
|
-
|
|
359
|
-
columnIndex:
|
|
360
|
-
data:
|
|
361
|
-
isScrolling:
|
|
350
|
+
}, W.componentWillUnmount = function() {
|
|
351
|
+
this._resetIsScrollingTimeoutId !== null && He(this._resetIsScrollingTimeoutId);
|
|
352
|
+
}, W.render = function() {
|
|
353
|
+
var o = this.props, u = o.children, d = o.className, m = o.columnCount, C = o.direction, p = o.height, T = o.innerRef, z = o.innerElementType, L = o.innerTagName, M = o.itemData, E = o.itemKey, R = E === void 0 ? Bt : E, F = o.outerElementType, N = o.outerTagName, H = o.rowCount, A = o.style, k = o.useIsScrolling, Z = o.width, J = this.state.isScrolling, Q = this._getHorizontalRangeToRender(), ie = Q[0], j = Q[1], le = this._getVerticalRangeToRender(), X = le[0], Y = le[1], ee = [];
|
|
354
|
+
if (m > 0 && H)
|
|
355
|
+
for (var B = X; B <= Y; B++)
|
|
356
|
+
for (var K = ie; K <= j; K++)
|
|
357
|
+
ee.push(ue(u, {
|
|
358
|
+
columnIndex: K,
|
|
359
|
+
data: M,
|
|
360
|
+
isScrolling: k ? J : void 0,
|
|
362
361
|
key: R({
|
|
363
|
-
columnIndex:
|
|
364
|
-
data:
|
|
365
|
-
rowIndex:
|
|
362
|
+
columnIndex: K,
|
|
363
|
+
data: M,
|
|
364
|
+
rowIndex: B
|
|
366
365
|
}),
|
|
367
|
-
rowIndex:
|
|
368
|
-
style: this._getItemStyle(
|
|
366
|
+
rowIndex: B,
|
|
367
|
+
style: this._getItemStyle(B, K)
|
|
369
368
|
}));
|
|
370
|
-
var
|
|
371
|
-
return
|
|
372
|
-
className:
|
|
369
|
+
var pe = a(this.props, this._instanceProps), te = c(this.props, this._instanceProps);
|
|
370
|
+
return ue(F || N || "div", {
|
|
371
|
+
className: d,
|
|
373
372
|
onScroll: this._onScroll,
|
|
374
373
|
ref: this._outerRefSetter,
|
|
375
|
-
style:
|
|
374
|
+
style: be({
|
|
376
375
|
position: "relative",
|
|
377
|
-
height:
|
|
378
|
-
width:
|
|
376
|
+
height: p,
|
|
377
|
+
width: Z,
|
|
379
378
|
overflow: "auto",
|
|
380
379
|
WebkitOverflowScrolling: "touch",
|
|
381
380
|
willChange: "transform",
|
|
382
|
-
direction:
|
|
383
|
-
},
|
|
384
|
-
},
|
|
385
|
-
children:
|
|
386
|
-
ref:
|
|
381
|
+
direction: C
|
|
382
|
+
}, A)
|
|
383
|
+
}, ue(z || L || "div", {
|
|
384
|
+
children: ee,
|
|
385
|
+
ref: T,
|
|
387
386
|
style: {
|
|
388
|
-
height:
|
|
389
|
-
pointerEvents:
|
|
390
|
-
width:
|
|
387
|
+
height: pe,
|
|
388
|
+
pointerEvents: J ? "none" : void 0,
|
|
389
|
+
width: te
|
|
391
390
|
}
|
|
392
391
|
}));
|
|
393
|
-
},
|
|
394
|
-
var o = this.props,
|
|
395
|
-
if (typeof
|
|
396
|
-
var
|
|
397
|
-
this._callOnItemsRendered(
|
|
392
|
+
}, W._callPropsCallbacks = function() {
|
|
393
|
+
var o = this.props, u = o.columnCount, d = o.onItemsRendered, m = o.onScroll, C = o.rowCount;
|
|
394
|
+
if (typeof d == "function" && u > 0 && C > 0) {
|
|
395
|
+
var p = this._getHorizontalRangeToRender(), T = p[0], z = p[1], L = p[2], M = p[3], E = this._getVerticalRangeToRender(), R = E[0], F = E[1], N = E[2], H = E[3];
|
|
396
|
+
this._callOnItemsRendered(T, z, R, F, L, M, N, H);
|
|
398
397
|
}
|
|
399
|
-
if (typeof
|
|
400
|
-
var
|
|
401
|
-
this._callOnScroll(
|
|
398
|
+
if (typeof m == "function") {
|
|
399
|
+
var A = this.state, k = A.horizontalScrollDirection, Z = A.scrollLeft, J = A.scrollTop, Q = A.scrollUpdateWasRequested, ie = A.verticalScrollDirection;
|
|
400
|
+
this._callOnScroll(Z, J, k, ie, Q);
|
|
402
401
|
}
|
|
403
|
-
},
|
|
404
|
-
var o = this.props,
|
|
405
|
-
if (
|
|
402
|
+
}, W._getHorizontalRangeToRender = function() {
|
|
403
|
+
var o = this.props, u = o.columnCount, d = o.overscanColumnCount, m = o.overscanColumnsCount, C = o.overscanCount, p = o.rowCount, T = this.state, z = T.horizontalScrollDirection, L = T.isScrolling, M = T.scrollLeft, E = d || m || C || 1;
|
|
404
|
+
if (u === 0 || p === 0)
|
|
406
405
|
return [0, 0, 0, 0];
|
|
407
|
-
var R = r(this.props,
|
|
408
|
-
return [Math.max(0, R -
|
|
409
|
-
},
|
|
410
|
-
var o = this.props,
|
|
411
|
-
if (
|
|
406
|
+
var R = r(this.props, M, this._instanceProps), F = s(this.props, R, M, this._instanceProps), N = !L || z === "backward" ? Math.max(1, E) : 1, H = !L || z === "forward" ? Math.max(1, E) : 1;
|
|
407
|
+
return [Math.max(0, R - N), Math.max(0, Math.min(u - 1, F + H)), R, F];
|
|
408
|
+
}, W._getVerticalRangeToRender = function() {
|
|
409
|
+
var o = this.props, u = o.columnCount, d = o.overscanCount, m = o.overscanRowCount, C = o.overscanRowsCount, p = o.rowCount, T = this.state, z = T.isScrolling, L = T.verticalScrollDirection, M = T.scrollTop, E = m || C || d || 1;
|
|
410
|
+
if (u === 0 || p === 0)
|
|
412
411
|
return [0, 0, 0, 0];
|
|
413
|
-
var R =
|
|
414
|
-
return [Math.max(0, R -
|
|
415
|
-
},
|
|
416
|
-
}(
|
|
412
|
+
var R = i(this.props, M, this._instanceProps), F = y(this.props, R, M, this._instanceProps), N = !z || L === "backward" ? Math.max(1, E) : 1, H = !z || L === "forward" ? Math.max(1, E) : 1;
|
|
413
|
+
return [Math.max(0, R - N), Math.max(0, Math.min(p - 1, F + H)), R, F];
|
|
414
|
+
}, I;
|
|
415
|
+
}(at), e.defaultProps = {
|
|
417
416
|
direction: "ltr",
|
|
418
417
|
itemData: void 0,
|
|
419
418
|
useIsScrolling: !1
|
|
420
419
|
}, e;
|
|
421
420
|
}
|
|
422
|
-
var
|
|
423
|
-
var r = e.children,
|
|
421
|
+
var Zt = function(e, t) {
|
|
422
|
+
var r = e.children, s = e.direction, l = e.height, a = e.innerTagName, c = e.outerTagName, f = e.overscanColumnsCount, g = e.overscanCount, h = e.overscanRowsCount, _ = e.width, i = t.instance;
|
|
424
423
|
if (process.env.NODE_ENV !== "production") {
|
|
425
|
-
if (typeof
|
|
424
|
+
if (typeof g == "number" && de && !de.has(i) && (de.add(i), console.warn("The overscanCount prop has been deprecated. Please use the overscanColumnCount and overscanRowCount props instead.")), (typeof f == "number" || typeof h == "number") && fe && !fe.has(i) && (fe.add(i), console.warn("The overscanColumnsCount and overscanRowsCount props have been deprecated. Please use the overscanColumnCount and overscanRowCount props instead.")), (a != null || c != null) && me && !me.has(i) && (me.add(i), console.warn("The innerTagName and outerTagName props have been deprecated. Please use the innerElementType and outerElementType props instead.")), r == null)
|
|
426
425
|
throw Error('An invalid "children" prop has been specified. Value should be a React component. ' + ('"' + (r === null ? "null" : typeof r) + '" was specified.'));
|
|
427
|
-
switch (
|
|
426
|
+
switch (s) {
|
|
428
427
|
case "ltr":
|
|
429
428
|
case "rtl":
|
|
430
429
|
break;
|
|
431
430
|
default:
|
|
432
|
-
throw Error('An invalid "direction" prop has been specified. Value should be either "ltr" or "rtl". ' + ('"' +
|
|
431
|
+
throw Error('An invalid "direction" prop has been specified. Value should be either "ltr" or "rtl". ' + ('"' + s + '" was specified.'));
|
|
433
432
|
}
|
|
434
|
-
if (typeof
|
|
435
|
-
throw Error('An invalid "width" prop has been specified. Grids must specify a number for width. ' + ('"' + (
|
|
433
|
+
if (typeof _ != "number")
|
|
434
|
+
throw Error('An invalid "width" prop has been specified. Grids must specify a number for width. ' + ('"' + (_ === null ? "null" : typeof _) + '" was specified.'));
|
|
436
435
|
if (typeof l != "number")
|
|
437
436
|
throw Error('An invalid "height" prop has been specified. Grids must specify a number for height. ' + ('"' + (l === null ? "null" : typeof l) + '" was specified.'));
|
|
438
437
|
}
|
|
439
|
-
},
|
|
440
|
-
var r = e.rowCount,
|
|
438
|
+
}, Ue = 50, Ke = function(e, t) {
|
|
439
|
+
var r = e.rowCount, s = t.rowMetadataMap, l = t.estimatedRowHeight, a = t.lastMeasuredRowIndex, c = 0;
|
|
441
440
|
if (a >= r && (a = r - 1), a >= 0) {
|
|
442
|
-
var
|
|
443
|
-
c =
|
|
441
|
+
var f = s[a];
|
|
442
|
+
c = f.offset + f.size;
|
|
444
443
|
}
|
|
445
|
-
var
|
|
446
|
-
return c +
|
|
447
|
-
},
|
|
448
|
-
var r = e.columnCount,
|
|
444
|
+
var g = r - a - 1, h = g * l;
|
|
445
|
+
return c + h;
|
|
446
|
+
}, Ze = function(e, t) {
|
|
447
|
+
var r = e.columnCount, s = t.columnMetadataMap, l = t.estimatedColumnWidth, a = t.lastMeasuredColumnIndex, c = 0;
|
|
449
448
|
if (a >= r && (a = r - 1), a >= 0) {
|
|
450
|
-
var
|
|
451
|
-
c =
|
|
449
|
+
var f = s[a];
|
|
450
|
+
c = f.offset + f.size;
|
|
452
451
|
}
|
|
453
|
-
var
|
|
454
|
-
return c +
|
|
455
|
-
},
|
|
452
|
+
var g = r - a - 1, h = g * l;
|
|
453
|
+
return c + h;
|
|
454
|
+
}, $ = function(e, t, r, s) {
|
|
456
455
|
var l, a, c;
|
|
457
|
-
if (e === "column" ? (l =
|
|
458
|
-
var
|
|
456
|
+
if (e === "column" ? (l = s.columnMetadataMap, a = t.columnWidth, c = s.lastMeasuredColumnIndex) : (l = s.rowMetadataMap, a = t.rowHeight, c = s.lastMeasuredRowIndex), r > c) {
|
|
457
|
+
var f = 0;
|
|
459
458
|
if (c >= 0) {
|
|
460
|
-
var
|
|
461
|
-
|
|
459
|
+
var g = l[c];
|
|
460
|
+
f = g.offset + g.size;
|
|
462
461
|
}
|
|
463
|
-
for (var
|
|
464
|
-
var
|
|
465
|
-
l[
|
|
466
|
-
offset:
|
|
467
|
-
size:
|
|
468
|
-
},
|
|
462
|
+
for (var h = c + 1; h <= r; h++) {
|
|
463
|
+
var _ = a(h);
|
|
464
|
+
l[h] = {
|
|
465
|
+
offset: f,
|
|
466
|
+
size: _
|
|
467
|
+
}, f += _;
|
|
469
468
|
}
|
|
470
|
-
e === "column" ?
|
|
469
|
+
e === "column" ? s.lastMeasuredColumnIndex = r : s.lastMeasuredRowIndex = r;
|
|
471
470
|
}
|
|
472
471
|
return l[r];
|
|
473
|
-
},
|
|
472
|
+
}, Ve = function(e, t, r, s) {
|
|
474
473
|
var l, a;
|
|
475
474
|
e === "column" ? (l = r.columnMetadataMap, a = r.lastMeasuredColumnIndex) : (l = r.rowMetadataMap, a = r.lastMeasuredRowIndex);
|
|
476
475
|
var c = a > 0 ? l[a].offset : 0;
|
|
477
|
-
return c >=
|
|
478
|
-
},
|
|
479
|
-
for (; l <=
|
|
480
|
-
var c = l + Math.floor((
|
|
481
|
-
if (
|
|
476
|
+
return c >= s ? Je(e, t, r, a, 0, s) : Jt(e, t, r, Math.max(0, a), s);
|
|
477
|
+
}, Je = function(e, t, r, s, l, a) {
|
|
478
|
+
for (; l <= s; ) {
|
|
479
|
+
var c = l + Math.floor((s - l) / 2), f = $(e, t, c, r).offset;
|
|
480
|
+
if (f === a)
|
|
482
481
|
return c;
|
|
483
|
-
|
|
482
|
+
f < a ? l = c + 1 : f > a && (s = c - 1);
|
|
484
483
|
}
|
|
485
484
|
return l > 0 ? l - 1 : 0;
|
|
486
|
-
},
|
|
487
|
-
for (var a = e === "column" ? t.columnCount : t.rowCount, c = 1;
|
|
488
|
-
|
|
489
|
-
return
|
|
490
|
-
},
|
|
491
|
-
var
|
|
492
|
-
switch (
|
|
485
|
+
}, Jt = function(e, t, r, s, l) {
|
|
486
|
+
for (var a = e === "column" ? t.columnCount : t.rowCount, c = 1; s < a && $(e, t, s, r).offset < l; )
|
|
487
|
+
s += c, c *= 2;
|
|
488
|
+
return Je(e, t, r, Math.min(s, a - 1), Math.floor(s / 2), l);
|
|
489
|
+
}, qe = function(e, t, r, s, l, a, c) {
|
|
490
|
+
var f = e === "column" ? t.width : t.height, g = $(e, t, r, a), h = e === "column" ? Ze(t, a) : Ke(t, a), _ = Math.max(0, Math.min(h - f, g.offset)), i = Math.max(0, g.offset - f + c + g.size);
|
|
491
|
+
switch (s === "smart" && (l >= i - f && l <= _ + f ? s = "auto" : s = "center"), s) {
|
|
493
492
|
case "start":
|
|
494
|
-
return
|
|
493
|
+
return _;
|
|
495
494
|
case "end":
|
|
496
|
-
return
|
|
495
|
+
return i;
|
|
497
496
|
case "center":
|
|
498
|
-
return Math.round(
|
|
497
|
+
return Math.round(i + (_ - i) / 2);
|
|
499
498
|
case "auto":
|
|
500
499
|
default:
|
|
501
|
-
return l >=
|
|
500
|
+
return l >= i && l <= _ ? l : i > _ || l < i ? i : _;
|
|
502
501
|
}
|
|
503
|
-
},
|
|
502
|
+
}, Qt = /* @__PURE__ */ Kt({
|
|
504
503
|
getColumnOffset: function(e, t, r) {
|
|
505
|
-
return
|
|
504
|
+
return $("column", e, t, r).offset;
|
|
506
505
|
},
|
|
507
506
|
getColumnStartIndexForOffset: function(e, t, r) {
|
|
508
|
-
return
|
|
507
|
+
return Ve("column", e, r, t);
|
|
509
508
|
},
|
|
510
|
-
getColumnStopIndexForStartIndex: function(e, t, r,
|
|
511
|
-
for (var l = e.columnCount, a = e.width, c =
|
|
512
|
-
|
|
513
|
-
return
|
|
509
|
+
getColumnStopIndexForStartIndex: function(e, t, r, s) {
|
|
510
|
+
for (var l = e.columnCount, a = e.width, c = $("column", e, t, s), f = r + a, g = c.offset + c.size, h = t; h < l - 1 && g < f; )
|
|
511
|
+
h++, g += $("column", e, h, s).size;
|
|
512
|
+
return h;
|
|
514
513
|
},
|
|
515
514
|
getColumnWidth: function(e, t, r) {
|
|
516
515
|
return r.columnMetadataMap[t].size;
|
|
517
516
|
},
|
|
518
|
-
getEstimatedTotalHeight:
|
|
519
|
-
getEstimatedTotalWidth:
|
|
520
|
-
getOffsetForColumnAndAlignment: function(e, t, r,
|
|
521
|
-
return
|
|
517
|
+
getEstimatedTotalHeight: Ke,
|
|
518
|
+
getEstimatedTotalWidth: Ze,
|
|
519
|
+
getOffsetForColumnAndAlignment: function(e, t, r, s, l, a) {
|
|
520
|
+
return qe("column", e, t, r, s, l, a);
|
|
522
521
|
},
|
|
523
|
-
getOffsetForRowAndAlignment: function(e, t, r,
|
|
524
|
-
return
|
|
522
|
+
getOffsetForRowAndAlignment: function(e, t, r, s, l, a) {
|
|
523
|
+
return qe("row", e, t, r, s, l, a);
|
|
525
524
|
},
|
|
526
525
|
getRowOffset: function(e, t, r) {
|
|
527
|
-
return
|
|
526
|
+
return $("row", e, t, r).offset;
|
|
528
527
|
},
|
|
529
528
|
getRowHeight: function(e, t, r) {
|
|
530
529
|
return r.rowMetadataMap[t].size;
|
|
531
530
|
},
|
|
532
531
|
getRowStartIndexForOffset: function(e, t, r) {
|
|
533
|
-
return
|
|
532
|
+
return Ve("row", e, r, t);
|
|
534
533
|
},
|
|
535
|
-
getRowStopIndexForStartIndex: function(e, t, r,
|
|
536
|
-
for (var l = e.rowCount, a = e.height, c =
|
|
537
|
-
|
|
538
|
-
return
|
|
534
|
+
getRowStopIndexForStartIndex: function(e, t, r, s) {
|
|
535
|
+
for (var l = e.rowCount, a = e.height, c = $("row", e, t, s), f = r + a, g = c.offset + c.size, h = t; h < l - 1 && g < f; )
|
|
536
|
+
h++, g += $("row", e, h, s).size;
|
|
537
|
+
return h;
|
|
539
538
|
},
|
|
540
539
|
initInstanceProps: function(e, t) {
|
|
541
|
-
var r = e,
|
|
540
|
+
var r = e, s = r.estimatedColumnWidth, l = r.estimatedRowHeight, a = {
|
|
542
541
|
columnMetadataMap: {},
|
|
543
|
-
estimatedColumnWidth:
|
|
544
|
-
estimatedRowHeight: l ||
|
|
542
|
+
estimatedColumnWidth: s || Ue,
|
|
543
|
+
estimatedRowHeight: l || Ue,
|
|
545
544
|
lastMeasuredColumnIndex: -1,
|
|
546
545
|
lastMeasuredRowIndex: -1,
|
|
547
546
|
rowMetadataMap: {}
|
|
548
547
|
};
|
|
549
|
-
return t.resetAfterColumnIndex = function(c,
|
|
550
|
-
|
|
548
|
+
return t.resetAfterColumnIndex = function(c, f) {
|
|
549
|
+
f === void 0 && (f = !0), t.resetAfterIndices({
|
|
551
550
|
columnIndex: c,
|
|
552
|
-
shouldForceUpdate:
|
|
551
|
+
shouldForceUpdate: f
|
|
553
552
|
});
|
|
554
|
-
}, t.resetAfterRowIndex = function(c,
|
|
555
|
-
|
|
553
|
+
}, t.resetAfterRowIndex = function(c, f) {
|
|
554
|
+
f === void 0 && (f = !0), t.resetAfterIndices({
|
|
556
555
|
rowIndex: c,
|
|
557
|
-
shouldForceUpdate:
|
|
556
|
+
shouldForceUpdate: f
|
|
558
557
|
});
|
|
559
558
|
}, t.resetAfterIndices = function(c) {
|
|
560
|
-
var
|
|
561
|
-
typeof
|
|
559
|
+
var f = c.columnIndex, g = c.rowIndex, h = c.shouldForceUpdate, _ = h === void 0 ? !0 : h;
|
|
560
|
+
typeof f == "number" && (a.lastMeasuredColumnIndex = Math.min(a.lastMeasuredColumnIndex, f - 1)), typeof g == "number" && (a.lastMeasuredRowIndex = Math.min(a.lastMeasuredRowIndex, g - 1)), t._getItemStyleCache(-1), _ && t.forceUpdate();
|
|
562
561
|
}, a;
|
|
563
562
|
},
|
|
564
563
|
shouldResetStyleCacheOnItemSizeChange: !1,
|
|
@@ -573,7 +572,7 @@ var or = function(e, t) {
|
|
|
573
572
|
}
|
|
574
573
|
});
|
|
575
574
|
process.env.NODE_ENV;
|
|
576
|
-
function
|
|
575
|
+
function Ge(n, e) {
|
|
577
576
|
for (var t in n)
|
|
578
577
|
if (!(t in e))
|
|
579
578
|
return !0;
|
|
@@ -582,100 +581,100 @@ function Ye(n, e) {
|
|
|
582
581
|
return !0;
|
|
583
582
|
return !1;
|
|
584
583
|
}
|
|
585
|
-
var
|
|
586
|
-
function
|
|
587
|
-
var t = n.style, r =
|
|
588
|
-
return !
|
|
584
|
+
var Xt = ["style"], Yt = ["style"];
|
|
585
|
+
function er(n, e) {
|
|
586
|
+
var t = n.style, r = Fe(n, Xt), s = e.style, l = Fe(e, Yt);
|
|
587
|
+
return !Ge(t, s) && !Ge(r, l);
|
|
589
588
|
}
|
|
590
|
-
let
|
|
591
|
-
typeof window < "u" ?
|
|
592
|
-
let
|
|
593
|
-
const
|
|
594
|
-
|
|
595
|
-
return
|
|
596
|
-
}) : (
|
|
597
|
-
|
|
598
|
-
},
|
|
599
|
-
const t =
|
|
600
|
-
|
|
601
|
-
}), r =
|
|
602
|
-
|
|
603
|
-
},
|
|
589
|
+
let V;
|
|
590
|
+
typeof window < "u" ? V = window : typeof self < "u" ? V = self : V = global;
|
|
591
|
+
let Le = null, Me = null;
|
|
592
|
+
const $e = 20, xe = V.clearTimeout, je = V.setTimeout, ye = V.cancelAnimationFrame || V.mozCancelAnimationFrame || V.webkitCancelAnimationFrame, Be = V.requestAnimationFrame || V.mozRequestAnimationFrame || V.webkitRequestAnimationFrame;
|
|
593
|
+
ye == null || Be == null ? (Le = xe, Me = function(e) {
|
|
594
|
+
return je(e, $e);
|
|
595
|
+
}) : (Le = function([e, t]) {
|
|
596
|
+
ye(e), xe(t);
|
|
597
|
+
}, Me = function(e) {
|
|
598
|
+
const t = Be(function() {
|
|
599
|
+
xe(r), e();
|
|
600
|
+
}), r = je(function() {
|
|
601
|
+
ye(t), e();
|
|
602
|
+
}, $e);
|
|
604
603
|
return [t, r];
|
|
605
604
|
});
|
|
606
|
-
function
|
|
607
|
-
let e, t, r,
|
|
608
|
-
const
|
|
609
|
-
if (!
|
|
610
|
-
a = function(
|
|
611
|
-
const
|
|
612
|
-
|
|
613
|
-
}, l = function(
|
|
614
|
-
return
|
|
615
|
-
}, c = function(
|
|
616
|
-
if (
|
|
605
|
+
function tr(n) {
|
|
606
|
+
let e, t, r, s, l, a, c;
|
|
607
|
+
const f = typeof document < "u" && document.attachEvent;
|
|
608
|
+
if (!f) {
|
|
609
|
+
a = function(b) {
|
|
610
|
+
const I = b.__resizeTriggers__, W = I.firstElementChild, P = I.lastElementChild, o = W.firstElementChild;
|
|
611
|
+
P.scrollLeft = P.scrollWidth, P.scrollTop = P.scrollHeight, o.style.width = W.offsetWidth + 1 + "px", o.style.height = W.offsetHeight + 1 + "px", W.scrollLeft = W.scrollWidth, W.scrollTop = W.scrollHeight;
|
|
612
|
+
}, l = function(b) {
|
|
613
|
+
return b.offsetWidth !== b.__resizeLast__.width || b.offsetHeight !== b.__resizeLast__.height;
|
|
614
|
+
}, c = function(b) {
|
|
615
|
+
if (b.target.className && typeof b.target.className.indexOf == "function" && b.target.className.indexOf("contract-trigger") < 0 && b.target.className.indexOf("expand-trigger") < 0)
|
|
617
616
|
return;
|
|
618
|
-
const
|
|
619
|
-
a(this), this.__resizeRAF__ &&
|
|
620
|
-
l(
|
|
621
|
-
o.call(
|
|
617
|
+
const I = this;
|
|
618
|
+
a(this), this.__resizeRAF__ && Le(this.__resizeRAF__), this.__resizeRAF__ = Me(function() {
|
|
619
|
+
l(I) && (I.__resizeLast__.width = I.offsetWidth, I.__resizeLast__.height = I.offsetHeight, I.__resizeListeners__.forEach(function(o) {
|
|
620
|
+
o.call(I, b);
|
|
622
621
|
}));
|
|
623
622
|
});
|
|
624
623
|
};
|
|
625
|
-
let
|
|
624
|
+
let i = !1, y = "";
|
|
626
625
|
r = "animationstart";
|
|
627
|
-
const
|
|
628
|
-
let
|
|
626
|
+
const w = "Webkit Moz O ms".split(" ");
|
|
627
|
+
let S = "webkitAnimationStart animationstart oAnimationStart MSAnimationStart".split(" "), D = "";
|
|
629
628
|
{
|
|
630
|
-
const
|
|
631
|
-
if (
|
|
632
|
-
for (let
|
|
633
|
-
if (
|
|
634
|
-
|
|
629
|
+
const b = document.createElement("fakeelement");
|
|
630
|
+
if (b.style.animationName !== void 0 && (i = !0), i === !1) {
|
|
631
|
+
for (let I = 0; I < w.length; I++)
|
|
632
|
+
if (b.style[w[I] + "AnimationName"] !== void 0) {
|
|
633
|
+
D = w[I], y = "-" + D.toLowerCase() + "-", r = S[I], i = !0;
|
|
635
634
|
break;
|
|
636
635
|
}
|
|
637
636
|
}
|
|
638
637
|
}
|
|
639
|
-
t = "resizeanim", e = "@" +
|
|
638
|
+
t = "resizeanim", e = "@" + y + "keyframes " + t + " { from { opacity: 0; } to { opacity: 0; } } ", s = y + "animation: 1ms " + t + "; ";
|
|
640
639
|
}
|
|
641
|
-
const
|
|
642
|
-
if (!
|
|
643
|
-
const
|
|
644
|
-
|
|
640
|
+
const g = function(i) {
|
|
641
|
+
if (!i.getElementById("detectElementResize")) {
|
|
642
|
+
const y = (e || "") + ".resize-triggers { " + (s || "") + 'visibility: hidden; opacity: 0; } .resize-triggers, .resize-triggers > div, .contract-trigger:before { content: " "; display: block; position: absolute; top: 0; left: 0; height: 100%; width: 100%; overflow: hidden; z-index: -1; } .resize-triggers > div { background: #eee; overflow: auto; } .contract-trigger:before { width: 200%; height: 200%; }', w = i.head || i.getElementsByTagName("head")[0], S = i.createElement("style");
|
|
643
|
+
S.id = "detectElementResize", S.type = "text/css", n != null && S.setAttribute("nonce", n), S.styleSheet ? S.styleSheet.cssText = y : S.appendChild(i.createTextNode(y)), w.appendChild(S);
|
|
645
644
|
}
|
|
646
645
|
};
|
|
647
646
|
return {
|
|
648
|
-
addResizeListener: function(
|
|
649
|
-
if (
|
|
650
|
-
|
|
647
|
+
addResizeListener: function(i, y) {
|
|
648
|
+
if (f)
|
|
649
|
+
i.attachEvent("onresize", y);
|
|
651
650
|
else {
|
|
652
|
-
if (!
|
|
653
|
-
const
|
|
654
|
-
|
|
655
|
-
const
|
|
656
|
-
|
|
657
|
-
const
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
},
|
|
651
|
+
if (!i.__resizeTriggers__) {
|
|
652
|
+
const w = i.ownerDocument, S = V.getComputedStyle(i);
|
|
653
|
+
S && S.position === "static" && (i.style.position = "relative"), g(w), i.__resizeLast__ = {}, i.__resizeListeners__ = [], (i.__resizeTriggers__ = w.createElement("div")).className = "resize-triggers";
|
|
654
|
+
const D = w.createElement("div");
|
|
655
|
+
D.className = "expand-trigger", D.appendChild(w.createElement("div"));
|
|
656
|
+
const b = w.createElement("div");
|
|
657
|
+
b.className = "contract-trigger", i.__resizeTriggers__.appendChild(D), i.__resizeTriggers__.appendChild(b), i.appendChild(i.__resizeTriggers__), a(i), i.addEventListener("scroll", c, !0), r && (i.__resizeTriggers__.__animationListener__ = function(W) {
|
|
658
|
+
W.animationName === t && a(i);
|
|
659
|
+
}, i.__resizeTriggers__.addEventListener(r, i.__resizeTriggers__.__animationListener__));
|
|
661
660
|
}
|
|
662
|
-
|
|
661
|
+
i.__resizeListeners__.push(y);
|
|
663
662
|
}
|
|
664
663
|
},
|
|
665
|
-
removeResizeListener: function(
|
|
666
|
-
if (
|
|
667
|
-
|
|
668
|
-
else if (
|
|
669
|
-
|
|
664
|
+
removeResizeListener: function(i, y) {
|
|
665
|
+
if (f)
|
|
666
|
+
i.detachEvent("onresize", y);
|
|
667
|
+
else if (i.__resizeListeners__.splice(i.__resizeListeners__.indexOf(y), 1), !i.__resizeListeners__.length) {
|
|
668
|
+
i.removeEventListener("scroll", c, !0), i.__resizeTriggers__.__animationListener__ && (i.__resizeTriggers__.removeEventListener(r, i.__resizeTriggers__.__animationListener__), i.__resizeTriggers__.__animationListener__ = null);
|
|
670
669
|
try {
|
|
671
|
-
|
|
670
|
+
i.__resizeTriggers__ = !i.removeChild(i.__resizeTriggers__);
|
|
672
671
|
} catch {
|
|
673
672
|
}
|
|
674
673
|
}
|
|
675
674
|
}
|
|
676
675
|
};
|
|
677
676
|
}
|
|
678
|
-
class
|
|
677
|
+
class rr extends lt {
|
|
679
678
|
constructor(...e) {
|
|
680
679
|
super(...e), this.state = {
|
|
681
680
|
height: this.props.defaultHeight || 0,
|
|
@@ -685,27 +684,27 @@ class ur extends pt {
|
|
|
685
684
|
const {
|
|
686
685
|
disableHeight: t,
|
|
687
686
|
disableWidth: r,
|
|
688
|
-
onResize:
|
|
687
|
+
onResize: s
|
|
689
688
|
} = this.props;
|
|
690
689
|
if (this._parentNode) {
|
|
691
|
-
const l = window.getComputedStyle(this._parentNode) || {}, a = parseFloat(l.paddingLeft || "0"), c = parseFloat(l.paddingRight || "0"),
|
|
692
|
-
if (!t && this.state.height !==
|
|
690
|
+
const l = window.getComputedStyle(this._parentNode) || {}, a = parseFloat(l.paddingLeft || "0"), c = parseFloat(l.paddingRight || "0"), f = parseFloat(l.paddingTop || "0"), g = parseFloat(l.paddingBottom || "0"), h = this._parentNode.getBoundingClientRect(), _ = h.height - f - g, i = h.width - a - c;
|
|
691
|
+
if (!t && this.state.height !== _ || !r && this.state.width !== i) {
|
|
693
692
|
this.setState({
|
|
694
|
-
height:
|
|
695
|
-
width:
|
|
693
|
+
height: _,
|
|
694
|
+
width: i
|
|
696
695
|
});
|
|
697
|
-
const
|
|
696
|
+
const y = () => {
|
|
698
697
|
this._didLogDeprecationWarning || (this._didLogDeprecationWarning = !0, console.warn("scaledWidth and scaledHeight parameters have been deprecated; use width and height instead"));
|
|
699
698
|
};
|
|
700
|
-
typeof
|
|
701
|
-
height:
|
|
702
|
-
width:
|
|
699
|
+
typeof s == "function" && s({
|
|
700
|
+
height: _,
|
|
701
|
+
width: i,
|
|
703
702
|
// TODO Remove these params in the next major release
|
|
704
703
|
get scaledHeight() {
|
|
705
|
-
return
|
|
704
|
+
return y(), _;
|
|
706
705
|
},
|
|
707
706
|
get scaledWidth() {
|
|
708
|
-
return
|
|
707
|
+
return y(), i;
|
|
709
708
|
}
|
|
710
709
|
});
|
|
711
710
|
}
|
|
@@ -723,7 +722,7 @@ class ur extends pt {
|
|
|
723
722
|
const r = t.ownerDocument.defaultView.ResizeObserver;
|
|
724
723
|
r != null ? (this._resizeObserver = new r(() => {
|
|
725
724
|
this._timeoutId = setTimeout(this._onResize, 0);
|
|
726
|
-
}), this._resizeObserver.observe(t)) : (this._detectElementResize =
|
|
725
|
+
}), this._resizeObserver.observe(t)) : (this._detectElementResize = tr(e), this._detectElementResize.addResizeListener(t, this._onResize)), this._onResize();
|
|
727
726
|
}
|
|
728
727
|
}
|
|
729
728
|
componentWillUnmount() {
|
|
@@ -734,55 +733,62 @@ class ur extends pt {
|
|
|
734
733
|
children: e,
|
|
735
734
|
defaultHeight: t,
|
|
736
735
|
defaultWidth: r,
|
|
737
|
-
disableHeight:
|
|
736
|
+
disableHeight: s = !1,
|
|
738
737
|
disableWidth: l = !1,
|
|
739
738
|
doNotBailOutOnEmptyChildren: a = !1,
|
|
740
739
|
nonce: c,
|
|
741
|
-
onResize:
|
|
742
|
-
style:
|
|
743
|
-
tagName:
|
|
744
|
-
...
|
|
740
|
+
onResize: f,
|
|
741
|
+
style: g = {},
|
|
742
|
+
tagName: h = "div",
|
|
743
|
+
..._
|
|
745
744
|
} = this.props, {
|
|
746
|
-
height:
|
|
747
|
-
width:
|
|
748
|
-
} = this.state,
|
|
745
|
+
height: i,
|
|
746
|
+
width: y
|
|
747
|
+
} = this.state, w = {
|
|
749
748
|
overflow: "visible"
|
|
750
|
-
},
|
|
751
|
-
let
|
|
752
|
-
return
|
|
749
|
+
}, S = {};
|
|
750
|
+
let D = !1;
|
|
751
|
+
return s || (i === 0 && (D = !0), w.height = 0, S.height = i, S.scaledHeight = i), l || (y === 0 && (D = !0), w.width = 0, S.width = y, S.scaledWidth = y), a && (D = !1), ue(h, {
|
|
753
752
|
ref: this._setRef,
|
|
754
753
|
style: {
|
|
755
|
-
...
|
|
756
|
-
...
|
|
754
|
+
...w,
|
|
755
|
+
...g
|
|
757
756
|
},
|
|
758
|
-
...
|
|
759
|
-
}, !
|
|
757
|
+
..._
|
|
758
|
+
}, !D && e(S));
|
|
760
759
|
}
|
|
761
760
|
}
|
|
762
|
-
const
|
|
763
|
-
|
|
761
|
+
const or = class {
|
|
762
|
+
get sx() {
|
|
763
|
+
return window.devicePixelRatio || 1;
|
|
764
|
+
}
|
|
765
|
+
get sy() {
|
|
766
|
+
return window.devicePixelRatio || 1;
|
|
767
|
+
}
|
|
768
|
+
}, nr = ct(({ columnIndex: n, rowIndex: e, data: t, style: r }) => {
|
|
769
|
+
const s = Wt(
|
|
764
770
|
e,
|
|
765
771
|
n,
|
|
766
772
|
t.columnCount,
|
|
767
773
|
t.isDualPageWithCover
|
|
768
774
|
);
|
|
769
|
-
if (
|
|
775
|
+
if (s <= 0)
|
|
770
776
|
return null;
|
|
771
777
|
if (t.isDualPageWithCover) {
|
|
772
|
-
const a =
|
|
773
|
-
if (e === 0 &&
|
|
774
|
-
const
|
|
778
|
+
const a = s === t.totalPages && t.totalPages % 2 === 0;
|
|
779
|
+
if (e === 0 && s === 1 || a && n === 0) {
|
|
780
|
+
const f = t.columnWidths.reduce((g, h) => g + h, 0);
|
|
775
781
|
return /* @__PURE__ */ x(
|
|
776
782
|
"div",
|
|
777
783
|
{
|
|
778
784
|
style: {
|
|
779
785
|
...r,
|
|
780
|
-
width:
|
|
786
|
+
width: f,
|
|
781
787
|
display: "flex",
|
|
782
788
|
justifyContent: "center",
|
|
783
789
|
alignItems: "flex-start"
|
|
784
790
|
},
|
|
785
|
-
children: /* @__PURE__ */ x(
|
|
791
|
+
children: /* @__PURE__ */ x(Ce, { style: { position: "relative" }, pageNumber: s }, s)
|
|
786
792
|
}
|
|
787
793
|
);
|
|
788
794
|
}
|
|
@@ -796,229 +802,227 @@ const dr = ht(({ columnIndex: n, rowIndex: e, data: t, style: r }) => {
|
|
|
796
802
|
justifyContent: n === 0 ? "flex-end" : "flex-start",
|
|
797
803
|
alignItems: "flex-start"
|
|
798
804
|
},
|
|
799
|
-
children: /* @__PURE__ */ x(
|
|
805
|
+
children: /* @__PURE__ */ x(Ce, { style: { position: "relative" }, pageNumber: s }, s)
|
|
800
806
|
}
|
|
801
|
-
) : /* @__PURE__ */ x(
|
|
802
|
-
},
|
|
803
|
-
const n =
|
|
804
|
-
|
|
807
|
+
) : /* @__PURE__ */ x(Ce, { style: r, pageNumber: s }, s);
|
|
808
|
+
}, er), jo = () => {
|
|
809
|
+
const n = G(new or()), { initialPage: e = 1, initialScrollMode: t } = bt(), { pagesRef: r, setPagesRef: s, setContentRef: l } = zt(), { scrollToPage: a } = ft();
|
|
810
|
+
Dt(r);
|
|
805
811
|
const {
|
|
806
|
-
virtualScrollRef:
|
|
807
|
-
getVirtualScrollRef:
|
|
812
|
+
virtualScrollRef: c,
|
|
813
|
+
getVirtualScrollRef: f,
|
|
808
814
|
getPageScrollElementRef: g,
|
|
809
|
-
getVirtualScrollableElementRef:
|
|
810
|
-
setTotalInnerDimensions:
|
|
811
|
-
virtualScrollableElementRef:
|
|
812
|
-
totalInnerDimensions:
|
|
813
|
-
pageScrollElementRef:
|
|
814
|
-
} =
|
|
815
|
-
|
|
816
|
-
),
|
|
815
|
+
getVirtualScrollableElementRef: h,
|
|
816
|
+
setTotalInnerDimensions: _,
|
|
817
|
+
virtualScrollableElementRef: i,
|
|
818
|
+
totalInnerDimensions: y,
|
|
819
|
+
pageScrollElementRef: w
|
|
820
|
+
} = dt(), S = G(!0), { nextPage: D, prevPage: b, setFocusedPage: I, focusedPage: W, totalPages: P } = mt(), { scrollMode: o } = gt(), { viewMode: u } = ht(), d = G(null), { loading: m, error: C } = pt(), { passwordRequired: p } = Pt(), { LoaderImageComponent: T } = Mt(), z = G(
|
|
821
|
+
y
|
|
822
|
+
), L = G({
|
|
817
823
|
viewMode: u,
|
|
818
|
-
scrollMode:
|
|
819
|
-
}),
|
|
820
|
-
pageDimension:
|
|
821
|
-
rowCount:
|
|
822
|
-
rowHeight:
|
|
823
|
-
columnCount:
|
|
824
|
-
columnWidth:
|
|
825
|
-
estimatedColumnWidth:
|
|
826
|
-
estimatedRowHeight:
|
|
827
|
-
totalDimension:
|
|
828
|
-
} =
|
|
829
|
-
|
|
830
|
-
const
|
|
831
|
-
|
|
832
|
-
const
|
|
824
|
+
scrollMode: o
|
|
825
|
+
}), M = G(!1), E = G(), { isFullScreen: R } = wt(), {
|
|
826
|
+
pageDimension: F,
|
|
827
|
+
rowCount: N,
|
|
828
|
+
rowHeight: H,
|
|
829
|
+
columnCount: A,
|
|
830
|
+
columnWidth: k,
|
|
831
|
+
estimatedColumnWidth: Z,
|
|
832
|
+
estimatedRowHeight: J,
|
|
833
|
+
totalDimension: Q
|
|
834
|
+
} = ut(), ie = Lt(y, 100), { onScroll: j, onTextSelect: le } = Ft();
|
|
835
|
+
Ht({ onTextSelect: le, pagesRef: r });
|
|
836
|
+
const X = G();
|
|
837
|
+
Ot(A, N, i, u);
|
|
838
|
+
const Y = G({
|
|
833
839
|
scrollTop: 0,
|
|
834
840
|
scrollLeft: 0
|
|
835
841
|
});
|
|
836
|
-
|
|
837
|
-
const { isPressed:
|
|
838
|
-
isPressed:
|
|
839
|
-
}),
|
|
840
|
-
const
|
|
842
|
+
yt(r);
|
|
843
|
+
const { isPressed: ee } = Tt(), { selectionMode: B } = Rt(), { initializeGrabScroll: K, resetGrabState: pe } = xt({
|
|
844
|
+
isPressed: ee
|
|
845
|
+
}), te = we(() => B === vt.HAND, [B]), Qe = we(() => {
|
|
846
|
+
const v = Array.from({ length: A }, (O, q) => k(q));
|
|
841
847
|
return {
|
|
842
|
-
columnCount:
|
|
843
|
-
isDualPageWithCover: u ===
|
|
844
|
-
columnWidths:
|
|
845
|
-
totalPages:
|
|
848
|
+
columnCount: A,
|
|
849
|
+
isDualPageWithCover: u === Se.DUAL_PAGE_WITH_COVER,
|
|
850
|
+
columnWidths: v,
|
|
851
|
+
totalPages: P
|
|
846
852
|
};
|
|
847
|
-
}, [
|
|
848
|
-
(
|
|
849
|
-
const
|
|
850
|
-
!
|
|
853
|
+
}, [A, u, k, P]), he = ae(
|
|
854
|
+
(v) => {
|
|
855
|
+
const O = document.activeElement !== r;
|
|
856
|
+
!R && O || (["ArrowUp", "ArrowLeft"].includes(v.key) ? (v.preventDefault(), b()) : ["ArrowDown", "ArrowRight"].includes(v.key) && (v.preventDefault(), D()));
|
|
851
857
|
},
|
|
852
|
-
[
|
|
858
|
+
[D, b, R, o]
|
|
853
859
|
);
|
|
854
|
-
|
|
855
|
-
window.removeEventListener("keydown",
|
|
856
|
-
}), [
|
|
857
|
-
|
|
858
|
-
|
|
859
|
-
|
|
860
|
-
|
|
861
|
-
|
|
862
|
-
|
|
863
|
-
|
|
864
|
-
|
|
865
|
-
|
|
860
|
+
ne(() => (window.addEventListener("keydown", he), () => {
|
|
861
|
+
window.removeEventListener("keydown", he);
|
|
862
|
+
}), [he]), ne(() => {
|
|
863
|
+
if (d.current && (d.current.style.position = "relative"), !!c)
|
|
864
|
+
for (let v = 0; v < N; v++)
|
|
865
|
+
for (let O = 0; O < A; O++)
|
|
866
|
+
c.resetAfterIndices({
|
|
867
|
+
columnIndex: O,
|
|
868
|
+
rowIndex: v,
|
|
869
|
+
shouldForceUpdate: !0
|
|
870
|
+
});
|
|
871
|
+
}, [N, A, F, c]);
|
|
872
|
+
const Xe = ae(
|
|
873
|
+
(v, O) => {
|
|
874
|
+
if (!i)
|
|
866
875
|
return { scrollTop: 0, scrollLeft: 0 };
|
|
867
|
-
const
|
|
868
|
-
return
|
|
869
|
-
scrollTop:
|
|
870
|
-
scrollLeft:
|
|
876
|
+
const q = Y.current.scrollTop > O, re = Y.current.scrollLeft > v;
|
|
877
|
+
return q || re ? Y.current : {
|
|
878
|
+
scrollTop: i.scrollTop,
|
|
879
|
+
scrollLeft: i.scrollLeft
|
|
871
880
|
};
|
|
872
881
|
},
|
|
873
|
-
[
|
|
874
|
-
),
|
|
875
|
-
(
|
|
876
|
-
if (
|
|
877
|
-
|
|
882
|
+
[i]
|
|
883
|
+
), Ee = ae(
|
|
884
|
+
(v, O) => {
|
|
885
|
+
if (L.current.viewMode !== u || L.current.scrollMode !== o) {
|
|
886
|
+
X.current && clearTimeout(X.current), M.current = !0, a(W, "auto"), X.current = setTimeout(() => {
|
|
878
887
|
requestAnimationFrame(() => {
|
|
879
|
-
|
|
888
|
+
L.current = { viewMode: u, scrollMode: o };
|
|
880
889
|
});
|
|
881
890
|
}, 100);
|
|
882
891
|
return;
|
|
883
892
|
}
|
|
884
|
-
const
|
|
885
|
-
if (!
|
|
893
|
+
const re = v.scrollTop, ge = v.scrollLeft;
|
|
894
|
+
if (!O.height || !O.width)
|
|
886
895
|
return;
|
|
887
|
-
|
|
888
|
-
const { height:
|
|
889
|
-
if (
|
|
896
|
+
M.current = !0;
|
|
897
|
+
const { height: oe, width: ve } = O, { height: Oe, width: We } = z.current;
|
|
898
|
+
if (Oe === oe && We === ve)
|
|
890
899
|
return;
|
|
891
|
-
|
|
892
|
-
|
|
893
|
-
|
|
894
|
-
|
|
895
|
-
|
|
896
|
-
|
|
897
|
-
|
|
898
|
-
|
|
899
|
-
|
|
900
|
-
|
|
901
|
-
|
|
902
|
-
|
|
903
|
-
behavior: "auto"
|
|
904
|
-
}), E.current = {
|
|
905
|
-
height: A.height,
|
|
906
|
-
width: A.width
|
|
900
|
+
const rt = re / Oe * oe, ot = ge / We * ve, nt = Math.round(Math.min(rt, oe)) || 0, it = Math.round(Math.min(ot, ve)) || 0;
|
|
901
|
+
E.current = setTimeout(() => {
|
|
902
|
+
requestAnimationFrame(() => {
|
|
903
|
+
i == null || i.scrollTo({
|
|
904
|
+
top: nt,
|
|
905
|
+
left: it,
|
|
906
|
+
behavior: "auto"
|
|
907
|
+
});
|
|
908
|
+
});
|
|
909
|
+
}, 0), z.current = {
|
|
910
|
+
height: O.height,
|
|
911
|
+
width: O.width
|
|
907
912
|
};
|
|
908
913
|
},
|
|
909
|
-
[
|
|
914
|
+
[i, u, o, a]
|
|
910
915
|
);
|
|
911
|
-
|
|
912
|
-
clearTimeout(
|
|
913
|
-
const
|
|
914
|
-
(
|
|
916
|
+
ne(() => {
|
|
917
|
+
clearTimeout(E.current);
|
|
918
|
+
const v = Array.from({ length: N }).reduce(
|
|
919
|
+
(re, ge, oe) => re + H(oe),
|
|
915
920
|
0
|
|
916
|
-
),
|
|
917
|
-
(
|
|
921
|
+
), O = Array.from({ length: A }).reduce(
|
|
922
|
+
(re, ge, oe) => re + k(oe),
|
|
918
923
|
0
|
|
919
|
-
),
|
|
920
|
-
|
|
921
|
-
height:
|
|
922
|
-
width:
|
|
924
|
+
), q = Xe(O, v);
|
|
925
|
+
Y.current = q, Ee(q, { height: v, width: O }), _({
|
|
926
|
+
height: v,
|
|
927
|
+
width: O
|
|
923
928
|
});
|
|
924
|
-
}, [
|
|
925
|
-
const
|
|
926
|
-
(
|
|
927
|
-
|
|
928
|
-
scrollTop:
|
|
929
|
-
scrollLeft:
|
|
929
|
+
}, [F, N, A, Ee]);
|
|
930
|
+
const Ye = ae(
|
|
931
|
+
(v) => {
|
|
932
|
+
Y.current = {
|
|
933
|
+
scrollTop: v.scrollTop,
|
|
934
|
+
scrollLeft: v.scrollLeft
|
|
930
935
|
};
|
|
931
936
|
},
|
|
932
|
-
[
|
|
937
|
+
[i]
|
|
933
938
|
);
|
|
934
|
-
|
|
939
|
+
ne(() => {
|
|
935
940
|
if (j)
|
|
936
|
-
return
|
|
937
|
-
|
|
941
|
+
return w && w.addEventListener("scroll", j), i && i.addEventListener("scroll", j), () => {
|
|
942
|
+
w == null || w.removeEventListener("scroll", j), i == null || i.removeEventListener("scroll", j);
|
|
938
943
|
};
|
|
939
|
-
}, [
|
|
940
|
-
|
|
944
|
+
}, [i, w, j]), ne(() => () => {
|
|
945
|
+
X.current && clearTimeout(X.current);
|
|
941
946
|
}, []);
|
|
942
|
-
const
|
|
943
|
-
[
|
|
944
|
-
[
|
|
945
|
-
}), [
|
|
946
|
-
(
|
|
947
|
-
if (
|
|
948
|
-
const
|
|
949
|
-
|
|
947
|
+
const et = we(() => ce(U["rp-pages-container"], {
|
|
948
|
+
[U["rp-cursor-grab"]]: te && !ee,
|
|
949
|
+
[U["rp-cursor-grabbing"]]: te && ee
|
|
950
|
+
}), [te, ee]), tt = ae(
|
|
951
|
+
(v) => {
|
|
952
|
+
if (te && v) {
|
|
953
|
+
const O = ce(U["rp-pages"]), q = document.querySelector(`.${O}`);
|
|
954
|
+
K(q);
|
|
950
955
|
}
|
|
951
956
|
},
|
|
952
|
-
[
|
|
957
|
+
[te, K, U]
|
|
953
958
|
);
|
|
954
|
-
return
|
|
955
|
-
|
|
956
|
-
}, [
|
|
957
|
-
if (!(
|
|
958
|
-
if (t ===
|
|
959
|
-
e !== W &&
|
|
959
|
+
return ne(() => {
|
|
960
|
+
m && pe();
|
|
961
|
+
}, [m]), ne(() => {
|
|
962
|
+
if (!(ie.height === 0 || !S.current)) {
|
|
963
|
+
if (t === Ie.PAGE_SCROLLING) {
|
|
964
|
+
e !== W && w && I(e), S.current = !1;
|
|
960
965
|
return;
|
|
961
966
|
}
|
|
962
|
-
|
|
967
|
+
a(e, "auto"), I(e), S.current = !1;
|
|
963
968
|
}
|
|
964
969
|
}, [
|
|
965
|
-
|
|
970
|
+
a,
|
|
966
971
|
t,
|
|
967
|
-
|
|
968
|
-
|
|
969
|
-
|
|
970
|
-
]), /* @__PURE__ */
|
|
971
|
-
/* @__PURE__ */ x(
|
|
972
|
-
|
|
972
|
+
w,
|
|
973
|
+
I,
|
|
974
|
+
ie
|
|
975
|
+
]), /* @__PURE__ */ _e(st, { children: [
|
|
976
|
+
/* @__PURE__ */ x(Nt, { ref: l, children: /* @__PURE__ */ x(
|
|
977
|
+
At,
|
|
973
978
|
{
|
|
974
|
-
|
|
975
|
-
ref: l,
|
|
979
|
+
ref: s,
|
|
976
980
|
tabIndex: -1,
|
|
977
|
-
className:
|
|
981
|
+
className: et,
|
|
978
982
|
style: {
|
|
979
|
-
"--scale-round-x": `${
|
|
980
|
-
"--scale-round-y": `${
|
|
983
|
+
"--scale-round-x": `${Pe(n.current.sx)[1]}px`,
|
|
984
|
+
"--scale-round-y": `${Pe(n.current.sy)[1]}px`
|
|
981
985
|
},
|
|
982
|
-
children: /* @__PURE__ */ x(
|
|
986
|
+
children: /* @__PURE__ */ x(rr, { style: { minHeight: "50px" }, children: ({ width: v, height: O }) => /* @__PURE__ */ x("div", { "data-rp": "pages", ref: tt, style: { width: v, height: O }, children: o === Ie.PAGE_SCROLLING ? /* @__PURE__ */ x(
|
|
983
987
|
"div",
|
|
984
988
|
{
|
|
985
989
|
ref: g,
|
|
986
|
-
style: { width:
|
|
987
|
-
className:
|
|
988
|
-
children: u ===
|
|
990
|
+
style: { width: v, height: O },
|
|
991
|
+
className: ce(U["rp-pages"], U["rp-page-scrolling-wrapper"]),
|
|
992
|
+
children: u === Se.DUAL_PAGE ? /* @__PURE__ */ x(Ct, { widths: k, heights: H }) : u === Se.DUAL_PAGE_WITH_COVER ? /* @__PURE__ */ x(St, { widths: k, heights: H }) : /* @__PURE__ */ x(It, { widths: k, heights: H })
|
|
989
993
|
}
|
|
990
|
-
) :
|
|
991
|
-
|
|
994
|
+
) : J ? /* @__PURE__ */ x(
|
|
995
|
+
Qt,
|
|
992
996
|
{
|
|
993
|
-
ref:
|
|
994
|
-
itemData:
|
|
995
|
-
outerRef:
|
|
996
|
-
innerRef:
|
|
997
|
-
onScroll:
|
|
998
|
-
columnCount:
|
|
999
|
-
columnWidth:
|
|
1000
|
-
rowHeight:
|
|
1001
|
-
height:
|
|
1002
|
-
width:
|
|
1003
|
-
estimatedColumnWidth:
|
|
1004
|
-
estimatedRowHeight:
|
|
1005
|
-
rowCount:
|
|
1006
|
-
className:
|
|
1007
|
-
|
|
1008
|
-
|
|
997
|
+
ref: f,
|
|
998
|
+
itemData: Qe,
|
|
999
|
+
outerRef: h,
|
|
1000
|
+
innerRef: d,
|
|
1001
|
+
onScroll: Ye,
|
|
1002
|
+
columnCount: A,
|
|
1003
|
+
columnWidth: k,
|
|
1004
|
+
rowHeight: H,
|
|
1005
|
+
height: O,
|
|
1006
|
+
width: v,
|
|
1007
|
+
estimatedColumnWidth: Z,
|
|
1008
|
+
estimatedRowHeight: J,
|
|
1009
|
+
rowCount: N,
|
|
1010
|
+
className: ce(
|
|
1011
|
+
U["rp-pages"],
|
|
1012
|
+
o === Ie.HORIZONTAL_SCROLLING ? U["rp-pages-horizontal-scroll"] : ""
|
|
1009
1013
|
),
|
|
1010
1014
|
style: {
|
|
1011
|
-
"--rp-pages-height": `${
|
|
1012
|
-
"--rp-pages-width": `${
|
|
1013
|
-
"--rp-row-count": `${
|
|
1014
|
-
"--rp-column-count": `${
|
|
1015
|
+
"--rp-pages-height": `${Q.height}px`,
|
|
1016
|
+
"--rp-pages-width": `${Q.width}px`,
|
|
1017
|
+
"--rp-row-count": `${N}`,
|
|
1018
|
+
"--rp-column-count": `${A}`
|
|
1015
1019
|
},
|
|
1016
|
-
children:
|
|
1020
|
+
children: nr
|
|
1017
1021
|
}
|
|
1018
|
-
) : !
|
|
1022
|
+
) : !m && !C ? /* @__PURE__ */ x(
|
|
1019
1023
|
"div",
|
|
1020
1024
|
{
|
|
1021
|
-
className:
|
|
1025
|
+
className: U["rp-loader"],
|
|
1022
1026
|
style: {
|
|
1023
1027
|
display: "flex",
|
|
1024
1028
|
justifyContent: "center",
|
|
@@ -1026,11 +1030,11 @@ const dr = ht(({ columnIndex: n, rowIndex: e, data: t, style: r }) => {
|
|
|
1026
1030
|
height: "100%",
|
|
1027
1031
|
width: "100%"
|
|
1028
1032
|
},
|
|
1029
|
-
children:
|
|
1033
|
+
children: T && /* @__PURE__ */ x(T, {})
|
|
1030
1034
|
}
|
|
1031
|
-
) :
|
|
1035
|
+
) : C === _t.NOT_SUPPORTED ? /* @__PURE__ */ x("div", { className: U["rp-not-supported"], children: /* @__PURE__ */ _e("div", { className: U["rp-not-supported-content"], children: [
|
|
1032
1036
|
"React PDF is unable to render on this browser. Please use the supported browsers from the list below:",
|
|
1033
|
-
/* @__PURE__ */ x("div", { children: /* @__PURE__ */
|
|
1037
|
+
/* @__PURE__ */ x("div", { children: /* @__PURE__ */ _e("ul", { children: [
|
|
1034
1038
|
/* @__PURE__ */ x("li", { children: "Chrome 126+" }),
|
|
1035
1039
|
/* @__PURE__ */ x("li", { children: "Edge 126+" }),
|
|
1036
1040
|
/* @__PURE__ */ x("li", { children: "Firefox 126+" }),
|
|
@@ -1041,9 +1045,9 @@ const dr = ht(({ columnIndex: n, rowIndex: e, data: t, style: r }) => {
|
|
|
1041
1045
|
] }) }) : null }) })
|
|
1042
1046
|
}
|
|
1043
1047
|
) }),
|
|
1044
|
-
|
|
1048
|
+
p && /* @__PURE__ */ x(Et, {})
|
|
1045
1049
|
] });
|
|
1046
1050
|
};
|
|
1047
1051
|
export {
|
|
1048
|
-
|
|
1052
|
+
jo as RPPages
|
|
1049
1053
|
};
|