decord/source/338__isNativeReflectConstruct.js
2026-07-29 08:29:29 +00:00

118 lines
3.5 KiB
JavaScript

// Module ID: 338
// Function ID: 339
// Name: _isNativeReflectConstruct
// Dependencies: [109, 41, 42, 93, 95, 98, 19, 21, 148, 108, 328, 254]
// Module 338 (_isNativeReflectConstruct)
import _objectWithoutProperties from "_objectWithoutProperties";
import _classCallCheck from "_classCallCheck";
import _possibleConstructorReturn from "_possibleConstructorReturn";
import _getPrototypeOf from "_getPrototypeOf";
import importDefaultResult from "_createClass";
import importDefaultResult1 from "_inherits";
import jsxProd from "jsxProd";
let error;
let metroImportAll;
const ImageBackground = importDefault;
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) {
}
}
let closure_2 = ["children", "style", "imageStyle", "imageRef", "importantForAccessibility"];
({ jsx: error, jsxs: metroImportAll } = jsxProd);
class ImageBackground {
constructor() {
self = this;
items = [...arguments];
apply = undefined;
tmp = _isNativeReflectConstruct(this, apply);
items1 = [...items];
tmp2 = _isNativeReflectConstruct;
obj = _isNativeReflectConstruct(apply);
tmp3 = _isNativeReflectConstruct;
if (_isNativeReflectConstruct()) {
tmp5 = globalThis;
_Reflect = Reflect;
constructResult = Reflect.construct(obj, items1, tmp2(self).constructor);
} else {
constructResult = obj.apply(self, items1);
}
tmp3Result = tmp3(self, constructResult);
apply = tmp3Result;
tmp3Result._viewRef = null;
tmp3Result._captureRef = (_viewRef) => {
c0._viewRef = _viewRef;
};
return tmp3Result;
}
}
importDefaultResult1(ImageBackground, require("noop").Component);
let items = [
{
key: "setNativeProps",
value: function setNativeProps(arg0) {
const _viewRef = this._viewRef;
if (_viewRef) {
_viewRef.setNativeProps(arg0);
}
}
},
{
key: "render",
value: function render() {
let children;
let imageRef;
let imageStyle;
let importantForAccessibility;
let style;
const props = this.props;
({ style, importantForAccessibility } = props);
({ children, imageStyle, imageRef } = props);
const size = ImageBackground(148)(style);
let obj = { accessibilityIgnoresInvertColors: true, importantForAccessibility, style, ref: this._captureRef, children: null };
const tmp = callback(props, closure_2);
const tmp2 = closure_8;
obj = {};
const tmp3 = ImageBackground(108);
const tmp4 = closure_7;
const merged = Object.assign(tmp);
obj.importantForAccessibility = importantForAccessibility;
const items = [ImageBackground(254).absoluteFill, , ];
let width;
if (size != null) {
width = size.width;
}
obj = { width, height: null };
let height;
if (size != null) {
height = size.height;
}
obj[1] = height;
items[1] = obj;
items[2] = imageStyle;
obj.style = items;
obj.ref = imageRef;
const items1 = [tmp4(ImageBackground(328), obj), children];
obj[4] = items1;
return tmp2(tmp3, obj);
}
}
];
export default importDefaultResult(ImageBackground, items);