@expofp/floorplan 0.0.0-experimental.2d6c681
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/README.md +8 -0
- package/dist/browser/Button-DT-Jfwrb.js +64 -0
- package/dist/browser/CookieConsent-BIsWzAiP.js +38 -0
- package/dist/browser/Debug-B5mmo0ZX.js +53 -0
- package/dist/browser/DebugTools-Y0aycjKM.js +1931 -0
- package/dist/browser/Demo-B2klxORi.js +71 -0
- package/dist/browser/Free-suULW-LU.js +69 -0
- package/dist/browser/GalleryContainer-BGBNGRKU.js +3355 -0
- package/dist/browser/GpsLoader-Idv0kq5D.js +154 -0
- package/dist/browser/KioskStore-Dg9jaX5d.js +250 -0
- package/dist/browser/LayerStore-CK6wLW56.js +24105 -0
- package/dist/browser/MaplibreAdapter-uZUhZfFW.js +36770 -0
- package/dist/browser/ModalContainer-DWm8vEaI.js +148 -0
- package/dist/browser/PermissionNotice-DaqnuHln.js +54 -0
- package/dist/browser/RouteStore-NE2I9tiF.js +3715 -0
- package/dist/browser/SetKioskMode-Dwlf5w7q.js +49 -0
- package/dist/browser/ShowKiosk-Cr-QmIUT.js +82 -0
- package/dist/browser/ViewerMenuPanel-CTAjGsq2.js +133 -0
- package/dist/browser/add-debug-secret-listener-BECnIMzo.js +55 -0
- package/dist/browser/adopt-global-settings-U-KbyxMd.js +185 -0
- package/dist/browser/boolean-editor-CYMx87em.js +149 -0
- package/dist/browser/bootIntercom-BqQsnxII.js +37 -0
- package/dist/browser/bundle.json +422 -0
- package/dist/browser/camera-events-DSCuSH25.js +18 -0
- package/dist/browser/classnames-YcGXWNfg.js +39 -0
- package/dist/browser/client-BcPpS_Gj.js +7402 -0
- package/dist/browser/compat-helper.js +6 -0
- package/dist/browser/components-BjEhhgf2.js +7393 -0
- package/dist/browser/create-live-plan-BaEGBhGA.js +4046 -0
- package/dist/browser/debounce-raMZ2DqK.js +2102 -0
- package/dist/browser/debug-context-CNBgUWR8.js +24315 -0
- package/dist/browser/debug-overlay-B__pFwQg.js +1455 -0
- package/dist/browser/debug-ui-BaE8MZQX.js +86 -0
- package/dist/browser/dist-C1NaWqk4.js +2611 -0
- package/dist/browser/dist-Cx8u0gjK.js +21 -0
- package/dist/browser/dist-wOC6gYFh.js +205 -0
- package/dist/browser/efp-debug-init-CozbueIl.js +245 -0
- package/dist/browser/enum-editor-CkiQPgZv.js +34 -0
- package/dist/browser/es5-B__Ovz45.js +1712 -0
- package/dist/browser/event-head-C_inMpbD.js +56 -0
- package/dist/browser/event-not-found-Z2mJBZE3.js +31 -0
- package/dist/browser/expofp-overlay.png +0 -0
- package/dist/browser/expofpUrl-jBUlvkwz.js +19 -0
- package/dist/browser/exports-CvUYw1h6.js +1525 -0
- package/dist/browser/favicon-BkDrYTmU.js +12 -0
- package/dist/browser/fetch-retry.umd-2B2pCUIS.js +78 -0
- package/dist/browser/flex-3lSivw8z.js +823 -0
- package/dist/browser/floorplan.loader-CGzIMplb.js +3282 -0
- package/dist/browser/floorplan.ready-r96zV9bP.js +1448 -0
- package/dist/browser/fonts/efp-symbols.woff +0 -0
- package/dist/browser/fonts/inter-400.woff2 +0 -0
- package/dist/browser/fonts/inter-500.woff2 +0 -0
- package/dist/browser/fonts/inter-600.woff2 +0 -0
- package/dist/browser/fonts/oswald-v17-cyrillic_latin-300.woff +0 -0
- package/dist/browser/fonts/oswald-v17-cyrillic_latin-500.woff +0 -0
- package/dist/browser/freeBanner-CnrBc9Tl.js +22 -0
- package/dist/browser/fuse-B7V1lkoA.js +1177 -0
- package/dist/browser/i18n-BgFBhYOU.js +7205 -0
- package/dist/browser/icons/accessible.svg +5 -0
- package/dist/browser/icons/arrow-down.svg +3 -0
- package/dist/browser/icons/bus-white.svg +3 -0
- package/dist/browser/icons/check.svg +3 -0
- package/dist/browser/icons/clear.svg +4 -0
- package/dist/browser/icons/departure.svg +5 -0
- package/dist/browser/icons/departure_inactive.svg +5 -0
- package/dist/browser/icons/destination.svg +5 -0
- package/dist/browser/icons/direction.svg +54 -0
- package/dist/browser/icons/dots.svg +4 -0
- package/dist/browser/icons/dragdrop-solid.svg +11 -0
- package/dist/browser/icons/facebook.svg +4 -0
- package/dist/browser/icons/from.svg +4 -0
- package/dist/browser/icons/kiosk.svg +1 -0
- package/dist/browser/icons/linkedin.svg +3 -0
- package/dist/browser/icons/rotate.svg +5 -0
- package/dist/browser/icons/tap.svg +5 -0
- package/dist/browser/icons/to.svg +4 -0
- package/dist/browser/icons/transition.svg +7 -0
- package/dist/browser/icons/transition_down.svg +15 -0
- package/dist/browser/icons/transition_up.svg +15 -0
- package/dist/browser/icons/twitter.svg +3 -0
- package/dist/browser/icons/yah.svg +17 -0
- package/dist/browser/index.html +139 -0
- package/dist/browser/index.js +254 -0
- package/dist/browser/index.module-kJmnWg5B.js +153 -0
- package/dist/browser/integrateKiosk-D45vYRsm.js +35 -0
- package/dist/browser/is-debug-BRHdrnKr.js +197 -0
- package/dist/browser/is-own-domain-DNvxb9Ph.js +26 -0
- package/dist/browser/is-webview-cTH4yz8f.js +12 -0
- package/dist/browser/journey-plan-DtL28HMP.js +1865 -0
- package/dist/browser/jsx-runtime-DQgnuS-I.js +30 -0
- package/dist/browser/kiosk-mode-DfkGlDkT.js +28 -0
- package/dist/browser/kiosk-record-JAEq8SV6.js +18 -0
- package/dist/browser/kioskUrlParam-CnYhnC_7.js +141 -0
- package/dist/browser/lib--J2yQXt6.js +1910 -0
- package/dist/browser/loadImage-DzSnRAxX.js +30 -0
- package/dist/browser/locales/ar.json +228 -0
- package/dist/browser/locales/da.json +229 -0
- package/dist/browser/locales/de.json +228 -0
- package/dist/browser/locales/es.json +228 -0
- package/dist/browser/locales/fr.json +228 -0
- package/dist/browser/locales/he.json +228 -0
- package/dist/browser/locales/it.json +228 -0
- package/dist/browser/locales/kk.json +228 -0
- package/dist/browser/locales/ko.json +228 -0
- package/dist/browser/locales/mn.json +228 -0
- package/dist/browser/locales/nl.json +228 -0
- package/dist/browser/locales/pl.json +228 -0
- package/dist/browser/locales/pt.json +228 -0
- package/dist/browser/locales/ru.json +228 -0
- package/dist/browser/locales/sv.json +228 -0
- package/dist/browser/locales/th.json +228 -0
- package/dist/browser/locales/tr.json +228 -0
- package/dist/browser/locales/uk.json +228 -0
- package/dist/browser/locales/vi.json +228 -0
- package/dist/browser/locales/zh.json +228 -0
- package/dist/browser/logDeviceInfo-BTqyv9Xe.js +58 -0
- package/dist/browser/mobx-C-kcS0zI.js +43 -0
- package/dist/browser/mobx.module-BOCLFB5I.js +2064 -0
- package/dist/browser/optional-boolean-editor-ZncW2HBw.js +20 -0
- package/dist/browser/optional-enum-editor-Dkzs9jDN.js +34 -0
- package/dist/browser/optional-string-editor-DC9PMUWB.js +30 -0
- package/dist/browser/particles.min-eC5xdOrB.js +133 -0
- package/dist/browser/react-DqPP-mkq.js +301 -0
- package/dist/browser/react-dom-BkVzoZWO.js +139 -0
- package/dist/browser/rolldown-runtime-DUb2xvRc.js +28 -0
- package/dist/browser/scheduler-NBuuaWIe.js +212 -0
- package/dist/browser/select-Cxf-YiNA.js +1367 -0
- package/dist/browser/settings-D74eG9h8.js +9 -0
- package/dist/browser/settings-item-DUUbKec_.js +76 -0
- package/dist/browser/store-q_CTsixH.js +58 -0
- package/dist/browser/string-editor-CINOmY_C.js +30 -0
- package/dist/browser/text-field-DORaOVht.js +88 -0
- package/dist/browser/theme-DyFm9MGz.js +2803 -0
- package/dist/browser/ui-DsCU3FV6.js +43 -0
- package/dist/browser/useRenderTarget-RFckzUJM.js +57 -0
- package/dist/browser/vendor/perfect-scrollbar/css/perfect-scrollbar.css +1 -0
- package/dist/browser/vendor/sanitize-css/sanitize.css +1 -0
- package/dist/browser/venue-public-BA3x-n4N.js +296 -0
- package/dist/browser/venues-DKpIy-87.js +447 -0
- package/dist/browser/viewport-B7plho3P.js +48 -0
- package/dist/browser/warning.png +0 -0
- package/dist/esm/_misc_to_move/initHtmlHead.d.ts +2 -0
- package/dist/esm/_misc_to_move/initHtmlHead.js +34 -0
- package/dist/esm/_misc_to_move/logBuildInfo.d.ts +2 -0
- package/dist/esm/_misc_to_move/logBuildInfo.js +35 -0
- package/dist/esm/_misc_to_move/logDeviceInfo.d.ts +10 -0
- package/dist/esm/_misc_to_move/logDeviceInfo.js +84 -0
- package/dist/esm/components/AlertContainer.d.ts +4 -0
- package/dist/esm/components/AlertContainer.js +8 -0
- package/dist/esm/components/AutocompleteContainer.d.ts +4 -0
- package/dist/esm/components/AutocompleteContainer.js +14 -0
- package/dist/esm/components/BaseFilterModal.d.ts +11 -0
- package/dist/esm/components/BaseFilterModal.js +73 -0
- package/dist/esm/components/Bookmarks.d.ts +3 -0
- package/dist/esm/components/Bookmarks.js +26 -0
- package/dist/esm/components/Booth/Booth.d.ts +5 -0
- package/dist/esm/components/Booth/Booth.js +135 -0
- package/dist/esm/components/Booth/BoothOnHold.d.ts +13 -0
- package/dist/esm/components/Booth/BoothOnHold.js +11 -0
- package/dist/esm/components/Booth/BoothReserved.d.ts +3 -0
- package/dist/esm/components/Booth/BoothReserved.js +7 -0
- package/dist/esm/components/Booth/BoothSpecial.d.ts +8 -0
- package/dist/esm/components/Booth/BoothSpecial.js +4 -0
- package/dist/esm/components/Booth/BoothWithoutExhibitor.d.ts +13 -0
- package/dist/esm/components/Booth/BoothWithoutExhibitor.js +29 -0
- package/dist/esm/components/Category.d.ts +5 -0
- package/dist/esm/components/Category.js +25 -0
- package/dist/esm/components/CategoryFilterModal.d.ts +3 -0
- package/dist/esm/components/CategoryFilterModal.js +63 -0
- package/dist/esm/components/CookieConsent.d.ts +9 -0
- package/dist/esm/components/CookieConsent.js +9 -0
- package/dist/esm/components/Debug.d.ts +5 -0
- package/dist/esm/components/Debug.js +15 -0
- package/dist/esm/components/Demo.d.ts +4 -0
- package/dist/esm/components/Demo.js +37 -0
- package/dist/esm/components/DownloadListContainer.d.ts +5 -0
- package/dist/esm/components/DownloadListContainer.js +8 -0
- package/dist/esm/components/EntityItemContainer.d.ts +28 -0
- package/dist/esm/components/EntityItemContainer.js +36 -0
- package/dist/esm/components/EntityList.d.ts +9 -0
- package/dist/esm/components/EntityList.js +144 -0
- package/dist/esm/components/EntityListRow.d.ts +13 -0
- package/dist/esm/components/EntityListRow.js +78 -0
- package/dist/esm/components/ErrorBoundary.d.ts +15 -0
- package/dist/esm/components/ErrorBoundary.js +29 -0
- package/dist/esm/components/Event.d.ts +5 -0
- package/dist/esm/components/Event.js +167 -0
- package/dist/esm/components/EventBadgeContainer.d.ts +8 -0
- package/dist/esm/components/EventBadgeContainer.js +29 -0
- package/dist/esm/components/Exhibitor.d.ts +5 -0
- package/dist/esm/components/Exhibitor.js +299 -0
- package/dist/esm/components/Filter.d.ts +4 -0
- package/dist/esm/components/Filter.js +24 -0
- package/dist/esm/components/Free.d.ts +4 -0
- package/dist/esm/components/Free.js +31 -0
- package/dist/esm/components/GalleryContainer.d.ts +6 -0
- package/dist/esm/components/GalleryContainer.js +55 -0
- package/dist/esm/components/GlobalErrorMessage.d.ts +4 -0
- package/dist/esm/components/GlobalErrorMessage.js +9 -0
- package/dist/esm/components/GpsLoader.d.ts +5 -0
- package/dist/esm/components/GpsLoader.js +29 -0
- package/dist/esm/components/HeatmapLegendContainer.d.ts +5 -0
- package/dist/esm/components/HeatmapLegendContainer.js +13 -0
- package/dist/esm/components/HighlightTextContainer.d.ts +6 -0
- package/dist/esm/components/HighlightTextContainer.js +10 -0
- package/dist/esm/components/IntercomLauncher.d.ts +5 -0
- package/dist/esm/components/IntercomLauncher.js +20 -0
- package/dist/esm/components/JourneyPanel.d.ts +35 -0
- package/dist/esm/components/JourneyPanel.js +68 -0
- package/dist/esm/components/Kiosk/KioskStore.d.ts +60 -0
- package/dist/esm/components/Kiosk/KioskStore.js +411 -0
- package/dist/esm/components/Kiosk/SetKiosk/Confirm/ConfirmDialog.d.ts +5 -0
- package/dist/esm/components/Kiosk/SetKiosk/Confirm/ConfirmDialog.js +8 -0
- package/dist/esm/components/Kiosk/SetKiosk/FormInput/RangeInput.d.ts +5 -0
- package/dist/esm/components/Kiosk/SetKiosk/FormInput/RangeInput.js +24 -0
- package/dist/esm/components/Kiosk/SetKiosk/Message/InfoMessage.d.ts +5 -0
- package/dist/esm/components/Kiosk/SetKiosk/Message/InfoMessage.js +7 -0
- package/dist/esm/components/Kiosk/SetKiosk/SetKioskComponent.d.ts +5 -0
- package/dist/esm/components/Kiosk/SetKiosk/SetKioskComponent.js +78 -0
- package/dist/esm/components/Kiosk/SetKiosk/SetKioskForm.d.ts +5 -0
- package/dist/esm/components/Kiosk/SetKiosk/SetKioskForm.js +10 -0
- package/dist/esm/components/Kiosk/SetKiosk/SetKioskStatusMessages.d.ts +5 -0
- package/dist/esm/components/Kiosk/SetKiosk/SetKioskStatusMessages.js +15 -0
- package/dist/esm/components/Kiosk/SetKiosk/constants.d.ts +6 -0
- package/dist/esm/components/Kiosk/SetKiosk/constants.js +6 -0
- package/dist/esm/components/Kiosk/SetKiosk/getKioskUrlParamKey.d.ts +2 -0
- package/dist/esm/components/Kiosk/SetKiosk/getKioskUrlParamKey.js +4 -0
- package/dist/esm/components/Kiosk/SetKiosk/getName.d.ts +2 -0
- package/dist/esm/components/Kiosk/SetKiosk/getName.js +2 -0
- package/dist/esm/components/Kiosk/SetKiosk/getSlug.d.ts +2 -0
- package/dist/esm/components/Kiosk/SetKiosk/getSlug.js +2 -0
- package/dist/esm/components/Kiosk/SetKiosk/index.d.ts +7 -0
- package/dist/esm/components/Kiosk/SetKiosk/index.js +6 -0
- package/dist/esm/components/Kiosk/SetKiosk/storage.d.ts +5 -0
- package/dist/esm/components/Kiosk/SetKiosk/storage.js +21 -0
- package/dist/esm/components/Kiosk/SetKiosk/types.d.ts +109 -0
- package/dist/esm/components/Kiosk/SetKiosk/types.js +1 -0
- package/dist/esm/components/Kiosk/SetKioskMode.d.ts +3 -0
- package/dist/esm/components/Kiosk/SetKioskMode.js +35 -0
- package/dist/esm/components/Kiosk/ShowKiosk.d.ts +3 -0
- package/dist/esm/components/Kiosk/ShowKiosk.js +72 -0
- package/dist/esm/components/Kiosk/integrateKiosk.d.ts +10 -0
- package/dist/esm/components/Kiosk/integrateKiosk.js +68 -0
- package/dist/esm/components/Kiosk/kiosk-mode.d.ts +26 -0
- package/dist/esm/components/Kiosk/kiosk-mode.js +56 -0
- package/dist/esm/components/Kiosk/kiosk-record.d.ts +23 -0
- package/dist/esm/components/Kiosk/kiosk-record.js +29 -0
- package/dist/esm/components/Kiosk/kioskApi.d.ts +4 -0
- package/dist/esm/components/Kiosk/kioskApi.js +47 -0
- package/dist/esm/components/Kiosk/kioskUrlParam.d.ts +8 -0
- package/dist/esm/components/Kiosk/kioskUrlParam.js +46 -0
- package/dist/esm/components/Kiosk/recoverKioskFromUrlPrams.d.ts +2 -0
- package/dist/esm/components/Kiosk/recoverKioskFromUrlPrams.js +9 -0
- package/dist/esm/components/Language.d.ts +4 -0
- package/dist/esm/components/Language.js +15 -0
- package/dist/esm/components/LanguageRowContainer.d.ts +7 -0
- package/dist/esm/components/LanguageRowContainer.js +9 -0
- package/dist/esm/components/Layout.d.ts +11 -0
- package/dist/esm/components/Layout.js +160 -0
- package/dist/esm/components/LevelBadgeContainer.d.ts +6 -0
- package/dist/esm/components/LevelBadgeContainer.js +10 -0
- package/dist/esm/components/List.d.ts +9 -0
- package/dist/esm/components/List.js +77 -0
- package/dist/esm/components/LogoOverlay.d.ts +3 -0
- package/dist/esm/components/LogoOverlay.js +78 -0
- package/dist/esm/components/Map/Map.d.ts +2 -0
- package/dist/esm/components/Map/Map.js +242 -0
- package/dist/esm/components/Map/MapCamera.d.ts +17 -0
- package/dist/esm/components/Map/MapCamera.js +194 -0
- package/dist/esm/components/Map/MapCursorCoords.d.ts +13 -0
- package/dist/esm/components/Map/MapCursorCoords.js +61 -0
- package/dist/esm/components/Map/MapViewport.d.ts +12 -0
- package/dist/esm/components/Map/MapViewport.js +29 -0
- package/dist/esm/components/Map/booth-by-xy.d.ts +14 -0
- package/dist/esm/components/Map/booth-by-xy.js +128 -0
- package/dist/esm/components/Map/camera-events.d.ts +19 -0
- package/dist/esm/components/Map/camera-events.js +26 -0
- package/dist/esm/components/Map/camera.d.ts +48 -0
- package/dist/esm/components/Map/camera.js +43 -0
- package/dist/esm/components/Map/drawing/config/BoothDrawerBase.d.ts +8 -0
- package/dist/esm/components/Map/drawing/config/BoothDrawerBase.js +8 -0
- package/dist/esm/components/Map/drawing/config/BoothShape.d.ts +7 -0
- package/dist/esm/components/Map/drawing/config/BoothShape.js +76 -0
- package/dist/esm/components/Map/drawing/config/TextFitter.d.ts +11 -0
- package/dist/esm/components/Map/drawing/config/TextFitter.js +174 -0
- package/dist/esm/components/Map/drawing/config/booth-badge-anchor.d.ts +130 -0
- package/dist/esm/components/Map/drawing/config/booth-badge-anchor.js +306 -0
- package/dist/esm/components/Map/drawing/config/booth-logos.d.ts +38 -0
- package/dist/esm/components/Map/drawing/config/booth-logos.js +94 -0
- package/dist/esm/components/Map/drawing/config/canvases.d.ts +96 -0
- package/dist/esm/components/Map/drawing/config/canvases.js +434 -0
- package/dist/esm/components/Map/drawing/config/config-all.d.ts +6 -0
- package/dist/esm/components/Map/drawing/config/config-all.js +92 -0
- package/dist/esm/components/Map/drawing/config/config-bg.d.ts +8 -0
- package/dist/esm/components/Map/drawing/config/config-bg.js +54 -0
- package/dist/esm/components/Map/drawing/config/config-booth-badge-eligibility.d.ts +28 -0
- package/dist/esm/components/Map/drawing/config/config-booth-badge-eligibility.js +7 -0
- package/dist/esm/components/Map/drawing/config/config-booth-badge-scale.d.ts +20 -0
- package/dist/esm/components/Map/drawing/config/config-booth-badge-scale.js +11 -0
- package/dist/esm/components/Map/drawing/config/config-booth-badge-visibility.d.ts +37 -0
- package/dist/esm/components/Map/drawing/config/config-booth-badge-visibility.js +3 -0
- package/dist/esm/components/Map/drawing/config/config-booth-badge.d.ts +90 -0
- package/dist/esm/components/Map/drawing/config/config-booth-badge.js +326 -0
- package/dist/esm/components/Map/drawing/config/config-booth-bg.d.ts +33 -0
- package/dist/esm/components/Map/drawing/config/config-booth-bg.js +240 -0
- package/dist/esm/components/Map/drawing/config/config-booth-bookmark.d.ts +24 -0
- package/dist/esm/components/Map/drawing/config/config-booth-bookmark.js +65 -0
- package/dist/esm/components/Map/drawing/config/config-booth-border.d.ts +12 -0
- package/dist/esm/components/Map/drawing/config/config-booth-border.js +92 -0
- package/dist/esm/components/Map/drawing/config/config-booth-labels-special.d.ts +28 -0
- package/dist/esm/components/Map/drawing/config/config-booth-labels-special.js +147 -0
- package/dist/esm/components/Map/drawing/config/config-booth-labels.d.ts +63 -0
- package/dist/esm/components/Map/drawing/config/config-booth-labels.js +380 -0
- package/dist/esm/components/Map/drawing/config/config-booths.d.ts +5 -0
- package/dist/esm/components/Map/drawing/config/config-booths.js +152 -0
- package/dist/esm/components/Map/drawing/config/config-load-layer.d.ts +4 -0
- package/dist/esm/components/Map/drawing/config/config-load-layer.js +119 -0
- package/dist/esm/components/Map/drawing/config/config-markers.d.ts +42 -0
- package/dist/esm/components/Map/drawing/config/config-markers.js +278 -0
- package/dist/esm/components/Map/drawing/config/config-outdoor-poi.d.ts +19 -0
- package/dist/esm/components/Map/drawing/config/config-outdoor-poi.js +96 -0
- package/dist/esm/components/Map/drawing/config/config-pins.d.ts +40 -0
- package/dist/esm/components/Map/drawing/config/config-pins.js +533 -0
- package/dist/esm/components/Map/drawing/config/label-inset.d.ts +26 -0
- package/dist/esm/components/Map/drawing/config/label-inset.js +26 -0
- package/dist/esm/components/Map/drawing/config/layer-images.d.ts +24 -0
- package/dist/esm/components/Map/drawing/config/layer-images.js +32 -0
- package/dist/esm/components/Map/drawing/config/layer-models.d.ts +31 -0
- package/dist/esm/components/Map/drawing/config/layer-models.js +38 -0
- package/dist/esm/components/Map/drawing/config/loadBoothsImages.d.ts +45 -0
- package/dist/esm/components/Map/drawing/config/loadBoothsImages.js +99 -0
- package/dist/esm/components/Map/drawing/config/pin-geometry.d.ts +65 -0
- package/dist/esm/components/Map/drawing/config/pin-geometry.js +75 -0
- package/dist/esm/components/Map/drawing/config/poi-pin-shape.d.ts +100 -0
- package/dist/esm/components/Map/drawing/config/poi-pin-shape.js +51 -0
- package/dist/esm/components/Map/drawing/config/poi-pin.d.ts +10 -0
- package/dist/esm/components/Map/drawing/config/poi-pin.js +88 -0
- package/dist/esm/components/Map/drawing/config/selection-style.d.ts +12 -0
- package/dist/esm/components/Map/drawing/config/selection-style.js +18 -0
- package/dist/esm/components/Map/framing-rect.d.ts +16 -0
- package/dist/esm/components/Map/framing-rect.js +24 -0
- package/dist/esm/components/Map/pointer.d.ts +79 -0
- package/dist/esm/components/Map/pointer.js +181 -0
- package/dist/esm/components/Map/scene.d.ts +20 -0
- package/dist/esm/components/Map/scene.js +24 -0
- package/dist/esm/components/Map/traffic/UpdateQueue.d.ts +13 -0
- package/dist/esm/components/Map/traffic/UpdateQueue.js +82 -0
- package/dist/esm/components/Map/traffic/trafficLayers.d.ts +12 -0
- package/dist/esm/components/Map/traffic/trafficLayers.js +29 -0
- package/dist/esm/components/Map/traffic/useBuildRoute.d.ts +9 -0
- package/dist/esm/components/Map/traffic/useBuildRoute.js +359 -0
- package/dist/esm/components/Map/traffic/useManageTraffic.d.ts +10 -0
- package/dist/esm/components/Map/traffic/useManageTraffic.js +643 -0
- package/dist/esm/components/Map/viewport.d.ts +63 -0
- package/dist/esm/components/Map/viewport.js +82 -0
- package/dist/esm/components/Map/with-kiosk.d.ts +11 -0
- package/dist/esm/components/Map/with-kiosk.js +25 -0
- package/dist/esm/components/MapControlsContainer.d.ts +3 -0
- package/dist/esm/components/MapControlsContainer.js +58 -0
- package/dist/esm/components/Maplibre/CollapsedAttributionControl.d.ts +12 -0
- package/dist/esm/components/Maplibre/CollapsedAttributionControl.js +19 -0
- package/dist/esm/components/Maplibre/ExpofpLogoControl.d.ts +20 -0
- package/dist/esm/components/Maplibre/ExpofpLogoControl.js +39 -0
- package/dist/esm/components/Maplibre/MaplibreAdapter.d.ts +18 -0
- package/dist/esm/components/Maplibre/MaplibreAdapter.js +354 -0
- package/dist/esm/components/Maplibre/MaplibreWrapper.d.ts +111 -0
- package/dist/esm/components/Maplibre/MaplibreWrapper.js +310 -0
- package/dist/esm/components/Maplibre/maplibre-recovery.d.ts +4 -0
- package/dist/esm/components/Maplibre/maplibre-recovery.js +4 -0
- package/dist/esm/components/Maplibre/styles/mapbox-streets-bright.d.ts +3 -0
- package/dist/esm/components/Maplibre/styles/mapbox-streets-bright.js +7048 -0
- package/dist/esm/components/Maplibre/styles/mapbox-streets.d.ts +3 -0
- package/dist/esm/components/Maplibre/styles/mapbox-streets.js +6132 -0
- package/dist/esm/components/Maplibre/useCameraReactions.d.ts +14 -0
- package/dist/esm/components/Maplibre/useCameraReactions.js +256 -0
- package/dist/esm/components/Maplibre/useDimming.d.ts +25 -0
- package/dist/esm/components/Maplibre/useDimming.js +61 -0
- package/dist/esm/components/Maplibre/useJourneyConnector.d.ts +16 -0
- package/dist/esm/components/Maplibre/useJourneyConnector.js +175 -0
- package/dist/esm/components/Maplibre/useKioskCameraEvents.d.ts +20 -0
- package/dist/esm/components/Maplibre/useKioskCameraEvents.js +52 -0
- package/dist/esm/components/Maplibre/useLayerVisibilitySync.d.ts +25 -0
- package/dist/esm/components/Maplibre/useLayerVisibilitySync.js +85 -0
- package/dist/esm/components/Maplibre/usePoiMarkers.d.ts +25 -0
- package/dist/esm/components/Maplibre/usePoiMarkers.js +368 -0
- package/dist/esm/components/Maplibre/useVenueCameraTracking.d.ts +6 -0
- package/dist/esm/components/Maplibre/useVenueCameraTracking.js +115 -0
- package/dist/esm/components/Maplibre/useVenueLayers.d.ts +15 -0
- package/dist/esm/components/Maplibre/useVenueLayers.js +463 -0
- package/dist/esm/components/Maplibre/useWayfindingAndMarkers.d.ts +11 -0
- package/dist/esm/components/Maplibre/useWayfindingAndMarkers.js +23 -0
- package/dist/esm/components/Maplibre/utils/basemap-palette.d.ts +19 -0
- package/dist/esm/components/Maplibre/utils/basemap-palette.js +125 -0
- package/dist/esm/components/Maplibre/utils/geo-config.d.ts +92 -0
- package/dist/esm/components/Maplibre/utils/geo-config.js +305 -0
- package/dist/esm/components/Maplibre/utils/hit-test-registry.d.ts +18 -0
- package/dist/esm/components/Maplibre/utils/hit-test-registry.js +17 -0
- package/dist/esm/components/Maplibre/utils/layer-defs.d.ts +9 -0
- package/dist/esm/components/Maplibre/utils/layer-defs.js +19 -0
- package/dist/esm/components/Maplibre/utils/local-viewport.d.ts +13 -0
- package/dist/esm/components/Maplibre/utils/local-viewport.js +31 -0
- package/dist/esm/components/Maplibre/utils/map-helpers.d.ts +21 -0
- package/dist/esm/components/Maplibre/utils/map-helpers.js +85 -0
- package/dist/esm/components/Maplibre/utils/map-theme.d.ts +20 -0
- package/dist/esm/components/Maplibre/utils/map-theme.js +44 -0
- package/dist/esm/components/Maplibre/utils/marker-layer-order.d.ts +22 -0
- package/dist/esm/components/Maplibre/utils/marker-layer-order.js +20 -0
- package/dist/esm/components/Maplibre/utils/pmtiles-range-fallback.d.ts +53 -0
- package/dist/esm/components/Maplibre/utils/pmtiles-range-fallback.js +110 -0
- package/dist/esm/components/Maplibre/utils/poi-marker-hit-test.d.ts +8 -0
- package/dist/esm/components/Maplibre/utils/poi-marker-hit-test.js +8 -0
- package/dist/esm/components/Maplibre/utils/resolve-map-style.d.ts +19 -0
- package/dist/esm/components/Maplibre/utils/resolve-map-style.js +73 -0
- package/dist/esm/components/Maplibre/utils/solver.d.ts +23 -0
- package/dist/esm/components/Maplibre/utils/solver.js +238 -0
- package/dist/esm/components/Maplibre/utils/style-fonts.d.ts +10 -0
- package/dist/esm/components/Maplibre/utils/style-fonts.js +24 -0
- package/dist/esm/components/Maplibre/utils/venue-calibration-console.d.ts +10 -0
- package/dist/esm/components/Maplibre/utils/venue-calibration-console.js +130 -0
- package/dist/esm/components/Maplibre/utils/venue-calibration.d.ts +127 -0
- package/dist/esm/components/Maplibre/utils/venue-calibration.js +144 -0
- package/dist/esm/components/Maplibre/utils/venue-camera-target.d.ts +15 -0
- package/dist/esm/components/Maplibre/utils/venue-camera-target.js +19 -0
- package/dist/esm/components/Maplibre/utils/venue-contour.d.ts +50 -0
- package/dist/esm/components/Maplibre/utils/venue-contour.fixture.d.ts +18 -0
- package/dist/esm/components/Maplibre/utils/venue-contour.fixture.js +69 -0
- package/dist/esm/components/Maplibre/utils/venue-contour.js +188 -0
- package/dist/esm/components/Maplibre/utils/venue-focus.d.ts +26 -0
- package/dist/esm/components/Maplibre/utils/venue-focus.js +106 -0
- package/dist/esm/components/Maplibre/utils/venue-legibility.d.ts +30 -0
- package/dist/esm/components/Maplibre/utils/venue-legibility.js +52 -0
- package/dist/esm/components/Maplibre/utils/venue-pin-rasterize.d.ts +88 -0
- package/dist/esm/components/Maplibre/utils/venue-pin-rasterize.js +220 -0
- package/dist/esm/components/Maplibre/utils/venue-projection.d.ts +37 -0
- package/dist/esm/components/Maplibre/utils/venue-projection.js +88 -0
- package/dist/esm/components/Maplibre/utils/venue-tap-hit-test.d.ts +9 -0
- package/dist/esm/components/Maplibre/utils/venue-tap-hit-test.js +9 -0
- package/dist/esm/components/Maplibre/utils/venue-viewport-detail.d.ts +19 -0
- package/dist/esm/components/Maplibre/utils/venue-viewport-detail.js +24 -0
- package/dist/esm/components/Maplibre/utils/venue-zoom.d.ts +23 -0
- package/dist/esm/components/Maplibre/utils/venue-zoom.js +62 -0
- package/dist/esm/components/Menu.d.ts +11 -0
- package/dist/esm/components/Menu.js +94 -0
- package/dist/esm/components/MobileToggleButtonContainer.d.ts +3 -0
- package/dist/esm/components/MobileToggleButtonContainer.js +24 -0
- package/dist/esm/components/ModalContainer.d.ts +41 -0
- package/dist/esm/components/ModalContainer.js +10 -0
- package/dist/esm/components/MultiSelectGroupsContainer.d.ts +5 -0
- package/dist/esm/components/MultiSelectGroupsContainer.js +8 -0
- package/dist/esm/components/OverlayContainer.d.ts +8 -0
- package/dist/esm/components/OverlayContainer.js +82 -0
- package/dist/esm/components/OverlayGripContainer.d.ts +4 -0
- package/dist/esm/components/OverlayGripContainer.js +11 -0
- package/dist/esm/components/OverlayParticles.d.ts +5 -0
- package/dist/esm/components/OverlayParticles.js +54 -0
- package/dist/esm/components/PlanSelectorContainer.d.ts +3 -0
- package/dist/esm/components/PlanSelectorContainer.js +79 -0
- package/dist/esm/components/RebookingNotesContainer.d.ts +4 -0
- package/dist/esm/components/RebookingNotesContainer.js +8 -0
- package/dist/esm/components/RebookingRadioGroupContainer.d.ts +6 -0
- package/dist/esm/components/RebookingRadioGroupContainer.js +23 -0
- package/dist/esm/components/RoutePlanner/RoutePlanner.d.ts +5 -0
- package/dist/esm/components/RoutePlanner/RoutePlanner.js +25 -0
- package/dist/esm/components/RoutePlanner/RoutePlannerHeader.d.ts +4 -0
- package/dist/esm/components/RoutePlanner/RoutePlannerHeader.js +11 -0
- package/dist/esm/components/RoutePlanner/RoutePlannerStartPoint.d.ts +9 -0
- package/dist/esm/components/RoutePlanner/RoutePlannerStartPoint.js +21 -0
- package/dist/esm/components/RoutePlanner/RoutePlannerStopItem.d.ts +9 -0
- package/dist/esm/components/RoutePlanner/RoutePlannerStopItem.js +41 -0
- package/dist/esm/components/RouteQR.d.ts +12 -0
- package/dist/esm/components/RouteQR.js +10 -0
- package/dist/esm/components/Schedule.d.ts +13 -0
- package/dist/esm/components/Schedule.js +109 -0
- package/dist/esm/components/ScrollableRowContainer.d.ts +6 -0
- package/dist/esm/components/ScrollableRowContainer.js +11 -0
- package/dist/esm/components/Search.d.ts +5 -0
- package/dist/esm/components/Search.js +45 -0
- package/dist/esm/components/SearchBox.d.ts +7 -0
- package/dist/esm/components/SearchBox.js +171 -0
- package/dist/esm/components/SearchButtons/SearchButton.d.ts +20 -0
- package/dist/esm/components/SearchButtons/SearchButton.js +30 -0
- package/dist/esm/components/SearchButtons/SearchButtons.d.ts +4 -0
- package/dist/esm/components/SearchButtons/SearchButtons.js +25 -0
- package/dist/esm/components/SearchButtons/SearchSubButton.d.ts +14 -0
- package/dist/esm/components/SearchButtons/SearchSubButton.js +12 -0
- package/dist/esm/components/SearchButtons/SearchSubButtons.d.ts +5 -0
- package/dist/esm/components/SearchButtons/SearchSubButtons.js +43 -0
- package/dist/esm/components/SearchButtons/index.d.ts +7 -0
- package/dist/esm/components/SearchButtons/index.js +5 -0
- package/dist/esm/components/Sessions.d.ts +8 -0
- package/dist/esm/components/Sessions.js +128 -0
- package/dist/esm/components/SessionsFiltersModal.d.ts +11 -0
- package/dist/esm/components/SessionsFiltersModal.js +105 -0
- package/dist/esm/components/SessionsList.d.ts +12 -0
- package/dist/esm/components/SessionsList.js +212 -0
- package/dist/esm/components/ShareContainer.d.ts +7 -0
- package/dist/esm/components/ShareContainer.js +29 -0
- package/dist/esm/components/Shortcuts/ShortcutButton.d.ts +9 -0
- package/dist/esm/components/Shortcuts/ShortcutButton.js +25 -0
- package/dist/esm/components/Shortcuts/ShortcutsFiltersButton.d.ts +9 -0
- package/dist/esm/components/Shortcuts/ShortcutsFiltersButton.js +41 -0
- package/dist/esm/components/Shortcuts/ShortcutsToolbar.d.ts +10 -0
- package/dist/esm/components/Shortcuts/ShortcutsToolbar.js +22 -0
- package/dist/esm/components/Shortcuts/index.d.ts +4 -0
- package/dist/esm/components/Shortcuts/index.js +4 -0
- package/dist/esm/components/ShowMoreButtonContainer.d.ts +5 -0
- package/dist/esm/components/ShowMoreButtonContainer.js +8 -0
- package/dist/esm/components/SidebarActionsContainer.d.ts +5 -0
- package/dist/esm/components/SidebarActionsContainer.js +8 -0
- package/dist/esm/components/SimpleRowContainer.d.ts +8 -0
- package/dist/esm/components/SimpleRowContainer.js +8 -0
- package/dist/esm/components/Speaker.d.ts +5 -0
- package/dist/esm/components/Speaker.js +72 -0
- package/dist/esm/components/Speakers.d.ts +8 -0
- package/dist/esm/components/Speakers.js +63 -0
- package/dist/esm/components/SpeakersFiltersModal.d.ts +11 -0
- package/dist/esm/components/SpeakersFiltersModal.js +77 -0
- package/dist/esm/components/TourPoints.d.ts +4 -0
- package/dist/esm/components/TourPoints.js +20 -0
- package/dist/esm/components/Tours.d.ts +7 -0
- package/dist/esm/components/Tours.js +54 -0
- package/dist/esm/components/ToursList.d.ts +10 -0
- package/dist/esm/components/ToursList.js +22 -0
- package/dist/esm/components/ViewerMenuPanel.d.ts +5 -0
- package/dist/esm/components/ViewerMenuPanel.js +61 -0
- package/dist/esm/components/Visited.d.ts +4 -0
- package/dist/esm/components/Visited.js +13 -0
- package/dist/esm/components/WayInformation.d.ts +14 -0
- package/dist/esm/components/WayInformation.js +8 -0
- package/dist/esm/components/Wayfinding.d.ts +4 -0
- package/dist/esm/components/Wayfinding.js +285 -0
- package/dist/esm/components/WayfindingFloorSelectorContainer.d.ts +5 -0
- package/dist/esm/components/WayfindingFloorSelectorContainer.js +12 -0
- package/dist/esm/components/WayfindingTemplate.d.ts +66 -0
- package/dist/esm/components/WayfindingTemplate.js +14 -0
- package/dist/esm/components/Ws.d.ts +5 -0
- package/dist/esm/components/Ws.js +131 -0
- package/dist/esm/components/YahRow.d.ts +8 -0
- package/dist/esm/components/YahRow.js +25 -0
- package/dist/esm/components/gps/GpsManager.d.ts +13 -0
- package/dist/esm/components/gps/GpsManager.js +60 -0
- package/dist/esm/components/gps/GpsPermissionRequest.d.ts +8 -0
- package/dist/esm/components/gps/GpsPermissionRequest.js +10 -0
- package/dist/esm/components/gps/index.d.ts +5 -0
- package/dist/esm/components/gps/index.js +3 -0
- package/dist/esm/components/gps/types.d.ts +7 -0
- package/dist/esm/components/gps/types.js +1 -0
- package/dist/esm/components/gps/useUserLocationAndHeading.d.ts +8 -0
- package/dist/esm/components/gps/useUserLocationAndHeading.js +122 -0
- package/dist/esm/components/gps/utils.d.ts +5 -0
- package/dist/esm/components/gps/utils.js +11 -0
- package/dist/esm/components/heatmap-legend-ticks.d.ts +11 -0
- package/dist/esm/components/heatmap-legend-ticks.js +18 -0
- package/dist/esm/components/index.d.ts +114 -0
- package/dist/esm/components/index.js +76 -0
- package/dist/esm/components/utils/entity-venue-grouping.d.ts +32 -0
- package/dist/esm/components/utils/entity-venue-grouping.js +43 -0
- package/dist/esm/components/utils/getDescription.d.ts +19 -0
- package/dist/esm/components/utils/getDescription.js +35 -0
- package/dist/esm/constants.d.ts +44 -0
- package/dist/esm/constants.js +66 -0
- package/dist/esm/data/fp-payloads.d.ts +27 -0
- package/dist/esm/data/fp-payloads.js +53 -0
- package/dist/esm/data/fpGeo.d.ts +45 -0
- package/dist/esm/data/fpGeo.js +9 -0
- package/dist/esm/data/index.d.ts +15 -0
- package/dist/esm/data/index.js +15 -0
- package/dist/esm/data/layer-viewbox.d.ts +10 -0
- package/dist/esm/data/layer-viewbox.js +20 -0
- package/dist/esm/data/svg.d.ts +43 -0
- package/dist/esm/data/svg.js +210 -0
- package/dist/esm/data/tours.json +280 -0
- package/dist/esm/data/venue-scene-preload.d.ts +34 -0
- package/dist/esm/data/venue-scene-preload.js +205 -0
- package/dist/esm/data/venues.d.ts +145 -0
- package/dist/esm/data/venues.js +955 -0
- package/dist/esm/engine/defs.d.ts +38 -0
- package/dist/esm/engine/defs.js +85 -0
- package/dist/esm/engine/fonts.d.ts +9 -0
- package/dist/esm/engine/fonts.js +12 -0
- package/dist/esm/engine/update-def.d.ts +55 -0
- package/dist/esm/engine/update-def.js +127 -0
- package/dist/esm/engine/utils/rotation.d.ts +13 -0
- package/dist/esm/engine/utils/rotation.js +73 -0
- package/dist/esm/floorplan.loader.d.ts +164 -0
- package/dist/esm/floorplan.loader.js +540 -0
- package/dist/esm/floorplan.ready.d.ts +149 -0
- package/dist/esm/floorplan.ready.js +1083 -0
- package/dist/esm/hooks/useURLFilters.d.ts +15 -0
- package/dist/esm/hooks/useURLFilters.js +44 -0
- package/dist/esm/index.d.ts +3 -0
- package/dist/esm/index.js +12 -0
- package/dist/esm/intercom/bootIntercom.d.ts +3 -0
- package/dist/esm/intercom/bootIntercom.js +47 -0
- package/dist/esm/intercom/index.d.ts +3 -0
- package/dist/esm/intercom/index.js +1 -0
- package/dist/esm/intercom/shouldLoad.d.ts +4 -0
- package/dist/esm/intercom/shouldLoad.js +74 -0
- package/dist/esm/intercom/types.d.ts +6 -0
- package/dist/esm/intercom/types.js +1 -0
- package/dist/esm/internal-settings.d.ts +13 -0
- package/dist/esm/internal-settings.js +6 -0
- package/dist/esm/journey/external-navigation.d.ts +30 -0
- package/dist/esm/journey/external-navigation.js +38 -0
- package/dist/esm/journey/format-distance.d.ts +14 -0
- package/dist/esm/journey/format-distance.js +38 -0
- package/dist/esm/journey/index.d.ts +16 -0
- package/dist/esm/journey/index.js +15 -0
- package/dist/esm/journey/journey-context.d.ts +140 -0
- package/dist/esm/journey/journey-context.js +137 -0
- package/dist/esm/journey/journey-link.d.ts +49 -0
- package/dist/esm/journey/journey-link.js +35 -0
- package/dist/esm/journey/journey-stage.d.ts +35 -0
- package/dist/esm/journey/journey-stage.js +28 -0
- package/dist/esm/journey/maps-provider.d.ts +36 -0
- package/dist/esm/journey/maps-provider.js +58 -0
- package/dist/esm/journey/plan-journey.d.ts +37 -0
- package/dist/esm/journey/plan-journey.js +176 -0
- package/dist/esm/journey/types.d.ts +294 -0
- package/dist/esm/journey/types.js +1 -0
- package/dist/esm/load-dev.d.ts +44 -0
- package/dist/esm/load-dev.js +60 -0
- package/dist/esm/load.d.ts +17 -0
- package/dist/esm/load.js +244 -0
- package/dist/esm/locales.d.ts +25 -0
- package/dist/esm/locales.js +23 -0
- package/dist/esm/offline/constants.d.ts +5 -0
- package/dist/esm/offline/constants.js +4 -0
- package/dist/esm/offline/offlineManager.d.ts +2 -0
- package/dist/esm/offline/offlineManager.js +78 -0
- package/dist/esm/plan-lifecycle.d.ts +65 -0
- package/dist/esm/plan-lifecycle.js +97 -0
- package/dist/esm/schemas/sdk.schemas.d.ts +25 -0
- package/dist/esm/schemas/sdk.schemas.js +24 -0
- package/dist/esm/services/URLFilterManager.d.ts +39 -0
- package/dist/esm/services/URLFilterManager.js +379 -0
- package/dist/esm/services/multi-slug.d.ts +20 -0
- package/dist/esm/services/multi-slug.js +30 -0
- package/dist/esm/services/url-dispatch.d.ts +22 -0
- package/dist/esm/services/url-dispatch.js +707 -0
- package/dist/esm/services/url-sync.d.ts +40 -0
- package/dist/esm/services/url-sync.js +185 -0
- package/dist/esm/store/BaseFilterStore.d.ts +17 -0
- package/dist/esm/store/BaseFilterStore.js +63 -0
- package/dist/esm/store/BookmarksStore.d.ts +9 -0
- package/dist/esm/store/BookmarksStore.js +28 -0
- package/dist/esm/store/BoothStore.d.ts +105 -0
- package/dist/esm/store/BoothStore.js +194 -0
- package/dist/esm/store/CategoryFilterStore.d.ts +13 -0
- package/dist/esm/store/CategoryFilterStore.js +60 -0
- package/dist/esm/store/CategoryStore.d.ts +21 -0
- package/dist/esm/store/CategoryStore.js +30 -0
- package/dist/esm/store/EventStore.d.ts +56 -0
- package/dist/esm/store/EventStore.js +188 -0
- package/dist/esm/store/ExhibitorStore.d.ts +86 -0
- package/dist/esm/store/ExhibitorStore.js +175 -0
- package/dist/esm/store/FuzzySearchEngineStore.d.ts +15 -0
- package/dist/esm/store/FuzzySearchEngineStore.js +45 -0
- package/dist/esm/store/HeatmapStore.d.ts +51 -0
- package/dist/esm/store/HeatmapStore.js +100 -0
- package/dist/esm/store/IntercomStore.d.ts +7 -0
- package/dist/esm/store/IntercomStore.js +26 -0
- package/dist/esm/store/LayerStore.d.ts +70 -0
- package/dist/esm/store/LayerStore.js +399 -0
- package/dist/esm/store/MaplibreStore.d.ts +71 -0
- package/dist/esm/store/MaplibreStore.js +137 -0
- package/dist/esm/store/OverlayStore.d.ts +32 -0
- package/dist/esm/store/OverlayStore.js +68 -0
- package/dist/esm/store/PoiMarkerStore.d.ts +76 -0
- package/dist/esm/store/PoiMarkerStore.js +97 -0
- package/dist/esm/store/PoiTypeStore.d.ts +8 -0
- package/dist/esm/store/PoiTypeStore.js +6 -0
- package/dist/esm/store/RootStore.d.ts +118 -0
- package/dist/esm/store/RootStore.js +666 -0
- package/dist/esm/store/RoutePlannerStore.d.ts +56 -0
- package/dist/esm/store/RoutePlannerStore.js +322 -0
- package/dist/esm/store/RouteStore.d.ts +138 -0
- package/dist/esm/store/RouteStore.js +692 -0
- package/dist/esm/store/SearchButtonsStore.d.ts +2 -0
- package/dist/esm/store/SearchButtonsStore.js +2 -0
- package/dist/esm/store/SearchStore.d.ts +81 -0
- package/dist/esm/store/SearchStore.js +612 -0
- package/dist/esm/store/SessionsFilterStore.d.ts +53 -0
- package/dist/esm/store/SessionsFilterStore.js +169 -0
- package/dist/esm/store/ShortcutProvider.d.ts +26 -0
- package/dist/esm/store/ShortcutProvider.js +5 -0
- package/dist/esm/store/ShortcutRegistry.d.ts +33 -0
- package/dist/esm/store/ShortcutRegistry.js +130 -0
- package/dist/esm/store/SpeakerFilterStore.d.ts +39 -0
- package/dist/esm/store/SpeakerFilterStore.js +152 -0
- package/dist/esm/store/SpeakerStore.d.ts +45 -0
- package/dist/esm/store/SpeakerStore.js +142 -0
- package/dist/esm/store/SubButtonProvider.d.ts +16 -0
- package/dist/esm/store/SubButtonProvider.js +6 -0
- package/dist/esm/store/SubButtonRegistry.d.ts +16 -0
- package/dist/esm/store/SubButtonRegistry.js +58 -0
- package/dist/esm/store/ToursStore.d.ts +30 -0
- package/dist/esm/store/ToursStore.js +184 -0
- package/dist/esm/store/UIState.d.ts +329 -0
- package/dist/esm/store/UIState.js +2138 -0
- package/dist/esm/store/VenueStore.d.ts +254 -0
- package/dist/esm/store/VenueStore.js +650 -0
- package/dist/esm/store/create-live-plan.d.ts +13 -0
- package/dist/esm/store/create-live-plan.js +25 -0
- package/dist/esm/store/details-events.d.ts +11 -0
- package/dist/esm/store/details-events.js +76 -0
- package/dist/esm/store/floor-activated-notifier.d.ts +18 -0
- package/dist/esm/store/floor-activated-notifier.js +22 -0
- package/dist/esm/store/index.d.ts +3 -0
- package/dist/esm/store/index.js +14 -0
- package/dist/esm/store/init/index.d.ts +3 -0
- package/dist/esm/store/init/index.js +20 -0
- package/dist/esm/store/init/init-booths.d.ts +6 -0
- package/dist/esm/store/init/init-booths.js +306 -0
- package/dist/esm/store/init/init-categories.d.ts +3 -0
- package/dist/esm/store/init/init-categories.js +28 -0
- package/dist/esm/store/init/init-events.d.ts +3 -0
- package/dist/esm/store/init/init-events.js +45 -0
- package/dist/esm/store/init/init-exhibitors.d.ts +3 -0
- package/dist/esm/store/init/init-exhibitors.js +71 -0
- package/dist/esm/store/init/init-heatmap.d.ts +3 -0
- package/dist/esm/store/init/init-heatmap.js +37 -0
- package/dist/esm/store/init/init-layers.d.ts +8 -0
- package/dist/esm/store/init/init-layers.js +151 -0
- package/dist/esm/store/init/init-poiTypes.d.ts +3 -0
- package/dist/esm/store/init/init-poiTypes.js +6 -0
- package/dist/esm/store/init/init-speakers.d.ts +3 -0
- package/dist/esm/store/init/init-speakers.js +20 -0
- package/dist/esm/store/init/init-ui.d.ts +13 -0
- package/dist/esm/store/init/init-ui.js +155 -0
- package/dist/esm/store/journey-plan.d.ts +89 -0
- package/dist/esm/store/journey-plan.js +291 -0
- package/dist/esm/store/live-store.d.ts +19 -0
- package/dist/esm/store/live-store.js +26 -0
- package/dist/esm/store/outdoor-poi-filter.d.ts +21 -0
- package/dist/esm/store/outdoor-poi-filter.js +33 -0
- package/dist/esm/store/providers/SearchShortcutProvider.d.ts +13 -0
- package/dist/esm/store/providers/SearchShortcutProvider.js +59 -0
- package/dist/esm/store/providers/SessionsShortcutProvider.d.ts +17 -0
- package/dist/esm/store/providers/SessionsShortcutProvider.js +221 -0
- package/dist/esm/store/providers/SessionsSubButtonProvider.d.ts +33 -0
- package/dist/esm/store/providers/SessionsSubButtonProvider.js +100 -0
- package/dist/esm/store/providers/SpeakerShortcutProvider.d.ts +12 -0
- package/dist/esm/store/providers/SpeakerShortcutProvider.js +73 -0
- package/dist/esm/store/reveal-layer.d.ts +29 -0
- package/dist/esm/store/reveal-layer.js +25 -0
- package/dist/esm/store/search-buttons/SearchButtonsActions.d.ts +55 -0
- package/dist/esm/store/search-buttons/SearchButtonsActions.js +363 -0
- package/dist/esm/store/search-buttons/SearchButtonsFactory.d.ts +37 -0
- package/dist/esm/store/search-buttons/SearchButtonsFactory.js +291 -0
- package/dist/esm/store/search-buttons/SearchButtonsFilters.d.ts +20 -0
- package/dist/esm/store/search-buttons/SearchButtonsFilters.js +157 -0
- package/dist/esm/store/search-buttons/SearchButtonsState.d.ts +24 -0
- package/dist/esm/store/search-buttons/SearchButtonsState.js +125 -0
- package/dist/esm/store/search-buttons/SearchButtonsStore.d.ts +73 -0
- package/dist/esm/store/search-buttons/SearchButtonsStore.js +364 -0
- package/dist/esm/store/search-buttons/constants.d.ts +24 -0
- package/dist/esm/store/search-buttons/constants.js +24 -0
- package/dist/esm/store/search-buttons/index.d.ts +8 -0
- package/dist/esm/store/search-buttons/index.js +7 -0
- package/dist/esm/store/search-buttons/utils.d.ts +6 -0
- package/dist/esm/store/search-buttons/utils.js +34 -0
- package/dist/esm/store/types.d.ts +213 -0
- package/dist/esm/store/types.js +1 -0
- package/dist/esm/store/venue-public.d.ts +10 -0
- package/dist/esm/store/venue-public.js +14 -0
- package/dist/esm/store/venue-selection.d.ts +45 -0
- package/dist/esm/store/venue-selection.js +101 -0
- package/dist/esm/test/store-harness.d.ts +32 -0
- package/dist/esm/test/store-harness.js +116 -0
- package/dist/esm/tools/base-runtime-url.d.ts +3 -0
- package/dist/esm/tools/base-runtime-url.js +23 -0
- package/dist/esm/tools/debounce.d.ts +2 -0
- package/dist/esm/tools/debounce.js +10 -0
- package/dist/esm/tools/debugCanvases.d.ts +3 -0
- package/dist/esm/tools/debugCanvases.js +3 -0
- package/dist/esm/tools/event-not-found.d.ts +18 -0
- package/dist/esm/tools/event-not-found.js +50 -0
- package/dist/esm/tools/event-scoped-cache.d.ts +13 -0
- package/dist/esm/tools/event-scoped-cache.js +47 -0
- package/dist/esm/tools/expofpUrl.d.ts +7 -0
- package/dist/esm/tools/expofpUrl.js +10 -0
- package/dist/esm/tools/freeBanner.d.ts +5 -0
- package/dist/esm/tools/freeBanner.js +11 -0
- package/dist/esm/tools/gtag.d.ts +66 -0
- package/dist/esm/tools/gtag.js +287 -0
- package/dist/esm/tools/handleDebugMode.d.ts +19 -0
- package/dist/esm/tools/handleDebugMode.js +61 -0
- package/dist/esm/tools/has-html-tags.d.ts +2 -0
- package/dist/esm/tools/has-html-tags.js +3 -0
- package/dist/esm/tools/id.d.ts +2 -0
- package/dist/esm/tools/id.js +5 -0
- package/dist/esm/tools/loaders.d.ts +5 -0
- package/dist/esm/tools/loaders.js +67 -0
- package/dist/esm/tools/logger.d.ts +38 -0
- package/dist/esm/tools/logger.js +87 -0
- package/dist/esm/tools/rebooking-config.d.ts +10 -0
- package/dist/esm/tools/rebooking-config.js +19 -0
- package/dist/esm/tools/rebookingUrl.d.ts +11 -0
- package/dist/esm/tools/rebookingUrl.js +27 -0
- package/dist/esm/tools/report-error.d.ts +2 -0
- package/dist/esm/tools/report-error.js +134 -0
- package/dist/esm/tools/reset.d.ts +2 -0
- package/dist/esm/tools/reset.js +35 -0
- package/dist/esm/tools/sentry.d.ts +7 -0
- package/dist/esm/tools/sentry.js +166 -0
- package/dist/esm/tools/settings.d.ts +36 -0
- package/dist/esm/tools/settings.js +110 -0
- package/dist/esm/tools/slug.d.ts +2 -0
- package/dist/esm/tools/slug.js +27 -0
- package/dist/esm/tools/strip-html.d.ts +2 -0
- package/dist/esm/tools/strip-html.js +7 -0
- package/dist/esm/tools/style-registry.d.ts +28 -0
- package/dist/esm/tools/style-registry.js +46 -0
- package/dist/esm/tools/telemetry.d.ts +37 -0
- package/dist/esm/tools/telemetry.js +266 -0
- package/dist/esm/tools/track-event.d.ts +28 -0
- package/dist/esm/tools/track-event.js +196 -0
- package/dist/esm/tools/webgl-logger.d.ts +2 -0
- package/dist/esm/tools/webgl-logger.js +31 -0
- package/dist/esm/types/drawing.types.d.ts +18 -0
- package/dist/esm/types/drawing.types.js +1 -0
- package/dist/esm/types/sdk.types.d.ts +49 -0
- package/dist/esm/types/sdk.types.js +6 -0
- package/dist/esm/types.d.ts +593 -0
- package/dist/esm/types.js +1 -0
- package/dist/esm/utils/_OLD_gpu-info.d.ts +6 -0
- package/dist/esm/utils/_OLD_gpu-info.js +23 -0
- package/dist/esm/utils/_OLD_should-use-backdrop.d.ts +3 -0
- package/dist/esm/utils/_OLD_should-use-backdrop.js +4 -0
- package/dist/esm/utils/areLayersEnabled.d.ts +2 -0
- package/dist/esm/utils/areLayersEnabled.js +4 -0
- package/dist/esm/utils/blob-image-size.d.ts +27 -0
- package/dist/esm/utils/blob-image-size.js +37 -0
- package/dist/esm/utils/brand.d.ts +18 -0
- package/dist/esm/utils/brand.js +19 -0
- package/dist/esm/utils/browser.d.ts +4 -0
- package/dist/esm/utils/browser.js +4 -0
- package/dist/esm/utils/calcSpeed.d.ts +2 -0
- package/dist/esm/utils/calcSpeed.js +5 -0
- package/dist/esm/utils/calcTravelTime.d.ts +2 -0
- package/dist/esm/utils/calcTravelTime.js +3 -0
- package/dist/esm/utils/camera-map-settings.d.ts +26 -0
- package/dist/esm/utils/camera-map-settings.js +86 -0
- package/dist/esm/utils/color-gradient.d.ts +2 -0
- package/dist/esm/utils/color-gradient.js +14 -0
- package/dist/esm/utils/customCommands.d.ts +2 -0
- package/dist/esm/utils/customCommands.js +33 -0
- package/dist/esm/utils/detectLimitedModeViaImage.d.ts +2 -0
- package/dist/esm/utils/detectLimitedModeViaImage.js +33 -0
- package/dist/esm/utils/dimming.d.ts +27 -0
- package/dist/esm/utils/dimming.js +88 -0
- package/dist/esm/utils/entity-storage.d.ts +14 -0
- package/dist/esm/utils/entity-storage.js +122 -0
- package/dist/esm/utils/event-head.d.ts +38 -0
- package/dist/esm/utils/event-head.js +90 -0
- package/dist/esm/utils/event-now.d.ts +11 -0
- package/dist/esm/utils/event-now.js +40 -0
- package/dist/esm/utils/event-title.d.ts +19 -0
- package/dist/esm/utils/event-title.js +20 -0
- package/dist/esm/utils/eventFullBadge.d.ts +3 -0
- package/dist/esm/utils/eventFullBadge.js +7 -0
- package/dist/esm/utils/eventTime.d.ts +15 -0
- package/dist/esm/utils/eventTime.js +82 -0
- package/dist/esm/utils/extractMetaFromString.d.ts +5 -0
- package/dist/esm/utils/extractMetaFromString.js +16 -0
- package/dist/esm/utils/geo-anchors.d.ts +10 -0
- package/dist/esm/utils/geo-anchors.js +12 -0
- package/dist/esm/utils/geometry.d.ts +2 -0
- package/dist/esm/utils/geometry.js +12 -0
- package/dist/esm/utils/getContrastTextColor.d.ts +2 -0
- package/dist/esm/utils/getContrastTextColor.js +26 -0
- package/dist/esm/utils/getLogoUrl.d.ts +9 -0
- package/dist/esm/utils/getLogoUrl.js +26 -0
- package/dist/esm/utils/getMostFrequent.d.ts +2 -0
- package/dist/esm/utils/getMostFrequent.js +14 -0
- package/dist/esm/utils/getRenderTargetFromRoot.d.ts +2 -0
- package/dist/esm/utils/getRenderTargetFromRoot.js +19 -0
- package/dist/esm/utils/gps.d.ts +40 -0
- package/dist/esm/utils/gps.js +66 -0
- package/dist/esm/utils/heatmap-enabled.d.ts +13 -0
- package/dist/esm/utils/heatmap-enabled.js +13 -0
- package/dist/esm/utils/i18n.d.ts +18 -0
- package/dist/esm/utils/i18n.js +117 -0
- package/dist/esm/utils/index.d.ts +10 -0
- package/dist/esm/utils/index.js +60 -0
- package/dist/esm/utils/is-debug.d.ts +3 -0
- package/dist/esm/utils/is-debug.js +9 -0
- package/dist/esm/utils/is-from-designer.d.ts +3 -0
- package/dist/esm/utils/is-from-designer.js +4 -0
- package/dist/esm/utils/is-iframe.d.ts +3 -0
- package/dist/esm/utils/is-iframe.js +13 -0
- package/dist/esm/utils/is-localhost.d.ts +3 -0
- package/dist/esm/utils/is-localhost.js +11 -0
- package/dist/esm/utils/is-mac.d.ts +3 -0
- package/dist/esm/utils/is-mac.js +2 -0
- package/dist/esm/utils/is-mobile.d.ts +3 -0
- package/dist/esm/utils/is-mobile.js +2 -0
- package/dist/esm/utils/is-own-domain.d.ts +12 -0
- package/dist/esm/utils/is-own-domain.js +23 -0
- package/dist/esm/utils/is-pathway-layer.d.ts +2 -0
- package/dist/esm/utils/is-pathway-layer.js +4 -0
- package/dist/esm/utils/is-phone.d.ts +9 -0
- package/dist/esm/utils/is-phone.js +17 -0
- package/dist/esm/utils/is-scroll-ugly.d.ts +3 -0
- package/dist/esm/utils/is-scroll-ugly.js +13 -0
- package/dist/esm/utils/is-webview.d.ts +3 -0
- package/dist/esm/utils/is-webview.js +2 -0
- package/dist/esm/utils/isNumericLevel.d.ts +2 -0
- package/dist/esm/utils/isNumericLevel.js +3 -0
- package/dist/esm/utils/lazy-qr-code.d.ts +5 -0
- package/dist/esm/utils/lazy-qr-code.js +6 -0
- package/dist/esm/utils/legacy-storage-keys.d.ts +16 -0
- package/dist/esm/utils/legacy-storage-keys.js +38 -0
- package/dist/esm/utils/loadBlob.d.ts +16 -0
- package/dist/esm/utils/loadBlob.js +40 -0
- package/dist/esm/utils/loadCustomCss.d.ts +3 -0
- package/dist/esm/utils/loadCustomCss.js +19 -0
- package/dist/esm/utils/loadIcons.d.ts +3 -0
- package/dist/esm/utils/loadIcons.js +24 -0
- package/dist/esm/utils/loadImage.d.ts +2 -0
- package/dist/esm/utils/loadImage.js +11 -0
- package/dist/esm/utils/loadImagesInBatches.d.ts +22 -0
- package/dist/esm/utils/loadImagesInBatches.js +82 -0
- package/dist/esm/utils/loadLayerImages.d.ts +41 -0
- package/dist/esm/utils/loadLayerImages.js +107 -0
- package/dist/esm/utils/localStorage.d.ts +2 -0
- package/dist/esm/utils/localStorage.js +11 -0
- package/dist/esm/utils/lz-utils.d.ts +8 -0
- package/dist/esm/utils/lz-utils.js +16 -0
- package/dist/esm/utils/mapEntity.d.ts +3 -0
- package/dist/esm/utils/mapEntity.js +82 -0
- package/dist/esm/utils/math.d.ts +6 -0
- package/dist/esm/utils/math.js +7 -0
- package/dist/esm/utils/mobx.d.ts +35 -0
- package/dist/esm/utils/mobx.js +74 -0
- package/dist/esm/utils/outdoor-poi.d.ts +32 -0
- package/dist/esm/utils/outdoor-poi.js +28 -0
- package/dist/esm/utils/plan-reactions.d.ts +20 -0
- package/dist/esm/utils/plan-reactions.js +26 -0
- package/dist/esm/utils/planBearing.d.ts +14 -0
- package/dist/esm/utils/planBearing.js +15 -0
- package/dist/esm/utils/preview-exhibitor.d.ts +11 -0
- package/dist/esm/utils/preview-exhibitor.js +19 -0
- package/dist/esm/utils/rasterize-svg.d.ts +32 -0
- package/dist/esm/utils/rasterize-svg.js +78 -0
- package/dist/esm/utils/responsiveClass.d.ts +2 -0
- package/dist/esm/utils/responsiveClass.js +25 -0
- package/dist/esm/utils/rtl.d.ts +2 -0
- package/dist/esm/utils/rtl.js +4 -0
- package/dist/esm/utils/sanitizeHtml.d.ts +3 -0
- package/dist/esm/utils/sanitizeHtml.js +21 -0
- package/dist/esm/utils/sanitizeText.d.ts +9 -0
- package/dist/esm/utils/sanitizeText.js +19 -0
- package/dist/esm/utils/scene-bounds.d.ts +64 -0
- package/dist/esm/utils/scene-bounds.js +127 -0
- package/dist/esm/utils/shortenName.d.ts +2 -0
- package/dist/esm/utils/shortenName.js +19 -0
- package/dist/esm/utils/silence-mobx-react-lite-warning.d.ts +2 -0
- package/dist/esm/utils/silence-mobx-react-lite-warning.js +24 -0
- package/dist/esm/utils/strEqual.d.ts +2 -0
- package/dist/esm/utils/strEqual.js +3 -0
- package/dist/esm/utils/swappable-proxy.d.ts +28 -0
- package/dist/esm/utils/swappable-proxy.js +71 -0
- package/dist/esm/utils/trackingParams.d.ts +3 -0
- package/dist/esm/utils/trackingParams.js +24 -0
- package/dist/esm/utils/urlEncoding.d.ts +7 -0
- package/dist/esm/utils/urlEncoding.js +62 -0
- package/dist/esm/utils/use-shadow.d.ts +3 -0
- package/dist/esm/utils/use-shadow.js +10 -0
- package/dist/esm/utils/useHeatmapData.d.ts +10 -0
- package/dist/esm/utils/useHeatmapData.js +8 -0
- package/dist/esm/utils/useHeatmapOverlay.d.ts +9 -0
- package/dist/esm/utils/useHeatmapOverlay.js +56 -0
- package/dist/esm/utils/useRenderTarget.d.ts +2 -0
- package/dist/esm/utils/useRenderTarget.js +35 -0
- package/dist/esm/utils/yah_icon.d.ts +6 -0
- package/dist/esm/utils/yah_icon.js +457 -0
- package/dist/esm/wayfinding/adapters/arbitraryPoint.d.ts +32 -0
- package/dist/esm/wayfinding/adapters/arbitraryPoint.js +25 -0
- package/dist/esm/wayfinding/adapters/boothToEndpoint.d.ts +19 -0
- package/dist/esm/wayfinding/adapters/boothToEndpoint.js +32 -0
- package/dist/esm/wayfinding/adapters/campusEndpoints.d.ts +13 -0
- package/dist/esm/wayfinding/adapters/campusEndpoints.js +25 -0
- package/dist/esm/wayfinding/adapters/canvasIconProvider.d.ts +20 -0
- package/dist/esm/wayfinding/adapters/canvasIconProvider.js +73 -0
- package/dist/esm/wayfinding/adapters/floorContext.d.ts +20 -0
- package/dist/esm/wayfinding/adapters/floorContext.js +43 -0
- package/dist/esm/wayfinding/adapters/graphDataSource.d.ts +49 -0
- package/dist/esm/wayfinding/adapters/graphDataSource.js +87 -0
- package/dist/esm/wayfinding/adapters/index.d.ts +10 -0
- package/dist/esm/wayfinding/adapters/index.js +8 -0
- package/dist/esm/wayfinding/adapters/kioskCanvas.d.ts +7 -0
- package/dist/esm/wayfinding/adapters/kioskCanvas.js +22 -0
- package/dist/esm/wayfinding/adapters/positionInput.d.ts +12 -0
- package/dist/esm/wayfinding/adapters/positionInput.js +16 -0
- package/dist/esm/wayfinding/bindMobxReactions.d.ts +28 -0
- package/dist/esm/wayfinding/bindMobxReactions.js +171 -0
- package/dist/esm/wayfinding/createWayfinding.d.ts +34 -0
- package/dist/esm/wayfinding/createWayfinding.js +184 -0
- package/dist/esm/wayfinding/handlers/kioskHandler.d.ts +26 -0
- package/dist/esm/wayfinding/handlers/kioskHandler.js +52 -0
- package/dist/esm/wayfinding/handlers/yahHandler.d.ts +21 -0
- package/dist/esm/wayfinding/handlers/yahHandler.js +42 -0
- package/dist/esm/wayfinding/index.d.ts +12 -0
- package/dist/esm/wayfinding/index.js +9 -0
- package/dist/esm/wayfinding/routeSteps.d.ts +15 -0
- package/dist/esm/wayfinding/routeSteps.js +29 -0
- package/dist/esm/wayfinding/storePorts.d.ts +67 -0
- package/dist/esm/wayfinding/storePorts.js +1 -0
- package/package.json +146 -0
|
@@ -0,0 +1,2611 @@
|
|
|
1
|
+
(function() {
|
|
2
|
+
try {
|
|
3
|
+
var e = typeof window < "u" ? window : typeof global < "u" ? global : typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : {};
|
|
4
|
+
e.SENTRY_RELEASE = { id: "3.45.6" };
|
|
5
|
+
var t = new e.Error().stack;
|
|
6
|
+
t && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[t] = "9d2051b5-d60d-4788-b31b-fe87b0d29de1", e._sentryDebugIdIdentifier = "sentry-dbid-9d2051b5-d60d-4788-b31b-fe87b0d29de1");
|
|
7
|
+
} catch {}
|
|
8
|
+
})();
|
|
9
|
+
import { r as e } from "./rolldown-runtime-DUb2xvRc.js";
|
|
10
|
+
import { t } from "./react-DqPP-mkq.js";
|
|
11
|
+
import { t as n } from "./jsx-runtime-DQgnuS-I.js";
|
|
12
|
+
import { t as r } from "./react-dom-BkVzoZWO.js";
|
|
13
|
+
//#region ../../node_modules/.pnpm/react-virtuoso@4.18.7_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/react-virtuoso/dist/index.mjs
|
|
14
|
+
var i = n(), a = /* @__PURE__ */ e(t(), 1), o = /* @__PURE__ */ e(r(), 1), s = 0, c = 1, l = 2, u = 4;
|
|
15
|
+
function d(e) {
|
|
16
|
+
return () => e;
|
|
17
|
+
}
|
|
18
|
+
function f(e) {
|
|
19
|
+
e();
|
|
20
|
+
}
|
|
21
|
+
function p(e, t) {
|
|
22
|
+
return (n) => e(t(n));
|
|
23
|
+
}
|
|
24
|
+
function m(e, t) {
|
|
25
|
+
return () => e(t);
|
|
26
|
+
}
|
|
27
|
+
function h(e, t) {
|
|
28
|
+
return (n) => e(t, n);
|
|
29
|
+
}
|
|
30
|
+
function g(e) {
|
|
31
|
+
return e !== void 0;
|
|
32
|
+
}
|
|
33
|
+
function _(...e) {
|
|
34
|
+
return () => {
|
|
35
|
+
e.map(f);
|
|
36
|
+
};
|
|
37
|
+
}
|
|
38
|
+
function v() {}
|
|
39
|
+
function y(e, t) {
|
|
40
|
+
return t(e), e;
|
|
41
|
+
}
|
|
42
|
+
function b(e, t) {
|
|
43
|
+
return t(e);
|
|
44
|
+
}
|
|
45
|
+
function x(...e) {
|
|
46
|
+
return e;
|
|
47
|
+
}
|
|
48
|
+
function S(e, t) {
|
|
49
|
+
return e(c, t);
|
|
50
|
+
}
|
|
51
|
+
function C(e, t) {
|
|
52
|
+
e(s, t);
|
|
53
|
+
}
|
|
54
|
+
function w(e) {
|
|
55
|
+
e(l);
|
|
56
|
+
}
|
|
57
|
+
function T(e) {
|
|
58
|
+
return e(u);
|
|
59
|
+
}
|
|
60
|
+
function E(e, t) {
|
|
61
|
+
return S(e, h(t, s));
|
|
62
|
+
}
|
|
63
|
+
function D(e, t) {
|
|
64
|
+
let n = e(c, (e) => {
|
|
65
|
+
n(), t(e);
|
|
66
|
+
});
|
|
67
|
+
return n;
|
|
68
|
+
}
|
|
69
|
+
function O(e) {
|
|
70
|
+
let t, n;
|
|
71
|
+
return (r) => (i) => {
|
|
72
|
+
t = i, n && clearTimeout(n), n = setTimeout(() => {
|
|
73
|
+
r(t);
|
|
74
|
+
}, e);
|
|
75
|
+
};
|
|
76
|
+
}
|
|
77
|
+
function k(e, t) {
|
|
78
|
+
return e === t;
|
|
79
|
+
}
|
|
80
|
+
function A(e = k) {
|
|
81
|
+
let t;
|
|
82
|
+
return (n) => (r) => {
|
|
83
|
+
e(t, r) || (t = r, n(r));
|
|
84
|
+
};
|
|
85
|
+
}
|
|
86
|
+
function j(e) {
|
|
87
|
+
return (t) => (n) => {
|
|
88
|
+
e(n) && t(n);
|
|
89
|
+
};
|
|
90
|
+
}
|
|
91
|
+
function M(e) {
|
|
92
|
+
return (t) => p(t, e);
|
|
93
|
+
}
|
|
94
|
+
function ee(e) {
|
|
95
|
+
return (t) => () => {
|
|
96
|
+
t(e);
|
|
97
|
+
};
|
|
98
|
+
}
|
|
99
|
+
function N(e, ...t) {
|
|
100
|
+
let n = re(...t);
|
|
101
|
+
return ((t, r) => {
|
|
102
|
+
switch (t) {
|
|
103
|
+
case l:
|
|
104
|
+
w(e);
|
|
105
|
+
return;
|
|
106
|
+
case c: return S(e, n(r));
|
|
107
|
+
}
|
|
108
|
+
});
|
|
109
|
+
}
|
|
110
|
+
function P(e, t) {
|
|
111
|
+
return (n) => (r) => {
|
|
112
|
+
n(t = e(t, r));
|
|
113
|
+
};
|
|
114
|
+
}
|
|
115
|
+
function te(e) {
|
|
116
|
+
return (t) => (n) => {
|
|
117
|
+
e > 0 ? e-- : t(n);
|
|
118
|
+
};
|
|
119
|
+
}
|
|
120
|
+
function ne(e) {
|
|
121
|
+
let t = null, n;
|
|
122
|
+
return (r) => (i) => {
|
|
123
|
+
t = i, !n && (n = setTimeout(() => {
|
|
124
|
+
n = void 0, r(t);
|
|
125
|
+
}, e));
|
|
126
|
+
};
|
|
127
|
+
}
|
|
128
|
+
function F(...e) {
|
|
129
|
+
let t = Array(e.length), n = 0, r = null, i = 2 ** e.length - 1;
|
|
130
|
+
return e.forEach((e, a) => {
|
|
131
|
+
let o = 2 ** a;
|
|
132
|
+
S(e, (e) => {
|
|
133
|
+
let s = n;
|
|
134
|
+
n |= o, t[a] = e, s !== i && n === i && r && (r(), r = null);
|
|
135
|
+
});
|
|
136
|
+
}), (e) => (a) => {
|
|
137
|
+
let o = () => {
|
|
138
|
+
e([a].concat(t));
|
|
139
|
+
};
|
|
140
|
+
n === i ? o() : r = o;
|
|
141
|
+
};
|
|
142
|
+
}
|
|
143
|
+
function re(...e) {
|
|
144
|
+
return (t) => e.reduceRight(b, t);
|
|
145
|
+
}
|
|
146
|
+
function ie(e) {
|
|
147
|
+
let t, n, r = () => t == null ? void 0 : t();
|
|
148
|
+
return function(i, a) {
|
|
149
|
+
switch (i) {
|
|
150
|
+
case c: return a ? n === a ? void 0 : (r(), n = a, t = S(e, a), t) : (r(), v);
|
|
151
|
+
case l:
|
|
152
|
+
r(), n = null;
|
|
153
|
+
return;
|
|
154
|
+
}
|
|
155
|
+
};
|
|
156
|
+
}
|
|
157
|
+
function I(e) {
|
|
158
|
+
let t = e, n = R();
|
|
159
|
+
return ((e, r) => {
|
|
160
|
+
switch (e) {
|
|
161
|
+
case s:
|
|
162
|
+
t = r;
|
|
163
|
+
break;
|
|
164
|
+
case c:
|
|
165
|
+
r(t);
|
|
166
|
+
break;
|
|
167
|
+
case u: return t;
|
|
168
|
+
}
|
|
169
|
+
return n(e, r);
|
|
170
|
+
});
|
|
171
|
+
}
|
|
172
|
+
function L(e, t) {
|
|
173
|
+
return y(I(t), (t) => E(e, t));
|
|
174
|
+
}
|
|
175
|
+
function R() {
|
|
176
|
+
let e = [];
|
|
177
|
+
return ((t, n) => {
|
|
178
|
+
switch (t) {
|
|
179
|
+
case s:
|
|
180
|
+
e.slice().forEach((e) => {
|
|
181
|
+
e(n);
|
|
182
|
+
});
|
|
183
|
+
return;
|
|
184
|
+
case l:
|
|
185
|
+
e.splice(0, e.length);
|
|
186
|
+
return;
|
|
187
|
+
case c: return e.push(n), () => {
|
|
188
|
+
let t = e.indexOf(n);
|
|
189
|
+
t > -1 && e.splice(t, 1);
|
|
190
|
+
};
|
|
191
|
+
}
|
|
192
|
+
});
|
|
193
|
+
}
|
|
194
|
+
function z(e) {
|
|
195
|
+
return y(R(), (t) => E(e, t));
|
|
196
|
+
}
|
|
197
|
+
function B(e, t = [], { singleton: n } = { singleton: !0 }) {
|
|
198
|
+
return {
|
|
199
|
+
constructor: e,
|
|
200
|
+
dependencies: t,
|
|
201
|
+
id: ae(),
|
|
202
|
+
singleton: n
|
|
203
|
+
};
|
|
204
|
+
}
|
|
205
|
+
var ae = () => Symbol();
|
|
206
|
+
function oe(e) {
|
|
207
|
+
let t = /* @__PURE__ */ new Map(), n = ({ constructor: e, dependencies: r, id: i, singleton: a }) => {
|
|
208
|
+
if (a && t.has(i)) return t.get(i);
|
|
209
|
+
let o = e(r.map((e) => n(e)));
|
|
210
|
+
return a && t.set(i, o), o;
|
|
211
|
+
};
|
|
212
|
+
return n(e);
|
|
213
|
+
}
|
|
214
|
+
function V(...e) {
|
|
215
|
+
let t = R(), n = Array(e.length), r = 0, i = 2 ** e.length - 1;
|
|
216
|
+
return e.forEach((e, a) => {
|
|
217
|
+
let o = 2 ** a;
|
|
218
|
+
S(e, (e) => {
|
|
219
|
+
n[a] = e, r |= o, r === i && C(t, n);
|
|
220
|
+
});
|
|
221
|
+
}), function(e, a) {
|
|
222
|
+
switch (e) {
|
|
223
|
+
case l:
|
|
224
|
+
w(t);
|
|
225
|
+
return;
|
|
226
|
+
case c: return r === i && a(n), S(t, a);
|
|
227
|
+
}
|
|
228
|
+
};
|
|
229
|
+
}
|
|
230
|
+
function H(e, t = k) {
|
|
231
|
+
return N(e, A(t));
|
|
232
|
+
}
|
|
233
|
+
function se(...e) {
|
|
234
|
+
return function(t, n) {
|
|
235
|
+
switch (t) {
|
|
236
|
+
case l: return;
|
|
237
|
+
case c: return _(...e.map((e) => S(e, n)));
|
|
238
|
+
}
|
|
239
|
+
};
|
|
240
|
+
}
|
|
241
|
+
var U = {
|
|
242
|
+
DEBUG: 0,
|
|
243
|
+
INFO: 1,
|
|
244
|
+
WARN: 2,
|
|
245
|
+
ERROR: 3
|
|
246
|
+
}, ce = {
|
|
247
|
+
[U.DEBUG]: "debug",
|
|
248
|
+
[U.ERROR]: "error",
|
|
249
|
+
[U.INFO]: "log",
|
|
250
|
+
[U.WARN]: "warn"
|
|
251
|
+
}, le = () => typeof globalThis > "u" ? window : globalThis, W = B(() => {
|
|
252
|
+
let e = I(U.ERROR);
|
|
253
|
+
return {
|
|
254
|
+
log: I((t, n, r = U.INFO) => {
|
|
255
|
+
var i;
|
|
256
|
+
r >= ((i = le().VIRTUOSO_LOG_LEVEL) == null ? T(e) : i) && console[ce[r]]("%creact-virtuoso: %c%s %o", "color: #0253b3; font-weight: bold", "color: initial", t, n);
|
|
257
|
+
}),
|
|
258
|
+
logLevel: e
|
|
259
|
+
};
|
|
260
|
+
}, [], { singleton: !0 }), ue = /* @__PURE__ */ new WeakMap();
|
|
261
|
+
function de(e) {
|
|
262
|
+
return "self" in e ? e.document.documentElement : e;
|
|
263
|
+
}
|
|
264
|
+
function fe(e) {
|
|
265
|
+
let t = de(e), n = ue.get(t);
|
|
266
|
+
if (n !== void 0) return n;
|
|
267
|
+
let r = t.ownerDocument.defaultView.getComputedStyle(t).direction === "rtl";
|
|
268
|
+
return ue.set(t, r), r;
|
|
269
|
+
}
|
|
270
|
+
function pe(e) {
|
|
271
|
+
ue.delete(de(e));
|
|
272
|
+
}
|
|
273
|
+
function me(e, t) {
|
|
274
|
+
return fe(e) ? -t : t;
|
|
275
|
+
}
|
|
276
|
+
var he = me;
|
|
277
|
+
function ge(e, t) {
|
|
278
|
+
return me(e, t);
|
|
279
|
+
}
|
|
280
|
+
function _e(e, t, n) {
|
|
281
|
+
return ve(e, t, n).callbackRef;
|
|
282
|
+
}
|
|
283
|
+
function ve(e, t, n) {
|
|
284
|
+
let r = a.useRef(null), i = (e) => {}, o = a.useMemo(() => typeof ResizeObserver < "u" ? new ResizeObserver((t) => {
|
|
285
|
+
let r = () => {
|
|
286
|
+
let n = t[0].target;
|
|
287
|
+
n.offsetParent !== null && e(n);
|
|
288
|
+
};
|
|
289
|
+
n ? r() : requestAnimationFrame(r);
|
|
290
|
+
}) : null, [e, n]);
|
|
291
|
+
return i = (e) => {
|
|
292
|
+
e && t ? (o == null || o.observe(e), r.current = e) : (r.current && (o == null || o.unobserve(r.current)), r.current = null);
|
|
293
|
+
}, {
|
|
294
|
+
callbackRef: i,
|
|
295
|
+
ref: r
|
|
296
|
+
};
|
|
297
|
+
}
|
|
298
|
+
function ye(e, t, n, r, i, o, s, c, l) {
|
|
299
|
+
return ve(a.useCallback((n) => {
|
|
300
|
+
let a = be(n.children, t, c ? "offsetWidth" : "offsetHeight", i), l = n.parentElement;
|
|
301
|
+
for (; l.dataset.virtuosoScroller === void 0;) l = l.parentElement;
|
|
302
|
+
let u = l.lastElementChild.dataset.viewportType === "window", d;
|
|
303
|
+
u && (d = l.ownerDocument.defaultView);
|
|
304
|
+
let f = s ? c ? s.scrollWidth : s.scrollHeight : u ? c ? d.document.documentElement.scrollWidth : d.document.documentElement.scrollHeight : c ? l.scrollWidth : l.scrollHeight, p = s ? c ? s.offsetWidth : s.offsetHeight : u ? c ? d.innerWidth : d.innerHeight : c ? l.offsetWidth : l.offsetHeight, m = s ? c ? he(s, s.scrollLeft) : s.scrollTop : u ? c ? he(d, d.scrollX || d.document.documentElement.scrollLeft) : d.scrollY || d.document.documentElement.scrollTop : c ? he(l, l.scrollLeft) : l.scrollTop;
|
|
305
|
+
r({
|
|
306
|
+
scrollHeight: f,
|
|
307
|
+
scrollTop: Math.max(m, 0),
|
|
308
|
+
viewportHeight: p
|
|
309
|
+
}), o == null || o(c ? xe("column-gap", getComputedStyle(n).columnGap, i) : xe("row-gap", getComputedStyle(n).rowGap, i)), a !== null && e(a);
|
|
310
|
+
}, [
|
|
311
|
+
e,
|
|
312
|
+
t,
|
|
313
|
+
i,
|
|
314
|
+
o,
|
|
315
|
+
s,
|
|
316
|
+
r,
|
|
317
|
+
c
|
|
318
|
+
]), n, l);
|
|
319
|
+
}
|
|
320
|
+
function be(e, t, n, r) {
|
|
321
|
+
let i = e.length;
|
|
322
|
+
if (i === 0) return null;
|
|
323
|
+
let a = [];
|
|
324
|
+
for (let o = 0; o < i; o++) {
|
|
325
|
+
let i = e.item(o);
|
|
326
|
+
if (i.dataset.index === void 0) continue;
|
|
327
|
+
let s = parseInt(i.dataset.index), c = parseFloat(i.dataset.knownSize), l = t(i, n);
|
|
328
|
+
if (l === 0 && r("Zero-sized element, this should not happen", { child: i }, U.ERROR), l === c) continue;
|
|
329
|
+
let u = a[a.length - 1];
|
|
330
|
+
a.length === 0 || u.size !== l || u.endIndex !== s - 1 ? a.push({
|
|
331
|
+
endIndex: s,
|
|
332
|
+
size: l,
|
|
333
|
+
startIndex: s
|
|
334
|
+
}) : a[a.length - 1].endIndex++;
|
|
335
|
+
}
|
|
336
|
+
return a;
|
|
337
|
+
}
|
|
338
|
+
function xe(e, t, n) {
|
|
339
|
+
return t !== "normal" && (t == null ? void 0 : t.endsWith("px")) !== !0 && n(`${e} was not resolved to pixel value correctly`, t, U.WARN), t === "normal" ? 0 : parseInt(t == null ? "0" : t, 10);
|
|
340
|
+
}
|
|
341
|
+
function Se(e, t, n) {
|
|
342
|
+
let r = a.useRef(null), i = a.useCallback((n) => {
|
|
343
|
+
if (!(n != null && n.offsetParent)) return;
|
|
344
|
+
let i = n.getBoundingClientRect(), a = i.width, o, c;
|
|
345
|
+
if (t) {
|
|
346
|
+
let e = t.getBoundingClientRect(), n = i.top - e.top;
|
|
347
|
+
c = e.height - Math.max(0, n), o = n + t.scrollTop;
|
|
348
|
+
} else {
|
|
349
|
+
let e = s.current.ownerDocument.defaultView;
|
|
350
|
+
c = e.innerHeight - Math.max(0, i.top), o = i.top + e.scrollY;
|
|
351
|
+
}
|
|
352
|
+
r.current = {
|
|
353
|
+
listHeight: i.height,
|
|
354
|
+
offsetTop: o,
|
|
355
|
+
visibleHeight: c,
|
|
356
|
+
visibleWidth: a
|
|
357
|
+
}, e(r.current);
|
|
358
|
+
}, [e, t]), { callbackRef: o, ref: s } = ve(i, !0, n), c = a.useCallback(() => {
|
|
359
|
+
i(s.current);
|
|
360
|
+
}, [i, s]);
|
|
361
|
+
return a.useEffect(() => {
|
|
362
|
+
var e;
|
|
363
|
+
if (t) {
|
|
364
|
+
t.addEventListener("scroll", c);
|
|
365
|
+
let e = new ResizeObserver(() => {
|
|
366
|
+
requestAnimationFrame(c);
|
|
367
|
+
});
|
|
368
|
+
return e.observe(t), () => {
|
|
369
|
+
t.removeEventListener("scroll", c), e.unobserve(t);
|
|
370
|
+
};
|
|
371
|
+
}
|
|
372
|
+
let n = (e = s.current) == null ? void 0 : e.ownerDocument.defaultView;
|
|
373
|
+
return n == null || n.addEventListener("scroll", c), n == null || n.addEventListener("resize", c), () => {
|
|
374
|
+
n == null || n.removeEventListener("scroll", c), n == null || n.removeEventListener("resize", c);
|
|
375
|
+
};
|
|
376
|
+
}, [
|
|
377
|
+
c,
|
|
378
|
+
t,
|
|
379
|
+
s
|
|
380
|
+
]), o;
|
|
381
|
+
}
|
|
382
|
+
var G = B(() => {
|
|
383
|
+
let e = R(), t = R(), n = I(0), r = R(), i = I(0), a = R(), o = R(), s = I(0), c = I(0), l = I(0), u = I(0), d = R(), f = R(), p = I(!1), m = I(!1), h = I(!1);
|
|
384
|
+
return E(N(e, M(({ scrollTop: e }) => e)), t), E(N(e, M(({ scrollHeight: e }) => e)), o), E(t, i), {
|
|
385
|
+
deviation: n,
|
|
386
|
+
fixedFooterHeight: l,
|
|
387
|
+
fixedHeaderHeight: c,
|
|
388
|
+
footerHeight: u,
|
|
389
|
+
headerHeight: s,
|
|
390
|
+
horizontalDirection: m,
|
|
391
|
+
scrollBy: f,
|
|
392
|
+
scrollContainerState: e,
|
|
393
|
+
scrollHeight: o,
|
|
394
|
+
scrollingInProgress: p,
|
|
395
|
+
scrollTo: d,
|
|
396
|
+
scrollTop: t,
|
|
397
|
+
skipAnimationFrameInResizeObserver: h,
|
|
398
|
+
smoothScrollTargetReached: r,
|
|
399
|
+
statefulScrollTop: i,
|
|
400
|
+
viewportHeight: a
|
|
401
|
+
};
|
|
402
|
+
}, [], { singleton: !0 }), Ce = { lvl: 0 };
|
|
403
|
+
function we(e, t) {
|
|
404
|
+
let n = e.length;
|
|
405
|
+
if (n === 0) return [];
|
|
406
|
+
let { index: r, value: i } = t(e[0]), a = [];
|
|
407
|
+
for (let o = 1; o < n; o++) {
|
|
408
|
+
let { index: n, value: s } = t(e[o]);
|
|
409
|
+
a.push({
|
|
410
|
+
end: n - 1,
|
|
411
|
+
start: r,
|
|
412
|
+
value: i
|
|
413
|
+
}), r = n, i = s;
|
|
414
|
+
}
|
|
415
|
+
return a.push({
|
|
416
|
+
end: Infinity,
|
|
417
|
+
start: r,
|
|
418
|
+
value: i
|
|
419
|
+
}), a;
|
|
420
|
+
}
|
|
421
|
+
function K(e) {
|
|
422
|
+
return e === Ce;
|
|
423
|
+
}
|
|
424
|
+
function Te(e, t) {
|
|
425
|
+
if (!K(e)) return t === e.k ? e.v : t < e.k ? Te(e.l, t) : Te(e.r, t);
|
|
426
|
+
}
|
|
427
|
+
function Ee(e, t, n = "k") {
|
|
428
|
+
if (K(e)) return [-Infinity, void 0];
|
|
429
|
+
if (Number(e[n]) === t) return [e.k, e.v];
|
|
430
|
+
if (Number(e[n]) < t) {
|
|
431
|
+
let r = Ee(e.r, t, n);
|
|
432
|
+
return r[0] === -Infinity ? [e.k, e.v] : r;
|
|
433
|
+
}
|
|
434
|
+
return Ee(e.l, t, n);
|
|
435
|
+
}
|
|
436
|
+
function q(e, t, n) {
|
|
437
|
+
return K(e) ? Ie(t, n, 1) : t === e.k ? J(e, {
|
|
438
|
+
k: t,
|
|
439
|
+
v: n
|
|
440
|
+
}) : t < e.k ? Le(J(e, { l: q(e.l, t, n) })) : Le(J(e, { r: q(e.r, t, n) }));
|
|
441
|
+
}
|
|
442
|
+
function De() {
|
|
443
|
+
return Ce;
|
|
444
|
+
}
|
|
445
|
+
function Oe(e, t, n) {
|
|
446
|
+
if (K(e)) return [];
|
|
447
|
+
let r = Ee(e, t)[0];
|
|
448
|
+
return Be(je(e, r, n));
|
|
449
|
+
}
|
|
450
|
+
function ke(e, t) {
|
|
451
|
+
if (K(e)) return Ce;
|
|
452
|
+
let { k: n, l: r, r: i } = e;
|
|
453
|
+
if (t === n) {
|
|
454
|
+
if (K(r)) return i;
|
|
455
|
+
if (K(i)) return r;
|
|
456
|
+
let [t, n] = Fe(r);
|
|
457
|
+
return Me(J(e, {
|
|
458
|
+
k: t,
|
|
459
|
+
l: Ne(r),
|
|
460
|
+
v: n
|
|
461
|
+
}));
|
|
462
|
+
}
|
|
463
|
+
return Me(t < n ? J(e, { l: ke(r, t) }) : J(e, { r: ke(i, t) }));
|
|
464
|
+
}
|
|
465
|
+
function Ae(e) {
|
|
466
|
+
return K(e) ? [] : [
|
|
467
|
+
...Ae(e.l),
|
|
468
|
+
{
|
|
469
|
+
k: e.k,
|
|
470
|
+
v: e.v
|
|
471
|
+
},
|
|
472
|
+
...Ae(e.r)
|
|
473
|
+
];
|
|
474
|
+
}
|
|
475
|
+
function je(e, t, n) {
|
|
476
|
+
if (K(e)) return [];
|
|
477
|
+
let { k: r, l: i, r: a, v: o } = e, s = [];
|
|
478
|
+
return r > t && (s = s.concat(je(i, t, n))), r >= t && r <= n && s.push({
|
|
479
|
+
k: r,
|
|
480
|
+
v: o
|
|
481
|
+
}), r <= n && (s = s.concat(je(a, t, n))), s;
|
|
482
|
+
}
|
|
483
|
+
function Me(e) {
|
|
484
|
+
let { l: t, lvl: n, r } = e;
|
|
485
|
+
if (r.lvl >= n - 1 && t.lvl >= n - 1) return e;
|
|
486
|
+
if (n > r.lvl + 1) {
|
|
487
|
+
if (Pe(t)) return Re(J(e, { lvl: n - 1 }));
|
|
488
|
+
if (!K(t) && !K(t.r)) return J(t.r, {
|
|
489
|
+
l: J(t, { r: t.r.l }),
|
|
490
|
+
lvl: n,
|
|
491
|
+
r: J(e, {
|
|
492
|
+
l: t.r.r,
|
|
493
|
+
lvl: n - 1
|
|
494
|
+
})
|
|
495
|
+
});
|
|
496
|
+
throw Error("Unexpected empty nodes");
|
|
497
|
+
}
|
|
498
|
+
if (Pe(e)) return ze(J(e, { lvl: n - 1 }));
|
|
499
|
+
if (!K(r) && !K(r.l)) {
|
|
500
|
+
let t = r.l, i = Pe(t) ? r.lvl - 1 : r.lvl;
|
|
501
|
+
return J(t, {
|
|
502
|
+
l: J(e, {
|
|
503
|
+
lvl: n - 1,
|
|
504
|
+
r: t.l
|
|
505
|
+
}),
|
|
506
|
+
lvl: t.lvl + 1,
|
|
507
|
+
r: ze(J(r, {
|
|
508
|
+
l: t.r,
|
|
509
|
+
lvl: i
|
|
510
|
+
}))
|
|
511
|
+
});
|
|
512
|
+
}
|
|
513
|
+
throw Error("Unexpected empty nodes");
|
|
514
|
+
}
|
|
515
|
+
function J(e, t) {
|
|
516
|
+
return Ie(t.k === void 0 ? e.k : t.k, t.v === void 0 ? e.v : t.v, t.lvl === void 0 ? e.lvl : t.lvl, t.l === void 0 ? e.l : t.l, t.r === void 0 ? e.r : t.r);
|
|
517
|
+
}
|
|
518
|
+
function Ne(e) {
|
|
519
|
+
return K(e.r) ? e.l : Me(J(e, { r: Ne(e.r) }));
|
|
520
|
+
}
|
|
521
|
+
function Pe(e) {
|
|
522
|
+
return K(e) || e.lvl > e.r.lvl;
|
|
523
|
+
}
|
|
524
|
+
function Fe(e) {
|
|
525
|
+
return K(e.r) ? [e.k, e.v] : Fe(e.r);
|
|
526
|
+
}
|
|
527
|
+
function Ie(e, t, n, r = Ce, i = Ce) {
|
|
528
|
+
return {
|
|
529
|
+
k: e,
|
|
530
|
+
l: r,
|
|
531
|
+
lvl: n,
|
|
532
|
+
r: i,
|
|
533
|
+
v: t
|
|
534
|
+
};
|
|
535
|
+
}
|
|
536
|
+
function Le(e) {
|
|
537
|
+
return ze(Re(e));
|
|
538
|
+
}
|
|
539
|
+
function Re(e) {
|
|
540
|
+
let { l: t } = e;
|
|
541
|
+
return !K(t) && t.lvl === e.lvl ? J(t, { r: J(e, { l: t.r }) }) : e;
|
|
542
|
+
}
|
|
543
|
+
function ze(e) {
|
|
544
|
+
let { lvl: t, r: n } = e;
|
|
545
|
+
return !K(n) && !K(n.r) && n.lvl === t && n.r.lvl === t ? J(n, {
|
|
546
|
+
l: J(e, { r: n.l }),
|
|
547
|
+
lvl: t + 1
|
|
548
|
+
}) : e;
|
|
549
|
+
}
|
|
550
|
+
function Be(e) {
|
|
551
|
+
return we(e, ({ k: e, v: t }) => ({
|
|
552
|
+
index: e,
|
|
553
|
+
value: t
|
|
554
|
+
}));
|
|
555
|
+
}
|
|
556
|
+
function Ve(e, t) {
|
|
557
|
+
return !!(e && e.startIndex === t.startIndex && e.endIndex === t.endIndex);
|
|
558
|
+
}
|
|
559
|
+
function He(e, t) {
|
|
560
|
+
return !!(e && e[0] === t[0] && e[1] === t[1]);
|
|
561
|
+
}
|
|
562
|
+
var Ue = B(() => ({ recalcInProgress: I(!1) }), [], { singleton: !0 });
|
|
563
|
+
function We(e, t, n) {
|
|
564
|
+
return e[Ge(e, t, n)];
|
|
565
|
+
}
|
|
566
|
+
function Ge(e, t, n, r = 0) {
|
|
567
|
+
let i = e.length - 1;
|
|
568
|
+
for (; r <= i;) {
|
|
569
|
+
let a = Math.floor((r + i) / 2), o = e[a], s = n(o, t);
|
|
570
|
+
if (s === 0) return a;
|
|
571
|
+
if (s === -1) {
|
|
572
|
+
if (i - r < 2) return a - 1;
|
|
573
|
+
i = a - 1;
|
|
574
|
+
} else {
|
|
575
|
+
if (i === r) return a;
|
|
576
|
+
r = a + 1;
|
|
577
|
+
}
|
|
578
|
+
}
|
|
579
|
+
throw Error(`Failed binary finding record in array - ${e.join(",")}, searched for ${t}`);
|
|
580
|
+
}
|
|
581
|
+
function Ke(e, t, n, r) {
|
|
582
|
+
let i = Ge(e, t, r), a = Ge(e, n, r, i);
|
|
583
|
+
return e.slice(i, a + 1);
|
|
584
|
+
}
|
|
585
|
+
function qe(e, t) {
|
|
586
|
+
return Math.round(e.getBoundingClientRect()[t]);
|
|
587
|
+
}
|
|
588
|
+
function Je(e) {
|
|
589
|
+
return !K(e.groupOffsetTree);
|
|
590
|
+
}
|
|
591
|
+
function Ye({ index: e }, t) {
|
|
592
|
+
return t === e ? 0 : t < e ? -1 : 1;
|
|
593
|
+
}
|
|
594
|
+
function Xe() {
|
|
595
|
+
return {
|
|
596
|
+
groupIndices: [],
|
|
597
|
+
groupOffsetTree: De(),
|
|
598
|
+
lastIndex: 0,
|
|
599
|
+
lastOffset: 0,
|
|
600
|
+
lastSize: 0,
|
|
601
|
+
offsetTree: [],
|
|
602
|
+
sizeTree: De()
|
|
603
|
+
};
|
|
604
|
+
}
|
|
605
|
+
function Ze(e, t) {
|
|
606
|
+
let n = K(e) ? 0 : Infinity;
|
|
607
|
+
for (let r of t) {
|
|
608
|
+
let { endIndex: t, size: i, startIndex: a } = r;
|
|
609
|
+
if (n = Math.min(n, a), K(e)) {
|
|
610
|
+
e = q(e, 0, i);
|
|
611
|
+
continue;
|
|
612
|
+
}
|
|
613
|
+
let o = Oe(e, a - 1, t + 1);
|
|
614
|
+
if (o.some(lt(r))) continue;
|
|
615
|
+
let s = !1, c = !1;
|
|
616
|
+
for (let { end: n, start: r, value: a } of o) s ? (t >= r || i === a) && (e = ke(e, r)) : (c = a !== i, s = !0), n > t && t >= r && a !== i && (e = q(e, t + 1, a));
|
|
617
|
+
c && (e = q(e, a, i));
|
|
618
|
+
}
|
|
619
|
+
return [e, n];
|
|
620
|
+
}
|
|
621
|
+
function Qe(e) {
|
|
622
|
+
return typeof e.groupIndex < "u";
|
|
623
|
+
}
|
|
624
|
+
function $e({ offset: e }, t) {
|
|
625
|
+
return t === e ? 0 : t < e ? -1 : 1;
|
|
626
|
+
}
|
|
627
|
+
function et(e, t, n) {
|
|
628
|
+
if (t.length === 0) return 0;
|
|
629
|
+
let { index: r, offset: i, size: a } = We(t, e, Ye), o = e - r, s = a * o + (o - 1) * n + i;
|
|
630
|
+
return s > 0 ? s + n : s;
|
|
631
|
+
}
|
|
632
|
+
function tt(e, t) {
|
|
633
|
+
if (!Je(t)) return e;
|
|
634
|
+
let n = 0;
|
|
635
|
+
for (; t.groupIndices[n] <= e + n;) n++;
|
|
636
|
+
return e + n;
|
|
637
|
+
}
|
|
638
|
+
function nt(e, t, n) {
|
|
639
|
+
if (Qe(e)) return t.groupIndices[e.groupIndex] + 1;
|
|
640
|
+
let r = tt(e.index === "LAST" ? n : e.index, t);
|
|
641
|
+
return r = Math.max(0, r, Math.min(n, r)), r;
|
|
642
|
+
}
|
|
643
|
+
function rt(e, t, n, r = 0) {
|
|
644
|
+
return r > 0 && (t = Math.max(t, We(e, r, Ye).offset)), we(Ke(e, t, n, $e), ct);
|
|
645
|
+
}
|
|
646
|
+
function it(e, [t, n, r, i]) {
|
|
647
|
+
t.length > 0 && r("received item sizes", t, U.DEBUG);
|
|
648
|
+
let a = e.sizeTree, o = a, s = 0;
|
|
649
|
+
if (n.length > 0 && K(a) && t.length === 2) {
|
|
650
|
+
let e = t[0].size, r = t[1].size;
|
|
651
|
+
o = n.reduce((t, n) => q(q(t, n, e), n + 1, r), o);
|
|
652
|
+
} else [o, s] = Ze(o, t);
|
|
653
|
+
if (o === a) return e;
|
|
654
|
+
let { lastIndex: c, lastOffset: l, lastSize: u, offsetTree: d } = st(e.offsetTree, s, o, i);
|
|
655
|
+
return {
|
|
656
|
+
groupIndices: n,
|
|
657
|
+
groupOffsetTree: n.reduce((e, t) => q(e, t, et(t, d, i)), De()),
|
|
658
|
+
lastIndex: c,
|
|
659
|
+
lastOffset: l,
|
|
660
|
+
lastSize: u,
|
|
661
|
+
offsetTree: d,
|
|
662
|
+
sizeTree: o
|
|
663
|
+
};
|
|
664
|
+
}
|
|
665
|
+
function at(e) {
|
|
666
|
+
return Ae(e).map(({ k: e, v: t }, n, r) => {
|
|
667
|
+
let i = r[n + 1];
|
|
668
|
+
return {
|
|
669
|
+
endIndex: i === void 0 ? Infinity : i.k - 1,
|
|
670
|
+
size: t,
|
|
671
|
+
startIndex: e
|
|
672
|
+
};
|
|
673
|
+
});
|
|
674
|
+
}
|
|
675
|
+
function ot(e, t) {
|
|
676
|
+
let n = 0, r = 0;
|
|
677
|
+
for (; n < e;) n += t[r + 1] - t[r] - 1, r++;
|
|
678
|
+
return r - (n === e ? 0 : 1);
|
|
679
|
+
}
|
|
680
|
+
function st(e, t, n, r) {
|
|
681
|
+
let i = e, a = 0, o = 0, s = 0, c = 0;
|
|
682
|
+
if (t !== 0) {
|
|
683
|
+
c = Ge(i, t - 1, Ye), s = i[c].offset;
|
|
684
|
+
let e = Ee(n, t - 1);
|
|
685
|
+
a = e[0], o = e[1], i.length && i[c].size === Ee(n, t)[1] && --c, i = i.slice(0, c + 1);
|
|
686
|
+
} else i = [];
|
|
687
|
+
for (let { start: e, value: c } of Oe(n, t, Infinity)) {
|
|
688
|
+
let t = e - a, n = t * o + s + t * r;
|
|
689
|
+
i.push({
|
|
690
|
+
index: e,
|
|
691
|
+
offset: n,
|
|
692
|
+
size: c
|
|
693
|
+
}), a = e, s = n, o = c;
|
|
694
|
+
}
|
|
695
|
+
return {
|
|
696
|
+
lastIndex: a,
|
|
697
|
+
lastOffset: s,
|
|
698
|
+
lastSize: o,
|
|
699
|
+
offsetTree: i
|
|
700
|
+
};
|
|
701
|
+
}
|
|
702
|
+
function ct(e) {
|
|
703
|
+
return {
|
|
704
|
+
index: e.index,
|
|
705
|
+
value: e
|
|
706
|
+
};
|
|
707
|
+
}
|
|
708
|
+
function lt(e) {
|
|
709
|
+
let { endIndex: t, size: n, startIndex: r } = e;
|
|
710
|
+
return (e) => e.start === r && (e.end === t || e.end === Infinity) && e.value === n;
|
|
711
|
+
}
|
|
712
|
+
var ut = {
|
|
713
|
+
offsetHeight: "height",
|
|
714
|
+
offsetWidth: "width"
|
|
715
|
+
}, dt = B(([{ log: e }, { recalcInProgress: t }]) => {
|
|
716
|
+
let n = R(), r = R(), i = L(r, 0), a = R(), o = R(), s = I(0), c = I([]), l = I(void 0), u = I(void 0), d = I(void 0), f = I(void 0), p = I((e, t) => qe(e, ut[t])), m = I(void 0), h = I(0), g = Xe(), _ = L(N(n, F(c, e, h), P(it, g), A()), g), v = L(N(c, A(), P((e, t) => ({
|
|
717
|
+
current: t,
|
|
718
|
+
prev: e.current
|
|
719
|
+
}), {
|
|
720
|
+
current: [],
|
|
721
|
+
prev: []
|
|
722
|
+
}), M(({ prev: e }) => e)), []);
|
|
723
|
+
E(N(c, j((e) => e.length > 0), F(_, h), M(([e, t, n]) => {
|
|
724
|
+
let r = e.reduce((e, r, i) => q(e, r, et(r, t.offsetTree, n) || i), De());
|
|
725
|
+
return {
|
|
726
|
+
...t,
|
|
727
|
+
groupIndices: e,
|
|
728
|
+
groupOffsetTree: r
|
|
729
|
+
};
|
|
730
|
+
})), _), E(N(r, F(_), j(([e, { lastIndex: t }]) => e < t), M(([e, { lastIndex: t, lastSize: n }]) => [{
|
|
731
|
+
endIndex: t,
|
|
732
|
+
size: n,
|
|
733
|
+
startIndex: e
|
|
734
|
+
}])), n), E(l, u);
|
|
735
|
+
let y = L(N(l, M((e) => e === void 0)), !0);
|
|
736
|
+
E(N(u, j((e) => e !== void 0 && K(T(_).sizeTree)), M((e) => {
|
|
737
|
+
let t = T(d), n = T(c).length > 0;
|
|
738
|
+
return t !== void 0 && t !== 0 ? n ? [{
|
|
739
|
+
endIndex: 0,
|
|
740
|
+
size: t,
|
|
741
|
+
startIndex: 0
|
|
742
|
+
}, {
|
|
743
|
+
endIndex: 1,
|
|
744
|
+
size: e,
|
|
745
|
+
startIndex: 1
|
|
746
|
+
}] : [] : [{
|
|
747
|
+
endIndex: 0,
|
|
748
|
+
size: e,
|
|
749
|
+
startIndex: 0
|
|
750
|
+
}];
|
|
751
|
+
})), n), E(N(f, j((e) => e !== void 0 && e.length > 0 && K(T(_).sizeTree)), M((e) => {
|
|
752
|
+
let t = [], n = e[0], r = 0;
|
|
753
|
+
for (let i = 1; i < e.length; i++) {
|
|
754
|
+
let a = e[i];
|
|
755
|
+
a !== n && (t.push({
|
|
756
|
+
endIndex: i - 1,
|
|
757
|
+
size: n,
|
|
758
|
+
startIndex: r
|
|
759
|
+
}), n = a, r = i);
|
|
760
|
+
}
|
|
761
|
+
return t.push({
|
|
762
|
+
endIndex: e.length - 1,
|
|
763
|
+
size: n,
|
|
764
|
+
startIndex: r
|
|
765
|
+
}), t;
|
|
766
|
+
})), n), E(N(c, F(d, u), j(([, e, t]) => e !== void 0 && t !== void 0), M(([e, t, n]) => {
|
|
767
|
+
let r = [];
|
|
768
|
+
for (let i = 0; i < e.length; i++) {
|
|
769
|
+
let a = e[i], o = e[i + 1];
|
|
770
|
+
r.push({
|
|
771
|
+
startIndex: a,
|
|
772
|
+
endIndex: a,
|
|
773
|
+
size: t
|
|
774
|
+
}), o !== void 0 && r.push({
|
|
775
|
+
startIndex: a + 1,
|
|
776
|
+
endIndex: o - 1,
|
|
777
|
+
size: n
|
|
778
|
+
});
|
|
779
|
+
}
|
|
780
|
+
return r;
|
|
781
|
+
})), n);
|
|
782
|
+
let b = z(N(n, F(_), P(({ sizes: e }, [t, n]) => ({
|
|
783
|
+
changed: n !== e,
|
|
784
|
+
sizes: n
|
|
785
|
+
}), {
|
|
786
|
+
changed: !1,
|
|
787
|
+
sizes: g
|
|
788
|
+
}), M((e) => e.changed)));
|
|
789
|
+
S(N(s, P((e, t) => ({
|
|
790
|
+
diff: e.prev - t,
|
|
791
|
+
prev: t
|
|
792
|
+
}), {
|
|
793
|
+
diff: 0,
|
|
794
|
+
prev: 0
|
|
795
|
+
}), M((e) => e.diff)), (e) => {
|
|
796
|
+
let { groupIndices: n } = T(_);
|
|
797
|
+
if (e > 0) C(t, !0), C(a, e + ot(e, n));
|
|
798
|
+
else if (e < 0) {
|
|
799
|
+
let t = T(v);
|
|
800
|
+
t.length > 0 && (e -= ot(-e, t)), C(o, e);
|
|
801
|
+
}
|
|
802
|
+
}), S(N(s, F(e)), ([e, t]) => {
|
|
803
|
+
e < 0 && t("`firstItemIndex` prop should not be set to less than zero. If you don't know the total count, just use a very high value", { firstItemIndex: s }, U.ERROR);
|
|
804
|
+
});
|
|
805
|
+
let x = z(a);
|
|
806
|
+
E(N(a, F(_), M(([e, t]) => {
|
|
807
|
+
let n = t.groupIndices.length > 0, r = [], i = t.lastSize;
|
|
808
|
+
if (n) {
|
|
809
|
+
let n = Te(t.sizeTree, 0), a = 0, o = 0;
|
|
810
|
+
for (; a < e;) {
|
|
811
|
+
let e = t.groupIndices[o], s = t.groupIndices.length === o + 1 ? Infinity : t.groupIndices[o + 1] - e - 1;
|
|
812
|
+
r.push({
|
|
813
|
+
endIndex: e,
|
|
814
|
+
size: n,
|
|
815
|
+
startIndex: e
|
|
816
|
+
}), r.push({
|
|
817
|
+
endIndex: e + 1 + s - 1,
|
|
818
|
+
size: i,
|
|
819
|
+
startIndex: e + 1
|
|
820
|
+
}), o++, a += s + 1;
|
|
821
|
+
}
|
|
822
|
+
let s = Ae(t.sizeTree);
|
|
823
|
+
return a !== e && s.shift(), s.reduce((t, { k: n, v: r }) => {
|
|
824
|
+
let i = t.ranges;
|
|
825
|
+
return t.prevSize !== 0 && (i = [...t.ranges, {
|
|
826
|
+
endIndex: n + e - 1,
|
|
827
|
+
size: t.prevSize,
|
|
828
|
+
startIndex: t.prevIndex
|
|
829
|
+
}]), {
|
|
830
|
+
prevIndex: n + e,
|
|
831
|
+
prevSize: r,
|
|
832
|
+
ranges: i
|
|
833
|
+
};
|
|
834
|
+
}, {
|
|
835
|
+
prevIndex: e,
|
|
836
|
+
prevSize: 0,
|
|
837
|
+
ranges: r
|
|
838
|
+
}).ranges;
|
|
839
|
+
}
|
|
840
|
+
return Ae(t.sizeTree).reduce((t, { k: n, v: r }) => ({
|
|
841
|
+
prevIndex: n + e,
|
|
842
|
+
prevSize: r,
|
|
843
|
+
ranges: [...t.ranges, {
|
|
844
|
+
endIndex: n + e - 1,
|
|
845
|
+
size: t.prevSize,
|
|
846
|
+
startIndex: t.prevIndex
|
|
847
|
+
}]
|
|
848
|
+
}), {
|
|
849
|
+
prevIndex: 0,
|
|
850
|
+
prevSize: i,
|
|
851
|
+
ranges: []
|
|
852
|
+
}).ranges;
|
|
853
|
+
})), n);
|
|
854
|
+
let w = z(N(o, F(_, h), M(([e, { offsetTree: t }, n]) => et(-e, t, n))));
|
|
855
|
+
return E(N(o, F(_, h), M(([e, t, n]) => {
|
|
856
|
+
if (t.groupIndices.length > 0) {
|
|
857
|
+
if (K(t.sizeTree)) return t;
|
|
858
|
+
let r = De(), i = T(v), a = 0, o = 0, s = 0;
|
|
859
|
+
for (; a < -e;) {
|
|
860
|
+
s = i[o];
|
|
861
|
+
let e = i[o + 1] - s - 1;
|
|
862
|
+
o++, a += e + 1;
|
|
863
|
+
}
|
|
864
|
+
if (r = Ae(t.sizeTree).reduce((t, { k: n, v: r }) => q(t, Math.max(0, n + e), r), r), a !== -e) {
|
|
865
|
+
let n = Te(t.sizeTree, s);
|
|
866
|
+
r = q(r, 0, n);
|
|
867
|
+
let i = Ee(t.sizeTree, -e + 1)[1];
|
|
868
|
+
r = q(r, 1, i);
|
|
869
|
+
}
|
|
870
|
+
return {
|
|
871
|
+
...t,
|
|
872
|
+
sizeTree: r,
|
|
873
|
+
...st(t.offsetTree, 0, r, n)
|
|
874
|
+
};
|
|
875
|
+
}
|
|
876
|
+
let r = Ae(t.sizeTree).reduce((t, { k: n, v: r }) => q(t, Math.max(0, n + e), r), De());
|
|
877
|
+
return {
|
|
878
|
+
...t,
|
|
879
|
+
sizeTree: r,
|
|
880
|
+
...st(t.offsetTree, 0, r, n)
|
|
881
|
+
};
|
|
882
|
+
})), _), {
|
|
883
|
+
beforeUnshiftWith: x,
|
|
884
|
+
data: m,
|
|
885
|
+
defaultItemSize: u,
|
|
886
|
+
firstItemIndex: s,
|
|
887
|
+
fixedItemSize: l,
|
|
888
|
+
fixedGroupSize: d,
|
|
889
|
+
gap: h,
|
|
890
|
+
groupIndices: c,
|
|
891
|
+
heightEstimates: f,
|
|
892
|
+
itemSize: p,
|
|
893
|
+
listRefresh: b,
|
|
894
|
+
shiftWith: o,
|
|
895
|
+
shiftWithOffset: w,
|
|
896
|
+
sizeRanges: n,
|
|
897
|
+
sizes: _,
|
|
898
|
+
statefulTotalCount: i,
|
|
899
|
+
totalCount: r,
|
|
900
|
+
trackItemSizes: y,
|
|
901
|
+
unshiftWith: a
|
|
902
|
+
};
|
|
903
|
+
}, x(W, Ue), { singleton: !0 });
|
|
904
|
+
function ft(e) {
|
|
905
|
+
return e.reduce((e, t) => (e.groupIndices.push(e.totalCount), e.totalCount += t + 1, e), {
|
|
906
|
+
groupIndices: [],
|
|
907
|
+
totalCount: 0
|
|
908
|
+
});
|
|
909
|
+
}
|
|
910
|
+
var pt = B(([{ groupIndices: e, sizes: t, totalCount: n }, { headerHeight: r, scrollTop: i }]) => {
|
|
911
|
+
let a = R(), o = R(), s = z(N(a, M(ft)));
|
|
912
|
+
return E(N(s, M((e) => e.totalCount)), n), E(N(s, M((e) => e.groupIndices)), e), E(N(V(i, t, r), j(([e, t]) => Je(t)), M(([e, t, n]) => Ee(t.groupOffsetTree, Math.max(e - n, 0), "v")[0]), A(), M((e) => [e])), o), {
|
|
913
|
+
groupCounts: a,
|
|
914
|
+
topItemsIndexes: o
|
|
915
|
+
};
|
|
916
|
+
}, x(dt, G)), mt = B(([{ log: e }]) => {
|
|
917
|
+
let t = I(!1), n = z(N(t, j((e) => e), A()));
|
|
918
|
+
return S(t, (t) => {
|
|
919
|
+
t && T(e)("props updated", {}, U.DEBUG);
|
|
920
|
+
}), {
|
|
921
|
+
didMount: n,
|
|
922
|
+
propsReady: t
|
|
923
|
+
};
|
|
924
|
+
}, x(W), { singleton: !0 }), ht = typeof document < "u" && "scrollBehavior" in document.documentElement.style;
|
|
925
|
+
function gt(e) {
|
|
926
|
+
let t = typeof e == "number" ? { index: e } : e;
|
|
927
|
+
return t.align || (t.align = "start"), (!t.behavior || !ht) && (t.behavior = "auto"), t.offset === void 0 && (t.offset = 0), t;
|
|
928
|
+
}
|
|
929
|
+
var _t = B(([{ gap: e, listRefresh: t, sizes: n, totalCount: r }, { fixedFooterHeight: i, fixedHeaderHeight: a, footerHeight: o, headerHeight: s, scrollingInProgress: c, scrollTo: l, smoothScrollTargetReached: u, viewportHeight: d }, { log: f }]) => {
|
|
930
|
+
let p = R(), m = R(), h = I(0), g = null, _ = null, v = null;
|
|
931
|
+
function y() {
|
|
932
|
+
g !== null && (g(), g = null), v !== null && (v(), v = null), _ && (clearTimeout(_), _ = null), C(c, !1);
|
|
933
|
+
}
|
|
934
|
+
return E(N(p, F(n, d, r, h, s, o, f), F(e, a, i), M(([[e, n, r, i, a, o, s, l], d, f, h]) => {
|
|
935
|
+
let b = gt(e), { align: x, behavior: w, offset: T } = b, E = i - 1, O = nt(b, n, E), k = et(O, n.offsetTree, d) + o;
|
|
936
|
+
x === "end" ? (k += f + Ee(n.sizeTree, O)[1] - r + h, O === E && (k += s)) : x === "center" ? k += (f + Ee(n.sizeTree, O)[1] - r + h) / 2 : k -= a, T !== void 0 && T !== 0 && (k += T);
|
|
937
|
+
let A = (t) => {
|
|
938
|
+
y(), t ? (l("retrying to scroll to", { location: e }, U.DEBUG), C(p, e)) : (C(m, !0), l("list did not change, scroll successful", {}, U.DEBUG));
|
|
939
|
+
};
|
|
940
|
+
if (y(), w === "smooth") {
|
|
941
|
+
let e = !1;
|
|
942
|
+
v = S(t, (t) => {
|
|
943
|
+
e = e || t;
|
|
944
|
+
}), g = D(u, () => {
|
|
945
|
+
A(e);
|
|
946
|
+
});
|
|
947
|
+
} else g = D(N(t, vt(150)), A);
|
|
948
|
+
return _ = setTimeout(() => {
|
|
949
|
+
y();
|
|
950
|
+
}, 1200), C(c, !0), l("scrolling from index to", {
|
|
951
|
+
behavior: w,
|
|
952
|
+
index: O,
|
|
953
|
+
top: k
|
|
954
|
+
}, U.DEBUG), {
|
|
955
|
+
behavior: w,
|
|
956
|
+
top: k
|
|
957
|
+
};
|
|
958
|
+
})), l), {
|
|
959
|
+
scrollTargetReached: m,
|
|
960
|
+
scrollToIndex: p,
|
|
961
|
+
topListHeight: h
|
|
962
|
+
};
|
|
963
|
+
}, x(dt, G, W), { singleton: !0 });
|
|
964
|
+
function vt(e) {
|
|
965
|
+
return (t) => {
|
|
966
|
+
let n = setTimeout(() => {
|
|
967
|
+
t(!1);
|
|
968
|
+
}, e);
|
|
969
|
+
return (e) => {
|
|
970
|
+
e && (t(!0), clearTimeout(n));
|
|
971
|
+
};
|
|
972
|
+
};
|
|
973
|
+
}
|
|
974
|
+
function yt(e, t) {
|
|
975
|
+
e === 0 ? t() : requestAnimationFrame(() => {
|
|
976
|
+
yt(e - 1, t);
|
|
977
|
+
});
|
|
978
|
+
}
|
|
979
|
+
function bt(e, t) {
|
|
980
|
+
let n = t - 1;
|
|
981
|
+
return typeof e == "number" ? e : e.index === "LAST" ? n : e.index;
|
|
982
|
+
}
|
|
983
|
+
var xt = B(([{ defaultItemSize: e, listRefresh: t, sizes: n }, { scrollTop: r }, { scrollTargetReached: i, scrollToIndex: a }, { didMount: o }]) => {
|
|
984
|
+
let s = I(!0), c = I(0), l = I(!0);
|
|
985
|
+
return E(N(o, F(c), j(([e, t]) => t !== 0), ee(!1)), s), E(N(o, F(c), j(([e, t]) => t !== 0), ee(!1)), l), S(N(V(t, o), F(s, n, e, l), j(([[, e], t, { sizeTree: n }, r, i]) => e && (!K(n) || g(r)) && !t && !i), F(c)), ([, e]) => {
|
|
986
|
+
D(i, () => {
|
|
987
|
+
C(l, !0);
|
|
988
|
+
}), yt(4, () => {
|
|
989
|
+
D(r, () => {
|
|
990
|
+
C(s, !0);
|
|
991
|
+
}), C(a, e);
|
|
992
|
+
});
|
|
993
|
+
}), {
|
|
994
|
+
initialItemFinalLocationReached: l,
|
|
995
|
+
initialTopMostItemIndex: c,
|
|
996
|
+
scrolledToInitialItem: s
|
|
997
|
+
};
|
|
998
|
+
}, x(dt, G, _t, mt), { singleton: !0 });
|
|
999
|
+
function St(e, t) {
|
|
1000
|
+
return Math.abs(e - t) < 1.01;
|
|
1001
|
+
}
|
|
1002
|
+
var Ct = "up", wt = "down", Tt = "none", Et = {
|
|
1003
|
+
atBottom: !1,
|
|
1004
|
+
notAtBottomBecause: "NOT_SHOWING_LAST_ITEM",
|
|
1005
|
+
state: {
|
|
1006
|
+
offsetBottom: 0,
|
|
1007
|
+
scrollHeight: 0,
|
|
1008
|
+
scrollTop: 0,
|
|
1009
|
+
viewportHeight: 0
|
|
1010
|
+
}
|
|
1011
|
+
}, Dt = 0, Ot = B(([{ footerHeight: e, headerHeight: t, scrollBy: n, scrollContainerState: r, scrollTop: i, viewportHeight: a }]) => {
|
|
1012
|
+
let o = I(!1), s = I(!0), c = R(), l = R(), u = I(4), d = I(Dt), f = L(N(se(N(H(i), te(1), ee(!0)), N(H(i), te(1), ee(!1), O(100))), A()), !1), p = L(N(se(N(n, ee(!0)), N(n, ee(!1), O(200))), A()), !1);
|
|
1013
|
+
E(N(V(H(i), H(d)), M(([e, t]) => e <= t), A()), s), E(N(s, ne(50)), l);
|
|
1014
|
+
let m = z(N(V(r, H(a), H(t), H(e), H(u)), P((e, [{ scrollHeight: t, scrollTop: n }, r, i, a, o]) => {
|
|
1015
|
+
let s = n + r - t > -o, c = {
|
|
1016
|
+
scrollHeight: t,
|
|
1017
|
+
scrollTop: n,
|
|
1018
|
+
viewportHeight: r
|
|
1019
|
+
};
|
|
1020
|
+
if (s) {
|
|
1021
|
+
let t, r;
|
|
1022
|
+
return n > e.state.scrollTop ? (t = "SCROLLED_DOWN", r = e.state.scrollTop - n) : (t = "SIZE_DECREASED", r = e.state.scrollTop - n || e.scrollTopDelta), {
|
|
1023
|
+
atBottom: !0,
|
|
1024
|
+
atBottomBecause: t,
|
|
1025
|
+
scrollTopDelta: r,
|
|
1026
|
+
state: c
|
|
1027
|
+
};
|
|
1028
|
+
}
|
|
1029
|
+
let l;
|
|
1030
|
+
return l = c.scrollHeight > e.state.scrollHeight ? "SIZE_INCREASED" : r < e.state.viewportHeight ? "VIEWPORT_HEIGHT_DECREASING" : n < e.state.scrollTop ? "SCROLLING_UPWARDS" : "NOT_FULLY_SCROLLED_TO_LAST_ITEM_BOTTOM", {
|
|
1031
|
+
atBottom: !1,
|
|
1032
|
+
notAtBottomBecause: l,
|
|
1033
|
+
state: c
|
|
1034
|
+
};
|
|
1035
|
+
}, Et), A((e, t) => e !== void 0 && e.atBottom === t.atBottom))), h = L(N(r, P((e, { scrollHeight: t, scrollTop: n, viewportHeight: r }) => {
|
|
1036
|
+
if (!St(e.scrollHeight, t)) {
|
|
1037
|
+
let i = t - (n + r) < 1;
|
|
1038
|
+
return e.scrollTop !== n && i ? {
|
|
1039
|
+
changed: !0,
|
|
1040
|
+
jump: e.scrollTop - n,
|
|
1041
|
+
scrollHeight: t,
|
|
1042
|
+
scrollTop: n
|
|
1043
|
+
} : {
|
|
1044
|
+
changed: !0,
|
|
1045
|
+
jump: 0,
|
|
1046
|
+
scrollHeight: t,
|
|
1047
|
+
scrollTop: n
|
|
1048
|
+
};
|
|
1049
|
+
}
|
|
1050
|
+
return {
|
|
1051
|
+
changed: !1,
|
|
1052
|
+
jump: 0,
|
|
1053
|
+
scrollHeight: t,
|
|
1054
|
+
scrollTop: n
|
|
1055
|
+
};
|
|
1056
|
+
}, {
|
|
1057
|
+
changed: !1,
|
|
1058
|
+
jump: 0,
|
|
1059
|
+
scrollHeight: 0,
|
|
1060
|
+
scrollTop: 0
|
|
1061
|
+
}), j((e) => e.changed), M((e) => e.jump)), 0);
|
|
1062
|
+
E(N(m, M((e) => e.atBottom)), o), E(N(o, ne(50)), c);
|
|
1063
|
+
let g = I(wt);
|
|
1064
|
+
E(N(r, M(({ scrollTop: e }) => e), A(), P((e, t) => T(p) ? {
|
|
1065
|
+
direction: e.direction,
|
|
1066
|
+
prevScrollTop: t
|
|
1067
|
+
} : {
|
|
1068
|
+
direction: t < e.prevScrollTop ? Ct : wt,
|
|
1069
|
+
prevScrollTop: t
|
|
1070
|
+
}, {
|
|
1071
|
+
direction: wt,
|
|
1072
|
+
prevScrollTop: 0
|
|
1073
|
+
}), M((e) => e.direction)), g), E(N(r, ne(50), ee(Tt)), g);
|
|
1074
|
+
let _ = I(0);
|
|
1075
|
+
return E(N(f, j((e) => !e), ee(0)), _), E(N(i, ne(100), F(f), j(([e, t]) => t), P(([e, t], [n]) => [t, n], [0, 0]), M(([e, t]) => t - e)), _), {
|
|
1076
|
+
atBottomState: m,
|
|
1077
|
+
atBottomStateChange: c,
|
|
1078
|
+
atBottomThreshold: u,
|
|
1079
|
+
atTopStateChange: l,
|
|
1080
|
+
atTopThreshold: d,
|
|
1081
|
+
isAtBottom: o,
|
|
1082
|
+
isAtTop: s,
|
|
1083
|
+
isScrolling: f,
|
|
1084
|
+
lastJumpDueToItemResize: h,
|
|
1085
|
+
scrollDirection: g,
|
|
1086
|
+
scrollVelocity: _
|
|
1087
|
+
};
|
|
1088
|
+
}, x(G)), kt = "top", At = "bottom", jt = "none";
|
|
1089
|
+
function Mt(e, t, n) {
|
|
1090
|
+
return typeof e == "number" ? n === Ct && t === kt || n === wt && t === At ? e : 0 : n === Ct ? t === kt ? e.main : e.reverse : t === At ? e.main : e.reverse;
|
|
1091
|
+
}
|
|
1092
|
+
function Nt(e, t) {
|
|
1093
|
+
var n;
|
|
1094
|
+
return typeof e == "number" ? e : (n = e[t]) == null ? 0 : n;
|
|
1095
|
+
}
|
|
1096
|
+
var Pt = B(([{ deviation: e, fixedHeaderHeight: t, headerHeight: n, scrollTop: r, viewportHeight: i }]) => {
|
|
1097
|
+
let a = R(), o = I(0), s = I(0), c = I(0);
|
|
1098
|
+
return {
|
|
1099
|
+
increaseViewportBy: s,
|
|
1100
|
+
listBoundary: a,
|
|
1101
|
+
overscan: c,
|
|
1102
|
+
topListHeight: o,
|
|
1103
|
+
visibleRange: L(N(V(H(r), H(i), H(n), H(a, He), H(c), H(o), H(t), H(e), H(s)), M(([e, t, n, [r, i], a, o, s, c, l]) => {
|
|
1104
|
+
let u = e - c, d = o + s, f = Math.max(n - u, 0), p = jt, m = Nt(l, kt), h = Nt(l, At);
|
|
1105
|
+
return r -= c, r += n + s, i += n + s, i -= c, r > e + d - m && (p = Ct), i < e - f + t + h && (p = wt), p === jt ? null : [Math.max(u - n - Mt(a, kt, p) - m, 0), u - f - s + t + Mt(a, At, p) + h];
|
|
1106
|
+
}), j((e) => e !== null), A(He)), [0, 0])
|
|
1107
|
+
};
|
|
1108
|
+
}, x(G), { singleton: !0 });
|
|
1109
|
+
function Ft(e, t, n) {
|
|
1110
|
+
if (Je(t)) {
|
|
1111
|
+
let r = tt(e, t);
|
|
1112
|
+
return [{
|
|
1113
|
+
index: Ee(t.groupOffsetTree, r)[0],
|
|
1114
|
+
offset: 0,
|
|
1115
|
+
size: 0
|
|
1116
|
+
}, {
|
|
1117
|
+
data: n == null ? void 0 : n[0],
|
|
1118
|
+
index: r,
|
|
1119
|
+
offset: 0,
|
|
1120
|
+
size: 0
|
|
1121
|
+
}];
|
|
1122
|
+
}
|
|
1123
|
+
return [{
|
|
1124
|
+
data: n == null ? void 0 : n[0],
|
|
1125
|
+
index: e,
|
|
1126
|
+
offset: 0,
|
|
1127
|
+
size: 0
|
|
1128
|
+
}];
|
|
1129
|
+
}
|
|
1130
|
+
var It = {
|
|
1131
|
+
bottom: 0,
|
|
1132
|
+
firstItemIndex: 0,
|
|
1133
|
+
items: [],
|
|
1134
|
+
offsetBottom: 0,
|
|
1135
|
+
offsetTop: 0,
|
|
1136
|
+
top: 0,
|
|
1137
|
+
topItems: [],
|
|
1138
|
+
topListHeight: 0,
|
|
1139
|
+
totalCount: 0
|
|
1140
|
+
};
|
|
1141
|
+
function Lt(e, t, n, r, i, a) {
|
|
1142
|
+
let { lastIndex: o, lastOffset: s, lastSize: c } = i, l = 0, u = 0;
|
|
1143
|
+
if (e.length > 0) {
|
|
1144
|
+
l = e[0].offset;
|
|
1145
|
+
let t = e[e.length - 1];
|
|
1146
|
+
u = t.offset + t.size;
|
|
1147
|
+
}
|
|
1148
|
+
let d = n - o, f = s + d * c + (d - 1) * r, p = l, m = f - u;
|
|
1149
|
+
return {
|
|
1150
|
+
bottom: u,
|
|
1151
|
+
firstItemIndex: a,
|
|
1152
|
+
items: zt(e, i, a),
|
|
1153
|
+
offsetBottom: m,
|
|
1154
|
+
offsetTop: l,
|
|
1155
|
+
top: p,
|
|
1156
|
+
topItems: zt(t, i, a),
|
|
1157
|
+
topListHeight: t.reduce((e, t) => t.size + e, 0),
|
|
1158
|
+
totalCount: n
|
|
1159
|
+
};
|
|
1160
|
+
}
|
|
1161
|
+
function Rt(e, t, n, r, i, a) {
|
|
1162
|
+
let o = 0;
|
|
1163
|
+
if (n.groupIndices.length > 0) for (let t of n.groupIndices) {
|
|
1164
|
+
if (t - o >= e) break;
|
|
1165
|
+
o++;
|
|
1166
|
+
}
|
|
1167
|
+
let s = e + o, c = bt(t, s);
|
|
1168
|
+
return Lt(Array.from({ length: s }).map((e, t) => ({
|
|
1169
|
+
data: a[t + c],
|
|
1170
|
+
index: t + c,
|
|
1171
|
+
offset: 0,
|
|
1172
|
+
size: 0
|
|
1173
|
+
})), [], s, i, n, r);
|
|
1174
|
+
}
|
|
1175
|
+
function zt(e, t, n) {
|
|
1176
|
+
if (e.length === 0) return [];
|
|
1177
|
+
if (!Je(t)) return e.map((e) => ({
|
|
1178
|
+
...e,
|
|
1179
|
+
index: e.index + n,
|
|
1180
|
+
originalIndex: e.index
|
|
1181
|
+
}));
|
|
1182
|
+
let r = e[0].index, i = e[e.length - 1].index, a = [], o = Oe(t.groupOffsetTree, r, i), s, c = 0;
|
|
1183
|
+
for (let r of e) {
|
|
1184
|
+
(!s || s.end < r.index) && (s = o.shift(), c = t.groupIndices.indexOf(s.start));
|
|
1185
|
+
let e;
|
|
1186
|
+
e = r.index === s.start ? {
|
|
1187
|
+
index: c,
|
|
1188
|
+
type: "group"
|
|
1189
|
+
} : {
|
|
1190
|
+
groupIndex: c,
|
|
1191
|
+
index: r.index - (c + 1) + n
|
|
1192
|
+
}, a.push({
|
|
1193
|
+
...e,
|
|
1194
|
+
data: r.data,
|
|
1195
|
+
offset: r.offset,
|
|
1196
|
+
originalIndex: r.index,
|
|
1197
|
+
size: r.size
|
|
1198
|
+
});
|
|
1199
|
+
}
|
|
1200
|
+
return a;
|
|
1201
|
+
}
|
|
1202
|
+
function Bt(e, t) {
|
|
1203
|
+
var n;
|
|
1204
|
+
return e === void 0 ? 0 : typeof e == "number" ? e : (n = e[t]) == null ? 0 : n;
|
|
1205
|
+
}
|
|
1206
|
+
var Vt = B(([{ data: e, firstItemIndex: t, gap: n, sizes: r, totalCount: i }, a, { listBoundary: o, topListHeight: s, visibleRange: c }, { initialTopMostItemIndex: l, scrolledToInitialItem: u }, { topListHeight: d }, f, { didMount: p }, { recalcInProgress: m }]) => {
|
|
1207
|
+
let h = I([]), _ = I(0), v = R(), b = I(0);
|
|
1208
|
+
E(a.topItemsIndexes, h);
|
|
1209
|
+
let x = L(N(V(p, m, H(c, He), H(i), H(r), H(l), u, H(h), H(t), H(n), H(b), e), j(([e, t, , n, , , , , , , , r]) => {
|
|
1210
|
+
let i = r !== void 0 && r.length !== n;
|
|
1211
|
+
return e && !t && !i;
|
|
1212
|
+
}), M(([, , [e, t], n, r, i, a, o, s, c, l, u]) => {
|
|
1213
|
+
let d = r, { offsetTree: f, sizeTree: p } = d, m = T(_);
|
|
1214
|
+
if (n === 0) return {
|
|
1215
|
+
...It,
|
|
1216
|
+
totalCount: n
|
|
1217
|
+
};
|
|
1218
|
+
if (e === 0 && t === 0) return m === 0 ? {
|
|
1219
|
+
...It,
|
|
1220
|
+
totalCount: n
|
|
1221
|
+
} : Rt(m, i, r, s, c, u || []);
|
|
1222
|
+
if (K(p)) return m > 0 ? null : Lt(Ft(bt(i, n), d, u), [], n, c, d, s);
|
|
1223
|
+
let h = [];
|
|
1224
|
+
if (o.length > 0) {
|
|
1225
|
+
let e = o[0], t = o[o.length - 1], n = 0;
|
|
1226
|
+
for (let r of Oe(p, e, t)) {
|
|
1227
|
+
let i = r.value, a = Math.max(r.start, e), o = Math.min(r.end, t);
|
|
1228
|
+
for (let e = a; e <= o; e++) h.push({
|
|
1229
|
+
data: u == null ? void 0 : u[e],
|
|
1230
|
+
index: e,
|
|
1231
|
+
offset: n,
|
|
1232
|
+
size: i
|
|
1233
|
+
}), n += i;
|
|
1234
|
+
}
|
|
1235
|
+
}
|
|
1236
|
+
if (!a) return Lt([], h, n, c, d, s);
|
|
1237
|
+
let g = o.length > 0 ? o[o.length - 1] + 1 : 0, v = rt(f, e, t, g);
|
|
1238
|
+
if (v.length === 0) return null;
|
|
1239
|
+
let b = n - 1, x = y([], (n) => {
|
|
1240
|
+
for (let r of v) {
|
|
1241
|
+
let i = r.value, a = i.offset, o = r.start, s = i.size;
|
|
1242
|
+
if (i.offset < e) {
|
|
1243
|
+
o += Math.floor((e - i.offset + c) / (s + c));
|
|
1244
|
+
let t = o - r.start;
|
|
1245
|
+
a += t * s + t * c;
|
|
1246
|
+
}
|
|
1247
|
+
o < g && (a += (g - o) * s, o = g);
|
|
1248
|
+
let l = Math.min(r.end, b);
|
|
1249
|
+
for (let e = o; e <= l && !(a >= t); e++) n.push({
|
|
1250
|
+
data: u == null ? void 0 : u[e],
|
|
1251
|
+
index: e,
|
|
1252
|
+
offset: a,
|
|
1253
|
+
size: s
|
|
1254
|
+
}), a += s + c;
|
|
1255
|
+
}
|
|
1256
|
+
}), S = Bt(l, kt), C = Bt(l, At);
|
|
1257
|
+
if (x.length > 0 && (S > 0 || C > 0)) {
|
|
1258
|
+
let e = x[0], t = x[x.length - 1];
|
|
1259
|
+
if (S > 0 && e.index > g) {
|
|
1260
|
+
let t = Math.min(S, e.index - g), n = [], r = e.offset;
|
|
1261
|
+
for (let i = e.index - 1; i >= e.index - t; i--) {
|
|
1262
|
+
var w, E;
|
|
1263
|
+
let t = (w = (E = Oe(p, i, i)[0]) == null ? void 0 : E.value) == null ? e.size : w;
|
|
1264
|
+
r -= t + c, n.unshift({
|
|
1265
|
+
data: u == null ? void 0 : u[i],
|
|
1266
|
+
index: i,
|
|
1267
|
+
offset: r,
|
|
1268
|
+
size: t
|
|
1269
|
+
});
|
|
1270
|
+
}
|
|
1271
|
+
x.unshift(...n);
|
|
1272
|
+
}
|
|
1273
|
+
if (C > 0 && t.index < b) {
|
|
1274
|
+
let e = Math.min(C, b - t.index), n = t.offset + t.size + c;
|
|
1275
|
+
for (let r = t.index + 1; r <= t.index + e; r++) {
|
|
1276
|
+
var D, O;
|
|
1277
|
+
let e = (D = (O = Oe(p, r, r)[0]) == null ? void 0 : O.value) == null ? t.size : D;
|
|
1278
|
+
x.push({
|
|
1279
|
+
data: u == null ? void 0 : u[r],
|
|
1280
|
+
index: r,
|
|
1281
|
+
offset: n,
|
|
1282
|
+
size: e
|
|
1283
|
+
}), n += e + c;
|
|
1284
|
+
}
|
|
1285
|
+
}
|
|
1286
|
+
}
|
|
1287
|
+
return Lt(x, h, n, c, d, s);
|
|
1288
|
+
}), j((e) => e !== null), A()), It);
|
|
1289
|
+
E(N(e, j(g), M((e) => e == null ? void 0 : e.length)), i), E(N(x, M((e) => e.topListHeight)), d), E(d, s), E(N(x, M((e) => [e.top, e.bottom])), o), E(N(x, M((e) => e.items)), v);
|
|
1290
|
+
let S = z(N(x, j(({ items: e }) => e.length > 0), F(i, e), j(([{ items: e }, t]) => e[e.length - 1].originalIndex === t - 1), M(([, e, t]) => [e - 1, t]), A(He), M(([e]) => e))), C = z(N(x, ne(200), j(({ items: e, topItems: t }) => e.length > 0 && e[0].originalIndex === t.length), M(({ items: e }) => e[0].index), A()));
|
|
1291
|
+
return {
|
|
1292
|
+
endReached: S,
|
|
1293
|
+
initialItemCount: _,
|
|
1294
|
+
itemsRendered: v,
|
|
1295
|
+
listState: x,
|
|
1296
|
+
minOverscanItemCount: b,
|
|
1297
|
+
rangeChanged: z(N(x, j(({ items: e }) => e.length > 0), M(({ items: e }) => {
|
|
1298
|
+
let t = 0, n = e.length - 1;
|
|
1299
|
+
for (; e[t].type === "group" && t < n;) t++;
|
|
1300
|
+
for (; e[n].type === "group" && n > t;) n--;
|
|
1301
|
+
return {
|
|
1302
|
+
endIndex: e[n].index,
|
|
1303
|
+
startIndex: e[t].index
|
|
1304
|
+
};
|
|
1305
|
+
}), A(Ve))),
|
|
1306
|
+
startReached: C,
|
|
1307
|
+
topItemsIndexes: h,
|
|
1308
|
+
...f
|
|
1309
|
+
};
|
|
1310
|
+
}, x(dt, pt, Pt, xt, _t, Ot, mt, Ue), { singleton: !0 }), Ht = B(([{ fixedFooterHeight: e, fixedHeaderHeight: t, footerHeight: n, headerHeight: r }, { listState: i }]) => {
|
|
1311
|
+
let a = R(), o = L(N(V(n, e, r, t, i), M(([e, t, n, r, i]) => e + t + n + r + i.offsetBottom + i.bottom)), 0);
|
|
1312
|
+
return E(H(o), a), {
|
|
1313
|
+
totalListHeight: o,
|
|
1314
|
+
totalListHeightChanged: a
|
|
1315
|
+
};
|
|
1316
|
+
}, x(G, Vt), { singleton: !0 }), Ut = B(([{ viewportHeight: e }, { totalListHeight: t }]) => {
|
|
1317
|
+
let n = I(!1);
|
|
1318
|
+
return {
|
|
1319
|
+
alignToBottom: n,
|
|
1320
|
+
paddingTopAddition: L(N(V(n, e, t), j(([e]) => e), M(([, e, t]) => Math.max(0, e - t)), ne(0), A()), 0)
|
|
1321
|
+
};
|
|
1322
|
+
}, x(G, Ht), { singleton: !0 }), Wt = B(() => ({ context: I(null) })), Gt = ({ itemBottom: e, itemTop: t, locationParams: { align: n, behavior: r, ...i }, viewportBottom: a, viewportTop: o }) => t < o ? {
|
|
1323
|
+
...i,
|
|
1324
|
+
align: n == null ? "start" : n,
|
|
1325
|
+
...r === void 0 ? {} : { behavior: r }
|
|
1326
|
+
} : e > a ? {
|
|
1327
|
+
...i,
|
|
1328
|
+
align: n == null ? "end" : n,
|
|
1329
|
+
...r === void 0 ? {} : { behavior: r }
|
|
1330
|
+
} : null, Kt = B(([{ gap: e, sizes: t, totalCount: n }, { fixedFooterHeight: r, fixedHeaderHeight: i, headerHeight: a, scrollingInProgress: o, scrollTop: s, viewportHeight: c }, { scrollToIndex: l }]) => {
|
|
1331
|
+
let u = R();
|
|
1332
|
+
return E(N(u, F(t, c, n, a, i, r, s), F(e), M(([[e, t, n, r, i, a, s, c], l]) => {
|
|
1333
|
+
let { calculateViewLocation: u = Gt, done: d, ...f } = e, p = nt(e, t, r - 1), m = et(p, t.offsetTree, l) + i + a, h = m + Ee(t.sizeTree, p)[1], g = c + a, _ = u({
|
|
1334
|
+
itemBottom: h,
|
|
1335
|
+
itemTop: m,
|
|
1336
|
+
locationParams: f,
|
|
1337
|
+
viewportBottom: c + n - s,
|
|
1338
|
+
viewportTop: g
|
|
1339
|
+
});
|
|
1340
|
+
return _ === null ? d == null || d() : d && D(N(o, j((e) => !e), te(T(o) ? 1 : 2)), d), _;
|
|
1341
|
+
}), j((e) => e !== null)), l), { scrollIntoView: u };
|
|
1342
|
+
}, x(dt, G, _t, Vt, W), { singleton: !0 });
|
|
1343
|
+
function qt(e) {
|
|
1344
|
+
return e === !1 ? !1 : e === "smooth" ? "smooth" : "auto";
|
|
1345
|
+
}
|
|
1346
|
+
var Jt = (e, t) => typeof e == "function" ? qt(e(t)) : t && qt(e), Yt = B(([{ listRefresh: e, totalCount: t, fixedItemSize: n, data: r }, { atBottomState: i, isAtBottom: a }, { scrollToIndex: o }, { scrolledToInitialItem: s }, { didMount: c, propsReady: l }, { log: u }, { scrollingInProgress: d }, { context: f }, { scrollIntoView: p }]) => {
|
|
1347
|
+
let m = I(!1), h = R(), g = null;
|
|
1348
|
+
function _(e) {
|
|
1349
|
+
C(o, {
|
|
1350
|
+
align: "end",
|
|
1351
|
+
behavior: e,
|
|
1352
|
+
index: "LAST"
|
|
1353
|
+
});
|
|
1354
|
+
}
|
|
1355
|
+
S(N(V(N(H(t), te(1)), c), F(H(m), a, s, d), M(([[e, t], n, r, i, a]) => {
|
|
1356
|
+
let o = t && i, s = "auto";
|
|
1357
|
+
return o && (s = Jt(n, r || a), o = o && s !== !1), {
|
|
1358
|
+
followOutputBehavior: s,
|
|
1359
|
+
shouldFollow: o,
|
|
1360
|
+
totalCount: e
|
|
1361
|
+
};
|
|
1362
|
+
}), j(({ shouldFollow: e }) => e)), ({ followOutputBehavior: t, totalCount: r }) => {
|
|
1363
|
+
g !== null && (g(), g = null), T(n) === void 0 ? g = D(e, () => {
|
|
1364
|
+
T(u)("following output to ", { totalCount: r }, U.DEBUG), _(t), g = null;
|
|
1365
|
+
}) : requestAnimationFrame(() => {
|
|
1366
|
+
T(u)("following output to ", { totalCount: r }, U.DEBUG), _(t);
|
|
1367
|
+
});
|
|
1368
|
+
});
|
|
1369
|
+
function v(e) {
|
|
1370
|
+
let t = D(i, (t) => {
|
|
1371
|
+
e && !t.atBottom && t.notAtBottomBecause === "SIZE_INCREASED" && g === null && (T(u)("scrolling to bottom due to increased size", {}, U.DEBUG), _("auto"));
|
|
1372
|
+
});
|
|
1373
|
+
setTimeout(t, 100);
|
|
1374
|
+
}
|
|
1375
|
+
S(N(V(H(m), t, l), j(([e, , t]) => e !== !1 && t), P(({ value: e }, [, t]) => ({
|
|
1376
|
+
refreshed: e === t,
|
|
1377
|
+
value: t
|
|
1378
|
+
}), {
|
|
1379
|
+
refreshed: !1,
|
|
1380
|
+
value: 0
|
|
1381
|
+
}), j(({ refreshed: e }) => e), F(m, t)), ([, e]) => {
|
|
1382
|
+
T(s) && v(e !== !1);
|
|
1383
|
+
}), S(h, () => {
|
|
1384
|
+
v(T(m) !== !1);
|
|
1385
|
+
}), S(V(H(m), i), ([e, t]) => {
|
|
1386
|
+
e !== !1 && !t.atBottom && t.notAtBottomBecause === "VIEWPORT_HEIGHT_DECREASING" && _("auto");
|
|
1387
|
+
});
|
|
1388
|
+
let y = I(null), b = R();
|
|
1389
|
+
return E(se(N(H(r), M((e) => {
|
|
1390
|
+
var t;
|
|
1391
|
+
return (t = e == null ? void 0 : e.length) == null ? 0 : t;
|
|
1392
|
+
})), N(H(t))), b), S(N(V(N(b, te(1)), c), F(H(y), s, d, f), M(([[e, t], n, r, i, a]) => t && r && (n == null ? void 0 : n({
|
|
1393
|
+
context: a,
|
|
1394
|
+
totalCount: e,
|
|
1395
|
+
scrollingInProgress: i
|
|
1396
|
+
}))), j((e) => !!e), ne(0)), (t) => {
|
|
1397
|
+
g !== null && (g(), g = null), T(n) === void 0 ? g = D(e, () => {
|
|
1398
|
+
T(u)("scrolling into view", {}), C(p, t), g = null;
|
|
1399
|
+
}) : requestAnimationFrame(() => {
|
|
1400
|
+
T(u)("scrolling into view", {}), C(p, t);
|
|
1401
|
+
});
|
|
1402
|
+
}), {
|
|
1403
|
+
autoscrollToBottom: h,
|
|
1404
|
+
followOutput: m,
|
|
1405
|
+
scrollIntoViewOnChange: y
|
|
1406
|
+
};
|
|
1407
|
+
}, x(dt, Ot, _t, xt, mt, W, G, Wt, Kt)), Xt = B(([{ data: e, firstItemIndex: t, gap: n, sizes: r }, { initialTopMostItemIndex: i }, { initialItemCount: a, listState: o }, { didMount: s }]) => (E(N(s, F(a), j(([, e]) => e !== 0), F(i, r, t, n, e), M(([[, e], t, n, r, i, a = []]) => Rt(e, t, n, r, i, a))), o), {}), x(dt, xt, Vt, mt), { singleton: !0 }), Zt = B(([{ didMount: e }, { scrollTo: t }, { listState: n }]) => {
|
|
1408
|
+
let r = I(0);
|
|
1409
|
+
return S(N(e, F(r), j(([, e]) => e !== 0), M(([, e]) => ({ top: e }))), (e) => {
|
|
1410
|
+
D(N(n, te(1), j((e) => e.items.length > 1)), () => {
|
|
1411
|
+
requestAnimationFrame(() => {
|
|
1412
|
+
C(t, e);
|
|
1413
|
+
});
|
|
1414
|
+
});
|
|
1415
|
+
}), { initialScrollTop: r };
|
|
1416
|
+
}, x(mt, G, Vt), { singleton: !0 }), Qt = B(([{ scrollVelocity: e }]) => {
|
|
1417
|
+
let t = I(!1), n = R(), r = I(!1);
|
|
1418
|
+
return E(N(e, F(r, t, n), j(([e, t]) => t !== !1 && t !== void 0), M(([e, t, n, r]) => {
|
|
1419
|
+
let { enter: i, exit: a } = t;
|
|
1420
|
+
if (n) {
|
|
1421
|
+
if (a(e, r)) return !1;
|
|
1422
|
+
} else if (i(e, r)) return !0;
|
|
1423
|
+
return n;
|
|
1424
|
+
}), A()), t), S(N(V(t, e, n), F(r)), ([[e, t, n], r]) => {
|
|
1425
|
+
e && r !== !1 && r !== void 0 && r.change && r.change(t, n);
|
|
1426
|
+
}), {
|
|
1427
|
+
isSeeking: t,
|
|
1428
|
+
scrollSeekConfiguration: r,
|
|
1429
|
+
scrollSeekRangeChanged: n,
|
|
1430
|
+
scrollVelocity: e
|
|
1431
|
+
};
|
|
1432
|
+
}, x(Ot), { singleton: !0 }), $t = B(([{ scrollContainerState: e, scrollTo: t }]) => {
|
|
1433
|
+
let n = R(), r = R(), i = R(), a = I(!1), o = I(void 0);
|
|
1434
|
+
return E(N(V(n, r), M(([{ scrollTop: e, viewportHeight: t }, { offsetTop: n, listHeight: r }]) => ({
|
|
1435
|
+
scrollHeight: r,
|
|
1436
|
+
scrollTop: Math.max(0, e - n),
|
|
1437
|
+
viewportHeight: t
|
|
1438
|
+
}))), e), E(N(t, F(r), M(([e, { offsetTop: t }]) => ({
|
|
1439
|
+
...e,
|
|
1440
|
+
top: e.top + t
|
|
1441
|
+
}))), i), {
|
|
1442
|
+
customScrollParent: o,
|
|
1443
|
+
useWindowScroll: a,
|
|
1444
|
+
windowScrollContainerState: n,
|
|
1445
|
+
windowScrollTo: i,
|
|
1446
|
+
windowViewportRect: r
|
|
1447
|
+
};
|
|
1448
|
+
}, x(G)), en = B(([{ sizeRanges: e, sizes: t }, { headerHeight: n, scrollTop: r }, { initialTopMostItemIndex: i }, { didMount: a }, { useWindowScroll: o, windowScrollContainerState: s, windowViewportRect: c }]) => {
|
|
1449
|
+
let l = R(), u = I(void 0), d = I(null), f = I(null);
|
|
1450
|
+
return E(s, d), E(c, f), S(N(l, F(t, r, o, d, f, n)), ([e, t, n, r, i, a, o]) => {
|
|
1451
|
+
let s = at(t.sizeTree);
|
|
1452
|
+
r && i !== null && a !== null && (n = i.scrollTop - a.offsetTop), n -= o, e({
|
|
1453
|
+
ranges: s,
|
|
1454
|
+
scrollTop: n
|
|
1455
|
+
});
|
|
1456
|
+
}), E(N(u, j(g), M(tn)), i), E(N(a, F(u), j(([, e]) => e !== void 0), A(), M(([, e]) => e.ranges)), e), {
|
|
1457
|
+
getState: l,
|
|
1458
|
+
restoreStateFrom: u
|
|
1459
|
+
};
|
|
1460
|
+
}, x(dt, G, xt, mt, $t));
|
|
1461
|
+
function tn(e) {
|
|
1462
|
+
return {
|
|
1463
|
+
align: "start",
|
|
1464
|
+
index: 0,
|
|
1465
|
+
offset: e.scrollTop
|
|
1466
|
+
};
|
|
1467
|
+
}
|
|
1468
|
+
var nn = B(([{ topItemsIndexes: e }]) => {
|
|
1469
|
+
let t = I(0);
|
|
1470
|
+
return E(N(t, j((e) => e >= 0), M((e) => Array.from({ length: e }).map((e, t) => t))), e), { topItemCount: t };
|
|
1471
|
+
}, x(Vt));
|
|
1472
|
+
function rn(e) {
|
|
1473
|
+
let t = !1, n;
|
|
1474
|
+
return (() => (t || (t = !0, n = e()), n));
|
|
1475
|
+
}
|
|
1476
|
+
var an = rn(() => /iP(ad|od|hone)/i.test(navigator.userAgent) && /WebKit/i.test(navigator.userAgent)), on = B(([{ data: e, defaultItemSize: t, firstItemIndex: n, fixedItemSize: r, fixedGroupSize: i, gap: a, groupIndices: o, heightEstimates: s, itemSize: c, sizeRanges: l, sizes: u, statefulTotalCount: d, totalCount: f, trackItemSizes: p }, { initialItemFinalLocationReached: m, initialTopMostItemIndex: h, scrolledToInitialItem: g }, _, v, y, b, { scrollToIndex: x }, S, { topItemCount: C }, { groupCounts: w }, T]) => {
|
|
1477
|
+
let { listState: D, minOverscanItemCount: O, topItemsIndexes: k, rangeChanged: A, ...j } = b;
|
|
1478
|
+
return E(A, T.scrollSeekRangeChanged), E(N(T.windowViewportRect, M((e) => e.visibleHeight)), _.viewportHeight), {
|
|
1479
|
+
data: e,
|
|
1480
|
+
defaultItemHeight: t,
|
|
1481
|
+
firstItemIndex: n,
|
|
1482
|
+
fixedItemHeight: r,
|
|
1483
|
+
fixedGroupHeight: i,
|
|
1484
|
+
gap: a,
|
|
1485
|
+
groupCounts: w,
|
|
1486
|
+
heightEstimates: s,
|
|
1487
|
+
initialItemFinalLocationReached: m,
|
|
1488
|
+
initialTopMostItemIndex: h,
|
|
1489
|
+
scrolledToInitialItem: g,
|
|
1490
|
+
sizeRanges: l,
|
|
1491
|
+
topItemCount: C,
|
|
1492
|
+
topItemsIndexes: k,
|
|
1493
|
+
totalCount: f,
|
|
1494
|
+
...y,
|
|
1495
|
+
groupIndices: o,
|
|
1496
|
+
itemSize: c,
|
|
1497
|
+
listState: D,
|
|
1498
|
+
minOverscanItemCount: O,
|
|
1499
|
+
scrollToIndex: x,
|
|
1500
|
+
statefulTotalCount: d,
|
|
1501
|
+
trackItemSizes: p,
|
|
1502
|
+
rangeChanged: A,
|
|
1503
|
+
...j,
|
|
1504
|
+
...T,
|
|
1505
|
+
..._,
|
|
1506
|
+
sizes: u,
|
|
1507
|
+
...v
|
|
1508
|
+
};
|
|
1509
|
+
}, x(dt, xt, G, en, Yt, Vt, _t, B(([{ deviation: e, scrollBy: t, scrollingInProgress: n, scrollTop: r }, { isAtBottom: i, isScrolling: a, lastJumpDueToItemResize: o, scrollDirection: s }, { listState: c }, { beforeUnshiftWith: l, gap: u, shiftWithOffset: d, sizes: f }, { log: p }, { recalcInProgress: m }]) => {
|
|
1510
|
+
let h = z(N(c, F(o), P(([, e, t, n], [{ bottom: r, items: i, offsetBottom: a, totalCount: o }, s]) => {
|
|
1511
|
+
let c = r + a, l = 0;
|
|
1512
|
+
return t === o && e.length > 0 && i.length > 0 && (i[0].originalIndex === 0 && e[0].originalIndex === 0 || (l = c - n, l !== 0 && (l += s))), [
|
|
1513
|
+
l,
|
|
1514
|
+
i,
|
|
1515
|
+
o,
|
|
1516
|
+
c
|
|
1517
|
+
];
|
|
1518
|
+
}, [
|
|
1519
|
+
0,
|
|
1520
|
+
[],
|
|
1521
|
+
0,
|
|
1522
|
+
0
|
|
1523
|
+
]), j(([e]) => e !== 0), F(r, s, n, i, p, m), j(([, e, t, n, , , r]) => !r && !n && e !== 0 && t === Ct), M(([[e], , , , , t]) => (t("Upward scrolling compensation", { amount: e }, U.DEBUG), e))));
|
|
1524
|
+
function g(n) {
|
|
1525
|
+
n > 0 ? (C(t, {
|
|
1526
|
+
behavior: "auto",
|
|
1527
|
+
top: -n
|
|
1528
|
+
}), C(e, 0)) : (C(e, 0), C(t, {
|
|
1529
|
+
behavior: "auto",
|
|
1530
|
+
top: -n
|
|
1531
|
+
}));
|
|
1532
|
+
}
|
|
1533
|
+
return S(N(h, F(e, a)), ([t, n, r]) => {
|
|
1534
|
+
r && an() ? C(e, n - t) : g(-t);
|
|
1535
|
+
}), S(N(V(L(a, !1), e, m), j(([e, t, n]) => !e && !n && t !== 0), M(([e, t]) => t), ne(1)), g), E(N(d, M((e) => ({ top: -e }))), t), S(N(l, F(f, u), M(([e, { groupIndices: t, lastSize: n, sizeTree: r }, i]) => {
|
|
1536
|
+
function a(e) {
|
|
1537
|
+
return e * (n + i);
|
|
1538
|
+
}
|
|
1539
|
+
if (t.length === 0) return a(e);
|
|
1540
|
+
let o = 0, s = Te(r, 0), c = 0, l = 0;
|
|
1541
|
+
for (; c < e;) {
|
|
1542
|
+
c++, o += s;
|
|
1543
|
+
let n = t.length === l + 1 ? Infinity : t[l + 1] - t[l] - 1;
|
|
1544
|
+
c + n > e && (o -= s, n = e - c + 1), c += n, o += a(n), l++;
|
|
1545
|
+
}
|
|
1546
|
+
return o;
|
|
1547
|
+
})), (n) => {
|
|
1548
|
+
C(e, n), requestAnimationFrame(() => {
|
|
1549
|
+
C(t, { top: n }), requestAnimationFrame(() => {
|
|
1550
|
+
C(e, 0), C(m, !1);
|
|
1551
|
+
});
|
|
1552
|
+
});
|
|
1553
|
+
}), { deviation: e };
|
|
1554
|
+
}, x(G, Ot, Vt, dt, W, Ue)), nn, pt, B(([e, t, n, r, i, a, o, s, c, l, u]) => ({
|
|
1555
|
+
...e,
|
|
1556
|
+
...t,
|
|
1557
|
+
...n,
|
|
1558
|
+
...r,
|
|
1559
|
+
...i,
|
|
1560
|
+
...a,
|
|
1561
|
+
...o,
|
|
1562
|
+
...s,
|
|
1563
|
+
...c,
|
|
1564
|
+
...l,
|
|
1565
|
+
...u
|
|
1566
|
+
}), x(Pt, Xt, mt, Qt, Ht, Zt, Ut, $t, Kt, W, Wt))));
|
|
1567
|
+
function sn(e, t) {
|
|
1568
|
+
let n = {}, r = {}, i = 0, a = e.length;
|
|
1569
|
+
for (; i < a;) r[e[i]] = 1, i += 1;
|
|
1570
|
+
for (let e in t) Object.hasOwn(r, e) || (n[e] = t[e]);
|
|
1571
|
+
return n;
|
|
1572
|
+
}
|
|
1573
|
+
var cn = typeof document < "u" ? a.useLayoutEffect : a.useEffect;
|
|
1574
|
+
function ln(e, t, n) {
|
|
1575
|
+
let r = Object.keys(t.required || {}), o = Object.keys(t.optional || {}), s = Object.keys(t.methods || {}), c = Object.keys(t.events || {}), l = a.createContext({});
|
|
1576
|
+
function u(e, n) {
|
|
1577
|
+
e.propsReady !== void 0 && C(e.propsReady, !1);
|
|
1578
|
+
for (let i of r) {
|
|
1579
|
+
let r = e[t.required[i]];
|
|
1580
|
+
C(r, n[i]);
|
|
1581
|
+
}
|
|
1582
|
+
for (let r of o) if (r in n) {
|
|
1583
|
+
let i = e[t.optional[r]];
|
|
1584
|
+
C(i, n[r]);
|
|
1585
|
+
}
|
|
1586
|
+
e.propsReady !== void 0 && C(e.propsReady, !0);
|
|
1587
|
+
}
|
|
1588
|
+
function f(e) {
|
|
1589
|
+
return s.reduce((n, r) => (n[r] = (n) => {
|
|
1590
|
+
let i = e[t.methods[r]];
|
|
1591
|
+
C(i, n);
|
|
1592
|
+
}, n), {});
|
|
1593
|
+
}
|
|
1594
|
+
function p(e) {
|
|
1595
|
+
return c.reduce((n, r) => (n[r] = ie(e[t.events[r]]), n), {});
|
|
1596
|
+
}
|
|
1597
|
+
return {
|
|
1598
|
+
Component: a.forwardRef(function(t, s) {
|
|
1599
|
+
let { children: h, ...g } = t, [_] = a.useState(() => y(oe(e), (e) => {
|
|
1600
|
+
u(e, g);
|
|
1601
|
+
})), [v] = a.useState(m(p, _));
|
|
1602
|
+
cn(() => {
|
|
1603
|
+
for (let e of c) e in g && S(v[e], g[e]);
|
|
1604
|
+
return () => {
|
|
1605
|
+
Object.values(v).map(w);
|
|
1606
|
+
};
|
|
1607
|
+
}, [
|
|
1608
|
+
g,
|
|
1609
|
+
v,
|
|
1610
|
+
_
|
|
1611
|
+
]), cn(() => {
|
|
1612
|
+
u(_, g);
|
|
1613
|
+
}), a.useImperativeHandle(s, d(f(_)));
|
|
1614
|
+
let b = n;
|
|
1615
|
+
return /* @__PURE__ */ (0, i.jsx)(l.Provider, {
|
|
1616
|
+
value: _,
|
|
1617
|
+
children: n === void 0 ? h : /* @__PURE__ */ (0, i.jsx)(b, {
|
|
1618
|
+
...sn([
|
|
1619
|
+
...r,
|
|
1620
|
+
...o,
|
|
1621
|
+
...c
|
|
1622
|
+
], g),
|
|
1623
|
+
children: h
|
|
1624
|
+
})
|
|
1625
|
+
});
|
|
1626
|
+
}),
|
|
1627
|
+
useEmitter: (e, t) => {
|
|
1628
|
+
let n = a.useContext(l)[e];
|
|
1629
|
+
cn(() => S(n, t), [t, n]);
|
|
1630
|
+
},
|
|
1631
|
+
useEmitterValue: (e) => {
|
|
1632
|
+
let t = a.useContext(l)[e], n = a.useCallback((e) => S(t, e), [t]);
|
|
1633
|
+
return a.useSyncExternalStore(n, () => T(t), () => T(t));
|
|
1634
|
+
},
|
|
1635
|
+
usePublisher: (e) => {
|
|
1636
|
+
let t = a.useContext(l);
|
|
1637
|
+
return a.useCallback((n) => {
|
|
1638
|
+
C(t[e], n);
|
|
1639
|
+
}, [t, e]);
|
|
1640
|
+
}
|
|
1641
|
+
};
|
|
1642
|
+
}
|
|
1643
|
+
var un = a.createContext(void 0), dn = a.createContext(void 0), fn = "-webkit-sticky", pn = "sticky", mn = rn(() => {
|
|
1644
|
+
if (typeof document > "u") return pn;
|
|
1645
|
+
let e = document.createElement("div");
|
|
1646
|
+
return e.style.position = fn, e.style.position === fn ? fn : pn;
|
|
1647
|
+
}), hn = typeof document < "u" ? a.useLayoutEffect : a.useEffect;
|
|
1648
|
+
function gn(e) {
|
|
1649
|
+
return "self" in e;
|
|
1650
|
+
}
|
|
1651
|
+
function _n(e) {
|
|
1652
|
+
return "body" in e;
|
|
1653
|
+
}
|
|
1654
|
+
function vn(e, t, n, r = v, i, s) {
|
|
1655
|
+
let c = a.useRef(null), l = a.useRef(null), u = a.useRef(null), d = a.useCallback((n) => {
|
|
1656
|
+
let r, i, a, c = n.target;
|
|
1657
|
+
if (_n(c) || gn(c)) {
|
|
1658
|
+
let e = gn(c) ? c : c.defaultView;
|
|
1659
|
+
a = s === !0 ? he(e, e.scrollX) : e.scrollY, r = s === !0 ? e.document.documentElement.scrollWidth : e.document.documentElement.scrollHeight, i = s === !0 ? e.innerWidth : e.innerHeight;
|
|
1660
|
+
} else a = s === !0 ? he(c, c.scrollLeft) : c.scrollTop, r = s === !0 ? c.scrollWidth : c.scrollHeight, i = s === !0 ? c.offsetWidth : c.offsetHeight;
|
|
1661
|
+
let d = () => {
|
|
1662
|
+
e({
|
|
1663
|
+
scrollHeight: r,
|
|
1664
|
+
scrollTop: Math.max(a, 0),
|
|
1665
|
+
viewportHeight: i
|
|
1666
|
+
});
|
|
1667
|
+
};
|
|
1668
|
+
n.suppressFlushSync === !0 ? d() : o.flushSync(d), l.current !== null && (a === l.current || a <= 0 || a === r - i) && (l.current = null, t(!0), u.current && (clearTimeout(u.current), u.current = null));
|
|
1669
|
+
}, [
|
|
1670
|
+
e,
|
|
1671
|
+
t,
|
|
1672
|
+
s
|
|
1673
|
+
]);
|
|
1674
|
+
a.useEffect(() => {
|
|
1675
|
+
let e = i || c.current;
|
|
1676
|
+
return pe(e), r(i || c.current), d({
|
|
1677
|
+
suppressFlushSync: !0,
|
|
1678
|
+
target: e
|
|
1679
|
+
}), e.addEventListener("scroll", d, { passive: !0 }), () => {
|
|
1680
|
+
pe(e), r(null), e.removeEventListener("scroll", d);
|
|
1681
|
+
};
|
|
1682
|
+
}, [
|
|
1683
|
+
c,
|
|
1684
|
+
d,
|
|
1685
|
+
n,
|
|
1686
|
+
r,
|
|
1687
|
+
i
|
|
1688
|
+
]);
|
|
1689
|
+
function f(n) {
|
|
1690
|
+
let r = c.current;
|
|
1691
|
+
if (!r || (s === !0 ? "offsetWidth" in r && r.offsetWidth === 0 : "offsetHeight" in r && r.offsetHeight === 0)) return;
|
|
1692
|
+
let i = n.behavior === "smooth", a, o, d;
|
|
1693
|
+
gn(r) ? (o = Math.max(qe(r.document.documentElement, s === !0 ? "width" : "height"), s === !0 ? r.document.documentElement.scrollWidth : r.document.documentElement.scrollHeight), a = s === !0 ? r.innerWidth : r.innerHeight, d = s === !0 ? he(r, r.scrollX) : r.scrollY) : (o = r[s === !0 ? "scrollWidth" : "scrollHeight"], a = qe(r, s === !0 ? "width" : "height"), d = s === !0 ? he(r, r.scrollLeft) : r.scrollTop);
|
|
1694
|
+
let f = o - a;
|
|
1695
|
+
if (n.top === void 0) {
|
|
1696
|
+
r.scrollTo(n);
|
|
1697
|
+
return;
|
|
1698
|
+
}
|
|
1699
|
+
let p = Math.ceil(Math.max(Math.min(f, n.top), 0));
|
|
1700
|
+
if (n.top = p, St(a, o) || p === d) {
|
|
1701
|
+
e({
|
|
1702
|
+
scrollHeight: o,
|
|
1703
|
+
scrollTop: d,
|
|
1704
|
+
viewportHeight: a
|
|
1705
|
+
}), i && t(!0);
|
|
1706
|
+
return;
|
|
1707
|
+
}
|
|
1708
|
+
i ? (l.current = p, u.current && clearTimeout(u.current), u.current = setTimeout(() => {
|
|
1709
|
+
u.current = null, l.current = null, t(!0);
|
|
1710
|
+
}, 1e3)) : l.current = null, s === !0 && (n = {
|
|
1711
|
+
...n.behavior === void 0 ? {} : { behavior: n.behavior },
|
|
1712
|
+
left: ge(r, p)
|
|
1713
|
+
}), r.scrollTo(n);
|
|
1714
|
+
}
|
|
1715
|
+
function p(e) {
|
|
1716
|
+
s === !0 && (e = {
|
|
1717
|
+
...e.behavior === void 0 ? {} : { behavior: e.behavior },
|
|
1718
|
+
...e.top === void 0 ? {} : { left: ge(c.current, e.top) }
|
|
1719
|
+
}), c.current.scrollBy(e);
|
|
1720
|
+
}
|
|
1721
|
+
return {
|
|
1722
|
+
scrollByCallback: p,
|
|
1723
|
+
scrollerRef: c,
|
|
1724
|
+
scrollToCallback: f
|
|
1725
|
+
};
|
|
1726
|
+
}
|
|
1727
|
+
function yn(e) {
|
|
1728
|
+
return e;
|
|
1729
|
+
}
|
|
1730
|
+
var bn = /* @__PURE__ */ B(([e, t]) => ({
|
|
1731
|
+
...e,
|
|
1732
|
+
...t
|
|
1733
|
+
}), x(on, /* @__PURE__ */ B(() => {
|
|
1734
|
+
let e = I((e) => `Item ${e}`), t = I((e) => `Group ${e}`), n = I({}), r = I(yn), i = I("div"), a = I(v), o = (e, t = null) => L(N(n, M((t) => t[e]), A()), t);
|
|
1735
|
+
return {
|
|
1736
|
+
components: n,
|
|
1737
|
+
computeItemKey: r,
|
|
1738
|
+
EmptyPlaceholder: o("EmptyPlaceholder"),
|
|
1739
|
+
FooterComponent: o("Footer"),
|
|
1740
|
+
GroupComponent: o("Group", "div"),
|
|
1741
|
+
groupContent: t,
|
|
1742
|
+
HeaderComponent: o("Header"),
|
|
1743
|
+
HeaderFooterTag: i,
|
|
1744
|
+
ItemComponent: o("Item", "div"),
|
|
1745
|
+
itemContent: e,
|
|
1746
|
+
ListComponent: o("List", "div"),
|
|
1747
|
+
ScrollerComponent: o("Scroller", "div"),
|
|
1748
|
+
scrollerRef: a,
|
|
1749
|
+
ScrollSeekPlaceholder: o("ScrollSeekPlaceholder"),
|
|
1750
|
+
TopItemListComponent: o("TopItemList")
|
|
1751
|
+
};
|
|
1752
|
+
}))), xn = ({ height: e }) => /* @__PURE__ */ (0, i.jsx)("div", { style: { height: e } }), Sn = {
|
|
1753
|
+
overflowAnchor: "none",
|
|
1754
|
+
position: mn(),
|
|
1755
|
+
zIndex: 1
|
|
1756
|
+
}, Cn = { overflowAnchor: "none" }, wn = {
|
|
1757
|
+
...Cn,
|
|
1758
|
+
display: "inline-block",
|
|
1759
|
+
height: "100%"
|
|
1760
|
+
}, Tn = /* @__PURE__ */ a.memo(function({ showTopList: e = !1 }) {
|
|
1761
|
+
var t;
|
|
1762
|
+
let n = X("listState"), r = Z("sizeRanges"), o = X("useWindowScroll"), s = X("customScrollParent"), c = Z("windowScrollContainerState"), l = Z("scrollContainerState"), u = s || o ? c : l, d = X("itemContent"), f = X("context"), p = X("groupContent"), m = X("trackItemSizes"), h = X("itemSize"), g = X("log"), _ = Z("gap"), y = X("horizontalDirection"), { callbackRef: b } = ye(r, h, m, e ? v : u, g, _, s, y, X("skipAnimationFrameInResizeObserver")), [x, S] = a.useState(0);
|
|
1763
|
+
Bn("deviation", (e) => {
|
|
1764
|
+
x !== e && S(e);
|
|
1765
|
+
});
|
|
1766
|
+
let C = X("EmptyPlaceholder"), w = (t = X("ScrollSeekPlaceholder")) == null ? xn : t, T = X("ListComponent"), E = X("ItemComponent"), D = X("GroupComponent"), O = X("computeItemKey"), k = X("isSeeking"), A = X("groupIndices").length > 0, j = X("alignToBottom"), M = X("initialItemFinalLocationReached"), ee = e ? {} : {
|
|
1767
|
+
boxSizing: "border-box",
|
|
1768
|
+
...y ? {
|
|
1769
|
+
display: "inline-block",
|
|
1770
|
+
height: "100%",
|
|
1771
|
+
marginInlineStart: x === 0 ? j ? "auto" : 0 : x,
|
|
1772
|
+
paddingInlineEnd: n.offsetBottom,
|
|
1773
|
+
paddingInlineStart: n.offsetTop,
|
|
1774
|
+
whiteSpace: "nowrap"
|
|
1775
|
+
} : {
|
|
1776
|
+
marginTop: x === 0 ? j ? "auto" : 0 : x,
|
|
1777
|
+
paddingBottom: n.offsetBottom,
|
|
1778
|
+
paddingTop: n.offsetTop
|
|
1779
|
+
},
|
|
1780
|
+
...M ? {} : { visibility: "hidden" }
|
|
1781
|
+
};
|
|
1782
|
+
return !e && n.totalCount === 0 && C != null ? /* @__PURE__ */ (0, i.jsx)(C, { ...Y(C, f) }) : /* @__PURE__ */ (0, i.jsx)(T, {
|
|
1783
|
+
...Y(T, f),
|
|
1784
|
+
"data-testid": e ? "virtuoso-top-item-list" : "virtuoso-item-list",
|
|
1785
|
+
ref: b,
|
|
1786
|
+
style: ee,
|
|
1787
|
+
children: (e ? n.topItems : n.items).map((e) => {
|
|
1788
|
+
let t = e.originalIndex, r = O(t + n.firstItemIndex, e.data, f);
|
|
1789
|
+
return k ? /* @__PURE__ */ (0, a.createElement)(w, {
|
|
1790
|
+
...Y(w, f),
|
|
1791
|
+
height: e.size,
|
|
1792
|
+
index: e.index,
|
|
1793
|
+
key: r,
|
|
1794
|
+
type: e.type || "item",
|
|
1795
|
+
...e.type === "group" ? {} : { groupIndex: e.groupIndex }
|
|
1796
|
+
}) : e.type === "group" ? /* @__PURE__ */ (0, a.createElement)(D, {
|
|
1797
|
+
...Y(D, f),
|
|
1798
|
+
"data-index": t,
|
|
1799
|
+
"data-item-index": e.index,
|
|
1800
|
+
"data-known-size": e.size,
|
|
1801
|
+
key: r,
|
|
1802
|
+
style: Sn
|
|
1803
|
+
}, p(e.index, f)) : /* @__PURE__ */ (0, a.createElement)(E, {
|
|
1804
|
+
...Y(E, f),
|
|
1805
|
+
...jn(E, e.data),
|
|
1806
|
+
"data-index": t,
|
|
1807
|
+
"data-item-group-index": e.groupIndex,
|
|
1808
|
+
"data-item-index": e.index,
|
|
1809
|
+
"data-known-size": e.size,
|
|
1810
|
+
key: r,
|
|
1811
|
+
style: y ? wn : Cn
|
|
1812
|
+
}, A ? d(e.index, e.groupIndex, e.data, f) : d(e.index, e.data, f));
|
|
1813
|
+
})
|
|
1814
|
+
});
|
|
1815
|
+
}), En = {
|
|
1816
|
+
height: "100%",
|
|
1817
|
+
outline: "none",
|
|
1818
|
+
overflowY: "auto",
|
|
1819
|
+
position: "relative",
|
|
1820
|
+
WebkitOverflowScrolling: "touch"
|
|
1821
|
+
}, Dn = {
|
|
1822
|
+
outline: "none",
|
|
1823
|
+
overflowX: "auto",
|
|
1824
|
+
position: "relative"
|
|
1825
|
+
}, On = (e) => ({
|
|
1826
|
+
height: "100%",
|
|
1827
|
+
position: "absolute",
|
|
1828
|
+
top: 0,
|
|
1829
|
+
width: "100%",
|
|
1830
|
+
...e ? {
|
|
1831
|
+
display: "flex",
|
|
1832
|
+
flexDirection: "column"
|
|
1833
|
+
} : void 0
|
|
1834
|
+
}), kn = (e, t, n = 0) => ({
|
|
1835
|
+
...On(e),
|
|
1836
|
+
position: t ? "relative" : "absolute",
|
|
1837
|
+
top: t ? -n : 0
|
|
1838
|
+
}), An = {
|
|
1839
|
+
position: mn(),
|
|
1840
|
+
top: 0,
|
|
1841
|
+
width: "100%",
|
|
1842
|
+
zIndex: 1
|
|
1843
|
+
};
|
|
1844
|
+
function Y(e, t) {
|
|
1845
|
+
if (typeof e != "string") return { context: t };
|
|
1846
|
+
}
|
|
1847
|
+
function jn(e, t) {
|
|
1848
|
+
return { item: typeof e == "string" ? void 0 : t };
|
|
1849
|
+
}
|
|
1850
|
+
var Mn = /* @__PURE__ */ a.memo(function() {
|
|
1851
|
+
let e = X("HeaderComponent"), t = Z("headerHeight"), n = X("HeaderFooterTag"), r = _e(a.useMemo(() => (e) => {
|
|
1852
|
+
t(qe(e, "height"));
|
|
1853
|
+
}, [t]), !0, X("skipAnimationFrameInResizeObserver")), o = X("context");
|
|
1854
|
+
return e == null ? null : /* @__PURE__ */ (0, i.jsx)(n, {
|
|
1855
|
+
ref: r,
|
|
1856
|
+
children: /* @__PURE__ */ (0, i.jsx)(e, { ...Y(e, o) })
|
|
1857
|
+
});
|
|
1858
|
+
}), Nn = /* @__PURE__ */ a.memo(function() {
|
|
1859
|
+
let e = X("FooterComponent"), t = Z("footerHeight"), n = X("HeaderFooterTag"), r = _e(a.useMemo(() => (e) => {
|
|
1860
|
+
t(qe(e, "height"));
|
|
1861
|
+
}, [t]), !0, X("skipAnimationFrameInResizeObserver")), o = X("context");
|
|
1862
|
+
return e == null ? null : /* @__PURE__ */ (0, i.jsx)(n, {
|
|
1863
|
+
ref: r,
|
|
1864
|
+
children: /* @__PURE__ */ (0, i.jsx)(e, { ...Y(e, o) })
|
|
1865
|
+
});
|
|
1866
|
+
});
|
|
1867
|
+
function Pn({ useEmitter: e, useEmitterValue: t, usePublisher: n }) {
|
|
1868
|
+
return a.memo(function({ children: r, style: a, context: o, ...s }) {
|
|
1869
|
+
let c = n("scrollContainerState"), l = t("ScrollerComponent"), u = n("smoothScrollTargetReached"), d = t("scrollerRef"), f = t("horizontalDirection") || !1, { scrollByCallback: p, scrollerRef: m, scrollToCallback: h } = vn(c, u, l, d, void 0, f);
|
|
1870
|
+
return e("scrollTo", h), e("scrollBy", p), /* @__PURE__ */ (0, i.jsx)(l, {
|
|
1871
|
+
"data-testid": "virtuoso-scroller",
|
|
1872
|
+
"data-virtuoso-scroller": !0,
|
|
1873
|
+
ref: m,
|
|
1874
|
+
style: {
|
|
1875
|
+
...f ? Dn : En,
|
|
1876
|
+
...a
|
|
1877
|
+
},
|
|
1878
|
+
tabIndex: 0,
|
|
1879
|
+
...s,
|
|
1880
|
+
...Y(l, o),
|
|
1881
|
+
children: r
|
|
1882
|
+
});
|
|
1883
|
+
});
|
|
1884
|
+
}
|
|
1885
|
+
function Fn({ useEmitter: e, useEmitterValue: t, usePublisher: n }) {
|
|
1886
|
+
return a.memo(function({ children: r, style: o, context: s, ...c }) {
|
|
1887
|
+
let l = n("windowScrollContainerState"), u = t("ScrollerComponent"), d = n("smoothScrollTargetReached"), f = t("totalListHeight"), p = t("deviation"), m = t("customScrollParent"), h = a.useRef(null), { scrollByCallback: g, scrollerRef: _, scrollToCallback: v } = vn(l, d, u, t("scrollerRef"), m);
|
|
1888
|
+
return hn(() => {
|
|
1889
|
+
var e;
|
|
1890
|
+
return _.current = m || ((e = h.current) == null ? void 0 : e.ownerDocument.defaultView), () => {
|
|
1891
|
+
_.current = null;
|
|
1892
|
+
};
|
|
1893
|
+
}, [_, m]), e("windowScrollTo", v), e("scrollBy", g), /* @__PURE__ */ (0, i.jsx)(u, {
|
|
1894
|
+
ref: h,
|
|
1895
|
+
"data-virtuoso-scroller": !0,
|
|
1896
|
+
style: {
|
|
1897
|
+
position: "relative",
|
|
1898
|
+
...o,
|
|
1899
|
+
...f === 0 ? void 0 : { height: f + p }
|
|
1900
|
+
},
|
|
1901
|
+
...c,
|
|
1902
|
+
...Y(u, s),
|
|
1903
|
+
children: r
|
|
1904
|
+
});
|
|
1905
|
+
});
|
|
1906
|
+
}
|
|
1907
|
+
var In = ({ children: e }) => {
|
|
1908
|
+
let t = a.useContext(un), n = Z("viewportHeight"), r = Z("fixedItemHeight"), o = X("alignToBottom"), s = X("horizontalDirection"), c = _e(a.useMemo(() => p(n, (e) => qe(e, s ? "width" : "height")), [n, s]), !0, X("skipAnimationFrameInResizeObserver"));
|
|
1909
|
+
return a.useEffect(() => {
|
|
1910
|
+
t && (n(t.viewportHeight), r(t.itemHeight));
|
|
1911
|
+
}, [
|
|
1912
|
+
t,
|
|
1913
|
+
n,
|
|
1914
|
+
r
|
|
1915
|
+
]), /* @__PURE__ */ (0, i.jsx)("div", {
|
|
1916
|
+
"data-viewport-type": "element",
|
|
1917
|
+
ref: c,
|
|
1918
|
+
style: On(o),
|
|
1919
|
+
children: e
|
|
1920
|
+
});
|
|
1921
|
+
}, Ln = ({ children: e }) => {
|
|
1922
|
+
let t = a.useContext(un), n = Z("windowViewportRect"), r = Z("fixedItemHeight"), o = X("customScrollParent"), s = X("useWindowScroll"), c = X("topListHeight"), l = Se(n, o, X("skipAnimationFrameInResizeObserver")), u = X("alignToBottom");
|
|
1923
|
+
return a.useEffect(() => {
|
|
1924
|
+
t && (r(t.itemHeight), n({
|
|
1925
|
+
listHeight: 0,
|
|
1926
|
+
offsetTop: 0,
|
|
1927
|
+
visibleHeight: t.viewportHeight,
|
|
1928
|
+
visibleWidth: 100
|
|
1929
|
+
}));
|
|
1930
|
+
}, [
|
|
1931
|
+
t,
|
|
1932
|
+
n,
|
|
1933
|
+
r
|
|
1934
|
+
]), /* @__PURE__ */ (0, i.jsx)("div", {
|
|
1935
|
+
"data-viewport-type": "window",
|
|
1936
|
+
ref: l,
|
|
1937
|
+
style: kn(u, s, c),
|
|
1938
|
+
children: e
|
|
1939
|
+
});
|
|
1940
|
+
}, Rn = ({ children: e }) => {
|
|
1941
|
+
var t;
|
|
1942
|
+
let n = (t = X("TopItemListComponent")) == null ? "div" : t, r = X("headerHeight");
|
|
1943
|
+
return /* @__PURE__ */ (0, i.jsx)(n, {
|
|
1944
|
+
style: {
|
|
1945
|
+
...An,
|
|
1946
|
+
marginTop: `${r}px`
|
|
1947
|
+
},
|
|
1948
|
+
...Y(n, X("context")),
|
|
1949
|
+
children: e
|
|
1950
|
+
});
|
|
1951
|
+
}, { Component: zn, useEmitter: Bn, useEmitterValue: X, usePublisher: Z } = /* @__PURE__ */ ln(bn, {
|
|
1952
|
+
optional: {
|
|
1953
|
+
restoreStateFrom: "restoreStateFrom",
|
|
1954
|
+
context: "context",
|
|
1955
|
+
followOutput: "followOutput",
|
|
1956
|
+
scrollIntoViewOnChange: "scrollIntoViewOnChange",
|
|
1957
|
+
itemContent: "itemContent",
|
|
1958
|
+
groupContent: "groupContent",
|
|
1959
|
+
overscan: "overscan",
|
|
1960
|
+
increaseViewportBy: "increaseViewportBy",
|
|
1961
|
+
minOverscanItemCount: "minOverscanItemCount",
|
|
1962
|
+
totalCount: "totalCount",
|
|
1963
|
+
groupCounts: "groupCounts",
|
|
1964
|
+
topItemCount: "topItemCount",
|
|
1965
|
+
firstItemIndex: "firstItemIndex",
|
|
1966
|
+
initialTopMostItemIndex: "initialTopMostItemIndex",
|
|
1967
|
+
components: "components",
|
|
1968
|
+
atBottomThreshold: "atBottomThreshold",
|
|
1969
|
+
atTopThreshold: "atTopThreshold",
|
|
1970
|
+
computeItemKey: "computeItemKey",
|
|
1971
|
+
defaultItemHeight: "defaultItemHeight",
|
|
1972
|
+
fixedGroupHeight: "fixedGroupHeight",
|
|
1973
|
+
fixedItemHeight: "fixedItemHeight",
|
|
1974
|
+
heightEstimates: "heightEstimates",
|
|
1975
|
+
itemSize: "itemSize",
|
|
1976
|
+
scrollSeekConfiguration: "scrollSeekConfiguration",
|
|
1977
|
+
headerFooterTag: "HeaderFooterTag",
|
|
1978
|
+
data: "data",
|
|
1979
|
+
initialItemCount: "initialItemCount",
|
|
1980
|
+
initialScrollTop: "initialScrollTop",
|
|
1981
|
+
alignToBottom: "alignToBottom",
|
|
1982
|
+
useWindowScroll: "useWindowScroll",
|
|
1983
|
+
customScrollParent: "customScrollParent",
|
|
1984
|
+
scrollerRef: "scrollerRef",
|
|
1985
|
+
logLevel: "logLevel",
|
|
1986
|
+
horizontalDirection: "horizontalDirection",
|
|
1987
|
+
skipAnimationFrameInResizeObserver: "skipAnimationFrameInResizeObserver"
|
|
1988
|
+
},
|
|
1989
|
+
methods: {
|
|
1990
|
+
scrollToIndex: "scrollToIndex",
|
|
1991
|
+
scrollIntoView: "scrollIntoView",
|
|
1992
|
+
scrollTo: "scrollTo",
|
|
1993
|
+
scrollBy: "scrollBy",
|
|
1994
|
+
autoscrollToBottom: "autoscrollToBottom",
|
|
1995
|
+
getState: "getState"
|
|
1996
|
+
},
|
|
1997
|
+
events: {
|
|
1998
|
+
isScrolling: "isScrolling",
|
|
1999
|
+
endReached: "endReached",
|
|
2000
|
+
startReached: "startReached",
|
|
2001
|
+
rangeChanged: "rangeChanged",
|
|
2002
|
+
atBottomStateChange: "atBottomStateChange",
|
|
2003
|
+
atTopStateChange: "atTopStateChange",
|
|
2004
|
+
totalListHeightChanged: "totalListHeightChanged",
|
|
2005
|
+
itemsRendered: "itemsRendered",
|
|
2006
|
+
groupIndices: "groupIndices"
|
|
2007
|
+
}
|
|
2008
|
+
}, /* @__PURE__ */ a.memo(function(e) {
|
|
2009
|
+
let t = X("useWindowScroll"), n = X("topItemsIndexes").length > 0, r = X("customScrollParent"), a = X("context");
|
|
2010
|
+
return /* @__PURE__ */ (0, i.jsxs)(r || t ? Hn : Vn, {
|
|
2011
|
+
...e,
|
|
2012
|
+
context: a,
|
|
2013
|
+
children: [n && /* @__PURE__ */ (0, i.jsx)(Rn, { children: /* @__PURE__ */ (0, i.jsx)(Tn, { showTopList: !0 }) }), /* @__PURE__ */ (0, i.jsxs)(r || t ? Ln : In, { children: [
|
|
2014
|
+
/* @__PURE__ */ (0, i.jsx)(Mn, {}),
|
|
2015
|
+
/* @__PURE__ */ (0, i.jsx)(Tn, {}),
|
|
2016
|
+
/* @__PURE__ */ (0, i.jsx)(Nn, {})
|
|
2017
|
+
] })]
|
|
2018
|
+
});
|
|
2019
|
+
})), Vn = /* @__PURE__ */ Pn({
|
|
2020
|
+
useEmitter: Bn,
|
|
2021
|
+
useEmitterValue: X,
|
|
2022
|
+
usePublisher: Z
|
|
2023
|
+
}), Hn = /* @__PURE__ */ Fn({
|
|
2024
|
+
useEmitter: Bn,
|
|
2025
|
+
useEmitterValue: X,
|
|
2026
|
+
usePublisher: Z
|
|
2027
|
+
}), Un = zn, Wn = zn, Gn = /* @__PURE__ */ B(([e, t]) => ({
|
|
2028
|
+
...e,
|
|
2029
|
+
...t
|
|
2030
|
+
}), x(on, /* @__PURE__ */ B(() => {
|
|
2031
|
+
let e = I((e) => /* @__PURE__ */ (0, i.jsxs)("td", { children: ["Item $", e] })), t = I(null), n = I((e) => /* @__PURE__ */ (0, i.jsxs)("td", {
|
|
2032
|
+
colSpan: 1e3,
|
|
2033
|
+
children: ["Group ", e]
|
|
2034
|
+
})), r = I(null), a = I(null), o = I({}), s = I(yn), c = I(v), l = (e, t = null) => L(N(o, M((t) => t[e]), A()), t);
|
|
2035
|
+
return {
|
|
2036
|
+
components: o,
|
|
2037
|
+
computeItemKey: s,
|
|
2038
|
+
context: t,
|
|
2039
|
+
EmptyPlaceholder: l("EmptyPlaceholder"),
|
|
2040
|
+
FillerRow: l("FillerRow"),
|
|
2041
|
+
fixedFooterContent: a,
|
|
2042
|
+
fixedHeaderContent: r,
|
|
2043
|
+
itemContent: e,
|
|
2044
|
+
groupContent: n,
|
|
2045
|
+
ScrollerComponent: l("Scroller", "div"),
|
|
2046
|
+
scrollerRef: c,
|
|
2047
|
+
ScrollSeekPlaceholder: l("ScrollSeekPlaceholder"),
|
|
2048
|
+
TableBodyComponent: l("TableBody", "tbody"),
|
|
2049
|
+
TableComponent: l("Table", "table"),
|
|
2050
|
+
TableFooterComponent: l("TableFoot", "tfoot"),
|
|
2051
|
+
TableHeadComponent: l("TableHead", "thead"),
|
|
2052
|
+
TableRowComponent: l("TableRow", "tr"),
|
|
2053
|
+
GroupComponent: l("Group", "tr")
|
|
2054
|
+
};
|
|
2055
|
+
}))), Kn = ({ height: e }) => /* @__PURE__ */ (0, i.jsx)("tr", { children: /* @__PURE__ */ (0, i.jsx)("td", { style: { height: e } }) }), qn = ({ height: e }) => /* @__PURE__ */ (0, i.jsx)("tr", { children: /* @__PURE__ */ (0, i.jsx)("td", { style: {
|
|
2056
|
+
border: 0,
|
|
2057
|
+
height: e,
|
|
2058
|
+
padding: 0
|
|
2059
|
+
} }) }), Jn = { overflowAnchor: "none" }, Yn = {
|
|
2060
|
+
position: mn(),
|
|
2061
|
+
zIndex: 2,
|
|
2062
|
+
overflowAnchor: "none"
|
|
2063
|
+
}, Xn = /* @__PURE__ */ a.memo(function({ showTopList: e = !1 }) {
|
|
2064
|
+
var t;
|
|
2065
|
+
let n = Q("listState"), r = Q("computeItemKey"), i = Q("firstItemIndex"), o = Q("context"), s = Q("isSeeking"), c = Q("fixedHeaderHeight"), l = Q("groupIndices").length > 0, u = Q("itemContent"), d = Q("groupContent"), f = (t = Q("ScrollSeekPlaceholder")) == null ? Kn : t, p = Q("GroupComponent"), m = Q("TableRowComponent"), h = (e ? n.topItems : []).reduce((e, t, n) => (n === 0 ? e.push(t.size) : e.push(e[n - 1] + t.size), e), []);
|
|
2066
|
+
return (e ? n.topItems : n.items).map((t) => {
|
|
2067
|
+
let n = t.originalIndex, g = r(n + i, t.data, o), _ = e ? n === 0 ? 0 : h[n - 1] : 0;
|
|
2068
|
+
return s ? /* @__PURE__ */ (0, a.createElement)(f, {
|
|
2069
|
+
...Y(f, o),
|
|
2070
|
+
height: t.size,
|
|
2071
|
+
index: t.index,
|
|
2072
|
+
key: g,
|
|
2073
|
+
type: t.type || "item"
|
|
2074
|
+
}) : t.type === "group" ? /* @__PURE__ */ (0, a.createElement)(p, {
|
|
2075
|
+
...Y(p, o),
|
|
2076
|
+
"data-index": n,
|
|
2077
|
+
"data-item-index": t.index,
|
|
2078
|
+
"data-known-size": t.size,
|
|
2079
|
+
key: g,
|
|
2080
|
+
style: {
|
|
2081
|
+
...Yn,
|
|
2082
|
+
top: c
|
|
2083
|
+
}
|
|
2084
|
+
}, d(t.index, o)) : /* @__PURE__ */ (0, a.createElement)(m, {
|
|
2085
|
+
...Y(m, o),
|
|
2086
|
+
...jn(m, t.data),
|
|
2087
|
+
"data-index": n,
|
|
2088
|
+
"data-item-index": t.index,
|
|
2089
|
+
"data-known-size": t.size,
|
|
2090
|
+
"data-item-group-index": t.groupIndex,
|
|
2091
|
+
key: g,
|
|
2092
|
+
style: e ? {
|
|
2093
|
+
...Yn,
|
|
2094
|
+
top: c + _
|
|
2095
|
+
} : Jn
|
|
2096
|
+
}, l ? u(t.index, t.groupIndex, t.data, o) : u(t.index, t.data, o));
|
|
2097
|
+
});
|
|
2098
|
+
}), Zn = /* @__PURE__ */ a.memo(function() {
|
|
2099
|
+
var e;
|
|
2100
|
+
let t = Q("listState"), n = Q("topItemsIndexes").length > 0, r = nr("sizeRanges"), o = Q("useWindowScroll"), s = Q("customScrollParent"), c = nr("windowScrollContainerState"), l = nr("scrollContainerState"), u = s || o ? c : l, d = Q("trackItemSizes"), { callbackRef: f, ref: p } = ye(r, Q("itemSize"), d, u, Q("log"), void 0, s, !1, Q("skipAnimationFrameInResizeObserver")), [m, h] = a.useState(0);
|
|
2101
|
+
tr("deviation", (e) => {
|
|
2102
|
+
m !== e && (p.current.style.marginTop = `${e}px`, h(e));
|
|
2103
|
+
});
|
|
2104
|
+
let g = Q("EmptyPlaceholder"), _ = (e = Q("FillerRow")) == null ? qn : e, v = Q("TableBodyComponent"), y = Q("paddingTopAddition"), b = Q("statefulTotalCount"), x = Q("context");
|
|
2105
|
+
if (b === 0 && g != null) return /* @__PURE__ */ (0, i.jsx)(g, { ...Y(g, x) });
|
|
2106
|
+
let S = (n ? t.topItems : []).reduce((e, t) => e + t.size, 0), C = t.offsetTop + y + m - S, w = t.offsetBottom, T = C > 0 ? /* @__PURE__ */ (0, i.jsx)(_, {
|
|
2107
|
+
context: x,
|
|
2108
|
+
height: C
|
|
2109
|
+
}, "padding-top") : null, E = w > 0 ? /* @__PURE__ */ (0, i.jsx)(_, {
|
|
2110
|
+
context: x,
|
|
2111
|
+
height: w
|
|
2112
|
+
}, "padding-bottom") : null;
|
|
2113
|
+
return /* @__PURE__ */ (0, i.jsxs)(v, {
|
|
2114
|
+
"data-testid": "virtuoso-item-list",
|
|
2115
|
+
ref: f,
|
|
2116
|
+
...Y(v, x),
|
|
2117
|
+
children: [
|
|
2118
|
+
T,
|
|
2119
|
+
n && /* @__PURE__ */ (0, i.jsx)(Xn, { showTopList: !0 }),
|
|
2120
|
+
/* @__PURE__ */ (0, i.jsx)(Xn, {}),
|
|
2121
|
+
E
|
|
2122
|
+
]
|
|
2123
|
+
});
|
|
2124
|
+
}), Qn = ({ children: e }) => {
|
|
2125
|
+
let t = a.useContext(un), n = nr("viewportHeight"), r = nr("fixedItemHeight"), o = _e(a.useMemo(() => p(n, (e) => qe(e, "height")), [n]), !0, Q("skipAnimationFrameInResizeObserver"));
|
|
2126
|
+
return a.useEffect(() => {
|
|
2127
|
+
t && (n(t.viewportHeight), r(t.itemHeight));
|
|
2128
|
+
}, [
|
|
2129
|
+
t,
|
|
2130
|
+
n,
|
|
2131
|
+
r
|
|
2132
|
+
]), /* @__PURE__ */ (0, i.jsx)("div", {
|
|
2133
|
+
"data-viewport-type": "element",
|
|
2134
|
+
ref: o,
|
|
2135
|
+
style: On(!1),
|
|
2136
|
+
children: e
|
|
2137
|
+
});
|
|
2138
|
+
}, $n = ({ children: e }) => {
|
|
2139
|
+
let t = a.useContext(un), n = nr("windowViewportRect"), r = nr("fixedItemHeight"), o = Q("customScrollParent"), s = Q("useWindowScroll"), c = Se(n, o, Q("skipAnimationFrameInResizeObserver"));
|
|
2140
|
+
return a.useEffect(() => {
|
|
2141
|
+
t && (r(t.itemHeight), n({
|
|
2142
|
+
listHeight: 0,
|
|
2143
|
+
offsetTop: 0,
|
|
2144
|
+
visibleHeight: t.viewportHeight,
|
|
2145
|
+
visibleWidth: 100
|
|
2146
|
+
}));
|
|
2147
|
+
}, [
|
|
2148
|
+
t,
|
|
2149
|
+
n,
|
|
2150
|
+
r
|
|
2151
|
+
]), /* @__PURE__ */ (0, i.jsx)("div", {
|
|
2152
|
+
"data-viewport-type": "window",
|
|
2153
|
+
ref: c,
|
|
2154
|
+
style: kn(!1, s),
|
|
2155
|
+
children: e
|
|
2156
|
+
});
|
|
2157
|
+
}, { Component: er, useEmitter: tr, useEmitterValue: Q, usePublisher: nr } = /* @__PURE__ */ ln(Gn, {
|
|
2158
|
+
optional: {
|
|
2159
|
+
restoreStateFrom: "restoreStateFrom",
|
|
2160
|
+
context: "context",
|
|
2161
|
+
followOutput: "followOutput",
|
|
2162
|
+
firstItemIndex: "firstItemIndex",
|
|
2163
|
+
itemContent: "itemContent",
|
|
2164
|
+
groupContent: "groupContent",
|
|
2165
|
+
fixedHeaderContent: "fixedHeaderContent",
|
|
2166
|
+
fixedFooterContent: "fixedFooterContent",
|
|
2167
|
+
overscan: "overscan",
|
|
2168
|
+
increaseViewportBy: "increaseViewportBy",
|
|
2169
|
+
minOverscanItemCount: "minOverscanItemCount",
|
|
2170
|
+
totalCount: "totalCount",
|
|
2171
|
+
topItemCount: "topItemCount",
|
|
2172
|
+
initialTopMostItemIndex: "initialTopMostItemIndex",
|
|
2173
|
+
components: "components",
|
|
2174
|
+
groupCounts: "groupCounts",
|
|
2175
|
+
atBottomThreshold: "atBottomThreshold",
|
|
2176
|
+
atTopThreshold: "atTopThreshold",
|
|
2177
|
+
computeItemKey: "computeItemKey",
|
|
2178
|
+
defaultItemHeight: "defaultItemHeight",
|
|
2179
|
+
fixedGroupHeight: "fixedGroupHeight",
|
|
2180
|
+
fixedItemHeight: "fixedItemHeight",
|
|
2181
|
+
itemSize: "itemSize",
|
|
2182
|
+
scrollSeekConfiguration: "scrollSeekConfiguration",
|
|
2183
|
+
data: "data",
|
|
2184
|
+
initialItemCount: "initialItemCount",
|
|
2185
|
+
initialScrollTop: "initialScrollTop",
|
|
2186
|
+
alignToBottom: "alignToBottom",
|
|
2187
|
+
useWindowScroll: "useWindowScroll",
|
|
2188
|
+
customScrollParent: "customScrollParent",
|
|
2189
|
+
scrollerRef: "scrollerRef",
|
|
2190
|
+
logLevel: "logLevel"
|
|
2191
|
+
},
|
|
2192
|
+
methods: {
|
|
2193
|
+
scrollToIndex: "scrollToIndex",
|
|
2194
|
+
scrollIntoView: "scrollIntoView",
|
|
2195
|
+
scrollTo: "scrollTo",
|
|
2196
|
+
scrollBy: "scrollBy",
|
|
2197
|
+
getState: "getState"
|
|
2198
|
+
},
|
|
2199
|
+
events: {
|
|
2200
|
+
isScrolling: "isScrolling",
|
|
2201
|
+
endReached: "endReached",
|
|
2202
|
+
startReached: "startReached",
|
|
2203
|
+
rangeChanged: "rangeChanged",
|
|
2204
|
+
atBottomStateChange: "atBottomStateChange",
|
|
2205
|
+
atTopStateChange: "atTopStateChange",
|
|
2206
|
+
totalListHeightChanged: "totalListHeightChanged",
|
|
2207
|
+
itemsRendered: "itemsRendered",
|
|
2208
|
+
groupIndices: "groupIndices"
|
|
2209
|
+
}
|
|
2210
|
+
}, /* @__PURE__ */ a.memo(function(e) {
|
|
2211
|
+
let t = Q("useWindowScroll"), n = Q("customScrollParent"), r = nr("fixedHeaderHeight"), o = nr("fixedFooterHeight"), s = Q("fixedHeaderContent"), c = Q("fixedFooterContent"), l = Q("context"), u = _e(a.useMemo(() => p(r, (e) => qe(e, "height")), [r]), !0, Q("skipAnimationFrameInResizeObserver")), d = _e(a.useMemo(() => p(o, (e) => qe(e, "height")), [o]), !0, Q("skipAnimationFrameInResizeObserver")), f = n || t ? ir : rr, m = n || t ? $n : Qn, h = Q("TableComponent"), g = Q("TableHeadComponent"), _ = Q("TableFooterComponent"), v = s ? /* @__PURE__ */ (0, i.jsx)(g, {
|
|
2212
|
+
ref: u,
|
|
2213
|
+
style: {
|
|
2214
|
+
position: "sticky",
|
|
2215
|
+
top: 0,
|
|
2216
|
+
zIndex: 2
|
|
2217
|
+
},
|
|
2218
|
+
...Y(g, l),
|
|
2219
|
+
children: s()
|
|
2220
|
+
}, "TableHead") : null, y = c ? /* @__PURE__ */ (0, i.jsx)(_, {
|
|
2221
|
+
ref: d,
|
|
2222
|
+
style: {
|
|
2223
|
+
bottom: 0,
|
|
2224
|
+
position: "sticky",
|
|
2225
|
+
zIndex: 1
|
|
2226
|
+
},
|
|
2227
|
+
...Y(_, l),
|
|
2228
|
+
children: c()
|
|
2229
|
+
}, "TableFoot") : null;
|
|
2230
|
+
return /* @__PURE__ */ (0, i.jsx)(f, {
|
|
2231
|
+
...e,
|
|
2232
|
+
...Y(f, l),
|
|
2233
|
+
children: /* @__PURE__ */ (0, i.jsx)(m, { children: /* @__PURE__ */ (0, i.jsxs)(h, {
|
|
2234
|
+
style: {
|
|
2235
|
+
borderSpacing: 0,
|
|
2236
|
+
overflowAnchor: "none"
|
|
2237
|
+
},
|
|
2238
|
+
...Y(h, l),
|
|
2239
|
+
children: [
|
|
2240
|
+
v,
|
|
2241
|
+
/* @__PURE__ */ (0, i.jsx)(Zn, {}, "TableBody"),
|
|
2242
|
+
y
|
|
2243
|
+
]
|
|
2244
|
+
}) })
|
|
2245
|
+
});
|
|
2246
|
+
})), rr = /* @__PURE__ */ Pn({
|
|
2247
|
+
useEmitter: tr,
|
|
2248
|
+
useEmitterValue: Q,
|
|
2249
|
+
usePublisher: nr
|
|
2250
|
+
}), ir = /* @__PURE__ */ Fn({
|
|
2251
|
+
useEmitter: tr,
|
|
2252
|
+
useEmitterValue: Q,
|
|
2253
|
+
usePublisher: nr
|
|
2254
|
+
}), ar = {
|
|
2255
|
+
bottom: 0,
|
|
2256
|
+
itemHeight: 0,
|
|
2257
|
+
items: [],
|
|
2258
|
+
itemWidth: 0,
|
|
2259
|
+
offsetBottom: 0,
|
|
2260
|
+
offsetTop: 0,
|
|
2261
|
+
top: 0
|
|
2262
|
+
}, or = {
|
|
2263
|
+
bottom: 0,
|
|
2264
|
+
itemHeight: 0,
|
|
2265
|
+
items: [{ index: 0 }],
|
|
2266
|
+
itemWidth: 0,
|
|
2267
|
+
offsetBottom: 0,
|
|
2268
|
+
offsetTop: 0,
|
|
2269
|
+
top: 0
|
|
2270
|
+
}, { ceil: sr, floor: cr, max: lr, min: ur, round: dr } = Math;
|
|
2271
|
+
function fr(e, t, n) {
|
|
2272
|
+
return Array.from({ length: t - e + 1 }).map((t, r) => ({
|
|
2273
|
+
data: n === null ? null : n[r + e],
|
|
2274
|
+
index: r + e
|
|
2275
|
+
}));
|
|
2276
|
+
}
|
|
2277
|
+
function pr(e) {
|
|
2278
|
+
return {
|
|
2279
|
+
...or,
|
|
2280
|
+
items: e
|
|
2281
|
+
};
|
|
2282
|
+
}
|
|
2283
|
+
function mr(e, t) {
|
|
2284
|
+
return e !== void 0 && e.width === t.width && e.height === t.height;
|
|
2285
|
+
}
|
|
2286
|
+
function hr(e, t) {
|
|
2287
|
+
return e !== void 0 && e.column === t.column && e.row === t.row;
|
|
2288
|
+
}
|
|
2289
|
+
var gr = /* @__PURE__ */ B(([{ increaseViewportBy: e, listBoundary: t, overscan: n, visibleRange: r }, { footerHeight: i, headerHeight: a, scrollBy: o, scrollContainerState: s, scrollTo: c, scrollTop: l, smoothScrollTargetReached: u, viewportHeight: d }, f, p, { didMount: m, propsReady: h }, { customScrollParent: g, useWindowScroll: _, windowScrollContainerState: v, windowScrollTo: y, windowViewportRect: b }, x]) => {
|
|
2290
|
+
let w = I(0), T = I(0), O = I(ar), k = I({
|
|
2291
|
+
height: 0,
|
|
2292
|
+
width: 0
|
|
2293
|
+
}), P = I({
|
|
2294
|
+
height: 0,
|
|
2295
|
+
width: 0
|
|
2296
|
+
}), re = R(), ie = R(), B = I(0), ae = I(null), oe = I({
|
|
2297
|
+
column: 0,
|
|
2298
|
+
row: 0
|
|
2299
|
+
}), se = R(), U = R(), ce = I(!1), le = I(0), W = I(!0), ue = I(!1), de = I(!1);
|
|
2300
|
+
S(N(m, F(le), j(([e, t]) => t !== 0)), () => {
|
|
2301
|
+
C(W, !1);
|
|
2302
|
+
}), S(N(V(m, W, P, k, le, ue), j(([e, t, n, r, , i]) => e && !t && n.height !== 0 && r.height !== 0 && !i)), ([, , , , e]) => {
|
|
2303
|
+
C(ue, !0), yt(1, () => {
|
|
2304
|
+
C(re, e);
|
|
2305
|
+
}), D(N(l), () => {
|
|
2306
|
+
C(t, [0, 0]), C(W, !0);
|
|
2307
|
+
});
|
|
2308
|
+
}), E(N(U, j((e) => e != null && e.scrollTop > 0), ee(0)), T), S(N(m, F(U), j(([, e]) => e != null)), ([, e]) => {
|
|
2309
|
+
e && (C(k, e.viewport), C(P, e.item), C(oe, e.gap), e.scrollTop > 0 && (C(ce, !0), D(N(l, te(1)), (e) => {
|
|
2310
|
+
C(ce, !1);
|
|
2311
|
+
}), C(c, { top: e.scrollTop })));
|
|
2312
|
+
}), E(N(k, M(({ height: e }) => e)), d), E(N(V(H(k, mr), H(P, mr), H(oe, (e, t) => e !== void 0 && e.column === t.column && e.row === t.row), H(l)), M(([e, t, n, r]) => ({
|
|
2313
|
+
gap: n,
|
|
2314
|
+
item: t,
|
|
2315
|
+
scrollTop: r,
|
|
2316
|
+
viewport: e
|
|
2317
|
+
}))), se), E(N(V(H(w), r, H(oe, hr), H(P, mr), H(k, mr), H(ae), H(T), H(ce), H(W), H(le)), j(([, , , , , , , e]) => !e), M(([e, [t, n], r, i, a, o, s, , c, l]) => {
|
|
2318
|
+
let { column: u, row: d } = r, { height: f, width: p } = i, { width: m } = a;
|
|
2319
|
+
if (s === 0 && (e === 0 || m === 0)) return ar;
|
|
2320
|
+
if (p === 0) {
|
|
2321
|
+
let t = bt(l, e);
|
|
2322
|
+
return pr(fr(t, t + Math.max(s - 1, 0), o));
|
|
2323
|
+
}
|
|
2324
|
+
let h = _r(m, p, u), g, _;
|
|
2325
|
+
c ? t === 0 && n === 0 && s > 0 ? (g = 0, _ = s - 1) : (g = h * cr((t + d) / (f + d)), _ = h * sr((n + d) / (f + d)) - 1, _ = ur(e - 1, lr(_, h - 1)), g = ur(_, lr(0, g))) : (g = 0, _ = -1);
|
|
2326
|
+
let v = fr(g, _, o), { bottom: y, top: b } = vr(a, r, i, v), x = sr(e / h);
|
|
2327
|
+
return {
|
|
2328
|
+
bottom: y,
|
|
2329
|
+
itemHeight: f,
|
|
2330
|
+
items: v,
|
|
2331
|
+
itemWidth: p,
|
|
2332
|
+
offsetBottom: x * f + (x - 1) * d - y,
|
|
2333
|
+
offsetTop: b,
|
|
2334
|
+
top: b
|
|
2335
|
+
};
|
|
2336
|
+
})), O), E(N(ae, j((e) => e !== null), M((e) => e.length)), w), E(N(V(k, P, O, oe), j(([e, t, { items: n }]) => n.length > 0 && t.height !== 0 && e.height !== 0), M(([e, t, { items: n }, r]) => {
|
|
2337
|
+
let { bottom: i, top: a } = vr(e, r, t, n);
|
|
2338
|
+
return [a, i];
|
|
2339
|
+
}), A(He)), t);
|
|
2340
|
+
let fe = I(!1);
|
|
2341
|
+
E(N(l, F(fe), M(([e, t]) => t || e !== 0)), fe);
|
|
2342
|
+
let pe = z(N(V(O, w), j(([{ items: e }]) => e.length > 0), F(fe), j(([[e, t], n]) => {
|
|
2343
|
+
let r = e.items[e.items.length - 1].index === t - 1;
|
|
2344
|
+
return (n || e.bottom > 0 && e.itemHeight > 0 && e.offsetBottom === 0 && e.items.length === t) && r;
|
|
2345
|
+
}), M(([[, e]]) => e - 1), A())), me = z(N(H(O), j(({ items: e }) => e.length > 0 && e[0].index === 0), ee(0), A())), he = z(N(H(O), F(ce), j(([{ items: e }, t]) => e.length > 0 && !t), M(([{ items: e }]) => ({
|
|
2346
|
+
endIndex: e[e.length - 1].index,
|
|
2347
|
+
startIndex: e[0].index
|
|
2348
|
+
})), A(Ve), ne(0)));
|
|
2349
|
+
E(he, p.scrollSeekRangeChanged), E(N(re, F(k, P, w, oe), M(([e, t, n, r, i]) => {
|
|
2350
|
+
let a = gt(e), { align: o, behavior: s, offset: c } = a, l = a.index;
|
|
2351
|
+
l === "LAST" && (l = r - 1), l = lr(0, l, ur(r - 1, l));
|
|
2352
|
+
let u = yr(t, i, n, l);
|
|
2353
|
+
return o === "end" ? u = dr(u - t.height + n.height) : o === "center" && (u = dr(u - t.height / 2 + n.height / 2)), c !== void 0 && c !== 0 && (u += c), {
|
|
2354
|
+
behavior: s,
|
|
2355
|
+
top: u
|
|
2356
|
+
};
|
|
2357
|
+
})), c);
|
|
2358
|
+
let ge = L(N(O, M((e) => e.offsetBottom + e.bottom)), 0);
|
|
2359
|
+
return E(N(b, M((e) => ({
|
|
2360
|
+
height: e.visibleHeight,
|
|
2361
|
+
width: e.visibleWidth
|
|
2362
|
+
}))), k), {
|
|
2363
|
+
customScrollParent: g,
|
|
2364
|
+
data: ae,
|
|
2365
|
+
deviation: B,
|
|
2366
|
+
footerHeight: i,
|
|
2367
|
+
gap: oe,
|
|
2368
|
+
headerHeight: a,
|
|
2369
|
+
increaseViewportBy: e,
|
|
2370
|
+
initialItemCount: T,
|
|
2371
|
+
itemDimensions: P,
|
|
2372
|
+
overscan: n,
|
|
2373
|
+
restoreStateFrom: U,
|
|
2374
|
+
scrollBy: o,
|
|
2375
|
+
scrollContainerState: s,
|
|
2376
|
+
scrollHeight: ie,
|
|
2377
|
+
scrollTo: c,
|
|
2378
|
+
scrollToIndex: re,
|
|
2379
|
+
scrollTop: l,
|
|
2380
|
+
smoothScrollTargetReached: u,
|
|
2381
|
+
totalCount: w,
|
|
2382
|
+
useWindowScroll: _,
|
|
2383
|
+
viewportDimensions: k,
|
|
2384
|
+
windowScrollContainerState: v,
|
|
2385
|
+
windowScrollTo: y,
|
|
2386
|
+
windowViewportRect: b,
|
|
2387
|
+
...p,
|
|
2388
|
+
gridState: O,
|
|
2389
|
+
horizontalDirection: de,
|
|
2390
|
+
initialTopMostItemIndex: le,
|
|
2391
|
+
totalListHeight: ge,
|
|
2392
|
+
...f,
|
|
2393
|
+
endReached: pe,
|
|
2394
|
+
propsReady: h,
|
|
2395
|
+
rangeChanged: he,
|
|
2396
|
+
startReached: me,
|
|
2397
|
+
stateChanged: se,
|
|
2398
|
+
stateRestoreInProgress: ce,
|
|
2399
|
+
...x
|
|
2400
|
+
};
|
|
2401
|
+
}, x(Pt, G, Ot, Qt, mt, $t, W));
|
|
2402
|
+
function _r(e, t, n) {
|
|
2403
|
+
return lr(1, cr((e + n) / (cr(t) + n)));
|
|
2404
|
+
}
|
|
2405
|
+
function vr(e, t, n, r) {
|
|
2406
|
+
let { height: i } = n;
|
|
2407
|
+
if (i === void 0 || r.length === 0) return {
|
|
2408
|
+
bottom: 0,
|
|
2409
|
+
top: 0
|
|
2410
|
+
};
|
|
2411
|
+
let a = yr(e, t, n, r[0].index);
|
|
2412
|
+
return {
|
|
2413
|
+
bottom: yr(e, t, n, r[r.length - 1].index) + i,
|
|
2414
|
+
top: a
|
|
2415
|
+
};
|
|
2416
|
+
}
|
|
2417
|
+
function yr(e, t, n, r) {
|
|
2418
|
+
let i = cr(r / _r(e.width, n.width, t.column)), a = i * n.height + lr(0, i - 1) * t.row;
|
|
2419
|
+
return a > 0 ? a + t.row : a;
|
|
2420
|
+
}
|
|
2421
|
+
var br = /* @__PURE__ */ B(([e, t]) => ({
|
|
2422
|
+
...e,
|
|
2423
|
+
...t
|
|
2424
|
+
}), x(gr, /* @__PURE__ */ B(() => {
|
|
2425
|
+
let e = I((e) => `Item ${e}`), t = I({}), n = I(null), r = I("virtuoso-grid-item"), i = I("virtuoso-grid-list"), a = I(yn), o = I("div"), s = I(v), c = (e, n = null) => L(N(t, M((t) => t[e]), A()), n), l = I(!1), u = I(!1);
|
|
2426
|
+
return E(H(u), l), {
|
|
2427
|
+
components: t,
|
|
2428
|
+
computeItemKey: a,
|
|
2429
|
+
context: n,
|
|
2430
|
+
FooterComponent: c("Footer"),
|
|
2431
|
+
HeaderComponent: c("Header"),
|
|
2432
|
+
headerFooterTag: o,
|
|
2433
|
+
itemClassName: r,
|
|
2434
|
+
ItemComponent: c("Item", "div"),
|
|
2435
|
+
itemContent: e,
|
|
2436
|
+
listClassName: i,
|
|
2437
|
+
ListComponent: c("List", "div"),
|
|
2438
|
+
readyStateChanged: l,
|
|
2439
|
+
reportReadyState: u,
|
|
2440
|
+
ScrollerComponent: c("Scroller", "div"),
|
|
2441
|
+
scrollerRef: s,
|
|
2442
|
+
ScrollSeekPlaceholder: c("ScrollSeekPlaceholder", "div")
|
|
2443
|
+
};
|
|
2444
|
+
}))), xr = /* @__PURE__ */ a.memo(function() {
|
|
2445
|
+
let e = $("gridState"), t = $("listClassName"), n = $("itemClassName"), r = $("itemContent"), o = $("computeItemKey"), s = $("isSeeking"), c = Or("scrollHeight"), l = $("ItemComponent"), u = $("ListComponent"), d = $("ScrollSeekPlaceholder"), f = $("context"), p = Or("itemDimensions"), m = Or("gap"), h = $("log"), g = $("stateRestoreInProgress"), _ = Or("reportReadyState"), v = _e(a.useMemo(() => (e) => {
|
|
2446
|
+
let t = e.parentElement.parentElement.scrollHeight;
|
|
2447
|
+
c(t);
|
|
2448
|
+
let n = e.firstChild;
|
|
2449
|
+
if (n !== null) {
|
|
2450
|
+
let { height: e, width: t } = n.getBoundingClientRect();
|
|
2451
|
+
p({
|
|
2452
|
+
height: e,
|
|
2453
|
+
width: t
|
|
2454
|
+
});
|
|
2455
|
+
}
|
|
2456
|
+
m({
|
|
2457
|
+
column: jr("column-gap", getComputedStyle(e).columnGap, h),
|
|
2458
|
+
row: jr("row-gap", getComputedStyle(e).rowGap, h)
|
|
2459
|
+
});
|
|
2460
|
+
}, [
|
|
2461
|
+
c,
|
|
2462
|
+
p,
|
|
2463
|
+
m,
|
|
2464
|
+
h
|
|
2465
|
+
]), !0, !1);
|
|
2466
|
+
return hn(() => {
|
|
2467
|
+
e.itemHeight > 0 && e.itemWidth > 0 && _(!0);
|
|
2468
|
+
}, [e]), g ? null : /* @__PURE__ */ (0, i.jsx)(u, {
|
|
2469
|
+
className: t,
|
|
2470
|
+
ref: v,
|
|
2471
|
+
...Y(u, f),
|
|
2472
|
+
"data-testid": "virtuoso-item-list",
|
|
2473
|
+
style: {
|
|
2474
|
+
paddingBottom: e.offsetBottom,
|
|
2475
|
+
paddingTop: e.offsetTop
|
|
2476
|
+
},
|
|
2477
|
+
children: e.items.map((t) => {
|
|
2478
|
+
let c = o(t.index, t.data, f);
|
|
2479
|
+
return s ? /* @__PURE__ */ (0, i.jsx)(d, {
|
|
2480
|
+
...Y(d, f),
|
|
2481
|
+
height: e.itemHeight,
|
|
2482
|
+
index: t.index,
|
|
2483
|
+
width: e.itemWidth
|
|
2484
|
+
}, c) : /* @__PURE__ */ (0, a.createElement)(l, {
|
|
2485
|
+
...Y(l, f),
|
|
2486
|
+
className: n,
|
|
2487
|
+
"data-index": t.index,
|
|
2488
|
+
key: c
|
|
2489
|
+
}, r(t.index, t.data, f));
|
|
2490
|
+
})
|
|
2491
|
+
});
|
|
2492
|
+
}), Sr = a.memo(function() {
|
|
2493
|
+
let e = $("HeaderComponent"), t = Or("headerHeight"), n = $("headerFooterTag"), r = _e(a.useMemo(() => (e) => {
|
|
2494
|
+
t(qe(e, "height"));
|
|
2495
|
+
}, [t]), !0, !1), o = $("context");
|
|
2496
|
+
return e == null ? null : /* @__PURE__ */ (0, i.jsx)(n, {
|
|
2497
|
+
ref: r,
|
|
2498
|
+
children: /* @__PURE__ */ (0, i.jsx)(e, { ...Y(e, o) })
|
|
2499
|
+
});
|
|
2500
|
+
}), Cr = a.memo(function() {
|
|
2501
|
+
let e = $("FooterComponent"), t = Or("footerHeight"), n = $("headerFooterTag"), r = _e(a.useMemo(() => (e) => {
|
|
2502
|
+
t(qe(e, "height"));
|
|
2503
|
+
}, [t]), !0, !1), o = $("context");
|
|
2504
|
+
return e == null ? null : /* @__PURE__ */ (0, i.jsx)(n, {
|
|
2505
|
+
ref: r,
|
|
2506
|
+
children: /* @__PURE__ */ (0, i.jsx)(e, { ...Y(e, o) })
|
|
2507
|
+
});
|
|
2508
|
+
}), wr = ({ children: e }) => {
|
|
2509
|
+
let t = a.useContext(dn), n = Or("itemDimensions"), r = Or("viewportDimensions"), o = _e(a.useMemo(() => (e) => {
|
|
2510
|
+
r(e.getBoundingClientRect());
|
|
2511
|
+
}, [r]), !0, !1);
|
|
2512
|
+
return a.useEffect(() => {
|
|
2513
|
+
t && (r({
|
|
2514
|
+
height: t.viewportHeight,
|
|
2515
|
+
width: t.viewportWidth
|
|
2516
|
+
}), n({
|
|
2517
|
+
height: t.itemHeight,
|
|
2518
|
+
width: t.itemWidth
|
|
2519
|
+
}));
|
|
2520
|
+
}, [
|
|
2521
|
+
t,
|
|
2522
|
+
r,
|
|
2523
|
+
n
|
|
2524
|
+
]), /* @__PURE__ */ (0, i.jsx)("div", {
|
|
2525
|
+
ref: o,
|
|
2526
|
+
style: On(!1),
|
|
2527
|
+
children: e
|
|
2528
|
+
});
|
|
2529
|
+
}, Tr = ({ children: e }) => {
|
|
2530
|
+
let t = a.useContext(dn), n = Or("windowViewportRect"), r = Or("itemDimensions"), o = $("customScrollParent"), s = $("useWindowScroll"), c = Se(n, o, !1);
|
|
2531
|
+
return a.useEffect(() => {
|
|
2532
|
+
t && (r({
|
|
2533
|
+
height: t.itemHeight,
|
|
2534
|
+
width: t.itemWidth
|
|
2535
|
+
}), n({
|
|
2536
|
+
listHeight: 0,
|
|
2537
|
+
offsetTop: 0,
|
|
2538
|
+
visibleHeight: t.viewportHeight,
|
|
2539
|
+
visibleWidth: t.viewportWidth
|
|
2540
|
+
}));
|
|
2541
|
+
}, [
|
|
2542
|
+
t,
|
|
2543
|
+
n,
|
|
2544
|
+
r
|
|
2545
|
+
]), /* @__PURE__ */ (0, i.jsx)("div", {
|
|
2546
|
+
ref: c,
|
|
2547
|
+
style: kn(!1, s),
|
|
2548
|
+
children: e
|
|
2549
|
+
});
|
|
2550
|
+
}, { Component: Er, useEmitter: Dr, useEmitterValue: $, usePublisher: Or } = /* @__PURE__ */ ln(br, {
|
|
2551
|
+
optional: {
|
|
2552
|
+
context: "context",
|
|
2553
|
+
totalCount: "totalCount",
|
|
2554
|
+
overscan: "overscan",
|
|
2555
|
+
itemContent: "itemContent",
|
|
2556
|
+
components: "components",
|
|
2557
|
+
computeItemKey: "computeItemKey",
|
|
2558
|
+
data: "data",
|
|
2559
|
+
initialItemCount: "initialItemCount",
|
|
2560
|
+
scrollSeekConfiguration: "scrollSeekConfiguration",
|
|
2561
|
+
headerFooterTag: "headerFooterTag",
|
|
2562
|
+
listClassName: "listClassName",
|
|
2563
|
+
itemClassName: "itemClassName",
|
|
2564
|
+
useWindowScroll: "useWindowScroll",
|
|
2565
|
+
customScrollParent: "customScrollParent",
|
|
2566
|
+
scrollerRef: "scrollerRef",
|
|
2567
|
+
logLevel: "logLevel",
|
|
2568
|
+
restoreStateFrom: "restoreStateFrom",
|
|
2569
|
+
initialTopMostItemIndex: "initialTopMostItemIndex",
|
|
2570
|
+
increaseViewportBy: "increaseViewportBy"
|
|
2571
|
+
},
|
|
2572
|
+
methods: {
|
|
2573
|
+
scrollTo: "scrollTo",
|
|
2574
|
+
scrollBy: "scrollBy",
|
|
2575
|
+
scrollToIndex: "scrollToIndex"
|
|
2576
|
+
},
|
|
2577
|
+
events: {
|
|
2578
|
+
isScrolling: "isScrolling",
|
|
2579
|
+
endReached: "endReached",
|
|
2580
|
+
startReached: "startReached",
|
|
2581
|
+
rangeChanged: "rangeChanged",
|
|
2582
|
+
atBottomStateChange: "atBottomStateChange",
|
|
2583
|
+
atTopStateChange: "atTopStateChange",
|
|
2584
|
+
stateChanged: "stateChanged",
|
|
2585
|
+
readyStateChanged: "readyStateChanged"
|
|
2586
|
+
}
|
|
2587
|
+
}, /* @__PURE__ */ a.memo(function({ ...e }) {
|
|
2588
|
+
let t = $("useWindowScroll"), n = $("customScrollParent"), r = n || t ? Ar : kr, a = n || t ? Tr : wr, o = $("context");
|
|
2589
|
+
return /* @__PURE__ */ (0, i.jsx)(r, {
|
|
2590
|
+
...e,
|
|
2591
|
+
...Y(r, o),
|
|
2592
|
+
children: /* @__PURE__ */ (0, i.jsxs)(a, { children: [
|
|
2593
|
+
/* @__PURE__ */ (0, i.jsx)(Sr, {}),
|
|
2594
|
+
/* @__PURE__ */ (0, i.jsx)(xr, {}),
|
|
2595
|
+
/* @__PURE__ */ (0, i.jsx)(Cr, {})
|
|
2596
|
+
] })
|
|
2597
|
+
});
|
|
2598
|
+
})), kr = /* @__PURE__ */ Pn({
|
|
2599
|
+
useEmitter: Dr,
|
|
2600
|
+
useEmitterValue: $,
|
|
2601
|
+
usePublisher: Or
|
|
2602
|
+
}), Ar = /* @__PURE__ */ Fn({
|
|
2603
|
+
useEmitter: Dr,
|
|
2604
|
+
useEmitterValue: $,
|
|
2605
|
+
usePublisher: Or
|
|
2606
|
+
});
|
|
2607
|
+
function jr(e, t, n) {
|
|
2608
|
+
return t !== "normal" && (t == null ? void 0 : t.endsWith("px")) !== !0 && n(`${e} was not resolved to pixel value correctly`, t, U.WARN), t === "normal" ? 0 : parseInt(t == null ? "0" : t, 10);
|
|
2609
|
+
}
|
|
2610
|
+
//#endregion
|
|
2611
|
+
export { Wn as GroupedVirtuoso, Un as Virtuoso };
|