@expofp/floorplan 3.6.2 → 3.6.4
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-ZSRF-Q1z.js → CookieConsent-ChSTNV2o.js} +7 -7
- package/dist/browser/{Debug-DSEsxh_P.js → Debug-CtYxftU6.js} +6 -6
- package/dist/browser/{Demo-BTNgsJ_-.js → Demo-Ba3gFoHn.js} +8 -8
- package/dist/browser/{Free-D3LF5091.js → Free-DZaulPbE.js} +8 -8
- package/dist/browser/{Gallery-D1mwmq5C.js → Gallery-CABYA6lf.js} +9 -9
- package/dist/browser/{GpsLoader-DmKqXqL9.js → GpsLoader-jqSyzi9G.js} +8 -8
- package/dist/browser/{KioskStore-DTS4v_JV.js → KioskStore-BJCUfXyg.js} +4 -4
- package/dist/browser/{MaplibreAdapter-34Kr3C9W.js → MaplibreAdapter-BeQp_kEU.js} +8 -8
- package/dist/browser/{Modal-DbPXLjtQ.js → Modal-B-sh8k8h.js} +9 -9
- package/dist/browser/{PermissionNotice-CvQeQwa_.js → PermissionNotice-zq9wbcQr.js} +6 -6
- package/dist/browser/{SetKioskMode-BBE0qDtU.js → SetKioskMode-ogYlu5_k.js} +7 -7
- package/dist/browser/{ShowKiosk-mheds3um.js → ShowKiosk-DcMisNg9.js} +9 -9
- package/dist/browser/{TouchHand-B4mIqzLC.js → TouchHand-Bxso68zc.js} +4 -4
- package/dist/browser/{ViewerMenuPanel-CVnvCFxm.js → ViewerMenuPanel-cd3wAvL9.js} +7 -7
- package/dist/browser/add-debug-secret-listener-DYrGsmki.js +55 -0
- package/dist/browser/{boolean-editor-Bb5t2XPB.js → boolean-editor-DhHXIRID.js} +9 -9
- package/dist/browser/{bootIntercom-BATR_yIY.js → bootIntercom-6JCduxDn.js} +2 -2
- package/dist/browser/{browser-CviKpIfy.js → browser-D-0wtoJb.js} +2 -2
- package/dist/browser/bundle.json +56 -56
- package/dist/browser/{classnames-CX2by52Q.js → classnames-D_Luo7DB.js} +2 -2
- package/dist/browser/{client-BXyUthzf.js → client-vFRN9jfP.js} +4 -4
- package/dist/browser/{components-4FQUI8sY.js → components-BCjfqZ0X.js} +901 -872
- package/dist/browser/{createWayfinding-Va_NuqQL.js → createWayfinding-QMEmja45.js} +6 -6
- package/dist/browser/{debug-overlay-CZHU13q9.js → debug-overlay-wFP9-jvr.js} +10 -10
- package/dist/browser/{debug-ui-7-5RIZWM.js → debug-ui-HzQHV3lu.js} +6 -6
- package/dist/browser/{dist-CVNhUaq3.js → dist-BnPbFm48.js} +5 -5
- package/dist/browser/{dist-DG8u-mQZ.js → dist-C1N9CcMO.js} +3 -3
- package/dist/browser/{dist-4xGj4NV4.js → dist-DFhYAUMd.js} +6 -6
- package/dist/browser/{efp-debug-init-Ctr88BQb.js → efp-debug-init-w6L2y-KU.js} +2 -2
- package/dist/browser/{enum-editor-Ckc2LXe7.js → enum-editor-BzDYHaY3.js} +11 -11
- package/dist/browser/{event-not-found-DJwPDXky.js → event-not-found-CYlSjTzY.js} +1 -1
- package/dist/browser/{exports-CZ-XCWqS.js → exports-7IXnL82j.js} +1 -1
- package/dist/browser/{favicon-BggFInUv.js → favicon-DqURNiJk.js} +1 -1
- package/dist/browser/{fetch-retry.umd-DJyjVlwJ.js → fetch-retry.umd-CKW7ipsT.js} +2 -2
- package/dist/browser/{flex-CTRfJSaY.js → flex-CiGk6qrb.js} +5 -5
- package/dist/browser/{floorplan.loader-CqNxmYix.js → floorplan.loader-Xgagjuq_.js} +11 -11
- package/dist/browser/{floorplan.ready-BIf3Y3LG.js → floorplan.ready-hF0bLyPL.js} +11 -11
- package/dist/browser/{fuse-DhhWnJBs.js → fuse-BHUMt0eh.js} +2 -2
- package/dist/browser/{i18n-DUFGqwW5.js → i18n-CER1YJOH.js} +3 -3
- package/dist/browser/index.js +11 -11
- package/dist/browser/{jsx-runtime-CWOs0Qc-.js → jsx-runtime-tUR8uG9d.js} +2 -2
- package/dist/browser/{lib-TlINfi1R.js → lib-D-OJfHoA.js} +4 -4
- package/dist/browser/locales/ar.json +2 -2
- package/dist/browser/locales/de.json +2 -2
- package/dist/browser/locales/es.json +2 -2
- package/dist/browser/locales/fr.json +2 -2
- package/dist/browser/locales/he.json +2 -2
- package/dist/browser/locales/it.json +2 -2
- package/dist/browser/locales/kk.json +2 -2
- package/dist/browser/locales/ko.json +2 -2
- package/dist/browser/locales/mn.json +2 -2
- package/dist/browser/locales/nl.json +2 -2
- package/dist/browser/locales/pl.json +2 -2
- package/dist/browser/locales/pt.json +2 -2
- package/dist/browser/locales/ru.json +2 -2
- package/dist/browser/locales/sv.json +2 -2
- package/dist/browser/locales/th.json +2 -2
- package/dist/browser/locales/tr.json +2 -2
- package/dist/browser/locales/uk.json +2 -2
- package/dist/browser/locales/vi.json +2 -2
- package/dist/browser/locales/zh.json +2 -2
- package/dist/browser/{main-GWcav0sv.js → main-DDJAZo0g.js} +1 -1
- package/dist/browser/{mobx-CiBJ5p3c.js → mobx-DkBqHGBP.js} +4 -4
- package/dist/browser/{particles.min-B_vAveS5.js → particles.min-CVRVh40u.js} +2 -2
- package/dist/browser/{prop-types-BZtjr3OX.js → prop-types-DcevPktu.js} +2 -2
- package/dist/browser/{react-D0-X4OYw.js → react-D5535B3x.js} +2 -2
- package/dist/browser/{react-dom-DkGs-1QR.js → react-dom-CQ6MwmH4.js} +3 -3
- package/dist/browser/{reset-all-settings-BgZSbtYq.js → reset-all-settings-cD4Jh2GH.js} +7 -7
- package/dist/browser/{rolldown-runtime-BZLSBERu.js → rolldown-runtime-CrcNOSwI.js} +1 -1
- package/dist/browser/{settings-D2fs5RAZ.js → settings-8JwF_ZI8.js} +2 -2
- package/dist/browser/{settings-item-BAk3hZ8C.js → settings-item-Ce9PfS42.js} +6 -6
- package/dist/browser/{storage-BtUQQ0Mh.js → storage-CZApkGS3.js} +4 -4
- package/dist/browser/{store-CGUHiMou.js → store-yh0_fbv3.js} +624 -618
- package/dist/browser/{string-editor-Ju2YiTU0.js → string-editor-CxIM2t60.js} +7 -7
- package/dist/browser/{theme-DkeNDcuT.js → theme-BN45WcNj.js} +8 -8
- package/dist/browser/{ui-h2M-9TcE.js → ui-BM7OVSgV.js} +8 -8
- package/dist/browser/{useRenderTarget-0XNbPVbS.js → useRenderTarget-BvUkedi5.js} +4 -4
- package/dist/esm/components/Autocomplete.d.ts +4 -3
- package/dist/esm/components/Autocomplete.js +1 -1
- package/dist/esm/components/Event.js +1 -1
- package/dist/esm/components/Exhibitor.js +1 -1
- package/dist/esm/components/Map/drawing/config/config-booth-bg.js +1 -1
- package/dist/esm/components/MultiSelectGroups.js +1 -1
- package/dist/esm/components/RoutePlanner/RoutePlannerStartPoint.js +1 -1
- package/dist/esm/components/Schedule.d.ts +0 -1
- package/dist/esm/components/Schedule.js +1 -1
- package/dist/esm/components/ShowMoreButton.d.ts +9 -0
- package/dist/esm/components/ShowMoreButton.js +1 -0
- package/dist/esm/components/Wayfinding.js +1 -1
- package/dist/esm/components/WayfindingTemplate.d.ts +5 -5
- package/dist/esm/components/WayfindingTemplate.js +1 -1
- package/dist/esm/components/index.d.ts +1 -0
- package/dist/esm/components/index.js +1 -1
- package/dist/esm/components/utils/getDescription.d.ts +19 -0
- package/dist/esm/components/utils/getDescription.js +1 -0
- package/dist/esm/store/RouteStore.d.ts +1 -0
- package/dist/esm/store/RouteStore.js +1 -1
- package/package.json +3 -3
- package/dist/browser/add-debug-secret-listener-xG3TxEGX.js +0 -45
|
@@ -1 +1 @@
|
|
|
1
|
-
import{__esDecorate as i,__runInitializers as n}from"tslib";import{action as h,computed as x,observable as f}from"mobx";import{Point as We,lineLength as Ce}from"simple-geometry";import u,{layersStore as S}from".";import{fpGeo as E}from"../data/fpGeo";import P from"../core/Rect";import{GaEventActions as Xe,sendEventToGa as Ye}from"../tools/gtag";import{convertGpsToLocal as Ge,isValidPointCoords as Oe,calculateRelativeBearing as He}from"../utils/gps";import{getLayerSvg as Je,svgArea as k}from"../data/svg";import{createWayfindingEngine as Qe}from"../wayfinding/core";import{CURRENT_LOCATION_NAME as et,CURRENT_POSITION_POINT_ID as tt,KIOSK_ANCHOR_POINT_ID as st,boothToEndpoint as Fe,graphDataSource as Ne,toArbitraryPoint as Be}from"../wayfinding/adapters";import{getName as at}from"../components/Kiosk/SetKiosk";import{BoothBase as v}from"./BoothStore";import{LayersMode as it}from"./LayerStore";import{uiState as _}from"./index";import{calcSpeed as Ue}from"../utils/calcSpeed";import{calcTravelTime as Ze}from"../utils/calcTravelTime";import{DEFAULT_UNITS as qe,ORIENTATION_GRANTED_KEY as rt}from"../constants";import{areLayersEnabled as nt}from"../utils/areLayersEnabled";import $e from"../data";import Ve from"../tools/logger";const b=s=>typeof s=="string"?Number(s.replace(",",".")):s;let ot=(()=>{let s=[],r,l=[],p=[],y,R=[],g=[],z,D=[],I=[],A,w=[],M=[],C,G=[],O=[],F,N=[],B=[],U,Z=[],q=[],$,V=[],K=[],j,W=[],X=[],Y,H=[],J=[],Q,ee=[],te=[],se,ae=[],ie=[],re,ne=[],oe=[],le,ce,ue,de,fe,me,he,pe,_e,ye,ge,ke,be,ve=[],Re=[],xe,Le,Te,Se,Ee,Pe,ze=[],De=[],Ie,Ae,we;return class{static{const t=typeof Symbol=="function"&&Symbol.metadata?Object.create(null):void 0;r=[f],y=[f],z=[f],A=[f],C=[f],F=[f],U=[f],$=[f],j=[f],Y=[f],Q=[f],se=[f],re=[f],le=[x],ce=[h],ue=[h],de=[h],fe=[x({keepAlive:!0})],me=[h],he=[h],pe=[x({keepAlive:!0})],_e=[x({keepAlive:!0})],ye=[h],ge=[h],ke=[h],be=[f],xe=[x],Le=[h],Te=[h],Se=[h],Ee=[h],Pe=[f],Ie=[h],Ae=[x({keepAlive:!0})],we=[h],i(this,null,le,{kind:"getter",name:"canFindLocation",static:!1,private:!1,access:{has:e=>"canFindLocation"in e,get:e=>e.canFindLocation},metadata:t},null,s),i(this,null,ce,{kind:"method",name:"selectRoute",static:!1,private:!1,access:{has:e=>"selectRoute"in e,get:e=>e.selectRoute},metadata:t},null,s),i(this,null,ue,{kind:"method",name:"rebuildRouteFromPosition",static:!1,private:!1,access:{has:e=>"rebuildRouteFromPosition"in e,get:e=>e.rebuildRouteFromPosition},metadata:t},null,s),i(this,null,de,{kind:"method",name:"setStartPoint",static:!1,private:!1,access:{has:e=>"setStartPoint"in e,get:e=>e.setStartPoint},metadata:t},null,s),i(this,null,fe,{kind:"getter",name:"pathLayers",static:!1,private:!1,access:{has:e=>"pathLayers"in e,get:e=>e.pathLayers},metadata:t},null,s),i(this,null,me,{kind:"method",name:"setMarkers",static:!1,private:!1,access:{has:e=>"setMarkers"in e,get:e=>e.setMarkers},metadata:t},null,s),i(this,null,he,{kind:"method",name:"selectMarker",static:!1,private:!1,access:{has:e=>"selectMarker"in e,get:e=>e.selectMarker},metadata:t},null,s),i(this,null,pe,{kind:"getter",name:"selectedMarkers",static:!1,private:!1,access:{has:e=>"selectedMarkers"in e,get:e=>e.selectedMarkers},metadata:t},null,s),i(this,null,_e,{kind:"getter",name:"layers",static:!1,private:!1,access:{has:e=>"layers"in e,get:e=>e.layers},metadata:t},null,s),i(this,null,ye,{kind:"method",name:"clickRoute",static:!1,private:!1,access:{has:e=>"clickRoute"in e,get:e=>e.clickRoute},metadata:t},null,s),i(this,null,ge,{kind:"method",name:"selectCurrentPosition",static:!1,private:!1,access:{has:e=>"selectCurrentPosition"in e,get:e=>e.selectCurrentPosition},metadata:t},null,s),i(this,null,ke,{kind:"method",name:"findLocation",static:!1,private:!1,access:{has:e=>"findLocation"in e,get:e=>e.findLocation},metadata:t},null,s),i(this,null,xe,{kind:"getter",name:"routeInfo",static:!1,private:!1,access:{has:e=>"routeInfo"in e,get:e=>e.routeInfo},metadata:t},null,s),i(this,null,Le,{kind:"method",name:"updateRoute",static:!1,private:!1,access:{has:e=>"updateRoute"in e,get:e=>e.updateRoute},metadata:t},null,s),i(this,null,Te,{kind:"method",name:"updateRouteDistance",static:!1,private:!1,access:{has:e=>"updateRouteDistance"in e,get:e=>e.updateRouteDistance},metadata:t},null,s),i(this,null,Se,{kind:"method",name:"updateRoutePoints",static:!1,private:!1,access:{has:e=>"updateRoutePoints"in e,get:e=>e.updateRoutePoints},metadata:t},null,s),i(this,null,Ee,{kind:"method",name:"checkRoutes",static:!1,private:!1,access:{has:e=>"checkRoutes"in e,get:e=>e.checkRoutes},metadata:t},null,s),i(this,null,Ie,{kind:"method",name:"setGpsTrackingEnabled",static:!1,private:!1,access:{has:e=>"setGpsTrackingEnabled"in e,get:e=>e.setGpsTrackingEnabled},metadata:t},null,s),i(this,null,Ae,{kind:"getter",name:"gpsEnabled",static:!1,private:!1,access:{has:e=>"gpsEnabled"in e,get:e=>e.gpsEnabled},metadata:t},null,s),i(this,null,we,{kind:"method",name:"setOnlyAccessible",static:!1,private:!1,access:{has:e=>"setOnlyAccessible"in e,get:e=>e.setOnlyAccessible},metadata:t},null,s),i(null,null,r,{kind:"field",name:"routeLines",static:!1,private:!1,access:{has:e=>"routeLines"in e,get:e=>e.routeLines,set:(e,a)=>{e.routeLines=a}},metadata:t},l,p),i(null,null,y,{kind:"field",name:"routeDistance",static:!1,private:!1,access:{has:e=>"routeDistance"in e,get:e=>e.routeDistance,set:(e,a)=>{e.routeDistance=a}},metadata:t},R,g),i(null,null,z,{kind:"field",name:"currentPosition",static:!1,private:!1,access:{has:e=>"currentPosition"in e,get:e=>e.currentPosition,set:(e,a)=>{e.currentPosition=a}},metadata:t},D,I),i(null,null,A,{kind:"field",name:"requestCompass",static:!1,private:!1,access:{has:e=>"requestCompass"in e,get:e=>e.requestCompass,set:(e,a)=>{e.requestCompass=a}},metadata:t},w,M),i(null,null,C,{kind:"field",name:"iconType",static:!1,private:!1,access:{has:e=>"iconType"in e,get:e=>e.iconType,set:(e,a)=>{e.iconType=a}},metadata:t},G,O),i(null,null,F,{kind:"field",name:"tempToBooth",static:!1,private:!1,access:{has:e=>"tempToBooth"in e,get:e=>e.tempToBooth,set:(e,a)=>{e.tempToBooth=a}},metadata:t},N,B),i(null,null,U,{kind:"field",name:"focusEnabled",static:!1,private:!1,access:{has:e=>"focusEnabled"in e,get:e=>e.focusEnabled,set:(e,a)=>{e.focusEnabled=a}},metadata:t},Z,q),i(null,null,$,{kind:"field",name:"prevZ",static:!1,private:!1,access:{has:e=>"prevZ"in e,get:e=>e.prevZ,set:(e,a)=>{e.prevZ=a}},metadata:t},V,K),i(null,null,j,{kind:"field",name:"markersData",static:!1,private:!1,access:{has:e=>"markersData"in e,get:e=>e.markersData,set:(e,a)=>{e.markersData=a}},metadata:t},W,X),i(null,null,Y,{kind:"field",name:"prevMarkers",static:!1,private:!1,access:{has:e=>"prevMarkers"in e,get:e=>e.prevMarkers,set:(e,a)=>{e.prevMarkers=a}},metadata:t},H,J),i(null,null,Q,{kind:"field",name:"showAccessible",static:!1,private:!1,access:{has:e=>"showAccessible"in e,get:e=>e.showAccessible,set:(e,a)=>{e.showAccessible=a}},metadata:t},ee,te),i(null,null,se,{kind:"field",name:"onlyAccessible",static:!1,private:!1,access:{has:e=>"onlyAccessible"in e,get:e=>e.onlyAccessible,set:(e,a)=>{e.onlyAccessible=a}},metadata:t},ae,ie),i(null,null,re,{kind:"field",name:"currentRouteLayer",static:!1,private:!1,access:{has:e=>"currentRouteLayer"in e,get:e=>e.currentRouteLayer,set:(e,a)=>{e.currentRouteLayer=a}},metadata:t},ne,oe),i(null,null,be,{kind:"field",name:"routeUnits",static:!1,private:!1,access:{has:e=>"routeUnits"in e,get:e=>e.routeUnits,set:(e,a)=>{e.routeUnits=a}},metadata:t},ve,Re),i(null,null,Pe,{kind:"field",name:"isGpsTrackingEnabled",static:!1,private:!1,access:{has:e=>"isGpsTrackingEnabled"in e,get:e=>e.isGpsTrackingEnabled,set:(e,a)=>{e.isGpsTrackingEnabled=a}},metadata:t},ze,De),t&&Object.defineProperty(this,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:t})}rootStore=n(this,s);cpTimeout;routeLines=n(this,l,[]);routeDistance=(n(this,p),n(this,R,null));currentPosition=(n(this,g),n(this,D,null));requestCompass=(n(this,I),n(this,w,!1));iconType=(n(this,M),n(this,G,0));tempToBooth=(n(this,O),n(this,N,null));focusEnabled=(n(this,B),n(this,Z,!0));prevZ=(n(this,q),n(this,V,null));markersData=(n(this,K),n(this,W,{icons:[],markers:[]}));prevMarkers=(n(this,X),n(this,H,[]));showAccessible=(n(this,J),n(this,ee,!!Ne.getLines().find(t=>t.unaccessible)));onlyAccessible=(n(this,te),n(this,ae,!1));currentRouteLayer=(n(this,ie),n(this,ne,null));constructor(t){n(this,De),this.rootStore=t,this.focusEnabled=!window.location.search}get canFindLocation(){return!!_.kioskData||!!this.currentPosition}selectRoute(t,e=!0,a=!1){if(e&&(_.list={type:"search",text:"",focused:!1}),t&&!t.from&&t.to){const d=this.resolveFallbackFrom();d&&(t=new Route(d,t.to,t.waypoints))}t?.from&&t?.to&&t.from===t.to&&(t=null);let o=[];t?.from&&t?.to&&window.setTimeout(()=>{this.rootStore.showMap()},navigator.userAgent.toLowerCase().indexOf("android")>-1?400:50),t?.from instanceof v&&t.from.visible&&o.push(t.from),t?.to instanceof v&&t.to.visible&&(this.tempToBooth=null,o.push(t.to)),!t&&u.fp.onDirection&&u.fp.onDirection(null);const c=()=>{if(this.rootStore.moveToList(o),_.details=t,t&&(!t.from||!t.to)&&u.showOverlay(),t?.to&&t?.from){const d=lt(t.from);d&&this.rootStore.layerStore.updateVisibility(d,!0)}if(!this.currentRouteLayer){const d=Ke(this.rootStore.layerStore,t?.from),m=Ke(this.rootStore.layerStore,t?.to);d?this.currentRouteLayer=d:m&&(this.currentRouteLayer=m)}e&&t?.from&&t?.to&&Ye(Xe.ClickDirections,`${t?.from?"From "+t.from.name:""} ${t?.to?"To "+t.to.name:""}`)};a?c():setTimeout(c,200)}rebuildRouteFromPosition(t){const e=_.selectedRoute;e?.to&&this.selectRoute(new Route(t,e.to,e.waypoints),!1,!0)}resolveFallbackFrom(){if(this.currentPosition)return Be(this.currentPosition,et,tt);const t=_.kioskData;return t?Be({x:t.x,y:t.y,z:t.z},at(),st):null}setStartPoint(t){const e=_.selectedRoute;if(e?.to&&!e?.from&&t){const a=new Route(t,e.to,e.waypoints);this.selectRoute(a)}}get pathLayers(){return u.routeStore.routeLines?.map(t=>t.p0.layer)?.filter((t,e,a)=>a.indexOf(t)===e).reverse().map((t,e)=>({id:e+1,layer:u.layerStore.findLayer(t)}))}getNearestBooth(t){if(!t)return null;let e=this.rootStore.layerStore.findLayer(t.z);const a=t.lat&&t.lng?Ge(t,E.properties.config):t;return this.rootStore.boothStore.booths.filter(o=>S.mode===it.Default||!e?o.visible&&o.rect:o.rect&&(typeof t.z!="number"&&!t.z&&o.visible||e.name===o.layer?.name)).sort((o,c)=>Ce(a,{x:o.rect.cx,y:o.rect.cy})-Ce(a,{x:c.rect.cx,y:c.rect.cy}))[0]||null}setMarkers(t){this.markersData.markers=(t?.markers??[]).map(ct),this.markersData.icons=t?.icons??[]}selectMarker(t,e){const a=this.markersData.markers.find(c=>c.id===t);this.markersData.markers.forEach(c=>c.active=!1),a&&(a.active=!0);let o=u.layerStore.findLayer(a?.z);if(e&&a){const c=u.rendererService.renderer;return o&&!o?.visible&&S.updateVisibility(o,!0),c?c.controls.panTo(a.x,a.y):(Ve.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 u.routeStore.routeLines?.map(e=>e.p0.layer).reverse().forEach(e=>{t.indexOf(e)===-1&&t.push(e)}),t.map(e=>u.layerStore.layers.find(a=>a.name===e))}clickRoute(t,e){window.__resett&&window.__resett(),this.rootStore.uiState.menu=null,_.list.type==="route-planner"&&(_.list={type:"search",text:"",focused:!1}),this.selectRoute(new Route(t,e))}selectCurrentPosition(t,e=!0,a){clearTimeout(this.cpTimeout),t&&(t.x=b(t.x),t.y=b(t.y),t.lat=b(t.lat),t.lng=b(t.lng),nt()||(t.z=null));const o=e&&this.rootStore.uiState.details&&!(this.rootStore.uiState.details instanceof Route),c=e&&!o&&(this.focusEnabled||this.prevZ!=t?.z);this.focusEnabled&&(this.focusEnabled=!1),this.prevZ=t?.z?.toString(),this.iconType=a?1:0;const d=t?ut(t):null;if(!d){this.currentPosition=null;return}const m=u.layerStore.findLayer(t.z),L=new CurrentPosition(d.x,d.y,m?.name||this.currentRouteLayer?.name,He(d),t.lat,t.lng);let Me=!this.routeLines?.length;if(m&&this.routeLines?.length&&(Me=!!this.routeLines.find(T=>T.p0.layer===m.name||T.p1.layer===m.name)),c&&Me){const T=u.rendererService.renderer;if(m&&!m?.visible&&S.updateVisibility(m,!0),!T){Ve.warn("Renderer is not initialized. Cannot pan to current position.");return}T.controls.panTo(L.x,L.y)}this.currentPosition=L,this.gpsEnabled||(this.cpTimeout=setTimeout(()=>{this.currentPosition&&this.selectCurrentPosition(null,!1)},30*1e3))}findLocation(){if(!this.canFindLocation)return;if(u.maplibreStore.showMaplibre){_.moveToLocation=!0;return}const t=this.currentPosition??_.kioskData;if(!t)return;this.currentPosition&&localStorage.getItem(rt)==="false"&&(u.routeStore.requestCompass=!0);const e=P.fromCxcywh(t.x,t.y,100,100);let a;if(e.intersects(k))a=e;else{const c=Math.max(k.x1,Math.min(t.x,k.x2)),d=Math.max(k.y1,Math.min(t.y,k.y2)),m=Math.min(k.w,k.h)*.3,L=P.fromCxcywh(c,d,m,m).getIntersection(k);a=P.fromMultiple([e,L])}_.moveToRect=a;const o=u.layerStore.findLayer(t.z);o&&S.updateVisibility(o,!0)}routeUnits=(n(this,oe),n(this,ve,qe));get routeInfo(){const t=this.routeDistance,e=this.routeUnits;return t?{distance:`${t}${e}`,units:e,time:Ze(t,Ue(e))}:null}updateRoute(t,e){!t?.length&&!this.routeLines.length||(this.routeLines=t,this.updateRoutePoints())}updateRouteDistance(t){if(t==null)return;const e=Je(),a=(e.getAttribute("units")||qe).toLowerCase?.().trim(),o=e.getAttribute("fp-ver")?.startsWith("5")??!1;this.routeDistance=Math.round(t/(o?1:10)),this.routeUnits=a,this.updateRoutePoints()}updateRoutePoints(){const t=_.selectedRoute,e=this.routeDistance,a=this.routeUnits;u.fp.onDirection&&setTimeout(()=>{u.fp.onDirection({from:je(t?.from??null),to:je(t?.to??null),lines:this.routeLines,distance:`${e}${a}`,units:a,time:Ze(e,Ue(a))})},200)}checkRoutes(){const t=Qe(Ne),e=u.boothStore.booths;console.info(`Route check started ${e.length}.... `);for(let a=0;a<e.length;a++){const o=e[a];for(let c=a+1;c<e.length;c++){const d=e[c];t.buildRoute(Fe(o),Fe(d)).lines.length||console.warn(`No route found from ${o.name} to ${d.name}`)}}console.info("Route check done....")}isGpsTrackingEnabled=(n(this,Re),n(this,ze,!0));setGpsTrackingEnabled(t){this.isGpsTrackingEnabled=t}get gpsEnabled(){return $e.autoTrackingGps&&this.isGpsTrackingEnabled&&!$e.enableIPS}setOnlyAccessible(t){this.onlyAccessible=t}}})();export default ot;function lt(s){if(s)return s instanceof v?s.layer?.name:s.layer}function Ke(s,r){return r?r instanceof v?r.layer??null:s.findLayer(r.layer):null}function ct(s){return{...s,x:b(s.x),y:b(s.y),lat:b(s.lat),lng:b(s.lng)}}function ut(s){let r=null,l=null;return E&&(r=E.properties.config),r&&s.x>=r.p0.x&&s.x<=r.p2.x&&s.y>=r.p0.y&&s.y<=r.p2.y?l={...s}:r&&Oe(s.lat)&&Oe(s.lng)?l=Ge(s,r):r||(l=s),l||null}export function findBooth(s){return u.boothStore.findBooth(s)||u.exhibitorStore.findExhibitor(s)?.booths[0]}export function findEntityByExternalId(s){const r=u.boothStore.boothByExternalId.get(s);if(r)return{type:"booth",entity:r};const l=u.exhibitorStore.exhibitorByExternalId.get(s);if(l)return{type:"exhibitor",entity:l}}export function separateExternalIds(s){const r=[],l=[];for(const p of s){const y=findEntityByExternalId(p);y&&(y.type==="booth"?r.push(p):l.push(p))}return{boothExternalIds:r,exhibitorExternalIds:l}}export function extractRoute(s,r,l){return new Route(findBooth(s)??null,findBooth(r)??null,l?.map(p=>findBooth(p)))}export class Route{from;to;waypoints;constructor(r,l,p){this.from=r,this.to=l,this.waypoints=p;const y=r instanceof v?r.id:void 0,R=l instanceof v?l.id:void 0;this.waypoints=p?.filter(g=>g&&g.id!==y&&g.id!==R)}}function je(s){return s?s instanceof v?{id:s.id,name:s.name,externalId:s.externalId,layer:{name:s.layer?.name,description:s.layer?.description}}:{id:Number.MAX_SAFE_INTEGER,name:s.name,externalId:void 0,layer:{name:s.layer,description:void 0}}:null}export class CurrentPosition extends We{x;y;z;angle;lat;lng;constructor(r,l,p,y,R,g){super(r,l),this.x=r,this.y=l,this.z=p,this.angle=y,this.lat=R,this.lng=g}}
|
|
1
|
+
import{__esDecorate as a,__runInitializers as r}from"tslib";import{action as m,computed as x,observable as f}from"mobx";import{Point as He,lineLength as Fe}from"simple-geometry";import u,{layersStore as T}from".";import{fpGeo as S}from"../data/fpGeo";import P from"../core/Rect";import{GaEventActions as Je,sendEventToGa as Qe}from"../tools/gtag";import{convertGpsToLocal as Ne,isValidPointCoords as Be,calculateRelativeBearing as et}from"../utils/gps";import{getLayerSvg as tt,svgArea as k}from"../data/svg";import{createWayfindingEngine as st}from"../wayfinding/core";import{CURRENT_LOCATION_NAME as it,CURRENT_POSITION_POINT_ID as at,KIOSK_ANCHOR_POINT_ID as rt,boothToEndpoint as Ue,graphDataSource as Ze,toArbitraryPoint as qe}from"../wayfinding/adapters";import{getName as nt}from"../components/Kiosk/SetKiosk";import{BoothBase as R}from"./BoothStore";import{LayersMode as ot}from"./LayerStore";import{uiState as _}from"./index";import{calcSpeed as $e}from"../utils/calcSpeed";import{calcTravelTime as Ve}from"../utils/calcTravelTime";import{DEFAULT_UNITS as Ke,ORIENTATION_GRANTED_KEY as lt}from"../constants";import{areLayersEnabled as ct}from"../utils/areLayersEnabled";import je from"../data";import We from"../tools/logger";const b=s=>typeof s=="string"?Number(s.replace(",",".")):s;let ut=(()=>{let s=[],n,l=[],p=[],y,v=[],g=[],z,D=[],I=[],A,w=[],M=[],C,G=[],O=[],F,N=[],B=[],U,Z=[],q=[],$,V=[],K=[],j,W=[],X=[],Y,H=[],J=[],Q,ee=[],te=[],se,ie=[],ae=[],re,ne=[],oe=[],le,ce=[],ue=[],de,fe,he,me,pe,_e,ye,ge,ke,be,Re,ve,xe,Ee=[],Le=[],Te,Se,Pe,ze,De,Ie,Ae=[],we=[],Me,Ce,Ge;return class{static{const t=typeof Symbol=="function"&&Symbol.metadata?Object.create(null):void 0;n=[f],y=[f],z=[f],A=[f],C=[f],F=[f],U=[f],$=[f],j=[f],Y=[f],Q=[f],se=[f],re=[f],le=[f],de=[x],fe=[m],he=[m],me=[m],pe=[x({keepAlive:!0})],_e=[m],ye=[m],ge=[x({keepAlive:!0})],ke=[x({keepAlive:!0})],be=[m],Re=[m],ve=[m],xe=[f],Te=[x],Se=[m],Pe=[m],ze=[m],De=[m],Ie=[f],Me=[m],Ce=[x({keepAlive:!0})],Ge=[m],a(this,null,de,{kind:"getter",name:"canFindLocation",static:!1,private:!1,access:{has:e=>"canFindLocation"in e,get:e=>e.canFindLocation},metadata:t},null,s),a(this,null,fe,{kind:"method",name:"selectRoute",static:!1,private:!1,access:{has:e=>"selectRoute"in e,get:e=>e.selectRoute},metadata:t},null,s),a(this,null,he,{kind:"method",name:"rebuildRouteFromPosition",static:!1,private:!1,access:{has:e=>"rebuildRouteFromPosition"in e,get:e=>e.rebuildRouteFromPosition},metadata:t},null,s),a(this,null,me,{kind:"method",name:"setStartPoint",static:!1,private:!1,access:{has:e=>"setStartPoint"in e,get:e=>e.setStartPoint},metadata:t},null,s),a(this,null,pe,{kind:"getter",name:"pathLayers",static:!1,private:!1,access:{has:e=>"pathLayers"in e,get:e=>e.pathLayers},metadata:t},null,s),a(this,null,_e,{kind:"method",name:"setMarkers",static:!1,private:!1,access:{has:e=>"setMarkers"in e,get:e=>e.setMarkers},metadata:t},null,s),a(this,null,ye,{kind:"method",name:"selectMarker",static:!1,private:!1,access:{has:e=>"selectMarker"in e,get:e=>e.selectMarker},metadata:t},null,s),a(this,null,ge,{kind:"getter",name:"selectedMarkers",static:!1,private:!1,access:{has:e=>"selectedMarkers"in e,get:e=>e.selectedMarkers},metadata:t},null,s),a(this,null,ke,{kind:"getter",name:"layers",static:!1,private:!1,access:{has:e=>"layers"in e,get:e=>e.layers},metadata:t},null,s),a(this,null,be,{kind:"method",name:"clickRoute",static:!1,private:!1,access:{has:e=>"clickRoute"in e,get:e=>e.clickRoute},metadata:t},null,s),a(this,null,Re,{kind:"method",name:"selectCurrentPosition",static:!1,private:!1,access:{has:e=>"selectCurrentPosition"in e,get:e=>e.selectCurrentPosition},metadata:t},null,s),a(this,null,ve,{kind:"method",name:"findLocation",static:!1,private:!1,access:{has:e=>"findLocation"in e,get:e=>e.findLocation},metadata:t},null,s),a(this,null,Te,{kind:"getter",name:"routeInfo",static:!1,private:!1,access:{has:e=>"routeInfo"in e,get:e=>e.routeInfo},metadata:t},null,s),a(this,null,Se,{kind:"method",name:"updateRoute",static:!1,private:!1,access:{has:e=>"updateRoute"in e,get:e=>e.updateRoute},metadata:t},null,s),a(this,null,Pe,{kind:"method",name:"updateRouteDistance",static:!1,private:!1,access:{has:e=>"updateRouteDistance"in e,get:e=>e.updateRouteDistance},metadata:t},null,s),a(this,null,ze,{kind:"method",name:"updateRoutePoints",static:!1,private:!1,access:{has:e=>"updateRoutePoints"in e,get:e=>e.updateRoutePoints},metadata:t},null,s),a(this,null,De,{kind:"method",name:"checkRoutes",static:!1,private:!1,access:{has:e=>"checkRoutes"in e,get:e=>e.checkRoutes},metadata:t},null,s),a(this,null,Me,{kind:"method",name:"setGpsTrackingEnabled",static:!1,private:!1,access:{has:e=>"setGpsTrackingEnabled"in e,get:e=>e.setGpsTrackingEnabled},metadata:t},null,s),a(this,null,Ce,{kind:"getter",name:"gpsEnabled",static:!1,private:!1,access:{has:e=>"gpsEnabled"in e,get:e=>e.gpsEnabled},metadata:t},null,s),a(this,null,Ge,{kind:"method",name:"setOnlyAccessible",static:!1,private:!1,access:{has:e=>"setOnlyAccessible"in e,get:e=>e.setOnlyAccessible},metadata:t},null,s),a(null,null,n,{kind:"field",name:"routeLines",static:!1,private:!1,access:{has:e=>"routeLines"in e,get:e=>e.routeLines,set:(e,i)=>{e.routeLines=i}},metadata:t},l,p),a(null,null,y,{kind:"field",name:"routeDistance",static:!1,private:!1,access:{has:e=>"routeDistance"in e,get:e=>e.routeDistance,set:(e,i)=>{e.routeDistance=i}},metadata:t},v,g),a(null,null,z,{kind:"field",name:"currentPosition",static:!1,private:!1,access:{has:e=>"currentPosition"in e,get:e=>e.currentPosition,set:(e,i)=>{e.currentPosition=i}},metadata:t},D,I),a(null,null,A,{kind:"field",name:"requestCompass",static:!1,private:!1,access:{has:e=>"requestCompass"in e,get:e=>e.requestCompass,set:(e,i)=>{e.requestCompass=i}},metadata:t},w,M),a(null,null,C,{kind:"field",name:"iconType",static:!1,private:!1,access:{has:e=>"iconType"in e,get:e=>e.iconType,set:(e,i)=>{e.iconType=i}},metadata:t},G,O),a(null,null,F,{kind:"field",name:"tempToBooth",static:!1,private:!1,access:{has:e=>"tempToBooth"in e,get:e=>e.tempToBooth,set:(e,i)=>{e.tempToBooth=i}},metadata:t},N,B),a(null,null,U,{kind:"field",name:"focusEnabled",static:!1,private:!1,access:{has:e=>"focusEnabled"in e,get:e=>e.focusEnabled,set:(e,i)=>{e.focusEnabled=i}},metadata:t},Z,q),a(null,null,$,{kind:"field",name:"prevZ",static:!1,private:!1,access:{has:e=>"prevZ"in e,get:e=>e.prevZ,set:(e,i)=>{e.prevZ=i}},metadata:t},V,K),a(null,null,j,{kind:"field",name:"markersData",static:!1,private:!1,access:{has:e=>"markersData"in e,get:e=>e.markersData,set:(e,i)=>{e.markersData=i}},metadata:t},W,X),a(null,null,Y,{kind:"field",name:"prevMarkers",static:!1,private:!1,access:{has:e=>"prevMarkers"in e,get:e=>e.prevMarkers,set:(e,i)=>{e.prevMarkers=i}},metadata:t},H,J),a(null,null,Q,{kind:"field",name:"showAccessible",static:!1,private:!1,access:{has:e=>"showAccessible"in e,get:e=>e.showAccessible,set:(e,i)=>{e.showAccessible=i}},metadata:t},ee,te),a(null,null,se,{kind:"field",name:"onlyAccessible",static:!1,private:!1,access:{has:e=>"onlyAccessible"in e,get:e=>e.onlyAccessible,set:(e,i)=>{e.onlyAccessible=i}},metadata:t},ie,ae),a(null,null,re,{kind:"field",name:"currentRouteLayer",static:!1,private:!1,access:{has:e=>"currentRouteLayer"in e,get:e=>e.currentRouteLayer,set:(e,i)=>{e.currentRouteLayer=i}},metadata:t},ne,oe),a(null,null,le,{kind:"field",name:"currentRouteExhibitor",static:!1,private:!1,access:{has:e=>"currentRouteExhibitor"in e,get:e=>e.currentRouteExhibitor,set:(e,i)=>{e.currentRouteExhibitor=i}},metadata:t},ce,ue),a(null,null,xe,{kind:"field",name:"routeUnits",static:!1,private:!1,access:{has:e=>"routeUnits"in e,get:e=>e.routeUnits,set:(e,i)=>{e.routeUnits=i}},metadata:t},Ee,Le),a(null,null,Ie,{kind:"field",name:"isGpsTrackingEnabled",static:!1,private:!1,access:{has:e=>"isGpsTrackingEnabled"in e,get:e=>e.isGpsTrackingEnabled,set:(e,i)=>{e.isGpsTrackingEnabled=i}},metadata:t},Ae,we),t&&Object.defineProperty(this,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:t})}rootStore=r(this,s);cpTimeout;routeLines=r(this,l,[]);routeDistance=(r(this,p),r(this,v,null));currentPosition=(r(this,g),r(this,D,null));requestCompass=(r(this,I),r(this,w,!1));iconType=(r(this,M),r(this,G,0));tempToBooth=(r(this,O),r(this,N,null));focusEnabled=(r(this,B),r(this,Z,!0));prevZ=(r(this,q),r(this,V,null));markersData=(r(this,K),r(this,W,{icons:[],markers:[]}));prevMarkers=(r(this,X),r(this,H,[]));showAccessible=(r(this,J),r(this,ee,!!Ze.getLines().find(t=>t.unaccessible)));onlyAccessible=(r(this,te),r(this,ie,!1));currentRouteLayer=(r(this,ae),r(this,ne,null));currentRouteExhibitor=(r(this,oe),r(this,ce,null));constructor(t){r(this,we),this.rootStore=t,this.focusEnabled=!window.location.search}get canFindLocation(){return!!_.kioskData||!!this.currentPosition}selectRoute(t,e=!0,i=!1){if(e&&(_.list={type:"search",text:"",focused:!1}),t&&!t.from&&t.to){const d=this.resolveFallbackFrom();d&&(t=new Route(d,t.to,t.waypoints))}t?.from&&t?.to&&t.from===t.to&&(t=null);let o=[];t?.from&&t?.to&&window.setTimeout(()=>{this.rootStore.showMap()},navigator.userAgent.toLowerCase().indexOf("android")>-1?400:50),t?.from instanceof R&&t.from.visible&&o.push(t.from),t?.to instanceof R&&t.to.visible&&(this.tempToBooth=null,o.push(t.to)),!t&&u.fp.onDirection&&u.fp.onDirection(null);const c=()=>{if(this.rootStore.moveToList(o),_.details=t,t&&(!t.from||!t.to)&&u.showOverlay(),t?.to&&t?.from){const d=dt(t.from);d&&this.rootStore.layerStore.updateVisibility(d,!0)}if(!this.currentRouteLayer){const d=Xe(this.rootStore.layerStore,t?.from),h=Xe(this.rootStore.layerStore,t?.to);d?this.currentRouteLayer=d:h&&(this.currentRouteLayer=h)}e&&t?.from&&t?.to&&Qe(Je.ClickDirections,`${t?.from?"From "+t.from.name:""} ${t?.to?"To "+t.to.name:""}`)};i?c():setTimeout(c,200)}rebuildRouteFromPosition(t){const e=_.selectedRoute;e?.to&&this.selectRoute(new Route(t,e.to,e.waypoints),!1,!0)}resolveFallbackFrom(){if(this.currentPosition)return qe(this.currentPosition,it,at);const t=_.kioskData;return t?qe({x:t.x,y:t.y,z:t.z},nt(),rt):null}setStartPoint(t){const e=_.selectedRoute;if(e?.to&&!e?.from&&t){const i=new Route(t,e.to,e.waypoints);this.selectRoute(i)}}get pathLayers(){return u.routeStore.routeLines?.map(t=>t.p0.layer)?.filter((t,e,i)=>i.indexOf(t)===e).reverse().map((t,e)=>({id:e+1,layer:u.layerStore.findLayer(t)}))}getNearestBooth(t){if(!t)return null;let e=this.rootStore.layerStore.findLayer(t.z);const i=t.lat&&t.lng?Ne(t,S.properties.config):t;return this.rootStore.boothStore.booths.filter(o=>T.mode===ot.Default||!e?o.visible&&o.rect:o.rect&&(typeof t.z!="number"&&!t.z&&o.visible||e.name===o.layer?.name)).sort((o,c)=>Fe(i,{x:o.rect.cx,y:o.rect.cy})-Fe(i,{x:c.rect.cx,y:c.rect.cy}))[0]||null}setMarkers(t){this.markersData.markers=(t?.markers??[]).map(ft),this.markersData.icons=t?.icons??[]}selectMarker(t,e){const i=this.markersData.markers.find(c=>c.id===t);this.markersData.markers.forEach(c=>c.active=!1),i&&(i.active=!0);let o=u.layerStore.findLayer(i?.z);if(e&&i){const c=u.rendererService.renderer;return o&&!o?.visible&&T.updateVisibility(o,!0),c?c.controls.panTo(i.x,i.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 u.routeStore.routeLines?.map(e=>e.p0.layer).reverse().forEach(e=>{t.indexOf(e)===-1&&t.push(e)}),t.map(e=>u.layerStore.layers.find(i=>i.name===e))}clickRoute(t,e){window.__resett&&window.__resett(),this.rootStore.uiState.menu=null,_.list.type==="route-planner"&&(_.list={type:"search",text:"",focused:!1}),this.selectRoute(new Route(t,e))}selectCurrentPosition(t,e=!0,i){clearTimeout(this.cpTimeout),t&&(t.x=b(t.x),t.y=b(t.y),t.lat=b(t.lat),t.lng=b(t.lng),ct()||(t.z=null));const o=e&&this.rootStore.uiState.details&&!(this.rootStore.uiState.details instanceof Route),c=e&&!o&&(this.focusEnabled||this.prevZ!=t?.z);this.focusEnabled&&(this.focusEnabled=!1),this.prevZ=t?.z?.toString(),this.iconType=i?1:0;const d=t?ht(t):null;if(!d){this.currentPosition=null;return}const h=u.layerStore.findLayer(t.z),E=new CurrentPosition(d.x,d.y,h?.name||this.currentRouteLayer?.name,et(d),t.lat,t.lng);let Oe=!this.routeLines?.length;if(h&&this.routeLines?.length&&(Oe=!!this.routeLines.find(L=>L.p0.layer===h.name||L.p1.layer===h.name)),c&&Oe){const L=u.rendererService.renderer;if(h&&!h?.visible&&T.updateVisibility(h,!0),!L){We.warn("Renderer is not initialized. Cannot pan to current position.");return}L.controls.panTo(E.x,E.y)}this.currentPosition=E,this.gpsEnabled||(this.cpTimeout=setTimeout(()=>{this.currentPosition&&this.selectCurrentPosition(null,!1)},30*1e3))}findLocation(){if(!this.canFindLocation)return;if(u.maplibreStore.showMaplibre){_.moveToLocation=!0;return}const t=this.currentPosition??_.kioskData;if(!t)return;this.currentPosition&&localStorage.getItem(lt)==="false"&&(u.routeStore.requestCompass=!0);const e=P.fromCxcywh(t.x,t.y,100,100);let i;if(e.intersects(k))i=e;else{const c=Math.max(k.x1,Math.min(t.x,k.x2)),d=Math.max(k.y1,Math.min(t.y,k.y2)),h=Math.min(k.w,k.h)*.3,E=P.fromCxcywh(c,d,h,h).getIntersection(k);i=P.fromMultiple([e,E])}_.moveToRect=i;const o=u.layerStore.findLayer(t.z);o&&T.updateVisibility(o,!0)}routeUnits=(r(this,ue),r(this,Ee,Ke));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=tt(),i=(e.getAttribute("units")||Ke).toLowerCase?.().trim(),o=e.getAttribute("fp-ver")?.startsWith("5")??!1;this.routeDistance=Math.round(t/(o?1:10)),this.routeUnits=i,this.updateRoutePoints()}updateRoutePoints(){const t=_.selectedRoute,e=this.routeDistance,i=this.routeUnits;u.fp.onDirection&&setTimeout(()=>{u.fp.onDirection({from:Ye(t?.from??null),to:Ye(t?.to??null),lines:this.routeLines,distance:`${e}${i}`,units:i,time:Ve(e,$e(i))})},200)}checkRoutes(){const t=st(Ze),e=u.boothStore.booths;console.info(`Route check started ${e.length}.... `);for(let i=0;i<e.length;i++){const o=e[i];for(let c=i+1;c<e.length;c++){const d=e[c];t.buildRoute(Ue(o),Ue(d)).lines.length||console.warn(`No route found from ${o.name} to ${d.name}`)}}console.info("Route check done....")}isGpsTrackingEnabled=(r(this,Le),r(this,Ae,!0));setGpsTrackingEnabled(t){this.isGpsTrackingEnabled=t}get gpsEnabled(){return je.autoTrackingGps&&this.isGpsTrackingEnabled&&!je.enableIPS}setOnlyAccessible(t){this.onlyAccessible=t}}})();export default ut;function dt(s){if(s)return s instanceof R?s.layer?.name:s.layer}function Xe(s,n){return n?n instanceof R?n.layer??null:s.findLayer(n.layer):null}function ft(s){return{...s,x:b(s.x),y:b(s.y),lat:b(s.lat),lng:b(s.lng)}}function ht(s){let n=null,l=null;return S&&(n=S.properties.config),n&&s.x>=n.p0.x&&s.x<=n.p2.x&&s.y>=n.p0.y&&s.y<=n.p2.y?l={...s}:n&&Be(s.lat)&&Be(s.lng)?l=Ne(s,n):n||(l=s),l||null}export function findBooth(s){return u.boothStore.findBooth(s)||u.exhibitorStore.findExhibitor(s)?.booths[0]}export function findEntityByExternalId(s){const n=u.boothStore.boothByExternalId.get(s);if(n)return{type:"booth",entity:n};const l=u.exhibitorStore.exhibitorByExternalId.get(s);if(l)return{type:"exhibitor",entity:l}}export function separateExternalIds(s){const n=[],l=[];for(const p of s){const y=findEntityByExternalId(p);y&&(y.type==="booth"?n.push(p):l.push(p))}return{boothExternalIds:n,exhibitorExternalIds:l}}export function extractRoute(s,n,l){return new Route(findBooth(s)??null,findBooth(n)??null,l?.map(p=>findBooth(p)))}export class Route{from;to;waypoints;constructor(n,l,p){this.from=n,this.to=l,this.waypoints=p;const y=n instanceof R?n.id:void 0,v=l instanceof R?l.id:void 0;this.waypoints=p?.filter(g=>g&&g.id!==y&&g.id!==v)}}function Ye(s){return s?s instanceof R?{id:s.id,name:s.name,externalId:s.externalId,layer:{name:s.layer?.name,description:s.layer?.description}}:{id:Number.MAX_SAFE_INTEGER,name:s.name,externalId:void 0,layer:{name:s.layer,description:void 0}}:null}export class CurrentPosition extends He{x;y;z;angle;lat;lng;constructor(n,l,p,y,v,g){super(n,l),this.x=n,this.y=l,this.z=p,this.angle=y,this.lat=v,this.lng=g}}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@expofp/floorplan",
|
|
3
|
-
"version": "3.6.
|
|
3
|
+
"version": "3.6.4",
|
|
4
4
|
"repository": {
|
|
5
5
|
"type": "git",
|
|
6
6
|
"url": "https://github.com/expofp/efp-app.git",
|
|
@@ -73,8 +73,8 @@
|
|
|
73
73
|
"tslib": "^2.3.0",
|
|
74
74
|
"uuid": "^9.0.1",
|
|
75
75
|
"zod": "4.3.5",
|
|
76
|
-
"@expofp/debug": "3.6.
|
|
77
|
-
"@expofp/resolve": "3.6.
|
|
76
|
+
"@expofp/debug": "3.6.4",
|
|
77
|
+
"@expofp/resolve": "3.6.4"
|
|
78
78
|
},
|
|
79
79
|
"devDependencies": {
|
|
80
80
|
"@babel/plugin-proposal-decorators": "^7.29.7",
|
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
//#region ../debug/src/lib/utils/add-debug-secret-listener.ts
|
|
2
|
-
(function() {
|
|
3
|
-
try {
|
|
4
|
-
var e = typeof window < "u" ? window : typeof global < "u" ? global : typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : {};
|
|
5
|
-
e.SENTRY_RELEASE = { id: "3.6.2" };
|
|
6
|
-
var t = new e.Error().stack;
|
|
7
|
-
t && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[t] = "b784e31c-1ea3-4c6e-8c94-4877fcdc001b", e._sentryDebugIdIdentifier = "sentry-dbid-b784e31c-1ea3-4c6e-8c94-4877fcdc001b");
|
|
8
|
-
} catch {}
|
|
9
|
-
})();
|
|
10
|
-
var e = "dbg123", t = [], n = !1, r = null;
|
|
11
|
-
function i(i) {
|
|
12
|
-
if (t.push(i), !n) {
|
|
13
|
-
n = !0;
|
|
14
|
-
let i = "", a = !1, o = (n) => {
|
|
15
|
-
for (let r of n.toLowerCase()) if (i = (i + r).slice(-6), i === e) {
|
|
16
|
-
i = "", t.forEach((e) => e());
|
|
17
|
-
return;
|
|
18
|
-
}
|
|
19
|
-
}, s = (e) => {
|
|
20
|
-
if (!(e.ctrlKey || e.metaKey || e.altKey)) {
|
|
21
|
-
if (e.isComposing || e.key.length !== 1) {
|
|
22
|
-
a = !1;
|
|
23
|
-
return;
|
|
24
|
-
}
|
|
25
|
-
a = !0, o(e.key);
|
|
26
|
-
}
|
|
27
|
-
}, c = (e) => {
|
|
28
|
-
if (a) {
|
|
29
|
-
a = !1;
|
|
30
|
-
return;
|
|
31
|
-
}
|
|
32
|
-
let t = e;
|
|
33
|
-
t.isComposing || t.data && o(t.data);
|
|
34
|
-
};
|
|
35
|
-
document.addEventListener("keydown", s), document.addEventListener("input", c, !0), r = () => {
|
|
36
|
-
document.removeEventListener("keydown", s), document.removeEventListener("input", c, !0);
|
|
37
|
-
};
|
|
38
|
-
}
|
|
39
|
-
return () => {
|
|
40
|
-
let e = t.indexOf(i);
|
|
41
|
-
e !== -1 && t.splice(e, 1), t.length === 0 && r && (r(), r = null, n = !1);
|
|
42
|
-
};
|
|
43
|
-
}
|
|
44
|
-
//#endregion
|
|
45
|
-
export { i as t };
|