@react-pdf-kit/viewer 2.0.0-beta.10 → 2.0.0-beta.12

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.
Files changed (181) hide show
  1. package/dist/{Combination-54a77a7a.js → Combination-136ff99c.js} +184 -187
  2. package/dist/Paginate.module-4eef00aa.js +8 -0
  3. package/dist/RPLayout.module-b4b23e29.js +14 -0
  4. package/dist/RPSplitter-f6acf13b.js +71 -0
  5. package/dist/ToolbarLayout.module-6e339802.js +12 -0
  6. package/dist/assets/style.css +1 -1
  7. package/dist/assets/style.js +32 -30
  8. package/dist/components/RPController.js +1 -1
  9. package/dist/components/RPDropFileZone.js +1 -1
  10. package/dist/components/RPPages.js +544 -497
  11. package/dist/components/RPProvider.js +32 -22
  12. package/dist/components/icons/DualPageWithCoverIcon.js +22 -0
  13. package/dist/components/layout/LayoutContainer.js +1 -1
  14. package/dist/components/layout/LayoutWrapper.js +1 -1
  15. package/dist/components/layout/RPDefaultLayout.js +58 -36
  16. package/dist/components/layout/RPLayout.js +32 -28
  17. package/dist/components/layout/SkipLink.js +29 -0
  18. package/dist/components/layout/WrapperLayout.js +1 -1
  19. package/dist/components/layout/sidebar/RPSidebar.js +32 -37
  20. package/dist/components/layout/sidebar/RPSplitter.js +6 -59
  21. package/dist/components/layout/sidebar/Thumbnail.js +57 -48
  22. package/dist/components/layout/sidebar/Thumbnails.js +9 -9
  23. package/dist/components/layout/toolbar/DarkModeTool.js +1 -1
  24. package/dist/components/layout/toolbar/DocumentDialog.js +28 -28
  25. package/dist/components/layout/toolbar/DocumentProperties.js +3 -3
  26. package/dist/components/layout/toolbar/FileDownloadTool.js +3 -3
  27. package/dist/components/layout/toolbar/FileUploadTool.js +3 -3
  28. package/dist/components/layout/toolbar/FullScreenTool.js +3 -3
  29. package/dist/components/layout/toolbar/MenuItem.js +2 -2
  30. package/dist/components/layout/toolbar/MenuSeparator.js +2 -2
  31. package/dist/components/layout/toolbar/MostPageTool.js +3 -3
  32. package/dist/components/layout/toolbar/OtherTool.js +43 -34
  33. package/dist/components/layout/toolbar/Paginate.js +53 -46
  34. package/dist/components/layout/toolbar/PrintTool.js +3 -3
  35. package/dist/components/layout/toolbar/RPMenuItem.js +2 -2
  36. package/dist/components/layout/toolbar/RPMoreOptions.js +45 -44
  37. package/dist/components/layout/toolbar/RPToolbar.js +7 -6
  38. package/dist/components/layout/toolbar/RPToolbarEnd.js +6 -5
  39. package/dist/components/layout/toolbar/RotateTool.js +3 -3
  40. package/dist/components/layout/toolbar/ScrollModeTool.js +37 -37
  41. package/dist/components/layout/toolbar/SearchCloseButton.js +1 -1
  42. package/dist/components/layout/toolbar/SearchResultNavigator.js +44 -24
  43. package/dist/components/layout/toolbar/SearchTool.js +138 -117
  44. package/dist/components/layout/toolbar/SelectionModeTool.js +3 -3
  45. package/dist/components/layout/toolbar/ThumbnailTool.js +1 -1
  46. package/dist/components/layout/toolbar/ToolbarCustom.js +43 -27
  47. package/dist/components/layout/toolbar/ToolbarDefault.js +42 -33
  48. package/dist/components/layout/toolbar/ToolbarLayout.js +9 -8
  49. package/dist/components/layout/toolbar/ViewModeTool.js +43 -34
  50. package/dist/components/layout/toolbar/ZoomTool.js +3 -3
  51. package/dist/components/layout/toolbar/tools/DocumentPropertiesTool.js +2 -2
  52. package/dist/components/layout/toolbar/tools/DualPageTool.js +3 -3
  53. package/dist/components/layout/toolbar/tools/DualPageWithCoverTool.js +202 -0
  54. package/dist/components/layout/toolbar/tools/FileDownloadTool.js +6 -6
  55. package/dist/components/layout/toolbar/tools/FileUploadTool.js +5 -5
  56. package/dist/components/layout/toolbar/tools/FirstPageTool.js +197 -0
  57. package/dist/components/layout/toolbar/tools/FullScreenTool.js +16 -15
  58. package/dist/components/layout/toolbar/tools/HorizontalScrollingTool.js +37 -0
  59. package/dist/components/layout/toolbar/tools/InputPageTool.js +35 -28
  60. package/dist/components/layout/toolbar/tools/LastPageTool.js +197 -0
  61. package/dist/components/layout/toolbar/tools/NextPageTool.js +9 -8
  62. package/dist/components/layout/toolbar/tools/PageScrollingTool.js +37 -0
  63. package/dist/components/layout/toolbar/tools/PreviousPageTool.js +15 -14
  64. package/dist/components/layout/toolbar/tools/PrintTool.js +4 -4
  65. package/dist/components/layout/toolbar/tools/RotateClockwiseTool.js +12 -5
  66. package/dist/components/layout/toolbar/tools/RotateCounterclockwiseTool.js +9 -9
  67. package/dist/components/layout/toolbar/tools/SelectionModeSwitcherTool.js +18 -10
  68. package/dist/components/layout/toolbar/tools/SinglePageTool.js +2 -2
  69. package/dist/components/layout/toolbar/tools/ThemeSwitcherTool.js +10 -2
  70. package/dist/components/layout/toolbar/tools/ThumbnailTool.js +13 -12
  71. package/dist/components/layout/toolbar/tools/VerticalScrollingTool.js +37 -0
  72. package/dist/components/layout/toolbar/tools/ZoomInTool.js +15 -14
  73. package/dist/components/layout/toolbar/tools/ZoomLevelDisplay.js +1 -1
  74. package/dist/components/layout/toolbar/tools/ZoomLevelTool.js +75 -41
  75. package/dist/components/layout/toolbar/tools/ZoomOutTool.js +12 -11
  76. package/dist/components/layout/toolbar/tools/defaults/RPHorizontalBar.js +7 -6
  77. package/dist/components/layout/toolbar/tools/defaults/RPVerticalBar.js +1 -1
  78. package/dist/components/layout/toolbar/tools/more-options/DocumentProperties.js +11 -11
  79. package/dist/components/layout/toolbar/tools/more-options/FileDownloadTool.js +22 -15
  80. package/dist/components/layout/toolbar/tools/more-options/FileUploadTool.js +20 -13
  81. package/dist/components/layout/toolbar/tools/more-options/FullScreenTool.js +22 -14
  82. package/dist/components/layout/toolbar/tools/more-options/MostPageTool.js +35 -19
  83. package/dist/components/layout/toolbar/tools/more-options/PrintTool.js +21 -14
  84. package/dist/components/layout/toolbar/tools/more-options/RotateTool.js +33 -19
  85. package/dist/components/layout/toolbar/tools/more-options/ScrollModeTool.js +54 -36
  86. package/dist/components/layout/toolbar/tools/more-options/SelectionModeTool.js +39 -23
  87. package/dist/components/layout/toolbar/tools/more-options/ViewModeTool.js +52 -29
  88. package/dist/components/page/AnnotationLayer.js +76 -69
  89. package/dist/components/page/CanvasLayer.js +1 -1
  90. package/dist/components/page/CustomElement.js +1 -1
  91. package/dist/components/page/DualPage.js +1 -1
  92. package/dist/components/page/DualPageWithCover.js +131 -0
  93. package/dist/components/page/RPPage.js +1 -1
  94. package/dist/components/page/SinglePage.js +1 -1
  95. package/dist/components/page/TextHighlightLayer.js +1 -1
  96. package/dist/components/page/TextLayer.js +1 -1
  97. package/dist/components/ui/Button.js +14 -12
  98. package/dist/components/ui/Checkbox.js +84 -77
  99. package/dist/components/ui/DropDown.js +2 -2
  100. package/dist/components/ui/Input.js +12 -11
  101. package/dist/components/ui/LoadingIndicator.js +1 -1
  102. package/dist/components/ui/PasswordModal.js +44 -30
  103. package/dist/contexts/DimensionPagesContext.js +1 -1
  104. package/dist/contexts/DropFileZoneContext.js +1 -1
  105. package/dist/contexts/ElementPageContext.js +1 -1
  106. package/dist/contexts/EventCallbackContext.js +12 -8
  107. package/dist/contexts/FileInputContext.js +1 -1
  108. package/dist/contexts/HighlightContext.js +1 -1
  109. package/dist/contexts/LocalizationContext.js +1 -1
  110. package/dist/contexts/PagesRotateContext.js +1 -1
  111. package/dist/contexts/PaginationContext.js +1 -1
  112. package/dist/contexts/PrintContext.js +1 -1
  113. package/dist/contexts/RPDocumentContext.js +1 -1
  114. package/dist/contexts/RenderQueueProvider.js +1 -1
  115. package/dist/contexts/RotationContext.js +1 -1
  116. package/dist/contexts/ScrollModeContext.js +1 -1
  117. package/dist/contexts/SearchContext.js +1 -1
  118. package/dist/contexts/SelectionModeContext.js +1 -1
  119. package/dist/contexts/ThumbnailsContext.js +1 -1
  120. package/dist/contexts/ViewModeContext.js +19 -15
  121. package/dist/contexts/ZoomContext.js +1 -1
  122. package/dist/de_DE-a553b162.js +489 -0
  123. package/dist/{index-4baea9b5.js → index-61f59539.js} +1 -1
  124. package/dist/main.js +115 -99
  125. package/dist/types/components/icons/DualPageWithCoverIcon.d.ts +2 -0
  126. package/dist/types/components/layout/LayoutContainer.d.ts +1 -5
  127. package/dist/types/components/layout/LayoutWrapper.d.ts +1 -5
  128. package/dist/types/components/layout/SkipLink.d.ts +7 -0
  129. package/dist/types/components/layout/sidebar/Thumbnails.d.ts +1 -3
  130. package/dist/types/components/layout/toolbar/RPToolbar.d.ts +1 -3
  131. package/dist/types/components/layout/toolbar/tools/DualPageWithCoverTool.d.ts +3 -0
  132. package/dist/types/components/layout/toolbar/tools/FirstPageTool.d.ts +3 -0
  133. package/dist/types/components/layout/toolbar/tools/HorizontalScrollingTool.d.ts +3 -0
  134. package/dist/types/components/layout/toolbar/tools/LastPageTool.d.ts +3 -0
  135. package/dist/types/components/layout/toolbar/tools/PageScrollingTool.d.ts +3 -0
  136. package/dist/types/components/layout/toolbar/tools/VerticalScrollingTool.d.ts +3 -0
  137. package/dist/types/components/page/DualPageWithCover.d.ts +5 -0
  138. package/dist/types/components/page/RPPage.d.ts +1 -3
  139. package/dist/types/components/ui/Button.d.ts +1 -3
  140. package/dist/types/components/ui/Checkbox.d.ts +1 -0
  141. package/dist/types/components/ui/Input.d.ts +1 -3
  142. package/dist/types/components/ui/RPTooltip.d.ts +1 -3
  143. package/dist/types/locales/de_DE.json.d.ts +83 -0
  144. package/dist/types/locales/en_US.json.d.ts +2 -0
  145. package/dist/types/locales/it_IT.json.d.ts +2 -0
  146. package/dist/types/locales/pt_PT.json.d.ts +2 -0
  147. package/dist/types/locales/th_TH.json.d.ts +2 -0
  148. package/dist/types/locales/zh_CN.json.d.ts +2 -0
  149. package/dist/types/main.d.ts +7 -1
  150. package/dist/types/utils/annotations.d.ts +10 -1
  151. package/dist/types/utils/calculatePage.d.ts +3 -3
  152. package/dist/types/utils/hooks/usePresentPage.d.ts +2 -1
  153. package/dist/types/utils/hooks/useTextSelection.d.ts +7 -0
  154. package/dist/types/utils/types.d.ts +34 -3
  155. package/dist/types/utils/withRef.d.ts +5 -4
  156. package/dist/utils/annotations.js +145 -150
  157. package/dist/utils/calculatePage.js +17 -11
  158. package/dist/utils/getZoomLevel.js +9 -9
  159. package/dist/utils/highlight.js +139 -139
  160. package/dist/utils/hooks/useFileDownload.js +1 -1
  161. package/dist/utils/hooks/useLicense.js +1 -1
  162. package/dist/utils/hooks/useLoadPdf.js +1 -1
  163. package/dist/utils/hooks/useLocalization.js +12 -11
  164. package/dist/utils/hooks/usePageRotateContext.js +1 -1
  165. package/dist/utils/hooks/usePaginate.js +1 -1
  166. package/dist/utils/hooks/usePinch.js +1 -1
  167. package/dist/utils/hooks/usePresentPage.js +45 -45
  168. package/dist/utils/hooks/usePrint.js +1 -1
  169. package/dist/utils/hooks/useRotate.js +1 -1
  170. package/dist/utils/hooks/useScrollToPage.js +1 -1
  171. package/dist/utils/hooks/useSearch.js +76 -62
  172. package/dist/utils/hooks/useTextSelection.js +76 -0
  173. package/dist/utils/hooks/useThumbnail.js +1 -1
  174. package/dist/utils/hooks/useVirtualReactWindow.js +60 -42
  175. package/dist/utils/types.js +14 -13
  176. package/dist/utils/withRef.js +5 -5
  177. package/package.json +5 -6
  178. package/dist/Paginate.module-206a7d7d.js +0 -8
  179. package/dist/RPLayout.module-967bf4bc.js +0 -13
  180. package/dist/ToolbarLayout.module-1fee0a18.js +0 -11
  181. package/dist/th_TH-d627cd51.js +0 -398
@@ -1,12 +1,12 @@
1
- import { jsxs as p, jsx as t } from "react/jsx-runtime";
1
+ import { jsxs as p, jsx as o } from "react/jsx-runtime";
2
2
  import { MenuItem as a } from "../../MenuItem.js";
3
- import s from "../../../../ui/RPTooltip.js";
3
+ import l from "../../../../ui/RPTooltip.js";
4
4
  import { c as C } from "../../../../../MostPageTool.module-13578ad6.js";
5
- import { G } from "../../../../../index-4baea9b5.js";
5
+ import { G } from "../../../../../index-61f59539.js";
6
6
  import { u as L } from "../../../../../PaginationContext-9217cab4.js";
7
- import { useMemo as l, useCallback as c } from "react";
7
+ import { useMemo as d, useCallback as c } from "react";
8
8
  import { MenuSeparator as N } from "../../MenuSeparator.js";
9
- import { GoToDownIcon as d } from "../../../../icons/GoToDownIcon.js";
9
+ import { GoToDownIcon as s } from "../../../../icons/GoToDownIcon.js";
10
10
  import { useLocalizationContext as v } from "../../../../../contexts/LocalizationContext.js";
11
11
  import "../../../../../clsx-0c6e471a.js";
12
12
  import "../../../../../index-c0faa594.js";
@@ -15,9 +15,9 @@ import "../../../../../index-e3ee9457.js";
15
15
  import "../../../../../floating-ui.react-dom-5ec29bd6.js";
16
16
  import "../../../../../index-655864a7.js";
17
17
  import "../../../../../utils/withRef.js";
18
- import "../../../../../Combination-54a77a7a.js";
18
+ import "../../../../../Combination-136ff99c.js";
19
19
  import "../../../../../utils/types.js";
20
- import "../../../../../th_TH-d627cd51.js";
20
+ import "../../../../../de_DE-a553b162.js";
21
21
  import "../../../../../contexts/ScrollModeContext.js";
22
22
  import "../../../../../utils/appConsole.js";
23
23
  import "../../../../../contexts/InitialStateContext.js";
@@ -48,24 +48,40 @@ import "../../../../../contexts/SmoothScrollContext.js";
48
48
  import "../../../../../utils/getScrollDistance.js";
49
49
  import "../../../../../utils/calculatePage.js";
50
50
  import "../../../../../utils/hooks/useLocalization.js";
51
- const f = { width: "100%" }, Lo = (u) => {
52
- const { icons: P, isToolVisible: h = !0 } = u, { firstPageIcon: e, lastPageIcon: n } = P ?? {}, { goToPage: i, totalPages: r, focusedPage: m } = L(), { localeMessages: o } = v(), T = l(() => m === 1, [m]), g = l(() => m === r, [m, r]), b = c(() => {
51
+ const u = { width: "100%" }, Gt = (f) => {
52
+ const { icons: P, isToolVisible: h = !0 } = f, { firstPageIcon: n, lastPageIcon: e } = P ?? {}, { goToPage: i, totalPages: r, focusedPage: m } = L(), { localeMessages: t } = v(), T = d(() => m === 1, [m]), b = d(() => m === r, [m, r]), g = c(() => {
53
53
  i(1);
54
54
  }, [i]), x = c(() => {
55
55
  i(r);
56
56
  }, [i, r]);
57
57
  return h ? /* @__PURE__ */ p(G, { children: [
58
- /* @__PURE__ */ t(a, { onClick: b, children: /* @__PURE__ */ t(s, { content: o == null ? void 0 : o.firstPageTooltip, style: f, children: /* @__PURE__ */ p("div", { className: "rp-menu-item", "aria-disabled": T, children: [
59
- /* @__PURE__ */ t("div", { className: "rp-menu-item-left", children: e || /* @__PURE__ */ t(d, { className: C["rp-go-to-Top"] }) }),
60
- /* @__PURE__ */ t("span", { children: o == null ? void 0 : o.firstPageLabel })
61
- ] }) }) }),
62
- /* @__PURE__ */ t(a, { onClick: x, children: /* @__PURE__ */ t(s, { content: o == null ? void 0 : o.lastPageTooltip, style: f, children: /* @__PURE__ */ p("div", { className: "rp-menu-item", "aria-disabled": g, children: [
63
- /* @__PURE__ */ t("div", { className: "rp-menu-item-left", children: n || /* @__PURE__ */ t(d, {}) }),
64
- /* @__PURE__ */ t("span", { children: o == null ? void 0 : o.lastPageLabel })
65
- ] }) }) }),
66
- /* @__PURE__ */ t(N, {})
58
+ /* @__PURE__ */ o(
59
+ a,
60
+ {
61
+ onClick: g,
62
+ disabled: T,
63
+ "aria-label": t == null ? void 0 : t.firstPageTooltip,
64
+ children: /* @__PURE__ */ o(l, { content: t == null ? void 0 : t.firstPageTooltip, style: u, children: /* @__PURE__ */ p("div", { className: "rp-menu-item", children: [
65
+ /* @__PURE__ */ o("div", { className: "rp-menu-item-left", children: n || /* @__PURE__ */ o(s, { className: C["rp-go-to-Top"], "aria-hidden": "true" }) }),
66
+ /* @__PURE__ */ o("span", { children: t == null ? void 0 : t.firstPageLabel })
67
+ ] }) })
68
+ }
69
+ ),
70
+ /* @__PURE__ */ o(
71
+ a,
72
+ {
73
+ onClick: x,
74
+ disabled: b,
75
+ "aria-label": t == null ? void 0 : t.lastPageTooltip,
76
+ children: /* @__PURE__ */ o(l, { content: t == null ? void 0 : t.lastPageTooltip, style: u, children: /* @__PURE__ */ p("div", { className: "rp-menu-item", children: [
77
+ /* @__PURE__ */ o("div", { className: "rp-menu-item-left", children: e || /* @__PURE__ */ o(s, { "aria-hidden": "true" }) }),
78
+ /* @__PURE__ */ o("span", { children: t == null ? void 0 : t.lastPageLabel })
79
+ ] }) })
80
+ }
81
+ ),
82
+ /* @__PURE__ */ o(N, {})
67
83
  ] }) : null;
68
84
  };
69
85
  export {
70
- Lo as MostPageTool
86
+ Gt as MostPageTool
71
87
  };
@@ -1,9 +1,9 @@
1
- import { jsx as o, jsxs as e } from "react/jsx-runtime";
1
+ import { jsx as i, jsxs as e } from "react/jsx-runtime";
2
2
  import { PrintDefaultTool as l } from "../../../../icons/PrintDefaultIcon.js";
3
- import { usePrintContext as c } from "../../../../../contexts/PrintContext.js";
3
+ import { usePrintContext as u } from "../../../../../contexts/PrintContext.js";
4
4
  import { useViewportContext as f } from "../../../../../contexts/ViewportContext.js";
5
- import { useLocalizationContext as u } from "../../../../../contexts/LocalizationContext.js";
6
- import { MenuItem as s } from "../../MenuItem.js";
5
+ import { useLocalizationContext as c } 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 "../../../../../utils/hooks/usePrint.js";
@@ -11,7 +11,7 @@ import "../../../../../contexts/RPDocumentContext.js";
11
11
  import "../../../../../utils/hooks/useLoadPdf.js";
12
12
  import "pdfjs-dist";
13
13
  import "../../../../../utils/types.js";
14
- import "../../../../../th_TH-d627cd51.js";
14
+ import "../../../../../de_DE-a553b162.js";
15
15
  import "../../../../../utils/getThumbnailViewport.js";
16
16
  import "../../../../../contexts/ConfigContext.js";
17
17
  import "../../../../../contexts/DocumentPasswordContext.js";
@@ -21,24 +21,31 @@ import "../../../../../utils/convertPdfDate.js";
21
21
  import "../../../../../utils/formatFileSize.js";
22
22
  import "../../../../../contexts/LayoutContainerContext.js";
23
23
  import "../../../../../utils/hooks/useLocalization.js";
24
- import "../../../../../index-4baea9b5.js";
24
+ import "../../../../../index-61f59539.js";
25
25
  import "../../../../../index-c0faa594.js";
26
26
  import "react-dom";
27
27
  import "../../../../../index-e3ee9457.js";
28
- import "../../../../../Combination-54a77a7a.js";
28
+ import "../../../../../Combination-136ff99c.js";
29
29
  import "../../../../../floating-ui.react-dom-5ec29bd6.js";
30
30
  import "../../../../../index-655864a7.js";
31
31
  import "../../../../../clsx-0c6e471a.js";
32
32
  import "../../../../../utils/withRef.js";
33
33
  const W = (m) => {
34
- const { icon: r, isToolVisible: p = !0 } = m, { print: n } = c(), { isSmallScreen: i } = f(), { localeMessages: t } = u();
35
- if (!p || !i)
34
+ const { icon: r, isToolVisible: p = !0 } = m, { print: n } = u(), { isSmallScreen: o } = f(), { localeMessages: t } = c();
35
+ if (!p || !o)
36
36
  return null;
37
- if (i)
38
- return /* @__PURE__ */ o(s, { onClick: n, children: /* @__PURE__ */ e(x, { className: "rp-menu-item", content: t == null ? void 0 : t.printTooltip, children: [
39
- /* @__PURE__ */ o("div", { className: "rp-menu-item-left", children: r || /* @__PURE__ */ o(l, {}) }),
40
- t == null ? void 0 : t.printLabel
41
- ] }) });
37
+ if (o)
38
+ return /* @__PURE__ */ i(
39
+ d,
40
+ {
41
+ onClick: n,
42
+ "aria-label": t == null ? void 0 : t.printTooltip,
43
+ children: /* @__PURE__ */ e(x, { className: "rp-menu-item", content: t == null ? void 0 : t.printTooltip, children: [
44
+ /* @__PURE__ */ i("div", { className: "rp-menu-item-left", children: r || /* @__PURE__ */ i(l, { "aria-hidden": "true" }) }),
45
+ t == null ? void 0 : t.printLabel
46
+ ] })
47
+ }
48
+ );
42
49
  };
43
50
  export {
44
51
  W as PrintTool
@@ -1,12 +1,12 @@
1
- import { jsx as t, Fragment as C, jsxs as r } from "react/jsx-runtime";
2
- import { c as d } from "../../../../../RotateTool.module-67946714.js";
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 p from "../../../../ui/RPTooltip.js";
5
- import { G as f } from "../../../../../index-4baea9b5.js";
5
+ import { G as f } from "../../../../../index-61f59539.js";
6
6
  import { ClockwiseIcon as n } from "../../../../icons/ClockwiseIcon.js";
7
- import { MenuSeparator as k } from "../../MenuSeparator.js";
8
- import { useRotate as h } from "../../../../../utils/hooks/useRotate.js";
9
- import { useLocalizationContext as w } from "../../../../../contexts/LocalizationContext.js";
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-c0faa594.js";
@@ -15,7 +15,7 @@ import "../../../../../index-e3ee9457.js";
15
15
  import "../../../../../floating-ui.react-dom-5ec29bd6.js";
16
16
  import "../../../../../index-655864a7.js";
17
17
  import "../../../../../utils/withRef.js";
18
- import "../../../../../Combination-54a77a7a.js";
18
+ import "../../../../../Combination-136ff99c.js";
19
19
  import "../../../../../contexts/RotationContext.js";
20
20
  import "../../../../../utils/appConsole.js";
21
21
  import "../../../../../contexts/InitialStateContext.js";
@@ -23,7 +23,7 @@ import "../../../../../contexts/RPDocumentContext.js";
23
23
  import "../../../../../utils/hooks/useLoadPdf.js";
24
24
  import "pdfjs-dist";
25
25
  import "../../../../../utils/types.js";
26
- import "../../../../../th_TH-d627cd51.js";
26
+ import "../../../../../de_DE-a553b162.js";
27
27
  import "../../../../../utils/getThumbnailViewport.js";
28
28
  import "../../../../../contexts/ConfigContext.js";
29
29
  import "../../../../../contexts/DocumentPasswordContext.js";
@@ -32,17 +32,31 @@ import "../../../../../utils/convertPdfDate.js";
32
32
  import "../../../../../utils/formatFileSize.js";
33
33
  import "../../../../../utils/hooks/useLocalization.js";
34
34
  const M = (c) => {
35
- const { icons: l, isToolVisible: a = !0 } = c, { rotateClockwiseIcon: i, rotateCounterClockwiseIcon: m } = l ?? {}, { handleRotateClockwise: u, handleRotateCounterclockwise: s } = h(), { localeMessages: o } = w();
36
- return a ? /* @__PURE__ */ t(C, { children: /* @__PURE__ */ r(f, { children: [
37
- /* @__PURE__ */ t(e, { onClick: u, children: /* @__PURE__ */ r(p, { className: "rp-menu-item", content: o == null ? void 0 : o.rotateClockwiseTooltip, children: [
38
- /* @__PURE__ */ t("div", { className: "rp-menu-item-left", children: i || /* @__PURE__ */ t(n, {}) }),
39
- o == null ? void 0 : o.rotateClockwiseLabel
40
- ] }) }),
41
- /* @__PURE__ */ t(e, { onClick: s, children: /* @__PURE__ */ r(p, { className: "rp-menu-item", content: o == null ? void 0 : o.rotateCounterclockwiseTooltip, children: [
42
- /* @__PURE__ */ t("div", { className: "rp-menu-item-left", children: m || /* @__PURE__ */ t(n, { className: d["rp-rotate-counterclockwise"] }) }),
43
- o == null ? void 0 : o.rotateCounterclockwiseLabel
44
- ] }) }),
45
- /* @__PURE__ */ t(k, {})
35
+ const { icons: l, isToolVisible: a = !0 } = c, { rotateClockwiseIcon: i, rotateCounterClockwiseIcon: m } = l ?? {}, { handleRotateClockwise: u, handleRotateCounterclockwise: d } = w(), { localeMessages: t } = s();
36
+ return a ? /* @__PURE__ */ o(C, { children: /* @__PURE__ */ r(f, { children: [
37
+ /* @__PURE__ */ o(
38
+ e,
39
+ {
40
+ onClick: u,
41
+ "aria-label": t == null ? void 0 : t.rotateClockwiseTooltip,
42
+ children: /* @__PURE__ */ r(p, { className: "rp-menu-item", content: t == null ? void 0 : t.rotateClockwiseTooltip, children: [
43
+ /* @__PURE__ */ o("div", { className: "rp-menu-item-left", children: i || /* @__PURE__ */ o(n, { "aria-hidden": "true" }) }),
44
+ t == null ? void 0 : t.rotateClockwiseLabel
45
+ ] })
46
+ }
47
+ ),
48
+ /* @__PURE__ */ o(
49
+ e,
50
+ {
51
+ onClick: d,
52
+ "aria-label": t == null ? void 0 : t.rotateCounterclockwiseTooltip,
53
+ children: /* @__PURE__ */ r(p, { className: "rp-menu-item", content: t == null ? void 0 : t.rotateCounterclockwiseTooltip, children: [
54
+ /* @__PURE__ */ o("div", { className: "rp-menu-item-left", children: m || /* @__PURE__ */ o(n, { className: k["rp-rotate-counterclockwise"], "aria-hidden": "true" }) }),
55
+ t == null ? void 0 : t.rotateCounterclockwiseLabel
56
+ ] })
57
+ }
58
+ ),
59
+ /* @__PURE__ */ o(h, {})
46
60
  ] }) }) : null;
47
61
  };
48
62
  export {
@@ -1,55 +1,73 @@
1
- import { jsx as r, Fragment as f, jsxs as t } from "react/jsx-runtime";
2
- import { useMemo as N } from "react";
3
- import l from "../../../../ui/RPTooltip.js";
4
- import { G as C } from "../../../../../index-4baea9b5.js";
5
- import { MenuItem as e } from "../../MenuItem.js";
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-61f59539.js";
5
+ import { MenuItem as c } from "../../MenuItem.js";
6
6
  import { PageScrollingIcon as G } from "../../../../icons/PageScrollingIcon.js";
7
- import { VerticalScrollingIcon as R } from "../../../../icons/VerticalScrollingIcon.js";
8
- import { HorizontalScrollingIcon as O } from "../../../../icons/HorizontalScrollingIcon.js";
9
- import { useScrollModeContext as T } from "../../../../../contexts/ScrollModeContext.js";
10
- import { ViewMode as A, ScrollMode as i } from "../../../../../utils/types.js";
11
- import { CheckIcon as c } from "../../../../icons/CheckIcon.js";
12
- import { useViewModeContext as v } from "../../../../../contexts/ViewModeContext.js";
13
- import { useLocalizationContext as _ } from "../../../../../contexts/LocalizationContext.js";
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-c0faa594.js";
15
15
  import "react-dom";
16
16
  import "../../../../../index-e3ee9457.js";
17
17
  import "../../../../../floating-ui.react-dom-5ec29bd6.js";
18
18
  import "../../../../../index-655864a7.js";
19
19
  import "../../../../../utils/withRef.js";
20
- import "../../../../../Combination-54a77a7a.js";
20
+ import "../../../../../Combination-136ff99c.js";
21
21
  import "../../../../../clsx-0c6e471a.js";
22
22
  import "../../../../../utils/appConsole.js";
23
23
  import "../../../../../contexts/InitialStateContext.js";
24
- import "../../../../../th_TH-d627cd51.js";
24
+ import "../../../../../de_DE-a553b162.js";
25
25
  import "../../../../../utils/hooks/useLocalization.js";
26
- const Y = (S) => {
27
- const { icons: h, isToolVisible: I = !0 } = S, { pageScrollIcon: p, verticalScrollIcon: d, horizontalScrollIcon: u } = h ?? {}, { viewMode: L } = v(), { scrollMode: m, setScrollMode: n } = T(), { localeMessages: o } = _(), a = N(() => L === A.DUAL_PAGE, [L]);
28
- return I ? /* @__PURE__ */ r(f, { children: /* @__PURE__ */ t(C, { children: [
29
- /* @__PURE__ */ r(e, { onClick: () => n(i.PAGE_SCROLLING), children: /* @__PURE__ */ t(l, { className: "rp-menu-item", content: o == null ? void 0 : o.pageScrollingTooltip, children: [
30
- /* @__PURE__ */ r("div", { className: "rp-menu-item-left", children: p || /* @__PURE__ */ r(G, {}) }),
31
- o == null ? void 0 : o.pageScrollingLabel,
32
- m === i.PAGE_SCROLLING ? /* @__PURE__ */ r(c, { className: "rp-menu-item-right" }) : null
33
- ] }) }),
34
- /* @__PURE__ */ r(e, { onClick: () => n(i.VERTICAL_SCROLLING), children: /* @__PURE__ */ t(l, { className: "rp-menu-item", content: o == null ? void 0 : o.verticalScrollingTooltip, children: [
35
- /* @__PURE__ */ r("div", { className: "rp-menu-item-left", children: d || /* @__PURE__ */ r(R, {}) }),
36
- o == null ? void 0 : o.verticalScrollingLabel,
37
- m === i.VERTICAL_SCROLLING ? /* @__PURE__ */ r(c, { className: "rp-menu-item-right" }) : null
38
- ] }) }),
39
- /* @__PURE__ */ r(
40
- e,
26
+ const M = (h) => {
27
+ const { icons: S, isToolVisible: I = !0 } = h, { pageScrollIcon: d, verticalScrollIcon: a, horizontalScrollIcon: u } = S ?? {}, { viewMode: m } = _(), { scrollMode: t, setScrollMode: l } = A(), { localeMessages: r } = E(), N = f(() => m === L.DUAL_PAGE || m === L.DUAL_PAGE_WITH_COVER, [m]);
28
+ return I ? /* @__PURE__ */ i(C, { children: /* @__PURE__ */ n(R, { children: [
29
+ /* @__PURE__ */ i(
30
+ c,
41
31
  {
42
- disabled: a,
43
- onClick: () => n(i.HORIZONTAL_SCROLLING),
44
- children: /* @__PURE__ */ t(l, { className: "rp-menu-item", content: o == null ? void 0 : o.horizontalTooltip, children: [
45
- /* @__PURE__ */ r("div", { className: "rp-menu-item-left", children: u || /* @__PURE__ */ r(O, {}) }),
46
- o == null ? void 0 : o.horizontalLabel,
47
- m === i.HORIZONTAL_SCROLLING ? /* @__PURE__ */ r(c, { className: "rp-menu-item-right" }) : null
32
+ onClick: () => l(o.PAGE_SCROLLING),
33
+ "aria-label": r == null ? void 0 : r.pageScrollingTooltip,
34
+ "aria-checked": t === o.PAGE_SCROLLING,
35
+ children: /* @__PURE__ */ n(e, { className: "rp-menu-item", content: r == null ? void 0 : r.pageScrollingTooltip, children: [
36
+ /* @__PURE__ */ i("div", { className: "rp-menu-item-left", children: d || /* @__PURE__ */ i(G, { "aria-hidden": "true" }) }),
37
+ r == null ? void 0 : r.pageScrollingLabel,
38
+ t === o.PAGE_SCROLLING ? /* @__PURE__ */ i(p, { className: "rp-menu-item-right", "aria-hidden": "true" }) : null
39
+ ] })
40
+ }
41
+ ),
42
+ /* @__PURE__ */ i(
43
+ c,
44
+ {
45
+ onClick: () => l(o.VERTICAL_SCROLLING),
46
+ "aria-label": r == null ? void 0 : r.verticalScrollingTooltip,
47
+ "aria-checked": t === o.VERTICAL_SCROLLING,
48
+ children: /* @__PURE__ */ n(e, { className: "rp-menu-item", content: r == null ? void 0 : r.verticalScrollingTooltip, children: [
49
+ /* @__PURE__ */ i("div", { className: "rp-menu-item-left", children: a || /* @__PURE__ */ i(O, { "aria-hidden": "true" }) }),
50
+ r == null ? void 0 : r.verticalScrollingLabel,
51
+ t === o.VERTICAL_SCROLLING ? /* @__PURE__ */ i(p, { className: "rp-menu-item-right", "aria-hidden": "true" }) : null
52
+ ] })
53
+ }
54
+ ),
55
+ /* @__PURE__ */ i(
56
+ c,
57
+ {
58
+ disabled: N,
59
+ onClick: () => l(o.HORIZONTAL_SCROLLING),
60
+ "aria-label": r == null ? void 0 : r.horizontalTooltip,
61
+ "aria-checked": t === o.HORIZONTAL_SCROLLING,
62
+ children: /* @__PURE__ */ n(e, { className: "rp-menu-item", content: r == null ? void 0 : r.horizontalTooltip, children: [
63
+ /* @__PURE__ */ i("div", { className: "rp-menu-item-left", children: u || /* @__PURE__ */ i(T, { "aria-hidden": "true" }) }),
64
+ r == null ? void 0 : r.horizontalLabel,
65
+ t === o.HORIZONTAL_SCROLLING ? /* @__PURE__ */ i(p, { className: "rp-menu-item-right", "aria-hidden": "true" }) : null
48
66
  ] })
49
67
  }
50
68
  )
51
69
  ] }) }) : null;
52
70
  };
53
71
  export {
54
- Y as ScrollModeTool
72
+ M as ScrollModeTool
55
73
  };
@@ -1,14 +1,14 @@
1
- import { jsx as t, Fragment as a, jsxs as r } from "react/jsx-runtime";
1
+ import { jsx as o, Fragment as T, jsxs as e } from "react/jsx-runtime";
2
2
  import c from "../../../../ui/RPTooltip.js";
3
- import { G as T } from "../../../../../index-4baea9b5.js";
3
+ import { G as f } from "../../../../../index-61f59539.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 l } from "../../../../icons/CheckIcon.js";
7
- import { MenuItem as d } from "../../MenuItem.js";
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 s } from "../../../../../contexts/SelectionModeContext.js";
11
- import { useLocalizationContext as I } from "../../../../../contexts/LocalizationContext.js";
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-c0faa594.js";
14
14
  import "react-dom";
@@ -16,27 +16,43 @@ import "../../../../../index-e3ee9457.js";
16
16
  import "../../../../../floating-ui.react-dom-5ec29bd6.js";
17
17
  import "../../../../../index-655864a7.js";
18
18
  import "../../../../../utils/withRef.js";
19
- import "../../../../../Combination-54a77a7a.js";
19
+ import "../../../../../Combination-136ff99c.js";
20
20
  import "../../../../../clsx-0c6e471a.js";
21
- import "../../../../../th_TH-d627cd51.js";
21
+ import "../../../../../de_DE-a553b162.js";
22
22
  import "../../../../../utils/appConsole.js";
23
23
  import "../../../../../utils/hooks/useLocalization.js";
24
- const K = (u) => {
25
- const { icons: f, isToolVisible: h = !0 } = u, { textSelectionIcon: e, handModeIcon: n } = f ?? {}, { selectionMode: m, setSelectionMode: p } = s(), { localeMessages: o } = I();
26
- return h ? /* @__PURE__ */ t(a, { children: /* @__PURE__ */ r(T, { children: [
27
- /* @__PURE__ */ t(d, { onClick: () => p(i.TEXT), children: /* @__PURE__ */ r(c, { className: "rp-menu-item", content: o == null ? void 0 : o.textSelectionTooltip, children: [
28
- /* @__PURE__ */ t("div", { className: "rp-menu-item-left", children: e || /* @__PURE__ */ t(x, {}) }),
29
- o == null ? void 0 : o.textSelectionLabel,
30
- m === i.TEXT ? /* @__PURE__ */ t(l, { className: "rp-menu-item-right" }) : null
31
- ] }) }),
32
- /* @__PURE__ */ t(d, { onClick: () => p(i.HAND), children: /* @__PURE__ */ r(c, { className: "rp-menu-item", content: o == null ? void 0 : o.handToolTooltip, children: [
33
- /* @__PURE__ */ t("div", { className: "rp-menu-item-left", children: n || /* @__PURE__ */ t(S, {}) }),
34
- o == null ? void 0 : o.handToolLabel,
35
- m === i.HAND ? /* @__PURE__ */ t(l, { className: "rp-menu-item-right" }) : null
36
- ] }) }),
37
- /* @__PURE__ */ t(N, {})
24
+ const Q = (a) => {
25
+ const { icons: u, isToolVisible: h = !0 } = a, { textSelectionIcon: n, handModeIcon: m } = u ?? {}, { selectionMode: r, setSelectionMode: p } = I(), { localeMessages: t } = b();
26
+ return h ? /* @__PURE__ */ o(T, { children: /* @__PURE__ */ e(f, { children: [
27
+ /* @__PURE__ */ o(
28
+ l,
29
+ {
30
+ onClick: () => p(i.TEXT),
31
+ "aria-label": t == null ? void 0 : t.textSelectionTooltip,
32
+ "aria-checked": r === i.TEXT,
33
+ children: /* @__PURE__ */ e(c, { className: "rp-menu-item", content: t == null ? void 0 : t.textSelectionTooltip, children: [
34
+ /* @__PURE__ */ o("div", { className: "rp-menu-item-left", children: n || /* @__PURE__ */ o(x, { "aria-hidden": "true" }) }),
35
+ t == null ? void 0 : t.textSelectionLabel,
36
+ r === i.TEXT ? /* @__PURE__ */ o(d, { className: "rp-menu-item-right", "aria-hidden": "true" }) : null
37
+ ] })
38
+ }
39
+ ),
40
+ /* @__PURE__ */ o(
41
+ l,
42
+ {
43
+ onClick: () => p(i.HAND),
44
+ "aria-label": t == null ? void 0 : t.handToolTooltip,
45
+ "aria-checked": r === i.HAND,
46
+ children: /* @__PURE__ */ e(c, { className: "rp-menu-item", content: t == null ? void 0 : t.handToolTooltip, children: [
47
+ /* @__PURE__ */ o("div", { className: "rp-menu-item-left", children: m || /* @__PURE__ */ o(S, { "aria-hidden": "true" }) }),
48
+ t == null ? void 0 : t.handToolLabel,
49
+ r === i.HAND ? /* @__PURE__ */ o(d, { className: "rp-menu-item-right", "aria-hidden": "true" }) : null
50
+ ] })
51
+ }
52
+ ),
53
+ /* @__PURE__ */ o(N, {})
38
54
  ] }) }) : null;
39
55
  };
40
56
  export {
41
- K as SelectionModeTool
57
+ Q as SelectionModeTool
42
58
  };
@@ -1,44 +1,67 @@
1
- import { jsx as r, Fragment as h, jsxs as i } from "react/jsx-runtime";
2
- import { useMemo as I } from "react";
3
- import l from "../../../../ui/RPTooltip.js";
4
- import { G as N } from "../../../../../index-4baea9b5.js";
5
- import { MenuSeparator as L } from "../../MenuSeparator.js";
6
- import { MenuItem as p } from "../../MenuItem.js";
7
- import { DualPageIcon as C } from "../../../../icons/DualPageIcon.js";
8
- import { SinglePageIcon as S } from "../../../../icons/SinglePageIcon.js";
9
- import { useViewModeContext as x } from "../../../../../contexts/ViewModeContext.js";
10
- import { ScrollMode as G, ViewMode as c } from "../../../../../utils/types.js";
11
- import { CheckIcon as u } from "../../../../icons/CheckIcon.js";
12
- import { useScrollModeContext as T } from "../../../../../contexts/ScrollModeContext.js";
13
- import { useLocalizationContext as b } from "../../../../../contexts/LocalizationContext.js";
1
+ import { jsx as r, Fragment as g, jsxs as e } from "react/jsx-runtime";
2
+ import { useMemo as L } from "react";
3
+ import m from "../../../../ui/RPTooltip.js";
4
+ import { G } from "../../../../../index-61f59539.js";
5
+ import { MenuSeparator as T } from "../../MenuSeparator.js";
6
+ import { MenuItem as n } 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-c0faa594.js";
15
16
  import "react-dom";
16
17
  import "../../../../../index-e3ee9457.js";
17
18
  import "../../../../../floating-ui.react-dom-5ec29bd6.js";
18
19
  import "../../../../../index-655864a7.js";
19
20
  import "../../../../../utils/withRef.js";
20
- import "../../../../../Combination-54a77a7a.js";
21
+ import "../../../../../Combination-136ff99c.js";
21
22
  import "../../../../../clsx-0c6e471a.js";
22
23
  import "../../../../../utils/appConsole.js";
23
24
  import "../../../../../contexts/InitialStateContext.js";
24
- import "../../../../../th_TH-d627cd51.js";
25
+ import "../../../../../de_DE-a553b162.js";
25
26
  import "../../../../../utils/hooks/useLocalization.js";
26
- const Y = (a) => {
27
- const { icons: d, isToolVisible: s = !0 } = a, { singlePageIcon: t, dualPageIcon: e } = d ?? {}, { viewMode: m, setDualPage: f, setSinglePage: P } = x(), { scrollMode: n } = T(), { localeMessages: o } = b(), g = I(() => [G.HORIZONTAL_SCROLLING].includes(n), [n]);
28
- return s ? /* @__PURE__ */ r(h, { children: /* @__PURE__ */ i(N, { children: [
29
- /* @__PURE__ */ r(p, { onClick: P, children: /* @__PURE__ */ i(l, { className: "rp-menu-item", content: o == null ? void 0 : o.singlePageTooltip, children: [
30
- /* @__PURE__ */ r("div", { className: "rp-menu-item-left", children: t || /* @__PURE__ */ r(S, {}) }),
31
- o == null ? void 0 : o.singlePageLabel,
32
- m === c.SINGLE_PAGE ? /* @__PURE__ */ r(u, { className: "rp-menu-item-right" }) : null
27
+ const ti = (h) => {
28
+ 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]);
29
+ return f ? /* @__PURE__ */ r(g, { children: /* @__PURE__ */ e(G, { children: [
30
+ /* @__PURE__ */ r(
31
+ n,
32
+ {
33
+ onClick: N,
34
+ "aria-label": i == null ? void 0 : i.singlePageTooltip,
35
+ "aria-checked": t === o.SINGLE_PAGE,
36
+ children: /* @__PURE__ */ e(m, { className: "rp-menu-item", content: i == null ? void 0 : i.singlePageTooltip, children: [
37
+ /* @__PURE__ */ r("div", { className: "rp-menu-item-left", children: a || /* @__PURE__ */ r(A, { "aria-hidden": "true" }) }),
38
+ i == null ? void 0 : i.singlePageLabel,
39
+ t === o.SINGLE_PAGE ? /* @__PURE__ */ r(l, { className: "rp-menu-item-right", "aria-hidden": "true" }) : null
40
+ ] })
41
+ }
42
+ ),
43
+ /* @__PURE__ */ r(
44
+ n,
45
+ {
46
+ disabled: c,
47
+ onClick: C,
48
+ "aria-label": i == null ? void 0 : i.dualPageTooltip,
49
+ "aria-checked": t === o.DUAL_PAGE,
50
+ children: /* @__PURE__ */ e(m, { className: "rp-menu-item", content: i == null ? void 0 : i.dualPageTooltip, children: [
51
+ /* @__PURE__ */ r("div", { className: "rp-menu-item-left", children: d || /* @__PURE__ */ r(b, { "aria-hidden": "true" }) }),
52
+ i == null ? void 0 : i.dualPageLabel,
53
+ t === o.DUAL_PAGE ? /* @__PURE__ */ r(l, { className: "rp-menu-item-right", "aria-hidden": "true" }) : null
54
+ ] })
55
+ }
56
+ ),
57
+ /* @__PURE__ */ r(n, { disabled: c, onClick: I, children: /* @__PURE__ */ e(m, { className: "rp-menu-item", content: i == null ? void 0 : i.dualPageWithCoverTooltip, children: [
58
+ /* @__PURE__ */ r("div", { className: "rp-menu-item-left", children: p || /* @__PURE__ */ r(v, {}) }),
59
+ i == null ? void 0 : i.dualPageWithCoverLabel,
60
+ t === o.DUAL_PAGE_WITH_COVER ? /* @__PURE__ */ r(l, { className: "rp-menu-item-right" }) : null
33
61
  ] }) }),
34
- /* @__PURE__ */ r(p, { disabled: g, onClick: f, children: /* @__PURE__ */ i(l, { className: "rp-menu-item", content: o == null ? void 0 : o.dualPageTooltip, children: [
35
- /* @__PURE__ */ r("div", { className: "rp-menu-item-left", children: e || /* @__PURE__ */ r(C, {}) }),
36
- o == null ? void 0 : o.dualPageLabel,
37
- m === c.DUAL_PAGE ? /* @__PURE__ */ r(u, { className: "rp-menu-item-right" }) : null
38
- ] }) }),
39
- /* @__PURE__ */ r(L, {})
62
+ /* @__PURE__ */ r(T, {})
40
63
  ] }) }) : null;
41
64
  };
42
65
  export {
43
- Y as ViewModeTool
66
+ ti as ViewModeTool
44
67
  };