decord/source/8499__isNativeReflectConstruct.js

91 lines
2.6 KiB
JavaScript
Raw Normal View History

2026-08-04 08:36:32 +00:00
// Module ID: 8499
// Function ID: 8500
2026-07-20 16:05:17 +00:00
// Name: _isNativeReflectConstruct
2026-08-05 07:35:12 +00:00
// Dependencies: [41, 42, 93, 95, 98, 19, 21, 8498, 8493, 8433]
2026-07-20 16:05:17 +00:00
2026-08-04 08:36:32 +00:00
// Module 8499 (_isNativeReflectConstruct)
2026-07-29 08:29:29 +00:00
import _classCallCheck from "_classCallCheck";
2026-07-21 06:55:02 +00:00
import _possibleConstructorReturn from "_possibleConstructorReturn";
import _getPrototypeOf from "_getPrototypeOf";
2026-07-29 08:29:29 +00:00
import importDefaultResult from "_createClass";
2026-08-05 07:35:12 +00:00
import "noop";
import { jsx } from "jsxProd";
2026-07-21 06:55:02 +00:00
2026-08-05 07:35:12 +00:00
const Polyline = importDefault;
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) {
}
}
2026-08-05 07:35:12 +00:00
class Polyline {
2026-07-29 08:29:29 +00:00
constructor() {
self = this;
2026-08-05 07:35:12 +00:00
items = [...arguments];
apply = undefined;
tmp = _isNativeReflectConstruct(this, apply);
items1 = [...items];
2026-07-29 08:29:29 +00:00
tmp2 = __esModule;
2026-08-05 07:35:12 +00:00
obj = __esModule(apply);
2026-07-29 08:29:29 +00:00
tmp3 = __esModule;
if (_isNativeReflectConstruct()) {
2026-08-05 07:35:12 +00:00
tmp5 = globalThis;
2026-07-29 08:29:29 +00:00
_Reflect = Reflect;
2026-08-05 07:35:12 +00:00
constructResult = Reflect.construct(obj, items1, tmp2(self).constructor);
2026-07-29 08:29:29 +00:00
} else {
2026-08-05 07:35:12 +00:00
constructResult = obj.apply(self, items1);
2026-07-29 08:29:29 +00:00
}
2026-08-05 07:35:12 +00:00
tmp3Result = tmp3(self, constructResult);
apply = tmp3Result;
tmp3Result.setNativeProps = (points) => {
points = points.points;
if (points) {
const _HermesInternal = HermesInternal;
points.d = "M" + _undefined(outer1_1[7])(points);
}
if (_undefined.root) {
const root = _undefined.root;
root.setNativeProps(points);
}
};
return tmp3Result;
2026-07-20 16:05:17 +00:00
}
}
2026-08-05 07:35:12 +00:00
require("_inherits")(Polyline, require("_isNativeReflectConstruct"));
let items = [
2026-07-29 08:29:29 +00:00
{
key: "render",
value: function render() {
2026-08-05 07:35:12 +00:00
const props = this.props;
const points = props.points;
const obj = { ref: this.refMethod, d: null };
let combined = points;
if (points) {
const _HermesInternal = HermesInternal;
combined = "M" + Polyline(8498)(points);
}
obj[1] = combined;
const merged = Object.assign(props);
return jsx(Polyline(8493), { ref: this.refMethod, d: null });
2026-07-29 08:29:29 +00:00
}
}
];
2026-08-05 07:35:12 +00:00
const importDefaultResultResult = importDefaultResult(Polyline, items);
importDefaultResultResult.displayName = "Polyline";
importDefaultResultResult.defaultProps = { points: "" };
2026-07-20 16:05:17 +00:00
2026-07-29 08:29:29 +00:00
export default importDefaultResultResult;