This commit is contained in:
janisslsm committed 2026-07-28 01:06:53 +03:00
1 parent af3b49f756
commit 1781d25a15
22448 files changed
+2731829 -2650550

No files matched your search

File diff suppressed because it is too large. Load diff
File diff suppressed because it is too large. Load diff
File diff suppressed because it is too large. Load diff
+97 -80
View File
@@ -1,8 +1,9 @@
/* Metro module 9465; source: utils/web/ProtocolUtils.tsx; dependencies: [4222, 2] */
import * as FileImportTrackerModule from '../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
function _fun73598(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#73598, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9651:6, offset: 0x01d72ba8, size: 307 bytes, params: 8, frame: 24
var object2;
var r3;
let closure = launchFirefox;
const launchFirefox2 = launchFirefox;
const closure2 = function(a0, a1) {
var env0_0 = a1;
var closure = _fun73606;
@@ -22,101 +23,117 @@ function _fun73598(global, require, importDefault, importAll, module, exports, d
};
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
object2 = {};
object = {};
const value = undefined;
let os = (importDefault(4222) /* metro dependency 4222 */).os;
if ((os == null ? value : os.family) === 'Android') {
r3 = closure4;
} else {
os = (importDefault(4222) /* metro dependency 4222 */).os;
r3 = (os == null ? value : os.family) === 'iOS' ? closure4 : (importDefault(4222) /* metro dependency 4222 */).layout === 'Gecko' ? closure : (importDefault(4222) /* metro dependency 4222 */).ua == null ? closure2 : (importDefault(4222) /* metro dependency 4222 */).ua.indexOf('Valve Steam GameOverlay') !== -1 ? closure3 : closure2;
r3 = (os == null ? value : os.family) === 'iOS' ? closure4 : (importDefault(4222) /* metro dependency 4222 */).layout === 'Gecko' ? launchFirefox2 : (importDefault(4222) /* metro dependency 4222 */).ua == null ? closure2 : (importDefault(4222) /* metro dependency 4222 */).ua.indexOf('Valve Steam GameOverlay') !== -1 ? closure3 : closure2;
}
object2.launch = r3;
(require(2) /* metro dependency 2 */).fileFinishedImporting('utils/web/ProtocolUtils.tsx');
exports.default = object2;
object.launch = r3;
(FileImportTrackerModule).fileFinishedImporting('utils/web/ProtocolUtils.tsx');
exports.default = object;
return value;
}
function launchFirefox(a0, a1) { // fn#73599, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9651:44, offset: 0x01d72cdb, size: 308 bytes, params: 3, frame: 19
var location;
var process;
var document;
var body;
var contentWindow;
var value2;
var closure;
var error;
var name;
const env0_0 = a1;
let value = a0.startsWith('discord:');
if (value) {
document = global.document;
body = document.body;
if (body == null) {
return global.process.nextTick(function() {
return require(false);
});
}
document = global.document;
value = document.createElement('iframe');
body.appendChild(value);
try {
contentWindow = value.contentWindow;
value2 = contentWindow == null;
if (!value2) {
function launchFirefox(a0, a1) { // fn#73599, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9651:44, offset: 0x01d72cdb, size: 308 bytes, params: 3, frame: 19
var location;
var process;
var document;
var body;
var contentWindow;
var value2;
var closure;
var error;
var name;
const env0_0 = a1;
let value = a0.startsWith('discord:');
if (value) {
document = global.document;
body = document.body;
if (body == null) {
return global.process.nextTick(function() {
return require(false);
});
}
document = global.document;
value = document.createElement('iframe');
body.appendChild(value);
try {
contentWindow = value.contentWindow;
location = contentWindow.location;
location.href = a0;
}
process = global.process;
closure = _fun73602;
process.nextTick(closure);
} catch (error) {
name = error.name;
if (name === 'NS_ERROR_UNKNOWN_PROTOCOL') {
value2 = contentWindow == null;
if (!value2) {
contentWindow = value.contentWindow;
location = contentWindow.location;
location.href = a0;
}
process = global.process;
process.nextTick(_fun73603);
closure = _fun73602;
process.nextTick(closure);
} catch (error) {
name = error.name;
if (name === 'NS_ERROR_UNKNOWN_PROTOCOL') {
process = global.process;
process.nextTick(_fun73603);
}
}
global.window.setTimeout(_fun73604, 1000);
return undefined;
}
global.window.setTimeout(_fun73604, 1000);
return undefined;
global.location.href = a0;
return global.process.nextTick(function() {
return require(true);
});
function _fun73602() { // fn#73602, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9651:357, offset: 0x01d72e0f, size: 18 bytes, params: 1, frame: 11
return require(true);
}
function _fun73603() { // fn#73603, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9651:434, offset: 0x00d6ca9a, size: 18 bytes, params: 1, frame: 11
return require(false);
}
function _fun73604() { // fn#73604, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9651:465, offset: 0x01d72e21, size: 67 bytes, params: 1, frame: 14
const value2 = null;
const value3 = undefined;
const parentElement = value2 == env0_2 ? value3 : env0_2.parentElement;
if (value2 !== (value2 != parentElement ? parentElement : value2)) {
body.removeChild(env0_2);
}
return value3;
}
}
global.location.href = a0;
return global.process.nextTick(function() {
return require(true);
});
}
function launchChrome(a0, a1) { // fn#73605, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9651:558, offset: 0x01d72e64, size: 94 bytes, params: 3, frame: 15
const env0_0 = a1;
global.window.addEventListener('blur', function() {
env0_1 = true;
});
global.location.href = a0;
global.setTimeout(_fun73607, 1000);
}
function launchChrome(a0, a1) { // fn#73605, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9651:558, offset: 0x01d72e64, size: 94 bytes, params: 3, frame: 15
const env0_0 = a1;
global.window.addEventListener('blur', function() {
env0_1 = true;
});
global.location.href = a0;
global.setTimeout(_fun73607, 1000);
function handleBlur() { // fn#73606, owner: launchChrome.handleBlur, offset: 0x01d72ec2, size: 13 bytes, params: 1, frame: 2
}
function launchMobile(a0, a1) { // fn#73609, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9651:787, offset: 0x01d72f0d, size: 54 bytes, params: 3, frame: 12
const env0_0 = a1;
global.location.href = a0;
global.process.nextTick(function() {
return require(true);
});
}
function _fun73607() { // fn#73607, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9651:692, offset: 0x01d72ecf, size: 48 bytes, params: 1, frame: 14
const window = global.window;
window.removeEventListener('blur', handleBlur);
require(env0_1);
}
}
function launchMobile(a0, a1) { // fn#73609, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9651:787, offset: 0x01d72f0d, size: 54 bytes, params: 3, frame: 12
const env0_0 = a1;
global.location.href = a0;
global.process.nextTick(function() {
return require(true);
});
function _fun73610() { // fn#73610, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9651:848, offset: 0x01d72e0f, size: 18 bytes, params: 1, frame: 11
return require(true);
}
function _fun73604() { // fn#73604, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9651:465, offset: 0x01d72e21, size: 67 bytes, params: 1, frame: 14
const value2 = null;
const value3 = undefined;
const parentElement = value2 == env0_2 ? value3 : env0_2.parentElement;
if (value2 !== (value2 != parentElement ? parentElement : value2)) {
body.removeChild(env0_2);
}
return value3;
}
function _fun73607() { // fn#73607, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9651:692, offset: 0x01d72ecf, size: 48 bytes, params: 1, frame: 14
const window = global.window;
window.removeEventListener('blur', handleBlur);
require(env0_1);
}
global.__d(_fun73598, 9465, [4222, 2]) /* metro module 9465, dependencies: [4222, 2] */;
+12 -8
View File
@@ -1,4 +1,7 @@
/* Metro module 6724; source: utils/web/WindowIdUtils.tsx; dependencies: [22, 2] */
import * as FileImportTrackerModule from '../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as Module00022Module from '../../by-id/module-00022.js'; /* Metro dependency 22 */
function _fun52793(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#52793, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6902:6, offset: 0x01337988, size: 122 bytes, params: 8, frame: 19
const env0_0 = require;
const closure = function(a0) {
@@ -6,18 +9,19 @@ function _fun52793(global, require, importDefault, importAll, module, exports, d
};
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
(require(2) /* metro dependency 2 */).fileFinishedImporting('utils/web/WindowIdUtils.tsx');
(FileImportTrackerModule).fileFinishedImporting('utils/web/WindowIdUtils.tsx');
exports.getWindowId = closure;
exports.setupWindowId = setupWindowId;
exports.getMainWindowId = function() {
return getWindowId(global.window);
};
function setupWindowId(a0) { // fn#52795, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6902:248, offset: 0x01337a0d, size: 52 bytes, params: 2, frame: 11
let value = Module00022Module;
value = value.uniqueId('window-');
a0.__DISCORD_WINDOW_ID = value;
return value;
}
}
function setupWindowId(a0) { // fn#52795, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6902:248, offset: 0x01337a0d, size: 52 bytes, params: 2, frame: 11
let value = require(22) /* metro dependency 22 */;
value = value.uniqueId('window-');
a0.__DISCORD_WINDOW_ID = value;
return value;
}
global.__d(_fun52793, 6724, [22, 2]) /* metro module 6724, dependencies: [22, 2] */;
+12 -5
View File
@@ -1,18 +1,25 @@
/* Metro module 6725; source: utils/web/WindowInteractingUtils.tsx; dependencies: [2] */
import * as FileImportTrackerModule from '../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
function _fun52797(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#52797, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6903:6, offset: 0x01337a59, size: 135 bytes, params: 8, frame: 16
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
(require(2) /* metro dependency 2 */).fileFinishedImporting('utils/web/WindowInteractingUtils.tsx');
(FileImportTrackerModule).fileFinishedImporting('utils/web/WindowInteractingUtils.tsx');
exports.INTERACTION_EVENTS = ['click', 'mousedown', 'mouseup', 'keydown', 'keyup', 'keypress', 'contextmenu'];
exports.getCurrentlyInteractingWindowId = getCurrentlyInteractingWindowId;
exports.setCurrentlyInteractingWindowId = function(a0) {
env0_0 = a0;
};
exports.clearCurrentlyInteractingWindowId = clearCurrentlyInteractingWindowId;
}
function clearCurrentlyInteractingWindowId(a0) { // fn#52800, offset: 0x01337ae0, size: 24 bytes, params: 2, frame: 3
if (env0_0 !== a0) {
function getCurrentlyInteractingWindowId() { // fn#52798, offset: 0x00c36f09, size: 9 bytes, params: 1, frame: 1
return env0_0;
}
function clearCurrentlyInteractingWindowId(a0) { // fn#52800, offset: 0x01337ae0, size: 24 bytes, params: 2, frame: 3
if (env0_0 !== a0) {
}
}
}
global.__d(_fun52797, 6725, [2]) /* metro module 6725, dependencies: [2] */;