95 lines
4.9 KiB
JavaScript
95 lines
4.9 KiB
JavaScript
/* Metro module 6486; source: unknown; dependencies: [6374, 6375] */
|
|
import ClassCallCheck from './module-06374-ClassCallCheck.js'; /* Metro dependency 6374 */
|
|
import CreateClass from './module-06375-CreateClass.js'; /* Metro dependency 6375 */
|
|
|
|
function _fun51077(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#51077, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6664:6, offset: 0x0122888d, size: 108 bytes, params: 8, frame: 18
|
|
const Object = global.Object;
|
|
Object.defineProperty(exports, '__esModule', {value: true});
|
|
const value = _fun51078();
|
|
exports.autoScroll = autoScroll;
|
|
exports.Cancellable = value;
|
|
function _fun51078() { // fn#51078, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6664:122, offset: 0x012288f9, size: 78 bytes, params: 1, frame: 15
|
|
return CreateClass(Cancellable, [{key: 'cancel', value: function() {
|
|
this._isCancelled = true;
|
|
}}, {key: 'isCancelled', value: function() {
|
|
return this._isCancelled;
|
|
}}]);
|
|
function Cancellable() { // fn#51079, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6664:143, offset: 0x01228947, size: 35 bytes, params: 1, frame: 13
|
|
env1_0(this, Cancellable);
|
|
this._isCancelled = false;
|
|
}
|
|
|
|
}
|
|
|
|
function autoScroll(a0, a1, a2, a3, a4) { // fn#51082, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6664:364, offset: 0x01228984, size: 169 bytes, params: 6, frame: 15
|
|
var value2;
|
|
const env0_0 = a0;
|
|
const env0_1 = a1;
|
|
const env0_2 = a2;
|
|
const env0_3 = a3;
|
|
const env0_4 = a4;
|
|
var value;
|
|
value = arguments.length > 5 && arguments[5] !== undefined ? arguments[5] : value;
|
|
if (arguments.length > 6) {
|
|
if (arguments[6] !== undefined) {
|
|
value = arguments[6];
|
|
} else {
|
|
value2 = new env0_2();
|
|
}
|
|
} else {
|
|
value2 = new env0_2();
|
|
}
|
|
const Promise = global.Promise;
|
|
value = Object.create(Promise.prototype, {constructor: {value: Promise}});
|
|
const promise = new Promise(_fun51083);
|
|
return promise instanceof Object ? promise : value;
|
|
function _fun51083(a0) { // fn#51083, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6664:541, offset: 0x01228a2d, size: 239 bytes, params: 2, frame: 17
|
|
a0(require, importDefault, false);
|
|
const env0_1 = 7 * env0_5;
|
|
const value2 = -1;
|
|
const env0_2 = importAll > require ? 1 : value2;
|
|
let r3 = env0_4 > importDefault ? 1 : value2;
|
|
var env0_4 = importAll > require ? global.Math.min : global.Math.max;
|
|
r3 = env0_4 > importDefault ? global.Math.min : global.Math.max;
|
|
const Date = global.Date;
|
|
const env0_6 = Date.now();
|
|
(function() {
|
|
global.requestAnimationFrame(_fun51085);
|
|
})();
|
|
function animationLoop_51084() { // fn#51084, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6664:666, offset: 0x01228b1c, size: 24 bytes, params: 1, frame: 11
|
|
global.requestAnimationFrame(_fun51085);
|
|
function _fun51085() { // fn#51085, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6664:714, offset: 0x01228b34, size: 230 bytes, params: 1, frame: 20
|
|
let binding = env2_6;
|
|
if (binding.isCancelled()) {
|
|
env1_0(false);
|
|
} else {
|
|
var Date = global.Date;
|
|
var value3 = Date.now();
|
|
binding = env1_1;
|
|
var value4 = binding * (value3 - env1_6);
|
|
env1_8 = importDefault + value4 * env1_3;
|
|
binding = env2_0;
|
|
binding(env1_4(importAll, require + value4 * env1_2), env1_5(env2_4, importDefault), false);
|
|
binding = env1_4;
|
|
if (binding(importAll, require) !== importAll) {
|
|
return animationLoop_51084();
|
|
}
|
|
binding = env1_5;
|
|
var binding5 = env2_4;
|
|
if (binding(binding5, importDefault) !== binding5) {
|
|
return animationLoop_51084();
|
|
}
|
|
env1_0(true);
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
global.__d(_fun51077, 6486, [6374, 6375]) /* metro module 6486, dependencies: [6374, 6375] */;
|