@expofp/floorplan 3.0.0-alpha.8 → 3.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/browser/Debug-Yknbb09q.js +40 -0
- package/dist/browser/Demo-CaOFZa6L.js +47 -0
- package/dist/browser/Free-DTL80JI4.js +51 -0
- package/dist/browser/Gallery-Du04PQQo.js +71 -0
- package/dist/browser/GpsLoader-Cvn6RlOm.js +140 -0
- package/dist/browser/KioskStore-De5ViEMC.js +225 -0
- package/dist/browser/Mapbox-DwX3p3Kb.js +118 -0
- package/dist/browser/{SetKioskMode-CuVQ3oOi.js → SetKioskMode-DY8Ihzh_.js} +92 -83
- package/dist/browser/{ShowKiosk-D5cdIS4z.js → ShowKiosk-fqRB_BUN.js} +28 -19
- package/dist/browser/{ThreeComponent-EfEBxPIF.js → ThreeComponent-CrAcuY6n.js} +181 -172
- package/dist/browser/ViewerMenuPanel-CdiEJm9h.js +77 -0
- package/dist/browser/boolean-editor-BCIboJVq.js +157 -0
- package/dist/browser/bundle.json +34 -31
- package/dist/browser/{client-C2b0SeoG.js → client-BU0UzF6H.js} +848 -839
- package/dist/browser/compat-helper.js +5 -0
- package/dist/browser/{data-Cpuv4_nZ.js → data-DU1RvfMj.js} +278 -269
- package/dist/browser/{debug-overlay-Bhx1vN7x.js → debug-overlay-DMGwYhOT.js} +100 -91
- package/dist/browser/debug-ui-BZSH53uY.js +67 -0
- package/dist/browser/{favicon-DalyEhbd.js → favicon-ZTHZQvuM.js} +11 -2
- package/dist/browser/fetch-retry.umd-CFhXCSM1.js +123 -0
- package/dist/browser/{flex-va-25i0F.js → flex-D0XnC5Mw.js} +76 -67
- package/dist/browser/{floorplan.ready-wFOhoP9S.js → floorplan.ready-DwzYk5s3.js} +20977 -22749
- package/dist/browser/fonts/efp-symbols.woff +0 -0
- package/dist/browser/{index-DiTM6eb8.js → index-BZDxL6gh.js} +46 -37
- package/dist/browser/{index-t04nNTFw.js → index-BpZSlPvc.js} +333 -324
- package/dist/browser/index-BxFqdKuM.js +57 -0
- package/dist/browser/index-fEI_0iId.js +882 -0
- package/dist/browser/index-h3LFHvKr.js +92 -0
- package/dist/browser/index-xQ7Ip4HB.js +54 -0
- package/dist/browser/index.html +1 -0
- package/dist/browser/index.js +12495 -2
- package/dist/browser/jsx-runtime-SRODV826.js +40 -0
- package/dist/browser/locales/ar.json +56 -5
- package/dist/browser/locales/de.json +56 -5
- package/dist/browser/locales/es.json +56 -5
- package/dist/browser/locales/fr.json +56 -5
- package/dist/browser/locales/he.json +56 -5
- package/dist/browser/locales/it.json +56 -5
- package/dist/browser/locales/kk.json +56 -5
- package/dist/browser/locales/ko.json +56 -5
- package/dist/browser/locales/mn.json +56 -5
- package/dist/browser/locales/nl.json +56 -5
- package/dist/browser/locales/pl.json +57 -6
- package/dist/browser/locales/pt.json +55 -4
- package/dist/browser/locales/ru.json +57 -6
- package/dist/browser/locales/sv.json +56 -5
- package/dist/browser/locales/th.json +56 -5
- package/dist/browser/locales/tr.json +56 -5
- package/dist/browser/locales/uk.json +56 -5
- package/dist/browser/locales/vi.json +56 -5
- package/dist/browser/locales/zh.json +56 -5
- package/dist/browser/{main-CD9JioNt.js → main-CcaoXWR4.js} +24 -15
- package/dist/browser/{particles.min-Cat-np_h.js → particles.min-Ds_4ex2r.js} +40 -31
- package/dist/esm/RouteCutIn.d.ts +0 -1
- package/dist/esm/RouteCutIn.js +1 -1
- package/dist/esm/_misc_to_move/manifest.d.ts +13 -0
- package/dist/esm/_misc_to_move/ref.d.ts +6 -0
- package/dist/esm/_misc_to_move/ref.js +1 -0
- package/dist/esm/components/Alert.d.ts +2 -0
- package/dist/esm/components/Alert.js +1 -1
- package/dist/esm/components/Badge.d.ts +3 -2
- package/dist/esm/components/Badge.js +1 -1
- package/dist/esm/components/Bookmarks.js +1 -1
- package/dist/esm/components/Booth/BoothOnHold.d.ts +2 -2
- package/dist/esm/components/Booth/BoothOnHold.js +1 -1
- package/dist/esm/components/Booth/BoothReserved.d.ts +2 -1
- package/dist/esm/components/Booth/BoothReserved.js +1 -1
- package/dist/esm/components/Booth/BoothWithoutExhibitor.d.ts +2 -2
- package/dist/esm/components/Booth/BoothWithoutExhibitor.js +1 -1
- package/dist/esm/components/CookieConsent.js +1 -1
- package/dist/esm/components/Exhibitor.js +1 -1
- package/dist/esm/components/Gallery/GalleryControls/GalleryControls.d.ts +2 -2
- package/dist/esm/components/Gallery/GalleryControls/GalleryControls.js +1 -1
- package/dist/esm/components/Gallery/GalleryModal/GalleryModal.d.ts +2 -2
- package/dist/esm/components/Gallery/GalleryModal/GalleryModal.js +1 -1
- package/dist/esm/components/Kiosk/KioskStore.d.ts +3 -3
- package/dist/esm/components/Kiosk/KioskStore.js +1 -1
- package/dist/esm/components/Kiosk/SetKiosk/storage.d.ts +1 -1
- package/dist/esm/components/Kiosk/SetKiosk/storage.js +1 -1
- package/dist/esm/components/Kiosk/ShowKiosk.js +1 -1
- package/dist/esm/components/Kiosk/integrateKiosk.js +1 -1
- package/dist/esm/components/Language.js +1 -1
- package/dist/esm/components/LanguageRow.d.ts +0 -1
- package/dist/esm/components/LanguageRow.js +1 -1
- package/dist/esm/components/Layout.js +1 -1
- package/dist/esm/components/List.js +1 -1
- package/dist/esm/components/LogoOverlay.js +1 -1
- package/dist/esm/components/Map/Map.d.ts +0 -23
- package/dist/esm/components/Map/Map.js +1 -1
- package/dist/esm/components/Map/booth-by-xy.js +1 -1
- package/dist/esm/components/Map/drawing/config/TextFitter.d.ts +1 -1
- package/dist/esm/components/Map/drawing/config/config-all.d.ts +2 -3
- package/dist/esm/components/Map/drawing/config/config-all.js +1 -1
- package/dist/esm/components/Map/drawing/config/config-bg.d.ts +1 -1
- package/dist/esm/components/Map/drawing/config/config-bg.js +1 -1
- package/dist/esm/components/Map/drawing/config/config-booth-badge.d.ts +9 -0
- package/dist/esm/components/Map/drawing/config/config-booth-badge.js +1 -0
- package/dist/esm/components/Map/drawing/config/config-booth-bg.d.ts +5 -5
- package/dist/esm/components/Map/drawing/config/config-booth-bg.js +1 -1
- package/dist/esm/components/Map/drawing/config/config-booth-bookmark.d.ts +5 -5
- package/dist/esm/components/Map/drawing/config/config-booth-bookmark.js +1 -1
- package/dist/esm/components/Map/drawing/config/config-booth-border.d.ts +3 -3
- package/dist/esm/components/Map/drawing/config/config-booth-border.js +1 -1
- package/dist/esm/components/Map/drawing/config/config-booth-labels-special.d.ts +6 -6
- package/dist/esm/components/Map/drawing/config/config-booth-labels-special.js +2 -2
- package/dist/esm/components/Map/drawing/config/config-booth-labels.d.ts +5 -5
- package/dist/esm/components/Map/drawing/config/config-booth-labels.js +1 -1
- package/dist/esm/components/Map/drawing/config/config-booth-scaled.d.ts +3 -3
- package/dist/esm/components/Map/drawing/config/config-booth-scaled.js +1 -1
- package/dist/esm/components/Map/drawing/config/config-booths.d.ts +2 -2
- package/dist/esm/components/Map/drawing/config/config-booths.js +1 -1
- package/dist/esm/components/Map/drawing/config/config-load-layer.d.ts +2 -2
- package/dist/esm/components/Map/drawing/config/config-load-layer.js +1 -1
- package/dist/esm/components/Map/drawing/config/config-markers.d.ts +2 -3
- package/dist/esm/components/Map/drawing/config/config-markers.js +1 -1
- package/dist/esm/components/Map/drawing/config/config-wf.d.ts +2 -5
- package/dist/esm/components/Map/drawing/config/config-wf.js +1 -1
- package/dist/esm/components/Map/drawing/config/loadBoothsImages.d.ts +2 -3
- package/dist/esm/components/Map/drawing/config/loadBoothsImages.js +1 -1
- package/dist/esm/components/Map/drawing/config/route-snapping/snapPositionToRoute.d.ts +1 -1
- package/dist/esm/components/Map/drawing/config/route-snapping/snapPositionToRoute.js +1 -1
- package/dist/esm/components/Map/drawing/config/route-snapping/splitRouteByPoint.d.ts +1 -1
- package/dist/esm/components/Map/drawing/config/route-snapping/splitRouteByPoint.js +1 -1
- package/dist/esm/components/Map/drawing/config/route-snapping/types.d.ts +1 -1
- package/dist/esm/components/Map/drawing/config/route-snapping/utils.d.ts +1 -1
- package/dist/esm/components/Map/traffic/useBuildRoute.d.ts +3 -5
- package/dist/esm/components/Map/traffic/useBuildRoute.js +6 -6
- package/dist/esm/components/Map/traffic/useManageTraffic.d.ts +3 -5
- package/dist/esm/components/Map/traffic/useManageTraffic.js +1 -1
- package/dist/esm/components/MarketMaterialList.d.ts +3 -3
- package/dist/esm/components/MarketMaterialList.js +1 -1
- package/dist/esm/components/Menu.js +1 -2
- package/dist/esm/components/MobileToggleButton.js +1 -1
- package/dist/esm/components/MultiSelectGroups.d.ts +2 -2
- package/dist/esm/components/MultiSelectGroups.js +1 -1
- package/dist/esm/components/Overlay.d.ts +2 -0
- package/dist/esm/components/Overlay.js +1 -1
- package/dist/esm/components/OverlayContainer.js +1 -1
- package/dist/esm/components/QrCode.d.ts +46 -0
- package/dist/esm/components/QrCode.js +1 -0
- package/dist/esm/components/RebookingNotes.d.ts +2 -2
- package/dist/esm/components/RebookingNotes.js +1 -1
- package/dist/esm/components/RebookingRadioGroup.d.ts +2 -2
- package/dist/esm/components/RebookingRadioGroup.js +1 -1
- package/dist/esm/components/RoutePlanner/RoutePlanner.d.ts +4 -0
- package/dist/esm/components/RoutePlanner/RoutePlanner.js +1 -0
- package/dist/esm/components/RoutePlanner/RoutePlannerHeader.d.ts +4 -0
- package/dist/esm/components/RoutePlanner/RoutePlannerHeader.js +1 -0
- package/dist/esm/components/RoutePlanner/RoutePlannerStartPoint.d.ts +9 -0
- package/dist/esm/components/RoutePlanner/RoutePlannerStartPoint.js +1 -0
- package/dist/esm/components/RoutePlanner/RoutePlannerStopItem.d.ts +9 -0
- package/dist/esm/components/RoutePlanner/RoutePlannerStopItem.js +1 -0
- package/dist/esm/components/RouteQR.d.ts +2 -2
- package/dist/esm/components/RouteQR.js +1 -1
- package/dist/esm/components/Schedule.js +1 -1
- package/dist/esm/components/SearchBox.js +1 -1
- package/dist/esm/components/Sessions.js +1 -1
- package/dist/esm/components/Share.d.ts +2 -2
- package/dist/esm/components/Share.js +1 -1
- package/dist/esm/components/SidebarActions.d.ts +3 -0
- package/dist/esm/components/SidebarActions.js +1 -1
- package/dist/esm/components/SpeakersFiltersModal.js +1 -1
- package/dist/esm/components/ViewerMenuPanel.d.ts +5 -0
- package/dist/esm/components/ViewerMenuPanel.js +1 -0
- package/dist/esm/components/Wayfinding.d.ts +2 -2
- package/dist/esm/components/Wayfinding.js +1 -1
- package/dist/esm/components/WayfindingTemplate.d.ts +2 -2
- package/dist/esm/components/WayfindingTemplate.js +1 -1
- package/dist/esm/components/gps/GpsPermissionRequest.d.ts +4 -2
- package/dist/esm/components/gps/GpsPermissionRequest.js +1 -1
- package/dist/esm/components/index.d.ts +1 -3
- package/dist/esm/components/index.js +1 -1
- package/dist/esm/constants.d.ts +7 -0
- package/dist/esm/constants.js +1 -1
- package/dist/esm/data/tours.json +114 -0
- package/dist/esm/floorplan.loader.d.ts +5 -0
- package/dist/esm/floorplan.loader.js +1 -1
- package/dist/esm/floorplan.ready.d.ts +6 -3
- package/dist/esm/floorplan.ready.js +1 -1
- package/dist/esm/index.d.ts +0 -2
- package/dist/esm/index.js +1 -1
- package/dist/esm/load.d.ts +4 -1
- package/dist/esm/load.js +2 -2
- package/dist/esm/offline/offlineManager.js +1 -1
- package/dist/esm/renderer/HandlerRegistry.d.ts +18 -0
- package/dist/esm/renderer/HandlerRegistry.js +1 -0
- package/dist/esm/renderer/RendererService.d.ts +26 -0
- package/dist/esm/renderer/RendererService.js +1 -0
- package/dist/esm/renderer/engine-core/animation.d.ts +7 -0
- package/dist/esm/renderer/engine-core/animation.js +1 -0
- package/dist/esm/{components/Map/drawing/config → renderer}/engine-core/canvases.d.ts +1 -1
- package/dist/esm/renderer/engine-core/canvases.js +1 -0
- package/dist/esm/renderer/engine-core/fonts.js +1 -0
- package/dist/esm/renderer/engine-core/types.js +1 -0
- package/dist/esm/{components/Map/drawing/config/engine-core → renderer}/index.d.ts +10 -10
- package/dist/esm/renderer/index.js +1 -0
- package/dist/esm/services/routing.js +1 -1
- package/dist/esm/store/BookmarksStore.d.ts +12 -0
- package/dist/esm/store/BookmarksStore.js +2 -0
- package/dist/esm/store/FuzzySearchEngineStore.d.ts +7 -3
- package/dist/esm/store/FuzzySearchEngineStore.js +1 -1
- package/dist/esm/store/LayerStore.d.ts +1 -0
- package/dist/esm/store/LayerStore.js +1 -1
- package/dist/esm/store/RootStore.d.ts +10 -10
- package/dist/esm/store/RootStore.js +1 -1
- package/dist/esm/store/RoutePlannerStore.d.ts +58 -0
- package/dist/esm/store/RoutePlannerStore.js +1 -0
- package/dist/esm/store/RouteStore.d.ts +1 -1
- package/dist/esm/store/RouteStore.js +1 -1
- package/dist/esm/store/SearchStore.d.ts +2 -0
- package/dist/esm/store/SearchStore.js +1 -1
- package/dist/esm/store/ToursStore.js +1 -1
- package/dist/esm/store/UIState.d.ts +10 -7
- package/dist/esm/store/UIState.js +1 -1
- package/dist/esm/store/init/index.js +1 -1
- package/dist/esm/store/init/init-bookmarks.d.ts +7 -0
- package/dist/esm/store/init/init-bookmarks.js +1 -0
- package/dist/esm/store/init/init-events.d.ts +1 -1
- package/dist/esm/store/init/init-events.js +1 -1
- package/dist/esm/store/init/init-exhibitors.d.ts +1 -1
- package/dist/esm/store/init/init-exhibitors.js +1 -1
- package/dist/esm/store/init/init-layers.js +1 -1
- package/dist/esm/store/init/init-speakers.d.ts +1 -1
- package/dist/esm/store/init/init-speakers.js +1 -1
- package/dist/esm/store/search-buttons/SearchButtonsStore.d.ts +1 -1
- package/dist/esm/store/search-buttons/SearchButtonsStore.js +1 -1
- package/dist/esm/store/types.d.ts +11 -3
- package/dist/esm/tools/base-runtime-url.js +1 -1
- package/dist/esm/tools/sentry.js +1 -1
- package/dist/esm/tools/telemetry.d.ts +35 -0
- package/dist/esm/tools/telemetry.js +1 -0
- package/dist/esm/tools/track-event.d.ts +3 -1
- package/dist/esm/tools/track-event.js +1 -1
- package/dist/esm/utils/buildOptimizedRoute.d.ts +11 -0
- package/dist/esm/utils/buildOptimizedRoute.js +1 -0
- package/dist/esm/utils/detectLimitedModeViaImage.js +1 -1
- package/dist/esm/utils/geometry.d.ts +2 -0
- package/dist/esm/utils/geometry.js +1 -0
- package/dist/esm/utils/i18n.d.ts +6 -4
- package/dist/esm/utils/i18n.js +1 -1
- package/dist/esm/utils/loadCustomCss.d.ts +1 -1
- package/dist/esm/utils/loadCustomCss.js +1 -1
- package/dist/esm/utils/mapEntity.js +1 -1
- package/dist/esm/utils/math.d.ts +7 -0
- package/dist/esm/utils/math.js +1 -0
- package/dist/esm/utils/shortenName.js +1 -1
- package/dist/esm/utils/use-shadow.d.ts +1 -1
- package/dist/esm/utils/use-shadow.js +1 -1
- package/dist/esm/utils/useRenderTarget.js +1 -1
- package/dist/esm/wayfinding/_PLAN-public-api.d.ts +220 -0
- package/dist/esm/wayfinding/_PLAN-public-api.js +1 -0
- package/dist/esm/{utils/wayfinding.d.ts → wayfinding/__integration__/legacy/legacyWayfinding.d.ts} +5 -15
- package/dist/esm/wayfinding/__integration__/legacy/legacyWayfinding.js +1 -0
- package/dist/esm/wayfinding/__tests__/helpers.d.ts +21 -0
- package/dist/esm/wayfinding/__tests__/helpers.js +1 -0
- package/dist/esm/wayfinding/adapters/boothToWaypoint.d.ts +12 -0
- package/dist/esm/wayfinding/adapters/boothToWaypoint.js +1 -0
- package/dist/esm/wayfinding/adapters/graphDataSource.d.ts +3 -0
- package/dist/esm/wayfinding/adapters/graphDataSource.js +1 -0
- package/dist/esm/wayfinding/graph/buildGraph.d.ts +3 -0
- package/dist/esm/wayfinding/graph/buildGraph.js +1 -0
- package/dist/esm/wayfinding/graph/buildNGraph.d.ts +9 -0
- package/dist/esm/wayfinding/graph/buildNGraph.js +1 -0
- package/dist/esm/wayfinding/graph/constants.d.ts +3 -0
- package/dist/esm/wayfinding/graph/constants.js +1 -0
- package/dist/esm/wayfinding/graph/findShortestPath.d.ts +14 -0
- package/dist/esm/wayfinding/graph/findShortestPath.js +1 -0
- package/dist/esm/wayfinding/graph/graphCache.d.ts +6 -0
- package/dist/esm/wayfinding/graph/graphCache.js +1 -0
- package/dist/esm/wayfinding/graph/graphHelpers.d.ts +8 -0
- package/dist/esm/wayfinding/graph/graphHelpers.js +1 -0
- package/dist/esm/wayfinding/graph/linkCost.d.ts +4 -0
- package/dist/esm/wayfinding/graph/linkCost.js +1 -0
- package/dist/esm/wayfinding/graph/pathfinder/aStarPathFinder.d.ts +3 -0
- package/dist/esm/wayfinding/graph/pathfinder/aStarPathFinder.js +1 -0
- package/dist/esm/wayfinding/graph/pathfinder/parseNodeId.d.ts +9 -0
- package/dist/esm/wayfinding/graph/pathfinder/parseNodeId.js +1 -0
- package/dist/esm/wayfinding/index.d.ts +18 -0
- package/dist/esm/wayfinding/index.js +1 -0
- package/dist/esm/wayfinding/rendering/computeTransitionPoints.d.ts +31 -0
- package/dist/esm/wayfinding/rendering/computeTransitionPoints.js +1 -0
- package/dist/esm/wayfinding/rendering/normalizeRouteDirection.d.ts +19 -0
- package/dist/esm/wayfinding/rendering/normalizeRouteDirection.js +1 -0
- package/dist/esm/wayfinding/rendering/routeGeometry.d.ts +16 -0
- package/dist/esm/wayfinding/rendering/routeGeometry.js +1 -0
- package/dist/esm/wayfinding/routing/buildMultiPointRoute.d.ts +11 -0
- package/dist/esm/wayfinding/routing/buildMultiPointRoute.js +1 -0
- package/dist/esm/wayfinding/routing/buildRoute.d.ts +9 -0
- package/dist/esm/wayfinding/routing/buildRoute.js +1 -0
- package/dist/esm/wayfinding/routing/findNearestGraphPoint.d.ts +21 -0
- package/dist/esm/wayfinding/routing/findNearestGraphPoint.js +1 -0
- package/dist/esm/wayfinding/routing/getGraphLines.d.ts +14 -0
- package/dist/esm/wayfinding/routing/getGraphLines.js +1 -0
- package/dist/esm/wayfinding/routing/getRouteLength.d.ts +3 -0
- package/dist/esm/wayfinding/routing/getRouteLength.js +1 -0
- package/dist/esm/wayfinding/routing/routeResult.d.ts +4 -0
- package/dist/esm/wayfinding/routing/routeResult.js +1 -0
- package/dist/esm/wayfinding/types.d.ts +76 -0
- package/dist/esm/wayfinding/types.js +1 -0
- package/package.json +4 -8
- package/dist/browser/Debug-BcuHrger.js +0 -31
- package/dist/browser/Demo-BYqw6OYP.js +0 -38
- package/dist/browser/Free-CmGdntqG.js +0 -42
- package/dist/browser/Gallery-Duo1PfdD.js +0 -279
- package/dist/browser/GpsLoader-C4DNB5Gk.js +0 -131
- package/dist/browser/KioskStore-B_V6qTqR.js +0 -216
- package/dist/browser/Mapbox-ChR5sYZi.js +0 -109
- package/dist/browser/boolean-editor-BNBndiMi.js +0 -148
- package/dist/browser/debug-ui-D2eqc4aS.js +0 -58
- package/dist/browser/fetch-retry.umd-bXmyDpSc.js +0 -114
- package/dist/browser/index-Ao2u5imr.js +0 -48
- package/dist/browser/index-B-GWDT1K.js +0 -83
- package/dist/browser/index-CNJY6Um1.js +0 -12526
- package/dist/browser/index-Dj8pSRq1.js +0 -45
- package/dist/browser/jsx-runtime-jIxVPx5o.js +0 -31
- package/dist/browser/sw.js +0 -2
- package/dist/esm/components/BoothRow.d.ts +0 -8
- package/dist/esm/components/BoothRow.js +0 -1
- package/dist/esm/components/ExhibitorRow.d.ts +0 -9
- package/dist/esm/components/ExhibitorRow.js +0 -1
- package/dist/esm/components/Map/drawing/config/engine-core/animation.d.ts +0 -3
- package/dist/esm/components/Map/drawing/config/engine-core/animation.js +0 -1
- package/dist/esm/components/Map/drawing/config/engine-core/canvases.js +0 -1
- package/dist/esm/components/Map/drawing/config/engine-core/fonts.js +0 -1
- package/dist/esm/components/Map/drawing/config/engine-core/index.js +0 -1
- package/dist/esm/components/Map/drawing/config/engine-core/renderer.d.ts +0 -4
- package/dist/esm/components/Map/drawing/config/engine-core/renderer.js +0 -1
- package/dist/esm/components/ScheduleRow.d.ts +0 -8
- package/dist/esm/components/ScheduleRow.js +0 -1
- package/dist/esm/expofp-debug.d.ts +0 -5
- package/dist/esm/expofp-debug.js +0 -1
- package/dist/esm/offline/sw.d.ts +0 -2
- package/dist/esm/offline/sw.js +0 -1
- package/dist/esm/store/LanguageStore.d.ts +0 -19
- package/dist/esm/store/LanguageStore.js +0 -1
- package/dist/esm/store/init/init-language.d.ts +0 -3
- package/dist/esm/store/init/init-language.js +0 -1
- package/dist/esm/utils/toRadians.d.ts +0 -3
- package/dist/esm/utils/toRadians.js +0 -1
- package/dist/esm/utils/wayfinding.js +0 -1
- package/dist/stats.html +0 -4950
- /package/dist/esm/{components/Map/drawing/config/engine-core/types.js → _misc_to_move/manifest.js} +0 -0
- /package/dist/esm/{components/Map/drawing/config → renderer}/engine-core/defs.d.ts +0 -0
- /package/dist/esm/{components/Map/drawing/config → renderer}/engine-core/defs.js +0 -0
- /package/dist/esm/{components/Map/drawing/config → renderer}/engine-core/fonts.d.ts +0 -0
- /package/dist/esm/{components/Map/drawing/config → renderer}/engine-core/settings.d.ts +0 -0
- /package/dist/esm/{components/Map/drawing/config → renderer}/engine-core/settings.js +0 -0
- /package/dist/esm/{components/Map/drawing/config → renderer}/engine-core/types.d.ts +0 -0
- /package/dist/esm/{components/Map/drawing/config → renderer}/engine-core/update-def.d.ts +0 -0
- /package/dist/esm/{components/Map/drawing/config → renderer}/engine-core/update-def.js +0 -0
- /package/dist/esm/{components/Map/drawing/config → renderer}/engine-core/utils/rotation.d.ts +0 -0
- /package/dist/esm/{components/Map/drawing/config → renderer}/engine-core/utils/rotation.js +0 -0
|
@@ -1,6 +1,15 @@
|
|
|
1
|
-
import { j as N } from "./jsx-runtime-
|
|
2
|
-
import { o as B, r as ht } from "./index
|
|
3
|
-
import { R as en } from "./index-
|
|
1
|
+
import { j as N } from "./jsx-runtime-SRODV826.js";
|
|
2
|
+
import { o as B, r as ht } from "./index.js";
|
|
3
|
+
import { R as en } from "./index-xQ7Ip4HB.js";
|
|
4
|
+
(function() {
|
|
5
|
+
try {
|
|
6
|
+
var e = typeof window < "u" ? window : typeof global < "u" ? global : typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : {};
|
|
7
|
+
e.SENTRY_RELEASE = { id: "3.0.0" };
|
|
8
|
+
var t = new e.Error().stack;
|
|
9
|
+
t && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[t] = "c2699594-c3c1-46b5-89c5-6e52be404336", e._sentryDebugIdIdentifier = "sentry-dbid-c2699594-c3c1-46b5-89c5-6e52be404336");
|
|
10
|
+
} catch {
|
|
11
|
+
}
|
|
12
|
+
})();
|
|
4
13
|
const vt = 0, Pe = 1, Xe = 2, Io = 4;
|
|
5
14
|
function Jt(e) {
|
|
6
15
|
return () => e;
|
|
@@ -203,7 +212,7 @@ function U(e, t = [], { singleton: o } = { singleton: !0 }) {
|
|
|
203
212
|
};
|
|
204
213
|
}
|
|
205
214
|
const cn = () => /* @__PURE__ */ Symbol();
|
|
206
|
-
function
|
|
215
|
+
function un(e) {
|
|
207
216
|
const t = /* @__PURE__ */ new Map(), o = ({ constructor: n, dependencies: r, id: i, singleton: s }) => {
|
|
208
217
|
if (s && t.has(i))
|
|
209
218
|
return t.get(i);
|
|
@@ -245,7 +254,7 @@ function bt(...e) {
|
|
|
245
254
|
}
|
|
246
255
|
};
|
|
247
256
|
}
|
|
248
|
-
const
|
|
257
|
+
const ae = {
|
|
249
258
|
/** Detailed debugging information including item measurements */
|
|
250
259
|
DEBUG: 0,
|
|
251
260
|
/** General informational messages */
|
|
@@ -254,19 +263,19 @@ const ue = {
|
|
|
254
263
|
WARN: 2,
|
|
255
264
|
/** Error messages for failures (default level) */
|
|
256
265
|
ERROR: 3
|
|
257
|
-
},
|
|
258
|
-
[
|
|
259
|
-
[
|
|
260
|
-
[
|
|
261
|
-
[
|
|
266
|
+
}, an = {
|
|
267
|
+
[ae.DEBUG]: "debug",
|
|
268
|
+
[ae.ERROR]: "error",
|
|
269
|
+
[ae.INFO]: "log",
|
|
270
|
+
[ae.WARN]: "warn"
|
|
262
271
|
}, dn = () => typeof globalThis > "u" ? window : globalThis, Ve = U(
|
|
263
272
|
() => {
|
|
264
|
-
const e = T(
|
|
273
|
+
const e = T(ae.ERROR);
|
|
265
274
|
return {
|
|
266
|
-
log: T((t, o, n =
|
|
275
|
+
log: T((t, o, n = ae.INFO) => {
|
|
267
276
|
var i;
|
|
268
277
|
const r = (i = dn().VIRTUOSO_LOG_LEVEL) != null ? i : oe(e);
|
|
269
|
-
n >= r && console[
|
|
278
|
+
n >= r && console[an[n]](
|
|
270
279
|
"%creact-virtuoso: %c%s %o",
|
|
271
280
|
"color: #0253b3; font-weight: bold",
|
|
272
281
|
"color: initial",
|
|
@@ -308,11 +317,11 @@ function fn(e, t, o, n, r, i, s, l, c) {
|
|
|
308
317
|
const v = m.lastElementChild.dataset.viewportType === "window";
|
|
309
318
|
let C;
|
|
310
319
|
v && (C = m.ownerDocument.defaultView);
|
|
311
|
-
const y = s ? l ? s.scrollLeft : s.scrollTop : v ? l ? C.scrollX || C.document.documentElement.scrollLeft : C.scrollY || C.document.documentElement.scrollTop : l ? m.scrollLeft : m.scrollTop, x = s ? l ? s.scrollWidth : s.scrollHeight : v ? l ? C.document.documentElement.scrollWidth : C.document.documentElement.scrollHeight : l ? m.scrollWidth : m.scrollHeight,
|
|
320
|
+
const y = s ? l ? s.scrollLeft : s.scrollTop : v ? l ? C.scrollX || C.document.documentElement.scrollLeft : C.scrollY || C.document.documentElement.scrollTop : l ? m.scrollLeft : m.scrollTop, x = s ? l ? s.scrollWidth : s.scrollHeight : v ? l ? C.document.documentElement.scrollWidth : C.document.documentElement.scrollHeight : l ? m.scrollWidth : m.scrollHeight, a = s ? l ? s.offsetWidth : s.offsetHeight : v ? l ? C.innerWidth : C.innerHeight : l ? m.offsetWidth : m.offsetHeight;
|
|
312
321
|
n({
|
|
313
322
|
scrollHeight: x,
|
|
314
323
|
scrollTop: Math.max(y, 0),
|
|
315
|
-
viewportHeight:
|
|
324
|
+
viewportHeight: a
|
|
316
325
|
}), i == null || i(
|
|
317
326
|
l ? to("column-gap", getComputedStyle(h).columnGap, r) : to("row-gap", getComputedStyle(h).rowGap, r)
|
|
318
327
|
), I !== null && e(I);
|
|
@@ -331,7 +340,7 @@ function hn(e, t, o, n) {
|
|
|
331
340
|
if (l.dataset.index === void 0)
|
|
332
341
|
continue;
|
|
333
342
|
const c = parseInt(l.dataset.index), d = parseFloat(l.dataset.knownSize), h = t(l, o);
|
|
334
|
-
if (h === 0 && n("Zero-sized element, this should not happen", { child: l },
|
|
343
|
+
if (h === 0 && n("Zero-sized element, this should not happen", { child: l }, ae.ERROR), h === d)
|
|
335
344
|
continue;
|
|
336
345
|
const I = i[i.length - 1];
|
|
337
346
|
i.length === 0 || I.size !== h || I.endIndex !== c - 1 ? i.push({ endIndex: c, size: h, startIndex: c }) : i[i.length - 1].endIndex++;
|
|
@@ -339,7 +348,7 @@ function hn(e, t, o, n) {
|
|
|
339
348
|
return i;
|
|
340
349
|
}
|
|
341
350
|
function to(e, t, o) {
|
|
342
|
-
return t !== "normal" && (t == null ? void 0 : t.endsWith("px")) !== !0 && o(`${e} was not resolved to pixel value correctly`, t,
|
|
351
|
+
return t !== "normal" && (t == null ? void 0 : t.endsWith("px")) !== !0 && o(`${e} was not resolved to pixel value correctly`, t, ae.WARN), t === "normal" ? 0 : parseInt(t != null ? t : "0", 10);
|
|
343
352
|
}
|
|
344
353
|
function So(e, t, o) {
|
|
345
354
|
const n = B.useRef(null), r = B.useCallback(
|
|
@@ -454,7 +463,7 @@ function be(e, t, o = "k") {
|
|
|
454
463
|
return be(e.l, t, o);
|
|
455
464
|
}
|
|
456
465
|
function Te(e, t, o) {
|
|
457
|
-
return Q(e) ? Ro(t, o, 1) : t === e.k ?
|
|
466
|
+
return Q(e) ? Ro(t, o, 1) : t === e.k ? ue(e, { k: t, v: o }) : t < e.k ? oo(ue(e, { l: Te(e.l, t, o) })) : oo(ue(e, { r: Te(e.r, t, o) }));
|
|
458
467
|
}
|
|
459
468
|
function $e() {
|
|
460
469
|
return et;
|
|
@@ -475,9 +484,9 @@ function Et(e, t) {
|
|
|
475
484
|
if (Q(r))
|
|
476
485
|
return n;
|
|
477
486
|
const [i, s] = Ho(n);
|
|
478
|
-
return mt(
|
|
487
|
+
return mt(ue(e, { k: i, l: zo(n), v: s }));
|
|
479
488
|
}
|
|
480
|
-
return t < o ? mt(
|
|
489
|
+
return t < o ? mt(ue(e, { l: Et(n, t) })) : mt(ue(e, { r: Et(r, t) }));
|
|
481
490
|
}
|
|
482
491
|
function De(e) {
|
|
483
492
|
return Q(e) ? [] : [...De(e.l), { k: e.k, v: e.v }, ...De(e.r)];
|
|
@@ -495,12 +504,12 @@ function mt(e) {
|
|
|
495
504
|
return e;
|
|
496
505
|
if (o > n.lvl + 1) {
|
|
497
506
|
if (Ct(t))
|
|
498
|
-
return yo(
|
|
507
|
+
return yo(ue(e, { lvl: o - 1 }));
|
|
499
508
|
if (!Q(t) && !Q(t.r))
|
|
500
|
-
return
|
|
501
|
-
l:
|
|
509
|
+
return ue(t.r, {
|
|
510
|
+
l: ue(t, { r: t.r.l }),
|
|
502
511
|
lvl: o,
|
|
503
|
-
r:
|
|
512
|
+
r: ue(e, {
|
|
504
513
|
l: t.r.r,
|
|
505
514
|
lvl: o - 1
|
|
506
515
|
})
|
|
@@ -508,21 +517,21 @@ function mt(e) {
|
|
|
508
517
|
throw new Error("Unexpected empty nodes");
|
|
509
518
|
}
|
|
510
519
|
if (Ct(e))
|
|
511
|
-
return kt(
|
|
520
|
+
return kt(ue(e, { lvl: o - 1 }));
|
|
512
521
|
if (!Q(n) && !Q(n.l)) {
|
|
513
522
|
const r = n.l, i = Ct(r) ? n.lvl - 1 : n.lvl;
|
|
514
|
-
return
|
|
515
|
-
l:
|
|
523
|
+
return ue(r, {
|
|
524
|
+
l: ue(e, {
|
|
516
525
|
lvl: o - 1,
|
|
517
526
|
r: r.l
|
|
518
527
|
}),
|
|
519
528
|
lvl: r.lvl + 1,
|
|
520
|
-
r: kt(
|
|
529
|
+
r: kt(ue(n, { l: r.r, lvl: i }))
|
|
521
530
|
});
|
|
522
531
|
}
|
|
523
532
|
throw new Error("Unexpected empty nodes");
|
|
524
533
|
}
|
|
525
|
-
function
|
|
534
|
+
function ue(e, t) {
|
|
526
535
|
return Ro(
|
|
527
536
|
t.k !== void 0 ? t.k : e.k,
|
|
528
537
|
t.v !== void 0 ? t.v : e.v,
|
|
@@ -532,7 +541,7 @@ function ae(e, t) {
|
|
|
532
541
|
);
|
|
533
542
|
}
|
|
534
543
|
function zo(e) {
|
|
535
|
-
return Q(e.r) ? e.l : mt(
|
|
544
|
+
return Q(e.r) ? e.l : mt(ue(e, { r: zo(e.r) }));
|
|
536
545
|
}
|
|
537
546
|
function Ct(e) {
|
|
538
547
|
return Q(e) || e.lvl > e.r.lvl;
|
|
@@ -548,11 +557,11 @@ function oo(e) {
|
|
|
548
557
|
}
|
|
549
558
|
function yo(e) {
|
|
550
559
|
const { l: t } = e;
|
|
551
|
-
return !Q(t) && t.lvl === e.lvl ?
|
|
560
|
+
return !Q(t) && t.lvl === e.lvl ? ue(t, { r: ue(e, { l: t.r }) }) : e;
|
|
552
561
|
}
|
|
553
562
|
function kt(e) {
|
|
554
563
|
const { lvl: t, r: o } = e;
|
|
555
|
-
return !Q(o) && !Q(o.r) && o.lvl === t && o.r.lvl === t ?
|
|
564
|
+
return !Q(o) && !Q(o.r) && o.lvl === t && o.r.lvl === t ? ue(o, { l: ue(e, { r: o.l }), lvl: t + 1 }) : e;
|
|
556
565
|
}
|
|
557
566
|
function mn(e) {
|
|
558
567
|
return Co(e, ({ k: t, v: o }) => ({ index: t, value: o }));
|
|
@@ -599,7 +608,7 @@ function We(e, t) {
|
|
|
599
608
|
function Tt(e) {
|
|
600
609
|
return !Q(e.groupOffsetTree);
|
|
601
610
|
}
|
|
602
|
-
function
|
|
611
|
+
function At({ index: e }, t) {
|
|
603
612
|
return t === e ? 0 : t < e ? -1 : 1;
|
|
604
613
|
}
|
|
605
614
|
function pn() {
|
|
@@ -640,7 +649,7 @@ function In({ offset: e }, t) {
|
|
|
640
649
|
function nt(e, t, o) {
|
|
641
650
|
if (t.length === 0)
|
|
642
651
|
return 0;
|
|
643
|
-
const { index: n, offset: r, size: i } = Eo(t, e,
|
|
652
|
+
const { index: n, offset: r, size: i } = Eo(t, e, At), s = e - n, l = i * s + (s - 1) * o + r;
|
|
644
653
|
return l > 0 ? l + o : l;
|
|
645
654
|
}
|
|
646
655
|
function Bo(e, t) {
|
|
@@ -659,10 +668,10 @@ function ko(e, t, o) {
|
|
|
659
668
|
return r = Math.max(0, r, Math.min(o, r)), r;
|
|
660
669
|
}
|
|
661
670
|
function Tn(e, t, o, n = 0) {
|
|
662
|
-
return n > 0 && (t = Math.max(t, Eo(e, n,
|
|
671
|
+
return n > 0 && (t = Math.max(t, Eo(e, n, At).offset)), Co(gn(e, t, o, In), Cn);
|
|
663
672
|
}
|
|
664
673
|
function wn(e, [t, o, n, r]) {
|
|
665
|
-
t.length > 0 && n("received item sizes", t,
|
|
674
|
+
t.length > 0 && n("received item sizes", t, ae.DEBUG);
|
|
666
675
|
const i = e.sizeTree;
|
|
667
676
|
let s = i, l = 0;
|
|
668
677
|
if (o.length > 0 && Q(i) && t.length === 2) {
|
|
@@ -698,7 +707,7 @@ function no(e, t) {
|
|
|
698
707
|
function Ot(e, t, o, n) {
|
|
699
708
|
let r = e, i = 0, s = 0, l = 0, c = 0;
|
|
700
709
|
if (t !== 0) {
|
|
701
|
-
c = pt(r, t - 1,
|
|
710
|
+
c = pt(r, t - 1, At), l = r[c].offset;
|
|
702
711
|
const d = be(o, t - 1);
|
|
703
712
|
i = d[0], s = d[1], r.length && r[c].size === be(o, t)[1] && (c -= 1), r = r.slice(0, c + 1);
|
|
704
713
|
} else
|
|
@@ -730,46 +739,46 @@ const Hn = {
|
|
|
730
739
|
offsetWidth: "width"
|
|
731
740
|
}, Oe = U(
|
|
732
741
|
([{ log: e }, { recalcInProgress: t }]) => {
|
|
733
|
-
const o = _(), n = _(), r = pe(n, 0), i = _(), s = _(), l = T(0), c = T([]), d = T(void 0), h = T(void 0), I = T(void 0), m = T(void 0), v = T((
|
|
742
|
+
const o = _(), n = _(), r = pe(n, 0), i = _(), s = _(), l = T(0), c = T([]), d = T(void 0), h = T(void 0), I = T(void 0), m = T(void 0), v = T((u, g) => We(u, Hn[g])), C = T(void 0), y = T(0), x = pn(), a = pe(
|
|
734
743
|
p(o, F(c, e, y), ke(wn, x), q()),
|
|
735
744
|
x
|
|
736
745
|
), f = pe(
|
|
737
746
|
p(
|
|
738
747
|
c,
|
|
739
748
|
q(),
|
|
740
|
-
ke((
|
|
749
|
+
ke((u, g) => ({ current: g, prev: u.current }), {
|
|
741
750
|
current: [],
|
|
742
751
|
prev: []
|
|
743
752
|
}),
|
|
744
|
-
R(({ prev:
|
|
753
|
+
R(({ prev: u }) => u)
|
|
745
754
|
),
|
|
746
755
|
[]
|
|
747
756
|
);
|
|
748
757
|
k(
|
|
749
758
|
p(
|
|
750
759
|
c,
|
|
751
|
-
P((
|
|
752
|
-
F(
|
|
753
|
-
R(([
|
|
754
|
-
const O =
|
|
760
|
+
P((u) => u.length > 0),
|
|
761
|
+
F(a, y),
|
|
762
|
+
R(([u, g, S]) => {
|
|
763
|
+
const O = u.reduce((b, A, j) => Te(b, A, nt(A, g.offsetTree, S) || j), $e());
|
|
755
764
|
return {
|
|
756
765
|
...g,
|
|
757
|
-
groupIndices:
|
|
766
|
+
groupIndices: u,
|
|
758
767
|
groupOffsetTree: O
|
|
759
768
|
};
|
|
760
769
|
})
|
|
761
770
|
),
|
|
762
|
-
|
|
771
|
+
a
|
|
763
772
|
), k(
|
|
764
773
|
p(
|
|
765
774
|
n,
|
|
766
|
-
F(
|
|
767
|
-
P(([
|
|
768
|
-
R(([
|
|
775
|
+
F(a),
|
|
776
|
+
P(([u, { lastIndex: g }]) => u < g),
|
|
777
|
+
R(([u, { lastIndex: g, lastSize: S }]) => [
|
|
769
778
|
{
|
|
770
779
|
endIndex: g,
|
|
771
780
|
size: S,
|
|
772
|
-
startIndex:
|
|
781
|
+
startIndex: u
|
|
773
782
|
}
|
|
774
783
|
])
|
|
775
784
|
),
|
|
@@ -778,40 +787,40 @@ const Hn = {
|
|
|
778
787
|
const w = pe(
|
|
779
788
|
p(
|
|
780
789
|
d,
|
|
781
|
-
R((
|
|
790
|
+
R((u) => u === void 0)
|
|
782
791
|
),
|
|
783
792
|
!0
|
|
784
793
|
);
|
|
785
794
|
k(
|
|
786
795
|
p(
|
|
787
796
|
h,
|
|
788
|
-
P((
|
|
789
|
-
R((
|
|
797
|
+
P((u) => u !== void 0 && Q(oe(a).sizeTree)),
|
|
798
|
+
R((u) => {
|
|
790
799
|
const g = oe(I), S = oe(c).length > 0;
|
|
791
800
|
return g !== void 0 && g !== 0 ? S ? [
|
|
792
801
|
{ endIndex: 0, size: g, startIndex: 0 },
|
|
793
|
-
{ endIndex: 1, size:
|
|
794
|
-
] : [] : [{ endIndex: 0, size:
|
|
802
|
+
{ endIndex: 1, size: u, startIndex: 1 }
|
|
803
|
+
] : [] : [{ endIndex: 0, size: u, startIndex: 0 }];
|
|
795
804
|
})
|
|
796
805
|
),
|
|
797
806
|
o
|
|
798
807
|
), k(
|
|
799
808
|
p(
|
|
800
809
|
m,
|
|
801
|
-
P((
|
|
802
|
-
R((
|
|
810
|
+
P((u) => u !== void 0 && u.length > 0 && Q(oe(a).sizeTree)),
|
|
811
|
+
R((u) => {
|
|
803
812
|
const g = [];
|
|
804
|
-
let S =
|
|
805
|
-
for (let b = 1; b <
|
|
806
|
-
const
|
|
807
|
-
|
|
813
|
+
let S = u[0], O = 0;
|
|
814
|
+
for (let b = 1; b < u.length; b++) {
|
|
815
|
+
const A = u[b];
|
|
816
|
+
A !== S && (g.push({
|
|
808
817
|
endIndex: b - 1,
|
|
809
818
|
size: S,
|
|
810
819
|
startIndex: O
|
|
811
|
-
}), S =
|
|
820
|
+
}), S = A, O = b);
|
|
812
821
|
}
|
|
813
822
|
return g.push({
|
|
814
|
-
endIndex:
|
|
823
|
+
endIndex: u.length - 1,
|
|
815
824
|
size: S,
|
|
816
825
|
startIndex: O
|
|
817
826
|
}), g;
|
|
@@ -822,18 +831,18 @@ const Hn = {
|
|
|
822
831
|
p(
|
|
823
832
|
c,
|
|
824
833
|
F(I, h),
|
|
825
|
-
P(([,
|
|
826
|
-
R(([
|
|
834
|
+
P(([, u, g]) => u !== void 0 && g !== void 0),
|
|
835
|
+
R(([u, g, S]) => {
|
|
827
836
|
const O = [];
|
|
828
|
-
for (let b = 0; b <
|
|
829
|
-
const
|
|
837
|
+
for (let b = 0; b < u.length; b++) {
|
|
838
|
+
const A = u[b], j = u[b + 1];
|
|
830
839
|
O.push({
|
|
831
|
-
startIndex:
|
|
832
|
-
endIndex:
|
|
840
|
+
startIndex: A,
|
|
841
|
+
endIndex: A,
|
|
833
842
|
size: g
|
|
834
|
-
}),
|
|
835
|
-
startIndex:
|
|
836
|
-
endIndex:
|
|
843
|
+
}), j !== void 0 && O.push({
|
|
844
|
+
startIndex: A + 1,
|
|
845
|
+
endIndex: j - 1,
|
|
837
846
|
size: S
|
|
838
847
|
});
|
|
839
848
|
}
|
|
@@ -845,93 +854,93 @@ const Hn = {
|
|
|
845
854
|
const E = we(
|
|
846
855
|
p(
|
|
847
856
|
o,
|
|
848
|
-
F(
|
|
857
|
+
F(a),
|
|
849
858
|
ke(
|
|
850
|
-
({ sizes:
|
|
851
|
-
changed: S !==
|
|
859
|
+
({ sizes: u }, [g, S]) => ({
|
|
860
|
+
changed: S !== u,
|
|
852
861
|
sizes: S
|
|
853
862
|
}),
|
|
854
863
|
{ changed: !1, sizes: x }
|
|
855
864
|
),
|
|
856
|
-
R((
|
|
865
|
+
R((u) => u.changed)
|
|
857
866
|
)
|
|
858
867
|
);
|
|
859
868
|
X(
|
|
860
869
|
p(
|
|
861
870
|
l,
|
|
862
871
|
ke(
|
|
863
|
-
(
|
|
872
|
+
(u, g) => ({ diff: u.prev - g, prev: g }),
|
|
864
873
|
{ diff: 0, prev: 0 }
|
|
865
874
|
),
|
|
866
|
-
R((
|
|
875
|
+
R((u) => u.diff)
|
|
867
876
|
),
|
|
868
|
-
(
|
|
869
|
-
const { groupIndices: g } = oe(
|
|
870
|
-
if (
|
|
871
|
-
D(t, !0), D(i,
|
|
872
|
-
else if (
|
|
877
|
+
(u) => {
|
|
878
|
+
const { groupIndices: g } = oe(a);
|
|
879
|
+
if (u > 0)
|
|
880
|
+
D(t, !0), D(i, u + no(u, g));
|
|
881
|
+
else if (u < 0) {
|
|
873
882
|
const S = oe(f);
|
|
874
|
-
S.length > 0 && (
|
|
883
|
+
S.length > 0 && (u -= no(-u, S)), D(s, u);
|
|
875
884
|
}
|
|
876
885
|
}
|
|
877
|
-
), X(p(l, F(e)), ([
|
|
878
|
-
|
|
886
|
+
), X(p(l, F(e)), ([u, g]) => {
|
|
887
|
+
u < 0 && g(
|
|
879
888
|
"`firstItemIndex` prop should not be set to less than zero. If you don't know the total count, just use a very high value",
|
|
880
889
|
{ firstItemIndex: l },
|
|
881
|
-
|
|
890
|
+
ae.ERROR
|
|
882
891
|
);
|
|
883
892
|
});
|
|
884
893
|
const z = we(i);
|
|
885
894
|
k(
|
|
886
895
|
p(
|
|
887
896
|
i,
|
|
888
|
-
F(
|
|
889
|
-
R(([
|
|
897
|
+
F(a),
|
|
898
|
+
R(([u, g]) => {
|
|
890
899
|
const S = g.groupIndices.length > 0, O = [], b = g.lastSize;
|
|
891
900
|
if (S) {
|
|
892
|
-
const
|
|
893
|
-
let
|
|
894
|
-
for (;
|
|
901
|
+
const A = tt(g.sizeTree, 0);
|
|
902
|
+
let j = 0, Z = 0;
|
|
903
|
+
for (; j < u; ) {
|
|
895
904
|
const $ = g.groupIndices[Z], G = g.groupIndices.length === Z + 1 ? 1 / 0 : g.groupIndices[Z + 1] - $ - 1;
|
|
896
905
|
O.push({
|
|
897
906
|
endIndex: $,
|
|
898
|
-
size:
|
|
907
|
+
size: A,
|
|
899
908
|
startIndex: $
|
|
900
909
|
}), O.push({
|
|
901
910
|
endIndex: $ + 1 + G - 1,
|
|
902
911
|
size: b,
|
|
903
912
|
startIndex: $ + 1
|
|
904
|
-
}), Z++,
|
|
913
|
+
}), Z++, j += G + 1;
|
|
905
914
|
}
|
|
906
915
|
const L = De(g.sizeTree);
|
|
907
|
-
return
|
|
916
|
+
return j !== u && L.shift(), L.reduce(
|
|
908
917
|
($, { k: G, v: se }) => {
|
|
909
918
|
let Se = $.ranges;
|
|
910
919
|
return $.prevSize !== 0 && (Se = [
|
|
911
920
|
...$.ranges,
|
|
912
921
|
{
|
|
913
|
-
endIndex: G +
|
|
922
|
+
endIndex: G + u - 1,
|
|
914
923
|
size: $.prevSize,
|
|
915
924
|
startIndex: $.prevIndex
|
|
916
925
|
}
|
|
917
926
|
]), {
|
|
918
|
-
prevIndex: G +
|
|
927
|
+
prevIndex: G + u,
|
|
919
928
|
prevSize: se,
|
|
920
929
|
ranges: Se
|
|
921
930
|
};
|
|
922
931
|
},
|
|
923
932
|
{
|
|
924
|
-
prevIndex:
|
|
933
|
+
prevIndex: u,
|
|
925
934
|
prevSize: 0,
|
|
926
935
|
ranges: O
|
|
927
936
|
}
|
|
928
937
|
).ranges;
|
|
929
938
|
}
|
|
930
939
|
return De(g.sizeTree).reduce(
|
|
931
|
-
(
|
|
932
|
-
prevIndex:
|
|
940
|
+
(A, { k: j, v: Z }) => ({
|
|
941
|
+
prevIndex: j + u,
|
|
933
942
|
prevSize: Z,
|
|
934
|
-
ranges: [...
|
|
943
|
+
ranges: [...A.ranges, { endIndex: j + u - 1, size: A.prevSize, startIndex: A.prevIndex }]
|
|
935
944
|
}),
|
|
936
945
|
{
|
|
937
946
|
prevIndex: 0,
|
|
@@ -946,9 +955,9 @@ const Hn = {
|
|
|
946
955
|
const M = we(
|
|
947
956
|
p(
|
|
948
957
|
s,
|
|
949
|
-
F(
|
|
950
|
-
R(([
|
|
951
|
-
const O = -
|
|
958
|
+
F(a, y),
|
|
959
|
+
R(([u, { offsetTree: g }, S]) => {
|
|
960
|
+
const O = -u;
|
|
952
961
|
return nt(O, g, S);
|
|
953
962
|
})
|
|
954
963
|
)
|
|
@@ -956,23 +965,23 @@ const Hn = {
|
|
|
956
965
|
return k(
|
|
957
966
|
p(
|
|
958
967
|
s,
|
|
959
|
-
F(
|
|
960
|
-
R(([
|
|
968
|
+
F(a, y),
|
|
969
|
+
R(([u, g, S]) => {
|
|
961
970
|
if (g.groupIndices.length > 0) {
|
|
962
971
|
if (Q(g.sizeTree))
|
|
963
972
|
return g;
|
|
964
973
|
let b = $e();
|
|
965
|
-
const
|
|
966
|
-
let
|
|
967
|
-
for (;
|
|
968
|
-
L =
|
|
969
|
-
const $ =
|
|
970
|
-
Z++,
|
|
974
|
+
const A = oe(f);
|
|
975
|
+
let j = 0, Z = 0, L = 0;
|
|
976
|
+
for (; j < -u; ) {
|
|
977
|
+
L = A[Z];
|
|
978
|
+
const $ = A[Z + 1] - L - 1;
|
|
979
|
+
Z++, j += $ + 1;
|
|
971
980
|
}
|
|
972
|
-
if (b = De(g.sizeTree).reduce(($, { k: G, v: se }) => Te($, Math.max(0, G +
|
|
981
|
+
if (b = De(g.sizeTree).reduce(($, { k: G, v: se }) => Te($, Math.max(0, G + u), se), b), j !== -u) {
|
|
973
982
|
const $ = tt(g.sizeTree, L);
|
|
974
983
|
b = Te(b, 0, $);
|
|
975
|
-
const G = be(g.sizeTree, -
|
|
984
|
+
const G = be(g.sizeTree, -u + 1)[1];
|
|
976
985
|
b = Te(b, 1, G);
|
|
977
986
|
}
|
|
978
987
|
return {
|
|
@@ -981,7 +990,7 @@ const Hn = {
|
|
|
981
990
|
...Ot(g.offsetTree, 0, b, S)
|
|
982
991
|
};
|
|
983
992
|
}
|
|
984
|
-
const O = De(g.sizeTree).reduce((b, { k:
|
|
993
|
+
const O = De(g.sizeTree).reduce((b, { k: A, v: j }) => Te(b, Math.max(0, A + u), j), $e());
|
|
985
994
|
return {
|
|
986
995
|
...g,
|
|
987
996
|
sizeTree: O,
|
|
@@ -989,7 +998,7 @@ const Hn = {
|
|
|
989
998
|
};
|
|
990
999
|
})
|
|
991
1000
|
),
|
|
992
|
-
|
|
1001
|
+
a
|
|
993
1002
|
), {
|
|
994
1003
|
beforeUnshiftWith: z,
|
|
995
1004
|
// input
|
|
@@ -1007,7 +1016,7 @@ const Hn = {
|
|
|
1007
1016
|
shiftWithOffset: M,
|
|
1008
1017
|
sizeRanges: o,
|
|
1009
1018
|
// output
|
|
1010
|
-
sizes:
|
|
1019
|
+
sizes: a,
|
|
1011
1020
|
statefulTotalCount: r,
|
|
1012
1021
|
totalCount: n,
|
|
1013
1022
|
trackItemSizes: w,
|
|
@@ -1053,7 +1062,7 @@ const Oo = U(
|
|
|
1053
1062
|
), { groupCounts: i, topItemsIndexes: s };
|
|
1054
1063
|
},
|
|
1055
1064
|
ee(Oe, ve)
|
|
1056
|
-
),
|
|
1065
|
+
), Ae = U(
|
|
1057
1066
|
([{ log: e }]) => {
|
|
1058
1067
|
const t = T(!1), o = we(
|
|
1059
1068
|
p(
|
|
@@ -1063,7 +1072,7 @@ const Oo = U(
|
|
|
1063
1072
|
)
|
|
1064
1073
|
);
|
|
1065
1074
|
return X(t, (n) => {
|
|
1066
|
-
n && oe(e)("props updated", {},
|
|
1075
|
+
n && oe(e)("props updated", {}, ae.DEBUG);
|
|
1067
1076
|
}), { didMount: o, propsReady: t };
|
|
1068
1077
|
},
|
|
1069
1078
|
ee(Ve),
|
|
@@ -1089,9 +1098,9 @@ const lt = U(
|
|
|
1089
1098
|
{ log: m }
|
|
1090
1099
|
]) => {
|
|
1091
1100
|
const v = _(), C = _(), y = T(0);
|
|
1092
|
-
let x = null,
|
|
1101
|
+
let x = null, a = null, f = null;
|
|
1093
1102
|
function w() {
|
|
1094
|
-
x !== null && (x(), x = null), f !== null && (f(), f = null),
|
|
1103
|
+
x !== null && (x(), x = null), f !== null && (f(), f = null), a && (clearTimeout(a), a = null), D(c, !1);
|
|
1095
1104
|
}
|
|
1096
1105
|
return k(
|
|
1097
1106
|
p(
|
|
@@ -1100,16 +1109,16 @@ const lt = U(
|
|
|
1100
1109
|
F(e, i, r),
|
|
1101
1110
|
R(
|
|
1102
1111
|
([
|
|
1103
|
-
[E, z, M,
|
|
1104
|
-
j,
|
|
1112
|
+
[E, z, M, u, g, S, O, b],
|
|
1105
1113
|
A,
|
|
1114
|
+
j,
|
|
1106
1115
|
Z
|
|
1107
1116
|
]) => {
|
|
1108
|
-
const L = Lo(E), { align: $, behavior: G, offset: se } = L, Se =
|
|
1109
|
-
let Ie = nt(xe, z.offsetTree,
|
|
1110
|
-
$ === "end" ? (Ie +=
|
|
1117
|
+
const L = Lo(E), { align: $, behavior: G, offset: se } = L, Se = u - 1, xe = ko(L, z, Se);
|
|
1118
|
+
let Ie = nt(xe, z.offsetTree, A) + S;
|
|
1119
|
+
$ === "end" ? (Ie += j + be(z.sizeTree, xe)[1] - M + Z, xe === Se && (Ie += O)) : $ === "center" ? Ie += (j + be(z.sizeTree, xe)[1] - M + Z) / 2 : Ie -= g, se !== void 0 && se !== 0 && (Ie += se);
|
|
1111
1120
|
const Me = (he) => {
|
|
1112
|
-
w(), he ? (b("retrying to scroll to", { location: E },
|
|
1121
|
+
w(), he ? (b("retrying to scroll to", { location: E }, ae.DEBUG), D(v, E)) : (D(C, !0), b("list did not change, scroll successful", {}, ae.DEBUG));
|
|
1113
1122
|
};
|
|
1114
1123
|
if (w(), G === "smooth") {
|
|
1115
1124
|
let he = !1;
|
|
@@ -1120,9 +1129,9 @@ const lt = U(
|
|
|
1120
1129
|
});
|
|
1121
1130
|
} else
|
|
1122
1131
|
x = ye(p(t, bn(150)), Me);
|
|
1123
|
-
return
|
|
1132
|
+
return a = setTimeout(() => {
|
|
1124
1133
|
w();
|
|
1125
|
-
}, 1200), D(c, !0), b("scrolling from index to", { behavior: G, index: xe, top: Ie },
|
|
1134
|
+
}, 1200), D(c, !0), b("scrolling from index to", { behavior: G, index: xe, top: Ie }, ae.DEBUG), { behavior: G, top: Ie };
|
|
1126
1135
|
}
|
|
1127
1136
|
)
|
|
1128
1137
|
),
|
|
@@ -1146,9 +1155,9 @@ function bn(e) {
|
|
|
1146
1155
|
};
|
|
1147
1156
|
};
|
|
1148
1157
|
}
|
|
1149
|
-
function
|
|
1158
|
+
function jt(e, t) {
|
|
1150
1159
|
e === 0 ? t() : requestAnimationFrame(() => {
|
|
1151
|
-
|
|
1160
|
+
jt(e - 1, t);
|
|
1152
1161
|
});
|
|
1153
1162
|
}
|
|
1154
1163
|
function Dt(e, t) {
|
|
@@ -1184,7 +1193,7 @@ const ct = U(
|
|
|
1184
1193
|
([, h]) => {
|
|
1185
1194
|
ye(r, () => {
|
|
1186
1195
|
D(d, !0);
|
|
1187
|
-
}),
|
|
1196
|
+
}), jt(4, () => {
|
|
1188
1197
|
ye(n, () => {
|
|
1189
1198
|
D(l, !0);
|
|
1190
1199
|
}), D(i, h);
|
|
@@ -1196,7 +1205,7 @@ const ct = U(
|
|
|
1196
1205
|
scrolledToInitialItem: l
|
|
1197
1206
|
};
|
|
1198
1207
|
},
|
|
1199
|
-
ee(Oe, ve, lt,
|
|
1208
|
+
ee(Oe, ve, lt, Ae),
|
|
1200
1209
|
{ singleton: !0 }
|
|
1201
1210
|
);
|
|
1202
1211
|
function Mo(e, t) {
|
|
@@ -1211,7 +1220,7 @@ const rt = "up", Je = "down", En = "none", Bn = {
|
|
|
1211
1220
|
scrollTop: 0,
|
|
1212
1221
|
viewportHeight: 0
|
|
1213
1222
|
}
|
|
1214
|
-
}, kn = 0,
|
|
1223
|
+
}, kn = 0, ut = U(([{ footerHeight: e, headerHeight: t, scrollBy: o, scrollContainerState: n, scrollTop: r, viewportHeight: i }]) => {
|
|
1215
1224
|
const s = T(!1), l = T(!0), c = _(), d = _(), h = T(4), I = T(kn), m = pe(
|
|
1216
1225
|
p(
|
|
1217
1226
|
bt(p(W(r), Fe(1), Be(!0)), p(W(r), Fe(1), Be(!1), eo(100))),
|
|
@@ -1233,18 +1242,18 @@ const rt = "up", Je = "down", En = "none", Bn = {
|
|
|
1233
1242
|
const C = we(
|
|
1234
1243
|
p(
|
|
1235
1244
|
ie(n, W(i), W(t), W(e), W(h)),
|
|
1236
|
-
ke((f, [{ scrollHeight: w, scrollTop: E }, z, M,
|
|
1245
|
+
ke((f, [{ scrollHeight: w, scrollTop: E }, z, M, u, g]) => {
|
|
1237
1246
|
const S = E + z - w > -g, O = {
|
|
1238
1247
|
scrollHeight: w,
|
|
1239
1248
|
scrollTop: E,
|
|
1240
1249
|
viewportHeight: z
|
|
1241
1250
|
};
|
|
1242
1251
|
if (S) {
|
|
1243
|
-
let
|
|
1244
|
-
return E > f.state.scrollTop ? (
|
|
1252
|
+
let A, j;
|
|
1253
|
+
return E > f.state.scrollTop ? (A = "SCROLLED_DOWN", j = f.state.scrollTop - E) : (A = "SIZE_DECREASED", j = f.state.scrollTop - E || f.scrollTopDelta), {
|
|
1245
1254
|
atBottom: !0,
|
|
1246
|
-
atBottomBecause:
|
|
1247
|
-
scrollTopDelta:
|
|
1255
|
+
atBottomBecause: A,
|
|
1256
|
+
scrollTopDelta: j,
|
|
1248
1257
|
state: O
|
|
1249
1258
|
};
|
|
1250
1259
|
}
|
|
@@ -1311,14 +1320,14 @@ const rt = "up", Je = "down", En = "none", Bn = {
|
|
|
1311
1320
|
),
|
|
1312
1321
|
x
|
|
1313
1322
|
), k(p(n, Le(50), Be(En)), x);
|
|
1314
|
-
const
|
|
1323
|
+
const a = T(0);
|
|
1315
1324
|
return k(
|
|
1316
1325
|
p(
|
|
1317
1326
|
m,
|
|
1318
1327
|
P((f) => !f),
|
|
1319
1328
|
Be(0)
|
|
1320
1329
|
),
|
|
1321
|
-
|
|
1330
|
+
a
|
|
1322
1331
|
), k(
|
|
1323
1332
|
p(
|
|
1324
1333
|
r,
|
|
@@ -1328,7 +1337,7 @@ const rt = "up", Je = "down", En = "none", Bn = {
|
|
|
1328
1337
|
ke(([f, w], [E]) => [w, E], [0, 0]),
|
|
1329
1338
|
R(([f, w]) => w - f)
|
|
1330
1339
|
),
|
|
1331
|
-
|
|
1340
|
+
a
|
|
1332
1341
|
), {
|
|
1333
1342
|
atBottomState: C,
|
|
1334
1343
|
atBottomStateChange: c,
|
|
@@ -1340,7 +1349,7 @@ const rt = "up", Je = "down", En = "none", Bn = {
|
|
|
1340
1349
|
isScrolling: m,
|
|
1341
1350
|
lastJumpDueToItemResize: y,
|
|
1342
1351
|
scrollDirection: x,
|
|
1343
|
-
scrollVelocity:
|
|
1352
|
+
scrollVelocity: a
|
|
1344
1353
|
};
|
|
1345
1354
|
}, ee(ve)), it = "top", st = "bottom", ro = "none";
|
|
1346
1355
|
function io(e, t, o) {
|
|
@@ -1373,16 +1382,16 @@ const Ft = U(
|
|
|
1373
1382
|
[v, C],
|
|
1374
1383
|
y,
|
|
1375
1384
|
x,
|
|
1376
|
-
|
|
1385
|
+
a,
|
|
1377
1386
|
f,
|
|
1378
1387
|
w
|
|
1379
1388
|
]) => {
|
|
1380
|
-
const E = h - f, z = x +
|
|
1381
|
-
let
|
|
1389
|
+
const E = h - f, z = x + a, M = Math.max(m - E, 0);
|
|
1390
|
+
let u = ro;
|
|
1382
1391
|
const g = so(w, it), S = so(w, st);
|
|
1383
|
-
return v -= f, v += m +
|
|
1384
|
-
Math.max(E - m - io(y, it,
|
|
1385
|
-
E - M -
|
|
1392
|
+
return v -= f, v += m + a, C += m + a, C -= f, v > h + z - g && (u = rt), C < h - M + I + S && (u = Je), u !== ro ? [
|
|
1393
|
+
Math.max(E - m - io(y, it, u) - g, 0),
|
|
1394
|
+
E - M - a + I + io(y, st, u) + S
|
|
1386
1395
|
] : null;
|
|
1387
1396
|
}
|
|
1388
1397
|
),
|
|
@@ -1503,7 +1512,7 @@ const Ne = U(
|
|
|
1503
1512
|
{ didMount: v },
|
|
1504
1513
|
{ recalcInProgress: C }
|
|
1505
1514
|
]) => {
|
|
1506
|
-
const y = T([]), x = T(0),
|
|
1515
|
+
const y = T([]), x = T(0), a = _(), f = T(0);
|
|
1507
1516
|
k(i.topItemsIndexes, y);
|
|
1508
1517
|
const w = pe(
|
|
1509
1518
|
p(
|
|
@@ -1521,20 +1530,20 @@ const Ne = U(
|
|
|
1521
1530
|
W(f),
|
|
1522
1531
|
e
|
|
1523
1532
|
),
|
|
1524
|
-
P(([
|
|
1533
|
+
P(([u, g, , S, , , , , , , , O]) => {
|
|
1525
1534
|
const b = O !== void 0 && O.length !== S;
|
|
1526
|
-
return
|
|
1535
|
+
return u && !g && !b;
|
|
1527
1536
|
}),
|
|
1528
1537
|
R(
|
|
1529
1538
|
([
|
|
1530
1539
|
,
|
|
1531
1540
|
,
|
|
1532
|
-
[
|
|
1541
|
+
[u, g],
|
|
1533
1542
|
S,
|
|
1534
1543
|
O,
|
|
1535
1544
|
b,
|
|
1536
|
-
j,
|
|
1537
1545
|
A,
|
|
1546
|
+
j,
|
|
1538
1547
|
Z,
|
|
1539
1548
|
L,
|
|
1540
1549
|
$,
|
|
@@ -1544,7 +1553,7 @@ const Ne = U(
|
|
|
1544
1553
|
const se = O, { offsetTree: Se, sizeTree: xe } = se, Ie = oe(x);
|
|
1545
1554
|
if (S === 0)
|
|
1546
1555
|
return { ...zt, totalCount: S };
|
|
1547
|
-
if (
|
|
1556
|
+
if (u === 0 && g === 0)
|
|
1548
1557
|
return Ie === 0 ? { ...zt, totalCount: S } : Wo(Ie, b, O, Z, L, G || []);
|
|
1549
1558
|
if (Q(xe))
|
|
1550
1559
|
return Ie > 0 ? null : gt(
|
|
@@ -1556,8 +1565,8 @@ const Ne = U(
|
|
|
1556
1565
|
Z
|
|
1557
1566
|
);
|
|
1558
1567
|
const Me = [];
|
|
1559
|
-
if (
|
|
1560
|
-
const ce =
|
|
1568
|
+
if (j.length > 0) {
|
|
1569
|
+
const ce = j[0], ne = j[j.length - 1];
|
|
1561
1570
|
let de = 0;
|
|
1562
1571
|
for (const re of Ke(xe, ce, ne)) {
|
|
1563
1572
|
const Y = re.value, J = Math.max(re.start, ce), Ce = Math.min(re.end, ne);
|
|
@@ -1565,9 +1574,9 @@ const Ne = U(
|
|
|
1565
1574
|
Me.push({ data: G == null ? void 0 : G[fe], index: fe, offset: de, size: Y }), de += Y;
|
|
1566
1575
|
}
|
|
1567
1576
|
}
|
|
1568
|
-
if (!
|
|
1577
|
+
if (!A)
|
|
1569
1578
|
return gt([], Me, S, L, se, Z);
|
|
1570
|
-
const he =
|
|
1579
|
+
const he = j.length > 0 ? j[j.length - 1] + 1 : 0, _e = Tn(Se, u, g, he);
|
|
1571
1580
|
if (_e.length === 0)
|
|
1572
1581
|
return null;
|
|
1573
1582
|
const Qe = S - 1, Ee = It([], (ce) => {
|
|
@@ -1575,8 +1584,8 @@ const Ne = U(
|
|
|
1575
1584
|
const de = ne.value;
|
|
1576
1585
|
let re = de.offset, Y = ne.start;
|
|
1577
1586
|
const J = de.size;
|
|
1578
|
-
if (de.offset <
|
|
1579
|
-
Y += Math.floor((
|
|
1587
|
+
if (de.offset < u) {
|
|
1588
|
+
Y += Math.floor((u - de.offset + L) / (J + L));
|
|
1580
1589
|
const fe = Y - ne.start;
|
|
1581
1590
|
re += fe * J + fe * L;
|
|
1582
1591
|
}
|
|
@@ -1610,7 +1619,7 @@ const Ne = U(
|
|
|
1610
1619
|
}
|
|
1611
1620
|
),
|
|
1612
1621
|
//@ts-expect-error filter needs to be fixed
|
|
1613
|
-
P((
|
|
1622
|
+
P((u) => u !== null),
|
|
1614
1623
|
q()
|
|
1615
1624
|
),
|
|
1616
1625
|
zt
|
|
@@ -1619,59 +1628,59 @@ const Ne = U(
|
|
|
1619
1628
|
p(
|
|
1620
1629
|
e,
|
|
1621
1630
|
P(Mt),
|
|
1622
|
-
R((
|
|
1631
|
+
R((u) => u == null ? void 0 : u.length)
|
|
1623
1632
|
),
|
|
1624
1633
|
r
|
|
1625
1634
|
), k(
|
|
1626
1635
|
p(
|
|
1627
1636
|
w,
|
|
1628
|
-
R((
|
|
1637
|
+
R((u) => u.topListHeight)
|
|
1629
1638
|
),
|
|
1630
1639
|
I
|
|
1631
1640
|
), k(I, l), k(
|
|
1632
1641
|
p(
|
|
1633
1642
|
w,
|
|
1634
|
-
R((
|
|
1643
|
+
R((u) => [u.top, u.bottom])
|
|
1635
1644
|
),
|
|
1636
1645
|
s
|
|
1637
1646
|
), k(
|
|
1638
1647
|
p(
|
|
1639
1648
|
w,
|
|
1640
|
-
R((
|
|
1649
|
+
R((u) => u.items)
|
|
1641
1650
|
),
|
|
1642
|
-
|
|
1651
|
+
a
|
|
1643
1652
|
);
|
|
1644
1653
|
const E = we(
|
|
1645
1654
|
p(
|
|
1646
1655
|
w,
|
|
1647
|
-
P(({ items:
|
|
1656
|
+
P(({ items: u }) => u.length > 0),
|
|
1648
1657
|
F(r, e),
|
|
1649
|
-
P(([{ items:
|
|
1650
|
-
R(([,
|
|
1658
|
+
P(([{ items: u }, g]) => u[u.length - 1].originalIndex === g - 1),
|
|
1659
|
+
R(([, u, g]) => [u - 1, g]),
|
|
1651
1660
|
q(ot),
|
|
1652
|
-
R(([
|
|
1661
|
+
R(([u]) => u)
|
|
1653
1662
|
)
|
|
1654
1663
|
), z = we(
|
|
1655
1664
|
p(
|
|
1656
1665
|
w,
|
|
1657
1666
|
Le(200),
|
|
1658
|
-
P(({ items:
|
|
1659
|
-
R(({ items:
|
|
1667
|
+
P(({ items: u, topItems: g }) => u.length > 0 && u[0].originalIndex === g.length),
|
|
1668
|
+
R(({ items: u }) => u[0].index),
|
|
1660
1669
|
q()
|
|
1661
1670
|
)
|
|
1662
1671
|
), M = we(
|
|
1663
1672
|
p(
|
|
1664
1673
|
w,
|
|
1665
|
-
P(({ items:
|
|
1666
|
-
R(({ items:
|
|
1667
|
-
let g = 0, S =
|
|
1668
|
-
for (;
|
|
1674
|
+
P(({ items: u }) => u.length > 0),
|
|
1675
|
+
R(({ items: u }) => {
|
|
1676
|
+
let g = 0, S = u.length - 1;
|
|
1677
|
+
for (; u[g].type === "group" && g < S; )
|
|
1669
1678
|
g++;
|
|
1670
|
-
for (;
|
|
1679
|
+
for (; u[S].type === "group" && S > g; )
|
|
1671
1680
|
S--;
|
|
1672
1681
|
return {
|
|
1673
|
-
endIndex:
|
|
1674
|
-
startIndex:
|
|
1682
|
+
endIndex: u[S].index,
|
|
1683
|
+
startIndex: u[g].index
|
|
1675
1684
|
};
|
|
1676
1685
|
}),
|
|
1677
1686
|
q(bo)
|
|
@@ -1680,7 +1689,7 @@ const Ne = U(
|
|
|
1680
1689
|
return {
|
|
1681
1690
|
endReached: E,
|
|
1682
1691
|
initialItemCount: x,
|
|
1683
|
-
itemsRendered:
|
|
1692
|
+
itemsRendered: a,
|
|
1684
1693
|
listState: w,
|
|
1685
1694
|
minOverscanItemCount: f,
|
|
1686
1695
|
rangeChanged: M,
|
|
@@ -1695,8 +1704,8 @@ const Ne = U(
|
|
|
1695
1704
|
Ft,
|
|
1696
1705
|
ct,
|
|
1697
1706
|
lt,
|
|
1698
|
-
|
|
1699
|
-
|
|
1707
|
+
ut,
|
|
1708
|
+
Ae,
|
|
1700
1709
|
Vt
|
|
1701
1710
|
),
|
|
1702
1711
|
{ singleton: !0 }
|
|
@@ -1737,7 +1746,7 @@ const Ne = U(
|
|
|
1737
1746
|
locationParams: { align: o, behavior: n, ...r },
|
|
1738
1747
|
viewportBottom: i,
|
|
1739
1748
|
viewportTop: s
|
|
1740
|
-
}) => t < s ? { ...r, align: o != null ? o : "start", ...n !== void 0 ? { behavior: n } : {} } : e > i ? { ...r, align: o != null ? o : "end", ...n !== void 0 ? { behavior: n } : {} } : null,
|
|
1749
|
+
}) => t < s ? { ...r, align: o != null ? o : "start", ...n !== void 0 ? { behavior: n } : {} } : e > i ? { ...r, align: o != null ? o : "end", ...n !== void 0 ? { behavior: n } : {} } : null, Ao = U(
|
|
1741
1750
|
([
|
|
1742
1751
|
{ gap: e, sizes: t, totalCount: o },
|
|
1743
1752
|
{ fixedFooterHeight: n, fixedHeaderHeight: r, headerHeight: i, scrollingInProgress: s, scrollTop: l, viewportHeight: c },
|
|
@@ -1749,24 +1758,24 @@ const Ne = U(
|
|
|
1749
1758
|
h,
|
|
1750
1759
|
F(t, c, o, i, r, n, l),
|
|
1751
1760
|
F(e),
|
|
1752
|
-
R(([[I, m, v, C, y, x,
|
|
1753
|
-
const { calculateViewLocation: E = Mn, done: z, ...M } = I,
|
|
1761
|
+
R(([[I, m, v, C, y, x, a, f], w]) => {
|
|
1762
|
+
const { calculateViewLocation: E = Mn, done: z, ...M } = I, u = ko(I, m, C - 1), g = nt(u, m.offsetTree, w) + y + x, S = g + be(m.sizeTree, u)[1], O = f + x, b = f + v - a, A = E({
|
|
1754
1763
|
itemBottom: S,
|
|
1755
1764
|
itemTop: g,
|
|
1756
1765
|
locationParams: M,
|
|
1757
1766
|
viewportBottom: b,
|
|
1758
1767
|
viewportTop: O
|
|
1759
1768
|
});
|
|
1760
|
-
return
|
|
1769
|
+
return A !== null ? z && ye(
|
|
1761
1770
|
p(
|
|
1762
1771
|
s,
|
|
1763
|
-
P((
|
|
1772
|
+
P((j) => !j),
|
|
1764
1773
|
// skips the initial publish of false, and the cleanup call.
|
|
1765
1774
|
// but if scrollingInProgress is true, we skip the initial publish.
|
|
1766
1775
|
Fe(oe(s) ? 1 : 2)
|
|
1767
1776
|
),
|
|
1768
1777
|
z
|
|
1769
|
-
) : z == null || z(),
|
|
1778
|
+
) : z == null || z(), A;
|
|
1770
1779
|
}),
|
|
1771
1780
|
P((I) => I !== null)
|
|
1772
1781
|
),
|
|
@@ -1778,10 +1787,10 @@ const Ne = U(
|
|
|
1778
1787
|
ee(Oe, ve, lt, Ne, Ve),
|
|
1779
1788
|
{ singleton: !0 }
|
|
1780
1789
|
);
|
|
1781
|
-
function
|
|
1790
|
+
function uo(e) {
|
|
1782
1791
|
return e === !1 ? !1 : e === "smooth" ? "smooth" : "auto";
|
|
1783
1792
|
}
|
|
1784
|
-
const Wn = (e, t) => typeof e == "function" ?
|
|
1793
|
+
const Wn = (e, t) => typeof e == "function" ? uo(e(t)) : t && uo(e), Pn = U(
|
|
1785
1794
|
([
|
|
1786
1795
|
{ listRefresh: e, totalCount: t, fixedItemSize: o, data: n },
|
|
1787
1796
|
{ atBottomState: r, isAtBottom: i },
|
|
@@ -1795,7 +1804,7 @@ const Wn = (e, t) => typeof e == "function" ? ao(e(t)) : t && ao(e), Pn = U(
|
|
|
1795
1804
|
]) => {
|
|
1796
1805
|
const C = T(!1), y = _();
|
|
1797
1806
|
let x = null;
|
|
1798
|
-
function
|
|
1807
|
+
function a(z) {
|
|
1799
1808
|
D(s, {
|
|
1800
1809
|
align: "end",
|
|
1801
1810
|
behavior: z,
|
|
@@ -1806,23 +1815,23 @@ const Wn = (e, t) => typeof e == "function" ? ao(e(t)) : t && ao(e), Pn = U(
|
|
|
1806
1815
|
p(
|
|
1807
1816
|
ie(p(W(t), Fe(1)), c),
|
|
1808
1817
|
F(W(C), i, l, I),
|
|
1809
|
-
R(([[z, M],
|
|
1810
|
-
let b = M && S,
|
|
1811
|
-
return b && (
|
|
1818
|
+
R(([[z, M], u, g, S, O]) => {
|
|
1819
|
+
let b = M && S, A = "auto";
|
|
1820
|
+
return b && (A = Wn(u, g || O), b = b && A !== !1), { followOutputBehavior: A, shouldFollow: b, totalCount: z };
|
|
1812
1821
|
}),
|
|
1813
1822
|
P(({ shouldFollow: z }) => z)
|
|
1814
1823
|
),
|
|
1815
1824
|
({ followOutputBehavior: z, totalCount: M }) => {
|
|
1816
1825
|
x !== null && (x(), x = null), oe(o) !== void 0 ? requestAnimationFrame(() => {
|
|
1817
|
-
oe(h)("following output to ", { totalCount: M },
|
|
1826
|
+
oe(h)("following output to ", { totalCount: M }, ae.DEBUG), a(z);
|
|
1818
1827
|
}) : x = ye(e, () => {
|
|
1819
|
-
oe(h)("following output to ", { totalCount: M },
|
|
1828
|
+
oe(h)("following output to ", { totalCount: M }, ae.DEBUG), a(z), x = null;
|
|
1820
1829
|
});
|
|
1821
1830
|
}
|
|
1822
1831
|
);
|
|
1823
1832
|
function f(z) {
|
|
1824
|
-
const M = ye(r, (
|
|
1825
|
-
z && !
|
|
1833
|
+
const M = ye(r, (u) => {
|
|
1834
|
+
z && !u.atBottom && u.notAtBottomBecause === "SIZE_INCREASED" && x === null && (oe(h)("scrolling to bottom due to increased size", {}, ae.DEBUG), a("auto"));
|
|
1826
1835
|
});
|
|
1827
1836
|
setTimeout(M, 100);
|
|
1828
1837
|
}
|
|
@@ -1843,7 +1852,7 @@ const Wn = (e, t) => typeof e == "function" ? ao(e(t)) : t && ao(e), Pn = U(
|
|
|
1843
1852
|
), X(y, () => {
|
|
1844
1853
|
f(oe(C) !== !1);
|
|
1845
1854
|
}), X(ie(W(C), r), ([z, M]) => {
|
|
1846
|
-
z !== !1 && !M.atBottom && M.notAtBottomBecause === "VIEWPORT_HEIGHT_DECREASING" &&
|
|
1855
|
+
z !== !1 && !M.atBottom && M.notAtBottomBecause === "VIEWPORT_HEIGHT_DECREASING" && a("auto");
|
|
1847
1856
|
});
|
|
1848
1857
|
const w = T(null), E = _();
|
|
1849
1858
|
return k(
|
|
@@ -1862,7 +1871,7 @@ const Wn = (e, t) => typeof e == "function" ? ao(e(t)) : t && ao(e), Pn = U(
|
|
|
1862
1871
|
p(
|
|
1863
1872
|
ie(p(E, Fe(1)), c),
|
|
1864
1873
|
F(W(w), l, I, m),
|
|
1865
|
-
R(([[z, M],
|
|
1874
|
+
R(([[z, M], u, g, S, O]) => M && g && (u == null ? void 0 : u({ context: O, totalCount: z, scrollingInProgress: S }))),
|
|
1866
1875
|
P((z) => !!z),
|
|
1867
1876
|
Le(0)
|
|
1868
1877
|
),
|
|
@@ -1877,14 +1886,14 @@ const Wn = (e, t) => typeof e == "function" ? ao(e(t)) : t && ao(e), Pn = U(
|
|
|
1877
1886
|
},
|
|
1878
1887
|
ee(
|
|
1879
1888
|
Oe,
|
|
1880
|
-
|
|
1889
|
+
ut,
|
|
1881
1890
|
lt,
|
|
1882
1891
|
ct,
|
|
1883
|
-
|
|
1892
|
+
Ae,
|
|
1884
1893
|
Ve,
|
|
1885
1894
|
ve,
|
|
1886
1895
|
Vo,
|
|
1887
|
-
|
|
1896
|
+
Ao
|
|
1888
1897
|
)
|
|
1889
1898
|
), Vn = U(
|
|
1890
1899
|
([{ data: e, firstItemIndex: t, gap: o, sizes: n }, { initialTopMostItemIndex: r }, { initialItemCount: i, listState: s }, { didMount: l }]) => (k(
|
|
@@ -1897,9 +1906,9 @@ const Wn = (e, t) => typeof e == "function" ? ao(e(t)) : t && ao(e), Pn = U(
|
|
|
1897
1906
|
),
|
|
1898
1907
|
s
|
|
1899
1908
|
), {}),
|
|
1900
|
-
ee(Oe, ct, Ne,
|
|
1909
|
+
ee(Oe, ct, Ne, Ae),
|
|
1901
1910
|
{ singleton: !0 }
|
|
1902
|
-
),
|
|
1911
|
+
), An = U(
|
|
1903
1912
|
([{ didMount: e }, { scrollTo: t }, { listState: o }]) => {
|
|
1904
1913
|
const n = T(0);
|
|
1905
1914
|
return X(
|
|
@@ -1927,9 +1936,9 @@ const Wn = (e, t) => typeof e == "function" ? ao(e(t)) : t && ao(e), Pn = U(
|
|
|
1927
1936
|
initialScrollTop: n
|
|
1928
1937
|
};
|
|
1929
1938
|
},
|
|
1930
|
-
ee(
|
|
1939
|
+
ee(Ae, ve, Ne),
|
|
1931
1940
|
{ singleton: !0 }
|
|
1932
|
-
),
|
|
1941
|
+
), jo = U(
|
|
1933
1942
|
([{ scrollVelocity: e }]) => {
|
|
1934
1943
|
const t = T(!1), o = _(), n = T(!1);
|
|
1935
1944
|
return k(
|
|
@@ -1956,7 +1965,7 @@ const Wn = (e, t) => typeof e == "function" ? ao(e(t)) : t && ao(e), Pn = U(
|
|
|
1956
1965
|
}
|
|
1957
1966
|
), { isSeeking: t, scrollSeekConfiguration: n, scrollSeekRangeChanged: o, scrollVelocity: e };
|
|
1958
1967
|
},
|
|
1959
|
-
ee(
|
|
1968
|
+
ee(ut),
|
|
1960
1969
|
{ singleton: !0 }
|
|
1961
1970
|
), Gt = U(([{ scrollContainerState: e, scrollTo: t }]) => {
|
|
1962
1971
|
const o = _(), n = _(), r = _(), i = T(!1), s = T(void 0);
|
|
@@ -1990,7 +1999,7 @@ const Wn = (e, t) => typeof e == "function" ? ao(e(t)) : t && ao(e), Pn = U(
|
|
|
1990
1999
|
windowScrollTo: r,
|
|
1991
2000
|
windowViewportRect: n
|
|
1992
2001
|
};
|
|
1993
|
-
}, ee(ve)),
|
|
2002
|
+
}, ee(ve)), jn = U(
|
|
1994
2003
|
([
|
|
1995
2004
|
{ sizeRanges: e, sizes: t },
|
|
1996
2005
|
{ headerHeight: o, scrollTop: n },
|
|
@@ -2004,9 +2013,9 @@ const Wn = (e, t) => typeof e == "function" ? ao(e(t)) : t && ao(e), Pn = U(
|
|
|
2004
2013
|
d,
|
|
2005
2014
|
F(t, n, s, I, m, o)
|
|
2006
2015
|
),
|
|
2007
|
-
([v, C, y, x,
|
|
2016
|
+
([v, C, y, x, a, f, w]) => {
|
|
2008
2017
|
const E = Sn(C.sizeTree);
|
|
2009
|
-
x &&
|
|
2018
|
+
x && a !== null && f !== null && (y = a.scrollTop - f.offsetTop), y -= w, v({ ranges: E, scrollTop: y });
|
|
2010
2019
|
}
|
|
2011
2020
|
), k(p(h, P(Mt), R(Dn)), r), k(
|
|
2012
2021
|
p(
|
|
@@ -2022,7 +2031,7 @@ const Wn = (e, t) => typeof e == "function" ? ao(e(t)) : t && ao(e), Pn = U(
|
|
|
2022
2031
|
restoreStateFrom: h
|
|
2023
2032
|
};
|
|
2024
2033
|
},
|
|
2025
|
-
ee(Oe, ve, ct,
|
|
2034
|
+
ee(Oe, ve, ct, Ae, Gt)
|
|
2026
2035
|
);
|
|
2027
2036
|
function Dn(e) {
|
|
2028
2037
|
return { align: "start", index: 0, offset: e.scrollTop };
|
|
@@ -2056,69 +2065,69 @@ const Gn = Do(() => /iP(ad|od|hone)/i.test(navigator.userAgent) && /WebKit/i.tes
|
|
|
2056
2065
|
c,
|
|
2057
2066
|
F(s),
|
|
2058
2067
|
ke(
|
|
2059
|
-
([,
|
|
2068
|
+
([, a, f, w], [{ bottom: E, items: z, offsetBottom: M, totalCount: u }, g]) => {
|
|
2060
2069
|
const S = E + M;
|
|
2061
2070
|
let O = 0;
|
|
2062
|
-
return f ===
|
|
2071
|
+
return f === u && a.length > 0 && z.length > 0 && (z[0].originalIndex === 0 && a[0].originalIndex === 0 || (O = S - w, O !== 0 && (O += g))), [O, z, u, S];
|
|
2063
2072
|
},
|
|
2064
2073
|
[0, [], 0, 0]
|
|
2065
2074
|
),
|
|
2066
|
-
P(([
|
|
2075
|
+
P(([a]) => a !== 0),
|
|
2067
2076
|
F(n, l, o, r, v, C),
|
|
2068
|
-
P(([,
|
|
2069
|
-
R(([[
|
|
2077
|
+
P(([, a, f, w, , , E]) => !E && !w && a !== 0 && f === rt),
|
|
2078
|
+
R(([[a], , , , , f]) => (f("Upward scrolling compensation", { amount: a }, ae.DEBUG), a))
|
|
2070
2079
|
)
|
|
2071
2080
|
);
|
|
2072
|
-
function x(
|
|
2073
|
-
|
|
2081
|
+
function x(a) {
|
|
2082
|
+
a > 0 ? (D(t, { behavior: "auto", top: -a }), D(e, 0)) : (D(e, 0), D(t, { behavior: "auto", top: -a }));
|
|
2074
2083
|
}
|
|
2075
|
-
return X(p(y, F(e, i)), ([
|
|
2076
|
-
w && Gn() ? D(e, f -
|
|
2084
|
+
return X(p(y, F(e, i)), ([a, f, w]) => {
|
|
2085
|
+
w && Gn() ? D(e, f - a) : x(-a);
|
|
2077
2086
|
}), X(
|
|
2078
2087
|
p(
|
|
2079
2088
|
ie(pe(i, !1), e, C),
|
|
2080
|
-
P(([
|
|
2081
|
-
R(([
|
|
2089
|
+
P(([a, f, w]) => !a && !w && f !== 0),
|
|
2090
|
+
R(([a, f]) => f),
|
|
2082
2091
|
Le(1)
|
|
2083
2092
|
),
|
|
2084
2093
|
x
|
|
2085
2094
|
), k(
|
|
2086
2095
|
p(
|
|
2087
2096
|
I,
|
|
2088
|
-
R((
|
|
2097
|
+
R((a) => ({ top: -a }))
|
|
2089
2098
|
),
|
|
2090
2099
|
t
|
|
2091
2100
|
), X(
|
|
2092
2101
|
p(
|
|
2093
2102
|
d,
|
|
2094
2103
|
F(m, h),
|
|
2095
|
-
R(([
|
|
2104
|
+
R(([a, { groupIndices: f, lastSize: w, sizeTree: E }, z]) => {
|
|
2096
2105
|
function M(b) {
|
|
2097
2106
|
return b * (w + z);
|
|
2098
2107
|
}
|
|
2099
2108
|
if (f.length === 0)
|
|
2100
|
-
return M(
|
|
2101
|
-
let
|
|
2109
|
+
return M(a);
|
|
2110
|
+
let u = 0;
|
|
2102
2111
|
const g = tt(E, 0);
|
|
2103
2112
|
let S = 0, O = 0;
|
|
2104
|
-
for (; S <
|
|
2105
|
-
S++,
|
|
2113
|
+
for (; S < a; ) {
|
|
2114
|
+
S++, u += g;
|
|
2106
2115
|
let b = f.length === O + 1 ? 1 / 0 : f[O + 1] - f[O] - 1;
|
|
2107
|
-
S + b >
|
|
2116
|
+
S + b > a && (u -= g, b = a - S + 1), S += b, u += M(b), O++;
|
|
2108
2117
|
}
|
|
2109
|
-
return
|
|
2118
|
+
return u;
|
|
2110
2119
|
})
|
|
2111
2120
|
),
|
|
2112
|
-
(
|
|
2113
|
-
D(e,
|
|
2114
|
-
D(t, { top:
|
|
2121
|
+
(a) => {
|
|
2122
|
+
D(e, a), requestAnimationFrame(() => {
|
|
2123
|
+
D(t, { top: a }), requestAnimationFrame(() => {
|
|
2115
2124
|
D(e, 0), D(C, !1);
|
|
2116
2125
|
});
|
|
2117
2126
|
});
|
|
2118
2127
|
}
|
|
2119
2128
|
), { deviation: e };
|
|
2120
2129
|
},
|
|
2121
|
-
ee(ve,
|
|
2130
|
+
ee(ve, ut, Ne, Oe, Ve, Vt)
|
|
2122
2131
|
), _n = U(
|
|
2123
2132
|
([
|
|
2124
2133
|
e,
|
|
@@ -2148,13 +2157,13 @@ const Gn = Do(() => /iP(ad|od|hone)/i.test(navigator.userAgent) && /WebKit/i.tes
|
|
|
2148
2157
|
ee(
|
|
2149
2158
|
Ft,
|
|
2150
2159
|
Vn,
|
|
2151
|
-
|
|
2152
|
-
|
|
2160
|
+
Ae,
|
|
2161
|
+
jo,
|
|
2153
2162
|
Po,
|
|
2154
|
-
|
|
2163
|
+
An,
|
|
2155
2164
|
Ln,
|
|
2156
2165
|
Gt,
|
|
2157
|
-
|
|
2166
|
+
Ao,
|
|
2158
2167
|
Ve,
|
|
2159
2168
|
Vo
|
|
2160
2169
|
)
|
|
@@ -2177,23 +2186,23 @@ const Gn = Do(() => /iP(ad|od|hone)/i.test(navigator.userAgent) && /WebKit/i.tes
|
|
|
2177
2186
|
trackItemSizes: v
|
|
2178
2187
|
},
|
|
2179
2188
|
{ initialItemFinalLocationReached: C, initialTopMostItemIndex: y, scrolledToInitialItem: x },
|
|
2180
|
-
|
|
2189
|
+
a,
|
|
2181
2190
|
f,
|
|
2182
2191
|
w,
|
|
2183
2192
|
E,
|
|
2184
2193
|
{ scrollToIndex: z },
|
|
2185
2194
|
M,
|
|
2186
|
-
{ topItemCount:
|
|
2195
|
+
{ topItemCount: u },
|
|
2187
2196
|
{ groupCounts: g },
|
|
2188
2197
|
S
|
|
2189
2198
|
]) => {
|
|
2190
|
-
const { listState: O, minOverscanItemCount: b, topItemsIndexes:
|
|
2191
|
-
return k(
|
|
2199
|
+
const { listState: O, minOverscanItemCount: b, topItemsIndexes: A, rangeChanged: j, ...Z } = E;
|
|
2200
|
+
return k(j, S.scrollSeekRangeChanged), k(
|
|
2192
2201
|
p(
|
|
2193
2202
|
S.windowViewportRect,
|
|
2194
2203
|
R((L) => L.visibleHeight)
|
|
2195
2204
|
),
|
|
2196
|
-
|
|
2205
|
+
a.viewportHeight
|
|
2197
2206
|
), {
|
|
2198
2207
|
data: e,
|
|
2199
2208
|
defaultItemHeight: t,
|
|
@@ -2207,8 +2216,8 @@ const Gn = Do(() => /iP(ad|od|hone)/i.test(navigator.userAgent) && /WebKit/i.tes
|
|
|
2207
2216
|
initialTopMostItemIndex: y,
|
|
2208
2217
|
scrolledToInitialItem: x,
|
|
2209
2218
|
sizeRanges: d,
|
|
2210
|
-
topItemCount:
|
|
2211
|
-
topItemsIndexes:
|
|
2219
|
+
topItemCount: u,
|
|
2220
|
+
topItemsIndexes: A,
|
|
2212
2221
|
// input
|
|
2213
2222
|
totalCount: m,
|
|
2214
2223
|
...w,
|
|
@@ -2221,11 +2230,11 @@ const Gn = Do(() => /iP(ad|od|hone)/i.test(navigator.userAgent) && /WebKit/i.tes
|
|
|
2221
2230
|
statefulTotalCount: I,
|
|
2222
2231
|
trackItemSizes: v,
|
|
2223
2232
|
// exported from stateFlagsSystem
|
|
2224
|
-
rangeChanged:
|
|
2233
|
+
rangeChanged: j,
|
|
2225
2234
|
...Z,
|
|
2226
2235
|
// the bag of IO from featureGroup1System
|
|
2227
2236
|
...S,
|
|
2228
|
-
...
|
|
2237
|
+
...a,
|
|
2229
2238
|
sizes: h,
|
|
2230
2239
|
...f
|
|
2231
2240
|
};
|
|
@@ -2234,7 +2243,7 @@ const Gn = Do(() => /iP(ad|od|hone)/i.test(navigator.userAgent) && /WebKit/i.tes
|
|
|
2234
2243
|
Oe,
|
|
2235
2244
|
ct,
|
|
2236
2245
|
ve,
|
|
2237
|
-
|
|
2246
|
+
jn,
|
|
2238
2247
|
Pn,
|
|
2239
2248
|
Ne,
|
|
2240
2249
|
lt,
|
|
@@ -2257,85 +2266,85 @@ function Un(e, t) {
|
|
|
2257
2266
|
const dt = typeof document < "u" ? B.useLayoutEffect : B.useEffect;
|
|
2258
2267
|
function Go(e, t, o) {
|
|
2259
2268
|
const n = Object.keys(t.required || {}), r = Object.keys(t.optional || {}), i = Object.keys(t.methods || {}), s = Object.keys(t.events || {}), l = B.createContext({});
|
|
2260
|
-
function c(x,
|
|
2269
|
+
function c(x, a) {
|
|
2261
2270
|
x.propsReady !== void 0 && D(x.propsReady, !1);
|
|
2262
2271
|
for (const f of n) {
|
|
2263
2272
|
const w = x[t.required[f]];
|
|
2264
|
-
D(w,
|
|
2273
|
+
D(w, a[f]);
|
|
2265
2274
|
}
|
|
2266
2275
|
for (const f of r)
|
|
2267
|
-
if (f in
|
|
2276
|
+
if (f in a) {
|
|
2268
2277
|
const w = x[t.optional[f]];
|
|
2269
|
-
D(w,
|
|
2278
|
+
D(w, a[f]);
|
|
2270
2279
|
}
|
|
2271
2280
|
x.propsReady !== void 0 && D(x.propsReady, !0);
|
|
2272
2281
|
}
|
|
2273
2282
|
function d(x) {
|
|
2274
|
-
return i.reduce((
|
|
2283
|
+
return i.reduce((a, f) => (a[f] = (w) => {
|
|
2275
2284
|
const E = x[t.methods[f]];
|
|
2276
2285
|
D(E, w);
|
|
2277
|
-
},
|
|
2286
|
+
}, a), {});
|
|
2278
2287
|
}
|
|
2279
2288
|
function h(x) {
|
|
2280
|
-
return s.reduce((
|
|
2289
|
+
return s.reduce((a, f) => (a[f] = ln(x[t.events[f]]), a), {});
|
|
2281
2290
|
}
|
|
2282
|
-
const I = B.forwardRef(function(x,
|
|
2283
|
-
const { children: f, ...w } = x, [E] = B.useState(() => It(
|
|
2284
|
-
c(
|
|
2291
|
+
const I = B.forwardRef(function(x, a) {
|
|
2292
|
+
const { children: f, ...w } = x, [E] = B.useState(() => It(un(e), (u) => {
|
|
2293
|
+
c(u, w);
|
|
2285
2294
|
})), [z] = B.useState(qt(h, E));
|
|
2286
2295
|
dt(() => {
|
|
2287
|
-
for (const
|
|
2288
|
-
|
|
2296
|
+
for (const u of s)
|
|
2297
|
+
u in w && X(z[u], w[u]);
|
|
2289
2298
|
return () => {
|
|
2290
2299
|
Object.values(z).map(Wt);
|
|
2291
2300
|
};
|
|
2292
2301
|
}, [w, z, E]), dt(() => {
|
|
2293
2302
|
c(E, w);
|
|
2294
|
-
}), B.useImperativeHandle(
|
|
2303
|
+
}), B.useImperativeHandle(a, Jt(d(E)));
|
|
2295
2304
|
const M = o;
|
|
2296
2305
|
return /* @__PURE__ */ N.jsx(l.Provider, { value: E, children: o !== void 0 ? /* @__PURE__ */ N.jsx(M, { ...Un([...n, ...r, ...s], w), children: f }) : f });
|
|
2297
2306
|
}), m = (x) => {
|
|
2298
|
-
const
|
|
2307
|
+
const a = B.useContext(l);
|
|
2299
2308
|
return B.useCallback(
|
|
2300
2309
|
(f) => {
|
|
2301
|
-
D(
|
|
2310
|
+
D(a[x], f);
|
|
2302
2311
|
},
|
|
2303
|
-
[
|
|
2312
|
+
[a, x]
|
|
2304
2313
|
);
|
|
2305
2314
|
}, v = (x) => {
|
|
2306
|
-
const
|
|
2307
|
-
(w) => X(
|
|
2308
|
-
[
|
|
2315
|
+
const a = B.useContext(l)[x], f = B.useCallback(
|
|
2316
|
+
(w) => X(a, w),
|
|
2317
|
+
[a]
|
|
2309
2318
|
);
|
|
2310
2319
|
return B.useSyncExternalStore(
|
|
2311
2320
|
f,
|
|
2312
|
-
() => oe(
|
|
2313
|
-
() => oe(
|
|
2321
|
+
() => oe(a),
|
|
2322
|
+
() => oe(a)
|
|
2314
2323
|
);
|
|
2315
2324
|
}, C = (x) => {
|
|
2316
|
-
const
|
|
2325
|
+
const a = B.useContext(l)[x], [f, w] = B.useState(qt(oe, a));
|
|
2317
2326
|
return dt(
|
|
2318
|
-
() => X(
|
|
2327
|
+
() => X(a, (E) => {
|
|
2319
2328
|
E !== f && w(Jt(E));
|
|
2320
2329
|
}),
|
|
2321
|
-
[
|
|
2330
|
+
[a, f]
|
|
2322
2331
|
), f;
|
|
2323
2332
|
}, y = B.version.startsWith("18") ? v : C;
|
|
2324
2333
|
return {
|
|
2325
2334
|
Component: I,
|
|
2326
|
-
useEmitter: (x,
|
|
2335
|
+
useEmitter: (x, a) => {
|
|
2327
2336
|
const f = B.useContext(l)[x];
|
|
2328
|
-
dt(() => X(f,
|
|
2337
|
+
dt(() => X(f, a), [a, f]);
|
|
2329
2338
|
},
|
|
2330
2339
|
useEmitterValue: y,
|
|
2331
2340
|
usePublisher: m
|
|
2332
2341
|
};
|
|
2333
2342
|
}
|
|
2334
|
-
const No = B.createContext(void 0), _o = B.createContext(void 0), Ht = "-webkit-sticky",
|
|
2343
|
+
const No = B.createContext(void 0), _o = B.createContext(void 0), Ht = "-webkit-sticky", ao = "sticky", Nt = Do(() => {
|
|
2335
2344
|
if (typeof document > "u")
|
|
2336
|
-
return
|
|
2345
|
+
return ao;
|
|
2337
2346
|
const e = document.createElement("div");
|
|
2338
|
-
return e.style.position = Ht, e.style.position === Ht ? Ht :
|
|
2347
|
+
return e.style.position = Ht, e.style.position === Ht ? Ht : ao;
|
|
2339
2348
|
}), Uo = typeof document < "u" ? B.useLayoutEffect : B.useEffect;
|
|
2340
2349
|
function Rt(e) {
|
|
2341
2350
|
return "self" in e;
|
|
@@ -2353,14 +2362,14 @@ function $o(e, t, o, n = Ye, r, i) {
|
|
|
2353
2362
|
y = i === !0 ? f.scrollX : f.scrollY, v = i === !0 ? f.document.documentElement.scrollWidth : f.document.documentElement.scrollHeight, C = i === !0 ? f.innerWidth : f.innerHeight;
|
|
2354
2363
|
} else
|
|
2355
2364
|
y = i === !0 ? x.scrollLeft : x.scrollTop, v = i === !0 ? x.scrollWidth : x.scrollHeight, C = i === !0 ? x.offsetWidth : x.offsetHeight;
|
|
2356
|
-
const
|
|
2365
|
+
const a = () => {
|
|
2357
2366
|
e({
|
|
2358
2367
|
scrollHeight: v,
|
|
2359
2368
|
scrollTop: Math.max(y, 0),
|
|
2360
2369
|
viewportHeight: C
|
|
2361
2370
|
});
|
|
2362
2371
|
};
|
|
2363
|
-
m.suppressFlushSync === !0 ?
|
|
2372
|
+
m.suppressFlushSync === !0 ? a() : en.flushSync(a), l.current !== null && (y === l.current || y <= 0 || y === v - C) && (l.current = null, t(!0), c.current && (clearTimeout(c.current), c.current = null));
|
|
2364
2373
|
},
|
|
2365
2374
|
[e, t, i]
|
|
2366
2375
|
);
|
|
@@ -2375,14 +2384,14 @@ function $o(e, t, o, n = Ye, r, i) {
|
|
|
2375
2384
|
if (!v || (i === !0 ? "offsetWidth" in v && v.offsetWidth === 0 : "offsetHeight" in v && v.offsetHeight === 0))
|
|
2376
2385
|
return;
|
|
2377
2386
|
const C = m.behavior === "smooth";
|
|
2378
|
-
let y, x,
|
|
2387
|
+
let y, x, a;
|
|
2379
2388
|
Rt(v) ? (x = Math.max(
|
|
2380
2389
|
We(v.document.documentElement, i === !0 ? "width" : "height"),
|
|
2381
2390
|
i === !0 ? v.document.documentElement.scrollWidth : v.document.documentElement.scrollHeight
|
|
2382
|
-
), y = i === !0 ? v.innerWidth : v.innerHeight,
|
|
2391
|
+
), y = i === !0 ? v.innerWidth : v.innerHeight, a = i === !0 ? window.scrollX : window.scrollY) : (x = v[i === !0 ? "scrollWidth" : "scrollHeight"], y = We(v, i === !0 ? "width" : "height"), a = v[i === !0 ? "scrollLeft" : "scrollTop"]);
|
|
2383
2392
|
const f = x - y;
|
|
2384
|
-
if (m.top = Math.ceil(Math.max(Math.min(f, m.top), 0)), Mo(y, x) || m.top ===
|
|
2385
|
-
e({ scrollHeight: x, scrollTop:
|
|
2393
|
+
if (m.top = Math.ceil(Math.max(Math.min(f, m.top), 0)), Mo(y, x) || m.top === a) {
|
|
2394
|
+
e({ scrollHeight: x, scrollTop: a, viewportHeight: y }), C && t(!0);
|
|
2386
2395
|
return;
|
|
2387
2396
|
}
|
|
2388
2397
|
C ? (l.current = m.top, c.current && clearTimeout(c.current), c.current = setTimeout(() => {
|
|
@@ -2441,25 +2450,25 @@ const Kn = /* @__PURE__ */ U(() => {
|
|
|
2441
2450
|
r,
|
|
2442
2451
|
y,
|
|
2443
2452
|
V("skipAnimationFrameInResizeObserver")
|
|
2444
|
-
), [
|
|
2453
|
+
), [a, f] = B.useState(0);
|
|
2445
2454
|
Ut("deviation", (L) => {
|
|
2446
|
-
|
|
2455
|
+
a !== L && f(L);
|
|
2447
2456
|
});
|
|
2448
|
-
const w = V("EmptyPlaceholder"), E = (Z = V("ScrollSeekPlaceholder")) != null ? Z : Yn, z = V("ListComponent"), M = V("ItemComponent"),
|
|
2457
|
+
const w = V("EmptyPlaceholder"), E = (Z = V("ScrollSeekPlaceholder")) != null ? Z : Yn, z = V("ListComponent"), M = V("ItemComponent"), u = V("GroupComponent"), g = V("computeItemKey"), S = V("isSeeking"), O = V("groupIndices").length > 0, b = V("alignToBottom"), A = V("initialItemFinalLocationReached"), j = e ? {} : {
|
|
2449
2458
|
boxSizing: "border-box",
|
|
2450
2459
|
...y ? {
|
|
2451
2460
|
display: "inline-block",
|
|
2452
2461
|
height: "100%",
|
|
2453
|
-
marginLeft:
|
|
2462
|
+
marginLeft: a !== 0 ? a : b ? "auto" : 0,
|
|
2454
2463
|
paddingLeft: t.offsetTop,
|
|
2455
2464
|
paddingRight: t.offsetBottom,
|
|
2456
2465
|
whiteSpace: "nowrap"
|
|
2457
2466
|
} : {
|
|
2458
|
-
marginTop:
|
|
2467
|
+
marginTop: a !== 0 ? a : b ? "auto" : 0,
|
|
2459
2468
|
paddingBottom: t.offsetBottom,
|
|
2460
2469
|
paddingTop: t.offsetTop
|
|
2461
2470
|
},
|
|
2462
|
-
...
|
|
2471
|
+
...A ? {} : { visibility: "hidden" }
|
|
2463
2472
|
};
|
|
2464
2473
|
return !e && t.totalCount === 0 && w !== null && w !== void 0 ? /* @__PURE__ */ N.jsx(w, { ...ge(w, d) }) : /* @__PURE__ */ N.jsx(
|
|
2465
2474
|
z,
|
|
@@ -2467,7 +2476,7 @@ const Kn = /* @__PURE__ */ U(() => {
|
|
|
2467
2476
|
...ge(z, d),
|
|
2468
2477
|
"data-testid": e ? "virtuoso-top-item-list" : "virtuoso-item-list",
|
|
2469
2478
|
ref: x,
|
|
2470
|
-
style:
|
|
2479
|
+
style: j,
|
|
2471
2480
|
children: (e ? t.topItems : t.items).map((L) => {
|
|
2472
2481
|
const $ = L.originalIndex, G = g($ + t.firstItemIndex, L.data, d);
|
|
2473
2482
|
return S ? /* @__PURE__ */ ht.createElement(
|
|
@@ -2481,9 +2490,9 @@ const Kn = /* @__PURE__ */ U(() => {
|
|
|
2481
2490
|
...L.type === "group" ? {} : { groupIndex: L.groupIndex }
|
|
2482
2491
|
}
|
|
2483
2492
|
) : L.type === "group" ? /* @__PURE__ */ ht.createElement(
|
|
2484
|
-
|
|
2493
|
+
u,
|
|
2485
2494
|
{
|
|
2486
|
-
...ge(
|
|
2495
|
+
...ge(u, d),
|
|
2487
2496
|
"data-index": $,
|
|
2488
2497
|
"data-item-index": L.index,
|
|
2489
2498
|
"data-known-size": L.size,
|
|
@@ -2589,7 +2598,7 @@ function Xo({ useEmitter: e, useEmitterValue: t, usePublisher: o }) {
|
|
|
2589
2598
|
}
|
|
2590
2599
|
function Yo({ useEmitter: e, useEmitterValue: t, usePublisher: o }) {
|
|
2591
2600
|
return B.memo(function({ children: n, style: r, context: i, ...s }) {
|
|
2592
|
-
const l = o("windowScrollContainerState"), c = t("ScrollerComponent"), d = o("smoothScrollTargetReached"), h = t("totalListHeight"), I = t("deviation"), m = t("customScrollParent"), v = B.useRef(null), C = t("scrollerRef"), { scrollByCallback: y, scrollerRef: x, scrollToCallback:
|
|
2601
|
+
const l = o("windowScrollContainerState"), c = t("ScrollerComponent"), d = o("smoothScrollTargetReached"), h = t("totalListHeight"), I = t("deviation"), m = t("customScrollParent"), v = B.useRef(null), C = t("scrollerRef"), { scrollByCallback: y, scrollerRef: x, scrollToCallback: a } = $o(
|
|
2593
2602
|
l,
|
|
2594
2603
|
d,
|
|
2595
2604
|
c,
|
|
@@ -2601,7 +2610,7 @@ function Yo({ useEmitter: e, useEmitterValue: t, usePublisher: o }) {
|
|
|
2601
2610
|
return x.current = m || ((f = v.current) == null ? void 0 : f.ownerDocument.defaultView), () => {
|
|
2602
2611
|
x.current = null;
|
|
2603
2612
|
};
|
|
2604
|
-
}, [x, m]), e("windowScrollTo",
|
|
2613
|
+
}, [x, m]), e("windowScrollTo", a), e("scrollBy", y), /* @__PURE__ */ N.jsx(
|
|
2605
2614
|
c,
|
|
2606
2615
|
{
|
|
2607
2616
|
ref: v,
|
|
@@ -2637,7 +2646,7 @@ const rr = ({ children: e }) => {
|
|
|
2637
2646
|
return /* @__PURE__ */ N.jsx(t, { style: n, ...ge(t, r), children: e });
|
|
2638
2647
|
}, lr = /* @__PURE__ */ B.memo(function(e) {
|
|
2639
2648
|
const t = V("useWindowScroll"), o = V("topItemsIndexes").length > 0, n = V("customScrollParent"), r = V("context");
|
|
2640
|
-
return /* @__PURE__ */ N.jsxs(n || t ?
|
|
2649
|
+
return /* @__PURE__ */ N.jsxs(n || t ? ar : ur, { ...e, context: r, children: [
|
|
2641
2650
|
o && /* @__PURE__ */ N.jsx(sr, { children: /* @__PURE__ */ N.jsx(fo, { showTopList: !0 }) }),
|
|
2642
2651
|
/* @__PURE__ */ N.jsxs(n || t ? ir : rr, { children: [
|
|
2643
2652
|
/* @__PURE__ */ N.jsx(or, {}),
|
|
@@ -2712,7 +2721,7 @@ const rr = ({ children: e }) => {
|
|
|
2712
2721
|
}
|
|
2713
2722
|
},
|
|
2714
2723
|
lr
|
|
2715
|
-
),
|
|
2724
|
+
), ur = /* @__PURE__ */ Xo({ useEmitter: Ut, useEmitterValue: V, usePublisher: ze }), ar = /* @__PURE__ */ Yo({ useEmitter: Ut, useEmitterValue: V, usePublisher: ze }), Er = cr, dr = /* @__PURE__ */ U(() => {
|
|
2716
2725
|
const e = T((d) => /* @__PURE__ */ N.jsxs("td", { children: [
|
|
2717
2726
|
"Item $",
|
|
2718
2727
|
d
|
|
@@ -2789,10 +2798,10 @@ const gr = /* @__PURE__ */ U(
|
|
|
2789
2798
|
m,
|
|
2790
2799
|
v,
|
|
2791
2800
|
{ didMount: C, propsReady: y },
|
|
2792
|
-
{ customScrollParent: x, useWindowScroll:
|
|
2801
|
+
{ customScrollParent: x, useWindowScroll: a, windowScrollContainerState: f, windowScrollTo: w, windowViewportRect: E },
|
|
2793
2802
|
z
|
|
2794
2803
|
]) => {
|
|
2795
|
-
const M = T(0),
|
|
2804
|
+
const M = T(0), u = T(0), g = T(ho), S = T({ height: 0, width: 0 }), O = T({ height: 0, width: 0 }), b = _(), A = _(), j = T(0), Z = T(null), L = T({ column: 0, row: 0 }), $ = _(), G = _(), se = T(!1), Se = T(0), xe = T(!0), Ie = T(!1), Me = T(!1);
|
|
2796
2805
|
X(
|
|
2797
2806
|
p(
|
|
2798
2807
|
C,
|
|
@@ -2808,7 +2817,7 @@ const gr = /* @__PURE__ */ U(
|
|
|
2808
2817
|
P(([H, K, le, me, , Re]) => H && !K && le.height !== 0 && me.height !== 0 && !Re)
|
|
2809
2818
|
),
|
|
2810
2819
|
([, , , , H]) => {
|
|
2811
|
-
D(Ie, !0),
|
|
2820
|
+
D(Ie, !0), jt(1, () => {
|
|
2812
2821
|
D(b, H);
|
|
2813
2822
|
}), ye(p(d), () => {
|
|
2814
2823
|
D(t, [0, 0]), D(xe, !0);
|
|
@@ -2820,7 +2829,7 @@ const gr = /* @__PURE__ */ U(
|
|
|
2820
2829
|
P((H) => H != null && H.scrollTop > 0),
|
|
2821
2830
|
Be(0)
|
|
2822
2831
|
),
|
|
2823
|
-
|
|
2832
|
+
u
|
|
2824
2833
|
), X(
|
|
2825
2834
|
p(
|
|
2826
2835
|
C,
|
|
@@ -2863,7 +2872,7 @@ const gr = /* @__PURE__ */ U(
|
|
|
2863
2872
|
W(O, ft),
|
|
2864
2873
|
W(S, ft),
|
|
2865
2874
|
W(Z),
|
|
2866
|
-
W(
|
|
2875
|
+
W(u),
|
|
2867
2876
|
W(se),
|
|
2868
2877
|
W(xe),
|
|
2869
2878
|
W(Se)
|
|
@@ -2889,10 +2898,10 @@ const gr = /* @__PURE__ */ U(
|
|
|
2889
2898
|
const Zt = Dt(Y, H), qo = Zt + Math.max(de - 1, 0);
|
|
2890
2899
|
return hr(po(Zt, qo, ne));
|
|
2891
2900
|
}
|
|
2892
|
-
const
|
|
2893
|
-
let Ue,
|
|
2894
|
-
re ? K === 0 && le === 0 && de > 0 ? (Ue = 0,
|
|
2895
|
-
const Kt = po(Ue,
|
|
2901
|
+
const at = Qo($t, St, J);
|
|
2902
|
+
let Ue, je;
|
|
2903
|
+
re ? K === 0 && le === 0 && de > 0 ? (Ue = 0, je = de - 1) : (Ue = at * xt((K + Ce) / (fe + Ce)), je = at * mo((le + Ce) / (fe + Ce)) - 1, je = yt(H - 1, qe(je, at - 1)), Ue = yt(je, qe(0, Ue))) : (Ue = 0, je = -1);
|
|
2904
|
+
const Kt = po(Ue, je, ne), { bottom: Xt, top: Yt } = xo(ce, me, Re, Kt), Qt = mo(H / at), Jo = Qt * fe + (Qt - 1) * Ce - Xt;
|
|
2896
2905
|
return { bottom: Xt, itemHeight: fe, items: Kt, itemWidth: St, offsetBottom: Jo, offsetTop: Yt, top: Yt };
|
|
2897
2906
|
}
|
|
2898
2907
|
)
|
|
@@ -2989,24 +2998,24 @@ const gr = /* @__PURE__ */ U(
|
|
|
2989
2998
|
customScrollParent: x,
|
|
2990
2999
|
// input
|
|
2991
3000
|
data: Z,
|
|
2992
|
-
deviation:
|
|
3001
|
+
deviation: j,
|
|
2993
3002
|
footerHeight: r,
|
|
2994
3003
|
gap: L,
|
|
2995
3004
|
headerHeight: i,
|
|
2996
3005
|
increaseViewportBy: e,
|
|
2997
|
-
initialItemCount:
|
|
3006
|
+
initialItemCount: u,
|
|
2998
3007
|
itemDimensions: O,
|
|
2999
3008
|
overscan: o,
|
|
3000
3009
|
restoreStateFrom: G,
|
|
3001
3010
|
scrollBy: s,
|
|
3002
3011
|
scrollContainerState: l,
|
|
3003
|
-
scrollHeight:
|
|
3012
|
+
scrollHeight: A,
|
|
3004
3013
|
scrollTo: c,
|
|
3005
3014
|
scrollToIndex: b,
|
|
3006
3015
|
scrollTop: d,
|
|
3007
3016
|
smoothScrollTargetReached: h,
|
|
3008
3017
|
totalCount: M,
|
|
3009
|
-
useWindowScroll:
|
|
3018
|
+
useWindowScroll: a,
|
|
3010
3019
|
viewportDimensions: S,
|
|
3011
3020
|
windowScrollContainerState: f,
|
|
3012
3021
|
windowScrollTo: w,
|
|
@@ -3027,7 +3036,7 @@ const gr = /* @__PURE__ */ U(
|
|
|
3027
3036
|
...z
|
|
3028
3037
|
};
|
|
3029
3038
|
},
|
|
3030
|
-
ee(Ft, ve,
|
|
3039
|
+
ee(Ft, ve, ut, jo, Ae, Gt, Ve)
|
|
3031
3040
|
);
|
|
3032
3041
|
function Qo(e, t, o) {
|
|
3033
3042
|
return qe(1, xt((e + o) / (xt(t) + o)));
|
|
@@ -3076,17 +3085,17 @@ const pr = /* @__PURE__ */ U(() => {
|
|
|
3076
3085
|
), vr = /* @__PURE__ */ B.memo(function() {
|
|
3077
3086
|
const e = te("gridState"), t = te("listClassName"), o = te("itemClassName"), n = te("itemContent"), r = te("computeItemKey"), i = te("isSeeking"), s = He("scrollHeight"), l = te("ItemComponent"), c = te("ListComponent"), d = te("ScrollSeekPlaceholder"), h = te("context"), I = He("itemDimensions"), m = He("gap"), v = te("log"), C = te("stateRestoreInProgress"), y = He("reportReadyState"), x = Ge(
|
|
3078
3087
|
B.useMemo(
|
|
3079
|
-
() => (
|
|
3080
|
-
const f =
|
|
3088
|
+
() => (a) => {
|
|
3089
|
+
const f = a.parentElement.parentElement.scrollHeight;
|
|
3081
3090
|
s(f);
|
|
3082
|
-
const w =
|
|
3091
|
+
const w = a.firstChild;
|
|
3083
3092
|
if (w !== null) {
|
|
3084
3093
|
const { height: E, width: z } = w.getBoundingClientRect();
|
|
3085
3094
|
I({ height: E, width: z });
|
|
3086
3095
|
}
|
|
3087
3096
|
m({
|
|
3088
|
-
column: vo("column-gap", getComputedStyle(
|
|
3089
|
-
row: vo("row-gap", getComputedStyle(
|
|
3097
|
+
column: vo("column-gap", getComputedStyle(a).columnGap, v),
|
|
3098
|
+
row: vo("row-gap", getComputedStyle(a).rowGap, v)
|
|
3090
3099
|
});
|
|
3091
3100
|
},
|
|
3092
3101
|
[s, I, m, v]
|
|
@@ -3104,14 +3113,14 @@ const pr = /* @__PURE__ */ U(() => {
|
|
|
3104
3113
|
...ge(c, h),
|
|
3105
3114
|
"data-testid": "virtuoso-item-list",
|
|
3106
3115
|
style: { paddingBottom: e.offsetBottom, paddingTop: e.offsetTop },
|
|
3107
|
-
children: e.items.map((
|
|
3108
|
-
const f = r(
|
|
3116
|
+
children: e.items.map((a) => {
|
|
3117
|
+
const f = r(a.index, a.data, h);
|
|
3109
3118
|
return i ? /* @__PURE__ */ N.jsx(
|
|
3110
3119
|
d,
|
|
3111
3120
|
{
|
|
3112
3121
|
...ge(d, h),
|
|
3113
3122
|
height: e.itemHeight,
|
|
3114
|
-
index:
|
|
3123
|
+
index: a.index,
|
|
3115
3124
|
width: e.itemWidth
|
|
3116
3125
|
},
|
|
3117
3126
|
f
|
|
@@ -3120,10 +3129,10 @@ const pr = /* @__PURE__ */ U(() => {
|
|
|
3120
3129
|
{
|
|
3121
3130
|
...ge(l, h),
|
|
3122
3131
|
className: o,
|
|
3123
|
-
"data-index":
|
|
3132
|
+
"data-index": a.index,
|
|
3124
3133
|
key: f
|
|
3125
3134
|
},
|
|
3126
|
-
n(
|
|
3135
|
+
n(a.index, a.data, h)
|
|
3127
3136
|
);
|
|
3128
3137
|
})
|
|
3129
3138
|
}
|
|
@@ -3225,10 +3234,10 @@ const pr = /* @__PURE__ */ U(() => {
|
|
|
3225
3234
|
Cr
|
|
3226
3235
|
), zr = /* @__PURE__ */ Xo({ useEmitter: Zo, useEmitterValue: te, usePublisher: He }), Hr = /* @__PURE__ */ Yo({ useEmitter: Zo, useEmitterValue: te, usePublisher: He });
|
|
3227
3236
|
function vo(e, t, o) {
|
|
3228
|
-
return t !== "normal" && (t == null ? void 0 : t.endsWith("px")) !== !0 && o(`${e} was not resolved to pixel value correctly`, t,
|
|
3237
|
+
return t !== "normal" && (t == null ? void 0 : t.endsWith("px")) !== !0 && o(`${e} was not resolved to pixel value correctly`, t, ae.WARN), t === "normal" ? 0 : parseInt(t != null ? t : "0", 10);
|
|
3229
3238
|
}
|
|
3230
3239
|
export {
|
|
3231
|
-
|
|
3240
|
+
ae as LogLevel,
|
|
3232
3241
|
Er as Virtuoso,
|
|
3233
3242
|
_o as VirtuosoGridMockContext,
|
|
3234
3243
|
No as VirtuosoMockContext
|