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

@@ -1,171 +1,182 @@
/* Metro module 6723; source: modules/main_app_window/web/AppWindowContext.tsx; dependencies: [57, 31, 661, 33, 1239, 6724, 1864, 6725, 2] */
import Module00057 from '../../../by-id/module-00057.js'; /* Metro dependency 57 */
import * as FileImportTrackerModule from '../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ReactModule from '../../../by-id/module-00031-React.js'; /* Metro dependency 31 */
import * as JsxRuntimeModule from '../../../by-id/module-00033-JsxRuntime.js'; /* Metro dependency 33 */
import * as ConstantsModule from '../../../Constants.tsx'; /* Metro dependency 661 */
import * as ComponentDispatchUtilsModule from '../../../utils/ComponentDispatchUtils.tsx'; /* Metro dependency 1239 */
import * as DOMUtilsModule from '../../../external/discord_common/js/shared/utils/DOMUtils.tsx'; /* Metro dependency 1864 */
import * as WindowIdUtilsModule from '../../../utils/web/WindowIdUtils.tsx'; /* Metro dependency 6724 */
import * as WindowInteractingUtilsModule from '../../../utils/web/WindowInteractingUtils.tsx'; /* Metro dependency 6725 */
function _fun52775(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#52775, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6901:6, offset: 0x013373c8, size: 422 bytes, params: 8, frame: 24
var object2;
const env0_0 = require;
const closure = getWindowDispatchForElement;
const closure2 = getCurrentlyInteractingAppWindowContext;
const getWindowDispatchForElement2 = getWindowDispatchForElement;
const getCurrentlyInteractingAppWindowContext2 = getCurrentlyInteractingAppWindowContext;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const env0_2 = importDefault(57) /* metro dependency 57 */;
let value = importAll(31) /* metro dependency 31 */;
const AppContext = (require(661) /* metro dependency 661: Constants */).AppContext;
const env0_4 = (require(33) /* metro dependency 33 */).jsx;
const ComponentDispatcher = (require(1239) /* metro dependency 1239: ComponentDispatchUtils */).ComponentDispatcher;
let value = ReactModule;
const AppContext = (ConstantsModule).AppContext;
const ComponentDispatcher = (ComponentDispatchUtilsModule).ComponentDispatcher;
const componentDispatcher = new ComponentDispatcher();
const createContext = value.createContext;
object2 = {};
object = {};
const APP = AppContext.APP;
object2.appContext = APP;
object2.renderWindow = global.window;
object2.windowDispatch = componentDispatcher;
object2.windowId = (require(6724) /* metro dependency 6724: WindowIdUtils */).getMainWindowId();
value = Reflect.apply(createContext, value, [object2]);
object.appContext = APP;
object.renderWindow = global.window;
object.windowDispatch = componentDispatcher;
object.windowId = (require(6724) /* metro dependency 6724: WindowIdUtils */).getMainWindowId();
value = Reflect.apply(createContext, value, [object]);
const Map = global.Map;
const map = new Map();
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/main_app_window/web/AppWindowContext.tsx');
(FileImportTrackerModule).fileFinishedImporting('modules/main_app_window/web/AppWindowContext.tsx');
exports.default = value;
exports.MainWindowDispatch = componentDispatcher;
exports.getWindowDispatchForElement = closure;
exports.getWindowDispatchForElement = getWindowDispatchForElement2;
exports.getWindowDispatchForEvent = getWindowDispatchForEvent;
exports.getCurrentlyInteractingAppWindowContext = closure2;
exports.getCurrentlyInteractingAppWindowContext = getCurrentlyInteractingAppWindowContext2;
exports.getAppWindowContextValue = getAppWindowContextValue;
exports.getCurrentlyInteractingAppContext = getCurrentlyInteractingAppContext;
exports.AppWindowContextProvider = AppWindowContextProvider;
exports.useAppContext = useAppContext;
exports.useWindowDispatch = useWindowDispatch;
}
function getWindowDispatchForElement({ownerDocument}) { // fn#52776, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6901:306, offset: 0x0133756e, size: 90 bytes, params: 2, frame: 14
var value;
var value2;
const defaultView = ownerDocument.defaultView;
if (defaultView != null) {
value2 = undefined;
value = env0_6.get((require(6724) /* metro dependency 6724: WindowIdUtils */).getWindowId(defaultView));
return value == null ? value2 : value.windowDispatch;
function getWindowDispatchForElement({ownerDocument}) { // fn#52776, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6901:306, offset: 0x0133756e, size: 90 bytes, params: 2, frame: 14
var value;
var value2;
const defaultView = ownerDocument.defaultView;
if (defaultView != null) {
value2 = undefined;
value = env0_6.get((require(6724) /* metro dependency 6724: WindowIdUtils */).getWindowId(defaultView));
return value == null ? value2 : value.windowDispatch;
}
}
}
function getCurrentlyInteractingAppWindowContext() { // fn#52777, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6901:474, offset: 0x013375c8, size: 77 bytes, params: 1, frame: 13
var r0;
var value;
const currentlyInteractingWindowId = (require(6725) /* metro dependency 6725: WindowInteractingUtils */).getCurrentlyInteractingWindowId();
const value3 = null;
if (value3 == currentlyInteractingWindowId) {
r0 = value3;
} else {
value = env0_6.get(currentlyInteractingWindowId);
r0 = value3 != value ? value : value3;
function getCurrentlyInteractingAppWindowContext() { // fn#52777, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6901:474, offset: 0x013375c8, size: 77 bytes, params: 1, frame: 13
var r0;
var value;
const currentlyInteractingWindowId = (WindowInteractingUtilsModule).getCurrentlyInteractingWindowId();
const value3 = null;
if (value3 == currentlyInteractingWindowId) {
r0 = value3;
} else {
value = env0_6.get(currentlyInteractingWindowId);
r0 = value3 != value ? value : value3;
}
return r0;
}
return r0;
}
function getWindowDispatchForEvent(a0) { // fn#52778, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6901:832, offset: 0x01337615, size: 90 bytes, params: 2, frame: 16
var r0;
var windowDispatchForElement;
const value2 = undefined;
const domUtilsModule = require(1864) /* metro dependency 1864: DOMUtils */;
const isElement = domUtilsModule.isElement;
const value3 = null;
if (Reflect.apply(isElement, domUtilsModule, [value3 == a0 ? value2 : a0.target])) {
windowDispatchForElement = getWindowDispatchForElement(a0.target);
r0 = value3 != windowDispatchForElement ? windowDispatchForElement : value3;
} else {
r0 = value3;
function getWindowDispatchForEvent(a0) { // fn#52778, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6901:832, offset: 0x01337615, size: 90 bytes, params: 2, frame: 16
var r0;
var windowDispatchForElement;
const value2 = undefined;
const isElement = DOMUtilsModule.isElement;
const value3 = null;
if (Reflect.apply(isElement, DOMUtilsModule, [value3 == a0 ? value2 : a0.target])) {
windowDispatchForElement = getWindowDispatchForElement(a0.target);
r0 = value3 != windowDispatchForElement ? windowDispatchForElement : value3;
} else {
r0 = value3;
}
return r0;
}
return r0;
}
function getAppWindowContextValue(a0) { // fn#52779, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6901:1092, offset: 0x0133766f, size: 22 bytes, params: 2, frame: 11
return env0_6.get(a0);
}
function getCurrentlyInteractingAppContext() { // fn#52780, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6901:1182, offset: 0x01337685, size: 30 bytes, params: 1, frame: 10
const currentlyInteractingAppWindowContext = getCurrentlyInteractingAppWindowContext();
const value2 = null;
return value2 != currentlyInteractingAppWindowContext ? currentlyInteractingAppWindowContext.appContext : value2;
}
function AppWindowContextProvider({appContext, renderWindow, children}) { // fn#52781, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6901:1336, offset: 0x013376a3, size: 70 bytes, params: 2, frame: 15
const value = useWindowContextValue(appContext, renderWindow);
const Provider = env0_5.Provider;
return (
<Provider value={value}>
{children}
</Provider>
);
}
function useAppContext() { // fn#52791, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6901:2068, offset: 0x0133794c, size: 30 bytes, params: 1, frame: 11
const binding = env0_3;
const useContext = binding.useContext;
return Reflect.apply(useContext, binding, [env0_5]).appContext;
}
function useWindowDispatch() { // fn#52792, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6901:2148, offset: 0x0133796a, size: 30 bytes, params: 1, frame: 11
const binding = env0_3;
const useContext = binding.useContext;
return Reflect.apply(useContext, binding, [env0_5]).windowDispatch;
}
function useWindowContextValue(a0, a1) { // fn#52782, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6901:1418, owner: AppWindowContextProvider.useWindowContextValue, offset: 0x013376e9, size: 226 bytes, params: 3, frame: 18
var environment;
const env0_0 = a0;
const env0_1 = a1;
let value = environment.__proto__;
const binding = env1_3;
const useState = binding.useState;
const windowIdUtilsModule = require(6724) /* metro dependency 6724: WindowIdUtils */;
const getWindowId = windowIdUtilsModule.getWindowId;
value = env1_2(Reflect.apply(useState, binding, [Reflect.apply(getWindowId, windowIdUtilsModule, [a1])]), 2);
const property = value[0];
const env0_3 = value[1];
value = binding.useMemo(_fun52783, []);
value = binding.useMemo(_fun52784, [a0, a1, value, property]);
binding.useEffect(_fun52785, [a1, property]);
binding.useEffect(_fun52788, [value, a1, property]);
return value;
}
function _fun52783() { // fn#52783, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6901:1531, offset: 0x013377cb, size: 53 bytes, params: 1, frame: 11
let value = environment.__proto__.__proto__;
const ComponentDispatcher = (require(1239) /* metro dependency 1239: ComponentDispatchUtils */).ComponentDispatcher;
value = Object.create(ComponentDispatcher.prototype, {constructor: {value: ComponentDispatcher}});
const componentDispatcher = new ComponentDispatcher();
return componentDispatcher instanceof Object ? componentDispatcher : value;
}
function _fun52784() { // fn#52784, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6901:1586, offset: 0x01337800, size: 43 bytes, params: 1, frame: 3
return {appContext: env0_0, renderWindow: require, windowDispatch: env0_4, windowId: env0_2};
}
function _fun52785() { // fn#52785, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6901:1682, offset: 0x0133782b, size: 54 bytes, params: 1, frame: 14
if (env0_2 == null) {
var env0_0 = global.setInterval(_fun52786, 10);
return _fun52787;
function getAppWindowContextValue(a0) { // fn#52779, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6901:1092, offset: 0x0133766f, size: 22 bytes, params: 2, frame: 11
return env0_6.get(a0);
}
}
function _fun52788() { // fn#52788, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6901:1841, offset: 0x013378c9, size: 69 bytes, params: 1, frame: 15
const binding = env2_6;
binding.set(env0_2, env0_5);
require.addEventListener('unload', handleUnload);
return function() {
return require.removeEventListener('unload', handleUnload);
};
}
function _fun52786() { // fn#52786, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6901:1718, offset: 0x01337861, size: 80 bytes, params: 1, frame: 13
let value = environment.__proto__.__proto__.__proto__;
value = require(6724) /* metro dependency 6724: WindowIdUtils */;
value = value.getWindowId(require);
if (value != null) {
env1_3(value);
global.clearInterval(env0_0);
function getCurrentlyInteractingAppContext() { // fn#52780, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6901:1182, offset: 0x01337685, size: 30 bytes, params: 1, frame: 10
const currentlyInteractingAppWindowContext = getCurrentlyInteractingAppWindowContext();
const value2 = null;
return value2 != currentlyInteractingAppWindowContext ? currentlyInteractingAppWindowContext.appContext : value2;
}
function AppWindowContextProvider({appContext, renderWindow, children}) { // fn#52781, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6901:1336, offset: 0x013376a3, size: 70 bytes, params: 2, frame: 15
const value = useWindowContextValue(appContext, renderWindow);
const Provider = env0_5.Provider;
return (
<Provider value={value}>
{children}
</Provider>
);
function useWindowContextValue(a0, a1) { // fn#52782, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6901:1418, owner: AppWindowContextProvider.useWindowContextValue, offset: 0x013376e9, size: 226 bytes, params: 3, frame: 18
var environment;
const env0_0 = a0;
const env0_1 = a1;
let value = environment.__proto__;
const binding = env1_3;
const useState = binding.useState;
const getWindowId = WindowIdUtilsModule.getWindowId;
value = env1_2(Reflect.apply(useState, binding, [Reflect.apply(getWindowId, WindowIdUtilsModule, [a1])]), 2);
const property = value[0];
const env0_3 = value[1];
value = binding.useMemo(_fun52783, []);
value = binding.useMemo(_fun52784, [a0, a1, value, property]);
binding.useEffect(_fun52785, [a1, property]);
binding.useEffect(_fun52788, [value, a1, property]);
return value;
function _fun52783() { // fn#52783, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6901:1531, offset: 0x013377cb, size: 53 bytes, params: 1, frame: 11
let value = environment.__proto__.__proto__;
const ComponentDispatcher = (ComponentDispatchUtilsModule).ComponentDispatcher;
value = Object.create(ComponentDispatcher.prototype, {constructor: {value: ComponentDispatcher}});
const componentDispatcher = new ComponentDispatcher();
return componentDispatcher instanceof Object ? componentDispatcher : value;
}
function _fun52784() { // fn#52784, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6901:1586, offset: 0x01337800, size: 43 bytes, params: 1, frame: 3
return {appContext: env0_0, renderWindow: require, windowDispatch: JsxRuntimeModule.jsx, windowId: Module00057};
}
function _fun52785() { // fn#52785, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6901:1682, offset: 0x0133782b, size: 54 bytes, params: 1, frame: 14
if (Module00057 == null) {
var env0_0 = global.setInterval(_fun52786, 10);
return _fun52787;
}
function _fun52786() { // fn#52786, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6901:1718, offset: 0x01337861, size: 80 bytes, params: 1, frame: 13
let value = environment.__proto__.__proto__.__proto__;
value = require(6724) /* metro dependency 6724: WindowIdUtils */;
value = value.getWindowId(require);
if (value != null) {
env1_3(value);
global.clearInterval(env0_0);
}
}
function _fun52787() { // fn#52787, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6901:1797, offset: 0x013378b1, size: 24 bytes, params: 1, frame: 11
return global.clearInterval(env0_0);
}
}
function _fun52788() { // fn#52788, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6901:1841, offset: 0x013378c9, size: 69 bytes, params: 1, frame: 15
const binding = env2_6;
binding.set(Module00057, env0_5);
require.addEventListener('unload', handleUnload);
return function() {
return require.removeEventListener('unload', handleUnload);
};
function handleUnload() { // fn#52789, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6901:1874, offset: 0x0133790e, size: 28 bytes, params: 1, frame: 11
env3_6.delete(env1_2);
}
}
}
}
function useAppContext() { // fn#52791, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6901:2068, offset: 0x0133794c, size: 30 bytes, params: 1, frame: 11
const binding = env0_3;
const useContext = binding.useContext;
return Reflect.apply(useContext, binding, [env0_5]).appContext;
}
function useWindowDispatch() { // fn#52792, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6901:2148, offset: 0x0133796a, size: 30 bytes, params: 1, frame: 11
const binding = env0_3;
const useContext = binding.useContext;
return Reflect.apply(useContext, binding, [env0_5]).windowDispatch;
}
}
function handleUnload() { // fn#52789, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6901:1874, offset: 0x0133790e, size: 28 bytes, params: 1, frame: 11
env3_6.delete(env1_2);
}
global.__d(_fun52775, 6723, [57, 31, 661, 33, 1239, 6724, 1864, 6725,
2]) /* metro module 6723, dependencies: [57, 31, 661, 33, 1239, 6724, 1864, 6725, 2] */;