UNPKG

@expofp/floorplan

Version:

Interactive floor plan library for expos and events

54 lines (52 loc) 2.54 kB
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.7.8" }; var t = new e.Error().stack; t && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[t] = "63ee88b5-54e8-4ef6-a8bb-077a5b95cd04", e._sentryDebugIdIdentifier = "sentry-dbid-63ee88b5-54e8-4ef6-a8bb-077a5b95cd04"); } catch {} })(); import "./rolldown-runtime-YBAZwyzS.js"; import { t as e } from "./react-Di3Pmpio.js"; import { t } from "./jsx-runtime-C8yjdFgZ.js"; import { s as n } from "./i18n-BEer1tI4.js"; import { i as r } from "./Button-C4gPbjAY.js"; import { o as i, s as a } from "./store-DTwRqruF.js"; e(); var o = [], s = t(); function c() { let e = o.map((e) => e.width * e.height).reduce((e, t) => e += t, 0), t = 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: () => i.searchStore.selectSearch(""), children: n("Close") }), /* @__PURE__ */ (0, s.jsxs)("div", { children: ["Total square: ", e] }), t ] }); } var l = () => r(() => /* @__PURE__ */ (0, s.jsx)(s.Fragment, { children: a.list.type === "search" && a.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);