@expofp/floorplan 3.0.0-alpha.15 → 3.0.0-alpha.16
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/browser/Debug-DazuGIJc.js +40 -0
- package/dist/browser/{Demo-pwpeopeB.js → Demo-CXdISYQf.js} +6 -6
- package/dist/browser/{Free-CeZSHheC.js → Free-CVgHQ8yt.js} +10 -10
- package/dist/browser/{Gallery-BTasOfWx.js → Gallery-BMcvPLO_.js} +31 -31
- package/dist/browser/{GpsLoader-BS8b-Aif.js → GpsLoader-BiwFO3QG.js} +25 -25
- package/dist/browser/{KioskStore-_Zcv0Bc0.js → KioskStore-NqUeUutQ.js} +9 -9
- package/dist/browser/{Mapbox-Cl59-8BN.js → Mapbox-PHCrBnx5.js} +14 -14
- package/dist/browser/{SetKioskMode-CjjAW8SI.js → SetKioskMode-DMQej1ec.js} +35 -35
- package/dist/browser/{ShowKiosk-DUcthTIK.js → ShowKiosk-BWlBMcI7.js} +9 -9
- package/dist/browser/{ThreeComponent-CdelmApV.js → ThreeComponent-Dmt2HPyX.js} +7 -7
- package/dist/browser/ViewerMenuPanel-CuqRZ7m1.js +77 -0
- package/dist/browser/{boolean-editor-HetrPeeC.js → boolean-editor-zsvPcNpX.js} +6 -6
- package/dist/browser/bundle.json +32 -29
- package/dist/browser/{client-BMgLu7eB.js → client-B2kCMH8A.js} +4 -4
- package/dist/browser/{data-eO9H1gMa.js → data-BtD6blv7.js} +4 -4
- package/dist/browser/{debug-overlay-DqIeCuHo.js → debug-overlay-CF0imHRX.js} +7 -7
- package/dist/browser/{debug-ui-6t_iunMd.js → debug-ui-Zt7T7T-N.js} +14 -14
- package/dist/browser/{favicon-CoF9H4Pb.js → favicon-Dj8hNa7i.js} +1 -1
- package/dist/browser/{fetch-retry.umd-GcX1W9qV.js → fetch-retry.umd-B-swKpFA.js} +26 -26
- package/dist/browser/{flex-BC_JSvaB.js → flex-COa6XN1F.js} +5 -5
- package/dist/browser/{floorplan.ready-CZn5dvsU.js → floorplan.ready-CNnM_Yyc.js} +12197 -14235
- package/dist/browser/fonts/efp-symbols.woff +0 -0
- package/dist/browser/{index-sNwIhVDZ.js → index-B1P-x0sk.js} +5 -5
- package/dist/browser/{index-C1Rwmp91.js → index-BEcZnTgd.js} +14 -14
- package/dist/browser/{index-Dba8EyWF.js → index-BeS6l0j-.js} +24 -24
- package/dist/browser/index-C04zJbbt.js +12475 -0
- package/dist/browser/{index-Dp-WygGH.js → index-CgWDjED_.js} +12 -12
- package/dist/browser/{index-CEVUHq8g.js → index-CqICVJZO.js} +5 -5
- package/dist/browser/{index-uGr-_9rk.js → index-atMSRNM1.js} +3 -3
- package/dist/browser/index.js +3 -3
- package/dist/browser/{jsx-runtime-BHfPvO9I.js → jsx-runtime-DAY7g56y.js} +1 -1
- package/dist/browser/locales/ar.json +3 -1
- package/dist/browser/locales/de.json +3 -1
- package/dist/browser/locales/es.json +3 -1
- package/dist/browser/locales/fr.json +3 -1
- package/dist/browser/locales/he.json +3 -1
- package/dist/browser/locales/it.json +3 -1
- package/dist/browser/locales/kk.json +3 -1
- package/dist/browser/locales/ko.json +3 -1
- package/dist/browser/locales/mn.json +3 -1
- package/dist/browser/locales/nl.json +3 -1
- package/dist/browser/locales/pl.json +3 -1
- package/dist/browser/locales/pt.json +3 -1
- package/dist/browser/locales/ru.json +3 -1
- package/dist/browser/locales/sv.json +3 -1
- package/dist/browser/locales/th.json +3 -1
- package/dist/browser/locales/tr.json +3 -1
- package/dist/browser/locales/uk.json +3 -1
- package/dist/browser/locales/vi.json +3 -1
- package/dist/browser/locales/zh.json +3 -1
- package/dist/browser/{main-DYasSc7U.js → main-DZpmA53N.js} +1 -1
- package/dist/browser/{particles.min-B6O6_M_h.js → particles.min-DXab_WLN.js} +3 -3
- package/dist/esm/components/Alert.d.ts +2 -0
- package/dist/esm/components/Alert.js +1 -1
- package/dist/esm/components/Badge.d.ts +3 -2
- package/dist/esm/components/Badge.js +1 -1
- package/dist/esm/components/CookieConsent.js +1 -1
- package/dist/esm/components/Kiosk/SetKiosk/storage.d.ts +1 -1
- package/dist/esm/components/Kiosk/SetKiosk/storage.js +1 -1
- package/dist/esm/components/Kiosk/ShowKiosk.js +1 -1
- package/dist/esm/components/Menu.js +1 -1
- package/dist/esm/components/Overlay.d.ts +2 -0
- package/dist/esm/components/Overlay.js +1 -1
- package/dist/esm/components/OverlayContainer.js +1 -1
- package/dist/esm/components/RoutePlanner/RoutePlanner.js +1 -1
- package/dist/esm/components/RoutePlanner/RoutePlannerHeader.js +1 -1
- package/dist/esm/components/RoutePlanner/RoutePlannerStopItem.js +1 -1
- package/dist/esm/components/Schedule.js +1 -1
- package/dist/esm/components/SearchBox.js +1 -1
- package/dist/esm/components/ViewerMenuPanel.d.ts +5 -0
- package/dist/esm/components/ViewerMenuPanel.js +1 -0
- package/dist/esm/constants.d.ts +2 -0
- package/dist/esm/constants.js +1 -1
- package/dist/esm/floorplan.loader.d.ts +2 -0
- package/dist/esm/floorplan.loader.js +1 -1
- package/dist/esm/floorplan.ready.js +1 -1
- package/dist/esm/services/routing.js +1 -1
- package/dist/esm/store/LayerStore.d.ts +1 -0
- package/dist/esm/store/LayerStore.js +1 -1
- package/dist/esm/store/RoutePlannerStore.d.ts +16 -0
- package/dist/esm/store/RoutePlannerStore.js +1 -1
- package/dist/esm/store/UIState.d.ts +1 -0
- package/dist/esm/store/UIState.js +1 -1
- package/dist/esm/store/init/init-layers.js +1 -1
- package/dist/esm/tools/telemetry.d.ts +35 -0
- package/dist/esm/tools/telemetry.js +1 -0
- package/dist/esm/tools/track-event.d.ts +3 -1
- package/dist/esm/tools/track-event.js +1 -1
- package/dist/esm/utils/i18n.d.ts +2 -2
- package/dist/esm/utils/i18n.js +1 -1
- package/package.json +3 -3
- package/dist/browser/Debug-Bn7mmuWl.js +0 -40
- package/dist/browser/index-DnV82MKb.js +0 -10233
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
function __vite_inject_css__(css, id, nonce){ if (typeof document==='undefined') return; var s=document.createElement('style'); s.setAttribute('data-vite-chunk-style', id); s.appendChild(document.createTextNode(css)); document.head.appendChild(s);}
|
|
2
|
+
import { j as a } from "./jsx-runtime-DAY7g56y.js";
|
|
3
|
+
import { c as d, a as r, s as i } from "./floorplan.ready-CNnM_Yyc.js";
|
|
4
|
+
import { E as l } from "./index-C04zJbbt.js";
|
|
5
|
+
(function() {
|
|
6
|
+
try {
|
|
7
|
+
var e = typeof window < "u" ? window : typeof global < "u" ? global : typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : {};
|
|
8
|
+
e.SENTRY_RELEASE = { id: "3.0.0-alpha.16" };
|
|
9
|
+
var t = new e.Error().stack;
|
|
10
|
+
t && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[t] = "f868b82b-b2fa-4f61-89a7-47a4a39bf0a3", e._sentryDebugIdIdentifier = "sentry-dbid-f868b82b-b2fa-4f61-89a7-47a4a39bf0a3");
|
|
11
|
+
} catch {
|
|
12
|
+
}
|
|
13
|
+
})();
|
|
14
|
+
const n = [];
|
|
15
|
+
function c() {
|
|
16
|
+
const e = n.map((s) => s.width * s.height).reduce((s, o) => s += o, 0), t = n.map((s) => /* @__PURE__ */ a.jsxs("div", { className: "debug__canvas", id: s.toDataURL(), children: [
|
|
17
|
+
s.width,
|
|
18
|
+
"x",
|
|
19
|
+
s.height,
|
|
20
|
+
"=",
|
|
21
|
+
s.width * s.height,
|
|
22
|
+
/* @__PURE__ */ a.jsx("br", {}),
|
|
23
|
+
/* @__PURE__ */ a.jsx("img", { src: s.toDataURL(), alt: "", crossOrigin: "anonymous" })
|
|
24
|
+
] }, s.toDataURL()));
|
|
25
|
+
return /* @__PURE__ */ a.jsxs("div", { className: "debug", children: [
|
|
26
|
+
/* @__PURE__ */ a.jsx("button", { onClick: () => i.searchStore.selectSearch(""), children: l("Close") }),
|
|
27
|
+
/* @__PURE__ */ a.jsxs("div", { children: [
|
|
28
|
+
"Total square: ",
|
|
29
|
+
e
|
|
30
|
+
] }),
|
|
31
|
+
t
|
|
32
|
+
] });
|
|
33
|
+
}
|
|
34
|
+
const h = () => d(() => /* @__PURE__ */ a.jsx(a.Fragment, { children: r.list.type === "search" && r.list.text === "q1" ? /* @__PURE__ */ a.jsx(c, {}) : null }));
|
|
35
|
+
export {
|
|
36
|
+
h as default
|
|
37
|
+
};
|
|
38
|
+
|
|
39
|
+
;/* vite-per-chunk-css */
|
|
40
|
+
__vite_inject_css__(".debug{position:fixed;top:1rem;left:1vw;z-index:999;width:calc(100vw - 2rem);height:calc(100vh - 2rem);padding:1rem;overflow:scroll;background:var(--color-white);box-shadow:0 0 1rem #00000080}.debug label{display:block;font-weight:var(--font-weight-bold)}.debug__canvas{display:inline-block;padding:2px;vertical-align:top}.debug__canvas>img{background:var(--color-gray-300)}\n/*$vite$:1*/", "Debug.css", undefined);
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { j as s } from "./jsx-runtime-
|
|
2
|
-
import { y as o } from "./index-
|
|
3
|
-
import { u as d, a, b as f, c as l } from "./floorplan.ready-
|
|
4
|
-
import {
|
|
1
|
+
import { j as s } from "./jsx-runtime-DAY7g56y.js";
|
|
2
|
+
import { y as o } from "./index-BEcZnTgd.js";
|
|
3
|
+
import { u as d, a, b as f, c as l } from "./floorplan.ready-CNnM_Yyc.js";
|
|
4
|
+
import { E as n } from "./index-C04zJbbt.js";
|
|
5
5
|
(function() {
|
|
6
6
|
try {
|
|
7
7
|
var e = typeof window < "u" ? window : typeof global < "u" ? global : typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : {};
|
|
8
|
-
e.SENTRY_RELEASE = { id: "3.0.0-alpha.
|
|
8
|
+
e.SENTRY_RELEASE = { id: "3.0.0-alpha.16" };
|
|
9
9
|
var t = new e.Error().stack;
|
|
10
|
-
t && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[t] = "
|
|
10
|
+
t && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[t] = "19fdeafe-49ff-4733-9710-c20cd7440edb", e._sentryDebugIdIdentifier = "sentry-dbid-19fdeafe-49ff-4733-9710-c20cd7440edb");
|
|
11
11
|
} catch {
|
|
12
12
|
}
|
|
13
13
|
})();
|
|
@@ -1,26 +1,26 @@
|
|
|
1
1
|
function __vite_inject_css__(css, id, nonce){ if (typeof document==='undefined') return; var s=document.createElement('style'); s.setAttribute('data-vite-chunk-style', id); s.appendChild(document.createTextNode(css)); document.head.appendChild(s);}
|
|
2
|
-
import { j as s } from "./jsx-runtime-
|
|
3
|
-
import { y as
|
|
4
|
-
import { u as
|
|
5
|
-
import {
|
|
2
|
+
import { j as s } from "./jsx-runtime-DAY7g56y.js";
|
|
3
|
+
import { y as a } from "./index-BEcZnTgd.js";
|
|
4
|
+
import { u as o, a as d, b as f, c as l } from "./floorplan.ready-CNnM_Yyc.js";
|
|
5
|
+
import { ah as c, E as i } from "./index-C04zJbbt.js";
|
|
6
6
|
(function() {
|
|
7
7
|
try {
|
|
8
8
|
var e = typeof window < "u" ? window : typeof global < "u" ? global : typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : {};
|
|
9
|
-
e.SENTRY_RELEASE = { id: "3.0.0-alpha.
|
|
9
|
+
e.SENTRY_RELEASE = { id: "3.0.0-alpha.16" };
|
|
10
10
|
var t = new e.Error().stack;
|
|
11
|
-
t && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[t] = "
|
|
11
|
+
t && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[t] = "9eae0e7c-4995-43a3-a342-153218edc948", e._sentryDebugIdIdentifier = "sentry-dbid-9eae0e7c-4995-43a3-a342-153218edc948");
|
|
12
12
|
} catch {
|
|
13
13
|
}
|
|
14
14
|
})();
|
|
15
15
|
const n = "free-dismissed5";
|
|
16
|
-
function
|
|
17
|
-
const e =
|
|
16
|
+
function g() {
|
|
17
|
+
const e = o(() => ({
|
|
18
18
|
hidden: !0,
|
|
19
19
|
get top() {
|
|
20
20
|
return d.screenSize.width < c;
|
|
21
21
|
},
|
|
22
22
|
get classes() {
|
|
23
|
-
return
|
|
23
|
+
return a({
|
|
24
24
|
free: !0,
|
|
25
25
|
bottom: !this.top,
|
|
26
26
|
hidden: this.hidden
|
|
@@ -44,7 +44,7 @@ function p() {
|
|
|
44
44
|
}
|
|
45
45
|
}
|
|
46
46
|
export {
|
|
47
|
-
|
|
47
|
+
g as default
|
|
48
48
|
};
|
|
49
49
|
|
|
50
50
|
;/* vite-per-chunk-css */
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import { j as l } from "./jsx-runtime-
|
|
2
|
-
import { r as h,
|
|
3
|
-
import { y as N, r as O } from "./index-
|
|
4
|
-
import {
|
|
1
|
+
import { j as l } from "./jsx-runtime-DAY7g56y.js";
|
|
2
|
+
import { r as h, E as j, o as k } from "./index-C04zJbbt.js";
|
|
3
|
+
import { y as N, r as O } from "./index-BEcZnTgd.js";
|
|
4
|
+
import { as as z, at as L, au as R, av as T, aw as D, ax as G, ay as M, az as P } from "./floorplan.ready-CNnM_Yyc.js";
|
|
5
5
|
(function() {
|
|
6
6
|
try {
|
|
7
7
|
var e = typeof window < "u" ? window : typeof global < "u" ? global : typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : {};
|
|
8
|
-
e.SENTRY_RELEASE = { id: "3.0.0-alpha.
|
|
8
|
+
e.SENTRY_RELEASE = { id: "3.0.0-alpha.16" };
|
|
9
9
|
var i = new e.Error().stack;
|
|
10
|
-
i && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[i] = "
|
|
10
|
+
i && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[i] = "a9e4d0d3-75ee-46dc-aa59-0d9b4899387f", e._sentryDebugIdIdentifier = "sentry-dbid-a9e4d0d3-75ee-46dc-aa59-0d9b4899387f");
|
|
11
11
|
} catch {
|
|
12
12
|
}
|
|
13
13
|
})();
|
|
14
|
-
const
|
|
14
|
+
const A = ({
|
|
15
15
|
count: e,
|
|
16
16
|
onFullscreen: i
|
|
17
17
|
}) => /* @__PURE__ */ l.jsxs(l.Fragment, { children: [
|
|
@@ -21,7 +21,7 @@ const M = ({
|
|
|
21
21
|
] }),
|
|
22
22
|
/* @__PURE__ */ l.jsx("div", { className: "gallery__badge gallery__badge-fullscreen", onClick: i, children: /* @__PURE__ */ l.jsx("i", { className: "icon-maximize" }) })
|
|
23
23
|
] });
|
|
24
|
-
class
|
|
24
|
+
class B {
|
|
25
25
|
constructor() {
|
|
26
26
|
this.cache = [], this.load = (i) => new Promise((r, d) => {
|
|
27
27
|
i || r(null);
|
|
@@ -34,7 +34,7 @@ class P {
|
|
|
34
34
|
});
|
|
35
35
|
}
|
|
36
36
|
}
|
|
37
|
-
const I = new
|
|
37
|
+
const I = new B(), S = ({
|
|
38
38
|
url: e,
|
|
39
39
|
setHeight: i = !1,
|
|
40
40
|
position: r = "center",
|
|
@@ -43,15 +43,15 @@ const I = new P(), S = ({
|
|
|
43
43
|
fillMode: g = "contain",
|
|
44
44
|
onImageLoadHeightUpdate: u
|
|
45
45
|
}) => {
|
|
46
|
-
const
|
|
46
|
+
const f = h.useRef(null), m = h.useRef(null);
|
|
47
47
|
h.useEffect(() => {
|
|
48
|
-
!
|
|
48
|
+
!f.current || !m.current || !t || v(e);
|
|
49
49
|
}, [e]);
|
|
50
50
|
const v = async (y) => {
|
|
51
51
|
if (i)
|
|
52
52
|
try {
|
|
53
53
|
const x = await I.load(y);
|
|
54
|
-
|
|
54
|
+
m.current.style.height = x.height * m.current.clientWidth / x.width + "px", u && u();
|
|
55
55
|
} catch {
|
|
56
56
|
}
|
|
57
57
|
}, E = {
|
|
@@ -61,10 +61,10 @@ const I = new P(), S = ({
|
|
|
61
61
|
transition: t ? "all 0.5s ease 0s" : "none",
|
|
62
62
|
backgroundPosition: r
|
|
63
63
|
};
|
|
64
|
-
return /* @__PURE__ */ l.jsx("div", { ref:
|
|
64
|
+
return /* @__PURE__ */ l.jsx("div", { ref: m, style: {
|
|
65
65
|
width: "100%",
|
|
66
66
|
height: t && !d ? "250px" : "100%"
|
|
67
|
-
}, children: /* @__PURE__ */ l.jsx("div", { ref:
|
|
67
|
+
}, children: /* @__PURE__ */ l.jsx("div", { ref: f, className: "gallery__img", style: E }) });
|
|
68
68
|
}, _ = ({
|
|
69
69
|
url: e,
|
|
70
70
|
position: i = "center",
|
|
@@ -113,7 +113,7 @@ function F({
|
|
|
113
113
|
n && (n.classList[s ? "add" : "remove"](...o.disabledClass.split(" ")), n.tagName === "BUTTON" && (n.disabled = s), e.params.watchOverflow && e.enabled && n.classList[e.isLocked ? "add" : "remove"](o.lockClass));
|
|
114
114
|
});
|
|
115
115
|
}
|
|
116
|
-
function
|
|
116
|
+
function f() {
|
|
117
117
|
const {
|
|
118
118
|
nextEl: a,
|
|
119
119
|
prevEl: s
|
|
@@ -124,7 +124,7 @@ function F({
|
|
|
124
124
|
}
|
|
125
125
|
u(s, e.isBeginning && !e.params.rewind), u(a, e.isEnd && !e.params.rewind);
|
|
126
126
|
}
|
|
127
|
-
function
|
|
127
|
+
function m(a) {
|
|
128
128
|
a.preventDefault(), !(e.isBeginning && !e.params.loop && !e.params.rewind) && (e.slidePrev(), d("navigationPrev"));
|
|
129
129
|
}
|
|
130
130
|
function v(a) {
|
|
@@ -142,7 +142,7 @@ function F({
|
|
|
142
142
|
prevEl: o
|
|
143
143
|
}), s = t(s), o = t(o);
|
|
144
144
|
const n = (c, b) => {
|
|
145
|
-
c && c.addEventListener("click", b === "next" ? v :
|
|
145
|
+
c && c.addEventListener("click", b === "next" ? v : m), !e.enabled && c && c.classList.add(...a.lockClass.split(" "));
|
|
146
146
|
};
|
|
147
147
|
s.forEach((c) => n(c, "next")), o.forEach((c) => n(c, "prev"));
|
|
148
148
|
}
|
|
@@ -153,14 +153,14 @@ function F({
|
|
|
153
153
|
} = e.navigation;
|
|
154
154
|
a = t(a), s = t(s);
|
|
155
155
|
const o = (n, c) => {
|
|
156
|
-
n.removeEventListener("click", c === "next" ? v :
|
|
156
|
+
n.removeEventListener("click", c === "next" ? v : m), n.classList.remove(...e.params.navigation.disabledClass.split(" "));
|
|
157
157
|
};
|
|
158
158
|
a.forEach((n) => o(n, "next")), s.forEach((n) => o(n, "prev"));
|
|
159
159
|
}
|
|
160
160
|
r("init", () => {
|
|
161
|
-
e.params.navigation.enabled === !1 ? p() : (E(),
|
|
161
|
+
e.params.navigation.enabled === !1 ? p() : (E(), f());
|
|
162
162
|
}), r("toEdge fromEdge lock unlock", () => {
|
|
163
|
-
|
|
163
|
+
f();
|
|
164
164
|
}), r("destroy", () => {
|
|
165
165
|
y();
|
|
166
166
|
}), r("enable disable", () => {
|
|
@@ -183,14 +183,14 @@ function F({
|
|
|
183
183
|
}
|
|
184
184
|
});
|
|
185
185
|
const x = () => {
|
|
186
|
-
e.el.classList.remove(...e.params.navigation.navigationDisabledClass.split(" ")), E(),
|
|
186
|
+
e.el.classList.remove(...e.params.navigation.navigationDisabledClass.split(" ")), E(), f();
|
|
187
187
|
}, p = () => {
|
|
188
188
|
e.el.classList.add(...e.params.navigation.navigationDisabledClass.split(" ")), y();
|
|
189
189
|
};
|
|
190
190
|
Object.assign(e.navigation, {
|
|
191
191
|
enable: x,
|
|
192
192
|
disable: p,
|
|
193
|
-
update:
|
|
193
|
+
update: f,
|
|
194
194
|
init: E,
|
|
195
195
|
destroy: y
|
|
196
196
|
});
|
|
@@ -219,7 +219,7 @@ const U = ({
|
|
|
219
219
|
initialSlideIndex: d,
|
|
220
220
|
onClose: t,
|
|
221
221
|
className: g
|
|
222
|
-
} = e, u = D(), [
|
|
222
|
+
} = e, u = D(), [f, m] = h.useState(d), [v, E] = h.useState([]), y = h.useRef(null), x = h.useRef(null), p = h.useRef(null), a = {
|
|
223
223
|
initialSlide: d,
|
|
224
224
|
draggable: !1,
|
|
225
225
|
modules: [F],
|
|
@@ -232,12 +232,12 @@ const U = ({
|
|
|
232
232
|
grabCursor: !0
|
|
233
233
|
}, s = /* @__PURE__ */ l.jsx("div", { className: N("gallery-modal", g), children: /* @__PURE__ */ l.jsxs(G, { onSwiper: (o) => y.current = o, className: "gallery-slider", onSlideChange: (o) => {
|
|
234
234
|
var n;
|
|
235
|
-
|
|
235
|
+
m(o.activeIndex), (n = v[o.previousIndex]) == null || n.resetTransform();
|
|
236
236
|
}, ...a, children: [
|
|
237
|
-
v.length ? /* @__PURE__ */ l.jsx(U, { onClose: t, zoomIn: v[
|
|
237
|
+
v.length ? /* @__PURE__ */ l.jsx(U, { onClose: t, zoomIn: v[f].zoomIn, zoomOut: v[f].zoomOut }) : null,
|
|
238
238
|
i.length > 1 && /* @__PURE__ */ l.jsx("button", { ref: p, title: j("Next slide"), "aria-label": "˃", className: "gallery-slider__btn next", children: /* @__PURE__ */ l.jsx("i", { className: "icon-chevron-right" }) }),
|
|
239
239
|
i.length > 1 && /* @__PURE__ */ l.jsx("button", { ref: x, title: j("Prev slide"), "aria-label": "˂", className: "gallery-slider__btn prev", children: /* @__PURE__ */ l.jsx("i", { className: "icon-chevron-left" }) }),
|
|
240
|
-
i.map((o, n) => /* @__PURE__ */ l.jsx(
|
|
240
|
+
i.map((o, n) => /* @__PURE__ */ l.jsx(M, { children: /* @__PURE__ */ l.jsx(P, { initialScale: 1, alignmentAnimation: {
|
|
241
241
|
sizeX: 0,
|
|
242
242
|
sizeY: 0
|
|
243
243
|
}, onInit: (c) => {
|
|
@@ -253,10 +253,10 @@ const U = ({
|
|
|
253
253
|
onOpenGallery: t,
|
|
254
254
|
onCloseGallery: g,
|
|
255
255
|
className: u
|
|
256
|
-
} = e, [
|
|
257
|
-
E(n),
|
|
256
|
+
} = e, [f, m] = h.useState(!1), [v, E] = h.useState(0), [y, x] = h.useState(!1), p = (n) => {
|
|
257
|
+
E(n), m(!0), t && t();
|
|
258
258
|
}, a = () => {
|
|
259
|
-
|
|
259
|
+
m(!1), g && g();
|
|
260
260
|
}, s = (n) => {
|
|
261
261
|
let c = n.split("/");
|
|
262
262
|
const b = c[c.length - 1];
|
|
@@ -278,9 +278,9 @@ const U = ({
|
|
|
278
278
|
"gallery-leading": r
|
|
279
279
|
}, u), children: [
|
|
280
280
|
/* @__PURE__ */ l.jsx("div", { className: "gallery__wrapper", children: r ? /* @__PURE__ */ l.jsx(_, { url: i[0], leading: r, setHeight: !0, fillMode: "contain", onClick: () => p(0), onImageLoadHeightUpdate: d }) : i.map((n, c) => /* @__PURE__ */ l.jsx(_, { url: n, position: "top", fillMode: "cover", onClick: () => p(c), onImageLoadHeightUpdate: d }, n + c)) }),
|
|
281
|
-
!r && /* @__PURE__ */ l.jsx(
|
|
281
|
+
!r && /* @__PURE__ */ l.jsx(A, { onFullscreen: () => p(0), count: i.length })
|
|
282
282
|
] }),
|
|
283
|
-
|
|
283
|
+
f && /* @__PURE__ */ l.jsx(H, { className: u, images: i.map((n) => o(n, y)), leading: r, initialSlideIndex: v, onClose: a })
|
|
284
284
|
] });
|
|
285
285
|
};
|
|
286
286
|
export {
|
|
@@ -1,26 +1,26 @@
|
|
|
1
|
-
import { j as
|
|
2
|
-
import { r as a, l as I,
|
|
3
|
-
import { af as T, ag as A, ah as k, s as p, ai as x, e as G } from "./floorplan.ready-
|
|
4
|
-
import "./index-
|
|
1
|
+
import { j as b } from "./jsx-runtime-DAY7g56y.js";
|
|
2
|
+
import { r as a, l as I, E as v, a2 as _ } from "./index-C04zJbbt.js";
|
|
3
|
+
import { af as T, ag as A, ah as k, s as p, ai as x, e as G } from "./floorplan.ready-CNnM_Yyc.js";
|
|
4
|
+
import "./index-BEcZnTgd.js";
|
|
5
5
|
(function() {
|
|
6
6
|
try {
|
|
7
7
|
var t = typeof window < "u" ? window : typeof global < "u" ? global : typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : {};
|
|
8
|
-
t.SENTRY_RELEASE = { id: "3.0.0-alpha.
|
|
8
|
+
t.SENTRY_RELEASE = { id: "3.0.0-alpha.16" };
|
|
9
9
|
var n = new t.Error().stack;
|
|
10
|
-
n && (t._sentryDebugIds = t._sentryDebugIds || {}, t._sentryDebugIds[n] = "
|
|
10
|
+
n && (t._sentryDebugIds = t._sentryDebugIds || {}, t._sentryDebugIds[n] = "f142a5ee-afe7-42d9-9138-5cdffc7ea9a6", t._sentryDebugIdIdentifier = "sentry-dbid-f142a5ee-afe7-42d9-9138-5cdffc7ea9a6");
|
|
11
11
|
} catch {
|
|
12
12
|
}
|
|
13
13
|
})();
|
|
14
|
-
const
|
|
14
|
+
const S = 3;
|
|
15
15
|
function D(t) {
|
|
16
16
|
return Math.floor(t);
|
|
17
17
|
}
|
|
18
18
|
function L(t, n) {
|
|
19
|
-
return T(t.lat, t.lng, n.lat, n.lng) >=
|
|
19
|
+
return T(t.lat, t.lng, n.lat, n.lng) >= S ? !0 : t.heading !== n.heading;
|
|
20
20
|
}
|
|
21
21
|
const M = 120, N = 3e3, P = 360;
|
|
22
22
|
function H(t) {
|
|
23
|
-
const n = a.useRef(null), r = a.useRef(null), s = a.useRef(0), i = a.useRef(null), l = a.useRef(!1), o = a.useRef(null), u = a.useRef(!1), c = a.useRef(null), d = (e) => t(e),
|
|
23
|
+
const n = a.useRef(null), r = a.useRef(null), s = a.useRef(0), i = a.useRef(null), l = a.useRef(!1), o = a.useRef(null), u = a.useRef(!1), c = a.useRef(null), d = (e) => t(e), m = (e) => {
|
|
24
24
|
const f = Date.now();
|
|
25
25
|
if (f - s.current < M) return;
|
|
26
26
|
const h = i.current;
|
|
@@ -30,19 +30,19 @@ function H(t) {
|
|
|
30
30
|
}
|
|
31
31
|
const E = T(o.current.lat, o.current.lng, e.lat, e.lng);
|
|
32
32
|
let g;
|
|
33
|
-
u.current ? E <=
|
|
33
|
+
u.current ? E <= S ? (u.current = !1, o.current = e, g = {
|
|
34
34
|
...o.current,
|
|
35
35
|
heading: e.heading
|
|
36
|
-
}) : (o.current = e, g = e) : E >=
|
|
36
|
+
}) : (o.current = e, g = e) : E >= S ? (u.current = !0, o.current = e, c.current = null, g = e) : (c.current == null && (c.current = f), f - c.current > N && (o.current = e), g = {
|
|
37
37
|
...o.current,
|
|
38
38
|
heading: e.heading
|
|
39
39
|
}), !(h && !L(h, g)) && (s.current = f, i.current = g, d(g));
|
|
40
|
-
},
|
|
40
|
+
}, R = a.useCallback((e) => {
|
|
41
41
|
var E;
|
|
42
42
|
const f = (E = e.webkitCompassHeading) != null ? E : e.alpha != null ? P - e.alpha : null;
|
|
43
43
|
if (f == null) return;
|
|
44
44
|
const h = D(f);
|
|
45
|
-
r.current !== h && (r.current = h, i.current &&
|
|
45
|
+
r.current !== h && (r.current = h, i.current && m({
|
|
46
46
|
...i.current,
|
|
47
47
|
heading: h
|
|
48
48
|
}));
|
|
@@ -50,7 +50,7 @@ function H(t) {
|
|
|
50
50
|
return {
|
|
51
51
|
startGeolocation: () => {
|
|
52
52
|
n.current == null && (n.current = navigator.geolocation.watchPosition((e) => {
|
|
53
|
-
|
|
53
|
+
m({
|
|
54
54
|
lat: e.coords.latitude,
|
|
55
55
|
lng: e.coords.longitude,
|
|
56
56
|
heading: r.current
|
|
@@ -61,13 +61,13 @@ function H(t) {
|
|
|
61
61
|
}));
|
|
62
62
|
},
|
|
63
63
|
startOrientation: () => {
|
|
64
|
-
l.current || (l.current = !0, window.addEventListener("deviceorientation",
|
|
64
|
+
l.current || (l.current = !0, window.addEventListener("deviceorientation", R, !0));
|
|
65
65
|
},
|
|
66
66
|
stopGeolocation: () => {
|
|
67
67
|
n.current != null && (navigator.geolocation.clearWatch(n.current), n.current = null), o.current = null, u.current = !1;
|
|
68
68
|
},
|
|
69
69
|
stopOrientation: () => {
|
|
70
|
-
l.current = !1, window.removeEventListener("deviceorientation",
|
|
70
|
+
l.current = !1, window.removeEventListener("deviceorientation", R, !0);
|
|
71
71
|
}
|
|
72
72
|
};
|
|
73
73
|
}
|
|
@@ -76,7 +76,7 @@ function q({
|
|
|
76
76
|
onAllow: n,
|
|
77
77
|
onCancel: r
|
|
78
78
|
}) {
|
|
79
|
-
return t ? /* @__PURE__ */
|
|
79
|
+
return t ? /* @__PURE__ */ b.jsx(A, { title: v("Show your position on the map"), acceptText: v("Allow compass access"), rejectText: v("Not now"), onClickAccept: n, onClickReject: r, children: v("To display your current position and orient the map around you, we’ll ask for permission to access your device orientation") }) : null;
|
|
80
80
|
}
|
|
81
81
|
function j({
|
|
82
82
|
onPositionUpdate: t,
|
|
@@ -91,28 +91,28 @@ function j({
|
|
|
91
91
|
startGeolocation: u,
|
|
92
92
|
stopOrientation: c,
|
|
93
93
|
stopGeolocation: d
|
|
94
|
-
} = H(t), [
|
|
94
|
+
} = H(t), [m, R] = a.useState(!1), [O, w] = a.useState(!1);
|
|
95
95
|
a.useEffect(() => (navigator.geolocation.getCurrentPosition(() => {
|
|
96
|
-
|
|
96
|
+
R(!0), u();
|
|
97
97
|
}, (e) => {
|
|
98
|
-
I.warn("Geolocation error:", e),
|
|
98
|
+
I.warn("Geolocation error:", e), R(!1);
|
|
99
99
|
}), () => {
|
|
100
100
|
c(), d();
|
|
101
101
|
}), [u, d, c]);
|
|
102
|
-
const
|
|
102
|
+
const y = async () => {
|
|
103
103
|
typeof DeviceOrientationEvent < "u" && typeof DeviceOrientationEvent.requestPermission == "function" && await DeviceOrientationEvent.requestPermission() !== "granted" || (localStorage.setItem(s, "true"), o(), w(!1), n == null || n());
|
|
104
104
|
}, C = a.useCallback(() => {
|
|
105
105
|
localStorage.setItem(s, "false"), w(!1), r == null || r();
|
|
106
106
|
}, [r]);
|
|
107
107
|
return a.useEffect(() => {
|
|
108
|
-
if (!
|
|
108
|
+
if (!m || !l || typeof navigator > "u" || !k) return;
|
|
109
109
|
const e = localStorage.getItem(s);
|
|
110
110
|
if (!e || i) {
|
|
111
111
|
w(!0);
|
|
112
112
|
return;
|
|
113
113
|
}
|
|
114
|
-
e === "true" &&
|
|
115
|
-
}, [
|
|
114
|
+
e === "true" && y();
|
|
115
|
+
}, [m, i, l, y]), /* @__PURE__ */ b.jsx(q, { isOpen: O, onAllow: y, onCancel: C });
|
|
116
116
|
}
|
|
117
117
|
function z({
|
|
118
118
|
requestCompassAllowed: t
|
|
@@ -133,7 +133,7 @@ function z({
|
|
|
133
133
|
r(o);
|
|
134
134
|
}), G(() => p.routeStore.requestCompass, (o) => {
|
|
135
135
|
r(o);
|
|
136
|
-
}), /* @__PURE__ */
|
|
136
|
+
}), /* @__PURE__ */ b.jsx(j, { requestCompass: n, requestCompassAllowed: t, onRejectCompass: i, onAllowCompass: l, orientationStorageKey: _, onPositionUpdate: s });
|
|
137
137
|
}
|
|
138
138
|
export {
|
|
139
139
|
z as default
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import "./jsx-runtime-
|
|
3
|
-
import "./
|
|
4
|
-
import "./index-
|
|
1
|
+
import { av as h, j as b, p as d, q as l, h as g } from "./index-C04zJbbt.js";
|
|
2
|
+
import "./jsx-runtime-DAY7g56y.js";
|
|
3
|
+
import { s as o, ao as k, ap as v, aq as D, ar as O } from "./floorplan.ready-CNnM_Yyc.js";
|
|
4
|
+
import "./index-BEcZnTgd.js";
|
|
5
5
|
(function() {
|
|
6
6
|
try {
|
|
7
7
|
var a = typeof window < "u" ? window : typeof global < "u" ? global : typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : {};
|
|
8
|
-
a.SENTRY_RELEASE = { id: "3.0.0-alpha.
|
|
8
|
+
a.SENTRY_RELEASE = { id: "3.0.0-alpha.16" };
|
|
9
9
|
var e = new a.Error().stack;
|
|
10
|
-
e && (a._sentryDebugIds = a._sentryDebugIds || {}, a._sentryDebugIds[e] = "
|
|
10
|
+
e && (a._sentryDebugIds = a._sentryDebugIds || {}, a._sentryDebugIds[e] = "e86a9cfd-9445-4344-9fa4-a2d8e4fb087b", a._sentryDebugIdIdentifier = "sentry-dbid-e86a9cfd-9445-4344-9fa4-a2d8e4fb087b");
|
|
11
11
|
} catch {
|
|
12
12
|
}
|
|
13
13
|
})();
|
|
@@ -45,7 +45,7 @@ function C(a, e) {
|
|
|
45
45
|
return e.x >= r.left && e.x <= r.right && e.y >= r.bottom && e.y <= r.top;
|
|
46
46
|
}
|
|
47
47
|
var t, S, m;
|
|
48
|
-
function
|
|
48
|
+
function f(a, e, r, i) {
|
|
49
49
|
r && Object.defineProperty(a, e, { enumerable: r.enumerable, configurable: r.configurable, writable: r.writable, value: r.initializer ? r.initializer.call(i) : void 0 });
|
|
50
50
|
}
|
|
51
51
|
function n(a, e, r, i, p) {
|
|
@@ -58,7 +58,7 @@ function n(a, e, r, i, p) {
|
|
|
58
58
|
}
|
|
59
59
|
let P = (t = class {
|
|
60
60
|
constructor() {
|
|
61
|
-
|
|
61
|
+
f(this, "savedKiosk", S, this), f(this, "statusMessages", m, this), this.statusMessageTimer = 0, this.initialPtScale = void 0;
|
|
62
62
|
}
|
|
63
63
|
get kiosk() {
|
|
64
64
|
return o.uiState.kioskData;
|
|
@@ -125,7 +125,7 @@ let P = (t = class {
|
|
|
125
125
|
});
|
|
126
126
|
}
|
|
127
127
|
restoreData() {
|
|
128
|
-
const e =
|
|
128
|
+
const e = k();
|
|
129
129
|
return e && (this.setKiosk(e), this.savedKiosk = e, o.uiState.kiosk = !0, this.resetCamera()), e;
|
|
130
130
|
}
|
|
131
131
|
handleSetupReady() {
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { j as B } from "./jsx-runtime-
|
|
2
|
-
import { y as w } from "./index-
|
|
3
|
-
import { p, m as z, s as P, a as
|
|
4
|
-
import { u as j, s as e, a as t, R as x, d as N, e as n, f as O, c as A } from "./floorplan.ready-
|
|
5
|
-
import { r as S } from "./index-
|
|
1
|
+
import { j as B } from "./jsx-runtime-DAY7g56y.js";
|
|
2
|
+
import { y as w } from "./index-BEcZnTgd.js";
|
|
3
|
+
import { p, m as z, s as P, a as f, l as E, b as k, c as b, d as C, u as T, e as D, f as M, g as F, h as I, i as _ } from "./data-BtD6blv7.js";
|
|
4
|
+
import { u as j, s as e, a as t, R as x, d as N, e as n, f as O, c as A } from "./floorplan.ready-CNnM_Yyc.js";
|
|
5
|
+
import { r as S } from "./index-C04zJbbt.js";
|
|
6
6
|
(function() {
|
|
7
7
|
try {
|
|
8
8
|
var i = typeof window < "u" ? window : typeof global < "u" ? global : typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : {};
|
|
9
|
-
i.SENTRY_RELEASE = { id: "3.0.0-alpha.
|
|
9
|
+
i.SENTRY_RELEASE = { id: "3.0.0-alpha.16" };
|
|
10
10
|
var r = new i.Error().stack;
|
|
11
|
-
r && (i._sentryDebugIds = i._sentryDebugIds || {}, i._sentryDebugIds[r] = "
|
|
11
|
+
r && (i._sentryDebugIds = i._sentryDebugIds || {}, i._sentryDebugIds[r] = "78ce0388-27ac-4b17-bca0-c443d45725e4", i._sentryDebugIdIdentifier = "sentry-dbid-78ce0388-27ac-4b17-bca0-c443d45725e4");
|
|
12
12
|
} catch {
|
|
13
13
|
}
|
|
14
14
|
})();
|
|
@@ -46,14 +46,14 @@ function $() {
|
|
|
46
46
|
bearingSnap: 0,
|
|
47
47
|
accessToken: p.token
|
|
48
48
|
}), P(r.current), r.current.on("load", async () => {
|
|
49
|
-
var
|
|
50
|
-
setTimeout(() =>
|
|
49
|
+
var y;
|
|
50
|
+
setTimeout(() => f(u.initselected ? x.fromMultiple([...t.selectedBooths].filter((s) => s.rect).map((s) => s.rect)) : N, 15, 4e3), 1500), r.current.setLight({
|
|
51
51
|
anchor: "viewport",
|
|
52
52
|
color: "white",
|
|
53
53
|
intensity: 0
|
|
54
54
|
});
|
|
55
55
|
const a = await E(e.boothStore.booths);
|
|
56
|
-
k(e.boothStore.booths, a), b("yah", (
|
|
56
|
+
k(e.boothStore.booths, a), b("yah", (y = e.routeStore.defaultFrom) != null && y.rect ? {
|
|
57
57
|
x: e.routeStore.defaultFrom.rect.cx,
|
|
58
58
|
y: e.routeStore.defaultFrom.rect.cy
|
|
59
59
|
} : null), b("cp", u.actualCurrentPosition), d = C(e.layerStore.layers);
|
|
@@ -81,7 +81,7 @@ function $() {
|
|
|
81
81
|
}), n(() => [e.layerStore.loaded, e.layerStore.visible, t.selectedRoute], () => {
|
|
82
82
|
var o, l, a;
|
|
83
83
|
d.forEach((m) => {
|
|
84
|
-
const
|
|
84
|
+
const y = m.split("--")[0], s = e.layerStore.layers.find((h) => h.name === y);
|
|
85
85
|
(s.visible || r.current.getLayoutProperty(m, "visibility") !== "none") && r.current.setLayoutProperty(m, "visibility", s.visible ? "visible" : "none");
|
|
86
86
|
}), M([...t.selectedBooths], e.boothStore.booths), b("yah", (o = e.routeStore.defaultFrom) != null && o.rect && ((a = (l = e.routeStore.defaultFrom) == null ? void 0 : l.layer) != null && a.visible) ? {
|
|
87
87
|
x: e.routeStore.defaultFrom.rect.cx,
|
|
@@ -102,13 +102,13 @@ function $() {
|
|
|
102
102
|
}), n(() => t.moveToBooths, () => {
|
|
103
103
|
if (!t.moveToBooths || !e.mapboxStore.showMapbox) return;
|
|
104
104
|
const o = t.moveToBooths.filter((a) => a.rect).map((a) => a.rect), l = x.fromMultiple(o);
|
|
105
|
-
o.length &&
|
|
105
|
+
o.length && f(l), t.moveToBooths = null;
|
|
106
106
|
}), n(() => t.moveToRect, () => {
|
|
107
|
-
!t.moveToRect || !e.mapboxStore.showMapbox || (
|
|
107
|
+
!t.moveToRect || !e.mapboxStore.showMapbox || (f(t.moveToRect, 15), t.moveToRect = null);
|
|
108
108
|
}), n(() => t.moveToLocation, () => {
|
|
109
109
|
!t.moveToLocation || !e.mapboxStore.showMapbox || _();
|
|
110
110
|
}), n(() => t.centerMap, () => {
|
|
111
|
-
!t.centerMap || !e.mapboxStore.showMapbox || (
|
|
111
|
+
!t.centerMap || !e.mapboxStore.showMapbox || (f(x.fromMultiple(O.booths.map((o) => o.rect)), 15), t.centerMap = !1);
|
|
112
112
|
}), n(() => e.routeStore.routeLines, () => T(e.routeStore)), n(() => u.actualCurrentPosition, () => b("cp", u.actualCurrentPosition)), A(() => /* @__PURE__ */ B.jsx("div", { style: u.style, className: w("map-container", {
|
|
113
113
|
hidden: !e.mapboxStore.showMapbox
|
|
114
114
|
}), children: /* @__PURE__ */ B.jsx("div", { ref: i, className: w("map-wrapper", "mapboxgl-map") }) }));
|