UNPKG

@expofp/floorplan

Version:

Interactive floor plan library for expos and events

59 lines (58 loc) 2.46 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.20.0" }; var t = new e.Error().stack; t && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[t] = "76288a21-aae7-4fcc-9dda-8f04ac6f5213", e._sentryDebugIdIdentifier = "sentry-dbid-76288a21-aae7-4fcc-9dda-8f04ac6f5213"); } catch {} })(); import { r as e } from "./rolldown-runtime-7-Wh3Cc7.js"; import { s as t } from "./efp-debug-init-CHsd9_cw.js"; import { t as n } from "./es5-cNhUtAJ8.js"; import { t as r } from "./is-webview-CPRfPICf.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.20.0", commit: "96f5ec772", branch: "main", built: "2026-08-10T14:22:11.035Z" }; 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 };