@pdf-viewer/react 0.5.0-beta.3 → 0.6.0-beta.0
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/{RPLayout-c0d9e10f.js → RPLayout-33766f73.js} +100 -98
- package/dist/assets/MenuItem.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/RPLayout.js +1 -1
- 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 +4 -4
- package/dist/components/layout/toolbar/MenuSeparator.js +1 -1
- package/dist/components/layout/toolbar/MostPageTool.js +2 -2
- package/dist/components/layout/toolbar/OtherTool.js +2 -2
- package/dist/components/layout/toolbar/Paginate.js +1 -1
- package/dist/components/layout/toolbar/PrintTool.js +1 -1
- package/dist/components/layout/toolbar/RPToolbar.js +1 -1
- package/dist/components/layout/toolbar/RPToolbarEnd.js +1 -1
- package/dist/components/layout/toolbar/RotateTool.js +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/ViewModeTool.js +1 -1
- package/dist/components/layout/toolbar/ZoomTool.js +2 -2
- 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/Checkbox.js +1 -1
- package/dist/components/ui/DropDown.js +1 -1
- package/dist/components/ui/LoadingIndicator.js +1 -1
- package/dist/components/ui/RPTooltip.js +572 -1877
- 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/floating-ui.react-dom-e6d5fe8f.js +1327 -0
- package/dist/index-316854c1.js +2299 -0
- package/dist/index-71898eb9.js +139 -0
- package/dist/main.js +1 -1
- package/dist/utils/hooks/useFileDownload.js +1 -1
- package/dist/utils/hooks/useLicense.js +24 -16
- 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/index-2b077daa.js +0 -122
- package/dist/index-8049287f.js +0 -3639
|
@@ -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";
|
|
@@ -53,7 +53,9 @@ 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 {
|
|
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
|
+
import { c as Fr, e as kr, b as Wr } from "./index-71898eb9.js";
|
|
58
|
+
import { e as Be } from "./floating-ui.react-dom-e6d5fe8f.js";
|
|
57
59
|
import { CloseIcon as Yt } from "./components/icons/CloseIcon.js";
|
|
58
60
|
import { PropertyItem as Hr } from "./components/layout/toolbar/PropertyItem.js";
|
|
59
61
|
import { useOtherToolContext as $r, OtherToolProvider as Vr } from "./contexts/OtherToolContext.js";
|
|
@@ -151,7 +153,7 @@ import './assets/RPLayout.css';const ae = {
|
|
|
151
153
|
const y = g || _;
|
|
152
154
|
if (!y)
|
|
153
155
|
return;
|
|
154
|
-
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;
|
|
155
157
|
y.scrollTo({
|
|
156
158
|
top: x,
|
|
157
159
|
left: E,
|
|
@@ -172,14 +174,14 @@ import './assets/RPLayout.css';const ae = {
|
|
|
172
174
|
}, [d]), I = M(async (y) => {
|
|
173
175
|
if (!y)
|
|
174
176
|
return {};
|
|
175
|
-
const R = y.numPages,
|
|
176
|
-
for (let
|
|
177
|
+
const R = y.numPages, N = {};
|
|
178
|
+
for (let L = 1; L <= R; L++) {
|
|
177
179
|
if (s.current)
|
|
178
180
|
throw "close pop over";
|
|
179
|
-
const x = await y.getPage(
|
|
180
|
-
L
|
|
181
|
+
const x = await y.getPage(L);
|
|
182
|
+
N[L.toString()] = await x.getTextContent();
|
|
181
183
|
}
|
|
182
|
-
return
|
|
184
|
+
return N;
|
|
183
185
|
}, []);
|
|
184
186
|
return A(() => {
|
|
185
187
|
if (!n) {
|
|
@@ -187,16 +189,16 @@ import './assets/RPLayout.css';const ae = {
|
|
|
187
189
|
return;
|
|
188
190
|
}
|
|
189
191
|
s.current = !1, i(!0), p([]), m(0), I(l).then((y) => {
|
|
190
|
-
const
|
|
192
|
+
const N = Object.keys(y).reduce((L, x) => {
|
|
191
193
|
const E = Kn(
|
|
192
194
|
[n],
|
|
193
195
|
y[x],
|
|
194
196
|
Number(x) - 1,
|
|
195
197
|
e
|
|
196
198
|
).map((z, k) => ({ ...z, page: Number(x), pageMatchIdx: k }));
|
|
197
|
-
return [...
|
|
199
|
+
return [...L, ...E];
|
|
198
200
|
}, []);
|
|
199
|
-
p(
|
|
201
|
+
p(N), m(N.length ? 1 : 0);
|
|
200
202
|
}).catch(() => {
|
|
201
203
|
p([]), m(0);
|
|
202
204
|
}).finally(() => i(!1));
|
|
@@ -597,7 +599,7 @@ function lt() {
|
|
|
597
599
|
return e;
|
|
598
600
|
}, lt.apply(null, arguments);
|
|
599
601
|
}
|
|
600
|
-
function
|
|
602
|
+
function Nt(e) {
|
|
601
603
|
if (e === void 0)
|
|
602
604
|
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
603
605
|
return e;
|
|
@@ -610,11 +612,11 @@ function ct(e, t) {
|
|
|
610
612
|
function fo(e, t) {
|
|
611
613
|
e.prototype = Object.create(t.prototype), e.prototype.constructor = e, ct(e, t);
|
|
612
614
|
}
|
|
613
|
-
var
|
|
615
|
+
var Lt = Number.isNaN || function(t) {
|
|
614
616
|
return typeof t == "number" && t !== t;
|
|
615
617
|
};
|
|
616
618
|
function mo(e, t) {
|
|
617
|
-
return !!(e === t ||
|
|
619
|
+
return !!(e === t || Lt(e) && Lt(t));
|
|
618
620
|
}
|
|
619
621
|
function go(e, t) {
|
|
620
622
|
if (e.length !== t.length)
|
|
@@ -695,23 +697,23 @@ function Po(e) {
|
|
|
695
697
|
fo(S, b);
|
|
696
698
|
function S(T) {
|
|
697
699
|
var d;
|
|
698
|
-
return d = b.call(this, T) || this, d._instanceProps = v(d.props,
|
|
699
|
-
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),
|
|
700
702
|
isScrolling: !1,
|
|
701
703
|
horizontalScrollDirection: "forward",
|
|
702
704
|
scrollLeft: typeof d.props.initialScrollLeft == "number" ? d.props.initialScrollLeft : 0,
|
|
703
705
|
scrollTop: typeof d.props.initialScrollTop == "number" ? d.props.initialScrollTop : 0,
|
|
704
706
|
scrollUpdateWasRequested: !1,
|
|
705
707
|
verticalScrollDirection: "forward"
|
|
706
|
-
}, 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) {
|
|
707
709
|
return d.props.onItemsRendered({
|
|
708
710
|
overscanColumnStartIndex: C,
|
|
709
711
|
overscanColumnStopIndex: w,
|
|
710
712
|
overscanRowStartIndex: I,
|
|
711
713
|
overscanRowStopIndex: y,
|
|
712
714
|
visibleColumnStartIndex: R,
|
|
713
|
-
visibleColumnStopIndex:
|
|
714
|
-
visibleRowStartIndex:
|
|
715
|
+
visibleColumnStopIndex: N,
|
|
716
|
+
visibleRowStartIndex: L,
|
|
715
717
|
visibleRowStopIndex: x
|
|
716
718
|
});
|
|
717
719
|
}), d._callOnScroll = void 0, d._callOnScroll = Je(function(C, w, I, y, R) {
|
|
@@ -723,12 +725,12 @@ function Po(e) {
|
|
|
723
725
|
scrollUpdateWasRequested: R
|
|
724
726
|
});
|
|
725
727
|
}), d._getItemStyle = void 0, d._getItemStyle = function(C, w) {
|
|
726
|
-
var I = d.props, y = I.columnWidth, R = I.direction,
|
|
727
|
-
if (
|
|
728
|
-
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];
|
|
729
731
|
else {
|
|
730
732
|
var z = n(d.props, w, d._instanceProps), k = R === "rtl";
|
|
731
|
-
|
|
733
|
+
L[x] = E = {
|
|
732
734
|
position: "absolute",
|
|
733
735
|
left: k ? void 0 : z,
|
|
734
736
|
right: k ? z : void 0,
|
|
@@ -741,9 +743,9 @@ function Po(e) {
|
|
|
741
743
|
}, d._getItemStyleCache = void 0, d._getItemStyleCache = Je(function(C, w, I) {
|
|
742
744
|
return {};
|
|
743
745
|
}), d._onScroll = function(C) {
|
|
744
|
-
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;
|
|
745
747
|
d.setState(function(E) {
|
|
746
|
-
if (E.scrollLeft === R && E.scrollTop ===
|
|
748
|
+
if (E.scrollLeft === R && E.scrollTop === N)
|
|
747
749
|
return null;
|
|
748
750
|
var z = d.props.direction, k = R;
|
|
749
751
|
if (z === "rtl")
|
|
@@ -756,13 +758,13 @@ function Po(e) {
|
|
|
756
758
|
break;
|
|
757
759
|
}
|
|
758
760
|
k = Math.max(0, Math.min(k, x - y));
|
|
759
|
-
var G = Math.max(0, Math.min(
|
|
761
|
+
var G = Math.max(0, Math.min(N, L - I));
|
|
760
762
|
return {
|
|
761
763
|
isScrolling: !0,
|
|
762
764
|
horizontalScrollDirection: E.scrollLeft < R ? "forward" : "backward",
|
|
763
765
|
scrollLeft: k,
|
|
764
766
|
scrollTop: G,
|
|
765
|
-
verticalScrollDirection: E.scrollTop <
|
|
767
|
+
verticalScrollDirection: E.scrollTop < N ? "forward" : "backward",
|
|
766
768
|
scrollUpdateWasRequested: !1
|
|
767
769
|
};
|
|
768
770
|
}, d._resetIsScrollingDebounced);
|
|
@@ -795,9 +797,9 @@ function Po(e) {
|
|
|
795
797
|
};
|
|
796
798
|
}, this._resetIsScrollingDebounced);
|
|
797
799
|
}, P.scrollToItem = function(d) {
|
|
798
|
-
var C = d.align, w = C === void 0 ? "auto" : C, I = d.columnIndex, y = d.rowIndex, R = this.props,
|
|
799
|
-
I !== void 0 && (I = Math.max(0, Math.min(I,
|
|
800
|
-
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;
|
|
801
803
|
this.scrollTo({
|
|
802
804
|
scrollLeft: I !== void 0 ? c(this.props, I, w, k, this._instanceProps, oe) : k,
|
|
803
805
|
scrollTop: y !== void 0 ? p(this.props, y, w, G, this._instanceProps, ue) : G
|
|
@@ -822,8 +824,8 @@ function Po(e) {
|
|
|
822
824
|
R.scrollLeft = w;
|
|
823
825
|
break;
|
|
824
826
|
default:
|
|
825
|
-
var
|
|
826
|
-
R.scrollLeft =
|
|
827
|
+
var N = R.clientWidth, L = R.scrollWidth;
|
|
828
|
+
R.scrollLeft = L - N - w;
|
|
827
829
|
break;
|
|
828
830
|
}
|
|
829
831
|
else
|
|
@@ -834,11 +836,11 @@ function Po(e) {
|
|
|
834
836
|
}, P.componentWillUnmount = function() {
|
|
835
837
|
this._resetIsScrollingTimeoutId !== null && Dt(this._resetIsScrollingTimeoutId);
|
|
836
838
|
}, P.render = function() {
|
|
837
|
-
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 = [];
|
|
838
840
|
if (I > 0 && U)
|
|
839
841
|
for (var de = q; de <= le; de++)
|
|
840
842
|
for (var pe = Se; pe <= W; pe++)
|
|
841
|
-
Te.push(
|
|
843
|
+
Te.push(Le(C, {
|
|
842
844
|
columnIndex: pe,
|
|
843
845
|
data: E,
|
|
844
846
|
isScrolling: ue ? ve : void 0,
|
|
@@ -851,7 +853,7 @@ function Po(e) {
|
|
|
851
853
|
style: this._getItemStyle(de, pe)
|
|
852
854
|
}));
|
|
853
855
|
var Ze = l(this.props, this._instanceProps), je = s(this.props, this._instanceProps);
|
|
854
|
-
return
|
|
856
|
+
return Le(G || Z || "div", {
|
|
855
857
|
className: w,
|
|
856
858
|
onScroll: this._onScroll,
|
|
857
859
|
ref: this._outerRefSetter,
|
|
@@ -864,9 +866,9 @@ function Po(e) {
|
|
|
864
866
|
willChange: "transform",
|
|
865
867
|
direction: y
|
|
866
868
|
}, K)
|
|
867
|
-
},
|
|
869
|
+
}, Le(L || x || "div", {
|
|
868
870
|
children: Te,
|
|
869
|
-
ref:
|
|
871
|
+
ref: N,
|
|
870
872
|
style: {
|
|
871
873
|
height: Ze,
|
|
872
874
|
pointerEvents: ve ? "none" : void 0,
|
|
@@ -876,24 +878,24 @@ function Po(e) {
|
|
|
876
878
|
}, P._callPropsCallbacks = function() {
|
|
877
879
|
var d = this.props, C = d.columnCount, w = d.onItemsRendered, I = d.onScroll, y = d.rowCount;
|
|
878
880
|
if (typeof w == "function" && C > 0 && y > 0) {
|
|
879
|
-
var R = this._getHorizontalRangeToRender(),
|
|
880
|
-
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);
|
|
881
883
|
}
|
|
882
884
|
if (typeof I == "function") {
|
|
883
885
|
var K = this.state, ue = K.horizontalScrollDirection, oe = K.scrollLeft, ve = K.scrollTop, _e = K.scrollUpdateWasRequested, Se = K.verticalScrollDirection;
|
|
884
886
|
this._callOnScroll(oe, ve, ue, Se, _e);
|
|
885
887
|
}
|
|
886
888
|
}, P._getHorizontalRangeToRender = function() {
|
|
887
|
-
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;
|
|
888
890
|
if (C === 0 || R === 0)
|
|
889
891
|
return [0, 0, 0, 0];
|
|
890
|
-
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;
|
|
891
893
|
return [Math.max(0, k - Z), Math.max(0, Math.min(C - 1, G + U)), k, G];
|
|
892
894
|
}, P._getVerticalRangeToRender = function() {
|
|
893
|
-
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;
|
|
894
896
|
if (C === 0 || R === 0)
|
|
895
897
|
return [0, 0, 0, 0];
|
|
896
|
-
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;
|
|
897
899
|
return [Math.max(0, k - Z), Math.max(0, Math.min(R - 1, G + U)), k, G];
|
|
898
900
|
}, S;
|
|
899
901
|
}(zn), t.defaultProps = {
|
|
@@ -1108,7 +1110,7 @@ et == null || Vt == null ? (ut = Qe, dt = function(t) {
|
|
|
1108
1110
|
}, Ht);
|
|
1109
1111
|
return [n, r];
|
|
1110
1112
|
});
|
|
1111
|
-
function
|
|
1113
|
+
function No(e) {
|
|
1112
1114
|
let t, n, r, o, i, l, s;
|
|
1113
1115
|
const c = typeof document < "u" && document.attachEvent;
|
|
1114
1116
|
if (!c) {
|
|
@@ -1180,7 +1182,7 @@ function Lo(e) {
|
|
|
1180
1182
|
}
|
|
1181
1183
|
};
|
|
1182
1184
|
}
|
|
1183
|
-
class
|
|
1185
|
+
class Lo extends Fn {
|
|
1184
1186
|
constructor(...t) {
|
|
1185
1187
|
super(...t), this.state = {
|
|
1186
1188
|
height: this.props.defaultHeight || 0,
|
|
@@ -1221,7 +1223,7 @@ class No extends Fn {
|
|
|
1221
1223
|
const r = n.ownerDocument.defaultView.ResizeObserver;
|
|
1222
1224
|
r != null ? (this._resizeObserver = new r(() => {
|
|
1223
1225
|
this._timeoutId = setTimeout(this._onResize, 0);
|
|
1224
|
-
}), this._resizeObserver.observe(n)) : (this._detectElementResize =
|
|
1226
|
+
}), this._resizeObserver.observe(n)) : (this._detectElementResize = No(t), this._detectElementResize.addResizeListener(n, this._onResize)), this._onResize();
|
|
1225
1227
|
}
|
|
1226
1228
|
}
|
|
1227
1229
|
componentWillUnmount() {
|
|
@@ -1249,7 +1251,7 @@ class No extends Fn {
|
|
|
1249
1251
|
overflow: "visible"
|
|
1250
1252
|
}, b = {};
|
|
1251
1253
|
let S = !1;
|
|
1252
|
-
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, {
|
|
1253
1255
|
ref: this._setRef,
|
|
1254
1256
|
style: {
|
|
1255
1257
|
...g,
|
|
@@ -1379,7 +1381,7 @@ const Eo = (e = 1) => {
|
|
|
1379
1381
|
},
|
|
1380
1382
|
o
|
|
1381
1383
|
);
|
|
1382
|
-
}, xo),
|
|
1384
|
+
}, xo), ns = () => {
|
|
1383
1385
|
const { getContainer: e, container: t } = Sr(), { scrollToPage: n } = _t(), {
|
|
1384
1386
|
virtualScrollRef: r,
|
|
1385
1387
|
getVirtualScrollRef: o,
|
|
@@ -1401,13 +1403,13 @@ const Eo = (e = 1) => {
|
|
|
1401
1403
|
columnWidth: w,
|
|
1402
1404
|
estimatedColumnWidth: I,
|
|
1403
1405
|
estimatedRowHeight: y
|
|
1404
|
-
} = Mo(), [R,
|
|
1406
|
+
} = Mo(), [R, N] = F({}), { isScrolling: L } = Kt(), x = $(), E = $({
|
|
1405
1407
|
scrollTop: 0,
|
|
1406
1408
|
scrollLeft: 0
|
|
1407
1409
|
}), { isPressed: z } = Tr(), { selectionMode: k } = fr(), { initializeGrabScroll: G, scrollBehavior: Z } = Ir({
|
|
1408
1410
|
isPressed: z
|
|
1409
1411
|
}), U = D(() => k === jt.HAND, [k]), K = M((W, H) => {
|
|
1410
|
-
|
|
1412
|
+
N((q) => ({ ...q, [W]: Math.round(H * 100) }));
|
|
1411
1413
|
}, []), ue = D(() => ({
|
|
1412
1414
|
columnCount: C,
|
|
1413
1415
|
handleIntersectRatioChange: K
|
|
@@ -1446,10 +1448,10 @@ const Eo = (e = 1) => {
|
|
|
1446
1448
|
});
|
|
1447
1449
|
}
|
|
1448
1450
|
}, [T, C, P, r, n]), A(() => {
|
|
1449
|
-
if (
|
|
1451
|
+
if (L.current)
|
|
1450
1452
|
return;
|
|
1451
1453
|
if (b.current.viewMode !== v || b.current.scrollMode !== f) {
|
|
1452
|
-
x.current && clearTimeout(x.current),
|
|
1454
|
+
x.current && clearTimeout(x.current), N({}), n(u), f === Q.HORIZONTAL_SCROLLING && (r == null || r.scrollTo({
|
|
1453
1455
|
scrollTop: 0
|
|
1454
1456
|
})), x.current = setTimeout(() => {
|
|
1455
1457
|
requestAnimationFrame(() => {
|
|
@@ -1468,8 +1470,8 @@ const Eo = (e = 1) => {
|
|
|
1468
1470
|
}
|
|
1469
1471
|
}, [c, v, f]), A(() => {
|
|
1470
1472
|
const W = Object.entries(R);
|
|
1471
|
-
if (
|
|
1472
|
-
|
|
1473
|
+
if (L.current) {
|
|
1474
|
+
L.current && (L.current = !1);
|
|
1473
1475
|
return;
|
|
1474
1476
|
}
|
|
1475
1477
|
let H = 0, q = -1;
|
|
@@ -1491,7 +1493,7 @@ const Eo = (e = 1) => {
|
|
|
1491
1493
|
},
|
|
1492
1494
|
[U, G, ae]
|
|
1493
1495
|
);
|
|
1494
|
-
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(
|
|
1495
1497
|
"div",
|
|
1496
1498
|
{
|
|
1497
1499
|
"data-rp": "pagesWrapper",
|
|
@@ -1595,7 +1597,7 @@ const Eo = (e = 1) => {
|
|
|
1595
1597
|
!p && /* @__PURE__ */ a(X, { content: "Next page", children: /* @__PURE__ */ a(B, { onClick: r, disabled: e === t, children: /* @__PURE__ */ a(ko, {}) }) })
|
|
1596
1598
|
] }) : null;
|
|
1597
1599
|
};
|
|
1598
|
-
var bt = "Dialog", [dn,
|
|
1600
|
+
var bt = "Dialog", [dn, rs] = Fr(bt), [Ho, te] = dn(bt), pn = (e) => {
|
|
1599
1601
|
const {
|
|
1600
1602
|
__scopeDialog: t,
|
|
1601
1603
|
children: n,
|
|
@@ -1603,7 +1605,7 @@ var bt = "Dialog", [dn, ts] = Lr(bt), [Ho, te] = dn(bt), pn = (e) => {
|
|
|
1603
1605
|
defaultOpen: o,
|
|
1604
1606
|
onOpenChange: i,
|
|
1605
1607
|
modal: l = !0
|
|
1606
|
-
} = e, s = V.useRef(null), c = V.useRef(null), [p = !1, h] =
|
|
1608
|
+
} = e, s = V.useRef(null), c = V.useRef(null), [p = !1, h] = Wr({
|
|
1607
1609
|
prop: r,
|
|
1608
1610
|
defaultProp: o,
|
|
1609
1611
|
onChange: i
|
|
@@ -1630,7 +1632,7 @@ var hn = "DialogTrigger", $o = V.forwardRef(
|
|
|
1630
1632
|
(e, t) => {
|
|
1631
1633
|
const { __scopeDialog: n, ...r } = e, o = te(hn, n), i = mt(t, o.triggerRef);
|
|
1632
1634
|
return /* @__PURE__ */ a(
|
|
1633
|
-
|
|
1635
|
+
Ne.button,
|
|
1634
1636
|
{
|
|
1635
1637
|
type: "button",
|
|
1636
1638
|
"aria-haspopup": "dialog",
|
|
@@ -1649,7 +1651,7 @@ var Ct = "DialogPortal", [Vo, fn] = dn(Ct, {
|
|
|
1649
1651
|
forceMount: void 0
|
|
1650
1652
|
}), mn = (e) => {
|
|
1651
1653
|
const { __scopeDialog: t, forceMount: n, children: r, container: o } = e, i = te(Ct, t);
|
|
1652
|
-
return /* @__PURE__ */ a(Vo, { scope: t, forceMount: n, children: V.Children.map(r, (l) => /* @__PURE__ */ a(gt, { present: n || i.open, children: /* @__PURE__ */ a(
|
|
1654
|
+
return /* @__PURE__ */ a(Vo, { scope: t, forceMount: n, children: V.Children.map(r, (l) => /* @__PURE__ */ a(gt, { present: n || i.open, children: /* @__PURE__ */ a(zr, { asChild: !0, container: o, children: l }) })) });
|
|
1653
1655
|
};
|
|
1654
1656
|
mn.displayName = Ct;
|
|
1655
1657
|
var ke = "DialogOverlay", gn = V.forwardRef(
|
|
@@ -1665,8 +1667,8 @@ var Go = V.forwardRef(
|
|
|
1665
1667
|
return (
|
|
1666
1668
|
// Make sure `Content` is scrollable even when it doesn't live inside `RemoveScroll`
|
|
1667
1669
|
// ie. when `Overlay` and `Content` are siblings
|
|
1668
|
-
/* @__PURE__ */ a(Nr, { as:
|
|
1669
|
-
|
|
1670
|
+
/* @__PURE__ */ a(Nr, { as: Lr, allowPinchZoom: !0, shards: [o.contentRef], children: /* @__PURE__ */ a(
|
|
1671
|
+
Ne.div,
|
|
1670
1672
|
{
|
|
1671
1673
|
"data-state": St(o.open),
|
|
1672
1674
|
...r,
|
|
@@ -1689,7 +1691,7 @@ var Uo = V.forwardRef(
|
|
|
1689
1691
|
return V.useEffect(() => {
|
|
1690
1692
|
const i = r.current;
|
|
1691
1693
|
if (i)
|
|
1692
|
-
return
|
|
1694
|
+
return Er(i);
|
|
1693
1695
|
}, []), /* @__PURE__ */ a(
|
|
1694
1696
|
_n,
|
|
1695
1697
|
{
|
|
@@ -1738,9 +1740,9 @@ var Uo = V.forwardRef(
|
|
|
1738
1740
|
), _n = V.forwardRef(
|
|
1739
1741
|
(e, t) => {
|
|
1740
1742
|
const { __scopeDialog: n, trapFocus: r, onOpenAutoFocus: o, onCloseAutoFocus: i, ...l } = e, s = te(me, n), c = V.useRef(null), p = mt(t, c);
|
|
1741
|
-
return
|
|
1743
|
+
return Or(), /* @__PURE__ */ O(Ae, { children: [
|
|
1742
1744
|
/* @__PURE__ */ a(
|
|
1743
|
-
|
|
1745
|
+
Dr,
|
|
1744
1746
|
{
|
|
1745
1747
|
asChild: !0,
|
|
1746
1748
|
loop: !0,
|
|
@@ -1748,7 +1750,7 @@ var Uo = V.forwardRef(
|
|
|
1748
1750
|
onMountAutoFocus: o,
|
|
1749
1751
|
onUnmountAutoFocus: i,
|
|
1750
1752
|
children: /* @__PURE__ */ a(
|
|
1751
|
-
|
|
1753
|
+
Ar,
|
|
1752
1754
|
{
|
|
1753
1755
|
role: "dialog",
|
|
1754
1756
|
id: s.contentId,
|
|
@@ -1771,14 +1773,14 @@ var Uo = V.forwardRef(
|
|
|
1771
1773
|
), Pt = "DialogTitle", wn = V.forwardRef(
|
|
1772
1774
|
(e, t) => {
|
|
1773
1775
|
const { __scopeDialog: n, ...r } = e, o = te(Pt, n);
|
|
1774
|
-
return /* @__PURE__ */ a(
|
|
1776
|
+
return /* @__PURE__ */ a(Ne.h2, { id: o.titleId, ...r, ref: t });
|
|
1775
1777
|
}
|
|
1776
1778
|
);
|
|
1777
1779
|
wn.displayName = Pt;
|
|
1778
1780
|
var bn = "DialogDescription", Zo = V.forwardRef(
|
|
1779
1781
|
(e, t) => {
|
|
1780
1782
|
const { __scopeDialog: n, ...r } = e, o = te(bn, n);
|
|
1781
|
-
return /* @__PURE__ */ a(
|
|
1783
|
+
return /* @__PURE__ */ a(Ne.p, { id: o.descriptionId, ...r, ref: t });
|
|
1782
1784
|
}
|
|
1783
1785
|
);
|
|
1784
1786
|
Zo.displayName = bn;
|
|
@@ -1786,7 +1788,7 @@ var Cn = "DialogClose", Pn = V.forwardRef(
|
|
|
1786
1788
|
(e, t) => {
|
|
1787
1789
|
const { __scopeDialog: n, ...r } = e, o = te(Cn, n);
|
|
1788
1790
|
return /* @__PURE__ */ a(
|
|
1789
|
-
|
|
1791
|
+
Ne.button,
|
|
1790
1792
|
{
|
|
1791
1793
|
type: "button",
|
|
1792
1794
|
...r,
|
|
@@ -1800,7 +1802,7 @@ Pn.displayName = Cn;
|
|
|
1800
1802
|
function St(e) {
|
|
1801
1803
|
return e ? "open" : "closed";
|
|
1802
1804
|
}
|
|
1803
|
-
var Sn = "DialogTitleWarning", [
|
|
1805
|
+
var Sn = "DialogTitleWarning", [os, Tn] = kr(Sn, {
|
|
1804
1806
|
contentName: me,
|
|
1805
1807
|
titleName: Pt,
|
|
1806
1808
|
docsSlug: "dialog"
|
|
@@ -1891,7 +1893,7 @@ const fe = {
|
|
|
1891
1893
|
}, In = () => {
|
|
1892
1894
|
const { downloadIcon: e } = re();
|
|
1893
1895
|
return e || /* @__PURE__ */ a(Zr, {});
|
|
1894
|
-
}, 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: [
|
|
1895
1897
|
/* @__PURE__ */ a("div", { className: "rp-menu-item-left", children: /* @__PURE__ */ a(In, {}) }),
|
|
1896
1898
|
"Download file"
|
|
1897
1899
|
] }) }), Rn = () => {
|
|
@@ -1934,9 +1936,9 @@ const sa = () => {
|
|
|
1934
1936
|
}
|
|
1935
1937
|
const R = w / tr.PDF;
|
|
1936
1938
|
P.width = Math.floor(C.width * R), P.height = Math.floor(C.height * R);
|
|
1937
|
-
const
|
|
1938
|
-
|
|
1939
|
-
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([
|
|
1940
1942
|
T.getPage(d),
|
|
1941
1943
|
y
|
|
1942
1944
|
]);
|
|
@@ -1945,16 +1947,16 @@ const sa = () => {
|
|
|
1945
1947
|
return;
|
|
1946
1948
|
}
|
|
1947
1949
|
const E = {
|
|
1948
|
-
canvasContext:
|
|
1950
|
+
canvasContext: N,
|
|
1949
1951
|
transform: [R, 0, 0, R, 0, 0],
|
|
1950
|
-
viewport:
|
|
1952
|
+
viewport: L.getViewport({ scale: 1, rotation: C.rotation }),
|
|
1951
1953
|
intent: "print",
|
|
1952
1954
|
annotationMode: nr.ENABLE_STORAGE,
|
|
1953
1955
|
optionalContentConfigPromise: I,
|
|
1954
1956
|
printAnnotationStorage: x
|
|
1955
1957
|
};
|
|
1956
1958
|
try {
|
|
1957
|
-
return
|
|
1959
|
+
return L.render(E).promise;
|
|
1958
1960
|
} catch (z) {
|
|
1959
1961
|
throw z instanceof rr || console.error(z), z;
|
|
1960
1962
|
}
|
|
@@ -2004,17 +2006,17 @@ const sa = () => {
|
|
|
2004
2006
|
const C = e.getOptionalContentConfig({ intent: "print" }), w = Promise.resolve(
|
|
2005
2007
|
e.annotationStorage.print ?? void 0
|
|
2006
2008
|
), I = t.size;
|
|
2007
|
-
for (const [R,
|
|
2009
|
+
for (const [R, N] of t) {
|
|
2008
2010
|
if (h.current) {
|
|
2009
2011
|
u();
|
|
2010
2012
|
return;
|
|
2011
2013
|
}
|
|
2012
|
-
const
|
|
2014
|
+
const L = N.page.getViewport({ scale: 1 });
|
|
2013
2015
|
if (await v({
|
|
2014
2016
|
scratchCanvas: P,
|
|
2015
2017
|
pdfDocument: e,
|
|
2016
2018
|
pageNumber: R,
|
|
2017
|
-
viewerPdfPage:
|
|
2019
|
+
viewerPdfPage: L,
|
|
2018
2020
|
printResolution: 150,
|
|
2019
2021
|
optionalContentConfigPromise: C,
|
|
2020
2022
|
printAnnotationStoragePromise: w
|
|
@@ -2114,10 +2116,10 @@ const sa = () => {
|
|
|
2114
2116
|
}, Mn = () => {
|
|
2115
2117
|
const { printIcon: e } = re();
|
|
2116
2118
|
return e || /* @__PURE__ */ a(jr, {});
|
|
2117
|
-
},
|
|
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: [
|
|
2118
2120
|
/* @__PURE__ */ a("div", { className: "rp-menu-item-left", children: /* @__PURE__ */ a(Mn, {}) }),
|
|
2119
2121
|
"Print"
|
|
2120
|
-
] }) }),
|
|
2122
|
+
] }) }), Ln = () => {
|
|
2121
2123
|
const { print: e, cancel: t, setOnProgress: n, setOnComplete: r, setOnError: o, progress: i } = Tt(), { printTool: l = !0 } = se(), { isSmallScreen: s } = ge();
|
|
2122
2124
|
return l ? s ? /* @__PURE__ */ a(ua, { print: e }) : typeof l == "function" ? /* @__PURE__ */ a(
|
|
2123
2125
|
l,
|
|
@@ -2145,11 +2147,11 @@ const sa = () => {
|
|
|
2145
2147
|
e(t);
|
|
2146
2148
|
}, [e, t]);
|
|
2147
2149
|
return r ? /* @__PURE__ */ O(Fe, { children: [
|
|
2148
|
-
/* @__PURE__ */ a(
|
|
2150
|
+
/* @__PURE__ */ a(ce, { disabled: o, onClick: l, children: /* @__PURE__ */ O(X, { className: "rp-menu-item", content: "Go to first page", children: [
|
|
2149
2151
|
/* @__PURE__ */ a("div", { className: "rp-menu-item-left", children: /* @__PURE__ */ a(pa, {}) }),
|
|
2150
2152
|
"First page"
|
|
2151
2153
|
] }) }),
|
|
2152
|
-
/* @__PURE__ */ a(
|
|
2154
|
+
/* @__PURE__ */ a(ce, { disabled: i, onClick: s, children: /* @__PURE__ */ O(X, { className: "rp-menu-item", content: "Go to last page", children: [
|
|
2153
2155
|
/* @__PURE__ */ a("div", { className: "rp-menu-item-left", children: /* @__PURE__ */ a(ha, {}) }),
|
|
2154
2156
|
"Last page"
|
|
2155
2157
|
] }) }),
|
|
@@ -2190,7 +2192,7 @@ const sa = () => {
|
|
|
2190
2192
|
t && /* @__PURE__ */ O(Fe, { children: [
|
|
2191
2193
|
/* @__PURE__ */ a(Jt, {}),
|
|
2192
2194
|
/* @__PURE__ */ a(Rn, {}),
|
|
2193
|
-
/* @__PURE__ */ a(
|
|
2195
|
+
/* @__PURE__ */ a(Ln, {}),
|
|
2194
2196
|
/* @__PURE__ */ a(Qt, {}),
|
|
2195
2197
|
/* @__PURE__ */ a(vt, {})
|
|
2196
2198
|
] }),
|
|
@@ -2211,7 +2213,7 @@ const sa = () => {
|
|
|
2211
2213
|
!e && /* @__PURE__ */ O(Ae, { children: [
|
|
2212
2214
|
/* @__PURE__ */ a(Jt, {}),
|
|
2213
2215
|
/* @__PURE__ */ a(Rn, {}),
|
|
2214
|
-
/* @__PURE__ */ a(
|
|
2216
|
+
/* @__PURE__ */ a(Ln, {}),
|
|
2215
2217
|
/* @__PURE__ */ a(Qt, {})
|
|
2216
2218
|
] }),
|
|
2217
2219
|
/* @__PURE__ */ a(ma, {})
|
|
@@ -2346,12 +2348,12 @@ const sa = () => {
|
|
|
2346
2348
|
b(x.target.value);
|
|
2347
2349
|
}, []), w = M(() => {
|
|
2348
2350
|
b(""), p("");
|
|
2349
|
-
}, [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(
|
|
2350
2352
|
(x) => {
|
|
2351
2353
|
s((E) => ({ ...E, matchCase: x }));
|
|
2352
2354
|
},
|
|
2353
2355
|
[s]
|
|
2354
|
-
),
|
|
2356
|
+
), L = M(
|
|
2355
2357
|
(x) => {
|
|
2356
2358
|
s((E) => ({ ...E, wholeWords: x }));
|
|
2357
2359
|
},
|
|
@@ -2385,8 +2387,8 @@ const sa = () => {
|
|
|
2385
2387
|
c ? /* @__PURE__ */ a("span", { children: /* @__PURE__ */ a(pt, {}) }) : /* @__PURE__ */ a("span", { children: I })
|
|
2386
2388
|
] }),
|
|
2387
2389
|
/* @__PURE__ */ O("div", { className: ne["rp-search-tool-input-checkboxes"], children: [
|
|
2388
|
-
/* @__PURE__ */ a(Rt, { name: "matchCase", value: R, onChange:
|
|
2389
|
-
/* @__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" })
|
|
2390
2392
|
] })
|
|
2391
2393
|
] }),
|
|
2392
2394
|
/* @__PURE__ */ O("div", { className: ne["rp-search-tool-controls"], children: [
|
|
@@ -2588,10 +2590,10 @@ const sa = () => {
|
|
|
2588
2590
|
children: e
|
|
2589
2591
|
}
|
|
2590
2592
|
);
|
|
2591
|
-
}, Ma = 16,
|
|
2593
|
+
}, Ma = 16, Na = (e, t) => {
|
|
2592
2594
|
const n = e == null ? void 0 : e.querySelector(`#page-${t}`);
|
|
2593
2595
|
e && (n != null && n.offsetTop) && (e.scrollTop = (n == null ? void 0 : n.offsetTop) - Ma);
|
|
2594
|
-
},
|
|
2596
|
+
}, La = $e((e, t) => {
|
|
2595
2597
|
const { show: n } = e, { focusedPage: r, totalPages: o } = ee(), { thumbnailPages: i, addPage: l, thumbnailLength: s, addToPage: c } = On(), p = $(null), h = $(1);
|
|
2596
2598
|
qt(t, () => p.current);
|
|
2597
2599
|
const m = D(() => Object.values(i), [i]), u = M(() => {
|
|
@@ -2599,7 +2601,7 @@ const sa = () => {
|
|
|
2599
2601
|
f <= o && l(f);
|
|
2600
2602
|
}, [l, o, s]);
|
|
2601
2603
|
return A(() => {
|
|
2602
|
-
r > s ? c(r) : n && h.current !== r && (
|
|
2604
|
+
r > s ? c(r) : n && h.current !== r && (Na(p.current, r), h.current = r);
|
|
2603
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) => {
|
|
2604
2606
|
var _, g;
|
|
2605
2607
|
return /* @__PURE__ */ a(
|
|
@@ -2630,7 +2632,7 @@ const sa = () => {
|
|
|
2630
2632
|
children: [
|
|
2631
2633
|
/* @__PURE__ */ a("div", { "data-rp": "thumbnailButton", className: rt["rp-sidebar-content"], children: s }),
|
|
2632
2634
|
/* @__PURE__ */ O("div", { "data-rp": "thumbnails", hidden: !e, className: rt["rp-thumbnails-wrapper"], children: [
|
|
2633
|
-
/* @__PURE__ */ a(
|
|
2635
|
+
/* @__PURE__ */ a(La, { show: e, ref: o }),
|
|
2634
2636
|
/* @__PURE__ */ a(ar, { onWidthChange: r, thumbnailRef: o })
|
|
2635
2637
|
] })
|
|
2636
2638
|
]
|
|
@@ -2666,7 +2668,7 @@ const sa = () => {
|
|
|
2666
2668
|
) }) }) }) }) }) }) }) }) }) }) })
|
|
2667
2669
|
}
|
|
2668
2670
|
);
|
|
2669
|
-
},
|
|
2671
|
+
}, as = $e((e, t) => {
|
|
2670
2672
|
const {
|
|
2671
2673
|
children: n,
|
|
2672
2674
|
slots: r,
|
|
@@ -2715,7 +2717,7 @@ export {
|
|
|
2715
2717
|
xa as B,
|
|
2716
2718
|
Qr as C,
|
|
2717
2719
|
Do as D,
|
|
2718
|
-
|
|
2720
|
+
La as E,
|
|
2719
2721
|
Rn as F,
|
|
2720
2722
|
Oa as G,
|
|
2721
2723
|
Da as H,
|
|
@@ -2723,11 +2725,11 @@ export {
|
|
|
2723
2725
|
fa as M,
|
|
2724
2726
|
ma as O,
|
|
2725
2727
|
un as P,
|
|
2726
|
-
|
|
2728
|
+
ns as R,
|
|
2727
2729
|
tn as S,
|
|
2728
2730
|
no as T,
|
|
2729
2731
|
Ca as Z,
|
|
2730
|
-
|
|
2732
|
+
as as a,
|
|
2731
2733
|
oa as b,
|
|
2732
2734
|
Tt as c,
|
|
2733
2735
|
nn as d,
|
|
@@ -2744,7 +2746,7 @@ export {
|
|
|
2744
2746
|
sa as o,
|
|
2745
2747
|
xn as p,
|
|
2746
2748
|
la as q,
|
|
2747
|
-
|
|
2749
|
+
Ln as r,
|
|
2748
2750
|
ga as s,
|
|
2749
2751
|
Pa as t,
|
|
2750
2752
|
ee as u,
|
package/dist/assets/MenuItem.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
._rp-menu-
|
|
1
|
+
._rp-menu-item_gqbz3_1{display:flex;align-items:center;padding:var(--rp-dropdown-padding-menu-item);cursor:pointer;border-radius:var(--rp-border-radius);outline:none}._rp-menu-item_gqbz3_1 :is(svg){font-size:var(--rp-menu-item-icon-size)}._rp-menu-item_gqbz3_1:is(:hover,:focus-visible){background:var(--rp-dropdown-hover-background-color)}.rp-menu-item-left{display:flex;align-items:center;justify-content:center;padding-right:8px}.rp-menu-item{display:flex;flex-direction:row;align-items:center;width:100%}.rp-menu-item-right{margin-left:auto}._rp-menu-item_gqbz3_1[data-disabled]{pointer-events:none;opacity:.5}
|