decord/source/8495__isNativeReflectConstruct.js

118 lines
3.3 KiB
JavaScript
Raw Normal View History

2026-08-04 08:36:32 +00:00
// Module ID: 8495
// Function ID: 8496
2026-07-20 16:05:17 +00:00
// Name: _isNativeReflectConstruct
2026-08-05 07:35:12 +00:00
// Dependencies: [41, 42, 93, 95, 98, 19, 21, 8417, 8487, 8496, 8422, 8433]
2026-07-20 16:05:17 +00:00
2026-08-04 08:36:32 +00:00
// Module 8495 (_isNativeReflectConstruct)
2026-08-05 07:35:12 +00:00
import _classCallCheck from "_classCallCheck";
2026-07-23 10:11:24 +00:00
import _possibleConstructorReturn from "_possibleConstructorReturn";
import _getPrototypeOf from "_getPrototypeOf";
2026-07-29 08:29:29 +00:00
import importDefaultResult from "_createClass";
2026-08-05 07:35:12 +00:00
import "noop";
import { jsx } from "jsxProd";
2026-07-21 22:01:30 +00:00
2026-08-05 07:35:12 +00:00
const Pattern = importDefault;
2026-07-20 16:05:17 +00:00
function _isNativeReflectConstruct() {
2026-07-29 08:29:29 +00:00
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-05 07:35:12 +00:00
class Pattern {
2026-07-29 08:29:29 +00:00
constructor() {
self = this;
2026-08-05 07:35:12 +00:00
tmp = _isNativeReflectConstruct(this, Pattern);
2026-07-29 08:29:29 +00:00
tmp2 = __esModule;
2026-08-05 07:35:12 +00:00
obj = __esModule(Pattern);
2026-07-29 08:29:29 +00:00
tmp3 = __esModule;
if (_isNativeReflectConstruct()) {
2026-08-05 07:35:12 +00:00
tmp7 = globalThis;
2026-07-29 08:29:29 +00:00
_Reflect = Reflect;
2026-08-05 07:35:12 +00:00
tmp8 = arguments;
constructResult = Reflect.construct(obj, arguments, tmp2(self).constructor);
2026-07-29 08:29:29 +00:00
} else {
2026-08-05 07:35:12 +00:00
tmp4 = arguments;
tmp5 = arguments;
constructResult = obj(...arguments);
2026-07-29 08:29:29 +00:00
}
2026-08-05 07:35:12 +00:00
return tmp3(self, constructResult);
2026-07-20 16:05:17 +00:00
}
}
2026-08-05 07:35:12 +00:00
require("_inherits")(Pattern, require("_isNativeReflectConstruct"));
const items = [
2026-07-29 08:29:29 +00:00
{
key: "render",
value: function render() {
2026-08-05 07:35:12 +00:00
let children;
let height;
let id;
let patternContentUnits;
let patternTransform;
let patternUnits;
let preserveAspectRatio;
let transform;
let viewBox;
let width;
let x;
let y;
const self = this;
const props = this.props;
({ patternTransform, patternUnits, patternContentUnits } = props);
({ transform, id, x, y, width, height, children, viewBox, preserveAspectRatio } = props);
if (!patternTransform) {
patternTransform = transform;
}
if (!patternTransform) {
patternTransform = props;
}
const tmp3Result = self(8417)(patternTransform);
let obj = { x, y, width, height, name: id, matrix: tmp3Result, patternTransform: tmp3Result, patternUnits: null, patternContentUnits: null };
let num = patternUnits;
if (patternUnits) {
num = tmp(8487)[patternUnits];
}
if (!num) {
num = 0;
}
obj[7] = num;
let num2 = 1;
if (patternContentUnits) {
num2 = tmp(8487)[patternContentUnits];
}
obj[8] = num2;
obj = {
ref(arg0) {
return self.refMethod(arg0);
}
};
const tmp3 = self(8417);
const merged = Object.assign(obj);
const merged1 = Object.assign(tmp(8422)({ viewBox, preserveAspectRatio }));
obj.children = children;
return jsx(self(8496), {
ref(arg0) {
return self.refMethod(arg0);
}
});
2026-07-23 10:11:24 +00:00
}
}
2026-07-29 08:29:29 +00:00
];
2026-08-05 07:35:12 +00:00
const importDefaultResultResult = importDefaultResult(Pattern, items);
importDefaultResultResult.displayName = "Pattern";
importDefaultResultResult.defaultProps = { x: "0%", y: "0%", width: "100%", height: "100%" };
2026-07-20 16:05:17 +00:00
2026-07-29 08:29:29 +00:00
export default importDefaultResultResult;