Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4821.js (118.4 MB)
126 lines
4.1 KiB
JavaScript
126 lines
4.1 KiB
JavaScript
// Module ID: 8676
|
|
// Function ID: 8677
|
|
// Dependencies: [109, 41, 42, 93, 95, 98, 19, 21, 8582, 8590, 8596, 8589, 8677, 8673, 8598]
|
|
|
|
// Module 8676
|
|
import appendTransformPropsDefault from "appendTransformProps" /* 8582 */;
|
|
import extractFontDefault from "extractFont" /* 8596 */;
|
|
import _modDef8598 from "module_8598" /* 8598 */;
|
|
import _modDef8673 from "module_8673" /* 8673 */;
|
|
import _modDef8677 from "module_8677" /* 8677 */;
|
|
import _objectWithoutProperties from "_objectWithoutProperties" /* 109 */;
|
|
import _classCallCheck from "_classCallCheck" /* 41 */;
|
|
import _createClass from "_createClass" /* 42 */;
|
|
import metroRequire from "_possibleConstructorReturn" /* 93 */;
|
|
import _getPrototypeOf from "_getPrototypeOf" /* 95 */;
|
|
import _inherits from "_inherits" /* 98 */;
|
|
import noop from "module_19" /* 19 */;
|
|
|
|
const TextPath = fn;
|
|
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) {
|
|
}
|
|
}
|
|
let closure_3 = ["children", "xlinkHref", "href", "startOffset", "method", "spacing", "side", "alignmentBaseline", "midLine"];
|
|
const jsx = fn(21).jsx;
|
|
class TextPath {
|
|
constructor() {
|
|
self = this;
|
|
items = [...arguments];
|
|
closure_0 = undefined;
|
|
tmp = hasOwnProperty(this, TextPath);
|
|
items1 = [...items];
|
|
tmp2 = closure_7;
|
|
obj = closure_7(TextPath);
|
|
tmp3 = metroRequire;
|
|
if (closure_9()) {
|
|
tmp5 = globalThis;
|
|
_Reflect = Reflect;
|
|
constructResult = Reflect.construct(obj, items1, tmp2(self).constructor);
|
|
} else {
|
|
constructResult = obj.apply(self, items1);
|
|
}
|
|
tmp3Result = tmp3(self, constructResult);
|
|
closure_0 = tmp3Result;
|
|
tmp3Result.setNativeProps = (matrix) => {
|
|
matrix = matrix.matrix;
|
|
let tmp = !matrix;
|
|
if (!matrix) {
|
|
tmp = appendTransformPropsDefault(matrix);
|
|
}
|
|
if (tmp) {
|
|
matrix.matrix = tmp;
|
|
}
|
|
const merged = Object.assign(matrix, TextPath(8590).pickNotNil(extractFontDefault(matrix, true)));
|
|
if (closure_0.root) {
|
|
const root = closure_0.root;
|
|
root.setNativeProps(matrix);
|
|
}
|
|
};
|
|
return tmp3Result;
|
|
}
|
|
}
|
|
_inherits(TextPath, _modDef8598);
|
|
const entry = {
|
|
key: "render",
|
|
value: function render() {
|
|
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) {
|
|
match = href.match(TextPath(8590).idPattern);
|
|
}
|
|
let tmp5 = match;
|
|
if (match) {
|
|
tmp5 = match[1];
|
|
}
|
|
if (tmp5) {
|
|
const withoutXYResult = TextPath(8589).withoutXY(self, tmp);
|
|
const _Object = Object;
|
|
const obj3 = { children };
|
|
const obj4 = { href: tmp5, startOffset: num, method, spacing, side, alignmentBaseline, midLine };
|
|
const merged = Object.assign(withoutXYResult, extractFontDefault(obj3, true), obj4);
|
|
withoutXYResult.ref = self.refMethod;
|
|
const obj5 = {};
|
|
const obj2 = TextPath(8589);
|
|
const merged1 = Object.assign(withoutXYResult);
|
|
return jsx(_modDef8677, {});
|
|
} else {
|
|
const _console = console;
|
|
console.warn(`Invalid \`href\` prop for \`TextPath\` element, expected a href like "#id", but got: "${href}"`);
|
|
const obj = { ref: self.refMethod, children };
|
|
return jsx(_modDef8673, { ref: self.refMethod, children });
|
|
}
|
|
tmp = _objectWithoutProperties(props, closure_3);
|
|
}
|
|
};
|
|
let items = [entry];
|
|
const importDefaultResultResult = _createClass(TextPath, items);
|
|
importDefaultResultResult.displayName = "TextPath";
|
|
|
|
export default importDefaultResultResult;
|