decord/source/8024__isNativeReflectConstruct.js

69 lines
2 KiB
JavaScript
Raw Normal View History

2026-08-25 06:04:03 +00:00
// Module ID: 8024
// Function ID: 8025
2026-07-29 08:29:29 +00:00
// Name: _isNativeReflectConstruct
2026-08-24 06:08:38 +00:00
// Dependencies: [42, 41, 93, 95, 98, 19]
2026-07-29 08:29:29 +00:00
2026-08-25 06:04:03 +00:00
// Module 8024 (_isNativeReflectConstruct)
2026-08-24 06:08:38 +00:00
import _inheritsDefault from "_inherits" /* 98 */;
import FilterPrimitive from "_classCallCheck" /* 41 */;
import closure_1 from "_possibleConstructorReturn" /* 93 */;
import closure_2 from "_getPrototypeOf" /* 95 */;
import importDefaultResult from "_createClass" /* 42 */;
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);
}
2026-08-24 06:08:38 +00:00
closure_0 = !callResult;
_isNativeReflectConstruct = function _isNativeReflectConstruct() {
2026-07-29 08:29:29 +00:00
return closure_0;
2026-08-24 06:08:38 +00:00
};
2026-07-29 08:29:29 +00:00
return _isNativeReflectConstruct();
} catch (err) {
}
}
2026-08-24 06:08:38 +00:00
class FilterPrimitive {
2026-07-29 08:29:29 +00:00
constructor() {
self = this;
2026-08-24 06:08:38 +00:00
items = [...arguments];
closure_0 = undefined;
tmp = FilterPrimitive(this, closure_0);
items1 = [...items];
tmp2 = closure_2;
obj = closure_2(closure_0);
tmp3 = closure_1;
2026-07-29 08:29:29 +00:00
if (_isNativeReflectConstruct()) {
2026-08-24 06:08:38 +00:00
tmp5 = globalThis;
2026-07-29 08:29:29 +00:00
_Reflect = Reflect;
2026-08-24 06:08:38 +00:00
constructResult = Reflect.construct(obj, items1, tmp2(self).constructor);
2026-07-29 08:29:29 +00:00
} else {
2026-08-24 06:08:38 +00:00
constructResult = obj.apply(self, items1);
2026-07-29 08:29:29 +00:00
}
2026-08-24 06:08:38 +00:00
tmp3Result = tmp3(self, constructResult);
closure_0 = tmp3Result;
tmp3Result.root = null;
tmp3Result.refMethod = (root) => {
closure_0.root = root;
};
tmp3Result.setNativeProps = (arg0) => {
root = root.root;
if (root != null) {
root.setNativeProps(arg0);
}
};
return tmp3Result;
2026-07-29 08:29:29 +00:00
}
}
2026-08-24 06:08:38 +00:00
_inheritsDefault(FilterPrimitive, require("noop").Component);
const importDefaultResultResult = importDefaultResult(FilterPrimitive);
importDefaultResultResult.defaultPrimitiveProps = {};
2026-07-29 08:29:29 +00:00
export default importDefaultResultResult;