decord/source/13995__isNativeReflectConstruct.js
2026-08-24 06:08:38 +00:00

97 lines
2.7 KiB
JavaScript

// Module ID: 13995
// Function ID: 13996
// Name: _isNativeReflectConstruct
// Dependencies: [41, 42, 93, 95, 98, 19, 21, 13996, 13999, 4680]
// Exports: default
// Module 13995 (_isNativeReflectConstruct)
import noopDefault from "noop" /* 19 */;
import closure_3 from "_classCallCheck" /* 41 */;
import closure_4 from "_possibleConstructorReturn" /* 93 */;
import closure_5 from "_getPrototypeOf" /* 95 */;
import importDefaultResult from "_createClass" /* 42 */;
import importDefaultResult1 from "_inherits" /* 98 */;
import { jsx } from "jsxProd" /* 21 */;
const ReanimatedScreenWrapper = arg1;
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) {
}
}
class ReanimatedScreenWrapper {
constructor() {
self = this;
items = [...arguments];
closure_0 = undefined;
tmp = closure_3(this, closure_0);
items1 = [...items];
tmp2 = closure_5;
obj = closure_5(closure_0);
tmp3 = closure_4;
if (_isNativeReflectConstruct()) {
tmp5 = globalThis;
_Reflect = Reflect;
constructResult = Reflect.construct(obj, items1, tmp2(self).constructor);
} else {
constructResult = obj.apply(self, items1);
}
tmp3Result = tmp3(self, constructResult);
closure_0 = tmp3Result;
tmp3Result.ref = null;
tmp3Result.setRef = (ref) => {
props.ref = ref;
props = props.props;
const onComponentRef = props.onComponentRef;
if (onComponentRef != null) {
onComponentRef(ref);
}
};
return tmp3Result;
}
}
importDefaultResult1(ReanimatedScreenWrapper, noopDefault.Component);
let items = [
{
key: "setNativeProps",
value: function setNativeProps(arg0) {
if (this.ref != null) {
ref.setNativeProps(arg0);
}
}
},
{
key: "render",
value: function render() {
const self = this;
if (this.props.isNativeStack) {
let tmpResult = tmp(13996);
} else {
tmpResult = tmp(13999);
}
const obj = {};
const merged = Object.assign(self.props);
obj.ref = self.setRef;
return <tmpResult />;
}
}
];
let closure_8 = importDefaultResult(ReanimatedScreenWrapper, items);
export default function ReanimatedScreenProvider(children) {
return jsx(ReanimatedScreenWrapper(4680).ScreenContext.Provider, { value: closure_8, children: children.children });
};