@pdf-viewer/react 1.16.1 → 1.17.0-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/LayoutWrapper-3f4d0a19.js +20 -0
- package/dist/ToolbarLayout.module-00eddd49.js +3746 -0
- package/dist/assets/style.css +1 -1
- package/dist/assets/style.js +3 -3
- package/dist/components/RPController.js +7 -5
- package/dist/components/RPDropFileZone.js +1 -1
- package/dist/components/RPPages.js +6 -4
- package/dist/components/RPProvider.js +7 -5
- package/dist/components/icons/DualPageWithCoverIcon.js +22 -0
- package/dist/components/layout/LayoutContainer.js +6 -4
- package/dist/components/layout/LayoutWrapper.js +1 -1
- package/dist/components/layout/RPDefaultLayout.js +6 -4
- package/dist/components/layout/RPLayout.js +27 -23
- package/dist/components/layout/SkipLink.js +28 -0
- package/dist/components/layout/WrapperLayout.js +1 -1
- package/dist/components/layout/sidebar/RPSidebar.js +6 -4
- package/dist/components/layout/sidebar/Thumbnail.js +6 -4
- package/dist/components/layout/sidebar/Thumbnails.js +6 -4
- package/dist/components/layout/toolbar/DarkModeTool.js +1 -1
- package/dist/components/layout/toolbar/DocumentDialog.js +6 -4
- package/dist/components/layout/toolbar/DocumentProperties.js +1 -1
- package/dist/components/layout/toolbar/FileDownloadTool.js +6 -4
- package/dist/components/layout/toolbar/FileUploadTool.js +1 -1
- package/dist/components/layout/toolbar/FullScreenTool.js +1 -1
- package/dist/components/layout/toolbar/MostPageTool.js +6 -4
- package/dist/components/layout/toolbar/OtherTool.js +6 -4
- package/dist/components/layout/toolbar/Paginate.js +6 -4
- package/dist/components/layout/toolbar/PrintTool.js +6 -4
- package/dist/components/layout/toolbar/RPMoreOptions.js +53 -51
- package/dist/components/layout/toolbar/RPToolbar.js +6 -4
- package/dist/components/layout/toolbar/RPToolbarEnd.js +6 -4
- package/dist/components/layout/toolbar/RotateTool.js +1 -1
- package/dist/components/layout/toolbar/ScrollModeTool.js +36 -36
- package/dist/components/layout/toolbar/SearchCloseButton.js +1 -1
- package/dist/components/layout/toolbar/SearchResultNavigator.js +6 -4
- package/dist/components/layout/toolbar/SearchTool.js +6 -4
- package/dist/components/layout/toolbar/SelectionModeTool.js +1 -1
- package/dist/components/layout/toolbar/ThumbnailTool.js +7 -5
- package/dist/components/layout/toolbar/ToolbarCustom.js +43 -24
- package/dist/components/layout/toolbar/ToolbarDefault.js +38 -27
- package/dist/components/layout/toolbar/ToolbarLayout.js +7 -5
- package/dist/components/layout/toolbar/ViewModeTool.js +38 -29
- package/dist/components/layout/toolbar/ZoomTool.js +6 -4
- package/dist/components/layout/toolbar/tools/DocumentPropertiesTool.js +7 -5
- package/dist/components/layout/toolbar/tools/DualPageTool.js +8 -6
- package/dist/components/layout/toolbar/tools/DualPageWithCoverTool.js +153 -0
- package/dist/components/layout/toolbar/tools/FileDownloadTool.js +11 -9
- package/dist/components/layout/toolbar/tools/FileUploadTool.js +5 -5
- package/dist/components/layout/toolbar/tools/FullScreenTool.js +17 -16
- package/dist/components/layout/toolbar/tools/InputPageTool.js +40 -31
- package/dist/components/layout/toolbar/tools/NextPageTool.js +15 -12
- package/dist/components/layout/toolbar/tools/PreviousPageTool.js +18 -15
- package/dist/components/layout/toolbar/tools/PrintTool.js +9 -7
- package/dist/components/layout/toolbar/tools/RotateClockwiseTool.js +12 -5
- package/dist/components/layout/toolbar/tools/RotateCounterclockwiseTool.js +9 -9
- package/dist/components/layout/toolbar/tools/SelectionModeSwitcherTool.js +17 -9
- package/dist/components/layout/toolbar/tools/SinglePageTool.js +8 -6
- package/dist/components/layout/toolbar/tools/ThemeSwitcherTool.js +11 -3
- package/dist/components/layout/toolbar/tools/ThumbnailTool.js +18 -15
- package/dist/components/layout/toolbar/tools/ZoomInTool.js +15 -14
- package/dist/components/layout/toolbar/tools/ZoomLevelDisplay.js +6 -4
- package/dist/components/layout/toolbar/tools/ZoomLevelTool.js +76 -40
- package/dist/components/layout/toolbar/tools/ZoomOutTool.js +12 -11
- package/dist/components/layout/toolbar/tools/defaults/RPHorizontalBar.js +7 -5
- package/dist/components/layout/toolbar/tools/defaults/RPVerticalBar.js +7 -5
- package/dist/components/layout/toolbar/tools/more-options/DocumentProperties.js +9 -9
- package/dist/components/layout/toolbar/tools/more-options/FileDownloadTool.js +25 -16
- package/dist/components/layout/toolbar/tools/more-options/FileUploadTool.js +24 -15
- package/dist/components/layout/toolbar/tools/more-options/FullScreenTool.js +20 -12
- package/dist/components/layout/toolbar/tools/more-options/MostPageTool.js +38 -20
- package/dist/components/layout/toolbar/tools/more-options/PrintTool.js +25 -16
- package/dist/components/layout/toolbar/tools/more-options/RotateTool.js +31 -17
- package/dist/components/layout/toolbar/tools/more-options/ScrollModeTool.js +53 -35
- package/dist/components/layout/toolbar/tools/more-options/SelectionModeTool.js +39 -23
- package/dist/components/layout/toolbar/tools/more-options/ViewModeTool.js +51 -28
- package/dist/components/page/AnnotationLayer.js +6 -4
- package/dist/components/page/CanvasLayer.js +6 -4
- package/dist/components/page/CustomElement.js +1 -1
- package/dist/components/page/DualPage.js +6 -4
- package/dist/components/page/DualPageWithCover.js +141 -0
- package/dist/components/page/RPPage.js +6 -4
- package/dist/components/page/SinglePage.js +6 -4
- package/dist/components/page/TextHighlightLayer.js +6 -4
- package/dist/components/page/TextLayer.js +6 -4
- package/dist/components/ui/Button.js +14 -12
- package/dist/components/ui/Checkbox.js +75 -68
- package/dist/components/ui/Input.js +12 -11
- package/dist/components/ui/LoadingIndicator.js +6 -4
- package/dist/components/ui/PasswordModal.js +44 -30
- package/dist/contexts/DimensionPagesContext.js +1 -1
- package/dist/contexts/DropFileZoneContext.js +1 -1
- package/dist/contexts/ElementPageContext.js +1 -1
- package/dist/contexts/FileInputContext.js +1 -1
- package/dist/contexts/HighlightContext.js +1 -1
- package/dist/contexts/LocalizationContext.js +1 -1
- package/dist/contexts/PagesRotateContext.js +1 -1
- package/dist/contexts/PaginationContext.js +8 -6
- package/dist/contexts/PrintContext.js +8 -6
- package/dist/contexts/RPDocumentContext.js +1 -1
- package/dist/contexts/RenderQueueProvider.js +8 -6
- package/dist/contexts/RotationContext.js +1 -1
- package/dist/contexts/ScrollModeContext.js +1 -1
- package/dist/contexts/SearchContext.js +8 -6
- package/dist/contexts/SelectionModeContext.js +1 -1
- package/dist/contexts/ThumbnailsContext.js +8 -6
- package/dist/contexts/ViewModeContext.js +19 -15
- package/dist/contexts/ZoomContext.js +1 -1
- package/dist/main.js +91 -87
- package/dist/th_TH-d1686d95.js +408 -0
- package/dist/types/components/icons/DualPageWithCoverIcon.d.ts +2 -0
- package/dist/types/components/layout/SkipLink.d.ts +7 -0
- package/dist/types/components/layout/toolbar/tools/DualPageWithCoverTool.d.ts +3 -0
- package/dist/types/components/page/DualPageWithCover.d.ts +5 -0
- package/dist/types/components/ui/Checkbox.d.ts +1 -0
- package/dist/types/locales/en_US.json.d.ts +2 -0
- package/dist/types/locales/it_IT.json.d.ts +2 -0
- package/dist/types/locales/pt_PT.json.d.ts +2 -0
- package/dist/types/locales/th_TH.json.d.ts +2 -0
- package/dist/types/locales/zh_CN.json.d.ts +2 -0
- package/dist/types/main.d.ts +1 -0
- package/dist/types/utils/annotations.d.ts +10 -0
- package/dist/types/utils/calculatePage.d.ts +3 -3
- package/dist/types/utils/hooks/usePresentPage.d.ts +2 -1
- package/dist/types/utils/types.d.ts +8 -1
- package/dist/utils/annotations.js +185 -159
- package/dist/utils/calculatePage.js +17 -11
- package/dist/utils/getZoomLevel.js +9 -9
- package/dist/utils/hooks/useFileDownload.js +6 -4
- package/dist/utils/hooks/useLicense.js +1 -1
- package/dist/utils/hooks/useLoadPdf.js +1 -1
- package/dist/utils/hooks/useLocalization.js +1 -1
- package/dist/utils/hooks/usePageRotateContext.js +1 -1
- package/dist/utils/hooks/usePaginate.js +6 -4
- package/dist/utils/hooks/usePinch.js +1 -1
- package/dist/utils/hooks/usePresentPage.js +7 -5
- package/dist/utils/hooks/usePrint.js +6 -4
- package/dist/utils/hooks/useRotate.js +1 -1
- package/dist/utils/hooks/useScrollToPage.js +6 -4
- package/dist/utils/hooks/useSearch.js +6 -4
- package/dist/utils/hooks/useThumbnail.js +6 -4
- package/dist/utils/hooks/useVirtualReactWindow.js +6 -4
- package/dist/utils/types.js +2 -2
- package/package.json +1 -1
- package/dist/LayoutWrapper-6224491f.js +0 -19
- package/dist/ToolbarLayout.module-89b2bf85.js +0 -3549
- package/dist/th_TH-d627cd51.js +0 -398
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { MenuItem as
|
|
3
|
-
import
|
|
1
|
+
import { jsx as r, jsxs as l } from "react/jsx-runtime";
|
|
2
|
+
import { MenuItem as u } from "../../MenuItem.js";
|
|
3
|
+
import c from "../../../../ui/RPTooltip.js";
|
|
4
4
|
import { FullScreenIcon as f } from "../../../../icons/FullScreenIcon.js";
|
|
5
|
-
import { useViewportContext as
|
|
6
|
-
import { useFullScreenContext as
|
|
7
|
-
import { useLocalizationContext as
|
|
5
|
+
import { useViewportContext as S } from "../../../../../contexts/ViewportContext.js";
|
|
6
|
+
import { useFullScreenContext as d } from "../../../../../contexts/FullScreenContext.js";
|
|
7
|
+
import { useLocalizationContext as x } from "../../../../../contexts/LocalizationContext.js";
|
|
8
8
|
import "../../../../../index-a48ec088.js";
|
|
9
9
|
import "react";
|
|
10
10
|
import "../../../../../index-c9a2990a.js";
|
|
@@ -16,16 +16,24 @@ import "../../../../../contexts/LayoutContainerContext.js";
|
|
|
16
16
|
import "../../../../../utils/hooks/useFullScreen.js";
|
|
17
17
|
import "../../../../../utils/appConsole.js";
|
|
18
18
|
import "../../../../../utils/hooks/useLocalization.js";
|
|
19
|
-
import "../../../../../th_TH-
|
|
19
|
+
import "../../../../../th_TH-d1686d95.js";
|
|
20
20
|
const y = (m) => {
|
|
21
|
-
const { icon:
|
|
21
|
+
const { icon: t, isToolVisible: e = !0 } = m, { toggleFullScreen: n, isSupported: p } = d(), { isSmallScreen: i } = S(), { localeMessages: o } = x();
|
|
22
22
|
if (!e || !i)
|
|
23
23
|
return null;
|
|
24
24
|
if (i)
|
|
25
|
-
return /* @__PURE__ */
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
25
|
+
return /* @__PURE__ */ r(
|
|
26
|
+
u,
|
|
27
|
+
{
|
|
28
|
+
onClick: n,
|
|
29
|
+
disabled: !p,
|
|
30
|
+
"aria-label": o == null ? void 0 : o.fullScreenTooltip,
|
|
31
|
+
children: /* @__PURE__ */ l(c, { className: "rp-menu-item", content: o == null ? void 0 : o.fullScreenTooltip, children: [
|
|
32
|
+
/* @__PURE__ */ r("div", { className: "rp-menu-item-left", children: t || /* @__PURE__ */ r(f, { "aria-hidden": "true" }) }),
|
|
33
|
+
o == null ? void 0 : o.fullScreenTooltip
|
|
34
|
+
] })
|
|
35
|
+
}
|
|
36
|
+
);
|
|
29
37
|
};
|
|
30
38
|
export {
|
|
31
39
|
y as FullScreenTool
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { jsxs as p, jsx as
|
|
1
|
+
import { jsxs as p, jsx as o } from "react/jsx-runtime";
|
|
2
2
|
import { MenuItem as a } from "../../MenuItem.js";
|
|
3
|
-
import
|
|
4
|
-
import { u as C, s as G } from "../../../../../ToolbarLayout.module-
|
|
3
|
+
import l from "../../../../ui/RPTooltip.js";
|
|
4
|
+
import { u as C, s as G } from "../../../../../ToolbarLayout.module-00eddd49.js";
|
|
5
5
|
import { G as L } from "../../../../../index-a48ec088.js";
|
|
6
|
-
import { useMemo as
|
|
6
|
+
import { useMemo as d, useCallback as s } from "react";
|
|
7
7
|
import "../../../../../contexts/RPDocumentContext.js";
|
|
8
8
|
import "../../../../../contexts/DocumentPasswordContext.js";
|
|
9
9
|
import "../../../../../contexts/DarkModeContext.js";
|
|
@@ -43,7 +43,8 @@ import "../../../../../contexts/ToolbarComponentContext.js";
|
|
|
43
43
|
import "../../../sidebar/RPSplitter.js";
|
|
44
44
|
import "../../../WrapperLayout.js";
|
|
45
45
|
import "../../../../RPDropFileZone.js";
|
|
46
|
-
import "../../../../../LayoutWrapper-
|
|
46
|
+
import "../../../../../LayoutWrapper-3f4d0a19.js";
|
|
47
|
+
import "../../../SkipLink.js";
|
|
47
48
|
import "../../../../ui/Button.js";
|
|
48
49
|
import "../../../../../SearchCloseButton-08d57275.js";
|
|
49
50
|
import "../../../../ui/Input.js";
|
|
@@ -55,7 +56,7 @@ import { MenuSeparator as v } from "../../MenuSeparator.js";
|
|
|
55
56
|
import "../../../../../utils/dateFormatter.js";
|
|
56
57
|
import "../../PropertyItem.js";
|
|
57
58
|
import "../../../../../RotateTool.module-67946714.js";
|
|
58
|
-
import { GoToDownIcon as
|
|
59
|
+
import { GoToDownIcon as c } from "../../../../icons/GoToDownIcon.js";
|
|
59
60
|
import "../../../../../clsx-0c6e471a.js";
|
|
60
61
|
import "../../../../../index-c9a2990a.js";
|
|
61
62
|
import "react-dom";
|
|
@@ -63,7 +64,7 @@ import "../../../../../index-808ea7bf.js";
|
|
|
63
64
|
import "../../../../../utils/withRef.js";
|
|
64
65
|
import "../../../../icons/ChevronUpIcon.js";
|
|
65
66
|
import "../../../../../utils/types.js";
|
|
66
|
-
import "../../../../../th_TH-
|
|
67
|
+
import "../../../../../th_TH-d1686d95.js";
|
|
67
68
|
import "../../../../../utils/highlight.js";
|
|
68
69
|
import "../../../../../utils/charators.js";
|
|
69
70
|
import "../../../../../utils/Queue.js";
|
|
@@ -112,6 +113,7 @@ import "../../../../icons/ClockwiseIcon.js";
|
|
|
112
113
|
import "../../../../../utils/hooks/useRotate.js";
|
|
113
114
|
import "../../ViewModeTool.js";
|
|
114
115
|
import "../../../../icons/DualPageIcon.js";
|
|
116
|
+
import "../../../../icons/DualPageWithCoverIcon.js";
|
|
115
117
|
import "../../../../icons/SinglePageIcon.js";
|
|
116
118
|
import "../../../../icons/CheckIcon.js";
|
|
117
119
|
import "../../ScrollModeTool.js";
|
|
@@ -134,24 +136,40 @@ import "../../../../icons/ClearIcon.js";
|
|
|
134
136
|
import "../../../../../utils/hooks/useHighlight.js";
|
|
135
137
|
import "../../../../icons/LightPdfIcon.js";
|
|
136
138
|
import "../../../../icons/DarkPdfIcon.js";
|
|
137
|
-
const u = { width: "100%" },
|
|
138
|
-
const { icons:
|
|
139
|
+
const u = { width: "100%" }, ri = (P) => {
|
|
140
|
+
const { icons: f, isToolVisible: h = !0 } = P, { firstPageIcon: n, lastPageIcon: e } = f ?? {}, { goToPage: i, totalPages: r, focusedPage: m } = C(), { localeMessages: t } = N(), T = d(() => m === 1, [m]), b = d(() => m === r, [m, r]), g = s(() => {
|
|
139
141
|
i(1);
|
|
140
|
-
}, [i]), x =
|
|
142
|
+
}, [i]), x = s(() => {
|
|
141
143
|
i(r);
|
|
142
144
|
}, [i, r]);
|
|
143
145
|
return h ? /* @__PURE__ */ p(L, { children: [
|
|
144
|
-
/* @__PURE__ */
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
146
|
+
/* @__PURE__ */ o(
|
|
147
|
+
a,
|
|
148
|
+
{
|
|
149
|
+
onClick: g,
|
|
150
|
+
disabled: T,
|
|
151
|
+
"aria-label": t == null ? void 0 : t.firstPageTooltip,
|
|
152
|
+
children: /* @__PURE__ */ o(l, { content: t == null ? void 0 : t.firstPageTooltip, style: u, children: /* @__PURE__ */ p("div", { className: "rp-menu-item", children: [
|
|
153
|
+
/* @__PURE__ */ o("div", { className: "rp-menu-item-left", children: n || /* @__PURE__ */ o(c, { className: G["rp-go-to-Top"], "aria-hidden": "true" }) }),
|
|
154
|
+
/* @__PURE__ */ o("span", { children: t == null ? void 0 : t.firstPageLabel })
|
|
155
|
+
] }) })
|
|
156
|
+
}
|
|
157
|
+
),
|
|
158
|
+
/* @__PURE__ */ o(
|
|
159
|
+
a,
|
|
160
|
+
{
|
|
161
|
+
onClick: x,
|
|
162
|
+
disabled: b,
|
|
163
|
+
"aria-label": t == null ? void 0 : t.lastPageTooltip,
|
|
164
|
+
children: /* @__PURE__ */ o(l, { content: t == null ? void 0 : t.lastPageTooltip, style: u, children: /* @__PURE__ */ p("div", { className: "rp-menu-item", children: [
|
|
165
|
+
/* @__PURE__ */ o("div", { className: "rp-menu-item-left", children: e || /* @__PURE__ */ o(c, { "aria-hidden": "true" }) }),
|
|
166
|
+
/* @__PURE__ */ o("span", { children: t == null ? void 0 : t.lastPageLabel })
|
|
167
|
+
] }) })
|
|
168
|
+
}
|
|
169
|
+
),
|
|
170
|
+
/* @__PURE__ */ o(v, {})
|
|
153
171
|
] }) : null;
|
|
154
172
|
};
|
|
155
173
|
export {
|
|
156
|
-
|
|
174
|
+
ri as MostPageTool
|
|
157
175
|
};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { jsx as
|
|
1
|
+
import { jsx as i, jsxs as e } from "react/jsx-runtime";
|
|
2
2
|
import { PrintDefaultTool as l } from "../../../../icons/PrintDefaultIcon.js";
|
|
3
|
-
import { c } from "../../../../../ToolbarLayout.module-
|
|
4
|
-
import { useViewportContext as
|
|
5
|
-
import { useLocalizationContext as
|
|
6
|
-
import { MenuItem as
|
|
3
|
+
import { c as u } from "../../../../../ToolbarLayout.module-00eddd49.js";
|
|
4
|
+
import { useViewportContext as c } from "../../../../../contexts/ViewportContext.js";
|
|
5
|
+
import { useLocalizationContext as f } from "../../../../../contexts/LocalizationContext.js";
|
|
6
|
+
import { MenuItem as d } from "../../MenuItem.js";
|
|
7
7
|
import x from "../../../../ui/RPTooltip.js";
|
|
8
8
|
import "react";
|
|
9
9
|
import "../../../../icons/ChevronUpIcon.js";
|
|
@@ -12,7 +12,7 @@ import "../../../../../clsx-0c6e471a.js";
|
|
|
12
12
|
import "../../../../../utils/withRef.js";
|
|
13
13
|
import "../../../../ui/Input.js";
|
|
14
14
|
import "../../../../../utils/types.js";
|
|
15
|
-
import "../../../../../th_TH-
|
|
15
|
+
import "../../../../../th_TH-d1686d95.js";
|
|
16
16
|
import "../../../../../contexts/ScrollModeContext.js";
|
|
17
17
|
import "../../../../../utils/appConsole.js";
|
|
18
18
|
import "../../../../../contexts/InitialStateContext.js";
|
|
@@ -74,7 +74,8 @@ import "../../../WrapperLayout.js";
|
|
|
74
74
|
import "../../../../RPDropFileZone.js";
|
|
75
75
|
import "../../../../icons/LightPdfIcon.js";
|
|
76
76
|
import "../../../../icons/DarkPdfIcon.js";
|
|
77
|
-
import "../../../../../LayoutWrapper-
|
|
77
|
+
import "../../../../../LayoutWrapper-3f4d0a19.js";
|
|
78
|
+
import "../../../SkipLink.js";
|
|
78
79
|
import "../../../../../SearchCloseButton-08d57275.js";
|
|
79
80
|
import "../../../../icons/CloseIcon.js";
|
|
80
81
|
import "../../../../ui/Checkbox.js";
|
|
@@ -117,6 +118,7 @@ import "../../../../icons/ClockwiseIcon.js";
|
|
|
117
118
|
import "../../../../../utils/hooks/useRotate.js";
|
|
118
119
|
import "../../ViewModeTool.js";
|
|
119
120
|
import "../../../../icons/DualPageIcon.js";
|
|
121
|
+
import "../../../../icons/DualPageWithCoverIcon.js";
|
|
120
122
|
import "../../../../icons/SinglePageIcon.js";
|
|
121
123
|
import "../../ScrollModeTool.js";
|
|
122
124
|
import "../../../../icons/PageScrollingIcon.js";
|
|
@@ -134,16 +136,23 @@ import "../../../../icons/ZoomOutIcon.js";
|
|
|
134
136
|
import "../../../../../utils/zoom.js";
|
|
135
137
|
import "../../../../icons/SearchIcon.js";
|
|
136
138
|
import "../../../../icons/ClearIcon.js";
|
|
137
|
-
const
|
|
138
|
-
const { icon: r, isToolVisible: p = !0 } = m, { print: n } =
|
|
139
|
-
if (!p || !
|
|
139
|
+
const Qi = (m) => {
|
|
140
|
+
const { icon: r, isToolVisible: p = !0 } = m, { print: n } = u(), { isSmallScreen: o } = c(), { localeMessages: t } = f();
|
|
141
|
+
if (!p || !o)
|
|
140
142
|
return null;
|
|
141
|
-
if (
|
|
142
|
-
return /* @__PURE__ */
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
143
|
+
if (o)
|
|
144
|
+
return /* @__PURE__ */ i(
|
|
145
|
+
d,
|
|
146
|
+
{
|
|
147
|
+
onClick: n,
|
|
148
|
+
"aria-label": t == null ? void 0 : t.printTooltip,
|
|
149
|
+
children: /* @__PURE__ */ e(x, { className: "rp-menu-item", content: t == null ? void 0 : t.printTooltip, children: [
|
|
150
|
+
/* @__PURE__ */ i("div", { className: "rp-menu-item-left", children: r || /* @__PURE__ */ i(l, { "aria-hidden": "true" }) }),
|
|
151
|
+
t == null ? void 0 : t.printLabel
|
|
152
|
+
] })
|
|
153
|
+
}
|
|
154
|
+
);
|
|
146
155
|
};
|
|
147
156
|
export {
|
|
148
|
-
|
|
157
|
+
Qi as PrintTool
|
|
149
158
|
};
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { c as
|
|
1
|
+
import { jsx as o, Fragment as C, jsxs as r } from "react/jsx-runtime";
|
|
2
|
+
import { c as k } from "../../../../../RotateTool.module-67946714.js";
|
|
3
3
|
import { MenuItem as e } from "../../MenuItem.js";
|
|
4
4
|
import n from "../../../../ui/RPTooltip.js";
|
|
5
5
|
import { G as f } from "../../../../../index-a48ec088.js";
|
|
6
6
|
import { ClockwiseIcon as p } from "../../../../icons/ClockwiseIcon.js";
|
|
7
|
-
import { MenuSeparator as
|
|
8
|
-
import { useRotate as
|
|
9
|
-
import { useLocalizationContext as
|
|
7
|
+
import { MenuSeparator as h } from "../../MenuSeparator.js";
|
|
8
|
+
import { useRotate as w } from "../../../../../utils/hooks/useRotate.js";
|
|
9
|
+
import { useLocalizationContext as s } from "../../../../../contexts/LocalizationContext.js";
|
|
10
10
|
import "../../../../../clsx-0c6e471a.js";
|
|
11
11
|
import "react";
|
|
12
12
|
import "../../../../../index-c9a2990a.js";
|
|
@@ -20,7 +20,7 @@ import "../../../../../contexts/RPDocumentContext.js";
|
|
|
20
20
|
import "../../../../../utils/hooks/useLoadPdf.js";
|
|
21
21
|
import "pdfjs-dist";
|
|
22
22
|
import "../../../../../utils/types.js";
|
|
23
|
-
import "../../../../../th_TH-
|
|
23
|
+
import "../../../../../th_TH-d1686d95.js";
|
|
24
24
|
import "../../../../../utils/getThumbnailViewport.js";
|
|
25
25
|
import "../../../../../contexts/ConfigContext.js";
|
|
26
26
|
import "../../../../../contexts/DocumentPasswordContext.js";
|
|
@@ -29,17 +29,31 @@ import "../../../../../utils/convertPdfDate.js";
|
|
|
29
29
|
import "../../../../../utils/formatFileSize.js";
|
|
30
30
|
import "../../../../../utils/hooks/useLocalization.js";
|
|
31
31
|
const Z = (c) => {
|
|
32
|
-
const { icons: l, isToolVisible: a = !0 } = c, { rotateClockwiseIcon: i, rotateCounterClockwiseIcon: m } = l ?? {}, { handleRotateClockwise: u, handleRotateCounterclockwise:
|
|
33
|
-
return a ? /* @__PURE__ */
|
|
34
|
-
/* @__PURE__ */
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
32
|
+
const { icons: l, isToolVisible: a = !0 } = c, { rotateClockwiseIcon: i, rotateCounterClockwiseIcon: m } = l ?? {}, { handleRotateClockwise: u, handleRotateCounterclockwise: d } = w(), { localeMessages: t } = s();
|
|
33
|
+
return a ? /* @__PURE__ */ o(C, { children: /* @__PURE__ */ r(f, { children: [
|
|
34
|
+
/* @__PURE__ */ o(
|
|
35
|
+
e,
|
|
36
|
+
{
|
|
37
|
+
onClick: u,
|
|
38
|
+
"aria-label": t == null ? void 0 : t.rotateClockwiseTooltip,
|
|
39
|
+
children: /* @__PURE__ */ r(n, { className: "rp-menu-item", content: t == null ? void 0 : t.rotateClockwiseTooltip, children: [
|
|
40
|
+
/* @__PURE__ */ o("div", { className: "rp-menu-item-left", children: i || /* @__PURE__ */ o(p, { "aria-hidden": "true" }) }),
|
|
41
|
+
t == null ? void 0 : t.rotateClockwiseLabel
|
|
42
|
+
] })
|
|
43
|
+
}
|
|
44
|
+
),
|
|
45
|
+
/* @__PURE__ */ o(
|
|
46
|
+
e,
|
|
47
|
+
{
|
|
48
|
+
onClick: d,
|
|
49
|
+
"aria-label": t == null ? void 0 : t.rotateCounterclockwiseTooltip,
|
|
50
|
+
children: /* @__PURE__ */ r(n, { className: "rp-menu-item", content: t == null ? void 0 : t.rotateCounterclockwiseTooltip, children: [
|
|
51
|
+
/* @__PURE__ */ o("div", { className: "rp-menu-item-left", children: m || /* @__PURE__ */ o(p, { className: k["rp-rotate-counterclockwise"], "aria-hidden": "true" }) }),
|
|
52
|
+
t == null ? void 0 : t.rotateCounterclockwiseLabel
|
|
53
|
+
] })
|
|
54
|
+
}
|
|
55
|
+
),
|
|
56
|
+
/* @__PURE__ */ o(h, {})
|
|
43
57
|
] }) }) : null;
|
|
44
58
|
};
|
|
45
59
|
export {
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { useMemo as
|
|
3
|
-
import
|
|
4
|
-
import { G as
|
|
5
|
-
import { MenuItem as
|
|
1
|
+
import { jsx as i, Fragment as C, jsxs as n } from "react/jsx-runtime";
|
|
2
|
+
import { useMemo as f } from "react";
|
|
3
|
+
import e from "../../../../ui/RPTooltip.js";
|
|
4
|
+
import { G as R } from "../../../../../index-a48ec088.js";
|
|
5
|
+
import { MenuItem as c } from "../../MenuItem.js";
|
|
6
6
|
import { PageScrollingIcon as G } from "../../../../icons/PageScrollingIcon.js";
|
|
7
|
-
import { VerticalScrollingIcon as
|
|
8
|
-
import { HorizontalScrollingIcon as
|
|
9
|
-
import { useScrollModeContext as
|
|
10
|
-
import { ViewMode as
|
|
11
|
-
import { CheckIcon as
|
|
12
|
-
import { useViewModeContext as
|
|
13
|
-
import { useLocalizationContext as
|
|
7
|
+
import { VerticalScrollingIcon as O } from "../../../../icons/VerticalScrollingIcon.js";
|
|
8
|
+
import { HorizontalScrollingIcon as T } from "../../../../icons/HorizontalScrollingIcon.js";
|
|
9
|
+
import { useScrollModeContext as A } from "../../../../../contexts/ScrollModeContext.js";
|
|
10
|
+
import { ViewMode as L, ScrollMode as o } from "../../../../../utils/types.js";
|
|
11
|
+
import { CheckIcon as p } from "../../../../icons/CheckIcon.js";
|
|
12
|
+
import { useViewModeContext as _ } from "../../../../../contexts/ViewModeContext.js";
|
|
13
|
+
import { useLocalizationContext as E } from "../../../../../contexts/LocalizationContext.js";
|
|
14
14
|
import "../../../../../index-c9a2990a.js";
|
|
15
15
|
import "react-dom";
|
|
16
16
|
import "../../../../../index-808ea7bf.js";
|
|
@@ -18,35 +18,53 @@ import "../../../../../utils/withRef.js";
|
|
|
18
18
|
import "../../../../../clsx-0c6e471a.js";
|
|
19
19
|
import "../../../../../utils/appConsole.js";
|
|
20
20
|
import "../../../../../contexts/InitialStateContext.js";
|
|
21
|
-
import "../../../../../th_TH-
|
|
21
|
+
import "../../../../../th_TH-d1686d95.js";
|
|
22
22
|
import "../../../../../utils/hooks/useLocalization.js";
|
|
23
|
-
const
|
|
24
|
-
const { icons:
|
|
25
|
-
return I ? /* @__PURE__ */
|
|
26
|
-
/* @__PURE__ */
|
|
27
|
-
|
|
28
|
-
o == null ? void 0 : o.pageScrollingLabel,
|
|
29
|
-
n === i.PAGE_SCROLLING ? /* @__PURE__ */ r(c, { className: "rp-menu-item-right" }) : null
|
|
30
|
-
] }) }),
|
|
31
|
-
/* @__PURE__ */ r(e, { onClick: () => m(i.VERTICAL_SCROLLING), children: /* @__PURE__ */ t(l, { className: "rp-menu-item", content: o == null ? void 0 : o.verticalScrollingTooltip, children: [
|
|
32
|
-
/* @__PURE__ */ r("div", { className: "rp-menu-item-left", children: d || /* @__PURE__ */ r(R, {}) }),
|
|
33
|
-
o == null ? void 0 : o.verticalScrollingLabel,
|
|
34
|
-
n === i.VERTICAL_SCROLLING ? /* @__PURE__ */ r(c, { className: "rp-menu-item-right" }) : null
|
|
35
|
-
] }) }),
|
|
36
|
-
/* @__PURE__ */ r(
|
|
37
|
-
e,
|
|
23
|
+
const X = (h) => {
|
|
24
|
+
const { icons: S, isToolVisible: I = !0 } = h, { pageScrollIcon: d, verticalScrollIcon: a, horizontalScrollIcon: u } = S ?? {}, { viewMode: l } = _(), { scrollMode: t, setScrollMode: m } = A(), { localeMessages: r } = E(), N = f(() => l === L.DUAL_PAGE || l === L.DUAL_PAGE_WITH_COVER, [l]);
|
|
25
|
+
return I ? /* @__PURE__ */ i(C, { children: /* @__PURE__ */ n(R, { children: [
|
|
26
|
+
/* @__PURE__ */ i(
|
|
27
|
+
c,
|
|
38
28
|
{
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
29
|
+
onClick: () => m(o.PAGE_SCROLLING),
|
|
30
|
+
"aria-label": r == null ? void 0 : r.pageScrollingTooltip,
|
|
31
|
+
"aria-checked": t === o.PAGE_SCROLLING,
|
|
32
|
+
children: /* @__PURE__ */ n(e, { className: "rp-menu-item", content: r == null ? void 0 : r.pageScrollingTooltip, children: [
|
|
33
|
+
/* @__PURE__ */ i("div", { className: "rp-menu-item-left", children: d || /* @__PURE__ */ i(G, { "aria-hidden": "true" }) }),
|
|
34
|
+
r == null ? void 0 : r.pageScrollingLabel,
|
|
35
|
+
t === o.PAGE_SCROLLING ? /* @__PURE__ */ i(p, { className: "rp-menu-item-right", "aria-hidden": "true" }) : null
|
|
36
|
+
] })
|
|
37
|
+
}
|
|
38
|
+
),
|
|
39
|
+
/* @__PURE__ */ i(
|
|
40
|
+
c,
|
|
41
|
+
{
|
|
42
|
+
onClick: () => m(o.VERTICAL_SCROLLING),
|
|
43
|
+
"aria-label": r == null ? void 0 : r.verticalScrollingTooltip,
|
|
44
|
+
"aria-checked": t === o.VERTICAL_SCROLLING,
|
|
45
|
+
children: /* @__PURE__ */ n(e, { className: "rp-menu-item", content: r == null ? void 0 : r.verticalScrollingTooltip, children: [
|
|
46
|
+
/* @__PURE__ */ i("div", { className: "rp-menu-item-left", children: a || /* @__PURE__ */ i(O, { "aria-hidden": "true" }) }),
|
|
47
|
+
r == null ? void 0 : r.verticalScrollingLabel,
|
|
48
|
+
t === o.VERTICAL_SCROLLING ? /* @__PURE__ */ i(p, { className: "rp-menu-item-right", "aria-hidden": "true" }) : null
|
|
49
|
+
] })
|
|
50
|
+
}
|
|
51
|
+
),
|
|
52
|
+
/* @__PURE__ */ i(
|
|
53
|
+
c,
|
|
54
|
+
{
|
|
55
|
+
disabled: N,
|
|
56
|
+
onClick: () => m(o.HORIZONTAL_SCROLLING),
|
|
57
|
+
"aria-label": r == null ? void 0 : r.horizontalTooltip,
|
|
58
|
+
"aria-checked": t === o.HORIZONTAL_SCROLLING,
|
|
59
|
+
children: /* @__PURE__ */ n(e, { className: "rp-menu-item", content: r == null ? void 0 : r.horizontalTooltip, children: [
|
|
60
|
+
/* @__PURE__ */ i("div", { className: "rp-menu-item-left", children: u || /* @__PURE__ */ i(T, { "aria-hidden": "true" }) }),
|
|
61
|
+
r == null ? void 0 : r.horizontalLabel,
|
|
62
|
+
t === o.HORIZONTAL_SCROLLING ? /* @__PURE__ */ i(p, { className: "rp-menu-item-right", "aria-hidden": "true" }) : null
|
|
45
63
|
] })
|
|
46
64
|
}
|
|
47
65
|
)
|
|
48
66
|
] }) }) : null;
|
|
49
67
|
};
|
|
50
68
|
export {
|
|
51
|
-
|
|
69
|
+
X as ScrollModeTool
|
|
52
70
|
};
|
|
@@ -1,39 +1,55 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import
|
|
3
|
-
import { G as
|
|
1
|
+
import { jsx as o, Fragment as T, jsxs as e } from "react/jsx-runtime";
|
|
2
|
+
import p from "../../../../ui/RPTooltip.js";
|
|
3
|
+
import { G as f } from "../../../../../index-a48ec088.js";
|
|
4
4
|
import { TextSelectionDefaultIcon as x } from "../../../../icons/TextSelectionDefaultIcon.js";
|
|
5
5
|
import { HandModeDefaultIcon as S } from "../../../../icons/HandModeDefaultIcon.js";
|
|
6
|
-
import { CheckIcon as
|
|
7
|
-
import { MenuItem as
|
|
6
|
+
import { CheckIcon as d } from "../../../../icons/CheckIcon.js";
|
|
7
|
+
import { MenuItem as l } from "../../MenuItem.js";
|
|
8
8
|
import { SelectionMode as i } from "../../../../../utils/types.js";
|
|
9
9
|
import { MenuSeparator as N } from "../../MenuSeparator.js";
|
|
10
|
-
import { useSelectionModeContext as
|
|
11
|
-
import { useLocalizationContext as
|
|
10
|
+
import { useSelectionModeContext as I } from "../../../../../contexts/SelectionModeContext.js";
|
|
11
|
+
import { useLocalizationContext as b } from "../../../../../contexts/LocalizationContext.js";
|
|
12
12
|
import "react";
|
|
13
13
|
import "../../../../../index-c9a2990a.js";
|
|
14
14
|
import "react-dom";
|
|
15
15
|
import "../../../../../index-808ea7bf.js";
|
|
16
16
|
import "../../../../../utils/withRef.js";
|
|
17
17
|
import "../../../../../clsx-0c6e471a.js";
|
|
18
|
-
import "../../../../../th_TH-
|
|
18
|
+
import "../../../../../th_TH-d1686d95.js";
|
|
19
19
|
import "../../../../../utils/appConsole.js";
|
|
20
20
|
import "../../../../../utils/hooks/useLocalization.js";
|
|
21
|
-
const
|
|
22
|
-
const { icons:
|
|
23
|
-
return h ? /* @__PURE__ */
|
|
24
|
-
/* @__PURE__ */
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
21
|
+
const J = (a) => {
|
|
22
|
+
const { icons: u, isToolVisible: h = !0 } = a, { textSelectionIcon: n, handModeIcon: m } = u ?? {}, { selectionMode: r, setSelectionMode: c } = I(), { localeMessages: t } = b();
|
|
23
|
+
return h ? /* @__PURE__ */ o(T, { children: /* @__PURE__ */ e(f, { children: [
|
|
24
|
+
/* @__PURE__ */ o(
|
|
25
|
+
l,
|
|
26
|
+
{
|
|
27
|
+
onClick: () => c(i.TEXT),
|
|
28
|
+
"aria-label": t == null ? void 0 : t.textSelectionTooltip,
|
|
29
|
+
"aria-checked": r === i.TEXT,
|
|
30
|
+
children: /* @__PURE__ */ e(p, { className: "rp-menu-item", content: t == null ? void 0 : t.textSelectionTooltip, children: [
|
|
31
|
+
/* @__PURE__ */ o("div", { className: "rp-menu-item-left", children: n || /* @__PURE__ */ o(x, { "aria-hidden": "true" }) }),
|
|
32
|
+
t == null ? void 0 : t.textSelectionLabel,
|
|
33
|
+
r === i.TEXT ? /* @__PURE__ */ o(d, { className: "rp-menu-item-right", "aria-hidden": "true" }) : null
|
|
34
|
+
] })
|
|
35
|
+
}
|
|
36
|
+
),
|
|
37
|
+
/* @__PURE__ */ o(
|
|
38
|
+
l,
|
|
39
|
+
{
|
|
40
|
+
onClick: () => c(i.HAND),
|
|
41
|
+
"aria-label": t == null ? void 0 : t.handToolTooltip,
|
|
42
|
+
"aria-checked": r === i.HAND,
|
|
43
|
+
children: /* @__PURE__ */ e(p, { className: "rp-menu-item", content: t == null ? void 0 : t.handToolTooltip, children: [
|
|
44
|
+
/* @__PURE__ */ o("div", { className: "rp-menu-item-left", children: m || /* @__PURE__ */ o(S, { "aria-hidden": "true" }) }),
|
|
45
|
+
t == null ? void 0 : t.handToolLabel,
|
|
46
|
+
r === i.HAND ? /* @__PURE__ */ o(d, { className: "rp-menu-item-right", "aria-hidden": "true" }) : null
|
|
47
|
+
] })
|
|
48
|
+
}
|
|
49
|
+
),
|
|
50
|
+
/* @__PURE__ */ o(N, {})
|
|
35
51
|
] }) }) : null;
|
|
36
52
|
};
|
|
37
53
|
export {
|
|
38
|
-
|
|
54
|
+
J as SelectionModeTool
|
|
39
55
|
};
|
|
@@ -1,16 +1,17 @@
|
|
|
1
|
-
import { jsx as r, Fragment as
|
|
2
|
-
import { useMemo as
|
|
3
|
-
import
|
|
4
|
-
import { G
|
|
5
|
-
import { MenuSeparator as
|
|
6
|
-
import { MenuItem as
|
|
7
|
-
import { DualPageIcon as
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
1
|
+
import { jsx as r, Fragment as g, jsxs as e } from "react/jsx-runtime";
|
|
2
|
+
import { useMemo as L } from "react";
|
|
3
|
+
import n from "../../../../ui/RPTooltip.js";
|
|
4
|
+
import { G } from "../../../../../index-a48ec088.js";
|
|
5
|
+
import { MenuSeparator as T } from "../../MenuSeparator.js";
|
|
6
|
+
import { MenuItem as m } from "../../MenuItem.js";
|
|
7
|
+
import { DualPageIcon as b } from "../../../../icons/DualPageIcon.js";
|
|
8
|
+
import { DualPageWithCoverIcon as v } from "../../../../icons/DualPageWithCoverIcon.js";
|
|
9
|
+
import { SinglePageIcon as A } from "../../../../icons/SinglePageIcon.js";
|
|
10
|
+
import { useViewModeContext as D } from "../../../../../contexts/ViewModeContext.js";
|
|
11
|
+
import { ScrollMode as E, ViewMode as o } from "../../../../../utils/types.js";
|
|
12
|
+
import { CheckIcon as l } from "../../../../icons/CheckIcon.js";
|
|
13
|
+
import { useScrollModeContext as S } from "../../../../../contexts/ScrollModeContext.js";
|
|
14
|
+
import { useLocalizationContext as _ } from "../../../../../contexts/LocalizationContext.js";
|
|
14
15
|
import "../../../../../index-c9a2990a.js";
|
|
15
16
|
import "react-dom";
|
|
16
17
|
import "../../../../../index-808ea7bf.js";
|
|
@@ -18,24 +19,46 @@ import "../../../../../utils/withRef.js";
|
|
|
18
19
|
import "../../../../../clsx-0c6e471a.js";
|
|
19
20
|
import "../../../../../utils/appConsole.js";
|
|
20
21
|
import "../../../../../contexts/InitialStateContext.js";
|
|
21
|
-
import "../../../../../th_TH-
|
|
22
|
+
import "../../../../../th_TH-d1686d95.js";
|
|
22
23
|
import "../../../../../utils/hooks/useLocalization.js";
|
|
23
|
-
const
|
|
24
|
-
const { icons:
|
|
25
|
-
return
|
|
26
|
-
/* @__PURE__ */ r(
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
24
|
+
const M = (h) => {
|
|
25
|
+
const { icons: P, isToolVisible: f = !0 } = h, { singlePageIcon: a, dualPageIcon: d, dualPageWithCoverIcon: p } = P ?? {}, { viewMode: t, setDualPage: C, setDualPageWithCover: I, setSinglePage: N } = D(), { scrollMode: u } = S(), { localeMessages: i } = _(), c = L(() => [E.HORIZONTAL_SCROLLING].includes(u), [u]);
|
|
26
|
+
return f ? /* @__PURE__ */ r(g, { children: /* @__PURE__ */ e(G, { children: [
|
|
27
|
+
/* @__PURE__ */ r(
|
|
28
|
+
m,
|
|
29
|
+
{
|
|
30
|
+
onClick: N,
|
|
31
|
+
"aria-label": i == null ? void 0 : i.singlePageTooltip,
|
|
32
|
+
"aria-checked": t === o.SINGLE_PAGE,
|
|
33
|
+
children: /* @__PURE__ */ e(n, { className: "rp-menu-item", content: i == null ? void 0 : i.singlePageTooltip, children: [
|
|
34
|
+
/* @__PURE__ */ r("div", { className: "rp-menu-item-left", children: a || /* @__PURE__ */ r(A, { "aria-hidden": "true" }) }),
|
|
35
|
+
i == null ? void 0 : i.singlePageLabel,
|
|
36
|
+
t === o.SINGLE_PAGE ? /* @__PURE__ */ r(l, { className: "rp-menu-item-right", "aria-hidden": "true" }) : null
|
|
37
|
+
] })
|
|
38
|
+
}
|
|
39
|
+
),
|
|
40
|
+
/* @__PURE__ */ r(
|
|
41
|
+
m,
|
|
42
|
+
{
|
|
43
|
+
disabled: c,
|
|
44
|
+
onClick: C,
|
|
45
|
+
"aria-label": i == null ? void 0 : i.dualPageTooltip,
|
|
46
|
+
"aria-checked": t === o.DUAL_PAGE,
|
|
47
|
+
children: /* @__PURE__ */ e(n, { className: "rp-menu-item", content: i == null ? void 0 : i.dualPageTooltip, children: [
|
|
48
|
+
/* @__PURE__ */ r("div", { className: "rp-menu-item-left", children: d || /* @__PURE__ */ r(b, { "aria-hidden": "true" }) }),
|
|
49
|
+
i == null ? void 0 : i.dualPageLabel,
|
|
50
|
+
t === o.DUAL_PAGE ? /* @__PURE__ */ r(l, { className: "rp-menu-item-right", "aria-hidden": "true" }) : null
|
|
51
|
+
] })
|
|
52
|
+
}
|
|
53
|
+
),
|
|
54
|
+
/* @__PURE__ */ r(m, { disabled: c, onClick: I, children: /* @__PURE__ */ e(n, { className: "rp-menu-item", content: i == null ? void 0 : i.dualPageWithCoverTooltip, children: [
|
|
55
|
+
/* @__PURE__ */ r("div", { className: "rp-menu-item-left", children: p || /* @__PURE__ */ r(v, {}) }),
|
|
56
|
+
i == null ? void 0 : i.dualPageWithCoverLabel,
|
|
57
|
+
t === o.DUAL_PAGE_WITH_COVER ? /* @__PURE__ */ r(l, { className: "rp-menu-item-right" }) : null
|
|
30
58
|
] }) }),
|
|
31
|
-
/* @__PURE__ */ r(
|
|
32
|
-
/* @__PURE__ */ r("div", { className: "rp-menu-item-left", children: e || /* @__PURE__ */ r(C, {}) }),
|
|
33
|
-
o == null ? void 0 : o.dualPageLabel,
|
|
34
|
-
m === c.DUAL_PAGE ? /* @__PURE__ */ r(u, { className: "rp-menu-item-right" }) : null
|
|
35
|
-
] }) }),
|
|
36
|
-
/* @__PURE__ */ r(L, {})
|
|
59
|
+
/* @__PURE__ */ r(T, {})
|
|
37
60
|
] }) }) : null;
|
|
38
61
|
};
|
|
39
62
|
export {
|
|
40
|
-
|
|
63
|
+
M as ViewModeTool
|
|
41
64
|
};
|