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

174 lines
6.5 KiB
React

/* Metro module 1063; source: unknown; dependencies: [1048, 1046, 1064, 1052, 1057, 1065, 1061, 1054, 1055] */
function _fun11140(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#11140, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1190:6, offset: 0x00da1fbc, size: 100 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.INPThresholds = [200, 500];
exports.onINP = onINP;
}
function onINP(a0) { // fn#11141, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1190:133, offset: 0x00da2020, size: 145 bytes, params: 2, frame: 15
var object;
var value;
const env0_0 = a0;
if (arguments.length > 1) {
if (arguments[1] !== undefined) {
value = arguments[1];
} else {
object = {};
}
} else {
object = {};
}
const PerformanceEventTiming = global.globalThis.PerformanceEventTiming;
if (PerformanceEventTiming) {
if ('interactionId' in global.PerformanceEventTiming.prototype) {
value = require(1048) /* metro dependency 1048 */;
var env0_2 = value.getVisibilityWatcher();
value = require(1046) /* metro dependency 1046 */;
value.whenActivated(_fun11142);
}
}
}
function _fun11142() { // fn#11142, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1190:365, offset: 0x00da20b1, size: 305 bytes, params: 1, frame: 23
(require(1064) /* metro dependency 1064 */).initInteractionCountPolyfill();
const value2 = (require(1052) /* metro dependency 1052 */).initMetric('INP');
const env0_1 = value2;
const moduleValue3 = require(1057) /* metro dependency 1057 */;
const initUnique = moduleValue3.initUnique;
const binding = env0_1;
const InteractionManager = (require(1065) /* metro dependency 1065 */).InteractionManager;
const env0_2 = Reflect.apply(initUnique, moduleValue3, [binding, InteractionManager]);
const closure = handleEntries_11143;
const moduleValue4 = require(1054) /* metro dependency 1054 */;
const value5 = moduleValue4.observe('event', closure, {durationThreshold: env0_1.durationThreshold ?? 40});
const moduleValue5 = require(1055) /* metro dependency 1055 */;
const env0_0Binding = moduleValue5.bindReporter(env0_0, value2, env1_2, env0_1.reportAllChanges);
if (value5) {
value5.observe({'type': 'first-input', 'buffered': true});
env0_2.onHidden(_fun11145);
}
}
function handleEntries_11143(a0) { // fn#11143, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1190:508, offset: 0x00da21e2, size: 52 bytes, params: 2, frame: 12
var environment;
const env0_0 = a0;
const value = environment.__proto__.__proto__;
(require(1061) /* metro dependency 1061 */).whenIdleOrHidden(_fun11144);
}
function _fun11144() { // fn#11144, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1190:560, offset: 0x00da2216, size: 135 bytes, params: 1, frame: 15
var binding;
var _processEntry;
var error;
var _estimateP98LongestInteraction;
var value2;
var _latency;
var value3;
var value4;
var entries;
const iterator = env0_0[Symbol.iterator]();
const iterator2 = iterator.next;
let r3 = iterator;
let item2 = Reflect.apply(iterator2, r3, []);
let item = item2.value;
item2 = item2.done ? undefined : r3;
reducibleJoin2: while (true) {
if (item2 === undefined) {
binding = env1_2;
_estimateP98LongestInteraction = binding._estimateP98LongestInteraction;
value2 = Reflect.apply(_estimateP98LongestInteraction, binding, []);
reducibleJoin8: while (true) {
if (value2) {
_latency = value2._latency;
value3 = env1_1.value;
value4 = _latency !== value3;
r3 = value4;
break reducibleJoin8;
}
r3 = value2;
break reducibleJoin8;
}
reducibleJoin10: while (true) {
if (r3) {
binding = env1_1;
_latency = value2._latency;
binding.value = _latency;
entries = value2.entries;
binding.entries = entries;
env1_0();
break reducibleJoin10;
}
break reducibleJoin10;
}
return undefined;
}
break reducibleJoin2;
}
reducibleLoop2: while (true) {
try {
binding = env1_2;
} catch (error) {
try {
item2.return();
} catch {
}
throw error;
}
try {
_processEntry = binding._processEntry;
} catch (error) {
try {
item2.return();
} catch {
}
throw error;
}
try {
Reflect.apply(_processEntry, binding, [item]);
} catch (error) {
try {
item2.return();
} catch {
}
throw error;
}
r3 = item2;
item2 = Reflect.apply(iterator2, r3, []);
item = item2.value;
item2 = item2.done ? undefined : r3;
if (item2 === undefined) {
break reducibleLoop2;
}
continue reducibleLoop2;
}
value2 = env1_2._estimateP98LongestInteraction();
reducibleJoin8: while (true) {
if (value2) {
_latency = value2._latency;
value3 = env1_1.value;
value4 = _latency !== value3;
r3 = value4;
break reducibleJoin8;
}
r3 = value2;
break reducibleJoin8;
}
reducibleJoin10: while (true) {
if (r3) {
binding = env1_1;
_latency = value2._latency;
binding.value = _latency;
entries = value2.entries;
binding.entries = entries;
env1_0();
break reducibleJoin10;
}
break reducibleJoin10;
}
}