@expofp/floorplan 3.0.0-alpha.17 → 3.0.0-alpha.19
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/browser/{Debug-CUZihF0D.js → Debug-B9JNOBQc.js} +4 -4
- package/dist/browser/{Demo-CR3VLKTk.js → Demo-B_GkeZja.js} +5 -5
- package/dist/browser/{Free-DQNZneql.js → Free-bQbjK74Z.js} +5 -5
- package/dist/browser/{Gallery-DuHTiSqx.js → Gallery-E7LpQjiN.js} +5 -5
- package/dist/browser/{GpsLoader-DmtF8nSh.js → GpsLoader-Du21Hm8x.js} +5 -5
- package/dist/browser/{KioskStore-B7BTukd0.js → KioskStore-iQ67HJlZ.js} +5 -5
- package/dist/browser/{Mapbox-3GevGU_j.js → Mapbox-Bx1tB7yN.js} +6 -6
- package/dist/browser/{SetKioskMode-D3066R7_.js → SetKioskMode-ByetcQ27.js} +6 -6
- package/dist/browser/{ShowKiosk-3jaagNzR.js → ShowKiosk-DqftG9PI.js} +5 -5
- package/dist/browser/{ThreeComponent-DNFBzo3g.js → ThreeComponent-3tEmnbIR.js} +6 -6
- package/dist/browser/{ViewerMenuPanel-BLo85uoZ.js → ViewerMenuPanel-BOkHor-R.js} +5 -5
- package/dist/browser/{boolean-editor-DKH9ubYi.js → boolean-editor-BuDAtfnK.js} +5 -5
- package/dist/browser/bundle.json +30 -30
- package/dist/browser/{client-meZ2tCS0.js → client-DgcsrMQp.js} +3 -3
- package/dist/browser/{data-SQHwxPrN.js → data-Cs-XM1vn.js} +3 -3
- package/dist/browser/{debug-overlay-C4TVlyAN.js → debug-overlay-bQ8hCza8.js} +6 -6
- package/dist/browser/{debug-ui-CVsP8oRC.js → debug-ui-D8Y0PiT5.js} +5 -5
- package/dist/browser/{favicon-Cimz_lqt.js → favicon-5YfyvVuW.js} +1 -1
- package/dist/browser/{fetch-retry.umd-XH7ZZmae.js → fetch-retry.umd-Bn8pxzHz.js} +2 -2
- package/dist/browser/{flex-Bq6tPjvK.js → flex-DD4D5MDd.js} +4 -4
- package/dist/browser/{floorplan.ready-ClV1c-bq.js → floorplan.ready-BFK4GJQI.js} +2637 -2620
- package/dist/browser/{index-CcKlEKDb.js → index-6P2K6zwe.js} +5 -5
- package/dist/browser/{index-BuXQKG6_.js → index-BOv009xQ.js} +4 -4
- package/dist/browser/{index-CfyxM29w.js → index-CFBl9CX9.js} +2 -2
- package/dist/browser/{index-3PCrVVmD.js → index-CFBwSM0K.js} +2 -2
- package/dist/browser/{index-C1A1q6hi.js → index-DXfV86G6.js} +6 -6
- package/dist/browser/{index-DkMgYVuZ.js → index-HRCOcRH_.js} +3 -3
- package/dist/browser/{index-C3wwaChX.js → index-tVZou9A0.js} +12 -12
- package/dist/browser/index.html +1 -0
- package/dist/browser/index.js +2 -2
- package/dist/browser/{jsx-runtime-rSp8ZldI.js → jsx-runtime-BPB0_kNt.js} +1 -1
- package/dist/browser/{main-C1uhxJ8U.js → main-DxgBqquP.js} +1 -1
- package/dist/browser/{particles.min-DkmJkLkl.js → particles.min-CvIca3EI.js} +2 -2
- package/dist/esm/components/Kiosk/integrateKiosk.js +1 -1
- package/dist/esm/floorplan.loader.js +1 -1
- package/dist/esm/tools/telemetry.js +1 -1
- package/dist/esm/utils/loadCustomCss.d.ts +1 -1
- package/dist/esm/utils/loadCustomCss.js +1 -1
- package/package.json +3 -3
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { r as b, o as L } from "./index-
|
|
2
|
-
import { j as _ } from "./jsx-runtime-
|
|
1
|
+
import { r as b, o as L } from "./index-tVZou9A0.js";
|
|
2
|
+
import { j as _ } from "./jsx-runtime-BPB0_kNt.js";
|
|
3
3
|
(function() {
|
|
4
4
|
try {
|
|
5
5
|
var e = typeof window < "u" ? window : typeof global < "u" ? global : typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : {};
|
|
6
|
-
e.SENTRY_RELEASE = { id: "3.0.0-alpha.
|
|
6
|
+
e.SENTRY_RELEASE = { id: "3.0.0-alpha.19" };
|
|
7
7
|
var t = new e.Error().stack;
|
|
8
8
|
t && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[t] = "4d7f466b-bb9f-4cb6-a96a-4ff77a154a2f", e._sentryDebugIdIdentifier = "sentry-dbid-4d7f466b-bb9f-4cb6-a96a-4ff77a154a2f");
|
|
9
9
|
} catch {
|
|
@@ -11,7 +11,7 @@ import { j as _ } from "./jsx-runtime-rSp8ZldI.js";
|
|
|
11
11
|
})();
|
|
12
12
|
let E = !1;
|
|
13
13
|
function I() {
|
|
14
|
-
E || (E = !0, !(typeof window > "u" && typeof document > "u") && import("./index-
|
|
14
|
+
E || (E = !0, !(typeof window > "u" && typeof document > "u") && import("./index-DXfV86G6.js").then((e) => e.i).then(({
|
|
15
15
|
renderDebugUi: e
|
|
16
16
|
}) => {
|
|
17
17
|
e();
|
|
@@ -69,7 +69,7 @@ function m(e) {
|
|
|
69
69
|
}));
|
|
70
70
|
}
|
|
71
71
|
function O(e) {
|
|
72
|
-
const t = L.lazy(() => import("./boolean-editor-
|
|
72
|
+
const t = L.lazy(() => import("./boolean-editor-BuDAtfnK.js").then((r) => ({
|
|
73
73
|
default: r.BooleanEditor
|
|
74
74
|
})));
|
|
75
75
|
return h(e, !1, t);
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { j as N } from "./jsx-runtime-
|
|
2
|
-
import { o as B, r as ht } from "./index-
|
|
3
|
-
import { R as en } from "./index-
|
|
1
|
+
import { j as N } from "./jsx-runtime-BPB0_kNt.js";
|
|
2
|
+
import { o as B, r as ht } from "./index-tVZou9A0.js";
|
|
3
|
+
import { R as en } from "./index-HRCOcRH_.js";
|
|
4
4
|
(function() {
|
|
5
5
|
try {
|
|
6
6
|
var e = typeof window < "u" ? window : typeof global < "u" ? global : typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : {};
|
|
7
|
-
e.SENTRY_RELEASE = { id: "3.0.0-alpha.
|
|
7
|
+
e.SENTRY_RELEASE = { id: "3.0.0-alpha.19" };
|
|
8
8
|
var t = new e.Error().stack;
|
|
9
9
|
t && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[t] = "ff902efb-d2fe-44ef-8414-ce9b60fb93ab", e._sentryDebugIdIdentifier = "sentry-dbid-ff902efb-d2fe-44ef-8414-ce9b60fb93ab");
|
|
10
10
|
} catch {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { ax as O } from "./index-
|
|
1
|
+
import { ax as O } from "./index-tVZou9A0.js";
|
|
2
2
|
(function() {
|
|
3
3
|
try {
|
|
4
4
|
var a = typeof window < "u" ? window : typeof global < "u" ? global : typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : {};
|
|
5
|
-
a.SENTRY_RELEASE = { id: "3.0.0-alpha.
|
|
5
|
+
a.SENTRY_RELEASE = { id: "3.0.0-alpha.19" };
|
|
6
6
|
var f = new a.Error().stack;
|
|
7
7
|
f && (a._sentryDebugIds = a._sentryDebugIds || {}, a._sentryDebugIds[f] = "73c200dc-0a6b-4a26-b38b-1862295f24a2", a._sentryDebugIdIdentifier = "sentry-dbid-73c200dc-0a6b-4a26-b38b-1862295f24a2");
|
|
8
8
|
} catch {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { ax as ie, k as de } from "./index-
|
|
1
|
+
import { ax as ie, k as de } from "./index-tVZou9A0.js";
|
|
2
2
|
(function() {
|
|
3
3
|
try {
|
|
4
4
|
var l = typeof window < "u" ? window : typeof global < "u" ? global : typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : {};
|
|
5
|
-
l.SENTRY_RELEASE = { id: "3.0.0-alpha.
|
|
5
|
+
l.SENTRY_RELEASE = { id: "3.0.0-alpha.19" };
|
|
6
6
|
var h = new l.Error().stack;
|
|
7
7
|
h && (l._sentryDebugIds = l._sentryDebugIds || {}, l._sentryDebugIds[h] = "360b5663-5490-49fc-9ff6-12acc34f447a", l._sentryDebugIdIdentifier = "sentry-dbid-360b5663-5490-49fc-9ff6-12acc34f447a");
|
|
8
8
|
} catch {
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { j as c } from "./jsx-runtime-
|
|
2
|
-
import { r as b } from "./index-
|
|
3
|
-
import "./index-
|
|
1
|
+
import { j as c } from "./jsx-runtime-BPB0_kNt.js";
|
|
2
|
+
import { r as b } from "./index-6P2K6zwe.js";
|
|
3
|
+
import "./index-tVZou9A0.js";
|
|
4
4
|
(function() {
|
|
5
5
|
try {
|
|
6
6
|
var e = typeof window < "u" ? window : typeof global < "u" ? global : typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : {};
|
|
7
|
-
e.SENTRY_RELEASE = { id: "3.0.0-alpha.
|
|
7
|
+
e.SENTRY_RELEASE = { id: "3.0.0-alpha.19" };
|
|
8
8
|
var t = new e.Error().stack;
|
|
9
9
|
t && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[t] = "23fd24f5-1463-479c-88bc-311537ef5b53", e._sentryDebugIdIdentifier = "sentry-dbid-23fd24f5-1463-479c-88bc-311537ef5b53");
|
|
10
10
|
} catch {
|
|
@@ -34,9 +34,9 @@ function y() {
|
|
|
34
34
|
const e = b("Show Debug Button Overlay"), t = async (n) => {
|
|
35
35
|
const {
|
|
36
36
|
DebugUi: o
|
|
37
|
-
} = await import("./debug-ui-
|
|
37
|
+
} = await import("./debug-ui-D8Y0PiT5.js"), {
|
|
38
38
|
createRoot: s
|
|
39
|
-
} = await import("./client-
|
|
39
|
+
} = await import("./client-DgcsrMQp.js").then((a) => a.c), u = document.createElement("div");
|
|
40
40
|
document.body.appendChild(u), s(u).render(/* @__PURE__ */ c.jsx(o, { useDebugButtonState: e.useState, open: n }));
|
|
41
41
|
};
|
|
42
42
|
if (e.get())
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { k as u } from "./index-
|
|
2
|
-
import { r as p } from "./index-
|
|
1
|
+
import { k as u } from "./index-tVZou9A0.js";
|
|
2
|
+
import { r as p } from "./index-CFBl9CX9.js";
|
|
3
3
|
(function() {
|
|
4
4
|
try {
|
|
5
5
|
var t = typeof window < "u" ? window : typeof global < "u" ? global : typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : {};
|
|
6
|
-
t.SENTRY_RELEASE = { id: "3.0.0-alpha.
|
|
6
|
+
t.SENTRY_RELEASE = { id: "3.0.0-alpha.19" };
|
|
7
7
|
var o = new t.Error().stack;
|
|
8
8
|
o && (t._sentryDebugIds = t._sentryDebugIds || {}, t._sentryDebugIds[o] = "02019e7a-1308-46a8-99c5-9eee4874e538", t._sentryDebugIdIdentifier = "sentry-dbid-02019e7a-1308-46a8-99c5-9eee4874e538");
|
|
9
9
|
} catch {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
(function() {
|
|
2
2
|
try {
|
|
3
3
|
var t = typeof window < "u" ? window : typeof global < "u" ? global : typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : {};
|
|
4
|
-
t.SENTRY_RELEASE = { id: "3.0.0-alpha.
|
|
4
|
+
t.SENTRY_RELEASE = { id: "3.0.0-alpha.19" };
|
|
5
5
|
var e = new t.Error().stack;
|
|
6
|
-
e && (t._sentryDebugIds = t._sentryDebugIds || {}, t._sentryDebugIds[e] = "
|
|
6
|
+
e && (t._sentryDebugIds = t._sentryDebugIds || {}, t._sentryDebugIds[e] = "677f0644-589f-4f54-8d6b-85fab78365c8", t._sentryDebugIdIdentifier = "sentry-dbid-677f0644-589f-4f54-8d6b-85fab78365c8");
|
|
7
7
|
} catch {
|
|
8
8
|
}
|
|
9
9
|
})();
|
|
@@ -472,7 +472,7 @@ function fo(t) {
|
|
|
472
472
|
}
|
|
473
473
|
let un;
|
|
474
474
|
const rc = async function(...e) {
|
|
475
|
-
return un || (typeof window < "u" && typeof document < "u" ? un = window.fetch.bind(window) : un = (await import("./fetch-retry.umd-
|
|
475
|
+
return un || (typeof window < "u" && typeof document < "u" ? un = window.fetch.bind(window) : un = (await import("./fetch-retry.umd-Bn8pxzHz.js").then((i) => i.f)).default(globalThis.fetch)), un(...e);
|
|
476
476
|
};
|
|
477
477
|
async function ic(t) {
|
|
478
478
|
var e;
|
|
@@ -536,7 +536,7 @@ function lc() {
|
|
|
536
536
|
n.name = "viewport", n.content = "width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no", document.head.appendChild(n);
|
|
537
537
|
}
|
|
538
538
|
const e = () => !!document.querySelector('link[rel="icon"]');
|
|
539
|
-
e() || import("./favicon-
|
|
539
|
+
e() || import("./favicon-5YfyvVuW.js").then(({
|
|
540
540
|
default: n
|
|
541
541
|
}) => {
|
|
542
542
|
if (e())
|
|
@@ -545,7 +545,7 @@ function lc() {
|
|
|
545
545
|
r.rel = "icon", r.type = "image/png", r.href = n, document.head.appendChild(r);
|
|
546
546
|
}), (!document.title || document.title === "Document") && (document.title = "Floor Plan by ExpoFP");
|
|
547
547
|
}
|
|
548
|
-
var fc = { version: "3.0.0-alpha.
|
|
548
|
+
var fc = { version: "3.0.0-alpha.19", commit: "a1721542", branch: "vite-main", built: "2026-04-15T15:34:00.008Z" };
|
|
549
549
|
function dc() {
|
|
550
550
|
const t = fc;
|
|
551
551
|
if (t) {
|
|
@@ -6841,10 +6841,10 @@ const rn = vl(), qo = {
|
|
|
6841
6841
|
console.error(`Failed to switch language to "${e}":`, n);
|
|
6842
6842
|
}
|
|
6843
6843
|
}, Lm = async () => (rn && (localStorage.removeItem(Hn), localStorage.removeItem(Fr)), _l(Yo())), as = /webview|wv|ip((?!.*Safari)|(?=.*like Safari))|iosWebView|AndroidWebView/i.test(navigator.userAgent);
|
|
6844
|
-
async function wl(t) {
|
|
6844
|
+
async function wl(t, e) {
|
|
6845
6845
|
if (t != null && t.customCss) {
|
|
6846
|
-
const
|
|
6847
|
-
|
|
6846
|
+
const n = document.createElement("style");
|
|
6847
|
+
n.textContent = t.customCss, e.append(n), await jc(t.customCss);
|
|
6848
6848
|
}
|
|
6849
6849
|
}
|
|
6850
6850
|
function El(t) {
|
|
@@ -11894,7 +11894,7 @@ function Dg(t) {
|
|
|
11894
11894
|
};
|
|
11895
11895
|
};
|
|
11896
11896
|
}
|
|
11897
|
-
const Bg = "production", jg = "3.0.0-alpha.
|
|
11897
|
+
const Bg = "production", jg = "3.0.0-alpha.19";
|
|
11898
11898
|
function Ug() {
|
|
11899
11899
|
const t = "sentry_offline_queue";
|
|
11900
11900
|
return {
|
|
@@ -12284,13 +12284,13 @@ class Vg {
|
|
|
12284
12284
|
weight: 600
|
|
12285
12285
|
}), lt("efp-symbols", he + "fonts/efp-symbols.woff", {
|
|
12286
12286
|
weight: 400
|
|
12287
|
-
}), wl(x), Sl(v.icons)];
|
|
12287
|
+
}), wl(x, c), Sl(v.icons)];
|
|
12288
12288
|
await Promise.all(re), v.enableRotation = (Y = x == null ? void 0 : x.enableRotation) != null ? Y : !1, v.alwaysShowSidebar = (J = x == null ? void 0 : x.alwaysShowSidebar) != null ? J : !1, We.log("Data loaded");
|
|
12289
12289
|
const {
|
|
12290
12290
|
default: ie
|
|
12291
12291
|
} = await import(
|
|
12292
12292
|
/* webpackChunkName: "floorplan" */
|
|
12293
|
-
"./floorplan.ready-
|
|
12293
|
+
"./floorplan.ready-BFK4GJQI.js"
|
|
12294
12294
|
).then((N) => N.av);
|
|
12295
12295
|
for (document.querySelectorAll(".expofp-floorplan-loader").forEach((N) => N.remove()); n.firstChild && n.firstChild !== a; )
|
|
12296
12296
|
n.removeChild(n.firstChild);
|
|
@@ -12334,7 +12334,7 @@ async function jm(t, e) {
|
|
|
12334
12334
|
detail: {
|
|
12335
12335
|
floorplan: c
|
|
12336
12336
|
}
|
|
12337
|
-
}))), import("./index-
|
|
12337
|
+
}))), import("./index-6P2K6zwe.js").then((l) => l.i).then(({
|
|
12338
12338
|
initDebug: l
|
|
12339
12339
|
}) => l()).catch(() => {
|
|
12340
12340
|
}), c;
|
package/dist/browser/index.html
CHANGED
package/dist/browser/index.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { az as b } from "./index-
|
|
1
|
+
import { az as b } from "./index-tVZou9A0.js";
|
|
2
2
|
(function() {
|
|
3
3
|
try {
|
|
4
4
|
var e = typeof window < "u" ? window : typeof global < "u" ? global : typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : {};
|
|
5
|
-
e.SENTRY_RELEASE = { id: "3.0.0-alpha.
|
|
5
|
+
e.SENTRY_RELEASE = { id: "3.0.0-alpha.19" };
|
|
6
6
|
var d = new e.Error().stack;
|
|
7
7
|
d && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[d] = "3bfaa8b6-663c-4953-adde-032bf3ce10d7", e._sentryDebugIdIdentifier = "sentry-dbid-3bfaa8b6-663c-4953-adde-032bf3ce10d7");
|
|
8
8
|
} catch {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
(function() {
|
|
2
2
|
try {
|
|
3
3
|
var r = typeof window < "u" ? window : typeof global < "u" ? global : typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : {};
|
|
4
|
-
r.SENTRY_RELEASE = { id: "3.0.0-alpha.
|
|
4
|
+
r.SENTRY_RELEASE = { id: "3.0.0-alpha.19" };
|
|
5
5
|
var a = new r.Error().stack;
|
|
6
6
|
a && (r._sentryDebugIds = r._sentryDebugIds || {}, r._sentryDebugIds[a] = "6aa5acce-bbae-4352-a6aa-9212ad4bd577", r._sentryDebugIdIdentifier = "sentry-dbid-6aa5acce-bbae-4352-a6aa-9212ad4bd577");
|
|
7
7
|
} catch {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
(function() {
|
|
2
2
|
try {
|
|
3
3
|
var o = typeof window < "u" ? window : typeof global < "u" ? global : typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : {};
|
|
4
|
-
o.SENTRY_RELEASE = { id: "3.0.0-alpha.
|
|
4
|
+
o.SENTRY_RELEASE = { id: "3.0.0-alpha.19" };
|
|
5
5
|
var t = new o.Error().stack;
|
|
6
6
|
t && (o._sentryDebugIds = o._sentryDebugIds || {}, o._sentryDebugIds[t] = "7bb9c1f4-826f-44b2-80a8-3d0519897683", o._sentryDebugIdIdentifier = "sentry-dbid-7bb9c1f4-826f-44b2-80a8-3d0519897683");
|
|
7
7
|
} catch {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { k } from "./index-
|
|
1
|
+
import { k } from "./index-tVZou9A0.js";
|
|
2
2
|
(function() {
|
|
3
3
|
try {
|
|
4
4
|
var c = typeof window < "u" ? window : typeof global < "u" ? global : typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : {};
|
|
5
|
-
c.SENTRY_RELEASE = { id: "3.0.0-alpha.
|
|
5
|
+
c.SENTRY_RELEASE = { id: "3.0.0-alpha.19" };
|
|
6
6
|
var f = new c.Error().stack;
|
|
7
7
|
f && (c._sentryDebugIds = c._sentryDebugIds || {}, c._sentryDebugIds[f] = "032598d7-e41e-4a76-8d59-9ab38d97f81c", c._sentryDebugIdIdentifier = "sentry-dbid-032598d7-e41e-4a76-8d59-9ab38d97f81c");
|
|
8
8
|
} catch {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{runInAction as a}from"mobx";import{RouteCutIn as n}from"../../RouteCutIn";import e from"../../store";import{getName as o,getSlug as m}from"./SetKiosk";export function integrateKioskIntoMap(t,r){t&&a(()=>{e.uiState.setKioskData(t),e.uiState.kiosk=r,e.uiState.setMapSettings({centerxy:`${t.mapCenterX},${t.mapCenterY}`,z:t.z,bearing:t.mapRollDegrees}),e.uiState.changeZoom(t.mapInitialPtScale/t.mapPtScale)})}export function integrateKioskIntoWf(t){if(!t)return;const r={x:t.x,y:t.y,layer:t.z?.toString()};e.routeStore.defaultFrom=new n(Number.MAX_SAFE_INTEGER,o(),r,m()),r.layer&&e.fp.activateFloor({name:r.layer})}
|
|
1
|
+
import{runInAction as a}from"mobx";import{RouteCutIn as n}from"../../RouteCutIn";import e from"../../store";import{getName as o,getSlug as m}from"./SetKiosk";export function integrateKioskIntoMap(t,r){t&&a(()=>{e.uiState.setKioskData(t),e.uiState.kiosk=r,e.uiState.setMapSettings({centerxy:`${t.mapCenterX},${t.mapCenterY}`,z:t.z,bearing:t.mapRollDegrees}),t.mapPtScale&&e.uiState.changeZoom(t.mapInitialPtScale/t.mapPtScale)})}export function integrateKioskIntoWf(t){if(!t)return;const r={x:t.x,y:t.y,layer:t.z?.toString()};e.routeStore.defaultFrom=new n(Number.MAX_SAFE_INTEGER,o(),r,m()),r.layer&&e.fp.activateFloor({name:r.layer})}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{PREVIEW_MODE_ATTRIBUTE as A}from"./constants";import l from"./tools/base-runtime-url";import{buildRebookingUrl as V,getRebookingToken as H,retainRebookingToken as z}from"./tools/rebookingUrl";import{loadCss as x,loadFont as g,loadJs as b}from"./tools/loaders";import S from"./tools/logger";import{sleep as G}from"./utils";import{initI18n as N}from"./utils/i18n";import L from"./utils/is-webview";import{loadCustomCss as Q}from"./utils/loadCustomCss";import{loadIcons as q}from"./utils/loadIcons";import W from"./utils/mergeExhibitors";import E from"./utils/use-shadow";import $ from"./utils/is-debug";import J from"./utils/is-localhost";import{initSentry as K}from"./tools/sentry";function t(){throw new Error("FloorPlan not ready")}export default class Y{options;renderTarget;_ready;element;eventId;dataUrl;noOverlay;offHistory;ignoreQuery;allowConsent;onInit;disableRuntimeAlerts;viewerMode;efpStyleLoadHandler;resolveReady;icons=new Map;enableRotation=!0;alwaysShowSidebar=!1;get ready(){return this._ready}get previewMode(){return this.options.previewMode||this.element.hasAttribute(A)}onBoothClick;onBookmarkClick;onVisitedClick;onCategoryClick;onFpConfigured;onDirection;onDetails;onExhibitorCustomButtonClick;onGetCoordsClick;onMarkerClick;onLeaveEvent;selectBooth(e){t()}selectExhibitor(e){t()}selectRoute(e,a){t()}getOptimizedRoutes(e){t()}selectCurrentPosition(e,a,h){t()}setBookmarks(e){t()}setEntitiesBookmarks(e){t()}setEntitiesVisited(e){t()}setMarkers(e){t()}updateLayerVisibility(e,a){t()}getCenterCoordinates(){t()}applyParameters(e){t()}exhibitorsList(){t()}boothsList(){t()}categoriesList(){t()}selectCategory(e){t()}getVisibility(){t()}setVisibility(e){t()}findLocation(){t()}zoomIn(){t()}zoomOut(){t()}zoomTo(e,a){t()}switchView(){t()}fitBounds(){t()}getBounds(e){t()}getBoothRect(e){t()}convertToGeo(e,a){t()}unstable_destroy(){t()}highlightExhibitors(e){t()}highlightBooths(e){t()}onCurrentPositionChanged(e){t()}search(e){t()}getFloors(){t()}onFloorActivated(e){t()}activateFloor(e){t()}showPathway(e,a){t()}showPathwayOnly(e,a){t()}hidePathways(){t()}showSearch(){t()}changeLanguage(e){t()}isGpsTrackingEnabled(){t()}setGpsTrackingEnabled(e){t()}deselectCurrentPosition(){t()}deselectRoute(){t()}reset(){t()}constructor(e){this.options=e,this.noOverlay=!!e.noOverlay,this.offHistory=!!e.offHistory,this.ignoreQuery=e.ignoreQuery,this.allowConsent=J&&!$?!1:e.allowConsent,this.onBoothClick=e.onBoothClick,this.onBookmarkClick=e.onBookmarkClick,this.onVisitedClick=e.onVisitedClick,this.onCategoryClick=e.onCategoryClick,this.onDetails=e.onDetails,this.onExhibitorCustomButtonClick=e.onExhibitorCustomButtonClick,this.onGetCoordsClick=e.onGetCoordsClick,this.onMarkerClick=e.onMarkerClick,this.onFpConfigured=e.onFpConfigured,this.onDirection=e.onDirection,this.onInit=e.onInit,this.onCurrentPositionChanged=e.onCurrentPositionChanged,this.onFloorActivated=e.onFloorActivated,this.onLeaveEvent=e.onLeaveEvent,this.viewerMode=!!e.viewerMode,this.disableRuntimeAlerts=e.disableRuntimeAlerts??!0,this._ready=new Promise((d,i)=>{this.resolveReady=d});const a=e.element;if(this.element=a,a.__expofp)throw new Error("Element already in use");if(a.__expofp=this,a.getAttribute("data-event-id")||a.getAttribute("data-event"))throw new Error("data-xxx attributes are removed, use options instead");const h=e.expo||e.event;if(!h)throw new Error("`expo` option is required");K({eventId:h||"",isWebview:L}),this.eventId=h,window.__efpEvent=h,window.__efpElement=a;const P=[...a.classList];a.classList.remove(...P),a.classList.add("expofp-floorplan-default",...P);const B=document.head||document.getElementsByTagName("head")[0],R=document.createElement("style");B.prepend(R),R.textContent=".expofp-floorplan-default { width: 100%; height: 100%;}";const m=document.createElement("div");m.style.height="100%",m.style.width="100%",a.appendChild(m);let n;if(L&&(this.allowConsent=!0),e.allowConsent===void 0){const i=new URL(window.location.href).searchParams.get("allowConsent");i&&(this.allowConsent=i==="true")}if(E){n=m.attachShadow({mode:"open"});const d=n,i=document;d.createElement=(...r)=>i.createElement(...r),d.createElementNS=(...r)=>i.createElementNS(...r),d.createTextNode=(...r)=>i.createTextNode(...r)}else n=m;const y=document.createElement("div");if(y.style.height="100%",y.style.width="100%",n.appendChild(y),E&&Object.defineProperty(y,"ownerDocument",{value:n}),window.__efpShadowDOMStyleParent=E?n:void 0,this.renderTarget=y,a.getAttribute("data-data-url"))throw new Error("data-xxx attributes are removed, use options instead");const u=e.legacyDataUrlBase;window.__dataUrlBase=u,this.dataUrl=u,S.log("Instantiating ExpoFP floorplan",e.element,h);const O=u+"data.js",D=u+"wf.data.js",I=u+"fp.svg.js",j=[b(D),b(O),b(I)];let v=0;this.efpStyleLoadHandler=function(d){const i=window.__efpStyleElements;for(;v<i.length;){const r=i[v];n.appendChild(r),v++}},window.addEventListener("__efpStyleLoad",this.efpStyleLoadHandler);const k=this;(async function(){await Promise.all(j);let i=0;for(;window.__fpPending&&!window.__fp;)await G(2e3),await b(I+`?v=${++i}`);const r=window.__data;await N();const f=new URLSearchParams(window.location.search);let w,C;if(r?.trackerUrl)try{w=new URL(r.trackerUrl),C=w.searchParams.get("expoId")}catch(o){console.error(o)}const _=async o=>{if(!w||!C)return Promise.reject(new Error("trackerUrl or expoId is missing"));const s=new URL(o.dataUrl,w.origin),c=await fetch(s.toString(),{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({expoId:C,token:decodeURIComponent(f.get("t"))})});let p=[];c.ok&&(p=(await c.json()).map(o.dataMapper)),window.__heatmapDataYah={yah:p}};if(f.get("heatmap")==="true")try{if(f.get("type")==="yah")f.get("subtype")==="kiosk"?await _({dataUrl:"/api/kiosks/list/viewer",dataMapper:o=>({...o,id:o.key,name:`Kiosk ${o.key}`})}):await _({dataUrl:"/api/v1/you-are-here/qr-code/list/viewer",dataMapper:(o,s)=>({...o,name:`QR Code #${s+1}`})});else{const o=new URL("/api/fp-stats/get",w.origin);o.searchParams.set("expoId",C),o.searchParams.set("type","booview"),o.searchParams.set("t",decodeURIComponent(f.get("t")));const s=new URL("api/fp-stats/get",w.origin);s.searchParams.set("expoId",C),s.searchParams.set("type","exview"),s.searchParams.set("t",decodeURIComponent(f.get("t")));const[c,p]=await Promise.all([fetch(o.toString()),fetch(s.toString())]),[U,F]=await Promise.all([c.json(),p.json()]);window.__heatmapData={booths:U,exhibitors:F}}}catch(o){console.error("Heatmap: Initialization error",o)}try{const o=H();if(o){z(o);const s=V("api/rebooking-data",{rt:o,expoKey:h}),c=await fetch(s);if(c.ok){const p=await c.json();W(r,p)}r.isRebooking=c.ok}else r.isRebooking=!1}catch(o){console.error(o)}const T=[x(l+"vendor/sanitize-css/sanitize.css",n),x(l+"vendor/perfect-scrollbar/css/perfect-scrollbar.css",n),x(l+"vendor/mapbox/mapbox-gl.css",n),g("Oswald",l+"fonts/oswald-v17-cyrillic_latin-300.woff",{weight:300}),g("Oswald",l+"fonts/oswald-v17-cyrillic_latin-500.woff",{weight:500}),g("Inter",l+"fonts/inter-400.woff2",{weight:400}),g("Inter",l+"fonts/inter-500.woff2",{weight:500}),g("Inter",l+"fonts/inter-600.woff2",{weight:600}),g("efp-symbols",l+"fonts/efp-symbols.woff",{weight:400}),Q(r),q(k.icons)];await Promise.all(T),k.enableRotation=r?.enableRotation??!1,k.alwaysShowSidebar=r?.alwaysShowSidebar??!1,S.log("Data loaded");const{default:M}=await import("./floorplan.ready");for(document.querySelectorAll(".expofp-floorplan-loader").forEach(o=>o.remove());a.firstChild&&a.firstChild!==m;)a.removeChild(a.firstChild);Object.setPrototypeOf(k,M.prototype).init()})()}}
|
|
1
|
+
import{PREVIEW_MODE_ATTRIBUTE as A}from"./constants";import l from"./tools/base-runtime-url";import{buildRebookingUrl as V,getRebookingToken as H,retainRebookingToken as z}from"./tools/rebookingUrl";import{loadCss as x,loadFont as g,loadJs as b}from"./tools/loaders";import S from"./tools/logger";import{sleep as G}from"./utils";import{initI18n as N}from"./utils/i18n";import L from"./utils/is-webview";import{loadCustomCss as Q}from"./utils/loadCustomCss";import{loadIcons as q}from"./utils/loadIcons";import W from"./utils/mergeExhibitors";import E from"./utils/use-shadow";import $ from"./utils/is-debug";import J from"./utils/is-localhost";import{initSentry as K}from"./tools/sentry";function t(){throw new Error("FloorPlan not ready")}export default class Y{options;renderTarget;_ready;element;eventId;dataUrl;noOverlay;offHistory;ignoreQuery;allowConsent;onInit;disableRuntimeAlerts;viewerMode;efpStyleLoadHandler;resolveReady;icons=new Map;enableRotation=!0;alwaysShowSidebar=!1;get ready(){return this._ready}get previewMode(){return this.options.previewMode||this.element.hasAttribute(A)}onBoothClick;onBookmarkClick;onVisitedClick;onCategoryClick;onFpConfigured;onDirection;onDetails;onExhibitorCustomButtonClick;onGetCoordsClick;onMarkerClick;onLeaveEvent;selectBooth(e){t()}selectExhibitor(e){t()}selectRoute(e,a){t()}getOptimizedRoutes(e){t()}selectCurrentPosition(e,a,h){t()}setBookmarks(e){t()}setEntitiesBookmarks(e){t()}setEntitiesVisited(e){t()}setMarkers(e){t()}updateLayerVisibility(e,a){t()}getCenterCoordinates(){t()}applyParameters(e){t()}exhibitorsList(){t()}boothsList(){t()}categoriesList(){t()}selectCategory(e){t()}getVisibility(){t()}setVisibility(e){t()}findLocation(){t()}zoomIn(){t()}zoomOut(){t()}zoomTo(e,a){t()}switchView(){t()}fitBounds(){t()}getBounds(e){t()}getBoothRect(e){t()}convertToGeo(e,a){t()}unstable_destroy(){t()}highlightExhibitors(e){t()}highlightBooths(e){t()}onCurrentPositionChanged(e){t()}search(e){t()}getFloors(){t()}onFloorActivated(e){t()}activateFloor(e){t()}showPathway(e,a){t()}showPathwayOnly(e,a){t()}hidePathways(){t()}showSearch(){t()}changeLanguage(e){t()}isGpsTrackingEnabled(){t()}setGpsTrackingEnabled(e){t()}deselectCurrentPosition(){t()}deselectRoute(){t()}reset(){t()}constructor(e){this.options=e,this.noOverlay=!!e.noOverlay,this.offHistory=!!e.offHistory,this.ignoreQuery=e.ignoreQuery,this.allowConsent=J&&!$?!1:e.allowConsent,this.onBoothClick=e.onBoothClick,this.onBookmarkClick=e.onBookmarkClick,this.onVisitedClick=e.onVisitedClick,this.onCategoryClick=e.onCategoryClick,this.onDetails=e.onDetails,this.onExhibitorCustomButtonClick=e.onExhibitorCustomButtonClick,this.onGetCoordsClick=e.onGetCoordsClick,this.onMarkerClick=e.onMarkerClick,this.onFpConfigured=e.onFpConfigured,this.onDirection=e.onDirection,this.onInit=e.onInit,this.onCurrentPositionChanged=e.onCurrentPositionChanged,this.onFloorActivated=e.onFloorActivated,this.onLeaveEvent=e.onLeaveEvent,this.viewerMode=!!e.viewerMode,this.disableRuntimeAlerts=e.disableRuntimeAlerts??!0,this._ready=new Promise((d,i)=>{this.resolveReady=d});const a=e.element;if(this.element=a,a.__expofp)throw new Error("Element already in use");if(a.__expofp=this,a.getAttribute("data-event-id")||a.getAttribute("data-event"))throw new Error("data-xxx attributes are removed, use options instead");const h=e.expo||e.event;if(!h)throw new Error("`expo` option is required");K({eventId:h||"",isWebview:L}),this.eventId=h,window.__efpEvent=h,window.__efpElement=a;const P=[...a.classList];a.classList.remove(...P),a.classList.add("expofp-floorplan-default",...P);const B=document.head||document.getElementsByTagName("head")[0],R=document.createElement("style");B.prepend(R),R.textContent=".expofp-floorplan-default { width: 100%; height: 100%;}";const m=document.createElement("div");m.style.height="100%",m.style.width="100%",a.appendChild(m);let n;if(L&&(this.allowConsent=!0),e.allowConsent===void 0){const i=new URL(window.location.href).searchParams.get("allowConsent");i&&(this.allowConsent=i==="true")}if(E){n=m.attachShadow({mode:"open"});const d=n,i=document;d.createElement=(...r)=>i.createElement(...r),d.createElementNS=(...r)=>i.createElementNS(...r),d.createTextNode=(...r)=>i.createTextNode(...r)}else n=m;const y=document.createElement("div");if(y.style.height="100%",y.style.width="100%",n.appendChild(y),E&&Object.defineProperty(y,"ownerDocument",{value:n}),window.__efpShadowDOMStyleParent=E?n:void 0,this.renderTarget=y,a.getAttribute("data-data-url"))throw new Error("data-xxx attributes are removed, use options instead");const u=e.legacyDataUrlBase;window.__dataUrlBase=u,this.dataUrl=u,S.log("Instantiating ExpoFP floorplan",e.element,h);const O=u+"data.js",D=u+"wf.data.js",I=u+"fp.svg.js",j=[b(D),b(O),b(I)];let v=0;this.efpStyleLoadHandler=function(d){const i=window.__efpStyleElements;for(;v<i.length;){const r=i[v];n.appendChild(r),v++}},window.addEventListener("__efpStyleLoad",this.efpStyleLoadHandler);const k=this;(async function(){await Promise.all(j);let i=0;for(;window.__fpPending&&!window.__fp;)await G(2e3),await b(I+`?v=${++i}`);const r=window.__data;await N();const f=new URLSearchParams(window.location.search);let w,C;if(r?.trackerUrl)try{w=new URL(r.trackerUrl),C=w.searchParams.get("expoId")}catch(o){console.error(o)}const _=async o=>{if(!w||!C)return Promise.reject(new Error("trackerUrl or expoId is missing"));const s=new URL(o.dataUrl,w.origin),c=await fetch(s.toString(),{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({expoId:C,token:decodeURIComponent(f.get("t"))})});let p=[];c.ok&&(p=(await c.json()).map(o.dataMapper)),window.__heatmapDataYah={yah:p}};if(f.get("heatmap")==="true")try{if(f.get("type")==="yah")f.get("subtype")==="kiosk"?await _({dataUrl:"/api/kiosks/list/viewer",dataMapper:o=>({...o,id:o.key,name:`Kiosk ${o.key}`})}):await _({dataUrl:"/api/v1/you-are-here/qr-code/list/viewer",dataMapper:(o,s)=>({...o,name:`QR Code #${s+1}`})});else{const o=new URL("/api/fp-stats/get",w.origin);o.searchParams.set("expoId",C),o.searchParams.set("type","booview"),o.searchParams.set("t",decodeURIComponent(f.get("t")));const s=new URL("api/fp-stats/get",w.origin);s.searchParams.set("expoId",C),s.searchParams.set("type","exview"),s.searchParams.set("t",decodeURIComponent(f.get("t")));const[c,p]=await Promise.all([fetch(o.toString()),fetch(s.toString())]),[U,F]=await Promise.all([c.json(),p.json()]);window.__heatmapData={booths:U,exhibitors:F}}}catch(o){console.error("Heatmap: Initialization error",o)}try{const o=H();if(o){z(o);const s=V("api/rebooking-data",{rt:o,expoKey:h}),c=await fetch(s);if(c.ok){const p=await c.json();W(r,p)}r.isRebooking=c.ok}else r.isRebooking=!1}catch(o){console.error(o)}const T=[x(l+"vendor/sanitize-css/sanitize.css",n),x(l+"vendor/perfect-scrollbar/css/perfect-scrollbar.css",n),x(l+"vendor/mapbox/mapbox-gl.css",n),g("Oswald",l+"fonts/oswald-v17-cyrillic_latin-300.woff",{weight:300}),g("Oswald",l+"fonts/oswald-v17-cyrillic_latin-500.woff",{weight:500}),g("Inter",l+"fonts/inter-400.woff2",{weight:400}),g("Inter",l+"fonts/inter-500.woff2",{weight:500}),g("Inter",l+"fonts/inter-600.woff2",{weight:600}),g("efp-symbols",l+"fonts/efp-symbols.woff",{weight:400}),Q(r,n),q(k.icons)];await Promise.all(T),k.enableRotation=r?.enableRotation??!1,k.alwaysShowSidebar=r?.alwaysShowSidebar??!1,S.log("Data loaded");const{default:M}=await import("./floorplan.ready");for(document.querySelectorAll(".expofp-floorplan-loader").forEach(o=>o.remove());a.firstChild&&a.firstChild!==m;)a.removeChild(a.firstChild);Object.setPrototypeOf(k,M.prototype).init()})()}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _="efp-telemetry",M=3e5,N=1e3;function g(s=_){return{get(){try{const r=localStorage.getItem(s);return r?JSON.parse(r):null}catch{return null}},set(r){try{localStorage.setItem(s,JSON.stringify(r))}catch(n){console.error("Failed to persist telemetry data",n)}},clear(){try{localStorage.removeItem(s)}catch(r){console.error("Failed to clear telemetry data",r)}}}}function R(s){const r=s.headers.get("Retry-After");if(!r)return 0;let n=0;const a=Number(r);if(Number.isFinite(a))n=a*1e3;else{const o=Date.parse(r);isNaN(o)||(n=Math.max(0,o-Date.now()))}return Math.min(n,3e5)}export function createTelemetry(s){const{url:r,expo:n,expoId:a,storage:o=g()}=s;let c=s.kioskId??"";function l(){const e=o.get();return e?(e.expo=n,e.expoId=a,e.kioskId=c,e):{expo:n,expoId:a,kioskId:c,items:[]}}function y(e){c=e}let u=!1,f=!1,d=0;async function m(){if(u){f=!0;return}u=!0;do{if(f=!1,performance.now()<d)break;let e=null;try{if(e=l(),e.items.length===0)break;o.clear();const t=JSON.stringify(e),p=new TextEncoder().encode(t).byteLength,i=await fetch(r,{method:"POST",body:t,headers:{"Content-Type":"application/json"},credentials:"omit",keepalive:p<63e3});if(!i.ok){if(i.status===429||i.status===503){const h=R(i);h>0&&(d=performance.now()+h)}E(e),console.error(`Failed to send telemetry: HTTP ${i.status}`)}}catch(t){e&&E(e),console.error("Failed to send telemetry",t)}}while(f);u=!1}function E(e){const t=l();t.items=[...e.items,...t.items],t.items.length>1e3&&(t.items=t.items.slice(-1e3)),o.set(t)}function T(e){const t=l();t.items.push(e),t.items.length>1e3&&(t.items=t.items.slice(-1e3)),o.set(t)}async function S(e){T(e),await m()}return{enqueue:T,send:S,flush:m,setKioskId:y}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{loadCustomFonts as
|
|
1
|
+
import{loadCustomFonts as e}from"../tools/loaders";export async function loadCustomCss(s,o){if(s?.customCss){const t=document.createElement("style");t.textContent=s.customCss,o.append(t),await e(s.customCss)}}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@expofp/floorplan",
|
|
3
|
-
"version": "3.0.0-alpha.
|
|
3
|
+
"version": "3.0.0-alpha.19",
|
|
4
4
|
"repository": {
|
|
5
5
|
"type": "git",
|
|
6
6
|
"url": "https://github.com/expofp/efp-app.git",
|
|
@@ -79,8 +79,8 @@
|
|
|
79
79
|
"twgl.js": "^4.14.0",
|
|
80
80
|
"uuid": "^9.0.1",
|
|
81
81
|
"zod": "4.3.5",
|
|
82
|
-
"@expofp/debug": "3.0.0-alpha.
|
|
83
|
-
"@expofp/resolve": "3.0.0-alpha.
|
|
82
|
+
"@expofp/debug": "3.0.0-alpha.19",
|
|
83
|
+
"@expofp/resolve": "3.0.0-alpha.19"
|
|
84
84
|
},
|
|
85
85
|
"devDependencies": {
|
|
86
86
|
"@babel/plugin-proposal-decorators": "^7.29.0",
|