@expofp/floorplan 3.3.4 → 3.3.6

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 (123) hide show
  1. package/dist/browser/{CookieConsent-BD8YYuAz.js → CookieConsent-DdzoxBfo.js} +7 -7
  2. package/dist/browser/{Debug-CTM7bwcB.js → Debug-B6QDpJxx.js} +6 -6
  3. package/dist/browser/{Demo-8RLpvYDl.js → Demo-CmoCmv3_.js} +8 -8
  4. package/dist/browser/{Free-D9owazfY.js → Free-6d3Z-hZo.js} +8 -8
  5. package/dist/browser/{Gallery-B_VEe-6K.js → Gallery-CqA_47ba.js} +9 -9
  6. package/dist/browser/{GpsLoader-zJZWRNUV.js → GpsLoader-Cy-uOINH.js} +9 -9
  7. package/dist/browser/{KioskStore-BTvpoCJ5.js → KioskStore-CtP1ygLF.js} +4 -4
  8. package/dist/browser/{Mapbox-C5s0yWnS.js → Mapbox-yT1ns7Om.js} +8 -8
  9. package/dist/browser/{Modal-C2P-Safy.js → Modal-DEpSL45b.js} +9 -9
  10. package/dist/browser/{SetKioskMode-DbRSyXis.js → SetKioskMode-bDu8HF9D.js} +7 -7
  11. package/dist/browser/{ShowKiosk-DvvNsJ8c.js → ShowKiosk-Bk-53zPJ.js} +9 -9
  12. package/dist/browser/{ThreeComponent-BP2wGaGL.js → ThreeComponent-Dhwt6SDZ.js} +9 -9
  13. package/dist/browser/{TouchHand-BiltNw_w.js → TouchHand-Bw0vu74f.js} +4 -4
  14. package/dist/browser/{ViewerMenuPanel-DvAFtsKx.js → ViewerMenuPanel-BBaD08Ti.js} +7 -7
  15. package/dist/browser/{add-debug-secret-listener-DHEcvtA7.js → add-debug-secret-listener-C2pzNRB7.js} +1 -1
  16. package/dist/browser/{boolean-editor-zBsLiQBV.js → boolean-editor-oIJWPAIC.js} +10 -10
  17. package/dist/browser/{bootIntercom-DOwpR7wA.js → bootIntercom-DJ1Wsw-t.js} +2 -2
  18. package/dist/browser/{box-_8KyVthZ.js → box-D9WeJqJ4.js} +5 -5
  19. package/dist/browser/{browser-B7rRKgxm.js → browser-tRBhScov.js} +2 -2
  20. package/dist/browser/bundle.json +58 -58
  21. package/dist/browser/{classnames-BbE3xWS9.js → classnames-Dd3Clkxo.js} +2 -2
  22. package/dist/browser/{client-ZIZPbd_y.js → client-BCjTE6Oe.js} +4 -4
  23. package/dist/browser/{components-CxP0qrt5.js → components-CIDKN5H0.js} +86 -86
  24. package/dist/browser/{data-BwmCMKib.js → data-DWKRaUiq.js} +3 -3
  25. package/dist/browser/{debug-overlay-CD1OCYlN.js → debug-overlay-C9zmB-NE.js} +11 -11
  26. package/dist/browser/{debug-ui-CwnXUUdQ.js → debug-ui-CWf5qkyG.js} +6 -6
  27. package/dist/browser/{dist-BVboNkqG.js → dist-BtTsP6ro.js} +5 -5
  28. package/dist/browser/{dist-B6Kvkpry.js → dist-DiA3okaC.js} +3 -3
  29. package/dist/browser/{dist-C1crA21V.js → dist-RhfKrh69.js} +6 -6
  30. package/dist/browser/{efp-debug-init-CawoA29J.js → efp-debug-init-Oz6z8V0O.js} +2 -2
  31. package/dist/browser/{enum-editor-DDiuz8v4.js → enum-editor-D_P2He0X.js} +11 -11
  32. package/dist/browser/{event-not-found-DXmhN-MG.js → event-not-found-CJZjC71b.js} +1 -1
  33. package/dist/browser/{exports-DxmlGvNc.js → exports-BHT2PwbT.js} +1 -1
  34. package/dist/browser/{favicon-CiNbY-5U.js → favicon-BhEzU7xm.js} +1 -1
  35. package/dist/browser/{fetch-retry.umd-B3Gup1vr.js → fetch-retry.umd-9oI2sMtE.js} +2 -2
  36. package/dist/browser/{flex-CexXP66N.js → flex-C82CsX0h.js} +6 -6
  37. package/dist/browser/{flex.props-DLRw9CIt.js → flex.props-BUgwoS24.js} +2 -2
  38. package/dist/browser/{floorplan.loader-D1X7IsEm.js → floorplan.loader-ZO27mgIv.js} +11 -11
  39. package/dist/browser/{floorplan.ready-B32jn3wC.js → floorplan.ready-ChOsbZoq.js} +11 -11
  40. package/dist/browser/{fuse-B5kCip9y.js → fuse-glosmX9A.js} +2 -2
  41. package/dist/browser/{i18n-B4OJR1P_.js → i18n-DzBoUseq.js} +3 -3
  42. package/dist/browser/index.js +12 -12
  43. package/dist/browser/{jsx-runtime-De0ydnJ4.js → jsx-runtime-DvVsGWXH.js} +2 -2
  44. package/dist/browser/{lib-DDsC1-MJ.js → lib-CjvNZqhE.js} +4 -4
  45. package/dist/browser/{main-ChyUxDJA.js → main-JYV2VtSZ.js} +1 -1
  46. package/dist/browser/{mobx-DbnxgSWu.js → mobx-ByoyhaK0.js} +4 -4
  47. package/dist/browser/{particles.min-YXbpub8s.js → particles.min-Cgx-yqV-.js} +2 -2
  48. package/dist/browser/{prop-types-Dv7mT1jM.js → prop-types-DzKB60lx.js} +2 -2
  49. package/dist/browser/{react-CHpF4LsC.js → react-C7hZG5Nz.js} +2 -2
  50. package/dist/browser/{react-dom-QQ4-yNjm.js → react-dom-C3yLDDYs.js} +3 -3
  51. package/dist/browser/{reset-all-settings-Cg_t_zGK.js → reset-all-settings-CCCs7lcd.js} +7 -7
  52. package/dist/browser/{rolldown-runtime-B9peA1Y2.js → rolldown-runtime-BmCOYztJ.js} +1 -1
  53. package/dist/browser/{settings-Be0SGjUE.js → settings-CWpivpyF.js} +2 -2
  54. package/dist/browser/{settings-item-DiHeZyGy.js → settings-item-DMU2itsx.js} +6 -6
  55. package/dist/browser/{storage-Dbmy0e3X.js → storage-CctEhEsx.js} +4 -4
  56. package/dist/browser/{store-B0U5c4wN.js → store-UEcKlmzw.js} +31 -25
  57. package/dist/browser/{string-editor-0xudUhbB.js → string-editor-DJ6T44VF.js} +8 -8
  58. package/dist/browser/{theme-t-nmlm7h.js → theme-BmYr43FR.js} +8 -8
  59. package/dist/browser/{ui-4ob-MDOh.js → ui-BHiesqpT.js} +8 -8
  60. package/dist/browser/{useRenderTarget-DAX0rrFI.js → useRenderTarget-C1SrYFsM.js} +4 -4
  61. package/dist/esm/components/Kiosk/SetKiosk/constants.d.ts +1 -1
  62. package/dist/esm/components/Kiosk/SetKiosk/constants.js +1 -1
  63. package/dist/esm/components/OverlayContainer.js +1 -1
  64. package/dist/esm/services/routing.js +1 -1
  65. package/dist/esm/store/SearchStore.js +1 -1
  66. package/dist/esm/store/init/init-ui.js +1 -1
  67. package/package.json +21 -4
  68. package/dist/esm/components/stories/Autocomplete.stories.d.ts +0 -6
  69. package/dist/esm/components/stories/Autocomplete.stories.js +0 -1
  70. package/dist/esm/components/stories/CookieConsent.stories.d.ts +0 -5
  71. package/dist/esm/components/stories/CookieConsent.stories.js +0 -1
  72. package/dist/esm/components/stories/EntityItem.stories.d.ts +0 -8
  73. package/dist/esm/components/stories/EntityItem.stories.js +0 -1
  74. package/dist/esm/components/stories/Gallery.stories.d.ts +0 -5
  75. package/dist/esm/components/stories/Gallery.stories.js +0 -1
  76. package/dist/esm/components/stories/MapControls.stories.d.ts +0 -5
  77. package/dist/esm/components/stories/MapControls.stories.js +0 -1
  78. package/dist/esm/components/stories/MarketMaterialList.stories.d.ts +0 -5
  79. package/dist/esm/components/stories/MarketMaterialList.stories.js +0 -1
  80. package/dist/esm/components/stories/Modal.stories.d.ts +0 -5
  81. package/dist/esm/components/stories/Modal.stories.js +0 -1
  82. package/dist/esm/components/stories/Overlay.stories.d.ts +0 -8
  83. package/dist/esm/components/stories/Overlay.stories.js +0 -1
  84. package/dist/esm/components/stories/RebookingNotes.stories.d.ts +0 -5
  85. package/dist/esm/components/stories/RebookingNotes.stories.js +0 -1
  86. package/dist/esm/components/stories/RebookingRadioGroup.stories.d.ts +0 -5
  87. package/dist/esm/components/stories/RebookingRadioGroup.stories.js +0 -1
  88. package/dist/esm/components/stories/RouteQR.stories.d.ts +0 -7
  89. package/dist/esm/components/stories/RouteQR.stories.js +0 -1
  90. package/dist/esm/components/stories/Share.stories.d.ts +0 -5
  91. package/dist/esm/components/stories/Share.stories.js +0 -1
  92. package/dist/esm/components/stories/SidebarActions.stories.d.ts +0 -5
  93. package/dist/esm/components/stories/SidebarActions.stories.js +0 -1
  94. package/dist/esm/components/stories/Toast.stories.d.ts +0 -5
  95. package/dist/esm/components/stories/Toast.stories.js +0 -1
  96. package/dist/esm/components/stories/WayInformation.stories.d.ts +0 -5
  97. package/dist/esm/components/stories/WayInformation.stories.js +0 -1
  98. package/dist/esm/components/stories/WayfindingTemplate.stories.d.ts +0 -5
  99. package/dist/esm/components/stories/WayfindingTemplate.stories.js +0 -1
  100. package/dist/esm/ui/Alert/Alert.stories.d.ts +0 -6
  101. package/dist/esm/ui/Alert/Alert.stories.js +0 -1
  102. package/dist/esm/ui/Badge/Badge.stories.d.ts +0 -5
  103. package/dist/esm/ui/Badge/Badge.stories.js +0 -1
  104. package/dist/esm/ui/Button/Button.stories.d.ts +0 -5
  105. package/dist/esm/ui/Button/Button.stories.js +0 -1
  106. package/dist/esm/ui/Checkbox/Checkbox.stories.d.ts +0 -5
  107. package/dist/esm/ui/Checkbox/Checkbox.stories.js +0 -1
  108. package/dist/esm/ui/CheckboxButton/CheckboxButton.stories.d.ts +0 -5
  109. package/dist/esm/ui/CheckboxButton/CheckboxButton.stories.js +0 -1
  110. package/dist/esm/ui/HighlightText/HighlightText.stories.d.ts +0 -7
  111. package/dist/esm/ui/HighlightText/HighlightText.stories.js +0 -1
  112. package/dist/esm/ui/Radio/Radio.stories.d.ts +0 -18
  113. package/dist/esm/ui/Radio/Radio.stories.js +0 -1
  114. package/dist/esm/ui/Spinner/Spinner.stories.d.ts +0 -5
  115. package/dist/esm/ui/Spinner/Spinner.stories.js +0 -1
  116. package/dist/esm/ui/ToggleButton/ToggleButton.stories.d.ts +0 -5
  117. package/dist/esm/ui/ToggleButton/ToggleButton.stories.js +0 -1
  118. package/dist/esm/ui/ToggleSwitch/ToggleSwitch.stories.d.ts +0 -5
  119. package/dist/esm/ui/ToggleSwitch/ToggleSwitch.stories.js +0 -1
  120. package/dist/esm/ui/TouchHand/TouchHand.stories.d.ts +0 -5
  121. package/dist/esm/ui/TouchHand/TouchHand.stories.js +0 -1
  122. package/dist/esm/ui/WayfindingFloorSelector/WayfindingFloorSelector.stories.d.ts +0 -5
  123. package/dist/esm/ui/WayfindingFloorSelector/WayfindingFloorSelector.stories.js +0 -1
@@ -1,14 +1,14 @@
1
1
  (function() {
2
2
  try {
3
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.3.4" };
4
+ e.SENTRY_RELEASE = { id: "3.3.6" };
5
5
  var t = new e.Error().stack;
6
6
  t && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[t] = "9018d3ae-7c84-46db-a739-8c0076e3e53c", e._sentryDebugIdIdentifier = "sentry-dbid-9018d3ae-7c84-46db-a739-8c0076e3e53c");
7
7
  } catch {}
8
8
  })();
9
- import { r as e } from "./rolldown-runtime-B9peA1Y2.js";
10
- import { t } from "./react-CHpF4LsC.js";
11
- import { t as n } from "./jsx-runtime-De0ydnJ4.js";
9
+ import { r as e } from "./rolldown-runtime-BmCOYztJ.js";
10
+ import { t } from "./react-C7hZG5Nz.js";
11
+ import { t as n } from "./jsx-runtime-DvVsGWXH.js";
12
12
  //#region ../debug/src/lib/settings/setting-registry.ts
13
13
  var r = /* @__PURE__ */ e(t(), 1), i = [], a = [], o = n(), s = "efp-local-storage";
14
14
  function c(e) {
@@ -63,7 +63,7 @@ function l(e) {
63
63
  //#region ../debug/src/lib/settings/register-boolean-setting.ts
64
64
  function u(e) {
65
65
  var t;
66
- let n = r.lazy(() => import("./boolean-editor-zBsLiQBV.js").then((e) => ({ default: e.BooleanEditor })));
66
+ let n = r.lazy(() => import("./boolean-editor-oIJWPAIC.js").then((e) => ({ default: e.BooleanEditor })));
67
67
  return c({
68
68
  key: e.key,
69
69
  default: (t = e.default) == null ? !1 : t,
@@ -74,7 +74,7 @@ function u(e) {
74
74
  //#endregion
75
75
  //#region ../debug/src/lib/settings/register-enum-setting.ts
76
76
  function d(e) {
77
- let t = r.lazy(() => import("./enum-editor-DDiuz8v4.js").then((e) => ({ default: e.EnumEditor })));
77
+ let t = r.lazy(() => import("./enum-editor-D_P2He0X.js").then((e) => ({ default: e.EnumEditor })));
78
78
  return c({
79
79
  key: e.key,
80
80
  default: e.default,
@@ -87,7 +87,7 @@ function d(e) {
87
87
  //#region ../debug/src/lib/settings/register-string-setting.ts
88
88
  function f(e) {
89
89
  var t;
90
- let n = r.lazy(() => import("./string-editor-0xudUhbB.js").then((e) => ({ default: e.StringEditor })));
90
+ let n = r.lazy(() => import("./string-editor-DJ6T44VF.js").then((e) => ({ default: e.StringEditor })));
91
91
  return c({
92
92
  key: e.key,
93
93
  default: (t = e.default) == null ? "" : t,
@@ -2,7 +2,7 @@
2
2
  (function() {
3
3
  try {
4
4
  var e = typeof window < "u" ? window : typeof global < "u" ? global : typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : {};
5
- e.SENTRY_RELEASE = { id: "3.3.4" };
5
+ e.SENTRY_RELEASE = { id: "3.3.6" };
6
6
  var t = new e.Error().stack;
7
7
  t && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[t] = "4a11513d-0070-4205-b636-a85d593cfa99", e._sentryDebugIdIdentifier = "sentry-dbid-4a11513d-0070-4205-b636-a85d593cfa99");
8
8
  } catch {}
@@ -1,9 +1,9 @@
1
1
  (function() {
2
2
  try {
3
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.3.4" };
4
+ e.SENTRY_RELEASE = { id: "3.3.6" };
5
5
  var t = new e.Error().stack;
6
6
  t && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[t] = "0a3595ef-9aa6-450c-ac03-85d9c3295c13", e._sentryDebugIdIdentifier = "sentry-dbid-0a3595ef-9aa6-450c-ac03-85d9c3295c13");
7
7
  } catch {}
8
8
  })();
9
- import "./reset-all-settings-Cg_t_zGK.js";
9
+ import "./reset-all-settings-CCCs7lcd.js";
@@ -1,16 +1,16 @@
1
1
  (function() {
2
2
  try {
3
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.3.4" };
4
+ e.SENTRY_RELEASE = { id: "3.3.6" };
5
5
  var t = new e.Error().stack;
6
6
  t && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[t] = "c46648a1-34c4-459f-9b55-eb6ec77e8222", e._sentryDebugIdIdentifier = "sentry-dbid-c46648a1-34c4-459f-9b55-eb6ec77e8222");
7
7
  } catch {}
8
8
  })();
9
- import { r as e } from "./rolldown-runtime-B9peA1Y2.js";
10
- import { t } from "./react-CHpF4LsC.js";
11
- import { t as n } from "./jsx-runtime-De0ydnJ4.js";
12
- import { c as r, l as i, s as a, t as o, v as s } from "./box-_8KyVthZ.js";
13
- import { t as c } from "./classnames-BbE3xWS9.js";
9
+ import { r as e } from "./rolldown-runtime-BmCOYztJ.js";
10
+ import { t } from "./react-C7hZG5Nz.js";
11
+ import { t as n } from "./jsx-runtime-DvVsGWXH.js";
12
+ import { c as r, l as i, s as a, t as o, v as s } from "./box-D9WeJqJ4.js";
13
+ import { t as c } from "./classnames-Dd3Clkxo.js";
14
14
  //#region ../../node_modules/.pnpm/@radix-ui+themes@3.3.0_@types+react-dom@19.2.3_@types+react@19.2.15__@types+react@19.2._ac899fea414b44484ec07dc0c111a714/node_modules/@radix-ui/themes/dist/esm/components/separator.props.js
15
15
  var l = /* @__PURE__ */ e(t()), u = /* @__PURE__ */ e(c()), d = {
16
16
  orientation: {
@@ -1,12 +1,12 @@
1
1
  (function() {
2
2
  try {
3
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.3.4" };
4
+ e.SENTRY_RELEASE = { id: "3.3.6" };
5
5
  var t = new e.Error().stack;
6
- t && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[t] = "6ec3b64b-a97c-4315-8892-0e342e0c7085", e._sentryDebugIdIdentifier = "sentry-dbid-6ec3b64b-a97c-4315-8892-0e342e0c7085");
6
+ t && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[t] = "0f52c202-e8d3-46ca-87e8-d34c3dd63f92", e._sentryDebugIdIdentifier = "sentry-dbid-0f52c202-e8d3-46ca-87e8-d34c3dd63f92");
7
7
  } catch {}
8
8
  })();
9
- import { F as e, c as t, st as n } from "./i18n-B4OJR1P_.js";
9
+ import { F as e, c as t, st as n } from "./i18n-DzBoUseq.js";
10
10
  //#region src/tools/rebookingUrl.ts
11
11
  var r = "rt";
12
12
  function i() {
@@ -117,7 +117,7 @@ if (typeof window < "u") {
117
117
  var C, w;
118
118
  ((w = (C = window).efpDebugUi) == null ? C.efpDebugUi = {} : w)[e] = { type: "boolean" };
119
119
  }
120
- var T = t && localStorage.getItem("efp:debug") === "true", E = "expofp-kiosk", D = "interactive-kiosk", O = "Interactive Kiosk", k = "kiosk_";
120
+ var T = t && localStorage.getItem("efp:debug") === "true", E = "expofp-kiosk", D = "interactive-kiosk", O = "Your Location", k = "kiosk_";
121
121
  //#endregion
122
122
  //#region src/components/Kiosk/SetKiosk/storage.ts
123
123
  async function A(e) {
@@ -2,18 +2,18 @@ function __vite_inject_css__(css, id, forceLightDom){ if (typeof document==='un
2
2
  (function() {
3
3
  try {
4
4
  var e = typeof window < "u" ? window : typeof global < "u" ? global : typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : {};
5
- e.SENTRY_RELEASE = { id: "3.3.4" };
5
+ e.SENTRY_RELEASE = { id: "3.3.6" };
6
6
  var t = new e.Error().stack;
7
- t && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[t] = "b671094a-73c5-4071-8d2c-6a0e0ae75c8b", e._sentryDebugIdIdentifier = "sentry-dbid-b671094a-73c5-4071-8d2c-6a0e0ae75c8b");
7
+ t && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[t] = "38a666db-4911-4780-a695-c5739ec1cabe", e._sentryDebugIdIdentifier = "sentry-dbid-38a666db-4911-4780-a695-c5739ec1cabe");
8
8
  } catch {}
9
9
  })();
10
- import { r as e, t } from "./rolldown-runtime-B9peA1Y2.js";
11
- import { t as n } from "./react-CHpF4LsC.js";
12
- import { t as r } from "./jsx-runtime-De0ydnJ4.js";
13
- import { t as i } from "./browser-B7rRKgxm.js";
14
- import { A as a, B as o, D as s, F as c, G as l, H as u, I as d, J as f, L as p, Q as m, R as h, U as g, V as _, X as v, Y as y, _ as b, a as x, b as S, c as C, d as w, f as T, g as E, h as D, it as O, k, l as ee, m as te, n as ne, nt as re, o as ie, p as ae, q as oe, r as se, rt as ce, s as A, st as j, t as le, tt as ue, u as M, v as de } from "./i18n-B4OJR1P_.js";
15
- import { C as fe, S as pe, _ as me, a as he, b as N, c as ge, d as _e, f as P, g as F, h as ve, i as ye, l as be, o as xe, s as Se, t as Ce, u as we, v as Te, w as Ee, x as De, y as Oe } from "./storage-Dbmy0e3X.js";
16
- import { t as ke } from "./classnames-BbE3xWS9.js";
10
+ import { r as e, t } from "./rolldown-runtime-BmCOYztJ.js";
11
+ import { t as n } from "./react-C7hZG5Nz.js";
12
+ import { t as r } from "./jsx-runtime-DvVsGWXH.js";
13
+ import { t as i } from "./browser-tRBhScov.js";
14
+ import { A as a, B as o, D as s, F as c, G as l, H as u, I as d, J as f, L as p, Q as m, R as h, U as g, V as _, X as v, Y as y, _ as b, a as x, b as S, c as C, d as w, f as T, g as E, h as D, it as O, k, l as ee, m as te, n as ne, nt as re, o as ie, p as ae, q as oe, r as se, rt as ce, s as A, st as j, t as le, tt as ue, u as M, v as de } from "./i18n-DzBoUseq.js";
15
+ import { C as fe, S as pe, _ as me, a as he, b as N, c as ge, d as _e, f as P, g as F, h as ve, i as ye, l as be, o as xe, s as Se, t as Ce, u as we, v as Te, w as Ee, x as De, y as Oe } from "./storage-CctEhEsx.js";
16
+ import { t as ke } from "./classnames-Dd3Clkxo.js";
17
17
  //#region ../../node_modules/.pnpm/mobx-react-lite@1.5.2_mobx@5.15.7_react@19.2.6/node_modules/mobx-react-lite/dist/index.module.js
18
18
  var Ae = /* @__PURE__ */ e(n());
19
19
  if (!Ae.useState) throw Error("mobx-react-lite requires React with Hooks support");
@@ -28741,33 +28741,35 @@ async function tA(e = eA) {
28741
28741
  var nA = $k(), rA;
28742
28742
  function iA(e) {
28743
28743
  let { uiState: t, exhibitorStore: n, searchStore: r } = e;
28744
- t.rootElement = window.__efpElement, c(t.rootElement.clientWidth, t.rootElement.clientHeight), rA = new nA.ResizeObserver((e) => {
28744
+ t.rootElement = window.__efpElement, l(t.rootElement.clientWidth, t.rootElement.clientHeight), rA = new nA.ResizeObserver((e) => {
28745
28745
  e.forEach((e) => {
28746
- c(e.contentRect.width, e.contentRect.height);
28746
+ l(e.contentRect.width, e.contentRect.height);
28747
28747
  });
28748
28748
  }), rA.observe(t.rootElement), ta && (t.previewExhibitor = n.exhibitorById.get(ta.id));
28749
28749
  let i = typeof matchMedia < "u" ? matchMedia(`(resolution: ${window.devicePixelRatio}dppx)`) : null;
28750
28750
  i && i.addEventListener && i.addEventListener("change", () => {
28751
28751
  t.devicePixelRatio = window.devicePixelRatio;
28752
- }), t.desiredOverlaySize = ta || !_e ? "full" : "medium", w(() => {
28752
+ });
28753
+ let a = ta || !_e ? "full" : "medium";
28754
+ R.isRebooking && t.list.type === "search" && !t.list.text && e.selectExhibitors(), t.desiredOverlaySize = a, w(() => {
28753
28755
  (t.searchFocused || t.menu) && t.overlayPosition !== "left" && (t.desiredOverlaySize = "full");
28754
28756
  }), w(() => {
28755
28757
  t.overlaySize !== "full" && t.menu && (t.menu = !1);
28756
- }), t.wsShown || (t.wsStarted = !0), t.kiosk = C && localStorage.getItem("kiosk") === "1", window.__resett = s;
28757
- function a() {
28758
+ }), t.wsShown || (t.wsStarted = !0), t.kiosk = C && localStorage.getItem("kiosk") === "1", window.__resett = c;
28759
+ function o() {
28758
28760
  e.reset();
28759
28761
  }
28760
- var o;
28761
- function s() {
28762
- t.kiosk && (j.log("zzz2", "reset timer"), clearTimeout(o), o = setTimeout(a, 3e4), t.inIdle = !1);
28762
+ var s;
28763
+ function c() {
28764
+ t.kiosk && (j.log("zzz2", "reset timer"), clearTimeout(s), s = setTimeout(o, 3e4), t.inIdle = !1);
28763
28765
  }
28764
28766
  w(() => {
28765
28767
  let e = t.list;
28766
28768
  e.type === "search" && (e.text === "kkiosk" ? t.kiosk = !0 : e.text === "nokkiosk" && (t.kiosk = !1));
28767
28769
  }), E(() => t.kiosk, (e) => {
28768
- C && (e ? (localStorage.setItem(u, "1"), s()) : localStorage.setItem(u, "0"));
28770
+ C && (e ? (localStorage.setItem(u, "1"), c()) : localStorage.setItem(u, "0"));
28769
28771
  }), C && t.setVisibility(JSON.parse(localStorage.getItem("___visibility")) || {});
28770
- function c(e, n) {
28772
+ function l(e, n) {
28771
28773
  b("uiState.screenSize", () => {
28772
28774
  t.screenSize = new Yk(e, n);
28773
28775
  });
@@ -31606,8 +31608,8 @@ function AP() {
31606
31608
  if (e.searchParams.delete("blue-dot"), n.length > 1) {
31607
31609
  var t;
31608
31610
  let e = (t = Q.layerStore.findLayer(n[2])) == null ? void 0 : t.name, r = new JN(Number(n[0]) || void 0, Number(n[1]) || void 0, e, void 0, Number(n[3]) || void 0, Number(n[4]) || void 0);
31609
- Q.layerStore.layersLoaded ? Q.routeStore.selectCurrentPosition(r, !1, 1) : E(() => Q.layerStore.layersLoaded, () => {
31610
- Q.routeStore.selectCurrentPosition(r, !1, 1);
31611
+ Q.layerStore.layersLoaded ? Q.routeStore.selectCurrentPosition(r, !0, 1) : E(() => Q.layerStore.layersLoaded, () => {
31612
+ Q.routeStore.selectCurrentPosition(r, !0, 1);
31611
31613
  });
31612
31614
  }
31613
31615
  wP(TP(e.search));
@@ -34373,7 +34375,7 @@ var qL = (UL = class {
34373
34375
  }
34374
34376
  async buildEngine() {
34375
34377
  try {
34376
- let { default: e } = await import("./fuse-B5kCip9y.js").then((e) => e.n);
34378
+ let { default: e } = await import("./fuse-glosmX9A.js").then((e) => e.n);
34377
34379
  b(() => {
34378
34380
  this.engine = new e([], {
34379
34381
  keys: this.keys,
@@ -34612,11 +34614,11 @@ var oR = class {
34612
34614
  return this.searchBoxMode === "search";
34613
34615
  }
34614
34616
  get shouldShowCloseButton() {
34615
- let { menu: e, details: t, list: n } = this.uiState;
34616
- return !this.shouldShowSearchInput || n.type === "sessions" || n.type === "tours" || n.type === "speakers" || n.type === "exhibitors" ? !0 : e || t !== null || !!this.searchText || this.isClearMode || this.isFocused;
34617
+ let { menu: e, details: t, list: n } = this.uiState, r = R.isRebooking && n.type === "exhibitors";
34618
+ return !this.shouldShowSearchInput || n.type === "sessions" || n.type === "tours" || n.type === "speakers" || n.type === "exhibitors" && !r ? !0 : e || t !== null || !!this.searchText || this.isClearMode || this.isFocused;
34617
34619
  }
34618
34620
  get closeButtonAction() {
34619
- return !this.shouldShowSearchInput || this.searchBoxMode === "details" || this.uiState.list.type === "sessions" || this.uiState.list.type === "speakers" || this.uiState.list.type === "exhibitors" ? "close" : this.searchText ? "clear" : "close";
34621
+ return !this.shouldShowSearchInput || this.searchBoxMode === "details" || this.uiState.list.type === "sessions" || this.uiState.list.type === "speakers" || this.uiState.list.type === "exhibitors" && !R.isRebooking ? "close" : this.searchText ? "clear" : "close";
34620
34622
  }
34621
34623
  get shouldShowShadow() {
34622
34624
  let { menu: e, details: t, list: n } = this.uiState, r = n.type === "search" && !!n.text;
@@ -34754,6 +34756,10 @@ var oR = class {
34754
34756
  return;
34755
34757
  }
34756
34758
  if (t.type === "exhibitors") {
34759
+ if (R.isRebooking) {
34760
+ this.searchBoxMode === "search" && this.searchText ? (this.setSearchText(""), this.isClearMode = !0, this.clearActiveFilters()) : this.resetSearchBox();
34761
+ return;
34762
+ }
34757
34763
  this.closeExhibitors();
34758
34764
  return;
34759
34765
  }
@@ -1,18 +1,18 @@
1
1
  (function() {
2
2
  try {
3
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.3.4" };
4
+ e.SENTRY_RELEASE = { id: "3.3.6" };
5
5
  var t = new e.Error().stack;
6
6
  t && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[t] = "cd480886-739a-4a03-b71c-754ed9c72382", e._sentryDebugIdIdentifier = "sentry-dbid-cd480886-739a-4a03-b71c-754ed9c72382");
7
7
  } catch {}
8
8
  })();
9
- import { r as e } from "./rolldown-runtime-B9peA1Y2.js";
10
- import { t } from "./react-CHpF4LsC.js";
11
- import { t as n } from "./jsx-runtime-De0ydnJ4.js";
12
- import { E as r, c as i, l as a, o, r as s, v as c } from "./box-_8KyVthZ.js";
13
- import { t as l } from "./classnames-BbE3xWS9.js";
14
- import { t as u } from "./flex.props-DLRw9CIt.js";
15
- import { t as d } from "./settings-item-DiHeZyGy.js";
9
+ import { r as e } from "./rolldown-runtime-BmCOYztJ.js";
10
+ import { t } from "./react-C7hZG5Nz.js";
11
+ import { t as n } from "./jsx-runtime-DvVsGWXH.js";
12
+ import { E as r, c as i, l as a, o, r as s, v as c } from "./box-D9WeJqJ4.js";
13
+ import { t as l } from "./classnames-Dd3Clkxo.js";
14
+ import { t as u } from "./flex.props-BUgwoS24.js";
15
+ import { t as d } from "./settings-item-DMU2itsx.js";
16
16
  //#region ../../node_modules/.pnpm/@radix-ui+themes@3.3.0_@types+react-dom@19.2.3_@types+react@19.2.15__@types+react@19.2._ac899fea414b44484ec07dc0c111a714/node_modules/@radix-ui/themes/dist/esm/components/text-field.props.js
17
17
  var f = {
18
18
  size: {
@@ -1,18 +1,18 @@
1
1
  (function() {
2
2
  try {
3
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.3.4" };
4
+ e.SENTRY_RELEASE = { id: "3.3.6" };
5
5
  var t = new e.Error().stack;
6
6
  t && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[t] = "dff1ee57-bb59-416e-95ac-bc354cf80471", e._sentryDebugIdIdentifier = "sentry-dbid-dff1ee57-bb59-416e-95ac-bc354cf80471");
7
7
  } catch {}
8
8
  })();
9
- import { r as e } from "./rolldown-runtime-B9peA1Y2.js";
10
- import { t } from "./react-CHpF4LsC.js";
11
- import { t as n } from "./jsx-runtime-De0ydnJ4.js";
12
- import { t as r } from "./react-dom-QQ4-yNjm.js";
13
- import { C as i, D as a, S as o, T as s, _ as c, a as l, g as u, w as d } from "./box-_8KyVthZ.js";
14
- import { c as f, i as p, n as m, o as h, r as g, s as _, t as v } from "./dist-C1crA21V.js";
15
- import { t as y } from "./classnames-BbE3xWS9.js";
9
+ import { r as e } from "./rolldown-runtime-BmCOYztJ.js";
10
+ import { t } from "./react-C7hZG5Nz.js";
11
+ import { t as n } from "./jsx-runtime-DvVsGWXH.js";
12
+ import { t as r } from "./react-dom-C3yLDDYs.js";
13
+ import { C as i, D as a, S as o, T as s, _ as c, a as l, g as u, w as d } from "./box-D9WeJqJ4.js";
14
+ import { c as f, i as p, n as m, o as h, r as g, s as _, t as v } from "./dist-RhfKrh69.js";
15
+ import { t as y } from "./classnames-Dd3Clkxo.js";
16
16
  //#region ../../node_modules/.pnpm/@radix-ui+react-visually-hidden@1.2.3_@types+react-dom@19.2.3_@types+react@19.2.15__@ty_df31f7659159064425103695f04b2f6c/node_modules/@radix-ui/react-visually-hidden/dist/index.mjs
17
17
  var b = /* @__PURE__ */ e(r(), 1), x = /* @__PURE__ */ e(t(), 1), S = n(), C = Object.freeze({
18
18
  position: "absolute",
@@ -1,17 +1,17 @@
1
1
  (function() {
2
2
  try {
3
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.3.4" };
4
+ e.SENTRY_RELEASE = { id: "3.3.6" };
5
5
  var t = new e.Error().stack;
6
6
  t && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[t] = "11c667ee-f279-40ae-b116-af84691ecf19", e._sentryDebugIdIdentifier = "sentry-dbid-11c667ee-f279-40ae-b116-af84691ecf19");
7
7
  } catch {}
8
8
  })();
9
- import { r as e } from "./rolldown-runtime-B9peA1Y2.js";
10
- import { i as t, r as n } from "./reset-all-settings-Cg_t_zGK.js";
11
- import { t as r } from "./jsx-runtime-De0ydnJ4.js";
12
- import "./settings-Be0SGjUE.js";
13
- import { t as i } from "./browser-B7rRKgxm.js";
14
- import { t as a } from "./add-debug-secret-listener-DHEcvtA7.js";
9
+ import { r as e } from "./rolldown-runtime-BmCOYztJ.js";
10
+ import { i as t, r as n } from "./reset-all-settings-CCCs7lcd.js";
11
+ import { t as r } from "./jsx-runtime-DvVsGWXH.js";
12
+ import "./settings-CWpivpyF.js";
13
+ import { t as i } from "./browser-tRBhScov.js";
14
+ import { t as a } from "./add-debug-secret-listener-C2pzNRB7.js";
15
15
  //#region ../debug/src/lib/ui/render-debug-ui.tsx
16
16
  var o = /* @__PURE__ */ e(i(), 1), s = r(), c = !1;
17
17
  function l() {
@@ -26,7 +26,7 @@ function l() {
26
26
  }
27
27
  });
28
28
  let i = async (t) => {
29
- let { DebugUi: n } = await import("./debug-ui-CwnXUUdQ.js"), { createRoot: i } = await import("./client-ZIZPbd_y.js").then((t) => /* @__PURE__ */ e(t.default, 1)), a = document.createElement("div");
29
+ let { DebugUi: n } = await import("./debug-ui-CWf5qkyG.js"), { createRoot: i } = await import("./client-BCjTE6Oe.js").then((t) => /* @__PURE__ */ e(t.default, 1)), a = document.createElement("div");
30
30
  document.body.appendChild(a), i(a).render(/* @__PURE__ */ (0, s.jsx)(n, {
31
31
  useDebugButtonState: r.useState,
32
32
  open: t
@@ -1,14 +1,14 @@
1
1
  (function() {
2
2
  try {
3
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.3.4" };
4
+ e.SENTRY_RELEASE = { id: "3.3.6" };
5
5
  var t = new e.Error().stack;
6
6
  t && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[t] = "efd08859-ff4a-4f73-977e-4ad657829cfc", e._sentryDebugIdIdentifier = "sentry-dbid-efd08859-ff4a-4f73-977e-4ad657829cfc");
7
7
  } catch {}
8
8
  })();
9
- import { r as e } from "./rolldown-runtime-B9peA1Y2.js";
10
- import { t } from "./react-CHpF4LsC.js";
11
- import { s as n } from "./store-B0U5c4wN.js";
9
+ import { r as e } from "./rolldown-runtime-BmCOYztJ.js";
10
+ import { t } from "./react-C7hZG5Nz.js";
11
+ import { s as n } from "./store-UEcKlmzw.js";
12
12
  //#region src/utils/getRenderTargetFromRoot.ts
13
13
  var r = /* @__PURE__ */ e(t(), 1);
14
14
  function i(e) {
@@ -1,5 +1,5 @@
1
1
  export declare const KIOSK_STORAGE_KEY = "expofp-kiosk";
2
2
  export declare const KIOSK_SLUG = "interactive-kiosk";
3
- export declare const KIOSK_NAME = "Interactive Kiosk";
3
+ export declare const KIOSK_NAME = "Your Location";
4
4
  export declare const KIOSK_URL_PARAM_PREFIX = "kiosk_";
5
5
  //# sourceMappingURL=constants.d.ts.map
@@ -1 +1 @@
1
- export const KIOSK_STORAGE_KEY="expofp-kiosk",KIOSK_SLUG="interactive-kiosk",KIOSK_NAME="Interactive Kiosk",KIOSK_URL_PARAM_PREFIX="kiosk_";
1
+ export const KIOSK_STORAGE_KEY="expofp-kiosk",KIOSK_SLUG="interactive-kiosk",KIOSK_NAME="Your Location",KIOSK_URL_PARAM_PREFIX="kiosk_";
@@ -1 +1 @@
1
- import{jsx as o,jsxs as S}from"react/jsx-runtime";import{useMemo as l,useCallback as a}from"react";import{observer as h}from"mobx-react-lite";import{uiState as e}from"../store";import k from"./Overlay";import C from"./Menu";import z from"./Search";import g from"./Exhibitor";import O from"./Booth/Booth";import b from"./Bookmarks";import x from"./Visited";import M from"./Language";import R from"./Category";import A from"./Wayfinding";import P from"./Filter";import E from"./Sessions";import j from"./Speakers";import w from"./Tours";import F from"./TourPoints";import B from"./RoutePlanner/RoutePlanner";import I from"./Event";import _ from"./Speaker";import K from"classnames";const T={full:"full",medium:"medium",small:"medium"},D=t=>T[t],L=h(({isGDPR:t,allowConsent:m})=>{const n=a(r=>{e.desiredOverlaySize=r},[]),c=a(r=>{e.setOverlayScrolled(r)},[]),d=D(e.overlaySize),f=e.selectedRoute?.from&&e.selectedRoute?.to,p=e.list.type==="search"&&!e.details?9:f?7:3,u=e.fullSizeOffset,v=l(()=>[e.list.type,e.details],[e.list.type,e.details]),y=l(()=>{const r={"-backdrop":e.canvasStarted&&e.shouldUseBackdrop&&!e.dimmed&&!e.galleryActive,"-no-transition":e.dimmed,"-gallery-active":e.galleryActive,collapsed:e.overlayCollapsed,kiosk:e.kiosk,start:e.overlayPosition==="left",bottom:e.overlayPosition!=="left",[e.overlaySize]:!0},s=K(r),i=e.overlayInterfaceClasses.join(" ");return i?`${s} ${i}`:s},[e.canvasStarted,e.shouldUseBackdrop,e.dimmed,e.galleryActive,e.overlayCollapsed,e.kiosk,e.inIdle,e.setKioskModeEnabled,e.overlayPosition,e.overlaySize,e.overlayInterfaceClasses]);return S(k,{open:e.isOverlayOpen,size:d,particles:e.isFeaturedExhibitorActive,className:y,mediumSizeMultiplier:p,fullSizeOffset:u,disableDrag:e.viewerMode&&e.menu,forceFull:e.viewerMode&&e.menu,scrollResetKey:v,onChangeSize:n,onScrollStateChange:c,children:[o(C,{isGDPR:t,allowConsent:m}),o(z,{}),o(g,{}),o(O,{}),o(b,{}),o(x,{}),o(M,{}),o(R,{}),o(A,{}),o(P,{}),o(E,{showFilters:!0}),o(j,{showFilters:!0}),o(w,{}),o(F,{}),o(B,{}),o(I,{}),o(_,{})]})});export default L;
1
+ import{jsx as o,jsxs as S}from"react/jsx-runtime";import{useMemo as l,useCallback as a}from"react";import{observer as h}from"mobx-react-lite";import{uiState as e}from"../store";import g from"./Overlay";import k from"./Menu";import C from"./Search";import z from"./Exhibitor";import O from"./Booth/Booth";import b from"./Bookmarks";import x from"./Visited";import M from"./Language";import R from"./Category";import P from"./Wayfinding";import A from"./Filter";import E from"./Sessions";import j from"./Speakers";import w from"./Tours";import F from"./TourPoints";import B from"./RoutePlanner/RoutePlanner";import I from"./Event";import _ from"./Speaker";import K from"classnames";import L from"../data";const T={full:"full",medium:"medium",small:"medium"},D=r=>T[r],N=()=>e.list.type==="search"||L.isRebooking&&e.list.type==="exhibitors",U=r=>r?7:e.details?3:N()?9:3,V=h(({isGDPR:r,allowConsent:m})=>{const n=a(t=>{e.desiredOverlaySize=t},[]),c=a(t=>{e.setOverlayScrolled(t)},[]),f=D(e.overlaySize),d=e.selectedRoute?.from&&e.selectedRoute?.to,p=U(!!d),u=e.fullSizeOffset,v=l(()=>[e.list.type,e.details],[e.list.type,e.details]),y=l(()=>{const t={"-backdrop":e.canvasStarted&&e.shouldUseBackdrop&&!e.dimmed&&!e.galleryActive,"-no-transition":e.dimmed,"-gallery-active":e.galleryActive,collapsed:e.overlayCollapsed,kiosk:e.kiosk,start:e.overlayPosition==="left",bottom:e.overlayPosition!=="left",[e.overlaySize]:!0},i=K(t),s=e.overlayInterfaceClasses.join(" ");return s?`${i} ${s}`:i},[e.canvasStarted,e.shouldUseBackdrop,e.dimmed,e.galleryActive,e.overlayCollapsed,e.kiosk,e.inIdle,e.setKioskModeEnabled,e.overlayPosition,e.overlaySize,e.overlayInterfaceClasses]);return S(g,{open:e.isOverlayOpen,size:f,particles:e.isFeaturedExhibitorActive,className:y,mediumSizeMultiplier:p,fullSizeOffset:u,disableDrag:e.viewerMode&&e.menu,forceFull:e.viewerMode&&e.menu,scrollResetKey:v,onChangeSize:n,onScrollStateChange:c,children:[o(k,{isGDPR:r,allowConsent:m}),o(C,{}),o(z,{}),o(O,{}),o(b,{}),o(x,{}),o(M,{}),o(R,{}),o(P,{}),o(A,{}),o(E,{showFilters:!0}),o(j,{showFilters:!0}),o(w,{}),o(F,{}),o(B,{}),o(I,{}),o(_,{})]})});export default V;
@@ -1 +1 @@
1
- import{createBrowserHistory as te}from"history";import{autorun as O,reaction as k}from"mobx";import{handleCustomCommand as oe}from"../utils/customCommands";import{BUILD_ROUTE_KEY as se,KIOSK_ENABLE_KEY as A,MAP_SETTINGS_KEY as re,PREVIEW_MODE_QUERY as E,PREVIEW_MODE_STORAGE_KEY as F,SEPARATOR as R,PATHWAY_KEY as N,PLANNER_KEY as P,PLANNER_SOURCE_KEY as W,PLANNER_FROM_KEY as $,LANG_KEY as K,UI_SCALE_PARAM_KEY as Y,UI_SCALE_RESET_PARAM_KEY as V,VIEWER_MODE_QUERY as I,VIEWER_MODE_STORAGE_KEY as H,LANGUAGE_TYPE as x}from"../constants";import v from"../data";import s,{uiState as i}from"../store";import{CurrentPosition as ae,extractRoute as ie,findBooth as le}from"../store/RouteStore";import{setConsentSettings as G}from"../tools/gtag";import U from"../tools/logger";import{isLocalStorageAvailable as L}from"../utils/localStorage";import{areLayersEnabled as ne}from"../utils/areLayersEnabled";import ce from"../core/Rect";import{getMostFrequent as ue}from"../utils/getMostFrequent";import{runInAction as D}from"mobx";import{recoverKioskFromUrlPrams as he}from"../components/Kiosk/recoverKioskFromUrlPrams";import{hasLocale as fe,setLocale as de}from"../utils/i18n";let m=!1,C=!1,z=null,j=null,q=null,Q;const h=te(),_=window.location.pathname,S=[];export function getLocationHistory(){return S}function b(t){return _+t}function me(t){m||h.push(b(t))}export function historyReplace(t){m||h.push(b(t))}function f(t){return t.replace(/=&/g,"&").replace(/=$/,"")}function J(){let t="";const l=i.selectedExhibitor,a=i.selectedBooth,e=i.selectedEventItem,o=i.selectedRoute,r=i.selectedSpeaker,n=i.setKioskModeEnabled;if(i.list.type==="route-planner"&&!l&&!a&&!e){const d=s.routePlannerStore;if(d.source==="bookmarks")t=`${P}&${W}=bookmarks`;else{const w=d.items.map(g=>g.entity.slug).filter(Boolean).join(R);t=`${P}=${w}`}const p=d.startPoint?.slug;p&&(t+=`&${$}=${p}`)}else if(o&&!i.isMultiPointRoute){const d=o.from?`:${o.from.slug}`:"",p=o.to?`:${o.to.slug}`:"",w=s.routeStore.onlyAccessible?":true":":false",g=o.waypoints?.map(u=>`:${u.slug}`).join("");t=`route${p}${d}${w}${g||""}`}else if(l)t=l.slug;else if(a)t=a.slug;else if(e)t=e.slug;else if(r)t=r.slug;else if(n)t="";else switch(i.list.type){case"bookmarks":t="bookmarks";break;case"visited":t="visited";break;case"category":t=i.selectedCategory.slug;break;case"search":t=i.list.text||"";break;case x:t=x;break;case"filter":t=`${i.list.query.key}=${i.list.query.value}`;break;case"sessions":t="sessions";break;case"exhibitors":t="exhibitors";break;case"speakers":t="speakers";break;case"tours":t="tours";break;case"multi-point-tour":t=`tour=${i.list.tourId}`;break;default:throw new Error("Unkown list.type")}if(C)return;const c=t?"?"+encodeURIComponent(t):"";h.location.search!==c&&(l!==z||a!==j||e!==q?me(c):historyReplace(c),z=l,j=a,q=e)}function X(){const t=i.selectedExhibitor,l=i.selectedEventItem,a=i.selectedSpeaker;let e="";t?e=t.name:l?e=l.name:a?e=a.name:i.list.type==="search"&&i.list.text?e="`"+(i.list.text||"")+"`":i.list.type==="multi-point-tour"&&i.tourTitle&&(e=i.tourTitle),e.length&&(e+=" \u2013 "),e+=v.title,v.subtitle&&(e+=" \u2013 "+v.subtitle),e+=" \u2013 Expo Floor Plan by ExpoFP",document.title=e}function B(){const t=h.location.search.length>1?decodeURIComponent(h.location.search.substring(1)):"";return oe(t)}function y(){const t=h.location.search.length>1?decodeURIComponent(h.location.search.substring(1)):"";C=!0;const l=s.boothStore.booths.find(e=>e.slug?.toLowerCase()===t?.toLowerCase()||e.externalId?.toLowerCase()===t?.toLowerCase()||e.externalId?.toLowerCase()?.replace(/\s+/g,"")===t?.toLowerCase()),a=new URLSearchParams(decodeURIComponent(window.location.search));if(he(a),pe(a),!B())if(a.has(A)){const e=a.get(A);e==="1"?i.kiosk=!0:e==="0"&&(i.kiosk=!1,i.resetUIScale())}else if(t==="tours")s.selectTours();else if(t.startsWith("tour=")){const e=t.split("=")[1],o=s.toursStore.getTourById(e);o?s.toursStore.launchTour(o,o.name,o.description):(console.warn(`Route with id "${e}" not found`),s.selectTours())}else if(a.has(P)){const e=a.get(W),o=a.get($),r=o?le(o):null;if(e==="bookmarks")s.routePlannerStore.launchFromBookmarks(r??void 0);else{const n=(a.get(P)||"").split(R).filter(Boolean);s.routePlannerStore.launchFromSlugs(n,r??void 0)}}else if(t.startsWith("route")){const e=t.split(R);s.routeStore.setOnlyAccessible(e[3]==="true");const o=ie(e[2],e[1],e.slice(4));s.routeStore.selectRoute(o);const n=e.slice(4).length>0;s.uiState.setIsMultiPointRoute(n);const d=new URLSearchParams(window.location.search).get("title");d&&s.uiState.setRouteTitle(d)}else if(t==="bookmarks")s.selectBookmarks();else if(t==="visited")s.selectVisited();else if(t===x)s.selectLanguage();else if(a.has(K)){const e=a.get(K)?.toLowerCase();fe(e)&&de(e)}else if(t==="sessions")s.selectSessions();else if(t==="exhibitors")s.selectExhibitors();else if(t==="speakers")s.selectSpeakers();else if(t==="-pdf")s.uiState.printingPdf=!0;else if(t.startsWith("hide"))s.uiState.setVisibility(new URLSearchParams(t).get("hide").split(",").filter(Boolean).reduce((e,o)=>({...e,[o]:!1}),{}));else if(l)setTimeout(()=>s.selectBooth(l),250);else if(t===se)s.uiState.startBuildRoute();else if(a.get(N)){const e=a.get(N),o=a.get("booths")?.split(",")||[],r=a.get("exhibitors")?.split(",")||[],n=a.get("tour");if(n){const u=s.toursStore.getTourById(n);u&&D(()=>{s.uiState.setTourTitle(u.name),s.uiState.setTourDescription(u.description),s.uiState.setIsMultiPointTour(!0),s.uiState.setMultiPointTourList(u.id)})}const c=s.boothStore.booths,d=s.exhibitorStore.exhibitors,p=c.filter(u=>o.includes(u.externalId)),w=d.filter(u=>r.includes(u.externalId)).flatMap(u=>u.booths),g=[...p,...w];if(ne()){const u=g.map(ee=>ee.layer.name),M=ue(u);M&&s.fp.activateFloor({name:M})}(o.length>0||r.length>0)&&s.fp.highlightEntities([...o,...r]),s.layerStore.showPathWay(e),g.length>0&&D(()=>{s.uiState.moveToRect=ce.fromMultiple(g.map(u=>u.rect).filter(Boolean)),s.uiState.rollReset=!0})}else{const e=s.eventStore.eventItems.find(o=>o.slug?.toLowerCase()===t?.toLowerCase()||o.externalId?.toLowerCase()===t?.toLowerCase());if(e)s.selectEventItem(e,!0);else{const o=s.exhibitorStore.exhibitors.find(r=>r.slug?.toLowerCase()===t?.toLowerCase()||r.externalId?.toLowerCase()===t?.toLowerCase());if(t.startsWith("exhibitors")){const r=t.split("=")[1].split(",");setTimeout(()=>s.fp.selectExhibitor(r),250)}else if(o)setTimeout(()=>s.clickExhibitor(o),250);else if(t.includes("=")&&(t.startsWith("categories=")||t.startsWith("poiType=")))U.log("Skipping filter parameter in dispatchFromUrl:",t);else{const n=s.categoryStore.categories.find(c=>c.slug===t);if(n)s.selectCategory(n);else{const c=s.speakerStore.findBySlug(t);c?s.selectSpeaker(c,!0):t.includes("heatmap=true")||s.searchStore.selectSearch(t)}}}}C=!1,J(),X()}function T(){const t=h.location.search;if(t.includes("heatmap")){const e=new URL(window.location.href);if(e.searchParams.get("heatmap")==="true")if(e.searchParams.get("type")==="yah"){let r=f(e.search);m=!0,historyReplace(r),s.uiState.heatmapYah=!0,s.uiState.monochrome=!0,s.uiState.hideLogoInBooth=!0,s.uiState.hideHeaderLogo=!0,s.uiState.disableBookmarked=!0}else{e.searchParams.delete("heatmap");let r=f(e.search);m=!0,historyReplace(r),s.uiState.heatmap=!0}}if(t.startsWith("?preview="))historyReplace("?");else if(t.startsWith("?b="))historyReplace("?bookmarks");else if(t.startsWith("?ba=")){const e=new URL(window.location.href),o=parseInt(e.searchParams.get("ba")),r=s.exhibitorStore.exhibitorById.get(o);historyReplace(r?"?"+r.slug:"?bookmarks")}else t.startsWith("?mapbox=false")&&(s.mapboxStore.isMapbox=!1,historyReplace("?"));if(t.includes("blue-dot")){const e=new URL(window.location.href),o=e.searchParams.get("blue-dot").split(",");if(e.searchParams.delete("blue-dot"),o.length>1){const n=s.layerStore.findLayer(o[2])?.name,c=new ae(Number(o[0])||void 0,Number(o[1])||void 0,n,void 0,Number(o[3])||void 0,Number(o[4])||void 0);s.layerStore.layersLoaded?s.routeStore.selectCurrentPosition(c,!1,1):k(()=>s.layerStore.layersLoaded,()=>{s.routeStore.selectCurrentPosition(c,!1,1)})}let r=f(e.search);historyReplace(r)}if(t.includes("copy_exh")){const e=new URL(window.location.href),o=e.searchParams.get("copy_exh");e.searchParams.delete("copy_exh"),historyReplace("?")}if(t.includes("noOverlay")){const e=new URL(window.location.href),o=e.searchParams.get("noOverlay");e.searchParams.delete("noOverlay");let r=f(e.search);o==="true"?s.uiState.hideOverlay=!0:o==="false"&&(s.uiState.hideOverlay=!1),historyReplace(r)}if(t.includes("allowConsent")){const e=new URL(window.location.href),o=e.searchParams.get("allowConsent");e.searchParams.delete("allowConsent");const r=f(e.search);o==="true"?G(!0):o==="false"&&G(!1),historyReplace(r)}if(t.includes("hideHeaderLogo")){const e=new URL(window.location.href),o=e.searchParams.get("hideHeaderLogo");e.searchParams.delete("hideHeaderLogo");const r=f(e.search);o==="true"&&(i.hideHeaderLogo=!0),historyReplace(r)}if(t.includes("hideLogoInBooth")){const e=new URL(window.location.href),o=e.searchParams.get("hideLogoInBooth");e.searchParams.delete("hideLogoInBooth");const r=f(e.search);o==="true"&&(i.hideLogoInBooth=!0),historyReplace(r)}if(t.includes("disableFeatured")){const e=new URL(window.location.href),o=e.searchParams.get("disableFeatured");e.searchParams.delete("disableFeatured");const r=f(e.search);o==="true"&&s.exhibitorStore.exhibitors.forEach(n=>n.featured=!1),historyReplace(r)}if(t.includes("disableBookmarked")){const e=new URL(window.location.href),o=e.searchParams.get("disableBookmarked");e.searchParams.delete("disableBookmarked");const r=f(e.search);o==="true"&&(i.disableBookmarked=!0),historyReplace(r)}if(t.includes("disableGps")){const e=new URL(window.location.href),o=e.searchParams.get("disableGps");e.searchParams.delete("disableGps");const r=f(e.search);o==="true"&&s.routeStore.setGpsTrackingEnabled(!1),historyReplace(r)}if(t.includes("monochrome")){const e=new URL(window.location.href),o=e.searchParams.get("monochrome");e.searchParams.delete("monochrome");const r=f(e.search);o==="true"&&(i.monochrome=!0),historyReplace(r)}if((t.startsWith("?fbclid")||t.startsWith("?_ga"))&&historyReplace("?"),t.includes(I)){const e=new URL(window.location.href),o=e.searchParams.get(I);o==="1"||o==="true"?L&&localStorage.setItem(H,"1"):(o==="0"||o==="false")&&L&&localStorage.removeItem(H),e.searchParams.delete(I),historyReplace(f(e.search))}if(t.includes(E)){const e=new URL(window.location.href),o=e.searchParams.get(E);o==="true"?L&&localStorage.setItem(F,"1"):o==="false"&&L&&localStorage.removeItem(F),e.searchParams.delete(E),historyReplace(f(e.search))}if(i.previewExhibitor&&historyReplace("?"+i.previewExhibitor.slug),h.location.search.includes("&")||h.location.search.includes("%26")){let e=h.location.search;e=e.startsWith("?")?e.slice(1):e;const o=e.includes("&")?"&":"%26",n=e.split(o).map(c=>{const d=s.exhibitorStore.exhibitors.find(p=>p.slug===c||p.externalId===c);return d?d.name:c}).join("&");historyReplace("?"+n)}const l=new URLSearchParams(window.location.search);if(l.has(V)){s.uiState.resetUIScale();const e=new URL(window.location.href);e.searchParams.delete(V);let o=f(e.search);m=!0,historyReplace(o),m=!1}const a=l.get(Y);if(a){const e=a.replace(",","."),o=parseFloat(e);!isNaN(o)&&o>=.8&&o<=1.4?s.uiState.setUIScale(o,!0):U.warn(`Invalid ui-scale parameter: ${a}. Must be a number between 0.8 and 1.4.`);const r=new URL(window.location.href);r.searchParams.delete(Y);let n=f(r.search);m=!0,historyReplace(n),m=!1}}export function initRouting(t=!1){m=t,!m&&b(h.location.search)===_&&S.push(b(h.location.search)),Q=h.listen((l,a)=>{m||(S.push(b(l.search)),U.log("history",a,l),a==="POP"&&y())}),T(),B(),k(()=>s.layerStore.layersLoaded,()=>{s.urlFilterManager&&!s.urlFilterManager.isInitialized&&s.urlFilterManager.initialize(),y(),O(X),O(J),i.viewerMode&&(i.menu=!0)})}export function applyParameters(t=""){historyReplace("?"+decodeURIComponent(t.toString())),s.layerStore.layersLoaded?(T(),y()):(B(),k(()=>s.layerStore.layersLoaded,()=>{T(),y()}))}export function destroyHistory(){Q()}export function goBack(){if(console.log("goBack"),S.length>1){S.pop();const l=S[S.length-1].replace(_,"");return m=!0,h.replace(l),m=!1,y(),!0}else return h.go(-1),!1}function pe(t){try{let l={};const a=i.defaultMapSettings;if(new Set(t.keys()).size)l=Z(Object.fromEntries(t.entries()),a);else{const e=sessionStorage.getItem(re);e&&(l=Z(JSON.parse(e),a))}if(i.setMapSettings(l),l.z){const e=s.layerStore.layers.find(o=>o.name===l.z);e&&s.layerStore.updateVisibility(e,!0)}}catch(l){console.error("Failed to process or save map settings.",l)}}function Z(t,l){const a={};for(const e in t){if(!Object.prototype.hasOwnProperty.call(l,e)||!Object.prototype.hasOwnProperty.call(t,e))continue;const o=t[e];typeof l[e]=="number"&&typeof o=="string"?a[e]=parseFloat(o):a[e]=o}return a}
1
+ import{createBrowserHistory as te}from"history";import{autorun as O,reaction as k}from"mobx";import{handleCustomCommand as oe}from"../utils/customCommands";import{BUILD_ROUTE_KEY as se,KIOSK_ENABLE_KEY as A,MAP_SETTINGS_KEY as re,PREVIEW_MODE_QUERY as E,PREVIEW_MODE_STORAGE_KEY as F,SEPARATOR as R,PATHWAY_KEY as N,PLANNER_KEY as P,PLANNER_SOURCE_KEY as W,PLANNER_FROM_KEY as $,LANG_KEY as K,UI_SCALE_PARAM_KEY as Y,UI_SCALE_RESET_PARAM_KEY as V,VIEWER_MODE_QUERY as I,VIEWER_MODE_STORAGE_KEY as H,LANGUAGE_TYPE as x}from"../constants";import v from"../data";import s,{uiState as i}from"../store";import{CurrentPosition as ae,extractRoute as ie,findBooth as ne}from"../store/RouteStore";import{setConsentSettings as G}from"../tools/gtag";import U from"../tools/logger";import{isLocalStorageAvailable as L}from"../utils/localStorage";import{areLayersEnabled as le}from"../utils/areLayersEnabled";import ce from"../core/Rect";import{getMostFrequent as ue}from"../utils/getMostFrequent";import{runInAction as D}from"mobx";import{recoverKioskFromUrlPrams as he}from"../components/Kiosk/recoverKioskFromUrlPrams";import{hasLocale as fe,setLocale as de}from"../utils/i18n";let m=!1,C=!1,z=null,j=null,q=null,Q;const h=te(),_=window.location.pathname,S=[];export function getLocationHistory(){return S}function b(t){return _+t}function me(t){m||h.push(b(t))}export function historyReplace(t){m||h.push(b(t))}function f(t){return t.replace(/=&/g,"&").replace(/=$/,"")}function J(){let t="";const n=i.selectedExhibitor,a=i.selectedBooth,e=i.selectedEventItem,o=i.selectedRoute,r=i.selectedSpeaker,l=i.setKioskModeEnabled;if(i.list.type==="route-planner"&&!n&&!a&&!e){const d=s.routePlannerStore;if(d.source==="bookmarks")t=`${P}&${W}=bookmarks`;else{const w=d.items.map(g=>g.entity.slug).filter(Boolean).join(R);t=`${P}=${w}`}const p=d.startPoint?.slug;p&&(t+=`&${$}=${p}`)}else if(o&&!i.isMultiPointRoute){const d=o.from?`:${o.from.slug}`:"",p=o.to?`:${o.to.slug}`:"",w=s.routeStore.onlyAccessible?":true":":false",g=o.waypoints?.map(u=>`:${u.slug}`).join("");t=`route${p}${d}${w}${g||""}`}else if(n)t=n.slug;else if(a)t=a.slug;else if(e)t=e.slug;else if(r)t=r.slug;else if(l)t="";else switch(i.list.type){case"bookmarks":t="bookmarks";break;case"visited":t="visited";break;case"category":t=i.selectedCategory.slug;break;case"search":t=i.list.text||"";break;case x:t=x;break;case"filter":t=`${i.list.query.key}=${i.list.query.value}`;break;case"sessions":t="sessions";break;case"exhibitors":t="exhibitors";break;case"speakers":t="speakers";break;case"tours":t="tours";break;case"multi-point-tour":t=`tour=${i.list.tourId}`;break;default:throw new Error("Unkown list.type")}if(C)return;const c=t?"?"+encodeURIComponent(t):"";h.location.search!==c&&(n!==z||a!==j||e!==q?me(c):historyReplace(c),z=n,j=a,q=e)}function X(){const t=i.selectedExhibitor,n=i.selectedEventItem,a=i.selectedSpeaker;let e="";t?e=t.name:n?e=n.name:a?e=a.name:i.list.type==="search"&&i.list.text?e="`"+(i.list.text||"")+"`":i.list.type==="multi-point-tour"&&i.tourTitle&&(e=i.tourTitle),e.length&&(e+=" \u2013 "),e+=v.title,v.subtitle&&(e+=" \u2013 "+v.subtitle),e+=" \u2013 Expo Floor Plan by ExpoFP",document.title=e}function B(){const t=h.location.search.length>1?decodeURIComponent(h.location.search.substring(1)):"";return oe(t)}function y(){const t=h.location.search.length>1?decodeURIComponent(h.location.search.substring(1)):"";C=!0;const n=s.boothStore.booths.find(e=>e.slug?.toLowerCase()===t?.toLowerCase()||e.externalId?.toLowerCase()===t?.toLowerCase()||e.externalId?.toLowerCase()?.replace(/\s+/g,"")===t?.toLowerCase()),a=new URLSearchParams(decodeURIComponent(window.location.search));if(he(a),pe(a),!B())if(a.has(A)){const e=a.get(A);e==="1"?i.kiosk=!0:e==="0"&&(i.kiosk=!1,i.resetUIScale())}else if(t==="tours")s.selectTours();else if(t.startsWith("tour=")){const e=t.split("=")[1],o=s.toursStore.getTourById(e);o?s.toursStore.launchTour(o,o.name,o.description):(console.warn(`Route with id "${e}" not found`),s.selectTours())}else if(a.has(P)){const e=a.get(W),o=a.get($),r=o?ne(o):null;if(e==="bookmarks")s.routePlannerStore.launchFromBookmarks(r??void 0);else{const l=(a.get(P)||"").split(R).filter(Boolean);s.routePlannerStore.launchFromSlugs(l,r??void 0)}}else if(t.startsWith("route")){const e=t.split(R);s.routeStore.setOnlyAccessible(e[3]==="true");const o=ie(e[2],e[1],e.slice(4));s.routeStore.selectRoute(o);const l=e.slice(4).length>0;s.uiState.setIsMultiPointRoute(l);const d=new URLSearchParams(window.location.search).get("title");d&&s.uiState.setRouteTitle(d)}else if(t==="bookmarks")s.selectBookmarks();else if(t==="visited")s.selectVisited();else if(t===x)s.selectLanguage();else if(a.has(K)){const e=a.get(K)?.toLowerCase();fe(e)&&de(e)}else if(t==="sessions")s.selectSessions();else if(t==="exhibitors")s.selectExhibitors();else if(t==="speakers")s.selectSpeakers();else if(t==="-pdf")s.uiState.printingPdf=!0;else if(t.startsWith("hide"))s.uiState.setVisibility(new URLSearchParams(t).get("hide").split(",").filter(Boolean).reduce((e,o)=>({...e,[o]:!1}),{}));else if(n)setTimeout(()=>s.selectBooth(n),250);else if(t===se)s.uiState.startBuildRoute();else if(a.get(N)){const e=a.get(N),o=a.get("booths")?.split(",")||[],r=a.get("exhibitors")?.split(",")||[],l=a.get("tour");if(l){const u=s.toursStore.getTourById(l);u&&D(()=>{s.uiState.setTourTitle(u.name),s.uiState.setTourDescription(u.description),s.uiState.setIsMultiPointTour(!0),s.uiState.setMultiPointTourList(u.id)})}const c=s.boothStore.booths,d=s.exhibitorStore.exhibitors,p=c.filter(u=>o.includes(u.externalId)),w=d.filter(u=>r.includes(u.externalId)).flatMap(u=>u.booths),g=[...p,...w];if(le()){const u=g.map(ee=>ee.layer.name),M=ue(u);M&&s.fp.activateFloor({name:M})}(o.length>0||r.length>0)&&s.fp.highlightEntities([...o,...r]),s.layerStore.showPathWay(e),g.length>0&&D(()=>{s.uiState.moveToRect=ce.fromMultiple(g.map(u=>u.rect).filter(Boolean)),s.uiState.rollReset=!0})}else{const e=s.eventStore.eventItems.find(o=>o.slug?.toLowerCase()===t?.toLowerCase()||o.externalId?.toLowerCase()===t?.toLowerCase());if(e)s.selectEventItem(e,!0);else{const o=s.exhibitorStore.exhibitors.find(r=>r.slug?.toLowerCase()===t?.toLowerCase()||r.externalId?.toLowerCase()===t?.toLowerCase());if(t.startsWith("exhibitors")){const r=t.split("=")[1].split(",");setTimeout(()=>s.fp.selectExhibitor(r),250)}else if(o)setTimeout(()=>s.clickExhibitor(o),250);else if(t.includes("=")&&(t.startsWith("categories=")||t.startsWith("poiType=")))U.log("Skipping filter parameter in dispatchFromUrl:",t);else{const l=s.categoryStore.categories.find(c=>c.slug===t);if(l)s.selectCategory(l);else{const c=s.speakerStore.findBySlug(t);c?s.selectSpeaker(c,!0):t.includes("heatmap=true")||s.searchStore.selectSearch(t)}}}}C=!1,J(),X()}function T(){const t=h.location.search;if(t.includes("heatmap")){const e=new URL(window.location.href);if(e.searchParams.get("heatmap")==="true")if(e.searchParams.get("type")==="yah"){let r=f(e.search);m=!0,historyReplace(r),s.uiState.heatmapYah=!0,s.uiState.monochrome=!0,s.uiState.hideLogoInBooth=!0,s.uiState.hideHeaderLogo=!0,s.uiState.disableBookmarked=!0}else{e.searchParams.delete("heatmap");let r=f(e.search);m=!0,historyReplace(r),s.uiState.heatmap=!0}}if(t.startsWith("?preview="))historyReplace("?");else if(t.startsWith("?b="))historyReplace("?bookmarks");else if(t.startsWith("?ba=")){const e=new URL(window.location.href),o=parseInt(e.searchParams.get("ba")),r=s.exhibitorStore.exhibitorById.get(o);historyReplace(r?"?"+r.slug:"?bookmarks")}else t.startsWith("?mapbox=false")&&(s.mapboxStore.isMapbox=!1,historyReplace("?"));if(t.includes("blue-dot")){const e=new URL(window.location.href),o=e.searchParams.get("blue-dot").split(",");if(e.searchParams.delete("blue-dot"),o.length>1){const l=s.layerStore.findLayer(o[2])?.name,c=new ae(Number(o[0])||void 0,Number(o[1])||void 0,l,void 0,Number(o[3])||void 0,Number(o[4])||void 0);s.layerStore.layersLoaded?s.routeStore.selectCurrentPosition(c,!0,1):k(()=>s.layerStore.layersLoaded,()=>{s.routeStore.selectCurrentPosition(c,!0,1)})}let r=f(e.search);historyReplace(r)}if(t.includes("copy_exh")){const e=new URL(window.location.href),o=e.searchParams.get("copy_exh");e.searchParams.delete("copy_exh"),historyReplace("?")}if(t.includes("noOverlay")){const e=new URL(window.location.href),o=e.searchParams.get("noOverlay");e.searchParams.delete("noOverlay");let r=f(e.search);o==="true"?s.uiState.hideOverlay=!0:o==="false"&&(s.uiState.hideOverlay=!1),historyReplace(r)}if(t.includes("allowConsent")){const e=new URL(window.location.href),o=e.searchParams.get("allowConsent");e.searchParams.delete("allowConsent");const r=f(e.search);o==="true"?G(!0):o==="false"&&G(!1),historyReplace(r)}if(t.includes("hideHeaderLogo")){const e=new URL(window.location.href),o=e.searchParams.get("hideHeaderLogo");e.searchParams.delete("hideHeaderLogo");const r=f(e.search);o==="true"&&(i.hideHeaderLogo=!0),historyReplace(r)}if(t.includes("hideLogoInBooth")){const e=new URL(window.location.href),o=e.searchParams.get("hideLogoInBooth");e.searchParams.delete("hideLogoInBooth");const r=f(e.search);o==="true"&&(i.hideLogoInBooth=!0),historyReplace(r)}if(t.includes("disableFeatured")){const e=new URL(window.location.href),o=e.searchParams.get("disableFeatured");e.searchParams.delete("disableFeatured");const r=f(e.search);o==="true"&&s.exhibitorStore.exhibitors.forEach(l=>l.featured=!1),historyReplace(r)}if(t.includes("disableBookmarked")){const e=new URL(window.location.href),o=e.searchParams.get("disableBookmarked");e.searchParams.delete("disableBookmarked");const r=f(e.search);o==="true"&&(i.disableBookmarked=!0),historyReplace(r)}if(t.includes("disableGps")){const e=new URL(window.location.href),o=e.searchParams.get("disableGps");e.searchParams.delete("disableGps");const r=f(e.search);o==="true"&&s.routeStore.setGpsTrackingEnabled(!1),historyReplace(r)}if(t.includes("monochrome")){const e=new URL(window.location.href),o=e.searchParams.get("monochrome");e.searchParams.delete("monochrome");const r=f(e.search);o==="true"&&(i.monochrome=!0),historyReplace(r)}if((t.startsWith("?fbclid")||t.startsWith("?_ga"))&&historyReplace("?"),t.includes(I)){const e=new URL(window.location.href),o=e.searchParams.get(I);o==="1"||o==="true"?L&&localStorage.setItem(H,"1"):(o==="0"||o==="false")&&L&&localStorage.removeItem(H),e.searchParams.delete(I),historyReplace(f(e.search))}if(t.includes(E)){const e=new URL(window.location.href),o=e.searchParams.get(E);o==="true"?L&&localStorage.setItem(F,"1"):o==="false"&&L&&localStorage.removeItem(F),e.searchParams.delete(E),historyReplace(f(e.search))}if(i.previewExhibitor&&historyReplace("?"+i.previewExhibitor.slug),h.location.search.includes("&")||h.location.search.includes("%26")){let e=h.location.search;e=e.startsWith("?")?e.slice(1):e;const o=e.includes("&")?"&":"%26",l=e.split(o).map(c=>{const d=s.exhibitorStore.exhibitors.find(p=>p.slug===c||p.externalId===c);return d?d.name:c}).join("&");historyReplace("?"+l)}const n=new URLSearchParams(window.location.search);if(n.has(V)){s.uiState.resetUIScale();const e=new URL(window.location.href);e.searchParams.delete(V);let o=f(e.search);m=!0,historyReplace(o),m=!1}const a=n.get(Y);if(a){const e=a.replace(",","."),o=parseFloat(e);!isNaN(o)&&o>=.8&&o<=1.4?s.uiState.setUIScale(o,!0):U.warn(`Invalid ui-scale parameter: ${a}. Must be a number between 0.8 and 1.4.`);const r=new URL(window.location.href);r.searchParams.delete(Y);let l=f(r.search);m=!0,historyReplace(l),m=!1}}export function initRouting(t=!1){m=t,!m&&b(h.location.search)===_&&S.push(b(h.location.search)),Q=h.listen((n,a)=>{m||(S.push(b(n.search)),U.log("history",a,n),a==="POP"&&y())}),T(),B(),k(()=>s.layerStore.layersLoaded,()=>{s.urlFilterManager&&!s.urlFilterManager.isInitialized&&s.urlFilterManager.initialize(),y(),O(X),O(J),i.viewerMode&&(i.menu=!0)})}export function applyParameters(t=""){historyReplace("?"+decodeURIComponent(t.toString())),s.layerStore.layersLoaded?(T(),y()):(B(),k(()=>s.layerStore.layersLoaded,()=>{T(),y()}))}export function destroyHistory(){Q()}export function goBack(){if(console.log("goBack"),S.length>1){S.pop();const n=S[S.length-1].replace(_,"");return m=!0,h.replace(n),m=!1,y(),!0}else return h.go(-1),!1}function pe(t){try{let n={};const a=i.defaultMapSettings;if(new Set(t.keys()).size)n=Z(Object.fromEntries(t.entries()),a);else{const e=sessionStorage.getItem(re);e&&(n=Z(JSON.parse(e),a))}if(i.setMapSettings(n),n.z){const e=s.layerStore.layers.find(o=>o.name===n.z);e&&s.layerStore.updateVisibility(e,!0)}}catch(n){console.error("Failed to process or save map settings.",n)}}function Z(t,n){const a={};for(const e in t){if(!Object.prototype.hasOwnProperty.call(n,e)||!Object.prototype.hasOwnProperty.call(t,e))continue;const o=t[e];typeof n[e]=="number"&&typeof o=="string"?a[e]=parseFloat(o):a[e]=o}return a}
@@ -1 +1 @@
1
- import{__esDecorate as s,__runInitializers as u}from"tslib";import{action as c,computed as o,observable as d}from"mobx";import{t as n}from"../utils/i18n";import le from"../data";import re from"../tools/settings";import{sanitizeSearch as ce}from"../utils/sanitizeText";import{Route as S}from"./RouteStore";import{goBack as f}from"../services/routing";import{MOBILE_BREAKPOINT as he,LANGUAGE_TYPE as ne}from"../constants";class i{static closeDetails(r){return r.details?(r.details=null,!0):!1}static closeMultiPointTour(r){return r.rootStore.fp.hidePathways(),!0}static clearSearchAndFocus(r){return r.searchText?(r.setSearchText(""),r.setFocused(!0),!0):!1}static returnToSearch(r,h=!1){r.list={type:"search",text:"",focused:h}}static returnToSessions(r,h=!1){r.list={type:"sessions",text:"",focused:h}}static returnToTours(r,h=!1){r.list={type:"tours",text:"",focused:h}}static openMenu(r){r.menu=!0}static closeMenu(r){r.menu=!1}static clearListScroll(r,h){r.clearListScroll(h)}static resetActiveListIndex(r){r.activeListIndex=-1}}let ue=(()=>{let a=[],r,h=[],p=[],m,g=[],x=[],_,B=[],y=[],k,v=[],F=[],b,T,M,I,C,A,w,z,O,L,E,P,W,D,U,j,G,K,N,R,X,Y,H,V,$,q,J,Q,Z,ee,te,se,ae,ie;return class{static{const t=typeof Symbol=="function"&&Symbol.metadata?Object.create(null):void 0;r=[d],m=[d],_=[d],k=[d],b=[o],T=[o],M=[o],I=[o],C=[o],A=[o],w=[o],z=[o],O=[o],L=[o],E=[o],P=[o],W=[o],D=[o],U=[c],j=[c],G=[c],K=[c],N=[c],R=[c],X=[c],Y=[c],H=[c],V=[c],$=[c],q=[c],J=[c],Q=[c],Z=[o],ee=[c],te=[o],se=[o],ae=[o],ie=[o],s(this,null,b,{kind:"getter",name:"searchBoxConfig",static:!1,private:!1,access:{has:e=>"searchBoxConfig"in e,get:e=>e.searchBoxConfig},metadata:t},null,a),s(this,null,T,{kind:"getter",name:"searchBoxMode",static:!1,private:!1,access:{has:e=>"searchBoxMode"in e,get:e=>e.searchBoxMode},metadata:t},null,a),s(this,null,M,{kind:"getter",name:"searchBoxTitle",static:!1,private:!1,access:{has:e=>"searchBoxTitle"in e,get:e=>e.searchBoxTitle},metadata:t},null,a),s(this,null,I,{kind:"getter",name:"searchBoxSubtitle",static:!1,private:!1,access:{has:e=>"searchBoxSubtitle"in e,get:e=>e.searchBoxSubtitle},metadata:t},null,a),s(this,null,C,{kind:"getter",name:"searchBoxBadge",static:!1,private:!1,access:{has:e=>"searchBoxBadge"in e,get:e=>e.searchBoxBadge},metadata:t},null,a),s(this,null,A,{kind:"getter",name:"searchBoxIcon",static:!1,private:!1,access:{has:e=>"searchBoxIcon"in e,get:e=>e.searchBoxIcon},metadata:t},null,a),s(this,null,w,{kind:"getter",name:"searchBoxActions",static:!1,private:!1,access:{has:e=>"searchBoxActions"in e,get:e=>e.searchBoxActions},metadata:t},null,a),s(this,null,z,{kind:"getter",name:"shouldShowSearchInput",static:!1,private:!1,access:{has:e=>"shouldShowSearchInput"in e,get:e=>e.shouldShowSearchInput},metadata:t},null,a),s(this,null,O,{kind:"getter",name:"shouldShowCloseButton",static:!1,private:!1,access:{has:e=>"shouldShowCloseButton"in e,get:e=>e.shouldShowCloseButton},metadata:t},null,a),s(this,null,L,{kind:"getter",name:"closeButtonAction",static:!1,private:!1,access:{has:e=>"closeButtonAction"in e,get:e=>e.closeButtonAction},metadata:t},null,a),s(this,null,E,{kind:"getter",name:"shouldShowShadow",static:!1,private:!1,access:{has:e=>"shouldShowShadow"in e,get:e=>e.shouldShowShadow},metadata:t},null,a),s(this,null,P,{kind:"getter",name:"placeholder",static:!1,private:!1,access:{has:e=>"placeholder"in e,get:e=>e.placeholder},metadata:t},null,a),s(this,null,W,{kind:"getter",name:"searchBoxClass",static:!1,private:!1,access:{has:e=>"searchBoxClass"in e,get:e=>e.searchBoxClass},metadata:t},null,a),s(this,null,D,{kind:"getter",name:"ariaLabel",static:!1,private:!1,access:{has:e=>"ariaLabel"in e,get:e=>e.ariaLabel},metadata:t},null,a),s(this,null,U,{kind:"method",name:"selectSearch",static:!1,private:!1,access:{has:e=>"selectSearch"in e,get:e=>e.selectSearch},metadata:t},null,a),s(this,null,j,{kind:"method",name:"selectSearchAndFocus",static:!1,private:!1,access:{has:e=>"selectSearchAndFocus"in e,get:e=>e.selectSearchAndFocus},metadata:t},null,a),s(this,null,G,{kind:"method",name:"setSearchText",static:!1,private:!1,access:{has:e=>"setSearchText"in e,get:e=>e.setSearchText},metadata:t},null,a),s(this,null,K,{kind:"method",name:"setFocused",static:!1,private:!1,access:{has:e=>"setFocused"in e,get:e=>e.setFocused},metadata:t},null,a),s(this,null,N,{kind:"method",name:"handleBackAction",static:!1,private:!1,access:{has:e=>"handleBackAction"in e,get:e=>e.handleBackAction},metadata:t},null,a),s(this,null,R,{kind:"method",name:"closeSearch",static:!1,private:!1,access:{has:e=>"closeSearch"in e,get:e=>e.closeSearch},metadata:t},null,a),s(this,null,X,{kind:"method",name:"clearActiveFilters",static:!1,private:!1,access:{has:e=>"clearActiveFilters"in e,get:e=>e.clearActiveFilters},metadata:t},null,a),s(this,null,Y,{kind:"method",name:"resetSearchButtonState",static:!1,private:!1,access:{has:e=>"resetSearchButtonState"in e,get:e=>e.resetSearchButtonState},metadata:t},null,a),s(this,null,H,{kind:"method",name:"handleSearchAction",static:!1,private:!1,access:{has:e=>"handleSearchAction"in e,get:e=>e.handleSearchAction},metadata:t},null,a),s(this,null,V,{kind:"method",name:"openOverlayWithoutInputFocus",static:!1,private:!1,access:{has:e=>"openOverlayWithoutInputFocus"in e,get:e=>e.openOverlayWithoutInputFocus},metadata:t},null,a),s(this,null,$,{kind:"method",name:"closeSessions",static:!1,private:!1,access:{has:e=>"closeSessions"in e,get:e=>e.closeSessions},metadata:t},null,a),s(this,null,q,{kind:"method",name:"closeExhibitors",static:!1,private:!1,access:{has:e=>"closeExhibitors"in e,get:e=>e.closeExhibitors},metadata:t},null,a),s(this,null,J,{kind:"method",name:"resetSearchBox",static:!1,private:!1,access:{has:e=>"resetSearchBox"in e,get:e=>e.resetSearchBox},metadata:t},null,a),s(this,null,Q,{kind:"method",name:"syncWithUIState",static:!1,private:!1,access:{has:e=>"syncWithUIState"in e,get:e=>e.syncWithUIState},metadata:t},null,a),s(this,null,Z,{kind:"getter",name:"actionButtonIcon",static:!1,private:!1,access:{has:e=>"actionButtonIcon"in e,get:e=>e.actionButtonIcon},metadata:t},null,a),s(this,null,ee,{kind:"method",name:"clearAndSelectSearch",static:!1,private:!1,access:{has:e=>"clearAndSelectSearch"in e,get:e=>e.clearAndSelectSearch},metadata:t},null,a),s(this,null,te,{kind:"getter",name:"backMode",static:!1,private:!1,access:{has:e=>"backMode"in e,get:e=>e.backMode},metadata:t},null,a),s(this,null,se,{kind:"getter",name:"isMobileDetailsMode",static:!1,private:!1,access:{has:e=>"isMobileDetailsMode"in e,get:e=>e.isMobileDetailsMode},metadata:t},null,a),s(this,null,ae,{kind:"getter",name:"shouldShowTitle",static:!1,private:!1,access:{has:e=>"shouldShowTitle"in e,get:e=>e.shouldShowTitle},metadata:t},null,a),s(this,null,ie,{kind:"getter",name:"searchState",static:!1,private:!1,access:{has:e=>"searchState"in e,get:e=>e.searchState},metadata:t},null,a),s(null,null,r,{kind:"field",name:"searchText",static:!1,private:!1,access:{has:e=>"searchText"in e,get:e=>e.searchText,set:(e,l)=>{e.searchText=l}},metadata:t},h,p),s(null,null,m,{kind:"field",name:"isFocused",static:!1,private:!1,access:{has:e=>"isFocused"in e,get:e=>e.isFocused,set:(e,l)=>{e.isFocused=l}},metadata:t},g,x),s(null,null,_,{kind:"field",name:"isClearMode",static:!1,private:!1,access:{has:e=>"isClearMode"in e,get:e=>e.isClearMode,set:(e,l)=>{e.isClearMode=l}},metadata:t},B,y),s(null,null,k,{kind:"field",name:"skipInputFocus",static:!1,private:!1,access:{has:e=>"skipInputFocus"in e,get:e=>e.skipInputFocus,set:(e,l)=>{e.skipInputFocus=l}},metadata:t},v,F),t&&Object.defineProperty(this,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:t})}rootStore=u(this,a);searchText=u(this,h,"");isFocused=(u(this,p),u(this,g,!1));isClearMode=(u(this,x),u(this,B,!1));skipInputFocus=(u(this,y),u(this,v,!1));constructor(t){u(this,F),this.rootStore=t}get uiState(){return this.rootStore.uiState}get searchBoxConfig(){return this.uiState.searchBoxConfig}get searchBoxMode(){return this.searchBoxConfig.mode}get searchBoxTitle(){return this.searchBoxConfig.title}get searchBoxSubtitle(){return this.searchBoxConfig.subtitle}get searchBoxBadge(){return this.searchBoxConfig.badge}get searchBoxIcon(){return this.searchBoxConfig.icon}get searchBoxActions(){return this.uiState.searchBoxActions}get shouldShowSearchInput(){return this.searchBoxMode==="search"}get shouldShowCloseButton(){const{menu:t,details:e,list:l}=this.uiState;return!this.shouldShowSearchInput||l.type==="sessions"||l.type==="tours"||l.type==="speakers"||l.type==="exhibitors"?!0:t||e!==null||!!this.searchText||this.isClearMode||this.isFocused}get closeButtonAction(){return!this.shouldShowSearchInput||this.searchBoxMode==="details"||this.uiState.list.type==="sessions"||this.uiState.list.type==="speakers"||this.uiState.list.type==="exhibitors"?"close":this.searchText?"clear":"close"}get shouldShowShadow(){const{menu:t,details:e,list:l}=this.uiState,oe=l.type==="search"&&!!l.text;return!(this.rootStore.fp.alwaysShowSidebar||t||e!==null||l.type!=="search"||oe||this.isFocused||this.uiState.heatmap)}get placeholder(){const{list:t,heatmapYah:e}=this.uiState;return t.type==="sessions"?n("Search sessions"):t.type==="tours"?n("Search Guided Tours"):t.type==="exhibitors"?n("Search exhibitors"):t.type==="speakers"?n("Search speakers"):re.EXPO.startsWith("lenzerheidemotorclassics")?"SUCHE":re.EXPO.startsWith("jetlag")?"Search location or artist":e?n("Find values greater than"):this.uiState.hasAppliedFilters?n("Search"):le.searchText||n("Search")}get searchBoxClass(){return{"is-details":this.searchBoxMode==="details"&&!(this.uiState.details instanceof S),"is-interface":this.searchBoxMode==="interface","has-shadow":this.shouldShowShadow,"has-subtitle":!!this.searchBoxConfig.subtitle,"has-badge":!!this.searchBoxConfig.badge,"has-icon":!!this.searchBoxConfig.icon,"is-overlay-full":this.uiState.isOverlayOpen&&this.uiState.overlaySize==="full","is-featured-exhibitor":this.uiState.isFeaturedExhibitorActive,"is-route":this.uiState.details instanceof S,"is-guided-tours":this.uiState.isGuidedToursActive,"is-overlay-scrolled":this.uiState.isOverlayScrolled,"overlay-pulse":this.uiState.kiosk&&this.uiState.inIdle&&!this.uiState.setKioskModeEnabled}}get ariaLabel(){return!this.shouldShowSearchInput||this.searchBoxMode==="details"?n("Close"):this.searchText?n("Clear search"):n("Close")}selectSearch(t){window.__resett&&window.__resett(),this.uiState.details=null;const e=ce(t||"",Object.keys(this.uiState.mapSettings).map(l=>`${l}=`));this.setSearchText(e),this.uiState.activeListIndex=-1}selectSearchAndFocus(t){this.selectSearch(t),this.setFocused(!0)}setSearchText(t){this.searchText=t,this.uiState.hasAppliedFilters?this.rootStore.moveToList():this.uiState.centerMap=!0,this.uiState.activeListIndex=t?0:-1,this.uiState.list.type!=="sessions"&&this.uiState.list.type!=="tours"&&this.uiState.list.type!=="speakers"&&this.uiState.list.type!=="exhibitors"?this.uiState.list={type:"search",text:t,focused:this.isFocused}:this.uiState.list.type==="exhibitors"&&(this.uiState.list={type:"exhibitors",text:t,focused:this.isFocused}),this.uiState.searchClearMode=this.isClearMode}setFocused(t){this.isFocused=t,this.isClearMode=!1,this.skipInputFocus=!1,this.uiState.searchFocused=t,this.uiState.searchClearMode=!1,this.uiState.desiredOverlaySize="full"}handleBackAction(){const{uiState:t}=this,{list:e}=t;if(t.desiredOverlaySize="full",this.backMode==="menu"){this.resetSearchButtonState(),i.openMenu(t);return}if(e.type==="route-planner"){this.rootStore.routePlannerStore.close(),this.rootStore.selectBookmarks(),f();return}if(e.type==="multi-point-tour"&&!t.details){i.returnToTours(t,!1),this.rootStore.fp.hidePathways();return}if(t.details){t.details=null,f();return}if(t.menu){e.type==="sessions"?t.list={type:"sessions",text:"",focused:!0}:e.type==="exhibitors"?t.list={type:"exhibitors",text:"",focused:!0}:t.list={type:"search",text:"",focused:!0},this.setFocused(!0),this.isClearMode=!0,i.closeMenu(t);return}if(e.type==="tours"&&t.details instanceof S){t.details=null;return}if(e.type==="sessions"||e.type==="tours"||e.type==="exhibitors"){if(i.closeDetails(t))return;this.clearActiveFilters(),i.returnToSearch(t,!1),this.selectSearchAndFocus();return}switch(e.type){case"filter":t.details=null;return;case"multi-point-tour":this.rootStore.fp.hidePathways(),i.closeDetails(t)?i.returnToTours(t,!1):f();return;case"category":this.rootStore.selectCategory(e.category);return;case"speakers":if(i.closeDetails(t))return;i.returnToSessions(t,!1);return;case"bookmarks":case"visited":if(i.closeDetails(t))return;this.selectSearchAndFocus();return;case ne:i.returnToSearch(t,!1),i.openMenu(t);return}i.closeDetails(t)||i.clearSearchAndFocus(this)||i.openMenu(t)}closeSearch(){const{uiState:t}=this,{list:e}=t;if(e.type==="route-planner"){this.rootStore.routePlannerStore.close(),i.returnToSearch(t,!1),this.resetSearchBox();return}if(i.closeDetails(t),i.clearListScroll(t,e.type),i.closeMultiPointTour(t),e.type==="bookmarks"){i.returnToSearch(t,!1),this.resetSearchBox();return}if(t.selectedCategory){i.returnToSearch(t,!1),this.resetSearchBox();return}if(e.type==="sessions"){this.closeSessions();return}if(e.type==="exhibitors"){this.closeExhibitors();return}if(t.menu){i.closeMenu(t),this.resetSearchBox();return}if(this.searchBoxMode==="search"&&!t.details&&this.searchText){this.setSearchText(""),this.isClearMode=!0,this.clearActiveFilters();return}i.returnToSearch(t,!1),this.searchText="",this.resetSearchBox(),t.details=null,this.clearActiveFilters()}clearActiveFilters(){this.rootStore.searchButtonsStore.setPoiFilterId(null),this.rootStore.uiState.selectedPoiTypeFilters=[],this.rootStore.uiState.selectedCategoryFilters=[],this.rootStore.categoryFilterStore.state.selectedItems=[],this.rootStore.categoryFilterStore.state.pendingItems=[],this.rootStore.searchButtonsStore.searchShortcutState.activeParentId=null,this.rootStore.searchButtonsStore.searchShortcutState.activeChildren.clear(),this.rootStore.searchButtonsStore.searchShortcutState.isShortcutsVisible=!1,this.rootStore.urlFilterManager&&this.rootStore.urlFilterManager.isInitialized&&this.rootStore.urlFilterManager.clearAllFilters()}resetSearchButtonState(){const{uiState:t}=this;this.rootStore.searchButtonsStore.clearAllFilters(),this.rootStore.searchButtonsStore.setSubButtonId(null),this.rootStore.searchButtonsStore.hideSubButtons(),t.selectedTrack=null,this.searchText="",this.isClearMode=!1}handleSearchAction(){this.isFocused||this.setFocused(!0)}openOverlayWithoutInputFocus(){this.skipInputFocus=!0,this.isFocused=!0,this.isClearMode=!1,this.uiState.searchFocused=!0,this.uiState.searchClearMode=!1,this.uiState.desiredOverlaySize="full"}closeSessions(){this.searchText="",i.returnToSearch(this.uiState,!1),this.uiState.details=null,i.resetActiveListIndex(this.uiState),this.uiState.selectedTrack=null,this.rootStore.searchButtonsStore.setSubButtonId(null),this.rootStore.searchButtonsStore.hideSubButtons()}closeExhibitors(){this.searchText="",i.returnToSearch(this.uiState,!1),this.uiState.details=null,i.resetActiveListIndex(this.uiState)}resetSearchBox(){this.setFocused(!1),this.isClearMode=!1,this.syncWithUIState()}syncWithUIState(){this.searchText=(this.uiState.list.type==="search"||this.uiState.list.type==="exhibitors")&&this.uiState.list.text||"",this.isFocused=this.uiState.searchFocused,this.isClearMode=this.uiState.searchClearMode}get actionButtonIcon(){return this.shouldShowSearchInput?this.shouldShowCloseButton?"icon-close":"icon-search":"icon-close"}clearAndSelectSearch(){this.selectSearch(""),this.setFocused(!1)}get backMode(){const t=this.uiState.list.type;return(t==="bookmarks"||t==="visited")&&!this.uiState.details&&!this.uiState.menu||this.shouldShowSearchInput&&!this.searchText?"menu":"back"}get isMobileDetailsMode(){return window.innerWidth<he&&this.uiState.details!==null&&this.uiState.overlaySize==="full"&&!(this.uiState.details instanceof S)}get shouldShowTitle(){return!this.shouldShowSearchInput}get searchState(){return{text:this.searchText,isFocused:this.isFocused,isClearMode:this.isClearMode,mode:this.searchBoxMode,title:this.searchBoxConfig.title,subtitle:this.searchBoxConfig.subtitle,badge:this.searchBoxConfig.badge,icon:this.searchBoxConfig.icon}}}})();export default ue;
1
+ import{__esDecorate as s,__runInitializers as u}from"tslib";import{action as c,computed as l,observable as d}from"mobx";import{t as n}from"../utils/i18n";import S from"../data";import le from"../tools/settings";import{sanitizeSearch as ce}from"../utils/sanitizeText";import{Route as f}from"./RouteStore";import{goBack as g}from"../services/routing";import{MOBILE_BREAKPOINT as he,LANGUAGE_TYPE as ne}from"../constants";class i{static closeDetails(r){return r.details?(r.details=null,!0):!1}static closeMultiPointTour(r){return r.rootStore.fp.hidePathways(),!0}static clearSearchAndFocus(r){return r.searchText?(r.setSearchText(""),r.setFocused(!0),!0):!1}static returnToSearch(r,h=!1){r.list={type:"search",text:"",focused:h}}static returnToSessions(r,h=!1){r.list={type:"sessions",text:"",focused:h}}static returnToTours(r,h=!1){r.list={type:"tours",text:"",focused:h}}static openMenu(r){r.menu=!0}static closeMenu(r){r.menu=!1}static clearListScroll(r,h){r.clearListScroll(h)}static resetActiveListIndex(r){r.activeListIndex=-1}}let ue=(()=>{let a=[],r,h=[],x=[],m,_=[],B=[],k,y=[],b=[],v,F=[],T=[],M,I,C,A,w,z,L,O,E,P,W,D,U,R,j,G,K,N,X,Y,H,V,$,q,J,Q,Z,ee,te,se,ae,ie,re,oe;return class{static{const t=typeof Symbol=="function"&&Symbol.metadata?Object.create(null):void 0;r=[d],m=[d],k=[d],v=[d],M=[l],I=[l],C=[l],A=[l],w=[l],z=[l],L=[l],O=[l],E=[l],P=[l],W=[l],D=[l],U=[l],R=[l],j=[c],G=[c],K=[c],N=[c],X=[c],Y=[c],H=[c],V=[c],$=[c],q=[c],J=[c],Q=[c],Z=[c],ee=[c],te=[l],se=[c],ae=[l],ie=[l],re=[l],oe=[l],s(this,null,M,{kind:"getter",name:"searchBoxConfig",static:!1,private:!1,access:{has:e=>"searchBoxConfig"in e,get:e=>e.searchBoxConfig},metadata:t},null,a),s(this,null,I,{kind:"getter",name:"searchBoxMode",static:!1,private:!1,access:{has:e=>"searchBoxMode"in e,get:e=>e.searchBoxMode},metadata:t},null,a),s(this,null,C,{kind:"getter",name:"searchBoxTitle",static:!1,private:!1,access:{has:e=>"searchBoxTitle"in e,get:e=>e.searchBoxTitle},metadata:t},null,a),s(this,null,A,{kind:"getter",name:"searchBoxSubtitle",static:!1,private:!1,access:{has:e=>"searchBoxSubtitle"in e,get:e=>e.searchBoxSubtitle},metadata:t},null,a),s(this,null,w,{kind:"getter",name:"searchBoxBadge",static:!1,private:!1,access:{has:e=>"searchBoxBadge"in e,get:e=>e.searchBoxBadge},metadata:t},null,a),s(this,null,z,{kind:"getter",name:"searchBoxIcon",static:!1,private:!1,access:{has:e=>"searchBoxIcon"in e,get:e=>e.searchBoxIcon},metadata:t},null,a),s(this,null,L,{kind:"getter",name:"searchBoxActions",static:!1,private:!1,access:{has:e=>"searchBoxActions"in e,get:e=>e.searchBoxActions},metadata:t},null,a),s(this,null,O,{kind:"getter",name:"shouldShowSearchInput",static:!1,private:!1,access:{has:e=>"shouldShowSearchInput"in e,get:e=>e.shouldShowSearchInput},metadata:t},null,a),s(this,null,E,{kind:"getter",name:"shouldShowCloseButton",static:!1,private:!1,access:{has:e=>"shouldShowCloseButton"in e,get:e=>e.shouldShowCloseButton},metadata:t},null,a),s(this,null,P,{kind:"getter",name:"closeButtonAction",static:!1,private:!1,access:{has:e=>"closeButtonAction"in e,get:e=>e.closeButtonAction},metadata:t},null,a),s(this,null,W,{kind:"getter",name:"shouldShowShadow",static:!1,private:!1,access:{has:e=>"shouldShowShadow"in e,get:e=>e.shouldShowShadow},metadata:t},null,a),s(this,null,D,{kind:"getter",name:"placeholder",static:!1,private:!1,access:{has:e=>"placeholder"in e,get:e=>e.placeholder},metadata:t},null,a),s(this,null,U,{kind:"getter",name:"searchBoxClass",static:!1,private:!1,access:{has:e=>"searchBoxClass"in e,get:e=>e.searchBoxClass},metadata:t},null,a),s(this,null,R,{kind:"getter",name:"ariaLabel",static:!1,private:!1,access:{has:e=>"ariaLabel"in e,get:e=>e.ariaLabel},metadata:t},null,a),s(this,null,j,{kind:"method",name:"selectSearch",static:!1,private:!1,access:{has:e=>"selectSearch"in e,get:e=>e.selectSearch},metadata:t},null,a),s(this,null,G,{kind:"method",name:"selectSearchAndFocus",static:!1,private:!1,access:{has:e=>"selectSearchAndFocus"in e,get:e=>e.selectSearchAndFocus},metadata:t},null,a),s(this,null,K,{kind:"method",name:"setSearchText",static:!1,private:!1,access:{has:e=>"setSearchText"in e,get:e=>e.setSearchText},metadata:t},null,a),s(this,null,N,{kind:"method",name:"setFocused",static:!1,private:!1,access:{has:e=>"setFocused"in e,get:e=>e.setFocused},metadata:t},null,a),s(this,null,X,{kind:"method",name:"handleBackAction",static:!1,private:!1,access:{has:e=>"handleBackAction"in e,get:e=>e.handleBackAction},metadata:t},null,a),s(this,null,Y,{kind:"method",name:"closeSearch",static:!1,private:!1,access:{has:e=>"closeSearch"in e,get:e=>e.closeSearch},metadata:t},null,a),s(this,null,H,{kind:"method",name:"clearActiveFilters",static:!1,private:!1,access:{has:e=>"clearActiveFilters"in e,get:e=>e.clearActiveFilters},metadata:t},null,a),s(this,null,V,{kind:"method",name:"resetSearchButtonState",static:!1,private:!1,access:{has:e=>"resetSearchButtonState"in e,get:e=>e.resetSearchButtonState},metadata:t},null,a),s(this,null,$,{kind:"method",name:"handleSearchAction",static:!1,private:!1,access:{has:e=>"handleSearchAction"in e,get:e=>e.handleSearchAction},metadata:t},null,a),s(this,null,q,{kind:"method",name:"openOverlayWithoutInputFocus",static:!1,private:!1,access:{has:e=>"openOverlayWithoutInputFocus"in e,get:e=>e.openOverlayWithoutInputFocus},metadata:t},null,a),s(this,null,J,{kind:"method",name:"closeSessions",static:!1,private:!1,access:{has:e=>"closeSessions"in e,get:e=>e.closeSessions},metadata:t},null,a),s(this,null,Q,{kind:"method",name:"closeExhibitors",static:!1,private:!1,access:{has:e=>"closeExhibitors"in e,get:e=>e.closeExhibitors},metadata:t},null,a),s(this,null,Z,{kind:"method",name:"resetSearchBox",static:!1,private:!1,access:{has:e=>"resetSearchBox"in e,get:e=>e.resetSearchBox},metadata:t},null,a),s(this,null,ee,{kind:"method",name:"syncWithUIState",static:!1,private:!1,access:{has:e=>"syncWithUIState"in e,get:e=>e.syncWithUIState},metadata:t},null,a),s(this,null,te,{kind:"getter",name:"actionButtonIcon",static:!1,private:!1,access:{has:e=>"actionButtonIcon"in e,get:e=>e.actionButtonIcon},metadata:t},null,a),s(this,null,se,{kind:"method",name:"clearAndSelectSearch",static:!1,private:!1,access:{has:e=>"clearAndSelectSearch"in e,get:e=>e.clearAndSelectSearch},metadata:t},null,a),s(this,null,ae,{kind:"getter",name:"backMode",static:!1,private:!1,access:{has:e=>"backMode"in e,get:e=>e.backMode},metadata:t},null,a),s(this,null,ie,{kind:"getter",name:"isMobileDetailsMode",static:!1,private:!1,access:{has:e=>"isMobileDetailsMode"in e,get:e=>e.isMobileDetailsMode},metadata:t},null,a),s(this,null,re,{kind:"getter",name:"shouldShowTitle",static:!1,private:!1,access:{has:e=>"shouldShowTitle"in e,get:e=>e.shouldShowTitle},metadata:t},null,a),s(this,null,oe,{kind:"getter",name:"searchState",static:!1,private:!1,access:{has:e=>"searchState"in e,get:e=>e.searchState},metadata:t},null,a),s(null,null,r,{kind:"field",name:"searchText",static:!1,private:!1,access:{has:e=>"searchText"in e,get:e=>e.searchText,set:(e,o)=>{e.searchText=o}},metadata:t},h,x),s(null,null,m,{kind:"field",name:"isFocused",static:!1,private:!1,access:{has:e=>"isFocused"in e,get:e=>e.isFocused,set:(e,o)=>{e.isFocused=o}},metadata:t},_,B),s(null,null,k,{kind:"field",name:"isClearMode",static:!1,private:!1,access:{has:e=>"isClearMode"in e,get:e=>e.isClearMode,set:(e,o)=>{e.isClearMode=o}},metadata:t},y,b),s(null,null,v,{kind:"field",name:"skipInputFocus",static:!1,private:!1,access:{has:e=>"skipInputFocus"in e,get:e=>e.skipInputFocus,set:(e,o)=>{e.skipInputFocus=o}},metadata:t},F,T),t&&Object.defineProperty(this,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:t})}rootStore=u(this,a);searchText=u(this,h,"");isFocused=(u(this,x),u(this,_,!1));isClearMode=(u(this,B),u(this,y,!1));skipInputFocus=(u(this,b),u(this,F,!1));constructor(t){u(this,T),this.rootStore=t}get uiState(){return this.rootStore.uiState}get searchBoxConfig(){return this.uiState.searchBoxConfig}get searchBoxMode(){return this.searchBoxConfig.mode}get searchBoxTitle(){return this.searchBoxConfig.title}get searchBoxSubtitle(){return this.searchBoxConfig.subtitle}get searchBoxBadge(){return this.searchBoxConfig.badge}get searchBoxIcon(){return this.searchBoxConfig.icon}get searchBoxActions(){return this.uiState.searchBoxActions}get shouldShowSearchInput(){return this.searchBoxMode==="search"}get shouldShowCloseButton(){const{menu:t,details:e,list:o}=this.uiState,p=S.isRebooking&&o.type==="exhibitors";return!this.shouldShowSearchInput||o.type==="sessions"||o.type==="tours"||o.type==="speakers"||o.type==="exhibitors"&&!p?!0:t||e!==null||!!this.searchText||this.isClearMode||this.isFocused}get closeButtonAction(){return!this.shouldShowSearchInput||this.searchBoxMode==="details"||this.uiState.list.type==="sessions"||this.uiState.list.type==="speakers"||this.uiState.list.type==="exhibitors"&&!S.isRebooking?"close":this.searchText?"clear":"close"}get shouldShowShadow(){const{menu:t,details:e,list:o}=this.uiState,p=o.type==="search"&&!!o.text;return!(this.rootStore.fp.alwaysShowSidebar||t||e!==null||o.type!=="search"||p||this.isFocused||this.uiState.heatmap)}get placeholder(){const{list:t,heatmapYah:e}=this.uiState;return t.type==="sessions"?n("Search sessions"):t.type==="tours"?n("Search Guided Tours"):t.type==="exhibitors"?n("Search exhibitors"):t.type==="speakers"?n("Search speakers"):le.EXPO.startsWith("lenzerheidemotorclassics")?"SUCHE":le.EXPO.startsWith("jetlag")?"Search location or artist":e?n("Find values greater than"):this.uiState.hasAppliedFilters?n("Search"):S.searchText||n("Search")}get searchBoxClass(){return{"is-details":this.searchBoxMode==="details"&&!(this.uiState.details instanceof f),"is-interface":this.searchBoxMode==="interface","has-shadow":this.shouldShowShadow,"has-subtitle":!!this.searchBoxConfig.subtitle,"has-badge":!!this.searchBoxConfig.badge,"has-icon":!!this.searchBoxConfig.icon,"is-overlay-full":this.uiState.isOverlayOpen&&this.uiState.overlaySize==="full","is-featured-exhibitor":this.uiState.isFeaturedExhibitorActive,"is-route":this.uiState.details instanceof f,"is-guided-tours":this.uiState.isGuidedToursActive,"is-overlay-scrolled":this.uiState.isOverlayScrolled,"overlay-pulse":this.uiState.kiosk&&this.uiState.inIdle&&!this.uiState.setKioskModeEnabled}}get ariaLabel(){return!this.shouldShowSearchInput||this.searchBoxMode==="details"?n("Close"):this.searchText?n("Clear search"):n("Close")}selectSearch(t){window.__resett&&window.__resett(),this.uiState.details=null;const e=ce(t||"",Object.keys(this.uiState.mapSettings).map(o=>`${o}=`));this.setSearchText(e),this.uiState.activeListIndex=-1}selectSearchAndFocus(t){this.selectSearch(t),this.setFocused(!0)}setSearchText(t){this.searchText=t,this.uiState.hasAppliedFilters?this.rootStore.moveToList():this.uiState.centerMap=!0,this.uiState.activeListIndex=t?0:-1,this.uiState.list.type!=="sessions"&&this.uiState.list.type!=="tours"&&this.uiState.list.type!=="speakers"&&this.uiState.list.type!=="exhibitors"?this.uiState.list={type:"search",text:t,focused:this.isFocused}:this.uiState.list.type==="exhibitors"&&(this.uiState.list={type:"exhibitors",text:t,focused:this.isFocused}),this.uiState.searchClearMode=this.isClearMode}setFocused(t){this.isFocused=t,this.isClearMode=!1,this.skipInputFocus=!1,this.uiState.searchFocused=t,this.uiState.searchClearMode=!1,this.uiState.desiredOverlaySize="full"}handleBackAction(){const{uiState:t}=this,{list:e}=t;if(t.desiredOverlaySize="full",this.backMode==="menu"){this.resetSearchButtonState(),i.openMenu(t);return}if(e.type==="route-planner"){this.rootStore.routePlannerStore.close(),this.rootStore.selectBookmarks(),g();return}if(e.type==="multi-point-tour"&&!t.details){i.returnToTours(t,!1),this.rootStore.fp.hidePathways();return}if(t.details){t.details=null,g();return}if(t.menu){e.type==="sessions"?t.list={type:"sessions",text:"",focused:!0}:e.type==="exhibitors"?t.list={type:"exhibitors",text:"",focused:!0}:t.list={type:"search",text:"",focused:!0},this.setFocused(!0),this.isClearMode=!0,i.closeMenu(t);return}if(e.type==="tours"&&t.details instanceof f){t.details=null;return}if(e.type==="sessions"||e.type==="tours"||e.type==="exhibitors"){if(i.closeDetails(t))return;this.clearActiveFilters(),i.returnToSearch(t,!1),this.selectSearchAndFocus();return}switch(e.type){case"filter":t.details=null;return;case"multi-point-tour":this.rootStore.fp.hidePathways(),i.closeDetails(t)?i.returnToTours(t,!1):g();return;case"category":this.rootStore.selectCategory(e.category);return;case"speakers":if(i.closeDetails(t))return;i.returnToSessions(t,!1);return;case"bookmarks":case"visited":if(i.closeDetails(t))return;this.selectSearchAndFocus();return;case ne:i.returnToSearch(t,!1),i.openMenu(t);return}i.closeDetails(t)||i.clearSearchAndFocus(this)||i.openMenu(t)}closeSearch(){const{uiState:t}=this,{list:e}=t;if(e.type==="route-planner"){this.rootStore.routePlannerStore.close(),i.returnToSearch(t,!1),this.resetSearchBox();return}if(i.closeDetails(t),i.clearListScroll(t,e.type),i.closeMultiPointTour(t),e.type==="bookmarks"){i.returnToSearch(t,!1),this.resetSearchBox();return}if(t.selectedCategory){i.returnToSearch(t,!1),this.resetSearchBox();return}if(e.type==="sessions"){this.closeSessions();return}if(e.type==="exhibitors"){if(S.isRebooking){this.searchBoxMode==="search"&&this.searchText?(this.setSearchText(""),this.isClearMode=!0,this.clearActiveFilters()):this.resetSearchBox();return}this.closeExhibitors();return}if(t.menu){i.closeMenu(t),this.resetSearchBox();return}if(this.searchBoxMode==="search"&&!t.details&&this.searchText){this.setSearchText(""),this.isClearMode=!0,this.clearActiveFilters();return}i.returnToSearch(t,!1),this.searchText="",this.resetSearchBox(),t.details=null,this.clearActiveFilters()}clearActiveFilters(){this.rootStore.searchButtonsStore.setPoiFilterId(null),this.rootStore.uiState.selectedPoiTypeFilters=[],this.rootStore.uiState.selectedCategoryFilters=[],this.rootStore.categoryFilterStore.state.selectedItems=[],this.rootStore.categoryFilterStore.state.pendingItems=[],this.rootStore.searchButtonsStore.searchShortcutState.activeParentId=null,this.rootStore.searchButtonsStore.searchShortcutState.activeChildren.clear(),this.rootStore.searchButtonsStore.searchShortcutState.isShortcutsVisible=!1,this.rootStore.urlFilterManager&&this.rootStore.urlFilterManager.isInitialized&&this.rootStore.urlFilterManager.clearAllFilters()}resetSearchButtonState(){const{uiState:t}=this;this.rootStore.searchButtonsStore.clearAllFilters(),this.rootStore.searchButtonsStore.setSubButtonId(null),this.rootStore.searchButtonsStore.hideSubButtons(),t.selectedTrack=null,this.searchText="",this.isClearMode=!1}handleSearchAction(){this.isFocused||this.setFocused(!0)}openOverlayWithoutInputFocus(){this.skipInputFocus=!0,this.isFocused=!0,this.isClearMode=!1,this.uiState.searchFocused=!0,this.uiState.searchClearMode=!1,this.uiState.desiredOverlaySize="full"}closeSessions(){this.searchText="",i.returnToSearch(this.uiState,!1),this.uiState.details=null,i.resetActiveListIndex(this.uiState),this.uiState.selectedTrack=null,this.rootStore.searchButtonsStore.setSubButtonId(null),this.rootStore.searchButtonsStore.hideSubButtons()}closeExhibitors(){this.searchText="",i.returnToSearch(this.uiState,!1),this.uiState.details=null,i.resetActiveListIndex(this.uiState)}resetSearchBox(){this.setFocused(!1),this.isClearMode=!1,this.syncWithUIState()}syncWithUIState(){this.searchText=(this.uiState.list.type==="search"||this.uiState.list.type==="exhibitors")&&this.uiState.list.text||"",this.isFocused=this.uiState.searchFocused,this.isClearMode=this.uiState.searchClearMode}get actionButtonIcon(){return this.shouldShowSearchInput?this.shouldShowCloseButton?"icon-close":"icon-search":"icon-close"}clearAndSelectSearch(){this.selectSearch(""),this.setFocused(!1)}get backMode(){const t=this.uiState.list.type;return(t==="bookmarks"||t==="visited")&&!this.uiState.details&&!this.uiState.menu||this.shouldShowSearchInput&&!this.searchText?"menu":"back"}get isMobileDetailsMode(){return window.innerWidth<he&&this.uiState.details!==null&&this.uiState.overlaySize==="full"&&!(this.uiState.details instanceof f)}get shouldShowTitle(){return!this.shouldShowSearchInput}get searchState(){return{text:this.searchText,isFocused:this.isFocused,isClearMode:this.isClearMode,mode:this.searchBoxMode,title:this.searchBoxConfig.title,subtitle:this.searchBoxConfig.subtitle,badge:this.searchBoxConfig.badge,icon:this.searchBoxConfig.icon}}}})();export default ue;
@@ -1,4 +1,4 @@
1
- import{autorun as s,reaction as S,runInAction as h}from"mobx";import v from"../../core/Size";import{isWebGlSupported as g}from"../../utils";import l from"../../utils/preview-exhibitor";import{ResizeObserver as w}from"resize-observer";import{isLocalStorageAvailable as a}from"../../utils/localStorage";import{KIOSK_ENABLE_KEY as c,VISIBILITY_STORAGE_KEY as k}from"../../constants";import{detectLimitedModeViaImage as E}from"../../utils/detectLimitedModeViaImage";import y from"../../tools/logger";let o;export default function x(i){const{uiState:e,exhibitorStore:u,searchStore:b}=i;e.rootElement=window.__efpElement,f(e.rootElement.clientWidth,e.rootElement.clientHeight),o=new w(t=>{t.forEach(r=>{f(r.contentRect.width,r.contentRect.height)})}),o.observe(e.rootElement),l&&(e.previewExhibitor=u.exhibitorById.get(l.id));const n=typeof matchMedia<"u"?matchMedia(`(resolution: ${window.devicePixelRatio}dppx)`):null;n&&n.addEventListener&&n.addEventListener("change",()=>{e.devicePixelRatio=window.devicePixelRatio}),e.desiredOverlaySize=l||!g?"full":"medium",s(()=>{(e.searchFocused||e.menu)&&e.overlayPosition!=="left"&&(e.desiredOverlaySize="full")}),s(()=>{e.overlaySize!=="full"&&e.menu&&(e.menu=!1)}),e.wsShown||(e.wsStarted=!0),e.kiosk=a&&localStorage.getItem(c)==="1",window.__resett=d;function p(){i.reset()}var m;function d(){e.kiosk&&(y.log("zzz2","reset timer"),clearTimeout(m),m=setTimeout(p,3e4),e.inIdle=!1)}s(()=>{const t=e.list;t.type==="search"&&(t.text==="kkiosk"?e.kiosk=!0:t.text==="nokkiosk"&&(e.kiosk=!1))}),S(()=>e.kiosk,t=>{a&&(t?(localStorage.setItem(c,"1"),d()):localStorage.setItem(c,"0"))}),a&&e.setVisibility(JSON.parse(localStorage.getItem(k))||{});function f(t,r){h("uiState.screenSize",()=>{e.screenSize=new v(t,r)})}I(i)}export function destroyUiHandlers(){o&&(o.disconnect(),o=null)}async function I(i){try{if(!await E())return;i.uiState.setGlobalErrorMessage({title:"Unsupported Environment Detected",body:`
1
+ import{autorun as s,reaction as h,runInAction as v}from"mobx";import g from"../../core/Size";import{isWebGlSupported as k}from"../../utils";import l from"../../utils/preview-exhibitor";import{ResizeObserver as w}from"resize-observer";import{isLocalStorageAvailable as a}from"../../utils/localStorage";import{KIOSK_ENABLE_KEY as c,VISIBILITY_STORAGE_KEY as E}from"../../constants";import{detectLimitedModeViaImage as y}from"../../utils/detectLimitedModeViaImage";import x from"../../tools/logger";import b from"../../data";let o;export default function z(i){const{uiState:e,exhibitorStore:u,searchStore:T}=i;e.rootElement=window.__efpElement,f(e.rootElement.clientWidth,e.rootElement.clientHeight),o=new w(t=>{t.forEach(r=>{f(r.contentRect.width,r.contentRect.height)})}),o.observe(e.rootElement),l&&(e.previewExhibitor=u.exhibitorById.get(l.id));const n=typeof matchMedia<"u"?matchMedia(`(resolution: ${window.devicePixelRatio}dppx)`):null;n&&n.addEventListener&&n.addEventListener("change",()=>{e.devicePixelRatio=window.devicePixelRatio});const p=l||!k?"full":"medium";b.isRebooking&&e.list.type==="search"&&!e.list.text&&i.selectExhibitors(),e.desiredOverlaySize=p,s(()=>{(e.searchFocused||e.menu)&&e.overlayPosition!=="left"&&(e.desiredOverlaySize="full")}),s(()=>{e.overlaySize!=="full"&&e.menu&&(e.menu=!1)}),e.wsShown||(e.wsStarted=!0),e.kiosk=a&&localStorage.getItem(c)==="1",window.__resett=d;function S(){i.reset()}var m;function d(){e.kiosk&&(x.log("zzz2","reset timer"),clearTimeout(m),m=setTimeout(S,3e4),e.inIdle=!1)}s(()=>{const t=e.list;t.type==="search"&&(t.text==="kkiosk"?e.kiosk=!0:t.text==="nokkiosk"&&(e.kiosk=!1))}),h(()=>e.kiosk,t=>{a&&(t?(localStorage.setItem(c,"1"),d()):localStorage.setItem(c,"0"))}),a&&e.setVisibility(JSON.parse(localStorage.getItem(E))||{});function f(t,r){v("uiState.screenSize",()=>{e.screenSize=new g(t,r)})}I(i)}export function destroyUiHandlers(){o&&(o.disconnect(),o=null)}async function I(i){try{if(!await y())return;i.uiState.setGlobalErrorMessage({title:"Unsupported Environment Detected",body:`
2
2
  This application requires a proper server environment to function correctly.
3
3
  For full functionality, please ensure the application is served through an HTTP/HTTPS server.
4
4
  Some features may not work as expected in the current setup.