@expofp/floorplan
Version:
Interactive floor plan library for expos and events
47 lines (46 loc) • 1.59 kB
JavaScript
(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] = "81863b16-dfcf-4b3e-9293-bdc5f05a30a1", e._sentryDebugIdIdentifier = "sentry-dbid-81863b16-dfcf-4b3e-9293-bdc5f05a30a1");
} catch {}
})();
import { r as e } from "./rolldown-runtime-5rOLGCTp.js";
import { a as t, i as n, s as r } from "./efp-debug-init-D3gNE8Zq.js";
import { a as i, i as a } from "./adopt-global-settings-BerG23m2.js";
import { t as o } from "./jsx-runtime-BzLvm2y2.js";
import "./settings-DgySPhLO.js";
import { t as s } from "./add-debug-secret-listener-BJu3pH2x.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,
default: !1
});
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-CopIbPwZ.js"), { createRoot: i } = await import("./client-DbQnuxsE.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 };