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

119 lines
5.9 KiB
React

/* Metro module 1199; source: unknown; dependencies: [6, 7, 15, 17, 102, 18, 1160, 826, 1143, 1200, 1161] */
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});
const env0_2 = importDefault(6) /* metro dependency 6 */;
const env0_3 = importDefault(7) /* metro dependency 7 */;
const env0_4 = importDefault(15) /* metro dependency 15 */;
const env0_5 = importDefault(17) /* metro dependency 17 */;
const env0_6 = importDefault(102) /* metro dependency 102 */;
const env0_7 = importDefault(18) /* metro dependency 18 */;
object = {appStartReported: false, onRunApplicationHook: onRunApplicationHook};
const Profiler = (require(1143) /* metro dependency 1143 */).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 closure = ReactNativeProfiler;
env0_7(closure, a0);
return env0_3(closure, [{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);
const moduleValue = require(1160) /* metro dependency 1160 */;
moduleValue._setRootComponentCreationTimestampMs(1000 * (require(826) /* metro dependency 826 */).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_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 = (require(826) /* metro dependency 826 */).debug;
const value = environment.__proto__;
const client = (require(1143) /* metro dependency 1143 */).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});
}
}
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;
}