@expofp/floorplan 0.0.0-experimental.2d6c681 → 0.0.0-experimental.6dabc65
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/{CookieConsent-BIsWzAiP.js → CookieConsent-DYjf8elV.js} +1 -1
- package/dist/browser/{Debug-B5mmo0ZX.js → Debug-CK-BLY-v.js} +1 -1
- package/dist/browser/{Demo-B2klxORi.js → Demo-B677YULI.js} +1 -1
- package/dist/browser/{Free-suULW-LU.js → Free-B_nU7Krr.js} +1 -1
- package/dist/browser/{GalleryContainer-BGBNGRKU.js → GalleryContainer-DcZrZnJz.js} +2 -2
- package/dist/browser/{GpsLoader-Idv0kq5D.js → GpsLoader-D9ghVrHk.js} +5 -5
- package/dist/browser/{KioskStore-Dg9jaX5d.js → KioskStore-BY2LVJPr.js} +4 -4
- package/dist/browser/{LayerStore-CK6wLW56.js → LayerStore-Cdwr6Hsw.js} +5 -5
- package/dist/browser/{MaplibreAdapter-uZUhZfFW.js → MaplibreAdapter-aWJl2IuA.js} +58 -59
- package/dist/browser/{ModalContainer-DWm8vEaI.js → ModalContainer-DnZxo0qA.js} +1 -1
- package/dist/browser/{RouteStore-NE2I9tiF.js → RouteStore-DTRRmaH_.js} +1552 -740
- package/dist/browser/{SetKioskMode-Dwlf5w7q.js → SetKioskMode-KMjCaliE.js} +2 -2
- package/dist/browser/{ShowKiosk-Cr-QmIUT.js → ShowKiosk-C_gEEGg7.js} +3 -3
- package/dist/browser/{ViewerMenuPanel-CTAjGsq2.js → ViewerMenuPanel-CbkSUP3L.js} +3 -3
- package/dist/browser/bundle.json +31 -34
- package/dist/browser/{components-BjEhhgf2.js → components-DRXsdUhs.js} +727 -727
- package/dist/browser/{create-live-plan-BaEGBhGA.js → create-live-plan-DnaL_dh7.js} +386 -725
- package/dist/browser/{floorplan.loader-CGzIMplb.js → floorplan.loader-151P9pJo.js} +6 -6
- package/dist/browser/{floorplan.ready-r96zV9bP.js → floorplan.ready-CCnzh5dy.js} +470 -378
- package/dist/browser/{i18n-BgFBhYOU.js → i18n-DRDvImjG.js} +7 -2
- package/dist/browser/index.js +8 -8
- package/dist/browser/{venue-public-BA3x-n4N.js → init-ui-DsRfN2rh.js} +8 -18
- package/dist/browser/{integrateKiosk-D45vYRsm.js → integrateKiosk-w_EetoNQ.js} +1 -1
- package/dist/browser/{is-debug-BRHdrnKr.js → is-debug-6YYr83sg.js} +2 -2
- package/dist/browser/{journey-plan-DtL28HMP.js → journey-plan-CEf1fFZz.js} +16 -16
- package/dist/browser/{kiosk-mode-DfkGlDkT.js → kiosk-mode-Ck1FQGr9.js} +2 -2
- package/dist/browser/{kioskUrlParam-CnYhnC_7.js → kioskUrlParam-BinDd3Gf.js} +1 -1
- package/dist/browser/{loadImage-DzSnRAxX.js → loadImage-CenmkrfL.js} +1 -1
- package/dist/browser/{logDeviceInfo-BTqyv9Xe.js → logDeviceInfo-OsKRXOu4.js} +4 -4
- package/dist/browser/{debounce-raMZ2DqK.js → venue-selection-DLUrexiA.js} +8 -18
- package/dist/browser/{viewport-B7plho3P.js → viewport-CBi835qx.js} +1 -1
- package/dist/esm/floorplan.ready.js +10 -0
- package/dist/esm/store/RouteStore.d.ts +10 -0
- package/dist/esm/store/RouteStore.js +48 -16
- package/dist/esm/store/VenueStore.d.ts +7 -0
- package/dist/esm/store/VenueStore.js +9 -0
- package/dist/esm/tools/sdk-telemetry.d.ts +10 -0
- package/dist/esm/tools/sdk-telemetry.js +122 -0
- package/dist/esm/tools/settings.js +1 -1
- package/package.json +10 -10
- package/dist/browser/venues-DKpIy-87.js +0 -447
|
@@ -3,58 +3,57 @@
|
|
|
3
3
|
var e = typeof window < "u" ? window : typeof global < "u" ? global : typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : {};
|
|
4
4
|
e.SENTRY_RELEASE = { id: "3.45.6" };
|
|
5
5
|
var t = new e.Error().stack;
|
|
6
|
-
t && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[t] = "
|
|
6
|
+
t && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[t] = "5d4fcf5f-cd86-4c66-9e49-74dca043c9d6", e._sentryDebugIdIdentifier = "sentry-dbid-5d4fcf5f-cd86-4c66-9e49-74dca043c9d6");
|
|
7
7
|
} catch {}
|
|
8
8
|
})();
|
|
9
|
-
import { At as e, O as t, a as n, c as r, s as i } from "./i18n-
|
|
10
|
-
import { a,
|
|
11
|
-
import { a as
|
|
12
|
-
import { t as
|
|
13
|
-
import { _ as
|
|
14
|
-
import { $ as
|
|
15
|
-
import { c as
|
|
16
|
-
import { B as
|
|
17
|
-
import { o as
|
|
18
|
-
import {
|
|
19
|
-
import { i as it, r as at, t as ot } from "./venue-public-BA3x-n4N.js";
|
|
9
|
+
import { At as e, O as t, a as n, c as r, s as i } from "./i18n-DRDvImjG.js";
|
|
10
|
+
import { a, m as o } from "./is-debug-6YYr83sg.js";
|
|
11
|
+
import { a as s, c, l, n as u, u as d } from "./mobx.module-BOCLFB5I.js";
|
|
12
|
+
import { t as ee } from "./is-webview-cTH4yz8f.js";
|
|
13
|
+
import { _ as te, a as ne, d as re, f as ie, g as ae, h as oe, i as se, l as ce, m as le, n as ue, s as de, u as fe } from "./venue-selection-DLUrexiA.js";
|
|
14
|
+
import { $ as pe, A as me, B as he, D as ge, E as _e, F as ve, H as ye, N as f, P as be, R as xe, U as Se, Ut as Ce, V as we, W as Te, Xt as p, et as Ee, g as De, h as Oe, j as ke, k as Ae, kt as je, m as Me, n as Ne, r as Pe, tt as Fe, wt as Ie, z as Le } from "./LayerStore-Cdwr6Hsw.js";
|
|
15
|
+
import { c as Re, l as ze } from "./store-q_CTsixH.js";
|
|
16
|
+
import { B as Be, G as Ve, L as He, N as Ue, U as We, a as Ge, k as Ke, l as qe, n as Je, r as Ye } from "./RouteStore-DTRRmaH_.js";
|
|
17
|
+
import { o as Xe } from "./kioskUrlParam-BinDd3Gf.js";
|
|
18
|
+
import { n as Ze, r as Qe } from "./init-ui-DsRfN2rh.js";
|
|
20
19
|
//#region src/store/init/init-categories.ts
|
|
21
|
-
function
|
|
20
|
+
function $e(e) {
|
|
22
21
|
let { categoryStore: t, exhibitorStore: n } = e;
|
|
23
|
-
for (let e of
|
|
24
|
-
let r = new
|
|
25
|
-
Object.assign(r, e), r.exhibitors = [], r.slug =
|
|
26
|
-
for (let t of
|
|
22
|
+
for (let e of p.categories || []) {
|
|
23
|
+
let r = new ae();
|
|
24
|
+
Object.assign(r, e), r.exhibitors = [], r.slug = Te(r.name);
|
|
25
|
+
for (let t of p.exhibitors || []) if (t.categories.filter((t) => t === e.id)[0]) {
|
|
27
26
|
let e = n.exhibitorById.get(t.id);
|
|
28
27
|
e.categories.push(r), r.exhibitors.push(e);
|
|
29
28
|
}
|
|
30
29
|
r.store = t, t.categories.push(r);
|
|
31
30
|
}
|
|
32
|
-
|
|
31
|
+
o.log("initCategories", t.categories.length);
|
|
33
32
|
}
|
|
34
33
|
//#endregion
|
|
35
34
|
//#region src/store/init/init-events.ts
|
|
36
|
-
function
|
|
35
|
+
function et(e) {
|
|
37
36
|
var t;
|
|
38
|
-
(t =
|
|
39
|
-
let n = (t.speakers || []).map((t) => e.speakerStore.addSpeaker({ ...t })), r = new
|
|
37
|
+
(t = p.events) == null || t.forEach((t) => {
|
|
38
|
+
let n = (t.speakers || []).map((t) => e.speakerStore.addSpeaker({ ...t })), r = new le(t.id, t.externalId || t.id.toString(), t.boothId, t.name || `Event ${t.id}`, t.description || "", t.startDate, t.endDate, t.logoFile, n, t.tracks || []);
|
|
40
39
|
e.eventStore.eventItems.push(r);
|
|
41
|
-
}),
|
|
40
|
+
}), o.log("initEvents", e.eventStore.eventItems.length), o.log("initSpeakers", e.speakerStore.speakersMap.size), nt(e.eventStore), tt(e.eventStore);
|
|
42
41
|
}
|
|
43
|
-
function
|
|
44
|
-
let t =
|
|
45
|
-
e.replaceVisited(t.events),
|
|
46
|
-
|
|
47
|
-
exhibitors:
|
|
42
|
+
function tt(e) {
|
|
43
|
+
let t = f("visited");
|
|
44
|
+
e.replaceVisited(t.events), me(() => {
|
|
45
|
+
be("visited", {
|
|
46
|
+
exhibitors: f("visited").exhibitors,
|
|
48
47
|
events: e.visited.map((e) => e.id)
|
|
49
48
|
});
|
|
50
49
|
});
|
|
51
50
|
}
|
|
52
|
-
function
|
|
53
|
-
let t =
|
|
54
|
-
e.replaceBookmarked(t.events),
|
|
51
|
+
function nt(e) {
|
|
52
|
+
let t = f("bookmarked");
|
|
53
|
+
e.replaceBookmarked(t.events), me(() => {
|
|
55
54
|
var t;
|
|
56
|
-
let n =
|
|
57
|
-
|
|
55
|
+
let n = f("bookmarked");
|
|
56
|
+
be("bookmarked", {
|
|
58
57
|
exhibitors: n.exhibitors,
|
|
59
58
|
events: (t = e.bookmarked) == null ? void 0 : t.map((e) => e.id),
|
|
60
59
|
speakers: n.speakers,
|
|
@@ -64,25 +63,25 @@ function ut(e) {
|
|
|
64
63
|
}
|
|
65
64
|
//#endregion
|
|
66
65
|
//#region src/store/init/init-exhibitors.ts
|
|
67
|
-
function
|
|
68
|
-
let { exhibitorStore: t } = e, n = [...
|
|
66
|
+
function rt(e) {
|
|
67
|
+
let { exhibitorStore: t } = e, n = [...p.exhibitors || []], r = Qe();
|
|
69
68
|
if (r) {
|
|
70
69
|
let e = n.findIndex((e) => e.id === r.id);
|
|
71
70
|
e === -1 ? n.push(r) : n.splice(e, 1, r);
|
|
72
71
|
}
|
|
73
72
|
n.sort((e, t) => Number(t.featured) - Number(e.featured));
|
|
74
73
|
for (let e of n) {
|
|
75
|
-
let n = new
|
|
76
|
-
Object.assign(n, e), n.slug =
|
|
74
|
+
let n = new Me();
|
|
75
|
+
Object.assign(n, e), n.slug = Te(n.name), n.rebookingState = n.rebookingState || De.Unasked, n.categories = [], n.booths = [], n.store = t, t.exhibitors.push(n), n.schedule = null;
|
|
77
76
|
}
|
|
78
|
-
|
|
77
|
+
o.log("initExhibitors", t.exhibitors.length), it(t), at(t);
|
|
79
78
|
}
|
|
80
|
-
function
|
|
81
|
-
let t =
|
|
82
|
-
e.replaceBookmarked(t.exhibitors),
|
|
79
|
+
function it(e) {
|
|
80
|
+
let t = f("bookmarked");
|
|
81
|
+
e.replaceBookmarked(t.exhibitors), me(() => {
|
|
83
82
|
var t;
|
|
84
|
-
let n =
|
|
85
|
-
|
|
83
|
+
let n = f("bookmarked");
|
|
84
|
+
be("bookmarked", {
|
|
86
85
|
exhibitors: (t = e.bookmarked) == null ? void 0 : t.map((e) => e.id),
|
|
87
86
|
events: n.events,
|
|
88
87
|
speakers: n.speakers,
|
|
@@ -90,11 +89,11 @@ function ft(e) {
|
|
|
90
89
|
});
|
|
91
90
|
});
|
|
92
91
|
}
|
|
93
|
-
function
|
|
94
|
-
let t =
|
|
95
|
-
e.replaceVisited(t.exhibitors),
|
|
96
|
-
let t =
|
|
97
|
-
|
|
92
|
+
function at(e) {
|
|
93
|
+
let t = f("visited");
|
|
94
|
+
e.replaceVisited(t.exhibitors), me(() => {
|
|
95
|
+
let t = f("visited");
|
|
96
|
+
be("visited", {
|
|
98
97
|
exhibitors: e.visited.map((e) => e.id),
|
|
99
98
|
events: t.events
|
|
100
99
|
});
|
|
@@ -102,16 +101,16 @@ function pt(e) {
|
|
|
102
101
|
}
|
|
103
102
|
//#endregion
|
|
104
103
|
//#region src/store/init/init-heatmap.ts
|
|
105
|
-
function
|
|
104
|
+
function ot(e) {
|
|
106
105
|
if (window.__heatmapData) e.heatmapStore.heatmapData = window.__heatmapData;
|
|
107
106
|
else if (window.__heatmapDataYah) {
|
|
108
|
-
e.heatmapStore.heatmapData.yah = window.__heatmapDataYah.yah.map((e) => new
|
|
107
|
+
e.heatmapStore.heatmapData.yah = window.__heatmapDataYah.yah.map((e) => new ie(e.id, e.name, e.viewCount, e.x, e.y, e.z));
|
|
109
108
|
let t = e.heatmapStore.heatmapData.yah.map((t) => {
|
|
110
|
-
let n = e.heatmapStore.getColorByClicks(t.viewCount), r = e.uiState.devicePixelRatio, i =
|
|
109
|
+
let n = e.heatmapStore.getColorByClicks(t.viewCount), r = e.uiState.devicePixelRatio, i = Ie(r, n, void 0, 95, 120, t.viewCount.toString()), a = i.toDataURL();
|
|
111
110
|
return {
|
|
112
111
|
name: t.id.toString(),
|
|
113
112
|
scale: 1,
|
|
114
|
-
...
|
|
113
|
+
...je(i),
|
|
115
114
|
content: a
|
|
116
115
|
};
|
|
117
116
|
}), n = e.heatmapStore.heatmapData.yah.map((e) => ({
|
|
@@ -131,23 +130,23 @@ function mt(e) {
|
|
|
131
130
|
}
|
|
132
131
|
//#endregion
|
|
133
132
|
//#region src/store/init/init-poiTypes.ts
|
|
134
|
-
function
|
|
133
|
+
function st(e) {
|
|
135
134
|
var t;
|
|
136
|
-
((t =
|
|
135
|
+
((t = p.poiTypes) == null ? [] : t).forEach((t) => {
|
|
137
136
|
e.poiTypeStore.poiTypes.push(t);
|
|
138
137
|
});
|
|
139
138
|
}
|
|
140
139
|
//#endregion
|
|
141
140
|
//#region src/store/init/init-speakers.ts
|
|
142
|
-
function
|
|
143
|
-
|
|
141
|
+
function ct(e) {
|
|
142
|
+
lt(e.speakerStore);
|
|
144
143
|
}
|
|
145
|
-
function
|
|
146
|
-
let t =
|
|
147
|
-
e.replaceBookmarked(t.speakers),
|
|
144
|
+
function lt(e) {
|
|
145
|
+
let t = f("bookmarked");
|
|
146
|
+
e.replaceBookmarked(t.speakers), me(() => {
|
|
148
147
|
var t;
|
|
149
|
-
let n =
|
|
150
|
-
|
|
148
|
+
let n = f("bookmarked");
|
|
149
|
+
be("bookmarked", {
|
|
151
150
|
exhibitors: n.exhibitors,
|
|
152
151
|
events: n.events,
|
|
153
152
|
speakers: (t = e.bookmarked) == null ? void 0 : t.map((e) => e.id),
|
|
@@ -157,25 +156,25 @@ function _t(e) {
|
|
|
157
156
|
}
|
|
158
157
|
//#endregion
|
|
159
158
|
//#region src/store/init/index.ts
|
|
160
|
-
function
|
|
161
|
-
|
|
159
|
+
function ut(e) {
|
|
160
|
+
ge(e), et(e), ct(e), rt(e), $e(e), st(e), Ae(e), ot(e), Ze(e);
|
|
162
161
|
}
|
|
163
162
|
//#endregion
|
|
164
163
|
//#region src/store/search-buttons/constants.ts
|
|
165
|
-
var
|
|
164
|
+
var m = /*#__PURE__*/ function(e) {
|
|
166
165
|
return e.BOOKMARKS = "bookmarks", e.VISITED = "visited", e.SESSIONS = "sessions", e.TOURS = "guided_tours", e.CATEGORIES = "categories", e.POI_TYPE = "poi_type", e.POI_TYPES = "poi_types", e.LINK = "link", e.EXHIBITORS = "exhibitors", e;
|
|
167
|
-
}({}),
|
|
166
|
+
}({}), h = {
|
|
168
167
|
POI_TYPE: "poiType_",
|
|
169
168
|
CATEGORIES: "categories_",
|
|
170
169
|
POI_TYPES: "poi_types_",
|
|
171
170
|
LINK: "link_"
|
|
172
|
-
},
|
|
171
|
+
}, dt = {
|
|
173
172
|
BOOKMARKS: "icon-bookmark",
|
|
174
173
|
VISITED: "icon-checkmark",
|
|
175
174
|
SESSIONS: "icon-schedule",
|
|
176
175
|
EXHIBITORS: "icon-exhibitors"
|
|
177
|
-
},
|
|
178
|
-
function
|
|
176
|
+
}, g, ft, pt;
|
|
177
|
+
function mt(e, t, n, r) {
|
|
179
178
|
n && Object.defineProperty(e, t, {
|
|
180
179
|
enumerable: n.enumerable,
|
|
181
180
|
configurable: n.configurable,
|
|
@@ -183,7 +182,7 @@ function St(e, t, n, r) {
|
|
|
183
182
|
value: n.initializer ? n.initializer.call(r) : void 0
|
|
184
183
|
});
|
|
185
184
|
}
|
|
186
|
-
function
|
|
185
|
+
function _(e, t, n, r, i) {
|
|
187
186
|
var a = {};
|
|
188
187
|
return Object.keys(r).forEach(function(e) {
|
|
189
188
|
a[e] = r[e];
|
|
@@ -191,25 +190,25 @@ function v(e, t, n, r, i) {
|
|
|
191
190
|
return r(e, t, n) || n;
|
|
192
191
|
}, a), i && a.initializer !== void 0 && (a.value = a.initializer ? a.initializer.call(i) : void 0, a.initializer = void 0), a.initializer === void 0 ? (Object.defineProperty(e, t, a), null) : a;
|
|
193
192
|
}
|
|
194
|
-
var
|
|
193
|
+
var v = {
|
|
195
194
|
CATEGORIES: "categories",
|
|
196
195
|
POI_TYPE: "poiType",
|
|
197
196
|
POI_TYPES: "poiTypes",
|
|
198
197
|
EXHIBITORS: "exhibitors"
|
|
199
|
-
},
|
|
198
|
+
}, ht = (g = class {
|
|
200
199
|
constructor(e) {
|
|
201
|
-
this.rootStore = e,
|
|
200
|
+
this.rootStore = e, mt(this, "currentFilters", ft, this), mt(this, "isInitialized", pt, this), this.setupReactions();
|
|
202
201
|
}
|
|
203
202
|
initialize() {
|
|
204
|
-
this.parseURLFilters(), this.applyFiltersToStore(), this.isInitialized = !0,
|
|
203
|
+
this.parseURLFilters(), this.applyFiltersToStore(), this.isInitialized = !0, o.log("URLFilterManager initialized with filters:", this.currentFilters);
|
|
205
204
|
}
|
|
206
205
|
parseURLFilters() {
|
|
207
206
|
let { categories: e, poiType: t, poiTypes: n, exhibitors: r } = this.readRawFilters(), i = n.filter((e) => {
|
|
208
207
|
if (!e) return !1;
|
|
209
208
|
let t = this.rootStore.poiTypeStore.poiTypes.some((t) => t.name.toLowerCase() === e.toLowerCase());
|
|
210
|
-
return t ||
|
|
209
|
+
return t || o.warn(`POI type not found in data: ${e}`), t;
|
|
211
210
|
});
|
|
212
|
-
e.length > 0 && (t || i.length > 0) ? (
|
|
211
|
+
e.length > 0 && (t || i.length > 0) ? (o.warn("URL contains both categories and POI types. Clearing POI types."), this.currentFilters = {
|
|
213
212
|
categories: e,
|
|
214
213
|
poiType: null,
|
|
215
214
|
poiTypes: [],
|
|
@@ -219,7 +218,7 @@ var y = {
|
|
|
219
218
|
poiType: t,
|
|
220
219
|
poiTypes: i,
|
|
221
220
|
exhibitors: r
|
|
222
|
-
},
|
|
221
|
+
}, o.log("URLFilterManager parsed filters:", {
|
|
223
222
|
categories: e,
|
|
224
223
|
poiType: t,
|
|
225
224
|
poiTypes: n,
|
|
@@ -237,12 +236,12 @@ var y = {
|
|
|
237
236
|
exhibitors: (a = t.exhibitors) != null && a
|
|
238
237
|
};
|
|
239
238
|
}
|
|
240
|
-
let o = new URLSearchParams(window.location.search), s = o.get(
|
|
239
|
+
let o = new URLSearchParams(window.location.search), s = o.get(v.CATEGORIES), c = s ? Le(s) : [], l = o.get(v.POI_TYPE), u = l ? xe(l) : null, d = o.get(v.POI_TYPES), ee = d ? Le(d) : [], te = o.get(v.EXHIBITORS);
|
|
241
240
|
return {
|
|
242
241
|
categories: c,
|
|
243
242
|
poiType: u,
|
|
244
|
-
poiTypes:
|
|
245
|
-
exhibitors:
|
|
243
|
+
poiTypes: ee,
|
|
244
|
+
exhibitors: te === "true" || te === ""
|
|
246
245
|
};
|
|
247
246
|
}
|
|
248
247
|
applyFiltersToStore() {
|
|
@@ -252,45 +251,45 @@ var y = {
|
|
|
252
251
|
n.length > 0 ? (e.selectedCategoryFilters = n, t.state.selectedItems = n.map((e) => ({
|
|
253
252
|
id: e.id,
|
|
254
253
|
name: e.name
|
|
255
|
-
})), e.categoryFilterOpen = !0,
|
|
254
|
+
})), e.categoryFilterOpen = !0, o.log("URLFilterManager applied categories:", n.map((e) => e.name)), setTimeout(() => {
|
|
256
255
|
this.focusOnFilteredBooths(), this.rootStore.searchStore.setFocused(!0);
|
|
257
|
-
}, 100)) :
|
|
256
|
+
}, 100)) : o.warn("URLFilterManager: no categories found for names:", this.currentFilters.categories);
|
|
258
257
|
}
|
|
259
258
|
if (this.currentFilters.poiType) {
|
|
260
259
|
let t = this.rootStore.poiTypeStore.poiTypes.find((e) => e.name.toLowerCase() === this.currentFilters.poiType.toLowerCase());
|
|
261
|
-
t ? (e.selectedPoiTypeFilters = [t], n.setPoiFilterId(`${
|
|
260
|
+
t ? (e.selectedPoiTypeFilters = [t], n.setPoiFilterId(`${h.POI_TYPE}${t.id}`), o.log("URLFilterManager applied POI type:", t.name), setTimeout(() => {
|
|
262
261
|
this.focusOnFilteredBooths(), this.rootStore.searchStore.setFocused(!0);
|
|
263
|
-
}, 100)) :
|
|
262
|
+
}, 100)) : o.warn("URLFilterManager: no POI type found for name:", this.currentFilters.poiType);
|
|
264
263
|
}
|
|
265
264
|
if (this.currentFilters.poiTypes.length > 0) {
|
|
266
265
|
let t = this.currentFilters.poiTypes.map((e) => e ? this.rootStore.poiTypeStore.poiTypes.find((t) => t.name.toLowerCase() === e.toLowerCase()) : null).filter((e) => e != null);
|
|
267
|
-
t.length > 0 ? (e.selectedPoiTypeFilters = t,
|
|
266
|
+
t.length > 0 ? (e.selectedPoiTypeFilters = t, o.log("URLFilterManager applied POI types:", t.map((e) => e.name)), setTimeout(() => {
|
|
268
267
|
this.focusOnFilteredBooths(), this.rootStore.searchStore.setFocused(!0);
|
|
269
|
-
}, 100)) : (
|
|
268
|
+
}, 100)) : (o.warn("URLFilterManager: no POI types found for names:", this.currentFilters.poiTypes), this.currentFilters.poiTypes = []);
|
|
270
269
|
}
|
|
271
270
|
this.currentFilters.exhibitors && this.openExhibitorsList();
|
|
272
271
|
}
|
|
273
272
|
filterSearch() {
|
|
274
273
|
let { uiState: e } = this.rootStore, t = new URLSearchParams();
|
|
275
274
|
if (e.selectedCategoryFilters.length > 0) {
|
|
276
|
-
let n =
|
|
277
|
-
n && t.set(
|
|
275
|
+
let n = we(e.selectedCategoryFilters.map((e) => e.name.toLowerCase()));
|
|
276
|
+
n && t.set(v.CATEGORIES, n);
|
|
278
277
|
}
|
|
279
278
|
if (e.selectedPoiTypeFilters.length > 0 && e.selectedCategoryFilters.length === 0) if (e.selectedPoiTypeFilters.length === 1) {
|
|
280
279
|
let n = e.selectedPoiTypeFilters[0].name.toLowerCase();
|
|
281
280
|
if (n) {
|
|
282
|
-
let e =
|
|
283
|
-
e && t.set(
|
|
281
|
+
let e = he(n);
|
|
282
|
+
e && t.set(v.POI_TYPE, e);
|
|
284
283
|
}
|
|
285
284
|
} else {
|
|
286
|
-
let n =
|
|
287
|
-
n && t.set(
|
|
285
|
+
let n = we(e.selectedPoiTypeFilters.map((e) => e.name.toLowerCase()));
|
|
286
|
+
n && t.set(v.POI_TYPES, n);
|
|
288
287
|
}
|
|
289
|
-
return this.currentFilters.exhibitors && e.selectedCategoryFilters.length === 0 && e.selectedPoiTypeFilters.length === 0 && t.set(
|
|
288
|
+
return this.currentFilters.exhibitors && e.selectedCategoryFilters.length === 0 && e.selectedPoiTypeFilters.length === 0 && t.set(v.EXHIBITORS, "true"), t.toString() ? `?${t.toString()}` : "";
|
|
290
289
|
}
|
|
291
290
|
updateURLFromFilters() {
|
|
292
291
|
let { uiState: e } = this.rootStore;
|
|
293
|
-
|
|
292
|
+
We(this.filterSearch()), this.currentFilters = {
|
|
294
293
|
categories: e.selectedCategoryFilters.length > 0 ? e.selectedCategoryFilters.map((e) => e.name) : [],
|
|
295
294
|
poiType: e.selectedPoiTypeFilters.length === 1 && e.selectedCategoryFilters.length === 0 ? e.selectedPoiTypeFilters[0].name : null,
|
|
296
295
|
poiTypes: e.selectedPoiTypeFilters.length > 1 && e.selectedCategoryFilters.length === 0 ? e.selectedPoiTypeFilters.map((e) => e.name) : [],
|
|
@@ -298,13 +297,13 @@ var y = {
|
|
|
298
297
|
};
|
|
299
298
|
}
|
|
300
299
|
setCategories(e) {
|
|
301
|
-
this.currentFilters.categories =
|
|
300
|
+
this.currentFilters.categories = ye(e), this.currentFilters.poiType = null, this.isInitialized && this.updateURLFromFilters();
|
|
302
301
|
}
|
|
303
302
|
setPoiType(e) {
|
|
304
|
-
this.currentFilters.poiType =
|
|
303
|
+
this.currentFilters.poiType = Se(e), this.currentFilters.poiTypes = [], this.currentFilters.categories = [], this.isInitialized && this.updateURLFromFilters();
|
|
305
304
|
}
|
|
306
305
|
setPoiTypes(e) {
|
|
307
|
-
this.currentFilters.poiTypes =
|
|
306
|
+
this.currentFilters.poiTypes = ye(e), this.currentFilters.poiType = null, this.currentFilters.categories = [], this.isInitialized && this.updateURLFromFilters();
|
|
308
307
|
}
|
|
309
308
|
clearAllFilters() {
|
|
310
309
|
this.currentFilters = {
|
|
@@ -320,27 +319,27 @@ var y = {
|
|
|
320
319
|
return { ...this.currentFilters };
|
|
321
320
|
}
|
|
322
321
|
setupReactions() {
|
|
323
|
-
|
|
322
|
+
ke(() => this.rootStore.uiState.selectedCategoryFilters, (e) => {
|
|
324
323
|
if (this.isInitialized && e.length > 0) {
|
|
325
|
-
let t =
|
|
324
|
+
let t = ye(e.map((e) => e.name));
|
|
326
325
|
this.setCategories(t);
|
|
327
326
|
}
|
|
328
|
-
}),
|
|
327
|
+
}), ke(() => this.rootStore.uiState.selectedPoiTypeFilters, (e) => {
|
|
329
328
|
if (this.isInitialized && e.length > 0) if (e.length === 1) {
|
|
330
|
-
let t =
|
|
329
|
+
let t = Se(e[0].name);
|
|
331
330
|
t && this.setPoiType(t);
|
|
332
331
|
} else {
|
|
333
|
-
let t =
|
|
332
|
+
let t = ye(e.map((e) => e.name));
|
|
334
333
|
this.setPoiTypes(t);
|
|
335
334
|
}
|
|
336
335
|
});
|
|
337
336
|
}
|
|
338
337
|
validateFilters(e) {
|
|
339
|
-
if (e.categories.length > 0 && (e.poiType || e.poiTypes.length > 0)) return
|
|
340
|
-
if (e.poiType && e.poiTypes.length > 0) return
|
|
341
|
-
for (let t of e.categories) if (!this.getCategoryIdByName(t)) return
|
|
342
|
-
if (e.poiType && !this.getPoiTypeIdByName(e.poiType)) return
|
|
343
|
-
for (let t of e.poiTypes) if (!this.getPoiTypeIdByName(t)) return
|
|
338
|
+
if (e.categories.length > 0 && (e.poiType || e.poiTypes.length > 0)) return o.warn("Categories and POI types cannot be active simultaneously"), !1;
|
|
339
|
+
if (e.poiType && e.poiTypes.length > 0) return o.warn("Both single POI type and multiple POI types cannot be active simultaneously"), !1;
|
|
340
|
+
for (let t of e.categories) if (!this.getCategoryIdByName(t)) return o.warn(`Category not found: ${t}`), !1;
|
|
341
|
+
if (e.poiType && !this.getPoiTypeIdByName(e.poiType)) return o.warn(`POI type not found: ${e.poiType}`), !1;
|
|
342
|
+
for (let t of e.poiTypes) if (!this.getPoiTypeIdByName(t)) return o.warn(`POI type not found: ${t}`), !1;
|
|
344
343
|
return !0;
|
|
345
344
|
}
|
|
346
345
|
getCategoryIdByName(e) {
|
|
@@ -353,7 +352,7 @@ var y = {
|
|
|
353
352
|
}
|
|
354
353
|
focusOnFilteredBooths() {
|
|
355
354
|
if (!this.rootStore.layerStore.layersLoaded) {
|
|
356
|
-
|
|
355
|
+
ke(() => this.rootStore.layerStore.layersLoaded, () => {
|
|
357
356
|
this.focusOnFilteredBooths();
|
|
358
357
|
}, { fireImmediately: !1 });
|
|
359
358
|
return;
|
|
@@ -381,9 +380,9 @@ var y = {
|
|
|
381
380
|
focused: !1
|
|
382
381
|
}, setTimeout(() => {
|
|
383
382
|
this.rootStore.searchStore.setFocused(!0);
|
|
384
|
-
}, 100),
|
|
383
|
+
}, 100), o.log("URLFilterManager opened exhibitors list");
|
|
385
384
|
}
|
|
386
|
-
},
|
|
385
|
+
}, ft = _(g.prototype, "currentFilters", [c], {
|
|
387
386
|
configurable: !0,
|
|
388
387
|
enumerable: !0,
|
|
389
388
|
writable: !0,
|
|
@@ -395,15 +394,15 @@ var y = {
|
|
|
395
394
|
exhibitors: !1
|
|
396
395
|
};
|
|
397
396
|
}
|
|
398
|
-
}),
|
|
397
|
+
}), pt = _(g.prototype, "isInitialized", [c], {
|
|
399
398
|
configurable: !0,
|
|
400
399
|
enumerable: !0,
|
|
401
400
|
writable: !0,
|
|
402
401
|
initializer: function() {
|
|
403
402
|
return !1;
|
|
404
403
|
}
|
|
405
|
-
}),
|
|
406
|
-
function
|
|
404
|
+
}), _(g.prototype, "initialize", [u], Object.getOwnPropertyDescriptor(g.prototype, "initialize"), g.prototype), _(g.prototype, "parseURLFilters", [u], Object.getOwnPropertyDescriptor(g.prototype, "parseURLFilters"), g.prototype), _(g.prototype, "applyFiltersToStore", [u], Object.getOwnPropertyDescriptor(g.prototype, "applyFiltersToStore"), g.prototype), _(g.prototype, "updateURLFromFilters", [u], Object.getOwnPropertyDescriptor(g.prototype, "updateURLFromFilters"), g.prototype), _(g.prototype, "setCategories", [u], Object.getOwnPropertyDescriptor(g.prototype, "setCategories"), g.prototype), _(g.prototype, "setPoiType", [u], Object.getOwnPropertyDescriptor(g.prototype, "setPoiType"), g.prototype), _(g.prototype, "setPoiTypes", [u], Object.getOwnPropertyDescriptor(g.prototype, "setPoiTypes"), g.prototype), _(g.prototype, "clearAllFilters", [u], Object.getOwnPropertyDescriptor(g.prototype, "clearAllFilters"), g.prototype), _(g.prototype, "focusOnFilteredBooths", [u], Object.getOwnPropertyDescriptor(g.prototype, "focusOnFilteredBooths"), g.prototype), _(g.prototype, "openExhibitorsList", [u], Object.getOwnPropertyDescriptor(g.prototype, "openExhibitorsList"), g.prototype), g), y;
|
|
405
|
+
function gt(e, t, n, r, i) {
|
|
407
406
|
var a = {};
|
|
408
407
|
return Object.keys(r).forEach(function(e) {
|
|
409
408
|
a[e] = r[e];
|
|
@@ -411,7 +410,7 @@ function wt(e, t, n, r, i) {
|
|
|
411
410
|
return r(e, t, n) || n;
|
|
412
411
|
}, a), i && a.initializer !== void 0 && (a.value = a.initializer ? a.initializer.call(i) : void 0, a.initializer = void 0), a.initializer === void 0 ? (Object.defineProperty(e, t, a), null) : a;
|
|
413
412
|
}
|
|
414
|
-
var
|
|
413
|
+
var _t = (y = class {
|
|
415
414
|
constructor(e) {
|
|
416
415
|
this.rootStore = void 0, this.rootStore = e;
|
|
417
416
|
}
|
|
@@ -424,8 +423,8 @@ var Tt = (b = class {
|
|
|
424
423
|
get hasRoutableBookmarks() {
|
|
425
424
|
return this.rootStore.exhibitorStore.bookmarked.length > 0 || this.bookmarkedBooths.length > 0;
|
|
426
425
|
}
|
|
427
|
-
},
|
|
428
|
-
function
|
|
426
|
+
}, gt(y.prototype, "bookmarkedBooths", [s], Object.getOwnPropertyDescriptor(y.prototype, "bookmarkedBooths"), y.prototype), gt(y.prototype, "total", [s], Object.getOwnPropertyDescriptor(y.prototype, "total"), y.prototype), gt(y.prototype, "hasRoutableBookmarks", [s], Object.getOwnPropertyDescriptor(y.prototype, "hasRoutableBookmarks"), y.prototype), y), b, vt;
|
|
427
|
+
function yt(e, t, n, r) {
|
|
429
428
|
n && Object.defineProperty(e, t, {
|
|
430
429
|
enumerable: n.enumerable,
|
|
431
430
|
configurable: n.configurable,
|
|
@@ -433,7 +432,7 @@ function Dt(e, t, n, r) {
|
|
|
433
432
|
value: n.initializer ? n.initializer.call(r) : void 0
|
|
434
433
|
});
|
|
435
434
|
}
|
|
436
|
-
function
|
|
435
|
+
function x(e, t, n, r, i) {
|
|
437
436
|
var a = {};
|
|
438
437
|
return Object.keys(r).forEach(function(e) {
|
|
439
438
|
a[e] = r[e];
|
|
@@ -441,12 +440,12 @@ function S(e, t, n, r, i) {
|
|
|
441
440
|
return r(e, t, n) || n;
|
|
442
441
|
}, a), i && a.initializer !== void 0 && (a.value = a.initializer ? a.initializer.call(i) : void 0, a.initializer = void 0), a.initializer === void 0 ? (Object.defineProperty(e, t, a), null) : a;
|
|
443
442
|
}
|
|
444
|
-
var
|
|
443
|
+
var bt = (b = class {
|
|
445
444
|
get publicRootStore() {
|
|
446
445
|
return this.rootStore;
|
|
447
446
|
}
|
|
448
447
|
constructor(e) {
|
|
449
|
-
this.rootStore = void 0,
|
|
448
|
+
this.rootStore = void 0, yt(this, "state", vt, this), this.rootStore = e;
|
|
450
449
|
}
|
|
451
450
|
openFilter() {
|
|
452
451
|
this.state.isOpen = !0, this.state.pendingItems = [...this.state.selectedItems];
|
|
@@ -466,7 +465,7 @@ var Ot = (x = class {
|
|
|
466
465
|
setPendingItems(e) {
|
|
467
466
|
this.state.pendingItems = e;
|
|
468
467
|
}
|
|
469
|
-
},
|
|
468
|
+
}, vt = x(b.prototype, "state", [c], {
|
|
470
469
|
configurable: !0,
|
|
471
470
|
enumerable: !0,
|
|
472
471
|
writable: !0,
|
|
@@ -477,8 +476,8 @@ var Ot = (x = class {
|
|
|
477
476
|
pendingItems: []
|
|
478
477
|
};
|
|
479
478
|
}
|
|
480
|
-
}),
|
|
481
|
-
function
|
|
479
|
+
}), x(b.prototype, "openFilter", [u], Object.getOwnPropertyDescriptor(b.prototype, "openFilter"), b.prototype), x(b.prototype, "closeFilter", [u], Object.getOwnPropertyDescriptor(b.prototype, "closeFilter"), b.prototype), x(b.prototype, "applyFilter", [u], Object.getOwnPropertyDescriptor(b.prototype, "applyFilter"), b.prototype), x(b.prototype, "resetFilter", [u], Object.getOwnPropertyDescriptor(b.prototype, "resetFilter"), b.prototype), x(b.prototype, "clearPendingItems", [u], Object.getOwnPropertyDescriptor(b.prototype, "clearPendingItems"), b.prototype), x(b.prototype, "setPendingItems", [u], Object.getOwnPropertyDescriptor(b.prototype, "setPendingItems"), b.prototype), b), S;
|
|
480
|
+
function xt(e, t, n, r, i) {
|
|
482
481
|
var a = {};
|
|
483
482
|
return Object.keys(r).forEach(function(e) {
|
|
484
483
|
a[e] = r[e];
|
|
@@ -486,7 +485,7 @@ function kt(e, t, n, r, i) {
|
|
|
486
485
|
return r(e, t, n) || n;
|
|
487
486
|
}, a), i && a.initializer !== void 0 && (a.value = a.initializer ? a.initializer.call(i) : void 0, a.initializer = void 0), a.initializer === void 0 ? (Object.defineProperty(e, t, a), null) : a;
|
|
488
487
|
}
|
|
489
|
-
var
|
|
488
|
+
var St = (S = class extends bt {
|
|
490
489
|
get filteredExhibitors() {
|
|
491
490
|
return this.state.selectedItems.length === 0 ? this.rootStore.exhibitorStore.exhibitors : this.rootStore.exhibitorStore.exhibitors.filter((e) => this.state.selectedItems.some((t) => e.categories.some((e) => e.id === t.id)));
|
|
492
491
|
}
|
|
@@ -522,8 +521,8 @@ var At = (C = class extends Ot {
|
|
|
522
521
|
focused: !1
|
|
523
522
|
}, this.rootStore.urlFilterManager.setCategories([]);
|
|
524
523
|
}
|
|
525
|
-
},
|
|
526
|
-
function
|
|
524
|
+
}, xt(S.prototype, "filteredExhibitors", [s], Object.getOwnPropertyDescriptor(S.prototype, "filteredExhibitors"), S.prototype), xt(S.prototype, "filteredBooths", [s], Object.getOwnPropertyDescriptor(S.prototype, "filteredBooths"), S.prototype), xt(S.prototype, "resetFilter", [u], Object.getOwnPropertyDescriptor(S.prototype, "resetFilter"), S.prototype), S), Ct, wt;
|
|
525
|
+
function Tt(e, t, n, r) {
|
|
527
526
|
n && Object.defineProperty(e, t, {
|
|
528
527
|
enumerable: n.enumerable,
|
|
529
528
|
configurable: n.configurable,
|
|
@@ -531,7 +530,7 @@ function Nt(e, t, n, r) {
|
|
|
531
530
|
value: n.initializer ? n.initializer.call(r) : void 0
|
|
532
531
|
});
|
|
533
532
|
}
|
|
534
|
-
function
|
|
533
|
+
function Et(e, t, n, r, i) {
|
|
535
534
|
var a = {};
|
|
536
535
|
return Object.keys(r).forEach(function(e) {
|
|
537
536
|
a[e] = r[e];
|
|
@@ -539,9 +538,9 @@ function Pt(e, t, n, r, i) {
|
|
|
539
538
|
return r(e, t, n) || n;
|
|
540
539
|
}, a), i && a.initializer !== void 0 && (a.value = a.initializer ? a.initializer.call(i) : void 0, a.initializer = void 0), a.initializer === void 0 ? (Object.defineProperty(e, t, a), null) : a;
|
|
541
540
|
}
|
|
542
|
-
var
|
|
541
|
+
var Dt = (Ct = class {
|
|
543
542
|
constructor(e) {
|
|
544
|
-
this.keys = e,
|
|
543
|
+
this.keys = e, Tt(this, "engine", wt, this), this.enginePromise = null, this.lastCollection = null;
|
|
545
544
|
}
|
|
546
545
|
loadEngine() {
|
|
547
546
|
return this.enginePromise || (this.enginePromise = this.buildEngine()), this.enginePromise;
|
|
@@ -549,7 +548,7 @@ var Ft = (jt = class {
|
|
|
549
548
|
async buildEngine() {
|
|
550
549
|
try {
|
|
551
550
|
let { default: e } = await import("./fuse-B7V1lkoA.js").then((e) => e.n);
|
|
552
|
-
|
|
551
|
+
d(() => {
|
|
553
552
|
this.engine = new e([], {
|
|
554
553
|
keys: this.keys,
|
|
555
554
|
ignoreFieldNorm: !0,
|
|
@@ -565,13 +564,13 @@ var Ft = (jt = class {
|
|
|
565
564
|
search(e, t) {
|
|
566
565
|
return !this.engine || !(e != null && e.length) || !t ? [] : (this.lastCollection !== e && (this.engine.setCollection(e), this.lastCollection = e), this.engine.search(t));
|
|
567
566
|
}
|
|
568
|
-
},
|
|
567
|
+
}, wt = Et(Ct.prototype, "engine", [c], {
|
|
569
568
|
configurable: !0,
|
|
570
569
|
enumerable: !0,
|
|
571
570
|
writable: !0,
|
|
572
571
|
initializer: null
|
|
573
|
-
}),
|
|
574
|
-
function
|
|
572
|
+
}), Ct), C, Ot, kt;
|
|
573
|
+
function At(e, t, n, r) {
|
|
575
574
|
n && Object.defineProperty(e, t, {
|
|
576
575
|
enumerable: n.enumerable,
|
|
577
576
|
configurable: n.configurable,
|
|
@@ -579,7 +578,7 @@ function Rt(e, t, n, r) {
|
|
|
579
578
|
value: n.initializer ? n.initializer.call(r) : void 0
|
|
580
579
|
});
|
|
581
580
|
}
|
|
582
|
-
function
|
|
581
|
+
function jt(e, t, n, r, i) {
|
|
583
582
|
var a = {};
|
|
584
583
|
return Object.keys(r).forEach(function(e) {
|
|
585
584
|
a[e] = r[e];
|
|
@@ -587,9 +586,9 @@ function zt(e, t, n, r, i) {
|
|
|
587
586
|
return r(e, t, n) || n;
|
|
588
587
|
}, a), i && a.initializer !== void 0 && (a.value = a.initializer ? a.initializer.call(i) : void 0, a.initializer = void 0), a.initializer === void 0 ? (Object.defineProperty(e, t, a), null) : a;
|
|
589
588
|
}
|
|
590
|
-
var
|
|
589
|
+
var Mt = (C = class {
|
|
591
590
|
constructor() {
|
|
592
|
-
|
|
591
|
+
At(this, "enabled", Ot, this), At(this, "unreadCount", kt, this);
|
|
593
592
|
}
|
|
594
593
|
setEnabled(e) {
|
|
595
594
|
this.enabled = e;
|
|
@@ -597,22 +596,22 @@ var Bt = (w = class {
|
|
|
597
596
|
setUnreadCount(e) {
|
|
598
597
|
this.unreadCount = e;
|
|
599
598
|
}
|
|
600
|
-
},
|
|
599
|
+
}, Ot = jt(C.prototype, "enabled", [c], {
|
|
601
600
|
configurable: !0,
|
|
602
601
|
enumerable: !0,
|
|
603
602
|
writable: !0,
|
|
604
603
|
initializer: function() {
|
|
605
604
|
return !1;
|
|
606
605
|
}
|
|
607
|
-
}),
|
|
606
|
+
}), kt = jt(C.prototype, "unreadCount", [c], {
|
|
608
607
|
configurable: !0,
|
|
609
608
|
enumerable: !0,
|
|
610
609
|
writable: !0,
|
|
611
610
|
initializer: function() {
|
|
612
611
|
return 0;
|
|
613
612
|
}
|
|
614
|
-
}),
|
|
615
|
-
function
|
|
613
|
+
}), jt(C.prototype, "setEnabled", [u], Object.getOwnPropertyDescriptor(C.prototype, "setEnabled"), C.prototype), jt(C.prototype, "setUnreadCount", [u], Object.getOwnPropertyDescriptor(C.prototype, "setUnreadCount"), C.prototype), C), Nt, Pt, Ft, It, Lt, w, Rt, zt, Bt;
|
|
614
|
+
function Vt(e, t, n, r) {
|
|
616
615
|
n && Object.defineProperty(e, t, {
|
|
617
616
|
enumerable: n.enumerable,
|
|
618
617
|
configurable: n.configurable,
|
|
@@ -620,7 +619,7 @@ function Yt(e, t, n, r) {
|
|
|
620
619
|
value: n.initializer ? n.initializer.call(r) : void 0
|
|
621
620
|
});
|
|
622
621
|
}
|
|
623
|
-
function
|
|
622
|
+
function T(e, t, n, r, i) {
|
|
624
623
|
var a = {};
|
|
625
624
|
return Object.keys(r).forEach(function(e) {
|
|
626
625
|
a[e] = r[e];
|
|
@@ -628,16 +627,16 @@ function E(e, t, n, r, i) {
|
|
|
628
627
|
return r(e, t, n) || n;
|
|
629
628
|
}, a), i && a.initializer !== void 0 && (a.value = a.initializer ? a.initializer.call(i) : void 0, a.initializer = void 0), a.initializer === void 0 ? (Object.defineProperty(e, t, a), null) : a;
|
|
630
629
|
}
|
|
631
|
-
var
|
|
632
|
-
function
|
|
630
|
+
var Ht = !0;
|
|
631
|
+
function Ut() {
|
|
633
632
|
return typeof window > "u" || window.navigator.onLine;
|
|
634
633
|
}
|
|
635
|
-
function
|
|
634
|
+
function Wt(e, t) {
|
|
636
635
|
t ? e.venueStore.applyInitialVisibility() : e.venueStore.applyFallbackVisibility();
|
|
637
636
|
}
|
|
638
|
-
var
|
|
637
|
+
var Gt = (Nt = s({ keepAlive: !0 }), Pt = s({ keepAlive: !0 }), Ft = s({ keepAlive: !0 }), It = s({ keepAlive: !0 }), Lt = s({ keepAlive: !0 }), w = class {
|
|
639
638
|
constructor(e) {
|
|
640
|
-
this.rootStore = void 0,
|
|
639
|
+
this.rootStore = void 0, Vt(this, "mapViewMode", Rt, this), Vt(this, "maplibreSelected", zt, this), Vt(this, "isOnline", Bt, this), this.cameraPortBox = c.box(null, { deep: !1 }), this.handleOnline = () => this.setOnline(!0), this.handleOffline = () => this.setOnline(!1), this.disposeMultiVenueSync = void 0, this.rootStore = e, this.mapViewMode = this.getInitialViewMode(), this.maplibreSelected = this.mapViewMode !== "floorplan", this.disposeMultiVenueSync = l(() => this.showMaplibre, (e) => Wt(this.rootStore, e)), typeof window < "u" && (window.addEventListener("online", this.handleOnline), window.addEventListener("offline", this.handleOffline));
|
|
641
640
|
}
|
|
642
641
|
dispose() {
|
|
643
642
|
this.disposeMultiVenueSync(), !(typeof window > "u") && (window.removeEventListener("online", this.handleOnline), window.removeEventListener("offline", this.handleOffline));
|
|
@@ -655,22 +654,22 @@ var $t = (Vt = l({ keepAlive: !0 }), Ht = l({ keepAlive: !0 }), Ut = l({ keepAli
|
|
|
655
654
|
this.cameraPortBox.get() === e && this.cameraPortBox.set(null);
|
|
656
655
|
}
|
|
657
656
|
activateMaplibre() {
|
|
658
|
-
this.maplibreEnabled && (this.mapViewMode =
|
|
657
|
+
this.maplibreEnabled && (this.mapViewMode = p.allow3dView && this.mapViewMode !== "map3d" ? "map3d" : "map2d", this.maplibreSelected = !0);
|
|
659
658
|
}
|
|
660
659
|
deactivateMaplibre() {
|
|
661
660
|
this.mapViewMode = "floorplan", this.maplibreSelected = !1;
|
|
662
661
|
}
|
|
663
662
|
get hideModeSwitchButton() {
|
|
664
|
-
return !this.maplibreEnabled || !
|
|
663
|
+
return !this.maplibreEnabled || !p.allow3dView || Ht;
|
|
665
664
|
}
|
|
666
665
|
get maplibreEnabled() {
|
|
667
666
|
var e, t, n;
|
|
668
667
|
let r = (e = (t = this.rootStore.fp) == null ? void 0 : t.maplibre) == null ? window.__efpMaplibre : e, i = !!(r != null && r.offline) && (!!r.style || !!r.styleUrl);
|
|
669
|
-
return this.useMaplibreMap && !!(!((n =
|
|
668
|
+
return this.useMaplibreMap && !!(!((n = Ve()) == null || (n = n.properties) == null) && n.config) && (this.isOnline || i);
|
|
670
669
|
}
|
|
671
670
|
get useMaplibreMap() {
|
|
672
671
|
var e, t;
|
|
673
|
-
return (e =
|
|
672
|
+
return (e = p.enableExperimentalMaplibre) == null ? ((t = Ve()) == null || (t = t.properties) == null || (t = t.config) == null ? void 0 : t.type) === "maplibre" : e;
|
|
674
673
|
}
|
|
675
674
|
get showMaplibre() {
|
|
676
675
|
return this.maplibreEnabled && (this.mapViewMode === "map2d" || this.mapViewMode === "map3d");
|
|
@@ -681,29 +680,29 @@ var $t = (Vt = l({ keepAlive: !0 }), Ht = l({ keepAlive: !0 }), Ut = l({ keepAli
|
|
|
681
680
|
getInitialViewMode() {
|
|
682
681
|
return this.maplibreEnabled ? this.rootStore.uiState.is3DView ? "map3d" : "map2d" : "floorplan";
|
|
683
682
|
}
|
|
684
|
-
},
|
|
683
|
+
}, Rt = T(w.prototype, "mapViewMode", [c], {
|
|
685
684
|
configurable: !0,
|
|
686
685
|
enumerable: !0,
|
|
687
686
|
writable: !0,
|
|
688
687
|
initializer: function() {
|
|
689
688
|
return "floorplan";
|
|
690
689
|
}
|
|
691
|
-
}),
|
|
690
|
+
}), zt = T(w.prototype, "maplibreSelected", [c], {
|
|
692
691
|
configurable: !0,
|
|
693
692
|
enumerable: !0,
|
|
694
693
|
writable: !0,
|
|
695
694
|
initializer: function() {
|
|
696
695
|
return !1;
|
|
697
696
|
}
|
|
698
|
-
}),
|
|
697
|
+
}), Bt = T(w.prototype, "isOnline", [c], {
|
|
699
698
|
configurable: !0,
|
|
700
699
|
enumerable: !0,
|
|
701
700
|
writable: !0,
|
|
702
701
|
initializer: function() {
|
|
703
|
-
return
|
|
702
|
+
return Ut();
|
|
704
703
|
}
|
|
705
|
-
}),
|
|
706
|
-
function
|
|
704
|
+
}), T(w.prototype, "setOnline", [u], Object.getOwnPropertyDescriptor(w.prototype, "setOnline"), w.prototype), T(w.prototype, "setCameraPort", [u], Object.getOwnPropertyDescriptor(w.prototype, "setCameraPort"), w.prototype), T(w.prototype, "clearCameraPortIfCurrent", [u], Object.getOwnPropertyDescriptor(w.prototype, "clearCameraPortIfCurrent"), w.prototype), T(w.prototype, "activateMaplibre", [u], Object.getOwnPropertyDescriptor(w.prototype, "activateMaplibre"), w.prototype), T(w.prototype, "deactivateMaplibre", [u], Object.getOwnPropertyDescriptor(w.prototype, "deactivateMaplibre"), w.prototype), T(w.prototype, "hideModeSwitchButton", [Nt], Object.getOwnPropertyDescriptor(w.prototype, "hideModeSwitchButton"), w.prototype), T(w.prototype, "maplibreEnabled", [Pt], Object.getOwnPropertyDescriptor(w.prototype, "maplibreEnabled"), w.prototype), T(w.prototype, "useMaplibreMap", [Ft], Object.getOwnPropertyDescriptor(w.prototype, "useMaplibreMap"), w.prototype), T(w.prototype, "showMaplibre", [It], Object.getOwnPropertyDescriptor(w.prototype, "showMaplibre"), w.prototype), T(w.prototype, "isMap3d", [Lt], Object.getOwnPropertyDescriptor(w.prototype, "isMap3d"), w.prototype), w), E;
|
|
705
|
+
function Kt(e, t, n, r, i) {
|
|
707
706
|
var a = {};
|
|
708
707
|
return Object.keys(r).forEach(function(e) {
|
|
709
708
|
a[e] = r[e];
|
|
@@ -711,7 +710,7 @@ function en(e, t, n, r, i) {
|
|
|
711
710
|
return r(e, t, n) || n;
|
|
712
711
|
}, a), i && a.initializer !== void 0 && (a.value = a.initializer ? a.initializer.call(i) : void 0, a.initializer = void 0), a.initializer === void 0 ? (Object.defineProperty(e, t, a), null) : a;
|
|
713
712
|
}
|
|
714
|
-
var
|
|
713
|
+
var qt = (E = class {
|
|
715
714
|
constructor(e) {
|
|
716
715
|
this.rootStore = e;
|
|
717
716
|
}
|
|
@@ -724,24 +723,24 @@ var tn = (D = class {
|
|
|
724
723
|
}
|
|
725
724
|
get isSearchListOpen() {
|
|
726
725
|
let { list: e } = this.ui;
|
|
727
|
-
return e.type === "search" ||
|
|
726
|
+
return e.type === "search" || p.isRebooking && e.type === "exhibitors";
|
|
728
727
|
}
|
|
729
728
|
get mediumSizeMultiplier() {
|
|
730
729
|
return this.isRouteActive ? 7 : this.ui.details ? 3 : this.isSearchListOpen ? 9 : 3;
|
|
731
730
|
}
|
|
732
731
|
get fullSizeOffset() {
|
|
733
732
|
let e = this.ui, t = e.wsShown ? 54 : 0, n = e.bannerType === "free" && !e.freeBannerDismissed ? 40 : 0;
|
|
734
|
-
if (e.details && !(e.details instanceof
|
|
733
|
+
if (e.details && !(e.details instanceof Je)) return t + n + 20;
|
|
735
734
|
let r = e.shouldShowSearchButtons ? 54 : 0;
|
|
736
735
|
return t + n + 54 + 20 + r;
|
|
737
736
|
}
|
|
738
|
-
},
|
|
737
|
+
}, Kt(E.prototype, "mediumSizeMultiplier", [s], Object.getOwnPropertyDescriptor(E.prototype, "mediumSizeMultiplier"), E.prototype), Kt(E.prototype, "fullSizeOffset", [s], Object.getOwnPropertyDescriptor(E.prototype, "fullSizeOffset"), E.prototype), E), Jt = {
|
|
739
738
|
active: !1,
|
|
740
739
|
key: "",
|
|
741
740
|
matchingMarkers: []
|
|
742
741
|
};
|
|
743
|
-
function
|
|
744
|
-
if (!e.length || t) return
|
|
742
|
+
function Yt(e, t, n, r) {
|
|
743
|
+
if (!e.length || t) return Jt;
|
|
745
744
|
let i = new Set(e), a = new Map(r.map((e) => [e.boothId, e])), o = [];
|
|
746
745
|
for (let e of n) {
|
|
747
746
|
if (e.poiTypeId == null || !i.has(e.poiTypeId)) continue;
|
|
@@ -752,12 +751,12 @@ function rn(e, t, n, r) {
|
|
|
752
751
|
active: !0,
|
|
753
752
|
key: [...new Set(o.map((e) => e.boothId))].sort((e, t) => e - t).join(","),
|
|
754
753
|
matchingMarkers: o
|
|
755
|
-
} :
|
|
754
|
+
} : Jt;
|
|
756
755
|
}
|
|
757
756
|
//#endregion
|
|
758
757
|
//#region src/store/PoiMarkerStore.ts
|
|
759
|
-
var
|
|
760
|
-
function
|
|
758
|
+
var Xt, Zt, Qt, $t, D;
|
|
759
|
+
function O(e, t, n, r, i) {
|
|
761
760
|
var a = {};
|
|
762
761
|
return Object.keys(r).forEach(function(e) {
|
|
763
762
|
a[e] = r[e];
|
|
@@ -765,9 +764,9 @@ function ln(e, t, n, r, i) {
|
|
|
765
764
|
return r(e, t, n) || n;
|
|
766
765
|
}, a), i && a.initializer !== void 0 && (a.value = a.initializer ? a.initializer.call(i) : void 0, a.initializer = void 0), a.initializer === void 0 ? (Object.defineProperty(e, t, a), null) : a;
|
|
767
766
|
}
|
|
768
|
-
var
|
|
767
|
+
var en = (Xt = s({ keepAlive: !0 }), Zt = s({ keepAlive: !0 }), Qt = s({ keepAlive: !0 }), $t = s({ keepAlive: !0 }), D = class {
|
|
769
768
|
constructor(e) {
|
|
770
|
-
this.rootStore = void 0, this.markersBox =
|
|
769
|
+
this.rootStore = void 0, this.markersBox = c.box([], { deep: !1 }), this.generation = 0, this.rootStore = e;
|
|
771
770
|
}
|
|
772
771
|
get markers() {
|
|
773
772
|
return this.markersBox.get();
|
|
@@ -787,24 +786,24 @@ var un = (an = l({ keepAlive: !0 }), on = l({ keepAlive: !0 }), sn = l({ keepAli
|
|
|
787
786
|
}
|
|
788
787
|
get outdoorFilter() {
|
|
789
788
|
let { uiState: e, boothStore: t } = this.rootStore;
|
|
790
|
-
return
|
|
789
|
+
return Yt(e.selectedPoiTypeFilters.map((e) => e.id), e.selectedCategoryFilters.length > 0, t.booths, this.markers);
|
|
791
790
|
}
|
|
792
791
|
get dimSuppressed() {
|
|
793
792
|
return this.outdoorFilter.active || this.selectionActive;
|
|
794
793
|
}
|
|
795
|
-
},
|
|
794
|
+
}, O(D.prototype, "addMany", [u], Object.getOwnPropertyDescriptor(D.prototype, "addMany"), D.prototype), O(D.prototype, "clear", [u], Object.getOwnPropertyDescriptor(D.prototype, "clear"), D.prototype), O(D.prototype, "selectedMarkerId", [Xt], Object.getOwnPropertyDescriptor(D.prototype, "selectedMarkerId"), D.prototype), O(D.prototype, "selectionActive", [Zt], Object.getOwnPropertyDescriptor(D.prototype, "selectionActive"), D.prototype), O(D.prototype, "outdoorFilter", [Qt], Object.getOwnPropertyDescriptor(D.prototype, "outdoorFilter"), D.prototype), O(D.prototype, "dimSuppressed", [$t], Object.getOwnPropertyDescriptor(D.prototype, "dimSuppressed"), D.prototype), D), tn = class {
|
|
796
795
|
constructor(e) {
|
|
797
796
|
this.rootStore = void 0, this.poiTypes = [], this.rootStore = e;
|
|
798
797
|
}
|
|
799
|
-
},
|
|
798
|
+
}, nn = class {
|
|
800
799
|
constructor() {
|
|
801
800
|
this.id = void 0;
|
|
802
801
|
}
|
|
803
802
|
shouldShowShortcuts() {
|
|
804
803
|
return !0;
|
|
805
804
|
}
|
|
806
|
-
},
|
|
807
|
-
function
|
|
805
|
+
}, rn;
|
|
806
|
+
function an(e, t, n, r, i) {
|
|
808
807
|
var a = {};
|
|
809
808
|
return Object.keys(r).forEach(function(e) {
|
|
810
809
|
a[e] = r[e];
|
|
@@ -812,7 +811,7 @@ function mn(e, t, n, r, i) {
|
|
|
812
811
|
return r(e, t, n) || n;
|
|
813
812
|
}, a), i && a.initializer !== void 0 && (a.value = a.initializer ? a.initializer.call(i) : void 0, a.initializer = void 0), a.initializer === void 0 ? (Object.defineProperty(e, t, a), null) : a;
|
|
814
813
|
}
|
|
815
|
-
var
|
|
814
|
+
var on = (rn = class extends nn {
|
|
816
815
|
constructor(e) {
|
|
817
816
|
super(), this.rootStore = e, this.id = "search";
|
|
818
817
|
}
|
|
@@ -855,8 +854,8 @@ var hn = (pn = class extends fn {
|
|
|
855
854
|
let { searchButtonsStore: e } = this.rootStore;
|
|
856
855
|
e.clearAllChildFilters();
|
|
857
856
|
}
|
|
858
|
-
},
|
|
859
|
-
function
|
|
857
|
+
}, an(rn.prototype, "shortcuts", [s], Object.getOwnPropertyDescriptor(rn.prototype, "shortcuts"), rn.prototype), rn), sn;
|
|
858
|
+
function cn(e, t, n, r, i) {
|
|
860
859
|
var a = {};
|
|
861
860
|
return Object.keys(r).forEach(function(e) {
|
|
862
861
|
a[e] = r[e];
|
|
@@ -864,7 +863,7 @@ function _n(e, t, n, r, i) {
|
|
|
864
863
|
return r(e, t, n) || n;
|
|
865
864
|
}, a), i && a.initializer !== void 0 && (a.value = a.initializer ? a.initializer.call(i) : void 0, a.initializer = void 0), a.initializer === void 0 ? (Object.defineProperty(e, t, a), null) : a;
|
|
866
865
|
}
|
|
867
|
-
var
|
|
866
|
+
var ln = (sn = class extends nn {
|
|
868
867
|
constructor(e) {
|
|
869
868
|
super(), this.rootStore = e, this.id = "sessions";
|
|
870
869
|
}
|
|
@@ -1027,8 +1026,8 @@ var vn = (gn = class extends fn {
|
|
|
1027
1026
|
let { sessionsFilterStore: e } = this.rootStore, t = e.state.filters.sortOrder.value === "asc" ? "desc" : "asc";
|
|
1028
1027
|
e.setPending("sortOrder", t), e.applyFilters();
|
|
1029
1028
|
}
|
|
1030
|
-
},
|
|
1031
|
-
function
|
|
1029
|
+
}, cn(sn.prototype, "computedShortcuts", [s], Object.getOwnPropertyDescriptor(sn.prototype, "computedShortcuts"), sn.prototype), sn), un;
|
|
1030
|
+
function dn(e, t, n, r, i) {
|
|
1032
1031
|
var a = {};
|
|
1033
1032
|
return Object.keys(r).forEach(function(e) {
|
|
1034
1033
|
a[e] = r[e];
|
|
@@ -1036,7 +1035,7 @@ function bn(e, t, n, r, i) {
|
|
|
1036
1035
|
return r(e, t, n) || n;
|
|
1037
1036
|
}, a), i && a.initializer !== void 0 && (a.value = a.initializer ? a.initializer.call(i) : void 0, a.initializer = void 0), a.initializer === void 0 ? (Object.defineProperty(e, t, a), null) : a;
|
|
1038
1037
|
}
|
|
1039
|
-
var
|
|
1038
|
+
var fn = (un = class extends nn {
|
|
1040
1039
|
constructor(e) {
|
|
1041
1040
|
super(), this.rootStore = e, this.id = "speakers";
|
|
1042
1041
|
}
|
|
@@ -1070,8 +1069,8 @@ var xn = (yn = class extends fn {
|
|
|
1070
1069
|
default: console.warn(`Unknown shortcut ID for reset: ${e}`);
|
|
1071
1070
|
}
|
|
1072
1071
|
}
|
|
1073
|
-
},
|
|
1074
|
-
function
|
|
1072
|
+
}, dn(un.prototype, "computedShortcuts", [s], Object.getOwnPropertyDescriptor(un.prototype, "computedShortcuts"), un.prototype), un), k, pn, mn, hn, gn;
|
|
1073
|
+
function _n(e, t, n, r) {
|
|
1075
1074
|
n && Object.defineProperty(e, t, {
|
|
1076
1075
|
enumerable: n.enumerable,
|
|
1077
1076
|
configurable: n.configurable,
|
|
@@ -1087,9 +1086,9 @@ function A(e, t, n, r, i) {
|
|
|
1087
1086
|
return r(e, t, n) || n;
|
|
1088
1087
|
}, a), i && a.initializer !== void 0 && (a.value = a.initializer ? a.initializer.call(i) : void 0, a.initializer = void 0), a.initializer === void 0 ? (Object.defineProperty(e, t, a), null) : a;
|
|
1089
1088
|
}
|
|
1090
|
-
var
|
|
1089
|
+
var vn = (k = class {
|
|
1091
1090
|
constructor(e) {
|
|
1092
|
-
this.rootStore = void 0,
|
|
1091
|
+
this.rootStore = void 0, _n(this, "items", pn, this), _n(this, "startPoint", mn, this), _n(this, "source", hn, this), _n(this, "excludedVisitedCount", gn, this), this.rootStore = e;
|
|
1093
1092
|
}
|
|
1094
1093
|
get resolvedBooths() {
|
|
1095
1094
|
let e = /* @__PURE__ */ new Map();
|
|
@@ -1140,12 +1139,12 @@ var Dn = (k = class {
|
|
|
1140
1139
|
let e = this.rootStore.routeStore.pathLayers;
|
|
1141
1140
|
return e.map((t, n) => {
|
|
1142
1141
|
var r, i, a, o, s, c;
|
|
1143
|
-
let l = e[n + 1], u = (r = (i = t.layer) == null ? void 0 : i.basePriority) == null ? 0 : r,
|
|
1142
|
+
let l = e[n + 1], u = (r = (i = t.layer) == null ? void 0 : i.basePriority) == null ? 0 : r, d = (a = l == null || (o = l.layer) == null ? void 0 : o.basePriority) == null ? 0 : a, ee = l ? d < u ? "up" : "down" : void 0;
|
|
1144
1143
|
return {
|
|
1145
1144
|
id: t.id,
|
|
1146
1145
|
name: (s = t.layer) == null ? void 0 : s.shortName,
|
|
1147
1146
|
description: (c = t.layer) == null ? void 0 : c.description,
|
|
1148
|
-
directionToNext:
|
|
1147
|
+
directionToNext: ee
|
|
1149
1148
|
};
|
|
1150
1149
|
});
|
|
1151
1150
|
}
|
|
@@ -1212,7 +1211,7 @@ var Dn = (k = class {
|
|
|
1212
1211
|
entity: r,
|
|
1213
1212
|
booth: r.booths[0] || null
|
|
1214
1213
|
};
|
|
1215
|
-
let i =
|
|
1214
|
+
let i = Ge(e);
|
|
1216
1215
|
return i ? {
|
|
1217
1216
|
type: "booth",
|
|
1218
1217
|
entity: i,
|
|
@@ -1246,8 +1245,8 @@ var Dn = (k = class {
|
|
|
1246
1245
|
this.rootStore.routeStore.updateRoute([]);
|
|
1247
1246
|
return;
|
|
1248
1247
|
}
|
|
1249
|
-
let c = s[0], l = s[s.length - 1], u = s.slice(1, -1),
|
|
1250
|
-
this.rootStore.routeStore.selectRoute(
|
|
1248
|
+
let c = s[0], l = s[s.length - 1], u = s.slice(1, -1), d = new Je(c, l, u);
|
|
1249
|
+
this.rootStore.routeStore.selectRoute(d, !1), this.rootStore.uiState.setIsMultiPointRoute(u.length > 0);
|
|
1251
1250
|
}
|
|
1252
1251
|
reorderItemsByNames(e) {
|
|
1253
1252
|
let t = this.startPoint ? this.startPoint.name : null, n = /* @__PURE__ */ new Map();
|
|
@@ -1284,35 +1283,35 @@ var Dn = (k = class {
|
|
|
1284
1283
|
focused: !1
|
|
1285
1284
|
}, this.rootStore.routeStore.selectRoute(null, !1);
|
|
1286
1285
|
}
|
|
1287
|
-
},
|
|
1286
|
+
}, pn = A(k.prototype, "items", [c], {
|
|
1288
1287
|
configurable: !0,
|
|
1289
1288
|
enumerable: !0,
|
|
1290
1289
|
writable: !0,
|
|
1291
1290
|
initializer: function() {
|
|
1292
1291
|
return [];
|
|
1293
1292
|
}
|
|
1294
|
-
}),
|
|
1293
|
+
}), mn = A(k.prototype, "startPoint", [c], {
|
|
1295
1294
|
configurable: !0,
|
|
1296
1295
|
enumerable: !0,
|
|
1297
1296
|
writable: !0,
|
|
1298
1297
|
initializer: function() {
|
|
1299
1298
|
return null;
|
|
1300
1299
|
}
|
|
1301
|
-
}),
|
|
1300
|
+
}), hn = A(k.prototype, "source", [c], {
|
|
1302
1301
|
configurable: !0,
|
|
1303
1302
|
enumerable: !0,
|
|
1304
1303
|
writable: !0,
|
|
1305
1304
|
initializer: function() {
|
|
1306
1305
|
return null;
|
|
1307
1306
|
}
|
|
1308
|
-
}),
|
|
1307
|
+
}), gn = A(k.prototype, "excludedVisitedCount", [c], {
|
|
1309
1308
|
configurable: !0,
|
|
1310
1309
|
enumerable: !0,
|
|
1311
1310
|
writable: !0,
|
|
1312
1311
|
initializer: function() {
|
|
1313
1312
|
return 0;
|
|
1314
1313
|
}
|
|
1315
|
-
}), A(k.prototype, "resolvedBooths", [
|
|
1314
|
+
}), A(k.prototype, "resolvedBooths", [s], Object.getOwnPropertyDescriptor(k.prototype, "resolvedBooths"), k.prototype), A(k.prototype, "stopsCount", [s], Object.getOwnPropertyDescriptor(k.prototype, "stopsCount"), k.prototype), A(k.prototype, "startPointBoothOptions", [s], Object.getOwnPropertyDescriptor(k.prototype, "startPointBoothOptions"), k.prototype), A(k.prototype, "startPointAutocompleteOptions", [s], Object.getOwnPropertyDescriptor(k.prototype, "startPointAutocompleteOptions"), k.prototype), A(k.prototype, "title", [s], Object.getOwnPropertyDescriptor(k.prototype, "title"), k.prototype), A(k.prototype, "subtitleParts", [s], Object.getOwnPropertyDescriptor(k.prototype, "subtitleParts"), k.prototype), A(k.prototype, "routeFloors", [s], Object.getOwnPropertyDescriptor(k.prototype, "routeFloors"), k.prototype), A(k.prototype, "currentRouteFloor", [s], Object.getOwnPropertyDescriptor(k.prototype, "currentRouteFloor"), k.prototype), A(k.prototype, "setRouteFloor", [u], Object.getOwnPropertyDescriptor(k.prototype, "setRouteFloor"), k.prototype), A(k.prototype, "launch", [u], Object.getOwnPropertyDescriptor(k.prototype, "launch"), k.prototype), A(k.prototype, "launchFromBookmarks", [u], Object.getOwnPropertyDescriptor(k.prototype, "launchFromBookmarks"), k.prototype), A(k.prototype, "launchFromSlugs", [u], Object.getOwnPropertyDescriptor(k.prototype, "launchFromSlugs"), k.prototype), A(k.prototype, "buildRoute", [u], Object.getOwnPropertyDescriptor(k.prototype, "buildRoute"), k.prototype), A(k.prototype, "setStartPoint", [u], Object.getOwnPropertyDescriptor(k.prototype, "setStartPoint"), k.prototype), A(k.prototype, "removeItem", [u], Object.getOwnPropertyDescriptor(k.prototype, "removeItem"), k.prototype), A(k.prototype, "reorderItems", [u], Object.getOwnPropertyDescriptor(k.prototype, "reorderItems"), k.prototype), A(k.prototype, "close", [u], Object.getOwnPropertyDescriptor(k.prototype, "close"), k.prototype), k), yn = class {
|
|
1316
1315
|
constructor() {
|
|
1317
1316
|
this.id = void 0;
|
|
1318
1317
|
}
|
|
@@ -1320,8 +1319,8 @@ var Dn = (k = class {
|
|
|
1320
1319
|
shouldShowSubButtons() {
|
|
1321
1320
|
return !0;
|
|
1322
1321
|
}
|
|
1323
|
-
},
|
|
1324
|
-
function
|
|
1322
|
+
}, bn;
|
|
1323
|
+
function xn(e, t, n, r, i) {
|
|
1325
1324
|
var a = {};
|
|
1326
1325
|
return Object.keys(r).forEach(function(e) {
|
|
1327
1326
|
a[e] = r[e];
|
|
@@ -1329,7 +1328,7 @@ function An(e, t, n, r, i) {
|
|
|
1329
1328
|
return r(e, t, n) || n;
|
|
1330
1329
|
}, a), i && a.initializer !== void 0 && (a.value = a.initializer ? a.initializer.call(i) : void 0, a.initializer = void 0), a.initializer === void 0 ? (Object.defineProperty(e, t, a), null) : a;
|
|
1331
1330
|
}
|
|
1332
|
-
var
|
|
1331
|
+
var Sn = (bn = class extends yn {
|
|
1333
1332
|
constructor(e) {
|
|
1334
1333
|
super(), this.rootStore = e, this.id = "sessions";
|
|
1335
1334
|
}
|
|
@@ -1376,7 +1375,7 @@ var jn = (kn = class extends On {
|
|
|
1376
1375
|
reportActivation(e) {
|
|
1377
1376
|
if (this.rootStore.searchButtonsStore.activeSubButtonId === e) return;
|
|
1378
1377
|
let t = this.computedSubButtons.find((t) => t.id === e);
|
|
1379
|
-
!t || !t.label ||
|
|
1378
|
+
!t || !t.label || He("sbtnview", t.label, "subbutton");
|
|
1380
1379
|
}
|
|
1381
1380
|
handleSessionsShowAllClick() {
|
|
1382
1381
|
this.reportActivation("sessions_show_all"), this.rootStore.uiState.list = {
|
|
@@ -1392,7 +1391,7 @@ var jn = (kn = class extends On {
|
|
|
1392
1391
|
focused: !1
|
|
1393
1392
|
}, this.rootStore.uiState.selectedTrack = e, this.rootStore.searchButtonsStore.setSubButtonId(`sessions_track_${e.id}`);
|
|
1394
1393
|
}
|
|
1395
|
-
},
|
|
1394
|
+
}, xn(bn.prototype, "computedSubButtons", [s], Object.getOwnPropertyDescriptor(bn.prototype, "computedSubButtons"), bn.prototype), bn), Cn = class {
|
|
1396
1395
|
constructor() {
|
|
1397
1396
|
this.providers = /* @__PURE__ */ new Map(), this.cache = /* @__PURE__ */ new Map();
|
|
1398
1397
|
}
|
|
@@ -1433,24 +1432,24 @@ var jn = (kn = class extends On {
|
|
|
1433
1432
|
};
|
|
1434
1433
|
//#endregion
|
|
1435
1434
|
//#region src/store/search-buttons/utils.ts
|
|
1436
|
-
function
|
|
1435
|
+
function wn(e) {
|
|
1437
1436
|
try {
|
|
1438
|
-
let t = e.replace(
|
|
1437
|
+
let t = e.replace(h.POI_TYPE, ""), n = parseInt(t, 10);
|
|
1439
1438
|
return isNaN(n) ? null : n;
|
|
1440
1439
|
} catch {
|
|
1441
1440
|
return null;
|
|
1442
1441
|
}
|
|
1443
1442
|
}
|
|
1444
1443
|
function j(e) {
|
|
1445
|
-
let t =
|
|
1444
|
+
let t = p.filterButtonsConfig;
|
|
1446
1445
|
return !(t != null && t.searchButtons) || !Array.isArray(t.searchButtons) ? null : t.searchButtons.find((t) => t.id === e) || null;
|
|
1447
1446
|
}
|
|
1448
|
-
function
|
|
1447
|
+
function Tn(e) {
|
|
1449
1448
|
let t = 0;
|
|
1450
1449
|
for (let n of e.values()) t += n;
|
|
1451
1450
|
return t;
|
|
1452
1451
|
}
|
|
1453
|
-
function
|
|
1452
|
+
function En(e) {
|
|
1454
1453
|
return e && typeof e == "object" && Array.isArray(e.searchButtons) && e.searchButtons.length > 0;
|
|
1455
1454
|
}
|
|
1456
1455
|
//#endregion
|
|
@@ -1464,27 +1463,27 @@ function N(e, t, n, r, i) {
|
|
|
1464
1463
|
return r(e, t, n) || n;
|
|
1465
1464
|
}, a), i && a.initializer !== void 0 && (a.value = a.initializer ? a.initializer.call(i) : void 0, a.initializer = void 0), a.initializer === void 0 ? (Object.defineProperty(e, t, a), null) : a;
|
|
1466
1465
|
}
|
|
1467
|
-
var
|
|
1466
|
+
var Dn = (M = class {
|
|
1468
1467
|
constructor(e, t, n) {
|
|
1469
1468
|
this.rootStore = e, this.state = t, this.filters = n;
|
|
1470
1469
|
}
|
|
1471
1470
|
reportActivation(e) {
|
|
1472
|
-
e &&
|
|
1471
|
+
e && He("sbtnview", e);
|
|
1473
1472
|
}
|
|
1474
1473
|
handleSearchButtonClick(e, t) {
|
|
1475
1474
|
let n = {
|
|
1476
|
-
[
|
|
1477
|
-
[
|
|
1478
|
-
[
|
|
1479
|
-
[
|
|
1480
|
-
[
|
|
1481
|
-
[
|
|
1475
|
+
[m.BOOKMARKS]: () => this.handleBookmarksClick(t),
|
|
1476
|
+
[m.VISITED]: () => this.handleVisitedClick(t),
|
|
1477
|
+
[m.SESSIONS]: () => this.handleSessionsClick(t),
|
|
1478
|
+
[m.TOURS]: () => this.handleToursClick(t),
|
|
1479
|
+
[m.CATEGORIES]: () => this.handleCategoriesClick(t),
|
|
1480
|
+
[m.EXHIBITORS]: () => this.handleExhibitorsClick(t)
|
|
1482
1481
|
}[e];
|
|
1483
1482
|
if (n) {
|
|
1484
1483
|
n();
|
|
1485
1484
|
return;
|
|
1486
1485
|
}
|
|
1487
|
-
e.startsWith(
|
|
1486
|
+
e.startsWith(h.POI_TYPE) && this.handlePoiTypeClick(e, t);
|
|
1488
1487
|
}
|
|
1489
1488
|
handleExtendedSearchButtonClick(e) {
|
|
1490
1489
|
var t;
|
|
@@ -1514,7 +1513,7 @@ var In = (M = class {
|
|
|
1514
1513
|
}, this.state.setSubButton(null), t.selectedTrack = null, this.state.subButtonsEnabled && this.showSubButtons("sessions"), this.isMobile && (t.desiredOverlaySize = "full"));
|
|
1515
1514
|
}
|
|
1516
1515
|
togglePoiType(e) {
|
|
1517
|
-
this.handleSearchButtonClick(`${
|
|
1516
|
+
this.handleSearchButtonClick(`${h.POI_TYPE}${e}`);
|
|
1518
1517
|
}
|
|
1519
1518
|
clearAllFilters() {
|
|
1520
1519
|
this.switchToSearch();
|
|
@@ -1614,7 +1613,7 @@ var In = (M = class {
|
|
|
1614
1613
|
}
|
|
1615
1614
|
setPoiFilterFromString(e) {
|
|
1616
1615
|
this.state.setPoiFilter(e);
|
|
1617
|
-
let t =
|
|
1616
|
+
let t = wn(e);
|
|
1618
1617
|
if (t !== null) {
|
|
1619
1618
|
let e = this.rootStore.poiTypeStore.poiTypes.find((e) => e.id === t);
|
|
1620
1619
|
e && (this.rootStore.uiState.selectedPoiTypeFilters = [e], this.rootStore.urlFilterManager.setPoiType(e.name));
|
|
@@ -1623,18 +1622,18 @@ var In = (M = class {
|
|
|
1623
1622
|
get isMobile() {
|
|
1624
1623
|
return typeof window < "u" && window.innerWidth <= 768;
|
|
1625
1624
|
}
|
|
1626
|
-
}, N(M.prototype, "handleSearchButtonClick", [
|
|
1625
|
+
}, N(M.prototype, "handleSearchButtonClick", [u], Object.getOwnPropertyDescriptor(M.prototype, "handleSearchButtonClick"), M.prototype), N(M.prototype, "handleExtendedSearchButtonClick", [u], Object.getOwnPropertyDescriptor(M.prototype, "handleExtendedSearchButtonClick"), M.prototype), N(M.prototype, "handleMainButtonClick", [u], Object.getOwnPropertyDescriptor(M.prototype, "handleMainButtonClick"), M.prototype), N(M.prototype, "handleSessionsClick", [u], Object.getOwnPropertyDescriptor(M.prototype, "handleSessionsClick"), M.prototype), N(M.prototype, "togglePoiType", [u], Object.getOwnPropertyDescriptor(M.prototype, "togglePoiType"), M.prototype), N(M.prototype, "clearAllFilters", [u], Object.getOwnPropertyDescriptor(M.prototype, "clearAllFilters"), M.prototype), N(M.prototype, "deactivateForNavigation", [u], Object.getOwnPropertyDescriptor(M.prototype, "deactivateForNavigation"), M.prototype), N(M.prototype, "showSubButtons", [u], Object.getOwnPropertyDescriptor(M.prototype, "showSubButtons"), M.prototype), N(M.prototype, "hideSubButtons", [u], Object.getOwnPropertyDescriptor(M.prototype, "hideSubButtons"), M.prototype), N(M.prototype, "handleSubButtonClick", [u], Object.getOwnPropertyDescriptor(M.prototype, "handleSubButtonClick"), M.prototype), M), On = class {
|
|
1627
1626
|
constructor(e, t, n) {
|
|
1628
1627
|
this.rootStore = e, this.state = t, this.actions = n, this.buttonFactories = void 0, this.buttonFactories = {
|
|
1629
|
-
[
|
|
1630
|
-
[
|
|
1631
|
-
[
|
|
1632
|
-
[
|
|
1633
|
-
[
|
|
1634
|
-
[
|
|
1635
|
-
[
|
|
1636
|
-
[
|
|
1637
|
-
[
|
|
1628
|
+
[m.BOOKMARKS]: (e) => this.createBookmarksButton(e),
|
|
1629
|
+
[m.VISITED]: (e) => this.createVisitedButton(e),
|
|
1630
|
+
[m.CATEGORIES]: (e) => this.createCategoriesButton(e),
|
|
1631
|
+
[m.SESSIONS]: (e) => this.createSessionsButton(e),
|
|
1632
|
+
[m.TOURS]: (e) => this.createGuidedToursButton(e),
|
|
1633
|
+
[m.POI_TYPE]: (e) => this.createPoiTypeButton(e),
|
|
1634
|
+
[m.POI_TYPES]: (e) => this.createPoiTypesButton(e),
|
|
1635
|
+
[m.LINK]: (e) => this.createLinkButton(e),
|
|
1636
|
+
[m.EXHIBITORS]: (e) => this.createExhibitorsButton(e)
|
|
1638
1637
|
};
|
|
1639
1638
|
}
|
|
1640
1639
|
createButtons(e) {
|
|
@@ -1660,7 +1659,7 @@ var In = (M = class {
|
|
|
1660
1659
|
isDimmed: !1,
|
|
1661
1660
|
isClickable: !0,
|
|
1662
1661
|
backgroundColor: t ? e.color : void 0,
|
|
1663
|
-
textColor: t && e.color ?
|
|
1662
|
+
textColor: t && e.color ? Xe(e.color) : void 0
|
|
1664
1663
|
};
|
|
1665
1664
|
}
|
|
1666
1665
|
createButtonId(e, t) {
|
|
@@ -1668,24 +1667,24 @@ var In = (M = class {
|
|
|
1668
1667
|
}
|
|
1669
1668
|
createBookmarksButton(e) {
|
|
1670
1669
|
let { uiState: t } = this.rootStore;
|
|
1671
|
-
return t.kiosk || t.disableBookmarked ||
|
|
1670
|
+
return t.kiosk || t.disableBookmarked || p.hideBookmarks ? null : {
|
|
1672
1671
|
...this.createBaseButton(e),
|
|
1673
|
-
id:
|
|
1674
|
-
icon:
|
|
1672
|
+
id: m.BOOKMARKS,
|
|
1673
|
+
icon: dt.BOOKMARKS,
|
|
1675
1674
|
active: t.list.type === "bookmarks",
|
|
1676
1675
|
count: this.countBookmarks(),
|
|
1677
|
-
onClick: () => this.actions.handleSearchButtonClick(
|
|
1676
|
+
onClick: () => this.actions.handleSearchButtonClick(m.BOOKMARKS, e.name)
|
|
1678
1677
|
};
|
|
1679
1678
|
}
|
|
1680
1679
|
createVisitedButton(e) {
|
|
1681
1680
|
let { uiState: t } = this.rootStore;
|
|
1682
1681
|
return t.kiosk ? null : {
|
|
1683
1682
|
...this.createBaseButton(e),
|
|
1684
|
-
id:
|
|
1685
|
-
icon:
|
|
1683
|
+
id: m.VISITED,
|
|
1684
|
+
icon: dt.VISITED,
|
|
1686
1685
|
active: t.list.type === "visited",
|
|
1687
1686
|
count: this.countVisited(),
|
|
1688
|
-
onClick: () => this.actions.handleSearchButtonClick(
|
|
1687
|
+
onClick: () => this.actions.handleSearchButtonClick(m.VISITED, e.name)
|
|
1689
1688
|
};
|
|
1690
1689
|
}
|
|
1691
1690
|
createCategoriesButton(e) {
|
|
@@ -1696,7 +1695,7 @@ var In = (M = class {
|
|
|
1696
1695
|
}
|
|
1697
1696
|
let n = (e.children || []).filter((e) => e.visible);
|
|
1698
1697
|
if (n.length === 0) return null;
|
|
1699
|
-
let r = this.createButtonId(
|
|
1698
|
+
let r = this.createButtonId(h.CATEGORIES, e), i = n.filter((e) => e.type === "categories"), a = this.countCategories(i);
|
|
1700
1699
|
return {
|
|
1701
1700
|
...this.createBaseButton(e),
|
|
1702
1701
|
id: r,
|
|
@@ -1710,19 +1709,19 @@ var In = (M = class {
|
|
|
1710
1709
|
let { uiState: n } = this.rootStore, r = n.selectedCategoryFilters.length > 0 ? n.selectedCategoryFilters.length : t;
|
|
1711
1710
|
return {
|
|
1712
1711
|
...this.createBaseButton(e),
|
|
1713
|
-
id:
|
|
1712
|
+
id: m.CATEGORIES,
|
|
1714
1713
|
active: n.selectedCategoryFilters.length > 0 && !this.state.searchShortcutState.activeParentId,
|
|
1715
1714
|
count: r,
|
|
1716
1715
|
showZeroCount: !0,
|
|
1717
|
-
onClick: () => this.actions.handleSearchButtonClick(
|
|
1716
|
+
onClick: () => this.actions.handleSearchButtonClick(m.CATEGORIES, e.name)
|
|
1718
1717
|
};
|
|
1719
1718
|
}
|
|
1720
1719
|
createSessionsButton(e) {
|
|
1721
1720
|
let { uiState: t } = this.rootStore, n = this.getSessionsTotalCount();
|
|
1722
1721
|
return n === 0 ? null : {
|
|
1723
1722
|
...this.createBaseButton(e),
|
|
1724
|
-
id:
|
|
1725
|
-
icon:
|
|
1723
|
+
id: m.SESSIONS,
|
|
1724
|
+
icon: dt.SESSIONS,
|
|
1726
1725
|
active: t.list.type === "sessions",
|
|
1727
1726
|
count: n,
|
|
1728
1727
|
showZeroCount: !0,
|
|
@@ -1744,7 +1743,7 @@ var In = (M = class {
|
|
|
1744
1743
|
createPoiTypeButton(e) {
|
|
1745
1744
|
let t = this.rootStore.poiTypeStore.poiTypes.find((t) => t.name === e.name);
|
|
1746
1745
|
if (!t) return null;
|
|
1747
|
-
let n = `${
|
|
1746
|
+
let n = `${h.POI_TYPE}${t.id}`, r = this.getPoiTypeTotalCount(t.id);
|
|
1748
1747
|
return r === 0 ? null : {
|
|
1749
1748
|
...this.createBaseButton(e),
|
|
1750
1749
|
id: n,
|
|
@@ -1760,7 +1759,7 @@ var In = (M = class {
|
|
|
1760
1759
|
let n = e.children.filter((e) => e.visible);
|
|
1761
1760
|
if (n.length === 0) return null;
|
|
1762
1761
|
if (this.shouldFlattenToSinglePoiType(n, e)) return this.createPoiTypeButton(e);
|
|
1763
|
-
let r = n.filter((e) => e.type !== "link"), i = this.countPoiTypes(r), a = this.createButtonId(
|
|
1762
|
+
let r = n.filter((e) => e.type !== "link"), i = this.countPoiTypes(r), a = this.createButtonId(h.POI_TYPES, e);
|
|
1764
1763
|
return {
|
|
1765
1764
|
...this.createBaseButton(e),
|
|
1766
1765
|
id: a,
|
|
@@ -1774,7 +1773,7 @@ var In = (M = class {
|
|
|
1774
1773
|
return e.length === 1 && e[0].type === "poi_types" && e[0].name === t.name;
|
|
1775
1774
|
}
|
|
1776
1775
|
createLinkButton(e) {
|
|
1777
|
-
let t = this.createButtonId(
|
|
1776
|
+
let t = this.createButtonId(h.LINK, e);
|
|
1778
1777
|
return {
|
|
1779
1778
|
...this.createBaseButton(e),
|
|
1780
1779
|
id: t,
|
|
@@ -1786,12 +1785,12 @@ var In = (M = class {
|
|
|
1786
1785
|
let { uiState: t } = this.rootStore, n = this.getExhibitorsTotalCount();
|
|
1787
1786
|
return n === 0 ? null : {
|
|
1788
1787
|
...this.createBaseButton(e),
|
|
1789
|
-
id:
|
|
1790
|
-
icon:
|
|
1788
|
+
id: m.EXHIBITORS,
|
|
1789
|
+
icon: dt.EXHIBITORS,
|
|
1791
1790
|
active: t.list.type === "exhibitors",
|
|
1792
1791
|
count: n,
|
|
1793
1792
|
showZeroCount: !0,
|
|
1794
|
-
onClick: () => this.actions.handleSearchButtonClick(
|
|
1793
|
+
onClick: () => this.actions.handleSearchButtonClick(m.EXHIBITORS, e.name)
|
|
1795
1794
|
};
|
|
1796
1795
|
}
|
|
1797
1796
|
countCategories(e) {
|
|
@@ -1839,7 +1838,7 @@ var In = (M = class {
|
|
|
1839
1838
|
return this.rootStore.exhibitorStore.exhibitors.length;
|
|
1840
1839
|
}
|
|
1841
1840
|
}, P;
|
|
1842
|
-
function
|
|
1841
|
+
function F(e, t, n, r, i) {
|
|
1843
1842
|
var a = {};
|
|
1844
1843
|
return Object.keys(r).forEach(function(e) {
|
|
1845
1844
|
a[e] = r[e];
|
|
@@ -1847,7 +1846,7 @@ function Rn(e, t, n, r, i) {
|
|
|
1847
1846
|
return r(e, t, n) || n;
|
|
1848
1847
|
}, a), i && a.initializer !== void 0 && (a.value = a.initializer ? a.initializer.call(i) : void 0, a.initializer = void 0), a.initializer === void 0 ? (Object.defineProperty(e, t, a), null) : a;
|
|
1849
1848
|
}
|
|
1850
|
-
var
|
|
1849
|
+
var kn = (P = class {
|
|
1851
1850
|
constructor(e, t) {
|
|
1852
1851
|
this.rootStore = e, this.state = t;
|
|
1853
1852
|
}
|
|
@@ -1934,8 +1933,8 @@ var zn = (P = class {
|
|
|
1934
1933
|
poiTypes: r
|
|
1935
1934
|
};
|
|
1936
1935
|
}
|
|
1937
|
-
},
|
|
1938
|
-
function
|
|
1936
|
+
}, F(P.prototype, "applyAllChildrenFilters", [u], Object.getOwnPropertyDescriptor(P.prototype, "applyAllChildrenFilters"), P.prototype), F(P.prototype, "applyChildFilters", [u], Object.getOwnPropertyDescriptor(P.prototype, "applyChildFilters"), P.prototype), F(P.prototype, "clearAllChildFilters", [u], Object.getOwnPropertyDescriptor(P.prototype, "clearAllChildFilters"), P.prototype), F(P.prototype, "clearCategoryFilters", [u], Object.getOwnPropertyDescriptor(P.prototype, "clearCategoryFilters"), P.prototype), F(P.prototype, "clearPoiTypeFilters", [u], Object.getOwnPropertyDescriptor(P.prototype, "clearPoiTypeFilters"), P.prototype), F(P.prototype, "toggleChildFilter", [u], Object.getOwnPropertyDescriptor(P.prototype, "toggleChildFilter"), P.prototype), P), I, An, jn, Mn, Nn, Pn, Fn;
|
|
1937
|
+
function L(e, t, n, r) {
|
|
1939
1938
|
n && Object.defineProperty(e, t, {
|
|
1940
1939
|
enumerable: n.enumerable,
|
|
1941
1940
|
configurable: n.configurable,
|
|
@@ -1943,7 +1942,7 @@ function Kn(e, t, n, r) {
|
|
|
1943
1942
|
value: n.initializer ? n.initializer.call(r) : void 0
|
|
1944
1943
|
});
|
|
1945
1944
|
}
|
|
1946
|
-
function
|
|
1945
|
+
function R(e, t, n, r, i) {
|
|
1947
1946
|
var a = {};
|
|
1948
1947
|
return Object.keys(r).forEach(function(e) {
|
|
1949
1948
|
a[e] = r[e];
|
|
@@ -1951,9 +1950,9 @@ function I(e, t, n, r, i) {
|
|
|
1951
1950
|
return r(e, t, n) || n;
|
|
1952
1951
|
}, a), i && a.initializer !== void 0 && (a.value = a.initializer ? a.initializer.call(i) : void 0, a.initializer = void 0), a.initializer === void 0 ? (Object.defineProperty(e, t, a), null) : a;
|
|
1953
1952
|
}
|
|
1954
|
-
var
|
|
1953
|
+
var In = (I = class {
|
|
1955
1954
|
constructor() {
|
|
1956
|
-
|
|
1955
|
+
L(this, "isVisible", An, this), L(this, "activePoiFilterId", jn, this), L(this, "activeSubButtonsParentId", Mn, this), L(this, "activeSubButtonId", Nn, this), L(this, "subButtonsEnabled", Pn, this), L(this, "searchShortcutState", Fn, this);
|
|
1957
1956
|
}
|
|
1958
1957
|
setVisible(e) {
|
|
1959
1958
|
this.isVisible = e;
|
|
@@ -1997,42 +1996,42 @@ var qn = (F = class {
|
|
|
1997
1996
|
isChildActive(e) {
|
|
1998
1997
|
return this.searchShortcutState.activeChildren.has(e);
|
|
1999
1998
|
}
|
|
2000
|
-
},
|
|
1999
|
+
}, An = R(I.prototype, "isVisible", [c], {
|
|
2001
2000
|
configurable: !0,
|
|
2002
2001
|
enumerable: !0,
|
|
2003
2002
|
writable: !0,
|
|
2004
2003
|
initializer: function() {
|
|
2005
2004
|
return !0;
|
|
2006
2005
|
}
|
|
2007
|
-
}),
|
|
2006
|
+
}), jn = R(I.prototype, "activePoiFilterId", [c], {
|
|
2008
2007
|
configurable: !0,
|
|
2009
2008
|
enumerable: !0,
|
|
2010
2009
|
writable: !0,
|
|
2011
2010
|
initializer: function() {
|
|
2012
2011
|
return null;
|
|
2013
2012
|
}
|
|
2014
|
-
}),
|
|
2013
|
+
}), Mn = R(I.prototype, "activeSubButtonsParentId", [c], {
|
|
2015
2014
|
configurable: !0,
|
|
2016
2015
|
enumerable: !0,
|
|
2017
2016
|
writable: !0,
|
|
2018
2017
|
initializer: function() {
|
|
2019
2018
|
return null;
|
|
2020
2019
|
}
|
|
2021
|
-
}),
|
|
2020
|
+
}), Nn = R(I.prototype, "activeSubButtonId", [c], {
|
|
2022
2021
|
configurable: !0,
|
|
2023
2022
|
enumerable: !0,
|
|
2024
2023
|
writable: !0,
|
|
2025
2024
|
initializer: function() {
|
|
2026
2025
|
return null;
|
|
2027
2026
|
}
|
|
2028
|
-
}),
|
|
2027
|
+
}), Pn = R(I.prototype, "subButtonsEnabled", [c], {
|
|
2029
2028
|
configurable: !0,
|
|
2030
2029
|
enumerable: !0,
|
|
2031
2030
|
writable: !0,
|
|
2032
2031
|
initializer: function() {
|
|
2033
2032
|
return !1;
|
|
2034
2033
|
}
|
|
2035
|
-
}),
|
|
2034
|
+
}), Fn = R(I.prototype, "searchShortcutState", [c], {
|
|
2036
2035
|
configurable: !0,
|
|
2037
2036
|
enumerable: !0,
|
|
2038
2037
|
writable: !0,
|
|
@@ -2043,8 +2042,8 @@ var qn = (F = class {
|
|
|
2043
2042
|
isShortcutsVisible: !1
|
|
2044
2043
|
};
|
|
2045
2044
|
}
|
|
2046
|
-
}), I
|
|
2047
|
-
function
|
|
2045
|
+
}), R(I.prototype, "setVisible", [u], Object.getOwnPropertyDescriptor(I.prototype, "setVisible"), I.prototype), R(I.prototype, "setSubButtonParent", [u], Object.getOwnPropertyDescriptor(I.prototype, "setSubButtonParent"), I.prototype), R(I.prototype, "setPoiFilter", [u], Object.getOwnPropertyDescriptor(I.prototype, "setPoiFilter"), I.prototype), R(I.prototype, "setSubButton", [u], Object.getOwnPropertyDescriptor(I.prototype, "setSubButton"), I.prototype), R(I.prototype, "setSubButtonsEnabled", [u], Object.getOwnPropertyDescriptor(I.prototype, "setSubButtonsEnabled"), I.prototype), R(I.prototype, "setActiveParentId", [u], Object.getOwnPropertyDescriptor(I.prototype, "setActiveParentId"), I.prototype), R(I.prototype, "showShortcuts", [u], Object.getOwnPropertyDescriptor(I.prototype, "showShortcuts"), I.prototype), R(I.prototype, "clearChildren", [u], Object.getOwnPropertyDescriptor(I.prototype, "clearChildren"), I.prototype), R(I.prototype, "toggleChild", [u], Object.getOwnPropertyDescriptor(I.prototype, "toggleChild"), I.prototype), R(I.prototype, "reset", [u], Object.getOwnPropertyDescriptor(I.prototype, "reset"), I.prototype), R(I.prototype, "hasActiveChildren", [s], Object.getOwnPropertyDescriptor(I.prototype, "hasActiveChildren"), I.prototype), R(I.prototype, "activeChildrenCount", [s], Object.getOwnPropertyDescriptor(I.prototype, "activeChildrenCount"), I.prototype), R(I.prototype, "hasActiveParentWithChildren", [s], Object.getOwnPropertyDescriptor(I.prototype, "hasActiveParentWithChildren"), I.prototype), I), z;
|
|
2046
|
+
function B(e, t, n, r, i) {
|
|
2048
2047
|
var a = {};
|
|
2049
2048
|
return Object.keys(r).forEach(function(e) {
|
|
2050
2049
|
a[e] = r[e];
|
|
@@ -2052,12 +2051,12 @@ function R(e, t, n, r, i) {
|
|
|
2052
2051
|
return r(e, t, n) || n;
|
|
2053
2052
|
}, a), i && a.initializer !== void 0 && (a.value = a.initializer ? a.initializer.call(i) : void 0, a.initializer = void 0), a.initializer === void 0 ? (Object.defineProperty(e, t, a), null) : a;
|
|
2054
2053
|
}
|
|
2055
|
-
var
|
|
2054
|
+
var Ln = (z = class {
|
|
2056
2055
|
constructor(e) {
|
|
2057
|
-
this.rootStore = void 0, this._subButtonRegistry = void 0, this.state = void 0, this.filters = void 0, this.actions = void 0, this.factory = void 0, this.poiTypeCountsCache = /* @__PURE__ */ new Map(), this.keepFiltersOnNextEntry = !1, this.lastPoiTypeCountUpdate = 0, this.rootStore = e, this.state = new
|
|
2056
|
+
this.rootStore = void 0, this._subButtonRegistry = void 0, this.state = void 0, this.filters = void 0, this.actions = void 0, this.factory = void 0, this.poiTypeCountsCache = /* @__PURE__ */ new Map(), this.keepFiltersOnNextEntry = !1, this.lastPoiTypeCountUpdate = 0, this.rootStore = e, this.state = new In(), this.filters = new kn(e, this.state), this.actions = new Dn(e, this.state, this.filters), this.factory = new On(e, this.state, this.actions), this.setupReactions();
|
|
2058
2057
|
}
|
|
2059
2058
|
setupReactions() {
|
|
2060
|
-
|
|
2059
|
+
ke(() => this.rootStore.boothStore.booths.length, () => this.invalidatePoiTypeCounts()), ke(() => this.isNavigationOpen, (e) => {
|
|
2061
2060
|
if (e) {
|
|
2062
2061
|
if (this.keepFiltersOnNextEntry) {
|
|
2063
2062
|
this.keepFiltersOnNextEntry = !1;
|
|
@@ -2075,10 +2074,10 @@ var Jn = (L = class {
|
|
|
2075
2074
|
return e.selectedRoute !== null || e.list.type === "route-planner";
|
|
2076
2075
|
}
|
|
2077
2076
|
get subButtonRegistry() {
|
|
2078
|
-
return this._subButtonRegistry || (this._subButtonRegistry = new
|
|
2077
|
+
return this._subButtonRegistry || (this._subButtonRegistry = new Cn(), this.registerSubButtonProviders()), this._subButtonRegistry;
|
|
2079
2078
|
}
|
|
2080
2079
|
registerSubButtonProviders() {
|
|
2081
|
-
this.subButtonRegistry.register(new
|
|
2080
|
+
this.subButtonRegistry.register(new Sn(this.rootStore));
|
|
2082
2081
|
}
|
|
2083
2082
|
invalidatePoiTypeCounts() {
|
|
2084
2083
|
this.poiTypeCountsCache.clear(), this.lastPoiTypeCountUpdate = 0;
|
|
@@ -2108,8 +2107,8 @@ var Jn = (L = class {
|
|
|
2108
2107
|
return this.state.searchShortcutState;
|
|
2109
2108
|
}
|
|
2110
2109
|
get searchButtons() {
|
|
2111
|
-
let e =
|
|
2112
|
-
if (!
|
|
2110
|
+
let e = p.filterButtonsConfig;
|
|
2111
|
+
if (!En(e)) return console.warn("[SearchButtonsStore] Invalid filterButtonsConfig detected"), [];
|
|
2113
2112
|
let t = e.searchButtons;
|
|
2114
2113
|
return this.factory.createButtons(t);
|
|
2115
2114
|
}
|
|
@@ -2155,11 +2154,11 @@ var Jn = (L = class {
|
|
|
2155
2154
|
}), this.poiTypeCountsCache = t, this.lastPoiTypeCountUpdate = e, t;
|
|
2156
2155
|
}
|
|
2157
2156
|
get totalPoiTypeCount() {
|
|
2158
|
-
return
|
|
2157
|
+
return Tn(this.poiTypeCounts);
|
|
2159
2158
|
}
|
|
2160
2159
|
get activePoiTypeId() {
|
|
2161
2160
|
var e;
|
|
2162
|
-
return (e = this.state.activePoiFilterId) != null && e.startsWith(
|
|
2161
|
+
return (e = this.state.activePoiFilterId) != null && e.startsWith(h.POI_TYPE) ? wn(this.state.activePoiFilterId) : null;
|
|
2163
2162
|
}
|
|
2164
2163
|
handleSearchButtonClick(e, t) {
|
|
2165
2164
|
this.actions.handleSearchButtonClick(e, t);
|
|
@@ -2221,8 +2220,8 @@ var Jn = (L = class {
|
|
|
2221
2220
|
getActiveParent() {
|
|
2222
2221
|
return this.filters.getActiveParent();
|
|
2223
2222
|
}
|
|
2224
|
-
},
|
|
2225
|
-
function
|
|
2223
|
+
}, B(z.prototype, "invalidatePoiTypeCounts", [u], Object.getOwnPropertyDescriptor(z.prototype, "invalidatePoiTypeCounts"), z.prototype), B(z.prototype, "isVisible", [s], Object.getOwnPropertyDescriptor(z.prototype, "isVisible"), z.prototype), B(z.prototype, "shouldShow", [s], Object.getOwnPropertyDescriptor(z.prototype, "shouldShow"), z.prototype), B(z.prototype, "activePoiFilterId", [s], Object.getOwnPropertyDescriptor(z.prototype, "activePoiFilterId"), z.prototype), B(z.prototype, "activeSubButtonsParentId", [s], Object.getOwnPropertyDescriptor(z.prototype, "activeSubButtonsParentId"), z.prototype), B(z.prototype, "activeSubButtonId", [s], Object.getOwnPropertyDescriptor(z.prototype, "activeSubButtonId"), z.prototype), B(z.prototype, "subButtonsEnabled", [s], Object.getOwnPropertyDescriptor(z.prototype, "subButtonsEnabled"), z.prototype), B(z.prototype, "searchShortcutState", [s], Object.getOwnPropertyDescriptor(z.prototype, "searchShortcutState"), z.prototype), B(z.prototype, "searchButtons", [s], Object.getOwnPropertyDescriptor(z.prototype, "searchButtons"), z.prototype), B(z.prototype, "hasAnySearchButtons", [s], Object.getOwnPropertyDescriptor(z.prototype, "hasAnySearchButtons"), z.prototype), B(z.prototype, "hasActiveSearchButton", [s], Object.getOwnPropertyDescriptor(z.prototype, "hasActiveSearchButton"), z.prototype), B(z.prototype, "activeSearchButtonLabel", [s], Object.getOwnPropertyDescriptor(z.prototype, "activeSearchButtonLabel"), z.prototype), B(z.prototype, "activeSubButtons", [s], Object.getOwnPropertyDescriptor(z.prototype, "activeSubButtons"), z.prototype), B(z.prototype, "shouldShowSubButtons", [s], Object.getOwnPropertyDescriptor(z.prototype, "shouldShowSubButtons"), z.prototype), B(z.prototype, "hasActiveParentWithChildren", [s], Object.getOwnPropertyDescriptor(z.prototype, "hasActiveParentWithChildren"), z.prototype), B(z.prototype, "areAllSelected", [s], Object.getOwnPropertyDescriptor(z.prototype, "areAllSelected"), z.prototype), B(z.prototype, "activeChildrenCount", [s], Object.getOwnPropertyDescriptor(z.prototype, "activeChildrenCount"), z.prototype), B(z.prototype, "totalChildrenCount", [s], Object.getOwnPropertyDescriptor(z.prototype, "totalChildrenCount"), z.prototype), B(z.prototype, "poiTypeCounts", [s], Object.getOwnPropertyDescriptor(z.prototype, "poiTypeCounts"), z.prototype), B(z.prototype, "totalPoiTypeCount", [s], Object.getOwnPropertyDescriptor(z.prototype, "totalPoiTypeCount"), z.prototype), B(z.prototype, "activePoiTypeId", [s], Object.getOwnPropertyDescriptor(z.prototype, "activePoiTypeId"), z.prototype), B(z.prototype, "handleSearchButtonClick", [u], Object.getOwnPropertyDescriptor(z.prototype, "handleSearchButtonClick"), z.prototype), B(z.prototype, "handleExtendedSearchButtonClick", [u], Object.getOwnPropertyDescriptor(z.prototype, "handleExtendedSearchButtonClick"), z.prototype), B(z.prototype, "handleMainButtonClick", [u], Object.getOwnPropertyDescriptor(z.prototype, "handleMainButtonClick"), z.prototype), B(z.prototype, "handleSessionsClick", [u], Object.getOwnPropertyDescriptor(z.prototype, "handleSessionsClick"), z.prototype), B(z.prototype, "togglePoiType", [u], Object.getOwnPropertyDescriptor(z.prototype, "togglePoiType"), z.prototype), B(z.prototype, "clearAllFilters", [u], Object.getOwnPropertyDescriptor(z.prototype, "clearAllFilters"), z.prototype), B(z.prototype, "showSubButtons", [u], Object.getOwnPropertyDescriptor(z.prototype, "showSubButtons"), z.prototype), B(z.prototype, "hideSubButtons", [u], Object.getOwnPropertyDescriptor(z.prototype, "hideSubButtons"), z.prototype), B(z.prototype, "handleSubButtonClick", [u], Object.getOwnPropertyDescriptor(z.prototype, "handleSubButtonClick"), z.prototype), B(z.prototype, "toggleChildFilter", [u], Object.getOwnPropertyDescriptor(z.prototype, "toggleChildFilter"), z.prototype), B(z.prototype, "clearPoiTypeFilters", [u], Object.getOwnPropertyDescriptor(z.prototype, "clearPoiTypeFilters"), z.prototype), B(z.prototype, "clearAllChildFilters", [u], Object.getOwnPropertyDescriptor(z.prototype, "clearAllChildFilters"), z.prototype), B(z.prototype, "setActiveParentId", [u], Object.getOwnPropertyDescriptor(z.prototype, "setActiveParentId"), z.prototype), B(z.prototype, "showShortcuts", [u], Object.getOwnPropertyDescriptor(z.prototype, "showShortcuts"), z.prototype), B(z.prototype, "clearChildren", [u], Object.getOwnPropertyDescriptor(z.prototype, "clearChildren"), z.prototype), B(z.prototype, "setSubButtonId", [u], Object.getOwnPropertyDescriptor(z.prototype, "setSubButtonId"), z.prototype), B(z.prototype, "setPoiFilterId", [u], Object.getOwnPropertyDescriptor(z.prototype, "setPoiFilterId"), z.prototype), z), V, Rn, zn, Bn, Vn;
|
|
2224
|
+
function Hn(e, t, n, r) {
|
|
2226
2225
|
n && Object.defineProperty(e, t, {
|
|
2227
2226
|
enumerable: n.enumerable,
|
|
2228
2227
|
configurable: n.configurable,
|
|
@@ -2230,7 +2229,7 @@ function $n(e, t, n, r) {
|
|
|
2230
2229
|
value: n.initializer ? n.initializer.call(r) : void 0
|
|
2231
2230
|
});
|
|
2232
2231
|
}
|
|
2233
|
-
function
|
|
2232
|
+
function H(e, t, n, r, i) {
|
|
2234
2233
|
var a = {};
|
|
2235
2234
|
return Object.keys(r).forEach(function(e) {
|
|
2236
2235
|
a[e] = r[e];
|
|
@@ -2238,7 +2237,7 @@ function B(e, t, n, r, i) {
|
|
|
2238
2237
|
return r(e, t, n) || n;
|
|
2239
2238
|
}, a), i && a.initializer !== void 0 && (a.value = a.initializer ? a.initializer.call(i) : void 0, a.initializer = void 0), a.initializer === void 0 ? (Object.defineProperty(e, t, a), null) : a;
|
|
2240
2239
|
}
|
|
2241
|
-
var
|
|
2240
|
+
var U = class {
|
|
2242
2241
|
static closeDetails(e) {
|
|
2243
2242
|
return e.details ? (e.details = null, !0) : !1;
|
|
2244
2243
|
}
|
|
@@ -2281,14 +2280,14 @@ var V = class {
|
|
|
2281
2280
|
static resetActiveListIndex(e) {
|
|
2282
2281
|
e.activeListIndex = -1;
|
|
2283
2282
|
}
|
|
2284
|
-
},
|
|
2283
|
+
}, Un = 600, Wn = [
|
|
2285
2284
|
"sessions",
|
|
2286
2285
|
"tours",
|
|
2287
2286
|
"speakers",
|
|
2288
2287
|
"exhibitors"
|
|
2289
|
-
],
|
|
2288
|
+
], Gn = (V = class {
|
|
2290
2289
|
constructor(e) {
|
|
2291
|
-
this.rootStore = void 0, this.searchCameraTimer = void 0,
|
|
2290
|
+
this.rootStore = void 0, this.searchCameraTimer = void 0, Hn(this, "searchText", Rn, this), Hn(this, "isFocused", zn, this), Hn(this, "isClearMode", Bn, this), Hn(this, "skipInputFocus", Vn, this), this.rootStore = e;
|
|
2292
2291
|
}
|
|
2293
2292
|
get uiState() {
|
|
2294
2293
|
return this.rootStore.uiState;
|
|
@@ -2319,11 +2318,11 @@ var V = class {
|
|
|
2319
2318
|
return this.searchBoxMode === "search";
|
|
2320
2319
|
}
|
|
2321
2320
|
get shouldShowCloseButton() {
|
|
2322
|
-
let { menu: e, details: t, list: n } = this.uiState, r =
|
|
2321
|
+
let { menu: e, details: t, list: n } = this.uiState, r = p.isRebooking && n.type === "exhibitors";
|
|
2323
2322
|
return !this.shouldShowSearchInput || n.type === "sessions" || n.type === "tours" || n.type === "speakers" || n.type === "exhibitors" && !r || e || t !== null || !!this.searchText || this.isClearMode || this.isFocused;
|
|
2324
2323
|
}
|
|
2325
2324
|
get closeButtonAction() {
|
|
2326
|
-
return !this.shouldShowSearchInput || this.searchBoxMode === "details" || this.uiState.list.type === "sessions" || this.uiState.list.type === "speakers" || this.uiState.list.type === "exhibitors" && !
|
|
2325
|
+
return !this.shouldShowSearchInput || this.searchBoxMode === "details" || this.uiState.list.type === "sessions" || this.uiState.list.type === "speakers" || this.uiState.list.type === "exhibitors" && !p.isRebooking ? "close" : this.searchText ? "clear" : "close";
|
|
2327
2326
|
}
|
|
2328
2327
|
get shouldShowShadow() {
|
|
2329
2328
|
let { menu: e, details: t, list: n } = this.uiState, r = n.type === "search" && !!n.text;
|
|
@@ -2331,11 +2330,11 @@ var V = class {
|
|
|
2331
2330
|
}
|
|
2332
2331
|
get placeholder() {
|
|
2333
2332
|
let { list: e, heatmapYah: t } = this.uiState;
|
|
2334
|
-
return e.type === "sessions" ? i("Search sessions") : e.type === "tours" ? i("Search Guided Tours") : e.type === "exhibitors" ? i("Search exhibitors") : e.type === "speakers" ? i("Search speakers") :
|
|
2333
|
+
return e.type === "sessions" ? i("Search sessions") : e.type === "tours" ? i("Search Guided Tours") : e.type === "exhibitors" ? i("Search exhibitors") : e.type === "speakers" ? i("Search speakers") : Ce.EXPO.startsWith("lenzerheidemotorclassics") ? "SUCHE" : Ce.EXPO.startsWith("jetlag") ? "Search location or artist" : t ? i("Find values greater than") : this.uiState.hasAppliedFilters ? i("Search") : p.searchText || i("Search");
|
|
2335
2334
|
}
|
|
2336
2335
|
get searchBoxClass() {
|
|
2337
2336
|
return {
|
|
2338
|
-
"is-details": this.searchBoxMode === "details" && !(this.uiState.details instanceof
|
|
2337
|
+
"is-details": this.searchBoxMode === "details" && !(this.uiState.details instanceof Je),
|
|
2339
2338
|
"is-interface": this.searchBoxMode === "interface",
|
|
2340
2339
|
"has-shadow": this.shouldShowShadow,
|
|
2341
2340
|
"has-subtitle": !!this.searchBoxConfig.subtitle,
|
|
@@ -2343,7 +2342,7 @@ var V = class {
|
|
|
2343
2342
|
"has-icon": !!this.searchBoxConfig.icon,
|
|
2344
2343
|
"is-overlay-full": this.uiState.isOverlayOpen && this.uiState.overlaySize === "full",
|
|
2345
2344
|
"is-featured-exhibitor": this.uiState.isFeaturedExhibitorActive,
|
|
2346
|
-
"is-route": this.uiState.details instanceof
|
|
2345
|
+
"is-route": this.uiState.details instanceof Je,
|
|
2347
2346
|
"is-guided-tours": this.uiState.isGuidedToursActive,
|
|
2348
2347
|
"is-overlay-scrolled": this.uiState.isOverlayScrolled,
|
|
2349
2348
|
"overlay-pulse": this.uiState.kiosk && this.uiState.inIdle && !this.uiState.setKioskModeEnabled
|
|
@@ -2354,7 +2353,7 @@ var V = class {
|
|
|
2354
2353
|
}
|
|
2355
2354
|
selectSearch(e) {
|
|
2356
2355
|
window.__resett && window.__resett(), this.uiState.details = null;
|
|
2357
|
-
let t =
|
|
2356
|
+
let t = de(e || "", Object.keys(this.uiState.mapSettings).map((e) => `${e}=`));
|
|
2358
2357
|
this.setSearchText(t), this.uiState.activeListIndex = -1;
|
|
2359
2358
|
}
|
|
2360
2359
|
selectSearchAndFocus(e) {
|
|
@@ -2362,8 +2361,8 @@ var V = class {
|
|
|
2362
2361
|
}
|
|
2363
2362
|
setSearchText(e) {
|
|
2364
2363
|
this.searchText = e, clearTimeout(this.searchCameraTimer);
|
|
2365
|
-
let t = !
|
|
2366
|
-
this.uiState.hasAppliedFilters ? this.rootStore.moveToList() : e && t &&
|
|
2364
|
+
let t = !Wn.includes(this.uiState.list.type);
|
|
2365
|
+
this.uiState.hasAppliedFilters ? this.rootStore.moveToList() : e && t && p.searchCameraFollow ? this.searchCameraTimer = setTimeout(() => this.followSearchResults(e), Un) : this.uiState.centerMap = !0, this.uiState.activeListIndex = e ? 0 : -1, this.uiState.list.type !== "sessions" && this.uiState.list.type !== "tours" && this.uiState.list.type !== "speakers" && this.uiState.list.type !== "exhibitors" ? this.uiState.list = {
|
|
2367
2366
|
type: "search",
|
|
2368
2367
|
text: e,
|
|
2369
2368
|
focused: this.isFocused
|
|
@@ -2376,14 +2375,14 @@ var V = class {
|
|
|
2376
2375
|
followSearchResults(e) {
|
|
2377
2376
|
let t = () => this.searchText === e && this.uiState.list.type === "search" && !this.uiState.details;
|
|
2378
2377
|
if (!t()) return;
|
|
2379
|
-
let { venueStore: n } = this.rootStore, r =
|
|
2378
|
+
let { venueStore: n } = this.rootStore, r = se(n, this.uiState.listItems.flatMap((e) => e instanceof Me ? e.booths : e instanceof pe ? [e] : []));
|
|
2380
2379
|
if (!r) return;
|
|
2381
|
-
let i = r.every((e) => e.visible) ? void 0 :
|
|
2380
|
+
let i = r.every((e) => e.visible) ? void 0 : ue(n, r);
|
|
2382
2381
|
if (!i) {
|
|
2383
2382
|
this.rootStore.moveToList(r);
|
|
2384
2383
|
return;
|
|
2385
2384
|
}
|
|
2386
|
-
i.then(
|
|
2385
|
+
i.then(u(() => {
|
|
2387
2386
|
t() && this.rootStore.moveToList(r, !0);
|
|
2388
2387
|
}));
|
|
2389
2388
|
}
|
|
@@ -2393,19 +2392,19 @@ var V = class {
|
|
|
2393
2392
|
handleBackAction() {
|
|
2394
2393
|
let { uiState: e } = this, { list: n } = e;
|
|
2395
2394
|
if (e.desiredOverlaySize = "full", this.backMode === "menu") {
|
|
2396
|
-
this.resetSearchButtonState(),
|
|
2395
|
+
this.resetSearchButtonState(), U.openMenu(e);
|
|
2397
2396
|
return;
|
|
2398
2397
|
}
|
|
2399
2398
|
if (n.type === "route-planner") {
|
|
2400
|
-
this.rootStore.routePlannerStore.close(), this.rootStore.selectBookmarks(),
|
|
2399
|
+
this.rootStore.routePlannerStore.close(), this.rootStore.selectBookmarks(), Be();
|
|
2401
2400
|
return;
|
|
2402
2401
|
}
|
|
2403
2402
|
if (n.type === "multi-point-tour" && !e.details) {
|
|
2404
|
-
|
|
2403
|
+
U.returnToTours(e, !1), this.rootStore.fp.hidePathways();
|
|
2405
2404
|
return;
|
|
2406
2405
|
}
|
|
2407
2406
|
if (e.details) {
|
|
2408
|
-
e.details = null,
|
|
2407
|
+
e.details = null, Be();
|
|
2409
2408
|
return;
|
|
2410
2409
|
}
|
|
2411
2410
|
if (e.menu) {
|
|
@@ -2421,12 +2420,12 @@ var V = class {
|
|
|
2421
2420
|
type: "search",
|
|
2422
2421
|
text: "",
|
|
2423
2422
|
focused: !0
|
|
2424
|
-
}, this.setFocused(!0), this.isClearMode = !0,
|
|
2423
|
+
}, this.setFocused(!0), this.isClearMode = !0, U.closeMenu(e);
|
|
2425
2424
|
return;
|
|
2426
2425
|
}
|
|
2427
2426
|
if (n.type === "sessions" || n.type === "tours" || n.type === "exhibitors") {
|
|
2428
|
-
if (
|
|
2429
|
-
this.clearActiveFilters(),
|
|
2427
|
+
if (U.closeDetails(e)) return;
|
|
2428
|
+
this.clearActiveFilters(), U.returnToSearch(e, !1), this.selectSearchAndFocus();
|
|
2430
2429
|
return;
|
|
2431
2430
|
}
|
|
2432
2431
|
switch (n.type) {
|
|
@@ -2434,38 +2433,38 @@ var V = class {
|
|
|
2434
2433
|
e.details = null;
|
|
2435
2434
|
return;
|
|
2436
2435
|
case "multi-point-tour":
|
|
2437
|
-
this.rootStore.fp.hidePathways(),
|
|
2436
|
+
this.rootStore.fp.hidePathways(), U.closeDetails(e) ? U.returnToTours(e, !1) : Be();
|
|
2438
2437
|
return;
|
|
2439
2438
|
case "category":
|
|
2440
2439
|
this.rootStore.selectCategory(n.category);
|
|
2441
2440
|
return;
|
|
2442
2441
|
case "speakers":
|
|
2443
|
-
if (
|
|
2444
|
-
|
|
2442
|
+
if (U.closeDetails(e)) return;
|
|
2443
|
+
U.returnToSessions(e, !1);
|
|
2445
2444
|
return;
|
|
2446
2445
|
case "bookmarks":
|
|
2447
2446
|
case "visited":
|
|
2448
|
-
if (
|
|
2447
|
+
if (U.closeDetails(e)) return;
|
|
2449
2448
|
this.selectSearchAndFocus();
|
|
2450
2449
|
return;
|
|
2451
2450
|
case t:
|
|
2452
|
-
|
|
2451
|
+
U.returnToSearch(e, !1), U.openMenu(e);
|
|
2453
2452
|
return;
|
|
2454
2453
|
}
|
|
2455
|
-
|
|
2454
|
+
U.closeDetails(e) || U.clearSearchAndFocus(this) || U.openMenu(e);
|
|
2456
2455
|
}
|
|
2457
2456
|
closeSearch() {
|
|
2458
2457
|
let { uiState: e } = this, { list: t } = e;
|
|
2459
2458
|
if (t.type === "route-planner") {
|
|
2460
|
-
this.rootStore.routePlannerStore.close(),
|
|
2459
|
+
this.rootStore.routePlannerStore.close(), U.returnToSearch(e, !1), this.resetSearchBox();
|
|
2461
2460
|
return;
|
|
2462
2461
|
}
|
|
2463
|
-
if (
|
|
2464
|
-
|
|
2462
|
+
if (U.closeDetails(e), U.clearListScroll(e, t.type), U.closeMultiPointTour(e), t.type === "bookmarks") {
|
|
2463
|
+
U.returnToSearch(e, !1), this.resetSearchBox();
|
|
2465
2464
|
return;
|
|
2466
2465
|
}
|
|
2467
2466
|
if (e.selectedCategory) {
|
|
2468
|
-
|
|
2467
|
+
U.returnToSearch(e, !1), this.resetSearchBox();
|
|
2469
2468
|
return;
|
|
2470
2469
|
}
|
|
2471
2470
|
if (t.type === "sessions") {
|
|
@@ -2473,7 +2472,7 @@ var V = class {
|
|
|
2473
2472
|
return;
|
|
2474
2473
|
}
|
|
2475
2474
|
if (t.type === "exhibitors") {
|
|
2476
|
-
if (
|
|
2475
|
+
if (p.isRebooking) {
|
|
2477
2476
|
this.searchBoxMode === "search" && this.searchText ? (this.setSearchText(""), this.isClearMode = !0, this.clearActiveFilters()) : this.resetSearchBox();
|
|
2478
2477
|
return;
|
|
2479
2478
|
}
|
|
@@ -2481,14 +2480,14 @@ var V = class {
|
|
|
2481
2480
|
return;
|
|
2482
2481
|
}
|
|
2483
2482
|
if (e.menu) {
|
|
2484
|
-
|
|
2483
|
+
U.closeMenu(e), this.resetSearchBox();
|
|
2485
2484
|
return;
|
|
2486
2485
|
}
|
|
2487
2486
|
if (this.searchBoxMode === "search" && !e.details && this.searchText) {
|
|
2488
2487
|
this.setSearchText(""), this.isClearMode = !0, this.clearActiveFilters();
|
|
2489
2488
|
return;
|
|
2490
2489
|
}
|
|
2491
|
-
|
|
2490
|
+
U.returnToSearch(e, !1), this.searchText = "", this.resetSearchBox(), e.details = null, this.clearActiveFilters();
|
|
2492
2491
|
}
|
|
2493
2492
|
clearActiveFilters() {
|
|
2494
2493
|
this.rootStore.searchButtonsStore.setPoiFilterId(null), this.rootStore.uiState.selectedPoiTypeFilters = [], this.rootStore.uiState.selectedCategoryFilters = [], this.rootStore.categoryFilterStore.state.selectedItems = [], this.rootStore.categoryFilterStore.state.pendingItems = [], this.rootStore.searchButtonsStore.searchShortcutState.activeParentId = null, this.rootStore.searchButtonsStore.searchShortcutState.activeChildren.clear(), this.rootStore.searchButtonsStore.searchShortcutState.isShortcutsVisible = !1, this.rootStore.urlFilterManager && this.rootStore.urlFilterManager.isInitialized && this.rootStore.urlFilterManager.clearAllFilters();
|
|
@@ -2504,10 +2503,10 @@ var V = class {
|
|
|
2504
2503
|
this.skipInputFocus = !0, this.isFocused = !0, this.isClearMode = !1, this.uiState.searchFocused = !0, this.uiState.searchClearMode = !1, this.uiState.desiredOverlaySize = "full";
|
|
2505
2504
|
}
|
|
2506
2505
|
closeSessions() {
|
|
2507
|
-
this.searchText = "",
|
|
2506
|
+
this.searchText = "", U.returnToSearch(this.uiState, !1), this.uiState.details = null, U.resetActiveListIndex(this.uiState), this.uiState.selectedTrack = null, this.rootStore.searchButtonsStore.setSubButtonId(null), this.rootStore.searchButtonsStore.hideSubButtons();
|
|
2508
2507
|
}
|
|
2509
2508
|
closeExhibitors() {
|
|
2510
|
-
this.searchText = "",
|
|
2509
|
+
this.searchText = "", U.returnToSearch(this.uiState, !1), this.uiState.details = null, U.resetActiveListIndex(this.uiState);
|
|
2511
2510
|
}
|
|
2512
2511
|
resetSearchBox() {
|
|
2513
2512
|
this.setFocused(!1), this.isClearMode = !1, this.syncWithUIState();
|
|
@@ -2526,7 +2525,7 @@ var V = class {
|
|
|
2526
2525
|
return (e === "bookmarks" || e === "visited") && !this.uiState.details && !this.uiState.menu || this.shouldShowSearchInput && !this.searchText ? "menu" : "back";
|
|
2527
2526
|
}
|
|
2528
2527
|
get isMobileDetailsMode() {
|
|
2529
|
-
return window.innerWidth < 768 && this.uiState.details !== null && this.uiState.overlaySize === "full" && !(this.uiState.details instanceof
|
|
2528
|
+
return window.innerWidth < 768 && this.uiState.details !== null && this.uiState.overlaySize === "full" && !(this.uiState.details instanceof Je);
|
|
2530
2529
|
}
|
|
2531
2530
|
get shouldShowTitle() {
|
|
2532
2531
|
return !this.shouldShowSearchInput;
|
|
@@ -2543,36 +2542,36 @@ var V = class {
|
|
|
2543
2542
|
icon: this.searchBoxConfig.icon
|
|
2544
2543
|
};
|
|
2545
2544
|
}
|
|
2546
|
-
},
|
|
2545
|
+
}, Rn = H(V.prototype, "searchText", [c], {
|
|
2547
2546
|
configurable: !0,
|
|
2548
2547
|
enumerable: !0,
|
|
2549
2548
|
writable: !0,
|
|
2550
2549
|
initializer: function() {
|
|
2551
2550
|
return "";
|
|
2552
2551
|
}
|
|
2553
|
-
}),
|
|
2552
|
+
}), zn = H(V.prototype, "isFocused", [c], {
|
|
2554
2553
|
configurable: !0,
|
|
2555
2554
|
enumerable: !0,
|
|
2556
2555
|
writable: !0,
|
|
2557
2556
|
initializer: function() {
|
|
2558
2557
|
return !1;
|
|
2559
2558
|
}
|
|
2560
|
-
}),
|
|
2559
|
+
}), Bn = H(V.prototype, "isClearMode", [c], {
|
|
2561
2560
|
configurable: !0,
|
|
2562
2561
|
enumerable: !0,
|
|
2563
2562
|
writable: !0,
|
|
2564
2563
|
initializer: function() {
|
|
2565
2564
|
return !1;
|
|
2566
2565
|
}
|
|
2567
|
-
}),
|
|
2566
|
+
}), Vn = H(V.prototype, "skipInputFocus", [c], {
|
|
2568
2567
|
configurable: !0,
|
|
2569
2568
|
enumerable: !0,
|
|
2570
2569
|
writable: !0,
|
|
2571
2570
|
initializer: function() {
|
|
2572
2571
|
return !1;
|
|
2573
2572
|
}
|
|
2574
|
-
}),
|
|
2575
|
-
function
|
|
2573
|
+
}), H(V.prototype, "searchBoxConfig", [s], Object.getOwnPropertyDescriptor(V.prototype, "searchBoxConfig"), V.prototype), H(V.prototype, "searchBoxMode", [s], Object.getOwnPropertyDescriptor(V.prototype, "searchBoxMode"), V.prototype), H(V.prototype, "searchBoxTitle", [s], Object.getOwnPropertyDescriptor(V.prototype, "searchBoxTitle"), V.prototype), H(V.prototype, "searchBoxSubtitle", [s], Object.getOwnPropertyDescriptor(V.prototype, "searchBoxSubtitle"), V.prototype), H(V.prototype, "searchBoxBadge", [s], Object.getOwnPropertyDescriptor(V.prototype, "searchBoxBadge"), V.prototype), H(V.prototype, "searchBoxIcon", [s], Object.getOwnPropertyDescriptor(V.prototype, "searchBoxIcon"), V.prototype), H(V.prototype, "searchBoxActions", [s], Object.getOwnPropertyDescriptor(V.prototype, "searchBoxActions"), V.prototype), H(V.prototype, "shouldShowSearchInput", [s], Object.getOwnPropertyDescriptor(V.prototype, "shouldShowSearchInput"), V.prototype), H(V.prototype, "shouldShowCloseButton", [s], Object.getOwnPropertyDescriptor(V.prototype, "shouldShowCloseButton"), V.prototype), H(V.prototype, "closeButtonAction", [s], Object.getOwnPropertyDescriptor(V.prototype, "closeButtonAction"), V.prototype), H(V.prototype, "shouldShowShadow", [s], Object.getOwnPropertyDescriptor(V.prototype, "shouldShowShadow"), V.prototype), H(V.prototype, "placeholder", [s], Object.getOwnPropertyDescriptor(V.prototype, "placeholder"), V.prototype), H(V.prototype, "searchBoxClass", [s], Object.getOwnPropertyDescriptor(V.prototype, "searchBoxClass"), V.prototype), H(V.prototype, "ariaLabel", [s], Object.getOwnPropertyDescriptor(V.prototype, "ariaLabel"), V.prototype), H(V.prototype, "selectSearch", [u], Object.getOwnPropertyDescriptor(V.prototype, "selectSearch"), V.prototype), H(V.prototype, "selectSearchAndFocus", [u], Object.getOwnPropertyDescriptor(V.prototype, "selectSearchAndFocus"), V.prototype), H(V.prototype, "setSearchText", [u], Object.getOwnPropertyDescriptor(V.prototype, "setSearchText"), V.prototype), H(V.prototype, "followSearchResults", [u], Object.getOwnPropertyDescriptor(V.prototype, "followSearchResults"), V.prototype), H(V.prototype, "setFocused", [u], Object.getOwnPropertyDescriptor(V.prototype, "setFocused"), V.prototype), H(V.prototype, "handleBackAction", [u], Object.getOwnPropertyDescriptor(V.prototype, "handleBackAction"), V.prototype), H(V.prototype, "closeSearch", [u], Object.getOwnPropertyDescriptor(V.prototype, "closeSearch"), V.prototype), H(V.prototype, "clearActiveFilters", [u], Object.getOwnPropertyDescriptor(V.prototype, "clearActiveFilters"), V.prototype), H(V.prototype, "resetSearchButtonState", [u], Object.getOwnPropertyDescriptor(V.prototype, "resetSearchButtonState"), V.prototype), H(V.prototype, "handleSearchAction", [u], Object.getOwnPropertyDescriptor(V.prototype, "handleSearchAction"), V.prototype), H(V.prototype, "openOverlayWithoutInputFocus", [u], Object.getOwnPropertyDescriptor(V.prototype, "openOverlayWithoutInputFocus"), V.prototype), H(V.prototype, "closeSessions", [u], Object.getOwnPropertyDescriptor(V.prototype, "closeSessions"), V.prototype), H(V.prototype, "closeExhibitors", [u], Object.getOwnPropertyDescriptor(V.prototype, "closeExhibitors"), V.prototype), H(V.prototype, "resetSearchBox", [u], Object.getOwnPropertyDescriptor(V.prototype, "resetSearchBox"), V.prototype), H(V.prototype, "syncWithUIState", [u], Object.getOwnPropertyDescriptor(V.prototype, "syncWithUIState"), V.prototype), H(V.prototype, "actionButtonIcon", [s], Object.getOwnPropertyDescriptor(V.prototype, "actionButtonIcon"), V.prototype), H(V.prototype, "clearAndSelectSearch", [u], Object.getOwnPropertyDescriptor(V.prototype, "clearAndSelectSearch"), V.prototype), H(V.prototype, "backMode", [s], Object.getOwnPropertyDescriptor(V.prototype, "backMode"), V.prototype), H(V.prototype, "isMobileDetailsMode", [s], Object.getOwnPropertyDescriptor(V.prototype, "isMobileDetailsMode"), V.prototype), H(V.prototype, "shouldShowTitle", [s], Object.getOwnPropertyDescriptor(V.prototype, "shouldShowTitle"), V.prototype), H(V.prototype, "searchState", [s], Object.getOwnPropertyDescriptor(V.prototype, "searchState"), V.prototype), V), W, Kn;
|
|
2574
|
+
function qn(e, t, n, r) {
|
|
2576
2575
|
n && Object.defineProperty(e, t, {
|
|
2577
2576
|
enumerable: n.enumerable,
|
|
2578
2577
|
configurable: n.configurable,
|
|
@@ -2580,7 +2579,7 @@ function ir(e, t, n, r) {
|
|
|
2580
2579
|
value: n.initializer ? n.initializer.call(r) : void 0
|
|
2581
2580
|
});
|
|
2582
2581
|
}
|
|
2583
|
-
function
|
|
2582
|
+
function G(e, t, n, r, i) {
|
|
2584
2583
|
var a = {};
|
|
2585
2584
|
return Object.keys(r).forEach(function(e) {
|
|
2586
2585
|
a[e] = r[e];
|
|
@@ -2588,7 +2587,7 @@ function U(e, t, n, r, i) {
|
|
|
2588
2587
|
return r(e, t, n) || n;
|
|
2589
2588
|
}, a), i && a.initializer !== void 0 && (a.value = a.initializer ? a.initializer.call(i) : void 0, a.initializer = void 0), a.initializer === void 0 ? (Object.defineProperty(e, t, a), null) : a;
|
|
2590
2589
|
}
|
|
2591
|
-
var
|
|
2590
|
+
var K = {
|
|
2592
2591
|
selectedTracks: [],
|
|
2593
2592
|
selectedVenues: [],
|
|
2594
2593
|
selectedSpeakers: [],
|
|
@@ -2598,16 +2597,16 @@ var W = {
|
|
|
2598
2597
|
use24hFormat: !1,
|
|
2599
2598
|
showBookmarksOnly: !1,
|
|
2600
2599
|
showLiveOnly: !1
|
|
2601
|
-
},
|
|
2600
|
+
}, Jn = (W = class extends bt {
|
|
2602
2601
|
constructor(e) {
|
|
2603
|
-
super(e),
|
|
2602
|
+
super(e), qn(this, "state", Kn, this);
|
|
2604
2603
|
}
|
|
2605
2604
|
createInitialFilters() {
|
|
2606
2605
|
let e = {};
|
|
2607
|
-
return Object.keys(
|
|
2606
|
+
return Object.keys(K).forEach((t) => {
|
|
2608
2607
|
e[t] = {
|
|
2609
|
-
value:
|
|
2610
|
-
pending:
|
|
2608
|
+
value: K[t],
|
|
2609
|
+
pending: K[t]
|
|
2611
2610
|
};
|
|
2612
2611
|
}), e;
|
|
2613
2612
|
}
|
|
@@ -2630,8 +2629,8 @@ var W = {
|
|
|
2630
2629
|
}
|
|
2631
2630
|
resetFilters() {
|
|
2632
2631
|
let { filters: e } = this.state;
|
|
2633
|
-
Object.keys(
|
|
2634
|
-
e[t].pending =
|
|
2632
|
+
Object.keys(K).forEach((t) => {
|
|
2633
|
+
e[t].pending = K[t];
|
|
2635
2634
|
}), this.state.pendingItems = [], this.state.searchText = "";
|
|
2636
2635
|
}
|
|
2637
2636
|
resetAndApplyFilters() {
|
|
@@ -2663,8 +2662,8 @@ var W = {
|
|
|
2663
2662
|
}
|
|
2664
2663
|
get activeFiltersCount() {
|
|
2665
2664
|
let { filters: e } = this.state, t = 0;
|
|
2666
|
-
return Object.keys(
|
|
2667
|
-
let r = e[n].value, i =
|
|
2665
|
+
return Object.keys(K).forEach((n) => {
|
|
2666
|
+
let r = e[n].value, i = K[n];
|
|
2668
2667
|
Array.isArray(i) && Array.isArray(r) ? r.length > 0 && t++ : r !== i && t++;
|
|
2669
2668
|
}), t;
|
|
2670
2669
|
}
|
|
@@ -2678,7 +2677,7 @@ var W = {
|
|
|
2678
2677
|
getFilteredItems() {
|
|
2679
2678
|
return [];
|
|
2680
2679
|
}
|
|
2681
|
-
},
|
|
2680
|
+
}, Kn = G(W.prototype, "state", [c], {
|
|
2682
2681
|
configurable: !0,
|
|
2683
2682
|
enumerable: !0,
|
|
2684
2683
|
writable: !0,
|
|
@@ -2700,7 +2699,7 @@ var W = {
|
|
|
2700
2699
|
filters: this.createInitialFilters()
|
|
2701
2700
|
};
|
|
2702
2701
|
}
|
|
2703
|
-
}),
|
|
2702
|
+
}), G(W.prototype, "setSearchText", [u], Object.getOwnPropertyDescriptor(W.prototype, "setSearchText"), W.prototype), G(W.prototype, "setPending", [u], Object.getOwnPropertyDescriptor(W.prototype, "setPending"), W.prototype), G(W.prototype, "applyFilters", [u], Object.getOwnPropertyDescriptor(W.prototype, "applyFilters"), W.prototype), G(W.prototype, "commitFilters", [u], Object.getOwnPropertyDescriptor(W.prototype, "commitFilters"), W.prototype), G(W.prototype, "resetFilters", [u], Object.getOwnPropertyDescriptor(W.prototype, "resetFilters"), W.prototype), G(W.prototype, "resetAndApplyFilters", [u], Object.getOwnPropertyDescriptor(W.prototype, "resetAndApplyFilters"), W.prototype), G(W.prototype, "openFilter", [u], Object.getOwnPropertyDescriptor(W.prototype, "openFilter"), W.prototype), G(W.prototype, "closeFilter", [u], Object.getOwnPropertyDescriptor(W.prototype, "closeFilter"), W.prototype), G(W.prototype, "openFilterWithSections", [u], Object.getOwnPropertyDescriptor(W.prototype, "openFilterWithSections"), W.prototype), G(W.prototype, "activeFiltersCount", [s], Object.getOwnPropertyDescriptor(W.prototype, "activeFiltersCount"), W.prototype), W), Yn = class {
|
|
2704
2703
|
constructor() {
|
|
2705
2704
|
this.providers = /* @__PURE__ */ new Map(), this.activationOrder = /* @__PURE__ */ new Map();
|
|
2706
2705
|
}
|
|
@@ -2740,7 +2739,7 @@ var W = {
|
|
|
2740
2739
|
reportClick(e, t, n) {
|
|
2741
2740
|
if (!e || !(e.action === "custom" || !t && n)) return;
|
|
2742
2741
|
let r = e.label || e.id;
|
|
2743
|
-
r &&
|
|
2742
|
+
r && He("sbtnview", r, "shortcut");
|
|
2744
2743
|
}
|
|
2745
2744
|
isShortcutActive(e, t) {
|
|
2746
2745
|
var n, r;
|
|
@@ -2777,8 +2776,8 @@ var W = {
|
|
|
2777
2776
|
clear() {
|
|
2778
2777
|
this.providers.clear(), this.activationOrder.clear();
|
|
2779
2778
|
}
|
|
2780
|
-
},
|
|
2781
|
-
function
|
|
2779
|
+
}, q, Xn, Zn, J, Qn;
|
|
2780
|
+
function $n(e, t, n, r) {
|
|
2782
2781
|
n && Object.defineProperty(e, t, {
|
|
2783
2782
|
enumerable: n.enumerable,
|
|
2784
2783
|
configurable: n.configurable,
|
|
@@ -2786,7 +2785,7 @@ function ur(e, t, n, r) {
|
|
|
2786
2785
|
value: n.initializer ? n.initializer.call(r) : void 0
|
|
2787
2786
|
});
|
|
2788
2787
|
}
|
|
2789
|
-
function
|
|
2788
|
+
function Y(e, t, n, r, i) {
|
|
2790
2789
|
var a = {};
|
|
2791
2790
|
return Object.keys(r).forEach(function(e) {
|
|
2792
2791
|
a[e] = r[e];
|
|
@@ -2794,9 +2793,9 @@ function q(e, t, n, r, i) {
|
|
|
2794
2793
|
return r(e, t, n) || n;
|
|
2795
2794
|
}, a), i && a.initializer !== void 0 && (a.value = a.initializer ? a.initializer.call(i) : void 0, a.initializer = void 0), a.initializer === void 0 ? (Object.defineProperty(e, t, a), null) : a;
|
|
2796
2795
|
}
|
|
2797
|
-
var
|
|
2796
|
+
var er = (q = class {
|
|
2798
2797
|
constructor(e) {
|
|
2799
|
-
|
|
2798
|
+
$n(this, "value", Xn, this), $n(this, "pending", Zn, this), this.value = e, this.pending = e;
|
|
2800
2799
|
}
|
|
2801
2800
|
setValue(e) {
|
|
2802
2801
|
this.pending = e;
|
|
@@ -2807,19 +2806,19 @@ var dr = (G = class {
|
|
|
2807
2806
|
reset() {
|
|
2808
2807
|
this.pending = this.value;
|
|
2809
2808
|
}
|
|
2810
|
-
},
|
|
2809
|
+
}, Xn = Y(q.prototype, "value", [c], {
|
|
2811
2810
|
configurable: !0,
|
|
2812
2811
|
enumerable: !0,
|
|
2813
2812
|
writable: !0,
|
|
2814
2813
|
initializer: null
|
|
2815
|
-
}),
|
|
2814
|
+
}), Zn = Y(q.prototype, "pending", [c], {
|
|
2816
2815
|
configurable: !0,
|
|
2817
2816
|
enumerable: !0,
|
|
2818
2817
|
writable: !0,
|
|
2819
2818
|
initializer: null
|
|
2820
|
-
}), q
|
|
2819
|
+
}), Y(q.prototype, "setValue", [u], Object.getOwnPropertyDescriptor(q.prototype, "setValue"), q.prototype), Y(q.prototype, "apply", [u], Object.getOwnPropertyDescriptor(q.prototype, "apply"), q.prototype), Y(q.prototype, "reset", [u], Object.getOwnPropertyDescriptor(q.prototype, "reset"), q.prototype), q), tr = (J = class {
|
|
2821
2820
|
constructor(e) {
|
|
2822
|
-
this.rootStore = void 0,
|
|
2821
|
+
this.rootStore = void 0, $n(this, "state", Qn, this), this.rootStore = e;
|
|
2823
2822
|
}
|
|
2824
2823
|
get activeFiltersCount() {
|
|
2825
2824
|
let e = 0, { filters: t } = this.state;
|
|
@@ -2866,7 +2865,7 @@ var dr = (G = class {
|
|
|
2866
2865
|
selectedJobTitles: []
|
|
2867
2866
|
};
|
|
2868
2867
|
}
|
|
2869
|
-
},
|
|
2868
|
+
}, Qn = Y(J.prototype, "state", [c], {
|
|
2870
2869
|
configurable: !0,
|
|
2871
2870
|
enumerable: !0,
|
|
2872
2871
|
writable: !0,
|
|
@@ -2874,13 +2873,13 @@ var dr = (G = class {
|
|
|
2874
2873
|
return {
|
|
2875
2874
|
isOpen: !1,
|
|
2876
2875
|
filters: {
|
|
2877
|
-
selectedCompanies: new
|
|
2878
|
-
selectedJobTitles: new
|
|
2876
|
+
selectedCompanies: new er([]),
|
|
2877
|
+
selectedJobTitles: new er([])
|
|
2879
2878
|
},
|
|
2880
2879
|
visibleSections: ["companies", "jobTitles"]
|
|
2881
2880
|
};
|
|
2882
2881
|
}
|
|
2883
|
-
}),
|
|
2882
|
+
}), Y(J.prototype, "activeFiltersCount", [s], Object.getOwnPropertyDescriptor(J.prototype, "activeFiltersCount"), J.prototype), Y(J.prototype, "applyFilters", [u], Object.getOwnPropertyDescriptor(J.prototype, "applyFilters"), J.prototype), Y(J.prototype, "resetFilters", [u], Object.getOwnPropertyDescriptor(J.prototype, "resetFilters"), J.prototype), Y(J.prototype, "resetAndApplyFilters", [u], Object.getOwnPropertyDescriptor(J.prototype, "resetAndApplyFilters"), J.prototype), Y(J.prototype, "clearAllFilters", [u], Object.getOwnPropertyDescriptor(J.prototype, "clearAllFilters"), J.prototype), Y(J.prototype, "openFilter", [u], Object.getOwnPropertyDescriptor(J.prototype, "openFilter"), J.prototype), Y(J.prototype, "closeFilter", [u], Object.getOwnPropertyDescriptor(J.prototype, "closeFilter"), J.prototype), Y(J.prototype, "openFilterWithSections", [u], Object.getOwnPropertyDescriptor(J.prototype, "openFilterWithSections"), J.prototype), Y(J.prototype, "setPending", [u], Object.getOwnPropertyDescriptor(J.prototype, "setPending"), J.prototype), Y(J.prototype, "toggleCompanyFilter", [u], Object.getOwnPropertyDescriptor(J.prototype, "toggleCompanyFilter"), J.prototype), Y(J.prototype, "toggleJobTitleFilter", [u], Object.getOwnPropertyDescriptor(J.prototype, "toggleJobTitleFilter"), J.prototype), J), nr = {
|
|
2884
2883
|
uitestdemo: [{
|
|
2885
2884
|
id: "connected-business-tour",
|
|
2886
2885
|
layers: [{
|
|
@@ -3275,8 +3274,8 @@ var dr = (G = class {
|
|
|
3275
3274
|
"16529024"
|
|
3276
3275
|
]
|
|
3277
3276
|
}]
|
|
3278
|
-
},
|
|
3279
|
-
function
|
|
3277
|
+
}, X, rr, ir, ar, or;
|
|
3278
|
+
function sr(e, t, n, r) {
|
|
3280
3279
|
n && Object.defineProperty(e, t, {
|
|
3281
3280
|
enumerable: n.enumerable,
|
|
3282
3281
|
configurable: n.configurable,
|
|
@@ -3284,7 +3283,7 @@ function vr(e, t, n, r) {
|
|
|
3284
3283
|
value: n.initializer ? n.initializer.call(r) : void 0
|
|
3285
3284
|
});
|
|
3286
3285
|
}
|
|
3287
|
-
function
|
|
3286
|
+
function Z(e, t, n, r, i) {
|
|
3288
3287
|
var a = {};
|
|
3289
3288
|
return Object.keys(r).forEach(function(e) {
|
|
3290
3289
|
a[e] = r[e];
|
|
@@ -3292,17 +3291,17 @@ function Y(e, t, n, r, i) {
|
|
|
3292
3291
|
return r(e, t, n) || n;
|
|
3293
3292
|
}, a), i && a.initializer !== void 0 && (a.value = a.initializer ? a.initializer.call(i) : void 0, a.initializer = void 0), a.initializer === void 0 ? (Object.defineProperty(e, t, a), null) : a;
|
|
3294
3293
|
}
|
|
3295
|
-
var
|
|
3294
|
+
var cr = 1, lr = (X = class {
|
|
3296
3295
|
constructor(e) {
|
|
3297
|
-
this.rootStore = void 0,
|
|
3296
|
+
this.rootStore = void 0, sr(this, "tours", rr, this), sr(this, "currentExpo", ir, this), sr(this, "hasTours", ar, this), sr(this, "toursLoadError", or, this), this.rootStore = e, this.loadTours();
|
|
3298
3297
|
}
|
|
3299
3298
|
loadTours() {
|
|
3300
3299
|
try {
|
|
3301
|
-
if (this.currentExpo =
|
|
3300
|
+
if (this.currentExpo = Ce.EXPO || "default", this.toursLoadError = null, !this.isValidToursData(nr)) {
|
|
3302
3301
|
this.toursLoadError = "Invalid tours data format", this.resetTours();
|
|
3303
3302
|
return;
|
|
3304
3303
|
}
|
|
3305
|
-
let e =
|
|
3304
|
+
let e = nr[this.currentExpo] || [];
|
|
3306
3305
|
if (!this.validateToursStructure(e)) {
|
|
3307
3306
|
this.toursLoadError = "Invalid tour items structure", this.resetTours();
|
|
3308
3307
|
return;
|
|
@@ -3319,7 +3318,7 @@ var yr = 1, br = (J = class {
|
|
|
3319
3318
|
return typeof e == "object" && !!e && !Array.isArray(e);
|
|
3320
3319
|
}
|
|
3321
3320
|
validateToursStructure(e) {
|
|
3322
|
-
return Array.isArray(e) ? e.every((e) => e && typeof e == "object" && typeof e.id == "string" && Array.isArray(e.layers) && e.layers.length >=
|
|
3321
|
+
return Array.isArray(e) ? e.every((e) => e && typeof e == "object" && typeof e.id == "string" && Array.isArray(e.layers) && e.layers.length >= cr && (e.points === void 0 || Array.isArray(e.points))) : !1;
|
|
3323
3322
|
}
|
|
3324
3323
|
get tourItems() {
|
|
3325
3324
|
return this.tours;
|
|
@@ -3334,7 +3333,7 @@ var yr = 1, br = (J = class {
|
|
|
3334
3333
|
});
|
|
3335
3334
|
}
|
|
3336
3335
|
getToursForExpo(e) {
|
|
3337
|
-
return this.isValidToursData(
|
|
3336
|
+
return this.isValidToursData(nr) && nr[e] || [];
|
|
3338
3337
|
}
|
|
3339
3338
|
get currentTour() {
|
|
3340
3339
|
let { list: e } = this.rootStore.uiState;
|
|
@@ -3366,7 +3365,7 @@ var yr = 1, br = (J = class {
|
|
|
3366
3365
|
}, navigator.userAgent.toLowerCase().indexOf("android") > -1 ? 400 : 50), !0;
|
|
3367
3366
|
}
|
|
3368
3367
|
validateTourForLaunch(e) {
|
|
3369
|
-
return e.layers.length <
|
|
3368
|
+
return e.layers.length < cr ? `Tour must have at least ${cr} layer` : null;
|
|
3370
3369
|
}
|
|
3371
3370
|
stopTour() {
|
|
3372
3371
|
this.rootStore.uiState.setIsMultiPointTour(!1), this.rootStore.uiState.setPathwayOnlyMode(!1);
|
|
@@ -3377,374 +3376,36 @@ var yr = 1, br = (J = class {
|
|
|
3377
3376
|
focused: !1
|
|
3378
3377
|
}), this.rootStore.fp.hidePathways();
|
|
3379
3378
|
}
|
|
3380
|
-
},
|
|
3379
|
+
}, rr = Z(X.prototype, "tours", [c], {
|
|
3381
3380
|
configurable: !0,
|
|
3382
3381
|
enumerable: !0,
|
|
3383
3382
|
writable: !0,
|
|
3384
3383
|
initializer: function() {
|
|
3385
3384
|
return [];
|
|
3386
3385
|
}
|
|
3387
|
-
}),
|
|
3386
|
+
}), ir = Z(X.prototype, "currentExpo", [c], {
|
|
3388
3387
|
configurable: !0,
|
|
3389
3388
|
enumerable: !0,
|
|
3390
3389
|
writable: !0,
|
|
3391
3390
|
initializer: function() {
|
|
3392
3391
|
return "";
|
|
3393
3392
|
}
|
|
3394
|
-
}),
|
|
3393
|
+
}), ar = Z(X.prototype, "hasTours", [c], {
|
|
3395
3394
|
configurable: !0,
|
|
3396
3395
|
enumerable: !0,
|
|
3397
3396
|
writable: !0,
|
|
3398
3397
|
initializer: function() {
|
|
3399
3398
|
return !1;
|
|
3400
3399
|
}
|
|
3401
|
-
}),
|
|
3400
|
+
}), or = Z(X.prototype, "toursLoadError", [c], {
|
|
3402
3401
|
configurable: !0,
|
|
3403
3402
|
enumerable: !0,
|
|
3404
3403
|
writable: !0,
|
|
3405
3404
|
initializer: function() {
|
|
3406
3405
|
return null;
|
|
3407
3406
|
}
|
|
3408
|
-
}),
|
|
3409
|
-
function
|
|
3410
|
-
n && Object.defineProperty(e, t, {
|
|
3411
|
-
enumerable: n.enumerable,
|
|
3412
|
-
configurable: n.configurable,
|
|
3413
|
-
writable: n.writable,
|
|
3414
|
-
value: n.initializer ? n.initializer.call(r) : void 0
|
|
3415
|
-
});
|
|
3416
|
-
}
|
|
3417
|
-
function Z(e, t, n, r, i) {
|
|
3418
|
-
var a = {};
|
|
3419
|
-
return Object.keys(r).forEach(function(e) {
|
|
3420
|
-
a[e] = r[e];
|
|
3421
|
-
}), a.enumerable = !!a.enumerable, a.configurable = !!a.configurable, ("value" in a || a.initializer) && (a.writable = !0), a = n.slice().reverse().reduce(function(n, r) {
|
|
3422
|
-
return r(e, t, n) || n;
|
|
3423
|
-
}, a), i && a.initializer !== void 0 && (a.value = a.initializer ? a.initializer.call(i) : void 0, a.initializer = void 0), a.initializer === void 0 ? (Object.defineProperty(e, t, a), null) : a;
|
|
3424
|
-
}
|
|
3425
|
-
function Br(e) {
|
|
3426
|
-
let { viewbox: t, rect: n } = e;
|
|
3427
|
-
return !t || !n ? t == null ? n : t : t.intersects(n) ? Ve.fromUnion(t, n) : n;
|
|
3428
|
-
}
|
|
3429
|
-
var Vr = class {
|
|
3430
|
-
constructor(e, t, n) {
|
|
3431
|
-
this.id = void 0, this.name = void 0, this.order = void 0, this.contour = void 0, this.markerPoint = void 0, this.bounds = void 0, this.levels = void 0, this.initialLevel = void 0, this.detailMinSizePx = void 0, this.markerMaxSizePx = void 0, this.auxLayers = void 0, this.entrances = void 0, this._activeLevelName = void 0, this._lastUserActivatedLevelName = u.box(null), this._presentationState = u.box(null), this.id = e.id, this.name = e.name, this.order = e.order, this.contour = e.contour, this.markerPoint = e.markerPoint, this.bounds = e.bounds, this.detailMinSizePx = e.detailMinSizePx, this.markerMaxSizePx = e.markerMaxSizePx, this.auxLayers = e.auxLayers.map((e) => ({ ...e })), this.levels = t, this.initialLevel = n, this.entrances = e.entrances.flatMap((e) => {
|
|
3432
|
-
let n = t.find((t) => t.layer.name === e.layer);
|
|
3433
|
-
return n ? [{
|
|
3434
|
-
level: n,
|
|
3435
|
-
point: { ...e.point },
|
|
3436
|
-
name: e.name
|
|
3437
|
-
}] : [];
|
|
3438
|
-
}), this._activeLevelName = u.box(n.layer.name);
|
|
3439
|
-
}
|
|
3440
|
-
get frame() {
|
|
3441
|
-
let e = this.levels.map((e) => Br(e.layer)).filter((e) => !!e);
|
|
3442
|
-
return e.length && Ve.fromUnion(...e) || this.bounds;
|
|
3443
|
-
}
|
|
3444
|
-
get activeLevel() {
|
|
3445
|
-
var e;
|
|
3446
|
-
return (e = this.levels.find((e) => e.layer.name === this._activeLevelName.get())) == null ? this.initialLevel : e;
|
|
3447
|
-
}
|
|
3448
|
-
get lastUserActivatedLevel() {
|
|
3449
|
-
var e;
|
|
3450
|
-
let t = this._lastUserActivatedLevelName.get();
|
|
3451
|
-
return t ? (e = this.levels.find((e) => e.layer.name === t)) == null ? null : e : null;
|
|
3452
|
-
}
|
|
3453
|
-
setActiveLevel(e, t) {
|
|
3454
|
-
this._activeLevelName.set(e.layer.name), t && this._lastUserActivatedLevelName.set(e.layer.name);
|
|
3455
|
-
}
|
|
3456
|
-
get presentationState() {
|
|
3457
|
-
return this._presentationState.get();
|
|
3458
|
-
}
|
|
3459
|
-
set presentationState(e) {
|
|
3460
|
-
this._presentationState.set(e);
|
|
3461
|
-
}
|
|
3462
|
-
get detailVisible() {
|
|
3463
|
-
var e, t;
|
|
3464
|
-
return (e = (t = this._presentationState.get()) == null ? void 0 : t.detailVisible) == null || e;
|
|
3465
|
-
}
|
|
3466
|
-
}, Hr = (xr = l({ keepAlive: !0 }), Sr = l({ keepAlive: !0 }), Cr = l({ keepAlive: !0 }), wr = l({ keepAlive: !0 }), Tr = l({ keepAlive: !0 }), Er = l({ keepAlive: !0 }), Dr = l({ keepAlive: !0 }), Or = l({ keepAlive: !0 }), kr = l({ keepAlive: !0 }), Ar = l({ keepAlive: !0 }), jr = l({ keepAlive: !0 }), Mr = l({ keepAlive: !0 }), X = class {
|
|
3467
|
-
constructor(e) {
|
|
3468
|
-
this.rootStore = void 0, zr(this, "venues", Nr, this), zr(this, "diagnostics", Pr, this), this.campusViewbox = u.box(null, { deep: !1 }), zr(this, "automaticContextVenueId", Fr, this), zr(this, "destinationVenueId", Ir, this), zr(this, "cameraRequest", Lr, this), zr(this, "focusedVenueId", Rr, this), this.levelActivationRequests = /* @__PURE__ */ new Map(), this.cameraIntentId = 0, this.floorActivatedNotifier = Ne(), this.venueActivatedNotifier = fe((e) => this.rootStore.fp.onVenueActivated(ot(e, !0)), 0), this.rootStore = e;
|
|
3469
|
-
}
|
|
3470
|
-
get hasVenueModel() {
|
|
3471
|
-
return this.venues.length > 0;
|
|
3472
|
-
}
|
|
3473
|
-
get isCampusMode() {
|
|
3474
|
-
var e;
|
|
3475
|
-
return this.hasVenueModel && !!((e = this.rootStore) != null && e.maplibreStore.showMaplibre);
|
|
3476
|
-
}
|
|
3477
|
-
get orderedVenues() {
|
|
3478
|
-
return [...this.venues].sort((e, t) => e.order - t.order || rt(e.id, t.id));
|
|
3479
|
-
}
|
|
3480
|
-
get focusedVenue() {
|
|
3481
|
-
var e;
|
|
3482
|
-
return (e = this.venues.find((e) => e.id === this.focusedVenueId)) == null ? null : e;
|
|
3483
|
-
}
|
|
3484
|
-
get defaultVenue() {
|
|
3485
|
-
var e;
|
|
3486
|
-
return (e = this.orderedVenues[0]) == null ? null : e;
|
|
3487
|
-
}
|
|
3488
|
-
get campusBounds() {
|
|
3489
|
-
var e;
|
|
3490
|
-
return this.venues.length ? (e = this.campusViewbox.get()) == null ? Ve.fromUnion(...this.venues.map((e) => e.bounds)) || null : e : null;
|
|
3491
|
-
}
|
|
3492
|
-
get campusBoundsAuthored() {
|
|
3493
|
-
return this.hasVenueModel && this.campusViewbox.get() !== null;
|
|
3494
|
-
}
|
|
3495
|
-
get fallbackVenue() {
|
|
3496
|
-
var e;
|
|
3497
|
-
return (e = this.focusedVenue) == null ? this.defaultVenue : e;
|
|
3498
|
-
}
|
|
3499
|
-
get activeVenue() {
|
|
3500
|
-
return this.isCampusMode ? this.focusedVenue : this.fallbackVenue;
|
|
3501
|
-
}
|
|
3502
|
-
get auxVenuesByLayerName() {
|
|
3503
|
-
let e = /* @__PURE__ */ new Map();
|
|
3504
|
-
for (let t of this.venues) for (let n of t.auxLayers) {
|
|
3505
|
-
let r = e.get(n.layer);
|
|
3506
|
-
r ? r.includes(t) || r.push(t) : e.set(n.layer, [t]);
|
|
3507
|
-
}
|
|
3508
|
-
return e;
|
|
3509
|
-
}
|
|
3510
|
-
get selectorMode() {
|
|
3511
|
-
var e;
|
|
3512
|
-
return (e = this.focusedVenue) != null && e.detailVisible ? "levels" : "venues";
|
|
3513
|
-
}
|
|
3514
|
-
get venuesByLevelLayerName() {
|
|
3515
|
-
let e = /* @__PURE__ */ new Map();
|
|
3516
|
-
for (let t of this.venues) for (let n of t.levels) e.set(n.layer.name, t);
|
|
3517
|
-
return e;
|
|
3518
|
-
}
|
|
3519
|
-
venueOfLayer(e) {
|
|
3520
|
-
var t;
|
|
3521
|
-
let n = typeof e == "string" ? e : e == null ? void 0 : e.name;
|
|
3522
|
-
return n ? (t = this.venuesByLevelLayerName.get(n)) == null ? null : t : null;
|
|
3523
|
-
}
|
|
3524
|
-
findVenue(e) {
|
|
3525
|
-
var t;
|
|
3526
|
-
let n = e.toLowerCase();
|
|
3527
|
-
return (t = this.venues.find((e) => e.id === n)) == null ? null : t;
|
|
3528
|
-
}
|
|
3529
|
-
venueAt(e) {
|
|
3530
|
-
let t = null;
|
|
3531
|
-
for (let n of this.venues) !n.bounds.containsPoint(e) || !Ur(n.contour, e) || (!t || n.bounds.area < t.bounds.area) && (t = n);
|
|
3532
|
-
return t;
|
|
3533
|
-
}
|
|
3534
|
-
init() {
|
|
3535
|
-
let e = this.rootStore.layerStore, t = new Map(e.layers.filter((e) => e && !e.rootParent).map((e) => [e.name, e])), n = new Map(Array.from(t, ([e, t]) => [e, {
|
|
3536
|
-
rect: t.rect,
|
|
3537
|
-
viewbox: t.viewbox
|
|
3538
|
-
}])), r = typeof m == "object" && m && (m.venuesVersion === void 0 || m.venuesVersion === 1) && Array.isArray(m.venues) ? m.venues : [], i = c(), a = nt(m, n, r.map((e) => {
|
|
3539
|
-
let t = new Set(o(e));
|
|
3540
|
-
return i.filter((e) => t.has(e)).map((e) => {
|
|
3541
|
-
try {
|
|
3542
|
-
return {
|
|
3543
|
-
layer: e,
|
|
3544
|
-
extraction: Oe(e)
|
|
3545
|
-
};
|
|
3546
|
-
} catch {
|
|
3547
|
-
return {
|
|
3548
|
-
layer: e,
|
|
3549
|
-
extraction: {
|
|
3550
|
-
ring: null,
|
|
3551
|
-
unusableElementKinds: []
|
|
3552
|
-
}
|
|
3553
|
-
};
|
|
3554
|
-
}
|
|
3555
|
-
});
|
|
3556
|
-
})), s = a.venues;
|
|
3557
|
-
this.diagnostics = a.diagnostics, this.campusViewbox.set(a.campusViewbox), e.setQuarantinedLayerNames(a.quarantinedLayerNames), this.venues = s.map((e) => {
|
|
3558
|
-
var n;
|
|
3559
|
-
let r = e.levels.flatMap((e) => {
|
|
3560
|
-
var n;
|
|
3561
|
-
let r = t.get(e.layer);
|
|
3562
|
-
return r ? [{
|
|
3563
|
-
layer: r,
|
|
3564
|
-
ordinal: e.ordinal,
|
|
3565
|
-
displayName: (n = e.name) == null ? r.description : n,
|
|
3566
|
-
initial: e.initial
|
|
3567
|
-
}] : [];
|
|
3568
|
-
});
|
|
3569
|
-
return new Vr(e, r, (n = r.find((e) => e.initial)) == null ? r[0] : n);
|
|
3570
|
-
}), this.automaticContextVenueId = null, this.destinationVenueId = null, this.focusedVenueId = null, this.cameraRequest = null, this.levelActivationRequests.clear(), this.cameraIntentId++, this.isCampusMode ? this.applyInitialVisibility() : this.hasVenueModel && this.applyFallbackVisibility();
|
|
3571
|
-
}
|
|
3572
|
-
applyInitialVisibility() {
|
|
3573
|
-
if (this.isCampusMode) for (let e of this.venues) {
|
|
3574
|
-
e.presentationState = null;
|
|
3575
|
-
for (let t of e.levels) this.rootStore.layerStore.setLayerVisibility(t.layer, t === e.activeLevel);
|
|
3576
|
-
}
|
|
3577
|
-
}
|
|
3578
|
-
applyFallbackVisibility() {
|
|
3579
|
-
if (!this.hasVenueModel) return;
|
|
3580
|
-
let e = this.fallbackVenue;
|
|
3581
|
-
for (let t of this.venues) for (let n of t.levels) this.rootStore.layerStore.setLayerVisibility(n.layer, t === e && n === t.activeLevel);
|
|
3582
|
-
}
|
|
3583
|
-
setAutomaticContext(e) {
|
|
3584
|
-
var t, n;
|
|
3585
|
-
let r = e === null ? null : typeof e == "string" ? (t = this.venues.find((t) => t.id === e)) == null ? null : t : e;
|
|
3586
|
-
this.automaticContextVenueId = (n = r == null ? void 0 : r.id) == null ? null : n, this.destinationVenueId === null && this.setEffectiveContext(r);
|
|
3587
|
-
}
|
|
3588
|
-
enterVenue(e, { fly: t = !0, level: n } = {}) {
|
|
3589
|
-
var r, i;
|
|
3590
|
-
let a = typeof e == "string" ? this.venues.find((t) => t.id === e) : e;
|
|
3591
|
-
if (!a) return Promise.resolve();
|
|
3592
|
-
let o = this.activeVenue, s = ++this.cameraIntentId;
|
|
3593
|
-
this.cameraRequest = null, this.destinationVenueId = a.id, this.setEffectiveContext(a);
|
|
3594
|
-
let c = this.resolveVenueLevel(a, n), l = (r = (i = c == null ? a.levels.find((e) => e.ordinal === (o == null ? void 0 : o.activeLevel.ordinal)) : c) == null ? a.lastUserActivatedLevel : i) == null ? a.initialLevel : r, u = this.activateLayer(l.layer, {
|
|
3595
|
-
fly: !!c && t,
|
|
3596
|
-
establishDestination: !1,
|
|
3597
|
-
cameraIntentId: s,
|
|
3598
|
-
userActivated: !!c
|
|
3599
|
-
});
|
|
3600
|
-
return c || !t || this.requestVenueCamera(a, l, s), u;
|
|
3601
|
-
}
|
|
3602
|
-
focusVenue(e, t = {}) {
|
|
3603
|
-
return this.enterVenue(e, t);
|
|
3604
|
-
}
|
|
3605
|
-
releaseDestinationOverride() {
|
|
3606
|
-
var e;
|
|
3607
|
-
if (this.destinationVenueId === null) return;
|
|
3608
|
-
this.destinationVenueId = null;
|
|
3609
|
-
let t = (e = this.venues.find((e) => e.id === this.automaticContextVenueId)) == null ? null : e;
|
|
3610
|
-
this.setEffectiveContext(t);
|
|
3611
|
-
}
|
|
3612
|
-
clearCameraRequest(e) {
|
|
3613
|
-
this.cameraRequest === e && (this.cameraRequest = null);
|
|
3614
|
-
}
|
|
3615
|
-
viewAllVenues() {
|
|
3616
|
-
let e = this.campusBounds;
|
|
3617
|
-
if (!e) return;
|
|
3618
|
-
let t = ++this.cameraIntentId;
|
|
3619
|
-
this.rootStore.maplibreStore.showMaplibre ? this.cameraRequest = {
|
|
3620
|
-
kind: "campus",
|
|
3621
|
-
intentId: t,
|
|
3622
|
-
rect: e
|
|
3623
|
-
} : (this.rootStore.uiState.moveToRect = e, this.completeCampusView());
|
|
3624
|
-
}
|
|
3625
|
-
frameActiveVenue() {
|
|
3626
|
-
let e = this.activeVenue;
|
|
3627
|
-
return e ? (this.requestVenueCamera(e, e.activeLevel), !0) : !1;
|
|
3628
|
-
}
|
|
3629
|
-
completeCampusView(e) {
|
|
3630
|
-
e && (e.kind !== "campus" || e.intentId !== this.cameraIntentId) || this.releaseDestinationOverride();
|
|
3631
|
-
}
|
|
3632
|
-
clearFocus() {
|
|
3633
|
-
this.automaticContextVenueId = null, this.destinationVenueId = null, this.setEffectiveContext(null);
|
|
3634
|
-
}
|
|
3635
|
-
activateLayer(e, { fly: t = !0, establishDestination: n = !0, cameraIntentId: r, userActivated: i = !0 } = {}) {
|
|
3636
|
-
let a = this.venueOfLayer(e);
|
|
3637
|
-
if (!a) return Promise.resolve();
|
|
3638
|
-
if (n) return this.enterVenue(a, {
|
|
3639
|
-
fly: t,
|
|
3640
|
-
level: e
|
|
3641
|
-
});
|
|
3642
|
-
let o = a.levels.find((t) => t.layer === e);
|
|
3643
|
-
if (!o) return Promise.resolve();
|
|
3644
|
-
let s = this.nextLevelActivationRequest(a.id), c = r == null ? this.cameraIntentId : r;
|
|
3645
|
-
return this.rootStore.routeStore.currentRouteLayer !== e && (this.rootStore.routeStore.currentRouteLayer = e), a.activeLevel === o && e.visible ? (a.setActiveLevel(o, i), t && this.requestVenueCamera(a, o), Promise.resolve()) : ke(e).then(() => {
|
|
3646
|
-
f(() => {
|
|
3647
|
-
if (s === this.levelActivationRequests.get(a.id)) {
|
|
3648
|
-
for (let e of a.levels) e !== o && e.layer.visible && this.rootStore.layerStore.setLayerVisibility(e.layer, !1);
|
|
3649
|
-
this.rootStore.layerStore.setLayerVisibility(e, !0), a.setActiveLevel(o, i), t && this.destinationVenueId === a.id && c === this.cameraIntentId && this.requestVenueCamera(a, o, c), this.destinationVenueId === a.id && this.notifyFloorActivated(e);
|
|
3650
|
-
}
|
|
3651
|
-
});
|
|
3652
|
-
});
|
|
3653
|
-
}
|
|
3654
|
-
notifyVenueActivated(e) {
|
|
3655
|
-
var t;
|
|
3656
|
-
typeof ((t = this.rootStore.fp) == null ? void 0 : t.onVenueActivated) == "function" && this.venueActivatedNotifier(e);
|
|
3657
|
-
}
|
|
3658
|
-
setEffectiveContext(e) {
|
|
3659
|
-
var t;
|
|
3660
|
-
let n = this.focusedVenueId !== (e == null ? void 0 : e.id);
|
|
3661
|
-
this.focusedVenueId = (t = e == null ? void 0 : e.id) == null ? null : t, n && (this.rootStore.maplibreStore.showMaplibre || this.applyFallbackVisibility(), e && this.notifyVenueActivated(e));
|
|
3662
|
-
}
|
|
3663
|
-
requestVenueCamera(e, t, n = this.cameraIntentId) {
|
|
3664
|
-
var r;
|
|
3665
|
-
let i = m.enableExperimentalVenueFraming === !0 || (r = Br(t.layer)) == null ? e.bounds : r;
|
|
3666
|
-
if (!this.rootStore.maplibreStore.showMaplibre) {
|
|
3667
|
-
this.rootStore.uiState.moveToRect = i;
|
|
3668
|
-
return;
|
|
3669
|
-
}
|
|
3670
|
-
this.cameraRequest = {
|
|
3671
|
-
kind: "venue",
|
|
3672
|
-
intentId: n,
|
|
3673
|
-
venueId: e.id,
|
|
3674
|
-
layer: t.layer.name,
|
|
3675
|
-
rect: i
|
|
3676
|
-
};
|
|
3677
|
-
}
|
|
3678
|
-
nextLevelActivationRequest(e) {
|
|
3679
|
-
var t;
|
|
3680
|
-
let n = ((t = this.levelActivationRequests.get(e)) == null ? 0 : t) + 1;
|
|
3681
|
-
return this.levelActivationRequests.set(e, n), n;
|
|
3682
|
-
}
|
|
3683
|
-
resolveVenueLevel(e, t) {
|
|
3684
|
-
if (typeof t == "string") return e.levels.find((e) => e.layer.name === t);
|
|
3685
|
-
if (t) return e.levels.find((e) => e === t || e.layer === t);
|
|
3686
|
-
}
|
|
3687
|
-
notifyFloorActivated(e) {
|
|
3688
|
-
this.floorActivatedNotifier(this.rootStore.fp, e.name);
|
|
3689
|
-
}
|
|
3690
|
-
}, Nr = Z(X.prototype, "venues", [u], {
|
|
3691
|
-
configurable: !0,
|
|
3692
|
-
enumerable: !0,
|
|
3693
|
-
writable: !0,
|
|
3694
|
-
initializer: function() {
|
|
3695
|
-
return [];
|
|
3696
|
-
}
|
|
3697
|
-
}), Pr = Z(X.prototype, "diagnostics", [u], {
|
|
3698
|
-
configurable: !0,
|
|
3699
|
-
enumerable: !0,
|
|
3700
|
-
writable: !0,
|
|
3701
|
-
initializer: function() {
|
|
3702
|
-
return [];
|
|
3703
|
-
}
|
|
3704
|
-
}), Fr = Z(X.prototype, "automaticContextVenueId", [u], {
|
|
3705
|
-
configurable: !0,
|
|
3706
|
-
enumerable: !0,
|
|
3707
|
-
writable: !0,
|
|
3708
|
-
initializer: function() {
|
|
3709
|
-
return null;
|
|
3710
|
-
}
|
|
3711
|
-
}), Ir = Z(X.prototype, "destinationVenueId", [u], {
|
|
3712
|
-
configurable: !0,
|
|
3713
|
-
enumerable: !0,
|
|
3714
|
-
writable: !0,
|
|
3715
|
-
initializer: function() {
|
|
3716
|
-
return null;
|
|
3717
|
-
}
|
|
3718
|
-
}), Lr = Z(X.prototype, "cameraRequest", [u], {
|
|
3719
|
-
configurable: !0,
|
|
3720
|
-
enumerable: !0,
|
|
3721
|
-
writable: !0,
|
|
3722
|
-
initializer: function() {
|
|
3723
|
-
return null;
|
|
3724
|
-
}
|
|
3725
|
-
}), Rr = Z(X.prototype, "focusedVenueId", [u], {
|
|
3726
|
-
configurable: !0,
|
|
3727
|
-
enumerable: !0,
|
|
3728
|
-
writable: !0,
|
|
3729
|
-
initializer: function() {
|
|
3730
|
-
return null;
|
|
3731
|
-
}
|
|
3732
|
-
}), Z(X.prototype, "hasVenueModel", [xr], Object.getOwnPropertyDescriptor(X.prototype, "hasVenueModel"), X.prototype), Z(X.prototype, "isCampusMode", [Sr], Object.getOwnPropertyDescriptor(X.prototype, "isCampusMode"), X.prototype), Z(X.prototype, "orderedVenues", [Cr], Object.getOwnPropertyDescriptor(X.prototype, "orderedVenues"), X.prototype), Z(X.prototype, "focusedVenue", [wr], Object.getOwnPropertyDescriptor(X.prototype, "focusedVenue"), X.prototype), Z(X.prototype, "defaultVenue", [Tr], Object.getOwnPropertyDescriptor(X.prototype, "defaultVenue"), X.prototype), Z(X.prototype, "campusBounds", [Er], Object.getOwnPropertyDescriptor(X.prototype, "campusBounds"), X.prototype), Z(X.prototype, "campusBoundsAuthored", [Dr], Object.getOwnPropertyDescriptor(X.prototype, "campusBoundsAuthored"), X.prototype), Z(X.prototype, "fallbackVenue", [Or], Object.getOwnPropertyDescriptor(X.prototype, "fallbackVenue"), X.prototype), Z(X.prototype, "activeVenue", [kr], Object.getOwnPropertyDescriptor(X.prototype, "activeVenue"), X.prototype), Z(X.prototype, "auxVenuesByLayerName", [Ar], Object.getOwnPropertyDescriptor(X.prototype, "auxVenuesByLayerName"), X.prototype), Z(X.prototype, "selectorMode", [jr], Object.getOwnPropertyDescriptor(X.prototype, "selectorMode"), X.prototype), Z(X.prototype, "venuesByLevelLayerName", [Mr], Object.getOwnPropertyDescriptor(X.prototype, "venuesByLevelLayerName"), X.prototype), Z(X.prototype, "init", [d], Object.getOwnPropertyDescriptor(X.prototype, "init"), X.prototype), Z(X.prototype, "applyInitialVisibility", [d], Object.getOwnPropertyDescriptor(X.prototype, "applyInitialVisibility"), X.prototype), Z(X.prototype, "applyFallbackVisibility", [d], Object.getOwnPropertyDescriptor(X.prototype, "applyFallbackVisibility"), X.prototype), Z(X.prototype, "setAutomaticContext", [d], Object.getOwnPropertyDescriptor(X.prototype, "setAutomaticContext"), X.prototype), Z(X.prototype, "enterVenue", [d], Object.getOwnPropertyDescriptor(X.prototype, "enterVenue"), X.prototype), Z(X.prototype, "focusVenue", [d], Object.getOwnPropertyDescriptor(X.prototype, "focusVenue"), X.prototype), Z(X.prototype, "releaseDestinationOverride", [d], Object.getOwnPropertyDescriptor(X.prototype, "releaseDestinationOverride"), X.prototype), Z(X.prototype, "clearCameraRequest", [d], Object.getOwnPropertyDescriptor(X.prototype, "clearCameraRequest"), X.prototype), Z(X.prototype, "viewAllVenues", [d], Object.getOwnPropertyDescriptor(X.prototype, "viewAllVenues"), X.prototype), Z(X.prototype, "frameActiveVenue", [d], Object.getOwnPropertyDescriptor(X.prototype, "frameActiveVenue"), X.prototype), Z(X.prototype, "completeCampusView", [d], Object.getOwnPropertyDescriptor(X.prototype, "completeCampusView"), X.prototype), Z(X.prototype, "clearFocus", [d], Object.getOwnPropertyDescriptor(X.prototype, "clearFocus"), X.prototype), Z(X.prototype, "activateLayer", [d], Object.getOwnPropertyDescriptor(X.prototype, "activateLayer"), X.prototype), X);
|
|
3733
|
-
function Ur(e, t) {
|
|
3734
|
-
let n = !1;
|
|
3735
|
-
for (let r = 0, i = e.length - 1; r < e.length; i = r++) {
|
|
3736
|
-
let a = e[r], o = e[i];
|
|
3737
|
-
if (a.y > t.y != o.y > t.y) {
|
|
3738
|
-
let e = a.x + (t.y - a.y) * (o.x - a.x) / (o.y - a.y);
|
|
3739
|
-
t.x < e && (n = !n);
|
|
3740
|
-
}
|
|
3741
|
-
}
|
|
3742
|
-
return n;
|
|
3743
|
-
}
|
|
3744
|
-
//#endregion
|
|
3745
|
-
//#region src/store/RootStore.ts
|
|
3746
|
-
var Q, Wr, Gr;
|
|
3747
|
-
function Kr(e, t, n, r) {
|
|
3407
|
+
}), Z(X.prototype, "loadTours", [u], Object.getOwnPropertyDescriptor(X.prototype, "loadTours"), X.prototype), Z(X.prototype, "resetTours", [u], Object.getOwnPropertyDescriptor(X.prototype, "resetTours"), X.prototype), Z(X.prototype, "tourItems", [s], Object.getOwnPropertyDescriptor(X.prototype, "tourItems"), X.prototype), Z(X.prototype, "currentTour", [s], Object.getOwnPropertyDescriptor(X.prototype, "currentTour"), X.prototype), Z(X.prototype, "isActive", [s], Object.getOwnPropertyDescriptor(X.prototype, "isActive"), X.prototype), Z(X.prototype, "tourLayers", [s], Object.getOwnPropertyDescriptor(X.prototype, "tourLayers"), X.prototype), Z(X.prototype, "launchTour", [u], Object.getOwnPropertyDescriptor(X.prototype, "launchTour"), X.prototype), Z(X.prototype, "stopTour", [u], Object.getOwnPropertyDescriptor(X.prototype, "stopTour"), X.prototype), X), Q, ur, dr;
|
|
3408
|
+
function fr(e, t, n, r) {
|
|
3748
3409
|
n && Object.defineProperty(e, t, {
|
|
3749
3410
|
enumerable: n.enumerable,
|
|
3750
3411
|
configurable: n.configurable,
|
|
@@ -3760,23 +3421,23 @@ function $(e, t, n, r, i) {
|
|
|
3760
3421
|
return r(e, t, n) || n;
|
|
3761
3422
|
}, a), i && a.initializer !== void 0 && (a.value = a.initializer ? a.initializer.call(i) : void 0, a.initializer = void 0), a.initializer === void 0 ? (Object.defineProperty(e, t, a), null) : a;
|
|
3762
3423
|
}
|
|
3763
|
-
var
|
|
3424
|
+
var pr = (Q = class {
|
|
3764
3425
|
setResetCameraFn(e) {
|
|
3765
3426
|
this.resetCameraFn = e;
|
|
3766
3427
|
}
|
|
3767
3428
|
constructor() {
|
|
3768
|
-
this.categoryStore = void 0, this.exhibitorStore = void 0, this.boothStore = void 0, this.uiState = void 0, this.overlayStore = void 0, this.routeStore = void 0, this.routePlannerStore = void 0, this.toursStore = void 0, this.maplibreStore = void 0, this.layerStore = void 0, this.venueStore = void 0, this.intercomStore = void 0, this.eventStore = void 0, this.poiTypeStore = void 0, this.poiMarkerStore = void 0, this.heatmapStore = void 0, this.fuzzySearchEngineStore = void 0, this.categoryFilterStore = void 0, this.sessionsFilterStore = void 0, this.speakerStore = void 0, this.speakerFilterStore = void 0, this.searchStore = void 0, this.searchButtonsStore = void 0, this.bookmarksStore = void 0, this.urlFilterManager = void 0, this.shortcutRegistry = void 0, this.selectionCameraRequest = 0, this.fp = void 0,
|
|
3429
|
+
this.categoryStore = void 0, this.exhibitorStore = void 0, this.boothStore = void 0, this.uiState = void 0, this.overlayStore = void 0, this.routeStore = void 0, this.routePlannerStore = void 0, this.toursStore = void 0, this.maplibreStore = void 0, this.layerStore = void 0, this.venueStore = void 0, this.intercomStore = void 0, this.eventStore = void 0, this.poiTypeStore = void 0, this.poiMarkerStore = void 0, this.heatmapStore = void 0, this.fuzzySearchEngineStore = void 0, this.categoryFilterStore = void 0, this.sessionsFilterStore = void 0, this.speakerStore = void 0, this.speakerFilterStore = void 0, this.searchStore = void 0, this.searchButtonsStore = void 0, this.bookmarksStore = void 0, this.urlFilterManager = void 0, this.shortcutRegistry = void 0, this.selectionCameraRequest = 0, this.fp = void 0, fr(this, "initialized", ur, this), fr(this, "resetCameraFn", dr, this), this.categoryStore = new te(this), this.exhibitorStore = new Oe(this), this.boothStore = new Ee(this), this.routeStore = new Ye(this), this.routePlannerStore = new vn(this), this.toursStore = new lr(this), this.uiState = new ne(this), this.overlayStore = new qt(this), this.maplibreStore = new Gt(this), this.layerStore = new Ne(this), this.venueStore = new qe(this), this.intercomStore = new Mt(), this.eventStore = new oe(this), this.heatmapStore = new re(), this.poiTypeStore = new tn(this), this.poiMarkerStore = new en(this), this.fuzzySearchEngineStore = new Dt([
|
|
3769
3430
|
"name",
|
|
3770
3431
|
"title",
|
|
3771
3432
|
"fullName",
|
|
3772
3433
|
"booths.name"
|
|
3773
|
-
]), this.categoryFilterStore = new
|
|
3434
|
+
]), this.categoryFilterStore = new St(this), this.sessionsFilterStore = new Jn(this), this.speakerStore = new fe(this), this.speakerFilterStore = new tr(this), this.searchStore = new Gn(this), this.searchButtonsStore = new Ln(this), this.bookmarksStore = new _t(this), this.urlFilterManager = new ht(this), this.shortcutRegistry = new Yn(), this.registerShortcutProviders();
|
|
3774
3435
|
}
|
|
3775
3436
|
scheduleSelectionCamera(e, t, n) {
|
|
3776
3437
|
setTimeout(() => {
|
|
3777
3438
|
let r = n();
|
|
3778
3439
|
r && (t ? t.then(() => this.moveToList(r, !0, e)) : this.moveToList(r, !1, e));
|
|
3779
|
-
},
|
|
3440
|
+
}, ee || _e ? 500 : 50);
|
|
3780
3441
|
}
|
|
3781
3442
|
selectExhibitor(e, t = !0) {
|
|
3782
3443
|
var n;
|
|
@@ -3784,7 +3445,7 @@ var qr = (Q = class {
|
|
|
3784
3445
|
this.uiState.hoveredExhibitor = null, this.uiState.details = e;
|
|
3785
3446
|
var i = e.booths.filter((e) => e.visible), a = e.booths.filter((e) => !e.visible);
|
|
3786
3447
|
let o;
|
|
3787
|
-
if (!i.length && a.length && (this.venueStore.hasVenueModel ? o =
|
|
3448
|
+
if (!i.length && a.length && (this.venueStore.hasVenueModel ? o = ue(this.venueStore, [a[0]]) : this.layerStore.updateVisibility(a[0].layer, !0)), !t) return;
|
|
3788
3449
|
let s = (n = a[0]) == null || (n = n.layer) == null ? void 0 : n.name, c = i.length ? i : a.filter((e) => {
|
|
3789
3450
|
var t;
|
|
3790
3451
|
return ((t = e.layer) == null ? void 0 : t.name) === s;
|
|
@@ -3796,17 +3457,17 @@ var qr = (Q = class {
|
|
|
3796
3457
|
let r = ++this.selectionCameraRequest, i = Array.isArray(e) ? e : [e];
|
|
3797
3458
|
this.uiState.details = i[0], i.length === 1 && (n = i[0].schedule) != null && n.length && (this.uiState.desiredOverlaySize = "medium");
|
|
3798
3459
|
let a;
|
|
3799
|
-
i.length === 1 && i[0].layer && !i[0].visible && (this.venueStore.hasVenueModel ? a =
|
|
3460
|
+
i.length === 1 && i[0].layer && !i[0].visible && (this.venueStore.hasVenueModel ? a = ue(this.venueStore, i) : this.layerStore.mode === Pe.Radio && this.layerStore.updateVisibility(i[0].layer, !0)), t && this.scheduleSelectionCamera(r, a, () => i);
|
|
3800
3461
|
}
|
|
3801
3462
|
reset() {
|
|
3802
3463
|
let e = window.__searchi;
|
|
3803
3464
|
e && e.querySelector && e.querySelector("input[type=search]") && e.querySelector("input[type=search]").blur && e.querySelector("input[type=search]").blur(), window.setTimeout(() => {
|
|
3804
3465
|
this.uiState.setKioskModeEnabled || n().then(() => {
|
|
3805
|
-
|
|
3466
|
+
d(() => {
|
|
3806
3467
|
var e;
|
|
3807
3468
|
this.selectSearch(""), this.uiState.details = null, (e = this.resetCameraFn) == null || e.call(this), this.uiState.menu = !1, this.searchStore.resetSearchBox(), this.searchButtonsStore.clearAllFilters();
|
|
3808
3469
|
}), setTimeout(() => {
|
|
3809
|
-
|
|
3470
|
+
d(() => {
|
|
3810
3471
|
this.uiState.inIdle = !0;
|
|
3811
3472
|
});
|
|
3812
3473
|
}, 100);
|
|
@@ -3840,7 +3501,7 @@ var qr = (Q = class {
|
|
|
3840
3501
|
let r;
|
|
3841
3502
|
if (e.boothId) {
|
|
3842
3503
|
let t = this.boothStore.booths.find((t) => t.id === e.boothId);
|
|
3843
|
-
t != null && t.layer && !t.visible && (this.venueStore.hasVenueModel ? r =
|
|
3504
|
+
t != null && t.layer && !t.visible && (this.venueStore.hasVenueModel ? r = ue(this.venueStore, [t]) : this.layerStore.mode === Pe.Radio && this.layerStore.updateVisibility(t.layer, !0));
|
|
3844
3505
|
}
|
|
3845
3506
|
t && this.scheduleSelectionCamera(n, r, () => {
|
|
3846
3507
|
if (!e.boothId) return null;
|
|
@@ -3851,7 +3512,7 @@ var qr = (Q = class {
|
|
|
3851
3512
|
selectSearch(e) {
|
|
3852
3513
|
window.__resett && window.__resett(), this.uiState.details = null, this.speakerStore.clearSelectedSpeaker(), this.uiState.list = {
|
|
3853
3514
|
type: "search",
|
|
3854
|
-
text:
|
|
3515
|
+
text: de(e, Object.keys(this.uiState.mapSettings).map((e) => `${e}=`)),
|
|
3855
3516
|
focused: !1
|
|
3856
3517
|
}, this.uiState.activeListIndex = -1;
|
|
3857
3518
|
}
|
|
@@ -3911,14 +3572,14 @@ var qr = (Q = class {
|
|
|
3911
3572
|
} };
|
|
3912
3573
|
this.uiState.onBoothClick(n);
|
|
3913
3574
|
}
|
|
3914
|
-
if (e.exhibitors.length === 1 && e instanceof
|
|
3575
|
+
if (e.exhibitors.length === 1 && e instanceof Fe) {
|
|
3915
3576
|
let t = e.exhibitors[0];
|
|
3916
|
-
a === t ?
|
|
3917
|
-
action:
|
|
3577
|
+
a === t ? Ue(Ke.ViewBooth, e.name) : this.heatmapStore.forceTrack = {
|
|
3578
|
+
action: Ke.ViewBooth,
|
|
3918
3579
|
label: e.name,
|
|
3919
3580
|
exhibitor: t
|
|
3920
3581
|
}, this.selectExhibitor(t, !1);
|
|
3921
|
-
} else a === e &&
|
|
3582
|
+
} else a === e && Ue(Ke.ViewBooth, e.name), this.selectBooth(e, !1);
|
|
3922
3583
|
this.showMap();
|
|
3923
3584
|
}
|
|
3924
3585
|
}
|
|
@@ -3931,7 +3592,7 @@ var qr = (Q = class {
|
|
|
3931
3592
|
}, navigator.userAgent.toLowerCase().indexOf("android") > -1 ? 400 : 50);
|
|
3932
3593
|
}
|
|
3933
3594
|
showMap() {
|
|
3934
|
-
this.uiState.overlayPosition === "bottom" &&
|
|
3595
|
+
this.uiState.overlayPosition === "bottom" && ve && (this.uiState.desiredOverlaySize = "medium");
|
|
3935
3596
|
}
|
|
3936
3597
|
showOverlay() {
|
|
3937
3598
|
this.uiState.overlayPosition === "bottom" && (this.uiState.desiredOverlaySize = "full");
|
|
@@ -3945,17 +3606,17 @@ var qr = (Q = class {
|
|
|
3945
3606
|
e = e || this.uiState.listItems;
|
|
3946
3607
|
let r = t && this.venueStore.hasVenueModel, i = [];
|
|
3947
3608
|
e.forEach((e) => {
|
|
3948
|
-
if (e instanceof
|
|
3949
|
-
else if (e instanceof
|
|
3950
|
-
else if (e instanceof
|
|
3609
|
+
if (e instanceof Me) i.push(...e.booths.filter((e) => e.visible || r));
|
|
3610
|
+
else if (e instanceof pe) (e.visible || r) && i.push(e);
|
|
3611
|
+
else if (e instanceof le && e.boothId) {
|
|
3951
3612
|
let t = this.boothStore.boothById.get(e.boothId);
|
|
3952
3613
|
t && (t.visible || r) && i.push(t);
|
|
3953
|
-
} else e instanceof
|
|
3614
|
+
} else e instanceof ce && this.speakerStore.getEventsBySpeaker(e.id).forEach((e) => {
|
|
3954
3615
|
if (!e.boothId) return;
|
|
3955
3616
|
let t = this.boothStore.boothById.get(e.boothId);
|
|
3956
3617
|
t && (t.visible || r) && i.push(t);
|
|
3957
3618
|
});
|
|
3958
|
-
}), t ||
|
|
3619
|
+
}), t || ue(this.venueStore, i), this.uiState.moveToBooths = i;
|
|
3959
3620
|
}
|
|
3960
3621
|
moveToExhibitor(e) {
|
|
3961
3622
|
this.moveToList([e]);
|
|
@@ -3975,7 +3636,7 @@ var qr = (Q = class {
|
|
|
3975
3636
|
}
|
|
3976
3637
|
openActiveListItem() {
|
|
3977
3638
|
let e = this.uiState.listItems[this.uiState.activeListIndex];
|
|
3978
|
-
e && (
|
|
3639
|
+
e && (o.log("Opening", e), e instanceof Me ? this.clickExhibitor(e) : e instanceof ae ? this.clickCategory(e) : e instanceof pe && this.clickBoothInList2(e));
|
|
3979
3640
|
}
|
|
3980
3641
|
toggleCategoryFilter() {
|
|
3981
3642
|
this.uiState.categoryFilterOpen = !this.uiState.categoryFilterOpen;
|
|
@@ -3991,28 +3652,28 @@ var qr = (Q = class {
|
|
|
3991
3652
|
type: "sessions",
|
|
3992
3653
|
text: "",
|
|
3993
3654
|
focused: !1
|
|
3994
|
-
}, this.uiState.menu = !1, this.uiState.selectedTrack = null, this.searchButtonsStore.setSubButtonId(null), this.searchButtonsStore.subButtonsEnabled && this.searchButtonsStore.showSubButtons("sessions"),
|
|
3655
|
+
}, this.uiState.menu = !1, this.uiState.selectedTrack = null, this.searchButtonsStore.setSubButtonId(null), this.searchButtonsStore.subButtonsEnabled && this.searchButtonsStore.showSubButtons("sessions"), _e && (this.uiState.desiredOverlaySize = "full");
|
|
3995
3656
|
}
|
|
3996
3657
|
selectExhibitors() {
|
|
3997
3658
|
this.uiState.list = {
|
|
3998
3659
|
type: "exhibitors",
|
|
3999
3660
|
text: "",
|
|
4000
3661
|
focused: !1
|
|
4001
|
-
}, this.uiState.menu = !1,
|
|
3662
|
+
}, this.uiState.menu = !1, _e && (this.uiState.desiredOverlaySize = "full");
|
|
4002
3663
|
}
|
|
4003
3664
|
selectTours() {
|
|
4004
3665
|
this.uiState.list = {
|
|
4005
3666
|
type: "tours",
|
|
4006
3667
|
text: "",
|
|
4007
3668
|
focused: !1
|
|
4008
|
-
}, this.uiState.menu = !1,
|
|
3669
|
+
}, this.uiState.menu = !1, _e && (this.uiState.desiredOverlaySize = "full");
|
|
4009
3670
|
}
|
|
4010
3671
|
selectSpeakers() {
|
|
4011
3672
|
this.uiState.list = {
|
|
4012
3673
|
type: "speakers",
|
|
4013
3674
|
text: "",
|
|
4014
3675
|
focused: !1
|
|
4015
|
-
}, this.uiState.menu = !1,
|
|
3676
|
+
}, this.uiState.menu = !1, _e && (this.uiState.desiredOverlaySize = "full");
|
|
4016
3677
|
}
|
|
4017
3678
|
selectSpeaker(e, t = !0) {
|
|
4018
3679
|
this.speakerStore.selectSpeaker(e, t);
|
|
@@ -4021,26 +3682,26 @@ var qr = (Q = class {
|
|
|
4021
3682
|
this.searchButtonsStore.clearAllFilters();
|
|
4022
3683
|
}
|
|
4023
3684
|
registerShortcutProviders() {
|
|
4024
|
-
this.shortcutRegistry.register(new
|
|
3685
|
+
this.shortcutRegistry.register(new ln(this)), this.shortcutRegistry.register(new fn(this)), this.shortcutRegistry.register(new on(this));
|
|
4025
3686
|
}
|
|
4026
|
-
},
|
|
3687
|
+
}, ur = $(Q.prototype, "initialized", [c], {
|
|
4027
3688
|
configurable: !0,
|
|
4028
3689
|
enumerable: !0,
|
|
4029
3690
|
writable: !0,
|
|
4030
3691
|
initializer: function() {
|
|
4031
3692
|
return !1;
|
|
4032
3693
|
}
|
|
4033
|
-
}),
|
|
3694
|
+
}), dr = $(Q.prototype, "resetCameraFn", [c], {
|
|
4034
3695
|
configurable: !0,
|
|
4035
3696
|
enumerable: !0,
|
|
4036
3697
|
writable: !0,
|
|
4037
3698
|
initializer: null
|
|
4038
|
-
}), $(Q.prototype, "setResetCameraFn", [
|
|
3699
|
+
}), $(Q.prototype, "setResetCameraFn", [u], Object.getOwnPropertyDescriptor(Q.prototype, "setResetCameraFn"), Q.prototype), $(Q.prototype, "selectExhibitor", [u], Object.getOwnPropertyDescriptor(Q.prototype, "selectExhibitor"), Q.prototype), $(Q.prototype, "selectBooth", [u], Object.getOwnPropertyDescriptor(Q.prototype, "selectBooth"), Q.prototype), $(Q.prototype, "reset", [u], Object.getOwnPropertyDescriptor(Q.prototype, "reset"), Q.prototype), $(Q.prototype, "selectNone", [u], Object.getOwnPropertyDescriptor(Q.prototype, "selectNone"), Q.prototype), $(Q.prototype, "selectBookmarks", [u], Object.getOwnPropertyDescriptor(Q.prototype, "selectBookmarks"), Q.prototype), $(Q.prototype, "selectVisited", [u], Object.getOwnPropertyDescriptor(Q.prototype, "selectVisited"), Q.prototype), $(Q.prototype, "selectLanguage", [u], Object.getOwnPropertyDescriptor(Q.prototype, "selectLanguage"), Q.prototype), $(Q.prototype, "selectCategory", [u], Object.getOwnPropertyDescriptor(Q.prototype, "selectCategory"), Q.prototype), $(Q.prototype, "selectEventItem", [u], Object.getOwnPropertyDescriptor(Q.prototype, "selectEventItem"), Q.prototype), $(Q.prototype, "selectSearch", [u], Object.getOwnPropertyDescriptor(Q.prototype, "selectSearch"), Q.prototype), $(Q.prototype, "clickBookmarks", [u], Object.getOwnPropertyDescriptor(Q.prototype, "clickBookmarks"), Q.prototype), $(Q.prototype, "clickVisited", [u], Object.getOwnPropertyDescriptor(Q.prototype, "clickVisited"), Q.prototype), $(Q.prototype, "clickLanguage", [u], Object.getOwnPropertyDescriptor(Q.prototype, "clickLanguage"), Q.prototype), $(Q.prototype, "clickCategory", [u], Object.getOwnPropertyDescriptor(Q.prototype, "clickCategory"), Q.prototype), $(Q.prototype, "clickSeminars", [u], Object.getOwnPropertyDescriptor(Q.prototype, "clickSeminars"), Q.prototype), $(Q.prototype, "clickBoothInList", [u], Object.getOwnPropertyDescriptor(Q.prototype, "clickBoothInList"), Q.prototype), $(Q.prototype, "clickBoothInList2", [u], Object.getOwnPropertyDescriptor(Q.prototype, "clickBoothInList2"), Q.prototype), $(Q.prototype, "clickBooth", [u], Object.getOwnPropertyDescriptor(Q.prototype, "clickBooth"), Q.prototype), $(Q.prototype, "clickExhibitor2", [u], Object.getOwnPropertyDescriptor(Q.prototype, "clickExhibitor2"), Q.prototype), $(Q.prototype, "clickExhibitor", [u], Object.getOwnPropertyDescriptor(Q.prototype, "clickExhibitor"), Q.prototype), $(Q.prototype, "showMap", [u], Object.getOwnPropertyDescriptor(Q.prototype, "showMap"), Q.prototype), $(Q.prototype, "showOverlay", [u], Object.getOwnPropertyDescriptor(Q.prototype, "showOverlay"), Q.prototype), $(Q.prototype, "toggleMapOverlay", [u], Object.getOwnPropertyDescriptor(Q.prototype, "toggleMapOverlay"), Q.prototype), $(Q.prototype, "moveToList", [u], Object.getOwnPropertyDescriptor(Q.prototype, "moveToList"), Q.prototype), $(Q.prototype, "moveToExhibitor", [u], Object.getOwnPropertyDescriptor(Q.prototype, "moveToExhibitor"), Q.prototype), $(Q.prototype, "changeActiveListIndex", [u], Object.getOwnPropertyDescriptor(Q.prototype, "changeActiveListIndex"), Q.prototype), $(Q.prototype, "toggleModal", [u], Object.getOwnPropertyDescriptor(Q.prototype, "toggleModal"), Q.prototype), $(Q.prototype, "openGallery", [u], Object.getOwnPropertyDescriptor(Q.prototype, "openGallery"), Q.prototype), $(Q.prototype, "closeGallery", [u], Object.getOwnPropertyDescriptor(Q.prototype, "closeGallery"), Q.prototype), $(Q.prototype, "openActiveListItem", [u], Object.getOwnPropertyDescriptor(Q.prototype, "openActiveListItem"), Q.prototype), $(Q.prototype, "toggleCategoryFilter", [u], Object.getOwnPropertyDescriptor(Q.prototype, "toggleCategoryFilter"), Q.prototype), $(Q.prototype, "applyCategoryFilters", [u], Object.getOwnPropertyDescriptor(Q.prototype, "applyCategoryFilters"), Q.prototype), $(Q.prototype, "filteredExhibitors", [s], Object.getOwnPropertyDescriptor(Q.prototype, "filteredExhibitors"), Q.prototype), $(Q.prototype, "selectSessions", [u], Object.getOwnPropertyDescriptor(Q.prototype, "selectSessions"), Q.prototype), $(Q.prototype, "selectExhibitors", [u], Object.getOwnPropertyDescriptor(Q.prototype, "selectExhibitors"), Q.prototype), $(Q.prototype, "selectTours", [u], Object.getOwnPropertyDescriptor(Q.prototype, "selectTours"), Q.prototype), $(Q.prototype, "selectSpeakers", [u], Object.getOwnPropertyDescriptor(Q.prototype, "selectSpeakers"), Q.prototype), $(Q.prototype, "selectSpeaker", [u], Object.getOwnPropertyDescriptor(Q.prototype, "selectSpeaker"), Q.prototype), $(Q.prototype, "resetFilters", [u], Object.getOwnPropertyDescriptor(Q.prototype, "resetFilters"), Q.prototype), Q);
|
|
4039
3700
|
//#endregion
|
|
4040
3701
|
//#region src/store/create-live-plan.ts
|
|
4041
|
-
function
|
|
4042
|
-
let e = new
|
|
4043
|
-
|
|
3702
|
+
function mr() {
|
|
3703
|
+
let e = new pr();
|
|
3704
|
+
Re(e), a(() => Re(null)), ut(e), window.__store = ze;
|
|
4044
3705
|
}
|
|
4045
3706
|
//#endregion
|
|
4046
|
-
export {
|
|
3707
|
+
export { mr as createLivePlan };
|