Files
discord-decomp/sources/by-id/module-01199-ReactNativeProfiler.js
T
2026-07-28 01:06:53 +03:00

128 lines
7.3 KiB
JavaScript

/* Metro module 1199; source: unknown; dependencies: [6, 7, 15, 17, 102, 18, 1160, 826, 1143, 1200, 1161] */
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 */
import * as Module00826Module from './module-00826.js'; /* Metro dependency 826 */
import * as Module01143Module from './module-01143.js'; /* Metro dependency 1143 */
import * as Module01160Module from './module-01160.js'; /* Metro dependency 1160 */
function _fun13308(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#13308, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1326:6, offset: 0x00de77e6, size: 219 bytes, params: 8, frame: 19
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
object = {appStartReported: false, onRunApplicationHook: onRunApplicationHook};
const Profiler = (Module01143Module).Profiler;
exports.ReactNativeProfiler = _fun13313(Profiler);
function _isNativeReflectConstruct_13309() { // fn#13309, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1326:159, offset: 0x00de78c1, 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_13309_isNativeReflectConstruct = function() {
return !!result;
})();
}
function onRunApplicationHook() { // fn#13312, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1326:426, offset: 0x00de791f, size: 19 bytes, params: 1, frame: 2
env0_8.appStartReported = false;
}
function _fun13313(a0) { // fn#13313, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1326:484, offset: 0x00de7932, size: 93 bytes, params: 2, frame: 16
const ReactNativeProfiler2 = ReactNativeProfiler;
Inherits(ReactNativeProfiler2, a0);
return CreateClass(ReactNativeProfiler2, [{key: 'componentDidMount', value: value_13315}, {key: '_reportAppStart',
value: value_13318}]);
function ReactNativeProfiler(a0) { // fn#13314, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1326:496, offset: 0x00de798f, size: 188 bytes, params: 2, frame: 19
let value = environment.__proto__;
env1_2(this, ReactNativeProfiler);
Module01160Module._setRootComponentCreationTimestampMs(1000 * (Module00826Module).timestampInSeconds());
const items2 = [a0];
const value4 = env1_5(ReactNativeProfiler);
value = env1_4(this, _isNativeReflectConstruct_13309() ? global.Reflect.construct(value4, items2,
env1_5(this).constructor) : value4.apply(this, items2));
value.name = 'ReactNativeProfiler';
return value;
}
function value_13315() { // fn#13315, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1326:931, offset: 0x00de7a4b, size: 89 bytes, params: 1, frame: 17
var environment;
value_13315_superPropGet(ReactNativeProfiler, 'componentDidMount', this, 3)([]);
const value = environment.__proto__;
if (!env1_8.appStartReported) {
this._reportAppStart();
env1_8.appStartReported = true;
}
function value_13315_superPropGet(a0, a1, a2, a3) { // fn#13316, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1326:961, owner: value_13315._superPropGet, offset: 0x00de7aa4, size: 100 bytes, params: 5, frame: 18
let value = a0;
const env0_0 = a2;
const binding = env2_6;
value = env2_5(1 & 3 ? value.prototype : value);
value = binding(value, 'componentDidMount', a2);
return 2 & 3 ? typeof value !== 'function' ? value : _fun13317 : value;
function _fun13317(a0) { // fn#13317, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1326:1060, offset: 0x00c62408, size: 27 bytes, params: 2, frame: 13
return env0_1.apply(importDefault, a0);
}
}
}
function value_13318() { // fn#13318, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1326:1246, offset: 0x00de7b08, size: 271 bytes, params: 1, frame: 17
var addIntegration;
var call;
var moduleValue2;
var appRegistryIntegration;
const debug = (Module00826Module).debug;
const value = environment.__proto__;
const client = (Module01143Module).getClient();
if (client) {
addIntegration = client.addIntegration;
if (!(addIntegration === null || addIntegration === undefined)) {
call = addIntegration.call;
moduleValue2 = require(1200) /* metro dependency 1200 */;
Reflect.apply(call, addIntegration, [client, moduleValue2.createIntegration(this.name)]);
}
appRegistryIntegration = (require(1161) /* metro dependency 1161 */).getAppRegistryIntegration(client);
if (appRegistryIntegration) {
if (typeof appRegistryIntegration.onRunApplication === 'function') {
appRegistryIntegration.onRunApplication(env1_8.onRunApplicationHook);
} else {
debug.warn('AppRegistryIntegration.onRunApplication not found or invalid.');
}
} else {
debug.warn('AppRegistryIntegration.onRunApplication not found or invalid.');
}
(require(1160) /* metro dependency 1160 */)._captureAppStart({isManual: false});
}
}
}
}
global.__d(_fun13308, 1199, [6, 7, 15, 17, 102, 18, 1160, 826, 1143, 1200,
1161]) /* metro module 1199, dependencies: [6, 7, 15, 17, 102, 18, 1160, 826, 1143, 1200, 1161] */;