@expofp/floorplan 3.3.8 → 3.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/browser/{CookieConsent-DhAS93Nm.js → CookieConsent-BgzFI0o5.js} +8 -8
- package/dist/browser/{Debug-DciNEVl6.js → Debug-DwwZ0jVT.js} +9 -9
- package/dist/browser/{Demo-Dh3K6IRU.js → Demo-Bhv7muKd.js} +9 -9
- package/dist/browser/{Free-BHUzZwj9.js → Free-EaDzP7U5.js} +11 -11
- package/dist/browser/{Gallery-C0nPxxJB.js → Gallery-BFio06PY.js} +10 -10
- package/dist/browser/{GpsLoader-De8VPIEW.js → GpsLoader-BhYirpWa.js} +35 -35
- package/dist/browser/{KioskStore-D1jnGTbv.js → KioskStore-DiTPaFb2.js} +5 -5
- package/dist/browser/MaplibreAdapter-BKj3sK8A.js +35131 -0
- package/dist/browser/{Modal-D8kuOldj.js → Modal-DVY124d5.js} +10 -10
- package/dist/browser/{PermissionNotice-v9vhrWnr.js → PermissionNotice-CrAxf_da.js} +7 -7
- package/dist/browser/{SetKioskMode-D2cDGv9V.js → SetKioskMode-Cj1IbMbn.js} +18 -18
- package/dist/browser/ShowKiosk-CqmJT8yJ.js +26 -0
- package/dist/browser/{TouchHand-hrkQyTE4.js → TouchHand-BdZWU_I1.js} +4 -4
- package/dist/browser/{ViewerMenuPanel-BVfEToAO.js → ViewerMenuPanel-DbVIwrJO.js} +17 -17
- package/dist/browser/{add-debug-secret-listener-CdWQ5IqR.js → add-debug-secret-listener-B8gxDWmn.js} +1 -1
- package/dist/browser/{boolean-editor-D24_ATfB.js → boolean-editor-CIT7g6C5.js} +10 -10
- package/dist/browser/{bootIntercom-DSRi4yws.js → bootIntercom-CcgHFRAw.js} +2 -2
- package/dist/browser/{box-BXDPYk7M.js → box-CydZk4HJ.js} +5 -5
- package/dist/browser/{browser-Dk-lVBqy.js → browser-DlMYMMvJ.js} +2 -2
- package/dist/browser/bundle.json +61 -64
- package/dist/browser/{classnames-DNY5NR54.js → classnames-DmdaKMoa.js} +2 -2
- package/dist/browser/{client-CWN096Nx.js → client-8ygU_jvu.js} +4 -4
- package/dist/browser/{components-D9o158HA.js → components-BgwIl1Lu.js} +2073 -3912
- package/dist/browser/createWayfinding-D9tuHHx5.js +1889 -0
- package/dist/browser/{debug-overlay-DQG-UfZv.js → debug-overlay-Dos3Ate2.js} +11 -11
- package/dist/browser/{debug-ui-yYN-_8G_.js → debug-ui-BjmKfkgV.js} +6 -6
- package/dist/browser/{dist-uPMox8hh.js → dist-B3Y58WKJ.js} +6 -6
- package/dist/browser/{dist-CAs4SFEJ.js → dist-Bm6VKnC2.js} +3 -3
- package/dist/browser/{dist-7_sOACbd.js → dist-_wJOZ0rm.js} +5 -5
- package/dist/browser/{efp-debug-init-Dwp-psKk.js → efp-debug-init-yyCWZRTx.js} +5 -4
- package/dist/browser/{enum-editor-PV_iv0tr.js → enum-editor-D8X_uabc.js} +11 -11
- package/dist/browser/{event-not-found-BjBg31r7.js → event-not-found-Bm_W5xxA.js} +1 -1
- package/dist/browser/{exports-lMrT2XbM.js → exports-DnHrfjiU.js} +1 -1
- package/dist/browser/{favicon-qwrv2N2K.js → favicon-Bnz633J6.js} +1 -1
- package/dist/browser/{fetch-retry.umd-D_06P7tx.js → fetch-retry.umd-BunUcQza.js} +2 -2
- package/dist/browser/{flex-DMyWG2k5.js → flex-DwDJlblp.js} +6 -6
- package/dist/browser/{flex.props-DJYmgUbO.js → flex.props-BAGkFvkN.js} +2 -2
- package/dist/browser/{floorplan.loader-CkEu28br.js → floorplan.loader-B3PUqtqn.js} +30 -31
- package/dist/browser/{floorplan.ready-CL42thhp.js → floorplan.ready-BAnq_GdS.js} +251 -251
- package/dist/browser/{fuse-BrJpK9Lv.js → fuse-Bhsd7fBU.js} +2 -2
- package/dist/browser/{i18n-ST-5I_Xd.js → i18n-C5BBGKZk.js} +5 -5
- package/dist/browser/index.js +13 -13
- package/dist/browser/{jsx-runtime-z-VgZsNI.js → jsx-runtime-Dk2--jeN.js} +2 -2
- package/dist/browser/{lib-resthkmx.js → lib-Brd2BCh_.js} +4 -4
- package/dist/browser/locales/ar.json +0 -1
- package/dist/browser/locales/de.json +0 -1
- package/dist/browser/locales/es.json +0 -1
- package/dist/browser/locales/fr.json +0 -1
- package/dist/browser/locales/he.json +0 -1
- package/dist/browser/locales/it.json +0 -1
- package/dist/browser/locales/kk.json +0 -1
- package/dist/browser/locales/ko.json +0 -1
- package/dist/browser/locales/mn.json +0 -1
- package/dist/browser/locales/nl.json +0 -1
- package/dist/browser/locales/pl.json +0 -1
- package/dist/browser/locales/pt.json +0 -1
- package/dist/browser/locales/ru.json +0 -1
- package/dist/browser/locales/sv.json +0 -1
- package/dist/browser/locales/th.json +0 -1
- package/dist/browser/locales/tr.json +0 -1
- package/dist/browser/locales/uk.json +0 -1
- package/dist/browser/locales/vi.json +0 -1
- package/dist/browser/locales/zh.json +0 -1
- package/dist/browser/{main-BOaUt8eX.js → main-pIcuVUIg.js} +1 -1
- package/dist/browser/{mobx-BGVJo_6r.js → mobx-BfCD0EQ-.js} +4 -4
- package/dist/browser/{particles.min-D3-LD_RC.js → particles.min-ChGMv-bm.js} +2 -2
- package/dist/browser/{prop-types-xS5Y65WT.js → prop-types-xdXFFTmm.js} +2 -2
- package/dist/browser/{react-CDDaD-I1.js → react-BbZc5Oeq.js} +2 -2
- package/dist/browser/{react-dom-B1aPQ40g.js → react-dom-BBDOhlbP.js} +3 -3
- package/dist/browser/{reset-all-settings-DHgz1Ud7.js → reset-all-settings-BQC7zljW.js} +7 -7
- package/dist/browser/{rolldown-runtime-Bb8iYlSJ.js → rolldown-runtime-DS4W77DU.js} +1 -1
- package/dist/browser/{settings-BD9hHBVE.js → settings-CK-qRFM8.js} +2 -2
- package/dist/browser/{settings-item-BMJ0aBEh.js → settings-item-CUnGC7xO.js} +6 -6
- package/dist/browser/{storage-B0mOBJql.js → storage-0QGL3b8S.js} +3 -3
- package/dist/browser/{store-Dyrv6nnP.js → store-Bm4aFC2V.js} +4453 -4897
- package/dist/browser/{string-editor-DoAiUhFX.js → string-editor-BNry84Oh.js} +8 -8
- package/dist/browser/{theme-7rduvM4D.js → theme-BIXywNMw.js} +8 -8
- package/dist/browser/{ui-CgRQk7e0.js → ui-AzubEvGd.js} +8 -8
- package/dist/browser/{useRenderTarget-rq9Hu7Z3.js → useRenderTarget-Bf7cQRFi.js} +4 -4
- package/dist/esm/_misc_to_move/manifest.d.ts +1 -0
- package/dist/esm/components/Controls.js +1 -1
- package/dist/esm/components/Exhibitor.js +1 -1
- package/dist/esm/components/Layout.js +1 -1
- package/dist/esm/components/LevelSelector.js +1 -1
- package/dist/esm/components/LogoOverlay.js +1 -1
- package/dist/esm/components/Map/Map.js +1 -1
- package/dist/esm/components/Map/drawing/config/config-booth-bg.js +1 -1
- package/dist/esm/components/Map/drawing/config/config-booth-border.js +1 -1
- package/dist/esm/components/Map/drawing/config/config-booths.js +1 -1
- package/dist/esm/components/Map/drawing/config/config-load-layer.js +1 -1
- package/dist/esm/components/Map/traffic/useManageTraffic.js +1 -1
- package/dist/esm/components/Maplibre/MaplibreAdapter.d.ts +14 -0
- package/dist/esm/components/Maplibre/MaplibreAdapter.js +1 -0
- package/dist/esm/components/Maplibre/MaplibreWrapper.d.ts +69 -0
- package/dist/esm/components/Maplibre/MaplibreWrapper.js +1 -0
- package/dist/esm/components/Maplibre/useCameraReactions.d.ts +10 -0
- package/dist/esm/components/Maplibre/useCameraReactions.js +1 -0
- package/dist/esm/components/Maplibre/useDimming.d.ts +16 -0
- package/dist/esm/components/Maplibre/useDimming.js +1 -0
- package/dist/esm/components/Maplibre/useLayerVisibilitySync.d.ts +11 -0
- package/dist/esm/components/Maplibre/useLayerVisibilitySync.js +1 -0
- package/dist/esm/components/Maplibre/useRendererEvents.d.ts +9 -0
- package/dist/esm/components/Maplibre/useRendererEvents.js +1 -0
- package/dist/esm/components/Maplibre/useWayfindingAndMarkers.d.ts +8 -0
- package/dist/esm/components/Maplibre/useWayfindingAndMarkers.js +1 -0
- package/dist/esm/components/Maplibre/utils/geo-config.d.ts +30 -0
- package/dist/esm/components/Maplibre/utils/geo-config.js +1 -0
- package/dist/esm/components/Maplibre/utils/layer-defs.d.ts +4 -0
- package/dist/esm/components/Maplibre/utils/layer-defs.js +1 -0
- package/dist/esm/components/Maplibre/utils/map-helpers.d.ts +9 -0
- package/dist/esm/components/Maplibre/utils/map-helpers.js +1 -0
- package/dist/esm/components/Maplibre/utils/solver.d.ts +24 -0
- package/dist/esm/components/Maplibre/utils/solver.js +1 -0
- package/dist/esm/data/Flags.d.ts +1 -0
- package/dist/esm/data/fpGeo.d.ts +20 -1
- package/dist/esm/floorplan.loader.d.ts +1 -0
- package/dist/esm/floorplan.loader.js +1 -1
- package/dist/esm/floorplan.ready.js +1 -1
- package/dist/esm/renderer/RendererService.d.ts +5 -0
- package/dist/esm/renderer/RendererService.js +1 -1
- package/dist/esm/services/routing.js +1 -1
- package/dist/esm/store/MaplibreStore.d.ts +22 -0
- package/dist/esm/store/MaplibreStore.js +1 -0
- package/dist/esm/store/RootStore.d.ts +2 -2
- package/dist/esm/store/RootStore.js +1 -1
- package/dist/esm/store/RouteStore.js +1 -1
- package/dist/esm/store/init/init-booths.js +1 -1
- package/dist/esm/types.d.ts +9 -0
- package/dist/esm/utils/dimming.d.ts +16 -0
- package/dist/esm/utils/dimming.js +1 -0
- package/dist/esm/wayfinding/core/position/gpsThreshold.d.ts +1 -1
- package/package.json +5 -9
- package/dist/browser/Mapbox-CzVyYzjj.js +0 -120
- package/dist/browser/ShowKiosk-DjrDUQUM.js +0 -26
- package/dist/browser/ThreeComponent-CUKVDY94.js +0 -1494
- package/dist/browser/data-ZH4_sxkL.js +0 -27967
- package/dist/browser/vendor/mapbox/mapbox-gl.css +0 -1
- package/dist/esm/components/Mapbox/Button.d.ts +0 -10
- package/dist/esm/components/Mapbox/Button.js +0 -1
- package/dist/esm/components/Mapbox/Dot.d.ts +0 -10
- package/dist/esm/components/Mapbox/Dot.js +0 -1
- package/dist/esm/components/Mapbox/MapLoader.d.ts +0 -4
- package/dist/esm/components/Mapbox/MapLoader.js +0 -1
- package/dist/esm/components/Mapbox/Mapbox.d.ts +0 -4
- package/dist/esm/components/Mapbox/Mapbox.js +0 -1
- package/dist/esm/components/Mapbox/utils/data.d.ts +0 -38
- package/dist/esm/components/Mapbox/utils/data.js +0 -1
- package/dist/esm/components/Threejs/ThreeComponent.d.ts +0 -7
- package/dist/esm/components/Threejs/ThreeComponent.js +0 -1
- package/dist/esm/components/Threejs/UIManager.d.ts +0 -28
- package/dist/esm/components/Threejs/UIManager.js +0 -1
- package/dist/esm/components/Threejs/common/BoothMesh.d.ts +0 -20
- package/dist/esm/components/Threejs/common/BoothMesh.js +0 -1
- package/dist/esm/components/Threejs/common/Scene.d.ts +0 -13
- package/dist/esm/components/Threejs/common/Scene.js +0 -1
- package/dist/esm/components/Threejs/common/SpriteMesh.d.ts +0 -5
- package/dist/esm/components/Threejs/common/SpriteMesh.js +0 -1
- package/dist/esm/components/Threejs/common/dataLoader.d.ts +0 -31
- package/dist/esm/components/Threejs/common/dataLoader.js +0 -1
- package/dist/esm/components/Threejs/common/modelLoader.d.ts +0 -3
- package/dist/esm/components/Threejs/common/modelLoader.js +0 -1
- package/dist/esm/components/Threejs/common/sceneLoader.d.ts +0 -7
- package/dist/esm/components/Threejs/common/sceneLoader.js +0 -1
- package/dist/esm/components/Threejs/index.d.ts +0 -4
- package/dist/esm/components/Threejs/index.js +0 -1
- package/dist/esm/components/Threejs/mapbox/configureWebGLForMapbox.d.ts +0 -2
- package/dist/esm/components/Threejs/mapbox/configureWebGLForMapbox.js +0 -1
- package/dist/esm/components/Threejs/mapbox/index_mapbox.d.ts +0 -4
- package/dist/esm/components/Threejs/mapbox/index_mapbox.js +0 -1
- package/dist/esm/components/Threejs/mapbox/init-mapbox.d.ts +0 -3
- package/dist/esm/components/Threejs/mapbox/init-mapbox.js +0 -1
- package/dist/esm/components/Threejs/utils/canvasFromText.d.ts +0 -2
- package/dist/esm/components/Threejs/utils/canvasFromText.js +0 -1
- package/dist/esm/components/Threejs/utils/textureMerger.d.ts +0 -60
- package/dist/esm/components/Threejs/utils/textureMerger.js +0 -1
- package/dist/esm/store/MapboxStore.d.ts +0 -13
- package/dist/esm/store/MapboxStore.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import{__esDecorate as s,__runInitializers as n}from"tslib";import{action as o,observable as se,computed as he,runInAction as ae}from"mobx";import ne from"../tools/logger";import{isWebGlSupported as ce}from"../utils";import ue,{BoothBase as oe,RegularBooth as de}from"./BoothStore";import me,{Category as Se}from"./CategoryStore";import fe,{Exhibitor as re}from"./ExhibitorStore";import pe from"./CategoryFilterStore";import ge,{EventItem as ke}from"./EventStore";import{SpeakerItem as ve}from"./SpeakerStore";import{GaEventActions as ye}from"../tools/gtag";import h from"../utils/is-mobile";import c from"../utils/is-webview";import _e from"./HeatmapStore";import{resetLocale as be}from"../utils/i18n";import{LANGUAGE_TYPE as we}from"../constants";import xe from"./IntercomStore";import Be,{LayersMode as le}from"./LayerStore";import Ee from"./MapboxStore";import Le from"./RouteStore";import Ce from"./RoutePlannerStore";import Fe from"./ToursStore";import Ie from"./UIState";import Te from"./PoiTypeStore";import{sanitizeSearch as ze}from"../utils/sanitizeText";import Me from"./FuzzySearchEngineStore";import Oe from"./SessionsFilterStore";import Ae from"./SearchStore";import Re from"./SearchButtonsStore";import Pe from"./BookmarksStore";import{URLFilterManager as Ve}from"../services/URLFilterManager";import{ShortcutRegistry as Ge}from"./ShortcutRegistry";import{SessionsShortcutProvider as Ne}from"./providers/SessionsShortcutProvider";import qe from"./SpeakerStore";import je from"./SpeakerFilterStore";import{SpeakerShortcutProvider as Ue}from"./providers/SpeakerShortcutProvider";import{SearchShortcutProvider as We}from"./providers/SearchShortcutProvider";import{RendererService as De}from"../renderer";let He=(()=>{let a=[],u,d=[],m=[],S,f=[],p=[],g,k,v,y,_,b,w,x,B,E,L,C,F,I,T,z,M,O,A,R,P,V,G,N,q,j,U,W,D,H,K,Y,$,J,Q,X,Z,ee,te,ie;return class{static{const t=typeof Symbol=="function"&&Symbol.metadata?Object.create(null):void 0;u=[se],S=[se],g=[o],k=[o],v=[o],y=[o],_=[o],b=[o],w=[o],x=[o],B=[o],E=[o],L=[o],C=[o],F=[o],I=[o],T=[o],z=[o],M=[o],O=[o],A=[o],R=[o],P=[o],V=[o],G=[o],N=[o],q=[o],j=[o],U=[o],W=[o],D=[o],H=[o],K=[o],Y=[o],$=[o],J=[he],Q=[o],X=[o],Z=[o],ee=[o],te=[o],ie=[o],s(this,null,g,{kind:"method",name:"setResetCameraFn",static:!1,private:!1,access:{has:e=>"setResetCameraFn"in e,get:e=>e.setResetCameraFn},metadata:t},null,a),s(this,null,k,{kind:"method",name:"selectExhibitor",static:!1,private:!1,access:{has:e=>"selectExhibitor"in e,get:e=>e.selectExhibitor},metadata:t},null,a),s(this,null,v,{kind:"method",name:"selectBooth",static:!1,private:!1,access:{has:e=>"selectBooth"in e,get:e=>e.selectBooth},metadata:t},null,a),s(this,null,y,{kind:"method",name:"reset",static:!1,private:!1,access:{has:e=>"reset"in e,get:e=>e.reset},metadata:t},null,a),s(this,null,_,{kind:"method",name:"selectNone",static:!1,private:!1,access:{has:e=>"selectNone"in e,get:e=>e.selectNone},metadata:t},null,a),s(this,null,b,{kind:"method",name:"selectBookmarks",static:!1,private:!1,access:{has:e=>"selectBookmarks"in e,get:e=>e.selectBookmarks},metadata:t},null,a),s(this,null,w,{kind:"method",name:"selectVisited",static:!1,private:!1,access:{has:e=>"selectVisited"in e,get:e=>e.selectVisited},metadata:t},null,a),s(this,null,x,{kind:"method",name:"selectLanguage",static:!1,private:!1,access:{has:e=>"selectLanguage"in e,get:e=>e.selectLanguage},metadata:t},null,a),s(this,null,B,{kind:"method",name:"selectCategory",static:!1,private:!1,access:{has:e=>"selectCategory"in e,get:e=>e.selectCategory},metadata:t},null,a),s(this,null,E,{kind:"method",name:"selectEventItem",static:!1,private:!1,access:{has:e=>"selectEventItem"in e,get:e=>e.selectEventItem},metadata:t},null,a),s(this,null,L,{kind:"method",name:"selectSearch",static:!1,private:!1,access:{has:e=>"selectSearch"in e,get:e=>e.selectSearch},metadata:t},null,a),s(this,null,C,{kind:"method",name:"clickBookmarks",static:!1,private:!1,access:{has:e=>"clickBookmarks"in e,get:e=>e.clickBookmarks},metadata:t},null,a),s(this,null,F,{kind:"method",name:"clickVisited",static:!1,private:!1,access:{has:e=>"clickVisited"in e,get:e=>e.clickVisited},metadata:t},null,a),s(this,null,I,{kind:"method",name:"clickLanguage",static:!1,private:!1,access:{has:e=>"clickLanguage"in e,get:e=>e.clickLanguage},metadata:t},null,a),s(this,null,T,{kind:"method",name:"clickCategory",static:!1,private:!1,access:{has:e=>"clickCategory"in e,get:e=>e.clickCategory},metadata:t},null,a),s(this,null,z,{kind:"method",name:"clickSeminars",static:!1,private:!1,access:{has:e=>"clickSeminars"in e,get:e=>e.clickSeminars},metadata:t},null,a),s(this,null,M,{kind:"method",name:"clickBoothInList",static:!1,private:!1,access:{has:e=>"clickBoothInList"in e,get:e=>e.clickBoothInList},metadata:t},null,a),s(this,null,O,{kind:"method",name:"clickBoothInList2",static:!1,private:!1,access:{has:e=>"clickBoothInList2"in e,get:e=>e.clickBoothInList2},metadata:t},null,a),s(this,null,A,{kind:"method",name:"clickBooth",static:!1,private:!1,access:{has:e=>"clickBooth"in e,get:e=>e.clickBooth},metadata:t},null,a),s(this,null,R,{kind:"method",name:"clickExhibitor2",static:!1,private:!1,access:{has:e=>"clickExhibitor2"in e,get:e=>e.clickExhibitor2},metadata:t},null,a),s(this,null,P,{kind:"method",name:"clickExhibitor",static:!1,private:!1,access:{has:e=>"clickExhibitor"in e,get:e=>e.clickExhibitor},metadata:t},null,a),s(this,null,V,{kind:"method",name:"showMap",static:!1,private:!1,access:{has:e=>"showMap"in e,get:e=>e.showMap},metadata:t},null,a),s(this,null,G,{kind:"method",name:"showOverlay",static:!1,private:!1,access:{has:e=>"showOverlay"in e,get:e=>e.showOverlay},metadata:t},null,a),s(this,null,N,{kind:"method",name:"toggleMapOverlay",static:!1,private:!1,access:{has:e=>"toggleMapOverlay"in e,get:e=>e.toggleMapOverlay},metadata:t},null,a),s(this,null,q,{kind:"method",name:"moveToList",static:!1,private:!1,access:{has:e=>"moveToList"in e,get:e=>e.moveToList},metadata:t},null,a),s(this,null,j,{kind:"method",name:"moveToExhibitor",static:!1,private:!1,access:{has:e=>"moveToExhibitor"in e,get:e=>e.moveToExhibitor},metadata:t},null,a),s(this,null,U,{kind:"method",name:"changeActiveListIndex",static:!1,private:!1,access:{has:e=>"changeActiveListIndex"in e,get:e=>e.changeActiveListIndex},metadata:t},null,a),s(this,null,W,{kind:"method",name:"toggleModal",static:!1,private:!1,access:{has:e=>"toggleModal"in e,get:e=>e.toggleModal},metadata:t},null,a),s(this,null,D,{kind:"method",name:"openGallery",static:!1,private:!1,access:{has:e=>"openGallery"in e,get:e=>e.openGallery},metadata:t},null,a),s(this,null,H,{kind:"method",name:"closeGallery",static:!1,private:!1,access:{has:e=>"closeGallery"in e,get:e=>e.closeGallery},metadata:t},null,a),s(this,null,K,{kind:"method",name:"openActiveListItem",static:!1,private:!1,access:{has:e=>"openActiveListItem"in e,get:e=>e.openActiveListItem},metadata:t},null,a),s(this,null,Y,{kind:"method",name:"toggleCategoryFilter",static:!1,private:!1,access:{has:e=>"toggleCategoryFilter"in e,get:e=>e.toggleCategoryFilter},metadata:t},null,a),s(this,null,$,{kind:"method",name:"applyCategoryFilters",static:!1,private:!1,access:{has:e=>"applyCategoryFilters"in e,get:e=>e.applyCategoryFilters},metadata:t},null,a),s(this,null,J,{kind:"getter",name:"filteredExhibitors",static:!1,private:!1,access:{has:e=>"filteredExhibitors"in e,get:e=>e.filteredExhibitors},metadata:t},null,a),s(this,null,Q,{kind:"method",name:"selectSessions",static:!1,private:!1,access:{has:e=>"selectSessions"in e,get:e=>e.selectSessions},metadata:t},null,a),s(this,null,X,{kind:"method",name:"selectExhibitors",static:!1,private:!1,access:{has:e=>"selectExhibitors"in e,get:e=>e.selectExhibitors},metadata:t},null,a),s(this,null,Z,{kind:"method",name:"selectTours",static:!1,private:!1,access:{has:e=>"selectTours"in e,get:e=>e.selectTours},metadata:t},null,a),s(this,null,ee,{kind:"method",name:"selectSpeakers",static:!1,private:!1,access:{has:e=>"selectSpeakers"in e,get:e=>e.selectSpeakers},metadata:t},null,a),s(this,null,te,{kind:"method",name:"selectSpeaker",static:!1,private:!1,access:{has:e=>"selectSpeaker"in e,get:e=>e.selectSpeaker},metadata:t},null,a),s(this,null,ie,{kind:"method",name:"resetFilters",static:!1,private:!1,access:{has:e=>"resetFilters"in e,get:e=>e.resetFilters},metadata:t},null,a),s(null,null,u,{kind:"field",name:"initialized",static:!1,private:!1,access:{has:e=>"initialized"in e,get:e=>e.initialized,set:(e,i)=>{e.initialized=i}},metadata:t},d,m),s(null,null,S,{kind:"field",name:"resetCameraFn",static:!1,private:!1,access:{has:e=>"resetCameraFn"in e,get:e=>e.resetCameraFn,set:(e,i)=>{e.resetCameraFn=i}},metadata:t},f,p),t&&Object.defineProperty(this,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:t})}categoryStore=n(this,a);exhibitorStore;boothStore;uiState;routeStore;routePlannerStore;toursStore;mapboxStore;layerStore;intercomStore;eventStore;poiTypeStore;heatmapStore;fuzzySearchEngineStore;categoryFilterStore;sessionsFilterStore;speakerStore;speakerFilterStore;searchStore;searchButtonsStore;bookmarksStore;urlFilterManager;shortcutRegistry;rendererService=new De;fp;initialized=n(this,d,!1);resetCameraFn=(n(this,m),n(this,f,void 0));setResetCameraFn(t){this.resetCameraFn=t}constructor(){n(this,p),this.categoryStore=new me(this),this.exhibitorStore=new fe(this),this.boothStore=new ue(this),this.routeStore=new Le(this),this.routePlannerStore=new Ce(this),this.toursStore=new Fe(this),this.uiState=new Ie(this),this.mapboxStore=new Ee(this),this.layerStore=new Be,this.intercomStore=new xe,this.eventStore=new ge(this),this.heatmapStore=new _e(this),this.poiTypeStore=new Te(this),this.fuzzySearchEngineStore=new Me(["name","title","fullName","booths.name"]),this.categoryFilterStore=new pe(this),this.sessionsFilterStore=new Oe(this),this.speakerStore=new qe(this),this.speakerFilterStore=new je(this),this.searchStore=new Ae(this),this.searchButtonsStore=new Re(this),this.bookmarksStore=new Pe(this),this.urlFilterManager=new Ve(this),this.shortcutRegistry=new Ge,this.registerShortcutProviders()}selectExhibitor(t,e=!0){this.uiState.hoveredExhibitor=null,this.uiState.details=t;var i=t.booths.filter(l=>l.visible),r=t.booths.filter(l=>!l.visible);!i.length&&r.length&&this.layerStore.updateVisibility(r[0].layer,!0),e&&setTimeout(()=>this.moveToList(t.booths.filter(l=>l.visible)),c||h?500:50)}selectBooth(t,e=!0){let i=Array.isArray(t)?t:[t];this.uiState.details=i[0],i.length===1&&i[0].schedule?.length&&(this.uiState.desiredOverlaySize="medium"),i.length===1&&i[0].layer&&!i[0].visible&&this.layerStore.mode===le.Radio&&this.layerStore.updateVisibility(i[0].layer,!0),e&&setTimeout(()=>this.moveToList(i),c||h?500:50)}reset(){const t=window.__searchi;t&&t.querySelector&&t.querySelector("input[type=search]")&&t.querySelector("input[type=search]").blur&&t.querySelector("input[type=search]").blur(),window.setTimeout(()=>{this.uiState.setKioskModeEnabled||be().then(()=>{ae(()=>{this.selectSearch(""),this.routeStore.defaultFrom&&!this.routeStore.defaultFrom?.visible?this.selectBooth(this.routeStore.defaultFrom):this.uiState.details=null,this.resetCameraFn?.(),this.uiState.menu=!1,this.searchStore.resetSearchBox(),this.searchButtonsStore.clearAllFilters()}),setTimeout(()=>{ae(()=>{this.uiState.inIdle=!0})},100)})},1e3)}selectNone(){window.__resett&&window.__resett(),this.uiState.details=this.uiState.selectedCategory}selectBookmarks(){this.uiState.details=null,this.uiState.list={type:"bookmarks"}}selectVisited(){this.uiState.details=null,this.uiState.list={type:"visited"}}selectLanguage(){this.uiState.details=null,this.uiState.list={type:we}}selectCategory(t){window.__resett&&window.__resett(),this.uiState.details=t,this.uiState.list={type:"category",category:t},this.uiState.desiredOverlaySize="full",t.exhibitors.find(i=>i.booths.find(r=>r.visible))||this.layerStore.updateVisibility(t.exhibitors[0]?.booths[0]?.layer,!0),setTimeout(()=>{this.uiState.moveToBooths=t.exhibitors.filter(i=>i.booths.find(r=>r.visible)).flatMap(i=>i.booths)},200)}selectEventItem(t,e=!0){if(this.uiState.hoveredExhibitor=null,this.uiState.details=t,this.uiState.desiredOverlaySize="medium",t.boothId){const i=this.boothStore.booths.find(r=>r.id===t.boothId);i&&i.layer&&!i.visible&&this.layerStore.mode===le.Radio&&this.layerStore.updateVisibility(i.layer,!0)}e&&setTimeout(()=>{if(t.boothId){const i=this.boothStore.booths.find(r=>r.id===t.boothId);i&&this.moveToList([i])}},c||h?500:50)}selectSearch(t){window.__resett&&window.__resett(),this.uiState.details=null,this.speakerStore.clearSelectedSpeaker(),this.uiState.list={type:"search",text:ze(t,Object.keys(this.uiState.mapSettings).map(e=>`${e}=`)),focused:!1},this.uiState.activeListIndex=-1}clickBookmarks(){window.__resett&&window.__resett(),this.uiState.menu=!1,this.selectBookmarks(),this.moveToList(),this.showMap()}clickVisited(){window.__resett&&window.__resett(),this.uiState.menu=!1,this.selectVisited(),this.moveToList(),this.showMap()}clickLanguage(){window.__resett&&window.__resett(),this.uiState.menu=!1,this.selectLanguage()}clickCategory(t){window.__resett&&window.__resett(),this.uiState.menu=!1,this.selectCategory(t),this.uiState.onCategoryClick&&this.uiState.onCategoryClick({id:t.id,name:t.name,exhibitors:t.exhibitors.map(e=>e.id)}),setTimeout(()=>{this.moveToList(),this.showMap()},100)}clickSeminars(){this.clickCategory(this.categoryStore.seminarsCategory)}clickBoothInList(t){window.__resett&&window.__resett(),this.uiState.hoveredBooth=null,this.selectBooth(t),this.moveToList([t]),this.showMap()}clickBoothInList2(t){window.__resett&&window.__resett(),this.uiState.hoveredBooth=null,this.selectBooth(t,!1),window.setTimeout(()=>{this.moveToList([t]),this.showMap()},navigator.userAgent.toLowerCase().indexOf("android")>-1?400:50)}clickBooth(t){if(this.uiState.menu=!1,this.uiState.list.type==="sessions"&&this.searchStore.selectSearch(),this.uiState.list.type==="speakers"&&this.searchStore.selectSearch(),this.uiState.list.type==="tours"&&this.searchStore.selectSearch(),this.uiState.list.type==="multi-point-tour"&&this.searchStore.selectSearch(),!(this.uiState.selectedRoute?.from&&this.uiState.selectedRoute?.to)){if(this.uiState.selectedRoute?.to&&!this.uiState.selectedRoute?.from&&t){this.routeStore.setStartPoint(t);return}if(t)this.routeStore.tempToBooth=t;else{this.uiState.details=null,this.fp.hidePathways(),this.uiState.list={type:"search",text:"",focused:!1},this.uiState.onBoothClick&&this.uiState.onBoothClick({target:null});return}if(this.uiState.onBoothClick){const e={name:"",description:""},i={target:{...t,layer:t.layer||e}};this.uiState.onBoothClick(i)}t.exhibitors.length===1&&t instanceof de?(this.heatmapStore.forceTrack={action:ye.ViewBooth,label:t.name},this.selectExhibitor(t.exhibitors[0],!1)):this.selectBooth(t,!1),this.showMap()}}clickExhibitor2(t){this.selectExhibitor(t,!0),this.showMap()}clickExhibitor(t){window.setTimeout(()=>{this.clickExhibitor2(t)},navigator.userAgent.toLowerCase().indexOf("android")>-1?400:50)}showMap(){this.uiState.overlayPosition==="bottom"&&ce&&(this.uiState.desiredOverlaySize="medium")}showOverlay(){this.uiState.overlayPosition==="bottom"&&(this.uiState.desiredOverlaySize="full")}toggleMapOverlay(){this.uiState.overlayPosition==="bottom"&&this.uiState.overlaySize==="full"?this.uiState.desiredOverlaySize="medium":this.uiState.overlayPosition==="bottom"&&this.uiState.overlaySize!=="full"&&(this.uiState.desiredOverlaySize="full")}moveToList(t){t=t||this.uiState.listItems;const e=[];t.forEach(i=>{if(i instanceof re)e.push(...i.booths.filter(r=>r.visible));else if(i instanceof oe)i.visible&&e.push(i);else if(i instanceof ke&&i.boothId){const r=this.boothStore.boothById.get(i.boothId);r?.visible&&e.push(r)}else i instanceof ve&&this.speakerStore.getEventsBySpeaker(i.id).forEach(r=>{if(!r.boothId)return;const l=this.boothStore.boothById.get(r.boothId);l?.visible&&e.push(l)})}),this.uiState.moveToBooths=e}moveToExhibitor(t){this.moveToList([t])}changeActiveListIndex(t){let e=this.uiState.activeListIndex+t;e=Math.max(0,Math.min(this.uiState.listItems.length-1,e)),this.uiState.activeListIndex=e}toggleModal(t){this.uiState.modalActive[t]=!this.uiState.modalActive[t]}openGallery(){this.uiState.galleryActive=!0}closeGallery(){this.uiState.galleryActive=!1}openActiveListItem(){const t=this.uiState.listItems[this.uiState.activeListIndex];t&&(ne.log("Opening",t),t instanceof re?this.clickExhibitor(t):t instanceof Se?this.clickCategory(t):t instanceof oe&&this.clickBoothInList2(t))}toggleCategoryFilter(){this.uiState.categoryFilterOpen=!this.uiState.categoryFilterOpen}applyCategoryFilters(t){this.uiState.selectedCategoryFilters=t,this.uiState.categoryFilterOpen=!1}get filteredExhibitors(){return this.uiState.selectedCategoryFilters.length===0?this.exhibitorStore.exhibitors:this.exhibitorStore.exhibitors.filter(t=>this.uiState.selectedCategoryFilters.some(e=>t.categories.some(i=>i.id===e.id)))}selectSessions(){this.uiState.list={type:"sessions",text:"",focused:!1},this.uiState.menu=!1,this.uiState.selectedTrack=null,this.searchButtonsStore.setSubButtonId(null),this.searchButtonsStore.subButtonsEnabled&&this.searchButtonsStore.showSubButtons("sessions"),h&&(this.uiState.desiredOverlaySize="full")}selectExhibitors(){this.uiState.list={type:"exhibitors",text:"",focused:!1},this.uiState.menu=!1,h&&(this.uiState.desiredOverlaySize="full")}selectTours(){this.uiState.list={type:"tours",text:"",focused:!1},this.uiState.menu=!1,h&&(this.uiState.desiredOverlaySize="full")}selectSpeakers(){this.uiState.list={type:"speakers",text:"",focused:!1},this.uiState.menu=!1,h&&(this.uiState.desiredOverlaySize="full")}selectSpeaker(t,e=!0){this.speakerStore.selectSpeaker(t,e)}resetFilters(){this.searchButtonsStore.clearAllFilters()}registerShortcutProviders(){this.shortcutRegistry.register(new Ne(this)),this.shortcutRegistry.register(new Ue(this)),this.shortcutRegistry.register(new We(this))}}})();export default He;
|
|
1
|
+
import{__esDecorate as s,__runInitializers as n}from"tslib";import{action as o,observable as se,computed as he,runInAction as ae}from"mobx";import ne from"../tools/logger";import{isWebGlSupported as ce}from"../utils";import ue,{BoothBase as oe,RegularBooth as de}from"./BoothStore";import me,{Category as Se}from"./CategoryStore";import fe,{Exhibitor as re}from"./ExhibitorStore";import pe from"./CategoryFilterStore";import ge,{EventItem as ke}from"./EventStore";import{SpeakerItem as ve}from"./SpeakerStore";import{GaEventActions as ye}from"../tools/gtag";import h from"../utils/is-mobile";import c from"../utils/is-webview";import _e from"./HeatmapStore";import{resetLocale as be}from"../utils/i18n";import{LANGUAGE_TYPE as we}from"../constants";import xe from"./IntercomStore";import Be,{LayersMode as le}from"./LayerStore";import Ee from"./MaplibreStore";import Le from"./RouteStore";import Ce from"./RoutePlannerStore";import Fe from"./ToursStore";import Ie from"./UIState";import Te from"./PoiTypeStore";import{sanitizeSearch as ze}from"../utils/sanitizeText";import Me from"./FuzzySearchEngineStore";import Oe from"./SessionsFilterStore";import Ae from"./SearchStore";import Re from"./SearchButtonsStore";import Pe from"./BookmarksStore";import{URLFilterManager as Ve}from"../services/URLFilterManager";import{ShortcutRegistry as Ge}from"./ShortcutRegistry";import{SessionsShortcutProvider as Ne}from"./providers/SessionsShortcutProvider";import qe from"./SpeakerStore";import je from"./SpeakerFilterStore";import{SpeakerShortcutProvider as Ue}from"./providers/SpeakerShortcutProvider";import{SearchShortcutProvider as We}from"./providers/SearchShortcutProvider";import{RendererService as De}from"../renderer";let He=(()=>{let a=[],u,d=[],m=[],S,f=[],p=[],g,k,v,y,_,b,w,x,B,E,L,C,F,I,T,z,M,O,A,R,P,V,G,N,q,j,U,W,D,H,K,Y,$,J,Q,X,Z,ee,te,ie;return class{static{const t=typeof Symbol=="function"&&Symbol.metadata?Object.create(null):void 0;u=[se],S=[se],g=[o],k=[o],v=[o],y=[o],_=[o],b=[o],w=[o],x=[o],B=[o],E=[o],L=[o],C=[o],F=[o],I=[o],T=[o],z=[o],M=[o],O=[o],A=[o],R=[o],P=[o],V=[o],G=[o],N=[o],q=[o],j=[o],U=[o],W=[o],D=[o],H=[o],K=[o],Y=[o],$=[o],J=[he],Q=[o],X=[o],Z=[o],ee=[o],te=[o],ie=[o],s(this,null,g,{kind:"method",name:"setResetCameraFn",static:!1,private:!1,access:{has:e=>"setResetCameraFn"in e,get:e=>e.setResetCameraFn},metadata:t},null,a),s(this,null,k,{kind:"method",name:"selectExhibitor",static:!1,private:!1,access:{has:e=>"selectExhibitor"in e,get:e=>e.selectExhibitor},metadata:t},null,a),s(this,null,v,{kind:"method",name:"selectBooth",static:!1,private:!1,access:{has:e=>"selectBooth"in e,get:e=>e.selectBooth},metadata:t},null,a),s(this,null,y,{kind:"method",name:"reset",static:!1,private:!1,access:{has:e=>"reset"in e,get:e=>e.reset},metadata:t},null,a),s(this,null,_,{kind:"method",name:"selectNone",static:!1,private:!1,access:{has:e=>"selectNone"in e,get:e=>e.selectNone},metadata:t},null,a),s(this,null,b,{kind:"method",name:"selectBookmarks",static:!1,private:!1,access:{has:e=>"selectBookmarks"in e,get:e=>e.selectBookmarks},metadata:t},null,a),s(this,null,w,{kind:"method",name:"selectVisited",static:!1,private:!1,access:{has:e=>"selectVisited"in e,get:e=>e.selectVisited},metadata:t},null,a),s(this,null,x,{kind:"method",name:"selectLanguage",static:!1,private:!1,access:{has:e=>"selectLanguage"in e,get:e=>e.selectLanguage},metadata:t},null,a),s(this,null,B,{kind:"method",name:"selectCategory",static:!1,private:!1,access:{has:e=>"selectCategory"in e,get:e=>e.selectCategory},metadata:t},null,a),s(this,null,E,{kind:"method",name:"selectEventItem",static:!1,private:!1,access:{has:e=>"selectEventItem"in e,get:e=>e.selectEventItem},metadata:t},null,a),s(this,null,L,{kind:"method",name:"selectSearch",static:!1,private:!1,access:{has:e=>"selectSearch"in e,get:e=>e.selectSearch},metadata:t},null,a),s(this,null,C,{kind:"method",name:"clickBookmarks",static:!1,private:!1,access:{has:e=>"clickBookmarks"in e,get:e=>e.clickBookmarks},metadata:t},null,a),s(this,null,F,{kind:"method",name:"clickVisited",static:!1,private:!1,access:{has:e=>"clickVisited"in e,get:e=>e.clickVisited},metadata:t},null,a),s(this,null,I,{kind:"method",name:"clickLanguage",static:!1,private:!1,access:{has:e=>"clickLanguage"in e,get:e=>e.clickLanguage},metadata:t},null,a),s(this,null,T,{kind:"method",name:"clickCategory",static:!1,private:!1,access:{has:e=>"clickCategory"in e,get:e=>e.clickCategory},metadata:t},null,a),s(this,null,z,{kind:"method",name:"clickSeminars",static:!1,private:!1,access:{has:e=>"clickSeminars"in e,get:e=>e.clickSeminars},metadata:t},null,a),s(this,null,M,{kind:"method",name:"clickBoothInList",static:!1,private:!1,access:{has:e=>"clickBoothInList"in e,get:e=>e.clickBoothInList},metadata:t},null,a),s(this,null,O,{kind:"method",name:"clickBoothInList2",static:!1,private:!1,access:{has:e=>"clickBoothInList2"in e,get:e=>e.clickBoothInList2},metadata:t},null,a),s(this,null,A,{kind:"method",name:"clickBooth",static:!1,private:!1,access:{has:e=>"clickBooth"in e,get:e=>e.clickBooth},metadata:t},null,a),s(this,null,R,{kind:"method",name:"clickExhibitor2",static:!1,private:!1,access:{has:e=>"clickExhibitor2"in e,get:e=>e.clickExhibitor2},metadata:t},null,a),s(this,null,P,{kind:"method",name:"clickExhibitor",static:!1,private:!1,access:{has:e=>"clickExhibitor"in e,get:e=>e.clickExhibitor},metadata:t},null,a),s(this,null,V,{kind:"method",name:"showMap",static:!1,private:!1,access:{has:e=>"showMap"in e,get:e=>e.showMap},metadata:t},null,a),s(this,null,G,{kind:"method",name:"showOverlay",static:!1,private:!1,access:{has:e=>"showOverlay"in e,get:e=>e.showOverlay},metadata:t},null,a),s(this,null,N,{kind:"method",name:"toggleMapOverlay",static:!1,private:!1,access:{has:e=>"toggleMapOverlay"in e,get:e=>e.toggleMapOverlay},metadata:t},null,a),s(this,null,q,{kind:"method",name:"moveToList",static:!1,private:!1,access:{has:e=>"moveToList"in e,get:e=>e.moveToList},metadata:t},null,a),s(this,null,j,{kind:"method",name:"moveToExhibitor",static:!1,private:!1,access:{has:e=>"moveToExhibitor"in e,get:e=>e.moveToExhibitor},metadata:t},null,a),s(this,null,U,{kind:"method",name:"changeActiveListIndex",static:!1,private:!1,access:{has:e=>"changeActiveListIndex"in e,get:e=>e.changeActiveListIndex},metadata:t},null,a),s(this,null,W,{kind:"method",name:"toggleModal",static:!1,private:!1,access:{has:e=>"toggleModal"in e,get:e=>e.toggleModal},metadata:t},null,a),s(this,null,D,{kind:"method",name:"openGallery",static:!1,private:!1,access:{has:e=>"openGallery"in e,get:e=>e.openGallery},metadata:t},null,a),s(this,null,H,{kind:"method",name:"closeGallery",static:!1,private:!1,access:{has:e=>"closeGallery"in e,get:e=>e.closeGallery},metadata:t},null,a),s(this,null,K,{kind:"method",name:"openActiveListItem",static:!1,private:!1,access:{has:e=>"openActiveListItem"in e,get:e=>e.openActiveListItem},metadata:t},null,a),s(this,null,Y,{kind:"method",name:"toggleCategoryFilter",static:!1,private:!1,access:{has:e=>"toggleCategoryFilter"in e,get:e=>e.toggleCategoryFilter},metadata:t},null,a),s(this,null,$,{kind:"method",name:"applyCategoryFilters",static:!1,private:!1,access:{has:e=>"applyCategoryFilters"in e,get:e=>e.applyCategoryFilters},metadata:t},null,a),s(this,null,J,{kind:"getter",name:"filteredExhibitors",static:!1,private:!1,access:{has:e=>"filteredExhibitors"in e,get:e=>e.filteredExhibitors},metadata:t},null,a),s(this,null,Q,{kind:"method",name:"selectSessions",static:!1,private:!1,access:{has:e=>"selectSessions"in e,get:e=>e.selectSessions},metadata:t},null,a),s(this,null,X,{kind:"method",name:"selectExhibitors",static:!1,private:!1,access:{has:e=>"selectExhibitors"in e,get:e=>e.selectExhibitors},metadata:t},null,a),s(this,null,Z,{kind:"method",name:"selectTours",static:!1,private:!1,access:{has:e=>"selectTours"in e,get:e=>e.selectTours},metadata:t},null,a),s(this,null,ee,{kind:"method",name:"selectSpeakers",static:!1,private:!1,access:{has:e=>"selectSpeakers"in e,get:e=>e.selectSpeakers},metadata:t},null,a),s(this,null,te,{kind:"method",name:"selectSpeaker",static:!1,private:!1,access:{has:e=>"selectSpeaker"in e,get:e=>e.selectSpeaker},metadata:t},null,a),s(this,null,ie,{kind:"method",name:"resetFilters",static:!1,private:!1,access:{has:e=>"resetFilters"in e,get:e=>e.resetFilters},metadata:t},null,a),s(null,null,u,{kind:"field",name:"initialized",static:!1,private:!1,access:{has:e=>"initialized"in e,get:e=>e.initialized,set:(e,i)=>{e.initialized=i}},metadata:t},d,m),s(null,null,S,{kind:"field",name:"resetCameraFn",static:!1,private:!1,access:{has:e=>"resetCameraFn"in e,get:e=>e.resetCameraFn,set:(e,i)=>{e.resetCameraFn=i}},metadata:t},f,p),t&&Object.defineProperty(this,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:t})}categoryStore=n(this,a);exhibitorStore;boothStore;uiState;routeStore;routePlannerStore;toursStore;maplibreStore;layerStore;intercomStore;eventStore;poiTypeStore;heatmapStore;fuzzySearchEngineStore;categoryFilterStore;sessionsFilterStore;speakerStore;speakerFilterStore;searchStore;searchButtonsStore;bookmarksStore;urlFilterManager;shortcutRegistry;rendererService=new De;fp;initialized=n(this,d,!1);resetCameraFn=(n(this,m),n(this,f,void 0));setResetCameraFn(t){this.resetCameraFn=t}constructor(){n(this,p),this.categoryStore=new me(this),this.exhibitorStore=new fe(this),this.boothStore=new ue(this),this.routeStore=new Le(this),this.routePlannerStore=new Ce(this),this.toursStore=new Fe(this),this.uiState=new Ie(this),this.maplibreStore=new Ee(this),this.layerStore=new Be,this.intercomStore=new xe,this.eventStore=new ge(this),this.heatmapStore=new _e(this),this.poiTypeStore=new Te(this),this.fuzzySearchEngineStore=new Me(["name","title","fullName","booths.name"]),this.categoryFilterStore=new pe(this),this.sessionsFilterStore=new Oe(this),this.speakerStore=new qe(this),this.speakerFilterStore=new je(this),this.searchStore=new Ae(this),this.searchButtonsStore=new Re(this),this.bookmarksStore=new Pe(this),this.urlFilterManager=new Ve(this),this.shortcutRegistry=new Ge,this.registerShortcutProviders()}selectExhibitor(t,e=!0){this.uiState.hoveredExhibitor=null,this.uiState.details=t;var i=t.booths.filter(l=>l.visible),r=t.booths.filter(l=>!l.visible);!i.length&&r.length&&this.layerStore.updateVisibility(r[0].layer,!0),e&&setTimeout(()=>this.moveToList(t.booths.filter(l=>l.visible)),c||h?500:50)}selectBooth(t,e=!0){let i=Array.isArray(t)?t:[t];this.uiState.details=i[0],i.length===1&&i[0].schedule?.length&&(this.uiState.desiredOverlaySize="medium"),i.length===1&&i[0].layer&&!i[0].visible&&this.layerStore.mode===le.Radio&&this.layerStore.updateVisibility(i[0].layer,!0),e&&setTimeout(()=>this.moveToList(i),c||h?500:50)}reset(){const t=window.__searchi;t&&t.querySelector&&t.querySelector("input[type=search]")&&t.querySelector("input[type=search]").blur&&t.querySelector("input[type=search]").blur(),window.setTimeout(()=>{this.uiState.setKioskModeEnabled||be().then(()=>{ae(()=>{this.selectSearch(""),this.routeStore.defaultFrom&&!this.routeStore.defaultFrom?.visible?this.selectBooth(this.routeStore.defaultFrom):this.uiState.details=null,this.resetCameraFn?.(),this.uiState.menu=!1,this.searchStore.resetSearchBox(),this.searchButtonsStore.clearAllFilters()}),setTimeout(()=>{ae(()=>{this.uiState.inIdle=!0})},100)})},1e3)}selectNone(){window.__resett&&window.__resett(),this.uiState.details=this.uiState.selectedCategory}selectBookmarks(){this.uiState.details=null,this.uiState.list={type:"bookmarks"}}selectVisited(){this.uiState.details=null,this.uiState.list={type:"visited"}}selectLanguage(){this.uiState.details=null,this.uiState.list={type:we}}selectCategory(t){window.__resett&&window.__resett(),this.uiState.details=t,this.uiState.list={type:"category",category:t},this.uiState.desiredOverlaySize="full",t.exhibitors.find(i=>i.booths.find(r=>r.visible))||this.layerStore.updateVisibility(t.exhibitors[0]?.booths[0]?.layer,!0),setTimeout(()=>{this.uiState.moveToBooths=t.exhibitors.filter(i=>i.booths.find(r=>r.visible)).flatMap(i=>i.booths)},200)}selectEventItem(t,e=!0){if(this.uiState.hoveredExhibitor=null,this.uiState.details=t,this.uiState.desiredOverlaySize="medium",t.boothId){const i=this.boothStore.booths.find(r=>r.id===t.boothId);i&&i.layer&&!i.visible&&this.layerStore.mode===le.Radio&&this.layerStore.updateVisibility(i.layer,!0)}e&&setTimeout(()=>{if(t.boothId){const i=this.boothStore.booths.find(r=>r.id===t.boothId);i&&this.moveToList([i])}},c||h?500:50)}selectSearch(t){window.__resett&&window.__resett(),this.uiState.details=null,this.speakerStore.clearSelectedSpeaker(),this.uiState.list={type:"search",text:ze(t,Object.keys(this.uiState.mapSettings).map(e=>`${e}=`)),focused:!1},this.uiState.activeListIndex=-1}clickBookmarks(){window.__resett&&window.__resett(),this.uiState.menu=!1,this.selectBookmarks(),this.moveToList(),this.showMap()}clickVisited(){window.__resett&&window.__resett(),this.uiState.menu=!1,this.selectVisited(),this.moveToList(),this.showMap()}clickLanguage(){window.__resett&&window.__resett(),this.uiState.menu=!1,this.selectLanguage()}clickCategory(t){window.__resett&&window.__resett(),this.uiState.menu=!1,this.selectCategory(t),this.uiState.onCategoryClick&&this.uiState.onCategoryClick({id:t.id,name:t.name,exhibitors:t.exhibitors.map(e=>e.id)}),setTimeout(()=>{this.moveToList(),this.showMap()},100)}clickSeminars(){this.clickCategory(this.categoryStore.seminarsCategory)}clickBoothInList(t){window.__resett&&window.__resett(),this.uiState.hoveredBooth=null,this.selectBooth(t),this.moveToList([t]),this.showMap()}clickBoothInList2(t){window.__resett&&window.__resett(),this.uiState.hoveredBooth=null,this.selectBooth(t,!1),window.setTimeout(()=>{this.moveToList([t]),this.showMap()},navigator.userAgent.toLowerCase().indexOf("android")>-1?400:50)}clickBooth(t){if(this.uiState.menu=!1,this.uiState.list.type==="sessions"&&this.searchStore.selectSearch(),this.uiState.list.type==="speakers"&&this.searchStore.selectSearch(),this.uiState.list.type==="tours"&&this.searchStore.selectSearch(),this.uiState.list.type==="multi-point-tour"&&this.searchStore.selectSearch(),!(this.uiState.selectedRoute?.from&&this.uiState.selectedRoute?.to)){if(this.uiState.selectedRoute?.to&&!this.uiState.selectedRoute?.from&&t){this.routeStore.setStartPoint(t);return}if(t)this.routeStore.tempToBooth=t;else{this.uiState.details=null,this.fp.hidePathways(),this.uiState.list={type:"search",text:"",focused:!1},this.uiState.onBoothClick&&this.uiState.onBoothClick({target:null});return}if(this.uiState.onBoothClick){const e={name:"",description:""},i={target:{...t,layer:t.layer||e}};this.uiState.onBoothClick(i)}t.exhibitors.length===1&&t instanceof de?(this.heatmapStore.forceTrack={action:ye.ViewBooth,label:t.name},this.selectExhibitor(t.exhibitors[0],!1)):this.selectBooth(t,!1),this.showMap()}}clickExhibitor2(t){this.selectExhibitor(t,!0),this.showMap()}clickExhibitor(t){window.setTimeout(()=>{this.clickExhibitor2(t)},navigator.userAgent.toLowerCase().indexOf("android")>-1?400:50)}showMap(){this.uiState.overlayPosition==="bottom"&&ce&&(this.uiState.desiredOverlaySize="medium")}showOverlay(){this.uiState.overlayPosition==="bottom"&&(this.uiState.desiredOverlaySize="full")}toggleMapOverlay(){this.uiState.overlayPosition==="bottom"&&this.uiState.overlaySize==="full"?this.uiState.desiredOverlaySize="medium":this.uiState.overlayPosition==="bottom"&&this.uiState.overlaySize!=="full"&&(this.uiState.desiredOverlaySize="full")}moveToList(t){t=t||this.uiState.listItems;const e=[];t.forEach(i=>{if(i instanceof re)e.push(...i.booths.filter(r=>r.visible));else if(i instanceof oe)i.visible&&e.push(i);else if(i instanceof ke&&i.boothId){const r=this.boothStore.boothById.get(i.boothId);r?.visible&&e.push(r)}else i instanceof ve&&this.speakerStore.getEventsBySpeaker(i.id).forEach(r=>{if(!r.boothId)return;const l=this.boothStore.boothById.get(r.boothId);l?.visible&&e.push(l)})}),this.uiState.moveToBooths=e}moveToExhibitor(t){this.moveToList([t])}changeActiveListIndex(t){let e=this.uiState.activeListIndex+t;e=Math.max(0,Math.min(this.uiState.listItems.length-1,e)),this.uiState.activeListIndex=e}toggleModal(t){this.uiState.modalActive[t]=!this.uiState.modalActive[t]}openGallery(){this.uiState.galleryActive=!0}closeGallery(){this.uiState.galleryActive=!1}openActiveListItem(){const t=this.uiState.listItems[this.uiState.activeListIndex];t&&(ne.log("Opening",t),t instanceof re?this.clickExhibitor(t):t instanceof Se?this.clickCategory(t):t instanceof oe&&this.clickBoothInList2(t))}toggleCategoryFilter(){this.uiState.categoryFilterOpen=!this.uiState.categoryFilterOpen}applyCategoryFilters(t){this.uiState.selectedCategoryFilters=t,this.uiState.categoryFilterOpen=!1}get filteredExhibitors(){return this.uiState.selectedCategoryFilters.length===0?this.exhibitorStore.exhibitors:this.exhibitorStore.exhibitors.filter(t=>this.uiState.selectedCategoryFilters.some(e=>t.categories.some(i=>i.id===e.id)))}selectSessions(){this.uiState.list={type:"sessions",text:"",focused:!1},this.uiState.menu=!1,this.uiState.selectedTrack=null,this.searchButtonsStore.setSubButtonId(null),this.searchButtonsStore.subButtonsEnabled&&this.searchButtonsStore.showSubButtons("sessions"),h&&(this.uiState.desiredOverlaySize="full")}selectExhibitors(){this.uiState.list={type:"exhibitors",text:"",focused:!1},this.uiState.menu=!1,h&&(this.uiState.desiredOverlaySize="full")}selectTours(){this.uiState.list={type:"tours",text:"",focused:!1},this.uiState.menu=!1,h&&(this.uiState.desiredOverlaySize="full")}selectSpeakers(){this.uiState.list={type:"speakers",text:"",focused:!1},this.uiState.menu=!1,h&&(this.uiState.desiredOverlaySize="full")}selectSpeaker(t,e=!0){this.speakerStore.selectSpeaker(t,e)}resetFilters(){this.searchButtonsStore.clearAllFilters()}registerShortcutProviders(){this.shortcutRegistry.register(new Ne(this)),this.shortcutRegistry.register(new Ue(this)),this.shortcutRegistry.register(new We(this))}}})();export default He;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{__esDecorate as i,__runInitializers as r}from"tslib";import{action as m,computed as x,observable as d}from"mobx";import{Point as Ke,lineLength as Oe}from"simple-geometry";import n,{boothStore as Xe,layersStore as T}from".";import{fpGeo as E}from"../data/fpGeo";import z from"../core/Rect";import{GaEventActions as He,sendEventToGa as Je}from"../tools/gtag";import{convertGpsToLocal as Ue,isValidPointCoords as Ne,calculateRelativeBearing as Qe}from"../utils/gps";import{getLayerSvg as et,svgArea as k}from"../data/svg";import{createWayfindingEngine as tt}from"../wayfinding/core";import{boothToEndpoint as Ze,graphDataSource as qe}from"../wayfinding/adapters";import{LayersMode as st}from"./LayerStore";import{uiState as y}from"./index";import{calcSpeed as $e}from"../utils/calcSpeed";import{calcTravelTime as Ve}from"../utils/calcTravelTime";import{DEFAULT_UNITS as je,ORIENTATION_GRANTED_KEY as at}from"../constants";import{areLayersEnabled as it}from"../utils/areLayersEnabled";import{shouldReroute as rt}from"../wayfinding/core";import{findBoothInRadius as nt}from"../wayfinding/utils/findBoothInRadius";import P from"../data";import We from"../tools/logger";const b=a=>typeof a=="string"?Number(a.replace(",",".")):a;let ot=(()=>{let a=[],o,l=[],f=[],h,S=[],L=[],D,I=[],w=[],A,M=[],C=[],B,F=[],G=[],O,U=[],N=[],Z,q=[],$=[],V,j=[],W=[],Y,K=[],X=[],H,J=[],Q=[],ee,te=[],se=[],ae,ie=[],re=[],ne,oe=[],le=[],ce,ue=[],de=[],fe,me,he,pe,_e,ge,ye,ke,be,ve,xe,Re,Se,Le=[],Te=[],Ee,ze,Pe,De,Ie,we,Ae=[],Me=[],Ce,Be,Fe;return class{static{const t=typeof Symbol=="function"&&Symbol.metadata?Object.create(null):void 0;o=[d],h=[d],D=[d],A=[d],B=[d],O=[d],Z=[d],V=[d],Y=[d],H=[d],ee=[d],ae=[d],ne=[d],ce=[d],fe=[x],me=[m],he=[m],pe=[x({keepAlive:!0})],_e=[x({keepAlive:!0})],ge=[m],ye=[m],ke=[x({keepAlive:!0})],be=[x({keepAlive:!0})],ve=[m],xe=[m],Re=[m],Se=[d],Ee=[x],ze=[m],Pe=[m],De=[m],Ie=[m],we=[d],Ce=[m],Be=[x({keepAlive:!0})],Fe=[m],i(this,null,fe,{kind:"getter",name:"canFindLocation",static:!1,private:!1,access:{has:e=>"canFindLocation"in e,get:e=>e.canFindLocation},metadata:t},null,a),i(this,null,me,{kind:"method",name:"selectRoute",static:!1,private:!1,access:{has:e=>"selectRoute"in e,get:e=>e.selectRoute},metadata:t},null,a),i(this,null,he,{kind:"method",name:"setStartPoint",static:!1,private:!1,access:{has:e=>"setStartPoint"in e,get:e=>e.setStartPoint},metadata:t},null,a),i(this,null,pe,{kind:"getter",name:"pathLayers",static:!1,private:!1,access:{has:e=>"pathLayers"in e,get:e=>e.pathLayers},metadata:t},null,a),i(this,null,_e,{kind:"getter",name:"nearestBooth",static:!1,private:!1,access:{has:e=>"nearestBooth"in e,get:e=>e.nearestBooth},metadata:t},null,a),i(this,null,ge,{kind:"method",name:"setMarkers",static:!1,private:!1,access:{has:e=>"setMarkers"in e,get:e=>e.setMarkers},metadata:t},null,a),i(this,null,ye,{kind:"method",name:"selectMarker",static:!1,private:!1,access:{has:e=>"selectMarker"in e,get:e=>e.selectMarker},metadata:t},null,a),i(this,null,ke,{kind:"getter",name:"selectedMarkers",static:!1,private:!1,access:{has:e=>"selectedMarkers"in e,get:e=>e.selectedMarkers},metadata:t},null,a),i(this,null,be,{kind:"getter",name:"layers",static:!1,private:!1,access:{has:e=>"layers"in e,get:e=>e.layers},metadata:t},null,a),i(this,null,ve,{kind:"method",name:"clickRoute",static:!1,private:!1,access:{has:e=>"clickRoute"in e,get:e=>e.clickRoute},metadata:t},null,a),i(this,null,xe,{kind:"method",name:"selectCurrentPosition",static:!1,private:!1,access:{has:e=>"selectCurrentPosition"in e,get:e=>e.selectCurrentPosition},metadata:t},null,a),i(this,null,Re,{kind:"method",name:"findLocation",static:!1,private:!1,access:{has:e=>"findLocation"in e,get:e=>e.findLocation},metadata:t},null,a),i(this,null,Ee,{kind:"getter",name:"routeInfo",static:!1,private:!1,access:{has:e=>"routeInfo"in e,get:e=>e.routeInfo},metadata:t},null,a),i(this,null,ze,{kind:"method",name:"updateRoute",static:!1,private:!1,access:{has:e=>"updateRoute"in e,get:e=>e.updateRoute},metadata:t},null,a),i(this,null,Pe,{kind:"method",name:"updateRouteDistance",static:!1,private:!1,access:{has:e=>"updateRouteDistance"in e,get:e=>e.updateRouteDistance},metadata:t},null,a),i(this,null,De,{kind:"method",name:"updateRoutePoints",static:!1,private:!1,access:{has:e=>"updateRoutePoints"in e,get:e=>e.updateRoutePoints},metadata:t},null,a),i(this,null,Ie,{kind:"method",name:"checkRoutes",static:!1,private:!1,access:{has:e=>"checkRoutes"in e,get:e=>e.checkRoutes},metadata:t},null,a),i(this,null,Ce,{kind:"method",name:"setGpsTrackingEnabled",static:!1,private:!1,access:{has:e=>"setGpsTrackingEnabled"in e,get:e=>e.setGpsTrackingEnabled},metadata:t},null,a),i(this,null,Be,{kind:"getter",name:"gpsEnabled",static:!1,private:!1,access:{has:e=>"gpsEnabled"in e,get:e=>e.gpsEnabled},metadata:t},null,a),i(this,null,Fe,{kind:"method",name:"setOnlyAccessible",static:!1,private:!1,access:{has:e=>"setOnlyAccessible"in e,get:e=>e.setOnlyAccessible},metadata:t},null,a),i(null,null,o,{kind:"field",name:"routeLines",static:!1,private:!1,access:{has:e=>"routeLines"in e,get:e=>e.routeLines,set:(e,s)=>{e.routeLines=s}},metadata:t},l,f),i(null,null,h,{kind:"field",name:"routeDistance",static:!1,private:!1,access:{has:e=>"routeDistance"in e,get:e=>e.routeDistance,set:(e,s)=>{e.routeDistance=s}},metadata:t},S,L),i(null,null,D,{kind:"field",name:"currentPosition",static:!1,private:!1,access:{has:e=>"currentPosition"in e,get:e=>e.currentPosition,set:(e,s)=>{e.currentPosition=s}},metadata:t},I,w),i(null,null,A,{kind:"field",name:"requestCompass",static:!1,private:!1,access:{has:e=>"requestCompass"in e,get:e=>e.requestCompass,set:(e,s)=>{e.requestCompass=s}},metadata:t},M,C),i(null,null,B,{kind:"field",name:"iconType",static:!1,private:!1,access:{has:e=>"iconType"in e,get:e=>e.iconType,set:(e,s)=>{e.iconType=s}},metadata:t},F,G),i(null,null,O,{kind:"field",name:"tempToBooth",static:!1,private:!1,access:{has:e=>"tempToBooth"in e,get:e=>e.tempToBooth,set:(e,s)=>{e.tempToBooth=s}},metadata:t},U,N),i(null,null,Z,{kind:"field",name:"defaultFrom",static:!1,private:!1,access:{has:e=>"defaultFrom"in e,get:e=>e.defaultFrom,set:(e,s)=>{e.defaultFrom=s}},metadata:t},q,$),i(null,null,V,{kind:"field",name:"focusEnabled",static:!1,private:!1,access:{has:e=>"focusEnabled"in e,get:e=>e.focusEnabled,set:(e,s)=>{e.focusEnabled=s}},metadata:t},j,W),i(null,null,Y,{kind:"field",name:"prevZ",static:!1,private:!1,access:{has:e=>"prevZ"in e,get:e=>e.prevZ,set:(e,s)=>{e.prevZ=s}},metadata:t},K,X),i(null,null,H,{kind:"field",name:"markersData",static:!1,private:!1,access:{has:e=>"markersData"in e,get:e=>e.markersData,set:(e,s)=>{e.markersData=s}},metadata:t},J,Q),i(null,null,ee,{kind:"field",name:"prevMarkers",static:!1,private:!1,access:{has:e=>"prevMarkers"in e,get:e=>e.prevMarkers,set:(e,s)=>{e.prevMarkers=s}},metadata:t},te,se),i(null,null,ae,{kind:"field",name:"showAccessible",static:!1,private:!1,access:{has:e=>"showAccessible"in e,get:e=>e.showAccessible,set:(e,s)=>{e.showAccessible=s}},metadata:t},ie,re),i(null,null,ne,{kind:"field",name:"onlyAccessible",static:!1,private:!1,access:{has:e=>"onlyAccessible"in e,get:e=>e.onlyAccessible,set:(e,s)=>{e.onlyAccessible=s}},metadata:t},oe,le),i(null,null,ce,{kind:"field",name:"currentRouteLayer",static:!1,private:!1,access:{has:e=>"currentRouteLayer"in e,get:e=>e.currentRouteLayer,set:(e,s)=>{e.currentRouteLayer=s}},metadata:t},ue,de),i(null,null,Se,{kind:"field",name:"routeUnits",static:!1,private:!1,access:{has:e=>"routeUnits"in e,get:e=>e.routeUnits,set:(e,s)=>{e.routeUnits=s}},metadata:t},Le,Te),i(null,null,we,{kind:"field",name:"isGpsTrackingEnabled",static:!1,private:!1,access:{has:e=>"isGpsTrackingEnabled"in e,get:e=>e.isGpsTrackingEnabled,set:(e,s)=>{e.isGpsTrackingEnabled=s}},metadata:t},Ae,Me),t&&Object.defineProperty(this,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:t})}rootStore=r(this,a);cpTimeout;routeLines=r(this,l,[]);routeDistance=(r(this,f),r(this,S,null));currentPosition=(r(this,L),r(this,I,null));requestCompass=(r(this,w),r(this,M,!1));iconType=(r(this,C),r(this,F,0));tempToBooth=(r(this,G),r(this,U,null));defaultFrom=(r(this,N),r(this,q,null));focusEnabled=(r(this,$),r(this,j,!0));prevZ=(r(this,W),r(this,K,null));markersData=(r(this,X),r(this,J,{icons:[],markers:[]}));prevMarkers=(r(this,Q),r(this,te,[]));showAccessible=(r(this,se),r(this,ie,!!qe.getLines().find(t=>t.unaccessible)));onlyAccessible=(r(this,re),r(this,oe,!1));currentRouteLayer=(r(this,le),r(this,ue,null));constructor(t){r(this,Me),this.rootStore=t,this.focusEnabled=!window.location.search}get canFindLocation(){return!!this.defaultFrom||!!this.currentPosition}selectRoute(t,e=!0){e&&(y.list={type:"search",text:"",focused:!1}),!t?.from&&t?.to&&this.currentPosition&&(t.from=this.nearestBooth),t?.from&&t?.to&&t.from===t.to&&(t=null);let s=[];t?.from&&t?.to&&window.setTimeout(()=>{this.rootStore.showMap()},navigator.userAgent.toLowerCase().indexOf("android")>-1?400:50),t?.from?.visible&&s.push(t.from),t?.to?.visible&&(this.tempToBooth=null,s.push(t.to)),!t&&n.fp.onDirection&&n.fp.onDirection(null),setTimeout(()=>{this.rootStore.moveToList(s),y.details=t,t&&(!t.from||!t.to)&&n.showOverlay(),t?.to&&t?.from?.layer&&this.rootStore.layerStore.updateVisibility(t.from.layer,!0),!this.currentRouteLayer&&t?.from?.layer&&(this.currentRouteLayer=t?.from?.layer),e&&t?.from&&t?.to&&Je(He.ClickDirections,`${t?.from?"From "+t.from.name:""} ${t?.to?"To "+t.to.name:""}`)},200)}setStartPoint(t){const e=y.selectedRoute;if(e?.to&&!e?.from&&t){const s=new Route(t,e.to,e.waypoints);this.selectRoute(s)}}get pathLayers(){return n.routeStore.routeLines?.map(t=>t.p0.layer)?.filter((t,e,s)=>s.indexOf(t)===e).reverse().map((t,e)=>({id:e+1,layer:n.layerStore.findLayer(t)}))}get nearestBooth(){return this.getNearestBooth(this.currentPosition)}getNearestBooth(t){if(!t)return null;let e=this.rootStore.layerStore.findLayer(t.z);const s=t.lat&&t.lng?Ue(t,E.properties.config):t;return this.rootStore.boothStore.booths.filter(c=>T.mode===st.Default||!e?c.visible&&c.rect:c.rect&&(typeof t.z!="number"&&!t.z&&c.visible||e.name===c.layer?.name)).sort((c,u)=>Oe(s,{x:c.rect.cx,y:c.rect.cy})-Oe(s,{x:u.rect.cx,y:u.rect.cy}))[0]||null}setMarkers(t){this.markersData.markers=(t?.markers??[]).map(lt),this.markersData.icons=t?.icons??[]}selectMarker(t,e){const s=this.markersData.markers.find(u=>u.id===t);this.markersData.markers.forEach(u=>u.active=!1),s&&(s.active=!0);let c=n.layerStore.findLayer(s?.z);if(e&&s){const u=n.rendererService.renderer;return c&&!c?.visible&&T.updateVisibility(c,!0),u?u.controls.panTo(s.x,s.y):(We.warn("Renderer is not initialized. Cannot pan to marker."),Promise.resolve())}return Promise.resolve()}get selectedMarkers(){return this.markersData.markers.filter(t=>t.active)}get layers(){var t=[];return n.routeStore.routeLines?.map(e=>e.p0.layer).reverse().forEach(e=>{t.indexOf(e)===-1&&t.push(e)}),t.map(e=>n.layerStore.layers.find(s=>s.name===e))}clickRoute(t,e){window.__resett&&window.__resett(),this.rootStore.uiState.menu=null,y.list.type==="route-planner"&&(y.list={type:"search",text:"",focused:!1}),this.selectRoute(new Route(this.defaultFrom||t,e))}selectCurrentPosition(t,e=!0,s){clearTimeout(this.cpTimeout),t&&(t.x=b(t.x),t.y=b(t.y),t.lat=b(t.lat),t.lng=b(t.lng),it()||(t.z=null));const c=e&&this.rootStore.uiState.details&&!(this.rootStore.uiState.details instanceof Route),u=e&&!c&&(this.focusEnabled||this.prevZ!=t?.z);this.focusEnabled&&(this.focusEnabled=!1),this.prevZ=t?.z?.toString(),this.iconType=s?1:0;const _=t?ct(t):null;if(!_){this.currentPosition=null;return}const p=n.layerStore.findLayer(t.z),g=new CurrentPosition(_.x,_.y,p?.name||this.currentRouteLayer?.name,Qe(_),t.lat,t.lng),R=y.selectedRoute;let Ge=!this.routeLines?.length;if(p&&this.routeLines?.length&&(Ge=!!this.routeLines.find(v=>v.p0.layer===p.name||v.p1.layer===p.name)),u&&Ge){const v=n.rendererService.renderer;if(p&&!p?.visible&&T.updateVisibility(p,!0),!v){We.warn("Renderer is not initialized. Cannot pan to current position.");return}v.controls.panTo(g.x,g.y)}const Ye=(P.flags?.enableExperimentalRerouting||E?.properties?.config?.enableExperimentalRerouting)&&rt(g,this.routeLines)&&!!nt(g,Xe.booths,[R?.to]);if(e&&R&&Ye){const v=n.routeStore.getNearestBooth(g);n.routeStore.selectRoute(new Route(v,R?.to),!1)}this.currentPosition=g,this.gpsEnabled||(this.cpTimeout=setTimeout(()=>{this.currentPosition&&this.selectCurrentPosition(null,!1)},30*1e3))}findLocation(){if(this.canFindLocation){if(n.mapboxStore.showMapbox){y.moveToLocation=!0;return}if(n.routeStore.currentPosition){const t=n.routeStore.currentPosition,e=z.fromCxcywh(t.x,t.y,100,100);let s;if(e.intersects(k))s=e;else{const _=Math.max(k.x1,Math.min(t.x,k.x2)),p=Math.max(k.y1,Math.min(t.y,k.y2)),g=Math.min(k.w,k.h)*.3,R=z.fromCxcywh(_,p,g,g).getIntersection(k);s=z.fromMultiple([e,R])}localStorage.getItem(at)==="false"&&(n.routeStore.requestCompass=!0),y.moveToRect=s;const u=n.layerStore.findLayer(n.routeStore.currentPosition?.z);u&&T.updateVisibility(u,!0)}else n.selectBooth(n.routeStore.defaultFrom)}}routeUnits=(r(this,de),r(this,Le,je));get routeInfo(){const t=this.routeDistance,e=this.routeUnits;return t?{distance:`${t}${e}`,units:e,time:Ve(t,$e(e))}:null}updateRoute(t,e){!t?.length&&!this.routeLines.length||(this.routeLines=t,this.updateRoutePoints())}updateRouteDistance(t){if(t==null)return;const e=et(),s=(e.getAttribute("units")||je).toLowerCase?.().trim(),c=e.getAttribute("fp-ver")?.startsWith("5")??!1;this.routeDistance=Math.round(t/(c?1:10)),this.routeUnits=s,this.updateRoutePoints()}updateRoutePoints(){const t=y.selectedRoute,e=this.routeDistance,s=this.routeUnits;n.fp.onDirection&&setTimeout(()=>{n.fp.onDirection({from:t?.from?{id:t.from.id,name:t.from.name,externalId:t.from.externalId,layer:{name:t.from?.layer?.name,description:t.from?.layer?.description}}:null,to:t?.to?{id:t.to.id,name:t.to.name,externalId:t.to.externalId,layer:{name:t.to.layer?.name,description:t.to.layer?.description}}:null,lines:this.routeLines,distance:`${e}${s}`,units:s,time:Ve(e,$e(s))})},200)}checkRoutes(){const t=tt(qe),e=n.boothStore.booths;console.info(`Route check started ${e.length}.... `);for(let s=0;s<e.length;s++){const c=e[s];for(let u=s+1;u<e.length;u++){const _=e[u];t.buildRoute(Ze(c),Ze(_)).lines.length||console.warn(`No route found from ${c.name} to ${_.name}`)}}console.info("Route check done....")}isGpsTrackingEnabled=(r(this,Te),r(this,Ae,!0));setGpsTrackingEnabled(t){this.isGpsTrackingEnabled=t}get gpsEnabled(){return P.autoTrackingGps&&this.isGpsTrackingEnabled&&!P.enableIPS}setOnlyAccessible(t){this.onlyAccessible=t}}})();export default ot;function lt(a){return{...a,x:b(a.x),y:b(a.y),lat:b(a.lat),lng:b(a.lng)}}function ct(a){let o=null,l=null;return E&&(o=E.properties.config),o&&a.x>=o.p0.x&&a.x<=o.p2.x&&a.y>=o.p0.y&&a.y<=o.p2.y?l={...a}:o&&Ne(a.lat)&&Ne(a.lng)?l=Ue(a,o):o||(l=a),l||null}export function findBooth(a){return n.boothStore.findBooth(a)||n.exhibitorStore.findExhibitor(a)?.booths[0]}export function findEntityByExternalId(a){const o=n.boothStore.boothByExternalId.get(a);if(o)return{type:"booth",entity:o};const l=n.exhibitorStore.exhibitorByExternalId.get(a);if(l)return{type:"exhibitor",entity:l}}export function separateExternalIds(a){const o=[],l=[];for(const f of a){const h=findEntityByExternalId(f);h&&(h.type==="booth"?o.push(f):l.push(f))}return{boothExternalIds:o,exhibitorExternalIds:l}}export function extractRoute(a,o,l){return new Route(findBooth(a)??n.routeStore.defaultFrom??null,findBooth(o),l?.map(f=>findBooth(f)))}export class Route{from;to;waypoints;constructor(o,l,f){this.from=o,this.to=l,this.waypoints=f,this.waypoints=f?.filter(h=>h&&h.id!==o?.id&&h.id!==l?.id)}}export class CurrentPosition extends Ke{x;y;z;angle;lat;lng;constructor(o,l,f,h,S,L){super(o,l),this.x=o,this.y=l,this.z=f,this.angle=h,this.lat=S,this.lng=L}}
|
|
1
|
+
import{__esDecorate as i,__runInitializers as r}from"tslib";import{action as m,computed as x,observable as d}from"mobx";import{Point as Ke,lineLength as Oe}from"simple-geometry";import n,{boothStore as Xe,layersStore as T}from".";import{fpGeo as E}from"../data/fpGeo";import z from"../core/Rect";import{GaEventActions as He,sendEventToGa as Je}from"../tools/gtag";import{convertGpsToLocal as Ue,isValidPointCoords as Ne,calculateRelativeBearing as Qe}from"../utils/gps";import{getLayerSvg as et,svgArea as k}from"../data/svg";import{createWayfindingEngine as tt}from"../wayfinding/core";import{boothToEndpoint as Ze,graphDataSource as qe}from"../wayfinding/adapters";import{LayersMode as st}from"./LayerStore";import{uiState as y}from"./index";import{calcSpeed as $e}from"../utils/calcSpeed";import{calcTravelTime as Ve}from"../utils/calcTravelTime";import{DEFAULT_UNITS as je,ORIENTATION_GRANTED_KEY as at}from"../constants";import{areLayersEnabled as it}from"../utils/areLayersEnabled";import{shouldReroute as rt}from"../wayfinding/core";import{findBoothInRadius as nt}from"../wayfinding/utils/findBoothInRadius";import P from"../data";import We from"../tools/logger";const b=a=>typeof a=="string"?Number(a.replace(",",".")):a;let ot=(()=>{let a=[],o,l=[],f=[],h,S=[],L=[],D,I=[],w=[],A,M=[],C=[],B,F=[],G=[],O,U=[],N=[],Z,q=[],$=[],V,j=[],W=[],Y,K=[],X=[],H,J=[],Q=[],ee,te=[],se=[],ae,ie=[],re=[],ne,oe=[],le=[],ce,ue=[],de=[],fe,me,he,pe,_e,ge,ye,ke,be,ve,xe,Re,Se,Le=[],Te=[],Ee,ze,Pe,De,Ie,we,Ae=[],Me=[],Ce,Be,Fe;return class{static{const t=typeof Symbol=="function"&&Symbol.metadata?Object.create(null):void 0;o=[d],h=[d],D=[d],A=[d],B=[d],O=[d],Z=[d],V=[d],Y=[d],H=[d],ee=[d],ae=[d],ne=[d],ce=[d],fe=[x],me=[m],he=[m],pe=[x({keepAlive:!0})],_e=[x({keepAlive:!0})],ge=[m],ye=[m],ke=[x({keepAlive:!0})],be=[x({keepAlive:!0})],ve=[m],xe=[m],Re=[m],Se=[d],Ee=[x],ze=[m],Pe=[m],De=[m],Ie=[m],we=[d],Ce=[m],Be=[x({keepAlive:!0})],Fe=[m],i(this,null,fe,{kind:"getter",name:"canFindLocation",static:!1,private:!1,access:{has:e=>"canFindLocation"in e,get:e=>e.canFindLocation},metadata:t},null,a),i(this,null,me,{kind:"method",name:"selectRoute",static:!1,private:!1,access:{has:e=>"selectRoute"in e,get:e=>e.selectRoute},metadata:t},null,a),i(this,null,he,{kind:"method",name:"setStartPoint",static:!1,private:!1,access:{has:e=>"setStartPoint"in e,get:e=>e.setStartPoint},metadata:t},null,a),i(this,null,pe,{kind:"getter",name:"pathLayers",static:!1,private:!1,access:{has:e=>"pathLayers"in e,get:e=>e.pathLayers},metadata:t},null,a),i(this,null,_e,{kind:"getter",name:"nearestBooth",static:!1,private:!1,access:{has:e=>"nearestBooth"in e,get:e=>e.nearestBooth},metadata:t},null,a),i(this,null,ge,{kind:"method",name:"setMarkers",static:!1,private:!1,access:{has:e=>"setMarkers"in e,get:e=>e.setMarkers},metadata:t},null,a),i(this,null,ye,{kind:"method",name:"selectMarker",static:!1,private:!1,access:{has:e=>"selectMarker"in e,get:e=>e.selectMarker},metadata:t},null,a),i(this,null,ke,{kind:"getter",name:"selectedMarkers",static:!1,private:!1,access:{has:e=>"selectedMarkers"in e,get:e=>e.selectedMarkers},metadata:t},null,a),i(this,null,be,{kind:"getter",name:"layers",static:!1,private:!1,access:{has:e=>"layers"in e,get:e=>e.layers},metadata:t},null,a),i(this,null,ve,{kind:"method",name:"clickRoute",static:!1,private:!1,access:{has:e=>"clickRoute"in e,get:e=>e.clickRoute},metadata:t},null,a),i(this,null,xe,{kind:"method",name:"selectCurrentPosition",static:!1,private:!1,access:{has:e=>"selectCurrentPosition"in e,get:e=>e.selectCurrentPosition},metadata:t},null,a),i(this,null,Re,{kind:"method",name:"findLocation",static:!1,private:!1,access:{has:e=>"findLocation"in e,get:e=>e.findLocation},metadata:t},null,a),i(this,null,Ee,{kind:"getter",name:"routeInfo",static:!1,private:!1,access:{has:e=>"routeInfo"in e,get:e=>e.routeInfo},metadata:t},null,a),i(this,null,ze,{kind:"method",name:"updateRoute",static:!1,private:!1,access:{has:e=>"updateRoute"in e,get:e=>e.updateRoute},metadata:t},null,a),i(this,null,Pe,{kind:"method",name:"updateRouteDistance",static:!1,private:!1,access:{has:e=>"updateRouteDistance"in e,get:e=>e.updateRouteDistance},metadata:t},null,a),i(this,null,De,{kind:"method",name:"updateRoutePoints",static:!1,private:!1,access:{has:e=>"updateRoutePoints"in e,get:e=>e.updateRoutePoints},metadata:t},null,a),i(this,null,Ie,{kind:"method",name:"checkRoutes",static:!1,private:!1,access:{has:e=>"checkRoutes"in e,get:e=>e.checkRoutes},metadata:t},null,a),i(this,null,Ce,{kind:"method",name:"setGpsTrackingEnabled",static:!1,private:!1,access:{has:e=>"setGpsTrackingEnabled"in e,get:e=>e.setGpsTrackingEnabled},metadata:t},null,a),i(this,null,Be,{kind:"getter",name:"gpsEnabled",static:!1,private:!1,access:{has:e=>"gpsEnabled"in e,get:e=>e.gpsEnabled},metadata:t},null,a),i(this,null,Fe,{kind:"method",name:"setOnlyAccessible",static:!1,private:!1,access:{has:e=>"setOnlyAccessible"in e,get:e=>e.setOnlyAccessible},metadata:t},null,a),i(null,null,o,{kind:"field",name:"routeLines",static:!1,private:!1,access:{has:e=>"routeLines"in e,get:e=>e.routeLines,set:(e,s)=>{e.routeLines=s}},metadata:t},l,f),i(null,null,h,{kind:"field",name:"routeDistance",static:!1,private:!1,access:{has:e=>"routeDistance"in e,get:e=>e.routeDistance,set:(e,s)=>{e.routeDistance=s}},metadata:t},S,L),i(null,null,D,{kind:"field",name:"currentPosition",static:!1,private:!1,access:{has:e=>"currentPosition"in e,get:e=>e.currentPosition,set:(e,s)=>{e.currentPosition=s}},metadata:t},I,w),i(null,null,A,{kind:"field",name:"requestCompass",static:!1,private:!1,access:{has:e=>"requestCompass"in e,get:e=>e.requestCompass,set:(e,s)=>{e.requestCompass=s}},metadata:t},M,C),i(null,null,B,{kind:"field",name:"iconType",static:!1,private:!1,access:{has:e=>"iconType"in e,get:e=>e.iconType,set:(e,s)=>{e.iconType=s}},metadata:t},F,G),i(null,null,O,{kind:"field",name:"tempToBooth",static:!1,private:!1,access:{has:e=>"tempToBooth"in e,get:e=>e.tempToBooth,set:(e,s)=>{e.tempToBooth=s}},metadata:t},U,N),i(null,null,Z,{kind:"field",name:"defaultFrom",static:!1,private:!1,access:{has:e=>"defaultFrom"in e,get:e=>e.defaultFrom,set:(e,s)=>{e.defaultFrom=s}},metadata:t},q,$),i(null,null,V,{kind:"field",name:"focusEnabled",static:!1,private:!1,access:{has:e=>"focusEnabled"in e,get:e=>e.focusEnabled,set:(e,s)=>{e.focusEnabled=s}},metadata:t},j,W),i(null,null,Y,{kind:"field",name:"prevZ",static:!1,private:!1,access:{has:e=>"prevZ"in e,get:e=>e.prevZ,set:(e,s)=>{e.prevZ=s}},metadata:t},K,X),i(null,null,H,{kind:"field",name:"markersData",static:!1,private:!1,access:{has:e=>"markersData"in e,get:e=>e.markersData,set:(e,s)=>{e.markersData=s}},metadata:t},J,Q),i(null,null,ee,{kind:"field",name:"prevMarkers",static:!1,private:!1,access:{has:e=>"prevMarkers"in e,get:e=>e.prevMarkers,set:(e,s)=>{e.prevMarkers=s}},metadata:t},te,se),i(null,null,ae,{kind:"field",name:"showAccessible",static:!1,private:!1,access:{has:e=>"showAccessible"in e,get:e=>e.showAccessible,set:(e,s)=>{e.showAccessible=s}},metadata:t},ie,re),i(null,null,ne,{kind:"field",name:"onlyAccessible",static:!1,private:!1,access:{has:e=>"onlyAccessible"in e,get:e=>e.onlyAccessible,set:(e,s)=>{e.onlyAccessible=s}},metadata:t},oe,le),i(null,null,ce,{kind:"field",name:"currentRouteLayer",static:!1,private:!1,access:{has:e=>"currentRouteLayer"in e,get:e=>e.currentRouteLayer,set:(e,s)=>{e.currentRouteLayer=s}},metadata:t},ue,de),i(null,null,Se,{kind:"field",name:"routeUnits",static:!1,private:!1,access:{has:e=>"routeUnits"in e,get:e=>e.routeUnits,set:(e,s)=>{e.routeUnits=s}},metadata:t},Le,Te),i(null,null,we,{kind:"field",name:"isGpsTrackingEnabled",static:!1,private:!1,access:{has:e=>"isGpsTrackingEnabled"in e,get:e=>e.isGpsTrackingEnabled,set:(e,s)=>{e.isGpsTrackingEnabled=s}},metadata:t},Ae,Me),t&&Object.defineProperty(this,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:t})}rootStore=r(this,a);cpTimeout;routeLines=r(this,l,[]);routeDistance=(r(this,f),r(this,S,null));currentPosition=(r(this,L),r(this,I,null));requestCompass=(r(this,w),r(this,M,!1));iconType=(r(this,C),r(this,F,0));tempToBooth=(r(this,G),r(this,U,null));defaultFrom=(r(this,N),r(this,q,null));focusEnabled=(r(this,$),r(this,j,!0));prevZ=(r(this,W),r(this,K,null));markersData=(r(this,X),r(this,J,{icons:[],markers:[]}));prevMarkers=(r(this,Q),r(this,te,[]));showAccessible=(r(this,se),r(this,ie,!!qe.getLines().find(t=>t.unaccessible)));onlyAccessible=(r(this,re),r(this,oe,!1));currentRouteLayer=(r(this,le),r(this,ue,null));constructor(t){r(this,Me),this.rootStore=t,this.focusEnabled=!window.location.search}get canFindLocation(){return!!this.defaultFrom||!!this.currentPosition}selectRoute(t,e=!0){e&&(y.list={type:"search",text:"",focused:!1}),!t?.from&&t?.to&&this.currentPosition&&(t.from=this.nearestBooth),t?.from&&t?.to&&t.from===t.to&&(t=null);let s=[];t?.from&&t?.to&&window.setTimeout(()=>{this.rootStore.showMap()},navigator.userAgent.toLowerCase().indexOf("android")>-1?400:50),t?.from?.visible&&s.push(t.from),t?.to?.visible&&(this.tempToBooth=null,s.push(t.to)),!t&&n.fp.onDirection&&n.fp.onDirection(null),setTimeout(()=>{this.rootStore.moveToList(s),y.details=t,t&&(!t.from||!t.to)&&n.showOverlay(),t?.to&&t?.from?.layer&&this.rootStore.layerStore.updateVisibility(t.from.layer,!0),!this.currentRouteLayer&&t?.from?.layer&&(this.currentRouteLayer=t?.from?.layer),e&&t?.from&&t?.to&&Je(He.ClickDirections,`${t?.from?"From "+t.from.name:""} ${t?.to?"To "+t.to.name:""}`)},200)}setStartPoint(t){const e=y.selectedRoute;if(e?.to&&!e?.from&&t){const s=new Route(t,e.to,e.waypoints);this.selectRoute(s)}}get pathLayers(){return n.routeStore.routeLines?.map(t=>t.p0.layer)?.filter((t,e,s)=>s.indexOf(t)===e).reverse().map((t,e)=>({id:e+1,layer:n.layerStore.findLayer(t)}))}get nearestBooth(){return this.getNearestBooth(this.currentPosition)}getNearestBooth(t){if(!t)return null;let e=this.rootStore.layerStore.findLayer(t.z);const s=t.lat&&t.lng?Ue(t,E.properties.config):t;return this.rootStore.boothStore.booths.filter(c=>T.mode===st.Default||!e?c.visible&&c.rect:c.rect&&(typeof t.z!="number"&&!t.z&&c.visible||e.name===c.layer?.name)).sort((c,u)=>Oe(s,{x:c.rect.cx,y:c.rect.cy})-Oe(s,{x:u.rect.cx,y:u.rect.cy}))[0]||null}setMarkers(t){this.markersData.markers=(t?.markers??[]).map(lt),this.markersData.icons=t?.icons??[]}selectMarker(t,e){const s=this.markersData.markers.find(u=>u.id===t);this.markersData.markers.forEach(u=>u.active=!1),s&&(s.active=!0);let c=n.layerStore.findLayer(s?.z);if(e&&s){const u=n.rendererService.renderer;return c&&!c?.visible&&T.updateVisibility(c,!0),u?u.controls.panTo(s.x,s.y):(We.warn("Renderer is not initialized. Cannot pan to marker."),Promise.resolve())}return Promise.resolve()}get selectedMarkers(){return this.markersData.markers.filter(t=>t.active)}get layers(){var t=[];return n.routeStore.routeLines?.map(e=>e.p0.layer).reverse().forEach(e=>{t.indexOf(e)===-1&&t.push(e)}),t.map(e=>n.layerStore.layers.find(s=>s.name===e))}clickRoute(t,e){window.__resett&&window.__resett(),this.rootStore.uiState.menu=null,y.list.type==="route-planner"&&(y.list={type:"search",text:"",focused:!1}),this.selectRoute(new Route(this.defaultFrom||t,e))}selectCurrentPosition(t,e=!0,s){clearTimeout(this.cpTimeout),t&&(t.x=b(t.x),t.y=b(t.y),t.lat=b(t.lat),t.lng=b(t.lng),it()||(t.z=null));const c=e&&this.rootStore.uiState.details&&!(this.rootStore.uiState.details instanceof Route),u=e&&!c&&(this.focusEnabled||this.prevZ!=t?.z);this.focusEnabled&&(this.focusEnabled=!1),this.prevZ=t?.z?.toString(),this.iconType=s?1:0;const _=t?ct(t):null;if(!_){this.currentPosition=null;return}const p=n.layerStore.findLayer(t.z),g=new CurrentPosition(_.x,_.y,p?.name||this.currentRouteLayer?.name,Qe(_),t.lat,t.lng),R=y.selectedRoute;let Ge=!this.routeLines?.length;if(p&&this.routeLines?.length&&(Ge=!!this.routeLines.find(v=>v.p0.layer===p.name||v.p1.layer===p.name)),u&&Ge){const v=n.rendererService.renderer;if(p&&!p?.visible&&T.updateVisibility(p,!0),!v){We.warn("Renderer is not initialized. Cannot pan to current position.");return}v.controls.panTo(g.x,g.y)}const Ye=(P.flags?.enableExperimentalRerouting||E?.properties?.config?.enableExperimentalRerouting)&&rt(g,this.routeLines)&&!!nt(g,Xe.booths,[R?.to]);if(e&&R&&Ye){const v=n.routeStore.getNearestBooth(g);n.routeStore.selectRoute(new Route(v,R?.to),!1)}this.currentPosition=g,this.gpsEnabled||(this.cpTimeout=setTimeout(()=>{this.currentPosition&&this.selectCurrentPosition(null,!1)},30*1e3))}findLocation(){if(this.canFindLocation){if(n.maplibreStore.showMaplibre){y.moveToLocation=!0;return}if(n.routeStore.currentPosition){const t=n.routeStore.currentPosition,e=z.fromCxcywh(t.x,t.y,100,100);let s;if(e.intersects(k))s=e;else{const _=Math.max(k.x1,Math.min(t.x,k.x2)),p=Math.max(k.y1,Math.min(t.y,k.y2)),g=Math.min(k.w,k.h)*.3,R=z.fromCxcywh(_,p,g,g).getIntersection(k);s=z.fromMultiple([e,R])}localStorage.getItem(at)==="false"&&(n.routeStore.requestCompass=!0),y.moveToRect=s;const u=n.layerStore.findLayer(n.routeStore.currentPosition?.z);u&&T.updateVisibility(u,!0)}else n.selectBooth(n.routeStore.defaultFrom)}}routeUnits=(r(this,de),r(this,Le,je));get routeInfo(){const t=this.routeDistance,e=this.routeUnits;return t?{distance:`${t}${e}`,units:e,time:Ve(t,$e(e))}:null}updateRoute(t,e){!t?.length&&!this.routeLines.length||(this.routeLines=t,this.updateRoutePoints())}updateRouteDistance(t){if(t==null)return;const e=et(),s=(e.getAttribute("units")||je).toLowerCase?.().trim(),c=e.getAttribute("fp-ver")?.startsWith("5")??!1;this.routeDistance=Math.round(t/(c?1:10)),this.routeUnits=s,this.updateRoutePoints()}updateRoutePoints(){const t=y.selectedRoute,e=this.routeDistance,s=this.routeUnits;n.fp.onDirection&&setTimeout(()=>{n.fp.onDirection({from:t?.from?{id:t.from.id,name:t.from.name,externalId:t.from.externalId,layer:{name:t.from?.layer?.name,description:t.from?.layer?.description}}:null,to:t?.to?{id:t.to.id,name:t.to.name,externalId:t.to.externalId,layer:{name:t.to.layer?.name,description:t.to.layer?.description}}:null,lines:this.routeLines,distance:`${e}${s}`,units:s,time:Ve(e,$e(s))})},200)}checkRoutes(){const t=tt(qe),e=n.boothStore.booths;console.info(`Route check started ${e.length}.... `);for(let s=0;s<e.length;s++){const c=e[s];for(let u=s+1;u<e.length;u++){const _=e[u];t.buildRoute(Ze(c),Ze(_)).lines.length||console.warn(`No route found from ${c.name} to ${_.name}`)}}console.info("Route check done....")}isGpsTrackingEnabled=(r(this,Te),r(this,Ae,!0));setGpsTrackingEnabled(t){this.isGpsTrackingEnabled=t}get gpsEnabled(){return P.autoTrackingGps&&this.isGpsTrackingEnabled&&!P.enableIPS}setOnlyAccessible(t){this.onlyAccessible=t}}})();export default ot;function lt(a){return{...a,x:b(a.x),y:b(a.y),lat:b(a.lat),lng:b(a.lng)}}function ct(a){let o=null,l=null;return E&&(o=E.properties.config),o&&a.x>=o.p0.x&&a.x<=o.p2.x&&a.y>=o.p0.y&&a.y<=o.p2.y?l={...a}:o&&Ne(a.lat)&&Ne(a.lng)?l=Ue(a,o):o||(l=a),l||null}export function findBooth(a){return n.boothStore.findBooth(a)||n.exhibitorStore.findExhibitor(a)?.booths[0]}export function findEntityByExternalId(a){const o=n.boothStore.boothByExternalId.get(a);if(o)return{type:"booth",entity:o};const l=n.exhibitorStore.exhibitorByExternalId.get(a);if(l)return{type:"exhibitor",entity:l}}export function separateExternalIds(a){const o=[],l=[];for(const f of a){const h=findEntityByExternalId(f);h&&(h.type==="booth"?o.push(f):l.push(f))}return{boothExternalIds:o,exhibitorExternalIds:l}}export function extractRoute(a,o,l){return new Route(findBooth(a)??n.routeStore.defaultFrom??null,findBooth(o),l?.map(f=>findBooth(f)))}export class Route{from;to;waypoints;constructor(o,l,f){this.from=o,this.to=l,this.waypoints=f,this.waypoints=f?.filter(h=>h&&h.id!==o?.id&&h.id!==l?.id)}}export class CurrentPosition extends Ke{x;y;z;angle;lat;lng;constructor(o,l,f,h,S,L){super(o,l),this.x=o,this.y=l,this.z=f,this.angle=h,this.lat=S,this.lng=L}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import
|
|
1
|
+
import R from"color";import*as M from"d3-selection";import N from"../../core/Rect";import v from"../../data";import{getLayerSvg as X,getTrianglesFromFpPaths as U}from"../../data/svg";import{getNextId as D}from"../../tools/id";import S from"../../tools/logger";import w from"../../tools/settings";import{generateUniqueSlug as F}from"../../tools/slug";import{sortByName as O}from"../../utils";import{extractMetaFromString as V}from"../../utils/extractMetaFromString";import{RegularBooth as A,SpecialBooth as P}from"../BoothStore";import{Exhibitor as z}from"../ExhibitorStore";import{uiState as T}from"../index";import{autorun as $}from"mobx";import{getStorage as W,saveStorage as G}from"../../utils/entity-storage";const C=new Map,k=[];export function iniAllBooths(e){C.clear(),k.length=0;const d=parseInt(j("copy_exh"));for(const i of v.booths||[]){const{text:l,meta:h}=V(i.name);i.meta=h;const o=i.special?new P:new A;Object.assign(o,i),o.slug=F(o.name),C.set(o.name.toLowerCase(),o),q(o);const m=o;m.exhibitors=[];for(const p of i.exhibitors){const u=e.exhibitorStore.exhibitorById.get(p);u&&(m.exhibitors.push(u),d&&L(u,m,d),u.booths.push(m))}!i.exhibitors.length&&d&&L(null,m,d),o.schedule=e.eventStore.eventItems.filter(p=>p.boothId===o.id),o.name=l,k.push(o)}k.sort((i,l)=>i.name.localeCompare(l.name,void 0,{sensitivity:"base",numeric:!0}));for(const i of e.exhibitorStore.exhibitors)O(i.booths);e.boothStore.booths=k,delete v.booths,S.log("initBooths",e.boothStore.booths.length),H(e)}function H(e){const l=(W("bookmarked").booths||[]).filter(h=>{const o=e.boothStore.boothById.get(h);return o&&o.exhibitors.length===0});e.boothStore.replaceBookmarked(l),$(()=>{const h=W("bookmarked"),o=e.boothStore.booths.filter(m=>m.exhibitors.length===0&&m.bookmarkedDirectly).map(m=>m.id);G("bookmarked",{exhibitors:h.exhibitors,events:h.events,speakers:h.speakers,booths:o})})}export default function Y(e,d){const i=d.name,{boothStore:l,layerStore:h}=e,o=[],m=!!window.__fpLayers,p=M.select(X(d)).selectAll(`[data-layer='${i}'] > [data-tagname='efp-booth'], [data-layer='${i}'] > g[id^=b], [data-layer='${i}'] > rect[id^=b]`).nodes();for(const r of p){const B=r.closest("svg > [data-layer]").attributes["data-layer"]?.value;if(!B)continue;let a,I=!1;r.tagName==="rect"?a=r:(a=Array.from(r.children).find(s=>s.tagName==="rect"),I=a===r.firstElementChild);const g=(r.id||r.getAttribute("data-name")).substring(1).toLowerCase();let t=C.get(g),n=t instanceof A?t:null,E=t instanceof P?t:null;if(t||(S.error("SVG booth rect not found in __data:",g),t=n=new A,t.id=D(),t.name=g.toUpperCase(),t.slug=F(g),t.error=!0,t.exhibitors=[],C.set(g,t)),o.push(t),t.layer=m?h.layers.find(s=>s.name===B):null,t.borderColor=a?.getAttribute("stroke")||a?.style.stroke||w.boothBorderColor||"#FFFFFF",t.borderWidth=parseFloat(a?.getAttribute("stroke-width")||a?.style.strokeWidth),isNaN(t.borderWidth)&&(t.borderWidth=l.borderWidth),!T.heatmap)t.labelColor=a?.getAttribute("data-label-color");else{const s=e.heatmapStore.getTotalClicksByBooth(t),c=R(e.heatmapStore.getColorByClicks(s));t.labelColor=c.darken(.3).isLight()?"#555":"#fff"}t.rect=a?N.fromSvgRectElement(a):null,t.noLabels=!!a?.dataset.nolabel||a?.id.startsWith("no"),n?(n.availColor=r.getAttribute("data-avail-color")||a?.getAttribute("data-avail-color")||n.availColor,n.soldColor=r.getAttribute("data-sold-color")||a?.getAttribute("data-sold-color")||n.soldColor,n.holdColor=r.getAttribute("data-hold-color")||a?.getAttribute("data-hold-color")||n.holdColor,n.size=v.dimensionless?null:n.size||r.getAttribute("data-size"),n.status==="reserved"?n.reserved=!0:n.status==="onhold"&&(n.onHold=!0)):E.color=(parseInt(a.getAttribute("data-poi-type"))>0?a.style?.fill:r.getAttribute("data-color")||a.getAttribute("data-color"))||E.color;const y=a?.getAttribute("transform");if(y){const s=y.match(/translate\(([-0-9.]+) ([-0-9.]+)\) rotate\(([-0-9.]+)\)/);if(s){const f=parseFloat(s[3]);t.rotate=-f*Math.PI/180}else{const f=y.match(/rotate\(([-0-9.]+).*\)/);if(f){const b=parseFloat(f[1]);t.rotate=-b*Math.PI/180}else{const b=y.match(/matrix\(\s*([-0-9.]+)\s*(?:,|\s)\s*([-0-9.]+)\s*(?:,|\s)\s*([-0-9.]+)\s*(?:,|\s)\s*([-0-9.]+)\s*(?:,|\s)\s*([-0-9.]+)\s*(?:,|\s)\s*([-0-9.]+)\s*\)/);b&&(t.rotate=Math.asin(-parseFloat(b[2])))}}Math.abs(t.rotate*180/Math.PI)>180&&(t.rotate=t.rotate-90*Math.PI/180,t.rect=t.rect.getRotated90())}if(r.tagName==="g"){t.paths=[],t.pathsWithRect=I;var u=[];for(const s of M.select(r).selectAll("path, rect").nodes())if(s.tagName==="path"){const c=s;if(c.tagName!=="path")continue;const f=parseInt(c.getAttribute("data-index")),b=!!c.getAttribute("data-unblinking");t.paths.push({index:f,color:c.style.fill,unblinking:b}),a||u.push(...U(f,i))}if(u.length){let s=Number.MAX_VALUE,c=Number.MAX_VALUE,f=-Number.MAX_VALUE,b=-Number.MAX_VALUE;u.forEach(_=>{_.forEach(x=>{s=Math.min(s,x[0]),c=Math.min(c,x[1]),f=Math.max(f,x[0]),b=Math.max(b,x[1])})}),t.rect=N.fromXywh(s,c,f-s,b-c),t.noLabels=!0}}}for(const r of o)r.rect?r.store=l:(S.error("__data booth not found in SVG:",r.name,r),o.splice(o.indexOf(r),1));return o}function j(e){return new URLSearchParams(window.location.search).get(e)}function L(e,d,i){let l=new z;l.name="EXHIBITOR NAME",l.slug="exhibitor-name",l.booths=[],l=e||l;for(let h=0;h<i;h++){const o={...l,id:Date.now()};d.exhibitors.push(o)}}function q(e){w.EXPO==="cbresupplypartner"&&e instanceof A&&!e.availColor&&e.type&&(e.type.indexOf("Premium A - 2m height restriction Passport")!==-1?e.availColor="#939393":e.type.indexOf("No free-standing")!==-1?e.availColor="#BA3DC8":e.type.endsWith("Passport")?e.availColor="#939393":e.type.startsWith("Premium A - 2m")?e.availColor="#FF9E4E":e.type.startsWith("Premium A - 4m")?e.availColor="#EA4335":e.type.startsWith("Premium B - 2m")?e.availColor="#523BC0":e.type.startsWith("Premium C - 2.4m")&&(e.availColor="#3ECC78"))}
|
package/dist/esm/types.d.ts
CHANGED
|
@@ -144,6 +144,15 @@ export interface FloorPlanOptions {
|
|
|
144
144
|
onLeaveEvent?: () => void;
|
|
145
145
|
disableRuntimeAlerts?: boolean;
|
|
146
146
|
viewerMode?: boolean;
|
|
147
|
+
maplibre?: MaplibreOptions;
|
|
148
|
+
}
|
|
149
|
+
export interface MaplibreOptions {
|
|
150
|
+
/** MapLibre style URL. Offline packages point this to a local style JSON file. */
|
|
151
|
+
styleUrl?: string;
|
|
152
|
+
/** Inline MapLibre style object. */
|
|
153
|
+
style?: object;
|
|
154
|
+
/** Allows MapLibre to run without navigator.onLine when local map assets are bundled. */
|
|
155
|
+
offline?: boolean;
|
|
147
156
|
}
|
|
148
157
|
export interface Layer {
|
|
149
158
|
name: string;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import type { RendererService } from "../renderer/RendererService";
|
|
2
|
+
export declare const DIM_INTENSITY = 0.5;
|
|
3
|
+
export declare const VENUE_DIM_INTENSITY = 1;
|
|
4
|
+
export declare const DIM_TRANSITION_MS = 300;
|
|
5
|
+
export declare const DEFAULT_DIM_EASING: "cubic";
|
|
6
|
+
export type DimmingEasing = "linear" | "cubic";
|
|
7
|
+
export interface DimmingAnimator {
|
|
8
|
+
getValue(): number;
|
|
9
|
+
setTarget(dimmed: boolean, options?: {
|
|
10
|
+
immediate?: boolean;
|
|
11
|
+
}): void;
|
|
12
|
+
stop(): void;
|
|
13
|
+
}
|
|
14
|
+
export declare function applyVenueDimValue(rendererService: RendererService, value: number): void;
|
|
15
|
+
export declare function createDimmingAnimator(applyValue: (value: number) => void, durationMs?: number, easing?: DimmingEasing): DimmingAnimator;
|
|
16
|
+
//# sourceMappingURL=dimming.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export const DIM_INTENSITY=.5,VENUE_DIM_INTENSITY=1,DIM_TRANSITION_MS=300,DEFAULT_DIM_EASING="cubic";export function applyVenueDimValue(e,r){const o=e.scene;if(!o)return;const n=o.rootLayer;n.dim!==r&&(n.dim=r,e.update(o.rootLayer))}export function createDimmingAnimator(e,r=300,o=DEFAULT_DIM_EASING){let n=null,t=0,m=0,a=0,l=0;const f=Math.max(r,0);function s(){n===null||typeof cancelAnimationFrame!="function"||(cancelAnimationFrame(n),n=null)}function p(i){s(),t=i,e(t)}function I(i){const c=i-l,u=Math.min(c/f,1),T=A(u,o);if(t=m+(a-m)*T,e(t),u<1){n=requestAnimationFrame(I);return}n=null,t=a,e(t)}return{getValue(){return t},setTarget(i,c={}){const u=i?1:0;if(!(!c.immediate&&u===a&&n===null)){if(a=u,c.immediate||f===0||typeof requestAnimationFrame!="function"){p(a);return}s(),m=t,l=typeof performance>"u"?Date.now():performance.now(),n=requestAnimationFrame(I)}},stop(){s()}}}function A(e,r){return r==="linear"?e:M(e)}function M(e){return e<.5?4*e*e*e:1-Math.pow(-2*e+2,3)/2}
|
|
@@ -13,7 +13,7 @@ type GpsProjectionConfig = {
|
|
|
13
13
|
lng: number;
|
|
14
14
|
};
|
|
15
15
|
};
|
|
16
|
-
export declare const getThresholdSafe: (value
|
|
16
|
+
export declare const getThresholdSafe: (value?: number) => number | undefined;
|
|
17
17
|
export declare function getThresholdFromMetersToSvg({ thresholdInMeters, gpsConfig }: {
|
|
18
18
|
thresholdInMeters?: number;
|
|
19
19
|
gpsConfig?: GpsProjectionConfig;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@expofp/floorplan",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.4.0",
|
|
4
4
|
"repository": {
|
|
5
5
|
"type": "git",
|
|
6
6
|
"url": "https://github.com/expofp/efp-app.git",
|
|
@@ -54,12 +54,13 @@
|
|
|
54
54
|
"history": "^4.10.1",
|
|
55
55
|
"i18next": "^19.4.4",
|
|
56
56
|
"lz-string": "^1.4.4",
|
|
57
|
-
"
|
|
57
|
+
"maplibre-gl": "^5.24.0",
|
|
58
58
|
"mobx": "^5.15.0",
|
|
59
59
|
"mobx-react-lite": "^1.5.1",
|
|
60
60
|
"ngraph.graph": "^19.1.0",
|
|
61
61
|
"particlesjs": "git+https://github.com/evgenyt1/particles.js.git",
|
|
62
62
|
"perfect-scrollbar": "^1.4.0",
|
|
63
|
+
"pmtiles": "^4.4.1",
|
|
63
64
|
"react-qr-code": "^2.0.9",
|
|
64
65
|
"react-transition-group": "^4.4.5",
|
|
65
66
|
"react-virtuoso": "^4.12.6",
|
|
@@ -69,14 +70,11 @@
|
|
|
69
70
|
"slugify": "1.6.6",
|
|
70
71
|
"stats-gl": "^3.6.0",
|
|
71
72
|
"swiper": "^9.1.0",
|
|
72
|
-
"three": "^0.174.0",
|
|
73
|
-
"troika-three-text": "^0.52.3",
|
|
74
73
|
"tslib": "^2.3.0",
|
|
75
|
-
"twgl.js": "^4.14.0",
|
|
76
74
|
"uuid": "^9.0.1",
|
|
77
75
|
"zod": "4.3.5",
|
|
78
|
-
"@expofp/
|
|
79
|
-
"@expofp/
|
|
76
|
+
"@expofp/debug": "3.4.0",
|
|
77
|
+
"@expofp/resolve": "3.4.0"
|
|
80
78
|
},
|
|
81
79
|
"devDependencies": {
|
|
82
80
|
"@babel/plugin-proposal-decorators": "^7.29.7",
|
|
@@ -87,8 +85,6 @@
|
|
|
87
85
|
"@storybook/react-vite": "10.4.2",
|
|
88
86
|
"@types/d3": "^7.1.0",
|
|
89
87
|
"@types/lz-string": "1.3.32",
|
|
90
|
-
"@types/mapbox-gl": "^2.6.3",
|
|
91
|
-
"@types/three": "0.174.0",
|
|
92
88
|
"@vitejs/plugin-react": "^6.0.2",
|
|
93
89
|
"@vitest/browser": "^4.1.7",
|
|
94
90
|
"@vitest/browser-playwright": "^4.1.7",
|
|
@@ -1,120 +0,0 @@
|
|
|
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.3.8" };
|
|
5
|
-
var t = new e.Error().stack;
|
|
6
|
-
t && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[t] = "91304b10-d37a-468b-9d3a-7dbb56afecc1", e._sentryDebugIdIdentifier = "sentry-dbid-91304b10-d37a-468b-9d3a-7dbb56afecc1");
|
|
7
|
-
} catch {}
|
|
8
|
-
})();
|
|
9
|
-
import { r as e } from "./rolldown-runtime-Bb8iYlSJ.js";
|
|
10
|
-
import { t } from "./react-CDDaD-I1.js";
|
|
11
|
-
import { t as n } from "./jsx-runtime-z-VgZsNI.js";
|
|
12
|
-
import { t as r } from "./classnames-DNY5NR54.js";
|
|
13
|
-
import { $n as i, Kn as a, Yn as o, er as s, o as c, s as l, t as u } from "./store-Dyrv6nnP.js";
|
|
14
|
-
import { r as d } from "./mobx-BGVJo_6r.js";
|
|
15
|
-
import { _ as f, a as p, c as m, d as h, f as g, h as _, i as v, l as y, m as b, o as x, p as S, r as C, s as w, u as T } from "./data-ZH4_sxkL.js";
|
|
16
|
-
//#region src/components/Mapbox/Mapbox.tsx
|
|
17
|
-
var E = /* @__PURE__ */ e(r(), 1), D = /* @__PURE__ */ e(f(), 1), O = /* @__PURE__ */ e(t(), 1), k = n();
|
|
18
|
-
function A() {
|
|
19
|
-
let e = (0, O.useRef)(null), t = (0, O.useRef)(null), n = null, r = [], f = i(() => ({
|
|
20
|
-
get initselected() {
|
|
21
|
-
return ![...l.selectedBooths].filter((e) => e.rect);
|
|
22
|
-
},
|
|
23
|
-
get actualCurrentPosition() {
|
|
24
|
-
let e = c.routeStore.currentPosition;
|
|
25
|
-
return !(e != null && e.z) || c.layerStore.visible.indexOf(c.layerStore.findLayer(e.z)) > -1 ? e : null;
|
|
26
|
-
},
|
|
27
|
-
get style() {
|
|
28
|
-
return { left: 0 };
|
|
29
|
-
}
|
|
30
|
-
}));
|
|
31
|
-
return (0, O.useEffect)(() => {
|
|
32
|
-
if (!t.current) {
|
|
33
|
-
var { cx: n, cy: i } = x.viewbox;
|
|
34
|
-
t.current = new D.default.Map({
|
|
35
|
-
container: e.current,
|
|
36
|
-
style: `mapbox://styles/mapbox/${x.style}`,
|
|
37
|
-
center: [n, i],
|
|
38
|
-
zoom: 15.5,
|
|
39
|
-
bearing: x.initBearing - 30,
|
|
40
|
-
pitch: x.initPitch + 30,
|
|
41
|
-
maxPitch: 70,
|
|
42
|
-
bearingSnap: 0,
|
|
43
|
-
accessToken: x.token
|
|
44
|
-
}), T(t.current), t.current.on("load", async () => {
|
|
45
|
-
var e;
|
|
46
|
-
setTimeout(() => p(f.initselected ? o.fromMultiple([...l.selectedBooths].filter((e) => e.rect).map((e) => e.rect)) : a, 15, 4e3), 1500), t.current.setLight({
|
|
47
|
-
anchor: "viewport",
|
|
48
|
-
color: "white",
|
|
49
|
-
intensity: 0
|
|
50
|
-
});
|
|
51
|
-
let n = await C(c.boothStore.booths);
|
|
52
|
-
m(c.boothStore.booths, n), h("yah", (e = c.routeStore.defaultFrom) != null && e.rect ? {
|
|
53
|
-
x: c.routeStore.defaultFrom.rect.cx,
|
|
54
|
-
y: c.routeStore.defaultFrom.rect.cy
|
|
55
|
-
} : null), h("cp", f.actualCurrentPosition), r = y(c.layerStore.layers);
|
|
56
|
-
let i = r.filter((e) => e.indexOf("--") === -1);
|
|
57
|
-
b(c.routeStore), w(), t.current.on("mouseenter", i, () => t.current.getCanvas().style.cursor = "pointer"), t.current.on("mouseleave", i, () => t.current.getCanvas().style.cursor = ""), t.current.on("click", (e) => {
|
|
58
|
-
let n = [[e.point.x - 5, e.point.y - 5], [e.point.x + 5, e.point.y + 5]], i = t.current.queryRenderedFeatures(n, { layers: r })[0], a = c.boothStore.booths.find((e) => {
|
|
59
|
-
var t;
|
|
60
|
-
return e.name === (i == null || (t = i.properties) == null ? void 0 : t.id);
|
|
61
|
-
});
|
|
62
|
-
c.clickBooth(a);
|
|
63
|
-
});
|
|
64
|
-
});
|
|
65
|
-
}
|
|
66
|
-
}), d(() => l.zoomBy, () => {
|
|
67
|
-
if (!l.zoomBy || !c.mapboxStore.showMapbox) return;
|
|
68
|
-
let e = l.zoomBy;
|
|
69
|
-
l.zoomBy = null, t.current.flyTo({
|
|
70
|
-
zoom: t.current.getZoom() + (e > 1 ? .5 : -.5),
|
|
71
|
-
animate: !0,
|
|
72
|
-
duration: 500,
|
|
73
|
-
essential: !0
|
|
74
|
-
});
|
|
75
|
-
}), d(() => [
|
|
76
|
-
c.layerStore.loaded,
|
|
77
|
-
c.layerStore.visible,
|
|
78
|
-
l.selectedRoute
|
|
79
|
-
], () => {
|
|
80
|
-
var e, n;
|
|
81
|
-
r.forEach((e) => {
|
|
82
|
-
let n = e.split("--")[0], r = c.layerStore.layers.find((e) => e.name === n);
|
|
83
|
-
(r.visible || t.current.getLayoutProperty(e, "visibility") !== "none") && t.current.setLayoutProperty(e, "visibility", r.visible ? "visible" : "none");
|
|
84
|
-
}), _([...l.selectedBooths], c.boothStore.booths), h("yah", (e = c.routeStore.defaultFrom) != null && e.rect && !((n = c.routeStore.defaultFrom) == null || (n = n.layer) == null) && n.visible ? {
|
|
85
|
-
x: c.routeStore.defaultFrom.rect.cx,
|
|
86
|
-
y: c.routeStore.defaultFrom.rect.cy
|
|
87
|
-
} : null), h("cp", f.actualCurrentPosition);
|
|
88
|
-
}), d(() => l.hoveredBooths, () => {
|
|
89
|
-
n && (clearTimeout(n), n = null), n = setTimeout(() => {
|
|
90
|
-
n = null, S([...l.hoveredBooths].filter((e) => {
|
|
91
|
-
var t, n;
|
|
92
|
-
return (t = (n = e.layer) == null ? void 0 : n.visible) == null ? !0 : t;
|
|
93
|
-
}), c.boothStore.booths);
|
|
94
|
-
}, 50);
|
|
95
|
-
}), d(() => [l.selectedBooths, l.listBooths], () => {
|
|
96
|
-
var e = [];
|
|
97
|
-
l.selectedBooths.size ? e = [...l.selectedBooths] : l.listBooths.size && (l.activeListIndex === 0 || l.list.type === "bookmarks" || l.list.type === "category") && (e = [...l.listBooths]), _(e, c.boothStore.booths);
|
|
98
|
-
}), d(() => c.mapboxStore.showMapbox, () => {
|
|
99
|
-
g(c.mapboxStore.showMapbox);
|
|
100
|
-
}), d(() => l.moveToBooths, () => {
|
|
101
|
-
if (!l.moveToBooths || !c.mapboxStore.showMapbox) return;
|
|
102
|
-
let e = l.moveToBooths.filter((e) => e.rect).map((e) => e.rect), t = o.fromMultiple(e);
|
|
103
|
-
e.length && p(t), l.moveToBooths = null;
|
|
104
|
-
}), d(() => l.moveToRect, () => {
|
|
105
|
-
!l.moveToRect || !c.mapboxStore.showMapbox || (p(l.moveToRect, 15), l.moveToRect = null);
|
|
106
|
-
}), d(() => l.moveToLocation, () => {
|
|
107
|
-
!l.moveToLocation || !c.mapboxStore.showMapbox || v();
|
|
108
|
-
}), d(() => l.centerMap, () => {
|
|
109
|
-
!l.centerMap || !c.mapboxStore.showMapbox || (p(o.fromMultiple(u.booths.map((e) => e.rect)), 15), l.centerMap = !1);
|
|
110
|
-
}), d(() => c.routeStore.routeLines, () => b(c.routeStore)), d(() => f.actualCurrentPosition, () => h("cp", f.actualCurrentPosition)), s(() => /* @__PURE__ */ (0, k.jsx)("div", {
|
|
111
|
-
style: f.style,
|
|
112
|
-
className: (0, E.default)("map-container", { hidden: !c.mapboxStore.showMapbox }),
|
|
113
|
-
children: /* @__PURE__ */ (0, k.jsx)("div", {
|
|
114
|
-
ref: e,
|
|
115
|
-
className: (0, E.default)("map-wrapper", "mapboxgl-map")
|
|
116
|
-
})
|
|
117
|
-
}));
|
|
118
|
-
}
|
|
119
|
-
//#endregion
|
|
120
|
-
export { A as default };
|
|
@@ -1,26 +0,0 @@
|
|
|
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.3.8" };
|
|
5
|
-
var t = new e.Error().stack;
|
|
6
|
-
t && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[t] = "00995e2a-5e5d-4fee-8e82-8fc733fa21dd", e._sentryDebugIdIdentifier = "sentry-dbid-00995e2a-5e5d-4fee-8e82-8fc733fa21dd");
|
|
7
|
-
} catch {}
|
|
8
|
-
})();
|
|
9
|
-
import "./rolldown-runtime-Bb8iYlSJ.js";
|
|
10
|
-
import { t as e } from "./react-CDDaD-I1.js";
|
|
11
|
-
import { t } from "./jsx-runtime-z-VgZsNI.js";
|
|
12
|
-
import "./i18n-ST-5I_Xd.js";
|
|
13
|
-
import { Qn as n, T as r, o as i, w as a } from "./store-Dyrv6nnP.js";
|
|
14
|
-
import { n as o } from "./mobx-BGVJo_6r.js";
|
|
15
|
-
import { t as s } from "./KioskStore-D1jnGTbv.js";
|
|
16
|
-
import { t as c } from "./TouchHand-hrkQyTE4.js";
|
|
17
|
-
e();
|
|
18
|
-
var l = t(), u = n(() => (o(() => {
|
|
19
|
-
if (localStorage.getItem("kiosk") === "0") return;
|
|
20
|
-
let e = s.restoreData();
|
|
21
|
-
if (e) return a(e, !0), r(e), i.setResetCameraFn(() => s.resetCamera()), () => {
|
|
22
|
-
i.uiState.setKioskData(null), i.uiState.resetMapSettings(), s.resetCamera();
|
|
23
|
-
};
|
|
24
|
-
}), i.uiState.kiosk && i.uiState.inIdle ? /* @__PURE__ */ (0, l.jsx)(c, {}) : null));
|
|
25
|
-
//#endregion
|
|
26
|
-
export { u as default };
|