@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
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
function __vite_inject_css__(css, id){ if (typeof document==='undefined') return; var parent=(typeof window!=='undefined'&&window.__efpShadowDOMStyleParent)||document.head; var s=document.createElement('style'); s.setAttribute('data-chunk-style', id); s.appendChild(document.createTextNode(css)); parent.appendChild(s);}
|
|
2
|
+
import { j as e } from "./jsx-runtime-CoKhM3tL.js";
|
|
3
|
+
import { c as o, a as r, s as i } from "./floorplan.ready-BQetaqdP.js";
|
|
4
|
+
import { z as c } from "./index.js";
|
|
5
|
+
(function() {
|
|
6
|
+
try {
|
|
7
|
+
var t = typeof window < "u" ? window : typeof global < "u" ? global : typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : {};
|
|
8
|
+
t.SENTRY_RELEASE = { id: "3.0.1" };
|
|
9
|
+
var a = new t.Error().stack;
|
|
10
|
+
a && (t._sentryDebugIds = t._sentryDebugIds || {}, t._sentryDebugIds[a] = "150c8853-0257-4bd0-8794-846a7aff39e4", t._sentryDebugIdIdentifier = "sentry-dbid-150c8853-0257-4bd0-8794-846a7aff39e4");
|
|
11
|
+
} catch {
|
|
12
|
+
}
|
|
13
|
+
})();
|
|
14
|
+
const n = [];
|
|
15
|
+
function l() {
|
|
16
|
+
const t = n.map((s) => s.width * s.height).reduce((s, d) => s += d, 0), a = n.map((s) => /* @__PURE__ */ e.jsxs("div", { className: "debug__canvas", id: s.toDataURL(), children: [
|
|
17
|
+
s.width,
|
|
18
|
+
"x",
|
|
19
|
+
s.height,
|
|
20
|
+
"=",
|
|
21
|
+
s.width * s.height,
|
|
22
|
+
/* @__PURE__ */ e.jsx("br", {}),
|
|
23
|
+
/* @__PURE__ */ e.jsx("img", { src: s.toDataURL(), alt: "", crossOrigin: "anonymous" })
|
|
24
|
+
] }, s.toDataURL()));
|
|
25
|
+
return /* @__PURE__ */ e.jsxs("div", { className: "debug", children: [
|
|
26
|
+
/* @__PURE__ */ e.jsx("button", { onClick: () => i.searchStore.selectSearch(""), children: c("Close") }),
|
|
27
|
+
/* @__PURE__ */ e.jsxs("div", { children: [
|
|
28
|
+
"Total square: ",
|
|
29
|
+
t
|
|
30
|
+
] }),
|
|
31
|
+
a
|
|
32
|
+
] });
|
|
33
|
+
}
|
|
34
|
+
const b = () => o(() => /* @__PURE__ */ e.jsx(e.Fragment, { children: r.list.type === "search" && r.list.text === "q1" ? /* @__PURE__ */ e.jsx(l, {}) : null }));
|
|
35
|
+
export {
|
|
36
|
+
b as default
|
|
37
|
+
};
|
|
38
|
+
|
|
39
|
+
;/* vite-per-chunk-css */
|
|
40
|
+
__vite_inject_css__(".debug{position:fixed;top:1rem;left:1vw;z-index:999;width:calc(100vw - 2rem);height:calc(100vh - 2rem);padding:1rem;overflow:scroll;background:var(--color-white);box-shadow:0 0 1rem #00000080}.debug label{display:block;font-weight:var(--font-weight-bold)}.debug__canvas{display:inline-block;padding:2px;vertical-align:top}.debug__canvas>img{background:var(--color-gray-300)}\n/*$vite$:1*/", "Debug.css");
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import { j as s } from "./jsx-runtime-CoKhM3tL.js";
|
|
2
|
+
import { y as o } from "./index-jp-Zhdyp.js";
|
|
3
|
+
import { u as d, a, b as f, c as l } from "./floorplan.ready-BQetaqdP.js";
|
|
4
|
+
import { z as n } from "./index.js";
|
|
5
|
+
(function() {
|
|
6
|
+
try {
|
|
7
|
+
var e = typeof window < "u" ? window : typeof global < "u" ? global : typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : {};
|
|
8
|
+
e.SENTRY_RELEASE = { id: "3.0.1" };
|
|
9
|
+
var t = new e.Error().stack;
|
|
10
|
+
t && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[t] = "bedd5b4f-e9b3-4464-9824-85b01f4fb92f", e._sentryDebugIdIdentifier = "sentry-dbid-bedd5b4f-e9b3-4464-9824-85b01f4fb92f");
|
|
11
|
+
} catch {
|
|
12
|
+
}
|
|
13
|
+
})();
|
|
14
|
+
const i = "note-dismissed5";
|
|
15
|
+
function p() {
|
|
16
|
+
const e = d(() => ({
|
|
17
|
+
hidden: !0,
|
|
18
|
+
get top() {
|
|
19
|
+
return a.screenSize.width <= 820;
|
|
20
|
+
},
|
|
21
|
+
get classes() {
|
|
22
|
+
return o({
|
|
23
|
+
demo: !0,
|
|
24
|
+
top: this.top,
|
|
25
|
+
hidden: this.hidden
|
|
26
|
+
});
|
|
27
|
+
}
|
|
28
|
+
}));
|
|
29
|
+
return f(() => {
|
|
30
|
+
sessionStorage.getItem(i) || window.setTimeout(() => {
|
|
31
|
+
e.hidden = !1;
|
|
32
|
+
}, 2e3);
|
|
33
|
+
}), l(() => /* @__PURE__ */ s.jsx("div", { className: e.classes, children: /* @__PURE__ */ s.jsxs("section", { children: [
|
|
34
|
+
/* @__PURE__ */ s.jsx("div", { className: "demo__message", children: /* @__PURE__ */ s.jsxs("span", { children: [
|
|
35
|
+
n("Get your free floor plan at"),
|
|
36
|
+
" ",
|
|
37
|
+
/* @__PURE__ */ s.jsx("a", { href: "https://expofp.com/", target: "_blank", rel: "noopener noreferrer", children: "ExpoFP.com" })
|
|
38
|
+
] }) }),
|
|
39
|
+
/* @__PURE__ */ s.jsx("a", { href: "/", onClick: t, className: "demo__dismiss", children: n("Dismiss") })
|
|
40
|
+
] }) }));
|
|
41
|
+
function t(r) {
|
|
42
|
+
r.preventDefault(), e.hidden = !0, sessionStorage.setItem(i, "1");
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
export {
|
|
46
|
+
p as default
|
|
47
|
+
};
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
function __vite_inject_css__(css, id){ if (typeof document==='undefined') return; var parent=(typeof window!=='undefined'&&window.__efpShadowDOMStyleParent)||document.head; var s=document.createElement('style'); s.setAttribute('data-chunk-style', id); s.appendChild(document.createTextNode(css)); parent.appendChild(s);}
|
|
2
|
+
import { j as s } from "./jsx-runtime-CoKhM3tL.js";
|
|
3
|
+
import { y as o } from "./index-jp-Zhdyp.js";
|
|
4
|
+
import { u as d, a, b as f, c as l } from "./floorplan.ready-BQetaqdP.js";
|
|
5
|
+
import { ah as c, z as i } from "./index.js";
|
|
6
|
+
(function() {
|
|
7
|
+
try {
|
|
8
|
+
var e = typeof window < "u" ? window : typeof global < "u" ? global : typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : {};
|
|
9
|
+
e.SENTRY_RELEASE = { id: "3.0.1" };
|
|
10
|
+
var t = new e.Error().stack;
|
|
11
|
+
t && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[t] = "ce8f7f4e-2238-4650-8048-00d07181bd7a", e._sentryDebugIdIdentifier = "sentry-dbid-ce8f7f4e-2238-4650-8048-00d07181bd7a");
|
|
12
|
+
} catch {
|
|
13
|
+
}
|
|
14
|
+
})();
|
|
15
|
+
const n = "free-dismissed5";
|
|
16
|
+
function b() {
|
|
17
|
+
const e = d(() => ({
|
|
18
|
+
hidden: !0,
|
|
19
|
+
get top() {
|
|
20
|
+
return a.screenSize.width < c;
|
|
21
|
+
},
|
|
22
|
+
get classes() {
|
|
23
|
+
return o({
|
|
24
|
+
free: !0,
|
|
25
|
+
bottom: !this.top,
|
|
26
|
+
hidden: this.hidden
|
|
27
|
+
});
|
|
28
|
+
}
|
|
29
|
+
}));
|
|
30
|
+
return f(() => {
|
|
31
|
+
sessionStorage.getItem(n) || window.setTimeout(() => {
|
|
32
|
+
e.hidden = !1;
|
|
33
|
+
}, 2e3);
|
|
34
|
+
}), l(() => /* @__PURE__ */ s.jsx("div", { className: e.classes, children: /* @__PURE__ */ s.jsxs("section", { children: [
|
|
35
|
+
/* @__PURE__ */ s.jsx("div", { className: "free__message", children: /* @__PURE__ */ s.jsxs("span", { children: [
|
|
36
|
+
i("Create a free floor plan at"),
|
|
37
|
+
" ",
|
|
38
|
+
/* @__PURE__ */ s.jsx("a", { href: "https://expofp.com/", target: "_blank", rel: "noopener noreferrer", children: "ExpoFP.com" })
|
|
39
|
+
] }) }),
|
|
40
|
+
/* @__PURE__ */ s.jsx("a", { href: "/", onClick: t, className: "free__dismiss", children: i("Dismiss") })
|
|
41
|
+
] }) }));
|
|
42
|
+
function t(r) {
|
|
43
|
+
r.preventDefault(), e.hidden = !0, sessionStorage.setItem(n, "1");
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
export {
|
|
47
|
+
b as default
|
|
48
|
+
};
|
|
49
|
+
|
|
50
|
+
;/* vite-per-chunk-css */
|
|
51
|
+
__vite_inject_css__(".free{position:absolute;bottom:0;display:flex;justify-content:center;width:100%;min-height:2rem;background:#ab40a0;background:linear-gradient(90deg,#e5175c,#5c17e5);opacity:1;transition:all .5s}.free>section{display:flex;padding:.2rem .5rem;font-size:.8rem;-webkit-user-select:none;user-select:none}.free__message{display:flex;align-items:center;color:#fff}.free__message a{color:#fff;text-decoration:underline}.free__dismiss{display:flex;align-items:center;margin-inline-start:.5rem;padding:.1rem .8rem;background:#1378d5;border-radius:2px;font-size:.8rem;font-weight:500;color:#fff!important;text-decoration:none!important}.free__dismiss:hover{background:#69b7ff}@media print{.free__dismiss{display:none}}.free.top{top:0;bottom:unset;width:100%;min-height:2.5rem}.free.top>section{flex-grow:1}.free.top span{display:inline-block}.free.top .free__message{flex-grow:1}.free.bottom .free__message{font-size:1.5rem;font-weight:300;color:#ffffffe6}.free.bottom>section{padding:.5rem}.free.bottom .free__dismiss{padding:.5rem 1rem;font-size:1.2rem;font-weight:600}.free.hidden{transform:translateY(100%)}.free.top.hidden{transform:translateY(-100%)}\n/*$vite$:1*/", "Free.css");
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
import { j as e } from "./jsx-runtime-CoKhM3tL.js";
|
|
2
|
+
import { r as d, o as E } from "./index.js";
|
|
3
|
+
import { y as N } from "./index-jp-Zhdyp.js";
|
|
4
|
+
import { as as v, at as G, au as S } from "./floorplan.ready-BQetaqdP.js";
|
|
5
|
+
(function() {
|
|
6
|
+
try {
|
|
7
|
+
var s = typeof window < "u" ? window : typeof global < "u" ? global : typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : {};
|
|
8
|
+
s.SENTRY_RELEASE = { id: "3.0.1" };
|
|
9
|
+
var a = new s.Error().stack;
|
|
10
|
+
a && (s._sentryDebugIds = s._sentryDebugIds || {}, s._sentryDebugIds[a] = "7256ff82-0acf-4237-aaaa-6ac9e6f8d367", s._sentryDebugIdIdentifier = "sentry-dbid-7256ff82-0acf-4237-aaaa-6ac9e6f8d367");
|
|
11
|
+
} catch {
|
|
12
|
+
}
|
|
13
|
+
})();
|
|
14
|
+
const w = ({
|
|
15
|
+
count: s,
|
|
16
|
+
onFullscreen: a
|
|
17
|
+
}) => /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
|
|
18
|
+
/* @__PURE__ */ e.jsxs("div", { className: "gallery__badge gallery__badge-count", children: [
|
|
19
|
+
/* @__PURE__ */ e.jsx("i", { className: "icon-image" }),
|
|
20
|
+
/* @__PURE__ */ e.jsx("span", { children: s })
|
|
21
|
+
] }),
|
|
22
|
+
/* @__PURE__ */ e.jsx("div", { className: "gallery__badge gallery__badge-fullscreen", onClick: a, children: /* @__PURE__ */ e.jsx("i", { className: "icon-maximize" }) })
|
|
23
|
+
] }), x = ({
|
|
24
|
+
url: s,
|
|
25
|
+
position: a = "center",
|
|
26
|
+
leading: r = !1,
|
|
27
|
+
setHeight: t = !1,
|
|
28
|
+
fillMode: i,
|
|
29
|
+
onClick: o,
|
|
30
|
+
onImageLoadHeightUpdate: c
|
|
31
|
+
}) => /* @__PURE__ */ e.jsx("div", { className: "gallery__item", onClick: o, children: /* @__PURE__ */ e.jsx(v, { position: a, fillMode: i, url: s, leading: r, setHeight: t, onImageLoadHeightUpdate: c }) }), D = (s) => {
|
|
32
|
+
const {
|
|
33
|
+
images: a,
|
|
34
|
+
leading: r = !1,
|
|
35
|
+
onImageLoadHeightUpdate: t,
|
|
36
|
+
onOpenGallery: i,
|
|
37
|
+
onCloseGallery: o,
|
|
38
|
+
className: c
|
|
39
|
+
} = s, [p, m] = d.useState(!1), [h, j] = d.useState(0), [_, u] = d.useState(!1), g = (l) => {
|
|
40
|
+
j(l), m(!0), i && i();
|
|
41
|
+
}, b = () => {
|
|
42
|
+
m(!1), o && o();
|
|
43
|
+
}, I = (l) => {
|
|
44
|
+
let n = l.split("/");
|
|
45
|
+
const f = n[n.length - 1];
|
|
46
|
+
return f.indexOf("original-") === -1 && (n[n.length - 1] = "original-" + f), n.join("/");
|
|
47
|
+
}, y = (l, n) => n ? I(l) : l;
|
|
48
|
+
return d.useEffect(() => {
|
|
49
|
+
(async () => {
|
|
50
|
+
if (a.length > 0) {
|
|
51
|
+
const n = y(a[0], !0);
|
|
52
|
+
try {
|
|
53
|
+
await S.load(n), u(!0);
|
|
54
|
+
} catch {
|
|
55
|
+
u(!1);
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
})();
|
|
59
|
+
}, [a]), /* @__PURE__ */ e.jsxs(E.Fragment, { children: [
|
|
60
|
+
/* @__PURE__ */ e.jsxs("div", { className: N("gallery", {
|
|
61
|
+
"gallery-leading": r
|
|
62
|
+
}, c), children: [
|
|
63
|
+
/* @__PURE__ */ e.jsx("div", { className: "gallery__wrapper", children: r ? /* @__PURE__ */ e.jsx(x, { url: a[0], leading: r, setHeight: !0, fillMode: "contain", onClick: () => g(0), onImageLoadHeightUpdate: t }) : a.map((l, n) => /* @__PURE__ */ e.jsx(x, { url: l, position: "top", fillMode: "cover", onClick: () => g(n), onImageLoadHeightUpdate: t }, l + n)) }),
|
|
64
|
+
!r && /* @__PURE__ */ e.jsx(w, { onFullscreen: () => g(0), count: a.length })
|
|
65
|
+
] }),
|
|
66
|
+
p && /* @__PURE__ */ e.jsx(G, { className: c, images: a.map((l) => y(l, _)), leading: r, initialSlideIndex: h, onClose: b })
|
|
67
|
+
] });
|
|
68
|
+
};
|
|
69
|
+
export {
|
|
70
|
+
D as default
|
|
71
|
+
};
|
|
@@ -0,0 +1,140 @@
|
|
|
1
|
+
import { j as S } from "./jsx-runtime-CoKhM3tL.js";
|
|
2
|
+
import { r as a, l as I, z as y, _ as T } from "./index.js";
|
|
3
|
+
import { af as _, ag as A, ah as k, ai as x, s as b, aj as D, e as G } from "./floorplan.ready-BQetaqdP.js";
|
|
4
|
+
import "./index-jp-Zhdyp.js";
|
|
5
|
+
(function() {
|
|
6
|
+
try {
|
|
7
|
+
var t = typeof window < "u" ? window : typeof global < "u" ? global : typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : {};
|
|
8
|
+
t.SENTRY_RELEASE = { id: "3.0.1" };
|
|
9
|
+
var n = new t.Error().stack;
|
|
10
|
+
n && (t._sentryDebugIds = t._sentryDebugIds || {}, t._sentryDebugIds[n] = "1bddcbce-15df-4a25-a120-eae5293abc43", t._sentryDebugIdIdentifier = "sentry-dbid-1bddcbce-15df-4a25-a120-eae5293abc43");
|
|
11
|
+
} catch {
|
|
12
|
+
}
|
|
13
|
+
})();
|
|
14
|
+
const v = 3;
|
|
15
|
+
function L(t) {
|
|
16
|
+
return Math.floor(t);
|
|
17
|
+
}
|
|
18
|
+
function M(t, n) {
|
|
19
|
+
return _(t.lat, t.lng, n.lat, n.lng) >= v ? !0 : t.heading !== n.heading;
|
|
20
|
+
}
|
|
21
|
+
const P = 120, N = 3e3, q = 360;
|
|
22
|
+
function H(t) {
|
|
23
|
+
const n = a.useRef(null), r = a.useRef(null), i = a.useRef(0), s = a.useRef(null), l = a.useRef(!1), o = a.useRef(null), c = a.useRef(!1), u = a.useRef(null), d = (e) => t(e), m = (e) => {
|
|
24
|
+
const f = Date.now();
|
|
25
|
+
if (f - i.current < P) return;
|
|
26
|
+
const h = s.current;
|
|
27
|
+
if (!o.current) {
|
|
28
|
+
o.current = e, i.current = f, s.current = e, d(e);
|
|
29
|
+
return;
|
|
30
|
+
}
|
|
31
|
+
const E = _(o.current.lat, o.current.lng, e.lat, e.lng);
|
|
32
|
+
let g;
|
|
33
|
+
c.current ? E <= v ? (c.current = !1, o.current = e, g = {
|
|
34
|
+
...o.current,
|
|
35
|
+
heading: e.heading
|
|
36
|
+
}) : (o.current = e, g = e) : E >= v ? (c.current = !0, o.current = e, u.current = null, g = e) : (u.current == null && (u.current = f), f - u.current > N && (o.current = e), g = {
|
|
37
|
+
...o.current,
|
|
38
|
+
heading: e.heading
|
|
39
|
+
}), !(h && !M(h, g)) && (i.current = f, s.current = g, d(g));
|
|
40
|
+
}, R = a.useCallback((e) => {
|
|
41
|
+
var E;
|
|
42
|
+
const f = (E = e.webkitCompassHeading) != null ? E : e.alpha != null ? q - e.alpha : null;
|
|
43
|
+
if (f == null) return;
|
|
44
|
+
const h = L(f);
|
|
45
|
+
r.current !== h && (r.current = h, s.current && m({
|
|
46
|
+
...s.current,
|
|
47
|
+
heading: h
|
|
48
|
+
}));
|
|
49
|
+
}, [t]);
|
|
50
|
+
return {
|
|
51
|
+
startGeolocation: () => {
|
|
52
|
+
n.current == null && (n.current = navigator.geolocation.watchPosition((e) => {
|
|
53
|
+
m({
|
|
54
|
+
lat: e.coords.latitude,
|
|
55
|
+
lng: e.coords.longitude,
|
|
56
|
+
heading: r.current
|
|
57
|
+
});
|
|
58
|
+
}, (e) => I.warn("Geolocation watch error:", e), {
|
|
59
|
+
enableHighAccuracy: !0,
|
|
60
|
+
maximumAge: 0
|
|
61
|
+
}));
|
|
62
|
+
},
|
|
63
|
+
startOrientation: () => {
|
|
64
|
+
l.current || (l.current = !0, window.addEventListener("deviceorientation", R, !0));
|
|
65
|
+
},
|
|
66
|
+
stopGeolocation: () => {
|
|
67
|
+
n.current != null && (navigator.geolocation.clearWatch(n.current), n.current = null), o.current = null, c.current = !1;
|
|
68
|
+
},
|
|
69
|
+
stopOrientation: () => {
|
|
70
|
+
l.current = !1, window.removeEventListener("deviceorientation", R, !0);
|
|
71
|
+
}
|
|
72
|
+
};
|
|
73
|
+
}
|
|
74
|
+
const j = A(function({
|
|
75
|
+
isOpen: n,
|
|
76
|
+
onAllow: r,
|
|
77
|
+
onCancel: i
|
|
78
|
+
}) {
|
|
79
|
+
return n ? /* @__PURE__ */ S.jsx(k, { title: y("Show your position on the map"), acceptText: y("Allow compass access"), rejectText: y("Not now"), onClickAccept: r, onClickReject: i, children: y("To display your current position and orient the map around you, we’ll ask for permission to access your device orientation") }) : null;
|
|
80
|
+
});
|
|
81
|
+
function Y({
|
|
82
|
+
onPositionUpdate: t,
|
|
83
|
+
onAllowCompass: n,
|
|
84
|
+
onRejectCompass: r,
|
|
85
|
+
orientationStorageKey: i = "compass-permission-granted",
|
|
86
|
+
requestCompass: s = !0,
|
|
87
|
+
requestCompassAllowed: l = !0
|
|
88
|
+
}) {
|
|
89
|
+
const {
|
|
90
|
+
startOrientation: o,
|
|
91
|
+
startGeolocation: c,
|
|
92
|
+
stopOrientation: u,
|
|
93
|
+
stopGeolocation: d
|
|
94
|
+
} = H(t), [m, R] = a.useState(!1), [O, p] = a.useState(!1);
|
|
95
|
+
a.useEffect(() => (navigator.geolocation.getCurrentPosition(() => {
|
|
96
|
+
R(!0), c();
|
|
97
|
+
}, (e) => {
|
|
98
|
+
I.warn("Geolocation error:", e), R(!1);
|
|
99
|
+
}), () => {
|
|
100
|
+
u(), d();
|
|
101
|
+
}), [c, d, u]);
|
|
102
|
+
const w = async () => {
|
|
103
|
+
typeof DeviceOrientationEvent < "u" && typeof DeviceOrientationEvent.requestPermission == "function" && await DeviceOrientationEvent.requestPermission() !== "granted" || (localStorage.setItem(i, "true"), o(), p(!1), n == null || n());
|
|
104
|
+
}, C = a.useCallback(() => {
|
|
105
|
+
localStorage.setItem(i, "false"), p(!1), r == null || r();
|
|
106
|
+
}, [r]);
|
|
107
|
+
return a.useEffect(() => {
|
|
108
|
+
if (!m || !l || typeof navigator > "u" || !x) return;
|
|
109
|
+
const e = localStorage.getItem(i);
|
|
110
|
+
if (!e || s) {
|
|
111
|
+
p(!0);
|
|
112
|
+
return;
|
|
113
|
+
}
|
|
114
|
+
e === "true" && w();
|
|
115
|
+
}, [m, s, l, w]), /* @__PURE__ */ S.jsx(j, { isOpen: O, onAllow: w, onCancel: C });
|
|
116
|
+
}
|
|
117
|
+
function K({
|
|
118
|
+
requestCompassAllowed: t
|
|
119
|
+
}) {
|
|
120
|
+
const [n, r] = a.useState(!1), i = a.useCallback(({
|
|
121
|
+
lat: o,
|
|
122
|
+
lng: c,
|
|
123
|
+
angle: u,
|
|
124
|
+
heading: d
|
|
125
|
+
}) => {
|
|
126
|
+
b.routeStore.selectCurrentPosition(new D(0, 0, 0, u || d, o, c), !1);
|
|
127
|
+
}, []), s = a.useCallback(() => {
|
|
128
|
+
b.routeStore.requestCompass = void 0, r(!1);
|
|
129
|
+
}, [r]), l = a.useCallback(() => {
|
|
130
|
+
b.routeStore.requestCompass = void 0, r(!1);
|
|
131
|
+
}, [r]);
|
|
132
|
+
return G(() => b.uiState.hideCookieConsent, (o) => {
|
|
133
|
+
r(o);
|
|
134
|
+
}), G(() => b.routeStore.requestCompass, (o) => {
|
|
135
|
+
r(o);
|
|
136
|
+
}), /* @__PURE__ */ S.jsx(Y, { requestCompass: n, requestCompassAllowed: t, onRejectCompass: s, onAllowCompass: l, orientationStorageKey: T, onPositionUpdate: i });
|
|
137
|
+
}
|
|
138
|
+
export {
|
|
139
|
+
K as default
|
|
140
|
+
};
|
|
@@ -0,0 +1,225 @@
|
|
|
1
|
+
import { aw as h, j as k, p as d, q as l, h as g } from "./index.js";
|
|
2
|
+
import "./jsx-runtime-CoKhM3tL.js";
|
|
3
|
+
import { s as o, ao as f, ap as v, aq as D, ar as O } from "./floorplan.ready-BQetaqdP.js";
|
|
4
|
+
import "./index-jp-Zhdyp.js";
|
|
5
|
+
(function() {
|
|
6
|
+
try {
|
|
7
|
+
var a = typeof window < "u" ? window : typeof global < "u" ? global : typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : {};
|
|
8
|
+
a.SENTRY_RELEASE = { id: "3.0.1" };
|
|
9
|
+
var e = new a.Error().stack;
|
|
10
|
+
e && (a._sentryDebugIds = a._sentryDebugIds || {}, a._sentryDebugIds[e] = "d1196771-e02a-4eec-9256-cbbaec718aea", a._sentryDebugIdIdentifier = "sentry-dbid-d1196771-e02a-4eec-9256-cbbaec718aea");
|
|
11
|
+
} catch {
|
|
12
|
+
}
|
|
13
|
+
})();
|
|
14
|
+
function w(a) {
|
|
15
|
+
const e = a.viewport.canvasToSvg({
|
|
16
|
+
x: 0,
|
|
17
|
+
y: 0
|
|
18
|
+
}), r = a.viewport.canvasToSvg({
|
|
19
|
+
x: a.canvas.clientWidth,
|
|
20
|
+
y: 0
|
|
21
|
+
}), i = a.viewport.canvasToSvg({
|
|
22
|
+
x: 0,
|
|
23
|
+
y: a.canvas.clientHeight
|
|
24
|
+
}), p = a.viewport.canvasToSvg({
|
|
25
|
+
x: a.canvas.clientWidth,
|
|
26
|
+
y: a.canvas.clientHeight
|
|
27
|
+
}), s = Math.min(e.x, r.x, i.x, p.x), c = Math.max(e.x, r.x, i.x, p.x), u = Math.min(e.y, r.y, i.y, p.y), y = Math.max(e.y, r.y, i.y, p.y);
|
|
28
|
+
return {
|
|
29
|
+
x: s,
|
|
30
|
+
y: u,
|
|
31
|
+
width: c - s,
|
|
32
|
+
height: y - u,
|
|
33
|
+
left: s,
|
|
34
|
+
right: c,
|
|
35
|
+
top: y,
|
|
36
|
+
bottom: u,
|
|
37
|
+
center: {
|
|
38
|
+
x: (s + c) / 2,
|
|
39
|
+
y: (u + y) / 2
|
|
40
|
+
}
|
|
41
|
+
};
|
|
42
|
+
}
|
|
43
|
+
function C(a, e) {
|
|
44
|
+
const r = w(a);
|
|
45
|
+
return e.x >= r.left && e.x <= r.right && e.y >= r.bottom && e.y <= r.top;
|
|
46
|
+
}
|
|
47
|
+
var t, S, m;
|
|
48
|
+
function b(a, e, r, i) {
|
|
49
|
+
r && Object.defineProperty(a, e, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(i) : void 0 });
|
|
50
|
+
}
|
|
51
|
+
function n(a, e, r, i, p) {
|
|
52
|
+
var s = {};
|
|
53
|
+
return Object.keys(i).forEach(function(c) {
|
|
54
|
+
s[c] = i[c];
|
|
55
|
+
}), s.enumerable = !!s.enumerable, s.configurable = !!s.configurable, ("value" in s || s.initializer) && (s.writable = !0), s = r.slice().reverse().reduce(function(c, u) {
|
|
56
|
+
return u(a, e, c) || c;
|
|
57
|
+
}, s), p && s.initializer !== void 0 && (s.value = s.initializer ? s.initializer.call(p) : void 0, s.initializer = void 0), s.initializer === void 0 ? (Object.defineProperty(a, e, s), null) : s;
|
|
58
|
+
}
|
|
59
|
+
let P = (t = class {
|
|
60
|
+
constructor() {
|
|
61
|
+
b(this, "savedKiosk", S, this), b(this, "statusMessages", m, this), this.statusMessageTimer = 0, this.initialPtScale = void 0;
|
|
62
|
+
}
|
|
63
|
+
get kiosk() {
|
|
64
|
+
return o.uiState.kioskData;
|
|
65
|
+
}
|
|
66
|
+
setKiosk(e) {
|
|
67
|
+
o.uiState.setKioskData(e);
|
|
68
|
+
}
|
|
69
|
+
get renderer() {
|
|
70
|
+
return o.rendererService.renderer;
|
|
71
|
+
}
|
|
72
|
+
getCameraState() {
|
|
73
|
+
const e = o.rendererService.getCameraState();
|
|
74
|
+
return e ? {
|
|
75
|
+
mapInitialPtScale: this.initialPtScale,
|
|
76
|
+
mapPtScale: e.ptScale,
|
|
77
|
+
mapCenterX: e.center.x,
|
|
78
|
+
mapCenterY: e.center.y,
|
|
79
|
+
mapRollDegrees: e.roll,
|
|
80
|
+
mapPitch: e.pitch
|
|
81
|
+
} : {};
|
|
82
|
+
}
|
|
83
|
+
get hasUnsavedChanges() {
|
|
84
|
+
const e = this.savedKiosk, r = h(this.kiosk);
|
|
85
|
+
if (!r || !e)
|
|
86
|
+
return !!r != !!e;
|
|
87
|
+
const i = Object.keys(e), p = Object.keys(r);
|
|
88
|
+
if (i.length !== p.length)
|
|
89
|
+
return !0;
|
|
90
|
+
for (const s of i)
|
|
91
|
+
if (!(s in r) || e[s] !== r[s])
|
|
92
|
+
return !0;
|
|
93
|
+
return !1;
|
|
94
|
+
}
|
|
95
|
+
addStatusMessage(e) {
|
|
96
|
+
this.statusMessages = [{
|
|
97
|
+
...e,
|
|
98
|
+
id: Date.now()
|
|
99
|
+
}], this.startCleanupMessages();
|
|
100
|
+
}
|
|
101
|
+
clearStatusMessages() {
|
|
102
|
+
this.statusMessages = [];
|
|
103
|
+
}
|
|
104
|
+
startCleanupMessages() {
|
|
105
|
+
clearTimeout(this.statusMessageTimer), this.statusMessageTimer = window.setTimeout(() => this.clearStatusMessages(), 1e3);
|
|
106
|
+
}
|
|
107
|
+
async resetCamera() {
|
|
108
|
+
const {
|
|
109
|
+
z: e,
|
|
110
|
+
mapRollDegrees: r,
|
|
111
|
+
mapInitialPtScale: i,
|
|
112
|
+
mapPtScale: p,
|
|
113
|
+
mapCenterX: s,
|
|
114
|
+
mapCenterY: c
|
|
115
|
+
} = this.kiosk || {};
|
|
116
|
+
await this.renderer.controls.resetCamera({
|
|
117
|
+
pan: !0,
|
|
118
|
+
zoom: !0,
|
|
119
|
+
roll: !0,
|
|
120
|
+
pitch: !0
|
|
121
|
+
}, !0), k(() => {
|
|
122
|
+
Number.isFinite(i) && Number.isFinite(p) && p > 0 && this.renderer.controls.zoomBy(i / p, !0), Number.isFinite(s) && Number.isFinite(c) && this.renderer.controls.panTo(s, c, !0), Number.isFinite(r) && this.renderer.controls.rollTo(r, !0), e && o.fp.activateFloor({
|
|
123
|
+
name: e
|
|
124
|
+
});
|
|
125
|
+
});
|
|
126
|
+
}
|
|
127
|
+
restoreData() {
|
|
128
|
+
const e = f();
|
|
129
|
+
return e && (this.setKiosk(e), this.savedKiosk = e, o.uiState.kiosk = !0, this.resetCamera()), e;
|
|
130
|
+
}
|
|
131
|
+
handleSetupReady() {
|
|
132
|
+
this.restoreData(), o.uiState.kiosk = !0, o.uiState.hideFreeOrDemo = !0, o.uiState.setForceDimm(!0), o.searchStore.setSearchText(""), o.searchStore.setFocused(!1);
|
|
133
|
+
}
|
|
134
|
+
handleClose() {
|
|
135
|
+
this.setKiosk(null), o.uiState.setForceDimm(!1), o.uiState.enableSetKioskMode(!1), o.searchStore.closeSearch(), this.resetCamera();
|
|
136
|
+
}
|
|
137
|
+
handleDelete() {
|
|
138
|
+
v(), this.setKiosk(null), o.uiState.resetMapSettings(), o.uiState.resetUIScale(), this.resetCamera(), this.addStatusMessage({
|
|
139
|
+
variant: "success",
|
|
140
|
+
title: "Deleted"
|
|
141
|
+
});
|
|
142
|
+
}
|
|
143
|
+
handleSave() {
|
|
144
|
+
const e = h(this.kiosk), r = this.getCameraState(), i = {
|
|
145
|
+
...e,
|
|
146
|
+
...r
|
|
147
|
+
};
|
|
148
|
+
if (!C(this.renderer, i)) {
|
|
149
|
+
this.addStatusMessage({
|
|
150
|
+
variant: "error",
|
|
151
|
+
title: "Kiosk not visible"
|
|
152
|
+
});
|
|
153
|
+
return;
|
|
154
|
+
}
|
|
155
|
+
this.setKiosk(i), D(i), o.uiState.setUIScale(i.uiScale, !0), this.addStatusMessage({
|
|
156
|
+
variant: "success",
|
|
157
|
+
title: "Saved"
|
|
158
|
+
}), this.savedKiosk = i;
|
|
159
|
+
}
|
|
160
|
+
delayChange(e) {
|
|
161
|
+
requestAnimationFrame(() => e == null ? void 0 : e());
|
|
162
|
+
}
|
|
163
|
+
handleChange(e) {
|
|
164
|
+
const r = h(this.kiosk);
|
|
165
|
+
r && (Number.isFinite(e.angle) && this.setKiosk({
|
|
166
|
+
...r,
|
|
167
|
+
heading: e.angle
|
|
168
|
+
}), Number.isFinite(e.scale) && (this.setKiosk({
|
|
169
|
+
...r,
|
|
170
|
+
uiScale: e.scale
|
|
171
|
+
}), this.delayChange(() => o.uiState.setUIScale(e.scale, !1))), Number.isFinite(e.percent) && this.setKiosk({
|
|
172
|
+
...r,
|
|
173
|
+
iconSizePercent: e.percent
|
|
174
|
+
}));
|
|
175
|
+
}
|
|
176
|
+
setInitialPtScale(e) {
|
|
177
|
+
if (this.initialPtScale)
|
|
178
|
+
return;
|
|
179
|
+
this.initialPtScale = e;
|
|
180
|
+
const r = h(this.kiosk);
|
|
181
|
+
r && this.setKiosk({
|
|
182
|
+
...r,
|
|
183
|
+
mapInitialPtScale: e
|
|
184
|
+
});
|
|
185
|
+
}
|
|
186
|
+
handleClick({
|
|
187
|
+
point: e
|
|
188
|
+
}) {
|
|
189
|
+
var c;
|
|
190
|
+
const r = h(this.kiosk), i = o.fp.getFloors(), p = O() ? (c = i.find((u) => u.active)) == null ? void 0 : c.name : null, s = o.uiState.uiScale;
|
|
191
|
+
this.setKiosk({
|
|
192
|
+
...r,
|
|
193
|
+
x: e.x,
|
|
194
|
+
y: e.y,
|
|
195
|
+
z: p,
|
|
196
|
+
uiScale: (r == null ? void 0 : r.uiScale) || s,
|
|
197
|
+
heading: (r == null ? void 0 : r.heading) || 0,
|
|
198
|
+
iconSizePercent: (r == null ? void 0 : r.iconSizePercent) || 100,
|
|
199
|
+
...this.getCameraState()
|
|
200
|
+
});
|
|
201
|
+
}
|
|
202
|
+
handleNavigationChange() {
|
|
203
|
+
const e = h(this.kiosk);
|
|
204
|
+
e && this.setKiosk({
|
|
205
|
+
...e,
|
|
206
|
+
...this.getCameraState()
|
|
207
|
+
});
|
|
208
|
+
}
|
|
209
|
+
}, n(t.prototype, "kiosk", [d], Object.getOwnPropertyDescriptor(t.prototype, "kiosk"), t.prototype), n(t.prototype, "setKiosk", [l], Object.getOwnPropertyDescriptor(t.prototype, "setKiosk"), t.prototype), n(t.prototype, "renderer", [d], Object.getOwnPropertyDescriptor(t.prototype, "renderer"), t.prototype), S = n(t.prototype, "savedKiosk", [g], {
|
|
210
|
+
configurable: !0,
|
|
211
|
+
enumerable: !0,
|
|
212
|
+
writable: !0,
|
|
213
|
+
initializer: null
|
|
214
|
+
}), n(t.prototype, "hasUnsavedChanges", [d], Object.getOwnPropertyDescriptor(t.prototype, "hasUnsavedChanges"), t.prototype), m = n(t.prototype, "statusMessages", [g], {
|
|
215
|
+
configurable: !0,
|
|
216
|
+
enumerable: !0,
|
|
217
|
+
writable: !0,
|
|
218
|
+
initializer: function() {
|
|
219
|
+
return [];
|
|
220
|
+
}
|
|
221
|
+
}), n(t.prototype, "addStatusMessage", [l], Object.getOwnPropertyDescriptor(t.prototype, "addStatusMessage"), t.prototype), n(t.prototype, "clearStatusMessages", [l], Object.getOwnPropertyDescriptor(t.prototype, "clearStatusMessages"), t.prototype), n(t.prototype, "startCleanupMessages", [l], Object.getOwnPropertyDescriptor(t.prototype, "startCleanupMessages"), t.prototype), n(t.prototype, "resetCamera", [l], Object.getOwnPropertyDescriptor(t.prototype, "resetCamera"), t.prototype), n(t.prototype, "restoreData", [l], Object.getOwnPropertyDescriptor(t.prototype, "restoreData"), t.prototype), n(t.prototype, "handleSetupReady", [l], Object.getOwnPropertyDescriptor(t.prototype, "handleSetupReady"), t.prototype), n(t.prototype, "handleClose", [l], Object.getOwnPropertyDescriptor(t.prototype, "handleClose"), t.prototype), n(t.prototype, "handleDelete", [l], Object.getOwnPropertyDescriptor(t.prototype, "handleDelete"), t.prototype), n(t.prototype, "handleSave", [l], Object.getOwnPropertyDescriptor(t.prototype, "handleSave"), t.prototype), n(t.prototype, "handleChange", [l], Object.getOwnPropertyDescriptor(t.prototype, "handleChange"), t.prototype), n(t.prototype, "setInitialPtScale", [l], Object.getOwnPropertyDescriptor(t.prototype, "setInitialPtScale"), t.prototype), n(t.prototype, "handleClick", [l], Object.getOwnPropertyDescriptor(t.prototype, "handleClick"), t.prototype), n(t.prototype, "handleNavigationChange", [l], Object.getOwnPropertyDescriptor(t.prototype, "handleNavigationChange"), t.prototype), t);
|
|
222
|
+
const F = new P();
|
|
223
|
+
export {
|
|
224
|
+
F as k
|
|
225
|
+
};
|