@react-pdf-kit/viewer 2.7.2-rc.0 → 2.7.2-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.
Files changed (84) hide show
  1. package/dist/MenuItem-D-GflAAo.js +31 -0
  2. package/dist/{RPTooltip-ZZoFqP7C.js → RPTooltip-COLVx-C_.js} +123 -91
  3. package/dist/SearchTool.module-DY8Ucfb_.js +17 -0
  4. package/dist/{SkipLink-CdcjClGB.js → SkipLink-Dj83gZdk.js} +3 -3
  5. package/dist/{Thumbnail-BNpCO-jm.js → Thumbnail-BVjnCNxv.js} +5 -5
  6. package/dist/{Thumbnails-DYvhzEUD.js → Thumbnails-CrKLESh3.js} +1 -1
  7. package/dist/assets/MenuItem.css +1 -1
  8. package/dist/assets/SearchTool.css +1 -1
  9. package/dist/assets/SkipLink.css +1 -1
  10. package/dist/assets/Thumbnail.css +1 -1
  11. package/dist/assets/style.js +1 -1
  12. package/dist/components/RPProvider.js +1 -1
  13. package/dist/components/layout/RPDefaultLayout.js +1 -1
  14. package/dist/components/layout/RPLayout.js +1 -1
  15. package/dist/components/layout/SkipLink.js +1 -1
  16. package/dist/components/layout/sidebar/RPSidebar.js +2 -2
  17. package/dist/components/layout/sidebar/Thumbnail.js +1 -1
  18. package/dist/components/layout/sidebar/Thumbnails.js +1 -1
  19. package/dist/components/layout/toolbar/DarkModeTool.js +1 -1
  20. package/dist/components/layout/toolbar/DocumentProperties.js +6 -6
  21. package/dist/components/layout/toolbar/FileDownloadTool.js +6 -6
  22. package/dist/components/layout/toolbar/FileUploadTool.js +6 -6
  23. package/dist/components/layout/toolbar/FullScreenTool.js +7 -7
  24. package/dist/components/layout/toolbar/MenuItem.js +1 -1
  25. package/dist/components/layout/toolbar/MostPageTool.js +22 -28
  26. package/dist/components/layout/toolbar/OtherTool.js +1 -1
  27. package/dist/components/layout/toolbar/Paginate.js +1 -1
  28. package/dist/components/layout/toolbar/PrintTool.js +6 -6
  29. package/dist/components/layout/toolbar/RPMenuItem.js +2 -2
  30. package/dist/components/layout/toolbar/RPMoreOptions.js +1 -1
  31. package/dist/components/layout/toolbar/RotateTool.js +10 -10
  32. package/dist/components/layout/toolbar/ScrollModeTool.js +15 -15
  33. package/dist/components/layout/toolbar/SearchCloseButton.js +2 -2
  34. package/dist/components/layout/toolbar/SearchResultNavigator.js +2 -2
  35. package/dist/components/layout/toolbar/SearchTool.js +2 -2
  36. package/dist/components/layout/toolbar/SelectionModeTool.js +10 -10
  37. package/dist/components/layout/toolbar/ThumbnailTool.js +1 -1
  38. package/dist/components/layout/toolbar/ToolbarCustom.js +1 -1
  39. package/dist/components/layout/toolbar/ToolbarDefault.js +1 -1
  40. package/dist/components/layout/toolbar/ViewModeTool.js +16 -16
  41. package/dist/components/layout/toolbar/ZoomTool.js +2 -2
  42. package/dist/components/layout/toolbar/tools/DocumentPropertiesTool.js +1 -1
  43. package/dist/components/layout/toolbar/tools/DualPageTool.js +1 -1
  44. package/dist/components/layout/toolbar/tools/DualPageWithCoverTool.js +1 -1
  45. package/dist/components/layout/toolbar/tools/FileDownloadTool.js +1 -1
  46. package/dist/components/layout/toolbar/tools/FileUploadTool.js +1 -1
  47. package/dist/components/layout/toolbar/tools/FirstPageTool.js +1 -1
  48. package/dist/components/layout/toolbar/tools/FullScreenTool.js +1 -1
  49. package/dist/components/layout/toolbar/tools/HorizontalScrollingTool.js +1 -1
  50. package/dist/components/layout/toolbar/tools/InputPageTool.js +1 -1
  51. package/dist/components/layout/toolbar/tools/LastPageTool.js +1 -1
  52. package/dist/components/layout/toolbar/tools/NextPageTool.js +1 -1
  53. package/dist/components/layout/toolbar/tools/PageScrollingTool.js +1 -1
  54. package/dist/components/layout/toolbar/tools/PreviousPageTool.js +1 -1
  55. package/dist/components/layout/toolbar/tools/PrintTool.js +1 -1
  56. package/dist/components/layout/toolbar/tools/RotateClockwiseTool.js +1 -1
  57. package/dist/components/layout/toolbar/tools/RotateCounterclockwiseTool.js +1 -1
  58. package/dist/components/layout/toolbar/tools/SelectionModeSwitcherTool.js +1 -1
  59. package/dist/components/layout/toolbar/tools/SinglePageTool.js +1 -1
  60. package/dist/components/layout/toolbar/tools/ThemeSwitcherTool.js +1 -1
  61. package/dist/components/layout/toolbar/tools/ThumbnailTool.js +1 -1
  62. package/dist/components/layout/toolbar/tools/VerticalScrollingTool.js +1 -1
  63. package/dist/components/layout/toolbar/tools/ZoomInTool.js +1 -1
  64. package/dist/components/layout/toolbar/tools/ZoomLevelTool.js +2 -2
  65. package/dist/components/layout/toolbar/tools/ZoomOutTool.js +1 -1
  66. package/dist/components/layout/toolbar/tools/more-options/DocumentProperties.js +2 -2
  67. package/dist/components/layout/toolbar/tools/more-options/FileDownloadTool.js +2 -2
  68. package/dist/components/layout/toolbar/tools/more-options/FileUploadTool.js +2 -2
  69. package/dist/components/layout/toolbar/tools/more-options/FullScreenTool.js +2 -2
  70. package/dist/components/layout/toolbar/tools/more-options/MostPageTool.js +2 -2
  71. package/dist/components/layout/toolbar/tools/more-options/PrintTool.js +2 -2
  72. package/dist/components/layout/toolbar/tools/more-options/RotateTool.js +2 -2
  73. package/dist/components/layout/toolbar/tools/more-options/ScrollModeTool.js +2 -2
  74. package/dist/components/layout/toolbar/tools/more-options/SelectionModeTool.js +2 -2
  75. package/dist/components/layout/toolbar/tools/more-options/ViewModeTool.js +2 -2
  76. package/dist/components/ui/RPTooltip.js +1 -1
  77. package/dist/{main-CnL3zQcy.js → main-CdlJS0xf.js} +1 -1
  78. package/dist/main.js +2 -2
  79. package/dist/{style-DCakeEMr.js → style-C0q9DGPX.js} +1 -1
  80. package/dist/types/components/ui/RPTooltip.d.ts +3 -2
  81. package/dist/utils/hooks/useLicense.js +1 -1
  82. package/package.json +1 -1
  83. package/dist/MenuItem-BJDWfzAw.js +0 -15
  84. package/dist/SearchTool.module-F4m4ggTb.js +0 -17
@@ -0,0 +1,31 @@
1
+ import { t as e } from "./clsx-B7LyVm5O.js";
2
+ import { r as t } from "./dist-CKteKPPA.js";
3
+ import { jsx as n } from "react/jsx-runtime";
4
+ import './assets/MenuItem.css';//#region lib/components/layout/toolbar/MenuItem.module.css
5
+ var r = { "rp-menu-item": "_rp-menu-item_1q6of_1" }, i = (i) => {
6
+ let { children: a, className: o, disabled: s = !1, onClick: c, onSelect: l, ...u } = i, d = (e) => {
7
+ if (s) {
8
+ e?.preventDefault(), e?.stopPropagation();
9
+ return;
10
+ }
11
+ c?.(e);
12
+ }, f = (e) => {
13
+ if (s) {
14
+ e?.preventDefault(), e?.stopPropagation();
15
+ return;
16
+ }
17
+ l?.(e);
18
+ };
19
+ return /* @__PURE__ */ n(t, {
20
+ ...u,
21
+ tabIndex: 0,
22
+ className: e(r["rp-menu-item"], o),
23
+ disabled: s,
24
+ "aria-disabled": s,
25
+ onClick: d,
26
+ onSelect: f,
27
+ children: a
28
+ });
29
+ };
30
+ //#endregion
31
+ export { i as t };
@@ -3,9 +3,10 @@ import { d as t, f as n, i as r, l as i, n as a, s as o, t as s } from "./dist-b
3
3
  import { n as c, r as l, t as u } from "./dist-BRVqFn7R.js";
4
4
  import { a as d, i as f, n as p, r as m, t as h } from "./dist-7FA4Do6I.js";
5
5
  import * as g from "react";
6
- import { jsx as _, jsxs as v } from "react/jsx-runtime";
6
+ import { useEffect as _, useRef as v, useState as y } from "react";
7
+ import { jsx as b, jsxs as x } from "react/jsx-runtime";
7
8
  import './assets/RPTooltip.css';//#region node_modules/.pnpm/@radix-ui+react-visually-hidden@1.2.3_@types+react-dom@18.3.7_@types+react@18.3.27__@ty_a0e385f362a25de1e1388c87472ea469/node_modules/@radix-ui/react-visually-hidden/dist/index.mjs
8
- var y = Object.freeze({
9
+ var S = Object.freeze({
9
10
  position: "absolute",
10
11
  border: 0,
11
12
  width: 1,
@@ -16,21 +17,21 @@ var y = Object.freeze({
16
17
  clip: "rect(0, 0, 0, 0)",
17
18
  whiteSpace: "nowrap",
18
19
  wordWrap: "normal"
19
- }), b = "VisuallyHidden", x = g.forwardRef((e, t) => /* @__PURE__ */ _(r.span, {
20
+ }), C = "VisuallyHidden", w = g.forwardRef((e, t) => /* @__PURE__ */ b(r.span, {
20
21
  ...e,
21
22
  ref: t,
22
23
  style: {
23
- ...y,
24
+ ...S,
24
25
  ...e.style
25
26
  }
26
27
  }));
27
- x.displayName = b;
28
- var S = x, [C, w] = i("Tooltip", [d]), T = d(), E = "TooltipProvider", D = 700, O = "tooltip.open", [k, A] = C(E), j = (e) => {
29
- let { __scopeTooltip: t, delayDuration: n = D, skipDelayDuration: r = 300, disableHoverableContent: i = !1, children: a } = e, o = g.useRef(!0), s = g.useRef(!1), c = g.useRef(0);
28
+ w.displayName = C;
29
+ var T = w, [E, D] = i("Tooltip", [d]), O = d(), k = "TooltipProvider", A = 700, j = "tooltip.open", [M, N] = E(k), P = (e) => {
30
+ let { __scopeTooltip: t, delayDuration: n = A, skipDelayDuration: r = 300, disableHoverableContent: i = !1, children: a } = e, o = g.useRef(!0), s = g.useRef(!1), c = g.useRef(0);
30
31
  return g.useEffect(() => {
31
32
  let e = c.current;
32
33
  return () => window.clearTimeout(e);
33
- }, []), /* @__PURE__ */ _(k, {
34
+ }, []), /* @__PURE__ */ b(M, {
34
35
  scope: t,
35
36
  isOpenDelayedRef: o,
36
37
  delayDuration: n,
@@ -48,29 +49,29 @@ var S = x, [C, w] = i("Tooltip", [d]), T = d(), E = "TooltipProvider", D = 700,
48
49
  children: a
49
50
  });
50
51
  };
51
- j.displayName = E;
52
- var M = "Tooltip", [N, P] = C(M), F = (e) => {
53
- let { __scopeTooltip: t, children: n, open: r, defaultOpen: i, onOpenChange: a, disableHoverableContent: o, delayDuration: l } = e, u = A(M, e.__scopeTooltip), d = T(t), [p, m] = g.useState(null), h = c(), v = g.useRef(0), y = o ?? u.disableHoverableContent, b = l ?? u.delayDuration, x = g.useRef(!1), [S, C] = s({
52
+ P.displayName = k;
53
+ var F = "Tooltip", [ee, I] = E(F), L = (e) => {
54
+ let { __scopeTooltip: t, children: n, open: r, defaultOpen: i, onOpenChange: a, disableHoverableContent: o, delayDuration: l } = e, u = N(F, e.__scopeTooltip), d = O(t), [p, m] = g.useState(null), h = c(), _ = g.useRef(0), v = o ?? u.disableHoverableContent, y = l ?? u.delayDuration, x = g.useRef(!1), [S, C] = s({
54
55
  prop: r,
55
56
  defaultProp: i ?? !1,
56
57
  onChange: (e) => {
57
- e ? (u.onOpen(), document.dispatchEvent(new CustomEvent(O))) : u.onClose(), a?.(e);
58
+ e ? (u.onOpen(), document.dispatchEvent(new CustomEvent(j))) : u.onClose(), a?.(e);
58
59
  },
59
- caller: M
60
- }), w = g.useMemo(() => S ? x.current ? "delayed-open" : "instant-open" : "closed", [S]), E = g.useCallback(() => {
61
- window.clearTimeout(v.current), v.current = 0, x.current = !1, C(!0);
60
+ caller: F
61
+ }), w = g.useMemo(() => S ? x.current ? "delayed-open" : "instant-open" : "closed", [S]), T = g.useCallback(() => {
62
+ window.clearTimeout(_.current), _.current = 0, x.current = !1, C(!0);
63
+ }, [C]), E = g.useCallback(() => {
64
+ window.clearTimeout(_.current), _.current = 0, C(!1);
62
65
  }, [C]), D = g.useCallback(() => {
63
- window.clearTimeout(v.current), v.current = 0, C(!1);
64
- }, [C]), k = g.useCallback(() => {
65
- window.clearTimeout(v.current), v.current = window.setTimeout(() => {
66
- x.current = !0, C(!0), v.current = 0;
67
- }, b);
68
- }, [b, C]);
66
+ window.clearTimeout(_.current), _.current = window.setTimeout(() => {
67
+ x.current = !0, C(!0), _.current = 0;
68
+ }, y);
69
+ }, [y, C]);
69
70
  return g.useEffect(() => () => {
70
- v.current &&= (window.clearTimeout(v.current), 0);
71
- }, []), /* @__PURE__ */ _(f, {
71
+ _.current &&= (window.clearTimeout(_.current), 0);
72
+ }, []), /* @__PURE__ */ b(f, {
72
73
  ...d,
73
- children: /* @__PURE__ */ _(N, {
74
+ children: /* @__PURE__ */ b(ee, {
74
75
  scope: t,
75
76
  contentId: h,
76
77
  open: S,
@@ -78,29 +79,29 @@ var M = "Tooltip", [N, P] = C(M), F = (e) => {
78
79
  trigger: p,
79
80
  onTriggerChange: m,
80
81
  onTriggerEnter: g.useCallback(() => {
81
- u.isOpenDelayedRef.current ? k() : E();
82
+ u.isOpenDelayedRef.current ? D() : T();
82
83
  }, [
83
84
  u.isOpenDelayedRef,
84
- k,
85
- E
85
+ D,
86
+ T
86
87
  ]),
87
88
  onTriggerLeave: g.useCallback(() => {
88
- y ? D() : (window.clearTimeout(v.current), v.current = 0);
89
- }, [D, y]),
90
- onOpen: E,
91
- onClose: D,
92
- disableHoverableContent: y,
89
+ v ? E() : (window.clearTimeout(_.current), _.current = 0);
90
+ }, [E, v]),
91
+ onOpen: T,
92
+ onClose: E,
93
+ disableHoverableContent: v,
93
94
  children: n
94
95
  })
95
96
  });
96
97
  };
97
- F.displayName = M;
98
- var I = "TooltipTrigger", L = g.forwardRef((e, i) => {
99
- let { __scopeTooltip: a, ...o } = e, s = P(I, a), c = A(I, a), l = T(a), u = t(i, g.useRef(null), s.onTriggerChange), d = g.useRef(!1), f = g.useRef(!1), p = g.useCallback(() => d.current = !1, []);
100
- return g.useEffect(() => () => document.removeEventListener("pointerup", p), [p]), /* @__PURE__ */ _(h, {
98
+ L.displayName = F;
99
+ var R = "TooltipTrigger", z = g.forwardRef((e, i) => {
100
+ let { __scopeTooltip: a, ...o } = e, s = I(R, a), c = N(R, a), l = O(a), u = t(i, g.useRef(null), s.onTriggerChange), d = g.useRef(!1), f = g.useRef(!1), p = g.useCallback(() => d.current = !1, []);
101
+ return g.useEffect(() => () => document.removeEventListener("pointerup", p), [p]), /* @__PURE__ */ b(h, {
101
102
  asChild: !0,
102
103
  ...l,
103
- children: /* @__PURE__ */ _(r.button, {
104
+ children: /* @__PURE__ */ b(r.button, {
104
105
  "aria-describedby": s.open ? s.contentId : void 0,
105
106
  "data-state": s.stateAttribute,
106
107
  ...o,
@@ -122,15 +123,15 @@ var I = "TooltipTrigger", L = g.forwardRef((e, i) => {
122
123
  })
123
124
  });
124
125
  });
125
- L.displayName = I;
126
- var R = "TooltipPortal", [z, B] = C(R, { forceMount: void 0 }), V = (e) => {
127
- let { __scopeTooltip: t, forceMount: n, children: r, container: i } = e, o = P(R, t);
128
- return /* @__PURE__ */ _(z, {
126
+ z.displayName = R;
127
+ var B = "TooltipPortal", [V, H] = E(B, { forceMount: void 0 }), te = (e) => {
128
+ let { __scopeTooltip: t, forceMount: n, children: r, container: i } = e, o = I(B, t);
129
+ return /* @__PURE__ */ b(V, {
129
130
  scope: t,
130
131
  forceMount: n,
131
- children: /* @__PURE__ */ _(a, {
132
+ children: /* @__PURE__ */ b(a, {
132
133
  present: n || o.open,
133
- children: /* @__PURE__ */ _(u, {
134
+ children: /* @__PURE__ */ b(u, {
134
135
  asChild: !0,
135
136
  container: i,
136
137
  children: r
@@ -138,30 +139,30 @@ var R = "TooltipPortal", [z, B] = C(R, { forceMount: void 0 }), V = (e) => {
138
139
  })
139
140
  });
140
141
  };
141
- V.displayName = R;
142
- var H = "TooltipContent", U = g.forwardRef((e, t) => {
143
- let n = B(H, e.__scopeTooltip), { forceMount: r = n.forceMount, side: i = "top", ...o } = e, s = P(H, e.__scopeTooltip);
144
- return /* @__PURE__ */ _(a, {
142
+ te.displayName = B;
143
+ var U = "TooltipContent", W = g.forwardRef((e, t) => {
144
+ let n = H(U, e.__scopeTooltip), { forceMount: r = n.forceMount, side: i = "top", ...o } = e, s = I(U, e.__scopeTooltip);
145
+ return /* @__PURE__ */ b(a, {
145
146
  present: r || s.open,
146
- children: s.disableHoverableContent ? /* @__PURE__ */ _(J, {
147
+ children: s.disableHoverableContent ? /* @__PURE__ */ b(Y, {
147
148
  side: i,
148
149
  ...o,
149
150
  ref: t
150
- }) : /* @__PURE__ */ _(W, {
151
+ }) : /* @__PURE__ */ b(G, {
151
152
  side: i,
152
153
  ...o,
153
154
  ref: t
154
155
  })
155
156
  });
156
- }), W = g.forwardRef((e, n) => {
157
- let r = P(H, e.__scopeTooltip), i = A(H, e.__scopeTooltip), a = g.useRef(null), o = t(n, a), [s, c] = g.useState(null), { trigger: l, onClose: u } = r, d = a.current, { onPointerInTransitChange: f } = i, p = g.useCallback(() => {
157
+ }), G = g.forwardRef((e, n) => {
158
+ let r = I(U, e.__scopeTooltip), i = N(U, e.__scopeTooltip), a = g.useRef(null), o = t(n, a), [s, c] = g.useState(null), { trigger: l, onClose: u } = r, d = a.current, { onPointerInTransitChange: f } = i, p = g.useCallback(() => {
158
159
  c(null), f(!1);
159
160
  }, [f]), m = g.useCallback((e, t) => {
160
161
  let n = e.currentTarget, r = {
161
162
  x: e.clientX,
162
163
  y: e.clientY
163
- }, i = Q(r, Z(r, n.getBoundingClientRect())), a = ee(t.getBoundingClientRect());
164
- c(ne([...i, ...a])), f(!0);
164
+ }, i = ne(r, Q(r, n.getBoundingClientRect())), a = re(t.getBoundingClientRect());
165
+ c(ae([...i, ...a])), f(!0);
165
166
  }, [f]);
166
167
  return g.useEffect(() => () => p(), [p]), g.useEffect(() => {
167
168
  if (l && d) {
@@ -181,7 +182,7 @@ var H = "TooltipContent", U = g.forwardRef((e, t) => {
181
182
  let t = e.target, n = {
182
183
  x: e.clientX,
183
184
  y: e.clientY
184
- }, r = l?.contains(t) || d?.contains(t), i = !te(n, s);
185
+ }, r = l?.contains(t) || d?.contains(t), i = !ie(n, s);
185
186
  r ? p() : i && (p(), u());
186
187
  };
187
188
  return document.addEventListener("pointermove", e), () => document.removeEventListener("pointermove", e);
@@ -192,27 +193,27 @@ var H = "TooltipContent", U = g.forwardRef((e, t) => {
192
193
  s,
193
194
  u,
194
195
  p
195
- ]), /* @__PURE__ */ _(J, {
196
+ ]), /* @__PURE__ */ b(Y, {
196
197
  ...e,
197
198
  ref: o
198
199
  });
199
- }), [G, K] = C(M, { isInside: !1 }), q = o("TooltipContent"), J = g.forwardRef((e, t) => {
200
- let { __scopeTooltip: n, children: r, "aria-label": i, onEscapeKeyDown: a, onPointerDownOutside: o, ...s } = e, c = P(H, n), u = T(n), { onClose: d } = c;
201
- return g.useEffect(() => (document.addEventListener(O, d), () => document.removeEventListener(O, d)), [d]), g.useEffect(() => {
200
+ }), [K, q] = E(F, { isInside: !1 }), J = o("TooltipContent"), Y = g.forwardRef((e, t) => {
201
+ let { __scopeTooltip: n, children: r, "aria-label": i, onEscapeKeyDown: a, onPointerDownOutside: o, ...s } = e, c = I(U, n), u = O(n), { onClose: d } = c;
202
+ return g.useEffect(() => (document.addEventListener(j, d), () => document.removeEventListener(j, d)), [d]), g.useEffect(() => {
202
203
  if (c.trigger) {
203
204
  let e = (e) => {
204
205
  e.target?.contains(c.trigger) && d();
205
206
  };
206
207
  return window.addEventListener("scroll", e, { capture: !0 }), () => window.removeEventListener("scroll", e, { capture: !0 });
207
208
  }
208
- }, [c.trigger, d]), /* @__PURE__ */ _(l, {
209
+ }, [c.trigger, d]), /* @__PURE__ */ b(l, {
209
210
  asChild: !0,
210
211
  disableOutsidePointerEvents: !1,
211
212
  onEscapeKeyDown: a,
212
213
  onPointerDownOutside: o,
213
214
  onFocusOutside: (e) => e.preventDefault(),
214
215
  onDismiss: d,
215
- children: /* @__PURE__ */ v(m, {
216
+ children: /* @__PURE__ */ x(m, {
216
217
  "data-state": c.stateAttribute,
217
218
  ...u,
218
219
  ...s,
@@ -225,10 +226,10 @@ var H = "TooltipContent", U = g.forwardRef((e, t) => {
225
226
  "--radix-tooltip-trigger-width": "var(--radix-popper-anchor-width)",
226
227
  "--radix-tooltip-trigger-height": "var(--radix-popper-anchor-height)"
227
228
  },
228
- children: [/* @__PURE__ */ _(q, { children: r }), /* @__PURE__ */ _(G, {
229
+ children: [/* @__PURE__ */ b(J, { children: r }), /* @__PURE__ */ b(K, {
229
230
  scope: n,
230
231
  isInside: !0,
231
- children: /* @__PURE__ */ _(S, {
232
+ children: /* @__PURE__ */ b(T, {
232
233
  id: c.contentId,
233
234
  role: "tooltip",
234
235
  children: i || r
@@ -237,17 +238,17 @@ var H = "TooltipContent", U = g.forwardRef((e, t) => {
237
238
  })
238
239
  });
239
240
  });
240
- U.displayName = H;
241
- var Y = "TooltipArrow", X = g.forwardRef((e, t) => {
242
- let { __scopeTooltip: n, ...r } = e, i = T(n);
243
- return K(Y, n).isInside ? null : /* @__PURE__ */ _(p, {
241
+ W.displayName = U;
242
+ var X = "TooltipArrow", Z = g.forwardRef((e, t) => {
243
+ let { __scopeTooltip: n, ...r } = e, i = O(n);
244
+ return q(X, n).isInside ? null : /* @__PURE__ */ b(p, {
244
245
  ...i,
245
246
  ...r,
246
247
  ref: t
247
248
  });
248
249
  });
249
- X.displayName = Y;
250
- function Z(e, t) {
250
+ Z.displayName = X;
251
+ function Q(e, t) {
251
252
  let n = Math.abs(t.top - e.y), r = Math.abs(t.bottom - e.y), i = Math.abs(t.right - e.x), a = Math.abs(t.left - e.x);
252
253
  switch (Math.min(n, r, i, a)) {
253
254
  case a: return "left";
@@ -257,7 +258,7 @@ function Z(e, t) {
257
258
  default: throw Error("unreachable");
258
259
  }
259
260
  }
260
- function Q(e, t, n = 5) {
261
+ function ne(e, t, n = 5) {
261
262
  let r = [];
262
263
  switch (t) {
263
264
  case "top":
@@ -299,7 +300,7 @@ function Q(e, t, n = 5) {
299
300
  }
300
301
  return r;
301
302
  }
302
- function ee(e) {
303
+ function re(e) {
303
304
  let { top: t, right: n, bottom: r, left: i } = e;
304
305
  return [
305
306
  {
@@ -320,7 +321,7 @@ function ee(e) {
320
321
  }
321
322
  ];
322
323
  }
323
- function te(e, t) {
324
+ function ie(e, t) {
324
325
  let { x: n, y: r } = e, i = !1;
325
326
  for (let e = 0, a = t.length - 1; e < t.length; a = e++) {
326
327
  let o = t[e], s = t[a], c = o.x, l = o.y, u = s.x, d = s.y;
@@ -328,11 +329,11 @@ function te(e, t) {
328
329
  }
329
330
  return i;
330
331
  }
331
- function ne(e) {
332
+ function ae(e) {
332
333
  let t = e.slice();
333
- return t.sort((e, t) => e.x < t.x ? -1 : e.x > t.x ? 1 : e.y < t.y ? -1 : +(e.y > t.y)), re(t);
334
+ return t.sort((e, t) => e.x < t.x ? -1 : e.x > t.x ? 1 : e.y < t.y ? -1 : +(e.y > t.y)), oe(t);
334
335
  }
335
- function re(e) {
336
+ function oe(e) {
336
337
  if (e.length <= 1) return e.slice();
337
338
  let t = [];
338
339
  for (let n = 0; n < e.length; n++) {
@@ -361,21 +362,52 @@ var $ = {
361
362
  tooltipContent: "_tooltipContent_12gjy_1",
362
363
  tooltipArrow: "_tooltipArrow_12gjy_8",
363
364
  fadeIn: "_fadeIn_12gjy_1"
364
- }, ie = e(({ children: e, content: t, className: n, style: r }, i) => /* @__PURE__ */ _(j, { children: /* @__PURE__ */ v(F, {
365
- delayDuration: 1e3,
366
- children: [/* @__PURE__ */ _(L, {
367
- asChild: !0,
368
- children: /* @__PURE__ */ _("div", {
369
- ref: i,
370
- className: n,
371
- style: r,
372
- children: e
373
- })
374
- }), /* @__PURE__ */ v(U, {
375
- className: $.tooltipContent,
376
- sideOffset: 5,
377
- children: [/* @__PURE__ */ _(X, { className: $.tooltipArrow }), /* @__PURE__ */ _("span", { children: t })]
378
- })]
379
- }) }));
365
+ }, se = e(({ children: e, content: t, className: n, style: r, hoverDelayDuration: i = 1e3 }, a) => {
366
+ let [o, s] = y(!1), c = v(null), l = v("keyboard"), u = () => {
367
+ c.current !== null && (clearTimeout(c.current), c.current = null);
368
+ }, d = () => {
369
+ l.current = "pointer";
370
+ }, f = () => {
371
+ l.current = "keyboard";
372
+ }, p = () => {
373
+ d(), u(), c.current = setTimeout(() => {
374
+ s(!0);
375
+ }, i);
376
+ }, m = () => {
377
+ u(), s(!1);
378
+ };
379
+ return _(() => () => {
380
+ u();
381
+ }, []), /* @__PURE__ */ b(P, { children: /* @__PURE__ */ x(L, {
382
+ open: o,
383
+ onOpenChange: (e) => {
384
+ e && l.current === "pointer" || s(e);
385
+ },
386
+ children: [/* @__PURE__ */ b(z, {
387
+ asChild: !0,
388
+ children: /* @__PURE__ */ b("div", {
389
+ ref: a,
390
+ className: n,
391
+ style: r,
392
+ onMouseEnter: p,
393
+ onMouseLeave: m,
394
+ onPointerDown: d,
395
+ onPointerEnter: d,
396
+ onMouseDown: d,
397
+ onKeyDownCapture: f,
398
+ onFocus: () => {
399
+ l.current !== "pointer" && (u(), s(!0));
400
+ },
401
+ onBlur: m,
402
+ onTouchStart: m,
403
+ children: e
404
+ })
405
+ }), /* @__PURE__ */ x(W, {
406
+ className: $.tooltipContent,
407
+ sideOffset: 5,
408
+ children: [/* @__PURE__ */ b(Z, { className: $.tooltipArrow }), /* @__PURE__ */ b("span", { children: t })]
409
+ })]
410
+ }) });
411
+ });
380
412
  //#endregion
381
- export { ie as t };
413
+ export { se as t };
@@ -0,0 +1,17 @@
1
+ import './assets/SearchTool.css';//#region lib/components/layout/toolbar/SearchTool.module.css
2
+ var e = {
3
+ "rp-search-tool-content": "_rp-search-tool-content_101l0_1",
4
+ "rp-search-tool-input": "_rp-search-tool-input_101l0_10",
5
+ "rp-search-tool-input-icon": "_rp-search-tool-input-icon_101l0_17",
6
+ "rp-search-tool-controls": "_rp-search-tool-controls_101l0_27",
7
+ "rp-search-tool-input-wrapper": "_rp-search-tool-input-wrapper_101l0_35",
8
+ "rp-search-tool-input-checkboxes": "_rp-search-tool-input-checkboxes_101l0_41",
9
+ "rp-search-tool-input-clear": "_rp-search-tool-input-clear_101l0_46",
10
+ "rp-search-input": "_rp-search-input_101l0_60",
11
+ "rp-search-icon-info": "_rp-search-icon-info_101l0_67",
12
+ "rp-search-loader-icon": "_rp-search-loader-icon_101l0_81",
13
+ "rp-search-live-region": "_rp-search-live-region_101l0_86",
14
+ "rp-search-tool-result-navigator": "_rp-search-tool-result-navigator_101l0_98"
15
+ };
16
+ //#endregion
17
+ export { e as t };
@@ -1,14 +1,14 @@
1
1
  import { jsx as e } from "react/jsx-runtime";
2
2
  import './assets/SkipLink.css';//#region lib/components/layout/SkipLink.module.css
3
- var t = { "rp-skip-link": "_rp-skip-link_12ssl_1" }, n = ({ href: n, label: r }) => /* @__PURE__ */ e("a", {
3
+ var t = { "rp-skip-link": "_rp-skip-link_17rgz_1" }, n = ({ href: n, label: r }) => /* @__PURE__ */ e("a", {
4
4
  href: n,
5
5
  className: t["rp-skip-link"],
6
6
  onClick: (e) => {
7
7
  e.preventDefault();
8
8
  let t = document.querySelector(n);
9
9
  if (!t) return;
10
- let r = t.querySelector("button, [href], input, select, textarea, [tabindex]:not([tabindex=\"-1\"])") || t;
11
- r && typeof r.focus == "function" && r.focus();
10
+ let r = t.querySelector("button, [href], input, select, textarea, [tabindex]:not([tabindex=\"-1\"])") || t.querySelector("[data-rp=\"pages\"], [tabindex]") || t;
11
+ r && typeof r.focus == "function" && (t.scrollIntoView({ block: "start" }), r.focus());
12
12
  },
13
13
  "aria-label": r,
14
14
  tabIndex: 0,
@@ -9,11 +9,11 @@ import { useCallback as s, useEffect as c, useMemo as l, useRef as u, useState a
9
9
  import { jsx as f, jsxs as p } from "react/jsx-runtime";
10
10
  import './assets/Thumbnail.css';//#region lib/components/layout/sidebar/Thumbnail.module.css
11
11
  var m = {
12
- "rp-thumbnail-wrapper": "_rp-thumbnail-wrapper_czi7p_1",
13
- "rp-thumbnail-text": "_rp-thumbnail-text_czi7p_10",
14
- "rp-thumbnail": "_rp-thumbnail_czi7p_1",
15
- "rp-thumbnail-active": "_rp-thumbnail-active_czi7p_23",
16
- "rp-thumbnail-loader": "_rp-thumbnail-loader_czi7p_32"
12
+ "rp-thumbnail-wrapper": "_rp-thumbnail-wrapper_drpd8_1",
13
+ "rp-thumbnail-text": "_rp-thumbnail-text_drpd8_15",
14
+ "rp-thumbnail": "_rp-thumbnail_drpd8_1",
15
+ "rp-thumbnail-active": "_rp-thumbnail-active_drpd8_28",
16
+ "rp-thumbnail-loader": "_rp-thumbnail-loader_drpd8_37"
17
17
  }, h = (h) => {
18
18
  let { pageNumber: g, isFocused: _, viewport: v } = h, { goToPage: y } = n(), { pageRotate: b } = t(), x = u(null), S = r(), { pages: C } = e(), [w, T] = d(null), E = u(!1), D = u(), O = l(() => _ ? m["rp-thumbnail-active"] : "", [_]), k = l(() => ({
19
19
  width: Math.round(v.width),
@@ -2,7 +2,7 @@ import { r as e } from "./PaginationContext-B3qzCYJu.js";
2
2
  import { useThumbnailContext as t } from "./contexts/ThumbnailsContext.js";
3
3
  import { useThumbnailContainerRegister as n } from "./contexts/ElementThumbnailContext.js";
4
4
  import { withRef as r } from "./utils/withRef.js";
5
- import { t as i } from "./Thumbnail-BNpCO-jm.js";
5
+ import { t as i } from "./Thumbnail-BVjnCNxv.js";
6
6
  import { useInfiniteScroll as a } from "./utils/hooks/useInfiniteScroll.js";
7
7
  import { useCallback as o, useEffect as s, useImperativeHandle as c, useMemo as l, useRef as u } from "react";
8
8
  import { jsx as d } from "react/jsx-runtime";
@@ -1 +1 @@
1
- ._rp-menu-item_cu12j_1{padding:var(--rp-dropdown-padding-menu-item);cursor:pointer;border-radius:var(--rp-border-radius);outline:none;align-items:center;display:flex}._rp-menu-item_cu12j_1 :is(svg){font-size:var(--rp-menu-item-icon-size)}._rp-menu-item_cu12j_1:is(:hover,:focus-visible){background:var(--rp-dropdown-hover-background-color)}.rp-menu-item-left{justify-content:center;align-items:center;padding-right:8px;display:flex}.rp-menu-item{flex-direction:row;align-items:center;width:100%;display:flex}.rp-menu-item-right{margin-left:auto}.rp-menu-item[aria-disabled=true]{opacity:.5;cursor:not-allowed}._rp-menu-item_cu12j_1[data-disabled]{pointer-events:none;opacity:.5}
1
+ ._rp-menu-item_1q6of_1{padding:var(--rp-dropdown-padding-menu-item);cursor:pointer;border-radius:var(--rp-border-radius);outline:none;align-items:center;display:flex}._rp-menu-item_1q6of_1 :is(svg){font-size:var(--rp-menu-item-icon-size)}._rp-menu-item_1q6of_1:is(:hover,:focus-visible){background:var(--rp-dropdown-hover-background-color)}._rp-menu-item_1q6of_1:focus-visible:not(:hover){outline:1px solid var(--rp-outline-color,-webkit-focus-ring-color);outline-offset:1px}.rp-menu-item-left{justify-content:center;align-items:center;padding-right:8px;display:flex}.rp-menu-item{box-sizing:border-box;flex-direction:row;align-items:center;width:100%;display:flex}.rp-menu-item-right{margin-left:auto}.rp-menu-item[aria-disabled=true]{opacity:.5;cursor:not-allowed}._rp-menu-item_1q6of_1[data-disabled]{cursor:not-allowed;opacity:.5}
@@ -1 +1 @@
1
- ._rp-search-tool-content_1gldw_1{border:1px solid var(--rp-popover-border-color);border-radius:var(--rp-popover-border-radius);background-color:var(--rp-popover-background-color);color:var(--rp-text-color);padding:8px;display:flex}._rp-search-tool-input_1gldw_10{color:var(--rp-text-color);align-items:center;gap:.7rem;display:flex}._rp-search-tool-input-icon_1gldw_17{color:var(--rp-text-color);font-size:1.25rem}._rp-search-tool-input-icon_1gldw_17[aria-disabled=true]{opacity:.5;cursor:not-allowed}._rp-search-tool-controls_1gldw_27{border-left:1px solid var(--rp-popover-border-color);align-items:baseline;margin-left:.4rem;padding-left:.4rem;display:flex}._rp-search-tool-input-wrapper_1gldw_35{flex-direction:column;gap:8px;display:flex}._rp-search-tool-input-checkboxes_1gldw_41{gap:.5rem;display:flex}._rp-search-tool-input-clear_1gldw_46{cursor:pointer;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;right:0}._rp-search-input_1gldw_60{border:1px solid var(--rp-search-input-border-color);color:var(--rp-text-color);max-width:220px;padding-right:2rem}._rp-search-icon-info_1gldw_67{cursor:pointer;justify-content:center;align-items:center;margin-right:.5rem;font-size:20px;display:flex}._rp-search-loader-icon_1gldw_76{width:20px;height:20px}._rp-search-live-region_1gldw_81{clip:rect(0, 0, 0, 0);white-space:nowrap;border:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}._rp-search-tool-result-navigator_1gldw_93{margin-right:.3rem}
1
+ ._rp-search-tool-content_101l0_1{border:1px solid var(--rp-popover-border-color);border-radius:var(--rp-popover-border-radius);background-color:var(--rp-popover-background-color);color:var(--rp-text-color);padding:8px;display:flex}._rp-search-tool-input_101l0_10{color:var(--rp-text-color);align-items:center;gap:.7rem;display:flex}._rp-search-tool-input-icon_101l0_17{color:var(--rp-text-color);font-size:1.25rem}._rp-search-tool-input-icon_101l0_17[aria-disabled=true]{opacity:.5;cursor:not-allowed}._rp-search-tool-controls_101l0_27{border-left:1px solid var(--rp-popover-border-color);align-items:baseline;margin-left:.4rem;padding-left:.4rem;display:flex}._rp-search-tool-input-wrapper_101l0_35{flex-direction:column;gap:8px;display:flex}._rp-search-tool-input-checkboxes_101l0_41{gap:.5rem;display:flex}._rp-search-tool-input-clear_101l0_46{cursor:pointer;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;right:0}._rp-search-input_101l0_60{border:1px solid var(--rp-search-input-border-color);color:var(--rp-text-color);max-width:220px;padding-right:2rem}._rp-search-icon-info_101l0_67{cursor:pointer;justify-content:center;align-items:center;margin-right:.5rem;font-size:20px;display:flex}._rp-search-icon-info_101l0_67:focus-visible{outline:1px solid var(--rp-outline-color,-webkit-focus-ring-color);outline-offset:1px;border-radius:var(--rp-border-radius)}._rp-search-loader-icon_101l0_81{width:20px;height:20px}._rp-search-live-region_101l0_86{clip:rect(0, 0, 0, 0);white-space:nowrap;border:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}._rp-search-tool-result-navigator_101l0_98{margin-right:.3rem}
@@ -1 +1 @@
1
- ._rp-skip-link_12ssl_1{z-index:10000;border:1px solid var(--rp-skip-link-border-color);border-radius:var(--rp-border-radius);background:var(--rp-skip-link-background-color);min-width:200px;min-height:36px;color:var(--rp-skip-link-color);font-size:var(--rp-skip-link-font-size);white-space:normal;text-align:center;clip:rect(0, 0, 0, 0);clip-path:inset(50%);justify-content:center;align-items:center;padding-inline:6px;font-weight:600;text-decoration:none;display:flex;position:absolute;top:6px;left:6px;overflow:hidden}._rp-skip-link_12ssl_1:focus{clip:auto;clip-path:none;overflow:visible}._rp-skip-link_12ssl_1:focus:not(:focus-visible),._rp-skip-link_12ssl_1:focus-visible{outline:none}._rp-skip-link_12ssl_1:hover{background:var(--rp-skip-link-border-color);border-color:var(--rp-skip-link-border-color)}
1
+ ._rp-skip-link_17rgz_1{z-index:10000;border:1px solid var(--rp-skip-link-border-color);border-radius:var(--rp-border-radius);background:var(--rp-skip-link-background-color);min-width:200px;min-height:36px;color:var(--rp-skip-link-color);font-size:var(--rp-skip-link-font-size);white-space:normal;text-align:center;clip:rect(0, 0, 0, 0);clip-path:inset(50%);justify-content:center;align-items:center;padding-inline:6px;font-weight:600;text-decoration:none;display:flex;position:absolute;top:6px;left:6px;overflow:hidden}._rp-skip-link_17rgz_1:focus{clip:auto;clip-path:none;overflow:visible}._rp-skip-link_17rgz_1:focus:not(:focus-visible),._rp-skip-link_17rgz_1:focus-visible{outline:1px solid var(--rp-outline-color,-webkit-focus-ring-color);outline-offset:1px}._rp-skip-link_17rgz_1:hover{background:var(--rp-skip-link-border-color);border-color:var(--rp-skip-link-border-color)}
@@ -1 +1 @@
1
- ._rp-thumbnail-wrapper_czi7p_1{margin-bottom:var(--rp-thumbnail-padding-y);cursor:pointer;flex-direction:column;align-items:center;display:flex}._rp-thumbnail-text_czi7p_10{color:var(--rp-text-color);margin-top:8px;font-size:12px;font-weight:400}._rp-thumbnail_czi7p_1{display:flex;position:relative;box-shadow:0 2px 6px #00000026}._rp-thumbnail_czi7p_1:not(._rp-thumbnail-active_czi7p_23):not(:hover){padding:4px}._rp-thumbnail-active_czi7p_23,._rp-thumbnail_czi7p_1:hover{border:var(--rp-thumbnail-active-color) solid 4px}._rp-thumbnail-loader_czi7p_32{justify-content:center;align-items:center;display:flex}
1
+ ._rp-thumbnail-wrapper_drpd8_1{margin-bottom:var(--rp-thumbnail-padding-y);cursor:pointer;flex-direction:column;align-items:center;display:flex}._rp-thumbnail-wrapper_drpd8_1:focus-visible{outline:1px solid var(--rp-outline-color,-webkit-focus-ring-color);outline-offset:-1px}._rp-thumbnail-text_drpd8_15{color:var(--rp-text-color);margin-top:8px;font-size:12px;font-weight:400}._rp-thumbnail_drpd8_1{display:flex;position:relative;box-shadow:0 2px 6px #00000026}._rp-thumbnail_drpd8_1:not(._rp-thumbnail-active_drpd8_28):not(:hover){padding:4px}._rp-thumbnail-active_drpd8_28,._rp-thumbnail_drpd8_1:hover{border:var(--rp-thumbnail-active-color) solid 4px}._rp-thumbnail-loader_drpd8_37{justify-content:center;align-items:center;display:flex}
@@ -1,2 +1,2 @@
1
- import { t as e } from "../style-DCakeEMr.js";
1
+ import { t as e } from "../style-C0q9DGPX.js";
2
2
  export { e as combinedCSS };
@@ -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-DCakeEMr.js";
11
+ import { t as l } from "../style-C0q9DGPX.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";
@@ -13,7 +13,7 @@ import { RPSidebar as u } from "./sidebar/RPSidebar.js";
13
13
  import { t as d } from "../../Container-BxNZX82X.js";
14
14
  import { t as f } from "../../WrapperLayout-Dcd9l9xH.js";
15
15
  import { t as p } from "../../RPDropFileZone-D1C3ouep.js";
16
- import { t as m } from "../../SkipLink-CdcjClGB.js";
16
+ import { t as m } from "../../SkipLink-Dj83gZdk.js";
17
17
  import { forwardRef as h, useEffect as g, useState as _ } from "react";
18
18
  import { jsx as v, jsxs as y } from "react/jsx-runtime";
19
19
  //#region lib/components/layout/RPDefaultLayout.tsx
@@ -10,7 +10,7 @@ import { t as s } from "../../Container-BxNZX82X.js";
10
10
  import { t as c } from "../../WrapperLayout-Dcd9l9xH.js";
11
11
  import { t as l } from "../../RPDropFileZone-D1C3ouep.js";
12
12
  import { LayoutDropFileZoneProvider as u } from "../../contexts/LayoutDropFileZoneContext.js";
13
- import { t as d } from "../../SkipLink-CdcjClGB.js";
13
+ import { t as d } from "../../SkipLink-Dj83gZdk.js";
14
14
  import { ToolbarLayout as f } from "./toolbar/ToolbarLayout.js";
15
15
  import { useEffect as p } from "react";
16
16
  import { jsx as m, jsxs as h } from "react/jsx-runtime";
@@ -1,3 +1,3 @@
1
1
  "use client";
2
- import { t as e } from "../../SkipLink-CdcjClGB.js";
2
+ import { t as e } from "../../SkipLink-Dj83gZdk.js";
3
3
  export { e as SkipLink };
@@ -6,10 +6,10 @@ 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-BNlmxWrV.js";
8
8
  import { useIconContext as a } from "../../../contexts/IconContext.js";
9
- import { t as o } from "../../../RPTooltip-ZZoFqP7C.js";
9
+ import { t as o } from "../../../RPTooltip-COLVx-C_.js";
10
10
  import { ThumbnailIcon as s } from "../../icons/Thumbnail.js";
11
11
  import { n as c, t as l } from "../../../RPSplitter-C63X9M8w.js";
12
- import { t as u } from "../../../Thumbnails-DYvhzEUD.js";
12
+ import { t as u } from "../../../Thumbnails-CrKLESh3.js";
13
13
  import { useCallback as d, useMemo as f, useRef as p, useState as m } from "react";
14
14
  import { Fragment as h, jsx as g, jsxs as _ } from "react/jsx-runtime";
15
15
  //#region lib/components/layout/sidebar/RPSidebar.tsx
@@ -1,3 +1,3 @@
1
1
  "use client";
2
- import { t as e } from "../../../Thumbnail-BNpCO-jm.js";
2
+ import { t as e } from "../../../Thumbnail-BVjnCNxv.js";
3
3
  export { e as Thumbnail };
@@ -1,2 +1,2 @@
1
- import { t as e } from "../../../Thumbnails-DYvhzEUD.js";
1
+ import { t as e } from "../../../Thumbnails-CrKLESh3.js";
2
2
  export { e as Thumbnails };
@@ -5,7 +5,7 @@ import { useToolComponentContext as r } from "../../../contexts/ToolComponentCon
5
5
  import { useIconToolContext as i } from "../../../contexts/IconToolContext.js";
6
6
  import { t as a } from "../../../Button-BNlmxWrV.js";
7
7
  import { useIconContext as o } from "../../../contexts/IconContext.js";
8
- import { t as s } from "../../../RPTooltip-ZZoFqP7C.js";
8
+ import { t as s } from "../../../RPTooltip-COLVx-C_.js";
9
9
  import { MoonIcon as c } from "../../icons/MoonIcon.js";
10
10
  import { SunIcon as l } from "../../icons/SunIcon.js";
11
11
  import { useCallback as u } from "react";
@@ -4,8 +4,8 @@ import { useToolComponentContext as n } from "../../../contexts/ToolComponentCon
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";
7
- import { t as o } from "../../../RPTooltip-ZZoFqP7C.js";
8
- import { t as s } from "../../../MenuItem-BJDWfzAw.js";
7
+ import { t as o } from "../../../RPTooltip-COLVx-C_.js";
8
+ import { t as s } from "../../../MenuItem-D-GflAAo.js";
9
9
  import { InfoIcon as c } from "../../icons/InfoIcon.js";
10
10
  import { t as l } from "../../../MenuSeparator-D1H5l8Ej.js";
11
11
  import { Fragment as u, jsx as d, jsxs as f } from "react/jsx-runtime";
@@ -15,11 +15,11 @@ var p = () => {
15
15
  return e || t || /* @__PURE__ */ d(c, {});
16
16
  }, m = () => {
17
17
  let { setActiveDocumentProperties: r } = i(), { documentProperties: a = !0 } = t(), { documentProperties: c = !0, scrollModeTool: m } = n(), { localeMessages: h } = e();
18
- return !a || !c ? null : /* @__PURE__ */ f(u, { children: [m && /* @__PURE__ */ d(l, {}), /* @__PURE__ */ d(s, {
19
- onClick: () => r((e) => !e),
20
- children: /* @__PURE__ */ f(o, {
18
+ return !a || !c ? null : /* @__PURE__ */ f(u, { children: [m && /* @__PURE__ */ d(l, {}), /* @__PURE__ */ d(o, {
19
+ content: h?.documentPropertiesTooltip,
20
+ children: /* @__PURE__ */ f(s, {
21
21
  className: "rp-menu-item",
22
- content: h?.documentPropertiesTooltip,
22
+ onClick: () => r((e) => !e),
23
23
  children: [/* @__PURE__ */ d("div", {
24
24
  className: "rp-menu-item-left",
25
25
  children: /* @__PURE__ */ d(p, {})