@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.
- package/dist/browser/{Debug-Pul6-ZdY.js → Debug-DazuGIJc.js} +19 -10
- package/dist/browser/Demo-CXdISYQf.js +47 -0
- package/dist/browser/{Free-Dm2FRajw.js → Free-CVgHQ8yt.js} +29 -20
- package/dist/browser/Gallery-BMcvPLO_.js +288 -0
- package/dist/browser/GpsLoader-BiwFO3QG.js +140 -0
- package/dist/browser/{KioskStore-Bvvm0aNQ.js → KioskStore-NqUeUutQ.js} +58 -49
- package/dist/browser/Mapbox-PHCrBnx5.js +118 -0
- package/dist/browser/{SetKioskMode-BecTBVRp.js → SetKioskMode-DMQej1ec.js} +86 -77
- package/dist/browser/{ShowKiosk-C-6DHz7T.js → ShowKiosk-BWlBMcI7.js} +28 -19
- package/dist/browser/{ThreeComponent-Brnrh22I.js → ThreeComponent-Dmt2HPyX.js} +181 -172
- package/dist/browser/ViewerMenuPanel-CuqRZ7m1.js +77 -0
- package/dist/browser/boolean-editor-zsvPcNpX.js +157 -0
- package/dist/browser/bundle.json +32 -29
- package/dist/browser/{client-D3Op9Jdd.js → client-B2kCMH8A.js} +590 -581
- package/dist/browser/{data-0pZ-ZMEi.js → data-BtD6blv7.js} +276 -267
- package/dist/browser/{debug-overlay-6c_tWF4O.js → debug-overlay-CF0imHRX.js} +98 -89
- package/dist/browser/debug-ui-Zt7T7T-N.js +67 -0
- package/dist/browser/{favicon-DalyEhbd.js → favicon-Dj8hNa7i.js} +11 -2
- package/dist/browser/fetch-retry.umd-B-swKpFA.js +123 -0
- package/dist/browser/{flex-OW_m-DBA.js → flex-COa6XN1F.js} +80 -71
- package/dist/browser/{floorplan.ready-D-VQ-QvS.js → floorplan.ready-CNnM_Yyc.js} +12217 -14231
- package/dist/browser/fonts/efp-symbols.woff +0 -0
- package/dist/browser/index-B1P-x0sk.js +92 -0
- package/dist/browser/index-BEcZnTgd.js +54 -0
- package/dist/browser/{index-BUq8_R36.js → index-BeS6l0j-.js} +50 -41
- package/dist/browser/index-C04zJbbt.js +12475 -0
- package/dist/browser/index-CgWDjED_.js +57 -0
- package/dist/browser/{index-BuJlIIdP.js → index-CqICVJZO.js} +96 -87
- package/dist/browser/{index-AJbTBu7z.js → index-atMSRNM1.js} +258 -249
- package/dist/browser/index.js +11 -2
- package/dist/browser/jsx-runtime-DAY7g56y.js +40 -0
- package/dist/browser/locales/ar.json +3 -1
- package/dist/browser/locales/de.json +3 -1
- package/dist/browser/locales/es.json +3 -1
- package/dist/browser/locales/fr.json +3 -1
- package/dist/browser/locales/he.json +3 -1
- package/dist/browser/locales/it.json +3 -1
- package/dist/browser/locales/kk.json +3 -1
- package/dist/browser/locales/ko.json +3 -1
- package/dist/browser/locales/mn.json +3 -1
- package/dist/browser/locales/nl.json +3 -1
- package/dist/browser/locales/pl.json +3 -1
- package/dist/browser/locales/pt.json +3 -1
- package/dist/browser/locales/ru.json +3 -1
- package/dist/browser/locales/sv.json +3 -1
- package/dist/browser/locales/th.json +3 -1
- package/dist/browser/locales/tr.json +3 -1
- package/dist/browser/locales/uk.json +3 -1
- package/dist/browser/locales/vi.json +3 -1
- package/dist/browser/locales/zh.json +3 -1
- package/dist/browser/{main-CD9JioNt.js → main-DZpmA53N.js} +24 -15
- package/dist/browser/{particles.min-BZTb0pvb.js → particles.min-DXab_WLN.js} +43 -34
- package/dist/esm/components/Alert.d.ts +2 -0
- package/dist/esm/components/Alert.js +1 -1
- package/dist/esm/components/Badge.d.ts +3 -2
- package/dist/esm/components/Badge.js +1 -1
- package/dist/esm/components/CookieConsent.js +1 -1
- package/dist/esm/components/Kiosk/SetKiosk/storage.d.ts +1 -1
- package/dist/esm/components/Kiosk/SetKiosk/storage.js +1 -1
- package/dist/esm/components/Kiosk/ShowKiosk.js +1 -1
- package/dist/esm/components/Menu.js +1 -1
- package/dist/esm/components/Overlay.d.ts +2 -0
- package/dist/esm/components/Overlay.js +1 -1
- package/dist/esm/components/OverlayContainer.js +1 -1
- package/dist/esm/components/RoutePlanner/RoutePlanner.js +1 -1
- package/dist/esm/components/RoutePlanner/RoutePlannerHeader.js +1 -1
- package/dist/esm/components/RoutePlanner/RoutePlannerStopItem.js +1 -1
- package/dist/esm/components/Schedule.js +1 -1
- package/dist/esm/components/SearchBox.js +1 -1
- package/dist/esm/components/ViewerMenuPanel.d.ts +5 -0
- package/dist/esm/components/ViewerMenuPanel.js +1 -0
- package/dist/esm/constants.d.ts +2 -0
- package/dist/esm/constants.js +1 -1
- package/dist/esm/floorplan.loader.d.ts +2 -0
- package/dist/esm/floorplan.loader.js +1 -1
- package/dist/esm/floorplan.ready.js +1 -1
- package/dist/esm/services/routing.js +1 -1
- package/dist/esm/store/LayerStore.d.ts +1 -0
- package/dist/esm/store/LayerStore.js +1 -1
- package/dist/esm/store/RoutePlannerStore.d.ts +16 -0
- package/dist/esm/store/RoutePlannerStore.js +1 -1
- package/dist/esm/store/UIState.d.ts +1 -0
- package/dist/esm/store/UIState.js +1 -1
- package/dist/esm/store/init/init-layers.js +1 -1
- package/dist/esm/tools/telemetry.d.ts +35 -0
- package/dist/esm/tools/telemetry.js +1 -0
- package/dist/esm/tools/track-event.d.ts +3 -1
- package/dist/esm/tools/track-event.js +1 -1
- package/dist/esm/utils/i18n.d.ts +2 -2
- package/dist/esm/utils/i18n.js +1 -1
- package/package.json +4 -3
- package/dist/browser/Demo-DN_Ej-P_.js +0 -38
- package/dist/browser/Gallery-TLr-wfCG.js +0 -279
- package/dist/browser/GpsLoader-CeS0cp98.js +0 -131
- package/dist/browser/Mapbox-DizBJSb0.js +0 -109
- package/dist/browser/boolean-editor-Duwgypgb.js +0 -148
- package/dist/browser/debug-ui-TGRI1j4k.js +0 -58
- package/dist/browser/fetch-retry.umd-BZ52tMyv.js +0 -114
- package/dist/browser/index-B2YV6GNs.js +0 -48
- package/dist/browser/index-D0SjrKD-.js +0 -45
- package/dist/browser/index-Vc2rrV4B.js +0 -83
- package/dist/browser/index-Zz9lJz5_.js +0 -10224
- package/dist/browser/jsx-runtime-jIxVPx5o.js +0 -31
package/dist/browser/index.js
CHANGED
|
@@ -1,4 +1,13 @@
|
|
|
1
|
-
import {
|
|
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
|
-
|
|
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
|
}
|
|
@@ -1,4 +1,13 @@
|
|
|
1
|
-
|
|
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
|
|
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
|
|
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:
|
|
125
|
-
minimal:
|
|
126
|
-
horizontal:
|
|
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 =
|
|
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
|
|
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
|
|
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
|
|
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,
|
|
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
|
|
249
|
-
|
|
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
|
-
|
|
347
|
-
let x =
|
|
355
|
+
f.Panel = u;
|
|
356
|
+
let x = f;
|
|
348
357
|
export {
|
|
349
358
|
x as default
|
|
350
359
|
};
|
|
@@ -1,26 +1,35 @@
|
|
|
1
|
-
import {
|
|
2
|
-
function
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
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: () =>
|
|
20
|
+
get: () => p[a]
|
|
12
21
|
});
|
|
13
22
|
}
|
|
14
23
|
}
|
|
15
24
|
}
|
|
16
|
-
return Object.freeze(Object.defineProperty(
|
|
25
|
+
return Object.freeze(Object.defineProperty(c, Symbol.toStringTag, { value: "Module" }));
|
|
17
26
|
}
|
|
18
|
-
var
|
|
27
|
+
var y = { exports: {} }, v;
|
|
19
28
|
function S() {
|
|
20
|
-
return
|
|
21
|
-
var
|
|
22
|
-
var a,
|
|
23
|
-
function
|
|
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 :
|
|
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
|
|
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
|
|
85
|
-
o &&
|
|
93
|
+
var h = s[l];
|
|
94
|
+
o && h._draw(), h._updateCoordinates(n, i);
|
|
86
95
|
}
|
|
87
|
-
e.options.connectParticles && (s.sort(
|
|
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
|
|
90
|
-
var
|
|
91
|
-
if (
|
|
92
|
-
|
|
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
|
-
}, (
|
|
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 :
|
|
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
|
-
},
|
|
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
|
-
|
|
132
|
+
c.exports ? c.exports = f : window.Particles = f;
|
|
124
133
|
})();
|
|
125
|
-
})(
|
|
134
|
+
})(y)), y.exports;
|
|
126
135
|
}
|
|
127
|
-
var
|
|
128
|
-
const z = /* @__PURE__ */ k(
|
|
136
|
+
var b = S();
|
|
137
|
+
const z = /* @__PURE__ */ k(b), A = /* @__PURE__ */ w({
|
|
129
138
|
__proto__: null,
|
|
130
139
|
default: z
|
|
131
|
-
}, [
|
|
140
|
+
}, [b]);
|
|
132
141
|
export {
|
|
133
|
-
|
|
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
|
|
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
|
|
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
|
|
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():
|
|
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){
|
|
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
|
|
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
|
|
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
|
}
|