@expofp/floorplan 3.0.0-alpha.14 → 3.0.0-alpha.16

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 (103) hide show
  1. package/dist/browser/{Debug-Pul6-ZdY.js → Debug-DazuGIJc.js} +19 -10
  2. package/dist/browser/Demo-CXdISYQf.js +47 -0
  3. package/dist/browser/{Free-Dm2FRajw.js → Free-CVgHQ8yt.js} +29 -20
  4. package/dist/browser/Gallery-BMcvPLO_.js +288 -0
  5. package/dist/browser/GpsLoader-BiwFO3QG.js +140 -0
  6. package/dist/browser/{KioskStore-Bvvm0aNQ.js → KioskStore-NqUeUutQ.js} +58 -49
  7. package/dist/browser/Mapbox-PHCrBnx5.js +118 -0
  8. package/dist/browser/{SetKioskMode-BecTBVRp.js → SetKioskMode-DMQej1ec.js} +86 -77
  9. package/dist/browser/{ShowKiosk-C-6DHz7T.js → ShowKiosk-BWlBMcI7.js} +28 -19
  10. package/dist/browser/{ThreeComponent-Brnrh22I.js → ThreeComponent-Dmt2HPyX.js} +181 -172
  11. package/dist/browser/ViewerMenuPanel-CuqRZ7m1.js +77 -0
  12. package/dist/browser/boolean-editor-zsvPcNpX.js +157 -0
  13. package/dist/browser/bundle.json +32 -29
  14. package/dist/browser/{client-D3Op9Jdd.js → client-B2kCMH8A.js} +590 -581
  15. package/dist/browser/{data-0pZ-ZMEi.js → data-BtD6blv7.js} +276 -267
  16. package/dist/browser/{debug-overlay-6c_tWF4O.js → debug-overlay-CF0imHRX.js} +98 -89
  17. package/dist/browser/debug-ui-Zt7T7T-N.js +67 -0
  18. package/dist/browser/{favicon-DalyEhbd.js → favicon-Dj8hNa7i.js} +11 -2
  19. package/dist/browser/fetch-retry.umd-B-swKpFA.js +123 -0
  20. package/dist/browser/{flex-OW_m-DBA.js → flex-COa6XN1F.js} +80 -71
  21. package/dist/browser/{floorplan.ready-D-VQ-QvS.js → floorplan.ready-CNnM_Yyc.js} +12217 -14231
  22. package/dist/browser/fonts/efp-symbols.woff +0 -0
  23. package/dist/browser/index-B1P-x0sk.js +92 -0
  24. package/dist/browser/index-BEcZnTgd.js +54 -0
  25. package/dist/browser/{index-BUq8_R36.js → index-BeS6l0j-.js} +50 -41
  26. package/dist/browser/index-C04zJbbt.js +12475 -0
  27. package/dist/browser/index-CgWDjED_.js +57 -0
  28. package/dist/browser/{index-BuJlIIdP.js → index-CqICVJZO.js} +96 -87
  29. package/dist/browser/{index-AJbTBu7z.js → index-atMSRNM1.js} +258 -249
  30. package/dist/browser/index.js +11 -2
  31. package/dist/browser/jsx-runtime-DAY7g56y.js +40 -0
  32. package/dist/browser/locales/ar.json +3 -1
  33. package/dist/browser/locales/de.json +3 -1
  34. package/dist/browser/locales/es.json +3 -1
  35. package/dist/browser/locales/fr.json +3 -1
  36. package/dist/browser/locales/he.json +3 -1
  37. package/dist/browser/locales/it.json +3 -1
  38. package/dist/browser/locales/kk.json +3 -1
  39. package/dist/browser/locales/ko.json +3 -1
  40. package/dist/browser/locales/mn.json +3 -1
  41. package/dist/browser/locales/nl.json +3 -1
  42. package/dist/browser/locales/pl.json +3 -1
  43. package/dist/browser/locales/pt.json +3 -1
  44. package/dist/browser/locales/ru.json +3 -1
  45. package/dist/browser/locales/sv.json +3 -1
  46. package/dist/browser/locales/th.json +3 -1
  47. package/dist/browser/locales/tr.json +3 -1
  48. package/dist/browser/locales/uk.json +3 -1
  49. package/dist/browser/locales/vi.json +3 -1
  50. package/dist/browser/locales/zh.json +3 -1
  51. package/dist/browser/{main-CD9JioNt.js → main-DZpmA53N.js} +24 -15
  52. package/dist/browser/{particles.min-BZTb0pvb.js → particles.min-DXab_WLN.js} +43 -34
  53. package/dist/esm/components/Alert.d.ts +2 -0
  54. package/dist/esm/components/Alert.js +1 -1
  55. package/dist/esm/components/Badge.d.ts +3 -2
  56. package/dist/esm/components/Badge.js +1 -1
  57. package/dist/esm/components/CookieConsent.js +1 -1
  58. package/dist/esm/components/Kiosk/SetKiosk/storage.d.ts +1 -1
  59. package/dist/esm/components/Kiosk/SetKiosk/storage.js +1 -1
  60. package/dist/esm/components/Kiosk/ShowKiosk.js +1 -1
  61. package/dist/esm/components/Menu.js +1 -1
  62. package/dist/esm/components/Overlay.d.ts +2 -0
  63. package/dist/esm/components/Overlay.js +1 -1
  64. package/dist/esm/components/OverlayContainer.js +1 -1
  65. package/dist/esm/components/RoutePlanner/RoutePlanner.js +1 -1
  66. package/dist/esm/components/RoutePlanner/RoutePlannerHeader.js +1 -1
  67. package/dist/esm/components/RoutePlanner/RoutePlannerStopItem.js +1 -1
  68. package/dist/esm/components/Schedule.js +1 -1
  69. package/dist/esm/components/SearchBox.js +1 -1
  70. package/dist/esm/components/ViewerMenuPanel.d.ts +5 -0
  71. package/dist/esm/components/ViewerMenuPanel.js +1 -0
  72. package/dist/esm/constants.d.ts +2 -0
  73. package/dist/esm/constants.js +1 -1
  74. package/dist/esm/floorplan.loader.d.ts +2 -0
  75. package/dist/esm/floorplan.loader.js +1 -1
  76. package/dist/esm/floorplan.ready.js +1 -1
  77. package/dist/esm/services/routing.js +1 -1
  78. package/dist/esm/store/LayerStore.d.ts +1 -0
  79. package/dist/esm/store/LayerStore.js +1 -1
  80. package/dist/esm/store/RoutePlannerStore.d.ts +16 -0
  81. package/dist/esm/store/RoutePlannerStore.js +1 -1
  82. package/dist/esm/store/UIState.d.ts +1 -0
  83. package/dist/esm/store/UIState.js +1 -1
  84. package/dist/esm/store/init/init-layers.js +1 -1
  85. package/dist/esm/tools/telemetry.d.ts +35 -0
  86. package/dist/esm/tools/telemetry.js +1 -0
  87. package/dist/esm/tools/track-event.d.ts +3 -1
  88. package/dist/esm/tools/track-event.js +1 -1
  89. package/dist/esm/utils/i18n.d.ts +2 -2
  90. package/dist/esm/utils/i18n.js +1 -1
  91. package/package.json +4 -3
  92. package/dist/browser/Demo-DN_Ej-P_.js +0 -38
  93. package/dist/browser/Gallery-TLr-wfCG.js +0 -279
  94. package/dist/browser/GpsLoader-CeS0cp98.js +0 -131
  95. package/dist/browser/Mapbox-DizBJSb0.js +0 -109
  96. package/dist/browser/boolean-editor-Duwgypgb.js +0 -148
  97. package/dist/browser/debug-ui-TGRI1j4k.js +0 -58
  98. package/dist/browser/fetch-retry.umd-BZ52tMyv.js +0 -114
  99. package/dist/browser/index-B2YV6GNs.js +0 -48
  100. package/dist/browser/index-D0SjrKD-.js +0 -45
  101. package/dist/browser/index-Vc2rrV4B.js +0 -83
  102. package/dist/browser/index-Zz9lJz5_.js +0 -10224
  103. package/dist/browser/jsx-runtime-jIxVPx5o.js +0 -31
@@ -1,4 +1,13 @@
1
- import { ak as r } from "./index-Zz9lJz5_.js";
1
+ import { ay as o } from "./index-C04zJbbt.js";
2
+ (function() {
3
+ try {
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.0.0-alpha.16" };
6
+ var d = new e.Error().stack;
7
+ d && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[d] = "f5015c1e-4f30-4201-8fa9-07ddee5b813f", e._sentryDebugIdIdentifier = "sentry-dbid-f5015c1e-4f30-4201-8fa9-07ddee5b813f");
8
+ } catch {
9
+ }
10
+ })();
2
11
  export {
3
- r as load
12
+ o as load
4
13
  };
@@ -0,0 +1,40 @@
1
+ (function() {
2
+ try {
3
+ var r = typeof window < "u" ? window : typeof global < "u" ? global : typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : {};
4
+ r.SENTRY_RELEASE = { id: "3.0.0-alpha.16" };
5
+ var a = new r.Error().stack;
6
+ a && (r._sentryDebugIds = r._sentryDebugIds || {}, r._sentryDebugIds[a] = "6aa5acce-bbae-4352-a6aa-9212ad4bd577", r._sentryDebugIdIdentifier = "sentry-dbid-6aa5acce-bbae-4352-a6aa-9212ad4bd577");
7
+ } catch {
8
+ }
9
+ })();
10
+ var d = { exports: {} }, n = {};
11
+ var o;
12
+ function x() {
13
+ if (o) return n;
14
+ o = 1;
15
+ var r = /* @__PURE__ */ Symbol.for("react.transitional.element"), a = /* @__PURE__ */ Symbol.for("react.fragment");
16
+ function s(f, e, t) {
17
+ var u = null;
18
+ if (t !== void 0 && (u = "" + t), e.key !== void 0 && (u = "" + e.key), "key" in e) {
19
+ t = {};
20
+ for (var i in e)
21
+ i !== "key" && (t[i] = e[i]);
22
+ } else t = e;
23
+ return e = t.ref, {
24
+ $$typeof: r,
25
+ type: f,
26
+ key: u,
27
+ ref: e !== void 0 ? e : null,
28
+ props: t
29
+ };
30
+ }
31
+ return n.Fragment = a, n.jsx = s, n.jsxs = s, n;
32
+ }
33
+ var l;
34
+ function R() {
35
+ return l || (l = 1, d.exports = x()), d.exports;
36
+ }
37
+ var p = R();
38
+ export {
39
+ p as j
40
+ };
@@ -122,5 +122,7 @@
122
122
  "{{count}} stops": "{{count}} محطات",
123
123
  "From {{name}}": "من {{name}}",
124
124
  "Add stops to build a route": "أضف محطات لإنشاء مسار",
125
- "Select starting point": "حدد نقطة البداية"
125
+ "Select starting point": "حدد نقطة البداية",
126
+ "Now": "الآن",
127
+ "Ongoing": "جارٍ"
126
128
  }
@@ -122,5 +122,7 @@
122
122
  "{{count}} stops": "{{count}} Stopps",
123
123
  "From {{name}}": "Von {{name}}",
124
124
  "Add stops to build a route": "Fügen Sie Stopps hinzu, um eine Route zu erstellen",
125
- "Select starting point": "Startpunkt auswählen"
125
+ "Select starting point": "Startpunkt auswählen",
126
+ "Now": "Jetzt",
127
+ "Ongoing": "Laufend"
126
128
  }
@@ -122,5 +122,7 @@
122
122
  "{{count}} stops": "{{count}} paradas",
123
123
  "From {{name}}": "Desde {{name}}",
124
124
  "Add stops to build a route": "Agrega paradas para crear una ruta",
125
- "Select starting point": "Seleccionar punto de inicio"
125
+ "Select starting point": "Seleccionar punto de inicio",
126
+ "Now": "Ahora",
127
+ "Ongoing": "En curso"
126
128
  }
@@ -122,5 +122,7 @@
122
122
  "{{count}} stops": "{{count}} arrêts",
123
123
  "From {{name}}": "Depuis {{name}}",
124
124
  "Add stops to build a route": "Ajoutez des arrêts pour créer un itinéraire",
125
- "Select starting point": "Sélectionner le point de départ"
125
+ "Select starting point": "Sélectionner le point de départ",
126
+ "Now": "Maintenant",
127
+ "Ongoing": "En cours"
126
128
  }
@@ -122,5 +122,7 @@
122
122
  "{{count}} stops": "{{count}} תחנות",
123
123
  "From {{name}}": "מ־{{name}}",
124
124
  "Add stops to build a route": "הוסף תחנות כדי ליצור מסלול",
125
- "Select starting point": "בחר נקודת התחלה"
125
+ "Select starting point": "בחר נקודת התחלה",
126
+ "Now": "עכשיו",
127
+ "Ongoing": "מתמשך"
126
128
  }
@@ -122,5 +122,7 @@
122
122
  "{{count}} stops": "{{count}} fermate",
123
123
  "From {{name}}": "Da {{name}}",
124
124
  "Add stops to build a route": "Aggiungi fermate per creare un percorso",
125
- "Select starting point": "Seleziona punto di partenza"
125
+ "Select starting point": "Seleziona punto di partenza",
126
+ "Now": "Ora",
127
+ "Ongoing": "In corso"
126
128
  }
@@ -122,5 +122,7 @@
122
122
  "{{count}} stops": "{{count}} аялдама",
123
123
  "From {{name}}": "{{name}} бастап",
124
124
  "Add stops to build a route": "Маршрут құру үшін аялдамалар қосыңыз",
125
- "Select starting point": "Бастапқы нүктені таңдаңыз"
125
+ "Select starting point": "Бастапқы нүктені таңдаңыз",
126
+ "Now": "Қазір",
127
+ "Ongoing": "Жалғасуда"
126
128
  }
@@ -122,5 +122,7 @@
122
122
  "{{count}} stops": "{{count}}개 정류장",
123
123
  "From {{name}}": "{{name}}에서",
124
124
  "Add stops to build a route": "경로를 만들기 위해 정류장을 추가하세요",
125
- "Select starting point": "출발 지점 선택"
125
+ "Select starting point": "출발 지점 선택",
126
+ "Now": "지금",
127
+ "Ongoing": "진행 중"
126
128
  }
@@ -122,5 +122,7 @@
122
122
  "{{count}} stops": "{{count}} зогсоол",
123
123
  "From {{name}}": "{{name}}-с",
124
124
  "Add stops to build a route": "Маршрут үүсгэхийн тулд зогсоол нэмнэ үү",
125
- "Select starting point": "Эхлэх цэгийг сонгоно уу"
125
+ "Select starting point": "Эхлэх цэгийг сонгоно уу",
126
+ "Now": "Одоо",
127
+ "Ongoing": "Явагдаж байна"
126
128
  }
@@ -122,5 +122,7 @@
122
122
  "{{count}} stops": "{{count}} haltes",
123
123
  "From {{name}}": "Vanaf {{name}}",
124
124
  "Add stops to build a route": "Voeg haltes toe om een route te maken",
125
- "Select starting point": "Startpunt selecteren"
125
+ "Select starting point": "Startpunt selecteren",
126
+ "Now": "Nu",
127
+ "Ongoing": "Lopend"
126
128
  }
@@ -122,5 +122,7 @@
122
122
  "{{count}} stops": "{{count}} przystanków",
123
123
  "From {{name}}": "Z {{name}}",
124
124
  "Add stops to build a route": "Dodaj przystanki, aby utworzyć trasę",
125
- "Select starting point": "Wybierz punkt początkowy"
125
+ "Select starting point": "Wybierz punkt początkowy",
126
+ "Now": "Teraz",
127
+ "Ongoing": "W toku"
126
128
  }
@@ -122,5 +122,7 @@
122
122
  "{{count}} stops": "{{count}} paradas",
123
123
  "From {{name}}": "De {{name}}",
124
124
  "Add stops to build a route": "Adicione paradas para criar uma rota",
125
- "Select starting point": "Selecionar ponto de partida"
125
+ "Select starting point": "Selecionar ponto de partida",
126
+ "Now": "Agora",
127
+ "Ongoing": "Em andamento"
126
128
  }
@@ -122,5 +122,7 @@
122
122
  "{{count}} stops": "{{count}} остановок",
123
123
  "From {{name}}": "От {{name}}",
124
124
  "Add stops to build a route": "Добавьте остановки, чтобы построить маршрут",
125
- "Select starting point": "Выберите начальную точку"
125
+ "Select starting point": "Выберите начальную точку",
126
+ "Now": "Сейчас",
127
+ "Ongoing": "Продолжается"
126
128
  }
@@ -122,5 +122,7 @@
122
122
  "{{count}} stops": "{{count}} stopp",
123
123
  "From {{name}}": "Från {{name}}",
124
124
  "Add stops to build a route": "Lägg till stopp för att skapa en rutt",
125
- "Select starting point": "Välj startpunkt"
125
+ "Select starting point": "Välj startpunkt",
126
+ "Now": "Nu",
127
+ "Ongoing": "Pågående"
126
128
  }
@@ -122,5 +122,7 @@
122
122
  "{{count}} stops": "{{count}} จุดแวะ",
123
123
  "From {{name}}": "จาก {{name}}",
124
124
  "Add stops to build a route": "เพิ่มจุดแวะเพื่อสร้างเส้นทาง",
125
- "Select starting point": "เลือกจุดเริ่มต้น"
125
+ "Select starting point": "เลือกจุดเริ่มต้น",
126
+ "Now": "ตอนนี้",
127
+ "Ongoing": "กำลังดำเนินการ"
126
128
  }
@@ -122,5 +122,7 @@
122
122
  "{{count}} stops": "{{count}} durak",
123
123
  "From {{name}}": "{{name}} konumundan",
124
124
  "Add stops to build a route": "Rota oluşturmak için durak ekleyin",
125
- "Select starting point": "Başlangıç noktasını seçin"
125
+ "Select starting point": "Başlangıç noktasını seçin",
126
+ "Now": "Şimdi",
127
+ "Ongoing": "Devam ediyor"
126
128
  }
@@ -122,5 +122,7 @@
122
122
  "{{count}} stops": "{{count}} зупинок",
123
123
  "From {{name}}": "Від {{name}}",
124
124
  "Add stops to build a route": "Додайте зупинки, щоб побудувати маршрут",
125
- "Select starting point": "Оберіть початкову точку"
125
+ "Select starting point": "Оберіть початкову точку",
126
+ "Now": "Зараз",
127
+ "Ongoing": "Триває"
126
128
  }
@@ -122,5 +122,7 @@
122
122
  "{{count}} stops": "{{count}} điểm dừng",
123
123
  "From {{name}}": "Từ {{name}}",
124
124
  "Add stops to build a route": "Thêm điểm dừng để tạo tuyến đường",
125
- "Select starting point": "Chọn điểm bắt đầu"
125
+ "Select starting point": "Chọn điểm bắt đầu",
126
+ "Now": "Bây giờ",
127
+ "Ongoing": "Đang diễn ra"
126
128
  }
@@ -122,5 +122,7 @@
122
122
  "{{count}} stops": "{{count}} 个站点",
123
123
  "From {{name}}": "从 {{name}}",
124
124
  "Add stops to build a route": "添加站点以构建路线",
125
- "Select starting point": "选择起点"
125
+ "Select starting point": "选择起点",
126
+ "Now": "现在",
127
+ "Ongoing": "进行中"
126
128
  }
@@ -1,4 +1,13 @@
1
- class c {
1
+ (function() {
2
+ try {
3
+ var o = typeof window < "u" ? window : typeof global < "u" ? global : typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : {};
4
+ o.SENTRY_RELEASE = { id: "3.0.0-alpha.16" };
5
+ var t = new o.Error().stack;
6
+ t && (o._sentryDebugIds = o._sentryDebugIds || {}, o._sentryDebugIds[t] = "7bb9c1f4-826f-44b2-80a8-3d0519897683", o._sentryDebugIdIdentifier = "sentry-dbid-7bb9c1f4-826f-44b2-80a8-3d0519897683");
7
+ } catch {
8
+ }
9
+ })();
10
+ class u {
2
11
  constructor(t, e, i) {
3
12
  this.id = 0, this.name = t, this.fg = e, this.bg = i, this.gradient = null, this.PR = Math.round(window.devicePixelRatio || 1), this.WIDTH = 90 * this.PR, this.HEIGHT = 48 * this.PR, this.TEXT_X = 3 * this.PR, this.TEXT_Y = 2 * this.PR, this.GRAPH_X = 3 * this.PR, this.GRAPH_Y = 15 * this.PR, this.GRAPH_WIDTH = 84 * this.PR, this.GRAPH_HEIGHT = 30 * this.PR, this.canvas = document.createElement("canvas"), this.canvas.width = this.WIDTH, this.canvas.height = this.HEIGHT, this.canvas.style.width = "90px", this.canvas.style.height = "48px", this.canvas.style.position = "absolute", this.canvas.style.cssText = "width:90px;height:48px;background-color: transparent !important;", this.context = this.canvas.getContext("2d"), this.initializeCanvas();
4
13
  }
@@ -80,7 +89,7 @@ class c {
80
89
  )), this.context.globalAlpha = 1;
81
90
  }
82
91
  }
83
- class T extends c {
92
+ class T extends u {
84
93
  constructor(t, e, i) {
85
94
  super(t, e, i), this.vsyncValue = 0, this.SMALL_HEIGHT = 9 * this.PR, this.HEIGHT = this.SMALL_HEIGHT, this.WIDTH = 35 * this.PR, this.TEXT_Y = 0 * this.PR, this.canvas.height = this.HEIGHT, this.canvas.width = this.WIDTH, this.canvas.style.height = "9px", this.canvas.style.width = "35px", this.canvas.style.cssText = `
86
95
  width: 35px;
@@ -111,7 +120,7 @@ class T extends c {
111
120
  this.canvas.style.transform = `translate(${t}px, ${e}px)`;
112
121
  }
113
122
  }
114
- const u = class l {
123
+ const f = class c {
115
124
  constructor({
116
125
  trackGPU: t = !1,
117
126
  trackCPT: e = !1,
@@ -121,9 +130,9 @@ const u = class l {
121
130
  graphsPerSecond: a = 30,
122
131
  samplesLog: n = 40,
123
132
  samplesGraph: r = 10,
124
- precision: o = 2,
125
- minimal: m = !1,
126
- horizontal: d = !0,
133
+ precision: l = 2,
134
+ minimal: d = !1,
135
+ horizontal: m = !0,
127
136
  mode: p = 0
128
137
  } = {}) {
129
138
  this.gl = null, this.ext = null, this.activeQuery = null, this.gpuQueries = [], this.threeRendererPatched = !1, this.frameTimes = [], this.renderCount = 0, this.totalCpuDuration = 0, this.totalGpuDuration = 0, this.totalGpuDurationCompute = 0, this.fpsPanel = null, this.msPanel = null, this.gpuPanel = null, this.gpuPanelCompute = null, this.vsyncPanel = null, this.averageFps = { logs: [], graph: [] }, this.averageCpu = { logs: [], graph: [] }, this.averageGpu = { logs: [], graph: [] }, this.averageGpuCompute = { logs: [], graph: [] }, this.updateCounter = 0, this.lastMin = {}, this.lastMax = {}, this.lastValue = {}, this.VSYNC_RATES = [
@@ -138,9 +147,9 @@ const u = class l {
138
147
  P.preventDefault(), this.showPanel(++this.mode % this.dom.children.length);
139
148
  }, this.handleResize = () => {
140
149
  this.fpsPanel && this.resizePanel(this.fpsPanel), this.msPanel && this.resizePanel(this.msPanel), this.gpuPanel && this.resizePanel(this.gpuPanel), this.gpuPanelCompute && this.resizePanel(this.gpuPanelCompute);
141
- }, this.mode = p, this.horizontal = d, this.minimal = m, this.trackGPU = t, this.trackCPT = e, this.trackHz = i, this.trackFPS = s, this.samplesLog = n, this.samplesGraph = r, this.precision = o, this.logsPerSecond = h, this.graphsPerSecond = a;
150
+ }, this.mode = p, this.horizontal = m, this.minimal = d, this.trackGPU = t, this.trackCPT = e, this.trackHz = i, this.trackFPS = s, this.samplesLog = n, this.samplesGraph = r, this.precision = l, this.logsPerSecond = h, this.graphsPerSecond = a;
142
151
  const g = performance.now();
143
- this.prevGraphTime = g, this.dom = document.createElement("div"), this.initializeDOM(), this.beginTime = performance.now(), this.prevTextTime = this.beginTime, this.prevCpuTime = this.beginTime, this._panelId = 0, this.trackFPS && (this.fpsPanel = this.addPanel(new l.Panel("FPS", "#0ff", "#002")), this.msPanel = this.addPanel(new l.Panel("CPU", "#0f0", "#020"))), this.trackHz === !0 && (this.vsyncPanel = new T("", "#f0f", "#202"), this.dom.appendChild(this.vsyncPanel.canvas), this.vsyncPanel.setOffset(56, 35)), this.setupEventListeners();
152
+ this.prevGraphTime = g, this.dom = document.createElement("div"), this.initializeDOM(), this.beginTime = performance.now(), this.prevTextTime = this.beginTime, this.prevCpuTime = this.beginTime, this._panelId = 0, this.trackFPS && (this.fpsPanel = this.addPanel(new c.Panel("FPS", "#0ff", "#002")), this.msPanel = this.addPanel(new c.Panel("CPU", "#0f0", "#020"))), this.trackHz === !0 && (this.vsyncPanel = new T("", "#f0f", "#202"), this.dom.appendChild(this.vsyncPanel.canvas), this.vsyncPanel.setOffset(56, 35)), this.setupEventListeners();
144
153
  }
145
154
  initializeDOM() {
146
155
  this.dom.style.cssText = `
@@ -174,7 +183,7 @@ const u = class l {
174
183
  return t.isWebGPURenderer ? ((this.trackGPU || this.trackCPT) && (t.backend.trackTimestamp = !0, t._initialized || await t.init(), t.hasFeature("timestamp-query") && this.initializeWebGPUPanels()), this.info = t.info, this.patchThreeWebGPU(t), !0) : !1;
175
184
  }
176
185
  initializeWebGPUPanels() {
177
- this.trackGPU && (this.gpuPanel = this.addPanel(new l.Panel("GPU", "#ff0", "#220"))), this.trackCPT && (this.gpuPanelCompute = this.addPanel(new l.Panel("CPT", "#e1e1e1", "#212121")));
186
+ this.trackGPU && (this.gpuPanel = this.addPanel(new c.Panel("GPU", "#ff0", "#220"))), this.trackCPT && (this.gpuPanelCompute = this.addPanel(new c.Panel("CPT", "#e1e1e1", "#212121")));
178
187
  }
179
188
  initializeWebGL(t) {
180
189
  if (t instanceof WebGL2RenderingContext)
@@ -189,7 +198,7 @@ const u = class l {
189
198
  return !0;
190
199
  }
191
200
  initializeGPUTracking() {
192
- this.gl && (this.ext = this.gl.getExtension("EXT_disjoint_timer_query_webgl2"), this.ext && (this.gpuPanel = this.addPanel(new l.Panel("GPU", "#ff0", "#220"))));
201
+ this.gl && (this.ext = this.gl.getExtension("EXT_disjoint_timer_query_webgl2"), this.ext && (this.gpuPanel = this.addPanel(new c.Panel("GPU", "#ff0", "#220"))));
193
202
  }
194
203
  begin() {
195
204
  this.beginProfiling("cpu-started"), !(!this.gl || !this.ext) && (this.activeQuery && this.gl.endQuery(this.ext.TIME_ELAPSED_EXT), this.activeQuery = this.gl.createQuery(), this.activeQuery && this.gl.beginQuery(this.ext.TIME_ELAPSED_EXT, this.activeQuery));
@@ -238,15 +247,15 @@ const u = class l {
238
247
  const e = t - this.lastFrameTime;
239
248
  if (this.lastFrameTime = t, this.frameTimeHistory.push(e), this.frameTimeHistory.length > this.HISTORY_SIZE && this.frameTimeHistory.shift(), this.frameTimeHistory.length < 60)
240
249
  return;
241
- const i = this.frameTimeHistory.reduce((r, o) => r + o) / this.frameTimeHistory.length, s = this.frameTimeHistory.reduce((r, o) => r + Math.pow(o - i, 2), 0) / this.frameTimeHistory.length;
250
+ const i = this.frameTimeHistory.reduce((r, l) => r + l) / this.frameTimeHistory.length, s = this.frameTimeHistory.reduce((r, l) => r + Math.pow(l - i, 2), 0) / this.frameTimeHistory.length;
242
251
  if (Math.sqrt(s) > 2) {
243
252
  this.detectedVSync = null;
244
253
  return;
245
254
  }
246
255
  let a = null, n = 1 / 0;
247
256
  for (const r of this.VSYNC_RATES) {
248
- const o = Math.abs(i - r.frameTime);
249
- o < n && (n = o, a = r);
257
+ const l = Math.abs(i - r.frameTime);
258
+ l < n && (n = l, a = r);
250
259
  }
251
260
  a && n / a.frameTime <= this.VSYNC_THRESHOLD ? this.detectedVSync = a : this.detectedVSync = null;
252
261
  }
@@ -343,8 +352,8 @@ const u = class l {
343
352
  }, this.threeRendererPatched = !0;
344
353
  }
345
354
  };
346
- u.Panel = c;
347
- let x = u;
355
+ f.Panel = u;
356
+ let x = f;
348
357
  export {
349
358
  x as default
350
359
  };
@@ -1,26 +1,35 @@
1
- import { f as k } from "./index-Zz9lJz5_.js";
2
- function w(p, u) {
3
- for (var r = 0; r < u.length; r++) {
4
- const c = u[r];
5
- if (typeof c != "string" && !Array.isArray(c)) {
6
- for (const a in c)
7
- if (a !== "default" && !(a in p)) {
8
- const f = Object.getOwnPropertyDescriptor(c, a);
9
- f && Object.defineProperty(p, a, f.get ? f : {
1
+ import { k } from "./index-C04zJbbt.js";
2
+ (function() {
3
+ try {
4
+ var c = typeof window < "u" ? window : typeof global < "u" ? global : typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : {};
5
+ c.SENTRY_RELEASE = { id: "3.0.0-alpha.16" };
6
+ var f = new c.Error().stack;
7
+ f && (c._sentryDebugIds = c._sentryDebugIds || {}, c._sentryDebugIds[f] = "032598d7-e41e-4a76-8d59-9ab38d97f81c", c._sentryDebugIdIdentifier = "sentry-dbid-032598d7-e41e-4a76-8d59-9ab38d97f81c");
8
+ } catch {
9
+ }
10
+ })();
11
+ function w(c, f) {
12
+ for (var r = 0; r < f.length; r++) {
13
+ const p = f[r];
14
+ if (typeof p != "string" && !Array.isArray(p)) {
15
+ for (const a in p)
16
+ if (a !== "default" && !(a in c)) {
17
+ const u = Object.getOwnPropertyDescriptor(p, a);
18
+ u && Object.defineProperty(c, a, u.get ? u : {
10
19
  enumerable: !0,
11
- get: () => c[a]
20
+ get: () => p[a]
12
21
  });
13
22
  }
14
23
  }
15
24
  }
16
- return Object.freeze(Object.defineProperty(p, Symbol.toStringTag, { value: "Module" }));
25
+ return Object.freeze(Object.defineProperty(c, Symbol.toStringTag, { value: "Module" }));
17
26
  }
18
- var _ = { exports: {} }, y;
27
+ var y = { exports: {} }, v;
19
28
  function S() {
20
- return y || (y = 1, (function(p) {
21
- var u = (function(r, c) {
22
- var a, f = {};
23
- function b(e, t) {
29
+ return v || (v = 1, (function(c) {
30
+ var f = (function(r, p) {
31
+ var a, u = {};
32
+ function P(e, t) {
24
33
  return e.x < t.x ? -1 : e.x > t.x ? 1 : e.y < t.y ? -1 : e.y > t.y ? 1 : 0;
25
34
  }
26
35
  return (a = function() {
@@ -35,7 +44,7 @@ function S() {
35
44
  }, a.prototype._initializeCanvas = function() {
36
45
  var e, t, n = this;
37
46
  if (!n.options.selector) return console.warn("particles.js: No selector specified! Check https://github.com/marcbruederlin/particles.js#options"), !1;
38
- n.element = n.options.selector.tagName ? n.options.selector : c.querySelector(n.options.selector), n.context = n.element.getContext("2d"), e = r.devicePixelRatio || 1, t = n.context.webkitBackingStorePixelRatio || n.context.mozBackingStorePixelRatio || n.context.msBackingStorePixelRatio || n.context.oBackingStorePixelRatio || n.context.backingStorePixelRatio || 1, n.ratio = e / t, n.element.width = n.element.offsetParent ? n.element.offsetParent.clientWidth * n.ratio : n.element.clientWidth * n.ratio, n.element.offsetParent && n.element.offsetParent.nodeName === "BODY" ? n.element.height = r.innerHeight * n.ratio : n.element.height = n.element.offsetParent ? n.element.offsetParent.clientHeight * n.ratio : n.element.clientHeight * n.ratio, n.element.style.width = "100%", n.element.style.height = "100%", n.context.scale(n.ratio, n.ratio);
47
+ n.element = n.options.selector.tagName ? n.options.selector : p.querySelector(n.options.selector), n.context = n.element.getContext("2d"), e = r.devicePixelRatio || 1, t = n.context.webkitBackingStorePixelRatio || n.context.mozBackingStorePixelRatio || n.context.msBackingStorePixelRatio || n.context.oBackingStorePixelRatio || n.context.backingStorePixelRatio || 1, n.ratio = e / t, n.element.width = n.element.offsetParent ? n.element.offsetParent.clientWidth * n.ratio : n.element.clientWidth * n.ratio, n.element.offsetParent && n.element.offsetParent.nodeName === "BODY" ? n.element.height = r.innerHeight * n.ratio : n.element.height = n.element.offsetParent ? n.element.offsetParent.clientHeight * n.ratio : n.element.clientHeight * n.ratio, n.element.style.width = "100%", n.element.style.height = "100%", n.context.scale(n.ratio, n.ratio);
39
48
  }, a.prototype._initializeEvents = function() {
40
49
  var e = this;
41
50
  e.listener = (function() {
@@ -44,7 +53,7 @@ function S() {
44
53
  }, a.prototype._initializeStorage = function() {
45
54
  var e = this;
46
55
  e.storage = [];
47
- for (var t = e.options.maxParticles; t--; ) e.storage.push(new f(e.context, e.options));
56
+ for (var t = e.options.maxParticles; t--; ) e.storage.push(new u(e.context, e.options));
48
57
  }, a.prototype._registerBreakpoints = function() {
49
58
  var e, t, n, i = this, o = i.options.responsive || null;
50
59
  if (typeof o == "object" && o !== null && o.length) {
@@ -81,15 +90,15 @@ function S() {
81
90
  var e = this, t = e.element, n = t.offsetParent ? t.offsetParent.clientWidth : t.clientWidth, i = t.offsetParent ? t.offsetParent.clientHeight : t.clientHeight, o = e.options.showParticles, s = e.storage;
82
91
  t.offsetParent && t.offsetParent.nodeName === "BODY" && (i = r.innerHeight), e.context.clearRect(0, 0, t.width, t.height), e.context.beginPath();
83
92
  for (var l = s.length; l--; ) {
84
- var m = s[l];
85
- o && m._draw(), m._updateCoordinates(n, i);
93
+ var h = s[l];
94
+ o && h._draw(), h._updateCoordinates(n, i);
86
95
  }
87
- e.options.connectParticles && (s.sort(b), e._updateEdges());
96
+ e.options.connectParticles && (s.sort(P), e._updateEdges());
88
97
  }, a.prototype._updateEdges = function() {
89
- for (var e = this, t = e.options.minDistance, n = Math.sqrt, i = Math.abs, o = e.storage, s = o.length, l = 0; l < s; l++) for (var m = o[l], h = l + 1; h < s; h++) {
90
- var g, d = o[h], x = m.x - d.x, v = m.y - d.y;
91
- if (g = n(x * x + v * v), i(x) > t) break;
92
- g <= t && e._drawEdge(m, d, 1.2 - g / t);
98
+ for (var e = this, t = e.options.minDistance, n = Math.sqrt, i = Math.abs, o = e.storage, s = o.length, l = 0; l < s; l++) for (var h = o[l], m = l + 1; m < s; m++) {
99
+ var d, g = o[m], x = h.x - g.x, _ = h.y - g.y;
100
+ if (d = n(x * x + _ * _), i(x) > t) break;
101
+ d <= t && e._drawEdge(h, g, 1.2 - d / t);
93
102
  }
94
103
  }, a.prototype._drawEdge = function(e, t, n) {
95
104
  var i = this, o = i.context.createLinearGradient(e.x, e.y, t.x, t.y), s = this._hex2rgb(e.color), l = this._hex2rgb(t.color);
@@ -101,15 +110,15 @@ function S() {
101
110
  }, a.prototype._hex2rgb = function(e) {
102
111
  var t = /^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(e);
103
112
  return t ? { r: parseInt(t[1], 16), g: parseInt(t[2], 16), b: parseInt(t[3], 16) } : null;
104
- }, (f = function(e, t) {
113
+ }, (u = function(e, t) {
105
114
  var n = this, i = Math.random, o = t.speed, s = t.color instanceof Array ? t.color[Math.floor(Math.random() * t.color.length)] : t.color;
106
115
  n.context = e;
107
- var l = (n.options = t).selector.tagName ? t.selector : c.querySelector(t.selector);
116
+ var l = (n.options = t).selector.tagName ? t.selector : p.querySelector(t.selector);
108
117
  n.x = l.offsetParent ? i() * l.offsetParent.clientWidth : i() * l.clientWidth, l.offsetParent && l.offsetParent.nodeName === "BODY" ? n.y = i() * r.innerHeight : n.y = l.offsetParent ? i() * l.offsetParent.clientHeight : i() * l.clientHeight, n.vx = i() * o * 2 - o, n.vy = i() * o * 2 - o, n.radius = i() * i() * t.sizeVariations, n.color = s, n._draw();
109
118
  }).prototype._draw = function() {
110
119
  var e = this;
111
120
  e.context.save(), e.context.translate(e.x, e.y), e.context.moveTo(0, 0), e.context.beginPath(), e.context.arc(0, 0, e.radius, 0, 2 * Math.PI, !1), e.context.fillStyle = e.color, e.context.fill(), e.context.restore();
112
- }, f.prototype._updateCoordinates = function(e, t) {
121
+ }, u.prototype._updateCoordinates = function(e, t) {
113
122
  var n = this, i = n.x + this.vx, o = n.y + this.vy, s = n.radius;
114
123
  e < i + s ? i = s : i - s < 0 && (i = e - s), t < o + s ? o = s : o - s < 0 && (o = t - s), n.x = i, n.y = o;
115
124
  }, r.requestAnimFrame = (function() {
@@ -120,15 +129,15 @@ function S() {
120
129
  })(), new a();
121
130
  })(window, document);
122
131
  (function() {
123
- p.exports ? p.exports = u : window.Particles = u;
132
+ c.exports ? c.exports = f : window.Particles = f;
124
133
  })();
125
- })(_)), _.exports;
134
+ })(y)), y.exports;
126
135
  }
127
- var P = S();
128
- const z = /* @__PURE__ */ k(P), B = /* @__PURE__ */ w({
136
+ var b = S();
137
+ const z = /* @__PURE__ */ k(b), A = /* @__PURE__ */ w({
129
138
  __proto__: null,
130
139
  default: z
131
- }, [P]);
140
+ }, [b]);
132
141
  export {
133
- B as p
142
+ A as p
134
143
  };
@@ -2,11 +2,13 @@ import type { ReactNode } from "react";
2
2
  import React from "react";
3
3
  import "./Alert.scss";
4
4
  export type AlertVariant = "info" | "warning" | "error" | "success" | "blank";
5
+ export type AlertSize = "sm" | "md";
5
6
  export type AlertPosition = "topRight" | "bottomRight";
6
7
  export interface AlertProps {
7
8
  children?: ReactNode;
8
9
  position?: AlertPosition;
9
10
  variant?: AlertVariant;
11
+ size?: AlertSize;
10
12
  inline?: boolean;
11
13
  showIcon?: boolean;
12
14
  closable?: boolean;
@@ -1 +1 @@
1
- import{jsx as r,jsxs as a}from"react/jsx-runtime";import t from"classnames";import"./Alert.scss";const u=({children:i,position:s,variant:e="info",inline:c=!1,showIcon:o=!0,closable:n=!1,title:l,onClose:d})=>{const f=()=>{switch(e){case"error":return"icon-close-solid";case"success":return"icon-checkmark-solid";case"warning":return"icon-warning-solid";default:return"icon-info-solid"}};return a("div",{className:t("efp-alert",`efp-alert--${e}`,{isInline:c,[`efp-alert--${s}`]:s}),role:e==="error"||e==="warning"?"alert":"status","aria-live":e==="error"||e==="warning"?"assertive":"polite",children:[o&&r("div",{className:"efp-alert__icon",children:r("i",{className:t(f()),"aria-hidden":"true"})}),a("div",{className:"efp-alert__content",children:[l&&r("div",{className:"efp-alert__title",children:l}),i]}),n&&r("button",{type:"button",className:"efp-alert__close",onClick:d,"aria-label":"Close alert",title:"Close"})]})};export default u;
1
+ import{jsx as r,jsxs as a}from"react/jsx-runtime";import t from"classnames";import"./Alert.scss";const p=({children:i,position:s,variant:e="info",inline:c=!1,showIcon:o=!0,size:n="md",closable:d=!1,title:l,onClose:f})=>{const m=()=>{switch(e){case"error":return"icon-close-solid";case"success":return"icon-checkmark-solid";case"warning":return"icon-warning-solid";default:return"icon-info-solid"}};return a("div",{className:t("efp-alert",`efp-alert--${e} efp-alert--${n}`,{isInline:c,[`efp-alert--${s}`]:s}),role:e==="error"||e==="warning"?"alert":"status","aria-live":e==="error"||e==="warning"?"assertive":"polite",children:[o&&r("div",{className:"efp-alert__icon",children:r("i",{className:t(m()),"aria-hidden":"true"})}),a("div",{className:"efp-alert__content",children:[l&&r("div",{className:"efp-alert__title",children:l}),i]}),d&&r("button",{type:"button",className:"efp-alert__close",onClick:f,"aria-label":"Close alert",title:"Close"})]})};export default p;
@@ -1,13 +1,14 @@
1
1
  import type { ReactNode } from "react";
2
2
  import React from "react";
3
3
  import "./Badge.scss";
4
- export type BadgeVariant = "primary" | "primary-light" | "lightgray" | "gray" | "ghost" | "orange";
4
+ export type BadgeVariant = "primary" | "primary-light" | "lightgray" | "gray" | "ghost" | "orange" | "location";
5
5
  export interface BadgeProps {
6
6
  children?: ReactNode;
7
7
  variant?: BadgeVariant;
8
- size?: "md" | "lg";
8
+ size?: "xs" | "md" | "lg";
9
9
  noMargins?: boolean;
10
10
  rounded?: boolean;
11
+ inline?: boolean;
11
12
  }
12
13
  declare const Badge: React.FC<BadgeProps>;
13
14
  export default Badge;
@@ -1 +1 @@
1
- import{jsx as d}from"react/jsx-runtime";import s from"classnames";import"./Badge.scss";const i=({children:e,variant:r="ghost",size:t="lg",noMargins:o,rounded:a})=>d("div",{className:s({"efp-badge":!0,[`efp-badge--${r}`]:!0,[`efp-badge--${t}`]:!0,"is-no-margin":o,"is-rounded":a}),children:e});export default i;
1
+ import{jsx as a}from"react/jsx-runtime";import d from"classnames";import"./Badge.scss";const n=({children:e,variant:r="ghost",size:i="lg",noMargins:t,rounded:o,inline:s})=>a("div",{className:d({"efp-badge":!0,[`efp-badge--${r}`]:!0,[`efp-badge--${i}`]:!0,"is-no-margin":t,"is-rounded":o,"is-inline":s}),children:e});export default n;
@@ -1 +1 @@
1
- import{jsx as i,jsxs as a}from"react/jsx-runtime";import{t as o}from"../utils/i18n";import{observer as s}from"mobx-react-lite";import c from"../store";import{PermissionNotice as l}from"./index";const g=s(({link:r,onClickAccept:t,onClickReject:n})=>{const e=c.languageStore.language;return a(l,{title:o("Cookie Consent",{lng:e.id}),acceptText:o("Accept cookies",{lng:e.id}),rejectText:o("Reject",{lng:e.id}),onClickAccept:t,onClickReject:n,children:[o("We use cookies for analytics only",{lng:e.id}),"\xA0",r&&i("a",{href:r,target:"_blank",rel:"noopener noreferrer","aria-label":o("Read more about cookie usage in a new tab",{lng:e.id}),children:o("Read More",{lng:e.id})})]})});export default g;
1
+ import{jsx as c,jsxs as i}from"react/jsx-runtime";import{t as e}from"../utils/i18n";import{observer as s}from"mobx-react-lite";import{PermissionNotice as a}from"./index";const n=s(({link:o,onClickAccept:r,onClickReject:t})=>i(a,{title:e("Cookie Consent"),acceptText:e("Accept cookies"),rejectText:e("Reject"),onClickAccept:r,onClickReject:t,children:[e("We use cookies for analytics only"),"\xA0",o&&c("a",{href:o,target:"_blank",rel:"noopener noreferrer","aria-label":e("Read more about cookie usage in a new tab"),children:e("Read More")})]}));export default n;
@@ -1,5 +1,5 @@
1
1
  import { Kiosk } from "./types";
2
2
  export declare function saveKiosk(kiosk: Kiosk): Promise<void>;
3
3
  export declare function removeKiosk(): Promise<void>;
4
- export declare function getSavedKiosk(): any;
4
+ export declare function getSavedKiosk(): Kiosk | undefined;
5
5
  //# sourceMappingURL=storage.d.ts.map
@@ -1 +1 @@
1
- import{KIOSK_STORAGE_KEY as o}from"./constants";export async function saveKiosk(e){localStorage.setItem(o,JSON.stringify(e))}export async function removeKiosk(){localStorage.removeItem(o)}export function getSavedKiosk(){const e=localStorage.getItem(o);if(e)try{return JSON.parse(e)}catch(t){return console.warn(t),null}}
1
+ import{KIOSK_STORAGE_KEY as o}from"./constants";export async function saveKiosk(e){localStorage.setItem(o,JSON.stringify(e))}export async function removeKiosk(){localStorage.removeItem(o)}export function getSavedKiosk(){const e=localStorage.getItem(o);if(e)try{return JSON.parse(e)}catch(t){console.warn(t);return}}
@@ -1 +1 @@
1
- import{jsx as o}from"react/jsx-runtime";import t from"../../store";import{KIOSK_ENABLE_KEY as i}from"../../constants";import{integrateKioskIntoMap as a,integrateKioskIntoWf as s}from"./integrateKiosk";import e from"./KioskStore";import m from"../TouchHand";import{observer as n}from"mobx-react-lite";import{useInit as u}from"../../utils/mobx";const f=n(()=>(u(()=>{if(localStorage.getItem(i)==="0")return;const r=e.restoreData();if(r)return a(r,!0),s(r),t.setResetCameraFn(()=>e.resetCamera()),()=>{t.uiState.setKioskData(null),t.uiState.resetMapSettings(),e.resetCamera()}}),t.uiState.inIdle?o(m,{}):null));export default f;
1
+ import{jsx as o}from"react/jsx-runtime";import t from"../../store";import{KIOSK_ENABLE_KEY as i}from"../../constants";import{integrateKioskIntoMap as a,integrateKioskIntoWf as s}from"./integrateKiosk";import r from"./KioskStore";import m from"../TouchHand";import{observer as n}from"mobx-react-lite";import{useInit as u}from"../../utils/mobx";const f=n(()=>(u(()=>{if(localStorage.getItem(i)==="0")return;const e=r.restoreData();if(e)return a(e,!0),s(e),t.setResetCameraFn(()=>r.resetCamera()),()=>{t.uiState.setKioskData(null),t.uiState.resetMapSettings(),r.resetCamera()}}),t.uiState.kiosk&&t.uiState.inIdle?o(m,{}):null));export default f;
@@ -1 +1 @@
1
- import{jsx as e,jsxs as l,Fragment as b}from"react/jsx-runtime";import{useLocalStore as y,useObserver as g}from"mobx-react-lite";import{autorun as N}from"mobx";import{t as m}from"../utils/i18n";import o from"../data";import u from"../utils/is-iframe";import t,{uiState as n}from"../store";import S from"./Badge";import h from"../tools/logger";import f from"../tools/settings";import"./Menu.scss";import"./Menu_custom.scss";const d=/^https?:\/\//i.test(o.logo)?o.logo:window.__dataUrlBase+o.logo;h.log("Logo url: ",d),window.setTimeout(function(){const a=new Image;a.onload=()=>{h.log("Logo image loaded")},a.crossOrigin="anonymous",a.src=d},1500);function C({allowConsent:a,isGDPR:c}){const i=y(()=>({logoVisibility:"visible",shown:!1,shownTimeout:void 0,modalOpen:!1,selectedCategoryIds:(n.selectedCategoryFilters||[]).map(r=>Number(r.id)),pendingSelectedIds:(n.selectedCategoryFilters||[]).map(r=>Number(r.id))}));N(()=>{n.menu?(i.shownTimeout=window.setTimeout(()=>i.shown=!0,1),n.list.type==="sessions"&&t.searchStore.selectSearch()):(i.shown=!1,i.shownTimeout&&window.clearTimeout(i.shownTimeout))});function p(r){if(n.kiosk)return r.preventDefault()}function k(r){r.preventDefault(),v(),t.searchStore.selectSearch()}function _(r){r.preventDefault(),t.clickLanguage()}return g(()=>{if(!n.menu)return null;const r=t.boothStore.booths.filter(s=>s.bookmarked).map(s=>s.name),w=window.__fpSettings?.fpVer?`https://api-v2.expofp.com/export/v2/${f.EXPO}/pdf`:`https://api.expofp.com/service/convert/${f.EXPO}/pdf`;return l("div",{className:`menu ${i.shown?"shown":""}`,children:[u?e("div",{className:"menu__cover -empty"}):e("div",{className:"menu__cover",children:e("a",{href:o.homeUrl,target:"_blank",rel:"noopener noreferrer",onClick:p,children:e("img",{src:d,onError:()=>i.logoVisibility="hidden",style:{visibility:i.logoVisibility},alt:"",crossOrigin:"anonymous"})})}),l("div",{className:"menu__content",children:[e("a",{href:"/#",onClick:k,className:"menu__item",children:m("Search")}),!o.hideEventHomeLink&&!n.kiosk&&!u&&!!o.homeUrl&&l("a",{href:o.homeUrl,target:"_blank",className:"menu__item",rel:"noopener noreferrer",children:[m("Event Home").replace(/ /g,"\xA0"),"\xA0",e("i",{className:"icon-link-external"})]}),!o.hideRegisterToAttendLink&&!n.kiosk&&!u&&!!o.registerUrl&&l("a",{href:o.registerUrl,target:"_blank",className:"menu__item",rel:"noopener noreferrer",children:[m("Register to Attend").replace(/ /g,"\xA0"),"\xA0",e("i",{className:"icon-link-external"})]}),!n.hideLanguage&&!o.hideLanguage&&!o.hideLanguageLink&&l("a",{href:"?language",onClick:_,className:"menu__item -language",children:[l("span",{children:[m("Language")," "]}),l("span",{className:"menu__icons",children:[e(S,{variant:"gray",size:"md",noMargins:!0,children:t.languageStore.language?.name}),e("i",{className:"icon-chevron-right"})]})]}),!o.hideDownloadPdfLink&&!n.kiosk&&e("a",{className:"menu__item -pdf",target:"_blank",rel:"noopener noreferrer",href:`${w}/?exhibitors=true&bookmarks=${r.join(",")}&layers=${(t.layerStore.layers.length>=t.layerStore.visible.length?t.layerStore.visible.map(s=>s.name).join(","):"").replace(/&/g,"%26")}`,children:m("Download PDF")}),a===void 0&&c&&e("a",{href:"/#",className:"menu__item -cookie-consent",onClick:s=>{s.preventDefault(),n.hideCookieConsent=!1},children:m("Review Cookie Consent")})]})]})});function v(){n.menu=!1}}export default({isGDPR:a,allowConsent:c})=>g(()=>e(b,{children:n.menu?e(C,{isGDPR:a,allowConsent:c}):null}));
1
+ import{jsx as e,jsxs as s,Fragment as y}from"react/jsx-runtime";import N,{Suspense as S}from"react";import{useLocalStore as L,useObserver as h}from"mobx-react-lite";import{autorun as C}from"mobx";import{t as m}from"../utils/i18n";import r from"../data";import u from"../utils/is-iframe";import i,{uiState as n}from"../store";import x from"./Badge";const D=N.lazy(()=>import("./ViewerMenuPanel"));import g from"../tools/logger";import f from"../tools/settings";import"./Menu.scss";import"./Menu_custom.scss";const d=/^https?:\/\//i.test(r.logo)?r.logo:window.__dataUrlBase+r.logo;g.log("Logo url: ",d),window.setTimeout(function(){const t=new Image;t.onload=()=>{g.log("Logo image loaded")},t.crossOrigin="anonymous",t.src=d},1500);function T({allowConsent:t,isGDPR:c}){const a=L(()=>({logoVisibility:"visible",shown:!1,shownTimeout:void 0,modalOpen:!1,selectedCategoryIds:(n.selectedCategoryFilters||[]).map(o=>Number(o.id)),pendingSelectedIds:(n.selectedCategoryFilters||[]).map(o=>Number(o.id))}));C(()=>{n.menu?(a.shownTimeout=window.setTimeout(()=>a.shown=!0,1),n.list.type==="sessions"&&i.searchStore.selectSearch()):(a.shown=!1,a.shownTimeout&&window.clearTimeout(a.shownTimeout))});function p(o){if(n.kiosk)return o.preventDefault()}function k(o){o.preventDefault(),w(),i.searchStore.selectSearch()}function v(o){o.preventDefault(),i.fp?.onLeaveEvent?.()}function _(o){o.preventDefault(),i.clickLanguage()}return h(()=>{if(!n.menu)return null;const o=i.boothStore.booths.filter(l=>l.bookmarked).map(l=>l.name),b=window.__fpSettings?.fpVer?`https://api-v2.expofp.com/export/v2/${f.EXPO}/pdf`:`https://api.expofp.com/service/convert/${f.EXPO}/pdf`;return s("div",{className:`menu ${a.shown?"shown":""}`,children:[u?e("div",{className:"menu__cover -empty"}):e("div",{className:"menu__cover",children:e("a",{href:r.homeUrl,target:"_blank",rel:"noopener noreferrer",onClick:p,children:e("img",{src:d,onError:()=>a.logoVisibility="hidden",style:{visibility:a.logoVisibility},alt:"",crossOrigin:"anonymous"})})}),s("div",{className:"menu__content",children:[n.viewerMode&&e(S,{fallback:null,children:e(D,{})}),!n.viewerMode&&e("a",{href:"/#",onClick:k,className:"menu__item",children:m("Search")}),!r.hideEventHomeLink&&!n.kiosk&&!u&&!!r.homeUrl&&s("a",{href:r.homeUrl,target:"_blank",className:"menu__item",rel:"noopener noreferrer",children:[m("Event Home").replace(/ /g,"\xA0"),"\xA0",e("i",{className:"icon-link-external"})]}),!r.hideRegisterToAttendLink&&!n.kiosk&&!u&&!!r.registerUrl&&s("a",{href:r.registerUrl,target:"_blank",className:"menu__item",rel:"noopener noreferrer",children:[m("Register to Attend").replace(/ /g,"\xA0"),"\xA0",e("i",{className:"icon-link-external"})]}),!n.hideLanguage&&!r.hideLanguage&&!r.hideLanguageLink&&s("a",{href:"?language",onClick:_,className:"menu__item -language",children:[s("span",{children:[m("Language")," "]}),s("span",{className:"menu__icons",children:[e(x,{variant:"gray",size:"md",noMargins:!0,children:i.languageStore.language?.name}),e("i",{className:"icon-chevron-right"})]})]}),!r.hideDownloadPdfLink&&!n.kiosk&&e("a",{className:"menu__item -pdf",target:"_blank",rel:"noopener noreferrer",href:`${b}/?exhibitors=true&bookmarks=${o.join(",")}&layers=${(i.layerStore.layers.length>=i.layerStore.visible.length?i.layerStore.visible.map(l=>l.name).join(","):"").replace(/&/g,"%26")}`,children:m("Download PDF")}),t===void 0&&c&&e("a",{href:"/#",className:"menu__item -cookie-consent",onClick:l=>{l.preventDefault(),n.hideCookieConsent=!1},children:m("Review Cookie Consent")}),n.viewerMode&&e("a",{href:"/#",className:"menu__item -leave-event menu__leave-link",onClick:v,children:m("Select another event")})]})]})});function w(){n.menu=!1}}export default({isGDPR:t,allowConsent:c})=>h(()=>e(y,{children:n.menu?e(T,{isGDPR:t,allowConsent:c}):null}));
@@ -12,6 +12,8 @@ export interface OverlayPanelProps {
12
12
  mediumSizeMultiplier?: number;
13
13
  fullSizeOffset?: number;
14
14
  scrollThreshold?: number;
15
+ disableDrag?: boolean;
16
+ forceFull?: boolean;
15
17
  onChangeSize?: (size: Size) => void;
16
18
  onScrollStateChange?: (isScrolled: boolean) => void;
17
19
  }