@expofp/floorplan 3.0.0-alpha.9 → 3.0.0

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 (351) hide show
  1. package/dist/browser/Debug-Yknbb09q.js +40 -0
  2. package/dist/browser/Demo-CaOFZa6L.js +47 -0
  3. package/dist/browser/Free-DTL80JI4.js +51 -0
  4. package/dist/browser/Gallery-Du04PQQo.js +71 -0
  5. package/dist/browser/GpsLoader-Cvn6RlOm.js +140 -0
  6. package/dist/browser/KioskStore-De5ViEMC.js +225 -0
  7. package/dist/browser/Mapbox-DwX3p3Kb.js +118 -0
  8. package/dist/browser/{SetKioskMode-C3fGoJPj.js → SetKioskMode-DY8Ihzh_.js} +92 -83
  9. package/dist/browser/{ShowKiosk-D-477yKH.js → ShowKiosk-fqRB_BUN.js} +28 -19
  10. package/dist/browser/{ThreeComponent-Z1K-qX4i.js → ThreeComponent-CrAcuY6n.js} +181 -172
  11. package/dist/browser/ViewerMenuPanel-CdiEJm9h.js +77 -0
  12. package/dist/browser/boolean-editor-BCIboJVq.js +157 -0
  13. package/dist/browser/bundle.json +34 -31
  14. package/dist/browser/{client-D6zJdOh6.js → client-BU0UzF6H.js} +848 -839
  15. package/dist/browser/compat-helper.js +5 -0
  16. package/dist/browser/{data-C6uYuLvP.js → data-DU1RvfMj.js} +278 -269
  17. package/dist/browser/{debug-overlay-BcmbSeG3.js → debug-overlay-DMGwYhOT.js} +100 -91
  18. package/dist/browser/debug-ui-BZSH53uY.js +67 -0
  19. package/dist/browser/{favicon-DalyEhbd.js → favicon-ZTHZQvuM.js} +11 -2
  20. package/dist/browser/fetch-retry.umd-CFhXCSM1.js +123 -0
  21. package/dist/browser/{flex-DA2yhKLl.js → flex-D0XnC5Mw.js} +76 -67
  22. package/dist/browser/{floorplan.ready-DEdtWjzo.js → floorplan.ready-DwzYk5s3.js} +20977 -22749
  23. package/dist/browser/fonts/efp-symbols.woff +0 -0
  24. package/dist/browser/{index-DSULYUX0.js → index-BZDxL6gh.js} +46 -37
  25. package/dist/browser/{index-BAvspl75.js → index-BpZSlPvc.js} +333 -324
  26. package/dist/browser/index-BxFqdKuM.js +57 -0
  27. package/dist/browser/index-fEI_0iId.js +882 -0
  28. package/dist/browser/index-h3LFHvKr.js +92 -0
  29. package/dist/browser/index-xQ7Ip4HB.js +54 -0
  30. package/dist/browser/index.html +1 -0
  31. package/dist/browser/index.js +12495 -2
  32. package/dist/browser/jsx-runtime-SRODV826.js +40 -0
  33. package/dist/browser/locales/ar.json +56 -5
  34. package/dist/browser/locales/de.json +56 -5
  35. package/dist/browser/locales/es.json +56 -5
  36. package/dist/browser/locales/fr.json +56 -5
  37. package/dist/browser/locales/he.json +56 -5
  38. package/dist/browser/locales/it.json +56 -5
  39. package/dist/browser/locales/kk.json +56 -5
  40. package/dist/browser/locales/ko.json +56 -5
  41. package/dist/browser/locales/mn.json +56 -5
  42. package/dist/browser/locales/nl.json +56 -5
  43. package/dist/browser/locales/pl.json +57 -6
  44. package/dist/browser/locales/pt.json +55 -4
  45. package/dist/browser/locales/ru.json +57 -6
  46. package/dist/browser/locales/sv.json +56 -5
  47. package/dist/browser/locales/th.json +56 -5
  48. package/dist/browser/locales/tr.json +56 -5
  49. package/dist/browser/locales/uk.json +56 -5
  50. package/dist/browser/locales/vi.json +56 -5
  51. package/dist/browser/locales/zh.json +56 -5
  52. package/dist/browser/{main-CD9JioNt.js → main-CcaoXWR4.js} +24 -15
  53. package/dist/browser/{particles.min-DcpKrPn3.js → particles.min-Ds_4ex2r.js} +40 -31
  54. package/dist/esm/RouteCutIn.d.ts +0 -1
  55. package/dist/esm/RouteCutIn.js +1 -1
  56. package/dist/esm/_misc_to_move/manifest.d.ts +13 -0
  57. package/dist/esm/_misc_to_move/ref.d.ts +6 -0
  58. package/dist/esm/_misc_to_move/ref.js +1 -0
  59. package/dist/esm/components/Alert.d.ts +2 -0
  60. package/dist/esm/components/Alert.js +1 -1
  61. package/dist/esm/components/Badge.d.ts +3 -2
  62. package/dist/esm/components/Badge.js +1 -1
  63. package/dist/esm/components/Bookmarks.js +1 -1
  64. package/dist/esm/components/Booth/BoothOnHold.d.ts +2 -2
  65. package/dist/esm/components/Booth/BoothOnHold.js +1 -1
  66. package/dist/esm/components/Booth/BoothReserved.d.ts +2 -1
  67. package/dist/esm/components/Booth/BoothReserved.js +1 -1
  68. package/dist/esm/components/Booth/BoothWithoutExhibitor.d.ts +2 -2
  69. package/dist/esm/components/Booth/BoothWithoutExhibitor.js +1 -1
  70. package/dist/esm/components/CookieConsent.js +1 -1
  71. package/dist/esm/components/Exhibitor.js +1 -1
  72. package/dist/esm/components/Gallery/GalleryControls/GalleryControls.d.ts +2 -2
  73. package/dist/esm/components/Gallery/GalleryControls/GalleryControls.js +1 -1
  74. package/dist/esm/components/Gallery/GalleryModal/GalleryModal.d.ts +2 -2
  75. package/dist/esm/components/Gallery/GalleryModal/GalleryModal.js +1 -1
  76. package/dist/esm/components/Kiosk/KioskStore.d.ts +3 -3
  77. package/dist/esm/components/Kiosk/KioskStore.js +1 -1
  78. package/dist/esm/components/Kiosk/SetKiosk/storage.d.ts +1 -1
  79. package/dist/esm/components/Kiosk/SetKiosk/storage.js +1 -1
  80. package/dist/esm/components/Kiosk/ShowKiosk.js +1 -1
  81. package/dist/esm/components/Kiosk/integrateKiosk.js +1 -1
  82. package/dist/esm/components/Language.js +1 -1
  83. package/dist/esm/components/LanguageRow.d.ts +0 -1
  84. package/dist/esm/components/LanguageRow.js +1 -1
  85. package/dist/esm/components/Layout.js +1 -1
  86. package/dist/esm/components/List.js +1 -1
  87. package/dist/esm/components/LogoOverlay.js +1 -1
  88. package/dist/esm/components/Map/Map.d.ts +0 -23
  89. package/dist/esm/components/Map/Map.js +1 -1
  90. package/dist/esm/components/Map/booth-by-xy.js +1 -1
  91. package/dist/esm/components/Map/drawing/config/TextFitter.d.ts +1 -1
  92. package/dist/esm/components/Map/drawing/config/config-all.d.ts +2 -3
  93. package/dist/esm/components/Map/drawing/config/config-all.js +1 -1
  94. package/dist/esm/components/Map/drawing/config/config-bg.d.ts +1 -1
  95. package/dist/esm/components/Map/drawing/config/config-bg.js +1 -1
  96. package/dist/esm/components/Map/drawing/config/config-booth-badge.d.ts +9 -0
  97. package/dist/esm/components/Map/drawing/config/config-booth-badge.js +1 -0
  98. package/dist/esm/components/Map/drawing/config/config-booth-bg.d.ts +5 -5
  99. package/dist/esm/components/Map/drawing/config/config-booth-bg.js +1 -1
  100. package/dist/esm/components/Map/drawing/config/config-booth-bookmark.d.ts +5 -5
  101. package/dist/esm/components/Map/drawing/config/config-booth-bookmark.js +1 -1
  102. package/dist/esm/components/Map/drawing/config/config-booth-border.d.ts +3 -3
  103. package/dist/esm/components/Map/drawing/config/config-booth-border.js +1 -1
  104. package/dist/esm/components/Map/drawing/config/config-booth-labels-special.d.ts +6 -6
  105. package/dist/esm/components/Map/drawing/config/config-booth-labels-special.js +2 -2
  106. package/dist/esm/components/Map/drawing/config/config-booth-labels.d.ts +5 -5
  107. package/dist/esm/components/Map/drawing/config/config-booth-labels.js +1 -1
  108. package/dist/esm/components/Map/drawing/config/config-booth-scaled.d.ts +3 -3
  109. package/dist/esm/components/Map/drawing/config/config-booth-scaled.js +1 -1
  110. package/dist/esm/components/Map/drawing/config/config-booths.d.ts +2 -2
  111. package/dist/esm/components/Map/drawing/config/config-booths.js +1 -1
  112. package/dist/esm/components/Map/drawing/config/config-load-layer.d.ts +2 -2
  113. package/dist/esm/components/Map/drawing/config/config-load-layer.js +1 -1
  114. package/dist/esm/components/Map/drawing/config/config-markers.d.ts +2 -3
  115. package/dist/esm/components/Map/drawing/config/config-markers.js +1 -1
  116. package/dist/esm/components/Map/drawing/config/config-wf.d.ts +2 -5
  117. package/dist/esm/components/Map/drawing/config/config-wf.js +1 -1
  118. package/dist/esm/components/Map/drawing/config/loadBoothsImages.d.ts +2 -3
  119. package/dist/esm/components/Map/drawing/config/loadBoothsImages.js +1 -1
  120. package/dist/esm/components/Map/drawing/config/route-snapping/snapPositionToRoute.d.ts +1 -1
  121. package/dist/esm/components/Map/drawing/config/route-snapping/snapPositionToRoute.js +1 -1
  122. package/dist/esm/components/Map/drawing/config/route-snapping/splitRouteByPoint.d.ts +1 -1
  123. package/dist/esm/components/Map/drawing/config/route-snapping/splitRouteByPoint.js +1 -1
  124. package/dist/esm/components/Map/drawing/config/route-snapping/types.d.ts +1 -1
  125. package/dist/esm/components/Map/drawing/config/route-snapping/utils.d.ts +1 -1
  126. package/dist/esm/components/Map/traffic/useBuildRoute.d.ts +3 -5
  127. package/dist/esm/components/Map/traffic/useBuildRoute.js +6 -6
  128. package/dist/esm/components/Map/traffic/useManageTraffic.d.ts +3 -5
  129. package/dist/esm/components/Map/traffic/useManageTraffic.js +1 -1
  130. package/dist/esm/components/MarketMaterialList.d.ts +3 -3
  131. package/dist/esm/components/MarketMaterialList.js +1 -1
  132. package/dist/esm/components/Menu.js +1 -2
  133. package/dist/esm/components/MobileToggleButton.js +1 -1
  134. package/dist/esm/components/MultiSelectGroups.d.ts +2 -2
  135. package/dist/esm/components/MultiSelectGroups.js +1 -1
  136. package/dist/esm/components/Overlay.d.ts +2 -0
  137. package/dist/esm/components/Overlay.js +1 -1
  138. package/dist/esm/components/OverlayContainer.js +1 -1
  139. package/dist/esm/components/QrCode.d.ts +46 -0
  140. package/dist/esm/components/QrCode.js +1 -0
  141. package/dist/esm/components/RebookingNotes.d.ts +2 -2
  142. package/dist/esm/components/RebookingNotes.js +1 -1
  143. package/dist/esm/components/RebookingRadioGroup.d.ts +2 -2
  144. package/dist/esm/components/RebookingRadioGroup.js +1 -1
  145. package/dist/esm/components/RoutePlanner/RoutePlanner.d.ts +4 -0
  146. package/dist/esm/components/RoutePlanner/RoutePlanner.js +1 -0
  147. package/dist/esm/components/RoutePlanner/RoutePlannerHeader.d.ts +4 -0
  148. package/dist/esm/components/RoutePlanner/RoutePlannerHeader.js +1 -0
  149. package/dist/esm/components/RoutePlanner/RoutePlannerStartPoint.d.ts +9 -0
  150. package/dist/esm/components/RoutePlanner/RoutePlannerStartPoint.js +1 -0
  151. package/dist/esm/components/RoutePlanner/RoutePlannerStopItem.d.ts +9 -0
  152. package/dist/esm/components/RoutePlanner/RoutePlannerStopItem.js +1 -0
  153. package/dist/esm/components/RouteQR.d.ts +2 -2
  154. package/dist/esm/components/RouteQR.js +1 -1
  155. package/dist/esm/components/Schedule.js +1 -1
  156. package/dist/esm/components/SearchBox.js +1 -1
  157. package/dist/esm/components/Sessions.js +1 -1
  158. package/dist/esm/components/Share.d.ts +2 -2
  159. package/dist/esm/components/Share.js +1 -1
  160. package/dist/esm/components/SidebarActions.d.ts +3 -0
  161. package/dist/esm/components/SidebarActions.js +1 -1
  162. package/dist/esm/components/SpeakersFiltersModal.js +1 -1
  163. package/dist/esm/components/ViewerMenuPanel.d.ts +5 -0
  164. package/dist/esm/components/ViewerMenuPanel.js +1 -0
  165. package/dist/esm/components/Wayfinding.d.ts +2 -2
  166. package/dist/esm/components/Wayfinding.js +1 -1
  167. package/dist/esm/components/WayfindingTemplate.d.ts +2 -2
  168. package/dist/esm/components/WayfindingTemplate.js +1 -1
  169. package/dist/esm/components/gps/GpsPermissionRequest.d.ts +4 -2
  170. package/dist/esm/components/gps/GpsPermissionRequest.js +1 -1
  171. package/dist/esm/components/index.d.ts +1 -3
  172. package/dist/esm/components/index.js +1 -1
  173. package/dist/esm/constants.d.ts +7 -0
  174. package/dist/esm/constants.js +1 -1
  175. package/dist/esm/data/tours.json +114 -0
  176. package/dist/esm/floorplan.loader.d.ts +5 -0
  177. package/dist/esm/floorplan.loader.js +1 -1
  178. package/dist/esm/floorplan.ready.d.ts +6 -3
  179. package/dist/esm/floorplan.ready.js +1 -1
  180. package/dist/esm/index.d.ts +0 -2
  181. package/dist/esm/index.js +1 -1
  182. package/dist/esm/load.d.ts +4 -1
  183. package/dist/esm/load.js +2 -2
  184. package/dist/esm/offline/offlineManager.js +1 -1
  185. package/dist/esm/renderer/HandlerRegistry.d.ts +18 -0
  186. package/dist/esm/renderer/HandlerRegistry.js +1 -0
  187. package/dist/esm/renderer/RendererService.d.ts +26 -0
  188. package/dist/esm/renderer/RendererService.js +1 -0
  189. package/dist/esm/renderer/engine-core/animation.d.ts +7 -0
  190. package/dist/esm/renderer/engine-core/animation.js +1 -0
  191. package/dist/esm/{components/Map/drawing/config → renderer}/engine-core/canvases.d.ts +1 -1
  192. package/dist/esm/renderer/engine-core/canvases.js +1 -0
  193. package/dist/esm/renderer/engine-core/fonts.js +1 -0
  194. package/dist/esm/renderer/engine-core/types.js +1 -0
  195. package/dist/esm/{components/Map/drawing/config/engine-core → renderer}/index.d.ts +10 -10
  196. package/dist/esm/renderer/index.js +1 -0
  197. package/dist/esm/services/routing.js +1 -1
  198. package/dist/esm/store/BookmarksStore.d.ts +12 -0
  199. package/dist/esm/store/BookmarksStore.js +2 -0
  200. package/dist/esm/store/FuzzySearchEngineStore.d.ts +7 -3
  201. package/dist/esm/store/FuzzySearchEngineStore.js +1 -1
  202. package/dist/esm/store/LayerStore.d.ts +1 -0
  203. package/dist/esm/store/LayerStore.js +1 -1
  204. package/dist/esm/store/RootStore.d.ts +10 -10
  205. package/dist/esm/store/RootStore.js +1 -1
  206. package/dist/esm/store/RoutePlannerStore.d.ts +58 -0
  207. package/dist/esm/store/RoutePlannerStore.js +1 -0
  208. package/dist/esm/store/RouteStore.d.ts +1 -1
  209. package/dist/esm/store/RouteStore.js +1 -1
  210. package/dist/esm/store/SearchStore.d.ts +2 -0
  211. package/dist/esm/store/SearchStore.js +1 -1
  212. package/dist/esm/store/ToursStore.js +1 -1
  213. package/dist/esm/store/UIState.d.ts +10 -7
  214. package/dist/esm/store/UIState.js +1 -1
  215. package/dist/esm/store/init/index.js +1 -1
  216. package/dist/esm/store/init/init-bookmarks.d.ts +7 -0
  217. package/dist/esm/store/init/init-bookmarks.js +1 -0
  218. package/dist/esm/store/init/init-events.d.ts +1 -1
  219. package/dist/esm/store/init/init-events.js +1 -1
  220. package/dist/esm/store/init/init-exhibitors.d.ts +1 -1
  221. package/dist/esm/store/init/init-exhibitors.js +1 -1
  222. package/dist/esm/store/init/init-layers.js +1 -1
  223. package/dist/esm/store/init/init-speakers.d.ts +1 -1
  224. package/dist/esm/store/init/init-speakers.js +1 -1
  225. package/dist/esm/store/search-buttons/SearchButtonsStore.d.ts +1 -1
  226. package/dist/esm/store/search-buttons/SearchButtonsStore.js +1 -1
  227. package/dist/esm/store/types.d.ts +11 -3
  228. package/dist/esm/tools/base-runtime-url.js +1 -1
  229. package/dist/esm/tools/sentry.js +1 -1
  230. package/dist/esm/tools/telemetry.d.ts +35 -0
  231. package/dist/esm/tools/telemetry.js +1 -0
  232. package/dist/esm/tools/track-event.d.ts +3 -1
  233. package/dist/esm/tools/track-event.js +1 -1
  234. package/dist/esm/utils/buildOptimizedRoute.d.ts +11 -0
  235. package/dist/esm/utils/buildOptimizedRoute.js +1 -0
  236. package/dist/esm/utils/geometry.d.ts +2 -0
  237. package/dist/esm/utils/geometry.js +1 -0
  238. package/dist/esm/utils/i18n.d.ts +6 -4
  239. package/dist/esm/utils/i18n.js +1 -1
  240. package/dist/esm/utils/loadCustomCss.d.ts +1 -1
  241. package/dist/esm/utils/loadCustomCss.js +1 -1
  242. package/dist/esm/utils/mapEntity.js +1 -1
  243. package/dist/esm/utils/math.d.ts +7 -0
  244. package/dist/esm/utils/math.js +1 -0
  245. package/dist/esm/utils/shortenName.js +1 -1
  246. package/dist/esm/utils/use-shadow.d.ts +1 -1
  247. package/dist/esm/utils/use-shadow.js +1 -1
  248. package/dist/esm/utils/useRenderTarget.js +1 -1
  249. package/dist/esm/wayfinding/_PLAN-public-api.d.ts +220 -0
  250. package/dist/esm/wayfinding/_PLAN-public-api.js +1 -0
  251. package/dist/esm/{utils/wayfinding.d.ts → wayfinding/__integration__/legacy/legacyWayfinding.d.ts} +5 -15
  252. package/dist/esm/wayfinding/__integration__/legacy/legacyWayfinding.js +1 -0
  253. package/dist/esm/wayfinding/__tests__/helpers.d.ts +21 -0
  254. package/dist/esm/wayfinding/__tests__/helpers.js +1 -0
  255. package/dist/esm/wayfinding/adapters/boothToWaypoint.d.ts +12 -0
  256. package/dist/esm/wayfinding/adapters/boothToWaypoint.js +1 -0
  257. package/dist/esm/wayfinding/adapters/graphDataSource.d.ts +3 -0
  258. package/dist/esm/wayfinding/adapters/graphDataSource.js +1 -0
  259. package/dist/esm/wayfinding/graph/buildGraph.d.ts +3 -0
  260. package/dist/esm/wayfinding/graph/buildGraph.js +1 -0
  261. package/dist/esm/wayfinding/graph/buildNGraph.d.ts +9 -0
  262. package/dist/esm/wayfinding/graph/buildNGraph.js +1 -0
  263. package/dist/esm/wayfinding/graph/constants.d.ts +3 -0
  264. package/dist/esm/wayfinding/graph/constants.js +1 -0
  265. package/dist/esm/wayfinding/graph/findShortestPath.d.ts +14 -0
  266. package/dist/esm/wayfinding/graph/findShortestPath.js +1 -0
  267. package/dist/esm/wayfinding/graph/graphCache.d.ts +6 -0
  268. package/dist/esm/wayfinding/graph/graphCache.js +1 -0
  269. package/dist/esm/wayfinding/graph/graphHelpers.d.ts +8 -0
  270. package/dist/esm/wayfinding/graph/graphHelpers.js +1 -0
  271. package/dist/esm/wayfinding/graph/linkCost.d.ts +4 -0
  272. package/dist/esm/wayfinding/graph/linkCost.js +1 -0
  273. package/dist/esm/wayfinding/graph/pathfinder/aStarPathFinder.d.ts +3 -0
  274. package/dist/esm/wayfinding/graph/pathfinder/aStarPathFinder.js +1 -0
  275. package/dist/esm/wayfinding/graph/pathfinder/parseNodeId.d.ts +9 -0
  276. package/dist/esm/wayfinding/graph/pathfinder/parseNodeId.js +1 -0
  277. package/dist/esm/wayfinding/index.d.ts +18 -0
  278. package/dist/esm/wayfinding/index.js +1 -0
  279. package/dist/esm/wayfinding/rendering/computeTransitionPoints.d.ts +31 -0
  280. package/dist/esm/wayfinding/rendering/computeTransitionPoints.js +1 -0
  281. package/dist/esm/wayfinding/rendering/normalizeRouteDirection.d.ts +19 -0
  282. package/dist/esm/wayfinding/rendering/normalizeRouteDirection.js +1 -0
  283. package/dist/esm/wayfinding/rendering/routeGeometry.d.ts +16 -0
  284. package/dist/esm/wayfinding/rendering/routeGeometry.js +1 -0
  285. package/dist/esm/wayfinding/routing/buildMultiPointRoute.d.ts +11 -0
  286. package/dist/esm/wayfinding/routing/buildMultiPointRoute.js +1 -0
  287. package/dist/esm/wayfinding/routing/buildRoute.d.ts +9 -0
  288. package/dist/esm/wayfinding/routing/buildRoute.js +1 -0
  289. package/dist/esm/wayfinding/routing/findNearestGraphPoint.d.ts +21 -0
  290. package/dist/esm/wayfinding/routing/findNearestGraphPoint.js +1 -0
  291. package/dist/esm/wayfinding/routing/getGraphLines.d.ts +14 -0
  292. package/dist/esm/wayfinding/routing/getGraphLines.js +1 -0
  293. package/dist/esm/wayfinding/routing/getRouteLength.d.ts +3 -0
  294. package/dist/esm/wayfinding/routing/getRouteLength.js +1 -0
  295. package/dist/esm/wayfinding/routing/routeResult.d.ts +4 -0
  296. package/dist/esm/wayfinding/routing/routeResult.js +1 -0
  297. package/dist/esm/wayfinding/types.d.ts +76 -0
  298. package/dist/esm/wayfinding/types.js +1 -0
  299. package/package.json +4 -8
  300. package/dist/browser/Debug-k5RKtjZM.js +0 -31
  301. package/dist/browser/Demo-CgMWCXus.js +0 -38
  302. package/dist/browser/Free-D7jT727E.js +0 -42
  303. package/dist/browser/Gallery-xjcSyY62.js +0 -279
  304. package/dist/browser/GpsLoader-_4iMtlKj.js +0 -131
  305. package/dist/browser/KioskStore-P8qIruSD.js +0 -216
  306. package/dist/browser/Mapbox-C7QZjYtQ.js +0 -109
  307. package/dist/browser/boolean-editor-C56suuE-.js +0 -148
  308. package/dist/browser/debug-ui-xTxa_Css.js +0 -58
  309. package/dist/browser/fetch-retry.umd-D12eSIuK.js +0 -114
  310. package/dist/browser/index-04R_J8Na.js +0 -45
  311. package/dist/browser/index-1HPoYB-N.js +0 -12526
  312. package/dist/browser/index-D1Nh_Rku.js +0 -48
  313. package/dist/browser/index-DmIJrF5Z.js +0 -83
  314. package/dist/browser/jsx-runtime-jIxVPx5o.js +0 -31
  315. package/dist/browser/sw.js +0 -2
  316. package/dist/esm/components/BoothRow.d.ts +0 -8
  317. package/dist/esm/components/BoothRow.js +0 -1
  318. package/dist/esm/components/ExhibitorRow.d.ts +0 -9
  319. package/dist/esm/components/ExhibitorRow.js +0 -1
  320. package/dist/esm/components/Map/drawing/config/engine-core/animation.d.ts +0 -3
  321. package/dist/esm/components/Map/drawing/config/engine-core/animation.js +0 -1
  322. package/dist/esm/components/Map/drawing/config/engine-core/canvases.js +0 -1
  323. package/dist/esm/components/Map/drawing/config/engine-core/fonts.js +0 -1
  324. package/dist/esm/components/Map/drawing/config/engine-core/index.js +0 -1
  325. package/dist/esm/components/Map/drawing/config/engine-core/renderer.d.ts +0 -4
  326. package/dist/esm/components/Map/drawing/config/engine-core/renderer.js +0 -1
  327. package/dist/esm/components/ScheduleRow.d.ts +0 -8
  328. package/dist/esm/components/ScheduleRow.js +0 -1
  329. package/dist/esm/expofp-debug.d.ts +0 -5
  330. package/dist/esm/expofp-debug.js +0 -1
  331. package/dist/esm/offline/sw.d.ts +0 -2
  332. package/dist/esm/offline/sw.js +0 -1
  333. package/dist/esm/store/LanguageStore.d.ts +0 -19
  334. package/dist/esm/store/LanguageStore.js +0 -1
  335. package/dist/esm/store/init/init-language.d.ts +0 -3
  336. package/dist/esm/store/init/init-language.js +0 -1
  337. package/dist/esm/utils/toRadians.d.ts +0 -3
  338. package/dist/esm/utils/toRadians.js +0 -1
  339. package/dist/esm/utils/wayfinding.js +0 -1
  340. package/dist/stats.html +0 -4950
  341. /package/dist/esm/{components/Map/drawing/config/engine-core/types.js → _misc_to_move/manifest.js} +0 -0
  342. /package/dist/esm/{components/Map/drawing/config → renderer}/engine-core/defs.d.ts +0 -0
  343. /package/dist/esm/{components/Map/drawing/config → renderer}/engine-core/defs.js +0 -0
  344. /package/dist/esm/{components/Map/drawing/config → renderer}/engine-core/fonts.d.ts +0 -0
  345. /package/dist/esm/{components/Map/drawing/config → renderer}/engine-core/settings.d.ts +0 -0
  346. /package/dist/esm/{components/Map/drawing/config → renderer}/engine-core/settings.js +0 -0
  347. /package/dist/esm/{components/Map/drawing/config → renderer}/engine-core/types.d.ts +0 -0
  348. /package/dist/esm/{components/Map/drawing/config → renderer}/engine-core/update-def.d.ts +0 -0
  349. /package/dist/esm/{components/Map/drawing/config → renderer}/engine-core/update-def.js +0 -0
  350. /package/dist/esm/{components/Map/drawing/config → renderer}/engine-core/utils/rotation.d.ts +0 -0
  351. /package/dist/esm/{components/Map/drawing/config → renderer}/engine-core/utils/rotation.js +0 -0
@@ -1,279 +0,0 @@
1
- import { j as l } from "./jsx-runtime-jIxVPx5o.js";
2
- import { r as h, u as j, o as k } from "./index-1HPoYB-N.js";
3
- import { y as _, r as O } from "./index-04R_J8Na.js";
4
- import { ax as z, ay as L, az as R, aA as G, aB as T, aC as B, aD as D, aE as M } from "./floorplan.ready-DEdtWjzo.js";
5
- const P = ({
6
- count: e,
7
- onFullscreen: c
8
- }) => /* @__PURE__ */ l.jsxs(l.Fragment, { children: [
9
- /* @__PURE__ */ l.jsxs("div", { className: "gallery__badge gallery__badge-count", children: [
10
- /* @__PURE__ */ l.jsx("i", { className: "icon-image" }),
11
- /* @__PURE__ */ l.jsx("span", { children: e })
12
- ] }),
13
- /* @__PURE__ */ l.jsx("div", { className: "gallery__badge gallery__badge-fullscreen", onClick: c, children: /* @__PURE__ */ l.jsx("i", { className: "icon-maximize" }) })
14
- ] });
15
- class A {
16
- constructor() {
17
- this.cache = [], this.load = (c) => new Promise((o, d) => {
18
- c || o(null);
19
- var t = this.cache.filter((g) => g.src === c)[0];
20
- t ? o(t) : (t = new Image(), t.crossOrigin = "anonymous", t.src = c, t.onload = () => {
21
- this.cache.length > 10 && this.cache.shift(), this.cache.push(t), o(t);
22
- }, t.onerror = (g) => {
23
- d(g);
24
- });
25
- });
26
- }
27
- }
28
- const S = new A(), I = ({
29
- url: e,
30
- setHeight: c = !1,
31
- position: o = "center",
32
- isFullscreen: d = !1,
33
- leading: t = !1,
34
- fillMode: g = "contain",
35
- onImageLoadHeightUpdate: m
36
- }) => {
37
- const u = h.useRef(null), f = h.useRef(null);
38
- h.useEffect(() => {
39
- !u.current || !f.current || !t || x(e);
40
- }, [e]);
41
- const x = async (p) => {
42
- if (c)
43
- try {
44
- const v = await S.load(p);
45
- f.current.style.height = v.height * f.current.clientWidth / v.width + "px", m && m();
46
- } catch {
47
- }
48
- }, y = {
49
- backgroundImage: `url("${e}")`,
50
- backgroundSize: g,
51
- backgroundRepeat: "no-repeat",
52
- transition: t ? "all 0.5s ease 0s" : "none",
53
- backgroundPosition: o
54
- };
55
- return /* @__PURE__ */ l.jsx("div", { ref: f, style: {
56
- width: "100%",
57
- height: t && !d ? "250px" : "100%"
58
- }, children: /* @__PURE__ */ l.jsx("div", { ref: u, className: "gallery__img", style: y }) });
59
- }, N = ({
60
- url: e,
61
- position: c = "center",
62
- leading: o = !1,
63
- setHeight: d = !1,
64
- fillMode: t,
65
- onClick: g,
66
- onImageLoadHeightUpdate: m
67
- }) => /* @__PURE__ */ l.jsx("div", { className: "gallery__item", onClick: g, children: /* @__PURE__ */ l.jsx(I, { position: c, fillMode: t, url: e, leading: o, setHeight: d, onImageLoadHeightUpdate: m }) });
68
- function q(e, c, o, d) {
69
- return e.params.createElements && Object.keys(d).forEach((t) => {
70
- if (!o[t] && o.auto === !0) {
71
- let g = z(e.el, `.${d[t]}`)[0];
72
- g || (g = L("div", d[t]), g.className = d[t], e.el.append(g)), o[t] = g, c[t] = g;
73
- }
74
- }), o;
75
- }
76
- function F({
77
- swiper: e,
78
- extendParams: c,
79
- on: o,
80
- emit: d
81
- }) {
82
- c({
83
- navigation: {
84
- nextEl: null,
85
- prevEl: null,
86
- hideOnClick: !1,
87
- disabledClass: "swiper-button-disabled",
88
- hiddenClass: "swiper-button-hidden",
89
- lockClass: "swiper-button-lock",
90
- navigationDisabledClass: "swiper-navigation-disabled"
91
- }
92
- }), e.navigation = {
93
- nextEl: null,
94
- prevEl: null
95
- };
96
- const t = (a) => (Array.isArray(a) || (a = [a].filter((s) => !!s)), a);
97
- function g(a) {
98
- let s;
99
- return a && typeof a == "string" && e.isElement && (s = e.el.shadowRoot.querySelector(a), s) ? s : (a && (typeof a == "string" && (s = [...document.querySelectorAll(a)]), e.params.uniqueNavElements && typeof a == "string" && s.length > 1 && e.el.querySelectorAll(a).length === 1 && (s = e.el.querySelector(a))), a && !s ? a : s);
100
- }
101
- function m(a, s) {
102
- const i = e.params.navigation;
103
- a = t(a), a.forEach((n) => {
104
- n && (n.classList[s ? "add" : "remove"](...i.disabledClass.split(" ")), n.tagName === "BUTTON" && (n.disabled = s), e.params.watchOverflow && e.enabled && n.classList[e.isLocked ? "add" : "remove"](i.lockClass));
105
- });
106
- }
107
- function u() {
108
- const {
109
- nextEl: a,
110
- prevEl: s
111
- } = e.navigation;
112
- if (e.params.loop) {
113
- m(s, !1), m(a, !1);
114
- return;
115
- }
116
- m(s, e.isBeginning && !e.params.rewind), m(a, e.isEnd && !e.params.rewind);
117
- }
118
- function f(a) {
119
- a.preventDefault(), !(e.isBeginning && !e.params.loop && !e.params.rewind) && (e.slidePrev(), d("navigationPrev"));
120
- }
121
- function x(a) {
122
- a.preventDefault(), !(e.isEnd && !e.params.loop && !e.params.rewind) && (e.slideNext(), d("navigationNext"));
123
- }
124
- function y() {
125
- const a = e.params.navigation;
126
- if (e.params.navigation = q(e, e.originalParams.navigation, e.params.navigation, {
127
- nextEl: "swiper-button-next",
128
- prevEl: "swiper-button-prev"
129
- }), !(a.nextEl || a.prevEl)) return;
130
- let s = g(a.nextEl), i = g(a.prevEl);
131
- Object.assign(e.navigation, {
132
- nextEl: s,
133
- prevEl: i
134
- }), s = t(s), i = t(i);
135
- const n = (r, E) => {
136
- r && r.addEventListener("click", E === "next" ? x : f), !e.enabled && r && r.classList.add(...a.lockClass.split(" "));
137
- };
138
- s.forEach((r) => n(r, "next")), i.forEach((r) => n(r, "prev"));
139
- }
140
- function p() {
141
- let {
142
- nextEl: a,
143
- prevEl: s
144
- } = e.navigation;
145
- a = t(a), s = t(s);
146
- const i = (n, r) => {
147
- n.removeEventListener("click", r === "next" ? x : f), n.classList.remove(...e.params.navigation.disabledClass.split(" "));
148
- };
149
- a.forEach((n) => i(n, "next")), s.forEach((n) => i(n, "prev"));
150
- }
151
- o("init", () => {
152
- e.params.navigation.enabled === !1 ? b() : (y(), u());
153
- }), o("toEdge fromEdge lock unlock", () => {
154
- u();
155
- }), o("destroy", () => {
156
- p();
157
- }), o("enable disable", () => {
158
- let {
159
- nextEl: a,
160
- prevEl: s
161
- } = e.navigation;
162
- a = t(a), s = t(s), [...a, ...s].filter((i) => !!i).forEach((i) => i.classList[e.enabled ? "remove" : "add"](e.params.navigation.lockClass));
163
- }), o("click", (a, s) => {
164
- let {
165
- nextEl: i,
166
- prevEl: n
167
- } = e.navigation;
168
- i = t(i), n = t(n);
169
- const r = s.target;
170
- if (e.params.navigation.hideOnClick && !n.includes(r) && !i.includes(r)) {
171
- if (e.pagination && e.params.pagination && e.params.pagination.clickable && (e.pagination.el === r || e.pagination.el.contains(r))) return;
172
- let E;
173
- i.length ? E = i[0].classList.contains(e.params.navigation.hiddenClass) : n.length && (E = n[0].classList.contains(e.params.navigation.hiddenClass)), d(E === !0 ? "navigationShow" : "navigationHide"), [...i, ...n].filter((C) => !!C).forEach((C) => C.classList.toggle(e.params.navigation.hiddenClass));
174
- }
175
- });
176
- const v = () => {
177
- e.el.classList.remove(...e.params.navigation.navigationDisabledClass.split(" ")), y(), u();
178
- }, b = () => {
179
- e.el.classList.add(...e.params.navigation.navigationDisabledClass.split(" ")), p();
180
- };
181
- Object.assign(e.navigation, {
182
- enable: v,
183
- disable: b,
184
- update: u,
185
- init: y,
186
- destroy: p
187
- });
188
- }
189
- const U = ({
190
- zoomIn: e,
191
- zoomOut: c,
192
- onClose: o
193
- }) => /* @__PURE__ */ l.jsxs("div", { className: "gallery-slider__controls", children: [
194
- /* @__PURE__ */ l.jsx("button", { className: "gallery-slider__btn close", title: j("Close"), "aria-label": j("Close"), onClick: o, children: /* @__PURE__ */ l.jsx("i", { className: "icon-close", "aria-hidden": "true" }) }),
195
- /* @__PURE__ */ l.jsx("button", { className: "gallery-slider__btn zoom-in", title: j("Zoom In"), "aria-label": j("Zoom In"), onClick: () => e(), children: /* @__PURE__ */ l.jsx("i", { className: "icon-zoom-in", "aria-hidden": "true" }) }),
196
- /* @__PURE__ */ l.jsx("button", { className: "gallery-slider__btn zoom-out", title: j("Zoom Out"), "aria-label": j("Zoom Out"), onClick: () => c(), children: /* @__PURE__ */ l.jsx("i", { className: "icon-zoom-out", "aria-hidden": "true" }) })
197
- ] }), Z = ({
198
- swiperRef: e,
199
- leading: c,
200
- url: o
201
- }) => (R(({
202
- state: d,
203
- instance: t
204
- }) => {
205
- e.current && (e.current.allowTouchMove = d.scale === 1, d.scale === 1 && d.positionX !== 0 && d.positionY !== 0 && t.setCenter());
206
- }), /* @__PURE__ */ l.jsx(G, { wrapperClass: "gallery-slider__zoom", contentClass: "gallery-slider__zoom-content", children: /* @__PURE__ */ l.jsx(I, { isFullscreen: !0, leading: c, url: o }) })), H = (e) => {
207
- const {
208
- images: c,
209
- leading: o,
210
- initialSlideIndex: d,
211
- onClose: t,
212
- className: g
213
- } = e, m = T(), [u, f] = h.useState(d), [x, y] = h.useState([]), p = h.useRef(null), v = h.useRef(null), b = h.useRef(null), a = {
214
- initialSlide: d,
215
- draggable: !1,
216
- modules: [F],
217
- spaceBetween: 50,
218
- slidesPerView: 1,
219
- navigation: {
220
- prevEl: v.current,
221
- nextEl: b.current
222
- },
223
- grabCursor: !0
224
- }, s = /* @__PURE__ */ l.jsx("div", { className: _("gallery-modal", g), children: /* @__PURE__ */ l.jsxs(B, { onSwiper: (i) => p.current = i, className: "gallery-slider", onSlideChange: (i) => {
225
- var n;
226
- f(i.activeIndex), (n = x[i.previousIndex]) == null || n.resetTransform();
227
- }, ...a, children: [
228
- x.length ? /* @__PURE__ */ l.jsx(U, { onClose: t, zoomIn: x[u].zoomIn, zoomOut: x[u].zoomOut }) : null,
229
- c.length > 1 && /* @__PURE__ */ l.jsx("button", { ref: b, title: j("Next slide"), "aria-label": "˃", className: "gallery-slider__btn next", children: /* @__PURE__ */ l.jsx("i", { className: "icon-chevron-right" }) }),
230
- c.length > 1 && /* @__PURE__ */ l.jsx("button", { ref: v, title: j("Prev slide"), "aria-label": "˂", className: "gallery-slider__btn prev", children: /* @__PURE__ */ l.jsx("i", { className: "icon-chevron-left" }) }),
231
- c.map((i, n) => /* @__PURE__ */ l.jsx(D, { children: /* @__PURE__ */ l.jsx(M, { initialScale: 1, alignmentAnimation: {
232
- sizeX: 0,
233
- sizeY: 0
234
- }, onInit: (r) => {
235
- y((E) => [...E, r]);
236
- }, children: /* @__PURE__ */ l.jsx(Z, { leading: o, swiperRef: p, url: i }) }) }, i + n))
237
- ] }) });
238
- return m ? O.createPortal(s, m) : null;
239
- }, V = (e) => {
240
- const {
241
- images: c,
242
- leading: o = !1,
243
- onImageLoadHeightUpdate: d,
244
- onOpenGallery: t,
245
- onCloseGallery: g,
246
- className: m
247
- } = e, [u, f] = h.useState(!1), [x, y] = h.useState(0), [p, v] = h.useState(!1), b = (n) => {
248
- y(n), f(!0), t && t();
249
- }, a = () => {
250
- f(!1), g && g();
251
- }, s = (n) => {
252
- let r = n.split("/");
253
- const E = r[r.length - 1];
254
- return E.indexOf("original-") === -1 && (r[r.length - 1] = "original-" + E), r.join("/");
255
- }, i = (n, r) => r ? s(n) : n;
256
- return h.useEffect(() => {
257
- (async () => {
258
- if (c.length > 0) {
259
- const r = i(c[0], !0);
260
- try {
261
- await S.load(r), v(!0);
262
- } catch {
263
- v(!1);
264
- }
265
- }
266
- })();
267
- }, [c]), /* @__PURE__ */ l.jsxs(k.Fragment, { children: [
268
- /* @__PURE__ */ l.jsxs("div", { className: _("gallery", {
269
- "gallery-leading": o
270
- }, m), children: [
271
- /* @__PURE__ */ l.jsx("div", { className: "gallery__wrapper", children: o ? /* @__PURE__ */ l.jsx(N, { url: c[0], leading: o, setHeight: !0, fillMode: "contain", onClick: () => b(0), onImageLoadHeightUpdate: d }) : c.map((n, r) => /* @__PURE__ */ l.jsx(N, { url: n, position: "top", fillMode: "cover", onClick: () => b(r), onImageLoadHeightUpdate: d }, n + r)) }),
272
- !o && /* @__PURE__ */ l.jsx(P, { onFullscreen: () => b(0), count: c.length })
273
- ] }),
274
- u && /* @__PURE__ */ l.jsx(H, { className: m, images: c.map((n) => i(n, p)), leading: o, initialSlideIndex: x, onClose: a })
275
- ] });
276
- };
277
- export {
278
- V as default
279
- };
@@ -1,131 +0,0 @@
1
- import { j as C } from "./jsx-runtime-jIxVPx5o.js";
2
- import { r, l as A, u as O, R as T } from "./index-1HPoYB-N.js";
3
- import { af as M, ag as k, ah as I, s as p, ai as L, e as y } from "./floorplan.ready-DEdtWjzo.js";
4
- import "./index-04R_J8Na.js";
5
- const S = 3;
6
- function b(a) {
7
- return Math.floor(a);
8
- }
9
- function P(a, o) {
10
- return M(a.lat, a.lng, o.lat, o.lng) >= S ? !0 : a.heading !== o.heading;
11
- }
12
- const _ = 120, H = 3e3, N = 360;
13
- function q(a) {
14
- const o = r.useRef(null), n = r.useRef(null), s = r.useRef(0), i = r.useRef(null), l = r.useRef(!1), t = r.useRef(null), u = r.useRef(!1), c = r.useRef(null), d = (e) => a(e), m = (e) => {
15
- const f = Date.now();
16
- if (f - s.current < _) return;
17
- const h = i.current;
18
- if (!t.current) {
19
- t.current = e, s.current = f, i.current = e, d(e);
20
- return;
21
- }
22
- const E = M(t.current.lat, t.current.lng, e.lat, e.lng);
23
- let g;
24
- u.current ? E <= S ? (u.current = !1, t.current = e, g = {
25
- ...t.current,
26
- heading: e.heading
27
- }) : (t.current = e, g = e) : E >= S ? (u.current = !0, t.current = e, c.current = null, g = e) : (c.current == null && (c.current = f), f - c.current > H && (t.current = e), g = {
28
- ...t.current,
29
- heading: e.heading
30
- }), !(h && !P(h, g)) && (s.current = f, i.current = g, d(g));
31
- }, R = r.useCallback((e) => {
32
- var E;
33
- const f = (E = e.webkitCompassHeading) != null ? E : e.alpha != null ? N - e.alpha : null;
34
- if (f == null) return;
35
- const h = b(f);
36
- n.current !== h && (n.current = h, i.current && m({
37
- ...i.current,
38
- heading: h
39
- }));
40
- }, [a]);
41
- return {
42
- startGeolocation: () => {
43
- o.current == null && (o.current = navigator.geolocation.watchPosition((e) => {
44
- m({
45
- lat: e.coords.latitude,
46
- lng: e.coords.longitude,
47
- heading: n.current
48
- });
49
- }, (e) => A.warn("Geolocation watch error:", e), {
50
- enableHighAccuracy: !0,
51
- maximumAge: 0
52
- }));
53
- },
54
- startOrientation: () => {
55
- l.current || (l.current = !0, window.addEventListener("deviceorientation", R, !0));
56
- },
57
- stopGeolocation: () => {
58
- o.current != null && (navigator.geolocation.clearWatch(o.current), o.current = null), t.current = null, u.current = !1;
59
- },
60
- stopOrientation: () => {
61
- l.current = !1, window.removeEventListener("deviceorientation", R, !0);
62
- }
63
- };
64
- }
65
- function D({
66
- isOpen: a,
67
- onAllow: o,
68
- onCancel: n
69
- }) {
70
- return a ? /* @__PURE__ */ C.jsx(k, { title: O("Show your position on the map"), acceptText: O("Allow compass access"), rejectText: O("Not now"), onClickAccept: o, onClickReject: n, children: O("To display your current position and orient the map around you, we’ll ask for permission to access your device orientation") }) : null;
71
- }
72
- function j({
73
- onPositionUpdate: a,
74
- onAllowCompass: o,
75
- onRejectCompass: n,
76
- orientationStorageKey: s = "compass-permission-granted",
77
- requestCompass: i = !0,
78
- requestCompassAllowed: l = !0
79
- }) {
80
- const {
81
- startOrientation: t,
82
- startGeolocation: u,
83
- stopOrientation: c,
84
- stopGeolocation: d
85
- } = q(a), [m, R] = r.useState(!1), [G, w] = r.useState(!1);
86
- r.useEffect(() => (navigator.geolocation.getCurrentPosition(() => {
87
- R(!0), u();
88
- }, (e) => {
89
- A.warn("Geolocation error:", e), R(!1);
90
- }), () => {
91
- c(), d();
92
- }), [u, d, c]);
93
- const v = async () => {
94
- typeof DeviceOrientationEvent < "u" && typeof DeviceOrientationEvent.requestPermission == "function" && await DeviceOrientationEvent.requestPermission() !== "granted" || (localStorage.setItem(s, "true"), t(), w(!1), o == null || o());
95
- }, x = r.useCallback(() => {
96
- localStorage.setItem(s, "false"), w(!1), n == null || n();
97
- }, [n]);
98
- return r.useEffect(() => {
99
- if (!m || !l || typeof navigator > "u" || !I) return;
100
- const e = localStorage.getItem(s);
101
- if (!e || i) {
102
- w(!0);
103
- return;
104
- }
105
- e === "true" && v();
106
- }, [m, i, l, v]), /* @__PURE__ */ C.jsx(D, { isOpen: G, onAllow: v, onCancel: x });
107
- }
108
- function z({
109
- requestCompassAllowed: a
110
- }) {
111
- const [o, n] = r.useState(!1), s = r.useCallback(({
112
- lat: t,
113
- lng: u,
114
- angle: c,
115
- heading: d
116
- }) => {
117
- p.routeStore.selectCurrentPosition(new L(0, 0, 0, c || d, t, u), !1);
118
- }, []), i = r.useCallback(() => {
119
- p.routeStore.requestCompass = void 0, n(!1);
120
- }, [n]), l = r.useCallback(() => {
121
- p.routeStore.requestCompass = void 0, n(!1);
122
- }, [n]);
123
- return y(() => p.uiState.hideCookieConsent, (t) => {
124
- n(t);
125
- }), y(() => p.routeStore.requestCompass, (t) => {
126
- n(t);
127
- }), /* @__PURE__ */ C.jsx(j, { requestCompass: o, requestCompassAllowed: a, onRejectCompass: i, onAllowCompass: l, orientationStorageKey: T, onPositionUpdate: s });
128
- }
129
- export {
130
- z as default
131
- };
@@ -1,216 +0,0 @@
1
- import { s as o, ao as h, ap as b, aq as v, ar as f, as as O, at as C, au as g, av as c, aw as d } from "./floorplan.ready-DEdtWjzo.js";
2
- import "./jsx-runtime-jIxVPx5o.js";
3
- import "./index-1HPoYB-N.js";
4
- import "./index-04R_J8Na.js";
5
- function P(n) {
6
- const e = n.viewport.canvasToSvg({
7
- x: 0,
8
- y: 0
9
- }), s = n.viewport.canvasToSvg({
10
- x: n.canvas.clientWidth,
11
- y: 0
12
- }), r = n.viewport.canvasToSvg({
13
- x: 0,
14
- y: n.canvas.clientHeight
15
- }), p = n.viewport.canvasToSvg({
16
- x: n.canvas.clientWidth,
17
- y: n.canvas.clientHeight
18
- }), i = Math.min(e.x, s.x, r.x, p.x), l = Math.max(e.x, s.x, r.x, p.x), u = Math.min(e.y, s.y, r.y, p.y), y = Math.max(e.y, s.y, r.y, p.y);
19
- return {
20
- x: i,
21
- y: u,
22
- width: l - i,
23
- height: y - u,
24
- left: i,
25
- right: l,
26
- top: y,
27
- bottom: u,
28
- center: {
29
- x: (i + l) / 2,
30
- y: (u + y) / 2
31
- }
32
- };
33
- }
34
- function D(n, e) {
35
- const s = P(n);
36
- return e.x >= s.left && e.x <= s.right && e.y >= s.bottom && e.y <= s.top;
37
- }
38
- var t, S, k;
39
- function m(n, e, s, r) {
40
- s && Object.defineProperty(n, e, { enumerable: s.enumerable, configurable: s.configurable, writable: s.writable, value: s.initializer ? s.initializer.call(r) : void 0 });
41
- }
42
- function a(n, e, s, r, p) {
43
- var i = {};
44
- return Object.keys(r).forEach(function(l) {
45
- i[l] = r[l];
46
- }), i.enumerable = !!i.enumerable, i.configurable = !!i.configurable, ("value" in i || i.initializer) && (i.writable = !0), i = s.slice().reverse().reduce(function(l, u) {
47
- return u(n, e, l) || l;
48
- }, i), p && i.initializer !== void 0 && (i.value = i.initializer ? i.initializer.call(p) : void 0, i.initializer = void 0), i.initializer === void 0 ? (Object.defineProperty(n, e, i), null) : i;
49
- }
50
- let w = (t = class {
51
- constructor() {
52
- m(this, "savedKiosk", S, this), m(this, "statusMessages", k, this), this.statusMessageTimer = 0, this.initialPtScale = void 0;
53
- }
54
- get kiosk() {
55
- return o.uiState.kioskData;
56
- }
57
- setKiosk(e) {
58
- o.uiState.setKioskData(e);
59
- }
60
- get renderer() {
61
- return o.renderer;
62
- }
63
- getCameraState() {
64
- const e = this.renderer.controls.getCameraState();
65
- return {
66
- mapInitialPtScale: this.initialPtScale,
67
- mapPtScale: e == null ? void 0 : e.ptScale,
68
- mapCenterX: e == null ? void 0 : e.center.x,
69
- mapCenterY: e == null ? void 0 : e.center.y,
70
- mapRollDegrees: e == null ? void 0 : e.roll,
71
- mapPitch: e == null ? void 0 : e.pitch
72
- };
73
- }
74
- get hasUnsavedChanges() {
75
- const e = this.savedKiosk, s = h(this.kiosk);
76
- if (!s || !e)
77
- return !!s != !!e;
78
- const r = Object.keys(e), p = Object.keys(s);
79
- if (r.length !== p.length)
80
- return !0;
81
- for (const i of r)
82
- if (!(i in s) || e[i] !== s[i])
83
- return !0;
84
- return !1;
85
- }
86
- addStatusMessage(e) {
87
- this.statusMessages = [{
88
- ...e,
89
- id: Date.now()
90
- }], this.startCleanupMessages();
91
- }
92
- clearStatusMessages() {
93
- this.statusMessages = [];
94
- }
95
- startCleanupMessages() {
96
- clearTimeout(this.statusMessageTimer), this.statusMessageTimer = window.setTimeout(() => this.clearStatusMessages(), 1e3);
97
- }
98
- async resetCamera() {
99
- const {
100
- z: e,
101
- mapRollDegrees: s,
102
- mapInitialPtScale: r,
103
- mapPtScale: p,
104
- mapCenterX: i,
105
- mapCenterY: l
106
- } = this.kiosk || {};
107
- await this.renderer.controls.resetCamera({
108
- pan: !0,
109
- zoom: !0,
110
- roll: !0,
111
- pitch: !0
112
- }, !0), b(() => {
113
- Number.isFinite(r) && Number.isFinite(p) && p > 0 && this.renderer.controls.zoomBy(r / p, !0), Number.isFinite(i) && Number.isFinite(l) && this.renderer.controls.panTo(i, l, !0), Number.isFinite(s) && this.renderer.controls.rollTo(s, !0), e && o.fp.activateFloor({
114
- name: e
115
- });
116
- });
117
- }
118
- restoreData() {
119
- const e = v();
120
- return e && (this.setKiosk(e), this.savedKiosk = e, o.uiState.kiosk = !0, this.resetCamera()), e;
121
- }
122
- handleSetupReady() {
123
- this.restoreData(), o.uiState.kiosk = !0, o.uiState.hideFreeOrDemo = !0, o.uiState.setForceDimm(!0), o.searchStore.setSearchText(""), o.searchStore.setFocused(!1);
124
- }
125
- handleClose() {
126
- this.setKiosk(null), o.uiState.setForceDimm(!1), o.uiState.enableSetKioskMode(!1), o.searchStore.closeSearch(), this.resetCamera();
127
- }
128
- handleDelete() {
129
- f(), this.setKiosk(null), o.uiState.resetMapSettings(), o.uiState.resetUIScale(), this.resetCamera(), this.addStatusMessage({
130
- variant: "success",
131
- title: "Deleted"
132
- });
133
- }
134
- handleSave() {
135
- const e = h(this.kiosk), s = this.getCameraState(), r = {
136
- ...e,
137
- ...s
138
- };
139
- if (!D(this.renderer, r)) {
140
- this.addStatusMessage({
141
- variant: "error",
142
- title: "Kiosk not visible"
143
- });
144
- return;
145
- }
146
- this.setKiosk(r), O(r), o.uiState.setUIScale(r.uiScale, !0), this.addStatusMessage({
147
- variant: "success",
148
- title: "Saved"
149
- }), this.savedKiosk = r;
150
- }
151
- delayChange(e) {
152
- requestAnimationFrame(() => e == null ? void 0 : e());
153
- }
154
- handleChange(e) {
155
- const s = h(this.kiosk);
156
- s && (Number.isFinite(e.angle) && this.setKiosk({
157
- ...s,
158
- heading: e.angle
159
- }), Number.isFinite(e.scale) && (this.setKiosk({
160
- ...s,
161
- uiScale: e.scale
162
- }), this.delayChange(() => o.uiState.setUIScale(e.scale, !1))), Number.isFinite(e.percent) && this.setKiosk({
163
- ...s,
164
- iconSizePercent: e.percent
165
- }));
166
- }
167
- setInitialPtScale(e) {
168
- if (this.initialPtScale)
169
- return;
170
- this.initialPtScale = e;
171
- const s = h(this.kiosk);
172
- s && this.setKiosk({
173
- ...s,
174
- mapInitialPtScale: e
175
- });
176
- }
177
- handleClick({
178
- point: e
179
- }) {
180
- var l;
181
- const s = h(this.kiosk), r = o.fp.getFloors(), p = C() ? (l = r.find((u) => u.active)) == null ? void 0 : l.name : null, i = o.uiState.uiScale;
182
- this.setKiosk({
183
- ...s,
184
- x: e.x,
185
- y: e.y,
186
- z: p,
187
- uiScale: (s == null ? void 0 : s.uiScale) || i,
188
- heading: (s == null ? void 0 : s.heading) || 0,
189
- iconSizePercent: (s == null ? void 0 : s.iconSizePercent) || 100,
190
- ...this.getCameraState()
191
- });
192
- }
193
- handleNavigationChange() {
194
- const e = h(this.kiosk);
195
- e && this.setKiosk({
196
- ...e,
197
- ...this.getCameraState()
198
- });
199
- }
200
- }, a(t.prototype, "kiosk", [g], Object.getOwnPropertyDescriptor(t.prototype, "kiosk"), t.prototype), a(t.prototype, "setKiosk", [c], Object.getOwnPropertyDescriptor(t.prototype, "setKiosk"), t.prototype), a(t.prototype, "renderer", [g], Object.getOwnPropertyDescriptor(t.prototype, "renderer"), t.prototype), S = a(t.prototype, "savedKiosk", [d], {
201
- configurable: !0,
202
- enumerable: !0,
203
- writable: !0,
204
- initializer: null
205
- }), a(t.prototype, "hasUnsavedChanges", [g], Object.getOwnPropertyDescriptor(t.prototype, "hasUnsavedChanges"), t.prototype), k = a(t.prototype, "statusMessages", [d], {
206
- configurable: !0,
207
- enumerable: !0,
208
- writable: !0,
209
- initializer: function() {
210
- return [];
211
- }
212
- }), a(t.prototype, "addStatusMessage", [c], Object.getOwnPropertyDescriptor(t.prototype, "addStatusMessage"), t.prototype), a(t.prototype, "clearStatusMessages", [c], Object.getOwnPropertyDescriptor(t.prototype, "clearStatusMessages"), t.prototype), a(t.prototype, "startCleanupMessages", [c], Object.getOwnPropertyDescriptor(t.prototype, "startCleanupMessages"), t.prototype), a(t.prototype, "resetCamera", [c], Object.getOwnPropertyDescriptor(t.prototype, "resetCamera"), t.prototype), a(t.prototype, "restoreData", [c], Object.getOwnPropertyDescriptor(t.prototype, "restoreData"), t.prototype), a(t.prototype, "handleSetupReady", [c], Object.getOwnPropertyDescriptor(t.prototype, "handleSetupReady"), t.prototype), a(t.prototype, "handleClose", [c], Object.getOwnPropertyDescriptor(t.prototype, "handleClose"), t.prototype), a(t.prototype, "handleDelete", [c], Object.getOwnPropertyDescriptor(t.prototype, "handleDelete"), t.prototype), a(t.prototype, "handleSave", [c], Object.getOwnPropertyDescriptor(t.prototype, "handleSave"), t.prototype), a(t.prototype, "handleChange", [c], Object.getOwnPropertyDescriptor(t.prototype, "handleChange"), t.prototype), a(t.prototype, "setInitialPtScale", [c], Object.getOwnPropertyDescriptor(t.prototype, "setInitialPtScale"), t.prototype), a(t.prototype, "handleClick", [c], Object.getOwnPropertyDescriptor(t.prototype, "handleClick"), t.prototype), a(t.prototype, "handleNavigationChange", [c], Object.getOwnPropertyDescriptor(t.prototype, "handleNavigationChange"), t.prototype), t);
213
- const F = new w();
214
- export {
215
- F as k
216
- };