decord/source/8511__isNativeReflectConstruct.js

140 lines
4.3 KiB
JavaScript
Raw Normal View History

2026-08-05 07:35:12 +00:00
// Module ID: 8511
// Function ID: 8512
2026-07-29 08:29:29 +00:00
// Name: _isNativeReflectConstruct
2026-08-05 07:35:12 +00:00
// Dependencies: [109, 41, 42, 93, 95, 98, 19, 21, 8417, 8425, 8431, 8424, 8512, 8508, 8433]
2026-07-29 08:29:29 +00:00
2026-08-05 07:35:12 +00:00
// Module 8511 (_isNativeReflectConstruct)
2026-07-30 10:14:41 +00:00
import _objectWithoutProperties from "_objectWithoutProperties";
2026-07-29 08:29:29 +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-07-30 10:14:41 +00:00
const TextPath = arg1;
2026-07-29 08:29:29 +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-07-30 10:14:41 +00:00
let closure_3 = ["children", "xlinkHref", "href", "startOffset", "method", "spacing", "side", "alignmentBaseline", "midLine"];
class TextPath {
2026-07-29 08:29:29 +00:00
constructor() {
self = this;
items = [...arguments];
apply = undefined;
tmp = _isNativeReflectConstruct(this, apply);
items1 = [...items];
2026-07-30 10:14:41 +00:00
tmp2 = __esModule;
obj = __esModule(apply);
tmp3 = __esModule;
2026-07-29 08:29:29 +00:00
if (_isNativeReflectConstruct()) {
tmp5 = globalThis;
_Reflect = Reflect;
constructResult = Reflect.construct(obj, items1, tmp2(self).constructor);
} else {
constructResult = obj.apply(self, items1);
}
tmp3Result = tmp3(self, constructResult);
apply = tmp3Result;
tmp3Result.setNativeProps = (matrix) => {
matrix = matrix.matrix;
let tmp = !matrix;
if (!matrix) {
2026-07-30 10:14:41 +00:00
tmp = outer1_1(outer1_2[8])(matrix);
2026-07-29 08:29:29 +00:00
}
if (tmp) {
matrix.matrix = tmp;
}
2026-07-30 10:14:41 +00:00
const merged = Object.assign(matrix, _undefined(outer1_2[9]).pickNotNil(outer1_1(outer1_2[10])(matrix, true)));
2026-07-29 08:29:29 +00:00
if (_undefined.root) {
const root = _undefined.root;
2026-07-30 10:14:41 +00:00
root.setNativeProps(matrix);
2026-07-29 08:29:29 +00:00
}
};
return tmp3Result;
}
}
2026-07-30 10:14:41 +00:00
require("_inherits")(TextPath, require("_isNativeReflectConstruct"));
2026-07-29 08:29:29 +00:00
let items = [
{
key: "render",
value: function render() {
2026-07-30 10:14:41 +00:00
let alignmentBaseline;
let children;
let href;
let method;
let midLine;
let side;
let spacing;
const self = this;
const props = this.props;
({ children, href } = props);
if (undefined === href) {
href = props.xlinkHref;
}
const startOffset = props.startOffset;
let num = 0;
if (undefined !== startOffset) {
num = startOffset;
}
({ method, spacing, side, alignmentBaseline, midLine } = props);
let match = href;
if (href) {
2026-08-05 07:35:12 +00:00
match = href.match(TextPath(8425).idPattern);
2026-07-30 10:14:41 +00:00
}
let tmp5 = match;
if (match) {
tmp5 = match[1];
}
if (tmp5) {
2026-08-05 07:35:12 +00:00
let obj1 = TextPath(8424);
2026-07-30 10:14:41 +00:00
const withoutXYResult = obj1.withoutXY(self, tmp);
const _Object = Object;
let obj = { children: null };
obj[0] = children;
obj = { href: null, startOffset: null, method: null, spacing: null, side: null, alignmentBaseline: null, midLine: null };
obj[0] = tmp5;
obj[1] = num;
obj[2] = method;
obj[3] = spacing;
obj[4] = side;
obj[5] = alignmentBaseline;
obj[6] = midLine;
2026-08-05 07:35:12 +00:00
const merged = Object.assign(withoutXYResult, importDefault(8431)(obj, true), obj);
2026-07-30 10:14:41 +00:00
withoutXYResult.ref = self.refMethod;
obj1 = {};
const merged1 = Object.assign(withoutXYResult);
2026-08-05 07:35:12 +00:00
return jsx(importDefault(8512), {});
2026-07-30 10:14:41 +00:00
} else {
const _console = console;
console.warn(`Invalid \`href\` prop for \`TextPath\` element, expected a href like "#id", but got: "${href}"`);
obj = { ref: null, children: null };
obj[0] = self.refMethod;
obj[1] = children;
2026-08-05 07:35:12 +00:00
return jsx(importDefault(8508), { ref: null, children: null });
2026-07-30 10:14:41 +00:00
}
tmp = callback(props, closure_3);
2026-07-29 08:29:29 +00:00
}
}
];
2026-07-30 10:14:41 +00:00
const importDefaultResultResult = importDefaultResult(TextPath, items);
importDefaultResultResult.displayName = "TextPath";
2026-07-29 08:29:29 +00:00
export default importDefaultResultResult;