decord/source/6686__isNativeReflectConstruct.js
2026-08-24 06:08:38 +00:00

86 lines
2.7 KiB
JavaScript

// Module ID: 6686
// Function ID: 6687
// Name: _isNativeReflectConstruct
// Dependencies: [41, 42, 93, 95, 98, 19, 21, 6687, 6620, 6631]
// Module 6686 (_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 Marker = 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 Marker {
constructor() {
self = this;
tmp = closure_2(this, Marker);
tmp2 = closure_4;
obj = closure_4(Marker);
tmp3 = closure_3;
if (_isNativeReflectConstruct()) {
tmp7 = globalThis;
_Reflect = Reflect;
tmp8 = arguments;
constructResult = Reflect.construct(obj, arguments, tmp2(self).constructor);
} else {
tmp4 = arguments;
tmp5 = arguments;
constructResult = obj(...arguments);
}
return tmp3(self, constructResult);
}
}
_inheritsDefault(Marker, _isNativeReflectConstructDefault);
const items = [
{
key: "render",
value: function render() {
const self = this;
const props = this.props;
let obj = { name: props.id, refX: props.refX, refY: props.refY, markerUnits: props.markerUnits, orient: String(props.orient), markerWidth, markerHeight };
({ viewBox, preserveAspectRatio, markerWidth, markerHeight, children } = props);
obj = {
ref(arg0) {
return self.refMethod(arg0);
}
};
const merged = Object.assign(obj);
const merged1 = Object.assign(self(6620)({ viewBox, preserveAspectRatio }));
obj.children = children;
return jsx(self(6687), {
ref(arg0) {
return self.refMethod(arg0);
}
});
}
}
];
const importDefaultResultResult = importDefaultResult(Marker, items);
importDefaultResultResult.displayName = "Marker";
importDefaultResultResult.defaultProps = { refX: 0, refY: 0, orient: "0", markerWidth: 3, markerHeight: 3, markerUnits: "strokeWidth" };
export default importDefaultResultResult;