Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4759.js (118.4 MB)
90 lines
2.6 KiB
JavaScript
90 lines
2.6 KiB
JavaScript
// Module ID: 8574
|
|
// Function ID: 8575
|
|
// Dependencies: [41, 42, 93, 95, 98, 19, 21, 8573, 8568, 8508]
|
|
|
|
// Module 8574
|
|
import _modDef8508 from "module_8508" /* 8508 */;
|
|
import _classCallCheck from "_classCallCheck" /* 41 */;
|
|
import _createClass from "_createClass" /* 42 */;
|
|
import c3 from "_possibleConstructorReturn" /* 93 */;
|
|
import _getPrototypeOf from "_getPrototypeOf" /* 95 */;
|
|
import _inherits from "_inherits" /* 98 */;
|
|
import noop from "module_19" /* 19 */;
|
|
|
|
const Polyline = 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) {
|
|
}
|
|
}
|
|
const jsx = fn(21).jsx;
|
|
class Polyline {
|
|
constructor() {
|
|
self = this;
|
|
items = [...arguments];
|
|
closure_0 = undefined;
|
|
tmp = c2(this, Polyline);
|
|
items1 = [...items];
|
|
tmp2 = closure_4;
|
|
obj = closure_4(Polyline);
|
|
tmp3 = closure_3;
|
|
if (metroRequire()) {
|
|
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" + Polyline(8573)(points);
|
|
}
|
|
if (closure_0.root) {
|
|
const root = closure_0.root;
|
|
root.setNativeProps(points);
|
|
}
|
|
};
|
|
return tmp3Result;
|
|
}
|
|
}
|
|
_inherits(Polyline, _modDef8508);
|
|
const entry = {
|
|
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" + Polyline(8573)(points);
|
|
}
|
|
obj.d = combined;
|
|
const merged = Object.assign(props);
|
|
return jsx(Polyline(8568), { ref: this.refMethod, d: null });
|
|
}
|
|
};
|
|
let items = [entry];
|
|
const importDefaultResultResult = _createClass(Polyline, items);
|
|
importDefaultResultResult.displayName = "Polyline";
|
|
importDefaultResultResult.defaultProps = { points: "" };
|
|
|
|
export default importDefaultResultResult;
|