108 lines
3.2 KiB
JavaScript
108 lines
3.2 KiB
JavaScript
// Metro module 368 (f369).
|
|
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 $mk66299($env) {
|
|
return function(a0) {
|
|
const r0 = $env;
|
|
return r0[1].apply(r0[0], a0);
|
|
};
|
|
}
|
|
let AnimatedSubtraction;
|
|
let env384 = {};
|
|
env384[6] = function _isNativeReflectConstruct() {
|
|
let c12282_0;
|
|
try {
|
|
c12282_0 = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {}));
|
|
} catch ($e) {}
|
|
const _isNativeReflectConstruct2 = function _isNativeReflectConstruct() {
|
|
return !!c12282_0;
|
|
};
|
|
env384[6] = _isNativeReflectConstruct2;
|
|
return _isNativeReflectConstruct2();
|
|
};
|
|
AnimatedSubtraction = function AnimatedSubtraction(a0, a1, a2) {
|
|
_classCallCheck(this, AnimatedSubtraction);
|
|
const r9 = [a2];
|
|
const r8 = _getPrototypeOf(AnimatedSubtraction);
|
|
const r26 = _possibleConstructorReturn(this, (0, env384[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(AnimatedSubtraction, AnimatedWithChildren);
|
|
export default _createClass(AnimatedSubtraction, [{
|
|
key: "__makeNative",
|
|
value: function __makeNative(a0) {
|
|
let env23709;
|
|
this._a.__makeNative(a0);
|
|
this._b.__makeNative(a0);
|
|
const r13 = env23709 = {};
|
|
env23709[0] = this;
|
|
env23709[1] = void 0;
|
|
let r18 = _get(_getPrototypeOf(AnimatedSubtraction.prototype), "__makeNative", this);
|
|
env23709[1] = r18;
|
|
if (typeof r18 === "function") {
|
|
r18 = $mk66299(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 env23710;
|
|
this._a.__addChild(this);
|
|
this._b.__addChild(this);
|
|
const r12 = env23710 = {};
|
|
env23710[0] = this;
|
|
env23710[1] = void 0;
|
|
let r17 = _get(_getPrototypeOf(AnimatedSubtraction.prototype), "__attach", this);
|
|
env23710[1] = r17;
|
|
if (typeof r17 === "function") {
|
|
r17 = $mk66299(r12);
|
|
}
|
|
r17([]);
|
|
}
|
|
}, {
|
|
key: "__detach",
|
|
value: function __detach() {
|
|
let env23711;
|
|
this._a.__removeChild(this);
|
|
this._b.__removeChild(this);
|
|
const r12 = env23711 = {};
|
|
env23711[0] = this;
|
|
env23711[1] = void 0;
|
|
let r17 = _get(_getPrototypeOf(AnimatedSubtraction.prototype), "__detach", this);
|
|
env23711[1] = r17;
|
|
if (typeof r17 === "function") {
|
|
r17 = $mk66299(r12);
|
|
}
|
|
r17([]);
|
|
}
|
|
}, {
|
|
key: "__getNativeConfig",
|
|
value: function __getNativeConfig() {
|
|
return {
|
|
type: "subtraction",
|
|
input: [this._a.__getNativeTag(), this._b.__getNativeTag()],
|
|
debugID: this.__getDebugID()
|
|
};
|
|
}
|
|
}]);
|