UNPKG

@expofp/floorplan

Version:

Interactive floor plan library for expos and events

44 lines (43 loc) • 1.57 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] = "80a4f49f-d869-4a38-b1c0-c3cfd645ceec", e._sentryDebugIdIdentifier = "sentry-dbid-80a4f49f-d869-4a38-b1c0-c3cfd645ceec"); } catch {} })(); import { r as e } from "./rolldown-runtime-BOCG9HEF.js"; import { a as t, i as n, s as r } from "./efp-debug-init-DfQX41Dz.js"; import { a as i, i as a } from "./adopt-global-settings-BscL85ma.js"; import { t as o } from "./jsx-runtime-BGutO_I9.js"; import "./settings-BEwEIUKe.js"; import { t as s } from "./add-debug-secret-listener-DibnDryN.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-CX2sgttZ.js"), { createRoot: i } = await import("./client-BtPJvi_3.js").then((t) => /* @__PURE__ */ e(t.t(), 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 };