178 lines
7.5 KiB
React
178 lines
7.5 KiB
React
/* Metro module 378; source: unknown; dependencies: [153, 6, 7, 15, 17, 102, 18, 355, 372] */
|
|
function _fun5636(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#5636, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:419:6, offset: 0x00ce19a9, size: 218 bytes, params: 8, frame: 18
|
|
const env0_1 = require;
|
|
const Object = global.Object;
|
|
Object.defineProperty(exports, '__esModule', {value: true});
|
|
importDefault(153) /* metro dependency 153 */;
|
|
const env0_4 = importDefault(6) /* metro dependency 6 */;
|
|
const env0_5 = importDefault(7) /* metro dependency 7 */;
|
|
const env0_6 = importDefault(15) /* metro dependency 15 */;
|
|
const env0_7 = importDefault(17) /* metro dependency 17 */;
|
|
const env0_8 = importDefault(102) /* metro dependency 102 */;
|
|
const env0_9 = importDefault(18) /* metro dependency 18 */;
|
|
exports.default = _fun5642(importDefault(372) /* metro dependency 372 */);
|
|
}
|
|
|
|
function _isNativeReflectConstruct_5637() { // fn#5637, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:419:169, offset: 0x00ce1a83, 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_5637_isNativeReflectConstruct = function() {
|
|
return !!result;
|
|
})();
|
|
}
|
|
|
|
function _superPropGet_5640(a0, a1, a2, a3) { // fn#5640, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:419:388, offset: 0x00ce1ae1, size: 99 bytes, params: 5, frame: 18
|
|
let value = a0;
|
|
const env0_0 = a2;
|
|
const binding = env0_8;
|
|
value = env0_7(1 & 3 ? value.prototype : value);
|
|
value = binding(value, a1, a2);
|
|
return 2 & 3 ? typeof value !== 'function' ? value : _fun5641 : value;
|
|
}
|
|
|
|
function _fun5642(a0) { // fn#5642, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:419:528, offset: 0x00ce1b44, size: 137 bytes, params: 2, frame: 16
|
|
const closure = TimingAnimation;
|
|
env0_9(closure, a0);
|
|
return env0_5(closure, [{key: '__getNativeAnimationConfig', value: value_5644}, {key: 'start', value: value_5645},
|
|
{key: 'onUpdate', value: value_5648}, {key: 'stop', value: value_5649}]);
|
|
}
|
|
|
|
function TimingAnimation(a0) { // fn#5643, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:419:540, offset: 0x00ce1bcd, size: 265 bytes, params: 2, frame: 21
|
|
var r3;
|
|
var property;
|
|
const value = environment.__proto__;
|
|
env1_4(this, TimingAnimation);
|
|
const items2 = [a0];
|
|
const value3 = env1_7(TimingAnimation);
|
|
const value6 = env1_6(this, _isNativeReflectConstruct_5637() ? global.Reflect.construct(value3, items2,
|
|
env1_7(this).constructor) : value3.apply(this, items2));
|
|
value6._toValue = a0.toValue;
|
|
const easing = a0.easing;
|
|
if (easing != null) {
|
|
r3 = easing;
|
|
} else {
|
|
if (!env1_3) {
|
|
property = (require(355) /* metro dependency 355 */).default;
|
|
env1_3 = property.inOut(property.ease);
|
|
}
|
|
r3 = env1_3;
|
|
}
|
|
value6._easing = r3;
|
|
value6._duration = a0.duration ?? 500;
|
|
value6._delay = a0.delay ?? 0;
|
|
value6._platformConfig = a0.platformConfig;
|
|
return value6;
|
|
}
|
|
|
|
function value_5644() { // fn#5644, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:419:1098, offset: 0x00ce1cd6, size: 175 bytes, params: 1, frame: 15
|
|
var r0;
|
|
var push;
|
|
var _easing;
|
|
var value3;
|
|
const items2 = [];
|
|
const Math = global.Math;
|
|
const value = Math.round(this._duration / 16.666666666666668);
|
|
const value2 = 0;
|
|
if (value2 < value) {
|
|
for (r0 = value2; true; r0 = value3) {
|
|
push = items2.push;
|
|
_easing = this._easing;
|
|
Reflect.apply(push, items2, [Reflect.apply(_easing, this, [r0 / value])]);
|
|
value3 = typeof r0 === 'bigint' ? r0 + 1n : +r0 + 1;
|
|
if (!(value3 < value)) {
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
items2.push(this._easing(1));
|
|
const object2 = {type: 'frames', frames: items2};
|
|
object2.toValue = this._toValue;
|
|
object2.iterations = this.__iterations;
|
|
object2.platformConfig = this._platformConfig;
|
|
object2.debugID = this.__getDebugID();
|
|
return object2;
|
|
}
|
|
|
|
function value_5645(a0, a1, a2, a3, a4) { // fn#5645, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:419:1427, offset: 0x00ce1d85, size: 149 bytes, params: 6, frame: 21
|
|
var environment;
|
|
const env0_0 = a4;
|
|
const value = environment.__proto__;
|
|
_superPropGet_5640(TimingAnimation, 'start', this, 3)([a0, a1, a2, a3, a4]);
|
|
this._fromValue = a0;
|
|
this._onUpdate = a1;
|
|
const closure = value_5645Start;
|
|
if (this._delay) {
|
|
this._timeout = global.setTimeout(closure, this._delay);
|
|
} else {
|
|
closure();
|
|
}
|
|
}
|
|
|
|
function value_5648() { // fn#5648, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:419:1886, offset: 0x00ce1eba, size: 270 bytes, params: 1, frame: 15
|
|
var _onUpdate;
|
|
var _fromValue;
|
|
var _easing;
|
|
const Date = global.Date;
|
|
let value = Date.now();
|
|
if (value >= this._startTime + this._duration) {
|
|
if (this._duration === 0) {
|
|
this._onUpdate(this._toValue);
|
|
} else {
|
|
this._onUpdate(this._fromValue + this._easing(1) * (this._toValue - this._fromValue));
|
|
}
|
|
this.__notifyAnimationEnd({finished: true});
|
|
} else {
|
|
_onUpdate = this._onUpdate;
|
|
_fromValue = this._fromValue;
|
|
_easing = this._easing;
|
|
value -= this._startTime;
|
|
value = Reflect.apply(_easing, this, [value / this._duration]);
|
|
Reflect.apply(_onUpdate, this, [_fromValue + value * (this._toValue - this._fromValue)]);
|
|
if (this.__active) {
|
|
this._animationFrame = global.requestAnimationFrame(this.onUpdate.bind(this));
|
|
}
|
|
}
|
|
}
|
|
|
|
function value_5645Start() { // fn#5646, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:419:1568, owner: value_5645.start, offset: 0x00ce1e1a, size: 141 bytes, params: 1, frame: 13
|
|
let binding = env0_1;
|
|
const Date = global.Date;
|
|
binding._startTime = Date.now();
|
|
if (!binding.__startAnimationIfNative(env0_0)) {
|
|
if (env0_1._duration === 0) {
|
|
binding = env0_1;
|
|
binding._onUpdate(binding._toValue);
|
|
binding.__notifyAnimationEnd({finished: true});
|
|
} else {
|
|
env0_1._animationFrame = global.requestAnimationFrame(_fun5647);
|
|
}
|
|
}
|
|
}
|
|
|
|
function _fun5647() { // fn#5647, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:419:1762, offset: 0x00ce1ea7, size: 19 bytes, params: 1, frame: 9
|
|
return env1_1.onUpdate();
|
|
}
|
|
|