@pdf-viewer/react 0.5.0-beta.4 → 0.6.0-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/Container-83627c27.js +37 -0
- package/dist/{RPLayout-7fd91861.js → RPLayout-34472ceb.js} +96 -96
- package/dist/assets/Button.css +1 -1
- package/dist/assets/Container.css +1 -1
- package/dist/assets/MenuItem.css +1 -1
- package/dist/assets/RPLayout.css +1 -1
- package/dist/assets/RPTooltip.css +1 -1
- package/dist/components/RPController.js +1 -1
- package/dist/components/RPViewer.js +1 -1
- package/dist/components/layout/Container.js +1 -1
- package/dist/components/layout/RPLayout.js +2 -2
- package/dist/components/layout/sidebar/RPSidebar.js +1 -1
- package/dist/components/layout/sidebar/Thumbnail.js +1 -1
- package/dist/components/layout/sidebar/Thumbnails.js +1 -1
- package/dist/components/layout/toolbar/DarkModeTool.js +23 -20
- package/dist/components/layout/toolbar/DocumentDialog.js +1 -1
- package/dist/components/layout/toolbar/DocumentProperties.js +1 -1
- package/dist/components/layout/toolbar/FileDownloadTool.js +1 -1
- package/dist/components/layout/toolbar/FileUploadTool.js +7 -4
- package/dist/components/layout/toolbar/FullScreenTool.js +3 -3
- package/dist/components/layout/toolbar/MenuItem.js +3 -3
- package/dist/components/layout/toolbar/MostPageTool.js +1 -1
- package/dist/components/layout/toolbar/OtherTool.js +1 -1
- package/dist/components/layout/toolbar/Paginate.js +1 -1
- package/dist/components/layout/toolbar/PrintTool.js +1 -1
- package/dist/components/layout/toolbar/RPToolbar.js +1 -1
- package/dist/components/layout/toolbar/RPToolbarEnd.js +1 -1
- package/dist/components/layout/toolbar/RotateTool.js +11 -11
- package/dist/components/layout/toolbar/ScrollModeTool.js +12 -12
- package/dist/components/layout/toolbar/SearchTool.js +1 -1
- package/dist/components/layout/toolbar/SelectionModeTool.js +15 -15
- package/dist/components/layout/toolbar/ZoomTool.js +1 -1
- package/dist/components/page/AnnotationLayer.js +1 -1
- package/dist/components/page/CanvasLayer.js +1 -1
- package/dist/components/page/DualPage.js +1 -1
- package/dist/components/page/RPPage.js +1 -1
- package/dist/components/page/SinglePage.js +1 -1
- package/dist/components/page/TextLayer.js +1 -1
- package/dist/components/ui/Button.js +9 -9
- package/dist/components/ui/LoadingIndicator.js +1 -1
- package/dist/components/ui/RPTooltip.js +247 -243
- package/dist/contexts/PaginateContext.js +1 -1
- package/dist/contexts/PrintContext.js +1 -1
- package/dist/contexts/SearchContext.js +1 -1
- package/dist/contexts/ThumbnailsContext.js +1 -1
- package/dist/main.js +1 -1
- package/dist/utils/hooks/useFileDownload.js +1 -1
- package/dist/utils/hooks/useLicense.js +1 -1
- package/dist/utils/hooks/usePaginate.js +1 -1
- package/dist/utils/hooks/usePrint.js +1 -1
- package/dist/utils/hooks/useScrollToPage.js +1 -1
- package/dist/utils/hooks/useSearch.js +1 -1
- package/dist/utils/hooks/useThumbnail.js +1 -1
- package/dist/utils/hooks/useVirtualReactWindow.js +1 -1
- package/package.json +1 -1
- package/dist/Container-337e1b18.js +0 -37
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { jsx as m } from "react/jsx-runtime";
|
|
2
|
+
import { useDarkModeContext as _ } from "./contexts/DarkModeContext.js";
|
|
3
|
+
import { c as i } from "./clsx-0c6e471a.js";
|
|
4
|
+
import { useThemeContext as l } from "./contexts/ThemeContext.js";
|
|
5
|
+
import './assets/Container.css';const d = {
|
|
6
|
+
"rp-layout": "_rp-layout_1mrjz_1",
|
|
7
|
+
"rp-content": "_rp-content_1mrjz_5",
|
|
8
|
+
"rp-pages": "_rp-pages_1mrjz_11",
|
|
9
|
+
"rp-container": "_rp-container_1mrjz_16",
|
|
10
|
+
"rp-theme-variables": "_rp-theme-variables_1mrjz_51",
|
|
11
|
+
"rp-dark-mode": "_rp-dark-mode_1mrjz_128"
|
|
12
|
+
}, h = {
|
|
13
|
+
"rp-container": "_rp-container_1fbrq_1"
|
|
14
|
+
}, x = (t) => {
|
|
15
|
+
const { children: o, getContainerRef: a, toolbarRef: r, style: s, className: n } = t, { darkMode: e } = _(), { customVariables: p, customDarkVariables: c } = l();
|
|
16
|
+
return /* @__PURE__ */ m(
|
|
17
|
+
"div",
|
|
18
|
+
{
|
|
19
|
+
ref: a,
|
|
20
|
+
className: i(
|
|
21
|
+
h["rp-container"],
|
|
22
|
+
e ? d["rp-dark-mode"] : "",
|
|
23
|
+
n
|
|
24
|
+
),
|
|
25
|
+
style: {
|
|
26
|
+
"--rp-toolbar-height": `${(r == null ? void 0 : r.clientHeight) || 48}px`,
|
|
27
|
+
...e ? c : p,
|
|
28
|
+
...s
|
|
29
|
+
},
|
|
30
|
+
children: o
|
|
31
|
+
}
|
|
32
|
+
);
|
|
33
|
+
};
|
|
34
|
+
export {
|
|
35
|
+
x as C,
|
|
36
|
+
d as c
|
|
37
|
+
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as a, jsxs as O, Fragment as Ae } from "react/jsx-runtime";
|
|
2
2
|
import * as V from "react";
|
|
3
|
-
import { useRef as $, useEffect as A, useCallback as M, useState as F, useMemo as D, createContext as We, useContext as He, forwardRef as $e, useImperativeHandle as qt, createElement as
|
|
3
|
+
import { useRef as $, useEffect as A, useCallback as M, useState as F, useMemo as D, createContext as We, useContext as He, forwardRef as $e, useImperativeHandle as qt, createElement as Le, PureComponent as zn, Component as Fn, memo as kn } from "react";
|
|
4
4
|
import { ChevronUpIcon as Me } from "./components/icons/ChevronUpIcon.js";
|
|
5
5
|
import { UIButton as B } from "./components/ui/Button.js";
|
|
6
6
|
import { UIInput as Zt } from "./components/ui/Input.js";
|
|
@@ -29,7 +29,7 @@ import { useInfiniteScroll as or } from "./utils/hooks/useInfiniteScroll.js";
|
|
|
29
29
|
import { RPSplitter as ar } from "./components/layout/sidebar/RPSplitter.js";
|
|
30
30
|
import { useIconContext as re, IconProvider as ir } from "./contexts/IconContext.js";
|
|
31
31
|
import X from "./components/ui/RPTooltip.js";
|
|
32
|
-
import { c as he, C as sr } from "./Container-
|
|
32
|
+
import { c as he, C as sr } from "./Container-83627c27.js";
|
|
33
33
|
import { useLayoutContainer as qe, LayoutContainerProvider as lr } from "./contexts/LayoutContainerContext.js";
|
|
34
34
|
import { ViewMode as ze, ScrollMode as Q, AnnotationSubType as at, SelectionMode as jt, ZoomLevel as we } from "./utils/types.js";
|
|
35
35
|
import { useLayerContext as cr, LayerProvider as ur } from "./contexts/LayerContext.js";
|
|
@@ -53,7 +53,7 @@ import { FileUploadTool as Jt } from "./components/layout/toolbar/FileUploadTool
|
|
|
53
53
|
import { DarkModeTool as xr } from "./components/layout/toolbar/DarkModeTool.js";
|
|
54
54
|
import { ThreeDotIcon as Mr } from "./components/icons/ThreeDotIcon.js";
|
|
55
55
|
import { UIDropDown as ft } from "./components/ui/DropDown.js";
|
|
56
|
-
import { u as mt, a as
|
|
56
|
+
import { u as mt, a as Ne, c as xe, b as gt, d as Nr, e as Lr, h as Er, f as Or, F as Dr, D as Ar, g as zr, G as Fe } from "./index-316854c1.js";
|
|
57
57
|
import { c as Fr, e as kr, b as Wr } from "./index-71898eb9.js";
|
|
58
58
|
import { e as Be } from "./floating-ui.react-dom-e6d5fe8f.js";
|
|
59
59
|
import { CloseIcon as Yt } from "./components/icons/CloseIcon.js";
|
|
@@ -153,7 +153,7 @@ import './assets/RPLayout.css';const ae = {
|
|
|
153
153
|
const y = g || _;
|
|
154
154
|
if (!y)
|
|
155
155
|
return;
|
|
156
|
-
const R = S.getBoundingClientRect(),
|
|
156
|
+
const R = S.getBoundingClientRect(), N = y.clientHeight / 2, L = y.clientWidth / 2, x = y.scrollTop + R.top - N, E = y.scrollLeft + R.left - L;
|
|
157
157
|
y.scrollTo({
|
|
158
158
|
top: x,
|
|
159
159
|
left: E,
|
|
@@ -174,14 +174,14 @@ import './assets/RPLayout.css';const ae = {
|
|
|
174
174
|
}, [d]), I = M(async (y) => {
|
|
175
175
|
if (!y)
|
|
176
176
|
return {};
|
|
177
|
-
const R = y.numPages,
|
|
178
|
-
for (let
|
|
177
|
+
const R = y.numPages, N = {};
|
|
178
|
+
for (let L = 1; L <= R; L++) {
|
|
179
179
|
if (s.current)
|
|
180
180
|
throw "close pop over";
|
|
181
|
-
const x = await y.getPage(
|
|
182
|
-
L
|
|
181
|
+
const x = await y.getPage(L);
|
|
182
|
+
N[L.toString()] = await x.getTextContent();
|
|
183
183
|
}
|
|
184
|
-
return
|
|
184
|
+
return N;
|
|
185
185
|
}, []);
|
|
186
186
|
return A(() => {
|
|
187
187
|
if (!n) {
|
|
@@ -189,16 +189,16 @@ import './assets/RPLayout.css';const ae = {
|
|
|
189
189
|
return;
|
|
190
190
|
}
|
|
191
191
|
s.current = !1, i(!0), p([]), m(0), I(l).then((y) => {
|
|
192
|
-
const
|
|
192
|
+
const N = Object.keys(y).reduce((L, x) => {
|
|
193
193
|
const E = Kn(
|
|
194
194
|
[n],
|
|
195
195
|
y[x],
|
|
196
196
|
Number(x) - 1,
|
|
197
197
|
e
|
|
198
198
|
).map((z, k) => ({ ...z, page: Number(x), pageMatchIdx: k }));
|
|
199
|
-
return [...
|
|
199
|
+
return [...L, ...E];
|
|
200
200
|
}, []);
|
|
201
|
-
p(
|
|
201
|
+
p(N), m(N.length ? 1 : 0);
|
|
202
202
|
}).catch(() => {
|
|
203
203
|
p([]), m(0);
|
|
204
204
|
}).finally(() => i(!1));
|
|
@@ -599,7 +599,7 @@ function lt() {
|
|
|
599
599
|
return e;
|
|
600
600
|
}, lt.apply(null, arguments);
|
|
601
601
|
}
|
|
602
|
-
function
|
|
602
|
+
function Nt(e) {
|
|
603
603
|
if (e === void 0)
|
|
604
604
|
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
605
605
|
return e;
|
|
@@ -612,11 +612,11 @@ function ct(e, t) {
|
|
|
612
612
|
function fo(e, t) {
|
|
613
613
|
e.prototype = Object.create(t.prototype), e.prototype.constructor = e, ct(e, t);
|
|
614
614
|
}
|
|
615
|
-
var
|
|
615
|
+
var Lt = Number.isNaN || function(t) {
|
|
616
616
|
return typeof t == "number" && t !== t;
|
|
617
617
|
};
|
|
618
618
|
function mo(e, t) {
|
|
619
|
-
return !!(e === t ||
|
|
619
|
+
return !!(e === t || Lt(e) && Lt(t));
|
|
620
620
|
}
|
|
621
621
|
function go(e, t) {
|
|
622
622
|
if (e.length !== t.length)
|
|
@@ -697,23 +697,23 @@ function Po(e) {
|
|
|
697
697
|
fo(S, b);
|
|
698
698
|
function S(T) {
|
|
699
699
|
var d;
|
|
700
|
-
return d = b.call(this, T) || this, d._instanceProps = v(d.props,
|
|
701
|
-
instance:
|
|
700
|
+
return d = b.call(this, T) || this, d._instanceProps = v(d.props, Nt(d)), d._resetIsScrollingTimeoutId = null, d._outerRef = void 0, d.state = {
|
|
701
|
+
instance: Nt(d),
|
|
702
702
|
isScrolling: !1,
|
|
703
703
|
horizontalScrollDirection: "forward",
|
|
704
704
|
scrollLeft: typeof d.props.initialScrollLeft == "number" ? d.props.initialScrollLeft : 0,
|
|
705
705
|
scrollTop: typeof d.props.initialScrollTop == "number" ? d.props.initialScrollTop : 0,
|
|
706
706
|
scrollUpdateWasRequested: !1,
|
|
707
707
|
verticalScrollDirection: "forward"
|
|
708
|
-
}, d._callOnItemsRendered = void 0, d._callOnItemsRendered = Je(function(C, w, I, y, R,
|
|
708
|
+
}, d._callOnItemsRendered = void 0, d._callOnItemsRendered = Je(function(C, w, I, y, R, N, L, x) {
|
|
709
709
|
return d.props.onItemsRendered({
|
|
710
710
|
overscanColumnStartIndex: C,
|
|
711
711
|
overscanColumnStopIndex: w,
|
|
712
712
|
overscanRowStartIndex: I,
|
|
713
713
|
overscanRowStopIndex: y,
|
|
714
714
|
visibleColumnStartIndex: R,
|
|
715
|
-
visibleColumnStopIndex:
|
|
716
|
-
visibleRowStartIndex:
|
|
715
|
+
visibleColumnStopIndex: N,
|
|
716
|
+
visibleRowStartIndex: L,
|
|
717
717
|
visibleRowStopIndex: x
|
|
718
718
|
});
|
|
719
719
|
}), d._callOnScroll = void 0, d._callOnScroll = Je(function(C, w, I, y, R) {
|
|
@@ -725,12 +725,12 @@ function Po(e) {
|
|
|
725
725
|
scrollUpdateWasRequested: R
|
|
726
726
|
});
|
|
727
727
|
}), d._getItemStyle = void 0, d._getItemStyle = function(C, w) {
|
|
728
|
-
var I = d.props, y = I.columnWidth, R = I.direction,
|
|
729
|
-
if (
|
|
730
|
-
E =
|
|
728
|
+
var I = d.props, y = I.columnWidth, R = I.direction, N = I.rowHeight, L = d._getItemStyleCache(_ && y, _ && R, _ && N), x = C + ":" + w, E;
|
|
729
|
+
if (L.hasOwnProperty(x))
|
|
730
|
+
E = L[x];
|
|
731
731
|
else {
|
|
732
732
|
var z = n(d.props, w, d._instanceProps), k = R === "rtl";
|
|
733
|
-
|
|
733
|
+
L[x] = E = {
|
|
734
734
|
position: "absolute",
|
|
735
735
|
left: k ? void 0 : z,
|
|
736
736
|
right: k ? z : void 0,
|
|
@@ -743,9 +743,9 @@ function Po(e) {
|
|
|
743
743
|
}, d._getItemStyleCache = void 0, d._getItemStyleCache = Je(function(C, w, I) {
|
|
744
744
|
return {};
|
|
745
745
|
}), d._onScroll = function(C) {
|
|
746
|
-
var w = C.currentTarget, I = w.clientHeight, y = w.clientWidth, R = w.scrollLeft,
|
|
746
|
+
var w = C.currentTarget, I = w.clientHeight, y = w.clientWidth, R = w.scrollLeft, N = w.scrollTop, L = w.scrollHeight, x = w.scrollWidth;
|
|
747
747
|
d.setState(function(E) {
|
|
748
|
-
if (E.scrollLeft === R && E.scrollTop ===
|
|
748
|
+
if (E.scrollLeft === R && E.scrollTop === N)
|
|
749
749
|
return null;
|
|
750
750
|
var z = d.props.direction, k = R;
|
|
751
751
|
if (z === "rtl")
|
|
@@ -758,13 +758,13 @@ function Po(e) {
|
|
|
758
758
|
break;
|
|
759
759
|
}
|
|
760
760
|
k = Math.max(0, Math.min(k, x - y));
|
|
761
|
-
var G = Math.max(0, Math.min(
|
|
761
|
+
var G = Math.max(0, Math.min(N, L - I));
|
|
762
762
|
return {
|
|
763
763
|
isScrolling: !0,
|
|
764
764
|
horizontalScrollDirection: E.scrollLeft < R ? "forward" : "backward",
|
|
765
765
|
scrollLeft: k,
|
|
766
766
|
scrollTop: G,
|
|
767
|
-
verticalScrollDirection: E.scrollTop <
|
|
767
|
+
verticalScrollDirection: E.scrollTop < N ? "forward" : "backward",
|
|
768
768
|
scrollUpdateWasRequested: !1
|
|
769
769
|
};
|
|
770
770
|
}, d._resetIsScrollingDebounced);
|
|
@@ -797,9 +797,9 @@ function Po(e) {
|
|
|
797
797
|
};
|
|
798
798
|
}, this._resetIsScrollingDebounced);
|
|
799
799
|
}, P.scrollToItem = function(d) {
|
|
800
|
-
var C = d.align, w = C === void 0 ? "auto" : C, I = d.columnIndex, y = d.rowIndex, R = this.props,
|
|
801
|
-
I !== void 0 && (I = Math.max(0, Math.min(I,
|
|
802
|
-
var U = l(this.props, this._instanceProps), K = s(this.props, this._instanceProps), ue = K > E ? Z : 0, oe = U >
|
|
800
|
+
var C = d.align, w = C === void 0 ? "auto" : C, I = d.columnIndex, y = d.rowIndex, R = this.props, N = R.columnCount, L = R.height, x = R.rowCount, E = R.width, z = this.state, k = z.scrollLeft, G = z.scrollTop, Z = wo();
|
|
801
|
+
I !== void 0 && (I = Math.max(0, Math.min(I, N - 1))), y !== void 0 && (y = Math.max(0, Math.min(y, x - 1)));
|
|
802
|
+
var U = l(this.props, this._instanceProps), K = s(this.props, this._instanceProps), ue = K > E ? Z : 0, oe = U > L ? Z : 0;
|
|
803
803
|
this.scrollTo({
|
|
804
804
|
scrollLeft: I !== void 0 ? c(this.props, I, w, k, this._instanceProps, oe) : k,
|
|
805
805
|
scrollTop: y !== void 0 ? p(this.props, y, w, G, this._instanceProps, ue) : G
|
|
@@ -824,8 +824,8 @@ function Po(e) {
|
|
|
824
824
|
R.scrollLeft = w;
|
|
825
825
|
break;
|
|
826
826
|
default:
|
|
827
|
-
var
|
|
828
|
-
R.scrollLeft =
|
|
827
|
+
var N = R.clientWidth, L = R.scrollWidth;
|
|
828
|
+
R.scrollLeft = L - N - w;
|
|
829
829
|
break;
|
|
830
830
|
}
|
|
831
831
|
else
|
|
@@ -836,11 +836,11 @@ function Po(e) {
|
|
|
836
836
|
}, P.componentWillUnmount = function() {
|
|
837
837
|
this._resetIsScrollingTimeoutId !== null && Dt(this._resetIsScrollingTimeoutId);
|
|
838
838
|
}, P.render = function() {
|
|
839
|
-
var d = this.props, C = d.children, w = d.className, I = d.columnCount, y = d.direction, R = d.height,
|
|
839
|
+
var d = this.props, C = d.children, w = d.className, I = d.columnCount, y = d.direction, R = d.height, N = d.innerRef, L = d.innerElementType, x = d.innerTagName, E = d.itemData, z = d.itemKey, k = z === void 0 ? Co : z, G = d.outerElementType, Z = d.outerTagName, U = d.rowCount, K = d.style, ue = d.useIsScrolling, oe = d.width, ve = this.state.isScrolling, _e = this._getHorizontalRangeToRender(), Se = _e[0], W = _e[1], H = this._getVerticalRangeToRender(), q = H[0], le = H[1], Te = [];
|
|
840
840
|
if (I > 0 && U)
|
|
841
841
|
for (var de = q; de <= le; de++)
|
|
842
842
|
for (var pe = Se; pe <= W; pe++)
|
|
843
|
-
Te.push(
|
|
843
|
+
Te.push(Le(C, {
|
|
844
844
|
columnIndex: pe,
|
|
845
845
|
data: E,
|
|
846
846
|
isScrolling: ue ? ve : void 0,
|
|
@@ -853,7 +853,7 @@ function Po(e) {
|
|
|
853
853
|
style: this._getItemStyle(de, pe)
|
|
854
854
|
}));
|
|
855
855
|
var Ze = l(this.props, this._instanceProps), je = s(this.props, this._instanceProps);
|
|
856
|
-
return
|
|
856
|
+
return Le(G || Z || "div", {
|
|
857
857
|
className: w,
|
|
858
858
|
onScroll: this._onScroll,
|
|
859
859
|
ref: this._outerRefSetter,
|
|
@@ -866,9 +866,9 @@ function Po(e) {
|
|
|
866
866
|
willChange: "transform",
|
|
867
867
|
direction: y
|
|
868
868
|
}, K)
|
|
869
|
-
},
|
|
869
|
+
}, Le(L || x || "div", {
|
|
870
870
|
children: Te,
|
|
871
|
-
ref:
|
|
871
|
+
ref: N,
|
|
872
872
|
style: {
|
|
873
873
|
height: Ze,
|
|
874
874
|
pointerEvents: ve ? "none" : void 0,
|
|
@@ -878,24 +878,24 @@ function Po(e) {
|
|
|
878
878
|
}, P._callPropsCallbacks = function() {
|
|
879
879
|
var d = this.props, C = d.columnCount, w = d.onItemsRendered, I = d.onScroll, y = d.rowCount;
|
|
880
880
|
if (typeof w == "function" && C > 0 && y > 0) {
|
|
881
|
-
var R = this._getHorizontalRangeToRender(),
|
|
882
|
-
this._callOnItemsRendered(
|
|
881
|
+
var R = this._getHorizontalRangeToRender(), N = R[0], L = R[1], x = R[2], E = R[3], z = this._getVerticalRangeToRender(), k = z[0], G = z[1], Z = z[2], U = z[3];
|
|
882
|
+
this._callOnItemsRendered(N, L, k, G, x, E, Z, U);
|
|
883
883
|
}
|
|
884
884
|
if (typeof I == "function") {
|
|
885
885
|
var K = this.state, ue = K.horizontalScrollDirection, oe = K.scrollLeft, ve = K.scrollTop, _e = K.scrollUpdateWasRequested, Se = K.verticalScrollDirection;
|
|
886
886
|
this._callOnScroll(oe, ve, ue, Se, _e);
|
|
887
887
|
}
|
|
888
888
|
}, P._getHorizontalRangeToRender = function() {
|
|
889
|
-
var d = this.props, C = d.columnCount, w = d.overscanColumnCount, I = d.overscanColumnsCount, y = d.overscanCount, R = d.rowCount,
|
|
889
|
+
var d = this.props, C = d.columnCount, w = d.overscanColumnCount, I = d.overscanColumnsCount, y = d.overscanCount, R = d.rowCount, N = this.state, L = N.horizontalScrollDirection, x = N.isScrolling, E = N.scrollLeft, z = w || I || y || 1;
|
|
890
890
|
if (C === 0 || R === 0)
|
|
891
891
|
return [0, 0, 0, 0];
|
|
892
|
-
var k = r(this.props, E, this._instanceProps), G = o(this.props, k, E, this._instanceProps), Z = !x ||
|
|
892
|
+
var k = r(this.props, E, this._instanceProps), G = o(this.props, k, E, this._instanceProps), Z = !x || L === "backward" ? Math.max(1, z) : 1, U = !x || L === "forward" ? Math.max(1, z) : 1;
|
|
893
893
|
return [Math.max(0, k - Z), Math.max(0, Math.min(C - 1, G + U)), k, G];
|
|
894
894
|
}, P._getVerticalRangeToRender = function() {
|
|
895
|
-
var d = this.props, C = d.columnCount, w = d.overscanCount, I = d.overscanRowCount, y = d.overscanRowsCount, R = d.rowCount,
|
|
895
|
+
var d = this.props, C = d.columnCount, w = d.overscanCount, I = d.overscanRowCount, y = d.overscanRowsCount, R = d.rowCount, N = this.state, L = N.isScrolling, x = N.verticalScrollDirection, E = N.scrollTop, z = I || y || w || 1;
|
|
896
896
|
if (C === 0 || R === 0)
|
|
897
897
|
return [0, 0, 0, 0];
|
|
898
|
-
var k = u(this.props, E, this._instanceProps), G = f(this.props, k, E, this._instanceProps), Z = !
|
|
898
|
+
var k = u(this.props, E, this._instanceProps), G = f(this.props, k, E, this._instanceProps), Z = !L || x === "backward" ? Math.max(1, z) : 1, U = !L || x === "forward" ? Math.max(1, z) : 1;
|
|
899
899
|
return [Math.max(0, k - Z), Math.max(0, Math.min(R - 1, G + U)), k, G];
|
|
900
900
|
}, S;
|
|
901
901
|
}(zn), t.defaultProps = {
|
|
@@ -1110,7 +1110,7 @@ et == null || Vt == null ? (ut = Qe, dt = function(t) {
|
|
|
1110
1110
|
}, Ht);
|
|
1111
1111
|
return [n, r];
|
|
1112
1112
|
});
|
|
1113
|
-
function
|
|
1113
|
+
function No(e) {
|
|
1114
1114
|
let t, n, r, o, i, l, s;
|
|
1115
1115
|
const c = typeof document < "u" && document.attachEvent;
|
|
1116
1116
|
if (!c) {
|
|
@@ -1182,7 +1182,7 @@ function Lo(e) {
|
|
|
1182
1182
|
}
|
|
1183
1183
|
};
|
|
1184
1184
|
}
|
|
1185
|
-
class
|
|
1185
|
+
class Lo extends Fn {
|
|
1186
1186
|
constructor(...t) {
|
|
1187
1187
|
super(...t), this.state = {
|
|
1188
1188
|
height: this.props.defaultHeight || 0,
|
|
@@ -1223,7 +1223,7 @@ class No extends Fn {
|
|
|
1223
1223
|
const r = n.ownerDocument.defaultView.ResizeObserver;
|
|
1224
1224
|
r != null ? (this._resizeObserver = new r(() => {
|
|
1225
1225
|
this._timeoutId = setTimeout(this._onResize, 0);
|
|
1226
|
-
}), this._resizeObserver.observe(n)) : (this._detectElementResize =
|
|
1226
|
+
}), this._resizeObserver.observe(n)) : (this._detectElementResize = No(t), this._detectElementResize.addResizeListener(n, this._onResize)), this._onResize();
|
|
1227
1227
|
}
|
|
1228
1228
|
}
|
|
1229
1229
|
componentWillUnmount() {
|
|
@@ -1251,7 +1251,7 @@ class No extends Fn {
|
|
|
1251
1251
|
overflow: "visible"
|
|
1252
1252
|
}, b = {};
|
|
1253
1253
|
let S = !1;
|
|
1254
|
-
return o || (u === 0 && (S = !0), g.height = 0, b.height = u, b.scaledHeight = f), i || (_ === 0 && (S = !0), g.width = 0, b.width = _, b.scaledWidth = v), l && (S = !1),
|
|
1254
|
+
return o || (u === 0 && (S = !0), g.height = 0, b.height = u, b.scaledHeight = f), i || (_ === 0 && (S = !0), g.width = 0, b.width = _, b.scaledWidth = v), l && (S = !1), Le(h, {
|
|
1255
1255
|
ref: this._setRef,
|
|
1256
1256
|
style: {
|
|
1257
1257
|
...g,
|
|
@@ -1403,13 +1403,13 @@ const Eo = (e = 1) => {
|
|
|
1403
1403
|
columnWidth: w,
|
|
1404
1404
|
estimatedColumnWidth: I,
|
|
1405
1405
|
estimatedRowHeight: y
|
|
1406
|
-
} = Mo(), [R,
|
|
1406
|
+
} = Mo(), [R, N] = F({}), { isScrolling: L } = Kt(), x = $(), E = $({
|
|
1407
1407
|
scrollTop: 0,
|
|
1408
1408
|
scrollLeft: 0
|
|
1409
1409
|
}), { isPressed: z } = Tr(), { selectionMode: k } = fr(), { initializeGrabScroll: G, scrollBehavior: Z } = Ir({
|
|
1410
1410
|
isPressed: z
|
|
1411
1411
|
}), U = D(() => k === jt.HAND, [k]), K = M((W, H) => {
|
|
1412
|
-
|
|
1412
|
+
N((q) => ({ ...q, [W]: Math.round(H * 100) }));
|
|
1413
1413
|
}, []), ue = D(() => ({
|
|
1414
1414
|
columnCount: C,
|
|
1415
1415
|
handleIntersectRatioChange: K
|
|
@@ -1448,10 +1448,10 @@ const Eo = (e = 1) => {
|
|
|
1448
1448
|
});
|
|
1449
1449
|
}
|
|
1450
1450
|
}, [T, C, P, r, n]), A(() => {
|
|
1451
|
-
if (
|
|
1451
|
+
if (L.current)
|
|
1452
1452
|
return;
|
|
1453
1453
|
if (b.current.viewMode !== v || b.current.scrollMode !== f) {
|
|
1454
|
-
x.current && clearTimeout(x.current),
|
|
1454
|
+
x.current && clearTimeout(x.current), N({}), n(u), f === Q.HORIZONTAL_SCROLLING && (r == null || r.scrollTo({
|
|
1455
1455
|
scrollTop: 0
|
|
1456
1456
|
})), x.current = setTimeout(() => {
|
|
1457
1457
|
requestAnimationFrame(() => {
|
|
@@ -1470,8 +1470,8 @@ const Eo = (e = 1) => {
|
|
|
1470
1470
|
}
|
|
1471
1471
|
}, [c, v, f]), A(() => {
|
|
1472
1472
|
const W = Object.entries(R);
|
|
1473
|
-
if (
|
|
1474
|
-
|
|
1473
|
+
if (L.current) {
|
|
1474
|
+
L.current && (L.current = !1);
|
|
1475
1475
|
return;
|
|
1476
1476
|
}
|
|
1477
1477
|
let H = 0, q = -1;
|
|
@@ -1493,7 +1493,7 @@ const Eo = (e = 1) => {
|
|
|
1493
1493
|
},
|
|
1494
1494
|
[U, G, ae]
|
|
1495
1495
|
);
|
|
1496
|
-
return /* @__PURE__ */ a("div", { ref: e, tabIndex: -1, className: _e, children: /* @__PURE__ */ a(
|
|
1496
|
+
return /* @__PURE__ */ a("div", { ref: e, tabIndex: -1, className: _e, children: /* @__PURE__ */ a(Lo, { children: ({ width: W, height: H }) => /* @__PURE__ */ a(
|
|
1497
1497
|
"div",
|
|
1498
1498
|
{
|
|
1499
1499
|
"data-rp": "pagesWrapper",
|
|
@@ -1534,11 +1534,11 @@ const Eo = (e = 1) => {
|
|
|
1534
1534
|
}
|
|
1535
1535
|
) }) });
|
|
1536
1536
|
}, Ie = {
|
|
1537
|
-
"rp-toolbar-content": "_rp-toolbar-
|
|
1538
|
-
"rp-toolbar-wrapper": "_rp-toolbar-
|
|
1539
|
-
"rp-toolbar-start": "_rp-toolbar-
|
|
1540
|
-
"rp-toolbar-middle": "_rp-toolbar-
|
|
1541
|
-
"rp-toolbar-end": "_rp-toolbar-
|
|
1537
|
+
"rp-toolbar-content": "_rp-toolbar-content_fw3uq_1",
|
|
1538
|
+
"rp-toolbar-wrapper": "_rp-toolbar-wrapper_fw3uq_10",
|
|
1539
|
+
"rp-toolbar-start": "_rp-toolbar-start_fw3uq_18",
|
|
1540
|
+
"rp-toolbar-middle": "_rp-toolbar-middle_fw3uq_24",
|
|
1541
|
+
"rp-toolbar-end": "_rp-toolbar-end_fw3uq_31"
|
|
1542
1542
|
}, tt = {
|
|
1543
1543
|
"rp-paginate": "_rp-paginate_1vu6o_1",
|
|
1544
1544
|
"rp-page-input": "_rp-page-input_1vu6o_6",
|
|
@@ -1632,7 +1632,7 @@ var hn = "DialogTrigger", $o = V.forwardRef(
|
|
|
1632
1632
|
(e, t) => {
|
|
1633
1633
|
const { __scopeDialog: n, ...r } = e, o = te(hn, n), i = mt(t, o.triggerRef);
|
|
1634
1634
|
return /* @__PURE__ */ a(
|
|
1635
|
-
|
|
1635
|
+
Ne.button,
|
|
1636
1636
|
{
|
|
1637
1637
|
type: "button",
|
|
1638
1638
|
"aria-haspopup": "dialog",
|
|
@@ -1667,8 +1667,8 @@ var Go = V.forwardRef(
|
|
|
1667
1667
|
return (
|
|
1668
1668
|
// Make sure `Content` is scrollable even when it doesn't live inside `RemoveScroll`
|
|
1669
1669
|
// ie. when `Overlay` and `Content` are siblings
|
|
1670
|
-
/* @__PURE__ */ a(
|
|
1671
|
-
|
|
1670
|
+
/* @__PURE__ */ a(Nr, { as: Lr, allowPinchZoom: !0, shards: [o.contentRef], children: /* @__PURE__ */ a(
|
|
1671
|
+
Ne.div,
|
|
1672
1672
|
{
|
|
1673
1673
|
"data-state": St(o.open),
|
|
1674
1674
|
...r,
|
|
@@ -1773,14 +1773,14 @@ var Uo = V.forwardRef(
|
|
|
1773
1773
|
), Pt = "DialogTitle", wn = V.forwardRef(
|
|
1774
1774
|
(e, t) => {
|
|
1775
1775
|
const { __scopeDialog: n, ...r } = e, o = te(Pt, n);
|
|
1776
|
-
return /* @__PURE__ */ a(
|
|
1776
|
+
return /* @__PURE__ */ a(Ne.h2, { id: o.titleId, ...r, ref: t });
|
|
1777
1777
|
}
|
|
1778
1778
|
);
|
|
1779
1779
|
wn.displayName = Pt;
|
|
1780
1780
|
var bn = "DialogDescription", Zo = V.forwardRef(
|
|
1781
1781
|
(e, t) => {
|
|
1782
1782
|
const { __scopeDialog: n, ...r } = e, o = te(bn, n);
|
|
1783
|
-
return /* @__PURE__ */ a(
|
|
1783
|
+
return /* @__PURE__ */ a(Ne.p, { id: o.descriptionId, ...r, ref: t });
|
|
1784
1784
|
}
|
|
1785
1785
|
);
|
|
1786
1786
|
Zo.displayName = bn;
|
|
@@ -1788,7 +1788,7 @@ var Cn = "DialogClose", Pn = V.forwardRef(
|
|
|
1788
1788
|
(e, t) => {
|
|
1789
1789
|
const { __scopeDialog: n, ...r } = e, o = te(Cn, n);
|
|
1790
1790
|
return /* @__PURE__ */ a(
|
|
1791
|
-
|
|
1791
|
+
Ne.button,
|
|
1792
1792
|
{
|
|
1793
1793
|
type: "button",
|
|
1794
1794
|
...r,
|
|
@@ -1893,7 +1893,7 @@ const fe = {
|
|
|
1893
1893
|
}, In = () => {
|
|
1894
1894
|
const { downloadIcon: e } = re();
|
|
1895
1895
|
return e || /* @__PURE__ */ a(Zr, {});
|
|
1896
|
-
}, yn = ({ children: e }) => /* @__PURE__ */ a(X, { content: "Download file", children: e }), aa = ({ downloadFile: e }) => /* @__PURE__ */ a(yn, { children: /* @__PURE__ */ a(B, { onClick: e, children: /* @__PURE__ */ a(In, {}) }) }), ia = ({ downloadFile: e }) => /* @__PURE__ */ a(
|
|
1896
|
+
}, yn = ({ children: e, className: t }) => /* @__PURE__ */ a(X, { className: t, content: "Download file", children: e }), aa = ({ downloadFile: e }) => /* @__PURE__ */ a(yn, { children: /* @__PURE__ */ a(B, { onClick: e, children: /* @__PURE__ */ a(In, {}) }) }), ia = ({ downloadFile: e }) => /* @__PURE__ */ a(ce, { onClick: e, children: /* @__PURE__ */ O(yn, { className: "rp-menu-item", children: [
|
|
1897
1897
|
/* @__PURE__ */ a("div", { className: "rp-menu-item-left", children: /* @__PURE__ */ a(In, {}) }),
|
|
1898
1898
|
"Download file"
|
|
1899
1899
|
] }) }), Rn = () => {
|
|
@@ -1936,9 +1936,9 @@ const sa = () => {
|
|
|
1936
1936
|
}
|
|
1937
1937
|
const R = w / tr.PDF;
|
|
1938
1938
|
P.width = Math.floor(C.width * R), P.height = Math.floor(C.height * R);
|
|
1939
|
-
const
|
|
1940
|
-
|
|
1941
|
-
const [
|
|
1939
|
+
const N = P.getContext("2d");
|
|
1940
|
+
N.save(), N.fillStyle = "rgb(255, 255, 255)", N.fillRect(0, 0, P.width, P.height), N.restore();
|
|
1941
|
+
const [L, x] = await Promise.all([
|
|
1942
1942
|
T.getPage(d),
|
|
1943
1943
|
y
|
|
1944
1944
|
]);
|
|
@@ -1947,16 +1947,16 @@ const sa = () => {
|
|
|
1947
1947
|
return;
|
|
1948
1948
|
}
|
|
1949
1949
|
const E = {
|
|
1950
|
-
canvasContext:
|
|
1950
|
+
canvasContext: N,
|
|
1951
1951
|
transform: [R, 0, 0, R, 0, 0],
|
|
1952
|
-
viewport:
|
|
1952
|
+
viewport: L.getViewport({ scale: 1, rotation: C.rotation }),
|
|
1953
1953
|
intent: "print",
|
|
1954
1954
|
annotationMode: nr.ENABLE_STORAGE,
|
|
1955
1955
|
optionalContentConfigPromise: I,
|
|
1956
1956
|
printAnnotationStorage: x
|
|
1957
1957
|
};
|
|
1958
1958
|
try {
|
|
1959
|
-
return
|
|
1959
|
+
return L.render(E).promise;
|
|
1960
1960
|
} catch (z) {
|
|
1961
1961
|
throw z instanceof rr || console.error(z), z;
|
|
1962
1962
|
}
|
|
@@ -2006,17 +2006,17 @@ const sa = () => {
|
|
|
2006
2006
|
const C = e.getOptionalContentConfig({ intent: "print" }), w = Promise.resolve(
|
|
2007
2007
|
e.annotationStorage.print ?? void 0
|
|
2008
2008
|
), I = t.size;
|
|
2009
|
-
for (const [R,
|
|
2009
|
+
for (const [R, N] of t) {
|
|
2010
2010
|
if (h.current) {
|
|
2011
2011
|
u();
|
|
2012
2012
|
return;
|
|
2013
2013
|
}
|
|
2014
|
-
const
|
|
2014
|
+
const L = N.page.getViewport({ scale: 1 });
|
|
2015
2015
|
if (await v({
|
|
2016
2016
|
scratchCanvas: P,
|
|
2017
2017
|
pdfDocument: e,
|
|
2018
2018
|
pageNumber: R,
|
|
2019
|
-
viewerPdfPage:
|
|
2019
|
+
viewerPdfPage: L,
|
|
2020
2020
|
printResolution: 150,
|
|
2021
2021
|
optionalContentConfigPromise: C,
|
|
2022
2022
|
printAnnotationStoragePromise: w
|
|
@@ -2116,10 +2116,10 @@ const sa = () => {
|
|
|
2116
2116
|
}, Mn = () => {
|
|
2117
2117
|
const { printIcon: e } = re();
|
|
2118
2118
|
return e || /* @__PURE__ */ a(jr, {});
|
|
2119
|
-
},
|
|
2119
|
+
}, Nn = ({ children: e, className: t }) => /* @__PURE__ */ a(X, { className: t, content: "Print", children: e }), ca = ({ print: e }) => /* @__PURE__ */ a(Nn, { children: /* @__PURE__ */ a(B, { onClick: e, children: /* @__PURE__ */ a(Mn, {}) }) }), ua = ({ print: e }) => /* @__PURE__ */ a(ce, { onClick: e, children: /* @__PURE__ */ O(Nn, { className: "rp-menu-item", children: [
|
|
2120
2120
|
/* @__PURE__ */ a("div", { className: "rp-menu-item-left", children: /* @__PURE__ */ a(Mn, {}) }),
|
|
2121
2121
|
"Print"
|
|
2122
|
-
] }) }),
|
|
2122
|
+
] }) }), Ln = () => {
|
|
2123
2123
|
const { print: e, cancel: t, setOnProgress: n, setOnComplete: r, setOnError: o, progress: i } = Tt(), { printTool: l = !0 } = se(), { isSmallScreen: s } = ge();
|
|
2124
2124
|
return l ? s ? /* @__PURE__ */ a(ua, { print: e }) : typeof l == "function" ? /* @__PURE__ */ a(
|
|
2125
2125
|
l,
|
|
@@ -2147,11 +2147,11 @@ const sa = () => {
|
|
|
2147
2147
|
e(t);
|
|
2148
2148
|
}, [e, t]);
|
|
2149
2149
|
return r ? /* @__PURE__ */ O(Fe, { children: [
|
|
2150
|
-
/* @__PURE__ */ a(
|
|
2150
|
+
/* @__PURE__ */ a(ce, { disabled: o, onClick: l, children: /* @__PURE__ */ O(X, { className: "rp-menu-item", content: "Go to first page", children: [
|
|
2151
2151
|
/* @__PURE__ */ a("div", { className: "rp-menu-item-left", children: /* @__PURE__ */ a(pa, {}) }),
|
|
2152
2152
|
"First page"
|
|
2153
2153
|
] }) }),
|
|
2154
|
-
/* @__PURE__ */ a(
|
|
2154
|
+
/* @__PURE__ */ a(ce, { disabled: i, onClick: s, children: /* @__PURE__ */ O(X, { className: "rp-menu-item", content: "Go to last page", children: [
|
|
2155
2155
|
/* @__PURE__ */ a("div", { className: "rp-menu-item-left", children: /* @__PURE__ */ a(ha, {}) }),
|
|
2156
2156
|
"Last page"
|
|
2157
2157
|
] }) }),
|
|
@@ -2192,7 +2192,7 @@ const sa = () => {
|
|
|
2192
2192
|
t && /* @__PURE__ */ O(Fe, { children: [
|
|
2193
2193
|
/* @__PURE__ */ a(Jt, {}),
|
|
2194
2194
|
/* @__PURE__ */ a(Rn, {}),
|
|
2195
|
-
/* @__PURE__ */ a(
|
|
2195
|
+
/* @__PURE__ */ a(Ln, {}),
|
|
2196
2196
|
/* @__PURE__ */ a(Qt, {}),
|
|
2197
2197
|
/* @__PURE__ */ a(vt, {})
|
|
2198
2198
|
] }),
|
|
@@ -2213,7 +2213,7 @@ const sa = () => {
|
|
|
2213
2213
|
!e && /* @__PURE__ */ O(Ae, { children: [
|
|
2214
2214
|
/* @__PURE__ */ a(Jt, {}),
|
|
2215
2215
|
/* @__PURE__ */ a(Rn, {}),
|
|
2216
|
-
/* @__PURE__ */ a(
|
|
2216
|
+
/* @__PURE__ */ a(Ln, {}),
|
|
2217
2217
|
/* @__PURE__ */ a(Qt, {})
|
|
2218
2218
|
] }),
|
|
2219
2219
|
/* @__PURE__ */ a(ma, {})
|
|
@@ -2348,12 +2348,12 @@ const sa = () => {
|
|
|
2348
2348
|
b(x.target.value);
|
|
2349
2349
|
}, []), w = M(() => {
|
|
2350
2350
|
b(""), p("");
|
|
2351
|
-
}, [p]), I = D(() => `${m} / ${h}`, [m, h]), { wholeWords: y, matchCase: R } = D(() => l, [l]),
|
|
2351
|
+
}, [p]), I = D(() => `${m} / ${h}`, [m, h]), { wholeWords: y, matchCase: R } = D(() => l, [l]), N = M(
|
|
2352
2352
|
(x) => {
|
|
2353
2353
|
s((E) => ({ ...E, matchCase: x }));
|
|
2354
2354
|
},
|
|
2355
2355
|
[s]
|
|
2356
|
-
),
|
|
2356
|
+
), L = M(
|
|
2357
2357
|
(x) => {
|
|
2358
2358
|
s((E) => ({ ...E, wholeWords: x }));
|
|
2359
2359
|
},
|
|
@@ -2387,8 +2387,8 @@ const sa = () => {
|
|
|
2387
2387
|
c ? /* @__PURE__ */ a("span", { children: /* @__PURE__ */ a(pt, {}) }) : /* @__PURE__ */ a("span", { children: I })
|
|
2388
2388
|
] }),
|
|
2389
2389
|
/* @__PURE__ */ O("div", { className: ne["rp-search-tool-input-checkboxes"], children: [
|
|
2390
|
-
/* @__PURE__ */ a(Rt, { name: "matchCase", value: R, onChange:
|
|
2391
|
-
/* @__PURE__ */ a(Rt, { name: "wholeWord", value: y, onChange:
|
|
2390
|
+
/* @__PURE__ */ a(Rt, { name: "matchCase", value: R, onChange: N, children: "Match Case" }),
|
|
2391
|
+
/* @__PURE__ */ a(Rt, { name: "wholeWord", value: y, onChange: L, children: "Whole Word" })
|
|
2392
2392
|
] })
|
|
2393
2393
|
] }),
|
|
2394
2394
|
/* @__PURE__ */ O("div", { className: ne["rp-search-tool-controls"], children: [
|
|
@@ -2440,10 +2440,10 @@ const sa = () => {
|
|
|
2440
2440
|
n && i ? /* @__PURE__ */ a(Ta, { percentage: i }) : null
|
|
2441
2441
|
] });
|
|
2442
2442
|
}), rt = {
|
|
2443
|
-
"rp-sidebar-content-wrapper": "_rp-sidebar-content-
|
|
2444
|
-
"rp-sidebar-content": "_rp-sidebar-
|
|
2445
|
-
"rp-thumbnails-wrapper": "_rp-thumbnails-
|
|
2446
|
-
"rp-thumbnail-dragging": "_rp-thumbnail-
|
|
2443
|
+
"rp-sidebar-content-wrapper": "_rp-sidebar-content-wrapper_4wlw3_1",
|
|
2444
|
+
"rp-sidebar-content": "_rp-sidebar-content_4wlw3_1",
|
|
2445
|
+
"rp-thumbnails-wrapper": "_rp-thumbnails-wrapper_4wlw3_16",
|
|
2446
|
+
"rp-thumbnail-dragging": "_rp-thumbnail-dragging_4wlw3_21"
|
|
2447
2447
|
}, Re = {
|
|
2448
2448
|
"rp-thumbnail-wrapper": "_rp-thumbnail-wrapper_3fenb_1",
|
|
2449
2449
|
"rp-thumbnail-text": "_rp-thumbnail-text_3fenb_10",
|
|
@@ -2590,10 +2590,10 @@ const sa = () => {
|
|
|
2590
2590
|
children: e
|
|
2591
2591
|
}
|
|
2592
2592
|
);
|
|
2593
|
-
}, Ma = 16,
|
|
2593
|
+
}, Ma = 16, Na = (e, t) => {
|
|
2594
2594
|
const n = e == null ? void 0 : e.querySelector(`#page-${t}`);
|
|
2595
2595
|
e && (n != null && n.offsetTop) && (e.scrollTop = (n == null ? void 0 : n.offsetTop) - Ma);
|
|
2596
|
-
},
|
|
2596
|
+
}, La = $e((e, t) => {
|
|
2597
2597
|
const { show: n } = e, { focusedPage: r, totalPages: o } = ee(), { thumbnailPages: i, addPage: l, thumbnailLength: s, addToPage: c } = On(), p = $(null), h = $(1);
|
|
2598
2598
|
qt(t, () => p.current);
|
|
2599
2599
|
const m = D(() => Object.values(i), [i]), u = M(() => {
|
|
@@ -2601,7 +2601,7 @@ const sa = () => {
|
|
|
2601
2601
|
f <= o && l(f);
|
|
2602
2602
|
}, [l, o, s]);
|
|
2603
2603
|
return A(() => {
|
|
2604
|
-
r > s ? c(r) : n && h.current !== r && (
|
|
2604
|
+
r > s ? c(r) : n && h.current !== r && (Na(p.current, r), h.current = r);
|
|
2605
2605
|
}, [r, s, c, n, m]), or(p.current, u), /* @__PURE__ */ a("div", { ref: p, className: Ut["rp-thumbnails-container"], children: /* @__PURE__ */ a("div", { className: Ut["rp-thumbnails"], children: n ? m.map((f, v) => {
|
|
2606
2606
|
var _, g;
|
|
2607
2607
|
return /* @__PURE__ */ a(
|
|
@@ -2632,7 +2632,7 @@ const sa = () => {
|
|
|
2632
2632
|
children: [
|
|
2633
2633
|
/* @__PURE__ */ a("div", { "data-rp": "thumbnailButton", className: rt["rp-sidebar-content"], children: s }),
|
|
2634
2634
|
/* @__PURE__ */ O("div", { "data-rp": "thumbnails", hidden: !e, className: rt["rp-thumbnails-wrapper"], children: [
|
|
2635
|
-
/* @__PURE__ */ a(
|
|
2635
|
+
/* @__PURE__ */ a(La, { show: e, ref: o }),
|
|
2636
2636
|
/* @__PURE__ */ a(ar, { onWidthChange: r, thumbnailRef: o })
|
|
2637
2637
|
] })
|
|
2638
2638
|
]
|
|
@@ -2717,7 +2717,7 @@ export {
|
|
|
2717
2717
|
xa as B,
|
|
2718
2718
|
Qr as C,
|
|
2719
2719
|
Do as D,
|
|
2720
|
-
|
|
2720
|
+
La as E,
|
|
2721
2721
|
Rn as F,
|
|
2722
2722
|
Oa as G,
|
|
2723
2723
|
Da as H,
|
|
@@ -2746,7 +2746,7 @@ export {
|
|
|
2746
2746
|
sa as o,
|
|
2747
2747
|
xn as p,
|
|
2748
2748
|
la as q,
|
|
2749
|
-
|
|
2749
|
+
Ln as r,
|
|
2750
2750
|
ga as s,
|
|
2751
2751
|
Pa as t,
|
|
2752
2752
|
ee as u,
|
package/dist/assets/Button.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
._rp-
|
|
1
|
+
._rp-button_uycem_1{border-radius:var(--rp-border-radius);padding:var(--rp-button-padding);background:transparent;border:none;color:var(--rp-text-color);cursor:pointer;font-size:var(--rp-icon-font-size);line-height:0}._rp-button_uycem_1:hover:not(:disabled),._rp-button-active_uycem_13:not(:disabled){background:var(--rp-button-hover-background)}._rp-button_uycem_1:disabled{cursor:not-allowed;color:var(--rp-icon-disabled)}._rp-button_uycem_1:focus-visible{transition:none;outline-color:var(--rp-outline-color, -webkit-focus-ring-color);outline-style:solid;outline-offset:0}
|