@react-pdf-kit/viewer 2.0.0-beta.8 → 2.0.0-beta.9
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/{ToolbarLayout.module-0aa7a2aa.js → ToolbarLayout.module-8d56d12b.js} +89 -86
- package/dist/components/RPController.js +1 -1
- package/dist/components/RPPages.js +1 -1
- package/dist/components/RPProvider.js +1 -1
- package/dist/components/layout/LayoutContainer.js +1 -1
- package/dist/components/layout/RPDefaultLayout.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/DocumentDialog.js +1 -1
- package/dist/components/layout/toolbar/FileDownloadTool.js +1 -1
- 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/RPMoreOptions.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/SearchResultNavigator.js +1 -1
- package/dist/components/layout/toolbar/SearchTool.js +1 -1
- package/dist/components/layout/toolbar/ThumbnailTool.js +1 -1
- package/dist/components/layout/toolbar/ToolbarCustom.js +1 -1
- package/dist/components/layout/toolbar/ToolbarDefault.js +1 -1
- package/dist/components/layout/toolbar/ToolbarLayout.js +1 -1
- package/dist/components/layout/toolbar/ZoomTool.js +1 -1
- package/dist/components/layout/toolbar/tools/DocumentPropertiesTool.js +1 -1
- package/dist/components/layout/toolbar/tools/DualPageTool.js +1 -1
- package/dist/components/layout/toolbar/tools/FileDownloadTool.js +1 -1
- package/dist/components/layout/toolbar/tools/InputPageTool.js +1 -1
- package/dist/components/layout/toolbar/tools/NextPageTool.js +1 -1
- package/dist/components/layout/toolbar/tools/PreviousPageTool.js +1 -1
- package/dist/components/layout/toolbar/tools/PrintTool.js +1 -1
- package/dist/components/layout/toolbar/tools/SinglePageTool.js +1 -1
- package/dist/components/layout/toolbar/tools/ThumbnailTool.js +1 -1
- package/dist/components/layout/toolbar/tools/ZoomLevelDisplay.js +1 -1
- package/dist/components/layout/toolbar/tools/ZoomLevelTool.js +1 -1
- package/dist/components/layout/toolbar/tools/defaults/RPHorizontalBar.js +1 -1
- package/dist/components/layout/toolbar/tools/defaults/RPVerticalBar.js +1 -1
- package/dist/components/layout/toolbar/tools/more-options/FileDownloadTool.js +1 -1
- package/dist/components/layout/toolbar/tools/more-options/FileUploadTool.js +1 -1
- package/dist/components/layout/toolbar/tools/more-options/MostPageTool.js +1 -1
- package/dist/components/layout/toolbar/tools/more-options/PrintTool.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/TextHighlightLayer.js +1 -1
- package/dist/components/page/TextLayer.js +1 -1
- package/dist/components/ui/LoadingIndicator.js +1 -1
- package/dist/contexts/FullScreenContext.js +17 -10
- package/dist/contexts/LocalizationContext.js +24 -29
- package/dist/contexts/PaginationContext.js +1 -1
- package/dist/contexts/PrintContext.js +1 -1
- package/dist/contexts/RPDocumentContext.js +7 -7
- package/dist/contexts/RenderQueueProvider.js +1 -1
- package/dist/contexts/SearchContext.js +1 -1
- package/dist/contexts/ThumbnailsContext.js +1 -1
- package/dist/contexts/ZoomContext.js +22 -22
- package/dist/main.js +1 -1
- package/dist/utils/hooks/useFileDownload.js +1 -1
- package/dist/utils/hooks/useHighlight.js +28 -28
- package/dist/utils/hooks/useLicense.js +1 -1
- package/dist/utils/hooks/useLocalization.js +13 -13
- package/dist/utils/hooks/usePaginate.js +1 -1
- package/dist/utils/hooks/usePresentPage.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
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as i, Fragment as pe, jsxs as W } from "react/jsx-runtime";
|
|
2
2
|
import * as X from "react";
|
|
3
|
-
import { useRef as M, useEffect as z, useCallback as N, useState as H, useMemo as
|
|
3
|
+
import { useRef as M, useEffect as z, useCallback as N, useState as H, useMemo as F, createContext as Ve, useContext as Be, useImperativeHandle as pn, createElement as Ke, PureComponent as lo, Component as uo, memo as hn, Fragment as po, forwardRef as ho } from "react";
|
|
4
4
|
import { ChevronUpIcon as Ue } from "./components/icons/ChevronUpIcon.js";
|
|
5
5
|
import { UIButton as ce } from "./components/ui/Button.js";
|
|
6
6
|
import { UIInput as fn } from "./components/ui/Input.js";
|
|
@@ -226,7 +226,7 @@ const Cn = () => {
|
|
|
226
226
|
}, [d, m, g, r]), b = N(() => {
|
|
227
227
|
let h = e - 1;
|
|
228
228
|
T(h) && (h = e - 2), P(h);
|
|
229
|
-
}, [P, e, d, s, T]), y =
|
|
229
|
+
}, [P, e, d, s, T]), y = F(() => d === Oe.DUAL_PAGE && s === re.PAGE_SCROLLING ? e === r - 1 : e === r, [e, r, d, s]), p = N(() => {
|
|
230
230
|
if (y)
|
|
231
231
|
return;
|
|
232
232
|
let h = e + 1;
|
|
@@ -335,8 +335,8 @@ const Cn = () => {
|
|
|
335
335
|
};
|
|
336
336
|
try {
|
|
337
337
|
return A.render(R).promise;
|
|
338
|
-
} catch (
|
|
339
|
-
throw
|
|
338
|
+
} catch (k) {
|
|
339
|
+
throw k instanceof ko || console.error(k), k;
|
|
340
340
|
}
|
|
341
341
|
}, y = N(() => {
|
|
342
342
|
const l = window.print;
|
|
@@ -405,8 +405,8 @@ const Cn = () => {
|
|
|
405
405
|
P();
|
|
406
406
|
return;
|
|
407
407
|
}
|
|
408
|
-
const
|
|
409
|
-
I.push(
|
|
408
|
+
const k = await p(_);
|
|
409
|
+
I.push(k);
|
|
410
410
|
const $ = parseFloat((I.length / O * 100).toFixed(2));
|
|
411
411
|
r({
|
|
412
412
|
loadedPages: A,
|
|
@@ -464,34 +464,37 @@ const Cn = () => {
|
|
|
464
464
|
}), vc = ({ children: t }) => {
|
|
465
465
|
const [e, n] = H(null), [r, o] = H(null), { print: a, cancel: c, progress: d, isComplete: s, isError: m, error: g, showDefaultProgress: C } = qr(), u = N((y) => {
|
|
466
466
|
y && typeof y == "function" && o(() => y);
|
|
467
|
-
}, []), v = (
|
|
468
|
-
g && y(g);
|
|
469
|
-
}, P = N(
|
|
467
|
+
}, []), v = N(
|
|
470
468
|
(y) => {
|
|
471
|
-
|
|
469
|
+
g && y(g);
|
|
472
470
|
},
|
|
473
|
-
[
|
|
474
|
-
)
|
|
471
|
+
[g]
|
|
472
|
+
), P = N((y) => {
|
|
473
|
+
n(() => y);
|
|
474
|
+
}, []), T = N(() => {
|
|
475
|
+
r && (r(), o(null));
|
|
476
|
+
}, [r]);
|
|
475
477
|
z(() => {
|
|
476
478
|
s && r && T();
|
|
477
|
-
}, [s, r]), z(() => {
|
|
479
|
+
}, [s, r, T]), z(() => {
|
|
478
480
|
m && v((y) => {
|
|
479
481
|
console.error(y);
|
|
480
482
|
});
|
|
481
483
|
}, [m]), z(() => {
|
|
482
484
|
d && e && e(d);
|
|
483
485
|
}, [d, e]);
|
|
484
|
-
const
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
486
|
+
const b = F(
|
|
487
|
+
() => ({
|
|
488
|
+
print: a,
|
|
489
|
+
cancel: c,
|
|
490
|
+
setOnProgress: P,
|
|
491
|
+
setOnComplete: u,
|
|
492
|
+
setOnError: v,
|
|
493
|
+
progress: d,
|
|
494
|
+
showDefaultProgress: C
|
|
495
|
+
}),
|
|
496
|
+
[a, c, P, u, v, d, C]
|
|
497
|
+
);
|
|
495
498
|
return /* @__PURE__ */ i(yn.Provider, { value: b, children: t });
|
|
496
499
|
}, it = () => {
|
|
497
500
|
const t = Be(yn);
|
|
@@ -499,7 +502,7 @@ const Cn = () => {
|
|
|
499
502
|
throw new Error("usePrintContext must be used within a PrintProvider");
|
|
500
503
|
return t;
|
|
501
504
|
}, Gr = () => {
|
|
502
|
-
const [t, e] = H({}), { pages: n } = oe(), r =
|
|
505
|
+
const [t, e] = H({}), { pages: n } = oe(), r = F(() => Object.keys(t).length, [t]), o = N(
|
|
503
506
|
(c) => {
|
|
504
507
|
if (!n.size)
|
|
505
508
|
return;
|
|
@@ -562,15 +565,15 @@ const Cn = () => {
|
|
|
562
565
|
}
|
|
563
566
|
);
|
|
564
567
|
}, Ur = (t = {}, e = "") => {
|
|
565
|
-
const [n, r] = H(e), [o, a] = H(!1), { pdf: c, pages: d } = oe(), { widths: s, heights: m } = je(), g = M(!n), { currentZoom: C } = tt(), [u, v] = H([]), { setFocusedPage: P } = ue(), { columnCount: T } = He(), { pageRotate: b } = ot(), [y, p] = H(0), { pageScrollElementRef: h, virtualScrollableElementRef: f } = nt(), { scrollMode: l } = ze(), { pagesRef: w } = be(), _ = M({}), I = M(0), x =
|
|
568
|
+
const [n, r] = H(e), [o, a] = H(!1), { pdf: c, pages: d } = oe(), { widths: s, heights: m } = je(), g = M(!n), { currentZoom: C } = tt(), [u, v] = H([]), { setFocusedPage: P } = ue(), { columnCount: T } = He(), { pageRotate: b } = ot(), [y, p] = H(0), { pageScrollElementRef: h, virtualScrollableElementRef: f } = nt(), { scrollMode: l } = ze(), { pagesRef: w } = be(), _ = M({}), I = M(0), x = F(() => y === 0 ? null : u[y - 1], [y, u]), S = F(() => u.length, [u]), L = N(
|
|
566
569
|
(E) => {
|
|
567
570
|
if (E === 0)
|
|
568
571
|
return;
|
|
569
572
|
const R = u[E - 1];
|
|
570
573
|
if (!R || !d)
|
|
571
574
|
return;
|
|
572
|
-
const
|
|
573
|
-
if (!
|
|
575
|
+
const k = f || h;
|
|
576
|
+
if (!k || !w)
|
|
574
577
|
return;
|
|
575
578
|
const $ = d.get(R.page);
|
|
576
579
|
if (l === re.PAGE_SCROLLING && P(R.page), !$)
|
|
@@ -594,7 +597,7 @@ const Cn = () => {
|
|
|
594
597
|
left: Math.max(Q, 0),
|
|
595
598
|
top: Math.max(J, 0)
|
|
596
599
|
};
|
|
597
|
-
|
|
600
|
+
k.scrollTo({
|
|
598
601
|
...te,
|
|
599
602
|
behavior: "smooth"
|
|
600
603
|
});
|
|
@@ -627,14 +630,14 @@ const Cn = () => {
|
|
|
627
630
|
}, [S, L]), A = N(async (E) => {
|
|
628
631
|
if (!E)
|
|
629
632
|
return {};
|
|
630
|
-
const R = E.numPages,
|
|
633
|
+
const R = E.numPages, k = {};
|
|
631
634
|
for (let $ = 1; $ <= R; $++) {
|
|
632
635
|
if (g.current)
|
|
633
636
|
throw "close pop over";
|
|
634
637
|
const q = await E.getPage($);
|
|
635
|
-
|
|
638
|
+
k[$.toString()] = await q.getTextContent();
|
|
636
639
|
}
|
|
637
|
-
return
|
|
640
|
+
return k;
|
|
638
641
|
}, []);
|
|
639
642
|
return z(() => {
|
|
640
643
|
if (!n) {
|
|
@@ -643,7 +646,7 @@ const Cn = () => {
|
|
|
643
646
|
}
|
|
644
647
|
g.current = !1, a(!0), v([]), p(0), A(c).then((E) => {
|
|
645
648
|
_.current = E;
|
|
646
|
-
const
|
|
649
|
+
const k = Object.keys(E).reduce(($, q) => {
|
|
647
650
|
const G = Co(
|
|
648
651
|
[n],
|
|
649
652
|
E[q],
|
|
@@ -652,7 +655,7 @@ const Cn = () => {
|
|
|
652
655
|
).map((j, V) => ({ ...j, page: Number(q), pageMatchIdx: V }));
|
|
653
656
|
return [...$, ...G];
|
|
654
657
|
}, []);
|
|
655
|
-
v(
|
|
658
|
+
v(k), p(k.length ? 1 : 0);
|
|
656
659
|
}).catch(() => {
|
|
657
660
|
v([]), p(0);
|
|
658
661
|
}).finally(() => a(!1));
|
|
@@ -723,7 +726,7 @@ const Cn = () => {
|
|
|
723
726
|
}, Ot = () => Be(xn), Rn = Ve(null), bc = ({ children: t }) => {
|
|
724
727
|
const e = M(!1), [n, r] = H([]), o = N((s) => {
|
|
725
728
|
r((m) => [...m, { id: s.page.pageNumber.toString(), data: s, priority: 0 }]);
|
|
726
|
-
}, []), a =
|
|
729
|
+
}, []), a = F(() => new Ro(o), [o]), { focusedPage: c } = ue(), d = N((s) => (e.current = !0, Lo(
|
|
727
730
|
s.data.page,
|
|
728
731
|
s.data.canvasElem,
|
|
729
732
|
s.data.options
|
|
@@ -803,7 +806,7 @@ const Cn = () => {
|
|
|
803
806
|
}, Zr = (t) => {
|
|
804
807
|
const { pageNumber: e } = t, { pages: n } = oe(), r = M(null), { matches: o, currentMatch: a } = Ot(), [c, d] = H(
|
|
805
808
|
[]
|
|
806
|
-
), s = M(), m = M(), g = M([]), C =
|
|
809
|
+
), s = M(), m = M(), g = M([]), C = F(() => o.filter((p) => p.pageIndex === e - 1), [o, e]), u = N(
|
|
807
810
|
(p, h, f = !1) => {
|
|
808
811
|
if (f && Po(p, h), !C.length) {
|
|
809
812
|
g.current = [], d([]);
|
|
@@ -864,8 +867,8 @@ const Cn = () => {
|
|
|
864
867
|
const _ = /* @__PURE__ */ new Set();
|
|
865
868
|
for (let E = 0; E < w.rangeCount; E++) {
|
|
866
869
|
const R = w.getRangeAt(E);
|
|
867
|
-
T().forEach((
|
|
868
|
-
R.intersectsNode(
|
|
870
|
+
T().forEach((k) => {
|
|
871
|
+
R.intersectsNode(k) && !_.has(k) && _.add(k);
|
|
869
872
|
});
|
|
870
873
|
}
|
|
871
874
|
T().forEach((E) => {
|
|
@@ -958,7 +961,7 @@ const Cn = () => {
|
|
|
958
961
|
};
|
|
959
962
|
let Xr = "https://unpkg.com/pdfjs-dist@4.4.168/web/images/";
|
|
960
963
|
const Qr = (t) => {
|
|
961
|
-
const { pageNumber: e } = t, n = M(null), { pages: r, pdf: o } = oe(), { interactiveForm: a } = yt(), c = M(), [d, s] = H(), { goToPage: m } = ue(), { scrollMode: g } = ze(), { print: C } = it(), { download: u } = Zn(), v =
|
|
964
|
+
const { pageNumber: e } = t, n = M(null), { pages: r, pdf: o } = oe(), { interactiveForm: a } = yt(), c = M(), [d, s] = H(), { goToPage: m } = ue(), { scrollMode: g } = ze(), { print: C } = it(), { download: u } = Zn(), v = F(() => r.get(e), [r, e]), P = F(() => v == null ? void 0 : v.page.getViewport(), [v]);
|
|
962
965
|
z(() => {
|
|
963
966
|
c.current && (c.current.div.replaceChildren(), c.current = void 0);
|
|
964
967
|
}, [o]), z(() => {
|
|
@@ -1060,7 +1063,7 @@ const Qr = (t) => {
|
|
|
1060
1063
|
r(f);
|
|
1061
1064
|
})();
|
|
1062
1065
|
}, [o, t]);
|
|
1063
|
-
const u =
|
|
1066
|
+
const u = F(() => a ? a.map((p) => {
|
|
1064
1067
|
var h, f;
|
|
1065
1068
|
return {
|
|
1066
1069
|
...nr(p.keyword, (h = p.options) == null ? void 0 : h.matchCase, (f = p.options) == null ? void 0 : f.wholeWords),
|
|
@@ -1111,11 +1114,11 @@ const Qr = (t) => {
|
|
|
1111
1114
|
w.setStart(_, x), w.setEnd(_, S + 1);
|
|
1112
1115
|
const L = document.createElement("span");
|
|
1113
1116
|
L.style.width = "auto", w.surroundContents(L);
|
|
1114
|
-
const O = L.getBoundingClientRect(), D = p.getBoundingClientRect(), A = D.height, E = D.width, R = 100 * (O.left - D.left) / E,
|
|
1117
|
+
const O = L.getBoundingClientRect(), D = p.getBoundingClientRect(), A = D.height, E = D.width, R = 100 * (O.left - D.left) / E, k = 100 * (O.top - D.top) / A, $ = 100 * O.height / A, q = 100 * O.width / E;
|
|
1115
1118
|
return rr(L), {
|
|
1116
1119
|
keywordStr: h,
|
|
1117
1120
|
left: R,
|
|
1118
|
-
top:
|
|
1121
|
+
top: k,
|
|
1119
1122
|
height: $,
|
|
1120
1123
|
width: q,
|
|
1121
1124
|
pageHeight: A,
|
|
@@ -1158,14 +1161,14 @@ const Qr = (t) => {
|
|
|
1158
1161
|
return;
|
|
1159
1162
|
const E = L.flags.indexOf("g") === -1 ? new RegExp(L, `${L.flags}g`) : L;
|
|
1160
1163
|
let R;
|
|
1161
|
-
const
|
|
1164
|
+
const k = [];
|
|
1162
1165
|
for (; (R = E.exec(I)) !== null; )
|
|
1163
|
-
O && !Io(I, R.index, R[0].length) ||
|
|
1166
|
+
O && !Io(I, R.index, R[0].length) || k.push({
|
|
1164
1167
|
keyword: E,
|
|
1165
1168
|
startIndex: R.index,
|
|
1166
1169
|
endIndex: E.lastIndex
|
|
1167
1170
|
});
|
|
1168
|
-
const $ =
|
|
1171
|
+
const $ = k.map((q) => ({
|
|
1169
1172
|
keyword: q.keyword,
|
|
1170
1173
|
indexes: l.slice(q.startIndex, q.endIndex),
|
|
1171
1174
|
color: D
|
|
@@ -1225,7 +1228,7 @@ const Qr = (t) => {
|
|
|
1225
1228
|
height: 0
|
|
1226
1229
|
});
|
|
1227
1230
|
pn(e, () => v.current);
|
|
1228
|
-
const b =
|
|
1231
|
+
const b = F(() => g.current ? c[n] : 0, [n, c]);
|
|
1229
1232
|
z(() => {
|
|
1230
1233
|
if (a && (g.current = a.get(n), g.current)) {
|
|
1231
1234
|
const f = g.current.page.getViewport({
|
|
@@ -1235,7 +1238,7 @@ const Qr = (t) => {
|
|
|
1235
1238
|
T(f);
|
|
1236
1239
|
}
|
|
1237
1240
|
}, [a, n, b, s]);
|
|
1238
|
-
const y =
|
|
1241
|
+
const y = F(() => {
|
|
1239
1242
|
switch (b) {
|
|
1240
1243
|
case 90:
|
|
1241
1244
|
return `${P.width / 2}px ${P.width / 2}px`;
|
|
@@ -1456,12 +1459,12 @@ function ci(t) {
|
|
|
1456
1459
|
break;
|
|
1457
1460
|
}
|
|
1458
1461
|
R = Math.max(0, Math.min(R, D - x));
|
|
1459
|
-
var
|
|
1462
|
+
var k = Math.max(0, Math.min(L, O - I));
|
|
1460
1463
|
return {
|
|
1461
1464
|
isScrolling: !0,
|
|
1462
1465
|
horizontalScrollDirection: A.scrollLeft < S ? "forward" : "backward",
|
|
1463
1466
|
scrollLeft: R,
|
|
1464
|
-
scrollTop:
|
|
1467
|
+
scrollTop: k,
|
|
1465
1468
|
verticalScrollDirection: A.scrollTop < L ? "forward" : "backward",
|
|
1466
1469
|
scrollUpdateWasRequested: !1
|
|
1467
1470
|
};
|
|
@@ -1495,12 +1498,12 @@ function ci(t) {
|
|
|
1495
1498
|
};
|
|
1496
1499
|
}, this._resetIsScrollingDebounced);
|
|
1497
1500
|
}, h.scrollToItem = function(l) {
|
|
1498
|
-
var w = l.align, _ = w === void 0 ? "auto" : w, I = l.columnIndex, x = l.rowIndex, S = this.props, L = S.columnCount, O = S.height, D = S.rowCount, A = S.width, E = this.state, R = E.scrollLeft,
|
|
1501
|
+
var w = l.align, _ = w === void 0 ? "auto" : w, I = l.columnIndex, x = l.rowIndex, S = this.props, L = S.columnCount, O = S.height, D = S.rowCount, A = S.width, E = this.state, R = E.scrollLeft, k = E.scrollTop, $ = ii();
|
|
1499
1502
|
I !== void 0 && (I = Math.max(0, Math.min(I, L - 1))), x !== void 0 && (x = Math.max(0, Math.min(x, D - 1)));
|
|
1500
1503
|
var q = c(this.props, this._instanceProps), G = d(this.props, this._instanceProps), j = G > A ? $ : 0, V = q > O ? $ : 0;
|
|
1501
1504
|
this.scrollTo({
|
|
1502
1505
|
scrollLeft: I !== void 0 ? s(this.props, I, _, R, this._instanceProps, V) : R,
|
|
1503
|
-
scrollTop: x !== void 0 ? m(this.props, x, _,
|
|
1506
|
+
scrollTop: x !== void 0 ? m(this.props, x, _, k, this._instanceProps, j) : k
|
|
1504
1507
|
});
|
|
1505
1508
|
}, h.componentDidMount = function() {
|
|
1506
1509
|
var l = this.props, w = l.initialScrollLeft, _ = l.initialScrollTop;
|
|
@@ -1534,7 +1537,7 @@ function ci(t) {
|
|
|
1534
1537
|
}, h.componentWillUnmount = function() {
|
|
1535
1538
|
this._resetIsScrollingTimeoutId !== null && Yt(this._resetIsScrollingTimeoutId);
|
|
1536
1539
|
}, h.render = function() {
|
|
1537
|
-
var l = this.props, w = l.children, _ = l.className, I = l.columnCount, x = l.direction, S = l.height, L = l.innerRef, O = l.innerElementType, D = l.innerTagName, A = l.itemData, E = l.itemKey, R = E === void 0 ? si : E,
|
|
1540
|
+
var l = this.props, w = l.children, _ = l.className, I = l.columnCount, x = l.direction, S = l.height, L = l.innerRef, O = l.innerElementType, D = l.innerTagName, A = l.itemData, E = l.itemKey, R = E === void 0 ? si : E, k = l.outerElementType, $ = l.outerTagName, q = l.rowCount, G = l.style, j = l.useIsScrolling, V = l.width, ie = this.state.isScrolling, U = this._getHorizontalRangeToRender(), Q = U[0], J = U[1], te = this._getVerticalRangeToRender(), ee = te[0], Y = te[1], ve = [];
|
|
1538
1541
|
if (I > 0 && q)
|
|
1539
1542
|
for (var fe = ee; fe <= Y; fe++)
|
|
1540
1543
|
for (var Se = Q; Se <= J; Se++)
|
|
@@ -1551,7 +1554,7 @@ function ci(t) {
|
|
|
1551
1554
|
style: this._getItemStyle(fe, Se)
|
|
1552
1555
|
}));
|
|
1553
1556
|
var xe = c(this.props, this._instanceProps), st = d(this.props, this._instanceProps);
|
|
1554
|
-
return Ke(
|
|
1557
|
+
return Ke(k || $ || "div", {
|
|
1555
1558
|
className: _,
|
|
1556
1559
|
onScroll: this._onScroll,
|
|
1557
1560
|
ref: this._outerRefSetter,
|
|
@@ -1576,8 +1579,8 @@ function ci(t) {
|
|
|
1576
1579
|
}, h._callPropsCallbacks = function() {
|
|
1577
1580
|
var l = this.props, w = l.columnCount, _ = l.onItemsRendered, I = l.onScroll, x = l.rowCount;
|
|
1578
1581
|
if (typeof _ == "function" && w > 0 && x > 0) {
|
|
1579
|
-
var S = this._getHorizontalRangeToRender(), L = S[0], O = S[1], D = S[2], A = S[3], E = this._getVerticalRangeToRender(), R = E[0],
|
|
1580
|
-
this._callOnItemsRendered(L, O, R,
|
|
1582
|
+
var S = this._getHorizontalRangeToRender(), L = S[0], O = S[1], D = S[2], A = S[3], E = this._getVerticalRangeToRender(), R = E[0], k = E[1], $ = E[2], q = E[3];
|
|
1583
|
+
this._callOnItemsRendered(L, O, R, k, D, A, $, q);
|
|
1581
1584
|
}
|
|
1582
1585
|
if (typeof I == "function") {
|
|
1583
1586
|
var G = this.state, j = G.horizontalScrollDirection, V = G.scrollLeft, ie = G.scrollTop, U = G.scrollUpdateWasRequested, Q = G.verticalScrollDirection;
|
|
@@ -1587,14 +1590,14 @@ function ci(t) {
|
|
|
1587
1590
|
var l = this.props, w = l.columnCount, _ = l.overscanColumnCount, I = l.overscanColumnsCount, x = l.overscanCount, S = l.rowCount, L = this.state, O = L.horizontalScrollDirection, D = L.isScrolling, A = L.scrollLeft, E = _ || I || x || 1;
|
|
1588
1591
|
if (w === 0 || S === 0)
|
|
1589
1592
|
return [0, 0, 0, 0];
|
|
1590
|
-
var R = r(this.props, A, this._instanceProps),
|
|
1591
|
-
return [Math.max(0, R - $), Math.max(0, Math.min(w - 1,
|
|
1593
|
+
var R = r(this.props, A, this._instanceProps), k = o(this.props, R, A, this._instanceProps), $ = !D || O === "backward" ? Math.max(1, E) : 1, q = !D || O === "forward" ? Math.max(1, E) : 1;
|
|
1594
|
+
return [Math.max(0, R - $), Math.max(0, Math.min(w - 1, k + q)), R, k];
|
|
1592
1595
|
}, h._getVerticalRangeToRender = function() {
|
|
1593
1596
|
var l = this.props, w = l.columnCount, _ = l.overscanCount, I = l.overscanRowCount, x = l.overscanRowsCount, S = l.rowCount, L = this.state, O = L.isScrolling, D = L.verticalScrollDirection, A = L.scrollTop, E = I || x || _ || 1;
|
|
1594
1597
|
if (w === 0 || S === 0)
|
|
1595
1598
|
return [0, 0, 0, 0];
|
|
1596
|
-
var R = u(this.props, A, this._instanceProps),
|
|
1597
|
-
return [Math.max(0, R - $), Math.max(0, Math.min(S - 1,
|
|
1599
|
+
var R = u(this.props, A, this._instanceProps), k = v(this.props, R, A, this._instanceProps), $ = !O || D === "backward" ? Math.max(1, E) : 1, q = !O || D === "forward" ? Math.max(1, E) : 1;
|
|
1600
|
+
return [Math.max(0, R - $), Math.max(0, Math.min(S - 1, k + q)), R, k];
|
|
1598
1601
|
}, p;
|
|
1599
1602
|
}(lo), e.defaultProps = {
|
|
1600
1603
|
direction: "ltr",
|
|
@@ -1771,7 +1774,7 @@ function fi(t, e) {
|
|
|
1771
1774
|
return !on(n, o) && !on(r, a);
|
|
1772
1775
|
}
|
|
1773
1776
|
const mi = () => {
|
|
1774
|
-
const { viewMode: t } = He(), { scrollMode: e } = ze(), { setColumnCount: n } = mn(), { virtualScrollableElementRef: r } = nt(), o = je(), a =
|
|
1777
|
+
const { viewMode: t } = He(), { scrollMode: e } = ze(), { setColumnCount: n } = mn(), { virtualScrollableElementRef: r } = nt(), o = je(), a = F(() => o.heights.length, [o.heights]), c = F(() => e === re.HORIZONTAL_SCROLLING ? a : t === Oe.DUAL_PAGE ? 2 : 1, [t, e, e, a, r]), d = F(() => o.widths.reduce((b, y, p) => {
|
|
1775
1778
|
const h = p % c;
|
|
1776
1779
|
return (!b[h] || y > b[h]) && (b[h] = y), b;
|
|
1777
1780
|
}, []), [o.widths, c]), s = N(
|
|
@@ -1793,13 +1796,13 @@ const mi = () => {
|
|
|
1793
1796
|
z(() => {
|
|
1794
1797
|
n(c);
|
|
1795
1798
|
}, [c, n]);
|
|
1796
|
-
const g =
|
|
1799
|
+
const g = F(() => e === re.HORIZONTAL_SCROLLING || e === re.PAGE_SCROLLING ? 1 : Math.round(a / c), [c, a, e]), C = F(() => o.heights.reduce((T, b) => T + b, 0) / o.heights.length || 0, [o]), u = F(() => o.widths.reduce((T, b) => T + b, 0) / o.widths.length || 0, [o]), v = F(() => {
|
|
1797
1800
|
const { rowsHeight: T, columnsWidth: b } = Rt(o, c);
|
|
1798
1801
|
return {
|
|
1799
1802
|
rowsHeight: T,
|
|
1800
1803
|
columnsWidth: b
|
|
1801
1804
|
};
|
|
1802
|
-
}, [o, c]), P =
|
|
1805
|
+
}, [o, c]), P = F(() => ({
|
|
1803
1806
|
width: v.columnsWidth.reduce((T, b) => T + b, 0),
|
|
1804
1807
|
height: v.rowsHeight.reduce((T, b) => T + b, 0)
|
|
1805
1808
|
}), [v]);
|
|
@@ -1988,14 +1991,14 @@ class vi extends uo {
|
|
|
1988
1991
|
}
|
|
1989
1992
|
}
|
|
1990
1993
|
const wi = hn(({ widths: t, heights: e }) => {
|
|
1991
|
-
const { focusedPage: n, totalPages: r } = ue(), o =
|
|
1994
|
+
const { focusedPage: n, totalPages: r } = ue(), o = F(() => {
|
|
1992
1995
|
const d = [], s = Math.ceil(n / 2) * 2 - 1;
|
|
1993
1996
|
if (d.push(s), s + 1 <= r) {
|
|
1994
1997
|
const m = s + 1;
|
|
1995
1998
|
d.push(m);
|
|
1996
1999
|
}
|
|
1997
2000
|
return d;
|
|
1998
|
-
}, [n, r]), a =
|
|
2001
|
+
}, [n, r]), a = F(() => {
|
|
1999
2002
|
const d = n % 2 === 1 ? n - 1 : n - 2, s = Math.floor(d / 2), m = e(s), g = t(d), C = t(d + 1);
|
|
2000
2003
|
return [
|
|
2001
2004
|
{
|
|
@@ -2011,14 +2014,14 @@ const wi = hn(({ widths: t, heights: e }) => {
|
|
|
2011
2014
|
height: m
|
|
2012
2015
|
}
|
|
2013
2016
|
];
|
|
2014
|
-
}, [t, e, o]), c =
|
|
2017
|
+
}, [t, e, o]), c = F(() => a.reduce((d, s) => d + Number(s.width || 0), 0), [a]);
|
|
2015
2018
|
return /* @__PURE__ */ i("div", { style: { width: c, position: "relative" }, children: o.map((d, s) => /* @__PURE__ */ i(Dt, { style: a[s], pageNumber: d }, d)) });
|
|
2016
2019
|
}), _i = ({ widths: t, heights: e }) => {
|
|
2017
|
-
const { focusedPage: n } = ue(), r =
|
|
2020
|
+
const { focusedPage: n } = ue(), r = F(() => ({
|
|
2018
2021
|
position: "absolute",
|
|
2019
2022
|
width: t(n - 1),
|
|
2020
2023
|
height: e(n - 1)
|
|
2021
|
-
}), [t, e, n]), o =
|
|
2024
|
+
}), [t, e, n]), o = F(() => t(n - 1), [t]);
|
|
2022
2025
|
return /* @__PURE__ */ i(
|
|
2023
2026
|
"div",
|
|
2024
2027
|
{
|
|
@@ -2030,7 +2033,7 @@ const wi = hn(({ widths: t, heights: e }) => {
|
|
|
2030
2033
|
}
|
|
2031
2034
|
);
|
|
2032
2035
|
}, bi = (t, e, n) => {
|
|
2033
|
-
const r = M(), { contentRef: o } = be(), { heights: a, widths: c } = je(), { setFocusedPage: d } = ue(), [s, m] = H([]), { targetScrollPage: g } = gn(), C = Lt(s, 0, 500), u =
|
|
2036
|
+
const r = M(), { contentRef: o } = be(), { heights: a, widths: c } = je(), { setFocusedPage: d } = ue(), [s, m] = H([]), { targetScrollPage: g } = gn(), C = Lt(s, 0, 500), u = F(() => {
|
|
2034
2037
|
const { rowsHeight: P, columnsWidth: T } = Rt({ heights: a, widths: c }, t);
|
|
2035
2038
|
return a.map((b, y) => {
|
|
2036
2039
|
const p = c[y], h = ar(y + 1, t), f = T.slice(0, h.columnIndex).reduce((I, x) => I + x, 0), l = P.slice(0, h.rowIndex).reduce((I, x) => I + x, 0), w = f + p, _ = l + b;
|
|
@@ -2124,7 +2127,7 @@ const wi = hn(({ widths: t, heights: e }) => {
|
|
|
2124
2127
|
viewMode: w,
|
|
2125
2128
|
scrollMode: l
|
|
2126
2129
|
}), A = M(!1), E = M(), { isFullScreen: R } = To(), {
|
|
2127
|
-
pageDimension:
|
|
2130
|
+
pageDimension: k,
|
|
2128
2131
|
rowCount: $,
|
|
2129
2132
|
rowHeight: q,
|
|
2130
2133
|
columnCount: G,
|
|
@@ -2141,7 +2144,7 @@ const wi = hn(({ widths: t, heights: e }) => {
|
|
|
2141
2144
|
dr(o);
|
|
2142
2145
|
const { isPressed: Y } = cr(), { selectionMode: ve } = bo(), { initializeGrabScroll: fe, resetGrabState: Se } = lr({
|
|
2143
2146
|
isPressed: Y
|
|
2144
|
-
}), xe =
|
|
2147
|
+
}), xe = F(() => ve === mo.HAND, [ve]), st = F(() => ({
|
|
2145
2148
|
columnCount: G
|
|
2146
2149
|
}), [G]), ct = N(
|
|
2147
2150
|
(B) => {
|
|
@@ -2161,7 +2164,7 @@ const wi = hn(({ widths: t, heights: e }) => {
|
|
|
2161
2164
|
rowIndex: B,
|
|
2162
2165
|
shouldForceUpdate: !0
|
|
2163
2166
|
});
|
|
2164
|
-
}, [$, G,
|
|
2167
|
+
}, [$, G, k, s]);
|
|
2165
2168
|
const to = N(
|
|
2166
2169
|
(B, Z) => {
|
|
2167
2170
|
if (!v)
|
|
@@ -2219,7 +2222,7 @@ const wi = hn(({ widths: t, heights: e }) => {
|
|
|
2219
2222
|
height: B,
|
|
2220
2223
|
width: Z
|
|
2221
2224
|
});
|
|
2222
|
-
}, [
|
|
2225
|
+
}, [k, $, G, kt]);
|
|
2223
2226
|
const no = N(
|
|
2224
2227
|
(B) => {
|
|
2225
2228
|
ee.current = {
|
|
@@ -2237,7 +2240,7 @@ const wi = hn(({ widths: t, heights: e }) => {
|
|
|
2237
2240
|
}, [v, T, J]), z(() => () => {
|
|
2238
2241
|
te.current && clearTimeout(te.current);
|
|
2239
2242
|
}, []);
|
|
2240
|
-
const oo =
|
|
2243
|
+
const oo = F(() => ae(se["rp-pages-container"], {
|
|
2241
2244
|
[se["rp-cursor-grab"]]: xe && !Y,
|
|
2242
2245
|
[se["rp-cursor-grabbing"]]: xe && Y
|
|
2243
2246
|
}), [xe, Y]), ro = N(
|
|
@@ -2375,7 +2378,7 @@ const wi = hn(({ widths: t, heights: e }) => {
|
|
|
2375
2378
|
h.key === "Enter" && T();
|
|
2376
2379
|
},
|
|
2377
2380
|
[T]
|
|
2378
|
-
), p =
|
|
2381
|
+
), p = F(() => C === Oe.DUAL_PAGE && u === re.PAGE_SCROLLING && t === e - 1 || t === e, [t, e, C, u]);
|
|
2379
2382
|
return !s || !m ? null : typeof s != "boolean" ? /* @__PURE__ */ i(
|
|
2380
2383
|
s,
|
|
2381
2384
|
{
|
|
@@ -2669,7 +2672,7 @@ const Ne = {
|
|
|
2669
2672
|
"rp-dialog-close": "_rp-dialog-close_slqo7_47",
|
|
2670
2673
|
"rp-properties-divider": "_rp-properties-divider_slqo7_55"
|
|
2671
2674
|
}, qi = () => {
|
|
2672
|
-
const { pdfProperties: t } = oe(), { container: e } = be(), { activeDocumentProperties: n, setActiveDocumentProperties: r } = No(), { localeMessages: o } = de(), a =
|
|
2675
|
+
const { pdfProperties: t } = oe(), { container: e } = be(), { activeDocumentProperties: n, setActiveDocumentProperties: r } = No(), { localeMessages: o } = de(), a = F(() => {
|
|
2673
2676
|
if (!t)
|
|
2674
2677
|
return [];
|
|
2675
2678
|
const {
|
|
@@ -2782,7 +2785,7 @@ const Ne = {
|
|
|
2782
2785
|
const { goToLastPageIcon: t } = ge(), { goToLastPageIcon: e } = me();
|
|
2783
2786
|
return t || e || /* @__PURE__ */ i(bn, {});
|
|
2784
2787
|
}, ln = { width: "100%" }, Ji = () => {
|
|
2785
|
-
const { goToPage: t, totalPages: e, focusedPage: n } = ue(), { jumpNavigationTool: r = !0 } = Te(), { jumpNavigationTool: o = !0 } = ye(), { localeMessages: a } = de(), c =
|
|
2788
|
+
const { goToPage: t, totalPages: e, focusedPage: n } = ue(), { jumpNavigationTool: r = !0 } = Te(), { jumpNavigationTool: o = !0 } = ye(), { localeMessages: a } = de(), c = F(() => n === 1, [n]), d = F(() => n === e, [n, e]), s = N(() => {
|
|
2786
2789
|
t(1);
|
|
2787
2790
|
}, [t]), m = N(() => {
|
|
2788
2791
|
t(e);
|
|
@@ -2825,7 +2828,7 @@ const Ne = {
|
|
|
2825
2828
|
new ResizeObserver((E) => {
|
|
2826
2829
|
L(E[0].contentRect.height);
|
|
2827
2830
|
})
|
|
2828
|
-
), D =
|
|
2831
|
+
), D = F(() => C || m || g || s || d || P || o && (a || c || u || v), [
|
|
2829
2832
|
a,
|
|
2830
2833
|
c,
|
|
2831
2834
|
u,
|
|
@@ -2836,7 +2839,7 @@ const Ne = {
|
|
|
2836
2839
|
g,
|
|
2837
2840
|
C,
|
|
2838
2841
|
o
|
|
2839
|
-
]), A =
|
|
2842
|
+
]), A = F(() => l || h || f || p || y || I || o && (T || b || w || _), [
|
|
2840
2843
|
T,
|
|
2841
2844
|
b,
|
|
2842
2845
|
w,
|
|
@@ -2907,7 +2910,7 @@ const Ne = {
|
|
|
2907
2910
|
"rp-current-zoom-text": "_rp-current-zoom-text_1yldl_24",
|
|
2908
2911
|
"rp-zoom-dropdown-content": "_rp-zoom-dropdown-content_1yldl_28"
|
|
2909
2912
|
}, oa = ({ zoomLevel: t, className: e }) => {
|
|
2910
|
-
const { localeMessages: n } = de(), r =
|
|
2913
|
+
const { localeMessages: n } = de(), r = F(() => {
|
|
2911
2914
|
switch (t) {
|
|
2912
2915
|
case Me.ACTUAL:
|
|
2913
2916
|
return n == null ? void 0 : n.zoomActualSize;
|
|
@@ -2943,7 +2946,7 @@ const Ne = {
|
|
|
2943
2946
|
const p = Math.ceil(n * 100 / 25) * 25;
|
|
2944
2947
|
return Math.min(p - 25, Gt);
|
|
2945
2948
|
});
|
|
2946
|
-
}, [e, n]), b =
|
|
2949
|
+
}, [e, n]), b = F(() => Wr(n), [n]), y = F(() => Mr(n), [n]);
|
|
2947
2950
|
return z(() => (o && v.current.observe(o), () => {
|
|
2948
2951
|
v.current.disconnect();
|
|
2949
2952
|
}), [o]), !a || !c ? null : typeof a == "function" ? /* @__PURE__ */ i(a, { zoomLevel: t, setZoomLevel: e }) : typeof c == "function" ? /* @__PURE__ */ i(c, { zoomLevel: t, setZoomLevel: e }) : /* @__PURE__ */ W("div", { className: Fe["rp-zoom-wrapper"], children: [
|
|
@@ -3099,7 +3102,7 @@ const Ne = {
|
|
|
3099
3102
|
h(U.target.value);
|
|
3100
3103
|
}, []), R = N(() => {
|
|
3101
3104
|
h(""), g("");
|
|
3102
|
-
}, [g]),
|
|
3105
|
+
}, [g]), k = F(() => `${u} / ${C}`, [u, C]), { wholeWords: $, matchCase: q } = F(() => d, [d]), G = N(
|
|
3103
3106
|
(U) => {
|
|
3104
3107
|
s((Q) => ({ ...Q, matchCase: U }));
|
|
3105
3108
|
},
|
|
@@ -3113,7 +3116,7 @@ const Ne = {
|
|
|
3113
3116
|
z(() => {
|
|
3114
3117
|
o && I && L();
|
|
3115
3118
|
}, [o, L]);
|
|
3116
|
-
const V =
|
|
3119
|
+
const V = F(() => (w == null ? void 0 : w.querySelectorAll('[tabindex]:not([tabindex="-1"])')) || [], [w]), ie = N(
|
|
3117
3120
|
(U) => {
|
|
3118
3121
|
if (U.key === "Tab") {
|
|
3119
3122
|
const Q = document.activeElement;
|
|
@@ -3181,7 +3184,7 @@ const Ne = {
|
|
|
3181
3184
|
children: !!p && /* @__PURE__ */ i("span", { className: ne["rp-search-tool-input-clear"], onClick: R, children: /* @__PURE__ */ i(Hr, {}) })
|
|
3182
3185
|
}
|
|
3183
3186
|
) }),
|
|
3184
|
-
m ? /* @__PURE__ */ i("span", { children: /* @__PURE__ */ i(vn, { className: ne["rp-search-loader-icon"] }) }) : /* @__PURE__ */ i("span", { children:
|
|
3187
|
+
m ? /* @__PURE__ */ i("span", { children: /* @__PURE__ */ i(vn, { className: ne["rp-search-loader-icon"] }) }) : /* @__PURE__ */ i("span", { children: k }),
|
|
3185
3188
|
l && /* @__PURE__ */ i("div", { className: ne["rp-search-tool-controls"], children: /* @__PURE__ */ i(Ht, { onKeyPress: O, handleClose: L }) })
|
|
3186
3189
|
] }),
|
|
3187
3190
|
/* @__PURE__ */ W("div", { className: ne["rp-search-tool-input-checkboxes"], children: [
|
|
@@ -3270,7 +3273,7 @@ const Ne = {
|
|
|
3270
3273
|
"rp-thumbnail-active": "_rp-thumbnail-active_3fenb_22",
|
|
3271
3274
|
"rp-thumbnail-loader": "_rp-thumbnail-loader_3fenb_31"
|
|
3272
3275
|
}, ha = (t) => {
|
|
3273
|
-
const { pageNumber: e, isFocused: n, viewport: r } = t, { goToPage: o } = ue(), { pageRotate: a } = ot(), c = M(null), d = Ln(), { pages: s } = oe(), [m, g] = H(null), C = M(!1), u = M(), v =
|
|
3276
|
+
const { pageNumber: e, isFocused: n, viewport: r } = t, { goToPage: o } = ue(), { pageRotate: a } = ot(), c = M(null), d = Ln(), { pages: s } = oe(), [m, g] = H(null), C = M(!1), u = M(), v = F(() => n ? qe["rp-thumbnail-active"] : "", [n]), P = F(() => ({
|
|
3274
3277
|
width: Math.round(r.width),
|
|
3275
3278
|
height: Math.round(r.height)
|
|
3276
3279
|
}), [r]), T = N(() => {
|
|
@@ -3365,7 +3368,7 @@ const Ne = {
|
|
|
3365
3368
|
}, ga = rt((t, e) => {
|
|
3366
3369
|
const { show: n, width: r } = t, { focusedPage: o, totalPages: a } = ue(), { thumbnailPages: c, addPage: d, thumbnailLength: s, addToPage: m } = Sn(), g = M(null), C = M(1);
|
|
3367
3370
|
pn(e, () => g.current);
|
|
3368
|
-
const u =
|
|
3371
|
+
const u = F(() => Object.values(c), [c]), v = N(() => {
|
|
3369
3372
|
const P = s + 1;
|
|
3370
3373
|
P <= a && d(P);
|
|
3371
3374
|
}, [d, a, s]);
|
|
@@ -3391,7 +3394,7 @@ const Ne = {
|
|
|
3391
3394
|
}, wa = () => {
|
|
3392
3395
|
const { active: t, setActive: e } = Sn(), [n, r] = H(Qo), o = M(null), a = M(null), { thumbnailTool: c, sidebarEnable: d } = Te(), { localeMessages: s } = de(), m = N(() => {
|
|
3393
3396
|
e((C) => !C);
|
|
3394
|
-
}, []), g =
|
|
3397
|
+
}, []), g = F(() => typeof c != "boolean" && c ? /* @__PURE__ */ i(c, { onClick: m, active: t }) : c ? /* @__PURE__ */ i(K, { content: s == null ? void 0 : s.thumbnailTooltip, children: /* @__PURE__ */ i(
|
|
3395
3398
|
ce,
|
|
3396
3399
|
{
|
|
3397
3400
|
onClick: m,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as r } from "react/jsx-runtime";
|
|
2
2
|
import { useState as i, useId as k, useMemo as w } from "react";
|
|
3
|
-
import { k as D, l as E, m as F, T as G, n as b } from "../ToolbarLayout.module-
|
|
3
|
+
import { k as D, l as E, m as F, T as G, n as b } from "../ToolbarLayout.module-8d56d12b.js";
|
|
4
4
|
import { DarkModeProvider as x } from "../contexts/DarkModeContext.js";
|
|
5
5
|
import { ViewMode as y, ScrollMode as _, SelectionMode as z } from "../utils/types.js";
|
|
6
6
|
import { RotateProvider as A } from "../contexts/RotationContext.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import "react/jsx-runtime";
|
|
2
2
|
import "react";
|
|
3
|
-
import { R as Dr } from "../ToolbarLayout.module-
|
|
3
|
+
import { R as Dr } from "../ToolbarLayout.module-8d56d12b.js";
|
|
4
4
|
import "../contexts/VirtualScrollContext.js";
|
|
5
5
|
import "../contexts/RPDocumentContext.js";
|
|
6
6
|
import "../contexts/DocumentPasswordContext.js";
|
|
@@ -22,7 +22,7 @@ import "../utils/hooks/usePdfProperties.js";
|
|
|
22
22
|
import "../utils/convertPdfDate.js";
|
|
23
23
|
import "../utils/formatFileSize.js";
|
|
24
24
|
import "../utils/appConsole.js";
|
|
25
|
-
import "../ToolbarLayout.module-
|
|
25
|
+
import "../ToolbarLayout.module-8d56d12b.js";
|
|
26
26
|
import "./icons/ChevronUpIcon.js";
|
|
27
27
|
import "./ui/Button.js";
|
|
28
28
|
import "../clsx-0c6e471a.js";
|
|
@@ -5,7 +5,7 @@ import "../../contexts/ThemeContext.js";
|
|
|
5
5
|
import "react";
|
|
6
6
|
import "../../contexts/RPDocumentContext.js";
|
|
7
7
|
import "../../contexts/DocumentPasswordContext.js";
|
|
8
|
-
import { L as Er } from "../../ToolbarLayout.module-
|
|
8
|
+
import { L as Er } from "../../ToolbarLayout.module-8d56d12b.js";
|
|
9
9
|
import "../../contexts/DarkModeContext.js";
|
|
10
10
|
import "../../contexts/RotationContext.js";
|
|
11
11
|
import "../../contexts/LayerContext.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import "react/jsx-runtime";
|
|
2
2
|
import "react";
|
|
3
|
-
import { a as Bt } from "../../ToolbarLayout.module-
|
|
3
|
+
import { a as Bt } from "../../ToolbarLayout.module-8d56d12b.js";
|
|
4
4
|
import "../../LayoutWrapper-6224491f.js";
|
|
5
5
|
import "../../contexts/ToolbarComponentContext.js";
|
|
6
6
|
import "../../contexts/LayoutContainerContext.js";
|
|
@@ -9,7 +9,7 @@ import { useDocumentContext as x } from "../../contexts/RPDocumentContext.js";
|
|
|
9
9
|
import { RPDropFileZone as b } from "../RPDropFileZone.js";
|
|
10
10
|
import { c as j } from "../../LayoutWrapper-6224491f.js";
|
|
11
11
|
import { useLoaderContext as v } from "../../contexts/LoaderContext.js";
|
|
12
|
-
import { L as w } from "../../ToolbarLayout.module-
|
|
12
|
+
import { L as w } from "../../ToolbarLayout.module-8d56d12b.js";
|
|
13
13
|
import "../../clsx-0c6e471a.js";
|
|
14
14
|
import "./toolbar/ToolbarDefault.js";
|
|
15
15
|
import "../../contexts/ToolbarComponentContext.js";
|
|
@@ -2,7 +2,7 @@ import "react/jsx-runtime";
|
|
|
2
2
|
import "react";
|
|
3
3
|
import "../../icons/Thumbnail.js";
|
|
4
4
|
import "../../ui/Button.js";
|
|
5
|
-
import { a0 as Co } from "../../../ToolbarLayout.module-
|
|
5
|
+
import { a0 as Co } from "../../../ToolbarLayout.module-8d56d12b.js";
|
|
6
6
|
import "./RPSplitter.js";
|
|
7
7
|
import "../../../contexts/ToolbarComponentContext.js";
|
|
8
8
|
import "../../../contexts/IconContext.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import "react/jsx-runtime";
|
|
2
2
|
import "react";
|
|
3
|
-
import { $ as Do } from "../../../ToolbarLayout.module-
|
|
3
|
+
import { $ as Do } from "../../../ToolbarLayout.module-8d56d12b.js";
|
|
4
4
|
import "../../../clsx-0c6e471a.js";
|
|
5
5
|
import "../../icons/LoaderIcon.js";
|
|
6
6
|
import "../../../contexts/PagesRotateContext.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import "react/jsx-runtime";
|
|
2
2
|
import "react";
|
|
3
|
-
import { p as Eo } from "../../../ToolbarLayout.module-
|
|
3
|
+
import { p as Eo } from "../../../ToolbarLayout.module-8d56d12b.js";
|
|
4
4
|
import "../../../utils/hooks/useInfiniteScroll.js";
|
|
5
5
|
import "../../../utils/withRef.js";
|
|
6
6
|
import "../../icons/ChevronUpIcon.js";
|