UNPKG

@expofp/floorplan

Version:

Interactive floor plan library for expos and events

44 lines (43 loc) 1.58 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] = "3c34ab8b-5d65-4c06-8595-6ed371acabc5", e._sentryDebugIdIdentifier = "sentry-dbid-3c34ab8b-5d65-4c06-8595-6ed371acabc5"); } catch {} })(); import { r as e } from "./rolldown-runtime-7-Wh3Cc7.js"; import { a as t, i as n, s as r } from "./efp-debug-init-CHsd9_cw.js"; import { a as i, i as a } from "./adopt-global-settings-BcaNagH6.js"; import { t as o } from "./jsx-runtime-BRhWrtmW.js"; import "./settings-D-p69PHO.js"; import { t as s } from "./add-debug-secret-listener-wFMLV2Ik.js"; //#region ../debug/src/lib/ui/render-debug-ui.tsx var c = /* @__PURE__ */ e(r(), 1), l = o(), u = !1; function d() { if (u) return; u = !0; let r = i({ key: t }); a({ key: n, placeholder: "e.g. efp:*", onChange: (e) => { e ? c.default.enable(e) : c.default.disable(); } }); let o = async (t) => { let { DebugUi: n } = await import("./debug-ui-DCJyeLAd.js"), { createRoot: i } = await import("./client-Dj9OWVha.js").then((t) => /* @__PURE__ */ e(t.default, 1)), a = document.createElement("div"); document.body.appendChild(a), i(a).render(/* @__PURE__ */ (0, l.jsx)(n, { useDebugButtonState: r.useState, open: t })); }; if (r.get()) o(!1); else { let e = s(() => { e(), r.set(!0), o(!0); }); } } //#endregion export { d as renderDebugUi };