decord/source/7939__isNativeReflectConstruct.js

104 lines
2.8 KiB
JavaScript
Raw Normal View History

2026-08-08 06:10:11 +00:00
// Module ID: 7939
// Function ID: 7940
2026-07-29 08:29:29 +00:00
// Name: _isNativeReflectConstruct
2026-08-08 06:10:11 +00:00
// Dependencies: [41, 42, 93, 95, 98, 19, 21, 7851, 7940, 7850, 7859]
2026-07-29 08:29:29 +00:00
2026-08-08 06:10:11 +00:00
// Module 7939 (_isNativeReflectConstruct)
2026-07-29 08:29:29 +00:00
import _classCallCheck from "_classCallCheck";
import _possibleConstructorReturn from "_possibleConstructorReturn";
import _getPrototypeOf from "_getPrototypeOf";
import importDefaultResult from "_createClass";
import "noop";
import { jsx } from "jsxProd";
2026-07-31 08:44:05 +00:00
const Use = arg1;
2026-07-29 08:29:29 +00:00
function _isNativeReflectConstruct() {
try {
const _Boolean = Boolean;
const call = valueOf.call;
const _Reflect = Reflect;
const _Boolean2 = Boolean;
if (typeof call === "unknown") {
let callResult = valueOf();
} else {
callResult = call(constructResult);
}
let closure_0 = !callResult;
function _isNativeReflectConstruct() {
return closure_0;
}
return _isNativeReflectConstruct();
} catch (err) {
}
}
2026-07-31 08:44:05 +00:00
class Use {
2026-07-29 08:29:29 +00:00
constructor() {
self = this;
2026-07-31 08:44:05 +00:00
tmp = _isNativeReflectConstruct(this, Use);
2026-07-29 08:29:29 +00:00
tmp2 = __esModule;
2026-07-31 08:44:05 +00:00
obj = __esModule(Use);
2026-07-29 08:29:29 +00:00
tmp3 = __esModule;
if (_isNativeReflectConstruct()) {
2026-07-30 10:14:41 +00:00
tmp7 = globalThis;
2026-07-29 08:29:29 +00:00
_Reflect = Reflect;
2026-07-30 10:14:41 +00:00
tmp8 = arguments;
constructResult = Reflect.construct(obj, arguments, tmp2(self).constructor);
2026-07-29 08:29:29 +00:00
} else {
2026-07-30 10:14:41 +00:00
tmp4 = arguments;
tmp5 = arguments;
constructResult = obj(...arguments);
2026-07-29 08:29:29 +00:00
}
2026-07-30 10:14:41 +00:00
return tmp3(self, constructResult);
2026-07-29 08:29:29 +00:00
}
}
2026-07-31 08:44:05 +00:00
require("_inherits")(Use, require("_isNativeReflectConstruct"));
2026-07-30 10:14:41 +00:00
const items = [
2026-07-29 08:29:29 +00:00
{
key: "render",
value: function render() {
2026-07-31 08:44:05 +00:00
let children;
let height;
let width;
let x;
let y;
2026-07-30 10:14:41 +00:00
const self = this;
2026-07-29 08:29:29 +00:00
const props = this.props;
2026-07-31 08:44:05 +00:00
let str = props.href;
({ children, x, y, width, height } = props);
if (undefined === str) {
str = props.xlinkHref;
}
let match = str;
if (str) {
2026-08-08 06:10:11 +00:00
match = str.match(self(7851).idPattern);
2026-07-31 08:44:05 +00:00
}
let tmp4 = match;
if (match) {
tmp4 = match[1];
}
if (!tmp4) {
const _console = console;
console.warn(`Invalid \`href\` prop for \`Use\` element, expected a href like "#id", but got: "${str}"`);
}
let obj = { href: tmp4, x, y, width, height };
2026-07-30 10:14:41 +00:00
obj = {
ref(arg0) {
return self.refMethod(arg0);
}
};
2026-08-08 06:10:11 +00:00
const tmp7 = importDefault(7940);
const merged = Object.assign(self(7850).withoutXY(this, props));
2026-07-30 10:14:41 +00:00
const merged1 = Object.assign(obj);
2026-07-31 08:44:05 +00:00
obj.children = children;
return <tmp7 ref={function ref(arg0) {
2026-07-30 10:14:41 +00:00
return self.refMethod(arg0);
}} />;
2026-07-29 08:29:29 +00:00
}
}
];
2026-07-31 08:44:05 +00:00
const importDefaultResultResult = importDefaultResult(Use, items);
importDefaultResultResult.displayName = "Use";
2026-07-30 10:14:41 +00:00
importDefaultResultResult.defaultProps = { x: 0, y: 0, width: 0, height: 0 };
2026-07-29 08:29:29 +00:00
export default importDefaultResultResult;