@expofp/floorplan 3.13.1 → 3.13.3
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/{Button-CKiBkbgb.js → Button-BDBNu2fN.js} +6 -6
- package/dist/browser/{CookieConsent-CSTxsO7b.js → CookieConsent-BU5tkx67.js} +8 -8
- package/dist/browser/{Debug-VJg8Kv3w.js → Debug-DOvyBeZ2.js} +8 -8
- package/dist/browser/{Demo-DK7aO8n7.js → Demo-13Pj5i8q.js} +10 -10
- package/dist/browser/{Free-Dc9anWmM.js → Free-DY2ixs1X.js} +10 -10
- package/dist/browser/{Gallery-Dnm4hSmm.js → Gallery-DSFy8OUt.js} +31 -25
- package/dist/browser/{GpsLoader-DQmIKYxp.js → GpsLoader-IUuZFKZB.js} +22 -22
- package/dist/browser/{KioskStore-Do9vKaRP.js → KioskStore-DCMfDTY0.js} +6 -6
- package/dist/browser/{MaplibreAdapter-bY-ABtGS.js → MaplibreAdapter-BuHDh2tN.js} +161 -133
- package/dist/browser/{ModalContainer-DnYcW0A9.js → ModalContainer-B66h-izv.js} +11 -11
- package/dist/browser/{PermissionNotice-BfOksslN.js → PermissionNotice-GLC80RiL.js} +7 -7
- package/dist/browser/{SetKioskMode-vTpieU9t.js → SetKioskMode-BbtKKH4m.js} +10 -10
- package/dist/browser/{ShowKiosk-CdNxtqFI.js → ShowKiosk-Bbc1ibvf.js} +12 -12
- package/dist/browser/{TouchHand-B9X_pexY.js → TouchHand-BnpCI_QP.js} +5 -5
- package/dist/browser/{ViewerMenuPanel-Cwhfqk7r.js → ViewerMenuPanel-u4eof_k3.js} +10 -10
- package/dist/browser/{add-debug-secret-listener-mWeM9pHG.js → add-debug-secret-listener-Dhk_JVpV.js} +1 -1
- package/dist/browser/{reset-all-settings-C4_ors4k.js → adopt-global-settings-D-DXuik1.js} +12 -17
- package/dist/browser/{boolean-editor-CGPZFexF.js → boolean-editor-Cr3udvWI.js} +46 -46
- package/dist/browser/{bootIntercom-CaST_jNX.js → bootIntercom-k9-F0coK.js} +3 -3
- package/dist/browser/{booth-by-xy-BO6naDgy.js → booth-by-xy-CfcPXRuo.js} +209 -209
- package/dist/browser/bundle.json +67 -70
- package/dist/browser/{classnames-ClEJC3j4.js → classnames-t9FqzaWX.js} +2 -2
- package/dist/browser/{client-DXdbQp9r.js → client-B_pxskYW.js} +9 -9
- package/dist/browser/{components-Bowa21U1.js → components-CUmWC2-D.js} +278 -271
- package/dist/browser/{debug-overlay-Y5npuuWR.js → debug-overlay-DDhRZgt_.js} +470 -464
- package/dist/browser/{debug-ui-D1g5i_jy.js → debug-ui-DxdcU6Kg.js} +7 -7
- package/dist/browser/{dist-BSvcUdys.js → dist-B8mNNnp7.js} +5 -5
- package/dist/browser/{dist-Cn9LPy1P.js → dist-CxhCCJRf.js} +7 -7
- package/dist/browser/{dist-aJ-8azal.js → dist-Pmi0eHka.js} +66 -67
- package/dist/browser/{efp-debug-init-Brk9OaSQ.js → efp-debug-init-Calw8mY0.js} +4 -4
- package/dist/browser/{enum-editor-BZ9LwkZ8.js → enum-editor-DCfrJJln.js} +5 -5
- package/dist/browser/{es5-XJHAF1nV.js → es5-DoQZDAdU.js} +2 -2
- package/dist/browser/{event-not-found-_rTvDWyj.js → event-not-found-ChDTsYTx.js} +1 -1
- package/dist/browser/{exports-DWUH8uau.js → exports-BX3S6XZB.js} +567 -566
- package/dist/browser/{favicon-5J-1eJZd.js → favicon-ClLPDK1r.js} +1 -1
- package/dist/browser/{fetch-retry.umd-Br7VuO9v.js → fetch-retry.umd-DzzXpi7b.js} +2 -2
- package/dist/browser/{flex-B3O1z4v3.js → flex-DP6WjhG4.js} +17 -17
- package/dist/browser/{floorplan.loader-sk15sA3u.js → floorplan.loader-D69t3BAF.js} +1381 -1307
- package/dist/browser/{floorplan.ready-B4ahF1S7.js → floorplan.ready-CHXz-cFn.js} +326 -335
- package/dist/browser/{fuse-Ci_KKUTa.js → fuse-BVXtZz6P.js} +2 -2
- package/dist/browser/{i18n-99DQd2vS.js → i18n-C8efqjSJ.js} +2921 -2559
- package/dist/browser/index.js +37 -37
- package/dist/browser/{index.module-DAnhLbye.js → index.module-C2y2P6lx.js} +6 -6
- package/dist/browser/{integrateKiosk-DZXpUrOj.js → integrateKiosk-B6woh9vx.js} +4 -4
- package/dist/browser/{is-webview-DpONzc0i.js → is-webview-BBrFDwGV.js} +1 -1
- package/dist/browser/{jsx-runtime-CaS3omHd.js → jsx-runtime-BJiMhWCh.js} +4 -4
- package/dist/browser/{lib-BiZuekek.js → lib-Bp05Ar7H.js} +155 -112
- package/dist/browser/{loadImage-CjXrDhKo.js → loadImage-BSxtVhbw.js} +5 -5
- package/dist/browser/{logDeviceInfo-BYL9Ek4m.js → logDeviceInfo-CKYIqDka.js} +9 -9
- package/dist/browser/{main-C5obpH9n.js → main-R4AfkxbT.js} +1 -1
- package/dist/browser/{mobx-DUuRiBpm.js → mobx-DGLsaukl.js} +5 -5
- package/dist/browser/{optional-boolean-editor-vmPQV7dq.js → optional-boolean-editor-BU6xH2-y.js} +4 -4
- package/dist/browser/{optional-enum-editor-CAafO0D2.js → optional-enum-editor-DguPalWk.js} +5 -5
- package/dist/browser/{optional-string-editor-CnDprvv4.js → optional-string-editor-C9Ca_jfw.js} +5 -5
- package/dist/browser/{particles.min-Bw-lHwaG.js → particles.min-Cnu30bUy.js} +2 -2
- package/dist/browser/{react-DIEnjHSI.js → react-B3i5PHk_.js} +5 -5
- package/dist/browser/{react-dom-CK-QaYaJ.js → react-dom-DU4GDIrZ.js} +6 -6
- package/dist/browser/{rolldown-runtime-Dfh5_zpq.js → rolldown-runtime-G74B3CmN.js} +1 -1
- package/dist/browser/select-D0rZ3mga.js +1367 -0
- package/dist/browser/{settings-CkTeZAPn.js → settings-D13emDUN.js} +3 -3
- package/dist/browser/{settings-item-Bdmu0-LD.js → settings-item-DwnQYGKx.js} +16 -16
- package/dist/browser/{store-C8eFtLML.js → store-Dfx4YNDt.js} +4458 -4458
- package/dist/browser/{string-editor-CM26hetz.js → string-editor-BM5ehAvW.js} +5 -5
- package/dist/browser/{text-field-CdM7a_e4.js → text-field-BxSBiSG0.js} +25 -25
- package/dist/browser/{theme-Byin1YOk.js → theme-Dg-nn5Fm.js} +949 -946
- package/dist/browser/{ui-Bso8uSzX.js → ui-D9Ao87UU.js} +11 -11
- package/dist/browser/{useRenderTarget-C16k6iot.js → useRenderTarget-bA5k2RxM.js} +5 -5
- package/dist/esm/components/AutocompleteContainer.d.ts +1 -1
- package/dist/esm/components/Bookmarks.d.ts +1 -1
- package/dist/esm/components/Bookmarks.js +1 -1
- package/dist/esm/components/Booth/Booth.js +1 -1
- package/dist/esm/components/Category.d.ts +1 -1
- package/dist/esm/components/Debug.d.ts +1 -1
- package/dist/esm/components/Debug.js +1 -1
- package/dist/esm/components/ErrorBoundary.d.ts +1 -1
- package/dist/esm/components/ErrorBoundary.js +1 -1
- package/dist/esm/components/Event.js +1 -1
- package/dist/esm/components/Exhibitor.d.ts +1 -1
- package/dist/esm/components/Exhibitor.js +1 -1
- package/dist/esm/components/Filter.d.ts +1 -1
- package/dist/esm/components/Filter.js +1 -1
- package/dist/esm/components/Gallery/GalleryBadges/GalleryBadges.js +1 -1
- package/dist/esm/components/Gallery/GalleryPreLoader.js +1 -1
- package/dist/esm/components/Kiosk/KioskStore.js +1 -1
- package/dist/esm/components/Kiosk/SetKiosk/SetKioskComponent.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/BoothDrawerBase.js +1 -1
- package/dist/esm/components/Map/drawing/config/BoothShape.js +1 -1
- package/dist/esm/components/Map/drawing/config/TextFitter.js +1 -1
- package/dist/esm/components/Map/drawing/config/config-bg.d.ts +1 -1
- package/dist/esm/components/Map/drawing/config/config-booth-bg.js +1 -1
- package/dist/esm/components/Map/drawing/config/config-booth-bookmark.js +1 -1
- package/dist/esm/components/Map/drawing/config/config-booth-border.js +1 -1
- package/dist/esm/components/Map/drawing/config/config-booth-labels-special.js +2 -2
- package/dist/esm/components/Map/drawing/config/config-booth-labels.js +1 -1
- package/dist/esm/components/Map/drawing/config/config-load-layer.js +1 -1
- package/dist/esm/components/Map/drawing/config/loadBoothsImages.js +1 -1
- package/dist/esm/components/Map/traffic/UpdateQueue.js +1 -1
- package/dist/esm/components/Map/traffic/useBuildRoute.js +1 -1
- package/dist/esm/components/Menu.d.ts +1 -1
- package/dist/esm/components/Menu.js +1 -1
- package/dist/esm/components/ModalContainer.d.ts +4 -4
- package/dist/esm/components/RebookingNotesContainer.d.ts +1 -1
- package/dist/esm/components/RebookingRadioGroupContainer.d.ts +1 -1
- package/dist/esm/components/RoutePlanner/RoutePlannerStopItem.js +1 -1
- package/dist/esm/components/Schedule.js +1 -1
- package/dist/esm/components/Search.d.ts +1 -1
- package/dist/esm/components/Search.js +1 -1
- package/dist/esm/components/Toast/ToastContainer.d.ts +1 -1
- package/dist/esm/components/TourPoints.d.ts +1 -1
- package/dist/esm/components/Tours.js +1 -1
- package/dist/esm/components/Visited.d.ts +1 -1
- package/dist/esm/components/WayfindingTemplate.js +1 -1
- package/dist/esm/components/Ws.d.ts +1 -1
- package/dist/esm/constants.d.ts +0 -1
- package/dist/esm/constants.js +1 -1
- package/dist/esm/data/svg.js +1 -1
- package/dist/esm/floorplan.loader.js +1 -1
- package/dist/esm/floorplan.ready.js +1 -1
- package/dist/esm/load-dev.d.ts +1 -1
- package/dist/esm/renderer/HandlerRegistry.js +1 -1
- package/dist/esm/renderer/RendererService.js +1 -1
- package/dist/esm/services/URLFilterManager.js +1 -1
- package/dist/esm/services/url-dispatch.js +1 -1
- package/dist/esm/store/BaseFilterStore.js +1 -1
- package/dist/esm/store/BookmarksStore.js +2 -2
- package/dist/esm/store/BoothStore.d.ts +1 -1
- package/dist/esm/store/BoothStore.js +1 -1
- package/dist/esm/store/CategoryFilterStore.js +1 -1
- package/dist/esm/store/CategoryStore.d.ts +1 -1
- package/dist/esm/store/CategoryStore.js +1 -1
- package/dist/esm/store/EventStore.d.ts +2 -2
- package/dist/esm/store/EventStore.js +1 -1
- package/dist/esm/store/ExhibitorStore.d.ts +1 -1
- package/dist/esm/store/ExhibitorStore.js +1 -1
- package/dist/esm/store/FuzzySearchEngineStore.js +1 -1
- package/dist/esm/store/HeatmapStore.d.ts +1 -1
- package/dist/esm/store/HeatmapStore.js +1 -1
- package/dist/esm/store/IntercomStore.js +1 -1
- package/dist/esm/store/LayerStore.js +1 -1
- package/dist/esm/store/MaplibreStore.js +1 -1
- package/dist/esm/store/PoiTypeStore.js +1 -1
- package/dist/esm/store/RootStore.js +1 -1
- package/dist/esm/store/RoutePlannerStore.js +1 -1
- package/dist/esm/store/RouteStore.js +1 -1
- package/dist/esm/store/SearchStore.d.ts +1 -1
- package/dist/esm/store/SearchStore.js +1 -1
- package/dist/esm/store/SessionsFilterStore.js +1 -1
- package/dist/esm/store/ShortcutRegistry.js +1 -1
- package/dist/esm/store/SpeakerFilterStore.js +1 -1
- package/dist/esm/store/SpeakerStore.d.ts +2 -2
- package/dist/esm/store/SpeakerStore.js +1 -1
- package/dist/esm/store/SubButtonRegistry.js +1 -1
- package/dist/esm/store/ToursStore.js +1 -1
- package/dist/esm/store/UIState.d.ts +2 -3
- package/dist/esm/store/UIState.js +1 -1
- package/dist/esm/store/init/init-booths.js +1 -1
- package/dist/esm/store/init/init-layers.js +1 -1
- package/dist/esm/store/providers/SearchShortcutProvider.js +1 -1
- package/dist/esm/store/providers/SessionsShortcutProvider.js +1 -1
- package/dist/esm/store/providers/SessionsSubButtonProvider.js +1 -1
- package/dist/esm/store/providers/SpeakerShortcutProvider.js +1 -1
- package/dist/esm/store/search-buttons/SearchButtonsActions.js +1 -1
- package/dist/esm/store/search-buttons/SearchButtonsFactory.js +1 -1
- package/dist/esm/store/search-buttons/SearchButtonsFilters.js +1 -1
- package/dist/esm/store/search-buttons/SearchButtonsState.js +1 -1
- package/dist/esm/store/search-buttons/SearchButtonsStore.js +1 -1
- package/dist/esm/store/search-buttons/constants.d.ts +8 -8
- package/dist/esm/store/types.d.ts +6 -6
- package/dist/esm/tools/expofpUrl.d.ts +2 -2
- package/dist/esm/tools/logger.js +1 -1
- package/dist/esm/tools/settings.js +1 -1
- package/dist/esm/ui/Autocomplete/Autocomplete.js +1 -1
- package/dist/esm/ui/EntityItem/EntityItem.js +1 -1
- package/dist/esm/ui/EventBadge/EventBadge.js +1 -1
- package/dist/esm/ui/Share/Share.js +1 -1
- package/dist/esm/utils/camera-map-settings.d.ts +2 -2
- package/dist/esm/utils/dimming.d.ts +1 -1
- package/dist/esm/utils/is-from-designer.d.ts +1 -1
- package/dist/esm/utils/silence-mobx-react-lite-warning.d.ts +1 -0
- package/dist/esm/utils/silence-mobx-react-lite-warning.js +1 -1
- package/package.json +23 -23
- package/dist/browser/prop-types-Bw2U3Pyj.js +0 -57
- package/dist/browser/select-CGbkxHY8.js +0 -1360
|
@@ -1 +1 @@
|
|
|
1
|
-
import{__esDecorate as i,__runInitializers as a}from"tslib";import{Box as Xl}from"@expofp/geometry";import{action as m,computed as c,observable as r}from"mobx";import{setKioskUrlParams as Jl}from"../components/Kiosk/kioskUrlParam";import{LANGUAGE_TYPE as R,LEGACY_PREVIEW_MODE_STORAGE_KEY as ql,LEGACY_UI_SCALE_STORAGE_KEY as Y,LEGACY_VIEWER_MODE_STORAGE_KEY as eo,MAP_SETTINGS_KEY as to,MOBILE_BREAKPOINT as so,PREVIEW_MODE_STORAGE_KEY as io,UI_SCALE_STORAGE_KEY as Q,VIEWER_MODE_STORAGE_KEY as ao,VISIBILITY_STORAGE_KEY as Nl}from"../constants";import z from"../data";import{svgArea as $,svgAreaExplicit as lo}from"../data/svg";import{readFreeBannerDismissed as oo}from"../tools/freeBanner";import{hasUserConsent as ro}from"../tools/gtag";import{hasHtmlTags as Kl}from"../tools/has-html-tags";import no from"../tools/logger";import V from"../tools/settings";import{stripHtml as Gl}from"../tools/strip-html";import{remsToPixels as N}from"../utils";import Yl from"../utils/browser";import{getLocale as co,getLocales as ho,t as y}from"../utils/i18n";import{isLocalStorageAvailable as B}from"../utils/localStorage";import{getResponsiveClass as uo}from"../utils/responsiveClass";import{sanitizeStr as Ql}from"../utils/sanitizeText";import{resolveVenueFitRect as fo}from"../utils/scene-bounds";import{uiState as w}from".";import{BoothBase as b,RegularBooth as A,SpecialBooth as W}from"./BoothStore";import{EventItem as F}from"./EventStore";import{Exhibitor as x}from"./ExhibitorStore";import{findEntityByExternalId as mo,Route as O}from"./RouteStore";import{SpeakerItem as j}from"./SpeakerStore";const go=["dimensions25"];let po=(()=>{var U,D,H,C,k;let l=[],M,Z=[],X=[],J,q=[],ee=[],te,se=[],ie=[],ae,le=[],oe=[],re,ne=[],ce=[],de,he=[],ue=[],fe,me=[],ge=[],pe,_e=[],ve=[],Se,ye=[],ke=[],Ie,be=[],xe=[],Ce,ze=[],Be=[],Te,Pe=[],we=[],Me,Re=[],Oe=[],De,Le=[],Ee=[],Ae,Fe=[],Ue=[],He,Ve=[],Ne=[],Ke,Ge=[],Ye=[],Qe,$e=[],We=[],je,Ze=[],Xe=[],Je,qe=[],et=[],tt,st=[],it=[],at,lt=[],ot=[],rt,nt=[],ct=[],dt,ht=[],ut=[],ft,mt=[],gt=[],pt,_t=[],vt=[],St,yt=[],kt=[],It,bt=[],xt=[],Ct,zt=[],Bt=[],Tt,Pt=[],wt=[],Mt,Rt=[],Ot=[],Dt,Lt=[],Et=[],At,Ft=[],Ut=[],Ht,Vt=[],Nt=[],Kt,Gt=[],Yt=[],Qt,$t=[],Wt=[],jt,Zt=[],Xt=[],Jt,qt=[],es=[],ts,ss=[],is=[],as,ls=[],os=[],rs,ns=[],cs=[],ds,hs=[],us=[],fs,ms=[],gs=[],ps,_s=[],vs=[],Ss,ys=[],ks=[],Is,bs=[],xs=[],Cs,zs=[],Bs=[],Ts,Ps=[],ws=[],Ms,Rs=[],Os=[],Ds,Ls=[],Es=[],As,Fs=[],Us=[],Hs,Vs=[],Ns=[],Ks,Gs=[],Ys=[],Qs,$s=[],Ws=[],js,Zs=[],Xs=[],Js,qs=[],ei=[],ti,si=[],ii=[],ai,li=[],oi=[],ri,ni=[],ci=[],di,hi=[],ui=[],fi,mi=[],gi=[],pi,_i=[],vi=[],Si,yi=[],ki=[],Ii,bi,xi,Ci,zi,Bi,Ti,Pi,wi,Mi,Ri,Oi,Di,Li,Ei,Ai,Fi,Ui,Hi,Vi,Ni,Ki,Gi,Yi,Qi,$i,Wi,ji,Zi,Xi,Ji,qi,ea,ta,sa,ia,aa,la,oa,ra,na,ca,da,ha,ua,fa,ma,ga,pa,_a,va,Sa,ya,ka=[],Ia=[],ba,xa,Ca,za,Ba,Ta,Pa,wa,Ma,Ra,Oa,Da,La,Ea,Aa,Fa,Ua,Ha,Va,Na,Ka,Ga,Ya=[],Qa=[],$a,Wa,ja,Za,Xa,Ja,qa,el,tl,sl,il,al,ll,ol,rl,nl,cl,dl,hl,ul,fl,ml=[],gl=[],pl,_l,vl,Sl=[],yl=[],kl,Il,bl=[],xl=[],Cl,zl,Bl,Tl,Pl,wl,Ml=[],Rl=[],Ol,Dl,Ll=[],El=[],Al;return class{static{const t=typeof Symbol=="function"&&Symbol.metadata?Object.create(null):void 0;M=[(U=r).struct.bind(U)],J=[(D=r).ref.bind(D)],te=[(H=r).ref.bind(H)],ae=[(C=r).ref.bind(C)],re=[r],de=[r],fe=[r],pe=[r],Se=[r],Ie=[r],Ce=[r],Te=[r],Me=[r],De=[(k=r).struct.bind(k)],Ae=[r],He=[r],Ke=[r],Qe=[r],je=[r],Je=[r],tt=[r],at=[r],rt=[r],dt=[r],ft=[r],pt=[r],St=[r],It=[r],Ct=[r],Tt=[r],Mt=[r],Dt=[r],At=[r],Ht=[r],Kt=[r],Qt=[r],jt=[r],Jt=[r],ts=[r],as=[r],rs=[r],ds=[r],fs=[r],ps=[r],Ss=[r],Is=[r],Cs=[r],Ts=[r],Ms=[r],Ds=[r],As=[r],Hs=[r],Ks=[r],Qs=[r],js=[r],Js=[r],ti=[r],ai=[r],ri=[r],di=[r],fi=[r],pi=[r],Si=[r],Ii=[m],bi=[m],xi=[m],Ci=[m],zi=[m],Bi=[m],Ti=[m],Pi=[m],wi=[m],Mi=[m],Ri=[m],Oi=[c],Di=[c],Li=[c],Ei=[c({keepAlive:!0})],Ai=[c({keepAlive:!0})],Fi=[c({keepAlive:!0})],Ui=[c({keepAlive:!0})],Hi=[c({keepAlive:!0})],Vi=[c({keepAlive:!0})],Ni=[c({keepAlive:!0})],Ki=[c({keepAlive:!0})],Gi=[c({keepAlive:!0})],Yi=[c],Qi=[c],$i=[c],Wi=[c],ji=[c],Zi=[c],Xi=[c],Ji=[c],qi=[c({keepAlive:!0})],ea=[c],ta=[c],sa=[c({keepAlive:!0})],ia=[c],aa=[c],la=[c],oa=[c],ra=[c],na=[c],ca=[c],da=[c],ha=[c],ua=[c],fa=[c],ma=[c],ga=[c],pa=[c],_a=[c],va=[c],Sa=[c({keepAlive:!0})],ya=[r],ba=[m],xa=[c],Ca=[c],za=[c],Ba=[c],Ta=[c],Pa=[c],wa=[c],Ma=[c],Ra=[c],Oa=[c({keepAlive:!0})],Da=[c({keepAlive:!0})],La=[c({keepAlive:!0})],Ea=[c],Aa=[m],Fa=[m],Ua=[m],Ha=[m],Va=[m],Na=[m],Ka=[c({keepAlive:!0})],Ga=[r],$a=[m],Wa=[m],ja=[c],Za=[c],Xa=[c],Ja=[c],qa=[c],el=[c],tl=[c],sl=[c],il=[c],al=[m],ll=[m],ol=[m],rl=[m],nl=[m],cl=[m],dl=[c],hl=[c],ul=[m],fl=[r],pl=[m],_l=[c],vl=[r],kl=[m],Il=[r],Cl=[m],zl=[m],Bl=[m],Tl=[m],Pl=[m],wl=[r],Ol=[m],Dl=[r],Al=[m],i(this,null,Ii,{kind:"method",name:"setSelectedCategoryFilters",static:!1,private:!1,access:{has:e=>"setSelectedCategoryFilters"in e,get:e=>e.setSelectedCategoryFilters},metadata:t},null,l),i(this,null,bi,{kind:"method",name:"resetCategoryFilter",static:!1,private:!1,access:{has:e=>"resetCategoryFilter"in e,get:e=>e.resetCategoryFilter},metadata:t},null,l),i(this,null,xi,{kind:"method",name:"setSearchClearMode",static:!1,private:!1,access:{has:e=>"setSearchClearMode"in e,get:e=>e.setSearchClearMode},metadata:t},null,l),i(this,null,Ci,{kind:"method",name:"setRouteTitle",static:!1,private:!1,access:{has:e=>"setRouteTitle"in e,get:e=>e.setRouteTitle},metadata:t},null,l),i(this,null,zi,{kind:"method",name:"setRouteDescription",static:!1,private:!1,access:{has:e=>"setRouteDescription"in e,get:e=>e.setRouteDescription},metadata:t},null,l),i(this,null,Bi,{kind:"method",name:"setIsMultiPointRoute",static:!1,private:!1,access:{has:e=>"setIsMultiPointRoute"in e,get:e=>e.setIsMultiPointRoute},metadata:t},null,l),i(this,null,Ti,{kind:"method",name:"setTourTitle",static:!1,private:!1,access:{has:e=>"setTourTitle"in e,get:e=>e.setTourTitle},metadata:t},null,l),i(this,null,Pi,{kind:"method",name:"setTourDescription",static:!1,private:!1,access:{has:e=>"setTourDescription"in e,get:e=>e.setTourDescription},metadata:t},null,l),i(this,null,wi,{kind:"method",name:"setIsMultiPointTour",static:!1,private:!1,access:{has:e=>"setIsMultiPointTour"in e,get:e=>e.setIsMultiPointTour},metadata:t},null,l),i(this,null,Mi,{kind:"method",name:"setPathwayOnlyMode",static:!1,private:!1,access:{has:e=>"setPathwayOnlyMode"in e,get:e=>e.setPathwayOnlyMode},metadata:t},null,l),i(this,null,Ri,{kind:"method",name:"setMultiPointTourList",static:!1,private:!1,access:{has:e=>"setMultiPointTourList"in e,get:e=>e.setMultiPointTourList},metadata:t},null,l),i(this,null,Oi,{kind:"getter",name:"activePathwayLayers",static:!1,private:!1,access:{has:e=>"activePathwayLayers"in e,get:e=>e.activePathwayLayers},metadata:t},null,l),i(this,null,Di,{kind:"getter",name:"highlightedBooths",static:!1,private:!1,access:{has:e=>"highlightedBooths"in e,get:e=>e.highlightedBooths},metadata:t},null,l),i(this,null,Li,{kind:"getter",name:"rtl",static:!1,private:!1,access:{has:e=>"rtl"in e,get:e=>e.rtl},metadata:t},null,l),i(this,null,Ei,{kind:"getter",name:"noOverlay",static:!1,private:!1,access:{has:e=>"noOverlay"in e,get:e=>e.noOverlay},metadata:t},null,l),i(this,null,Ai,{kind:"getter",name:"selectedExhibitor",static:!1,private:!1,access:{has:e=>"selectedExhibitor"in e,get:e=>e.selectedExhibitor},metadata:t},null,l),i(this,null,Fi,{kind:"getter",name:"selectedBooth",static:!1,private:!1,access:{has:e=>"selectedBooth"in e,get:e=>e.selectedBooth},metadata:t},null,l),i(this,null,Ui,{kind:"getter",name:"selectedCategory",static:!1,private:!1,access:{has:e=>"selectedCategory"in e,get:e=>e.selectedCategory},metadata:t},null,l),i(this,null,Hi,{kind:"getter",name:"selectedRoute",static:!1,private:!1,access:{has:e=>"selectedRoute"in e,get:e=>e.selectedRoute},metadata:t},null,l),i(this,null,Vi,{kind:"getter",name:"selectedSpeaker",static:!1,private:!1,access:{has:e=>"selectedSpeaker"in e,get:e=>e.selectedSpeaker},metadata:t},null,l),i(this,null,Ni,{kind:"getter",name:"uiScale",static:!1,private:!1,access:{has:e=>"uiScale"in e,get:e=>e.uiScale},metadata:t},null,l),i(this,null,Ki,{kind:"getter",name:"isGuidedToursActive",static:!1,private:!1,access:{has:e=>"isGuidedToursActive"in e,get:e=>e.isGuidedToursActive},metadata:t},null,l),i(this,null,Gi,{kind:"getter",name:"getRouteNextFloor",static:!1,private:!1,access:{has:e=>"getRouteNextFloor"in e,get:e=>e.getRouteNextFloor},metadata:t},null,l),i(this,null,Yi,{kind:"getter",name:"headerHeightRem",static:!1,private:!1,access:{has:e=>"headerHeightRem"in e,get:e=>e.headerHeightRem},metadata:t},null,l),i(this,null,Qi,{kind:"getter",name:"headerHeightPx",static:!1,private:!1,access:{has:e=>"headerHeightPx"in e,get:e=>e.headerHeightPx},metadata:t},null,l),i(this,null,$i,{kind:"getter",name:"overlayPosition",static:!1,private:!1,access:{has:e=>"overlayPosition"in e,get:e=>e.overlayPosition},metadata:t},null,l),i(this,null,Wi,{kind:"getter",name:"overlayCollapsed",static:!1,private:!1,access:{has:e=>"overlayCollapsed"in e,get:e=>e.overlayCollapsed},metadata:t},null,l),i(this,null,ji,{kind:"getter",name:"overlaySize",static:!1,private:!1,access:{has:e=>"overlaySize"in e,get:e=>e.overlaySize},metadata:t},null,l),i(this,null,Zi,{kind:"getter",name:"overlayBottom",static:!1,private:!1,access:{has:e=>"overlayBottom"in e,get:e=>e.overlayBottom},metadata:t},null,l),i(this,null,Xi,{kind:"getter",name:"overlayLeft",static:!1,private:!1,access:{has:e=>"overlayLeft"in e,get:e=>e.overlayLeft},metadata:t},null,l),i(this,null,Ji,{kind:"getter",name:"overlayWidthPx",static:!1,private:!1,access:{has:e=>"overlayWidthPx"in e,get:e=>e.overlayWidthPx},metadata:t},null,l),i(this,null,qi,{kind:"getter",name:"wsImageHeightPx",static:!1,private:!1,access:{has:e=>"wsImageHeightPx"in e,get:e=>e.wsImageHeightPx},metadata:t},null,l),i(this,null,ea,{kind:"getter",name:"wsPaddingPx",static:!1,private:!1,access:{has:e=>"wsPaddingPx"in e,get:e=>e.wsPaddingPx},metadata:t},null,l),i(this,null,ta,{kind:"getter",name:"wsOccupiedHeightPx",static:!1,private:!1,access:{has:e=>"wsOccupiedHeightPx"in e,get:e=>e.wsOccupiedHeightPx},metadata:t},null,l),i(this,null,sa,{kind:"getter",name:"wsShown",static:!1,private:!1,access:{has:e=>"wsShown"in e,get:e=>e.wsShown},metadata:t},null,l),i(this,null,ia,{kind:"getter",name:"wsDesktopPosition",static:!1,private:!1,access:{has:e=>"wsDesktopPosition"in e,get:e=>e.wsDesktopPosition},metadata:t},null,l),i(this,null,aa,{kind:"getter",name:"wsPosition",static:!1,private:!1,access:{has:e=>"wsPosition"in e,get:e=>e.wsPosition},metadata:t},null,l),i(this,null,la,{kind:"getter",name:"responsiveClass",static:!1,private:!1,access:{has:e=>"responsiveClass"in e,get:e=>e.responsiveClass},metadata:t},null,l),i(this,null,oa,{kind:"getter",name:"mapVisibleTop",static:!1,private:!1,access:{has:e=>"mapVisibleTop"in e,get:e=>e.mapVisibleTop},metadata:t},null,l),i(this,null,ra,{kind:"getter",name:"mapVisibleBottom",static:!1,private:!1,access:{has:e=>"mapVisibleBottom"in e,get:e=>e.mapVisibleBottom},metadata:t},null,l),i(this,null,na,{kind:"getter",name:"mapVisibleStart",static:!1,private:!1,access:{has:e=>"mapVisibleStart"in e,get:e=>e.mapVisibleStart},metadata:t},null,l),i(this,null,ca,{kind:"getter",name:"searchActionsHeightPx",static:!1,private:!1,access:{has:e=>"searchActionsHeightPx"in e,get:e=>e.searchActionsHeightPx},metadata:t},null,l),i(this,null,da,{kind:"getter",name:"fullSizeOffset",static:!1,private:!1,access:{has:e=>"fullSizeOffset"in e,get:e=>e.fullSizeOffset},metadata:t},null,l),i(this,null,ha,{kind:"getter",name:"shouldShowSearchButtons",static:!1,private:!1,access:{has:e=>"shouldShowSearchButtons"in e,get:e=>e.shouldShowSearchButtons},metadata:t},null,l),i(this,null,ua,{kind:"getter",name:"shouldShowMobileToggle",static:!1,private:!1,access:{has:e=>"shouldShowMobileToggle"in e,get:e=>e.shouldShowMobileToggle},metadata:t},null,l),i(this,null,fa,{kind:"getter",name:"mobileToggleIsListMode",static:!1,private:!1,access:{has:e=>"mobileToggleIsListMode"in e,get:e=>e.mobileToggleIsListMode},metadata:t},null,l),i(this,null,ma,{kind:"getter",name:"canvasVisibleRectPx",static:!1,private:!1,access:{has:e=>"canvasVisibleRectPx"in e,get:e=>e.canvasVisibleRectPx},metadata:t},null,l),i(this,null,ga,{kind:"getter",name:"shouldShiftMapRect",static:!1,private:!1,access:{has:e=>"shouldShiftMapRect"in e,get:e=>e.shouldShiftMapRect},metadata:t},null,l),i(this,null,pa,{kind:"getter",name:"hasAppliedFilters",static:!1,private:!1,access:{has:e=>"hasAppliedFilters"in e,get:e=>e.hasAppliedFilters},metadata:t},null,l),i(this,null,_a,{kind:"getter",name:"canvasVisibleRectPt",static:!1,private:!1,access:{has:e=>"canvasVisibleRectPt"in e,get:e=>e.canvasVisibleRectPt},metadata:t},null,l),i(this,null,va,{kind:"getter",name:"canvasSizePt",static:!1,private:!1,access:{has:e=>"canvasSizePt"in e,get:e=>e.canvasSizePt},metadata:t},null,l),i(this,null,Sa,{kind:"getter",name:"shouldUseBackdrop",static:!1,private:!1,access:{has:e=>"shouldUseBackdrop"in e,get:e=>e.shouldUseBackdrop},metadata:t},null,l),i(this,null,ba,{kind:"method",name:"setForceDim",static:!1,private:!1,access:{has:e=>"setForceDim"in e,get:e=>e.setForceDim},metadata:t},null,l),i(this,null,xa,{kind:"getter",name:"dimmed",static:!1,private:!1,access:{has:e=>"dimmed"in e,get:e=>e.dimmed},metadata:t},null,l),i(this,null,Ca,{kind:"getter",name:"defaultSearchItems",static:!1,private:!1,access:{has:e=>"defaultSearchItems"in e,get:e=>e.defaultSearchItems},metadata:t},null,l),i(this,null,za,{kind:"getter",name:"searchItems",static:!1,private:!1,access:{has:e=>"searchItems"in e,get:e=>e.searchItems},metadata:t},null,l),i(this,null,Ba,{kind:"getter",name:"searchList",static:!1,private:!1,access:{has:e=>"searchList"in e,get:e=>e.searchList},metadata:t},null,l),i(this,null,Ta,{kind:"getter",name:"foundInDescription",static:!1,private:!1,access:{has:e=>"foundInDescription"in e,get:e=>e.foundInDescription},metadata:t},null,l),i(this,null,Pa,{kind:"getter",name:"foundInDescriptionStruct",static:!1,private:!1,access:{has:e=>"foundInDescriptionStruct"in e,get:e=>e.foundInDescriptionStruct},metadata:t},null,l),i(this,null,wa,{kind:"getter",name:"categoryFilteredSearchList",static:!1,private:!1,access:{has:e=>"categoryFilteredSearchList"in e,get:e=>e.categoryFilteredSearchList},metadata:t},null,l),i(this,null,Ma,{kind:"getter",name:"fuzzySearchItems",static:!1,private:!1,access:{has:e=>"fuzzySearchItems"in e,get:e=>e.fuzzySearchItems},metadata:t},null,l),i(this,null,Ra,{kind:"getter",name:"listItems",static:!1,private:!1,access:{has:e=>"listItems"in e,get:e=>e.listItems},metadata:t},null,l),i(this,null,Oa,{kind:"getter",name:"listBooths",static:!1,private:!1,access:{has:e=>"listBooths"in e,get:e=>e.listBooths},metadata:t},null,l),i(this,null,Da,{kind:"getter",name:"selectedBooths",static:!1,private:!1,access:{has:e=>"selectedBooths"in e,get:e=>e.selectedBooths},metadata:t},null,l),i(this,null,La,{kind:"getter",name:"hoveredBooths",static:!1,private:!1,access:{has:e=>"hoveredBooths"in e,get:e=>e.hoveredBooths},metadata:t},null,l),i(this,null,Ea,{kind:"getter",name:"visibility",static:!1,private:!1,access:{has:e=>"visibility"in e,get:e=>e.visibility},metadata:t},null,l),i(this,null,Aa,{kind:"method",name:"setVisibility",static:!1,private:!1,access:{has:e=>"setVisibility"in e,get:e=>e.setVisibility},metadata:t},null,l),i(this,null,Fa,{kind:"method",name:"toggleMapOverlay",static:!1,private:!1,access:{has:e=>"toggleMapOverlay"in e,get:e=>e.toggleMapOverlay},metadata:t},null,l),i(this,null,Ua,{kind:"method",name:"changeZoom",static:!1,private:!1,access:{has:e=>"changeZoom"in e,get:e=>e.changeZoom},metadata:t},null,l),i(this,null,Ha,{kind:"method",name:"zoomIn",static:!1,private:!1,access:{has:e=>"zoomIn"in e,get:e=>e.zoomIn},metadata:t},null,l),i(this,null,Va,{kind:"method",name:"zoomOut",static:!1,private:!1,access:{has:e=>"zoomOut"in e,get:e=>e.zoomOut},metadata:t},null,l),i(this,null,Na,{kind:"method",name:"fitBounds",static:!1,private:!1,access:{has:e=>"fitBounds"in e,get:e=>e.fitBounds},metadata:t},null,l),i(this,null,Ka,{kind:"getter",name:"selectedEventItem",static:!1,private:!1,access:{has:e=>"selectedEventItem"in e,get:e=>e.selectedEventItem},metadata:t},null,l),i(this,null,$a,{kind:"method",name:"setMapSettings",static:!1,private:!1,access:{has:e=>"setMapSettings"in e,get:e=>e.setMapSettings},metadata:t},null,l),i(this,null,Wa,{kind:"method",name:"resetMapSettings",static:!1,private:!1,access:{has:e=>"resetMapSettings"in e,get:e=>e.resetMapSettings},metadata:t},null,l),i(this,null,ja,{kind:"getter",name:"baseQRCodeUrl",static:!1,private:!1,access:{has:e=>"baseQRCodeUrl"in e,get:e=>e.baseQRCodeUrl},metadata:t},null,l),i(this,null,Za,{kind:"getter",name:"viewMapOnPhoneQRCodeUrl",static:!1,private:!1,access:{has:e=>"viewMapOnPhoneQRCodeUrl"in e,get:e=>e.viewMapOnPhoneQRCodeUrl},metadata:t},null,l),i(this,null,Xa,{kind:"getter",name:"routeQRCodeUrl",static:!1,private:!1,access:{has:e=>"routeQRCodeUrl"in e,get:e=>e.routeQRCodeUrl},metadata:t},null,l),i(this,null,Ja,{kind:"getter",name:"isFeaturedExhibitorActive",static:!1,private:!1,access:{has:e=>"isFeaturedExhibitorActive"in e,get:e=>e.isFeaturedExhibitorActive},metadata:t},null,l),i(this,null,qa,{kind:"getter",name:"activeInterfaceData",static:!1,private:!1,access:{has:e=>"activeInterfaceData"in e,get:e=>e.activeInterfaceData},metadata:t},null,l),i(this,null,el,{kind:"getter",name:"searchBoxConfig",static:!1,private:!1,access:{has:e=>"searchBoxConfig"in e,get:e=>e.searchBoxConfig},metadata:t},null,l),i(this,null,tl,{kind:"getter",name:"searchBoxActions",static:!1,private:!1,access:{has:e=>"searchBoxActions"in e,get:e=>e.searchBoxActions},metadata:t},null,l),i(this,null,sl,{kind:"getter",name:"overlayInterfaceClasses",static:!1,private:!1,access:{has:e=>"overlayInterfaceClasses"in e,get:e=>e.overlayInterfaceClasses},metadata:t},null,l),i(this,null,il,{kind:"getter",name:"isOverlayOpen",static:!1,private:!1,access:{has:e=>"isOverlayOpen"in e,get:e=>e.isOverlayOpen},metadata:t},null,l),i(this,null,al,{kind:"method",name:"setOverlayScrolled",static:!1,private:!1,access:{has:e=>"setOverlayScrolled"in e,get:e=>e.setOverlayScrolled},metadata:t},null,l),i(this,null,ll,{kind:"method",name:"setListScrollTop",static:!1,private:!1,access:{has:e=>"setListScrollTop"in e,get:e=>e.setListScrollTop},metadata:t},null,l),i(this,null,ol,{kind:"method",name:"setListScrollItemId",static:!1,private:!1,access:{has:e=>"setListScrollItemId"in e,get:e=>e.setListScrollItemId},metadata:t},null,l),i(this,null,rl,{kind:"method",name:"getListScrollTop",static:!1,private:!1,access:{has:e=>"getListScrollTop"in e,get:e=>e.getListScrollTop},metadata:t},null,l),i(this,null,nl,{kind:"method",name:"getListScrollItemId",static:!1,private:!1,access:{has:e=>"getListScrollItemId"in e,get:e=>e.getListScrollItemId},metadata:t},null,l),i(this,null,cl,{kind:"method",name:"clearListScroll",static:!1,private:!1,access:{has:e=>"clearListScroll"in e,get:e=>e.clearListScroll},metadata:t},null,l),i(this,null,dl,{kind:"getter",name:"bannerType",static:!1,private:!1,access:{has:e=>"bannerType"in e,get:e=>e.bannerType},metadata:t},null,l),i(this,null,hl,{kind:"getter",name:"isBannerVisible",static:!1,private:!1,access:{has:e=>"isBannerVisible"in e,get:e=>e.isBannerVisible},metadata:t},null,l),i(this,null,ul,{kind:"method",name:"setCurrentBanner",static:!1,private:!1,access:{has:e=>"setCurrentBanner"in e,get:e=>e.setCurrentBanner},metadata:t},null,l),i(this,null,pl,{kind:"method",name:"setForceShowDetails",static:!1,private:!1,access:{has:e=>"setForceShowDetails"in e,get:e=>e.setForceShowDetails},metadata:t},null,l),i(this,null,_l,{kind:"getter",name:"showRouteInstantly",static:!1,private:!1,access:{has:e=>"showRouteInstantly"in e,get:e=>e.showRouteInstantly},metadata:t},null,l),i(this,null,kl,{kind:"method",name:"startBuildRoute",static:!1,private:!1,access:{has:e=>"startBuildRoute"in e,get:e=>e.startBuildRoute},metadata:t},null,l),i(this,null,Cl,{kind:"method",name:"setGlobalErrorMessage",static:!1,private:!1,access:{has:e=>"setGlobalErrorMessage"in e,get:e=>e.setGlobalErrorMessage},metadata:t},null,l),i(this,null,zl,{kind:"method",name:"popGlobalErrorMessage",static:!1,private:!1,access:{has:e=>"popGlobalErrorMessage"in e,get:e=>e.popGlobalErrorMessage},metadata:t},null,l),i(this,null,Bl,{kind:"method",name:"initializeUIScale",static:!1,private:!1,access:{has:e=>"initializeUIScale"in e,get:e=>e.initializeUIScale},metadata:t},null,l),i(this,null,Tl,{kind:"method",name:"setUIScale",static:!1,private:!1,access:{has:e=>"setUIScale"in e,get:e=>e.setUIScale},metadata:t},null,l),i(this,null,Pl,{kind:"method",name:"resetUIScale",static:!1,private:!1,access:{has:e=>"resetUIScale"in e,get:e=>e.resetUIScale},metadata:t},null,l),i(this,null,Ol,{kind:"method",name:"enableSetKioskMode",static:!1,private:!1,access:{has:e=>"enableSetKioskMode"in e,get:e=>e.enableSetKioskMode},metadata:t},null,l),i(this,null,Al,{kind:"method",name:"setKioskData",static:!1,private:!1,access:{has:e=>"setKioskData"in e,get:e=>e.setKioskData},metadata:t},null,l),i(null,null,M,{kind:"field",name:"list",static:!1,private:!1,access:{has:e=>"list"in e,get:e=>e.list,set:(e,s)=>{e.list=s}},metadata:t},Z,X),i(null,null,J,{kind:"field",name:"details",static:!1,private:!1,access:{has:e=>"details"in e,get:e=>e.details,set:(e,s)=>{e.details=s}},metadata:t},q,ee),i(null,null,te,{kind:"field",name:"hoveredExhibitor",static:!1,private:!1,access:{has:e=>"hoveredExhibitor"in e,get:e=>e.hoveredExhibitor,set:(e,s)=>{e.hoveredExhibitor=s}},metadata:t},se,ie),i(null,null,ae,{kind:"field",name:"hoveredBooth",static:!1,private:!1,access:{has:e=>"hoveredBooth"in e,get:e=>e.hoveredBooth,set:(e,s)=>{e.hoveredBooth=s}},metadata:t},le,oe),i(null,null,re,{kind:"field",name:"zoomBy",static:!1,private:!1,access:{has:e=>"zoomBy"in e,get:e=>e.zoomBy,set:(e,s)=>{e.zoomBy=s}},metadata:t},ne,ce),i(null,null,de,{kind:"field",name:"rollReset",static:!1,private:!1,access:{has:e=>"rollReset"in e,get:e=>e.rollReset,set:(e,s)=>{e.rollReset=s}},metadata:t},he,ue),i(null,null,fe,{kind:"field",name:"moveToBooths",static:!1,private:!1,access:{has:e=>"moveToBooths"in e,get:e=>e.moveToBooths,set:(e,s)=>{e.moveToBooths=s}},metadata:t},me,ge),i(null,null,pe,{kind:"field",name:"moveToRect",static:!1,private:!1,access:{has:e=>"moveToRect"in e,get:e=>e.moveToRect,set:(e,s)=>{e.moveToRect=s}},metadata:t},_e,ve),i(null,null,Se,{kind:"field",name:"moveToLocation",static:!1,private:!1,access:{has:e=>"moveToLocation"in e,get:e=>e.moveToLocation,set:(e,s)=>{e.moveToLocation=s}},metadata:t},ye,ke),i(null,null,Ie,{kind:"field",name:"menu",static:!1,private:!1,access:{has:e=>"menu"in e,get:e=>e.menu,set:(e,s)=>{e.menu=s}},metadata:t},be,xe),i(null,null,Ce,{kind:"field",name:"searchFocused",static:!1,private:!1,access:{has:e=>"searchFocused"in e,get:e=>e.searchFocused,set:(e,s)=>{e.searchFocused=s}},metadata:t},ze,Be),i(null,null,Te,{kind:"field",name:"searchClearMode",static:!1,private:!1,access:{has:e=>"searchClearMode"in e,get:e=>e.searchClearMode,set:(e,s)=>{e.searchClearMode=s}},metadata:t},Pe,we),i(null,null,Me,{kind:"field",name:"printingPdf",static:!1,private:!1,access:{has:e=>"printingPdf"in e,get:e=>e.printingPdf,set:(e,s)=>{e.printingPdf=s}},metadata:t},Re,Oe),i(null,null,De,{kind:"field",name:"screenSize",static:!1,private:!1,access:{has:e=>"screenSize"in e,get:e=>e.screenSize,set:(e,s)=>{e.screenSize=s}},metadata:t},Le,Ee),i(null,null,Ae,{kind:"field",name:"desiredOverlaySize",static:!1,private:!1,access:{has:e=>"desiredOverlaySize"in e,get:e=>e.desiredOverlaySize,set:(e,s)=>{e.desiredOverlaySize=s}},metadata:t},Fe,Ue),i(null,null,He,{kind:"field",name:"overlayShowsAll",static:!1,private:!1,access:{has:e=>"overlayShowsAll"in e,get:e=>e.overlayShowsAll,set:(e,s)=>{e.overlayShowsAll=s}},metadata:t},Ve,Ne),i(null,null,Ke,{kind:"field",name:"centerMap",static:!1,private:!1,access:{has:e=>"centerMap"in e,get:e=>e.centerMap,set:(e,s)=>{e.centerMap=s}},metadata:t},Ge,Ye),i(null,null,Qe,{kind:"field",name:"zoomAfTransformK",static:!1,private:!1,access:{has:e=>"zoomAfTransformK"in e,get:e=>e.zoomAfTransformK,set:(e,s)=>{e.zoomAfTransformK=s}},metadata:t},$e,We),i(null,null,je,{kind:"field",name:"activeListIndex",static:!1,private:!1,access:{has:e=>"activeListIndex"in e,get:e=>e.activeListIndex,set:(e,s)=>{e.activeListIndex=s}},metadata:t},Ze,Xe),i(null,null,Je,{kind:"field",name:"devicePixelRatio",static:!1,private:!1,access:{has:e=>"devicePixelRatio"in e,get:e=>e.devicePixelRatio,set:(e,s)=>{e.devicePixelRatio=s}},metadata:t},qe,et),i(null,null,tt,{kind:"field",name:"wsStarted",static:!1,private:!1,access:{has:e=>"wsStarted"in e,get:e=>e.wsStarted,set:(e,s)=>{e.wsStarted=s}},metadata:t},st,it),i(null,null,at,{kind:"field",name:"canvasStarted",static:!1,private:!1,access:{has:e=>"canvasStarted"in e,get:e=>e.canvasStarted,set:(e,s)=>{e.canvasStarted=s}},metadata:t},lt,ot),i(null,null,rt,{kind:"field",name:"kiosk",static:!1,private:!1,access:{has:e=>"kiosk"in e,get:e=>e.kiosk,set:(e,s)=>{e.kiosk=s}},metadata:t},nt,ct),i(null,null,dt,{kind:"field",name:"inIdle",static:!1,private:!1,access:{has:e=>"inIdle"in e,get:e=>e.inIdle,set:(e,s)=>{e.inIdle=s}},metadata:t},ht,ut),i(null,null,ft,{kind:"field",name:"modalActive",static:!1,private:!1,access:{has:e=>"modalActive"in e,get:e=>e.modalActive,set:(e,s)=>{e.modalActive=s}},metadata:t},mt,gt),i(null,null,pt,{kind:"field",name:"galleryActive",static:!1,private:!1,access:{has:e=>"galleryActive"in e,get:e=>e.galleryActive,set:(e,s)=>{e.galleryActive=s}},metadata:t},_t,vt),i(null,null,St,{kind:"field",name:"hideOverlay",static:!1,private:!1,access:{has:e=>"hideOverlay"in e,get:e=>e.hideOverlay,set:(e,s)=>{e.hideOverlay=s}},metadata:t},yt,kt),i(null,null,It,{kind:"field",name:"hideCookieConsent",static:!1,private:!1,access:{has:e=>"hideCookieConsent"in e,get:e=>e.hideCookieConsent,set:(e,s)=>{e.hideCookieConsent=s}},metadata:t},bt,xt),i(null,null,Ct,{kind:"field",name:"hideHeaderLogo",static:!1,private:!1,access:{has:e=>"hideHeaderLogo"in e,get:e=>e.hideHeaderLogo,set:(e,s)=>{e.hideHeaderLogo=s}},metadata:t},zt,Bt),i(null,null,Tt,{kind:"field",name:"hideLogoInBooth",static:!1,private:!1,access:{has:e=>"hideLogoInBooth"in e,get:e=>e.hideLogoInBooth,set:(e,s)=>{e.hideLogoInBooth=s}},metadata:t},Pt,wt),i(null,null,Mt,{kind:"field",name:"disableBookmarked",static:!1,private:!1,access:{has:e=>"disableBookmarked"in e,get:e=>e.disableBookmarked,set:(e,s)=>{e.disableBookmarked=s}},metadata:t},Rt,Ot),i(null,null,Dt,{kind:"field",name:"hideLanguage",static:!1,private:!1,access:{has:e=>"hideLanguage"in e,get:e=>e.hideLanguage,set:(e,s)=>{e.hideLanguage=s}},metadata:t},Lt,Et),i(null,null,At,{kind:"field",name:"monochrome",static:!1,private:!1,access:{has:e=>"monochrome"in e,get:e=>e.monochrome,set:(e,s)=>{e.monochrome=s}},metadata:t},Ft,Ut),i(null,null,Ht,{kind:"field",name:"heatmap",static:!1,private:!1,access:{has:e=>"heatmap"in e,get:e=>e.heatmap,set:(e,s)=>{e.heatmap=s}},metadata:t},Vt,Nt),i(null,null,Kt,{kind:"field",name:"heatmapYah",static:!1,private:!1,access:{has:e=>"heatmapYah"in e,get:e=>e.heatmapYah,set:(e,s)=>{e.heatmapYah=s}},metadata:t},Gt,Yt),i(null,null,Qt,{kind:"field",name:"debugCircles",static:!1,private:!1,access:{has:e=>"debugCircles"in e,get:e=>e.debugCircles,set:(e,s)=>{e.debugCircles=s}},metadata:t},$t,Wt),i(null,null,jt,{kind:"field",name:"mapControlsHidden",static:!1,private:!1,access:{has:e=>"mapControlsHidden"in e,get:e=>e.mapControlsHidden,set:(e,s)=>{e.mapControlsHidden=s}},metadata:t},Zt,Xt),i(null,null,Jt,{kind:"field",name:"floorsControlHidden",static:!1,private:!1,access:{has:e=>"floorsControlHidden"in e,get:e=>e.floorsControlHidden,set:(e,s)=>{e.floorsControlHidden=s}},metadata:t},qt,es),i(null,null,ts,{kind:"field",name:"hideFreeOrDemo",static:!1,private:!1,access:{has:e=>"hideFreeOrDemo"in e,get:e=>e.hideFreeOrDemo,set:(e,s)=>{e.hideFreeOrDemo=s}},metadata:t},ss,is),i(null,null,as,{kind:"field",name:"freeBannerDismissed",static:!1,private:!1,access:{has:e=>"freeBannerDismissed"in e,get:e=>e.freeBannerDismissed,set:(e,s)=>{e.freeBannerDismissed=s}},metadata:t},ls,os),i(null,null,rs,{kind:"field",name:"currentBanner",static:!1,private:!1,access:{has:e=>"currentBanner"in e,get:e=>e.currentBanner,set:(e,s)=>{e.currentBanner=s}},metadata:t},ns,cs),i(null,null,ds,{kind:"field",name:"sceneDefReady",static:!1,private:!1,access:{has:e=>"sceneDefReady"in e,get:e=>e.sceneDefReady,set:(e,s)=>{e.sceneDefReady=s}},metadata:t},hs,us),i(null,null,fs,{kind:"field",name:"categoryFilterOpen",static:!1,private:!1,access:{has:e=>"categoryFilterOpen"in e,get:e=>e.categoryFilterOpen,set:(e,s)=>{e.categoryFilterOpen=s}},metadata:t},ms,gs),i(null,null,ps,{kind:"field",name:"selectedCategoryFilters",static:!1,private:!1,access:{has:e=>"selectedCategoryFilters"in e,get:e=>e.selectedCategoryFilters,set:(e,s)=>{e.selectedCategoryFilters=s}},metadata:t},_s,vs),i(null,null,Ss,{kind:"field",name:"selectedPoiTypeFilters",static:!1,private:!1,access:{has:e=>"selectedPoiTypeFilters"in e,get:e=>e.selectedPoiTypeFilters,set:(e,s)=>{e.selectedPoiTypeFilters=s}},metadata:t},ys,ks),i(null,null,Is,{kind:"field",name:"selectedTrack",static:!1,private:!1,access:{has:e=>"selectedTrack"in e,get:e=>e.selectedTrack,set:(e,s)=>{e.selectedTrack=s}},metadata:t},bs,xs),i(null,null,Cs,{kind:"field",name:"subButtonsVisible",static:!1,private:!1,access:{has:e=>"subButtonsVisible"in e,get:e=>e.subButtonsVisible,set:(e,s)=>{e.subButtonsVisible=s}},metadata:t},zs,Bs),i(null,null,Ts,{kind:"field",name:"mapControlsDOMRect",static:!1,private:!1,access:{has:e=>"mapControlsDOMRect"in e,get:e=>e.mapControlsDOMRect,set:(e,s)=>{e.mapControlsDOMRect=s}},metadata:t},Ps,ws),i(null,null,Ms,{kind:"field",name:"searchBoxMode",static:!1,private:!1,access:{has:e=>"searchBoxMode"in e,get:e=>e.searchBoxMode,set:(e,s)=>{e.searchBoxMode=s}},metadata:t},Rs,Os),i(null,null,Ds,{kind:"field",name:"searchBoxTitle",static:!1,private:!1,access:{has:e=>"searchBoxTitle"in e,get:e=>e.searchBoxTitle,set:(e,s)=>{e.searchBoxTitle=s}},metadata:t},Ls,Es),i(null,null,As,{kind:"field",name:"searchBoxSubtitle",static:!1,private:!1,access:{has:e=>"searchBoxSubtitle"in e,get:e=>e.searchBoxSubtitle,set:(e,s)=>{e.searchBoxSubtitle=s}},metadata:t},Fs,Us),i(null,null,Hs,{kind:"field",name:"routeTitle",static:!1,private:!1,access:{has:e=>"routeTitle"in e,get:e=>e.routeTitle,set:(e,s)=>{e.routeTitle=s}},metadata:t},Vs,Ns),i(null,null,Ks,{kind:"field",name:"routeDescription",static:!1,private:!1,access:{has:e=>"routeDescription"in e,get:e=>e.routeDescription,set:(e,s)=>{e.routeDescription=s}},metadata:t},Gs,Ys),i(null,null,Qs,{kind:"field",name:"isMultiPointRoute",static:!1,private:!1,access:{has:e=>"isMultiPointRoute"in e,get:e=>e.isMultiPointRoute,set:(e,s)=>{e.isMultiPointRoute=s}},metadata:t},$s,Ws),i(null,null,js,{kind:"field",name:"tourTitle",static:!1,private:!1,access:{has:e=>"tourTitle"in e,get:e=>e.tourTitle,set:(e,s)=>{e.tourTitle=s}},metadata:t},Zs,Xs),i(null,null,Js,{kind:"field",name:"tourDescription",static:!1,private:!1,access:{has:e=>"tourDescription"in e,get:e=>e.tourDescription,set:(e,s)=>{e.tourDescription=s}},metadata:t},qs,ei),i(null,null,ti,{kind:"field",name:"isMultiPointTour",static:!1,private:!1,access:{has:e=>"isMultiPointTour"in e,get:e=>e.isMultiPointTour,set:(e,s)=>{e.isMultiPointTour=s}},metadata:t},si,ii),i(null,null,ai,{kind:"field",name:"pathwayOnlyMode",static:!1,private:!1,access:{has:e=>"pathwayOnlyMode"in e,get:e=>e.pathwayOnlyMode,set:(e,s)=>{e.pathwayOnlyMode=s}},metadata:t},li,oi),i(null,null,ri,{kind:"field",name:"isOverlayScrolled",static:!1,private:!1,access:{has:e=>"isOverlayScrolled"in e,get:e=>e.isOverlayScrolled,set:(e,s)=>{e.isOverlayScrolled=s}},metadata:t},ni,ci),i(null,null,di,{kind:"field",name:"listScrollTop",static:!1,private:!1,access:{has:e=>"listScrollTop"in e,get:e=>e.listScrollTop,set:(e,s)=>{e.listScrollTop=s}},metadata:t},hi,ui),i(null,null,fi,{kind:"field",name:"listScrollItemId",static:!1,private:!1,access:{has:e=>"listScrollItemId"in e,get:e=>e.listScrollItemId,set:(e,s)=>{e.listScrollItemId=s}},metadata:t},mi,gi),i(null,null,pi,{kind:"field",name:"listScrollIndex",static:!1,private:!1,access:{has:e=>"listScrollIndex"in e,get:e=>e.listScrollIndex,set:(e,s)=>{e.listScrollIndex=s}},metadata:t},_i,vi),i(null,null,Si,{kind:"field",name:"_customUIScale",static:!1,private:!1,access:{has:e=>"_customUIScale"in e,get:e=>e._customUIScale,set:(e,s)=>{e._customUIScale=s}},metadata:t},yi,ki),i(null,null,ya,{kind:"field",name:"forceDim",static:!1,private:!1,access:{has:e=>"forceDim"in e,get:e=>e.forceDim,set:(e,s)=>{e.forceDim=s}},metadata:t},ka,Ia),i(null,null,Ga,{kind:"field",name:"mapSettings",static:!1,private:!1,access:{has:e=>"mapSettings"in e,get:e=>e.mapSettings,set:(e,s)=>{e.mapSettings=s}},metadata:t},Ya,Qa),i(null,null,fl,{kind:"field",name:"forceShowDetails",static:!1,private:!1,access:{has:e=>"forceShowDetails"in e,get:e=>e.forceShowDetails,set:(e,s)=>{e.forceShowDetails=s}},metadata:t},ml,gl),i(null,null,vl,{kind:"field",name:"buildRoute",static:!1,private:!1,access:{has:e=>"buildRoute"in e,get:e=>e.buildRoute,set:(e,s)=>{e.buildRoute=s}},metadata:t},Sl,yl),i(null,null,Il,{kind:"field",name:"globalErrorMessages",static:!1,private:!1,access:{has:e=>"globalErrorMessages"in e,get:e=>e.globalErrorMessages,set:(e,s)=>{e.globalErrorMessages=s}},metadata:t},bl,xl),i(null,null,wl,{kind:"field",name:"setKioskModeEnabled",static:!1,private:!1,access:{has:e=>"setKioskModeEnabled"in e,get:e=>e.setKioskModeEnabled,set:(e,s)=>{e.setKioskModeEnabled=s}},metadata:t},Ml,Rl),i(null,null,Dl,{kind:"field",name:"kioskData",static:!1,private:!1,access:{has:e=>"kioskData"in e,get:e=>e.kioskData,set:(e,s)=>{e.kioskData=s}},metadata:t},Ll,El),t&&Object.defineProperty(this,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:t})}rootStore=a(this,l);interfaceMetadata=Object.freeze([{id:"menu",className:"efp-overlay-menu",priority:80,isActive:()=>this.menu,searchBoxConfig:()=>({mode:"interface",title:y("Menu")})},{id:"exhibitor",className:"efp-overlay-exhibitor",priority:70,isActive:()=>this.details instanceof x,searchBoxConfig:()=>({mode:"details",title:this.details.name})},{id:"booth",className:"efp-overlay-booth",priority:70,isActive:()=>this.details instanceof b,searchBoxConfig:()=>{const t=this.details;return{mode:"details",title:t.title||t.name}}},{id:"event",className:"efp-overlay-event",priority:70,isActive:()=>this.details instanceof F,searchBoxConfig:()=>({mode:"details",title:this.details.name})},{id:"route",className:"efp-overlay-route",priority:70,isActive:()=>this.details instanceof O,searchBoxConfig:()=>{const t=this.details;return{mode:"details",title:y("Directions")}}},{id:"search",className:"efp-overlay-search",priority:60,isActive:()=>!this.details&&!this.menu&&this.list.type==="search"&&(this.rootStore.fp.alwaysShowSidebar||this.heatmap||this.searchFocused||this.list.text.length>0||this.searchClearMode),searchBoxConfig:()=>({mode:"search",title:y("Search")})},{id:"exhibitors",className:"efp-overlay-exhibitors",priority:50,isActive:()=>this.list.type==="exhibitors"&&!this.details,searchBoxConfig:()=>({mode:"search",title:y("Exhibitors")})},{id:"filter",className:"efp-overlay-filter",priority:50,isActive:()=>this.list.type==="filter"&&!this.details,searchBoxConfig:()=>({mode:"search",title:y("Filter")})},{id:"bookmarks",className:"efp-overlay-bookmarks",priority:50,isActive:()=>this.list.type==="bookmarks"&&!this.details,searchBoxConfig:()=>({mode:"interface",title:y("Bookmarks"),badge:this.rootStore.bookmarksStore.total})},{id:"visited",className:"efp-overlay-visited",priority:50,isActive:()=>this.list.type==="visited"&&!this.details,searchBoxConfig:()=>({mode:"interface",title:y("Visited"),badge:this.rootStore.exhibitorStore.visited.length})},{id:R,className:"efp-overlay-language",priority:50,isActive:()=>this.list.type===R,searchBoxConfig:()=>({mode:"interface",title:y("Language")})},{id:"category",className:"efp-overlay-category",priority:50,isActive:()=>!w.menu&&!!w.selectedCategory,searchBoxConfig:()=>({mode:"interface",title:this.list.type==="category"&&this.list.category?.name||y("Categories")})},{id:"sessions",className:"efp-overlay-sessions",priority:50,isActive:()=>this.list.type==="sessions"&&!this.details,searchBoxConfig:()=>({mode:"search",title:y("Sessions"),subtitle:this.selectedTrack?this.selectedTrack.name:void 0})},{id:"speakers",className:"efp-overlay-speakers",priority:50,isActive:()=>this.list.type==="speakers"&&!this.details,searchBoxConfig:()=>({mode:"search",title:y("Speakers")})},{id:"speaker",className:"efp-overlay-speaker",priority:50,isActive:()=>this.details instanceof j,searchBoxConfig:()=>({mode:"details",title:this.details.name})},{id:"tours",className:"efp-overlay-tours",priority:50,isActive:()=>this.list.type==="tours"&&!this.details,searchBoxConfig:()=>({mode:"search",title:y("Guided Tours")})},{id:"multi-point-wayfinding",className:"efp-overlay-multi-point",priority:75,isActive:()=>!!(this.isMultiPointRoute&&this.selectedRoute&&this.list.type!=="route-planner"),searchBoxConfig:()=>({mode:"interface",title:this.routeTitle||y("Multi-point route")})},{id:"multi-point-tour",className:"efp-overlay-multi-point-tour",priority:75,isActive:()=>this.list.type==="multi-point-tour"&&!this.details,searchBoxConfig:()=>({mode:"interface",title:this.tourTitle||y("Multi-point route")})},{id:"route-planner",className:"efp-overlay-route-planner",priority:76,isActive:()=>this.list.type==="route-planner"&&(!this.details||this.details instanceof O),searchBoxConfig:()=>({mode:"interface",title:y("Route planner")})}].sort((t,e)=>e.priority-t.priority));list=a(this,Z,{type:"search",text:"",focused:!1});details=(a(this,X),a(this,q,null));hoveredExhibitor=(a(this,ee),a(this,se,null));hoveredBooth=(a(this,ie),a(this,le,null));zoomBy=(a(this,oe),a(this,ne,null));rollReset=(a(this,ce),a(this,he,!1));moveToBooths=(a(this,ue),a(this,me,null));moveToRect=(a(this,ge),a(this,_e,null));moveToLocation=(a(this,ve),a(this,ye,!1));menu=(a(this,ke),a(this,be,!1));searchFocused=(a(this,xe),a(this,ze,!1));searchClearMode=(a(this,Be),a(this,Pe,!1));printingPdf=(a(this,we),a(this,Re,!1));screenSize=(a(this,Oe),a(this,Le,void 0));desiredOverlaySize=(a(this,Ee),a(this,Fe,void 0));overlayShowsAll=(a(this,Ue),a(this,Ve,!1));centerMap=(a(this,Ne),a(this,Ge,!1));zoomAfTransformK=(a(this,Ye),a(this,$e,1));activeListIndex=(a(this,We),a(this,Ze,-1));devicePixelRatio=(a(this,Xe),a(this,qe,window.devicePixelRatio));previewExhibitor=(a(this,et),null);wsStarted=a(this,st,!1);canvasStarted=(a(this,it),a(this,lt,!1));kiosk=(a(this,ot),a(this,nt,!1));inIdle=(a(this,ct),a(this,ht,!1));modalActive=(a(this,ut),a(this,mt,{share:!1}));galleryActive=(a(this,gt),a(this,_t,!1));hideOverlay=(a(this,vt),a(this,yt,!1));hideCookieConsent=(a(this,kt),a(this,bt,!!ro()));hideHeaderLogo=(a(this,xt),a(this,zt,!1));hideLogoInBooth=(a(this,Bt),a(this,Pt,!1));disableBookmarked=(a(this,wt),a(this,Rt,!1));hideLanguage=(a(this,Ot),a(this,Lt,!1));monochrome=(a(this,Et),a(this,Ft,!1));heatmap=(a(this,Ut),a(this,Vt,!1));heatmapYah=(a(this,Nt),a(this,Gt,!1));rootElement=a(this,Yt);debugCircles=a(this,$t,[]);mapControlsHidden=(a(this,Wt),a(this,Zt,!1));floorsControlHidden=(a(this,Xt),a(this,qt,!1));hideFreeOrDemo=(a(this,es),a(this,ss,!1));freeBannerDismissed=(a(this,is),a(this,ls,oo(sessionStorage)));currentBanner=(a(this,os),a(this,ns,null));sceneDefReady=(a(this,cs),a(this,hs,!1));categoryFilterOpen=(a(this,us),a(this,ms,!1));selectedCategoryFilters=(a(this,gs),a(this,_s,[]));selectedPoiTypeFilters=(a(this,vs),a(this,ys,[]));selectedTrack=(a(this,ks),a(this,bs,null));subButtonsVisible=(a(this,xs),a(this,zs,!1));mapControlsDOMRect=(a(this,Bs),a(this,Ps,void 0));searchBoxMode=(a(this,ws),a(this,Rs,"search"));searchBoxTitle=(a(this,Os),a(this,Ls,""));searchBoxSubtitle=(a(this,Es),a(this,Fs,void 0));routeTitle=(a(this,Us),a(this,Vs,void 0));routeDescription=(a(this,Ns),a(this,Gs,void 0));isMultiPointRoute=(a(this,Ys),a(this,$s,!1));tourTitle=(a(this,Ws),a(this,Zs,void 0));tourDescription=(a(this,Xs),a(this,qs,void 0));isMultiPointTour=(a(this,ei),a(this,si,!1));pathwayOnlyMode=(a(this,ii),a(this,li,!1));isOverlayScrolled=(a(this,oi),a(this,ni,!1));listScrollTop=(a(this,ci),a(this,hi,0));listScrollItemId=(a(this,ui),a(this,mi,null));listScrollIndex=(a(this,gi),a(this,_i,0));scrollPositions=(a(this,vi),new Map);scrollItemIds=new Map;_customUIScale=a(this,yi,null);searchFilterHeightPx=(a(this,ki),54);searchInputHeightPx=54;overlayUISizePx=390;overlayKioskSizePx=450;overlayMediumHeightRems=10;setSelectedCategoryFilters(t){this.selectedCategoryFilters=t}resetCategoryFilter(){this.selectedCategoryFilters=[],this.categoryFilterOpen=!1}setSearchClearMode(t){this.searchClearMode=t}setRouteTitle(t){this.routeTitle=t}setRouteDescription(t){this.routeDescription=t}setIsMultiPointRoute(t){this.isMultiPointRoute=t}setTourTitle(t){this.tourTitle=t}setTourDescription(t){this.tourDescription=t}setIsMultiPointTour(t){this.isMultiPointTour=t}setPathwayOnlyMode(t){this.pathwayOnlyMode=t}setMultiPointTourList(t){this.list={type:"multi-point-tour",tourId:t}}get activePathwayLayers(){return this.list?.type==="multi-point-tour"?this.rootStore.toursStore.getTourById(this.list.tourId)?.layers?.map(e=>e.id)||[]:[]}get highlightedBooths(){const t=new Set(this.rootStore.exhibitorStore.highlightedByExternalIds),e=new Set(this.rootStore.boothStore.highlightedByExternalIds),s=new Set([this.rootStore.exhibitorStore.exhibitors.filter(o=>t.has(o.externalId)).flatMap(o=>o.booths.filter(n=>n instanceof A)).map(o=>o.id.toString()),this.rootStore.boothStore.booths.filter(o=>e.has(o.externalId)).map(o=>o.id.toString())].flat());if(this.list?.type==="search"&&this.list?.text?.trim().length){s.clear();const o=this.fuzzySearchItems.filter(n=>n.score===0).map(n=>n.item);o.length?K(o,this.rootStore.boothStore.booths,this.rootStore.eventStore.eventItems).forEach(n=>s.add(n.id.toString())):this.listBooths.forEach(n=>s.add(n.id.toString()))}if(this.list?.type==="filter"&&(s.clear(),this.list.items.flatMap(o=>o.booths.filter(n=>n instanceof A)).forEach(o=>s.add(o.id.toString()))),this.categoryFilterOpen&&this.selectedCategoryFilters.length>0?(s.clear(),this.selectedCategoryFilters.forEach(o=>{o.exhibitors.flatMap(n=>n.booths).forEach(n=>s.add(n.id.toString()))})):this.list?.type==="category"&&(s.clear(),this.list.category.exhibitors.flatMap(o=>o.booths).forEach(o=>s.add(o.id.toString()))),this.list?.type==="bookmarks"&&(s.clear(),K(this.listItems,this.rootStore.boothStore.booths,this.rootStore.eventStore.eventItems).forEach(o=>s.add(o.id.toString()))),this.list?.type==="visited"&&(s.clear(),K(this.listItems,this.rootStore.boothStore.booths,this.rootStore.eventStore.eventItems).forEach(o=>s.add(o.id.toString()))),this.list?.type==="exhibitors"){s.clear();const o=this.list.text?.toLowerCase().trim();let n=this.rootStore.exhibitorStore.exhibitors;o&&(n=n.filter(f=>f.name.toLowerCase().includes(o))),n.flatMap(f=>f.booths.filter(g=>g instanceof A)).forEach(f=>s.add(f.id.toString()))}if(this.selectedPoiTypeFilters.length>0&&(s.clear(),this.selectedPoiTypeFilters.forEach(o=>{this.rootStore.boothStore.booths.filter(n=>n.poiTypeId===o.id).forEach(n=>s.add(n.id.toString()))})),this.details instanceof O&&(s.clear(),this.details.from instanceof b&&s.add(this.details.from.id.toString()),this.details.to instanceof b&&s.add(this.details.to.id.toString()),this.details.waypoints?.forEach(o=>s.add(o.id.toString()))),this.details instanceof b&&(s.clear(),s.add(this.details.id.toString())),this.details instanceof x&&(s.clear(),this.details.booths.filter(o=>o instanceof A).forEach(o=>s.add(o.id.toString()))),this.details instanceof F){const o=this.details;if(o.boothId){s.clear();const n=this.rootStore.boothStore.booths.find(f=>f.id===o.boothId);n&&s.add(n.id.toString())}}return s.delete(void 0),s.delete(null),s}constructor(t){a(this,El),this.rootStore=t,this.initializeUIScale()}get rtl(){const t=co();return t==="ar"||t==="he"}get noOverlay(){return this.rootStore.fp.noOverlay||this.hideOverlay}get onBoothClick(){return this.rootStore.fp.onBoothClick}get onMarkerClick(){return this.rootStore.fp.onMarkerClick}get onBookmarkClick(){return this.rootStore.fp.onBookmarkClick}get onVisitedClick(){return this.rootStore.fp.onVisitedClick}get onCategoryClick(){return this.rootStore.fp.onCategoryClick}get onDirection(){return this.rootStore.fp.onDirection}get onDetails(){return this.rootStore.fp.onDetails}get onExhibitorCustomButtonClick(){return this.rootStore.fp.onExhibitorCustomButtonClick}get onGetCoordsClick(){return this.rootStore.fp.onGetCoordsClick}get selectedExhibitor(){return this.details instanceof x?this.details:null}get selectedBooth(){return this.details instanceof b?this.details:null}get selectedCategory(){return this.list.type==="category"?this.list.category:null}get selectedRoute(){return this.details instanceof O?this.details:null}get selectedSpeaker(){return this.details instanceof j?this.details:null}get uiScale(){return this._customUIScale!==null?this._customUIScale:this.kiosk?1.2:1}get isGuidedToursActive(){return this.rootStore.toursStore.isActive}get getRouteNextFloor(){const t=this.rootStore.routeStore.pathLayers,e=this.rootStore.routeStore.currentRouteLayer?.name;if(!e)return null;const s=t.findIndex(u=>u.layer?.name===e);return s===-1?null:t[s+1]?.layer?.name}get headerHeightRem(){return 0}get headerHeightPx(){return N(this.headerHeightRem)}get overlayPosition(){return!this.screenSize||this.screenSize.width>so||this.kiosk?"left":"bottom"}get overlayCollapsed(){return this.kiosk&&this.overlayPosition==="left"&&!this.searchFocused&&!this.menu&&!this.details&&!this.selectedCategory&&!this.selectedExhibitor&&this.list.type!=="bookmarks"&&this.list.type!==R&&!this.list.text?.length}get overlaySize(){return this.overlayLeft?"full":this.desiredOverlaySize}get overlayBottom(){return this.overlayPosition==="bottom"}get overlayLeft(){return this.overlayPosition==="left"}get overlayWidthPx(){return this.noOverlay?0:this.overlayLeft?this.kiosk?this.overlayKioskSizePx:this.overlayUISizePx:N(this.screenSize.width)}get wsImageHeightPx(){return 44}get wsPaddingPx(){return N(.25)}get wsOccupiedHeightPx(){return this.wsShown?this.wsImageHeightPx+this.wsPaddingPx*2:0}get wsShown(){return!this.hideHeaderLogo&&this.rootStore.exhibitorStore.advertised.length>0}get wsDesktopPosition(){return V.EXPO==="cbresupplypartner"?"bottom":"top"}get wsPosition(){return this.overlayBottom?"top":this.wsDesktopPosition}get responsiveClass(){return uo(this.screenSize.width)}get mapVisibleTop(){return(this.wsPosition==="top"?this.wsOccupiedHeightPx:0)+this.headerHeightPx}get mapVisibleBottom(){return this.overlayLeft||this.noOverlay?this.wsPosition==="bottom"?this.wsOccupiedHeightPx:0:N(this.overlayMediumHeightRems)}get mapVisibleStart(){return 0}get searchActionsHeightPx(){return this.overlayPosition==="bottom"?this.searchInputHeightPx+this.searchFilterHeightPx:this.searchInputHeightPx}get fullSizeOffset(){const t=this.wsShown?54:0,e=this.bannerType==="free"&&!this.freeBannerDismissed?40:0,s=20;if(this.details&&!(this.details instanceof O))return t+e+s;const u=54,o=this.shouldShowSearchButtons?54:0;return t+e+u+s+o}get shouldShowSearchButtons(){return this.rootStore.searchButtonsStore.hasAnySearchButtons&&!this.details&&!this.menu&&![R,"filter"].includes(this.list.type)}get shouldShowMobileToggle(){const t=this.list.type==="route-planner";return this.overlayPosition==="bottom"&&(t||!this.details&&!this.menu&&this.list.type!==R&&this.list.type!=="bookmarks"&&this.list.type!=="sessions")}get mobileToggleIsListMode(){return!this.isOverlayOpen||this.overlaySize!=="full"}get canvasVisibleRectPx(){const t=this.screenSize;return Xl.fromMinMax({x:w.rtl?0:this.mapVisibleStart,y:this.mapVisibleTop+this.searchActionsHeightPx},{x:w.rtl?t.width-this.mapVisibleStart:t.width,y:t.height-this.mapVisibleBottom})}get shouldShiftMapRect(){return this.overlayPosition==="left"&&(this.details||this.hasAppliedFilters||this.selectedRoute)}get hasAppliedFilters(){return this.selectedCategoryFilters.length>0||this.selectedPoiTypeFilters.length>0}get canvasVisibleRectPt(){return this.canvasVisibleRectPx.scale(this.devicePixelRatio,{x:0,y:0})}get canvasSizePt(){return this.screenSize.multiply(this.devicePixelRatio)}get shouldUseBackdrop(){if(w.overlayCollapsed)return!1;if(B&&localStorage.getItem("forcebackdrop")==="1")return!0;if(this.overlayBottom||this.selectedExhibitor?.leadingImageUrl&&!this.selectedExhibitor?.leadingImageLinkUrl)return!1;const t=Yl.satisfies({safari:">=13"}),e=Yl.satisfies({chrome:">=77"});var s=/(android)/i.test(navigator.userAgent);return s?!1:t||e&&w.canvasSizePt.height*w.canvasSizePt.width<3e6}forceDim=a(this,ka,!1);setForceDim(t){this.forceDim=t}get dimmed(){return this.forceDim||this.pathwayOnlyMode?!0:this.highlightedBooths.size>0||this.list?.type==="search"&&this.list?.text?.trim().length>0||this.list?.type==="exhibitors"}get defaultSearchItems(){const{exhibitorStore:t,categoryStore:e,boothStore:s,heatmapStore:u}=this.rootStore;let o=t.exhibitors;const n=e.categories.filter(p=>p.exhibitors.length),f=s.booths;this.selectedPoiTypeFilters.length>0&&(o=o.filter(p=>p.booths.some(_=>this.selectedPoiTypeFilters.some(S=>_.poiTypeId===S.id))));let g=[];const T=!this.selectedCategoryFilters.length&&z.showCategories?n.filter(p=>go.includes(V.EXPO)?!p.name.includes("/"):!0):[],L=f.filter(p=>p instanceof W);return this.selectedCategoryFilters.length>0?g=[...o]:(z.showCompaniesAndBooths&&(g=g.concat(o)),z.showOtherSpaces&&(g=g.concat(L))),this.heatmap?[...o,...f].sort((_,S)=>u.getClicksByType(S)-u.getClicksByType(_)):this.heatmapYah?u.heatmapData?.yah?.sort((p,_)=>u.getClicksByType(_)-u.getClicksByType(p))||[]:o.length===0?f:T.concat(g.sort((p,_)=>{const S=p instanceof x&&p.featured!==void 0,P=_ instanceof x&&_.featured!==void 0;if(S!==P)return S?-1:1;const E=p instanceof W&&p.title?p.title:p.name,G=_ instanceof W&&_.title?_.title:_.name;return E.localeCompare(G,void 0,{sensitivity:"base",numeric:!0})}))}get searchItems(){if(this.list.type!=="search")return[];let t=this.list.text?.trim().toLowerCase()||"";const{exhibitorStore:e,categoryStore:s,boothStore:u,eventStore:o,speakerStore:n,heatmapStore:f}=this.rootStore;let g=e.exhibitors;const T=s.categories.filter(d=>d.exhibitors.length),L=u.booths,p=o.eventItems,_=n.speakers;if(this.selectedCategoryFilters.length>0&&(g=g.filter(d=>this.selectedCategoryFilters.some(h=>d.categories.some(v=>v.id===h.id)))),this.selectedPoiTypeFilters.length>0&&(g=g.filter(d=>d.booths.some(h=>this.selectedPoiTypeFilters.some(v=>h.poiTypeId===v.id)))),!t)return this.defaultSearchItems;const S=[t.replace(/&[^&=]+=[^&]+/g,"")];if(this.heatmapYah)return f.heatmapData.yah.filter(h=>Number.isNaN(Number(t))?h:h.viewCount>=Number(t)).sort((h,v)=>f.getClicksByType(v)-f.getClicksByType(h));const P=[],E=new Set,G=new Set,Fl=new Set,$l=new Set;function Ul(d){return d?d.replace(/[!@#$%^*-\.,\(\)^#$%:?_+'"\/]/g," ").replace(/\s\s+/g," "):""}function I(d,h){return!d||!h?!1:Ul(d).toLowerCase().includes(Ul(h).toLowerCase())}function Hl(d,h){return d?I(d,h)||I(z.levelTerm+" "+d,h):!1}g.forEach(d=>{S.some(h=>I(d.name,h)||d.booths.some(v=>!h&&I(v.name,h)||Hl(v.layer?.name??null,h)))&&E.add(d)}),this.selectedCategoryFilters.length>0&&L.forEach(d=>{(this.heatmap||!(d instanceof A)||!Array.from(E).find(v=>v.booths.includes(d)))&&S.some(v=>I(d.title||"",v)||I(d.name,v)||I(d.fullName,v)||Hl(d.layer?.name??null,v))&&G.add(d)});const Wl=p,jl=_;if(Wl.forEach(d=>{S.some(h=>I(d.name||"",h)||I(d.description||"",h))&&Fl.add(d)}),jl.forEach(d=>{S.some(h=>I(d.name,h)||I(d.company,h)||I(d.jobTitle,h))&&$l.add(d)}),P.push(...Fl),P.push(...E),this.heatmap)return P.sort((d,h)=>f.getClicksByType(h)-f.getClicksByType(d));const Zl=new Map(P.map(d=>[d.id,d]));return P.map(d=>{if(!d.name)return null;const h=Ql(d instanceof b&&d.fullName.toLowerCase()||d.name.toLowerCase()),v=h.indexOf(Ql(t));if(v===-1)return null;const Vl={id:d.id,position:v,lowerCaseName:h,featured:!1};return d instanceof x&&(Vl.featured=d.featured),Vl}).filter(Boolean).sort((d,h)=>(d.featured||h.featured)&&d.featured!==h.featured?d.featured?-1:1:d.position!==h.position?d.position-h.position:d.lowerCaseName.localeCompare(h.lowerCaseName)||String(d.id).localeCompare(String(h.id))).map(({id:d})=>Zl.get(d))}get searchList(){return[...this.rootStore.eventStore.eventItems,...this.rootStore.speakerStore.speakers,...this.rootStore.categoryStore.categories.filter(t=>t.exhibitors.length),...this.rootStore.exhibitorStore.exhibitors,...this.rootStore.boothStore.booths]}get foundInDescription(){if(this.list?.type!=="search")return[];const t=this.list?.text?.trim().toLowerCase();if(!t)return[];const e=this.fuzzySearchItems.map(({item:n})=>n),s=new Set(e.map(n=>n.name)),u=this.categoryFilteredSearchList.filter(n=>!s.has(n.name)),o=[];for(const n of u){const f=n.description;if(!f)continue;const T=(Kl(f)?Gl(f):f).toLowerCase().indexOf(t);T!==-1&&o.push({item:n,pos:T})}return o.sort((n,f)=>n.pos-f.pos),o.map(n=>n.item)}get foundInDescriptionStruct(){const t={};if(this.list?.type!=="search")return t;const e=this.list?.text?.trim().toLowerCase();return this.foundInDescription.forEach(s=>{let u=s.description;if(!u)return;Kl(u)&&(u=Gl(u));const o=u.toLowerCase().indexOf(e);if(o===-1)return;const n=3,f=o>n?o-n:0,g=u.substring(f).trim();t[s.id]=o>0?`...${g}`:g}),t}get categoryFilteredSearchList(){return this.selectedCategoryFilters.length===0?this.searchList:this.searchList.filter(t=>t instanceof x&&this.selectedCategoryFilters.some(e=>t.categories.some(s=>s.id===e.id)))}get fuzzySearchItems(){if(this.list?.type!=="search")return[];const t=this.list?.text?.trim().toLowerCase();if(!t)return this.defaultSearchItems.map(o=>({item:o,score:0,matches:[]}));const e=this.rootStore.fuzzySearchEngineStore.search(this.categoryFilteredSearchList,t),s=[],u=[];for(const o of e){const n=o.item,f=n.entity.type,g=f==="booth"?n:null,T=f==="exhibitor"?n:null,L=[n.name?.toLowerCase()??"",g?.title?.toLowerCase()??"",g?.fullName?.toLowerCase()??"",...T?.booths?.map(_=>_.name?.toLowerCase()??"")??[]];let p=1/0;for(const _ of L){const S=_.indexOf(t);S!==-1&&S<p&&(p=S)}p!==1/0?s.push({result:{item:n,score:0},pos:p}):u.push(o)}return s.sort((o,n)=>o.pos-n.pos),[...s.map(o=>o.result),...u]}get listItems(){if(this.details instanceof O&&this.list.type!=="multi-point-tour")return[this.details.from,this.details.to].filter(t=>t instanceof b);switch(this.list.type){case"search":let t=!(this.heatmap||this.heatmapYah)&&this.rootStore.fuzzySearchEngineStore.engine?this.fuzzySearchItems.map(({item:o})=>o).concat(this.foundInDescription):this.searchItems;return t=t.filter(o=>o.entity.type==="booth"?!o.exhibitors.length:!0),this.hasAppliedFilters?t.filter(o=>{if(this.selectedCategoryFilters.length>0&&o instanceof x&&!this.selectedCategoryFilters.some(n=>o.categories.some(f=>f.id===n.id)))return!1;if(this.selectedPoiTypeFilters.length>0){if(o instanceof x&&!o.booths.some(n=>this.selectedPoiTypeFilters.some(f=>n.poiTypeId===f.id))||o instanceof b&&!this.selectedPoiTypeFilters.some(n=>o.poiTypeId===n.id))return!1;if(o instanceof F&&o.boothId){const n=this.rootStore.boothStore.booths.find(f=>f.id===o.boothId);if(!n||!this.selectedPoiTypeFilters.some(f=>n.poiTypeId===f.id))return!1}}return!0}):t;case"bookmarks":return[...this.rootStore.exhibitorStore.bookmarked,...this.rootStore.eventStore.bookmarked,...this.rootStore.speakerStore.bookmarked,...this.rootStore.boothStore.booths.filter(o=>o.exhibitors.length===0&&o.bookmarkedDirectly)];case"visited":return[...this.rootStore.exhibitorStore.visited,...this.rootStore.eventStore.visited];case"category":return this.list.category.exhibitors;case R:return ho();case"filter":return this.list.items;case"sessions":return this.rootStore.eventStore.eventItems;case"exhibitors":const e=this.rootStore.exhibitorStore.exhibitors,s=this.list.text?.toLowerCase().trim();return s?e.filter(o=>o.name.toLowerCase().includes(s)):e;case"multi-point-tour":const u=this.rootStore.toursStore.getTourById(this.list.tourId);return u?!u.points||u.points.length===0?[]:u.points.map(o=>{const n=parseInt(o);if(!isNaN(n)){const g=this.rootStore.boothStore.boothById.get(n);if(g)return g}return mo(o)?.entity||null}).filter(Boolean):[];case"route-planner":return this.rootStore.routePlannerStore.resolvedBooths}throw new Error("Unknown list.type")}get listBooths(){return K(this.listItems,this.rootStore.boothStore.booths,this.rootStore.eventStore.eventItems)}get selectedBooths(){let t=[];this.selectedExhibitor?t=this.selectedExhibitor.booths:this.selectedBooth&&(t=[this.selectedBooth]);const e=this.selectedRoute,s=[e?.from,e?.to,...e?.waypoints??[]].filter(u=>u instanceof b);return t.push(...s),new Set(t)}get hoveredBooths(){let t;return this.hoveredBooth?t=[this.hoveredBooth]:this.hoveredExhibitor&&(t=this.hoveredExhibitor.booths),new Set(t)}get visibility(){return{controls:!this.mapControlsHidden,levels:!this.floorsControlHidden,header:this.wsShown,overlay:!this.hideOverlay}}setVisibility(t){const e={...Object.keys(this.visibility).reduce((s,u)=>({...s,[u]:!0}),{}),...Object.keys(t).filter(s=>this.visibility.hasOwnProperty(s)).reduce((s,u)=>({...s,[u]:t[u]}),{})};Object.values(e).every(Boolean)?B&&localStorage.removeItem(Nl):B&&localStorage.setItem(Nl,JSON.stringify(e)),this.mapControlsHidden=!e.controls,this.floorsControlHidden=!e.levels,this.hideHeaderLogo=!e.header,this.hideFreeOrDemo=!e.header,this.hideOverlay=!e.overlay}toggleMapOverlay(){this.overlayPosition==="bottom"&&this.overlaySize==="full"?this.desiredOverlaySize="medium":this.overlayPosition==="bottom"&&this.overlaySize!=="full"&&(this.desiredOverlaySize="full")}changeZoom(t){this.zoomBy=t}zoomIn(){this.changeZoom(1.5)}zoomOut(){this.changeZoom(.66)}fitBounds(){if(this.rootStore.maplibreStore.showMaplibre){const{rect:t}=fo({layerViewbox:this.rootStore.layerStore.viewboxRectangle,explicitArea:lo?$:null,layerRectangle:this.rootStore.layerStore.rectangle,sceneDef:this.rootStore.rendererService.scene,svgArea:$});this.moveToRect=t}else this.moveToRect=this.rootStore.layerStore.rectangle||$;this.rollReset=!0}get previewMode(){const t=B?localStorage.getItem(io)??localStorage.getItem(ql):null;return t==="true"||t==="1"||this.rootStore.fp.previewMode}get viewerMode(){const t=B?localStorage.getItem(ao)??localStorage.getItem(eo):null;return t==="true"||t==="1"||this.rootStore.fp.viewerMode}get selectedEventItem(){return this.details instanceof F?this.details:null}get defaultMapSettings(){return{zoomtime:500,center:void 0,centerxy:void 0,z:void 0,bearing:0,roll:1}}mapSettings=(a(this,Ia),a(this,Ya,{...this.defaultMapSettings}));saveMapSettings(t){const e=JSON.stringify(this.mapSettings),s=JSON.stringify(t);e!==s&&sessionStorage.setItem(to,JSON.stringify(t))}setMapSettings(t){const e={};for(const s in t)t[s]!=null&&(s==="zoomtime"?e[s]=Math.min(Math.max(t[s]||this.mapSettings.zoomtime,500),5e3):e[s]=t[s]);this.mapSettings={...this.mapSettings,...e},this.saveMapSettings(this.mapSettings)}resetMapSettings(){this.mapSettings={...this.defaultMapSettings},this.saveMapSettings(this.mapSettings)}get baseQRCodeUrl(){return`https://${V.EXPO}.expofp.com`}get viewMapOnPhoneQRCodeUrl(){if(z?.customKioskQrCodeUrl)return z.customKioskQrCodeUrl;const t=new URL(this.baseQRCodeUrl);t.search=window.location.search;const e=t.toString();return console.log("View Map On Phone QR Code Url",e),e}get routeQRCodeUrl(){const t=new URL(this.baseQRCodeUrl),e=this.selectedRoute?.from,s=this.selectedRoute?.to,u=e instanceof b?e.slug:"",o=s instanceof b?s.slug:"";t.search=`?route%3A${encodeURIComponent(o)}%3A${encodeURIComponent(u)}%3Afalse`,Jl(t.searchParams,this.kioskData,["x","y","z"]);const n=t.toString();return console.log("Route QR Code Url",n),n}get isFeaturedExhibitorActive(){return this.details instanceof x&&!!this.details.featured}get activeInterfaceData(){for(const t of this.interfaceMetadata)if(t.isActive())return t;return null}get searchBoxConfig(){const t=this.activeInterfaceData;return!t||!t.searchBoxConfig?{mode:"search",title:"",subtitle:void 0,badge:void 0,icon:void 0}:t.searchBoxConfig()||{mode:"search",title:"",subtitle:void 0,badge:void 0,icon:void 0}}get searchBoxActions(){return this.activeInterfaceData?.actions?.()??[]}get overlayInterfaceClasses(){const t=[],e=this.activeInterfaceData;return e&&(t.push(e.className),e.additionalClasses&&t.push(...e.additionalClasses())),this.details&&t.push("overlay-has-details"),this.list.type&&t.push(`overlay-list-${this.list.type}`),this.isFeaturedExhibitorActive&&t.push("overlay-exhibitor-featured"),t}get isOverlayOpen(){return this.noOverlay||this.hideOverlay?!1:this.activeInterfaceData!==null}setOverlayScrolled(t){this.isOverlayScrolled=t}setListScrollTop(t,e){this.listScrollTop=e,this.scrollPositions.set(t,e)}setListScrollItemId(t,e){this.listScrollItemId=e,this.scrollItemIds.set(t,e)}getListScrollTop(t){return this.scrollPositions.get(t)||0}getListScrollItemId(t){return this.scrollItemIds.get(t)||null}clearListScroll(t){this.scrollPositions.delete(t),this.scrollItemIds.delete(t),this.list.type===t&&(this.listScrollTop=0,this.listScrollItemId=null)}get bannerType(){return this.hideFreeOrDemo||this.heatmap?null:V.EXPO==="expo"?"demo":z.expoFpAd||z.isTrial?"free":null}get isBannerVisible(){return this.bannerType!==null}setCurrentBanner(t){this.currentBanner=t}forceShowDetails=(a(this,Qa),a(this,ml,!1));setForceShowDetails(t){this.forceShowDetails=t}get showRouteInstantly(){return!!(this.kiosk&&!this.forceShowDetails)}buildRoute=(a(this,gl),a(this,Sl,!1));startBuildRoute(){this.rootStore.selectSearch(""),this.mapControlsHidden=!0,this.floorsControlHidden=!0,this.hideHeaderLogo=!0,this.hideFreeOrDemo=!0,this.hideOverlay=!0,this.hideCookieConsent=!0,this.buildRoute=!0}globalErrorMessages=(a(this,yl),a(this,bl,[]));setGlobalErrorMessage(t){this.globalErrorMessages.push(t)}popGlobalErrorMessage(){this.globalErrorMessages.pop()}initializeUIScale(){if(new URLSearchParams(window.location.search).get("kiosk")!=="0"&&B){const e=localStorage.getItem(Q)??localStorage.getItem(Y);if(e){const s=parseFloat(e);!isNaN(s)&&s>=.8&&s<=1.4&&(this._customUIScale=s)}}}minUIScale=(a(this,xl),.8);maxUIScale=1.4;setUIScale(t,e=!0){if(isNaN(t)||t<this.minUIScale||t>this.maxUIScale){no.warn(`Invalid ui-scale value: ${t}. Must be between ${this.minUIScale} and ${this.maxUIScale}.`);return}this._customUIScale=t,e&&B&&(localStorage.setItem(Q,t.toString()),localStorage.removeItem(Y))}resetUIScale(){this._customUIScale=null,B&&(localStorage.removeItem(Q),localStorage.removeItem(Y))}setKioskModeEnabled=a(this,Ml,!1);enableSetKioskMode(t){this.setKioskModeEnabled=t}kioskData=(a(this,Rl),a(this,Ll,void 0));setKioskData(t){this.kioskData=t}}})();export default po;function K(U,D,H=[]){const C=[];return U.forEach(k=>{k instanceof x?C.push(...k.booths):k instanceof b?C.push(k):k instanceof F?k.boothId&&C.push(D.find(l=>l.id===k.boothId)):k instanceof j&&H.filter(l=>l.speakers.some(M=>M.id===k.id)&&l.boothId).forEach(l=>C.push(D.find(M=>M.id===l.boothId)))}),new Set(C.filter(Boolean))}
|
|
1
|
+
import{__decorate as e}from"tslib";import{Box as it}from"@expofp/geometry";import{action as u,computed as n,observable as a}from"mobx";import{setKioskUrlParams as st}from"../components/Kiosk/kioskUrlParam";import{LANGUAGE_TYPE as E,LEGACY_PREVIEW_MODE_STORAGE_KEY as rt,LEGACY_UI_SCALE_STORAGE_KEY as U,LEGACY_VIEWER_MODE_STORAGE_KEY as lt,MOBILE_BREAKPOINT as at,PREVIEW_MODE_STORAGE_KEY as nt,UI_SCALE_STORAGE_KEY as N,VIEWER_MODE_STORAGE_KEY as ht,VISIBILITY_STORAGE_KEY as W}from"../constants";import C from"../data";import{svgArea as H,svgAreaExplicit as ct}from"../data/svg";import{readFreeBannerDismissed as pt}from"../tools/freeBanner";import{hasUserConsent as dt}from"../tools/gtag";import{hasHtmlTags as j}from"../tools/has-html-tags";import ut from"../tools/logger";import L from"../tools/settings";import{stripHtml as X}from"../tools/strip-html";import{remsToPixels as F}from"../utils";import Z from"../utils/browser";import{getLocale as ft,getLocales as yt,t as v}from"../utils/i18n";import{isLocalStorageAvailable as k}from"../utils/localStorage";import{getResponsiveClass as mt}from"../utils/responsiveClass";import{sanitizeStr as J}from"../utils/sanitizeText";import{resolveVenueFitRect as gt}from"../utils/scene-bounds";import{uiState as P}from".";import{BoothBase as I,RegularBooth as R,SpecialBooth as _}from"./BoothStore";import{EventItem as O}from"./EventStore";import{Exhibitor as x}from"./ExhibitorStore";import{findEntityByExternalId as St,Route as T}from"./RouteStore";import{SpeakerItem as V}from"./SpeakerStore";const vt=["dimensions25"];export default class t{setSelectedCategoryFilters(o){this.selectedCategoryFilters=o}resetCategoryFilter(){this.selectedCategoryFilters=[],this.categoryFilterOpen=!1}setSearchClearMode(o){this.searchClearMode=o}setRouteTitle(o){this.routeTitle=o}setRouteDescription(o){this.routeDescription=o}setIsMultiPointRoute(o){this.isMultiPointRoute=o}setTourTitle(o){this.tourTitle=o}setTourDescription(o){this.tourDescription=o}setIsMultiPointTour(o){this.isMultiPointTour=o}setPathwayOnlyMode(o){this.pathwayOnlyMode=o}setMultiPointTourList(o){this.list={type:"multi-point-tour",tourId:o}}get activePathwayLayers(){return this.list?.type==="multi-point-tour"?this.rootStore.toursStore.getTourById(this.list.tourId)?.layers?.map(r=>r.id)||[]:[]}get highlightedBooths(){const o=new Set(this.rootStore.exhibitorStore.highlightedByExternalIds),r=new Set(this.rootStore.boothStore.highlightedByExternalIds),s=new Set([this.rootStore.exhibitorStore.exhibitors.filter(i=>o.has(i.externalId)).flatMap(i=>i.booths.filter(l=>l instanceof R)).map(i=>i.id.toString()),this.rootStore.boothStore.booths.filter(i=>r.has(i.externalId)).map(i=>i.id.toString())].flat());if(this.list?.type==="search"&&this.list?.text?.trim().length){s.clear();const i=this.fuzzySearchItems.filter(l=>l.score===0).map(l=>l.item);i.length?D(i,this.rootStore.boothStore.booths,this.rootStore.eventStore.eventItems).forEach(l=>s.add(l.id.toString())):this.listBooths.forEach(l=>s.add(l.id.toString()))}if(this.list?.type==="filter"&&(s.clear(),this.list.items.flatMap(i=>i.booths.filter(l=>l instanceof R)).forEach(i=>s.add(i.id.toString()))),this.categoryFilterOpen&&this.selectedCategoryFilters.length>0?(s.clear(),this.selectedCategoryFilters.forEach(i=>{i.exhibitors.flatMap(l=>l.booths).forEach(l=>s.add(l.id.toString()))})):this.list?.type==="category"&&(s.clear(),this.list.category.exhibitors.flatMap(i=>i.booths).forEach(i=>s.add(i.id.toString()))),this.list?.type==="bookmarks"&&(s.clear(),D(this.listItems,this.rootStore.boothStore.booths,this.rootStore.eventStore.eventItems).forEach(i=>s.add(i.id.toString()))),this.list?.type==="visited"&&(s.clear(),D(this.listItems,this.rootStore.boothStore.booths,this.rootStore.eventStore.eventItems).forEach(i=>s.add(i.id.toString()))),this.list?.type==="exhibitors"){s.clear();const i=this.list.text?.toLowerCase().trim();let l=this.rootStore.exhibitorStore.exhibitors;i&&(l=l.filter(d=>d.name.toLowerCase().includes(i))),l.flatMap(d=>d.booths.filter(f=>f instanceof R)).forEach(d=>s.add(d.id.toString()))}if(this.selectedPoiTypeFilters.length>0&&(s.clear(),this.selectedPoiTypeFilters.forEach(i=>{this.rootStore.boothStore.booths.filter(l=>l.poiTypeId===i.id).forEach(l=>s.add(l.id.toString()))})),this.details instanceof T&&(s.clear(),this.details.from instanceof I&&s.add(this.details.from.id.toString()),this.details.to instanceof I&&s.add(this.details.to.id.toString()),this.details.waypoints?.forEach(i=>s.add(i.id.toString()))),this.details instanceof I&&(s.clear(),s.add(this.details.id.toString())),this.details instanceof x&&(s.clear(),this.details.booths.filter(i=>i instanceof R).forEach(i=>s.add(i.id.toString()))),this.details instanceof O){const i=this.details;if(i.boothId){s.clear();const l=this.rootStore.boothStore.booths.find(d=>d.id===i.boothId);l&&s.add(l.id.toString())}}return s.delete(void 0),s.delete(null),s}constructor(o){this.interfaceMetadata=Object.freeze([{id:"menu",className:"efp-overlay-menu",priority:80,isActive:()=>this.menu,searchBoxConfig:()=>({mode:"interface",title:v("Menu")})},{id:"exhibitor",className:"efp-overlay-exhibitor",priority:70,isActive:()=>this.details instanceof x,searchBoxConfig:()=>({mode:"details",title:this.details.name})},{id:"booth",className:"efp-overlay-booth",priority:70,isActive:()=>this.details instanceof I,searchBoxConfig:()=>{const r=this.details;return{mode:"details",title:r.title||r.name}}},{id:"event",className:"efp-overlay-event",priority:70,isActive:()=>this.details instanceof O,searchBoxConfig:()=>({mode:"details",title:this.details.name})},{id:"route",className:"efp-overlay-route",priority:70,isActive:()=>this.details instanceof T,searchBoxConfig:()=>{const r=this.details;return{mode:"details",title:v("Directions")}}},{id:"search",className:"efp-overlay-search",priority:60,isActive:()=>!this.details&&!this.menu&&this.list.type==="search"&&(this.rootStore.fp.alwaysShowSidebar||this.heatmap||this.searchFocused||this.list.text.length>0||this.searchClearMode),searchBoxConfig:()=>({mode:"search",title:v("Search")})},{id:"exhibitors",className:"efp-overlay-exhibitors",priority:50,isActive:()=>this.list.type==="exhibitors"&&!this.details,searchBoxConfig:()=>({mode:"search",title:v("Exhibitors")})},{id:"filter",className:"efp-overlay-filter",priority:50,isActive:()=>this.list.type==="filter"&&!this.details,searchBoxConfig:()=>({mode:"search",title:v("Filter")})},{id:"bookmarks",className:"efp-overlay-bookmarks",priority:50,isActive:()=>this.list.type==="bookmarks"&&!this.details,searchBoxConfig:()=>({mode:"interface",title:v("Bookmarks"),badge:this.rootStore.bookmarksStore.total})},{id:"visited",className:"efp-overlay-visited",priority:50,isActive:()=>this.list.type==="visited"&&!this.details,searchBoxConfig:()=>({mode:"interface",title:v("Visited"),badge:this.rootStore.exhibitorStore.visited.length})},{id:E,className:"efp-overlay-language",priority:50,isActive:()=>this.list.type===E,searchBoxConfig:()=>({mode:"interface",title:v("Language")})},{id:"category",className:"efp-overlay-category",priority:50,isActive:()=>!P.menu&&!!P.selectedCategory,searchBoxConfig:()=>({mode:"interface",title:this.list.type==="category"&&this.list.category?.name||v("Categories")})},{id:"sessions",className:"efp-overlay-sessions",priority:50,isActive:()=>this.list.type==="sessions"&&!this.details,searchBoxConfig:()=>({mode:"search",title:v("Sessions"),subtitle:this.selectedTrack?this.selectedTrack.name:void 0})},{id:"speakers",className:"efp-overlay-speakers",priority:50,isActive:()=>this.list.type==="speakers"&&!this.details,searchBoxConfig:()=>({mode:"search",title:v("Speakers")})},{id:"speaker",className:"efp-overlay-speaker",priority:50,isActive:()=>this.details instanceof V,searchBoxConfig:()=>({mode:"details",title:this.details.name})},{id:"tours",className:"efp-overlay-tours",priority:50,isActive:()=>this.list.type==="tours"&&!this.details,searchBoxConfig:()=>({mode:"search",title:v("Guided Tours")})},{id:"multi-point-wayfinding",className:"efp-overlay-multi-point",priority:75,isActive:()=>!!(this.isMultiPointRoute&&this.selectedRoute&&this.list.type!=="route-planner"),searchBoxConfig:()=>({mode:"interface",title:this.routeTitle||v("Multi-point route")})},{id:"multi-point-tour",className:"efp-overlay-multi-point-tour",priority:75,isActive:()=>this.list.type==="multi-point-tour"&&!this.details,searchBoxConfig:()=>({mode:"interface",title:this.tourTitle||v("Multi-point route")})},{id:"route-planner",className:"efp-overlay-route-planner",priority:76,isActive:()=>this.list.type==="route-planner"&&(!this.details||this.details instanceof T),searchBoxConfig:()=>({mode:"interface",title:v("Route planner")})}].sort((r,s)=>s.priority-r.priority)),this.list={type:"search",text:"",focused:!1},this.details=null,this.hoveredExhibitor=null,this.hoveredBooth=null,this.zoomBy=null,this.rollReset=!1,this.moveToBooths=null,this.moveToRect=null,this.moveToLocation=!1,this.menu=!1,this.searchFocused=!1,this.searchClearMode=!1,this.printingPdf=!1,this.overlayShowsAll=!1,this.centerMap=!1,this.zoomAfTransformK=1,this.activeListIndex=-1,this.devicePixelRatio=window.devicePixelRatio,this.previewExhibitor=null,this.wsStarted=!1,this.canvasStarted=!1,this.kiosk=!1,this.inIdle=!1,this.modalActive={share:!1},this.galleryActive=!1,this.hideOverlay=!1,this.hideCookieConsent=!!dt(),this.hideHeaderLogo=!1,this.hideLogoInBooth=!1,this.disableBookmarked=!1,this.hideLanguage=!1,this.monochrome=!1,this.heatmap=!1,this.heatmapYah=!1,this.debugCircles=[],this.mapControlsHidden=!1,this.floorsControlHidden=!1,this.hideFreeOrDemo=!1,this.freeBannerDismissed=pt(sessionStorage),this.currentBanner=null,this.sceneDefReady=!1,this.categoryFilterOpen=!1,this.selectedCategoryFilters=[],this.selectedPoiTypeFilters=[],this.selectedTrack=null,this.subButtonsVisible=!1,this.searchBoxMode="search",this.searchBoxTitle="",this.isMultiPointRoute=!1,this.isMultiPointTour=!1,this.pathwayOnlyMode=!1,this.isOverlayScrolled=!1,this.listScrollTop=0,this.listScrollItemId=null,this.listScrollIndex=0,this.scrollPositions=new Map,this.scrollItemIds=new Map,this._customUIScale=null,this.searchFilterHeightPx=54,this.searchInputHeightPx=54,this.overlayUISizePx=390,this.overlayKioskSizePx=450,this.overlayMediumHeightRems=10,this.forceDim=!1,this.mapSettings={...this.defaultMapSettings},this.forceShowDetails=!1,this.buildRoute=!1,this.globalErrorMessages=[],this.minUIScale=.8,this.maxUIScale=1.4,this.setKioskModeEnabled=!1,this.rootStore=o,this.initializeUIScale()}get rtl(){const o=ft();return o==="ar"||o==="he"}get noOverlay(){return this.rootStore.fp.noOverlay||this.hideOverlay}get onBoothClick(){return this.rootStore.fp.onBoothClick}get onMarkerClick(){return this.rootStore.fp.onMarkerClick}get onBookmarkClick(){return this.rootStore.fp.onBookmarkClick}get onVisitedClick(){return this.rootStore.fp.onVisitedClick}get onCategoryClick(){return this.rootStore.fp.onCategoryClick}get onDirection(){return this.rootStore.fp.onDirection}get onDetails(){return this.rootStore.fp.onDetails}get onExhibitorCustomButtonClick(){return this.rootStore.fp.onExhibitorCustomButtonClick}get onGetCoordsClick(){return this.rootStore.fp.onGetCoordsClick}get selectedExhibitor(){return this.details instanceof x?this.details:null}get selectedBooth(){return this.details instanceof I?this.details:null}get selectedCategory(){return this.list.type==="category"?this.list.category:null}get selectedRoute(){return this.details instanceof T?this.details:null}get selectedSpeaker(){return this.details instanceof V?this.details:null}get uiScale(){return this._customUIScale!==null?this._customUIScale:this.kiosk?1.2:1}get isGuidedToursActive(){return this.rootStore.toursStore.isActive}get getRouteNextFloor(){const o=this.rootStore.routeStore.pathLayers,r=this.rootStore.routeStore.currentRouteLayer?.name;if(!r)return null;const s=o.findIndex(c=>c.layer?.name===r);return s===-1?null:o[s+1]?.layer?.name}get headerHeightRem(){return 0}get headerHeightPx(){return F(this.headerHeightRem)}get overlayPosition(){return!this.screenSize||this.screenSize.width>at||this.kiosk?"left":"bottom"}get overlayCollapsed(){return this.kiosk&&this.overlayPosition==="left"&&!this.searchFocused&&!this.menu&&!this.details&&!this.selectedCategory&&!this.selectedExhibitor&&this.list.type!=="bookmarks"&&this.list.type!==E&&!this.list.text?.length}get overlaySize(){return this.overlayLeft?"full":this.desiredOverlaySize}get overlayBottom(){return this.overlayPosition==="bottom"}get overlayLeft(){return this.overlayPosition==="left"}get overlayWidthPx(){return this.noOverlay?0:this.overlayLeft?this.kiosk?this.overlayKioskSizePx:this.overlayUISizePx:F(this.screenSize.width)}get wsImageHeightPx(){return 44}get wsPaddingPx(){return F(.25)}get wsOccupiedHeightPx(){return this.wsShown?this.wsImageHeightPx+this.wsPaddingPx*2:0}get wsShown(){return!this.hideHeaderLogo&&this.rootStore.exhibitorStore.advertised.length>0}get wsDesktopPosition(){return L.EXPO==="cbresupplypartner"?"bottom":"top"}get wsPosition(){return this.overlayBottom?"top":this.wsDesktopPosition}get responsiveClass(){return mt(this.screenSize.width)}get mapVisibleTop(){return(this.wsPosition==="top"?this.wsOccupiedHeightPx:0)+this.headerHeightPx}get mapVisibleBottom(){return this.overlayLeft||this.noOverlay?this.wsPosition==="bottom"?this.wsOccupiedHeightPx:0:F(this.overlayMediumHeightRems)}get mapVisibleStart(){return 0}get searchActionsHeightPx(){return this.overlayPosition==="bottom"?this.searchInputHeightPx+this.searchFilterHeightPx:this.searchInputHeightPx}get fullSizeOffset(){const o=this.wsShown?54:0,r=this.bannerType==="free"&&!this.freeBannerDismissed?40:0,s=20;if(this.details&&!(this.details instanceof T))return o+r+s;const c=54,i=this.shouldShowSearchButtons?54:0;return o+r+c+s+i}get shouldShowSearchButtons(){return this.rootStore.searchButtonsStore.hasAnySearchButtons&&!this.details&&!this.menu&&![E,"filter"].includes(this.list.type)}get shouldShowMobileToggle(){const o=this.list.type==="route-planner";return this.overlayPosition==="bottom"&&(o||!this.details&&!this.menu&&this.list.type!==E&&this.list.type!=="bookmarks"&&this.list.type!=="sessions")}get mobileToggleIsListMode(){return!this.isOverlayOpen||this.overlaySize!=="full"}get canvasVisibleRectPx(){const o=this.screenSize;return it.fromMinMax({x:P.rtl?0:this.mapVisibleStart,y:this.mapVisibleTop+this.searchActionsHeightPx},{x:P.rtl?o.width-this.mapVisibleStart:o.width,y:o.height-this.mapVisibleBottom})}get shouldShiftMapRect(){return this.overlayPosition==="left"&&(this.details||this.hasAppliedFilters||this.selectedRoute)}get hasAppliedFilters(){return this.selectedCategoryFilters.length>0||this.selectedPoiTypeFilters.length>0}get canvasVisibleRectPt(){return this.canvasVisibleRectPx.scale(this.devicePixelRatio,{x:0,y:0})}get canvasSizePt(){return this.screenSize.multiply(this.devicePixelRatio)}get shouldUseBackdrop(){if(P.overlayCollapsed)return!1;if(k&&localStorage.getItem("forcebackdrop")==="1")return!0;if(this.overlayBottom||this.selectedExhibitor?.leadingImageUrl&&!this.selectedExhibitor?.leadingImageLinkUrl)return!1;const o=Z.satisfies({safari:">=13"}),r=Z.satisfies({chrome:">=77"});var s=/(android)/i.test(navigator.userAgent);return s?!1:o||r&&P.canvasSizePt.height*P.canvasSizePt.width<3e6}setForceDim(o){this.forceDim=o}get dimmed(){return this.forceDim||this.pathwayOnlyMode?!0:this.highlightedBooths.size>0||this.list?.type==="search"&&this.list?.text?.trim().length>0||this.list?.type==="exhibitors"}get defaultSearchItems(){const{exhibitorStore:o,categoryStore:r,boothStore:s,heatmapStore:c}=this.rootStore;let i=o.exhibitors;const l=r.categories.filter(y=>y.exhibitors.length),d=s.booths;this.selectedPoiTypeFilters.length>0&&(i=i.filter(y=>y.booths.some(m=>this.selectedPoiTypeFilters.some(S=>m.poiTypeId===S.id))));let f=[];const B=!this.selectedCategoryFilters.length&&C.showCategories?l.filter(y=>vt.includes(L.EXPO)?!y.name.includes("/"):!0):[],A=d.filter(y=>y instanceof _);return this.selectedCategoryFilters.length>0?f=[...i]:(C.showCompaniesAndBooths&&(f=f.concat(i)),C.showOtherSpaces&&(f=f.concat(A))),this.heatmap?[...i,...d].sort((m,S)=>c.getClicksByType(S)-c.getClicksByType(m)):this.heatmapYah?c.heatmapData?.yah?.sort((y,m)=>c.getClicksByType(m)-c.getClicksByType(y))||[]:i.length===0?d:B.concat(f.sort((y,m)=>{const S=y instanceof x&&y.featured!==void 0,w=m instanceof x&&m.featured!==void 0;if(S!==w)return S?-1:1;const M=y instanceof _&&y.title?y.title:y.name,z=m instanceof _&&m.title?m.title:m.name;return M.localeCompare(z,void 0,{sensitivity:"base",numeric:!0})}))}get searchItems(){if(this.list.type!=="search")return[];let o=this.list.text?.trim().toLowerCase()||"";const{exhibitorStore:r,categoryStore:s,boothStore:c,eventStore:i,speakerStore:l,heatmapStore:d}=this.rootStore;let f=r.exhibitors;const B=s.categories.filter(h=>h.exhibitors.length),A=c.booths,y=i.eventItems,m=l.speakers;if(this.selectedCategoryFilters.length>0&&(f=f.filter(h=>this.selectedCategoryFilters.some(p=>h.categories.some(g=>g.id===p.id)))),this.selectedPoiTypeFilters.length>0&&(f=f.filter(h=>h.booths.some(p=>this.selectedPoiTypeFilters.some(g=>p.poiTypeId===g.id)))),!o)return this.defaultSearchItems;const S=[o.replace(/&[^&=]+=[^&]+/g,"")];if(this.heatmapYah)return d.heatmapData.yah.filter(p=>Number.isNaN(Number(o))?p:p.viewCount>=Number(o)).sort((p,g)=>d.getClicksByType(g)-d.getClicksByType(p));const w=[],M=new Set,z=new Set,K=new Set,q=new Set;function Y(h){return h?h.replace(/[!@#$%^*-\.,\(\)^#$%:?_+'"\/]/g," ").replace(/\s\s+/g," "):""}function b(h,p){return!h||!p?!1:Y(h).toLowerCase().includes(Y(p).toLowerCase())}function Q(h,p){return h?b(h,p)||b(C.levelTerm+" "+h,p):!1}f.forEach(h=>{S.some(p=>b(h.name,p)||h.booths.some(g=>!p&&b(g.name,p)||Q(g.layer?.name??null,p)))&&M.add(h)}),this.selectedCategoryFilters.length>0&&A.forEach(h=>{(this.heatmap||!(h instanceof R)||!Array.from(M).find(g=>g.booths.includes(h)))&&S.some(g=>b(h.title||"",g)||b(h.name,g)||b(h.fullName,g)||Q(h.layer?.name??null,g))&&z.add(h)});const tt=y,et=m;if(tt.forEach(h=>{S.some(p=>b(h.name||"",p)||b(h.description||"",p))&&K.add(h)}),et.forEach(h=>{S.some(p=>b(h.name,p)||b(h.company,p)||b(h.jobTitle,p))&&q.add(h)}),w.push(...K),w.push(...M),this.heatmap)return w.sort((h,p)=>d.getClicksByType(p)-d.getClicksByType(h));const ot=new Map(w.map(h=>[h.id,h]));return w.map(h=>{if(!h.name)return null;const p=J(h instanceof I&&h.fullName.toLowerCase()||h.name.toLowerCase()),g=p.indexOf(J(o));if(g===-1)return null;const $={id:h.id,position:g,lowerCaseName:p,featured:!1};return h instanceof x&&($.featured=h.featured),$}).filter(Boolean).sort((h,p)=>(h.featured||p.featured)&&h.featured!==p.featured?h.featured?-1:1:h.position!==p.position?h.position-p.position:h.lowerCaseName.localeCompare(p.lowerCaseName)||String(h.id).localeCompare(String(p.id))).map(({id:h})=>ot.get(h))}get searchList(){return[...this.rootStore.eventStore.eventItems,...this.rootStore.speakerStore.speakers,...this.rootStore.categoryStore.categories.filter(o=>o.exhibitors.length),...this.rootStore.exhibitorStore.exhibitors,...this.rootStore.boothStore.booths]}get foundInDescription(){if(this.list?.type!=="search")return[];const o=this.list?.text?.trim().toLowerCase();if(!o)return[];const r=this.fuzzySearchItems.map(({item:l})=>l),s=new Set(r.map(l=>l.name)),c=this.categoryFilteredSearchList.filter(l=>!s.has(l.name)),i=[];for(const l of c){const d=l.description;if(!d)continue;const B=(j(d)?X(d):d).toLowerCase().indexOf(o);B!==-1&&i.push({item:l,pos:B})}return i.sort((l,d)=>l.pos-d.pos),i.map(l=>l.item)}get foundInDescriptionStruct(){const o={};if(this.list?.type!=="search")return o;const r=this.list?.text?.trim().toLowerCase();return this.foundInDescription.forEach(s=>{let c=s.description;if(!c)return;j(c)&&(c=X(c));const i=c.toLowerCase().indexOf(r);if(i===-1)return;const l=3,d=i>l?i-l:0,f=c.substring(d).trim();o[s.id]=i>0?`...${f}`:f}),o}get categoryFilteredSearchList(){return this.selectedCategoryFilters.length===0?this.searchList:this.searchList.filter(o=>o instanceof x&&this.selectedCategoryFilters.some(r=>o.categories.some(s=>s.id===r.id)))}get fuzzySearchItems(){if(this.list?.type!=="search")return[];const o=this.list?.text?.trim().toLowerCase();if(!o)return this.defaultSearchItems.map(i=>({item:i,score:0,matches:[]}));const r=this.rootStore.fuzzySearchEngineStore.search(this.categoryFilteredSearchList,o),s=[],c=[];for(const i of r){const l=i.item,d=l.entity.type,f=d==="booth"?l:null,B=d==="exhibitor"?l:null,A=[l.name?.toLowerCase()??"",f?.title?.toLowerCase()??"",f?.fullName?.toLowerCase()??"",...B?.booths?.map(m=>m.name?.toLowerCase()??"")??[]];let y=1/0;for(const m of A){const S=m.indexOf(o);S!==-1&&S<y&&(y=S)}y!==1/0?s.push({result:{item:l,score:0},pos:y}):c.push(i)}return s.sort((i,l)=>i.pos-l.pos),[...s.map(i=>i.result),...c]}get listItems(){if(this.details instanceof T&&this.list.type!=="multi-point-tour")return[this.details.from,this.details.to].filter(o=>o instanceof I);switch(this.list.type){case"search":let o=!(this.heatmap||this.heatmapYah)&&this.rootStore.fuzzySearchEngineStore.engine?this.fuzzySearchItems.map(({item:i})=>i).concat(this.foundInDescription):this.searchItems;return o=o.filter(i=>i.entity.type==="booth"?!i.exhibitors.length:!0),this.hasAppliedFilters?o.filter(i=>{if(this.selectedCategoryFilters.length>0&&i instanceof x&&!this.selectedCategoryFilters.some(l=>i.categories.some(d=>d.id===l.id)))return!1;if(this.selectedPoiTypeFilters.length>0){if(i instanceof x&&!i.booths.some(l=>this.selectedPoiTypeFilters.some(d=>l.poiTypeId===d.id))||i instanceof I&&!this.selectedPoiTypeFilters.some(l=>i.poiTypeId===l.id))return!1;if(i instanceof O&&i.boothId){const l=this.rootStore.boothStore.booths.find(d=>d.id===i.boothId);if(!l||!this.selectedPoiTypeFilters.some(d=>l.poiTypeId===d.id))return!1}}return!0}):o;case"bookmarks":return[...this.rootStore.exhibitorStore.bookmarked,...this.rootStore.eventStore.bookmarked,...this.rootStore.speakerStore.bookmarked,...this.rootStore.boothStore.booths.filter(i=>i.exhibitors.length===0&&i.bookmarkedDirectly)];case"visited":return[...this.rootStore.exhibitorStore.visited,...this.rootStore.eventStore.visited];case"category":return this.list.category.exhibitors;case E:return yt();case"filter":return this.list.items;case"sessions":return this.rootStore.eventStore.eventItems;case"exhibitors":const r=this.rootStore.exhibitorStore.exhibitors,s=this.list.text?.toLowerCase().trim();return s?r.filter(i=>i.name.toLowerCase().includes(s)):r;case"multi-point-tour":const c=this.rootStore.toursStore.getTourById(this.list.tourId);return c?!c.points||c.points.length===0?[]:c.points.map(i=>{const l=parseInt(i);if(!isNaN(l)){const f=this.rootStore.boothStore.boothById.get(l);if(f)return f}return St(i)?.entity||null}).filter(Boolean):[];case"route-planner":return this.rootStore.routePlannerStore.resolvedBooths}throw new Error("Unknown list.type")}get listBooths(){return D(this.listItems,this.rootStore.boothStore.booths,this.rootStore.eventStore.eventItems)}get selectedBooths(){let o=[];this.selectedExhibitor?o=this.selectedExhibitor.booths:this.selectedBooth&&(o=[this.selectedBooth]);const r=this.selectedRoute,s=[r?.from,r?.to,...r?.waypoints??[]].filter(c=>c instanceof I);return o.push(...s),new Set(o)}get hoveredBooths(){let o;return this.hoveredBooth?o=[this.hoveredBooth]:this.hoveredExhibitor&&(o=this.hoveredExhibitor.booths),new Set(o)}get visibility(){return{controls:!this.mapControlsHidden,levels:!this.floorsControlHidden,header:this.wsShown,overlay:!this.hideOverlay}}setVisibility(o){const r={...Object.keys(this.visibility).reduce((s,c)=>({...s,[c]:!0}),{}),...Object.keys(o).filter(s=>this.visibility.hasOwnProperty(s)).reduce((s,c)=>({...s,[c]:o[c]}),{})};Object.values(r).every(Boolean)?k&&localStorage.removeItem(W):k&&localStorage.setItem(W,JSON.stringify(r)),this.mapControlsHidden=!r.controls,this.floorsControlHidden=!r.levels,this.hideHeaderLogo=!r.header,this.hideFreeOrDemo=!r.header,this.hideOverlay=!r.overlay}toggleMapOverlay(){this.overlayPosition==="bottom"&&this.overlaySize==="full"?this.desiredOverlaySize="medium":this.overlayPosition==="bottom"&&this.overlaySize!=="full"&&(this.desiredOverlaySize="full")}changeZoom(o){this.zoomBy=o}zoomIn(){this.changeZoom(1.5)}zoomOut(){this.changeZoom(.66)}fitBounds(){if(this.rootStore.maplibreStore.showMaplibre){const{rect:o}=gt({layerViewbox:this.rootStore.layerStore.viewboxRectangle,explicitArea:ct?H:null,layerRectangle:this.rootStore.layerStore.rectangle,sceneDef:this.rootStore.rendererService.scene,svgArea:H});this.moveToRect=o}else this.moveToRect=this.rootStore.layerStore.rectangle||H;this.rollReset=!0}get previewMode(){const o=k?localStorage.getItem(nt)??localStorage.getItem(rt):null;return o==="true"||o==="1"||this.rootStore.fp.previewMode}get viewerMode(){const o=k?localStorage.getItem(ht)??localStorage.getItem(lt):null;return o==="true"||o==="1"||this.rootStore.fp.viewerMode}get selectedEventItem(){return this.details instanceof O?this.details:null}get defaultMapSettings(){return{zoomtime:500,center:void 0,centerxy:void 0,z:void 0,bearing:0,roll:1}}setMapSettings(o){const r={};for(const s in o)o[s]!=null&&(s==="zoomtime"?r[s]=Math.min(Math.max(o[s]||this.mapSettings.zoomtime,500),5e3):r[s]=o[s]);this.mapSettings={...this.mapSettings,...r}}resetMapSettings(){this.mapSettings={...this.defaultMapSettings}}get baseQRCodeUrl(){return`https://${L.EXPO}.expofp.com`}get viewMapOnPhoneQRCodeUrl(){if(C?.customKioskQrCodeUrl)return C.customKioskQrCodeUrl;const o=new URL(this.baseQRCodeUrl);o.search=window.location.search;const r=o.toString();return console.log("View Map On Phone QR Code Url",r),r}get routeQRCodeUrl(){const o=new URL(this.baseQRCodeUrl),r=this.selectedRoute?.from,s=this.selectedRoute?.to,c=r instanceof I?r.slug:"",i=s instanceof I?s.slug:"";o.search=`?route%3A${encodeURIComponent(i)}%3A${encodeURIComponent(c)}%3Afalse`,st(o.searchParams,this.kioskData,["x","y","z"]);const l=o.toString();return console.log("Route QR Code Url",l),l}get isFeaturedExhibitorActive(){return this.details instanceof x&&!!this.details.featured}get activeInterfaceData(){for(const o of this.interfaceMetadata)if(o.isActive())return o;return null}get searchBoxConfig(){const o=this.activeInterfaceData;return!o||!o.searchBoxConfig?{mode:"search",title:"",subtitle:void 0,badge:void 0,icon:void 0}:o.searchBoxConfig()||{mode:"search",title:"",subtitle:void 0,badge:void 0,icon:void 0}}get searchBoxActions(){return this.activeInterfaceData?.actions?.()??[]}get overlayInterfaceClasses(){const o=[],r=this.activeInterfaceData;return r&&(o.push(r.className),r.additionalClasses&&o.push(...r.additionalClasses())),this.details&&o.push("overlay-has-details"),this.list.type&&o.push(`overlay-list-${this.list.type}`),this.isFeaturedExhibitorActive&&o.push("overlay-exhibitor-featured"),o}get isOverlayOpen(){return this.noOverlay||this.hideOverlay?!1:this.activeInterfaceData!==null}setOverlayScrolled(o){this.isOverlayScrolled=o}setListScrollTop(o,r){this.listScrollTop=r,this.scrollPositions.set(o,r)}setListScrollItemId(o,r){this.listScrollItemId=r,this.scrollItemIds.set(o,r)}getListScrollTop(o){return this.scrollPositions.get(o)||0}getListScrollItemId(o){return this.scrollItemIds.get(o)||null}clearListScroll(o){this.scrollPositions.delete(o),this.scrollItemIds.delete(o),this.list.type===o&&(this.listScrollTop=0,this.listScrollItemId=null)}get bannerType(){return this.hideFreeOrDemo||this.heatmap?null:L.EXPO==="expo"?"demo":C.expoFpAd||C.isTrial?"free":null}get isBannerVisible(){return this.bannerType!==null}setCurrentBanner(o){this.currentBanner=o}setForceShowDetails(o){this.forceShowDetails=o}get showRouteInstantly(){return!!(this.kiosk&&!this.forceShowDetails)}startBuildRoute(){this.rootStore.selectSearch(""),this.mapControlsHidden=!0,this.floorsControlHidden=!0,this.hideHeaderLogo=!0,this.hideFreeOrDemo=!0,this.hideOverlay=!0,this.hideCookieConsent=!0,this.buildRoute=!0}setGlobalErrorMessage(o){this.globalErrorMessages.push(o)}popGlobalErrorMessage(){this.globalErrorMessages.pop()}initializeUIScale(){if(new URLSearchParams(window.location.search).get("kiosk")!=="0"&&k){const r=localStorage.getItem(N)??localStorage.getItem(U);if(r){const s=parseFloat(r);!isNaN(s)&&s>=.8&&s<=1.4&&(this._customUIScale=s)}}}setUIScale(o,r=!0){if(isNaN(o)||o<this.minUIScale||o>this.maxUIScale){ut.warn(`Invalid ui-scale value: ${o}. Must be between ${this.minUIScale} and ${this.maxUIScale}.`);return}this._customUIScale=o,r&&k&&(localStorage.setItem(N,o.toString()),localStorage.removeItem(U))}resetUIScale(){this._customUIScale=null,k&&(localStorage.removeItem(N),localStorage.removeItem(U))}enableSetKioskMode(o){this.setKioskModeEnabled=o}setKioskData(o){this.kioskData=o}}e([a.struct],t.prototype,"list",void 0),e([a.ref],t.prototype,"details",void 0),e([a.ref],t.prototype,"hoveredExhibitor",void 0),e([a.ref],t.prototype,"hoveredBooth",void 0),e([a],t.prototype,"zoomBy",void 0),e([a],t.prototype,"rollReset",void 0),e([a],t.prototype,"moveToBooths",void 0),e([a],t.prototype,"moveToRect",void 0),e([a],t.prototype,"moveToLocation",void 0),e([a],t.prototype,"menu",void 0),e([a],t.prototype,"searchFocused",void 0),e([a],t.prototype,"searchClearMode",void 0),e([a],t.prototype,"printingPdf",void 0),e([a.struct],t.prototype,"screenSize",void 0),e([a],t.prototype,"desiredOverlaySize",void 0),e([a],t.prototype,"overlayShowsAll",void 0),e([a],t.prototype,"centerMap",void 0),e([a],t.prototype,"zoomAfTransformK",void 0),e([a],t.prototype,"activeListIndex",void 0),e([a],t.prototype,"devicePixelRatio",void 0),e([a],t.prototype,"wsStarted",void 0),e([a],t.prototype,"canvasStarted",void 0),e([a],t.prototype,"kiosk",void 0),e([a],t.prototype,"inIdle",void 0),e([a],t.prototype,"modalActive",void 0),e([a],t.prototype,"galleryActive",void 0),e([a],t.prototype,"hideOverlay",void 0),e([a],t.prototype,"hideCookieConsent",void 0),e([a],t.prototype,"hideHeaderLogo",void 0),e([a],t.prototype,"hideLogoInBooth",void 0),e([a],t.prototype,"disableBookmarked",void 0),e([a],t.prototype,"hideLanguage",void 0),e([a],t.prototype,"monochrome",void 0),e([a],t.prototype,"heatmap",void 0),e([a],t.prototype,"heatmapYah",void 0),e([a],t.prototype,"debugCircles",void 0),e([a],t.prototype,"mapControlsHidden",void 0),e([a],t.prototype,"floorsControlHidden",void 0),e([a],t.prototype,"hideFreeOrDemo",void 0),e([a],t.prototype,"freeBannerDismissed",void 0),e([a],t.prototype,"currentBanner",void 0),e([a],t.prototype,"sceneDefReady",void 0),e([a],t.prototype,"categoryFilterOpen",void 0),e([a],t.prototype,"selectedCategoryFilters",void 0),e([a],t.prototype,"selectedPoiTypeFilters",void 0),e([a],t.prototype,"selectedTrack",void 0),e([a],t.prototype,"subButtonsVisible",void 0),e([a],t.prototype,"mapControlsDOMRect",void 0),e([a],t.prototype,"searchBoxMode",void 0),e([a],t.prototype,"searchBoxTitle",void 0),e([a],t.prototype,"searchBoxSubtitle",void 0),e([a],t.prototype,"routeTitle",void 0),e([a],t.prototype,"routeDescription",void 0),e([a],t.prototype,"isMultiPointRoute",void 0),e([a],t.prototype,"tourTitle",void 0),e([a],t.prototype,"tourDescription",void 0),e([a],t.prototype,"isMultiPointTour",void 0),e([a],t.prototype,"pathwayOnlyMode",void 0),e([a],t.prototype,"isOverlayScrolled",void 0),e([a],t.prototype,"listScrollTop",void 0),e([a],t.prototype,"listScrollItemId",void 0),e([a],t.prototype,"listScrollIndex",void 0),e([a],t.prototype,"_customUIScale",void 0),e([u],t.prototype,"setSelectedCategoryFilters",null),e([u],t.prototype,"resetCategoryFilter",null),e([u],t.prototype,"setSearchClearMode",null),e([u],t.prototype,"setRouteTitle",null),e([u],t.prototype,"setRouteDescription",null),e([u],t.prototype,"setIsMultiPointRoute",null),e([u],t.prototype,"setTourTitle",null),e([u],t.prototype,"setTourDescription",null),e([u],t.prototype,"setIsMultiPointTour",null),e([u],t.prototype,"setPathwayOnlyMode",null),e([u],t.prototype,"setMultiPointTourList",null),e([n],t.prototype,"activePathwayLayers",null),e([n],t.prototype,"highlightedBooths",null),e([n],t.prototype,"rtl",null),e([n({keepAlive:!0})],t.prototype,"noOverlay",null),e([n({keepAlive:!0})],t.prototype,"selectedExhibitor",null),e([n({keepAlive:!0})],t.prototype,"selectedBooth",null),e([n({keepAlive:!0})],t.prototype,"selectedCategory",null),e([n({keepAlive:!0})],t.prototype,"selectedRoute",null),e([n({keepAlive:!0})],t.prototype,"selectedSpeaker",null),e([n({keepAlive:!0})],t.prototype,"uiScale",null),e([n({keepAlive:!0})],t.prototype,"isGuidedToursActive",null),e([n({keepAlive:!0})],t.prototype,"getRouteNextFloor",null),e([n],t.prototype,"headerHeightRem",null),e([n],t.prototype,"headerHeightPx",null),e([n],t.prototype,"overlayPosition",null),e([n],t.prototype,"overlayCollapsed",null),e([n],t.prototype,"overlaySize",null),e([n],t.prototype,"overlayBottom",null),e([n],t.prototype,"overlayLeft",null),e([n],t.prototype,"overlayWidthPx",null),e([n({keepAlive:!0})],t.prototype,"wsImageHeightPx",null),e([n],t.prototype,"wsPaddingPx",null),e([n],t.prototype,"wsOccupiedHeightPx",null),e([n({keepAlive:!0})],t.prototype,"wsShown",null),e([n],t.prototype,"wsDesktopPosition",null),e([n],t.prototype,"wsPosition",null),e([n],t.prototype,"responsiveClass",null),e([n],t.prototype,"mapVisibleTop",null),e([n],t.prototype,"mapVisibleBottom",null),e([n],t.prototype,"mapVisibleStart",null),e([n],t.prototype,"searchActionsHeightPx",null),e([n],t.prototype,"fullSizeOffset",null),e([n],t.prototype,"shouldShowSearchButtons",null),e([n],t.prototype,"shouldShowMobileToggle",null),e([n],t.prototype,"mobileToggleIsListMode",null),e([n],t.prototype,"canvasVisibleRectPx",null),e([n],t.prototype,"shouldShiftMapRect",null),e([n],t.prototype,"hasAppliedFilters",null),e([n],t.prototype,"canvasVisibleRectPt",null),e([n],t.prototype,"canvasSizePt",null),e([n({keepAlive:!0})],t.prototype,"shouldUseBackdrop",null),e([a],t.prototype,"forceDim",void 0),e([u],t.prototype,"setForceDim",null),e([n],t.prototype,"dimmed",null),e([n],t.prototype,"defaultSearchItems",null),e([n],t.prototype,"searchItems",null),e([n],t.prototype,"searchList",null),e([n],t.prototype,"foundInDescription",null),e([n],t.prototype,"foundInDescriptionStruct",null),e([n],t.prototype,"categoryFilteredSearchList",null),e([n],t.prototype,"fuzzySearchItems",null),e([n],t.prototype,"listItems",null),e([n({keepAlive:!0})],t.prototype,"listBooths",null),e([n({keepAlive:!0})],t.prototype,"selectedBooths",null),e([n({keepAlive:!0})],t.prototype,"hoveredBooths",null),e([n],t.prototype,"visibility",null),e([u],t.prototype,"setVisibility",null),e([u],t.prototype,"toggleMapOverlay",null),e([u],t.prototype,"changeZoom",null),e([u],t.prototype,"zoomIn",null),e([u],t.prototype,"zoomOut",null),e([u],t.prototype,"fitBounds",null),e([n({keepAlive:!0})],t.prototype,"selectedEventItem",null),e([a],t.prototype,"mapSettings",void 0),e([u],t.prototype,"setMapSettings",null),e([u],t.prototype,"resetMapSettings",null),e([n],t.prototype,"baseQRCodeUrl",null),e([n],t.prototype,"viewMapOnPhoneQRCodeUrl",null),e([n],t.prototype,"routeQRCodeUrl",null),e([n],t.prototype,"isFeaturedExhibitorActive",null),e([n],t.prototype,"activeInterfaceData",null),e([n],t.prototype,"searchBoxConfig",null),e([n],t.prototype,"searchBoxActions",null),e([n],t.prototype,"overlayInterfaceClasses",null),e([n],t.prototype,"isOverlayOpen",null),e([u],t.prototype,"setOverlayScrolled",null),e([u],t.prototype,"setListScrollTop",null),e([u],t.prototype,"setListScrollItemId",null),e([u],t.prototype,"getListScrollTop",null),e([u],t.prototype,"getListScrollItemId",null),e([u],t.prototype,"clearListScroll",null),e([n],t.prototype,"bannerType",null),e([n],t.prototype,"isBannerVisible",null),e([u],t.prototype,"setCurrentBanner",null),e([a],t.prototype,"forceShowDetails",void 0),e([u],t.prototype,"setForceShowDetails",null),e([n],t.prototype,"showRouteInstantly",null),e([a],t.prototype,"buildRoute",void 0),e([u],t.prototype,"startBuildRoute",null),e([a],t.prototype,"globalErrorMessages",void 0),e([u],t.prototype,"setGlobalErrorMessage",null),e([u],t.prototype,"popGlobalErrorMessage",null),e([u],t.prototype,"initializeUIScale",null),e([u],t.prototype,"setUIScale",null),e([u],t.prototype,"resetUIScale",null),e([a],t.prototype,"setKioskModeEnabled",void 0),e([u],t.prototype,"enableSetKioskMode",null),e([a],t.prototype,"kioskData",void 0),e([u],t.prototype,"setKioskData",null);function D(G,o,r=[]){const s=[];return G.forEach(c=>{c instanceof x?s.push(...c.booths):c instanceof I?s.push(c):c instanceof O?c.boothId&&s.push(o.find(i=>i.id===c.boothId)):c instanceof V&&r.filter(i=>i.speakers.some(l=>l.id===c.id)&&i.boothId).forEach(i=>s.push(o.find(l=>l.id===i.boothId)))}),new Set(s.filter(Boolean))}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{Box as v,degToRad as A,radToDeg as z}from"@expofp/geometry";import D from"color";import*as F from"d3-selection";import{autorun as M}from"mobx";import E from"../../data";import{getLayerSvg as O,getTrianglesFromFpPaths as T}from"../../data/svg";import{getNextId as U}from"../../tools/id";import B from"../../tools/logger";import N from"../../tools/settings";import{generateUniqueSlug as W}from"../../tools/slug";import{sortByName as V}from"../../utils";import{areLayersEnabled as $}from"../../utils/areLayersEnabled";import{getStorage as P,saveStorage as G}from"../../utils/entity-storage";import{extractMetaFromString as H}from"../../utils/extractMetaFromString";import{RegularBooth as x,SpecialBooth as L}from"../BoothStore";import{Exhibitor as X}from"../ExhibitorStore";import{uiState as j}from"../index";const C=new Map,k=[];export function iniAllBooths(t){C.clear(),k.length=0;const d=parseInt(_("copy_exh"));for(const i of E.booths||[]){const{text:l,meta:c}=H(i.name),o=i.special?new L:new x;Object.assign(o,i),o.meta=c,o.slug=W(o.name),C.set(o.name.toLowerCase(),o),J(o);const m=o;m.exhibitors=[];for(const u of i.exhibitors){const b=t.exhibitorStore.exhibitorById.get(u);b&&(m.exhibitors.push(b),d&&R(b,m,d),b.booths.push(m))}!i.exhibitors.length&&d&&R(null,m,d),o.schedule=t.eventStore.eventItems.filter(u=>u.boothId===o.id),o.name=l,k.push(o)}k.sort((i,l)=>i.name.localeCompare(l.name,void 0,{sensitivity:"base",numeric:!0}));for(const i of t.exhibitorStore.exhibitors)V(i.booths);t.boothStore.booths=k,B.log("initBooths",t.boothStore.booths.length),q(t)}function q(t){const l=(P("bookmarked").booths||[]).filter(c=>{const o=t.boothStore.boothById.get(c);return o&&o.exhibitors.length===0});t.boothStore.replaceBookmarked(l),M(()=>{const c=P("bookmarked"),o=t.boothStore.booths.filter(m=>m.exhibitors.length===0&&m.bookmarkedDirectly).map(m=>m.id);G("bookmarked",{exhibitors:c.exhibitors,events:c.events,speakers:c.speakers,booths:o})})}export default function Q(t,d){const i=d.name,{boothStore:l,layerStore:c}=t,o=[],m=$(),u=F.select(O(d)).selectAll(`[data-layer='${i}'] > [data-tagname='efp-booth'], [data-layer='${i}'] > g[id^=b], [data-layer='${i}'] > rect[id^=b]`).nodes();for(const r of u){const S=r.closest("svg > [data-layer]").attributes["data-layer"]?.value;if(!S)continue;let a,I=!1;r.tagName==="rect"?a=r:(a=Array.from(r.children).find(h=>h.tagName==="rect"),I=a===r.firstElementChild);const g=(r.id||r.getAttribute("data-name")).substring(1).toLowerCase();let e=C.get(g),n=e instanceof x?e:null,w=e instanceof L?e:null;if(e||(B.error("SVG booth rect not found in the event data:",g),e=n=new x,e.id=U(),e.name=g.toUpperCase(),e.slug=W(g),e.error=!0,e.exhibitors=[],C.set(g,e)),o.push(e),e.layer=m?c.layers.find(h=>h.name===S):null,e.borderColor=a?.getAttribute("stroke")||a?.style.stroke||N.boothBorderColor||"#FFFFFF",e.borderWidth=parseFloat(a?.getAttribute("stroke-width")||a?.style.strokeWidth),isNaN(e.borderWidth)&&(e.borderWidth=l.borderWidth),!j.heatmap)e.labelColor=a?.getAttribute("data-label-color");else{const h=t.heatmapStore.getTotalClicksByBooth(e),f=D(t.heatmapStore.getColorByClicks(h));e.labelColor=f.darken(.3).isLight()?"#555":"#fff"}e.rect=a?v.fromSvg(a):null,e.noLabels=!!a?.dataset.nolabel||a?.id.startsWith("no"),n?(n.availColor=r.getAttribute("data-avail-color")||a?.getAttribute("data-avail-color")||n.availColor,n.soldColor=r.getAttribute("data-sold-color")||a?.getAttribute("data-sold-color")||n.soldColor,n.holdColor=r.getAttribute("data-hold-color")||a?.getAttribute("data-hold-color")||n.holdColor,n.size=E.dimensionless?null:n.size||r.getAttribute("data-size"),n.status==="reserved"?n.reserved=!0:n.status==="onhold"&&(n.onHold=!0)):w.color=(parseInt(a.getAttribute("data-poi-type"))>0?a.style?.fill:r.getAttribute("data-color")||a.getAttribute("data-color"))||w.color;const y=a?.getAttribute("transform");if(y){const h=y.match(/translate\(([-0-9.]+) ([-0-9.]+)\) rotate\(([-0-9.]+)\)/);if(h){const s=parseFloat(h[3]);e.rotate=A(s)}else{const s=y.match(/rotate\(([-0-9.]+).*\)/);if(s){const p=parseFloat(s[1]);e.rotate=A(p)}else{const p=y.match(/matrix\(\s*([-0-9.]+)\s*(?:,|\s)\s*([-0-9.]+)\s*(?:,|\s)\s*([-0-9.]+)\s*(?:,|\s)\s*([-0-9.]+)\s*(?:,|\s)\s*([-0-9.]+)\s*(?:,|\s)\s*([-0-9.]+)\s*\)/);p&&(e.rotate=Math.asin(parseFloat(p[2])))}}if(Math.abs(z(e.rotate))>180){e.rotate+=A(90);const s=e.rect;e.rect=new v(s.center.x-s.size.height/2,s.center.y-s.size.width/2,s.size.height,s.size.width)}}if(r.tagName==="g"){e.paths=[],e.pathsWithRect=I;var b=[];for(const h of F.select(r).selectAll("path, rect").nodes())if(h.tagName==="path"){const f=h;if(f.tagName!=="path")continue;const s=parseInt(f.getAttribute("data-index")),p=!!f.getAttribute("data-unblinking");e.paths.push({index:s,color:f.style.fill,unblinking:p}),a||b.push(...T(s,i))}if(b.length){const h=b.flatMap(f=>f.map(s=>({x:s[0],y:s[1]})));e.rect=v.fromPoints(h),e.noLabels=!0}}}for(const r of o)r.rect?r.store=l:(B.error("event data booth not found in SVG:",r.name,r),o.splice(o.indexOf(r),1));return o}function _(t){return new URLSearchParams(window.location.search).get(t)}function R(t,d,i){let l=new X;l.name="EXHIBITOR NAME",l.slug="exhibitor-name",l.booths=[],l=t||l;for(let c=0;c<i;c++){const o={...l,id:Date.now()};d.exhibitors.push(o)}}function J(t){N.EXPO==="cbresupplypartner"&&t instanceof x&&!t.availColor&&t.type&&(t.type.indexOf("Premium A - 2m height restriction Passport")!==-1?t.availColor="#939393":t.type.indexOf("No free-standing")!==-1?t.availColor="#BA3DC8":t.type.endsWith("Passport")?t.availColor="#939393":t.type.startsWith("Premium A - 2m")?t.availColor="#FF9E4E":t.type.startsWith("Premium A - 4m")?t.availColor="#EA4335":t.type.startsWith("Premium B - 2m")?t.availColor="#523BC0":t.type.startsWith("Premium C - 2.4m")&&(t.availColor="#3ECC78"))}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{Box as g,isBox as w}from"@expofp/geometry";import{select as b}from"d3";import{getFpSvgJs as u}from"../../data/fp-payloads";import{floors as x,getLayerSvg as p}from"../../data/svg";import{isPathwayLayer as L}from"../../utils/is-pathway-layer";import{Layer as c,LayerMode as n,LayersMode as m}from"../LayerStore";const h=1e3;function v(r){return r==null||w(r)?r:g.fromMinMax({x:r.x1,y:r.y1},{x:r.x2,y:r.y2})}export function getChildLayers(r,a,d){const f=[];let l=a;return b(p(r)).selectAll(`svg [data-layer="${r.name}"] > [data-layer]`).nodes().filter(o=>o.childNodes.length).forEach(o=>{const e=o.getAttribute("data-layer");let t=new c;t.name=o.getAttribute("data-layer"),t.visible=r.visible,t.description=o.getAttribute("data-layer-description")||e,t.frozen=o.getAttribute("data-layer-isfrozen")==="true",t.rect=r.rect,t.viewbox=r.viewbox,t.mode=n.Unset,t.rootParent=r.rootParent?r.rootParent:r;const i=getChildLayers(t,l,d);l=i.priority+d,t.basePriority=l,i.layers.length&&(t.childLayers=i.layers,f.push(...i.layers)),f.push(t)}),{layers:f,priority:l}}export default function z(r){const{layerStore:a}=r,d=u().__fpLayers;a.mode=u().__fpLayersMode||m.Default;const f=new URLSearchParams(window.location.search).get("layer"),l=(e,t)=>f?t.toLowerCase()===f.toLowerCase():a.mode!==m.Default?e.mode==n.TurnedOn:e.visible;let s=[],o=0;d?d.forEach(e=>{o+=h;let t=new c;t.name=e.name,t.description=e.description,t.frozen=e.frozen,t.visible=l(e,t.shortName),t.rect=v(e.rect),t.viewbox=v(e.viewbox),t.mode=e.mode||n.Unset,t.basePriority=o,t.floorIndex=e.floorIndex,s.push(t)}):b(p()).selectAll("svg > [data-layer]").nodes().filter(e=>e.childNodes.length).forEach(e=>{const t=e.getAttribute("data-layer");if(!t.startsWith("WF")){o+=h;let i=new c;i.name=t,i.visible=!0,i.description=e.getAttribute("data-layer-description")||t,i.frozen=e.getAttribute("data-layer-isfrozen")==="true",i.rect=x.filter(y=>y.name===i.name||y.name===i.description)[0]?.rect,i.mode=n.Unset,i.basePriority=o,s.push(i)}}),a.mode!==m.Default&&s.forEach(e=>{e.mode===n.AlwaysHidden?(e.frozen=!0,e.visible=!1):e.mode===n.AlwaysVisible?e.frozen=e.visible=!0:e.mode===n.TurnedOff?(e.frozen=!1,e.visible=!1):e.mode===n.TurnedOn&&(e.frozen=!1,e.visible=!0)});try{s.forEach(e=>{L(e.name)&&(e.frozen=!1,e.visible=!1,e.pathway=!0)})}catch(e){console.warn(e)}s=s.filter(e=>e.pathway||!e.frozen||e.frozen&&e.visible),a.defaultLayer=s.find(e=>e.name===u().__fpDefaultLayer),a.layers=[...a.layers,...s]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{__decorate as c}from"tslib";import{computed as h}from"mobx";import{BaseShortcutProvider as a}from"../ShortcutProvider";export class SearchShortcutProvider extends a{constructor(t){super(),this.rootStore=t,this.id="search"}createShortcuts(){const{searchButtonsStore:t}=this.rootStore,o=[],r=t.getActiveParent();if(r&&r.children){const s=r.children.filter(e=>e.visible);if(r.type==="poi_types"&&s.length===1)return o;s.forEach(e=>{if(e.type==="poi_types"||e.type==="categories"){const i=e.id?.toString()||e.name,n=t.isChildActive(i);o.push({id:i,label:e.name,enabled:!0,active:n,tooltip:n?`Remove ${e.name} from filter (show all ${r.name})`:`Filter only by ${e.name}`,variant:"default",action:"toggle",showResetButton:!1})}})}return o}get shortcuts(){return this.createShortcuts()}shouldShowShortcuts(){const{searchButtonsStore:t}=this.rootStore;return t.hasActiveParentWithChildren}handleShortcutClick(t){const{searchButtonsStore:o}=this.rootStore;o.toggleChildFilter(t)}handleShortcutReset(){const{searchButtonsStore:t}=this.rootStore;t.clearAllChildFilters()}}c([h],SearchShortcutProvider.prototype,"shortcuts",null);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{__decorate as a}from"tslib";import{computed as r}from"mobx";import{BaseShortcutProvider as l}from"../ShortcutProvider";export class SessionsShortcutProvider extends l{constructor(t){super(),this.rootStore=t,this.id="sessions"}get computedShortcuts(){const{sessionsFilterStore:t,eventStore:e}=this.rootStore,{filters:s}=t.state,o=[];return o.push({id:"bookmarks",icon:"icon-bookmark",enabled:!0,active:s.showBookmarksOnly.value,tooltip:"Show bookmarked events only",variant:"default",action:"toggle",showResetButton:!1}),e.tracks.length>0&&o.push({id:"tracks",label:"Tracks",badge:s.selectedTracks.value.length>0?s.selectedTracks.value.length:void 0,enabled:!0,active:s.selectedTracks.value.length>0,tooltip:"Show events by tracks",variant:"default",action:"custom",showResetButton:!0}),this.rootStore.speakerStore.speakers.length>0&&o.push({id:"speakers",label:"Speakers",enabled:!0,active:!1,tooltip:"Open speakers list",variant:"default",action:"custom",showResetButton:!1}),e.liveEvents.length>0&&o.push({id:"live",label:"Live",enabled:!0,active:s.showLiveOnly.value,tooltip:"Show events happening now",variant:"default",action:"toggle",showResetButton:!1}),e.todayEvents.length>0&&o.push({id:"today",label:"Today",enabled:!0,active:s.date.value==="today",tooltip:"Show today's events",variant:"default",action:"toggle",showResetButton:!1}),e.tomorrowEvents.length>0&&o.push({id:"tomorrow",label:"Tomorrow",enabled:!0,active:s.date.value==="tomorrow",tooltip:"Show tomorrow's events",variant:"default",action:"toggle",showResetButton:!1}),e.pastEvents.length>0&&o.push({id:"past",label:"Past",enabled:!0,active:s.date.value==="past",tooltip:"Show past events",variant:"default",action:"toggle",showResetButton:!1}),e.venues.length>0&&o.push({id:"venues",label:"Venues",badge:s.selectedVenues.value.length>0?s.selectedVenues.value.length:void 0,enabled:!0,active:s.selectedVenues.value.length>0,tooltip:"Show events by venues",variant:"default",action:"custom",showResetButton:!0}),o}createShortcuts(){return this.computedShortcuts}handleShortcutClick(t){switch(t){case"live":this.toggleLiveFilter();break;case"bookmarks":this.toggleBookmarksFilter();break;case"tracks":this.rootStore.sessionsFilterStore.openFilterWithSections(["tracks"]);break;case"venues":this.rootStore.sessionsFilterStore.openFilterWithSections(["venues"]);break;case"speakers":this.rootStore.selectSpeakers();break;case"today":this.toggleDateFilter("today");break;case"tomorrow":this.toggleDateFilter("tomorrow");break;case"past":this.toggleDateFilter("past");break;case"earliest":this.toggleSortOrder();break;default:console.warn(`Unknown shortcut ID: ${t}`)}}handleShortcutReset(t){const{sessionsFilterStore:e}=this.rootStore;switch(t){case"live":e.setPending("showLiveOnly",!1),e.applyFilters();break;case"tracks":e.setPending("selectedTracks",[]),e.applyFilters();break;case"venues":e.setPending("selectedVenues",[]),e.applyFilters();break;case"bookmarks":e.setPending("showBookmarksOnly",!1),e.applyFilters();break;case"today":e.setPending("date","all"),e.applyFilters();break;case"tomorrow":e.setPending("date","all"),e.applyFilters();break;case"past":e.setPending("date","all"),e.applyFilters();break;default:console.warn(`Unknown shortcut reset ID: ${t}`)}}shouldShowShortcuts(){return this.rootStore.uiState.list.type==="sessions"&&this.rootStore.uiState.details===null}toggleBookmarksFilter(){const{sessionsFilterStore:t}=this.rootStore,e=!t.state.filters.showBookmarksOnly.value;t.setPending("showBookmarksOnly",e),t.applyFilters()}toggleLiveFilter(){const{sessionsFilterStore:t}=this.rootStore,e=!t.state.filters.showLiveOnly.value;t.setPending("showLiveOnly",e),t.applyFilters()}setDateFilter(t){const{sessionsFilterStore:e}=this.rootStore;e.setPending("date",t),e.applyFilters()}toggleDateFilter(t){const{sessionsFilterStore:e}=this.rootStore;e.state.filters.date.value===t?e.setPending("date","all"):e.setPending("date",t),e.applyFilters()}toggleSortOrder(){const{sessionsFilterStore:t}=this.rootStore,e=t.state.filters.sortOrder.value==="asc"?"desc":"asc";t.setPending("sortOrder",e),t.applyFilters()}}a([r],SessionsShortcutProvider.prototype,"computedShortcuts",null);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{__decorate as r}from"tslib";import{computed as i}from"mobx";import{BaseSubButtonProvider as n}from"../SubButtonProvider";export class SessionsSubButtonProvider extends n{constructor(t){super(),this.rootStore=t,this.id="sessions"}get computedSubButtons(){const t=[];return t.push({id:"sessions_show_all",label:"All Tracks",text:"All Tracks",enabled:!0,active:this.rootStore.searchButtonsStore.activeSubButtonId==="sessions_show_all"||!this.rootStore.searchButtonsStore.activeSubButtonId&&!this.rootStore.uiState.selectedTrack,parentButtonId:"sessions",type:"show_all",onClick:()=>this.handleSessionsShowAllClick()}),this.rootStore.eventStore.tracks.forEach(s=>{const e=this.rootStore.eventStore.getEventsByTrack(s.id).length;t.push({id:`sessions_track_${s.id}`,label:s.name,text:s.name,enabled:!0,active:this.rootStore.searchButtonsStore.activeSubButtonId===`sessions_track_${s.id}`,parentButtonId:"sessions",type:"track",data:s,count:e,onClick:()=>this.handleSessionsTrackClick(s)})}),t}createSubButtons(){return this.computedSubButtons}handleSubButtonClick(t){if(t==="sessions_show_all")this.handleSessionsShowAllClick();else if(t.startsWith("sessions_track_")){const s=parseInt(t.replace("sessions_track_","")),e=this.rootStore.eventStore.tracks.find(o=>o.id===s);e&&this.handleSessionsTrackClick(e)}}shouldShowSubButtons(){return this.rootStore.eventStore.tracks.length>0}handleSessionsShowAllClick(){this.rootStore.uiState.list={type:"sessions",text:"",focused:!1},this.rootStore.uiState.selectedTrack=null,this.rootStore.searchButtonsStore.setSubButtonId("sessions_show_all")}handleSessionsTrackClick(t){this.rootStore.uiState.list={type:"sessions",text:"",focused:!1},this.rootStore.uiState.selectedTrack=t,this.rootStore.searchButtonsStore.setSubButtonId(`sessions_track_${t.id}`)}}r([i],SessionsSubButtonProvider.prototype,"computedSubButtons",null);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{__decorate as o}from"tslib";import{computed as r}from"mobx";import{BaseShortcutProvider as s}from"../ShortcutProvider";export class SpeakerShortcutProvider extends s{constructor(t){super(),this.rootStore=t,this.id="speakers"}get computedShortcuts(){const{speakerFilterStore:t}=this.rootStore,{filters:e}=t.state;return[]}createShortcuts(){return this.computedShortcuts}handleShortcutClick(t){switch(t){case"companies":this.rootStore.speakerFilterStore.openFilterWithSections(["companies"]);break;case"jobTitles":this.rootStore.speakerFilterStore.openFilterWithSections(["jobTitles"]);break;default:console.warn(`Unknown shortcut ID: ${t}`)}}handleShortcutReset(t){const{speakerFilterStore:e}=this.rootStore;switch(t){case"companies":e.setPending("selectedCompanies",[]),e.applyFilters();break;case"jobTitles":e.setPending("selectedJobTitles",[]),e.applyFilters();break;default:console.warn(`Unknown shortcut ID for reset: ${t}`)}}}o([r],SpeakerShortcutProvider.prototype,"computedShortcuts",null);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{__decorate as s}from"tslib";import{action as l}from"mobx";import{MOBILE_BREAKPOINT as a}from"../../constants";import{PREFIXES as h,SearchButtonType as r}from"./constants";import{extractPoiTypeId as n,getButtonConfig as c}from"./utils";export class SearchButtonsActions{constructor(t,e,i){this.rootStore=t,this.state=e,this.filters=i}handleSearchButtonClick(t){const i={[r.BOOKMARKS]:()=>this.handleBookmarksClick(),[r.VISITED]:()=>this.handleVisitedClick(),[r.SESSIONS]:()=>this.handleSessionsClick(),[r.TOURS]:()=>this.handleToursClick(),[r.CATEGORIES]:()=>this.handleCategoriesClick(),[r.EXHIBITORS]:()=>this.handleExhibitorsClick()}[t];if(i){i();return}t.startsWith(h.POI_TYPE)&&this.handlePoiTypeClick(t)}handleExtendedSearchButtonClick(t){const e=c(t);if(!e)return;if(e.type==="link"){this.handleLinkClick(e);return}const i=e.children?.filter(o=>o.visible)||[];if(i.length===1&&i[0].type==="poi_types"&&i[0].name===e.name){this.handleSearchButtonClick(t);return}e.children&&i.length>0?this.handleParentButton(t,e):this.handleSearchButtonClick(t)}handleMainButtonClick(t){this.handleSearchButtonClick(t)}handleSessionsClick(){const{uiState:t}=this.rootStore;t.list.type==="sessions"?this.switchToSearch():(this.resetAllFilters(),t.details=null,t.menu=!1,t.list={type:"sessions",text:"",focused:!1},this.state.setSubButton(null),t.selectedTrack=null,this.state.subButtonsEnabled&&this.showSubButtons("sessions"),this.isMobile&&(t.desiredOverlaySize="full"))}togglePoiType(t){this.handleSearchButtonClick(`${h.POI_TYPE}${t}`)}clearAllFilters(){this.switchToSearch()}showSubButtons(t){this.state.subButtonsEnabled&&(this.state.setSubButtonParent(t),this.state.setSubButton(null),this.rootStore.uiState.subButtonsVisible=!0)}hideSubButtons(){this.state.setSubButtonParent(null),this.state.setSubButton(null),this.rootStore.uiState.subButtonsVisible=!1}handleSubButtonClick(t){this.state.activeSubButtonId!==t&&this.state.setSubButton(t)}toggleListView(t,e){this.rootStore.uiState.list.type===t?this.switchToSearch():(this.resetAllFilters(),e())}handleBookmarksClick(){this.toggleListView("bookmarks",()=>{this.rootStore.clickBookmarks()})}handleVisitedClick(){this.toggleListView("visited",()=>{this.rootStore.clickVisited()})}handleToursClick(){const{uiState:t}=this.rootStore;t.list.type==="tours"?this.switchToSearch():(this.resetAllFilters(),t.details=null,t.menu=!1,t.list={type:"tours",text:"",focused:!1},this.isMobile&&(t.desiredOverlaySize="full"))}handleCategoriesClick(){const{uiState:t}=this.rootStore;t.list.type!=="search"?this.switchToSearch():this.state.activePoiFilterId&&this.filters.clearPoiTypeFilters(),this.state.searchShortcutState.activeParentId&&(this.state.setActiveParentId(null),this.state.clearChildren(),this.state.showShortcuts(!1),this.filters.clearAllChildFilters()),this.rootStore.categoryFilterStore.openFilter()}handleExhibitorsClick(){const{uiState:t}=this.rootStore;t.list.type==="exhibitors"?this.switchToSearch():(this.resetAllFilters(),t.details=null,t.menu=!1,t.list={type:"exhibitors",text:"",focused:!1},this.isMobile&&(t.desiredOverlaySize="full"))}handlePoiTypeClick(t){const{uiState:e}=this.rootStore,i=e.list.type==="search"&&e.list.text||"";e.list.type!=="search"?this.switchToSearch(!0):e.selectedCategoryFilters.length>0&&this.filters.clearCategoryFilters(),this.state.searchShortcutState.activeParentId&&(this.state.setActiveParentId(null),this.state.clearChildren(),this.state.showShortcuts(!1),this.filters.clearAllChildFilters()),this.state.activePoiFilterId===t?this.filters.clearPoiTypeFilters():this.setPoiFilterFromString(t),i&&e.list.type==="search"&&(e.list={type:"search",text:i,focused:!1}),this.rootStore.searchStore.selectSearchAndFocus(i)}handleLinkClick(t){const e=t.children?.find(i=>i.type==="link");e&&"linkUrl"in e&&window.open(e.linkUrl,"_blank")}handleParentButton(t,e){const{uiState:i}=this.rootStore;if(this.state.searchShortcutState.activeParentId===t){this.state.setActiveParentId(null),this.state.clearChildren(),this.state.showShortcuts(!1),this.filters.clearAllChildFilters(),this.rootStore.urlFilterManager.clearAllFilters(),i.centerMap=!0,i.overlaySize==="full"&&i.searchFocused&&this.rootStore.searchStore.setFocused(!1);return}i.list.type!=="search"&&this.switchToSearch(),this.state.activePoiFilterId&&this.state.setPoiFilter(null),this.state.setActiveParentId(t),this.state.showShortcuts(!0),this.state.clearChildren(),this.filters.applyAllChildrenFilters(e),this.rootStore.searchStore.selectSearchAndFocus()}preserveSearchText(t){const{uiState:e}=this.rootStore,i=e.list.type==="search"&&e.list.text||"";t(),e.list.type==="search"&&i&&(e.list={type:"search",text:i,focused:!1})}switchToSearch(t=!1){const e=()=>{this.resetAllFilters(),this.rootStore.uiState.details=null,this.rootStore.uiState.menu=!1,this.rootStore.uiState.list={type:"search",text:"",focused:!1}};t?this.preserveSearchText(e):e()}resetAllFilters(){this.state.reset(),this.rootStore.uiState.selectedPoiTypeFilters=[],this.rootStore.uiState.selectedCategoryFilters=[],this.rootStore.uiState.categoryFilterOpen=!1,this.rootStore.categoryFilterStore.state.selectedItems=[],this.rootStore.categoryFilterStore.state.pendingItems=[],this.rootStore.urlFilterManager.clearAllFilters(),this.rootStore.fp.hidePathways()}setPoiFilterFromString(t){this.state.setPoiFilter(t);const e=n(t);if(e!==null){const i=this.rootStore.poiTypeStore.poiTypes.find(o=>o.id===e);i&&(this.rootStore.uiState.selectedPoiTypeFilters=[i],this.rootStore.urlFilterManager.setPoiType(i.name))}}get isMobile(){return typeof window<"u"&&window.innerWidth<=a}}s([l],SearchButtonsActions.prototype,"handleSearchButtonClick",null),s([l],SearchButtonsActions.prototype,"handleExtendedSearchButtonClick",null),s([l],SearchButtonsActions.prototype,"handleMainButtonClick",null),s([l],SearchButtonsActions.prototype,"handleSessionsClick",null),s([l],SearchButtonsActions.prototype,"togglePoiType",null),s([l],SearchButtonsActions.prototype,"clearAllFilters",null),s([l],SearchButtonsActions.prototype,"showSubButtons",null),s([l],SearchButtonsActions.prototype,"hideSubButtons",null),s([l],SearchButtonsActions.prototype,"handleSubButtonClick",null);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import h from"../../data";import{getContrastTextColor as l}from"../../utils/getContrastTextColor";import{tIfExists as d}from"../../utils/i18n";import{BUTTON_ICONS as u,PREFIXES as a,SearchButtonType as i}from"./constants";export class SearchButtonsFactory{
|
|
1
|
+
import h from"../../data";import{getContrastTextColor as l}from"../../utils/getContrastTextColor";import{tIfExists as d}from"../../utils/i18n";import{BUTTON_ICONS as u,PREFIXES as a,SearchButtonType as i}from"./constants";export class SearchButtonsFactory{constructor(t,e,o){this.rootStore=t,this.state=e,this.actions=o,this.buttonFactories={[i.BOOKMARKS]:r=>this.createBookmarksButton(r),[i.VISITED]:r=>this.createVisitedButton(r),[i.CATEGORIES]:r=>this.createCategoriesButton(r),[i.SESSIONS]:r=>this.createSessionsButton(r),[i.TOURS]:r=>this.createGuidedToursButton(r),[i.POI_TYPE]:r=>this.createPoiTypeButton(r),[i.POI_TYPES]:r=>this.createPoiTypesButton(r),[i.LINK]:r=>this.createLinkButton(r),[i.EXHIBITORS]:r=>this.createExhibitorsButton(r)}}createButtons(t){return this.dedupeButtons(t).filter(e=>e.visible).map(e=>({button:this.createButton(e),order:e.order??Number.MAX_SAFE_INTEGER})).filter(e=>e.button!==null).sort((e,o)=>e.order-o.order).map(e=>e.button)}createButton(t){const e=this.buttonFactories[t.type];return e?e(t):null}createBaseButton(t){const e=t.color&&t.color.toUpperCase()!=="#FFFFFF",o=d(t.name);return{id:t.id||`${t.type}_${t.name}`,label:o,text:o,enabled:!0,isDimmed:!1,isClickable:!0,backgroundColor:e?t.color:void 0,textColor:e&&t.color?l(t.color):void 0}}createButtonId(t,e){return e.id||`${t}${e.name}`}createBookmarksButton(t){const{uiState:e}=this.rootStore;return e.kiosk||e.disableBookmarked||h.hideBookmarks?null:{...this.createBaseButton(t),id:i.BOOKMARKS,icon:u.BOOKMARKS,active:e.list.type==="bookmarks",count:this.countBookmarks(),onClick:()=>this.actions.handleSearchButtonClick(i.BOOKMARKS)}}createVisitedButton(t){const{uiState:e}=this.rootStore;return e.kiosk?null:{...this.createBaseButton(t),id:i.VISITED,icon:u.VISITED,active:e.list.type==="visited",count:this.countVisited(),onClick:()=>this.actions.handleSearchButtonClick(i.VISITED)}}createCategoriesButton(t){if(!t.children?.length){const n=this.getCategoriesTotalCount();return n>0?this.createSimpleCategoriesButton(t,n):null}const e=(t.children||[]).filter(n=>n.visible);if(e.length===0)return null;const o=this.createButtonId(a.CATEGORIES,t),r=e.filter(n=>n.type==="categories"),s=this.countCategories(r);return{...this.createBaseButton(t),id:o,active:this.state.searchShortcutState.activeParentId===o,count:s,showZeroCount:!0,onClick:()=>this.actions.handleExtendedSearchButtonClick(o)}}createSimpleCategoriesButton(t,e){const{uiState:o}=this.rootStore,r=o.selectedCategoryFilters.length>0?o.selectedCategoryFilters.length:e;return{...this.createBaseButton(t),id:i.CATEGORIES,active:o.selectedCategoryFilters.length>0&&!this.state.searchShortcutState.activeParentId,count:r,showZeroCount:!0,onClick:()=>this.actions.handleSearchButtonClick(i.CATEGORIES)}}createSessionsButton(t){const{uiState:e}=this.rootStore,o=this.getSessionsTotalCount();return o===0?null:{...this.createBaseButton(t),id:i.SESSIONS,icon:u.SESSIONS,active:e.list.type==="sessions",count:o,showZeroCount:!0,hasSubButtons:!0,onClick:()=>this.actions.handleSessionsClick()}}createGuidedToursButton(t){const{uiState:e}=this.rootStore,o=this.getGuidedToursTotalCount();return o===0?null:{...this.createBaseButton(t),id:"guided_tours",active:e.list.type==="tours"||e.list.type==="multi-point-tour",count:o,showZeroCount:!0,onClick:()=>this.actions.handleSearchButtonClick("guided_tours")}}createPoiTypeButton(t){const e=this.rootStore.poiTypeStore.poiTypes.find(s=>s.name===t.name);if(!e)return null;const o=`${a.POI_TYPE}${e.id}`,r=this.getPoiTypeTotalCount(e.id);return r===0?null:{...this.createBaseButton(t),id:o,active:this.state.activePoiFilterId===o,count:r,showZeroCount:!0,onClick:()=>this.actions.handleSearchButtonClick(o)}}createPoiTypesButton(t){if(!t.children?.length)return this.createPoiTypeButton(t);const e=t.children.filter(n=>n.visible);if(e.length===0)return null;if(this.shouldFlattenToSinglePoiType(e,t))return this.createPoiTypeButton(t);const o=e.filter(n=>n.type!=="link"),r=this.countPoiTypes(o),s=this.createButtonId(a.POI_TYPES,t);return{...this.createBaseButton(t),id:s,active:this.state.searchShortcutState.activeParentId===s,count:r,showZeroCount:!0,onClick:()=>this.actions.handleExtendedSearchButtonClick(s)}}shouldFlattenToSinglePoiType(t,e){return t.length===1&&t[0].type==="poi_types"&&t[0].name===e.name}createLinkButton(t){const e=this.createButtonId(a.LINK,t);return{...this.createBaseButton(t),id:e,active:!1,onClick:()=>this.actions.handleExtendedSearchButtonClick(e)}}createExhibitorsButton(t){const{uiState:e}=this.rootStore,o=this.getExhibitorsTotalCount();return o===0?null:{...this.createBaseButton(t),id:i.EXHIBITORS,icon:u.EXHIBITORS,active:e.list.type==="exhibitors",count:o,showZeroCount:!0,onClick:()=>this.actions.handleSearchButtonClick(i.EXHIBITORS)}}countCategories(t){const{categoryById:e}=this.rootStore.categoryStore,o=new Set;return t.forEach(r=>{if(r.type!=="categories")return;const s=e.get(Number(r.id));s&&s.exhibitors.forEach(n=>o.add(n.id))}),o.size}countPoiTypes(t){return t.reduce((e,o)=>{if(o.type!=="poi_types")return e;if(o.count!==void 0)return e+o.count;const r=Number(o.id),s=this.rootStore.poiTypeStore.poiTypes.find(n=>n.id===r);if(s){const n=this.rootStore.boothStore.booths.filter(c=>c.poiTypeId===s.id).length;return e+n}return e},0)}dedupeButtons(t){const e=new Set;return t.filter(o=>{const r=`${o.type}_${o.name}`;return e.has(r)?!1:(e.add(r),!0)})}countBookmarks(){return this.rootStore.exhibitorStore.bookmarked.length+this.rootStore.eventStore.bookmarked.length+this.rootStore.speakerStore.bookmarked.length+this.rootStore.boothStore.booths.filter(t=>t.exhibitors.length===0&&t.bookmarkedDirectly).length}countVisited(){return this.rootStore.exhibitorStore.visited.length+this.rootStore.eventStore.visited.length}getSessionsTotalCount(){return this.rootStore.eventStore.eventItems.length}getGuidedToursTotalCount(){return this.rootStore.toursStore.hasTours?this.rootStore.toursStore.tourItems.length:0}getCategoriesTotalCount(){return this.rootStore.categoryStore.categories.filter(t=>t.exhibitors.length>0).length}getPoiTypeTotalCount(t){return this.rootStore.boothStore.booths.filter(e=>e.poiTypeId===t).length}getExhibitorsTotalCount(){return this.rootStore.exhibitorStore.exhibitors.length}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{__decorate as c}from"tslib";import{action as a}from"mobx";import{getButtonConfig as h}from"./utils";export class SearchButtonsFilters{constructor(t,e){this.rootStore=t,this.state=e}applyAllChildrenFilters(t){if(!t.children)return;const{uiState:e}=this.rootStore,i=t.children.filter(o=>o.visible),{categories:r,poiTypes:l}=this.collectFilters(i);e.selectedCategoryFilters=r,e.selectedPoiTypeFilters=l,e.categoryFilterOpen=r.length>0}applyChildFilters(){const{uiState:t}=this.rootStore,e=Array.from(this.state.searchShortcutState.activeChildren);if(t.selectedCategoryFilters=[],t.selectedPoiTypeFilters=[],t.categoryFilterOpen=!1,e.length===0)return;const i=h(this.state.searchShortcutState.activeParentId);if(!i?.children)return;const r=i.children.filter(n=>n.visible),{categories:l,poiTypes:o}=this.collectSelectedFilters(r,e);t.selectedCategoryFilters=l,t.selectedPoiTypeFilters=o,t.categoryFilterOpen=l.length>0}clearAllChildFilters(){this.state.clearChildren(),this.rootStore.uiState.selectedCategoryFilters=[],this.rootStore.uiState.selectedPoiTypeFilters=[],this.rootStore.uiState.categoryFilterOpen=!1}clearCategoryFilters(){const{uiState:t}=this.rootStore;t.selectedCategoryFilters=[],this.rootStore.categoryFilterStore.state.selectedItems=[],this.rootStore.categoryFilterStore.state.pendingItems=[],this.rootStore.urlFilterManager.setCategories([])}clearPoiTypeFilters(){this.state.setPoiFilter(null),this.rootStore.uiState.selectedPoiTypeFilters=[],this.rootStore.urlFilterManager.setPoiType(null)}toggleChildFilter(t){const e=h(this.state.searchShortcutState.activeParentId);e?.children&&(this.state.toggleChild(t),this.state.hasActiveChildren?this.applyChildFilters():this.applyAllChildrenFilters(e))}getActiveParent(){return this.state.searchShortcutState.activeParentId?h(this.state.searchShortcutState.activeParentId):null}areAllSelected(){if(!this.state.searchShortcutState.activeParentId)return!1;const t=h(this.state.searchShortcutState.activeParentId);if(!t?.children)return!1;const i=t.children.filter(r=>r.visible).filter(r=>r.type!=="link");return i.length>0&&i.every(r=>{const l=r.id?.toString()||r.name;return this.state.isChildActive(l)})}getChildrenCount(){if(!this.state.searchShortcutState.activeParentId)return 0;const t=h(this.state.searchShortcutState.activeParentId);return t?.children?t.children.filter(i=>i.visible).filter(i=>i.type!=="link").length:0}collectFilters(t){const e=[],i=[];return t.forEach(r=>{const l=Number(r.id);if(r.type==="categories"){const o=this.rootStore.categoryStore.categories.find(n=>n.id===l);o&&e.push(o)}else if(r.type==="poi_types"){const o=this.rootStore.poiTypeStore.poiTypes.find(n=>n.id===l);o&&i.push(o)}}),{categories:e,poiTypes:i}}collectSelectedFilters(t,e){const i=[],r=[];return e.forEach(l=>{const o=t.find(s=>s.type==="link"?!1:(s.id?.toString()||s.name)===l);if(!o)return;const n=Number(o.id);if(o.type==="categories"){const s=this.rootStore.categoryStore.categories.find(p=>p.id===n);s&&i.push(s)}else if(o.type==="poi_types"){const s=this.rootStore.poiTypeStore.poiTypes.find(p=>p.id===n);s&&r.push(s)}}),{categories:i,poiTypes:r}}}c([a],SearchButtonsFilters.prototype,"applyAllChildrenFilters",null),c([a],SearchButtonsFilters.prototype,"applyChildFilters",null),c([a],SearchButtonsFilters.prototype,"clearAllChildFilters",null),c([a],SearchButtonsFilters.prototype,"clearCategoryFilters",null),c([a],SearchButtonsFilters.prototype,"clearPoiTypeFilters",null),c([a],SearchButtonsFilters.prototype,"toggleChildFilter",null);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{__decorate as e}from"tslib";import{action as i,computed as s,observable as r}from"mobx";export class SearchButtonsState{constructor(){this.isVisible=!0,this.activePoiFilterId=null,this.activeSubButtonsParentId=null,this.activeSubButtonId=null,this.subButtonsEnabled=!1,this.searchShortcutState={activeParentId:null,activeChildren:new Set,isShortcutsVisible:!1}}setVisible(t){this.isVisible=t}setSubButtonParent(t){this.activeSubButtonsParentId=t}setPoiFilter(t){this.activePoiFilterId=t}setSubButton(t){this.activeSubButtonId=t}setSubButtonsEnabled(t){this.subButtonsEnabled=t}setActiveParentId(t){this.searchShortcutState.activeParentId=t}showShortcuts(t){this.searchShortcutState.isShortcutsVisible=t}clearChildren(){this.searchShortcutState.activeChildren.clear()}toggleChild(t){this.searchShortcutState.activeChildren.has(t)?this.searchShortcutState.activeChildren.delete(t):this.searchShortcutState.activeChildren.add(t)}reset(){this.activePoiFilterId=null,this.searchShortcutState.activeParentId=null,this.searchShortcutState.activeChildren.clear(),this.searchShortcutState.isShortcutsVisible=!1}get hasActiveChildren(){return this.searchShortcutState.activeChildren.size>0}get activeChildrenCount(){return this.searchShortcutState.activeChildren.size}get hasActiveParentWithChildren(){return this.searchShortcutState.isShortcutsVisible&&this.searchShortcutState.activeParentId!==null}isChildActive(t){return this.searchShortcutState.activeChildren.has(t)}}e([r],SearchButtonsState.prototype,"isVisible",void 0),e([r],SearchButtonsState.prototype,"activePoiFilterId",void 0),e([r],SearchButtonsState.prototype,"activeSubButtonsParentId",void 0),e([r],SearchButtonsState.prototype,"activeSubButtonId",void 0),e([r],SearchButtonsState.prototype,"subButtonsEnabled",void 0),e([r],SearchButtonsState.prototype,"searchShortcutState",void 0),e([i],SearchButtonsState.prototype,"setVisible",null),e([i],SearchButtonsState.prototype,"setSubButtonParent",null),e([i],SearchButtonsState.prototype,"setPoiFilter",null),e([i],SearchButtonsState.prototype,"setSubButton",null),e([i],SearchButtonsState.prototype,"setSubButtonsEnabled",null),e([i],SearchButtonsState.prototype,"setActiveParentId",null),e([i],SearchButtonsState.prototype,"showShortcuts",null),e([i],SearchButtonsState.prototype,"clearChildren",null),e([i],SearchButtonsState.prototype,"toggleChild",null),e([i],SearchButtonsState.prototype,"reset",null),e([s],SearchButtonsState.prototype,"hasActiveChildren",null),e([s],SearchButtonsState.prototype,"activeChildrenCount",null),e([s],SearchButtonsState.prototype,"hasActiveParentWithChildren",null);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{__esDecorate as s,__runInitializers as Y}from"tslib";import{action as l,computed as i,reaction as H}from"mobx";import{CACHE_DURATION as K,LANGUAGE_TYPE as X,MOBILE_BREAKPOINT as q}from"../../constants";import J from"../../data";import{SessionsSubButtonProvider as Q}from"../providers/SessionsSubButtonProvider";import{SubButtonRegistry as Z}from"../SubButtonRegistry";import{PREFIXES as $}from"./constants";import{SearchButtonsActions as tt}from"./SearchButtonsActions";import{SearchButtonsFactory as et}from"./SearchButtonsFactory";import{SearchButtonsFilters as at}from"./SearchButtonsFilters";import{SearchButtonsState as st}from"./SearchButtonsState";import{countMapValues as it,extractPoiTypeId as lt,isValidConfig as nt}from"./utils";let ot=(()=>{let a=[],o,r,c,u,h,d,g,S,B,f,p,m,v,C,_,b,P,y,k,I,T,A,F,w,E,R,x,M,V,L,O,W,D,U,z,N,j,G;return class{static{const e=typeof Symbol=="function"&&Symbol.metadata?Object.create(null):void 0;o=[l],r=[i],c=[i],u=[i],h=[i],d=[i],g=[i],S=[i],B=[i],f=[i],p=[i],m=[i],v=[i],C=[i],_=[i],b=[i],P=[i],y=[i],k=[i],I=[i],T=[i],A=[l],F=[l],w=[l],E=[l],R=[l],x=[l],M=[l],V=[l],L=[l],O=[l],W=[l],D=[l],U=[l],z=[l],N=[l],j=[l],G=[l],s(this,null,o,{kind:"method",name:"invalidatePoiTypeCounts",static:!1,private:!1,access:{has:t=>"invalidatePoiTypeCounts"in t,get:t=>t.invalidatePoiTypeCounts},metadata:e},null,a),s(this,null,r,{kind:"getter",name:"isVisible",static:!1,private:!1,access:{has:t=>"isVisible"in t,get:t=>t.isVisible},metadata:e},null,a),s(this,null,c,{kind:"getter",name:"shouldShow",static:!1,private:!1,access:{has:t=>"shouldShow"in t,get:t=>t.shouldShow},metadata:e},null,a),s(this,null,u,{kind:"getter",name:"activePoiFilterId",static:!1,private:!1,access:{has:t=>"activePoiFilterId"in t,get:t=>t.activePoiFilterId},metadata:e},null,a),s(this,null,h,{kind:"getter",name:"activeSubButtonsParentId",static:!1,private:!1,access:{has:t=>"activeSubButtonsParentId"in t,get:t=>t.activeSubButtonsParentId},metadata:e},null,a),s(this,null,d,{kind:"getter",name:"activeSubButtonId",static:!1,private:!1,access:{has:t=>"activeSubButtonId"in t,get:t=>t.activeSubButtonId},metadata:e},null,a),s(this,null,g,{kind:"getter",name:"subButtonsEnabled",static:!1,private:!1,access:{has:t=>"subButtonsEnabled"in t,get:t=>t.subButtonsEnabled},metadata:e},null,a),s(this,null,S,{kind:"getter",name:"searchShortcutState",static:!1,private:!1,access:{has:t=>"searchShortcutState"in t,get:t=>t.searchShortcutState},metadata:e},null,a),s(this,null,B,{kind:"getter",name:"searchButtons",static:!1,private:!1,access:{has:t=>"searchButtons"in t,get:t=>t.searchButtons},metadata:e},null,a),s(this,null,f,{kind:"getter",name:"hasAnySearchButtons",static:!1,private:!1,access:{has:t=>"hasAnySearchButtons"in t,get:t=>t.hasAnySearchButtons},metadata:e},null,a),s(this,null,p,{kind:"getter",name:"hasActiveSearchButton",static:!1,private:!1,access:{has:t=>"hasActiveSearchButton"in t,get:t=>t.hasActiveSearchButton},metadata:e},null,a),s(this,null,m,{kind:"getter",name:"activeSearchButtonLabel",static:!1,private:!1,access:{has:t=>"activeSearchButtonLabel"in t,get:t=>t.activeSearchButtonLabel},metadata:e},null,a),s(this,null,v,{kind:"getter",name:"activeSubButtons",static:!1,private:!1,access:{has:t=>"activeSubButtons"in t,get:t=>t.activeSubButtons},metadata:e},null,a),s(this,null,C,{kind:"getter",name:"shouldShowSubButtons",static:!1,private:!1,access:{has:t=>"shouldShowSubButtons"in t,get:t=>t.shouldShowSubButtons},metadata:e},null,a),s(this,null,_,{kind:"getter",name:"hasActiveParentWithChildren",static:!1,private:!1,access:{has:t=>"hasActiveParentWithChildren"in t,get:t=>t.hasActiveParentWithChildren},metadata:e},null,a),s(this,null,b,{kind:"getter",name:"areAllSelected",static:!1,private:!1,access:{has:t=>"areAllSelected"in t,get:t=>t.areAllSelected},metadata:e},null,a),s(this,null,P,{kind:"getter",name:"activeChildrenCount",static:!1,private:!1,access:{has:t=>"activeChildrenCount"in t,get:t=>t.activeChildrenCount},metadata:e},null,a),s(this,null,y,{kind:"getter",name:"totalChildrenCount",static:!1,private:!1,access:{has:t=>"totalChildrenCount"in t,get:t=>t.totalChildrenCount},metadata:e},null,a),s(this,null,k,{kind:"getter",name:"poiTypeCounts",static:!1,private:!1,access:{has:t=>"poiTypeCounts"in t,get:t=>t.poiTypeCounts},metadata:e},null,a),s(this,null,I,{kind:"getter",name:"totalPoiTypeCount",static:!1,private:!1,access:{has:t=>"totalPoiTypeCount"in t,get:t=>t.totalPoiTypeCount},metadata:e},null,a),s(this,null,T,{kind:"getter",name:"activePoiTypeId",static:!1,private:!1,access:{has:t=>"activePoiTypeId"in t,get:t=>t.activePoiTypeId},metadata:e},null,a),s(this,null,A,{kind:"method",name:"handleSearchButtonClick",static:!1,private:!1,access:{has:t=>"handleSearchButtonClick"in t,get:t=>t.handleSearchButtonClick},metadata:e},null,a),s(this,null,F,{kind:"method",name:"handleExtendedSearchButtonClick",static:!1,private:!1,access:{has:t=>"handleExtendedSearchButtonClick"in t,get:t=>t.handleExtendedSearchButtonClick},metadata:e},null,a),s(this,null,w,{kind:"method",name:"handleMainButtonClick",static:!1,private:!1,access:{has:t=>"handleMainButtonClick"in t,get:t=>t.handleMainButtonClick},metadata:e},null,a),s(this,null,E,{kind:"method",name:"handleSessionsClick",static:!1,private:!1,access:{has:t=>"handleSessionsClick"in t,get:t=>t.handleSessionsClick},metadata:e},null,a),s(this,null,R,{kind:"method",name:"togglePoiType",static:!1,private:!1,access:{has:t=>"togglePoiType"in t,get:t=>t.togglePoiType},metadata:e},null,a),s(this,null,x,{kind:"method",name:"clearAllFilters",static:!1,private:!1,access:{has:t=>"clearAllFilters"in t,get:t=>t.clearAllFilters},metadata:e},null,a),s(this,null,M,{kind:"method",name:"showSubButtons",static:!1,private:!1,access:{has:t=>"showSubButtons"in t,get:t=>t.showSubButtons},metadata:e},null,a),s(this,null,V,{kind:"method",name:"hideSubButtons",static:!1,private:!1,access:{has:t=>"hideSubButtons"in t,get:t=>t.hideSubButtons},metadata:e},null,a),s(this,null,L,{kind:"method",name:"handleSubButtonClick",static:!1,private:!1,access:{has:t=>"handleSubButtonClick"in t,get:t=>t.handleSubButtonClick},metadata:e},null,a),s(this,null,O,{kind:"method",name:"toggleChildFilter",static:!1,private:!1,access:{has:t=>"toggleChildFilter"in t,get:t=>t.toggleChildFilter},metadata:e},null,a),s(this,null,W,{kind:"method",name:"clearPoiTypeFilters",static:!1,private:!1,access:{has:t=>"clearPoiTypeFilters"in t,get:t=>t.clearPoiTypeFilters},metadata:e},null,a),s(this,null,D,{kind:"method",name:"clearAllChildFilters",static:!1,private:!1,access:{has:t=>"clearAllChildFilters"in t,get:t=>t.clearAllChildFilters},metadata:e},null,a),s(this,null,U,{kind:"method",name:"setActiveParentId",static:!1,private:!1,access:{has:t=>"setActiveParentId"in t,get:t=>t.setActiveParentId},metadata:e},null,a),s(this,null,z,{kind:"method",name:"showShortcuts",static:!1,private:!1,access:{has:t=>"showShortcuts"in t,get:t=>t.showShortcuts},metadata:e},null,a),s(this,null,N,{kind:"method",name:"clearChildren",static:!1,private:!1,access:{has:t=>"clearChildren"in t,get:t=>t.clearChildren},metadata:e},null,a),s(this,null,j,{kind:"method",name:"setSubButtonId",static:!1,private:!1,access:{has:t=>"setSubButtonId"in t,get:t=>t.setSubButtonId},metadata:e},null,a),s(this,null,G,{kind:"method",name:"setPoiFilterId",static:!1,private:!1,access:{has:t=>"setPoiFilterId"in t,get:t=>t.setPoiFilterId},metadata:e},null,a),e&&Object.defineProperty(this,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e})}rootStore=Y(this,a);_subButtonRegistry;state;filters;actions;factory;poiTypeCountsCache=new Map;lastPoiTypeCountUpdate=0;constructor(e){this.rootStore=e,this.state=new st,this.filters=new at(e,this.state),this.actions=new tt(e,this.state,this.filters),this.factory=new et(e,this.state,this.actions),this.setupReactions()}setupReactions(){H(()=>this.rootStore.boothStore.booths.length,()=>this.invalidatePoiTypeCounts())}get subButtonRegistry(){return this._subButtonRegistry||(this._subButtonRegistry=new Z,this.registerSubButtonProviders()),this._subButtonRegistry}registerSubButtonProviders(){this.subButtonRegistry.register(new Q(this.rootStore))}invalidatePoiTypeCounts(){this.poiTypeCountsCache.clear(),this.lastPoiTypeCountUpdate=0}get isVisible(){return this.state.isVisible}get shouldShow(){const{uiState:e}=this.rootStore;if(e.screenSize.width>=q)return this.state.isVisible;const n=!!(e.selectedExhibitor||e.selectedBooth||e.selectedEventItem||e.selectedRoute||e.menu||e.list.type===X);return this.state.isVisible&&!n}get activePoiFilterId(){return this.state.activePoiFilterId}get activeSubButtonsParentId(){return this.state.activeSubButtonsParentId}get activeSubButtonId(){return this.state.activeSubButtonId}get subButtonsEnabled(){return this.state.subButtonsEnabled}get searchShortcutState(){return this.state.searchShortcutState}get searchButtons(){const e=J.filterButtonsConfig;if(!nt(e))return console.warn("[SearchButtonsStore] Invalid filterButtonsConfig detected"),[];const t=e.searchButtons;return this.factory.createButtons(t)}get hasAnySearchButtons(){return this.searchButtons.length>0}get hasActiveSearchButton(){return this.state.activePoiFilterId!==null||this.rootStore.uiState.selectedCategoryFilters.length>0}get activeSearchButtonLabel(){return this.state.activePoiFilterId?this.searchButtons.find(t=>t.id===this.state.activePoiFilterId)?.label||null:this.rootStore.uiState.selectedCategoryFilters.length>0?"Categories":null}get activeSubButtons(){return this.state.activeSubButtonsParentId?this.subButtonRegistry.getSubButtons(this.state.activeSubButtonsParentId):[]}get shouldShowSubButtons(){if(!this.state.subButtonsEnabled||!this.state.activeSubButtonsParentId)return!1;const e=this.searchButtons.find(t=>t.id===this.state.activeSubButtonsParentId);return!e||!e.active?!1:this.subButtonRegistry.shouldShowSubButtons(this.state.activeSubButtonsParentId)&&this.activeSubButtons.length>0}get hasActiveParentWithChildren(){return this.state.hasActiveParentWithChildren}get areAllSelected(){return this.filters.areAllSelected()}get activeChildrenCount(){return this.state.activeChildrenCount}get totalChildrenCount(){return this.filters.getChildrenCount()}get poiTypeCounts(){const e=Date.now();if(e-this.lastPoiTypeCountUpdate<K&&this.poiTypeCountsCache.size>0)return this.poiTypeCountsCache;const t=new Map;return this.rootStore.boothStore.booths.forEach(n=>{n.poiTypeId&&t.set(n.poiTypeId,(t.get(n.poiTypeId)||0)+1)}),this.poiTypeCountsCache=t,this.lastPoiTypeCountUpdate=e,t}get totalPoiTypeCount(){return it(this.poiTypeCounts)}get activePoiTypeId(){return this.state.activePoiFilterId?.startsWith($.POI_TYPE)?lt(this.state.activePoiFilterId):null}handleSearchButtonClick(e){this.actions.handleSearchButtonClick(e)}handleExtendedSearchButtonClick(e){this.actions.handleExtendedSearchButtonClick(e)}handleMainButtonClick(e){this.actions.handleMainButtonClick(e)}handleSessionsClick(){this.actions.handleSessionsClick()}togglePoiType(e){this.actions.togglePoiType(e)}clearAllFilters(){this.actions.clearAllFilters()}showSubButtons(e){this.actions.showSubButtons(e)}hideSubButtons(){this.actions.hideSubButtons()}handleSubButtonClick(e){this.state.activeSubButtonId!==e&&(this.state.setSubButton(e),this.state.activeSubButtonsParentId&&this.subButtonRegistry.handleSubButtonClick(this.state.activeSubButtonsParentId,e))}toggleChildFilter(e){this.filters.toggleChildFilter(e)}clearPoiTypeFilters(){this.filters.clearPoiTypeFilters()}clearAllChildFilters(){this.filters.clearAllChildFilters()}setActiveParentId(e){this.state.setActiveParentId(e)}showShortcuts(e){this.state.showShortcuts(e)}clearChildren(){this.state.clearChildren()}setSubButtonId(e){this.state.setSubButton(e)}setPoiFilterId(e){this.state.setPoiFilter(e)}getPoiTypeTotalCount(e){return this.poiTypeCounts.get(e)||0}isChildActive(e){return this.state.isChildActive(e)}getActiveParent(){return this.filters.getActiveParent()}}})();export default ot;
|
|
1
|
+
import{__decorate as i}from"tslib";import{action as s,computed as o,reaction as l}from"mobx";import{CACHE_DURATION as u,LANGUAGE_TYPE as a,MOBILE_BREAKPOINT as h}from"../../constants";import c from"../../data";import{SessionsSubButtonProvider as p}from"../providers/SessionsSubButtonProvider";import{SubButtonRegistry as d}from"../SubButtonRegistry";import{PREFIXES as S}from"./constants";import{SearchButtonsActions as y}from"./SearchButtonsActions";import{SearchButtonsFactory as B}from"./SearchButtonsFactory";import{SearchButtonsFilters as C}from"./SearchButtonsFilters";import{SearchButtonsState as g}from"./SearchButtonsState";import{countMapValues as b,extractPoiTypeId as P,isValidConfig as v}from"./utils";export default class e{constructor(t){this.poiTypeCountsCache=new Map,this.lastPoiTypeCountUpdate=0,this.rootStore=t,this.state=new g,this.filters=new C(t,this.state),this.actions=new y(t,this.state,this.filters),this.factory=new B(t,this.state,this.actions),this.setupReactions()}setupReactions(){l(()=>this.rootStore.boothStore.booths.length,()=>this.invalidatePoiTypeCounts())}get subButtonRegistry(){return this._subButtonRegistry||(this._subButtonRegistry=new d,this.registerSubButtonProviders()),this._subButtonRegistry}registerSubButtonProviders(){this.subButtonRegistry.register(new p(this.rootStore))}invalidatePoiTypeCounts(){this.poiTypeCountsCache.clear(),this.lastPoiTypeCountUpdate=0}get isVisible(){return this.state.isVisible}get shouldShow(){const{uiState:t}=this.rootStore;if(t.screenSize.width>=h)return this.state.isVisible;const r=!!(t.selectedExhibitor||t.selectedBooth||t.selectedEventItem||t.selectedRoute||t.menu||t.list.type===a);return this.state.isVisible&&!r}get activePoiFilterId(){return this.state.activePoiFilterId}get activeSubButtonsParentId(){return this.state.activeSubButtonsParentId}get activeSubButtonId(){return this.state.activeSubButtonId}get subButtonsEnabled(){return this.state.subButtonsEnabled}get searchShortcutState(){return this.state.searchShortcutState}get searchButtons(){const t=c.filterButtonsConfig;if(!v(t))return console.warn("[SearchButtonsStore] Invalid filterButtonsConfig detected"),[];const n=t.searchButtons;return this.factory.createButtons(n)}get hasAnySearchButtons(){return this.searchButtons.length>0}get hasActiveSearchButton(){return this.state.activePoiFilterId!==null||this.rootStore.uiState.selectedCategoryFilters.length>0}get activeSearchButtonLabel(){return this.state.activePoiFilterId?this.searchButtons.find(n=>n.id===this.state.activePoiFilterId)?.label||null:this.rootStore.uiState.selectedCategoryFilters.length>0?"Categories":null}get activeSubButtons(){return this.state.activeSubButtonsParentId?this.subButtonRegistry.getSubButtons(this.state.activeSubButtonsParentId):[]}get shouldShowSubButtons(){if(!this.state.subButtonsEnabled||!this.state.activeSubButtonsParentId)return!1;const t=this.searchButtons.find(n=>n.id===this.state.activeSubButtonsParentId);return!t||!t.active?!1:this.subButtonRegistry.shouldShowSubButtons(this.state.activeSubButtonsParentId)&&this.activeSubButtons.length>0}get hasActiveParentWithChildren(){return this.state.hasActiveParentWithChildren}get areAllSelected(){return this.filters.areAllSelected()}get activeChildrenCount(){return this.state.activeChildrenCount}get totalChildrenCount(){return this.filters.getChildrenCount()}get poiTypeCounts(){const t=Date.now();if(t-this.lastPoiTypeCountUpdate<u&&this.poiTypeCountsCache.size>0)return this.poiTypeCountsCache;const n=new Map;return this.rootStore.boothStore.booths.forEach(r=>{r.poiTypeId&&n.set(r.poiTypeId,(n.get(r.poiTypeId)||0)+1)}),this.poiTypeCountsCache=n,this.lastPoiTypeCountUpdate=t,n}get totalPoiTypeCount(){return b(this.poiTypeCounts)}get activePoiTypeId(){return this.state.activePoiFilterId?.startsWith(S.POI_TYPE)?P(this.state.activePoiFilterId):null}handleSearchButtonClick(t){this.actions.handleSearchButtonClick(t)}handleExtendedSearchButtonClick(t){this.actions.handleExtendedSearchButtonClick(t)}handleMainButtonClick(t){this.actions.handleMainButtonClick(t)}handleSessionsClick(){this.actions.handleSessionsClick()}togglePoiType(t){this.actions.togglePoiType(t)}clearAllFilters(){this.actions.clearAllFilters()}showSubButtons(t){this.actions.showSubButtons(t)}hideSubButtons(){this.actions.hideSubButtons()}handleSubButtonClick(t){this.state.activeSubButtonId!==t&&(this.state.setSubButton(t),this.state.activeSubButtonsParentId&&this.subButtonRegistry.handleSubButtonClick(this.state.activeSubButtonsParentId,t))}toggleChildFilter(t){this.filters.toggleChildFilter(t)}clearPoiTypeFilters(){this.filters.clearPoiTypeFilters()}clearAllChildFilters(){this.filters.clearAllChildFilters()}setActiveParentId(t){this.state.setActiveParentId(t)}showShortcuts(t){this.state.showShortcuts(t)}clearChildren(){this.state.clearChildren()}setSubButtonId(t){this.state.setSubButton(t)}setPoiFilterId(t){this.state.setPoiFilter(t)}getPoiTypeTotalCount(t){return this.poiTypeCounts.get(t)||0}isChildActive(t){return this.state.isChildActive(t)}getActiveParent(){return this.filters.getActiveParent()}}i([s],e.prototype,"invalidatePoiTypeCounts",null),i([o],e.prototype,"isVisible",null),i([o],e.prototype,"shouldShow",null),i([o],e.prototype,"activePoiFilterId",null),i([o],e.prototype,"activeSubButtonsParentId",null),i([o],e.prototype,"activeSubButtonId",null),i([o],e.prototype,"subButtonsEnabled",null),i([o],e.prototype,"searchShortcutState",null),i([o],e.prototype,"searchButtons",null),i([o],e.prototype,"hasAnySearchButtons",null),i([o],e.prototype,"hasActiveSearchButton",null),i([o],e.prototype,"activeSearchButtonLabel",null),i([o],e.prototype,"activeSubButtons",null),i([o],e.prototype,"shouldShowSubButtons",null),i([o],e.prototype,"hasActiveParentWithChildren",null),i([o],e.prototype,"areAllSelected",null),i([o],e.prototype,"activeChildrenCount",null),i([o],e.prototype,"totalChildrenCount",null),i([o],e.prototype,"poiTypeCounts",null),i([o],e.prototype,"totalPoiTypeCount",null),i([o],e.prototype,"activePoiTypeId",null),i([s],e.prototype,"handleSearchButtonClick",null),i([s],e.prototype,"handleExtendedSearchButtonClick",null),i([s],e.prototype,"handleMainButtonClick",null),i([s],e.prototype,"handleSessionsClick",null),i([s],e.prototype,"togglePoiType",null),i([s],e.prototype,"clearAllFilters",null),i([s],e.prototype,"showSubButtons",null),i([s],e.prototype,"hideSubButtons",null),i([s],e.prototype,"handleSubButtonClick",null),i([s],e.prototype,"toggleChildFilter",null),i([s],e.prototype,"clearPoiTypeFilters",null),i([s],e.prototype,"clearAllChildFilters",null),i([s],e.prototype,"setActiveParentId",null),i([s],e.prototype,"showShortcuts",null),i([s],e.prototype,"clearChildren",null),i([s],e.prototype,"setSubButtonId",null),i([s],e.prototype,"setPoiFilterId",null);
|