@expofp/floorplan 3.0.0-alpha.3 → 3.0.0-alpha.5

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 (463) hide show
  1. package/dist/browser/{Debug-e8WG0DtG.js → Debug-C-eDLTyi.js} +2 -2
  2. package/dist/browser/{Demo-boypMSbE.js → Demo-Bz4sS4Cr.js} +3 -3
  3. package/dist/browser/{Free-CDDXe67y.js → Free-Dmh_yBTQ.js} +3 -3
  4. package/dist/browser/{Gallery-CzUOmw0W.js → Gallery-B0y19mXe.js} +3 -3
  5. package/dist/browser/{GpsLoader-fuJmNb6R.js → GpsLoader-CLuQFUMd.js} +3 -3
  6. package/dist/browser/{KioskStore-BFmurkVL.js → KioskStore-DfQRkubn.js} +3 -3
  7. package/dist/browser/{Mapbox-C51a0xP2.js → Mapbox-Bpxx-pxs.js} +4 -4
  8. package/dist/browser/{SetKioskMode-COh431a3.js → SetKioskMode-Dt6LsCTr.js} +4 -4
  9. package/dist/browser/{ShowKiosk-K-z2FMYd.js → ShowKiosk-nx3n9Hin.js} +3 -3
  10. package/dist/browser/{ThreeComponent-C8u-uHkz.js → ThreeComponent-DNb8u7Fd.js} +4 -4
  11. package/dist/browser/{boolean-editor-0qC2CaXN.js → boolean-editor-DngToQ6l.js} +3 -3
  12. package/dist/browser/bundle.json +25 -25
  13. package/dist/browser/{client-B3NWpX6M.js → client-JooIdiWR.js} +2 -2
  14. package/dist/browser/{data-B9sYqJWP.js → data-CquFs-CC.js} +2 -2
  15. package/dist/browser/{debug-overlay-w2mPZxWf.js → debug-overlay-uF5jExOh.js} +4 -4
  16. package/dist/browser/{debug-ui-BtilbmgE.js → debug-ui-KqARuDoS.js} +3 -3
  17. package/dist/browser/{fetch-retry.umd-BUYyExMA.js → fetch-retry.umd-BNw2UfCg.js} +1 -1
  18. package/dist/browser/{flex-C0ADIXpK.js → flex-DeTqedih.js} +2 -2
  19. package/dist/browser/{floorplan.ready-DOAwMGub.js → floorplan.ready-DlHsC7fv.js} +15 -15
  20. package/dist/browser/{index-saYO21xq.js → index-B85ohTnv.js} +4 -4
  21. package/dist/browser/{index-B2H3t32F.js → index-CETW_2Me.js} +1 -1
  22. package/dist/browser/{index-C6neMlVE.js → index-DDXYk8-M.js} +3 -3
  23. package/dist/browser/{index-cGFPJUkc.js → index-DLZUbodm.js} +2 -2
  24. package/dist/browser/{index-CvCRaJEu.js → index-J-CeK8EI.js} +2 -2
  25. package/dist/browser/{index-CKMnb1_8.js → index-tYEC7D5U.js} +4 -4
  26. package/dist/browser/index.js +1 -1
  27. package/dist/browser/{particles.min-qY9PxD2m.js → particles.min-ydes6zXA.js} +1 -1
  28. package/dist/esm/RouteCutIn.js +1 -1
  29. package/dist/esm/_misc_to_move/logBuildInfoImpl.js +1 -1
  30. package/dist/esm/components/Alert.js +1 -1
  31. package/dist/esm/components/Autocomplete.js +1 -1
  32. package/dist/esm/components/Badge.js +1 -1
  33. package/dist/esm/components/BaseFilterModal.js +1 -1
  34. package/dist/esm/components/Bookmarks.js +1 -1
  35. package/dist/esm/components/Booth/Booth.js +1 -1
  36. package/dist/esm/components/Booth/BoothOnHold.js +1 -1
  37. package/dist/esm/components/Booth/BoothReserved.js +1 -1
  38. package/dist/esm/components/Booth/BoothSpecial.js +1 -1
  39. package/dist/esm/components/Booth/BoothWithoutExhibitor.js +1 -1
  40. package/dist/esm/components/BoothRow.js +1 -1
  41. package/dist/esm/components/Button.js +1 -1
  42. package/dist/esm/components/Category.js +1 -1
  43. package/dist/esm/components/CategoryFilterModal.js +1 -1
  44. package/dist/esm/components/Checkbox.js +1 -1
  45. package/dist/esm/components/CheckboxButton.js +1 -1
  46. package/dist/esm/components/Controls.js +1 -1
  47. package/dist/esm/components/CookieConsent.js +1 -1
  48. package/dist/esm/components/Debug.js +1 -1
  49. package/dist/esm/components/Demo.js +1 -1
  50. package/dist/esm/components/Draggable.js +1 -1
  51. package/dist/esm/components/EntityItem.js +1 -1
  52. package/dist/esm/components/EntityList.js +1 -1
  53. package/dist/esm/components/EntityListRow.js +1 -1
  54. package/dist/esm/components/Event.js +1 -1
  55. package/dist/esm/components/EventBadge.js +1 -1
  56. package/dist/esm/components/Exhibitor.js +1 -1
  57. package/dist/esm/components/ExhibitorRow.js +1 -1
  58. package/dist/esm/components/Filter.js +1 -1
  59. package/dist/esm/components/Free.js +1 -1
  60. package/dist/esm/components/Gallery/Gallery.js +1 -1
  61. package/dist/esm/components/Gallery/GalleryBadges/GalleryBadges.js +1 -1
  62. package/dist/esm/components/Gallery/GalleryControls/GalleryControls.js +1 -1
  63. package/dist/esm/components/Gallery/GalleryImg/GalleryImg.js +1 -1
  64. package/dist/esm/components/Gallery/GalleryItem/GalleryItem.js +1 -1
  65. package/dist/esm/components/Gallery/GalleryModal/GalleryModal.js +1 -1
  66. package/dist/esm/components/Gallery/GalleryPreLoader.js +1 -1
  67. package/dist/esm/components/Gallery/TransformImg/TransformImg.js +1 -1
  68. package/dist/esm/components/GlobalErrorMessage.js +1 -1
  69. package/dist/esm/components/GpsLoader.js +1 -1
  70. package/dist/esm/components/HeatmapLegend.js +1 -1
  71. package/dist/esm/components/HighlightText.js +1 -1
  72. package/dist/esm/components/Kiosk/KioskStore.js +1 -1
  73. package/dist/esm/components/Kiosk/SetKiosk/Confirm/ConfirmDialog.js +1 -1
  74. package/dist/esm/components/Kiosk/SetKiosk/FormInput/RangeInput.js +1 -1
  75. package/dist/esm/components/Kiosk/SetKiosk/Message/InfoMessage.js +1 -1
  76. package/dist/esm/components/Kiosk/SetKiosk/SetKioskComponent.js +1 -1
  77. package/dist/esm/components/Kiosk/SetKiosk/SetKioskForm.js +1 -1
  78. package/dist/esm/components/Kiosk/SetKiosk/SetKioskStatusMessages.js +1 -1
  79. package/dist/esm/components/Kiosk/SetKioskMode.js +1 -1
  80. package/dist/esm/components/Kiosk/ShowKiosk.js +1 -1
  81. package/dist/esm/components/Kiosk/integrateKiosk.js +1 -1
  82. package/dist/esm/components/Kiosk/kioskUrlParam.js +1 -1
  83. package/dist/esm/components/Kiosk/recoverKioskFromUrlPrams.js +1 -1
  84. package/dist/esm/components/Kiosk/requestKioskKey.js +1 -1
  85. package/dist/esm/components/Language.js +1 -1
  86. package/dist/esm/components/LanguageRow.js +1 -1
  87. package/dist/esm/components/LargeMessage.js +1 -1
  88. package/dist/esm/components/LayersLoading.js +1 -1
  89. package/dist/esm/components/Layout.js +1 -1
  90. package/dist/esm/components/LevelBadge.js +1 -1
  91. package/dist/esm/components/LevelSelector.js +1 -1
  92. package/dist/esm/components/List.js +1 -1
  93. package/dist/esm/components/LogoOverlay.js +1 -1
  94. package/dist/esm/components/Map/Map.js +1 -1
  95. package/dist/esm/components/Map/booth-by-xy.js +1 -1
  96. package/dist/esm/components/Map/drawing/config/BoothShape.js +1 -1
  97. package/dist/esm/components/Map/drawing/config/Rect.js +1 -1
  98. package/dist/esm/components/Map/drawing/config/TextFitter.js +1 -1
  99. package/dist/esm/components/Map/drawing/config/canvases.js +1 -1
  100. package/dist/esm/components/Map/drawing/config/config-all.js +1 -1
  101. package/dist/esm/components/Map/drawing/config/config-bg.js +1 -1
  102. package/dist/esm/components/Map/drawing/config/config-booth-bg.js +1 -1
  103. package/dist/esm/components/Map/drawing/config/config-booth-bookmark.js +1 -1
  104. package/dist/esm/components/Map/drawing/config/config-booth-border.js +1 -1
  105. package/dist/esm/components/Map/drawing/config/config-booth-labels-special.d.ts +1 -1
  106. package/dist/esm/components/Map/drawing/config/config-booth-labels-special.js +2 -2
  107. package/dist/esm/components/Map/drawing/config/config-booth-labels.d.ts +1 -1
  108. package/dist/esm/components/Map/drawing/config/config-booth-labels.js +1 -1
  109. package/dist/esm/components/Map/drawing/config/config-booth-scaled.js +1 -1
  110. package/dist/esm/components/Map/drawing/config/config-booths.js +1 -1
  111. package/dist/esm/components/Map/drawing/config/config-load-layer.js +1 -1
  112. package/dist/esm/components/Map/drawing/config/config-markers.js +1 -1
  113. package/dist/esm/components/Map/drawing/config/config-wf.js +1 -1
  114. package/dist/esm/components/Map/drawing/config/config-yah.js +1 -1
  115. package/dist/esm/components/Map/drawing/config/engine-core/animation.js +1 -1
  116. package/dist/esm/components/Map/drawing/config/engine-core/canvases.js +1 -1
  117. package/dist/esm/components/Map/drawing/config/engine-core/defs.js +3 -3
  118. package/dist/esm/components/Map/drawing/config/engine-core/fonts.js +1 -1
  119. package/dist/esm/components/Map/drawing/config/engine-core/index.js +1 -1
  120. package/dist/esm/components/Map/drawing/config/engine-core/renderer.js +1 -1
  121. package/dist/esm/components/Map/drawing/config/engine-core/update-def.js +1 -1
  122. package/dist/esm/components/Map/drawing/config/engine-core/utils/rotation.js +1 -1
  123. package/dist/esm/components/Map/drawing/config/loadBoothsImages.js +1 -1
  124. package/dist/esm/components/Map/drawing/config/route-snapping/snapPositionToRoute.js +1 -1
  125. package/dist/esm/components/Map/drawing/config/route-snapping/splitRouteByPoint.js +1 -1
  126. package/dist/esm/components/Map/drawing/config/route-snapping/utils.js +1 -1
  127. package/dist/esm/components/Map/traffic/trafficLayers.js +1 -1
  128. package/dist/esm/components/Map/traffic/useBuildRoute.js +5 -5
  129. package/dist/esm/components/Map/traffic/useManageTraffic.js +1 -1
  130. package/dist/esm/components/Map/visibleArea.js +1 -1
  131. package/dist/esm/components/MapControls.js +1 -1
  132. package/dist/esm/components/Mapbox/Button.js +1 -1
  133. package/dist/esm/components/Mapbox/Dot.js +1 -1
  134. package/dist/esm/components/Mapbox/MapLoader.js +1 -1
  135. package/dist/esm/components/Mapbox/Mapbox.js +1 -1
  136. package/dist/esm/components/Mapbox/utils/data.js +1 -1
  137. package/dist/esm/components/MarketMaterialList.js +1 -1
  138. package/dist/esm/components/Menu.js +2 -2
  139. package/dist/esm/components/MobileToggleButton.js +1 -1
  140. package/dist/esm/components/Modal.js +1 -1
  141. package/dist/esm/components/MultiSelectGroups.js +1 -1
  142. package/dist/esm/components/Overlay.js +1 -1
  143. package/dist/esm/components/OverlayContainer.js +1 -1
  144. package/dist/esm/components/OverlayGrip.js +1 -1
  145. package/dist/esm/components/OverlayParticles.js +1 -1
  146. package/dist/esm/components/PermissionNotice/PermissionNotice.js +1 -1
  147. package/dist/esm/components/Radio.js +1 -1
  148. package/dist/esm/components/RebookingNotes.js +1 -1
  149. package/dist/esm/components/RebookingRadioGroup.js +1 -1
  150. package/dist/esm/components/RouteQR.js +1 -1
  151. package/dist/esm/components/Schedule.js +1 -1
  152. package/dist/esm/components/ScheduleRow.js +1 -1
  153. package/dist/esm/components/ScrollableRow.js +1 -1
  154. package/dist/esm/components/Search.js +1 -1
  155. package/dist/esm/components/SearchBox.js +1 -1
  156. package/dist/esm/components/SearchButtons/SearchButton.js +1 -1
  157. package/dist/esm/components/SearchButtons/SearchButtons.js +1 -1
  158. package/dist/esm/components/SearchButtons/SearchSubButton.js +1 -1
  159. package/dist/esm/components/SearchButtons/SearchSubButtons.js +1 -1
  160. package/dist/esm/components/Sessions.js +1 -1
  161. package/dist/esm/components/SessionsFiltersModal.js +1 -1
  162. package/dist/esm/components/Share.js +1 -1
  163. package/dist/esm/components/Shortcuts/ShortcutButton.js +1 -1
  164. package/dist/esm/components/Shortcuts/ShortcutsFiltersButton.js +1 -1
  165. package/dist/esm/components/Shortcuts/ShortcutsToolbar.js +1 -1
  166. package/dist/esm/components/SidebarActions.js +1 -1
  167. package/dist/esm/components/SimpleRow.js +1 -1
  168. package/dist/esm/components/Speaker.js +1 -1
  169. package/dist/esm/components/Speakers.js +1 -1
  170. package/dist/esm/components/SpeakersFiltersModal.js +1 -1
  171. package/dist/esm/components/Threejs/ThreeComponent.js +1 -1
  172. package/dist/esm/components/Threejs/UIManager.js +1 -1
  173. package/dist/esm/components/Threejs/common/BoothMesh.js +1 -1
  174. package/dist/esm/components/Threejs/common/SpriteMesh.js +1 -1
  175. package/dist/esm/components/Threejs/common/dataLoader.js +1 -1
  176. package/dist/esm/components/Threejs/common/modelLoader.js +1 -1
  177. package/dist/esm/components/Threejs/common/sceneLoader.js +1 -1
  178. package/dist/esm/components/Threejs/index.js +1 -1
  179. package/dist/esm/components/Threejs/mapbox/index_mapbox.js +1 -1
  180. package/dist/esm/components/Threejs/utils/textureMerger.js +1 -1
  181. package/dist/esm/components/Toast/ToastContainer.js +1 -1
  182. package/dist/esm/components/Toast/ToastProvider.js +1 -1
  183. package/dist/esm/components/ToggleButton.js +1 -1
  184. package/dist/esm/components/ToggleSwitch.js +1 -1
  185. package/dist/esm/components/TouchHand.js +1 -1
  186. package/dist/esm/components/TourPoints.js +1 -1
  187. package/dist/esm/components/Tours.js +1 -1
  188. package/dist/esm/components/ToursList.js +1 -1
  189. package/dist/esm/components/Visited.js +1 -1
  190. package/dist/esm/components/WayInformation.js +1 -1
  191. package/dist/esm/components/Wayfinding.js +1 -1
  192. package/dist/esm/components/WayfindingFloorSelector.js +1 -1
  193. package/dist/esm/components/WayfindingTemplate.js +1 -1
  194. package/dist/esm/components/Ws.js +1 -1
  195. package/dist/esm/components/YahRow.js +1 -1
  196. package/dist/esm/components/gps/GpsManager.js +1 -1
  197. package/dist/esm/components/gps/GpsPermissionRequest.js +1 -1
  198. package/dist/esm/components/gps/useUserLocationAndHeading.js +1 -1
  199. package/dist/esm/components/gps/utils.js +1 -1
  200. package/dist/esm/components/stories/Alert.stories.js +1 -1
  201. package/dist/esm/components/stories/Autocomplete.stories.js +1 -1
  202. package/dist/esm/components/stories/Badge.stories.js +1 -1
  203. package/dist/esm/components/stories/Button.stories.js +1 -1
  204. package/dist/esm/components/stories/Checkbox.stories.js +1 -1
  205. package/dist/esm/components/stories/CheckboxButton.stories.js +1 -1
  206. package/dist/esm/components/stories/CookieConsent.stories.js +1 -1
  207. package/dist/esm/components/stories/Loading.stories.js +1 -1
  208. package/dist/esm/components/stories/MapControls.stories.js +1 -1
  209. package/dist/esm/components/stories/Modal.storiesss.js +1 -1
  210. package/dist/esm/components/stories/Overlay.stories.js +1 -1
  211. package/dist/esm/components/stories/RebookingNotes.stories.js +1 -1
  212. package/dist/esm/components/stories/RebookingRadioGroup.stories.js +1 -1
  213. package/dist/esm/components/stories/Share.storiesSS.js +1 -1
  214. package/dist/esm/components/stories/SidebarActions.stories.js +1 -1
  215. package/dist/esm/components/stories/Toast.stories.js +1 -1
  216. package/dist/esm/components/stories/ToggleButton.stories.js +1 -1
  217. package/dist/esm/components/stories/ToggleSwitch.stories.js +1 -1
  218. package/dist/esm/components/stories/TouchHand.stories.js +1 -1
  219. package/dist/esm/components/stories/WayfindingFloorSelector.storiesss.js +1 -1
  220. package/dist/esm/components/stories/WayfindingTemplate.storiesss.js +1 -1
  221. package/dist/esm/core/Line.js +1 -1
  222. package/dist/esm/core/Polygon.js +1 -1
  223. package/dist/esm/core/Rect.js +1 -1
  224. package/dist/esm/data/index.js +1 -1
  225. package/dist/esm/data/svg.js +1 -1
  226. package/dist/esm/data/validate-data.js +1 -1
  227. package/dist/esm/expofp-debug.js +1 -1
  228. package/dist/esm/floorplan.loader.js +1 -1
  229. package/dist/esm/floorplan.ready.js +1 -1
  230. package/dist/esm/hooks/useDragGesture.js +1 -1
  231. package/dist/esm/hooks/useURLFilters.js +1 -1
  232. package/dist/esm/hooks/useWindowSize.js +1 -1
  233. package/dist/esm/load.js +3 -3
  234. package/dist/esm/offline/offlineManager.js +1 -1
  235. package/dist/esm/offline/sw.js +1 -1
  236. package/dist/esm/services/URLFilterManager.js +1 -1
  237. package/dist/esm/services/routing.js +1 -1
  238. package/dist/esm/store/BaseFilterStore.js +1 -1
  239. package/dist/esm/store/BoothStore.js +1 -1
  240. package/dist/esm/store/CategoryFilterStore.js +1 -1
  241. package/dist/esm/store/CategoryStore.js +1 -1
  242. package/dist/esm/store/EventStore.js +1 -1
  243. package/dist/esm/store/ExhibitorStore.js +1 -1
  244. package/dist/esm/store/FuzzySearchEngineStore.js +1 -1
  245. package/dist/esm/store/HeatmapStore.js +1 -1
  246. package/dist/esm/store/LanguageStore.js +1 -1
  247. package/dist/esm/store/LayerStore.js +1 -1
  248. package/dist/esm/store/MapboxStore.js +1 -1
  249. package/dist/esm/store/RootStore.js +1 -1
  250. package/dist/esm/store/RouteStore.js +1 -1
  251. package/dist/esm/store/SearchStore.js +1 -1
  252. package/dist/esm/store/SessionsFilterStore.js +1 -1
  253. package/dist/esm/store/ShortcutRegistry.js +1 -1
  254. package/dist/esm/store/SpeakerFilterStore.js +1 -1
  255. package/dist/esm/store/SpeakerStore.js +1 -1
  256. package/dist/esm/store/ToursStore.js +1 -1
  257. package/dist/esm/store/UIState.d.ts +1 -1
  258. package/dist/esm/store/UIState.js +1 -1
  259. package/dist/esm/store/index.js +1 -1
  260. package/dist/esm/store/init/index.js +1 -1
  261. package/dist/esm/store/init/init-booths.js +1 -1
  262. package/dist/esm/store/init/init-categories.js +1 -1
  263. package/dist/esm/store/init/init-events.js +1 -1
  264. package/dist/esm/store/init/init-exhibitors.js +1 -1
  265. package/dist/esm/store/init/init-heatmap.js +1 -1
  266. package/dist/esm/store/init/init-language.js +1 -1
  267. package/dist/esm/store/init/init-layers.js +1 -1
  268. package/dist/esm/store/init/init-speakers.js +1 -1
  269. package/dist/esm/store/init/init-ui.js +1 -1
  270. package/dist/esm/store/providers/SearchShortcutProvider.js +1 -1
  271. package/dist/esm/store/providers/SessionsShortcutProvider.js +1 -1
  272. package/dist/esm/store/providers/SessionsSubButtonProvider.js +1 -1
  273. package/dist/esm/store/providers/SpeakerShortcutProvider.js +1 -1
  274. package/dist/esm/store/search-buttons/SearchButtonsActions.js +1 -1
  275. package/dist/esm/store/search-buttons/SearchButtonsFactory.js +1 -1
  276. package/dist/esm/store/search-buttons/SearchButtonsFilters.js +1 -1
  277. package/dist/esm/store/search-buttons/SearchButtonsState.js +1 -1
  278. package/dist/esm/store/search-buttons/SearchButtonsStore.js +1 -1
  279. package/dist/esm/store/search-buttons/constants.js +1 -1
  280. package/dist/esm/store/search-buttons/utils.js +1 -1
  281. package/dist/esm/storybook/decorators/StoryWrapper.js +1 -1
  282. package/dist/esm/storybook/decorators/WithResize.js +1 -1
  283. package/dist/esm/tools/Color.js +1 -1
  284. package/dist/esm/tools/debounce.js +1 -1
  285. package/dist/esm/tools/gtag.js +1 -1
  286. package/dist/esm/tools/handleDebugMode.js +1 -1
  287. package/dist/esm/tools/loaders.js +1 -1
  288. package/dist/esm/tools/logger.js +1 -1
  289. package/dist/esm/tools/report-error.js +3 -3
  290. package/dist/esm/tools/reset.js +1 -1
  291. package/dist/esm/tools/sentry.js +1 -1
  292. package/dist/esm/tools/settings.js +1 -1
  293. package/dist/esm/tools/slug.js +1 -1
  294. package/dist/esm/tools/track-event.js +1 -1
  295. package/dist/esm/tools/webgl-logger.js +1 -1
  296. package/dist/esm/utils/calcSpeed.js +1 -1
  297. package/dist/esm/utils/customCommands.js +1 -1
  298. package/dist/esm/utils/detectLimitedModeViaImage.js +1 -1
  299. package/dist/esm/utils/entity-storage.js +1 -1
  300. package/dist/esm/utils/eventFullBadge.js +1 -1
  301. package/dist/esm/utils/eventTime.js +1 -1
  302. package/dist/esm/utils/getContrastTextColor.js +1 -1
  303. package/dist/esm/utils/getLogoUrl.js +1 -1
  304. package/dist/esm/utils/getMostFrequent.js +1 -1
  305. package/dist/esm/utils/getRenderTargetFromRoot.js +1 -1
  306. package/dist/esm/utils/gps.js +1 -1
  307. package/dist/esm/utils/i18n.js +1 -1
  308. package/dist/esm/utils/imageloader.js +1 -1
  309. package/dist/esm/utils/is-iframe.js +1 -1
  310. package/dist/esm/utils/loadCustomCss.js +1 -1
  311. package/dist/esm/utils/loadIcons.js +1 -1
  312. package/dist/esm/utils/loadImagesInBatches.js +1 -1
  313. package/dist/esm/utils/mapEntity.js +1 -1
  314. package/dist/esm/utils/mobx.js +1 -1
  315. package/dist/esm/utils/preview-exhibitor.js +1 -1
  316. package/dist/esm/utils/responsiveClass.js +1 -1
  317. package/dist/esm/utils/sanitizeHtml.js +1 -1
  318. package/dist/esm/utils/sanitizeText.js +1 -1
  319. package/dist/esm/utils/strEqual.js +1 -1
  320. package/dist/esm/utils/toRadians.js +1 -1
  321. package/dist/esm/utils/urlEncoding.js +1 -1
  322. package/dist/esm/utils/useHeatmapData.js +1 -1
  323. package/dist/esm/utils/useHeatmapOverlay.js +1 -1
  324. package/dist/esm/utils/useOnClickOutside.js +1 -1
  325. package/dist/esm/utils/useRenderTarget.js +1 -1
  326. package/dist/esm/utils/useTimeout.js +1 -1
  327. package/dist/esm/utils/wayfinding.js +1 -1
  328. package/dist/stats.html +1 -1
  329. package/package.json +14 -4
  330. package/dist/esm/components/Map/_NEW_booth-by-xy.d.ts +0 -11
  331. package/dist/esm/components/Map/_NEW_booth-by-xy.js +0 -1
  332. package/dist/esm/components/Map/drawing/Drawer1.d.ts +0 -28
  333. package/dist/esm/components/Map/drawing/Drawer1.js +0 -1
  334. package/dist/esm/components/Map/drawing/Matrix.d.ts +0 -33
  335. package/dist/esm/components/Map/drawing/Matrix.js +0 -1
  336. package/dist/esm/components/Map/drawing/config/NumberObserver.d.ts +0 -10
  337. package/dist/esm/components/Map/drawing/config/NumberObserver.js +0 -1
  338. package/dist/esm/components/Map/drawing/config/animate.d.ts +0 -2
  339. package/dist/esm/components/Map/drawing/config/animate.js +0 -1
  340. package/dist/esm/components/Map/drawing/config/config-canvas.d.ts +0 -3
  341. package/dist/esm/components/Map/drawing/config/config-canvas.js +0 -1
  342. package/dist/esm/components/Map/drawing/config/config-debug-circles.d.ts +0 -3
  343. package/dist/esm/components/Map/drawing/config/config-debug-circles.js +0 -1
  344. package/dist/esm/components/Map/drawing/config/config-dim.d.ts +0 -3
  345. package/dist/esm/components/Map/drawing/config/config-dim.js +0 -1
  346. package/dist/esm/components/Map/drawing/config/config-gps.d.ts +0 -2
  347. package/dist/esm/components/Map/drawing/config/config-gps.js +0 -1
  348. package/dist/esm/components/Map/drawing/config/config-img.d.ts +0 -4
  349. package/dist/esm/components/Map/drawing/config/config-img.js +0 -1
  350. package/dist/esm/components/Map/drawing/config/config-matrix.d.ts +0 -6
  351. package/dist/esm/components/Map/drawing/config/config-matrix.js +0 -1
  352. package/dist/esm/components/Map/drawing/config/config-sizes.d.ts +0 -3
  353. package/dist/esm/components/Map/drawing/config/config-sizes.js +0 -1
  354. package/dist/esm/components/Map/drawing/painters/BgPainter.d.ts +0 -28
  355. package/dist/esm/components/Map/drawing/painters/BgPainter.js +0 -25
  356. package/dist/esm/components/Map/drawing/painters/ImagePainter.d.ts +0 -82
  357. package/dist/esm/components/Map/drawing/painters/ImagePainter.js +0 -74
  358. package/dist/esm/components/Map/drawing/painters/Painter.d.ts +0 -12
  359. package/dist/esm/components/Map/drawing/painters/Painter.js +0 -1
  360. package/dist/esm/components/Map/drawing/painters/RectPainter.d.ts +0 -123
  361. package/dist/esm/components/Map/drawing/painters/RectPainter.js +0 -86
  362. package/dist/esm/components/Map/drawing/painters/Sprite.d.ts +0 -14
  363. package/dist/esm/components/Map/drawing/painters/Sprite.js +0 -1
  364. package/dist/esm/components/Map/drawing/painters/TrianglePainter.d.ts +0 -53
  365. package/dist/esm/components/Map/drawing/painters/TrianglePainter.js +0 -29
  366. package/dist/esm/components/Map/drawing/painters/common-glsl.d.ts +0 -2
  367. package/dist/esm/components/Map/drawing/painters/common-glsl.js +0 -14
  368. package/dist/esm/components/Map/marker-by-xy.d.ts +0 -3
  369. package/dist/esm/components/Map/marker-by-xy.js +0 -1
  370. package/dist/esm/components/Map/utils.d.ts +0 -3
  371. package/dist/esm/components/Map/utils.js +0 -1
  372. package/dist/esm/components/Map/zoom-bound.d.ts +0 -6
  373. package/dist/esm/components/Map/zoom-bound.js +0 -1
  374. package/dist/esm/components/Map/zoom-inertia.d.ts +0 -3
  375. package/dist/esm/components/Map/zoom-inertia.js +0 -1
  376. package/dist/esm/components/Map1/Map.d.ts +0 -25
  377. package/dist/esm/components/Map1/Map.js +0 -1
  378. package/dist/esm/components/Map1/booth-by-xy.d.ts +0 -3
  379. package/dist/esm/components/Map1/booth-by-xy.js +0 -1
  380. package/dist/esm/components/Map1/drawing/config/BoothDrawerBase.d.ts +0 -8
  381. package/dist/esm/components/Map1/drawing/config/BoothDrawerBase.js +0 -1
  382. package/dist/esm/components/Map1/drawing/config/BoothShape.d.ts +0 -8
  383. package/dist/esm/components/Map1/drawing/config/BoothShape.js +0 -1
  384. package/dist/esm/components/Map1/drawing/config/Rect.d.ts +0 -7
  385. package/dist/esm/components/Map1/drawing/config/Rect.js +0 -1
  386. package/dist/esm/components/Map1/drawing/config/TextFitter.d.ts +0 -11
  387. package/dist/esm/components/Map1/drawing/config/TextFitter.js +0 -1
  388. package/dist/esm/components/Map1/drawing/config/canvases.d.ts +0 -8
  389. package/dist/esm/components/Map1/drawing/config/canvases.js +0 -1
  390. package/dist/esm/components/Map1/drawing/config/config-all.d.ts +0 -5
  391. package/dist/esm/components/Map1/drawing/config/config-all.js +0 -1
  392. package/dist/esm/components/Map1/drawing/config/config-bg.d.ts +0 -9
  393. package/dist/esm/components/Map1/drawing/config/config-bg.js +0 -1
  394. package/dist/esm/components/Map1/drawing/config/config-booth-bg.d.ts +0 -20
  395. package/dist/esm/components/Map1/drawing/config/config-booth-bg.js +0 -1
  396. package/dist/esm/components/Map1/drawing/config/config-booth-bookmark.d.ts +0 -20
  397. package/dist/esm/components/Map1/drawing/config/config-booth-bookmark.js +0 -1
  398. package/dist/esm/components/Map1/drawing/config/config-booth-border.d.ts +0 -12
  399. package/dist/esm/components/Map1/drawing/config/config-booth-border.js +0 -1
  400. package/dist/esm/components/Map1/drawing/config/config-booth-labels-special.d.ts +0 -18
  401. package/dist/esm/components/Map1/drawing/config/config-booth-labels-special.js +0 -2
  402. package/dist/esm/components/Map1/drawing/config/config-booth-labels.d.ts +0 -43
  403. package/dist/esm/components/Map1/drawing/config/config-booth-labels.js +0 -1
  404. package/dist/esm/components/Map1/drawing/config/config-booth-scaled.d.ts +0 -14
  405. package/dist/esm/components/Map1/drawing/config/config-booth-scaled.js +0 -1
  406. package/dist/esm/components/Map1/drawing/config/config-booths.d.ts +0 -6
  407. package/dist/esm/components/Map1/drawing/config/config-booths.js +0 -1
  408. package/dist/esm/components/Map1/drawing/config/config-load-layer.d.ts +0 -5
  409. package/dist/esm/components/Map1/drawing/config/config-load-layer.js +0 -1
  410. package/dist/esm/components/Map1/drawing/config/config-markers.d.ts +0 -6
  411. package/dist/esm/components/Map1/drawing/config/config-markers.js +0 -1
  412. package/dist/esm/components/Map1/drawing/config/config-wf.d.ts +0 -11
  413. package/dist/esm/components/Map1/drawing/config/config-wf.js +0 -1
  414. package/dist/esm/components/Map1/drawing/config/config-yah.d.ts +0 -2
  415. package/dist/esm/components/Map1/drawing/config/config-yah.js +0 -1
  416. package/dist/esm/components/Map1/drawing/config/engine-core/animation.d.ts +0 -3
  417. package/dist/esm/components/Map1/drawing/config/engine-core/animation.js +0 -1
  418. package/dist/esm/components/Map1/drawing/config/engine-core/canvases.d.ts +0 -5
  419. package/dist/esm/components/Map1/drawing/config/engine-core/canvases.js +0 -1
  420. package/dist/esm/components/Map1/drawing/config/engine-core/defs.d.ts +0 -16
  421. package/dist/esm/components/Map1/drawing/config/engine-core/defs.js +0 -3
  422. package/dist/esm/components/Map1/drawing/config/engine-core/fonts.d.ts +0 -9
  423. package/dist/esm/components/Map1/drawing/config/engine-core/fonts.js +0 -1
  424. package/dist/esm/components/Map1/drawing/config/engine-core/index.d.ts +0 -20
  425. package/dist/esm/components/Map1/drawing/config/engine-core/index.js +0 -1
  426. package/dist/esm/components/Map1/drawing/config/engine-core/renderer.d.ts +0 -5
  427. package/dist/esm/components/Map1/drawing/config/engine-core/renderer.js +0 -1
  428. package/dist/esm/components/Map1/drawing/config/engine-core/settings.d.ts +0 -4
  429. package/dist/esm/components/Map1/drawing/config/engine-core/settings.js +0 -1
  430. package/dist/esm/components/Map1/drawing/config/engine-core/types.d.ts +0 -39
  431. package/dist/esm/components/Map1/drawing/config/engine-core/types.js +0 -1
  432. package/dist/esm/components/Map1/drawing/config/engine-core/update-def.d.ts +0 -12
  433. package/dist/esm/components/Map1/drawing/config/engine-core/update-def.js +0 -1
  434. package/dist/esm/components/Map1/drawing/config/engine-core/utils/rotation.d.ts +0 -5
  435. package/dist/esm/components/Map1/drawing/config/engine-core/utils/rotation.js +0 -1
  436. package/dist/esm/components/Map1/drawing/config/loadBoothsImages.d.ts +0 -12
  437. package/dist/esm/components/Map1/drawing/config/loadBoothsImages.js +0 -1
  438. package/dist/esm/components/Map1/drawing/config/route-snapping/index.d.ts +0 -6
  439. package/dist/esm/components/Map1/drawing/config/route-snapping/index.js +0 -1
  440. package/dist/esm/components/Map1/drawing/config/route-snapping/snapPositionToRoute.d.ts +0 -20
  441. package/dist/esm/components/Map1/drawing/config/route-snapping/snapPositionToRoute.js +0 -1
  442. package/dist/esm/components/Map1/drawing/config/route-snapping/snapThreshold.d.ts +0 -23
  443. package/dist/esm/components/Map1/drawing/config/route-snapping/snapThreshold.js +0 -1
  444. package/dist/esm/components/Map1/drawing/config/route-snapping/splitRouteByPoint.d.ts +0 -6
  445. package/dist/esm/components/Map1/drawing/config/route-snapping/splitRouteByPoint.js +0 -1
  446. package/dist/esm/components/Map1/drawing/config/route-snapping/types.d.ts +0 -20
  447. package/dist/esm/components/Map1/drawing/config/route-snapping/types.js +0 -1
  448. package/dist/esm/components/Map1/traffic/UpdateQueue.d.ts +0 -13
  449. package/dist/esm/components/Map1/traffic/UpdateQueue.js +0 -1
  450. package/dist/esm/components/Map1/traffic/trafficLayers.d.ts +0 -17
  451. package/dist/esm/components/Map1/traffic/trafficLayers.js +0 -1
  452. package/dist/esm/components/Map1/traffic/useBuildRoute.d.ts +0 -10
  453. package/dist/esm/components/Map1/traffic/useBuildRoute.js +0 -7
  454. package/dist/esm/components/Map1/traffic/useManageTraffic.d.ts +0 -11
  455. package/dist/esm/components/Map1/traffic/useManageTraffic.js +0 -1
  456. package/dist/esm/components/Map1/visibleArea.d.ts +0 -15
  457. package/dist/esm/components/Map1/visibleArea.js +0 -1
  458. package/dist/esm/lib/floorplan.d.ts +0 -2
  459. package/dist/esm/lib/floorplan.js +0 -1
  460. package/dist/esm/tools/debug.d.ts +0 -5
  461. package/dist/esm/tools/debug.js +0 -1
  462. package/dist/esm/tools/pdf.d.ts +0 -2
  463. package/dist/esm/tools/pdf.js +0 -1
@@ -1 +1 @@
1
- import{__esDecorate as l,__runInitializers as y}from"tslib";import{action as h,observable as M,reaction as m}from"mobx";import a from"../tools/logger";import{PREFIXES as N}from"../store/search-buttons/constants";import{encodeStringArray as _,decodeStringArray as A,encodeString as X,decodeString as G,toLowerCaseArray as g,toLowerCaseString as $}from"../utils/urlEncoding";const d={CATEGORIES:"categories",POI_TYPE:"poiType",POI_TYPES:"poiTypes",EXHIBITORS:"exhibitors"};let H=(()=>{let n=[],T,S=[],f=[],P,L=[],I=[],C,w,b,O,R,U,v,E,x,B;return class{static{const t=typeof Symbol=="function"&&Symbol.metadata?Object.create(null):void 0;T=[M],P=[M],C=[h],w=[h],b=[h],O=[h],R=[h],U=[h],v=[h],E=[h],x=[h],B=[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,w,{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,b,{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,O,{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,R,{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,U,{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,v,{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,E,{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,x,{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,B,{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,T,{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},S,f),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,S,{categories:[],poiType:null,poiTypes:[],exhibitors:!1});isInitialized=(y(this,f),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?A(e):[],i=t.get(d.POI_TYPE),s=i?G(i):null,o=t.get(d.POI_TYPES),p=o?A(o):[],c=t.get(d.EXHIBITORS),u=c==="true"||c==="",z=p.filter(F=>{if(!F)return!1;const k=this.rootStore.poiTypeStore.poiTypes.some(Y=>Y.name.toLowerCase()===F.toLowerCase());return k||a.warn(`POI type not found in data: ${F}`),k});r.length>0&&(s||z.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:z,exhibitors:u},a.log("URLFilterManager parsed filters:",{categories:r,poiType:s,poiTypes:p,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(`${N.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=_(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=_(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=g(t),this.currentFilters.poiType=null,this.isInitialized&&this.updateURLFromFilters()}setPoiType(t){this.currentFilters.poiType=$(t),this.currentFilters.poiTypes=[],this.currentFilters.categories=[],this.isInitialized&&this.updateURLFromFilters()}setPoiTypes(t){this.currentFilters.poiTypes=g(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(){m(()=>this.rootStore.uiState.selectedCategoryFilters,t=>{if(this.isInitialized&&t.length>0){const e=g(t.map(r=>r.name));this.setCategories(e)}}),m(()=>this.rootStore.uiState.selectedPoiTypeFilters,t=>{if(this.isInitialized&&t.length>0)if(t.length===1){const e=$(t[0].name);e&&this.setPoiType(e)}else{const e=g(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){m(()=>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(p=>t.selectedCategoryFilters.some(c=>p.categories.some(u=>u.id===c.id)));i=r.booths.filter(p=>o.some(c=>c.id===p.exhibitors[0]?.id))}if(t.selectedPoiTypeFilters.length>0){const o=r.booths.filter(p=>t.selectedPoiTypeFilters.some(c=>p.poiTypeId===c.id));i.length>0?i=i.filter(p=>o.some(c=>c.id===p.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 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 +1 @@
1
- import{createBrowserHistory as D}from"history";import{autorun as T,reaction as L}from"mobx";import{handleCustomCommand as B}from"../utils/customCommands";import{BUILD_ROUTE_KEY as J,KIOSK_ENABLE_KEY as _,MAP_SETTINGS_KEY as Q,PREVIEW_MODE_QUERY as P,PREVIEW_MODE_STORAGE_KEY as M,SEPARATOR as X,PATHWAY_KEY as A,LANG_KEY as O,UI_SCALE_PARAM_KEY as W,UI_SCALE_RESET_PARAM_KEY as F}from"../constants";import k from"../data";import s,{uiState as i}from"../store";import{CurrentPosition as Z,extractRoute as ee}from"../store/RouteStore";import{setConsentSettings as $}from"../tools/gtag";import x from"../tools/logger";import{isLocalStorageAvailable as K}from"../utils/localStorage";import{yahKey as te}from"../utils/yah";import{areLayersEnabled as oe}from"../utils/areLayersEnabled";import se from"../core/Rect";import{getMostFrequent as re}from"../utils/getMostFrequent";import{runInAction as R}from"mobx";import{recoverKioskFromUrlPrams as ae}from"../components/Kiosk/recoverKioskFromUrlPrams";let d=!1,I=!1,Y=null,N=null,H=null,G;const u=D(),E=window.location.pathname,f=[];export function getLocationHistory(){return f}function w(t){return E+t}function ie(t){d||u.push(w(t))}export function historyReplace(t){d||u.push(w(t))}function h(t){return t.replace(/=&/g,"&").replace(/=$/,"")}function j(){let t="";const n=i.selectedExhibitor,a=i.selectedBooth,e=i.selectedEventItem,o=i.selectedRoute,r=i.selectedSpeaker,l=i.setKioskModeEnabled;if(o&&!i.isMultiPointRoute){const p=o.from?`:${o.from.slug}`:"",S=o.to?`:${o.to.slug}`:"",y=s.routeStore.onlyAccessible?":true":":false",g=o.waypoints?.map(c=>`:${c.slug}`).join("");t=`route${S}${p}${y}${g||""}`}else if(n)t=n.slug;else if(a)t=a.slug;else if(e)t=e.slug;else if(r)t=r.slug;else if(l)t="";else switch(i.list.type){case"bookmarks":t="bookmarks";break;case"visited":t="visited";break;case"category":t=i.selectedCategory.slug;break;case"search":t=i.list.text||"";break;case"language":t=i.list.type;break;case"filter":t=`${i.list.query.key}=${i.list.query.value}`;break;case"sessions":t="sessions";break;case"exhibitors":t="exhibitors";break;case"speakers":t="speakers";break;case"tours":t="tours";break;case"multi-point-tour":t=`tour=${i.list.tourId}`;break;default:throw new Error("Unkown list.type")}if(I)return;const m=t?"?"+encodeURIComponent(t):"";u.location.search!==m&&(n!==Y||a!==N||e!==H?ie(m):historyReplace(m),Y=n,N=a,H=e)}function z(){const t=i.selectedExhibitor,n=i.selectedEventItem,a=i.selectedSpeaker;let e="";t?e=t.name:n?e=n.name:a?e=a.name:i.list.type==="search"&&i.list.text?e="`"+(i.list.text||"")+"`":i.list.type==="multi-point-tour"&&i.tourTitle&&(e=i.tourTitle),e.length&&(e+=" \u2013 "),e+=k.title,k.subtitle&&(e+=" \u2013 "+k.subtitle),e+=" \u2013 Expo Floor Plan by ExpoFP",document.title=e}function U(){const t=u.location.search.length>1?decodeURIComponent(u.location.search.substring(1)):"";return B(t,!1)}function b(){const t=u.location.search.length>1?decodeURIComponent(u.location.search.substring(1)):"";I=!0;const n=s.boothStore.booths.find(e=>e.slug?.toLowerCase()===t?.toLowerCase()||e.externalId?.toLowerCase()===t?.toLowerCase()||e.externalId?.toLowerCase()?.replace(/\s+/g,"")===t?.toLowerCase()),a=new URLSearchParams(decodeURIComponent(window.location.search));if(ae(a),ne(a),!U())if(a.has("yah")){const e=a.get("yah");B(`${te} ${e}`,!0)}else if(a.has(_)){const e=a.get(_);e==="1"?i.kiosk=!0:e==="0"&&(i.kiosk=!1,i.resetUIScale())}else if(t==="tours")s.selectTours();else if(t.startsWith("tour=")){const e=t.split("=")[1],o=s.toursStore.getTourById(e);o?s.toursStore.launchTour(o,o.name,o.description):(console.warn(`Route with id "${e}" not found`),s.selectTours())}else if(t.startsWith("route")){const e=t.split(X);R(()=>{s.routeStore.onlyAccessible=e[3]==="true"});const o=ee(e[2],e[1],e.slice(4));s.routeStore.selectRoute(o);const r=e.slice(4).length>0;s.uiState.setIsMultiPointRoute(r);const l=new URLSearchParams(window.location.search).get("title");l&&s.uiState.setRouteTitle(l)}else if(t==="bookmarks")s.selectBookmarks();else if(t==="visited")s.selectVisited();else if(t==="language")s.selectLanguage();else if(a.has(O)){const e=a.get(O)?.toLowerCase();s.languageStore.languageIds.has(e)&&s.languageStore.changeLanguage(e)}else if(t==="sessions")s.selectSessions();else if(t==="exhibitors")s.selectExhibitors();else if(t==="speakers")s.selectSpeakers();else if(t==="-pdf")s.uiState.printingPdf=!0;else if(t.startsWith("hide"))s.uiState.setVisibility(new URLSearchParams(t).get("hide").split(",").filter(Boolean).reduce((e,o)=>({...e,[o]:!1}),{}));else if(n)setTimeout(()=>s.selectBooth(n),250);else if(t===J)s.uiState.startBuildRoute();else if(a.get(A)){const e=a.get(A),o=a.get("booths")?.split(",")||[],r=a.get("exhibitors")?.split(",")||[],l=a.get("tour");if(l){const c=s.toursStore.getTourById(l);c&&R(()=>{s.uiState.setTourTitle(c.name),s.uiState.setTourDescription(c.description),s.uiState.setIsMultiPointTour(!0),s.uiState.setMultiPointTourList(c.id)})}const m=s.boothStore.booths,p=s.exhibitorStore.exhibitors,S=m.filter(c=>o.includes(c.externalId)),y=p.filter(c=>r.includes(c.externalId)).flatMap(c=>c.booths),g=[...S,...y];if(oe()){const c=g.map(q=>q.layer.name),v=re(c);v&&s.fp.activateFloor({name:v})}(o.length>0||r.length>0)&&s.fp.highlightEntities([...o,...r]),s.layerStore.showPathWay(e),g.length>0&&R(()=>{s.uiState.moveToRect=se.fromMultiple(g.map(c=>c.rect).filter(Boolean)),s.uiState.rollReset=!0})}else{const e=s.eventStore.eventItems.find(o=>o.slug?.toLowerCase()===t?.toLowerCase()||o.externalId?.toLowerCase()===t?.toLowerCase());if(e)s.selectEventItem(e,!0);else{const o=s.exhibitorStore.exhibitors.find(r=>r.slug?.toLowerCase()===t?.toLowerCase()||r.externalId?.toLowerCase()===t?.toLowerCase());if(t.startsWith("exhibitors")){const r=t.split("=")[1].split(",");setTimeout(()=>s.fp.selectExhibitor(r),250)}else if(o)setTimeout(()=>s.clickExhibitor(o),250);else if(t.includes("=")&&(t.startsWith("categories=")||t.startsWith("poiType=")))x.log("Skipping filter parameter in dispatchFromUrl:",t);else{const r=s.categoryStore.categories.find(l=>l.slug===t);if(r)s.selectCategory(r);else{const l=s.speakerStore.findBySlug(t);l?s.selectSpeaker(l,!0):t.includes("heatmap=true")||s.searchStore.selectSearch(t)}}}}I=!1,j(),z()}function C(){const t=u.location.search;if(t.includes("heatmap")){const e=new URL(window.location.href);if(e.searchParams.get("heatmap")==="true")if(e.searchParams.get("type")==="yah"){let o=h(e.search);d=!0,historyReplace(o),s.uiState.heatmapYah=!0,s.uiState.monochrome=!0,s.uiState.hideLogoInBooth=!0,s.uiState.hideHeaderLogo=!0,s.uiState.disableBookmarked=!0}else{e.searchParams.delete("heatmap");let o=h(e.search);d=!0,historyReplace(o),s.uiState.heatmap=!0}}if(t.startsWith("?preview="))historyReplace("?");else if(t.startsWith("?b="))historyReplace("?bookmarks");else if(t.startsWith("?ba=")){const e=new URL(window.location.href),o=parseInt(e.searchParams.get("ba")),r=s.exhibitorStore.exhibitorById.get(o);historyReplace(r?"?"+r.slug:"?bookmarks")}else t.startsWith("?mapbox=false")&&(s.mapboxStore.isMapbox=!1,historyReplace("?"));if(t.includes("blue-dot")){const e=new URL(window.location.href),o=e.searchParams.get("blue-dot").split(",");if(e.searchParams.delete("blue-dot"),o.length>1){const l=s.layerStore.findLayer(o[2])?.name,m=new Z(Number(o[0])||void 0,Number(o[1])||void 0,l,void 0,Number(o[3])||void 0,Number(o[4])||void 0);s.layerStore.layersLoaded?s.routeStore.selectCurrentPosition(m,!1,1):L(()=>s.layerStore.layersLoaded,()=>{s.routeStore.selectCurrentPosition(m,!1,1)})}let r=h(e.search);historyReplace(r)}if(t.includes("copy_exh")){const e=new URL(window.location.href),o=e.searchParams.get("copy_exh");e.searchParams.delete("copy_exh"),historyReplace("?")}if(t.includes("noOverlay")){const e=new URL(window.location.href),o=e.searchParams.get("noOverlay");e.searchParams.delete("noOverlay");let r=h(e.search);o==="true"?s.uiState.hideOverlay=!0:o==="false"&&(s.uiState.hideOverlay=!1),historyReplace(r)}if(t.includes("allowConsent")){const e=new URL(window.location.href),o=e.searchParams.get("allowConsent");e.searchParams.delete("allowConsent");const r=h(e.search);o==="true"?$(!0):o==="false"&&$(!1),historyReplace(r)}if(t.includes("hideHeaderLogo")){const e=new URL(window.location.href),o=e.searchParams.get("hideHeaderLogo");e.searchParams.delete("hideHeaderLogo");const r=h(e.search);o==="true"&&(i.hideHeaderLogo=!0),historyReplace(r)}if(t.includes("hideLogoInBooth")){const e=new URL(window.location.href),o=e.searchParams.get("hideLogoInBooth");e.searchParams.delete("hideLogoInBooth");const r=h(e.search);o==="true"&&(i.hideLogoInBooth=!0),historyReplace(r)}if(t.includes("disableFeatured")){const e=new URL(window.location.href),o=e.searchParams.get("disableFeatured");e.searchParams.delete("disableFeatured");const r=h(e.search);o==="true"&&s.exhibitorStore.exhibitors.forEach(l=>l.featured=!1),historyReplace(r)}if(t.includes("disableBookmarked")){const e=new URL(window.location.href),o=e.searchParams.get("disableBookmarked");e.searchParams.delete("disableBookmarked");const r=h(e.search);o==="true"&&(i.disableBookmarked=!0),historyReplace(r)}if(t.includes("disableGps")){const e=new URL(window.location.href),o=e.searchParams.get("disableGps");e.searchParams.delete("disableGps");const r=h(e.search);o==="true"&&s.routeStore.setGpsTrackingEnabled(!1),historyReplace(r)}if(t.includes("monochrome")){const e=new URL(window.location.href),o=e.searchParams.get("monochrome");e.searchParams.delete("monochrome");const r=h(e.search);o==="true"&&(i.monochrome=!0),historyReplace(r)}if((t.startsWith("?fbclid")||t.startsWith("?_ga"))&&historyReplace("?"),t.includes(P)){const e=new URL(window.location.href),o=e.searchParams.get(P);o==="true"?K&&localStorage.setItem(M,"1"):o==="false"&&K&&localStorage.removeItem(M),e.searchParams.delete(P),historyReplace(h(e.search))}if(i.previewExhibitor&&historyReplace("?"+i.previewExhibitor.slug),u.location.search.includes("&")||u.location.search.includes("%26")){let e=u.location.search;e=e.startsWith("?")?e.slice(1):e;const o=e.includes("&")?"&":"%26",r=e.split(o).map(l=>{const m=s.exhibitorStore.exhibitors.find(p=>p.slug===l||p.externalId===l);return m?m.name:l}).join("&");historyReplace("?"+r)}const n=new URLSearchParams(window.location.search);if(n.has(F)){s.uiState.resetUIScale();const e=new URL(window.location.href);e.searchParams.delete(F);let o=h(e.search);d=!0,historyReplace(o),d=!1}const a=n.get(W);if(a){const e=a.replace(",","."),o=parseFloat(e);!isNaN(o)&&o>=.8&&o<=1.4?s.uiState.setUIScale(o,!0):x.warn(`Invalid ui-scale parameter: ${a}. Must be a number between 0.8 and 1.4.`);const r=new URL(window.location.href);r.searchParams.delete(W);let l=h(r.search);d=!0,historyReplace(l),d=!1}}export function initRouting(t=!1){d=t,!d&&w(u.location.search)===E&&f.push(w(u.location.search)),G=u.listen((n,a)=>{d||(f.push(w(n.search)),x.log("history",a,n),a==="POP"&&b())}),C(),U(),L(()=>s.layerStore.layersLoaded,()=>{s.urlFilterManager&&!s.urlFilterManager.isInitialized&&s.urlFilterManager.initialize(),b(),T(z),T(j)})}export function applyParameters(t=""){historyReplace("?"+decodeURIComponent(t.toString())),s.layerStore.layersLoaded?(C(),b()):(U(),L(()=>s.layerStore.layersLoaded,()=>{C(),b()}))}export function destroyHistory(){G()}export function goBack(){if(console.log("goBack"),f.length>1){f.pop();const t=f[f.length-1].replace(E,"");return d=!0,u.replace(t),d=!1,b(),!0}else return u.go(-1),!1}function ne(t){try{let n={};const a=i.defaultMapSettings;if(new Set(t.keys()).size)n=V(Object.fromEntries(t.entries()),a);else{const e=sessionStorage.getItem(Q);e&&(n=V(JSON.parse(e),a))}if(i.setMapSettings(n),n.z){const e=s.layerStore.layers.find(o=>o.name===n.z);e&&s.layerStore.updateVisibility(e,!0)}}catch(n){console.error("Failed to process or save map settings.",n)}}function V(t,n){const a={};for(const e in t){if(!Object.prototype.hasOwnProperty.call(n,e)||!Object.prototype.hasOwnProperty.call(t,e))continue;const o=t[e];typeof n[e]=="number"&&typeof o=="string"?a[e]=parseFloat(o):a[e]=o}return a}
1
+ import{createBrowserHistory as j}from"history";import{autorun as B,reaction as P}from"mobx";import{handleCustomCommand as T}from"../utils/customCommands";import{BUILD_ROUTE_KEY as Q,KIOSK_ENABLE_KEY as M,MAP_SETTINGS_KEY as J,PREVIEW_MODE_QUERY as L,PREVIEW_MODE_STORAGE_KEY as _,SEPARATOR as X,PATHWAY_KEY as O,LANG_KEY as A,UI_SCALE_PARAM_KEY as F,UI_SCALE_RESET_PARAM_KEY as W}from"../constants";import k from"../data";import s,{uiState as i}from"../store";import{CurrentPosition as Z,extractRoute as ee}from"../store/RouteStore";import{setConsentSettings as $}from"../tools/gtag";import x from"../tools/logger";import{isLocalStorageAvailable as K}from"../utils/localStorage";import{yahKey as te}from"../utils/yah";import{areLayersEnabled as oe}from"../utils/areLayersEnabled";import se from"../core/Rect";import{getMostFrequent as re}from"../utils/getMostFrequent";import{runInAction as I}from"mobx";import{recoverKioskFromUrlPrams as ae}from"../components/Kiosk/recoverKioskFromUrlPrams";let d=!1,R=!1,N=null,H=null,V=null,Y;const h=j(),E=window.location.pathname,p=[];export function getLocationHistory(){return p}function S(t){return E+t}function ie(t){d||h.push(S(t))}export function historyReplace(t){d||h.push(S(t))}function f(t){return t.replace(/=&/g,"&").replace(/=$/,"")}function G(){let t="";const n=i.selectedExhibitor,a=i.selectedBooth,e=i.selectedEventItem,o=i.selectedRoute,r=i.selectedSpeaker,c=i.setKioskModeEnabled;if(o&&!i.isMultiPointRoute){const m=o.from?`:${o.from.slug}`:"",g=o.to?`:${o.to.slug}`:"",y=s.routeStore.onlyAccessible?":true":":false",w=o.waypoints?.map(u=>`:${u.slug}`).join("");t=`route${g}${m}${y}${w||""}`}else if(n)t=n.slug;else if(a)t=a.slug;else if(e)t=e.slug;else if(r)t=r.slug;else if(c)t="";else switch(i.list.type){case"bookmarks":t="bookmarks";break;case"visited":t="visited";break;case"category":t=i.selectedCategory.slug;break;case"search":t=i.list.text||"";break;case"language":t=i.list.type;break;case"filter":t=`${i.list.query.key}=${i.list.query.value}`;break;case"sessions":t="sessions";break;case"exhibitors":t="exhibitors";break;case"speakers":t="speakers";break;case"tours":t="tours";break;case"multi-point-tour":t=`tour=${i.list.tourId}`;break;default:throw new Error("Unkown list.type")}if(R)return;const l=t?"?"+encodeURIComponent(t):"";h.location.search!==l&&(n!==N||a!==H||e!==V?ie(l):historyReplace(l),N=n,H=a,V=e)}function z(){const t=i.selectedExhibitor,n=i.selectedEventItem,a=i.selectedSpeaker;let e="";t?e=t.name:n?e=n.name:a?e=a.name:i.list.type==="search"&&i.list.text?e="`"+(i.list.text||"")+"`":i.list.type==="multi-point-tour"&&i.tourTitle&&(e=i.tourTitle),e.length&&(e+=" \u2013 "),e+=k.title,k.subtitle&&(e+=" \u2013 "+k.subtitle),e+=" \u2013 Expo Floor Plan by ExpoFP",document.title=e}function v(){const t=h.location.search.length>1?decodeURIComponent(h.location.search.substring(1)):"";return T(t,!1)}function b(){const t=h.location.search.length>1?decodeURIComponent(h.location.search.substring(1)):"";R=!0;const n=s.boothStore.booths.find(e=>e.slug?.toLowerCase()===t?.toLowerCase()||e.externalId?.toLowerCase()===t?.toLowerCase()||e.externalId?.toLowerCase()?.replace(/\s+/g,"")===t?.toLowerCase()),a=new URLSearchParams(decodeURIComponent(window.location.search));if(ae(a),ne(a),!v())if(a.has("yah")){const e=a.get("yah");T(`${te} ${e}`,!0)}else if(a.has(M)){const e=a.get(M);e==="1"?i.kiosk=!0:e==="0"&&(i.kiosk=!1,i.resetUIScale())}else if(t==="tours")s.selectTours();else if(t.startsWith("tour=")){const e=t.split("=")[1],o=s.toursStore.getTourById(e);o?s.toursStore.launchTour(o,o.name,o.description):(console.warn(`Route with id "${e}" not found`),s.selectTours())}else if(t.startsWith("route")){const e=t.split(X);I(()=>{s.routeStore.onlyAccessible=e[3]==="true"});const o=ee(e[2],e[1],e.slice(4));s.routeStore.selectRoute(o);const c=e.slice(4).length>0;s.uiState.setIsMultiPointRoute(c);const m=new URLSearchParams(window.location.search).get("title");m&&s.uiState.setRouteTitle(m)}else if(t==="bookmarks")s.selectBookmarks();else if(t==="visited")s.selectVisited();else if(t==="language")s.selectLanguage();else if(a.has(A)){const e=a.get(A)?.toLowerCase();s.languageStore.languageIds.has(e)&&s.languageStore.changeLanguage(e)}else if(t==="sessions")s.selectSessions();else if(t==="exhibitors")s.selectExhibitors();else if(t==="speakers")s.selectSpeakers();else if(t==="-pdf")s.uiState.printingPdf=!0;else if(t.startsWith("hide"))s.uiState.setVisibility(new URLSearchParams(t).get("hide").split(",").filter(Boolean).reduce((e,o)=>({...e,[o]:!1}),{}));else if(n)setTimeout(()=>s.selectBooth(n),250);else if(t===Q)s.uiState.startBuildRoute();else if(a.get(O)){const e=a.get(O),o=a.get("booths")?.split(",")||[],r=a.get("exhibitors")?.split(",")||[],c=a.get("tour");if(c){const u=s.toursStore.getTourById(c);u&&I(()=>{s.uiState.setTourTitle(u.name),s.uiState.setTourDescription(u.description),s.uiState.setIsMultiPointTour(!0),s.uiState.setMultiPointTourList(u.id)})}const l=s.boothStore.booths,m=s.exhibitorStore.exhibitors,g=l.filter(u=>o.includes(u.externalId)),y=m.filter(u=>r.includes(u.externalId)).flatMap(u=>u.booths),w=[...g,...y];if(oe()){const u=w.map(q=>q.layer.name),C=re(u);C&&s.fp.activateFloor({name:C})}(o.length>0||r.length>0)&&s.fp.highlightEntities([...o,...r]),s.layerStore.showPathWay(e),w.length>0&&I(()=>{s.uiState.moveToRect=se.fromMultiple(w.map(u=>u.rect).filter(Boolean)),s.uiState.rollReset=!0})}else{const e=s.eventStore.eventItems.find(o=>o.slug?.toLowerCase()===t?.toLowerCase()||o.externalId?.toLowerCase()===t?.toLowerCase());if(e)s.selectEventItem(e,!0);else{const o=s.exhibitorStore.exhibitors.find(r=>r.slug?.toLowerCase()===t?.toLowerCase()||r.externalId?.toLowerCase()===t?.toLowerCase());if(t.startsWith("exhibitors")){const r=t.split("=")[1].split(",");setTimeout(()=>s.fp.selectExhibitor(r),250)}else if(o)setTimeout(()=>s.clickExhibitor(o),250);else if(t.includes("=")&&(t.startsWith("categories=")||t.startsWith("poiType=")))x.log("Skipping filter parameter in dispatchFromUrl:",t);else{const c=s.categoryStore.categories.find(l=>l.slug===t);if(c)s.selectCategory(c);else{const l=s.speakerStore.findBySlug(t);l?s.selectSpeaker(l,!0):t.includes("heatmap=true")||s.searchStore.selectSearch(t)}}}}R=!1,G(),z()}function U(){const t=h.location.search;if(t.includes("heatmap")){const e=new URL(window.location.href);if(e.searchParams.get("heatmap")==="true")if(e.searchParams.get("type")==="yah"){let r=f(e.search);d=!0,historyReplace(r),s.uiState.heatmapYah=!0,s.uiState.monochrome=!0,s.uiState.hideLogoInBooth=!0,s.uiState.hideHeaderLogo=!0,s.uiState.disableBookmarked=!0}else{e.searchParams.delete("heatmap");let r=f(e.search);d=!0,historyReplace(r),s.uiState.heatmap=!0}}if(t.startsWith("?preview="))historyReplace("?");else if(t.startsWith("?b="))historyReplace("?bookmarks");else if(t.startsWith("?ba=")){const e=new URL(window.location.href),o=parseInt(e.searchParams.get("ba")),r=s.exhibitorStore.exhibitorById.get(o);historyReplace(r?"?"+r.slug:"?bookmarks")}else t.startsWith("?mapbox=false")&&(s.mapboxStore.isMapbox=!1,historyReplace("?"));if(t.includes("blue-dot")){const e=new URL(window.location.href),o=e.searchParams.get("blue-dot").split(",");if(e.searchParams.delete("blue-dot"),o.length>1){const c=s.layerStore.findLayer(o[2])?.name,l=new Z(Number(o[0])||void 0,Number(o[1])||void 0,c,void 0,Number(o[3])||void 0,Number(o[4])||void 0);s.layerStore.layersLoaded?s.routeStore.selectCurrentPosition(l,!1,1):P(()=>s.layerStore.layersLoaded,()=>{s.routeStore.selectCurrentPosition(l,!1,1)})}let r=f(e.search);historyReplace(r)}if(t.includes("copy_exh")){const e=new URL(window.location.href),o=e.searchParams.get("copy_exh");e.searchParams.delete("copy_exh"),historyReplace("?")}if(t.includes("noOverlay")){const e=new URL(window.location.href),o=e.searchParams.get("noOverlay");e.searchParams.delete("noOverlay");let r=f(e.search);o==="true"?s.uiState.hideOverlay=!0:o==="false"&&(s.uiState.hideOverlay=!1),historyReplace(r)}if(t.includes("allowConsent")){const e=new URL(window.location.href),o=e.searchParams.get("allowConsent");e.searchParams.delete("allowConsent");const r=f(e.search);o==="true"?$(!0):o==="false"&&$(!1),historyReplace(r)}if(t.includes("hideHeaderLogo")){const e=new URL(window.location.href),o=e.searchParams.get("hideHeaderLogo");e.searchParams.delete("hideHeaderLogo");const r=f(e.search);o==="true"&&(i.hideHeaderLogo=!0),historyReplace(r)}if(t.includes("hideLogoInBooth")){const e=new URL(window.location.href),o=e.searchParams.get("hideLogoInBooth");e.searchParams.delete("hideLogoInBooth");const r=f(e.search);o==="true"&&(i.hideLogoInBooth=!0),historyReplace(r)}if(t.includes("disableFeatured")){const e=new URL(window.location.href),o=e.searchParams.get("disableFeatured");e.searchParams.delete("disableFeatured");const r=f(e.search);o==="true"&&s.exhibitorStore.exhibitors.forEach(c=>c.featured=!1),historyReplace(r)}if(t.includes("disableBookmarked")){const e=new URL(window.location.href),o=e.searchParams.get("disableBookmarked");e.searchParams.delete("disableBookmarked");const r=f(e.search);o==="true"&&(i.disableBookmarked=!0),historyReplace(r)}if(t.includes("disableGps")){const e=new URL(window.location.href),o=e.searchParams.get("disableGps");e.searchParams.delete("disableGps");const r=f(e.search);o==="true"&&s.routeStore.setGpsTrackingEnabled(!1),historyReplace(r)}if(t.includes("monochrome")){const e=new URL(window.location.href),o=e.searchParams.get("monochrome");e.searchParams.delete("monochrome");const r=f(e.search);o==="true"&&(i.monochrome=!0),historyReplace(r)}if((t.startsWith("?fbclid")||t.startsWith("?_ga"))&&historyReplace("?"),t.includes(L)){const e=new URL(window.location.href),o=e.searchParams.get(L);o==="true"?K&&localStorage.setItem(_,"1"):o==="false"&&K&&localStorage.removeItem(_),e.searchParams.delete(L),historyReplace(f(e.search))}if(i.previewExhibitor&&historyReplace("?"+i.previewExhibitor.slug),h.location.search.includes("&")||h.location.search.includes("%26")){let e=h.location.search;e=e.startsWith("?")?e.slice(1):e;const o=e.includes("&")?"&":"%26",c=e.split(o).map(l=>{const m=s.exhibitorStore.exhibitors.find(g=>g.slug===l||g.externalId===l);return m?m.name:l}).join("&");historyReplace("?"+c)}const n=new URLSearchParams(window.location.search);if(n.has(W)){s.uiState.resetUIScale();const e=new URL(window.location.href);e.searchParams.delete(W);let o=f(e.search);d=!0,historyReplace(o),d=!1}const a=n.get(F);if(a){const e=a.replace(",","."),o=parseFloat(e);!isNaN(o)&&o>=.8&&o<=1.4?s.uiState.setUIScale(o,!0):x.warn(`Invalid ui-scale parameter: ${a}. Must be a number between 0.8 and 1.4.`);const r=new URL(window.location.href);r.searchParams.delete(F);let c=f(r.search);d=!0,historyReplace(c),d=!1}}export function initRouting(t=!1){d=t,!d&&S(h.location.search)===E&&p.push(S(h.location.search)),Y=h.listen((n,a)=>{d||(p.push(S(n.search)),x.log("history",a,n),a==="POP"&&b())}),U(),v(),P(()=>s.layerStore.layersLoaded,()=>{s.urlFilterManager&&!s.urlFilterManager.isInitialized&&s.urlFilterManager.initialize(),b(),B(z),B(G)})}export function applyParameters(t=""){historyReplace("?"+decodeURIComponent(t.toString())),s.layerStore.layersLoaded?(U(),b()):(v(),P(()=>s.layerStore.layersLoaded,()=>{U(),b()}))}export function destroyHistory(){Y()}export function goBack(){if(console.log("goBack"),p.length>1){p.pop();const n=p[p.length-1].replace(E,"");return d=!0,h.replace(n),d=!1,b(),!0}else return h.go(-1),!1}function ne(t){try{let n={};const a=i.defaultMapSettings;if(new Set(t.keys()).size)n=D(Object.fromEntries(t.entries()),a);else{const e=sessionStorage.getItem(J);e&&(n=D(JSON.parse(e),a))}if(i.setMapSettings(n),n.z){const e=s.layerStore.layers.find(o=>o.name===n.z);e&&s.layerStore.updateVisibility(e,!0)}}catch(n){console.error("Failed to process or save map settings.",n)}}function D(t,n){const a={};for(const e in t){if(!Object.prototype.hasOwnProperty.call(n,e)||!Object.prototype.hasOwnProperty.call(t,e))continue;const o=t[e];typeof n[e]=="number"&&typeof o=="string"?a[e]=parseFloat(o):a[e]=o}return a}
@@ -1 +1 @@
1
- import{__esDecorate as i,__runInitializers as l}from"tslib";import{action as a,observable as F}from"mobx";let I=(()=>{let s=[],n,r=[],o=[],m,c,d,h,p,u;return class{static{const e=typeof Symbol=="function"&&Symbol.metadata?Object.create(null):void 0;n=[F],m=[a],c=[a],d=[a],h=[a],p=[a],u=[a],i(this,null,m,{kind:"method",name:"openFilter",static:!1,private:!1,access:{has:t=>"openFilter"in t,get:t=>t.openFilter},metadata:e},null,s),i(this,null,c,{kind:"method",name:"closeFilter",static:!1,private:!1,access:{has:t=>"closeFilter"in t,get:t=>t.closeFilter},metadata:e},null,s),i(this,null,d,{kind:"method",name:"applyFilter",static:!1,private:!1,access:{has:t=>"applyFilter"in t,get:t=>t.applyFilter},metadata:e},null,s),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,s),i(this,null,p,{kind:"method",name:"clearPendingItems",static:!1,private:!1,access:{has:t=>"clearPendingItems"in t,get:t=>t.clearPendingItems},metadata:e},null,s),i(this,null,u,{kind:"method",name:"setPendingItems",static:!1,private:!1,access:{has:t=>"setPendingItems"in t,get:t=>t.setPendingItems},metadata:e},null,s),i(null,null,n,{kind:"field",name:"state",static:!1,private:!1,access:{has:t=>"state"in t,get:t=>t.state,set:(t,g)=>{t.state=g}},metadata:e},r,o),e&&Object.defineProperty(this,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e})}rootStore=l(this,s);state=l(this,r,{isOpen:!1,selectedItems:[],pendingItems:[]});get publicRootStore(){return this.rootStore}constructor(e){l(this,o),this.rootStore=e}openFilter(){this.state.isOpen=!0,this.state.pendingItems=[...this.state.selectedItems]}closeFilter(){this.state.isOpen=!1,this.state.pendingItems=[],this.rootStore.urlFilterManager&&this.rootStore.urlFilterManager.isInitialized&&this.rootStore.urlFilterManager.clearAllFilters()}applyFilter(){this.state.selectedItems=[...this.state.pendingItems],this.closeFilter(),this.updateUIState()}resetFilter(){this.state.pendingItems=[]}clearPendingItems(){this.state.pendingItems=[]}setPendingItems(e){this.state.pendingItems=e}}})();export default I;
1
+ import{__esDecorate as a,__runInitializers as l}from"tslib";import{action as i,observable as F}from"mobx";let f=(()=>{let s=[],r,n=[],o=[],c,d,m,h,p,u;return class{static{const t=typeof Symbol=="function"&&Symbol.metadata?Object.create(null):void 0;r=[F],c=[i],d=[i],m=[i],h=[i],p=[i],u=[i],a(this,null,c,{kind:"method",name:"openFilter",static:!1,private:!1,access:{has:e=>"openFilter"in e,get:e=>e.openFilter},metadata:t},null,s),a(this,null,d,{kind:"method",name:"closeFilter",static:!1,private:!1,access:{has:e=>"closeFilter"in e,get:e=>e.closeFilter},metadata:t},null,s),a(this,null,m,{kind:"method",name:"applyFilter",static:!1,private:!1,access:{has:e=>"applyFilter"in e,get:e=>e.applyFilter},metadata:t},null,s),a(this,null,h,{kind:"method",name:"resetFilter",static:!1,private:!1,access:{has:e=>"resetFilter"in e,get:e=>e.resetFilter},metadata:t},null,s),a(this,null,p,{kind:"method",name:"clearPendingItems",static:!1,private:!1,access:{has:e=>"clearPendingItems"in e,get:e=>e.clearPendingItems},metadata:t},null,s),a(this,null,u,{kind:"method",name:"setPendingItems",static:!1,private:!1,access:{has:e=>"setPendingItems"in e,get:e=>e.setPendingItems},metadata:t},null,s),a(null,null,r,{kind:"field",name:"state",static:!1,private:!1,access:{has:e=>"state"in e,get:e=>e.state,set:(e,g)=>{e.state=g}},metadata:t},n,o),t&&Object.defineProperty(this,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:t})}rootStore=l(this,s);state=l(this,n,{isOpen:!1,selectedItems:[],pendingItems:[]});get publicRootStore(){return this.rootStore}constructor(t){l(this,o),this.rootStore=t}openFilter(){this.state.isOpen=!0,this.state.pendingItems=[...this.state.selectedItems]}closeFilter(){this.state.isOpen=!1,this.state.pendingItems=[],this.rootStore.urlFilterManager&&this.rootStore.urlFilterManager.isInitialized&&this.rootStore.urlFilterManager.clearAllFilters()}applyFilter(){this.state.selectedItems=[...this.state.pendingItems],this.closeFilter(),this.updateUIState()}resetFilter(){this.state.pendingItems=[]}clearPendingItems(){this.state.pendingItems=[]}setPendingItems(t){this.state.pendingItems=t}}})();export default f;
@@ -1 +1 @@
1
- import{__esDecorate as s,__runInitializers as n}from"tslib";import{lineLength as C,lineRectangleIntersections as L,pointInsideRectangle as j,Rect as W}from"simple-geometry";import{action as O,computed as l,observable as A}from"mobx";import w from"../tools/settings";import{uiState as M}from"./index";let _=(()=>{let o=[],d,c=[],m=[],u,b=[],p=[],g,k,y,v,B,f,x;return class{static{const t=typeof Symbol=="function"&&Symbol.metadata?Object.create(null):void 0;d=[A],u=[A],g=[l({keepAlive:!0})],k=[l({keepAlive:!0})],y=[l({keepAlive:!0})],v=[l({keepAlive:!0})],B=[l({keepAlive:!0})],f=[l],x=[O],s(this,null,g,{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,k,{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,v,{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,B,{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,f,{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,x,{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,a)=>{e.booths=a}},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,a)=>{e.highlightedByExternalIds=a}},metadata:t},b,p),t&&Object.defineProperty(this,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:t})}rootStore=n(this,o);booths=n(this,c,[]);highlightedByExternalIds=(n(this,m),n(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(w.boothBorderWidth)return w.boothBorderWidth;if(w.EXPO==="groomexpo")return .4;const t=this.booths.filter(e=>e.rect).map(e=>e.rect.w+e.rect.h);return t.reduce((e,a)=>e+a,0)/t.length/80}constructor(t){n(this,p),this.rootStore=t}get bookmarked(){return this.booths.filter(t=>t.bookmarkedDirectly)}getNearestBooth(t){var e=null;const a=this.booths.map(r=>{const{x1:i,x2:D,y1:h,y2:S}=r.rect,I=Math.abs(D-i),N=Math.abs(S-h);return{lineLength:C(t,L({p0:t,p1:{x:r.rect.cx,y:r.rect.cy}},new W({x:i,y:h},{x:i+I,y:h},{x:i+I,y:h+N},{x:i,y:h+N}))[0]),name:r.name}}).sort((r,i)=>r.lineLength-i.lineLength)[0];return e=this.booths.find(r=>r.name===a.name),e}getBoothAtPoint(t){return this.booths.find(e=>{const{x1:a,x2:r,y1:i,y2:D}=e.rect,h=Math.abs(r-a),S=Math.abs(D-i),I=new W({x:a,y:i},{x:a+h,y:i},{x:a+h,y:i+S},{x:a,y:i+S});return j(t,I)})}findBooth(t){return this.boothByExternalId.get(t)||this.boothByName.get(t.toLowerCase())||this.boothBySlug.get(t)}replaceBookmarked(t){const e=(t||[]).map(i=>this.boothById.get(i)).filter(i=>i),a=new Set(e),r=this.bookmarked.filter(i=>!a.has(i));for(const i of r)i.bookmarkedDirectly=!1;for(const i of e)i.bookmarkedDirectly=!0}}})();export default _;let E=(()=>{let o=[],d,c=[],m=[],u,b=[],p=[],g,k,y,v,B,f,x;return class{static{const t=typeof Symbol=="function"&&Symbol.metadata?Object.create(null):void 0;d=[A],u=[A],g=[l({keepAlive:!0})],k=[l({keepAlive:!0})],y=[l({keepAlive:!0})],v=[l({keepAlive:!0})],B=[l({keepAlive:!0})],f=[l({keepAlive:!0})],x=[l({keepAlive:!0})],s(this,null,g,{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,k,{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,v,{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,B,{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,f,{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,x,{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,a)=>{e.layer=a}},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,a)=>{e.bookmarkedDirectly=a}},metadata:t},b,p),t&&Object.defineProperty(this,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:t})}store=n(this,o);id;name;externalId;title;rect;borderWidth;borderColor;noLabels;rotate;paths;pathsWithRect;slug;error;description;exhibitors;labelColor;schedule;poiTypeId;poiType;poiIcon;yah;meta;layer=n(this,c,void 0);bookmarkedDirectly=(n(this,m),n(this,b,!1));get bookmarked(){return this.exhibitors.length>0?!M.disableBookmarked&&!!this.exhibitors.find(t=>t.bookmarked):!M.disableBookmarked&&this.bookmarkedDirectly}get uiState(){return this.store.rootStore.uiState}get fullName(){let t=`${this.yah?this.title:this.name}`;const e=this.meta?Object.entries(this.meta).filter(([a])=>!a.startsWith("_")).map(([a,r])=>`${a} ${r}`).join(" "):"";return`${t} ${e}`.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(){n(this,p)}}})();export{E as BoothBase};export class RegularBooth extends E{buyUrl;reserveUrl;type;status;price;entity={type:"booth",variant:"regular"};size;availColor;soldColor;holdColor;onHold;reserved;shapes}export class SpecialBooth extends E{color;shapes;entity={type:"booth",variant:"special"}}
1
+ import{__esDecorate as s,__runInitializers as l}from"tslib";import{lineLength as C,lineRectangleIntersections as L,pointInsideRectangle as R,Rect as N}from"simple-geometry";import{action as j,computed as i,observable as S}from"mobx";import E from"../tools/settings";import{uiState as W}from"./index";let O=(()=>{let r=[],c,m=[],u=[],b,g=[],k=[],y,p,f,_,v,B,x;return class{static{const t=typeof Symbol=="function"&&Symbol.metadata?Object.create(null):void 0;c=[S],b=[S],y=[i({keepAlive:!0})],p=[i({keepAlive:!0})],f=[i({keepAlive:!0})],_=[i({keepAlive:!0})],v=[i({keepAlive:!0})],B=[i],x=[j],s(this,null,y,{kind:"getter",name:"boothById",static:!1,private:!1,access:{has:e=>"boothById"in e,get:e=>e.boothById},metadata:t},null,r),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,r),s(this,null,f,{kind:"getter",name:"boothByName",static:!1,private:!1,access:{has:e=>"boothByName"in e,get:e=>e.boothByName},metadata:t},null,r),s(this,null,_,{kind:"getter",name:"boothBySlug",static:!1,private:!1,access:{has:e=>"boothBySlug"in e,get:e=>e.boothBySlug},metadata:t},null,r),s(this,null,v,{kind:"getter",name:"borderWidth",static:!1,private:!1,access:{has:e=>"borderWidth"in e,get:e=>e.borderWidth},metadata:t},null,r),s(this,null,B,{kind:"getter",name:"bookmarked",static:!1,private:!1,access:{has:e=>"bookmarked"in e,get:e=>e.bookmarked},metadata:t},null,r),s(this,null,x,{kind:"method",name:"replaceBookmarked",static:!1,private:!1,access:{has:e=>"replaceBookmarked"in e,get:e=>e.replaceBookmarked},metadata:t},null,r),s(null,null,c,{kind:"field",name:"booths",static:!1,private:!1,access:{has:e=>"booths"in e,get:e=>e.booths,set:(e,o)=>{e.booths=o}},metadata:t},m,u),s(null,null,b,{kind:"field",name:"highlightedByExternalIds",static:!1,private:!1,access:{has:e=>"highlightedByExternalIds"in e,get:e=>e.highlightedByExternalIds,set:(e,o)=>{e.highlightedByExternalIds=o}},metadata:t},g,k),t&&Object.defineProperty(this,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:t})}rootStore=l(this,r);booths=l(this,m,[]);highlightedByExternalIds=(l(this,u),l(this,g,[]));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,o)=>e+o,0)/t.length/80}constructor(t){l(this,k),this.rootStore=t}get bookmarked(){return this.booths.filter(t=>t.bookmarkedDirectly)}getNearestBooth(t){var e=null;const d=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===d.name),e}getBoothAtPoint(t){return this.booths.find(e=>{const{x1:o,x2:d,y1:a,y2:n}=e.rect,I=Math.abs(d-o),h=Math.abs(n-a),D=new N({x:o,y:a},{x:o+I,y:a},{x:o+I,y:a+h},{x:o,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),o=new Set(e),d=this.bookmarked.filter(a=>!o.has(a));for(const a of d)a.bookmarkedDirectly=!1;for(const a of e)a.bookmarkedDirectly=!0}}})();export default O;let w=(()=>{let r=[],c,m=[],u=[],b,g=[],k=[],y,p,f,_,v,B,x;return class{static{const t=typeof Symbol=="function"&&Symbol.metadata?Object.create(null):void 0;c=[S],b=[S],y=[i({keepAlive:!0})],p=[i({keepAlive:!0})],f=[i({keepAlive:!0})],_=[i({keepAlive:!0})],v=[i({keepAlive:!0})],B=[i({keepAlive:!0})],x=[i({keepAlive:!0})],s(this,null,y,{kind:"getter",name:"bookmarked",static:!1,private:!1,access:{has:e=>"bookmarked"in e,get:e=>e.bookmarked},metadata:t},null,r),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,r),s(this,null,f,{kind:"getter",name:"fullName",static:!1,private:!1,access:{has:e=>"fullName"in e,get:e=>e.fullName},metadata:t},null,r),s(this,null,_,{kind:"getter",name:"visible",static:!1,private:!1,access:{has:e=>"visible"in e,get:e=>e.visible},metadata:t},null,r),s(this,null,v,{kind:"getter",name:"hover",static:!1,private:!1,access:{has:e=>"hover"in e,get:e=>e.hover},metadata:t},null,r),s(this,null,B,{kind:"getter",name:"selected",static:!1,private:!1,access:{has:e=>"selected"in e,get:e=>e.selected},metadata:t},null,r),s(this,null,x,{kind:"getter",name:"skipDim",static:!1,private:!1,access:{has:e=>"skipDim"in e,get:e=>e.skipDim},metadata:t},null,r),s(null,null,c,{kind:"field",name:"layer",static:!1,private:!1,access:{has:e=>"layer"in e,get:e=>e.layer,set:(e,o)=>{e.layer=o}},metadata:t},m,u),s(null,null,b,{kind:"field",name:"bookmarkedDirectly",static:!1,private:!1,access:{has:e=>"bookmarkedDirectly"in e,get:e=>e.bookmarkedDirectly,set:(e,o)=>{e.bookmarkedDirectly=o}},metadata:t},g,k),t&&Object.defineProperty(this,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:t})}store=l(this,r);id;name;externalId;title;rect;borderWidth;borderColor;noLabels;rotate;paths;pathsWithRect;slug;error;description;exhibitors;labelColor;schedule;poiTypeId;poiType;poiIcon;yah;meta;layer=l(this,m,void 0);bookmarkedDirectly=(l(this,u),l(this,g,!1));get bookmarked(){return this.exhibitors.length>0?!W.disableBookmarked&&!!this.exhibitors.find(t=>t.bookmarked):!W.disableBookmarked&&this.bookmarkedDirectly}get uiState(){return this.store.rootStore.uiState}get fullName(){let t=`${this.yah?this.title:this.name}`;const e=this.meta?Object.entries(this.meta).filter(([o])=>!o.startsWith("_")).map(([o,d])=>`${o} ${d}`).join(" "):"";return`${t} ${e}`.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,k)}}})();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 +1 @@
1
- import{__esDecorate as o,__runInitializers as m}from"tslib";import{computed as n,action as c}from"mobx";import S from"./BaseFilterStore";let u=(()=>{let s=S,i=[],a,h,l;return class extends s{static{const e=typeof Symbol=="function"&&Symbol.metadata?Object.create(s[Symbol.metadata]??null):void 0;a=[n],h=[n],l=[c],o(this,null,a,{kind:"getter",name:"filteredExhibitors",static:!1,private:!1,access:{has:t=>"filteredExhibitors"in t,get:t=>t.filteredExhibitors},metadata:e},null,i),o(this,null,h,{kind:"getter",name:"filteredBooths",static:!1,private:!1,access:{has:t=>"filteredBooths"in t,get:t=>t.filteredBooths},metadata:e},null,i),o(this,null,l,{kind:"method",name:"resetFilter",static:!1,private:!1,access:{has:t=>"resetFilter"in t,get:t=>t.resetFilter},metadata:e},null,i),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),m(this,i)}}})();export default u;
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 +1 @@
1
- import{__esDecorate as i,__runInitializers as n}from"tslib";import{computed as o}from"mobx";let c=(()=>{let a=[],r,s;return class{static{const e=typeof Symbol=="function"&&Symbol.metadata?Object.create(null):void 0;r=[o({keepAlive:!0})],s=[o],i(this,null,r,{kind:"getter",name:"categoryById",static:!1,private:!1,access:{has:t=>"categoryById"in t,get:t=>t.categoryById},metadata:e},null,a),i(this,null,s,{kind:"getter",name:"seminarsCategory",static:!1,private:!1,access:{has:t=>"seminarsCategory"in t,get:t=>t.seminarsCategory},metadata:e},null,a),e&&Object.defineProperty(this,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e})}rootStore=n(this,a);categories=[];get categoryById(){return new Map(this.categories.map(e=>[e.id,e]))}get seminarsCategory(){return this.categories.find(e=>e.slug==="seminars")}constructor(e){this.rootStore=e}}})();export default c;export class Category{store;id;name;slug;sponsorship;exhibitors;entity={type:"category"}}
1
+ import{__esDecorate as o,__runInitializers as n}from"tslib";import{computed as i}from"mobx";let l=(()=>{let a=[],r,s;return class{static{const e=typeof Symbol=="function"&&Symbol.metadata?Object.create(null):void 0;r=[i({keepAlive:!0})],s=[i],o(this,null,r,{kind:"getter",name:"categoryById",static:!1,private:!1,access:{has:t=>"categoryById"in t,get:t=>t.categoryById},metadata:e},null,a),o(this,null,s,{kind:"getter",name:"seminarsCategory",static:!1,private:!1,access:{has:t=>"seminarsCategory"in t,get:t=>t.seminarsCategory},metadata:e},null,a),e&&Object.defineProperty(this,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e})}rootStore=n(this,a);categories=[];get categoryById(){return new Map(this.categories.map(e=>[e.id,e]))}get seminarsCategory(){return this.categories.find(e=>e.slug==="seminars")}constructor(e){this.rootStore=e}}})();export default l;export class Category{store;id;name;slug;sponsorship;exhibitors;entity={type:"category"}}
@@ -1 +1 @@
1
- import{__esDecorate as o,__runInitializers as p}from"tslib";import{action as D,computed as m,observable as I}from"mobx";import{generateUniqueSlug as y}from"../tools/slug";let w=(()=>{let i=[],c,u,h,v,k,r,n,d,g,f,b;return class{static{const t=typeof Symbol=="function"&&Symbol.metadata?Object.create(null):void 0;c=[m],u=[m],h=[m],v=[m],k=[m],r=[m],n=[m],d=[m],g=[m],f=[D],b=[D],o(this,null,c,{kind:"getter",name:"bookmarked",static:!1,private:!1,access:{has:e=>"bookmarked"in e,get:e=>e.bookmarked},metadata:t},null,i),o(this,null,u,{kind:"getter",name:"visited",static:!1,private:!1,access:{has:e=>"visited"in e,get:e=>e.visited},metadata:t},null,i),o(this,null,h,{kind:"getter",name:"tracks",static:!1,private:!1,access:{has:e=>"tracks"in e,get:e=>e.tracks},metadata:t},null,i),o(this,null,v,{kind:"getter",name:"venues",static:!1,private:!1,access:{has:e=>"venues"in e,get:e=>e.venues},metadata:t},null,i),o(this,null,k,{kind:"getter",name:"pastEvents",static:!1,private:!1,access:{has:e=>"pastEvents"in e,get:e=>e.pastEvents},metadata:t},null,i),o(this,null,r,{kind:"getter",name:"futureEvents",static:!1,private:!1,access:{has:e=>"futureEvents"in e,get:e=>e.futureEvents},metadata:t},null,i),o(this,null,n,{kind:"getter",name:"liveEvents",static:!1,private:!1,access:{has:e=>"liveEvents"in e,get:e=>e.liveEvents},metadata:t},null,i),o(this,null,d,{kind:"getter",name:"todayEvents",static:!1,private:!1,access:{has:e=>"todayEvents"in e,get:e=>e.todayEvents},metadata:t},null,i),o(this,null,g,{kind:"getter",name:"tomorrowEvents",static:!1,private:!1,access:{has:e=>"tomorrowEvents"in e,get:e=>e.tomorrowEvents},metadata:t},null,i),o(this,null,f,{kind:"method",name:"replaceBookmarked",static:!1,private:!1,access:{has:e=>"replaceBookmarked"in e,get:e=>e.replaceBookmarked},metadata:t},null,i),o(this,null,b,{kind:"method",name:"replaceVisited",static:!1,private:!1,access:{has:e=>"replaceVisited"in e,get:e=>e.replaceVisited},metadata:t},null,i),t&&Object.defineProperty(this,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:t})}rootStore=p(this,i);eventItems=[];constructor(t){this.rootStore=t}findByNameOrSlug(t){return this.eventItems.find(e=>e.name===t||e.slug===t||e.externalId===t)}get bookmarked(){return this.eventItems.filter(t=>t.bookmarked)}get visited(){return this.eventItems.filter(t=>t.visited)}get tracks(){const t=new Map;return this.eventItems.forEach(e=>{e.tracks.forEach(s=>{t.set(s.id,s)})}),Array.from(t.values()).sort((e,s)=>e.name.localeCompare(s.name))}getEventsByTrack(t){return this.eventItems.filter(e=>e.tracks.some(s=>s.id===t))}getEventsBySpeaker(t){return this.eventItems.filter(e=>e.speakers.some(s=>s.id===t))}get venues(){const t=new Map;return this.eventItems.forEach(e=>{if(e.boothId){const s=this.rootStore.boothStore.booths.find(l=>l.id===e.boothId);s&&t.set(s.id,s)}}),Array.from(t.values()).sort((e,s)=>e.name.localeCompare(s.name))}getEventsByVenue(t){return this.eventItems.filter(e=>e.boothId===t)}get pastEvents(){const t=new Date;return this.eventItems.filter(e=>new Date(e.endDate)<t)}get futureEvents(){const t=new Date;return this.eventItems.filter(e=>new Date(e.startDate)>t)}get liveEvents(){const t=new Date;return this.eventItems.filter(e=>{const s=new Date(e.startDate),l=new Date(e.endDate);return s<=t&&t<=l})}get todayEvents(){const t=new Date;return t.setHours(0,0,0,0),this.eventItems.filter(e=>{const s=new Date(e.startDate);return s.setHours(0,0,0,0),s.getTime()===t.getTime()})}get tomorrowEvents(){const t=new Date;return t.setDate(t.getDate()+1),t.setHours(0,0,0,0),this.eventItems.filter(e=>{const s=new Date(e.startDate);return s.setHours(0,0,0,0),s.getTime()===t.getTime()})}replaceBookmarked(t){const e=(t||[]).map(a=>this.eventItems.find(E=>E.id===a)).filter(a=>a),s=new Set(e),l=this.bookmarked.filter(a=>!s.has(a));for(const a of l)a.bookmarked=!1;for(const a of e)a.bookmarked=!0}replaceVisited(t){const e=(t||[]).map(a=>this.eventItems.find(E=>E.id===a)).filter(a=>a),s=new Set(e),l=this.visited.filter(a=>!s.has(a));for(const a of l)a.visited=!1;for(const a of e)a.visited=!0}}})();export default w;let S=(()=>{let i,c=[],u=[],h,v=[],k=[];return class{static{const r=typeof Symbol=="function"&&Symbol.metadata?Object.create(null):void 0;i=[I],h=[I],o(null,null,i,{kind:"field",name:"bookmarked",static:!1,private:!1,access:{has:n=>"bookmarked"in n,get:n=>n.bookmarked,set:(n,d)=>{n.bookmarked=d}},metadata:r},c,u),o(null,null,h,{kind:"field",name:"visited",static:!1,private:!1,access:{has:n=>"visited"in n,get:n=>n.visited,set:(n,d)=>{n.visited=d}},metadata:r},v,k),r&&Object.defineProperty(this,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:r})}id;externalId;boothId;name;description;startDate;endDate;logoFile;speakers;tracks;entity;slug;bookmarked=p(this,c,!1);visited=(p(this,u),p(this,v,!1));constructor(r,n,d,g,f,b,t,e,s=[],l=[],a={type:"event"}){p(this,k),this.id=r,this.externalId=n,this.boothId=d,this.name=g,this.description=f,this.startDate=b,this.endDate=t,this.logoFile=e,this.speakers=s,this.tracks=l,this.entity=a,this.slug=y(g||`event-${r}`)}get isEnded(){return this.endDate&&new Date(this.endDate).getTime()<new Date().getTime()}get hasSpeakers(){return this.speakers.length>0}get hasTracks(){return this.tracks.length>0}get primaryTrack(){return this.tracks.length>0?this.tracks[0]:null}get speakerNames(){return this.speakers.map(r=>r.name).join(", ")}get trackNames(){return this.tracks.map(r=>r.name).join(", ")}}})();export{S as EventItem};
1
+ import{__esDecorate as o,__runInitializers as g}from"tslib";import{action as D,computed as d,observable as I}from"mobx";import{generateUniqueSlug as w}from"../tools/slug";let y=(()=>{let n=[],m,u,v,h,f,_,i,r,c,k,p;return class{static{const t=typeof Symbol=="function"&&Symbol.metadata?Object.create(null):void 0;m=[d],u=[d],v=[d],h=[d],f=[d],_=[d],i=[d],r=[d],c=[d],k=[D],p=[D],o(this,null,m,{kind:"getter",name:"bookmarked",static:!1,private:!1,access:{has:e=>"bookmarked"in e,get:e=>e.bookmarked},metadata:t},null,n),o(this,null,u,{kind:"getter",name:"visited",static:!1,private:!1,access:{has:e=>"visited"in e,get:e=>e.visited},metadata:t},null,n),o(this,null,v,{kind:"getter",name:"tracks",static:!1,private:!1,access:{has:e=>"tracks"in e,get:e=>e.tracks},metadata:t},null,n),o(this,null,h,{kind:"getter",name:"venues",static:!1,private:!1,access:{has:e=>"venues"in e,get:e=>e.venues},metadata:t},null,n),o(this,null,f,{kind:"getter",name:"pastEvents",static:!1,private:!1,access:{has:e=>"pastEvents"in e,get:e=>e.pastEvents},metadata:t},null,n),o(this,null,_,{kind:"getter",name:"futureEvents",static:!1,private:!1,access:{has:e=>"futureEvents"in e,get:e=>e.futureEvents},metadata:t},null,n),o(this,null,i,{kind:"getter",name:"liveEvents",static:!1,private:!1,access:{has:e=>"liveEvents"in e,get:e=>e.liveEvents},metadata:t},null,n),o(this,null,r,{kind:"getter",name:"todayEvents",static:!1,private:!1,access:{has:e=>"todayEvents"in e,get:e=>e.todayEvents},metadata:t},null,n),o(this,null,c,{kind:"getter",name:"tomorrowEvents",static:!1,private:!1,access:{has:e=>"tomorrowEvents"in e,get:e=>e.tomorrowEvents},metadata:t},null,n),o(this,null,k,{kind:"method",name:"replaceBookmarked",static:!1,private:!1,access:{has:e=>"replaceBookmarked"in e,get:e=>e.replaceBookmarked},metadata:t},null,n),o(this,null,p,{kind:"method",name:"replaceVisited",static:!1,private:!1,access:{has:e=>"replaceVisited"in e,get:e=>e.replaceVisited},metadata:t},null,n),t&&Object.defineProperty(this,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:t})}rootStore=g(this,n);eventItems=[];constructor(t){this.rootStore=t}findByNameOrSlug(t){return this.eventItems.find(e=>e.name===t||e.slug===t||e.externalId===t)}get bookmarked(){return this.eventItems.filter(t=>t.bookmarked)}get visited(){return this.eventItems.filter(t=>t.visited)}get tracks(){const t=new Map;return this.eventItems.forEach(e=>{e.tracks.forEach(a=>{t.set(a.id,a)})}),Array.from(t.values()).sort((e,a)=>e.name.localeCompare(a.name))}getEventsByTrack(t){return this.eventItems.filter(e=>e.tracks.some(a=>a.id===t))}getEventsBySpeaker(t){return this.eventItems.filter(e=>e.speakers.some(a=>a.id===t))}get venues(){const t=new Map;return this.eventItems.forEach(e=>{if(e.boothId){const a=this.rootStore.boothStore.booths.find(l=>l.id===e.boothId);a&&t.set(a.id,a)}}),Array.from(t.values()).sort((e,a)=>e.name.localeCompare(a.name))}getEventsByVenue(t){return this.eventItems.filter(e=>e.boothId===t)}get pastEvents(){const t=new Date;return this.eventItems.filter(e=>new Date(e.endDate)<t)}get futureEvents(){const t=new Date;return this.eventItems.filter(e=>new Date(e.startDate)>t)}get liveEvents(){const t=new Date;return this.eventItems.filter(e=>{const a=new Date(e.startDate),l=new Date(e.endDate);return a<=t&&t<=l})}get todayEvents(){const t=new Date;return t.setHours(0,0,0,0),this.eventItems.filter(e=>{const a=new Date(e.startDate);return a.setHours(0,0,0,0),a.getTime()===t.getTime()})}get tomorrowEvents(){const t=new Date;return t.setDate(t.getDate()+1),t.setHours(0,0,0,0),this.eventItems.filter(e=>{const a=new Date(e.startDate);return a.setHours(0,0,0,0),a.getTime()===t.getTime()})}replaceBookmarked(t){const e=(t||[]).map(s=>this.eventItems.find(b=>b.id===s)).filter(s=>s),a=new Set(e),l=this.bookmarked.filter(s=>!a.has(s));for(const s of l)s.bookmarked=!1;for(const s of e)s.bookmarked=!0}replaceVisited(t){const e=(t||[]).map(s=>this.eventItems.find(b=>b.id===s)).filter(s=>s),a=new Set(e),l=this.visited.filter(s=>!a.has(s));for(const s of l)s.visited=!1;for(const s of e)s.visited=!0}}})();export default y;let S=(()=>{let n,m=[],u=[],v,h=[],f=[];return class{static{const i=typeof Symbol=="function"&&Symbol.metadata?Object.create(null):void 0;n=[I],v=[I],o(null,null,n,{kind:"field",name:"bookmarked",static:!1,private:!1,access:{has:r=>"bookmarked"in r,get:r=>r.bookmarked,set:(r,c)=>{r.bookmarked=c}},metadata:i},m,u),o(null,null,v,{kind:"field",name:"visited",static:!1,private:!1,access:{has:r=>"visited"in r,get:r=>r.visited,set:(r,c)=>{r.visited=c}},metadata:i},h,f),i&&Object.defineProperty(this,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:i})}id;externalId;boothId;name;description;startDate;endDate;logoFile;speakers;tracks;entity;slug;bookmarked=g(this,m,!1);visited=(g(this,u),g(this,h,!1));constructor(i,r,c,k,p,E,t,e,a=[],l=[],s={type:"event"}){g(this,f),this.id=i,this.externalId=r,this.boothId=c,this.name=k,this.description=p,this.startDate=E,this.endDate=t,this.logoFile=e,this.speakers=a,this.tracks=l,this.entity=s,this.slug=w(k||`event-${i}`)}get isEnded(){return this.endDate&&new Date(this.endDate).getTime()<new Date().getTime()}get hasSpeakers(){return this.speakers.length>0}get hasTracks(){return this.tracks.length>0}get primaryTrack(){return this.tracks.length>0?this.tracks[0]:null}get speakerNames(){return this.speakers.map(i=>i.name).join(", ")}get trackNames(){return this.tracks.map(i=>i.name).join(", ")}}})();export{S as EventItem};
@@ -1 +1 @@
1
- import{__esDecorate as o,__runInitializers as r}from"tslib";import{action as N,computed as g,observable as h}from"mobx";import A from"../tools/settings";import q from"../utils/is-debug";import{buildRebookingUrl as T,getRebookingToken as O}from"../tools/rebookingUrl";let U=(()=>{let s=[],m,b=[],c=[],u,k=[],p=[],v,S=[],y=[],f,x,B,I,R,d,i,n,w,C;return class{static{const t=typeof Symbol=="function"&&Symbol.metadata?Object.create(null):void 0;m=[h],u=[h],v=[h],f=[g({keepAlive:!0})],x=[g({keepAlive:!0})],B=[g({keepAlive:!0})],I=[g({keepAlive:!0})],R=[g],d=[g],i=[g({keepAlive:!0})],n=[N],w=[N],C=[N],o(this,null,f,{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,B,{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,I,{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,R,{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,d,{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,i,{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,n,{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,w,{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,C,{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,m,{kind:"field",name:"highlightedByExternalIds",static:!1,private:!1,access:{has:e=>"highlightedByExternalIds"in e,get:e=>e.highlightedByExternalIds,set:(e,l)=>{e.highlightedByExternalIds=l}},metadata:t},b,c),o(null,null,u,{kind:"field",name:"rebookingStateChangeRequested",static:!1,private:!1,access:{has:e=>"rebookingStateChangeRequested"in e,get:e=>e.rebookingStateChangeRequested,set:(e,l)=>{e.rebookingStateChangeRequested=l}},metadata:t},k,p),o(null,null,v,{kind:"field",name:"rebookingStateSaved",static:!1,private:!1,access:{has:e=>"rebookingStateSaved"in e,get:e=>e.rebookingStateSaved,set:(e,l)=>{e.rebookingStateSaved=l}},metadata:t},S,y),t&&Object.defineProperty(this,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:t})}rootStore=r(this,s);exhibitors=[];timeout;constructor(t){r(this,y),this.rootStore=t}highlightedByExternalIds=r(this,b,[]);rebookingStateChangeRequested=(r(this,c),r(this,k,!1));rebookingStateSaved=(r(this,p),r(this,S,!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),l=new Set(e),E=this.bookmarked.filter(a=>!l.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),l=new Set(e),E=this.visited.filter(a=>!l.has(a));for(const a of E)a.visited=!1;for(const a of e)a.visited=!0}setRebookingState(t,e,l){clearTimeout(this.timeout),this.rebookingStateChangeRequested=!1,t.rebookingState=e,t.rebookingNote=l;const E=T("api/v1/set-rebooking-state",{rt:O(),expoKey:this.rootStore.fp.eventId});fetch(E,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({expoKey:A.EXPO,exhibitorId:t.id,rebookingState:e,rebookingNote:l})}).then(a=>{a.ok&&(this.rebookingStateSaved=!0),!a.ok&&!q&&(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 U;let j=(()=>{let s,m=[],b=[],c,u=[],k=[],p,v=[],S=[],y,f=[],x=[],B,I=[],R=[];return class{static{const d=typeof Symbol=="function"&&Symbol.metadata?Object.create(null):void 0;s=[h],c=[h],p=[h],y=[h],B=[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,n)=>{i.featured=n}},metadata:d},m,b),o(null,null,c,{kind:"field",name:"bookmarked",static:!1,private:!1,access:{has:i=>"bookmarked"in i,get:i=>i.bookmarked,set:(i,n)=>{i.bookmarked=n}},metadata:d},u,k),o(null,null,p,{kind:"field",name:"visited",static:!1,private:!1,access:{has:i=>"visited"in i,get:i=>i.visited,set:(i,n)=>{i.visited=n}},metadata:d},v,S),o(null,null,y,{kind:"field",name:"rebookingState",static:!1,private:!1,access:{has:i=>"rebookingState"in i,get:i=>i.rebookingState,set:(i,n)=>{i.rebookingState=n}},metadata:d},f,x),o(null,null,B,{kind:"field",name:"rebookingNote",static:!1,private:!1,access:{has:i=>"rebookingNote"in i,get:i=>i.rebookingNote,set:(i,n)=>{i.rebookingNote=n}},metadata:d},I,R),d&&Object.defineProperty(this,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:d})}store;id;name;externalId;featured=r(this,m,void 0);advertise=r(this,b);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,u,void 0);visited=(r(this,k),r(this,v,void 0));rebookingState=(r(this,S),r(this,f,void 0));rebookingNote=(r(this,x),r(this,I,void 0));booths=r(this,R);categories;schedule;entity={type:"exhibitor"}}})();export{j 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 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 +1 @@
1
- import{__esDecorate as c,__runInitializers as t}from"tslib";import{action as g,observable as h,runInAction as d}from"mobx";let m=(()=>{let a=[],s,r=[],o=[],l;return class{static{const n=typeof Symbol=="function"&&Symbol.metadata?Object.create(null):void 0;s=[h],l=[g],c(this,null,l,{kind:"method",name:"loadEngine",static:!1,private:!1,access:{has:e=>"loadEngine"in e,get:e=>e.loadEngine},metadata:n},null,a),c(null,null,s,{kind:"field",name:"engine",static:!1,private:!1,access:{has:e=>"engine"in e,get:e=>e.engine,set:(e,i)=>{e.engine=i}},metadata:n},r,o),n&&Object.defineProperty(this,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:n})}engine=(t(this,a),t(this,r,void 0));pendingPromise=(t(this,o),null);loadEngine(){return this.engine?Promise.resolve():this.pendingPromise?this.pendingPromise:(this.pendingPromise=(async()=>{try{const n=await import("fuse.js");d(()=>{this.engine=n.default})}catch(n){console.error(n),d(()=>{this.pendingPromise=null})}})(),this.pendingPromise)}search(n,e,i){return!this.engine||!n?.length||!e||!i?.length?[]:new this.engine(n,{keys:i,ignoreFieldNorm:!0,includeScore:!0,threshold:.3}).search(e)}}})();export default m;
1
+ import{__esDecorate as c,__runInitializers as t}from"tslib";import{action as g,observable as u,runInAction as d}from"mobx";let h=(()=>{let r=[],a,s=[],l=[],o;return class{static{const n=typeof Symbol=="function"&&Symbol.metadata?Object.create(null):void 0;a=[u],o=[g],c(this,null,o,{kind:"method",name:"loadEngine",static:!1,private:!1,access:{has:e=>"loadEngine"in e,get:e=>e.loadEngine},metadata:n},null,r),c(null,null,a,{kind:"field",name:"engine",static:!1,private:!1,access:{has:e=>"engine"in e,get:e=>e.engine,set:(e,i)=>{e.engine=i}},metadata:n},s,l),n&&Object.defineProperty(this,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:n})}engine=(t(this,r),t(this,s,void 0));pendingPromise=(t(this,l),null);loadEngine(){return this.engine?Promise.resolve():this.pendingPromise?this.pendingPromise:(this.pendingPromise=(async()=>{try{const n=await import("fuse.js");d(()=>{this.engine=n.default})}catch(n){console.error(n),d(()=>{this.pendingPromise=null})}})(),this.pendingPromise)}search(n,e,i){return!this.engine||!n?.length||!e||!i?.length?[]:new this.engine(n,{keys:i,ignoreFieldNorm:!0,includeScore:!0,threshold:.3}).search(e)}}})();export default h;
@@ -1 +1 @@
1
- import{__esDecorate as C,__runInitializers as f}from"tslib";import{Exhibitor as c}from"./ExhibitorStore";import{BoothBase as d}from"./BoothStore";import{Category as p}from"./CategoryStore";import{getColorFromGradient as y}from"../tools/Color";import{EventItem as x}from"./EventStore";import{computed as k}from"mobx";let g=(()=>{let s=[],r;return class{static{const t=typeof Symbol=="function"&&Symbol.metadata?Object.create(null):void 0;r=[k({keepAlive:!0})],C(this,null,r,{kind:"getter",name:"minAndMaxClicks",static:!1,private:!1,access:{has:e=>"minAndMaxClicks"in e,get:e=>e.minAndMaxClicks},metadata:t},null,s),t&&Object.defineProperty(this,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:t})}rootStore=f(this,s);heatmapData={};constructor(t){this.rootStore=t}forceTrack=null;get minAndMaxClicks(){const{booths:t=[],exhibitors:e=[],yah:i=[]}=this.heatmapData,o=[...t,...e,...i];if(o.length===0)return{min:0,max:0};const l=m=>m.reduce((a,n)=>(n.viewCount>a.max&&(a.max=n.viewCount),n.viewCount<a.min&&(a.min=n.viewCount),a),{min:m[0].viewCount,max:m[0].viewCount}),{min:h,max:u}=l(o);return{min:h,max:u}}getClicksByType(t){return t instanceof p?-1:t instanceof c?this.getClicksByItem(t):t instanceof HeatmapYah?this.getClicksByItem(t):t instanceof x?0:this.getClicksByItem(t)}getClicksByItem(t){return t instanceof c?this.heatmapData?.exhibitors?.find(e=>e.id===t.id)?.viewCount||0:t instanceof d?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 o=this.getClicksByItem(i);e+=o}return e}getColorByClicks(t){const{min:e,max:i}=this.minAndMaxClicks;return y(t,e,i)}}})();export default g;export class HeatmapYah{id;name;viewCount;x;y;z;entity={type:"heatmap-yah"}}
1
+ import{__esDecorate as h,__runInitializers as C}from"tslib";import{Exhibitor as m}from"./ExhibitorStore";import{BoothBase as d}from"./BoothStore";import{Category as p}from"./CategoryStore";import{getColorFromGradient as x}from"../tools/Color";import{EventItem as y}from"./EventStore";import{computed as k}from"mobx";let g=(()=>{let a=[],l;return class{static{const t=typeof Symbol=="function"&&Symbol.metadata?Object.create(null):void 0;l=[k({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 p?-1:t instanceof m?this.getClicksByItem(t):t instanceof HeatmapYah?this.getClicksByItem(t):t instanceof y?0:this.getClicksByItem(t)}getClicksByItem(t){return t instanceof m?this.heatmapData?.exhibitors?.find(e=>e.id===t.id)?.viewCount||0:t instanceof d?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)}}})();export default g;export class HeatmapYah{id;name;viewCount;x;y;z;entity={type:"heatmap-yah"}}
@@ -1 +1 @@
1
- import{__esDecorate as c,__runInitializers as n}from"tslib";import{action as b,computed as p,observable as o}from"mobx";import{getLanguage as f,changeLanguage as y}from"../utils/i18n";let v=(()=>{let l=[],g,u=[],s=[],t,i=[],d=[],m,h;return class{static{const a=typeof Symbol=="function"&&Symbol.metadata?Object.create(null):void 0;g=[o],t=[o],m=[p],h=[b],c(this,null,m,{kind:"getter",name:"language",static:!1,private:!1,access:{has:e=>"language"in e,get:e=>e.language},metadata:a},null,l),c(this,null,h,{kind:"method",name:"changeLanguage",static:!1,private:!1,access:{has:e=>"changeLanguage"in e,get:e=>e.changeLanguage},metadata:a},null,l),c(null,null,g,{kind:"field",name:"languages",static:!1,private:!1,access:{has:e=>"languages"in e,get:e=>e.languages,set:(e,r)=>{e.languages=r}},metadata:a},u,s),c(null,null,t,{kind:"field",name:"languageIds",static:!1,private:!1,access:{has:e=>"languageIds"in e,get:e=>e.languageIds,set:(e,r)=>{e.languageIds=r}},metadata:a},i,d),a&&Object.defineProperty(this,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:a})}rootStore=n(this,l);languages=n(this,u,[]);languageIds=(n(this,s),n(this,i,new Set));constructor(a){n(this,d),this.rootStore=a}get language(){return this.languages.find(a=>a.id===f())}async changeLanguage(a){await y(a),this.languages=this.languages.map(e=>({...e,selected:e.id===a})),this.rootStore.uiState.resetRtl()}}})();export default v;let S=(()=>{let l,g=[],u=[];return class{static{const s=typeof Symbol=="function"&&Symbol.metadata?Object.create(null):void 0;l=[o],c(null,null,l,{kind:"field",name:"selected",static:!1,private:!1,access:{has:t=>"selected"in t,get:t=>t.selected,set:(t,i)=>{t.selected=i}},metadata:s},g,u),s&&Object.defineProperty(this,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:s})}id;name;entity={type:"language"};selected=n(this,g,void 0);constructor(s,t,i=!1){n(this,u),this.id=s,this.name=t,this.selected=i}}})();export{S as Language};
1
+ import{__esDecorate as u,__runInitializers as s}from"tslib";import{action as _,computed as f,observable as d}from"mobx";import{getLanguage as b,changeLanguage as p}from"../utils/i18n";let y=(()=>{let n=[],g,r=[],c=[],l,t=[],i=[],m,h;return class{static{const a=typeof Symbol=="function"&&Symbol.metadata?Object.create(null):void 0;g=[d],l=[d],m=[f],h=[_],u(this,null,m,{kind:"getter",name:"language",static:!1,private:!1,access:{has:e=>"language"in e,get:e=>e.language},metadata:a},null,n),u(this,null,h,{kind:"method",name:"changeLanguage",static:!1,private:!1,access:{has:e=>"changeLanguage"in e,get:e=>e.changeLanguage},metadata:a},null,n),u(null,null,g,{kind:"field",name:"languages",static:!1,private:!1,access:{has:e=>"languages"in e,get:e=>e.languages,set:(e,o)=>{e.languages=o}},metadata:a},r,c),u(null,null,l,{kind:"field",name:"languageIds",static:!1,private:!1,access:{has:e=>"languageIds"in e,get:e=>e.languageIds,set:(e,o)=>{e.languageIds=o}},metadata:a},t,i),a&&Object.defineProperty(this,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:a})}rootStore=s(this,n);languages=s(this,r,[]);languageIds=(s(this,c),s(this,t,new Set));constructor(a){s(this,i),this.rootStore=a}get language(){return this.languages.find(a=>a.id===b())}async changeLanguage(a){await p(a),this.languages=this.languages.map(e=>({...e,selected:e.id===a})),this.rootStore.uiState.resetRtl()}}})();export default y;let I=(()=>{let n,g=[],r=[];return class{static{const l=typeof Symbol=="function"&&Symbol.metadata?Object.create(null):void 0;n=[d],u(null,null,n,{kind:"field",name:"selected",static:!1,private:!1,access:{has:t=>"selected"in t,get:t=>t.selected,set:(t,i)=>{t.selected=i}},metadata:l},g,r),l&&Object.defineProperty(this,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:l})}id;name;entity={type:"language"};selected=s(this,g,void 0);constructor(l,t,i=!1){s(this,r),this.id=l,this.name=t,this.selected=i}}})();export{I as Language};
@@ -1 +1 @@
1
- import{__esDecorate as l,__runInitializers as n}from"tslib";import{action as w,computed as b,observable as u,runInAction as j}from"mobx";import o from".";import R from"../components/Map/drawing/config/config-load-layer";import D from"../core/Rect";import{shortenName as N}from"../utils/shortenName";import{areLayersEnabled as _}from"../utils/areLayersEnabled";export var LayersMode;(function(a){a[a.Default=0]="Default",a[a.Separated=1]="Separated",a[a.Radio=2]="Radio",a[a.CheckBox=3]="CheckBox"})(LayersMode||(LayersMode={}));export var LayerMode;(function(a){a[a.Unset=0]="Unset",a[a.AlwaysVisible=1]="AlwaysVisible",a[a.AlwaysHidden=2]="AlwaysHidden",a[a.TurnedOn=3]="TurnedOn",a[a.TurnedOff=4]="TurnedOff"})(LayerMode||(LayerMode={}));let C=(()=>{let a,y=[],m=[],f,p=[],v=[];return class{static{const h=typeof Symbol=="function"&&Symbol.metadata?Object.create(null):void 0;a=[u],f=[u],l(null,null,a,{kind:"field",name:"loaded",static:!1,private:!1,access:{has:s=>"loaded"in s,get:s=>s.loaded,set:(s,c)=>{s.loaded=c}},metadata:h},y,m),l(null,null,f,{kind:"field",name:"visible",static:!1,private:!1,access:{has:s=>"visible"in s,get:s=>s.visible,set:(s,c)=>{s.visible=c}},metadata:h},p,v),h&&Object.defineProperty(this,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:h})}basePriority;name;description;frozen;rect=null;viewbox=null;configured;childLayers=[];rootParent=null;mode;children=[];pathway;loaded=n(this,y,void 0);visible=(n(this,m),n(this,p,void 0));get shortName(){return N(this.description)}constructor(){n(this,v)}}})();export{C as Layer};let I=(()=>{let a=[],y,m=[],f=[],p,v=[],h=[],s,c=[],g=[],L,k=[],P=[],S,A,x,O,T,V,E,z;return class{static{const t=typeof Symbol=="function"&&Symbol.metadata?Object.create(null):void 0;y=[u],p=[u],s=[u],L=[u],S=[b({keepAlive:!0})],A=[b({keepAlive:!0})],x=[b({keepAlive:!0})],O=[b],T=[b],V=[w],E=[w],z=[w],l(this,null,S,{kind:"getter",name:"visible",static:!1,private:!1,access:{has:e=>"visible"in e,get:e=>e.visible},metadata:t},null,a),l(this,null,A,{kind:"getter",name:"loaded",static:!1,private:!1,access:{has:e=>"loaded"in e,get:e=>e.loaded},metadata:t},null,a),l(this,null,x,{kind:"getter",name:"rectangle",static:!1,private:!1,access:{has:e=>"rectangle"in e,get:e=>e.rectangle},metadata:t},null,a),l(this,null,O,{kind:"getter",name:"pathwayLayers",static:!1,private:!1,access:{has:e=>"pathwayLayers"in e,get:e=>e.pathwayLayers},metadata:t},null,a),l(this,null,T,{kind:"getter",name:"floors",static:!1,private:!1,access:{has:e=>"floors"in e,get:e=>e.floors},metadata:t},null,a),l(this,null,V,{kind:"method",name:"updateVisibility",static:!1,private:!1,access:{has:e=>"updateVisibility"in e,get:e=>e.updateVisibility},metadata:t},null,a),l(this,null,E,{kind:"method",name:"showPathWay",static:!1,private:!1,access:{has:e=>"showPathWay"in e,get:e=>e.showPathWay},metadata:t},null,a),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,a),l(null,null,y,{kind:"field",name:"layers",static:!1,private:!1,access:{has:e=>"layers"in e,get:e=>e.layers,set:(e,i)=>{e.layers=i}},metadata:t},m,f),l(null,null,p,{kind:"field",name:"defaultLayer",static:!1,private:!1,access:{has:e=>"defaultLayer"in e,get:e=>e.defaultLayer,set:(e,i)=>{e.defaultLayer=i}},metadata:t},v,h),l(null,null,s,{kind:"field",name:"mode",static:!1,private:!1,access:{has:e=>"mode"in e,get:e=>e.mode,set:(e,i)=>{e.mode=i}},metadata:t},c,g),l(null,null,L,{kind:"field",name:"layersLoaded",static:!1,private:!1,access:{has:e=>"layersLoaded"in e,get:e=>e.layersLoaded,set:(e,i)=>{e.layersLoaded=i}},metadata:t},k,P),t&&Object.defineProperty(this,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:t})}layers=(n(this,a),n(this,m,[]));defaultLayer=(n(this,f),n(this,v,void 0));mode=(n(this,h),n(this,c,void 0));layersLoaded=(n(this,g),n(this,k,!1));updateVisibilityTimeout=(n(this,P),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:D.fromMultiple(t)||null}get pathwayLayers(){return this.layers.filter(t=>t.pathway)}get floors(){if(!_())return[];const t=new Set(this.layers.filter(e=>e&&!e.frozen&&!e.rootParent&&!e.pathway).concat(o.routeStore.layers.filter(e=>e&&e.mode!==LayerMode.AlwaysHidden&&e.mode!==LayerMode.AlwaysVisible)));return Array.from(t).reverse().map((e,i)=>{const r=o.routeStore.layers.length>0&&o.routeStore.layers.indexOf(e)===-1,d=o.toursStore.tourLayers.length>0&&o.toursStore.tourLayers.indexOf(e)===-1;return{layer:e,name:e.name,shortName:e.shortName,description:e.description,active:e.visible,disabled:!!(r||d),index:i}})}updateVisibility(t,e){if(this.mode===LayersMode.Radio&&!e)return;const i=t instanceof C?t:this.findLayer(t);if(!i||i.visible===e){i&&o.routeStore.currentRouteLayer!==i&&(o.routeStore.currentRouteLayer=i);return}R(i).then(()=>{this.mode===LayersMode.Radio&&this.layers.filter(r=>!r.pathway).forEach(r=>{r.name!==i.name&&!r.frozen&&r.visible&&(r.visible=!1,r.childLayers.forEach(d=>{d.visible=!1}))}),i&&(i.visible=e,i.childLayers.forEach(r=>{r.visible=e}),e&&(o.routeStore.currentRouteLayer=i),typeof o.fp.onFloorActivated=="function"&&(clearTimeout(this.updateVisibilityTimeout),this.updateVisibilityTimeout=setTimeout(()=>{const r=o.fp.getFloors();o.fp.onFloorActivated(r.find(d=>d.name===i.name))})))})}findLayer(t){if(t==null)return null;const e=this.layers.filter(r=>!r.rootParent);if(typeof t=="number"&&(i=e.filter(r=>!r.frozen)[t],i))return i;t=t.toString().toLowerCase();var i=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!i&&!/\D/.test(t)&&(i=e.filter(r=>!r.frozen)[parseInt(t)]),i}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 R(e);const i=this.getPathwayList();j(()=>{i.forEach(r=>{const d=r.name===t;r.visible=d,r.childLayers.forEach(W=>{W.visible=d})})})}catch(e){console.error("showPathWay",e)}}hidePathways(){this.getPathwayList().forEach(t=>{t.visible=!1,t.childLayers.forEach(e=>{e.visible=!1})})}}})();export default I;
1
+ import{__esDecorate as l,__runInitializers as o}from"tslib";import{action as w,computed as b,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 I=(()=>{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;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{I as Layer};let N=(()=>{let i=[],h,y=[],m=[],p,_=[],v=[],c,s=[],f=[],g,L=[],P=[],S,k,x,A,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],g=[u],S=[b({keepAlive:!0})],k=[b({keepAlive:!0})],x=[b({keepAlive:!0})],A=[b],R=[b],T=[w],V=[w],z=[w],l(this,null,S,{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,x,{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,A,{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},_,v),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,g,{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},L,P),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,v),o(this,s,void 0));layersLoaded=(o(this,f),o(this,L,!1));updateVisibilityTimeout=(o(this,P),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(e=>e&&!e.frozen&&!e.rootParent&&!e.pathway).concat(n.routeStore.layers.filter(e=>e&&e.mode!==LayerMode.AlwaysHidden&&e.mode!==LayerMode.AlwaysVisible)));return Array.from(t).reverse().map((e,a)=>{const r=n.routeStore.layers.length>0&&n.routeStore.layers.indexOf(e)===-1,d=n.toursStore.tourLayers.length>0&&n.toursStore.tourLayers.indexOf(e)===-1;return{layer:e,name:e.name,shortName:e.shortName,description:e.description,active:e.visible,disabled:!!(r||d),index:a}})}updateVisibility(t,e){if(this.mode===LayersMode.Radio&&!e)return;const a=t instanceof I?t:this.findLayer(t);if(!a||a.visible===e){a&&n.routeStore.currentRouteLayer!==a&&(n.routeStore.currentRouteLayer=a);return}E(a).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);const a=this.getPathwayList();C(()=>{a.forEach(r=>{const d=r.name===t;r.visible=d,r.childLayers.forEach(O=>{O.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 o,__runInitializers as a}from"tslib";import{action as k,computed as g,observable as l}from"mobx";import{fpGeo as A}from"../components/Mapbox/utils/fpGeo";import n from"../data";import{uiState as E}from"./index";let y=(()=>{let s=[],d,c=[],p=[],m,h=[],r=[],x,u=[],b=[],B,v=[],M=[],S,f,w;return class{static{const e=typeof Symbol=="function"&&Symbol.metadata?Object.create(null):void 0;d=[l],m=[l],x=[l],B=[l],S=[k],f=[g({keepAlive:!0})],w=[g({keepAlive:!0})],o(this,null,S,{kind:"method",name:"activateMapbox",static:!1,private:!1,access:{has:t=>"activateMapbox"in t,get:t=>t.activateMapbox},metadata:e},null,s),o(this,null,f,{kind:"getter",name:"hideModeSwitchButton",static:!1,private:!1,access:{has:t=>"hideModeSwitchButton"in t,get:t=>t.hideModeSwitchButton},metadata:e},null,s),o(this,null,w,{kind:"getter",name:"showMapbox",static:!1,private:!1,access:{has:t=>"showMapbox"in t,get:t=>t.showMapbox},metadata:e},null,s),o(null,null,d,{kind:"field",name:"mapBoxSelected",static:!1,private:!1,access:{has:t=>"mapBoxSelected"in t,get:t=>t.mapBoxSelected,set:(t,i)=>{t.mapBoxSelected=i}},metadata:e},c,p),o(null,null,m,{kind:"field",name:"isMapbox",static:!1,private:!1,access:{has:t=>"isMapbox"in t,get:t=>t.isMapbox,set:(t,i)=>{t.isMapbox=i}},metadata:e},h,r),o(null,null,x,{kind:"field",name:"mapBoxActivated",static:!1,private:!1,access:{has:t=>"mapBoxActivated"in t,get:t=>t.mapBoxActivated,set:(t,i)=>{t.mapBoxActivated=i}},metadata:e},u,b),o(null,null,B,{kind:"field",name:"mapBoxEnabled",static:!1,private:!1,access:{has:t=>"mapBoxEnabled"in t,get:t=>t.mapBoxEnabled,set:(t,i)=>{t.mapBoxEnabled=i}},metadata:e},v,M),e&&Object.defineProperty(this,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e})}rootStore=a(this,s);mapBoxSelected=a(this,c,!0);isMapbox=(a(this,p),a(this,h,!0));mapBoxActivated=(a(this,r),a(this,u,!n.hide3dMapDefault));mapBoxEnabled=(a(this,b),a(this,v,!!A&&n.allow3dView&&!E.kiosk&&window.navigator.onLine));constructor(e){a(this,M),this.rootStore=e}activateMapbox(){this.mapBoxSelected=!this.showMapbox,this.mapBoxActivated=!0}get hideModeSwitchButton(){return n.hideModeSwitchButton=!0,this.mapBoxEnabled&&n.hideModeSwitchButton}get showMapbox(){return this.mapBoxEnabled&&this.mapBoxSelected&&this.mapBoxActivated}}})();export default y;
1
+ import{__esDecorate as o,__runInitializers as a}from"tslib";import{action as g,computed as w,observable as s}from"mobx";import{fpGeo as A}from"../components/Mapbox/utils/fpGeo";import d from"../data";import{uiState as k}from"./index";let E=(()=>{let l=[],r,n=[],c=[],p,m=[],x=[],h,u=[],b=[],_,B=[],f=[],M,v,S;return class{static{const e=typeof Symbol=="function"&&Symbol.metadata?Object.create(null):void 0;r=[s],p=[s],h=[s],_=[s],M=[g],v=[w({keepAlive:!0})],S=[w({keepAlive:!0})],o(this,null,M,{kind:"method",name:"activateMapbox",static:!1,private:!1,access:{has:t=>"activateMapbox"in t,get:t=>t.activateMapbox},metadata:e},null,l),o(this,null,v,{kind:"getter",name:"hideModeSwitchButton",static:!1,private:!1,access:{has:t=>"hideModeSwitchButton"in t,get:t=>t.hideModeSwitchButton},metadata:e},null,l),o(this,null,S,{kind:"getter",name:"showMapbox",static:!1,private:!1,access:{has:t=>"showMapbox"in t,get:t=>t.showMapbox},metadata:e},null,l),o(null,null,r,{kind:"field",name:"mapBoxSelected",static:!1,private:!1,access:{has:t=>"mapBoxSelected"in t,get:t=>t.mapBoxSelected,set:(t,i)=>{t.mapBoxSelected=i}},metadata:e},n,c),o(null,null,p,{kind:"field",name:"isMapbox",static:!1,private:!1,access:{has:t=>"isMapbox"in t,get:t=>t.isMapbox,set:(t,i)=>{t.isMapbox=i}},metadata:e},m,x),o(null,null,h,{kind:"field",name:"mapBoxActivated",static:!1,private:!1,access:{has:t=>"mapBoxActivated"in t,get:t=>t.mapBoxActivated,set:(t,i)=>{t.mapBoxActivated=i}},metadata:e},u,b),o(null,null,_,{kind:"field",name:"mapBoxEnabled",static:!1,private:!1,access:{has:t=>"mapBoxEnabled"in t,get:t=>t.mapBoxEnabled,set:(t,i)=>{t.mapBoxEnabled=i}},metadata:e},B,f),e&&Object.defineProperty(this,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e})}rootStore=a(this,l);mapBoxSelected=a(this,n,!0);isMapbox=(a(this,c),a(this,m,!0));mapBoxActivated=(a(this,x),a(this,u,!d.hide3dMapDefault));mapBoxEnabled=(a(this,b),a(this,B,!!A&&d.allow3dView&&!k.kiosk&&window.navigator.onLine));constructor(e){a(this,f),this.rootStore=e}activateMapbox(){this.mapBoxSelected=!this.showMapbox,this.mapBoxActivated=!0}get hideModeSwitchButton(){return d.hideModeSwitchButton=!0,this.mapBoxEnabled&&d.hideModeSwitchButton}get showMapbox(){return this.mapBoxEnabled&&this.mapBoxSelected&&this.mapBoxActivated}}})();export default E;
@@ -1 +1 @@
1
- import{__esDecorate as i,__runInitializers as n}from"tslib";import{action as a,observable as st,computed as ht,runInAction as at}from"mobx";import nt from"../tools/logger";import{isWebGlSupported as ct}from"../utils";import ut,{BoothBase as ot,RegularBooth as mt}from"./BoothStore";import dt,{Category as St}from"./CategoryStore";import gt,{Exhibitor as rt}from"./ExhibitorStore";import pt from"./CategoryFilterStore";import yt from"./EventStore";import{GaEventActions as vt}from"../tools/gtag";import l from"../utils/is-mobile";import c from"../utils/is-webview";import kt from"./HeatmapStore";import bt from"./LanguageStore";import ft,{LayersMode as lt}from"./LayerStore";import wt from"./MapboxStore";import xt from"./RouteStore";import Bt from"./ToursStore";import Lt from"./UIState";import Ct from"./PoiTypeStore";import{sanitizeSearch as Ft}from"../utils/sanitizeText";import _t from"./FuzzySearchEngineStore";import Et from"./SessionsFilterStore";import{getLocale as It}from"../utils/i18n";import Tt from"./SearchStore";import Ot from"./SearchButtonsStore";import{URLFilterManager as Mt}from"../services/URLFilterManager";import{ShortcutRegistry as zt}from"./ShortcutRegistry";import{SessionsShortcutProvider as At}from"./providers/SessionsShortcutProvider";import Rt from"./SpeakerStore";import Vt from"./SpeakerFilterStore";import{SpeakerShortcutProvider as Pt}from"./providers/SpeakerShortcutProvider";import{SearchShortcutProvider as Gt}from"./providers/SearchShortcutProvider";let Nt=(()=>{let s=[],u,m=[],d=[],S,g=[],p=[],y,v,k,b,f,w,x,B,L,C,F,_,E,I,T,O,M,z,A,R,V,P,G,N,q,j,D,K,U,W,$,H,J,Q,X,Y,Z,tt,et,it;return class{static{const e=typeof Symbol=="function"&&Symbol.metadata?Object.create(null):void 0;u=[st],S=[st],y=[a],v=[a],k=[a],b=[a],f=[a],w=[a],x=[a],B=[a],L=[a],C=[a],F=[a],_=[a],E=[a],I=[a],T=[a],O=[a],M=[a],z=[a],A=[a],R=[a],V=[a],P=[a],G=[a],N=[a],q=[a],j=[a],D=[a],K=[a],U=[a],W=[a],$=[a],H=[a],J=[a],Q=[ht],X=[a],Y=[a],Z=[a],tt=[a],et=[a],it=[a],i(this,null,y,{kind:"method",name:"setResetCameraFn",static:!1,private:!1,access:{has:t=>"setResetCameraFn"in t,get:t=>t.setResetCameraFn},metadata:e},null,s),i(this,null,v,{kind:"method",name:"selectExhibitor",static:!1,private:!1,access:{has:t=>"selectExhibitor"in t,get:t=>t.selectExhibitor},metadata:e},null,s),i(this,null,k,{kind:"method",name:"selectBooth",static:!1,private:!1,access:{has:t=>"selectBooth"in t,get:t=>t.selectBooth},metadata:e},null,s),i(this,null,b,{kind:"method",name:"reset",static:!1,private:!1,access:{has:t=>"reset"in t,get:t=>t.reset},metadata:e},null,s),i(this,null,f,{kind:"method",name:"selectNone",static:!1,private:!1,access:{has:t=>"selectNone"in t,get:t=>t.selectNone},metadata:e},null,s),i(this,null,w,{kind:"method",name:"selectBookmarks",static:!1,private:!1,access:{has:t=>"selectBookmarks"in t,get:t=>t.selectBookmarks},metadata:e},null,s),i(this,null,x,{kind:"method",name:"selectVisited",static:!1,private:!1,access:{has:t=>"selectVisited"in t,get:t=>t.selectVisited},metadata:e},null,s),i(this,null,B,{kind:"method",name:"selectLanguage",static:!1,private:!1,access:{has:t=>"selectLanguage"in t,get:t=>t.selectLanguage},metadata:e},null,s),i(this,null,L,{kind:"method",name:"selectCategory",static:!1,private:!1,access:{has:t=>"selectCategory"in t,get:t=>t.selectCategory},metadata:e},null,s),i(this,null,C,{kind:"method",name:"selectEventItem",static:!1,private:!1,access:{has:t=>"selectEventItem"in t,get:t=>t.selectEventItem},metadata:e},null,s),i(this,null,F,{kind:"method",name:"selectSearch",static:!1,private:!1,access:{has:t=>"selectSearch"in t,get:t=>t.selectSearch},metadata:e},null,s),i(this,null,_,{kind:"method",name:"clickBookmarks",static:!1,private:!1,access:{has:t=>"clickBookmarks"in t,get:t=>t.clickBookmarks},metadata:e},null,s),i(this,null,E,{kind:"method",name:"clickVisited",static:!1,private:!1,access:{has:t=>"clickVisited"in t,get:t=>t.clickVisited},metadata:e},null,s),i(this,null,I,{kind:"method",name:"clickLanguage",static:!1,private:!1,access:{has:t=>"clickLanguage"in t,get:t=>t.clickLanguage},metadata:e},null,s),i(this,null,T,{kind:"method",name:"clickCategory",static:!1,private:!1,access:{has:t=>"clickCategory"in t,get:t=>t.clickCategory},metadata:e},null,s),i(this,null,O,{kind:"method",name:"clickSeminars",static:!1,private:!1,access:{has:t=>"clickSeminars"in t,get:t=>t.clickSeminars},metadata:e},null,s),i(this,null,M,{kind:"method",name:"clickBoothInList",static:!1,private:!1,access:{has:t=>"clickBoothInList"in t,get:t=>t.clickBoothInList},metadata:e},null,s),i(this,null,z,{kind:"method",name:"clickBoothInList2",static:!1,private:!1,access:{has:t=>"clickBoothInList2"in t,get:t=>t.clickBoothInList2},metadata:e},null,s),i(this,null,A,{kind:"method",name:"clickBooth",static:!1,private:!1,access:{has:t=>"clickBooth"in t,get:t=>t.clickBooth},metadata:e},null,s),i(this,null,R,{kind:"method",name:"clickExhibitor2",static:!1,private:!1,access:{has:t=>"clickExhibitor2"in t,get:t=>t.clickExhibitor2},metadata:e},null,s),i(this,null,V,{kind:"method",name:"clickExhibitor",static:!1,private:!1,access:{has:t=>"clickExhibitor"in t,get:t=>t.clickExhibitor},metadata:e},null,s),i(this,null,P,{kind:"method",name:"showMap",static:!1,private:!1,access:{has:t=>"showMap"in t,get:t=>t.showMap},metadata:e},null,s),i(this,null,G,{kind:"method",name:"showOverlay",static:!1,private:!1,access:{has:t=>"showOverlay"in t,get:t=>t.showOverlay},metadata:e},null,s),i(this,null,N,{kind:"method",name:"toggleMapOverlay",static:!1,private:!1,access:{has:t=>"toggleMapOverlay"in t,get:t=>t.toggleMapOverlay},metadata:e},null,s),i(this,null,q,{kind:"method",name:"moveToList",static:!1,private:!1,access:{has:t=>"moveToList"in t,get:t=>t.moveToList},metadata:e},null,s),i(this,null,j,{kind:"method",name:"moveToExhibitor",static:!1,private:!1,access:{has:t=>"moveToExhibitor"in t,get:t=>t.moveToExhibitor},metadata:e},null,s),i(this,null,D,{kind:"method",name:"changeActiveListIndex",static:!1,private:!1,access:{has:t=>"changeActiveListIndex"in t,get:t=>t.changeActiveListIndex},metadata:e},null,s),i(this,null,K,{kind:"method",name:"toggleModal",static:!1,private:!1,access:{has:t=>"toggleModal"in t,get:t=>t.toggleModal},metadata:e},null,s),i(this,null,U,{kind:"method",name:"openGallery",static:!1,private:!1,access:{has:t=>"openGallery"in t,get:t=>t.openGallery},metadata:e},null,s),i(this,null,W,{kind:"method",name:"closeGallery",static:!1,private:!1,access:{has:t=>"closeGallery"in t,get:t=>t.closeGallery},metadata:e},null,s),i(this,null,$,{kind:"method",name:"openActiveListItem",static:!1,private:!1,access:{has:t=>"openActiveListItem"in t,get:t=>t.openActiveListItem},metadata:e},null,s),i(this,null,H,{kind:"method",name:"toggleCategoryFilter",static:!1,private:!1,access:{has:t=>"toggleCategoryFilter"in t,get:t=>t.toggleCategoryFilter},metadata:e},null,s),i(this,null,J,{kind:"method",name:"applyCategoryFilters",static:!1,private:!1,access:{has:t=>"applyCategoryFilters"in t,get:t=>t.applyCategoryFilters},metadata:e},null,s),i(this,null,Q,{kind:"getter",name:"filteredExhibitors",static:!1,private:!1,access:{has:t=>"filteredExhibitors"in t,get:t=>t.filteredExhibitors},metadata:e},null,s),i(this,null,X,{kind:"method",name:"selectSessions",static:!1,private:!1,access:{has:t=>"selectSessions"in t,get:t=>t.selectSessions},metadata:e},null,s),i(this,null,Y,{kind:"method",name:"selectExhibitors",static:!1,private:!1,access:{has:t=>"selectExhibitors"in t,get:t=>t.selectExhibitors},metadata:e},null,s),i(this,null,Z,{kind:"method",name:"selectTours",static:!1,private:!1,access:{has:t=>"selectTours"in t,get:t=>t.selectTours},metadata:e},null,s),i(this,null,tt,{kind:"method",name:"selectSpeakers",static:!1,private:!1,access:{has:t=>"selectSpeakers"in t,get:t=>t.selectSpeakers},metadata:e},null,s),i(this,null,et,{kind:"method",name:"selectSpeaker",static:!1,private:!1,access:{has:t=>"selectSpeaker"in t,get:t=>t.selectSpeaker},metadata:e},null,s),i(this,null,it,{kind:"method",name:"resetFilters",static:!1,private:!1,access:{has:t=>"resetFilters"in t,get:t=>t.resetFilters},metadata:e},null,s),i(null,null,u,{kind:"field",name:"initialized",static:!1,private:!1,access:{has:t=>"initialized"in t,get:t=>t.initialized,set:(t,o)=>{t.initialized=o}},metadata:e},m,d),i(null,null,S,{kind:"field",name:"resetCameraFn",static:!1,private:!1,access:{has:t=>"resetCameraFn"in t,get:t=>t.resetCameraFn,set:(t,o)=>{t.resetCameraFn=o}},metadata:e},g,p),e&&Object.defineProperty(this,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e})}categoryStore=n(this,s);exhibitorStore;boothStore;uiState;routeStore;toursStore;mapboxStore;layerStore;eventStore;poiTypeStore;heatmapStore;languageStore;fuzzySearchEngineStore;categoryFilterStore;sessionsFilterStore;speakerStore;speakerFilterStore;searchStore;searchButtonsStore;urlFilterManager;shortcutRegistry;fp;renderer;initialized=n(this,m,!1);resetCameraFn=(n(this,d),n(this,g,void 0));setResetCameraFn(e){this.resetCameraFn=e}constructor(){n(this,p),this.categoryStore=new dt(this),this.exhibitorStore=new gt(this),this.boothStore=new ut(this),this.routeStore=new xt(this),this.toursStore=new Bt(this),this.uiState=new Lt(this),this.mapboxStore=new wt(this),this.layerStore=new ft,this.eventStore=new yt(this),this.heatmapStore=new kt(this),this.languageStore=new bt(this),this.poiTypeStore=new Ct(this),this.fuzzySearchEngineStore=new _t,this.categoryFilterStore=new pt(this),this.sessionsFilterStore=new Et(this),this.speakerStore=new Rt(this),this.speakerFilterStore=new Vt(this),this.searchStore=new Tt(this),this.searchButtonsStore=new Ot(this),this.urlFilterManager=new Mt(this),this.shortcutRegistry=new zt,this.registerShortcutProviders()}selectExhibitor(e,t=!0){this.uiState.hoveredExhibitor=null,this.uiState.details=e;var o=e.booths.filter(h=>h.visible),r=e.booths.filter(h=>!h.visible);!o.length&&r.length&&this.layerStore.updateVisibility(r[0].layer,!0),t&&setTimeout(()=>this.moveToList(e.booths.filter(h=>h.visible)),c||l?500:50)}selectBooth(e,t=!0){let o=Array.isArray(e)?e:[e];this.uiState.details=o[0],o.length===1&&o[0].schedule?.length&&(this.uiState.desiredOverlaySize="medium"),o.length===1&&o[0].layer&&!o[0].visible&&this.layerStore.mode===lt.Radio&&this.layerStore.updateVisibility(o[0].layer,!0),t&&setTimeout(()=>this.moveToList(o),c||l?500:50)}reset(){const e=window.__searchi;e&&e.querySelector&&e.querySelector("input[type=search]")&&e.querySelector("input[type=search]").blur&&e.querySelector("input[type=search]").blur(),window.setTimeout(()=>{this.uiState.setKioskModeEnabled||(localStorage.removeItem("language"),this.languageStore.changeLanguage(It()).then(()=>{at(()=>{this.selectSearch(""),this.routeStore.defaultFrom&&!this.routeStore.defaultFrom?.visible?this.selectBooth(this.routeStore.defaultFrom):this.uiState.details=null,this.resetCameraFn?.(),this.uiState.menu=!1,this.searchStore.resetSearchBox(),this.searchButtonsStore.clearAllFilters()}),setTimeout(()=>{at(()=>{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:"language",id:this.languageStore.language?.id}}selectCategory(e){window.__resett&&window.__resett(),this.uiState.details=e,this.uiState.list={type:"category",category:e},this.uiState.desiredOverlaySize="full",e.exhibitors.find(t=>t.booths.find(o=>o.visible))||this.layerStore.updateVisibility(e.exhibitors[0]?.booths[0]?.layer,!0),setTimeout(()=>{this.uiState.moveToBooths=e.exhibitors.filter(t=>t.booths.find(o=>o.visible)).flatMap(t=>t.booths)},200)}selectEventItem(e,t=!0){if(this.uiState.hoveredExhibitor=null,this.uiState.details=e,this.uiState.desiredOverlaySize="medium",e.boothId){const o=this.boothStore.booths.find(r=>r.id===e.boothId);o&&o.layer&&!o.visible&&this.layerStore.mode===lt.Radio&&this.layerStore.updateVisibility(o.layer,!0)}t&&setTimeout(()=>{if(e.boothId){const o=this.boothStore.booths.find(r=>r.id===e.boothId);o&&this.moveToList([o])}},c||l?500:50)}selectSearch(e){window.__resett&&window.__resett(),this.uiState.details=null,this.speakerStore.clearSelectedSpeaker(),this.uiState.list={type:"search",text:Ft(e,Object.keys(this.uiState.mapSettings).map(t=>`${t}=`)),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(e){window.__resett&&window.__resett(),this.uiState.menu=!1,this.selectCategory(e),this.uiState.onCategoryClick&&this.uiState.onCategoryClick({id:e.id,name:e.name,exhibitors:e.exhibitors.map(t=>t.id)}),setTimeout(()=>{this.moveToList(),this.showMap()},100)}clickSeminars(){this.clickCategory(this.categoryStore.seminarsCategory)}clickBoothInList(e){window.__resett&&window.__resett(),this.uiState.hoveredBooth=null,this.selectBooth(e),this.moveToList([e]),this.showMap()}clickBoothInList2(e){window.__resett&&window.__resett(),this.uiState.hoveredBooth=null,this.selectBooth(e,!1),window.setTimeout(()=>{this.moveToList([e]),this.showMap()},navigator.userAgent.toLowerCase().indexOf("android")>-1?400:50)}clickBooth(e){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&&e){this.routeStore.setStartPoint(e);return}if(e)this.routeStore.tempToBooth=e;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 t={name:"",description:""},o={target:{...e,layer:e.layer||t}};this.uiState.onBoothClick(o)}e.exhibitors.length===1&&e instanceof mt?(this.heatmapStore.forceTrack={action:vt.ViewBooth,label:e.name},this.selectExhibitor(e.exhibitors[0],!1)):this.selectBooth(e,!1),this.showMap()}}clickExhibitor2(e){this.selectExhibitor(e,!0),this.showMap()}clickExhibitor(e){window.setTimeout(()=>{this.clickExhibitor2(e)},navigator.userAgent.toLowerCase().indexOf("android")>-1?400:50)}showMap(){const e=this.uiState.details;e&&"schedule"in e&&e.schedule?.length>0?this.uiState.desiredOverlaySize="full":this.uiState.overlayPosition==="bottom"&&ct&&(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(e){e=e||this.uiState.listItems;const t=[];e.forEach(o=>{o instanceof rt?t.push(...o.booths.filter(r=>r.visible)):o instanceof ot&&t.push(o)}),this.uiState.moveToBooths=t}moveToExhibitor(e){this.moveToList([e])}changeActiveListIndex(e){let t=this.uiState.activeListIndex+e;t=Math.max(0,Math.min(this.uiState.listItems.length-1,t)),this.uiState.activeListIndex=t}toggleModal(e){this.uiState.modalActive[e]=!this.uiState.modalActive[e]}openGallery(){this.uiState.galleryActive=!0}closeGallery(){this.uiState.galleryActive=!1}openActiveListItem(){const e=this.uiState.listItems[this.uiState.activeListIndex];e&&(nt.log("Opening",e),e instanceof rt?this.clickExhibitor(e):e instanceof St?this.clickCategory(e):e instanceof ot&&this.clickBoothInList2(e))}toggleCategoryFilter(){this.uiState.categoryFilterOpen=!this.uiState.categoryFilterOpen}applyCategoryFilters(e){this.uiState.selectedCategoryFilters=e,this.uiState.categoryFilterOpen=!1}get filteredExhibitors(){return this.uiState.selectedCategoryFilters.length===0?this.exhibitorStore.exhibitors:this.exhibitorStore.exhibitors.filter(e=>this.uiState.selectedCategoryFilters.some(t=>e.categories.some(o=>o.id===t.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"),l&&(this.uiState.desiredOverlaySize="full")}selectExhibitors(){this.uiState.list={type:"exhibitors",text:"",focused:!1},this.uiState.menu=!1,l&&(this.uiState.desiredOverlaySize="full")}selectTours(){this.uiState.list={type:"tours",text:"",focused:!1},this.uiState.menu=!1,l&&(this.uiState.desiredOverlaySize="full")}selectSpeakers(){this.uiState.list={type:"speakers",text:"",focused:!1},this.uiState.menu=!1,l&&(this.uiState.desiredOverlaySize="full")}selectSpeaker(e,t=!0){this.speakerStore.selectSpeaker(e,t)}resetFilters(){this.searchButtonsStore.clearAllFilters()}registerShortcutProviders(){this.shortcutRegistry.register(new At(this)),this.shortcutRegistry.register(new Pt(this)),this.shortcutRegistry.register(new Gt(this))}}})();export default Nt;
1
+ import{__esDecorate as i,__runInitializers as n}from"tslib";import{action as a,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 le,RegularBooth as de}from"./BoothStore";import me,{Category as Se}from"./CategoryStore";import fe,{Exhibitor as oe}from"./ExhibitorStore";import ge from"./CategoryFilterStore";import pe from"./EventStore";import{GaEventActions as ke}from"../tools/gtag";import r from"../utils/is-mobile";import c from"../utils/is-webview";import ve from"./HeatmapStore";import ye from"./LanguageStore";import _e,{LayersMode as re}from"./LayerStore";import be from"./MapboxStore";import we from"./RouteStore";import xe from"./ToursStore";import Be from"./UIState";import Le from"./PoiTypeStore";import{sanitizeSearch as Ce}from"../utils/sanitizeText";import Ee from"./FuzzySearchEngineStore";import Fe from"./SessionsFilterStore";import{getLocale as Ie}from"../utils/i18n";import Te from"./SearchStore";import ze from"./SearchButtonsStore";import{URLFilterManager as Me}from"../services/URLFilterManager";import{ShortcutRegistry as Oe}from"./ShortcutRegistry";import{SessionsShortcutProvider as Ae}from"./providers/SessionsShortcutProvider";import Re from"./SpeakerStore";import Ve from"./SpeakerFilterStore";import{SpeakerShortcutProvider as Pe}from"./providers/SpeakerShortcutProvider";import{SearchShortcutProvider as Ge}from"./providers/SearchShortcutProvider";let Ne=(()=>{let s=[],u,d=[],m=[],S,f=[],g=[],p,k,v,y,_,b,w,x,B,L,C,E,F,I,T,z,M,O,A,R,V,P,G,N,q,j,U,W,D,H,K,$,J,Q,X,Y,Z,ee,te,ie;return class{static{const t=typeof Symbol=="function"&&Symbol.metadata?Object.create(null):void 0;u=[se],S=[se],p=[a],k=[a],v=[a],y=[a],_=[a],b=[a],w=[a],x=[a],B=[a],L=[a],C=[a],E=[a],F=[a],I=[a],T=[a],z=[a],M=[a],O=[a],A=[a],R=[a],V=[a],P=[a],G=[a],N=[a],q=[a],j=[a],U=[a],W=[a],D=[a],H=[a],K=[a],$=[a],J=[a],Q=[he],X=[a],Y=[a],Z=[a],ee=[a],te=[a],ie=[a],i(this,null,p,{kind:"method",name:"setResetCameraFn",static:!1,private:!1,access:{has:e=>"setResetCameraFn"in e,get:e=>e.setResetCameraFn},metadata:t},null,s),i(this,null,k,{kind:"method",name:"selectExhibitor",static:!1,private:!1,access:{has:e=>"selectExhibitor"in e,get:e=>e.selectExhibitor},metadata:t},null,s),i(this,null,v,{kind:"method",name:"selectBooth",static:!1,private:!1,access:{has:e=>"selectBooth"in e,get:e=>e.selectBooth},metadata:t},null,s),i(this,null,y,{kind:"method",name:"reset",static:!1,private:!1,access:{has:e=>"reset"in e,get:e=>e.reset},metadata:t},null,s),i(this,null,_,{kind:"method",name:"selectNone",static:!1,private:!1,access:{has:e=>"selectNone"in e,get:e=>e.selectNone},metadata:t},null,s),i(this,null,b,{kind:"method",name:"selectBookmarks",static:!1,private:!1,access:{has:e=>"selectBookmarks"in e,get:e=>e.selectBookmarks},metadata:t},null,s),i(this,null,w,{kind:"method",name:"selectVisited",static:!1,private:!1,access:{has:e=>"selectVisited"in e,get:e=>e.selectVisited},metadata:t},null,s),i(this,null,x,{kind:"method",name:"selectLanguage",static:!1,private:!1,access:{has:e=>"selectLanguage"in e,get:e=>e.selectLanguage},metadata:t},null,s),i(this,null,B,{kind:"method",name:"selectCategory",static:!1,private:!1,access:{has:e=>"selectCategory"in e,get:e=>e.selectCategory},metadata:t},null,s),i(this,null,L,{kind:"method",name:"selectEventItem",static:!1,private:!1,access:{has:e=>"selectEventItem"in e,get:e=>e.selectEventItem},metadata:t},null,s),i(this,null,C,{kind:"method",name:"selectSearch",static:!1,private:!1,access:{has:e=>"selectSearch"in e,get:e=>e.selectSearch},metadata:t},null,s),i(this,null,E,{kind:"method",name:"clickBookmarks",static:!1,private:!1,access:{has:e=>"clickBookmarks"in e,get:e=>e.clickBookmarks},metadata:t},null,s),i(this,null,F,{kind:"method",name:"clickVisited",static:!1,private:!1,access:{has:e=>"clickVisited"in e,get:e=>e.clickVisited},metadata:t},null,s),i(this,null,I,{kind:"method",name:"clickLanguage",static:!1,private:!1,access:{has:e=>"clickLanguage"in e,get:e=>e.clickLanguage},metadata:t},null,s),i(this,null,T,{kind:"method",name:"clickCategory",static:!1,private:!1,access:{has:e=>"clickCategory"in e,get:e=>e.clickCategory},metadata:t},null,s),i(this,null,z,{kind:"method",name:"clickSeminars",static:!1,private:!1,access:{has:e=>"clickSeminars"in e,get:e=>e.clickSeminars},metadata:t},null,s),i(this,null,M,{kind:"method",name:"clickBoothInList",static:!1,private:!1,access:{has:e=>"clickBoothInList"in e,get:e=>e.clickBoothInList},metadata:t},null,s),i(this,null,O,{kind:"method",name:"clickBoothInList2",static:!1,private:!1,access:{has:e=>"clickBoothInList2"in e,get:e=>e.clickBoothInList2},metadata:t},null,s),i(this,null,A,{kind:"method",name:"clickBooth",static:!1,private:!1,access:{has:e=>"clickBooth"in e,get:e=>e.clickBooth},metadata:t},null,s),i(this,null,R,{kind:"method",name:"clickExhibitor2",static:!1,private:!1,access:{has:e=>"clickExhibitor2"in e,get:e=>e.clickExhibitor2},metadata:t},null,s),i(this,null,V,{kind:"method",name:"clickExhibitor",static:!1,private:!1,access:{has:e=>"clickExhibitor"in e,get:e=>e.clickExhibitor},metadata:t},null,s),i(this,null,P,{kind:"method",name:"showMap",static:!1,private:!1,access:{has:e=>"showMap"in e,get:e=>e.showMap},metadata:t},null,s),i(this,null,G,{kind:"method",name:"showOverlay",static:!1,private:!1,access:{has:e=>"showOverlay"in e,get:e=>e.showOverlay},metadata:t},null,s),i(this,null,N,{kind:"method",name:"toggleMapOverlay",static:!1,private:!1,access:{has:e=>"toggleMapOverlay"in e,get:e=>e.toggleMapOverlay},metadata:t},null,s),i(this,null,q,{kind:"method",name:"moveToList",static:!1,private:!1,access:{has:e=>"moveToList"in e,get:e=>e.moveToList},metadata:t},null,s),i(this,null,j,{kind:"method",name:"moveToExhibitor",static:!1,private:!1,access:{has:e=>"moveToExhibitor"in e,get:e=>e.moveToExhibitor},metadata:t},null,s),i(this,null,U,{kind:"method",name:"changeActiveListIndex",static:!1,private:!1,access:{has:e=>"changeActiveListIndex"in e,get:e=>e.changeActiveListIndex},metadata:t},null,s),i(this,null,W,{kind:"method",name:"toggleModal",static:!1,private:!1,access:{has:e=>"toggleModal"in e,get:e=>e.toggleModal},metadata:t},null,s),i(this,null,D,{kind:"method",name:"openGallery",static:!1,private:!1,access:{has:e=>"openGallery"in e,get:e=>e.openGallery},metadata:t},null,s),i(this,null,H,{kind:"method",name:"closeGallery",static:!1,private:!1,access:{has:e=>"closeGallery"in e,get:e=>e.closeGallery},metadata:t},null,s),i(this,null,K,{kind:"method",name:"openActiveListItem",static:!1,private:!1,access:{has:e=>"openActiveListItem"in e,get:e=>e.openActiveListItem},metadata:t},null,s),i(this,null,$,{kind:"method",name:"toggleCategoryFilter",static:!1,private:!1,access:{has:e=>"toggleCategoryFilter"in e,get:e=>e.toggleCategoryFilter},metadata:t},null,s),i(this,null,J,{kind:"method",name:"applyCategoryFilters",static:!1,private:!1,access:{has:e=>"applyCategoryFilters"in e,get:e=>e.applyCategoryFilters},metadata:t},null,s),i(this,null,Q,{kind:"getter",name:"filteredExhibitors",static:!1,private:!1,access:{has:e=>"filteredExhibitors"in e,get:e=>e.filteredExhibitors},metadata:t},null,s),i(this,null,X,{kind:"method",name:"selectSessions",static:!1,private:!1,access:{has:e=>"selectSessions"in e,get:e=>e.selectSessions},metadata:t},null,s),i(this,null,Y,{kind:"method",name:"selectExhibitors",static:!1,private:!1,access:{has:e=>"selectExhibitors"in e,get:e=>e.selectExhibitors},metadata:t},null,s),i(this,null,Z,{kind:"method",name:"selectTours",static:!1,private:!1,access:{has:e=>"selectTours"in e,get:e=>e.selectTours},metadata:t},null,s),i(this,null,ee,{kind:"method",name:"selectSpeakers",static:!1,private:!1,access:{has:e=>"selectSpeakers"in e,get:e=>e.selectSpeakers},metadata:t},null,s),i(this,null,te,{kind:"method",name:"selectSpeaker",static:!1,private:!1,access:{has:e=>"selectSpeaker"in e,get:e=>e.selectSpeaker},metadata:t},null,s),i(this,null,ie,{kind:"method",name:"resetFilters",static:!1,private:!1,access:{has:e=>"resetFilters"in e,get:e=>e.resetFilters},metadata:t},null,s),i(null,null,u,{kind:"field",name:"initialized",static:!1,private:!1,access:{has:e=>"initialized"in e,get:e=>e.initialized,set:(e,l)=>{e.initialized=l}},metadata:t},d,m),i(null,null,S,{kind:"field",name:"resetCameraFn",static:!1,private:!1,access:{has:e=>"resetCameraFn"in e,get:e=>e.resetCameraFn,set:(e,l)=>{e.resetCameraFn=l}},metadata:t},f,g),t&&Object.defineProperty(this,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:t})}categoryStore=n(this,s);exhibitorStore;boothStore;uiState;routeStore;toursStore;mapboxStore;layerStore;eventStore;poiTypeStore;heatmapStore;languageStore;fuzzySearchEngineStore;categoryFilterStore;sessionsFilterStore;speakerStore;speakerFilterStore;searchStore;searchButtonsStore;urlFilterManager;shortcutRegistry;fp;renderer;initialized=n(this,d,!1);resetCameraFn=(n(this,m),n(this,f,void 0));setResetCameraFn(t){this.resetCameraFn=t}constructor(){n(this,g),this.categoryStore=new me(this),this.exhibitorStore=new fe(this),this.boothStore=new ue(this),this.routeStore=new we(this),this.toursStore=new xe(this),this.uiState=new Be(this),this.mapboxStore=new be(this),this.layerStore=new _e,this.eventStore=new pe(this),this.heatmapStore=new ve(this),this.languageStore=new ye(this),this.poiTypeStore=new Le(this),this.fuzzySearchEngineStore=new Ee,this.categoryFilterStore=new ge(this),this.sessionsFilterStore=new Fe(this),this.speakerStore=new Re(this),this.speakerFilterStore=new Ve(this),this.searchStore=new Te(this),this.searchButtonsStore=new ze(this),this.urlFilterManager=new Me(this),this.shortcutRegistry=new Oe,this.registerShortcutProviders()}selectExhibitor(t,e=!0){this.uiState.hoveredExhibitor=null,this.uiState.details=t;var l=t.booths.filter(h=>h.visible),o=t.booths.filter(h=>!h.visible);!l.length&&o.length&&this.layerStore.updateVisibility(o[0].layer,!0),e&&setTimeout(()=>this.moveToList(t.booths.filter(h=>h.visible)),c||r?500:50)}selectBooth(t,e=!0){let l=Array.isArray(t)?t:[t];this.uiState.details=l[0],l.length===1&&l[0].schedule?.length&&(this.uiState.desiredOverlaySize="medium"),l.length===1&&l[0].layer&&!l[0].visible&&this.layerStore.mode===re.Radio&&this.layerStore.updateVisibility(l[0].layer,!0),e&&setTimeout(()=>this.moveToList(l),c||r?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||(localStorage.removeItem("language"),this.languageStore.changeLanguage(Ie()).then(()=>{ae(()=>{this.selectSearch(""),this.routeStore.defaultFrom&&!this.routeStore.defaultFrom?.visible?this.selectBooth(this.routeStore.defaultFrom):this.uiState.details=null,this.resetCameraFn?.(),this.uiState.menu=!1,this.searchStore.resetSearchBox(),this.searchButtonsStore.clearAllFilters()}),setTimeout(()=>{ae(()=>{this.uiState.inIdle=!0})},100)}))},1e3)}selectNone(){window.__resett&&window.__resett(),this.uiState.details=this.uiState.selectedCategory}selectBookmarks(){this.uiState.details=null,this.uiState.list={type:"bookmarks"}}selectVisited(){this.uiState.details=null,this.uiState.list={type:"visited"}}selectLanguage(){this.uiState.details=null,this.uiState.list={type:"language",id:this.languageStore.language?.id}}selectCategory(t){window.__resett&&window.__resett(),this.uiState.details=t,this.uiState.list={type:"category",category:t},this.uiState.desiredOverlaySize="full",t.exhibitors.find(l=>l.booths.find(o=>o.visible))||this.layerStore.updateVisibility(t.exhibitors[0]?.booths[0]?.layer,!0),setTimeout(()=>{this.uiState.moveToBooths=t.exhibitors.filter(l=>l.booths.find(o=>o.visible)).flatMap(l=>l.booths)},200)}selectEventItem(t,e=!0){if(this.uiState.hoveredExhibitor=null,this.uiState.details=t,this.uiState.desiredOverlaySize="medium",t.boothId){const l=this.boothStore.booths.find(o=>o.id===t.boothId);l&&l.layer&&!l.visible&&this.layerStore.mode===re.Radio&&this.layerStore.updateVisibility(l.layer,!0)}e&&setTimeout(()=>{if(t.boothId){const l=this.boothStore.booths.find(o=>o.id===t.boothId);l&&this.moveToList([l])}},c||r?500:50)}selectSearch(t){window.__resett&&window.__resett(),this.uiState.details=null,this.speakerStore.clearSelectedSpeaker(),this.uiState.list={type:"search",text:Ce(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:""},l={target:{...t,layer:t.layer||e}};this.uiState.onBoothClick(l)}t.exhibitors.length===1&&t instanceof de?(this.heatmapStore.forceTrack={action:ke.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(){const t=this.uiState.details;t&&"schedule"in t&&t.schedule?.length>0?this.uiState.desiredOverlaySize="full":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(l=>{l instanceof oe?e.push(...l.booths.filter(o=>o.visible)):l instanceof le&&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 oe?this.clickExhibitor(t):t instanceof Se?this.clickCategory(t):t instanceof le&&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(l=>l.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"),r&&(this.uiState.desiredOverlaySize="full")}selectExhibitors(){this.uiState.list={type:"exhibitors",text:"",focused:!1},this.uiState.menu=!1,r&&(this.uiState.desiredOverlaySize="full")}selectTours(){this.uiState.list={type:"tours",text:"",focused:!1},this.uiState.menu=!1,r&&(this.uiState.desiredOverlaySize="full")}selectSpeakers(){this.uiState.list={type:"speakers",text:"",focused:!1},this.uiState.menu=!1,r&&(this.uiState.desiredOverlaySize="full")}selectSpeaker(t,e=!0){this.speakerStore.selectSpeaker(t,e)}resetFilters(){this.searchButtonsStore.clearAllFilters()}registerShortcutProviders(){this.shortcutRegistry.register(new Ae(this)),this.shortcutRegistry.register(new Pe(this)),this.shortcutRegistry.register(new Ge(this))}}})();export default Ne;