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

176 lines
7.1 KiB
React

/* Metro module 7436; source: unknown; dependencies: [65, 57, 5, 7413, 7416, 7423] */
function _fun60011(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#60011, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7614:6, offset: 0x016f9314, size: 128 bytes, params: 8, frame: 18
let env0_0 = require;
const closure = eventFromEnvelope_60012;
const env0_2 = require(65) /* metro dependency 65 */;
const env0_3 = require(57) /* metro dependency 57 */;
const env0_4 = require(5) /* metro dependency 5 */;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
exports.eventFromEnvelope = closure;
exports.makeMultiplexedTransport = function(a0, a1) {
var env0_0 = a0;
var env0_1 = a1;
return _fun60015;
};
}
function eventFromEnvelope_60012(a0, a1) { // fn#60012, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7614:68, offset: 0x016f9394, size: 60 bytes, params: 3, frame: 14
const env0_0 = a1;
(require(7413) /* metro dependency 7413 */).forEachEnvelopeItem(a0, _fun60013);
return env0_1;
}
function makeMultiplexedTransport_60014(a0, a1) { // fn#60014, offset: 0x016f93d0, size: 23 bytes, params: 3, frame: 2
const env0_0 = a0;
const env0_1 = a1;
return _fun60015;
}
function _fun60015(a0) { // fn#60015, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7614:383, offset: 0x016f93e7, size: 110 bytes, params: 2, frame: 12
const env0_1 = a0(a0);
const Map = global.Map;
const map = new Map();
return {send: function(a0) {
return _send2_60022.apply(this, arguments);
}, flush: function(a0) {
return _flush_60029.apply(this, arguments);
}};
}
function getTransport_60016(a0, a1) { // fn#60016, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7614:416, offset: 0x016f9455, size: 281 bytes, params: 3, frame: 24
var environment;
var r0;
var moduleValue2;
var value7;
var value8;
var Object;
var assign;
var value10;
const value = a0;
let r1 = a1 ? '' + value + ':' + a1 : value;
let binding = env0_2;
const value4 = binding.get(r1);
if (value4) {
return [value, value4];
}
const value6 = (require(7416) /* metro dependency 7416 */).dsnFromString(value);
if (value6) {
moduleValue2 = require(7423) /* metro dependency 7423 */;
value7 = moduleValue2.getEnvelopeEndpointWithUrlEncodedAuth(value6, env0_0.tunnel);
value8 = environment.__proto__;
binding = env1_0;
if (a1) {
value10 = ((a0, a1) => {
var env0_0 = a0;
var env0_1 = a1;
return _fun60018;
})(binding, a1);
Object = global.Object;
assign = Object.assign;
binding = env0_0;
r0 = value10(Reflect.apply(assign, Object, [{}, binding, {url: value7}]));
} else {
Object = global.Object;
r0 = binding(Object.assign({}, env0_0, {url: value7}));
}
binding = env0_2;
binding.set(r1, r0);
r1 = r0;
return [value, r1];
}
}
function _send2_60022() { // fn#60022, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7614:978, offset: 0x016f95de, size: 50 bytes, params: 1, frame: 13
var environment;
const value = environment.__proto__.__proto__;
return env2_4(_fun60024).apply(this, arguments);
}
function _flush_60029() { // fn#60029, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7614:1515, offset: 0x016f973b, size: 50 bytes, params: 1, frame: 13
var environment;
const value = environment.__proto__.__proto__;
return env2_4(_fun60031).apply(this, arguments);
}
function getTransport_60016MakeOverrideReleaseTransport(a0, a1) { // fn#60017, owner: getTransport_60016.makeOverrideReleaseTransport, offset: 0x016f956e, size: 23 bytes, params: 3, frame: 2
const env0_0 = a0;
const env0_1 = a1;
return _fun60018;
}
function* _fun60024(a0) { // fn#60024, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7614:1013, offset: 0x016f9619, size: 182 bytes, params: 2, frame: 14
var environment;
if (false) {
return undefined;
}
const env0_0 = a0;
value = environment.__proto__.__proto__.__proto__;
value = Reflect.apply(dependencyMap({envelope: a0, getEvent: getEvent_60025}).map, value, [_fun60026]);
value = value.filter(function(a0) {
return !!a0;
});
const r5 = value.length ? value : [['', require]];
const Promise = global.Promise;
yield Promise.all(r5.map(_fun60028));
value = undefined;
if (false) {
return value;
}
return value[0];
}
function* _fun60031(a0) { // fn#60031, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7614:1550, offset: 0x016f9776, size: 145 bytes, params: 2, frame: 17
var environment;
if (false) {
return undefined;
}
const env0_0 = a0;
const items2 = [];
const concat = items2.concat;
value = environment.__proto__.__proto__.__proto__.__proto__;
const binding = env4_2;
value = environment.__proto__.__proto__;
value = Reflect.apply(concat, items2, [binding(env2_2.values()), [require]]);
const Promise = global.Promise;
yield Promise.all(value.map(_fun60032));
value = undefined;
if (false) {
return value;
}
return value.every(function(a0) {
return a0;
});
}
function _fun60018(a0) { // fn#60018, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7614:647, offset: 0x016f9585, size: 80 bytes, params: 2, frame: 18
const value = env0_0(a0);
const Object = global.Object;
const assign = Object.assign;
var env0_0 = env4_4(_fun60020);
return Reflect.apply(assign, Object, [{}, value, {send: send_60021}]);
}
function getEvent_60025(a0) { // fn#60025, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7614:1055, offset: 0x016f96cf, size: 48 bytes, params: 2, frame: 13
let value = a0;
const r3 = value && value.length ? value : ['event'];
value = environment.__proto__.__proto__.__proto__.__proto__.__proto__;
return env5_5(env0_0, r3);
}
function _fun60026(a0) { // fn#60026, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7614:1144, offset: 0x016f96ff, size: 60 bytes, params: 2, frame: 14
var r0;
var value;
if (typeof a0 === 'string') {
value = environment.__proto__.__proto__.__proto__;
value = env3_3(a0, undefined);
r0 = value;
} else {
value = environment.__proto__.__proto__.__proto__;
value = env3_3(a0.dsn, a0.release);
r0 = value;
}
return r0;
}