@expofp/floorplan 3.46.1 → 3.47.0
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/{Button-OKcMiyWO.js → Button-DyqVe4xL.js} +5 -5
- package/dist/browser/{CookieConsent-6ulFPlqA.js → CookieConsent-Dne5UXwi.js} +7 -7
- package/dist/browser/{Debug-BxskUF4D.js → Debug-CSY6FmRs.js} +7 -7
- package/dist/browser/{DebugTools-C1is5dXX.js → DebugTools-CSGF0Uqi.js} +6 -6
- package/dist/browser/{Demo-Dx8IKR7Q.js → Demo-AI-22qbf.js} +9 -9
- package/dist/browser/{Free-BaIZnChc.js → Free-BmItczwV.js} +10 -10
- package/dist/browser/{GalleryContainer-BXomiMwG.js → GalleryContainer-Do5QXu8h.js} +11 -11
- package/dist/browser/{GpsLoader-Ccwug0hj.js → GpsLoader-D6boL0AQ.js} +13 -13
- package/dist/browser/{KioskStore-D_Ejv_K0.js → KioskStore-DodjzUdk.js} +16 -16
- package/dist/browser/{LayerStore-DKg7vekG.js → LayerStore-DCg-juRT.js} +44 -44
- package/dist/browser/{MaplibreAdapter-Dh_ASXEG.js → MaplibreAdapter-D838jbrB.js} +17 -17
- package/dist/browser/{ModalContainer-DXN2lQG-.js → ModalContainer-DAh3OT88.js} +10 -10
- package/dist/browser/{PermissionNotice-CljwxHGD.js → PermissionNotice-D9dFiy8Z.js} +6 -6
- package/dist/browser/{RouteStore-4r6xqu2L.js → RouteStore-B82dztUW.js} +24 -24
- package/dist/browser/{SetKioskMode-3YCa73LZ.js → SetKioskMode-DcQFm_UG.js} +11 -11
- package/dist/browser/{ShowKiosk-CmozIEWm.js → ShowKiosk-BnuT9vM-.js} +11 -11
- package/dist/browser/{UIState-DOVwNW-h.js → UIState-Dd6fvko0.js} +12 -12
- package/dist/browser/{ViewerMenuPanel-ukfCjPlv.js → ViewerMenuPanel-C3B3OmlN.js} +10 -10
- package/dist/browser/{add-debug-secret-listener-DiW9122w.js → add-debug-secret-listener-BJu3pH2x.js} +1 -1
- package/dist/browser/{adopt-global-settings-C8NxCufU.js → adopt-global-settings-BerG23m2.js} +9 -9
- package/dist/browser/{boolean-editor-DAUiSxaZ.js → boolean-editor-C1i1ID8g.js} +9 -9
- package/dist/browser/{bootIntercom-Cxu_tGyN.js → bootIntercom-C3tqD4Ct.js} +2 -2
- package/dist/browser/bundle.json +87 -87
- package/dist/browser/{camera-events-BzkvmmVT.js → camera-events-DzSywgw0.js} +1 -1
- package/dist/browser/{classnames-ht7j544T.js → classnames-CQMYVTW5.js} +2 -2
- package/dist/browser/{client-cb0OfXbM.js → client-DbQnuxsE.js} +5 -5
- package/dist/browser/{components-D1hWFJkH.js → components-CzNKFauU.js} +2212 -2161
- package/dist/browser/{create-live-plan-BYQmwyu_.js → create-live-plan-D17jzmnD.js} +482 -416
- package/dist/browser/{debug-context-D-Az5hsc.js → debug-context-CLE9u3W1.js} +6 -6
- package/dist/browser/{debug-overlay-Cx_TzAOa.js → debug-overlay-CqyQd6Tu.js} +10 -10
- package/dist/browser/{debug-ui-BWGZ29bU.js → debug-ui-CopIbPwZ.js} +6 -6
- package/dist/browser/{dist-CxdNXcdm.js → dist-CXSdtHNF.js} +6 -6
- package/dist/browser/{dist-DI0TDNHP.js → dist-DrhAFaXl.js} +5 -5
- package/dist/browser/{dist-TE6VoTiX.js → dist-mSjAoqZa.js} +3 -3
- package/dist/browser/{efp-debug-init-pyajqRUx.js → efp-debug-init-D3gNE8Zq.js} +3 -3
- package/dist/browser/{enum-editor-CtGMxTY9.js → enum-editor-DfEZj9xj.js} +4 -4
- package/dist/browser/{es5-CaaQfpSO.js → es5-CRZbJ3RK.js} +2 -2
- package/dist/browser/{event-head-BM-eM_Bb.js → event-head-C5Pqy8aE.js} +1 -1
- package/dist/browser/{event-not-found-B65hzXQP.js → event-not-found-y-baKtlx.js} +3 -3
- package/dist/browser/{event-scoped-cache-Dy_k6CT0.js → event-scoped-cache-CUHa0QyF.js} +3 -3
- package/dist/browser/{expofpUrl-CtHaWZhI.js → expofpUrl-CUIqO5kL.js} +1 -1
- package/dist/browser/{exports-B117IH-s.js → exports-CnYQMV4a.js} +1 -1
- package/dist/browser/{favicon-BZ8MgZoI.js → favicon-DtPw8IL3.js} +1 -1
- package/dist/browser/{fetch-retry.umd-CZoakvnh.js → fetch-retry.umd-DjnZ3Ut9.js} +2 -2
- package/dist/browser/{flex-DqZnQXWR.js → flex-C5mQXGq5.js} +5 -5
- package/dist/browser/{floorplan.loader-Dj1p_2Uj.js → floorplan.loader-DEaS-fgT.js} +12 -12
- package/dist/browser/{floorplan.ready-DV6RYY5y.js → floorplan.ready-BOnFLVHj.js} +70 -70
- package/dist/browser/{framing-rect-BPQPxCHJ.js → framing-rect-BIpsCqTB.js} +12 -12
- package/dist/browser/{freeBanner-CV-7PVgM.js → freeBanner-BQ-1hI0V.js} +2 -2
- package/dist/browser/{fuse-o5_aSzm4.js → fuse-jVBfzHic.js} +2 -2
- package/dist/browser/{i18n-DT4SjeA3.js → i18n-DlquqKCP.js} +333 -318
- package/dist/browser/index.js +33 -33
- package/dist/browser/{index.module-AwGISzVZ.js → index.module-CN0EtZcO.js} +4 -4
- package/dist/browser/{init-ui-_JZLWvuF.js → init-ui-BQ7d5hKB.js} +9 -9
- package/dist/browser/{integrateKiosk-LP784XEO.js → integrateKiosk-CumGPvbc.js} +5 -5
- package/dist/browser/{is-debug-sgFB2_R1.js → is-debug-IkNSAGo8.js} +4 -4
- package/dist/browser/{is-own-domain-Cgslc30X.js → is-own-domain-yrTLx04R.js} +1 -1
- package/dist/browser/{is-webview-Cbjly4fl.js → is-webview-DA6FLdme.js} +1 -1
- package/dist/browser/{jsx-runtime-DJq9zytl.js → jsx-runtime-BzLvm2y2.js} +2 -2
- package/dist/browser/{kiosk-mode-D0Muk9LN.js → kiosk-mode-zD8K_fUT.js} +3 -3
- package/dist/browser/{kiosk-record-QLKP2NTE.js → kiosk-record-Ckxa0L0B.js} +1 -1
- package/dist/browser/{kioskApi-Cm0aHEDq.js → kioskApi-CG3QGuUx.js} +7 -7
- package/dist/browser/{ktx2-D9vr5u5B.js → ktx2-Dx_h97CR.js} +2 -2
- package/dist/browser/{lib-Cu-YSKSO.js → lib-5KOc2jVl.js} +3 -3
- package/dist/browser/{loadImage-DC3BioQw.js → loadImage-iqS2KHgN.js} +1 -1
- package/dist/browser/{logDeviceInfo-U-dghNEE.js → logDeviceInfo-DhvfxT2K.js} +9 -9
- package/dist/browser/{mobx-B3ugy_Uo.js → mobx-CUFHrL57.js} +4 -4
- package/dist/browser/{mobx.module-C9pJfT4z.js → mobx.module-BTnTbXnp.js} +1 -1
- package/dist/browser/{optional-boolean-editor-B6peoFdP.js → optional-boolean-editor-C3k-DXeF.js} +3 -3
- package/dist/browser/{optional-enum-editor-DdGc6bGo.js → optional-enum-editor-CeY1nCnF.js} +4 -4
- package/dist/browser/{optional-string-editor-D-mZ5TcA.js → optional-string-editor-DrVHjvsL.js} +4 -4
- package/dist/browser/{particles.min-r05NeIIO.js → particles.min-BPS1Hdpf.js} +2 -2
- package/dist/browser/{react-CAiPe_Qk.js → react-XuvSZP7j.js} +2 -2
- package/dist/browser/{react-dom-B-n3e4uH.js → react-dom-Cg1Pcvni.js} +3 -3
- package/dist/browser/{rolldown-runtime-BkAGFH-3.js → rolldown-runtime-5rOLGCTp.js} +1 -1
- package/dist/browser/{scene-DBB57-1M.js → scene-CeKqMicD.js} +3 -3
- package/dist/browser/{scheduler-Btu7810I.js → scheduler-D5sEY0Dn.js} +2 -2
- package/dist/browser/{select-1x7gpaD6.js → select-Cbv7ufJV.js} +10 -10
- package/dist/browser/{settings-Clb327Gp.js → settings-DgySPhLO.js} +2 -2
- package/dist/browser/{settings-item-9ehuHN7w.js → settings-item-e3YLYS4G.js} +6 -6
- package/dist/browser/{store-B618He5O.js → store-DTvNQcN7.js} +2 -2
- package/dist/browser/{string-editor-zH6d37oA.js → string-editor-Dbv6xI9s.js} +4 -4
- package/dist/browser/{text-field-hTc5zeaz.js → text-field-Cg5awwlh.js} +5 -5
- package/dist/browser/{theme-rkMDBBl_.js → theme-BRoMMdQq.js} +8 -8
- package/dist/browser/{three.core-CoaBWF0W.js → three.core-DvpRLNmt.js} +1 -1
- package/dist/browser/{ui-d7u7XbmX.js → ui-DNMlY_VB.js} +8 -8
- package/dist/browser/{useRenderTarget-Dsf3ugHo.js → useRenderTarget-C__MnkX7.js} +4 -4
- package/dist/browser/{viewport-BDI0afn8.js → viewport-DBuFXrrj.js} +3 -3
- package/dist/browser/{wayfinding-BkpHRhUO.js → wayfinding-BUQns13Y.js} +5 -5
- package/dist/esm/components/BaseFilterModal.d.ts +4 -2
- package/dist/esm/components/BaseFilterModal.js +1 -1
- package/dist/esm/components/CategoryFilterModal.js +1 -1
- package/dist/esm/components/SearchButtons/SearchButton.d.ts +1 -0
- package/dist/esm/components/SearchButtons/SearchButton.js +1 -1
- package/dist/esm/services/URLFilterManager.d.ts +8 -0
- package/dist/esm/services/URLFilterManager.js +1 -1
- package/dist/esm/store/CategoryFilterStore.d.ts +33 -1
- package/dist/esm/store/CategoryFilterStore.js +1 -1
- package/dist/esm/store/SearchStore.js +1 -1
- package/dist/esm/store/providers/SearchShortcutProvider.js +1 -1
- package/dist/esm/store/search-buttons/SearchButtonsActions.d.ts +7 -0
- package/dist/esm/store/search-buttons/SearchButtonsActions.js +1 -1
- package/dist/esm/store/search-buttons/SearchButtonsFactory.d.ts +2 -2
- package/dist/esm/store/search-buttons/SearchButtonsFactory.js +1 -1
- package/dist/esm/store/search-buttons/SearchButtonsFilters.d.ts +2 -2
- package/dist/esm/store/search-buttons/SearchButtonsFilters.js +1 -1
- package/dist/esm/store/search-buttons/constants.d.ts +0 -3
- package/dist/esm/store/search-buttons/constants.js +1 -1
- package/dist/esm/store/search-buttons/utils.d.ts +23 -2
- package/dist/esm/store/search-buttons/utils.js +1 -1
- package/dist/esm/store/types.d.ts +5 -0
- package/dist/esm/test/store-harness.js +1 -1
- package/dist/esm/utils/filter-groups.d.ts +9 -0
- package/dist/esm/utils/filter-groups.js +1 -0
- package/package.json +10 -10
|
@@ -1,49 +1,49 @@
|
|
|
1
1
|
(function() {
|
|
2
2
|
try {
|
|
3
3
|
var e = typeof window < "u" ? window : typeof global < "u" ? global : typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : {};
|
|
4
|
-
e.SENTRY_RELEASE = { id: "3.
|
|
4
|
+
e.SENTRY_RELEASE = { id: "3.47.0" };
|
|
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] = "58c9a800-fba0-4291-9638-41ef9c3e4b50", e._sentryDebugIdIdentifier = "sentry-dbid-58c9a800-fba0-4291-9638-41ef9c3e4b50");
|
|
7
7
|
} catch {}
|
|
8
8
|
})();
|
|
9
|
-
import { D as e,
|
|
10
|
-
import { a, o } from "./is-debug-
|
|
11
|
-
import { a as
|
|
12
|
-
import { t as d } from "./is-webview-
|
|
13
|
-
import { c as
|
|
14
|
-
import { c as
|
|
15
|
-
import { A as
|
|
16
|
-
import { v as
|
|
17
|
-
import { a as
|
|
18
|
-
import { i as Ge } from "./scene-
|
|
19
|
-
import { n as Ke, r as qe } from "./init-ui-
|
|
9
|
+
import { D as e, Ot as t, a as n, c as r, nt as i, s as a } from "./i18n-DlquqKCP.js";
|
|
10
|
+
import { a as o, o as s } from "./is-debug-IkNSAGo8.js";
|
|
11
|
+
import { a as c, c as l, n as u, u as ee } from "./mobx.module-BTnTbXnp.js";
|
|
12
|
+
import { t as d } from "./is-webview-DA6FLdme.js";
|
|
13
|
+
import { c as te, d as ne, f as re, l as ie, m as ae, o as oe, p as se, r as ce, s as le, t as ue } from "./UIState-Dd6fvko0.js";
|
|
14
|
+
import { c as de, l as fe } from "./store-DTvNQcN7.js";
|
|
15
|
+
import { A as pe, B as me, D as f, Et as he, F as ge, G as _e, H as ve, I as ye, Jt as p, M as be, O as xe, P as m, U as Se, V as Ce, Vt as we, W as Te, _ as Ee, et as De, g as Oe, j as ke, jt as Ae, n as je, nt as Me, r as Ne, tt as Pe, v as Fe, z as Ie } from "./LayerStore-DCg-juRT.js";
|
|
16
|
+
import { v as Le } from "./wayfinding-BUQns13Y.js";
|
|
17
|
+
import { a as Re, m as ze, n as h, r as Be, u as Ve, v as He, w as Ue, x as We } from "./RouteStore-B82dztUW.js";
|
|
18
|
+
import { i as Ge } from "./scene-CeKqMicD.js";
|
|
19
|
+
import { n as Ke, r as qe } from "./init-ui-BQ7d5hKB.js";
|
|
20
20
|
//#region src/store/init/init-categories.ts
|
|
21
21
|
function Je(e) {
|
|
22
22
|
let { categoryStore: t, exhibitorStore: n } = e;
|
|
23
23
|
for (let e of p.categories || []) {
|
|
24
|
-
let r = new
|
|
25
|
-
Object.assign(r, e), r.exhibitors = [], r.slug =
|
|
24
|
+
let r = new se();
|
|
25
|
+
Object.assign(r, e), r.exhibitors = [], r.slug = _e(r.name);
|
|
26
26
|
for (let t of p.exhibitors || []) if (t.categories.filter((t) => t === e.id)[0]) {
|
|
27
27
|
let e = n.exhibitorById.get(t.id);
|
|
28
28
|
e.categories.push(r), r.exhibitors.push(e);
|
|
29
29
|
}
|
|
30
30
|
r.store = t, t.categories.push(r);
|
|
31
31
|
}
|
|
32
|
-
|
|
32
|
+
s.log("initCategories", t.categories.length);
|
|
33
33
|
}
|
|
34
34
|
//#endregion
|
|
35
35
|
//#region src/store/init/init-events.ts
|
|
36
36
|
function Ye(e) {
|
|
37
37
|
var t;
|
|
38
38
|
(t = p.events) == null || t.forEach((t) => {
|
|
39
|
-
let n = (t.speakers || []).map((t) => e.speakerStore.addSpeaker({ ...t })), r = new
|
|
39
|
+
let n = (t.speakers || []).map((t) => e.speakerStore.addSpeaker({ ...t })), r = new ne(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
40
|
e.eventStore.eventItems.push(r);
|
|
41
|
-
}),
|
|
41
|
+
}), s.log("initEvents", e.eventStore.eventItems.length), s.log("initSpeakers", e.speakerStore.speakersMap.size), Ze(e.eventStore), Xe(e.eventStore);
|
|
42
42
|
}
|
|
43
43
|
function Xe(e) {
|
|
44
44
|
let t = m("visited");
|
|
45
|
-
e.replaceVisited(t.events),
|
|
46
|
-
|
|
45
|
+
e.replaceVisited(t.events), ke(() => {
|
|
46
|
+
ge("visited", {
|
|
47
47
|
exhibitors: m("visited").exhibitors,
|
|
48
48
|
events: e.visited.map((e) => e.id)
|
|
49
49
|
});
|
|
@@ -51,10 +51,10 @@ function Xe(e) {
|
|
|
51
51
|
}
|
|
52
52
|
function Ze(e) {
|
|
53
53
|
let t = m("bookmarked");
|
|
54
|
-
e.replaceBookmarked(t.events),
|
|
54
|
+
e.replaceBookmarked(t.events), ke(() => {
|
|
55
55
|
var t;
|
|
56
56
|
let n = m("bookmarked");
|
|
57
|
-
|
|
57
|
+
ge("bookmarked", {
|
|
58
58
|
exhibitors: n.exhibitors,
|
|
59
59
|
events: (t = e.bookmarked) == null ? void 0 : t.map((e) => e.id),
|
|
60
60
|
speakers: n.speakers,
|
|
@@ -72,17 +72,17 @@ function Qe(e) {
|
|
|
72
72
|
}
|
|
73
73
|
n.sort((e, t) => Number(t.featured) - Number(e.featured));
|
|
74
74
|
for (let e of n) {
|
|
75
|
-
let n = new
|
|
76
|
-
Object.assign(n, e), n.slug =
|
|
75
|
+
let n = new Oe();
|
|
76
|
+
Object.assign(n, e), n.slug = _e(n.name), n.rebookingState = n.rebookingState || Fe.Unasked, n.categories = [], n.booths = [], n.store = t, t.exhibitors.push(n), n.schedule = null;
|
|
77
77
|
}
|
|
78
|
-
|
|
78
|
+
s.log("initExhibitors", t.exhibitors.length), $e(t), et(t);
|
|
79
79
|
}
|
|
80
80
|
function $e(e) {
|
|
81
81
|
let t = m("bookmarked");
|
|
82
|
-
e.replaceBookmarked(t.exhibitors),
|
|
82
|
+
e.replaceBookmarked(t.exhibitors), ke(() => {
|
|
83
83
|
var t;
|
|
84
84
|
let n = m("bookmarked");
|
|
85
|
-
|
|
85
|
+
ge("bookmarked", {
|
|
86
86
|
exhibitors: (t = e.bookmarked) == null ? void 0 : t.map((e) => e.id),
|
|
87
87
|
events: n.events,
|
|
88
88
|
speakers: n.speakers,
|
|
@@ -92,9 +92,9 @@ function $e(e) {
|
|
|
92
92
|
}
|
|
93
93
|
function et(e) {
|
|
94
94
|
let t = m("visited");
|
|
95
|
-
e.replaceVisited(t.exhibitors),
|
|
95
|
+
e.replaceVisited(t.exhibitors), ke(() => {
|
|
96
96
|
let t = m("visited");
|
|
97
|
-
|
|
97
|
+
ge("visited", {
|
|
98
98
|
exhibitors: e.visited.map((e) => e.id),
|
|
99
99
|
events: t.events
|
|
100
100
|
});
|
|
@@ -105,13 +105,13 @@ function et(e) {
|
|
|
105
105
|
function tt(e) {
|
|
106
106
|
if (window.__heatmapData) e.heatmapStore.heatmapData = window.__heatmapData;
|
|
107
107
|
else if (window.__heatmapDataYah) {
|
|
108
|
-
e.heatmapStore.heatmapData.yah = window.__heatmapDataYah.yah.map((e) => new
|
|
108
|
+
e.heatmapStore.heatmapData.yah = window.__heatmapDataYah.yah.map((e) => new ie(e.id, e.name, e.viewCount, e.x, e.y, e.z));
|
|
109
109
|
let t = e.heatmapStore.heatmapData.yah.map((t) => {
|
|
110
|
-
let n = e.heatmapStore.getColorByClicks(t.viewCount), r = e.uiState.devicePixelRatio, i =
|
|
110
|
+
let n = e.heatmapStore.getColorByClicks(t.viewCount), r = e.uiState.devicePixelRatio, i = he(r, n, void 0, 95, 120, t.viewCount.toString()), a = i.toDataURL();
|
|
111
111
|
return {
|
|
112
112
|
name: t.id.toString(),
|
|
113
113
|
scale: 1,
|
|
114
|
-
...
|
|
114
|
+
...Ae(i),
|
|
115
115
|
content: a
|
|
116
116
|
};
|
|
117
117
|
}), n = e.heatmapStore.heatmapData.yah.map((e) => ({
|
|
@@ -144,10 +144,10 @@ function rt(e) {
|
|
|
144
144
|
}
|
|
145
145
|
function it(e) {
|
|
146
146
|
let t = m("bookmarked");
|
|
147
|
-
e.replaceBookmarked(t.speakers),
|
|
147
|
+
e.replaceBookmarked(t.speakers), ke(() => {
|
|
148
148
|
var t;
|
|
149
149
|
let n = m("bookmarked");
|
|
150
|
-
|
|
150
|
+
ge("bookmarked", {
|
|
151
151
|
exhibitors: n.exhibitors,
|
|
152
152
|
events: n.events,
|
|
153
153
|
speakers: (t = e.bookmarked) == null ? void 0 : t.map((e) => e.id),
|
|
@@ -158,24 +158,54 @@ function it(e) {
|
|
|
158
158
|
//#endregion
|
|
159
159
|
//#region src/store/init/index.ts
|
|
160
160
|
function at(e) {
|
|
161
|
-
|
|
161
|
+
xe(e), Ye(e), rt(e), Qe(e), Je(e), nt(e), pe(e), tt(e), Ke(e);
|
|
162
162
|
}
|
|
163
163
|
//#endregion
|
|
164
164
|
//#region src/store/search-buttons/constants.ts
|
|
165
|
-
var
|
|
165
|
+
var g = /*#__PURE__*/ function(e) {
|
|
166
166
|
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
|
-
}({}),
|
|
168
|
-
POI_TYPE: "poiType_",
|
|
169
|
-
CATEGORIES: "categories_",
|
|
170
|
-
POI_TYPES: "poi_types_",
|
|
171
|
-
LINK: "link_"
|
|
172
|
-
}, ot = {
|
|
167
|
+
}({}), _ = { POI_TYPE: "poiType_" }, ot = {
|
|
173
168
|
BOOKMARKS: "icon-bookmark",
|
|
174
169
|
VISITED: "icon-checkmark",
|
|
175
170
|
SESSIONS: "icon-schedule",
|
|
176
171
|
EXHIBITORS: "icon-exhibitors"
|
|
177
|
-
}
|
|
178
|
-
|
|
172
|
+
};
|
|
173
|
+
//#endregion
|
|
174
|
+
//#region src/store/search-buttons/utils.ts
|
|
175
|
+
function st(e) {
|
|
176
|
+
try {
|
|
177
|
+
let t = e.replace(_.POI_TYPE, ""), n = parseInt(t, 10);
|
|
178
|
+
return isNaN(n) ? null : n;
|
|
179
|
+
} catch {
|
|
180
|
+
return null;
|
|
181
|
+
}
|
|
182
|
+
}
|
|
183
|
+
function ct(e) {
|
|
184
|
+
return e.id || `${e.type}_${e.name}`;
|
|
185
|
+
}
|
|
186
|
+
function v(e) {
|
|
187
|
+
let t = p.filterButtonsConfig;
|
|
188
|
+
return !(t != null && t.searchButtons) || !Array.isArray(t.searchButtons) ? null : t.searchButtons.find((t) => ct(t) === e) || null;
|
|
189
|
+
}
|
|
190
|
+
function lt(e) {
|
|
191
|
+
var t;
|
|
192
|
+
return ((t = e.children) == null ? [] : t).filter((e) => e.visible === !0 && e.type === "categories").map((e) => Number(e.id)).filter((e) => Number.isFinite(e));
|
|
193
|
+
}
|
|
194
|
+
function ut(e, t) {
|
|
195
|
+
return e.filter((e) => t.includes(e.id) && e.exhibitors.length > 0).length;
|
|
196
|
+
}
|
|
197
|
+
function dt(e) {
|
|
198
|
+
let t = 0;
|
|
199
|
+
for (let n of e.values()) t += n;
|
|
200
|
+
return t;
|
|
201
|
+
}
|
|
202
|
+
function ft(e) {
|
|
203
|
+
return !!e && typeof e == "object" && Array.isArray(e.searchButtons) && e.searchButtons.length > 0;
|
|
204
|
+
}
|
|
205
|
+
//#endregion
|
|
206
|
+
//#region src/services/URLFilterManager.ts
|
|
207
|
+
var y, pt, mt;
|
|
208
|
+
function ht(e, t, n, r) {
|
|
179
209
|
n && Object.defineProperty(e, t, {
|
|
180
210
|
enumerable: n.enumerable,
|
|
181
211
|
configurable: n.configurable,
|
|
@@ -183,7 +213,7 @@ function lt(e, t, n, r) {
|
|
|
183
213
|
value: n.initializer ? n.initializer.call(r) : void 0
|
|
184
214
|
});
|
|
185
215
|
}
|
|
186
|
-
function
|
|
216
|
+
function b(e, t, n, r, i) {
|
|
187
217
|
var a = {};
|
|
188
218
|
return Object.keys(r).forEach(function(e) {
|
|
189
219
|
a[e] = r[e];
|
|
@@ -191,35 +221,37 @@ function v(e, t, n, r, i) {
|
|
|
191
221
|
return r(e, t, n) || n;
|
|
192
222
|
}, 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
223
|
}
|
|
194
|
-
var
|
|
224
|
+
var x = {
|
|
195
225
|
CATEGORIES: "categories",
|
|
196
226
|
POI_TYPE: "poiType",
|
|
197
227
|
POI_TYPES: "poiTypes",
|
|
198
228
|
EXHIBITORS: "exhibitors"
|
|
199
|
-
},
|
|
229
|
+
}, gt = (y = class {
|
|
200
230
|
constructor(e) {
|
|
201
|
-
this.rootStore = e,
|
|
231
|
+
this.rootStore = e, ht(this, "currentFilters", pt, this), ht(this, "isInitialized", mt, this), this.setupReactions();
|
|
202
232
|
}
|
|
203
233
|
initialize() {
|
|
204
|
-
this.parseURLFilters(), this.applyFiltersToStore(), this.isInitialized = !0,
|
|
234
|
+
this.parseURLFilters(), this.applyFiltersToStore(), this.isInitialized = !0, s.log("URLFilterManager initialized with filters:", this.currentFilters);
|
|
205
235
|
}
|
|
206
236
|
parseURLFilters() {
|
|
207
|
-
let { categories: e, poiType: t, poiTypes: n, exhibitors: r } = this.readRawFilters(),
|
|
237
|
+
let { categories: e, poiType: t, poiTypes: n, exhibitors: r, searchButton: i } = this.readRawFilters(), a = n.filter((e) => {
|
|
208
238
|
if (!e) return !1;
|
|
209
239
|
let t = this.rootStore.poiTypeStore.poiTypes.some((t) => t.name.toLowerCase() === e.toLowerCase());
|
|
210
|
-
return t ||
|
|
240
|
+
return t || s.warn(`POI type not found in data: ${e}`), t;
|
|
211
241
|
});
|
|
212
|
-
e.length > 0 && (t ||
|
|
242
|
+
e.length > 0 && (t || a.length > 0) ? (s.warn("URL contains both categories and POI types. Clearing POI types."), this.currentFilters = {
|
|
213
243
|
categories: e,
|
|
214
244
|
poiType: null,
|
|
215
245
|
poiTypes: [],
|
|
216
|
-
exhibitors: r
|
|
246
|
+
exhibitors: r,
|
|
247
|
+
searchButton: i
|
|
217
248
|
}) : this.currentFilters = {
|
|
218
249
|
categories: e,
|
|
219
250
|
poiType: t,
|
|
220
|
-
poiTypes:
|
|
221
|
-
exhibitors: r
|
|
222
|
-
|
|
251
|
+
poiTypes: a,
|
|
252
|
+
exhibitors: r,
|
|
253
|
+
searchButton: i
|
|
254
|
+
}, s.log("URLFilterManager parsed filters:", {
|
|
223
255
|
categories: e,
|
|
224
256
|
poiType: t,
|
|
225
257
|
poiTypes: n,
|
|
@@ -229,64 +261,78 @@ var y = {
|
|
|
229
261
|
readRawFilters() {
|
|
230
262
|
let e = t().filters;
|
|
231
263
|
if (Object.keys(e).length > 0) {
|
|
232
|
-
var n, r, i, a;
|
|
264
|
+
var n, r, i, a, o;
|
|
233
265
|
return {
|
|
234
266
|
categories: [...(n = e.categories) == null ? [] : n],
|
|
235
267
|
poiType: (r = e.poiType) == null ? null : r,
|
|
236
268
|
poiTypes: [...(i = e.poiTypes) == null ? [] : i],
|
|
237
|
-
exhibitors: (a = e.exhibitors) != null && a
|
|
269
|
+
exhibitors: (a = e.exhibitors) != null && a,
|
|
270
|
+
searchButton: (o = e.searchButton) == null ? null : o
|
|
238
271
|
};
|
|
239
272
|
}
|
|
240
|
-
let
|
|
273
|
+
let s = new URLSearchParams(window.location.search), c = s.get(x.CATEGORIES), l = c ? me(c) : [], u = s.get(x.POI_TYPE), ee = u ? Ie(u) : null, d = s.get(x.POI_TYPES), te = d ? me(d) : [], ne = s.get(x.EXHIBITORS);
|
|
241
274
|
return {
|
|
242
|
-
categories:
|
|
243
|
-
poiType:
|
|
244
|
-
poiTypes:
|
|
245
|
-
exhibitors:
|
|
275
|
+
categories: l,
|
|
276
|
+
poiType: ee,
|
|
277
|
+
poiTypes: te,
|
|
278
|
+
exhibitors: ne === "true" || ne === "",
|
|
279
|
+
searchButton: null
|
|
246
280
|
};
|
|
247
281
|
}
|
|
248
282
|
applyFiltersToStore() {
|
|
249
|
-
let { uiState: e, categoryFilterStore: t, searchButtonsStore: n } = this.rootStore;
|
|
283
|
+
let { uiState: e, categoryFilterStore: t, searchButtonsStore: n } = this.rootStore, r = this.currentFilters.searchButton;
|
|
284
|
+
if (r) {
|
|
285
|
+
let e = v(r), n = e ? lt(e) : [];
|
|
286
|
+
(e == null ? void 0 : e.type) === "categories" && n.length > 0 ? (this.currentFilters.categories = this.currentFilters.categories.filter((e) => {
|
|
287
|
+
var t;
|
|
288
|
+
return n.includes((t = this.getCategoryIdByName(e)) == null ? -1 : t);
|
|
289
|
+
}), t.setOwner(r)) : (s.warn(`URLFilterManager: unknown categories search button: ${r}`), this.currentFilters.searchButton = null);
|
|
290
|
+
}
|
|
250
291
|
if (this.currentFilters.categories.length > 0) {
|
|
251
292
|
let n = this.currentFilters.categories.map((e) => this.rootStore.categoryStore.categories.find((t) => t.name.toLowerCase() === e.toLowerCase())).filter((e) => e !== void 0);
|
|
252
293
|
n.length > 0 ? (e.selectedCategoryFilters = n, t.state.selectedItems = n.map((e) => ({
|
|
253
294
|
id: e.id,
|
|
254
295
|
name: e.name
|
|
255
|
-
})), e.categoryFilterOpen = !0,
|
|
296
|
+
})), e.categoryFilterOpen = !0, s.log("URLFilterManager applied categories:", n.map((e) => e.name)), setTimeout(() => {
|
|
256
297
|
this.focusOnFilteredBooths(), this.rootStore.searchStore.setFocused(!0);
|
|
257
|
-
}, 100)) :
|
|
298
|
+
}, 100)) : s.warn("URLFilterManager: no categories found for names:", this.currentFilters.categories);
|
|
258
299
|
}
|
|
259
300
|
if (this.currentFilters.poiType) {
|
|
260
301
|
let t = this.rootStore.poiTypeStore.poiTypes.find((e) => e.name.toLowerCase() === this.currentFilters.poiType.toLowerCase());
|
|
261
|
-
t ? (e.selectedPoiTypeFilters = [t], n.setPoiFilterId(`${
|
|
302
|
+
t ? (e.selectedPoiTypeFilters = [t], n.setPoiFilterId(`${_.POI_TYPE}${t.id}`), s.log("URLFilterManager applied POI type:", t.name), setTimeout(() => {
|
|
262
303
|
this.focusOnFilteredBooths(), this.rootStore.searchStore.setFocused(!0);
|
|
263
|
-
}, 100)) :
|
|
304
|
+
}, 100)) : s.warn("URLFilterManager: no POI type found for name:", this.currentFilters.poiType);
|
|
264
305
|
}
|
|
265
306
|
if (this.currentFilters.poiTypes.length > 0) {
|
|
266
307
|
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,
|
|
308
|
+
t.length > 0 ? (e.selectedPoiTypeFilters = t, s.log("URLFilterManager applied POI types:", t.map((e) => e.name)), setTimeout(() => {
|
|
268
309
|
this.focusOnFilteredBooths(), this.rootStore.searchStore.setFocused(!0);
|
|
269
|
-
}, 100)) : (
|
|
310
|
+
}, 100)) : (s.warn("URLFilterManager: no POI types found for names:", this.currentFilters.poiTypes), this.currentFilters.poiTypes = []);
|
|
270
311
|
}
|
|
271
312
|
this.currentFilters.exhibitors && this.openExhibitorsList();
|
|
272
313
|
}
|
|
273
314
|
filterSearch() {
|
|
274
|
-
let { uiState: e } = this.rootStore, t =
|
|
315
|
+
let { uiState: e } = this.rootStore, t = this.owningSearchButtonId();
|
|
316
|
+
if (t) return `?${i({ filters: {
|
|
317
|
+
searchButton: t,
|
|
318
|
+
categories: e.selectedCategoryFilters.map((e) => e.name.toLowerCase())
|
|
319
|
+
} })}`;
|
|
320
|
+
let n = new URLSearchParams();
|
|
275
321
|
if (e.selectedCategoryFilters.length > 0) {
|
|
276
|
-
let
|
|
277
|
-
|
|
322
|
+
let t = ve(e.selectedCategoryFilters.map((e) => e.name.toLowerCase()));
|
|
323
|
+
t && n.set(x.CATEGORIES, t);
|
|
278
324
|
}
|
|
279
325
|
if (e.selectedPoiTypeFilters.length > 0 && e.selectedCategoryFilters.length === 0) if (e.selectedPoiTypeFilters.length === 1) {
|
|
280
|
-
let
|
|
281
|
-
if (
|
|
282
|
-
let e =
|
|
283
|
-
e &&
|
|
326
|
+
let t = e.selectedPoiTypeFilters[0].name.toLowerCase();
|
|
327
|
+
if (t) {
|
|
328
|
+
let e = Ce(t);
|
|
329
|
+
e && n.set(x.POI_TYPE, e);
|
|
284
330
|
}
|
|
285
331
|
} else {
|
|
286
|
-
let
|
|
287
|
-
|
|
332
|
+
let t = ve(e.selectedPoiTypeFilters.map((e) => e.name.toLowerCase()));
|
|
333
|
+
t && n.set(x.POI_TYPES, t);
|
|
288
334
|
}
|
|
289
|
-
return this.currentFilters.exhibitors && e.selectedCategoryFilters.length === 0 && e.selectedPoiTypeFilters.length === 0 &&
|
|
335
|
+
return this.currentFilters.exhibitors && e.selectedCategoryFilters.length === 0 && e.selectedPoiTypeFilters.length === 0 && n.set(x.EXHIBITORS, "true"), n.toString() ? `?${n.toString()}` : "";
|
|
290
336
|
}
|
|
291
337
|
updateURLFromFilters() {
|
|
292
338
|
let { uiState: e } = this.rootStore;
|
|
@@ -294,24 +340,29 @@ var y = {
|
|
|
294
340
|
categories: e.selectedCategoryFilters.length > 0 ? e.selectedCategoryFilters.map((e) => e.name) : [],
|
|
295
341
|
poiType: e.selectedPoiTypeFilters.length === 1 && e.selectedCategoryFilters.length === 0 ? e.selectedPoiTypeFilters[0].name : null,
|
|
296
342
|
poiTypes: e.selectedPoiTypeFilters.length > 1 && e.selectedCategoryFilters.length === 0 ? e.selectedPoiTypeFilters.map((e) => e.name) : [],
|
|
297
|
-
exhibitors: this.currentFilters.exhibitors
|
|
343
|
+
exhibitors: this.currentFilters.exhibitors,
|
|
344
|
+
searchButton: this.owningSearchButtonId()
|
|
298
345
|
};
|
|
299
346
|
}
|
|
347
|
+
owningSearchButtonId() {
|
|
348
|
+
return this.rootStore.uiState.selectedCategoryFilters.length === 0 ? null : this.rootStore.categoryFilterStore.scopeButtonId;
|
|
349
|
+
}
|
|
300
350
|
setCategories(e) {
|
|
301
|
-
this.currentFilters.categories =
|
|
351
|
+
this.currentFilters.categories = Se(e), this.currentFilters.poiType = null, this.isInitialized && this.updateURLFromFilters();
|
|
302
352
|
}
|
|
303
353
|
setPoiType(e) {
|
|
304
|
-
this.currentFilters.poiType =
|
|
354
|
+
this.currentFilters.poiType = Te(e), this.currentFilters.poiTypes = [], this.currentFilters.categories = [], this.isInitialized && this.updateURLFromFilters();
|
|
305
355
|
}
|
|
306
356
|
setPoiTypes(e) {
|
|
307
|
-
this.currentFilters.poiTypes =
|
|
357
|
+
this.currentFilters.poiTypes = Se(e), this.currentFilters.poiType = null, this.currentFilters.categories = [], this.isInitialized && this.updateURLFromFilters();
|
|
308
358
|
}
|
|
309
359
|
clearAllFilters() {
|
|
310
360
|
this.currentFilters = {
|
|
311
361
|
categories: [],
|
|
312
362
|
poiType: null,
|
|
313
363
|
poiTypes: [],
|
|
314
|
-
exhibitors: !1
|
|
364
|
+
exhibitors: !1,
|
|
365
|
+
searchButton: null
|
|
315
366
|
};
|
|
316
367
|
let { uiState: e } = this.rootStore;
|
|
317
368
|
e.categoryFilterOpen = !1, this.updateURLFromFilters();
|
|
@@ -320,27 +371,27 @@ var y = {
|
|
|
320
371
|
return { ...this.currentFilters };
|
|
321
372
|
}
|
|
322
373
|
setupReactions() {
|
|
323
|
-
|
|
374
|
+
be(() => this.rootStore.uiState.selectedCategoryFilters, (e) => {
|
|
324
375
|
if (this.isInitialized && e.length > 0) {
|
|
325
|
-
let t =
|
|
376
|
+
let t = Se(e.map((e) => e.name));
|
|
326
377
|
this.setCategories(t);
|
|
327
378
|
}
|
|
328
|
-
}),
|
|
379
|
+
}), be(() => this.rootStore.uiState.selectedPoiTypeFilters, (e) => {
|
|
329
380
|
if (this.isInitialized && e.length > 0) if (e.length === 1) {
|
|
330
|
-
let t =
|
|
381
|
+
let t = Te(e[0].name);
|
|
331
382
|
t && this.setPoiType(t);
|
|
332
383
|
} else {
|
|
333
|
-
let t =
|
|
384
|
+
let t = Se(e.map((e) => e.name));
|
|
334
385
|
this.setPoiTypes(t);
|
|
335
386
|
}
|
|
336
387
|
});
|
|
337
388
|
}
|
|
338
389
|
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
|
|
390
|
+
if (e.categories.length > 0 && (e.poiType || e.poiTypes.length > 0)) return s.warn("Categories and POI types cannot be active simultaneously"), !1;
|
|
391
|
+
if (e.poiType && e.poiTypes.length > 0) return s.warn("Both single POI type and multiple POI types cannot be active simultaneously"), !1;
|
|
392
|
+
for (let t of e.categories) if (!this.getCategoryIdByName(t)) return s.warn(`Category not found: ${t}`), !1;
|
|
393
|
+
if (e.poiType && !this.getPoiTypeIdByName(e.poiType)) return s.warn(`POI type not found: ${e.poiType}`), !1;
|
|
394
|
+
for (let t of e.poiTypes) if (!this.getPoiTypeIdByName(t)) return s.warn(`POI type not found: ${t}`), !1;
|
|
344
395
|
return !0;
|
|
345
396
|
}
|
|
346
397
|
getCategoryIdByName(e) {
|
|
@@ -353,7 +404,7 @@ var y = {
|
|
|
353
404
|
}
|
|
354
405
|
focusOnFilteredBooths() {
|
|
355
406
|
if (!this.rootStore.layerStore.layersLoaded) {
|
|
356
|
-
|
|
407
|
+
be(() => this.rootStore.layerStore.layersLoaded, () => {
|
|
357
408
|
this.focusOnFilteredBooths();
|
|
358
409
|
}, { fireImmediately: !1 });
|
|
359
410
|
return;
|
|
@@ -381,9 +432,9 @@ var y = {
|
|
|
381
432
|
focused: !1
|
|
382
433
|
}, setTimeout(() => {
|
|
383
434
|
this.rootStore.searchStore.setFocused(!0);
|
|
384
|
-
}, 100),
|
|
435
|
+
}, 100), s.log("URLFilterManager opened exhibitors list");
|
|
385
436
|
}
|
|
386
|
-
},
|
|
437
|
+
}, pt = b(y.prototype, "currentFilters", [l], {
|
|
387
438
|
configurable: !0,
|
|
388
439
|
enumerable: !0,
|
|
389
440
|
writable: !0,
|
|
@@ -392,18 +443,19 @@ var y = {
|
|
|
392
443
|
categories: [],
|
|
393
444
|
poiType: null,
|
|
394
445
|
poiTypes: [],
|
|
395
|
-
exhibitors: !1
|
|
446
|
+
exhibitors: !1,
|
|
447
|
+
searchButton: null
|
|
396
448
|
};
|
|
397
449
|
}
|
|
398
|
-
}),
|
|
450
|
+
}), mt = b(y.prototype, "isInitialized", [l], {
|
|
399
451
|
configurable: !0,
|
|
400
452
|
enumerable: !0,
|
|
401
453
|
writable: !0,
|
|
402
454
|
initializer: function() {
|
|
403
455
|
return !1;
|
|
404
456
|
}
|
|
405
|
-
}),
|
|
406
|
-
function
|
|
457
|
+
}), b(y.prototype, "initialize", [u], Object.getOwnPropertyDescriptor(y.prototype, "initialize"), y.prototype), b(y.prototype, "parseURLFilters", [u], Object.getOwnPropertyDescriptor(y.prototype, "parseURLFilters"), y.prototype), b(y.prototype, "applyFiltersToStore", [u], Object.getOwnPropertyDescriptor(y.prototype, "applyFiltersToStore"), y.prototype), b(y.prototype, "updateURLFromFilters", [u], Object.getOwnPropertyDescriptor(y.prototype, "updateURLFromFilters"), y.prototype), b(y.prototype, "setCategories", [u], Object.getOwnPropertyDescriptor(y.prototype, "setCategories"), y.prototype), b(y.prototype, "setPoiType", [u], Object.getOwnPropertyDescriptor(y.prototype, "setPoiType"), y.prototype), b(y.prototype, "setPoiTypes", [u], Object.getOwnPropertyDescriptor(y.prototype, "setPoiTypes"), y.prototype), b(y.prototype, "clearAllFilters", [u], Object.getOwnPropertyDescriptor(y.prototype, "clearAllFilters"), y.prototype), b(y.prototype, "focusOnFilteredBooths", [u], Object.getOwnPropertyDescriptor(y.prototype, "focusOnFilteredBooths"), y.prototype), b(y.prototype, "openExhibitorsList", [u], Object.getOwnPropertyDescriptor(y.prototype, "openExhibitorsList"), y.prototype), y), S;
|
|
458
|
+
function _t(e, t, n, r, i) {
|
|
407
459
|
var a = {};
|
|
408
460
|
return Object.keys(r).forEach(function(e) {
|
|
409
461
|
a[e] = r[e];
|
|
@@ -411,7 +463,7 @@ function dt(e, t, n, r, i) {
|
|
|
411
463
|
return r(e, t, n) || n;
|
|
412
464
|
}, 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
465
|
}
|
|
414
|
-
var
|
|
466
|
+
var vt = (S = class {
|
|
415
467
|
constructor(e) {
|
|
416
468
|
this.rootStore = void 0, this.rootStore = e;
|
|
417
469
|
}
|
|
@@ -424,8 +476,8 @@ var ft = (b = class {
|
|
|
424
476
|
get hasRoutableBookmarks() {
|
|
425
477
|
return this.rootStore.exhibitorStore.bookmarked.length > 0 || this.bookmarkedBooths.length > 0;
|
|
426
478
|
}
|
|
427
|
-
},
|
|
428
|
-
function
|
|
479
|
+
}, _t(S.prototype, "bookmarkedBooths", [c], Object.getOwnPropertyDescriptor(S.prototype, "bookmarkedBooths"), S.prototype), _t(S.prototype, "total", [c], Object.getOwnPropertyDescriptor(S.prototype, "total"), S.prototype), _t(S.prototype, "hasRoutableBookmarks", [c], Object.getOwnPropertyDescriptor(S.prototype, "hasRoutableBookmarks"), S.prototype), S), C, yt;
|
|
480
|
+
function bt(e, t, n, r) {
|
|
429
481
|
n && Object.defineProperty(e, t, {
|
|
430
482
|
enumerable: n.enumerable,
|
|
431
483
|
configurable: n.configurable,
|
|
@@ -433,7 +485,7 @@ function mt(e, t, n, r) {
|
|
|
433
485
|
value: n.initializer ? n.initializer.call(r) : void 0
|
|
434
486
|
});
|
|
435
487
|
}
|
|
436
|
-
function
|
|
488
|
+
function w(e, t, n, r, i) {
|
|
437
489
|
var a = {};
|
|
438
490
|
return Object.keys(r).forEach(function(e) {
|
|
439
491
|
a[e] = r[e];
|
|
@@ -441,12 +493,12 @@ function S(e, t, n, r, i) {
|
|
|
441
493
|
return r(e, t, n) || n;
|
|
442
494
|
}, 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
495
|
}
|
|
444
|
-
var
|
|
496
|
+
var xt = (C = class {
|
|
445
497
|
get publicRootStore() {
|
|
446
498
|
return this.rootStore;
|
|
447
499
|
}
|
|
448
500
|
constructor(e) {
|
|
449
|
-
this.rootStore = void 0,
|
|
501
|
+
this.rootStore = void 0, bt(this, "state", yt, this), this.rootStore = e;
|
|
450
502
|
}
|
|
451
503
|
openFilter() {
|
|
452
504
|
this.state.isOpen = !0, this.state.pendingItems = [...this.state.selectedItems];
|
|
@@ -466,7 +518,7 @@ var ht = (x = class {
|
|
|
466
518
|
setPendingItems(e) {
|
|
467
519
|
this.state.pendingItems = e;
|
|
468
520
|
}
|
|
469
|
-
},
|
|
521
|
+
}, yt = w(C.prototype, "state", [l], {
|
|
470
522
|
configurable: !0,
|
|
471
523
|
enumerable: !0,
|
|
472
524
|
writable: !0,
|
|
@@ -477,8 +529,16 @@ var ht = (x = class {
|
|
|
477
529
|
pendingItems: []
|
|
478
530
|
};
|
|
479
531
|
}
|
|
480
|
-
}),
|
|
481
|
-
function
|
|
532
|
+
}), w(C.prototype, "openFilter", [u], Object.getOwnPropertyDescriptor(C.prototype, "openFilter"), C.prototype), w(C.prototype, "closeFilter", [u], Object.getOwnPropertyDescriptor(C.prototype, "closeFilter"), C.prototype), w(C.prototype, "applyFilter", [u], Object.getOwnPropertyDescriptor(C.prototype, "applyFilter"), C.prototype), w(C.prototype, "resetFilter", [u], Object.getOwnPropertyDescriptor(C.prototype, "resetFilter"), C.prototype), w(C.prototype, "clearPendingItems", [u], Object.getOwnPropertyDescriptor(C.prototype, "clearPendingItems"), C.prototype), w(C.prototype, "setPendingItems", [u], Object.getOwnPropertyDescriptor(C.prototype, "setPendingItems"), C.prototype), C), St, T, Ct, wt;
|
|
533
|
+
function Tt(e, t, n, r) {
|
|
534
|
+
n && Object.defineProperty(e, t, {
|
|
535
|
+
enumerable: n.enumerable,
|
|
536
|
+
configurable: n.configurable,
|
|
537
|
+
writable: n.writable,
|
|
538
|
+
value: n.initializer ? n.initializer.call(r) : void 0
|
|
539
|
+
});
|
|
540
|
+
}
|
|
541
|
+
function E(e, t, n, r, i) {
|
|
482
542
|
var a = {};
|
|
483
543
|
return Object.keys(r).forEach(function(e) {
|
|
484
544
|
a[e] = r[e];
|
|
@@ -486,7 +546,14 @@ function gt(e, t, n, r, i) {
|
|
|
486
546
|
return r(e, t, n) || n;
|
|
487
547
|
}, 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
548
|
}
|
|
489
|
-
var
|
|
549
|
+
var Et = {
|
|
550
|
+
buttonId: null,
|
|
551
|
+
categoryIds: null,
|
|
552
|
+
title: null
|
|
553
|
+
}, Dt = (St = l.ref, T = class extends xt {
|
|
554
|
+
constructor(...e) {
|
|
555
|
+
super(...e), Tt(this, "scopeButtonId", Ct, this), Tt(this, "viewScope", wt, this);
|
|
556
|
+
}
|
|
490
557
|
get filteredExhibitors() {
|
|
491
558
|
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
559
|
}
|
|
@@ -496,12 +563,35 @@ var _t = (C = class extends ht {
|
|
|
496
563
|
return t.id === ((n = e.exhibitors[0]) == null ? void 0 : n.id);
|
|
497
564
|
}));
|
|
498
565
|
}
|
|
499
|
-
get
|
|
500
|
-
return this.
|
|
566
|
+
get viewsOwnSelection() {
|
|
567
|
+
return this.viewScope !== null && this.viewScope.buttonId === this.scopeButtonId;
|
|
568
|
+
}
|
|
569
|
+
openFilter() {
|
|
570
|
+
this.openScope(Et);
|
|
571
|
+
}
|
|
572
|
+
openFilterForButton(e, t, n) {
|
|
573
|
+
this.openScope({
|
|
574
|
+
buttonId: e,
|
|
575
|
+
categoryIds: t,
|
|
576
|
+
title: n
|
|
577
|
+
});
|
|
578
|
+
}
|
|
579
|
+
setOwner(e) {
|
|
580
|
+
this.scopeButtonId = e;
|
|
581
|
+
}
|
|
582
|
+
openScope(e) {
|
|
583
|
+
this.viewScope = e, this.state.isOpen = !0, this.state.pendingItems = this.viewsOwnSelection ? [...this.state.selectedItems] : [];
|
|
584
|
+
}
|
|
585
|
+
applyFilter() {
|
|
586
|
+
var e, t;
|
|
587
|
+
this.setOwner(this.state.pendingItems.length > 0 ? (e = (t = this.viewScope) == null ? void 0 : t.buttonId) == null ? null : e : null), super.applyFilter();
|
|
588
|
+
}
|
|
589
|
+
clearSelection() {
|
|
590
|
+
this.state.selectedItems = [], this.state.pendingItems = [], this.rootStore.uiState.selectedCategoryFilters = [], this.rootStore.uiState.categoryFilterOpen = !1, this.setOwner(null);
|
|
501
591
|
}
|
|
502
592
|
updateUIState() {
|
|
503
593
|
this.rootStore.uiState.menu = !1;
|
|
504
|
-
let e = this.state.selectedItems.map((e) => this.rootStore.categoryStore.categories.find((t) => t.id === e.id)).filter(
|
|
594
|
+
let e = this.state.selectedItems.map((e) => this.rootStore.categoryStore.categories.find((t) => t.id === e.id)).filter((e) => e !== void 0);
|
|
505
595
|
this.rootStore.uiState.selectedCategoryFilters = e, this.rootStore.uiState.categoryFilterOpen = !0, this.rootStore.searchStore.setFocused(!0), this.rootStore.moveToList(), this.rootStore.showMap();
|
|
506
596
|
let t = e.map((e) => e.name);
|
|
507
597
|
this.rootStore.urlFilterManager.setCategories(t);
|
|
@@ -516,14 +606,28 @@ var _t = (C = class extends ht {
|
|
|
516
606
|
return this.state.pendingItems.length === 0 ? this.rootStore.exhibitorStore.exhibitors.length : this.rootStore.exhibitorStore.exhibitors.filter((e) => e.categories.some((e) => this.state.pendingItems.some((t) => t.id === e.id))).length;
|
|
517
607
|
}
|
|
518
608
|
resetFilter() {
|
|
519
|
-
this.
|
|
609
|
+
this.clearSelection(), this.rootStore.uiState.list = {
|
|
520
610
|
type: "search",
|
|
521
611
|
text: "",
|
|
522
612
|
focused: !1
|
|
523
613
|
}, this.rootStore.urlFilterManager.setCategories([]);
|
|
524
614
|
}
|
|
525
|
-
},
|
|
526
|
-
|
|
615
|
+
}, Ct = E(T.prototype, "scopeButtonId", [l], {
|
|
616
|
+
configurable: !0,
|
|
617
|
+
enumerable: !0,
|
|
618
|
+
writable: !0,
|
|
619
|
+
initializer: function() {
|
|
620
|
+
return null;
|
|
621
|
+
}
|
|
622
|
+
}), wt = E(T.prototype, "viewScope", [St], {
|
|
623
|
+
configurable: !0,
|
|
624
|
+
enumerable: !0,
|
|
625
|
+
writable: !0,
|
|
626
|
+
initializer: function() {
|
|
627
|
+
return null;
|
|
628
|
+
}
|
|
629
|
+
}), E(T.prototype, "filteredExhibitors", [c], Object.getOwnPropertyDescriptor(T.prototype, "filteredExhibitors"), T.prototype), E(T.prototype, "filteredBooths", [c], Object.getOwnPropertyDescriptor(T.prototype, "filteredBooths"), T.prototype), E(T.prototype, "viewsOwnSelection", [c], Object.getOwnPropertyDescriptor(T.prototype, "viewsOwnSelection"), T.prototype), E(T.prototype, "openFilter", [u], Object.getOwnPropertyDescriptor(T.prototype, "openFilter"), T.prototype), E(T.prototype, "openFilterForButton", [u], Object.getOwnPropertyDescriptor(T.prototype, "openFilterForButton"), T.prototype), E(T.prototype, "setOwner", [u], Object.getOwnPropertyDescriptor(T.prototype, "setOwner"), T.prototype), E(T.prototype, "openScope", [u], Object.getOwnPropertyDescriptor(T.prototype, "openScope"), T.prototype), E(T.prototype, "applyFilter", [u], Object.getOwnPropertyDescriptor(T.prototype, "applyFilter"), T.prototype), E(T.prototype, "clearSelection", [u], Object.getOwnPropertyDescriptor(T.prototype, "clearSelection"), T.prototype), E(T.prototype, "resetFilter", [u], Object.getOwnPropertyDescriptor(T.prototype, "resetFilter"), T.prototype), T), Ot, kt;
|
|
630
|
+
function At(e, t, n, r) {
|
|
527
631
|
n && Object.defineProperty(e, t, {
|
|
528
632
|
enumerable: n.enumerable,
|
|
529
633
|
configurable: n.configurable,
|
|
@@ -531,7 +635,7 @@ function bt(e, t, n, r) {
|
|
|
531
635
|
value: n.initializer ? n.initializer.call(r) : void 0
|
|
532
636
|
});
|
|
533
637
|
}
|
|
534
|
-
function
|
|
638
|
+
function jt(e, t, n, r, i) {
|
|
535
639
|
var a = {};
|
|
536
640
|
return Object.keys(r).forEach(function(e) {
|
|
537
641
|
a[e] = r[e];
|
|
@@ -539,17 +643,17 @@ function xt(e, t, n, r, i) {
|
|
|
539
643
|
return r(e, t, n) || n;
|
|
540
644
|
}, 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
645
|
}
|
|
542
|
-
var
|
|
646
|
+
var Mt = (Ot = class {
|
|
543
647
|
constructor(e) {
|
|
544
|
-
this.keys = e,
|
|
648
|
+
this.keys = e, At(this, "engine", kt, this), this.enginePromise = null, this.lastCollection = null;
|
|
545
649
|
}
|
|
546
650
|
loadEngine() {
|
|
547
651
|
return this.enginePromise || (this.enginePromise = this.buildEngine()), this.enginePromise;
|
|
548
652
|
}
|
|
549
653
|
async buildEngine() {
|
|
550
654
|
try {
|
|
551
|
-
let { default: e } = await import("./fuse-
|
|
552
|
-
|
|
655
|
+
let { default: e } = await import("./fuse-jVBfzHic.js").then((e) => e.n);
|
|
656
|
+
ee(() => {
|
|
553
657
|
this.engine = new e([], {
|
|
554
658
|
keys: this.keys,
|
|
555
659
|
ignoreFieldNorm: !0,
|
|
@@ -565,13 +669,13 @@ var St = (vt = class {
|
|
|
565
669
|
search(e, t) {
|
|
566
670
|
return !this.engine || !(e != null && e.length) || !t ? [] : (this.lastCollection !== e && (this.engine.setCollection(e), this.lastCollection = e), this.engine.search(t));
|
|
567
671
|
}
|
|
568
|
-
},
|
|
672
|
+
}, kt = jt(Ot.prototype, "engine", [l], {
|
|
569
673
|
configurable: !0,
|
|
570
674
|
enumerable: !0,
|
|
571
675
|
writable: !0,
|
|
572
676
|
initializer: null
|
|
573
|
-
}),
|
|
574
|
-
function
|
|
677
|
+
}), Ot), D, Nt, Pt;
|
|
678
|
+
function Ft(e, t, n, r) {
|
|
575
679
|
n && Object.defineProperty(e, t, {
|
|
576
680
|
enumerable: n.enumerable,
|
|
577
681
|
configurable: n.configurable,
|
|
@@ -579,7 +683,7 @@ function Tt(e, t, n, r) {
|
|
|
579
683
|
value: n.initializer ? n.initializer.call(r) : void 0
|
|
580
684
|
});
|
|
581
685
|
}
|
|
582
|
-
function
|
|
686
|
+
function It(e, t, n, r, i) {
|
|
583
687
|
var a = {};
|
|
584
688
|
return Object.keys(r).forEach(function(e) {
|
|
585
689
|
a[e] = r[e];
|
|
@@ -587,9 +691,9 @@ function Et(e, t, n, r, i) {
|
|
|
587
691
|
return r(e, t, n) || n;
|
|
588
692
|
}, 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
693
|
}
|
|
590
|
-
var
|
|
694
|
+
var Lt = (D = class {
|
|
591
695
|
constructor() {
|
|
592
|
-
|
|
696
|
+
Ft(this, "enabled", Nt, this), Ft(this, "unreadCount", Pt, this);
|
|
593
697
|
}
|
|
594
698
|
setEnabled(e) {
|
|
595
699
|
this.enabled = e;
|
|
@@ -597,22 +701,22 @@ var Dt = (w = class {
|
|
|
597
701
|
setUnreadCount(e) {
|
|
598
702
|
this.unreadCount = e;
|
|
599
703
|
}
|
|
600
|
-
},
|
|
704
|
+
}, Nt = It(D.prototype, "enabled", [l], {
|
|
601
705
|
configurable: !0,
|
|
602
706
|
enumerable: !0,
|
|
603
707
|
writable: !0,
|
|
604
708
|
initializer: function() {
|
|
605
709
|
return !1;
|
|
606
710
|
}
|
|
607
|
-
}),
|
|
711
|
+
}), Pt = It(D.prototype, "unreadCount", [l], {
|
|
608
712
|
configurable: !0,
|
|
609
713
|
enumerable: !0,
|
|
610
714
|
writable: !0,
|
|
611
715
|
initializer: function() {
|
|
612
716
|
return 0;
|
|
613
717
|
}
|
|
614
|
-
}),
|
|
615
|
-
function
|
|
718
|
+
}), It(D.prototype, "setEnabled", [u], Object.getOwnPropertyDescriptor(D.prototype, "setEnabled"), D.prototype), It(D.prototype, "setUnreadCount", [u], Object.getOwnPropertyDescriptor(D.prototype, "setUnreadCount"), D.prototype), D), Rt, zt, Bt, Vt, Ht, O, Ut, Wt, Gt;
|
|
719
|
+
function Kt(e, t, n, r) {
|
|
616
720
|
n && Object.defineProperty(e, t, {
|
|
617
721
|
enumerable: n.enumerable,
|
|
618
722
|
configurable: n.configurable,
|
|
@@ -620,7 +724,7 @@ function It(e, t, n, r) {
|
|
|
620
724
|
value: n.initializer ? n.initializer.call(r) : void 0
|
|
621
725
|
});
|
|
622
726
|
}
|
|
623
|
-
function
|
|
727
|
+
function k(e, t, n, r, i) {
|
|
624
728
|
var a = {};
|
|
625
729
|
return Object.keys(r).forEach(function(e) {
|
|
626
730
|
a[e] = r[e];
|
|
@@ -628,13 +732,13 @@ function E(e, t, n, r, i) {
|
|
|
628
732
|
return r(e, t, n) || n;
|
|
629
733
|
}, 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
734
|
}
|
|
631
|
-
var
|
|
632
|
-
function
|
|
735
|
+
var qt = !0;
|
|
736
|
+
function Jt() {
|
|
633
737
|
return typeof window > "u" || window.navigator.onLine;
|
|
634
738
|
}
|
|
635
|
-
var
|
|
739
|
+
var Yt = (Rt = c({ keepAlive: !0 }), zt = c({ keepAlive: !0 }), Bt = c({ keepAlive: !0 }), Vt = c({ keepAlive: !0 }), Ht = c({ keepAlive: !0 }), O = class {
|
|
636
740
|
constructor(e) {
|
|
637
|
-
this.rootStore = void 0,
|
|
741
|
+
this.rootStore = void 0, Kt(this, "mapViewMode", Ut, this), Kt(this, "maplibreSelected", Wt, this), Kt(this, "isOnline", Gt, this), this.cameraPortBox = l.box(null, { deep: !1 }), this.handleOnline = () => this.setOnline(!0), this.handleOffline = () => this.setOnline(!1), this.rootStore = e, this.mapViewMode = this.getInitialViewMode(), this.maplibreSelected = this.mapViewMode !== "floorplan", typeof window < "u" && (window.addEventListener("online", this.handleOnline), window.addEventListener("offline", this.handleOffline));
|
|
638
742
|
}
|
|
639
743
|
dispose() {
|
|
640
744
|
typeof window > "u" || (window.removeEventListener("online", this.handleOnline), window.removeEventListener("offline", this.handleOffline));
|
|
@@ -658,16 +762,16 @@ var zt = (Ot = s({ keepAlive: !0 }), kt = s({ keepAlive: !0 }), At = s({ keepAli
|
|
|
658
762
|
this.mapViewMode = "floorplan", this.maplibreSelected = !1;
|
|
659
763
|
}
|
|
660
764
|
get hideModeSwitchButton() {
|
|
661
|
-
return !this.maplibreEnabled || !p.allow3dView ||
|
|
765
|
+
return !this.maplibreEnabled || !p.allow3dView || qt;
|
|
662
766
|
}
|
|
663
767
|
get maplibreEnabled() {
|
|
664
768
|
var e, t, n;
|
|
665
769
|
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);
|
|
666
|
-
return this.useMaplibreMap && !!(!((n =
|
|
770
|
+
return this.useMaplibreMap && !!(!((n = Le()) == null || (n = n.properties) == null) && n.config) && (this.isOnline || i);
|
|
667
771
|
}
|
|
668
772
|
get useMaplibreMap() {
|
|
669
773
|
var e, t;
|
|
670
|
-
return (e = p.enableExperimentalMaplibre) == null ? ((t =
|
|
774
|
+
return (e = p.enableExperimentalMaplibre) == null ? ((t = Le()) == null || (t = t.properties) == null || (t = t.config) == null ? void 0 : t.type) === "maplibre" : e;
|
|
671
775
|
}
|
|
672
776
|
get showMaplibre() {
|
|
673
777
|
return this.maplibreEnabled && (this.mapViewMode === "map2d" || this.mapViewMode === "map3d");
|
|
@@ -678,29 +782,29 @@ var zt = (Ot = s({ keepAlive: !0 }), kt = s({ keepAlive: !0 }), At = s({ keepAli
|
|
|
678
782
|
getInitialViewMode() {
|
|
679
783
|
return this.maplibreEnabled ? this.rootStore.uiState.is3DView ? "map3d" : "map2d" : "floorplan";
|
|
680
784
|
}
|
|
681
|
-
},
|
|
785
|
+
}, Ut = k(O.prototype, "mapViewMode", [l], {
|
|
682
786
|
configurable: !0,
|
|
683
787
|
enumerable: !0,
|
|
684
788
|
writable: !0,
|
|
685
789
|
initializer: function() {
|
|
686
790
|
return "floorplan";
|
|
687
791
|
}
|
|
688
|
-
}),
|
|
792
|
+
}), Wt = k(O.prototype, "maplibreSelected", [l], {
|
|
689
793
|
configurable: !0,
|
|
690
794
|
enumerable: !0,
|
|
691
795
|
writable: !0,
|
|
692
796
|
initializer: function() {
|
|
693
797
|
return !1;
|
|
694
798
|
}
|
|
695
|
-
}),
|
|
799
|
+
}), Gt = k(O.prototype, "isOnline", [l], {
|
|
696
800
|
configurable: !0,
|
|
697
801
|
enumerable: !0,
|
|
698
802
|
writable: !0,
|
|
699
803
|
initializer: function() {
|
|
700
|
-
return
|
|
804
|
+
return Jt();
|
|
701
805
|
}
|
|
702
|
-
}),
|
|
703
|
-
function
|
|
806
|
+
}), k(O.prototype, "setOnline", [u], Object.getOwnPropertyDescriptor(O.prototype, "setOnline"), O.prototype), k(O.prototype, "setCameraPort", [u], Object.getOwnPropertyDescriptor(O.prototype, "setCameraPort"), O.prototype), k(O.prototype, "clearCameraPortIfCurrent", [u], Object.getOwnPropertyDescriptor(O.prototype, "clearCameraPortIfCurrent"), O.prototype), k(O.prototype, "activateMaplibre", [u], Object.getOwnPropertyDescriptor(O.prototype, "activateMaplibre"), O.prototype), k(O.prototype, "deactivateMaplibre", [u], Object.getOwnPropertyDescriptor(O.prototype, "deactivateMaplibre"), O.prototype), k(O.prototype, "hideModeSwitchButton", [Rt], Object.getOwnPropertyDescriptor(O.prototype, "hideModeSwitchButton"), O.prototype), k(O.prototype, "maplibreEnabled", [zt], Object.getOwnPropertyDescriptor(O.prototype, "maplibreEnabled"), O.prototype), k(O.prototype, "useMaplibreMap", [Bt], Object.getOwnPropertyDescriptor(O.prototype, "useMaplibreMap"), O.prototype), k(O.prototype, "showMaplibre", [Vt], Object.getOwnPropertyDescriptor(O.prototype, "showMaplibre"), O.prototype), k(O.prototype, "isMap3d", [Ht], Object.getOwnPropertyDescriptor(O.prototype, "isMap3d"), O.prototype), O), A;
|
|
807
|
+
function Xt(e, t, n, r, i) {
|
|
704
808
|
var a = {};
|
|
705
809
|
return Object.keys(r).forEach(function(e) {
|
|
706
810
|
a[e] = r[e];
|
|
@@ -708,7 +812,7 @@ function Bt(e, t, n, r, i) {
|
|
|
708
812
|
return r(e, t, n) || n;
|
|
709
813
|
}, 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;
|
|
710
814
|
}
|
|
711
|
-
var
|
|
815
|
+
var Zt = (A = class {
|
|
712
816
|
constructor(e) {
|
|
713
817
|
this.rootStore = e;
|
|
714
818
|
}
|
|
@@ -728,17 +832,17 @@ var Vt = (D = class {
|
|
|
728
832
|
}
|
|
729
833
|
get fullSizeOffset() {
|
|
730
834
|
let e = this.ui, t = e.wsOccupiedHeightPx, n = e.bannerType === "free" && !e.freeBannerDismissed ? 40 : 0;
|
|
731
|
-
if (e.details && !(e.details instanceof
|
|
835
|
+
if (e.details && !(e.details instanceof h)) return t + n + 20;
|
|
732
836
|
let r = e.shouldShowSearchButtons ? 54 : 0;
|
|
733
837
|
return t + n + 54 + 20 + r;
|
|
734
838
|
}
|
|
735
|
-
},
|
|
839
|
+
}, Xt(A.prototype, "mediumSizeMultiplier", [c], Object.getOwnPropertyDescriptor(A.prototype, "mediumSizeMultiplier"), A.prototype), Xt(A.prototype, "fullSizeOffset", [c], Object.getOwnPropertyDescriptor(A.prototype, "fullSizeOffset"), A.prototype), A), Qt = {
|
|
736
840
|
active: !1,
|
|
737
841
|
key: "",
|
|
738
842
|
matchingMarkers: []
|
|
739
843
|
};
|
|
740
|
-
function
|
|
741
|
-
if (!e.length || t) return
|
|
844
|
+
function $t(e, t, n, r) {
|
|
845
|
+
if (!e.length || t) return Qt;
|
|
742
846
|
let i = new Set(e), a = new Map(r.map((e) => [e.boothId, e])), o = [];
|
|
743
847
|
for (let e of n) {
|
|
744
848
|
if (e.poiTypeId == null || !i.has(e.poiTypeId)) continue;
|
|
@@ -749,12 +853,12 @@ function Ut(e, t, n, r) {
|
|
|
749
853
|
active: !0,
|
|
750
854
|
key: [...new Set(o.map((e) => e.boothId))].sort((e, t) => e - t).join(","),
|
|
751
855
|
matchingMarkers: o
|
|
752
|
-
} :
|
|
856
|
+
} : Qt;
|
|
753
857
|
}
|
|
754
858
|
//#endregion
|
|
755
859
|
//#region src/store/PoiMarkerStore.ts
|
|
756
|
-
var
|
|
757
|
-
function
|
|
860
|
+
var en, tn, nn, rn, j;
|
|
861
|
+
function an(e, t, n, r, i) {
|
|
758
862
|
var a = {};
|
|
759
863
|
return Object.keys(r).forEach(function(e) {
|
|
760
864
|
a[e] = r[e];
|
|
@@ -762,9 +866,9 @@ function k(e, t, n, r, i) {
|
|
|
762
866
|
return r(e, t, n) || n;
|
|
763
867
|
}, 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;
|
|
764
868
|
}
|
|
765
|
-
var
|
|
869
|
+
var on = (en = c({ keepAlive: !0 }), tn = c({ keepAlive: !0 }), nn = c({ keepAlive: !0 }), rn = c({ keepAlive: !0 }), j = class {
|
|
766
870
|
constructor(e) {
|
|
767
|
-
this.rootStore = void 0, this.markersBox =
|
|
871
|
+
this.rootStore = void 0, this.markersBox = l.box([], { deep: !1 }), this.generation = 0, this.rootStore = e;
|
|
768
872
|
}
|
|
769
873
|
get markers() {
|
|
770
874
|
return this.markersBox.get();
|
|
@@ -784,24 +888,24 @@ var Jt = (Wt = s({ keepAlive: !0 }), Gt = s({ keepAlive: !0 }), Kt = s({ keepAli
|
|
|
784
888
|
}
|
|
785
889
|
get outdoorFilter() {
|
|
786
890
|
let { uiState: e, boothStore: t } = this.rootStore;
|
|
787
|
-
return
|
|
891
|
+
return $t(e.selectedPoiTypeFilters.map((e) => e.id), e.selectedCategoryFilters.length > 0, t.booths, this.markers);
|
|
788
892
|
}
|
|
789
893
|
get dimSuppressed() {
|
|
790
894
|
return this.outdoorFilter.active || this.selectionActive;
|
|
791
895
|
}
|
|
792
|
-
},
|
|
896
|
+
}, an(j.prototype, "addMany", [u], Object.getOwnPropertyDescriptor(j.prototype, "addMany"), j.prototype), an(j.prototype, "clear", [u], Object.getOwnPropertyDescriptor(j.prototype, "clear"), j.prototype), an(j.prototype, "selectedMarkerId", [en], Object.getOwnPropertyDescriptor(j.prototype, "selectedMarkerId"), j.prototype), an(j.prototype, "selectionActive", [tn], Object.getOwnPropertyDescriptor(j.prototype, "selectionActive"), j.prototype), an(j.prototype, "outdoorFilter", [nn], Object.getOwnPropertyDescriptor(j.prototype, "outdoorFilter"), j.prototype), an(j.prototype, "dimSuppressed", [rn], Object.getOwnPropertyDescriptor(j.prototype, "dimSuppressed"), j.prototype), j), sn = class {
|
|
793
897
|
constructor(e) {
|
|
794
898
|
this.rootStore = void 0, this.poiTypes = [], this.rootStore = e;
|
|
795
899
|
}
|
|
796
|
-
},
|
|
900
|
+
}, cn = class {
|
|
797
901
|
constructor() {
|
|
798
902
|
this.id = void 0;
|
|
799
903
|
}
|
|
800
904
|
shouldShowShortcuts() {
|
|
801
905
|
return !0;
|
|
802
906
|
}
|
|
803
|
-
},
|
|
804
|
-
function
|
|
907
|
+
}, ln;
|
|
908
|
+
function un(e, t, n, r, i) {
|
|
805
909
|
var a = {};
|
|
806
910
|
return Object.keys(r).forEach(function(e) {
|
|
807
911
|
a[e] = r[e];
|
|
@@ -809,7 +913,7 @@ function Qt(e, t, n, r, i) {
|
|
|
809
913
|
return r(e, t, n) || n;
|
|
810
914
|
}, 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;
|
|
811
915
|
}
|
|
812
|
-
var
|
|
916
|
+
var dn = (ln = class extends cn {
|
|
813
917
|
constructor(e) {
|
|
814
918
|
super(), this.rootStore = e, this.id = "search";
|
|
815
919
|
}
|
|
@@ -819,7 +923,7 @@ var $t = (Zt = class extends Xt {
|
|
|
819
923
|
let r = n.children.filter((e) => e.visible);
|
|
820
924
|
if (n.type === "poi_types" && r.length === 1) return t;
|
|
821
925
|
r.forEach((r) => {
|
|
822
|
-
if (r.type === "poi_types"
|
|
926
|
+
if (r.type === "poi_types") {
|
|
823
927
|
var i;
|
|
824
928
|
let a = ((i = r.id) == null ? void 0 : i.toString()) || r.name, o = e.isChildActive(a);
|
|
825
929
|
t.push({
|
|
@@ -852,8 +956,8 @@ var $t = (Zt = class extends Xt {
|
|
|
852
956
|
let { searchButtonsStore: e } = this.rootStore;
|
|
853
957
|
e.clearAllChildFilters();
|
|
854
958
|
}
|
|
855
|
-
},
|
|
856
|
-
function
|
|
959
|
+
}, un(ln.prototype, "shortcuts", [c], Object.getOwnPropertyDescriptor(ln.prototype, "shortcuts"), ln.prototype), ln), fn;
|
|
960
|
+
function pn(e, t, n, r, i) {
|
|
857
961
|
var a = {};
|
|
858
962
|
return Object.keys(r).forEach(function(e) {
|
|
859
963
|
a[e] = r[e];
|
|
@@ -861,7 +965,7 @@ function tn(e, t, n, r, i) {
|
|
|
861
965
|
return r(e, t, n) || n;
|
|
862
966
|
}, 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;
|
|
863
967
|
}
|
|
864
|
-
var
|
|
968
|
+
var mn = (fn = class extends cn {
|
|
865
969
|
constructor(e) {
|
|
866
970
|
super(), this.rootStore = e, this.id = "sessions";
|
|
867
971
|
}
|
|
@@ -1024,8 +1128,8 @@ var nn = (en = class extends Xt {
|
|
|
1024
1128
|
let { sessionsFilterStore: e } = this.rootStore, t = e.state.filters.sortOrder.value === "asc" ? "desc" : "asc";
|
|
1025
1129
|
e.setPending("sortOrder", t), e.applyFilters();
|
|
1026
1130
|
}
|
|
1027
|
-
},
|
|
1028
|
-
function
|
|
1131
|
+
}, pn(fn.prototype, "computedShortcuts", [c], Object.getOwnPropertyDescriptor(fn.prototype, "computedShortcuts"), fn.prototype), fn), hn;
|
|
1132
|
+
function gn(e, t, n, r, i) {
|
|
1029
1133
|
var a = {};
|
|
1030
1134
|
return Object.keys(r).forEach(function(e) {
|
|
1031
1135
|
a[e] = r[e];
|
|
@@ -1033,7 +1137,7 @@ function an(e, t, n, r, i) {
|
|
|
1033
1137
|
return r(e, t, n) || n;
|
|
1034
1138
|
}, 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;
|
|
1035
1139
|
}
|
|
1036
|
-
var
|
|
1140
|
+
var _n = (hn = class extends cn {
|
|
1037
1141
|
constructor(e) {
|
|
1038
1142
|
super(), this.rootStore = e, this.id = "speakers";
|
|
1039
1143
|
}
|
|
@@ -1067,8 +1171,8 @@ var on = (rn = class extends Xt {
|
|
|
1067
1171
|
default: console.warn(`Unknown shortcut ID for reset: ${e}`);
|
|
1068
1172
|
}
|
|
1069
1173
|
}
|
|
1070
|
-
},
|
|
1071
|
-
function
|
|
1174
|
+
}, gn(hn.prototype, "computedShortcuts", [c], Object.getOwnPropertyDescriptor(hn.prototype, "computedShortcuts"), hn.prototype), hn), M, vn, yn, bn, xn;
|
|
1175
|
+
function Sn(e, t, n, r) {
|
|
1072
1176
|
n && Object.defineProperty(e, t, {
|
|
1073
1177
|
enumerable: n.enumerable,
|
|
1074
1178
|
configurable: n.configurable,
|
|
@@ -1076,7 +1180,7 @@ function dn(e, t, n, r) {
|
|
|
1076
1180
|
value: n.initializer ? n.initializer.call(r) : void 0
|
|
1077
1181
|
});
|
|
1078
1182
|
}
|
|
1079
|
-
function
|
|
1183
|
+
function N(e, t, n, r, i) {
|
|
1080
1184
|
var a = {};
|
|
1081
1185
|
return Object.keys(r).forEach(function(e) {
|
|
1082
1186
|
a[e] = r[e];
|
|
@@ -1084,9 +1188,9 @@ function j(e, t, n, r, i) {
|
|
|
1084
1188
|
return r(e, t, n) || n;
|
|
1085
1189
|
}, 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;
|
|
1086
1190
|
}
|
|
1087
|
-
var
|
|
1191
|
+
var Cn = (M = class {
|
|
1088
1192
|
constructor(e) {
|
|
1089
|
-
this.rootStore = void 0,
|
|
1193
|
+
this.rootStore = void 0, Sn(this, "items", vn, this), Sn(this, "startPoint", yn, this), Sn(this, "source", bn, this), Sn(this, "excludedVisitedCount", xn, this), this.rootStore = e;
|
|
1090
1194
|
}
|
|
1091
1195
|
get resolvedBooths() {
|
|
1092
1196
|
let e = /* @__PURE__ */ new Map();
|
|
@@ -1118,17 +1222,17 @@ var fn = (A = class {
|
|
|
1118
1222
|
}), n.sort((e, t) => e.label.localeCompare(t.label, void 0, { sensitivity: "base" }));
|
|
1119
1223
|
}
|
|
1120
1224
|
get title() {
|
|
1121
|
-
return this.source === "bookmarks" ?
|
|
1225
|
+
return this.source === "bookmarks" ? a("Bookmarks route") : "";
|
|
1122
1226
|
}
|
|
1123
1227
|
get subtitleParts() {
|
|
1124
1228
|
let { routeInfo: e } = this.rootStore.routeStore, t;
|
|
1125
1229
|
if (e != null && e.time) {
|
|
1126
1230
|
let n = e.time;
|
|
1127
|
-
t = n < 60 ?
|
|
1231
|
+
t = n < 60 ? a("< 1 min") : a("~ {{n}} min", { n: Math.round(n / 60) });
|
|
1128
1232
|
}
|
|
1129
1233
|
return {
|
|
1130
|
-
stops:
|
|
1131
|
-
from: this.startPoint ?
|
|
1234
|
+
stops: a("{{count}} stops", { count: this.stopsCount }),
|
|
1235
|
+
from: this.startPoint ? a("From {{name}}", { name: this.startPoint.name }) : void 0,
|
|
1132
1236
|
distance: e ? e.distance : void 0,
|
|
1133
1237
|
travelTime: t
|
|
1134
1238
|
};
|
|
@@ -1137,12 +1241,12 @@ var fn = (A = class {
|
|
|
1137
1241
|
let e = this.rootStore.routeStore.pathLayers;
|
|
1138
1242
|
return e.map((t, n) => {
|
|
1139
1243
|
var r, i, a, o, s, c;
|
|
1140
|
-
let l = e[n + 1], u = (r = (i = t.layer) == null ? void 0 : i.basePriority) == null ? 0 : r,
|
|
1244
|
+
let l = e[n + 1], u = (r = (i = t.layer) == null ? void 0 : i.basePriority) == null ? 0 : r, ee = (a = l == null || (o = l.layer) == null ? void 0 : o.basePriority) == null ? 0 : a, d = l ? ee < u ? "up" : "down" : void 0;
|
|
1141
1245
|
return {
|
|
1142
1246
|
id: t.id,
|
|
1143
1247
|
name: (s = t.layer) == null ? void 0 : s.shortName,
|
|
1144
1248
|
description: (c = t.layer) == null ? void 0 : c.description,
|
|
1145
|
-
directionToNext:
|
|
1249
|
+
directionToNext: d
|
|
1146
1250
|
};
|
|
1147
1251
|
});
|
|
1148
1252
|
}
|
|
@@ -1209,7 +1313,7 @@ var fn = (A = class {
|
|
|
1209
1313
|
entity: r,
|
|
1210
1314
|
booth: r.booths[0] || null
|
|
1211
1315
|
};
|
|
1212
|
-
let i =
|
|
1316
|
+
let i = Re(e);
|
|
1213
1317
|
return i ? {
|
|
1214
1318
|
type: "booth",
|
|
1215
1319
|
entity: i,
|
|
@@ -1243,8 +1347,8 @@ var fn = (A = class {
|
|
|
1243
1347
|
this.rootStore.routeStore.updateRoute([]);
|
|
1244
1348
|
return;
|
|
1245
1349
|
}
|
|
1246
|
-
let c = s[0], l = s[s.length - 1], u = s.slice(1, -1),
|
|
1247
|
-
this.rootStore.routeStore.selectRoute(
|
|
1350
|
+
let c = s[0], l = s[s.length - 1], u = s.slice(1, -1), ee = new h(c, l, u);
|
|
1351
|
+
this.rootStore.routeStore.selectRoute(ee, !1), this.rootStore.uiState.setIsMultiPointRoute(u.length > 0);
|
|
1248
1352
|
}
|
|
1249
1353
|
reorderItemsByNames(e) {
|
|
1250
1354
|
let t = this.startPoint ? this.startPoint.name : null, n = /* @__PURE__ */ new Map();
|
|
@@ -1281,35 +1385,35 @@ var fn = (A = class {
|
|
|
1281
1385
|
focused: !1
|
|
1282
1386
|
}, this.rootStore.routeStore.selectRoute(null, !1);
|
|
1283
1387
|
}
|
|
1284
|
-
},
|
|
1388
|
+
}, vn = N(M.prototype, "items", [l], {
|
|
1285
1389
|
configurable: !0,
|
|
1286
1390
|
enumerable: !0,
|
|
1287
1391
|
writable: !0,
|
|
1288
1392
|
initializer: function() {
|
|
1289
1393
|
return [];
|
|
1290
1394
|
}
|
|
1291
|
-
}),
|
|
1395
|
+
}), yn = N(M.prototype, "startPoint", [l], {
|
|
1292
1396
|
configurable: !0,
|
|
1293
1397
|
enumerable: !0,
|
|
1294
1398
|
writable: !0,
|
|
1295
1399
|
initializer: function() {
|
|
1296
1400
|
return null;
|
|
1297
1401
|
}
|
|
1298
|
-
}),
|
|
1402
|
+
}), bn = N(M.prototype, "source", [l], {
|
|
1299
1403
|
configurable: !0,
|
|
1300
1404
|
enumerable: !0,
|
|
1301
1405
|
writable: !0,
|
|
1302
1406
|
initializer: function() {
|
|
1303
1407
|
return null;
|
|
1304
1408
|
}
|
|
1305
|
-
}),
|
|
1409
|
+
}), xn = N(M.prototype, "excludedVisitedCount", [l], {
|
|
1306
1410
|
configurable: !0,
|
|
1307
1411
|
enumerable: !0,
|
|
1308
1412
|
writable: !0,
|
|
1309
1413
|
initializer: function() {
|
|
1310
1414
|
return 0;
|
|
1311
1415
|
}
|
|
1312
|
-
}),
|
|
1416
|
+
}), N(M.prototype, "resolvedBooths", [c], Object.getOwnPropertyDescriptor(M.prototype, "resolvedBooths"), M.prototype), N(M.prototype, "stopsCount", [c], Object.getOwnPropertyDescriptor(M.prototype, "stopsCount"), M.prototype), N(M.prototype, "startPointBoothOptions", [c], Object.getOwnPropertyDescriptor(M.prototype, "startPointBoothOptions"), M.prototype), N(M.prototype, "startPointAutocompleteOptions", [c], Object.getOwnPropertyDescriptor(M.prototype, "startPointAutocompleteOptions"), M.prototype), N(M.prototype, "title", [c], Object.getOwnPropertyDescriptor(M.prototype, "title"), M.prototype), N(M.prototype, "subtitleParts", [c], Object.getOwnPropertyDescriptor(M.prototype, "subtitleParts"), M.prototype), N(M.prototype, "routeFloors", [c], Object.getOwnPropertyDescriptor(M.prototype, "routeFloors"), M.prototype), N(M.prototype, "currentRouteFloor", [c], Object.getOwnPropertyDescriptor(M.prototype, "currentRouteFloor"), M.prototype), N(M.prototype, "setRouteFloor", [u], Object.getOwnPropertyDescriptor(M.prototype, "setRouteFloor"), M.prototype), N(M.prototype, "launch", [u], Object.getOwnPropertyDescriptor(M.prototype, "launch"), M.prototype), N(M.prototype, "launchFromBookmarks", [u], Object.getOwnPropertyDescriptor(M.prototype, "launchFromBookmarks"), M.prototype), N(M.prototype, "launchFromSlugs", [u], Object.getOwnPropertyDescriptor(M.prototype, "launchFromSlugs"), M.prototype), N(M.prototype, "buildRoute", [u], Object.getOwnPropertyDescriptor(M.prototype, "buildRoute"), M.prototype), N(M.prototype, "setStartPoint", [u], Object.getOwnPropertyDescriptor(M.prototype, "setStartPoint"), M.prototype), N(M.prototype, "removeItem", [u], Object.getOwnPropertyDescriptor(M.prototype, "removeItem"), M.prototype), N(M.prototype, "reorderItems", [u], Object.getOwnPropertyDescriptor(M.prototype, "reorderItems"), M.prototype), N(M.prototype, "close", [u], Object.getOwnPropertyDescriptor(M.prototype, "close"), M.prototype), M), wn = class {
|
|
1313
1417
|
constructor() {
|
|
1314
1418
|
this.id = void 0;
|
|
1315
1419
|
}
|
|
@@ -1317,8 +1421,8 @@ var fn = (A = class {
|
|
|
1317
1421
|
shouldShowSubButtons() {
|
|
1318
1422
|
return !0;
|
|
1319
1423
|
}
|
|
1320
|
-
},
|
|
1321
|
-
function
|
|
1424
|
+
}, Tn;
|
|
1425
|
+
function En(e, t, n, r, i) {
|
|
1322
1426
|
var a = {};
|
|
1323
1427
|
return Object.keys(r).forEach(function(e) {
|
|
1324
1428
|
a[e] = r[e];
|
|
@@ -1326,7 +1430,7 @@ function hn(e, t, n, r, i) {
|
|
|
1326
1430
|
return r(e, t, n) || n;
|
|
1327
1431
|
}, 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;
|
|
1328
1432
|
}
|
|
1329
|
-
var
|
|
1433
|
+
var Dn = (Tn = class extends wn {
|
|
1330
1434
|
constructor(e) {
|
|
1331
1435
|
super(), this.rootStore = e, this.id = "sessions";
|
|
1332
1436
|
}
|
|
@@ -1389,7 +1493,7 @@ var gn = (mn = class extends pn {
|
|
|
1389
1493
|
focused: !1
|
|
1390
1494
|
}, this.rootStore.uiState.selectedTrack = e, this.rootStore.searchButtonsStore.setSubButtonId(`sessions_track_${e.id}`);
|
|
1391
1495
|
}
|
|
1392
|
-
},
|
|
1496
|
+
}, En(Tn.prototype, "computedSubButtons", [c], Object.getOwnPropertyDescriptor(Tn.prototype, "computedSubButtons"), Tn.prototype), Tn), On = class {
|
|
1393
1497
|
constructor() {
|
|
1394
1498
|
this.providers = /* @__PURE__ */ new Map(), this.cache = /* @__PURE__ */ new Map();
|
|
1395
1499
|
}
|
|
@@ -1427,33 +1531,8 @@ var gn = (mn = class extends pn {
|
|
|
1427
1531
|
isProviderRegistered(e) {
|
|
1428
1532
|
return this.providers.has(e);
|
|
1429
1533
|
}
|
|
1430
|
-
};
|
|
1431
|
-
|
|
1432
|
-
//#region src/store/search-buttons/utils.ts
|
|
1433
|
-
function vn(e) {
|
|
1434
|
-
try {
|
|
1435
|
-
let t = e.replace(g.POI_TYPE, ""), n = parseInt(t, 10);
|
|
1436
|
-
return isNaN(n) ? null : n;
|
|
1437
|
-
} catch {
|
|
1438
|
-
return null;
|
|
1439
|
-
}
|
|
1440
|
-
}
|
|
1441
|
-
function yn(e) {
|
|
1442
|
-
let t = p.filterButtonsConfig;
|
|
1443
|
-
return !(t != null && t.searchButtons) || !Array.isArray(t.searchButtons) ? null : t.searchButtons.find((t) => t.id === e) || null;
|
|
1444
|
-
}
|
|
1445
|
-
function bn(e) {
|
|
1446
|
-
let t = 0;
|
|
1447
|
-
for (let n of e.values()) t += n;
|
|
1448
|
-
return t;
|
|
1449
|
-
}
|
|
1450
|
-
function xn(e) {
|
|
1451
|
-
return e && typeof e == "object" && Array.isArray(e.searchButtons) && e.searchButtons.length > 0;
|
|
1452
|
-
}
|
|
1453
|
-
//#endregion
|
|
1454
|
-
//#region src/store/search-buttons/SearchButtonsActions.ts
|
|
1455
|
-
var M;
|
|
1456
|
-
function N(e, t, n, r, i) {
|
|
1534
|
+
}, P;
|
|
1535
|
+
function F(e, t, n, r, i) {
|
|
1457
1536
|
var a = {};
|
|
1458
1537
|
return Object.keys(r).forEach(function(e) {
|
|
1459
1538
|
a[e] = r[e];
|
|
@@ -1461,7 +1540,7 @@ function N(e, t, n, r, i) {
|
|
|
1461
1540
|
return r(e, t, n) || n;
|
|
1462
1541
|
}, 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;
|
|
1463
1542
|
}
|
|
1464
|
-
var
|
|
1543
|
+
var kn = (P = class {
|
|
1465
1544
|
constructor(e, t, n) {
|
|
1466
1545
|
this.rootStore = e, this.state = t, this.filters = n;
|
|
1467
1546
|
}
|
|
@@ -1470,22 +1549,22 @@ var Sn = (M = class {
|
|
|
1470
1549
|
}
|
|
1471
1550
|
handleSearchButtonClick(e, t) {
|
|
1472
1551
|
let n = {
|
|
1473
|
-
[
|
|
1474
|
-
[
|
|
1475
|
-
[
|
|
1476
|
-
[
|
|
1477
|
-
[
|
|
1478
|
-
[
|
|
1552
|
+
[g.BOOKMARKS]: () => this.handleBookmarksClick(t),
|
|
1553
|
+
[g.VISITED]: () => this.handleVisitedClick(t),
|
|
1554
|
+
[g.SESSIONS]: () => this.handleSessionsClick(t),
|
|
1555
|
+
[g.TOURS]: () => this.handleToursClick(t),
|
|
1556
|
+
[g.CATEGORIES]: () => this.handleCategoriesClick(void 0, t),
|
|
1557
|
+
[g.EXHIBITORS]: () => this.handleExhibitorsClick(t)
|
|
1479
1558
|
}[e];
|
|
1480
1559
|
if (n) {
|
|
1481
1560
|
n();
|
|
1482
1561
|
return;
|
|
1483
1562
|
}
|
|
1484
|
-
e.startsWith(
|
|
1563
|
+
e.startsWith(_.POI_TYPE) && this.handlePoiTypeClick(e, t);
|
|
1485
1564
|
}
|
|
1486
1565
|
handleExtendedSearchButtonClick(e) {
|
|
1487
1566
|
var t;
|
|
1488
|
-
let n =
|
|
1567
|
+
let n = v(e);
|
|
1489
1568
|
if (!n) return;
|
|
1490
1569
|
let r = n.name;
|
|
1491
1570
|
if (n.type === "link") {
|
|
@@ -1497,6 +1576,13 @@ var Sn = (M = class {
|
|
|
1497
1576
|
this.handleSearchButtonClick(e, r);
|
|
1498
1577
|
return;
|
|
1499
1578
|
}
|
|
1579
|
+
if (n.type === g.CATEGORIES) {
|
|
1580
|
+
this.handleCategoriesClick({
|
|
1581
|
+
buttonId: e,
|
|
1582
|
+
buttonConfig: n
|
|
1583
|
+
}, r);
|
|
1584
|
+
return;
|
|
1585
|
+
}
|
|
1500
1586
|
n.children && i.length > 0 ? this.handleParentButton(e, n, r) : this.handleSearchButtonClick(e, r);
|
|
1501
1587
|
}
|
|
1502
1588
|
handleMainButtonClick(e) {
|
|
@@ -1511,7 +1597,7 @@ var Sn = (M = class {
|
|
|
1511
1597
|
}, this.state.setSubButton(null), t.selectedTrack = null, this.state.subButtonsEnabled && this.showSubButtons("sessions"), this.isMobile && (t.desiredOverlaySize = "full"));
|
|
1512
1598
|
}
|
|
1513
1599
|
togglePoiType(e) {
|
|
1514
|
-
this.handleSearchButtonClick(`${
|
|
1600
|
+
this.handleSearchButtonClick(`${_.POI_TYPE}${e}`);
|
|
1515
1601
|
}
|
|
1516
1602
|
clearAllFilters() {
|
|
1517
1603
|
this.switchToSearch();
|
|
@@ -1550,9 +1636,9 @@ var Sn = (M = class {
|
|
|
1550
1636
|
focused: !1
|
|
1551
1637
|
}, this.isMobile && (t.desiredOverlaySize = "full"));
|
|
1552
1638
|
}
|
|
1553
|
-
handleCategoriesClick(e) {
|
|
1554
|
-
let { uiState:
|
|
1555
|
-
this.reportActivation(
|
|
1639
|
+
handleCategoriesClick(e, t) {
|
|
1640
|
+
let { uiState: n } = this.rootStore;
|
|
1641
|
+
this.reportActivation(t), n.list.type === "search" ? this.state.activePoiFilterId && this.filters.clearPoiTypeFilters() : this.switchToSearch(), this.state.searchShortcutState.activeParentId && (this.state.setActiveParentId(null), this.state.clearChildren(), this.state.showShortcuts(!1), this.filters.clearAllChildFilters()), e ? this.rootStore.categoryFilterStore.openFilterForButton(e.buttonId, lt(e.buttonConfig), e.buttonConfig.name) : this.rootStore.categoryFilterStore.openFilter();
|
|
1556
1642
|
}
|
|
1557
1643
|
handleExhibitorsClick(e) {
|
|
1558
1644
|
let { uiState: t } = this.rootStore;
|
|
@@ -1607,11 +1693,11 @@ var Sn = (M = class {
|
|
|
1607
1693
|
this.clearActiveFilters(), this.rootStore.fp.hidePathways();
|
|
1608
1694
|
}
|
|
1609
1695
|
clearActiveFilters() {
|
|
1610
|
-
this.state.reset(), this.rootStore.uiState.selectedPoiTypeFilters = [], this.rootStore.
|
|
1696
|
+
this.state.reset(), this.rootStore.uiState.selectedPoiTypeFilters = [], this.rootStore.categoryFilterStore.clearSelection(), this.rootStore.urlFilterManager.clearAllFilters();
|
|
1611
1697
|
}
|
|
1612
1698
|
setPoiFilterFromString(e) {
|
|
1613
1699
|
this.state.setPoiFilter(e);
|
|
1614
|
-
let t =
|
|
1700
|
+
let t = st(e);
|
|
1615
1701
|
if (t !== null) {
|
|
1616
1702
|
let e = this.rootStore.poiTypeStore.poiTypes.find((e) => e.id === t);
|
|
1617
1703
|
e && (this.rootStore.uiState.selectedPoiTypeFilters = [e], this.rootStore.urlFilterManager.setPoiType(e.name));
|
|
@@ -1620,18 +1706,18 @@ var Sn = (M = class {
|
|
|
1620
1706
|
get isMobile() {
|
|
1621
1707
|
return typeof window < "u" && window.innerWidth <= 768;
|
|
1622
1708
|
}
|
|
1623
|
-
},
|
|
1709
|
+
}, F(P.prototype, "handleSearchButtonClick", [u], Object.getOwnPropertyDescriptor(P.prototype, "handleSearchButtonClick"), P.prototype), F(P.prototype, "handleExtendedSearchButtonClick", [u], Object.getOwnPropertyDescriptor(P.prototype, "handleExtendedSearchButtonClick"), P.prototype), F(P.prototype, "handleMainButtonClick", [u], Object.getOwnPropertyDescriptor(P.prototype, "handleMainButtonClick"), P.prototype), F(P.prototype, "handleSessionsClick", [u], Object.getOwnPropertyDescriptor(P.prototype, "handleSessionsClick"), P.prototype), F(P.prototype, "togglePoiType", [u], Object.getOwnPropertyDescriptor(P.prototype, "togglePoiType"), P.prototype), F(P.prototype, "clearAllFilters", [u], Object.getOwnPropertyDescriptor(P.prototype, "clearAllFilters"), P.prototype), F(P.prototype, "deactivateForNavigation", [u], Object.getOwnPropertyDescriptor(P.prototype, "deactivateForNavigation"), P.prototype), F(P.prototype, "showSubButtons", [u], Object.getOwnPropertyDescriptor(P.prototype, "showSubButtons"), P.prototype), F(P.prototype, "hideSubButtons", [u], Object.getOwnPropertyDescriptor(P.prototype, "hideSubButtons"), P.prototype), F(P.prototype, "handleSubButtonClick", [u], Object.getOwnPropertyDescriptor(P.prototype, "handleSubButtonClick"), P.prototype), P), An = class {
|
|
1624
1710
|
constructor(e, t, n) {
|
|
1625
1711
|
this.rootStore = e, this.state = t, this.actions = n, this.buttonFactories = void 0, this.buttonFactories = {
|
|
1626
|
-
[
|
|
1627
|
-
[
|
|
1628
|
-
[
|
|
1629
|
-
[
|
|
1630
|
-
[
|
|
1631
|
-
[
|
|
1632
|
-
[
|
|
1633
|
-
[
|
|
1634
|
-
[
|
|
1712
|
+
[g.BOOKMARKS]: (e) => this.createBookmarksButton(e),
|
|
1713
|
+
[g.VISITED]: (e) => this.createVisitedButton(e),
|
|
1714
|
+
[g.CATEGORIES]: (e) => this.createCategoriesButton(e),
|
|
1715
|
+
[g.SESSIONS]: (e) => this.createSessionsButton(e),
|
|
1716
|
+
[g.TOURS]: (e) => this.createGuidedToursButton(e),
|
|
1717
|
+
[g.POI_TYPE]: (e) => this.createPoiTypeButton(e),
|
|
1718
|
+
[g.POI_TYPES]: (e) => this.createPoiTypesButton(e),
|
|
1719
|
+
[g.LINK]: (e) => this.createLinkButton(e),
|
|
1720
|
+
[g.EXHIBITORS]: (e) => this.createExhibitorsButton(e)
|
|
1635
1721
|
};
|
|
1636
1722
|
}
|
|
1637
1723
|
createButtons(e) {
|
|
@@ -1650,7 +1736,7 @@ var Sn = (M = class {
|
|
|
1650
1736
|
createBaseButton(e) {
|
|
1651
1737
|
let t = e.color && e.color.toUpperCase() !== "#FFFFFF", n = r(e.name);
|
|
1652
1738
|
return {
|
|
1653
|
-
id: e
|
|
1739
|
+
id: ct(e),
|
|
1654
1740
|
label: n,
|
|
1655
1741
|
text: n,
|
|
1656
1742
|
enabled: !0,
|
|
@@ -1660,29 +1746,26 @@ var Sn = (M = class {
|
|
|
1660
1746
|
textColor: t && e.color ? Ge(e.color) : void 0
|
|
1661
1747
|
};
|
|
1662
1748
|
}
|
|
1663
|
-
createButtonId(e, t) {
|
|
1664
|
-
return t.id || `${e}${t.name}`;
|
|
1665
|
-
}
|
|
1666
1749
|
createBookmarksButton(e) {
|
|
1667
1750
|
let { uiState: t } = this.rootStore;
|
|
1668
1751
|
return t.kiosk || t.disableBookmarked || p.hideBookmarks ? null : {
|
|
1669
1752
|
...this.createBaseButton(e),
|
|
1670
|
-
id:
|
|
1753
|
+
id: g.BOOKMARKS,
|
|
1671
1754
|
icon: ot.BOOKMARKS,
|
|
1672
1755
|
active: t.list.type === "bookmarks",
|
|
1673
1756
|
count: this.countBookmarks(),
|
|
1674
|
-
onClick: () => this.actions.handleSearchButtonClick(
|
|
1757
|
+
onClick: () => this.actions.handleSearchButtonClick(g.BOOKMARKS, e.name)
|
|
1675
1758
|
};
|
|
1676
1759
|
}
|
|
1677
1760
|
createVisitedButton(e) {
|
|
1678
1761
|
let { uiState: t } = this.rootStore;
|
|
1679
1762
|
return t.kiosk ? null : {
|
|
1680
1763
|
...this.createBaseButton(e),
|
|
1681
|
-
id:
|
|
1764
|
+
id: g.VISITED,
|
|
1682
1765
|
icon: ot.VISITED,
|
|
1683
1766
|
active: t.list.type === "visited",
|
|
1684
1767
|
count: this.countVisited(),
|
|
1685
|
-
onClick: () => this.actions.handleSearchButtonClick(
|
|
1768
|
+
onClick: () => this.actions.handleSearchButtonClick(g.VISITED, e.name)
|
|
1686
1769
|
};
|
|
1687
1770
|
}
|
|
1688
1771
|
createCategoriesButton(e) {
|
|
@@ -1691,34 +1774,43 @@ var Sn = (M = class {
|
|
|
1691
1774
|
let t = this.getCategoriesTotalCount();
|
|
1692
1775
|
return t > 0 ? this.createSimpleCategoriesButton(e, t) : null;
|
|
1693
1776
|
}
|
|
1694
|
-
let n = (
|
|
1695
|
-
if (n
|
|
1696
|
-
let r =
|
|
1777
|
+
let n = ut(this.rootStore.categoryStore.categories, lt(e));
|
|
1778
|
+
if (n === 0) return null;
|
|
1779
|
+
let r = ct(e), { categoryFilterStore: i, uiState: a } = this.rootStore, o = i.scopeButtonId === r ? a.selectedCategoryFilters.length : 0, s = this.isModalOpenFor(r);
|
|
1697
1780
|
return {
|
|
1698
1781
|
...this.createBaseButton(e),
|
|
1699
1782
|
id: r,
|
|
1700
|
-
active:
|
|
1701
|
-
|
|
1783
|
+
active: o > 0 || s,
|
|
1784
|
+
expanded: s,
|
|
1785
|
+
count: o > 0 ? o : n,
|
|
1702
1786
|
showZeroCount: !0,
|
|
1787
|
+
variant: "action",
|
|
1703
1788
|
onClick: () => this.actions.handleExtendedSearchButtonClick(r)
|
|
1704
1789
|
};
|
|
1705
1790
|
}
|
|
1706
1791
|
createSimpleCategoriesButton(e, t) {
|
|
1707
|
-
let {
|
|
1792
|
+
let { categoryFilterStore: n, uiState: r } = this.rootStore, i = n.scopeButtonId === null ? r.selectedCategoryFilters.length : 0, a = i > 0 ? i : t;
|
|
1708
1793
|
return {
|
|
1709
1794
|
...this.createBaseButton(e),
|
|
1710
|
-
id:
|
|
1711
|
-
active:
|
|
1712
|
-
|
|
1795
|
+
id: g.CATEGORIES,
|
|
1796
|
+
active: i > 0 && !this.state.searchShortcutState.activeParentId,
|
|
1797
|
+
expanded: this.isModalOpenFor(null),
|
|
1798
|
+
count: a,
|
|
1713
1799
|
showZeroCount: !0,
|
|
1714
|
-
|
|
1800
|
+
variant: "action",
|
|
1801
|
+
onClick: () => this.actions.handleSearchButtonClick(g.CATEGORIES, e.name)
|
|
1715
1802
|
};
|
|
1716
1803
|
}
|
|
1804
|
+
isModalOpenFor(e) {
|
|
1805
|
+
var t;
|
|
1806
|
+
let { categoryFilterStore: n } = this.rootStore;
|
|
1807
|
+
return n.state.isOpen && ((t = n.viewScope) == null ? void 0 : t.buttonId) === e;
|
|
1808
|
+
}
|
|
1717
1809
|
createSessionsButton(e) {
|
|
1718
1810
|
let { uiState: t } = this.rootStore, n = this.getSessionsTotalCount();
|
|
1719
1811
|
return n === 0 ? null : {
|
|
1720
1812
|
...this.createBaseButton(e),
|
|
1721
|
-
id:
|
|
1813
|
+
id: g.SESSIONS,
|
|
1722
1814
|
icon: ot.SESSIONS,
|
|
1723
1815
|
active: t.list.type === "sessions",
|
|
1724
1816
|
count: n,
|
|
@@ -1741,7 +1833,7 @@ var Sn = (M = class {
|
|
|
1741
1833
|
createPoiTypeButton(e) {
|
|
1742
1834
|
let t = this.rootStore.poiTypeStore.poiTypes.find((t) => t.name === e.name);
|
|
1743
1835
|
if (!t) return null;
|
|
1744
|
-
let n = `${
|
|
1836
|
+
let n = `${_.POI_TYPE}${t.id}`, r = this.getPoiTypeTotalCount(t.id);
|
|
1745
1837
|
return r === 0 ? null : {
|
|
1746
1838
|
...this.createBaseButton(e),
|
|
1747
1839
|
id: n,
|
|
@@ -1757,7 +1849,7 @@ var Sn = (M = class {
|
|
|
1757
1849
|
let n = e.children.filter((e) => e.visible);
|
|
1758
1850
|
if (n.length === 0) return null;
|
|
1759
1851
|
if (this.shouldFlattenToSinglePoiType(n, e)) return this.createPoiTypeButton(e);
|
|
1760
|
-
let r = n.filter((e) => e.type !== "link"), i = this.countPoiTypes(r), a =
|
|
1852
|
+
let r = n.filter((e) => e.type !== "link"), i = this.countPoiTypes(r), a = ct(e);
|
|
1761
1853
|
return {
|
|
1762
1854
|
...this.createBaseButton(e),
|
|
1763
1855
|
id: a,
|
|
@@ -1771,7 +1863,7 @@ var Sn = (M = class {
|
|
|
1771
1863
|
return e.length === 1 && e[0].type === "poi_types" && e[0].name === t.name;
|
|
1772
1864
|
}
|
|
1773
1865
|
createLinkButton(e) {
|
|
1774
|
-
let t =
|
|
1866
|
+
let t = ct(e);
|
|
1775
1867
|
return {
|
|
1776
1868
|
...this.createBaseButton(e),
|
|
1777
1869
|
id: t,
|
|
@@ -1783,22 +1875,14 @@ var Sn = (M = class {
|
|
|
1783
1875
|
let { uiState: t } = this.rootStore, n = this.getExhibitorsTotalCount();
|
|
1784
1876
|
return n === 0 ? null : {
|
|
1785
1877
|
...this.createBaseButton(e),
|
|
1786
|
-
id:
|
|
1878
|
+
id: g.EXHIBITORS,
|
|
1787
1879
|
icon: ot.EXHIBITORS,
|
|
1788
1880
|
active: t.list.type === "exhibitors",
|
|
1789
1881
|
count: n,
|
|
1790
1882
|
showZeroCount: !0,
|
|
1791
|
-
onClick: () => this.actions.handleSearchButtonClick(
|
|
1883
|
+
onClick: () => this.actions.handleSearchButtonClick(g.EXHIBITORS, e.name)
|
|
1792
1884
|
};
|
|
1793
1885
|
}
|
|
1794
|
-
countCategories(e) {
|
|
1795
|
-
let { categoryById: t } = this.rootStore.categoryStore, n = /* @__PURE__ */ new Set();
|
|
1796
|
-
return e.forEach((e) => {
|
|
1797
|
-
if (e.type !== "categories") return;
|
|
1798
|
-
let r = t.get(Number(e.id));
|
|
1799
|
-
r && r.exhibitors.forEach((e) => n.add(e.id));
|
|
1800
|
-
}), n.size;
|
|
1801
|
-
}
|
|
1802
1886
|
countPoiTypes(e) {
|
|
1803
1887
|
return e.reduce((e, t) => {
|
|
1804
1888
|
if (t.type !== "poi_types") return e;
|
|
@@ -1835,8 +1919,8 @@ var Sn = (M = class {
|
|
|
1835
1919
|
getExhibitorsTotalCount() {
|
|
1836
1920
|
return this.rootStore.exhibitorStore.exhibitors.length;
|
|
1837
1921
|
}
|
|
1838
|
-
},
|
|
1839
|
-
function
|
|
1922
|
+
}, I;
|
|
1923
|
+
function jn(e, t, n, r, i) {
|
|
1840
1924
|
var a = {};
|
|
1841
1925
|
return Object.keys(r).forEach(function(e) {
|
|
1842
1926
|
a[e] = r[e];
|
|
@@ -1844,43 +1928,42 @@ function F(e, t, n, r, i) {
|
|
|
1844
1928
|
return r(e, t, n) || n;
|
|
1845
1929
|
}, 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;
|
|
1846
1930
|
}
|
|
1847
|
-
var
|
|
1931
|
+
var Mn = (I = class {
|
|
1848
1932
|
constructor(e, t) {
|
|
1849
1933
|
this.rootStore = e, this.state = t;
|
|
1850
1934
|
}
|
|
1851
1935
|
applyAllChildrenFilters(e) {
|
|
1852
1936
|
if (!e.children) return;
|
|
1853
|
-
let { uiState: t } = this.rootStore, n = e.children.filter((e) => e.visible)
|
|
1854
|
-
t.
|
|
1937
|
+
let { uiState: t } = this.rootStore, n = e.children.filter((e) => e.visible);
|
|
1938
|
+
t.selectedPoiTypeFilters = this.collectPoiTypes(n), this.rootStore.categoryFilterStore.clearSelection();
|
|
1855
1939
|
}
|
|
1856
1940
|
applyChildFilters() {
|
|
1857
1941
|
let { uiState: e } = this.rootStore, t = Array.from(this.state.searchShortcutState.activeChildren);
|
|
1858
|
-
if (e.
|
|
1859
|
-
let n =
|
|
1942
|
+
if (e.selectedPoiTypeFilters = [], this.rootStore.categoryFilterStore.clearSelection(), t.length === 0) return;
|
|
1943
|
+
let n = v(this.state.searchShortcutState.activeParentId);
|
|
1860
1944
|
if (!(n != null && n.children)) return;
|
|
1861
|
-
let r = n.children.filter((e) => e.visible)
|
|
1862
|
-
e.
|
|
1945
|
+
let r = n.children.filter((e) => e.visible);
|
|
1946
|
+
e.selectedPoiTypeFilters = this.collectSelectedPoiTypes(r, t);
|
|
1863
1947
|
}
|
|
1864
1948
|
clearAllChildFilters() {
|
|
1865
|
-
this.state.clearChildren(), this.rootStore.uiState.
|
|
1949
|
+
this.state.clearChildren(), this.rootStore.uiState.selectedPoiTypeFilters = [], this.rootStore.categoryFilterStore.clearSelection();
|
|
1866
1950
|
}
|
|
1867
1951
|
clearCategoryFilters() {
|
|
1868
|
-
|
|
1869
|
-
e.selectedCategoryFilters = [], this.rootStore.categoryFilterStore.state.selectedItems = [], this.rootStore.categoryFilterStore.state.pendingItems = [], this.rootStore.urlFilterManager.setCategories([]);
|
|
1952
|
+
this.rootStore.categoryFilterStore.clearSelection(), this.rootStore.urlFilterManager.setCategories([]);
|
|
1870
1953
|
}
|
|
1871
1954
|
clearPoiTypeFilters() {
|
|
1872
1955
|
this.state.setPoiFilter(null), this.rootStore.uiState.selectedPoiTypeFilters = [], this.rootStore.urlFilterManager.setPoiType(null);
|
|
1873
1956
|
}
|
|
1874
1957
|
toggleChildFilter(e) {
|
|
1875
|
-
let t =
|
|
1958
|
+
let t = v(this.state.searchShortcutState.activeParentId);
|
|
1876
1959
|
t != null && t.children && (this.state.toggleChild(e), this.state.hasActiveChildren ? this.applyChildFilters() : this.applyAllChildrenFilters(t));
|
|
1877
1960
|
}
|
|
1878
1961
|
getActiveParent() {
|
|
1879
|
-
return this.state.searchShortcutState.activeParentId ?
|
|
1962
|
+
return this.state.searchShortcutState.activeParentId ? v(this.state.searchShortcutState.activeParentId) : null;
|
|
1880
1963
|
}
|
|
1881
1964
|
areAllSelected() {
|
|
1882
1965
|
if (!this.state.searchShortcutState.activeParentId) return !1;
|
|
1883
|
-
let e =
|
|
1966
|
+
let e = v(this.state.searchShortcutState.activeParentId);
|
|
1884
1967
|
if (!(e != null && e.children)) return !1;
|
|
1885
1968
|
let t = e.children.filter((e) => e.visible).filter((e) => e.type !== "link");
|
|
1886
1969
|
return t.length > 0 && t.every((e) => {
|
|
@@ -1891,48 +1974,31 @@ var wn = (P = class {
|
|
|
1891
1974
|
}
|
|
1892
1975
|
getChildrenCount() {
|
|
1893
1976
|
if (!this.state.searchShortcutState.activeParentId) return 0;
|
|
1894
|
-
let e =
|
|
1977
|
+
let e = v(this.state.searchShortcutState.activeParentId);
|
|
1895
1978
|
return e != null && e.children ? e.children.filter((e) => e.visible).filter((e) => e.type !== "link").length : 0;
|
|
1896
1979
|
}
|
|
1897
|
-
|
|
1898
|
-
let t = []
|
|
1980
|
+
collectPoiTypes(e) {
|
|
1981
|
+
let t = [];
|
|
1899
1982
|
return e.forEach((e) => {
|
|
1900
|
-
|
|
1901
|
-
|
|
1902
|
-
|
|
1903
|
-
|
|
1904
|
-
} else if (e.type === "poi_types") {
|
|
1905
|
-
let e = this.rootStore.poiTypeStore.poiTypes.find((e) => e.id === r);
|
|
1906
|
-
e && n.push(e);
|
|
1907
|
-
}
|
|
1908
|
-
}), {
|
|
1909
|
-
categories: t,
|
|
1910
|
-
poiTypes: n
|
|
1911
|
-
};
|
|
1983
|
+
if (e.type !== "poi_types") return;
|
|
1984
|
+
let n = this.rootStore.poiTypeStore.poiTypes.find((t) => t.id === Number(e.id));
|
|
1985
|
+
n && t.push(n);
|
|
1986
|
+
}), t;
|
|
1912
1987
|
}
|
|
1913
|
-
|
|
1914
|
-
let n = []
|
|
1988
|
+
collectSelectedPoiTypes(e, t) {
|
|
1989
|
+
let n = [];
|
|
1915
1990
|
return t.forEach((t) => {
|
|
1916
|
-
let
|
|
1991
|
+
let r = e.find((e) => {
|
|
1917
1992
|
var n;
|
|
1918
1993
|
return e.type !== "link" && (((n = e.id) == null ? void 0 : n.toString()) || e.name) === t;
|
|
1919
1994
|
});
|
|
1920
|
-
if (
|
|
1921
|
-
let
|
|
1922
|
-
|
|
1923
|
-
|
|
1924
|
-
e && n.push(e);
|
|
1925
|
-
} else if (i.type === "poi_types") {
|
|
1926
|
-
let e = this.rootStore.poiTypeStore.poiTypes.find((e) => e.id === a);
|
|
1927
|
-
e && r.push(e);
|
|
1928
|
-
}
|
|
1929
|
-
}), {
|
|
1930
|
-
categories: n,
|
|
1931
|
-
poiTypes: r
|
|
1932
|
-
};
|
|
1995
|
+
if ((r == null ? void 0 : r.type) !== "poi_types") return;
|
|
1996
|
+
let i = this.rootStore.poiTypeStore.poiTypes.find((e) => e.id === Number(r.id));
|
|
1997
|
+
i && n.push(i);
|
|
1998
|
+
}), n;
|
|
1933
1999
|
}
|
|
1934
|
-
},
|
|
1935
|
-
function
|
|
2000
|
+
}, jn(I.prototype, "applyAllChildrenFilters", [u], Object.getOwnPropertyDescriptor(I.prototype, "applyAllChildrenFilters"), I.prototype), jn(I.prototype, "applyChildFilters", [u], Object.getOwnPropertyDescriptor(I.prototype, "applyChildFilters"), I.prototype), jn(I.prototype, "clearAllChildFilters", [u], Object.getOwnPropertyDescriptor(I.prototype, "clearAllChildFilters"), I.prototype), jn(I.prototype, "clearCategoryFilters", [u], Object.getOwnPropertyDescriptor(I.prototype, "clearCategoryFilters"), I.prototype), jn(I.prototype, "clearPoiTypeFilters", [u], Object.getOwnPropertyDescriptor(I.prototype, "clearPoiTypeFilters"), I.prototype), jn(I.prototype, "toggleChildFilter", [u], Object.getOwnPropertyDescriptor(I.prototype, "toggleChildFilter"), I.prototype), I), L, Nn, Pn, Fn, In, Ln, Rn;
|
|
2001
|
+
function zn(e, t, n, r) {
|
|
1936
2002
|
n && Object.defineProperty(e, t, {
|
|
1937
2003
|
enumerable: n.enumerable,
|
|
1938
2004
|
configurable: n.configurable,
|
|
@@ -1948,9 +2014,9 @@ function R(e, t, n, r, i) {
|
|
|
1948
2014
|
return r(e, t, n) || n;
|
|
1949
2015
|
}, 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;
|
|
1950
2016
|
}
|
|
1951
|
-
var
|
|
2017
|
+
var Bn = (L = class {
|
|
1952
2018
|
constructor() {
|
|
1953
|
-
|
|
2019
|
+
zn(this, "isVisible", Nn, this), zn(this, "activePoiFilterId", Pn, this), zn(this, "activeSubButtonsParentId", Fn, this), zn(this, "activeSubButtonId", In, this), zn(this, "subButtonsEnabled", Ln, this), zn(this, "searchShortcutState", Rn, this);
|
|
1954
2020
|
}
|
|
1955
2021
|
setVisible(e) {
|
|
1956
2022
|
this.isVisible = e;
|
|
@@ -1994,42 +2060,42 @@ var jn = (I = class {
|
|
|
1994
2060
|
isChildActive(e) {
|
|
1995
2061
|
return this.searchShortcutState.activeChildren.has(e);
|
|
1996
2062
|
}
|
|
1997
|
-
},
|
|
2063
|
+
}, Nn = R(L.prototype, "isVisible", [l], {
|
|
1998
2064
|
configurable: !0,
|
|
1999
2065
|
enumerable: !0,
|
|
2000
2066
|
writable: !0,
|
|
2001
2067
|
initializer: function() {
|
|
2002
2068
|
return !0;
|
|
2003
2069
|
}
|
|
2004
|
-
}),
|
|
2070
|
+
}), Pn = R(L.prototype, "activePoiFilterId", [l], {
|
|
2005
2071
|
configurable: !0,
|
|
2006
2072
|
enumerable: !0,
|
|
2007
2073
|
writable: !0,
|
|
2008
2074
|
initializer: function() {
|
|
2009
2075
|
return null;
|
|
2010
2076
|
}
|
|
2011
|
-
}),
|
|
2077
|
+
}), Fn = R(L.prototype, "activeSubButtonsParentId", [l], {
|
|
2012
2078
|
configurable: !0,
|
|
2013
2079
|
enumerable: !0,
|
|
2014
2080
|
writable: !0,
|
|
2015
2081
|
initializer: function() {
|
|
2016
2082
|
return null;
|
|
2017
2083
|
}
|
|
2018
|
-
}),
|
|
2084
|
+
}), In = R(L.prototype, "activeSubButtonId", [l], {
|
|
2019
2085
|
configurable: !0,
|
|
2020
2086
|
enumerable: !0,
|
|
2021
2087
|
writable: !0,
|
|
2022
2088
|
initializer: function() {
|
|
2023
2089
|
return null;
|
|
2024
2090
|
}
|
|
2025
|
-
}),
|
|
2091
|
+
}), Ln = R(L.prototype, "subButtonsEnabled", [l], {
|
|
2026
2092
|
configurable: !0,
|
|
2027
2093
|
enumerable: !0,
|
|
2028
2094
|
writable: !0,
|
|
2029
2095
|
initializer: function() {
|
|
2030
2096
|
return !1;
|
|
2031
2097
|
}
|
|
2032
|
-
}),
|
|
2098
|
+
}), Rn = R(L.prototype, "searchShortcutState", [l], {
|
|
2033
2099
|
configurable: !0,
|
|
2034
2100
|
enumerable: !0,
|
|
2035
2101
|
writable: !0,
|
|
@@ -2040,7 +2106,7 @@ var jn = (I = class {
|
|
|
2040
2106
|
isShortcutsVisible: !1
|
|
2041
2107
|
};
|
|
2042
2108
|
}
|
|
2043
|
-
}), R(
|
|
2109
|
+
}), R(L.prototype, "setVisible", [u], Object.getOwnPropertyDescriptor(L.prototype, "setVisible"), L.prototype), R(L.prototype, "setSubButtonParent", [u], Object.getOwnPropertyDescriptor(L.prototype, "setSubButtonParent"), L.prototype), R(L.prototype, "setPoiFilter", [u], Object.getOwnPropertyDescriptor(L.prototype, "setPoiFilter"), L.prototype), R(L.prototype, "setSubButton", [u], Object.getOwnPropertyDescriptor(L.prototype, "setSubButton"), L.prototype), R(L.prototype, "setSubButtonsEnabled", [u], Object.getOwnPropertyDescriptor(L.prototype, "setSubButtonsEnabled"), L.prototype), R(L.prototype, "setActiveParentId", [u], Object.getOwnPropertyDescriptor(L.prototype, "setActiveParentId"), L.prototype), R(L.prototype, "showShortcuts", [u], Object.getOwnPropertyDescriptor(L.prototype, "showShortcuts"), L.prototype), R(L.prototype, "clearChildren", [u], Object.getOwnPropertyDescriptor(L.prototype, "clearChildren"), L.prototype), R(L.prototype, "toggleChild", [u], Object.getOwnPropertyDescriptor(L.prototype, "toggleChild"), L.prototype), R(L.prototype, "reset", [u], Object.getOwnPropertyDescriptor(L.prototype, "reset"), L.prototype), R(L.prototype, "hasActiveChildren", [c], Object.getOwnPropertyDescriptor(L.prototype, "hasActiveChildren"), L.prototype), R(L.prototype, "activeChildrenCount", [c], Object.getOwnPropertyDescriptor(L.prototype, "activeChildrenCount"), L.prototype), R(L.prototype, "hasActiveParentWithChildren", [c], Object.getOwnPropertyDescriptor(L.prototype, "hasActiveParentWithChildren"), L.prototype), L), z;
|
|
2044
2110
|
function B(e, t, n, r, i) {
|
|
2045
2111
|
var a = {};
|
|
2046
2112
|
return Object.keys(r).forEach(function(e) {
|
|
@@ -2049,12 +2115,12 @@ function B(e, t, n, r, i) {
|
|
|
2049
2115
|
return r(e, t, n) || n;
|
|
2050
2116
|
}, 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;
|
|
2051
2117
|
}
|
|
2052
|
-
var
|
|
2118
|
+
var Vn = (z = class {
|
|
2053
2119
|
constructor(e) {
|
|
2054
|
-
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
|
|
2120
|
+
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 Bn(), this.filters = new Mn(e, this.state), this.actions = new kn(e, this.state, this.filters), this.factory = new An(e, this.state, this.actions), this.setupReactions();
|
|
2055
2121
|
}
|
|
2056
2122
|
setupReactions() {
|
|
2057
|
-
|
|
2123
|
+
be(() => this.rootStore.boothStore.booths.length, () => this.invalidatePoiTypeCounts()), be(() => this.isNavigationOpen, (e) => {
|
|
2058
2124
|
if (e) {
|
|
2059
2125
|
if (this.keepFiltersOnNextEntry) {
|
|
2060
2126
|
this.keepFiltersOnNextEntry = !1;
|
|
@@ -2072,10 +2138,10 @@ var Mn = (z = class {
|
|
|
2072
2138
|
return e.selectedRoute !== null || e.list.type === "route-planner";
|
|
2073
2139
|
}
|
|
2074
2140
|
get subButtonRegistry() {
|
|
2075
|
-
return this._subButtonRegistry || (this._subButtonRegistry = new
|
|
2141
|
+
return this._subButtonRegistry || (this._subButtonRegistry = new On(), this.registerSubButtonProviders()), this._subButtonRegistry;
|
|
2076
2142
|
}
|
|
2077
2143
|
registerSubButtonProviders() {
|
|
2078
|
-
this.subButtonRegistry.register(new
|
|
2144
|
+
this.subButtonRegistry.register(new Dn(this.rootStore));
|
|
2079
2145
|
}
|
|
2080
2146
|
invalidatePoiTypeCounts() {
|
|
2081
2147
|
this.poiTypeCountsCache.clear(), this.lastPoiTypeCountUpdate = 0;
|
|
@@ -2106,7 +2172,7 @@ var Mn = (z = class {
|
|
|
2106
2172
|
}
|
|
2107
2173
|
get searchButtons() {
|
|
2108
2174
|
let e = p.filterButtonsConfig;
|
|
2109
|
-
if (!
|
|
2175
|
+
if (!ft(e)) return console.warn("[SearchButtonsStore] Invalid filterButtonsConfig detected"), [];
|
|
2110
2176
|
let t = e.searchButtons;
|
|
2111
2177
|
return this.factory.createButtons(t);
|
|
2112
2178
|
}
|
|
@@ -2152,11 +2218,11 @@ var Mn = (z = class {
|
|
|
2152
2218
|
}), this.poiTypeCountsCache = t, this.lastPoiTypeCountUpdate = e, t;
|
|
2153
2219
|
}
|
|
2154
2220
|
get totalPoiTypeCount() {
|
|
2155
|
-
return
|
|
2221
|
+
return dt(this.poiTypeCounts);
|
|
2156
2222
|
}
|
|
2157
2223
|
get activePoiTypeId() {
|
|
2158
2224
|
var e;
|
|
2159
|
-
return (e = this.state.activePoiFilterId) != null && e.startsWith(
|
|
2225
|
+
return (e = this.state.activePoiFilterId) != null && e.startsWith(_.POI_TYPE) ? st(this.state.activePoiFilterId) : null;
|
|
2160
2226
|
}
|
|
2161
2227
|
handleSearchButtonClick(e, t) {
|
|
2162
2228
|
this.actions.handleSearchButtonClick(e, t);
|
|
@@ -2218,8 +2284,8 @@ var Mn = (z = class {
|
|
|
2218
2284
|
getActiveParent() {
|
|
2219
2285
|
return this.filters.getActiveParent();
|
|
2220
2286
|
}
|
|
2221
|
-
}, B(z.prototype, "invalidatePoiTypeCounts", [
|
|
2222
|
-
function
|
|
2287
|
+
}, B(z.prototype, "invalidatePoiTypeCounts", [u], Object.getOwnPropertyDescriptor(z.prototype, "invalidatePoiTypeCounts"), z.prototype), B(z.prototype, "isVisible", [c], Object.getOwnPropertyDescriptor(z.prototype, "isVisible"), z.prototype), B(z.prototype, "shouldShow", [c], Object.getOwnPropertyDescriptor(z.prototype, "shouldShow"), z.prototype), B(z.prototype, "activePoiFilterId", [c], Object.getOwnPropertyDescriptor(z.prototype, "activePoiFilterId"), z.prototype), B(z.prototype, "activeSubButtonsParentId", [c], Object.getOwnPropertyDescriptor(z.prototype, "activeSubButtonsParentId"), z.prototype), B(z.prototype, "activeSubButtonId", [c], Object.getOwnPropertyDescriptor(z.prototype, "activeSubButtonId"), z.prototype), B(z.prototype, "subButtonsEnabled", [c], Object.getOwnPropertyDescriptor(z.prototype, "subButtonsEnabled"), z.prototype), B(z.prototype, "searchShortcutState", [c], Object.getOwnPropertyDescriptor(z.prototype, "searchShortcutState"), z.prototype), B(z.prototype, "searchButtons", [c], Object.getOwnPropertyDescriptor(z.prototype, "searchButtons"), z.prototype), B(z.prototype, "hasAnySearchButtons", [c], Object.getOwnPropertyDescriptor(z.prototype, "hasAnySearchButtons"), z.prototype), B(z.prototype, "hasActiveSearchButton", [c], Object.getOwnPropertyDescriptor(z.prototype, "hasActiveSearchButton"), z.prototype), B(z.prototype, "activeSearchButtonLabel", [c], Object.getOwnPropertyDescriptor(z.prototype, "activeSearchButtonLabel"), z.prototype), B(z.prototype, "activeSubButtons", [c], Object.getOwnPropertyDescriptor(z.prototype, "activeSubButtons"), z.prototype), B(z.prototype, "shouldShowSubButtons", [c], Object.getOwnPropertyDescriptor(z.prototype, "shouldShowSubButtons"), z.prototype), B(z.prototype, "hasActiveParentWithChildren", [c], Object.getOwnPropertyDescriptor(z.prototype, "hasActiveParentWithChildren"), z.prototype), B(z.prototype, "areAllSelected", [c], Object.getOwnPropertyDescriptor(z.prototype, "areAllSelected"), z.prototype), B(z.prototype, "activeChildrenCount", [c], Object.getOwnPropertyDescriptor(z.prototype, "activeChildrenCount"), z.prototype), B(z.prototype, "totalChildrenCount", [c], Object.getOwnPropertyDescriptor(z.prototype, "totalChildrenCount"), z.prototype), B(z.prototype, "poiTypeCounts", [c], Object.getOwnPropertyDescriptor(z.prototype, "poiTypeCounts"), z.prototype), B(z.prototype, "totalPoiTypeCount", [c], Object.getOwnPropertyDescriptor(z.prototype, "totalPoiTypeCount"), z.prototype), B(z.prototype, "activePoiTypeId", [c], 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, Hn, Un, Wn, Gn;
|
|
2288
|
+
function Kn(e, t, n, r) {
|
|
2223
2289
|
n && Object.defineProperty(e, t, {
|
|
2224
2290
|
enumerable: n.enumerable,
|
|
2225
2291
|
configurable: n.configurable,
|
|
@@ -2278,9 +2344,9 @@ var U = class {
|
|
|
2278
2344
|
static resetActiveListIndex(e) {
|
|
2279
2345
|
e.activeListIndex = -1;
|
|
2280
2346
|
}
|
|
2281
|
-
},
|
|
2347
|
+
}, qn = (V = class {
|
|
2282
2348
|
constructor(e) {
|
|
2283
|
-
this.rootStore = void 0,
|
|
2349
|
+
this.rootStore = void 0, Kn(this, "searchText", Hn, this), Kn(this, "isFocused", Un, this), Kn(this, "isClearMode", Wn, this), Kn(this, "skipInputFocus", Gn, this), this.rootStore = e;
|
|
2284
2350
|
}
|
|
2285
2351
|
get uiState() {
|
|
2286
2352
|
return this.rootStore.uiState;
|
|
@@ -2322,11 +2388,11 @@ var U = class {
|
|
|
2322
2388
|
}
|
|
2323
2389
|
get placeholder() {
|
|
2324
2390
|
let { list: e, heatmapYah: t } = this.uiState;
|
|
2325
|
-
return e.type === "sessions" ?
|
|
2391
|
+
return e.type === "sessions" ? a("Search sessions") : e.type === "tours" ? a("Search Guided Tours") : e.type === "exhibitors" ? a("Search exhibitors") : e.type === "speakers" ? a("Search speakers") : we.EXPO.startsWith("lenzerheidemotorclassics") ? "SUCHE" : we.EXPO.startsWith("jetlag") ? "Search location or artist" : t ? a("Find values greater than") : this.uiState.hasAppliedFilters ? a("Search") : p.searchText || a("Search");
|
|
2326
2392
|
}
|
|
2327
2393
|
get searchBoxClass() {
|
|
2328
2394
|
return {
|
|
2329
|
-
"is-details": this.searchBoxMode === "details" && !(this.uiState.details instanceof
|
|
2395
|
+
"is-details": this.searchBoxMode === "details" && !(this.uiState.details instanceof h),
|
|
2330
2396
|
"is-interface": this.searchBoxMode === "interface",
|
|
2331
2397
|
"has-shadow": this.shouldShowShadow,
|
|
2332
2398
|
"has-subtitle": !!this.searchBoxConfig.subtitle,
|
|
@@ -2334,18 +2400,18 @@ var U = class {
|
|
|
2334
2400
|
"has-icon": !!this.searchBoxConfig.icon,
|
|
2335
2401
|
"is-overlay-full": this.uiState.isOverlayOpen && this.uiState.overlaySize === "full",
|
|
2336
2402
|
"is-featured-exhibitor": this.uiState.isFeaturedExhibitorActive,
|
|
2337
|
-
"is-route": this.uiState.details instanceof
|
|
2403
|
+
"is-route": this.uiState.details instanceof h,
|
|
2338
2404
|
"is-guided-tours": this.uiState.isGuidedToursActive,
|
|
2339
2405
|
"is-overlay-scrolled": this.uiState.isOverlayScrolled,
|
|
2340
2406
|
"overlay-pulse": this.uiState.kiosk && this.uiState.inIdle && !this.uiState.setKioskModeEnabled
|
|
2341
2407
|
};
|
|
2342
2408
|
}
|
|
2343
2409
|
get ariaLabel() {
|
|
2344
|
-
return !this.shouldShowSearchInput || this.searchBoxMode === "details" ?
|
|
2410
|
+
return !this.shouldShowSearchInput || this.searchBoxMode === "details" ? a("Close") : this.searchText ? a("Clear search") : a("Close");
|
|
2345
2411
|
}
|
|
2346
2412
|
selectSearch(e) {
|
|
2347
2413
|
window.__resett && window.__resett(), this.uiState.details = null;
|
|
2348
|
-
let t =
|
|
2414
|
+
let t = ce(e || "", Object.keys(this.uiState.mapSettings).map((e) => `${e}=`));
|
|
2349
2415
|
this.setSearchText(t), this.uiState.activeListIndex = -1;
|
|
2350
2416
|
}
|
|
2351
2417
|
selectSearchAndFocus(e) {
|
|
@@ -2399,7 +2465,7 @@ var U = class {
|
|
|
2399
2465
|
}, this.setFocused(!0), this.isClearMode = !0, U.closeMenu(t);
|
|
2400
2466
|
return;
|
|
2401
2467
|
}
|
|
2402
|
-
if (n.type === "tours" && t.details instanceof
|
|
2468
|
+
if (n.type === "tours" && t.details instanceof h) {
|
|
2403
2469
|
t.details = null;
|
|
2404
2470
|
return;
|
|
2405
2471
|
}
|
|
@@ -2470,7 +2536,7 @@ var U = class {
|
|
|
2470
2536
|
U.returnToSearch(e, !1), this.searchText = "", this.resetSearchBox(), e.details = null, this.clearActiveFilters();
|
|
2471
2537
|
}
|
|
2472
2538
|
clearActiveFilters() {
|
|
2473
|
-
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();
|
|
2539
|
+
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.categoryFilterStore.setOwner(null), 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();
|
|
2474
2540
|
}
|
|
2475
2541
|
resetSearchButtonState() {
|
|
2476
2542
|
let { uiState: e } = this;
|
|
@@ -2505,7 +2571,7 @@ var U = class {
|
|
|
2505
2571
|
return (e === "bookmarks" || e === "visited") && !this.uiState.details && !this.uiState.menu || this.shouldShowSearchInput && !this.searchText ? "menu" : "back";
|
|
2506
2572
|
}
|
|
2507
2573
|
get isMobileDetailsMode() {
|
|
2508
|
-
return window.innerWidth < 768 && this.uiState.details !== null && this.uiState.overlaySize === "full" && !(this.uiState.details instanceof
|
|
2574
|
+
return window.innerWidth < 768 && this.uiState.details !== null && this.uiState.overlaySize === "full" && !(this.uiState.details instanceof h);
|
|
2509
2575
|
}
|
|
2510
2576
|
get shouldShowTitle() {
|
|
2511
2577
|
return !this.shouldShowSearchInput;
|
|
@@ -2522,36 +2588,36 @@ var U = class {
|
|
|
2522
2588
|
icon: this.searchBoxConfig.icon
|
|
2523
2589
|
};
|
|
2524
2590
|
}
|
|
2525
|
-
},
|
|
2591
|
+
}, Hn = H(V.prototype, "searchText", [l], {
|
|
2526
2592
|
configurable: !0,
|
|
2527
2593
|
enumerable: !0,
|
|
2528
2594
|
writable: !0,
|
|
2529
2595
|
initializer: function() {
|
|
2530
2596
|
return "";
|
|
2531
2597
|
}
|
|
2532
|
-
}),
|
|
2598
|
+
}), Un = H(V.prototype, "isFocused", [l], {
|
|
2533
2599
|
configurable: !0,
|
|
2534
2600
|
enumerable: !0,
|
|
2535
2601
|
writable: !0,
|
|
2536
2602
|
initializer: function() {
|
|
2537
2603
|
return !1;
|
|
2538
2604
|
}
|
|
2539
|
-
}),
|
|
2605
|
+
}), Wn = H(V.prototype, "isClearMode", [l], {
|
|
2540
2606
|
configurable: !0,
|
|
2541
2607
|
enumerable: !0,
|
|
2542
2608
|
writable: !0,
|
|
2543
2609
|
initializer: function() {
|
|
2544
2610
|
return !1;
|
|
2545
2611
|
}
|
|
2546
|
-
}),
|
|
2612
|
+
}), Gn = H(V.prototype, "skipInputFocus", [l], {
|
|
2547
2613
|
configurable: !0,
|
|
2548
2614
|
enumerable: !0,
|
|
2549
2615
|
writable: !0,
|
|
2550
2616
|
initializer: function() {
|
|
2551
2617
|
return !1;
|
|
2552
2618
|
}
|
|
2553
|
-
}), H(V.prototype, "searchBoxConfig", [
|
|
2554
|
-
function
|
|
2619
|
+
}), H(V.prototype, "searchBoxConfig", [c], Object.getOwnPropertyDescriptor(V.prototype, "searchBoxConfig"), V.prototype), H(V.prototype, "searchBoxMode", [c], Object.getOwnPropertyDescriptor(V.prototype, "searchBoxMode"), V.prototype), H(V.prototype, "searchBoxTitle", [c], Object.getOwnPropertyDescriptor(V.prototype, "searchBoxTitle"), V.prototype), H(V.prototype, "searchBoxSubtitle", [c], Object.getOwnPropertyDescriptor(V.prototype, "searchBoxSubtitle"), V.prototype), H(V.prototype, "searchBoxBadge", [c], Object.getOwnPropertyDescriptor(V.prototype, "searchBoxBadge"), V.prototype), H(V.prototype, "searchBoxIcon", [c], Object.getOwnPropertyDescriptor(V.prototype, "searchBoxIcon"), V.prototype), H(V.prototype, "searchBoxActions", [c], Object.getOwnPropertyDescriptor(V.prototype, "searchBoxActions"), V.prototype), H(V.prototype, "shouldShowSearchInput", [c], Object.getOwnPropertyDescriptor(V.prototype, "shouldShowSearchInput"), V.prototype), H(V.prototype, "shouldShowCloseButton", [c], Object.getOwnPropertyDescriptor(V.prototype, "shouldShowCloseButton"), V.prototype), H(V.prototype, "closeButtonAction", [c], Object.getOwnPropertyDescriptor(V.prototype, "closeButtonAction"), V.prototype), H(V.prototype, "shouldShowShadow", [c], Object.getOwnPropertyDescriptor(V.prototype, "shouldShowShadow"), V.prototype), H(V.prototype, "placeholder", [c], Object.getOwnPropertyDescriptor(V.prototype, "placeholder"), V.prototype), H(V.prototype, "searchBoxClass", [c], Object.getOwnPropertyDescriptor(V.prototype, "searchBoxClass"), V.prototype), H(V.prototype, "ariaLabel", [c], 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, "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", [c], Object.getOwnPropertyDescriptor(V.prototype, "actionButtonIcon"), V.prototype), H(V.prototype, "clearAndSelectSearch", [u], Object.getOwnPropertyDescriptor(V.prototype, "clearAndSelectSearch"), V.prototype), H(V.prototype, "backMode", [c], Object.getOwnPropertyDescriptor(V.prototype, "backMode"), V.prototype), H(V.prototype, "isMobileDetailsMode", [c], Object.getOwnPropertyDescriptor(V.prototype, "isMobileDetailsMode"), V.prototype), H(V.prototype, "shouldShowTitle", [c], Object.getOwnPropertyDescriptor(V.prototype, "shouldShowTitle"), V.prototype), H(V.prototype, "searchState", [c], Object.getOwnPropertyDescriptor(V.prototype, "searchState"), V.prototype), V), W, Jn;
|
|
2620
|
+
function Yn(e, t, n, r) {
|
|
2555
2621
|
n && Object.defineProperty(e, t, {
|
|
2556
2622
|
enumerable: n.enumerable,
|
|
2557
2623
|
configurable: n.configurable,
|
|
@@ -2577,9 +2643,9 @@ var K = {
|
|
|
2577
2643
|
use24hFormat: !1,
|
|
2578
2644
|
showBookmarksOnly: !1,
|
|
2579
2645
|
showLiveOnly: !1
|
|
2580
|
-
},
|
|
2646
|
+
}, Xn = (W = class extends xt {
|
|
2581
2647
|
constructor(e) {
|
|
2582
|
-
super(e),
|
|
2648
|
+
super(e), Yn(this, "state", Jn, this);
|
|
2583
2649
|
}
|
|
2584
2650
|
createInitialFilters() {
|
|
2585
2651
|
let e = {};
|
|
@@ -2657,7 +2723,7 @@ var K = {
|
|
|
2657
2723
|
getFilteredItems() {
|
|
2658
2724
|
return [];
|
|
2659
2725
|
}
|
|
2660
|
-
},
|
|
2726
|
+
}, Jn = G(W.prototype, "state", [l], {
|
|
2661
2727
|
configurable: !0,
|
|
2662
2728
|
enumerable: !0,
|
|
2663
2729
|
writable: !0,
|
|
@@ -2679,7 +2745,7 @@ var K = {
|
|
|
2679
2745
|
filters: this.createInitialFilters()
|
|
2680
2746
|
};
|
|
2681
2747
|
}
|
|
2682
|
-
}), G(W.prototype, "setSearchText", [
|
|
2748
|
+
}), 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", [c], Object.getOwnPropertyDescriptor(W.prototype, "activeFiltersCount"), W.prototype), W), Zn = class {
|
|
2683
2749
|
constructor() {
|
|
2684
2750
|
this.providers = /* @__PURE__ */ new Map(), this.activationOrder = /* @__PURE__ */ new Map();
|
|
2685
2751
|
}
|
|
@@ -2756,8 +2822,8 @@ var K = {
|
|
|
2756
2822
|
clear() {
|
|
2757
2823
|
this.providers.clear(), this.activationOrder.clear();
|
|
2758
2824
|
}
|
|
2759
|
-
}, q,
|
|
2760
|
-
function
|
|
2825
|
+
}, q, Qn, $n, J, er;
|
|
2826
|
+
function tr(e, t, n, r) {
|
|
2761
2827
|
n && Object.defineProperty(e, t, {
|
|
2762
2828
|
enumerable: n.enumerable,
|
|
2763
2829
|
configurable: n.configurable,
|
|
@@ -2773,9 +2839,9 @@ function Y(e, t, n, r, i) {
|
|
|
2773
2839
|
return r(e, t, n) || n;
|
|
2774
2840
|
}, 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;
|
|
2775
2841
|
}
|
|
2776
|
-
var
|
|
2842
|
+
var nr = (q = class {
|
|
2777
2843
|
constructor(e) {
|
|
2778
|
-
|
|
2844
|
+
tr(this, "value", Qn, this), tr(this, "pending", $n, this), this.value = e, this.pending = e;
|
|
2779
2845
|
}
|
|
2780
2846
|
setValue(e) {
|
|
2781
2847
|
this.pending = e;
|
|
@@ -2786,19 +2852,19 @@ var qn = (q = class {
|
|
|
2786
2852
|
reset() {
|
|
2787
2853
|
this.pending = this.value;
|
|
2788
2854
|
}
|
|
2789
|
-
},
|
|
2855
|
+
}, Qn = Y(q.prototype, "value", [l], {
|
|
2790
2856
|
configurable: !0,
|
|
2791
2857
|
enumerable: !0,
|
|
2792
2858
|
writable: !0,
|
|
2793
2859
|
initializer: null
|
|
2794
|
-
}),
|
|
2860
|
+
}), $n = Y(q.prototype, "pending", [l], {
|
|
2795
2861
|
configurable: !0,
|
|
2796
2862
|
enumerable: !0,
|
|
2797
2863
|
writable: !0,
|
|
2798
2864
|
initializer: null
|
|
2799
|
-
}), Y(q.prototype, "setValue", [
|
|
2865
|
+
}), 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), rr = (J = class {
|
|
2800
2866
|
constructor(e) {
|
|
2801
|
-
this.rootStore = void 0,
|
|
2867
|
+
this.rootStore = void 0, tr(this, "state", er, this), this.rootStore = e;
|
|
2802
2868
|
}
|
|
2803
2869
|
get activeFiltersCount() {
|
|
2804
2870
|
let e = 0, { filters: t } = this.state;
|
|
@@ -2845,7 +2911,7 @@ var qn = (q = class {
|
|
|
2845
2911
|
selectedJobTitles: []
|
|
2846
2912
|
};
|
|
2847
2913
|
}
|
|
2848
|
-
},
|
|
2914
|
+
}, er = Y(J.prototype, "state", [l], {
|
|
2849
2915
|
configurable: !0,
|
|
2850
2916
|
enumerable: !0,
|
|
2851
2917
|
writable: !0,
|
|
@@ -2853,13 +2919,13 @@ var qn = (q = class {
|
|
|
2853
2919
|
return {
|
|
2854
2920
|
isOpen: !1,
|
|
2855
2921
|
filters: {
|
|
2856
|
-
selectedCompanies: new
|
|
2857
|
-
selectedJobTitles: new
|
|
2922
|
+
selectedCompanies: new nr([]),
|
|
2923
|
+
selectedJobTitles: new nr([])
|
|
2858
2924
|
},
|
|
2859
2925
|
visibleSections: ["companies", "jobTitles"]
|
|
2860
2926
|
};
|
|
2861
2927
|
}
|
|
2862
|
-
}), Y(J.prototype, "activeFiltersCount", [
|
|
2928
|
+
}), Y(J.prototype, "activeFiltersCount", [c], 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), ir = {
|
|
2863
2929
|
uitestdemo: [{
|
|
2864
2930
|
id: "connected-business-tour",
|
|
2865
2931
|
layers: [{
|
|
@@ -3254,8 +3320,8 @@ var qn = (q = class {
|
|
|
3254
3320
|
"16529024"
|
|
3255
3321
|
]
|
|
3256
3322
|
}]
|
|
3257
|
-
}, X,
|
|
3258
|
-
function
|
|
3323
|
+
}, X, ar, or, sr, cr;
|
|
3324
|
+
function lr(e, t, n, r) {
|
|
3259
3325
|
n && Object.defineProperty(e, t, {
|
|
3260
3326
|
enumerable: n.enumerable,
|
|
3261
3327
|
configurable: n.configurable,
|
|
@@ -3271,17 +3337,17 @@ function Z(e, t, n, r, i) {
|
|
|
3271
3337
|
return r(e, t, n) || n;
|
|
3272
3338
|
}, 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;
|
|
3273
3339
|
}
|
|
3274
|
-
var
|
|
3340
|
+
var ur = 1, dr = (X = class {
|
|
3275
3341
|
constructor(e) {
|
|
3276
|
-
this.rootStore = void 0,
|
|
3342
|
+
this.rootStore = void 0, lr(this, "tours", ar, this), lr(this, "currentExpo", or, this), lr(this, "hasTours", sr, this), lr(this, "toursLoadError", cr, this), this.rootStore = e, this.loadTours();
|
|
3277
3343
|
}
|
|
3278
3344
|
loadTours() {
|
|
3279
3345
|
try {
|
|
3280
|
-
if (this.currentExpo =
|
|
3346
|
+
if (this.currentExpo = we.EXPO || "default", this.toursLoadError = null, !this.isValidToursData(ir)) {
|
|
3281
3347
|
this.toursLoadError = "Invalid tours data format", this.resetTours();
|
|
3282
3348
|
return;
|
|
3283
3349
|
}
|
|
3284
|
-
let e =
|
|
3350
|
+
let e = ir[this.currentExpo] || [];
|
|
3285
3351
|
if (!this.validateToursStructure(e)) {
|
|
3286
3352
|
this.toursLoadError = "Invalid tour items structure", this.resetTours();
|
|
3287
3353
|
return;
|
|
@@ -3298,7 +3364,7 @@ var tr = 1, nr = (X = class {
|
|
|
3298
3364
|
return typeof e == "object" && !!e && !Array.isArray(e);
|
|
3299
3365
|
}
|
|
3300
3366
|
validateToursStructure(e) {
|
|
3301
|
-
return Array.isArray(e) ? e.every((e) => e && typeof e == "object" && typeof e.id == "string" && Array.isArray(e.layers) && e.layers.length >=
|
|
3367
|
+
return Array.isArray(e) ? e.every((e) => e && typeof e == "object" && typeof e.id == "string" && Array.isArray(e.layers) && e.layers.length >= ur && (e.points === void 0 || Array.isArray(e.points))) : !1;
|
|
3302
3368
|
}
|
|
3303
3369
|
get tourItems() {
|
|
3304
3370
|
return this.tours;
|
|
@@ -3313,7 +3379,7 @@ var tr = 1, nr = (X = class {
|
|
|
3313
3379
|
});
|
|
3314
3380
|
}
|
|
3315
3381
|
getToursForExpo(e) {
|
|
3316
|
-
return this.isValidToursData(
|
|
3382
|
+
return this.isValidToursData(ir) && ir[e] || [];
|
|
3317
3383
|
}
|
|
3318
3384
|
get currentTour() {
|
|
3319
3385
|
let { list: e } = this.rootStore.uiState;
|
|
@@ -3345,7 +3411,7 @@ var tr = 1, nr = (X = class {
|
|
|
3345
3411
|
}, navigator.userAgent.toLowerCase().indexOf("android") > -1 ? 400 : 50), !0;
|
|
3346
3412
|
}
|
|
3347
3413
|
validateTourForLaunch(e) {
|
|
3348
|
-
return e.layers.length <
|
|
3414
|
+
return e.layers.length < ur ? `Tour must have at least ${ur} layer` : null;
|
|
3349
3415
|
}
|
|
3350
3416
|
stopTour() {
|
|
3351
3417
|
this.rootStore.uiState.setIsMultiPointTour(!1), this.rootStore.uiState.setPathwayOnlyMode(!1);
|
|
@@ -3356,36 +3422,36 @@ var tr = 1, nr = (X = class {
|
|
|
3356
3422
|
focused: !1
|
|
3357
3423
|
}), this.rootStore.fp.hidePathways();
|
|
3358
3424
|
}
|
|
3359
|
-
},
|
|
3425
|
+
}, ar = Z(X.prototype, "tours", [l], {
|
|
3360
3426
|
configurable: !0,
|
|
3361
3427
|
enumerable: !0,
|
|
3362
3428
|
writable: !0,
|
|
3363
3429
|
initializer: function() {
|
|
3364
3430
|
return [];
|
|
3365
3431
|
}
|
|
3366
|
-
}),
|
|
3432
|
+
}), or = Z(X.prototype, "currentExpo", [l], {
|
|
3367
3433
|
configurable: !0,
|
|
3368
3434
|
enumerable: !0,
|
|
3369
3435
|
writable: !0,
|
|
3370
3436
|
initializer: function() {
|
|
3371
3437
|
return "";
|
|
3372
3438
|
}
|
|
3373
|
-
}),
|
|
3439
|
+
}), sr = Z(X.prototype, "hasTours", [l], {
|
|
3374
3440
|
configurable: !0,
|
|
3375
3441
|
enumerable: !0,
|
|
3376
3442
|
writable: !0,
|
|
3377
3443
|
initializer: function() {
|
|
3378
3444
|
return !1;
|
|
3379
3445
|
}
|
|
3380
|
-
}),
|
|
3446
|
+
}), cr = Z(X.prototype, "toursLoadError", [l], {
|
|
3381
3447
|
configurable: !0,
|
|
3382
3448
|
enumerable: !0,
|
|
3383
3449
|
writable: !0,
|
|
3384
3450
|
initializer: function() {
|
|
3385
3451
|
return null;
|
|
3386
3452
|
}
|
|
3387
|
-
}), Z(X.prototype, "loadTours", [
|
|
3388
|
-
function
|
|
3453
|
+
}), 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", [c], Object.getOwnPropertyDescriptor(X.prototype, "tourItems"), X.prototype), Z(X.prototype, "currentTour", [c], Object.getOwnPropertyDescriptor(X.prototype, "currentTour"), X.prototype), Z(X.prototype, "isActive", [c], Object.getOwnPropertyDescriptor(X.prototype, "isActive"), X.prototype), Z(X.prototype, "tourLayers", [c], 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, fr, pr;
|
|
3454
|
+
function mr(e, t, n, r) {
|
|
3389
3455
|
n && Object.defineProperty(e, t, {
|
|
3390
3456
|
enumerable: n.enumerable,
|
|
3391
3457
|
configurable: n.configurable,
|
|
@@ -3401,17 +3467,17 @@ function $(e, t, n, r, i) {
|
|
|
3401
3467
|
return r(e, t, n) || n;
|
|
3402
3468
|
}, 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;
|
|
3403
3469
|
}
|
|
3404
|
-
var
|
|
3470
|
+
var hr = (Q = class {
|
|
3405
3471
|
setResetCameraFn(e) {
|
|
3406
3472
|
this.resetCameraFn = e;
|
|
3407
3473
|
}
|
|
3408
3474
|
constructor() {
|
|
3409
|
-
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.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.fp = void 0,
|
|
3475
|
+
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.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.fp = void 0, mr(this, "initialized", fr, this), mr(this, "resetCameraFn", pr, this), this.categoryStore = new ae(this), this.exhibitorStore = new Ee(this), this.boothStore = new Pe(this), this.routeStore = new Be(this), this.routePlannerStore = new Cn(this), this.toursStore = new dr(this), this.uiState = new ue(this), this.overlayStore = new Zt(this), this.maplibreStore = new Yt(this), this.layerStore = new je(), this.intercomStore = new Lt(), this.eventStore = new re(this), this.heatmapStore = new te(), this.poiTypeStore = new sn(this), this.poiMarkerStore = new on(this), this.fuzzySearchEngineStore = new Mt([
|
|
3410
3476
|
"name",
|
|
3411
3477
|
"title",
|
|
3412
3478
|
"fullName",
|
|
3413
3479
|
"booths.name"
|
|
3414
|
-
]), this.categoryFilterStore = new
|
|
3480
|
+
]), this.categoryFilterStore = new Dt(this), this.sessionsFilterStore = new Xn(this), this.speakerStore = new le(this), this.speakerFilterStore = new rr(this), this.searchStore = new qn(this), this.searchButtonsStore = new Vn(this), this.bookmarksStore = new vt(this), this.urlFilterManager = new gt(this), this.shortcutRegistry = new Zn(), this.registerShortcutProviders();
|
|
3415
3481
|
}
|
|
3416
3482
|
selectExhibitor(e, t = !0) {
|
|
3417
3483
|
this.uiState.hoveredExhibitor = null, this.uiState.details = e;
|
|
@@ -3421,17 +3487,17 @@ var or = (Q = class {
|
|
|
3421
3487
|
selectBooth(e, t = !0) {
|
|
3422
3488
|
var n, r;
|
|
3423
3489
|
let i = Array.isArray(e) ? e : [e];
|
|
3424
|
-
this.uiState.details = (n = i[0]) == null ? null : n, i.length === 1 && (r = i[0].schedule) != null && r.length && (this.uiState.desiredOverlaySize = "medium"), i.length === 1 && i[0].layer && !i[0].visible && this.layerStore.mode ===
|
|
3490
|
+
this.uiState.details = (n = i[0]) == null ? null : n, i.length === 1 && (r = i[0].schedule) != null && r.length && (this.uiState.desiredOverlaySize = "medium"), i.length === 1 && i[0].layer && !i[0].visible && this.layerStore.mode === Ne.Radio && this.layerStore.updateVisibility(i[0].layer, !0), t && setTimeout(() => this.moveToList(i), d || f ? 500 : 50);
|
|
3425
3491
|
}
|
|
3426
3492
|
reset() {
|
|
3427
3493
|
let e = window.__searchi;
|
|
3428
3494
|
e && e.querySelector && e.querySelector("input[type=search]") && e.querySelector("input[type=search]").blur && e.querySelector("input[type=search]").blur(), window.setTimeout(() => {
|
|
3429
3495
|
this.uiState.setKioskModeEnabled || n().then(() => {
|
|
3430
|
-
|
|
3496
|
+
ee(() => {
|
|
3431
3497
|
var e;
|
|
3432
3498
|
this.selectSearch(""), this.uiState.details = null, (e = this.resetCameraFn) == null || e.call(this), this.uiState.menu = !1, this.searchStore.resetSearchBox(), this.searchButtonsStore.clearAllFilters();
|
|
3433
3499
|
}), setTimeout(() => {
|
|
3434
|
-
|
|
3500
|
+
ee(() => {
|
|
3435
3501
|
this.uiState.inIdle = !0;
|
|
3436
3502
|
});
|
|
3437
3503
|
}, 100);
|
|
@@ -3462,7 +3528,7 @@ var or = (Q = class {
|
|
|
3462
3528
|
selectEventItem(e, t = !0) {
|
|
3463
3529
|
if (this.uiState.hoveredExhibitor = null, this.uiState.details = e, this.uiState.desiredOverlaySize = "medium", e.boothId) {
|
|
3464
3530
|
let t = this.boothStore.booths.find((t) => t.id === e.boothId);
|
|
3465
|
-
t && t.layer && !t.visible && this.layerStore.mode ===
|
|
3531
|
+
t && t.layer && !t.visible && this.layerStore.mode === Ne.Radio && this.layerStore.updateVisibility(t.layer, !0);
|
|
3466
3532
|
}
|
|
3467
3533
|
t && setTimeout(() => {
|
|
3468
3534
|
if (e.boothId) {
|
|
@@ -3474,7 +3540,7 @@ var or = (Q = class {
|
|
|
3474
3540
|
selectSearch(e) {
|
|
3475
3541
|
window.__resett && window.__resett(), this.uiState.details = null, this.speakerStore.clearSelectedSpeaker(), this.uiState.list = {
|
|
3476
3542
|
type: "search",
|
|
3477
|
-
text:
|
|
3543
|
+
text: ce(e, Object.keys(this.uiState.mapSettings).map((e) => `${e}=`)),
|
|
3478
3544
|
focused: !1
|
|
3479
3545
|
}, this.uiState.activeListIndex = -1;
|
|
3480
3546
|
}
|
|
@@ -3534,14 +3600,14 @@ var or = (Q = class {
|
|
|
3534
3600
|
} };
|
|
3535
3601
|
this.uiState.onBoothClick(n);
|
|
3536
3602
|
}
|
|
3537
|
-
if (e.exhibitors.length === 1 && e instanceof
|
|
3603
|
+
if (e.exhibitors.length === 1 && e instanceof Me) {
|
|
3538
3604
|
let t = e.exhibitors[0];
|
|
3539
|
-
a === t ?
|
|
3605
|
+
a === t ? ze(Ve.ViewBooth, e.name) : this.heatmapStore.forceTrack = {
|
|
3540
3606
|
action: Ve.ViewBooth,
|
|
3541
3607
|
label: e.name,
|
|
3542
3608
|
exhibitor: t
|
|
3543
3609
|
}, this.selectExhibitor(t, !1);
|
|
3544
|
-
} else a === e &&
|
|
3610
|
+
} else a === e && ze(Ve.ViewBooth, e.name), this.selectBooth(e, !1);
|
|
3545
3611
|
this.showMap();
|
|
3546
3612
|
}
|
|
3547
3613
|
}
|
|
@@ -3554,7 +3620,7 @@ var or = (Q = class {
|
|
|
3554
3620
|
}, navigator.userAgent.toLowerCase().indexOf("android") > -1 ? 400 : 50);
|
|
3555
3621
|
}
|
|
3556
3622
|
showMap() {
|
|
3557
|
-
this.uiState.overlayPosition === "bottom" &&
|
|
3623
|
+
this.uiState.overlayPosition === "bottom" && ye && (this.uiState.desiredOverlaySize = "medium");
|
|
3558
3624
|
}
|
|
3559
3625
|
showOverlay() {
|
|
3560
3626
|
this.uiState.overlayPosition === "bottom" && (this.uiState.desiredOverlaySize = "full");
|
|
@@ -3566,12 +3632,12 @@ var or = (Q = class {
|
|
|
3566
3632
|
e = e || this.uiState.listItems;
|
|
3567
3633
|
let t = [];
|
|
3568
3634
|
e.forEach((e) => {
|
|
3569
|
-
if (e instanceof
|
|
3570
|
-
else if (e instanceof
|
|
3571
|
-
else if (e instanceof
|
|
3635
|
+
if (e instanceof Oe) t.push(...e.booths.filter((e) => e.visible));
|
|
3636
|
+
else if (e instanceof De) e.visible && t.push(e);
|
|
3637
|
+
else if (e instanceof ne && e.boothId) {
|
|
3572
3638
|
let n = this.boothStore.boothById.get(e.boothId);
|
|
3573
3639
|
n != null && n.visible && t.push(n);
|
|
3574
|
-
} else e instanceof
|
|
3640
|
+
} else e instanceof oe && this.speakerStore.getEventsBySpeaker(e.id).forEach((e) => {
|
|
3575
3641
|
if (!e.boothId) return;
|
|
3576
3642
|
let n = this.boothStore.boothById.get(e.boothId);
|
|
3577
3643
|
n != null && n.visible && t.push(n);
|
|
@@ -3596,7 +3662,7 @@ var or = (Q = class {
|
|
|
3596
3662
|
}
|
|
3597
3663
|
openActiveListItem() {
|
|
3598
3664
|
let e = this.uiState.listItems[this.uiState.activeListIndex];
|
|
3599
|
-
e && (
|
|
3665
|
+
e && (s.log("Opening", e), e instanceof Oe ? this.clickExhibitor(e) : e instanceof se ? this.clickCategory(e) : e instanceof De && this.clickBoothInList2(e));
|
|
3600
3666
|
}
|
|
3601
3667
|
toggleCategoryFilter() {
|
|
3602
3668
|
this.uiState.categoryFilterOpen = !this.uiState.categoryFilterOpen;
|
|
@@ -3642,26 +3708,26 @@ var or = (Q = class {
|
|
|
3642
3708
|
this.searchButtonsStore.clearAllFilters();
|
|
3643
3709
|
}
|
|
3644
3710
|
registerShortcutProviders() {
|
|
3645
|
-
this.shortcutRegistry.register(new
|
|
3711
|
+
this.shortcutRegistry.register(new mn(this)), this.shortcutRegistry.register(new _n(this)), this.shortcutRegistry.register(new dn(this));
|
|
3646
3712
|
}
|
|
3647
|
-
},
|
|
3713
|
+
}, fr = $(Q.prototype, "initialized", [l], {
|
|
3648
3714
|
configurable: !0,
|
|
3649
3715
|
enumerable: !0,
|
|
3650
3716
|
writable: !0,
|
|
3651
3717
|
initializer: function() {
|
|
3652
3718
|
return !1;
|
|
3653
3719
|
}
|
|
3654
|
-
}),
|
|
3720
|
+
}), pr = $(Q.prototype, "resetCameraFn", [l], {
|
|
3655
3721
|
configurable: !0,
|
|
3656
3722
|
enumerable: !0,
|
|
3657
3723
|
writable: !0,
|
|
3658
3724
|
initializer: null
|
|
3659
|
-
}), $(Q.prototype, "setResetCameraFn", [
|
|
3725
|
+
}), $(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", [c], 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);
|
|
3660
3726
|
//#endregion
|
|
3661
3727
|
//#region src/store/create-live-plan.ts
|
|
3662
|
-
function
|
|
3663
|
-
let e = new
|
|
3664
|
-
|
|
3728
|
+
function gr() {
|
|
3729
|
+
let e = new hr();
|
|
3730
|
+
de(e), o(() => de(null)), at(e), window.__store = fe;
|
|
3665
3731
|
}
|
|
3666
3732
|
//#endregion
|
|
3667
|
-
export {
|
|
3733
|
+
export { gr as createLivePlan };
|