Initial commit

This commit is contained in:
janisslsm committed 2026-07-27 16:20:00 +03:00
commit af3b49f756
16065 files changed
+2938410

No files matched your search

@@ -0,0 +1,33 @@
/* Metro module 15491; source: modules/errors/hooks/useCameraEncodeError.tsx; dependencies: [1226, 10672, 566, 9235, 2] */
function _fun118627(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#118627, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15688:6, offset: 0x024e53d6, size: 130 bytes, params: 8, frame: 19
let env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const authenticationStore = importDefault(1226) /* metro dependency 1226: AuthenticationStore */;
const avErrorStore = importDefault(10672) /* metro dependency 10672: AVErrorStore */;
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/errors/hooks/useCameraEncodeError.tsx');
exports.default = function(a0) {
var env0_0 = a0;
return require(dependencyMap[2]).useStateFromStores([AVErrorStore, AuthenticationStore], _fun118629);
};
}
function useCameraEncodeError(a0) { // fn#118628, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15688:205, offset: 0x024e5458, size: 74 bytes, params: 2, frame: 15
const env0_0 = a0;
return (require(566) /* metro dependency 566: flux */).useStateFromStores([AVErrorStore, AuthenticationStore],
_fun118629);
}
function _fun118629() { // fn#118629, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15688:279, offset: 0x024e54a2, size: 103 bytes, params: 1, frame: 13
var getActiveErrorsOfType;
var property;
let value = environment.__proto__;
if (AuthenticationStore.getId() === env0_0) {
getActiveErrorsOfType = AVErrorStore.getActiveErrorsOfType;
value = undefined;
property = Reflect.apply(getActiveErrorsOfType, AVErrorStore,
[(require(9235) /* metro dependency 9235: AVError */).AVError.CAMERA_SEND_LOW_FPS])[0];
return property == null ? value : property.type;
}
}
@@ -0,0 +1,65 @@
/* Metro module 10681; source: modules/errors/hooks/useVideoReadyTimeout.tsx; dependencies: [31, 672, 4041, 10680, 4406, 10682, 10685, 2] */
function _fun82121(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#82121, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10867:6, offset: 0x01eec051, size: 152 bytes, params: 8, frame: 18
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const env0_2 = importAll(31) /* metro dependency 31 */;
const Millis = (importDefault(672) /* metro dependency 672: Durations */).Millis;
const SECOND = Millis.SECOND;
const env0_3 = 20 * SECOND;
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/errors/hooks/useVideoReadyTimeout.tsx');
exports.default = useVideoReadyTimeout;
}
function useVideoReadyTimeout({streamId, userId, videoSpinnerContext, streamKey, loading, paused}) { // fn#82122, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10867:222, offset: 0x01eec0e9, size: 363 bytes, params: 2, frame: 24
const MediaEngineContextTypes = (require(4406) /* metro dependency 4406: mediaEngine */).MediaEngineContextTypes;
const env0_2 = streamKey;
paused = !(paused === undefined) && paused;
let binding = env0_2;
const useRef = binding.useRef;
const Timeout = (require(4041) /* metro dependency 4041: Timers */).Timeout;
const value2 = Object.create(Timeout.prototype, {constructor: {value: Timeout}});
const timeout = new Timeout();
const env0_5 = Reflect.apply(useRef, binding, [timeout instanceof Object ? timeout : value2]);
const VideoSpinnerContext = (require(10680) /* metro dependency 10680: VideoSpinnerTimer */).VideoSpinnerContext;
const SELF_STREAM = VideoSpinnerContext.SELF_STREAM;
const r5 = videoSpinnerContext === SELF_STREAM || videoSpinnerContext === VideoSpinnerContext.REMOTE_STREAM ? MediaEngineContextTypes.STREAM : MediaEngineContextTypes.DEFAULT;
binding = env0_2;
binding.useEffect(_fun82123, [paused, streamId, loading, r5, streamKey, userId]);
const useCallback = binding.useCallback;
return {onReady: Reflect.apply(useCallback, binding, [_fun82126, [userId, r5]])};
}
function _fun82123() { // fn#82123, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10867:560, offset: 0x01eec254, size: 111 bytes, params: 1, frame: 15
var environment;
var value2;
var WindowVisibilityVideoManager;
var current;
if (loading) {
if (paused) {
return undefined;
}
value2 = environment.__proto__;
WindowVisibilityVideoManager = (require(10682) /* metro dependency 10682: WindowVisibilityVideoManager */).WindowVisibilityVideoManager;
if (WindowVisibilityVideoManager.isIncomingVideoEnabled()) {
current = env0_5.current;
current.start(env1_3, _fun82124);
return function() {
current.stop();
};
}
}
}
function _fun82126() { // fn#82126, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10867:774, offset: 0x01eec313, size: 69 bytes, params: 1, frame: 14
env0_5.current.stop();
const videoStreamReadyActionCreatorsModule = require(10685) /* metro dependency 10685: VideoStreamReadyActionCreators */;
videoStreamReadyActionCreatorsModule.clearVideoStreamTimeout(env0_6, userId);
}
function _fun82124() { // fn#82124, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10867:672, offset: 0x01eec2c3, size: 59 bytes, params: 1, frame: 18
let value = environment.__proto__.__proto__;
value = require(10685) /* metro dependency 10685: VideoStreamReadyActionCreators */;
value.videoStreamTimedOut(streamId, userId, env1_6, streamKey);
}
@@ -0,0 +1,89 @@
/* Metro module 10671; source: modules/errors/hooks/useVideoStreamError.tsx; dependencies: [1226, 10672, 4291, 566, 9235, 2] */
function _fun82060(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#82060, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10857:6, offset: 0x01ee9979, size: 171 bytes, params: 8, frame: 20
let env0_0 = require;
const closure = function(a0, a1) {
var env0_0 = a0;
var env0_1 = a1;
return require(dependencyMap[3]).useStateFromStores([AVErrorStore, AuthenticationStore], _fun82062);
};
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const authenticationStore = importDefault(1226) /* metro dependency 1226: AuthenticationStore */;
const avErrorStore = importDefault(10672) /* metro dependency 10672: AVErrorStore */;
const env0_4 = (require(4291) /* metro dependency 4291: Constants */).MediaEngineContextTypes;
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/errors/hooks/useVideoStreamError.tsx');
exports.default = useVideoStreamError;
exports.useVideoStreamErrorContext = closure;
}
function useVideoStreamErrorContext(a0, a1) { // fn#82061, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10857:150, offset: 0x01ee9a24, size: 81 bytes, params: 3, frame: 15
const env0_0 = a0;
const env0_1 = a1;
return (require(566) /* metro dependency 566: flux */).useStateFromStores([AVErrorStore, AuthenticationStore],
_fun82062);
}
function useVideoStreamError(a0, a1) { // fn#82063, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10857:850, offset: 0x01ee9c00, size: 37 bytes, params: 3, frame: 13
const value = undefined;
const value2 = useVideoStreamErrorContext(a0, a1);
return value2 == null ? value : value2.type;
}
function _fun82062() { // fn#82062, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10857:232, offset: 0x01ee9a75, size: 395 bytes, params: 1, frame: 22
var r2;
var r3;
var getActiveErrorsOfType;
const AVError = (require(9235) /* metro dependency 9235: AVError */).AVError;
var activeErrorsOfType;
var items2;
var value7;
var value8;
var property;
var mediaContext;
var userId;
let value = environment.__proto__;
if (AuthenticationStore.getId() === require) {
r2 = env0_0 === MediaEngineContextTypes.STREAM ? AVErrorStore.getActiveErrorsOfType(AVError.SCREENSHARE_OS_ERROR) : [];
items2 = [];
value7 = arraySpread(items2, r2, 0, undefined);
getActiveErrorsOfType = AVErrorStore.getActiveErrorsOfType;
value8 = arraySpread(items2, Reflect.apply(getActiveErrorsOfType, AVErrorStore,
[AVError.VIDEO_STREAM_SENDER_READY_TIMEOUT]), value7, AVErrorStore);
getActiveErrorsOfType = AVErrorStore.getActiveErrorsOfType;
arraySpread(items2, Reflect.apply(getActiveErrorsOfType, AVErrorStore,
[AVError.VIDEO_STREAM_SENDER_READY_TIMEOUT_NO_STREAM]), value8, AVErrorStore);
r3 = items2;
} else {
activeErrorsOfType = AVErrorStore.getActiveErrorsOfType(AVError.VIDEO_STREAM_RECEIVER_READY_TIMEOUT);
items2 = [];
arraySpread(items2, AVErrorStore.getActiveErrorsOfType(AVError.VIDEO_STREAM_RECEIVER_READY_TIMEOUT_NO_STREAM),
arraySpread(items2, activeErrorsOfType, 0, undefined), undefined);
r3 = items2;
}
let length = r3.length;
value = 0;
if (value < length) {
r2 = value;
reducibleLoop7: while (true) {
property = r3[r2];
mediaContext = property.mediaContext;
if (mediaContext === env0_0) {
userId = property.userId;
reducibleJoin9: while (true) {
if (userId === require) {
return property;
}
break reducibleJoin9;
}
}
value = typeof r2 === 'bigint' ? r2 + 1n : +r2 + 1;
length = r3.length;
if (!(value < length)) {
return undefined;
}
r2 = value;
continue reducibleLoop7;
}
}
}