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