Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4759.js (118.4 MB)
108 lines
3.3 KiB
JavaScript
108 lines
3.3 KiB
JavaScript
// Module ID: 8555
|
|
// Function ID: 8556
|
|
// Dependencies: [41, 42, 93, 95, 98, 19, 17, 21, 8497, 8556, 8499, 8508]
|
|
|
|
// Module 8555
|
|
import _possibleConstructorReturnDefault from "_possibleConstructorReturn" /* 93 */;
|
|
import _modDef8508 from "module_8508" /* 8508 */;
|
|
import _modDef8556 from "module_8556" /* 8556 */;
|
|
import _classCallCheck from "_classCallCheck" /* 41 */;
|
|
import _createClass from "_createClass" /* 42 */;
|
|
import _getPrototypeOf from "_getPrototypeOf" /* 95 */;
|
|
import _inherits from "_inherits" /* 98 */;
|
|
import noop from "module_19" /* 19 */;
|
|
|
|
const SvgImage = 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) {
|
|
}
|
|
}
|
|
_possibleConstructorReturnDefault;
|
|
const Image = fn(17).Image;
|
|
const jsx = fn(21).jsx;
|
|
const re9 = /\s+/;
|
|
class SvgImage {
|
|
constructor() {
|
|
self = this;
|
|
tmp = closure_3(this, SvgImage);
|
|
tmp2 = hasOwnProperty;
|
|
obj = hasOwnProperty(SvgImage);
|
|
tmp3 = closure_4;
|
|
if (closure_8()) {
|
|
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);
|
|
}
|
|
}
|
|
_inherits(SvgImage, _modDef8508);
|
|
const entry = {
|
|
key: "render",
|
|
value: function render() {
|
|
const self = this;
|
|
const props = this.props;
|
|
({ preserveAspectRatio, href } = props);
|
|
({ x, y, width, height } = props);
|
|
if (undefined === href) {
|
|
href = props.xlinkHref;
|
|
}
|
|
if (preserveAspectRatio) {
|
|
let parts = preserveAspectRatio.trim().split(re9);
|
|
const str = preserveAspectRatio.trim();
|
|
} else {
|
|
parts = [];
|
|
}
|
|
const size = { x, y, width, height, onLoad: props.onLoad, meetOrSlice: SvgImage(8497).meetOrSliceTypes[tmp3] || 0, align: null, src: null };
|
|
[tmp2, tmp3] = parts;
|
|
const tmp6 = SvgImage(8497).meetOrSliceTypes[tmp3] || 0;
|
|
size.align = SvgImage(8497).alignEnum[tmp2] || "xMidYMid";
|
|
let assetSource = null;
|
|
if (href) {
|
|
let tmp10 = href;
|
|
if (typeof href === "string") {
|
|
const obj = { uri: href };
|
|
tmp10 = obj;
|
|
}
|
|
assetSource = Image.resolveAssetSource(tmp10);
|
|
}
|
|
size.src = assetSource;
|
|
const obj2 = {
|
|
ref(arg0) {
|
|
return self.refMethod(arg0);
|
|
}
|
|
};
|
|
const tmp7 = SvgImage(8497).alignEnum[tmp2] || "xMidYMid";
|
|
const merged = Object.assign(SvgImage(8499).withoutXY(this, props));
|
|
const merged1 = Object.assign(size);
|
|
return <tmp11 ref={function ref(arg0) {
|
|
return self.refMethod(arg0);
|
|
}} />;
|
|
}
|
|
};
|
|
const items = [entry];
|
|
const importDefaultResultResult = _createClass(SvgImage, items);
|
|
importDefaultResultResult.displayName = "Image";
|
|
importDefaultResultResult.defaultProps = { x: 0, y: 0, width: 0, height: 0, preserveAspectRatio: "xMidYMid meet" };
|
|
|
|
export default importDefaultResultResult;
|