decord/source/6611__isNativeReflectConstruct.js

221 lines
7.1 KiB
JavaScript
Raw Normal View History

2026-08-15 05:55:55 +00:00
// Module ID: 6611
// Function ID: 6612
2026-07-29 08:29:29 +00:00
// Name: _isNativeReflectConstruct
2026-08-24 06:08:38 +00:00
// Dependencies: [109, 41, 42, 93, 95, 98, 19, 17, 21, 6612, 6613, 6614, 6615, 6619, 6620, 6621, 6631]
2026-07-29 08:29:29 +00:00
2026-08-15 05:55:55 +00:00
// Module 6611 (_isNativeReflectConstruct)
2026-08-24 06:08:38 +00:00
import noopAll from "noop" /* 19 */;
import _inheritsDefault from "_inherits" /* 98 */;
import extractOpacityDefault from "extractOpacity" /* 6613 */;
import keysDefault from "keys" /* 6614 */;
import __INTERNAL_VIEW_CONFIGDefault from "__INTERNAL_VIEW_CONFIG" /* 6619 */;
import _isNativeReflectConstructDefault from "_isNativeReflectConstruct" /* 6621 */;
import _isNativeReflectConstructDefault2 from "_isNativeReflectConstruct" /* 6631 */;
import closure_4 from "_objectWithoutProperties" /* 109 */;
import closure_5 from "_classCallCheck" /* 41 */;
import closure_6 from "_possibleConstructorReturn" /* 93 */;
import closure_7 from "_getPrototypeOf" /* 95 */;
import importDefaultResult from "_createClass" /* 42 */;
import get_ActivityIndicator from "get ActivityIndicator" /* 17 */;
import { jsx } from "jsxProd" /* 21 */;
2026-07-29 08:29:29 +00:00
2026-08-24 06:08:38 +00:00
const Svg = 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-24 06:08:38 +00:00
let closure_3 = ["style", "opacity", "viewBox", "children", "onLayout", "preserveAspectRatio"];
noopAll;
({ findNodeHandle: closure_8, Platform, StyleSheet } = get_ActivityIndicator);
const svg = StyleSheet.create({ svg: { backgroundColor: "transparent", borderWidth: 0 } }).svg;
class Svg {
2026-07-29 08:29:29 +00:00
constructor() {
self = this;
2026-08-24 06:08:38 +00:00
items = [...arguments];
closure_0 = undefined;
tmp = closure_5(this, closure_0);
items1 = [...items];
tmp2 = closure_7;
obj = closure_7(closure_0);
tmp3 = closure_6;
2026-07-29 08:29:29 +00:00
if (_isNativeReflectConstruct()) {
2026-08-24 06:08:38 +00:00
tmp5 = globalThis;
2026-07-29 08:29:29 +00:00
_Reflect = Reflect;
2026-08-24 06:08:38 +00:00
constructResult = Reflect.construct(obj, items1, tmp2(self).constructor);
2026-07-29 08:29:29 +00:00
} else {
2026-08-24 06:08:38 +00:00
constructResult = obj.apply(self, items1);
2026-07-29 08:29:29 +00:00
}
2026-08-24 06:08:38 +00:00
tmp3Result = tmp3(self, constructResult);
closure_0 = tmp3Result;
tmp3Result.measureInWindow = (arg0) => {
const root = lib.root;
if (root) {
root.measureInWindow(arg0);
}
};
tmp3Result.measure = (arg0) => {
const root = lib.root;
if (root) {
root.measure(arg0);
}
};
tmp3Result.measureLayout = (arg0, arg1, arg2) => {
const root = lib.root;
if (root) {
root.measureLayout(arg0, arg1, arg2);
}
};
tmp3Result.setNativeProps = (arg0) => {
const root = lib.root;
if (root) {
root.setNativeProps(arg0);
}
};
tmp3Result.toDataURL = (arg0, arg1) => {
if (arg0) {
const tmp4 = closure_1_8(lib.root);
lib(closure_1_2[9]).default.toDataURL(tmp4, arg1, arg0);
const _default = lib(closure_1_2[9]).default;
}
};
return tmp3Result;
2026-07-29 08:29:29 +00:00
}
}
2026-08-24 06:08:38 +00:00
_inheritsDefault(Svg, _isNativeReflectConstructDefault2);
let items = [
{
key: "render",
value: function render() {
const self = this;
const props = this.props;
({ style, opacity } = props);
({ viewBox, children, onLayout, preserveAspectRatio } = props);
const tmp = callback(props, closure_3);
let applyResult = style;
if (Array.isArray(style)) {
const _Object = Object;
const items = [{}];
HermesBuiltin.arraySpread(style, 1);
const _Object2 = Object;
applyResult = HermesBuiltin.apply(items, Object);
2026-08-14 17:33:39 +00:00
}
2026-08-24 06:08:38 +00:00
let obj = {};
const merged = Object.assign(applyResult);
const merged1 = Object.assign(tmp);
({ width, height, focusable } = obj);
let tmp10 = undefined === width;
({ transform, font, fill, fillOpacity, fillRule, stroke, strokeWidth, strokeOpacity, strokeDasharray, strokeDashoffset, strokeLinecap, strokeLinejoin, strokeMiterlimit, position } = obj);
if (tmp10) {
tmp10 = undefined === height;
}
if (tmp10) {
tmp10 = "absolute" !== position;
}
if (tmp10) {
height = "100%";
width = "100%";
}
let BooleanResult = Boolean(focusable);
if (BooleanResult) {
BooleanResult = "false" !== focusable;
}
tmp.focusable = BooleanResult;
let items1 = [svg];
if (style) {
items1.push(style);
}
let num2 = NaN;
if (null != opacity) {
num2 = extractOpacityDefault(opacity);
}
obj = {};
let flag = false;
if (!isNaN(num2)) {
obj.opacity = num2;
flag = true;
}
let flag2 = flag;
if (width) {
flag2 = flag;
if (height) {
const _parseInt = parseInt;
let parsed = parseInt(width, 10);
const _parseInt2 = parseInt;
let parsed1 = parseInt(height, 10);
const _isNaN = isNaN;
let isNaNResult = isNaN(parsed);
if (!isNaNResult) {
isNaNResult = "%" === width[width.length - 1];
}
const _isNaN2 = isNaN;
let isNaNResult1 = isNaN(parsed1);
if (!isNaNResult1) {
isNaNResult1 = "%" === height[height.length - 1];
}
if (isNaNResult) {
parsed = width;
}
obj.width = parsed;
if (isNaNResult1) {
parsed1 = height;
}
obj.height = parsed1;
obj.flex = 0;
flag2 = true;
}
}
if (flag2) {
items1.push(obj);
}
if (items1.length <= 1) {
items1 = svg;
}
tmp.style = items1;
if (null != width) {
tmp.bbWidth = width;
}
if (null != height) {
tmp.bbHeight = height;
}
keysDefault(tmp, tmp, this);
const merged2 = Object.assign({}, StyleSheet.flatten(style));
if (transform) {
if (merged2.transform) {
tmp.transform = merged2.transform;
merged2.transform = undefined;
}
tmp.transform = self(6615).extractTransformSvgView(tmp);
const obj3 = self(6615);
}
obj = {};
const merged3 = Object.assign(tmp);
obj.ref = function ref(arg0) {
return self.refMethod(arg0);
};
const merged4 = Object.assign(tmp21(6620)({ viewBox, preserveAspectRatio }));
obj.children = jsx(_isNativeReflectConstructDefault, { children, style: merged2, font, fill, fillOpacity, fillRule, stroke, strokeWidth, strokeOpacity, strokeDasharray, strokeDashoffset, strokeLinecap, strokeLinejoin, strokeMiterlimit, onLayout });
return jsx(__INTERNAL_VIEW_CONFIGDefault, {});
}
2026-07-29 08:29:29 +00:00
}
2026-08-24 06:08:38 +00:00
];
const importDefaultResultResult = importDefaultResult(Svg, items);
importDefaultResultResult.displayName = "Svg";
importDefaultResultResult.defaultProps = { preserveAspectRatio: "xMidYMid meet" };
2026-07-29 08:29:29 +00:00
export default importDefaultResultResult;