132 lines
6.8 KiB
JavaScript
132 lines
6.8 KiB
JavaScript
/* Metro module 379; source: unknown; dependencies: [6, 7, 15, 17, 102, 18, 372] */
|
|
import ClassCallCheck from './module-00006-ClassCallCheck.js'; /* Metro dependency 6 */
|
|
import CreateClass from './module-00007-CreateClass.js'; /* Metro dependency 7 */
|
|
import PossibleConstructorReturn from './module-00015-PossibleConstructorReturn.js'; /* Metro dependency 15 */
|
|
import Module00017 from './module-00017.js'; /* Metro dependency 17 */
|
|
import Inherits from './module-00018-Inherits.js'; /* Metro dependency 18 */
|
|
import Module00102 from './module-00102.js'; /* Metro dependency 102 */
|
|
|
|
function _fun5650(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#5650, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:420:6, offset: 0x00ce1fc8, size: 195 bytes, params: 8, frame: 18
|
|
const Object = global.Object;
|
|
Object.defineProperty(exports, '__esModule', {value: true});
|
|
exports.default = _fun5656(importDefault(372) /* metro dependency 372 */);
|
|
function _isNativeReflectConstruct_5651() { // fn#5651, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:420:159, offset: 0x00ce208b, size: 94 bytes, params: 1, frame: 18
|
|
var Boolean;
|
|
var prototype;
|
|
var valueOf;
|
|
var call;
|
|
var Reflect;
|
|
var construct;
|
|
var closure;
|
|
var value;
|
|
var error;
|
|
try {
|
|
Boolean = global.Boolean;
|
|
prototype = Boolean.prototype;
|
|
valueOf = prototype.valueOf;
|
|
call = valueOf.call;
|
|
Reflect = global.Reflect;
|
|
construct = Reflect.construct;
|
|
Boolean = global.Boolean;
|
|
closure = function() {
|
|
};
|
|
value = Reflect.apply(construct, Reflect, [Boolean, [], closure]);
|
|
value = Reflect.apply(call, valueOf, [value]);
|
|
var result = !value;
|
|
} catch (error) {
|
|
}
|
|
return (_isNativeReflectConstruct_5651_isNativeReflectConstruct = function() {
|
|
return !!result;
|
|
})();
|
|
}
|
|
|
|
function _superPropGet_5654(a0, a1, a2, a3) { // fn#5654, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:420:378, offset: 0x00ce20e9, size: 99 bytes, params: 5, frame: 18
|
|
let value = a0;
|
|
const env0_0 = a2;
|
|
value = Module00017(1 & 3 ? value.prototype : value);
|
|
value = Module00102(value, a1, a2);
|
|
return 2 & 3 ? typeof value !== 'function' ? value : _fun5655 : value;
|
|
function _fun5655(a0) { // fn#5655, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:420:477, offset: 0x00c62408, size: 27 bytes, params: 2, frame: 13
|
|
return ClassCallCheck.apply(importDefault, a0);
|
|
}
|
|
|
|
}
|
|
|
|
function _fun5656(a0) { // fn#5656, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:420:518, offset: 0x00ce214c, size: 137 bytes, params: 2, frame: 16
|
|
const DecayAnimation2 = DecayAnimation;
|
|
Inherits(DecayAnimation2, a0);
|
|
return CreateClass(DecayAnimation2, [{key: '__getNativeAnimationConfig', value: function() {
|
|
return {type: 'decay', deceleration: this._deceleration, velocity: this._velocity,
|
|
iterations: this.__iterations,
|
|
platformConfig: this._platformConfig, debugID: this.__getDebugID()};
|
|
}}, {key: 'start', value: value_5659}, {key: 'onUpdate', value: value_5661}, {key: 'stop', value: value_5662}]);
|
|
function DecayAnimation(a0) { // fn#5657, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:420:530, offset: 0x00ce21d5, size: 173 bytes, params: 2, frame: 20
|
|
let value = environment.__proto__;
|
|
env1_1(this, DecayAnimation);
|
|
const items2 = [a0];
|
|
const value3 = env1_4(DecayAnimation);
|
|
value = env1_3(this, _isNativeReflectConstruct_5651() ? global.Reflect.construct(value3, items2,
|
|
env1_4(this).constructor) : value3.apply(this, items2));
|
|
value._deceleration = a0.deceleration ?? 0.998;
|
|
value._velocity = a0.velocity;
|
|
value._platformConfig = a0.platformConfig;
|
|
return value;
|
|
}
|
|
|
|
function value_5659(a0, a1, a2, a3, a4) { // fn#5659, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:420:1176, offset: 0x00ce22cc, size: 164 bytes, params: 6, frame: 21
|
|
var environment;
|
|
const value = environment.__proto__;
|
|
_superPropGet_5654(DecayAnimation, 'start', this, 3)([a0, a1, a2, a3, a4]);
|
|
this._lastValue = a0;
|
|
this._fromValue = a0;
|
|
this._onUpdate = a1;
|
|
const Date = global.Date;
|
|
this._startTime = Date.now();
|
|
if (!this.__startAnimationIfNative(a4)) {
|
|
this._animationFrame = global.requestAnimationFrame(_fun5660);
|
|
}
|
|
function _fun5660() { // fn#5660, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:420:1430, offset: 0x00ce2370, size: 19 bytes, params: 1, frame: 9
|
|
return env0_0.onUpdate();
|
|
}
|
|
|
|
}
|
|
|
|
function value_5662() { // fn#5662, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:420:1856, offset: 0x00ce246c, size: 99 bytes, params: 1, frame: 18
|
|
var binding;
|
|
_superPropGet_5654(DecayAnimation, 'stop', this, 3)([]);
|
|
if (this._animationFrame != null) {
|
|
binding = env1_0;
|
|
binding.cancelAnimationFrame(this._animationFrame);
|
|
}
|
|
this.__notifyAnimationEnd({finished: false});
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
function value_5661() { // fn#5661, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:420:1489, offset: 0x00ce2383, size: 233 bytes, params: 1, frame: 18
|
|
const Date = global.Date;
|
|
let value = Date.now();
|
|
const _fromValue = this._fromValue;
|
|
const value2 = this._velocity / (1 - this._deceleration);
|
|
let Math = global.Math;
|
|
const exp = Math.exp;
|
|
const value3 = 1 - this._deceleration;
|
|
value -= this._startTime;
|
|
value = _fromValue + value2 * (1 - Reflect.apply(exp, Math, [-value3 * value]));
|
|
this._onUpdate(value);
|
|
Math = global.Math;
|
|
if (Math.abs(this._lastValue - value) < 0.1) {
|
|
this.__notifyAnimationEnd({finished: true});
|
|
} else {
|
|
this._lastValue = value;
|
|
if (this.__active) {
|
|
this._animationFrame = global.requestAnimationFrame(this.onUpdate.bind(this));
|
|
}
|
|
}
|
|
}
|
|
|
|
global.__d(_fun5650, 379, [6, 7, 15, 17, 102, 18,
|
|
372]) /* metro module 379, dependencies: [6, 7, 15, 17, 102, 18, 372] */;
|