111 lines
3.1 KiB
JavaScript
111 lines
3.1 KiB
JavaScript
// Module ID: 7856
|
|
// Function ID: 7857
|
|
// Name: _isNativeReflectConstruct
|
|
// Dependencies: [41, 42, 93, 95, 98, 19, 21, 7853, 7857, 7858, 7790, 7799]
|
|
|
|
// Module 7856 (_isNativeReflectConstruct)
|
|
import _classCallCheck from "_classCallCheck";
|
|
import _possibleConstructorReturn from "_possibleConstructorReturn";
|
|
import _getPrototypeOf from "_getPrototypeOf";
|
|
import importDefaultResult from "_createClass";
|
|
import "noop";
|
|
import { jsx } from "jsxProd";
|
|
|
|
const Mask = arg1;
|
|
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) {
|
|
}
|
|
}
|
|
class Mask {
|
|
constructor() {
|
|
self = this;
|
|
tmp = _isNativeReflectConstruct(this, Mask);
|
|
tmp2 = __esModule;
|
|
obj = __esModule(Mask);
|
|
tmp3 = __esModule;
|
|
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);
|
|
}
|
|
}
|
|
require("_inherits")(Mask, require("_isNativeReflectConstruct"));
|
|
const items = [
|
|
{
|
|
key: "render",
|
|
value: function render() {
|
|
let maskContentUnits;
|
|
let maskUnits;
|
|
let style;
|
|
const self = this;
|
|
const props = this.props;
|
|
({ maskUnits, maskContentUnits, style } = props);
|
|
let obj = { x: props.x, y: props.y, width: props.width, height: props.height, maskUnits: null, maskContentUnits: null, maskType: null };
|
|
let num = 0;
|
|
if (undefined !== maskUnits) {
|
|
num = importDefault(7853)[maskUnits];
|
|
}
|
|
obj[4] = num;
|
|
let num2 = 1;
|
|
if (undefined !== maskContentUnits) {
|
|
num2 = importDefault(7853)[maskContentUnits];
|
|
}
|
|
obj[5] = num2;
|
|
let str;
|
|
if (props != null) {
|
|
str = props.maskType;
|
|
}
|
|
if (!str) {
|
|
let maskType;
|
|
if (style != null) {
|
|
maskType = style.maskType;
|
|
}
|
|
str = maskType;
|
|
}
|
|
if (!str) {
|
|
str = "luminance";
|
|
}
|
|
obj[6] = self(7857).maskType[str];
|
|
obj = {
|
|
ref(arg0) {
|
|
return self.refMethod(arg0);
|
|
}
|
|
};
|
|
const tmp5 = self;
|
|
const tmp8 = importDefault(7858);
|
|
const merged = Object.assign(self(7790).withoutXY(this, props));
|
|
const merged1 = Object.assign(obj);
|
|
obj.children = props.children;
|
|
return <tmp8 ref={function ref(arg0) {
|
|
return self.refMethod(arg0);
|
|
}} />;
|
|
}
|
|
}
|
|
];
|
|
const importDefaultResultResult = importDefaultResult(Mask, items);
|
|
importDefaultResultResult.displayName = "Mask";
|
|
importDefaultResultResult.defaultProps = { x: "0%", y: "0%", width: "100%", height: "100%" };
|
|
|
|
export default importDefaultResultResult;
|