@expofp/floorplan
Version:
Interactive floor plan library for expos and events
36 lines (35 loc) • 1.43 kB
JavaScript
(function() {
try {
var e = typeof window < "u" ? window : typeof global < "u" ? global : typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : {};
e.SENTRY_RELEASE = { id: "3.47.0" };
var t = new e.Error().stack;
t && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[t] = "63cd8ebf-b188-4af0-a5b1-1a59dba4e7f3", e._sentryDebugIdIdentifier = "sentry-dbid-63cd8ebf-b188-4af0-a5b1-1a59dba4e7f3");
} catch {}
})();
import { u as e } from "./mobx.module-BTnTbXnp.js";
import { l as t } from "./store-DTvNQcN7.js";
import { N as n } from "./LayerStore-DCg-juRT.js";
import { t as r } from "./kiosk-record-Ckxa0L0B.js";
//#region src/components/Kiosk/integrateKiosk.ts
function i(n, i) {
n && e(() => {
var e;
if (t.uiState.setKioskData(n), t.uiState.kiosk = i, t.maplibreStore.showMaplibre) return;
let a = t.uiState.kiosk ? n : {}, o = a.mapCenterX != null && a.mapCenterY != null;
t.uiState.setMapSettings({
centerxy: o ? `${a.mapCenterX},${a.mapCenterY}` : "",
z: (e = n.z) == null ? void 0 : e,
bearing: a.mapRollDegrees
});
let s = r(a);
s !== void 0 && t.uiState.changeZoom(s);
});
}
function a(e) {
e && (e.z != null && t.fp.activateFloor({ name: e.z.toString() }), n(() => !!t.uiState.selectedRoute, () => {
let e = t.uiState.selectedRoute;
e != null && e.to && !e.from && t.routeStore.selectRoute(e, !1, !0);
}));
}
//#endregion
export { a as n, i as t };