decord/source/8056__isNativeReflectConstruct.js

113 lines
3.6 KiB
JavaScript
Raw Normal View History

2026-08-25 06:04:03 +00:00
// Module ID: 8056
// Function ID: 8057
2026-08-14 17:33:39 +00:00
// Name: _isNativeReflectConstruct
2026-08-25 06:04:03 +00:00
// Dependencies: [41, 42, 93, 95, 98, 19, 17, 21, 7998, 8057, 8000, 8009]
2026-08-14 17:33:39 +00:00
2026-08-25 06:04:03 +00:00
// Module 8056 (_isNativeReflectConstruct)
2026-08-24 06:08:38 +00:00
import noopAll from "noop" /* 19 */;
import _inheritsDefault from "_inherits" /* 98 */;
2026-08-25 06:04:03 +00:00
import _isNativeReflectConstructDefault from "_isNativeReflectConstruct" /* 8009 */;
import __INTERNAL_VIEW_CONFIGDefault from "__INTERNAL_VIEW_CONFIG" /* 8057 */;
2026-08-24 06:08:38 +00:00
import closure_3 from "_classCallCheck" /* 41 */;
import closure_4 from "_possibleConstructorReturn" /* 93 */;
import closure_5 from "_getPrototypeOf" /* 95 */;
import importDefaultResult from "_createClass" /* 42 */;
import { Image } from "get ActivityIndicator" /* 17 */;
import { jsx } from "jsxProd" /* 21 */;
2026-08-14 17:33:39 +00:00
2026-08-24 06:08:38 +00:00
const SvgImage = arg1;
2026-08-14 17:33:39 +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-08-14 17:33:39 +00:00
return closure_0;
2026-08-24 06:08:38 +00:00
};
2026-08-14 17:33:39 +00:00
return _isNativeReflectConstruct();
} catch (err) {
}
}
2026-08-24 06:08:38 +00:00
noopAll;
const re9 = /\s+/;
class SvgImage {
2026-08-14 17:33:39 +00:00
constructor() {
self = this;
2026-08-24 06:08:38 +00:00
tmp = closure_3(this, SvgImage);
tmp2 = closure_5;
obj = closure_5(SvgImage);
tmp3 = closure_4;
2026-08-14 17:33:39 +00:00
if (_isNativeReflectConstruct()) {
2026-08-24 06:08:38 +00:00
tmp7 = globalThis;
2026-08-14 17:33:39 +00:00
_Reflect = Reflect;
2026-08-24 06:08:38 +00:00
tmp8 = arguments;
constructResult = Reflect.construct(obj, arguments, tmp2(self).constructor);
2026-08-14 17:33:39 +00:00
} else {
2026-08-24 06:08:38 +00:00
tmp4 = arguments;
tmp5 = arguments;
constructResult = obj(...arguments);
2026-08-14 17:33:39 +00:00
}
2026-08-24 06:08:38 +00:00
return tmp3(self, constructResult);
2026-08-14 17:33:39 +00:00
}
}
2026-08-24 06:08:38 +00:00
_inheritsDefault(SvgImage, _isNativeReflectConstructDefault);
const items = [
2026-08-14 17:33:39 +00:00
{
key: "render",
value: function render() {
const self = this;
2026-08-24 06:08:38 +00:00
const props = this.props;
({ preserveAspectRatio, href } = props);
({ x, y, width, height } = props);
if (undefined === href) {
href = props.xlinkHref;
}
if (preserveAspectRatio) {
let parts = preserveAspectRatio.trim().split(closure_9);
const str = preserveAspectRatio.trim();
2026-08-14 17:33:39 +00:00
} else {
2026-08-24 06:08:38 +00:00
parts = [];
}
2026-08-25 06:04:03 +00:00
let obj = { x, y, width, height, onLoad: props.onLoad, meetOrSlice: self(7998).meetOrSliceTypes[tmp3] || 0, align: null, src: null };
2026-08-24 06:08:38 +00:00
[tmp2, tmp3] = parts;
2026-08-25 06:04:03 +00:00
const tmp6 = self(7998).meetOrSliceTypes[tmp3] || 0;
obj[6] = self(7998).alignEnum[tmp2] || "xMidYMid";
2026-08-24 06:08:38 +00:00
let assetSource = null;
if (href) {
let tmp10 = href;
if (typeof href === "string") {
obj = { uri: null };
obj[0] = href;
tmp10 = obj;
}
assetSource = Image.resolveAssetSource(tmp10);
}
obj[7] = assetSource;
obj = {
ref(arg0) {
return self.refMethod(arg0);
}
};
2026-08-25 06:04:03 +00:00
const tmp7 = self(7998).alignEnum[tmp2] || "xMidYMid";
2026-08-24 06:08:38 +00:00
const tmp11 = __INTERNAL_VIEW_CONFIGDefault;
2026-08-25 06:04:03 +00:00
const merged = Object.assign(self(8000).withoutXY(this, props));
2026-08-24 06:08:38 +00:00
const merged1 = Object.assign(obj);
return <tmp11 ref={function ref(arg0) {
return self.refMethod(arg0);
}} />;
2026-08-14 17:33:39 +00:00
}
}
2026-08-24 06:08:38 +00:00
];
const importDefaultResultResult = importDefaultResult(SvgImage, items);
importDefaultResultResult.displayName = "Image";
importDefaultResultResult.defaultProps = { x: 0, y: 0, width: 0, height: 0, preserveAspectRatio: "xMidYMid meet" };
2026-08-14 17:33:39 +00:00
2026-08-24 06:08:38 +00:00
export default importDefaultResultResult;