@expofp/floorplan 3.1.3 → 3.1.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-CgshNiUW.js → CookieConsent-A4g2GEnB.js} +2299 -2293
- package/dist/browser/{Debug-CAQ2Y1Zh.js → Debug-okM_H6zB.js} +7 -7
- package/dist/browser/{Demo-B1d7LKVa.js → Demo-3Yx1xi6F.js} +11 -11
- package/dist/browser/{Free-CDTSlJEY.js → Free-Iqh_45NP.js} +11 -11
- package/dist/browser/{Gallery-DvPKgsZC.js → Gallery-CMu4jjUa.js} +16 -16
- package/dist/browser/{GpsLoader-0QPi71oF.js → GpsLoader-xmUlSf3T.js} +27 -27
- package/dist/browser/{KioskStore-IG8a9NKE.js → KioskStore-DomUDeuw.js} +39 -39
- package/dist/browser/{Mapbox-BqYgZ149.js → Mapbox-D3-e_F58.js} +14 -14
- package/dist/browser/SetKioskMode-BOvxWaGI.js +54 -0
- package/dist/browser/ShowKiosk-xp1WbCm-.js +26 -0
- package/dist/browser/{ThreeComponent-CUD9Ymxj.js → ThreeComponent-C7dPjvKl.js} +219 -219
- package/dist/browser/{TouchHand-CAu_2Z0K.js → TouchHand-QzRQPyEl.js} +4 -4
- package/dist/browser/{ViewerMenuPanel-DduX02M1.js → ViewerMenuPanel-lREjYMl2.js} +20 -20
- package/dist/browser/{add-debug-secret-listener-Cvu8GQbJ.js → add-debug-secret-listener-s_Acfb_j.js} +1 -1
- package/dist/browser/{boolean-editor-DqNwtjhT.js → boolean-editor-BN7VDvLb.js} +6 -6
- package/dist/browser/{bootIntercom-QkbBgNhv.js → bootIntercom-BsKv9v5g.js} +1 -1
- package/dist/browser/bundle.json +44 -44
- package/dist/browser/{chunk-DQBx2y0u.js → chunk-CilcQ-DK.js} +1 -1
- package/dist/browser/{classnames-DDIn8LQy.js → classnames-BG0vlDcj.js} +2 -2
- package/dist/browser/{client-VF4zA-sh.js → client-CfMi8siJ.js} +4 -4
- package/dist/browser/{data-CFvjGzVc.js → data-a-dtD_1P.js} +49 -49
- package/dist/browser/{debug-overlay-DDbMN2nu.js → debug-overlay-CoH7X4al.js} +8 -8
- package/dist/browser/{debug-ui-Cbdmlsqq.js → debug-ui-DouD3wg5.js} +6 -6
- package/dist/browser/{dist-B0ttNa_v.js → dist-CzsjAsAg.js} +5 -5
- package/dist/browser/{exports-BQ_HyGqM.js → exports-BWEh5Wje.js} +1 -1
- package/dist/browser/{favicon-C65AD9b8.js → favicon-CmG6QFs2.js} +1 -1
- package/dist/browser/{fetch-retry.umd-COwLXJwf.js → fetch-retry.umd-B_g_JELw.js} +2 -2
- package/dist/browser/{flex-vY_BeCRt.js → flex-BQA_6ztI.js} +6 -6
- package/dist/browser/{floorplan.loader-CvD9t0Bs.js → floorplan.loader-CrKDeH3d.js} +9 -9
- package/dist/browser/{floorplan.ready-CtadyRAs.js → floorplan.ready-xulLyTpM.js} +15 -15
- package/dist/browser/{fuse-DGPiyXlj.js → fuse-Cxy73jl3.js} +2 -2
- package/dist/browser/index.js +11 -11
- package/dist/browser/{is-debug-Cb7eGksV.js → is-debug-BMJczZcU.js} +2 -2
- package/dist/browser/{jsx-runtime-BuRUOsV1.js → jsx-runtime-DDrJF8xL.js} +2 -2
- package/dist/browser/{lib-Cvfv2IMm.js → lib-B1mH8TSv.js} +4 -4
- package/dist/browser/locales/ar.json +55 -15
- package/dist/browser/locales/de.json +55 -15
- package/dist/browser/locales/es.json +55 -15
- package/dist/browser/locales/fr.json +55 -15
- package/dist/browser/locales/he.json +55 -15
- package/dist/browser/locales/it.json +55 -15
- package/dist/browser/locales/kk.json +55 -15
- package/dist/browser/locales/ko.json +55 -15
- package/dist/browser/locales/mn.json +55 -15
- package/dist/browser/locales/nl.json +55 -15
- package/dist/browser/locales/pl.json +55 -15
- package/dist/browser/locales/pt.json +55 -15
- package/dist/browser/locales/ru.json +59 -19
- package/dist/browser/locales/sv.json +55 -15
- package/dist/browser/locales/th.json +55 -15
- package/dist/browser/locales/tr.json +55 -15
- package/dist/browser/locales/uk.json +55 -15
- package/dist/browser/locales/vi.json +55 -15
- package/dist/browser/locales/zh.json +55 -15
- package/dist/browser/{main-DJGo4g--.js → main-CTfIntH-.js} +1 -1
- package/dist/browser/{mobx-CWmFk5Q_.js → mobx-CNTM25Oc.js} +4 -4
- package/dist/browser/{particles.min-BZysM5Tg.js → particles.min-DHOz1yro.js} +2 -2
- package/dist/browser/{prop-types-DyiMgNwl.js → prop-types-B-y83www.js} +2 -2
- package/dist/browser/{react-cBEAwEeA.js → react-VoeHpohi.js} +2 -2
- package/dist/browser/{react-dom-D_5039DL.js → react-dom-CN7XBo22.js} +3 -3
- package/dist/browser/{reset-all-settings-VjH78fi3.js → reset-all-settings-x3j4rKGC.js} +1 -1
- package/dist/browser/{settings-D595OjcR.js → settings-DYv1eHiY.js} +6 -6
- package/dist/browser/{src-DWVoS2GS.js → src-CdV1RTUv.js} +4 -4
- package/dist/browser/{store-Bj7lyE8j.js → store-BkBqfYWF.js} +3799 -3341
- package/dist/browser/{ui-Di53DAaR.js → ui-DqL_r_LU.js} +6 -6
- package/dist/esm/components/Alert.js +1 -1
- package/dist/esm/components/Autocomplete.js +1 -1
- package/dist/esm/components/BaseFilterModal.js +1 -1
- package/dist/esm/components/EntityItem.js +1 -1
- package/dist/esm/components/EntityList.js +1 -1
- package/dist/esm/components/EventBadge.js +1 -1
- package/dist/esm/components/Exhibitor.js +1 -1
- package/dist/esm/components/HeatmapLegend.js +1 -1
- package/dist/esm/components/Kiosk/KioskStore.d.ts +3 -2
- package/dist/esm/components/Kiosk/KioskStore.js +1 -1
- package/dist/esm/components/Kiosk/SetKiosk/FormInput/RangeInput.js +1 -1
- package/dist/esm/components/Kiosk/SetKiosk/SetKioskComponent.js +1 -1
- package/dist/esm/components/Kiosk/SetKiosk/SetKioskForm.js +1 -1
- package/dist/esm/components/Kiosk/SetKioskMode.js +1 -1
- package/dist/esm/components/LanguageRow.js +1 -1
- package/dist/esm/components/LevelBadge.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-wf.js +1 -1
- package/dist/esm/components/Map/traffic/useBuildRoute.js +4 -4
- package/dist/esm/components/Map/traffic/useManageTraffic.js +1 -1
- package/dist/esm/components/Map/visibleArea.d.ts +3 -3
- package/dist/esm/components/Map/visibleArea.js +1 -1
- package/dist/esm/components/MarketMaterialList.js +1 -1
- package/dist/esm/components/Overlay.js +1 -1
- package/dist/esm/components/OverlayGrip.d.ts +0 -1
- package/dist/esm/components/OverlayGrip.js +1 -1
- package/dist/esm/components/Share.js +1 -1
- package/dist/esm/components/Shortcuts/ShortcutButton.js +1 -1
- package/dist/esm/components/Shortcuts/ShortcutsFiltersButton.js +1 -1
- package/dist/esm/components/ViewerMenuPanel.js +1 -1
- package/dist/esm/components/WayInformation.js +1 -1
- package/dist/esm/components/WayfindingFloorSelector.js +1 -1
- package/dist/esm/renderer/RendererService.js +1 -1
- package/dist/esm/renderer/engine-core/defs.d.ts +7 -1
- package/dist/esm/renderer/engine-core/defs.js +3 -3
- package/dist/esm/store/SearchStore.js +1 -1
- package/dist/esm/store/init/init-ui.js +1 -1
- package/package.json +4 -4
- package/dist/browser/SetKioskMode-CuhPjOeV.js +0 -49
- package/dist/browser/ShowKiosk-Vv7rWwfr.js +0 -26
|
@@ -1 +1 @@
|
|
|
1
|
-
import{useEffect as yt,useRef as L}from"react";import{getBounds as k}from"../../../renderer";import{getRouteLayerRegex as pt,getRouteStopLayerRegex as wt,TRAFFIC_VEHICLES as xt}from"./trafficLayers";import{loadImage as Et}from"../../../utils/loadImage";import{createImageCanvas as It}from"../drawing/config/canvases";import{UpdateQueue as Mt}from"./UpdateQueue";import Lt from"../../../tools/base-runtime-url";import{toRadians as bt}from"../../../utils/math";const tt=2,
|
|
1
|
+
import{useEffect as yt,useRef as L}from"react";import{getBounds as k}from"../../../renderer";import{getRouteLayerRegex as pt,getRouteStopLayerRegex as wt,TRAFFIC_VEHICLES as xt}from"./trafficLayers";import{loadImage as Et}from"../../../utils/loadImage";import{createImageCanvas as It}from"../drawing/config/canvases";import{UpdateQueue as Mt}from"./UpdateQueue";import Lt from"../../../tools/base-runtime-url";import{toRadians as bt}from"../../../utils/math";import{isDefaultScene as Rt}from"../../../renderer/engine-core/defs";const tt=2,Ft=tt*3.5,G=tt*12,it=G*.7,At=8,Tt="transport_locations",Pt=150,et="#a4aab6",at=1e3,vt=2e4,ut=500;export function useManageTraffic({permission:e,rendererService:n,dataJsonUrl:c,websocketUrl:i}){const t=L(window.devicePixelRatio),s=L(new Map),o=L(new Map),r=L(),y=L(),f=L(performance.now()),M=L(1),w=L(new Mt),A=L(new Map),x=L(),g=L(at),p=L(new Map),a=L();yt(()=>{async function S(){if(!(!e||!n.scene))try{let h;try{h=await(await fetch(c,{method:"GET",headers:{"Content-Type":"application/json"}})).json()}catch(u){console.warn("useManageTraffic failed to get JSON",u)}if(!h||h?.disabled||h?.error)return;t.current=lt(n.scale);const V=new Map(h.routes.map(({id:u,color:E})=>[u,E])),C=n.scene.rootLayer.children,W=new Map;V.forEach(u=>{W.set(u,Ct({radius:Ft,color:u,scale:window.devicePixelRatio}))});const z=pt(),Y=C.filter(u=>z.test(u.name)),B=wt(),U=C.filter(u=>B.test(u.name));h.routes.slice(0,Y.length).forEach(({id:u,color:E,path:R,stops:D,hiddenPoints:I},d)=>{A.current.set(u,R);const T=Y[d];if(T){const N=new Map(I?.map(l=>[ot(l),l])??[]);for(let l=1;l<R.length;l++){const O=R[l-1],H=R[l];N.has(ot(O))||N.has(ot(H))||T.children.push({points:[O,H],color:E,width:tt})}T.children.length&&w.current.add(()=>n.update(T))}const m=U[d];if(m&&D?.length){const N=W.get(E);D.forEach(l=>{m.children.push({source:N,bounds:k(l.x,l.y,N.width,N.height,t.current)})}),m.children.length&&w.current.add(()=>n.update(m))}});const $=C.find(u=>u.name===xt),X=new Map;x.current=({ptScale:u,sceneId:E})=>{try{if(!Rt(E))return;t.current=lt(u);const R=[];for(let I=0;I<U.length;I++){const d=U[I].children;for(let T=0;T<d.length;T++){const m=d[T];m.bounds=k(m.bounds.center.x,m.bounds.center.y,m.source.width,m.source.height,t.current,m.bounds.rotation),R.push(m)}}const D=[...s.current.values()];for(let I=0;I<D.length;I++){const d=D[I];d.bounds=k(d.bounds.center.x,d.bounds.center.y,d.source.width,d.source.height,t.current,d.bounds.rotation)}w.current.add(()=>n.update(...R,...D))}catch(R){console.error("ptscale",R)}},n.renderer.events.addEventListener("viewport:ptscale",x.current),V.forEach((u,E)=>{X.set(E,ht({id:E,width:G,height:G,color:u,scale:window.devicePixelRatio}))}),X.set(et,ht({id:"orphan",width:G,height:G,color:et,scale:window.devicePixelRatio}));let j=null;try{const u=await Et(`${Lt}icons/bus-white.svg`);j=It(u,it,it,window.devicePixelRatio)}catch(u){console.error(u)}y.current=u=>{try{const E=JSON.parse(u.data);if(E.type!==Tt)return;const R=u.timeStamp||performance.now();M.current=Math.round(R-f.current),f.current=R;const D=Math.max(M.current??ut,ut),I=o.current,d=s.current,T=$.children,m=w.current;let N=!1;E.data.forEach(({id:l,x:O,y:H,route_id:ct,hidden:gt})=>{if(I.has(l)&&(I.get(l)?.(),I.delete(l)),gt&&d.has(l)&&d.has(Q(l))){const P=d.get(l);P.hidden=!0;const F=d.get(Q(l));F.hidden=!0,m.add(()=>n.update(P,F));return}if(p.current.set(l,performance.now()),!d.has(l)){const P=X.get(ct)||X.get(et),F={id:l,source:P,bounds:k(O,H,P.width,P.height,t.current,0)};if(d.set(l,F),j){const q=Q(l),rt={id:q,source:j,bounds:k(O,H,j.width,j.height,t.current,0)};j.setAttribute("id",q),d.set(q,rt),T.push(F,rt)}else T.push(F);N=!0;return}const Z=d.get(l),st=d.get(Q(l)),mt=Z.bounds.center,K=St(mt,{x:O,y:H},A.current.get(ct));if(K.reduce((P,F,q)=>q===0?P:P+nt(K[q-1],F),0)>=Pt||document.hidden)dt({rendererService:n,updateQueue:m,vehicle:Z,vehicleFinery:st,x:O,y:H,scale:t.current,angle:_t(Z.bounds.center,{x:O,y:H})});else{const P=Dt(K,D,F=>{dt({rendererService:n,updateQueue:m,vehicle:Z,vehicleFinery:st,x:F.x,y:F.y,scale:t.current,angle:F.angle})});I.set(l,P)}}),N&&m.add(()=>n.update($))}catch(E){console.error("handleSocketMessage",E)}},v(),_(h.config?(Number(h.config.vehicle_inactive_interval)||20)*1e3:vt)}catch(h){console.warn(h)}}S();function v(){r.current?.readyState===WebSocket.OPEN||r.current?.readyState===WebSocket.CONNECTING||(r.current=new WebSocket(i),r.current.onmessage=y.current,r.current.onopen=()=>{g.current=at},r.current.onclose=()=>{if(!navigator.onLine)return;setTimeout(v,g.current);const h=3e4;g.current=Math.min(g.current*2,h)})}function b(){v()}window.addEventListener("online",b);function _(h){clearInterval(a.current),a.current=window.setInterval(()=>{const V=performance.now(),C=[],W=[];p.current.forEach((z,Y)=>{if(V-z<h)return;const B=s.current.get(Y);B&&(B.hidden=!0,W.push(B),C.push(Y));const U=Q(Y),$=s.current.get(U);$&&($.hidden=!0,W.push($),C.push(U))}),W.length&&w.current.add(()=>n.update(...W)),C.forEach(z=>p.current.delete(z))},h)}return()=>{x.current&&n.renderer&&n.renderer.events.removeEventListener("viewport:ptscale",x.current),o.current.forEach(h=>h?.()),o.current.clear(),s.current.clear(),w.current.destroy(),window.removeEventListener("online",b),clearInterval(a.current)}},[e,n,c,i])}function lt(e){return Math.min(e||window.devicePixelRatio,At)}function _t(e,n){return Math.atan2(n.y-e.y,n.x-e.x)}function Ct({radius:e,scale:n,color:c}){const i=document.createElement("canvas"),t=i.getContext("2d");t.imageSmoothingEnabled=!1;const s=Math.ceil(e*2*n),o=s/2,r=e*.78,y=e*.33;return i.width=s,i.height=s,t.translate(o,o),t.scale(n,n),t.beginPath(),t.arc(0,0,e,0,2*Math.PI),t.fillStyle="#FFFFFF",t.fill(),t.beginPath(),t.arc(0,0,r,0,2*Math.PI),t.fillStyle=c,t.fill(),t.beginPath(),t.arc(0,0,y,0,2*Math.PI),t.fillStyle="#FFFFFF",t.fill(),i}function ht({id:e,width:n,height:c,color:i,scale:t}){const s=2*t,o=n/2*t,r=c*t,y=.6,f=.01,M=r*y,w=r,A=8*t,x=w+s+M/2+A*2,g=o*2+M+s+A*2,p=document.createElement("canvas");p.setAttribute("id",e),p.width=x,p.height=g;const a=p.getContext("2d"),S=x/2,v=g/2;a.save(),a.translate(S,v),a.rotate(-Math.PI/2),a.translate(-S,-v);const b=S,_=v-w/2+o,h=_+M;return a.shadowColor="rgba(16, 24, 40, 0.2)",a.shadowBlur=A/2,a.beginPath(),a.arc(b,_,o,Math.PI,0,!1),a.bezierCurveTo(b+o,_+r*.3,b+f*o,h,b,h),a.bezierCurveTo(b-f*o,h,b-o,_+r*.3,b-o,_),a.closePath(),a.fillStyle=i,a.fill(),a.strokeStyle="#FFFFFF",a.lineWidth=s,a.stroke(),a.restore(),p}function nt(e,n){return Math.hypot(e.x-n.x,e.y-n.y)}function Q(e){return`${e}_finery`}function dt({rendererService:e,updateQueue:n,vehicle:c,vehicleFinery:i,x:t,y:s,scale:o,angle:r}){c.bounds=k(t,s,c.source.width,c.source.height,o,r),c.hidden=!1,i?(i.bounds=k(t,s,i.source.width,i.source.height,o,bt(e.angle)),i.hidden=!1,n.add(()=>e.update(i,c))):n.add(()=>e.update(c))}function J(e,n,c){return{x:e.x+(n.x-e.x)*c,y:e.y+(n.y-e.y)*c}}function ft(e,n){let c=1/0,i={index:0,t:0};for(let t=0;t<n.length-1;t++){const s=n[t],o=n[t+1],r=o.x-s.x,y=o.y-s.y,f=r*r+y*y,M=f?((e.x-s.x)*r+(e.y-s.y)*y)/f:0,w=Math.max(0,Math.min(1,M)),A=J(s,o,w),x=nt(e,A);x<c&&(c=x,i={index:t,t:w})}return i}function Nt(e,n,c){const i=nt(e,n),t=Math.max(2,Math.ceil(i/c)+1),s=[];for(let o=0;o<t;o++){const r=o/(t-1),y=J(e,n,r);s.push({x:y.x,y:y.y})}return s}function St(e,n,c){if(!c||!c.length)return Nt(e,n,10);const i=ft(e,c),t=ft(n,c),s=[],o=r=>s.push({x:r.x,y:r.y});i.index+1<c.length?o(J(c[i.index],c[i.index+1],i.t)):o(c[i.index]);for(let r=i.index+1;r<=t.index&&r<c.length;r++)o(c[r]);return t.index+1<c.length?o(J(c[t.index],c[t.index+1],t.t)):o(c[t.index]),s}function Dt(e,n,c,i){if(e.length<2)return()=>{};let t=null,s;const o=[];let r=0;for(let f=0;f<e.length-1;f++){const M=Math.hypot(e[f+1].x-e[f].x,e[f+1].y-e[f].y);o.push(M),r+=M}const y=f=>{t||(t=f);const M=f-t,w=Math.min(M/n,1),A=w*r;let x=0,g=0;for(;g<o.length&&x+o[g]<A;)x+=o[g],g++;g>=o.length&&(g=o.length-1);const p=e[g],a=e[Math.min(g+1,e.length-1)],S=o[g]||0,v=S===0?0:(A-x)/S,b=p.x+(a.x-p.x)*v,_=p.y+(a.y-p.y)*v,h=a.x-p.x,V=a.y-p.y,C=h===0&&V===0?0:Math.atan2(V,h);c({x:b,y:_,angle:C}),w<1?s=requestAnimationFrame(y):i&&i()};return s=requestAnimationFrame(y),()=>{s&&cancelAnimationFrame(s)}}function ot(e){return`${e.x},${e.y}`}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Renderer } from "@expofp/renderer";
|
|
1
|
+
import { Renderer, Vector2Like } from "@expofp/renderer";
|
|
2
2
|
export interface MapEngineVisibleArea {
|
|
3
3
|
x: number;
|
|
4
4
|
y: number;
|
|
@@ -8,8 +8,8 @@ export interface MapEngineVisibleArea {
|
|
|
8
8
|
right: number;
|
|
9
9
|
top: number;
|
|
10
10
|
bottom: number;
|
|
11
|
-
center:
|
|
11
|
+
center: Vector2Like;
|
|
12
12
|
}
|
|
13
13
|
export declare function getVisibleArea(renderer: Renderer): MapEngineVisibleArea;
|
|
14
|
-
export declare function isPointVisible(renderer: Renderer, point:
|
|
14
|
+
export declare function isPointVisible(renderer: Renderer, point: Vector2Like): boolean;
|
|
15
15
|
//# sourceMappingURL=visibleArea.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export function getVisibleArea(t){const o=t.viewport.canvasToSvg({x:0,y:0}),
|
|
1
|
+
import{pickDefaultScenePoint as s}from"../../renderer/engine-core/defs";export function getVisibleArea(t){const o=s(t.viewport.canvasToSvg({x:0,y:0})),i=s(t.viewport.canvasToSvg({x:t.canvas.clientWidth,y:0})),a=s(t.viewport.canvasToSvg({x:0,y:t.canvas.clientHeight})),c=s(t.viewport.canvasToSvg({x:t.canvas.clientWidth,y:t.canvas.clientHeight})),n=Math.min(o.x,i.x,a.x,c.x),v=Math.max(o.x,i.x,a.x,c.x),x=Math.min(o.y,i.y,a.y,c.y),y=Math.max(o.y,i.y,a.y,c.y);return{x:n,y:x,width:v-n,height:y-x,left:n,right:v,top:y,bottom:x,center:{x:(n+v)/2,y:(x+y)/2}}}export function isPointVisible(t,o){const i=getVisibleArea(t);return o.x>=i.left&&o.x<=i.right&&o.y>=i.bottom&&o.y<=i.top}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{jsx as a,jsxs as
|
|
1
|
+
import{jsx as a,jsxs as i}from"react/jsx-runtime";import{observer as s}from"mobx-react-lite";import{t}from"../utils/i18n";import"./MarketMaterialList.scss";const l=({fileName:e,path:r})=>i("a",{className:"market-materials__item",href:r,download:!0,target:"_blank",rel:"noopener noreferrer","aria-label":t("Download {{fileName}}",{fileName:e}),children:[a("div",{className:"market-materials__item-icon",children:a("i",{className:"icon-file-solid"})}),a("div",{className:"market-materials__item-name",children:a("span",{children:e})}),a("div",{className:"market-materials__item-download",children:a("i",{className:"icon-download"})})]}),m=({list:e})=>i("div",{className:"market-materials",children:[a("div",{className:"market-materials__title font-medium",children:t("Read More")}),a("div",{className:"market-materials__list",role:"list",children:e.map(r=>a(l,{...r},r.path))})]});export default s(m);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{jsx as R,jsxs as X}from"react/jsx-runtime";import fe from"classnames";import{useEffect as I,useRef as v,useState as u,useCallback as a,useMemo as Y,createContext as me}from"react";import{uiState as U}from"../store";import Z from"../tools/debounce";import ge from"./OverlayParticles";import{useWindowSize as he}from"../hooks/useWindowSize";import{useDragGesture as ve}from"../hooks/useDragGesture";import{MOBILE_BREAKPOINT as $}from"../constants";import"./Overlay.scss";export const OverlayScrollContext=me(null);const V=70,
|
|
1
|
+
import{jsx as R,jsxs as X}from"react/jsx-runtime";import fe from"classnames";import{useEffect as I,useRef as v,useState as u,useCallback as a,useMemo as Y,createContext as me}from"react";import{uiState as U}from"../store";import Z from"../tools/debounce";import ge from"./OverlayParticles";import{useWindowSize as he}from"../hooks/useWindowSize";import{useDragGesture as ve}from"../hooks/useDragGesture";import{MOBILE_BREAKPOINT as $}from"../constants";import"./Overlay.scss";import{t as we}from"../utils/i18n";export const OverlayScrollContext=me(null);const V=70,pe="0.3s",ye=10,x=()=>window!==window.top&&(document.documentElement.clientHeight||document.body.clientHeight)||window.innerHeight,z=(d=x(),r,s,D)=>({small:d/r,medium:d/s,full:d-D}),Te=({children:d,open:r,size:s="medium",particles:D=!1,className:ee,onChangeSize:C,onScrollStateChange:w,smallSizeMultiplier:O=12.6,mediumSizeMultiplier:S=2.6,fullSizeOffset:A=0,scrollThreshold:G=ye,disableDrag:W=!1,forceFull:N=!1})=>{const{width:M,height:te}=he(),[t,oe]=u(()=>z(x(),O,S,A)),[l,ne]=u(()=>M<=$),[p,K]=u(!1),[i,re]=u(()=>t[s]),[g,b]=u(()=>t[s]),[h,y]=u(!1),[se,q]=u(r),[L,P]=u(!1),k=v(),j=v(),F=v(null),J=v(null),f=v(null),c=a(e=>{const o=t[e];re(o),b(o),C?.(e)},[t,C]),le=Y(()=>l?N&&r?{height:x()}:{height:r||h?g:0}:{height:r?"auto":void 0},[l,r,g,p,s,h,N]),Q=a(e=>{const o=[t.small,t.medium,t.full].sort();if(e>=t.full){c("full");return}if(e<=t.small){c("small");return}const n=i||t.medium,m=e>n?o.find(E=>E+V>=e)||t.full:o.reverse().find(E=>E-V<=e)||t.small;m===t.full?c("full"):m===t.medium?c("medium"):c("small")},[t,i,c]),ie=a(e=>{K(!0),k.current=e},[]),ce=a(e=>{const o=k.current;if(o===void 0)return;const n=f.current;if(n?.scrollTop>0&&i===t.full)return;const m=o-e;let _=(i||t.medium)+m;n&&i===t.full&&_<i&&(n.style.overflow="hidden"),_=Math.min(Math.max(_,t.small),t.full),j.current=m,b(_)},[i,t]),ue=a(()=>{K(!1),k.current=void 0;const e=f.current;e&&e.style.removeProperty("overflow");const o=j.current;j.current=void 0,o!==void 0&&g!==void 0&&Q(g)},[g,Q]),B=a(e=>{if(p)return;c(s==="small"?"medium":s==="medium"?"full":"small")},[p,s,c]),{touchHandlers:T,mouseHandlers:H}=ve({onDragStart:ie,onDragMove:ce,onDragEnd:ue}),ae=a(()=>{const e=f.current;if(!e)return;const n=e.scrollTop>=G;L!==n&&(P(n),w?.(n))},[G,L,w]),de=Y(()=>Z(()=>{window.__resett?.()},250),[]);I(()=>{if(!l||W)return;const e=F.current,o=J.current,n=f.current;e&&(e.ontouchstart=T.onTouchStart,e.ontouchend=T.onTouchEnd,window.ontouchmove=T.onTouchMove,e.onmousedown=H.onMouseDown,e.onmouseup=H.onMouseUp,window.onmousemove=H.onMouseMove),o&&o.addEventListener("mouseup",B);const m=()=>{i&&i<t.full&&n&&(n.style.overflow="hidden")};return n&&(n.ontouchstart=m),()=>{e&&(window.ontouchmove=null,window.onmousemove=null),o&&o.removeEventListener("mouseup",B)}},[l,T,H,B,i,t]),I(()=>{ne(M<=$);const e=x();oe(z(e,O,S,A))},[M,te,O,S,A]),I(()=>{if(r){q(!0),y(!0);const e=setTimeout(()=>{c(s),y(!1)},10);return()=>clearTimeout(e)}else{y(!0),l&&b(0);const e=setTimeout(()=>{q(!1),y(!1),P(!1)},parseFloat(pe)*1e3);return()=>clearTimeout(e)}},[r,s,c,l]),I(()=>{r&&!h&&(f.current?.scrollTo({top:0}),P(!1),w?.(!1))},[r,h,w,U.details,U.list.type]);const He=a(Z(()=>{window.__resett?.()},250),[U.kiosk]);return se?R(OverlayScrollContext.Provider,{value:f.current,children:X("div",{className:fe("efp-overlay",{"is-open":r,"is-draggable":p,"is-small":s==="small","is-medium":s==="medium","is-full":s==="full","is-mobile":l,"is-desktop":!l,"is-hidden":!l&&!r,"is-animating":h,"is-scrolled":L,"is-forced-full":N&&l},ee),style:le,ref:F,children:[!W&&R("div",{className:"efp-overlay__draghandle",ref:J}),X("div",{className:"efp-overlay__scroll",ref:f,onScroll:e=>{ae(),de()},children:[D?R(ge,{}):null,R("div",{className:"efp-overlay__content",children:d||we("No content")})]})]})}):null};export default Te;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{jsx as r,jsxs as
|
|
1
|
+
import{jsx as r,jsxs as o}from"react/jsx-runtime";import i from"classnames";import{observer as l}from"mobx-react-lite";import{uiState as e}from"../store";import"./OverlayGrip.scss";function p(){function t(){return i({"overlay-grip":!0,arr:e.overlaySize==="full"})}function s(a){a.preventDefault(),e.toggleMapOverlay()}return r("a",{href:"/#",className:t(),onClick:s,children:o("svg",{viewBox:"0 0 1200 200",preserveAspectRatio:"xMidYMid meet",xmlns:"http://www.w3.org/2000/svg",children:[r("path",{d:"M100,100 l 500 100 L 1100 100"}),r("path",{d:"M100,150 l 500 0 L 1100 150"})]})})}export default l(p);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{jsxs as
|
|
1
|
+
import{jsxs as r,jsx as e}from"react/jsx-runtime";import{useState as d}from"react";import h from"classnames";import{observer as m}from"mobx-react-lite";import{t as a}from"../utils/i18n";import"./Share.scss";const p=m(({title:i,url:s})=>{const[c,n]=d(!1),o=encodeURI(s),l={facebook:`https://www.facebook.com/sharer/sharer.php?u=${o}`,xcom:`https://x.com/share?url=${o}`,linkedin:`https://linkedin.com/shareArticle?url=${o}`},t=()=>{navigator.clipboard.writeText(s),n(!0),setTimeout(()=>n(!1),2e3)};return r("div",{className:"share",children:[r("h3",{children:[a("Share")," ",i]}),r("div",{className:"share__socials",children:[r("a",{href:l.facebook,rel:"noopener noreferrer",target:"_blank",className:"share-social facebook","aria-label":a("Share {{title}} on Facebook",{title:i}),children:[e("div",{className:"share-social__icon",children:e("i",{className:"icon-facebook","aria-hidden":"true"})}),e("div",{className:"share-social__title",children:"Facebook"})]}),r("a",{href:l.xcom,rel:"noopener noreferrer",target:"_blank",className:"share-social xcom","aria-label":a("Share {{title}} on X.com",{title:i}),children:[e("div",{className:"share-social__icon",children:e("i",{className:"icon-twitter-x","aria-hidden":"true"})}),e("div",{className:"share-social__title",children:"X.COM"})]}),r("a",{href:l.linkedin,rel:"noopener noreferrer",target:"_blank",className:"share-social linkedin","aria-label":a("Share {{title}} on LinkedIn",{title:i}),children:[e("div",{className:"share-social__icon",children:e("i",{className:"icon-linkedin","aria-hidden":"true"})}),e("div",{className:"share-social__title",children:"LinkedIn"})]})]}),r("div",{className:"share__copy",children:[e("span",{children:a("or copy link")}),r("div",{className:"share__copy-input",children:[e("input",{type:"text",defaultValue:s,readOnly:!0,"aria-label":a("Direct link to {{title}}",{title:i})}),e("button",{type:"button",className:h({isCopied:c}),onClick:t,"aria-label":a("Copy link to clipboard"),children:c?e("span",{"aria-live":"polite",children:a("Copied")}):a("Copy")})]})]})]})});export default p;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{jsx as s,jsxs as
|
|
1
|
+
import{jsx as s,jsxs as C}from"react/jsx-runtime";import{memo as R,useCallback as u}from"react";import _ from"classnames";import m from"../../store";import"./ShortcutButton.scss";import{t as h}from"../../utils/i18n";const n=R(({id:o,label:r,icon:i,enabled:t,active:c,tooltip:a,badge:e,variant:p="default",showResetButton:f=!1,interfaceId:l})=>{const N=u(()=>{t&&m.shortcutRegistry.handleShortcutClick(l,o)},[t,l,o]),d=u(k=>{k.stopPropagation(),t&&c&&m.shortcutRegistry.handleShortcutReset(l,o)},[t,c,l,o]);return C("button",{className:_("shortcut-button",`shortcut-button--${p}`,{"is-active":c,"is-disabled":!t}),onClick:N,disabled:!t,title:a||r,type:"button","aria-label":a||r,children:[f&&c&&s("div",{className:"shortcut-reset-button",onClick:d,title:h("Reset filter"),"aria-label":h("Reset filter"),children:s("i",{className:"icon-close-solid"})}),i&&s("i",{className:i}),r&&s("span",{className:"shortcut-button__label",children:r}),e&&s("span",{className:"shortcut-button__badge",children:e})]})});n.displayName="ShortcutButton";export default n;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{jsx as o}from"react/jsx-runtime";import{memo as
|
|
1
|
+
import{jsx as o}from"react/jsx-runtime";import{memo as u}from"react";import h from"classnames";import{observer as f}from"mobx-react-lite";import s from"../../store";import{t as i}from"../../utils/i18n";import"./ShortcutsFiltersButton.scss";const r=u(f(({interfaceId:t,className:l})=>{const{shortcutRegistry:n}=s,a=n.getShortcuts(t).filter(p=>p.active).length;let e=0;t==="sessions"?e=s.sessionsFilterStore.activeFiltersCount:t==="speakers"&&(e=s.speakerFilterStore.activeFiltersCount);const c=Math.max(a,e),m=()=>{t==="sessions"?s.sessionsFilterStore.openFilterWithSections(["tracks","venues","date","time","sort","settings"]):t==="speakers"&&s.speakerFilterStore.openFilterWithSections(["companies","jobTitles"])};return o("button",{className:h("shortcuts-filters-button",l,{"is-active":c>0}),onClick:m,type:"button","aria-label":i("Open filters"),title:i("Open filters"),children:o("i",{className:"icon-filter-horizontal-solid"})})}));r.displayName="ShortcutsFiltersButton";export default r;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{jsx as e,Fragment as w,jsxs as s}from"react/jsx-runtime";import{observer as _}from"mobx-react-lite";import a from"../data";import o,{uiState as x}from"../store";import{t as r}from"../utils/i18n";import{Button as l}from"./";import"./ViewerMenuPanel.scss";function N(n){if(!n)return{venue:"",dateRange:""};const t=n.split(" | ");return{venue:t[0]?.trim()||"",dateRange:t[1]?.trim()||""}}function D(n,t){if(!n||!t)return!1;const c=Date.now();return c>=new Date(n).getTime()&&c<=new Date(t+"T23:59:59").getTime()}const S=_(()=>{const{venue:n,dateRange:t}=N(a.subtitle),u=!(!!a.startDate&&!!a.endDate),d=D(a.startDate,a.endDate),m=o.eventStore.eventItems.length>0,v=o.toursStore.hasTours;function p(i){i.preventDefault(),x.menu=!1}function h(i){i.preventDefault(),o.selectExhibitors()}function f(i){i.preventDefault(),o.selectSessions()}function g(i){i.preventDefault(),o.selectTours()}return s("div",{className:"viewer-panel",children:[s("div",{className:"viewer-panel__info",children:[e("div",{className:"viewer-panel__title",children:a.title}),s("div",{className:"viewer-panel__row",children:[e("i",{className:"viewer-panel__icon icon-schedule"}),u?e("span",{children:r("Ongoing")}):s(w,{children:[e("span",{children:t}),d&&e("div",{className:"viewer-panel__now-badge",children:r("Now")})]})]}),n&&s("div",{className:"viewer-panel__row",children:[e("i",{className:"viewer-panel__icon icon-marker-pin"}),e("span",{children:n})]})]}),s("div",{className:"viewer-panel__buttons",children:[e(l,{variant:"gray",size:"lg",text:r("Map"),onClick:p}),e(l,{variant:"gray",size:"lg",text:r("Exhibitors"),onClick:h}),m&&e(l,{variant:"gray",size:"lg",text:r("Sessions"),onClick:f}),v&&e(l,{variant:"gray",size:"lg",text:r("Guided
|
|
1
|
+
import{jsx as e,Fragment as w,jsxs as s}from"react/jsx-runtime";import{observer as _}from"mobx-react-lite";import a from"../data";import o,{uiState as x}from"../store";import{t as r}from"../utils/i18n";import{Button as l}from"./";import"./ViewerMenuPanel.scss";function N(n){if(!n)return{venue:"",dateRange:""};const t=n.split(" | ");return{venue:t[0]?.trim()||"",dateRange:t[1]?.trim()||""}}function D(n,t){if(!n||!t)return!1;const c=Date.now();return c>=new Date(n).getTime()&&c<=new Date(t+"T23:59:59").getTime()}const S=_(()=>{const{venue:n,dateRange:t}=N(a.subtitle),u=!(!!a.startDate&&!!a.endDate),d=D(a.startDate,a.endDate),m=o.eventStore.eventItems.length>0,v=o.toursStore.hasTours;function p(i){i.preventDefault(),x.menu=!1}function h(i){i.preventDefault(),o.selectExhibitors()}function f(i){i.preventDefault(),o.selectSessions()}function g(i){i.preventDefault(),o.selectTours()}return s("div",{className:"viewer-panel",children:[s("div",{className:"viewer-panel__info",children:[e("div",{className:"viewer-panel__title",children:a.title}),s("div",{className:"viewer-panel__row",children:[e("i",{className:"viewer-panel__icon icon-schedule"}),u?e("span",{children:r("Ongoing")}):s(w,{children:[e("span",{children:t}),d&&e("div",{className:"viewer-panel__now-badge",children:r("Now")})]})]}),n&&s("div",{className:"viewer-panel__row",children:[e("i",{className:"viewer-panel__icon icon-marker-pin"}),e("span",{children:n})]})]}),s("div",{className:"viewer-panel__buttons",children:[e(l,{variant:"gray",size:"lg",text:r("Map"),onClick:p}),e(l,{variant:"gray",size:"lg",text:r("Exhibitors"),onClick:h}),m&&e(l,{variant:"gray",size:"lg",text:r("Sessions"),onClick:f}),v&&e(l,{variant:"gray",size:"lg",text:r("Guided Tours"),onClick:g})]})]})});export default S;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{jsx as a,jsxs as
|
|
1
|
+
import{jsx as a,jsxs as l}from"react/jsx-runtime";import i from"classnames";import"./WayInformation.scss";import{t as n}from"../utils/i18n";const m=({items:s,accessible:o,onClick:r})=>s?.length?a("div",{className:"efp-wayInformation",onClick:r,role:"button",tabIndex:0,"aria-label":n("Show detailed route steps"),children:s.map((t,e)=>l("div",{className:i("efp-wayInformation__item",{"is-accessible":o&&e===0}),children:[a("span",{children:t.title}),a("strong",{children:t.text})]},e))}):null;export default m;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{jsx as r,jsxs as g}from"react/jsx-runtime";import
|
|
1
|
+
import{jsx as r,jsxs as g}from"react/jsx-runtime";import u from"react";import p from"classnames";import"./WayfindingFloorSelector.scss";import{t as f}from"../utils/i18n";const y=({floors:e,current:l,onClickFloor:h})=>{const t=e.findIndex(i=>i?.id===l?.id),m=i=>{if(i>=e.length-1)return null;const n=e[i],o=e[i+1];if(!n||!o)return null;const a=n.basePriority??0;return(o.basePriority??0)<a?"up":"down"},C=i=>t!==-1&&i===t;return r("div",{className:"efp-wayfinding-floor",children:r("div",{className:"efp-wayfinding-floor__body",children:r("div",{className:"efp-wayfinding-floor__list",role:"radiogroup","aria-label":f("Floor selection"),children:e.map((i,n)=>{const o=i?.id===l?.id,a=t!==-1&&n<t,d=n===e.length-1,s=m(n),c=C(n),w=t!==-1&&n<t;return g(u.Fragment,{children:[r("div",{className:p("efp-wayfinding-floor__item",{"is-current":o,"is-passed":a}),children:r("button",{type:"button",role:"radio",title:i.description,"aria-checked":o,"aria-label":i.description||f("Floor {{name}}",{name:i.name}),onClick:()=>h({id:i.id,name:i.name}),children:r("span",{children:i.name})})}),!d&&s&&r("div",{className:p("efp-wayfinding-floor__arrow",{[`efp-wayfinding-floor__arrow--${s}`]:s,"efp-wayfinding-floor__arrow--blink":c,"efp-wayfinding-floor__arrow--passed":w}),"aria-hidden":"true",children:w||c?r("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:r("path",{d:"M11.7502 18.2823C11.7503 19.0928 12.4074 19.7499 13.218 19.75C13.5885 19.75 13.9455 19.6096 14.217 19.3575L20.6438 13.3897C21.0303 13.0308 21.2502 12.5274 21.2502 12C21.2502 11.4727 21.0303 10.9693 20.6438 10.6104L14.217 4.64258C13.9795 4.42202 13.6768 4.28716 13.3566 4.25684L13.218 4.25L13.0686 4.25782C12.3282 4.3328 11.7503 4.95766 11.7502 5.71778L11.7502 8.25L4.50024 8.25C3.53374 8.25 2.75024 9.03351 2.75024 9.99996L2.75024 14C2.75024 14.9665 3.53374 15.75 4.50024 15.75L11.7502 15.75L11.7502 18.2823Z",fill:"currentColor"})}):r("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:r("path",{d:"M2.5 10C2.5 8.89544 3.39544 8 4.5 8H11.5V5.71777C11.5001 4.76912 12.2692 4.00012 13.2178 4C13.5973 4 13.9649 4.12537 14.2637 4.35449L14.3867 4.45898L20.8145 10.4268C21.2518 10.8329 21.5 11.4032 21.5 12C21.5 12.5968 21.2518 13.1671 20.8145 13.5732L14.3867 19.54L14.3877 19.541C14.0697 19.8365 13.6514 20 13.2178 20C12.2692 19.9999 11.5001 19.2308 11.5 18.2822V16H4.5C3.39545 16 2.5 15.1046 2.5 14V10ZM4.5 14H12.5C13.0523 14 13.5 14.4477 13.5 15V17.6348L19.4531 12.1074C19.4829 12.0797 19.5 12.0407 19.5 12C19.5 11.9593 19.4829 11.9203 19.4531 11.8926L13.5 6.36426V9C13.5 9.55228 13.0523 10 12.5 10H4.5V14Z",fill:"currentColor"})})})]},i.id)})})})})};export default y;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{Renderer as a}from"@expofp/renderer";import{HandlerRegistry as n}from"./HandlerRegistry";import{loadCustomFontsUrls as l}from"./index";import s from"../tools/logger";export class RendererService{_renderer=null;_scene=null;_fontUrls=[];ptScaleRegistry=new n;rollRegistry=new n;layerImagesRegistry=new n;get renderer(){return this._renderer?.isInitialized?this._renderer:null}get scene(){return this._scene}get fontUrls(){return this._fontUrls}getCameraState(){if(!this._renderer?.isInitialized){s.warn("Renderer is not initialized. Cannot get camera state.");return}return this._renderer.controls.getCameraState()}get scale(){return this.getCameraState()?.ptScale??1}get angle(){return this.getCameraState()?.roll??0}create(e){return this._renderer=new a(e),this._fontUrls=l(),this.setupEventListeners(),this._renderer}start(e){if(this._scene=e,!this._renderer)throw new Error("RendererService: renderer is not created.");this._renderer.init(e),this._renderer.start()}dispose(){this.ptScaleRegistry.clear(),this.rollRegistry.clear(),this.layerImagesRegistry.clear(),this._renderer?.dispose(),this._renderer=null,this._scene=null,this._fontUrls=[]}onPtScale(e,r){return this.ptScaleRegistry.register(e,r)}onRoll(e,r){return this.rollRegistry.register(e,r)}onLayerImages(e,r){return this.layerImagesRegistry.register(e,r)}update(...e){if(!this._renderer?.isInitialized){s.warn("Renderer is not initialized. Cannot update.");return}this._renderer.update(...e)}setupEventListeners(){const e=this._renderer;e.events.addEventListener("viewport:ptscale",r=>{if(!Number.isFinite(r))return;const
|
|
1
|
+
import{Renderer as a}from"@expofp/renderer";import{HandlerRegistry as n}from"./HandlerRegistry";import{loadCustomFontsUrls as l}from"./index";import s from"../tools/logger";import{isDefaultScene as o}from"./engine-core/defs";export class RendererService{_renderer=null;_scene=null;_fontUrls=[];ptScaleRegistry=new n;rollRegistry=new n;layerImagesRegistry=new n;get renderer(){return this._renderer?.isInitialized?this._renderer:null}get scene(){return this._scene}get fontUrls(){return this._fontUrls}getCameraState(){if(!this._renderer?.isInitialized){s.warn("Renderer is not initialized. Cannot get camera state.");return}return this._renderer.controls.getCameraState()}get scale(){return this.getCameraState()?.ptScale??1}get angle(){return this.getCameraState()?.roll??0}create(e){return this._renderer=new a(e),this._fontUrls=l(),this.setupEventListeners(),this._renderer}start(e){if(this._scene=e,!this._renderer)throw new Error("RendererService: renderer is not created.");this._renderer.init(e),this._renderer.start()}dispose(){this.ptScaleRegistry.clear(),this.rollRegistry.clear(),this.layerImagesRegistry.clear(),this._renderer?.dispose(),this._renderer=null,this._scene=null,this._fontUrls=[]}onPtScale(e,r){return this.ptScaleRegistry.register(e,r)}onRoll(e,r){return this.rollRegistry.register(e,r)}onLayerImages(e,r){return this.layerImagesRegistry.register(e,r)}update(...e){if(!this._renderer?.isInitialized){s.warn("Renderer is not initialized. Cannot update.");return}this._renderer.update(...e)}setupEventListeners(){const e=this._renderer;e.events.addEventListener("viewport:ptscale",({ptScale:r,sceneId:t})=>{if(!o(t)||!Number.isFinite(r))return;const i=[...this.ptScaleRegistry.invoke(r)];i.length&&e.update(...i)}),e.events.addEventListener("navigation:roll",r=>{if(!Number.isFinite(r))return;const t=[];for(const i of this.rollRegistry.invoke(r))Array.isArray(i)?t.push(...i):t.push(i);t.length&&e.update(...t)})}}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ImageDef, ImageSource, LayerDef, LineDef, Polygon, Rect, ShapeDef, TextAlignment, TextDef, TextLineDef, RenderableDefCollection, SceneDef } from "@expofp/renderer";
|
|
1
|
+
import { ImageDef, ImageSource, LayerDef, LineDef, Polygon, Rect, ShapeDef, TextAlignment, TextDef, TextLineDef, RenderableDefCollection, SceneDef, PointWithinSceneData, Vector2Like } from "@expofp/renderer";
|
|
2
2
|
import { MeshType, Line, TextLines, DefOptions } from "./types";
|
|
3
3
|
export declare function rectToShapeDef(rect: Rect | SVGRectElement, color?: string): ShapeDef;
|
|
4
4
|
export declare function meshToShapeDef(mesh: MeshType, color: string): ShapeDef;
|
|
@@ -12,4 +12,10 @@ export declare function createLineDef({ p0, p1 }: Line, color?: string, width?:
|
|
|
12
12
|
export declare function createLayerDef(name: string, children: RenderableDefCollection, options?: DefOptions): LayerDef;
|
|
13
13
|
export declare function createSceneDef(layers: LayerDef[], viewboxRect: SVGRectElement | Rect, background?: string, memoryLimit?: number): SceneDef;
|
|
14
14
|
export declare function createShapeDot(rect: Rect, color?: string, radius?: number): ImageDef;
|
|
15
|
+
export declare function isDefaultScene(sceneId: string | undefined): boolean;
|
|
16
|
+
export declare function pickDefaultScene(data: PointWithinSceneData[]): PointWithinSceneData;
|
|
17
|
+
export declare function pickDefaultScenePoint(points: {
|
|
18
|
+
sceneId?: string;
|
|
19
|
+
point: Vector2Like;
|
|
20
|
+
}[]): Vector2Like;
|
|
15
21
|
//# sourceMappingURL=defs.d.ts.map
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import{Polygon as
|
|
2
|
-
`),fontUrl:r[0]||
|
|
3
|
-
`),fontUrl:r[1]||
|
|
1
|
+
import{Polygon as a,Rect as f}from"@expofp/renderer";import{createCircleCanvas as u}from"./canvases";import{DEFAULT_FONT_LIGHT_URL as s,DEFAULT_FONT_URL as d}from"./fonts";export function rectToShapeDef(e,n){let t;return e instanceof SVGRectElement&&(t=f.fromSvg(e)),createShapeDef(t,n)}export function meshToShapeDef(e,n){if(!e)throw new Error("Create ShapeDef: mesh is not provided");const t=e.positions.map(i=>({x:i[0],y:Math.abs(i[1])})),r=e.cells,o=new a(t,r);return createShapeDef(o,n)}export function createShapeDef(e,n="#000"){if(!e||!(e instanceof a||e instanceof f))throw new Error("Invalid shape definition");return{shape:e,color:n}}export function createImageDef(e,n,t){if(!e)throw new Error("Image source is not provided");return{source:e,bounds:n,...t}}export function createTextDef(e,n,t,r,o){if(e.length===0)throw new Error("Invalid text lines");return{lines:e,bounds:n,padding:t,alignment:r,...o}}export function createTextDefLines(e,n,t,r=[void 0,void 0]){const[o,i]=e,c=[{text:o.join(`
|
|
2
|
+
`),fontUrl:r[0]||d,color:n,fontSize:t}];return i.length&&c.push({text:i.join(`
|
|
3
|
+
`),fontUrl:r[1]||s,color:n,fontSize:t}),c}export function createLineDef({p0:e,p1:n},t="#000",r=10){if(!(e?.x&&e.y||n?.x&&n.y))throw new Error("Line data is invalid");return{points:[{x:e.x,y:e.y},{x:n.x,y:n.y}],color:t,width:r}}export function createLayerDef(e,n,t){if(!e)throw new Error("Layer name is required");return n||(n=[]),{name:e,children:n,...t}}export function createSceneDef(e,n,t,r){let o;return n instanceof SVGRectElement?o=f.fromSvg(n):n instanceof f&&(o=n),{rootLayer:createLayerDef("root",e),background:t,viewbox:o,memoryLimit:r}}export function createShapeDot(e,n="#000",t=1.5){const r=u(t,n),o=new f({x:e.center.x-r.width/2,y:e.center.y-r.height/2},{x:e.center.x+r.width/2,y:e.center.y+r.height/2},e.rotation);return createImageDef(r,o)}export function isDefaultScene(e){return e===void 0}export function pickDefaultScene(e){const n=e.find(t=>isDefaultScene(t.sceneId));if(!n)throw new Error("Default scene not found");return n}export function pickDefaultScenePoint(e){const n=e.find(t=>isDefaultScene(t.sceneId));if(!n)throw new Error("Default scene point not found");return n.point}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{__esDecorate as s,__runInitializers as u}from"tslib";import{action as c,computed as l,observable as d}from"mobx";import{t as h}from"../utils/i18n";import f from"../data";import{exhibitorStore as le}from"./index";import re from"../tools/settings";import{sanitizeSearch as ce}from"../utils/sanitizeText";import{Route as S}from"./RouteStore";import{goBack as p}from"../services/routing";import{MOBILE_BREAKPOINT as he,LANGUAGE_TYPE as ne}from"../constants";class i{static closeDetails(r){return r.details?(r.details=null,!0):!1}static closeMultiPointTour(r){return r.rootStore.fp.hidePathways(),!0}static clearSearchAndFocus(r){return r.searchText?(r.setSearchText(""),r.setFocused(!0),!0):!1}static returnToSearch(r,n=!1){r.list={type:"search",text:"",focused:n}}static returnToSessions(r,n=!1){r.list={type:"sessions",text:"",focused:n}}static returnToTours(r,n=!1){r.list={type:"tours",text:"",focused:n}}static openMenu(r){r.menu=!0}static closeMenu(r){r.menu=!1}static clearListScroll(r,n){r.clearListScroll(n)}static resetActiveListIndex(r){r.activeListIndex=-1}}let ue=(()=>{let a=[],r,n=[],m=[],x,g=[],_=[],B,y=[],F=[],k,b=[],v=[],T,I,M,C,A,w,z,L,O,E,P,W,D,U,j,G,K,N,R,X,Y,H,V,$,q,J,Q,Z,ee,te,se,ae,ie;return class{static{const t=typeof Symbol=="function"&&Symbol.metadata?Object.create(null):void 0;r=[d],x=[d],B=[d],k=[d],T=[l],I=[l],M=[l],C=[l],A=[l],w=[l],z=[l],L=[l],O=[l],E=[l],P=[l],W=[l],D=[l],U=[l],j=[c],G=[c],K=[c],N=[c],R=[c],X=[c],Y=[c],H=[c],V=[c],$=[c],q=[c],J=[c],Q=[c],Z=[l],ee=[c],te=[l],se=[l],ae=[l],ie=[l],s(this,null,T,{kind:"getter",name:"searchBoxConfig",static:!1,private:!1,access:{has:e=>"searchBoxConfig"in e,get:e=>e.searchBoxConfig},metadata:t},null,a),s(this,null,I,{kind:"getter",name:"searchBoxMode",static:!1,private:!1,access:{has:e=>"searchBoxMode"in e,get:e=>e.searchBoxMode},metadata:t},null,a),s(this,null,M,{kind:"getter",name:"searchBoxTitle",static:!1,private:!1,access:{has:e=>"searchBoxTitle"in e,get:e=>e.searchBoxTitle},metadata:t},null,a),s(this,null,C,{kind:"getter",name:"searchBoxSubtitle",static:!1,private:!1,access:{has:e=>"searchBoxSubtitle"in e,get:e=>e.searchBoxSubtitle},metadata:t},null,a),s(this,null,A,{kind:"getter",name:"searchBoxBadge",static:!1,private:!1,access:{has:e=>"searchBoxBadge"in e,get:e=>e.searchBoxBadge},metadata:t},null,a),s(this,null,w,{kind:"getter",name:"searchBoxIcon",static:!1,private:!1,access:{has:e=>"searchBoxIcon"in e,get:e=>e.searchBoxIcon},metadata:t},null,a),s(this,null,z,{kind:"getter",name:"searchBoxActions",static:!1,private:!1,access:{has:e=>"searchBoxActions"in e,get:e=>e.searchBoxActions},metadata:t},null,a),s(this,null,L,{kind:"getter",name:"shouldShowSearchInput",static:!1,private:!1,access:{has:e=>"shouldShowSearchInput"in e,get:e=>e.shouldShowSearchInput},metadata:t},null,a),s(this,null,O,{kind:"getter",name:"shouldShowCloseButton",static:!1,private:!1,access:{has:e=>"shouldShowCloseButton"in e,get:e=>e.shouldShowCloseButton},metadata:t},null,a),s(this,null,E,{kind:"getter",name:"closeButtonAction",static:!1,private:!1,access:{has:e=>"closeButtonAction"in e,get:e=>e.closeButtonAction},metadata:t},null,a),s(this,null,P,{kind:"getter",name:"shouldShowShadow",static:!1,private:!1,access:{has:e=>"shouldShowShadow"in e,get:e=>e.shouldShowShadow},metadata:t},null,a),s(this,null,W,{kind:"getter",name:"placeholder",static:!1,private:!1,access:{has:e=>"placeholder"in e,get:e=>e.placeholder},metadata:t},null,a),s(this,null,D,{kind:"getter",name:"searchBoxClass",static:!1,private:!1,access:{has:e=>"searchBoxClass"in e,get:e=>e.searchBoxClass},metadata:t},null,a),s(this,null,U,{kind:"getter",name:"ariaLabel",static:!1,private:!1,access:{has:e=>"ariaLabel"in e,get:e=>e.ariaLabel},metadata:t},null,a),s(this,null,j,{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,G,{kind:"method",name:"selectSearchAndFocus",static:!1,private:!1,access:{has:e=>"selectSearchAndFocus"in e,get:e=>e.selectSearchAndFocus},metadata:t},null,a),s(this,null,K,{kind:"method",name:"setSearchText",static:!1,private:!1,access:{has:e=>"setSearchText"in e,get:e=>e.setSearchText},metadata:t},null,a),s(this,null,N,{kind:"method",name:"setFocused",static:!1,private:!1,access:{has:e=>"setFocused"in e,get:e=>e.setFocused},metadata:t},null,a),s(this,null,R,{kind:"method",name:"handleBackAction",static:!1,private:!1,access:{has:e=>"handleBackAction"in e,get:e=>e.handleBackAction},metadata:t},null,a),s(this,null,X,{kind:"method",name:"closeSearch",static:!1,private:!1,access:{has:e=>"closeSearch"in e,get:e=>e.closeSearch},metadata:t},null,a),s(this,null,Y,{kind:"method",name:"clearActiveFilters",static:!1,private:!1,access:{has:e=>"clearActiveFilters"in e,get:e=>e.clearActiveFilters},metadata:t},null,a),s(this,null,H,{kind:"method",name:"handleSearchAction",static:!1,private:!1,access:{has:e=>"handleSearchAction"in e,get:e=>e.handleSearchAction},metadata:t},null,a),s(this,null,V,{kind:"method",name:"openOverlayWithoutInputFocus",static:!1,private:!1,access:{has:e=>"openOverlayWithoutInputFocus"in e,get:e=>e.openOverlayWithoutInputFocus},metadata:t},null,a),s(this,null,$,{kind:"method",name:"closeSessions",static:!1,private:!1,access:{has:e=>"closeSessions"in e,get:e=>e.closeSessions},metadata:t},null,a),s(this,null,q,{kind:"method",name:"closeExhibitors",static:!1,private:!1,access:{has:e=>"closeExhibitors"in e,get:e=>e.closeExhibitors},metadata:t},null,a),s(this,null,J,{kind:"method",name:"resetSearchBox",static:!1,private:!1,access:{has:e=>"resetSearchBox"in e,get:e=>e.resetSearchBox},metadata:t},null,a),s(this,null,Q,{kind:"method",name:"syncWithUIState",static:!1,private:!1,access:{has:e=>"syncWithUIState"in e,get:e=>e.syncWithUIState},metadata:t},null,a),s(this,null,Z,{kind:"getter",name:"actionButtonIcon",static:!1,private:!1,access:{has:e=>"actionButtonIcon"in e,get:e=>e.actionButtonIcon},metadata:t},null,a),s(this,null,ee,{kind:"method",name:"clearAndSelectSearch",static:!1,private:!1,access:{has:e=>"clearAndSelectSearch"in e,get:e=>e.clearAndSelectSearch},metadata:t},null,a),s(this,null,te,{kind:"getter",name:"backMode",static:!1,private:!1,access:{has:e=>"backMode"in e,get:e=>e.backMode},metadata:t},null,a),s(this,null,se,{kind:"getter",name:"isMobileDetailsMode",static:!1,private:!1,access:{has:e=>"isMobileDetailsMode"in e,get:e=>e.isMobileDetailsMode},metadata:t},null,a),s(this,null,ae,{kind:"getter",name:"shouldShowTitle",static:!1,private:!1,access:{has:e=>"shouldShowTitle"in e,get:e=>e.shouldShowTitle},metadata:t},null,a),s(this,null,ie,{kind:"getter",name:"searchState",static:!1,private:!1,access:{has:e=>"searchState"in e,get:e=>e.searchState},metadata:t},null,a),s(null,null,r,{kind:"field",name:"searchText",static:!1,private:!1,access:{has:e=>"searchText"in e,get:e=>e.searchText,set:(e,o)=>{e.searchText=o}},metadata:t},n,m),s(null,null,x,{kind:"field",name:"isFocused",static:!1,private:!1,access:{has:e=>"isFocused"in e,get:e=>e.isFocused,set:(e,o)=>{e.isFocused=o}},metadata:t},g,_),s(null,null,B,{kind:"field",name:"isClearMode",static:!1,private:!1,access:{has:e=>"isClearMode"in e,get:e=>e.isClearMode,set:(e,o)=>{e.isClearMode=o}},metadata:t},y,F),s(null,null,k,{kind:"field",name:"skipInputFocus",static:!1,private:!1,access:{has:e=>"skipInputFocus"in e,get:e=>e.skipInputFocus,set:(e,o)=>{e.skipInputFocus=o}},metadata:t},b,v),t&&Object.defineProperty(this,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:t})}rootStore=u(this,a);searchText=u(this,n,"");isFocused=(u(this,m),u(this,g,!1));isClearMode=(u(this,_),u(this,y,!1));skipInputFocus=(u(this,F),u(this,b,!1));constructor(t){u(this,v),this.rootStore=t}get uiState(){return this.rootStore.uiState}get searchBoxConfig(){return this.uiState.searchBoxConfig}get searchBoxMode(){return this.searchBoxConfig.mode}get searchBoxTitle(){return this.searchBoxConfig.title}get searchBoxSubtitle(){return this.searchBoxConfig.subtitle}get searchBoxBadge(){return this.searchBoxConfig.badge}get searchBoxIcon(){return this.searchBoxConfig.icon}get searchBoxActions(){return this.uiState.searchBoxActions}get shouldShowSearchInput(){return this.searchBoxMode==="search"}get shouldShowCloseButton(){const{menu:t,details:e,list:o}=this.uiState;return!this.shouldShowSearchInput||o.type==="sessions"||o.type==="tours"||o.type==="speakers"||o.type==="exhibitors"?!0:t||e!==null||!!this.searchText||this.isClearMode||this.isFocused}get closeButtonAction(){return!this.shouldShowSearchInput||this.searchBoxMode==="details"||this.uiState.list.type==="sessions"||this.uiState.list.type==="speakers"||this.uiState.list.type==="exhibitors"?"close":this.searchText?"clear":"close"}get shouldShowShadow(){const{menu:t,details:e,list:o}=this.uiState,oe=o.type==="search"&&!!o.text;return!(this.rootStore.fp.alwaysShowSidebar||t||e!==null||o.type!=="search"||oe||this.isFocused||this.uiState.heatmap)}get placeholder(){const{list:t,heatmapYah:e}=this.uiState;if(t.type==="sessions")return h("Search sessions");if(t.type==="tours")return h("Search Guided Tours");if(t.type==="exhibitors")return h("Search exhibitors");if(t.type==="speakers")return h("Search speakers");if(re.EXPO.startsWith("lenzerheidemotorclassics"))return"SUCHE";if(re.EXPO.startsWith("jetlag"))return"Search location or artist";if(e)return h("Find values greater than");if(this.uiState.hasAppliedFilters)return h("Search");const o=f.boothTerm.toLowerCase();return!f.searchText&&le.exhibitors.length===0?h("Search {{boothTerm}}",{boothTerm:o}):f.searchText||h("Search")}get searchBoxClass(){return{"is-details":this.searchBoxMode==="details"&&!(this.uiState.details instanceof S),"is-interface":this.searchBoxMode==="interface","has-shadow":this.shouldShowShadow,"has-subtitle":!!this.searchBoxConfig.subtitle,"has-badge":!!this.searchBoxConfig.badge,"has-icon":!!this.searchBoxConfig.icon,"is-overlay-full":this.uiState.isOverlayOpen&&this.uiState.overlaySize==="full","is-featured-exhibitor":this.uiState.isFeaturedExhibitorActive,"is-route":this.uiState.details instanceof S,"is-guided-tours":this.uiState.isGuidedToursActive,"is-overlay-scrolled":this.uiState.isOverlayScrolled,"overlay-pulse":this.uiState.kiosk&&this.uiState.inIdle&&!this.uiState.setKioskModeEnabled}}get ariaLabel(){return!this.shouldShowSearchInput||this.searchBoxMode==="details"?h("Close"):this.searchText?h("Clear search"):h("Close")}selectSearch(t){window.__resett&&window.__resett(),this.uiState.details=null;const e=ce(t||"",Object.keys(this.uiState.mapSettings).map(o=>`${o}=`));this.setSearchText(e),this.uiState.activeListIndex=-1}selectSearchAndFocus(t){this.selectSearch(t),this.setFocused(!0)}setSearchText(t){this.searchText=t,this.uiState.hasAppliedFilters?this.rootStore.moveToList():this.uiState.centerMap=!0,this.uiState.activeListIndex=t?0:-1,this.uiState.list.type!=="sessions"&&this.uiState.list.type!=="tours"&&this.uiState.list.type!=="speakers"&&this.uiState.list.type!=="exhibitors"?this.uiState.list={type:"search",text:t,focused:this.isFocused}:this.uiState.list.type==="exhibitors"&&(this.uiState.list={type:"exhibitors",text:t,focused:this.isFocused}),this.uiState.searchClearMode=this.isClearMode}setFocused(t){this.isFocused=t,this.isClearMode=!1,this.skipInputFocus=!1,this.uiState.searchFocused=t,this.uiState.searchClearMode=!1,this.uiState.desiredOverlaySize="full"}handleBackAction(){const{uiState:t}=this,{list:e}=t;if(t.desiredOverlaySize="full",e.type==="route-planner"){this.rootStore.routePlannerStore.close(),this.rootStore.selectBookmarks(),p();return}if(e.type==="multi-point-tour"&&!t.details){i.returnToTours(t,!1),this.rootStore.fp.hidePathways();return}if(t.details){t.details=null,p();return}if(t.menu){e.type==="sessions"?t.list={type:"sessions",text:"",focused:!0}:e.type==="exhibitors"?t.list={type:"exhibitors",text:"",focused:!0}:t.list={type:"search",text:"",focused:!0},this.setFocused(!0),this.isClearMode=!0,i.closeMenu(t);return}if(e.type==="tours"&&t.details instanceof S){t.details=null;return}if(e.type==="sessions"||e.type==="tours"||e.type==="exhibitors"||this.uiState.hasAppliedFilters){if(i.closeDetails(t))return;this.clearActiveFilters(),i.returnToSearch(t,!1),this.selectSearchAndFocus();return}switch(e.type){case"filter":t.details=null;return;case"multi-point-tour":this.rootStore.fp.hidePathways(),i.closeDetails(t)?i.returnToTours(t,!1):p();return;case"category":this.rootStore.selectCategory(e.category);return;case"speakers":if(i.closeDetails(t))return;i.returnToSessions(t,!1);return;case"bookmarks":case"visited":if(i.closeDetails(t))return;this.selectSearchAndFocus();return;case ne:i.returnToSearch(t,!1),i.openMenu(t);return}i.closeDetails(t)||i.clearSearchAndFocus(this)||i.openMenu(t)}closeSearch(){const{uiState:t}=this,{list:e}=t;if(e.type==="route-planner"){this.rootStore.routePlannerStore.close(),i.returnToSearch(t,!1),this.resetSearchBox();return}if(i.closeDetails(t),i.clearListScroll(t,e.type),i.closeMultiPointTour(t),e.type==="bookmarks"){i.returnToSearch(t,!1),this.resetSearchBox();return}if(t.selectedCategory){i.returnToSearch(t,!1),this.resetSearchBox();return}if(e.type==="sessions"){this.closeSessions();return}if(e.type==="exhibitors"){this.closeExhibitors();return}if(t.menu){i.closeMenu(t),this.resetSearchBox();return}if(this.searchBoxMode==="search"&&!t.details&&this.searchText){this.setSearchText(""),this.isClearMode=!0,this.clearActiveFilters();return}i.returnToSearch(t,!1),this.searchText="",this.resetSearchBox(),t.details=null,this.clearActiveFilters()}clearActiveFilters(){this.rootStore.searchButtonsStore.setPoiFilterId(null),this.rootStore.uiState.selectedPoiTypeFilters=[],this.rootStore.uiState.selectedCategoryFilters=[],this.rootStore.categoryFilterStore.state.selectedItems=[],this.rootStore.categoryFilterStore.state.pendingItems=[],this.rootStore.searchButtonsStore.searchShortcutState.activeParentId=null,this.rootStore.searchButtonsStore.searchShortcutState.activeChildren.clear(),this.rootStore.searchButtonsStore.searchShortcutState.isShortcutsVisible=!1,this.rootStore.urlFilterManager&&this.rootStore.urlFilterManager.isInitialized&&this.rootStore.urlFilterManager.clearAllFilters()}handleSearchAction(){this.isFocused||this.setFocused(!0)}openOverlayWithoutInputFocus(){this.skipInputFocus=!0,this.isFocused=!0,this.isClearMode=!1,this.uiState.searchFocused=!0,this.uiState.searchClearMode=!1,this.uiState.desiredOverlaySize="full"}closeSessions(){this.searchText="",i.returnToSearch(this.uiState,!1),this.uiState.details=null,i.resetActiveListIndex(this.uiState),this.uiState.selectedTrack=null,this.rootStore.searchButtonsStore.setSubButtonId(null),this.rootStore.searchButtonsStore.hideSubButtons()}closeExhibitors(){this.searchText="",i.returnToSearch(this.uiState,!1),this.uiState.details=null,i.resetActiveListIndex(this.uiState)}resetSearchBox(){this.setFocused(!1),this.isClearMode=!1,this.syncWithUIState()}syncWithUIState(){this.searchText=(this.uiState.list.type==="search"||this.uiState.list.type==="exhibitors")&&this.uiState.list.text||"",this.isFocused=this.uiState.searchFocused,this.isClearMode=this.uiState.searchClearMode}get actionButtonIcon(){return this.shouldShowSearchInput?this.shouldShowCloseButton?"icon-close":"icon-search":"icon-close"}clearAndSelectSearch(){this.selectSearch(""),this.setFocused(!1)}get backMode(){return this.uiState.list.type==="speakers"||this.uiState.list.type==="sessions"||this.uiState.list.type==="tours"||this.uiState.list.type==="exhibitors"||this.uiState.hasAppliedFilters?"back":this.shouldShowSearchInput&&!this.searchText?"menu":"back"}get isMobileDetailsMode(){return window.innerWidth<he&&this.uiState.details!==null&&this.uiState.overlaySize==="full"&&!(this.uiState.details instanceof S)}get shouldShowTitle(){return!this.shouldShowSearchInput}get searchState(){return{text:this.searchText,isFocused:this.isFocused,isClearMode:this.isClearMode,mode:this.searchBoxMode,title:this.searchBoxConfig.title,subtitle:this.searchBoxConfig.subtitle,badge:this.searchBoxConfig.badge,icon:this.searchBoxConfig.icon}}}})();export default ue;
|
|
1
|
+
import{__esDecorate as s,__runInitializers as u}from"tslib";import{action as c,computed as o,observable as d}from"mobx";import{t as n}from"../utils/i18n";import oe from"../data";import ie from"../tools/settings";import{sanitizeSearch as le}from"../utils/sanitizeText";import{Route as S}from"./RouteStore";import{goBack as f}from"../services/routing";import{MOBILE_BREAKPOINT as ce,LANGUAGE_TYPE as he}from"../constants";class i{static closeDetails(r){return r.details?(r.details=null,!0):!1}static closeMultiPointTour(r){return r.rootStore.fp.hidePathways(),!0}static clearSearchAndFocus(r){return r.searchText?(r.setSearchText(""),r.setFocused(!0),!0):!1}static returnToSearch(r,h=!1){r.list={type:"search",text:"",focused:h}}static returnToSessions(r,h=!1){r.list={type:"sessions",text:"",focused:h}}static returnToTours(r,h=!1){r.list={type:"tours",text:"",focused:h}}static openMenu(r){r.menu=!0}static closeMenu(r){r.menu=!1}static clearListScroll(r,h){r.clearListScroll(h)}static resetActiveListIndex(r){r.activeListIndex=-1}}let ne=(()=>{let a=[],r,h=[],p=[],g,x=[],m=[],_,B=[],y=[],F,k=[],v=[],b,T,I,M,C,A,w,z,O,L,E,P,W,D,U,j,G,K,N,R,X,Y,H,V,$,q,J,Q,Z,ee,te,se,ae;return class{static{const t=typeof Symbol=="function"&&Symbol.metadata?Object.create(null):void 0;r=[d],g=[d],_=[d],F=[d],b=[o],T=[o],I=[o],M=[o],C=[o],A=[o],w=[o],z=[o],O=[o],L=[o],E=[o],P=[o],W=[o],D=[o],U=[c],j=[c],G=[c],K=[c],N=[c],R=[c],X=[c],Y=[c],H=[c],V=[c],$=[c],q=[c],J=[c],Q=[o],Z=[c],ee=[o],te=[o],se=[o],ae=[o],s(this,null,b,{kind:"getter",name:"searchBoxConfig",static:!1,private:!1,access:{has:e=>"searchBoxConfig"in e,get:e=>e.searchBoxConfig},metadata:t},null,a),s(this,null,T,{kind:"getter",name:"searchBoxMode",static:!1,private:!1,access:{has:e=>"searchBoxMode"in e,get:e=>e.searchBoxMode},metadata:t},null,a),s(this,null,I,{kind:"getter",name:"searchBoxTitle",static:!1,private:!1,access:{has:e=>"searchBoxTitle"in e,get:e=>e.searchBoxTitle},metadata:t},null,a),s(this,null,M,{kind:"getter",name:"searchBoxSubtitle",static:!1,private:!1,access:{has:e=>"searchBoxSubtitle"in e,get:e=>e.searchBoxSubtitle},metadata:t},null,a),s(this,null,C,{kind:"getter",name:"searchBoxBadge",static:!1,private:!1,access:{has:e=>"searchBoxBadge"in e,get:e=>e.searchBoxBadge},metadata:t},null,a),s(this,null,A,{kind:"getter",name:"searchBoxIcon",static:!1,private:!1,access:{has:e=>"searchBoxIcon"in e,get:e=>e.searchBoxIcon},metadata:t},null,a),s(this,null,w,{kind:"getter",name:"searchBoxActions",static:!1,private:!1,access:{has:e=>"searchBoxActions"in e,get:e=>e.searchBoxActions},metadata:t},null,a),s(this,null,z,{kind:"getter",name:"shouldShowSearchInput",static:!1,private:!1,access:{has:e=>"shouldShowSearchInput"in e,get:e=>e.shouldShowSearchInput},metadata:t},null,a),s(this,null,O,{kind:"getter",name:"shouldShowCloseButton",static:!1,private:!1,access:{has:e=>"shouldShowCloseButton"in e,get:e=>e.shouldShowCloseButton},metadata:t},null,a),s(this,null,L,{kind:"getter",name:"closeButtonAction",static:!1,private:!1,access:{has:e=>"closeButtonAction"in e,get:e=>e.closeButtonAction},metadata:t},null,a),s(this,null,E,{kind:"getter",name:"shouldShowShadow",static:!1,private:!1,access:{has:e=>"shouldShowShadow"in e,get:e=>e.shouldShowShadow},metadata:t},null,a),s(this,null,P,{kind:"getter",name:"placeholder",static:!1,private:!1,access:{has:e=>"placeholder"in e,get:e=>e.placeholder},metadata:t},null,a),s(this,null,W,{kind:"getter",name:"searchBoxClass",static:!1,private:!1,access:{has:e=>"searchBoxClass"in e,get:e=>e.searchBoxClass},metadata:t},null,a),s(this,null,D,{kind:"getter",name:"ariaLabel",static:!1,private:!1,access:{has:e=>"ariaLabel"in e,get:e=>e.ariaLabel},metadata:t},null,a),s(this,null,U,{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,j,{kind:"method",name:"selectSearchAndFocus",static:!1,private:!1,access:{has:e=>"selectSearchAndFocus"in e,get:e=>e.selectSearchAndFocus},metadata:t},null,a),s(this,null,G,{kind:"method",name:"setSearchText",static:!1,private:!1,access:{has:e=>"setSearchText"in e,get:e=>e.setSearchText},metadata:t},null,a),s(this,null,K,{kind:"method",name:"setFocused",static:!1,private:!1,access:{has:e=>"setFocused"in e,get:e=>e.setFocused},metadata:t},null,a),s(this,null,N,{kind:"method",name:"handleBackAction",static:!1,private:!1,access:{has:e=>"handleBackAction"in e,get:e=>e.handleBackAction},metadata:t},null,a),s(this,null,R,{kind:"method",name:"closeSearch",static:!1,private:!1,access:{has:e=>"closeSearch"in e,get:e=>e.closeSearch},metadata:t},null,a),s(this,null,X,{kind:"method",name:"clearActiveFilters",static:!1,private:!1,access:{has:e=>"clearActiveFilters"in e,get:e=>e.clearActiveFilters},metadata:t},null,a),s(this,null,Y,{kind:"method",name:"handleSearchAction",static:!1,private:!1,access:{has:e=>"handleSearchAction"in e,get:e=>e.handleSearchAction},metadata:t},null,a),s(this,null,H,{kind:"method",name:"openOverlayWithoutInputFocus",static:!1,private:!1,access:{has:e=>"openOverlayWithoutInputFocus"in e,get:e=>e.openOverlayWithoutInputFocus},metadata:t},null,a),s(this,null,V,{kind:"method",name:"closeSessions",static:!1,private:!1,access:{has:e=>"closeSessions"in e,get:e=>e.closeSessions},metadata:t},null,a),s(this,null,$,{kind:"method",name:"closeExhibitors",static:!1,private:!1,access:{has:e=>"closeExhibitors"in e,get:e=>e.closeExhibitors},metadata:t},null,a),s(this,null,q,{kind:"method",name:"resetSearchBox",static:!1,private:!1,access:{has:e=>"resetSearchBox"in e,get:e=>e.resetSearchBox},metadata:t},null,a),s(this,null,J,{kind:"method",name:"syncWithUIState",static:!1,private:!1,access:{has:e=>"syncWithUIState"in e,get:e=>e.syncWithUIState},metadata:t},null,a),s(this,null,Q,{kind:"getter",name:"actionButtonIcon",static:!1,private:!1,access:{has:e=>"actionButtonIcon"in e,get:e=>e.actionButtonIcon},metadata:t},null,a),s(this,null,Z,{kind:"method",name:"clearAndSelectSearch",static:!1,private:!1,access:{has:e=>"clearAndSelectSearch"in e,get:e=>e.clearAndSelectSearch},metadata:t},null,a),s(this,null,ee,{kind:"getter",name:"backMode",static:!1,private:!1,access:{has:e=>"backMode"in e,get:e=>e.backMode},metadata:t},null,a),s(this,null,te,{kind:"getter",name:"isMobileDetailsMode",static:!1,private:!1,access:{has:e=>"isMobileDetailsMode"in e,get:e=>e.isMobileDetailsMode},metadata:t},null,a),s(this,null,se,{kind:"getter",name:"shouldShowTitle",static:!1,private:!1,access:{has:e=>"shouldShowTitle"in e,get:e=>e.shouldShowTitle},metadata:t},null,a),s(this,null,ae,{kind:"getter",name:"searchState",static:!1,private:!1,access:{has:e=>"searchState"in e,get:e=>e.searchState},metadata:t},null,a),s(null,null,r,{kind:"field",name:"searchText",static:!1,private:!1,access:{has:e=>"searchText"in e,get:e=>e.searchText,set:(e,l)=>{e.searchText=l}},metadata:t},h,p),s(null,null,g,{kind:"field",name:"isFocused",static:!1,private:!1,access:{has:e=>"isFocused"in e,get:e=>e.isFocused,set:(e,l)=>{e.isFocused=l}},metadata:t},x,m),s(null,null,_,{kind:"field",name:"isClearMode",static:!1,private:!1,access:{has:e=>"isClearMode"in e,get:e=>e.isClearMode,set:(e,l)=>{e.isClearMode=l}},metadata:t},B,y),s(null,null,F,{kind:"field",name:"skipInputFocus",static:!1,private:!1,access:{has:e=>"skipInputFocus"in e,get:e=>e.skipInputFocus,set:(e,l)=>{e.skipInputFocus=l}},metadata:t},k,v),t&&Object.defineProperty(this,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:t})}rootStore=u(this,a);searchText=u(this,h,"");isFocused=(u(this,p),u(this,x,!1));isClearMode=(u(this,m),u(this,B,!1));skipInputFocus=(u(this,y),u(this,k,!1));constructor(t){u(this,v),this.rootStore=t}get uiState(){return this.rootStore.uiState}get searchBoxConfig(){return this.uiState.searchBoxConfig}get searchBoxMode(){return this.searchBoxConfig.mode}get searchBoxTitle(){return this.searchBoxConfig.title}get searchBoxSubtitle(){return this.searchBoxConfig.subtitle}get searchBoxBadge(){return this.searchBoxConfig.badge}get searchBoxIcon(){return this.searchBoxConfig.icon}get searchBoxActions(){return this.uiState.searchBoxActions}get shouldShowSearchInput(){return this.searchBoxMode==="search"}get shouldShowCloseButton(){const{menu:t,details:e,list:l}=this.uiState;return!this.shouldShowSearchInput||l.type==="sessions"||l.type==="tours"||l.type==="speakers"||l.type==="exhibitors"?!0:t||e!==null||!!this.searchText||this.isClearMode||this.isFocused}get closeButtonAction(){return!this.shouldShowSearchInput||this.searchBoxMode==="details"||this.uiState.list.type==="sessions"||this.uiState.list.type==="speakers"||this.uiState.list.type==="exhibitors"?"close":this.searchText?"clear":"close"}get shouldShowShadow(){const{menu:t,details:e,list:l}=this.uiState,re=l.type==="search"&&!!l.text;return!(this.rootStore.fp.alwaysShowSidebar||t||e!==null||l.type!=="search"||re||this.isFocused||this.uiState.heatmap)}get placeholder(){const{list:t,heatmapYah:e}=this.uiState;return t.type==="sessions"?n("Search sessions"):t.type==="tours"?n("Search Guided Tours"):t.type==="exhibitors"?n("Search exhibitors"):t.type==="speakers"?n("Search speakers"):ie.EXPO.startsWith("lenzerheidemotorclassics")?"SUCHE":ie.EXPO.startsWith("jetlag")?"Search location or artist":e?n("Find values greater than"):this.uiState.hasAppliedFilters?n("Search"):oe.searchText||n("Search")}get searchBoxClass(){return{"is-details":this.searchBoxMode==="details"&&!(this.uiState.details instanceof S),"is-interface":this.searchBoxMode==="interface","has-shadow":this.shouldShowShadow,"has-subtitle":!!this.searchBoxConfig.subtitle,"has-badge":!!this.searchBoxConfig.badge,"has-icon":!!this.searchBoxConfig.icon,"is-overlay-full":this.uiState.isOverlayOpen&&this.uiState.overlaySize==="full","is-featured-exhibitor":this.uiState.isFeaturedExhibitorActive,"is-route":this.uiState.details instanceof S,"is-guided-tours":this.uiState.isGuidedToursActive,"is-overlay-scrolled":this.uiState.isOverlayScrolled,"overlay-pulse":this.uiState.kiosk&&this.uiState.inIdle&&!this.uiState.setKioskModeEnabled}}get ariaLabel(){return!this.shouldShowSearchInput||this.searchBoxMode==="details"?n("Close"):this.searchText?n("Clear search"):n("Close")}selectSearch(t){window.__resett&&window.__resett(),this.uiState.details=null;const e=le(t||"",Object.keys(this.uiState.mapSettings).map(l=>`${l}=`));this.setSearchText(e),this.uiState.activeListIndex=-1}selectSearchAndFocus(t){this.selectSearch(t),this.setFocused(!0)}setSearchText(t){this.searchText=t,this.uiState.hasAppliedFilters?this.rootStore.moveToList():this.uiState.centerMap=!0,this.uiState.activeListIndex=t?0:-1,this.uiState.list.type!=="sessions"&&this.uiState.list.type!=="tours"&&this.uiState.list.type!=="speakers"&&this.uiState.list.type!=="exhibitors"?this.uiState.list={type:"search",text:t,focused:this.isFocused}:this.uiState.list.type==="exhibitors"&&(this.uiState.list={type:"exhibitors",text:t,focused:this.isFocused}),this.uiState.searchClearMode=this.isClearMode}setFocused(t){this.isFocused=t,this.isClearMode=!1,this.skipInputFocus=!1,this.uiState.searchFocused=t,this.uiState.searchClearMode=!1,this.uiState.desiredOverlaySize="full"}handleBackAction(){const{uiState:t}=this,{list:e}=t;if(t.desiredOverlaySize="full",e.type==="route-planner"){this.rootStore.routePlannerStore.close(),this.rootStore.selectBookmarks(),f();return}if(e.type==="multi-point-tour"&&!t.details){i.returnToTours(t,!1),this.rootStore.fp.hidePathways();return}if(t.details){t.details=null,f();return}if(t.menu){e.type==="sessions"?t.list={type:"sessions",text:"",focused:!0}:e.type==="exhibitors"?t.list={type:"exhibitors",text:"",focused:!0}:t.list={type:"search",text:"",focused:!0},this.setFocused(!0),this.isClearMode=!0,i.closeMenu(t);return}if(e.type==="tours"&&t.details instanceof S){t.details=null;return}if(e.type==="sessions"||e.type==="tours"||e.type==="exhibitors"||this.uiState.hasAppliedFilters){if(i.closeDetails(t))return;this.clearActiveFilters(),i.returnToSearch(t,!1),this.selectSearchAndFocus();return}switch(e.type){case"filter":t.details=null;return;case"multi-point-tour":this.rootStore.fp.hidePathways(),i.closeDetails(t)?i.returnToTours(t,!1):f();return;case"category":this.rootStore.selectCategory(e.category);return;case"speakers":if(i.closeDetails(t))return;i.returnToSessions(t,!1);return;case"bookmarks":case"visited":if(i.closeDetails(t))return;this.selectSearchAndFocus();return;case he:i.returnToSearch(t,!1),i.openMenu(t);return}i.closeDetails(t)||i.clearSearchAndFocus(this)||i.openMenu(t)}closeSearch(){const{uiState:t}=this,{list:e}=t;if(e.type==="route-planner"){this.rootStore.routePlannerStore.close(),i.returnToSearch(t,!1),this.resetSearchBox();return}if(i.closeDetails(t),i.clearListScroll(t,e.type),i.closeMultiPointTour(t),e.type==="bookmarks"){i.returnToSearch(t,!1),this.resetSearchBox();return}if(t.selectedCategory){i.returnToSearch(t,!1),this.resetSearchBox();return}if(e.type==="sessions"){this.closeSessions();return}if(e.type==="exhibitors"){this.closeExhibitors();return}if(t.menu){i.closeMenu(t),this.resetSearchBox();return}if(this.searchBoxMode==="search"&&!t.details&&this.searchText){this.setSearchText(""),this.isClearMode=!0,this.clearActiveFilters();return}i.returnToSearch(t,!1),this.searchText="",this.resetSearchBox(),t.details=null,this.clearActiveFilters()}clearActiveFilters(){this.rootStore.searchButtonsStore.setPoiFilterId(null),this.rootStore.uiState.selectedPoiTypeFilters=[],this.rootStore.uiState.selectedCategoryFilters=[],this.rootStore.categoryFilterStore.state.selectedItems=[],this.rootStore.categoryFilterStore.state.pendingItems=[],this.rootStore.searchButtonsStore.searchShortcutState.activeParentId=null,this.rootStore.searchButtonsStore.searchShortcutState.activeChildren.clear(),this.rootStore.searchButtonsStore.searchShortcutState.isShortcutsVisible=!1,this.rootStore.urlFilterManager&&this.rootStore.urlFilterManager.isInitialized&&this.rootStore.urlFilterManager.clearAllFilters()}handleSearchAction(){this.isFocused||this.setFocused(!0)}openOverlayWithoutInputFocus(){this.skipInputFocus=!0,this.isFocused=!0,this.isClearMode=!1,this.uiState.searchFocused=!0,this.uiState.searchClearMode=!1,this.uiState.desiredOverlaySize="full"}closeSessions(){this.searchText="",i.returnToSearch(this.uiState,!1),this.uiState.details=null,i.resetActiveListIndex(this.uiState),this.uiState.selectedTrack=null,this.rootStore.searchButtonsStore.setSubButtonId(null),this.rootStore.searchButtonsStore.hideSubButtons()}closeExhibitors(){this.searchText="",i.returnToSearch(this.uiState,!1),this.uiState.details=null,i.resetActiveListIndex(this.uiState)}resetSearchBox(){this.setFocused(!1),this.isClearMode=!1,this.syncWithUIState()}syncWithUIState(){this.searchText=(this.uiState.list.type==="search"||this.uiState.list.type==="exhibitors")&&this.uiState.list.text||"",this.isFocused=this.uiState.searchFocused,this.isClearMode=this.uiState.searchClearMode}get actionButtonIcon(){return this.shouldShowSearchInput?this.shouldShowCloseButton?"icon-close":"icon-search":"icon-close"}clearAndSelectSearch(){this.selectSearch(""),this.setFocused(!1)}get backMode(){return this.uiState.list.type==="speakers"||this.uiState.list.type==="sessions"||this.uiState.list.type==="tours"||this.uiState.list.type==="exhibitors"||this.uiState.hasAppliedFilters?"back":this.shouldShowSearchInput&&!this.searchText?"menu":"back"}get isMobileDetailsMode(){return window.innerWidth<ce&&this.uiState.details!==null&&this.uiState.overlaySize==="full"&&!(this.uiState.details instanceof S)}get shouldShowTitle(){return!this.shouldShowSearchInput}get searchState(){return{text:this.searchText,isFocused:this.isFocused,isClearMode:this.isClearMode,mode:this.searchBoxMode,title:this.searchBoxConfig.title,subtitle:this.searchBoxConfig.subtitle,badge:this.searchBoxConfig.badge,icon:this.searchBoxConfig.icon}}}})();export default ne;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{autorun as s,reaction as S,runInAction as h}from"mobx";import v from"../../core/Size";import{isWebGlSupported as
|
|
1
|
+
import{autorun as s,reaction as S,runInAction as h}from"mobx";import v from"../../core/Size";import{isWebGlSupported as g}from"../../utils";import l from"../../utils/preview-exhibitor";import{ResizeObserver as w}from"resize-observer";import{isLocalStorageAvailable as a}from"../../utils/localStorage";import{KIOSK_ENABLE_KEY as c,VISIBILITY_STORAGE_KEY as k}from"../../constants";import{detectLimitedModeViaImage as E}from"../../utils/detectLimitedModeViaImage";import y from"../../tools/logger";let o;export default function x(i){const{uiState:e,exhibitorStore:u,searchStore:b}=i;e.rootElement=window.__efpElement,f(e.rootElement.clientWidth,e.rootElement.clientHeight),o=new w(t=>{t.forEach(r=>{f(r.contentRect.width,r.contentRect.height)})}),o.observe(e.rootElement),l&&(e.previewExhibitor=u.exhibitorById.get(l.id));const n=typeof matchMedia<"u"?matchMedia(`(resolution: ${window.devicePixelRatio}dppx)`):null;n&&n.addEventListener&&n.addEventListener("change",()=>{e.devicePixelRatio=window.devicePixelRatio}),e.desiredOverlaySize=l||!g?"full":"medium",s(()=>{(e.searchFocused||e.menu)&&e.overlayPosition!=="left"&&(e.desiredOverlaySize="full")}),s(()=>{e.overlaySize!=="full"&&e.menu&&(e.menu=!1)}),e.wsShown||(e.wsStarted=!0),e.kiosk=a&&localStorage.getItem(c)==="1",window.__resett=d;function p(){i.reset()}var m;function d(){e.kiosk&&(y.log("zzz2","reset timer"),clearTimeout(m),m=setTimeout(p,3e4),e.inIdle=!1)}s(()=>{const t=e.list;t.type==="search"&&(t.text==="kkiosk"?e.kiosk=!0:t.text==="nokkiosk"&&(e.kiosk=!1))}),S(()=>e.kiosk,t=>{a&&(t?(localStorage.setItem(c,"1"),d()):localStorage.setItem(c,"0"))}),a&&e.setVisibility(JSON.parse(localStorage.getItem(k))||{});function f(t,r){h("uiState.screenSize",()=>{e.screenSize=new v(t,r)})}I(i)}export function destroyUiHandlers(){o&&(o.disconnect(),o=null)}async function I(i){try{if(!await E())return;i.uiState.setGlobalErrorMessage({title:"Unsupported Environment Detected",body:`
|
|
2
2
|
This application requires a proper server environment to function correctly.
|
|
3
3
|
For full functionality, please ensure the application is served through an HTTP/HTTPS server.
|
|
4
4
|
Some features may not work as expected in the current setup.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@expofp/floorplan",
|
|
3
|
-
"version": "3.1.
|
|
3
|
+
"version": "3.1.4",
|
|
4
4
|
"repository": {
|
|
5
5
|
"type": "git",
|
|
6
6
|
"url": "https://github.com/expofp/efp-app.git",
|
|
@@ -35,7 +35,7 @@
|
|
|
35
35
|
"!dist/stats.json"
|
|
36
36
|
],
|
|
37
37
|
"dependencies": {
|
|
38
|
-
"@expofp/renderer": "
|
|
38
|
+
"@expofp/renderer": "3.1.3",
|
|
39
39
|
"@sentry/core": "^10.51.0",
|
|
40
40
|
"@sentry/react": "^10.51.0",
|
|
41
41
|
"bowser": "^2.7.0",
|
|
@@ -76,8 +76,8 @@
|
|
|
76
76
|
"twgl.js": "^4.14.0",
|
|
77
77
|
"uuid": "^9.0.1",
|
|
78
78
|
"zod": "4.3.5",
|
|
79
|
-
"@expofp/
|
|
80
|
-
"@expofp/
|
|
79
|
+
"@expofp/resolve": "3.1.4",
|
|
80
|
+
"@expofp/debug": "3.1.4"
|
|
81
81
|
},
|
|
82
82
|
"devDependencies": {
|
|
83
83
|
"@babel/plugin-proposal-decorators": "^7.29.0",
|
|
@@ -1,49 +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.1.3" };
|
|
5
|
-
var t = new e.Error().stack;
|
|
6
|
-
t && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[t] = "e52b582f-d273-4e93-828b-cb90884730fc", e._sentryDebugIdIdentifier = "sentry-dbid-e52b582f-d273-4e93-828b-cb90884730fc");
|
|
7
|
-
} catch {}
|
|
8
|
-
})();
|
|
9
|
-
import { r as e } from "./chunk-DQBx2y0u.js";
|
|
10
|
-
import { t } from "./react-cBEAwEeA.js";
|
|
11
|
-
import { t as n } from "./jsx-runtime-BuRUOsV1.js";
|
|
12
|
-
import { a as r, k as i, qn as a } from "./store-Bj7lyE8j.js";
|
|
13
|
-
import { n as o } from "./mobx-CWmFk5Q_.js";
|
|
14
|
-
import { t as s } from "./KioskStore-IG8a9NKE.js";
|
|
15
|
-
//#region src/components/Kiosk/SetKioskMode.tsx
|
|
16
|
-
var c = /* @__PURE__ */ e(t(), 1), l = n(), u = a(() => {
|
|
17
|
-
var e, t, n;
|
|
18
|
-
o(() => s.handleSetupReady()), (0, c.useEffect)(() => {
|
|
19
|
-
let e = (e) => s.setInitialPtScale(e);
|
|
20
|
-
s.renderer.events.addEventListener("viewport:ptscale", e);
|
|
21
|
-
let t = (e) => s.handleClick(e);
|
|
22
|
-
s.renderer.events.addEventListener("pointer:click", t);
|
|
23
|
-
let n = () => s.handleNavigationChange();
|
|
24
|
-
return s.renderer.events.addEventListener("navigation:change", n), () => {
|
|
25
|
-
s.renderer.events.removeEventListener("viewport:ptscale", e), s.renderer.events.removeEventListener("pointer:click", t), s.renderer.events.removeEventListener("navigation:change", n);
|
|
26
|
-
};
|
|
27
|
-
}, [s.renderer]);
|
|
28
|
-
let a = !!s.kiosk;
|
|
29
|
-
return /* @__PURE__ */ (0, l.jsx)(i, {
|
|
30
|
-
isSaveDisabled: a ? !s.hasUnsavedChanges : !0,
|
|
31
|
-
isDeleteDisabled: !a,
|
|
32
|
-
areControlsDisabled: !a,
|
|
33
|
-
confirmOnClose: a ? s.hasUnsavedChanges : !1,
|
|
34
|
-
angle: ((e = s.kiosk) == null ? void 0 : e.heading) || 0,
|
|
35
|
-
uiScale: ((t = s.kiosk) == null ? void 0 : t.uiScale) || r.uiState.uiScale,
|
|
36
|
-
minUiScale: r.uiState.minUIScale,
|
|
37
|
-
maxUiScale: r.uiState.maxUIScale,
|
|
38
|
-
uiScaleStep: .01,
|
|
39
|
-
iconSizePercent: ((n = s.kiosk) == null ? void 0 : n.iconSizePercent) || 100,
|
|
40
|
-
isInfoVisible: !a,
|
|
41
|
-
statusMessages: s.statusMessages,
|
|
42
|
-
onClose: () => s.handleClose(),
|
|
43
|
-
onDelete: () => s.handleDelete(),
|
|
44
|
-
onSave: () => s.handleSave(),
|
|
45
|
-
onChange: (e) => s.handleChange(e)
|
|
46
|
-
});
|
|
47
|
-
});
|
|
48
|
-
//#endregion
|
|
49
|
-
export { u 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.1.3" };
|
|
5
|
-
var t = new e.Error().stack;
|
|
6
|
-
t && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[t] = "1cd9eecc-709b-4b78-940a-cbf60fb3a80f", e._sentryDebugIdIdentifier = "sentry-dbid-1cd9eecc-709b-4b78-940a-cbf60fb3a80f");
|
|
7
|
-
} catch {}
|
|
8
|
-
})();
|
|
9
|
-
import "./chunk-DQBx2y0u.js";
|
|
10
|
-
import "./is-debug-Cb7eGksV.js";
|
|
11
|
-
import { t as e } from "./react-cBEAwEeA.js";
|
|
12
|
-
import { t } from "./jsx-runtime-BuRUOsV1.js";
|
|
13
|
-
import { T as n, a as r, qn as i, w as a } from "./store-Bj7lyE8j.js";
|
|
14
|
-
import { n as o } from "./mobx-CWmFk5Q_.js";
|
|
15
|
-
import { t as s } from "./TouchHand-CAu_2Z0K.js";
|
|
16
|
-
import { t as c } from "./KioskStore-IG8a9NKE.js";
|
|
17
|
-
e();
|
|
18
|
-
var l = t(), u = i(() => (o(() => {
|
|
19
|
-
if (localStorage.getItem("kiosk") === "0") return;
|
|
20
|
-
let e = c.restoreData();
|
|
21
|
-
if (e) return a(e, !0), n(e), r.setResetCameraFn(() => c.resetCamera()), () => {
|
|
22
|
-
r.uiState.setKioskData(null), r.uiState.resetMapSettings(), c.resetCamera();
|
|
23
|
-
};
|
|
24
|
-
}), r.uiState.kiosk && r.uiState.inIdle ? /* @__PURE__ */ (0, l.jsx)(s, {}) : null));
|
|
25
|
-
//#endregion
|
|
26
|
-
export { u as default };
|