// Module ID: 8488 // Function ID: 8489 // Dependencies: [109, 41, 42, 93, 95, 98, 19, 17, 21, 8489, 8490, 8491, 8492, 8496, 8497, 8498, 8508] // Module 8488 import extractOpacityDefault from "extractOpacity" /* 8490 */; import extractResponderDefault from "extractResponder" /* 8491 */; import _modDef8496 from "module_8496" /* 8496 */; import _modDef8498 from "module_8498" /* 8498 */; import _modDef8508 from "module_8508" /* 8508 */; 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 Svg = 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 = ["style", "opacity", "viewBox", "children", "onLayout", "preserveAspectRatio"]; get_ActivityIndicator = fn(17); ({ findNodeHandle: closure_8, Platform, StyleSheet } = get_ActivityIndicator); const jsx = fn(21).jsx; const svg = StyleSheet.create({ svg: { backgroundColor: "transparent", borderWidth: 0 } }).svg; class Svg { constructor() { self = this; items = [...arguments]; closure_0 = undefined; tmp = hasOwnProperty(this, Svg); items1 = [...items]; tmp2 = closure_7; obj = closure_7(Svg); tmp3 = metroRequire; if (closure_11()) { 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.measureInWindow = (arg0) => { const root = closure_0.root; if (root) { root.measureInWindow(arg0); } }; tmp3Result.measure = (arg0) => { const root = closure_0.root; if (root) { root.measure(arg0); } }; tmp3Result.measureLayout = (arg0, arg1, arg2) => { const root = closure_0.root; if (root) { root.measureLayout(arg0, arg1, arg2); } }; tmp3Result.setNativeProps = (arg0) => { const root = closure_0.root; if (root) { root.setNativeProps(arg0); } }; tmp3Result.toDataURL = (arg0, arg1) => { if (arg0) { const tmp4 = React6(closure_0.root); Svg(8489).default.toDataURL(tmp4, arg1, arg0); const _default = Svg(8489).default; } }; return tmp3Result; } } _inherits(Svg, _modDef8508); const entry = { key: "render", value: function render() { const self = this; const props = this.props; ({ style, opacity } = props); ({ viewBox, children, onLayout, preserveAspectRatio } = props); const tmp = _objectWithoutProperties(props, closure_3); let applyResult = style; if (Array.isArray(style)) { const _Object = Object; const items = [{}]; HermesBuiltin.arraySpread(style, 1); const _Object2 = Object; applyResult = HermesBuiltin.apply(items, Object); } const obj = {}; const merged = Object.assign(applyResult); const merged1 = Object.assign(tmp); ({ width, height, focusable } = obj); let tmp10 = undefined === width; ({ transform, font, fill, fillOpacity, fillRule, stroke, strokeWidth, strokeOpacity, strokeDasharray, strokeDashoffset, strokeLinecap, strokeLinejoin, strokeMiterlimit, position } = obj); if (tmp10) { tmp10 = undefined === height; } if (tmp10) { tmp10 = "absolute" !== position; } if (tmp10) { height = "100%"; width = "100%"; } let BooleanResult = Boolean(focusable); if (BooleanResult) { BooleanResult = "false" !== focusable; } tmp.focusable = BooleanResult; let items1 = [svg]; if (style) { items1.push(style); } let num2 = NaN; if (null != opacity) { num2 = extractOpacityDefault(opacity); } const obj2 = {}; let flag = false; if (!isNaN(num2)) { obj2.opacity = num2; flag = true; } let flag2 = flag; if (width) { flag2 = flag; if (height) { const _parseInt = parseInt; let parsed = parseInt(width, 10); const _parseInt2 = parseInt; let parsed1 = parseInt(height, 10); const _isNaN = isNaN; let isNaNResult = isNaN(parsed); if (!isNaNResult) { isNaNResult = "%" === width[width.length - 1]; } const _isNaN2 = isNaN; let isNaNResult1 = isNaN(parsed1); if (!isNaNResult1) { isNaNResult1 = "%" === height[height.length - 1]; } if (isNaNResult) { parsed = width; } obj2.width = parsed; if (isNaNResult1) { parsed1 = height; } obj2.height = parsed1; obj2.flex = 0; flag2 = true; } } if (flag2) { items1.push(obj2); } if (items1.length <= 1) { items1 = svg; } tmp.style = items1; if (null != width) { tmp.bbWidth = width; } if (null != height) { tmp.bbHeight = height; } extractResponderDefault(tmp, tmp, this); const merged2 = Object.assign({}, StyleSheet.flatten(style)); if (transform) { if (merged2.transform) { tmp.transform = merged2.transform; merged2.transform = undefined; } tmp.transform = Svg(8492).extractTransformSvgView(tmp); const obj3 = Svg(8492); } const obj4 = {}; const merged3 = Object.assign(tmp); obj4.ref = function ref(arg0) { return self.refMethod(arg0); }; const merged4 = Object.assign(tmp21(8497)({ viewBox, preserveAspectRatio })); obj4.children = jsx(_modDef8498, { children, style: merged2, font, fill, fillOpacity, fillRule, stroke, strokeWidth, strokeOpacity, strokeDasharray, strokeDashoffset, strokeLinecap, strokeLinejoin, strokeMiterlimit, onLayout }); return jsx(_modDef8496, {}); } }; let items = [entry]; const importDefaultResultResult = _createClass(Svg, items); importDefaultResultResult.displayName = "Svg"; importDefaultResultResult.defaultProps = { preserveAspectRatio: "xMidYMid meet" }; export default importDefaultResultResult;