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,72 @@
/* Metro module 10734; source: modules/connectivity/native/useGlobalStatusIndicatorState.tsx; dependencies: [1379, 4294, 10735, 661, 7734, 9325, 566, 10733, 10731, 4007, 7709, 7713, 10736, 2] */
function _fun82460(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#82460, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10920:6, offset: 0x01ef7acf, size: 178 bytes, params: 8, frame: 19
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const channelStore = importDefault(1379) /* metro dependency 1379: ChannelStore */;
const rtcConnectionStore = importDefault(4294) /* metro dependency 4294: RTCConnectionStore */;
const env0_5 = (require(10735) /* metro dependency 10735: ConnectivityConstants */).RTC_PANEL_HEIGHT;
const env0_6 = (require(661) /* metro dependency 661: Constants */).EMPTY_STRING_SNOWFLAKE_ID;
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/connectivity/native/useGlobalStatusIndicatorState.tsx');
exports.useGlobalStatusIndicatorState = useGlobalStatusIndicatorState;
}
function useGlobalStatusIndicatorState() { // fn#82461, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10920:307, offset: 0x01ef7b81, size: 534 bytes, params: 1, frame: 25
var object2;
var r10;
var r6;
var moduleValue6;
const value = a0;
let r1 = value !== undefined ? value : false;
const value2 = (require(7734) /* metro dependency 7734: usePipVideoOrStream */).useHasPipParticipant({isActivityViewFocused: false});
const value3 = (importDefault(9325) /* metro dependency 9325: useVoiceStateForRemoteSession */)();
const channelId = (require(566) /* metro dependency 566: flux */).useStateFromStores([RTCConnectionStore],
function() {
return RTCConnectionStore.getChannelId();
});
const value4 = (importDefault(10733) /* metro dependency 10733: useIsInvitedToSpeak */)();
const value5 = (require(566) /* metro dependency 566: flux */).useStateFromStores([ChannelStore], _fun82463,
[channelId, value4]);
const value6 = channelId != null;
const value7 = (require(10731) /* metro dependency 10731: StageChannelHeightHooks */).useGetStageRTCPanelHeight(channelId);
const value8 = (require(4007) /* metro dependency 4007: NavigationRouteUtilsNative */).useOpenModalKey();
const value9 = value3 != null;
if (value9) {
moduleValue6 = require(7709) /* metro dependency 7709: PrivateChannelCallUtils */;
r10 = moduleValue6.getVoiceChannelKey(value3.channelId ?? EMPTY_STRING_SNOWFLAKE_ID) !== value8;
} else {
r10 = value9;
}
object2 = {};
object2.voicePanelEnabled = (require(7713) /* metro dependency 7713: VoicePanelUtilsNative */).useIsVoicePanelShowing();
object2.isRemoteVisible = r10;
object2.isVoiceChannelSelected = value6;
object2.hasPipParticipant = value2;
object2.showWhenParticipantOnScreen = r1;
object2.isConnectedToStageChannel = (importDefault(10736) /* metro dependency 10736: useMyCurrentStageChannel */)() != null;
object2.isInvitedToSpeak = value4;
const voicePanelEnabled = object2.voicePanelEnabled;
const isRemoteVisible = object2.isRemoteVisible;
const isVoiceChannelSelected = object2.isVoiceChannelSelected;
const hasPipParticipant = object2.hasPipParticipant;
const showWhenParticipantOnScreen = object2.showWhenParticipantOnScreen;
const isConnectedToStageChannel = object2.isConnectedToStageChannel;
if (voicePanelEnabled) {
r1 = voicePanelEnabled;
} else {
r6 = !isRemoteVisible && (isConnectedToStageChannel ? !object2.isInvitedToSpeak : !isConnectedToStageChannel);
r6 = r6 && (isVoiceChannelSelected ? hasPipParticipant && !showWhenParticipantOnScreen : !isVoiceChannelSelected);
r1 = r6;
}
const value16 = !r1;
object2 = {height: r1 ? r1 ? 0 : RTC_PANEL_HEIGHT : value4 ? value7 : r1 ? 0 : RTC_PANEL_HEIGHT, isVisible: value16};
r1 = (r1 ? value16 : value6) && !value5;
object2.isCustomBackground = r1;
return object2;
}
function _fun82463() { // fn#82463, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10920:496, offset: 0x01ef7daa, size: 57 bytes, params: 1, frame: 12
const value = environment.__proto__;
return ChannelStore.getChannel(channelId)?.isGuildStageVoice() && !env0_1;
}