@expofp/floorplan
Version:
Interactive floor plan library for expos and events
54 lines (52 loc) • 2.54 kB
JavaScript
function __vite_inject_css__(css, id, forceLightDom){ if (typeof document==='undefined') return; var shadow=!forceLightDom&&typeof window!=='undefined'&&window.__efpShadowDOMStyleParent; var parent=shadow||document.head; var s=document.createElement('style'); s.setAttribute('data-chunk-style', id); s.appendChild(document.createTextNode(css)); parent.appendChild(s);}
(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] = "ccd649fd-2f8a-44a8-ae8b-b63aa36d0a32", e._sentryDebugIdIdentifier = "sentry-dbid-ccd649fd-2f8a-44a8-ae8b-b63aa36d0a32");
} catch {}
})();
import "./rolldown-runtime-7-Wh3Cc7.js";
import { s as e } from "./i18n-B6dEf7vu.js";
import { t } from "./react-lDheuaid.js";
import { t as n } from "./jsx-runtime-BRhWrtmW.js";
import { r } from "./index.module-CkZa7zY4.js";
import { c as i, s as a } from "./store-Dh-bVjb-.js";
t();
var o = [], s = n();
function c() {
let t = o.map((e) => e.width * e.height).reduce((e, t) => e += t, 0), n = o.map((e) => /* @__PURE__ */ (0, s.jsxs)("div", {
className: "debug__canvas",
id: e.toDataURL(),
children: [
e.width,
"x",
e.height,
"=",
e.width * e.height,
/* @__PURE__ */ (0, s.jsx)("br", {}),
/* @__PURE__ */ (0, s.jsx)("img", {
src: e.toDataURL(),
alt: "",
crossOrigin: "anonymous"
})
]
}, e.toDataURL()));
return /* @__PURE__ */ (0, s.jsxs)("div", {
className: "debug",
children: [
/* @__PURE__ */ (0, s.jsx)("button", {
onClick: () => a.searchStore.selectSearch(""),
children: e("Close")
}),
/* @__PURE__ */ (0, s.jsxs)("div", { children: ["Total square: ", t] }),
n
]
});
}
var l = () => r(() => /* @__PURE__ */ (0, s.jsx)(s.Fragment, { children: i.list.type === "search" && i.list.text === "q1" ? /* @__PURE__ */ (0, s.jsx)(c, {}) : null }));
//#endregion
export { l as default };
;/* vite-per-chunk-css */
__vite_inject_css__(".debug{z-index:999;background:var(--color-white);width:calc(100vw - 2rem);height:calc(100vh - 2rem);padding:1rem;position:fixed;top:1rem;left:1vw;overflow:scroll;box-shadow:0 0 1rem #00000080}.debug label{font-weight:var(--font-weight-bold);display:block}.debug__canvas{vertical-align:top;padding:2px;display:inline-block}.debug__canvas>img{background:var(--color-gray-300)}\n/*$vite$:1*/", "Debug.css", false);