@expofp/floorplan
Version:
Interactive floor plan library for expos and events
59 lines (58 loc) • 2.46 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.39.1" };
var t = new e.Error().stack;
t && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[t] = "397b33ce-150c-4acc-92d8-a5ae8d884724", e._sentryDebugIdIdentifier = "sentry-dbid-397b33ce-150c-4acc-92d8-a5ae8d884724");
} catch {}
})();
import { r as e } from "./rolldown-runtime-BOCG9HEF.js";
import { s as t } from "./efp-debug-init-DfQX41Dz.js";
import { t as n } from "./es5-CP2UUc_5.js";
import { t as r } from "./is-webview-BoQ3VPRe.js";
//#region src/_misc_to_move/logDeviceInfo.ts
var i = /* @__PURE__ */ e(n(), 1), a = (0, (/* @__PURE__ */ e(t(), 1)).default)("efp:device");
async function o() {
try {
a(c(await s()));
} catch {}
}
async function s() {
let e = navigator.userAgentData;
if (!e) return;
let t = {
brands: e.brands,
mobile: e.mobile,
platform: e.platform
};
try {
var n;
let r = await e.getHighEntropyValues([
"platformVersion",
"model",
"architecture",
"fullVersionList"
]);
t.platformVersion = r.platformVersion, t.model = r.model, t.architecture = r.architecture, (n = r.fullVersionList) != null && n.length && (t.brands = r.fullVersionList);
} catch {}
return t;
}
function c(e) {
var t;
let n = window.navigator.userAgent, { browser: a, os: o, platform: s, engine: c } = i.default.parse(n, e), u = [], d = (e, t) => {
t && u.push(`${e}: ${t}`);
}, f = {
version: "3.39.1",
commit: "f08d5d8e6",
branch: "main",
built: "2026-09-24T20:25:55.298Z"
};
f && d("SDK", `${f.version} (${f.commit} on ${f.branch}, built ${f.built})`);
let p = window.devicePixelRatio || 1;
return d("OS", l(o.name, o.version, o.versionName && `(${o.versionName})`)), d("Browser", l(a.name, a.version, c.name && `(${c.name})`)), d("Device", l(s.type, s.vendor, s.model)), d("Arch", e == null ? void 0 : e.architecture), d("WebView", r ? "yes" : "no"), d("Language", ((t = navigator.languages) == null ? void 0 : t[0]) || navigator.language), d("Screen", `${window.screen.width}x${window.screen.height} (DPR ${p})`), d("Viewport", `${window.innerWidth}x${window.innerHeight}`), d("Online", navigator.onLine ? "yes" : "no"), d("URL", document.location.href), d("User-Agent", n), u.join(" | ");
}
function l(...e) {
return e.filter(Boolean).join(" ");
}
//#endregion
export { o as logDeviceInfo };