UNPKG

@expofp/floorplan

Version:

Interactive floor plan library for expos and events

35 lines (34 loc) • 1.35 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.39.1" }; var t = new e.Error().stack; t && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[t] = "639f50a3-678a-425c-a0b0-8daa6c119b22", e._sentryDebugIdIdentifier = "sentry-dbid-639f50a3-678a-425c-a0b0-8daa6c119b22"); } catch {} })(); import { w as e, y as t } from "./i18n-BVE2kS7w.js"; import { c as n } from "./store-CARxK2Ft.js"; import { t as r } from "./kiosk-record-Bcyr4YeZ.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; let a = e.mapCenterX != null && e.mapCenterY != null; n.uiState.setMapSettings({ centerxy: a ? `${e.mapCenterX},${e.mapCenterY}` : "", z: (t = e.z) == null ? void 0 : t, bearing: e.mapRollDegrees }); let o = r(e); o !== void 0 && n.uiState.changeZoom(o); }); } 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 };