decord/source/6652__isNativeReflectConstruct.js

112 lines
3.1 KiB
JavaScript
Raw Normal View History

2026-08-15 05:55:55 +00:00
// Module ID: 6652
// Function ID: 6653
2026-08-13 07:00:46 +00:00
// Name: _isNativeReflectConstruct
2026-08-15 05:55:55 +00:00
// Dependencies: [41, 42, 93, 95, 98, 19, 21, 6649, 6653, 6654, 6586, 6595]
2026-08-13 07:00:46 +00:00
2026-08-15 05:55:55 +00:00
// Module 6652 (_isNativeReflectConstruct)
2026-08-13 07:00:46 +00:00
import _classCallCheck from "_classCallCheck";
import _possibleConstructorReturn from "_possibleConstructorReturn";
import _getPrototypeOf from "_getPrototypeOf";
import importDefaultResult from "_createClass";
import "noop";
import { jsx } from "jsxProd";
2026-08-14 17:33:39 +00:00
const Mask = arg1;
2026-08-13 07:00:46 +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);
}
let closure_0 = !callResult;
function _isNativeReflectConstruct() {
return closure_0;
}
return _isNativeReflectConstruct();
} catch (err) {
}
}
2026-08-14 17:33:39 +00:00
class Mask {
2026-08-13 07:00:46 +00:00
constructor() {
self = this;
2026-08-14 17:33:39 +00:00
tmp = _isNativeReflectConstruct(this, Mask);
2026-08-13 07:00:46 +00:00
tmp2 = __esModule;
2026-08-14 17:33:39 +00:00
obj = __esModule(Mask);
2026-08-13 07:00:46 +00:00
tmp3 = __esModule;
if (_isNativeReflectConstruct()) {
2026-08-14 17:33:39 +00:00
tmp7 = globalThis;
2026-08-13 07:00:46 +00:00
_Reflect = Reflect;
2026-08-14 17:33:39 +00:00
tmp8 = arguments;
constructResult = Reflect.construct(obj, arguments, tmp2(self).constructor);
2026-08-13 07:00:46 +00:00
} else {
2026-08-14 17:33:39 +00:00
tmp4 = arguments;
tmp5 = arguments;
constructResult = obj(...arguments);
2026-08-13 07:00:46 +00:00
}
2026-08-14 17:33:39 +00:00
return tmp3(self, constructResult);
2026-08-13 07:00:46 +00:00
}
}
2026-08-14 17:33:39 +00:00
require("_inherits")(Mask, require("_isNativeReflectConstruct"));
const items = [
2026-08-13 07:00:46 +00:00
{
key: "render",
value: function render() {
2026-08-14 17:33:39 +00:00
let maskContentUnits;
let maskUnits;
let style;
2026-08-13 07:00:46 +00:00
const self = this;
const props = this.props;
2026-08-14 17:33:39 +00:00
({ maskUnits, maskContentUnits, style } = props);
let obj = { x: props.x, y: props.y, width: props.width, height: props.height, maskUnits: null, maskContentUnits: null, maskType: null };
2026-08-13 07:00:46 +00:00
let num = 0;
2026-08-14 17:33:39 +00:00
if (undefined !== maskUnits) {
2026-08-15 05:55:55 +00:00
num = importDefault(6649)[maskUnits];
2026-08-14 17:33:39 +00:00
}
obj[4] = num;
let num2 = 1;
if (undefined !== maskContentUnits) {
2026-08-15 05:55:55 +00:00
num2 = importDefault(6649)[maskContentUnits];
2026-08-13 07:00:46 +00:00
}
2026-08-14 17:33:39 +00:00
obj[5] = num2;
let str;
if (props != null) {
str = props.maskType;
2026-08-13 07:00:46 +00:00
}
2026-08-14 17:33:39 +00:00
if (!str) {
let maskType;
if (style != null) {
maskType = style.maskType;
}
str = maskType;
2026-08-13 07:00:46 +00:00
}
2026-08-14 17:33:39 +00:00
if (!str) {
str = "luminance";
2026-08-13 07:00:46 +00:00
}
2026-08-15 05:55:55 +00:00
obj[6] = self(6653).maskType[str];
2026-08-14 17:33:39 +00:00
obj = {
ref(arg0) {
return self.refMethod(arg0);
}
};
const tmp5 = self;
2026-08-15 05:55:55 +00:00
const tmp8 = importDefault(6654);
const merged = Object.assign(self(6586).withoutXY(this, props));
2026-08-14 17:33:39 +00:00
const merged1 = Object.assign(obj);
obj.children = props.children;
return <tmp8 ref={function ref(arg0) {
return self.refMethod(arg0);
}} />;
2026-08-13 07:00:46 +00:00
}
}
];
2026-08-14 17:33:39 +00:00
const importDefaultResultResult = importDefaultResult(Mask, items);
importDefaultResultResult.displayName = "Mask";
importDefaultResultResult.defaultProps = { x: "0%", y: "0%", width: "100%", height: "100%" };
2026-08-13 07:00:46 +00:00
export default importDefaultResultResult;