@pdf-viewer/react 1.7.0-beta.1 → 1.7.0-beta.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{RPDefaultLayout-aa575bb0.js → RPDefaultLayout-d6cd2d0c.js} +102 -102
- package/dist/assets/PasswordModal.css +1 -1
- package/dist/assets/RPDefaultLayout.css +1 -1
- 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/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/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/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/TextHighlightLayer.js +1 -1
- package/dist/components/page/TextLayer.js +1 -1
- package/dist/components/ui/LoadingIndicator.js +1 -1
- package/dist/components/ui/PasswordModal.js +14 -14
- package/dist/contexts/PaginationContext.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/types/utils/types.d.ts +1 -0
- package/dist/utils/hooks/useFileDownload.js +1 -1
- package/dist/utils/hooks/useLicense.js +1 -1
- package/dist/utils/hooks/useLoadPdf.js +21 -25
- 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/dist/utils/types.js +1 -1
- package/package.json +1 -1
|
@@ -4,7 +4,7 @@ import { useRef as H, useEffect as k, useCallback as N, useState as $, useMemo a
|
|
|
4
4
|
import { ChevronUpIcon as Me } from "./components/icons/ChevronUpIcon.js";
|
|
5
5
|
import { UIButton as re } from "./components/ui/Button.js";
|
|
6
6
|
import { UIInput as ln } from "./components/ui/Input.js";
|
|
7
|
-
import { ViewMode as He, ScrollMode as ee, AnnotationSubType as
|
|
7
|
+
import { ViewMode as He, ScrollMode as ee, AnnotationSubType as At, SelectionMode as tr, ZoomLevel as at } from "./utils/types.js";
|
|
8
8
|
import { useScrollModeContext as De } from "./contexts/ScrollModeContext.js";
|
|
9
9
|
import { useDocumentContext as J } from "./contexts/RPDocumentContext.js";
|
|
10
10
|
import { useDocumentPasswordContext as nr } from "./contexts/DocumentPasswordContext.js";
|
|
@@ -12,7 +12,7 @@ import { useDarkModeContext as rr } from "./contexts/DarkModeContext.js";
|
|
|
12
12
|
import { useRotationContext as Ge } from "./contexts/RotationContext.js";
|
|
13
13
|
import { useLayerContext as or } from "./contexts/LayerContext.js";
|
|
14
14
|
import { useZoomContext as Qe } from "./contexts/ZoomContext.js";
|
|
15
|
-
import { useViewModeContext as
|
|
15
|
+
import { useViewModeContext as Ae } from "./contexts/ViewModeContext.js";
|
|
16
16
|
import { useVirtualScrollContext as et } from "./contexts/VirtualScrollContext.js";
|
|
17
17
|
import { useVirtualGridContext as dn } from "./contexts/VirtualGridContext.js";
|
|
18
18
|
import { useSelectionModeContext as ir } from "./contexts/SelectionModeContext.js";
|
|
@@ -47,8 +47,8 @@ import { useThemeContext as Pr } from "./contexts/ThemeContext.js";
|
|
|
47
47
|
import * as Sr from "pdfjs-dist";
|
|
48
48
|
import { PixelsPerInch as yr, AnnotationMode as xr, RenderingCancelledException as Ir, AnnotationLayer as Rr } from "pdfjs-dist";
|
|
49
49
|
import { SimpleLinkService as Lr } from "./utils/link_service.js";
|
|
50
|
-
import { annotationsEvents as Er, annotationEventsHandler as Nr, handleClick as
|
|
51
|
-
import { normalizeSingleKeyword as
|
|
50
|
+
import { annotationsEvents as Er, annotationEventsHandler as Nr, handleClick as zt, handleAnnotationWidget as Or, handleAnnotationLink as Dr, bindLayerEvents as Ar, unbindLayerEvents as Ft } from "./utils/annotations.js";
|
|
51
|
+
import { normalizeSingleKeyword as zr, sortHighlightPosition as Fr, unwrap as kr } from "./components/page/searchHighlight.js";
|
|
52
52
|
import { _ as Wr, U as Mr } from "./Popover-b7402893.js";
|
|
53
53
|
import { useMousePressed as Hr } from "./utils/hooks/useMousePressed.js";
|
|
54
54
|
import { useGrabScroll as $r } from "./utils/hooks/useGrabScroll.js";
|
|
@@ -94,7 +94,7 @@ import { UICheckbox as $t } from "./components/ui/Checkbox.js";
|
|
|
94
94
|
import { ClearIcon as To } from "./components/icons/ClearIcon.js";
|
|
95
95
|
import { InfoIcon as Gt } from "./components/icons/InfoIcon.js";
|
|
96
96
|
import './assets/RPDefaultLayout.css';const vn = () => {
|
|
97
|
-
const { viewMode: e } =
|
|
97
|
+
const { viewMode: e } = Ae(), { scrollMode: t } = De(), { virtualScrollRef: n, virtualScrollableElementRef: o, pageScrollElementRef: r } = et(), { setFocusedPage: a } = ie(), s = H(), { columnCount: l } = dn(), { widths: u, heights: h } = qe(), m = H(t), v = H(e), p = H(l), { targetScrollPage: w } = un();
|
|
98
98
|
k(() => {
|
|
99
99
|
n != null && n.scrollToItem && (s.current = n);
|
|
100
100
|
}, [n]), k(() => {
|
|
@@ -187,7 +187,7 @@ import './assets/RPDefaultLayout.css';const vn = () => {
|
|
|
187
187
|
]
|
|
188
188
|
) };
|
|
189
189
|
}, Po = (e = 1) => {
|
|
190
|
-
const [t, n] = $(e), [o, r] = $(0), { scrollToPage: a } = vn(), s = H(1), { viewMode: l } =
|
|
190
|
+
const [t, n] = $(e), [o, r] = $(0), { scrollToPage: a } = vn(), s = H(1), { viewMode: l } = Ae(), { scrollMode: u } = De(), { widths: h } = qe(), { pagesRef: m } = ge(), v = Tt(t, 100), p = N(
|
|
191
191
|
(d) => {
|
|
192
192
|
if (!/^[0-9]*$/g.test(d.toString()) || !d)
|
|
193
193
|
return { success: !1, currentPage: s.current };
|
|
@@ -295,7 +295,7 @@ const So = () => {
|
|
|
295
295
|
f.width = Math.floor(b.width * x), f.height = Math.floor(b.height * x);
|
|
296
296
|
const R = f.getContext("2d");
|
|
297
297
|
R.save(), R.fillStyle = "rgb(255, 255, 255)", R.fillRect(0, 0, f.width, f.height), R.restore();
|
|
298
|
-
const [D,
|
|
298
|
+
const [D, A] = await Promise.all([
|
|
299
299
|
g.getPage(c),
|
|
300
300
|
E
|
|
301
301
|
]);
|
|
@@ -303,17 +303,17 @@ const So = () => {
|
|
|
303
303
|
p();
|
|
304
304
|
return;
|
|
305
305
|
}
|
|
306
|
-
const
|
|
306
|
+
const z = {
|
|
307
307
|
canvasContext: R,
|
|
308
308
|
transform: [x, 0, 0, x, 0, 0],
|
|
309
309
|
viewport: D.getViewport({ scale: 1, rotation: b.rotation }),
|
|
310
310
|
intent: "print",
|
|
311
311
|
annotationMode: xr.ENABLE_STORAGE,
|
|
312
312
|
optionalContentConfigPromise: P,
|
|
313
|
-
printAnnotationStorage:
|
|
313
|
+
printAnnotationStorage: A
|
|
314
314
|
};
|
|
315
315
|
try {
|
|
316
|
-
return D.render(
|
|
316
|
+
return D.render(z).promise;
|
|
317
317
|
} catch (L) {
|
|
318
318
|
throw L instanceof Ir || console.error(L), L;
|
|
319
319
|
}
|
|
@@ -381,13 +381,13 @@ const So = () => {
|
|
|
381
381
|
p();
|
|
382
382
|
return;
|
|
383
383
|
}
|
|
384
|
-
const
|
|
385
|
-
g.push(
|
|
386
|
-
const
|
|
384
|
+
const A = await C(f);
|
|
385
|
+
g.push(A);
|
|
386
|
+
const z = parseFloat((g.length / P * 100).toFixed(2));
|
|
387
387
|
o({
|
|
388
388
|
loadedPages: x,
|
|
389
389
|
totalPages: P,
|
|
390
|
-
percentage:
|
|
390
|
+
percentage: z
|
|
391
391
|
});
|
|
392
392
|
}
|
|
393
393
|
if (m.current) {
|
|
@@ -570,7 +570,7 @@ const So = () => {
|
|
|
570
570
|
}
|
|
571
571
|
);
|
|
572
572
|
}, xo = (e = {}, t = "") => {
|
|
573
|
-
const [n, o] = $(t), [r, a] = $(!1), { pdf: s, pages: l } = J(), { widths: u, heights: h } = qe(), m = H(!n), { currentZoom: v } = Qe(), [p, w] = $([]), { setFocusedPage: T } = ie(), { columnCount: y } =
|
|
573
|
+
const [n, o] = $(t), [r, a] = $(!1), { pdf: s, pages: l } = J(), { widths: u, heights: h } = qe(), m = H(!n), { currentZoom: v } = Qe(), [p, w] = $([]), { setFocusedPage: T } = ie(), { columnCount: y } = Ae(), { rotate: C } = Ge(), [S, d] = $(0), { pageScrollElementRef: f, virtualScrollableElementRef: g } = et(), { scrollMode: c } = De(), { pagesRef: b } = ge(), [_, P] = $(null), E = H({}), x = W(() => S === 0 ? null : p[S - 1], [S, p]), R = W(() => p.length, [p]);
|
|
574
574
|
k(() => {
|
|
575
575
|
if (!x || !l)
|
|
576
576
|
return;
|
|
@@ -582,8 +582,8 @@ const So = () => {
|
|
|
582
582
|
return;
|
|
583
583
|
let O = 0, M = 0;
|
|
584
584
|
if (c === ee.VERTICAL_SCROLLING) {
|
|
585
|
-
const ae = x.page - 1, de = y, te = ae % de,
|
|
586
|
-
O = Oe(h,
|
|
585
|
+
const ae = x.page - 1, de = y, te = ae % de, ze = Math.floor(ae / de);
|
|
586
|
+
O = Oe(h, ze), M = Oe(u, te);
|
|
587
587
|
}
|
|
588
588
|
c === ee.HORIZONTAL_SCROLLING && (M = u.slice(0, x.page - 1).reduce((ae, de) => ae + de, 0));
|
|
589
589
|
const G = {
|
|
@@ -618,9 +618,9 @@ const So = () => {
|
|
|
618
618
|
]);
|
|
619
619
|
const D = N(() => {
|
|
620
620
|
d((L) => R ? L + 1 > R ? 1 : L + 1 : 0);
|
|
621
|
-
}, [R]),
|
|
621
|
+
}, [R]), A = N(() => {
|
|
622
622
|
d((L) => R ? L - 1 <= 0 ? R : L - 1 : 0);
|
|
623
|
-
}, [R]),
|
|
623
|
+
}, [R]), z = N(async (L) => {
|
|
624
624
|
if (!L)
|
|
625
625
|
return {};
|
|
626
626
|
const I = L.numPages, O = {};
|
|
@@ -637,7 +637,7 @@ const So = () => {
|
|
|
637
637
|
m.current = !0, w([]), d(0);
|
|
638
638
|
return;
|
|
639
639
|
}
|
|
640
|
-
m.current = !1, a(!0), w([]), d(0),
|
|
640
|
+
m.current = !1, a(!0), w([]), d(0), z(s).then((L) => {
|
|
641
641
|
E.current = L;
|
|
642
642
|
const O = Object.keys(L).reduce((M, G) => {
|
|
643
643
|
const Z = cr(
|
|
@@ -652,7 +652,7 @@ const So = () => {
|
|
|
652
652
|
}).catch(() => {
|
|
653
653
|
w([]), d(0);
|
|
654
654
|
}).finally(() => a(!1));
|
|
655
|
-
}, [n,
|
|
655
|
+
}, [n, z, s, e]), {
|
|
656
656
|
search: n,
|
|
657
657
|
setSearch: o,
|
|
658
658
|
loading: r,
|
|
@@ -661,7 +661,7 @@ const So = () => {
|
|
|
661
661
|
currentMatchPosition: S,
|
|
662
662
|
currentMatch: x,
|
|
663
663
|
nextMatch: D,
|
|
664
|
-
prevMatch:
|
|
664
|
+
prevMatch: A,
|
|
665
665
|
currentMatchElement: _,
|
|
666
666
|
setCurrentMatchElement: P
|
|
667
667
|
};
|
|
@@ -818,7 +818,7 @@ const So = () => {
|
|
|
818
818
|
document.addEventListener(
|
|
819
819
|
"selectionchange",
|
|
820
820
|
() => {
|
|
821
|
-
var
|
|
821
|
+
var z, L;
|
|
822
822
|
const _ = document.getSelection();
|
|
823
823
|
if (!_)
|
|
824
824
|
return;
|
|
@@ -844,10 +844,10 @@ const So = () => {
|
|
|
844
844
|
const E = _.getRangeAt(0);
|
|
845
845
|
let R = b && (E.compareBoundaryPoints(Range.END_TO_END, b) === 0 || E.compareBoundaryPoints(Range.START_TO_END, b) === 0) ? E.startContainer : E.endContainer;
|
|
846
846
|
R.nodeType === Node.TEXT_NODE && (R = R.parentNode);
|
|
847
|
-
const D = (
|
|
847
|
+
const D = (z = R.parentElement) == null ? void 0 : z.closest(
|
|
848
848
|
he["rp-text-layer"]
|
|
849
|
-
),
|
|
850
|
-
|
|
849
|
+
), A = D == null ? void 0 : D.querySelector(".endOfContent");
|
|
850
|
+
A && D && (A.style.width = D.style.width, A.style.height = D.style.height, (L = R.parentElement) == null || L.insertBefore(A, R.nextSibling)), b = E.cloneRange();
|
|
851
851
|
},
|
|
852
852
|
{ signal: g }
|
|
853
853
|
);
|
|
@@ -932,7 +932,7 @@ const Do = (e) => {
|
|
|
932
932
|
!s || !r || (Er(C), Nr(C, r, s).then((S) => {
|
|
933
933
|
var d, f;
|
|
934
934
|
((d = S == null ? void 0 : S.data) == null ? void 0 : d.action) === "Print" ? v() : ((f = S == null ? void 0 : S.data) == null ? void 0 : f.action) === "SaveAs" && p();
|
|
935
|
-
}), m === ee.PAGE_SCROLLING ?
|
|
935
|
+
}), m === ee.PAGE_SCROLLING ? zt(C, s, r, (S) => u(S.pageIndex + 1)) : zt(C, s, r, (S) => h(S.pageIndex + 1)));
|
|
936
936
|
},
|
|
937
937
|
[r, s, h, u, m, v, p]
|
|
938
938
|
);
|
|
@@ -950,10 +950,10 @@ const Do = (e) => {
|
|
|
950
950
|
for (const g of s) {
|
|
951
951
|
const { annotationType: c } = g;
|
|
952
952
|
switch (c) {
|
|
953
|
-
case
|
|
953
|
+
case At.Link:
|
|
954
954
|
Dr(g);
|
|
955
955
|
break;
|
|
956
|
-
case
|
|
956
|
+
case At.Widget:
|
|
957
957
|
Or(g, C, S);
|
|
958
958
|
break;
|
|
959
959
|
}
|
|
@@ -988,7 +988,7 @@ const Do = (e) => {
|
|
|
988
988
|
enableScripting: !1
|
|
989
989
|
});
|
|
990
990
|
})().then(() => {
|
|
991
|
-
n.current &&
|
|
991
|
+
n.current && Ar(n.current, y);
|
|
992
992
|
}).catch((g) => {
|
|
993
993
|
if (g !== "abort")
|
|
994
994
|
throw g;
|
|
@@ -1004,9 +1004,9 @@ const Do = (e) => {
|
|
|
1004
1004
|
ref: n
|
|
1005
1005
|
}
|
|
1006
1006
|
);
|
|
1007
|
-
},
|
|
1007
|
+
}, Ao = {
|
|
1008
1008
|
"rp-text-highlight": "_rp-text-highlight_jdkf8_1"
|
|
1009
|
-
},
|
|
1009
|
+
}, zo = ({ pageNumber: e, viewport: t }) => {
|
|
1010
1010
|
const [n, o] = $(), { pages: r } = J(), { highlightKeywords: a } = pr(), s = !0, l = H(null), [u, h] = $(null), [m, v] = $([]);
|
|
1011
1011
|
k(() => {
|
|
1012
1012
|
l.current && h(l.current.parentElement);
|
|
@@ -1022,7 +1022,7 @@ const Do = (e) => {
|
|
|
1022
1022
|
const p = W(() => a ? a.map((d) => {
|
|
1023
1023
|
var f, g;
|
|
1024
1024
|
return {
|
|
1025
|
-
...
|
|
1025
|
+
...zr(d.keyword, (f = d.options) == null ? void 0 : f.matchCase, (g = d.options) == null ? void 0 : g.wholeWords),
|
|
1026
1026
|
color: d.highlightColor
|
|
1027
1027
|
};
|
|
1028
1028
|
}) : [], [a]);
|
|
@@ -1070,14 +1070,14 @@ const Do = (e) => {
|
|
|
1070
1070
|
b.setStart(_, E), b.setEnd(_, x + 1);
|
|
1071
1071
|
const R = document.createElement("span");
|
|
1072
1072
|
R.style.width = "auto", b.surroundContents(R);
|
|
1073
|
-
const D = R.getBoundingClientRect(),
|
|
1073
|
+
const D = R.getBoundingClientRect(), A = d.getBoundingClientRect(), z = A.height, L = A.width, I = 100 * (D.left - A.left) / L, O = 100 * (D.top - A.top) / z, M = 100 * D.height / z, G = 100 * D.width / L;
|
|
1074
1074
|
return kr(R), {
|
|
1075
1075
|
keywordStr: f,
|
|
1076
1076
|
left: I,
|
|
1077
1077
|
top: O,
|
|
1078
1078
|
height: M,
|
|
1079
1079
|
width: G,
|
|
1080
|
-
pageHeight:
|
|
1080
|
+
pageHeight: z,
|
|
1081
1081
|
pageWidth: L
|
|
1082
1082
|
};
|
|
1083
1083
|
};
|
|
@@ -1112,8 +1112,8 @@ const Do = (e) => {
|
|
|
1112
1112
|
return [];
|
|
1113
1113
|
const _ = [], P = c.map((E) => E.char).join("");
|
|
1114
1114
|
return p.forEach((E) => {
|
|
1115
|
-
const { keyword: x, regExp: R, wholeWords: D, color:
|
|
1116
|
-
if (!
|
|
1115
|
+
const { keyword: x, regExp: R, wholeWords: D, color: A } = E, z = x;
|
|
1116
|
+
if (!z.trim())
|
|
1117
1117
|
return;
|
|
1118
1118
|
const L = R.flags.indexOf("g") === -1 ? new RegExp(R, `${R.flags}g`) : R;
|
|
1119
1119
|
let I;
|
|
@@ -1127,7 +1127,7 @@ const Do = (e) => {
|
|
|
1127
1127
|
const M = O.map((G) => ({
|
|
1128
1128
|
keyword: G.keyword,
|
|
1129
1129
|
indexes: c.slice(G.startIndex, G.endIndex),
|
|
1130
|
-
color:
|
|
1130
|
+
color: A
|
|
1131
1131
|
}));
|
|
1132
1132
|
for (const G of M) {
|
|
1133
1133
|
const Z = G.indexes.reduce(
|
|
@@ -1138,7 +1138,7 @@ const Do = (e) => {
|
|
|
1138
1138
|
if (j.length !== 1 || j[0].char.trim() !== "") {
|
|
1139
1139
|
const U = j, Q = g[U[0].spanIdx], X = y(
|
|
1140
1140
|
d,
|
|
1141
|
-
|
|
1141
|
+
z,
|
|
1142
1142
|
Q,
|
|
1143
1143
|
U
|
|
1144
1144
|
);
|
|
@@ -1164,7 +1164,7 @@ const Do = (e) => {
|
|
|
1164
1164
|
}, [s, a, e, n, t]), /* @__PURE__ */ i(fe, { children: /* @__PURE__ */ i("div", { ref: l, "data-rp": `page-${e}-textHighlightLayer`, children: m.map((d, f) => /* @__PURE__ */ i(
|
|
1165
1165
|
"div",
|
|
1166
1166
|
{
|
|
1167
|
-
className:
|
|
1167
|
+
className: Ao["rp-text-highlight"],
|
|
1168
1168
|
style: {
|
|
1169
1169
|
top: `${d.top}%`,
|
|
1170
1170
|
left: `${d.left}%`,
|
|
@@ -1227,7 +1227,7 @@ const Do = (e) => {
|
|
|
1227
1227
|
/* @__PURE__ */ i(Io, { onLoading: C, onLoaded: S, pageNumber: n }),
|
|
1228
1228
|
m && /* @__PURE__ */ i("div", { className: lt["rp-loader-wrapper"], children: /* @__PURE__ */ i(Ct, {}) }),
|
|
1229
1229
|
l && /* @__PURE__ */ i(Eo, { pageNumber: n }),
|
|
1230
|
-
/* @__PURE__ */ i(
|
|
1230
|
+
/* @__PURE__ */ i(zo, { pageNumber: n, viewport: w }),
|
|
1231
1231
|
/* @__PURE__ */ i(Do, { pageNumber: n })
|
|
1232
1232
|
]
|
|
1233
1233
|
}
|
|
@@ -1341,7 +1341,7 @@ function Vo(e) {
|
|
|
1341
1341
|
scrollTop: typeof c.props.initialScrollTop == "number" ? c.props.initialScrollTop : 0,
|
|
1342
1342
|
scrollUpdateWasRequested: !1,
|
|
1343
1343
|
verticalScrollDirection: "forward"
|
|
1344
|
-
}, c._callOnItemsRendered = void 0, c._callOnItemsRendered = dt(function(b, _, P, E, x, R, D,
|
|
1344
|
+
}, c._callOnItemsRendered = void 0, c._callOnItemsRendered = dt(function(b, _, P, E, x, R, D, A) {
|
|
1345
1345
|
return c.props.onItemsRendered({
|
|
1346
1346
|
overscanColumnStartIndex: b,
|
|
1347
1347
|
overscanColumnStopIndex: _,
|
|
@@ -1350,7 +1350,7 @@ function Vo(e) {
|
|
|
1350
1350
|
visibleColumnStartIndex: x,
|
|
1351
1351
|
visibleColumnStopIndex: R,
|
|
1352
1352
|
visibleRowStartIndex: D,
|
|
1353
|
-
visibleRowStopIndex:
|
|
1353
|
+
visibleRowStopIndex: A
|
|
1354
1354
|
});
|
|
1355
1355
|
}), c._callOnScroll = void 0, c._callOnScroll = dt(function(b, _, P, E, x) {
|
|
1356
1356
|
return c.props.onScroll({
|
|
@@ -1361,12 +1361,12 @@ function Vo(e) {
|
|
|
1361
1361
|
scrollUpdateWasRequested: x
|
|
1362
1362
|
});
|
|
1363
1363
|
}), c._getItemStyle = void 0, c._getItemStyle = function(b, _) {
|
|
1364
|
-
var P = c.props, E = P.columnWidth, x = P.direction, R = P.rowHeight, D = c._getItemStyleCache(y && E, y && x, y && R),
|
|
1365
|
-
if (D.hasOwnProperty(
|
|
1366
|
-
|
|
1364
|
+
var P = c.props, E = P.columnWidth, x = P.direction, R = P.rowHeight, D = c._getItemStyleCache(y && E, y && x, y && R), A = b + ":" + _, z;
|
|
1365
|
+
if (D.hasOwnProperty(A))
|
|
1366
|
+
z = D[A];
|
|
1367
1367
|
else {
|
|
1368
1368
|
var L = n(c.props, _, c._instanceProps), I = x === "rtl";
|
|
1369
|
-
D[
|
|
1369
|
+
D[A] = z = {
|
|
1370
1370
|
position: "absolute",
|
|
1371
1371
|
left: I ? void 0 : L,
|
|
1372
1372
|
right: I ? L : void 0,
|
|
@@ -1375,13 +1375,13 @@ function Vo(e) {
|
|
|
1375
1375
|
width: a(c.props, _, c._instanceProps)
|
|
1376
1376
|
};
|
|
1377
1377
|
}
|
|
1378
|
-
return
|
|
1378
|
+
return z;
|
|
1379
1379
|
}, c._getItemStyleCache = void 0, c._getItemStyleCache = dt(function(b, _, P) {
|
|
1380
1380
|
return {};
|
|
1381
1381
|
}), c._onScroll = function(b) {
|
|
1382
|
-
var _ = b.currentTarget, P = _.clientHeight, E = _.clientWidth, x = _.scrollLeft, R = _.scrollTop, D = _.scrollHeight,
|
|
1383
|
-
c.setState(function(
|
|
1384
|
-
if (
|
|
1382
|
+
var _ = b.currentTarget, P = _.clientHeight, E = _.clientWidth, x = _.scrollLeft, R = _.scrollTop, D = _.scrollHeight, A = _.scrollWidth;
|
|
1383
|
+
c.setState(function(z) {
|
|
1384
|
+
if (z.scrollLeft === x && z.scrollTop === R)
|
|
1385
1385
|
return null;
|
|
1386
1386
|
var L = c.props.direction, I = x;
|
|
1387
1387
|
if (L === "rtl")
|
|
@@ -1390,17 +1390,17 @@ function Vo(e) {
|
|
|
1390
1390
|
I = -x;
|
|
1391
1391
|
break;
|
|
1392
1392
|
case "positive-descending":
|
|
1393
|
-
I =
|
|
1393
|
+
I = A - E - x;
|
|
1394
1394
|
break;
|
|
1395
1395
|
}
|
|
1396
|
-
I = Math.max(0, Math.min(I,
|
|
1396
|
+
I = Math.max(0, Math.min(I, A - E));
|
|
1397
1397
|
var O = Math.max(0, Math.min(R, D - P));
|
|
1398
1398
|
return {
|
|
1399
1399
|
isScrolling: !0,
|
|
1400
|
-
horizontalScrollDirection:
|
|
1400
|
+
horizontalScrollDirection: z.scrollLeft < x ? "forward" : "backward",
|
|
1401
1401
|
scrollLeft: I,
|
|
1402
1402
|
scrollTop: O,
|
|
1403
|
-
verticalScrollDirection:
|
|
1403
|
+
verticalScrollDirection: z.scrollTop < R ? "forward" : "backward",
|
|
1404
1404
|
scrollUpdateWasRequested: !1
|
|
1405
1405
|
};
|
|
1406
1406
|
}, c._resetIsScrollingDebounced);
|
|
@@ -1433,9 +1433,9 @@ function Vo(e) {
|
|
|
1433
1433
|
};
|
|
1434
1434
|
}, this._resetIsScrollingDebounced);
|
|
1435
1435
|
}, f.scrollToItem = function(c) {
|
|
1436
|
-
var b = c.align, _ = b === void 0 ? "auto" : b, P = c.columnIndex, E = c.rowIndex, x = this.props, R = x.columnCount, D = x.height,
|
|
1437
|
-
P !== void 0 && (P = Math.max(0, Math.min(P, R - 1))), E !== void 0 && (E = Math.max(0, Math.min(E,
|
|
1438
|
-
var G = s(this.props, this._instanceProps), Z = l(this.props, this._instanceProps), j = Z >
|
|
1436
|
+
var b = c.align, _ = b === void 0 ? "auto" : b, P = c.columnIndex, E = c.rowIndex, x = this.props, R = x.columnCount, D = x.height, A = x.rowCount, z = x.width, L = this.state, I = L.scrollLeft, O = L.scrollTop, M = $o();
|
|
1437
|
+
P !== void 0 && (P = Math.max(0, Math.min(P, R - 1))), E !== void 0 && (E = Math.max(0, Math.min(E, A - 1)));
|
|
1438
|
+
var G = s(this.props, this._instanceProps), Z = l(this.props, this._instanceProps), j = Z > z ? M : 0, U = G > D ? M : 0;
|
|
1439
1439
|
this.scrollTo({
|
|
1440
1440
|
scrollLeft: P !== void 0 ? u(this.props, P, _, I, this._instanceProps, U) : I,
|
|
1441
1441
|
scrollTop: E !== void 0 ? h(this.props, E, _, O, this._instanceProps, j) : O
|
|
@@ -1472,17 +1472,17 @@ function Vo(e) {
|
|
|
1472
1472
|
}, f.componentWillUnmount = function() {
|
|
1473
1473
|
this._resetIsScrollingTimeoutId !== null && Zt(this._resetIsScrollingTimeoutId);
|
|
1474
1474
|
}, f.render = function() {
|
|
1475
|
-
var c = this.props, b = c.children, _ = c.className, P = c.columnCount, E = c.direction, x = c.height, R = c.innerRef, D = c.innerElementType,
|
|
1475
|
+
var c = this.props, b = c.children, _ = c.className, P = c.columnCount, E = c.direction, x = c.height, R = c.innerRef, D = c.innerElementType, A = c.innerTagName, z = c.itemData, L = c.itemKey, I = L === void 0 ? qo : L, O = c.outerElementType, M = c.outerTagName, G = c.rowCount, Z = c.style, j = c.useIsScrolling, U = c.width, Q = this.state.isScrolling, X = this._getHorizontalRangeToRender(), le = X[0], ae = X[1], de = this._getVerticalRangeToRender(), te = de[0], ze = de[1], Re = [];
|
|
1476
1476
|
if (P > 0 && G)
|
|
1477
|
-
for (var Te = te; Te <=
|
|
1477
|
+
for (var Te = te; Te <= ze; Te++)
|
|
1478
1478
|
for (var we = le; we <= ae; we++)
|
|
1479
1479
|
Re.push(Ue(b, {
|
|
1480
1480
|
columnIndex: we,
|
|
1481
|
-
data:
|
|
1481
|
+
data: z,
|
|
1482
1482
|
isScrolling: j ? Q : void 0,
|
|
1483
1483
|
key: I({
|
|
1484
1484
|
columnIndex: we,
|
|
1485
|
-
data:
|
|
1485
|
+
data: z,
|
|
1486
1486
|
rowIndex: Te
|
|
1487
1487
|
}),
|
|
1488
1488
|
rowIndex: Te,
|
|
@@ -1502,7 +1502,7 @@ function Vo(e) {
|
|
|
1502
1502
|
willChange: "transform",
|
|
1503
1503
|
direction: E
|
|
1504
1504
|
}, Z)
|
|
1505
|
-
}, Ue(D ||
|
|
1505
|
+
}, Ue(D || A || "div", {
|
|
1506
1506
|
children: Re,
|
|
1507
1507
|
ref: R,
|
|
1508
1508
|
style: {
|
|
@@ -1514,24 +1514,24 @@ function Vo(e) {
|
|
|
1514
1514
|
}, f._callPropsCallbacks = function() {
|
|
1515
1515
|
var c = this.props, b = c.columnCount, _ = c.onItemsRendered, P = c.onScroll, E = c.rowCount;
|
|
1516
1516
|
if (typeof _ == "function" && b > 0 && E > 0) {
|
|
1517
|
-
var x = this._getHorizontalRangeToRender(), R = x[0], D = x[1],
|
|
1518
|
-
this._callOnItemsRendered(R, D, I, O,
|
|
1517
|
+
var x = this._getHorizontalRangeToRender(), R = x[0], D = x[1], A = x[2], z = x[3], L = this._getVerticalRangeToRender(), I = L[0], O = L[1], M = L[2], G = L[3];
|
|
1518
|
+
this._callOnItemsRendered(R, D, I, O, A, z, M, G);
|
|
1519
1519
|
}
|
|
1520
1520
|
if (typeof P == "function") {
|
|
1521
1521
|
var Z = this.state, j = Z.horizontalScrollDirection, U = Z.scrollLeft, Q = Z.scrollTop, X = Z.scrollUpdateWasRequested, le = Z.verticalScrollDirection;
|
|
1522
1522
|
this._callOnScroll(U, Q, j, le, X);
|
|
1523
1523
|
}
|
|
1524
1524
|
}, f._getHorizontalRangeToRender = function() {
|
|
1525
|
-
var c = this.props, b = c.columnCount, _ = c.overscanColumnCount, P = c.overscanColumnsCount, E = c.overscanCount, x = c.rowCount, R = this.state, D = R.horizontalScrollDirection,
|
|
1525
|
+
var c = this.props, b = c.columnCount, _ = c.overscanColumnCount, P = c.overscanColumnsCount, E = c.overscanCount, x = c.rowCount, R = this.state, D = R.horizontalScrollDirection, A = R.isScrolling, z = R.scrollLeft, L = _ || P || E || 1;
|
|
1526
1526
|
if (b === 0 || x === 0)
|
|
1527
1527
|
return [0, 0, 0, 0];
|
|
1528
|
-
var I = o(this.props,
|
|
1528
|
+
var I = o(this.props, z, this._instanceProps), O = r(this.props, I, z, this._instanceProps), M = !A || D === "backward" ? Math.max(1, L) : 1, G = !A || D === "forward" ? Math.max(1, L) : 1;
|
|
1529
1529
|
return [Math.max(0, I - M), Math.max(0, Math.min(b - 1, O + G)), I, O];
|
|
1530
1530
|
}, f._getVerticalRangeToRender = function() {
|
|
1531
|
-
var c = this.props, b = c.columnCount, _ = c.overscanCount, P = c.overscanRowCount, E = c.overscanRowsCount, x = c.rowCount, R = this.state, D = R.isScrolling,
|
|
1531
|
+
var c = this.props, b = c.columnCount, _ = c.overscanCount, P = c.overscanRowCount, E = c.overscanRowsCount, x = c.rowCount, R = this.state, D = R.isScrolling, A = R.verticalScrollDirection, z = R.scrollTop, L = P || E || _ || 1;
|
|
1532
1532
|
if (b === 0 || x === 0)
|
|
1533
1533
|
return [0, 0, 0, 0];
|
|
1534
|
-
var I = p(this.props,
|
|
1534
|
+
var I = p(this.props, z, this._instanceProps), O = w(this.props, I, z, this._instanceProps), M = !D || A === "backward" ? Math.max(1, L) : 1, G = !D || A === "forward" ? Math.max(1, L) : 1;
|
|
1535
1535
|
return [Math.max(0, I - M), Math.max(0, Math.min(x - 1, O + G)), I, O];
|
|
1536
1536
|
}, d;
|
|
1537
1537
|
}(Jn), t.defaultProps = {
|
|
@@ -1709,7 +1709,7 @@ function Xo(e, t) {
|
|
|
1709
1709
|
return !Jt(n, r) && !Jt(o, a);
|
|
1710
1710
|
}
|
|
1711
1711
|
const Yo = () => {
|
|
1712
|
-
const { viewMode: e } =
|
|
1712
|
+
const { viewMode: e } = Ae(), { scrollMode: t } = De(), { setColumnCount: n } = dn(), { virtualScrollableElementRef: o } = et(), r = qe(), a = W(() => r.heights.length, [r.heights]), s = W(() => t === ee.HORIZONTAL_SCROLLING ? a : e === He.DUAL_PAGE ? 2 : 1, [e, t, t, a, o]), l = W(() => r.widths.reduce((T, y, C) => {
|
|
1713
1713
|
const S = C % s;
|
|
1714
1714
|
return (!T[S] || y > T[S]) && (T[S] = y), T;
|
|
1715
1715
|
}, []), [r.widths, s]), u = N(
|
|
@@ -2007,13 +2007,13 @@ const ei = ({ widths: e, heights: t }) => {
|
|
|
2007
2007
|
virtualScrollableElementRef: v,
|
|
2008
2008
|
totalInnerDimensions: p,
|
|
2009
2009
|
pageScrollElementRef: w
|
|
2010
|
-
} = et(), T = H(!0), { nextPage: y, prevPage: C, setFocusedPage: S, focusedPage: d } = ie(), { scrollMode: f } = De(), { viewMode: g } =
|
|
2010
|
+
} = et(), T = H(!0), { nextPage: y, prevPage: C, setFocusedPage: S, focusedPage: d } = ie(), { scrollMode: f } = De(), { viewMode: g } = Ae(), c = H(null), { loading: b } = J(), { passwordRequired: _ } = nr(), { LoaderImageComponent: P } = pn(), E = H(
|
|
2011
2011
|
p
|
|
2012
2012
|
), x = H({
|
|
2013
2013
|
viewMode: g,
|
|
2014
2014
|
scrollMode: f
|
|
2015
|
-
}), R = H(!1), D = H(), { isFullScreen:
|
|
2016
|
-
pageDimension:
|
|
2015
|
+
}), R = H(!1), D = H(), { isFullScreen: A } = sr(), {
|
|
2016
|
+
pageDimension: z,
|
|
2017
2017
|
rowCount: L,
|
|
2018
2018
|
rowHeight: I,
|
|
2019
2019
|
columnCount: O,
|
|
@@ -2029,14 +2029,14 @@ const ei = ({ widths: e, heights: t }) => {
|
|
|
2029
2029
|
Gr(o);
|
|
2030
2030
|
const { isPressed: X } = Hr(), { selectionMode: le } = ir(), { initializeGrabScroll: ae, resetGrabState: de } = $r({
|
|
2031
2031
|
isPressed: X
|
|
2032
|
-
}), te = W(() => le === tr.HAND, [le]),
|
|
2032
|
+
}), te = W(() => le === tr.HAND, [le]), ze = W(() => ({
|
|
2033
2033
|
columnCount: O
|
|
2034
2034
|
}), [O]), Re = N(
|
|
2035
2035
|
(q) => {
|
|
2036
2036
|
const V = document.activeElement !== o;
|
|
2037
|
-
!
|
|
2037
|
+
!A && V || (["ArrowUp", "ArrowLeft"].includes(q.key) ? (q.preventDefault(), C()) : ["ArrowDown", "ArrowRight"].includes(q.key) && (q.preventDefault(), y()));
|
|
2038
2038
|
},
|
|
2039
|
-
[y, C,
|
|
2039
|
+
[y, C, A, f]
|
|
2040
2040
|
);
|
|
2041
2041
|
k(() => (window.addEventListener("keydown", Re), () => {
|
|
2042
2042
|
window.removeEventListener("keydown", Re);
|
|
@@ -2049,7 +2049,7 @@ const ei = ({ widths: e, heights: t }) => {
|
|
|
2049
2049
|
rowIndex: q,
|
|
2050
2050
|
shouldForceUpdate: !0
|
|
2051
2051
|
});
|
|
2052
|
-
}, [L, O,
|
|
2052
|
+
}, [L, O, z, s]);
|
|
2053
2053
|
const Te = N(
|
|
2054
2054
|
(q, V) => {
|
|
2055
2055
|
if (!v)
|
|
@@ -2106,7 +2106,7 @@ const ei = ({ widths: e, heights: t }) => {
|
|
|
2106
2106
|
height: q,
|
|
2107
2107
|
width: V
|
|
2108
2108
|
});
|
|
2109
|
-
}, [
|
|
2109
|
+
}, [z, L, O, we]);
|
|
2110
2110
|
const nt = N(
|
|
2111
2111
|
(q) => {
|
|
2112
2112
|
Q.current = {
|
|
@@ -2160,7 +2160,7 @@ const ei = ({ widths: e, heights: t }) => {
|
|
|
2160
2160
|
Zo,
|
|
2161
2161
|
{
|
|
2162
2162
|
ref: l,
|
|
2163
|
-
itemData:
|
|
2163
|
+
itemData: ze,
|
|
2164
2164
|
outerRef: h,
|
|
2165
2165
|
innerRef: c,
|
|
2166
2166
|
onScroll: nt,
|
|
@@ -2447,20 +2447,20 @@ var ui = B.forwardRef(
|
|
|
2447
2447
|
] })
|
|
2448
2448
|
] });
|
|
2449
2449
|
}
|
|
2450
|
-
), Et = "DialogTitle",
|
|
2450
|
+
), Et = "DialogTitle", An = B.forwardRef(
|
|
2451
2451
|
(e, t) => {
|
|
2452
2452
|
const { __scopeDialog: n, ...o } = e, r = ce(Et, n);
|
|
2453
2453
|
return /* @__PURE__ */ i(Ve.h2, { id: r.titleId, ...o, ref: t });
|
|
2454
2454
|
}
|
|
2455
2455
|
);
|
|
2456
|
-
|
|
2457
|
-
var
|
|
2456
|
+
An.displayName = Et;
|
|
2457
|
+
var zn = "DialogDescription", hi = B.forwardRef(
|
|
2458
2458
|
(e, t) => {
|
|
2459
|
-
const { __scopeDialog: n, ...o } = e, r = ce(
|
|
2459
|
+
const { __scopeDialog: n, ...o } = e, r = ce(zn, n);
|
|
2460
2460
|
return /* @__PURE__ */ i(Ve.p, { id: r.descriptionId, ...o, ref: t });
|
|
2461
2461
|
}
|
|
2462
2462
|
);
|
|
2463
|
-
hi.displayName =
|
|
2463
|
+
hi.displayName = zn;
|
|
2464
2464
|
var Fn = "DialogClose", kn = B.forwardRef(
|
|
2465
2465
|
(e, t) => {
|
|
2466
2466
|
const { __scopeDialog: n, ...o } = e, r = ce(Fn, n);
|
|
@@ -2499,7 +2499,7 @@ For more information, see https://radix-ui.com/primitives/docs/components/${t.do
|
|
|
2499
2499
|
const r = (a = e.current) == null ? void 0 : a.getAttribute("aria-describedby");
|
|
2500
2500
|
t && r && (document.getElementById(t) || console.warn(o));
|
|
2501
2501
|
}, [o, e, t]), null;
|
|
2502
|
-
}, vi = In, wi = En, _i = Nn, bi = On, Ci =
|
|
2502
|
+
}, vi = In, wi = En, _i = Nn, bi = On, Ci = An, Ti = kn;
|
|
2503
2503
|
const xe = {
|
|
2504
2504
|
"rp-dialog-wrapper": "_rp-dialog-wrapper_slqo7_1",
|
|
2505
2505
|
"rp-dialog-overlay": "_rp-dialog-overlay_slqo7_7",
|
|
@@ -2609,7 +2609,7 @@ const xe = {
|
|
|
2609
2609
|
}, Di = () => {
|
|
2610
2610
|
const { goToLastPageIcon: e } = pe();
|
|
2611
2611
|
return e || /* @__PURE__ */ i(gn, {});
|
|
2612
|
-
}, rn = { width: "100%" },
|
|
2612
|
+
}, rn = { width: "100%" }, Ai = () => {
|
|
2613
2613
|
const { goToPage: e, totalPages: t, focusedPage: n } = ie(), { jumpNavigationTool: o = !0 } = ve(), { localeMessages: r } = se(), a = W(() => n === 1, [n]), s = W(() => n === t, [n, t]), l = N(() => {
|
|
2614
2614
|
e(1);
|
|
2615
2615
|
}, [e]), u = N(() => {
|
|
@@ -2626,7 +2626,7 @@ const xe = {
|
|
|
2626
2626
|
] }) }) }),
|
|
2627
2627
|
/* @__PURE__ */ i(yt, {})
|
|
2628
2628
|
] }) : null;
|
|
2629
|
-
},
|
|
2629
|
+
}, zi = () => {
|
|
2630
2630
|
const { container: e } = ge(), { isSmallScreen: t } = Ce(), {
|
|
2631
2631
|
openFileTool: n,
|
|
2632
2632
|
downloadTool: o,
|
|
@@ -2665,7 +2665,7 @@ const xe = {
|
|
|
2665
2665
|
/* @__PURE__ */ i(fn, {}),
|
|
2666
2666
|
/* @__PURE__ */ i(yt, {})
|
|
2667
2667
|
] }),
|
|
2668
|
-
/* @__PURE__ */ i(
|
|
2668
|
+
/* @__PURE__ */ i(Ai, {}),
|
|
2669
2669
|
/* @__PURE__ */ i(po, {}),
|
|
2670
2670
|
/* @__PURE__ */ i(vo, {}),
|
|
2671
2671
|
/* @__PURE__ */ i(ho, {}),
|
|
@@ -2686,7 +2686,7 @@ const xe = {
|
|
|
2686
2686
|
/* @__PURE__ */ i(Bn, {}),
|
|
2687
2687
|
/* @__PURE__ */ i(fn, {})
|
|
2688
2688
|
] }),
|
|
2689
|
-
/* @__PURE__ */ i(
|
|
2689
|
+
/* @__PURE__ */ i(zi, {})
|
|
2690
2690
|
] });
|
|
2691
2691
|
}, Ee = {
|
|
2692
2692
|
"rp-zoom-wrapper": "_rp-zoom-wrapper_cocqs_1",
|
|
@@ -2701,7 +2701,7 @@ const xe = {
|
|
|
2701
2701
|
const { zoomOutIcon: e } = pe();
|
|
2702
2702
|
return e || /* @__PURE__ */ i(_o, {});
|
|
2703
2703
|
}, $i = () => {
|
|
2704
|
-
const { zoomLevel: e, setZoomLevel: t } = Qe(), { container: n, contentRef: o } = ge(), { zoomTool: r = !0 } = ve(), { focusedPage: a } = ie(), { rotate: s } = Ge(), { pages: l } = J(), { isSmallScreen: u } = Ce(), { localeMessages: h } = se(), { viewMode: m } =
|
|
2704
|
+
const { zoomLevel: e, setZoomLevel: t } = Qe(), { container: n, contentRef: o } = ge(), { zoomTool: r = !0 } = ve(), { focusedPage: a } = ie(), { rotate: s } = Ge(), { pages: l } = J(), { isSmallScreen: u } = Ce(), { localeMessages: h } = se(), { viewMode: m } = Ae(), v = N(() => {
|
|
2705
2705
|
t((d) => {
|
|
2706
2706
|
const f = Math.floor(d / 25) * 25;
|
|
2707
2707
|
return Math.min(f + 25, ft);
|
|
@@ -2849,7 +2849,7 @@ const xe = {
|
|
|
2849
2849
|
S(I.target.value);
|
|
2850
2850
|
}, []), x = N(() => {
|
|
2851
2851
|
S(""), h("");
|
|
2852
|
-
}, [h]), R = W(() => `${v} / ${m}`, [v, m]), { wholeWords: D, matchCase:
|
|
2852
|
+
}, [h]), R = W(() => `${v} / ${m}`, [v, m]), { wholeWords: D, matchCase: A } = W(() => s, [s]), z = N(
|
|
2853
2853
|
(I) => {
|
|
2854
2854
|
l((O) => ({ ...O, matchCase: I }));
|
|
2855
2855
|
},
|
|
@@ -2889,7 +2889,7 @@ const xe = {
|
|
|
2889
2889
|
] }),
|
|
2890
2890
|
/* @__PURE__ */ F("div", { className: Y["rp-search-tool-input-checkboxes"], children: [
|
|
2891
2891
|
f && /* @__PURE__ */ i(on, {}),
|
|
2892
|
-
/* @__PURE__ */ i($t, { name: "matchCase", value:
|
|
2892
|
+
/* @__PURE__ */ i($t, { name: "matchCase", value: A, onChange: z, children: d == null ? void 0 : d.searchMatchCaseLabel }),
|
|
2893
2893
|
!f && /* @__PURE__ */ i(K, { content: d == null ? void 0 : d.searchMatchCaseTooltip, children: /* @__PURE__ */ i("div", { className: Y["rp-search-icon-info"], tabIndex: 0, children: /* @__PURE__ */ i(Gt, {}) }) }),
|
|
2894
2894
|
/* @__PURE__ */ i($t, { name: "wholeWord", value: D, onChange: L, children: d == null ? void 0 : d.searchWholeWordsLabel }),
|
|
2895
2895
|
!f && /* @__PURE__ */ i(K, { content: d == null ? void 0 : d.searchWholeWordsTooltip, children: /* @__PURE__ */ i("div", { className: Y["rp-search-icon-info"], tabIndex: 0, children: /* @__PURE__ */ i(Gt, {}) }) })
|
|
@@ -3055,13 +3055,13 @@ const xe = {
|
|
|
3055
3055
|
}
|
|
3056
3056
|
) });
|
|
3057
3057
|
}, _e = {
|
|
3058
|
-
"rp-layout": "_rp-
|
|
3059
|
-
"rp-content": "_rp-
|
|
3060
|
-
"rp-pages": "_rp-
|
|
3061
|
-
"rp-container": "_rp-
|
|
3062
|
-
"rp-loader": "_rp-
|
|
3063
|
-
"rp-theme-variables": "_rp-theme-
|
|
3064
|
-
"rp-dark-mode": "_rp-dark-
|
|
3058
|
+
"rp-layout": "_rp-layout_1uujy_1",
|
|
3059
|
+
"rp-content": "_rp-content_1uujy_5",
|
|
3060
|
+
"rp-pages": "_rp-pages_1uujy_11",
|
|
3061
|
+
"rp-container": "_rp-container_1uujy_16",
|
|
3062
|
+
"rp-loader": "_rp-loader_1uujy_52",
|
|
3063
|
+
"rp-theme-variables": "_rp-theme-variables_1uujy_56",
|
|
3064
|
+
"rp-dark-mode": "_rp-dark-mode_1uujy_162"
|
|
3065
3065
|
}, Ji = $e(
|
|
3066
3066
|
(e, t) => {
|
|
3067
3067
|
const { children: n, toolbarRef: o, style: r, className: a } = e, { customVariables: s, customDarkVariables: l } = Pr(), { darkMode: u } = rr();
|
|
@@ -3153,8 +3153,8 @@ export {
|
|
|
3153
3153
|
Yi as J,
|
|
3154
3154
|
Ji as K,
|
|
3155
3155
|
Vi as L,
|
|
3156
|
-
|
|
3157
|
-
|
|
3156
|
+
Ai as M,
|
|
3157
|
+
zi as O,
|
|
3158
3158
|
Ms as P,
|
|
3159
3159
|
qs as R,
|
|
3160
3160
|
Gs as S,
|
|
@@ -3176,7 +3176,7 @@ export {
|
|
|
3176
3176
|
xo as n,
|
|
3177
3177
|
Tn as o,
|
|
3178
3178
|
Eo as p,
|
|
3179
|
-
|
|
3179
|
+
zo as q,
|
|
3180
3180
|
It as r,
|
|
3181
3181
|
Yo as s,
|
|
3182
3182
|
ti as t,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
._rp-password-
|
|
1
|
+
._rp-password-overlay_crzbn_1{position:absolute;top:0;left:0;width:100%;height:100%;display:flex;justify-content:center;align-items:center;z-index:100}._rp-password-modal_crzbn_13{background:var(--rp-password-background-color);padding:24px;margin-left:10px;margin-right:10px;max-width:360px;display:flex;flex-direction:column;justify-content:start;border-radius:8px;box-shadow:0 2px 12px #00000026;border:1px solid var(--rp-password-border-color)}._rp-password-title_crzbn_27{font-family:var(--rp-font-family);margin-bottom:16px;font-size:16px;font-weight:500;color:var(--rp-password-title-font-color)}._rp-password-content_crzbn_35{font-size:14px;font-family:var(--rp-font-family);color:var(--rp-password-content-font-color)}._rp-password-form_crzbn_41{margin-top:32px}._rp-password-input_crzbn_45{height:32px;width:100%;padding:7.5px;font-size:14px;border:1px solid var(--rp-password-input-border-color);border-radius:8px;box-sizing:border-box;background-color:var(--rp-password-background-color);caret-color:var(--rp-password-input-color);color:var(--rp-password-input-font-color)}._rp-password-input_crzbn_45::placeholder{color:var(--rp-password-input-placeholder-color)}._rp-password-input-invalid_crzbn_62{border-color:#ff2f61}._rp-password-message-invalid_crzbn_66{color:#ff2f61;margin-top:4px;height:20px}._rp-password-submit-button_crzbn_72{display:flex;align-items:center;justify-content:center;text-align:center;width:100%;height:35px;padding:8px;margin-top:8px;border-radius:8px;background-color:var(--rp-password-button-background-color);color:var(--rp-password-button-font-color);cursor:pointer;font-family:var(--rp-font-family);transition:background-color .2s;border:1px solid var(--rp-password-button-border-color)}
|