@expofp/floorplan 3.11.12 → 3.12.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 (195) hide show
  1. package/dist/browser/{Button-CdChKHNd.js → Button-C5CmZ0so.js} +6 -6
  2. package/dist/browser/CookieConsent-kl_B6sH5.js +38 -0
  3. package/dist/browser/{Debug-BQJRkSVw.js → Debug-DymHiO2Z.js} +14 -14
  4. package/dist/browser/{Demo-Dh5hQ00u.js → Demo-5tRIgVJF.js} +14 -14
  5. package/dist/browser/{Free-Be0wdt8h.js → Free-hYQaAEbK.js} +16 -16
  6. package/dist/browser/{Gallery-DsC-3InH.js → Gallery-D10tiZuW.js} +24 -24
  7. package/dist/browser/{GpsLoader-l-DhiN5_.js → GpsLoader-CNkUVJdS.js} +51 -50
  8. package/dist/browser/{KioskStore-hBGigttj.js → KioskStore-2WAOxGM0.js} +31 -31
  9. package/dist/browser/{MaplibreAdapter-B2PgQxAb.js → MaplibreAdapter-B_tNIXx4.js} +2360 -2331
  10. package/dist/browser/{ModalContainer-DngQzOVE.js → ModalContainer-CckyeoUG.js} +13 -13
  11. package/dist/browser/{PermissionNotice-Bstp1Ig2.js → PermissionNotice-qetBrmIY.js} +7 -7
  12. package/dist/browser/{SetKioskMode-BXTIENxU.js → SetKioskMode-BOjaqczc.js} +9 -9
  13. package/dist/browser/ShowKiosk-CcQHeM8K.js +33 -0
  14. package/dist/browser/{TouchHand-CZ4-CE4e.js → TouchHand-DKpxmOwz.js} +5 -5
  15. package/dist/browser/{ViewerMenuPanel-Dc7XYnXW.js → ViewerMenuPanel-HULfvF54.js} +25 -25
  16. package/dist/browser/{add-debug-secret-listener-DOVFjqJo.js → add-debug-secret-listener-BTGIVZFY.js} +1 -1
  17. package/dist/browser/{boolean-editor-B-S4WhPP.js → boolean-editor-oT7I3D0U.js} +10 -10
  18. package/dist/browser/{bootIntercom-D41iCVYM.js → bootIntercom-YnsJPGCs.js} +3 -3
  19. package/dist/browser/{booth-by-xy-S_lLb4ur.js → booth-by-xy-DTknn14w.js} +292 -295
  20. package/dist/browser/bundle.json +78 -63
  21. package/dist/browser/{classnames-BeH2kA4o.js → classnames-VfuHc9uB.js} +2 -2
  22. package/dist/browser/{client-Be_UxAZT.js → client-Bevofhdz.js} +5 -5
  23. package/dist/browser/{components-RZNETvKi.js → components-COUCtdev.js} +1369 -1316
  24. package/dist/browser/{debug-overlay-DjwfpG69.js → debug-overlay-BLN24Eyb.js} +415 -415
  25. package/dist/browser/{debug-ui-D_afzMrh.js → debug-ui-BT7Ddvoj.js} +7 -7
  26. package/dist/browser/{dist-CZz9piI4.js → dist-CWBtHMZR.js} +6 -6
  27. package/dist/browser/{dist-B-m8ZFBo.js → dist-CtKSG8GG.js} +4 -4
  28. package/dist/browser/{dist-DKu24Nie.js → dist-saTnlhyc.js} +7 -7
  29. package/dist/browser/{browser-pQxW93uF.js → efp-debug-init-CYoM0s-a.js} +61 -14
  30. package/dist/browser/enum-editor-vF4eKelT.js +34 -0
  31. package/dist/browser/{es5-DPnfG3EX.js → es5-COzmRHZr.js} +2 -2
  32. package/dist/browser/{event-not-found-CE2zhFPJ.js → event-not-found-BZkFh-P9.js} +1 -1
  33. package/dist/browser/{exports-BtXbxSeU.js → exports-BsqJX0o4.js} +1 -1
  34. package/dist/browser/{favicon-B7xwIKyS.js → favicon-BBgsGFil.js} +1 -1
  35. package/dist/browser/{fetch-retry.umd-BiAebF_i.js → fetch-retry.umd-BFTNSvNa.js} +2 -2
  36. package/dist/browser/{flex-DGirEfRz.js → flex-DnOM12q-.js} +6 -6
  37. package/dist/browser/{floorplan.loader-DSx2rwZS.js → floorplan.loader-DuVsbJsr.js} +890 -902
  38. package/dist/browser/floorplan.ready-B2SvQNh9.js +1326 -0
  39. package/dist/browser/{fuse-BuZwVNBr.js → fuse-Ddn6vCOL.js} +2 -2
  40. package/dist/browser/i18n-D9dsV3GV.js +8659 -0
  41. package/dist/browser/index.js +49 -117
  42. package/dist/browser/{index.module-BktNOlw2.js → index.module-CFTe1PiT.js} +23 -23
  43. package/dist/browser/integrateKiosk-vlZ9-8EP.js +28 -0
  44. package/dist/browser/{is-webview-DxtfBbGj.js → is-webview-SfodrdWn.js} +1 -1
  45. package/dist/browser/{jsx-runtime-DftMjMlZ.js → jsx-runtime-DEIf9CUU.js} +2 -2
  46. package/dist/browser/{lib-_QD5dt19.js → lib-CCkkeprZ.js} +5 -5
  47. package/dist/browser/loadImage-C356B0zk.js +58 -0
  48. package/dist/browser/{logDeviceInfo-CiCKGxKy.js → logDeviceInfo-UnfHYhqR.js} +9 -9
  49. package/dist/browser/{main-C6h73Uc5.js → main-JnTe8DvY.js} +1 -1
  50. package/dist/browser/mobx-DPek3UBx.js +24 -0
  51. package/dist/browser/optional-boolean-editor-HEZXOpAy.js +20 -0
  52. package/dist/browser/optional-enum-editor-DpN8qtqv.js +34 -0
  53. package/dist/browser/optional-string-editor-iR5VHFAR.js +30 -0
  54. package/dist/browser/{particles.min-CiLQfUCo.js → particles.min-BWlVGdrr.js} +2 -2
  55. package/dist/browser/{prop-types-8E5fCOgQ.js → prop-types-DA-Iew4C.js} +2 -2
  56. package/dist/browser/{react-B9lmaQYI.js → react-C02q0n7M.js} +2 -2
  57. package/dist/browser/{react-dom-CPWfZdj5.js → react-dom-BV1hX9nO.js} +4 -4
  58. package/dist/browser/reset-all-settings-BQgeIRam.js +190 -0
  59. package/dist/browser/{rolldown-runtime-CJax_ib9.js → rolldown-runtime-DYSU24gn.js} +1 -1
  60. package/dist/browser/{enum-editor-BtYkUhft.js → select-D0S5iMvJ.js} +261 -283
  61. package/dist/browser/{settings-BufKqYwI.js → settings-Dw78gtQ_.js} +3 -3
  62. package/dist/browser/{settings-item-D3AzjjoO.js → settings-item-BSR8Iz1R.js} +7 -7
  63. package/dist/browser/{store-DGdGzsa_.js → store-DxRBdgZM.js} +7325 -7643
  64. package/dist/browser/string-editor-BwtRnquZ.js +30 -0
  65. package/dist/browser/text-field-D5x33kIn.js +88 -0
  66. package/dist/browser/{theme-DvIMSzdB.js → theme-uaffdJE1.js} +9 -9
  67. package/dist/browser/ui-jO3fquPn.js +43 -0
  68. package/dist/browser/{useRenderTarget-hqd7cVeW.js → useRenderTarget-NdsPPF5u.js} +5 -5
  69. package/dist/esm/components/Booth/Booth.js +1 -1
  70. package/dist/esm/components/EntityListRow.js +1 -1
  71. package/dist/esm/components/Exhibitor.js +1 -1
  72. package/dist/esm/components/Kiosk/ShowKiosk.js +1 -1
  73. package/dist/esm/components/LanguageRowContainer.d.ts +1 -0
  74. package/dist/esm/components/Layout.d.ts +2 -1
  75. package/dist/esm/components/Layout.js +1 -1
  76. package/dist/esm/components/LogoOverlay.js +1 -1
  77. package/dist/esm/components/Map/Map.js +1 -1
  78. package/dist/esm/components/Map/drawing/config/config-bg.d.ts +1 -1
  79. package/dist/esm/components/Map/drawing/config/config-booth-badge.js +1 -1
  80. package/dist/esm/components/Map/drawing/config/config-booth-bg.d.ts +1 -1
  81. package/dist/esm/components/Map/drawing/config/config-booth-bg.js +1 -1
  82. package/dist/esm/components/Map/drawing/config/config-load-layer.js +1 -1
  83. package/dist/esm/components/Map/drawing/config/loadBoothsImages.js +1 -1
  84. package/dist/esm/components/Maplibre/MaplibreAdapter.js +1 -1
  85. package/dist/esm/components/Maplibre/MaplibreWrapper.js +1 -1
  86. package/dist/esm/components/Maplibre/utils/resolve-map-style.d.ts +15 -0
  87. package/dist/esm/components/Maplibre/utils/resolve-map-style.js +1 -0
  88. package/dist/esm/components/Menu.d.ts +3 -2
  89. package/dist/esm/components/Menu.js +1 -1
  90. package/dist/esm/components/OverlayContainer.d.ts +2 -1
  91. package/dist/esm/components/OverlayContainer.js +1 -1
  92. package/dist/esm/components/Ws.js +1 -1
  93. package/dist/esm/constants.d.ts +7 -13
  94. package/dist/esm/constants.js +1 -1
  95. package/dist/esm/data/fp-payloads.d.ts +27 -0
  96. package/dist/esm/data/fp-payloads.js +1 -0
  97. package/dist/esm/data/fpGeo.js +1 -1
  98. package/dist/esm/data/index.d.ts +8 -2
  99. package/dist/esm/data/index.js +1 -1
  100. package/dist/esm/data/svg.d.ts +4 -1
  101. package/dist/esm/data/svg.js +1 -1
  102. package/dist/esm/floorplan.loader.d.ts +13 -4
  103. package/dist/esm/floorplan.loader.js +1 -1
  104. package/dist/esm/floorplan.ready.d.ts +8 -0
  105. package/dist/esm/floorplan.ready.js +1 -1
  106. package/dist/esm/index.d.ts +0 -1
  107. package/dist/esm/index.js +1 -1
  108. package/dist/esm/intercom/shouldLoad.d.ts +2 -2
  109. package/dist/esm/intercom/shouldLoad.js +1 -1
  110. package/dist/esm/load-dev.d.ts +44 -0
  111. package/dist/esm/load-dev.js +1 -0
  112. package/dist/esm/load.d.ts +3 -3
  113. package/dist/esm/load.js +3 -3
  114. package/dist/esm/renderer/engine-core/fonts.js +1 -1
  115. package/dist/esm/services/URLFilterManager.d.ts +15 -0
  116. package/dist/esm/services/URLFilterManager.js +1 -1
  117. package/dist/esm/services/multi-slug.d.ts +20 -0
  118. package/dist/esm/services/multi-slug.js +1 -0
  119. package/dist/esm/services/url-dispatch.d.ts +24 -0
  120. package/dist/esm/services/url-dispatch.js +1 -0
  121. package/dist/esm/services/url-sync.d.ts +36 -0
  122. package/dist/esm/services/url-sync.js +1 -0
  123. package/dist/esm/store/BoothStore.d.ts +2 -1
  124. package/dist/esm/store/ExhibitorStore.d.ts +3 -2
  125. package/dist/esm/store/ExhibitorStore.js +1 -1
  126. package/dist/esm/store/LayerStore.js +1 -1
  127. package/dist/esm/store/MaplibreStore.js +1 -1
  128. package/dist/esm/store/PoiTypeStore.d.ts +1 -1
  129. package/dist/esm/store/SearchStore.js +1 -1
  130. package/dist/esm/store/UIState.d.ts +1 -5
  131. package/dist/esm/store/UIState.js +1 -1
  132. package/dist/esm/store/init/init-bookmarks.d.ts +2 -0
  133. package/dist/esm/store/init/init-booths.js +1 -1
  134. package/dist/esm/store/init/init-categories.js +1 -1
  135. package/dist/esm/store/init/init-events.js +1 -1
  136. package/dist/esm/store/init/init-exhibitors.js +1 -1
  137. package/dist/esm/store/init/init-layers.js +1 -1
  138. package/dist/esm/store/types.d.ts +2 -1
  139. package/dist/esm/tools/event-not-found.d.ts +4 -3
  140. package/dist/esm/tools/gtag.d.ts +3 -2
  141. package/dist/esm/tools/gtag.js +1 -1
  142. package/dist/esm/tools/handleDebugMode.d.ts +17 -0
  143. package/dist/esm/tools/handleDebugMode.js +1 -1
  144. package/dist/esm/tools/loaders.d.ts +0 -2
  145. package/dist/esm/tools/loaders.js +1 -1
  146. package/dist/esm/tools/rebookingUrl.js +1 -1
  147. package/dist/esm/tools/reset.js +1 -1
  148. package/dist/esm/tools/settings.js +1 -1
  149. package/dist/esm/tools/track-event.js +1 -1
  150. package/dist/esm/types/drawing.types.d.ts +18 -0
  151. package/dist/esm/types.d.ts +52 -38
  152. package/dist/esm/utils/areLayersEnabled.js +1 -1
  153. package/dist/esm/utils/camera-map-settings.d.ts +20 -0
  154. package/dist/esm/utils/camera-map-settings.js +1 -0
  155. package/dist/esm/utils/customCommands.js +1 -1
  156. package/dist/esm/utils/getLogoUrl.d.ts +8 -1
  157. package/dist/esm/utils/getLogoUrl.js +1 -1
  158. package/dist/esm/utils/heatmap-enabled.d.ts +13 -0
  159. package/dist/esm/utils/heatmap-enabled.js +1 -0
  160. package/dist/esm/utils/i18n.js +1 -1
  161. package/dist/esm/utils/imageloader.js +1 -1
  162. package/dist/esm/utils/is-debug.d.ts +0 -8
  163. package/dist/esm/utils/is-debug.js +1 -1
  164. package/dist/esm/utils/legacy-storage-keys.d.ts +16 -0
  165. package/dist/esm/utils/legacy-storage-keys.js +1 -0
  166. package/dist/esm/utils/loadCustomCss.d.ts +2 -2
  167. package/dist/esm/utils/mapEntity.d.ts +1 -0
  168. package/dist/esm/utils/preview-exhibitor.d.ts +1 -1
  169. package/dist/esm/wayfinding/adapters/graphDataSource.d.ts +1 -1
  170. package/dist/esm/wayfinding/adapters/graphDataSource.js +1 -1
  171. package/package.json +8 -5
  172. package/dist/browser/CookieConsent-DmWcbyRQ.js +0 -38
  173. package/dist/browser/ShowKiosk-CpIQKRDF.js +0 -28
  174. package/dist/browser/efp-debug-init-B-EZE_S2.js +0 -42
  175. package/dist/browser/floorplan.ready-CX4L0Qyc.js +0 -1406
  176. package/dist/browser/i18n-BqlnpLSm.js +0 -3942
  177. package/dist/browser/loadImage-CvnSDOL0.js +0 -121
  178. package/dist/browser/mobx-71cpvuRe.js +0 -24
  179. package/dist/browser/reset-all-settings-CAVnp-HU.js +0 -141
  180. package/dist/browser/string-editor-BEBEF1X7.js +0 -108
  181. package/dist/browser/ui-DIQ3vheI.js +0 -43
  182. package/dist/esm/_NEW_types.d.ts +0 -6
  183. package/dist/esm/_NEW_types.js +0 -1
  184. package/dist/esm/_misc_to_move/manifest.d.ts +0 -14
  185. package/dist/esm/_misc_to_move/ref.d.ts +0 -6
  186. package/dist/esm/_misc_to_move/ref.js +0 -1
  187. package/dist/esm/data/Flags.d.ts +0 -23
  188. package/dist/esm/data/Flags.js +0 -1
  189. package/dist/esm/data/validate-data.d.ts +0 -3
  190. package/dist/esm/data/validate-data.js +0 -1
  191. package/dist/esm/services/routing.d.ts +0 -7
  192. package/dist/esm/services/routing.js +0 -1
  193. package/dist/esm/utils/mergeExhibitors.d.ts +0 -3
  194. package/dist/esm/utils/mergeExhibitors.js +0 -1
  195. /package/dist/esm/{_misc_to_move/manifest.js → types/drawing.types.js} +0 -0
@@ -0,0 +1,1326 @@
1
+ (function() {
2
+ try {
3
+ var e = typeof window < "u" ? window : typeof global < "u" ? global : typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : {};
4
+ e.SENTRY_RELEASE = { id: "3.12.0" };
5
+ var t = new e.Error().stack;
6
+ t && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[t] = "d8782436-9bc7-4640-8d54-3160fb407343", e._sentryDebugIdIdentifier = "sentry-dbid-d8782436-9bc7-4640-8d54-3160fb407343");
7
+ } catch {}
8
+ })();
9
+ import { r as e } from "./rolldown-runtime-DYSU24gn.js";
10
+ import { $ as t, At as n, C as r, Ct as i, Dt as a, Et as o, G as s, H as c, It as l, K as u, Mt as d, Nt as f, Ot as ee, Pt as p, St as te, Tt as ne, U as re, V as m, X as ie, _t as ae, bt as oe, ct as se, dt as ce, f as le, ft as ue, gt as de, ht as fe, jt as pe, kt as me, l as h, lt as g, mt as he, n as ge, nt as _e, o as ve, r as ye, rt as be, st as xe, v as Se, vt as Ce, wt as we, xt as Te, y as _, yt as Ee } from "./i18n-D9dsV3GV.js";
11
+ import { s as De } from "./efp-debug-init-CYoM0s-a.js";
12
+ import { t as Oe } from "./react-C02q0n7M.js";
13
+ import { t as ke } from "./jsx-runtime-DEIf9CUU.js";
14
+ import { r as v } from "./loadImage-C356B0zk.js";
15
+ import { a as Ae, i as y, n as je, o as Me, r as Ne, t as Pe } from "./floorplan.loader-DuVsbJsr.js";
16
+ import { _ as Fe, et as Ie, i as Le, mt as b, n as Re, v as ze, x as Be } from "./exports-BsqJX0o4.js";
17
+ import { t as Ve } from "./client-Bevofhdz.js";
18
+ import { C as He, F as x, H as Ue, K as We, M as Ge, P as Ke, S, V as qe, W as Je, X as Ye, Z as Xe, at as Ze, b as Qe, c as C, ct as $e, dt as et, ft as tt, g as nt, hn as rt, it as w, lt as T, mn as it, ot as at, q as E, qt as ot, rn as D, s as O, sn as k, st, x as ct, y as lt, z as A } from "./store-DxRBdgZM.js";
19
+ import { n as ut, t as dt } from "./integrateKiosk-vlZ9-8EP.js";
20
+ import { n as ft, t as pt } from "./components-COUCtdev.js";
21
+ //#region ../../node_modules/.pnpm/@sentry+browser@10.62.0/node_modules/@sentry/browser/build/npm/esm/prod/report-dialog.js
22
+ function mt(e = {}) {
23
+ let t = y.document, n = (t == null ? void 0 : t.head) || (t == null ? void 0 : t.body);
24
+ if (!n) {
25
+ Ne && b.error("[showReportDialog] Global document not defined");
26
+ return;
27
+ }
28
+ let r = ze(), i = Fe(), a = i == null ? void 0 : i.getDsn();
29
+ if (!a) {
30
+ Ne && b.error("[showReportDialog] DSN not configured");
31
+ return;
32
+ }
33
+ let o = {
34
+ ...e,
35
+ user: {
36
+ ...r.getUser(),
37
+ ...e.user
38
+ },
39
+ eventId: e.eventId || Le()
40
+ }, s = y.document.createElement("script");
41
+ s.async = !0, s.crossOrigin = "anonymous", s.src = Ae(a, o);
42
+ let { onLoad: c, onClose: l } = o;
43
+ if (c && (s.onload = c), l) {
44
+ let e = (t) => {
45
+ if (t.data === "__sentry_reportdialog_closed__") try {
46
+ l();
47
+ } finally {
48
+ y.removeEventListener("message", e);
49
+ }
50
+ };
51
+ y.addEventListener("message", e);
52
+ }
53
+ n.appendChild(s);
54
+ }
55
+ //#endregion
56
+ //#region ../../node_modules/.pnpm/@sentry+react@10.62.0_react@19.2.7/node_modules/@sentry/react/build/esm/debug-build.js
57
+ var ht = typeof __SENTRY_DEBUG__ > "u" || __SENTRY_DEBUG__, j = /* @__PURE__ */ e(Oe());
58
+ function gt(e) {
59
+ let t = e.match(/^([^.]+)/);
60
+ return t !== null && parseInt(t[0]) >= 17;
61
+ }
62
+ function _t(e, t) {
63
+ let n = /* @__PURE__ */ new WeakSet();
64
+ function r(e, t) {
65
+ if (!n.has(e)) {
66
+ if (e.cause) return n.add(e), r(e.cause, t);
67
+ e.cause = t;
68
+ }
69
+ }
70
+ r(e, t);
71
+ }
72
+ function vt(e, { componentStack: t }, n) {
73
+ if (gt(j.version) && Ie(e) && t) {
74
+ let n = Error(e.message);
75
+ n.name = `React ErrorBoundary ${e.name}`, n.stack = t, _t(e, n);
76
+ }
77
+ return Re(e, n);
78
+ }
79
+ //#endregion
80
+ //#region ../../node_modules/.pnpm/@sentry+react@10.62.0_react@19.2.7/node_modules/@sentry/react/build/esm/errorboundary.js
81
+ var M = {
82
+ componentStack: null,
83
+ error: null,
84
+ eventId: null
85
+ }, yt = class extends j.Component {
86
+ constructor(e) {
87
+ super(e), this.state = M, this._openFallbackReportDialog = !0;
88
+ let t = Fe();
89
+ t && e.showDialog && (this._openFallbackReportDialog = !1, this._cleanupHook = t.on("afterSendEvent", (t) => {
90
+ !t.type && this._lastEventId && t.event_id === this._lastEventId && mt({
91
+ ...e.dialogOptions,
92
+ eventId: this._lastEventId
93
+ });
94
+ }));
95
+ }
96
+ componentDidCatch(e, t) {
97
+ let { componentStack: n } = t, { beforeCapture: r, onError: i, showDialog: a, dialogOptions: o } = this.props;
98
+ Be((s) => {
99
+ r && r(s, e, n);
100
+ let c = vt(e, t, { mechanism: {
101
+ handled: this.props.handled == null ? !!this.props.fallback : this.props.handled,
102
+ type: "auto.function.react.error_boundary"
103
+ } });
104
+ i && i(e, n, c), a && (this._lastEventId = c, this._openFallbackReportDialog && mt({
105
+ ...o,
106
+ eventId: c
107
+ })), this.setState({
108
+ error: e,
109
+ componentStack: n,
110
+ eventId: c
111
+ });
112
+ });
113
+ }
114
+ componentDidMount() {
115
+ let { onMount: e } = this.props;
116
+ e && e();
117
+ }
118
+ componentWillUnmount() {
119
+ let { error: e, componentStack: t, eventId: n } = this.state, { onUnmount: r } = this.props;
120
+ r && (this.state === M ? r(null, null, null) : r(e, t, n)), this._cleanupHook && (this._cleanupHook(), this._cleanupHook = void 0);
121
+ }
122
+ resetErrorBoundary() {
123
+ let { onReset: e } = this.props, { error: t, componentStack: n, eventId: r } = this.state;
124
+ e && e(t, n, r), this.setState(M);
125
+ }
126
+ render() {
127
+ let { fallback: e, children: t } = this.props, n = this.state;
128
+ if (n.componentStack === null) return typeof t == "function" ? t() : t;
129
+ let r = typeof e == "function" ? j.createElement(e, {
130
+ error: n.error,
131
+ componentStack: n.componentStack,
132
+ resetError: () => this.resetErrorBoundary(),
133
+ eventId: n.eventId
134
+ }) : e;
135
+ return j.isValidElement(r) ? r : (e && ht && b.warn("fallback did not produce a valid ReactElement"), null);
136
+ }
137
+ }, bt = /* @__PURE__ */ e(De(), 1), xt = Ve(), St = tt();
138
+ function Ct(e) {
139
+ var t;
140
+ let n = new URLSearchParams(window.location.search).get(m), r = h ? window.localStorage.getItem(m) : null, i = n == null ? r : n;
141
+ return i == null ? h && Xe() != null || Object.keys((t = e.kiosk) == null ? {} : t).length > 0 : i === "1";
142
+ }
143
+ function wt() {
144
+ let e = window.location.hostname.split(".");
145
+ return e.length >= 3 && e[e.length - 2] === "expofp" && e[e.length - 1] === "com";
146
+ }
147
+ function Tt() {
148
+ return wt() ? window.location.hostname.split(".")[0] : "main";
149
+ }
150
+ function Et(e) {
151
+ if ((e == null ? void 0 : e.free) === !0) return "Free";
152
+ let t = e == null ? void 0 : e.trialExpiresAt;
153
+ if (t) {
154
+ let e = new Date(t).getTime();
155
+ if (!Number.isNaN(e)) return Date.now() < e ? "Trial Active" : "Trial Expired";
156
+ }
157
+ return "Active";
158
+ }
159
+ function Dt() {
160
+ return !1;
161
+ }
162
+ function Ot(e) {
163
+ return e;
164
+ }
165
+ function kt(e) {
166
+ if (Dt() || !wt() || Ct(e) || !window.navigator.onLine) return null;
167
+ let t = Ot({
168
+ subDomain: Tt(),
169
+ subscriptionStatus: Et(e)
170
+ });
171
+ return t.subDomain !== "demo" && t.subscriptionStatus !== "Free" && t.subscriptionStatus !== "Trial Expired" ? null : t;
172
+ }
173
+ //#endregion
174
+ //#region ../../node_modules/.pnpm/zod@4.3.5/node_modules/zod/v4/mini/schemas.js
175
+ var N = /*@__PURE__*/ f("ZodMiniType", (e, t) => {
176
+ if (!e._zod) throw Error("Uninitialized schema in ZodMiniType.");
177
+ ne.init(e, t), e.def = t, e.type = t.type, e.parse = (t, n) => o(e, t, n, { callee: e.parse }), e.safeParse = (t, n) => ee(e, t, n), e.parseAsync = async (t, n) => a(e, t, n, { callee: e.parseAsync }), e.safeParseAsync = async (t, n) => me(e, t, n), e.check = (...n) => {
178
+ var r;
179
+ return e.clone({
180
+ ...t,
181
+ checks: [...(r = t.checks) == null ? [] : r, ...n.map((e) => typeof e == "function" ? { _zod: {
182
+ check: e,
183
+ def: { check: "custom" },
184
+ onattach: []
185
+ } } : e)]
186
+ }, { parent: !0 });
187
+ }, e.with = e.check, e.clone = (t, r) => n(e, t, r), e.brand = () => e, e.register = ((t, n) => (t.add(e, n), e)), e.apply = (t) => t(e);
188
+ }), At = /*@__PURE__*/ f("ZodMiniString", (e, t) => {
189
+ we.init(e, t), N.init(e, t);
190
+ });
191
+ // @__NO_SIDE_EFFECTS__
192
+ function P(e) {
193
+ return ae(At, e);
194
+ }
195
+ var jt = /*@__PURE__*/ f("ZodMiniNumber", (e, t) => {
196
+ Te.init(e, t), N.init(e, t);
197
+ });
198
+ // @__NO_SIDE_EFFECTS__
199
+ function F(e) {
200
+ return fe(jt, e);
201
+ }
202
+ var Mt = /*@__PURE__*/ f("ZodMiniNever", (e, t) => {
203
+ oe.init(e, t), N.init(e, t);
204
+ });
205
+ // @__NO_SIDE_EFFECTS__
206
+ function Nt(e) {
207
+ return he(Mt, e);
208
+ }
209
+ var Pt = /*@__PURE__*/ f("ZodMiniArray", (e, t) => {
210
+ Ce.init(e, t), N.init(e, t);
211
+ });
212
+ // @__NO_SIDE_EFFECTS__
213
+ function I(e, t) {
214
+ return new Pt({
215
+ type: "array",
216
+ element: e,
217
+ ...d(t)
218
+ });
219
+ }
220
+ var Ft = /*@__PURE__*/ f("ZodMiniObject", (e, t) => {
221
+ te.init(e, t), N.init(e, t), pe(e, "shape", () => t.shape);
222
+ });
223
+ // @__NO_SIDE_EFFECTS__
224
+ function L(e, t) {
225
+ return new Ft({
226
+ type: "object",
227
+ shape: e,
228
+ catchall: /* @__PURE__ */ Nt(),
229
+ ...d(t)
230
+ });
231
+ }
232
+ var It = /*@__PURE__*/ f("ZodMiniOptional", (e, t) => {
233
+ i.init(e, t), N.init(e, t);
234
+ });
235
+ // @__NO_SIDE_EFFECTS__
236
+ function R(e) {
237
+ return new It({
238
+ type: "optional",
239
+ innerType: e
240
+ });
241
+ }
242
+ var Lt = /*@__PURE__*/ f("ZodMiniCustom", (e, t) => {
243
+ Ee.init(e, t), N.init(e, t);
244
+ });
245
+ // @__NO_SIDE_EFFECTS__
246
+ function z(e, t = {}) {
247
+ return de(Lt, e, t);
248
+ }
249
+ //#endregion
250
+ //#region src/schemas/sdk.schemas.ts
251
+ var B = /* @__PURE__ */ L({
252
+ x: /* @__PURE__ */ F(),
253
+ y: /* @__PURE__ */ F()
254
+ }), Rt = /* @__PURE__ */ L({
255
+ leftTop: B,
256
+ rightBottom: B
257
+ }), zt = (/* @__PURE__ */ L({
258
+ name: /* @__PURE__ */ R(/* @__PURE__ */ P()),
259
+ externalId: /* @__PURE__ */ R(/* @__PURE__ */ P())
260
+ })).check(/* @__PURE__ */ z((e) => !!(e.name || e.externalId), "Either name or externalId must be provided")), Bt = (/* @__PURE__ */ L({
261
+ booths: /* @__PURE__ */ R(/* @__PURE__ */ I(zt)),
262
+ exhibitors: /* @__PURE__ */ R(/* @__PURE__ */ I(zt))
263
+ })).check(/* @__PURE__ */ z((e) => {
264
+ var t, n;
265
+ return !!((t = e.booths) != null && t.length || (n = e.exhibitors) != null && n.length);
266
+ }, "Selector must contain booths or exhibitors")), Vt = /* @__PURE__ */ R(/* @__PURE__ */ L({ padding: /* @__PURE__ */ R(/* @__PURE__ */ F()) }));
267
+ //#endregion
268
+ //#region src/components/Kiosk/recoverKioskFromUrlPrams.ts
269
+ function Ht(e) {
270
+ let t = nt(e);
271
+ Object.values(t).length && (dt(t, !1), ut(t));
272
+ }
273
+ //#endregion
274
+ //#region src/utils/camera-map-settings.ts
275
+ function V(e) {
276
+ let t = {};
277
+ return e.x !== void 0 && e.y !== void 0 && (t.centerxy = `${e.x},${e.y}`), e.lat !== void 0 && e.lng !== void 0 && (t.center = `${e.lat},${e.lng}`), e.floor !== void 0 && (t.z = e.floor), e.bearing !== void 0 && (t.bearing = e.bearing), e.zoomTime !== void 0 && (t.zoomtime = e.zoomTime), t;
278
+ }
279
+ function Ut(e) {
280
+ let t = {}, n = Wt(e.centerxy);
281
+ n && ([t.x, t.y] = n);
282
+ let r = Wt(e.center);
283
+ return r && ([t.lat, t.lng] = r), e.z !== void 0 && (t.floor = e.z), e.bearing !== void 0 && (t.bearing = e.bearing), e.zoomtime !== void 0 && (t.zoomTime = e.zoomtime), t;
284
+ }
285
+ function Wt(e) {
286
+ if (!e) return;
287
+ let t = e.split(",").map(Number);
288
+ if (!(t.length !== 2 || !t.every(Number.isFinite))) return [t[0], t[1]];
289
+ }
290
+ //#endregion
291
+ //#region src/utils/getMostFrequent.ts
292
+ function Gt(e) {
293
+ let t = {}, n = 0, r;
294
+ return e.forEach((e) => {
295
+ t[e] = (t[e] || 0) + 1, t[e] > n && (n = t[e], r = e);
296
+ }), r;
297
+ }
298
+ //#endregion
299
+ //#region src/services/multi-slug.ts
300
+ function Kt(e, t) {
301
+ if (!e.includes("&") && !e.includes("%26")) return null;
302
+ let n = e.startsWith("?") ? e.slice(1) : e, r = n.includes("&") ? "&" : "%26", i = n.split(r), a = (e) => !!e && !g(e).includes("=");
303
+ return i.filter(a).length < 2 ? null : "?" + i.map((e) => a(e) && t(e) || e).join("&");
304
+ }
305
+ //#endregion
306
+ //#region src/services/url-dispatch.ts
307
+ var H = !1;
308
+ function qt() {
309
+ rn(p()), r(() => O.layerStore.layersLoaded, () => {
310
+ let e = p().camera;
311
+ Object.keys(e).length && G(V(e));
312
+ let t = p().visibility;
313
+ Object.keys(t).length && C.setVisibility(t);
314
+ });
315
+ }
316
+ function Jt(e) {
317
+ st({
318
+ offHistory: e,
319
+ onNavigate: W
320
+ }), $t(), U(), r(() => O.layerStore.layersLoaded, () => {
321
+ O.urlFilterManager && !O.urlFilterManager.isInitialized && O.urlFilterManager.initialize(), W(), le(dn), le(ln), C.viewerMode && (C.menu = !0);
322
+ });
323
+ }
324
+ function Yt(e = "") {
325
+ T("?" + g(e.toString())), O.layerStore.layersLoaded ? Xt(e) : (U(), r(() => O.layerStore.layersLoaded, () => Xt(e)));
326
+ }
327
+ function Xt(e) {
328
+ var t;
329
+ let n = "?" + g(e), r = an(n);
330
+ rn(r), r.consent && E(r.consent), r.camera && Object.keys(r.camera).length && G(V(r.camera)), r.visibility && Object.keys(r.visibility).length && C.setVisibility(r.visibility), $t(), W();
331
+ let i = [...(t = r.intents) == null ? [] : t, ..._e(n).intents];
332
+ i.length && l(O.fp, i);
333
+ }
334
+ function U() {
335
+ let e = w();
336
+ return ft(e.length > 1 ? g(e.substring(1)) : "");
337
+ }
338
+ function W() {
339
+ H = !0;
340
+ try {
341
+ let e = new URLSearchParams(g(window.location.search));
342
+ Ht(e);
343
+ let { primary: t, oneShots: n } = xe(w()), r = n.find((e) => e.type === "camera");
344
+ if (r) {
345
+ let e = r.roll;
346
+ G({
347
+ ...V(r.camera),
348
+ roll: e
349
+ });
350
+ } else new Set(e.keys()).size || fn();
351
+ let i = t.type === "select" && (!t.slug || /^t=[^&]*$/.test(t.slug)) && (C.heatmap || C.heatmapYah);
352
+ !U() && !i && Zt(t);
353
+ } finally {
354
+ H = !1;
355
+ }
356
+ ln(), dn();
357
+ }
358
+ function Zt(e) {
359
+ let t = O.fp;
360
+ switch (e.type) {
361
+ case "kiosk":
362
+ e.enabled === !0 ? C.kiosk = !0 : e.enabled === !1 && (C.kiosk = !1, C.resetUIScale());
363
+ return;
364
+ case "list":
365
+ t.showList(e.list);
366
+ return;
367
+ case "tour":
368
+ t.selectTour(e.tourId);
369
+ return;
370
+ case "planner":
371
+ t.openPlanner({
372
+ items: e.items,
373
+ from: e.from,
374
+ fromBookmarks: e.fromBookmarks
375
+ });
376
+ return;
377
+ case "route":
378
+ var n, r;
379
+ O.routeStore.setOnlyAccessible(e.accessible), O.routeStore.selectRoute(ct((n = e.from) == null ? "" : n, (r = e.to) == null ? "" : r, e.waypoints)), O.uiState.setIsMultiPointRoute(e.waypoints.length > 0), e.title && O.uiState.setRouteTitle(e.title);
380
+ return;
381
+ case "language":
382
+ ye(e.langId) && ve(e.langId);
383
+ return;
384
+ case "printPdf":
385
+ O.uiState.printingPdf = !0;
386
+ return;
387
+ case "visibility":
388
+ O.uiState.setVisibility(e.hidden.reduce((e, t) => ({
389
+ ...e,
390
+ [t]: !1
391
+ }), {}));
392
+ return;
393
+ case "buildRoute":
394
+ t.startBuildRoute();
395
+ return;
396
+ case "pathway":
397
+ Qt(e);
398
+ return;
399
+ case "selectExhibitors":
400
+ setTimeout(() => t.selectExhibitor(e.values), 250);
401
+ return;
402
+ case "ownedByFilters":
403
+ v.log("Skipping filter parameters in dispatchFromUrl (owned by URLFilterManager)");
404
+ return;
405
+ case "ownedByConfig": return;
406
+ case "select":
407
+ t.select(e.slug);
408
+ return;
409
+ }
410
+ }
411
+ function Qt(e) {
412
+ let { pathwayId: t, boothIds: n, exhibitorIds: r, tourId: i } = e;
413
+ if (i) {
414
+ let e = O.toursStore.getTourById(i);
415
+ e && _(() => {
416
+ var t;
417
+ O.uiState.setTourTitle(e.name), O.uiState.setTourDescription((t = e.description) == null ? "" : t), O.uiState.setIsMultiPointTour(!0), O.uiState.setMultiPointTourList(e.id);
418
+ });
419
+ }
420
+ let a = O.boothStore.booths.filter((e) => n.includes(e.externalId)), o = O.exhibitorStore.exhibitors.filter((e) => r.includes(e.externalId)).flatMap((e) => e.booths), s = [...a, ...o];
421
+ if (it()) {
422
+ let e = Gt(s.map((e) => e.layer.name));
423
+ e && O.fp.activateFloor({ name: e });
424
+ }
425
+ (n.length > 0 || r.length > 0) && O.fp.highlightEntities([...n, ...r]), O.layerStore.showPathWay(t), s.length > 0 && _(() => {
426
+ O.uiState.moveToRect = k.fromUnion(...s.map((e) => e.rect).filter(Boolean)), O.uiState.rollReset = !0;
427
+ });
428
+ }
429
+ function $t() {
430
+ let e = w(), { oneShots: t } = xe(e);
431
+ for (let e of t) en(e);
432
+ e.startsWith("?preview=") && T("?"), w().includes("copy_exh") && T("?");
433
+ let n = qe(w());
434
+ n !== null && T("?" + n), C.previewExhibitor && T("?" + C.previewExhibitor.slug), nn();
435
+ }
436
+ function en(e) {
437
+ switch (e.type) {
438
+ case "heatmap":
439
+ tn(e.yah);
440
+ return;
441
+ case "blueDot": {
442
+ var n, i;
443
+ let t = new lt(e.x, e.y, (n = O.layerStore.findLayer((i = e.layer) == null ? "" : i)) == null ? void 0 : n.name, void 0, e.lat, e.lng);
444
+ r(() => O.layerStore.layersLoaded, () => O.routeStore.selectCurrentPosition(t, !0, 1));
445
+ return;
446
+ }
447
+ case "viewerMode":
448
+ h && (e.enabled ? localStorage.setItem(t, "true") : (localStorage.removeItem(t), localStorage.removeItem(s)));
449
+ return;
450
+ case "previewMode":
451
+ h && (e.enabled ? localStorage.setItem(ie, "true") : (localStorage.removeItem(ie), localStorage.removeItem(re)));
452
+ return;
453
+ case "uiScale":
454
+ e.scale === null ? v.warn(`Invalid ui-scale parameter: ${e.raw}. Must be a number between 0.8 and 1.4.`) : O.uiState.setUIScale(e.scale, !0);
455
+ return;
456
+ case "resetUiScale":
457
+ O.uiState.resetUIScale();
458
+ return;
459
+ case "legacyBookmarks": {
460
+ let t = e.appendExhibitorId === null ? void 0 : O.exhibitorStore.exhibitorById.get(e.appendExhibitorId);
461
+ T(t ? "?" + t.slug : "?bookmarks");
462
+ return;
463
+ }
464
+ }
465
+ }
466
+ function tn(e) {
467
+ at(), e ? (C.heatmapYah = !0, C.monochrome = !0, C.hideLogoInBooth = !0, C.hideHeaderLogo = !0, C.disableBookmarked = !0) : C.heatmap = !0;
468
+ }
469
+ function nn() {
470
+ let e = Kt(w(), (e) => {
471
+ let t = O.exhibitorStore.exhibitors.find((t) => t.slug === e || t.externalId === e);
472
+ return t == null ? void 0 : t.name;
473
+ });
474
+ e !== null && T(e);
475
+ }
476
+ function rn(e) {
477
+ e.noOverlay !== void 0 && (C.hideOverlay = e.noOverlay), e.monochrome && (C.monochrome = !0), e.hideHeaderLogo && (C.hideHeaderLogo = !0), e.hideLogoInBooth && (C.hideLogoInBooth = !0), e.disableFeatured && O.exhibitorStore.exhibitors.forEach((e) => e.featured = !1), e.disableBookmarked && (C.disableBookmarked = !0), e.disableGps && O.routeStore.setGpsTrackingEnabled(!1), e.heatmap && je(e.heatmap) && tn(e.heatmap.variant === "yah");
478
+ }
479
+ function an(e) {
480
+ return be(ce, e).value;
481
+ }
482
+ var on = null, sn = null, cn = null;
483
+ function ln() {
484
+ let { selection: e, exhibitor: t, booth: n, eventItem: r } = un(), i = O.urlFilterManager.filterSearch();
485
+ if (H) return;
486
+ let a = se(e) || i;
487
+ w() !== a && (t !== on || n !== sn || r !== cn ? $e(a) : T(a), on = t, sn = n, cn = r);
488
+ }
489
+ function un() {
490
+ let e = C.selectedExhibitor, t = C.selectedBooth, n = C.selectedEventItem, r = C.selectedRoute, i = C.selectedSpeaker, a = C.setKioskModeEnabled, o = C.list, s;
491
+ if (o.type === "route-planner" && !e && !t && !n) {
492
+ var c;
493
+ let e = O.routePlannerStore;
494
+ s = {
495
+ type: "planner",
496
+ fromBookmarks: e.source === "bookmarks",
497
+ items: e.items.map((e) => e.entity.slug).filter(Boolean),
498
+ from: ((c = e.startPoint) == null ? void 0 : c.slug) || void 0
499
+ };
500
+ } else if (r && !C.isMultiPointRoute) {
501
+ var l;
502
+ s = {
503
+ type: "route",
504
+ to: r.to instanceof ot ? r.to.slug : void 0,
505
+ from: r.from instanceof ot ? r.from.slug : void 0,
506
+ accessible: O.routeStore.onlyAccessible,
507
+ waypoints: (l = r.waypoints) == null ? void 0 : l.map((e) => e.slug)
508
+ };
509
+ } else if (e) s = {
510
+ type: "slug",
511
+ slug: e.slug
512
+ };
513
+ else if (t) s = {
514
+ type: "slug",
515
+ slug: t.slug
516
+ };
517
+ else if (n) s = {
518
+ type: "slug",
519
+ slug: n.slug
520
+ };
521
+ else if (i) s = {
522
+ type: "slug",
523
+ slug: i.slug
524
+ };
525
+ else if (a) s = { type: "none" };
526
+ else switch (o.type) {
527
+ case "bookmarks":
528
+ case "visited":
529
+ case "sessions":
530
+ case "exhibitors":
531
+ case "speakers":
532
+ case "tours":
533
+ case "language":
534
+ s = {
535
+ type: "list",
536
+ list: o.type
537
+ };
538
+ break;
539
+ case "category":
540
+ var u, d;
541
+ s = {
542
+ type: "slug",
543
+ slug: (u = (d = C.selectedCategory) == null ? void 0 : d.slug) == null ? "" : u
544
+ };
545
+ break;
546
+ case "search":
547
+ s = {
548
+ type: "slug",
549
+ slug: o.text || ""
550
+ };
551
+ break;
552
+ case "filter":
553
+ s = {
554
+ type: "filter",
555
+ key: o.query.key,
556
+ value: o.query.value
557
+ };
558
+ break;
559
+ case "multi-point-tour":
560
+ s = {
561
+ type: "tour",
562
+ tourId: o.tourId
563
+ };
564
+ break;
565
+ default: throw Error("Unkown list.type");
566
+ }
567
+ return {
568
+ selection: s,
569
+ exhibitor: e,
570
+ booth: t,
571
+ eventItem: n
572
+ };
573
+ }
574
+ function dn() {
575
+ let e = C.selectedExhibitor, t = C.selectedEventItem, n = C.selectedSpeaker, r = "";
576
+ e ? r = e.name : t ? r = t.name : n ? r = n.name : C.list.type === "search" && C.list.text ? r = "`" + (C.list.text || "") + "`" : C.list.type === "multi-point-tour" && C.tourTitle && (r = C.tourTitle), r.length && (r += " – "), r += D.title, D.subtitle && (r += " – " + D.subtitle), r += " – Expo Floor Plan by ExpoFP", document.title = r;
577
+ }
578
+ function G(e) {
579
+ try {
580
+ if (C.setMapSettings(e), e.z) {
581
+ let t = O.layerStore.layers.find((t) => t.name === e.z);
582
+ t && O.layerStore.updateVisibility(t, !0);
583
+ }
584
+ } catch (e) {
585
+ console.error("Failed to process or save map settings.", e);
586
+ }
587
+ }
588
+ function fn() {
589
+ try {
590
+ let e = sessionStorage.getItem(u);
591
+ e && G(JSON.parse(e));
592
+ } catch (e) {
593
+ console.error("Failed to process or save map settings.", e);
594
+ }
595
+ }
596
+ //#endregion
597
+ //#region src/tools/reset.ts
598
+ function pn() {
599
+ K("floorplan"), K("__searchi"), K("__mobxGlobals"), K("__store"), K("__mobxInstanceCount");
600
+ for (let e in window) e !== "__efpStyleElements" && (e.includes("__fp") || e.includes("__efp")) && K(e);
601
+ }
602
+ function K(e) {
603
+ mn(e) ? delete window[e] : window[e] = void 0;
604
+ }
605
+ function mn(e) {
606
+ let t = Object.getOwnPropertyDescriptor(window, e);
607
+ return t && t.configurable;
608
+ }
609
+ //#endregion
610
+ //#region src/utils/mapEntity.ts
611
+ function q(e) {
612
+ switch (e.entity.type) {
613
+ case "booth":
614
+ var t, n;
615
+ return {
616
+ id: e.id,
617
+ name: Y(e.name),
618
+ externalId: Y(e.externalId),
619
+ isSpecial: e.entity.variant === "special",
620
+ exhibitors: J(e.exhibitors),
621
+ layer: {
622
+ name: Y((t = e.layer) == null ? void 0 : t.name),
623
+ description: Y((n = e.layer) == null ? void 0 : n.description)
624
+ },
625
+ meta: e.meta,
626
+ description: Y(e.description),
627
+ entity: e.entity,
628
+ title: Y(e.title)
629
+ };
630
+ case "category": return {
631
+ id: e.id,
632
+ name: Y(e.name),
633
+ exhibitors: J(e.exhibitors),
634
+ entity: e.entity,
635
+ slug: Y(e.slug)
636
+ };
637
+ case "exhibitor": return {
638
+ id: e.id,
639
+ name: Y(e.name),
640
+ externalId: Y(e.externalId),
641
+ booths: J(e.booths),
642
+ entity: e.entity,
643
+ slug: Y(e.slug)
644
+ };
645
+ case "schedule": return {
646
+ id: e.id,
647
+ externalId: Y(e.externalId),
648
+ boothId: e.boothId,
649
+ exhibitorId: e.exhibitorId,
650
+ name: Y(e.name),
651
+ description: Y(e.description),
652
+ startDate: Y(e.startDate),
653
+ endDate: Y(e.endDate),
654
+ link: Y(e.link),
655
+ entity: e.entity,
656
+ isEnded: e.isEnded
657
+ };
658
+ case c: return {
659
+ id: e.id,
660
+ name: Y(e.name),
661
+ entity: e.entity
662
+ };
663
+ case "heatmap-yah": return {
664
+ id: Y(e.id),
665
+ name: Y(e.name),
666
+ viewCount: e.viewCount || 0,
667
+ x: e.x || 0,
668
+ y: e.y || 0,
669
+ z: e.z,
670
+ entity: e.entity
671
+ };
672
+ default: return e;
673
+ }
674
+ }
675
+ function J(e) {
676
+ return Array.isArray(e) ? e.filter(Boolean).map((e) => e.id).filter(Boolean) : [];
677
+ }
678
+ function Y(e) {
679
+ return typeof e == "string" ? e : "";
680
+ }
681
+ //#endregion
682
+ //#region src/floorplan.ready.tsx
683
+ var X = ke(), Z = (0, bt.default)("efp:api");
684
+ (0, St.install)();
685
+ var hn = class extends Pe {
686
+ constructor(...e) {
687
+ super(...e), this.root = void 0;
688
+ }
689
+ init() {
690
+ qt(), this.ignoreQuery || Jt(this.offHistory), Ye("load"), O.fp = this, E(this.consent), We(Ue.Load, ""), this.root = (0, xt.createRoot)(this.renderTarget), this.root.render(/* @__PURE__ */ (0, X.jsx)(yt, { children: /* @__PURE__ */ (0, X.jsx)(pt, {
691
+ offHistory: this.offHistory,
692
+ consent: this.consent
693
+ }) })), We(Ue.Rendered, ""), Se(() => O.layerStore.layersLoaded, () => {
694
+ if (this.resolveReady(), !O.initialized) {
695
+ var e;
696
+ (e = this.onInit) == null || e.call(this, this);
697
+ }
698
+ O.initialized = !0;
699
+ });
700
+ let e = kt(D);
701
+ e && import("./bootIntercom-YnsJPGCs.js").then(({ bootIntercom: t }) => t(e)).catch(() => {});
702
+ }
703
+ selectBooth(e) {
704
+ if (typeof e != "string" && !Array.isArray(e)) {
705
+ $("selectBooth", "Parameter must be a string or an array of strings.", "EFP000000");
706
+ return;
707
+ }
708
+ let t = O.boothStore.booths.filter((t) => typeof e == "string" ? t.name === e || t.externalId === e : e.includes(t.name) || e.includes(t.externalId));
709
+ O.selectBooth(t);
710
+ }
711
+ selectExhibitor(e) {
712
+ if (typeof e != "string" && !Array.isArray(e)) {
713
+ $("selectExhibitor", "Parameter must be a string or an array of strings.", "EFP000100");
714
+ return;
715
+ }
716
+ if (!(e != null && e.length)) {
717
+ O.uiState.menu = !1, O.searchStore.resetSearchBox(), O.uiState.details = null;
718
+ return;
719
+ }
720
+ let t = O.exhibitorStore.exhibitors.filter((t) => typeof e == "string" ? t.name === e || t.externalId === e : e.includes(t.name) || e.includes(t.externalId));
721
+ if (!(t != null && t.length)) return;
722
+ if (typeof e == "string") {
723
+ O.selectExhibitor(t[0]), O.moveToList([t[0]]);
724
+ return;
725
+ }
726
+ let n = t.flatMap((e) => e.booths.map((e) => e.layer)), { description: r } = n.reduce((e, t) => (e.freq[t.description] = (e.freq[t.description] || 0) + 1, e.freq[t.description] > e.maxCount && (e.maxCount = e.freq[t.description], e.mostFrequent = t), e), {
727
+ freq: {},
728
+ mostFrequent: n[0],
729
+ maxCount: 0
730
+ }).mostFrequent;
731
+ O.layerStore.updateVisibility(r, !0), O.uiState.menu = !1, O.searchStore.resetSearchBox(), O.uiState.details = null, O.uiState.list = {
732
+ type: "filter",
733
+ items: t,
734
+ query: {
735
+ key: "exhibitors",
736
+ value: t.map((e) => e.externalId).join(",")
737
+ }
738
+ }, O.moveToList();
739
+ }
740
+ highlightExhibitors(e) {
741
+ Array.isArray(e) || $("highlightExhibitors", "Parameter must be an array of strings.", "EFP000200"), O.boothStore.highlightedByExternalIds = [], O.exhibitorStore.highlightedByExternalIds = [...e];
742
+ }
743
+ highlightBooths(e) {
744
+ Array.isArray(e) || $("highlightBooths", "Parameter must be an array of strings.", "EFP000300"), O.exhibitorStore.highlightedByExternalIds = [], O.boothStore.highlightedByExternalIds = [...e];
745
+ }
746
+ highlightEntities(e) {
747
+ Array.isArray(e) || $("highlightEntities", "Parameter must be an array of strings.", "EFP000400");
748
+ let { boothExternalIds: t, exhibitorExternalIds: n } = He(e);
749
+ O.boothStore.highlightedByExternalIds = [...t], O.exhibitorStore.highlightedByExternalIds = [...n];
750
+ }
751
+ selectRoute(e, t) {
752
+ if (Array.isArray(e)) {
753
+ let t = [...e], n = t.shift(), r = t.pop();
754
+ if (t.length > 8) throw Error("The maximum number of waypoints is 8.");
755
+ if (!n || !r) {
756
+ $("selectRoute", "Invalid route format: When providing an array, it must include at least two points: a start and a destination.", "EFP000401");
757
+ return;
758
+ }
759
+ O.routeStore.selectRoute(new Qe(Q(n), Q(r), t.map(Q)));
760
+ return;
761
+ }
762
+ e || $("selectRoute", "At a minimum, the starting point must be passed.", "EFP000402"), O.routeStore.selectRoute(new Qe(Q(e), Q(t)));
763
+ }
764
+ getOptimizedRoutes(e) {
765
+ if (!Array.isArray(e)) return $("getOptimizedRoutes", "Parameter must be an array.", "EFP000500"), [];
766
+ if (e.length > 8) throw Error("The maximum number of waypoints is 8.");
767
+ let t = e.map(Q).filter((e) => !!e);
768
+ if (!t.length) throw Error("No booths found for the provided waypoints.");
769
+ let n = /* @__PURE__ */ new Map();
770
+ for (let e of t) {
771
+ var r, i;
772
+ let t = (r = (i = e.layer) == null ? void 0 : i.name) == null ? "" : r, a = n.get(t);
773
+ a ? a.push(e) : n.set(t, [e]);
774
+ }
775
+ return Array.from(n.values()).map((e) => ({ waypoints: Ge(e.map((e) => [e.name, {
776
+ x: e.rect.center.x,
777
+ y: e.rect.center.y
778
+ }])) }));
779
+ }
780
+ selectCurrentPosition(e, t, n) {
781
+ var r;
782
+ let i = x(e.x) && x(e.y), a = x(e.lng) && x(e.lat);
783
+ !i && !a && $("selectCurrentPosition", "A point must be passed. Either (x,y) or (lat,lng) are required.", "EFP000600"), O.routeStore.selectCurrentPosition(e, t, n), (r = this.onCurrentPositionChanged) == null || r.call(this, e);
784
+ }
785
+ setBookmarks(e) {
786
+ (!Array.isArray(e) || !e.length) && $("setBookmarks", "Parameter must be an array.", "EFP000700"), e.forEach((e) => {
787
+ let t = O.exhibitorStore.exhibitors.find((t) => t.name === e.name || t.externalId === e.externalId);
788
+ t && (t.bookmarked = e.bookmarked);
789
+ });
790
+ }
791
+ setEntitiesBookmarks(e) {
792
+ if (!Array.isArray(e) || !e.length) {
793
+ $("setEntitiesBookmarks", "Parameter must be an array.", "EFP000701");
794
+ return;
795
+ }
796
+ let t = [
797
+ "exhibitor",
798
+ "event",
799
+ "speaker",
800
+ "booth"
801
+ ], n = e.find((e) => !e.type || !t.includes(e.type));
802
+ if (n) {
803
+ $("setEntitiesBookmarks", `Invalid entity type: ${n.type}. Must be one of: ${t.join(", ")}.`, "EFP000702");
804
+ return;
805
+ }
806
+ let r = rt("bookmarked"), i = {
807
+ exhibitor: {
808
+ existingIds: new Set(r.exhibitors || []),
809
+ finder: (e) => O.exhibitorStore.findExhibitor(e),
810
+ replacer: (e) => O.exhibitorStore.replaceBookmarked(e)
811
+ },
812
+ event: {
813
+ existingIds: new Set(r.events || []),
814
+ finder: (e) => O.eventStore.findByNameOrSlug(e),
815
+ replacer: (e) => O.eventStore.replaceBookmarked(e)
816
+ },
817
+ speaker: {
818
+ existingIds: new Set(r.speakers || []),
819
+ finder: (e) => O.speakerStore.speakers.find((t) => t.name === e || t.externalId === e || t.slug === e),
820
+ replacer: (e) => O.speakerStore.replaceBookmarked(e)
821
+ },
822
+ booth: {
823
+ existingIds: new Set(r.booths || []),
824
+ finder: (e) => {
825
+ let t = O.boothStore.findBooth(e);
826
+ return (t == null ? void 0 : t.exhibitors.length) === 0 ? t : void 0;
827
+ },
828
+ replacer: (e) => O.boothStore.replaceBookmarked(e)
829
+ }
830
+ };
831
+ e.forEach((e) => {
832
+ let t = i[e.type], n = e.name || e.externalId || "", r = t.finder(n);
833
+ r ? e.bookmarked ? t.existingIds.add(r.id) : t.existingIds.delete(r.id) : console.warn(`Entity not found: ${e.type} with query "${n}"`);
834
+ }), Object.values(i).forEach((e) => {
835
+ e.replacer(Array.from(e.existingIds));
836
+ });
837
+ }
838
+ setEntitiesVisited(e) {
839
+ if (!Array.isArray(e) || !e.length) {
840
+ $("setEntitiesVisited", "Parameter must be an array.", "EFP000703");
841
+ return;
842
+ }
843
+ let t = ["exhibitor", "event"], n = e.find((e) => !e.type || !t.includes(e.type));
844
+ if (n) {
845
+ $("setEntitiesVisited", `Invalid entity type: ${n.type}. Must be one of: ${t.join(", ")}.`, "EFP000704");
846
+ return;
847
+ }
848
+ let r = rt("visited"), i = {
849
+ exhibitor: {
850
+ existingIds: new Set(r.exhibitors || []),
851
+ finder: (e) => O.exhibitorStore.findExhibitor(e),
852
+ replacer: (e) => O.exhibitorStore.replaceVisited(e)
853
+ },
854
+ event: {
855
+ existingIds: new Set(r.events || []),
856
+ finder: (e) => O.eventStore.findByNameOrSlug(e),
857
+ replacer: (e) => O.eventStore.replaceVisited(e)
858
+ }
859
+ };
860
+ e.forEach((e) => {
861
+ let t = i[e.type], n = e.name || e.externalId || "", r = t.finder(n);
862
+ r ? e.visited ? t.existingIds.add(r.id) : t.existingIds.delete(r.id) : console.warn(`Entity not found: ${e.type} with query "${n}"`);
863
+ }), Object.values(i).forEach((e) => {
864
+ e.replacer(Array.from(e.existingIds));
865
+ });
866
+ }
867
+ setMarkers(e) {
868
+ if (!e || !Array.isArray(e.icons) || !Array.isArray(e.markers)) {
869
+ $("setMarkers", "Invalid input.", "EFP000800");
870
+ return;
871
+ }
872
+ O.routeStore.setMarkers(e);
873
+ }
874
+ selectMarker(e, t = !0) {
875
+ return typeof e != "string" && $("selectMarker", "The identifier must be passed.", "EFP000900"), O.routeStore.selectMarker(e, t);
876
+ }
877
+ drawCircles(e) {
878
+ Array.isArray(e) || $("drawCircles", "Invalid input.", "EFP000A00"), O.uiState.debugCircles = e;
879
+ }
880
+ checkRoutes() {
881
+ O.routeStore.checkRoutes();
882
+ }
883
+ updateLayerVisibility(e, t) {
884
+ typeof e != "string" && $("updateLayerVisibility", "The layer name (string) must be passed.", "EFP000B00"), t || $("updateLayerVisibility", "Passing a false value to visible will have no effect.", "EFP000B01"), O.layerStore.updateVisibility(e, t);
885
+ }
886
+ getCenterCoordinates() {
887
+ return O.fp.getCenterCoordinates();
888
+ }
889
+ exhibitorsList() {
890
+ return O.exhibitorStore.exhibitors.map((e) => q(e));
891
+ }
892
+ boothsList() {
893
+ return O.boothStore.booths.map((e) => q(e));
894
+ }
895
+ categoriesList() {
896
+ return O.categoryStore.categories.map((e) => q(e));
897
+ }
898
+ selectCategory(e) {
899
+ if (e == null || typeof e != "string") {
900
+ O.searchStore.selectSearch();
901
+ return;
902
+ }
903
+ let t = e == null ? void 0 : e.toLowerCase(), n = O.categoryStore.categories.find(({ name: e, slug: n }) => (e == null ? void 0 : e.toLowerCase()) === t || (n == null ? void 0 : n.toLowerCase()) === t);
904
+ if (!n) {
905
+ $("selectCategory", `Category ${e} not found.`, "EFP000C01");
906
+ return;
907
+ }
908
+ O.selectCategory(n);
909
+ }
910
+ select(e) {
911
+ if (typeof e != "string") {
912
+ $("select", "Parameter must be a string.", "EFP001700");
913
+ return;
914
+ }
915
+ let t = e, n = t == null ? void 0 : t.toLowerCase(), r = O.boothStore.booths.find((e) => {
916
+ var t, r, i;
917
+ return ((t = e.slug) == null ? void 0 : t.toLowerCase()) === n || ((r = e.externalId) == null ? void 0 : r.toLowerCase()) === n || ((i = e.externalId) == null || (i = i.toLowerCase()) == null ? void 0 : i.replace(/\s+/g, "")) === n;
918
+ });
919
+ if (r) {
920
+ setTimeout(() => O.selectBooth(r), 250);
921
+ return;
922
+ }
923
+ let i = O.eventStore.eventItems.find((e) => {
924
+ var t, r;
925
+ return ((t = e.slug) == null ? void 0 : t.toLowerCase()) === n || ((r = e.externalId) == null ? void 0 : r.toLowerCase()) === n;
926
+ });
927
+ if (i) {
928
+ O.selectEventItem(i, !0);
929
+ return;
930
+ }
931
+ let a = O.exhibitorStore.exhibitors.find((e) => {
932
+ var t, r;
933
+ return ((t = e.slug) == null ? void 0 : t.toLowerCase()) === n || ((r = e.externalId) == null ? void 0 : r.toLowerCase()) === n;
934
+ });
935
+ if (a) {
936
+ setTimeout(() => O.clickExhibitor(a), 250);
937
+ return;
938
+ }
939
+ let o = O.categoryStore.categories.find((e) => e.slug === t);
940
+ if (o) {
941
+ O.selectCategory(o);
942
+ return;
943
+ }
944
+ let s = O.speakerStore.findBySlug(t);
945
+ if (s) {
946
+ O.selectSpeaker(s, !0);
947
+ return;
948
+ }
949
+ t.includes("heatmap=true") || O.searchStore.selectSearch(t);
950
+ }
951
+ showList(e) {
952
+ let t = {
953
+ bookmarks: () => O.selectBookmarks(),
954
+ visited: () => O.selectVisited(),
955
+ sessions: () => O.selectSessions(),
956
+ exhibitors: () => O.selectExhibitors(),
957
+ speakers: () => O.selectSpeakers(),
958
+ tours: () => O.selectTours(),
959
+ language: () => O.selectLanguage()
960
+ }, n = t[e];
961
+ if (!n) {
962
+ $("showList", `Unknown list "${e}". Must be one of: ${Object.keys(t).join(", ")}.`, "EFP001800");
963
+ return;
964
+ }
965
+ n();
966
+ }
967
+ selectTour(e) {
968
+ if (typeof e != "string" || !e) {
969
+ $("selectTour", "A tour id must be passed.", "EFP001900");
970
+ return;
971
+ }
972
+ let t = O.toursStore.getTourById(e);
973
+ t ? O.toursStore.launchTour(t, t.name, t.description) : (console.warn(`Route with id "${e}" not found`), O.selectTours());
974
+ }
975
+ openPlanner(e = {}) {
976
+ if (typeof e != "object" || !e) {
977
+ $("openPlanner", "An options object must be passed.", "EFP001A00");
978
+ return;
979
+ }
980
+ let t = e.from ? S(e.from) : null;
981
+ if (e.fromBookmarks) O.routePlannerStore.launchFromBookmarks(t == null ? void 0 : t);
982
+ else {
983
+ var n;
984
+ O.routePlannerStore.launchFromSlugs((n = e.items) == null ? [] : n, t == null ? void 0 : t);
985
+ }
986
+ }
987
+ startBuildRoute() {
988
+ O.uiState.startBuildRoute();
989
+ }
990
+ applyParameters(e) {
991
+ typeof e != "string" && $("applyParameters", "A query string must be passed.", "EFP000D00"), Yt(e);
992
+ }
993
+ getVisibility() {
994
+ return O.uiState.visibility;
995
+ }
996
+ setVisibility(e) {
997
+ (typeof e != "object" || !Object.keys(e).length) && $("setVisibility", "The parameter must be passed.", "EFP000E00"), O.uiState.setVisibility(e);
998
+ }
999
+ findLocation() {
1000
+ O.routeStore.findLocation();
1001
+ }
1002
+ zoomIn() {
1003
+ O.uiState.zoomIn();
1004
+ }
1005
+ zoomOut() {
1006
+ O.uiState.zoomOut();
1007
+ }
1008
+ switchView() {
1009
+ O.maplibreStore.activateMaplibre();
1010
+ }
1011
+ setCamera(e) {
1012
+ Z("setCamera called with camera=%O", e);
1013
+ let t = ue.safeParse(e);
1014
+ if (!t.success) {
1015
+ $("setCamera", t.error.message, "EFP001B00");
1016
+ return;
1017
+ }
1018
+ O.uiState.setMapSettings(V(t.data));
1019
+ }
1020
+ getCamera() {
1021
+ return Ut(O.uiState.mapSettings);
1022
+ }
1023
+ zoomTo(e, t) {
1024
+ Z("zoomTo called with selectors=%O options=%O", e, t);
1025
+ let n = Bt.safeParse(e);
1026
+ if (!n.success) {
1027
+ $("zoomTo", n.error.message, "EFP001600");
1028
+ return;
1029
+ }
1030
+ let r = Vt.safeParse(t);
1031
+ if (!r.success) {
1032
+ $("zoomTo", r.error.message, "EFP001601");
1033
+ return;
1034
+ }
1035
+ let i = this.getBounds(e);
1036
+ i && this.fitBounds(i, t);
1037
+ }
1038
+ getBounds(e) {
1039
+ var t, n;
1040
+ Z("getBounds called with selectors=%O", e);
1041
+ let r = Bt.safeParse(e);
1042
+ if (!r.success) {
1043
+ $("getBounds", r.error.message, "EFP001400");
1044
+ return;
1045
+ }
1046
+ let i = [];
1047
+ if ((t = e.booths) == null || t.forEach((e) => {
1048
+ let t;
1049
+ e.externalId ? t = O.boothStore.boothByExternalId.get(e.externalId) : e.name && (t = O.boothStore.boothByName.get(e.name.toLowerCase())), t != null && t.rect && i.push(t.rect);
1050
+ }), (n = e.exhibitors) == null || n.forEach((e) => {
1051
+ var t;
1052
+ let n;
1053
+ e.externalId ? n = O.exhibitorStore.exhibitorByExternalId.get(e.externalId) : e.name && (n = O.exhibitorStore.exhibitorByName.get(e.name.toLowerCase())), n == null || (t = n.booths) == null || t.forEach((e) => {
1054
+ e.rect && i.push(e.rect);
1055
+ });
1056
+ }), i.length === 0) return;
1057
+ let a = k.fromUnion(...i);
1058
+ return {
1059
+ leftTop: {
1060
+ x: a.min.x,
1061
+ y: a.min.y
1062
+ },
1063
+ rightBottom: {
1064
+ x: a.max.x,
1065
+ y: a.max.y
1066
+ }
1067
+ };
1068
+ }
1069
+ fitBounds(e, t) {
1070
+ if (Z("fitBounds called with bounds=%O options=%O", e, t), !e) {
1071
+ O.uiState.fitBounds();
1072
+ return;
1073
+ }
1074
+ let n = Rt.safeParse(e);
1075
+ if (!n.success) {
1076
+ $("fitBounds", n.error.message, "EFP001500");
1077
+ return;
1078
+ }
1079
+ let r = Vt.safeParse(t);
1080
+ if (!r.success) {
1081
+ $("fitBounds", r.error.message, "EFP001501");
1082
+ return;
1083
+ }
1084
+ let i = k.fromMinMax({
1085
+ x: e.leftTop.x,
1086
+ y: e.leftTop.y
1087
+ }, {
1088
+ x: e.rightBottom.x,
1089
+ y: e.rightBottom.y
1090
+ });
1091
+ O.uiState.moveToRect = t != null && t.padding ? i.expand(t.padding) : i;
1092
+ }
1093
+ getBoothRect(e) {
1094
+ var t;
1095
+ typeof e != "string" && $("getBoothRect", "A booth name must be passed.", "EFP000F00");
1096
+ let n = (t = S(e)) == null ? void 0 : t.rect;
1097
+ return n ? _n.fromBox(n) : void 0;
1098
+ }
1099
+ convertToGeo(e, t) {
1100
+ var n;
1101
+ if (!(!(A == null || (n = A.properties) == null) && n.config)) {
1102
+ $("convertToGeo", "The coordinates cannot be converted because the GPS configuration is not defined.", "EFP001000");
1103
+ return;
1104
+ }
1105
+ if (!e || !t) {
1106
+ $("convertToGeo", "Both coordinates must be passed.", "EFP001001");
1107
+ return;
1108
+ }
1109
+ return Ke(e, t, A.properties.config);
1110
+ }
1111
+ getGeoConfig() {
1112
+ var e, t;
1113
+ let n = A == null || (e = A.properties) == null ? void 0 : e.config;
1114
+ return n ? {
1115
+ bearing: (t = n.bearing) == null ? 0 : t,
1116
+ p0: n.p0,
1117
+ p1: n.p1,
1118
+ p2: n.p2
1119
+ } : null;
1120
+ }
1121
+ unstable_destroy() {
1122
+ let e = window.__efpElement.firstChild;
1123
+ pn(), window.removeEventListener("__efpStyleLoad", this.efpStyleLoadHandler), window.removeEventListener("error", Me), O.maplibreStore.dispose(), Ze(), et(), Je(), this.root.unmount(), e.remove();
1124
+ }
1125
+ search(e) {
1126
+ return typeof e != "string" && $("search", "A search string must be passed.", "EFP001100"), O.fuzzySearchEngineStore.loadEngine().then(() => (O.searchStore.selectSearch(e), O.uiState.fuzzySearchItems.map((e) => ({
1127
+ item: q(e.item),
1128
+ score: e.score
1129
+ }))));
1130
+ }
1131
+ getFloors() {
1132
+ return O.layerStore.floors.map((e) => ({
1133
+ name: e.name,
1134
+ shortName: e.shortName,
1135
+ description: e.description,
1136
+ active: e.active,
1137
+ disabled: e.disabled,
1138
+ index: e.index
1139
+ }));
1140
+ }
1141
+ activateFloor(e) {
1142
+ if (!(e != null && e.name) && (e == null ? void 0 : e.index) == null) {
1143
+ $("activateFloor", "Invalid floorId. It must contain either a name or an index.", "EFP001200");
1144
+ return;
1145
+ }
1146
+ let t = this.getFloors();
1147
+ if (e.name) {
1148
+ let n = t.find((t) => t.name === e.name || t.shortName === e.name);
1149
+ if (!n) {
1150
+ $("activateFloor", `Floor with name "${e.name}" not found.`, "EFP001201");
1151
+ return;
1152
+ }
1153
+ if (n.active) return;
1154
+ this.updateLayerVisibility(n.name, !0);
1155
+ return;
1156
+ }
1157
+ if (e.index !== null) {
1158
+ let n = t.find((t) => t.index === e.index), r = n == null ? void 0 : n.name;
1159
+ if (!r) {
1160
+ $("activateFloor", `Floor at index ${e.index} does not exist.`, "EFP001203");
1161
+ return;
1162
+ }
1163
+ if (n.active) return;
1164
+ this.updateLayerVisibility(r, !0);
1165
+ return;
1166
+ }
1167
+ }
1168
+ showPathway(e, t) {
1169
+ let { boothExternalIds: n, exhibitorExternalIds: r } = t != null && t.length ? He(t) : {
1170
+ boothExternalIds: [],
1171
+ exhibitorExternalIds: []
1172
+ };
1173
+ Qt({
1174
+ pathwayId: e,
1175
+ boothIds: n,
1176
+ exhibitorIds: r
1177
+ });
1178
+ }
1179
+ showPathwayOnly(e, t) {
1180
+ this.activateFloor({ name: t }), O.layerStore.showPathWay(e), O.uiState.setPathwayOnlyMode(!0);
1181
+ let n = O.layerStore.findLayer(e), r = O.layerStore.findLayer(t), i = n != null && n.rect || n != null && n.viewbox ? n : r;
1182
+ if (i != null && i.rect || i != null && i.viewbox) {
1183
+ var a;
1184
+ let e = (a = i.viewbox) == null ? i.rect : a;
1185
+ O.uiState.moveToRect = e.clone();
1186
+ }
1187
+ }
1188
+ hidePathways() {
1189
+ this.highlightBooths([]), O.layerStore.hidePathways(), O.uiState.setPathwayOnlyMode(!1);
1190
+ }
1191
+ showSearch() {
1192
+ O.selectSearch("");
1193
+ }
1194
+ changeLanguage(e) {
1195
+ var t;
1196
+ let n = e == null || (t = e.toLowerCase) == null ? void 0 : t.call(e);
1197
+ if (!ye(n)) {
1198
+ $("changeLanguage", `Language "${e}" was not found. Available languages: ${ge().map((e) => e.id).join(",")}`, "EFP001300");
1199
+ return;
1200
+ }
1201
+ ve(n);
1202
+ }
1203
+ isGpsTrackingEnabled() {
1204
+ return O.routeStore.gpsEnabled;
1205
+ }
1206
+ setGpsTrackingEnabled(e) {
1207
+ O.routeStore.setGpsTrackingEnabled(e);
1208
+ }
1209
+ deselectCurrentPosition() {
1210
+ O.routeStore.selectCurrentPosition(null, !1);
1211
+ }
1212
+ deselectRoute() {
1213
+ O.routeStore.selectRoute(null), O.routeStore.setOnlyAccessible(!1);
1214
+ }
1215
+ reset() {
1216
+ if (this.selectBooth(""), this.selectExhibitor(""), this.selectCategory(), this.deselectCurrentPosition(), this.deselectRoute(), this.highlightEntities([]), O.uiState.kioskData && O.resetCameraFn) {
1217
+ var e;
1218
+ (e = O.resetCameraFn) == null || e.call(O);
1219
+ } else this.fitBounds();
1220
+ }
1221
+ selectAccessibleRoute(e) {
1222
+ O.routeStore.setOnlyAccessible(!0), this.selectRoute(e);
1223
+ }
1224
+ };
1225
+ function Q(e) {
1226
+ return typeof e == "string" ? S(e) : O.routeStore.getNearestBooth(e);
1227
+ }
1228
+ var gn = 0;
1229
+ function $(e, t, n) {
1230
+ let r = `Error calling "${e}" SDK method.`, i = `${t.endsWith(".") ? t : t + "."} More information at`, a = "https://js-sdk.expofp.com/api/packages";
1231
+ if (n && (a += `#error-${n}`), console.error(`${r} ${i} ${a}`), O.fp.disableRuntimeAlerts) return;
1232
+ O.uiState.setGlobalErrorMessage({
1233
+ title: r,
1234
+ body: /* @__PURE__ */ (0, X.jsxs)(X.Fragment, { children: [
1235
+ i,
1236
+ " ",
1237
+ /* @__PURE__ */ (0, X.jsx)("a", {
1238
+ href: a,
1239
+ target: "_blank",
1240
+ rel: "noreferrer",
1241
+ children: a
1242
+ })
1243
+ ] })
1244
+ }), clearTimeout(gn);
1245
+ let o = 8e3;
1246
+ gn = window.setTimeout(() => {
1247
+ let e = async () => {
1248
+ O.uiState.globalErrorMessages.length > 0 && (O.uiState.popGlobalErrorMessage(), await new Promise((e) => setTimeout(e, o / 2)), e());
1249
+ };
1250
+ e();
1251
+ }, o);
1252
+ }
1253
+ var _n = class e {
1254
+ get h() {
1255
+ return Math.abs(this.y2 - this.y1);
1256
+ }
1257
+ get w() {
1258
+ return Math.abs(this.x2 - this.x1);
1259
+ }
1260
+ get cx() {
1261
+ return (this.x1 + this.x2) / 2;
1262
+ }
1263
+ get cy() {
1264
+ return (this.y1 + this.y2) / 2;
1265
+ }
1266
+ constructor(e, t, n, r) {
1267
+ if (this.x1 = void 0, this.y1 = void 0, this.x2 = void 0, this.y2 = void 0, e > n) {
1268
+ let t = e;
1269
+ e = n, n = t;
1270
+ }
1271
+ if (t > r) {
1272
+ let e = t;
1273
+ t = r, r = e;
1274
+ }
1275
+ this.x1 = e, this.y1 = t, this.x2 = n, this.y2 = r;
1276
+ }
1277
+ static fromBox(t) {
1278
+ return new e(t.min.x, t.min.y, t.max.x, t.max.y);
1279
+ }
1280
+ static fromCxcywh(t, n, r, i) {
1281
+ return new e(t - r / 2, n - i / 2, t + r / 2, n + i / 2);
1282
+ }
1283
+ contains(e) {
1284
+ return e.x1 >= this.x1 && e.x2 <= this.x2 && e.y1 >= this.y1 && e.y2 <= this.y2;
1285
+ }
1286
+ intersects(e) {
1287
+ let t = Math.max(this.x1, e.x1), n = Math.min(this.x2, e.x2), r = Math.max(this.y1, e.y1), i = Math.min(this.y2, e.y2);
1288
+ return n >= t && i >= r;
1289
+ }
1290
+ getIntersection(t) {
1291
+ let n = Math.max(this.x1, t.x1), r = Math.min(this.x2, t.x2), i = Math.max(this.y1, t.y1), a = Math.min(this.y2, t.y2);
1292
+ return r >= n && a >= i ? new e(n, i, r, a) : new e(0, 0, 0, 0);
1293
+ }
1294
+ getRotated90() {
1295
+ return e.fromCxcywh(this.cx, this.cy, this.h, this.w);
1296
+ }
1297
+ normalize(t, n) {
1298
+ return new e(this.x1 / t, this.y1 / n, this.x2 / t, this.y2 / n);
1299
+ }
1300
+ withPadding(t, n = t) {
1301
+ return this.w < t * 2 || this.h < n * 2 ? this : e.fromCxcywh(this.cx, this.cy, this.w - t * 2, this.h - n * 2);
1302
+ }
1303
+ scale(t) {
1304
+ return new e(this.x1 * t, this.y1 * t, this.x2 * t, this.y2 * t);
1305
+ }
1306
+ getArea() {
1307
+ return this.w * this.h;
1308
+ }
1309
+ clone() {
1310
+ return new e(this.x1, this.y1, this.x2, this.y2);
1311
+ }
1312
+ translate(e, t) {
1313
+ return this.x1 += e, this.x2 += e, this.y1 += t, this.y2 += t, this;
1314
+ }
1315
+ equals(e) {
1316
+ return e.x1 === this.x1 && e.x2 === this.x2 && e.y1 === this.y1 && e.y2 === this.y2;
1317
+ }
1318
+ toString() {
1319
+ return this.x1 + "," + this.y1 + "," + this.w + "," + this.h;
1320
+ }
1321
+ containsPoint(e, t) {
1322
+ return e >= this.x1 && e <= this.x2 && t >= this.y1 && t <= this.y2;
1323
+ }
1324
+ };
1325
+ //#endregion
1326
+ export { hn as default };