@expofp/floorplan 0.0.0-experimental.2d6c681
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +8 -0
- package/dist/browser/Button-DT-Jfwrb.js +64 -0
- package/dist/browser/CookieConsent-BIsWzAiP.js +38 -0
- package/dist/browser/Debug-B5mmo0ZX.js +53 -0
- package/dist/browser/DebugTools-Y0aycjKM.js +1931 -0
- package/dist/browser/Demo-B2klxORi.js +71 -0
- package/dist/browser/Free-suULW-LU.js +69 -0
- package/dist/browser/GalleryContainer-BGBNGRKU.js +3355 -0
- package/dist/browser/GpsLoader-Idv0kq5D.js +154 -0
- package/dist/browser/KioskStore-Dg9jaX5d.js +250 -0
- package/dist/browser/LayerStore-CK6wLW56.js +24105 -0
- package/dist/browser/MaplibreAdapter-uZUhZfFW.js +36770 -0
- package/dist/browser/ModalContainer-DWm8vEaI.js +148 -0
- package/dist/browser/PermissionNotice-DaqnuHln.js +54 -0
- package/dist/browser/RouteStore-NE2I9tiF.js +3715 -0
- package/dist/browser/SetKioskMode-Dwlf5w7q.js +49 -0
- package/dist/browser/ShowKiosk-Cr-QmIUT.js +82 -0
- package/dist/browser/ViewerMenuPanel-CTAjGsq2.js +133 -0
- package/dist/browser/add-debug-secret-listener-BECnIMzo.js +55 -0
- package/dist/browser/adopt-global-settings-U-KbyxMd.js +185 -0
- package/dist/browser/boolean-editor-CYMx87em.js +149 -0
- package/dist/browser/bootIntercom-BqQsnxII.js +37 -0
- package/dist/browser/bundle.json +422 -0
- package/dist/browser/camera-events-DSCuSH25.js +18 -0
- package/dist/browser/classnames-YcGXWNfg.js +39 -0
- package/dist/browser/client-BcPpS_Gj.js +7402 -0
- package/dist/browser/compat-helper.js +6 -0
- package/dist/browser/components-BjEhhgf2.js +7393 -0
- package/dist/browser/create-live-plan-BaEGBhGA.js +4046 -0
- package/dist/browser/debounce-raMZ2DqK.js +2102 -0
- package/dist/browser/debug-context-CNBgUWR8.js +24315 -0
- package/dist/browser/debug-overlay-B__pFwQg.js +1455 -0
- package/dist/browser/debug-ui-BaE8MZQX.js +86 -0
- package/dist/browser/dist-C1NaWqk4.js +2611 -0
- package/dist/browser/dist-Cx8u0gjK.js +21 -0
- package/dist/browser/dist-wOC6gYFh.js +205 -0
- package/dist/browser/efp-debug-init-CozbueIl.js +245 -0
- package/dist/browser/enum-editor-CkiQPgZv.js +34 -0
- package/dist/browser/es5-B__Ovz45.js +1712 -0
- package/dist/browser/event-head-C_inMpbD.js +56 -0
- package/dist/browser/event-not-found-Z2mJBZE3.js +31 -0
- package/dist/browser/expofp-overlay.png +0 -0
- package/dist/browser/expofpUrl-jBUlvkwz.js +19 -0
- package/dist/browser/exports-CvUYw1h6.js +1525 -0
- package/dist/browser/favicon-BkDrYTmU.js +12 -0
- package/dist/browser/fetch-retry.umd-2B2pCUIS.js +78 -0
- package/dist/browser/flex-3lSivw8z.js +823 -0
- package/dist/browser/floorplan.loader-CGzIMplb.js +3282 -0
- package/dist/browser/floorplan.ready-r96zV9bP.js +1448 -0
- package/dist/browser/fonts/efp-symbols.woff +0 -0
- package/dist/browser/fonts/inter-400.woff2 +0 -0
- package/dist/browser/fonts/inter-500.woff2 +0 -0
- package/dist/browser/fonts/inter-600.woff2 +0 -0
- package/dist/browser/fonts/oswald-v17-cyrillic_latin-300.woff +0 -0
- package/dist/browser/fonts/oswald-v17-cyrillic_latin-500.woff +0 -0
- package/dist/browser/freeBanner-CnrBc9Tl.js +22 -0
- package/dist/browser/fuse-B7V1lkoA.js +1177 -0
- package/dist/browser/i18n-BgFBhYOU.js +7205 -0
- package/dist/browser/icons/accessible.svg +5 -0
- package/dist/browser/icons/arrow-down.svg +3 -0
- package/dist/browser/icons/bus-white.svg +3 -0
- package/dist/browser/icons/check.svg +3 -0
- package/dist/browser/icons/clear.svg +4 -0
- package/dist/browser/icons/departure.svg +5 -0
- package/dist/browser/icons/departure_inactive.svg +5 -0
- package/dist/browser/icons/destination.svg +5 -0
- package/dist/browser/icons/direction.svg +54 -0
- package/dist/browser/icons/dots.svg +4 -0
- package/dist/browser/icons/dragdrop-solid.svg +11 -0
- package/dist/browser/icons/facebook.svg +4 -0
- package/dist/browser/icons/from.svg +4 -0
- package/dist/browser/icons/kiosk.svg +1 -0
- package/dist/browser/icons/linkedin.svg +3 -0
- package/dist/browser/icons/rotate.svg +5 -0
- package/dist/browser/icons/tap.svg +5 -0
- package/dist/browser/icons/to.svg +4 -0
- package/dist/browser/icons/transition.svg +7 -0
- package/dist/browser/icons/transition_down.svg +15 -0
- package/dist/browser/icons/transition_up.svg +15 -0
- package/dist/browser/icons/twitter.svg +3 -0
- package/dist/browser/icons/yah.svg +17 -0
- package/dist/browser/index.html +139 -0
- package/dist/browser/index.js +254 -0
- package/dist/browser/index.module-kJmnWg5B.js +153 -0
- package/dist/browser/integrateKiosk-D45vYRsm.js +35 -0
- package/dist/browser/is-debug-BRHdrnKr.js +197 -0
- package/dist/browser/is-own-domain-DNvxb9Ph.js +26 -0
- package/dist/browser/is-webview-cTH4yz8f.js +12 -0
- package/dist/browser/journey-plan-DtL28HMP.js +1865 -0
- package/dist/browser/jsx-runtime-DQgnuS-I.js +30 -0
- package/dist/browser/kiosk-mode-DfkGlDkT.js +28 -0
- package/dist/browser/kiosk-record-JAEq8SV6.js +18 -0
- package/dist/browser/kioskUrlParam-CnYhnC_7.js +141 -0
- package/dist/browser/lib--J2yQXt6.js +1910 -0
- package/dist/browser/loadImage-DzSnRAxX.js +30 -0
- package/dist/browser/locales/ar.json +228 -0
- package/dist/browser/locales/da.json +229 -0
- package/dist/browser/locales/de.json +228 -0
- package/dist/browser/locales/es.json +228 -0
- package/dist/browser/locales/fr.json +228 -0
- package/dist/browser/locales/he.json +228 -0
- package/dist/browser/locales/it.json +228 -0
- package/dist/browser/locales/kk.json +228 -0
- package/dist/browser/locales/ko.json +228 -0
- package/dist/browser/locales/mn.json +228 -0
- package/dist/browser/locales/nl.json +228 -0
- package/dist/browser/locales/pl.json +228 -0
- package/dist/browser/locales/pt.json +228 -0
- package/dist/browser/locales/ru.json +228 -0
- package/dist/browser/locales/sv.json +228 -0
- package/dist/browser/locales/th.json +228 -0
- package/dist/browser/locales/tr.json +228 -0
- package/dist/browser/locales/uk.json +228 -0
- package/dist/browser/locales/vi.json +228 -0
- package/dist/browser/locales/zh.json +228 -0
- package/dist/browser/logDeviceInfo-BTqyv9Xe.js +58 -0
- package/dist/browser/mobx-C-kcS0zI.js +43 -0
- package/dist/browser/mobx.module-BOCLFB5I.js +2064 -0
- package/dist/browser/optional-boolean-editor-ZncW2HBw.js +20 -0
- package/dist/browser/optional-enum-editor-Dkzs9jDN.js +34 -0
- package/dist/browser/optional-string-editor-DC9PMUWB.js +30 -0
- package/dist/browser/particles.min-eC5xdOrB.js +133 -0
- package/dist/browser/react-DqPP-mkq.js +301 -0
- package/dist/browser/react-dom-BkVzoZWO.js +139 -0
- package/dist/browser/rolldown-runtime-DUb2xvRc.js +28 -0
- package/dist/browser/scheduler-NBuuaWIe.js +212 -0
- package/dist/browser/select-Cxf-YiNA.js +1367 -0
- package/dist/browser/settings-D74eG9h8.js +9 -0
- package/dist/browser/settings-item-DUUbKec_.js +76 -0
- package/dist/browser/store-q_CTsixH.js +58 -0
- package/dist/browser/string-editor-CINOmY_C.js +30 -0
- package/dist/browser/text-field-DORaOVht.js +88 -0
- package/dist/browser/theme-DyFm9MGz.js +2803 -0
- package/dist/browser/ui-DsCU3FV6.js +43 -0
- package/dist/browser/useRenderTarget-RFckzUJM.js +57 -0
- package/dist/browser/vendor/perfect-scrollbar/css/perfect-scrollbar.css +1 -0
- package/dist/browser/vendor/sanitize-css/sanitize.css +1 -0
- package/dist/browser/venue-public-BA3x-n4N.js +296 -0
- package/dist/browser/venues-DKpIy-87.js +447 -0
- package/dist/browser/viewport-B7plho3P.js +48 -0
- package/dist/browser/warning.png +0 -0
- package/dist/esm/_misc_to_move/initHtmlHead.d.ts +2 -0
- package/dist/esm/_misc_to_move/initHtmlHead.js +34 -0
- package/dist/esm/_misc_to_move/logBuildInfo.d.ts +2 -0
- package/dist/esm/_misc_to_move/logBuildInfo.js +35 -0
- package/dist/esm/_misc_to_move/logDeviceInfo.d.ts +10 -0
- package/dist/esm/_misc_to_move/logDeviceInfo.js +84 -0
- package/dist/esm/components/AlertContainer.d.ts +4 -0
- package/dist/esm/components/AlertContainer.js +8 -0
- package/dist/esm/components/AutocompleteContainer.d.ts +4 -0
- package/dist/esm/components/AutocompleteContainer.js +14 -0
- package/dist/esm/components/BaseFilterModal.d.ts +11 -0
- package/dist/esm/components/BaseFilterModal.js +73 -0
- package/dist/esm/components/Bookmarks.d.ts +3 -0
- package/dist/esm/components/Bookmarks.js +26 -0
- package/dist/esm/components/Booth/Booth.d.ts +5 -0
- package/dist/esm/components/Booth/Booth.js +135 -0
- package/dist/esm/components/Booth/BoothOnHold.d.ts +13 -0
- package/dist/esm/components/Booth/BoothOnHold.js +11 -0
- package/dist/esm/components/Booth/BoothReserved.d.ts +3 -0
- package/dist/esm/components/Booth/BoothReserved.js +7 -0
- package/dist/esm/components/Booth/BoothSpecial.d.ts +8 -0
- package/dist/esm/components/Booth/BoothSpecial.js +4 -0
- package/dist/esm/components/Booth/BoothWithoutExhibitor.d.ts +13 -0
- package/dist/esm/components/Booth/BoothWithoutExhibitor.js +29 -0
- package/dist/esm/components/Category.d.ts +5 -0
- package/dist/esm/components/Category.js +25 -0
- package/dist/esm/components/CategoryFilterModal.d.ts +3 -0
- package/dist/esm/components/CategoryFilterModal.js +63 -0
- package/dist/esm/components/CookieConsent.d.ts +9 -0
- package/dist/esm/components/CookieConsent.js +9 -0
- package/dist/esm/components/Debug.d.ts +5 -0
- package/dist/esm/components/Debug.js +15 -0
- package/dist/esm/components/Demo.d.ts +4 -0
- package/dist/esm/components/Demo.js +37 -0
- package/dist/esm/components/DownloadListContainer.d.ts +5 -0
- package/dist/esm/components/DownloadListContainer.js +8 -0
- package/dist/esm/components/EntityItemContainer.d.ts +28 -0
- package/dist/esm/components/EntityItemContainer.js +36 -0
- package/dist/esm/components/EntityList.d.ts +9 -0
- package/dist/esm/components/EntityList.js +144 -0
- package/dist/esm/components/EntityListRow.d.ts +13 -0
- package/dist/esm/components/EntityListRow.js +78 -0
- package/dist/esm/components/ErrorBoundary.d.ts +15 -0
- package/dist/esm/components/ErrorBoundary.js +29 -0
- package/dist/esm/components/Event.d.ts +5 -0
- package/dist/esm/components/Event.js +167 -0
- package/dist/esm/components/EventBadgeContainer.d.ts +8 -0
- package/dist/esm/components/EventBadgeContainer.js +29 -0
- package/dist/esm/components/Exhibitor.d.ts +5 -0
- package/dist/esm/components/Exhibitor.js +299 -0
- package/dist/esm/components/Filter.d.ts +4 -0
- package/dist/esm/components/Filter.js +24 -0
- package/dist/esm/components/Free.d.ts +4 -0
- package/dist/esm/components/Free.js +31 -0
- package/dist/esm/components/GalleryContainer.d.ts +6 -0
- package/dist/esm/components/GalleryContainer.js +55 -0
- package/dist/esm/components/GlobalErrorMessage.d.ts +4 -0
- package/dist/esm/components/GlobalErrorMessage.js +9 -0
- package/dist/esm/components/GpsLoader.d.ts +5 -0
- package/dist/esm/components/GpsLoader.js +29 -0
- package/dist/esm/components/HeatmapLegendContainer.d.ts +5 -0
- package/dist/esm/components/HeatmapLegendContainer.js +13 -0
- package/dist/esm/components/HighlightTextContainer.d.ts +6 -0
- package/dist/esm/components/HighlightTextContainer.js +10 -0
- package/dist/esm/components/IntercomLauncher.d.ts +5 -0
- package/dist/esm/components/IntercomLauncher.js +20 -0
- package/dist/esm/components/JourneyPanel.d.ts +35 -0
- package/dist/esm/components/JourneyPanel.js +68 -0
- package/dist/esm/components/Kiosk/KioskStore.d.ts +60 -0
- package/dist/esm/components/Kiosk/KioskStore.js +411 -0
- package/dist/esm/components/Kiosk/SetKiosk/Confirm/ConfirmDialog.d.ts +5 -0
- package/dist/esm/components/Kiosk/SetKiosk/Confirm/ConfirmDialog.js +8 -0
- package/dist/esm/components/Kiosk/SetKiosk/FormInput/RangeInput.d.ts +5 -0
- package/dist/esm/components/Kiosk/SetKiosk/FormInput/RangeInput.js +24 -0
- package/dist/esm/components/Kiosk/SetKiosk/Message/InfoMessage.d.ts +5 -0
- package/dist/esm/components/Kiosk/SetKiosk/Message/InfoMessage.js +7 -0
- package/dist/esm/components/Kiosk/SetKiosk/SetKioskComponent.d.ts +5 -0
- package/dist/esm/components/Kiosk/SetKiosk/SetKioskComponent.js +78 -0
- package/dist/esm/components/Kiosk/SetKiosk/SetKioskForm.d.ts +5 -0
- package/dist/esm/components/Kiosk/SetKiosk/SetKioskForm.js +10 -0
- package/dist/esm/components/Kiosk/SetKiosk/SetKioskStatusMessages.d.ts +5 -0
- package/dist/esm/components/Kiosk/SetKiosk/SetKioskStatusMessages.js +15 -0
- package/dist/esm/components/Kiosk/SetKiosk/constants.d.ts +6 -0
- package/dist/esm/components/Kiosk/SetKiosk/constants.js +6 -0
- package/dist/esm/components/Kiosk/SetKiosk/getKioskUrlParamKey.d.ts +2 -0
- package/dist/esm/components/Kiosk/SetKiosk/getKioskUrlParamKey.js +4 -0
- package/dist/esm/components/Kiosk/SetKiosk/getName.d.ts +2 -0
- package/dist/esm/components/Kiosk/SetKiosk/getName.js +2 -0
- package/dist/esm/components/Kiosk/SetKiosk/getSlug.d.ts +2 -0
- package/dist/esm/components/Kiosk/SetKiosk/getSlug.js +2 -0
- package/dist/esm/components/Kiosk/SetKiosk/index.d.ts +7 -0
- package/dist/esm/components/Kiosk/SetKiosk/index.js +6 -0
- package/dist/esm/components/Kiosk/SetKiosk/storage.d.ts +5 -0
- package/dist/esm/components/Kiosk/SetKiosk/storage.js +21 -0
- package/dist/esm/components/Kiosk/SetKiosk/types.d.ts +109 -0
- package/dist/esm/components/Kiosk/SetKiosk/types.js +1 -0
- package/dist/esm/components/Kiosk/SetKioskMode.d.ts +3 -0
- package/dist/esm/components/Kiosk/SetKioskMode.js +35 -0
- package/dist/esm/components/Kiosk/ShowKiosk.d.ts +3 -0
- package/dist/esm/components/Kiosk/ShowKiosk.js +72 -0
- package/dist/esm/components/Kiosk/integrateKiosk.d.ts +10 -0
- package/dist/esm/components/Kiosk/integrateKiosk.js +68 -0
- package/dist/esm/components/Kiosk/kiosk-mode.d.ts +26 -0
- package/dist/esm/components/Kiosk/kiosk-mode.js +56 -0
- package/dist/esm/components/Kiosk/kiosk-record.d.ts +23 -0
- package/dist/esm/components/Kiosk/kiosk-record.js +29 -0
- package/dist/esm/components/Kiosk/kioskApi.d.ts +4 -0
- package/dist/esm/components/Kiosk/kioskApi.js +47 -0
- package/dist/esm/components/Kiosk/kioskUrlParam.d.ts +8 -0
- package/dist/esm/components/Kiosk/kioskUrlParam.js +46 -0
- package/dist/esm/components/Kiosk/recoverKioskFromUrlPrams.d.ts +2 -0
- package/dist/esm/components/Kiosk/recoverKioskFromUrlPrams.js +9 -0
- package/dist/esm/components/Language.d.ts +4 -0
- package/dist/esm/components/Language.js +15 -0
- package/dist/esm/components/LanguageRowContainer.d.ts +7 -0
- package/dist/esm/components/LanguageRowContainer.js +9 -0
- package/dist/esm/components/Layout.d.ts +11 -0
- package/dist/esm/components/Layout.js +160 -0
- package/dist/esm/components/LevelBadgeContainer.d.ts +6 -0
- package/dist/esm/components/LevelBadgeContainer.js +10 -0
- package/dist/esm/components/List.d.ts +9 -0
- package/dist/esm/components/List.js +77 -0
- package/dist/esm/components/LogoOverlay.d.ts +3 -0
- package/dist/esm/components/LogoOverlay.js +78 -0
- package/dist/esm/components/Map/Map.d.ts +2 -0
- package/dist/esm/components/Map/Map.js +242 -0
- package/dist/esm/components/Map/MapCamera.d.ts +17 -0
- package/dist/esm/components/Map/MapCamera.js +194 -0
- package/dist/esm/components/Map/MapCursorCoords.d.ts +13 -0
- package/dist/esm/components/Map/MapCursorCoords.js +61 -0
- package/dist/esm/components/Map/MapViewport.d.ts +12 -0
- package/dist/esm/components/Map/MapViewport.js +29 -0
- package/dist/esm/components/Map/booth-by-xy.d.ts +14 -0
- package/dist/esm/components/Map/booth-by-xy.js +128 -0
- package/dist/esm/components/Map/camera-events.d.ts +19 -0
- package/dist/esm/components/Map/camera-events.js +26 -0
- package/dist/esm/components/Map/camera.d.ts +48 -0
- package/dist/esm/components/Map/camera.js +43 -0
- package/dist/esm/components/Map/drawing/config/BoothDrawerBase.d.ts +8 -0
- package/dist/esm/components/Map/drawing/config/BoothDrawerBase.js +8 -0
- package/dist/esm/components/Map/drawing/config/BoothShape.d.ts +7 -0
- package/dist/esm/components/Map/drawing/config/BoothShape.js +76 -0
- package/dist/esm/components/Map/drawing/config/TextFitter.d.ts +11 -0
- package/dist/esm/components/Map/drawing/config/TextFitter.js +174 -0
- package/dist/esm/components/Map/drawing/config/booth-badge-anchor.d.ts +130 -0
- package/dist/esm/components/Map/drawing/config/booth-badge-anchor.js +306 -0
- package/dist/esm/components/Map/drawing/config/booth-logos.d.ts +38 -0
- package/dist/esm/components/Map/drawing/config/booth-logos.js +94 -0
- package/dist/esm/components/Map/drawing/config/canvases.d.ts +96 -0
- package/dist/esm/components/Map/drawing/config/canvases.js +434 -0
- package/dist/esm/components/Map/drawing/config/config-all.d.ts +6 -0
- package/dist/esm/components/Map/drawing/config/config-all.js +92 -0
- package/dist/esm/components/Map/drawing/config/config-bg.d.ts +8 -0
- package/dist/esm/components/Map/drawing/config/config-bg.js +54 -0
- package/dist/esm/components/Map/drawing/config/config-booth-badge-eligibility.d.ts +28 -0
- package/dist/esm/components/Map/drawing/config/config-booth-badge-eligibility.js +7 -0
- package/dist/esm/components/Map/drawing/config/config-booth-badge-scale.d.ts +20 -0
- package/dist/esm/components/Map/drawing/config/config-booth-badge-scale.js +11 -0
- package/dist/esm/components/Map/drawing/config/config-booth-badge-visibility.d.ts +37 -0
- package/dist/esm/components/Map/drawing/config/config-booth-badge-visibility.js +3 -0
- package/dist/esm/components/Map/drawing/config/config-booth-badge.d.ts +90 -0
- package/dist/esm/components/Map/drawing/config/config-booth-badge.js +326 -0
- package/dist/esm/components/Map/drawing/config/config-booth-bg.d.ts +33 -0
- package/dist/esm/components/Map/drawing/config/config-booth-bg.js +240 -0
- package/dist/esm/components/Map/drawing/config/config-booth-bookmark.d.ts +24 -0
- package/dist/esm/components/Map/drawing/config/config-booth-bookmark.js +65 -0
- package/dist/esm/components/Map/drawing/config/config-booth-border.d.ts +12 -0
- package/dist/esm/components/Map/drawing/config/config-booth-border.js +92 -0
- package/dist/esm/components/Map/drawing/config/config-booth-labels-special.d.ts +28 -0
- package/dist/esm/components/Map/drawing/config/config-booth-labels-special.js +147 -0
- package/dist/esm/components/Map/drawing/config/config-booth-labels.d.ts +63 -0
- package/dist/esm/components/Map/drawing/config/config-booth-labels.js +380 -0
- package/dist/esm/components/Map/drawing/config/config-booths.d.ts +5 -0
- package/dist/esm/components/Map/drawing/config/config-booths.js +152 -0
- package/dist/esm/components/Map/drawing/config/config-load-layer.d.ts +4 -0
- package/dist/esm/components/Map/drawing/config/config-load-layer.js +119 -0
- package/dist/esm/components/Map/drawing/config/config-markers.d.ts +42 -0
- package/dist/esm/components/Map/drawing/config/config-markers.js +278 -0
- package/dist/esm/components/Map/drawing/config/config-outdoor-poi.d.ts +19 -0
- package/dist/esm/components/Map/drawing/config/config-outdoor-poi.js +96 -0
- package/dist/esm/components/Map/drawing/config/config-pins.d.ts +40 -0
- package/dist/esm/components/Map/drawing/config/config-pins.js +533 -0
- package/dist/esm/components/Map/drawing/config/label-inset.d.ts +26 -0
- package/dist/esm/components/Map/drawing/config/label-inset.js +26 -0
- package/dist/esm/components/Map/drawing/config/layer-images.d.ts +24 -0
- package/dist/esm/components/Map/drawing/config/layer-images.js +32 -0
- package/dist/esm/components/Map/drawing/config/layer-models.d.ts +31 -0
- package/dist/esm/components/Map/drawing/config/layer-models.js +38 -0
- package/dist/esm/components/Map/drawing/config/loadBoothsImages.d.ts +45 -0
- package/dist/esm/components/Map/drawing/config/loadBoothsImages.js +99 -0
- package/dist/esm/components/Map/drawing/config/pin-geometry.d.ts +65 -0
- package/dist/esm/components/Map/drawing/config/pin-geometry.js +75 -0
- package/dist/esm/components/Map/drawing/config/poi-pin-shape.d.ts +100 -0
- package/dist/esm/components/Map/drawing/config/poi-pin-shape.js +51 -0
- package/dist/esm/components/Map/drawing/config/poi-pin.d.ts +10 -0
- package/dist/esm/components/Map/drawing/config/poi-pin.js +88 -0
- package/dist/esm/components/Map/drawing/config/selection-style.d.ts +12 -0
- package/dist/esm/components/Map/drawing/config/selection-style.js +18 -0
- package/dist/esm/components/Map/framing-rect.d.ts +16 -0
- package/dist/esm/components/Map/framing-rect.js +24 -0
- package/dist/esm/components/Map/pointer.d.ts +79 -0
- package/dist/esm/components/Map/pointer.js +181 -0
- package/dist/esm/components/Map/scene.d.ts +20 -0
- package/dist/esm/components/Map/scene.js +24 -0
- package/dist/esm/components/Map/traffic/UpdateQueue.d.ts +13 -0
- package/dist/esm/components/Map/traffic/UpdateQueue.js +82 -0
- package/dist/esm/components/Map/traffic/trafficLayers.d.ts +12 -0
- package/dist/esm/components/Map/traffic/trafficLayers.js +29 -0
- package/dist/esm/components/Map/traffic/useBuildRoute.d.ts +9 -0
- package/dist/esm/components/Map/traffic/useBuildRoute.js +359 -0
- package/dist/esm/components/Map/traffic/useManageTraffic.d.ts +10 -0
- package/dist/esm/components/Map/traffic/useManageTraffic.js +643 -0
- package/dist/esm/components/Map/viewport.d.ts +63 -0
- package/dist/esm/components/Map/viewport.js +82 -0
- package/dist/esm/components/Map/with-kiosk.d.ts +11 -0
- package/dist/esm/components/Map/with-kiosk.js +25 -0
- package/dist/esm/components/MapControlsContainer.d.ts +3 -0
- package/dist/esm/components/MapControlsContainer.js +58 -0
- package/dist/esm/components/Maplibre/CollapsedAttributionControl.d.ts +12 -0
- package/dist/esm/components/Maplibre/CollapsedAttributionControl.js +19 -0
- package/dist/esm/components/Maplibre/ExpofpLogoControl.d.ts +20 -0
- package/dist/esm/components/Maplibre/ExpofpLogoControl.js +39 -0
- package/dist/esm/components/Maplibre/MaplibreAdapter.d.ts +18 -0
- package/dist/esm/components/Maplibre/MaplibreAdapter.js +354 -0
- package/dist/esm/components/Maplibre/MaplibreWrapper.d.ts +111 -0
- package/dist/esm/components/Maplibre/MaplibreWrapper.js +310 -0
- package/dist/esm/components/Maplibre/maplibre-recovery.d.ts +4 -0
- package/dist/esm/components/Maplibre/maplibre-recovery.js +4 -0
- package/dist/esm/components/Maplibre/styles/mapbox-streets-bright.d.ts +3 -0
- package/dist/esm/components/Maplibre/styles/mapbox-streets-bright.js +7048 -0
- package/dist/esm/components/Maplibre/styles/mapbox-streets.d.ts +3 -0
- package/dist/esm/components/Maplibre/styles/mapbox-streets.js +6132 -0
- package/dist/esm/components/Maplibre/useCameraReactions.d.ts +14 -0
- package/dist/esm/components/Maplibre/useCameraReactions.js +256 -0
- package/dist/esm/components/Maplibre/useDimming.d.ts +25 -0
- package/dist/esm/components/Maplibre/useDimming.js +61 -0
- package/dist/esm/components/Maplibre/useJourneyConnector.d.ts +16 -0
- package/dist/esm/components/Maplibre/useJourneyConnector.js +175 -0
- package/dist/esm/components/Maplibre/useKioskCameraEvents.d.ts +20 -0
- package/dist/esm/components/Maplibre/useKioskCameraEvents.js +52 -0
- package/dist/esm/components/Maplibre/useLayerVisibilitySync.d.ts +25 -0
- package/dist/esm/components/Maplibre/useLayerVisibilitySync.js +85 -0
- package/dist/esm/components/Maplibre/usePoiMarkers.d.ts +25 -0
- package/dist/esm/components/Maplibre/usePoiMarkers.js +368 -0
- package/dist/esm/components/Maplibre/useVenueCameraTracking.d.ts +6 -0
- package/dist/esm/components/Maplibre/useVenueCameraTracking.js +115 -0
- package/dist/esm/components/Maplibre/useVenueLayers.d.ts +15 -0
- package/dist/esm/components/Maplibre/useVenueLayers.js +463 -0
- package/dist/esm/components/Maplibre/useWayfindingAndMarkers.d.ts +11 -0
- package/dist/esm/components/Maplibre/useWayfindingAndMarkers.js +23 -0
- package/dist/esm/components/Maplibre/utils/basemap-palette.d.ts +19 -0
- package/dist/esm/components/Maplibre/utils/basemap-palette.js +125 -0
- package/dist/esm/components/Maplibre/utils/geo-config.d.ts +92 -0
- package/dist/esm/components/Maplibre/utils/geo-config.js +305 -0
- package/dist/esm/components/Maplibre/utils/hit-test-registry.d.ts +18 -0
- package/dist/esm/components/Maplibre/utils/hit-test-registry.js +17 -0
- package/dist/esm/components/Maplibre/utils/layer-defs.d.ts +9 -0
- package/dist/esm/components/Maplibre/utils/layer-defs.js +19 -0
- package/dist/esm/components/Maplibre/utils/local-viewport.d.ts +13 -0
- package/dist/esm/components/Maplibre/utils/local-viewport.js +31 -0
- package/dist/esm/components/Maplibre/utils/map-helpers.d.ts +21 -0
- package/dist/esm/components/Maplibre/utils/map-helpers.js +85 -0
- package/dist/esm/components/Maplibre/utils/map-theme.d.ts +20 -0
- package/dist/esm/components/Maplibre/utils/map-theme.js +44 -0
- package/dist/esm/components/Maplibre/utils/marker-layer-order.d.ts +22 -0
- package/dist/esm/components/Maplibre/utils/marker-layer-order.js +20 -0
- package/dist/esm/components/Maplibre/utils/pmtiles-range-fallback.d.ts +53 -0
- package/dist/esm/components/Maplibre/utils/pmtiles-range-fallback.js +110 -0
- package/dist/esm/components/Maplibre/utils/poi-marker-hit-test.d.ts +8 -0
- package/dist/esm/components/Maplibre/utils/poi-marker-hit-test.js +8 -0
- package/dist/esm/components/Maplibre/utils/resolve-map-style.d.ts +19 -0
- package/dist/esm/components/Maplibre/utils/resolve-map-style.js +73 -0
- package/dist/esm/components/Maplibre/utils/solver.d.ts +23 -0
- package/dist/esm/components/Maplibre/utils/solver.js +238 -0
- package/dist/esm/components/Maplibre/utils/style-fonts.d.ts +10 -0
- package/dist/esm/components/Maplibre/utils/style-fonts.js +24 -0
- package/dist/esm/components/Maplibre/utils/venue-calibration-console.d.ts +10 -0
- package/dist/esm/components/Maplibre/utils/venue-calibration-console.js +130 -0
- package/dist/esm/components/Maplibre/utils/venue-calibration.d.ts +127 -0
- package/dist/esm/components/Maplibre/utils/venue-calibration.js +144 -0
- package/dist/esm/components/Maplibre/utils/venue-camera-target.d.ts +15 -0
- package/dist/esm/components/Maplibre/utils/venue-camera-target.js +19 -0
- package/dist/esm/components/Maplibre/utils/venue-contour.d.ts +50 -0
- package/dist/esm/components/Maplibre/utils/venue-contour.fixture.d.ts +18 -0
- package/dist/esm/components/Maplibre/utils/venue-contour.fixture.js +69 -0
- package/dist/esm/components/Maplibre/utils/venue-contour.js +188 -0
- package/dist/esm/components/Maplibre/utils/venue-focus.d.ts +26 -0
- package/dist/esm/components/Maplibre/utils/venue-focus.js +106 -0
- package/dist/esm/components/Maplibre/utils/venue-legibility.d.ts +30 -0
- package/dist/esm/components/Maplibre/utils/venue-legibility.js +52 -0
- package/dist/esm/components/Maplibre/utils/venue-pin-rasterize.d.ts +88 -0
- package/dist/esm/components/Maplibre/utils/venue-pin-rasterize.js +220 -0
- package/dist/esm/components/Maplibre/utils/venue-projection.d.ts +37 -0
- package/dist/esm/components/Maplibre/utils/venue-projection.js +88 -0
- package/dist/esm/components/Maplibre/utils/venue-tap-hit-test.d.ts +9 -0
- package/dist/esm/components/Maplibre/utils/venue-tap-hit-test.js +9 -0
- package/dist/esm/components/Maplibre/utils/venue-viewport-detail.d.ts +19 -0
- package/dist/esm/components/Maplibre/utils/venue-viewport-detail.js +24 -0
- package/dist/esm/components/Maplibre/utils/venue-zoom.d.ts +23 -0
- package/dist/esm/components/Maplibre/utils/venue-zoom.js +62 -0
- package/dist/esm/components/Menu.d.ts +11 -0
- package/dist/esm/components/Menu.js +94 -0
- package/dist/esm/components/MobileToggleButtonContainer.d.ts +3 -0
- package/dist/esm/components/MobileToggleButtonContainer.js +24 -0
- package/dist/esm/components/ModalContainer.d.ts +41 -0
- package/dist/esm/components/ModalContainer.js +10 -0
- package/dist/esm/components/MultiSelectGroupsContainer.d.ts +5 -0
- package/dist/esm/components/MultiSelectGroupsContainer.js +8 -0
- package/dist/esm/components/OverlayContainer.d.ts +8 -0
- package/dist/esm/components/OverlayContainer.js +82 -0
- package/dist/esm/components/OverlayGripContainer.d.ts +4 -0
- package/dist/esm/components/OverlayGripContainer.js +11 -0
- package/dist/esm/components/OverlayParticles.d.ts +5 -0
- package/dist/esm/components/OverlayParticles.js +54 -0
- package/dist/esm/components/PlanSelectorContainer.d.ts +3 -0
- package/dist/esm/components/PlanSelectorContainer.js +79 -0
- package/dist/esm/components/RebookingNotesContainer.d.ts +4 -0
- package/dist/esm/components/RebookingNotesContainer.js +8 -0
- package/dist/esm/components/RebookingRadioGroupContainer.d.ts +6 -0
- package/dist/esm/components/RebookingRadioGroupContainer.js +23 -0
- package/dist/esm/components/RoutePlanner/RoutePlanner.d.ts +5 -0
- package/dist/esm/components/RoutePlanner/RoutePlanner.js +25 -0
- package/dist/esm/components/RoutePlanner/RoutePlannerHeader.d.ts +4 -0
- package/dist/esm/components/RoutePlanner/RoutePlannerHeader.js +11 -0
- package/dist/esm/components/RoutePlanner/RoutePlannerStartPoint.d.ts +9 -0
- package/dist/esm/components/RoutePlanner/RoutePlannerStartPoint.js +21 -0
- package/dist/esm/components/RoutePlanner/RoutePlannerStopItem.d.ts +9 -0
- package/dist/esm/components/RoutePlanner/RoutePlannerStopItem.js +41 -0
- package/dist/esm/components/RouteQR.d.ts +12 -0
- package/dist/esm/components/RouteQR.js +10 -0
- package/dist/esm/components/Schedule.d.ts +13 -0
- package/dist/esm/components/Schedule.js +109 -0
- package/dist/esm/components/ScrollableRowContainer.d.ts +6 -0
- package/dist/esm/components/ScrollableRowContainer.js +11 -0
- package/dist/esm/components/Search.d.ts +5 -0
- package/dist/esm/components/Search.js +45 -0
- package/dist/esm/components/SearchBox.d.ts +7 -0
- package/dist/esm/components/SearchBox.js +171 -0
- package/dist/esm/components/SearchButtons/SearchButton.d.ts +20 -0
- package/dist/esm/components/SearchButtons/SearchButton.js +30 -0
- package/dist/esm/components/SearchButtons/SearchButtons.d.ts +4 -0
- package/dist/esm/components/SearchButtons/SearchButtons.js +25 -0
- package/dist/esm/components/SearchButtons/SearchSubButton.d.ts +14 -0
- package/dist/esm/components/SearchButtons/SearchSubButton.js +12 -0
- package/dist/esm/components/SearchButtons/SearchSubButtons.d.ts +5 -0
- package/dist/esm/components/SearchButtons/SearchSubButtons.js +43 -0
- package/dist/esm/components/SearchButtons/index.d.ts +7 -0
- package/dist/esm/components/SearchButtons/index.js +5 -0
- package/dist/esm/components/Sessions.d.ts +8 -0
- package/dist/esm/components/Sessions.js +128 -0
- package/dist/esm/components/SessionsFiltersModal.d.ts +11 -0
- package/dist/esm/components/SessionsFiltersModal.js +105 -0
- package/dist/esm/components/SessionsList.d.ts +12 -0
- package/dist/esm/components/SessionsList.js +212 -0
- package/dist/esm/components/ShareContainer.d.ts +7 -0
- package/dist/esm/components/ShareContainer.js +29 -0
- package/dist/esm/components/Shortcuts/ShortcutButton.d.ts +9 -0
- package/dist/esm/components/Shortcuts/ShortcutButton.js +25 -0
- package/dist/esm/components/Shortcuts/ShortcutsFiltersButton.d.ts +9 -0
- package/dist/esm/components/Shortcuts/ShortcutsFiltersButton.js +41 -0
- package/dist/esm/components/Shortcuts/ShortcutsToolbar.d.ts +10 -0
- package/dist/esm/components/Shortcuts/ShortcutsToolbar.js +22 -0
- package/dist/esm/components/Shortcuts/index.d.ts +4 -0
- package/dist/esm/components/Shortcuts/index.js +4 -0
- package/dist/esm/components/ShowMoreButtonContainer.d.ts +5 -0
- package/dist/esm/components/ShowMoreButtonContainer.js +8 -0
- package/dist/esm/components/SidebarActionsContainer.d.ts +5 -0
- package/dist/esm/components/SidebarActionsContainer.js +8 -0
- package/dist/esm/components/SimpleRowContainer.d.ts +8 -0
- package/dist/esm/components/SimpleRowContainer.js +8 -0
- package/dist/esm/components/Speaker.d.ts +5 -0
- package/dist/esm/components/Speaker.js +72 -0
- package/dist/esm/components/Speakers.d.ts +8 -0
- package/dist/esm/components/Speakers.js +63 -0
- package/dist/esm/components/SpeakersFiltersModal.d.ts +11 -0
- package/dist/esm/components/SpeakersFiltersModal.js +77 -0
- package/dist/esm/components/TourPoints.d.ts +4 -0
- package/dist/esm/components/TourPoints.js +20 -0
- package/dist/esm/components/Tours.d.ts +7 -0
- package/dist/esm/components/Tours.js +54 -0
- package/dist/esm/components/ToursList.d.ts +10 -0
- package/dist/esm/components/ToursList.js +22 -0
- package/dist/esm/components/ViewerMenuPanel.d.ts +5 -0
- package/dist/esm/components/ViewerMenuPanel.js +61 -0
- package/dist/esm/components/Visited.d.ts +4 -0
- package/dist/esm/components/Visited.js +13 -0
- package/dist/esm/components/WayInformation.d.ts +14 -0
- package/dist/esm/components/WayInformation.js +8 -0
- package/dist/esm/components/Wayfinding.d.ts +4 -0
- package/dist/esm/components/Wayfinding.js +285 -0
- package/dist/esm/components/WayfindingFloorSelectorContainer.d.ts +5 -0
- package/dist/esm/components/WayfindingFloorSelectorContainer.js +12 -0
- package/dist/esm/components/WayfindingTemplate.d.ts +66 -0
- package/dist/esm/components/WayfindingTemplate.js +14 -0
- package/dist/esm/components/Ws.d.ts +5 -0
- package/dist/esm/components/Ws.js +131 -0
- package/dist/esm/components/YahRow.d.ts +8 -0
- package/dist/esm/components/YahRow.js +25 -0
- package/dist/esm/components/gps/GpsManager.d.ts +13 -0
- package/dist/esm/components/gps/GpsManager.js +60 -0
- package/dist/esm/components/gps/GpsPermissionRequest.d.ts +8 -0
- package/dist/esm/components/gps/GpsPermissionRequest.js +10 -0
- package/dist/esm/components/gps/index.d.ts +5 -0
- package/dist/esm/components/gps/index.js +3 -0
- package/dist/esm/components/gps/types.d.ts +7 -0
- package/dist/esm/components/gps/types.js +1 -0
- package/dist/esm/components/gps/useUserLocationAndHeading.d.ts +8 -0
- package/dist/esm/components/gps/useUserLocationAndHeading.js +122 -0
- package/dist/esm/components/gps/utils.d.ts +5 -0
- package/dist/esm/components/gps/utils.js +11 -0
- package/dist/esm/components/heatmap-legend-ticks.d.ts +11 -0
- package/dist/esm/components/heatmap-legend-ticks.js +18 -0
- package/dist/esm/components/index.d.ts +114 -0
- package/dist/esm/components/index.js +76 -0
- package/dist/esm/components/utils/entity-venue-grouping.d.ts +32 -0
- package/dist/esm/components/utils/entity-venue-grouping.js +43 -0
- package/dist/esm/components/utils/getDescription.d.ts +19 -0
- package/dist/esm/components/utils/getDescription.js +35 -0
- package/dist/esm/constants.d.ts +44 -0
- package/dist/esm/constants.js +66 -0
- package/dist/esm/data/fp-payloads.d.ts +27 -0
- package/dist/esm/data/fp-payloads.js +53 -0
- package/dist/esm/data/fpGeo.d.ts +45 -0
- package/dist/esm/data/fpGeo.js +9 -0
- package/dist/esm/data/index.d.ts +15 -0
- package/dist/esm/data/index.js +15 -0
- package/dist/esm/data/layer-viewbox.d.ts +10 -0
- package/dist/esm/data/layer-viewbox.js +20 -0
- package/dist/esm/data/svg.d.ts +43 -0
- package/dist/esm/data/svg.js +210 -0
- package/dist/esm/data/tours.json +280 -0
- package/dist/esm/data/venue-scene-preload.d.ts +34 -0
- package/dist/esm/data/venue-scene-preload.js +205 -0
- package/dist/esm/data/venues.d.ts +145 -0
- package/dist/esm/data/venues.js +955 -0
- package/dist/esm/engine/defs.d.ts +38 -0
- package/dist/esm/engine/defs.js +85 -0
- package/dist/esm/engine/fonts.d.ts +9 -0
- package/dist/esm/engine/fonts.js +12 -0
- package/dist/esm/engine/update-def.d.ts +55 -0
- package/dist/esm/engine/update-def.js +127 -0
- package/dist/esm/engine/utils/rotation.d.ts +13 -0
- package/dist/esm/engine/utils/rotation.js +73 -0
- package/dist/esm/floorplan.loader.d.ts +164 -0
- package/dist/esm/floorplan.loader.js +540 -0
- package/dist/esm/floorplan.ready.d.ts +149 -0
- package/dist/esm/floorplan.ready.js +1083 -0
- package/dist/esm/hooks/useURLFilters.d.ts +15 -0
- package/dist/esm/hooks/useURLFilters.js +44 -0
- package/dist/esm/index.d.ts +3 -0
- package/dist/esm/index.js +12 -0
- package/dist/esm/intercom/bootIntercom.d.ts +3 -0
- package/dist/esm/intercom/bootIntercom.js +47 -0
- package/dist/esm/intercom/index.d.ts +3 -0
- package/dist/esm/intercom/index.js +1 -0
- package/dist/esm/intercom/shouldLoad.d.ts +4 -0
- package/dist/esm/intercom/shouldLoad.js +74 -0
- package/dist/esm/intercom/types.d.ts +6 -0
- package/dist/esm/intercom/types.js +1 -0
- package/dist/esm/internal-settings.d.ts +13 -0
- package/dist/esm/internal-settings.js +6 -0
- package/dist/esm/journey/external-navigation.d.ts +30 -0
- package/dist/esm/journey/external-navigation.js +38 -0
- package/dist/esm/journey/format-distance.d.ts +14 -0
- package/dist/esm/journey/format-distance.js +38 -0
- package/dist/esm/journey/index.d.ts +16 -0
- package/dist/esm/journey/index.js +15 -0
- package/dist/esm/journey/journey-context.d.ts +140 -0
- package/dist/esm/journey/journey-context.js +137 -0
- package/dist/esm/journey/journey-link.d.ts +49 -0
- package/dist/esm/journey/journey-link.js +35 -0
- package/dist/esm/journey/journey-stage.d.ts +35 -0
- package/dist/esm/journey/journey-stage.js +28 -0
- package/dist/esm/journey/maps-provider.d.ts +36 -0
- package/dist/esm/journey/maps-provider.js +58 -0
- package/dist/esm/journey/plan-journey.d.ts +37 -0
- package/dist/esm/journey/plan-journey.js +176 -0
- package/dist/esm/journey/types.d.ts +294 -0
- package/dist/esm/journey/types.js +1 -0
- package/dist/esm/load-dev.d.ts +44 -0
- package/dist/esm/load-dev.js +60 -0
- package/dist/esm/load.d.ts +17 -0
- package/dist/esm/load.js +244 -0
- package/dist/esm/locales.d.ts +25 -0
- package/dist/esm/locales.js +23 -0
- package/dist/esm/offline/constants.d.ts +5 -0
- package/dist/esm/offline/constants.js +4 -0
- package/dist/esm/offline/offlineManager.d.ts +2 -0
- package/dist/esm/offline/offlineManager.js +78 -0
- package/dist/esm/plan-lifecycle.d.ts +65 -0
- package/dist/esm/plan-lifecycle.js +97 -0
- package/dist/esm/schemas/sdk.schemas.d.ts +25 -0
- package/dist/esm/schemas/sdk.schemas.js +24 -0
- package/dist/esm/services/URLFilterManager.d.ts +39 -0
- package/dist/esm/services/URLFilterManager.js +379 -0
- package/dist/esm/services/multi-slug.d.ts +20 -0
- package/dist/esm/services/multi-slug.js +30 -0
- package/dist/esm/services/url-dispatch.d.ts +22 -0
- package/dist/esm/services/url-dispatch.js +707 -0
- package/dist/esm/services/url-sync.d.ts +40 -0
- package/dist/esm/services/url-sync.js +185 -0
- package/dist/esm/store/BaseFilterStore.d.ts +17 -0
- package/dist/esm/store/BaseFilterStore.js +63 -0
- package/dist/esm/store/BookmarksStore.d.ts +9 -0
- package/dist/esm/store/BookmarksStore.js +28 -0
- package/dist/esm/store/BoothStore.d.ts +105 -0
- package/dist/esm/store/BoothStore.js +194 -0
- package/dist/esm/store/CategoryFilterStore.d.ts +13 -0
- package/dist/esm/store/CategoryFilterStore.js +60 -0
- package/dist/esm/store/CategoryStore.d.ts +21 -0
- package/dist/esm/store/CategoryStore.js +30 -0
- package/dist/esm/store/EventStore.d.ts +56 -0
- package/dist/esm/store/EventStore.js +188 -0
- package/dist/esm/store/ExhibitorStore.d.ts +86 -0
- package/dist/esm/store/ExhibitorStore.js +175 -0
- package/dist/esm/store/FuzzySearchEngineStore.d.ts +15 -0
- package/dist/esm/store/FuzzySearchEngineStore.js +45 -0
- package/dist/esm/store/HeatmapStore.d.ts +51 -0
- package/dist/esm/store/HeatmapStore.js +100 -0
- package/dist/esm/store/IntercomStore.d.ts +7 -0
- package/dist/esm/store/IntercomStore.js +26 -0
- package/dist/esm/store/LayerStore.d.ts +70 -0
- package/dist/esm/store/LayerStore.js +399 -0
- package/dist/esm/store/MaplibreStore.d.ts +71 -0
- package/dist/esm/store/MaplibreStore.js +137 -0
- package/dist/esm/store/OverlayStore.d.ts +32 -0
- package/dist/esm/store/OverlayStore.js +68 -0
- package/dist/esm/store/PoiMarkerStore.d.ts +76 -0
- package/dist/esm/store/PoiMarkerStore.js +97 -0
- package/dist/esm/store/PoiTypeStore.d.ts +8 -0
- package/dist/esm/store/PoiTypeStore.js +6 -0
- package/dist/esm/store/RootStore.d.ts +118 -0
- package/dist/esm/store/RootStore.js +666 -0
- package/dist/esm/store/RoutePlannerStore.d.ts +56 -0
- package/dist/esm/store/RoutePlannerStore.js +322 -0
- package/dist/esm/store/RouteStore.d.ts +138 -0
- package/dist/esm/store/RouteStore.js +692 -0
- package/dist/esm/store/SearchButtonsStore.d.ts +2 -0
- package/dist/esm/store/SearchButtonsStore.js +2 -0
- package/dist/esm/store/SearchStore.d.ts +81 -0
- package/dist/esm/store/SearchStore.js +612 -0
- package/dist/esm/store/SessionsFilterStore.d.ts +53 -0
- package/dist/esm/store/SessionsFilterStore.js +169 -0
- package/dist/esm/store/ShortcutProvider.d.ts +26 -0
- package/dist/esm/store/ShortcutProvider.js +5 -0
- package/dist/esm/store/ShortcutRegistry.d.ts +33 -0
- package/dist/esm/store/ShortcutRegistry.js +130 -0
- package/dist/esm/store/SpeakerFilterStore.d.ts +39 -0
- package/dist/esm/store/SpeakerFilterStore.js +152 -0
- package/dist/esm/store/SpeakerStore.d.ts +45 -0
- package/dist/esm/store/SpeakerStore.js +142 -0
- package/dist/esm/store/SubButtonProvider.d.ts +16 -0
- package/dist/esm/store/SubButtonProvider.js +6 -0
- package/dist/esm/store/SubButtonRegistry.d.ts +16 -0
- package/dist/esm/store/SubButtonRegistry.js +58 -0
- package/dist/esm/store/ToursStore.d.ts +30 -0
- package/dist/esm/store/ToursStore.js +184 -0
- package/dist/esm/store/UIState.d.ts +329 -0
- package/dist/esm/store/UIState.js +2138 -0
- package/dist/esm/store/VenueStore.d.ts +254 -0
- package/dist/esm/store/VenueStore.js +650 -0
- package/dist/esm/store/create-live-plan.d.ts +13 -0
- package/dist/esm/store/create-live-plan.js +25 -0
- package/dist/esm/store/details-events.d.ts +11 -0
- package/dist/esm/store/details-events.js +76 -0
- package/dist/esm/store/floor-activated-notifier.d.ts +18 -0
- package/dist/esm/store/floor-activated-notifier.js +22 -0
- package/dist/esm/store/index.d.ts +3 -0
- package/dist/esm/store/index.js +14 -0
- package/dist/esm/store/init/index.d.ts +3 -0
- package/dist/esm/store/init/index.js +20 -0
- package/dist/esm/store/init/init-booths.d.ts +6 -0
- package/dist/esm/store/init/init-booths.js +306 -0
- package/dist/esm/store/init/init-categories.d.ts +3 -0
- package/dist/esm/store/init/init-categories.js +28 -0
- package/dist/esm/store/init/init-events.d.ts +3 -0
- package/dist/esm/store/init/init-events.js +45 -0
- package/dist/esm/store/init/init-exhibitors.d.ts +3 -0
- package/dist/esm/store/init/init-exhibitors.js +71 -0
- package/dist/esm/store/init/init-heatmap.d.ts +3 -0
- package/dist/esm/store/init/init-heatmap.js +37 -0
- package/dist/esm/store/init/init-layers.d.ts +8 -0
- package/dist/esm/store/init/init-layers.js +151 -0
- package/dist/esm/store/init/init-poiTypes.d.ts +3 -0
- package/dist/esm/store/init/init-poiTypes.js +6 -0
- package/dist/esm/store/init/init-speakers.d.ts +3 -0
- package/dist/esm/store/init/init-speakers.js +20 -0
- package/dist/esm/store/init/init-ui.d.ts +13 -0
- package/dist/esm/store/init/init-ui.js +155 -0
- package/dist/esm/store/journey-plan.d.ts +89 -0
- package/dist/esm/store/journey-plan.js +291 -0
- package/dist/esm/store/live-store.d.ts +19 -0
- package/dist/esm/store/live-store.js +26 -0
- package/dist/esm/store/outdoor-poi-filter.d.ts +21 -0
- package/dist/esm/store/outdoor-poi-filter.js +33 -0
- package/dist/esm/store/providers/SearchShortcutProvider.d.ts +13 -0
- package/dist/esm/store/providers/SearchShortcutProvider.js +59 -0
- package/dist/esm/store/providers/SessionsShortcutProvider.d.ts +17 -0
- package/dist/esm/store/providers/SessionsShortcutProvider.js +221 -0
- package/dist/esm/store/providers/SessionsSubButtonProvider.d.ts +33 -0
- package/dist/esm/store/providers/SessionsSubButtonProvider.js +100 -0
- package/dist/esm/store/providers/SpeakerShortcutProvider.d.ts +12 -0
- package/dist/esm/store/providers/SpeakerShortcutProvider.js +73 -0
- package/dist/esm/store/reveal-layer.d.ts +29 -0
- package/dist/esm/store/reveal-layer.js +25 -0
- package/dist/esm/store/search-buttons/SearchButtonsActions.d.ts +55 -0
- package/dist/esm/store/search-buttons/SearchButtonsActions.js +363 -0
- package/dist/esm/store/search-buttons/SearchButtonsFactory.d.ts +37 -0
- package/dist/esm/store/search-buttons/SearchButtonsFactory.js +291 -0
- package/dist/esm/store/search-buttons/SearchButtonsFilters.d.ts +20 -0
- package/dist/esm/store/search-buttons/SearchButtonsFilters.js +157 -0
- package/dist/esm/store/search-buttons/SearchButtonsState.d.ts +24 -0
- package/dist/esm/store/search-buttons/SearchButtonsState.js +125 -0
- package/dist/esm/store/search-buttons/SearchButtonsStore.d.ts +73 -0
- package/dist/esm/store/search-buttons/SearchButtonsStore.js +364 -0
- package/dist/esm/store/search-buttons/constants.d.ts +24 -0
- package/dist/esm/store/search-buttons/constants.js +24 -0
- package/dist/esm/store/search-buttons/index.d.ts +8 -0
- package/dist/esm/store/search-buttons/index.js +7 -0
- package/dist/esm/store/search-buttons/utils.d.ts +6 -0
- package/dist/esm/store/search-buttons/utils.js +34 -0
- package/dist/esm/store/types.d.ts +213 -0
- package/dist/esm/store/types.js +1 -0
- package/dist/esm/store/venue-public.d.ts +10 -0
- package/dist/esm/store/venue-public.js +14 -0
- package/dist/esm/store/venue-selection.d.ts +45 -0
- package/dist/esm/store/venue-selection.js +101 -0
- package/dist/esm/test/store-harness.d.ts +32 -0
- package/dist/esm/test/store-harness.js +116 -0
- package/dist/esm/tools/base-runtime-url.d.ts +3 -0
- package/dist/esm/tools/base-runtime-url.js +23 -0
- package/dist/esm/tools/debounce.d.ts +2 -0
- package/dist/esm/tools/debounce.js +10 -0
- package/dist/esm/tools/debugCanvases.d.ts +3 -0
- package/dist/esm/tools/debugCanvases.js +3 -0
- package/dist/esm/tools/event-not-found.d.ts +18 -0
- package/dist/esm/tools/event-not-found.js +50 -0
- package/dist/esm/tools/event-scoped-cache.d.ts +13 -0
- package/dist/esm/tools/event-scoped-cache.js +47 -0
- package/dist/esm/tools/expofpUrl.d.ts +7 -0
- package/dist/esm/tools/expofpUrl.js +10 -0
- package/dist/esm/tools/freeBanner.d.ts +5 -0
- package/dist/esm/tools/freeBanner.js +11 -0
- package/dist/esm/tools/gtag.d.ts +66 -0
- package/dist/esm/tools/gtag.js +287 -0
- package/dist/esm/tools/handleDebugMode.d.ts +19 -0
- package/dist/esm/tools/handleDebugMode.js +61 -0
- package/dist/esm/tools/has-html-tags.d.ts +2 -0
- package/dist/esm/tools/has-html-tags.js +3 -0
- package/dist/esm/tools/id.d.ts +2 -0
- package/dist/esm/tools/id.js +5 -0
- package/dist/esm/tools/loaders.d.ts +5 -0
- package/dist/esm/tools/loaders.js +67 -0
- package/dist/esm/tools/logger.d.ts +38 -0
- package/dist/esm/tools/logger.js +87 -0
- package/dist/esm/tools/rebooking-config.d.ts +10 -0
- package/dist/esm/tools/rebooking-config.js +19 -0
- package/dist/esm/tools/rebookingUrl.d.ts +11 -0
- package/dist/esm/tools/rebookingUrl.js +27 -0
- package/dist/esm/tools/report-error.d.ts +2 -0
- package/dist/esm/tools/report-error.js +134 -0
- package/dist/esm/tools/reset.d.ts +2 -0
- package/dist/esm/tools/reset.js +35 -0
- package/dist/esm/tools/sentry.d.ts +7 -0
- package/dist/esm/tools/sentry.js +166 -0
- package/dist/esm/tools/settings.d.ts +36 -0
- package/dist/esm/tools/settings.js +110 -0
- package/dist/esm/tools/slug.d.ts +2 -0
- package/dist/esm/tools/slug.js +27 -0
- package/dist/esm/tools/strip-html.d.ts +2 -0
- package/dist/esm/tools/strip-html.js +7 -0
- package/dist/esm/tools/style-registry.d.ts +28 -0
- package/dist/esm/tools/style-registry.js +46 -0
- package/dist/esm/tools/telemetry.d.ts +37 -0
- package/dist/esm/tools/telemetry.js +266 -0
- package/dist/esm/tools/track-event.d.ts +28 -0
- package/dist/esm/tools/track-event.js +196 -0
- package/dist/esm/tools/webgl-logger.d.ts +2 -0
- package/dist/esm/tools/webgl-logger.js +31 -0
- package/dist/esm/types/drawing.types.d.ts +18 -0
- package/dist/esm/types/drawing.types.js +1 -0
- package/dist/esm/types/sdk.types.d.ts +49 -0
- package/dist/esm/types/sdk.types.js +6 -0
- package/dist/esm/types.d.ts +593 -0
- package/dist/esm/types.js +1 -0
- package/dist/esm/utils/_OLD_gpu-info.d.ts +6 -0
- package/dist/esm/utils/_OLD_gpu-info.js +23 -0
- package/dist/esm/utils/_OLD_should-use-backdrop.d.ts +3 -0
- package/dist/esm/utils/_OLD_should-use-backdrop.js +4 -0
- package/dist/esm/utils/areLayersEnabled.d.ts +2 -0
- package/dist/esm/utils/areLayersEnabled.js +4 -0
- package/dist/esm/utils/blob-image-size.d.ts +27 -0
- package/dist/esm/utils/blob-image-size.js +37 -0
- package/dist/esm/utils/brand.d.ts +18 -0
- package/dist/esm/utils/brand.js +19 -0
- package/dist/esm/utils/browser.d.ts +4 -0
- package/dist/esm/utils/browser.js +4 -0
- package/dist/esm/utils/calcSpeed.d.ts +2 -0
- package/dist/esm/utils/calcSpeed.js +5 -0
- package/dist/esm/utils/calcTravelTime.d.ts +2 -0
- package/dist/esm/utils/calcTravelTime.js +3 -0
- package/dist/esm/utils/camera-map-settings.d.ts +26 -0
- package/dist/esm/utils/camera-map-settings.js +86 -0
- package/dist/esm/utils/color-gradient.d.ts +2 -0
- package/dist/esm/utils/color-gradient.js +14 -0
- package/dist/esm/utils/customCommands.d.ts +2 -0
- package/dist/esm/utils/customCommands.js +33 -0
- package/dist/esm/utils/detectLimitedModeViaImage.d.ts +2 -0
- package/dist/esm/utils/detectLimitedModeViaImage.js +33 -0
- package/dist/esm/utils/dimming.d.ts +27 -0
- package/dist/esm/utils/dimming.js +88 -0
- package/dist/esm/utils/entity-storage.d.ts +14 -0
- package/dist/esm/utils/entity-storage.js +122 -0
- package/dist/esm/utils/event-head.d.ts +38 -0
- package/dist/esm/utils/event-head.js +90 -0
- package/dist/esm/utils/event-now.d.ts +11 -0
- package/dist/esm/utils/event-now.js +40 -0
- package/dist/esm/utils/event-title.d.ts +19 -0
- package/dist/esm/utils/event-title.js +20 -0
- package/dist/esm/utils/eventFullBadge.d.ts +3 -0
- package/dist/esm/utils/eventFullBadge.js +7 -0
- package/dist/esm/utils/eventTime.d.ts +15 -0
- package/dist/esm/utils/eventTime.js +82 -0
- package/dist/esm/utils/extractMetaFromString.d.ts +5 -0
- package/dist/esm/utils/extractMetaFromString.js +16 -0
- package/dist/esm/utils/geo-anchors.d.ts +10 -0
- package/dist/esm/utils/geo-anchors.js +12 -0
- package/dist/esm/utils/geometry.d.ts +2 -0
- package/dist/esm/utils/geometry.js +12 -0
- package/dist/esm/utils/getContrastTextColor.d.ts +2 -0
- package/dist/esm/utils/getContrastTextColor.js +26 -0
- package/dist/esm/utils/getLogoUrl.d.ts +9 -0
- package/dist/esm/utils/getLogoUrl.js +26 -0
- package/dist/esm/utils/getMostFrequent.d.ts +2 -0
- package/dist/esm/utils/getMostFrequent.js +14 -0
- package/dist/esm/utils/getRenderTargetFromRoot.d.ts +2 -0
- package/dist/esm/utils/getRenderTargetFromRoot.js +19 -0
- package/dist/esm/utils/gps.d.ts +40 -0
- package/dist/esm/utils/gps.js +66 -0
- package/dist/esm/utils/heatmap-enabled.d.ts +13 -0
- package/dist/esm/utils/heatmap-enabled.js +13 -0
- package/dist/esm/utils/i18n.d.ts +18 -0
- package/dist/esm/utils/i18n.js +117 -0
- package/dist/esm/utils/index.d.ts +10 -0
- package/dist/esm/utils/index.js +60 -0
- package/dist/esm/utils/is-debug.d.ts +3 -0
- package/dist/esm/utils/is-debug.js +9 -0
- package/dist/esm/utils/is-from-designer.d.ts +3 -0
- package/dist/esm/utils/is-from-designer.js +4 -0
- package/dist/esm/utils/is-iframe.d.ts +3 -0
- package/dist/esm/utils/is-iframe.js +13 -0
- package/dist/esm/utils/is-localhost.d.ts +3 -0
- package/dist/esm/utils/is-localhost.js +11 -0
- package/dist/esm/utils/is-mac.d.ts +3 -0
- package/dist/esm/utils/is-mac.js +2 -0
- package/dist/esm/utils/is-mobile.d.ts +3 -0
- package/dist/esm/utils/is-mobile.js +2 -0
- package/dist/esm/utils/is-own-domain.d.ts +12 -0
- package/dist/esm/utils/is-own-domain.js +23 -0
- package/dist/esm/utils/is-pathway-layer.d.ts +2 -0
- package/dist/esm/utils/is-pathway-layer.js +4 -0
- package/dist/esm/utils/is-phone.d.ts +9 -0
- package/dist/esm/utils/is-phone.js +17 -0
- package/dist/esm/utils/is-scroll-ugly.d.ts +3 -0
- package/dist/esm/utils/is-scroll-ugly.js +13 -0
- package/dist/esm/utils/is-webview.d.ts +3 -0
- package/dist/esm/utils/is-webview.js +2 -0
- package/dist/esm/utils/isNumericLevel.d.ts +2 -0
- package/dist/esm/utils/isNumericLevel.js +3 -0
- package/dist/esm/utils/lazy-qr-code.d.ts +5 -0
- package/dist/esm/utils/lazy-qr-code.js +6 -0
- package/dist/esm/utils/legacy-storage-keys.d.ts +16 -0
- package/dist/esm/utils/legacy-storage-keys.js +38 -0
- package/dist/esm/utils/loadBlob.d.ts +16 -0
- package/dist/esm/utils/loadBlob.js +40 -0
- package/dist/esm/utils/loadCustomCss.d.ts +3 -0
- package/dist/esm/utils/loadCustomCss.js +19 -0
- package/dist/esm/utils/loadIcons.d.ts +3 -0
- package/dist/esm/utils/loadIcons.js +24 -0
- package/dist/esm/utils/loadImage.d.ts +2 -0
- package/dist/esm/utils/loadImage.js +11 -0
- package/dist/esm/utils/loadImagesInBatches.d.ts +22 -0
- package/dist/esm/utils/loadImagesInBatches.js +82 -0
- package/dist/esm/utils/loadLayerImages.d.ts +41 -0
- package/dist/esm/utils/loadLayerImages.js +107 -0
- package/dist/esm/utils/localStorage.d.ts +2 -0
- package/dist/esm/utils/localStorage.js +11 -0
- package/dist/esm/utils/lz-utils.d.ts +8 -0
- package/dist/esm/utils/lz-utils.js +16 -0
- package/dist/esm/utils/mapEntity.d.ts +3 -0
- package/dist/esm/utils/mapEntity.js +82 -0
- package/dist/esm/utils/math.d.ts +6 -0
- package/dist/esm/utils/math.js +7 -0
- package/dist/esm/utils/mobx.d.ts +35 -0
- package/dist/esm/utils/mobx.js +74 -0
- package/dist/esm/utils/outdoor-poi.d.ts +32 -0
- package/dist/esm/utils/outdoor-poi.js +28 -0
- package/dist/esm/utils/plan-reactions.d.ts +20 -0
- package/dist/esm/utils/plan-reactions.js +26 -0
- package/dist/esm/utils/planBearing.d.ts +14 -0
- package/dist/esm/utils/planBearing.js +15 -0
- package/dist/esm/utils/preview-exhibitor.d.ts +11 -0
- package/dist/esm/utils/preview-exhibitor.js +19 -0
- package/dist/esm/utils/rasterize-svg.d.ts +32 -0
- package/dist/esm/utils/rasterize-svg.js +78 -0
- package/dist/esm/utils/responsiveClass.d.ts +2 -0
- package/dist/esm/utils/responsiveClass.js +25 -0
- package/dist/esm/utils/rtl.d.ts +2 -0
- package/dist/esm/utils/rtl.js +4 -0
- package/dist/esm/utils/sanitizeHtml.d.ts +3 -0
- package/dist/esm/utils/sanitizeHtml.js +21 -0
- package/dist/esm/utils/sanitizeText.d.ts +9 -0
- package/dist/esm/utils/sanitizeText.js +19 -0
- package/dist/esm/utils/scene-bounds.d.ts +64 -0
- package/dist/esm/utils/scene-bounds.js +127 -0
- package/dist/esm/utils/shortenName.d.ts +2 -0
- package/dist/esm/utils/shortenName.js +19 -0
- package/dist/esm/utils/silence-mobx-react-lite-warning.d.ts +2 -0
- package/dist/esm/utils/silence-mobx-react-lite-warning.js +24 -0
- package/dist/esm/utils/strEqual.d.ts +2 -0
- package/dist/esm/utils/strEqual.js +3 -0
- package/dist/esm/utils/swappable-proxy.d.ts +28 -0
- package/dist/esm/utils/swappable-proxy.js +71 -0
- package/dist/esm/utils/trackingParams.d.ts +3 -0
- package/dist/esm/utils/trackingParams.js +24 -0
- package/dist/esm/utils/urlEncoding.d.ts +7 -0
- package/dist/esm/utils/urlEncoding.js +62 -0
- package/dist/esm/utils/use-shadow.d.ts +3 -0
- package/dist/esm/utils/use-shadow.js +10 -0
- package/dist/esm/utils/useHeatmapData.d.ts +10 -0
- package/dist/esm/utils/useHeatmapData.js +8 -0
- package/dist/esm/utils/useHeatmapOverlay.d.ts +9 -0
- package/dist/esm/utils/useHeatmapOverlay.js +56 -0
- package/dist/esm/utils/useRenderTarget.d.ts +2 -0
- package/dist/esm/utils/useRenderTarget.js +35 -0
- package/dist/esm/utils/yah_icon.d.ts +6 -0
- package/dist/esm/utils/yah_icon.js +457 -0
- package/dist/esm/wayfinding/adapters/arbitraryPoint.d.ts +32 -0
- package/dist/esm/wayfinding/adapters/arbitraryPoint.js +25 -0
- package/dist/esm/wayfinding/adapters/boothToEndpoint.d.ts +19 -0
- package/dist/esm/wayfinding/adapters/boothToEndpoint.js +32 -0
- package/dist/esm/wayfinding/adapters/campusEndpoints.d.ts +13 -0
- package/dist/esm/wayfinding/adapters/campusEndpoints.js +25 -0
- package/dist/esm/wayfinding/adapters/canvasIconProvider.d.ts +20 -0
- package/dist/esm/wayfinding/adapters/canvasIconProvider.js +73 -0
- package/dist/esm/wayfinding/adapters/floorContext.d.ts +20 -0
- package/dist/esm/wayfinding/adapters/floorContext.js +43 -0
- package/dist/esm/wayfinding/adapters/graphDataSource.d.ts +49 -0
- package/dist/esm/wayfinding/adapters/graphDataSource.js +87 -0
- package/dist/esm/wayfinding/adapters/index.d.ts +10 -0
- package/dist/esm/wayfinding/adapters/index.js +8 -0
- package/dist/esm/wayfinding/adapters/kioskCanvas.d.ts +7 -0
- package/dist/esm/wayfinding/adapters/kioskCanvas.js +22 -0
- package/dist/esm/wayfinding/adapters/positionInput.d.ts +12 -0
- package/dist/esm/wayfinding/adapters/positionInput.js +16 -0
- package/dist/esm/wayfinding/bindMobxReactions.d.ts +28 -0
- package/dist/esm/wayfinding/bindMobxReactions.js +171 -0
- package/dist/esm/wayfinding/createWayfinding.d.ts +34 -0
- package/dist/esm/wayfinding/createWayfinding.js +184 -0
- package/dist/esm/wayfinding/handlers/kioskHandler.d.ts +26 -0
- package/dist/esm/wayfinding/handlers/kioskHandler.js +52 -0
- package/dist/esm/wayfinding/handlers/yahHandler.d.ts +21 -0
- package/dist/esm/wayfinding/handlers/yahHandler.js +42 -0
- package/dist/esm/wayfinding/index.d.ts +12 -0
- package/dist/esm/wayfinding/index.js +9 -0
- package/dist/esm/wayfinding/routeSteps.d.ts +15 -0
- package/dist/esm/wayfinding/routeSteps.js +29 -0
- package/dist/esm/wayfinding/storePorts.d.ts +67 -0
- package/dist/esm/wayfinding/storePorts.js +1 -0
- package/package.json +146 -0
|
@@ -0,0 +1,1865 @@
|
|
|
1
|
+
(function() {
|
|
2
|
+
try {
|
|
3
|
+
var e = typeof window < "u" ? window : typeof global < "u" ? global : typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : {};
|
|
4
|
+
e.SENTRY_RELEASE = { id: "3.45.6" };
|
|
5
|
+
var t = new e.Error().stack;
|
|
6
|
+
t && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[t] = "c0335def-b4ec-48b0-8a81-3882eeba8a19", e._sentryDebugIdIdentifier = "sentry-dbid-c0335def-b4ec-48b0-8a81-3882eeba8a19");
|
|
7
|
+
} catch {}
|
|
8
|
+
})();
|
|
9
|
+
import { r as e } from "./rolldown-runtime-DUb2xvRc.js";
|
|
10
|
+
import { at as t, g as n, nt as r, ot as i, rt as a } from "./i18n-BgFBhYOU.js";
|
|
11
|
+
import { t as o } from "./react-DqPP-mkq.js";
|
|
12
|
+
import { t as s } from "./loadImage-DzSnRAxX.js";
|
|
13
|
+
import { c, i as l, l as u } from "./mobx.module-BOCLFB5I.js";
|
|
14
|
+
import { r as d } from "./debug-context-CNBgUWR8.js";
|
|
15
|
+
import { $ as f, At as p, Bt as m, Ct as h, Et as g, Ft as _, G as v, It as y, J as b, Jt as x, K as S, Lt as C, Mt as w, Nt as T, O as E, Pt as D, Q as ee, Qt as O, St as k, Tt as te, Ut as A, X as ne, Xt as j, Y as re, Z as ie, a as ae, at as oe, b as se, d as ce, f as le, fn as ue, hn as de, it as fe, jt as pe, ot as me, pn as M, pt as N, t as he, tt as ge, un as P, vt as _e, x as ve, xn as F, xt as ye, yn as I, yt as be, zt as xe } from "./LayerStore-CK6wLW56.js";
|
|
16
|
+
import { a as Se, l as L, t as Ce, u as R } from "./store-q_CTsixH.js";
|
|
17
|
+
import { B as we, U as Te, V as Ee, W as De, f as Oe, m as ke, n as Ae, u as je, x as Me } from "./RouteStore-NE2I9tiF.js";
|
|
18
|
+
import { a as Ne, n as Pe, o as Fe } from "./kioskUrlParam-CnYhnC_7.js";
|
|
19
|
+
import { i as Ie, n as Le } from "./viewport-B7plho3P.js";
|
|
20
|
+
//#region src/components/Map/traffic/trafficLayers.ts
|
|
21
|
+
var Re = "traffic_route", ze = "traffic_route_stop", z = "traffic_vehicles", Be = "build_route_lines", Ve = "build_route_dots", He = 5;
|
|
22
|
+
function Ue() {
|
|
23
|
+
let e = [];
|
|
24
|
+
for (let t = 0; t < He; t++) e.push({
|
|
25
|
+
name: We(t),
|
|
26
|
+
children: []
|
|
27
|
+
}), e.push({
|
|
28
|
+
name: Ge(t),
|
|
29
|
+
children: []
|
|
30
|
+
});
|
|
31
|
+
return e.push({
|
|
32
|
+
name: z,
|
|
33
|
+
children: []
|
|
34
|
+
}), e.push({
|
|
35
|
+
name: Be,
|
|
36
|
+
children: []
|
|
37
|
+
}), e.push({
|
|
38
|
+
name: Ve,
|
|
39
|
+
children: []
|
|
40
|
+
}), e;
|
|
41
|
+
}
|
|
42
|
+
function We(e) {
|
|
43
|
+
return `${Re}_${e + 1}`;
|
|
44
|
+
}
|
|
45
|
+
function Ge(e) {
|
|
46
|
+
return `${ze}_${e + 1}`;
|
|
47
|
+
}
|
|
48
|
+
function Ke() {
|
|
49
|
+
return RegExp(`^${Re}_\\d+$`);
|
|
50
|
+
}
|
|
51
|
+
function qe() {
|
|
52
|
+
return RegExp(`^${ze}_\\d+$`);
|
|
53
|
+
}
|
|
54
|
+
//#endregion
|
|
55
|
+
//#region src/components/Map/drawing/config/booth-badge-anchor.ts
|
|
56
|
+
var Je = /* @__PURE__ */ e(_e(), 1), Ye = .5, Xe = .3, Ze = 10, Qe = 8, $e = 4, et = 50, tt = class e {
|
|
57
|
+
constructor(e, t, n, r) {
|
|
58
|
+
this.booth = e, this.triangles = t, this.border = n, this.source = r, this.fits = [], this.prefetchRotation = 0, this.polygon = void 0, this.bbox = void 0, this.vertices = null, this.polygon = rt(t), this.bbox = nt(t);
|
|
59
|
+
}
|
|
60
|
+
fit(e, t) {
|
|
61
|
+
let n = this.fits[e];
|
|
62
|
+
return n || (this.fits[e] = n = this.compute(e, t), this.fits.filter(Boolean).length === 4 && (this.vertices = null)), n;
|
|
63
|
+
}
|
|
64
|
+
prefetch(t) {
|
|
65
|
+
e.idle.has(this) || (this.prefetchRotation = t, e.idle.add(this), e.scheduleIdle());
|
|
66
|
+
}
|
|
67
|
+
cancelPrefetch() {
|
|
68
|
+
e.idle.delete(this);
|
|
69
|
+
}
|
|
70
|
+
static scheduleIdle() {
|
|
71
|
+
e.idleScheduled || !e.idle.size || (e.idleScheduled = !0, typeof requestIdleCallback == "function" ? requestIdleCallback(e.runIdle) : typeof requestAnimationFrame == "function" ? requestAnimationFrame(() => setTimeout(e.runSlice, 0)) : setTimeout(e.runSlice, et));
|
|
72
|
+
}
|
|
73
|
+
static runSlice() {
|
|
74
|
+
let t = performance.now() + $e;
|
|
75
|
+
e.runIdle({ timeRemaining: () => t - performance.now() });
|
|
76
|
+
}
|
|
77
|
+
static runIdle(t) {
|
|
78
|
+
e.idleScheduled = !1;
|
|
79
|
+
let n = performance.now() + Qe;
|
|
80
|
+
try {
|
|
81
|
+
for (let r of e.idle) {
|
|
82
|
+
if (t.timeRemaining() <= 0 || performance.now() >= n) break;
|
|
83
|
+
let i = !1;
|
|
84
|
+
try {
|
|
85
|
+
i = r.prefetchNext();
|
|
86
|
+
} finally {
|
|
87
|
+
i || e.idle.delete(r);
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
} finally {
|
|
91
|
+
e.scheduleIdle();
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
prefetchNext() {
|
|
95
|
+
for (let e = 1; e < 4; e++) if (!this.fits[e]) return this.fit(e, this.prefetchRotation + e * Math.PI / 2), e < 3;
|
|
96
|
+
return !1;
|
|
97
|
+
}
|
|
98
|
+
compute(e, t) {
|
|
99
|
+
let n = e === 0 || e === 3 ? 1 : -1, r = e === 0 || e === 1 ? 1 : -1, i = this.findAnchor(n, r), a = this.clampScale(i.x, i.y, this.rectMaxScale(e % 2 == 1), t);
|
|
100
|
+
return {
|
|
101
|
+
x: i.x,
|
|
102
|
+
y: i.y,
|
|
103
|
+
maxScale: a
|
|
104
|
+
};
|
|
105
|
+
}
|
|
106
|
+
rectMaxScale(e) {
|
|
107
|
+
let t = this.booth.rect.size.width, n = this.booth.rect.size.height, r = e ? n : t, i = e ? t : n;
|
|
108
|
+
return Math.min(r > 0 ? r * Ye / this.source.x : Infinity, i > 0 ? i * Xe / this.source.y : Infinity);
|
|
109
|
+
}
|
|
110
|
+
findAnchor(e, t) {
|
|
111
|
+
var n;
|
|
112
|
+
let { booth: r, border: i, bbox: a } = this;
|
|
113
|
+
if (a) {
|
|
114
|
+
let n = e > 0 ? a.min.x : a.max.x, r = t > 0 ? a.min.y : a.max.y, o = [];
|
|
115
|
+
for (let [a, s] of this.distinctVertices()) {
|
|
116
|
+
let c = a + i * e, l = s + i * t, u = Math.abs(c - n) + Math.abs(l - r);
|
|
117
|
+
u < Infinity && o.push({
|
|
118
|
+
x: c,
|
|
119
|
+
y: l,
|
|
120
|
+
score: u,
|
|
121
|
+
order: o.length
|
|
122
|
+
});
|
|
123
|
+
}
|
|
124
|
+
o.sort((e, t) => e.score - t.score || e.order - t.order);
|
|
125
|
+
for (let e of o) {
|
|
126
|
+
let t = {
|
|
127
|
+
x: e.x,
|
|
128
|
+
y: e.y
|
|
129
|
+
};
|
|
130
|
+
if (this.polygon.containsPoint(t)) return t;
|
|
131
|
+
}
|
|
132
|
+
}
|
|
133
|
+
let o = e > 0 ? r.rect.min.x + i : r.rect.max.x - i, s = t > 0 ? r.rect.min.y + i : r.rect.max.y - i, c = (n = r.rotate) == null ? 0 : n;
|
|
134
|
+
return c ? F({
|
|
135
|
+
x: o,
|
|
136
|
+
y: s
|
|
137
|
+
}, c, r.rect.center) : {
|
|
138
|
+
x: o,
|
|
139
|
+
y: s
|
|
140
|
+
};
|
|
141
|
+
}
|
|
142
|
+
clampScale(e, t, n, r) {
|
|
143
|
+
let { polygon: i, source: a } = this;
|
|
144
|
+
if (!this.triangles.length) return n;
|
|
145
|
+
let o = {
|
|
146
|
+
x: e,
|
|
147
|
+
y: t
|
|
148
|
+
};
|
|
149
|
+
if (!i.containsPoint(o)) return n;
|
|
150
|
+
let s = 0, c = n;
|
|
151
|
+
for (let n = 0; n < Ze; n++) {
|
|
152
|
+
let n = (s + c) / 2, l = a.x * n, u = a.y * n;
|
|
153
|
+
i.containsPoint(F({
|
|
154
|
+
x: e + l,
|
|
155
|
+
y: t
|
|
156
|
+
}, r, o)) && i.containsPoint(F({
|
|
157
|
+
x: e,
|
|
158
|
+
y: t + u
|
|
159
|
+
}, r, o)) && i.containsPoint(F({
|
|
160
|
+
x: e + l,
|
|
161
|
+
y: t + u
|
|
162
|
+
}, r, o)) ? s = n : c = n;
|
|
163
|
+
}
|
|
164
|
+
return s;
|
|
165
|
+
}
|
|
166
|
+
distinctVertices() {
|
|
167
|
+
if (this.vertices) return this.vertices;
|
|
168
|
+
let e = /* @__PURE__ */ new Set(), t = [];
|
|
169
|
+
for (let n of this.triangles) for (let r of n) {
|
|
170
|
+
let n = `${r[0]},${r[1]}`;
|
|
171
|
+
e.has(n) || (e.add(n), t.push([r[0], r[1]]));
|
|
172
|
+
}
|
|
173
|
+
return this.vertices = t;
|
|
174
|
+
}
|
|
175
|
+
};
|
|
176
|
+
tt.idle = /* @__PURE__ */ new Set(), tt.idleScheduled = !1;
|
|
177
|
+
function nt(e) {
|
|
178
|
+
if (!e.length) return null;
|
|
179
|
+
let t = Infinity, n = Infinity, r = -Infinity, i = -Infinity;
|
|
180
|
+
for (let a of e) for (let [e, o] of a) e < t && (t = e), o < n && (n = o), e > r && (r = e), o > i && (i = o);
|
|
181
|
+
return P.fromMinMax({
|
|
182
|
+
x: t,
|
|
183
|
+
y: n
|
|
184
|
+
}, {
|
|
185
|
+
x: r,
|
|
186
|
+
y: i
|
|
187
|
+
});
|
|
188
|
+
}
|
|
189
|
+
function rt(e) {
|
|
190
|
+
let t = [], n = [];
|
|
191
|
+
for (let r of e) {
|
|
192
|
+
let e = t.length;
|
|
193
|
+
t.push({
|
|
194
|
+
x: r[0][0],
|
|
195
|
+
y: r[0][1]
|
|
196
|
+
}), t.push({
|
|
197
|
+
x: r[1][0],
|
|
198
|
+
y: r[1][1]
|
|
199
|
+
}), t.push({
|
|
200
|
+
x: r[2][0],
|
|
201
|
+
y: r[2][1]
|
|
202
|
+
}), n.push([
|
|
203
|
+
e,
|
|
204
|
+
e + 1,
|
|
205
|
+
e + 2
|
|
206
|
+
]);
|
|
207
|
+
}
|
|
208
|
+
return new de(t, n);
|
|
209
|
+
}
|
|
210
|
+
//#endregion
|
|
211
|
+
//#region src/components/Map/drawing/config/config-booth-badge-eligibility.ts
|
|
212
|
+
function it(e) {
|
|
213
|
+
return e.hideExhibitorBoothNumber || e.hideBoothBadges || !e.hasExhibitors ? !1 : e.noLabels || !e.hideLogoInBooth && e.hasLogoInBooth;
|
|
214
|
+
}
|
|
215
|
+
//#endregion
|
|
216
|
+
//#region src/components/Map/drawing/config/config-booth-badge-scale.ts
|
|
217
|
+
function at({ pixelSize: e, fontSize: t, plateFontSize: n, maxScale: r }) {
|
|
218
|
+
let i = e * t / n;
|
|
219
|
+
return Math.min(i, r);
|
|
220
|
+
}
|
|
221
|
+
//#endregion
|
|
222
|
+
//#region src/components/Map/drawing/config/config-booth-badge-visibility.ts
|
|
223
|
+
function ot(e) {
|
|
224
|
+
return e.layerQuarantined || !e.layerVisible || !e.venueDetailVisible;
|
|
225
|
+
}
|
|
226
|
+
//#endregion
|
|
227
|
+
//#region src/components/Map/drawing/config/config-booth-badge.ts
|
|
228
|
+
var st = 15, ct = Ne ? 16 : 18, lt = 30, ut = 6, dt = .8, ft = lt * dt, pt = document.createElement("canvas").getContext("2d");
|
|
229
|
+
function mt(e) {
|
|
230
|
+
return e.length <= st ? e : e.slice(0, st - 1) + "…";
|
|
231
|
+
}
|
|
232
|
+
function ht(e) {
|
|
233
|
+
var t, n;
|
|
234
|
+
if (!((t = e.paths) != null && t.length)) return [];
|
|
235
|
+
let r = ((n = e.layer) == null ? void 0 : n.name) || "", i = [];
|
|
236
|
+
for (let t of e.paths) for (let e of x(t.index, r)) i.push(e);
|
|
237
|
+
return i;
|
|
238
|
+
}
|
|
239
|
+
function gt(e) {
|
|
240
|
+
return e && e !== "none" ? e : void 0;
|
|
241
|
+
}
|
|
242
|
+
function _t(e) {
|
|
243
|
+
var t;
|
|
244
|
+
let n = gt(e.borderColor) || gt(A.boothBorderColor) || A.colors.booths.default;
|
|
245
|
+
return ((t = e.paths) == null ? void 0 : t.length) > 1 && gt(e.paths[e.paths.length - 1].color) || n;
|
|
246
|
+
}
|
|
247
|
+
function vt(e) {
|
|
248
|
+
var t;
|
|
249
|
+
let n = mt(e.title || e.name), r = _t(e), i = Fe((0, Je.default)(r).hex()), a = ce();
|
|
250
|
+
pt.font = pe(lt, a);
|
|
251
|
+
let o = pt.measureText(n).width, s = Math.ceil(o + ut * 2), c = (e.borderWidth || Ce.borderWidth) / 2, l = s * dt, d = 38 * dt, f = new tt(e, ht(e), c, {
|
|
252
|
+
x: l,
|
|
253
|
+
y: d
|
|
254
|
+
}), p = (t = e.rotate) == null ? 0 : t, m = 0, h = 0, g = 0, _ = 0, v = () => {
|
|
255
|
+
let e = f.fit(m, p);
|
|
256
|
+
h = e.x, g = e.y, _ = e.maxScale;
|
|
257
|
+
};
|
|
258
|
+
v();
|
|
259
|
+
let y = (t, n) => {
|
|
260
|
+
let r = t / 2, i = n / 2;
|
|
261
|
+
return new M(F({
|
|
262
|
+
x: h + r,
|
|
263
|
+
y: g + i
|
|
264
|
+
}, p, {
|
|
265
|
+
x: h,
|
|
266
|
+
y: g
|
|
267
|
+
}), {
|
|
268
|
+
x: t,
|
|
269
|
+
y: n
|
|
270
|
+
}, p, e.elevation);
|
|
271
|
+
}, x = le(a, ee()), S = b(y(1, 1), r);
|
|
272
|
+
S.hidden = !0, S.dim = e.skipDim ? 0 : void 0;
|
|
273
|
+
let C = re(ne([[n], []], i, 0, [x, x]), y(1, 1), [0, 0], {
|
|
274
|
+
horizontal: "center",
|
|
275
|
+
vertical: "center"
|
|
276
|
+
});
|
|
277
|
+
C.hidden = !0, C.dim = e.skipDim ? 0 : void 0;
|
|
278
|
+
let w = () => {
|
|
279
|
+
var t, n;
|
|
280
|
+
let r = e.layer;
|
|
281
|
+
if (!r) return {
|
|
282
|
+
layerVisible: !0,
|
|
283
|
+
layerQuarantined: !1,
|
|
284
|
+
venueDetailVisible: !0
|
|
285
|
+
};
|
|
286
|
+
let i = L.venueStore.venueOfLayer((t = (n = r.rootParent) == null ? void 0 : n.name) == null ? r.name : t);
|
|
287
|
+
return {
|
|
288
|
+
layerVisible: r.visible,
|
|
289
|
+
layerQuarantined: L.layerStore.isLayerQuarantined(r),
|
|
290
|
+
venueDetailVisible: !i || i.detailVisible
|
|
291
|
+
};
|
|
292
|
+
}, T = () => ot(w()), E = {
|
|
293
|
+
booth: e,
|
|
294
|
+
anchor: {
|
|
295
|
+
x: h,
|
|
296
|
+
y: g
|
|
297
|
+
},
|
|
298
|
+
source: {
|
|
299
|
+
x: l,
|
|
300
|
+
y: d
|
|
301
|
+
},
|
|
302
|
+
rotation: p,
|
|
303
|
+
maxScale: _,
|
|
304
|
+
bg: S,
|
|
305
|
+
text: C,
|
|
306
|
+
isHidden: T
|
|
307
|
+
}, D = new yt(E);
|
|
308
|
+
S.onScale = ({ pixelSize: e }) => D.layOutBg(e), C.onScale = ({ pixelSize: e }) => D.layOutText(e);
|
|
309
|
+
let O = [];
|
|
310
|
+
return O.push(u(() => e.skipDim, (e) => {
|
|
311
|
+
S.dim = e ? 0 : void 0, C.dim = e ? 0 : void 0, N(S, C);
|
|
312
|
+
})), O.push(u(() => T(), (e) => {
|
|
313
|
+
S.hidden = e, C.hidden = e, N(S, C);
|
|
314
|
+
})), O.push(u(() => R.mapSettings, ({ roll: t }) => {
|
|
315
|
+
var n;
|
|
316
|
+
oe(t == null ? 0 : t) && (f.prefetch((n = e.rotate) == null ? 0 : n), S.onRoll = ({ roll: e, pixelSize: t }) => {
|
|
317
|
+
let n = fe(e, p);
|
|
318
|
+
if (n !== 0) return p += n * Math.PI / 2, m = ((m + n) % 4 + 4) % 4, v(), E.anchor.x = h, E.anchor.y = g, E.rotation = p, E.maxScale = _, D.invalidate(), [...D.layOutBg(t), ...D.layOutText(t)];
|
|
319
|
+
});
|
|
320
|
+
}, { fireImmediately: !0 }), () => f.cancelPrefetch()), {
|
|
321
|
+
bg: S,
|
|
322
|
+
text: C,
|
|
323
|
+
dispose: () => {
|
|
324
|
+
O.forEach((e) => e()), O.length = 0;
|
|
325
|
+
}
|
|
326
|
+
};
|
|
327
|
+
}
|
|
328
|
+
var yt = class {
|
|
329
|
+
constructor(e) {
|
|
330
|
+
this.placement = e, this.bgScale = NaN, this.textScale = NaN;
|
|
331
|
+
}
|
|
332
|
+
invalidate() {
|
|
333
|
+
this.bgScale = NaN, this.textScale = NaN;
|
|
334
|
+
}
|
|
335
|
+
layOutBg(e) {
|
|
336
|
+
let { bg: t } = this.placement, n = this.scaleFor(e);
|
|
337
|
+
return n === this.bgScale ? [] : (this.bgScale = n, t.shape = this.rectAt(n), t.hidden = this.placement.isHidden(), t.hidden ? [] : [t]);
|
|
338
|
+
}
|
|
339
|
+
layOutText(e) {
|
|
340
|
+
let { text: t } = this.placement, n = this.scaleFor(e);
|
|
341
|
+
return n === this.textScale ? [] : (this.textScale = n, t.lines[0].fontSize = ft * n, t.bounds = this.rectAt(n), t.hidden = this.placement.isHidden(), t.hidden ? [] : [t]);
|
|
342
|
+
}
|
|
343
|
+
scaleFor(e) {
|
|
344
|
+
return at({
|
|
345
|
+
pixelSize: e,
|
|
346
|
+
fontSize: ct,
|
|
347
|
+
plateFontSize: ft,
|
|
348
|
+
maxScale: this.placement.maxScale
|
|
349
|
+
});
|
|
350
|
+
}
|
|
351
|
+
rectAt(e) {
|
|
352
|
+
let { anchor: t, booth: n, source: r, rotation: i } = this.placement, a = r.x * e, o = r.y * e;
|
|
353
|
+
return new M(F({
|
|
354
|
+
x: t.x + a / 2,
|
|
355
|
+
y: t.y + o / 2
|
|
356
|
+
}, i, t), {
|
|
357
|
+
x: a,
|
|
358
|
+
y: o
|
|
359
|
+
}, i, n.elevation);
|
|
360
|
+
}
|
|
361
|
+
};
|
|
362
|
+
function bt(e, t) {
|
|
363
|
+
let n = [], r = [], i = [];
|
|
364
|
+
for (let e of t) if (e instanceof ge && it({
|
|
365
|
+
hideExhibitorBoothNumber: j.hideExhibitorBoothNumber,
|
|
366
|
+
hideBoothBadges: j.hideBoothBadges,
|
|
367
|
+
hideLogoInBooth: R.hideLogoInBooth,
|
|
368
|
+
noLabels: e.noLabels,
|
|
369
|
+
hasExhibitors: e.exhibitors.length > 0,
|
|
370
|
+
hasLogoInBooth: e.exhibitors.some((e) => e.logoInBooth && e.logo)
|
|
371
|
+
})) {
|
|
372
|
+
let { bg: t, text: a, dispose: o } = vt(e);
|
|
373
|
+
n.push(t), r.push(a), i.push(o);
|
|
374
|
+
}
|
|
375
|
+
let a = () => {
|
|
376
|
+
i.forEach((e) => e()), i.length = 0;
|
|
377
|
+
};
|
|
378
|
+
return n.length ? {
|
|
379
|
+
layer: {
|
|
380
|
+
name: `${e}:badges`,
|
|
381
|
+
children: [{
|
|
382
|
+
name: `${e}:badgeBgs`,
|
|
383
|
+
children: n
|
|
384
|
+
}, {
|
|
385
|
+
name: `${e}:badgeTexts`,
|
|
386
|
+
children: r
|
|
387
|
+
}]
|
|
388
|
+
},
|
|
389
|
+
cleanup: a
|
|
390
|
+
} : {
|
|
391
|
+
layer: null,
|
|
392
|
+
cleanup: a
|
|
393
|
+
};
|
|
394
|
+
}
|
|
395
|
+
//#endregion
|
|
396
|
+
//#region src/components/Map/drawing/config/config-markers.ts
|
|
397
|
+
var xt = "_selected", St = "markers";
|
|
398
|
+
function Ct(e, t, n) {
|
|
399
|
+
let { center: r, rotation: i, elevation: a } = e.bounds, { width: o, height: s } = t;
|
|
400
|
+
return e.bounds = p(r.x, r.y, o, s, n, i, a), [e];
|
|
401
|
+
}
|
|
402
|
+
function wt(e) {
|
|
403
|
+
kt = e;
|
|
404
|
+
}
|
|
405
|
+
function Tt(e) {
|
|
406
|
+
let { scene: t } = e, n = [], r = /* @__PURE__ */ new Map(), i = /* @__PURE__ */ new Map(), a = [], o = t.rootLayer.children.find((e) => e.name === St);
|
|
407
|
+
o.onScale = ({ pixelSize: e }) => wt(e), se(Et), N(o);
|
|
408
|
+
async function s(e) {
|
|
409
|
+
let t = [];
|
|
410
|
+
e.forEach((e) => {
|
|
411
|
+
let { name: n, content: i, width: a, height: o, scale: s } = e;
|
|
412
|
+
if (r.has(n)) return;
|
|
413
|
+
let c = new Image(), l = new Promise((e, t) => {
|
|
414
|
+
c.onload = () => {
|
|
415
|
+
r.set(n, {
|
|
416
|
+
img: c,
|
|
417
|
+
width: a,
|
|
418
|
+
height: o,
|
|
419
|
+
scale: s
|
|
420
|
+
}), e();
|
|
421
|
+
}, c.onerror = (e) => {
|
|
422
|
+
t(e);
|
|
423
|
+
};
|
|
424
|
+
});
|
|
425
|
+
t.push(l), c.src = i, c.crossOrigin = "anonymous";
|
|
426
|
+
}), await Promise.all(t);
|
|
427
|
+
}
|
|
428
|
+
let c = (e, t) => {
|
|
429
|
+
e.onScale = ({ pixelSize: n }) => Ct(e, t, n);
|
|
430
|
+
}, l = (e) => {
|
|
431
|
+
e.screenSpace || (e.onRoll = ({ roll: t }) => {
|
|
432
|
+
if (t !== e.bounds.rotation) return e.bounds.rotate(t - e.bounds.rotation, e.bounds), [e];
|
|
433
|
+
});
|
|
434
|
+
};
|
|
435
|
+
function d(e, t) {
|
|
436
|
+
let n = i.get(e);
|
|
437
|
+
if (n) return n;
|
|
438
|
+
let r = te(t.img, t.width, t.height, window.devicePixelRatio, t.scale || 1);
|
|
439
|
+
return i.set(e, r), r;
|
|
440
|
+
}
|
|
441
|
+
function f() {
|
|
442
|
+
let e = L.routeStore.markersData.markers;
|
|
443
|
+
if (!e.length) return;
|
|
444
|
+
a = [];
|
|
445
|
+
let t = R.is3DView;
|
|
446
|
+
e.forEach((e) => {
|
|
447
|
+
var n, i;
|
|
448
|
+
let o = r.get(e.icon);
|
|
449
|
+
if (!o) return;
|
|
450
|
+
let s = r.get(e.selectedIcon);
|
|
451
|
+
if (!s) return;
|
|
452
|
+
let l = o.scale || 1, u = d(e.icon, o), f = d(e.selectedIcon, s), m = (n = (i = Se.findLayer(e.z)) == null ? void 0 : i.visible) == null || n, h = w(o.img, o.width, o.height, l), g = w(s.img, s.width, s.height, l), _ = p(e.x, e.y, h.width, h.height, 1, 0), y = p(e.x, e.y, g.width, g.height, 1, 0), b;
|
|
453
|
+
switch (e.position) {
|
|
454
|
+
case "lefttop":
|
|
455
|
+
b = [0, 0];
|
|
456
|
+
break;
|
|
457
|
+
case "centertop":
|
|
458
|
+
b = [.5, 0];
|
|
459
|
+
break;
|
|
460
|
+
case "centerbottom":
|
|
461
|
+
b = [.5, 1];
|
|
462
|
+
break;
|
|
463
|
+
default: b = [.5, .5];
|
|
464
|
+
}
|
|
465
|
+
let x = {
|
|
466
|
+
...v(u, _, {
|
|
467
|
+
hidden: !m,
|
|
468
|
+
origin: b
|
|
469
|
+
}),
|
|
470
|
+
id: e.id,
|
|
471
|
+
scale: l,
|
|
472
|
+
screenSpace: t
|
|
473
|
+
}, S = {
|
|
474
|
+
...v(f, y, {
|
|
475
|
+
hidden: !(m && e.active),
|
|
476
|
+
origin: b
|
|
477
|
+
}),
|
|
478
|
+
id: `${e.id}${xt}`,
|
|
479
|
+
scale: l,
|
|
480
|
+
screenSpace: t
|
|
481
|
+
};
|
|
482
|
+
c(x, h), c(S, g), a.push(x, S);
|
|
483
|
+
}), o.children = a, a.forEach(l);
|
|
484
|
+
}
|
|
485
|
+
function m() {
|
|
486
|
+
o.children = [], a = [];
|
|
487
|
+
}
|
|
488
|
+
function h() {
|
|
489
|
+
let e = L.routeStore.markersData.markers;
|
|
490
|
+
e.length && e.forEach((e) => {
|
|
491
|
+
var t, n;
|
|
492
|
+
let r = a.find((t) => t.id === e.id), i = a.find((t) => t.id === `${e.id}${xt}`);
|
|
493
|
+
if (!r || !i) return;
|
|
494
|
+
let o = (t = (n = Se.findLayer(e.z)) == null ? void 0 : n.visible) == null || t;
|
|
495
|
+
e.active ? (r.hidden = !0, i.hidden = !(o && e.active)) : (r.hidden = !o, i.hidden = !0);
|
|
496
|
+
});
|
|
497
|
+
}
|
|
498
|
+
return n.push(u(() => [L.routeStore.selectedMarkers, L.layerStore.visible], () => {
|
|
499
|
+
if (!L.routeStore.markersData.markers.length) {
|
|
500
|
+
m(), N(o);
|
|
501
|
+
return;
|
|
502
|
+
}
|
|
503
|
+
h(), N(...a);
|
|
504
|
+
})), n.push(u(() => L.routeStore.markersData.markers, () => {
|
|
505
|
+
s(L.routeStore.markersData.icons).then(() => {
|
|
506
|
+
f(), N(o);
|
|
507
|
+
});
|
|
508
|
+
}, { fireImmediately: !0 })), function() {
|
|
509
|
+
n.forEach((e) => e()), n.length = 0, o.onScale = void 0, se(), kt = 1, N(o);
|
|
510
|
+
};
|
|
511
|
+
}
|
|
512
|
+
function Et(e, t) {
|
|
513
|
+
return Dt(e, t, kt);
|
|
514
|
+
}
|
|
515
|
+
function Dt(e, t, n) {
|
|
516
|
+
for (let r of L.routeStore.markersData.markers) {
|
|
517
|
+
let i = L.routeStore.markersData.icons.find((e) => e.name === r.icon);
|
|
518
|
+
if (!i) continue;
|
|
519
|
+
let a = i.width * (i.scale || 1) * n, o = i.height * (i.scale || 1) * n;
|
|
520
|
+
if (Ot(e, t, r.x, r.y, a, o)) {
|
|
521
|
+
let e = L.layerStore.findLayer(r.z);
|
|
522
|
+
if (!e || e && e.visible) return r;
|
|
523
|
+
}
|
|
524
|
+
}
|
|
525
|
+
return null;
|
|
526
|
+
}
|
|
527
|
+
function Ot(e, t, n, r, i, a) {
|
|
528
|
+
return P.fromCenter({
|
|
529
|
+
x: n,
|
|
530
|
+
y: r
|
|
531
|
+
}, {
|
|
532
|
+
x: 2 * i,
|
|
533
|
+
y: 2 * a
|
|
534
|
+
}).containsPoint({
|
|
535
|
+
x: e,
|
|
536
|
+
y: t
|
|
537
|
+
});
|
|
538
|
+
}
|
|
539
|
+
var kt = 1, At = .5, jt = "cubic";
|
|
540
|
+
function Mt(e, t) {
|
|
541
|
+
return !e || e.rootLayer.dim === t ? !1 : (e.rootLayer.dim = t, !0);
|
|
542
|
+
}
|
|
543
|
+
function Nt(e, t = 300, n = jt) {
|
|
544
|
+
let r = null, i = 0, a = 0, o = 0, s = 0, c = Math.max(t, 0);
|
|
545
|
+
function l() {
|
|
546
|
+
r === null || typeof cancelAnimationFrame != "function" || (cancelAnimationFrame(r), r = null);
|
|
547
|
+
}
|
|
548
|
+
function u(t) {
|
|
549
|
+
l(), i = t, e(i);
|
|
550
|
+
}
|
|
551
|
+
function d(t) {
|
|
552
|
+
let l = t - s, u = Math.min(Math.max(l / c, 0), 1), f = Pt(u, n);
|
|
553
|
+
if (i = a + (o - a) * f, e(i), u < 1) {
|
|
554
|
+
r = requestAnimationFrame(d);
|
|
555
|
+
return;
|
|
556
|
+
}
|
|
557
|
+
r = null, i = o, e(i);
|
|
558
|
+
}
|
|
559
|
+
return {
|
|
560
|
+
getValue() {
|
|
561
|
+
return i;
|
|
562
|
+
},
|
|
563
|
+
setTarget(e, t = {}) {
|
|
564
|
+
let n = +!!e;
|
|
565
|
+
if (!(!t.immediate && n === o && r === null)) {
|
|
566
|
+
if (o = n, t.immediate || c === 0 || typeof requestAnimationFrame != "function") {
|
|
567
|
+
u(o);
|
|
568
|
+
return;
|
|
569
|
+
}
|
|
570
|
+
l(), a = i, s = typeof performance > "u" ? Date.now() : performance.now(), r = requestAnimationFrame(d);
|
|
571
|
+
}
|
|
572
|
+
},
|
|
573
|
+
stop() {
|
|
574
|
+
l();
|
|
575
|
+
}
|
|
576
|
+
};
|
|
577
|
+
}
|
|
578
|
+
function Pt(e, t) {
|
|
579
|
+
return t === "linear" ? e : Ft(e);
|
|
580
|
+
}
|
|
581
|
+
function Ft(e) {
|
|
582
|
+
return e < .5 ? 4 * e * e * e : 1 - (-2 * e + 2) ** 3 / 2;
|
|
583
|
+
}
|
|
584
|
+
//#endregion
|
|
585
|
+
//#region src/components/Map/drawing/config/config-pins.ts
|
|
586
|
+
function It(e, t, n) {
|
|
587
|
+
let r = [], i = [], a = [], o = [];
|
|
588
|
+
function s() {
|
|
589
|
+
let e = R.selectedPoiTypeFilters;
|
|
590
|
+
if (!e.length) return [];
|
|
591
|
+
let t = new Set(e.map((e) => e.id));
|
|
592
|
+
return Ce.booths.filter((e) => e.visible && t.has(e.poiTypeId) && e.rect);
|
|
593
|
+
}
|
|
594
|
+
let c = (e) => {
|
|
595
|
+
i.push(e);
|
|
596
|
+
};
|
|
597
|
+
function d() {
|
|
598
|
+
i.forEach((e) => e.stop()), i = [];
|
|
599
|
+
}
|
|
600
|
+
function f() {
|
|
601
|
+
e.children = a.map((e) => Vt(e, c));
|
|
602
|
+
}
|
|
603
|
+
function p() {
|
|
604
|
+
o = Array.from({ length: Math.floor(a.length / 2) }, () => Ut(c)), t.children = o.map((e) => e.image), n.children = o.map((e) => e.count);
|
|
605
|
+
}
|
|
606
|
+
function m(e, t) {
|
|
607
|
+
let n = /* @__PURE__ */ new Set(), r = (e) => e == null ? void 0 : e.forEach((e) => n.add(e)), i = Gt(o, e, Qt * t.pixelSize);
|
|
608
|
+
i.forEach((t, n) => {
|
|
609
|
+
qt(t, e[n]) && r([t.image, t.count]), r(t.fader.place(!0));
|
|
610
|
+
});
|
|
611
|
+
let a = new Set(i);
|
|
612
|
+
for (let e of o) a.has(e) || r(e.fader.place(!1));
|
|
613
|
+
return n.size ? [...n] : void 0;
|
|
614
|
+
}
|
|
615
|
+
return e.clustering = {
|
|
616
|
+
onCluster: (e, t) => m(e, t),
|
|
617
|
+
marker: {
|
|
618
|
+
width: V,
|
|
619
|
+
height: tn,
|
|
620
|
+
origin: Zt
|
|
621
|
+
}
|
|
622
|
+
}, r.push(u(() => s(), (r) => {
|
|
623
|
+
a = r, d(), f(), p(), N(e, t, n);
|
|
624
|
+
}, {
|
|
625
|
+
equals: l.shallow,
|
|
626
|
+
fireImmediately: !0
|
|
627
|
+
})), function() {
|
|
628
|
+
r.forEach((e) => e()), r.length = 0, d(), o = [], e.clustering = void 0, e.children = [], t.children = [], n.children = [], N(e, t, n);
|
|
629
|
+
};
|
|
630
|
+
}
|
|
631
|
+
function Lt(e, t, n, r, i) {
|
|
632
|
+
let a, o = i, s = !1, c = !1, l = (r) => {
|
|
633
|
+
let i = 1 - Math.min(Math.max(r, 0), 1), a = !1;
|
|
634
|
+
if (n() !== i && (t(i), a = !0), !o && r >= 1 && e.some((e) => !e.hidden)) {
|
|
635
|
+
for (let t of e) t.hidden = !0;
|
|
636
|
+
a = !0;
|
|
637
|
+
}
|
|
638
|
+
a && (s ? c = !0 : N(...e));
|
|
639
|
+
}, u = () => {
|
|
640
|
+
if (!a && (a = Nt(l, 300), r(a), !i)) {
|
|
641
|
+
let e = s;
|
|
642
|
+
s = !0, a.setTarget(!0, { immediate: !0 }), s = e;
|
|
643
|
+
}
|
|
644
|
+
return a;
|
|
645
|
+
};
|
|
646
|
+
return { place(t) {
|
|
647
|
+
if (t === o) return;
|
|
648
|
+
o = t;
|
|
649
|
+
let n = !1;
|
|
650
|
+
if (t && e.some((e) => e.hidden)) {
|
|
651
|
+
for (let t of e) t.hidden = !1;
|
|
652
|
+
n = !0;
|
|
653
|
+
}
|
|
654
|
+
return s = !0, c = !1, u().setTarget(!t), s = !1, n || c ? e : void 0;
|
|
655
|
+
} };
|
|
656
|
+
}
|
|
657
|
+
function Rt(e, t, n, r) {
|
|
658
|
+
let { bounds: i } = e, a = t * r, o = t * n * r;
|
|
659
|
+
if (!(i.size.x === a && i.size.y === o)) return i.set(i.center.x, i.center.y, a, o, i.rotation, i.elevation), [e];
|
|
660
|
+
}
|
|
661
|
+
function zt() {
|
|
662
|
+
return nn || (nn = g(B, window.devicePixelRatio)), nn;
|
|
663
|
+
}
|
|
664
|
+
function Bt() {
|
|
665
|
+
return rn || (rn = h(V, window.devicePixelRatio)), rn;
|
|
666
|
+
}
|
|
667
|
+
function Vt(e, t) {
|
|
668
|
+
let n = new M(e.rect.center, {
|
|
669
|
+
x: B,
|
|
670
|
+
y: B * D
|
|
671
|
+
}, 0, e.elevation * 2), r = {
|
|
672
|
+
...v(zt(), n, {
|
|
673
|
+
hidden: !1,
|
|
674
|
+
origin: Zt
|
|
675
|
+
}),
|
|
676
|
+
screenSpace: !0,
|
|
677
|
+
opacity: 1
|
|
678
|
+
};
|
|
679
|
+
r.onScale = ({ pixelSize: e }) => Rt(r, B, D, e);
|
|
680
|
+
let i = Lt([r], (e) => {
|
|
681
|
+
r.opacity = e;
|
|
682
|
+
}, () => {
|
|
683
|
+
var e;
|
|
684
|
+
return (e = r.opacity) == null ? 1 : e;
|
|
685
|
+
}, t, !0);
|
|
686
|
+
return r.placement = { onPlace: (e) => i.place(e) }, r;
|
|
687
|
+
}
|
|
688
|
+
function Ht(e) {
|
|
689
|
+
return `${$t}${Math.round(Math.min(Math.max(e, 0), 1) * 255).toString(16).padStart(2, "0")}`;
|
|
690
|
+
}
|
|
691
|
+
function Ut(e) {
|
|
692
|
+
let t = new M({
|
|
693
|
+
x: 0,
|
|
694
|
+
y: 0
|
|
695
|
+
}, {
|
|
696
|
+
x: V,
|
|
697
|
+
y: tn
|
|
698
|
+
}, 0, 0), n = {
|
|
699
|
+
...v(Bt(), t, {
|
|
700
|
+
hidden: !0,
|
|
701
|
+
origin: Zt
|
|
702
|
+
}),
|
|
703
|
+
screenSpace: !0,
|
|
704
|
+
opacity: 0
|
|
705
|
+
};
|
|
706
|
+
n.onScale = ({ pixelSize: e }) => Rt(n, V, D, e);
|
|
707
|
+
let r = Wt(n);
|
|
708
|
+
return {
|
|
709
|
+
image: n,
|
|
710
|
+
count: r,
|
|
711
|
+
fader: Lt([n, r], (e) => {
|
|
712
|
+
n.opacity = e, r.lines[0].color = Ht(e);
|
|
713
|
+
}, () => {
|
|
714
|
+
var e;
|
|
715
|
+
return (e = n.opacity) == null ? 1 : e;
|
|
716
|
+
}, e, !1)
|
|
717
|
+
};
|
|
718
|
+
}
|
|
719
|
+
function Wt(e) {
|
|
720
|
+
let t = {
|
|
721
|
+
lines: [{
|
|
722
|
+
text: y(2),
|
|
723
|
+
color: Ht(0),
|
|
724
|
+
fontUrl: ie,
|
|
725
|
+
fontSize: 0
|
|
726
|
+
}],
|
|
727
|
+
bounds: new M({
|
|
728
|
+
x: e.bounds.center.x,
|
|
729
|
+
y: e.bounds.center.y
|
|
730
|
+
}, {
|
|
731
|
+
x: 0,
|
|
732
|
+
y: 0
|
|
733
|
+
}, 0, e.bounds.elevation),
|
|
734
|
+
padding: [0, 0],
|
|
735
|
+
alignment: {
|
|
736
|
+
horizontal: "center",
|
|
737
|
+
vertical: "top",
|
|
738
|
+
text: "center"
|
|
739
|
+
},
|
|
740
|
+
screenSpace: !0,
|
|
741
|
+
hidden: !0
|
|
742
|
+
};
|
|
743
|
+
return t.onScale = ({ pixelSize: n }) => {
|
|
744
|
+
let r = _(en.r) * n, i = V * n, a = 2 * ((tn - en.cy) * n + T * r), { bounds: o } = t, [s] = t.lines;
|
|
745
|
+
if (!(s.fontSize === r && o.size.x === i && o.size.y === a)) return s.fontSize = r, o.set(e.bounds.center.x, e.bounds.center.y, i, a, o.rotation, e.bounds.elevation), [t];
|
|
746
|
+
}, t;
|
|
747
|
+
}
|
|
748
|
+
function Gt(e, t, n) {
|
|
749
|
+
let r = Math.min(t.length, e.length), i = [], a = /* @__PURE__ */ new Set(), o = [];
|
|
750
|
+
e.forEach(({ image: e }, i) => {
|
|
751
|
+
if (!e.hidden) for (let a = 0; a < r; a++) {
|
|
752
|
+
let { x: r, y: s } = t[a], c = Math.hypot(r - e.bounds.center.x, s - e.bounds.center.y);
|
|
753
|
+
c <= n && o.push({
|
|
754
|
+
distance: c,
|
|
755
|
+
cluster: a,
|
|
756
|
+
unit: i
|
|
757
|
+
});
|
|
758
|
+
}
|
|
759
|
+
}), o.sort((e, t) => e.distance - t.distance || e.cluster - t.cluster || e.unit - t.unit);
|
|
760
|
+
for (let { cluster: t, unit: n } of o) i[t] || a.has(e[n]) || (i[t] = e[n], a.add(e[n]));
|
|
761
|
+
let s = e.map((e, t) => ({
|
|
762
|
+
unit: e,
|
|
763
|
+
index: t
|
|
764
|
+
})).filter(({ unit: e }) => !a.has(e)).sort((e, t) => Kt(e.unit) - Kt(t.unit) || e.index - t.index), c = 0;
|
|
765
|
+
for (let e = 0; e < r; e++) i[e] || (i[e] = s[c++].unit);
|
|
766
|
+
return i;
|
|
767
|
+
}
|
|
768
|
+
function Kt({ image: e }) {
|
|
769
|
+
var t;
|
|
770
|
+
return e.hidden ? 0 : (t = e.opacity) == null ? 1 : t;
|
|
771
|
+
}
|
|
772
|
+
function qt({ image: e, count: t }, n) {
|
|
773
|
+
let { x: r, y: i, elevation: a, unitCount: o } = n, s = y(o), [c] = t.lines, l = e.bounds;
|
|
774
|
+
if (l.center.x === r && l.center.y === i && l.elevation === a && c.text === s) return !1;
|
|
775
|
+
l.set(r, i, l.size.x, l.size.y, l.rotation, a);
|
|
776
|
+
let { bounds: u } = t;
|
|
777
|
+
return u.set(r, i, u.size.x, u.size.y, u.rotation, a), c.text = s, !0;
|
|
778
|
+
}
|
|
779
|
+
var Jt = "poiFilterPins", Yt = "poiFilterPinClusters", Xt = "poiFilterPinCounts", B = 32, Zt = [.5, 1], V = 44, Qt = V, $t = "#000000", en = C(V), tn = V * D, nn, rn;
|
|
780
|
+
//#endregion
|
|
781
|
+
//#region src/components/Map/drawing/config/config-all.ts
|
|
782
|
+
function an() {
|
|
783
|
+
let { defaultLayer: e } = L.layerStore, { layers: t } = L.layerStore;
|
|
784
|
+
if (e) {
|
|
785
|
+
let n = [...t], r = t.indexOf(e);
|
|
786
|
+
n.splice(r, 1), t = [e, ...n];
|
|
787
|
+
}
|
|
788
|
+
let n = t.filter((e) => !e.rootParent).map((e) => ae(e));
|
|
789
|
+
return Promise.all(n).then((e) => {
|
|
790
|
+
var t;
|
|
791
|
+
let n = S(St, []);
|
|
792
|
+
n.overlay = R.is3DView;
|
|
793
|
+
let r = R.is3DView ? on() : void 0, i = ke({ overlay: R.is3DView }), a = [], o = [];
|
|
794
|
+
for (let t of e.flat()) E(t.name) ? (t.dim = 0, o.push(t)) : a.push(t);
|
|
795
|
+
let { layer: s, cleanup: c } = bt("root", Ce.booths);
|
|
796
|
+
return {
|
|
797
|
+
layers: [
|
|
798
|
+
...a,
|
|
799
|
+
...s ? [s] : [],
|
|
800
|
+
...o,
|
|
801
|
+
...Ue(),
|
|
802
|
+
n,
|
|
803
|
+
...(t = r == null ? void 0 : r.layers) == null ? [] : t,
|
|
804
|
+
i
|
|
805
|
+
],
|
|
806
|
+
cleanup: () => {
|
|
807
|
+
c(), r == null || r.cleanup();
|
|
808
|
+
}
|
|
809
|
+
};
|
|
810
|
+
});
|
|
811
|
+
}
|
|
812
|
+
function on() {
|
|
813
|
+
let e = [
|
|
814
|
+
Jt,
|
|
815
|
+
Yt,
|
|
816
|
+
Xt
|
|
817
|
+
].map((e) => {
|
|
818
|
+
let t = S(e, []);
|
|
819
|
+
return t.overlay = !0, t.dim = 0, t;
|
|
820
|
+
}), [t, n, r] = e;
|
|
821
|
+
return {
|
|
822
|
+
layers: e,
|
|
823
|
+
cleanup: It(t, n, r)
|
|
824
|
+
};
|
|
825
|
+
}
|
|
826
|
+
//#endregion
|
|
827
|
+
//#region src/components/Map/MapCursorCoords.tsx
|
|
828
|
+
var H = /* @__PURE__ */ e(o(), 1), sn = 2;
|
|
829
|
+
function cn(e) {
|
|
830
|
+
let { canvas: t } = e, n = me(), r = d(), i = (0, H.useCallback)(() => r("cursor", void 0), [r]), a = (0, H.useEffectEvent)((e) => {
|
|
831
|
+
if (!e.isPrimary) return;
|
|
832
|
+
let t = n.canvasToPlan({
|
|
833
|
+
x: e.offsetX,
|
|
834
|
+
y: e.offsetY
|
|
835
|
+
});
|
|
836
|
+
r("cursor", t ? un(t, ln()) : void 0);
|
|
837
|
+
});
|
|
838
|
+
return (0, H.useEffect)(() => {
|
|
839
|
+
let e = t.current;
|
|
840
|
+
if (!e) return;
|
|
841
|
+
let n = (e) => a(e), r = () => i();
|
|
842
|
+
return e.addEventListener("pointermove", n), e.addEventListener("pointerleave", r), () => {
|
|
843
|
+
e.removeEventListener("pointermove", n), e.removeEventListener("pointerleave", r);
|
|
844
|
+
};
|
|
845
|
+
}, [t, i]), null;
|
|
846
|
+
}
|
|
847
|
+
function ln() {
|
|
848
|
+
let e = L.layerStore.layers.find((e) => e.visible && (e.mode === he.TurnedOn || e.mode === he.TurnedOff));
|
|
849
|
+
return (e == null ? void 0 : e.name) || null;
|
|
850
|
+
}
|
|
851
|
+
function un(e, t) {
|
|
852
|
+
let n = `[${e.x.toFixed(sn)}, ${e.y.toFixed(sn)}]`;
|
|
853
|
+
return t ? `${n} · layer ${t}` : n;
|
|
854
|
+
}
|
|
855
|
+
//#endregion
|
|
856
|
+
//#region src/components/Map/MapViewport.tsx
|
|
857
|
+
function dn() {
|
|
858
|
+
let e = me(), t = (0, H.useRef)({ api: e }), [n] = (0, H.useState)(() => Le(t));
|
|
859
|
+
return (0, H.useLayoutEffect)(() => {
|
|
860
|
+
t.current = { api: e };
|
|
861
|
+
}), (0, H.useEffect)(() => (Ie(n), () => Ie(void 0)), [n]), null;
|
|
862
|
+
}
|
|
863
|
+
//#endregion
|
|
864
|
+
//#region src/components/Map/traffic/UpdateQueue.ts
|
|
865
|
+
var fn = class {
|
|
866
|
+
constructor() {
|
|
867
|
+
this.queue = [], this.isProcessing = !1, this.rafId = null, this.CHUNK_SIZE = 100, this.TIME_BUDGET = 4;
|
|
868
|
+
}
|
|
869
|
+
add(e) {
|
|
870
|
+
this.queue.push(e), this.scheduleProcessing();
|
|
871
|
+
}
|
|
872
|
+
scheduleProcessing() {
|
|
873
|
+
this.isProcessing || this.queue.length === 0 || (this.isProcessing = !0, this.queue.length <= this.CHUNK_SIZE * 2 ? Promise.resolve().then(() => this.processMicrotaskQueue()) : this.rafId = requestAnimationFrame((e) => {
|
|
874
|
+
this.processQueue(e);
|
|
875
|
+
}));
|
|
876
|
+
}
|
|
877
|
+
processMicrotaskQueue() {
|
|
878
|
+
let e = performance.now(), t = 0;
|
|
879
|
+
for (; this.queue.length > 0 && t < this.CHUNK_SIZE;) {
|
|
880
|
+
let n = this.queue.shift();
|
|
881
|
+
try {
|
|
882
|
+
n();
|
|
883
|
+
} catch (e) {
|
|
884
|
+
console.warn("UpdateQueue task error:", e);
|
|
885
|
+
}
|
|
886
|
+
if (t++, performance.now() - e > this.TIME_BUDGET) break;
|
|
887
|
+
}
|
|
888
|
+
this.queue.length > 0 ? Promise.resolve().then(() => this.processMicrotaskQueue()) : this.isProcessing = !1;
|
|
889
|
+
}
|
|
890
|
+
processQueue(e) {
|
|
891
|
+
this.rafId = null;
|
|
892
|
+
let t = 0;
|
|
893
|
+
for (; this.queue.length > 0 && t < this.CHUNK_SIZE;) {
|
|
894
|
+
let n = this.queue.shift();
|
|
895
|
+
try {
|
|
896
|
+
n();
|
|
897
|
+
} catch (e) {
|
|
898
|
+
console.warn("UpdateQueue task error:", e);
|
|
899
|
+
}
|
|
900
|
+
if (t++, performance.now() - e > this.TIME_BUDGET) break;
|
|
901
|
+
}
|
|
902
|
+
this.queue.length > 0 ? this.rafId = requestAnimationFrame((e) => this.processQueue(e)) : this.isProcessing = !1;
|
|
903
|
+
}
|
|
904
|
+
destroy() {
|
|
905
|
+
this.rafId !== null && (cancelAnimationFrame(this.rafId), this.rafId = null), this.queue = [], this.isProcessing = !1;
|
|
906
|
+
}
|
|
907
|
+
}, U = 49, pn = `hsl(257, 76%, ${U}%)`, mn = `hsl(339.903, 82%, ${U}%)`, hn = `hsl(257, 76%, ${Math.round(U * 1.82)}%)`, W = 4, G = be(W), gn = W, _n = "U", vn = "R", yn = "S", bn = "P", xn = class {
|
|
908
|
+
constructor() {
|
|
909
|
+
this._state = [[]], this.index = 0, this.pointHashSet = /* @__PURE__ */ new Set(), this.locked = !1, this.storageKey = "expofp_build_route_state", this._selected = 0;
|
|
910
|
+
}
|
|
911
|
+
get points() {
|
|
912
|
+
return this._state[this.index];
|
|
913
|
+
}
|
|
914
|
+
set points(e) {
|
|
915
|
+
this._state.push(e), this.setIndex(), this.save();
|
|
916
|
+
}
|
|
917
|
+
setIndex() {
|
|
918
|
+
this.index = Math.max(this._state.length - 1, 0);
|
|
919
|
+
}
|
|
920
|
+
genPointHash(e) {
|
|
921
|
+
return `${e.x},${e.y}`;
|
|
922
|
+
}
|
|
923
|
+
add(e) {
|
|
924
|
+
let t = this.genPointHash(e);
|
|
925
|
+
this.pointHashSet.has(t) || (this.pointHashSet.add(t), this.points = [...this.points, e]);
|
|
926
|
+
}
|
|
927
|
+
undo() {
|
|
928
|
+
this.index && (this._state.pop(), this.setIndex(), this.save(), this.select(this.points.length - 1));
|
|
929
|
+
}
|
|
930
|
+
execute(e) {
|
|
931
|
+
try {
|
|
932
|
+
if (this.locked) return;
|
|
933
|
+
this.locked = !0, e();
|
|
934
|
+
} finally {
|
|
935
|
+
requestAnimationFrame(() => {
|
|
936
|
+
this.locked = !1;
|
|
937
|
+
});
|
|
938
|
+
}
|
|
939
|
+
}
|
|
940
|
+
log(e, t = 12) {
|
|
941
|
+
console.log(`%c${e}`, `color: black; font-size: ${t}px; background: LemonChiffon;`);
|
|
942
|
+
}
|
|
943
|
+
instruct() {
|
|
944
|
+
this.log(`How to Build a Route:
|
|
945
|
+
Add Point: Click on the map.
|
|
946
|
+
Apply Smoothing: Press ${vn}.
|
|
947
|
+
Apply Simplification: Press ${yn}.
|
|
948
|
+
Undo: Press ${_n}.
|
|
949
|
+
Enable/Disable Preview: Press ${bn}.
|
|
950
|
+
`, 16);
|
|
951
|
+
}
|
|
952
|
+
applyChaikinSmoothing(e, t, n) {
|
|
953
|
+
let r;
|
|
954
|
+
if (n >= 1 && e.length >= 2) {
|
|
955
|
+
r = [e[0]];
|
|
956
|
+
for (let t = 1; t < e.length; t++) {
|
|
957
|
+
let i = e[t - 1], a = e[t];
|
|
958
|
+
for (let e = 1; e <= n; e++) {
|
|
959
|
+
let t = e / (n + 1);
|
|
960
|
+
r.push({
|
|
961
|
+
x: i.x + (a.x - i.x) * t,
|
|
962
|
+
y: i.y + (a.y - i.y) * t
|
|
963
|
+
});
|
|
964
|
+
}
|
|
965
|
+
r.push(a);
|
|
966
|
+
}
|
|
967
|
+
} else r = e.slice();
|
|
968
|
+
for (let e = 0; e < t && !(r.length < 2); e++) {
|
|
969
|
+
let e = [{ ...r[0] }];
|
|
970
|
+
for (let t = 1; t < r.length; t++) {
|
|
971
|
+
let n = r[t - 1], i = r[t];
|
|
972
|
+
e.push({
|
|
973
|
+
x: .75 * n.x + .25 * i.x,
|
|
974
|
+
y: .75 * n.y + .25 * i.y
|
|
975
|
+
}), e.push({
|
|
976
|
+
x: .25 * n.x + .75 * i.x,
|
|
977
|
+
y: .25 * n.y + .75 * i.y
|
|
978
|
+
});
|
|
979
|
+
}
|
|
980
|
+
e.push({ ...r[r.length - 1] }), r = e;
|
|
981
|
+
}
|
|
982
|
+
return r;
|
|
983
|
+
}
|
|
984
|
+
applySmoothing() {
|
|
985
|
+
this.points.length < 3 || (this.points = this.applyChaikinSmoothing(this.points, 1, 0), this.select(this.points.length - 1));
|
|
986
|
+
}
|
|
987
|
+
save() {
|
|
988
|
+
try {
|
|
989
|
+
this.points.length ? sessionStorage.setItem(this.storageKey, JSON.stringify(this.points)) : sessionStorage.removeItem(this.storageKey);
|
|
990
|
+
} catch (e) {
|
|
991
|
+
console.warn(e);
|
|
992
|
+
}
|
|
993
|
+
}
|
|
994
|
+
restore() {
|
|
995
|
+
try {
|
|
996
|
+
let e = sessionStorage.getItem(this.storageKey);
|
|
997
|
+
if (!e) return;
|
|
998
|
+
let t = JSON.parse(e);
|
|
999
|
+
if (!Array.isArray(t)) return;
|
|
1000
|
+
t.forEach((e) => this.add(e)), this.select(this.points.length - 1);
|
|
1001
|
+
} catch (e) {
|
|
1002
|
+
console.warn(e);
|
|
1003
|
+
}
|
|
1004
|
+
}
|
|
1005
|
+
topologyPreservingSimplify(e, t) {
|
|
1006
|
+
if (e.length <= 2) return e.map((e) => ({ ...e }));
|
|
1007
|
+
let n = (e, t, n) => {
|
|
1008
|
+
let r = e.x, i = e.y, a = t.x, o = t.y, s = n.x, c = n.y;
|
|
1009
|
+
return Math.abs((c - o) * r - (s - a) * i + s * o - c * a) / (Math.sqrt((c - o) ** 2 + (s - a) ** 2) || 1e-10);
|
|
1010
|
+
}, r = (e, t, n, r) => {
|
|
1011
|
+
let i = ue({
|
|
1012
|
+
p0: e,
|
|
1013
|
+
p1: t
|
|
1014
|
+
}, {
|
|
1015
|
+
p0: n,
|
|
1016
|
+
p1: r
|
|
1017
|
+
});
|
|
1018
|
+
return i !== null && i.onLine1 && i.onLine2;
|
|
1019
|
+
}, i = Array(e.length).fill(!1);
|
|
1020
|
+
i[0] = i[i.length - 1] = !0;
|
|
1021
|
+
let a = [], o = (s, c) => {
|
|
1022
|
+
if (c <= s + 1) return;
|
|
1023
|
+
let l = e[s], u = e[c], d = 0, f = 0;
|
|
1024
|
+
for (let t = s + 1; t < c; t++) {
|
|
1025
|
+
let r = n(e[t], l, u);
|
|
1026
|
+
r > d && (d = r, f = t);
|
|
1027
|
+
}
|
|
1028
|
+
if (d > t) {
|
|
1029
|
+
let t = e[f], n = !0;
|
|
1030
|
+
for (let e = 0; e < a.length - 1; e++) if (r(a[e], a[e + 1], l, t) || r(a[e], a[e + 1], t, u)) {
|
|
1031
|
+
n = !1;
|
|
1032
|
+
break;
|
|
1033
|
+
}
|
|
1034
|
+
n && (i[f] = !0, o(s, f), o(f, c));
|
|
1035
|
+
}
|
|
1036
|
+
};
|
|
1037
|
+
return o(0, e.length - 1), e.filter((e, t) => i[t]);
|
|
1038
|
+
}
|
|
1039
|
+
applySimplification() {
|
|
1040
|
+
this.points = this.topologyPreservingSimplify(this.points, .5), this.select(this.points.length - 1);
|
|
1041
|
+
}
|
|
1042
|
+
get selected() {
|
|
1043
|
+
return this._selected;
|
|
1044
|
+
}
|
|
1045
|
+
select(e) {
|
|
1046
|
+
this._selected = Math.max(0, Math.min(e, this.points.length - 1));
|
|
1047
|
+
}
|
|
1048
|
+
};
|
|
1049
|
+
function Sn({ enabled: e, scene: t }) {
|
|
1050
|
+
let n = (0, H.useRef)(!1), r = (0, H.useRef)(1), i = (0, H.useMemo)(() => k(W, pn), []), a = (0, H.useMemo)(() => k(W, mn), []), o = (0, H.useMemo)(() => new xn(), []), s = (0, H.useRef)(new fn()), c = (0, H.useMemo)(() => {
|
|
1051
|
+
if (!t) return {};
|
|
1052
|
+
let e = t.rootLayer.children;
|
|
1053
|
+
return {
|
|
1054
|
+
linesLayer: e.find((e) => e.name === Be),
|
|
1055
|
+
pointsLayer: e.find((e) => e.name === Ve)
|
|
1056
|
+
};
|
|
1057
|
+
}, [t]), l = (0, H.useCallback)(() => {
|
|
1058
|
+
if (!c || !i || !a) return;
|
|
1059
|
+
let { linesLayer: e, pointsLayer: t } = c;
|
|
1060
|
+
if (!e || !t) return;
|
|
1061
|
+
let l = o.points, u = n.current;
|
|
1062
|
+
u ? t.children.length = 0 : t.children = l.map(({ x: e, y: t }, n) => ({
|
|
1063
|
+
source: n == o.selected ? a : i,
|
|
1064
|
+
bounds: p(e, t, G, G, r.current)
|
|
1065
|
+
}));
|
|
1066
|
+
let d = [];
|
|
1067
|
+
for (let e = 1; e < l.length; e++) {
|
|
1068
|
+
let t = l[e - 1], n = l[e];
|
|
1069
|
+
d.push({
|
|
1070
|
+
points: {
|
|
1071
|
+
p0: t,
|
|
1072
|
+
p1: n
|
|
1073
|
+
},
|
|
1074
|
+
color: u ? pn : hn,
|
|
1075
|
+
width: gn
|
|
1076
|
+
});
|
|
1077
|
+
}
|
|
1078
|
+
d.length ? e.children = d : e.children.length = 0, s.current.add(() => N(t, e)), o.instruct(), o.log(JSON.stringify(o.points));
|
|
1079
|
+
}, [
|
|
1080
|
+
o,
|
|
1081
|
+
c,
|
|
1082
|
+
i,
|
|
1083
|
+
a
|
|
1084
|
+
]), u = (0, H.useCallback)((e) => {
|
|
1085
|
+
let t = e.key.toUpperCase();
|
|
1086
|
+
o.execute(() => {
|
|
1087
|
+
switch (t) {
|
|
1088
|
+
case _n:
|
|
1089
|
+
e.preventDefault(), o.undo(), n.current = !1, l();
|
|
1090
|
+
break;
|
|
1091
|
+
case vn:
|
|
1092
|
+
e.preventDefault(), o.applySmoothing(), n.current = !1, l();
|
|
1093
|
+
break;
|
|
1094
|
+
case yn:
|
|
1095
|
+
e.preventDefault(), o.applySimplification(), n.current = !1, l();
|
|
1096
|
+
break;
|
|
1097
|
+
case bn:
|
|
1098
|
+
e.preventDefault(), n.current = !n.current, l();
|
|
1099
|
+
break;
|
|
1100
|
+
}
|
|
1101
|
+
});
|
|
1102
|
+
}, [o, l]), d = (0, H.useCallback)((e) => {
|
|
1103
|
+
r.current = e;
|
|
1104
|
+
let { pointsLayer: t } = c;
|
|
1105
|
+
if (!t) return [];
|
|
1106
|
+
let n = [];
|
|
1107
|
+
return o.execute(() => {
|
|
1108
|
+
let e = t.children;
|
|
1109
|
+
for (let t of e) t.bounds = p(t.bounds.center.x, t.bounds.center.y, G, G, r.current), n.push(t);
|
|
1110
|
+
}), n;
|
|
1111
|
+
}, [c, o]), f = (0, H.useCallback)((e) => {
|
|
1112
|
+
o.execute(() => {
|
|
1113
|
+
o.add({
|
|
1114
|
+
x: e.x,
|
|
1115
|
+
y: e.y
|
|
1116
|
+
}), o.select(o.points.length - 1), l();
|
|
1117
|
+
});
|
|
1118
|
+
}, [o, l]);
|
|
1119
|
+
(0, H.useEffect)(() => {
|
|
1120
|
+
var t, n;
|
|
1121
|
+
if (!e || !(c != null && c.pointsLayer)) return;
|
|
1122
|
+
let { pointsLayer: i } = c;
|
|
1123
|
+
r.current = (t = (n = O()) == null ? void 0 : n.state().pixelSize) == null ? 1 : t, o.execute(() => {
|
|
1124
|
+
o.restore(), l();
|
|
1125
|
+
}), i.onScale = ({ pixelSize: e }) => d(e);
|
|
1126
|
+
let a = s.current;
|
|
1127
|
+
return a.add(() => N(i)), ve(f), window.addEventListener("keyup", u), () => {
|
|
1128
|
+
window.removeEventListener("keyup", u), ve(), i.onScale = void 0, a.destroy();
|
|
1129
|
+
};
|
|
1130
|
+
}, [
|
|
1131
|
+
e,
|
|
1132
|
+
c,
|
|
1133
|
+
o,
|
|
1134
|
+
l,
|
|
1135
|
+
f,
|
|
1136
|
+
d,
|
|
1137
|
+
u
|
|
1138
|
+
]);
|
|
1139
|
+
}
|
|
1140
|
+
//#endregion
|
|
1141
|
+
//#region src/components/Map/traffic/useManageTraffic.ts
|
|
1142
|
+
var Cn = 2, wn = Cn * 3.5, K = Cn * 12, q = K * .7, Tn = 8, En = 2, Dn = .6, On = 8, kn = "transport_locations", An = 150, jn = "#a4aab6", Mn = 1e3, Nn = 2e4, Pn = 500;
|
|
1143
|
+
function Fn({ permission: e, scene: t, dataJsonUrl: r, websocketUrl: i }) {
|
|
1144
|
+
let a = (0, H.useRef)(1), o = (0, H.useRef)(/* @__PURE__ */ new Map()), c = (0, H.useRef)(/* @__PURE__ */ new Map()), l = (0, H.useRef)(null), u = (0, H.useRef)(null), d = (0, H.useRef)(0), f = (0, H.useRef)(1), m = (0, H.useRef)(new fn()), h = (0, H.useRef)(/* @__PURE__ */ new Map()), g = (0, H.useRef)(Mn), _ = (0, H.useRef)(/* @__PURE__ */ new Map()), v = (0, H.useRef)(void 0);
|
|
1145
|
+
(0, H.useEffect)(() => {
|
|
1146
|
+
if (!e || !t) return;
|
|
1147
|
+
let y = !1, b, x = t.rootLayer.children, S = c.current, C = o.current, T = m.current;
|
|
1148
|
+
async function E() {
|
|
1149
|
+
try {
|
|
1150
|
+
var e, t;
|
|
1151
|
+
let i;
|
|
1152
|
+
try {
|
|
1153
|
+
let e = await fetch(r, {
|
|
1154
|
+
method: "GET",
|
|
1155
|
+
headers: { "Content-Type": "application/json" }
|
|
1156
|
+
});
|
|
1157
|
+
if (!e.ok || e.status === 204) return;
|
|
1158
|
+
i = await e.json();
|
|
1159
|
+
} catch (e) {
|
|
1160
|
+
console.warn("useManageTraffic failed to get JSON", e);
|
|
1161
|
+
}
|
|
1162
|
+
if (y || !i || i.disabled || i.error) return;
|
|
1163
|
+
a.current = Rn((e = (t = O()) == null ? void 0 : t.state().pixelSize) == null ? 1 : e);
|
|
1164
|
+
let c = new Map(i.routes.map(({ id: e, color: t }) => [e, t])), l = /* @__PURE__ */ new Map();
|
|
1165
|
+
c.forEach((e) => {
|
|
1166
|
+
l.set(e, Bn({
|
|
1167
|
+
radius: wn,
|
|
1168
|
+
color: e,
|
|
1169
|
+
scale: window.devicePixelRatio
|
|
1170
|
+
}));
|
|
1171
|
+
});
|
|
1172
|
+
let m = Ke(), g = x.filter((e) => m.test(e.name)), v = qe(), b = x.filter((e) => v.test(e.name));
|
|
1173
|
+
i.routes.slice(0, g.length).forEach(({ id: e, color: t, path: n, stops: r, hiddenPoints: i }, o) => {
|
|
1174
|
+
h.current.set(e, n);
|
|
1175
|
+
let s = g[o];
|
|
1176
|
+
if (s) {
|
|
1177
|
+
var c;
|
|
1178
|
+
let e = new Map((c = i == null ? void 0 : i.map((e) => [Xn(e), e])) == null ? [] : c);
|
|
1179
|
+
for (let r = 1; r < n.length; r++) {
|
|
1180
|
+
let i = n[r - 1], a = n[r];
|
|
1181
|
+
e.has(Xn(i)) || e.has(Xn(a)) || s.children.push({
|
|
1182
|
+
points: {
|
|
1183
|
+
p0: i,
|
|
1184
|
+
p1: a
|
|
1185
|
+
},
|
|
1186
|
+
color: t,
|
|
1187
|
+
width: Cn
|
|
1188
|
+
});
|
|
1189
|
+
}
|
|
1190
|
+
s.children.length && T.add(() => N(s));
|
|
1191
|
+
}
|
|
1192
|
+
let u = b[o], d = l.get(t);
|
|
1193
|
+
u && d && r != null && r.length && (r.forEach((e) => {
|
|
1194
|
+
u.children.push({
|
|
1195
|
+
source: d,
|
|
1196
|
+
bounds: p(e.x, e.y, ...J(d), a.current)
|
|
1197
|
+
});
|
|
1198
|
+
}), u.children.length && T.add(() => N(u)));
|
|
1199
|
+
});
|
|
1200
|
+
let E = x.find((e) => e.name === z);
|
|
1201
|
+
if (!E) {
|
|
1202
|
+
console.warn(`useManageTraffic: the scene has no "${z}" layer`);
|
|
1203
|
+
return;
|
|
1204
|
+
}
|
|
1205
|
+
let A = /* @__PURE__ */ new Map();
|
|
1206
|
+
E.onScale = ({ pixelSize: e }) => {
|
|
1207
|
+
a.current = Rn(e);
|
|
1208
|
+
let t = [];
|
|
1209
|
+
for (let e of b) {
|
|
1210
|
+
let n = e.children;
|
|
1211
|
+
for (let e of n) {
|
|
1212
|
+
let n = e.source;
|
|
1213
|
+
e.bounds = p(e.bounds.center.x, e.bounds.center.y, ...J(n), a.current, e.bounds.rotation), t.push(e);
|
|
1214
|
+
}
|
|
1215
|
+
}
|
|
1216
|
+
for (let e of o.current.values()) {
|
|
1217
|
+
let n = e.source;
|
|
1218
|
+
e.bounds = p(e.bounds.center.x, e.bounds.center.y, ...J(n), a.current, e.bounds.rotation), t.push(e);
|
|
1219
|
+
}
|
|
1220
|
+
return t;
|
|
1221
|
+
}, T.add(() => N(E)), c.forEach((e, t) => {
|
|
1222
|
+
A.set(t, Vn({
|
|
1223
|
+
id: t,
|
|
1224
|
+
width: K,
|
|
1225
|
+
height: K,
|
|
1226
|
+
color: e,
|
|
1227
|
+
scale: window.devicePixelRatio
|
|
1228
|
+
}));
|
|
1229
|
+
});
|
|
1230
|
+
let ne = Vn({
|
|
1231
|
+
id: "orphan",
|
|
1232
|
+
width: K,
|
|
1233
|
+
height: K,
|
|
1234
|
+
color: jn,
|
|
1235
|
+
scale: window.devicePixelRatio
|
|
1236
|
+
}), j = null;
|
|
1237
|
+
try {
|
|
1238
|
+
let e = await s(`${n}icons/bus-white.svg`);
|
|
1239
|
+
if (y) return;
|
|
1240
|
+
j = te(e, q, q, window.devicePixelRatio);
|
|
1241
|
+
let { width: t, height: r } = w(e, q, q);
|
|
1242
|
+
X.set(j, [t, r]);
|
|
1243
|
+
} catch (e) {
|
|
1244
|
+
console.error(e);
|
|
1245
|
+
}
|
|
1246
|
+
u.current = (e) => {
|
|
1247
|
+
try {
|
|
1248
|
+
var t;
|
|
1249
|
+
let n = JSON.parse(e.data);
|
|
1250
|
+
if (n.type !== kn) return;
|
|
1251
|
+
let r = e.timeStamp || performance.now();
|
|
1252
|
+
f.current = Math.round(r - d.current), d.current = r;
|
|
1253
|
+
let i = Math.max((t = f.current) == null ? Pn : t, Pn), o = E.children, s = !1;
|
|
1254
|
+
n.data.forEach(({ id: e, x: t, y: n, route_id: r, hidden: c }) => {
|
|
1255
|
+
var l;
|
|
1256
|
+
if (S.has(e)) {
|
|
1257
|
+
var u;
|
|
1258
|
+
(u = S.get(e)) == null || u(), S.delete(e);
|
|
1259
|
+
}
|
|
1260
|
+
let d = C.get(e), f = (l = C.get(Un(e))) == null ? null : l;
|
|
1261
|
+
if (c && d && f) {
|
|
1262
|
+
d.hidden = !0, f.hidden = !0, T.add(() => N(d, f));
|
|
1263
|
+
return;
|
|
1264
|
+
}
|
|
1265
|
+
if (_.current.set(e, performance.now()), !d) {
|
|
1266
|
+
var m;
|
|
1267
|
+
let i = (m = A.get(r)) == null ? ne : m, c = {
|
|
1268
|
+
source: i,
|
|
1269
|
+
bounds: p(t, n, ...J(i), a.current, 0)
|
|
1270
|
+
};
|
|
1271
|
+
if (C.set(e, c), j) {
|
|
1272
|
+
let r = Un(e), i = {
|
|
1273
|
+
source: j,
|
|
1274
|
+
bounds: p(t, n, ...J(j), a.current, 0)
|
|
1275
|
+
};
|
|
1276
|
+
Wn(i), j.setAttribute("id", r), C.set(r, i), o.push(c, i);
|
|
1277
|
+
} else o.push(c);
|
|
1278
|
+
s = !0;
|
|
1279
|
+
return;
|
|
1280
|
+
}
|
|
1281
|
+
let g = d.bounds.center, v = Jn(g, {
|
|
1282
|
+
x: t,
|
|
1283
|
+
y: n
|
|
1284
|
+
}, h.current.get(r));
|
|
1285
|
+
if (v.reduce((e, t, n) => n === 0 ? e : e + Hn(v[n - 1], t), 0) >= An || document.hidden) Gn({
|
|
1286
|
+
updateQueue: T,
|
|
1287
|
+
vehicle: d,
|
|
1288
|
+
vehicleFinery: f,
|
|
1289
|
+
x: t,
|
|
1290
|
+
y: n,
|
|
1291
|
+
scale: a.current,
|
|
1292
|
+
angle: zn(d.bounds.center, {
|
|
1293
|
+
x: t,
|
|
1294
|
+
y: n
|
|
1295
|
+
})
|
|
1296
|
+
});
|
|
1297
|
+
else {
|
|
1298
|
+
let t = Yn(v, i, (e) => {
|
|
1299
|
+
Gn({
|
|
1300
|
+
updateQueue: T,
|
|
1301
|
+
vehicle: d,
|
|
1302
|
+
vehicleFinery: f,
|
|
1303
|
+
x: e.x,
|
|
1304
|
+
y: e.y,
|
|
1305
|
+
scale: a.current,
|
|
1306
|
+
angle: e.angle
|
|
1307
|
+
});
|
|
1308
|
+
});
|
|
1309
|
+
S.set(e, t);
|
|
1310
|
+
}
|
|
1311
|
+
}), s && T.add(() => N(E));
|
|
1312
|
+
} catch (e) {
|
|
1313
|
+
console.error("handleSocketMessage", e);
|
|
1314
|
+
}
|
|
1315
|
+
}, d.current = performance.now(), D(), window.addEventListener("online", ee), k(i.config ? (Number(i.config.vehicle_inactive_interval) || 20) * 1e3 : Nn);
|
|
1316
|
+
} catch (e) {
|
|
1317
|
+
console.warn(e);
|
|
1318
|
+
}
|
|
1319
|
+
}
|
|
1320
|
+
E();
|
|
1321
|
+
function D() {
|
|
1322
|
+
var e, t;
|
|
1323
|
+
y || ((e = l.current) == null ? void 0 : e.readyState) === WebSocket.OPEN || ((t = l.current) == null ? void 0 : t.readyState) === WebSocket.CONNECTING || (l.current = new WebSocket(i), l.current.onmessage = u.current, l.current.onopen = () => {
|
|
1324
|
+
g.current = Mn;
|
|
1325
|
+
}, l.current.onclose = () => {
|
|
1326
|
+
y || !navigator.onLine || (b = window.setTimeout(D, g.current), g.current = Math.min(g.current * 2, 3e4));
|
|
1327
|
+
});
|
|
1328
|
+
}
|
|
1329
|
+
function ee() {
|
|
1330
|
+
D();
|
|
1331
|
+
}
|
|
1332
|
+
function k(e) {
|
|
1333
|
+
clearInterval(v.current), !y && (v.current = window.setInterval(() => {
|
|
1334
|
+
let t = performance.now(), n = [], r = [];
|
|
1335
|
+
_.current.forEach((i, a) => {
|
|
1336
|
+
if (t - i < e) return;
|
|
1337
|
+
let o = C.get(a);
|
|
1338
|
+
o && (o.hidden = !0, r.push(o), n.push(a));
|
|
1339
|
+
let s = Un(a), c = C.get(s);
|
|
1340
|
+
c && (c.hidden = !0, r.push(c), n.push(s));
|
|
1341
|
+
}), r.length && T.add(() => N(...r)), n.forEach((e) => _.current.delete(e));
|
|
1342
|
+
}, e));
|
|
1343
|
+
}
|
|
1344
|
+
return () => {
|
|
1345
|
+
y = !0, clearTimeout(b);
|
|
1346
|
+
let e = l.current;
|
|
1347
|
+
e && (e.onopen = null, e.onmessage = null, e.onclose = null, e.close(), l.current = null), u.current = null;
|
|
1348
|
+
let t = x.find((e) => e.name === z);
|
|
1349
|
+
t && (t.onScale = void 0), S.forEach((e) => e == null ? void 0 : e()), S.clear(), C.clear(), T.destroy(), window.removeEventListener("online", ee), clearInterval(v.current);
|
|
1350
|
+
};
|
|
1351
|
+
}, [
|
|
1352
|
+
e,
|
|
1353
|
+
t,
|
|
1354
|
+
r,
|
|
1355
|
+
i
|
|
1356
|
+
]);
|
|
1357
|
+
}
|
|
1358
|
+
function J(e) {
|
|
1359
|
+
let t = X.get(e);
|
|
1360
|
+
if (!t) throw Error("useManageTraffic: an icon was drawn without a recorded CSS size");
|
|
1361
|
+
return t;
|
|
1362
|
+
}
|
|
1363
|
+
function In(e) {
|
|
1364
|
+
return e * 2;
|
|
1365
|
+
}
|
|
1366
|
+
function Ln(e, t) {
|
|
1367
|
+
let n = t * Dn, r = On * 2;
|
|
1368
|
+
return [t + En + n / 2 + r, e + n + En + r];
|
|
1369
|
+
}
|
|
1370
|
+
function Rn(e) {
|
|
1371
|
+
return Math.min(e || 1, Tn);
|
|
1372
|
+
}
|
|
1373
|
+
function zn(e, t) {
|
|
1374
|
+
return Ee(e, t);
|
|
1375
|
+
}
|
|
1376
|
+
function Bn({ radius: e, scale: t, color: n }) {
|
|
1377
|
+
let r = Math.ceil(e * 2 * t), i = ye(r, r, t);
|
|
1378
|
+
X.set(i, [In(e), In(e)]);
|
|
1379
|
+
let a = i.getContext("2d");
|
|
1380
|
+
a.imageSmoothingEnabled = !1;
|
|
1381
|
+
let o = r / 2, s = e * .78, c = e * .33;
|
|
1382
|
+
return a.translate(o, o), a.scale(t, t), a.beginPath(), a.arc(0, 0, e, 0, 2 * Math.PI), a.fillStyle = "#FFFFFF", a.fill(), a.beginPath(), a.arc(0, 0, s, 0, 2 * Math.PI), a.fillStyle = n, a.fill(), a.beginPath(), a.arc(0, 0, c, 0, 2 * Math.PI), a.fillStyle = "#FFFFFF", a.fill(), i;
|
|
1383
|
+
}
|
|
1384
|
+
function Vn({ id: e, width: t, height: n, color: r, scale: i }) {
|
|
1385
|
+
let a = En * i, o = t / 2 * i, s = n * i, c = Dn, l = .01, u = s * c, d = s, f = On * i, p = d + a + u / 2 + f * 2, m = o * 2 + u + a + f * 2, h = ye(p, m, i);
|
|
1386
|
+
X.set(h, Ln(t, n)), h.setAttribute("id", e);
|
|
1387
|
+
let g = h.getContext("2d"), _ = p / 2, v = m / 2;
|
|
1388
|
+
g.save(), g.translate(_, v), g.rotate(-Math.PI / 2), g.translate(-_, -v);
|
|
1389
|
+
let y = _, b = v - d / 2 + o, x = b + u;
|
|
1390
|
+
return g.shadowColor = "rgba(16, 24, 40, 0.2)", g.shadowBlur = f / 2, g.beginPath(), g.arc(y, b, o, Math.PI, 0, !1), g.bezierCurveTo(y + o, b + s * .3, y + l * o, x, y, x), g.bezierCurveTo(y - l * o, x, y - o, b + s * .3, y - o, b), g.closePath(), g.fillStyle = r, g.fill(), g.strokeStyle = "#FFFFFF", g.lineWidth = a, g.stroke(), g.restore(), h;
|
|
1391
|
+
}
|
|
1392
|
+
function Hn(e, t) {
|
|
1393
|
+
return I(e, t);
|
|
1394
|
+
}
|
|
1395
|
+
function Un(e) {
|
|
1396
|
+
return `${e}_finery`;
|
|
1397
|
+
}
|
|
1398
|
+
function Wn(e) {
|
|
1399
|
+
e.onRoll = ({ roll: t }) => {
|
|
1400
|
+
let { bounds: n } = e;
|
|
1401
|
+
if (t !== n.rotation) return n.rotate(t - n.rotation, n), [e];
|
|
1402
|
+
};
|
|
1403
|
+
}
|
|
1404
|
+
function Gn({ updateQueue: e, vehicle: t, vehicleFinery: n, x: r, y: i, scale: a, angle: o }) {
|
|
1405
|
+
let s = t.source;
|
|
1406
|
+
if (t.bounds = p(r, i, ...J(s), a, o), t.hidden = !1, n) {
|
|
1407
|
+
let { size: a, rotation: o, elevation: s } = n.bounds;
|
|
1408
|
+
n.bounds = new M({
|
|
1409
|
+
x: r,
|
|
1410
|
+
y: i
|
|
1411
|
+
}, a, o, s), n.hidden = !1, e.add(() => N(n, t));
|
|
1412
|
+
} else e.add(() => N(t));
|
|
1413
|
+
}
|
|
1414
|
+
function Y(e, t, n) {
|
|
1415
|
+
return {
|
|
1416
|
+
x: e.x + (t.x - e.x) * n,
|
|
1417
|
+
y: e.y + (t.y - e.y) * n
|
|
1418
|
+
};
|
|
1419
|
+
}
|
|
1420
|
+
function Kn(e, t) {
|
|
1421
|
+
let n = Infinity, r = {
|
|
1422
|
+
index: 0,
|
|
1423
|
+
t: 0
|
|
1424
|
+
};
|
|
1425
|
+
for (let i = 0; i < t.length - 1; i++) {
|
|
1426
|
+
let a = t[i], o = t[i + 1], s = o.x - a.x, c = o.y - a.y, l = s * s + c * c, u = l ? ((e.x - a.x) * s + (e.y - a.y) * c) / l : 0, d = Math.max(0, Math.min(1, u)), f = Hn(e, Y(a, o, d));
|
|
1427
|
+
f < n && (n = f, r = {
|
|
1428
|
+
index: i,
|
|
1429
|
+
t: d
|
|
1430
|
+
});
|
|
1431
|
+
}
|
|
1432
|
+
return r;
|
|
1433
|
+
}
|
|
1434
|
+
function qn(e, t, n) {
|
|
1435
|
+
let r = Hn(e, t), i = Math.max(2, Math.ceil(r / n) + 1), a = [];
|
|
1436
|
+
for (let n = 0; n < i; n++) {
|
|
1437
|
+
let r = Y(e, t, n / (i - 1));
|
|
1438
|
+
a.push(r);
|
|
1439
|
+
}
|
|
1440
|
+
return a;
|
|
1441
|
+
}
|
|
1442
|
+
function Jn(e, t, n) {
|
|
1443
|
+
if (!n || !n.length) return qn(e, t, 10);
|
|
1444
|
+
let r = Kn(e, n), i = Kn(t, n), a = [], o = (e) => a.push(e);
|
|
1445
|
+
r.index + 1 < n.length ? o(Y(n[r.index], n[r.index + 1], r.t)) : o(n[r.index]);
|
|
1446
|
+
for (let e = r.index + 1; e <= i.index && e < n.length; e++) o(n[e]);
|
|
1447
|
+
return i.index + 1 < n.length ? o(Y(n[i.index], n[i.index + 1], i.t)) : o(n[i.index]), a;
|
|
1448
|
+
}
|
|
1449
|
+
function Yn(e, t, n, r) {
|
|
1450
|
+
if (e.length < 2) return () => {};
|
|
1451
|
+
let i = null, a, o = [], s = 0;
|
|
1452
|
+
for (let t = 0; t < e.length - 1; t++) {
|
|
1453
|
+
let n = I(e[t], e[t + 1]);
|
|
1454
|
+
o.push(n), s += n;
|
|
1455
|
+
}
|
|
1456
|
+
let c = (l) => {
|
|
1457
|
+
i || (i = l);
|
|
1458
|
+
let u = l - i, d = Math.min(u / t, 1), f = d * s, p = 0, m = 0;
|
|
1459
|
+
for (; m < o.length && p + o[m] < f;) p += o[m], m++;
|
|
1460
|
+
m >= o.length && (m = o.length - 1);
|
|
1461
|
+
let h = e[m], g = e[Math.min(m + 1, e.length - 1)], _ = o[m] || 0, v = _ === 0 ? 0 : (f - p) / _;
|
|
1462
|
+
n({
|
|
1463
|
+
x: h.x + (g.x - h.x) * v,
|
|
1464
|
+
y: h.y + (g.y - h.y) * v,
|
|
1465
|
+
angle: Ee(h, g)
|
|
1466
|
+
}), d < 1 ? a = requestAnimationFrame(c) : r && r();
|
|
1467
|
+
};
|
|
1468
|
+
return a = requestAnimationFrame(c), () => {
|
|
1469
|
+
a && cancelAnimationFrame(a);
|
|
1470
|
+
};
|
|
1471
|
+
}
|
|
1472
|
+
function Xn(e) {
|
|
1473
|
+
return `${e.x},${e.y}`;
|
|
1474
|
+
}
|
|
1475
|
+
var X = /* @__PURE__ */ new WeakMap();
|
|
1476
|
+
//#endregion
|
|
1477
|
+
//#region src/components/Map/framing-rect.ts
|
|
1478
|
+
function Zn() {
|
|
1479
|
+
let e = R.canvasVisibleRectPx;
|
|
1480
|
+
return R.shouldShiftMapRect ? R.rtl ? P.fromMinMax(e.min, {
|
|
1481
|
+
x: e.max.x - R.overlayWidthPx,
|
|
1482
|
+
y: e.max.y
|
|
1483
|
+
}) : P.fromMinMax({
|
|
1484
|
+
x: e.min.x + R.overlayWidthPx,
|
|
1485
|
+
y: e.min.y
|
|
1486
|
+
}, e.max) : e;
|
|
1487
|
+
}
|
|
1488
|
+
//#endregion
|
|
1489
|
+
//#region src/components/Map/with-kiosk.ts
|
|
1490
|
+
function Qn(e) {
|
|
1491
|
+
var t;
|
|
1492
|
+
let n = R.kioskData;
|
|
1493
|
+
return !n || !(!m() || n.z === ((t = L.routeStore.currentRouteLayer) == null ? void 0 : t.name)) ? e : P.fromUnion(e, new P(n.x, n.y, 1, 1));
|
|
1494
|
+
}
|
|
1495
|
+
//#endregion
|
|
1496
|
+
//#region src/journey/external-navigation.ts
|
|
1497
|
+
var $n = (e) => e.legs.find((e) => e.kind === "external");
|
|
1498
|
+
function er({ journey: e, deepLink: t, onExternalNavigation: n }) {
|
|
1499
|
+
let r = $n(e);
|
|
1500
|
+
if (!r || !n) return !1;
|
|
1501
|
+
let i = !1;
|
|
1502
|
+
return n({
|
|
1503
|
+
destination: r.target.geo,
|
|
1504
|
+
context: {
|
|
1505
|
+
originVenue: e.origin.name,
|
|
1506
|
+
destinationVenue: e.destination.name,
|
|
1507
|
+
entrance: r.target.entrance,
|
|
1508
|
+
label: r.target.label
|
|
1509
|
+
},
|
|
1510
|
+
url: r.url,
|
|
1511
|
+
deepLink: t,
|
|
1512
|
+
preventDefault: () => {
|
|
1513
|
+
i = !0;
|
|
1514
|
+
}
|
|
1515
|
+
}), i;
|
|
1516
|
+
}
|
|
1517
|
+
//#endregion
|
|
1518
|
+
//#region src/journey/format-distance.ts
|
|
1519
|
+
var tr = 3.28084, nr = 5280, rr = 1e3, ir = nr / 10, ar = (e) => String(e < 10 ? Math.round(e * 10) / 10 : Math.round(e));
|
|
1520
|
+
function or(e, t) {
|
|
1521
|
+
if (!Number.isFinite(e)) return "";
|
|
1522
|
+
let n = Math.max(0, e);
|
|
1523
|
+
if ((t == null ? void 0 : t.toLowerCase().trim()) === "m") {
|
|
1524
|
+
let e = Math.round(n);
|
|
1525
|
+
return e < rr ? `${e} m` : `${ar(n / rr)} km`;
|
|
1526
|
+
}
|
|
1527
|
+
let r = Math.round(n * tr);
|
|
1528
|
+
return r < ir ? `${r} ft` : `${ar(r / nr)} mi`;
|
|
1529
|
+
}
|
|
1530
|
+
//#endregion
|
|
1531
|
+
//#region src/journey/maps-provider.ts
|
|
1532
|
+
var sr = 6;
|
|
1533
|
+
function cr(e, t) {
|
|
1534
|
+
return i(t) ? t : e.isApplePlatform ? "apple" : "google";
|
|
1535
|
+
}
|
|
1536
|
+
function Z(e) {
|
|
1537
|
+
if (!e) return !1;
|
|
1538
|
+
let { lat: t, lng: n } = e;
|
|
1539
|
+
return Number.isFinite(t) && Number.isFinite(n) && Math.abs(t) <= 90 && Math.abs(n) <= 180 && !(t === 0 && n === 0);
|
|
1540
|
+
}
|
|
1541
|
+
var lr = (e) => String(Number(e.toFixed(sr))), ur = ({ lat: e, lng: t }) => `${lr(e)},${lr(t)}`;
|
|
1542
|
+
function dr(e, t, n) {
|
|
1543
|
+
let r = ur(t), i = Z(n) ? ur(n) : void 0;
|
|
1544
|
+
return e === "apple" ? `https://maps.apple.com/?${i ? `saddr=${i}&` : ""}daddr=${r}` : `https://www.google.com/maps/dir/?api=1&${i ? `origin=${i}&` : ""}destination=${r}`;
|
|
1545
|
+
}
|
|
1546
|
+
//#endregion
|
|
1547
|
+
//#region src/journey/plan-journey.ts
|
|
1548
|
+
var fr = ({ id: e, name: t, placeKind: n }) => ({
|
|
1549
|
+
id: e,
|
|
1550
|
+
name: t,
|
|
1551
|
+
placeKind: n
|
|
1552
|
+
}), pr = ({ kind: e, place: t }) => ({
|
|
1553
|
+
...fr(t),
|
|
1554
|
+
kind: e
|
|
1555
|
+
}), mr = (e) => e && Number.isFinite(e.x) && Number.isFinite(e.y) ? e : void 0;
|
|
1556
|
+
function hr(e, t, n) {
|
|
1557
|
+
var r;
|
|
1558
|
+
let i = mr(t), a, o = Infinity, s = Infinity;
|
|
1559
|
+
for (let t of (r = e.entrances) == null ? [] : r) {
|
|
1560
|
+
if (!Z(t.geo)) continue;
|
|
1561
|
+
let e = i ? I(t.local, i) : 0;
|
|
1562
|
+
if (e > o) continue;
|
|
1563
|
+
let r = Te(n, t.geo);
|
|
1564
|
+
e === o && r >= s || (a = t, o = e, s = r);
|
|
1565
|
+
}
|
|
1566
|
+
return a;
|
|
1567
|
+
}
|
|
1568
|
+
function gr(e, t, n) {
|
|
1569
|
+
var r;
|
|
1570
|
+
return n ? [{
|
|
1571
|
+
kind: e,
|
|
1572
|
+
venue: fr(t),
|
|
1573
|
+
door: n,
|
|
1574
|
+
label: (r = n.name) == null ? t.name : r
|
|
1575
|
+
}] : [];
|
|
1576
|
+
}
|
|
1577
|
+
function _r(e) {
|
|
1578
|
+
var t, n;
|
|
1579
|
+
let { enabled: r, connectivity: i, origin: a, originPoint: o, destination: s, destinationName: c, destinationPoint: l, platform: u, providerOverride: d } = e;
|
|
1580
|
+
if (!r) return {
|
|
1581
|
+
outcome: "none",
|
|
1582
|
+
reason: "disabled"
|
|
1583
|
+
};
|
|
1584
|
+
if (i === "routable") return {
|
|
1585
|
+
outcome: "none",
|
|
1586
|
+
reason: "graph-connected"
|
|
1587
|
+
};
|
|
1588
|
+
if (!a || !s) return {
|
|
1589
|
+
outcome: "none",
|
|
1590
|
+
reason: "place-unknown"
|
|
1591
|
+
};
|
|
1592
|
+
if (a.place.id === s.id && a.place.placeKind === s.placeKind) return {
|
|
1593
|
+
outcome: "none",
|
|
1594
|
+
reason: "same-place"
|
|
1595
|
+
};
|
|
1596
|
+
if (!Z(a.place.geo) || !Z(s.geo)) return {
|
|
1597
|
+
outcome: "no-route",
|
|
1598
|
+
reason: "place-not-geo-anchored"
|
|
1599
|
+
};
|
|
1600
|
+
let f = cr(u, d), p = hr(a.place, o, s.geo), m = (t = p == null ? void 0 : p.geo) == null ? a.place.geo : t, h = hr(s, l, m), g = h ? {
|
|
1601
|
+
geo: h.geo,
|
|
1602
|
+
kind: "venue-entrance",
|
|
1603
|
+
label: (n = h.name) == null ? s.name : n,
|
|
1604
|
+
entrance: h.name
|
|
1605
|
+
} : {
|
|
1606
|
+
geo: s.geo,
|
|
1607
|
+
kind: s.placeKind === "outdoor-poi" ? "outdoor-poi" : "venue-marker",
|
|
1608
|
+
label: s.name
|
|
1609
|
+
}, _ = {
|
|
1610
|
+
kind: "external",
|
|
1611
|
+
target: g,
|
|
1612
|
+
connector: {
|
|
1613
|
+
from: m,
|
|
1614
|
+
to: g.geo,
|
|
1615
|
+
distanceMeters: Te(m, g.geo)
|
|
1616
|
+
},
|
|
1617
|
+
provider: f,
|
|
1618
|
+
url: dr(f, g.geo, a.kind === "live-position" ? void 0 : m)
|
|
1619
|
+
}, v = [
|
|
1620
|
+
...gr("exit", a.place, p),
|
|
1621
|
+
_,
|
|
1622
|
+
...gr("arrival", s, h)
|
|
1623
|
+
];
|
|
1624
|
+
return {
|
|
1625
|
+
outcome: "journey",
|
|
1626
|
+
journey: {
|
|
1627
|
+
origin: pr(a),
|
|
1628
|
+
destination: fr(s),
|
|
1629
|
+
destinationName: c == null ? s.name : c,
|
|
1630
|
+
legs: v
|
|
1631
|
+
}
|
|
1632
|
+
};
|
|
1633
|
+
}
|
|
1634
|
+
//#endregion
|
|
1635
|
+
//#region src/journey/journey-context.ts
|
|
1636
|
+
var vr = (e) => Number.isFinite(e == null ? void 0 : e.x) && Number.isFinite(e == null ? void 0 : e.y) && Number.isFinite(e == null ? void 0 : e.lat) && Number.isFinite(e == null ? void 0 : e.lng);
|
|
1637
|
+
function Q(e, t) {
|
|
1638
|
+
if (!t || !vr(t.p0) || !vr(t.p2)) return;
|
|
1639
|
+
let n = De(e, ...Me(t));
|
|
1640
|
+
return Z(n) ? n : void 0;
|
|
1641
|
+
}
|
|
1642
|
+
function yr(e, t) {
|
|
1643
|
+
var n;
|
|
1644
|
+
return e ? {
|
|
1645
|
+
id: e.id,
|
|
1646
|
+
name: e.name,
|
|
1647
|
+
placeKind: "venue",
|
|
1648
|
+
geo: Q(e.markerPoint, t),
|
|
1649
|
+
entrances: ((n = e.entrances) == null ? [] : n).flatMap((e) => {
|
|
1650
|
+
var n;
|
|
1651
|
+
let r = Q(e.point, t);
|
|
1652
|
+
return r ? [{
|
|
1653
|
+
local: e.point,
|
|
1654
|
+
geo: r,
|
|
1655
|
+
name: e.name,
|
|
1656
|
+
layerName: (n = e.level) == null ? void 0 : n.layer.name
|
|
1657
|
+
}] : [];
|
|
1658
|
+
})
|
|
1659
|
+
} : null;
|
|
1660
|
+
}
|
|
1661
|
+
function br({ hasOrigin: e, hasDestination: t, routed: n, routeLineCount: r }) {
|
|
1662
|
+
return !e || !t || !n ? null : r > 0 ? "routable" : "unreachable";
|
|
1663
|
+
}
|
|
1664
|
+
function xr({ userAgent: e, platform: t, maxTouchPoints: n = 0 }) {
|
|
1665
|
+
let r = /iPhone|iPad|iPod/i.test(e), i = /Mac/i.test(t || e) && n > 1;
|
|
1666
|
+
return { isApplePlatform: r || i };
|
|
1667
|
+
}
|
|
1668
|
+
function Sr() {
|
|
1669
|
+
return xr({
|
|
1670
|
+
userAgent: navigator.userAgent,
|
|
1671
|
+
platform: navigator.platform,
|
|
1672
|
+
maxTouchPoints: navigator.maxTouchPoints
|
|
1673
|
+
});
|
|
1674
|
+
}
|
|
1675
|
+
function Cr(e, t) {
|
|
1676
|
+
let { outdoorPoi: n, point: r } = e;
|
|
1677
|
+
return !n || !r ? null : {
|
|
1678
|
+
id: n.id,
|
|
1679
|
+
name: n.name,
|
|
1680
|
+
placeKind: "outdoor-poi",
|
|
1681
|
+
geo: Q(r, t)
|
|
1682
|
+
};
|
|
1683
|
+
}
|
|
1684
|
+
function wr({ venues: e, gpsConfig: t, enabled: n, platform: r, providerOverride: i }, a, o, s) {
|
|
1685
|
+
let c = (t) => e.hasVenueModel && t ? e.venueOfLayer(t) : null, l = (e) => {
|
|
1686
|
+
var n;
|
|
1687
|
+
return (n = yr(c(e.layerName), t)) == null ? Cr(e, t) : n;
|
|
1688
|
+
}, u = l(a);
|
|
1689
|
+
return _r({
|
|
1690
|
+
enabled: n,
|
|
1691
|
+
connectivity: s,
|
|
1692
|
+
origin: u && {
|
|
1693
|
+
kind: a.kind,
|
|
1694
|
+
place: u
|
|
1695
|
+
},
|
|
1696
|
+
originPoint: a.point,
|
|
1697
|
+
destination: l(o),
|
|
1698
|
+
destinationName: o.name,
|
|
1699
|
+
destinationPoint: o.point,
|
|
1700
|
+
platform: r,
|
|
1701
|
+
providerOverride: i
|
|
1702
|
+
});
|
|
1703
|
+
}
|
|
1704
|
+
//#endregion
|
|
1705
|
+
//#region src/journey/journey-link.ts
|
|
1706
|
+
function Tr(e, t) {
|
|
1707
|
+
let n = new URL(e);
|
|
1708
|
+
return n.search = a({ journey: t }), n.toString();
|
|
1709
|
+
}
|
|
1710
|
+
function Er(e) {
|
|
1711
|
+
var n;
|
|
1712
|
+
return (n = r(t, e).value.journey) == null ? null : n;
|
|
1713
|
+
}
|
|
1714
|
+
function Dr(e, t) {
|
|
1715
|
+
var n;
|
|
1716
|
+
let r = Er(e);
|
|
1717
|
+
return r ? (t.selectRoute((n = r.from) == null ? "" : n, r.to), r) : null;
|
|
1718
|
+
}
|
|
1719
|
+
//#endregion
|
|
1720
|
+
//#region src/journey/journey-stage.ts
|
|
1721
|
+
var Or = (e) => e.legs.map((e) => e.kind), kr = (e) => {
|
|
1722
|
+
var t;
|
|
1723
|
+
return (t = Or(e)[0]) == null ? "external" : t;
|
|
1724
|
+
};
|
|
1725
|
+
function Ar(e, t) {
|
|
1726
|
+
return e.legs.find((e) => e.kind === t && e.kind !== "external");
|
|
1727
|
+
}
|
|
1728
|
+
function jr(e, t, n) {
|
|
1729
|
+
return n === "handoff" ? "external" : t === "external" && Or(e).includes("arrival") ? "arrival" : t;
|
|
1730
|
+
}
|
|
1731
|
+
//#endregion
|
|
1732
|
+
//#region src/store/journey-plan.ts
|
|
1733
|
+
var Mr = (e) => {
|
|
1734
|
+
var t;
|
|
1735
|
+
return e instanceof f ? (t = e.layer) == null ? void 0 : t.name : e == null ? void 0 : e.layer;
|
|
1736
|
+
}, Nr = (e) => {
|
|
1737
|
+
var t;
|
|
1738
|
+
return e instanceof f ? (t = e.rect) == null ? void 0 : t.center : e == null ? void 0 : e;
|
|
1739
|
+
};
|
|
1740
|
+
function Pr(e) {
|
|
1741
|
+
if (!(!(e instanceof f) || !xe(e) || !e.slug)) return {
|
|
1742
|
+
id: e.slug,
|
|
1743
|
+
name: e.name
|
|
1744
|
+
};
|
|
1745
|
+
}
|
|
1746
|
+
function Fr(e) {
|
|
1747
|
+
let t = Mr(e), n = Nr(e), r = Pr(e);
|
|
1748
|
+
return !e || e instanceof f ? {
|
|
1749
|
+
kind: "selected-booth",
|
|
1750
|
+
layerName: t,
|
|
1751
|
+
point: n,
|
|
1752
|
+
outdoorPoi: r
|
|
1753
|
+
} : {
|
|
1754
|
+
kind: e.id === "kiosk-anchor" ? "kiosk-anchor" : "live-position",
|
|
1755
|
+
layerName: t,
|
|
1756
|
+
point: n
|
|
1757
|
+
};
|
|
1758
|
+
}
|
|
1759
|
+
function Ir(e) {
|
|
1760
|
+
return {
|
|
1761
|
+
layerName: Mr(e),
|
|
1762
|
+
name: e == null ? void 0 : e.name,
|
|
1763
|
+
point: Nr(e),
|
|
1764
|
+
outdoorPoi: Pr(e)
|
|
1765
|
+
};
|
|
1766
|
+
}
|
|
1767
|
+
var $ = c.box(null), Lr = (e, t) => e === t || !!e && !!t && e.id === "current-position" && t.id === "current-position";
|
|
1768
|
+
function Rr(e, t) {
|
|
1769
|
+
return [e.request, e.legRoute].some((e) => e && Lr(t == null ? void 0 : t.from, e.from) && (t == null ? void 0 : t.to) === e.to);
|
|
1770
|
+
}
|
|
1771
|
+
function zr() {
|
|
1772
|
+
var e, t;
|
|
1773
|
+
let n = $.get(), r = (e = n == null ? void 0 : n.request) == null ? R.selectedRoute : e, i = n ? "unreachable" : br({
|
|
1774
|
+
hasOrigin: !!(r != null && r.from),
|
|
1775
|
+
hasDestination: !!(r != null && r.to),
|
|
1776
|
+
routed: !!r && L.routeStore.routedRoute === r,
|
|
1777
|
+
routeLineCount: L.routeStore.routeLines.length
|
|
1778
|
+
});
|
|
1779
|
+
return i ? wr({
|
|
1780
|
+
venues: L.venueStore,
|
|
1781
|
+
gpsConfig: (t = we()) == null || (t = t.properties) == null ? void 0 : t.config,
|
|
1782
|
+
enabled: j.crossVenueJourneys === !0,
|
|
1783
|
+
platform: Sr(),
|
|
1784
|
+
providerOverride: j.mapsProvider
|
|
1785
|
+
}, Fr(r == null ? void 0 : r.from), Ir(r == null ? void 0 : r.to), i) : null;
|
|
1786
|
+
}
|
|
1787
|
+
function Br() {
|
|
1788
|
+
let e = zr();
|
|
1789
|
+
return (e == null ? void 0 : e.outcome) === "journey" ? e.journey : null;
|
|
1790
|
+
}
|
|
1791
|
+
function Vr() {
|
|
1792
|
+
var e, t, n;
|
|
1793
|
+
let { from: r, to: i } = (e = (t = (n = $.get()) == null ? void 0 : n.request) == null ? R.selectedRoute : t) == null ? {} : e, a = i instanceof f ? i.slug : void 0;
|
|
1794
|
+
if (!a) return null;
|
|
1795
|
+
let o = r instanceof f ? r.slug : void 0;
|
|
1796
|
+
return o ? {
|
|
1797
|
+
to: a,
|
|
1798
|
+
from: o
|
|
1799
|
+
} : { to: a };
|
|
1800
|
+
}
|
|
1801
|
+
function Hr() {
|
|
1802
|
+
let e = Vr();
|
|
1803
|
+
if (!e) return null;
|
|
1804
|
+
let t = new URL(Tr(R.baseQRCodeUrl, e));
|
|
1805
|
+
return Pe(t.searchParams, R.kioskData), t.toString();
|
|
1806
|
+
}
|
|
1807
|
+
function Ur(e) {
|
|
1808
|
+
var t;
|
|
1809
|
+
return er({
|
|
1810
|
+
journey: e,
|
|
1811
|
+
deepLink: (t = Hr()) == null ? void 0 : t,
|
|
1812
|
+
onExternalNavigation: L.fp.onExternalNavigation
|
|
1813
|
+
});
|
|
1814
|
+
}
|
|
1815
|
+
function Wr(e, t) {
|
|
1816
|
+
let n = $.get(), r = Ar(e, t), i = r == null ? void 0 : r.door;
|
|
1817
|
+
if (!n || !r || !(i != null && i.layerName)) return;
|
|
1818
|
+
let a = Oe({
|
|
1819
|
+
x: i.local.x,
|
|
1820
|
+
y: i.local.y,
|
|
1821
|
+
z: i.layerName
|
|
1822
|
+
}, r.label, je), o = r.kind === "exit" ? new Ae(n.request.from, a) : new Ae(a, n.request.to);
|
|
1823
|
+
$.set({
|
|
1824
|
+
...n,
|
|
1825
|
+
legRoute: o
|
|
1826
|
+
}), L.routeStore.selectRoute(o, !1, !0);
|
|
1827
|
+
}
|
|
1828
|
+
function Gr(e) {
|
|
1829
|
+
let t = R.selectedRoute;
|
|
1830
|
+
if (!t) return;
|
|
1831
|
+
let n = kr(e);
|
|
1832
|
+
$.set({
|
|
1833
|
+
request: t,
|
|
1834
|
+
stage: n,
|
|
1835
|
+
legRoute: null
|
|
1836
|
+
}), Wr(e, n);
|
|
1837
|
+
}
|
|
1838
|
+
var Kr = () => {
|
|
1839
|
+
var e, t;
|
|
1840
|
+
return (e = (t = $.get()) == null ? void 0 : t.stage) == null ? null : e;
|
|
1841
|
+
};
|
|
1842
|
+
function qr(e) {
|
|
1843
|
+
let t = $.get(), n = Br();
|
|
1844
|
+
if (!t || !n) return;
|
|
1845
|
+
let r = jr(n, t.stage, e);
|
|
1846
|
+
r !== t.stage && ($.set({
|
|
1847
|
+
...t,
|
|
1848
|
+
stage: r
|
|
1849
|
+
}), Wr(n, r));
|
|
1850
|
+
}
|
|
1851
|
+
function Jr() {
|
|
1852
|
+
let e = () => {
|
|
1853
|
+
document.visibilityState === "visible" && qr("return");
|
|
1854
|
+
};
|
|
1855
|
+
document.addEventListener("visibilitychange", e), window.addEventListener("focus", e);
|
|
1856
|
+
let t = [u(() => $.get() ? null : Br(), (e) => e && Gr(e), { fireImmediately: !0 }), u(() => R.selectedRoute, (e) => {
|
|
1857
|
+
let t = $.get();
|
|
1858
|
+
t && !Rr(t, e) && $.set(null);
|
|
1859
|
+
})];
|
|
1860
|
+
return () => {
|
|
1861
|
+
document.removeEventListener("visibilitychange", e), window.removeEventListener("focus", e), t.forEach((e) => e()), $.set(null);
|
|
1862
|
+
};
|
|
1863
|
+
}
|
|
1864
|
+
//#endregion
|
|
1865
|
+
export { At as _, Ur as a, Tt as b, Dr as c, Zn as d, Fn as f, an as g, cn as h, Hr as i, or as l, dn as m, Jr as n, Kr as o, Sn as p, Br as r, Or as s, qr as t, Qn as u, Mt as v, Nt as y };
|