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,76 @@
/* Metro module 14542; source: modules/guild_sidebar/native/VoiceUser.tsx; dependencies: [31, 1378, 4606, 4492, 1226, 4259, 4296, 4297, 33, 566, 14543, 2] */
function _fun110012(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#110012, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14739:6, offset: 0x02365dd2, size: 250 bytes, params: 8, frame: 19
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
importAll(31) /* metro dependency 31 */;
const embeddedActivitiesStore = importDefault(1378) /* metro dependency 1378: EmbeddedActivitiesStore */;
const channelRTCStore = importDefault(4606) /* metro dependency 4606: ChannelRTCStore */;
const applicationStreamingStore = importDefault(4492) /* metro dependency 4492: ApplicationStreamingStore */;
const authenticationStore = importDefault(1226) /* metro dependency 1226: AuthenticationStore */;
const mediaEngineStore = importDefault(4259) /* metro dependency 4259: MediaEngineStore */;
const sessionsStore = importDefault(4296) /* metro dependency 4296: SessionsStore */;
const voiceStateStore = importDefault(4297) /* metro dependency 4297: VoiceStateStore */;
const env0_10 = (require(33) /* metro dependency 33 */).jsx;
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/guild_sidebar/native/VoiceUser.tsx');
exports.default = VoiceUserConnected;
}
function VoiceUserConnected({channel, user, sessionId, member, selfMute, selfDeaf, selfVideo, mute, deaf, suppress, collapsed, isGuest}) { // fn#110013, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14739:275, offset: 0x02365ecc, size: 630 bytes, params: 2, frame: 39
const value3 = AuthenticationStore.getId() === user.id;
const {localMute,
localVideo} = (require(566) /* metro dependency 566: flux */).useStateFromStoresObject([MediaEngineStore],
_fun110014);
const fluxModule = require(566) /* metro dependency 566: flux */;
let useStateFromStores = fluxModule.useStateFromStores;
const streamForUser = Reflect.apply(useStateFromStores, fluxModule, [[ApplicationStreamingStore], function() {
return ApplicationStreamingStore.getStreamForUser(user.id, channel.getGuildId());
}]);
const value6 = fluxModule.useStateFromStores([SessionsStore], _fun110016);
const value7 = fluxModule.useStateFromStores([VoiceStateStore], function() {
return VoiceStateStore.getVoicePlatformForChannel(channel.id, user.id);
}, [channel.id, user.id]);
const r10 = sessionId != null && value3 && sessionId !== AuthenticationStore.getSessionId();
const moduleValue5 = fluxModule;
useStateFromStores = moduleValue5.useStateFromStores;
return ((Component) => <Component guildId={channel.guild_id} member={member} user={user} collapsed={collapsed} serverMute={mute || suppress} serverDeaf={deaf} mute={selfMute} deaf={selfDeaf} localMute={localMute} video={selfVideo || localVideo} stream={streamForUser?.channelId === channel.id} platform={value6} disabled={value6 == null && r10} isInEmbeddedActivity={Reflect.apply(useStateFromStores,
moduleValue5, [[EmbeddedActivitiesStore], _fun110018, [user.id,
channel.id]]) != null} isGuest={isGuest} voicePlatform={value7} ringing={fluxModule.useStateFromStores([ChannelRTCStore],
function() {
return ChannelRTCStore.getGuildRingingUsers(channel.id).has(user.id);
})} />)(importDefault(14543) /* metro dependency 14543: VoiceUserItem */);
}
function _fun110014() { // fn#110014, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14739:488, offset: 0x02366142, size: 96 bytes, params: 1, frame: 12
var r0;
var object2;
var value2;
if (result) {
object2 = {'localMute': false, 'localDeaf': false};
value = environment.__proto__;
object2.localVideo = MediaEngineStore.isVideoEnabled();
r0 = object2;
} else {
value2 = environment.__proto__;
r0 = {'localMute': null, 'localDeaf': false, 'localVideo': false,
localMute: MediaEngineStore.isLocalMute(user.id)};
}
return r0;
}
function _fun110016() { // fn#110016, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14739:756, offset: 0x023661d1, size: 66 bytes, params: 1, frame: 14
const sessionIdBinding = sessionId;
const value2 = undefined;
return sessionIdBinding != null ? SessionsStore.getSessionById(sessionId) == null ? value2 : SessionsStore.getSessionById(sessionId).clientInfo.os : value2;
}
function _fun110018() { // fn#110018, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14739:1006, offset: 0x0236623d, size: 52 bytes, params: 1, frame: 11
var environment;
const value = environment.__proto__;
const getEmbeddedActivitiesForChannel = EmbeddedActivitiesStore.getEmbeddedActivitiesForChannel;
return Reflect.apply(getEmbeddedActivitiesForChannel, EmbeddedActivitiesStore,
[channel.id]).find(function({userIds}) {
return userIds.has(user.id);
});
}