// Metro module 355 (f356). import _classCallCheck from "./_classCallCheck"; import _createClass from "./_createClass"; import _possibleConstructorReturn from "./_possibleConstructorReturn"; import _getPrototypeOf from "./_getPrototypeOf"; import _get from "./_get"; import _inherits from "./_inherits"; import AnimatedValue from "./AnimatedValue"; import mapStringToNumericComponents from "./mapStringToNumericComponents"; import AnimatedWithChildren from "./AnimatedWithChildren"; function $mk66215($env) { return function(a0) { const r0 = $env; return r0[1].apply(r0[0], a0); }; } let AnimatedAddition; let env368 = {}; env368[6] = function _isNativeReflectConstruct() { let c12271_0; try { c12271_0 = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {})); } catch ($e) {} const _isNativeReflectConstruct2 = function _isNativeReflectConstruct() { return !!c12271_0; }; env368[6] = _isNativeReflectConstruct2; return _isNativeReflectConstruct2(); }; AnimatedAddition = function AnimatedAddition(a0, a1, a2) { _classCallCheck(this, AnimatedAddition); const r9 = [a2]; const r8 = _getPrototypeOf(AnimatedAddition); const r26 = _possibleConstructorReturn(this, (0, env368[6])() ? Reflect.construct(r8, r9, _getPrototypeOf(this).constructor) : r8.apply(this, r9)); r26._a = typeof a0 === "number" ? new AnimatedValue(a0) : a0; r26._b = typeof a1 === "number" ? new AnimatedValue(a1) : a1; return r26; }; _inherits(AnimatedAddition, AnimatedWithChildren); export default _createClass(AnimatedAddition, [{ key: "__makeNative", value: function __makeNative(a0) { let env23686; this._a.__makeNative(a0); this._b.__makeNative(a0); const r13 = env23686 = {}; env23686[0] = this; env23686[1] = void 0; let r18 = _get(_getPrototypeOf(AnimatedAddition.prototype), "__makeNative", this); env23686[1] = r18; if (typeof r18 === "function") { r18 = $mk66215(r13); } r18([a0]); } }, { key: "__getValue", value: function __getValue() { return this._a.__getValue() + this._b.__getValue(); } }, { key: "interpolate", value: function interpolate(a0) { return new mapStringToNumericComponents(this, a0); } }, { key: "__attach", value: function __attach() { let env23687; this._a.__addChild(this); this._b.__addChild(this); const r12 = env23687 = {}; env23687[0] = this; env23687[1] = void 0; let r17 = _get(_getPrototypeOf(AnimatedAddition.prototype), "__attach", this); env23687[1] = r17; if (typeof r17 === "function") { r17 = $mk66215(r12); } r17([]); } }, { key: "__detach", value: function __detach() { let env23688; this._a.__removeChild(this); this._b.__removeChild(this); const r12 = env23688 = {}; env23688[0] = this; env23688[1] = void 0; let r17 = _get(_getPrototypeOf(AnimatedAddition.prototype), "__detach", this); env23688[1] = r17; if (typeof r17 === "function") { r17 = $mk66215(r12); } r17([]); } }, { key: "__getNativeConfig", value: function __getNativeConfig() { return { type: "addition", input: [this._a.__getNativeTag(), this._b.__getNativeTag()], debugID: this.__getDebugID() }; } }]);