decord/source/6462__isNativeReflectConstruct.js

86 lines
2.6 KiB
JavaScript
Raw Normal View History

2026-08-24 06:08:38 +00:00
// Module ID: 6462
// Function ID: 6463
2026-07-29 08:29:29 +00:00
// Name: _isNativeReflectConstruct
2026-08-24 06:08:38 +00:00
// Dependencies: [41, 42, 93, 95, 98, 19, 6413, 6451]
2026-07-29 08:29:29 +00:00
2026-08-24 06:08:38 +00:00
// Module 6462 (_isNativeReflectConstruct)
import _inheritsDefault from "_inherits" /* 98 */;
import closure_2 from "_classCallCheck" /* 41 */;
import closure_3 from "_possibleConstructorReturn" /* 93 */;
import closure_4 from "_getPrototypeOf" /* 95 */;
import importDefaultResult from "_createClass" /* 42 */;
import importDefaultResult2 from "noop" /* 19 */;
import { Reanimated } from "module_6451" /* 6451 */;
2026-07-29 08:29:29 +00:00
2026-08-08 06:10:11 +00:00
const Wrap = 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);
}
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-08 06:10:11 +00:00
class Wrap {
2026-07-29 08:29:29 +00:00
constructor() {
self = this;
2026-08-24 06:08:38 +00:00
tmp = closure_2(this, Wrap);
tmp2 = closure_4;
obj = closure_4(Wrap);
tmp3 = closure_3;
2026-07-29 08:29:29 +00:00
if (_isNativeReflectConstruct()) {
2026-08-08 06:10:11 +00:00
tmp7 = globalThis;
2026-07-29 08:29:29 +00:00
_Reflect = Reflect;
2026-08-08 06:10:11 +00:00
tmp8 = arguments;
constructResult = Reflect.construct(obj, arguments, tmp2(self).constructor);
2026-07-29 08:29:29 +00:00
} else {
2026-08-08 06:10:11 +00:00
tmp4 = arguments;
tmp5 = arguments;
constructResult = obj(...arguments);
2026-07-29 08:29:29 +00:00
}
2026-08-08 06:10:11 +00:00
return tmp3(self, constructResult);
2026-07-29 08:29:29 +00:00
}
}
2026-08-24 06:08:38 +00:00
_inheritsDefault(Wrap, importDefaultResult2.Component);
2026-08-08 06:10:11 +00:00
const items = [
2026-07-29 08:29:29 +00:00
{
2026-08-08 06:10:11 +00:00
key: "render",
value: function render() {
try {
const self = this;
const Children = importDefaultResult2.Children;
const onlyResult = Children.only(this.props.children);
return importDefaultResult2.cloneElement(onlyResult, { collapsable: false }, onlyResult.props.children);
} catch (err) {
const _Error = Error;
2026-08-24 06:08:38 +00:00
error = new Error(Wrap(6413).tagMessage("GestureDetector got more than one view as a child. If you want the gesture to work on multiple views, wrap them with a common parent and attach the gesture to that view."));
2026-08-08 06:10:11 +00:00
throw error;
2026-07-29 08:29:29 +00:00
}
}
}
];
2026-08-08 06:10:11 +00:00
const importDefaultResultResult = importDefaultResult(Wrap, items);
let animatedComponent;
if (Reanimated != null) {
if (Reanimated.default != null) {
animatedComponent = _default.createAnimatedComponent(importDefaultResultResult);
}
}
if (animatedComponent == null) {
animatedComponent = importDefaultResultResult;
}
2026-07-29 08:29:29 +00:00
2026-08-08 06:10:11 +00:00
export const Wrap = importDefaultResultResult;
export const AnimatedWrap = animatedComponent;