@expofp/floorplan 3.7.6 → 3.7.8

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.
Files changed (417) hide show
  1. package/dist/browser/{Button-CskZ-1SQ.js → Button-C4gPbjAY.js} +8 -8
  2. package/dist/browser/{CookieConsent-CwdbXtRd.js → CookieConsent-JWfsWylZ.js} +7 -7
  3. package/dist/browser/{Debug-HvNAI4I2.js → Debug--EUtzsht.js} +7 -7
  4. package/dist/browser/{Demo-BunvPdi4.js → Demo-CPD-4aZQ.js} +15 -13
  5. package/dist/browser/{Free-CU2ylG4D.js → Free-Dvj7TnSN.js} +15 -13
  6. package/dist/browser/{Gallery-Bk5ypZhw.js → Gallery-DBbbgZd-.js} +2739 -2739
  7. package/dist/browser/{GpsLoader-CmI8V13E.js → GpsLoader-imtEGiNV.js} +56 -59
  8. package/dist/browser/{KioskStore-BHYMkA7U.js → KioskStore-BgcP9UvT.js} +7 -7
  9. package/dist/browser/{MaplibreAdapter-CqTZjy9x.js → MaplibreAdapter-9L0Osw0i.js} +95 -95
  10. package/dist/browser/{Modal-CiRNqtwq.js → Modal-D5iXq44j.js} +18 -18
  11. package/dist/browser/{PermissionNotice-COLVVpan.js → PermissionNotice-D-iU7GsJ.js} +11 -11
  12. package/dist/browser/{SetKioskMode-pMI6YZEC.js → SetKioskMode-ev3vUKRr.js} +15 -15
  13. package/dist/browser/ShowKiosk-B2rnHTgt.js +27 -0
  14. package/dist/browser/{TouchHand-DI-Aj4wy.js → TouchHand-D9gZTA6M.js} +5 -7
  15. package/dist/browser/{ViewerMenuPanel-CKCSghSL.js → ViewerMenuPanel-CzUDbBfv.js} +9 -11
  16. package/dist/browser/{add-debug-secret-listener-2dlwQmt_.js → add-debug-secret-listener-BGwnumxG.js} +1 -1
  17. package/dist/browser/{boolean-editor-EQezUrv2.js → boolean-editor-NHaPk3yC.js} +9 -9
  18. package/dist/browser/{bootIntercom-BJhS53yv.js → bootIntercom-5z1JP_AO.js} +2 -2
  19. package/dist/browser/{browser-HS8wyHXB.js → browser-CIXTbsxm.js} +2 -2
  20. package/dist/browser/bundle.json +57 -57
  21. package/dist/browser/{classnames-C3l9dcGG.js → classnames-BRCgwycl.js} +2 -2
  22. package/dist/browser/{client-NCz188Ft.js → client-D-xRoQOb.js} +4 -4
  23. package/dist/browser/components-BnQ6F4_Y.js +6340 -0
  24. package/dist/browser/{createWayfinding-CeS9iM1W.js → createWayfinding-Dqwtb_AQ.js} +489 -489
  25. package/dist/browser/{debug-overlay-Cqc3ctkW.js → debug-overlay-DGX-T5qv.js} +10 -10
  26. package/dist/browser/{debug-ui-C4osX8i_.js → debug-ui-DcyTBQrS.js} +6 -6
  27. package/dist/browser/{dist-8gIQXhyw.js → dist-BeI1dlr0.js} +3 -3
  28. package/dist/browser/{dist-mbonvrAc.js → dist-CVz2SjQb.js} +6 -6
  29. package/dist/browser/{dist-DGSF5sPk.js → dist-DLi44XiQ.js} +5 -5
  30. package/dist/browser/{efp-debug-init-DUWrYXNd.js → efp-debug-init-CxL7LyPc.js} +2 -2
  31. package/dist/browser/{enum-editor-CRSq9S7c.js → enum-editor-CPhTShNc.js} +11 -11
  32. package/dist/browser/{event-not-found-BLRdJMTD.js → event-not-found-DMjwr4DU.js} +1 -1
  33. package/dist/browser/{exports-COPK-0l9.js → exports-Bo62ffaz.js} +1 -1
  34. package/dist/browser/{favicon-BQbHsxX-.js → favicon-BkDexwvo.js} +1 -1
  35. package/dist/browser/{fetch-retry.umd-BLtDS0Sx.js → fetch-retry.umd-Bc704aiz.js} +2 -2
  36. package/dist/browser/{flex-CXxIn81t.js → flex-CegveOzn.js} +5 -5
  37. package/dist/browser/{floorplan.loader-C-m4NheT.js → floorplan.loader-Cq_YmcPJ.js} +909 -903
  38. package/dist/browser/{floorplan.ready-Duc4SxLH.js → floorplan.ready-DU7vfXgo.js} +372 -370
  39. package/dist/browser/fonts/efp-symbols.woff +0 -0
  40. package/dist/browser/{fuse-4QTHS7Ur.js → fuse-C01hPccw.js} +2 -2
  41. package/dist/browser/{i18n-VVkod1aZ.js → i18n-BEer1tI4.js} +664 -659
  42. package/dist/browser/index.js +11 -11
  43. package/dist/browser/{jsx-runtime-BjSqokhG.js → jsx-runtime-C8yjdFgZ.js} +2 -2
  44. package/dist/browser/{lib-wtNuKXT7.js → lib-CtMSG5aX.js} +4 -4
  45. package/dist/browser/{is-debug-UXRw9lKQ.js → loadImage-CAq2UZsg.js} +13 -16
  46. package/dist/browser/{main-C-83kvrc.js → main-BOwY8EdO.js} +1 -1
  47. package/dist/browser/{mobx-D3CFlbtA.js → mobx-BLgYz-7U.js} +4 -4
  48. package/dist/browser/{particles.min-Bxln4d_5.js → particles.min-4B9bHzCK.js} +2 -2
  49. package/dist/browser/{prop-types-BBCNUtnm.js → prop-types-8nTA_CPs.js} +2 -2
  50. package/dist/browser/{react-HA3DGvr6.js → react-Di3Pmpio.js} +2 -2
  51. package/dist/browser/{react-dom-BQ8F633x.js → react-dom-xeogvqlp.js} +3 -3
  52. package/dist/browser/{reset-all-settings-DoRgIwaj.js → reset-all-settings-CB7mF2PC.js} +7 -7
  53. package/dist/browser/{rolldown-runtime-CH0sZcpN.js → rolldown-runtime-YBAZwyzS.js} +1 -1
  54. package/dist/browser/{settings-CXi58p62.js → settings-2_RuGoL9.js} +2 -2
  55. package/dist/browser/{settings-item-_4f-2Ez7.js → settings-item-Ie1tNhGr.js} +6 -6
  56. package/dist/browser/{store-BrAfYXrZ.js → store-DTwRqruF.js} +10022 -10018
  57. package/dist/browser/{string-editor-B_WUMLTp.js → string-editor-DkFPiRFv.js} +7 -7
  58. package/dist/browser/{theme-CQRRknl6.js → theme-Du1VS-C5.js} +8 -8
  59. package/dist/browser/{ui-BEwxpZU9.js → ui-D0YSutB6.js} +8 -8
  60. package/dist/browser/{useRenderTarget-DT7C-pWd.js → useRenderTarget-Cpdl_o5r.js} +4 -4
  61. package/dist/esm/components/AlertContainer.d.ts +1 -1
  62. package/dist/esm/components/Autocomplete.d.ts +1 -1
  63. package/dist/esm/components/Autocomplete.js +1 -1
  64. package/dist/esm/components/BaseFilterModal.d.ts +1 -1
  65. package/dist/esm/components/Booth/Booth.d.ts +1 -1
  66. package/dist/esm/components/Booth/Booth.js +1 -1
  67. package/dist/esm/components/Booth/BoothOnHold.js +1 -1
  68. package/dist/esm/components/Booth/BoothReserved.js +1 -1
  69. package/dist/esm/components/Booth/BoothSpecial.d.ts +2 -2
  70. package/dist/esm/components/Booth/BoothWithoutExhibitor.d.ts +1 -1
  71. package/dist/esm/components/Booth/BoothWithoutExhibitor.js +1 -1
  72. package/dist/esm/components/Category.d.ts +1 -1
  73. package/dist/esm/components/Category.js +1 -1
  74. package/dist/esm/components/CategoryFilterModal.js +1 -1
  75. package/dist/esm/components/CookieConsent.js +1 -1
  76. package/dist/esm/components/Debug.d.ts +1 -1
  77. package/dist/esm/components/Debug.js +1 -1
  78. package/dist/esm/components/Demo.d.ts +1 -1
  79. package/dist/esm/components/Demo.js +1 -1
  80. package/dist/esm/components/EntityItemContainer.d.ts +1 -1
  81. package/dist/esm/components/EntityList.d.ts +1 -1
  82. package/dist/esm/components/EntityList.js +1 -1
  83. package/dist/esm/components/EntityListRow.d.ts +2 -2
  84. package/dist/esm/components/EntityListRow.js +1 -1
  85. package/dist/esm/components/ErrorBoundary.js +1 -1
  86. package/dist/esm/components/Event.d.ts +1 -1
  87. package/dist/esm/components/Event.js +1 -1
  88. package/dist/esm/components/EventBadge.d.ts +2 -2
  89. package/dist/esm/components/EventBadge.js +1 -1
  90. package/dist/esm/components/Exhibitor.d.ts +1 -1
  91. package/dist/esm/components/Exhibitor.js +1 -1
  92. package/dist/esm/components/Filter.js +1 -1
  93. package/dist/esm/components/Free.d.ts +1 -1
  94. package/dist/esm/components/Free.js +1 -1
  95. package/dist/esm/components/Gallery/Gallery.d.ts +1 -1
  96. package/dist/esm/components/Gallery/Gallery.js +1 -1
  97. package/dist/esm/components/Gallery/GalleryModal/GalleryModal.d.ts +1 -1
  98. package/dist/esm/components/Gallery/GalleryModal/GalleryModal.js +1 -1
  99. package/dist/esm/components/Gallery/TransformImg/TransformImg.d.ts +1 -1
  100. package/dist/esm/components/Gallery/TransformImg/TransformImg.js +1 -1
  101. package/dist/esm/components/GpsLoader.js +1 -1
  102. package/dist/esm/components/IntercomLauncher.d.ts +1 -1
  103. package/dist/esm/components/IntercomLauncher.js +1 -1
  104. package/dist/esm/components/Kiosk/KioskStore.d.ts +3 -3
  105. package/dist/esm/components/Kiosk/SetKiosk/Confirm/ConfirmDialog.d.ts +1 -1
  106. package/dist/esm/components/Kiosk/SetKiosk/FormInput/RangeInput.d.ts +1 -1
  107. package/dist/esm/components/Kiosk/SetKiosk/Message/InfoMessage.d.ts +1 -1
  108. package/dist/esm/components/Kiosk/SetKiosk/SetKioskComponent.d.ts +1 -1
  109. package/dist/esm/components/Kiosk/SetKiosk/SetKioskComponent.js +1 -1
  110. package/dist/esm/components/Kiosk/SetKiosk/SetKioskForm.d.ts +1 -1
  111. package/dist/esm/components/Kiosk/SetKiosk/SetKioskForm.js +1 -1
  112. package/dist/esm/components/Kiosk/SetKiosk/SetKioskStatusMessages.d.ts +1 -1
  113. package/dist/esm/components/Kiosk/SetKioskMode.js +1 -1
  114. package/dist/esm/components/Kiosk/ShowKiosk.js +1 -1
  115. package/dist/esm/components/Kiosk/kioskApi.d.ts +1 -1
  116. package/dist/esm/components/Language.js +1 -1
  117. package/dist/esm/components/LanguageRow.d.ts +1 -1
  118. package/dist/esm/components/LanguageRow.js +1 -1
  119. package/dist/esm/components/LargeMessage.d.ts +1 -1
  120. package/dist/esm/components/LargeMessage.js +1 -1
  121. package/dist/esm/components/Layout.d.ts +1 -1
  122. package/dist/esm/components/Layout.js +1 -1
  123. package/dist/esm/components/LevelSelector.d.ts +1 -1
  124. package/dist/esm/components/LevelSelector.js +1 -1
  125. package/dist/esm/components/List.d.ts +1 -1
  126. package/dist/esm/components/List.js +1 -1
  127. package/dist/esm/components/LogoOverlay.d.ts +1 -1
  128. package/dist/esm/components/LogoOverlay.js +1 -1
  129. package/dist/esm/components/Map/Map.js +1 -1
  130. package/dist/esm/components/Map/drawing/config/config-all.js +1 -1
  131. package/dist/esm/components/Map/drawing/config/config-bg.d.ts +2 -2
  132. package/dist/esm/components/Map/drawing/config/config-bg.js +1 -1
  133. package/dist/esm/components/Map/drawing/config/config-booth-badge.d.ts +1 -1
  134. package/dist/esm/components/Map/drawing/config/config-booth-badge.js +1 -1
  135. package/dist/esm/components/Map/drawing/config/config-booth-bg.d.ts +4 -4
  136. package/dist/esm/components/Map/drawing/config/config-booth-bg.js +1 -1
  137. package/dist/esm/components/Map/drawing/config/config-booth-bookmark.d.ts +2 -2
  138. package/dist/esm/components/Map/drawing/config/config-booth-bookmark.js +1 -1
  139. package/dist/esm/components/Map/drawing/config/config-booth-border.d.ts +2 -2
  140. package/dist/esm/components/Map/drawing/config/config-booth-border.js +1 -1
  141. package/dist/esm/components/Map/drawing/config/config-booth-labels-special.d.ts +3 -3
  142. package/dist/esm/components/Map/drawing/config/config-booth-labels-special.js +2 -2
  143. package/dist/esm/components/Map/drawing/config/config-booth-labels.d.ts +4 -4
  144. package/dist/esm/components/Map/drawing/config/config-booth-labels.js +1 -1
  145. package/dist/esm/components/Map/drawing/config/config-booths.d.ts +1 -1
  146. package/dist/esm/components/Map/drawing/config/config-booths.js +1 -1
  147. package/dist/esm/components/Map/drawing/config/config-load-layer.d.ts +1 -1
  148. package/dist/esm/components/Map/drawing/config/config-load-layer.js +1 -1
  149. package/dist/esm/components/Map/drawing/config/config-markers.js +1 -1
  150. package/dist/esm/components/Map/drawing/config/loadBoothsImages.d.ts +3 -3
  151. package/dist/esm/components/Map/drawing/config/loadBoothsImages.js +1 -1
  152. package/dist/esm/components/Map/pointInConvexQuad.d.ts +1 -1
  153. package/dist/esm/components/Map/traffic/useBuildRoute.js +2 -2
  154. package/dist/esm/components/Map/traffic/useManageTraffic.js +1 -1
  155. package/dist/esm/components/MapControls.d.ts +1 -1
  156. package/dist/esm/components/MapControls.js +1 -1
  157. package/dist/esm/components/Maplibre/MaplibreAdapter.d.ts +1 -1
  158. package/dist/esm/components/Maplibre/MaplibreWrapper.d.ts +1 -2
  159. package/dist/esm/components/Maplibre/useCameraReactions.d.ts +3 -3
  160. package/dist/esm/components/Maplibre/useDimming.d.ts +4 -4
  161. package/dist/esm/components/Maplibre/useLayerVisibilitySync.d.ts +4 -4
  162. package/dist/esm/components/Maplibre/useRendererEvents.d.ts +2 -2
  163. package/dist/esm/components/Maplibre/useWayfindingAndMarkers.d.ts +2 -2
  164. package/dist/esm/components/Maplibre/utils/geo-config.d.ts +3 -3
  165. package/dist/esm/components/Maplibre/utils/layer-defs.d.ts +1 -1
  166. package/dist/esm/components/Maplibre/utils/map-helpers.d.ts +2 -2
  167. package/dist/esm/components/MarketMaterialList.d.ts +1 -1
  168. package/dist/esm/components/MarketMaterialList.js +1 -1
  169. package/dist/esm/components/Menu.js +1 -1
  170. package/dist/esm/components/MobileToggleButton.d.ts +1 -1
  171. package/dist/esm/components/MobileToggleButton.js +1 -1
  172. package/dist/esm/components/Modal.d.ts +1 -1
  173. package/dist/esm/components/Modal.js +1 -1
  174. package/dist/esm/components/MultiSelectGroups.d.ts +1 -1
  175. package/dist/esm/components/MultiSelectGroups.js +1 -1
  176. package/dist/esm/components/Overlay.d.ts +1 -1
  177. package/dist/esm/components/Overlay.js +1 -1
  178. package/dist/esm/components/OverlayContainer.js +1 -1
  179. package/dist/esm/components/OverlayGripContainer.js +1 -1
  180. package/dist/esm/components/OverlayParticles.d.ts +1 -1
  181. package/dist/esm/components/OverlayParticles.js +1 -1
  182. package/dist/esm/components/RebookingNotes.d.ts +1 -1
  183. package/dist/esm/components/RebookingNotes.js +1 -1
  184. package/dist/esm/components/RebookingRadioGroup.d.ts +1 -1
  185. package/dist/esm/components/RebookingRadioGroup.js +1 -1
  186. package/dist/esm/components/RoutePlanner/RoutePlanner.d.ts +1 -1
  187. package/dist/esm/components/RoutePlanner/RoutePlanner.js +1 -1
  188. package/dist/esm/components/RoutePlanner/RoutePlannerHeader.js +1 -1
  189. package/dist/esm/components/RoutePlanner/RoutePlannerStopItem.d.ts +1 -1
  190. package/dist/esm/components/RoutePlanner/RoutePlannerStopItem.js +1 -1
  191. package/dist/esm/components/RouteQR.d.ts +1 -1
  192. package/dist/esm/components/RouteQR.js +1 -1
  193. package/dist/esm/components/Schedule.d.ts +2 -2
  194. package/dist/esm/components/Schedule.js +1 -1
  195. package/dist/esm/components/ScrollableRowContainer.js +1 -1
  196. package/dist/esm/components/Search.d.ts +1 -1
  197. package/dist/esm/components/Search.js +1 -1
  198. package/dist/esm/components/SearchBox.d.ts +1 -1
  199. package/dist/esm/components/SearchBox.js +1 -1
  200. package/dist/esm/components/SearchButtons/SearchButton.d.ts +1 -1
  201. package/dist/esm/components/SearchButtons/SearchButton.js +1 -1
  202. package/dist/esm/components/SearchButtons/SearchButtons.d.ts +1 -1
  203. package/dist/esm/components/SearchButtons/SearchButtons.js +1 -1
  204. package/dist/esm/components/SearchButtons/SearchSubButton.d.ts +1 -1
  205. package/dist/esm/components/SearchButtons/SearchSubButton.js +1 -1
  206. package/dist/esm/components/SearchButtons/SearchSubButtons.d.ts +1 -1
  207. package/dist/esm/components/SearchButtons/SearchSubButtons.js +1 -1
  208. package/dist/esm/components/Sessions.d.ts +1 -1
  209. package/dist/esm/components/Sessions.js +1 -1
  210. package/dist/esm/components/SessionsFiltersModal.d.ts +1 -1
  211. package/dist/esm/components/SessionsFiltersModal.js +1 -1
  212. package/dist/esm/components/Share.d.ts +1 -1
  213. package/dist/esm/components/Share.js +1 -1
  214. package/dist/esm/components/Shortcuts/ShortcutButton.d.ts +2 -2
  215. package/dist/esm/components/Shortcuts/ShortcutButton.js +1 -1
  216. package/dist/esm/components/Shortcuts/ShortcutsFiltersButton.d.ts +1 -1
  217. package/dist/esm/components/Shortcuts/ShortcutsFiltersButton.js +1 -1
  218. package/dist/esm/components/Shortcuts/ShortcutsToolbar.d.ts +1 -1
  219. package/dist/esm/components/Shortcuts/ShortcutsToolbar.js +1 -1
  220. package/dist/esm/components/ShowMoreButton.d.ts +1 -1
  221. package/dist/esm/components/ShowMoreButton.js +1 -1
  222. package/dist/esm/components/SidebarActions.d.ts +1 -1
  223. package/dist/esm/components/SidebarActions.js +1 -1
  224. package/dist/esm/components/SimpleRow.d.ts +1 -1
  225. package/dist/esm/components/SimpleRow.js +1 -1
  226. package/dist/esm/components/Speaker.d.ts +1 -1
  227. package/dist/esm/components/Speaker.js +1 -1
  228. package/dist/esm/components/Speakers.d.ts +1 -1
  229. package/dist/esm/components/Speakers.js +1 -1
  230. package/dist/esm/components/SpeakersFiltersModal.d.ts +1 -1
  231. package/dist/esm/components/SpeakersFiltersModal.js +1 -1
  232. package/dist/esm/components/Toast/ToastContainer.d.ts +1 -1
  233. package/dist/esm/components/Toast/ToastContainer.js +1 -1
  234. package/dist/esm/components/Toast/ToastProvider.js +1 -1
  235. package/dist/esm/components/TourPoints.js +1 -1
  236. package/dist/esm/components/Tours.d.ts +1 -1
  237. package/dist/esm/components/Tours.js +1 -1
  238. package/dist/esm/components/ToursList.d.ts +2 -2
  239. package/dist/esm/components/ToursList.js +1 -1
  240. package/dist/esm/components/ViewerMenuPanel.d.ts +1 -1
  241. package/dist/esm/components/ViewerMenuPanel.js +1 -1
  242. package/dist/esm/components/WayInformation.d.ts +1 -1
  243. package/dist/esm/components/WayInformation.js +1 -1
  244. package/dist/esm/components/Wayfinding.d.ts +1 -1
  245. package/dist/esm/components/Wayfinding.js +1 -1
  246. package/dist/esm/components/WayfindingFloorSelectorContainer.d.ts +1 -1
  247. package/dist/esm/components/WayfindingTemplate.d.ts +4 -4
  248. package/dist/esm/components/WayfindingTemplate.js +1 -1
  249. package/dist/esm/components/Ws.d.ts +1 -1
  250. package/dist/esm/components/Ws.js +1 -1
  251. package/dist/esm/components/YahRow.d.ts +1 -1
  252. package/dist/esm/components/YahRow.js +1 -1
  253. package/dist/esm/components/gps/GpsManager.d.ts +1 -1
  254. package/dist/esm/components/gps/GpsManager.js +1 -1
  255. package/dist/esm/components/gps/GpsPermissionRequest.js +1 -1
  256. package/dist/esm/components/gps/useUserLocationAndHeading.d.ts +1 -1
  257. package/dist/esm/components/gps/useUserLocationAndHeading.js +1 -1
  258. package/dist/esm/components/gps/utils.d.ts +1 -1
  259. package/dist/esm/data/fpGeo.d.ts +1 -1
  260. package/dist/esm/data/index.d.ts +1 -1
  261. package/dist/esm/data/svg.js +1 -1
  262. package/dist/esm/data/validate-data.d.ts +1 -1
  263. package/dist/esm/floorplan.loader.d.ts +7 -7
  264. package/dist/esm/floorplan.loader.js +1 -1
  265. package/dist/esm/floorplan.ready.d.ts +2 -2
  266. package/dist/esm/floorplan.ready.js +1 -1
  267. package/dist/esm/hooks/useDragGesture.js +1 -1
  268. package/dist/esm/hooks/useURLFilters.d.ts +1 -1
  269. package/dist/esm/hooks/useURLFilters.js +1 -1
  270. package/dist/esm/hooks/useWindowSize.js +1 -1
  271. package/dist/esm/intercom/shouldLoad.d.ts +2 -2
  272. package/dist/esm/load.d.ts +3 -3
  273. package/dist/esm/services/URLFilterManager.d.ts +1 -1
  274. package/dist/esm/services/URLFilterManager.js +1 -1
  275. package/dist/esm/store/BaseFilterStore.d.ts +1 -1
  276. package/dist/esm/store/BookmarksStore.js +1 -1
  277. package/dist/esm/store/BoothStore.d.ts +2 -2
  278. package/dist/esm/store/BoothStore.js +1 -1
  279. package/dist/esm/store/CategoryFilterStore.d.ts +2 -2
  280. package/dist/esm/store/CategoryFilterStore.js +1 -1
  281. package/dist/esm/store/CategoryStore.d.ts +1 -1
  282. package/dist/esm/store/ExhibitorStore.d.ts +1 -1
  283. package/dist/esm/store/ExhibitorStore.js +1 -1
  284. package/dist/esm/store/HeatmapStore.d.ts +3 -3
  285. package/dist/esm/store/HeatmapStore.js +1 -1
  286. package/dist/esm/store/LayerStore.d.ts +1 -1
  287. package/dist/esm/store/LayerStore.js +1 -1
  288. package/dist/esm/store/MaplibreStore.js +1 -1
  289. package/dist/esm/store/RootStore.d.ts +15 -15
  290. package/dist/esm/store/RootStore.js +1 -1
  291. package/dist/esm/store/RoutePlannerStore.d.ts +2 -2
  292. package/dist/esm/store/RoutePlannerStore.js +1 -1
  293. package/dist/esm/store/RouteStore.d.ts +1 -1
  294. package/dist/esm/store/RouteStore.js +1 -1
  295. package/dist/esm/store/SearchStore.js +1 -1
  296. package/dist/esm/store/SessionsFilterStore.d.ts +2 -2
  297. package/dist/esm/store/ShortcutRegistry.d.ts +1 -1
  298. package/dist/esm/store/SpeakerStore.d.ts +1 -1
  299. package/dist/esm/store/SubButtonProvider.d.ts +1 -1
  300. package/dist/esm/store/SubButtonRegistry.d.ts +2 -2
  301. package/dist/esm/store/ToursStore.js +1 -1
  302. package/dist/esm/store/UIState.d.ts +6 -6
  303. package/dist/esm/store/UIState.js +1 -1
  304. package/dist/esm/store/init/index.js +1 -1
  305. package/dist/esm/store/init/init-booths.js +1 -1
  306. package/dist/esm/store/init/init-events.js +1 -1
  307. package/dist/esm/store/init/init-exhibitors.js +1 -1
  308. package/dist/esm/store/init/init-heatmap.js +1 -1
  309. package/dist/esm/store/init/init-layers.js +1 -1
  310. package/dist/esm/store/init/init-ui.js +1 -1
  311. package/dist/esm/store/providers/SearchShortcutProvider.d.ts +1 -2
  312. package/dist/esm/store/providers/SessionsShortcutProvider.d.ts +1 -1
  313. package/dist/esm/store/providers/SessionsSubButtonProvider.d.ts +2 -2
  314. package/dist/esm/store/providers/SessionsSubButtonProvider.js +1 -1
  315. package/dist/esm/store/providers/SpeakerShortcutProvider.d.ts +1 -1
  316. package/dist/esm/store/search-buttons/SearchButtonsActions.d.ts +2 -2
  317. package/dist/esm/store/search-buttons/SearchButtonsActions.js +1 -1
  318. package/dist/esm/store/search-buttons/SearchButtonsFactory.d.ts +3 -3
  319. package/dist/esm/store/search-buttons/SearchButtonsFactory.js +1 -1
  320. package/dist/esm/store/search-buttons/SearchButtonsFilters.d.ts +2 -2
  321. package/dist/esm/store/search-buttons/SearchButtonsState.d.ts +1 -1
  322. package/dist/esm/store/search-buttons/SearchButtonsState.js +1 -1
  323. package/dist/esm/store/search-buttons/SearchButtonsStore.d.ts +1 -1
  324. package/dist/esm/store/search-buttons/SearchButtonsStore.js +1 -1
  325. package/dist/esm/store/search-buttons/utils.d.ts +1 -1
  326. package/dist/esm/store/search-buttons/utils.js +1 -1
  327. package/dist/esm/store/types.d.ts +3 -3
  328. package/dist/esm/storybook/decorators/StoryWrapper.js +1 -1
  329. package/dist/esm/storybook/decorators/WithResize.js +1 -1
  330. package/dist/esm/tools/gtag.js +1 -1
  331. package/dist/esm/tools/loaders.js +1 -1
  332. package/dist/esm/tools/sentry.d.ts +2 -2
  333. package/dist/esm/tools/sentry.js +1 -1
  334. package/dist/esm/ui/Alert/Alert.d.ts +1 -2
  335. package/dist/esm/ui/Alert/Alert.js +1 -1
  336. package/dist/esm/ui/Badge/Badge.d.ts +1 -2
  337. package/dist/esm/ui/Badge/Badge.js +1 -1
  338. package/dist/esm/ui/Button/Button.d.ts +1 -2
  339. package/dist/esm/ui/Button/Button.js +1 -1
  340. package/dist/esm/ui/Checkbox/Checkbox.d.ts +1 -1
  341. package/dist/esm/ui/Checkbox/Checkbox.js +1 -1
  342. package/dist/esm/ui/CheckboxButton/CheckboxButton.d.ts +1 -1
  343. package/dist/esm/ui/CheckboxButton/CheckboxButton.js +1 -1
  344. package/dist/esm/ui/Draggable/Draggable.js +1 -1
  345. package/dist/esm/ui/EntityItem/EntityItem.d.ts +1 -1
  346. package/dist/esm/ui/EntityItem/EntityItem.js +1 -1
  347. package/dist/esm/ui/HeatmapLegend/HeatmapLegend.d.ts +1 -1
  348. package/dist/esm/ui/HeatmapLegend/HeatmapLegend.js +1 -1
  349. package/dist/esm/ui/LevelBadge/LevelBadge.d.ts +1 -1
  350. package/dist/esm/ui/OverlayGrip/OverlayGrip.d.ts +1 -1
  351. package/dist/esm/ui/OverlayGrip/OverlayGrip.js +1 -1
  352. package/dist/esm/ui/PermissionNotice/PermissionNotice.d.ts +1 -1
  353. package/dist/esm/ui/PermissionNotice/PermissionNotice.js +1 -1
  354. package/dist/esm/ui/Radio/Radio.d.ts +1 -1
  355. package/dist/esm/ui/Radio/Radio.js +1 -1
  356. package/dist/esm/ui/ScrollableRow/ScrollableRow.d.ts +1 -1
  357. package/dist/esm/ui/ScrollableRow/ScrollableRow.js +1 -1
  358. package/dist/esm/ui/Spinner/Spinner.d.ts +1 -1
  359. package/dist/esm/ui/Spinner/Spinner.js +1 -1
  360. package/dist/esm/ui/ToggleButton/ToggleButton.d.ts +1 -1
  361. package/dist/esm/ui/ToggleButton/ToggleButton.js +1 -1
  362. package/dist/esm/ui/ToggleSwitch/ToggleSwitch.d.ts +1 -1
  363. package/dist/esm/ui/ToggleSwitch/ToggleSwitch.js +1 -1
  364. package/dist/esm/ui/TouchHand/TouchHand.d.ts +1 -1
  365. package/dist/esm/ui/WayfindingFloorSelector/WayfindingFloorSelector.d.ts +1 -1
  366. package/dist/esm/ui/WayfindingFloorSelector/WayfindingFloorSelector.js +1 -1
  367. package/dist/esm/utils/customCommands.js +1 -1
  368. package/dist/esm/utils/dimming.d.ts +1 -1
  369. package/dist/esm/utils/entity-storage.js +1 -1
  370. package/dist/esm/utils/eventFullBadge.d.ts +1 -1
  371. package/dist/esm/utils/gps.js +1 -1
  372. package/dist/esm/utils/i18n.js +1 -1
  373. package/dist/esm/utils/imageloader.d.ts +3 -3
  374. package/dist/esm/utils/loadCustomCss.d.ts +1 -1
  375. package/dist/esm/utils/loadIcons.d.ts +1 -1
  376. package/dist/esm/utils/loadImagesInBatches.js +1 -1
  377. package/dist/esm/utils/mergeExhibitors.d.ts +1 -1
  378. package/dist/esm/utils/mobx.d.ts +1 -1
  379. package/dist/esm/utils/mobx.js +1 -1
  380. package/dist/esm/utils/preview-exhibitor.d.ts +1 -1
  381. package/dist/esm/utils/useHeatmapData.d.ts +3 -3
  382. package/dist/esm/utils/useHeatmapOverlay.d.ts +3 -3
  383. package/dist/esm/wayfinding/adapters/floorContext.d.ts +1 -1
  384. package/dist/esm/wayfinding/adapters/graphDataSource.d.ts +1 -1
  385. package/dist/esm/wayfinding/adapters/kioskCanvas.js +1 -1
  386. package/dist/esm/wayfinding/adapters/positionInput.d.ts +2 -2
  387. package/dist/esm/wayfinding/core/__tests__/helpers.d.ts +1 -1
  388. package/dist/esm/wayfinding/core/geometry/pointInPolygon.d.ts +3 -3
  389. package/dist/esm/wayfinding/core/graph/buildNGraph.d.ts +4 -4
  390. package/dist/esm/wayfinding/core/graph/findShortestPath.d.ts +1 -1
  391. package/dist/esm/wayfinding/core/graph/findShortestPath.js +1 -1
  392. package/dist/esm/wayfinding/core/graph/graphCache.d.ts +1 -1
  393. package/dist/esm/wayfinding/core/graph/linkCost.d.ts +1 -1
  394. package/dist/esm/wayfinding/core/graph/pathfinder/aStarPathFinder.d.ts +1 -1
  395. package/dist/esm/wayfinding/core/graph/pathfinder/aStarPathFinder.js +1 -1
  396. package/dist/esm/wayfinding/core/position/distanceToRoute.d.ts +1 -1
  397. package/dist/esm/wayfinding/core/position/rerouteController.d.ts +1 -1
  398. package/dist/esm/wayfinding/core/position/snapToRoute.d.ts +1 -1
  399. package/dist/esm/wayfinding/core/position/splitRouteByPoint.d.ts +1 -1
  400. package/dist/esm/wayfinding/core/rendering/computeTrailPoints.d.ts +1 -1
  401. package/dist/esm/wayfinding/core/rendering/computeTransitionPoints.d.ts +1 -1
  402. package/dist/esm/wayfinding/core/rendering/getVisibleRouteLines.d.ts +2 -2
  403. package/dist/esm/wayfinding/core/rendering/normalizeRouteDirection.d.ts +1 -1
  404. package/dist/esm/wayfinding/core/routing/buildMultiPointRoute.d.ts +1 -1
  405. package/dist/esm/wayfinding/core/routing/buildRoute.d.ts +1 -1
  406. package/dist/esm/wayfinding/core/routing/graphPointResolvers.d.ts +2 -2
  407. package/dist/esm/wayfinding/core/routing/routeResult.d.ts +1 -1
  408. package/dist/esm/wayfinding/handlers/yahHandler.d.ts +3 -3
  409. package/dist/esm/wayfinding/runtime/endpointView.d.ts +5 -5
  410. package/dist/esm/wayfinding/runtime/getRouteLines.d.ts +2 -2
  411. package/dist/esm/wayfinding/runtime/positionView.d.ts +3 -3
  412. package/dist/esm/wayfinding/runtime/routeLinesView.d.ts +2 -2
  413. package/dist/esm/wayfinding/runtime/routeRenderData.d.ts +1 -1
  414. package/dist/esm/wayfinding/runtime/trailView.d.ts +4 -4
  415. package/package.json +5 -6
  416. package/dist/browser/ShowKiosk-BpJjfmrQ.js +0 -27
  417. package/dist/browser/components-oKoVpjWk.js +0 -6343
@@ -1 +1 @@
1
- import{__esDecorate as l,__runInitializers as y}from"tslib";import{action as h,observable as A,reaction as F}from"mobx";import a from"../tools/logger";import{PREFIXES as $}from"../store/search-buttons/constants";import{encodeStringArray as M,decodeStringArray as N,encodeString as X,decodeString as G,toLowerCaseArray as m,toLowerCaseString as k}from"../utils/urlEncoding";const d={CATEGORIES:"categories",POI_TYPE:"poiType",POI_TYPES:"poiTypes",EXHIBITORS:"exhibitors"};let H=(()=>{let n=[],f,T=[],S=[],P,L=[],I=[],C,_,R,b,w,O,U,x,E,z;return class{static{const t=typeof Symbol=="function"&&Symbol.metadata?Object.create(null):void 0;f=[A],P=[A],C=[h],_=[h],R=[h],b=[h],w=[h],O=[h],U=[h],x=[h],E=[h],z=[h],l(this,null,C,{kind:"method",name:"initialize",static:!1,private:!1,access:{has:e=>"initialize"in e,get:e=>e.initialize},metadata:t},null,n),l(this,null,_,{kind:"method",name:"parseURLFilters",static:!1,private:!1,access:{has:e=>"parseURLFilters"in e,get:e=>e.parseURLFilters},metadata:t},null,n),l(this,null,R,{kind:"method",name:"applyFiltersToStore",static:!1,private:!1,access:{has:e=>"applyFiltersToStore"in e,get:e=>e.applyFiltersToStore},metadata:t},null,n),l(this,null,b,{kind:"method",name:"updateURLFromFilters",static:!1,private:!1,access:{has:e=>"updateURLFromFilters"in e,get:e=>e.updateURLFromFilters},metadata:t},null,n),l(this,null,w,{kind:"method",name:"setCategories",static:!1,private:!1,access:{has:e=>"setCategories"in e,get:e=>e.setCategories},metadata:t},null,n),l(this,null,O,{kind:"method",name:"setPoiType",static:!1,private:!1,access:{has:e=>"setPoiType"in e,get:e=>e.setPoiType},metadata:t},null,n),l(this,null,U,{kind:"method",name:"setPoiTypes",static:!1,private:!1,access:{has:e=>"setPoiTypes"in e,get:e=>e.setPoiTypes},metadata:t},null,n),l(this,null,x,{kind:"method",name:"clearAllFilters",static:!1,private:!1,access:{has:e=>"clearAllFilters"in e,get:e=>e.clearAllFilters},metadata:t},null,n),l(this,null,E,{kind:"method",name:"focusOnFilteredBooths",static:!1,private:!1,access:{has:e=>"focusOnFilteredBooths"in e,get:e=>e.focusOnFilteredBooths},metadata:t},null,n),l(this,null,z,{kind:"method",name:"openExhibitorsList",static:!1,private:!1,access:{has:e=>"openExhibitorsList"in e,get:e=>e.openExhibitorsList},metadata:t},null,n),l(null,null,f,{kind:"field",name:"currentFilters",static:!1,private:!1,access:{has:e=>"currentFilters"in e,get:e=>e.currentFilters,set:(e,r)=>{e.currentFilters=r}},metadata:t},T,S),l(null,null,P,{kind:"field",name:"isInitialized",static:!1,private:!1,access:{has:e=>"isInitialized"in e,get:e=>e.isInitialized,set:(e,r)=>{e.isInitialized=r}},metadata:t},L,I),t&&Object.defineProperty(this,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:t})}rootStore=y(this,n);currentFilters=y(this,T,{categories:[],poiType:null,poiTypes:[],exhibitors:!1});isInitialized=(y(this,S),y(this,L,!1));constructor(t){y(this,I),this.rootStore=t,this.setupReactions()}initialize(){this.parseURLFilters(),this.applyFiltersToStore(),this.isInitialized=!0,a.log("URLFilterManager initialized with filters:",this.currentFilters)}parseURLFilters(){const t=new URLSearchParams(window.location.search),e=t.get(d.CATEGORIES),r=e?N(e):[],i=t.get(d.POI_TYPE),s=i?G(i):null,o=t.get(d.POI_TYPES),c=o?N(o):[],p=t.get(d.EXHIBITORS),u=p==="true"||p==="",v=c.filter(g=>{if(!g)return!1;const B=this.rootStore.poiTypeStore.poiTypes.some(Y=>Y.name.toLowerCase()===g.toLowerCase());return B||a.warn(`POI type not found in data: ${g}`),B});r.length>0&&(s||v.length>0)?(a.warn("URL contains both categories and POI types. Clearing POI types."),this.currentFilters={categories:r,poiType:null,poiTypes:[],exhibitors:u}):this.currentFilters={categories:r,poiType:s,poiTypes:v,exhibitors:u},a.log("URLFilterManager parsed filters:",{categories:r,poiType:s,poiTypes:c,exhibitors:u}),this.validateFilters(this.currentFilters)}applyFiltersToStore(){const{uiState:t,categoryFilterStore:e,searchButtonsStore:r}=this.rootStore;if(this.currentFilters.categories.length>0){const i=this.currentFilters.categories.map(s=>this.rootStore.categoryStore.categories.find(o=>o.name.toLowerCase()===s.toLowerCase())).filter(s=>s!==void 0);i.length>0?(t.selectedCategoryFilters=i,e.state.selectedItems=i.map(s=>({id:s.id,name:s.name})),t.categoryFilterOpen=!0,a.log("URLFilterManager applied categories:",i.map(s=>s.name)),setTimeout(()=>{this.focusOnFilteredBooths(),this.rootStore.searchStore.setFocused(!0)},100)):a.warn("URLFilterManager: no categories found for names:",this.currentFilters.categories)}if(this.currentFilters.poiType){const i=this.rootStore.poiTypeStore.poiTypes.find(s=>s.name.toLowerCase()===this.currentFilters.poiType.toLowerCase());i?(t.selectedPoiTypeFilters=[i],r.setPoiFilterId(`${$.POI_TYPE}${i.id}`),a.log("URLFilterManager applied POI type:",i.name),setTimeout(()=>{this.focusOnFilteredBooths(),this.rootStore.searchStore.setFocused(!0)},100)):a.warn("URLFilterManager: no POI type found for name:",this.currentFilters.poiType)}if(this.currentFilters.poiTypes.length>0){const i=this.currentFilters.poiTypes.map(s=>s?this.rootStore.poiTypeStore.poiTypes.find(o=>o.name.toLowerCase()===s.toLowerCase()):null).filter(s=>s!=null);i.length>0?(t.selectedPoiTypeFilters=i,a.log("URLFilterManager applied POI types:",i.map(s=>s.name)),setTimeout(()=>{this.focusOnFilteredBooths(),this.rootStore.searchStore.setFocused(!0)},100)):(a.warn("URLFilterManager: no POI types found for names:",this.currentFilters.poiTypes),this.currentFilters.poiTypes=[])}this.currentFilters.exhibitors&&this.openExhibitorsList()}updateURLFromFilters(){const{uiState:t}=this.rootStore,e=new URLSearchParams;if(t.selectedCategoryFilters.length>0){const i=t.selectedCategoryFilters.map(o=>o.name.toLowerCase()),s=M(i);s&&e.set(d.CATEGORIES,s)}if(t.selectedPoiTypeFilters.length>0&&t.selectedCategoryFilters.length===0)if(t.selectedPoiTypeFilters.length===1){const i=t.selectedPoiTypeFilters[0].name.toLowerCase();if(i){const s=X(i);s&&e.set(d.POI_TYPE,s)}}else{const i=t.selectedPoiTypeFilters.map(o=>o.name.toLowerCase()),s=M(i);s&&e.set(d.POI_TYPES,s)}this.currentFilters.exhibitors&&t.selectedCategoryFilters.length===0&&t.selectedPoiTypeFilters.length===0&&e.set(d.EXHIBITORS,"true");const r=window.location.pathname+(e.toString()?`?${e.toString()}`:"");window.history.replaceState({},"",r),this.currentFilters={categories:t.selectedCategoryFilters.length>0?t.selectedCategoryFilters.map(i=>i.name):[],poiType:t.selectedPoiTypeFilters.length===1&&t.selectedCategoryFilters.length===0?t.selectedPoiTypeFilters[0].name:null,poiTypes:t.selectedPoiTypeFilters.length>1&&t.selectedCategoryFilters.length===0?t.selectedPoiTypeFilters.map(i=>i.name):[],exhibitors:this.currentFilters.exhibitors}}setCategories(t){this.currentFilters.categories=m(t),this.currentFilters.poiType=null,this.isInitialized&&this.updateURLFromFilters()}setPoiType(t){this.currentFilters.poiType=k(t),this.currentFilters.poiTypes=[],this.currentFilters.categories=[],this.isInitialized&&this.updateURLFromFilters()}setPoiTypes(t){this.currentFilters.poiTypes=m(t),this.currentFilters.poiType=null,this.currentFilters.categories=[],this.isInitialized&&this.updateURLFromFilters()}clearAllFilters(){this.currentFilters={categories:[],poiType:null,poiTypes:[],exhibitors:!1};const{uiState:t}=this.rootStore;t.categoryFilterOpen=!1,this.updateURLFromFilters()}getCurrentFilters(){return{...this.currentFilters}}setupReactions(){F(()=>this.rootStore.uiState.selectedCategoryFilters,t=>{if(this.isInitialized&&t.length>0){const e=m(t.map(r=>r.name));this.setCategories(e)}}),F(()=>this.rootStore.uiState.selectedPoiTypeFilters,t=>{if(this.isInitialized&&t.length>0)if(t.length===1){const e=k(t[0].name);e&&this.setPoiType(e)}else{const e=m(t.map(r=>r.name));this.setPoiTypes(e)}})}validateFilters(t){if(t.categories.length>0&&(t.poiType||t.poiTypes.length>0))return a.warn("Categories and POI types cannot be active simultaneously"),!1;if(t.poiType&&t.poiTypes.length>0)return a.warn("Both single POI type and multiple POI types cannot be active simultaneously"),!1;for(const e of t.categories)if(!this.getCategoryIdByName(e))return a.warn(`Category not found: ${e}`),!1;if(t.poiType&&!this.getPoiTypeIdByName(t.poiType))return a.warn(`POI type not found: ${t.poiType}`),!1;for(const e of t.poiTypes)if(!this.getPoiTypeIdByName(e))return a.warn(`POI type not found: ${e}`),!1;return!0}getCategoryIdByName(t){const e=this.rootStore.categoryStore.categories.find(r=>r.name.toLowerCase()===t.toLowerCase());return e?e.id:null}getPoiTypeIdByName(t){const e=this.rootStore.poiTypeStore.poiTypes.find(r=>r.name.toLowerCase()===t.toLowerCase());return e?e.id:null}focusOnFilteredBooths(){if(!this.rootStore.layerStore.layersLoaded){F(()=>this.rootStore.layerStore.layersLoaded,()=>{this.focusOnFilteredBooths()},{fireImmediately:!1});return}const{uiState:t,exhibitorStore:e,boothStore:r}=this.rootStore;let i=[];if(t.selectedCategoryFilters.length>0){const o=e.exhibitors.filter(c=>t.selectedCategoryFilters.some(p=>c.categories.some(u=>u.id===p.id)));i=r.booths.filter(c=>o.some(p=>p.id===c.exhibitors[0]?.id))}if(t.selectedPoiTypeFilters.length>0){const o=r.booths.filter(c=>t.selectedPoiTypeFilters.some(p=>c.poiTypeId===p.id));i.length>0?i=i.filter(c=>o.some(p=>p.id===c.id)):i=o}const s=i.filter(o=>o.visible);s.length>0?(t.moveToBooths=s,this.rootStore.moveToList(s)):i.length>0&&(this.rootStore.showMap(),this.rootStore.moveToList(i))}openExhibitorsList(){const{uiState:t}=this.rootStore;t.list={type:"exhibitors",text:"",focused:!1},setTimeout(()=>{this.rootStore.searchStore.setFocused(!0)},100),a.log("URLFilterManager opened exhibitors list")}}})();export{H as URLFilterManager};
1
+ import{__esDecorate as l,__runInitializers as y}from"tslib";import{action as h,observable as A,reaction as F}from"mobx";import{PREFIXES as $}from"../store/search-buttons/constants";import a from"../tools/logger";import{decodeString as X,decodeStringArray as M,encodeString as G,encodeStringArray as N,toLowerCaseArray as m,toLowerCaseString as k}from"../utils/urlEncoding";const d={CATEGORIES:"categories",POI_TYPE:"poiType",POI_TYPES:"poiTypes",EXHIBITORS:"exhibitors"};let H=(()=>{let n=[],f,T=[],S=[],P,L=[],I=[],C,_,R,b,w,O,U,x,E,z;return class{static{const t=typeof Symbol=="function"&&Symbol.metadata?Object.create(null):void 0;f=[A],P=[A],C=[h],_=[h],R=[h],b=[h],w=[h],O=[h],U=[h],x=[h],E=[h],z=[h],l(this,null,C,{kind:"method",name:"initialize",static:!1,private:!1,access:{has:e=>"initialize"in e,get:e=>e.initialize},metadata:t},null,n),l(this,null,_,{kind:"method",name:"parseURLFilters",static:!1,private:!1,access:{has:e=>"parseURLFilters"in e,get:e=>e.parseURLFilters},metadata:t},null,n),l(this,null,R,{kind:"method",name:"applyFiltersToStore",static:!1,private:!1,access:{has:e=>"applyFiltersToStore"in e,get:e=>e.applyFiltersToStore},metadata:t},null,n),l(this,null,b,{kind:"method",name:"updateURLFromFilters",static:!1,private:!1,access:{has:e=>"updateURLFromFilters"in e,get:e=>e.updateURLFromFilters},metadata:t},null,n),l(this,null,w,{kind:"method",name:"setCategories",static:!1,private:!1,access:{has:e=>"setCategories"in e,get:e=>e.setCategories},metadata:t},null,n),l(this,null,O,{kind:"method",name:"setPoiType",static:!1,private:!1,access:{has:e=>"setPoiType"in e,get:e=>e.setPoiType},metadata:t},null,n),l(this,null,U,{kind:"method",name:"setPoiTypes",static:!1,private:!1,access:{has:e=>"setPoiTypes"in e,get:e=>e.setPoiTypes},metadata:t},null,n),l(this,null,x,{kind:"method",name:"clearAllFilters",static:!1,private:!1,access:{has:e=>"clearAllFilters"in e,get:e=>e.clearAllFilters},metadata:t},null,n),l(this,null,E,{kind:"method",name:"focusOnFilteredBooths",static:!1,private:!1,access:{has:e=>"focusOnFilteredBooths"in e,get:e=>e.focusOnFilteredBooths},metadata:t},null,n),l(this,null,z,{kind:"method",name:"openExhibitorsList",static:!1,private:!1,access:{has:e=>"openExhibitorsList"in e,get:e=>e.openExhibitorsList},metadata:t},null,n),l(null,null,f,{kind:"field",name:"currentFilters",static:!1,private:!1,access:{has:e=>"currentFilters"in e,get:e=>e.currentFilters,set:(e,r)=>{e.currentFilters=r}},metadata:t},T,S),l(null,null,P,{kind:"field",name:"isInitialized",static:!1,private:!1,access:{has:e=>"isInitialized"in e,get:e=>e.isInitialized,set:(e,r)=>{e.isInitialized=r}},metadata:t},L,I),t&&Object.defineProperty(this,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:t})}rootStore=y(this,n);currentFilters=y(this,T,{categories:[],poiType:null,poiTypes:[],exhibitors:!1});isInitialized=(y(this,S),y(this,L,!1));constructor(t){y(this,I),this.rootStore=t,this.setupReactions()}initialize(){this.parseURLFilters(),this.applyFiltersToStore(),this.isInitialized=!0,a.log("URLFilterManager initialized with filters:",this.currentFilters)}parseURLFilters(){const t=new URLSearchParams(window.location.search),e=t.get(d.CATEGORIES),r=e?M(e):[],i=t.get(d.POI_TYPE),s=i?X(i):null,o=t.get(d.POI_TYPES),c=o?M(o):[],p=t.get(d.EXHIBITORS),u=p==="true"||p==="",v=c.filter(g=>{if(!g)return!1;const B=this.rootStore.poiTypeStore.poiTypes.some(Y=>Y.name.toLowerCase()===g.toLowerCase());return B||a.warn(`POI type not found in data: ${g}`),B});r.length>0&&(s||v.length>0)?(a.warn("URL contains both categories and POI types. Clearing POI types."),this.currentFilters={categories:r,poiType:null,poiTypes:[],exhibitors:u}):this.currentFilters={categories:r,poiType:s,poiTypes:v,exhibitors:u},a.log("URLFilterManager parsed filters:",{categories:r,poiType:s,poiTypes:c,exhibitors:u}),this.validateFilters(this.currentFilters)}applyFiltersToStore(){const{uiState:t,categoryFilterStore:e,searchButtonsStore:r}=this.rootStore;if(this.currentFilters.categories.length>0){const i=this.currentFilters.categories.map(s=>this.rootStore.categoryStore.categories.find(o=>o.name.toLowerCase()===s.toLowerCase())).filter(s=>s!==void 0);i.length>0?(t.selectedCategoryFilters=i,e.state.selectedItems=i.map(s=>({id:s.id,name:s.name})),t.categoryFilterOpen=!0,a.log("URLFilterManager applied categories:",i.map(s=>s.name)),setTimeout(()=>{this.focusOnFilteredBooths(),this.rootStore.searchStore.setFocused(!0)},100)):a.warn("URLFilterManager: no categories found for names:",this.currentFilters.categories)}if(this.currentFilters.poiType){const i=this.rootStore.poiTypeStore.poiTypes.find(s=>s.name.toLowerCase()===this.currentFilters.poiType.toLowerCase());i?(t.selectedPoiTypeFilters=[i],r.setPoiFilterId(`${$.POI_TYPE}${i.id}`),a.log("URLFilterManager applied POI type:",i.name),setTimeout(()=>{this.focusOnFilteredBooths(),this.rootStore.searchStore.setFocused(!0)},100)):a.warn("URLFilterManager: no POI type found for name:",this.currentFilters.poiType)}if(this.currentFilters.poiTypes.length>0){const i=this.currentFilters.poiTypes.map(s=>s?this.rootStore.poiTypeStore.poiTypes.find(o=>o.name.toLowerCase()===s.toLowerCase()):null).filter(s=>s!=null);i.length>0?(t.selectedPoiTypeFilters=i,a.log("URLFilterManager applied POI types:",i.map(s=>s.name)),setTimeout(()=>{this.focusOnFilteredBooths(),this.rootStore.searchStore.setFocused(!0)},100)):(a.warn("URLFilterManager: no POI types found for names:",this.currentFilters.poiTypes),this.currentFilters.poiTypes=[])}this.currentFilters.exhibitors&&this.openExhibitorsList()}updateURLFromFilters(){const{uiState:t}=this.rootStore,e=new URLSearchParams;if(t.selectedCategoryFilters.length>0){const i=t.selectedCategoryFilters.map(o=>o.name.toLowerCase()),s=N(i);s&&e.set(d.CATEGORIES,s)}if(t.selectedPoiTypeFilters.length>0&&t.selectedCategoryFilters.length===0)if(t.selectedPoiTypeFilters.length===1){const i=t.selectedPoiTypeFilters[0].name.toLowerCase();if(i){const s=G(i);s&&e.set(d.POI_TYPE,s)}}else{const i=t.selectedPoiTypeFilters.map(o=>o.name.toLowerCase()),s=N(i);s&&e.set(d.POI_TYPES,s)}this.currentFilters.exhibitors&&t.selectedCategoryFilters.length===0&&t.selectedPoiTypeFilters.length===0&&e.set(d.EXHIBITORS,"true");const r=window.location.pathname+(e.toString()?`?${e.toString()}`:"");window.history.replaceState({},"",r),this.currentFilters={categories:t.selectedCategoryFilters.length>0?t.selectedCategoryFilters.map(i=>i.name):[],poiType:t.selectedPoiTypeFilters.length===1&&t.selectedCategoryFilters.length===0?t.selectedPoiTypeFilters[0].name:null,poiTypes:t.selectedPoiTypeFilters.length>1&&t.selectedCategoryFilters.length===0?t.selectedPoiTypeFilters.map(i=>i.name):[],exhibitors:this.currentFilters.exhibitors}}setCategories(t){this.currentFilters.categories=m(t),this.currentFilters.poiType=null,this.isInitialized&&this.updateURLFromFilters()}setPoiType(t){this.currentFilters.poiType=k(t),this.currentFilters.poiTypes=[],this.currentFilters.categories=[],this.isInitialized&&this.updateURLFromFilters()}setPoiTypes(t){this.currentFilters.poiTypes=m(t),this.currentFilters.poiType=null,this.currentFilters.categories=[],this.isInitialized&&this.updateURLFromFilters()}clearAllFilters(){this.currentFilters={categories:[],poiType:null,poiTypes:[],exhibitors:!1};const{uiState:t}=this.rootStore;t.categoryFilterOpen=!1,this.updateURLFromFilters()}getCurrentFilters(){return{...this.currentFilters}}setupReactions(){F(()=>this.rootStore.uiState.selectedCategoryFilters,t=>{if(this.isInitialized&&t.length>0){const e=m(t.map(r=>r.name));this.setCategories(e)}}),F(()=>this.rootStore.uiState.selectedPoiTypeFilters,t=>{if(this.isInitialized&&t.length>0)if(t.length===1){const e=k(t[0].name);e&&this.setPoiType(e)}else{const e=m(t.map(r=>r.name));this.setPoiTypes(e)}})}validateFilters(t){if(t.categories.length>0&&(t.poiType||t.poiTypes.length>0))return a.warn("Categories and POI types cannot be active simultaneously"),!1;if(t.poiType&&t.poiTypes.length>0)return a.warn("Both single POI type and multiple POI types cannot be active simultaneously"),!1;for(const e of t.categories)if(!this.getCategoryIdByName(e))return a.warn(`Category not found: ${e}`),!1;if(t.poiType&&!this.getPoiTypeIdByName(t.poiType))return a.warn(`POI type not found: ${t.poiType}`),!1;for(const e of t.poiTypes)if(!this.getPoiTypeIdByName(e))return a.warn(`POI type not found: ${e}`),!1;return!0}getCategoryIdByName(t){const e=this.rootStore.categoryStore.categories.find(r=>r.name.toLowerCase()===t.toLowerCase());return e?e.id:null}getPoiTypeIdByName(t){const e=this.rootStore.poiTypeStore.poiTypes.find(r=>r.name.toLowerCase()===t.toLowerCase());return e?e.id:null}focusOnFilteredBooths(){if(!this.rootStore.layerStore.layersLoaded){F(()=>this.rootStore.layerStore.layersLoaded,()=>{this.focusOnFilteredBooths()},{fireImmediately:!1});return}const{uiState:t,exhibitorStore:e,boothStore:r}=this.rootStore;let i=[];if(t.selectedCategoryFilters.length>0){const o=e.exhibitors.filter(c=>t.selectedCategoryFilters.some(p=>c.categories.some(u=>u.id===p.id)));i=r.booths.filter(c=>o.some(p=>p.id===c.exhibitors[0]?.id))}if(t.selectedPoiTypeFilters.length>0){const o=r.booths.filter(c=>t.selectedPoiTypeFilters.some(p=>c.poiTypeId===p.id));i.length>0?i=i.filter(c=>o.some(p=>p.id===c.id)):i=o}const s=i.filter(o=>o.visible);s.length>0?(t.moveToBooths=s,this.rootStore.moveToList(s)):i.length>0&&(this.rootStore.showMap(),this.rootStore.moveToList(i))}openExhibitorsList(){const{uiState:t}=this.rootStore;t.list={type:"exhibitors",text:"",focused:!1},setTimeout(()=>{this.rootStore.searchStore.setFocused(!0)},100),a.log("URLFilterManager opened exhibitors list")}}})();export{H as URLFilterManager};
@@ -1,5 +1,5 @@
1
1
  import type RootStore from "./RootStore";
2
- import type { FilterItem, FilterState, FilterStore } from "./types";
2
+ import { type FilterItem, type FilterState, type FilterStore } from "./types";
3
3
  export default abstract class BaseFilterStore implements FilterStore {
4
4
  protected readonly rootStore: RootStore;
5
5
  state: FilterState;
@@ -1,2 +1,2 @@
1
- import{__esDecorate as r,__runInitializers as b}from"tslib";import{computed as s}from"mobx";import u from"copy-to-clipboard";import{t as m}from"../utils/i18n";let p=(()=>{let a=[],i,l,k,h;return class{static{const o=typeof Symbol=="function"&&Symbol.metadata?Object.create(null):void 0;i=[s],l=[s],k=[s],h=[s],r(this,null,i,{kind:"getter",name:"bookmarkedBooths",static:!1,private:!1,access:{has:t=>"bookmarkedBooths"in t,get:t=>t.bookmarkedBooths},metadata:o},null,a),r(this,null,l,{kind:"getter",name:"total",static:!1,private:!1,access:{has:t=>"total"in t,get:t=>t.total},metadata:o},null,a),r(this,null,k,{kind:"getter",name:"hasBookmarks",static:!1,private:!1,access:{has:t=>"hasBookmarks"in t,get:t=>t.hasBookmarks},metadata:o},null,a),r(this,null,h,{kind:"getter",name:"hasRoutableBookmarks",static:!1,private:!1,access:{has:t=>"hasRoutableBookmarks"in t,get:t=>t.hasRoutableBookmarks},metadata:o},null,a),o&&Object.defineProperty(this,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:o})}rootStore=b(this,a);_share;constructor(o){this.rootStore=o,this._share=this.share.bind(this)}get bookmarkedBooths(){return this.rootStore.boothStore.booths.filter(o=>o.exhibitors.length===0&&o.bookmarkedDirectly)}get total(){return this.rootStore.exhibitorStore.bookmarked.length+this.rootStore.eventStore.bookmarked.length+this.rootStore.speakerStore.bookmarked.length+this.bookmarkedBooths.length}get hasBookmarks(){return this.total>0}get hasRoutableBookmarks(){return this.rootStore.exhibitorStore.bookmarked.length>0||this.bookmarkedBooths.length>0}share(){const{exhibitorStore:o,eventStore:t,speakerStore:d}=this.rootStore,n=window.location,c=[...o.bookmarked.map(e=>e.id),...t.bookmarked.map(e=>e.id),...d.bookmarked.map(e=>e.id),...this.bookmarkedBooths.map(e=>e.id)];u(`${n.protocol}//${n.host}/?b=`+c.join("|")),alert(m("Link copied to clipboard")+`.
1
+ import{__esDecorate as r,__runInitializers as b}from"tslib";import u from"copy-to-clipboard";import{computed as s}from"mobx";import{t as m}from"../utils/i18n";let p=(()=>{let a=[],i,l,k,h;return class{static{const o=typeof Symbol=="function"&&Symbol.metadata?Object.create(null):void 0;i=[s],l=[s],k=[s],h=[s],r(this,null,i,{kind:"getter",name:"bookmarkedBooths",static:!1,private:!1,access:{has:t=>"bookmarkedBooths"in t,get:t=>t.bookmarkedBooths},metadata:o},null,a),r(this,null,l,{kind:"getter",name:"total",static:!1,private:!1,access:{has:t=>"total"in t,get:t=>t.total},metadata:o},null,a),r(this,null,k,{kind:"getter",name:"hasBookmarks",static:!1,private:!1,access:{has:t=>"hasBookmarks"in t,get:t=>t.hasBookmarks},metadata:o},null,a),r(this,null,h,{kind:"getter",name:"hasRoutableBookmarks",static:!1,private:!1,access:{has:t=>"hasRoutableBookmarks"in t,get:t=>t.hasRoutableBookmarks},metadata:o},null,a),o&&Object.defineProperty(this,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:o})}rootStore=b(this,a);_share;constructor(o){this.rootStore=o,this._share=this.share.bind(this)}get bookmarkedBooths(){return this.rootStore.boothStore.booths.filter(o=>o.exhibitors.length===0&&o.bookmarkedDirectly)}get total(){return this.rootStore.exhibitorStore.bookmarked.length+this.rootStore.eventStore.bookmarked.length+this.rootStore.speakerStore.bookmarked.length+this.bookmarkedBooths.length}get hasBookmarks(){return this.total>0}get hasRoutableBookmarks(){return this.rootStore.exhibitorStore.bookmarked.length>0||this.bookmarkedBooths.length>0}share(){const{exhibitorStore:o,eventStore:t,speakerStore:d}=this.rootStore,n=window.location,c=[...o.bookmarked.map(e=>e.id),...t.bookmarked.map(e=>e.id),...d.bookmarked.map(e=>e.id),...this.bookmarkedBooths.map(e=>e.id)];u(`${n.protocol}//${n.host}/?b=`+c.join("|")),alert(m("Link copied to clipboard")+`.
2
2
  `+m("Open it on another device to import bookmarks")+".")}}})();export default p;
@@ -1,7 +1,7 @@
1
- import { EventItem } from "./EventStore";
1
+ import { ImageDef } from "@expofp/renderer";
2
2
  import Rect from "../core/Rect";
3
3
  import { PathInfo, RawPoiType, RawRegularBooth, ShapeBgDef } from "../data/Data";
4
- import { ImageDef } from "@expofp/renderer";
4
+ import { EventItem } from "./EventStore";
5
5
  import { Exhibitor } from "./ExhibitorStore";
6
6
  import { Layer } from "./LayerStore";
7
7
  import RootStore from "./RootStore";
@@ -1 +1 @@
1
- import{__esDecorate as s,__runInitializers as l}from"tslib";import{lineLength as M,lineRectangleIntersections as C,pointInsideRectangle as L,Rect as N}from"simple-geometry";import{action as R,computed as i,observable as S}from"mobx";import E from"../tools/settings";import{uiState as j}from"./index";let O=(()=>{let o=[],d,c=[],m=[],u,b=[],g=[],k,p,y,f,_,v,B;return class{static{const t=typeof Symbol=="function"&&Symbol.metadata?Object.create(null):void 0;d=[S],u=[S],k=[i({keepAlive:!0})],p=[i({keepAlive:!0})],y=[i({keepAlive:!0})],f=[i({keepAlive:!0})],_=[i({keepAlive:!0})],v=[i],B=[R],s(this,null,k,{kind:"getter",name:"boothById",static:!1,private:!1,access:{has:e=>"boothById"in e,get:e=>e.boothById},metadata:t},null,o),s(this,null,p,{kind:"getter",name:"boothByExternalId",static:!1,private:!1,access:{has:e=>"boothByExternalId"in e,get:e=>e.boothByExternalId},metadata:t},null,o),s(this,null,y,{kind:"getter",name:"boothByName",static:!1,private:!1,access:{has:e=>"boothByName"in e,get:e=>e.boothByName},metadata:t},null,o),s(this,null,f,{kind:"getter",name:"boothBySlug",static:!1,private:!1,access:{has:e=>"boothBySlug"in e,get:e=>e.boothBySlug},metadata:t},null,o),s(this,null,_,{kind:"getter",name:"borderWidth",static:!1,private:!1,access:{has:e=>"borderWidth"in e,get:e=>e.borderWidth},metadata:t},null,o),s(this,null,v,{kind:"getter",name:"bookmarked",static:!1,private:!1,access:{has:e=>"bookmarked"in e,get:e=>e.bookmarked},metadata:t},null,o),s(this,null,B,{kind:"method",name:"replaceBookmarked",static:!1,private:!1,access:{has:e=>"replaceBookmarked"in e,get:e=>e.replaceBookmarked},metadata:t},null,o),s(null,null,d,{kind:"field",name:"booths",static:!1,private:!1,access:{has:e=>"booths"in e,get:e=>e.booths,set:(e,r)=>{e.booths=r}},metadata:t},c,m),s(null,null,u,{kind:"field",name:"highlightedByExternalIds",static:!1,private:!1,access:{has:e=>"highlightedByExternalIds"in e,get:e=>e.highlightedByExternalIds,set:(e,r)=>{e.highlightedByExternalIds=r}},metadata:t},b,g),t&&Object.defineProperty(this,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:t})}rootStore=l(this,o);booths=l(this,c,[]);highlightedByExternalIds=(l(this,m),l(this,b,[]));get boothById(){return new Map(this.booths.map(t=>[t.id,t]))}get boothByExternalId(){return new Map(this.booths.map(t=>[t.externalId,t]))}get boothByName(){return new Map(this.booths.map(t=>[t.name.toLowerCase(),t]))}get boothBySlug(){return new Map(this.booths.map(t=>[t.slug,t]))}get borderWidth(){if(E.boothBorderWidth)return E.boothBorderWidth;if(E.EXPO==="groomexpo")return .4;const t=this.booths.filter(e=>e.rect).map(e=>e.rect.w+e.rect.h);return t.reduce((e,r)=>e+r,0)/t.length/80}constructor(t){l(this,g),this.rootStore=t}get bookmarked(){return this.booths.filter(t=>t.bookmarkedDirectly)}getNearestBooth(t){var e=null;const x=this.booths.map(a=>{const{x1:n,x2:I,y1:h,y2:D}=a.rect,A=Math.abs(I-n),z=Math.abs(D-h);return{lineLength:M(t,C({p0:t,p1:{x:a.rect.cx,y:a.rect.cy}},new N({x:n,y:h},{x:n+A,y:h},{x:n+A,y:h+z},{x:n,y:h+z}))[0]),name:a.name}}).sort((a,n)=>a.lineLength-n.lineLength)[0];return e=this.booths.find(a=>a.name===x.name),e}getBoothAtPoint(t){return this.booths.find(e=>{const{x1:r,x2:x,y1:a,y2:n}=e.rect,I=Math.abs(x-r),h=Math.abs(n-a),D=new N({x:r,y:a},{x:r+I,y:a},{x:r+I,y:a+h},{x:r,y:a+h});return L(t,D)})}findBooth(t){return this.boothByExternalId.get(t)||this.boothByName.get(t.toLowerCase())||this.boothBySlug.get(t)}replaceBookmarked(t){const e=(t||[]).map(a=>this.boothById.get(a)).filter(a=>a),r=new Set(e),x=this.bookmarked.filter(a=>!r.has(a));for(const a of x)a.bookmarkedDirectly=!1;for(const a of e)a.bookmarkedDirectly=!0}}})();export default O;let w=(()=>{let o=[],d,c=[],m=[],u,b=[],g=[],k,p,y,f,_,v,B;return class{static{const t=typeof Symbol=="function"&&Symbol.metadata?Object.create(null):void 0;d=[S],u=[S],k=[i({keepAlive:!0})],p=[i({keepAlive:!0})],y=[i({keepAlive:!0})],f=[i({keepAlive:!0})],_=[i({keepAlive:!0})],v=[i({keepAlive:!0})],B=[i({keepAlive:!0})],s(this,null,k,{kind:"getter",name:"bookmarked",static:!1,private:!1,access:{has:e=>"bookmarked"in e,get:e=>e.bookmarked},metadata:t},null,o),s(this,null,p,{kind:"getter",name:"uiState",static:!1,private:!1,access:{has:e=>"uiState"in e,get:e=>e.uiState},metadata:t},null,o),s(this,null,y,{kind:"getter",name:"fullName",static:!1,private:!1,access:{has:e=>"fullName"in e,get:e=>e.fullName},metadata:t},null,o),s(this,null,f,{kind:"getter",name:"visible",static:!1,private:!1,access:{has:e=>"visible"in e,get:e=>e.visible},metadata:t},null,o),s(this,null,_,{kind:"getter",name:"hover",static:!1,private:!1,access:{has:e=>"hover"in e,get:e=>e.hover},metadata:t},null,o),s(this,null,v,{kind:"getter",name:"selected",static:!1,private:!1,access:{has:e=>"selected"in e,get:e=>e.selected},metadata:t},null,o),s(this,null,B,{kind:"getter",name:"skipDim",static:!1,private:!1,access:{has:e=>"skipDim"in e,get:e=>e.skipDim},metadata:t},null,o),s(null,null,d,{kind:"field",name:"layer",static:!1,private:!1,access:{has:e=>"layer"in e,get:e=>e.layer,set:(e,r)=>{e.layer=r}},metadata:t},c,m),s(null,null,u,{kind:"field",name:"bookmarkedDirectly",static:!1,private:!1,access:{has:e=>"bookmarkedDirectly"in e,get:e=>e.bookmarkedDirectly,set:(e,r)=>{e.bookmarkedDirectly=r}},metadata:t},b,g),t&&Object.defineProperty(this,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:t})}store=l(this,o);id;name;externalId;title;rect;borderWidth;borderColor;noLabels;rotate;paths;pathsWithRect;slug;error;description;exhibitors;labelColor;schedule;poiTypeId;poiType;poiIcon;meta;layer=l(this,c,void 0);bookmarkedDirectly=(l(this,m),l(this,b,!1));get bookmarked(){return j.disableBookmarked?!1:this.schedule?.some(t=>t.bookmarked)?!0:this.exhibitors.length>0?!!this.exhibitors.find(t=>t.bookmarked):this.bookmarkedDirectly}get uiState(){return this.store.rootStore.uiState}get fullName(){const t=this.meta?Object.entries(this.meta).filter(([e])=>!e.startsWith("_")).map(([e,r])=>`${e} ${r}`).join(" "):"";return`${this.name} ${t}`.replace(/\s+/g," ").trim()}get visible(){return this.layer?.visible??!0}get hover(){return this.uiState.hoveredBooths.has(this)}get selected(){return this.uiState.selectedBooths.has(this)}get skipDim(){return this.uiState.highlightedBooths.has(this.id.toString())}constructor(){l(this,g)}}})();export{w as BoothBase};export class RegularBooth extends w{buyUrl;reserveUrl;type;status;price;entity={type:"booth",variant:"regular"};size;availColor;soldColor;holdColor;onHold;reserved;shapes}export class SpecialBooth extends w{color;shapes;entity={type:"booth",variant:"special"}}
1
+ import{__esDecorate as s,__runInitializers as l}from"tslib";import{action as M,computed as i,observable as S}from"mobx";import{lineLength as C,lineRectangleIntersections as L,pointInsideRectangle as R,Rect as N}from"simple-geometry";import E from"../tools/settings";import{uiState as j}from"./index";let O=(()=>{let o=[],d,c=[],m=[],u,b=[],g=[],k,p,y,f,_,v,B;return class{static{const t=typeof Symbol=="function"&&Symbol.metadata?Object.create(null):void 0;d=[S],u=[S],k=[i({keepAlive:!0})],p=[i({keepAlive:!0})],y=[i({keepAlive:!0})],f=[i({keepAlive:!0})],_=[i({keepAlive:!0})],v=[i],B=[M],s(this,null,k,{kind:"getter",name:"boothById",static:!1,private:!1,access:{has:e=>"boothById"in e,get:e=>e.boothById},metadata:t},null,o),s(this,null,p,{kind:"getter",name:"boothByExternalId",static:!1,private:!1,access:{has:e=>"boothByExternalId"in e,get:e=>e.boothByExternalId},metadata:t},null,o),s(this,null,y,{kind:"getter",name:"boothByName",static:!1,private:!1,access:{has:e=>"boothByName"in e,get:e=>e.boothByName},metadata:t},null,o),s(this,null,f,{kind:"getter",name:"boothBySlug",static:!1,private:!1,access:{has:e=>"boothBySlug"in e,get:e=>e.boothBySlug},metadata:t},null,o),s(this,null,_,{kind:"getter",name:"borderWidth",static:!1,private:!1,access:{has:e=>"borderWidth"in e,get:e=>e.borderWidth},metadata:t},null,o),s(this,null,v,{kind:"getter",name:"bookmarked",static:!1,private:!1,access:{has:e=>"bookmarked"in e,get:e=>e.bookmarked},metadata:t},null,o),s(this,null,B,{kind:"method",name:"replaceBookmarked",static:!1,private:!1,access:{has:e=>"replaceBookmarked"in e,get:e=>e.replaceBookmarked},metadata:t},null,o),s(null,null,d,{kind:"field",name:"booths",static:!1,private:!1,access:{has:e=>"booths"in e,get:e=>e.booths,set:(e,r)=>{e.booths=r}},metadata:t},c,m),s(null,null,u,{kind:"field",name:"highlightedByExternalIds",static:!1,private:!1,access:{has:e=>"highlightedByExternalIds"in e,get:e=>e.highlightedByExternalIds,set:(e,r)=>{e.highlightedByExternalIds=r}},metadata:t},b,g),t&&Object.defineProperty(this,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:t})}rootStore=l(this,o);booths=l(this,c,[]);highlightedByExternalIds=(l(this,m),l(this,b,[]));get boothById(){return new Map(this.booths.map(t=>[t.id,t]))}get boothByExternalId(){return new Map(this.booths.map(t=>[t.externalId,t]))}get boothByName(){return new Map(this.booths.map(t=>[t.name.toLowerCase(),t]))}get boothBySlug(){return new Map(this.booths.map(t=>[t.slug,t]))}get borderWidth(){if(E.boothBorderWidth)return E.boothBorderWidth;if(E.EXPO==="groomexpo")return .4;const t=this.booths.filter(e=>e.rect).map(e=>e.rect.w+e.rect.h);return t.reduce((e,r)=>e+r,0)/t.length/80}constructor(t){l(this,g),this.rootStore=t}get bookmarked(){return this.booths.filter(t=>t.bookmarkedDirectly)}getNearestBooth(t){var e=null;const x=this.booths.map(a=>{const{x1:n,x2:I,y1:h,y2:D}=a.rect,A=Math.abs(I-n),z=Math.abs(D-h);return{lineLength:C(t,L({p0:t,p1:{x:a.rect.cx,y:a.rect.cy}},new N({x:n,y:h},{x:n+A,y:h},{x:n+A,y:h+z},{x:n,y:h+z}))[0]),name:a.name}}).sort((a,n)=>a.lineLength-n.lineLength)[0];return e=this.booths.find(a=>a.name===x.name),e}getBoothAtPoint(t){return this.booths.find(e=>{const{x1:r,x2:x,y1:a,y2:n}=e.rect,I=Math.abs(x-r),h=Math.abs(n-a),D=new N({x:r,y:a},{x:r+I,y:a},{x:r+I,y:a+h},{x:r,y:a+h});return R(t,D)})}findBooth(t){return this.boothByExternalId.get(t)||this.boothByName.get(t.toLowerCase())||this.boothBySlug.get(t)}replaceBookmarked(t){const e=(t||[]).map(a=>this.boothById.get(a)).filter(a=>a),r=new Set(e),x=this.bookmarked.filter(a=>!r.has(a));for(const a of x)a.bookmarkedDirectly=!1;for(const a of e)a.bookmarkedDirectly=!0}}})();export default O;let w=(()=>{let o=[],d,c=[],m=[],u,b=[],g=[],k,p,y,f,_,v,B;return class{static{const t=typeof Symbol=="function"&&Symbol.metadata?Object.create(null):void 0;d=[S],u=[S],k=[i({keepAlive:!0})],p=[i({keepAlive:!0})],y=[i({keepAlive:!0})],f=[i({keepAlive:!0})],_=[i({keepAlive:!0})],v=[i({keepAlive:!0})],B=[i({keepAlive:!0})],s(this,null,k,{kind:"getter",name:"bookmarked",static:!1,private:!1,access:{has:e=>"bookmarked"in e,get:e=>e.bookmarked},metadata:t},null,o),s(this,null,p,{kind:"getter",name:"uiState",static:!1,private:!1,access:{has:e=>"uiState"in e,get:e=>e.uiState},metadata:t},null,o),s(this,null,y,{kind:"getter",name:"fullName",static:!1,private:!1,access:{has:e=>"fullName"in e,get:e=>e.fullName},metadata:t},null,o),s(this,null,f,{kind:"getter",name:"visible",static:!1,private:!1,access:{has:e=>"visible"in e,get:e=>e.visible},metadata:t},null,o),s(this,null,_,{kind:"getter",name:"hover",static:!1,private:!1,access:{has:e=>"hover"in e,get:e=>e.hover},metadata:t},null,o),s(this,null,v,{kind:"getter",name:"selected",static:!1,private:!1,access:{has:e=>"selected"in e,get:e=>e.selected},metadata:t},null,o),s(this,null,B,{kind:"getter",name:"skipDim",static:!1,private:!1,access:{has:e=>"skipDim"in e,get:e=>e.skipDim},metadata:t},null,o),s(null,null,d,{kind:"field",name:"layer",static:!1,private:!1,access:{has:e=>"layer"in e,get:e=>e.layer,set:(e,r)=>{e.layer=r}},metadata:t},c,m),s(null,null,u,{kind:"field",name:"bookmarkedDirectly",static:!1,private:!1,access:{has:e=>"bookmarkedDirectly"in e,get:e=>e.bookmarkedDirectly,set:(e,r)=>{e.bookmarkedDirectly=r}},metadata:t},b,g),t&&Object.defineProperty(this,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:t})}store=l(this,o);id;name;externalId;title;rect;borderWidth;borderColor;noLabels;rotate;paths;pathsWithRect;slug;error;description;exhibitors;labelColor;schedule;poiTypeId;poiType;poiIcon;meta;layer=l(this,c,void 0);bookmarkedDirectly=(l(this,m),l(this,b,!1));get bookmarked(){return j.disableBookmarked?!1:this.schedule?.some(t=>t.bookmarked)?!0:this.exhibitors.length>0?!!this.exhibitors.find(t=>t.bookmarked):this.bookmarkedDirectly}get uiState(){return this.store.rootStore.uiState}get fullName(){const t=this.meta?Object.entries(this.meta).filter(([e])=>!e.startsWith("_")).map(([e,r])=>`${e} ${r}`).join(" "):"";return`${this.name} ${t}`.replace(/\s+/g," ").trim()}get visible(){return this.layer?.visible??!0}get hover(){return this.uiState.hoveredBooths.has(this)}get selected(){return this.uiState.selectedBooths.has(this)}get skipDim(){return this.uiState.highlightedBooths.has(this.id.toString())}constructor(){l(this,g)}}})();export{w as BoothBase};export class RegularBooth extends w{buyUrl;reserveUrl;type;status;price;entity={type:"booth",variant:"regular"};size;availColor;soldColor;holdColor;onHold;reserved;shapes}export class SpecialBooth extends w{color;shapes;entity={type:"booth",variant:"special"}}
@@ -1,6 +1,6 @@
1
- import type { Exhibitor } from "./ExhibitorStore";
2
1
  import BaseFilterStore from "./BaseFilterStore";
3
- import type { FilterItem } from "./types";
2
+ import { type Exhibitor } from "./ExhibitorStore";
3
+ import { type FilterItem } from "./types";
4
4
  export default class CategoryFilterStore extends BaseFilterStore {
5
5
  get filteredExhibitors(): Exhibitor[];
6
6
  get filteredBooths(): import("./BoothStore").Booth[];
@@ -1 +1 @@
1
- import{__esDecorate as i,__runInitializers as c}from"tslib";import{computed as n,action as m}from"mobx";import u from"./BaseFilterStore";let S=(()=>{let s=u,o=[],a,l,h;return class extends s{static{const e=typeof Symbol=="function"&&Symbol.metadata?Object.create(s[Symbol.metadata]??null):void 0;a=[n],l=[n],h=[m],i(this,null,a,{kind:"getter",name:"filteredExhibitors",static:!1,private:!1,access:{has:t=>"filteredExhibitors"in t,get:t=>t.filteredExhibitors},metadata:e},null,o),i(this,null,l,{kind:"getter",name:"filteredBooths",static:!1,private:!1,access:{has:t=>"filteredBooths"in t,get:t=>t.filteredBooths},metadata:e},null,o),i(this,null,h,{kind:"method",name:"resetFilter",static:!1,private:!1,access:{has:t=>"resetFilter"in t,get:t=>t.resetFilter},metadata:e},null,o),e&&Object.defineProperty(this,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e})}get filteredExhibitors(){return this.state.selectedItems.length===0?this.rootStore.exhibitorStore.exhibitors:this.rootStore.exhibitorStore.exhibitors.filter(e=>this.state.selectedItems.some(t=>e.categories.some(r=>r.id===t.id)))}get filteredBooths(){return this.rootStore.boothStore.booths.filter(e=>this.filteredExhibitors.some(t=>t.id===e.exhibitors[0]?.id))}get publicRootStore(){return this.rootStore}updateUIState(){this.rootStore.uiState.menu=!1;const e=this.state.selectedItems.map(r=>this.rootStore.categoryStore.categories.find(d=>d.id===r.id)).filter(Boolean);this.rootStore.uiState.selectedCategoryFilters=e,this.rootStore.uiState.categoryFilterOpen=!0,this.rootStore.searchStore.setFocused(!0),this.rootStore.moveToList(),this.rootStore.showMap();const t=e.map(r=>r.name);this.rootStore.urlFilterManager.setCategories(t)}getFilteredItems(){return this.rootStore.exhibitorStore.exhibitors.map(e=>({id:e.id,name:e.name}))}getMatchingExhibitorsCount(){return this.state.pendingItems.length===0?this.rootStore.exhibitorStore.exhibitors.length:this.rootStore.exhibitorStore.exhibitors.filter(e=>e.categories.some(t=>this.state.pendingItems.some(r=>r.id===t.id))).length}resetFilter(){this.state.pendingItems=[],this.state.selectedItems=[],this.rootStore.uiState.selectedCategoryFilters=[],this.rootStore.uiState.categoryFilterOpen=!1,this.rootStore.uiState.list={type:"search",text:"",focused:!1},this.rootStore.urlFilterManager.setCategories([])}constructor(){super(...arguments),c(this,o)}}})();export default S;
1
+ import{__esDecorate as i,__runInitializers as c}from"tslib";import{action as m,computed as n}from"mobx";import u from"./BaseFilterStore";let S=(()=>{let s=u,o=[],a,l,h;return class extends s{static{const e=typeof Symbol=="function"&&Symbol.metadata?Object.create(s[Symbol.metadata]??null):void 0;a=[n],l=[n],h=[m],i(this,null,a,{kind:"getter",name:"filteredExhibitors",static:!1,private:!1,access:{has:t=>"filteredExhibitors"in t,get:t=>t.filteredExhibitors},metadata:e},null,o),i(this,null,l,{kind:"getter",name:"filteredBooths",static:!1,private:!1,access:{has:t=>"filteredBooths"in t,get:t=>t.filteredBooths},metadata:e},null,o),i(this,null,h,{kind:"method",name:"resetFilter",static:!1,private:!1,access:{has:t=>"resetFilter"in t,get:t=>t.resetFilter},metadata:e},null,o),e&&Object.defineProperty(this,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e})}get filteredExhibitors(){return this.state.selectedItems.length===0?this.rootStore.exhibitorStore.exhibitors:this.rootStore.exhibitorStore.exhibitors.filter(e=>this.state.selectedItems.some(t=>e.categories.some(r=>r.id===t.id)))}get filteredBooths(){return this.rootStore.boothStore.booths.filter(e=>this.filteredExhibitors.some(t=>t.id===e.exhibitors[0]?.id))}get publicRootStore(){return this.rootStore}updateUIState(){this.rootStore.uiState.menu=!1;const e=this.state.selectedItems.map(r=>this.rootStore.categoryStore.categories.find(d=>d.id===r.id)).filter(Boolean);this.rootStore.uiState.selectedCategoryFilters=e,this.rootStore.uiState.categoryFilterOpen=!0,this.rootStore.searchStore.setFocused(!0),this.rootStore.moveToList(),this.rootStore.showMap();const t=e.map(r=>r.name);this.rootStore.urlFilterManager.setCategories(t)}getFilteredItems(){return this.rootStore.exhibitorStore.exhibitors.map(e=>({id:e.id,name:e.name}))}getMatchingExhibitorsCount(){return this.state.pendingItems.length===0?this.rootStore.exhibitorStore.exhibitors.length:this.rootStore.exhibitorStore.exhibitors.filter(e=>e.categories.some(t=>this.state.pendingItems.some(r=>r.id===t.id))).length}resetFilter(){this.state.pendingItems=[],this.state.selectedItems=[],this.rootStore.uiState.selectedCategoryFilters=[],this.rootStore.uiState.categoryFilterOpen=!1,this.rootStore.uiState.list={type:"search",text:"",focused:!1},this.rootStore.urlFilterManager.setCategories([])}constructor(){super(...arguments),c(this,o)}}})();export default S;
@@ -1,5 +1,5 @@
1
- import RootStore from "./RootStore";
2
1
  import { Exhibitor } from "./ExhibitorStore";
2
+ import RootStore from "./RootStore";
3
3
  export default class CategoryStore {
4
4
  private readonly rootStore;
5
5
  readonly categories: Category[];
@@ -1,7 +1,7 @@
1
- import { EventItem } from "./EventStore";
2
1
  import { MarketMaterial, RawExhibitor } from "../data/Data";
3
2
  import { Booth } from "./BoothStore";
4
3
  import { Category } from "./CategoryStore";
4
+ import { EventItem } from "./EventStore";
5
5
  import RootStore from "./RootStore";
6
6
  export default class ExhibitorStore {
7
7
  private readonly rootStore;
@@ -1 +1 @@
1
- import{__esDecorate as o,__runInitializers as r}from"tslib";import{action as z,computed as g,observable as h}from"mobx";import C from"../tools/settings";import w from"../utils/is-debug";import{buildRebookingUrl as q,getRebookingToken as A}from"../tools/rebookingUrl";let T=(()=>{let s=[],c,u=[],b=[],k,m=[],f=[],_,v=[],S=[],p,x,y,B,I,R,d,i,l,N;return class{static{const t=typeof Symbol=="function"&&Symbol.metadata?Object.create(null):void 0;c=[h],k=[h],_=[h],p=[g({keepAlive:!0})],x=[g({keepAlive:!0})],y=[g({keepAlive:!0})],B=[g({keepAlive:!0})],I=[g],R=[g],d=[g({keepAlive:!0})],i=[z],l=[z],N=[z],o(this,null,p,{kind:"getter",name:"exhibitorById",static:!1,private:!1,access:{has:e=>"exhibitorById"in e,get:e=>e.exhibitorById},metadata:t},null,s),o(this,null,x,{kind:"getter",name:"exhibitorByExternalId",static:!1,private:!1,access:{has:e=>"exhibitorByExternalId"in e,get:e=>e.exhibitorByExternalId},metadata:t},null,s),o(this,null,y,{kind:"getter",name:"exhibitorByName",static:!1,private:!1,access:{has:e=>"exhibitorByName"in e,get:e=>e.exhibitorByName},metadata:t},null,s),o(this,null,B,{kind:"getter",name:"exhibitorBySlug",static:!1,private:!1,access:{has:e=>"exhibitorBySlug"in e,get:e=>e.exhibitorBySlug},metadata:t},null,s),o(this,null,I,{kind:"getter",name:"bookmarked",static:!1,private:!1,access:{has:e=>"bookmarked"in e,get:e=>e.bookmarked},metadata:t},null,s),o(this,null,R,{kind:"getter",name:"visited",static:!1,private:!1,access:{has:e=>"visited"in e,get:e=>e.visited},metadata:t},null,s),o(this,null,d,{kind:"getter",name:"advertised",static:!1,private:!1,access:{has:e=>"advertised"in e,get:e=>e.advertised},metadata:t},null,s),o(this,null,i,{kind:"method",name:"replaceBookmarked",static:!1,private:!1,access:{has:e=>"replaceBookmarked"in e,get:e=>e.replaceBookmarked},metadata:t},null,s),o(this,null,l,{kind:"method",name:"replaceVisited",static:!1,private:!1,access:{has:e=>"replaceVisited"in e,get:e=>e.replaceVisited},metadata:t},null,s),o(this,null,N,{kind:"method",name:"setRebookingState",static:!1,private:!1,access:{has:e=>"setRebookingState"in e,get:e=>e.setRebookingState},metadata:t},null,s),o(null,null,c,{kind:"field",name:"highlightedByExternalIds",static:!1,private:!1,access:{has:e=>"highlightedByExternalIds"in e,get:e=>e.highlightedByExternalIds,set:(e,n)=>{e.highlightedByExternalIds=n}},metadata:t},u,b),o(null,null,k,{kind:"field",name:"rebookingStateChangeRequested",static:!1,private:!1,access:{has:e=>"rebookingStateChangeRequested"in e,get:e=>e.rebookingStateChangeRequested,set:(e,n)=>{e.rebookingStateChangeRequested=n}},metadata:t},m,f),o(null,null,_,{kind:"field",name:"rebookingStateSaved",static:!1,private:!1,access:{has:e=>"rebookingStateSaved"in e,get:e=>e.rebookingStateSaved,set:(e,n)=>{e.rebookingStateSaved=n}},metadata:t},v,S),t&&Object.defineProperty(this,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:t})}rootStore=r(this,s);exhibitors=[];timeout;constructor(t){r(this,S),this.rootStore=t}highlightedByExternalIds=r(this,u,[]);rebookingStateChangeRequested=(r(this,b),r(this,m,!1));rebookingStateSaved=(r(this,f),r(this,v,!1));get exhibitorById(){return new Map(this.exhibitors.map(t=>[t.id,t]))}get exhibitorByExternalId(){return new Map(this.exhibitors.map(t=>[t.externalId,t]))}get exhibitorByName(){return new Map(this.exhibitors.map(t=>[t.name.toLowerCase(),t]))}get exhibitorBySlug(){return new Map(this.exhibitors.map(t=>[t.slug,t]))}get bookmarked(){return this.exhibitors.filter(t=>t.bookmarked)}get visited(){return this.exhibitors.filter(t=>t.visited)}get advertised(){return this.exhibitors.filter(t=>t.advertise&&t.logo)}replaceBookmarked(t){if(!Array.isArray(t))return;const e=(t||[]).map(a=>this.exhibitorById.get(a)).filter(a=>a),n=new Set(e),E=this.bookmarked.filter(a=>!n.has(a));for(const a of E)a.bookmarked=!1;for(const a of e)a.bookmarked=!0}replaceVisited(t){if(!Array.isArray(t))return;const e=(t||[]).map(a=>this.exhibitorById.get(a)).filter(a=>a),n=new Set(e),E=this.visited.filter(a=>!n.has(a));for(const a of E)a.visited=!1;for(const a of e)a.visited=!0}setRebookingState(t,e,n){clearTimeout(this.timeout),this.rebookingStateChangeRequested=!1,t.rebookingState=e,t.rebookingNote=n;const E=q("api/v1/set-rebooking-state",{rt:A(),expoKey:this.rootStore.fp.eventId});fetch(E,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({expoKey:C.EXPO,exhibitorId:t.id,rebookingState:e,rebookingNote:n})}).then(a=>{a.ok&&(this.rebookingStateSaved=!0),!a.ok&&!w&&(t.rebookingState=0,this.rebookingStateSaved=!1)}).catch(()=>{t.rebookingState=0,this.rebookingStateSaved=!1}).finally(()=>{this.rebookingStateChangeRequested=!0,this.timeout=setTimeout(()=>{this.rebookingStateChangeRequested=!1},5e3)})}findExhibitor(t){return this.exhibitorByExternalId.get(t)||this.exhibitorByName.get(t.toLowerCase())||this.exhibitorBySlug.get(t)}}})();export default T;let O=(()=>{let s,c=[],u=[],b,k=[],m=[],f,_=[],v=[],S,p=[],x=[],y,B=[],I=[];return class{static{const d=typeof Symbol=="function"&&Symbol.metadata?Object.create(null):void 0;s=[h],b=[h],f=[h],S=[h],y=[h],o(null,null,s,{kind:"field",name:"featured",static:!1,private:!1,access:{has:i=>"featured"in i,get:i=>i.featured,set:(i,l)=>{i.featured=l}},metadata:d},c,u),o(null,null,b,{kind:"field",name:"bookmarked",static:!1,private:!1,access:{has:i=>"bookmarked"in i,get:i=>i.bookmarked,set:(i,l)=>{i.bookmarked=l}},metadata:d},k,m),o(null,null,f,{kind:"field",name:"visited",static:!1,private:!1,access:{has:i=>"visited"in i,get:i=>i.visited,set:(i,l)=>{i.visited=l}},metadata:d},_,v),o(null,null,S,{kind:"field",name:"rebookingState",static:!1,private:!1,access:{has:i=>"rebookingState"in i,get:i=>i.rebookingState,set:(i,l)=>{i.rebookingState=l}},metadata:d},p,x),o(null,null,y,{kind:"field",name:"rebookingNote",static:!1,private:!1,access:{has:i=>"rebookingNote"in i,get:i=>i.rebookingNote,set:(i,l)=>{i.rebookingNote=l}},metadata:d},B,I),d&&Object.defineProperty(this,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:d})}store;id;name;externalId;featured=r(this,c,void 0);advertise=r(this,u);description;address;address2;city;state;zip;country;phone1;website;facebook;instagram;linkedin;twitter;googlePlus;xing;youtube;email;privateEmail;customButtonTitle;customButtonUrl;customButton2Title;customButton2Url;customButton3Title;customButton3Url;leadingImageUrl;leadingImageLinkUrl;videoUrl;order;logo;logoInBooth;gallery;marketMaterials;slug;bookmarked=r(this,k,void 0);visited=(r(this,m),r(this,_,void 0));rebookingState=(r(this,v),r(this,p,void 0));rebookingNote=(r(this,x),r(this,B,void 0));booths=r(this,I);categories;schedule;entity={type:"exhibitor"}}})();export{O as Exhibitor};
1
+ import{__esDecorate as o,__runInitializers as r}from"tslib";import{action as z,computed as g,observable as h}from"mobx";import{buildRebookingUrl as C,getRebookingToken as w}from"../tools/rebookingUrl";import q from"../tools/settings";import A from"../utils/is-debug";let T=(()=>{let s=[],c,u=[],b=[],k,m=[],f=[],_,v=[],S=[],p,x,y,B,I,R,d,i,l,N;return class{static{const t=typeof Symbol=="function"&&Symbol.metadata?Object.create(null):void 0;c=[h],k=[h],_=[h],p=[g({keepAlive:!0})],x=[g({keepAlive:!0})],y=[g({keepAlive:!0})],B=[g({keepAlive:!0})],I=[g],R=[g],d=[g({keepAlive:!0})],i=[z],l=[z],N=[z],o(this,null,p,{kind:"getter",name:"exhibitorById",static:!1,private:!1,access:{has:e=>"exhibitorById"in e,get:e=>e.exhibitorById},metadata:t},null,s),o(this,null,x,{kind:"getter",name:"exhibitorByExternalId",static:!1,private:!1,access:{has:e=>"exhibitorByExternalId"in e,get:e=>e.exhibitorByExternalId},metadata:t},null,s),o(this,null,y,{kind:"getter",name:"exhibitorByName",static:!1,private:!1,access:{has:e=>"exhibitorByName"in e,get:e=>e.exhibitorByName},metadata:t},null,s),o(this,null,B,{kind:"getter",name:"exhibitorBySlug",static:!1,private:!1,access:{has:e=>"exhibitorBySlug"in e,get:e=>e.exhibitorBySlug},metadata:t},null,s),o(this,null,I,{kind:"getter",name:"bookmarked",static:!1,private:!1,access:{has:e=>"bookmarked"in e,get:e=>e.bookmarked},metadata:t},null,s),o(this,null,R,{kind:"getter",name:"visited",static:!1,private:!1,access:{has:e=>"visited"in e,get:e=>e.visited},metadata:t},null,s),o(this,null,d,{kind:"getter",name:"advertised",static:!1,private:!1,access:{has:e=>"advertised"in e,get:e=>e.advertised},metadata:t},null,s),o(this,null,i,{kind:"method",name:"replaceBookmarked",static:!1,private:!1,access:{has:e=>"replaceBookmarked"in e,get:e=>e.replaceBookmarked},metadata:t},null,s),o(this,null,l,{kind:"method",name:"replaceVisited",static:!1,private:!1,access:{has:e=>"replaceVisited"in e,get:e=>e.replaceVisited},metadata:t},null,s),o(this,null,N,{kind:"method",name:"setRebookingState",static:!1,private:!1,access:{has:e=>"setRebookingState"in e,get:e=>e.setRebookingState},metadata:t},null,s),o(null,null,c,{kind:"field",name:"highlightedByExternalIds",static:!1,private:!1,access:{has:e=>"highlightedByExternalIds"in e,get:e=>e.highlightedByExternalIds,set:(e,n)=>{e.highlightedByExternalIds=n}},metadata:t},u,b),o(null,null,k,{kind:"field",name:"rebookingStateChangeRequested",static:!1,private:!1,access:{has:e=>"rebookingStateChangeRequested"in e,get:e=>e.rebookingStateChangeRequested,set:(e,n)=>{e.rebookingStateChangeRequested=n}},metadata:t},m,f),o(null,null,_,{kind:"field",name:"rebookingStateSaved",static:!1,private:!1,access:{has:e=>"rebookingStateSaved"in e,get:e=>e.rebookingStateSaved,set:(e,n)=>{e.rebookingStateSaved=n}},metadata:t},v,S),t&&Object.defineProperty(this,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:t})}rootStore=r(this,s);exhibitors=[];timeout;constructor(t){r(this,S),this.rootStore=t}highlightedByExternalIds=r(this,u,[]);rebookingStateChangeRequested=(r(this,b),r(this,m,!1));rebookingStateSaved=(r(this,f),r(this,v,!1));get exhibitorById(){return new Map(this.exhibitors.map(t=>[t.id,t]))}get exhibitorByExternalId(){return new Map(this.exhibitors.map(t=>[t.externalId,t]))}get exhibitorByName(){return new Map(this.exhibitors.map(t=>[t.name.toLowerCase(),t]))}get exhibitorBySlug(){return new Map(this.exhibitors.map(t=>[t.slug,t]))}get bookmarked(){return this.exhibitors.filter(t=>t.bookmarked)}get visited(){return this.exhibitors.filter(t=>t.visited)}get advertised(){return this.exhibitors.filter(t=>t.advertise&&t.logo)}replaceBookmarked(t){if(!Array.isArray(t))return;const e=(t||[]).map(a=>this.exhibitorById.get(a)).filter(a=>a),n=new Set(e),E=this.bookmarked.filter(a=>!n.has(a));for(const a of E)a.bookmarked=!1;for(const a of e)a.bookmarked=!0}replaceVisited(t){if(!Array.isArray(t))return;const e=(t||[]).map(a=>this.exhibitorById.get(a)).filter(a=>a),n=new Set(e),E=this.visited.filter(a=>!n.has(a));for(const a of E)a.visited=!1;for(const a of e)a.visited=!0}setRebookingState(t,e,n){clearTimeout(this.timeout),this.rebookingStateChangeRequested=!1,t.rebookingState=e,t.rebookingNote=n;const E=C("api/v1/set-rebooking-state",{rt:w(),expoKey:this.rootStore.fp.eventId});fetch(E,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({expoKey:q.EXPO,exhibitorId:t.id,rebookingState:e,rebookingNote:n})}).then(a=>{a.ok&&(this.rebookingStateSaved=!0),!a.ok&&!A&&(t.rebookingState=0,this.rebookingStateSaved=!1)}).catch(()=>{t.rebookingState=0,this.rebookingStateSaved=!1}).finally(()=>{this.rebookingStateChangeRequested=!0,this.timeout=setTimeout(()=>{this.rebookingStateChangeRequested=!1},5e3)})}findExhibitor(t){return this.exhibitorByExternalId.get(t)||this.exhibitorByName.get(t.toLowerCase())||this.exhibitorBySlug.get(t)}}})();export default T;let O=(()=>{let s,c=[],u=[],b,k=[],m=[],f,_=[],v=[],S,p=[],x=[],y,B=[],I=[];return class{static{const d=typeof Symbol=="function"&&Symbol.metadata?Object.create(null):void 0;s=[h],b=[h],f=[h],S=[h],y=[h],o(null,null,s,{kind:"field",name:"featured",static:!1,private:!1,access:{has:i=>"featured"in i,get:i=>i.featured,set:(i,l)=>{i.featured=l}},metadata:d},c,u),o(null,null,b,{kind:"field",name:"bookmarked",static:!1,private:!1,access:{has:i=>"bookmarked"in i,get:i=>i.bookmarked,set:(i,l)=>{i.bookmarked=l}},metadata:d},k,m),o(null,null,f,{kind:"field",name:"visited",static:!1,private:!1,access:{has:i=>"visited"in i,get:i=>i.visited,set:(i,l)=>{i.visited=l}},metadata:d},_,v),o(null,null,S,{kind:"field",name:"rebookingState",static:!1,private:!1,access:{has:i=>"rebookingState"in i,get:i=>i.rebookingState,set:(i,l)=>{i.rebookingState=l}},metadata:d},p,x),o(null,null,y,{kind:"field",name:"rebookingNote",static:!1,private:!1,access:{has:i=>"rebookingNote"in i,get:i=>i.rebookingNote,set:(i,l)=>{i.rebookingNote=l}},metadata:d},B,I),d&&Object.defineProperty(this,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:d})}store;id;name;externalId;featured=r(this,c,void 0);advertise=r(this,u);description;address;address2;city;state;zip;country;phone1;website;facebook;instagram;linkedin;twitter;googlePlus;xing;youtube;email;privateEmail;customButtonTitle;customButtonUrl;customButton2Title;customButton2Url;customButton3Title;customButton3Url;leadingImageUrl;leadingImageLinkUrl;videoUrl;order;logo;logoInBooth;gallery;marketMaterials;slug;bookmarked=r(this,k,void 0);visited=(r(this,m),r(this,_,void 0));rebookingState=(r(this,v),r(this,p,void 0));rebookingNote=(r(this,x),r(this,B,void 0));booths=r(this,I);categories;schedule;entity={type:"exhibitor"}}})();export{O as Exhibitor};
@@ -1,7 +1,7 @@
1
- import type RootStore from "./RootStore";
1
+ import { type GaEventActions } from "../tools/gtag";
2
2
  import { BoothBase } from "./BoothStore";
3
- import type { ListItem } from "./types";
4
- import type { GaEventActions } from "../tools/gtag";
3
+ import type RootStore from "./RootStore";
4
+ import { type ListItem } from "./types";
5
5
  export default class HeatmapStore {
6
6
  private readonly rootStore;
7
7
  heatmapData: HeatmapData;
@@ -1 +1 @@
1
- import{__esDecorate as h,__runInitializers as C}from"tslib";import{Exhibitor as m}from"./ExhibitorStore";import{BoothBase as p}from"./BoothStore";import{Category as d}from"./CategoryStore";import{getColorFromGradient as x}from"../utils/color-gradient";import y from"../tools/settings";import{EventItem as k}from"./EventStore";import{computed as g}from"mobx";let v=(()=>{let a=[],l;return class{static{const t=typeof Symbol=="function"&&Symbol.metadata?Object.create(null):void 0;l=[g({keepAlive:!0})],h(this,null,l,{kind:"getter",name:"minAndMaxClicks",static:!1,private:!1,access:{has:e=>"minAndMaxClicks"in e,get:e=>e.minAndMaxClicks},metadata:t},null,a),t&&Object.defineProperty(this,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:t})}rootStore=C(this,a);heatmapData={};constructor(t){this.rootStore=t}forceTrack=null;get minAndMaxClicks(){const{booths:t=[],exhibitors:e=[],yah:i=[]}=this.heatmapData,r=[...t,...e,...i];if(r.length===0)return{min:0,max:0};const c=s=>s.reduce((n,o)=>(o.viewCount>n.max&&(n.max=o.viewCount),o.viewCount<n.min&&(n.min=o.viewCount),n),{min:s[0].viewCount,max:s[0].viewCount}),{min:u,max:f}=c(r);return{min:u,max:f}}getClicksByType(t){return t instanceof d?-1:t instanceof m?this.getClicksByItem(t):t instanceof HeatmapYah?this.getClicksByItem(t):t instanceof k?0:this.getClicksByItem(t)}getClicksByItem(t){return t instanceof m?this.heatmapData?.exhibitors?.find(e=>e.id===t.id)?.viewCount||0:t instanceof p?this.heatmapData?.booths?.find(e=>e.id===t.id)?.viewCount||0:t instanceof HeatmapYah&&this.heatmapData?.yah?.find(e=>e.id===t.id)?.viewCount||0}getTotalClicksByBooth(t){let e=this.getClicksByItem(t);for(const i of t.exhibitors){const r=this.getClicksByItem(i);e+=r}return e}getColorByClicks(t){const{min:e,max:i}=this.minAndMaxClicks;return x(t,e,i,y.heatmapColors)}}})();export default v;export class HeatmapYah{id;name;viewCount;x;y;z;entity={type:"heatmap-yah"}}
1
+ import{__esDecorate as h,__runInitializers as C}from"tslib";import{computed as p}from"mobx";import d from"../tools/settings";import{getColorFromGradient as x}from"../utils/color-gradient";import{BoothBase as y}from"./BoothStore";import{Category as k}from"./CategoryStore";import{EventItem as g}from"./EventStore";import{Exhibitor as m}from"./ExhibitorStore";let v=(()=>{let a=[],l;return class{static{const t=typeof Symbol=="function"&&Symbol.metadata?Object.create(null):void 0;l=[p({keepAlive:!0})],h(this,null,l,{kind:"getter",name:"minAndMaxClicks",static:!1,private:!1,access:{has:e=>"minAndMaxClicks"in e,get:e=>e.minAndMaxClicks},metadata:t},null,a),t&&Object.defineProperty(this,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:t})}rootStore=C(this,a);heatmapData={};constructor(t){this.rootStore=t}forceTrack=null;get minAndMaxClicks(){const{booths:t=[],exhibitors:e=[],yah:i=[]}=this.heatmapData,r=[...t,...e,...i];if(r.length===0)return{min:0,max:0};const c=s=>s.reduce((n,o)=>(o.viewCount>n.max&&(n.max=o.viewCount),o.viewCount<n.min&&(n.min=o.viewCount),n),{min:s[0].viewCount,max:s[0].viewCount}),{min:u,max:f}=c(r);return{min:u,max:f}}getClicksByType(t){return t instanceof k?-1:t instanceof m?this.getClicksByItem(t):t instanceof HeatmapYah?this.getClicksByItem(t):t instanceof g?0:this.getClicksByItem(t)}getClicksByItem(t){return t instanceof m?this.heatmapData?.exhibitors?.find(e=>e.id===t.id)?.viewCount||0:t instanceof y?this.heatmapData?.booths?.find(e=>e.id===t.id)?.viewCount||0:t instanceof HeatmapYah&&this.heatmapData?.yah?.find(e=>e.id===t.id)?.viewCount||0}getTotalClicksByBooth(t){let e=this.getClicksByItem(t);for(const i of t.exhibitors){const r=this.getClicksByItem(i);e+=r}return e}getColorByClicks(t){const{min:e,max:i}=this.minAndMaxClicks;return x(t,e,i,d.heatmapColors)}}})();export default v;export class HeatmapYah{id;name;viewCount;x;y;z;entity={type:"heatmap-yah"}}
@@ -1,5 +1,5 @@
1
- import Rect from "../core/Rect";
2
1
  import { LayerDef } from "@expofp/renderer";
2
+ import Rect from "../core/Rect";
3
3
  export declare enum LayersMode {
4
4
  Default = 0,// one floor plans
5
5
  Separated = 1,// outdated
@@ -1 +1 @@
1
- import{__esDecorate as l,__runInitializers as o}from"tslib";import{action as w,computed as v,observable as u,runInAction as C}from"mobx";import n from".";import E from"../components/Map/drawing/config/config-load-layer";import W from"../core/Rect";import{shortenName as j}from"../utils/shortenName";import{areLayersEnabled as D}from"../utils/areLayersEnabled";export var LayersMode;(function(i){i[i.Default=0]="Default",i[i.Separated=1]="Separated",i[i.Radio=2]="Radio",i[i.CheckBox=3]="CheckBox"})(LayersMode||(LayersMode={}));export var LayerMode;(function(i){i[i.Unset=0]="Unset",i[i.AlwaysVisible=1]="AlwaysVisible",i[i.AlwaysHidden=2]="AlwaysHidden",i[i.TurnedOn=3]="TurnedOn",i[i.TurnedOff=4]="TurnedOff"})(LayerMode||(LayerMode={}));let O=(()=>{let i,h=[],y=[],m,p=[],_=[];return class{static{const c=typeof Symbol=="function"&&Symbol.metadata?Object.create(null):void 0;i=[u],m=[u],l(null,null,i,{kind:"field",name:"loaded",static:!1,private:!1,access:{has:s=>"loaded"in s,get:s=>s.loaded,set:(s,f)=>{s.loaded=f}},metadata:c},h,y),l(null,null,m,{kind:"field",name:"visible",static:!1,private:!1,access:{has:s=>"visible"in s,get:s=>s.visible,set:(s,f)=>{s.visible=f}},metadata:c},p,_),c&&Object.defineProperty(this,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:c})}basePriority;name;description;frozen;rect=null;viewbox=null;configured;childLayers=[];rootParent=null;mode;children=[];pathway;floorIndex;loaded=o(this,h,void 0);visible=(o(this,y),o(this,p,void 0));get shortName(){return j(this.description)}constructor(){o(this,_)}}})();export{O as Layer};let N=(()=>{let i=[],h,y=[],m=[],p,_=[],b=[],c,s=[],f=[],L,S=[],x=[],P,k,A,I,R,T,V,z;return class{static{const t=typeof Symbol=="function"&&Symbol.metadata?Object.create(null):void 0;h=[u],p=[u],c=[u],L=[u],P=[v({keepAlive:!0})],k=[v({keepAlive:!0})],A=[v({keepAlive:!0})],I=[v],R=[v],T=[w],V=[w],z=[w],l(this,null,P,{kind:"getter",name:"visible",static:!1,private:!1,access:{has:e=>"visible"in e,get:e=>e.visible},metadata:t},null,i),l(this,null,k,{kind:"getter",name:"loaded",static:!1,private:!1,access:{has:e=>"loaded"in e,get:e=>e.loaded},metadata:t},null,i),l(this,null,A,{kind:"getter",name:"rectangle",static:!1,private:!1,access:{has:e=>"rectangle"in e,get:e=>e.rectangle},metadata:t},null,i),l(this,null,I,{kind:"getter",name:"pathwayLayers",static:!1,private:!1,access:{has:e=>"pathwayLayers"in e,get:e=>e.pathwayLayers},metadata:t},null,i),l(this,null,R,{kind:"getter",name:"floors",static:!1,private:!1,access:{has:e=>"floors"in e,get:e=>e.floors},metadata:t},null,i),l(this,null,T,{kind:"method",name:"updateVisibility",static:!1,private:!1,access:{has:e=>"updateVisibility"in e,get:e=>e.updateVisibility},metadata:t},null,i),l(this,null,V,{kind:"method",name:"showPathWay",static:!1,private:!1,access:{has:e=>"showPathWay"in e,get:e=>e.showPathWay},metadata:t},null,i),l(this,null,z,{kind:"method",name:"hidePathways",static:!1,private:!1,access:{has:e=>"hidePathways"in e,get:e=>e.hidePathways},metadata:t},null,i),l(null,null,h,{kind:"field",name:"layers",static:!1,private:!1,access:{has:e=>"layers"in e,get:e=>e.layers,set:(e,a)=>{e.layers=a}},metadata:t},y,m),l(null,null,p,{kind:"field",name:"defaultLayer",static:!1,private:!1,access:{has:e=>"defaultLayer"in e,get:e=>e.defaultLayer,set:(e,a)=>{e.defaultLayer=a}},metadata:t},_,b),l(null,null,c,{kind:"field",name:"mode",static:!1,private:!1,access:{has:e=>"mode"in e,get:e=>e.mode,set:(e,a)=>{e.mode=a}},metadata:t},s,f),l(null,null,L,{kind:"field",name:"layersLoaded",static:!1,private:!1,access:{has:e=>"layersLoaded"in e,get:e=>e.layersLoaded,set:(e,a)=>{e.layersLoaded=a}},metadata:t},S,x),t&&Object.defineProperty(this,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:t})}layers=(o(this,i),o(this,y,[]));defaultLayer=(o(this,m),o(this,_,void 0));mode=(o(this,b),o(this,s,void 0));layersLoaded=(o(this,f),o(this,S,!1));updateVisibilityTimeout=(o(this,x),0);get visible(){return this.layers.filter(t=>t.frozen||t.visible)}get loaded(){return this.layers.filter(t=>t.loaded)}get rectangle(){var t=this.visible.filter(e=>!e.frozen).map(e=>e.viewbox??e.rect);return this.mode!==LayersMode.Radio||!t.length?null:W.fromMultiple(t)||null}get pathwayLayers(){return this.layers.filter(t=>t.pathway)}get floors(){if(!D())return[];const t=new Set(this.layers.filter(a=>a&&!a.frozen&&!a.rootParent&&!a.pathway).concat(n.routeStore.layers.filter(a=>a&&a.mode!==LayerMode.AlwaysHidden&&a.mode!==LayerMode.AlwaysVisible))),e=Array.from(t).reverse();return e.map((a,r)=>{const d=n.routeStore.layers.length>0&&n.routeStore.layers.indexOf(a)===-1,g=n.toursStore.tourLayers.length>0&&n.toursStore.tourLayers.indexOf(a)===-1;return{layer:a,name:a.name,shortName:a.shortName,description:a.description,active:a.visible,disabled:!!(d||g),index:a.floorIndex??e.length-r-1}})}updateVisibility(t,e){if(this.mode===LayersMode.Radio&&!e)return;const a=t instanceof O?t:this.findLayer(t);if(!a||a.visible===e){a&&n.routeStore.currentRouteLayer!==a&&(n.routeStore.currentRouteLayer=a);return}E(a,n.rendererService).then(()=>{this.mode===LayersMode.Radio&&this.layers.filter(r=>!r.pathway).forEach(r=>{r.name!==a.name&&!r.frozen&&r.visible&&(r.visible=!1,r.childLayers.forEach(d=>{d.visible=!1}))}),a&&(a.visible=e,a.childLayers.forEach(r=>{r.visible=e}),e&&(n.routeStore.currentRouteLayer=a),typeof n.fp.onFloorActivated=="function"&&(clearTimeout(this.updateVisibilityTimeout),this.updateVisibilityTimeout=setTimeout(()=>{const r=n.fp.getFloors();n.fp.onFloorActivated(r.find(d=>d.name===a.name))})))})}findLayer(t){if(t==null)return null;const e=this.layers.filter(r=>!r.rootParent);if(typeof t=="number"&&(a=e.filter(r=>!r.frozen)[t],a))return a;t=t.toString().toLowerCase();var a=e.find(r=>{const d=(r.name.match(/(-?[0-9]+)/)||"")[0];return t===r?.name.toLowerCase()||t===r?.description.toLowerCase()||t===r?.shortName.toLowerCase()||t===d});return!a&&!/\D/.test(t)&&(a=e.filter(r=>!r.frozen)[parseInt(t)]),a}getPathwayList(){return this.layers.filter(t=>t.pathway)}async showPathWay(t){try{const e=this.findLayer(t);if(!e)throw new Error(`There is no pathway with this name. ${t}`);await E(e,n.rendererService);const a=this.getPathwayList();C(()=>{a.forEach(r=>{const d=r.name===t;r.visible=d,r.childLayers.forEach(g=>{g.visible=d})})})}catch(e){console.error("showPathWay",e)}}hidePathways(){this.getPathwayList().forEach(e=>{e.visible=!1,e.childLayers.forEach(a=>{a.visible=!1})})}}})();export default N;
1
+ import{__esDecorate as l,__runInitializers as o}from"tslib";import{action as w,computed as v,observable as u,runInAction as C}from"mobx";import E from"../components/Map/drawing/config/config-load-layer";import W from"../core/Rect";import{areLayersEnabled as j}from"../utils/areLayersEnabled";import{shortenName as D}from"../utils/shortenName";import n from".";export var LayersMode;(function(i){i[i.Default=0]="Default",i[i.Separated=1]="Separated",i[i.Radio=2]="Radio",i[i.CheckBox=3]="CheckBox"})(LayersMode||(LayersMode={}));export var LayerMode;(function(i){i[i.Unset=0]="Unset",i[i.AlwaysVisible=1]="AlwaysVisible",i[i.AlwaysHidden=2]="AlwaysHidden",i[i.TurnedOn=3]="TurnedOn",i[i.TurnedOff=4]="TurnedOff"})(LayerMode||(LayerMode={}));let O=(()=>{let i,h=[],y=[],m,p=[],_=[];return class{static{const c=typeof Symbol=="function"&&Symbol.metadata?Object.create(null):void 0;i=[u],m=[u],l(null,null,i,{kind:"field",name:"loaded",static:!1,private:!1,access:{has:s=>"loaded"in s,get:s=>s.loaded,set:(s,f)=>{s.loaded=f}},metadata:c},h,y),l(null,null,m,{kind:"field",name:"visible",static:!1,private:!1,access:{has:s=>"visible"in s,get:s=>s.visible,set:(s,f)=>{s.visible=f}},metadata:c},p,_),c&&Object.defineProperty(this,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:c})}basePriority;name;description;frozen;rect=null;viewbox=null;configured;childLayers=[];rootParent=null;mode;children=[];pathway;floorIndex;loaded=o(this,h,void 0);visible=(o(this,y),o(this,p,void 0));get shortName(){return D(this.description)}constructor(){o(this,_)}}})();export{O as Layer};let N=(()=>{let i=[],h,y=[],m=[],p,_=[],b=[],c,s=[],f=[],L,S=[],x=[],P,k,A,I,R,T,V,z;return class{static{const t=typeof Symbol=="function"&&Symbol.metadata?Object.create(null):void 0;h=[u],p=[u],c=[u],L=[u],P=[v({keepAlive:!0})],k=[v({keepAlive:!0})],A=[v({keepAlive:!0})],I=[v],R=[v],T=[w],V=[w],z=[w],l(this,null,P,{kind:"getter",name:"visible",static:!1,private:!1,access:{has:e=>"visible"in e,get:e=>e.visible},metadata:t},null,i),l(this,null,k,{kind:"getter",name:"loaded",static:!1,private:!1,access:{has:e=>"loaded"in e,get:e=>e.loaded},metadata:t},null,i),l(this,null,A,{kind:"getter",name:"rectangle",static:!1,private:!1,access:{has:e=>"rectangle"in e,get:e=>e.rectangle},metadata:t},null,i),l(this,null,I,{kind:"getter",name:"pathwayLayers",static:!1,private:!1,access:{has:e=>"pathwayLayers"in e,get:e=>e.pathwayLayers},metadata:t},null,i),l(this,null,R,{kind:"getter",name:"floors",static:!1,private:!1,access:{has:e=>"floors"in e,get:e=>e.floors},metadata:t},null,i),l(this,null,T,{kind:"method",name:"updateVisibility",static:!1,private:!1,access:{has:e=>"updateVisibility"in e,get:e=>e.updateVisibility},metadata:t},null,i),l(this,null,V,{kind:"method",name:"showPathWay",static:!1,private:!1,access:{has:e=>"showPathWay"in e,get:e=>e.showPathWay},metadata:t},null,i),l(this,null,z,{kind:"method",name:"hidePathways",static:!1,private:!1,access:{has:e=>"hidePathways"in e,get:e=>e.hidePathways},metadata:t},null,i),l(null,null,h,{kind:"field",name:"layers",static:!1,private:!1,access:{has:e=>"layers"in e,get:e=>e.layers,set:(e,a)=>{e.layers=a}},metadata:t},y,m),l(null,null,p,{kind:"field",name:"defaultLayer",static:!1,private:!1,access:{has:e=>"defaultLayer"in e,get:e=>e.defaultLayer,set:(e,a)=>{e.defaultLayer=a}},metadata:t},_,b),l(null,null,c,{kind:"field",name:"mode",static:!1,private:!1,access:{has:e=>"mode"in e,get:e=>e.mode,set:(e,a)=>{e.mode=a}},metadata:t},s,f),l(null,null,L,{kind:"field",name:"layersLoaded",static:!1,private:!1,access:{has:e=>"layersLoaded"in e,get:e=>e.layersLoaded,set:(e,a)=>{e.layersLoaded=a}},metadata:t},S,x),t&&Object.defineProperty(this,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:t})}layers=(o(this,i),o(this,y,[]));defaultLayer=(o(this,m),o(this,_,void 0));mode=(o(this,b),o(this,s,void 0));layersLoaded=(o(this,f),o(this,S,!1));updateVisibilityTimeout=(o(this,x),0);get visible(){return this.layers.filter(t=>t.frozen||t.visible)}get loaded(){return this.layers.filter(t=>t.loaded)}get rectangle(){var t=this.visible.filter(e=>!e.frozen).map(e=>e.viewbox??e.rect);return this.mode!==LayersMode.Radio||!t.length?null:W.fromMultiple(t)||null}get pathwayLayers(){return this.layers.filter(t=>t.pathway)}get floors(){if(!j())return[];const t=new Set(this.layers.filter(a=>a&&!a.frozen&&!a.rootParent&&!a.pathway).concat(n.routeStore.layers.filter(a=>a&&a.mode!==LayerMode.AlwaysHidden&&a.mode!==LayerMode.AlwaysVisible))),e=Array.from(t).reverse();return e.map((a,r)=>{const d=n.routeStore.layers.length>0&&n.routeStore.layers.indexOf(a)===-1,g=n.toursStore.tourLayers.length>0&&n.toursStore.tourLayers.indexOf(a)===-1;return{layer:a,name:a.name,shortName:a.shortName,description:a.description,active:a.visible,disabled:!!(d||g),index:a.floorIndex??e.length-r-1}})}updateVisibility(t,e){if(this.mode===LayersMode.Radio&&!e)return;const a=t instanceof O?t:this.findLayer(t);if(!a||a.visible===e){a&&n.routeStore.currentRouteLayer!==a&&(n.routeStore.currentRouteLayer=a);return}E(a,n.rendererService).then(()=>{this.mode===LayersMode.Radio&&this.layers.filter(r=>!r.pathway).forEach(r=>{r.name!==a.name&&!r.frozen&&r.visible&&(r.visible=!1,r.childLayers.forEach(d=>{d.visible=!1}))}),a&&(a.visible=e,a.childLayers.forEach(r=>{r.visible=e}),e&&(n.routeStore.currentRouteLayer=a),typeof n.fp.onFloorActivated=="function"&&(clearTimeout(this.updateVisibilityTimeout),this.updateVisibilityTimeout=setTimeout(()=>{const r=n.fp.getFloors();n.fp.onFloorActivated(r.find(d=>d.name===a.name))})))})}findLayer(t){if(t==null)return null;const e=this.layers.filter(r=>!r.rootParent);if(typeof t=="number"&&(a=e.filter(r=>!r.frozen)[t],a))return a;t=t.toString().toLowerCase();var a=e.find(r=>{const d=(r.name.match(/(-?[0-9]+)/)||"")[0];return t===r?.name.toLowerCase()||t===r?.description.toLowerCase()||t===r?.shortName.toLowerCase()||t===d});return!a&&!/\D/.test(t)&&(a=e.filter(r=>!r.frozen)[parseInt(t)]),a}getPathwayList(){return this.layers.filter(t=>t.pathway)}async showPathWay(t){try{const e=this.findLayer(t);if(!e)throw new Error(`There is no pathway with this name. ${t}`);await E(e,n.rendererService);const a=this.getPathwayList();C(()=>{a.forEach(r=>{const d=r.name===t;r.visible=d,r.childLayers.forEach(g=>{g.visible=d})})})}catch(e){console.error("showPathWay",e)}}hidePathways(){this.getPathwayList().forEach(e=>{e.visible=!1,e.childLayers.forEach(a=>{a.visible=!1})})}}})();export default N;
@@ -1 +1 @@
1
- import{__esDecorate as i,__runInitializers as l}from"tslib";import{action as o,computed as r,observable as d}from"mobx";import{fpGeo as I}from"../data/fpGeo";import n from"../data";import{registerEnumSetting as z}from"@expofp/debug";const A=import.meta.env?.VITE_EXPOFP_USE_MAPLIBRE_MAP==="true",B=import.meta.env?.VITE_EXPOFP_DISABLE_3D_TOGGLE!=="false";function L(){return typeof window>"u"||window.navigator.onLine}let x=(()=>{let a=[],p,m=[],c=[],f,h=[],u=[],b,M=[],_=[],w,v,g,O,S,E,V,k;return class{static{const t=typeof Symbol=="function"&&Symbol.metadata?Object.create(null):void 0;p=[d],f=[d],b=[d],w=[o],v=[o],g=[o],O=[r({keepAlive:!0})],S=[r({keepAlive:!0})],E=[r({keepAlive:!0})],V=[r({keepAlive:!0})],k=[r({keepAlive:!0})],i(this,null,w,{kind:"method",name:"setOnline",static:!1,private:!1,access:{has:e=>"setOnline"in e,get:e=>e.setOnline},metadata:t},null,a),i(this,null,v,{kind:"method",name:"activateMaplibre",static:!1,private:!1,access:{has:e=>"activateMaplibre"in e,get:e=>e.activateMaplibre},metadata:t},null,a),i(this,null,g,{kind:"method",name:"deactivateMaplibre",static:!1,private:!1,access:{has:e=>"deactivateMaplibre"in e,get:e=>e.deactivateMaplibre},metadata:t},null,a),i(this,null,O,{kind:"getter",name:"hideModeSwitchButton",static:!1,private:!1,access:{has:e=>"hideModeSwitchButton"in e,get:e=>e.hideModeSwitchButton},metadata:t},null,a),i(this,null,S,{kind:"getter",name:"maplibreEnabled",static:!1,private:!1,access:{has:e=>"maplibreEnabled"in e,get:e=>e.maplibreEnabled},metadata:t},null,a),i(this,null,E,{kind:"getter",name:"useMaplibreMap",static:!1,private:!1,access:{has:e=>"useMaplibreMap"in e,get:e=>e.useMaplibreMap},metadata:t},null,a),i(this,null,V,{kind:"getter",name:"showMaplibre",static:!1,private:!1,access:{has:e=>"showMaplibre"in e,get:e=>e.showMaplibre},metadata:t},null,a),i(this,null,k,{kind:"getter",name:"isMap3d",static:!1,private:!1,access:{has:e=>"isMap3d"in e,get:e=>e.isMap3d},metadata:t},null,a),i(null,null,p,{kind:"field",name:"mapViewMode",static:!1,private:!1,access:{has:e=>"mapViewMode"in e,get:e=>e.mapViewMode,set:(e,s)=>{e.mapViewMode=s}},metadata:t},m,c),i(null,null,f,{kind:"field",name:"maplibreSelected",static:!1,private:!1,access:{has:e=>"maplibreSelected"in e,get:e=>e.maplibreSelected,set:(e,s)=>{e.maplibreSelected=s}},metadata:t},h,u),i(null,null,b,{kind:"field",name:"isOnline",static:!1,private:!1,access:{has:e=>"isOnline"in e,get:e=>e.isOnline,set:(e,s)=>{e.isOnline=s}},metadata:t},M,_),t&&Object.defineProperty(this,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:t})}rootStore=l(this,a);mapViewMode=l(this,m,"floorplan");maplibreSelected=(l(this,c),l(this,h,!1));isOnline=(l(this,u),l(this,M,L()));handleOnline=(l(this,_),()=>this.setOnline(!0));handleOffline=()=>this.setOnline(!1);constructor(t){this.rootStore=t,this.mapViewMode=this.getInitialViewMode(),this.maplibreSelected=this.mapViewMode!=="floorplan",typeof window<"u"&&(window.addEventListener("online",this.handleOnline),window.addEventListener("offline",this.handleOffline))}dispose(){typeof window>"u"||(window.removeEventListener("online",this.handleOnline),window.removeEventListener("offline",this.handleOffline))}setOnline(t){this.isOnline=t}activateMaplibre(){this.maplibreEnabled&&(this.mapViewMode=n.allow3dView&&this.mapViewMode!=="map3d"?"map3d":"map2d",this.maplibreSelected=!0)}deactivateMaplibre(){this.mapViewMode="floorplan",this.maplibreSelected=!1}get hideModeSwitchButton(){return!this.maplibreEnabled||!n.allow3dView||B||n.hideModeSwitchButton}get maplibreEnabled(){const t=this.rootStore.fp?.maplibre??window.__efpMaplibre,e=!!t?.offline&&(!!t.style||!!t.styleUrl);return this.useMaplibreMap&&!!I?.properties?.config&&!this.rootStore.uiState.kiosk&&(this.isOnline||e)}get useMaplibreMap(){if(y.get()==="on")return!0;if(y.get()==="off")return!1;const t=n.flags?.enableExperimentalMaplibre;return typeof t=="boolean"?t:A}get showMaplibre(){return this.maplibreEnabled&&(this.mapViewMode==="map2d"||this.mapViewMode==="map3d")}get isMap3d(){return this.maplibreEnabled&&this.mapViewMode==="map3d"}getInitialViewMode(){return this.maplibreEnabled?n.allow3dView&&!n.hide3dMapDefault?"map3d":"map2d":"floorplan"}}})();export default x;const y=z({key:"efp:maplibre:override",values:["default","on","off"],default:"default"});
1
+ import{__esDecorate as i,__runInitializers as l}from"tslib";import{registerEnumSetting as I}from"@expofp/debug";import{action as o,computed as r,observable as d}from"mobx";import n from"../data";import{fpGeo as z}from"../data/fpGeo";const A=import.meta.env?.VITE_EXPOFP_USE_MAPLIBRE_MAP==="true",B=import.meta.env?.VITE_EXPOFP_DISABLE_3D_TOGGLE!=="false";function L(){return typeof window>"u"||window.navigator.onLine}let x=(()=>{let a=[],p,m=[],c=[],f,h=[],u=[],b,M=[],_=[],w,v,g,O,S,E,V,k;return class{static{const t=typeof Symbol=="function"&&Symbol.metadata?Object.create(null):void 0;p=[d],f=[d],b=[d],w=[o],v=[o],g=[o],O=[r({keepAlive:!0})],S=[r({keepAlive:!0})],E=[r({keepAlive:!0})],V=[r({keepAlive:!0})],k=[r({keepAlive:!0})],i(this,null,w,{kind:"method",name:"setOnline",static:!1,private:!1,access:{has:e=>"setOnline"in e,get:e=>e.setOnline},metadata:t},null,a),i(this,null,v,{kind:"method",name:"activateMaplibre",static:!1,private:!1,access:{has:e=>"activateMaplibre"in e,get:e=>e.activateMaplibre},metadata:t},null,a),i(this,null,g,{kind:"method",name:"deactivateMaplibre",static:!1,private:!1,access:{has:e=>"deactivateMaplibre"in e,get:e=>e.deactivateMaplibre},metadata:t},null,a),i(this,null,O,{kind:"getter",name:"hideModeSwitchButton",static:!1,private:!1,access:{has:e=>"hideModeSwitchButton"in e,get:e=>e.hideModeSwitchButton},metadata:t},null,a),i(this,null,S,{kind:"getter",name:"maplibreEnabled",static:!1,private:!1,access:{has:e=>"maplibreEnabled"in e,get:e=>e.maplibreEnabled},metadata:t},null,a),i(this,null,E,{kind:"getter",name:"useMaplibreMap",static:!1,private:!1,access:{has:e=>"useMaplibreMap"in e,get:e=>e.useMaplibreMap},metadata:t},null,a),i(this,null,V,{kind:"getter",name:"showMaplibre",static:!1,private:!1,access:{has:e=>"showMaplibre"in e,get:e=>e.showMaplibre},metadata:t},null,a),i(this,null,k,{kind:"getter",name:"isMap3d",static:!1,private:!1,access:{has:e=>"isMap3d"in e,get:e=>e.isMap3d},metadata:t},null,a),i(null,null,p,{kind:"field",name:"mapViewMode",static:!1,private:!1,access:{has:e=>"mapViewMode"in e,get:e=>e.mapViewMode,set:(e,s)=>{e.mapViewMode=s}},metadata:t},m,c),i(null,null,f,{kind:"field",name:"maplibreSelected",static:!1,private:!1,access:{has:e=>"maplibreSelected"in e,get:e=>e.maplibreSelected,set:(e,s)=>{e.maplibreSelected=s}},metadata:t},h,u),i(null,null,b,{kind:"field",name:"isOnline",static:!1,private:!1,access:{has:e=>"isOnline"in e,get:e=>e.isOnline,set:(e,s)=>{e.isOnline=s}},metadata:t},M,_),t&&Object.defineProperty(this,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:t})}rootStore=l(this,a);mapViewMode=l(this,m,"floorplan");maplibreSelected=(l(this,c),l(this,h,!1));isOnline=(l(this,u),l(this,M,L()));handleOnline=(l(this,_),()=>this.setOnline(!0));handleOffline=()=>this.setOnline(!1);constructor(t){this.rootStore=t,this.mapViewMode=this.getInitialViewMode(),this.maplibreSelected=this.mapViewMode!=="floorplan",typeof window<"u"&&(window.addEventListener("online",this.handleOnline),window.addEventListener("offline",this.handleOffline))}dispose(){typeof window>"u"||(window.removeEventListener("online",this.handleOnline),window.removeEventListener("offline",this.handleOffline))}setOnline(t){this.isOnline=t}activateMaplibre(){this.maplibreEnabled&&(this.mapViewMode=n.allow3dView&&this.mapViewMode!=="map3d"?"map3d":"map2d",this.maplibreSelected=!0)}deactivateMaplibre(){this.mapViewMode="floorplan",this.maplibreSelected=!1}get hideModeSwitchButton(){return!this.maplibreEnabled||!n.allow3dView||B||n.hideModeSwitchButton}get maplibreEnabled(){const t=this.rootStore.fp?.maplibre??window.__efpMaplibre,e=!!t?.offline&&(!!t.style||!!t.styleUrl);return this.useMaplibreMap&&!!z?.properties?.config&&!this.rootStore.uiState.kiosk&&(this.isOnline||e)}get useMaplibreMap(){if(y.get()==="on")return!0;if(y.get()==="off")return!1;const t=n.flags?.enableExperimentalMaplibre;return typeof t=="boolean"?t:A}get showMaplibre(){return this.maplibreEnabled&&(this.mapViewMode==="map2d"||this.mapViewMode==="map3d")}get isMap3d(){return this.maplibreEnabled&&this.mapViewMode==="map3d"}getInitialViewMode(){return this.maplibreEnabled?n.allow3dView&&!n.hide3dMapDefault?"map3d":"map2d":"floorplan"}}})();export default x;const y=I({key:"efp:maplibre:override",values:["default","on","off"],default:"default"});
@@ -1,30 +1,30 @@
1
1
  import FloorPlanReady from "../floorplan.ready";
2
+ import { RendererService } from "../renderer";
3
+ import { URLFilterManager } from "../services/URLFilterManager";
4
+ import BookmarksStore from "./BookmarksStore";
2
5
  import BoothStore, { Booth } from "./BoothStore";
3
- import CategoryStore, { Category } from "./CategoryStore";
4
- import ExhibitorStore, { Exhibitor } from "./ExhibitorStore";
5
6
  import CategoryFilterStore from "./CategoryFilterStore";
7
+ import CategoryStore, { Category } from "./CategoryStore";
6
8
  import EventStore, { EventItem } from "./EventStore";
7
- import { Speaker } from "./SpeakerStore";
9
+ import ExhibitorStore, { Exhibitor } from "./ExhibitorStore";
10
+ import FuzzySearchEngineStore from "./FuzzySearchEngineStore";
8
11
  import HeatmapStore from "./HeatmapStore";
9
12
  import IntercomStore from "./IntercomStore";
10
13
  import LayerStore from "./LayerStore";
11
14
  import MaplibreStore from "./MaplibreStore";
12
- import RouteStore from "./RouteStore";
13
- import RoutePlannerStore from "./RoutePlannerStore";
14
- import ToursStore from "./ToursStore";
15
- import UIState from "./UIState";
16
- import type { ListItem } from "./types";
17
15
  import PoiTypeStore from "./PoiTypeStore";
18
- import FuzzySearchEngineStore from "./FuzzySearchEngineStore";
19
- import SessionsFilterStore from "./SessionsFilterStore";
20
- import SearchStore from "./SearchStore";
16
+ import RoutePlannerStore from "./RoutePlannerStore";
17
+ import RouteStore from "./RouteStore";
21
18
  import SearchButtonsStore from "./SearchButtonsStore";
22
- import BookmarksStore from "./BookmarksStore";
23
- import { URLFilterManager } from "../services/URLFilterManager";
19
+ import SearchStore from "./SearchStore";
20
+ import SessionsFilterStore from "./SessionsFilterStore";
24
21
  import { ShortcutRegistry } from "./ShortcutRegistry";
25
- import SpeakerStore from "./SpeakerStore";
26
22
  import SpeakerFilterStore from "./SpeakerFilterStore";
27
- import { RendererService } from "../renderer";
23
+ import SpeakerStore from "./SpeakerStore";
24
+ import { Speaker } from "./SpeakerStore";
25
+ import ToursStore from "./ToursStore";
26
+ import type { ListItem } from "./types";
27
+ import UIState from "./UIState";
28
28
  export default class RootStore {
29
29
  readonly categoryStore: CategoryStore;
30
30
  readonly exhibitorStore: ExhibitorStore;
@@ -1 +1 @@
1
- import{__esDecorate as s,__runInitializers as n}from"tslib";import{action as o,observable as se,computed as he,runInAction as ae}from"mobx";import ne from"../tools/logger";import{isWebGlSupported as ce}from"../utils";import ue,{BoothBase as oe,RegularBooth as de}from"./BoothStore";import me,{Category as Se}from"./CategoryStore";import fe,{Exhibitor as re}from"./ExhibitorStore";import pe from"./CategoryFilterStore";import ge,{EventItem as ke}from"./EventStore";import{SpeakerItem as ve}from"./SpeakerStore";import{GaEventActions as ye}from"../tools/gtag";import h from"../utils/is-mobile";import c from"../utils/is-webview";import _e from"./HeatmapStore";import{resetLocale as be}from"../utils/i18n";import{LANGUAGE_TYPE as we}from"../constants";import xe from"./IntercomStore";import Be,{LayersMode as le}from"./LayerStore";import Ee from"./MaplibreStore";import Le from"./RouteStore";import Ce from"./RoutePlannerStore";import Fe from"./ToursStore";import Ie from"./UIState";import Te from"./PoiTypeStore";import{sanitizeSearch as ze}from"../utils/sanitizeText";import Me from"./FuzzySearchEngineStore";import Oe from"./SessionsFilterStore";import Ae from"./SearchStore";import Re from"./SearchButtonsStore";import Pe from"./BookmarksStore";import{URLFilterManager as Ve}from"../services/URLFilterManager";import{ShortcutRegistry as Ge}from"./ShortcutRegistry";import{SessionsShortcutProvider as Ne}from"./providers/SessionsShortcutProvider";import qe from"./SpeakerStore";import je from"./SpeakerFilterStore";import{SpeakerShortcutProvider as Ue}from"./providers/SpeakerShortcutProvider";import{SearchShortcutProvider as We}from"./providers/SearchShortcutProvider";import{RendererService as De}from"../renderer";let He=(()=>{let a=[],u,d=[],m=[],S,f=[],p=[],g,k,v,y,_,b,w,x,B,E,L,C,F,I,T,z,M,O,A,R,P,V,G,N,q,j,U,W,D,H,K,Y,$,J,Q,X,Z,ee,te,ie;return class{static{const t=typeof Symbol=="function"&&Symbol.metadata?Object.create(null):void 0;u=[se],S=[se],g=[o],k=[o],v=[o],y=[o],_=[o],b=[o],w=[o],x=[o],B=[o],E=[o],L=[o],C=[o],F=[o],I=[o],T=[o],z=[o],M=[o],O=[o],A=[o],R=[o],P=[o],V=[o],G=[o],N=[o],q=[o],j=[o],U=[o],W=[o],D=[o],H=[o],K=[o],Y=[o],$=[o],J=[he],Q=[o],X=[o],Z=[o],ee=[o],te=[o],ie=[o],s(this,null,g,{kind:"method",name:"setResetCameraFn",static:!1,private:!1,access:{has:e=>"setResetCameraFn"in e,get:e=>e.setResetCameraFn},metadata:t},null,a),s(this,null,k,{kind:"method",name:"selectExhibitor",static:!1,private:!1,access:{has:e=>"selectExhibitor"in e,get:e=>e.selectExhibitor},metadata:t},null,a),s(this,null,v,{kind:"method",name:"selectBooth",static:!1,private:!1,access:{has:e=>"selectBooth"in e,get:e=>e.selectBooth},metadata:t},null,a),s(this,null,y,{kind:"method",name:"reset",static:!1,private:!1,access:{has:e=>"reset"in e,get:e=>e.reset},metadata:t},null,a),s(this,null,_,{kind:"method",name:"selectNone",static:!1,private:!1,access:{has:e=>"selectNone"in e,get:e=>e.selectNone},metadata:t},null,a),s(this,null,b,{kind:"method",name:"selectBookmarks",static:!1,private:!1,access:{has:e=>"selectBookmarks"in e,get:e=>e.selectBookmarks},metadata:t},null,a),s(this,null,w,{kind:"method",name:"selectVisited",static:!1,private:!1,access:{has:e=>"selectVisited"in e,get:e=>e.selectVisited},metadata:t},null,a),s(this,null,x,{kind:"method",name:"selectLanguage",static:!1,private:!1,access:{has:e=>"selectLanguage"in e,get:e=>e.selectLanguage},metadata:t},null,a),s(this,null,B,{kind:"method",name:"selectCategory",static:!1,private:!1,access:{has:e=>"selectCategory"in e,get:e=>e.selectCategory},metadata:t},null,a),s(this,null,E,{kind:"method",name:"selectEventItem",static:!1,private:!1,access:{has:e=>"selectEventItem"in e,get:e=>e.selectEventItem},metadata:t},null,a),s(this,null,L,{kind:"method",name:"selectSearch",static:!1,private:!1,access:{has:e=>"selectSearch"in e,get:e=>e.selectSearch},metadata:t},null,a),s(this,null,C,{kind:"method",name:"clickBookmarks",static:!1,private:!1,access:{has:e=>"clickBookmarks"in e,get:e=>e.clickBookmarks},metadata:t},null,a),s(this,null,F,{kind:"method",name:"clickVisited",static:!1,private:!1,access:{has:e=>"clickVisited"in e,get:e=>e.clickVisited},metadata:t},null,a),s(this,null,I,{kind:"method",name:"clickLanguage",static:!1,private:!1,access:{has:e=>"clickLanguage"in e,get:e=>e.clickLanguage},metadata:t},null,a),s(this,null,T,{kind:"method",name:"clickCategory",static:!1,private:!1,access:{has:e=>"clickCategory"in e,get:e=>e.clickCategory},metadata:t},null,a),s(this,null,z,{kind:"method",name:"clickSeminars",static:!1,private:!1,access:{has:e=>"clickSeminars"in e,get:e=>e.clickSeminars},metadata:t},null,a),s(this,null,M,{kind:"method",name:"clickBoothInList",static:!1,private:!1,access:{has:e=>"clickBoothInList"in e,get:e=>e.clickBoothInList},metadata:t},null,a),s(this,null,O,{kind:"method",name:"clickBoothInList2",static:!1,private:!1,access:{has:e=>"clickBoothInList2"in e,get:e=>e.clickBoothInList2},metadata:t},null,a),s(this,null,A,{kind:"method",name:"clickBooth",static:!1,private:!1,access:{has:e=>"clickBooth"in e,get:e=>e.clickBooth},metadata:t},null,a),s(this,null,R,{kind:"method",name:"clickExhibitor2",static:!1,private:!1,access:{has:e=>"clickExhibitor2"in e,get:e=>e.clickExhibitor2},metadata:t},null,a),s(this,null,P,{kind:"method",name:"clickExhibitor",static:!1,private:!1,access:{has:e=>"clickExhibitor"in e,get:e=>e.clickExhibitor},metadata:t},null,a),s(this,null,V,{kind:"method",name:"showMap",static:!1,private:!1,access:{has:e=>"showMap"in e,get:e=>e.showMap},metadata:t},null,a),s(this,null,G,{kind:"method",name:"showOverlay",static:!1,private:!1,access:{has:e=>"showOverlay"in e,get:e=>e.showOverlay},metadata:t},null,a),s(this,null,N,{kind:"method",name:"toggleMapOverlay",static:!1,private:!1,access:{has:e=>"toggleMapOverlay"in e,get:e=>e.toggleMapOverlay},metadata:t},null,a),s(this,null,q,{kind:"method",name:"moveToList",static:!1,private:!1,access:{has:e=>"moveToList"in e,get:e=>e.moveToList},metadata:t},null,a),s(this,null,j,{kind:"method",name:"moveToExhibitor",static:!1,private:!1,access:{has:e=>"moveToExhibitor"in e,get:e=>e.moveToExhibitor},metadata:t},null,a),s(this,null,U,{kind:"method",name:"changeActiveListIndex",static:!1,private:!1,access:{has:e=>"changeActiveListIndex"in e,get:e=>e.changeActiveListIndex},metadata:t},null,a),s(this,null,W,{kind:"method",name:"toggleModal",static:!1,private:!1,access:{has:e=>"toggleModal"in e,get:e=>e.toggleModal},metadata:t},null,a),s(this,null,D,{kind:"method",name:"openGallery",static:!1,private:!1,access:{has:e=>"openGallery"in e,get:e=>e.openGallery},metadata:t},null,a),s(this,null,H,{kind:"method",name:"closeGallery",static:!1,private:!1,access:{has:e=>"closeGallery"in e,get:e=>e.closeGallery},metadata:t},null,a),s(this,null,K,{kind:"method",name:"openActiveListItem",static:!1,private:!1,access:{has:e=>"openActiveListItem"in e,get:e=>e.openActiveListItem},metadata:t},null,a),s(this,null,Y,{kind:"method",name:"toggleCategoryFilter",static:!1,private:!1,access:{has:e=>"toggleCategoryFilter"in e,get:e=>e.toggleCategoryFilter},metadata:t},null,a),s(this,null,$,{kind:"method",name:"applyCategoryFilters",static:!1,private:!1,access:{has:e=>"applyCategoryFilters"in e,get:e=>e.applyCategoryFilters},metadata:t},null,a),s(this,null,J,{kind:"getter",name:"filteredExhibitors",static:!1,private:!1,access:{has:e=>"filteredExhibitors"in e,get:e=>e.filteredExhibitors},metadata:t},null,a),s(this,null,Q,{kind:"method",name:"selectSessions",static:!1,private:!1,access:{has:e=>"selectSessions"in e,get:e=>e.selectSessions},metadata:t},null,a),s(this,null,X,{kind:"method",name:"selectExhibitors",static:!1,private:!1,access:{has:e=>"selectExhibitors"in e,get:e=>e.selectExhibitors},metadata:t},null,a),s(this,null,Z,{kind:"method",name:"selectTours",static:!1,private:!1,access:{has:e=>"selectTours"in e,get:e=>e.selectTours},metadata:t},null,a),s(this,null,ee,{kind:"method",name:"selectSpeakers",static:!1,private:!1,access:{has:e=>"selectSpeakers"in e,get:e=>e.selectSpeakers},metadata:t},null,a),s(this,null,te,{kind:"method",name:"selectSpeaker",static:!1,private:!1,access:{has:e=>"selectSpeaker"in e,get:e=>e.selectSpeaker},metadata:t},null,a),s(this,null,ie,{kind:"method",name:"resetFilters",static:!1,private:!1,access:{has:e=>"resetFilters"in e,get:e=>e.resetFilters},metadata:t},null,a),s(null,null,u,{kind:"field",name:"initialized",static:!1,private:!1,access:{has:e=>"initialized"in e,get:e=>e.initialized,set:(e,i)=>{e.initialized=i}},metadata:t},d,m),s(null,null,S,{kind:"field",name:"resetCameraFn",static:!1,private:!1,access:{has:e=>"resetCameraFn"in e,get:e=>e.resetCameraFn,set:(e,i)=>{e.resetCameraFn=i}},metadata:t},f,p),t&&Object.defineProperty(this,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:t})}categoryStore=n(this,a);exhibitorStore;boothStore;uiState;routeStore;routePlannerStore;toursStore;maplibreStore;layerStore;intercomStore;eventStore;poiTypeStore;heatmapStore;fuzzySearchEngineStore;categoryFilterStore;sessionsFilterStore;speakerStore;speakerFilterStore;searchStore;searchButtonsStore;bookmarksStore;urlFilterManager;shortcutRegistry;rendererService=new De;fp;initialized=n(this,d,!1);resetCameraFn=(n(this,m),n(this,f,void 0));setResetCameraFn(t){this.resetCameraFn=t}constructor(){n(this,p),this.categoryStore=new me(this),this.exhibitorStore=new fe(this),this.boothStore=new ue(this),this.routeStore=new Le(this),this.routePlannerStore=new Ce(this),this.toursStore=new Fe(this),this.uiState=new Ie(this),this.maplibreStore=new Ee(this),this.layerStore=new Be,this.intercomStore=new xe,this.eventStore=new ge(this),this.heatmapStore=new _e(this),this.poiTypeStore=new Te(this),this.fuzzySearchEngineStore=new Me(["name","title","fullName","booths.name"]),this.categoryFilterStore=new pe(this),this.sessionsFilterStore=new Oe(this),this.speakerStore=new qe(this),this.speakerFilterStore=new je(this),this.searchStore=new Ae(this),this.searchButtonsStore=new Re(this),this.bookmarksStore=new Pe(this),this.urlFilterManager=new Ve(this),this.shortcutRegistry=new Ge,this.registerShortcutProviders()}selectExhibitor(t,e=!0){this.uiState.hoveredExhibitor=null,this.uiState.details=t;var i=t.booths.filter(l=>l.visible),r=t.booths.filter(l=>!l.visible);!i.length&&r.length&&this.layerStore.updateVisibility(r[0].layer,!0),e&&setTimeout(()=>this.moveToList(t.booths.filter(l=>l.visible)),c||h?500:50)}selectBooth(t,e=!0){let i=Array.isArray(t)?t:[t];this.uiState.details=i[0],i.length===1&&i[0].schedule?.length&&(this.uiState.desiredOverlaySize="medium"),i.length===1&&i[0].layer&&!i[0].visible&&this.layerStore.mode===le.Radio&&this.layerStore.updateVisibility(i[0].layer,!0),e&&setTimeout(()=>this.moveToList(i),c||h?500:50)}reset(){const t=window.__searchi;t&&t.querySelector&&t.querySelector("input[type=search]")&&t.querySelector("input[type=search]").blur&&t.querySelector("input[type=search]").blur(),window.setTimeout(()=>{this.uiState.setKioskModeEnabled||be().then(()=>{ae(()=>{this.selectSearch(""),this.uiState.details=null,this.resetCameraFn?.(),this.uiState.menu=!1,this.searchStore.resetSearchBox(),this.searchButtonsStore.clearAllFilters()}),setTimeout(()=>{ae(()=>{this.uiState.inIdle=!0})},100)})},1e3)}selectNone(){window.__resett&&window.__resett(),this.uiState.details=this.uiState.selectedCategory}selectBookmarks(){this.uiState.details=null,this.uiState.list={type:"bookmarks"}}selectVisited(){this.uiState.details=null,this.uiState.list={type:"visited"}}selectLanguage(){this.uiState.details=null,this.uiState.list={type:we}}selectCategory(t){window.__resett&&window.__resett(),this.uiState.details=t,this.uiState.list={type:"category",category:t},this.uiState.desiredOverlaySize="full",t.exhibitors.find(i=>i.booths.find(r=>r.visible))||this.layerStore.updateVisibility(t.exhibitors[0]?.booths[0]?.layer,!0),setTimeout(()=>{this.uiState.moveToBooths=t.exhibitors.filter(i=>i.booths.find(r=>r.visible)).flatMap(i=>i.booths)},200)}selectEventItem(t,e=!0){if(this.uiState.hoveredExhibitor=null,this.uiState.details=t,this.uiState.desiredOverlaySize="medium",t.boothId){const i=this.boothStore.booths.find(r=>r.id===t.boothId);i&&i.layer&&!i.visible&&this.layerStore.mode===le.Radio&&this.layerStore.updateVisibility(i.layer,!0)}e&&setTimeout(()=>{if(t.boothId){const i=this.boothStore.booths.find(r=>r.id===t.boothId);i&&this.moveToList([i])}},c||h?500:50)}selectSearch(t){window.__resett&&window.__resett(),this.uiState.details=null,this.speakerStore.clearSelectedSpeaker(),this.uiState.list={type:"search",text:ze(t,Object.keys(this.uiState.mapSettings).map(e=>`${e}=`)),focused:!1},this.uiState.activeListIndex=-1}clickBookmarks(){window.__resett&&window.__resett(),this.uiState.menu=!1,this.selectBookmarks(),this.moveToList(),this.showMap()}clickVisited(){window.__resett&&window.__resett(),this.uiState.menu=!1,this.selectVisited(),this.moveToList(),this.showMap()}clickLanguage(){window.__resett&&window.__resett(),this.uiState.menu=!1,this.selectLanguage()}clickCategory(t){window.__resett&&window.__resett(),this.uiState.menu=!1,this.selectCategory(t),this.uiState.onCategoryClick&&this.uiState.onCategoryClick({id:t.id,name:t.name,exhibitors:t.exhibitors.map(e=>e.id)}),setTimeout(()=>{this.moveToList(),this.showMap()},100)}clickSeminars(){this.clickCategory(this.categoryStore.seminarsCategory)}clickBoothInList(t){window.__resett&&window.__resett(),this.uiState.hoveredBooth=null,this.selectBooth(t),this.moveToList([t]),this.showMap()}clickBoothInList2(t){window.__resett&&window.__resett(),this.uiState.hoveredBooth=null,this.selectBooth(t,!1),window.setTimeout(()=>{this.moveToList([t]),this.showMap()},navigator.userAgent.toLowerCase().indexOf("android")>-1?400:50)}clickBooth(t){if(this.uiState.menu=!1,this.uiState.list.type==="sessions"&&this.searchStore.selectSearch(),this.uiState.list.type==="speakers"&&this.searchStore.selectSearch(),this.uiState.list.type==="tours"&&this.searchStore.selectSearch(),this.uiState.list.type==="multi-point-tour"&&this.searchStore.selectSearch(),!(this.uiState.selectedRoute?.from&&this.uiState.selectedRoute?.to)){if(this.uiState.selectedRoute?.to&&!this.uiState.selectedRoute?.from&&t){this.routeStore.setStartPoint(t);return}if(t)this.routeStore.tempToBooth=t;else{this.uiState.details=null,this.fp.hidePathways(),this.uiState.list={type:"search",text:"",focused:!1},this.uiState.onBoothClick&&this.uiState.onBoothClick({target:null});return}if(this.uiState.onBoothClick){const e={name:"",description:""},i={target:{...t,layer:t.layer||e}};this.uiState.onBoothClick(i)}t.exhibitors.length===1&&t instanceof de?(this.heatmapStore.forceTrack={action:ye.ViewBooth,label:t.name},this.selectExhibitor(t.exhibitors[0],!1)):this.selectBooth(t,!1),this.showMap()}}clickExhibitor2(t){this.selectExhibitor(t,!0),this.showMap()}clickExhibitor(t){window.setTimeout(()=>{this.clickExhibitor2(t)},navigator.userAgent.toLowerCase().indexOf("android")>-1?400:50)}showMap(){this.uiState.overlayPosition==="bottom"&&ce&&(this.uiState.desiredOverlaySize="medium")}showOverlay(){this.uiState.overlayPosition==="bottom"&&(this.uiState.desiredOverlaySize="full")}toggleMapOverlay(){this.uiState.overlayPosition==="bottom"&&this.uiState.overlaySize==="full"?this.uiState.desiredOverlaySize="medium":this.uiState.overlayPosition==="bottom"&&this.uiState.overlaySize!=="full"&&(this.uiState.desiredOverlaySize="full")}moveToList(t){t=t||this.uiState.listItems;const e=[];t.forEach(i=>{if(i instanceof re)e.push(...i.booths.filter(r=>r.visible));else if(i instanceof oe)i.visible&&e.push(i);else if(i instanceof ke&&i.boothId){const r=this.boothStore.boothById.get(i.boothId);r?.visible&&e.push(r)}else i instanceof ve&&this.speakerStore.getEventsBySpeaker(i.id).forEach(r=>{if(!r.boothId)return;const l=this.boothStore.boothById.get(r.boothId);l?.visible&&e.push(l)})}),this.uiState.moveToBooths=e}moveToExhibitor(t){this.moveToList([t])}changeActiveListIndex(t){let e=this.uiState.activeListIndex+t;e=Math.max(0,Math.min(this.uiState.listItems.length-1,e)),this.uiState.activeListIndex=e}toggleModal(t){this.uiState.modalActive[t]=!this.uiState.modalActive[t]}openGallery(){this.uiState.galleryActive=!0}closeGallery(){this.uiState.galleryActive=!1}openActiveListItem(){const t=this.uiState.listItems[this.uiState.activeListIndex];t&&(ne.log("Opening",t),t instanceof re?this.clickExhibitor(t):t instanceof Se?this.clickCategory(t):t instanceof oe&&this.clickBoothInList2(t))}toggleCategoryFilter(){this.uiState.categoryFilterOpen=!this.uiState.categoryFilterOpen}applyCategoryFilters(t){this.uiState.selectedCategoryFilters=t,this.uiState.categoryFilterOpen=!1}get filteredExhibitors(){return this.uiState.selectedCategoryFilters.length===0?this.exhibitorStore.exhibitors:this.exhibitorStore.exhibitors.filter(t=>this.uiState.selectedCategoryFilters.some(e=>t.categories.some(i=>i.id===e.id)))}selectSessions(){this.uiState.list={type:"sessions",text:"",focused:!1},this.uiState.menu=!1,this.uiState.selectedTrack=null,this.searchButtonsStore.setSubButtonId(null),this.searchButtonsStore.subButtonsEnabled&&this.searchButtonsStore.showSubButtons("sessions"),h&&(this.uiState.desiredOverlaySize="full")}selectExhibitors(){this.uiState.list={type:"exhibitors",text:"",focused:!1},this.uiState.menu=!1,h&&(this.uiState.desiredOverlaySize="full")}selectTours(){this.uiState.list={type:"tours",text:"",focused:!1},this.uiState.menu=!1,h&&(this.uiState.desiredOverlaySize="full")}selectSpeakers(){this.uiState.list={type:"speakers",text:"",focused:!1},this.uiState.menu=!1,h&&(this.uiState.desiredOverlaySize="full")}selectSpeaker(t,e=!0){this.speakerStore.selectSpeaker(t,e)}resetFilters(){this.searchButtonsStore.clearAllFilters()}registerShortcutProviders(){this.shortcutRegistry.register(new Ne(this)),this.shortcutRegistry.register(new Ue(this)),this.shortcutRegistry.register(new We(this))}}})();export default He;
1
+ import{__esDecorate as s,__runInitializers as n}from"tslib";import{action as o,computed as he,observable as se,runInAction as ae}from"mobx";import{LANGUAGE_TYPE as ne}from"../constants";import{RendererService as ce}from"../renderer";import{URLFilterManager as ue}from"../services/URLFilterManager";import{GaEventActions as de}from"../tools/gtag";import me from"../tools/logger";import{isWebGlSupported as Se}from"../utils";import{resetLocale as fe}from"../utils/i18n";import h from"../utils/is-mobile";import c from"../utils/is-webview";import{sanitizeSearch as pe}from"../utils/sanitizeText";import ge from"./BookmarksStore";import ke,{BoothBase as oe,RegularBooth as ve}from"./BoothStore";import ye from"./CategoryFilterStore";import _e,{Category as be}from"./CategoryStore";import we,{EventItem as xe}from"./EventStore";import Be,{Exhibitor as re}from"./ExhibitorStore";import Ee from"./FuzzySearchEngineStore";import Le from"./HeatmapStore";import Ce from"./IntercomStore";import Fe,{LayersMode as le}from"./LayerStore";import Ie from"./MaplibreStore";import Te from"./PoiTypeStore";import{SearchShortcutProvider as ze}from"./providers/SearchShortcutProvider";import{SessionsShortcutProvider as Me}from"./providers/SessionsShortcutProvider";import{SpeakerShortcutProvider as Oe}from"./providers/SpeakerShortcutProvider";import Ae from"./RoutePlannerStore";import Re from"./RouteStore";import Pe from"./SearchButtonsStore";import Ve from"./SearchStore";import Ge from"./SessionsFilterStore";import{ShortcutRegistry as Ne}from"./ShortcutRegistry";import qe from"./SpeakerFilterStore";import je from"./SpeakerStore";import{SpeakerItem as Ue}from"./SpeakerStore";import We from"./ToursStore";import De from"./UIState";let He=(()=>{let a=[],u,d=[],m=[],S,f=[],p=[],g,k,v,y,_,b,w,x,B,E,L,C,F,I,T,z,M,O,A,R,P,V,G,N,q,j,U,W,D,H,K,Y,$,J,Q,X,Z,ee,te,ie;return class{static{const t=typeof Symbol=="function"&&Symbol.metadata?Object.create(null):void 0;u=[se],S=[se],g=[o],k=[o],v=[o],y=[o],_=[o],b=[o],w=[o],x=[o],B=[o],E=[o],L=[o],C=[o],F=[o],I=[o],T=[o],z=[o],M=[o],O=[o],A=[o],R=[o],P=[o],V=[o],G=[o],N=[o],q=[o],j=[o],U=[o],W=[o],D=[o],H=[o],K=[o],Y=[o],$=[o],J=[he],Q=[o],X=[o],Z=[o],ee=[o],te=[o],ie=[o],s(this,null,g,{kind:"method",name:"setResetCameraFn",static:!1,private:!1,access:{has:e=>"setResetCameraFn"in e,get:e=>e.setResetCameraFn},metadata:t},null,a),s(this,null,k,{kind:"method",name:"selectExhibitor",static:!1,private:!1,access:{has:e=>"selectExhibitor"in e,get:e=>e.selectExhibitor},metadata:t},null,a),s(this,null,v,{kind:"method",name:"selectBooth",static:!1,private:!1,access:{has:e=>"selectBooth"in e,get:e=>e.selectBooth},metadata:t},null,a),s(this,null,y,{kind:"method",name:"reset",static:!1,private:!1,access:{has:e=>"reset"in e,get:e=>e.reset},metadata:t},null,a),s(this,null,_,{kind:"method",name:"selectNone",static:!1,private:!1,access:{has:e=>"selectNone"in e,get:e=>e.selectNone},metadata:t},null,a),s(this,null,b,{kind:"method",name:"selectBookmarks",static:!1,private:!1,access:{has:e=>"selectBookmarks"in e,get:e=>e.selectBookmarks},metadata:t},null,a),s(this,null,w,{kind:"method",name:"selectVisited",static:!1,private:!1,access:{has:e=>"selectVisited"in e,get:e=>e.selectVisited},metadata:t},null,a),s(this,null,x,{kind:"method",name:"selectLanguage",static:!1,private:!1,access:{has:e=>"selectLanguage"in e,get:e=>e.selectLanguage},metadata:t},null,a),s(this,null,B,{kind:"method",name:"selectCategory",static:!1,private:!1,access:{has:e=>"selectCategory"in e,get:e=>e.selectCategory},metadata:t},null,a),s(this,null,E,{kind:"method",name:"selectEventItem",static:!1,private:!1,access:{has:e=>"selectEventItem"in e,get:e=>e.selectEventItem},metadata:t},null,a),s(this,null,L,{kind:"method",name:"selectSearch",static:!1,private:!1,access:{has:e=>"selectSearch"in e,get:e=>e.selectSearch},metadata:t},null,a),s(this,null,C,{kind:"method",name:"clickBookmarks",static:!1,private:!1,access:{has:e=>"clickBookmarks"in e,get:e=>e.clickBookmarks},metadata:t},null,a),s(this,null,F,{kind:"method",name:"clickVisited",static:!1,private:!1,access:{has:e=>"clickVisited"in e,get:e=>e.clickVisited},metadata:t},null,a),s(this,null,I,{kind:"method",name:"clickLanguage",static:!1,private:!1,access:{has:e=>"clickLanguage"in e,get:e=>e.clickLanguage},metadata:t},null,a),s(this,null,T,{kind:"method",name:"clickCategory",static:!1,private:!1,access:{has:e=>"clickCategory"in e,get:e=>e.clickCategory},metadata:t},null,a),s(this,null,z,{kind:"method",name:"clickSeminars",static:!1,private:!1,access:{has:e=>"clickSeminars"in e,get:e=>e.clickSeminars},metadata:t},null,a),s(this,null,M,{kind:"method",name:"clickBoothInList",static:!1,private:!1,access:{has:e=>"clickBoothInList"in e,get:e=>e.clickBoothInList},metadata:t},null,a),s(this,null,O,{kind:"method",name:"clickBoothInList2",static:!1,private:!1,access:{has:e=>"clickBoothInList2"in e,get:e=>e.clickBoothInList2},metadata:t},null,a),s(this,null,A,{kind:"method",name:"clickBooth",static:!1,private:!1,access:{has:e=>"clickBooth"in e,get:e=>e.clickBooth},metadata:t},null,a),s(this,null,R,{kind:"method",name:"clickExhibitor2",static:!1,private:!1,access:{has:e=>"clickExhibitor2"in e,get:e=>e.clickExhibitor2},metadata:t},null,a),s(this,null,P,{kind:"method",name:"clickExhibitor",static:!1,private:!1,access:{has:e=>"clickExhibitor"in e,get:e=>e.clickExhibitor},metadata:t},null,a),s(this,null,V,{kind:"method",name:"showMap",static:!1,private:!1,access:{has:e=>"showMap"in e,get:e=>e.showMap},metadata:t},null,a),s(this,null,G,{kind:"method",name:"showOverlay",static:!1,private:!1,access:{has:e=>"showOverlay"in e,get:e=>e.showOverlay},metadata:t},null,a),s(this,null,N,{kind:"method",name:"toggleMapOverlay",static:!1,private:!1,access:{has:e=>"toggleMapOverlay"in e,get:e=>e.toggleMapOverlay},metadata:t},null,a),s(this,null,q,{kind:"method",name:"moveToList",static:!1,private:!1,access:{has:e=>"moveToList"in e,get:e=>e.moveToList},metadata:t},null,a),s(this,null,j,{kind:"method",name:"moveToExhibitor",static:!1,private:!1,access:{has:e=>"moveToExhibitor"in e,get:e=>e.moveToExhibitor},metadata:t},null,a),s(this,null,U,{kind:"method",name:"changeActiveListIndex",static:!1,private:!1,access:{has:e=>"changeActiveListIndex"in e,get:e=>e.changeActiveListIndex},metadata:t},null,a),s(this,null,W,{kind:"method",name:"toggleModal",static:!1,private:!1,access:{has:e=>"toggleModal"in e,get:e=>e.toggleModal},metadata:t},null,a),s(this,null,D,{kind:"method",name:"openGallery",static:!1,private:!1,access:{has:e=>"openGallery"in e,get:e=>e.openGallery},metadata:t},null,a),s(this,null,H,{kind:"method",name:"closeGallery",static:!1,private:!1,access:{has:e=>"closeGallery"in e,get:e=>e.closeGallery},metadata:t},null,a),s(this,null,K,{kind:"method",name:"openActiveListItem",static:!1,private:!1,access:{has:e=>"openActiveListItem"in e,get:e=>e.openActiveListItem},metadata:t},null,a),s(this,null,Y,{kind:"method",name:"toggleCategoryFilter",static:!1,private:!1,access:{has:e=>"toggleCategoryFilter"in e,get:e=>e.toggleCategoryFilter},metadata:t},null,a),s(this,null,$,{kind:"method",name:"applyCategoryFilters",static:!1,private:!1,access:{has:e=>"applyCategoryFilters"in e,get:e=>e.applyCategoryFilters},metadata:t},null,a),s(this,null,J,{kind:"getter",name:"filteredExhibitors",static:!1,private:!1,access:{has:e=>"filteredExhibitors"in e,get:e=>e.filteredExhibitors},metadata:t},null,a),s(this,null,Q,{kind:"method",name:"selectSessions",static:!1,private:!1,access:{has:e=>"selectSessions"in e,get:e=>e.selectSessions},metadata:t},null,a),s(this,null,X,{kind:"method",name:"selectExhibitors",static:!1,private:!1,access:{has:e=>"selectExhibitors"in e,get:e=>e.selectExhibitors},metadata:t},null,a),s(this,null,Z,{kind:"method",name:"selectTours",static:!1,private:!1,access:{has:e=>"selectTours"in e,get:e=>e.selectTours},metadata:t},null,a),s(this,null,ee,{kind:"method",name:"selectSpeakers",static:!1,private:!1,access:{has:e=>"selectSpeakers"in e,get:e=>e.selectSpeakers},metadata:t},null,a),s(this,null,te,{kind:"method",name:"selectSpeaker",static:!1,private:!1,access:{has:e=>"selectSpeaker"in e,get:e=>e.selectSpeaker},metadata:t},null,a),s(this,null,ie,{kind:"method",name:"resetFilters",static:!1,private:!1,access:{has:e=>"resetFilters"in e,get:e=>e.resetFilters},metadata:t},null,a),s(null,null,u,{kind:"field",name:"initialized",static:!1,private:!1,access:{has:e=>"initialized"in e,get:e=>e.initialized,set:(e,i)=>{e.initialized=i}},metadata:t},d,m),s(null,null,S,{kind:"field",name:"resetCameraFn",static:!1,private:!1,access:{has:e=>"resetCameraFn"in e,get:e=>e.resetCameraFn,set:(e,i)=>{e.resetCameraFn=i}},metadata:t},f,p),t&&Object.defineProperty(this,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:t})}categoryStore=n(this,a);exhibitorStore;boothStore;uiState;routeStore;routePlannerStore;toursStore;maplibreStore;layerStore;intercomStore;eventStore;poiTypeStore;heatmapStore;fuzzySearchEngineStore;categoryFilterStore;sessionsFilterStore;speakerStore;speakerFilterStore;searchStore;searchButtonsStore;bookmarksStore;urlFilterManager;shortcutRegistry;rendererService=new ce;fp;initialized=n(this,d,!1);resetCameraFn=(n(this,m),n(this,f,void 0));setResetCameraFn(t){this.resetCameraFn=t}constructor(){n(this,p),this.categoryStore=new _e(this),this.exhibitorStore=new Be(this),this.boothStore=new ke(this),this.routeStore=new Re(this),this.routePlannerStore=new Ae(this),this.toursStore=new We(this),this.uiState=new De(this),this.maplibreStore=new Ie(this),this.layerStore=new Fe,this.intercomStore=new Ce,this.eventStore=new we(this),this.heatmapStore=new Le(this),this.poiTypeStore=new Te(this),this.fuzzySearchEngineStore=new Ee(["name","title","fullName","booths.name"]),this.categoryFilterStore=new ye(this),this.sessionsFilterStore=new Ge(this),this.speakerStore=new je(this),this.speakerFilterStore=new qe(this),this.searchStore=new Ve(this),this.searchButtonsStore=new Pe(this),this.bookmarksStore=new ge(this),this.urlFilterManager=new ue(this),this.shortcutRegistry=new Ne,this.registerShortcutProviders()}selectExhibitor(t,e=!0){this.uiState.hoveredExhibitor=null,this.uiState.details=t;var i=t.booths.filter(l=>l.visible),r=t.booths.filter(l=>!l.visible);!i.length&&r.length&&this.layerStore.updateVisibility(r[0].layer,!0),e&&setTimeout(()=>this.moveToList(t.booths.filter(l=>l.visible)),c||h?500:50)}selectBooth(t,e=!0){let i=Array.isArray(t)?t:[t];this.uiState.details=i[0],i.length===1&&i[0].schedule?.length&&(this.uiState.desiredOverlaySize="medium"),i.length===1&&i[0].layer&&!i[0].visible&&this.layerStore.mode===le.Radio&&this.layerStore.updateVisibility(i[0].layer,!0),e&&setTimeout(()=>this.moveToList(i),c||h?500:50)}reset(){const t=window.__searchi;t&&t.querySelector&&t.querySelector("input[type=search]")&&t.querySelector("input[type=search]").blur&&t.querySelector("input[type=search]").blur(),window.setTimeout(()=>{this.uiState.setKioskModeEnabled||fe().then(()=>{ae(()=>{this.selectSearch(""),this.uiState.details=null,this.resetCameraFn?.(),this.uiState.menu=!1,this.searchStore.resetSearchBox(),this.searchButtonsStore.clearAllFilters()}),setTimeout(()=>{ae(()=>{this.uiState.inIdle=!0})},100)})},1e3)}selectNone(){window.__resett&&window.__resett(),this.uiState.details=this.uiState.selectedCategory}selectBookmarks(){this.uiState.details=null,this.uiState.list={type:"bookmarks"}}selectVisited(){this.uiState.details=null,this.uiState.list={type:"visited"}}selectLanguage(){this.uiState.details=null,this.uiState.list={type:ne}}selectCategory(t){window.__resett&&window.__resett(),this.uiState.details=t,this.uiState.list={type:"category",category:t},this.uiState.desiredOverlaySize="full",t.exhibitors.find(i=>i.booths.find(r=>r.visible))||this.layerStore.updateVisibility(t.exhibitors[0]?.booths[0]?.layer,!0),setTimeout(()=>{this.uiState.moveToBooths=t.exhibitors.filter(i=>i.booths.find(r=>r.visible)).flatMap(i=>i.booths)},200)}selectEventItem(t,e=!0){if(this.uiState.hoveredExhibitor=null,this.uiState.details=t,this.uiState.desiredOverlaySize="medium",t.boothId){const i=this.boothStore.booths.find(r=>r.id===t.boothId);i&&i.layer&&!i.visible&&this.layerStore.mode===le.Radio&&this.layerStore.updateVisibility(i.layer,!0)}e&&setTimeout(()=>{if(t.boothId){const i=this.boothStore.booths.find(r=>r.id===t.boothId);i&&this.moveToList([i])}},c||h?500:50)}selectSearch(t){window.__resett&&window.__resett(),this.uiState.details=null,this.speakerStore.clearSelectedSpeaker(),this.uiState.list={type:"search",text:pe(t,Object.keys(this.uiState.mapSettings).map(e=>`${e}=`)),focused:!1},this.uiState.activeListIndex=-1}clickBookmarks(){window.__resett&&window.__resett(),this.uiState.menu=!1,this.selectBookmarks(),this.moveToList(),this.showMap()}clickVisited(){window.__resett&&window.__resett(),this.uiState.menu=!1,this.selectVisited(),this.moveToList(),this.showMap()}clickLanguage(){window.__resett&&window.__resett(),this.uiState.menu=!1,this.selectLanguage()}clickCategory(t){window.__resett&&window.__resett(),this.uiState.menu=!1,this.selectCategory(t),this.uiState.onCategoryClick&&this.uiState.onCategoryClick({id:t.id,name:t.name,exhibitors:t.exhibitors.map(e=>e.id)}),setTimeout(()=>{this.moveToList(),this.showMap()},100)}clickSeminars(){this.clickCategory(this.categoryStore.seminarsCategory)}clickBoothInList(t){window.__resett&&window.__resett(),this.uiState.hoveredBooth=null,this.selectBooth(t),this.moveToList([t]),this.showMap()}clickBoothInList2(t){window.__resett&&window.__resett(),this.uiState.hoveredBooth=null,this.selectBooth(t,!1),window.setTimeout(()=>{this.moveToList([t]),this.showMap()},navigator.userAgent.toLowerCase().indexOf("android")>-1?400:50)}clickBooth(t){if(this.uiState.menu=!1,this.uiState.list.type==="sessions"&&this.searchStore.selectSearch(),this.uiState.list.type==="speakers"&&this.searchStore.selectSearch(),this.uiState.list.type==="tours"&&this.searchStore.selectSearch(),this.uiState.list.type==="multi-point-tour"&&this.searchStore.selectSearch(),!(this.uiState.selectedRoute?.from&&this.uiState.selectedRoute?.to)){if(this.uiState.selectedRoute?.to&&!this.uiState.selectedRoute?.from&&t){this.routeStore.setStartPoint(t);return}if(t)this.routeStore.tempToBooth=t;else{this.uiState.details=null,this.fp.hidePathways(),this.uiState.list={type:"search",text:"",focused:!1},this.uiState.onBoothClick&&this.uiState.onBoothClick({target:null});return}if(this.uiState.onBoothClick){const e={name:"",description:""},i={target:{...t,layer:t.layer||e}};this.uiState.onBoothClick(i)}t.exhibitors.length===1&&t instanceof ve?(this.heatmapStore.forceTrack={action:de.ViewBooth,label:t.name},this.selectExhibitor(t.exhibitors[0],!1)):this.selectBooth(t,!1),this.showMap()}}clickExhibitor2(t){this.selectExhibitor(t,!0),this.showMap()}clickExhibitor(t){window.setTimeout(()=>{this.clickExhibitor2(t)},navigator.userAgent.toLowerCase().indexOf("android")>-1?400:50)}showMap(){this.uiState.overlayPosition==="bottom"&&Se&&(this.uiState.desiredOverlaySize="medium")}showOverlay(){this.uiState.overlayPosition==="bottom"&&(this.uiState.desiredOverlaySize="full")}toggleMapOverlay(){this.uiState.overlayPosition==="bottom"&&this.uiState.overlaySize==="full"?this.uiState.desiredOverlaySize="medium":this.uiState.overlayPosition==="bottom"&&this.uiState.overlaySize!=="full"&&(this.uiState.desiredOverlaySize="full")}moveToList(t){t=t||this.uiState.listItems;const e=[];t.forEach(i=>{if(i instanceof re)e.push(...i.booths.filter(r=>r.visible));else if(i instanceof oe)i.visible&&e.push(i);else if(i instanceof xe&&i.boothId){const r=this.boothStore.boothById.get(i.boothId);r?.visible&&e.push(r)}else i instanceof Ue&&this.speakerStore.getEventsBySpeaker(i.id).forEach(r=>{if(!r.boothId)return;const l=this.boothStore.boothById.get(r.boothId);l?.visible&&e.push(l)})}),this.uiState.moveToBooths=e}moveToExhibitor(t){this.moveToList([t])}changeActiveListIndex(t){let e=this.uiState.activeListIndex+t;e=Math.max(0,Math.min(this.uiState.listItems.length-1,e)),this.uiState.activeListIndex=e}toggleModal(t){this.uiState.modalActive[t]=!this.uiState.modalActive[t]}openGallery(){this.uiState.galleryActive=!0}closeGallery(){this.uiState.galleryActive=!1}openActiveListItem(){const t=this.uiState.listItems[this.uiState.activeListIndex];t&&(me.log("Opening",t),t instanceof re?this.clickExhibitor(t):t instanceof be?this.clickCategory(t):t instanceof oe&&this.clickBoothInList2(t))}toggleCategoryFilter(){this.uiState.categoryFilterOpen=!this.uiState.categoryFilterOpen}applyCategoryFilters(t){this.uiState.selectedCategoryFilters=t,this.uiState.categoryFilterOpen=!1}get filteredExhibitors(){return this.uiState.selectedCategoryFilters.length===0?this.exhibitorStore.exhibitors:this.exhibitorStore.exhibitors.filter(t=>this.uiState.selectedCategoryFilters.some(e=>t.categories.some(i=>i.id===e.id)))}selectSessions(){this.uiState.list={type:"sessions",text:"",focused:!1},this.uiState.menu=!1,this.uiState.selectedTrack=null,this.searchButtonsStore.setSubButtonId(null),this.searchButtonsStore.subButtonsEnabled&&this.searchButtonsStore.showSubButtons("sessions"),h&&(this.uiState.desiredOverlaySize="full")}selectExhibitors(){this.uiState.list={type:"exhibitors",text:"",focused:!1},this.uiState.menu=!1,h&&(this.uiState.desiredOverlaySize="full")}selectTours(){this.uiState.list={type:"tours",text:"",focused:!1},this.uiState.menu=!1,h&&(this.uiState.desiredOverlaySize="full")}selectSpeakers(){this.uiState.list={type:"speakers",text:"",focused:!1},this.uiState.menu=!1,h&&(this.uiState.desiredOverlaySize="full")}selectSpeaker(t,e=!0){this.speakerStore.selectSpeaker(t,e)}resetFilters(){this.searchButtonsStore.clearAllFilters()}registerShortcutProviders(){this.shortcutRegistry.register(new Me(this)),this.shortcutRegistry.register(new Oe(this)),this.shortcutRegistry.register(new ze(this))}}})();export default He;
@@ -1,7 +1,7 @@
1
- import RootStore from "./RootStore";
2
1
  import { Booth } from "./BoothStore";
3
- import { Exhibitor } from "./ExhibitorStore";
4
2
  import { EventItem } from "./EventStore";
3
+ import { Exhibitor } from "./ExhibitorStore";
4
+ import RootStore from "./RootStore";
5
5
  export type PlannerSource = "bookmarks" | "custom";
6
6
  export interface PlannerItem {
7
7
  type: "exhibitor" | "event" | "booth";
@@ -1 +1 @@
1
- import{__esDecorate as a,__runInitializers as u}from"tslib";import{action as c,computed as d,observable as g}from"mobx";import{findBooth as Q,Route as U}from"./RouteStore";import{t as p}from"../utils/i18n";let W=(()=>{let n=[],_,S=[],b=[],y,P=[],v=[],k,x=[],R=[],B,F=[],I=[],C,w,O,z,V,E,L,A,N,M,T,j,q,D,$,G,H;return class{static{const e=typeof Symbol=="function"&&Symbol.metadata?Object.create(null):void 0;_=[g],y=[g],k=[g],B=[g],C=[d],w=[d],O=[d],z=[d],V=[d],E=[d],L=[d],A=[d],N=[c],M=[c],T=[c],j=[c],q=[c],D=[c],$=[c],G=[c],H=[c],a(this,null,C,{kind:"getter",name:"resolvedBooths",static:!1,private:!1,access:{has:t=>"resolvedBooths"in t,get:t=>t.resolvedBooths},metadata:e},null,n),a(this,null,w,{kind:"getter",name:"stopsCount",static:!1,private:!1,access:{has:t=>"stopsCount"in t,get:t=>t.stopsCount},metadata:e},null,n),a(this,null,O,{kind:"getter",name:"startPointBoothOptions",static:!1,private:!1,access:{has:t=>"startPointBoothOptions"in t,get:t=>t.startPointBoothOptions},metadata:e},null,n),a(this,null,z,{kind:"getter",name:"startPointAutocompleteOptions",static:!1,private:!1,access:{has:t=>"startPointAutocompleteOptions"in t,get:t=>t.startPointAutocompleteOptions},metadata:e},null,n),a(this,null,V,{kind:"getter",name:"title",static:!1,private:!1,access:{has:t=>"title"in t,get:t=>t.title},metadata:e},null,n),a(this,null,E,{kind:"getter",name:"subtitleParts",static:!1,private:!1,access:{has:t=>"subtitleParts"in t,get:t=>t.subtitleParts},metadata:e},null,n),a(this,null,L,{kind:"getter",name:"routeFloors",static:!1,private:!1,access:{has:t=>"routeFloors"in t,get:t=>t.routeFloors},metadata:e},null,n),a(this,null,A,{kind:"getter",name:"currentRouteFloor",static:!1,private:!1,access:{has:t=>"currentRouteFloor"in t,get:t=>t.currentRouteFloor},metadata:e},null,n),a(this,null,N,{kind:"method",name:"setRouteFloor",static:!1,private:!1,access:{has:t=>"setRouteFloor"in t,get:t=>t.setRouteFloor},metadata:e},null,n),a(this,null,M,{kind:"method",name:"launch",static:!1,private:!1,access:{has:t=>"launch"in t,get:t=>t.launch},metadata:e},null,n),a(this,null,T,{kind:"method",name:"launchFromBookmarks",static:!1,private:!1,access:{has:t=>"launchFromBookmarks"in t,get:t=>t.launchFromBookmarks},metadata:e},null,n),a(this,null,j,{kind:"method",name:"launchFromSlugs",static:!1,private:!1,access:{has:t=>"launchFromSlugs"in t,get:t=>t.launchFromSlugs},metadata:e},null,n),a(this,null,q,{kind:"method",name:"buildRoute",static:!1,private:!1,access:{has:t=>"buildRoute"in t,get:t=>t.buildRoute},metadata:e},null,n),a(this,null,D,{kind:"method",name:"setStartPoint",static:!1,private:!1,access:{has:t=>"setStartPoint"in t,get:t=>t.setStartPoint},metadata:e},null,n),a(this,null,$,{kind:"method",name:"removeItem",static:!1,private:!1,access:{has:t=>"removeItem"in t,get:t=>t.removeItem},metadata:e},null,n),a(this,null,G,{kind:"method",name:"reorderItems",static:!1,private:!1,access:{has:t=>"reorderItems"in t,get:t=>t.reorderItems},metadata:e},null,n),a(this,null,H,{kind:"method",name:"close",static:!1,private:!1,access:{has:t=>"close"in t,get:t=>t.close},metadata:e},null,n),a(null,null,_,{kind:"field",name:"items",static:!1,private:!1,access:{has:t=>"items"in t,get:t=>t.items,set:(t,o)=>{t.items=o}},metadata:e},S,b),a(null,null,y,{kind:"field",name:"startPoint",static:!1,private:!1,access:{has:t=>"startPoint"in t,get:t=>t.startPoint,set:(t,o)=>{t.startPoint=o}},metadata:e},P,v),a(null,null,k,{kind:"field",name:"source",static:!1,private:!1,access:{has:t=>"source"in t,get:t=>t.source,set:(t,o)=>{t.source=o}},metadata:e},x,R),a(null,null,B,{kind:"field",name:"excludedVisitedCount",static:!1,private:!1,access:{has:t=>"excludedVisitedCount"in t,get:t=>t.excludedVisitedCount,set:(t,o)=>{t.excludedVisitedCount=o}},metadata:e},F,I),e&&Object.defineProperty(this,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e})}rootStore=u(this,n);items=u(this,S,[]);startPoint=(u(this,b),u(this,P,null));source=(u(this,v),u(this,x,null));excludedVisitedCount=(u(this,R),u(this,F,0));constructor(e){u(this,I),this.rootStore=e}get resolvedBooths(){const e=new Map;return this.startPoint&&e.set(this.startPoint.id,this.startPoint),this.items.forEach(t=>{t.booth&&e.set(t.booth.id,t.booth)}),Array.from(e.values())}get stopsCount(){return this.items.length}get startPointBoothOptions(){return this.rootStore.boothStore.booths}get startPointAutocompleteOptions(){const{exhibitorStore:e}=this.rootStore,t=this.startPointBoothOptions,o=[],r=new Set;return e.exhibitors.forEach(s=>{s.booths.forEach(l=>{r.add(l.id),o.push({value:l.id.toString(),label:`${s.name} - ${l.name}`})})}),t.filter(s=>!r.has(s.id)).forEach(s=>{o.push({value:s.id.toString(),label:s.name})}),o.sort((s,l)=>s.label.localeCompare(l.label,void 0,{sensitivity:"base"}))}get title(){return this.source==="bookmarks"?p("Bookmarks route"):""}get subtitleParts(){const{routeInfo:e}=this.rootStore.routeStore;let t;if(e?.time){const o=e.time;t=o<60?p("< 1 min"):p("~ {{n}} min",{n:Math.round(o/60)})}return{stops:p("{{count}} stops",{count:this.stopsCount}),from:this.startPoint?p("From {{name}}",{name:this.startPoint.name}):void 0,distance:e?e.distance:void 0,travelTime:t}}get routeFloors(){const e=this.rootStore.routeStore.pathLayers;return e.map((t,o)=>{const r=e[o+1],i=t.layer?.basePriority??0,s=r?.layer?.basePriority??0,l=r?s<i?"up":"down":void 0;return{id:t.id,name:t.layer?.shortName,description:t.layer?.description,directionToNext:l}})}get currentRouteFloor(){const e=this.routeFloors,t=this.rootStore.routeStore.currentRouteLayer;if(!e.length)return;if(!t)return e[0]?{id:e[0].id,name:e[0].name}:void 0;const o=e.find(r=>r.description?.toLowerCase()===t.description?.toLowerCase());return o?{id:o.id,name:o.name}:{id:e[0].id,name:e[0].name}}setRouteFloor(e){const t=this.rootStore.routeStore.pathLayers.find(o=>o.id===e.id);t?.layer&&this.rootStore.layerStore.updateVisibility(t.layer,!0)}launch(e,t="custom",o){this.excludedVisitedCount=e.filter(i=>i.type==="exhibitor"&&i.entity.visited).length,this.items=e.filter(i=>i.type==="exhibitor"?!i.entity.visited:!0),this.source=t,this.startPoint=o!==void 0?o:this.detectStartPoint();const{uiState:r}=this.rootStore;r.list={type:"route-planner",source:t},r.details=null,r.menu=!1,this.buildRoute()}launchFromBookmarks(e){const{exhibitorStore:t,eventStore:o,boothStore:r}=this.rootStore,i=[];t.bookmarked.forEach(s=>{i.push({type:"exhibitor",entity:s,booth:s.booths[0]||null})}),r.booths.filter(s=>s.exhibitors.length===0&&s.bookmarkedDirectly).forEach(s=>{i.push({type:"booth",entity:s,booth:s})}),this.launch(i,"bookmarks",e)}launchFromSlugs(e,t){const o=this.resolveSlugs(e);this.launch(o,"custom",t)}resolveSlugs(e){const{exhibitorStore:t,eventStore:o,boothStore:r}=this.rootStore;return e.filter(Boolean).map(i=>{const s=i.toLowerCase(),l=t.exhibitors.find(f=>f.slug?.toLowerCase()===s||f.externalId?.toLowerCase()===s);if(l)return{type:"exhibitor",entity:l,booth:l.booths[0]||null};const m=Q(i);return m?{type:"booth",entity:m,booth:m}:null}).filter(i=>i!==null)}buildRoute(){const e=[];if(this.startPoint&&this.startPoint.name&&e.push(this.startPoint.name),this.items.forEach(h=>{h.booth&&h.booth.name&&e.push(h.booth.name)}),e.length<2){this.rootStore.routeStore.updateRoute([]);return}let t;try{const h=this.rootStore.fp?.getOptimizedRoutes?.(e);t=Array.isArray(h)?h.flatMap(K=>K?.waypoints??[]):[]}catch{t=[]}const o=new Set(e),r=new Set(t),i=e.length>0&&[...o].every(h=>r.has(h));(!t.length||!i)&&(t=e.slice()),this.reorderItemsByNames(t);const s=this.resolvedBooths;if(s.length<2){this.rootStore.routeStore.updateRoute([]);return}const l=s[0],m=s[s.length-1],f=s.slice(1,-1),J=new U(l,m,f);this.rootStore.routeStore.selectRoute(J,!1),this.rootStore.uiState.setIsMultiPointRoute(f.length>0)}reorderItemsByNames(e){const t=this.startPoint?this.startPoint.name:null,o=new Map;this.items.forEach(i=>{const s=i.booth?i.booth.name:null;s&&(o.has(s)||o.set(s,[]),o.get(s).push(i))});const r=[];e.forEach(i=>{if(i!==t){const s=o.get(i);s&&s.length>0&&r.push(...s.splice(0))}}),this.items=r}detectStartPoint(){const{boothStore:e,poiTypeStore:t}=this.rootStore,o=["entrance","entrances"],r=t.poiTypes.find(i=>o.includes(i.name.toLowerCase()));return r&&e.booths.find(i=>i.poiTypeId===r.id)||null}setStartPoint(e){this.startPoint=e,this.buildRoute()}removeItem(e){this.items.splice(e,1),this.buildRoute()}reorderItems(e,t){const[o]=this.items.splice(e,1);this.items.splice(t,0,o),this.buildRoute()}close(){this.items=[],this.startPoint=null,this.source=null,this.excludedVisitedCount=0,this.rootStore.uiState.details=null,this.rootStore.uiState.list={type:"search",text:"",focused:!1},this.rootStore.routeStore.selectRoute(null,!1)}}})();export default W;
1
+ import{__esDecorate as a,__runInitializers as u}from"tslib";import{action as c,computed as d,observable as g}from"mobx";import{t as p}from"../utils/i18n";import{findBooth as Q,Route as U}from"./RouteStore";let W=(()=>{let n=[],_,S=[],b=[],y,P=[],v=[],k,x=[],R=[],B,F=[],I=[],C,w,O,z,V,E,L,A,N,M,T,j,q,D,$,G,H;return class{static{const e=typeof Symbol=="function"&&Symbol.metadata?Object.create(null):void 0;_=[g],y=[g],k=[g],B=[g],C=[d],w=[d],O=[d],z=[d],V=[d],E=[d],L=[d],A=[d],N=[c],M=[c],T=[c],j=[c],q=[c],D=[c],$=[c],G=[c],H=[c],a(this,null,C,{kind:"getter",name:"resolvedBooths",static:!1,private:!1,access:{has:t=>"resolvedBooths"in t,get:t=>t.resolvedBooths},metadata:e},null,n),a(this,null,w,{kind:"getter",name:"stopsCount",static:!1,private:!1,access:{has:t=>"stopsCount"in t,get:t=>t.stopsCount},metadata:e},null,n),a(this,null,O,{kind:"getter",name:"startPointBoothOptions",static:!1,private:!1,access:{has:t=>"startPointBoothOptions"in t,get:t=>t.startPointBoothOptions},metadata:e},null,n),a(this,null,z,{kind:"getter",name:"startPointAutocompleteOptions",static:!1,private:!1,access:{has:t=>"startPointAutocompleteOptions"in t,get:t=>t.startPointAutocompleteOptions},metadata:e},null,n),a(this,null,V,{kind:"getter",name:"title",static:!1,private:!1,access:{has:t=>"title"in t,get:t=>t.title},metadata:e},null,n),a(this,null,E,{kind:"getter",name:"subtitleParts",static:!1,private:!1,access:{has:t=>"subtitleParts"in t,get:t=>t.subtitleParts},metadata:e},null,n),a(this,null,L,{kind:"getter",name:"routeFloors",static:!1,private:!1,access:{has:t=>"routeFloors"in t,get:t=>t.routeFloors},metadata:e},null,n),a(this,null,A,{kind:"getter",name:"currentRouteFloor",static:!1,private:!1,access:{has:t=>"currentRouteFloor"in t,get:t=>t.currentRouteFloor},metadata:e},null,n),a(this,null,N,{kind:"method",name:"setRouteFloor",static:!1,private:!1,access:{has:t=>"setRouteFloor"in t,get:t=>t.setRouteFloor},metadata:e},null,n),a(this,null,M,{kind:"method",name:"launch",static:!1,private:!1,access:{has:t=>"launch"in t,get:t=>t.launch},metadata:e},null,n),a(this,null,T,{kind:"method",name:"launchFromBookmarks",static:!1,private:!1,access:{has:t=>"launchFromBookmarks"in t,get:t=>t.launchFromBookmarks},metadata:e},null,n),a(this,null,j,{kind:"method",name:"launchFromSlugs",static:!1,private:!1,access:{has:t=>"launchFromSlugs"in t,get:t=>t.launchFromSlugs},metadata:e},null,n),a(this,null,q,{kind:"method",name:"buildRoute",static:!1,private:!1,access:{has:t=>"buildRoute"in t,get:t=>t.buildRoute},metadata:e},null,n),a(this,null,D,{kind:"method",name:"setStartPoint",static:!1,private:!1,access:{has:t=>"setStartPoint"in t,get:t=>t.setStartPoint},metadata:e},null,n),a(this,null,$,{kind:"method",name:"removeItem",static:!1,private:!1,access:{has:t=>"removeItem"in t,get:t=>t.removeItem},metadata:e},null,n),a(this,null,G,{kind:"method",name:"reorderItems",static:!1,private:!1,access:{has:t=>"reorderItems"in t,get:t=>t.reorderItems},metadata:e},null,n),a(this,null,H,{kind:"method",name:"close",static:!1,private:!1,access:{has:t=>"close"in t,get:t=>t.close},metadata:e},null,n),a(null,null,_,{kind:"field",name:"items",static:!1,private:!1,access:{has:t=>"items"in t,get:t=>t.items,set:(t,o)=>{t.items=o}},metadata:e},S,b),a(null,null,y,{kind:"field",name:"startPoint",static:!1,private:!1,access:{has:t=>"startPoint"in t,get:t=>t.startPoint,set:(t,o)=>{t.startPoint=o}},metadata:e},P,v),a(null,null,k,{kind:"field",name:"source",static:!1,private:!1,access:{has:t=>"source"in t,get:t=>t.source,set:(t,o)=>{t.source=o}},metadata:e},x,R),a(null,null,B,{kind:"field",name:"excludedVisitedCount",static:!1,private:!1,access:{has:t=>"excludedVisitedCount"in t,get:t=>t.excludedVisitedCount,set:(t,o)=>{t.excludedVisitedCount=o}},metadata:e},F,I),e&&Object.defineProperty(this,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e})}rootStore=u(this,n);items=u(this,S,[]);startPoint=(u(this,b),u(this,P,null));source=(u(this,v),u(this,x,null));excludedVisitedCount=(u(this,R),u(this,F,0));constructor(e){u(this,I),this.rootStore=e}get resolvedBooths(){const e=new Map;return this.startPoint&&e.set(this.startPoint.id,this.startPoint),this.items.forEach(t=>{t.booth&&e.set(t.booth.id,t.booth)}),Array.from(e.values())}get stopsCount(){return this.items.length}get startPointBoothOptions(){return this.rootStore.boothStore.booths}get startPointAutocompleteOptions(){const{exhibitorStore:e}=this.rootStore,t=this.startPointBoothOptions,o=[],r=new Set;return e.exhibitors.forEach(s=>{s.booths.forEach(l=>{r.add(l.id),o.push({value:l.id.toString(),label:`${s.name} - ${l.name}`})})}),t.filter(s=>!r.has(s.id)).forEach(s=>{o.push({value:s.id.toString(),label:s.name})}),o.sort((s,l)=>s.label.localeCompare(l.label,void 0,{sensitivity:"base"}))}get title(){return this.source==="bookmarks"?p("Bookmarks route"):""}get subtitleParts(){const{routeInfo:e}=this.rootStore.routeStore;let t;if(e?.time){const o=e.time;t=o<60?p("< 1 min"):p("~ {{n}} min",{n:Math.round(o/60)})}return{stops:p("{{count}} stops",{count:this.stopsCount}),from:this.startPoint?p("From {{name}}",{name:this.startPoint.name}):void 0,distance:e?e.distance:void 0,travelTime:t}}get routeFloors(){const e=this.rootStore.routeStore.pathLayers;return e.map((t,o)=>{const r=e[o+1],i=t.layer?.basePriority??0,s=r?.layer?.basePriority??0,l=r?s<i?"up":"down":void 0;return{id:t.id,name:t.layer?.shortName,description:t.layer?.description,directionToNext:l}})}get currentRouteFloor(){const e=this.routeFloors,t=this.rootStore.routeStore.currentRouteLayer;if(!e.length)return;if(!t)return e[0]?{id:e[0].id,name:e[0].name}:void 0;const o=e.find(r=>r.description?.toLowerCase()===t.description?.toLowerCase());return o?{id:o.id,name:o.name}:{id:e[0].id,name:e[0].name}}setRouteFloor(e){const t=this.rootStore.routeStore.pathLayers.find(o=>o.id===e.id);t?.layer&&this.rootStore.layerStore.updateVisibility(t.layer,!0)}launch(e,t="custom",o){this.excludedVisitedCount=e.filter(i=>i.type==="exhibitor"&&i.entity.visited).length,this.items=e.filter(i=>i.type==="exhibitor"?!i.entity.visited:!0),this.source=t,this.startPoint=o!==void 0?o:this.detectStartPoint();const{uiState:r}=this.rootStore;r.list={type:"route-planner",source:t},r.details=null,r.menu=!1,this.buildRoute()}launchFromBookmarks(e){const{exhibitorStore:t,eventStore:o,boothStore:r}=this.rootStore,i=[];t.bookmarked.forEach(s=>{i.push({type:"exhibitor",entity:s,booth:s.booths[0]||null})}),r.booths.filter(s=>s.exhibitors.length===0&&s.bookmarkedDirectly).forEach(s=>{i.push({type:"booth",entity:s,booth:s})}),this.launch(i,"bookmarks",e)}launchFromSlugs(e,t){const o=this.resolveSlugs(e);this.launch(o,"custom",t)}resolveSlugs(e){const{exhibitorStore:t,eventStore:o,boothStore:r}=this.rootStore;return e.filter(Boolean).map(i=>{const s=i.toLowerCase(),l=t.exhibitors.find(f=>f.slug?.toLowerCase()===s||f.externalId?.toLowerCase()===s);if(l)return{type:"exhibitor",entity:l,booth:l.booths[0]||null};const m=Q(i);return m?{type:"booth",entity:m,booth:m}:null}).filter(i=>i!==null)}buildRoute(){const e=[];if(this.startPoint&&this.startPoint.name&&e.push(this.startPoint.name),this.items.forEach(h=>{h.booth&&h.booth.name&&e.push(h.booth.name)}),e.length<2){this.rootStore.routeStore.updateRoute([]);return}let t;try{const h=this.rootStore.fp?.getOptimizedRoutes?.(e);t=Array.isArray(h)?h.flatMap(K=>K?.waypoints??[]):[]}catch{t=[]}const o=new Set(e),r=new Set(t),i=e.length>0&&[...o].every(h=>r.has(h));(!t.length||!i)&&(t=e.slice()),this.reorderItemsByNames(t);const s=this.resolvedBooths;if(s.length<2){this.rootStore.routeStore.updateRoute([]);return}const l=s[0],m=s[s.length-1],f=s.slice(1,-1),J=new U(l,m,f);this.rootStore.routeStore.selectRoute(J,!1),this.rootStore.uiState.setIsMultiPointRoute(f.length>0)}reorderItemsByNames(e){const t=this.startPoint?this.startPoint.name:null,o=new Map;this.items.forEach(i=>{const s=i.booth?i.booth.name:null;s&&(o.has(s)||o.set(s,[]),o.get(s).push(i))});const r=[];e.forEach(i=>{if(i!==t){const s=o.get(i);s&&s.length>0&&r.push(...s.splice(0))}}),this.items=r}detectStartPoint(){const{boothStore:e,poiTypeStore:t}=this.rootStore,o=["entrance","entrances"],r=t.poiTypes.find(i=>o.includes(i.name.toLowerCase()));return r&&e.booths.find(i=>i.poiTypeId===r.id)||null}setStartPoint(e){this.startPoint=e,this.buildRoute()}removeItem(e){this.items.splice(e,1),this.buildRoute()}reorderItems(e,t){const[o]=this.items.splice(e,1);this.items.splice(t,0,o),this.buildRoute()}close(){this.items=[],this.startPoint=null,this.source=null,this.excludedVisitedCount=0,this.rootStore.uiState.details=null,this.rootStore.uiState.list={type:"search",text:"",focused:!1},this.rootStore.routeStore.selectRoute(null,!1)}}})();export default W;
@@ -1,6 +1,6 @@
1
1
  import { Point } from "simple-geometry";
2
- import type { RouteLine } from "../wayfinding/core";
3
2
  import type { ArbitraryPoint } from "../wayfinding/adapters";
3
+ import type { RouteLine } from "../wayfinding/core";
4
4
  import { Booth } from "./BoothStore";
5
5
  import { Exhibitor } from "./ExhibitorStore";
6
6
  import { Layer } from "./LayerStore";