@expofp/floorplan 3.7.5 → 3.7.7

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 (420) hide show
  1. package/dist/browser/{Button-C2KZSXb2.js → Button-be7-qIF6.js} +8 -8
  2. package/dist/browser/{CookieConsent-Cq4qcueB.js → CookieConsent-B03ekG96.js} +7 -7
  3. package/dist/browser/{Debug-D1JNigN7.js → Debug-B1UNFScp.js} +7 -7
  4. package/dist/browser/{Demo-XVDEqvrA.js → Demo-CTtUvDQs.js} +15 -13
  5. package/dist/browser/{Free-C3wcDnvz.js → Free-BZd4QeSR.js} +15 -13
  6. package/dist/browser/{Gallery-CGxt4BEQ.js → Gallery-z592Fa7j.js} +2739 -2739
  7. package/dist/browser/{GpsLoader-BL9r9aBb.js → GpsLoader-DWmPBJyy.js} +61 -64
  8. package/dist/browser/{KioskStore-CEjAu1fS.js → KioskStore-BSqmbs3E.js} +7 -7
  9. package/dist/browser/{MaplibreAdapter-CFCATr0R.js → MaplibreAdapter-DIRCFD3I.js} +100 -100
  10. package/dist/browser/{Modal-DwvgaUJ4.js → Modal-Ud1JA7hD.js} +18 -18
  11. package/dist/browser/{PermissionNotice-Bfmg473m.js → PermissionNotice-BbZJ6-58.js} +11 -11
  12. package/dist/browser/{SetKioskMode-DgZnzdyw.js → SetKioskMode-34D-0WuZ.js} +15 -15
  13. package/dist/browser/ShowKiosk-BtV44Rii.js +27 -0
  14. package/dist/browser/{TouchHand-CW3feM7g.js → TouchHand-CNtsbSKe.js} +5 -7
  15. package/dist/browser/{ViewerMenuPanel-DTLGFJdO.js → ViewerMenuPanel-pOtBzzsw.js} +9 -11
  16. package/dist/browser/{add-debug-secret-listener-DLq_05Ya.js → add-debug-secret-listener-BGsmVhBN.js} +1 -1
  17. package/dist/browser/{boolean-editor-CPZmUe0k.js → boolean-editor-Cl6OlT2C.js} +9 -9
  18. package/dist/browser/{bootIntercom-OQUPpNv5.js → bootIntercom-uRX6nuBs.js} +2 -2
  19. package/dist/browser/{browser-CuHRVR45.js → browser-BHDrnFTi.js} +2 -2
  20. package/dist/browser/bundle.json +57 -57
  21. package/dist/browser/{classnames-Bua-vCkl.js → classnames-QBzO007b.js} +2 -2
  22. package/dist/browser/{client-BtBjpMA2.js → client-ygx4Nlgh.js} +4 -4
  23. package/dist/browser/{components-Bk-VYz6V.js → components-BnDl8_Vi.js} +2164 -2170
  24. package/dist/browser/{createWayfinding-BcyMyZfV.js → createWayfinding-Buli80Pv.js} +408 -408
  25. package/dist/browser/{debug-overlay-Bee-ID_e.js → debug-overlay-DYbF5EFf.js} +10 -10
  26. package/dist/browser/{debug-ui-C6Mu7jmE.js → debug-ui-v2AnaEsF.js} +6 -6
  27. package/dist/browser/{dist-Ypj0lz96.js → dist-64g9ko-T.js} +6 -6
  28. package/dist/browser/{dist-C3qJPKIL.js → dist-DtdB9fNn.js} +5 -5
  29. package/dist/browser/{dist-C6Bwrbur.js → dist-lpbRWIMA.js} +3 -3
  30. package/dist/browser/{efp-debug-init-BmXxwF3h.js → efp-debug-init-V-KZyjzu.js} +2 -2
  31. package/dist/browser/{enum-editor-BtytGwbn.js → enum-editor-BvuPhm1F.js} +11 -11
  32. package/dist/browser/{event-not-found-DtnrzyTS.js → event-not-found-B98QInDb.js} +1 -1
  33. package/dist/browser/{exports-DwNV9Fce.js → exports-DYQuAXct.js} +36 -36
  34. package/dist/browser/{favicon-Bg82OSpr.js → favicon-BfWHVf7B.js} +1 -1
  35. package/dist/browser/{fetch-retry.umd-C5JqTz5u.js → fetch-retry.umd-DRv91bwh.js} +2 -2
  36. package/dist/browser/{flex-BoTx9ho3.js → flex-x_PLPZk0.js} +5 -5
  37. package/dist/browser/{floorplan.loader-CJNw0Cge.js → floorplan.loader-OxPB-Vst.js} +856 -831
  38. package/dist/browser/{floorplan.ready-DOhcGKtR.js → floorplan.ready-CNMM3R0a.js} +374 -372
  39. package/dist/browser/{fuse-DJzKEeDA.js → fuse-B5q1zvj5.js} +2 -2
  40. package/dist/browser/{i18n-Cir_gINd.js → i18n-0QOfbI49.js} +664 -659
  41. package/dist/browser/index.js +11 -11
  42. package/dist/browser/{jsx-runtime-DCZPOiVu.js → jsx-runtime-DWNe7L8O.js} +2 -2
  43. package/dist/browser/{lib-DQt-k78K.js → lib-Ct9T4Ext.js} +4 -4
  44. package/dist/browser/{is-debug-0pBDODSU.js → loadImage-B1THebfH.js} +13 -16
  45. package/dist/browser/{main-CIgf7ksx.js → main-BpCLd01e.js} +1 -1
  46. package/dist/browser/{mobx-pMkzJ1bN.js → mobx-D6-09X_8.js} +4 -4
  47. package/dist/browser/{particles.min-Q2r1icQ9.js → particles.min-O_0S2sjU.js} +2 -2
  48. package/dist/browser/{prop-types-GavRCOPR.js → prop-types-C5Q7z09t.js} +2 -2
  49. package/dist/browser/{react-BlsmLtRd.js → react-CE6J-REN.js} +2 -2
  50. package/dist/browser/{react-dom-DgLQ5tL0.js → react-dom-Bz1SyK6u.js} +3 -3
  51. package/dist/browser/{reset-all-settings-CxUO3y2o.js → reset-all-settings-CxljY5vH.js} +7 -7
  52. package/dist/browser/{rolldown-runtime-C9CB_XOZ.js → rolldown-runtime-MSULzasX.js} +1 -1
  53. package/dist/browser/{settings-O5svYOVy.js → settings-LxDXcdq2.js} +2 -2
  54. package/dist/browser/{settings-item-354rDOkM.js → settings-item-BTHbu4gE.js} +6 -6
  55. package/dist/browser/{store-CVf_IY9i.js → store-FxMdLToE.js} +10175 -10152
  56. package/dist/browser/{string-editor-C1jvvzZY.js → string-editor-CLZ-xXO6.js} +7 -7
  57. package/dist/browser/{theme-BewQdo5w.js → theme-CKyrzkaN.js} +8 -8
  58. package/dist/browser/{ui-DeHsnIKK.js → ui-CaURu_-A.js} +8 -8
  59. package/dist/browser/{useRenderTarget-Cpug5PXZ.js → useRenderTarget-DlU37Ln7.js} +4 -4
  60. package/dist/esm/components/AlertContainer.d.ts +1 -1
  61. package/dist/esm/components/Autocomplete.d.ts +1 -1
  62. package/dist/esm/components/Autocomplete.js +1 -1
  63. package/dist/esm/components/BaseFilterModal.d.ts +1 -1
  64. package/dist/esm/components/Booth/Booth.d.ts +1 -1
  65. package/dist/esm/components/Booth/Booth.js +1 -1
  66. package/dist/esm/components/Booth/BoothOnHold.js +1 -1
  67. package/dist/esm/components/Booth/BoothReserved.js +1 -1
  68. package/dist/esm/components/Booth/BoothSpecial.d.ts +2 -2
  69. package/dist/esm/components/Booth/BoothWithoutExhibitor.d.ts +1 -1
  70. package/dist/esm/components/Booth/BoothWithoutExhibitor.js +1 -1
  71. package/dist/esm/components/Category.d.ts +1 -1
  72. package/dist/esm/components/Category.js +1 -1
  73. package/dist/esm/components/CategoryFilterModal.js +1 -1
  74. package/dist/esm/components/CookieConsent.js +1 -1
  75. package/dist/esm/components/Debug.d.ts +1 -1
  76. package/dist/esm/components/Debug.js +1 -1
  77. package/dist/esm/components/Demo.d.ts +1 -1
  78. package/dist/esm/components/Demo.js +1 -1
  79. package/dist/esm/components/EntityItemContainer.d.ts +1 -1
  80. package/dist/esm/components/EntityList.d.ts +1 -1
  81. package/dist/esm/components/EntityList.js +1 -1
  82. package/dist/esm/components/EntityListRow.d.ts +2 -2
  83. package/dist/esm/components/EntityListRow.js +1 -1
  84. package/dist/esm/components/ErrorBoundary.js +1 -1
  85. package/dist/esm/components/Event.d.ts +1 -1
  86. package/dist/esm/components/Event.js +1 -1
  87. package/dist/esm/components/EventBadge.d.ts +2 -2
  88. package/dist/esm/components/EventBadge.js +1 -1
  89. package/dist/esm/components/Exhibitor.d.ts +1 -1
  90. package/dist/esm/components/Exhibitor.js +1 -1
  91. package/dist/esm/components/Filter.js +1 -1
  92. package/dist/esm/components/Free.d.ts +1 -1
  93. package/dist/esm/components/Free.js +1 -1
  94. package/dist/esm/components/Gallery/Gallery.d.ts +1 -1
  95. package/dist/esm/components/Gallery/Gallery.js +1 -1
  96. package/dist/esm/components/Gallery/GalleryModal/GalleryModal.d.ts +1 -1
  97. package/dist/esm/components/Gallery/GalleryModal/GalleryModal.js +1 -1
  98. package/dist/esm/components/Gallery/TransformImg/TransformImg.d.ts +1 -1
  99. package/dist/esm/components/Gallery/TransformImg/TransformImg.js +1 -1
  100. package/dist/esm/components/GpsLoader.js +1 -1
  101. package/dist/esm/components/IntercomLauncher.d.ts +1 -1
  102. package/dist/esm/components/IntercomLauncher.js +1 -1
  103. package/dist/esm/components/Kiosk/KioskStore.d.ts +3 -3
  104. package/dist/esm/components/Kiosk/SetKiosk/Confirm/ConfirmDialog.d.ts +1 -1
  105. package/dist/esm/components/Kiosk/SetKiosk/FormInput/RangeInput.d.ts +1 -1
  106. package/dist/esm/components/Kiosk/SetKiosk/Message/InfoMessage.d.ts +1 -1
  107. package/dist/esm/components/Kiosk/SetKiosk/SetKioskComponent.d.ts +1 -1
  108. package/dist/esm/components/Kiosk/SetKiosk/SetKioskComponent.js +1 -1
  109. package/dist/esm/components/Kiosk/SetKiosk/SetKioskForm.d.ts +1 -1
  110. package/dist/esm/components/Kiosk/SetKiosk/SetKioskForm.js +1 -1
  111. package/dist/esm/components/Kiosk/SetKiosk/SetKioskStatusMessages.d.ts +1 -1
  112. package/dist/esm/components/Kiosk/SetKioskMode.js +1 -1
  113. package/dist/esm/components/Kiosk/ShowKiosk.js +1 -1
  114. package/dist/esm/components/Kiosk/kioskApi.d.ts +1 -1
  115. package/dist/esm/components/Language.js +1 -1
  116. package/dist/esm/components/LanguageRow.d.ts +1 -1
  117. package/dist/esm/components/LanguageRow.js +1 -1
  118. package/dist/esm/components/LargeMessage.d.ts +1 -1
  119. package/dist/esm/components/LargeMessage.js +1 -1
  120. package/dist/esm/components/Layout.d.ts +1 -1
  121. package/dist/esm/components/Layout.js +1 -1
  122. package/dist/esm/components/LevelSelector.d.ts +1 -1
  123. package/dist/esm/components/LevelSelector.js +1 -1
  124. package/dist/esm/components/List.d.ts +1 -1
  125. package/dist/esm/components/List.js +1 -1
  126. package/dist/esm/components/LogoOverlay.d.ts +1 -1
  127. package/dist/esm/components/LogoOverlay.js +1 -1
  128. package/dist/esm/components/Map/Map.js +1 -1
  129. package/dist/esm/components/Map/drawing/config/config-all.js +1 -1
  130. package/dist/esm/components/Map/drawing/config/config-bg.d.ts +2 -2
  131. package/dist/esm/components/Map/drawing/config/config-bg.js +1 -1
  132. package/dist/esm/components/Map/drawing/config/config-booth-badge.d.ts +1 -1
  133. package/dist/esm/components/Map/drawing/config/config-booth-badge.js +1 -1
  134. package/dist/esm/components/Map/drawing/config/config-booth-bg.d.ts +4 -4
  135. package/dist/esm/components/Map/drawing/config/config-booth-bg.js +1 -1
  136. package/dist/esm/components/Map/drawing/config/config-booth-bookmark.d.ts +2 -2
  137. package/dist/esm/components/Map/drawing/config/config-booth-bookmark.js +1 -1
  138. package/dist/esm/components/Map/drawing/config/config-booth-border.d.ts +2 -2
  139. package/dist/esm/components/Map/drawing/config/config-booth-border.js +1 -1
  140. package/dist/esm/components/Map/drawing/config/config-booth-labels-special.d.ts +3 -3
  141. package/dist/esm/components/Map/drawing/config/config-booth-labels-special.js +2 -2
  142. package/dist/esm/components/Map/drawing/config/config-booth-labels.d.ts +4 -4
  143. package/dist/esm/components/Map/drawing/config/config-booth-labels.js +1 -1
  144. package/dist/esm/components/Map/drawing/config/config-booths.d.ts +1 -1
  145. package/dist/esm/components/Map/drawing/config/config-booths.js +1 -1
  146. package/dist/esm/components/Map/drawing/config/config-load-layer.d.ts +1 -1
  147. package/dist/esm/components/Map/drawing/config/config-load-layer.js +1 -1
  148. package/dist/esm/components/Map/drawing/config/config-markers.js +1 -1
  149. package/dist/esm/components/Map/drawing/config/loadBoothsImages.d.ts +3 -3
  150. package/dist/esm/components/Map/drawing/config/loadBoothsImages.js +1 -1
  151. package/dist/esm/components/Map/pointInConvexQuad.d.ts +1 -1
  152. package/dist/esm/components/Map/traffic/useBuildRoute.js +2 -2
  153. package/dist/esm/components/Map/traffic/useManageTraffic.js +1 -1
  154. package/dist/esm/components/MapControls.d.ts +1 -1
  155. package/dist/esm/components/MapControls.js +1 -1
  156. package/dist/esm/components/Maplibre/MaplibreAdapter.d.ts +1 -1
  157. package/dist/esm/components/Maplibre/MaplibreWrapper.d.ts +1 -2
  158. package/dist/esm/components/Maplibre/useCameraReactions.d.ts +3 -3
  159. package/dist/esm/components/Maplibre/useDimming.d.ts +4 -4
  160. package/dist/esm/components/Maplibre/useLayerVisibilitySync.d.ts +4 -4
  161. package/dist/esm/components/Maplibre/useRendererEvents.d.ts +2 -2
  162. package/dist/esm/components/Maplibre/useWayfindingAndMarkers.d.ts +2 -2
  163. package/dist/esm/components/Maplibre/utils/geo-config.d.ts +3 -3
  164. package/dist/esm/components/Maplibre/utils/layer-defs.d.ts +1 -1
  165. package/dist/esm/components/Maplibre/utils/map-helpers.d.ts +2 -2
  166. package/dist/esm/components/MarketMaterialList.d.ts +1 -1
  167. package/dist/esm/components/MarketMaterialList.js +1 -1
  168. package/dist/esm/components/Menu.js +1 -1
  169. package/dist/esm/components/MobileToggleButton.d.ts +1 -1
  170. package/dist/esm/components/MobileToggleButton.js +1 -1
  171. package/dist/esm/components/Modal.d.ts +1 -1
  172. package/dist/esm/components/Modal.js +1 -1
  173. package/dist/esm/components/MultiSelectGroups.d.ts +1 -1
  174. package/dist/esm/components/MultiSelectGroups.js +1 -1
  175. package/dist/esm/components/Overlay.d.ts +1 -1
  176. package/dist/esm/components/Overlay.js +1 -1
  177. package/dist/esm/components/OverlayContainer.js +1 -1
  178. package/dist/esm/components/OverlayGripContainer.js +1 -1
  179. package/dist/esm/components/OverlayParticles.d.ts +1 -1
  180. package/dist/esm/components/OverlayParticles.js +1 -1
  181. package/dist/esm/components/RebookingNotes.d.ts +1 -1
  182. package/dist/esm/components/RebookingNotes.js +1 -1
  183. package/dist/esm/components/RebookingRadioGroup.d.ts +1 -1
  184. package/dist/esm/components/RebookingRadioGroup.js +1 -1
  185. package/dist/esm/components/RoutePlanner/RoutePlanner.d.ts +1 -1
  186. package/dist/esm/components/RoutePlanner/RoutePlanner.js +1 -1
  187. package/dist/esm/components/RoutePlanner/RoutePlannerHeader.js +1 -1
  188. package/dist/esm/components/RoutePlanner/RoutePlannerStopItem.d.ts +1 -1
  189. package/dist/esm/components/RoutePlanner/RoutePlannerStopItem.js +1 -1
  190. package/dist/esm/components/RouteQR.d.ts +1 -1
  191. package/dist/esm/components/RouteQR.js +1 -1
  192. package/dist/esm/components/Schedule.d.ts +2 -2
  193. package/dist/esm/components/Schedule.js +1 -1
  194. package/dist/esm/components/ScrollableRowContainer.js +1 -1
  195. package/dist/esm/components/Search.d.ts +1 -1
  196. package/dist/esm/components/Search.js +1 -1
  197. package/dist/esm/components/SearchBox.d.ts +1 -1
  198. package/dist/esm/components/SearchBox.js +1 -1
  199. package/dist/esm/components/SearchButtons/SearchButton.d.ts +1 -1
  200. package/dist/esm/components/SearchButtons/SearchButton.js +1 -1
  201. package/dist/esm/components/SearchButtons/SearchButtons.d.ts +1 -1
  202. package/dist/esm/components/SearchButtons/SearchButtons.js +1 -1
  203. package/dist/esm/components/SearchButtons/SearchSubButton.d.ts +1 -1
  204. package/dist/esm/components/SearchButtons/SearchSubButton.js +1 -1
  205. package/dist/esm/components/SearchButtons/SearchSubButtons.d.ts +1 -1
  206. package/dist/esm/components/SearchButtons/SearchSubButtons.js +1 -1
  207. package/dist/esm/components/Sessions.d.ts +1 -1
  208. package/dist/esm/components/Sessions.js +1 -1
  209. package/dist/esm/components/SessionsFiltersModal.d.ts +1 -1
  210. package/dist/esm/components/SessionsFiltersModal.js +1 -1
  211. package/dist/esm/components/Share.d.ts +1 -1
  212. package/dist/esm/components/Share.js +1 -1
  213. package/dist/esm/components/Shortcuts/ShortcutButton.d.ts +2 -2
  214. package/dist/esm/components/Shortcuts/ShortcutButton.js +1 -1
  215. package/dist/esm/components/Shortcuts/ShortcutsFiltersButton.d.ts +1 -1
  216. package/dist/esm/components/Shortcuts/ShortcutsFiltersButton.js +1 -1
  217. package/dist/esm/components/Shortcuts/ShortcutsToolbar.d.ts +1 -1
  218. package/dist/esm/components/Shortcuts/ShortcutsToolbar.js +1 -1
  219. package/dist/esm/components/ShowMoreButton.d.ts +1 -1
  220. package/dist/esm/components/ShowMoreButton.js +1 -1
  221. package/dist/esm/components/SidebarActions.d.ts +1 -1
  222. package/dist/esm/components/SidebarActions.js +1 -1
  223. package/dist/esm/components/SimpleRow.d.ts +1 -1
  224. package/dist/esm/components/SimpleRow.js +1 -1
  225. package/dist/esm/components/Speaker.d.ts +1 -1
  226. package/dist/esm/components/Speaker.js +1 -1
  227. package/dist/esm/components/Speakers.d.ts +1 -1
  228. package/dist/esm/components/Speakers.js +1 -1
  229. package/dist/esm/components/SpeakersFiltersModal.d.ts +1 -1
  230. package/dist/esm/components/SpeakersFiltersModal.js +1 -1
  231. package/dist/esm/components/Toast/ToastContainer.d.ts +1 -1
  232. package/dist/esm/components/Toast/ToastContainer.js +1 -1
  233. package/dist/esm/components/Toast/ToastProvider.js +1 -1
  234. package/dist/esm/components/TourPoints.js +1 -1
  235. package/dist/esm/components/Tours.d.ts +1 -1
  236. package/dist/esm/components/Tours.js +1 -1
  237. package/dist/esm/components/ToursList.d.ts +2 -2
  238. package/dist/esm/components/ToursList.js +1 -1
  239. package/dist/esm/components/ViewerMenuPanel.d.ts +1 -1
  240. package/dist/esm/components/ViewerMenuPanel.js +1 -1
  241. package/dist/esm/components/WayInformation.d.ts +1 -1
  242. package/dist/esm/components/WayInformation.js +1 -1
  243. package/dist/esm/components/Wayfinding.d.ts +1 -1
  244. package/dist/esm/components/Wayfinding.js +1 -1
  245. package/dist/esm/components/WayfindingFloorSelectorContainer.d.ts +1 -1
  246. package/dist/esm/components/WayfindingTemplate.d.ts +4 -4
  247. package/dist/esm/components/WayfindingTemplate.js +1 -1
  248. package/dist/esm/components/Ws.d.ts +1 -1
  249. package/dist/esm/components/Ws.js +1 -1
  250. package/dist/esm/components/YahRow.d.ts +1 -1
  251. package/dist/esm/components/YahRow.js +1 -1
  252. package/dist/esm/components/gps/GpsManager.d.ts +1 -1
  253. package/dist/esm/components/gps/GpsManager.js +1 -1
  254. package/dist/esm/components/gps/GpsPermissionRequest.js +1 -1
  255. package/dist/esm/components/gps/useUserLocationAndHeading.d.ts +1 -1
  256. package/dist/esm/components/gps/useUserLocationAndHeading.js +1 -1
  257. package/dist/esm/components/gps/utils.d.ts +1 -1
  258. package/dist/esm/data/fpGeo.d.ts +1 -1
  259. package/dist/esm/data/index.d.ts +1 -1
  260. package/dist/esm/data/svg.js +1 -1
  261. package/dist/esm/data/validate-data.d.ts +1 -1
  262. package/dist/esm/floorplan.loader.js +1 -1
  263. package/dist/esm/floorplan.ready.d.ts +2 -2
  264. package/dist/esm/floorplan.ready.js +1 -1
  265. package/dist/esm/hooks/useDragGesture.js +1 -1
  266. package/dist/esm/hooks/useURLFilters.d.ts +1 -1
  267. package/dist/esm/hooks/useURLFilters.js +1 -1
  268. package/dist/esm/hooks/useWindowSize.js +1 -1
  269. package/dist/esm/intercom/shouldLoad.d.ts +2 -2
  270. package/dist/esm/load.d.ts +3 -3
  271. package/dist/esm/services/URLFilterManager.d.ts +1 -1
  272. package/dist/esm/services/URLFilterManager.js +1 -1
  273. package/dist/esm/services/routing.js +1 -1
  274. package/dist/esm/store/BaseFilterStore.d.ts +1 -1
  275. package/dist/esm/store/BookmarksStore.js +1 -1
  276. package/dist/esm/store/BoothStore.d.ts +2 -2
  277. package/dist/esm/store/BoothStore.js +1 -1
  278. package/dist/esm/store/CategoryFilterStore.d.ts +2 -2
  279. package/dist/esm/store/CategoryFilterStore.js +1 -1
  280. package/dist/esm/store/CategoryStore.d.ts +1 -1
  281. package/dist/esm/store/ExhibitorStore.d.ts +1 -1
  282. package/dist/esm/store/ExhibitorStore.js +1 -1
  283. package/dist/esm/store/HeatmapStore.d.ts +3 -3
  284. package/dist/esm/store/HeatmapStore.js +1 -1
  285. package/dist/esm/store/LayerStore.d.ts +1 -1
  286. package/dist/esm/store/LayerStore.js +1 -1
  287. package/dist/esm/store/MaplibreStore.js +1 -1
  288. package/dist/esm/store/RootStore.d.ts +15 -15
  289. package/dist/esm/store/RootStore.js +1 -1
  290. package/dist/esm/store/RoutePlannerStore.d.ts +2 -2
  291. package/dist/esm/store/RoutePlannerStore.js +1 -1
  292. package/dist/esm/store/RouteStore.d.ts +1 -1
  293. package/dist/esm/store/RouteStore.js +1 -1
  294. package/dist/esm/store/SearchStore.js +1 -1
  295. package/dist/esm/store/SessionsFilterStore.d.ts +2 -2
  296. package/dist/esm/store/ShortcutRegistry.d.ts +1 -1
  297. package/dist/esm/store/SpeakerStore.d.ts +1 -1
  298. package/dist/esm/store/SubButtonProvider.d.ts +1 -1
  299. package/dist/esm/store/SubButtonRegistry.d.ts +2 -2
  300. package/dist/esm/store/ToursStore.js +1 -1
  301. package/dist/esm/store/UIState.d.ts +6 -6
  302. package/dist/esm/store/UIState.js +1 -1
  303. package/dist/esm/store/init/index.js +1 -1
  304. package/dist/esm/store/init/init-booths.js +1 -1
  305. package/dist/esm/store/init/init-events.js +1 -1
  306. package/dist/esm/store/init/init-exhibitors.js +1 -1
  307. package/dist/esm/store/init/init-heatmap.js +1 -1
  308. package/dist/esm/store/init/init-layers.js +1 -1
  309. package/dist/esm/store/init/init-ui.js +1 -1
  310. package/dist/esm/store/providers/SearchShortcutProvider.d.ts +1 -2
  311. package/dist/esm/store/providers/SessionsShortcutProvider.d.ts +1 -1
  312. package/dist/esm/store/providers/SessionsSubButtonProvider.d.ts +2 -2
  313. package/dist/esm/store/providers/SessionsSubButtonProvider.js +1 -1
  314. package/dist/esm/store/providers/SpeakerShortcutProvider.d.ts +1 -1
  315. package/dist/esm/store/search-buttons/SearchButtonsActions.d.ts +2 -2
  316. package/dist/esm/store/search-buttons/SearchButtonsActions.js +1 -1
  317. package/dist/esm/store/search-buttons/SearchButtonsFactory.d.ts +3 -3
  318. package/dist/esm/store/search-buttons/SearchButtonsFactory.js +1 -1
  319. package/dist/esm/store/search-buttons/SearchButtonsFilters.d.ts +2 -2
  320. package/dist/esm/store/search-buttons/SearchButtonsState.d.ts +1 -1
  321. package/dist/esm/store/search-buttons/SearchButtonsState.js +1 -1
  322. package/dist/esm/store/search-buttons/SearchButtonsStore.d.ts +1 -1
  323. package/dist/esm/store/search-buttons/SearchButtonsStore.js +1 -1
  324. package/dist/esm/store/search-buttons/utils.d.ts +1 -1
  325. package/dist/esm/store/search-buttons/utils.js +1 -1
  326. package/dist/esm/store/types.d.ts +3 -3
  327. package/dist/esm/storybook/decorators/StoryWrapper.js +1 -1
  328. package/dist/esm/storybook/decorators/WithResize.js +1 -1
  329. package/dist/esm/tools/gtag.js +1 -1
  330. package/dist/esm/tools/loaders.js +1 -1
  331. package/dist/esm/tools/sentry.d.ts +2 -2
  332. package/dist/esm/tools/sentry.js +1 -1
  333. package/dist/esm/ui/Alert/Alert.d.ts +1 -2
  334. package/dist/esm/ui/Alert/Alert.js +1 -1
  335. package/dist/esm/ui/Badge/Badge.d.ts +1 -2
  336. package/dist/esm/ui/Badge/Badge.js +1 -1
  337. package/dist/esm/ui/Button/Button.d.ts +1 -2
  338. package/dist/esm/ui/Button/Button.js +1 -1
  339. package/dist/esm/ui/Checkbox/Checkbox.d.ts +1 -1
  340. package/dist/esm/ui/Checkbox/Checkbox.js +1 -1
  341. package/dist/esm/ui/CheckboxButton/CheckboxButton.d.ts +1 -1
  342. package/dist/esm/ui/CheckboxButton/CheckboxButton.js +1 -1
  343. package/dist/esm/ui/Draggable/Draggable.js +1 -1
  344. package/dist/esm/ui/EntityItem/EntityItem.d.ts +1 -1
  345. package/dist/esm/ui/EntityItem/EntityItem.js +1 -1
  346. package/dist/esm/ui/HeatmapLegend/HeatmapLegend.d.ts +1 -1
  347. package/dist/esm/ui/HeatmapLegend/HeatmapLegend.js +1 -1
  348. package/dist/esm/ui/LevelBadge/LevelBadge.d.ts +1 -1
  349. package/dist/esm/ui/OverlayGrip/OverlayGrip.d.ts +1 -1
  350. package/dist/esm/ui/OverlayGrip/OverlayGrip.js +1 -1
  351. package/dist/esm/ui/PermissionNotice/PermissionNotice.d.ts +1 -1
  352. package/dist/esm/ui/PermissionNotice/PermissionNotice.js +1 -1
  353. package/dist/esm/ui/Radio/Radio.d.ts +1 -1
  354. package/dist/esm/ui/Radio/Radio.js +1 -1
  355. package/dist/esm/ui/ScrollableRow/ScrollableRow.d.ts +1 -1
  356. package/dist/esm/ui/ScrollableRow/ScrollableRow.js +1 -1
  357. package/dist/esm/ui/Spinner/Spinner.d.ts +1 -1
  358. package/dist/esm/ui/Spinner/Spinner.js +1 -1
  359. package/dist/esm/ui/ToggleButton/ToggleButton.d.ts +1 -1
  360. package/dist/esm/ui/ToggleButton/ToggleButton.js +1 -1
  361. package/dist/esm/ui/ToggleSwitch/ToggleSwitch.d.ts +1 -1
  362. package/dist/esm/ui/ToggleSwitch/ToggleSwitch.js +1 -1
  363. package/dist/esm/ui/TouchHand/TouchHand.d.ts +1 -1
  364. package/dist/esm/ui/WayfindingFloorSelector/WayfindingFloorSelector.d.ts +1 -1
  365. package/dist/esm/ui/WayfindingFloorSelector/WayfindingFloorSelector.js +1 -1
  366. package/dist/esm/utils/customCommands.js +1 -1
  367. package/dist/esm/utils/dimming.d.ts +1 -1
  368. package/dist/esm/utils/entity-storage.js +1 -1
  369. package/dist/esm/utils/eventFullBadge.d.ts +1 -1
  370. package/dist/esm/utils/gps.js +1 -1
  371. package/dist/esm/utils/i18n.d.ts +1 -1
  372. package/dist/esm/utils/i18n.js +1 -1
  373. package/dist/esm/utils/imageloader.d.ts +3 -3
  374. package/dist/esm/utils/loadCustomCss.d.ts +1 -1
  375. package/dist/esm/utils/loadIcons.d.ts +1 -1
  376. package/dist/esm/utils/loadImagesInBatches.js +1 -1
  377. package/dist/esm/utils/mergeExhibitors.d.ts +1 -1
  378. package/dist/esm/utils/mobx.d.ts +1 -1
  379. package/dist/esm/utils/mobx.js +1 -1
  380. package/dist/esm/utils/preview-exhibitor.d.ts +1 -1
  381. package/dist/esm/utils/sanitizeText.d.ts +2 -2
  382. package/dist/esm/utils/sanitizeText.js +1 -1
  383. package/dist/esm/utils/trackingParams.d.ts +3 -0
  384. package/dist/esm/utils/trackingParams.js +1 -0
  385. package/dist/esm/utils/useHeatmapData.d.ts +3 -3
  386. package/dist/esm/utils/useHeatmapOverlay.d.ts +3 -3
  387. package/dist/esm/wayfinding/adapters/floorContext.d.ts +1 -1
  388. package/dist/esm/wayfinding/adapters/graphDataSource.d.ts +1 -1
  389. package/dist/esm/wayfinding/adapters/kioskCanvas.js +1 -1
  390. package/dist/esm/wayfinding/adapters/positionInput.d.ts +2 -2
  391. package/dist/esm/wayfinding/core/__tests__/helpers.d.ts +1 -1
  392. package/dist/esm/wayfinding/core/geometry/pointInPolygon.d.ts +3 -3
  393. package/dist/esm/wayfinding/core/graph/buildNGraph.d.ts +4 -4
  394. package/dist/esm/wayfinding/core/graph/findShortestPath.d.ts +1 -1
  395. package/dist/esm/wayfinding/core/graph/findShortestPath.js +1 -1
  396. package/dist/esm/wayfinding/core/graph/graphCache.d.ts +1 -1
  397. package/dist/esm/wayfinding/core/graph/linkCost.d.ts +1 -1
  398. package/dist/esm/wayfinding/core/graph/pathfinder/aStarPathFinder.d.ts +1 -1
  399. package/dist/esm/wayfinding/core/graph/pathfinder/aStarPathFinder.js +1 -1
  400. package/dist/esm/wayfinding/core/position/distanceToRoute.d.ts +1 -1
  401. package/dist/esm/wayfinding/core/position/rerouteController.d.ts +1 -1
  402. package/dist/esm/wayfinding/core/position/snapToRoute.d.ts +1 -1
  403. package/dist/esm/wayfinding/core/position/splitRouteByPoint.d.ts +1 -1
  404. package/dist/esm/wayfinding/core/rendering/computeTrailPoints.d.ts +1 -1
  405. package/dist/esm/wayfinding/core/rendering/computeTransitionPoints.d.ts +1 -1
  406. package/dist/esm/wayfinding/core/rendering/getVisibleRouteLines.d.ts +2 -2
  407. package/dist/esm/wayfinding/core/rendering/normalizeRouteDirection.d.ts +1 -1
  408. package/dist/esm/wayfinding/core/routing/buildMultiPointRoute.d.ts +1 -1
  409. package/dist/esm/wayfinding/core/routing/buildRoute.d.ts +1 -1
  410. package/dist/esm/wayfinding/core/routing/graphPointResolvers.d.ts +2 -2
  411. package/dist/esm/wayfinding/core/routing/routeResult.d.ts +1 -1
  412. package/dist/esm/wayfinding/handlers/yahHandler.d.ts +3 -3
  413. package/dist/esm/wayfinding/runtime/endpointView.d.ts +5 -5
  414. package/dist/esm/wayfinding/runtime/getRouteLines.d.ts +2 -2
  415. package/dist/esm/wayfinding/runtime/positionView.d.ts +3 -3
  416. package/dist/esm/wayfinding/runtime/routeLinesView.d.ts +2 -2
  417. package/dist/esm/wayfinding/runtime/routeRenderData.d.ts +1 -1
  418. package/dist/esm/wayfinding/runtime/trailView.d.ts +4 -4
  419. package/package.json +13 -12
  420. package/dist/browser/ShowKiosk-Ddu65pot.js +0 -27
@@ -1 +1 @@
1
- import{__esDecorate as a,__runInitializers as r}from"tslib";import{action as m,computed as x,observable as f}from"mobx";import{Point as He,lineLength as Fe}from"simple-geometry";import u,{layersStore as T}from".";import{fpGeo as S}from"../data/fpGeo";import P from"../core/Rect";import{GaEventActions as Je,sendEventToGa as Qe}from"../tools/gtag";import{convertGpsToLocal as Ne,isValidPointCoords as Be,calculateRelativeBearing as et}from"../utils/gps";import{getLayerSvg as tt,svgArea as k}from"../data/svg";import{createWayfindingEngine as st}from"../wayfinding/core";import{CURRENT_LOCATION_NAME as it,CURRENT_POSITION_POINT_ID as at,KIOSK_ANCHOR_POINT_ID as rt,boothToEndpoint as Ue,graphDataSource as Ze,toArbitraryPoint as qe}from"../wayfinding/adapters";import{getName as nt}from"../components/Kiosk/SetKiosk";import{BoothBase as R}from"./BoothStore";import{LayersMode as ot}from"./LayerStore";import{uiState as _}from"./index";import{calcSpeed as $e}from"../utils/calcSpeed";import{calcTravelTime as Ve}from"../utils/calcTravelTime";import{DEFAULT_UNITS as Ke,ORIENTATION_GRANTED_KEY as lt}from"../constants";import{areLayersEnabled as ct}from"../utils/areLayersEnabled";import je from"../data";import We from"../tools/logger";const b=s=>typeof s=="string"?Number(s.replace(",",".")):s;let ut=(()=>{let s=[],n,l=[],p=[],y,v=[],g=[],z,D=[],I=[],A,w=[],M=[],C,G=[],O=[],F,N=[],B=[],U,Z=[],q=[],$,V=[],K=[],j,W=[],X=[],Y,H=[],J=[],Q,ee=[],te=[],se,ie=[],ae=[],re,ne=[],oe=[],le,ce=[],ue=[],de,fe,he,me,pe,_e,ye,ge,ke,be,Re,ve,xe,Ee=[],Le=[],Te,Se,Pe,ze,De,Ie,Ae=[],we=[],Me,Ce,Ge;return class{static{const t=typeof Symbol=="function"&&Symbol.metadata?Object.create(null):void 0;n=[f],y=[f],z=[f],A=[f],C=[f],F=[f],U=[f],$=[f],j=[f],Y=[f],Q=[f],se=[f],re=[f],le=[f],de=[x],fe=[m],he=[m],me=[m],pe=[x({keepAlive:!0})],_e=[m],ye=[m],ge=[x({keepAlive:!0})],ke=[x({keepAlive:!0})],be=[m],Re=[m],ve=[m],xe=[f],Te=[x],Se=[m],Pe=[m],ze=[m],De=[m],Ie=[f],Me=[m],Ce=[x({keepAlive:!0})],Ge=[m],a(this,null,de,{kind:"getter",name:"canFindLocation",static:!1,private:!1,access:{has:e=>"canFindLocation"in e,get:e=>e.canFindLocation},metadata:t},null,s),a(this,null,fe,{kind:"method",name:"selectRoute",static:!1,private:!1,access:{has:e=>"selectRoute"in e,get:e=>e.selectRoute},metadata:t},null,s),a(this,null,he,{kind:"method",name:"rebuildRouteFromPosition",static:!1,private:!1,access:{has:e=>"rebuildRouteFromPosition"in e,get:e=>e.rebuildRouteFromPosition},metadata:t},null,s),a(this,null,me,{kind:"method",name:"setStartPoint",static:!1,private:!1,access:{has:e=>"setStartPoint"in e,get:e=>e.setStartPoint},metadata:t},null,s),a(this,null,pe,{kind:"getter",name:"pathLayers",static:!1,private:!1,access:{has:e=>"pathLayers"in e,get:e=>e.pathLayers},metadata:t},null,s),a(this,null,_e,{kind:"method",name:"setMarkers",static:!1,private:!1,access:{has:e=>"setMarkers"in e,get:e=>e.setMarkers},metadata:t},null,s),a(this,null,ye,{kind:"method",name:"selectMarker",static:!1,private:!1,access:{has:e=>"selectMarker"in e,get:e=>e.selectMarker},metadata:t},null,s),a(this,null,ge,{kind:"getter",name:"selectedMarkers",static:!1,private:!1,access:{has:e=>"selectedMarkers"in e,get:e=>e.selectedMarkers},metadata:t},null,s),a(this,null,ke,{kind:"getter",name:"layers",static:!1,private:!1,access:{has:e=>"layers"in e,get:e=>e.layers},metadata:t},null,s),a(this,null,be,{kind:"method",name:"clickRoute",static:!1,private:!1,access:{has:e=>"clickRoute"in e,get:e=>e.clickRoute},metadata:t},null,s),a(this,null,Re,{kind:"method",name:"selectCurrentPosition",static:!1,private:!1,access:{has:e=>"selectCurrentPosition"in e,get:e=>e.selectCurrentPosition},metadata:t},null,s),a(this,null,ve,{kind:"method",name:"findLocation",static:!1,private:!1,access:{has:e=>"findLocation"in e,get:e=>e.findLocation},metadata:t},null,s),a(this,null,Te,{kind:"getter",name:"routeInfo",static:!1,private:!1,access:{has:e=>"routeInfo"in e,get:e=>e.routeInfo},metadata:t},null,s),a(this,null,Se,{kind:"method",name:"updateRoute",static:!1,private:!1,access:{has:e=>"updateRoute"in e,get:e=>e.updateRoute},metadata:t},null,s),a(this,null,Pe,{kind:"method",name:"updateRouteDistance",static:!1,private:!1,access:{has:e=>"updateRouteDistance"in e,get:e=>e.updateRouteDistance},metadata:t},null,s),a(this,null,ze,{kind:"method",name:"updateRoutePoints",static:!1,private:!1,access:{has:e=>"updateRoutePoints"in e,get:e=>e.updateRoutePoints},metadata:t},null,s),a(this,null,De,{kind:"method",name:"checkRoutes",static:!1,private:!1,access:{has:e=>"checkRoutes"in e,get:e=>e.checkRoutes},metadata:t},null,s),a(this,null,Me,{kind:"method",name:"setGpsTrackingEnabled",static:!1,private:!1,access:{has:e=>"setGpsTrackingEnabled"in e,get:e=>e.setGpsTrackingEnabled},metadata:t},null,s),a(this,null,Ce,{kind:"getter",name:"gpsEnabled",static:!1,private:!1,access:{has:e=>"gpsEnabled"in e,get:e=>e.gpsEnabled},metadata:t},null,s),a(this,null,Ge,{kind:"method",name:"setOnlyAccessible",static:!1,private:!1,access:{has:e=>"setOnlyAccessible"in e,get:e=>e.setOnlyAccessible},metadata:t},null,s),a(null,null,n,{kind:"field",name:"routeLines",static:!1,private:!1,access:{has:e=>"routeLines"in e,get:e=>e.routeLines,set:(e,i)=>{e.routeLines=i}},metadata:t},l,p),a(null,null,y,{kind:"field",name:"routeDistance",static:!1,private:!1,access:{has:e=>"routeDistance"in e,get:e=>e.routeDistance,set:(e,i)=>{e.routeDistance=i}},metadata:t},v,g),a(null,null,z,{kind:"field",name:"currentPosition",static:!1,private:!1,access:{has:e=>"currentPosition"in e,get:e=>e.currentPosition,set:(e,i)=>{e.currentPosition=i}},metadata:t},D,I),a(null,null,A,{kind:"field",name:"requestCompass",static:!1,private:!1,access:{has:e=>"requestCompass"in e,get:e=>e.requestCompass,set:(e,i)=>{e.requestCompass=i}},metadata:t},w,M),a(null,null,C,{kind:"field",name:"iconType",static:!1,private:!1,access:{has:e=>"iconType"in e,get:e=>e.iconType,set:(e,i)=>{e.iconType=i}},metadata:t},G,O),a(null,null,F,{kind:"field",name:"tempToBooth",static:!1,private:!1,access:{has:e=>"tempToBooth"in e,get:e=>e.tempToBooth,set:(e,i)=>{e.tempToBooth=i}},metadata:t},N,B),a(null,null,U,{kind:"field",name:"focusEnabled",static:!1,private:!1,access:{has:e=>"focusEnabled"in e,get:e=>e.focusEnabled,set:(e,i)=>{e.focusEnabled=i}},metadata:t},Z,q),a(null,null,$,{kind:"field",name:"prevZ",static:!1,private:!1,access:{has:e=>"prevZ"in e,get:e=>e.prevZ,set:(e,i)=>{e.prevZ=i}},metadata:t},V,K),a(null,null,j,{kind:"field",name:"markersData",static:!1,private:!1,access:{has:e=>"markersData"in e,get:e=>e.markersData,set:(e,i)=>{e.markersData=i}},metadata:t},W,X),a(null,null,Y,{kind:"field",name:"prevMarkers",static:!1,private:!1,access:{has:e=>"prevMarkers"in e,get:e=>e.prevMarkers,set:(e,i)=>{e.prevMarkers=i}},metadata:t},H,J),a(null,null,Q,{kind:"field",name:"showAccessible",static:!1,private:!1,access:{has:e=>"showAccessible"in e,get:e=>e.showAccessible,set:(e,i)=>{e.showAccessible=i}},metadata:t},ee,te),a(null,null,se,{kind:"field",name:"onlyAccessible",static:!1,private:!1,access:{has:e=>"onlyAccessible"in e,get:e=>e.onlyAccessible,set:(e,i)=>{e.onlyAccessible=i}},metadata:t},ie,ae),a(null,null,re,{kind:"field",name:"currentRouteLayer",static:!1,private:!1,access:{has:e=>"currentRouteLayer"in e,get:e=>e.currentRouteLayer,set:(e,i)=>{e.currentRouteLayer=i}},metadata:t},ne,oe),a(null,null,le,{kind:"field",name:"currentRouteExhibitor",static:!1,private:!1,access:{has:e=>"currentRouteExhibitor"in e,get:e=>e.currentRouteExhibitor,set:(e,i)=>{e.currentRouteExhibitor=i}},metadata:t},ce,ue),a(null,null,xe,{kind:"field",name:"routeUnits",static:!1,private:!1,access:{has:e=>"routeUnits"in e,get:e=>e.routeUnits,set:(e,i)=>{e.routeUnits=i}},metadata:t},Ee,Le),a(null,null,Ie,{kind:"field",name:"isGpsTrackingEnabled",static:!1,private:!1,access:{has:e=>"isGpsTrackingEnabled"in e,get:e=>e.isGpsTrackingEnabled,set:(e,i)=>{e.isGpsTrackingEnabled=i}},metadata:t},Ae,we),t&&Object.defineProperty(this,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:t})}rootStore=r(this,s);cpTimeout;routeLines=r(this,l,[]);routeDistance=(r(this,p),r(this,v,null));currentPosition=(r(this,g),r(this,D,null));requestCompass=(r(this,I),r(this,w,!1));iconType=(r(this,M),r(this,G,0));tempToBooth=(r(this,O),r(this,N,null));focusEnabled=(r(this,B),r(this,Z,!0));prevZ=(r(this,q),r(this,V,null));markersData=(r(this,K),r(this,W,{icons:[],markers:[]}));prevMarkers=(r(this,X),r(this,H,[]));showAccessible=(r(this,J),r(this,ee,!!Ze.getLines().find(t=>t.unaccessible)));onlyAccessible=(r(this,te),r(this,ie,!1));currentRouteLayer=(r(this,ae),r(this,ne,null));currentRouteExhibitor=(r(this,oe),r(this,ce,null));constructor(t){r(this,we),this.rootStore=t,this.focusEnabled=!window.location.search}get canFindLocation(){return!!_.kioskData||!!this.currentPosition}selectRoute(t,e=!0,i=!1){if(e&&(_.list={type:"search",text:"",focused:!1}),t&&!t.from&&t.to){const d=this.resolveFallbackFrom();d&&(t=new Route(d,t.to,t.waypoints))}t?.from&&t?.to&&t.from===t.to&&(t=null);let o=[];t?.from&&t?.to&&window.setTimeout(()=>{this.rootStore.showMap()},navigator.userAgent.toLowerCase().indexOf("android")>-1?400:50),t?.from instanceof R&&t.from.visible&&o.push(t.from),t?.to instanceof R&&t.to.visible&&(this.tempToBooth=null,o.push(t.to)),!t&&u.fp.onDirection&&u.fp.onDirection(null);const c=()=>{if(this.rootStore.moveToList(o),_.details=t,t&&(!t.from||!t.to)&&u.showOverlay(),t?.to&&t?.from){const d=dt(t.from);d&&this.rootStore.layerStore.updateVisibility(d,!0)}if(!this.currentRouteLayer){const d=Xe(this.rootStore.layerStore,t?.from),h=Xe(this.rootStore.layerStore,t?.to);d?this.currentRouteLayer=d:h&&(this.currentRouteLayer=h)}e&&t?.from&&t?.to&&Qe(Je.ClickDirections,`${t?.from?"From "+t.from.name:""} ${t?.to?"To "+t.to.name:""}`)};i?c():setTimeout(c,200)}rebuildRouteFromPosition(t){const e=_.selectedRoute;e?.to&&this.selectRoute(new Route(t,e.to,e.waypoints),!1,!0)}resolveFallbackFrom(){if(this.currentPosition)return qe(this.currentPosition,it,at);const t=_.kioskData;return t?qe({x:t.x,y:t.y,z:t.z},nt(),rt):null}setStartPoint(t){const e=_.selectedRoute;if(e?.to&&!e?.from&&t){const i=new Route(t,e.to,e.waypoints);this.selectRoute(i)}}get pathLayers(){return u.routeStore.routeLines?.map(t=>t.p0.layer)?.filter((t,e,i)=>i.indexOf(t)===e).reverse().map((t,e)=>({id:e+1,layer:u.layerStore.findLayer(t)}))}getNearestBooth(t){if(!t)return null;let e=this.rootStore.layerStore.findLayer(t.z);const i=t.lat&&t.lng?Ne(t,S.properties.config):t;return this.rootStore.boothStore.booths.filter(o=>T.mode===ot.Default||!e?o.visible&&o.rect:o.rect&&(typeof t.z!="number"&&!t.z&&o.visible||e.name===o.layer?.name)).sort((o,c)=>Fe(i,{x:o.rect.cx,y:o.rect.cy})-Fe(i,{x:c.rect.cx,y:c.rect.cy}))[0]||null}setMarkers(t){this.markersData.markers=(t?.markers??[]).map(ft),this.markersData.icons=t?.icons??[]}selectMarker(t,e){const i=this.markersData.markers.find(c=>c.id===t);this.markersData.markers.forEach(c=>c.active=!1),i&&(i.active=!0);let o=u.layerStore.findLayer(i?.z);if(e&&i){const c=u.rendererService.renderer;return o&&!o?.visible&&T.updateVisibility(o,!0),c?c.controls.panTo(i.x,i.y):(We.warn("Renderer is not initialized. Cannot pan to marker."),Promise.resolve())}return Promise.resolve()}get selectedMarkers(){return this.markersData.markers.filter(t=>t.active)}get layers(){var t=[];return u.routeStore.routeLines?.map(e=>e.p0.layer).reverse().forEach(e=>{t.indexOf(e)===-1&&t.push(e)}),t.map(e=>u.layerStore.layers.find(i=>i.name===e))}clickRoute(t,e){window.__resett&&window.__resett(),this.rootStore.uiState.menu=null,_.list.type==="route-planner"&&(_.list={type:"search",text:"",focused:!1}),this.selectRoute(new Route(t,e))}selectCurrentPosition(t,e=!0,i){clearTimeout(this.cpTimeout),t&&(t.x=b(t.x),t.y=b(t.y),t.lat=b(t.lat),t.lng=b(t.lng),ct()||(t.z=null));const o=e&&this.rootStore.uiState.details&&!(this.rootStore.uiState.details instanceof Route),c=e&&!o&&(this.focusEnabled||this.prevZ!=t?.z);this.focusEnabled&&(this.focusEnabled=!1),this.prevZ=t?.z?.toString(),this.iconType=i?1:0;const d=t?ht(t):null;if(!d){this.currentPosition=null;return}const h=u.layerStore.findLayer(t.z),E=new CurrentPosition(d.x,d.y,h?.name||this.currentRouteLayer?.name,et(d),t.lat,t.lng);let Oe=!this.routeLines?.length;if(h&&this.routeLines?.length&&(Oe=!!this.routeLines.find(L=>L.p0.layer===h.name||L.p1.layer===h.name)),c&&Oe){const L=u.rendererService.renderer;if(h&&!h?.visible&&T.updateVisibility(h,!0),!L){We.warn("Renderer is not initialized. Cannot pan to current position.");return}L.controls.panTo(E.x,E.y)}this.currentPosition=E,this.gpsEnabled||(this.cpTimeout=setTimeout(()=>{this.currentPosition&&this.selectCurrentPosition(null,!1)},30*1e3))}findLocation(){if(!this.canFindLocation)return;if(u.maplibreStore.showMaplibre){_.moveToLocation=!0;return}const t=this.currentPosition??_.kioskData;if(!t)return;this.currentPosition&&localStorage.getItem(lt)==="false"&&(u.routeStore.requestCompass=!0);const e=P.fromCxcywh(t.x,t.y,100,100);let i;if(e.intersects(k))i=e;else{const c=Math.max(k.x1,Math.min(t.x,k.x2)),d=Math.max(k.y1,Math.min(t.y,k.y2)),h=Math.min(k.w,k.h)*.3,E=P.fromCxcywh(c,d,h,h).getIntersection(k);i=P.fromMultiple([e,E])}_.moveToRect=i;const o=u.layerStore.findLayer(t.z);o&&T.updateVisibility(o,!0)}routeUnits=(r(this,ue),r(this,Ee,Ke));get routeInfo(){const t=this.routeDistance,e=this.routeUnits;return t?{distance:`${t}${e}`,units:e,time:Ve(t,$e(e))}:null}updateRoute(t,e){!t?.length&&!this.routeLines.length||(this.routeLines=t,this.updateRoutePoints())}updateRouteDistance(t){if(t==null)return;const e=tt(),i=(e.getAttribute("units")||Ke).toLowerCase?.().trim(),o=e.getAttribute("fp-ver")?.startsWith("5")??!1;this.routeDistance=Math.round(t/(o?1:10)),this.routeUnits=i,this.updateRoutePoints()}updateRoutePoints(){const t=_.selectedRoute,e=this.routeDistance,i=this.routeUnits;u.fp.onDirection&&setTimeout(()=>{u.fp.onDirection({from:Ye(t?.from??null),to:Ye(t?.to??null),lines:this.routeLines,distance:`${e}${i}`,units:i,time:Ve(e,$e(i))})},200)}checkRoutes(){const t=st(Ze),e=u.boothStore.booths;console.info(`Route check started ${e.length}.... `);for(let i=0;i<e.length;i++){const o=e[i];for(let c=i+1;c<e.length;c++){const d=e[c];t.buildRoute(Ue(o),Ue(d)).lines.length||console.warn(`No route found from ${o.name} to ${d.name}`)}}console.info("Route check done....")}isGpsTrackingEnabled=(r(this,Le),r(this,Ae,!0));setGpsTrackingEnabled(t){this.isGpsTrackingEnabled=t}get gpsEnabled(){return je.autoTrackingGps&&this.isGpsTrackingEnabled&&!je.enableIPS}setOnlyAccessible(t){this.onlyAccessible=t}}})();export default ut;function dt(s){if(s)return s instanceof R?s.layer?.name:s.layer}function Xe(s,n){return n?n instanceof R?n.layer??null:s.findLayer(n.layer):null}function ft(s){return{...s,x:b(s.x),y:b(s.y),lat:b(s.lat),lng:b(s.lng)}}function ht(s){let n=null,l=null;return S&&(n=S.properties.config),n&&s.x>=n.p0.x&&s.x<=n.p2.x&&s.y>=n.p0.y&&s.y<=n.p2.y?l={...s}:n&&Be(s.lat)&&Be(s.lng)?l=Ne(s,n):n||(l=s),l||null}export function findBooth(s){return u.boothStore.findBooth(s)||u.exhibitorStore.findExhibitor(s)?.booths[0]}export function findEntityByExternalId(s){const n=u.boothStore.boothByExternalId.get(s);if(n)return{type:"booth",entity:n};const l=u.exhibitorStore.exhibitorByExternalId.get(s);if(l)return{type:"exhibitor",entity:l}}export function separateExternalIds(s){const n=[],l=[];for(const p of s){const y=findEntityByExternalId(p);y&&(y.type==="booth"?n.push(p):l.push(p))}return{boothExternalIds:n,exhibitorExternalIds:l}}export function extractRoute(s,n,l){return new Route(findBooth(s)??null,findBooth(n)??null,l?.map(p=>findBooth(p)))}export class Route{from;to;waypoints;constructor(n,l,p){this.from=n,this.to=l,this.waypoints=p;const y=n instanceof R?n.id:void 0,v=l instanceof R?l.id:void 0;this.waypoints=p?.filter(g=>g&&g.id!==y&&g.id!==v)}}function Ye(s){return s?s instanceof R?{id:s.id,name:s.name,externalId:s.externalId,layer:{name:s.layer?.name,description:s.layer?.description}}:{id:Number.MAX_SAFE_INTEGER,name:s.name,externalId:void 0,layer:{name:s.layer,description:void 0}}:null}export class CurrentPosition extends He{x;y;z;angle;lat;lng;constructor(n,l,p,y,v,g){super(n,l),this.x=n,this.y=l,this.z=p,this.angle=y,this.lat=v,this.lng=g}}
1
+ import{__esDecorate as a,__runInitializers as r}from"tslib";import{action as m,computed as x,observable as f}from"mobx";import{lineLength as Fe,Point as He}from"simple-geometry";import{getName as Je}from"../components/Kiosk/SetKiosk";import{DEFAULT_UNITS as Ne,ORIENTATION_GRANTED_KEY as Qe}from"../constants";import S from"../core/Rect";import Be from"../data";import{fpGeo as P}from"../data/fpGeo";import{getLayerSvg as et,svgArea as k}from"../data/svg";import{GaEventActions as tt,sendEventToGa as st}from"../tools/gtag";import Ue from"../tools/logger";import{areLayersEnabled as it}from"../utils/areLayersEnabled";import{calcSpeed as Ze}from"../utils/calcSpeed";import{calcTravelTime as qe}from"../utils/calcTravelTime";import{calculateRelativeBearing as at,convertGpsToLocal as $e,isValidPointCoords as Ve}from"../utils/gps";import{boothToEndpoint as Ke,CURRENT_LOCATION_NAME as rt,CURRENT_POSITION_POINT_ID as nt,graphDataSource as je,KIOSK_ANCHOR_POINT_ID as ot,toArbitraryPoint as We}from"../wayfinding/adapters";import{createWayfindingEngine as lt}from"../wayfinding/core";import u,{layersStore as T}from".";import{BoothBase as R}from"./BoothStore";import{uiState as _}from"./index";import{LayersMode as ct}from"./LayerStore";const b=s=>typeof s=="string"?Number(s.replace(",",".")):s;let ut=(()=>{let s=[],n,l=[],p=[],y,v=[],g=[],z,D=[],I=[],A,w=[],M=[],C,G=[],O=[],F,N=[],B=[],U,Z=[],q=[],$,V=[],K=[],j,W=[],X=[],Y,H=[],J=[],Q,ee=[],te=[],se,ie=[],ae=[],re,ne=[],oe=[],le,ce=[],ue=[],de,fe,he,me,pe,_e,ye,ge,ke,be,Re,ve,xe,Ee=[],Le=[],Te,Se,Pe,ze,De,Ie,Ae=[],we=[],Me,Ce,Ge;return class{static{const t=typeof Symbol=="function"&&Symbol.metadata?Object.create(null):void 0;n=[f],y=[f],z=[f],A=[f],C=[f],F=[f],U=[f],$=[f],j=[f],Y=[f],Q=[f],se=[f],re=[f],le=[f],de=[x],fe=[m],he=[m],me=[m],pe=[x({keepAlive:!0})],_e=[m],ye=[m],ge=[x({keepAlive:!0})],ke=[x({keepAlive:!0})],be=[m],Re=[m],ve=[m],xe=[f],Te=[x],Se=[m],Pe=[m],ze=[m],De=[m],Ie=[f],Me=[m],Ce=[x({keepAlive:!0})],Ge=[m],a(this,null,de,{kind:"getter",name:"canFindLocation",static:!1,private:!1,access:{has:e=>"canFindLocation"in e,get:e=>e.canFindLocation},metadata:t},null,s),a(this,null,fe,{kind:"method",name:"selectRoute",static:!1,private:!1,access:{has:e=>"selectRoute"in e,get:e=>e.selectRoute},metadata:t},null,s),a(this,null,he,{kind:"method",name:"rebuildRouteFromPosition",static:!1,private:!1,access:{has:e=>"rebuildRouteFromPosition"in e,get:e=>e.rebuildRouteFromPosition},metadata:t},null,s),a(this,null,me,{kind:"method",name:"setStartPoint",static:!1,private:!1,access:{has:e=>"setStartPoint"in e,get:e=>e.setStartPoint},metadata:t},null,s),a(this,null,pe,{kind:"getter",name:"pathLayers",static:!1,private:!1,access:{has:e=>"pathLayers"in e,get:e=>e.pathLayers},metadata:t},null,s),a(this,null,_e,{kind:"method",name:"setMarkers",static:!1,private:!1,access:{has:e=>"setMarkers"in e,get:e=>e.setMarkers},metadata:t},null,s),a(this,null,ye,{kind:"method",name:"selectMarker",static:!1,private:!1,access:{has:e=>"selectMarker"in e,get:e=>e.selectMarker},metadata:t},null,s),a(this,null,ge,{kind:"getter",name:"selectedMarkers",static:!1,private:!1,access:{has:e=>"selectedMarkers"in e,get:e=>e.selectedMarkers},metadata:t},null,s),a(this,null,ke,{kind:"getter",name:"layers",static:!1,private:!1,access:{has:e=>"layers"in e,get:e=>e.layers},metadata:t},null,s),a(this,null,be,{kind:"method",name:"clickRoute",static:!1,private:!1,access:{has:e=>"clickRoute"in e,get:e=>e.clickRoute},metadata:t},null,s),a(this,null,Re,{kind:"method",name:"selectCurrentPosition",static:!1,private:!1,access:{has:e=>"selectCurrentPosition"in e,get:e=>e.selectCurrentPosition},metadata:t},null,s),a(this,null,ve,{kind:"method",name:"findLocation",static:!1,private:!1,access:{has:e=>"findLocation"in e,get:e=>e.findLocation},metadata:t},null,s),a(this,null,Te,{kind:"getter",name:"routeInfo",static:!1,private:!1,access:{has:e=>"routeInfo"in e,get:e=>e.routeInfo},metadata:t},null,s),a(this,null,Se,{kind:"method",name:"updateRoute",static:!1,private:!1,access:{has:e=>"updateRoute"in e,get:e=>e.updateRoute},metadata:t},null,s),a(this,null,Pe,{kind:"method",name:"updateRouteDistance",static:!1,private:!1,access:{has:e=>"updateRouteDistance"in e,get:e=>e.updateRouteDistance},metadata:t},null,s),a(this,null,ze,{kind:"method",name:"updateRoutePoints",static:!1,private:!1,access:{has:e=>"updateRoutePoints"in e,get:e=>e.updateRoutePoints},metadata:t},null,s),a(this,null,De,{kind:"method",name:"checkRoutes",static:!1,private:!1,access:{has:e=>"checkRoutes"in e,get:e=>e.checkRoutes},metadata:t},null,s),a(this,null,Me,{kind:"method",name:"setGpsTrackingEnabled",static:!1,private:!1,access:{has:e=>"setGpsTrackingEnabled"in e,get:e=>e.setGpsTrackingEnabled},metadata:t},null,s),a(this,null,Ce,{kind:"getter",name:"gpsEnabled",static:!1,private:!1,access:{has:e=>"gpsEnabled"in e,get:e=>e.gpsEnabled},metadata:t},null,s),a(this,null,Ge,{kind:"method",name:"setOnlyAccessible",static:!1,private:!1,access:{has:e=>"setOnlyAccessible"in e,get:e=>e.setOnlyAccessible},metadata:t},null,s),a(null,null,n,{kind:"field",name:"routeLines",static:!1,private:!1,access:{has:e=>"routeLines"in e,get:e=>e.routeLines,set:(e,i)=>{e.routeLines=i}},metadata:t},l,p),a(null,null,y,{kind:"field",name:"routeDistance",static:!1,private:!1,access:{has:e=>"routeDistance"in e,get:e=>e.routeDistance,set:(e,i)=>{e.routeDistance=i}},metadata:t},v,g),a(null,null,z,{kind:"field",name:"currentPosition",static:!1,private:!1,access:{has:e=>"currentPosition"in e,get:e=>e.currentPosition,set:(e,i)=>{e.currentPosition=i}},metadata:t},D,I),a(null,null,A,{kind:"field",name:"requestCompass",static:!1,private:!1,access:{has:e=>"requestCompass"in e,get:e=>e.requestCompass,set:(e,i)=>{e.requestCompass=i}},metadata:t},w,M),a(null,null,C,{kind:"field",name:"iconType",static:!1,private:!1,access:{has:e=>"iconType"in e,get:e=>e.iconType,set:(e,i)=>{e.iconType=i}},metadata:t},G,O),a(null,null,F,{kind:"field",name:"tempToBooth",static:!1,private:!1,access:{has:e=>"tempToBooth"in e,get:e=>e.tempToBooth,set:(e,i)=>{e.tempToBooth=i}},metadata:t},N,B),a(null,null,U,{kind:"field",name:"focusEnabled",static:!1,private:!1,access:{has:e=>"focusEnabled"in e,get:e=>e.focusEnabled,set:(e,i)=>{e.focusEnabled=i}},metadata:t},Z,q),a(null,null,$,{kind:"field",name:"prevZ",static:!1,private:!1,access:{has:e=>"prevZ"in e,get:e=>e.prevZ,set:(e,i)=>{e.prevZ=i}},metadata:t},V,K),a(null,null,j,{kind:"field",name:"markersData",static:!1,private:!1,access:{has:e=>"markersData"in e,get:e=>e.markersData,set:(e,i)=>{e.markersData=i}},metadata:t},W,X),a(null,null,Y,{kind:"field",name:"prevMarkers",static:!1,private:!1,access:{has:e=>"prevMarkers"in e,get:e=>e.prevMarkers,set:(e,i)=>{e.prevMarkers=i}},metadata:t},H,J),a(null,null,Q,{kind:"field",name:"showAccessible",static:!1,private:!1,access:{has:e=>"showAccessible"in e,get:e=>e.showAccessible,set:(e,i)=>{e.showAccessible=i}},metadata:t},ee,te),a(null,null,se,{kind:"field",name:"onlyAccessible",static:!1,private:!1,access:{has:e=>"onlyAccessible"in e,get:e=>e.onlyAccessible,set:(e,i)=>{e.onlyAccessible=i}},metadata:t},ie,ae),a(null,null,re,{kind:"field",name:"currentRouteLayer",static:!1,private:!1,access:{has:e=>"currentRouteLayer"in e,get:e=>e.currentRouteLayer,set:(e,i)=>{e.currentRouteLayer=i}},metadata:t},ne,oe),a(null,null,le,{kind:"field",name:"currentRouteExhibitor",static:!1,private:!1,access:{has:e=>"currentRouteExhibitor"in e,get:e=>e.currentRouteExhibitor,set:(e,i)=>{e.currentRouteExhibitor=i}},metadata:t},ce,ue),a(null,null,xe,{kind:"field",name:"routeUnits",static:!1,private:!1,access:{has:e=>"routeUnits"in e,get:e=>e.routeUnits,set:(e,i)=>{e.routeUnits=i}},metadata:t},Ee,Le),a(null,null,Ie,{kind:"field",name:"isGpsTrackingEnabled",static:!1,private:!1,access:{has:e=>"isGpsTrackingEnabled"in e,get:e=>e.isGpsTrackingEnabled,set:(e,i)=>{e.isGpsTrackingEnabled=i}},metadata:t},Ae,we),t&&Object.defineProperty(this,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:t})}rootStore=r(this,s);cpTimeout;routeLines=r(this,l,[]);routeDistance=(r(this,p),r(this,v,null));currentPosition=(r(this,g),r(this,D,null));requestCompass=(r(this,I),r(this,w,!1));iconType=(r(this,M),r(this,G,0));tempToBooth=(r(this,O),r(this,N,null));focusEnabled=(r(this,B),r(this,Z,!0));prevZ=(r(this,q),r(this,V,null));markersData=(r(this,K),r(this,W,{icons:[],markers:[]}));prevMarkers=(r(this,X),r(this,H,[]));showAccessible=(r(this,J),r(this,ee,!!je.getLines().find(t=>t.unaccessible)));onlyAccessible=(r(this,te),r(this,ie,!1));currentRouteLayer=(r(this,ae),r(this,ne,null));currentRouteExhibitor=(r(this,oe),r(this,ce,null));constructor(t){r(this,we),this.rootStore=t,this.focusEnabled=!window.location.search}get canFindLocation(){return!!_.kioskData||!!this.currentPosition}selectRoute(t,e=!0,i=!1){if(e&&(_.list={type:"search",text:"",focused:!1}),t&&!t.from&&t.to){const d=this.resolveFallbackFrom();d&&(t=new Route(d,t.to,t.waypoints))}t?.from&&t?.to&&t.from===t.to&&(t=null);let o=[];t?.from&&t?.to&&window.setTimeout(()=>{this.rootStore.showMap()},navigator.userAgent.toLowerCase().indexOf("android")>-1?400:50),t?.from instanceof R&&t.from.visible&&o.push(t.from),t?.to instanceof R&&t.to.visible&&(this.tempToBooth=null,o.push(t.to)),!t&&u.fp.onDirection&&u.fp.onDirection(null);const c=()=>{if(this.rootStore.moveToList(o),_.details=t,t&&(!t.from||!t.to)&&u.showOverlay(),t?.to&&t?.from){const d=dt(t.from);d&&this.rootStore.layerStore.updateVisibility(d,!0)}if(!this.currentRouteLayer){const d=Xe(this.rootStore.layerStore,t?.from),h=Xe(this.rootStore.layerStore,t?.to);d?this.currentRouteLayer=d:h&&(this.currentRouteLayer=h)}e&&t?.from&&t?.to&&st(tt.ClickDirections,`${t?.from?"From "+t.from.name:""} ${t?.to?"To "+t.to.name:""}`)};i?c():setTimeout(c,200)}rebuildRouteFromPosition(t){const e=_.selectedRoute;e?.to&&this.selectRoute(new Route(t,e.to,e.waypoints),!1,!0)}resolveFallbackFrom(){if(this.currentPosition)return We(this.currentPosition,rt,nt);const t=_.kioskData;return t?We({x:t.x,y:t.y,z:t.z},Je(),ot):null}setStartPoint(t){const e=_.selectedRoute;if(e?.to&&!e?.from&&t){const i=new Route(t,e.to,e.waypoints);this.selectRoute(i)}}get pathLayers(){return u.routeStore.routeLines?.map(t=>t.p0.layer)?.filter((t,e,i)=>i.indexOf(t)===e).reverse().map((t,e)=>({id:e+1,layer:u.layerStore.findLayer(t)}))}getNearestBooth(t){if(!t)return null;let e=this.rootStore.layerStore.findLayer(t.z);const i=t.lat&&t.lng?$e(t,P.properties.config):t;return this.rootStore.boothStore.booths.filter(o=>T.mode===ct.Default||!e?o.visible&&o.rect:o.rect&&(typeof t.z!="number"&&!t.z&&o.visible||e.name===o.layer?.name)).sort((o,c)=>Fe(i,{x:o.rect.cx,y:o.rect.cy})-Fe(i,{x:c.rect.cx,y:c.rect.cy}))[0]||null}setMarkers(t){this.markersData.markers=(t?.markers??[]).map(ft),this.markersData.icons=t?.icons??[]}selectMarker(t,e){const i=this.markersData.markers.find(c=>c.id===t);this.markersData.markers.forEach(c=>c.active=!1),i&&(i.active=!0);let o=u.layerStore.findLayer(i?.z);if(e&&i){const c=u.rendererService.renderer;return o&&!o?.visible&&T.updateVisibility(o,!0),c?c.controls.panTo(i.x,i.y):(Ue.warn("Renderer is not initialized. Cannot pan to marker."),Promise.resolve())}return Promise.resolve()}get selectedMarkers(){return this.markersData.markers.filter(t=>t.active)}get layers(){var t=[];return u.routeStore.routeLines?.map(e=>e.p0.layer).reverse().forEach(e=>{t.indexOf(e)===-1&&t.push(e)}),t.map(e=>u.layerStore.layers.find(i=>i.name===e))}clickRoute(t,e){window.__resett&&window.__resett(),this.rootStore.uiState.menu=null,_.list.type==="route-planner"&&(_.list={type:"search",text:"",focused:!1}),this.selectRoute(new Route(t,e))}selectCurrentPosition(t,e=!0,i){clearTimeout(this.cpTimeout),t&&(t.x=b(t.x),t.y=b(t.y),t.lat=b(t.lat),t.lng=b(t.lng),it()||(t.z=null));const o=e&&this.rootStore.uiState.details&&!(this.rootStore.uiState.details instanceof Route),c=e&&!o&&(this.focusEnabled||this.prevZ!=t?.z);this.focusEnabled&&(this.focusEnabled=!1),this.prevZ=t?.z?.toString(),this.iconType=i?1:0;const d=t?ht(t):null;if(!d){this.currentPosition=null;return}const h=u.layerStore.findLayer(t.z),E=new CurrentPosition(d.x,d.y,h?.name||this.currentRouteLayer?.name,at(d),t.lat,t.lng);let Oe=!this.routeLines?.length;if(h&&this.routeLines?.length&&(Oe=!!this.routeLines.find(L=>L.p0.layer===h.name||L.p1.layer===h.name)),c&&Oe){const L=u.rendererService.renderer;if(h&&!h?.visible&&T.updateVisibility(h,!0),!L){Ue.warn("Renderer is not initialized. Cannot pan to current position.");return}L.controls.panTo(E.x,E.y)}this.currentPosition=E,this.gpsEnabled||(this.cpTimeout=setTimeout(()=>{this.currentPosition&&this.selectCurrentPosition(null,!1)},30*1e3))}findLocation(){if(!this.canFindLocation)return;if(u.maplibreStore.showMaplibre){_.moveToLocation=!0;return}const t=this.currentPosition??_.kioskData;if(!t)return;this.currentPosition&&localStorage.getItem(Qe)==="false"&&(u.routeStore.requestCompass=!0);const e=S.fromCxcywh(t.x,t.y,100,100);let i;if(e.intersects(k))i=e;else{const c=Math.max(k.x1,Math.min(t.x,k.x2)),d=Math.max(k.y1,Math.min(t.y,k.y2)),h=Math.min(k.w,k.h)*.3,E=S.fromCxcywh(c,d,h,h).getIntersection(k);i=S.fromMultiple([e,E])}_.moveToRect=i;const o=u.layerStore.findLayer(t.z);o&&T.updateVisibility(o,!0)}routeUnits=(r(this,ue),r(this,Ee,Ne));get routeInfo(){const t=this.routeDistance,e=this.routeUnits;return t?{distance:`${t}${e}`,units:e,time:qe(t,Ze(e))}:null}updateRoute(t,e){!t?.length&&!this.routeLines.length||(this.routeLines=t,this.updateRoutePoints())}updateRouteDistance(t){if(t==null)return;const e=et(),i=(e.getAttribute("units")||Ne).toLowerCase?.().trim(),o=e.getAttribute("fp-ver")?.startsWith("5")??!1;this.routeDistance=Math.round(t/(o?1:10)),this.routeUnits=i,this.updateRoutePoints()}updateRoutePoints(){const t=_.selectedRoute,e=this.routeDistance,i=this.routeUnits;u.fp.onDirection&&setTimeout(()=>{u.fp.onDirection({from:Ye(t?.from??null),to:Ye(t?.to??null),lines:this.routeLines,distance:`${e}${i}`,units:i,time:qe(e,Ze(i))})},200)}checkRoutes(){const t=lt(je),e=u.boothStore.booths;console.info(`Route check started ${e.length}.... `);for(let i=0;i<e.length;i++){const o=e[i];for(let c=i+1;c<e.length;c++){const d=e[c];t.buildRoute(Ke(o),Ke(d)).lines.length||console.warn(`No route found from ${o.name} to ${d.name}`)}}console.info("Route check done....")}isGpsTrackingEnabled=(r(this,Le),r(this,Ae,!0));setGpsTrackingEnabled(t){this.isGpsTrackingEnabled=t}get gpsEnabled(){return Be.autoTrackingGps&&this.isGpsTrackingEnabled&&!Be.enableIPS}setOnlyAccessible(t){this.onlyAccessible=t}}})();export default ut;function dt(s){if(s)return s instanceof R?s.layer?.name:s.layer}function Xe(s,n){return n?n instanceof R?n.layer??null:s.findLayer(n.layer):null}function ft(s){return{...s,x:b(s.x),y:b(s.y),lat:b(s.lat),lng:b(s.lng)}}function ht(s){let n=null,l=null;return P&&(n=P.properties.config),n&&s.x>=n.p0.x&&s.x<=n.p2.x&&s.y>=n.p0.y&&s.y<=n.p2.y?l={...s}:n&&Ve(s.lat)&&Ve(s.lng)?l=$e(s,n):n||(l=s),l||null}export function findBooth(s){return u.boothStore.findBooth(s)||u.exhibitorStore.findExhibitor(s)?.booths[0]}export function findEntityByExternalId(s){const n=u.boothStore.boothByExternalId.get(s);if(n)return{type:"booth",entity:n};const l=u.exhibitorStore.exhibitorByExternalId.get(s);if(l)return{type:"exhibitor",entity:l}}export function separateExternalIds(s){const n=[],l=[];for(const p of s){const y=findEntityByExternalId(p);y&&(y.type==="booth"?n.push(p):l.push(p))}return{boothExternalIds:n,exhibitorExternalIds:l}}export function extractRoute(s,n,l){return new Route(findBooth(s)??null,findBooth(n)??null,l?.map(p=>findBooth(p)))}export class Route{from;to;waypoints;constructor(n,l,p){this.from=n,this.to=l,this.waypoints=p;const y=n instanceof R?n.id:void 0,v=l instanceof R?l.id:void 0;this.waypoints=p?.filter(g=>g&&g.id!==y&&g.id!==v)}}function Ye(s){return s?s instanceof R?{id:s.id,name:s.name,externalId:s.externalId,layer:{name:s.layer?.name,description:s.layer?.description}}:{id:Number.MAX_SAFE_INTEGER,name:s.name,externalId:void 0,layer:{name:s.layer,description:void 0}}:null}export class CurrentPosition extends He{x;y;z;angle;lat;lng;constructor(n,l,p,y,v,g){super(n,l),this.x=n,this.y=l,this.z=p,this.angle=y,this.lat=v,this.lng=g}}
@@ -1 +1 @@
1
- import{__esDecorate as s,__runInitializers as u}from"tslib";import{action as c,computed as l,observable as d}from"mobx";import{t as n}from"../utils/i18n";import S from"../data";import le from"../tools/settings";import{sanitizeSearch as ce}from"../utils/sanitizeText";import{Route as f}from"./RouteStore";import{goBack as g}from"../services/routing";import{MOBILE_BREAKPOINT as he,LANGUAGE_TYPE as ne}from"../constants";class i{static closeDetails(r){return r.details?(r.details=null,!0):!1}static closeMultiPointTour(r){return r.rootStore.fp.hidePathways(),!0}static clearSearchAndFocus(r){return r.searchText?(r.setSearchText(""),r.setFocused(!0),!0):!1}static returnToSearch(r,h=!1){r.list={type:"search",text:"",focused:h}}static returnToSessions(r,h=!1){r.list={type:"sessions",text:"",focused:h}}static returnToTours(r,h=!1){r.list={type:"tours",text:"",focused:h}}static openMenu(r){r.menu=!0}static closeMenu(r){r.menu=!1}static clearListScroll(r,h){r.clearListScroll(h)}static resetActiveListIndex(r){r.activeListIndex=-1}}let ue=(()=>{let a=[],r,h=[],x=[],m,_=[],B=[],k,y=[],b=[],v,F=[],T=[],M,I,C,A,w,z,L,O,E,P,W,D,U,R,j,G,K,N,X,Y,H,V,$,q,J,Q,Z,ee,te,se,ae,ie,re,oe;return class{static{const t=typeof Symbol=="function"&&Symbol.metadata?Object.create(null):void 0;r=[d],m=[d],k=[d],v=[d],M=[l],I=[l],C=[l],A=[l],w=[l],z=[l],L=[l],O=[l],E=[l],P=[l],W=[l],D=[l],U=[l],R=[l],j=[c],G=[c],K=[c],N=[c],X=[c],Y=[c],H=[c],V=[c],$=[c],q=[c],J=[c],Q=[c],Z=[c],ee=[c],te=[l],se=[c],ae=[l],ie=[l],re=[l],oe=[l],s(this,null,M,{kind:"getter",name:"searchBoxConfig",static:!1,private:!1,access:{has:e=>"searchBoxConfig"in e,get:e=>e.searchBoxConfig},metadata:t},null,a),s(this,null,I,{kind:"getter",name:"searchBoxMode",static:!1,private:!1,access:{has:e=>"searchBoxMode"in e,get:e=>e.searchBoxMode},metadata:t},null,a),s(this,null,C,{kind:"getter",name:"searchBoxTitle",static:!1,private:!1,access:{has:e=>"searchBoxTitle"in e,get:e=>e.searchBoxTitle},metadata:t},null,a),s(this,null,A,{kind:"getter",name:"searchBoxSubtitle",static:!1,private:!1,access:{has:e=>"searchBoxSubtitle"in e,get:e=>e.searchBoxSubtitle},metadata:t},null,a),s(this,null,w,{kind:"getter",name:"searchBoxBadge",static:!1,private:!1,access:{has:e=>"searchBoxBadge"in e,get:e=>e.searchBoxBadge},metadata:t},null,a),s(this,null,z,{kind:"getter",name:"searchBoxIcon",static:!1,private:!1,access:{has:e=>"searchBoxIcon"in e,get:e=>e.searchBoxIcon},metadata:t},null,a),s(this,null,L,{kind:"getter",name:"searchBoxActions",static:!1,private:!1,access:{has:e=>"searchBoxActions"in e,get:e=>e.searchBoxActions},metadata:t},null,a),s(this,null,O,{kind:"getter",name:"shouldShowSearchInput",static:!1,private:!1,access:{has:e=>"shouldShowSearchInput"in e,get:e=>e.shouldShowSearchInput},metadata:t},null,a),s(this,null,E,{kind:"getter",name:"shouldShowCloseButton",static:!1,private:!1,access:{has:e=>"shouldShowCloseButton"in e,get:e=>e.shouldShowCloseButton},metadata:t},null,a),s(this,null,P,{kind:"getter",name:"closeButtonAction",static:!1,private:!1,access:{has:e=>"closeButtonAction"in e,get:e=>e.closeButtonAction},metadata:t},null,a),s(this,null,W,{kind:"getter",name:"shouldShowShadow",static:!1,private:!1,access:{has:e=>"shouldShowShadow"in e,get:e=>e.shouldShowShadow},metadata:t},null,a),s(this,null,D,{kind:"getter",name:"placeholder",static:!1,private:!1,access:{has:e=>"placeholder"in e,get:e=>e.placeholder},metadata:t},null,a),s(this,null,U,{kind:"getter",name:"searchBoxClass",static:!1,private:!1,access:{has:e=>"searchBoxClass"in e,get:e=>e.searchBoxClass},metadata:t},null,a),s(this,null,R,{kind:"getter",name:"ariaLabel",static:!1,private:!1,access:{has:e=>"ariaLabel"in e,get:e=>e.ariaLabel},metadata:t},null,a),s(this,null,j,{kind:"method",name:"selectSearch",static:!1,private:!1,access:{has:e=>"selectSearch"in e,get:e=>e.selectSearch},metadata:t},null,a),s(this,null,G,{kind:"method",name:"selectSearchAndFocus",static:!1,private:!1,access:{has:e=>"selectSearchAndFocus"in e,get:e=>e.selectSearchAndFocus},metadata:t},null,a),s(this,null,K,{kind:"method",name:"setSearchText",static:!1,private:!1,access:{has:e=>"setSearchText"in e,get:e=>e.setSearchText},metadata:t},null,a),s(this,null,N,{kind:"method",name:"setFocused",static:!1,private:!1,access:{has:e=>"setFocused"in e,get:e=>e.setFocused},metadata:t},null,a),s(this,null,X,{kind:"method",name:"handleBackAction",static:!1,private:!1,access:{has:e=>"handleBackAction"in e,get:e=>e.handleBackAction},metadata:t},null,a),s(this,null,Y,{kind:"method",name:"closeSearch",static:!1,private:!1,access:{has:e=>"closeSearch"in e,get:e=>e.closeSearch},metadata:t},null,a),s(this,null,H,{kind:"method",name:"clearActiveFilters",static:!1,private:!1,access:{has:e=>"clearActiveFilters"in e,get:e=>e.clearActiveFilters},metadata:t},null,a),s(this,null,V,{kind:"method",name:"resetSearchButtonState",static:!1,private:!1,access:{has:e=>"resetSearchButtonState"in e,get:e=>e.resetSearchButtonState},metadata:t},null,a),s(this,null,$,{kind:"method",name:"handleSearchAction",static:!1,private:!1,access:{has:e=>"handleSearchAction"in e,get:e=>e.handleSearchAction},metadata:t},null,a),s(this,null,q,{kind:"method",name:"openOverlayWithoutInputFocus",static:!1,private:!1,access:{has:e=>"openOverlayWithoutInputFocus"in e,get:e=>e.openOverlayWithoutInputFocus},metadata:t},null,a),s(this,null,J,{kind:"method",name:"closeSessions",static:!1,private:!1,access:{has:e=>"closeSessions"in e,get:e=>e.closeSessions},metadata:t},null,a),s(this,null,Q,{kind:"method",name:"closeExhibitors",static:!1,private:!1,access:{has:e=>"closeExhibitors"in e,get:e=>e.closeExhibitors},metadata:t},null,a),s(this,null,Z,{kind:"method",name:"resetSearchBox",static:!1,private:!1,access:{has:e=>"resetSearchBox"in e,get:e=>e.resetSearchBox},metadata:t},null,a),s(this,null,ee,{kind:"method",name:"syncWithUIState",static:!1,private:!1,access:{has:e=>"syncWithUIState"in e,get:e=>e.syncWithUIState},metadata:t},null,a),s(this,null,te,{kind:"getter",name:"actionButtonIcon",static:!1,private:!1,access:{has:e=>"actionButtonIcon"in e,get:e=>e.actionButtonIcon},metadata:t},null,a),s(this,null,se,{kind:"method",name:"clearAndSelectSearch",static:!1,private:!1,access:{has:e=>"clearAndSelectSearch"in e,get:e=>e.clearAndSelectSearch},metadata:t},null,a),s(this,null,ae,{kind:"getter",name:"backMode",static:!1,private:!1,access:{has:e=>"backMode"in e,get:e=>e.backMode},metadata:t},null,a),s(this,null,ie,{kind:"getter",name:"isMobileDetailsMode",static:!1,private:!1,access:{has:e=>"isMobileDetailsMode"in e,get:e=>e.isMobileDetailsMode},metadata:t},null,a),s(this,null,re,{kind:"getter",name:"shouldShowTitle",static:!1,private:!1,access:{has:e=>"shouldShowTitle"in e,get:e=>e.shouldShowTitle},metadata:t},null,a),s(this,null,oe,{kind:"getter",name:"searchState",static:!1,private:!1,access:{has:e=>"searchState"in e,get:e=>e.searchState},metadata:t},null,a),s(null,null,r,{kind:"field",name:"searchText",static:!1,private:!1,access:{has:e=>"searchText"in e,get:e=>e.searchText,set:(e,o)=>{e.searchText=o}},metadata:t},h,x),s(null,null,m,{kind:"field",name:"isFocused",static:!1,private:!1,access:{has:e=>"isFocused"in e,get:e=>e.isFocused,set:(e,o)=>{e.isFocused=o}},metadata:t},_,B),s(null,null,k,{kind:"field",name:"isClearMode",static:!1,private:!1,access:{has:e=>"isClearMode"in e,get:e=>e.isClearMode,set:(e,o)=>{e.isClearMode=o}},metadata:t},y,b),s(null,null,v,{kind:"field",name:"skipInputFocus",static:!1,private:!1,access:{has:e=>"skipInputFocus"in e,get:e=>e.skipInputFocus,set:(e,o)=>{e.skipInputFocus=o}},metadata:t},F,T),t&&Object.defineProperty(this,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:t})}rootStore=u(this,a);searchText=u(this,h,"");isFocused=(u(this,x),u(this,_,!1));isClearMode=(u(this,B),u(this,y,!1));skipInputFocus=(u(this,b),u(this,F,!1));constructor(t){u(this,T),this.rootStore=t}get uiState(){return this.rootStore.uiState}get searchBoxConfig(){return this.uiState.searchBoxConfig}get searchBoxMode(){return this.searchBoxConfig.mode}get searchBoxTitle(){return this.searchBoxConfig.title}get searchBoxSubtitle(){return this.searchBoxConfig.subtitle}get searchBoxBadge(){return this.searchBoxConfig.badge}get searchBoxIcon(){return this.searchBoxConfig.icon}get searchBoxActions(){return this.uiState.searchBoxActions}get shouldShowSearchInput(){return this.searchBoxMode==="search"}get shouldShowCloseButton(){const{menu:t,details:e,list:o}=this.uiState,p=S.isRebooking&&o.type==="exhibitors";return!this.shouldShowSearchInput||o.type==="sessions"||o.type==="tours"||o.type==="speakers"||o.type==="exhibitors"&&!p?!0:t||e!==null||!!this.searchText||this.isClearMode||this.isFocused}get closeButtonAction(){return!this.shouldShowSearchInput||this.searchBoxMode==="details"||this.uiState.list.type==="sessions"||this.uiState.list.type==="speakers"||this.uiState.list.type==="exhibitors"&&!S.isRebooking?"close":this.searchText?"clear":"close"}get shouldShowShadow(){const{menu:t,details:e,list:o}=this.uiState,p=o.type==="search"&&!!o.text;return!(this.rootStore.fp.alwaysShowSidebar||t||e!==null||o.type!=="search"||p||this.isFocused||this.uiState.heatmap)}get placeholder(){const{list:t,heatmapYah:e}=this.uiState;return t.type==="sessions"?n("Search sessions"):t.type==="tours"?n("Search Guided Tours"):t.type==="exhibitors"?n("Search exhibitors"):t.type==="speakers"?n("Search speakers"):le.EXPO.startsWith("lenzerheidemotorclassics")?"SUCHE":le.EXPO.startsWith("jetlag")?"Search location or artist":e?n("Find values greater than"):this.uiState.hasAppliedFilters?n("Search"):S.searchText||n("Search")}get searchBoxClass(){return{"is-details":this.searchBoxMode==="details"&&!(this.uiState.details instanceof f),"is-interface":this.searchBoxMode==="interface","has-shadow":this.shouldShowShadow,"has-subtitle":!!this.searchBoxConfig.subtitle,"has-badge":!!this.searchBoxConfig.badge,"has-icon":!!this.searchBoxConfig.icon,"is-overlay-full":this.uiState.isOverlayOpen&&this.uiState.overlaySize==="full","is-featured-exhibitor":this.uiState.isFeaturedExhibitorActive,"is-route":this.uiState.details instanceof f,"is-guided-tours":this.uiState.isGuidedToursActive,"is-overlay-scrolled":this.uiState.isOverlayScrolled,"overlay-pulse":this.uiState.kiosk&&this.uiState.inIdle&&!this.uiState.setKioskModeEnabled}}get ariaLabel(){return!this.shouldShowSearchInput||this.searchBoxMode==="details"?n("Close"):this.searchText?n("Clear search"):n("Close")}selectSearch(t){window.__resett&&window.__resett(),this.uiState.details=null;const e=ce(t||"",Object.keys(this.uiState.mapSettings).map(o=>`${o}=`));this.setSearchText(e),this.uiState.activeListIndex=-1}selectSearchAndFocus(t){this.selectSearch(t),this.setFocused(!0)}setSearchText(t){this.searchText=t,this.uiState.hasAppliedFilters?this.rootStore.moveToList():this.uiState.centerMap=!0,this.uiState.activeListIndex=t?0:-1,this.uiState.list.type!=="sessions"&&this.uiState.list.type!=="tours"&&this.uiState.list.type!=="speakers"&&this.uiState.list.type!=="exhibitors"?this.uiState.list={type:"search",text:t,focused:this.isFocused}:this.uiState.list.type==="exhibitors"&&(this.uiState.list={type:"exhibitors",text:t,focused:this.isFocused}),this.uiState.searchClearMode=this.isClearMode}setFocused(t){this.isFocused=t,this.isClearMode=!1,this.skipInputFocus=!1,this.uiState.searchFocused=t,this.uiState.searchClearMode=!1,this.uiState.desiredOverlaySize="full"}handleBackAction(){const{uiState:t}=this,{list:e}=t;if(t.desiredOverlaySize="full",this.backMode==="menu"){this.resetSearchButtonState(),i.openMenu(t);return}if(e.type==="route-planner"){this.rootStore.routePlannerStore.close(),this.rootStore.selectBookmarks(),g();return}if(e.type==="multi-point-tour"&&!t.details){i.returnToTours(t,!1),this.rootStore.fp.hidePathways();return}if(t.details){t.details=null,g();return}if(t.menu){e.type==="sessions"?t.list={type:"sessions",text:"",focused:!0}:e.type==="exhibitors"?t.list={type:"exhibitors",text:"",focused:!0}:t.list={type:"search",text:"",focused:!0},this.setFocused(!0),this.isClearMode=!0,i.closeMenu(t);return}if(e.type==="tours"&&t.details instanceof f){t.details=null;return}if(e.type==="sessions"||e.type==="tours"||e.type==="exhibitors"){if(i.closeDetails(t))return;this.clearActiveFilters(),i.returnToSearch(t,!1),this.selectSearchAndFocus();return}switch(e.type){case"filter":t.details=null;return;case"multi-point-tour":this.rootStore.fp.hidePathways(),i.closeDetails(t)?i.returnToTours(t,!1):g();return;case"category":this.rootStore.selectCategory(e.category);return;case"speakers":if(i.closeDetails(t))return;i.returnToSessions(t,!1);return;case"bookmarks":case"visited":if(i.closeDetails(t))return;this.selectSearchAndFocus();return;case ne:i.returnToSearch(t,!1),i.openMenu(t);return}i.closeDetails(t)||i.clearSearchAndFocus(this)||i.openMenu(t)}closeSearch(){const{uiState:t}=this,{list:e}=t;if(e.type==="route-planner"){this.rootStore.routePlannerStore.close(),i.returnToSearch(t,!1),this.resetSearchBox();return}if(i.closeDetails(t),i.clearListScroll(t,e.type),i.closeMultiPointTour(t),e.type==="bookmarks"){i.returnToSearch(t,!1),this.resetSearchBox();return}if(t.selectedCategory){i.returnToSearch(t,!1),this.resetSearchBox();return}if(e.type==="sessions"){this.closeSessions();return}if(e.type==="exhibitors"){if(S.isRebooking){this.searchBoxMode==="search"&&this.searchText?(this.setSearchText(""),this.isClearMode=!0,this.clearActiveFilters()):this.resetSearchBox();return}this.closeExhibitors();return}if(t.menu){i.closeMenu(t),this.resetSearchBox();return}if(this.searchBoxMode==="search"&&!t.details&&this.searchText){this.setSearchText(""),this.isClearMode=!0,this.clearActiveFilters();return}i.returnToSearch(t,!1),this.searchText="",this.resetSearchBox(),t.details=null,this.clearActiveFilters()}clearActiveFilters(){this.rootStore.searchButtonsStore.setPoiFilterId(null),this.rootStore.uiState.selectedPoiTypeFilters=[],this.rootStore.uiState.selectedCategoryFilters=[],this.rootStore.categoryFilterStore.state.selectedItems=[],this.rootStore.categoryFilterStore.state.pendingItems=[],this.rootStore.searchButtonsStore.searchShortcutState.activeParentId=null,this.rootStore.searchButtonsStore.searchShortcutState.activeChildren.clear(),this.rootStore.searchButtonsStore.searchShortcutState.isShortcutsVisible=!1,this.rootStore.urlFilterManager&&this.rootStore.urlFilterManager.isInitialized&&this.rootStore.urlFilterManager.clearAllFilters()}resetSearchButtonState(){const{uiState:t}=this;this.rootStore.searchButtonsStore.clearAllFilters(),this.rootStore.searchButtonsStore.setSubButtonId(null),this.rootStore.searchButtonsStore.hideSubButtons(),t.selectedTrack=null,this.searchText="",this.isClearMode=!1}handleSearchAction(){this.isFocused||this.setFocused(!0)}openOverlayWithoutInputFocus(){this.skipInputFocus=!0,this.isFocused=!0,this.isClearMode=!1,this.uiState.searchFocused=!0,this.uiState.searchClearMode=!1,this.uiState.desiredOverlaySize="full"}closeSessions(){this.searchText="",i.returnToSearch(this.uiState,!1),this.uiState.details=null,i.resetActiveListIndex(this.uiState),this.uiState.selectedTrack=null,this.rootStore.searchButtonsStore.setSubButtonId(null),this.rootStore.searchButtonsStore.hideSubButtons()}closeExhibitors(){this.searchText="",i.returnToSearch(this.uiState,!1),this.uiState.details=null,i.resetActiveListIndex(this.uiState)}resetSearchBox(){this.setFocused(!1),this.isClearMode=!1,this.syncWithUIState()}syncWithUIState(){this.searchText=(this.uiState.list.type==="search"||this.uiState.list.type==="exhibitors")&&this.uiState.list.text||"",this.isFocused=this.uiState.searchFocused,this.isClearMode=this.uiState.searchClearMode}get actionButtonIcon(){return this.shouldShowSearchInput?this.shouldShowCloseButton?"icon-close":"icon-search":"icon-close"}clearAndSelectSearch(){this.selectSearch(""),this.setFocused(!1)}get backMode(){const t=this.uiState.list.type;return(t==="bookmarks"||t==="visited")&&!this.uiState.details&&!this.uiState.menu||this.shouldShowSearchInput&&!this.searchText?"menu":"back"}get isMobileDetailsMode(){return window.innerWidth<he&&this.uiState.details!==null&&this.uiState.overlaySize==="full"&&!(this.uiState.details instanceof f)}get shouldShowTitle(){return!this.shouldShowSearchInput}get searchState(){return{text:this.searchText,isFocused:this.isFocused,isClearMode:this.isClearMode,mode:this.searchBoxMode,title:this.searchBoxConfig.title,subtitle:this.searchBoxConfig.subtitle,badge:this.searchBoxConfig.badge,icon:this.searchBoxConfig.icon}}}})();export default ue;
1
+ import{__esDecorate as s,__runInitializers as u}from"tslib";import{action as c,computed as l,observable as d}from"mobx";import{LANGUAGE_TYPE as ce,MOBILE_BREAKPOINT as he}from"../constants";import S from"../data";import{goBack as g}from"../services/routing";import le from"../tools/settings";import{t as n}from"../utils/i18n";import{sanitizeSearch as ne}from"../utils/sanitizeText";import{Route as f}from"./RouteStore";class i{static closeDetails(r){return r.details?(r.details=null,!0):!1}static closeMultiPointTour(r){return r.rootStore.fp.hidePathways(),!0}static clearSearchAndFocus(r){return r.searchText?(r.setSearchText(""),r.setFocused(!0),!0):!1}static returnToSearch(r,h=!1){r.list={type:"search",text:"",focused:h}}static returnToSessions(r,h=!1){r.list={type:"sessions",text:"",focused:h}}static returnToTours(r,h=!1){r.list={type:"tours",text:"",focused:h}}static openMenu(r){r.menu=!0}static closeMenu(r){r.menu=!1}static clearListScroll(r,h){r.clearListScroll(h)}static resetActiveListIndex(r){r.activeListIndex=-1}}let ue=(()=>{let a=[],r,h=[],x=[],m,_=[],B=[],k,y=[],b=[],v,F=[],T=[],M,I,C,A,w,z,L,O,E,P,W,D,U,R,j,G,K,N,X,Y,H,V,$,q,J,Q,Z,ee,te,se,ae,ie,re,oe;return class{static{const t=typeof Symbol=="function"&&Symbol.metadata?Object.create(null):void 0;r=[d],m=[d],k=[d],v=[d],M=[l],I=[l],C=[l],A=[l],w=[l],z=[l],L=[l],O=[l],E=[l],P=[l],W=[l],D=[l],U=[l],R=[l],j=[c],G=[c],K=[c],N=[c],X=[c],Y=[c],H=[c],V=[c],$=[c],q=[c],J=[c],Q=[c],Z=[c],ee=[c],te=[l],se=[c],ae=[l],ie=[l],re=[l],oe=[l],s(this,null,M,{kind:"getter",name:"searchBoxConfig",static:!1,private:!1,access:{has:e=>"searchBoxConfig"in e,get:e=>e.searchBoxConfig},metadata:t},null,a),s(this,null,I,{kind:"getter",name:"searchBoxMode",static:!1,private:!1,access:{has:e=>"searchBoxMode"in e,get:e=>e.searchBoxMode},metadata:t},null,a),s(this,null,C,{kind:"getter",name:"searchBoxTitle",static:!1,private:!1,access:{has:e=>"searchBoxTitle"in e,get:e=>e.searchBoxTitle},metadata:t},null,a),s(this,null,A,{kind:"getter",name:"searchBoxSubtitle",static:!1,private:!1,access:{has:e=>"searchBoxSubtitle"in e,get:e=>e.searchBoxSubtitle},metadata:t},null,a),s(this,null,w,{kind:"getter",name:"searchBoxBadge",static:!1,private:!1,access:{has:e=>"searchBoxBadge"in e,get:e=>e.searchBoxBadge},metadata:t},null,a),s(this,null,z,{kind:"getter",name:"searchBoxIcon",static:!1,private:!1,access:{has:e=>"searchBoxIcon"in e,get:e=>e.searchBoxIcon},metadata:t},null,a),s(this,null,L,{kind:"getter",name:"searchBoxActions",static:!1,private:!1,access:{has:e=>"searchBoxActions"in e,get:e=>e.searchBoxActions},metadata:t},null,a),s(this,null,O,{kind:"getter",name:"shouldShowSearchInput",static:!1,private:!1,access:{has:e=>"shouldShowSearchInput"in e,get:e=>e.shouldShowSearchInput},metadata:t},null,a),s(this,null,E,{kind:"getter",name:"shouldShowCloseButton",static:!1,private:!1,access:{has:e=>"shouldShowCloseButton"in e,get:e=>e.shouldShowCloseButton},metadata:t},null,a),s(this,null,P,{kind:"getter",name:"closeButtonAction",static:!1,private:!1,access:{has:e=>"closeButtonAction"in e,get:e=>e.closeButtonAction},metadata:t},null,a),s(this,null,W,{kind:"getter",name:"shouldShowShadow",static:!1,private:!1,access:{has:e=>"shouldShowShadow"in e,get:e=>e.shouldShowShadow},metadata:t},null,a),s(this,null,D,{kind:"getter",name:"placeholder",static:!1,private:!1,access:{has:e=>"placeholder"in e,get:e=>e.placeholder},metadata:t},null,a),s(this,null,U,{kind:"getter",name:"searchBoxClass",static:!1,private:!1,access:{has:e=>"searchBoxClass"in e,get:e=>e.searchBoxClass},metadata:t},null,a),s(this,null,R,{kind:"getter",name:"ariaLabel",static:!1,private:!1,access:{has:e=>"ariaLabel"in e,get:e=>e.ariaLabel},metadata:t},null,a),s(this,null,j,{kind:"method",name:"selectSearch",static:!1,private:!1,access:{has:e=>"selectSearch"in e,get:e=>e.selectSearch},metadata:t},null,a),s(this,null,G,{kind:"method",name:"selectSearchAndFocus",static:!1,private:!1,access:{has:e=>"selectSearchAndFocus"in e,get:e=>e.selectSearchAndFocus},metadata:t},null,a),s(this,null,K,{kind:"method",name:"setSearchText",static:!1,private:!1,access:{has:e=>"setSearchText"in e,get:e=>e.setSearchText},metadata:t},null,a),s(this,null,N,{kind:"method",name:"setFocused",static:!1,private:!1,access:{has:e=>"setFocused"in e,get:e=>e.setFocused},metadata:t},null,a),s(this,null,X,{kind:"method",name:"handleBackAction",static:!1,private:!1,access:{has:e=>"handleBackAction"in e,get:e=>e.handleBackAction},metadata:t},null,a),s(this,null,Y,{kind:"method",name:"closeSearch",static:!1,private:!1,access:{has:e=>"closeSearch"in e,get:e=>e.closeSearch},metadata:t},null,a),s(this,null,H,{kind:"method",name:"clearActiveFilters",static:!1,private:!1,access:{has:e=>"clearActiveFilters"in e,get:e=>e.clearActiveFilters},metadata:t},null,a),s(this,null,V,{kind:"method",name:"resetSearchButtonState",static:!1,private:!1,access:{has:e=>"resetSearchButtonState"in e,get:e=>e.resetSearchButtonState},metadata:t},null,a),s(this,null,$,{kind:"method",name:"handleSearchAction",static:!1,private:!1,access:{has:e=>"handleSearchAction"in e,get:e=>e.handleSearchAction},metadata:t},null,a),s(this,null,q,{kind:"method",name:"openOverlayWithoutInputFocus",static:!1,private:!1,access:{has:e=>"openOverlayWithoutInputFocus"in e,get:e=>e.openOverlayWithoutInputFocus},metadata:t},null,a),s(this,null,J,{kind:"method",name:"closeSessions",static:!1,private:!1,access:{has:e=>"closeSessions"in e,get:e=>e.closeSessions},metadata:t},null,a),s(this,null,Q,{kind:"method",name:"closeExhibitors",static:!1,private:!1,access:{has:e=>"closeExhibitors"in e,get:e=>e.closeExhibitors},metadata:t},null,a),s(this,null,Z,{kind:"method",name:"resetSearchBox",static:!1,private:!1,access:{has:e=>"resetSearchBox"in e,get:e=>e.resetSearchBox},metadata:t},null,a),s(this,null,ee,{kind:"method",name:"syncWithUIState",static:!1,private:!1,access:{has:e=>"syncWithUIState"in e,get:e=>e.syncWithUIState},metadata:t},null,a),s(this,null,te,{kind:"getter",name:"actionButtonIcon",static:!1,private:!1,access:{has:e=>"actionButtonIcon"in e,get:e=>e.actionButtonIcon},metadata:t},null,a),s(this,null,se,{kind:"method",name:"clearAndSelectSearch",static:!1,private:!1,access:{has:e=>"clearAndSelectSearch"in e,get:e=>e.clearAndSelectSearch},metadata:t},null,a),s(this,null,ae,{kind:"getter",name:"backMode",static:!1,private:!1,access:{has:e=>"backMode"in e,get:e=>e.backMode},metadata:t},null,a),s(this,null,ie,{kind:"getter",name:"isMobileDetailsMode",static:!1,private:!1,access:{has:e=>"isMobileDetailsMode"in e,get:e=>e.isMobileDetailsMode},metadata:t},null,a),s(this,null,re,{kind:"getter",name:"shouldShowTitle",static:!1,private:!1,access:{has:e=>"shouldShowTitle"in e,get:e=>e.shouldShowTitle},metadata:t},null,a),s(this,null,oe,{kind:"getter",name:"searchState",static:!1,private:!1,access:{has:e=>"searchState"in e,get:e=>e.searchState},metadata:t},null,a),s(null,null,r,{kind:"field",name:"searchText",static:!1,private:!1,access:{has:e=>"searchText"in e,get:e=>e.searchText,set:(e,o)=>{e.searchText=o}},metadata:t},h,x),s(null,null,m,{kind:"field",name:"isFocused",static:!1,private:!1,access:{has:e=>"isFocused"in e,get:e=>e.isFocused,set:(e,o)=>{e.isFocused=o}},metadata:t},_,B),s(null,null,k,{kind:"field",name:"isClearMode",static:!1,private:!1,access:{has:e=>"isClearMode"in e,get:e=>e.isClearMode,set:(e,o)=>{e.isClearMode=o}},metadata:t},y,b),s(null,null,v,{kind:"field",name:"skipInputFocus",static:!1,private:!1,access:{has:e=>"skipInputFocus"in e,get:e=>e.skipInputFocus,set:(e,o)=>{e.skipInputFocus=o}},metadata:t},F,T),t&&Object.defineProperty(this,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:t})}rootStore=u(this,a);searchText=u(this,h,"");isFocused=(u(this,x),u(this,_,!1));isClearMode=(u(this,B),u(this,y,!1));skipInputFocus=(u(this,b),u(this,F,!1));constructor(t){u(this,T),this.rootStore=t}get uiState(){return this.rootStore.uiState}get searchBoxConfig(){return this.uiState.searchBoxConfig}get searchBoxMode(){return this.searchBoxConfig.mode}get searchBoxTitle(){return this.searchBoxConfig.title}get searchBoxSubtitle(){return this.searchBoxConfig.subtitle}get searchBoxBadge(){return this.searchBoxConfig.badge}get searchBoxIcon(){return this.searchBoxConfig.icon}get searchBoxActions(){return this.uiState.searchBoxActions}get shouldShowSearchInput(){return this.searchBoxMode==="search"}get shouldShowCloseButton(){const{menu:t,details:e,list:o}=this.uiState,p=S.isRebooking&&o.type==="exhibitors";return!this.shouldShowSearchInput||o.type==="sessions"||o.type==="tours"||o.type==="speakers"||o.type==="exhibitors"&&!p?!0:t||e!==null||!!this.searchText||this.isClearMode||this.isFocused}get closeButtonAction(){return!this.shouldShowSearchInput||this.searchBoxMode==="details"||this.uiState.list.type==="sessions"||this.uiState.list.type==="speakers"||this.uiState.list.type==="exhibitors"&&!S.isRebooking?"close":this.searchText?"clear":"close"}get shouldShowShadow(){const{menu:t,details:e,list:o}=this.uiState,p=o.type==="search"&&!!o.text;return!(this.rootStore.fp.alwaysShowSidebar||t||e!==null||o.type!=="search"||p||this.isFocused||this.uiState.heatmap)}get placeholder(){const{list:t,heatmapYah:e}=this.uiState;return t.type==="sessions"?n("Search sessions"):t.type==="tours"?n("Search Guided Tours"):t.type==="exhibitors"?n("Search exhibitors"):t.type==="speakers"?n("Search speakers"):le.EXPO.startsWith("lenzerheidemotorclassics")?"SUCHE":le.EXPO.startsWith("jetlag")?"Search location or artist":e?n("Find values greater than"):this.uiState.hasAppliedFilters?n("Search"):S.searchText||n("Search")}get searchBoxClass(){return{"is-details":this.searchBoxMode==="details"&&!(this.uiState.details instanceof f),"is-interface":this.searchBoxMode==="interface","has-shadow":this.shouldShowShadow,"has-subtitle":!!this.searchBoxConfig.subtitle,"has-badge":!!this.searchBoxConfig.badge,"has-icon":!!this.searchBoxConfig.icon,"is-overlay-full":this.uiState.isOverlayOpen&&this.uiState.overlaySize==="full","is-featured-exhibitor":this.uiState.isFeaturedExhibitorActive,"is-route":this.uiState.details instanceof f,"is-guided-tours":this.uiState.isGuidedToursActive,"is-overlay-scrolled":this.uiState.isOverlayScrolled,"overlay-pulse":this.uiState.kiosk&&this.uiState.inIdle&&!this.uiState.setKioskModeEnabled}}get ariaLabel(){return!this.shouldShowSearchInput||this.searchBoxMode==="details"?n("Close"):this.searchText?n("Clear search"):n("Close")}selectSearch(t){window.__resett&&window.__resett(),this.uiState.details=null;const e=ne(t||"",Object.keys(this.uiState.mapSettings).map(o=>`${o}=`));this.setSearchText(e),this.uiState.activeListIndex=-1}selectSearchAndFocus(t){this.selectSearch(t),this.setFocused(!0)}setSearchText(t){this.searchText=t,this.uiState.hasAppliedFilters?this.rootStore.moveToList():this.uiState.centerMap=!0,this.uiState.activeListIndex=t?0:-1,this.uiState.list.type!=="sessions"&&this.uiState.list.type!=="tours"&&this.uiState.list.type!=="speakers"&&this.uiState.list.type!=="exhibitors"?this.uiState.list={type:"search",text:t,focused:this.isFocused}:this.uiState.list.type==="exhibitors"&&(this.uiState.list={type:"exhibitors",text:t,focused:this.isFocused}),this.uiState.searchClearMode=this.isClearMode}setFocused(t){this.isFocused=t,this.isClearMode=!1,this.skipInputFocus=!1,this.uiState.searchFocused=t,this.uiState.searchClearMode=!1,this.uiState.desiredOverlaySize="full"}handleBackAction(){const{uiState:t}=this,{list:e}=t;if(t.desiredOverlaySize="full",this.backMode==="menu"){this.resetSearchButtonState(),i.openMenu(t);return}if(e.type==="route-planner"){this.rootStore.routePlannerStore.close(),this.rootStore.selectBookmarks(),g();return}if(e.type==="multi-point-tour"&&!t.details){i.returnToTours(t,!1),this.rootStore.fp.hidePathways();return}if(t.details){t.details=null,g();return}if(t.menu){e.type==="sessions"?t.list={type:"sessions",text:"",focused:!0}:e.type==="exhibitors"?t.list={type:"exhibitors",text:"",focused:!0}:t.list={type:"search",text:"",focused:!0},this.setFocused(!0),this.isClearMode=!0,i.closeMenu(t);return}if(e.type==="tours"&&t.details instanceof f){t.details=null;return}if(e.type==="sessions"||e.type==="tours"||e.type==="exhibitors"){if(i.closeDetails(t))return;this.clearActiveFilters(),i.returnToSearch(t,!1),this.selectSearchAndFocus();return}switch(e.type){case"filter":t.details=null;return;case"multi-point-tour":this.rootStore.fp.hidePathways(),i.closeDetails(t)?i.returnToTours(t,!1):g();return;case"category":this.rootStore.selectCategory(e.category);return;case"speakers":if(i.closeDetails(t))return;i.returnToSessions(t,!1);return;case"bookmarks":case"visited":if(i.closeDetails(t))return;this.selectSearchAndFocus();return;case ce:i.returnToSearch(t,!1),i.openMenu(t);return}i.closeDetails(t)||i.clearSearchAndFocus(this)||i.openMenu(t)}closeSearch(){const{uiState:t}=this,{list:e}=t;if(e.type==="route-planner"){this.rootStore.routePlannerStore.close(),i.returnToSearch(t,!1),this.resetSearchBox();return}if(i.closeDetails(t),i.clearListScroll(t,e.type),i.closeMultiPointTour(t),e.type==="bookmarks"){i.returnToSearch(t,!1),this.resetSearchBox();return}if(t.selectedCategory){i.returnToSearch(t,!1),this.resetSearchBox();return}if(e.type==="sessions"){this.closeSessions();return}if(e.type==="exhibitors"){if(S.isRebooking){this.searchBoxMode==="search"&&this.searchText?(this.setSearchText(""),this.isClearMode=!0,this.clearActiveFilters()):this.resetSearchBox();return}this.closeExhibitors();return}if(t.menu){i.closeMenu(t),this.resetSearchBox();return}if(this.searchBoxMode==="search"&&!t.details&&this.searchText){this.setSearchText(""),this.isClearMode=!0,this.clearActiveFilters();return}i.returnToSearch(t,!1),this.searchText="",this.resetSearchBox(),t.details=null,this.clearActiveFilters()}clearActiveFilters(){this.rootStore.searchButtonsStore.setPoiFilterId(null),this.rootStore.uiState.selectedPoiTypeFilters=[],this.rootStore.uiState.selectedCategoryFilters=[],this.rootStore.categoryFilterStore.state.selectedItems=[],this.rootStore.categoryFilterStore.state.pendingItems=[],this.rootStore.searchButtonsStore.searchShortcutState.activeParentId=null,this.rootStore.searchButtonsStore.searchShortcutState.activeChildren.clear(),this.rootStore.searchButtonsStore.searchShortcutState.isShortcutsVisible=!1,this.rootStore.urlFilterManager&&this.rootStore.urlFilterManager.isInitialized&&this.rootStore.urlFilterManager.clearAllFilters()}resetSearchButtonState(){const{uiState:t}=this;this.rootStore.searchButtonsStore.clearAllFilters(),this.rootStore.searchButtonsStore.setSubButtonId(null),this.rootStore.searchButtonsStore.hideSubButtons(),t.selectedTrack=null,this.searchText="",this.isClearMode=!1}handleSearchAction(){this.isFocused||this.setFocused(!0)}openOverlayWithoutInputFocus(){this.skipInputFocus=!0,this.isFocused=!0,this.isClearMode=!1,this.uiState.searchFocused=!0,this.uiState.searchClearMode=!1,this.uiState.desiredOverlaySize="full"}closeSessions(){this.searchText="",i.returnToSearch(this.uiState,!1),this.uiState.details=null,i.resetActiveListIndex(this.uiState),this.uiState.selectedTrack=null,this.rootStore.searchButtonsStore.setSubButtonId(null),this.rootStore.searchButtonsStore.hideSubButtons()}closeExhibitors(){this.searchText="",i.returnToSearch(this.uiState,!1),this.uiState.details=null,i.resetActiveListIndex(this.uiState)}resetSearchBox(){this.setFocused(!1),this.isClearMode=!1,this.syncWithUIState()}syncWithUIState(){this.searchText=(this.uiState.list.type==="search"||this.uiState.list.type==="exhibitors")&&this.uiState.list.text||"",this.isFocused=this.uiState.searchFocused,this.isClearMode=this.uiState.searchClearMode}get actionButtonIcon(){return this.shouldShowSearchInput?this.shouldShowCloseButton?"icon-close":"icon-search":"icon-close"}clearAndSelectSearch(){this.selectSearch(""),this.setFocused(!1)}get backMode(){const t=this.uiState.list.type;return(t==="bookmarks"||t==="visited")&&!this.uiState.details&&!this.uiState.menu||this.shouldShowSearchInput&&!this.searchText?"menu":"back"}get isMobileDetailsMode(){return window.innerWidth<he&&this.uiState.details!==null&&this.uiState.overlaySize==="full"&&!(this.uiState.details instanceof f)}get shouldShowTitle(){return!this.shouldShowSearchInput}get searchState(){return{text:this.searchText,isFocused:this.isFocused,isClearMode:this.isClearMode,mode:this.searchBoxMode,title:this.searchBoxConfig.title,subtitle:this.searchBoxConfig.subtitle,badge:this.searchBoxConfig.badge,icon:this.searchBoxConfig.icon}}}})();export default ue;
@@ -1,6 +1,6 @@
1
- import type RootStore from "./RootStore";
2
1
  import BaseFilterStore from "./BaseFilterStore";
3
- import type { FilterItem } from "./types";
2
+ import type RootStore from "./RootStore";
3
+ import { type FilterItem } from "./types";
4
4
  type DateFilter = "all" | "today" | "tomorrow" | "past";
5
5
  type TimeOfDayFilter = "all" | "morning" | "midday" | "afternoon";
6
6
  type SortOrder = "asc" | "desc";
@@ -1,4 +1,4 @@
1
- import type { ShortcutConfig, ShortcutProvider } from "./ShortcutProvider";
1
+ import { type ShortcutConfig, type ShortcutProvider } from "./ShortcutProvider";
2
2
  export declare class ShortcutRegistry {
3
3
  private providers;
4
4
  private activationOrder;
@@ -1,5 +1,5 @@
1
- import RootStore from "./RootStore";
2
1
  import { EventItem } from "./EventStore";
2
+ import RootStore from "./RootStore";
3
3
  export declare class SpeakerItem {
4
4
  readonly id: number;
5
5
  readonly externalId: string;
@@ -1,4 +1,4 @@
1
- import type { SearchSubButtonConfig } from "./types";
1
+ import { type SearchSubButtonConfig } from "./types";
2
2
  export interface SubButtonProvider {
3
3
  readonly id: string;
4
4
  createSubButtons(): SearchSubButtonConfig[];
@@ -1,5 +1,5 @@
1
- import type { SubButtonProvider } from "./SubButtonProvider";
2
- import type { SearchSubButtonConfig } from "./types";
1
+ import { type SubButtonProvider } from "./SubButtonProvider";
2
+ import { type SearchSubButtonConfig } from "./types";
3
3
  export declare class SubButtonRegistry {
4
4
  private providers;
5
5
  private cache;
@@ -1 +1 @@
1
- import{__esDecorate as e,__runInitializers as a}from"tslib";import{action as u,computed as n,observable as l}from"mobx";import D from"../tools/settings";import c from"../data/tours.json";const d=1;let j=(()=>{let o=[],h,f=[],T=[],p,m=[],y=[],_,g=[],S=[],v,E=[],L=[],I,x,A,P,w,b,k,z;return class{static{const r=typeof Symbol=="function"&&Symbol.metadata?Object.create(null):void 0;h=[l],p=[l],_=[l],v=[l],I=[u],x=[u],A=[n],P=[n],w=[n],b=[n],k=[u],z=[u],e(this,null,I,{kind:"method",name:"loadTours",static:!1,private:!1,access:{has:t=>"loadTours"in t,get:t=>t.loadTours},metadata:r},null,o),e(this,null,x,{kind:"method",name:"resetTours",static:!1,private:!1,access:{has:t=>"resetTours"in t,get:t=>t.resetTours},metadata:r},null,o),e(this,null,A,{kind:"getter",name:"tourItems",static:!1,private:!1,access:{has:t=>"tourItems"in t,get:t=>t.tourItems},metadata:r},null,o),e(this,null,P,{kind:"getter",name:"currentTour",static:!1,private:!1,access:{has:t=>"currentTour"in t,get:t=>t.currentTour},metadata:r},null,o),e(this,null,w,{kind:"getter",name:"isActive",static:!1,private:!1,access:{has:t=>"isActive"in t,get:t=>t.isActive},metadata:r},null,o),e(this,null,b,{kind:"getter",name:"tourLayers",static:!1,private:!1,access:{has:t=>"tourLayers"in t,get:t=>t.tourLayers},metadata:r},null,o),e(this,null,k,{kind:"method",name:"launchTour",static:!1,private:!1,access:{has:t=>"launchTour"in t,get:t=>t.launchTour},metadata:r},null,o),e(this,null,z,{kind:"method",name:"stopTour",static:!1,private:!1,access:{has:t=>"stopTour"in t,get:t=>t.stopTour},metadata:r},null,o),e(null,null,h,{kind:"field",name:"tours",static:!1,private:!1,access:{has:t=>"tours"in t,get:t=>t.tours,set:(t,s)=>{t.tours=s}},metadata:r},f,T),e(null,null,p,{kind:"field",name:"currentExpo",static:!1,private:!1,access:{has:t=>"currentExpo"in t,get:t=>t.currentExpo,set:(t,s)=>{t.currentExpo=s}},metadata:r},m,y),e(null,null,_,{kind:"field",name:"hasTours",static:!1,private:!1,access:{has:t=>"hasTours"in t,get:t=>t.hasTours,set:(t,s)=>{t.hasTours=s}},metadata:r},g,S),e(null,null,v,{kind:"field",name:"toursLoadError",static:!1,private:!1,access:{has:t=>"toursLoadError"in t,get:t=>t.toursLoadError,set:(t,s)=>{t.toursLoadError=s}},metadata:r},E,L),r&&Object.defineProperty(this,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:r})}rootStore=a(this,o);tours=a(this,f,[]);currentExpo=(a(this,T),a(this,m,""));hasTours=(a(this,y),a(this,g,!1));toursLoadError=(a(this,S),a(this,E,null));constructor(r){a(this,L),this.rootStore=r,this.loadTours()}loadTours(){try{if(this.currentExpo=D.EXPO||"default",this.toursLoadError=null,!this.isValidToursData(c)){this.toursLoadError="Invalid tours data format",this.resetTours();return}const r=c[this.currentExpo]||[];if(!this.validateToursStructure(r)){this.toursLoadError="Invalid tour items structure",this.resetTours();return}this.tours=r,this.hasTours=r.length>0}catch(r){console.error("Error loading tours:",r),this.toursLoadError=r instanceof Error?r.message:"Failed to load tours",this.resetTours()}}resetTours(){this.tours=[],this.hasTours=!1}isValidToursData(r){return r!==null&&typeof r=="object"&&!Array.isArray(r)}validateToursStructure(r){return Array.isArray(r)?r.every(t=>t&&typeof t=="object"&&typeof t.id=="string"&&Array.isArray(t.layers)&&t.layers.length>=d&&(t.points===void 0||Array.isArray(t.points))):!1}get tourItems(){return this.tours}getTourById(r){return this.tours.find(t=>t.id===r)}getToursByPoint(r){return this.tours.filter(t=>t.points?.includes(r))}getToursForExpo(r){return this.isValidToursData(c)?c[r]||[]:[]}get currentTour(){const{list:r}=this.rootStore.uiState;return r.type!=="multi-point-tour"||!this.isMultiPointTourList(r)?null:this.getTourById(r.tourId)||null}isMultiPointTourList(r){return r.type==="multi-point-tour"&&typeof r.tourId=="string"}get isActive(){return this.rootStore.uiState.list.type==="multi-point-tour"}get tourLayers(){const r=this.currentTour;return r?r.layers.map(t=>this.rootStore.layerStore.findLayer(t.floor)).filter(t=>t!=null):[]}getTourLayerInfo(r){const t=this.currentTour;if(t)return t.layers.find(s=>{const i=this.rootStore.layerStore.findLayer(s.floor);return i&&(i.name===r||i.description===r)})}launchTour(r,t,s){const i=this.validateTourForLaunch(r);if(i)return console.warn(`Cannot launch tour: ${i}`),!1;const M=r.layers[0].id,O=r.layers[0].floor;return r.points&&r.points.length>0?this.rootStore.fp.showPathway(M,r.points):this.rootStore.fp.showPathwayOnly(M,O),this.rootStore.uiState.setTourTitle(t),this.rootStore.uiState.setTourDescription(s),this.rootStore.uiState.setIsMultiPointTour(!0),this.rootStore.uiState.setMultiPointTourList(r.id),window.setTimeout(()=>{this.rootStore.showMap()},navigator.userAgent.toLowerCase().indexOf("android")>-1?400:50),!0}validateTourForLaunch(r){return r.layers.length<d?`Tour must have at least ${d} layer`:null}stopTour(){this.rootStore.uiState.setIsMultiPointTour(!1),this.rootStore.uiState.setPathwayOnlyMode(!1);const r=this.rootStore.uiState.list.type;(r==="tours"||r==="multi-point-tour")&&(this.rootStore.uiState.list={type:"search",text:"",focused:!1}),this.rootStore.fp.hidePathways()}}})();export default j;
1
+ import{__esDecorate as e,__runInitializers as a}from"tslib";import{action as u,computed as n,observable as l}from"mobx";import c from"../data/tours.json";import D from"../tools/settings";const d=1;let j=(()=>{let o=[],h,f=[],T=[],p,m=[],y=[],_,g=[],S=[],v,E=[],L=[],I,x,A,P,w,b,k,z;return class{static{const r=typeof Symbol=="function"&&Symbol.metadata?Object.create(null):void 0;h=[l],p=[l],_=[l],v=[l],I=[u],x=[u],A=[n],P=[n],w=[n],b=[n],k=[u],z=[u],e(this,null,I,{kind:"method",name:"loadTours",static:!1,private:!1,access:{has:t=>"loadTours"in t,get:t=>t.loadTours},metadata:r},null,o),e(this,null,x,{kind:"method",name:"resetTours",static:!1,private:!1,access:{has:t=>"resetTours"in t,get:t=>t.resetTours},metadata:r},null,o),e(this,null,A,{kind:"getter",name:"tourItems",static:!1,private:!1,access:{has:t=>"tourItems"in t,get:t=>t.tourItems},metadata:r},null,o),e(this,null,P,{kind:"getter",name:"currentTour",static:!1,private:!1,access:{has:t=>"currentTour"in t,get:t=>t.currentTour},metadata:r},null,o),e(this,null,w,{kind:"getter",name:"isActive",static:!1,private:!1,access:{has:t=>"isActive"in t,get:t=>t.isActive},metadata:r},null,o),e(this,null,b,{kind:"getter",name:"tourLayers",static:!1,private:!1,access:{has:t=>"tourLayers"in t,get:t=>t.tourLayers},metadata:r},null,o),e(this,null,k,{kind:"method",name:"launchTour",static:!1,private:!1,access:{has:t=>"launchTour"in t,get:t=>t.launchTour},metadata:r},null,o),e(this,null,z,{kind:"method",name:"stopTour",static:!1,private:!1,access:{has:t=>"stopTour"in t,get:t=>t.stopTour},metadata:r},null,o),e(null,null,h,{kind:"field",name:"tours",static:!1,private:!1,access:{has:t=>"tours"in t,get:t=>t.tours,set:(t,s)=>{t.tours=s}},metadata:r},f,T),e(null,null,p,{kind:"field",name:"currentExpo",static:!1,private:!1,access:{has:t=>"currentExpo"in t,get:t=>t.currentExpo,set:(t,s)=>{t.currentExpo=s}},metadata:r},m,y),e(null,null,_,{kind:"field",name:"hasTours",static:!1,private:!1,access:{has:t=>"hasTours"in t,get:t=>t.hasTours,set:(t,s)=>{t.hasTours=s}},metadata:r},g,S),e(null,null,v,{kind:"field",name:"toursLoadError",static:!1,private:!1,access:{has:t=>"toursLoadError"in t,get:t=>t.toursLoadError,set:(t,s)=>{t.toursLoadError=s}},metadata:r},E,L),r&&Object.defineProperty(this,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:r})}rootStore=a(this,o);tours=a(this,f,[]);currentExpo=(a(this,T),a(this,m,""));hasTours=(a(this,y),a(this,g,!1));toursLoadError=(a(this,S),a(this,E,null));constructor(r){a(this,L),this.rootStore=r,this.loadTours()}loadTours(){try{if(this.currentExpo=D.EXPO||"default",this.toursLoadError=null,!this.isValidToursData(c)){this.toursLoadError="Invalid tours data format",this.resetTours();return}const r=c[this.currentExpo]||[];if(!this.validateToursStructure(r)){this.toursLoadError="Invalid tour items structure",this.resetTours();return}this.tours=r,this.hasTours=r.length>0}catch(r){console.error("Error loading tours:",r),this.toursLoadError=r instanceof Error?r.message:"Failed to load tours",this.resetTours()}}resetTours(){this.tours=[],this.hasTours=!1}isValidToursData(r){return r!==null&&typeof r=="object"&&!Array.isArray(r)}validateToursStructure(r){return Array.isArray(r)?r.every(t=>t&&typeof t=="object"&&typeof t.id=="string"&&Array.isArray(t.layers)&&t.layers.length>=d&&(t.points===void 0||Array.isArray(t.points))):!1}get tourItems(){return this.tours}getTourById(r){return this.tours.find(t=>t.id===r)}getToursByPoint(r){return this.tours.filter(t=>t.points?.includes(r))}getToursForExpo(r){return this.isValidToursData(c)?c[r]||[]:[]}get currentTour(){const{list:r}=this.rootStore.uiState;return r.type!=="multi-point-tour"||!this.isMultiPointTourList(r)?null:this.getTourById(r.tourId)||null}isMultiPointTourList(r){return r.type==="multi-point-tour"&&typeof r.tourId=="string"}get isActive(){return this.rootStore.uiState.list.type==="multi-point-tour"}get tourLayers(){const r=this.currentTour;return r?r.layers.map(t=>this.rootStore.layerStore.findLayer(t.floor)).filter(t=>t!=null):[]}getTourLayerInfo(r){const t=this.currentTour;if(t)return t.layers.find(s=>{const i=this.rootStore.layerStore.findLayer(s.floor);return i&&(i.name===r||i.description===r)})}launchTour(r,t,s){const i=this.validateTourForLaunch(r);if(i)return console.warn(`Cannot launch tour: ${i}`),!1;const M=r.layers[0].id,O=r.layers[0].floor;return r.points&&r.points.length>0?this.rootStore.fp.showPathway(M,r.points):this.rootStore.fp.showPathwayOnly(M,O),this.rootStore.uiState.setTourTitle(t),this.rootStore.uiState.setTourDescription(s),this.rootStore.uiState.setIsMultiPointTour(!0),this.rootStore.uiState.setMultiPointTourList(r.id),window.setTimeout(()=>{this.rootStore.showMap()},navigator.userAgent.toLowerCase().indexOf("android")>-1?400:50),!0}validateTourForLaunch(r){return r.layers.length<d?`Tour must have at least ${d} layer`:null}stopTour(){this.rootStore.uiState.setIsMultiPointTour(!1),this.rootStore.uiState.setPathwayOnlyMode(!1);const r=this.rootStore.uiState.list.type;(r==="tours"||r==="multi-point-tour")&&(this.rootStore.uiState.list={type:"search",text:"",focused:!1}),this.rootStore.fp.hidePathways()}}})();export default j;
@@ -1,17 +1,17 @@
1
+ import { ReactNode } from "react";
2
+ import { Kiosk } from "../components/Kiosk/SetKiosk";
1
3
  import Rect from "../core/Rect";
2
4
  import Size from "../core/Size";
5
+ import { RawPoiType } from "../data/Data";
3
6
  import { Booth } from "./BoothStore";
4
7
  import { Category } from "./CategoryStore";
8
+ import { EventItem, Track } from "./EventStore";
5
9
  import { Exhibitor } from "./ExhibitorStore";
6
- import { RawPoiType } from "../data/Data";
10
+ import { FuzzySearchResult } from "./FuzzySearchEngineStore";
7
11
  import RootStore from "./RootStore";
8
12
  import { Route } from "./RouteStore";
9
- import { EventItem, Track } from "./EventStore";
10
13
  import { SpeakerItem } from "./SpeakerStore";
11
- import type { ListItem, ListType, MapSettings, OverlaySize, Visibility, BannerType, InterfaceAction } from "./types";
12
- import { FuzzySearchResult } from "./FuzzySearchEngineStore";
13
- import { ReactNode } from "react";
14
- import { Kiosk } from "../components/Kiosk/SetKiosk";
14
+ import type { BannerType, InterfaceAction, ListItem, ListType, MapSettings, OverlaySize, Visibility } from "./types";
15
15
  interface InterfaceMetadata {
16
16
  id: string;
17
17
  className: string;