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,80 @@
/* Metro module 9234; source: modules/video_calls/useChannelVideoLimit.tsx; dependencies: [1867, 4300, 661, 566, 2] */
function _fun72229(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#72229, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9419:6, offset: 0x01d3ec88, size: 165 bytes, params: 8, frame: 19
let env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const guildStore = importDefault(1867) /* metro dependency 1867: GuildStore */;
const sortedVoiceStateStore = importDefault(4300) /* metro dependency 4300: SortedVoiceStateStore */;
const env0_4 = (require(661) /* metro dependency 661: Constants */).ChannelTypes;
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/video_calls/useChannelVideoLimit.tsx');
exports.default = function(a0) {
var env0_0 = a0;
return require(dependencyMap[3]).useStateFromStoresObject([SortedVoiceStateStore, GuildStore], _fun72231, [a0]);
};
exports.getChannelVideoLimit = getChannelVideoLimit;
}
function useChannelVideoLimit(a0) { // fn#72230, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9419:227, offset: 0x01d3ed2d, size: 84 bytes, params: 2, frame: 17
const env0_0 = a0;
return (require(566) /* metro dependency 566: flux */).useStateFromStoresObject([SortedVoiceStateStore, GuildStore],
_fun72231, [a0]);
}
function getChannelVideoLimit(a0) { // fn#72232, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9419:658, offset: 0x01d3ee31, size: 168 bytes, params: 2, frame: 14
var r0;
var object2;
var maxVideoChannelUsers;
var maxStageVideoChannelUsers;
var value;
const value2 = SortedVoiceStateStore.countVoiceStatesForChannel(a0.id);
const getGuild = GuildStore.getGuild;
const getGuildId = a0.getGuildId;
const value3 = Reflect.apply(getGuild, GuildStore, [Reflect.apply(getGuildId, a0, [])]);
if (value3 == null) {
r0 = {'reachedLimit': false, 'limit': -1};
} else if (a0.type === ChannelTypes.GUILD_STAGE_VOICE) {
object2 = {};
maxStageVideoChannelUsers = value3.maxStageVideoChannelUsers;
object2.reachedLimit = value2 > maxStageVideoChannelUsers;
maxStageVideoChannelUsers = value3.maxStageVideoChannelUsers;
object2.limit = maxStageVideoChannelUsers;
r0 = object2;
} else {
maxVideoChannelUsers = value3.maxVideoChannelUsers;
value = maxVideoChannelUsers > 0;
maxVideoChannelUsers = value3.maxVideoChannelUsers;
r0 = {reachedLimit: value && value2 > value3.maxVideoChannelUsers, limit: maxVideoChannelUsers};
}
return r0;
}
function _fun72231() { // fn#72231, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9419:307, offset: 0x01d3ed81, size: 176 bytes, params: 1, frame: 15
var r0;
var object2;
var maxVideoChannelUsers;
var maxStageVideoChannelUsers;
let value = environment.__proto__;
const countVoiceStatesForChannel = SortedVoiceStateStore.countVoiceStatesForChannel;
const binding = env0_0;
const value3 = Reflect.apply(countVoiceStatesForChannel, SortedVoiceStateStore, [binding.id]);
const getGuild = GuildStore.getGuild;
const getGuildId = binding.getGuildId;
const value4 = Reflect.apply(getGuild, GuildStore, [Reflect.apply(getGuildId, binding, [])]);
if (value4 == null) {
r0 = {'reachedLimit': false, 'limit': -1};
} else if (env0_0.type === ChannelTypes.GUILD_STAGE_VOICE) {
object2 = {};
maxStageVideoChannelUsers = value4.maxStageVideoChannelUsers;
object2.reachedLimit = value3 > maxStageVideoChannelUsers;
maxStageVideoChannelUsers = value4.maxStageVideoChannelUsers;
object2.limit = maxStageVideoChannelUsers;
r0 = object2;
} else {
maxVideoChannelUsers = value4.maxVideoChannelUsers;
value = maxVideoChannelUsers > 0;
maxVideoChannelUsers = value4.maxVideoChannelUsers;
r0 = {reachedLimit: value && value3 > value4.maxVideoChannelUsers, limit: maxVideoChannelUsers};
}
return r0;
}