decord/source/__helpers/08xxx/8525__isNativeReflectConstruct.js

86 lines
2.6 KiB
JavaScript
Raw Normal View History

// Module ID: 8525
// Function ID: 8526
2026-09-02 09:53:35 +00:00
// Name: _isNativeReflectConstruct
// Dependencies: [41, 42, 93, 95, 98, 19, 21, 8526, 8471, 8470]
2026-09-02 09:53:35 +00:00
// Module 8525 (_isNativeReflectConstruct)
2026-09-02 09:53:35 +00:00
import noopAll from "noop" /* 19 */;
import _inheritsDefault from "_inherits" /* 98 */;
import _isNativeReflectConstructDefault from "_isNativeReflectConstruct" /* 8470 */;
import __INTERNAL_VIEW_CONFIGDefault from "__INTERNAL_VIEW_CONFIG" /* 8526 */;
2026-09-03 10:05:34 +00:00
import closure_3 from "_classCallCheck" /* 41 */;
import closure_4 from "_possibleConstructorReturn" /* 93 */;
import closure_5 from "_getPrototypeOf" /* 95 */;
2026-09-02 09:53:35 +00:00
import importDefaultResult from "_createClass" /* 42 */;
import { jsx } from "jsxProd" /* 21 */;
const ForeignObject = arg1;
2026-09-02 09:53:35 +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);
}
closure_0 = !callResult;
_isNativeReflectConstruct = function _isNativeReflectConstruct() {
return closure_0;
};
return _isNativeReflectConstruct();
} catch (err) {
}
}
noopAll;
class ForeignObject {
2026-09-02 09:53:35 +00:00
constructor() {
self = this;
tmp = closure_3(this, ForeignObject);
2026-09-03 10:05:34 +00:00
tmp2 = closure_5;
obj = closure_5(ForeignObject);
2026-09-03 10:05:34 +00:00
tmp3 = closure_4;
2026-09-02 09:53:35 +00:00
if (_isNativeReflectConstruct()) {
tmp7 = globalThis;
2026-09-02 09:53:35 +00:00
_Reflect = Reflect;
tmp8 = arguments;
constructResult = Reflect.construct(obj, arguments, tmp2(self).constructor);
2026-09-02 09:53:35 +00:00
} else {
tmp4 = arguments;
tmp5 = arguments;
constructResult = obj(...arguments);
2026-09-02 09:53:35 +00:00
}
return tmp3(self, constructResult);
2026-09-02 09:53:35 +00:00
}
}
_inheritsDefault(ForeignObject, _isNativeReflectConstructDefault);
const items = [
2026-09-02 09:53:35 +00:00
{
key: "render",
value: function render() {
const self = this;
const props = this.props;
let obj = { x: props.x, y: props.y, width: props.width, height: props.height };
obj = {
ref(arg0) {
return self.refMethod(arg0);
}
};
const tmp = __INTERNAL_VIEW_CONFIGDefault;
const merged = Object.assign(self(8471).withoutXY(this, props));
const merged1 = Object.assign(obj);
obj.children = props.children;
return <tmp ref={function ref(arg0) {
return self.refMethod(arg0);
}} />;
2026-09-02 09:53:35 +00:00
}
}
];
const importDefaultResultResult = importDefaultResult(ForeignObject, items);
importDefaultResultResult.displayName = "ForeignObject";
importDefaultResultResult.defaultProps = { x: "0%", y: "0%", width: "100%", height: "100%" };
2026-09-02 09:53:35 +00:00
export default importDefaultResultResult;