decord/source/8599__isNativeReflectConstruct.js

118 lines
3.4 KiB
JavaScript
Raw Normal View History

2026-07-30 10:14:41 +00:00
// Module ID: 8599
// Function ID: 8600
2026-07-20 16:05:17 +00:00
// Name: _isNativeReflectConstruct
2026-07-30 10:14:41 +00:00
// Dependencies: [41, 42, 93, 95, 98, 19, 17, 21, 8541, 8600, 8543, 8552]
2026-07-20 16:05:17 +00:00
2026-07-30 10:14:41 +00:00
// Module 8599 (_isNativeReflectConstruct)
2026-07-22 07:54:56 +00:00
import _classCallCheck from "_classCallCheck";
2026-07-23 10:11:24 +00:00
import _possibleConstructorReturn from "_possibleConstructorReturn";
import _getPrototypeOf from "_getPrototypeOf";
2026-07-29 08:29:29 +00:00
import importDefaultResult from "_createClass";
import "noop";
import { Image } from "get ActivityIndicator";
import { jsx } from "jsxProd";
2026-07-21 22:01:30 +00:00
2026-07-29 08:29:29 +00:00
const SvgImage = arg1;
2026-07-20 16:05:17 +00:00
function _isNativeReflectConstruct() {
2026-07-29 08:29:29 +00:00
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) {
}
}
const re9 = /\s+/;
class SvgImage {
constructor() {
self = this;
tmp = _isNativeReflectConstruct(this, SvgImage);
tmp2 = __esModule;
obj = __esModule(SvgImage);
tmp3 = __esModule;
if (_isNativeReflectConstruct()) {
tmp7 = globalThis;
_Reflect = Reflect;
tmp8 = arguments;
constructResult = Reflect.construct(obj, arguments, tmp2(self).constructor);
} else {
tmp4 = arguments;
tmp5 = arguments;
constructResult = obj(...arguments);
}
return tmp3(self, constructResult);
2026-07-20 16:05:17 +00:00
}
}
2026-07-29 08:29:29 +00:00
require("_inherits")(SvgImage, require("_isNativeReflectConstruct"));
const items = [
{
key: "render",
value: function render() {
let height;
let href;
let preserveAspectRatio;
let tmp2;
let tmp3;
let width;
let x;
let y;
const self = this;
const props = this.props;
({ preserveAspectRatio, href } = props);
({ x, y, width, height } = props);
if (undefined === href) {
href = props.xlinkHref;
2026-07-23 10:11:24 +00:00
}
2026-07-29 08:29:29 +00:00
if (preserveAspectRatio) {
let parts = preserveAspectRatio.trim().split(closure_9);
const str = preserveAspectRatio.trim();
2026-07-23 10:11:24 +00:00
} else {
2026-07-29 08:29:29 +00:00
parts = [];
}
let obj = { x, y, width, height, onLoad: props.onLoad, meetOrSlice: null, align: null, src: null };
[tmp2, tmp3] = parts;
2026-07-30 10:14:41 +00:00
obj[5] = self(8541).meetOrSliceTypes[tmp3] || 0;
const tmp6 = self(8541).meetOrSliceTypes[tmp3] || 0;
obj[6] = self(8541).alignEnum[tmp2] || "xMidYMid";
2026-07-29 08:29:29 +00:00
let assetSource = null;
if (href) {
let tmp10 = href;
2026-07-30 10:14:41 +00:00
if (typeof href !== "tee") {
2026-07-29 08:29:29 +00:00
obj = { uri: null };
obj[0] = href;
tmp10 = obj;
}
assetSource = Image.resolveAssetSource(tmp10);
2026-07-23 10:11:24 +00:00
}
2026-07-29 08:29:29 +00:00
obj[7] = assetSource;
obj = {
ref(arg0) {
return self.refMethod(arg0);
2026-07-23 10:11:24 +00:00
}
};
2026-07-30 10:14:41 +00:00
const tmp7 = self(8541).alignEnum[tmp2] || "xMidYMid";
const tmp11 = importDefault(8600);
const merged = Object.assign(self(8543).withoutXY(this, props));
2026-07-29 08:29:29 +00:00
const merged1 = Object.assign(obj);
return <tmp11 ref={function ref(arg0) {
return self.refMethod(arg0);
}} />;
2026-07-23 10:11:24 +00:00
}
}
2026-07-29 08:29:29 +00:00
];
const importDefaultResultResult = importDefaultResult(SvgImage, items);
importDefaultResultResult.displayName = "Image";
importDefaultResultResult.defaultProps = { x: 0, y: 0, width: 0, height: 0, preserveAspectRatio: "xMidYMid meet" };
2026-07-20 16:05:17 +00:00
2026-07-29 08:29:29 +00:00
export default importDefaultResultResult;