@react-pdf-kit/viewer 2.6.0-beta.2 → 2.6.0-rc.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/AnnotationLayer-D6BfL976.js +113 -0
- package/dist/Button-jStpvb3T.js +21 -0
- package/dist/Checkbox-Brta-YKG.js +195 -0
- package/dist/Combination-DqNkTtir.js +695 -0
- package/dist/Container-DTWaZzc7.js +16 -0
- package/dist/CustomThumbnailElement-C2quEICO.js +19 -0
- package/dist/DarkPdfIcon-B5ehd9CV.js +9 -0
- package/dist/DocumentDialog-DHAWcYIz.js +324 -0
- package/dist/DropDown-DikL-krI.js +33 -0
- package/dist/Input-Bb_-ljl1.js +31 -0
- package/dist/LightPdfIcon-DL8MYtWQ.js +9 -0
- package/dist/LoaderIcon-D9YjinGf.js +14 -0
- package/dist/LoadingIndicator-MWrbKa6X.js +45 -0
- package/dist/MenuItem-BJDWfzAw.js +15 -0
- package/dist/MenuSeparator-D1H5l8Ej.js +6 -0
- package/dist/MostPageTool.module-BRVv-sGz.js +4 -0
- package/dist/OtherTool.module-BQY9Nfqz.js +4 -0
- package/dist/Paginate.module-B0GMw-MB.js +8 -0
- package/dist/PaginationContext--n91mIJ4.js +232 -0
- package/dist/PasswordModal-BDHdSpxf.js +76 -0
- package/dist/PropertyItem-evJWWmWZ.js +18 -0
- package/dist/RPDropFileZone-BunRfzst.js +35 -0
- package/dist/RPLayout.module-Vc3h4xxS.js +14 -0
- package/dist/RPPage-BuSGUFzw.js +91 -0
- package/dist/RPPages-V5CNUXFD.js +1007 -0
- package/dist/RPSplitter-C63X9M8w.js +121 -0
- package/dist/RPToolbar.module-BwqWLviy.js +10 -0
- package/dist/RPTooltip-ZZoFqP7C.js +381 -0
- package/dist/RotateTool.module-DH5yWbvM.js +4 -0
- package/dist/SearchTool.module-DUkVXfOn.js +16 -0
- package/dist/SkipLink-Bvbn3miT.js +18 -0
- package/dist/TextHighlightLayer-BSVgBxR3.js +157 -0
- package/dist/TextLayer-DWGFN9SF.js +125 -0
- package/dist/Thumbnail-Dwo2-4Ki.js +97 -0
- package/dist/Thumbnails-ComClyJJ.js +52 -0
- package/dist/ToolbarLayout.module-Zo715dbb.js +12 -0
- package/dist/WrapperLayout-Dcd9l9xH.js +13 -0
- package/dist/ZoomTool.module-BrIPy8pO.js +11 -0
- package/dist/assets/AnnotationLayer.css +1 -0
- package/dist/assets/Button.css +1 -0
- package/dist/assets/Checkbox.css +1 -0
- package/dist/assets/Container.css +1 -0
- package/dist/assets/CustomThumbnailElement.css +1 -0
- package/dist/assets/DocumentDialog.css +1 -0
- package/dist/assets/DropDown.css +1 -0
- package/dist/assets/Input.css +1 -0
- package/dist/assets/LoaderIcon.css +1 -0
- package/dist/assets/LoadingIndicator.css +1 -0
- package/dist/assets/MenuItem.css +1 -0
- package/dist/assets/MenuSeparator.css +1 -0
- package/dist/assets/MostPageTool.css +1 -0
- package/dist/assets/OtherTool.css +1 -0
- package/dist/assets/Paginate.css +1 -0
- package/dist/assets/PasswordModal.css +1 -0
- package/dist/assets/PropertyItem.css +1 -0
- package/dist/assets/RPDropFileZone.css +1 -0
- package/dist/assets/RPLayout.css +1 -0
- package/dist/assets/RPPage.css +1 -0
- package/dist/assets/RPPages.css +1 -0
- package/dist/assets/RPSplitter.css +1 -0
- package/dist/assets/RPToolbar.css +1 -0
- package/dist/assets/RPTooltip.css +1 -0
- package/dist/assets/RotateTool.css +1 -0
- package/dist/assets/SearchTool.css +1 -0
- package/dist/assets/SkipLink.css +1 -0
- package/dist/assets/TextHighlightLayer.css +1 -0
- package/dist/assets/TextLayer.css +1 -0
- package/dist/assets/Thumbnail.css +1 -0
- package/dist/assets/Thumbnails.css +1 -0
- package/dist/assets/ToolbarLayout.css +1 -0
- package/dist/assets/WrapperLayout.css +1 -0
- package/dist/assets/ZoomTool.css +1 -0
- package/dist/assets/style.js +2 -77
- package/dist/chunk-C_CI6nMA.js +13 -0
- package/dist/clsx-B7LyVm5O.js +16 -0
- package/dist/components/RPConfig.js +24 -26
- package/dist/components/RPController.js +85 -135
- package/dist/components/RPDropFileZone.js +3 -61
- package/dist/components/RPPages.js +3 -1115
- package/dist/components/RPProvider.js +50 -131
- package/dist/components/RPTheme.js +20 -21
- package/dist/components/icons/CheckIcon.js +16 -22
- package/dist/components/icons/ChevronDownIcon.js +17 -23
- package/dist/components/icons/ChevronUpIcon.js +16 -22
- package/dist/components/icons/ClearIcon.js +26 -25
- package/dist/components/icons/ClockwiseIcon.js +16 -22
- package/dist/components/icons/CloseIcon.js +16 -22
- package/dist/components/icons/DarkPdfIcon.js +2 -15
- package/dist/components/icons/DualPageIcon.js +16 -22
- package/dist/components/icons/DualPageWithCoverIcon.js +16 -22
- package/dist/components/icons/FileDownloadDefaultIcon.js +20 -23
- package/dist/components/icons/FileUploadDefaultIcon.js +20 -23
- package/dist/components/icons/FullScreenIcon.js +16 -22
- package/dist/components/icons/GoToDownIcon.js +16 -22
- package/dist/components/icons/HandModeDefaultIcon.js +16 -22
- package/dist/components/icons/HorizontalScrollingIcon.js +18 -24
- package/dist/components/icons/InfoIcon.js +16 -22
- package/dist/components/icons/LightPdfIcon.js +2 -15
- package/dist/components/icons/LoaderIcon.js +2 -17
- package/dist/components/icons/MoonIcon.js +16 -22
- package/dist/components/icons/PageScrollingIcon.js +18 -24
- package/dist/components/icons/PrintDefaultIcon.js +20 -23
- package/dist/components/icons/SearchIcon.js +16 -22
- package/dist/components/icons/SinglePageIcon.js +15 -21
- package/dist/components/icons/SunIcon.js +26 -25
- package/dist/components/icons/TextSelectionDefaultIcon.js +20 -23
- package/dist/components/icons/ThreeDotIcon.js +16 -22
- package/dist/components/icons/Thumbnail.js +39 -54
- package/dist/components/icons/VerticalScrollingIcon.js +18 -24
- package/dist/components/icons/WrappedScrollingIcon.js +18 -24
- package/dist/components/icons/ZoomInIcon.js +16 -22
- package/dist/components/icons/ZoomOutIcon.js +16 -22
- package/dist/components/layout/Container.js +2 -21
- package/dist/components/layout/LayoutContainer.js +23 -34
- package/dist/components/layout/LayoutWrapper.js +14 -10
- package/dist/components/layout/RPDefaultLayout.js +99 -244
- package/dist/components/layout/RPLayout.js +70 -220
- package/dist/components/layout/SkipLink.js +3 -29
- package/dist/components/layout/WrapperLayout.js +2 -27
- package/dist/components/layout/sidebar/CustomThumbnailElement.js +2 -68
- package/dist/components/layout/sidebar/RPSidebar.js +61 -112
- package/dist/components/layout/sidebar/RPSplitter.js +2 -9
- package/dist/components/layout/sidebar/Thumbnail.js +3 -155
- package/dist/components/layout/sidebar/Thumbnails.js +2 -82
- package/dist/components/layout/toolbar/DarkModeTool.js +44 -36
- package/dist/components/layout/toolbar/DocumentDialog.js +2 -322
- package/dist/components/layout/toolbar/DocumentProperties.js +30 -39
- package/dist/components/layout/toolbar/FileDownloadTool.js +54 -50
- package/dist/components/layout/toolbar/FileUploadTool.js +54 -49
- package/dist/components/layout/toolbar/FullScreenTool.js +62 -72
- package/dist/components/layout/toolbar/MenuItem.js +2 -19
- package/dist/components/layout/toolbar/MenuSeparator.js +2 -15
- package/dist/components/layout/toolbar/MostPageTool.js +62 -81
- package/dist/components/layout/toolbar/OtherTool.js +97 -198
- package/dist/components/layout/toolbar/Paginate.js +111 -145
- package/dist/components/layout/toolbar/PrintTool.js +70 -72
- package/dist/components/layout/toolbar/PropertyItem.js +2 -12
- package/dist/components/layout/toolbar/RPMenuItem.js +22 -31
- package/dist/components/layout/toolbar/RPMoreOptions.js +140 -220
- package/dist/components/layout/toolbar/RPToolbar.js +45 -151
- package/dist/components/layout/toolbar/RPToolbarEnd.js +23 -121
- package/dist/components/layout/toolbar/RotateTool.js +49 -60
- package/dist/components/layout/toolbar/ScrollModeTool.js +79 -67
- package/dist/components/layout/toolbar/SearchCloseButton.js +23 -31
- package/dist/components/layout/toolbar/SearchResultNavigator.js +39 -100
- package/dist/components/layout/toolbar/SearchTool.js +226 -267
- package/dist/components/layout/toolbar/SelectionModeTool.js +59 -51
- package/dist/components/layout/toolbar/ThumbnailTool.js +30 -39
- package/dist/components/layout/toolbar/ToolbarCustom.js +56 -113
- package/dist/components/layout/toolbar/ToolbarDefault.js +58 -196
- package/dist/components/layout/toolbar/ToolbarLayout.js +12 -158
- package/dist/components/layout/toolbar/ViewModeTool.js +82 -62
- package/dist/components/layout/toolbar/ZoomTool.js +139 -150
- package/dist/components/layout/toolbar/tools/DocumentPropertiesTool.js +24 -54
- package/dist/components/layout/toolbar/tools/DualPageTool.js +23 -25
- package/dist/components/layout/toolbar/tools/DualPageWithCoverTool.js +2 -206
- package/dist/components/layout/toolbar/tools/FileDownloadTool.js +23 -35
- package/dist/components/layout/toolbar/tools/FileUploadTool.js +23 -34
- package/dist/components/layout/toolbar/tools/FirstPageTool.js +2 -201
- package/dist/components/layout/toolbar/tools/FullScreenTool.js +25 -33
- package/dist/components/layout/toolbar/tools/HorizontalScrollingTool.js +24 -36
- package/dist/components/layout/toolbar/tools/InputPageTool.js +51 -92
- package/dist/components/layout/toolbar/tools/LastPageTool.js +2 -201
- package/dist/components/layout/toolbar/tools/NextPageTool.js +32 -61
- package/dist/components/layout/toolbar/tools/PageScrollingTool.js +24 -36
- package/dist/components/layout/toolbar/tools/PreviousPageTool.js +21 -62
- package/dist/components/layout/toolbar/tools/PrintTool.js +23 -35
- package/dist/components/layout/toolbar/tools/RotateClockwiseTool.js +23 -47
- package/dist/components/layout/toolbar/tools/RotateCounterclockwiseTool.js +26 -47
- package/dist/components/layout/toolbar/tools/SelectionModeSwitcherTool.js +29 -38
- package/dist/components/layout/toolbar/tools/SinglePageTool.js +22 -24
- package/dist/components/layout/toolbar/tools/ThemeSwitcherTool.js +24 -35
- package/dist/components/layout/toolbar/tools/ThumbnailTool.js +24 -46
- package/dist/components/layout/toolbar/tools/VerticalScrollingTool.js +24 -36
- package/dist/components/layout/toolbar/tools/ZoomInTool.js +29 -58
- package/dist/components/layout/toolbar/tools/ZoomLevelDisplay.js +26 -26
- package/dist/components/layout/toolbar/tools/ZoomLevelTool.js +94 -133
- package/dist/components/layout/toolbar/tools/ZoomOutTool.js +29 -58
- package/dist/components/layout/toolbar/tools/defaults/RPHorizontalBar.js +60 -148
- package/dist/components/layout/toolbar/tools/defaults/RPVerticalBar.js +31 -42
- package/dist/components/layout/toolbar/tools/more-options/DocumentProperties.js +23 -28
- package/dist/components/layout/toolbar/tools/more-options/FileDownloadTool.js +25 -52
- package/dist/components/layout/toolbar/tools/more-options/FileUploadTool.js +25 -51
- package/dist/components/layout/toolbar/tools/more-options/FullScreenTool.js +26 -42
- package/dist/components/layout/toolbar/tools/more-options/MostPageTool.js +57 -87
- package/dist/components/layout/toolbar/tools/more-options/PrintTool.js +25 -52
- package/dist/components/layout/toolbar/tools/more-options/RotateTool.js +44 -64
- package/dist/components/layout/toolbar/tools/more-options/ScrollModeTool.js +80 -71
- package/dist/components/layout/toolbar/tools/more-options/SelectionModeTool.js +59 -57
- package/dist/components/layout/toolbar/tools/more-options/ViewModeTool.js +79 -66
- package/dist/components/page/AnnotationLayer.js +2 -146
- package/dist/components/page/CanvasLayer.js +47 -71
- package/dist/components/page/CustomElement.js +18 -53
- package/dist/components/page/DualPage.js +43 -98
- package/dist/components/page/DualPageWithCover.js +66 -130
- package/dist/components/page/RPPage.js +2 -143
- package/dist/components/page/SinglePage.js +27 -88
- package/dist/components/page/TextHighlightLayer.js +2 -198
- package/dist/components/page/TextLayer.js +2 -202
- package/dist/components/page/searchHighlight.js +32 -37
- package/dist/components/ui/Button.js +2 -25
- package/dist/components/ui/Checkbox.js +2 -273
- package/dist/components/ui/DropDown.js +2 -36
- package/dist/components/ui/Input.js +2 -28
- package/dist/components/ui/LoadingIndicator.js +2 -59
- package/dist/components/ui/PasswordModal.js +2 -75
- package/dist/components/ui/RPTooltip.js +2 -357
- package/dist/contexts/ConfigContext.js +13 -12
- package/dist/contexts/DarkModeContext.js +26 -27
- package/dist/contexts/DimensionPagesContext.js +49 -60
- package/dist/contexts/DocumentPasswordContext.js +37 -35
- package/dist/contexts/DownloadContext.js +13 -21
- package/dist/contexts/DropFileZoneContext.js +35 -62
- package/dist/contexts/ElementPageContext.js +114 -139
- package/dist/contexts/ElementThumbnailContext.js +132 -195
- package/dist/contexts/EventCallbackContext.js +19 -34
- package/dist/contexts/FileInputContext.js +30 -49
- package/dist/contexts/FullScreenContext.js +31 -24
- package/dist/contexts/GlobalCurrentPage.js +21 -18
- package/dist/contexts/HighlightContext.js +22 -31
- package/dist/contexts/IconContext.js +9 -11
- package/dist/contexts/IconToolContext.js +14 -11
- package/dist/contexts/InitialStateContext.js +9 -11
- package/dist/contexts/LayerContext.js +9 -8
- package/dist/contexts/LayoutContainerContext.js +12 -16
- package/dist/contexts/LayoutDropFileZoneContext.js +8 -11
- package/dist/contexts/LicenseContext.js +12 -17
- package/dist/contexts/LoaderContext.js +14 -27
- package/dist/contexts/LocalizationContext.js +22 -33
- package/dist/contexts/OtherToolContext.js +17 -17
- package/dist/contexts/PageViewportContext.js +9 -8
- package/dist/contexts/PagesRotateContext.js +42 -43
- package/dist/contexts/PaginationContext.js +2 -40
- package/dist/contexts/PrintContext.js +67 -78
- package/dist/contexts/RPDocumentContext.js +60 -73
- package/dist/contexts/RenderQueueProvider.js +43 -72
- package/dist/contexts/RenderedPagesCache.js +17 -13
- package/dist/contexts/RotationContext.js +27 -38
- package/dist/contexts/ScrollModeContext.js +22 -20
- package/dist/contexts/SearchContext.js +39 -97
- package/dist/contexts/SelectionModeContext.js +22 -23
- package/dist/contexts/SmoothScrollContext.js +18 -16
- package/dist/contexts/ThemeContext.js +5 -7
- package/dist/contexts/ThumbnailsContext.js +26 -43
- package/dist/contexts/ToolComponentContext.js +54 -51
- package/dist/contexts/ToolbarComponentContext.js +48 -47
- package/dist/contexts/ViewModeContext.js +34 -31
- package/dist/contexts/ViewportContext.js +91 -85
- package/dist/contexts/VirtualGridContext.js +17 -14
- package/dist/contexts/VirtualScrollContext.js +42 -52
- package/dist/contexts/ZoomContext.js +95 -107
- package/dist/de_DE--0LF-SJR.js +483 -0
- package/dist/dist-7FA4Do6I.js +1286 -0
- package/dist/dist-BRVqFn7R.js +144 -0
- package/dist/dist-C3WNMuW2.js +29 -0
- package/dist/dist-CKteKPPA.js +947 -0
- package/dist/dist-bK-AHWLF.js +314 -0
- package/dist/lib-BiapEtK1.js +10261 -0
- package/dist/libInjectCss.js +7 -8
- package/dist/main-CHO5p1qM.js +60 -0
- package/dist/main.js +53 -296
- package/dist/style-9n_QpMZt.js +5 -0
- package/dist/useWatermark-CvAAf66v.js +67 -0
- package/dist/utils/Queue.js +40 -46
- package/dist/utils/annotations.js +227 -261
- package/dist/utils/appConsole.js +24 -42
- package/dist/utils/approximateFragtion.js +16 -21
- package/dist/utils/calculatePage.js +29 -20
- package/dist/utils/charators.js +39 -48
- package/dist/utils/const.js +8 -11
- package/dist/utils/constants.js +4 -8
- package/dist/utils/convertPdfDate.js +20 -24
- package/dist/utils/dateFormatter.js +7 -7
- package/dist/utils/elementPagePosition.js +10 -10
- package/dist/utils/formatFileSize.js +17 -8
- package/dist/utils/getElementPositionInPage.js +44 -82
- package/dist/utils/getScrollDistance.js +4 -4
- package/dist/utils/getThumbnailViewport.js +12 -6
- package/dist/utils/getWordPositionInPage.js +24 -24
- package/dist/utils/getZoomLevel.js +16 -23
- package/dist/utils/highlight.js +195 -212
- package/dist/utils/hooks/useCopyText.js +23 -33
- package/dist/utils/hooks/useDarkMode.js +10 -10
- package/dist/utils/hooks/useDarkModeProps.js +9 -10
- package/dist/utils/hooks/useDebounce.js +22 -18
- package/dist/utils/hooks/useDropFileZone.js +13 -11
- package/dist/utils/hooks/useElementSize.js +24 -20
- package/dist/utils/hooks/useFileDownload.js +16 -33
- package/dist/utils/hooks/useFlickerSelectText.js +19 -24
- package/dist/utils/hooks/useFullScreen.js +31 -28
- package/dist/utils/hooks/useGrabScroll.js +52 -51
- package/dist/utils/hooks/useHighlight.js +92 -92
- package/dist/utils/hooks/useInfiniteScroll.js +17 -18
- package/dist/utils/hooks/useLicense.js +113 -135
- package/dist/utils/hooks/useLoadPdf.js +107 -100
- package/dist/utils/hooks/useLoadWorker.js +13 -15
- package/dist/utils/hooks/useLocalization.js +25 -25
- package/dist/utils/hooks/useMousePressed.js +25 -19
- package/dist/utils/hooks/usePageRotateContext.js +25 -41
- package/dist/utils/hooks/usePaginate.js +2 -38
- package/dist/utils/hooks/usePdfProperties.js +38 -36
- package/dist/utils/hooks/usePinch.js +65 -100
- package/dist/utils/hooks/usePresentPage.js +69 -92
- package/dist/utils/hooks/usePrint.js +167 -178
- package/dist/utils/hooks/useRequestAnimationFrame.js +16 -16
- package/dist/utils/hooks/useResizeObserver.js +18 -21
- package/dist/utils/hooks/useRotate.js +15 -27
- package/dist/utils/hooks/useScrollToPage.js +2 -38
- package/dist/utils/hooks/useSearch.js +125 -163
- package/dist/utils/hooks/useTextSelection.js +69 -75
- package/dist/utils/hooks/useThumbnail.js +42 -59
- package/dist/utils/hooks/useVirtualReactWindow.js +85 -96
- package/dist/utils/hooks/useWatermark.js +2 -78
- package/dist/utils/injectPrintCSS.js +6 -21
- package/dist/utils/link_service.js +59 -137
- package/dist/utils/renderPage.js +20 -19
- package/dist/utils/sanitizeExternalUrl.js +12 -15
- package/dist/utils/smoothScrollTo.js +8 -5
- package/dist/utils/types.js +29 -21
- package/dist/utils/withRef.js +7 -7
- package/dist/utils/zoom.js +5 -6
- package/package.json +7 -7
- package/dist/Combination-17ab8af1.js +0 -698
- package/dist/MostPageTool.module-13578ad6.js +0 -6
- package/dist/OtherTool.module-a4be5f1f.js +0 -6
- package/dist/Paginate.module-4eef00aa.js +0 -8
- package/dist/PaginationContext-87f832f2.js +0 -233
- package/dist/RPLayout.module-92fa19f7.js +0 -14
- package/dist/RPSplitter-b62772f9.js +0 -122
- package/dist/RPToolbar.module-27d7fe77.js +0 -10
- package/dist/RotateTool.module-67946714.js +0 -6
- package/dist/SearchTool.module-99f60dc7.js +0 -16
- package/dist/ToolbarLayout.module-6e339802.js +0 -12
- package/dist/ZoomTool.module-7082af8c.js +0 -12
- package/dist/assets/style.css +0 -1
- package/dist/clsx-0c6e471a.js +0 -22
- package/dist/de_DE-8145915f.js +0 -489
- package/dist/index-113053cf.js +0 -309
- package/dist/index-11f3cd64.js +0 -983
- package/dist/index-23911b43.js +0 -150
- package/dist/index-ada501c4.js +0 -27
- package/dist/index-d0f0aa9a.js +0 -1542
- package/dist/index-e04c91b1.js +0 -11671
|
@@ -0,0 +1,695 @@
|
|
|
1
|
+
import { d as e, i as t } from "./dist-bK-AHWLF.js";
|
|
2
|
+
import { i as n } from "./dist-BRVqFn7R.js";
|
|
3
|
+
import * as r from "react";
|
|
4
|
+
import { useState as i } from "react";
|
|
5
|
+
import { jsx as a } from "react/jsx-runtime";
|
|
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
|
+
var o = 0;
|
|
8
|
+
function s() {
|
|
9
|
+
r.useEffect(() => {
|
|
10
|
+
let e = document.querySelectorAll("[data-radix-focus-guard]");
|
|
11
|
+
return document.body.insertAdjacentElement("afterbegin", e[0] ?? c()), document.body.insertAdjacentElement("beforeend", e[1] ?? c()), o++, () => {
|
|
12
|
+
o === 1 && document.querySelectorAll("[data-radix-focus-guard]").forEach((e) => e.remove()), o--;
|
|
13
|
+
};
|
|
14
|
+
}, []);
|
|
15
|
+
}
|
|
16
|
+
function c() {
|
|
17
|
+
let e = document.createElement("span");
|
|
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
|
+
}
|
|
20
|
+
//#endregion
|
|
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
|
+
var l = "focusScope.autoFocusOnMount", u = "focusScope.autoFocusOnUnmount", d = {
|
|
23
|
+
bubbles: !1,
|
|
24
|
+
cancelable: !0
|
|
25
|
+
}, f = "FocusScope", p = r.forwardRef((i, o) => {
|
|
26
|
+
let { loop: s = !1, trapped: c = !1, onMountAutoFocus: f, onUnmountAutoFocus: p, ..._ } = i, [v, y] = r.useState(null), S = n(f), C = n(p), T = r.useRef(null), E = e(o, (e) => y(e)), D = r.useRef({
|
|
27
|
+
paused: !1,
|
|
28
|
+
pause() {
|
|
29
|
+
this.paused = !0;
|
|
30
|
+
},
|
|
31
|
+
resume() {
|
|
32
|
+
this.paused = !1;
|
|
33
|
+
}
|
|
34
|
+
}).current;
|
|
35
|
+
r.useEffect(() => {
|
|
36
|
+
if (c) {
|
|
37
|
+
let e = function(e) {
|
|
38
|
+
if (D.paused || !v) return;
|
|
39
|
+
let t = e.target;
|
|
40
|
+
v.contains(t) ? T.current = t : b(T.current, { select: !0 });
|
|
41
|
+
}, t = function(e) {
|
|
42
|
+
if (D.paused || !v) return;
|
|
43
|
+
let t = e.relatedTarget;
|
|
44
|
+
t !== null && (v.contains(t) || b(T.current, { select: !0 }));
|
|
45
|
+
}, n = function(e) {
|
|
46
|
+
if (document.activeElement === document.body) for (let t of e) t.removedNodes.length > 0 && b(v);
|
|
47
|
+
};
|
|
48
|
+
document.addEventListener("focusin", e), document.addEventListener("focusout", t);
|
|
49
|
+
let r = new MutationObserver(n);
|
|
50
|
+
return v && r.observe(v, {
|
|
51
|
+
childList: !0,
|
|
52
|
+
subtree: !0
|
|
53
|
+
}), () => {
|
|
54
|
+
document.removeEventListener("focusin", e), document.removeEventListener("focusout", t), r.disconnect();
|
|
55
|
+
};
|
|
56
|
+
}
|
|
57
|
+
}, [
|
|
58
|
+
c,
|
|
59
|
+
v,
|
|
60
|
+
D.paused
|
|
61
|
+
]), r.useEffect(() => {
|
|
62
|
+
if (v) {
|
|
63
|
+
x.add(D);
|
|
64
|
+
let e = document.activeElement;
|
|
65
|
+
if (!v.contains(e)) {
|
|
66
|
+
let t = new CustomEvent(l, d);
|
|
67
|
+
v.addEventListener(l, S), v.dispatchEvent(t), t.defaultPrevented || (m(w(g(v)), { select: !0 }), document.activeElement === e && b(v));
|
|
68
|
+
}
|
|
69
|
+
return () => {
|
|
70
|
+
v.removeEventListener(l, S), setTimeout(() => {
|
|
71
|
+
let t = new CustomEvent(u, d);
|
|
72
|
+
v.addEventListener(u, C), v.dispatchEvent(t), t.defaultPrevented || b(e ?? document.body, { select: !0 }), v.removeEventListener(u, C), x.remove(D);
|
|
73
|
+
}, 0);
|
|
74
|
+
};
|
|
75
|
+
}
|
|
76
|
+
}, [
|
|
77
|
+
v,
|
|
78
|
+
S,
|
|
79
|
+
C,
|
|
80
|
+
D
|
|
81
|
+
]);
|
|
82
|
+
let O = r.useCallback((e) => {
|
|
83
|
+
if (!s && !c || D.paused) return;
|
|
84
|
+
let t = e.key === "Tab" && !e.altKey && !e.ctrlKey && !e.metaKey, n = document.activeElement;
|
|
85
|
+
if (t && n) {
|
|
86
|
+
let t = e.currentTarget, [r, i] = h(t);
|
|
87
|
+
r && i ? !e.shiftKey && n === i ? (e.preventDefault(), s && b(r, { select: !0 })) : e.shiftKey && n === r && (e.preventDefault(), s && b(i, { select: !0 })) : n === t && e.preventDefault();
|
|
88
|
+
}
|
|
89
|
+
}, [
|
|
90
|
+
s,
|
|
91
|
+
c,
|
|
92
|
+
D.paused
|
|
93
|
+
]);
|
|
94
|
+
return /* @__PURE__ */ a(t.div, {
|
|
95
|
+
tabIndex: -1,
|
|
96
|
+
..._,
|
|
97
|
+
ref: E,
|
|
98
|
+
onKeyDown: O
|
|
99
|
+
});
|
|
100
|
+
});
|
|
101
|
+
p.displayName = f;
|
|
102
|
+
function m(e, { select: t = !1 } = {}) {
|
|
103
|
+
let n = document.activeElement;
|
|
104
|
+
for (let r of e) if (b(r, { select: t }), document.activeElement !== n) return;
|
|
105
|
+
}
|
|
106
|
+
function h(e) {
|
|
107
|
+
let t = g(e);
|
|
108
|
+
return [_(t, e), _(t.reverse(), e)];
|
|
109
|
+
}
|
|
110
|
+
function g(e) {
|
|
111
|
+
let t = [], n = document.createTreeWalker(e, NodeFilter.SHOW_ELEMENT, { acceptNode: (e) => {
|
|
112
|
+
let t = e.tagName === "INPUT" && e.type === "hidden";
|
|
113
|
+
return e.disabled || e.hidden || t ? NodeFilter.FILTER_SKIP : e.tabIndex >= 0 ? NodeFilter.FILTER_ACCEPT : NodeFilter.FILTER_SKIP;
|
|
114
|
+
} });
|
|
115
|
+
for (; n.nextNode();) t.push(n.currentNode);
|
|
116
|
+
return t;
|
|
117
|
+
}
|
|
118
|
+
function _(e, t) {
|
|
119
|
+
for (let n of e) if (!v(n, { upTo: t })) return n;
|
|
120
|
+
}
|
|
121
|
+
function v(e, { upTo: t }) {
|
|
122
|
+
if (getComputedStyle(e).visibility === "hidden") return !0;
|
|
123
|
+
for (; e;) {
|
|
124
|
+
if (t !== void 0 && e === t) return !1;
|
|
125
|
+
if (getComputedStyle(e).display === "none") return !0;
|
|
126
|
+
e = e.parentElement;
|
|
127
|
+
}
|
|
128
|
+
return !1;
|
|
129
|
+
}
|
|
130
|
+
function y(e) {
|
|
131
|
+
return e instanceof HTMLInputElement && "select" in e;
|
|
132
|
+
}
|
|
133
|
+
function b(e, { select: t = !1 } = {}) {
|
|
134
|
+
if (e && e.focus) {
|
|
135
|
+
let n = document.activeElement;
|
|
136
|
+
e.focus({ preventScroll: !0 }), e !== n && y(e) && t && e.select();
|
|
137
|
+
}
|
|
138
|
+
}
|
|
139
|
+
var x = S();
|
|
140
|
+
function S() {
|
|
141
|
+
let e = [];
|
|
142
|
+
return {
|
|
143
|
+
add(t) {
|
|
144
|
+
let n = e[0];
|
|
145
|
+
t !== n && n?.pause(), e = C(e, t), e.unshift(t);
|
|
146
|
+
},
|
|
147
|
+
remove(t) {
|
|
148
|
+
e = C(e, t), e[0]?.resume();
|
|
149
|
+
}
|
|
150
|
+
};
|
|
151
|
+
}
|
|
152
|
+
function C(e, t) {
|
|
153
|
+
let n = [...e], r = n.indexOf(t);
|
|
154
|
+
return r !== -1 && n.splice(r, 1), n;
|
|
155
|
+
}
|
|
156
|
+
function w(e) {
|
|
157
|
+
return e.filter((e) => e.tagName !== "A");
|
|
158
|
+
}
|
|
159
|
+
//#endregion
|
|
160
|
+
//#region node_modules/.pnpm/aria-hidden@1.2.6/node_modules/aria-hidden/dist/es2015/index.js
|
|
161
|
+
var T = function(e) {
|
|
162
|
+
return typeof document > "u" ? null : (Array.isArray(e) ? e[0] : e).ownerDocument.body;
|
|
163
|
+
}, E = /* @__PURE__ */ new WeakMap(), D = /* @__PURE__ */ new WeakMap(), O = {}, k = 0, A = function(e) {
|
|
164
|
+
return e && (e.host || A(e.parentNode));
|
|
165
|
+
}, ee = function(e, t) {
|
|
166
|
+
return t.map(function(t) {
|
|
167
|
+
if (e.contains(t)) return t;
|
|
168
|
+
var n = A(t);
|
|
169
|
+
return n && e.contains(n) ? n : (console.error("aria-hidden", t, "in not contained inside", e, ". Doing nothing"), null);
|
|
170
|
+
}).filter(function(e) {
|
|
171
|
+
return !!e;
|
|
172
|
+
});
|
|
173
|
+
}, te = function(e, t, n, r) {
|
|
174
|
+
var i = ee(t, Array.isArray(e) ? e : [e]);
|
|
175
|
+
O[n] || (O[n] = /* @__PURE__ */ new WeakMap());
|
|
176
|
+
var a = O[n], o = [], s = /* @__PURE__ */ new Set(), c = new Set(i), l = function(e) {
|
|
177
|
+
!e || s.has(e) || (s.add(e), l(e.parentNode));
|
|
178
|
+
};
|
|
179
|
+
i.forEach(l);
|
|
180
|
+
var u = function(e) {
|
|
181
|
+
!e || c.has(e) || Array.prototype.forEach.call(e.children, function(e) {
|
|
182
|
+
if (s.has(e)) u(e);
|
|
183
|
+
else try {
|
|
184
|
+
var t = e.getAttribute(r), i = t !== null && t !== "false", c = (E.get(e) || 0) + 1, l = (a.get(e) || 0) + 1;
|
|
185
|
+
E.set(e, c), a.set(e, l), o.push(e), c === 1 && i && D.set(e, !0), l === 1 && e.setAttribute(n, "true"), i || e.setAttribute(r, "true");
|
|
186
|
+
} catch (t) {
|
|
187
|
+
console.error("aria-hidden: cannot operate on ", e, t);
|
|
188
|
+
}
|
|
189
|
+
});
|
|
190
|
+
};
|
|
191
|
+
return u(t), s.clear(), k++, function() {
|
|
192
|
+
o.forEach(function(e) {
|
|
193
|
+
var t = E.get(e) - 1, i = a.get(e) - 1;
|
|
194
|
+
E.set(e, t), a.set(e, i), t || (D.has(e) || e.removeAttribute(r), D.delete(e)), i || e.removeAttribute(n);
|
|
195
|
+
}), k--, k || (E = /* @__PURE__ */ new WeakMap(), E = /* @__PURE__ */ new WeakMap(), D = /* @__PURE__ */ new WeakMap(), O = {});
|
|
196
|
+
};
|
|
197
|
+
}, ne = function(e, t, n) {
|
|
198
|
+
n === void 0 && (n = "data-aria-hidden");
|
|
199
|
+
var r = Array.from(Array.isArray(e) ? e : [e]), i = t || T(e);
|
|
200
|
+
return i ? (r.push.apply(r, Array.from(i.querySelectorAll("[aria-live], script"))), te(r, i, n, "aria-hidden")) : function() {
|
|
201
|
+
return null;
|
|
202
|
+
};
|
|
203
|
+
}, j = function() {
|
|
204
|
+
return j = Object.assign || function(e) {
|
|
205
|
+
for (var t, n = 1, r = arguments.length; n < r; n++) for (var i in t = arguments[n], t) Object.prototype.hasOwnProperty.call(t, i) && (e[i] = t[i]);
|
|
206
|
+
return e;
|
|
207
|
+
}, j.apply(this, arguments);
|
|
208
|
+
};
|
|
209
|
+
function M(e, t) {
|
|
210
|
+
var n = {};
|
|
211
|
+
for (var r in e) Object.prototype.hasOwnProperty.call(e, r) && t.indexOf(r) < 0 && (n[r] = e[r]);
|
|
212
|
+
if (e != null && typeof Object.getOwnPropertySymbols == "function") for (var i = 0, r = Object.getOwnPropertySymbols(e); i < r.length; i++) t.indexOf(r[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, r[i]) && (n[r[i]] = e[r[i]]);
|
|
213
|
+
return n;
|
|
214
|
+
}
|
|
215
|
+
function re(e, t, n) {
|
|
216
|
+
if (n || arguments.length === 2) for (var r = 0, i = t.length, a; r < i; r++) (a || !(r in t)) && (a ||= Array.prototype.slice.call(t, 0, r), a[r] = t[r]);
|
|
217
|
+
return e.concat(a || Array.prototype.slice.call(t));
|
|
218
|
+
}
|
|
219
|
+
//#endregion
|
|
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
|
+
var N = "right-scroll-bar-position", P = "width-before-scroll-bar", ie = "with-scroll-bars-hidden", ae = "--removed-body-scroll-bar-size";
|
|
222
|
+
//#endregion
|
|
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
|
+
function F(e, t) {
|
|
225
|
+
return typeof e == "function" ? e(t) : e && (e.current = t), e;
|
|
226
|
+
}
|
|
227
|
+
//#endregion
|
|
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
|
+
function oe(e, t) {
|
|
230
|
+
var n = i(function() {
|
|
231
|
+
return {
|
|
232
|
+
value: e,
|
|
233
|
+
callback: t,
|
|
234
|
+
facade: {
|
|
235
|
+
get current() {
|
|
236
|
+
return n.value;
|
|
237
|
+
},
|
|
238
|
+
set current(e) {
|
|
239
|
+
var t = n.value;
|
|
240
|
+
t !== e && (n.value = e, n.callback(e, t));
|
|
241
|
+
}
|
|
242
|
+
}
|
|
243
|
+
};
|
|
244
|
+
})[0];
|
|
245
|
+
return n.callback = t, n.facade;
|
|
246
|
+
}
|
|
247
|
+
//#endregion
|
|
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
|
+
var se = typeof window < "u" ? r.useLayoutEffect : r.useEffect, ce = /* @__PURE__ */ new WeakMap();
|
|
250
|
+
function le(e, t) {
|
|
251
|
+
var n = oe(t || null, function(t) {
|
|
252
|
+
return e.forEach(function(e) {
|
|
253
|
+
return F(e, t);
|
|
254
|
+
});
|
|
255
|
+
});
|
|
256
|
+
return se(function() {
|
|
257
|
+
var t = ce.get(n);
|
|
258
|
+
if (t) {
|
|
259
|
+
var r = new Set(t), i = new Set(e), a = n.current;
|
|
260
|
+
r.forEach(function(e) {
|
|
261
|
+
i.has(e) || F(e, null);
|
|
262
|
+
}), i.forEach(function(e) {
|
|
263
|
+
r.has(e) || F(e, a);
|
|
264
|
+
});
|
|
265
|
+
}
|
|
266
|
+
ce.set(n, e);
|
|
267
|
+
}, [e]), n;
|
|
268
|
+
}
|
|
269
|
+
//#endregion
|
|
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
|
+
function ue(e) {
|
|
272
|
+
return e;
|
|
273
|
+
}
|
|
274
|
+
function de(e, t) {
|
|
275
|
+
t === void 0 && (t = ue);
|
|
276
|
+
var n = [], r = !1;
|
|
277
|
+
return {
|
|
278
|
+
read: function() {
|
|
279
|
+
if (r) throw Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");
|
|
280
|
+
return n.length ? n[n.length - 1] : e;
|
|
281
|
+
},
|
|
282
|
+
useMedium: function(e) {
|
|
283
|
+
var i = t(e, r);
|
|
284
|
+
return n.push(i), function() {
|
|
285
|
+
n = n.filter(function(e) {
|
|
286
|
+
return e !== i;
|
|
287
|
+
});
|
|
288
|
+
};
|
|
289
|
+
},
|
|
290
|
+
assignSyncMedium: function(e) {
|
|
291
|
+
for (r = !0; n.length;) {
|
|
292
|
+
var t = n;
|
|
293
|
+
n = [], t.forEach(e);
|
|
294
|
+
}
|
|
295
|
+
n = {
|
|
296
|
+
push: function(t) {
|
|
297
|
+
return e(t);
|
|
298
|
+
},
|
|
299
|
+
filter: function() {
|
|
300
|
+
return n;
|
|
301
|
+
}
|
|
302
|
+
};
|
|
303
|
+
},
|
|
304
|
+
assignMedium: function(e) {
|
|
305
|
+
r = !0;
|
|
306
|
+
var t = [];
|
|
307
|
+
if (n.length) {
|
|
308
|
+
var i = n;
|
|
309
|
+
n = [], i.forEach(e), t = n;
|
|
310
|
+
}
|
|
311
|
+
var a = function() {
|
|
312
|
+
var n = t;
|
|
313
|
+
t = [], n.forEach(e);
|
|
314
|
+
}, o = function() {
|
|
315
|
+
return Promise.resolve().then(a);
|
|
316
|
+
};
|
|
317
|
+
o(), n = {
|
|
318
|
+
push: function(e) {
|
|
319
|
+
t.push(e), o();
|
|
320
|
+
},
|
|
321
|
+
filter: function(e) {
|
|
322
|
+
return t = t.filter(e), n;
|
|
323
|
+
}
|
|
324
|
+
};
|
|
325
|
+
}
|
|
326
|
+
};
|
|
327
|
+
}
|
|
328
|
+
function fe(e) {
|
|
329
|
+
e === void 0 && (e = {});
|
|
330
|
+
var t = de(null);
|
|
331
|
+
return t.options = j({
|
|
332
|
+
async: !0,
|
|
333
|
+
ssr: !1
|
|
334
|
+
}, e), t;
|
|
335
|
+
}
|
|
336
|
+
//#endregion
|
|
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
|
+
var I = function(e) {
|
|
339
|
+
var t = e.sideCar, n = M(e, ["sideCar"]);
|
|
340
|
+
if (!t) throw Error("Sidecar: please provide `sideCar` property to import the right car");
|
|
341
|
+
var i = t.read();
|
|
342
|
+
if (!i) throw Error("Sidecar medium not found");
|
|
343
|
+
return r.createElement(i, j({}, n));
|
|
344
|
+
};
|
|
345
|
+
I.isSideCarExport = !0;
|
|
346
|
+
function pe(e, t) {
|
|
347
|
+
return e.useMedium(t), I;
|
|
348
|
+
}
|
|
349
|
+
//#endregion
|
|
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
|
+
var L = fe(), R = function() {}, z = r.forwardRef(function(e, t) {
|
|
352
|
+
var n = r.useRef(null), i = r.useState({
|
|
353
|
+
onScrollCapture: R,
|
|
354
|
+
onWheelCapture: R,
|
|
355
|
+
onTouchMoveCapture: R
|
|
356
|
+
}), a = i[0], o = i[1], s = e.forwardProps, c = e.children, l = e.className, u = e.removeScrollBar, d = e.enabled, f = e.shards, p = e.sideCar, m = e.noRelative, h = e.noIsolation, g = e.inert, _ = e.allowPinchZoom, v = e.as, y = v === void 0 ? "div" : v, b = e.gapMode, x = M(e, [
|
|
357
|
+
"forwardProps",
|
|
358
|
+
"children",
|
|
359
|
+
"className",
|
|
360
|
+
"removeScrollBar",
|
|
361
|
+
"enabled",
|
|
362
|
+
"shards",
|
|
363
|
+
"sideCar",
|
|
364
|
+
"noRelative",
|
|
365
|
+
"noIsolation",
|
|
366
|
+
"inert",
|
|
367
|
+
"allowPinchZoom",
|
|
368
|
+
"as",
|
|
369
|
+
"gapMode"
|
|
370
|
+
]), S = p, C = le([n, t]), w = j(j({}, x), a);
|
|
371
|
+
return r.createElement(r.Fragment, null, d && r.createElement(S, {
|
|
372
|
+
sideCar: L,
|
|
373
|
+
removeScrollBar: u,
|
|
374
|
+
shards: f,
|
|
375
|
+
noRelative: m,
|
|
376
|
+
noIsolation: h,
|
|
377
|
+
inert: g,
|
|
378
|
+
setCallbacks: o,
|
|
379
|
+
allowPinchZoom: !!_,
|
|
380
|
+
lockRef: n,
|
|
381
|
+
gapMode: b
|
|
382
|
+
}), s ? r.cloneElement(r.Children.only(c), j(j({}, w), { ref: C })) : r.createElement(y, j({}, w, {
|
|
383
|
+
className: l,
|
|
384
|
+
ref: C
|
|
385
|
+
}), c));
|
|
386
|
+
});
|
|
387
|
+
z.defaultProps = {
|
|
388
|
+
enabled: !0,
|
|
389
|
+
removeScrollBar: !0,
|
|
390
|
+
inert: !1
|
|
391
|
+
}, z.classNames = {
|
|
392
|
+
fullWidth: P,
|
|
393
|
+
zeroRight: N
|
|
394
|
+
};
|
|
395
|
+
//#endregion
|
|
396
|
+
//#region node_modules/.pnpm/get-nonce@1.0.1/node_modules/get-nonce/dist/es2015/index.js
|
|
397
|
+
var B, me = function() {
|
|
398
|
+
if (B) return B;
|
|
399
|
+
if (typeof __webpack_nonce__ < "u") return __webpack_nonce__;
|
|
400
|
+
};
|
|
401
|
+
//#endregion
|
|
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
|
+
function he() {
|
|
404
|
+
if (!document) return null;
|
|
405
|
+
var e = document.createElement("style");
|
|
406
|
+
e.type = "text/css";
|
|
407
|
+
var t = me();
|
|
408
|
+
return t && e.setAttribute("nonce", t), e;
|
|
409
|
+
}
|
|
410
|
+
function ge(e, t) {
|
|
411
|
+
e.styleSheet ? e.styleSheet.cssText = t : e.appendChild(document.createTextNode(t));
|
|
412
|
+
}
|
|
413
|
+
function _e(e) {
|
|
414
|
+
(document.head || document.getElementsByTagName("head")[0]).appendChild(e);
|
|
415
|
+
}
|
|
416
|
+
var ve = function() {
|
|
417
|
+
var e = 0, t = null;
|
|
418
|
+
return {
|
|
419
|
+
add: function(n) {
|
|
420
|
+
e == 0 && (t = he()) && (ge(t, n), _e(t)), e++;
|
|
421
|
+
},
|
|
422
|
+
remove: function() {
|
|
423
|
+
e--, !e && t && (t.parentNode && t.parentNode.removeChild(t), t = null);
|
|
424
|
+
}
|
|
425
|
+
};
|
|
426
|
+
}, ye = function() {
|
|
427
|
+
var e = ve();
|
|
428
|
+
return function(t, n) {
|
|
429
|
+
r.useEffect(function() {
|
|
430
|
+
return e.add(t), function() {
|
|
431
|
+
e.remove();
|
|
432
|
+
};
|
|
433
|
+
}, [t && n]);
|
|
434
|
+
};
|
|
435
|
+
}, V = function() {
|
|
436
|
+
var e = ye();
|
|
437
|
+
return function(t) {
|
|
438
|
+
var n = t.styles, r = t.dynamic;
|
|
439
|
+
return e(n, r), null;
|
|
440
|
+
};
|
|
441
|
+
}, be = {
|
|
442
|
+
left: 0,
|
|
443
|
+
top: 0,
|
|
444
|
+
right: 0,
|
|
445
|
+
gap: 0
|
|
446
|
+
}, H = function(e) {
|
|
447
|
+
return parseInt(e || "", 10) || 0;
|
|
448
|
+
}, xe = function(e) {
|
|
449
|
+
var t = window.getComputedStyle(document.body), n = t[e === "padding" ? "paddingLeft" : "marginLeft"], r = t[e === "padding" ? "paddingTop" : "marginTop"], i = t[e === "padding" ? "paddingRight" : "marginRight"];
|
|
450
|
+
return [
|
|
451
|
+
H(n),
|
|
452
|
+
H(r),
|
|
453
|
+
H(i)
|
|
454
|
+
];
|
|
455
|
+
}, Se = function(e) {
|
|
456
|
+
if (e === void 0 && (e = "margin"), typeof window > "u") return be;
|
|
457
|
+
var t = xe(e), n = document.documentElement.clientWidth, r = window.innerWidth;
|
|
458
|
+
return {
|
|
459
|
+
left: t[0],
|
|
460
|
+
top: t[1],
|
|
461
|
+
right: t[2],
|
|
462
|
+
gap: Math.max(0, r - n + t[2] - t[0])
|
|
463
|
+
};
|
|
464
|
+
}, Ce = V(), U = "data-scroll-locked", we = function(e, t, n, r) {
|
|
465
|
+
var i = e.left, a = e.top, o = e.right, s = e.gap;
|
|
466
|
+
return n === void 0 && (n = "margin"), `
|
|
467
|
+
.${ie} {
|
|
468
|
+
overflow: hidden ${r};
|
|
469
|
+
padding-right: ${s}px ${r};
|
|
470
|
+
}
|
|
471
|
+
body[${U}] {
|
|
472
|
+
overflow: hidden ${r};
|
|
473
|
+
overscroll-behavior: contain;
|
|
474
|
+
${[
|
|
475
|
+
t && `position: relative ${r};`,
|
|
476
|
+
n === "margin" && `
|
|
477
|
+
padding-left: ${i}px;
|
|
478
|
+
padding-top: ${a}px;
|
|
479
|
+
padding-right: ${o}px;
|
|
480
|
+
margin-left:0;
|
|
481
|
+
margin-top:0;
|
|
482
|
+
margin-right: ${s}px ${r};
|
|
483
|
+
`,
|
|
484
|
+
n === "padding" && `padding-right: ${s}px ${r};`
|
|
485
|
+
].filter(Boolean).join("")}
|
|
486
|
+
}
|
|
487
|
+
|
|
488
|
+
.${N} {
|
|
489
|
+
right: ${s}px ${r};
|
|
490
|
+
}
|
|
491
|
+
|
|
492
|
+
.${P} {
|
|
493
|
+
margin-right: ${s}px ${r};
|
|
494
|
+
}
|
|
495
|
+
|
|
496
|
+
.${N} .${N} {
|
|
497
|
+
right: 0 ${r};
|
|
498
|
+
}
|
|
499
|
+
|
|
500
|
+
.${P} .${P} {
|
|
501
|
+
margin-right: 0 ${r};
|
|
502
|
+
}
|
|
503
|
+
|
|
504
|
+
body[${U}] {
|
|
505
|
+
${ae}: ${s}px;
|
|
506
|
+
}
|
|
507
|
+
`;
|
|
508
|
+
}, W = function() {
|
|
509
|
+
var e = parseInt(document.body.getAttribute("data-scroll-locked") || "0", 10);
|
|
510
|
+
return isFinite(e) ? e : 0;
|
|
511
|
+
}, Te = function() {
|
|
512
|
+
r.useEffect(function() {
|
|
513
|
+
return document.body.setAttribute(U, (W() + 1).toString()), function() {
|
|
514
|
+
var e = W() - 1;
|
|
515
|
+
e <= 0 ? document.body.removeAttribute(U) : document.body.setAttribute(U, e.toString());
|
|
516
|
+
};
|
|
517
|
+
}, []);
|
|
518
|
+
}, Ee = function(e) {
|
|
519
|
+
var t = e.noRelative, n = e.noImportant, i = e.gapMode, a = i === void 0 ? "margin" : i;
|
|
520
|
+
Te();
|
|
521
|
+
var o = r.useMemo(function() {
|
|
522
|
+
return Se(a);
|
|
523
|
+
}, [a]);
|
|
524
|
+
return r.createElement(Ce, { styles: we(o, !t, a, n ? "" : "!important") });
|
|
525
|
+
}, G = !1;
|
|
526
|
+
if (typeof window < "u") try {
|
|
527
|
+
var K = Object.defineProperty({}, "passive", { get: function() {
|
|
528
|
+
return G = !0, !0;
|
|
529
|
+
} });
|
|
530
|
+
window.addEventListener("test", K, K), window.removeEventListener("test", K, K);
|
|
531
|
+
} catch {
|
|
532
|
+
G = !1;
|
|
533
|
+
}
|
|
534
|
+
var q = G ? { passive: !1 } : !1, De = function(e) {
|
|
535
|
+
return e.tagName === "TEXTAREA";
|
|
536
|
+
}, J = function(e, t) {
|
|
537
|
+
if (!(e instanceof Element)) return !1;
|
|
538
|
+
var n = window.getComputedStyle(e);
|
|
539
|
+
return n[t] !== "hidden" && !(n.overflowY === n.overflowX && !De(e) && n[t] === "visible");
|
|
540
|
+
}, Oe = function(e) {
|
|
541
|
+
return J(e, "overflowY");
|
|
542
|
+
}, ke = function(e) {
|
|
543
|
+
return J(e, "overflowX");
|
|
544
|
+
}, Y = function(e, t) {
|
|
545
|
+
var n = t.ownerDocument, r = t;
|
|
546
|
+
do {
|
|
547
|
+
if (typeof ShadowRoot < "u" && r instanceof ShadowRoot && (r = r.host), X(e, r)) {
|
|
548
|
+
var i = Z(e, r);
|
|
549
|
+
if (i[1] > i[2]) return !0;
|
|
550
|
+
}
|
|
551
|
+
r = r.parentNode;
|
|
552
|
+
} while (r && r !== n.body);
|
|
553
|
+
return !1;
|
|
554
|
+
}, Ae = function(e) {
|
|
555
|
+
return [
|
|
556
|
+
e.scrollTop,
|
|
557
|
+
e.scrollHeight,
|
|
558
|
+
e.clientHeight
|
|
559
|
+
];
|
|
560
|
+
}, je = function(e) {
|
|
561
|
+
return [
|
|
562
|
+
e.scrollLeft,
|
|
563
|
+
e.scrollWidth,
|
|
564
|
+
e.clientWidth
|
|
565
|
+
];
|
|
566
|
+
}, X = function(e, t) {
|
|
567
|
+
return e === "v" ? Oe(t) : ke(t);
|
|
568
|
+
}, Z = function(e, t) {
|
|
569
|
+
return e === "v" ? Ae(t) : je(t);
|
|
570
|
+
}, Me = function(e, t) {
|
|
571
|
+
return e === "h" && t === "rtl" ? -1 : 1;
|
|
572
|
+
}, Ne = function(e, t, n, r, i) {
|
|
573
|
+
var a = Me(e, window.getComputedStyle(t).direction), o = a * r, s = n.target, c = t.contains(s), l = !1, u = o > 0, d = 0, f = 0;
|
|
574
|
+
do {
|
|
575
|
+
if (!s) break;
|
|
576
|
+
var p = Z(e, s), m = p[0], h = p[1] - p[2] - a * m;
|
|
577
|
+
(m || h) && X(e, s) && (d += h, f += m);
|
|
578
|
+
var g = s.parentNode;
|
|
579
|
+
s = g && g.nodeType === Node.DOCUMENT_FRAGMENT_NODE ? g.host : g;
|
|
580
|
+
} while (!c && s !== document.body || c && (t.contains(s) || t === s));
|
|
581
|
+
return (u && (i && Math.abs(d) < 1 || !i && o > d) || !u && (i && Math.abs(f) < 1 || !i && -o > f)) && (l = !0), l;
|
|
582
|
+
}, Q = function(e) {
|
|
583
|
+
return "changedTouches" in e ? [e.changedTouches[0].clientX, e.changedTouches[0].clientY] : [0, 0];
|
|
584
|
+
}, Pe = function(e) {
|
|
585
|
+
return [e.deltaX, e.deltaY];
|
|
586
|
+
}, Fe = function(e) {
|
|
587
|
+
return e && "current" in e ? e.current : e;
|
|
588
|
+
}, Ie = function(e, t) {
|
|
589
|
+
return e[0] === t[0] && e[1] === t[1];
|
|
590
|
+
}, Le = function(e) {
|
|
591
|
+
return `
|
|
592
|
+
.block-interactivity-${e} {pointer-events: none;}
|
|
593
|
+
.allow-interactivity-${e} {pointer-events: all;}
|
|
594
|
+
`;
|
|
595
|
+
}, Re = 0, $ = [];
|
|
596
|
+
function ze(e) {
|
|
597
|
+
var t = r.useRef([]), n = r.useRef([0, 0]), i = r.useRef(), a = r.useState(Re++)[0], o = r.useState(V)[0], s = r.useRef(e);
|
|
598
|
+
r.useEffect(function() {
|
|
599
|
+
s.current = e;
|
|
600
|
+
}, [e]), r.useEffect(function() {
|
|
601
|
+
if (e.inert) {
|
|
602
|
+
document.body.classList.add(`block-interactivity-${a}`);
|
|
603
|
+
var t = re([e.lockRef.current], (e.shards || []).map(Fe), !0).filter(Boolean);
|
|
604
|
+
return t.forEach(function(e) {
|
|
605
|
+
return e.classList.add(`allow-interactivity-${a}`);
|
|
606
|
+
}), function() {
|
|
607
|
+
document.body.classList.remove(`block-interactivity-${a}`), t.forEach(function(e) {
|
|
608
|
+
return e.classList.remove(`allow-interactivity-${a}`);
|
|
609
|
+
});
|
|
610
|
+
};
|
|
611
|
+
}
|
|
612
|
+
}, [
|
|
613
|
+
e.inert,
|
|
614
|
+
e.lockRef.current,
|
|
615
|
+
e.shards
|
|
616
|
+
]);
|
|
617
|
+
var c = r.useCallback(function(e, t) {
|
|
618
|
+
if ("touches" in e && e.touches.length === 2 || e.type === "wheel" && e.ctrlKey) return !s.current.allowPinchZoom;
|
|
619
|
+
var r = Q(e), a = n.current, o = "deltaX" in e ? e.deltaX : a[0] - r[0], c = "deltaY" in e ? e.deltaY : a[1] - r[1], l, u = e.target, d = Math.abs(o) > Math.abs(c) ? "h" : "v";
|
|
620
|
+
if ("touches" in e && d === "h" && u.type === "range") return !1;
|
|
621
|
+
var f = Y(d, u);
|
|
622
|
+
if (!f) return !0;
|
|
623
|
+
if (f ? l = d : (l = d === "v" ? "h" : "v", f = Y(d, u)), !f) return !1;
|
|
624
|
+
if (!i.current && "changedTouches" in e && (o || c) && (i.current = l), !l) return !0;
|
|
625
|
+
var p = i.current || l;
|
|
626
|
+
return Ne(p, t, e, p === "h" ? o : c, !0);
|
|
627
|
+
}, []), l = r.useCallback(function(e) {
|
|
628
|
+
var n = e;
|
|
629
|
+
if (!(!$.length || $[$.length - 1] !== o)) {
|
|
630
|
+
var r = "deltaY" in n ? Pe(n) : Q(n), i = t.current.filter(function(e) {
|
|
631
|
+
return e.name === n.type && (e.target === n.target || n.target === e.shadowParent) && Ie(e.delta, r);
|
|
632
|
+
})[0];
|
|
633
|
+
if (i && i.should) {
|
|
634
|
+
n.cancelable && n.preventDefault();
|
|
635
|
+
return;
|
|
636
|
+
}
|
|
637
|
+
if (!i) {
|
|
638
|
+
var a = (s.current.shards || []).map(Fe).filter(Boolean).filter(function(e) {
|
|
639
|
+
return e.contains(n.target);
|
|
640
|
+
});
|
|
641
|
+
(a.length > 0 ? c(n, a[0]) : !s.current.noIsolation) && n.cancelable && n.preventDefault();
|
|
642
|
+
}
|
|
643
|
+
}
|
|
644
|
+
}, []), u = r.useCallback(function(e, n, r, i) {
|
|
645
|
+
var a = {
|
|
646
|
+
name: e,
|
|
647
|
+
delta: n,
|
|
648
|
+
target: r,
|
|
649
|
+
should: i,
|
|
650
|
+
shadowParent: Be(r)
|
|
651
|
+
};
|
|
652
|
+
t.current.push(a), setTimeout(function() {
|
|
653
|
+
t.current = t.current.filter(function(e) {
|
|
654
|
+
return e !== a;
|
|
655
|
+
});
|
|
656
|
+
}, 1);
|
|
657
|
+
}, []), d = r.useCallback(function(e) {
|
|
658
|
+
n.current = Q(e), i.current = void 0;
|
|
659
|
+
}, []), f = r.useCallback(function(t) {
|
|
660
|
+
u(t.type, Pe(t), t.target, c(t, e.lockRef.current));
|
|
661
|
+
}, []), p = r.useCallback(function(t) {
|
|
662
|
+
u(t.type, Q(t), t.target, c(t, e.lockRef.current));
|
|
663
|
+
}, []);
|
|
664
|
+
r.useEffect(function() {
|
|
665
|
+
return $.push(o), e.setCallbacks({
|
|
666
|
+
onScrollCapture: f,
|
|
667
|
+
onWheelCapture: f,
|
|
668
|
+
onTouchMoveCapture: p
|
|
669
|
+
}), document.addEventListener("wheel", l, q), document.addEventListener("touchmove", l, q), document.addEventListener("touchstart", d, q), function() {
|
|
670
|
+
$ = $.filter(function(e) {
|
|
671
|
+
return e !== o;
|
|
672
|
+
}), document.removeEventListener("wheel", l, q), document.removeEventListener("touchmove", l, q), document.removeEventListener("touchstart", d, q);
|
|
673
|
+
};
|
|
674
|
+
}, []);
|
|
675
|
+
var m = e.removeScrollBar, h = e.inert;
|
|
676
|
+
return r.createElement(r.Fragment, null, h ? r.createElement(o, { styles: Le(a) }) : null, m ? r.createElement(Ee, {
|
|
677
|
+
noRelative: e.noRelative,
|
|
678
|
+
gapMode: e.gapMode
|
|
679
|
+
}) : null);
|
|
680
|
+
}
|
|
681
|
+
function Be(e) {
|
|
682
|
+
for (var t = null; e !== null;) e instanceof ShadowRoot && (t = e.host, e = e.host), e = e.parentNode;
|
|
683
|
+
return t;
|
|
684
|
+
}
|
|
685
|
+
//#endregion
|
|
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
|
+
var Ve = pe(L, ze), He = r.forwardRef(function(e, t) {
|
|
688
|
+
return r.createElement(z, j({}, e, {
|
|
689
|
+
ref: t,
|
|
690
|
+
sideCar: Ve
|
|
691
|
+
}));
|
|
692
|
+
});
|
|
693
|
+
He.classNames = z.classNames;
|
|
694
|
+
//#endregion
|
|
695
|
+
export { s as i, ne as n, p as r, He as t };
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { t as e } from "./clsx-B7LyVm5O.js";
|
|
2
|
+
import { jsx as t } from "react/jsx-runtime";
|
|
3
|
+
import './assets/Container.css';//#region lib/components/layout/Container.module.css
|
|
4
|
+
var n = { "rp-container": "_rp-container_f63gc_1" }, r = (r) => {
|
|
5
|
+
let { children: i, getContainerRef: a, style: o, className: s } = r;
|
|
6
|
+
return /* @__PURE__ */ t("div", {
|
|
7
|
+
tabIndex: 0,
|
|
8
|
+
ref: a,
|
|
9
|
+
"data-rp": "container",
|
|
10
|
+
className: e(n["rp-container"], s),
|
|
11
|
+
style: o,
|
|
12
|
+
children: i
|
|
13
|
+
});
|
|
14
|
+
};
|
|
15
|
+
//#endregion
|
|
16
|
+
export { r as t };
|