@react-pdf-kit/viewer 2.7.0-rc.0 → 2.7.0-rc.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/Input-DGJSVFE8.js +39 -0
- package/dist/{LoadingIndicator-MWrbKa6X.js → LoadingIndicator-DiWoWs4Y.js} +3 -3
- package/dist/{PasswordModal-BDHdSpxf.js → PasswordModal-CA6x2l7v.js} +38 -27
- package/dist/{RPDropFileZone-BunRfzst.js → RPDropFileZone-D1C3ouep.js} +3 -3
- package/dist/{RPPages-V5CNUXFD.js → RPPages-CQsmCbyj.js} +1 -1
- package/dist/assets/Input.css +1 -1
- package/dist/assets/PasswordModal.css +1 -1
- package/dist/assets/style.js +1 -1
- package/dist/components/RPController.js +12 -12
- package/dist/components/RPDropFileZone.js +1 -1
- package/dist/components/RPPages.js +1 -1
- package/dist/components/RPProvider.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 +4 -4
- package/dist/components/layout/toolbar/DarkModeTool.js +4 -4
- package/dist/components/layout/toolbar/DocumentProperties.js +4 -4
- package/dist/components/layout/toolbar/FileDownloadTool.js +4 -4
- package/dist/components/layout/toolbar/FileUploadTool.js +5 -5
- package/dist/components/layout/toolbar/FullScreenTool.js +4 -4
- package/dist/components/layout/toolbar/MostPageTool.js +4 -4
- package/dist/components/layout/toolbar/OtherTool.js +4 -4
- package/dist/components/layout/toolbar/Paginate.js +6 -5
- package/dist/components/layout/toolbar/PrintTool.js +5 -5
- package/dist/components/layout/toolbar/RPToolbar.js +1 -1
- package/dist/components/layout/toolbar/RotateTool.js +4 -4
- package/dist/components/layout/toolbar/ScrollModeTool.js +4 -4
- package/dist/components/layout/toolbar/SearchResultNavigator.js +3 -3
- package/dist/components/layout/toolbar/SearchTool.js +7 -6
- package/dist/components/layout/toolbar/SelectionModeTool.js +4 -4
- package/dist/components/layout/toolbar/ThumbnailTool.js +4 -4
- package/dist/components/layout/toolbar/ToolbarCustom.js +1 -1
- package/dist/components/layout/toolbar/ToolbarDefault.js +1 -1
- package/dist/components/layout/toolbar/ViewModeTool.js +4 -4
- package/dist/components/layout/toolbar/ZoomTool.js +4 -4
- package/dist/components/layout/toolbar/tools/FileUploadTool.js +3 -3
- package/dist/components/layout/toolbar/tools/InputPageTool.js +2 -1
- package/dist/components/layout/toolbar/tools/PrintTool.js +3 -3
- package/dist/components/layout/toolbar/tools/ThumbnailTool.js +3 -3
- package/dist/components/layout/toolbar/tools/more-options/FileUploadTool.js +3 -3
- package/dist/components/layout/toolbar/tools/more-options/PrintTool.js +3 -3
- package/dist/components/ui/Input.js +1 -1
- package/dist/components/ui/LoadingIndicator.js +1 -1
- package/dist/components/ui/PasswordModal.js +1 -1
- package/dist/contexts/FileInputContext.js +16 -12
- package/dist/main.js +1 -1
- package/dist/style-DKH7g1Kh.js +5 -0
- package/dist/types/components/ui/Input.d.ts +1 -0
- package/dist/utils/hooks/useLicense.js +1 -1
- package/package.json +1 -1
- package/dist/Input-Bb_-ljl1.js +0 -31
- package/dist/style-9n_QpMZt.js +0 -5
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { t as e } from "./clsx-B7LyVm5O.js";
|
|
2
|
+
import { withRef as t } from "./utils/withRef.js";
|
|
3
|
+
import { useId as n } from "react";
|
|
4
|
+
import { jsx as r, jsxs as i } from "react/jsx-runtime";
|
|
5
|
+
import './assets/Input.css';//#region lib/components/ui/Input.module.css
|
|
6
|
+
var a = {
|
|
7
|
+
"rp-input": "_rp-input_d52xg_1",
|
|
8
|
+
"rp-input-wrapper": "_rp-input-wrapper_d52xg_28",
|
|
9
|
+
"rp-input-label": "_rp-input-label_d52xg_32",
|
|
10
|
+
"rp-input-icon": "_rp-input-icon_d52xg_44"
|
|
11
|
+
}, o = t((t, o) => {
|
|
12
|
+
let { className: s, icon: c, children: l, id: u, label: d, ...f } = t, p = n(), m = u || p, h = f.role || (f.type === "text" || !f.type ? "textbox" : void 0);
|
|
13
|
+
return /* @__PURE__ */ i("div", {
|
|
14
|
+
className: a["rp-input-wrapper"],
|
|
15
|
+
children: [
|
|
16
|
+
d ? /* @__PURE__ */ r("label", {
|
|
17
|
+
htmlFor: m,
|
|
18
|
+
className: a["rp-input-label"],
|
|
19
|
+
children: d
|
|
20
|
+
}) : null,
|
|
21
|
+
/* @__PURE__ */ r("input", {
|
|
22
|
+
...f,
|
|
23
|
+
id: m,
|
|
24
|
+
role: h,
|
|
25
|
+
"data-icon": !!c,
|
|
26
|
+
ref: o,
|
|
27
|
+
className: e(s, a["rp-input"], "ignore-hover")
|
|
28
|
+
}),
|
|
29
|
+
c && /* @__PURE__ */ r("span", {
|
|
30
|
+
className: a["rp-input-icon"],
|
|
31
|
+
"aria-hidden": "true",
|
|
32
|
+
children: c
|
|
33
|
+
}),
|
|
34
|
+
l
|
|
35
|
+
]
|
|
36
|
+
});
|
|
37
|
+
});
|
|
38
|
+
//#endregion
|
|
39
|
+
export { o as t };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { useLocalizationContext as e } from "./contexts/LocalizationContext.js";
|
|
2
|
+
import { usePrintContext as t } from "./contexts/PrintContext.js";
|
|
3
3
|
import { t as n } from "./clsx-B7LyVm5O.js";
|
|
4
4
|
import { jsx as r, jsxs as i } from "react/jsx-runtime";
|
|
5
5
|
import './assets/LoadingIndicator.css';var a = {
|
|
@@ -11,7 +11,7 @@ import './assets/LoadingIndicator.css';var a = {
|
|
|
11
11
|
"rp-loading-cancel-button": "_rp-loading-cancel-button_wazy2_55",
|
|
12
12
|
loading: "_loading_wazy2_1"
|
|
13
13
|
}, o = ({ percentage: o }) => {
|
|
14
|
-
let { cancel: s } =
|
|
14
|
+
let { cancel: s } = t(), { localeMessages: c } = e();
|
|
15
15
|
return o < 1 ? null : /* @__PURE__ */ r("div", {
|
|
16
16
|
className: n(a["rp-loading-overlay"]),
|
|
17
17
|
children: /* @__PURE__ */ i("div", {
|
|
@@ -5,15 +5,16 @@ import { useState as r } from "react";
|
|
|
5
5
|
import { jsx as i, jsxs as a } from "react/jsx-runtime";
|
|
6
6
|
import './assets/PasswordModal.css';//#region lib/components/ui/PasswordModal.module.css
|
|
7
7
|
var o = {
|
|
8
|
-
"rp-password-overlay": "_rp-password-
|
|
9
|
-
"rp-password-modal": "_rp-password-
|
|
10
|
-
"rp-password-title": "_rp-password-
|
|
11
|
-
"rp-password-content": "_rp-password-
|
|
12
|
-
"rp-password-form": "_rp-password-
|
|
13
|
-
"rp-password-
|
|
14
|
-
"rp-password-input
|
|
15
|
-
"rp-password-
|
|
16
|
-
"rp-password-
|
|
8
|
+
"rp-password-overlay": "_rp-password-overlay_1cd0u_1",
|
|
9
|
+
"rp-password-modal": "_rp-password-modal_1cd0u_13",
|
|
10
|
+
"rp-password-title": "_rp-password-title_1cd0u_27",
|
|
11
|
+
"rp-password-content": "_rp-password-content_1cd0u_35",
|
|
12
|
+
"rp-password-form": "_rp-password-form_1cd0u_41",
|
|
13
|
+
"rp-password-label": "_rp-password-label_1cd0u_45",
|
|
14
|
+
"rp-password-input": "_rp-password-input_1cd0u_57",
|
|
15
|
+
"rp-password-input-invalid": "_rp-password-input-invalid_1cd0u_74",
|
|
16
|
+
"rp-password-message-invalid": "_rp-password-message-invalid_1cd0u_78",
|
|
17
|
+
"rp-password-submit-button": "_rp-password-submit-button_1cd0u_84"
|
|
17
18
|
}, s = () => {
|
|
18
19
|
let [s, c] = r(""), { localeMessages: l } = t(), { setPassword: u, setPasswordError: d, invalidPassword: f } = e(), p = (e) => {
|
|
19
20
|
c(e.target.value), f && d(void 0);
|
|
@@ -34,6 +35,7 @@ var o = {
|
|
|
34
35
|
children: l?.passwordModalTitle
|
|
35
36
|
}),
|
|
36
37
|
/* @__PURE__ */ i("div", {
|
|
38
|
+
id: "password-modal-message",
|
|
37
39
|
className: n(o["rp-password-content"]),
|
|
38
40
|
children: l?.passwordModalMessage
|
|
39
41
|
}),
|
|
@@ -41,24 +43,33 @@ var o = {
|
|
|
41
43
|
onSubmit: m,
|
|
42
44
|
children: [/* @__PURE__ */ a("div", {
|
|
43
45
|
className: n(o["rp-password-form"]),
|
|
44
|
-
children: [
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
46
|
+
children: [
|
|
47
|
+
/* @__PURE__ */ i("label", {
|
|
48
|
+
htmlFor: "rp-password-input",
|
|
49
|
+
className: o["rp-password-label"],
|
|
50
|
+
children: l?.passwordPlaceholder || "Password"
|
|
51
|
+
}),
|
|
52
|
+
/* @__PURE__ */ i("input", {
|
|
53
|
+
type: "password",
|
|
54
|
+
id: "rp-password-input",
|
|
55
|
+
name: "rp-password-input",
|
|
56
|
+
value: s,
|
|
57
|
+
onChange: p,
|
|
58
|
+
className: n(o["rp-password-input"], f && o["rp-password-input-invalid"]),
|
|
59
|
+
placeholder: l?.passwordPlaceholder,
|
|
60
|
+
autoComplete: "off",
|
|
61
|
+
"aria-required": "true",
|
|
62
|
+
"aria-invalid": f,
|
|
63
|
+
"aria-describedby": f ? "password-modal-message password-error" : "password-modal-message"
|
|
64
|
+
}),
|
|
65
|
+
/* @__PURE__ */ i("div", {
|
|
66
|
+
id: "password-error",
|
|
67
|
+
className: n(o["rp-password-message-invalid"]),
|
|
68
|
+
role: "alert",
|
|
69
|
+
"aria-live": "polite",
|
|
70
|
+
children: f && /* @__PURE__ */ i("span", { children: l?.passwordError })
|
|
71
|
+
})
|
|
72
|
+
]
|
|
62
73
|
}), /* @__PURE__ */ i("button", {
|
|
63
74
|
type: "submit",
|
|
64
75
|
disabled: h,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { useDarkModeContext as e } from "./contexts/DarkModeContext.js";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
2
|
+
import { useLocalizationContext as t } from "./contexts/LocalizationContext.js";
|
|
3
|
+
import { useDropFileZoneContext as n } from "./contexts/DropFileZoneContext.js";
|
|
4
4
|
import { t as r } from "./clsx-B7LyVm5O.js";
|
|
5
5
|
import { t as i } from "./LightPdfIcon-DL8MYtWQ.js";
|
|
6
6
|
import { t as a } from "./DarkPdfIcon-B5ehd9CV.js";
|
|
@@ -12,7 +12,7 @@ var d = {
|
|
|
12
12
|
"rp-drop-zone": "_rp-drop-zone_1sc50_1",
|
|
13
13
|
"rp-drop-zone-transparent": "_rp-drop-zone-transparent_1sc50_15"
|
|
14
14
|
}, f = {}, p = () => {
|
|
15
|
-
let { dragging: p, handleDragLeave: m, handleDrop: h } =
|
|
15
|
+
let { dragging: p, handleDragLeave: m, handleDrop: h } = n(), { darkMode: g } = e(), { localeMessages: _ } = t(), { DropFileZoneLayout: v, DropFileZoneTool: y, DropFileZoneToolbar: b } = o(), x = [
|
|
16
16
|
v,
|
|
17
17
|
y,
|
|
18
18
|
b
|
|
@@ -22,7 +22,7 @@ import { SinglePage as ie } from "./components/page/SinglePage.js";
|
|
|
22
22
|
import { useMousePressed as ae } from "./utils/hooks/useMousePressed.js";
|
|
23
23
|
import { useGrabScroll as oe } from "./utils/hooks/useGrabScroll.js";
|
|
24
24
|
import { usePinch as se } from "./utils/hooks/usePinch.js";
|
|
25
|
-
import { t as b } from "./PasswordModal-
|
|
25
|
+
import { t as b } from "./PasswordModal-CA6x2l7v.js";
|
|
26
26
|
import { usePresentPage as x } from "./utils/hooks/usePresentPage.js";
|
|
27
27
|
import { LayoutContainer as ce } from "./components/layout/LayoutContainer.js";
|
|
28
28
|
import { LayoutWrapper as le } from "./components/layout/LayoutWrapper.js";
|
package/dist/assets/Input.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
._rp-
|
|
1
|
+
._rp-input_d52xg_1{font-family:var(--rp-font-family);border-width:1px;border-color:var(--rp-input-border-color,transparent);border-radius:var(--rp-input-border-radius);height:2rem;color:var(--rp-text-color);background:var(--rp-input-background-color);padding:var(--rp-input-padding);box-sizing:border-box;border-style:solid;outline:none}._rp-input_d52xg_1::placeholder{color:var(--rp-input-placeholder-color)}._rp-input_d52xg_1[data-icon=true]{padding-left:calc(1rem + 14px)}._rp-input_d52xg_1:focus,._rp-input_d52xg_1:focus-visible{border-color:var(--rp-outline-color,var(--rp-primary-color))}._rp-input-wrapper_d52xg_28{position:relative}._rp-input-label_d52xg_32{clip:rect(0, 0, 0, 0);white-space:nowrap;border:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}._rp-input-icon_d52xg_44{color:var(--rp-input-placeholder-color);justify-content:center;align-items:center;padding-left:.5rem;padding-right:.5rem;display:flex;position:absolute;top:0;bottom:0}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
._rp-password-
|
|
1
|
+
._rp-password-overlay_1cd0u_1{z-index:100;justify-content:center;align-items:center;width:100%;height:100%;display:flex;position:absolute;top:0;left:0}._rp-password-modal_1cd0u_13{background:var(--rp-password-background-color);border:1px solid var(--rp-password-border-color);border-radius:8px;flex-direction:column;justify-content:start;max-width:360px;margin-left:10px;margin-right:10px;padding:24px;display:flex;box-shadow:0 2px 12px #00000026}._rp-password-title_1cd0u_27{font-family:var(--rp-font-family);color:var(--rp-password-title-font-color);margin-bottom:16px;font-size:16px;font-weight:500}._rp-password-content_1cd0u_35{font-size:14px;font-family:var(--rp-font-family);color:var(--rp-password-content-font-color)}._rp-password-form_1cd0u_41{margin-top:32px}._rp-password-label_1cd0u_45{clip:rect(0, 0, 0, 0);white-space:nowrap;border:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}._rp-password-input_1cd0u_57{border:1px solid var(--rp-password-input-border-color);border-radius:var(--rp-input-border-radius);box-sizing:border-box;background-color:var(--rp-password-background-color);width:100%;height:32px;caret-color:var(--rp-password-input-color);color:var(--rp-password-input-font-color);padding:7.5px;font-size:14px}._rp-password-input_1cd0u_57::placeholder{color:var(--rp-password-input-placeholder-color)}._rp-password-input-invalid_1cd0u_74{border-color:#ff2f61}._rp-password-message-invalid_1cd0u_78{color:#ff2f61;height:20px;margin-top:4px}._rp-password-submit-button_1cd0u_84{text-align:center;border-radius:var(--rp-password-button-border-radius);background-color:var(--rp-password-button-background-color);width:100%;height:35px;color:var(--rp-password-button-font-color);cursor:pointer;font-family:var(--rp-font-family);border:1px solid var(--rp-password-button-border-color);justify-content:center;align-items:center;margin-top:8px;padding:8px;transition:background-color .2s;display:flex}
|
package/dist/assets/style.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as e } from "../style-
|
|
1
|
+
import { t as e } from "../style-DKH7g1Kh.js";
|
|
2
2
|
export { e as combinedCSS };
|
|
@@ -16,12 +16,12 @@ import { DarkModeProvider as h } from "../contexts/DarkModeContext.js";
|
|
|
16
16
|
import { LayerProvider as g } from "../contexts/LayerContext.js";
|
|
17
17
|
import { SelectionModeProvider as _ } from "../contexts/SelectionModeContext.js";
|
|
18
18
|
import { FullScreenProvider as v } from "../contexts/FullScreenContext.js";
|
|
19
|
-
import {
|
|
20
|
-
import {
|
|
21
|
-
import {
|
|
22
|
-
import {
|
|
23
|
-
import {
|
|
24
|
-
import {
|
|
19
|
+
import { LocalizationProvider as y } from "../contexts/LocalizationContext.js";
|
|
20
|
+
import { FileInputProvider as b } from "../contexts/FileInputContext.js";
|
|
21
|
+
import { PrintProvider as x } from "../contexts/PrintContext.js";
|
|
22
|
+
import { DropFileZoneProvider as S } from "../contexts/DropFileZoneContext.js";
|
|
23
|
+
import { ThumbnailProvider as C } from "../contexts/ThumbnailsContext.js";
|
|
24
|
+
import { SearchProvider as w } from "../contexts/SearchContext.js";
|
|
25
25
|
import { HighlightProvider as T } from "../contexts/HighlightContext.js";
|
|
26
26
|
import { t as E } from "../useWatermark-CvAAf66v.js";
|
|
27
27
|
import { DownloadProvider as D } from "../contexts/DownloadContext.js";
|
|
@@ -42,7 +42,7 @@ var M = (M) => {
|
|
|
42
42
|
interactiveForm: J,
|
|
43
43
|
children: /* @__PURE__ */ j(p, {
|
|
44
44
|
scrollBehavior: Y,
|
|
45
|
-
children: /* @__PURE__ */ j(
|
|
45
|
+
children: /* @__PURE__ */ j(y, {
|
|
46
46
|
locale: W,
|
|
47
47
|
localization: G,
|
|
48
48
|
children: /* @__PURE__ */ j(o, { children: /* @__PURE__ */ j(ee, { children: /* @__PURE__ */ j(a, { children: /* @__PURE__ */ j(i, { children: /* @__PURE__ */ j(_, {
|
|
@@ -61,15 +61,15 @@ var M = (M) => {
|
|
|
61
61
|
children: /* @__PURE__ */ j(l, { children: /* @__PURE__ */ j(u, { children: /* @__PURE__ */ j(f, { children: /* @__PURE__ */ j(m, { children: /* @__PURE__ */ j(h, {
|
|
62
62
|
darkMode: P,
|
|
63
63
|
onDarkModeChange: F,
|
|
64
|
-
children: /* @__PURE__ */ j(
|
|
64
|
+
children: /* @__PURE__ */ j(w, {
|
|
65
65
|
initialSearch: V,
|
|
66
|
-
children: /* @__PURE__ */ j(T, { children: /* @__PURE__ */ j(O, { children: /* @__PURE__ */ j(k, { children: /* @__PURE__ */ j(
|
|
66
|
+
children: /* @__PURE__ */ j(T, { children: /* @__PURE__ */ j(O, { children: /* @__PURE__ */ j(k, { children: /* @__PURE__ */ j(C, {
|
|
67
67
|
initialThumbnailsVisible: B,
|
|
68
|
-
children: /* @__PURE__ */ j(te, { children: /* @__PURE__ */ j(
|
|
68
|
+
children: /* @__PURE__ */ j(te, { children: /* @__PURE__ */ j(S, { children: /* @__PURE__ */ j(v, {
|
|
69
69
|
elementRef: Q,
|
|
70
|
-
children: /* @__PURE__ */ j(
|
|
70
|
+
children: /* @__PURE__ */ j(x, { children: /* @__PURE__ */ j(D, {
|
|
71
71
|
downloadFilename: K,
|
|
72
|
-
children: /* @__PURE__ */ j(
|
|
72
|
+
children: /* @__PURE__ */ j(b, { children: N })
|
|
73
73
|
}) })
|
|
74
74
|
}) }) })
|
|
75
75
|
}) }) }) })
|
|
@@ -8,7 +8,7 @@ import { LoaderProvider as a } from "../contexts/LoaderContext.js";
|
|
|
8
8
|
import { IconToolProvider as o } from "../contexts/IconToolContext.js";
|
|
9
9
|
import { OtherToolProvider as s } from "../contexts/OtherToolContext.js";
|
|
10
10
|
import { useFlickerSelectText as c } from "../utils/hooks/useFlickerSelectText.js";
|
|
11
|
-
import { t as l } from "../style-
|
|
11
|
+
import { t as l } from "../style-DKH7g1Kh.js";
|
|
12
12
|
import { injectGlobalCSS as u } from "../libInjectCss.js";
|
|
13
13
|
import { injectPrintCSS as d } from "../utils/injectPrintCSS.js";
|
|
14
14
|
import { useEffect as f, useMemo as p, useRef as m } from "react";
|
|
@@ -11,7 +11,7 @@ import { RPToolbar as c } from "./toolbar/RPToolbar.js";
|
|
|
11
11
|
import { RPSidebar as l } from "./sidebar/RPSidebar.js";
|
|
12
12
|
import { t as u } from "../../Container-DTWaZzc7.js";
|
|
13
13
|
import { t as d } from "../../WrapperLayout-Dcd9l9xH.js";
|
|
14
|
-
import { t as f } from "../../RPDropFileZone-
|
|
14
|
+
import { t as f } from "../../RPDropFileZone-D1C3ouep.js";
|
|
15
15
|
import { t as p } from "../../SkipLink-Bvbn3miT.js";
|
|
16
16
|
import { forwardRef as m, useEffect as h, useState as g } from "react";
|
|
17
17
|
import { jsx as _, jsxs as v } from "react/jsx-runtime";
|
|
@@ -7,7 +7,7 @@ import { LayoutContainer as i } from "./LayoutContainer.js";
|
|
|
7
7
|
import { ViewportProvider as a } from "../../contexts/ViewportContext.js";
|
|
8
8
|
import { t as o } from "../../Container-DTWaZzc7.js";
|
|
9
9
|
import { t as s } from "../../WrapperLayout-Dcd9l9xH.js";
|
|
10
|
-
import { t as c } from "../../RPDropFileZone-
|
|
10
|
+
import { t as c } from "../../RPDropFileZone-D1C3ouep.js";
|
|
11
11
|
import { LayoutDropFileZoneProvider as l } from "../../contexts/LayoutDropFileZoneContext.js";
|
|
12
12
|
import { t as u } from "../../SkipLink-Bvbn3miT.js";
|
|
13
13
|
import { ToolbarLayout as d } from "./toolbar/ToolbarLayout.js";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import "../../../utils/constants.js";
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
3
|
+
import { useLocalizationContext as e } from "../../../contexts/LocalizationContext.js";
|
|
4
|
+
import { useToolbarComponentContext as t } from "../../../contexts/ToolbarComponentContext.js";
|
|
5
|
+
import { useThumbnailContext as n } from "../../../contexts/ThumbnailsContext.js";
|
|
6
6
|
import { useIconToolContext as r } from "../../../contexts/IconToolContext.js";
|
|
7
7
|
import { t as i } from "../../../Button-jStpvb3T.js";
|
|
8
8
|
import { useIconContext as a } from "../../../contexts/IconContext.js";
|
|
@@ -17,7 +17,7 @@ var v = () => {
|
|
|
17
17
|
let { thumbnailIcon: e } = a(), { thumbnailIcon: t } = r();
|
|
18
18
|
return e || t || /* @__PURE__ */ g(s, {});
|
|
19
19
|
}, y = () => {
|
|
20
|
-
let { active: r, setActive: a } =
|
|
20
|
+
let { active: r, setActive: a } = n(), [s, y] = m(200), b = p(null), x = p(null), { thumbnailTool: S, sidebarEnable: C } = t(), { localeMessages: w } = e(), T = d(() => {
|
|
21
21
|
a((e) => !e);
|
|
22
22
|
}, []), E = f(() => typeof S != "boolean" && S ? /* @__PURE__ */ g(S, {
|
|
23
23
|
onClick: T,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { useDarkModeContext as e } from "../../../contexts/DarkModeContext.js";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
2
|
+
import { useLocalizationContext as t } from "../../../contexts/LocalizationContext.js";
|
|
3
|
+
import { useToolbarComponentContext as n } from "../../../contexts/ToolbarComponentContext.js";
|
|
4
|
+
import { useToolComponentContext as r } from "../../../contexts/ToolComponentContext.js";
|
|
5
5
|
import { useIconToolContext as i } from "../../../contexts/IconToolContext.js";
|
|
6
6
|
import { t as a } from "../../../Button-jStpvb3T.js";
|
|
7
7
|
import { useIconContext as o } from "../../../contexts/IconContext.js";
|
|
@@ -18,7 +18,7 @@ var f = () => {
|
|
|
18
18
|
let { darkModeIcon: e } = o(), { darkModeIcon: t } = i();
|
|
19
19
|
return e || t || /* @__PURE__ */ d(l, {});
|
|
20
20
|
}, m = () => {
|
|
21
|
-
let { darkMode: i, setDarkMode: o } = e(), { themeSwitcher: c = !0 } =
|
|
21
|
+
let { darkMode: i, setDarkMode: o } = e(), { themeSwitcher: c = !0 } = n(), { themeSwitcher: l = !0 } = r(), { localeMessages: m } = t(), h = i ? m?.themeEnableLightTooltip : m?.themeEnableDarkTooltip, g = u(() => {
|
|
22
22
|
o((e) => !e);
|
|
23
23
|
}, [o]);
|
|
24
24
|
return !c || !l ? null : typeof c == "function" ? /* @__PURE__ */ d(s, {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
1
|
+
import { useLocalizationContext as e } from "../../../contexts/LocalizationContext.js";
|
|
2
|
+
import { useToolbarComponentContext as t } from "../../../contexts/ToolbarComponentContext.js";
|
|
3
|
+
import { useToolComponentContext as n } from "../../../contexts/ToolComponentContext.js";
|
|
4
4
|
import { useIconToolContext as r } from "../../../contexts/IconToolContext.js";
|
|
5
5
|
import { useOtherToolContext as i } from "../../../contexts/OtherToolContext.js";
|
|
6
6
|
import { useIconContext as a } from "../../../contexts/IconContext.js";
|
|
@@ -14,7 +14,7 @@ var p = () => {
|
|
|
14
14
|
let { documentPropertiesIcon: e } = a(), { documentPropertiesIcon: t } = r();
|
|
15
15
|
return e || t || /* @__PURE__ */ d(c, {});
|
|
16
16
|
}, m = () => {
|
|
17
|
-
let { setActiveDocumentProperties: r } = i(), { documentProperties: a = !0 } =
|
|
17
|
+
let { setActiveDocumentProperties: r } = i(), { documentProperties: a = !0 } = t(), { documentProperties: c = !0, scrollModeTool: m } = n(), { localeMessages: h } = e();
|
|
18
18
|
return !a || !c ? null : /* @__PURE__ */ f(u, { children: [m && /* @__PURE__ */ d(l, {}), /* @__PURE__ */ d(s, {
|
|
19
19
|
onClick: () => r((e) => !e),
|
|
20
20
|
children: /* @__PURE__ */ f(o, {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
1
|
+
import { useLocalizationContext as e } from "../../../contexts/LocalizationContext.js";
|
|
2
|
+
import { useToolbarComponentContext as t } from "../../../contexts/ToolbarComponentContext.js";
|
|
3
|
+
import { useToolComponentContext as n } from "../../../contexts/ToolComponentContext.js";
|
|
4
4
|
import { useIconToolContext as r } from "../../../contexts/IconToolContext.js";
|
|
5
5
|
import { useFileDownload as i } from "../../../utils/hooks/useFileDownload.js";
|
|
6
6
|
import { t as a } from "../../../Button-jStpvb3T.js";
|
|
@@ -36,7 +36,7 @@ var p = () => {
|
|
|
36
36
|
}), t?.downloadFileLabel]
|
|
37
37
|
})
|
|
38
38
|
}), _ = () => {
|
|
39
|
-
let { download: r } = i(), { downloadTool: a = !0 } =
|
|
39
|
+
let { download: r } = i(), { downloadTool: a = !0 } = t(), { downloadTool: o = !0 } = n(), { isSmallScreen: l } = s(), { localeMessages: u } = e(), f = u?.downloadFileTooltip;
|
|
40
40
|
return !a || !o ? null : l ? /* @__PURE__ */ d(g, {
|
|
41
41
|
download: r,
|
|
42
42
|
localeMessages: u
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
1
|
+
import { useLocalizationContext as e } from "../../../contexts/LocalizationContext.js";
|
|
2
|
+
import { useOpenFileContext as t } from "../../../contexts/FileInputContext.js";
|
|
3
|
+
import { useToolbarComponentContext as n } from "../../../contexts/ToolbarComponentContext.js";
|
|
4
|
+
import { useToolComponentContext as r } from "../../../contexts/ToolComponentContext.js";
|
|
5
5
|
import { useIconToolContext as i } from "../../../contexts/IconToolContext.js";
|
|
6
6
|
import { t as a } from "../../../Button-jStpvb3T.js";
|
|
7
7
|
import { useIconContext as o } from "../../../contexts/IconContext.js";
|
|
@@ -36,7 +36,7 @@ var p = () => {
|
|
|
36
36
|
children: /* @__PURE__ */ d(p, {})
|
|
37
37
|
})
|
|
38
38
|
}), _ = () => {
|
|
39
|
-
let { openFileTool: i = !0 } =
|
|
39
|
+
let { openFileTool: i = !0 } = n(), { openFileTool: a = !0 } = r(), { openFile: o } = t(), { isSmallScreen: l } = s(), { localeMessages: u } = e(), f = u?.openLocalFileTooltip;
|
|
40
40
|
return !i || !a ? null : l ? /* @__PURE__ */ d(h, {
|
|
41
41
|
onFileChange: o,
|
|
42
42
|
localeMessages: u
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { useFullScreenContext as e } from "../../../contexts/FullScreenContext.js";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
2
|
+
import { useLocalizationContext as t } from "../../../contexts/LocalizationContext.js";
|
|
3
|
+
import { useToolbarComponentContext as n } from "../../../contexts/ToolbarComponentContext.js";
|
|
4
|
+
import { useToolComponentContext as r } from "../../../contexts/ToolComponentContext.js";
|
|
5
5
|
import { useIconToolContext as i } from "../../../contexts/IconToolContext.js";
|
|
6
6
|
import { t as a } from "../../../Button-jStpvb3T.js";
|
|
7
7
|
import { useIconContext as o } from "../../../contexts/IconContext.js";
|
|
@@ -30,7 +30,7 @@ var p = () => {
|
|
|
30
30
|
}), n?.fullScreenTooltip]
|
|
31
31
|
})
|
|
32
32
|
}), g = () => {
|
|
33
|
-
let { isFullScreen: i, toggleFullScreen: o, isSupported: l } = e(), { fullscreenTool: u = !0 } =
|
|
33
|
+
let { isFullScreen: i, toggleFullScreen: o, isSupported: l } = e(), { fullscreenTool: u = !0 } = n(), { fullscreenTool: f = !0 } = r(), { isSmallScreen: g } = s(), { localeMessages: _ } = t(), v = _?.fullScreenTooltip;
|
|
34
34
|
return !u || !f ? null : g ? /* @__PURE__ */ d(h, {
|
|
35
35
|
isFullScreen: i,
|
|
36
36
|
toggleFullScreen: o,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { r as e } from "../../../PaginationContext--n91mIJ4.js";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
2
|
+
import { useLocalizationContext as t } from "../../../contexts/LocalizationContext.js";
|
|
3
|
+
import { useToolbarComponentContext as n } from "../../../contexts/ToolbarComponentContext.js";
|
|
4
|
+
import { useToolComponentContext as r } from "../../../contexts/ToolComponentContext.js";
|
|
5
5
|
import { useIconToolContext as i } from "../../../contexts/IconToolContext.js";
|
|
6
6
|
import { useIconContext as a } from "../../../contexts/IconContext.js";
|
|
7
7
|
import { t as o } from "../../../RPTooltip-ZZoFqP7C.js";
|
|
@@ -20,7 +20,7 @@ var g = () => {
|
|
|
20
20
|
let { goToLastPageIcon: e } = a(), { goToLastPageIcon: t } = i();
|
|
21
21
|
return e || t || /* @__PURE__ */ m(u, {});
|
|
22
22
|
}, v = { width: "100%" }, y = () => {
|
|
23
|
-
let { goToPage: i, totalPages: a, focusedPage: u } = e(), { jumpNavigationTool: d = !0 } =
|
|
23
|
+
let { goToPage: i, totalPages: a, focusedPage: u } = e(), { jumpNavigationTool: d = !0 } = n(), { jumpNavigationTool: y = !0 } = r(), { localeMessages: b } = t(), x = p(() => u === 1, [u]), S = p(() => u === a, [u, a]), C = f(() => {
|
|
24
24
|
i(1);
|
|
25
25
|
}, [i]), w = f(() => {
|
|
26
26
|
i(a);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { useLayoutContainer as e } from "../../../contexts/LayoutContainerContext.js";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
2
|
+
import { useLocalizationContext as t } from "../../../contexts/LocalizationContext.js";
|
|
3
|
+
import { useToolbarComponentContext as ee } from "../../../contexts/ToolbarComponentContext.js";
|
|
4
|
+
import { useToolComponentContext as te } from "../../../contexts/ToolComponentContext.js";
|
|
5
5
|
import { t as n } from "../../../Button-jStpvb3T.js";
|
|
6
6
|
import { useViewportContext as r } from "../../../contexts/ViewportContext.js";
|
|
7
7
|
import { t as i } from "../../../RPTooltip-ZZoFqP7C.js";
|
|
@@ -25,7 +25,7 @@ import { useEffect as x, useMemo as S, useRef as C, useState as w } from "react"
|
|
|
25
25
|
import { Fragment as T, jsx as E, jsxs as D } from "react/jsx-runtime";
|
|
26
26
|
//#region lib/components/layout/toolbar/OtherTool.tsx
|
|
27
27
|
var O = () => {
|
|
28
|
-
let [O, k] = w(!1), { container: A, pagesRef: j } = e(), { isSmallScreen: M } = r(), { openFileTool: N, downloadTool: P, documentProperties: F, scrollModeTool: I, rotateTool: L, selectionModeTool: R, jumpNavigationTool: z, printTool: B, fullscreenTool: V, viewModeTool: H } =
|
|
28
|
+
let [O, k] = w(!1), { container: A, pagesRef: j } = e(), { isSmallScreen: M } = r(), { openFileTool: N, downloadTool: P, documentProperties: F, scrollModeTool: I, rotateTool: L, selectionModeTool: R, jumpNavigationTool: z, printTool: B, fullscreenTool: V, viewModeTool: H } = ee(), { openFileTool: U, downloadTool: W, documentProperties: G, scrollModeTool: K, rotateTool: q, selectionModeTool: J, jumpNavigationTool: Y, printTool: X, fullscreenTool: Z, viewModeTool: ne } = te(), { localeMessages: Q } = t(), [re, ie] = w(0), $ = C(new ResizeObserver((e) => {
|
|
29
29
|
ie(e[0].contentRect.height);
|
|
30
30
|
})), ae = S(() => z || L || R || I || F || H || M && (N || P || B || V), [
|
|
31
31
|
N,
|
|
@@ -2,13 +2,13 @@ import { ScrollMode as e, ViewMode as t } from "../../../utils/types.js";
|
|
|
2
2
|
import { useScrollModeContext as n } from "../../../contexts/ScrollModeContext.js";
|
|
3
3
|
import { useViewModeContext as r } from "../../../contexts/ViewModeContext.js";
|
|
4
4
|
import { r as i } from "../../../PaginationContext--n91mIJ4.js";
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
5
|
+
import { useLocalizationContext as a } from "../../../contexts/LocalizationContext.js";
|
|
6
|
+
import { useToolbarComponentContext as o } from "../../../contexts/ToolbarComponentContext.js";
|
|
7
|
+
import { useToolComponentContext as s } from "../../../contexts/ToolComponentContext.js";
|
|
8
8
|
import { useIconToolContext as c } from "../../../contexts/IconToolContext.js";
|
|
9
9
|
import { ChevronUpIcon as l } from "../../icons/ChevronUpIcon.js";
|
|
10
10
|
import { t as u } from "../../../Button-jStpvb3T.js";
|
|
11
|
-
import { t as d } from "../../../Input-
|
|
11
|
+
import { t as d } from "../../../Input-DGJSVFE8.js";
|
|
12
12
|
import { t as f } from "../../../Paginate.module-B0GMw-MB.js";
|
|
13
13
|
import { useIconContext as p } from "../../../contexts/IconContext.js";
|
|
14
14
|
import { useViewportContext as m } from "../../../contexts/ViewportContext.js";
|
|
@@ -23,7 +23,7 @@ var S = () => {
|
|
|
23
23
|
let { nextIcon: e } = p(), { nextIcon: t } = c();
|
|
24
24
|
return e || t || /* @__PURE__ */ b(l, { style: { transform: "rotate(180deg" } });
|
|
25
25
|
}, w = () => {
|
|
26
|
-
let { focusedPage: c, totalPages: l, setFocusedPage: p, nextPage: w, prevPage: T, goToPage: E } = i(), [D, O] = y(c.toString()), { pageNavigationTool: k = !0 } =
|
|
26
|
+
let { focusedPage: c, totalPages: l, setFocusedPage: p, nextPage: w, prevPage: T, goToPage: E } = i(), [D, O] = y(c.toString()), { pageNavigationTool: k = !0 } = o(), { pageNavigationTool: A = !0 } = s(), { isSmallScreen: j } = m(), { viewMode: M } = r(), { scrollMode: N } = n(), { localeMessages: P } = a();
|
|
27
27
|
_(() => {
|
|
28
28
|
O(c.toString());
|
|
29
29
|
}, [c]);
|
|
@@ -69,6 +69,7 @@ var S = () => {
|
|
|
69
69
|
className: f["rp-page-input"],
|
|
70
70
|
id: "page-input",
|
|
71
71
|
name: "page-input",
|
|
72
|
+
label: P?.currentPageTooltip || "Current page",
|
|
72
73
|
"aria-label": P?.currentPageTooltip,
|
|
73
74
|
"aria-valuemin": 1,
|
|
74
75
|
"aria-valuemax": l,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
1
|
+
import { useLocalizationContext as e } from "../../../contexts/LocalizationContext.js";
|
|
2
|
+
import { usePrintContext as t } from "../../../contexts/PrintContext.js";
|
|
3
|
+
import { useToolbarComponentContext as n } from "../../../contexts/ToolbarComponentContext.js";
|
|
4
|
+
import { useToolComponentContext as r } from "../../../contexts/ToolComponentContext.js";
|
|
5
5
|
import { useIconToolContext as i } from "../../../contexts/IconToolContext.js";
|
|
6
6
|
import { t as a } from "../../../Button-jStpvb3T.js";
|
|
7
7
|
import { useIconContext as o } from "../../../contexts/IconContext.js";
|
|
@@ -36,7 +36,7 @@ var p = () => {
|
|
|
36
36
|
}), t?.printLabel]
|
|
37
37
|
})
|
|
38
38
|
}), _ = () => {
|
|
39
|
-
let { print: i, cancel: a, setOnProgress: o, setOnComplete: l, setOnError: u, progress: f, showDefaultProgress: p } =
|
|
39
|
+
let { print: i, cancel: a, setOnProgress: o, setOnComplete: l, setOnError: u, progress: f, showDefaultProgress: p } = t(), { printTool: m = !0 } = n(), { printTool: _ = !0 } = r(), { isSmallScreen: v } = s(), { localeMessages: y } = e(), b = y?.printTooltip;
|
|
40
40
|
return !m || !_ ? null : v ? /* @__PURE__ */ d(g, {
|
|
41
41
|
print: i,
|
|
42
42
|
localeMessages: y
|
|
@@ -8,7 +8,7 @@ import { Paginate as o } from "./Paginate.js";
|
|
|
8
8
|
import { RPToolbarEnd as s } from "./RPToolbarEnd.js";
|
|
9
9
|
import { ZoomTool as c } from "./ZoomTool.js";
|
|
10
10
|
import { SearchTool as l } from "./SearchTool.js";
|
|
11
|
-
import { t as u } from "../../../LoadingIndicator-
|
|
11
|
+
import { t as u } from "../../../LoadingIndicator-DiWoWs4Y.js";
|
|
12
12
|
import { jsx as d, jsxs as f } from "react/jsx-runtime";
|
|
13
13
|
//#region lib/components/layout/toolbar/RPToolbar.tsx
|
|
14
14
|
var p = r((r, p) => {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
1
|
+
import { useLocalizationContext as e } from "../../../contexts/LocalizationContext.js";
|
|
2
|
+
import { useToolbarComponentContext as t } from "../../../contexts/ToolbarComponentContext.js";
|
|
3
|
+
import { useToolComponentContext as n } from "../../../contexts/ToolComponentContext.js";
|
|
4
4
|
import { useIconToolContext as r } from "../../../contexts/IconToolContext.js";
|
|
5
5
|
import { useIconContext as i } from "../../../contexts/IconContext.js";
|
|
6
6
|
import { t as a } from "../../../RPTooltip-ZZoFqP7C.js";
|
|
@@ -19,7 +19,7 @@ var h = () => {
|
|
|
19
19
|
let { rotateCounterClockwiseIcon: e } = i(), { rotateCounterClockwiseIcon: t } = r();
|
|
20
20
|
return e || t || /* @__PURE__ */ p(l, { className: u["rp-rotate-counterclockwise"] });
|
|
21
21
|
}, _ = () => {
|
|
22
|
-
let { handleRotateClockwise: r, handleRotateCounterclockwise: i } = d(), { rotateTool: l = !0 } =
|
|
22
|
+
let { handleRotateClockwise: r, handleRotateCounterclockwise: i } = d(), { rotateTool: l = !0 } = t(), { rotateTool: u = !0 } = n(), { localeMessages: _ } = e();
|
|
23
23
|
return !l || !u ? null : /* @__PURE__ */ p(f, { children: /* @__PURE__ */ m(o, { children: [
|
|
24
24
|
/* @__PURE__ */ p(s, {
|
|
25
25
|
onClick: r,
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { ScrollMode as e, ViewMode as t } from "../../../utils/types.js";
|
|
2
2
|
import { useScrollModeContext as n } from "../../../contexts/ScrollModeContext.js";
|
|
3
3
|
import { useViewModeContext as r } from "../../../contexts/ViewModeContext.js";
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
4
|
+
import { useLocalizationContext as i } from "../../../contexts/LocalizationContext.js";
|
|
5
|
+
import { useToolbarComponentContext as a } from "../../../contexts/ToolbarComponentContext.js";
|
|
6
|
+
import { useToolComponentContext as o } from "../../../contexts/ToolComponentContext.js";
|
|
7
7
|
import { useIconToolContext as s } from "../../../contexts/IconToolContext.js";
|
|
8
8
|
import { useIconContext as c } from "../../../contexts/IconContext.js";
|
|
9
9
|
import { t as l } from "../../../RPTooltip-ZZoFqP7C.js";
|
|
@@ -26,7 +26,7 @@ var b = () => {
|
|
|
26
26
|
let { horizontalScrollIcon: e } = c(), { horizontalScrollIcon: t } = s();
|
|
27
27
|
return e || t || /* @__PURE__ */ v(h, {});
|
|
28
28
|
}, C = () => {
|
|
29
|
-
let { scrollModeTool: s = !0 } =
|
|
29
|
+
let { scrollModeTool: s = !0 } = a(), { scrollModeTool: c = !0 } = o(), { viewMode: p } = r(), { scrollMode: m, setScrollMode: h } = n(), { localeMessages: C } = i(), w = g(() => p === t.DUAL_PAGE || p === t.DUAL_PAGE_WITH_COVER, [p]);
|
|
30
30
|
return !s || !c ? null : /* @__PURE__ */ v(_, { children: /* @__PURE__ */ y(u, { children: [
|
|
31
31
|
/* @__PURE__ */ v(d, {
|
|
32
32
|
onClick: () => h(e.PAGE_SCROLLING),
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { useLocalizationContext as e } from "../../../contexts/LocalizationContext.js";
|
|
2
|
+
import { useSearchContext as t } from "../../../contexts/SearchContext.js";
|
|
3
3
|
import { ChevronUpIcon as n } from "../../icons/ChevronUpIcon.js";
|
|
4
4
|
import { t as r } from "../../../Button-jStpvb3T.js";
|
|
5
5
|
import { t as i } from "../../../RPTooltip-ZZoFqP7C.js";
|
|
@@ -7,7 +7,7 @@ import { t as a } from "../../../SearchTool.module-DUkVXfOn.js";
|
|
|
7
7
|
import { Fragment as o, jsx as s, jsxs as c } from "react/jsx-runtime";
|
|
8
8
|
//#region lib/components/layout/toolbar/SearchResultNavigator.tsx
|
|
9
9
|
var l = () => {
|
|
10
|
-
let { totalMatches: l, nextMatch: u, prevMatch: d } =
|
|
10
|
+
let { totalMatches: l, nextMatch: u, prevMatch: d } = t(), { localeMessages: f } = e(), p = !l || l === 0;
|
|
11
11
|
return /* @__PURE__ */ c(o, { children: [/* @__PURE__ */ s(i, {
|
|
12
12
|
content: f?.searchPrevTooltip,
|
|
13
13
|
className: a["rp-search-tool-result-navigator"],
|