UNPKG

@expofp/floorplan

Version:

Interactive floor plan library for expos and events

34 lines (33 loc) 1.28 kB
(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.20.0" }; var t = new e.Error().stack; t && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[t] = "967c32cf-acbb-4cfd-ad43-a10f34f484de", e._sentryDebugIdIdentifier = "sentry-dbid-967c32cf-acbb-4cfd-ad43-a10f34f484de"); } catch {} })(); import { C as e, y as t } from "./i18n-B6dEf7vu.js"; import { s as n } from "./store-Dh-bVjb-.js"; import { t as r } from "./kiosk-record-cqqud1dq.js"; //#region src/components/Kiosk/integrateKiosk.ts function i(e, i) { e && t(() => { var t; if (n.uiState.setKioskData(e), n.uiState.kiosk = i, n.maplibreStore.showMaplibre) return; n.uiState.setMapSettings({ centerxy: `${e.mapCenterX},${e.mapCenterY}`, z: (t = e.z) == null ? void 0 : t, bearing: e.mapRollDegrees }); let a = r(e); a !== void 0 && n.uiState.changeZoom(a); }); } function a(t) { t && (t.z != null && n.fp.activateFloor({ name: t.z.toString() }), e(() => !!n.uiState.selectedRoute, () => { let e = n.uiState.selectedRoute; e != null && e.to && !e.from && n.routeStore.selectRoute(e, !1, !0); })); } //#endregion export { a as n, i as t };