@react-pdf-kit/viewer 2.8.0-beta.5 → 2.8.0-beta.7

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 (175) hide show
  1. package/dist/{AnnotationLayer-CAIvKf_O.js → AnnotationLayer-Dl6VxRzL.js} +2 -2
  2. package/dist/{Button-DBu3SaMk.js → Button-BNlmxWrV.js} +1 -1
  3. package/dist/CanvasLayer-cRwL_IIT.js +105 -0
  4. package/dist/{Checkbox-CSIEUyO8.js → Checkbox-Brta-YKG.js} +4 -4
  5. package/dist/{Combination-11kyhTGt.js → Combination-DqNkTtir.js} +15 -15
  6. package/dist/{Container-BuamPhw4.js → Container-BxNZX82X.js} +1 -1
  7. package/dist/{DocumentDialog-cRr9sSSH.js → DocumentDialog-C9G7lVTh.js} +4 -4
  8. package/dist/{DropDown-CM6xEwZC.js → DropDown-DikL-krI.js} +2 -2
  9. package/dist/{Input-Dpo1Xfxe.js → Input-DjSWOjCI.js} +1 -1
  10. package/dist/{LoaderIcon-B3ddfd0D.js → LoaderIcon-D9YjinGf.js} +1 -1
  11. package/dist/{LoadingIndicator-Bzzf28Xv.js → LoadingIndicator-B_Jsf8No.js} +8 -8
  12. package/dist/MenuItem-D-GflAAo.js +31 -0
  13. package/dist/{MenuSeparator-CaFxd8b5.js → MenuSeparator-D1H5l8Ej.js} +1 -1
  14. package/dist/{PaginationContext-Cwf8sCpK.js → PaginationContext-B3qzCYJu.js} +46 -53
  15. package/dist/{PasswordModal-BtHVvrMg.js → PasswordModal-BW_C2ULg.js} +12 -12
  16. package/dist/{RPDropFileZone-Bq1bzWmO.js → RPDropFileZone-D1C3ouep.js} +1 -1
  17. package/dist/RPLayout.module-DCbTHUuG.js +14 -0
  18. package/dist/{RPPages-DeA52_rv.js → RPPages-5yXo7yhq.js} +624 -324
  19. package/dist/{RPTooltip-CXBVXusS.js → RPTooltip-COLVx-C_.js} +127 -95
  20. package/dist/SearchTool.module-DY8Ucfb_.js +17 -0
  21. package/dist/{SkipLink-CdcjClGB.js → SkipLink-Dj83gZdk.js} +3 -3
  22. package/dist/{TextLayer-DWGFN9SF.js → TextLayer-BdoXGj0Z.js} +5 -5
  23. package/dist/{Thumbnail-DyRfHsAh.js → Thumbnail-BVjnCNxv.js} +8 -8
  24. package/dist/{Thumbnails-Cbr54TOa.js → Thumbnails-CrKLESh3.js} +2 -2
  25. package/dist/assets/AnnotationLayer.css +1 -1
  26. package/dist/assets/CanvasLayer.css +1 -0
  27. package/dist/assets/LoadingIndicator.css +1 -1
  28. package/dist/assets/MenuItem.css +1 -1
  29. package/dist/assets/PasswordModal.css +1 -1
  30. package/dist/assets/RPLayout.css +1 -1
  31. package/dist/assets/SearchTool.css +1 -1
  32. package/dist/assets/SkipLink.css +1 -1
  33. package/dist/assets/TextLayer.css +1 -1
  34. package/dist/assets/Thumbnail.css +1 -1
  35. package/dist/assets/style.js +1 -1
  36. package/dist/{clsx-DSGuh5YW.js → clsx-B7LyVm5O.js} +1 -1
  37. package/dist/components/RPController.js +1 -1
  38. package/dist/components/RPDropFileZone.js +1 -1
  39. package/dist/components/RPPages.js +1 -1
  40. package/dist/components/RPProvider.js +1 -1
  41. package/dist/components/icons/LoaderIcon.js +1 -1
  42. package/dist/components/layout/Container.js +1 -1
  43. package/dist/components/layout/LayoutContainer.js +2 -2
  44. package/dist/components/layout/LayoutWrapper.js +1 -1
  45. package/dist/components/layout/RPDefaultLayout.js +4 -4
  46. package/dist/components/layout/RPLayout.js +4 -4
  47. package/dist/components/layout/SkipLink.js +1 -1
  48. package/dist/components/layout/sidebar/RPSidebar.js +3 -3
  49. package/dist/components/layout/sidebar/Thumbnail.js +1 -1
  50. package/dist/components/layout/sidebar/Thumbnails.js +1 -1
  51. package/dist/components/layout/toolbar/DarkModeTool.js +2 -2
  52. package/dist/components/layout/toolbar/DocumentDialog.js +1 -1
  53. package/dist/components/layout/toolbar/DocumentProperties.js +7 -7
  54. package/dist/components/layout/toolbar/FileDownloadTool.js +7 -7
  55. package/dist/components/layout/toolbar/FileUploadTool.js +7 -7
  56. package/dist/components/layout/toolbar/FullScreenTool.js +10 -9
  57. package/dist/components/layout/toolbar/MenuItem.js +1 -1
  58. package/dist/components/layout/toolbar/MenuSeparator.js +1 -1
  59. package/dist/components/layout/toolbar/MostPageTool.js +25 -31
  60. package/dist/components/layout/toolbar/OtherTool.js +6 -6
  61. package/dist/components/layout/toolbar/Paginate.js +5 -4
  62. package/dist/components/layout/toolbar/PrintTool.js +7 -7
  63. package/dist/components/layout/toolbar/RPMenuItem.js +3 -3
  64. package/dist/components/layout/toolbar/RPMoreOptions.js +6 -6
  65. package/dist/components/layout/toolbar/RPToolbar.js +1 -1
  66. package/dist/components/layout/toolbar/RotateTool.js +12 -12
  67. package/dist/components/layout/toolbar/ScrollModeTool.js +16 -16
  68. package/dist/components/layout/toolbar/SearchCloseButton.js +3 -3
  69. package/dist/components/layout/toolbar/SearchResultNavigator.js +3 -3
  70. package/dist/components/layout/toolbar/SearchTool.js +134 -122
  71. package/dist/components/layout/toolbar/SelectionModeTool.js +12 -12
  72. package/dist/components/layout/toolbar/ThumbnailTool.js +2 -2
  73. package/dist/components/layout/toolbar/ToolbarCustom.js +2 -2
  74. package/dist/components/layout/toolbar/ToolbarDefault.js +2 -2
  75. package/dist/components/layout/toolbar/ViewModeTool.js +18 -18
  76. package/dist/components/layout/toolbar/ZoomTool.js +86 -84
  77. package/dist/components/layout/toolbar/tools/DocumentPropertiesTool.js +3 -3
  78. package/dist/components/layout/toolbar/tools/DualPageTool.js +2 -2
  79. package/dist/components/layout/toolbar/tools/DualPageWithCoverTool.js +1 -1
  80. package/dist/components/layout/toolbar/tools/FileDownloadTool.js +2 -2
  81. package/dist/components/layout/toolbar/tools/FileUploadTool.js +2 -2
  82. package/dist/components/layout/toolbar/tools/FirstPageTool.js +1 -1
  83. package/dist/components/layout/toolbar/tools/FullScreenTool.js +2 -2
  84. package/dist/components/layout/toolbar/tools/HorizontalScrollingTool.js +2 -2
  85. package/dist/components/layout/toolbar/tools/InputPageTool.js +3 -3
  86. package/dist/components/layout/toolbar/tools/LastPageTool.js +1 -1
  87. package/dist/components/layout/toolbar/tools/NextPageTool.js +3 -3
  88. package/dist/components/layout/toolbar/tools/PageScrollingTool.js +2 -2
  89. package/dist/components/layout/toolbar/tools/PreviousPageTool.js +3 -3
  90. package/dist/components/layout/toolbar/tools/PrintTool.js +2 -2
  91. package/dist/components/layout/toolbar/tools/RotateClockwiseTool.js +2 -2
  92. package/dist/components/layout/toolbar/tools/RotateCounterclockwiseTool.js +2 -2
  93. package/dist/components/layout/toolbar/tools/SelectionModeSwitcherTool.js +2 -2
  94. package/dist/components/layout/toolbar/tools/SinglePageTool.js +2 -2
  95. package/dist/components/layout/toolbar/tools/ThemeSwitcherTool.js +2 -2
  96. package/dist/components/layout/toolbar/tools/ThumbnailTool.js +2 -2
  97. package/dist/components/layout/toolbar/tools/VerticalScrollingTool.js +2 -2
  98. package/dist/components/layout/toolbar/tools/ZoomInTool.js +25 -23
  99. package/dist/components/layout/toolbar/tools/ZoomLevelDisplay.js +1 -1
  100. package/dist/components/layout/toolbar/tools/ZoomLevelTool.js +6 -6
  101. package/dist/components/layout/toolbar/tools/ZoomOutTool.js +25 -23
  102. package/dist/components/layout/toolbar/tools/more-options/DocumentProperties.js +2 -2
  103. package/dist/components/layout/toolbar/tools/more-options/FileDownloadTool.js +2 -2
  104. package/dist/components/layout/toolbar/tools/more-options/FileUploadTool.js +2 -2
  105. package/dist/components/layout/toolbar/tools/more-options/FullScreenTool.js +2 -2
  106. package/dist/components/layout/toolbar/tools/more-options/MostPageTool.js +5 -5
  107. package/dist/components/layout/toolbar/tools/more-options/PrintTool.js +2 -2
  108. package/dist/components/layout/toolbar/tools/more-options/RotateTool.js +4 -4
  109. package/dist/components/layout/toolbar/tools/more-options/ScrollModeTool.js +3 -3
  110. package/dist/components/layout/toolbar/tools/more-options/SelectionModeTool.js +4 -4
  111. package/dist/components/layout/toolbar/tools/more-options/ViewModeTool.js +4 -4
  112. package/dist/components/page/AnnotationLayer.js +1 -1
  113. package/dist/components/page/CanvasLayer.js +2 -48
  114. package/dist/components/page/DualPage.js +2 -2
  115. package/dist/components/page/DualPageWithCover.js +2 -2
  116. package/dist/components/page/RPPage.js +94 -2
  117. package/dist/components/page/SinglePage.js +2 -2
  118. package/dist/components/page/TextLayer.js +1 -1
  119. package/dist/components/ui/Button.js +1 -1
  120. package/dist/components/ui/Checkbox.js +1 -1
  121. package/dist/components/ui/DropDown.js +1 -1
  122. package/dist/components/ui/Input.js +1 -1
  123. package/dist/components/ui/LoadingIndicator.js +1 -1
  124. package/dist/components/ui/PasswordModal.js +1 -1
  125. package/dist/components/ui/RPTooltip.js +1 -1
  126. package/dist/contexts/DimensionPagesContext.js +38 -22
  127. package/dist/contexts/ElementThumbnailContext.js +1 -1
  128. package/dist/contexts/LoaderContext.js +1 -1
  129. package/dist/contexts/PaginationContext.js +1 -1
  130. package/dist/contexts/RenderQueueProvider.js +11 -7
  131. package/dist/contexts/ZoomContext.js +119 -61
  132. package/dist/{de_DE-DwUvXUWH.js → de_DE-C1OrwQKj.js} +18 -0
  133. package/dist/{dist-B2hwhF6G.js → dist-7FA4Do6I.js} +7 -7
  134. package/dist/{dist-BfuBBQ14.js → dist-BRVqFn7R.js} +6 -6
  135. package/dist/{dist-CNbFpoT1.js → dist-C3WNMuW2.js} +2 -2
  136. package/dist/{dist-VbpVNBs6.js → dist-CKteKPPA.js} +7 -7
  137. package/dist/{dist-CgoP608h.js → dist-bK-AHWLF.js} +7 -7
  138. package/dist/icons.js +1 -1
  139. package/dist/{main-Zah9b8M8.js → main-CdlJS0xf.js} +3 -3
  140. package/dist/main.js +5 -5
  141. package/dist/style-CWQAmimK.js +5 -0
  142. package/dist/types/components/ui/RPTooltip.d.ts +3 -2
  143. package/dist/types/contexts/RenderQueueProvider.d.ts +2 -0
  144. package/dist/types/locales/de_DE.json.d.ts +3 -0
  145. package/dist/types/locales/en_US.json.d.ts +3 -0
  146. package/dist/types/locales/it_IT.json.d.ts +3 -0
  147. package/dist/types/locales/pt_PT.json.d.ts +3 -0
  148. package/dist/types/locales/th_TH.json.d.ts +3 -0
  149. package/dist/types/locales/zh_CN.json.d.ts +3 -0
  150. package/dist/types/utils/Queue.d.ts +1 -0
  151. package/dist/types/utils/constants.d.ts +8 -0
  152. package/dist/types/utils/hooks/usePinch.d.ts +14 -1
  153. package/dist/types/utils/hooks/useZoomOrigin.d.ts +4 -0
  154. package/dist/types/utils/types.d.ts +17 -1
  155. package/dist/types/utils/zoom.d.ts +2 -0
  156. package/dist/utils/Queue.js +5 -0
  157. package/dist/utils/constants.js +2 -2
  158. package/dist/utils/hooks/useLicense.js +1 -1
  159. package/dist/utils/hooks/useLocalization.js +1 -1
  160. package/dist/utils/hooks/usePaginate.js +1 -1
  161. package/dist/utils/hooks/usePinch.js +102 -56
  162. package/dist/utils/hooks/usePresentPage.js +23 -19
  163. package/dist/utils/hooks/useScrollToPage.js +1 -1
  164. package/dist/utils/hooks/useSearch.js +1 -1
  165. package/dist/utils/hooks/useZoomOrigin.js +37 -0
  166. package/dist/utils/renderPage.js +21 -14
  167. package/dist/utils/types.js +2 -2
  168. package/dist/utils/zoom.js +8 -2
  169. package/package.json +1 -1
  170. package/dist/MenuItem-9kCH_GQ0.js +0 -15
  171. package/dist/RPLayout.module-Vc3h4xxS.js +0 -14
  172. package/dist/RPPage-C_r8aeTc.js +0 -91
  173. package/dist/SearchTool.module-DUkVXfOn.js +0 -16
  174. package/dist/assets/RPPage.css +0 -1
  175. package/dist/style-C8T5x1fE.js +0 -5
@@ -2,7 +2,7 @@ import { AnnotationSubType as e } from "./utils/types.js";
2
2
  import { useDocumentContext as t } from "./contexts/RPDocumentContext.js";
3
3
  import { useInitialStateContext as n } from "./contexts/InitialStateContext.js";
4
4
  import { useScrollModeContext as r } from "./contexts/ScrollModeContext.js";
5
- import { r as i } from "./PaginationContext-Cwf8sCpK.js";
5
+ import { r as i } from "./PaginationContext-B3qzCYJu.js";
6
6
  import { usePrintContext as a } from "./contexts/PrintContext.js";
7
7
  import { SimpleLinkService as o } from "./utils/link_service.js";
8
8
  import { annotationEventsHandler as s, bindLayerEvents as c, enhanceLinkAccessibility as l, fixTabIndexAccessibility as u, handleAnnotationWidget as d, insertDateText as f, unbindLayerEvents as p } from "./utils/annotations.js";
@@ -11,7 +11,7 @@ import { useCallback as h, useEffect as g, useMemo as _, useRef as v, useState a
11
11
  import { AnnotationLayer as b } from "pdfjs-dist";
12
12
  import { jsx as x } from "react/jsx-runtime";
13
13
  import './assets/AnnotationLayer.css';//#region lib/components/page/AnnotationLayer.module.css
14
- var S = { "rp-annotation-layer": "_rp-annotation-layer_rwxfx_1" }, C = "https://unpkg.com/pdfjs-dist@4.4.168/web/images/", w = (w) => {
14
+ var S = { "rp-annotation-layer": "_rp-annotation-layer_foiun_1" }, C = "https://unpkg.com/pdfjs-dist@4.4.168/web/images/", w = (w) => {
15
15
  let { pageNumber: T } = w, E = v(null), { pages: D, pdf: O } = t(), { interactiveForm: k } = n(), A = v(), [j, M] = y(), { goToPage: N } = i(), { scrollMode: P } = r(), { print: F } = a(), { download: I } = m(), L = v(null), R = _(() => D.get(T), [D, T]), z = _(() => R?.page.getViewport(), [R]);
16
16
  g(() => {
17
17
  A.current &&= (A.current.div.replaceChildren(), void 0);
@@ -1,4 +1,4 @@
1
- import { t as e } from "./clsx-DSGuh5YW.js";
1
+ import { t as e } from "./clsx-B7LyVm5O.js";
2
2
  import { withRef as t } from "./utils/withRef.js";
3
3
  import { jsx as n } from "react/jsx-runtime";
4
4
  import './assets/Button.css';//#region lib/components/ui/Button.module.css
@@ -0,0 +1,105 @@
1
+ import { useDocumentContext as e } from "./contexts/RPDocumentContext.js";
2
+ import { useInitialStateContext as t } from "./contexts/InitialStateContext.js";
3
+ import { useZoomContext as n } from "./contexts/ZoomContext.js";
4
+ import { usePagesRotateContext as r } from "./contexts/PagesRotateContext.js";
5
+ import { useRenderQueue as i } from "./contexts/RenderQueueProvider.js";
6
+ import { useCallback as a, useEffect as o, useRef as s } from "react";
7
+ import { jsx as c } from "react/jsx-runtime";
8
+ import './assets/CanvasLayer.css';//#region lib/components/page/RPPage.module.css
9
+ var l = {
10
+ "rp-page-wrapper": "_rp-page-wrapper_1iuev_1",
11
+ "rp-page": "_rp-page_1iuev_1",
12
+ "rp-canvas-layer": "_rp-canvas-layer_1iuev_17",
13
+ "rp-loader-wrapper": "_rp-loader-wrapper_1iuev_40"
14
+ }, u = (u) => {
15
+ let { pageNumber: d, onLoaded: f, onLoading: p } = u, m = s(null), h = s(null), g = s(null), { pages: _ } = e(), { pageRotate: v } = r(), { currentZoom: y, targetZoom: b, isZooming: x } = n(), { interactiveForm: S } = t(), C = i(), w = s(`page-${d}`), T = s(0), E = s(""), D = s(null), O = s(0), k = s(!1), A = a((e, t = !1) => {
16
+ e && (e.width = 0, e.height = 0, t && e.parentNode && e.parentNode.removeChild(e));
17
+ }, []), j = a((e = h.current) => {
18
+ if (!e) return;
19
+ let t = O.current, n = t ? (b || y || t || 1) / t : 1;
20
+ e.style.setProperty("--rp-canvas-scale-ratio", String(n));
21
+ }, [y, b]), M = a(() => {
22
+ let e = document.createElement("canvas");
23
+ return e.dataset.rp = `page-${d}-canvas`, e.style.opacity = "0", e.style.position = "absolute", e.style.inset = "0", j(e), e;
24
+ }, [d, j]), N = a(() => {
25
+ C.removeQueue(w.current), D.current &&= (D.current.cancel(), null);
26
+ }, [C]), P = a(() => {
27
+ g.current && !g.current.parentNode && (A(g.current), g.current = null);
28
+ }, [A]), F = a((e) => {
29
+ if (!k.current) return A(e), !1;
30
+ let t = m.current;
31
+ if (!t) return A(e), !1;
32
+ let n = h.current;
33
+ return n?.parentNode ? n.replaceWith(e) : t.appendChild(e), e.style.opacity = "1", h.current = e, A(n), !0;
34
+ }, [A]);
35
+ return o(() => (k.current = !0, () => {
36
+ k.current = !1, N(), A(g.current), A(h.current), g.current = null, h.current = null;
37
+ }), [N, A]), o(() => {
38
+ j();
39
+ }, [j]), o(() => {
40
+ w.current = `page-${d}`, E.current = "", O.current = 0, A(g.current, !0), A(h.current, !0), g.current = null, h.current = null;
41
+ }, [A, d]), o(() => {
42
+ x && (N(), P());
43
+ }, [
44
+ N,
45
+ P,
46
+ x
47
+ ]), o(() => {
48
+ if (!_ || y === 0 || x) return;
49
+ let e = _.get(d), t = m.current;
50
+ if (!e || !t) return;
51
+ let n = v[d] ?? e.defaultRotation ?? 0, r = `${y}:${n}:${S ? "forms" : "static"}`;
52
+ if (E.current === r) return;
53
+ let i = h.current, a = !!i && i.width > 0 && i.height > 0, o = T.current + 1;
54
+ T.current = o, N(), P(), p && !a && p();
55
+ let s = M();
56
+ return g.current = s, C.enqueue(w.current, {
57
+ page: e.page,
58
+ canvasElem: s,
59
+ options: {
60
+ scale: y,
61
+ rotate: n,
62
+ renderForms: !0,
63
+ interactiveForm: S
64
+ },
65
+ onLoaded: () => {
66
+ if (T.current !== o || g.current !== s) {
67
+ A(s);
68
+ return;
69
+ }
70
+ if (O.current = y, j(s), !F(s)) {
71
+ g.current = null;
72
+ return;
73
+ }
74
+ g.current = null, E.current = r, D.current = null, f?.();
75
+ },
76
+ onRenderTask: (e) => {
77
+ T.current === o && (D.current = e);
78
+ }
79
+ }, 3), () => {
80
+ N(), g.current === s && (A(s), g.current = null);
81
+ };
82
+ }, [
83
+ N,
84
+ A,
85
+ P,
86
+ M,
87
+ y,
88
+ S,
89
+ x,
90
+ f,
91
+ p,
92
+ d,
93
+ v,
94
+ _,
95
+ C,
96
+ F,
97
+ j
98
+ ]), /* @__PURE__ */ c("div", {
99
+ className: l["rp-canvas-layer"],
100
+ "data-rp": `page-${d}-canvasLayer`,
101
+ ref: m
102
+ });
103
+ };
104
+ //#endregion
105
+ export { l as n, u as t };
@@ -1,9 +1,9 @@
1
- import { d as e, f as t, i as n, l as r, n as i, t as a } from "./dist-CgoP608h.js";
2
- import { t as o } from "./dist-CNbFpoT1.js";
1
+ import { d as e, f as t, i as n, l as r, n as i, t as a } from "./dist-bK-AHWLF.js";
2
+ import { t as o } from "./dist-C3WNMuW2.js";
3
3
  import { CheckIcon as s } from "./components/icons/CheckIcon.js";
4
4
  import * as c from "react";
5
5
  import { Fragment as l, jsx as u, jsxs as d } from "react/jsx-runtime";
6
- import './assets/Checkbox.css';//#region node_modules/@radix-ui/react-use-previous/dist/index.mjs
6
+ import './assets/Checkbox.css';//#region node_modules/.pnpm/@radix-ui+react-use-previous@1.1.1_@types+react@18.3.27_react@19.2.0/node_modules/@radix-ui/react-use-previous/dist/index.mjs
7
7
  function f(e) {
8
8
  let t = c.useRef({
9
9
  value: e,
@@ -12,7 +12,7 @@ function f(e) {
12
12
  return c.useMemo(() => (t.current.value !== e && (t.current.previous = t.current.value, t.current.value = e), t.current.previous), [e]);
13
13
  }
14
14
  //#endregion
15
- //#region node_modules/@radix-ui/react-checkbox/dist/index.mjs
15
+ //#region node_modules/.pnpm/@radix-ui+react-checkbox@1.3.3_@types+react-dom@18.3.7_@types+react@18.3.27__@types+rea_cb5de23141bd54a8bfa4180b5db14bd0/node_modules/@radix-ui/react-checkbox/dist/index.mjs
16
16
  var p = "Checkbox", [m, h] = r(p), [g, _] = m(p);
17
17
  function v(e) {
18
18
  let { __scopeCheckbox: t, checked: n, children: r, defaultChecked: i, disabled: o, form: s, name: l, onCheckedChange: d, required: f, value: m = "on", internal_do_not_use_render: h } = e, [_, v] = a({
@@ -1,9 +1,9 @@
1
- import { d as e, i as t } from "./dist-CgoP608h.js";
2
- import { i as n } from "./dist-BfuBBQ14.js";
1
+ import { d as e, i as t } from "./dist-bK-AHWLF.js";
2
+ import { i as n } from "./dist-BRVqFn7R.js";
3
3
  import * as r from "react";
4
4
  import { useState as i } from "react";
5
5
  import { jsx as a } from "react/jsx-runtime";
6
- //#region node_modules/@radix-ui/react-focus-guards/dist/index.mjs
6
+ //#region node_modules/.pnpm/@radix-ui+react-focus-guards@1.1.3_@types+react@18.3.27_react@19.2.0/node_modules/@radix-ui/react-focus-guards/dist/index.mjs
7
7
  var o = 0;
8
8
  function s() {
9
9
  r.useEffect(() => {
@@ -18,7 +18,7 @@ function c() {
18
18
  return e.setAttribute("data-radix-focus-guard", ""), e.tabIndex = 0, e.style.outline = "none", e.style.opacity = "0", e.style.position = "fixed", e.style.pointerEvents = "none", e;
19
19
  }
20
20
  //#endregion
21
- //#region node_modules/@radix-ui/react-focus-scope/dist/index.mjs
21
+ //#region node_modules/.pnpm/@radix-ui+react-focus-scope@1.1.7_@types+react-dom@18.3.7_@types+react@18.3.27__@types+_c9bbb58fdda48c8c67e5a2aa62d74a2f/node_modules/@radix-ui/react-focus-scope/dist/index.mjs
22
22
  var l = "focusScope.autoFocusOnMount", u = "focusScope.autoFocusOnUnmount", d = {
23
23
  bubbles: !1,
24
24
  cancelable: !0
@@ -157,7 +157,7 @@ function w(e) {
157
157
  return e.filter((e) => e.tagName !== "A");
158
158
  }
159
159
  //#endregion
160
- //#region node_modules/aria-hidden/dist/es2015/index.js
160
+ //#region node_modules/.pnpm/aria-hidden@1.2.6/node_modules/aria-hidden/dist/es2015/index.js
161
161
  var T = function(e) {
162
162
  return typeof document > "u" ? null : (Array.isArray(e) ? e[0] : e).ownerDocument.body;
163
163
  }, E = /* @__PURE__ */ new WeakMap(), D = /* @__PURE__ */ new WeakMap(), O = {}, k = 0, A = function(e) {
@@ -217,15 +217,15 @@ function re(e, t, n) {
217
217
  return e.concat(a || Array.prototype.slice.call(t));
218
218
  }
219
219
  //#endregion
220
- //#region node_modules/react-remove-scroll-bar/dist/es2015/constants.js
220
+ //#region node_modules/.pnpm/react-remove-scroll-bar@2.3.8_@types+react@18.3.27_react@19.2.0/node_modules/react-remove-scroll-bar/dist/es2015/constants.js
221
221
  var N = "right-scroll-bar-position", P = "width-before-scroll-bar", ie = "with-scroll-bars-hidden", ae = "--removed-body-scroll-bar-size";
222
222
  //#endregion
223
- //#region node_modules/use-callback-ref/dist/es2015/assignRef.js
223
+ //#region node_modules/.pnpm/use-callback-ref@1.3.3_@types+react@18.3.27_react@19.2.0/node_modules/use-callback-ref/dist/es2015/assignRef.js
224
224
  function F(e, t) {
225
225
  return typeof e == "function" ? e(t) : e && (e.current = t), e;
226
226
  }
227
227
  //#endregion
228
- //#region node_modules/use-callback-ref/dist/es2015/useRef.js
228
+ //#region node_modules/.pnpm/use-callback-ref@1.3.3_@types+react@18.3.27_react@19.2.0/node_modules/use-callback-ref/dist/es2015/useRef.js
229
229
  function oe(e, t) {
230
230
  var n = i(function() {
231
231
  return {
@@ -245,7 +245,7 @@ function oe(e, t) {
245
245
  return n.callback = t, n.facade;
246
246
  }
247
247
  //#endregion
248
- //#region node_modules/use-callback-ref/dist/es2015/useMergeRef.js
248
+ //#region node_modules/.pnpm/use-callback-ref@1.3.3_@types+react@18.3.27_react@19.2.0/node_modules/use-callback-ref/dist/es2015/useMergeRef.js
249
249
  var se = typeof window < "u" ? r.useLayoutEffect : r.useEffect, ce = /* @__PURE__ */ new WeakMap();
250
250
  function le(e, t) {
251
251
  var n = oe(t || null, function(t) {
@@ -267,7 +267,7 @@ function le(e, t) {
267
267
  }, [e]), n;
268
268
  }
269
269
  //#endregion
270
- //#region node_modules/use-sidecar/dist/es2015/medium.js
270
+ //#region node_modules/.pnpm/use-sidecar@1.1.3_@types+react@18.3.27_react@19.2.0/node_modules/use-sidecar/dist/es2015/medium.js
271
271
  function ue(e) {
272
272
  return e;
273
273
  }
@@ -334,7 +334,7 @@ function fe(e) {
334
334
  }, e), t;
335
335
  }
336
336
  //#endregion
337
- //#region node_modules/use-sidecar/dist/es2015/exports.js
337
+ //#region node_modules/.pnpm/use-sidecar@1.1.3_@types+react@18.3.27_react@19.2.0/node_modules/use-sidecar/dist/es2015/exports.js
338
338
  var I = function(e) {
339
339
  var t = e.sideCar, n = M(e, ["sideCar"]);
340
340
  if (!t) throw Error("Sidecar: please provide `sideCar` property to import the right car");
@@ -347,7 +347,7 @@ function pe(e, t) {
347
347
  return e.useMedium(t), I;
348
348
  }
349
349
  //#endregion
350
- //#region node_modules/react-remove-scroll/dist/es2015/medium.js
350
+ //#region node_modules/.pnpm/react-remove-scroll@2.7.1_@types+react@18.3.27_react@19.2.0/node_modules/react-remove-scroll/dist/es2015/medium.js
351
351
  var L = fe(), R = function() {}, z = r.forwardRef(function(e, t) {
352
352
  var n = r.useRef(null), i = r.useState({
353
353
  onScrollCapture: R,
@@ -393,13 +393,13 @@ z.defaultProps = {
393
393
  zeroRight: N
394
394
  };
395
395
  //#endregion
396
- //#region node_modules/get-nonce/dist/es2015/index.js
396
+ //#region node_modules/.pnpm/get-nonce@1.0.1/node_modules/get-nonce/dist/es2015/index.js
397
397
  var B, me = function() {
398
398
  if (B) return B;
399
399
  if (typeof __webpack_nonce__ < "u") return __webpack_nonce__;
400
400
  };
401
401
  //#endregion
402
- //#region node_modules/react-style-singleton/dist/es2015/singleton.js
402
+ //#region node_modules/.pnpm/react-style-singleton@2.2.3_@types+react@18.3.27_react@19.2.0/node_modules/react-style-singleton/dist/es2015/singleton.js
403
403
  function he() {
404
404
  if (!document) return null;
405
405
  var e = document.createElement("style");
@@ -683,7 +683,7 @@ function Be(e) {
683
683
  return t;
684
684
  }
685
685
  //#endregion
686
- //#region node_modules/react-remove-scroll/dist/es2015/sidecar.js
686
+ //#region node_modules/.pnpm/react-remove-scroll@2.7.1_@types+react@18.3.27_react@19.2.0/node_modules/react-remove-scroll/dist/es2015/sidecar.js
687
687
  var Ve = pe(L, ze), He = r.forwardRef(function(e, t) {
688
688
  return r.createElement(z, j({}, e, {
689
689
  ref: t,
@@ -1,5 +1,5 @@
1
1
  import { useLocalizationContext as e } from "./contexts/LocalizationContext.js";
2
- import { t } from "./clsx-DSGuh5YW.js";
2
+ import { t } from "./clsx-B7LyVm5O.js";
3
3
  import { jsx as n } from "react/jsx-runtime";
4
4
  import './assets/Container.css';//#region lib/components/layout/Container.module.css
5
5
  var r = { "rp-container": "_rp-container_f63gc_1" }, i = (e) => e.replace(/_/g, "-"), a = (a) => {
@@ -3,15 +3,15 @@ import { useLayoutContainer as t } from "./contexts/LayoutContainerContext.js";
3
3
  import { useLocalizationContext as n } from "./contexts/LocalizationContext.js";
4
4
  import { useOtherToolContext as r } from "./contexts/OtherToolContext.js";
5
5
  import { dateFormatter as i } from "./utils/dateFormatter.js";
6
- import { c as a, d as o, f as s, i as c, l, n as u, o as d, t as f } from "./dist-CgoP608h.js";
7
- import { n as p, r as m, t as h } from "./dist-BfuBBQ14.js";
8
- import { i as g, n as ee, r as _, t as v } from "./Combination-11kyhTGt.js";
6
+ import { c as a, d as o, f as s, i as c, l, n as u, o as d, t as f } from "./dist-bK-AHWLF.js";
7
+ import { n as p, r as m, t as h } from "./dist-BRVqFn7R.js";
8
+ import { i as g, n as ee, r as _, t as v } from "./Combination-DqNkTtir.js";
9
9
  import { CloseIcon as te } from "./components/icons/CloseIcon.js";
10
10
  import { t as y } from "./PropertyItem-evJWWmWZ.js";
11
11
  import * as b from "react";
12
12
  import { useMemo as x } from "react";
13
13
  import { Fragment as S, jsx as C, jsxs as w } from "react/jsx-runtime";
14
- import './assets/DocumentDialog.css';//#region node_modules/@radix-ui/react-dialog/dist/index.mjs
14
+ import './assets/DocumentDialog.css';//#region node_modules/.pnpm/@radix-ui+react-dialog@1.1.15_@types+react-dom@18.3.7_@types+react@18.3.27__@types+reac_2e279b9f45eaccf149bfa3a9b35ce50c/node_modules/@radix-ui/react-dialog/dist/index.mjs
15
15
  var T = "Dialog", [E, ne] = l(T), [D, O] = E(T), k = (e) => {
16
16
  let { __scopeDialog: t, children: n, open: r, defaultOpen: i, onOpenChange: a, modal: o = !0 } = e, s = b.useRef(null), c = b.useRef(null), [l, u] = f({
17
17
  prop: r,
@@ -1,5 +1,5 @@
1
- import { t as e } from "./clsx-DSGuh5YW.js";
2
- import { a as t, i as n, s as r, t as i } from "./dist-VbpVNBs6.js";
1
+ import { t as e } from "./clsx-B7LyVm5O.js";
2
+ import { a as t, i as n, s as r, t as i } from "./dist-CKteKPPA.js";
3
3
  import { jsx as a, jsxs as o } from "react/jsx-runtime";
4
4
  import './assets/DropDown.css';var s = {
5
5
  "rp-dropdown-content": "_rp-dropdown-content_1vzkq_1",
@@ -1,4 +1,4 @@
1
- import { t as e } from "./clsx-DSGuh5YW.js";
1
+ import { t as e } from "./clsx-B7LyVm5O.js";
2
2
  import { withRef as t } from "./utils/withRef.js";
3
3
  import { useId as n } from "react";
4
4
  import { jsx as r, jsxs as i } from "react/jsx-runtime";
@@ -1,4 +1,4 @@
1
- import { t as e } from "./clsx-DSGuh5YW.js";
1
+ import { t as e } from "./clsx-B7LyVm5O.js";
2
2
  import { jsx as t } from "react/jsx-runtime";
3
3
  import './assets/LoaderIcon.css';//#region lib/assets/loader.png
4
4
  var n = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFAAAABQCAYAAACOEfKtAAAACXBIWXMAABYlAAAWJQFJUiTwAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAABPbSURBVHgB5Vx7jB3ldT/nm7mPfXqxsQFj4msCMYRCTCBVDCFeUlEVhQa7ld0SpcI0KSFUwIJCq6ZqvUZV2iR/sDZJWuiDpU1UCUsYUEOgIuxaFKgiCyelMTbYeNfYMeDX2l7v4975vi/n8c3c67UXP9Y29t6zujvvmTu/+zuP75wzg/ARyjVP7pnisfEG7+Ei7+yViDALvLsIPDgH/kIAz2LB0R7eD9AhW2luAJzdBojvWqj83Cbxmxu/Ov0AfESCcBpl3uO+DZrLCyLAGzy6W2jVRQIOoUZAOQYMHFiPNO9oFdISrfHO8Tb68LLnZToGrALMZ/Dv0uzPE+9fgl371m78y8tOG6CnBcDPPOUXeEw6CJHPI/hWBsAHMOSjyFkBkbhGizoPvOSEgb4GQBb64gI6f4yexMqxgi4+42zSu+HOi9bAKZZTBuC81b4tNu4+9L6DbquNVI5JRTfOCND9old2eVkXGMfs0vXCtMAyASWsFyC9q4Kpv4aA6BU8WY98agfb6PPPWCi8vv6OGe/BKZCTDmA7ATdCwNEd3kc30kY3h4iomooEpyU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y110DcMNVfwBv3DfmpPG2bAgeGy5R6H3SDg4MwNJr3Q+W8h8hKGpQHsRjlaJmsHgXHZVpXjmj0EZvBPbnK2xMFjyWGkyDBKSy89zUaznnopI96aXUkmL3/E2scdpA01QNjX/1ZVX9YFVZs4n+793loacI9hSYPB3b6VsjD/mIem5O8Hxyt+Ebumzc535B3OMQWrZL4YoP3IxXvG+JCxVRye/Z0f2U/nCSZMANrZeV8fGLldTiHZpeD2jZMew19yif974PvFkmTtz7dFlZne69a79tbdtDM2wBzr/JwHq3fpeTZT+NXSIwbjAvEtApFJInHcuKHy5aWiX3G+tHRvC063D1Q6t+658cnD7zw3U+NdLwmDzAuoDE6uUksQRrv+DRRCzWJWkgTjembHDNv/u3P0GBrySoD77xoYMZvGWhODBStmT7SSLXqA9HenDetlQLuJycCI2T3yBY2kjPx7EwseeKcHRwo7dtP3trBKZBTBmCtdLzq+X0MCwmT26thTk2iMW0Kg+BU0oK+OBEwixevMqve2WtgeAfOuqI12ja8H6GBtCc/lRwJORMCEZIR2jsXNdNxUUNTZd+0ZOhEwpLjlZNiA48mXdfh0zR5umOd74iGoZ1und/P0O7lhY4hvKnphkiPC6/Xo8+TlIMiFb4YMG7a72GYVhab/NRdu2FPcwPtdo6FZptAWyEZXHlPOcsenQY5LQwcTwjQtuIIzCPdaqfFEgUYsynEoCAP+TWjbZiFMZ2mnWDvnc42+5MAV9Dev37Rw1szPfQss6cTsLHyG7LNE1I07Q7WAAAAAElFTkSuQmCC", r = {
@@ -1,15 +1,15 @@
1
1
  import { useLocalizationContext as e } from "./contexts/LocalizationContext.js";
2
2
  import { usePrintContext as t } from "./contexts/PrintContext.js";
3
- import { t as n } from "./clsx-DSGuh5YW.js";
3
+ import { t as n } from "./clsx-B7LyVm5O.js";
4
4
  import { jsx as r, jsxs as i } from "react/jsx-runtime";
5
5
  import './assets/LoadingIndicator.css';var a = {
6
- "rp-loading-overlay": "_rp-loading-overlay_wazy2_1",
7
- "rp-loading-modal": "_rp-loading-modal_wazy2_14",
8
- "rp-loading-title": "_rp-loading-title_wazy2_27",
9
- "rp-loading-progress-bar": "_rp-loading-progress-bar_wazy2_35",
10
- "rp-loading-progress": "_rp-loading-progress_wazy2_35",
11
- "rp-loading-cancel-button": "_rp-loading-cancel-button_wazy2_55",
12
- loading: "_loading_wazy2_1"
6
+ "rp-loading-overlay": "_rp-loading-overlay_8gxoj_1",
7
+ "rp-loading-modal": "_rp-loading-modal_8gxoj_14",
8
+ "rp-loading-title": "_rp-loading-title_8gxoj_27",
9
+ "rp-loading-progress-bar": "_rp-loading-progress-bar_8gxoj_35",
10
+ "rp-loading-progress": "_rp-loading-progress_8gxoj_35",
11
+ "rp-loading-cancel-button": "_rp-loading-cancel-button_8gxoj_55",
12
+ loading: "_loading_8gxoj_1"
13
13
  }, o = ({ percentage: o }) => {
14
14
  let { cancel: s } = t(), { localeMessages: c } = e();
15
15
  return o < 1 ? null : /* @__PURE__ */ r("div", {
@@ -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 };
@@ -1,4 +1,4 @@
1
- import { o as e } from "./dist-VbpVNBs6.js";
1
+ import { o as e } from "./dist-CKteKPPA.js";
2
2
  import { jsx as t } from "react/jsx-runtime";
3
3
  import './assets/MenuSeparator.css';//#region lib/components/layout/toolbar/MenuSeparator.module.css
4
4
  var n = { "rp-menu-separator": "_rp-menu-separator_17dlz_1" }, r = () => /* @__PURE__ */ t(e, { className: n["rp-menu-separator"] });
@@ -14,22 +14,22 @@ import { useDimensionPagesContext as p } from "./contexts/DimensionPagesContext.
14
14
  import { useSmoothScrollContext as m } from "./contexts/SmoothScrollContext.js";
15
15
  import { getScrollDistance as h } from "./utils/getScrollDistance.js";
16
16
  import { getGridDimension as g, getPositionFromPage as _ } from "./utils/calculatePage.js";
17
- import { createContext as v, useCallback as y, useContext as b, useEffect as x, useMemo as S, useRef as C, useState as w } from "react";
18
- import { jsx as T } from "react/jsx-runtime";
17
+ import { createContext as v, useCallback as y, useContext as b, useEffect as x, useRef as S, useState as C } from "react";
18
+ import { jsx as w } from "react/jsx-runtime";
19
19
  //#region lib/utils/hooks/useScrollToPage.ts
20
- var E = () => {
21
- let { viewMode: n } = o(), { scrollMode: r } = a(), { virtualScrollRef: i, virtualScrollableElementRef: u, pageScrollElementRef: d } = s(), { setFocusedPage: f } = k(), v = C(), { columnCount: b } = c(), { widths: S, heights: w } = p(), T = C(r), E = C(n), D = C(b), { targetScrollPage: O, scrollBehavior: A } = m(), j = C(null);
20
+ var T = () => {
21
+ let { viewMode: n } = o(), { scrollMode: r } = a(), { virtualScrollRef: i, virtualScrollableElementRef: u, pageScrollElementRef: d } = s(), { setFocusedPage: f } = O(), v = S(), { columnCount: b } = c(), { widths: C, heights: w } = p(), T = S(r), E = S(n), D = S(b), { targetScrollPage: k, scrollBehavior: A } = m(), j = S(null), M = S();
22
22
  x(() => {
23
23
  i?.scrollToItem && (v.current = i);
24
24
  }, [i]), x(() => {
25
25
  T.current = r, E.current = n;
26
26
  }, [r, n]);
27
- let M = y((e, t) => {
27
+ let N = y((e, t) => {
28
28
  if (!d) return;
29
29
  let n = Math.ceil(e / 2) * 2 - 1;
30
30
  if (e === n + 1) {
31
31
  let e = {
32
- left: S[n],
32
+ left: C[n],
33
33
  top: 0
34
34
  };
35
35
  return new Promise((t) => l(d, e, t));
@@ -41,7 +41,7 @@ var E = () => {
41
41
  });
42
42
  }, [
43
43
  d,
44
- S,
44
+ C,
45
45
  l
46
46
  ]);
47
47
  x(() => {
@@ -49,11 +49,13 @@ var E = () => {
49
49
  }, [r, n]), x(() => {
50
50
  D.current = b;
51
51
  }, [b]);
52
- let N = y((n, r = A) => {
53
- f(n);
52
+ let P = y((n, r = A) => {
53
+ f(n), k.current = n, clearTimeout(M.current), M.current = setTimeout(() => {
54
+ k.current === n && (k.current = void 0);
55
+ }, 3e3);
54
56
  let i = n - 1, a = i, o = 0;
55
57
  if (E.current === t.DUAL_PAGE && T.current === e.PAGE_SCROLLING) {
56
- M(n, r);
58
+ N(n, r);
57
59
  return;
58
60
  }
59
61
  if (T.current === e.PAGE_SCROLLING) {
@@ -68,10 +70,8 @@ var E = () => {
68
70
  return;
69
71
  }
70
72
  j.current = null;
71
- let s = u;
72
- r === "smooth" && (O.current = n);
73
- let c = E.current === t.DUAL_PAGE_WITH_COVER, { columnsWidth: l, rowsHeight: d } = g({
74
- widths: S,
73
+ let s = u, c = E.current === t.DUAL_PAGE_WITH_COVER, { columnsWidth: l, rowsHeight: d } = g({
74
+ widths: C,
75
75
  heights: w
76
76
  }, b, c);
77
77
  if (T.current === e.HORIZONTAL_SCROLLING) {
@@ -117,20 +117,22 @@ var E = () => {
117
117
  }, [
118
118
  u,
119
119
  b,
120
- M,
120
+ N,
121
121
  f,
122
122
  l,
123
123
  w,
124
- S,
124
+ C,
125
125
  A
126
126
  ]);
127
- return x(() => {
127
+ return x(() => () => {
128
+ clearTimeout(M.current);
129
+ }, []), x(() => {
128
130
  if (!u || !j.current) return;
129
131
  let { page: e, behavior: t } = j.current;
130
- j.current = null, N(e, t);
131
- }, [u, N]), { scrollToPage: N };
132
- }, D = (n = 1) => {
133
- let [r, i] = w(n), [s, c] = w(0), { scrollToPage: l } = E(), d = C(n), { viewMode: m } = o(), { scrollMode: h } = a(), { widths: g } = p(), { pagesRef: _ } = u(), v = f(r, 100), b = y((e) => {
132
+ j.current = null, P(e, t);
133
+ }, [u, P]), { scrollToPage: P };
134
+ }, E = (n = 1) => {
135
+ let [r, i] = C(n), [s, c] = C(0), { scrollToPage: l } = T(), d = S(n), { viewMode: m } = o(), { scrollMode: h } = a(), { widths: g } = p(), { pagesRef: _ } = u(), v = f(r, 100), b = y((e) => {
134
136
  if (!/^[0-9]*$/g.test(e.toString()) || !e) return {
135
137
  success: !1,
136
138
  currentPage: d.current
@@ -143,12 +145,12 @@ var E = () => {
143
145
  success: !0,
144
146
  currentPage: +e
145
147
  });
146
- }, [s]), x = y(b, [b]), T = y((e) => {
148
+ }, [s]), x = y(b, [b]), w = y((e) => {
147
149
  i(e), d.current = e;
148
- }, []), D = y((e, t) => {
150
+ }, []), E = y((e, t) => {
149
151
  let n = b(e);
150
152
  return n.success && l(n.currentPage, t), n;
151
- }, [b, l]), O = y((e) => {
153
+ }, [b, l]), D = y((e) => {
152
154
  let n = e % 2 == 1;
153
155
  if (!_ || n) return !1;
154
156
  let r = n ? g[e] : g[e - 1], i = n ? g[e + 1] : g[e];
@@ -158,43 +160,34 @@ var E = () => {
158
160
  g,
159
161
  _,
160
162
  s
161
- ]), k = y(() => {
162
- let e = r - 1;
163
- O(e) && (e = r - 2), D(e);
164
- }, [
165
- D,
166
- r,
167
- m,
168
- h,
169
- O
170
- ]), A = S(() => m === t.DUAL_PAGE && h === e.PAGE_SCROLLING ? r === s - 1 : r === s, [
171
- r,
163
+ ]), O = y((n) => m === t.DUAL_PAGE && h === e.PAGE_SCROLLING ? n >= s - 1 : n >= s, [
172
164
  s,
173
165
  m,
174
166
  h
175
- ]);
167
+ ]), k = y(() => {
168
+ let e = d.current, t = e - 1;
169
+ D(t) && (t = e - 2), E(t);
170
+ }, [E, D]);
176
171
  return {
177
172
  focusedPage: v,
178
173
  totalPages: s,
179
174
  setFocusedPage: x,
180
- resetPage: T,
175
+ resetPage: w,
181
176
  setTotalPages: c,
182
177
  nextPage: y(() => {
183
- if (A) return;
184
- let e = r + 1;
185
- O(e) && (e = r + 2), D(e);
178
+ let e = d.current;
179
+ if (O(e)) return;
180
+ let t = e + 1;
181
+ D(t) && (t = e + 2), E(t);
186
182
  }, [
183
+ E,
187
184
  D,
188
- r,
189
- O,
190
- m,
191
- h,
192
- A
185
+ O
193
186
  ]),
194
187
  prevPage: k,
195
- goToPage: D
188
+ goToPage: E
196
189
  };
197
- }, O = v({
190
+ }, D = v({
198
191
  focusedPage: 0,
199
192
  setFocusedPage: (e) => {},
200
193
  goToPage: (e, t) => ({
@@ -205,11 +198,11 @@ var E = () => {
205
198
  setTotalPages: (e) => {},
206
199
  prevPage: () => {},
207
200
  nextPage: () => {}
208
- }), k = () => {
209
- let e = b(O);
201
+ }), O = () => {
202
+ let e = b(D);
210
203
  return e?.focusedPage === void 0 && n.error("Please use this hooks inside children component of RPProvider"), e;
211
- }, A = ({ children: e }) => {
212
- let { pdf: t } = r(), { setCurrentPage: n } = d(), { initialPage: a = 1 } = i(), { focusedPage: o, totalPages: s, setFocusedPage: c, resetPage: l, setTotalPages: u, goToPage: f, nextPage: p, prevPage: m } = D(a), h = C(!0);
204
+ }, k = ({ children: e }) => {
205
+ let { pdf: t } = r(), { setCurrentPage: n } = d(), { initialPage: a = 1 } = i(), { focusedPage: o, totalPages: s, setFocusedPage: c, resetPage: l, setTotalPages: u, goToPage: f, nextPage: p, prevPage: m } = E(a), h = S(!0);
213
206
  return x(() => {
214
207
  if (!t) {
215
208
  h.current || (u(0), l(1));
@@ -225,7 +218,7 @@ var E = () => {
225
218
  l
226
219
  ]), x(() => {
227
220
  n(o);
228
- }, [o, n]), /* @__PURE__ */ T(O.Provider, {
221
+ }, [o, n]), /* @__PURE__ */ w(D.Provider, {
229
222
  value: {
230
223
  focusedPage: o,
231
224
  totalPages: s,
@@ -239,4 +232,4 @@ var E = () => {
239
232
  });
240
233
  };
241
234
  //#endregion
242
- export { E as a, D as i, A as n, k as r, O as t };
235
+ export { T as a, E as i, k as n, O as r, D as t };
@@ -1,20 +1,20 @@
1
1
  import { useDocumentPasswordContext as e } from "./contexts/DocumentPasswordContext.js";
2
2
  import { useLocalizationContext as t } from "./contexts/LocalizationContext.js";
3
- import { t as n } from "./clsx-DSGuh5YW.js";
3
+ import { t as n } from "./clsx-B7LyVm5O.js";
4
4
  import { useState as r } from "react";
5
5
  import { jsx as i, jsxs as a } from "react/jsx-runtime";
6
- import './assets/PasswordModal.css';//#region lib/components/ui/PasswordModal.module.css
6
+ import './assets/PasswordModal.css';//#region lib/components/ui/passwordModal.module.css
7
7
  var o = {
8
- "rp-password-overlay": "_rp-password-overlay_9cdbk_1",
9
- "rp-password-modal": "_rp-password-modal_9cdbk_13",
10
- "rp-password-title": "_rp-password-title_9cdbk_27",
11
- "rp-password-content": "_rp-password-content_9cdbk_35",
12
- "rp-password-form": "_rp-password-form_9cdbk_41",
13
- "rp-password-label": "_rp-password-label_9cdbk_45",
14
- "rp-password-input": "_rp-password-input_9cdbk_57",
15
- "rp-password-input-invalid": "_rp-password-input-invalid_9cdbk_74",
16
- "rp-password-message-invalid": "_rp-password-message-invalid_9cdbk_78",
17
- "rp-password-submit-button": "_rp-password-submit-button_9cdbk_84"
8
+ "rp-password-overlay": "_rp-password-overlay_1xibg_1",
9
+ "rp-password-modal": "_rp-password-modal_1xibg_13",
10
+ "rp-password-title": "_rp-password-title_1xibg_27",
11
+ "rp-password-content": "_rp-password-content_1xibg_35",
12
+ "rp-password-form": "_rp-password-form_1xibg_41",
13
+ "rp-password-label": "_rp-password-label_1xibg_45",
14
+ "rp-password-input": "_rp-password-input_1xibg_57",
15
+ "rp-password-input-invalid": "_rp-password-input-invalid_1xibg_74",
16
+ "rp-password-message-invalid": "_rp-password-message-invalid_1xibg_78",
17
+ "rp-password-submit-button": "_rp-password-submit-button_1xibg_84"
18
18
  }, s = () => {
19
19
  let [s, c] = r(""), { localeMessages: l } = t(), { setPassword: u, setPasswordError: d, invalidPassword: f } = e(), p = (e) => {
20
20
  c(e.target.value), f && d(void 0);
@@ -1,7 +1,7 @@
1
1
  import { useDarkModeContext as e } from "./contexts/DarkModeContext.js";
2
2
  import { useLocalizationContext as t } from "./contexts/LocalizationContext.js";
3
3
  import { useDropFileZoneContext as n } from "./contexts/DropFileZoneContext.js";
4
- import { t as r } from "./clsx-DSGuh5YW.js";
4
+ import { t as r } from "./clsx-B7LyVm5O.js";
5
5
  import { t as i } from "./LightPdfIcon-DL8MYtWQ.js";
6
6
  import { t as a } from "./DarkPdfIcon-B5ehd9CV.js";
7
7
  import { useDropFileZone as o } from "./utils/hooks/useDropFileZone.js";