UNPKG

@expofp/floorplan

Version:

Interactive floor plan library for expos and events

51 lines (50 loc) • 2.17 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.47.0" }; var t = new e.Error().stack; t && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[t] = "3ec58dcc-adcb-4555-94b5-ba6d140f5cbf", e._sentryDebugIdIdentifier = "sentry-dbid-3ec58dcc-adcb-4555-94b5-ba6d140f5cbf"); } catch {} })(); import { r as e } from "./rolldown-runtime-5rOLGCTp.js"; import { t } from "./react-XuvSZP7j.js"; import { t as n } from "./jsx-runtime-BzLvm2y2.js"; import { d as r } from "./kioskApi-CG3QGuUx.js"; import { t as i } from "./index.module-CN0EtZcO.js"; import { l as a } from "./store-DTvNQcN7.js"; import { n as o } from "./mobx-CUFHrL57.js"; import { C as s, Xt as c } from "./LayerStore-DCg-juRT.js"; import { n as l } from "./camera-events-DzSywgw0.js"; import { t as u } from "./KioskStore-DodjzUdk.js"; //#region src/components/Kiosk/SetKioskMode.tsx var d = /* @__PURE__ */ e(t(), 1), f = n(), p = i(() => { var e, t, n; o(() => { Promise.resolve().then(() => u.handleSetupReady()); }), (0, d.useEffect)(() => { var e; let t = (e = c()) == null ? void 0 : e.state(); t && u.setInitialPtScale(t.pixelSize); }, []), (0, d.useEffect)(() => (s((e) => u.handleClick(e)), () => s()), []), (0, d.useEffect)(() => l(() => u.handleNavigationChange()), []); let i = !!u.kiosk; return /* @__PURE__ */ (0, f.jsx)(r, { isSaveDisabled: !i || !u.hasUnsavedChanges, isDeleteDisabled: !i, areControlsDisabled: !i, confirmOnClose: i ? u.hasUnsavedChanges : !1, angle: ((e = u.kiosk) == null ? void 0 : e.heading) || 0, uiScale: ((t = u.kiosk) == null ? void 0 : t.uiScale) || a.uiState.uiScale, minUiScale: a.uiState.minUIScale, maxUiScale: a.uiState.maxUIScale, uiScaleStep: .01, iconSizePercent: ((n = u.kiosk) == null ? void 0 : n.iconSizePercent) || 100, isInfoVisible: !i, statusMessages: u.statusMessages, onClose: () => u.handleClose(), onDelete: () => u.handleDelete(), onSave: () => u.handleSave(), onChange: (e) => u.handleChange(e) }); }); //#endregion export { p as default };