@expofp/floorplan 3.0.0-alpha.17 → 3.0.0-alpha.20
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-CUZihF0D.js → Debug-BmKvXLCG.js} +4 -4
- package/dist/browser/{Demo-CR3VLKTk.js → Demo-CAzFG_85.js} +5 -5
- package/dist/browser/{Free-DQNZneql.js → Free-CHApsLCG.js} +5 -5
- package/dist/browser/{Gallery-DuHTiSqx.js → Gallery-B-jjw_2L.js} +5 -5
- package/dist/browser/{GpsLoader-DmtF8nSh.js → GpsLoader-BR68wZNH.js} +5 -5
- package/dist/browser/{KioskStore-B7BTukd0.js → KioskStore-CO4XdPHj.js} +5 -5
- package/dist/browser/{Mapbox-3GevGU_j.js → Mapbox-DgEfg6jB.js} +6 -6
- package/dist/browser/{SetKioskMode-D3066R7_.js → SetKioskMode-Benp0S1i.js} +6 -6
- package/dist/browser/{ShowKiosk-3jaagNzR.js → ShowKiosk-DZMlO8Uf.js} +5 -5
- package/dist/browser/{ThreeComponent-DNFBzo3g.js → ThreeComponent-B2sIwgk4.js} +6 -6
- package/dist/browser/{ViewerMenuPanel-BLo85uoZ.js → ViewerMenuPanel-CP9cKYHe.js} +5 -5
- package/dist/browser/{boolean-editor-DKH9ubYi.js → boolean-editor-CwuuYcXn.js} +5 -5
- package/dist/browser/bundle.json +30 -30
- package/dist/browser/{client-meZ2tCS0.js → client-DH9UjmeP.js} +3 -3
- package/dist/browser/{data-SQHwxPrN.js → data-BQLjOrcZ.js} +3 -3
- package/dist/browser/{debug-overlay-C4TVlyAN.js → debug-overlay-UOxqg7GL.js} +6 -6
- package/dist/browser/{debug-ui-CVsP8oRC.js → debug-ui-Dj79pZjF.js} +5 -5
- package/dist/browser/{favicon-Cimz_lqt.js → favicon-gavgdg0w.js} +1 -1
- package/dist/browser/{fetch-retry.umd-XH7ZZmae.js → fetch-retry.umd-DQ3AiApp.js} +2 -2
- package/dist/browser/{flex-Bq6tPjvK.js → flex-C9RYTPF-.js} +4 -4
- package/dist/browser/{floorplan.ready-ClV1c-bq.js → floorplan.ready-COqIUuQG.js} +7526 -7348
- package/dist/browser/{index-CfyxM29w.js → index-C2kk3LE8.js} +2 -2
- package/dist/browser/{index-CcKlEKDb.js → index-CBBt0Flp.js} +5 -5
- package/dist/browser/{index-C1A1q6hi.js → index-CNqav8L9.js} +6 -6
- package/dist/browser/{index-BuXQKG6_.js → index-CQtuqL6C.js} +4 -4
- package/dist/browser/{index-DkMgYVuZ.js → index-CRW6MynP.js} +3 -3
- package/dist/browser/{index-C3wwaChX.js → index-C_tn6-K3.js} +12 -12
- package/dist/browser/{index-3PCrVVmD.js → index-bf8DeAjv.js} +2 -2
- package/dist/browser/index.html +1 -0
- package/dist/browser/index.js +2 -2
- package/dist/browser/{jsx-runtime-rSp8ZldI.js → jsx-runtime-B9plfH8Z.js} +1 -1
- package/dist/browser/{main-C1uhxJ8U.js → main-C2d76BMX.js} +1 -1
- package/dist/browser/{particles.min-DkmJkLkl.js → particles.min-bdUL35Qk.js} +2 -2
- package/dist/esm/components/Kiosk/integrateKiosk.js +1 -1
- package/dist/esm/components/Map/booth-by-xy.js +1 -1
- package/dist/esm/components/Map/drawing/config/config-all.js +1 -1
- package/dist/esm/components/Map/drawing/config/config-booth-badge.d.ts +9 -0
- package/dist/esm/components/Map/drawing/config/config-booth-badge.js +1 -0
- package/dist/esm/data/tours.json +40 -0
- package/dist/esm/floorplan.loader.js +1 -1
- package/dist/esm/store/FuzzySearchEngineStore.d.ts +7 -3
- package/dist/esm/store/FuzzySearchEngineStore.js +1 -1
- package/dist/esm/store/RootStore.js +1 -1
- package/dist/esm/store/UIState.d.ts +1 -0
- package/dist/esm/store/UIState.js +1 -1
- package/dist/esm/tools/telemetry.js +1 -1
- package/dist/esm/utils/geometry.d.ts +2 -0
- package/dist/esm/utils/geometry.js +1 -0
- package/dist/esm/utils/loadCustomCss.d.ts +1 -1
- package/dist/esm/utils/loadCustomCss.js +1 -1
- package/package.json +3 -3
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { ax as O } from "./index-
|
|
1
|
+
import { ax as O } from "./index-C_tn6-K3.js";
|
|
2
2
|
(function() {
|
|
3
3
|
try {
|
|
4
4
|
var a = typeof window < "u" ? window : typeof global < "u" ? global : typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : {};
|
|
5
|
-
a.SENTRY_RELEASE = { id: "3.0.0-alpha.
|
|
5
|
+
a.SENTRY_RELEASE = { id: "3.0.0-alpha.20" };
|
|
6
6
|
var f = new a.Error().stack;
|
|
7
7
|
f && (a._sentryDebugIds = a._sentryDebugIds || {}, a._sentryDebugIds[f] = "73c200dc-0a6b-4a26-b38b-1862295f24a2", a._sentryDebugIdIdentifier = "sentry-dbid-73c200dc-0a6b-4a26-b38b-1862295f24a2");
|
|
8
8
|
} catch {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { r as b, o as L } from "./index-
|
|
2
|
-
import { j as _ } from "./jsx-runtime-
|
|
1
|
+
import { r as b, o as L } from "./index-C_tn6-K3.js";
|
|
2
|
+
import { j as _ } from "./jsx-runtime-B9plfH8Z.js";
|
|
3
3
|
(function() {
|
|
4
4
|
try {
|
|
5
5
|
var e = typeof window < "u" ? window : typeof global < "u" ? global : typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : {};
|
|
6
|
-
e.SENTRY_RELEASE = { id: "3.0.0-alpha.
|
|
6
|
+
e.SENTRY_RELEASE = { id: "3.0.0-alpha.20" };
|
|
7
7
|
var t = new e.Error().stack;
|
|
8
8
|
t && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[t] = "4d7f466b-bb9f-4cb6-a96a-4ff77a154a2f", e._sentryDebugIdIdentifier = "sentry-dbid-4d7f466b-bb9f-4cb6-a96a-4ff77a154a2f");
|
|
9
9
|
} catch {
|
|
@@ -11,7 +11,7 @@ import { j as _ } from "./jsx-runtime-rSp8ZldI.js";
|
|
|
11
11
|
})();
|
|
12
12
|
let E = !1;
|
|
13
13
|
function I() {
|
|
14
|
-
E || (E = !0, !(typeof window > "u" && typeof document > "u") && import("./index-
|
|
14
|
+
E || (E = !0, !(typeof window > "u" && typeof document > "u") && import("./index-CNqav8L9.js").then((e) => e.i).then(({
|
|
15
15
|
renderDebugUi: e
|
|
16
16
|
}) => {
|
|
17
17
|
e();
|
|
@@ -69,7 +69,7 @@ function m(e) {
|
|
|
69
69
|
}));
|
|
70
70
|
}
|
|
71
71
|
function O(e) {
|
|
72
|
-
const t = L.lazy(() => import("./boolean-editor-
|
|
72
|
+
const t = L.lazy(() => import("./boolean-editor-CwuuYcXn.js").then((r) => ({
|
|
73
73
|
default: r.BooleanEditor
|
|
74
74
|
})));
|
|
75
75
|
return h(e, !1, t);
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { j as c } from "./jsx-runtime-
|
|
2
|
-
import { r as b } from "./index-
|
|
3
|
-
import "./index-
|
|
1
|
+
import { j as c } from "./jsx-runtime-B9plfH8Z.js";
|
|
2
|
+
import { r as b } from "./index-CBBt0Flp.js";
|
|
3
|
+
import "./index-C_tn6-K3.js";
|
|
4
4
|
(function() {
|
|
5
5
|
try {
|
|
6
6
|
var e = typeof window < "u" ? window : typeof global < "u" ? global : typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : {};
|
|
7
|
-
e.SENTRY_RELEASE = { id: "3.0.0-alpha.
|
|
7
|
+
e.SENTRY_RELEASE = { id: "3.0.0-alpha.20" };
|
|
8
8
|
var t = new e.Error().stack;
|
|
9
9
|
t && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[t] = "23fd24f5-1463-479c-88bc-311537ef5b53", e._sentryDebugIdIdentifier = "sentry-dbid-23fd24f5-1463-479c-88bc-311537ef5b53");
|
|
10
10
|
} catch {
|
|
@@ -34,9 +34,9 @@ function y() {
|
|
|
34
34
|
const e = b("Show Debug Button Overlay"), t = async (n) => {
|
|
35
35
|
const {
|
|
36
36
|
DebugUi: o
|
|
37
|
-
} = await import("./debug-ui-
|
|
37
|
+
} = await import("./debug-ui-Dj79pZjF.js"), {
|
|
38
38
|
createRoot: s
|
|
39
|
-
} = await import("./client-
|
|
39
|
+
} = await import("./client-DH9UjmeP.js").then((a) => a.c), u = document.createElement("div");
|
|
40
40
|
document.body.appendChild(u), s(u).render(/* @__PURE__ */ c.jsx(o, { useDebugButtonState: e.useState, open: n }));
|
|
41
41
|
};
|
|
42
42
|
if (e.get())
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { j as N } from "./jsx-runtime-
|
|
2
|
-
import { o as B, r as ht } from "./index-
|
|
3
|
-
import { R as en } from "./index-
|
|
1
|
+
import { j as N } from "./jsx-runtime-B9plfH8Z.js";
|
|
2
|
+
import { o as B, r as ht } from "./index-C_tn6-K3.js";
|
|
3
|
+
import { R as en } from "./index-CRW6MynP.js";
|
|
4
4
|
(function() {
|
|
5
5
|
try {
|
|
6
6
|
var e = typeof window < "u" ? window : typeof global < "u" ? global : typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : {};
|
|
7
|
-
e.SENTRY_RELEASE = { id: "3.0.0-alpha.
|
|
7
|
+
e.SENTRY_RELEASE = { id: "3.0.0-alpha.20" };
|
|
8
8
|
var t = new e.Error().stack;
|
|
9
9
|
t && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[t] = "ff902efb-d2fe-44ef-8414-ce9b60fb93ab", e._sentryDebugIdIdentifier = "sentry-dbid-ff902efb-d2fe-44ef-8414-ce9b60fb93ab");
|
|
10
10
|
} catch {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { k as u } from "./index-
|
|
2
|
-
import { r as p } from "./index-
|
|
1
|
+
import { k as u } from "./index-C_tn6-K3.js";
|
|
2
|
+
import { r as p } from "./index-C2kk3LE8.js";
|
|
3
3
|
(function() {
|
|
4
4
|
try {
|
|
5
5
|
var t = typeof window < "u" ? window : typeof global < "u" ? global : typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : {};
|
|
6
|
-
t.SENTRY_RELEASE = { id: "3.0.0-alpha.
|
|
6
|
+
t.SENTRY_RELEASE = { id: "3.0.0-alpha.20" };
|
|
7
7
|
var o = new t.Error().stack;
|
|
8
8
|
o && (t._sentryDebugIds = t._sentryDebugIds || {}, t._sentryDebugIds[o] = "02019e7a-1308-46a8-99c5-9eee4874e538", t._sentryDebugIdIdentifier = "sentry-dbid-02019e7a-1308-46a8-99c5-9eee4874e538");
|
|
9
9
|
} catch {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
(function() {
|
|
2
2
|
try {
|
|
3
3
|
var t = typeof window < "u" ? window : typeof global < "u" ? global : typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : {};
|
|
4
|
-
t.SENTRY_RELEASE = { id: "3.0.0-alpha.
|
|
4
|
+
t.SENTRY_RELEASE = { id: "3.0.0-alpha.20" };
|
|
5
5
|
var e = new t.Error().stack;
|
|
6
|
-
e && (t._sentryDebugIds = t._sentryDebugIds || {}, t._sentryDebugIds[e] = "
|
|
6
|
+
e && (t._sentryDebugIds = t._sentryDebugIds || {}, t._sentryDebugIds[e] = "bc42e50b-8973-4527-998f-692e513d726b", t._sentryDebugIdIdentifier = "sentry-dbid-bc42e50b-8973-4527-998f-692e513d726b");
|
|
7
7
|
} catch {
|
|
8
8
|
}
|
|
9
9
|
})();
|
|
@@ -472,7 +472,7 @@ function fo(t) {
|
|
|
472
472
|
}
|
|
473
473
|
let un;
|
|
474
474
|
const rc = async function(...e) {
|
|
475
|
-
return un || (typeof window < "u" && typeof document < "u" ? un = window.fetch.bind(window) : un = (await import("./fetch-retry.umd-
|
|
475
|
+
return un || (typeof window < "u" && typeof document < "u" ? un = window.fetch.bind(window) : un = (await import("./fetch-retry.umd-DQ3AiApp.js").then((i) => i.f)).default(globalThis.fetch)), un(...e);
|
|
476
476
|
};
|
|
477
477
|
async function ic(t) {
|
|
478
478
|
var e;
|
|
@@ -536,7 +536,7 @@ function lc() {
|
|
|
536
536
|
n.name = "viewport", n.content = "width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no", document.head.appendChild(n);
|
|
537
537
|
}
|
|
538
538
|
const e = () => !!document.querySelector('link[rel="icon"]');
|
|
539
|
-
e() || import("./favicon-
|
|
539
|
+
e() || import("./favicon-gavgdg0w.js").then(({
|
|
540
540
|
default: n
|
|
541
541
|
}) => {
|
|
542
542
|
if (e())
|
|
@@ -545,7 +545,7 @@ function lc() {
|
|
|
545
545
|
r.rel = "icon", r.type = "image/png", r.href = n, document.head.appendChild(r);
|
|
546
546
|
}), (!document.title || document.title === "Document") && (document.title = "Floor Plan by ExpoFP");
|
|
547
547
|
}
|
|
548
|
-
var fc = { version: "3.0.0-alpha.
|
|
548
|
+
var fc = { version: "3.0.0-alpha.20", commit: "0feb9310", branch: "vite-main", built: "2026-04-23T15:10:22.161Z" };
|
|
549
549
|
function dc() {
|
|
550
550
|
const t = fc;
|
|
551
551
|
if (t) {
|
|
@@ -6841,10 +6841,10 @@ const rn = vl(), qo = {
|
|
|
6841
6841
|
console.error(`Failed to switch language to "${e}":`, n);
|
|
6842
6842
|
}
|
|
6843
6843
|
}, Lm = async () => (rn && (localStorage.removeItem(Hn), localStorage.removeItem(Fr)), _l(Yo())), as = /webview|wv|ip((?!.*Safari)|(?=.*like Safari))|iosWebView|AndroidWebView/i.test(navigator.userAgent);
|
|
6844
|
-
async function wl(t) {
|
|
6844
|
+
async function wl(t, e) {
|
|
6845
6845
|
if (t != null && t.customCss) {
|
|
6846
|
-
const
|
|
6847
|
-
|
|
6846
|
+
const n = document.createElement("style");
|
|
6847
|
+
n.textContent = t.customCss, e.append(n), await jc(t.customCss);
|
|
6848
6848
|
}
|
|
6849
6849
|
}
|
|
6850
6850
|
function El(t) {
|
|
@@ -11894,7 +11894,7 @@ function Dg(t) {
|
|
|
11894
11894
|
};
|
|
11895
11895
|
};
|
|
11896
11896
|
}
|
|
11897
|
-
const Bg = "production", jg = "3.0.0-alpha.
|
|
11897
|
+
const Bg = "production", jg = "3.0.0-alpha.20";
|
|
11898
11898
|
function Ug() {
|
|
11899
11899
|
const t = "sentry_offline_queue";
|
|
11900
11900
|
return {
|
|
@@ -12284,13 +12284,13 @@ class Vg {
|
|
|
12284
12284
|
weight: 600
|
|
12285
12285
|
}), lt("efp-symbols", he + "fonts/efp-symbols.woff", {
|
|
12286
12286
|
weight: 400
|
|
12287
|
-
}), wl(x), Sl(v.icons)];
|
|
12287
|
+
}), wl(x, c), Sl(v.icons)];
|
|
12288
12288
|
await Promise.all(re), v.enableRotation = (Y = x == null ? void 0 : x.enableRotation) != null ? Y : !1, v.alwaysShowSidebar = (J = x == null ? void 0 : x.alwaysShowSidebar) != null ? J : !1, We.log("Data loaded");
|
|
12289
12289
|
const {
|
|
12290
12290
|
default: ie
|
|
12291
12291
|
} = await import(
|
|
12292
12292
|
/* webpackChunkName: "floorplan" */
|
|
12293
|
-
"./floorplan.ready-
|
|
12293
|
+
"./floorplan.ready-COqIUuQG.js"
|
|
12294
12294
|
).then((N) => N.av);
|
|
12295
12295
|
for (document.querySelectorAll(".expofp-floorplan-loader").forEach((N) => N.remove()); n.firstChild && n.firstChild !== a; )
|
|
12296
12296
|
n.removeChild(n.firstChild);
|
|
@@ -12334,7 +12334,7 @@ async function jm(t, e) {
|
|
|
12334
12334
|
detail: {
|
|
12335
12335
|
floorplan: c
|
|
12336
12336
|
}
|
|
12337
|
-
}))), import("./index-
|
|
12337
|
+
}))), import("./index-CBBt0Flp.js").then((l) => l.i).then(({
|
|
12338
12338
|
initDebug: l
|
|
12339
12339
|
}) => l()).catch(() => {
|
|
12340
12340
|
}), c;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { ax as ie, k as de } from "./index-
|
|
1
|
+
import { ax as ie, k as de } from "./index-C_tn6-K3.js";
|
|
2
2
|
(function() {
|
|
3
3
|
try {
|
|
4
4
|
var l = typeof window < "u" ? window : typeof global < "u" ? global : typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : {};
|
|
5
|
-
l.SENTRY_RELEASE = { id: "3.0.0-alpha.
|
|
5
|
+
l.SENTRY_RELEASE = { id: "3.0.0-alpha.20" };
|
|
6
6
|
var h = new l.Error().stack;
|
|
7
7
|
h && (l._sentryDebugIds = l._sentryDebugIds || {}, l._sentryDebugIds[h] = "360b5663-5490-49fc-9ff6-12acc34f447a", l._sentryDebugIdIdentifier = "sentry-dbid-360b5663-5490-49fc-9ff6-12acc34f447a");
|
|
8
8
|
} catch {
|
package/dist/browser/index.html
CHANGED
package/dist/browser/index.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { az as b } from "./index-
|
|
1
|
+
import { az as b } from "./index-C_tn6-K3.js";
|
|
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.0.0-alpha.
|
|
5
|
+
e.SENTRY_RELEASE = { id: "3.0.0-alpha.20" };
|
|
6
6
|
var d = new e.Error().stack;
|
|
7
7
|
d && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[d] = "3bfaa8b6-663c-4953-adde-032bf3ce10d7", e._sentryDebugIdIdentifier = "sentry-dbid-3bfaa8b6-663c-4953-adde-032bf3ce10d7");
|
|
8
8
|
} catch {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
(function() {
|
|
2
2
|
try {
|
|
3
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.
|
|
4
|
+
r.SENTRY_RELEASE = { id: "3.0.0-alpha.20" };
|
|
5
5
|
var a = new r.Error().stack;
|
|
6
6
|
a && (r._sentryDebugIds = r._sentryDebugIds || {}, r._sentryDebugIds[a] = "6aa5acce-bbae-4352-a6aa-9212ad4bd577", r._sentryDebugIdIdentifier = "sentry-dbid-6aa5acce-bbae-4352-a6aa-9212ad4bd577");
|
|
7
7
|
} catch {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
(function() {
|
|
2
2
|
try {
|
|
3
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.
|
|
4
|
+
o.SENTRY_RELEASE = { id: "3.0.0-alpha.20" };
|
|
5
5
|
var t = new o.Error().stack;
|
|
6
6
|
t && (o._sentryDebugIds = o._sentryDebugIds || {}, o._sentryDebugIds[t] = "7bb9c1f4-826f-44b2-80a8-3d0519897683", o._sentryDebugIdIdentifier = "sentry-dbid-7bb9c1f4-826f-44b2-80a8-3d0519897683");
|
|
7
7
|
} catch {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { k } from "./index-
|
|
1
|
+
import { k } from "./index-C_tn6-K3.js";
|
|
2
2
|
(function() {
|
|
3
3
|
try {
|
|
4
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.
|
|
5
|
+
c.SENTRY_RELEASE = { id: "3.0.0-alpha.20" };
|
|
6
6
|
var f = new c.Error().stack;
|
|
7
7
|
f && (c._sentryDebugIds = c._sentryDebugIds || {}, c._sentryDebugIds[f] = "032598d7-e41e-4a76-8d59-9ab38d97f81c", c._sentryDebugIdIdentifier = "sentry-dbid-032598d7-e41e-4a76-8d59-9ab38d97f81c");
|
|
8
8
|
} catch {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{runInAction as a}from"mobx";import{RouteCutIn as n}from"../../RouteCutIn";import e from"../../store";import{getName as o,getSlug as m}from"./SetKiosk";export function integrateKioskIntoMap(t,r){t&&a(()=>{e.uiState.setKioskData(t),e.uiState.kiosk=r,e.uiState.setMapSettings({centerxy:`${t.mapCenterX},${t.mapCenterY}`,z:t.z,bearing:t.mapRollDegrees}),e.uiState.changeZoom(t.mapInitialPtScale/t.mapPtScale)})}export function integrateKioskIntoWf(t){if(!t)return;const r={x:t.x,y:t.y,layer:t.z?.toString()};e.routeStore.defaultFrom=new n(Number.MAX_SAFE_INTEGER,o(),r,m()),r.layer&&e.fp.activateFloor({name:r.layer})}
|
|
1
|
+
import{runInAction as a}from"mobx";import{RouteCutIn as n}from"../../RouteCutIn";import e from"../../store";import{getName as o,getSlug as m}from"./SetKiosk";export function integrateKioskIntoMap(t,r){t&&a(()=>{e.uiState.setKioskData(t),e.uiState.kiosk=r,e.uiState.setMapSettings({centerxy:`${t.mapCenterX},${t.mapCenterY}`,z:t.z,bearing:t.mapRollDegrees}),t.mapPtScale&&e.uiState.changeZoom(t.mapInitialPtScale/t.mapPtScale)})}export function integrateKioskIntoWf(t){if(!t)return;const r={x:t.x,y:t.y,layer:t.z?.toString()};e.routeStore.defaultFrom=new n(Number.MAX_SAFE_INTEGER,o(),r,m()),r.layer&&e.fp.activateFloor({name:r.layer})}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{reaction as P}from"mobx";import
|
|
1
|
+
import{reaction as P}from"mobx";import d from"../../core/Rect";import{getTrianglesFromFpPaths as y}from"../../data/svg";import{boothStore as b,layersStore as h}from"../../store";import{LayersMode as S}from"../../store/LayerStore";import T from"../../tools/logger";import{pointInTriangle as F}from"../../utils/geometry";let g=new Map,p=[],M=[],u=[],c=new Map,l;function I(){const r=b.booths.filter(t=>t.visible&&t.rect&&t.rect.w>0&&t.rect.h>0);if(g=new Map,p=[],u=[],l=null,c=new Map,!r.length)return;M=r.filter(t=>t.paths);let n=d.fromMultiple(r.map(t=>t.rect));for(const t of r){let o=t.rect;Math.abs(t.rotate)===90*Math.PI/180&&(o=o.getRotated90()),p.push(o),g.set(o,t)}const s=2,i=Math.ceil(n.w/s),e=Math.ceil(n.h/s);for(let t=0;t<s;t++)for(let o=0;o<s;o++){const f=n.x1+t*i,a=n.y1+o*e,m=d.fromXywh(f,a,i,e);u.push(m);const w=p.filter(v=>m.intersects(v));c.set(m,w)}T.log("hover segmentToRects",c)}P(()=>[b.booths,h.loaded,h.visible],()=>I());function R(r,n){let s;l&&l.containsPoint(r,n)?s=l:s=u.find(e=>e.containsPoint(r,n)),s&&(l=s);const i=c.get(s);if(i){const e=i.filter(t=>t.containsPoint(r,n));if(e.length){let t;e.length>1?t=e.sort((f,a)=>f.w-a.w)[0]:t=e[0];let o=g.get(t);return o.visible?o:null}}for(const e of M)for(const t of e.paths)for(const o of y(t.index,h.mode!==S.Default?e.layer.name:""))if(F(r,n,o))return e.visible?e:null;return null}export default function X(r,n){return R(r,n)}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import
|
|
1
|
+
import c from"../../../../store";import E from"./config-load-layer";import{createLayerDef as r}from"../../../../renderer";import{WF_CURRENT_POSITION_NAME as d,WF_LINES_ANIMATED_LAYER_NAME as p,WF_LINES_LAYER_NAME as y,WF_POINTS_LAYER_NAME as N,WF_TRAIL_LAYER_NAME as R}from"./config-wf";import{MARKER_LAYER_NAME as u}from"./config-markers";import M from"./config-yah";import{createTrafficLayers as T}from"../../traffic/trafficLayers";import{PATHWAY_KEY as Y}from"../../../../constants";import{configBoothsBadges as I}from"./config-booth-badge";export default function P(f){M();let{layers:t,defaultLayer:s}=c.layerStore;if(s){const o=[].concat(t),e=t.find(i=>i===s),a=t.indexOf(e);o.splice(a,1),t=[e].concat(o)}const L=t.filter(o=>!o.rootParent).map(o=>E(o,f));return Promise.all(L).then(o=>{const e=r(N,[],{dim:!1,interactive:!0}),a=r(d,[],{dim:!1}),i=r(y,[],{dim:!1}),l=r(u,[]),A=r(R,[],{dim:!1}),_=r(p,[],{dim:!1});o.forEach(m=>{m.name.toLowerCase().includes(Y)&&(m.dim=!1)});const n=I(f,"root",c.boothStore.booths);return[...o.flat(),...n?[n]:[],...T(),l,A,i,_,e,a]})}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { Booth, RegularBooth } from "../../../../store/BoothStore";
|
|
2
|
+
import { LayerDef, ShapeDef, TextDef } from "@expofp/renderer";
|
|
3
|
+
import { RendererService } from "../../../../renderer";
|
|
4
|
+
export declare function createBoothBadge(rendererService: RendererService, booth: RegularBooth): {
|
|
5
|
+
bg: ShapeDef;
|
|
6
|
+
text: TextDef;
|
|
7
|
+
};
|
|
8
|
+
export declare function configBoothsBadges(rendererService: RendererService, layerName: string, booths: Booth[]): LayerDef | null;
|
|
9
|
+
//# sourceMappingURL=config-booth-badge.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{RegularBooth as Z}from"../../../../store/BoothStore";import{Rect as v}from"./Rect";import{getFontUrlByWeight as j}from"./config-booth-labels";import q from"color";import U from"../../../../tools/settings";import{boothStore as J,uiState as K}from"../../../../store";import{reaction as X}from"mobx";import{createShapeDef as Q,createTextDef as V,createTextDefLines as tt}from"../../../../renderer";import{getContrastTextColor as nt}from"../../../../utils/getContrastTextColor";import{getFont as et}from"./canvases";import{getTrianglesFromFpPaths as ot}from"../../../../data/svg";import{pointInTriangle as it}from"../../../../utils/geometry";import{SEPARATOR as M}from"../../../../constants";import rt from"../../../../data";const k=400,st=.5,ct=.3,N=15,ft=24,L=30,at=12,lt=12,z=.8,Y=document.createElement("canvas").getContext("2d");function dt(t){return t.length<=N?t:t.slice(0,N-1)+"\u2026"}function b(t){if(!t.paths?.length)return[];const n=t.layer?.name||"",e=[];for(const o of t.paths)for(const s of ot(o.index,n))e.push(s);return e}function ut(t){const n=b(t);if(!n.length)return null;let e=1/0,o=1/0,s=-1/0,r=-1/0;for(const c of n)for(const i of c)i[0]<e&&(e=i[0]),i[1]<o&&(o=i[1]),i[0]>s&&(s=i[0]),i[1]>r&&(r=i[1]);return isFinite(e)?{x1:e,y1:o,w:s-e,h:r-o}:null}function T(t,n,e){for(const o of e)if(it(t,n,o))return!0;return!1}function mt(t,n,e,o,s,r){if(!t.length||!T(n,e,t))return r;let c=0,i=r;const p=10;for(let h=0;h<p;h++){const u=(c+i)/2,m=o*u,l=s*u;T(n+m,e,t)&&T(n,e+l,t)&&T(n+m,e+l,t)?c=u:i=u}return c}function gt(t){return ut(t)??t.rect}function ht(t,n,e,o){const s=gt(t);if(n.length){const m=new Set;let l=null,g=1/0;for(const E of n)for(const x of E){const _=`${x[0]},${x[1]}`;if(m.has(_))continue;m.add(_);const B=x[0]+e,y=x[1]+e;if(T(B,y,n)){const I=B-s.x1+(y-s.y1);I<g&&(g=I,l={x:B,y})}}if(l)return l}const r=t.rect.x1+e,c=t.rect.y1+e;if(!o)return{x:r,y:c};const i=Math.cos(o),p=Math.sin(o),h=r-t.rect.cx,u=c-t.rect.cy;return{x:t.rect.cx+h*i-u*p,y:t.rect.cy+h*p+u*i}}function C(t){return t&&t!=="none"?t:void 0}function xt(t){const n=C(t.borderColor)||C(U.boothBorderColor)||U.colors.booths.default;return t.paths?.length>1&&C(t.paths[t.paths.length-1].color)||n}export function createBoothBadge(t,n){const e=dt(n.title||n.name),o=xt(n),s=nt(q(o).hex()),r=window.devicePixelRatio||1,c=et(L,k);Y.font=c;const i=Y.measureText(e).width,p=Math.ceil(i+at*2),h=L+lt*2,u=(n.borderWidth||J.borderWidth)/2,m=p*z,l=h*z,g=n.rotate?-n.rotate:0,E=n.rect.w,x=n.rect.h,_=Math.min(E>0?E*st/m:1/0,x>0?x*ct/l:1/0),B=b(n),{x:y,y:I}=ht(n,B,u,g),G=mt(B,y,I,m,l,_),P=Math.cos(g),$=Math.sin(g),S=(f,A)=>{const D=f/2,R=A/2,F=y+D*P-R*$,O=I+D*$+R*P;return new v({x:F-D,y:O-R},{x:F+D,y:O+R},g)},H=f=>{const A=Math.min(f,G);return S(m*A,l*A)},W=j(k,t.fontUrls),d=Q(S(1,1),o);d.hidden=!0,d.dim=n.skipDim?!1:void 0;const a=V(tt([[e],[]],s,0,[W,W]),S(1,1),[0,0],{horizontal:"center",vertical:"center"});a.hidden=!0,a.dim=n.skipDim?!1:void 0;const w=()=>!!(n.layer&&!n.layer.visible);return X(()=>n.skipDim,f=>{d.dim=f?!1:void 0,a.dim=f?!1:void 0,t.update(d,a)}),X(()=>n.layer?.visible??!0,f=>{d.hidden=!f,a.hidden=!f,t.update(d,a)}),t.onPtScale(`badge-bg-${n.id}`,f=>(d.shape=H(f),d.hidden=w(),d)),t.onPtScale(`badge-text-${n.id}`,f=>{const A=Math.min(f,G);return a.lines[0].fontSize=ft/r*A,a.bounds=H(f),a.hidden=w(),a}),{bg:d,text:a}}export function configBoothsBadges(t,n,e){if(rt.hideExhibitorBoothNumber)return null;const o=[],s=[];for(const r of e)if(r instanceof Z&&r.noLabels&&!K.hideLogoInBooth&&r.exhibitors.some(c=>c.logoInBooth&&c.logo)){const{bg:c,text:i}=createBoothBadge(t,r);o.push(c),s.push(i)}return o.length?{name:`${n}${M}badges`,children:[{name:`${n}${M}badgeBgs`,children:o},{name:`${n}${M}badgeTexts`,children:s}]}:null}
|
package/dist/esm/data/tours.json
CHANGED
|
@@ -218,5 +218,45 @@
|
|
|
218
218
|
"name": " FCSI Members Trail",
|
|
219
219
|
"points": ["16282429", "16600529", "16282606", "16282806", "16282745", "16282964"]
|
|
220
220
|
}
|
|
221
|
+
],
|
|
222
|
+
"retailtechnologyshow2026": [
|
|
223
|
+
{
|
|
224
|
+
"id": "innovation-awards-finalists",
|
|
225
|
+
"layers": [{ "floor": "1", "id": "Pathway_1" }],
|
|
226
|
+
"name": "Innovation Awards Finalists",
|
|
227
|
+
"points": [
|
|
228
|
+
"Business France | K10",
|
|
229
|
+
"16528837",
|
|
230
|
+
"16528943",
|
|
231
|
+
"16528881",
|
|
232
|
+
"16528816",
|
|
233
|
+
"16529021",
|
|
234
|
+
"16529050",
|
|
235
|
+
"16528953",
|
|
236
|
+
"16528893",
|
|
237
|
+
"16529071"
|
|
238
|
+
]
|
|
239
|
+
},
|
|
240
|
+
{
|
|
241
|
+
"id": "zebra-partners-scavenger-hunt",
|
|
242
|
+
"layers": [{ "floor": "1", "id": "Pathway_2" }],
|
|
243
|
+
"name": "Zebra Partners Scavenger Hunt",
|
|
244
|
+
"points": [
|
|
245
|
+
"16528708",
|
|
246
|
+
"16528793",
|
|
247
|
+
"16529002",
|
|
248
|
+
"16529036",
|
|
249
|
+
"16529030",
|
|
250
|
+
"16529038",
|
|
251
|
+
"16528903",
|
|
252
|
+
"16528855",
|
|
253
|
+
"16528716",
|
|
254
|
+
"16528967",
|
|
255
|
+
"16528895",
|
|
256
|
+
"16529088",
|
|
257
|
+
"16529055",
|
|
258
|
+
"16529024"
|
|
259
|
+
]
|
|
260
|
+
}
|
|
221
261
|
]
|
|
222
262
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{PREVIEW_MODE_ATTRIBUTE as A}from"./constants";import l from"./tools/base-runtime-url";import{buildRebookingUrl as V,getRebookingToken as H,retainRebookingToken as z}from"./tools/rebookingUrl";import{loadCss as x,loadFont as g,loadJs as b}from"./tools/loaders";import S from"./tools/logger";import{sleep as G}from"./utils";import{initI18n as N}from"./utils/i18n";import L from"./utils/is-webview";import{loadCustomCss as Q}from"./utils/loadCustomCss";import{loadIcons as q}from"./utils/loadIcons";import W from"./utils/mergeExhibitors";import E from"./utils/use-shadow";import $ from"./utils/is-debug";import J from"./utils/is-localhost";import{initSentry as K}from"./tools/sentry";function t(){throw new Error("FloorPlan not ready")}export default class Y{options;renderTarget;_ready;element;eventId;dataUrl;noOverlay;offHistory;ignoreQuery;allowConsent;onInit;disableRuntimeAlerts;viewerMode;efpStyleLoadHandler;resolveReady;icons=new Map;enableRotation=!0;alwaysShowSidebar=!1;get ready(){return this._ready}get previewMode(){return this.options.previewMode||this.element.hasAttribute(A)}onBoothClick;onBookmarkClick;onVisitedClick;onCategoryClick;onFpConfigured;onDirection;onDetails;onExhibitorCustomButtonClick;onGetCoordsClick;onMarkerClick;onLeaveEvent;selectBooth(e){t()}selectExhibitor(e){t()}selectRoute(e,a){t()}getOptimizedRoutes(e){t()}selectCurrentPosition(e,a,h){t()}setBookmarks(e){t()}setEntitiesBookmarks(e){t()}setEntitiesVisited(e){t()}setMarkers(e){t()}updateLayerVisibility(e,a){t()}getCenterCoordinates(){t()}applyParameters(e){t()}exhibitorsList(){t()}boothsList(){t()}categoriesList(){t()}selectCategory(e){t()}getVisibility(){t()}setVisibility(e){t()}findLocation(){t()}zoomIn(){t()}zoomOut(){t()}zoomTo(e,a){t()}switchView(){t()}fitBounds(){t()}getBounds(e){t()}getBoothRect(e){t()}convertToGeo(e,a){t()}unstable_destroy(){t()}highlightExhibitors(e){t()}highlightBooths(e){t()}onCurrentPositionChanged(e){t()}search(e){t()}getFloors(){t()}onFloorActivated(e){t()}activateFloor(e){t()}showPathway(e,a){t()}showPathwayOnly(e,a){t()}hidePathways(){t()}showSearch(){t()}changeLanguage(e){t()}isGpsTrackingEnabled(){t()}setGpsTrackingEnabled(e){t()}deselectCurrentPosition(){t()}deselectRoute(){t()}reset(){t()}constructor(e){this.options=e,this.noOverlay=!!e.noOverlay,this.offHistory=!!e.offHistory,this.ignoreQuery=e.ignoreQuery,this.allowConsent=J&&!$?!1:e.allowConsent,this.onBoothClick=e.onBoothClick,this.onBookmarkClick=e.onBookmarkClick,this.onVisitedClick=e.onVisitedClick,this.onCategoryClick=e.onCategoryClick,this.onDetails=e.onDetails,this.onExhibitorCustomButtonClick=e.onExhibitorCustomButtonClick,this.onGetCoordsClick=e.onGetCoordsClick,this.onMarkerClick=e.onMarkerClick,this.onFpConfigured=e.onFpConfigured,this.onDirection=e.onDirection,this.onInit=e.onInit,this.onCurrentPositionChanged=e.onCurrentPositionChanged,this.onFloorActivated=e.onFloorActivated,this.onLeaveEvent=e.onLeaveEvent,this.viewerMode=!!e.viewerMode,this.disableRuntimeAlerts=e.disableRuntimeAlerts??!0,this._ready=new Promise((d,i)=>{this.resolveReady=d});const a=e.element;if(this.element=a,a.__expofp)throw new Error("Element already in use");if(a.__expofp=this,a.getAttribute("data-event-id")||a.getAttribute("data-event"))throw new Error("data-xxx attributes are removed, use options instead");const h=e.expo||e.event;if(!h)throw new Error("`expo` option is required");K({eventId:h||"",isWebview:L}),this.eventId=h,window.__efpEvent=h,window.__efpElement=a;const P=[...a.classList];a.classList.remove(...P),a.classList.add("expofp-floorplan-default",...P);const B=document.head||document.getElementsByTagName("head")[0],R=document.createElement("style");B.prepend(R),R.textContent=".expofp-floorplan-default { width: 100%; height: 100%;}";const m=document.createElement("div");m.style.height="100%",m.style.width="100%",a.appendChild(m);let n;if(L&&(this.allowConsent=!0),e.allowConsent===void 0){const i=new URL(window.location.href).searchParams.get("allowConsent");i&&(this.allowConsent=i==="true")}if(E){n=m.attachShadow({mode:"open"});const d=n,i=document;d.createElement=(...r)=>i.createElement(...r),d.createElementNS=(...r)=>i.createElementNS(...r),d.createTextNode=(...r)=>i.createTextNode(...r)}else n=m;const y=document.createElement("div");if(y.style.height="100%",y.style.width="100%",n.appendChild(y),E&&Object.defineProperty(y,"ownerDocument",{value:n}),window.__efpShadowDOMStyleParent=E?n:void 0,this.renderTarget=y,a.getAttribute("data-data-url"))throw new Error("data-xxx attributes are removed, use options instead");const u=e.legacyDataUrlBase;window.__dataUrlBase=u,this.dataUrl=u,S.log("Instantiating ExpoFP floorplan",e.element,h);const O=u+"data.js",D=u+"wf.data.js",I=u+"fp.svg.js",j=[b(D),b(O),b(I)];let v=0;this.efpStyleLoadHandler=function(d){const i=window.__efpStyleElements;for(;v<i.length;){const r=i[v];n.appendChild(r),v++}},window.addEventListener("__efpStyleLoad",this.efpStyleLoadHandler);const k=this;(async function(){await Promise.all(j);let i=0;for(;window.__fpPending&&!window.__fp;)await G(2e3),await b(I+`?v=${++i}`);const r=window.__data;await N();const f=new URLSearchParams(window.location.search);let w,C;if(r?.trackerUrl)try{w=new URL(r.trackerUrl),C=w.searchParams.get("expoId")}catch(o){console.error(o)}const _=async o=>{if(!w||!C)return Promise.reject(new Error("trackerUrl or expoId is missing"));const s=new URL(o.dataUrl,w.origin),c=await fetch(s.toString(),{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({expoId:C,token:decodeURIComponent(f.get("t"))})});let p=[];c.ok&&(p=(await c.json()).map(o.dataMapper)),window.__heatmapDataYah={yah:p}};if(f.get("heatmap")==="true")try{if(f.get("type")==="yah")f.get("subtype")==="kiosk"?await _({dataUrl:"/api/kiosks/list/viewer",dataMapper:o=>({...o,id:o.key,name:`Kiosk ${o.key}`})}):await _({dataUrl:"/api/v1/you-are-here/qr-code/list/viewer",dataMapper:(o,s)=>({...o,name:`QR Code #${s+1}`})});else{const o=new URL("/api/fp-stats/get",w.origin);o.searchParams.set("expoId",C),o.searchParams.set("type","booview"),o.searchParams.set("t",decodeURIComponent(f.get("t")));const s=new URL("api/fp-stats/get",w.origin);s.searchParams.set("expoId",C),s.searchParams.set("type","exview"),s.searchParams.set("t",decodeURIComponent(f.get("t")));const[c,p]=await Promise.all([fetch(o.toString()),fetch(s.toString())]),[U,F]=await Promise.all([c.json(),p.json()]);window.__heatmapData={booths:U,exhibitors:F}}}catch(o){console.error("Heatmap: Initialization error",o)}try{const o=H();if(o){z(o);const s=V("api/rebooking-data",{rt:o,expoKey:h}),c=await fetch(s);if(c.ok){const p=await c.json();W(r,p)}r.isRebooking=c.ok}else r.isRebooking=!1}catch(o){console.error(o)}const T=[x(l+"vendor/sanitize-css/sanitize.css",n),x(l+"vendor/perfect-scrollbar/css/perfect-scrollbar.css",n),x(l+"vendor/mapbox/mapbox-gl.css",n),g("Oswald",l+"fonts/oswald-v17-cyrillic_latin-300.woff",{weight:300}),g("Oswald",l+"fonts/oswald-v17-cyrillic_latin-500.woff",{weight:500}),g("Inter",l+"fonts/inter-400.woff2",{weight:400}),g("Inter",l+"fonts/inter-500.woff2",{weight:500}),g("Inter",l+"fonts/inter-600.woff2",{weight:600}),g("efp-symbols",l+"fonts/efp-symbols.woff",{weight:400}),Q(r),q(k.icons)];await Promise.all(T),k.enableRotation=r?.enableRotation??!1,k.alwaysShowSidebar=r?.alwaysShowSidebar??!1,S.log("Data loaded");const{default:M}=await import("./floorplan.ready");for(document.querySelectorAll(".expofp-floorplan-loader").forEach(o=>o.remove());a.firstChild&&a.firstChild!==m;)a.removeChild(a.firstChild);Object.setPrototypeOf(k,M.prototype).init()})()}}
|
|
1
|
+
import{PREVIEW_MODE_ATTRIBUTE as A}from"./constants";import l from"./tools/base-runtime-url";import{buildRebookingUrl as V,getRebookingToken as H,retainRebookingToken as z}from"./tools/rebookingUrl";import{loadCss as x,loadFont as g,loadJs as b}from"./tools/loaders";import S from"./tools/logger";import{sleep as G}from"./utils";import{initI18n as N}from"./utils/i18n";import L from"./utils/is-webview";import{loadCustomCss as Q}from"./utils/loadCustomCss";import{loadIcons as q}from"./utils/loadIcons";import W from"./utils/mergeExhibitors";import E from"./utils/use-shadow";import $ from"./utils/is-debug";import J from"./utils/is-localhost";import{initSentry as K}from"./tools/sentry";function t(){throw new Error("FloorPlan not ready")}export default class Y{options;renderTarget;_ready;element;eventId;dataUrl;noOverlay;offHistory;ignoreQuery;allowConsent;onInit;disableRuntimeAlerts;viewerMode;efpStyleLoadHandler;resolveReady;icons=new Map;enableRotation=!0;alwaysShowSidebar=!1;get ready(){return this._ready}get previewMode(){return this.options.previewMode||this.element.hasAttribute(A)}onBoothClick;onBookmarkClick;onVisitedClick;onCategoryClick;onFpConfigured;onDirection;onDetails;onExhibitorCustomButtonClick;onGetCoordsClick;onMarkerClick;onLeaveEvent;selectBooth(e){t()}selectExhibitor(e){t()}selectRoute(e,a){t()}getOptimizedRoutes(e){t()}selectCurrentPosition(e,a,h){t()}setBookmarks(e){t()}setEntitiesBookmarks(e){t()}setEntitiesVisited(e){t()}setMarkers(e){t()}updateLayerVisibility(e,a){t()}getCenterCoordinates(){t()}applyParameters(e){t()}exhibitorsList(){t()}boothsList(){t()}categoriesList(){t()}selectCategory(e){t()}getVisibility(){t()}setVisibility(e){t()}findLocation(){t()}zoomIn(){t()}zoomOut(){t()}zoomTo(e,a){t()}switchView(){t()}fitBounds(){t()}getBounds(e){t()}getBoothRect(e){t()}convertToGeo(e,a){t()}unstable_destroy(){t()}highlightExhibitors(e){t()}highlightBooths(e){t()}onCurrentPositionChanged(e){t()}search(e){t()}getFloors(){t()}onFloorActivated(e){t()}activateFloor(e){t()}showPathway(e,a){t()}showPathwayOnly(e,a){t()}hidePathways(){t()}showSearch(){t()}changeLanguage(e){t()}isGpsTrackingEnabled(){t()}setGpsTrackingEnabled(e){t()}deselectCurrentPosition(){t()}deselectRoute(){t()}reset(){t()}constructor(e){this.options=e,this.noOverlay=!!e.noOverlay,this.offHistory=!!e.offHistory,this.ignoreQuery=e.ignoreQuery,this.allowConsent=J&&!$?!1:e.allowConsent,this.onBoothClick=e.onBoothClick,this.onBookmarkClick=e.onBookmarkClick,this.onVisitedClick=e.onVisitedClick,this.onCategoryClick=e.onCategoryClick,this.onDetails=e.onDetails,this.onExhibitorCustomButtonClick=e.onExhibitorCustomButtonClick,this.onGetCoordsClick=e.onGetCoordsClick,this.onMarkerClick=e.onMarkerClick,this.onFpConfigured=e.onFpConfigured,this.onDirection=e.onDirection,this.onInit=e.onInit,this.onCurrentPositionChanged=e.onCurrentPositionChanged,this.onFloorActivated=e.onFloorActivated,this.onLeaveEvent=e.onLeaveEvent,this.viewerMode=!!e.viewerMode,this.disableRuntimeAlerts=e.disableRuntimeAlerts??!0,this._ready=new Promise((d,i)=>{this.resolveReady=d});const a=e.element;if(this.element=a,a.__expofp)throw new Error("Element already in use");if(a.__expofp=this,a.getAttribute("data-event-id")||a.getAttribute("data-event"))throw new Error("data-xxx attributes are removed, use options instead");const h=e.expo||e.event;if(!h)throw new Error("`expo` option is required");K({eventId:h||"",isWebview:L}),this.eventId=h,window.__efpEvent=h,window.__efpElement=a;const P=[...a.classList];a.classList.remove(...P),a.classList.add("expofp-floorplan-default",...P);const B=document.head||document.getElementsByTagName("head")[0],R=document.createElement("style");B.prepend(R),R.textContent=".expofp-floorplan-default { width: 100%; height: 100%;}";const m=document.createElement("div");m.style.height="100%",m.style.width="100%",a.appendChild(m);let n;if(L&&(this.allowConsent=!0),e.allowConsent===void 0){const i=new URL(window.location.href).searchParams.get("allowConsent");i&&(this.allowConsent=i==="true")}if(E){n=m.attachShadow({mode:"open"});const d=n,i=document;d.createElement=(...r)=>i.createElement(...r),d.createElementNS=(...r)=>i.createElementNS(...r),d.createTextNode=(...r)=>i.createTextNode(...r)}else n=m;const y=document.createElement("div");if(y.style.height="100%",y.style.width="100%",n.appendChild(y),E&&Object.defineProperty(y,"ownerDocument",{value:n}),window.__efpShadowDOMStyleParent=E?n:void 0,this.renderTarget=y,a.getAttribute("data-data-url"))throw new Error("data-xxx attributes are removed, use options instead");const u=e.legacyDataUrlBase;window.__dataUrlBase=u,this.dataUrl=u,S.log("Instantiating ExpoFP floorplan",e.element,h);const O=u+"data.js",D=u+"wf.data.js",I=u+"fp.svg.js",j=[b(D),b(O),b(I)];let v=0;this.efpStyleLoadHandler=function(d){const i=window.__efpStyleElements;for(;v<i.length;){const r=i[v];n.appendChild(r),v++}},window.addEventListener("__efpStyleLoad",this.efpStyleLoadHandler);const k=this;(async function(){await Promise.all(j);let i=0;for(;window.__fpPending&&!window.__fp;)await G(2e3),await b(I+`?v=${++i}`);const r=window.__data;await N();const f=new URLSearchParams(window.location.search);let w,C;if(r?.trackerUrl)try{w=new URL(r.trackerUrl),C=w.searchParams.get("expoId")}catch(o){console.error(o)}const _=async o=>{if(!w||!C)return Promise.reject(new Error("trackerUrl or expoId is missing"));const s=new URL(o.dataUrl,w.origin),c=await fetch(s.toString(),{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({expoId:C,token:decodeURIComponent(f.get("t"))})});let p=[];c.ok&&(p=(await c.json()).map(o.dataMapper)),window.__heatmapDataYah={yah:p}};if(f.get("heatmap")==="true")try{if(f.get("type")==="yah")f.get("subtype")==="kiosk"?await _({dataUrl:"/api/kiosks/list/viewer",dataMapper:o=>({...o,id:o.key,name:`Kiosk ${o.key}`})}):await _({dataUrl:"/api/v1/you-are-here/qr-code/list/viewer",dataMapper:(o,s)=>({...o,name:`QR Code #${s+1}`})});else{const o=new URL("/api/fp-stats/get",w.origin);o.searchParams.set("expoId",C),o.searchParams.set("type","booview"),o.searchParams.set("t",decodeURIComponent(f.get("t")));const s=new URL("api/fp-stats/get",w.origin);s.searchParams.set("expoId",C),s.searchParams.set("type","exview"),s.searchParams.set("t",decodeURIComponent(f.get("t")));const[c,p]=await Promise.all([fetch(o.toString()),fetch(s.toString())]),[U,F]=await Promise.all([c.json(),p.json()]);window.__heatmapData={booths:U,exhibitors:F}}}catch(o){console.error("Heatmap: Initialization error",o)}try{const o=H();if(o){z(o);const s=V("api/rebooking-data",{rt:o,expoKey:h}),c=await fetch(s);if(c.ok){const p=await c.json();W(r,p)}r.isRebooking=c.ok}else r.isRebooking=!1}catch(o){console.error(o)}const T=[x(l+"vendor/sanitize-css/sanitize.css",n),x(l+"vendor/perfect-scrollbar/css/perfect-scrollbar.css",n),x(l+"vendor/mapbox/mapbox-gl.css",n),g("Oswald",l+"fonts/oswald-v17-cyrillic_latin-300.woff",{weight:300}),g("Oswald",l+"fonts/oswald-v17-cyrillic_latin-500.woff",{weight:500}),g("Inter",l+"fonts/inter-400.woff2",{weight:400}),g("Inter",l+"fonts/inter-500.woff2",{weight:500}),g("Inter",l+"fonts/inter-600.woff2",{weight:600}),g("efp-symbols",l+"fonts/efp-symbols.woff",{weight:400}),Q(r,n),q(k.icons)];await Promise.all(T),k.enableRotation=r?.enableRotation??!1,k.alwaysShowSidebar=r?.alwaysShowSidebar??!1,S.log("Data loaded");const{default:M}=await import("./floorplan.ready");for(document.querySelectorAll(".expofp-floorplan-loader").forEach(o=>o.remove());a.firstChild&&a.firstChild!==m;)a.removeChild(a.firstChild);Object.setPrototypeOf(k,M.prototype).init()})()}}
|
|
@@ -3,9 +3,13 @@ export interface FuzzySearchResult<T> {
|
|
|
3
3
|
score: number;
|
|
4
4
|
}
|
|
5
5
|
export default class FuzzySearchEngineStore {
|
|
6
|
+
private readonly keys;
|
|
6
7
|
engine: any;
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
8
|
+
private enginePromise;
|
|
9
|
+
private lastCollection;
|
|
10
|
+
constructor(keys: string[]);
|
|
11
|
+
loadEngine(): Promise<void>;
|
|
12
|
+
private buildEngine;
|
|
13
|
+
search<T>(list: T[], text: string): FuzzySearchResult<T>[];
|
|
10
14
|
}
|
|
11
15
|
//# sourceMappingURL=FuzzySearchEngineStore.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{__esDecorate as
|
|
1
|
+
import{__esDecorate as a,__runInitializers as s}from"tslib";import{observable as l,runInAction as c}from"mobx";let u=(()=>{let i,t=[],r=[];return class{static{const e=typeof Symbol=="function"&&Symbol.metadata?Object.create(null):void 0;i=[l],a(null,null,i,{kind:"field",name:"engine",static:!1,private:!1,access:{has:n=>"engine"in n,get:n=>n.engine,set:(n,o)=>{n.engine=o}},metadata:e},t,r),e&&Object.defineProperty(this,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e})}keys;engine=s(this,t,void 0);enginePromise=(s(this,r),null);lastCollection=null;constructor(e){this.keys=e}loadEngine(){return this.enginePromise||(this.enginePromise=this.buildEngine()),this.enginePromise}async buildEngine(){try{const{default:e}=await import("fuse.js");c(()=>{this.engine=new e([],{keys:this.keys,fieldNormWeight:2,includeScore:!0,ignoreLocation:!0,threshold:.4,useTokenSearch:!0})})}catch(e){console.error(e),this.enginePromise=null}}search(e,n){return!this.engine||!e?.length||!n?[]:(this.lastCollection!==e&&(this.engine.setCollection(e),this.lastCollection=e),this.engine.search(n))}}})();export default u;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{__esDecorate as i,__runInitializers as c}from"tslib";import{action as a,observable as se,computed as he,runInAction as ae}from"mobx";import ce from"../tools/logger";import{isWebGlSupported as ne}from"../utils";import ue,{BoothBase as oe,RegularBooth as de}from"./BoothStore";import me,{Category as Se}from"./CategoryStore";import fe,{Exhibitor as le}from"./ExhibitorStore";import pe from"./CategoryFilterStore";import ge from"./EventStore";import{GaEventActions as ke}from"../tools/gtag";import r from"../utils/is-mobile";import n from"../utils/is-webview";import ve from"./HeatmapStore";import{resetLocale as ye}from"../utils/i18n";import{LANGUAGE_TYPE as _e}from"../constants";import be,{LayersMode as re}from"./LayerStore";import we from"./MapboxStore";import xe from"./RouteStore";import Be from"./RoutePlannerStore";import Le from"./ToursStore";import Ce from"./UIState";import Ee from"./PoiTypeStore";import{sanitizeSearch as Fe}from"../utils/sanitizeText";import Te from"./FuzzySearchEngineStore";import Ie from"./SessionsFilterStore";import ze from"./SearchStore";import Me from"./SearchButtonsStore";import Oe from"./BookmarksStore";import{URLFilterManager as Ae}from"../services/URLFilterManager";import{ShortcutRegistry as Re}from"./ShortcutRegistry";import{SessionsShortcutProvider as Pe}from"./providers/SessionsShortcutProvider";import Ve from"./SpeakerStore";import Ge from"./SpeakerFilterStore";import{SpeakerShortcutProvider as Ne}from"./providers/SpeakerShortcutProvider";import{SearchShortcutProvider as qe}from"./providers/SearchShortcutProvider";import{RendererService as je}from"../renderer";let Ue=(()=>{let s=[],u,d=[],m=[],S,f=[],p=[],g,k,v,y,_,b,w,x,B,L,C,E,F,T,I,z,M,O,A,R,P,V,G,N,q,j,U,W,D,H,K,Y,$,J,Q,X,Z,ee,te,ie;return class{static{const t=typeof Symbol=="function"&&Symbol.metadata?Object.create(null):void 0;u=[se],S=[se],g=[a],k=[a],v=[a],y=[a],_=[a],b=[a],w=[a],x=[a],B=[a],L=[a],C=[a],E=[a],F=[a],T=[a],I=[a],z=[a],M=[a],O=[a],A=[a],R=[a],P=[a],V=[a],G=[a],N=[a],q=[a],j=[a],U=[a],W=[a],D=[a],H=[a],K=[a],Y=[a],$=[a],J=[he],Q=[a],X=[a],Z=[a],ee=[a],te=[a],ie=[a],i(this,null,g,{kind:"method",name:"setResetCameraFn",static:!1,private:!1,access:{has:e=>"setResetCameraFn"in e,get:e=>e.setResetCameraFn},metadata:t},null,s),i(this,null,k,{kind:"method",name:"selectExhibitor",static:!1,private:!1,access:{has:e=>"selectExhibitor"in e,get:e=>e.selectExhibitor},metadata:t},null,s),i(this,null,v,{kind:"method",name:"selectBooth",static:!1,private:!1,access:{has:e=>"selectBooth"in e,get:e=>e.selectBooth},metadata:t},null,s),i(this,null,y,{kind:"method",name:"reset",static:!1,private:!1,access:{has:e=>"reset"in e,get:e=>e.reset},metadata:t},null,s),i(this,null,_,{kind:"method",name:"selectNone",static:!1,private:!1,access:{has:e=>"selectNone"in e,get:e=>e.selectNone},metadata:t},null,s),i(this,null,b,{kind:"method",name:"selectBookmarks",static:!1,private:!1,access:{has:e=>"selectBookmarks"in e,get:e=>e.selectBookmarks},metadata:t},null,s),i(this,null,w,{kind:"method",name:"selectVisited",static:!1,private:!1,access:{has:e=>"selectVisited"in e,get:e=>e.selectVisited},metadata:t},null,s),i(this,null,x,{kind:"method",name:"selectLanguage",static:!1,private:!1,access:{has:e=>"selectLanguage"in e,get:e=>e.selectLanguage},metadata:t},null,s),i(this,null,B,{kind:"method",name:"selectCategory",static:!1,private:!1,access:{has:e=>"selectCategory"in e,get:e=>e.selectCategory},metadata:t},null,s),i(this,null,L,{kind:"method",name:"selectEventItem",static:!1,private:!1,access:{has:e=>"selectEventItem"in e,get:e=>e.selectEventItem},metadata:t},null,s),i(this,null,C,{kind:"method",name:"selectSearch",static:!1,private:!1,access:{has:e=>"selectSearch"in e,get:e=>e.selectSearch},metadata:t},null,s),i(this,null,E,{kind:"method",name:"clickBookmarks",static:!1,private:!1,access:{has:e=>"clickBookmarks"in e,get:e=>e.clickBookmarks},metadata:t},null,s),i(this,null,F,{kind:"method",name:"clickVisited",static:!1,private:!1,access:{has:e=>"clickVisited"in e,get:e=>e.clickVisited},metadata:t},null,s),i(this,null,T,{kind:"method",name:"clickLanguage",static:!1,private:!1,access:{has:e=>"clickLanguage"in e,get:e=>e.clickLanguage},metadata:t},null,s),i(this,null,I,{kind:"method",name:"clickCategory",static:!1,private:!1,access:{has:e=>"clickCategory"in e,get:e=>e.clickCategory},metadata:t},null,s),i(this,null,z,{kind:"method",name:"clickSeminars",static:!1,private:!1,access:{has:e=>"clickSeminars"in e,get:e=>e.clickSeminars},metadata:t},null,s),i(this,null,M,{kind:"method",name:"clickBoothInList",static:!1,private:!1,access:{has:e=>"clickBoothInList"in e,get:e=>e.clickBoothInList},metadata:t},null,s),i(this,null,O,{kind:"method",name:"clickBoothInList2",static:!1,private:!1,access:{has:e=>"clickBoothInList2"in e,get:e=>e.clickBoothInList2},metadata:t},null,s),i(this,null,A,{kind:"method",name:"clickBooth",static:!1,private:!1,access:{has:e=>"clickBooth"in e,get:e=>e.clickBooth},metadata:t},null,s),i(this,null,R,{kind:"method",name:"clickExhibitor2",static:!1,private:!1,access:{has:e=>"clickExhibitor2"in e,get:e=>e.clickExhibitor2},metadata:t},null,s),i(this,null,P,{kind:"method",name:"clickExhibitor",static:!1,private:!1,access:{has:e=>"clickExhibitor"in e,get:e=>e.clickExhibitor},metadata:t},null,s),i(this,null,V,{kind:"method",name:"showMap",static:!1,private:!1,access:{has:e=>"showMap"in e,get:e=>e.showMap},metadata:t},null,s),i(this,null,G,{kind:"method",name:"showOverlay",static:!1,private:!1,access:{has:e=>"showOverlay"in e,get:e=>e.showOverlay},metadata:t},null,s),i(this,null,N,{kind:"method",name:"toggleMapOverlay",static:!1,private:!1,access:{has:e=>"toggleMapOverlay"in e,get:e=>e.toggleMapOverlay},metadata:t},null,s),i(this,null,q,{kind:"method",name:"moveToList",static:!1,private:!1,access:{has:e=>"moveToList"in e,get:e=>e.moveToList},metadata:t},null,s),i(this,null,j,{kind:"method",name:"moveToExhibitor",static:!1,private:!1,access:{has:e=>"moveToExhibitor"in e,get:e=>e.moveToExhibitor},metadata:t},null,s),i(this,null,U,{kind:"method",name:"changeActiveListIndex",static:!1,private:!1,access:{has:e=>"changeActiveListIndex"in e,get:e=>e.changeActiveListIndex},metadata:t},null,s),i(this,null,W,{kind:"method",name:"toggleModal",static:!1,private:!1,access:{has:e=>"toggleModal"in e,get:e=>e.toggleModal},metadata:t},null,s),i(this,null,D,{kind:"method",name:"openGallery",static:!1,private:!1,access:{has:e=>"openGallery"in e,get:e=>e.openGallery},metadata:t},null,s),i(this,null,H,{kind:"method",name:"closeGallery",static:!1,private:!1,access:{has:e=>"closeGallery"in e,get:e=>e.closeGallery},metadata:t},null,s),i(this,null,K,{kind:"method",name:"openActiveListItem",static:!1,private:!1,access:{has:e=>"openActiveListItem"in e,get:e=>e.openActiveListItem},metadata:t},null,s),i(this,null,Y,{kind:"method",name:"toggleCategoryFilter",static:!1,private:!1,access:{has:e=>"toggleCategoryFilter"in e,get:e=>e.toggleCategoryFilter},metadata:t},null,s),i(this,null,$,{kind:"method",name:"applyCategoryFilters",static:!1,private:!1,access:{has:e=>"applyCategoryFilters"in e,get:e=>e.applyCategoryFilters},metadata:t},null,s),i(this,null,J,{kind:"getter",name:"filteredExhibitors",static:!1,private:!1,access:{has:e=>"filteredExhibitors"in e,get:e=>e.filteredExhibitors},metadata:t},null,s),i(this,null,Q,{kind:"method",name:"selectSessions",static:!1,private:!1,access:{has:e=>"selectSessions"in e,get:e=>e.selectSessions},metadata:t},null,s),i(this,null,X,{kind:"method",name:"selectExhibitors",static:!1,private:!1,access:{has:e=>"selectExhibitors"in e,get:e=>e.selectExhibitors},metadata:t},null,s),i(this,null,Z,{kind:"method",name:"selectTours",static:!1,private:!1,access:{has:e=>"selectTours"in e,get:e=>e.selectTours},metadata:t},null,s),i(this,null,ee,{kind:"method",name:"selectSpeakers",static:!1,private:!1,access:{has:e=>"selectSpeakers"in e,get:e=>e.selectSpeakers},metadata:t},null,s),i(this,null,te,{kind:"method",name:"selectSpeaker",static:!1,private:!1,access:{has:e=>"selectSpeaker"in e,get:e=>e.selectSpeaker},metadata:t},null,s),i(this,null,ie,{kind:"method",name:"resetFilters",static:!1,private:!1,access:{has:e=>"resetFilters"in e,get:e=>e.resetFilters},metadata:t},null,s),i(null,null,u,{kind:"field",name:"initialized",static:!1,private:!1,access:{has:e=>"initialized"in e,get:e=>e.initialized,set:(e,o)=>{e.initialized=o}},metadata:t},d,m),i(null,null,S,{kind:"field",name:"resetCameraFn",static:!1,private:!1,access:{has:e=>"resetCameraFn"in e,get:e=>e.resetCameraFn,set:(e,o)=>{e.resetCameraFn=o}},metadata:t},f,p),t&&Object.defineProperty(this,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:t})}categoryStore=c(this,s);exhibitorStore;boothStore;uiState;routeStore;routePlannerStore;toursStore;mapboxStore;layerStore;eventStore;poiTypeStore;heatmapStore;fuzzySearchEngineStore;categoryFilterStore;sessionsFilterStore;speakerStore;speakerFilterStore;searchStore;searchButtonsStore;bookmarksStore;urlFilterManager;shortcutRegistry;rendererService=new je;fp;initialized=c(this,d,!1);resetCameraFn=(c(this,m),c(this,f,void 0));setResetCameraFn(t){this.resetCameraFn=t}constructor(){c(this,p),this.categoryStore=new me(this),this.exhibitorStore=new fe(this),this.boothStore=new ue(this),this.routeStore=new xe(this),this.routePlannerStore=new Be(this),this.toursStore=new Le(this),this.uiState=new Ce(this),this.mapboxStore=new we(this),this.layerStore=new be,this.eventStore=new ge(this),this.heatmapStore=new ve(this),this.poiTypeStore=new Ee(this),this.fuzzySearchEngineStore=new Te,this.categoryFilterStore=new pe(this),this.sessionsFilterStore=new Ie(this),this.speakerStore=new Ve(this),this.speakerFilterStore=new Ge(this),this.searchStore=new ze(this),this.searchButtonsStore=new Me(this),this.bookmarksStore=new Oe(this),this.urlFilterManager=new Ae(this),this.shortcutRegistry=new Re,this.registerShortcutProviders()}selectExhibitor(t,e=!0){this.uiState.hoveredExhibitor=null,this.uiState.details=t;var o=t.booths.filter(h=>h.visible),l=t.booths.filter(h=>!h.visible);!o.length&&l.length&&this.layerStore.updateVisibility(l[0].layer,!0),e&&setTimeout(()=>this.moveToList(t.booths.filter(h=>h.visible)),n||r?500:50)}selectBooth(t,e=!0){let o=Array.isArray(t)?t:[t];this.uiState.details=o[0],o.length===1&&o[0].schedule?.length&&(this.uiState.desiredOverlaySize="medium"),o.length===1&&o[0].layer&&!o[0].visible&&this.layerStore.mode===re.Radio&&this.layerStore.updateVisibility(o[0].layer,!0),e&&setTimeout(()=>this.moveToList(o),n||r?500:50)}reset(){const t=window.__searchi;t&&t.querySelector&&t.querySelector("input[type=search]")&&t.querySelector("input[type=search]").blur&&t.querySelector("input[type=search]").blur(),window.setTimeout(()=>{this.uiState.setKioskModeEnabled||ye().then(()=>{ae(()=>{this.selectSearch(""),this.routeStore.defaultFrom&&!this.routeStore.defaultFrom?.visible?this.selectBooth(this.routeStore.defaultFrom):this.uiState.details=null,this.resetCameraFn?.(),this.uiState.menu=!1,this.searchStore.resetSearchBox(),this.searchButtonsStore.clearAllFilters()}),setTimeout(()=>{ae(()=>{this.uiState.inIdle=!0})},100)})},1e3)}selectNone(){window.__resett&&window.__resett(),this.uiState.details=this.uiState.selectedCategory}selectBookmarks(){this.uiState.details=null,this.uiState.list={type:"bookmarks"}}selectVisited(){this.uiState.details=null,this.uiState.list={type:"visited"}}selectLanguage(){this.uiState.details=null,this.uiState.list={type:_e}}selectCategory(t){window.__resett&&window.__resett(),this.uiState.details=t,this.uiState.list={type:"category",category:t},this.uiState.desiredOverlaySize="full",t.exhibitors.find(o=>o.booths.find(l=>l.visible))||this.layerStore.updateVisibility(t.exhibitors[0]?.booths[0]?.layer,!0),setTimeout(()=>{this.uiState.moveToBooths=t.exhibitors.filter(o=>o.booths.find(l=>l.visible)).flatMap(o=>o.booths)},200)}selectEventItem(t,e=!0){if(this.uiState.hoveredExhibitor=null,this.uiState.details=t,this.uiState.desiredOverlaySize="medium",t.boothId){const o=this.boothStore.booths.find(l=>l.id===t.boothId);o&&o.layer&&!o.visible&&this.layerStore.mode===re.Radio&&this.layerStore.updateVisibility(o.layer,!0)}e&&setTimeout(()=>{if(t.boothId){const o=this.boothStore.booths.find(l=>l.id===t.boothId);o&&this.moveToList([o])}},n||r?500:50)}selectSearch(t){window.__resett&&window.__resett(),this.uiState.details=null,this.speakerStore.clearSelectedSpeaker(),this.uiState.list={type:"search",text:Fe(t,Object.keys(this.uiState.mapSettings).map(e=>`${e}=`)),focused:!1},this.uiState.activeListIndex=-1}clickBookmarks(){window.__resett&&window.__resett(),this.uiState.menu=!1,this.selectBookmarks(),this.moveToList(),this.showMap()}clickVisited(){window.__resett&&window.__resett(),this.uiState.menu=!1,this.selectVisited(),this.moveToList(),this.showMap()}clickLanguage(){window.__resett&&window.__resett(),this.uiState.menu=!1,this.selectLanguage()}clickCategory(t){window.__resett&&window.__resett(),this.uiState.menu=!1,this.selectCategory(t),this.uiState.onCategoryClick&&this.uiState.onCategoryClick({id:t.id,name:t.name,exhibitors:t.exhibitors.map(e=>e.id)}),setTimeout(()=>{this.moveToList(),this.showMap()},100)}clickSeminars(){this.clickCategory(this.categoryStore.seminarsCategory)}clickBoothInList(t){window.__resett&&window.__resett(),this.uiState.hoveredBooth=null,this.selectBooth(t),this.moveToList([t]),this.showMap()}clickBoothInList2(t){window.__resett&&window.__resett(),this.uiState.hoveredBooth=null,this.selectBooth(t,!1),window.setTimeout(()=>{this.moveToList([t]),this.showMap()},navigator.userAgent.toLowerCase().indexOf("android")>-1?400:50)}clickBooth(t){if(this.uiState.menu=!1,this.uiState.list.type==="sessions"&&this.searchStore.selectSearch(),this.uiState.list.type==="speakers"&&this.searchStore.selectSearch(),this.uiState.list.type==="tours"&&this.searchStore.selectSearch(),this.uiState.list.type==="multi-point-tour"&&this.searchStore.selectSearch(),!(this.uiState.selectedRoute?.from&&this.uiState.selectedRoute?.to)){if(this.uiState.selectedRoute?.to&&!this.uiState.selectedRoute?.from&&t){this.routeStore.setStartPoint(t);return}if(t)this.routeStore.tempToBooth=t;else{this.uiState.details=null,this.fp.hidePathways(),this.uiState.list={type:"search",text:"",focused:!1},this.uiState.onBoothClick&&this.uiState.onBoothClick({target:null});return}if(this.uiState.onBoothClick){const e={name:"",description:""},o={target:{...t,layer:t.layer||e}};this.uiState.onBoothClick(o)}t.exhibitors.length===1&&t instanceof de?(this.heatmapStore.forceTrack={action:ke.ViewBooth,label:t.name},this.selectExhibitor(t.exhibitors[0],!1)):this.selectBooth(t,!1),this.showMap()}}clickExhibitor2(t){this.selectExhibitor(t,!0),this.showMap()}clickExhibitor(t){window.setTimeout(()=>{this.clickExhibitor2(t)},navigator.userAgent.toLowerCase().indexOf("android")>-1?400:50)}showMap(){const t=this.uiState.details;t&&"schedule"in t&&t.schedule?.length>0?this.uiState.desiredOverlaySize="full":this.uiState.overlayPosition==="bottom"&&ne&&(this.uiState.desiredOverlaySize="medium")}showOverlay(){this.uiState.overlayPosition==="bottom"&&(this.uiState.desiredOverlaySize="full")}toggleMapOverlay(){this.uiState.overlayPosition==="bottom"&&this.uiState.overlaySize==="full"?this.uiState.desiredOverlaySize="medium":this.uiState.overlayPosition==="bottom"&&this.uiState.overlaySize!=="full"&&(this.uiState.desiredOverlaySize="full")}moveToList(t){t=t||this.uiState.listItems;const e=[];t.forEach(o=>{o instanceof le?e.push(...o.booths.filter(l=>l.visible)):o instanceof oe&&e.push(o)}),this.uiState.moveToBooths=e}moveToExhibitor(t){this.moveToList([t])}changeActiveListIndex(t){let e=this.uiState.activeListIndex+t;e=Math.max(0,Math.min(this.uiState.listItems.length-1,e)),this.uiState.activeListIndex=e}toggleModal(t){this.uiState.modalActive[t]=!this.uiState.modalActive[t]}openGallery(){this.uiState.galleryActive=!0}closeGallery(){this.uiState.galleryActive=!1}openActiveListItem(){const t=this.uiState.listItems[this.uiState.activeListIndex];t&&(ce.log("Opening",t),t instanceof le?this.clickExhibitor(t):t instanceof Se?this.clickCategory(t):t instanceof oe&&this.clickBoothInList2(t))}toggleCategoryFilter(){this.uiState.categoryFilterOpen=!this.uiState.categoryFilterOpen}applyCategoryFilters(t){this.uiState.selectedCategoryFilters=t,this.uiState.categoryFilterOpen=!1}get filteredExhibitors(){return this.uiState.selectedCategoryFilters.length===0?this.exhibitorStore.exhibitors:this.exhibitorStore.exhibitors.filter(t=>this.uiState.selectedCategoryFilters.some(e=>t.categories.some(o=>o.id===e.id)))}selectSessions(){this.uiState.list={type:"sessions",text:"",focused:!1},this.uiState.menu=!1,this.uiState.selectedTrack=null,this.searchButtonsStore.setSubButtonId(null),this.searchButtonsStore.subButtonsEnabled&&this.searchButtonsStore.showSubButtons("sessions"),r&&(this.uiState.desiredOverlaySize="full")}selectExhibitors(){this.uiState.list={type:"exhibitors",text:"",focused:!1},this.uiState.menu=!1,r&&(this.uiState.desiredOverlaySize="full")}selectTours(){this.uiState.list={type:"tours",text:"",focused:!1},this.uiState.menu=!1,r&&(this.uiState.desiredOverlaySize="full")}selectSpeakers(){this.uiState.list={type:"speakers",text:"",focused:!1},this.uiState.menu=!1,r&&(this.uiState.desiredOverlaySize="full")}selectSpeaker(t,e=!0){this.speakerStore.selectSpeaker(t,e)}resetFilters(){this.searchButtonsStore.clearAllFilters()}registerShortcutProviders(){this.shortcutRegistry.register(new Pe(this)),this.shortcutRegistry.register(new Ne(this)),this.shortcutRegistry.register(new qe(this))}}})();export default Ue;
|
|
1
|
+
import{__esDecorate as i,__runInitializers as n}from"tslib";import{action as a,observable as se,computed as he,runInAction as ae}from"mobx";import ne from"../tools/logger";import{isWebGlSupported as ce}from"../utils";import ue,{BoothBase as oe,RegularBooth as de}from"./BoothStore";import me,{Category as Se}from"./CategoryStore";import fe,{Exhibitor as le}from"./ExhibitorStore";import pe from"./CategoryFilterStore";import ge from"./EventStore";import{GaEventActions as ke}from"../tools/gtag";import r from"../utils/is-mobile";import c from"../utils/is-webview";import ve from"./HeatmapStore";import{resetLocale as ye}from"../utils/i18n";import{LANGUAGE_TYPE as _e}from"../constants";import be,{LayersMode as re}from"./LayerStore";import we from"./MapboxStore";import xe from"./RouteStore";import Be from"./RoutePlannerStore";import Le from"./ToursStore";import Ce from"./UIState";import Ee from"./PoiTypeStore";import{sanitizeSearch as Fe}from"../utils/sanitizeText";import Te from"./FuzzySearchEngineStore";import Ie from"./SessionsFilterStore";import ze from"./SearchStore";import Me from"./SearchButtonsStore";import Oe from"./BookmarksStore";import{URLFilterManager as Ae}from"../services/URLFilterManager";import{ShortcutRegistry as Re}from"./ShortcutRegistry";import{SessionsShortcutProvider as Pe}from"./providers/SessionsShortcutProvider";import Ve from"./SpeakerStore";import Ge from"./SpeakerFilterStore";import{SpeakerShortcutProvider as Ne}from"./providers/SpeakerShortcutProvider";import{SearchShortcutProvider as qe}from"./providers/SearchShortcutProvider";import{RendererService as je}from"../renderer";let Ue=(()=>{let s=[],u,d=[],m=[],S,f=[],p=[],g,k,v,y,_,b,w,x,B,L,C,E,F,T,I,z,M,O,A,R,P,V,G,N,q,j,U,W,D,H,K,Y,$,J,Q,X,Z,ee,te,ie;return class{static{const t=typeof Symbol=="function"&&Symbol.metadata?Object.create(null):void 0;u=[se],S=[se],g=[a],k=[a],v=[a],y=[a],_=[a],b=[a],w=[a],x=[a],B=[a],L=[a],C=[a],E=[a],F=[a],T=[a],I=[a],z=[a],M=[a],O=[a],A=[a],R=[a],P=[a],V=[a],G=[a],N=[a],q=[a],j=[a],U=[a],W=[a],D=[a],H=[a],K=[a],Y=[a],$=[a],J=[he],Q=[a],X=[a],Z=[a],ee=[a],te=[a],ie=[a],i(this,null,g,{kind:"method",name:"setResetCameraFn",static:!1,private:!1,access:{has:e=>"setResetCameraFn"in e,get:e=>e.setResetCameraFn},metadata:t},null,s),i(this,null,k,{kind:"method",name:"selectExhibitor",static:!1,private:!1,access:{has:e=>"selectExhibitor"in e,get:e=>e.selectExhibitor},metadata:t},null,s),i(this,null,v,{kind:"method",name:"selectBooth",static:!1,private:!1,access:{has:e=>"selectBooth"in e,get:e=>e.selectBooth},metadata:t},null,s),i(this,null,y,{kind:"method",name:"reset",static:!1,private:!1,access:{has:e=>"reset"in e,get:e=>e.reset},metadata:t},null,s),i(this,null,_,{kind:"method",name:"selectNone",static:!1,private:!1,access:{has:e=>"selectNone"in e,get:e=>e.selectNone},metadata:t},null,s),i(this,null,b,{kind:"method",name:"selectBookmarks",static:!1,private:!1,access:{has:e=>"selectBookmarks"in e,get:e=>e.selectBookmarks},metadata:t},null,s),i(this,null,w,{kind:"method",name:"selectVisited",static:!1,private:!1,access:{has:e=>"selectVisited"in e,get:e=>e.selectVisited},metadata:t},null,s),i(this,null,x,{kind:"method",name:"selectLanguage",static:!1,private:!1,access:{has:e=>"selectLanguage"in e,get:e=>e.selectLanguage},metadata:t},null,s),i(this,null,B,{kind:"method",name:"selectCategory",static:!1,private:!1,access:{has:e=>"selectCategory"in e,get:e=>e.selectCategory},metadata:t},null,s),i(this,null,L,{kind:"method",name:"selectEventItem",static:!1,private:!1,access:{has:e=>"selectEventItem"in e,get:e=>e.selectEventItem},metadata:t},null,s),i(this,null,C,{kind:"method",name:"selectSearch",static:!1,private:!1,access:{has:e=>"selectSearch"in e,get:e=>e.selectSearch},metadata:t},null,s),i(this,null,E,{kind:"method",name:"clickBookmarks",static:!1,private:!1,access:{has:e=>"clickBookmarks"in e,get:e=>e.clickBookmarks},metadata:t},null,s),i(this,null,F,{kind:"method",name:"clickVisited",static:!1,private:!1,access:{has:e=>"clickVisited"in e,get:e=>e.clickVisited},metadata:t},null,s),i(this,null,T,{kind:"method",name:"clickLanguage",static:!1,private:!1,access:{has:e=>"clickLanguage"in e,get:e=>e.clickLanguage},metadata:t},null,s),i(this,null,I,{kind:"method",name:"clickCategory",static:!1,private:!1,access:{has:e=>"clickCategory"in e,get:e=>e.clickCategory},metadata:t},null,s),i(this,null,z,{kind:"method",name:"clickSeminars",static:!1,private:!1,access:{has:e=>"clickSeminars"in e,get:e=>e.clickSeminars},metadata:t},null,s),i(this,null,M,{kind:"method",name:"clickBoothInList",static:!1,private:!1,access:{has:e=>"clickBoothInList"in e,get:e=>e.clickBoothInList},metadata:t},null,s),i(this,null,O,{kind:"method",name:"clickBoothInList2",static:!1,private:!1,access:{has:e=>"clickBoothInList2"in e,get:e=>e.clickBoothInList2},metadata:t},null,s),i(this,null,A,{kind:"method",name:"clickBooth",static:!1,private:!1,access:{has:e=>"clickBooth"in e,get:e=>e.clickBooth},metadata:t},null,s),i(this,null,R,{kind:"method",name:"clickExhibitor2",static:!1,private:!1,access:{has:e=>"clickExhibitor2"in e,get:e=>e.clickExhibitor2},metadata:t},null,s),i(this,null,P,{kind:"method",name:"clickExhibitor",static:!1,private:!1,access:{has:e=>"clickExhibitor"in e,get:e=>e.clickExhibitor},metadata:t},null,s),i(this,null,V,{kind:"method",name:"showMap",static:!1,private:!1,access:{has:e=>"showMap"in e,get:e=>e.showMap},metadata:t},null,s),i(this,null,G,{kind:"method",name:"showOverlay",static:!1,private:!1,access:{has:e=>"showOverlay"in e,get:e=>e.showOverlay},metadata:t},null,s),i(this,null,N,{kind:"method",name:"toggleMapOverlay",static:!1,private:!1,access:{has:e=>"toggleMapOverlay"in e,get:e=>e.toggleMapOverlay},metadata:t},null,s),i(this,null,q,{kind:"method",name:"moveToList",static:!1,private:!1,access:{has:e=>"moveToList"in e,get:e=>e.moveToList},metadata:t},null,s),i(this,null,j,{kind:"method",name:"moveToExhibitor",static:!1,private:!1,access:{has:e=>"moveToExhibitor"in e,get:e=>e.moveToExhibitor},metadata:t},null,s),i(this,null,U,{kind:"method",name:"changeActiveListIndex",static:!1,private:!1,access:{has:e=>"changeActiveListIndex"in e,get:e=>e.changeActiveListIndex},metadata:t},null,s),i(this,null,W,{kind:"method",name:"toggleModal",static:!1,private:!1,access:{has:e=>"toggleModal"in e,get:e=>e.toggleModal},metadata:t},null,s),i(this,null,D,{kind:"method",name:"openGallery",static:!1,private:!1,access:{has:e=>"openGallery"in e,get:e=>e.openGallery},metadata:t},null,s),i(this,null,H,{kind:"method",name:"closeGallery",static:!1,private:!1,access:{has:e=>"closeGallery"in e,get:e=>e.closeGallery},metadata:t},null,s),i(this,null,K,{kind:"method",name:"openActiveListItem",static:!1,private:!1,access:{has:e=>"openActiveListItem"in e,get:e=>e.openActiveListItem},metadata:t},null,s),i(this,null,Y,{kind:"method",name:"toggleCategoryFilter",static:!1,private:!1,access:{has:e=>"toggleCategoryFilter"in e,get:e=>e.toggleCategoryFilter},metadata:t},null,s),i(this,null,$,{kind:"method",name:"applyCategoryFilters",static:!1,private:!1,access:{has:e=>"applyCategoryFilters"in e,get:e=>e.applyCategoryFilters},metadata:t},null,s),i(this,null,J,{kind:"getter",name:"filteredExhibitors",static:!1,private:!1,access:{has:e=>"filteredExhibitors"in e,get:e=>e.filteredExhibitors},metadata:t},null,s),i(this,null,Q,{kind:"method",name:"selectSessions",static:!1,private:!1,access:{has:e=>"selectSessions"in e,get:e=>e.selectSessions},metadata:t},null,s),i(this,null,X,{kind:"method",name:"selectExhibitors",static:!1,private:!1,access:{has:e=>"selectExhibitors"in e,get:e=>e.selectExhibitors},metadata:t},null,s),i(this,null,Z,{kind:"method",name:"selectTours",static:!1,private:!1,access:{has:e=>"selectTours"in e,get:e=>e.selectTours},metadata:t},null,s),i(this,null,ee,{kind:"method",name:"selectSpeakers",static:!1,private:!1,access:{has:e=>"selectSpeakers"in e,get:e=>e.selectSpeakers},metadata:t},null,s),i(this,null,te,{kind:"method",name:"selectSpeaker",static:!1,private:!1,access:{has:e=>"selectSpeaker"in e,get:e=>e.selectSpeaker},metadata:t},null,s),i(this,null,ie,{kind:"method",name:"resetFilters",static:!1,private:!1,access:{has:e=>"resetFilters"in e,get:e=>e.resetFilters},metadata:t},null,s),i(null,null,u,{kind:"field",name:"initialized",static:!1,private:!1,access:{has:e=>"initialized"in e,get:e=>e.initialized,set:(e,o)=>{e.initialized=o}},metadata:t},d,m),i(null,null,S,{kind:"field",name:"resetCameraFn",static:!1,private:!1,access:{has:e=>"resetCameraFn"in e,get:e=>e.resetCameraFn,set:(e,o)=>{e.resetCameraFn=o}},metadata:t},f,p),t&&Object.defineProperty(this,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:t})}categoryStore=n(this,s);exhibitorStore;boothStore;uiState;routeStore;routePlannerStore;toursStore;mapboxStore;layerStore;eventStore;poiTypeStore;heatmapStore;fuzzySearchEngineStore;categoryFilterStore;sessionsFilterStore;speakerStore;speakerFilterStore;searchStore;searchButtonsStore;bookmarksStore;urlFilterManager;shortcutRegistry;rendererService=new je;fp;initialized=n(this,d,!1);resetCameraFn=(n(this,m),n(this,f,void 0));setResetCameraFn(t){this.resetCameraFn=t}constructor(){n(this,p),this.categoryStore=new me(this),this.exhibitorStore=new fe(this),this.boothStore=new ue(this),this.routeStore=new xe(this),this.routePlannerStore=new Be(this),this.toursStore=new Le(this),this.uiState=new Ce(this),this.mapboxStore=new we(this),this.layerStore=new be,this.eventStore=new ge(this),this.heatmapStore=new ve(this),this.poiTypeStore=new Ee(this),this.fuzzySearchEngineStore=new Te(["name","title","fullName","booths.name"]),this.categoryFilterStore=new pe(this),this.sessionsFilterStore=new Ie(this),this.speakerStore=new Ve(this),this.speakerFilterStore=new Ge(this),this.searchStore=new ze(this),this.searchButtonsStore=new Me(this),this.bookmarksStore=new Oe(this),this.urlFilterManager=new Ae(this),this.shortcutRegistry=new Re,this.registerShortcutProviders()}selectExhibitor(t,e=!0){this.uiState.hoveredExhibitor=null,this.uiState.details=t;var o=t.booths.filter(h=>h.visible),l=t.booths.filter(h=>!h.visible);!o.length&&l.length&&this.layerStore.updateVisibility(l[0].layer,!0),e&&setTimeout(()=>this.moveToList(t.booths.filter(h=>h.visible)),c||r?500:50)}selectBooth(t,e=!0){let o=Array.isArray(t)?t:[t];this.uiState.details=o[0],o.length===1&&o[0].schedule?.length&&(this.uiState.desiredOverlaySize="medium"),o.length===1&&o[0].layer&&!o[0].visible&&this.layerStore.mode===re.Radio&&this.layerStore.updateVisibility(o[0].layer,!0),e&&setTimeout(()=>this.moveToList(o),c||r?500:50)}reset(){const t=window.__searchi;t&&t.querySelector&&t.querySelector("input[type=search]")&&t.querySelector("input[type=search]").blur&&t.querySelector("input[type=search]").blur(),window.setTimeout(()=>{this.uiState.setKioskModeEnabled||ye().then(()=>{ae(()=>{this.selectSearch(""),this.routeStore.defaultFrom&&!this.routeStore.defaultFrom?.visible?this.selectBooth(this.routeStore.defaultFrom):this.uiState.details=null,this.resetCameraFn?.(),this.uiState.menu=!1,this.searchStore.resetSearchBox(),this.searchButtonsStore.clearAllFilters()}),setTimeout(()=>{ae(()=>{this.uiState.inIdle=!0})},100)})},1e3)}selectNone(){window.__resett&&window.__resett(),this.uiState.details=this.uiState.selectedCategory}selectBookmarks(){this.uiState.details=null,this.uiState.list={type:"bookmarks"}}selectVisited(){this.uiState.details=null,this.uiState.list={type:"visited"}}selectLanguage(){this.uiState.details=null,this.uiState.list={type:_e}}selectCategory(t){window.__resett&&window.__resett(),this.uiState.details=t,this.uiState.list={type:"category",category:t},this.uiState.desiredOverlaySize="full",t.exhibitors.find(o=>o.booths.find(l=>l.visible))||this.layerStore.updateVisibility(t.exhibitors[0]?.booths[0]?.layer,!0),setTimeout(()=>{this.uiState.moveToBooths=t.exhibitors.filter(o=>o.booths.find(l=>l.visible)).flatMap(o=>o.booths)},200)}selectEventItem(t,e=!0){if(this.uiState.hoveredExhibitor=null,this.uiState.details=t,this.uiState.desiredOverlaySize="medium",t.boothId){const o=this.boothStore.booths.find(l=>l.id===t.boothId);o&&o.layer&&!o.visible&&this.layerStore.mode===re.Radio&&this.layerStore.updateVisibility(o.layer,!0)}e&&setTimeout(()=>{if(t.boothId){const o=this.boothStore.booths.find(l=>l.id===t.boothId);o&&this.moveToList([o])}},c||r?500:50)}selectSearch(t){window.__resett&&window.__resett(),this.uiState.details=null,this.speakerStore.clearSelectedSpeaker(),this.uiState.list={type:"search",text:Fe(t,Object.keys(this.uiState.mapSettings).map(e=>`${e}=`)),focused:!1},this.uiState.activeListIndex=-1}clickBookmarks(){window.__resett&&window.__resett(),this.uiState.menu=!1,this.selectBookmarks(),this.moveToList(),this.showMap()}clickVisited(){window.__resett&&window.__resett(),this.uiState.menu=!1,this.selectVisited(),this.moveToList(),this.showMap()}clickLanguage(){window.__resett&&window.__resett(),this.uiState.menu=!1,this.selectLanguage()}clickCategory(t){window.__resett&&window.__resett(),this.uiState.menu=!1,this.selectCategory(t),this.uiState.onCategoryClick&&this.uiState.onCategoryClick({id:t.id,name:t.name,exhibitors:t.exhibitors.map(e=>e.id)}),setTimeout(()=>{this.moveToList(),this.showMap()},100)}clickSeminars(){this.clickCategory(this.categoryStore.seminarsCategory)}clickBoothInList(t){window.__resett&&window.__resett(),this.uiState.hoveredBooth=null,this.selectBooth(t),this.moveToList([t]),this.showMap()}clickBoothInList2(t){window.__resett&&window.__resett(),this.uiState.hoveredBooth=null,this.selectBooth(t,!1),window.setTimeout(()=>{this.moveToList([t]),this.showMap()},navigator.userAgent.toLowerCase().indexOf("android")>-1?400:50)}clickBooth(t){if(this.uiState.menu=!1,this.uiState.list.type==="sessions"&&this.searchStore.selectSearch(),this.uiState.list.type==="speakers"&&this.searchStore.selectSearch(),this.uiState.list.type==="tours"&&this.searchStore.selectSearch(),this.uiState.list.type==="multi-point-tour"&&this.searchStore.selectSearch(),!(this.uiState.selectedRoute?.from&&this.uiState.selectedRoute?.to)){if(this.uiState.selectedRoute?.to&&!this.uiState.selectedRoute?.from&&t){this.routeStore.setStartPoint(t);return}if(t)this.routeStore.tempToBooth=t;else{this.uiState.details=null,this.fp.hidePathways(),this.uiState.list={type:"search",text:"",focused:!1},this.uiState.onBoothClick&&this.uiState.onBoothClick({target:null});return}if(this.uiState.onBoothClick){const e={name:"",description:""},o={target:{...t,layer:t.layer||e}};this.uiState.onBoothClick(o)}t.exhibitors.length===1&&t instanceof de?(this.heatmapStore.forceTrack={action:ke.ViewBooth,label:t.name},this.selectExhibitor(t.exhibitors[0],!1)):this.selectBooth(t,!1),this.showMap()}}clickExhibitor2(t){this.selectExhibitor(t,!0),this.showMap()}clickExhibitor(t){window.setTimeout(()=>{this.clickExhibitor2(t)},navigator.userAgent.toLowerCase().indexOf("android")>-1?400:50)}showMap(){const t=this.uiState.details;t&&"schedule"in t&&t.schedule?.length>0?this.uiState.desiredOverlaySize="full":this.uiState.overlayPosition==="bottom"&&ce&&(this.uiState.desiredOverlaySize="medium")}showOverlay(){this.uiState.overlayPosition==="bottom"&&(this.uiState.desiredOverlaySize="full")}toggleMapOverlay(){this.uiState.overlayPosition==="bottom"&&this.uiState.overlaySize==="full"?this.uiState.desiredOverlaySize="medium":this.uiState.overlayPosition==="bottom"&&this.uiState.overlaySize!=="full"&&(this.uiState.desiredOverlaySize="full")}moveToList(t){t=t||this.uiState.listItems;const e=[];t.forEach(o=>{o instanceof le?e.push(...o.booths.filter(l=>l.visible)):o instanceof oe&&e.push(o)}),this.uiState.moveToBooths=e}moveToExhibitor(t){this.moveToList([t])}changeActiveListIndex(t){let e=this.uiState.activeListIndex+t;e=Math.max(0,Math.min(this.uiState.listItems.length-1,e)),this.uiState.activeListIndex=e}toggleModal(t){this.uiState.modalActive[t]=!this.uiState.modalActive[t]}openGallery(){this.uiState.galleryActive=!0}closeGallery(){this.uiState.galleryActive=!1}openActiveListItem(){const t=this.uiState.listItems[this.uiState.activeListIndex];t&&(ne.log("Opening",t),t instanceof le?this.clickExhibitor(t):t instanceof Se?this.clickCategory(t):t instanceof oe&&this.clickBoothInList2(t))}toggleCategoryFilter(){this.uiState.categoryFilterOpen=!this.uiState.categoryFilterOpen}applyCategoryFilters(t){this.uiState.selectedCategoryFilters=t,this.uiState.categoryFilterOpen=!1}get filteredExhibitors(){return this.uiState.selectedCategoryFilters.length===0?this.exhibitorStore.exhibitors:this.exhibitorStore.exhibitors.filter(t=>this.uiState.selectedCategoryFilters.some(e=>t.categories.some(o=>o.id===e.id)))}selectSessions(){this.uiState.list={type:"sessions",text:"",focused:!1},this.uiState.menu=!1,this.uiState.selectedTrack=null,this.searchButtonsStore.setSubButtonId(null),this.searchButtonsStore.subButtonsEnabled&&this.searchButtonsStore.showSubButtons("sessions"),r&&(this.uiState.desiredOverlaySize="full")}selectExhibitors(){this.uiState.list={type:"exhibitors",text:"",focused:!1},this.uiState.menu=!1,r&&(this.uiState.desiredOverlaySize="full")}selectTours(){this.uiState.list={type:"tours",text:"",focused:!1},this.uiState.menu=!1,r&&(this.uiState.desiredOverlaySize="full")}selectSpeakers(){this.uiState.list={type:"speakers",text:"",focused:!1},this.uiState.menu=!1,r&&(this.uiState.desiredOverlaySize="full")}selectSpeaker(t,e=!0){this.speakerStore.selectSpeaker(t,e)}resetFilters(){this.searchButtonsStore.clearAllFilters()}registerShortcutProviders(){this.shortcutRegistry.register(new Pe(this)),this.shortcutRegistry.register(new Ne(this)),this.shortcutRegistry.register(new qe(this))}}})();export default Ue;
|
|
@@ -178,6 +178,7 @@ export default class UIState {
|
|
|
178
178
|
get searchList(): ListItem[];
|
|
179
179
|
get foundInDescription(): ListItem[];
|
|
180
180
|
get foundInDescriptionStruct(): Record<number, string>;
|
|
181
|
+
get categoryFilteredSearchList(): ListItem[];
|
|
181
182
|
get fuzzySearchItems(): FuzzySearchResult<ListItem>[];
|
|
182
183
|
get listItems(): ListItem[];
|
|
183
184
|
get listBooths(): Set<Booth>;
|