@expofp/floorplan 3.0.0-alpha.9 → 3.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/browser/Debug-b2YI2Uxo.js +40 -0
- package/dist/browser/Demo-aEKqZbJJ.js +47 -0
- package/dist/browser/Free-BGr4o53R.js +51 -0
- package/dist/browser/Gallery-C9n64fhu.js +71 -0
- package/dist/browser/GpsLoader-ChxBR2EI.js +140 -0
- package/dist/browser/KioskStore-DkCSeq5I.js +225 -0
- package/dist/browser/Mapbox-Cl0Wxz2h.js +118 -0
- package/dist/browser/{SetKioskMode-C3fGoJPj.js → SetKioskMode-D3EJeF9c.js} +92 -83
- package/dist/browser/{ShowKiosk-D-477yKH.js → ShowKiosk-Bs5q-1RZ.js} +28 -19
- package/dist/browser/{ThreeComponent-Z1K-qX4i.js → ThreeComponent-CSsqNYDu.js} +181 -172
- package/dist/browser/ViewerMenuPanel-BMmB1p03.js +77 -0
- package/dist/browser/boolean-editor-DpnmndKH.js +157 -0
- package/dist/browser/bundle.json +34 -31
- package/dist/browser/{client-D6zJdOh6.js → client-CN_I7kK8.js} +848 -839
- package/dist/browser/compat-helper.js +5 -0
- package/dist/browser/{data-C6uYuLvP.js → data-CIAMSGsv.js} +278 -269
- package/dist/browser/{debug-overlay-BcmbSeG3.js → debug-overlay-DjmA0D2r.js} +100 -91
- package/dist/browser/debug-ui-D1QGTN8V.js +67 -0
- package/dist/browser/{favicon-DalyEhbd.js → favicon-BpTKNfwa.js} +11 -2
- package/dist/browser/fetch-retry.umd-B8hV1FNr.js +123 -0
- package/dist/browser/{flex-DA2yhKLl.js → flex-09atkOGP.js} +76 -67
- package/dist/browser/{floorplan.ready-DEdtWjzo.js → floorplan.ready-BQetaqdP.js} +20976 -22750
- package/dist/browser/fonts/efp-symbols.woff +0 -0
- package/dist/browser/{index-DSULYUX0.js → index-Bw6xZlSd.js} +46 -37
- package/dist/browser/{index-BAvspl75.js → index-C71k7nSe.js} +333 -324
- package/dist/browser/index-CWLY6XdC.js +92 -0
- package/dist/browser/index-D9pdVw-U.js +882 -0
- package/dist/browser/index-DPSQIIUy.js +57 -0
- package/dist/browser/index-jp-Zhdyp.js +54 -0
- package/dist/browser/index.html +1 -0
- package/dist/browser/index.js +12495 -2
- package/dist/browser/jsx-runtime-CoKhM3tL.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-DxaHLbma.js} +24 -15
- package/dist/browser/{particles.min-DcpKrPn3.js → particles.min-CsHbc6cO.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/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-k5RKtjZM.js +0 -31
- package/dist/browser/Demo-CgMWCXus.js +0 -38
- package/dist/browser/Free-D7jT727E.js +0 -42
- package/dist/browser/Gallery-xjcSyY62.js +0 -279
- package/dist/browser/GpsLoader-_4iMtlKj.js +0 -131
- package/dist/browser/KioskStore-P8qIruSD.js +0 -216
- package/dist/browser/Mapbox-C7QZjYtQ.js +0 -109
- package/dist/browser/boolean-editor-C56suuE-.js +0 -148
- package/dist/browser/debug-ui-xTxa_Css.js +0 -58
- package/dist/browser/fetch-retry.umd-D12eSIuK.js +0 -114
- package/dist/browser/index-04R_J8Na.js +0 -45
- package/dist/browser/index-1HPoYB-N.js +0 -12526
- package/dist/browser/index-D1Nh_Rku.js +0 -48
- package/dist/browser/index-DmIJrF5Z.js +0 -83
- 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,279 +0,0 @@
|
|
|
1
|
-
import { j as l } from "./jsx-runtime-jIxVPx5o.js";
|
|
2
|
-
import { r as h, u as j, o as k } from "./index-1HPoYB-N.js";
|
|
3
|
-
import { y as _, r as O } from "./index-04R_J8Na.js";
|
|
4
|
-
import { ax as z, ay as L, az as R, aA as G, aB as T, aC as B, aD as D, aE as M } from "./floorplan.ready-DEdtWjzo.js";
|
|
5
|
-
const P = ({
|
|
6
|
-
count: e,
|
|
7
|
-
onFullscreen: c
|
|
8
|
-
}) => /* @__PURE__ */ l.jsxs(l.Fragment, { children: [
|
|
9
|
-
/* @__PURE__ */ l.jsxs("div", { className: "gallery__badge gallery__badge-count", children: [
|
|
10
|
-
/* @__PURE__ */ l.jsx("i", { className: "icon-image" }),
|
|
11
|
-
/* @__PURE__ */ l.jsx("span", { children: e })
|
|
12
|
-
] }),
|
|
13
|
-
/* @__PURE__ */ l.jsx("div", { className: "gallery__badge gallery__badge-fullscreen", onClick: c, children: /* @__PURE__ */ l.jsx("i", { className: "icon-maximize" }) })
|
|
14
|
-
] });
|
|
15
|
-
class A {
|
|
16
|
-
constructor() {
|
|
17
|
-
this.cache = [], this.load = (c) => new Promise((o, d) => {
|
|
18
|
-
c || o(null);
|
|
19
|
-
var t = this.cache.filter((g) => g.src === c)[0];
|
|
20
|
-
t ? o(t) : (t = new Image(), t.crossOrigin = "anonymous", t.src = c, t.onload = () => {
|
|
21
|
-
this.cache.length > 10 && this.cache.shift(), this.cache.push(t), o(t);
|
|
22
|
-
}, t.onerror = (g) => {
|
|
23
|
-
d(g);
|
|
24
|
-
});
|
|
25
|
-
});
|
|
26
|
-
}
|
|
27
|
-
}
|
|
28
|
-
const S = new A(), I = ({
|
|
29
|
-
url: e,
|
|
30
|
-
setHeight: c = !1,
|
|
31
|
-
position: o = "center",
|
|
32
|
-
isFullscreen: d = !1,
|
|
33
|
-
leading: t = !1,
|
|
34
|
-
fillMode: g = "contain",
|
|
35
|
-
onImageLoadHeightUpdate: m
|
|
36
|
-
}) => {
|
|
37
|
-
const u = h.useRef(null), f = h.useRef(null);
|
|
38
|
-
h.useEffect(() => {
|
|
39
|
-
!u.current || !f.current || !t || x(e);
|
|
40
|
-
}, [e]);
|
|
41
|
-
const x = async (p) => {
|
|
42
|
-
if (c)
|
|
43
|
-
try {
|
|
44
|
-
const v = await S.load(p);
|
|
45
|
-
f.current.style.height = v.height * f.current.clientWidth / v.width + "px", m && m();
|
|
46
|
-
} catch {
|
|
47
|
-
}
|
|
48
|
-
}, y = {
|
|
49
|
-
backgroundImage: `url("${e}")`,
|
|
50
|
-
backgroundSize: g,
|
|
51
|
-
backgroundRepeat: "no-repeat",
|
|
52
|
-
transition: t ? "all 0.5s ease 0s" : "none",
|
|
53
|
-
backgroundPosition: o
|
|
54
|
-
};
|
|
55
|
-
return /* @__PURE__ */ l.jsx("div", { ref: f, style: {
|
|
56
|
-
width: "100%",
|
|
57
|
-
height: t && !d ? "250px" : "100%"
|
|
58
|
-
}, children: /* @__PURE__ */ l.jsx("div", { ref: u, className: "gallery__img", style: y }) });
|
|
59
|
-
}, N = ({
|
|
60
|
-
url: e,
|
|
61
|
-
position: c = "center",
|
|
62
|
-
leading: o = !1,
|
|
63
|
-
setHeight: d = !1,
|
|
64
|
-
fillMode: t,
|
|
65
|
-
onClick: g,
|
|
66
|
-
onImageLoadHeightUpdate: m
|
|
67
|
-
}) => /* @__PURE__ */ l.jsx("div", { className: "gallery__item", onClick: g, children: /* @__PURE__ */ l.jsx(I, { position: c, fillMode: t, url: e, leading: o, setHeight: d, onImageLoadHeightUpdate: m }) });
|
|
68
|
-
function q(e, c, o, d) {
|
|
69
|
-
return e.params.createElements && Object.keys(d).forEach((t) => {
|
|
70
|
-
if (!o[t] && o.auto === !0) {
|
|
71
|
-
let g = z(e.el, `.${d[t]}`)[0];
|
|
72
|
-
g || (g = L("div", d[t]), g.className = d[t], e.el.append(g)), o[t] = g, c[t] = g;
|
|
73
|
-
}
|
|
74
|
-
}), o;
|
|
75
|
-
}
|
|
76
|
-
function F({
|
|
77
|
-
swiper: e,
|
|
78
|
-
extendParams: c,
|
|
79
|
-
on: o,
|
|
80
|
-
emit: d
|
|
81
|
-
}) {
|
|
82
|
-
c({
|
|
83
|
-
navigation: {
|
|
84
|
-
nextEl: null,
|
|
85
|
-
prevEl: null,
|
|
86
|
-
hideOnClick: !1,
|
|
87
|
-
disabledClass: "swiper-button-disabled",
|
|
88
|
-
hiddenClass: "swiper-button-hidden",
|
|
89
|
-
lockClass: "swiper-button-lock",
|
|
90
|
-
navigationDisabledClass: "swiper-navigation-disabled"
|
|
91
|
-
}
|
|
92
|
-
}), e.navigation = {
|
|
93
|
-
nextEl: null,
|
|
94
|
-
prevEl: null
|
|
95
|
-
};
|
|
96
|
-
const t = (a) => (Array.isArray(a) || (a = [a].filter((s) => !!s)), a);
|
|
97
|
-
function g(a) {
|
|
98
|
-
let s;
|
|
99
|
-
return a && typeof a == "string" && e.isElement && (s = e.el.shadowRoot.querySelector(a), s) ? s : (a && (typeof a == "string" && (s = [...document.querySelectorAll(a)]), e.params.uniqueNavElements && typeof a == "string" && s.length > 1 && e.el.querySelectorAll(a).length === 1 && (s = e.el.querySelector(a))), a && !s ? a : s);
|
|
100
|
-
}
|
|
101
|
-
function m(a, s) {
|
|
102
|
-
const i = e.params.navigation;
|
|
103
|
-
a = t(a), a.forEach((n) => {
|
|
104
|
-
n && (n.classList[s ? "add" : "remove"](...i.disabledClass.split(" ")), n.tagName === "BUTTON" && (n.disabled = s), e.params.watchOverflow && e.enabled && n.classList[e.isLocked ? "add" : "remove"](i.lockClass));
|
|
105
|
-
});
|
|
106
|
-
}
|
|
107
|
-
function u() {
|
|
108
|
-
const {
|
|
109
|
-
nextEl: a,
|
|
110
|
-
prevEl: s
|
|
111
|
-
} = e.navigation;
|
|
112
|
-
if (e.params.loop) {
|
|
113
|
-
m(s, !1), m(a, !1);
|
|
114
|
-
return;
|
|
115
|
-
}
|
|
116
|
-
m(s, e.isBeginning && !e.params.rewind), m(a, e.isEnd && !e.params.rewind);
|
|
117
|
-
}
|
|
118
|
-
function f(a) {
|
|
119
|
-
a.preventDefault(), !(e.isBeginning && !e.params.loop && !e.params.rewind) && (e.slidePrev(), d("navigationPrev"));
|
|
120
|
-
}
|
|
121
|
-
function x(a) {
|
|
122
|
-
a.preventDefault(), !(e.isEnd && !e.params.loop && !e.params.rewind) && (e.slideNext(), d("navigationNext"));
|
|
123
|
-
}
|
|
124
|
-
function y() {
|
|
125
|
-
const a = e.params.navigation;
|
|
126
|
-
if (e.params.navigation = q(e, e.originalParams.navigation, e.params.navigation, {
|
|
127
|
-
nextEl: "swiper-button-next",
|
|
128
|
-
prevEl: "swiper-button-prev"
|
|
129
|
-
}), !(a.nextEl || a.prevEl)) return;
|
|
130
|
-
let s = g(a.nextEl), i = g(a.prevEl);
|
|
131
|
-
Object.assign(e.navigation, {
|
|
132
|
-
nextEl: s,
|
|
133
|
-
prevEl: i
|
|
134
|
-
}), s = t(s), i = t(i);
|
|
135
|
-
const n = (r, E) => {
|
|
136
|
-
r && r.addEventListener("click", E === "next" ? x : f), !e.enabled && r && r.classList.add(...a.lockClass.split(" "));
|
|
137
|
-
};
|
|
138
|
-
s.forEach((r) => n(r, "next")), i.forEach((r) => n(r, "prev"));
|
|
139
|
-
}
|
|
140
|
-
function p() {
|
|
141
|
-
let {
|
|
142
|
-
nextEl: a,
|
|
143
|
-
prevEl: s
|
|
144
|
-
} = e.navigation;
|
|
145
|
-
a = t(a), s = t(s);
|
|
146
|
-
const i = (n, r) => {
|
|
147
|
-
n.removeEventListener("click", r === "next" ? x : f), n.classList.remove(...e.params.navigation.disabledClass.split(" "));
|
|
148
|
-
};
|
|
149
|
-
a.forEach((n) => i(n, "next")), s.forEach((n) => i(n, "prev"));
|
|
150
|
-
}
|
|
151
|
-
o("init", () => {
|
|
152
|
-
e.params.navigation.enabled === !1 ? b() : (y(), u());
|
|
153
|
-
}), o("toEdge fromEdge lock unlock", () => {
|
|
154
|
-
u();
|
|
155
|
-
}), o("destroy", () => {
|
|
156
|
-
p();
|
|
157
|
-
}), o("enable disable", () => {
|
|
158
|
-
let {
|
|
159
|
-
nextEl: a,
|
|
160
|
-
prevEl: s
|
|
161
|
-
} = e.navigation;
|
|
162
|
-
a = t(a), s = t(s), [...a, ...s].filter((i) => !!i).forEach((i) => i.classList[e.enabled ? "remove" : "add"](e.params.navigation.lockClass));
|
|
163
|
-
}), o("click", (a, s) => {
|
|
164
|
-
let {
|
|
165
|
-
nextEl: i,
|
|
166
|
-
prevEl: n
|
|
167
|
-
} = e.navigation;
|
|
168
|
-
i = t(i), n = t(n);
|
|
169
|
-
const r = s.target;
|
|
170
|
-
if (e.params.navigation.hideOnClick && !n.includes(r) && !i.includes(r)) {
|
|
171
|
-
if (e.pagination && e.params.pagination && e.params.pagination.clickable && (e.pagination.el === r || e.pagination.el.contains(r))) return;
|
|
172
|
-
let E;
|
|
173
|
-
i.length ? E = i[0].classList.contains(e.params.navigation.hiddenClass) : n.length && (E = n[0].classList.contains(e.params.navigation.hiddenClass)), d(E === !0 ? "navigationShow" : "navigationHide"), [...i, ...n].filter((C) => !!C).forEach((C) => C.classList.toggle(e.params.navigation.hiddenClass));
|
|
174
|
-
}
|
|
175
|
-
});
|
|
176
|
-
const v = () => {
|
|
177
|
-
e.el.classList.remove(...e.params.navigation.navigationDisabledClass.split(" ")), y(), u();
|
|
178
|
-
}, b = () => {
|
|
179
|
-
e.el.classList.add(...e.params.navigation.navigationDisabledClass.split(" ")), p();
|
|
180
|
-
};
|
|
181
|
-
Object.assign(e.navigation, {
|
|
182
|
-
enable: v,
|
|
183
|
-
disable: b,
|
|
184
|
-
update: u,
|
|
185
|
-
init: y,
|
|
186
|
-
destroy: p
|
|
187
|
-
});
|
|
188
|
-
}
|
|
189
|
-
const U = ({
|
|
190
|
-
zoomIn: e,
|
|
191
|
-
zoomOut: c,
|
|
192
|
-
onClose: o
|
|
193
|
-
}) => /* @__PURE__ */ l.jsxs("div", { className: "gallery-slider__controls", children: [
|
|
194
|
-
/* @__PURE__ */ l.jsx("button", { className: "gallery-slider__btn close", title: j("Close"), "aria-label": j("Close"), onClick: o, children: /* @__PURE__ */ l.jsx("i", { className: "icon-close", "aria-hidden": "true" }) }),
|
|
195
|
-
/* @__PURE__ */ l.jsx("button", { className: "gallery-slider__btn zoom-in", title: j("Zoom In"), "aria-label": j("Zoom In"), onClick: () => e(), children: /* @__PURE__ */ l.jsx("i", { className: "icon-zoom-in", "aria-hidden": "true" }) }),
|
|
196
|
-
/* @__PURE__ */ l.jsx("button", { className: "gallery-slider__btn zoom-out", title: j("Zoom Out"), "aria-label": j("Zoom Out"), onClick: () => c(), children: /* @__PURE__ */ l.jsx("i", { className: "icon-zoom-out", "aria-hidden": "true" }) })
|
|
197
|
-
] }), Z = ({
|
|
198
|
-
swiperRef: e,
|
|
199
|
-
leading: c,
|
|
200
|
-
url: o
|
|
201
|
-
}) => (R(({
|
|
202
|
-
state: d,
|
|
203
|
-
instance: t
|
|
204
|
-
}) => {
|
|
205
|
-
e.current && (e.current.allowTouchMove = d.scale === 1, d.scale === 1 && d.positionX !== 0 && d.positionY !== 0 && t.setCenter());
|
|
206
|
-
}), /* @__PURE__ */ l.jsx(G, { wrapperClass: "gallery-slider__zoom", contentClass: "gallery-slider__zoom-content", children: /* @__PURE__ */ l.jsx(I, { isFullscreen: !0, leading: c, url: o }) })), H = (e) => {
|
|
207
|
-
const {
|
|
208
|
-
images: c,
|
|
209
|
-
leading: o,
|
|
210
|
-
initialSlideIndex: d,
|
|
211
|
-
onClose: t,
|
|
212
|
-
className: g
|
|
213
|
-
} = e, m = T(), [u, f] = h.useState(d), [x, y] = h.useState([]), p = h.useRef(null), v = h.useRef(null), b = h.useRef(null), a = {
|
|
214
|
-
initialSlide: d,
|
|
215
|
-
draggable: !1,
|
|
216
|
-
modules: [F],
|
|
217
|
-
spaceBetween: 50,
|
|
218
|
-
slidesPerView: 1,
|
|
219
|
-
navigation: {
|
|
220
|
-
prevEl: v.current,
|
|
221
|
-
nextEl: b.current
|
|
222
|
-
},
|
|
223
|
-
grabCursor: !0
|
|
224
|
-
}, s = /* @__PURE__ */ l.jsx("div", { className: _("gallery-modal", g), children: /* @__PURE__ */ l.jsxs(B, { onSwiper: (i) => p.current = i, className: "gallery-slider", onSlideChange: (i) => {
|
|
225
|
-
var n;
|
|
226
|
-
f(i.activeIndex), (n = x[i.previousIndex]) == null || n.resetTransform();
|
|
227
|
-
}, ...a, children: [
|
|
228
|
-
x.length ? /* @__PURE__ */ l.jsx(U, { onClose: t, zoomIn: x[u].zoomIn, zoomOut: x[u].zoomOut }) : null,
|
|
229
|
-
c.length > 1 && /* @__PURE__ */ l.jsx("button", { ref: b, title: j("Next slide"), "aria-label": "˃", className: "gallery-slider__btn next", children: /* @__PURE__ */ l.jsx("i", { className: "icon-chevron-right" }) }),
|
|
230
|
-
c.length > 1 && /* @__PURE__ */ l.jsx("button", { ref: v, title: j("Prev slide"), "aria-label": "˂", className: "gallery-slider__btn prev", children: /* @__PURE__ */ l.jsx("i", { className: "icon-chevron-left" }) }),
|
|
231
|
-
c.map((i, n) => /* @__PURE__ */ l.jsx(D, { children: /* @__PURE__ */ l.jsx(M, { initialScale: 1, alignmentAnimation: {
|
|
232
|
-
sizeX: 0,
|
|
233
|
-
sizeY: 0
|
|
234
|
-
}, onInit: (r) => {
|
|
235
|
-
y((E) => [...E, r]);
|
|
236
|
-
}, children: /* @__PURE__ */ l.jsx(Z, { leading: o, swiperRef: p, url: i }) }) }, i + n))
|
|
237
|
-
] }) });
|
|
238
|
-
return m ? O.createPortal(s, m) : null;
|
|
239
|
-
}, V = (e) => {
|
|
240
|
-
const {
|
|
241
|
-
images: c,
|
|
242
|
-
leading: o = !1,
|
|
243
|
-
onImageLoadHeightUpdate: d,
|
|
244
|
-
onOpenGallery: t,
|
|
245
|
-
onCloseGallery: g,
|
|
246
|
-
className: m
|
|
247
|
-
} = e, [u, f] = h.useState(!1), [x, y] = h.useState(0), [p, v] = h.useState(!1), b = (n) => {
|
|
248
|
-
y(n), f(!0), t && t();
|
|
249
|
-
}, a = () => {
|
|
250
|
-
f(!1), g && g();
|
|
251
|
-
}, s = (n) => {
|
|
252
|
-
let r = n.split("/");
|
|
253
|
-
const E = r[r.length - 1];
|
|
254
|
-
return E.indexOf("original-") === -1 && (r[r.length - 1] = "original-" + E), r.join("/");
|
|
255
|
-
}, i = (n, r) => r ? s(n) : n;
|
|
256
|
-
return h.useEffect(() => {
|
|
257
|
-
(async () => {
|
|
258
|
-
if (c.length > 0) {
|
|
259
|
-
const r = i(c[0], !0);
|
|
260
|
-
try {
|
|
261
|
-
await S.load(r), v(!0);
|
|
262
|
-
} catch {
|
|
263
|
-
v(!1);
|
|
264
|
-
}
|
|
265
|
-
}
|
|
266
|
-
})();
|
|
267
|
-
}, [c]), /* @__PURE__ */ l.jsxs(k.Fragment, { children: [
|
|
268
|
-
/* @__PURE__ */ l.jsxs("div", { className: _("gallery", {
|
|
269
|
-
"gallery-leading": o
|
|
270
|
-
}, m), children: [
|
|
271
|
-
/* @__PURE__ */ l.jsx("div", { className: "gallery__wrapper", children: o ? /* @__PURE__ */ l.jsx(N, { url: c[0], leading: o, setHeight: !0, fillMode: "contain", onClick: () => b(0), onImageLoadHeightUpdate: d }) : c.map((n, r) => /* @__PURE__ */ l.jsx(N, { url: n, position: "top", fillMode: "cover", onClick: () => b(r), onImageLoadHeightUpdate: d }, n + r)) }),
|
|
272
|
-
!o && /* @__PURE__ */ l.jsx(P, { onFullscreen: () => b(0), count: c.length })
|
|
273
|
-
] }),
|
|
274
|
-
u && /* @__PURE__ */ l.jsx(H, { className: m, images: c.map((n) => i(n, p)), leading: o, initialSlideIndex: x, onClose: a })
|
|
275
|
-
] });
|
|
276
|
-
};
|
|
277
|
-
export {
|
|
278
|
-
V as default
|
|
279
|
-
};
|
|
@@ -1,131 +0,0 @@
|
|
|
1
|
-
import { j as C } from "./jsx-runtime-jIxVPx5o.js";
|
|
2
|
-
import { r, l as A, u as O, R as T } from "./index-1HPoYB-N.js";
|
|
3
|
-
import { af as M, ag as k, ah as I, s as p, ai as L, e as y } from "./floorplan.ready-DEdtWjzo.js";
|
|
4
|
-
import "./index-04R_J8Na.js";
|
|
5
|
-
const S = 3;
|
|
6
|
-
function b(a) {
|
|
7
|
-
return Math.floor(a);
|
|
8
|
-
}
|
|
9
|
-
function P(a, o) {
|
|
10
|
-
return M(a.lat, a.lng, o.lat, o.lng) >= S ? !0 : a.heading !== o.heading;
|
|
11
|
-
}
|
|
12
|
-
const _ = 120, H = 3e3, N = 360;
|
|
13
|
-
function q(a) {
|
|
14
|
-
const o = r.useRef(null), n = r.useRef(null), s = r.useRef(0), i = r.useRef(null), l = r.useRef(!1), t = r.useRef(null), u = r.useRef(!1), c = r.useRef(null), d = (e) => a(e), m = (e) => {
|
|
15
|
-
const f = Date.now();
|
|
16
|
-
if (f - s.current < _) return;
|
|
17
|
-
const h = i.current;
|
|
18
|
-
if (!t.current) {
|
|
19
|
-
t.current = e, s.current = f, i.current = e, d(e);
|
|
20
|
-
return;
|
|
21
|
-
}
|
|
22
|
-
const E = M(t.current.lat, t.current.lng, e.lat, e.lng);
|
|
23
|
-
let g;
|
|
24
|
-
u.current ? E <= S ? (u.current = !1, t.current = e, g = {
|
|
25
|
-
...t.current,
|
|
26
|
-
heading: e.heading
|
|
27
|
-
}) : (t.current = e, g = e) : E >= S ? (u.current = !0, t.current = e, c.current = null, g = e) : (c.current == null && (c.current = f), f - c.current > H && (t.current = e), g = {
|
|
28
|
-
...t.current,
|
|
29
|
-
heading: e.heading
|
|
30
|
-
}), !(h && !P(h, g)) && (s.current = f, i.current = g, d(g));
|
|
31
|
-
}, R = r.useCallback((e) => {
|
|
32
|
-
var E;
|
|
33
|
-
const f = (E = e.webkitCompassHeading) != null ? E : e.alpha != null ? N - e.alpha : null;
|
|
34
|
-
if (f == null) return;
|
|
35
|
-
const h = b(f);
|
|
36
|
-
n.current !== h && (n.current = h, i.current && m({
|
|
37
|
-
...i.current,
|
|
38
|
-
heading: h
|
|
39
|
-
}));
|
|
40
|
-
}, [a]);
|
|
41
|
-
return {
|
|
42
|
-
startGeolocation: () => {
|
|
43
|
-
o.current == null && (o.current = navigator.geolocation.watchPosition((e) => {
|
|
44
|
-
m({
|
|
45
|
-
lat: e.coords.latitude,
|
|
46
|
-
lng: e.coords.longitude,
|
|
47
|
-
heading: n.current
|
|
48
|
-
});
|
|
49
|
-
}, (e) => A.warn("Geolocation watch error:", e), {
|
|
50
|
-
enableHighAccuracy: !0,
|
|
51
|
-
maximumAge: 0
|
|
52
|
-
}));
|
|
53
|
-
},
|
|
54
|
-
startOrientation: () => {
|
|
55
|
-
l.current || (l.current = !0, window.addEventListener("deviceorientation", R, !0));
|
|
56
|
-
},
|
|
57
|
-
stopGeolocation: () => {
|
|
58
|
-
o.current != null && (navigator.geolocation.clearWatch(o.current), o.current = null), t.current = null, u.current = !1;
|
|
59
|
-
},
|
|
60
|
-
stopOrientation: () => {
|
|
61
|
-
l.current = !1, window.removeEventListener("deviceorientation", R, !0);
|
|
62
|
-
}
|
|
63
|
-
};
|
|
64
|
-
}
|
|
65
|
-
function D({
|
|
66
|
-
isOpen: a,
|
|
67
|
-
onAllow: o,
|
|
68
|
-
onCancel: n
|
|
69
|
-
}) {
|
|
70
|
-
return a ? /* @__PURE__ */ C.jsx(k, { title: O("Show your position on the map"), acceptText: O("Allow compass access"), rejectText: O("Not now"), onClickAccept: o, onClickReject: n, children: O("To display your current position and orient the map around you, we’ll ask for permission to access your device orientation") }) : null;
|
|
71
|
-
}
|
|
72
|
-
function j({
|
|
73
|
-
onPositionUpdate: a,
|
|
74
|
-
onAllowCompass: o,
|
|
75
|
-
onRejectCompass: n,
|
|
76
|
-
orientationStorageKey: s = "compass-permission-granted",
|
|
77
|
-
requestCompass: i = !0,
|
|
78
|
-
requestCompassAllowed: l = !0
|
|
79
|
-
}) {
|
|
80
|
-
const {
|
|
81
|
-
startOrientation: t,
|
|
82
|
-
startGeolocation: u,
|
|
83
|
-
stopOrientation: c,
|
|
84
|
-
stopGeolocation: d
|
|
85
|
-
} = q(a), [m, R] = r.useState(!1), [G, w] = r.useState(!1);
|
|
86
|
-
r.useEffect(() => (navigator.geolocation.getCurrentPosition(() => {
|
|
87
|
-
R(!0), u();
|
|
88
|
-
}, (e) => {
|
|
89
|
-
A.warn("Geolocation error:", e), R(!1);
|
|
90
|
-
}), () => {
|
|
91
|
-
c(), d();
|
|
92
|
-
}), [u, d, c]);
|
|
93
|
-
const v = async () => {
|
|
94
|
-
typeof DeviceOrientationEvent < "u" && typeof DeviceOrientationEvent.requestPermission == "function" && await DeviceOrientationEvent.requestPermission() !== "granted" || (localStorage.setItem(s, "true"), t(), w(!1), o == null || o());
|
|
95
|
-
}, x = r.useCallback(() => {
|
|
96
|
-
localStorage.setItem(s, "false"), w(!1), n == null || n();
|
|
97
|
-
}, [n]);
|
|
98
|
-
return r.useEffect(() => {
|
|
99
|
-
if (!m || !l || typeof navigator > "u" || !I) return;
|
|
100
|
-
const e = localStorage.getItem(s);
|
|
101
|
-
if (!e || i) {
|
|
102
|
-
w(!0);
|
|
103
|
-
return;
|
|
104
|
-
}
|
|
105
|
-
e === "true" && v();
|
|
106
|
-
}, [m, i, l, v]), /* @__PURE__ */ C.jsx(D, { isOpen: G, onAllow: v, onCancel: x });
|
|
107
|
-
}
|
|
108
|
-
function z({
|
|
109
|
-
requestCompassAllowed: a
|
|
110
|
-
}) {
|
|
111
|
-
const [o, n] = r.useState(!1), s = r.useCallback(({
|
|
112
|
-
lat: t,
|
|
113
|
-
lng: u,
|
|
114
|
-
angle: c,
|
|
115
|
-
heading: d
|
|
116
|
-
}) => {
|
|
117
|
-
p.routeStore.selectCurrentPosition(new L(0, 0, 0, c || d, t, u), !1);
|
|
118
|
-
}, []), i = r.useCallback(() => {
|
|
119
|
-
p.routeStore.requestCompass = void 0, n(!1);
|
|
120
|
-
}, [n]), l = r.useCallback(() => {
|
|
121
|
-
p.routeStore.requestCompass = void 0, n(!1);
|
|
122
|
-
}, [n]);
|
|
123
|
-
return y(() => p.uiState.hideCookieConsent, (t) => {
|
|
124
|
-
n(t);
|
|
125
|
-
}), y(() => p.routeStore.requestCompass, (t) => {
|
|
126
|
-
n(t);
|
|
127
|
-
}), /* @__PURE__ */ C.jsx(j, { requestCompass: o, requestCompassAllowed: a, onRejectCompass: i, onAllowCompass: l, orientationStorageKey: T, onPositionUpdate: s });
|
|
128
|
-
}
|
|
129
|
-
export {
|
|
130
|
-
z as default
|
|
131
|
-
};
|
|
@@ -1,216 +0,0 @@
|
|
|
1
|
-
import { s as o, ao as h, ap as b, aq as v, ar as f, as as O, at as C, au as g, av as c, aw as d } from "./floorplan.ready-DEdtWjzo.js";
|
|
2
|
-
import "./jsx-runtime-jIxVPx5o.js";
|
|
3
|
-
import "./index-1HPoYB-N.js";
|
|
4
|
-
import "./index-04R_J8Na.js";
|
|
5
|
-
function P(n) {
|
|
6
|
-
const e = n.viewport.canvasToSvg({
|
|
7
|
-
x: 0,
|
|
8
|
-
y: 0
|
|
9
|
-
}), s = n.viewport.canvasToSvg({
|
|
10
|
-
x: n.canvas.clientWidth,
|
|
11
|
-
y: 0
|
|
12
|
-
}), r = n.viewport.canvasToSvg({
|
|
13
|
-
x: 0,
|
|
14
|
-
y: n.canvas.clientHeight
|
|
15
|
-
}), p = n.viewport.canvasToSvg({
|
|
16
|
-
x: n.canvas.clientWidth,
|
|
17
|
-
y: n.canvas.clientHeight
|
|
18
|
-
}), i = Math.min(e.x, s.x, r.x, p.x), l = Math.max(e.x, s.x, r.x, p.x), u = Math.min(e.y, s.y, r.y, p.y), y = Math.max(e.y, s.y, r.y, p.y);
|
|
19
|
-
return {
|
|
20
|
-
x: i,
|
|
21
|
-
y: u,
|
|
22
|
-
width: l - i,
|
|
23
|
-
height: y - u,
|
|
24
|
-
left: i,
|
|
25
|
-
right: l,
|
|
26
|
-
top: y,
|
|
27
|
-
bottom: u,
|
|
28
|
-
center: {
|
|
29
|
-
x: (i + l) / 2,
|
|
30
|
-
y: (u + y) / 2
|
|
31
|
-
}
|
|
32
|
-
};
|
|
33
|
-
}
|
|
34
|
-
function D(n, e) {
|
|
35
|
-
const s = P(n);
|
|
36
|
-
return e.x >= s.left && e.x <= s.right && e.y >= s.bottom && e.y <= s.top;
|
|
37
|
-
}
|
|
38
|
-
var t, S, k;
|
|
39
|
-
function m(n, e, s, r) {
|
|
40
|
-
s && Object.defineProperty(n, e, { enumerable: s.enumerable, configurable: s.configurable, writable: s.writable, value: s.initializer ? s.initializer.call(r) : void 0 });
|
|
41
|
-
}
|
|
42
|
-
function a(n, e, s, r, p) {
|
|
43
|
-
var i = {};
|
|
44
|
-
return Object.keys(r).forEach(function(l) {
|
|
45
|
-
i[l] = r[l];
|
|
46
|
-
}), i.enumerable = !!i.enumerable, i.configurable = !!i.configurable, ("value" in i || i.initializer) && (i.writable = !0), i = s.slice().reverse().reduce(function(l, u) {
|
|
47
|
-
return u(n, e, l) || l;
|
|
48
|
-
}, i), p && i.initializer !== void 0 && (i.value = i.initializer ? i.initializer.call(p) : void 0, i.initializer = void 0), i.initializer === void 0 ? (Object.defineProperty(n, e, i), null) : i;
|
|
49
|
-
}
|
|
50
|
-
let w = (t = class {
|
|
51
|
-
constructor() {
|
|
52
|
-
m(this, "savedKiosk", S, this), m(this, "statusMessages", k, this), this.statusMessageTimer = 0, this.initialPtScale = void 0;
|
|
53
|
-
}
|
|
54
|
-
get kiosk() {
|
|
55
|
-
return o.uiState.kioskData;
|
|
56
|
-
}
|
|
57
|
-
setKiosk(e) {
|
|
58
|
-
o.uiState.setKioskData(e);
|
|
59
|
-
}
|
|
60
|
-
get renderer() {
|
|
61
|
-
return o.renderer;
|
|
62
|
-
}
|
|
63
|
-
getCameraState() {
|
|
64
|
-
const e = this.renderer.controls.getCameraState();
|
|
65
|
-
return {
|
|
66
|
-
mapInitialPtScale: this.initialPtScale,
|
|
67
|
-
mapPtScale: e == null ? void 0 : e.ptScale,
|
|
68
|
-
mapCenterX: e == null ? void 0 : e.center.x,
|
|
69
|
-
mapCenterY: e == null ? void 0 : e.center.y,
|
|
70
|
-
mapRollDegrees: e == null ? void 0 : e.roll,
|
|
71
|
-
mapPitch: e == null ? void 0 : e.pitch
|
|
72
|
-
};
|
|
73
|
-
}
|
|
74
|
-
get hasUnsavedChanges() {
|
|
75
|
-
const e = this.savedKiosk, s = h(this.kiosk);
|
|
76
|
-
if (!s || !e)
|
|
77
|
-
return !!s != !!e;
|
|
78
|
-
const r = Object.keys(e), p = Object.keys(s);
|
|
79
|
-
if (r.length !== p.length)
|
|
80
|
-
return !0;
|
|
81
|
-
for (const i of r)
|
|
82
|
-
if (!(i in s) || e[i] !== s[i])
|
|
83
|
-
return !0;
|
|
84
|
-
return !1;
|
|
85
|
-
}
|
|
86
|
-
addStatusMessage(e) {
|
|
87
|
-
this.statusMessages = [{
|
|
88
|
-
...e,
|
|
89
|
-
id: Date.now()
|
|
90
|
-
}], this.startCleanupMessages();
|
|
91
|
-
}
|
|
92
|
-
clearStatusMessages() {
|
|
93
|
-
this.statusMessages = [];
|
|
94
|
-
}
|
|
95
|
-
startCleanupMessages() {
|
|
96
|
-
clearTimeout(this.statusMessageTimer), this.statusMessageTimer = window.setTimeout(() => this.clearStatusMessages(), 1e3);
|
|
97
|
-
}
|
|
98
|
-
async resetCamera() {
|
|
99
|
-
const {
|
|
100
|
-
z: e,
|
|
101
|
-
mapRollDegrees: s,
|
|
102
|
-
mapInitialPtScale: r,
|
|
103
|
-
mapPtScale: p,
|
|
104
|
-
mapCenterX: i,
|
|
105
|
-
mapCenterY: l
|
|
106
|
-
} = this.kiosk || {};
|
|
107
|
-
await this.renderer.controls.resetCamera({
|
|
108
|
-
pan: !0,
|
|
109
|
-
zoom: !0,
|
|
110
|
-
roll: !0,
|
|
111
|
-
pitch: !0
|
|
112
|
-
}, !0), b(() => {
|
|
113
|
-
Number.isFinite(r) && Number.isFinite(p) && p > 0 && this.renderer.controls.zoomBy(r / p, !0), Number.isFinite(i) && Number.isFinite(l) && this.renderer.controls.panTo(i, l, !0), Number.isFinite(s) && this.renderer.controls.rollTo(s, !0), e && o.fp.activateFloor({
|
|
114
|
-
name: e
|
|
115
|
-
});
|
|
116
|
-
});
|
|
117
|
-
}
|
|
118
|
-
restoreData() {
|
|
119
|
-
const e = v();
|
|
120
|
-
return e && (this.setKiosk(e), this.savedKiosk = e, o.uiState.kiosk = !0, this.resetCamera()), e;
|
|
121
|
-
}
|
|
122
|
-
handleSetupReady() {
|
|
123
|
-
this.restoreData(), o.uiState.kiosk = !0, o.uiState.hideFreeOrDemo = !0, o.uiState.setForceDimm(!0), o.searchStore.setSearchText(""), o.searchStore.setFocused(!1);
|
|
124
|
-
}
|
|
125
|
-
handleClose() {
|
|
126
|
-
this.setKiosk(null), o.uiState.setForceDimm(!1), o.uiState.enableSetKioskMode(!1), o.searchStore.closeSearch(), this.resetCamera();
|
|
127
|
-
}
|
|
128
|
-
handleDelete() {
|
|
129
|
-
f(), this.setKiosk(null), o.uiState.resetMapSettings(), o.uiState.resetUIScale(), this.resetCamera(), this.addStatusMessage({
|
|
130
|
-
variant: "success",
|
|
131
|
-
title: "Deleted"
|
|
132
|
-
});
|
|
133
|
-
}
|
|
134
|
-
handleSave() {
|
|
135
|
-
const e = h(this.kiosk), s = this.getCameraState(), r = {
|
|
136
|
-
...e,
|
|
137
|
-
...s
|
|
138
|
-
};
|
|
139
|
-
if (!D(this.renderer, r)) {
|
|
140
|
-
this.addStatusMessage({
|
|
141
|
-
variant: "error",
|
|
142
|
-
title: "Kiosk not visible"
|
|
143
|
-
});
|
|
144
|
-
return;
|
|
145
|
-
}
|
|
146
|
-
this.setKiosk(r), O(r), o.uiState.setUIScale(r.uiScale, !0), this.addStatusMessage({
|
|
147
|
-
variant: "success",
|
|
148
|
-
title: "Saved"
|
|
149
|
-
}), this.savedKiosk = r;
|
|
150
|
-
}
|
|
151
|
-
delayChange(e) {
|
|
152
|
-
requestAnimationFrame(() => e == null ? void 0 : e());
|
|
153
|
-
}
|
|
154
|
-
handleChange(e) {
|
|
155
|
-
const s = h(this.kiosk);
|
|
156
|
-
s && (Number.isFinite(e.angle) && this.setKiosk({
|
|
157
|
-
...s,
|
|
158
|
-
heading: e.angle
|
|
159
|
-
}), Number.isFinite(e.scale) && (this.setKiosk({
|
|
160
|
-
...s,
|
|
161
|
-
uiScale: e.scale
|
|
162
|
-
}), this.delayChange(() => o.uiState.setUIScale(e.scale, !1))), Number.isFinite(e.percent) && this.setKiosk({
|
|
163
|
-
...s,
|
|
164
|
-
iconSizePercent: e.percent
|
|
165
|
-
}));
|
|
166
|
-
}
|
|
167
|
-
setInitialPtScale(e) {
|
|
168
|
-
if (this.initialPtScale)
|
|
169
|
-
return;
|
|
170
|
-
this.initialPtScale = e;
|
|
171
|
-
const s = h(this.kiosk);
|
|
172
|
-
s && this.setKiosk({
|
|
173
|
-
...s,
|
|
174
|
-
mapInitialPtScale: e
|
|
175
|
-
});
|
|
176
|
-
}
|
|
177
|
-
handleClick({
|
|
178
|
-
point: e
|
|
179
|
-
}) {
|
|
180
|
-
var l;
|
|
181
|
-
const s = h(this.kiosk), r = o.fp.getFloors(), p = C() ? (l = r.find((u) => u.active)) == null ? void 0 : l.name : null, i = o.uiState.uiScale;
|
|
182
|
-
this.setKiosk({
|
|
183
|
-
...s,
|
|
184
|
-
x: e.x,
|
|
185
|
-
y: e.y,
|
|
186
|
-
z: p,
|
|
187
|
-
uiScale: (s == null ? void 0 : s.uiScale) || i,
|
|
188
|
-
heading: (s == null ? void 0 : s.heading) || 0,
|
|
189
|
-
iconSizePercent: (s == null ? void 0 : s.iconSizePercent) || 100,
|
|
190
|
-
...this.getCameraState()
|
|
191
|
-
});
|
|
192
|
-
}
|
|
193
|
-
handleNavigationChange() {
|
|
194
|
-
const e = h(this.kiosk);
|
|
195
|
-
e && this.setKiosk({
|
|
196
|
-
...e,
|
|
197
|
-
...this.getCameraState()
|
|
198
|
-
});
|
|
199
|
-
}
|
|
200
|
-
}, a(t.prototype, "kiosk", [g], Object.getOwnPropertyDescriptor(t.prototype, "kiosk"), t.prototype), a(t.prototype, "setKiosk", [c], Object.getOwnPropertyDescriptor(t.prototype, "setKiosk"), t.prototype), a(t.prototype, "renderer", [g], Object.getOwnPropertyDescriptor(t.prototype, "renderer"), t.prototype), S = a(t.prototype, "savedKiosk", [d], {
|
|
201
|
-
configurable: !0,
|
|
202
|
-
enumerable: !0,
|
|
203
|
-
writable: !0,
|
|
204
|
-
initializer: null
|
|
205
|
-
}), a(t.prototype, "hasUnsavedChanges", [g], Object.getOwnPropertyDescriptor(t.prototype, "hasUnsavedChanges"), t.prototype), k = a(t.prototype, "statusMessages", [d], {
|
|
206
|
-
configurable: !0,
|
|
207
|
-
enumerable: !0,
|
|
208
|
-
writable: !0,
|
|
209
|
-
initializer: function() {
|
|
210
|
-
return [];
|
|
211
|
-
}
|
|
212
|
-
}), a(t.prototype, "addStatusMessage", [c], Object.getOwnPropertyDescriptor(t.prototype, "addStatusMessage"), t.prototype), a(t.prototype, "clearStatusMessages", [c], Object.getOwnPropertyDescriptor(t.prototype, "clearStatusMessages"), t.prototype), a(t.prototype, "startCleanupMessages", [c], Object.getOwnPropertyDescriptor(t.prototype, "startCleanupMessages"), t.prototype), a(t.prototype, "resetCamera", [c], Object.getOwnPropertyDescriptor(t.prototype, "resetCamera"), t.prototype), a(t.prototype, "restoreData", [c], Object.getOwnPropertyDescriptor(t.prototype, "restoreData"), t.prototype), a(t.prototype, "handleSetupReady", [c], Object.getOwnPropertyDescriptor(t.prototype, "handleSetupReady"), t.prototype), a(t.prototype, "handleClose", [c], Object.getOwnPropertyDescriptor(t.prototype, "handleClose"), t.prototype), a(t.prototype, "handleDelete", [c], Object.getOwnPropertyDescriptor(t.prototype, "handleDelete"), t.prototype), a(t.prototype, "handleSave", [c], Object.getOwnPropertyDescriptor(t.prototype, "handleSave"), t.prototype), a(t.prototype, "handleChange", [c], Object.getOwnPropertyDescriptor(t.prototype, "handleChange"), t.prototype), a(t.prototype, "setInitialPtScale", [c], Object.getOwnPropertyDescriptor(t.prototype, "setInitialPtScale"), t.prototype), a(t.prototype, "handleClick", [c], Object.getOwnPropertyDescriptor(t.prototype, "handleClick"), t.prototype), a(t.prototype, "handleNavigationChange", [c], Object.getOwnPropertyDescriptor(t.prototype, "handleNavigationChange"), t.prototype), t);
|
|
213
|
-
const F = new w();
|
|
214
|
-
export {
|
|
215
|
-
F as k
|
|
216
|
-
};
|