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.47.0" }; var t = new e.Error().stack; t && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[t] = "6050bcf9-935a-4416-bb10-128e04e0fb6f", e._sentryDebugIdIdentifier = "sentry-dbid-6050bcf9-935a-4416-bb10-128e04e0fb6f"); } catch {} })(); import { r as e } from "./rolldown-runtime-5rOLGCTp.js"; import { s as t } from "./efp-debug-init-D3gNE8Zq.js"; import { t as n } from "./es5-CRZbJ3RK.js"; import { t as r } from "./is-webview-DA6FLdme.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.47.0", commit: "460b51a28", branch: "main", built: "2026-11-03T11:44:33.581Z" }; 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 };