Files
discord-decomp/sources/by-id/module-01062.jsx
T
2026-07-27 16:20:00 +03:00

70 lines
3.3 KiB
React

/* Metro module 1062; source: unknown; dependencies: [1047, 1046, 1052, 1055, 1051, 1050] */
function _fun11134(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#11134, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1189:6, offset: 0x00da1d5f, size: 109 bytes, params: 8, frame: 17
const env0_0 = require;
const Object = global.Object;
const defineProperty = Object.defineProperty;
const Symbol = global.Symbol;
Reflect.apply(defineProperty, Object, [exports, Symbol.toStringTag, {value: 'Module'}]);
exports.TTFBThresholds = [800, 1800];
exports.onTTFB = onTTFB;
}
function whenReady(a0) { // fn#11135, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1189:110, offset: 0x00da1dcc, size: 193 bytes, params: 2, frame: 18
const env0_0 = a0;
const value2 = undefined;
const WINDOW = (require(1047) /* metro dependency 1047 */).WINDOW;
let document = WINDOW.document;
if (document == null) {
document = WINDOW.document;
if ((document == null ? value2 : document.readyState) !== 'complete') {
global.addEventListener('load', _fun11137, true);
} else {
global.setTimeout(a0);
}
} else if (document.prerendering) {
(require(1046) /* metro dependency 1046 */).whenActivated(_fun11136);
} else {
document = WINDOW.document;
if ((document == null ? value2 : document.readyState) !== 'complete') {
global.addEventListener('load', _fun11137, true);
} else {
global.setTimeout(a0);
}
}
return value2;
}
function onTTFB(a0) { // fn#11138, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1189:405, offset: 0x00da1ea4, size: 137 bytes, params: 2, frame: 20
const r3 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
const value2 = (require(1052) /* metro dependency 1052 */).initMetric('TTFB');
const moduleValue2 = require(1055) /* metro dependency 1055 */;
const env0_1 = moduleValue2.bindReporter(a0, value2, env0_2, r3.reportAllChanges);
whenReady(_fun11139);
}
function _fun11136() { // fn#11136, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1189:213, offset: 0x00da1e8d, size: 23 bytes, params: 1, frame: 11
whenReady(env0_0);
}
function _fun11139() { // fn#11139, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1189:569, offset: 0x00da1f2d, size: 143 bytes, params: 1, frame: 19
var binding;
var Math;
var max;
var responseStart;
let value = environment.__proto__;
const navigationEntry = (require(1051) /* metro dependency 1051 */).getNavigationEntry();
if (navigationEntry) {
binding = env0_0;
Math = global.Math;
max = Math.max;
responseStart = navigationEntry.responseStart;
value = require(1050) /* metro dependency 1050 */;
value = responseStart - value.getActivationStart();
binding.value = Reflect.apply(max, Math, [value, 0]);
binding = env0_0;
binding.entries = [navigationEntry];
env0_1(true);
}
}