import { __rest } from "tslib"; import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime"; import { memo } from "react"; import { Include, Plugin } from ".."; import { is121Version } from "../../utils"; const DEFAULT_WEBVR_121_CONFIG = { keep: true, devices: "webgl", }; const DEFAULT_WEBVR_119_CONFIG = { name: "WebVR", keep: true, devices: "html5", "multireslock.desktop": true, "multireslock.mobile.or.tablet": false, mobilevr_support: true, mobilevr_fake_support: true, }; export const WebVR = memo((_a) => { var { url } = _a, attrs = __rest(_a, ["url"]); return (_jsxs(_Fragment, { children: [_jsx(Include, { url: url }), _jsx(Plugin, Object.assign({ name: "WebVR" }, Object.assign(Object.assign({}, (is121Version ? DEFAULT_WEBVR_121_CONFIG : DEFAULT_WEBVR_119_CONFIG)), attrs)))] })); });