93 lines
2.8 KiB
JavaScript
93 lines
2.8 KiB
JavaScript
// Module ID: 6695
|
|
// Function ID: 6696
|
|
// Name: _isNativeReflectConstruct
|
|
// Dependencies: [41, 42, 93, 95, 98, 19, 21, 6696, 6691, 6631]
|
|
|
|
// Module 6695 (_isNativeReflectConstruct)
|
|
import noopAll from "noop" /* 19 */;
|
|
import _inheritsDefault from "_inherits" /* 98 */;
|
|
import _isNativeReflectConstructDefault from "_isNativeReflectConstruct" /* 6631 */;
|
|
import closure_2 from "_classCallCheck" /* 41 */;
|
|
import closure_3 from "_possibleConstructorReturn" /* 93 */;
|
|
import closure_4 from "_getPrototypeOf" /* 95 */;
|
|
import importDefaultResult from "_createClass" /* 42 */;
|
|
import { jsx } from "jsxProd" /* 21 */;
|
|
|
|
const Polygon = 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);
|
|
}
|
|
closure_0 = !callResult;
|
|
_isNativeReflectConstruct = function _isNativeReflectConstruct() {
|
|
return closure_0;
|
|
};
|
|
return _isNativeReflectConstruct();
|
|
} catch (err) {
|
|
}
|
|
}
|
|
noopAll;
|
|
class Polygon {
|
|
constructor() {
|
|
self = this;
|
|
items = [...arguments];
|
|
closure_0 = undefined;
|
|
tmp = closure_2(this, closure_0);
|
|
items1 = [...items];
|
|
tmp2 = closure_4;
|
|
obj = closure_4(closure_0);
|
|
tmp3 = closure_3;
|
|
if (_isNativeReflectConstruct()) {
|
|
tmp5 = globalThis;
|
|
_Reflect = Reflect;
|
|
constructResult = Reflect.construct(obj, items1, tmp2(self).constructor);
|
|
} else {
|
|
constructResult = obj.apply(self, items1);
|
|
}
|
|
tmp3Result = tmp3(self, constructResult);
|
|
closure_0 = tmp3Result;
|
|
tmp3Result.setNativeProps = (points) => {
|
|
points = points.points;
|
|
if (points) {
|
|
const _HermesInternal = HermesInternal;
|
|
points.d = "M" + lib(closure_1_1[7])(points) + "z";
|
|
}
|
|
if (lib.root) {
|
|
const root = lib.root;
|
|
root.setNativeProps(points);
|
|
}
|
|
};
|
|
return tmp3Result;
|
|
}
|
|
}
|
|
_inheritsDefault(Polygon, _isNativeReflectConstructDefault);
|
|
let items = [
|
|
{
|
|
key: "render",
|
|
value: function render() {
|
|
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" + Polygon(6696)(points) + "z";
|
|
}
|
|
obj[1] = combined;
|
|
const merged = Object.assign(props);
|
|
return jsx(Polygon(6691), { ref: this.refMethod, d: null });
|
|
}
|
|
}
|
|
];
|
|
const importDefaultResultResult = importDefaultResult(Polygon, items);
|
|
importDefaultResultResult.displayName = "Polygon";
|
|
importDefaultResultResult.defaultProps = { points: "" };
|
|
|
|
export default importDefaultResultResult;
|