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

File diff suppressed because it is too large. Load diff
@@ -0,0 +1,526 @@
/* Metro module 5070; source: modules/guild_sidebar/ChannelListStore.tsx; dependencies: [6, 7, 15, 17, 18, 1378, 1936, 4117, 5071, 3786, 1348, 1226, 5090, 1379, 5091, 4267, 3784, 4605, 1934, 4864, 670, 5092, 22, 1360, 3774, 21, 566, 694, 2] */
function _fun43861(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#43861, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5248:6, offset: 0x01161223, size: 1197 bytes, params: 8, frame: 31
const env0_0 = require;
const _arrayLikeToArray_43867 = function(a0, a1) {
var r0;
var r1;
var r2;
var value3;
var length;
var value5;
var value = undefined;
var value2 = value == null;
reducibleJoin2: while (true) {
if (value2) {
r0 = value2;
break reducibleJoin2;
}
value3 = value > a0.length;
r0 = value3;
break reducibleJoin2;
}
reducibleJoin4: while (true) {
if (r0) {
length = a0.length;
r1 = length;
break reducibleJoin4;
}
r1 = value;
break reducibleJoin4;
}
value = (0, global.Array)(r1);
var value4 = 0;
if (value4 < r1) {
r2 = value4;
reducibleLoop5: while (true) {
value[r2] = a0[r2];
value5 = typeof r2 === 'bigint' ? r2 + 1n : +r2 + 1;
if (value5 < r1) {
r2 = value5;
continue reducibleLoop5;
}
break reducibleLoop5;
}
}
return value;
};
const closure = BACKGROUND_SYNC_43868;
const closure2 = GUILD_CREATE_43869;
const closure3 = CHANNEL_CREATE_43870;
const closure4 = BULK_CLEAR_RECENTS;
const closure5 = CHANNEL_ACK_43872;
const closure6 = THREAD_CREATE_43873;
const closure7 = THREAD_MEMBER_UPDATE_43874;
const closure8 = CHANNEL_SELECT_43875;
const closure9 = CATEGORY_COLLAPSE;
const closure10 = VOICE_CATEGORY_COLLAPSE;
const closure11 = APPLICATION_FETCH_FAIL_43879;
const closure12 = GUILD_SCHEDULED_EVENT_CREATE_43880;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const env0_3 = importDefault(6) /* metro dependency 6 */;
const env0_4 = importDefault(7) /* metro dependency 7 */;
const env0_5 = importDefault(15) /* metro dependency 15 */;
const env0_6 = importDefault(17) /* metro dependency 17 */;
const env0_7 = importDefault(18) /* metro dependency 18 */;
const embeddedActivitiesStore = importDefault(1378) /* metro dependency 1378: EmbeddedActivitiesStore */;
const gatedChannelStore = importDefault(1936) /* metro dependency 1936: GatedChannelStore */;
const guildScheduledEventStore = importDefault(4117) /* metro dependency 4117: GuildScheduledEventStore */;
const activeJoinedThreadsStore = importDefault(5071) /* metro dependency 5071: ActiveJoinedThreadsStore */;
const joinedThreadsStore = importDefault(3786) /* metro dependency 3786: JoinedThreadsStore */;
const userSettingsProtoStore = importDefault(1348) /* metro dependency 1348: UserSettingsProtoStore */;
const authenticationStore = importDefault(1226) /* metro dependency 1226: AuthenticationStore */;
const categoryCollapseStore = importDefault(5090) /* metro dependency 5090: CategoryCollapseStore */;
const channelStore = importDefault(1379) /* metro dependency 1379: ChannelStore */;
const collapsedVoiceChannelStore = importDefault(5091) /* metro dependency 5091: CollapsedVoiceChannelStore */;
const detectableGameStore = importDefault(4267) /* metro dependency 4267: DetectableGameStore */;
const permissionStore = importDefault(3784) /* metro dependency 3784: PermissionStore */;
const readStateStore = importDefault(4605) /* metro dependency 4605: ReadStateStore */;
const selectedChannelStore = importDefault(1934) /* metro dependency 1934: SelectedChannelStore */;
const userGuildSettingsStore = importDefault(4864) /* metro dependency 4864: UserGuildSettingsStore */;
const env0_23 = (require(670) /* metro dependency 670: UserSettingsConstants */).UserSettingsTypes;
let value = importDefault(5092) /* metro dependency 5092: ChannelListState */;
value = new value();
const Store = (importDefault(566) /* metro dependency 566: flux */).Store;
_fun43881(Store).displayName = 'ChannelListStore';
value = new value(importDefault(694) /* metro dependency 694: Dispatcher */, {APPLICATION_FETCH_FAIL: closure11,
APPLICATION_FETCH_SUCCESS: closure11, APPLICATION_FETCH: closure11, APPLICATIONS_FETCH_FAIL: closure11,
APPLICATIONS_FETCH_SUCCESS: closure11, APPLICATIONS_FETCH: closure11, BACKGROUND_SYNC: closure,
BULK_ACK: BULK_ACK_43887, BULK_CLEAR_RECENTS: closure4, CACHE_LOADED_LAZY: closure,
CATEGORY_COLLAPSE_ALL: closure4, CATEGORY_COLLAPSE: closure9, CATEGORY_EXPAND_ALL: closure4,
CATEGORY_EXPAND: closure9, CHANNEL_ACK: closure5, CHANNEL_COLLAPSE: CHANNEL_COLLAPSE, CHANNEL_CREATE: closure3,
CHANNEL_DELETE: closure3, CHANNEL_LOCAL_ACK: closure5, CHANNEL_MUTE_EXPIRED: closure4,
CHANNEL_RTC_UPDATE_CHAT_OPEN: closure5, CHANNEL_SELECT: closure8, CHANNEL_INFO: CHANNEL_INFO,
CHANNEL_UPDATES: CHANNEL_UPDATES_43892, CONNECTION_OPEN_SUPPLEMENTAL: closure11, CONNECTION_OPEN: closure,
CURRENT_USER_UPDATE: closure, DECAY_READ_STATES: closure, DEV_TOOLS_DESIGN_TOGGLE_SET: closure,
DISABLE_AUTOMATIC_ACK: closure5, DISMISS_FAVORITE_SUGGESTION: DISMISS_FAVORITE_SUGGESTION,
EMBEDDED_ACTIVITY_UPDATE_V2: EMBEDDED_ACTIVITY_UPDATE_V2_43896, EMBEDDED_ACTIVITY_LAUNCH_START: function() {
APPLICATION_FETCH_FAIL_43879();
}, EMBEDDED_ACTIVITY_LAUNCH_SUCCESS: closure11, ENABLE_AUTOMATIC_ACK: closure5,
FETCH_GUILD_EVENTS_FOR_GUILD: FETCH_GUILD_EVENTS_FOR_GUILD_43898, GAMES_DATABASE_FETCH_FAIL: closure11,
GAMES_DATABASE_FETCH: closure11, GAMES_DATABASE_UPDATE: closure11, GUILD_APPLICATIONS_FETCH_SUCCESS: closure11,
GUILD_CREATE: closure2, GUILD_DELETE: closure2, GUILD_MEMBER_UPDATE: GUILD_MEMBER_UPDATE_43899,
GUILD_MUTE_EXPIRED: closure4, GUILD_ROLE_CREATE: closure4, GUILD_ROLE_DELETE: closure4,
GUILD_ROLE_SUBSCRIPTIONS_FETCH_RESTRICTIONS_FAILURE: closure4,
GUILD_ROLE_SUBSCRIPTIONS_FETCH_RESTRICTIONS_SUCCESS: closure4, GUILD_ROLE_UPDATE: closure4,
GUILD_SCHEDULED_EVENT_CREATE: closure12, GUILD_SCHEDULED_EVENT_DELETE: closure12,
GUILD_SCHEDULED_EVENT_UPDATE: closure12, GUILD_TOGGLE_COLLAPSE_MUTED: closure4, GUILD_UPDATE: closure2,
IMPERSONATE_STOP: closure4, IMPERSONATE_UPDATE: closure4, LOAD_CHANNELS: function({channels}) {
channels.forEach(_fun43901);
}, LOAD_MESSAGES_SUCCESS: closure5, MESSAGE_ACK: closure5, MESSAGE_CREATE: MESSAGE_CREATE_43902,
MESSAGE_DELETE_BULK: closure5, MESSAGE_DELETE: closure5, NOTIFICATION_SETTINGS_UPDATE: closure,
OVERLAY_INITIALIZE: closure, PASSIVE_UPDATE_V2: PASSIVE_UPDATE_V2_43903, RECOMPUTE_READ_STATES: closure,
RESORT_THREADS: closure5, SET_RECENTLY_ACTIVE_COLLAPSED: closure, THREAD_CREATE: closure6,
THREAD_DELETE: THREAD_DELETE_43904, THREAD_LIST_SYNC: closure4, THREAD_MEMBER_UPDATE: closure7,
THREAD_MEMBERS_UPDATE: closure7, THREAD_UPDATE: closure6, TRY_ACK: closure5,
UPDATE_CHANNEL_DIMENSIONS: closure5, UPDATE_CHANNEL_LIST_SUBTITLES: UPDATE_CHANNEL_LIST_SUBTITLES,
USER_GUILD_SETTINGS_CHANNEL_UPDATE_BULK: closure4, USER_GUILD_SETTINGS_CHANNEL_UPDATE: closure4,
USER_GUILD_SETTINGS_FULL_UPDATE: function({userGuildSettings}) {
userGuildSettings.forEach(_fun43907);
}, USER_GUILD_SETTINGS_GUILD_AND_CHANNELS_UPDATE: closure4, USER_GUILD_SETTINGS_GUILD_UPDATE: closure4,
USER_SETTINGS_PROTO_UPDATE: USER_SETTINGS_PROTO_UPDATE_43908, VOICE_CATEGORY_COLLAPSE: closure10,
VOICE_CATEGORY_EXPAND: closure10, VOICE_CHANNEL_SELECT: closure8,
VOICE_CHANNEL_STATUS_UPDATE: VOICE_CHANNEL_STATUS_UPDATE_43910, VOICE_STATE_UPDATES: VOICE_STATE_UPDATES_43911,
WINDOW_FOCUS: WINDOW_FOCUS_43912});
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/guild_sidebar/ChannelListStore.tsx');
exports.default = value;
}
function _isNativeReflectConstruct_43862() { // fn#43862, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5248:340, offset: 0x011616d0, size: 94 bytes, params: 1, frame: 18
var Boolean;
var prototype;
var valueOf;
var call;
var Reflect;
var construct;
var closure;
var value;
var error;
try {
Boolean = global.Boolean;
prototype = Boolean.prototype;
valueOf = prototype.valueOf;
call = valueOf.call;
Reflect = global.Reflect;
construct = Reflect.construct;
Boolean = global.Boolean;
closure = function() {
};
value = Reflect.apply(construct, Reflect, [Boolean, [], closure]);
value = Reflect.apply(call, valueOf, [value]);
var result = !value;
} catch (error) {
}
return (_isNativeReflectConstruct_43862_isNativeReflectConstruct = function() {
return !!result;
})();
}
function _createForOfIteratorHelperLoose_43865(a0, a1) { // fn#43865, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5248:533, offset: 0x0116172e, size: 370 bytes, params: 3, frame: 20
var r6;
var r9;
var r5;
var value3;
var regexp;
const env0_0 = a0;
const Symbol = global.Symbol;
let value = typeof Symbol !== 'undefined';
let r1 = value && a0[global.Symbol.iterator];
r1 = !r1 ? a0['@@iterator'] : r1;
if (r1) {
value = r1.call(a0);
return value.next.bind(value);
}
const Array = global.Array;
if (Array.isArray(a0)) {
if (r1) {
}
return _fun43866;
}
value = undefined;
if (a0) {
if (typeof a0 === 'string') {
value = _arrayLikeToArray_43867(a0, value);
r5 = value;
} else {
value3 = ({}).toString.call(a0).slice(8, -1);
r6 = value3 === 'Object' && a0.constructor;
r9 = r6 ? a0.constructor.name : value3;
if (r9 === 'Map') {
r6 = global.Array.from(a0);
} else if (r9 === 'Set') {
r6 = global.Array.from(a0);
} else if (r9 === 'Arguments') {
value = _arrayLikeToArray_43867(a0, value);
r6 = value;
} else {
regexp = RegExp('^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$', '');
if (regexp.test(r9)) {
value = _arrayLikeToArray_43867(a0, value);
r6 = value;
} else {
r6 = value;
}
}
r5 = r6;
}
} else {
r5 = value;
}
if (r5) {
if (r5) {
}
return _fun43866;
}
const TypeError = global.TypeError;
throw new TypeError('Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.');
}
function BACKGROUND_SYNC_43868() { // fn#43868, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5248:1477, offset: 0x011618a0, size: 55 bytes, params: 1, frame: 11
const value2 = SelectedChannelStore.getChannelId();
const value3 = SelectedChannelStore.getVoiceChannelId();
return env0_26.clear();
}
function GUILD_CREATE_43869({guild}) { // fn#43869, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5248:1572, offset: 0x011618d7, size: 33 bytes, params: 2, frame: 11
return env0_26.clearGuildId(guild.id);
}
function CHANNEL_CREATE_43870({channel}) { // fn#43870, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5248:1640, offset: 0x011618f8, size: 33 bytes, params: 2, frame: 11
return env0_26.clearGuildId(channel.guild_id);
}
function BULK_CLEAR_RECENTS({guildId}) { // fn#43871, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5248:1718, offset: 0x01161919, size: 28 bytes, params: 2, frame: 11
return env0_26.clearGuildId(guildId);
}
function CHANNEL_ACK_43872({channelId}) { // fn#43872, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5248:1786, offset: 0x01161935, size: 28 bytes, params: 2, frame: 11
return env0_26.nonPositionalChannelIdUpdate(channelId);
}
function THREAD_CREATE_43873({channel}) { // fn#43873, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5248:1873, offset: 0x01161951, size: 33 bytes, params: 2, frame: 11
const binding = env0_26;
return binding.nonPositionalChannelIdUpdate(channel.id);
}
function THREAD_MEMBERS_UPDATE_43874({id}) { // fn#43874, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5248:1958, offset: 0x01161972, size: 28 bytes, params: 2, frame: 11
return env0_26.nonPositionalChannelIdUpdate(id);
}
function CHANNEL_SELECT_43875() { // fn#43875, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5248:2041, offset: 0x0116198e, size: 153 bytes, params: 1, frame: 16
var r0;
const channelId = SelectedChannelStore.getChannelId();
const voiceChannelId = SelectedChannelStore.getVoiceChannelId();
const r4 = env0_24 !== channelId || env0_25 !== voiceChannelId;
if (r4) {
(importDefault(22) /* metro dependency 22 */)([env0_24, env0_25, channelId,
voiceChannelId]).uniq().forEach(_fun43876);
r0 = true;
} else {
r0 = !!r4;
}
return r0;
}
function CATEGORY_COLLAPSE({id}) { // fn#43877, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5248:2252, offset: 0x01161a46, size: 70 bytes, params: 2, frame: 13
const channel = ChannelStore.getChannel(id);
return channel == null ? env0_26.clearGuildId(id) : env0_26.clearGuildId(channel.guild_id);
}
function APPLICATIONS_FETCH_43879() { // fn#43879, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5248:2445, offset: 0x01161a8c, size: 19 bytes, params: 1, frame: 9
return env0_26.updateSubtitles();
}
function GUILD_SCHEDULED_EVENT_CREATE_43880({guildScheduledEvent}) { // fn#43880, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5248:2511, offset: 0x01161a9f, size: 34 bytes, params: 2, frame: 11
const binding = env0_26;
return binding.updateSubtitles(guildScheduledEvent.guild_id);
}
function _fun43881(a0) { // fn#43881, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5248:2620, offset: 0x01161ac1, size: 141 bytes, params: 2, frame: 16
const closure = ChannelListStore;
env0_7(closure, a0);
return env0_4(closure, [{key: 'initialize', value: function() {
this.waitFor(ActiveJoinedThreadsStore, AuthenticationStore, CategoryCollapseStore, ChannelStore,
CollapsedVoiceChannelStore, EmbeddedActivitiesStore, DetectableGameStore, GatedChannelStore,
GuildScheduledEventStore, JoinedThreadsStore, PermissionStore, ReadStateStore, SelectedChannelStore,
UserGuildSettingsStore, UserSettingsProtoStore);
}}, {key: 'getGuild', value: value_43884}, {key: 'getGuildWithoutChangingGuildActionRows', value: value_43885},
{key: 'recentsChannelCount', value: value_43886}]);
}
function BULK_ACK_43887({channels}) { // fn#43887, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5248:3960, offset: 0x01161cda, size: 125 bytes, params: 2, frame: 15
const value3 = (importDefault(22) /* metro dependency 22 */)(channels).map(_fun43888);
let value = value3.filter((require(1360) /* metro dependency 1360: GlobalUtils */).isNotNullish);
value = value.uniq();
value.forEach(_fun43889);
return false;
}
function CHANNEL_COLLAPSE({channelId}) { // fn#43890, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5248:4468, offset: 0x01161da7, size: 58 bytes, params: 2, frame: 13
const binding = env0_26;
return binding.clearGuildId(ChannelStore.getChannel(channelId)?.guild_id);
}
function CHANNEL_UPDATES_43892({channels}) { // fn#43892, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5248:4921, offset: 0x01161de1, size: 93 bytes, params: 2, frame: 13
let value = (importDefault(22) /* metro dependency 22 */)(channels);
value = value.map(function(a0) {
return a0.guild_id;
});
value = value.uniq();
value.forEach(_fun43894);
return false;
}
function EMBEDDED_ACTIVITY_UPDATE_V2_43896({location}) { // fn#43896, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5248:5452, offset: 0x01161e3e, size: 82 bytes, params: 2, frame: 18
const binding = env0_26;
const updateSubtitles = binding.updateSubtitles;
let value = require(3774) /* metro dependency 3774: embeddedActivityLocationUtils */;
value = value.getEmbeddedActivityLocationGuildId(location);
const embeddedActivityLocationUtilsModule = require(3774) /* metro dependency 3774: embeddedActivityLocationUtils */;
const getEmbeddedActivityLocationChannelId = embeddedActivityLocationUtilsModule.getEmbeddedActivityLocationChannelId;
return Reflect.apply(updateSubtitles, binding, [value, Reflect.apply(getEmbeddedActivityLocationChannelId,
embeddedActivityLocationUtilsModule, [location])]);
}
function FETCH_GUILD_EVENTS_FOR_GUILD_43898({guildId}) { // fn#43898, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5248:5871, offset: 0x01161e9f, size: 28 bytes, params: 2, frame: 11
return env0_26.updateSubtitles(guildId);
}
function GUILD_MEMBER_UPDATE_43899({guildId, user}) { // fn#43899, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5248:6249, offset: 0x01161ebb, size: 59 bytes, params: 2, frame: 13
return AuthenticationStore.getId() === user.id && env0_26.clearGuildId(guildId);
}
function LOAD_CHANNELS_43900({channels}) { // fn#43900, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5248:7004, offset: 0x01161ef6, size: 30 bytes, params: 2, frame: 11
channels.forEach(_fun43901);
}
function PASSIVE_UPDATE_V2_43903({guildId}) { // fn#43903, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5248:7439, offset: 0x01161f30, size: 28 bytes, params: 2, frame: 11
return env0_26.clearGuildId(guildId);
}
function THREAD_DELETE_43904({channel}) { // fn#43904, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5248:7667, offset: 0x01161f4c, size: 28 bytes, params: 2, frame: 11
return env0_26.nonPositionalChannelUpdate(channel);
}
function UPDATE_CHANNEL_LIST_SUBTITLES({guildId}) { // fn#43905, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5248:8020, offset: 0x01161f68, size: 30 bytes, params: 2, frame: 11
env0_26.updateSubtitles(guildId);
}
function USER_GUILD_SETTINGS_FULL_UPDATE_43906({userGuildSettings}) { // fn#43906, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5248:8235, offset: 0x01161f86, size: 30 bytes, params: 2, frame: 11
userGuildSettings.forEach(_fun43907);
}
function USER_SETTINGS_PROTO_UPDATE_43908({settings}) { // fn#43908, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5248:8497, offset: 0x01161fc0, size: 141 bytes, params: 2, frame: 15
let value = undefined;
const type = settings.type;
const PRELOADED_USER_SETTINGS = UserSettingsTypes.PRELOADED_USER_SETTINGS;
if (type === PRELOADED_USER_SETTINGS) {
var guilds = settings.proto.guilds;
guilds = guilds == null ? value : guilds.guilds;
if (guilds != null) {
value = importDefault(21) /* metro dependency 21: SnowflakeUtils */;
value = value.keys(guilds);
value.forEach(_fun43909);
}
}
return false;
}
function VOICE_CHANNEL_STATUS_UPDATE_43910({id}) { // fn#43910, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5248:8940, offset: 0x01162088, size: 28 bytes, params: 2, frame: 11
return env0_26.nonPositionalChannelIdUpdate(id);
}
function VOICE_STATE_UPDATES_43911({voiceStates}) { // fn#43911, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5248:9048, offset: 0x011620a4, size: 239 bytes, params: 2, frame: 22
var r2;
var r3;
var r10;
var r1;
var r11;
var r0;
var value7;
var channelId;
var oldChannelId;
var value8;
var value9;
var binding;
var nonPositionalChannelIdUpdate;
var value10;
var value11;
var value12;
var value13;
var value14;
const value2 = CHANNEL_SELECT_43875();
const Set = global.Set;
const set = new Set();
const value5 = _createForOfIteratorHelperLoose_43865(voiceStates);
const value6 = value5();
let done = value6.done;
if (done) {
r0 = value2;
} else {
r2 = value2;
r3 = value6;
while (true) {
value7 = r3.value;
channelId = value7.channelId;
oldChannelId = value7.oldChannelId;
value8 = oldChannelId == null;
if (value8) {
r10 = value8;
} else {
value9 = set.has(oldChannelId);
r10 = value9;
}
if (r10) {
r1 = r2;
continue;
}
binding = env0_26;
nonPositionalChannelIdUpdate = binding.nonPositionalChannelIdUpdate;
if (!Reflect.apply(nonPositionalChannelIdUpdate, binding, [oldChannelId])) {
continue;
}
value10 = true;
r2 = value10;
set.add(oldChannelId);
r1 = r2;
value11 = channelId == null;
if (value11) {
r11 = value11;
continue;
}
value12 = set.has(channelId);
r11 = value12;
if (r11) {
r10 = r1;
continue;
}
binding = env0_26;
nonPositionalChannelIdUpdate = binding.nonPositionalChannelIdUpdate;
if (!Reflect.apply(nonPositionalChannelIdUpdate, binding, [channelId])) {
continue;
}
value13 = true;
r1 = value13;
set.add(channelId);
r10 = r1;
value14 = value5();
done = value14.done;
if (done) {
r0 = r10;
break;
}
r2 = r10;
r3 = value14;
continue;
}
}
return r0;
}
function WINDOW_FOCUS_43912() { // fn#43912, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5248:9407, offset: 0x01162193, size: 37 bytes, params: 1, frame: 12
return env0_24 != null && env0_26.nonPositionalChannelIdUpdate(env0_24);
}
function _fun43876(a0) { // fn#43876, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5248:2182, offset: 0x01161a27, size: 31 bytes, params: 2, frame: 11
var value;
if (a0 != null) {
value = environment.__proto__;
env1_26.nonPositionalChannelIdUpdate(a0);
}
}
function value_43884(a0, a1) { // fn#43884, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5248:3009, offset: 0x01161c12, size: 94 bytes, params: 3, frame: 17
let value = environment.__proto__;
const binding = env1_26;
value = undefined;
value = binding.getGuild(a0, (a1 == null ? value : a1.guildActionRows) ?? [],
(a1 == null ? value : a1.channelNoticeRows) ?? []);
return {guildChannelsVersion: value.version, guildChannels: value};
}
function value_43885(a0) { // fn#43885, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5248:3254, offset: 0x01161c70, size: 41 bytes, params: 2, frame: 11
let value = environment.__proto__;
value = env1_26.getGuildChannelRowsOnly(a0);
return {guildChannelsVersion: value.version, guildChannels: value};
}
function value_43886(a0) { // fn#43886, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5248:3391, offset: 0x01161c99, size: 65 bytes, params: 2, frame: 11
if (a0 == null) {
return 0;
}
let value = environment.__proto__;
const getCategoryFromSection = env1_26.getGuildChannelRowsOnly(a0).getCategoryFromSection;
value = Reflect.apply(getCategoryFromSection, value, [value.recentsSectionNumber]);
const getShownChannelIds = value.getShownChannelIds;
return Reflect.apply(getShownChannelIds, value, []).length;
}
function _fun43888({channelId}) { // fn#43888, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5248:4030, offset: 0x01161d57, size: 43 bytes, params: 2, frame: 11
const value = environment.__proto__;
return ChannelStore.getChannel(channelId)?.guild_id;
}
function _fun43889(a0) { // fn#43889, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5248:4151, offset: 0x01161d82, size: 37 bytes, params: 2, frame: 11
const binding = env1_26;
if (binding.clearGuildId(a0)) {
}
}
function _fun43901({guildId}) { // fn#43901, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5248:7055, offset: 0x01161f14, size: 28 bytes, params: 2, frame: 11
return env1_26.clearGuildId(guildId);
}
function _fun43907({guild_id}) { // fn#43907, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5248:8312, offset: 0x01161fa4, size: 28 bytes, params: 2, frame: 11
return env1_26.clearGuildId(guild_id);
}
function _fun43909(a0) { // fn#43909, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5248:8693, offset: 0x0116204d, size: 59 bytes, params: 2, frame: 12
var r0;
var value2;
if (guilds[a0].guildRecentsDismissedAt != null) {
value2 = environment.__proto__;
r0 = env1_26.updateRecentsCategory(a0) || env0_1;
}
}
@@ -0,0 +1,29 @@
/* Metro module 4801; source: modules/guild_sidebar/ChannelListUtils.tsx; dependencies: [2] */
function _fun41604(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#41604, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4979:6, offset: 0x01123483, size: 85 bytes, params: 8, frame: 15
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/guild_sidebar/ChannelListUtils.tsx');
exports.hasStream = function(a0) {
var r1;
if (a0 != null) {
var value = 0;
if (value < a0.length) {
r1 = value;
loopExit2: while (true) {
if (a0[r1].voiceState.selfStream) {
return true;
}
value = typeof r1 === 'bigint' ? r1 + 1n : +r1 + 1;
if (value < a0.length) {
r1 = value;
continue;
}
break loopExit2;
}
return false;
}
}
return false;
};
}
@@ -0,0 +1,74 @@
/* Metro module 5100; source: modules/guild_sidebar/ChannelListVoiceCategoryStore.tsx; dependencies: [6, 7, 15, 17, 18, 566, 694, 2] */
function _fun44525(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#44525, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5278:6, offset: 0x01172d49, size: 276 bytes, params: 8, frame: 19
const closure = VOICE_CATEGORY_COLLAPSE_44529;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const env0_0 = importDefault(6) /* metro dependency 6 */;
const env0_1 = importDefault(7) /* metro dependency 7 */;
const env0_2 = importDefault(15) /* metro dependency 15 */;
const env0_3 = importDefault(17) /* metro dependency 17 */;
const env0_4 = importDefault(18) /* metro dependency 18 */;
const env0_5 = {};
const PersistedStore = (importDefault(566) /* metro dependency 566: flux */).PersistedStore;
let value = _fun44530(PersistedStore);
value.displayName = 'ChannelListVoiceCategoryStore';
value.persistKey = 'ChannelListVoiceCategoryStore';
value = new value(importDefault(694) /* metro dependency 694: Dispatcher */, {VOICE_CATEGORY_COLLAPSE: closure,
VOICE_CATEGORY_EXPAND: closure});
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/guild_sidebar/ChannelListVoiceCategoryStore.tsx');
exports.default = value;
}
function _isNativeReflectConstruct_44526() { // fn#44526, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5278:148, offset: 0x01172e5d, size: 94 bytes, params: 1, frame: 18
var Boolean;
var prototype;
var valueOf;
var call;
var Reflect;
var construct;
var closure;
var value;
var error;
try {
Boolean = global.Boolean;
prototype = Boolean.prototype;
valueOf = prototype.valueOf;
call = valueOf.call;
Reflect = global.Reflect;
construct = Reflect.construct;
Boolean = global.Boolean;
closure = function() {
};
value = Reflect.apply(construct, Reflect, [Boolean, [], closure]);
value = Reflect.apply(call, valueOf, [value]);
var result = !value;
} catch (error) {
}
return (_isNativeReflectConstruct_44526_isNativeReflectConstruct = function() {
return !!result;
})();
}
function VOICE_CATEGORY_COLLAPSE_44529({guildId, expand}) { // fn#44529, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5278:350, offset: 0x01172ebb, size: 40 bytes, params: 2, frame: 3
const binding = env0_5;
if (expand) {
binding[guildId] = true;
} else {
delete binding[guildId];
}
}
function _fun44530(a0) { // fn#44530, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5278:422, offset: 0x01172ee3, size: 139 bytes, params: 2, frame: 16
const closure = ChannelListVoiceCategoryStore;
env0_4(closure, a0);
return env0_1(closure, [{key: 'initialize', value: value_44532}, {key: 'isVoiceCategoryExpanded',
value: value_44533}, {key: 'isVoiceCategoryCollapsed', value: function(a0) {
return !this.isVoiceCategoryExpanded(a0);
}}, {key: 'getState', value: value_44535}]);
}
function value_44533(a0) { // fn#44533, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5278:863, offset: 0x01172f84, size: 35 bytes, params: 2, frame: 4
const r1 = a0 != null && env1_5[a0];
return r1 != null && r1;
}
File diff suppressed because it is too large. Load diff
@@ -0,0 +1,21 @@
/* Metro module 5101; source: modules/guild_sidebar/GuildSidebarConstants.tsx; dependencies: [2] */
function _fun44536(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#44536, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5279:6, offset: 0x01172fbf, size: 381 bytes, params: 8, frame: 17
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/guild_sidebar/GuildSidebarConstants.tsx');
exports.ChannelListGuildActionRow = {GUILD_PREMIUM_PROGRESS_BAR: 'guild-premium-progress-bar',
GUILD_SCHEDULED_EVENTS: 'guild-scheduled-events', GUILD_HUB_HEADER_OPTIONS: 'guild-hub-header-options',
GUILD_FAVORITES: 'favorites', GUILD_CHANNEL_LIST_OPT_IN_NOTICE: 'guild-channel-list-opt-in-notice',
GUILD_ROLE_SUBSCRIPTIONS: 'role-subscriptions', GUILD_GAME_SHOP: 'game-shop', GUILD_SHOP: 'shop',
GUILD_HOME: '@home', CHANNELS_AND_ROLES: 'channels-and-roles', BROWSE_CHANNELS: 'browse-channels',
GUILD_DIRECTORY: 'guild-directory',
GUILD_NEW_MEMBER_ACTIONS_PROGRESS_BAR: 'guild-new-member-actions-progress-bar',
GUILD_MOD_DASH_MEMBER_SAFETY: 'guild-mod-dash-member-safety', GUILD_BOOSTS: 'guild-boosts',
GAME_SERVERS: 'game-servers', GAME_SERVERS_EMPTY: 'game-servers-empty',
GUILD_OFFICIAL_MESSAGES: 'official-messages'};
exports.ChannelListChannelNoticeRow = {SPACER: 'spacer', GUILD_PROGRESS: 'guild-progress',
MFA_WARNING: 'mfa-warning', LIVE_CHANNEL_NOTICE: 'live-channel-notice', GAME_CLAIM: 'game-claim',
APPLICATION_ACCOUNT_LINK: 'application-account-link'};
exports.STANDARD_GUILD_SIDEBAR_POPOVER_GAP = 17;
}
@@ -0,0 +1,131 @@
/* Metro module 14708; source: modules/guild_sidebar/SectionFooterHelpers.tsx; dependencies: [5090, 3784, 5101, 661, 1417, 5092, 2] */
function _fun110963(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#110963, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14905:6, offset: 0x0238dc68, size: 250 bytes, params: 8, frame: 20
const env0_0 = require;
const closure = getSectionFooterActiveVoiceChannels;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const categoryCollapseStore = importDefault(5090) /* metro dependency 5090: CategoryCollapseStore */;
const permissionStore = importDefault(3784) /* metro dependency 3784: PermissionStore */;
const env0_4 = (require(5101) /* metro dependency 5101: GuildSidebarConstants */).ChannelListGuildActionRow;
const env0_5 = (require(661) /* metro dependency 661: Constants */).Permissions;
const env0_6 = (require(1417) /* metro dependency 1417: FavoritesConstants */).FAVORITES_RAW_GUILD_ID;
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/guild_sidebar/SectionFooterHelpers.tsx');
exports.getSectionFooterConfig = function(a0, a1, a2) {
var object = {};
object.hasDivider = isSectionFooterWithDivider(a0, a1, a2);
object.canHaveVoiceSummary = isSectionFooterVoiceSummaryEligible(a0, a2);
return object;
};
exports.getSectionFooterActiveVoiceChannels = closure;
exports.isSectionFooterWithActiveVoiceChannels = function({category, voiceStates, selectedChannelId,
selectedVoiceChannelId}) {
category = getSectionFooterActiveVoiceChannels({category: category, selectedChannelId: selectedChannelId,
selectedVoiceChannelId: selectedVoiceChannelId, voiceStates: voiceStates}).length;
return category > 0;
};
}
function isSectionFooterWithDivider(a0, a1, a2) { // fn#110964, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14905:207, offset: 0x0238dd62, size: 343 bytes, params: 4, frame: 18
var r1;
var r0;
var r7;
var r5;
var r3;
var r2;
var rows;
var value9;
var value10;
var value;
const SECTION_INDEX_GUILD_ACTIONS = (require(5092) /* metro dependency 5092: ChannelListState */).SECTION_INDEX_GUILD_ACTIONS;
if (a2 === SECTION_INDEX_GUILD_ACTIONS) {
rows = a0.getGuildActionSection().getRows();
r1 = rows.length === 1 && rows[0] === ChannelListGuildActionRow.GUILD_PREMIUM_PROGRESS_BAR;
r1 = !r1 ? a0.getGuildActionSection().isEmpty() : r1;
r0 = r1;
} else {
r0 = a0.getSections(false)[a2] === 0;
}
if (r0) {
r0 = !r0;
} else {
value9 = a2 === SECTION_INDEX_GUILD_ACTIONS;
if (value9) {
r1 = value9;
} else {
if (a0.id === FAVORITES_RAW_GUILD_ID) {
r2 = a2 !== a0.getSections(false).length - 1;
} else {
value10 = a2 === (require(5092) /* metro dependency 5092: ChannelListState */).SECTION_INDEX_FAVORITES;
if (value10) {
r2 = value10;
} else {
if (a1) {
value = a2 !== (require(5092) /* metro dependency 5092: ChannelListState */).SECTION_INDEX_UNCATEGORIZED_CHANNELS;
if (value) {
value = a2 === a0.recentsSectionNumber;
if (value) {
r7 = value;
} else {
a0.voiceChannelsSectionNumber;
r7 = false;
}
r5 = r7;
} else {
r5 = value;
}
r3 = r5;
} else {
r3 = !!a1;
}
r2 = r3;
}
}
r1 = r2;
}
r0 = r1;
}
return r0;
}
function isSectionFooterVoiceSummaryEligible(a0, a1) { // fn#110965, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14905:748, offset: 0x0238deb9, size: 132 bytes, params: 3, frame: 16
const SECTION_INDEX_GUILD_ACTIONS = (require(5092) /* metro dependency 5092: ChannelListState */).SECTION_INDEX_GUILD_ACTIONS;
let r0 = a1 === SECTION_INDEX_GUILD_ACTIONS || a1 === (require(5092) /* metro dependency 5092: ChannelListState */).SECTION_INDEX_FAVORITES;
r0 = !r0 ? a1 === (require(5092) /* metro dependency 5092: ChannelListState */).SECTION_INDEX_UNCATEGORIZED_CHANNELS : r0;
r0 = !r0 ? a1 === a0.recentsSectionNumber : r0;
r0 = !r0 ? a1 === a0.voiceChannelsSectionNumber : r0;
return !r0;
}
function getSectionFooterActiveVoiceChannels({category, voiceStates, selectedChannelId, selectedVoiceChannelId}) { // fn#110966, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14905:996, offset: 0x0238df3d, size: 110 bytes, params: 2, frame: 13
var r0;
let value = CategoryCollapseStore.isCollapsed(category.record.id);
if (value !== true) {
r0 = [];
} else {
value = category.getChannelRecords();
value = value.filter(_fun110967);
r0 = value;
}
return r0;
}
function _fun110967(a0) { // fn#110967, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14905:1185, offset: 0x0238dfab, size: 110 bytes, params: 2, frame: 14
var r1;
var r0;
var voiceStatesBinding;
var id;
const value = environment.__proto__;
const can = PermissionStore.can;
const VIEW_CHANNEL = Permissions.VIEW_CHANNEL;
if (Reflect.apply(can, PermissionStore, [VIEW_CHANNEL, a0])) {
voiceStatesBinding = voiceStates;
id = a0.id;
r1 = voiceStatesBinding[id] ?? [];
id = a0.id;
r0 = id !== selectedVoiceChannelId && a0.id !== selectedChannelId;
r0 = r0 && r1.length > 0;
return r0;
}
return false;
}
@@ -0,0 +1,36 @@
/* Metro module 9485; source: modules/guild_sidebar/SidebarVisibilityMethodStore.tsx; dependencies: [629, 2] */
function _fun74053(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#74053, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9671:6, offset: 0x01d7f56b, size: 167 bytes, params: 8, frame: 18
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
let value = require(629) /* metro dependency 629 */;
value = value.create(function() {
return {};
});
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/guild_sidebar/SidebarVisibilityMethodStore.tsx');
exports.SidebarVisibilityMethodStore = value;
exports.setGetVisibleGuildIds = setGetVisibleGuildIds;
exports.getVisibleGuildIdsMethod = getVisibleGuildIdsMethod;
exports.setGetVisibleChannelIds = setGetVisibleChannelIds;
exports.getVisibleChannelIdsMethod = getVisibleChannelIdsMethod;
}
function setGetVisibleGuildIds(a0) { // fn#74055, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9671:270, offset: 0x01d7f612, size: 32 bytes, params: 2, frame: 12
env0_0.setState({getVisibleGuildIds: a0});
}
function getVisibleGuildIdsMethod() { // fn#74056, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9671:367, offset: 0x01d7f632, size: 25 bytes, params: 1, frame: 9
const binding = env0_0;
const getState = binding.getState;
return Reflect.apply(getState, binding, []).getVisibleGuildIds;
}
function setGetVisibleChannelIds(a0) { // fn#74057, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9671:469, offset: 0x01d7f64b, size: 32 bytes, params: 2, frame: 12
env0_0.setState({getVisibleChannelIds: a0});
}
function getVisibleChannelIdsMethod() { // fn#74058, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9671:572, offset: 0x01d7f66b, size: 25 bytes, params: 1, frame: 9
const binding = env0_0;
const getState = binding.getState;
return Reflect.apply(getState, binding, []).getVisibleChannelIds;
}
@@ -0,0 +1,19 @@
/* Metro module 14581; source: modules/guild_sidebar/VoiceCategoryActionCreators.tsx; dependencies: [694, 2] */
function _fun110303(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#110303, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14778:6, offset: 0x02373f19, size: 112 bytes, params: 8, frame: 17
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/guild_sidebar/VoiceCategoryActionCreators.tsx');
exports.voiceCategoryExpand = voiceCategoryExpand;
exports.voiceCategoryCollapse = voiceCategoryCollapse;
}
function voiceCategoryExpand(a0) { // fn#110304, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14778:201, offset: 0x02373f89, size: 59 bytes, params: 2, frame: 13
(importDefault(694) /* metro dependency 694: Dispatcher */).dispatch({'type': 'VOICE_CATEGORY_EXPAND',
'guildId': null, 'expand': true, guildId: a0});
}
function voiceCategoryCollapse(a0) { // fn#110305, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14778:327, offset: 0x02373fc4, size: 59 bytes, params: 2, frame: 13
(importDefault(694) /* metro dependency 694: Dispatcher */).dispatch({'type': 'VOICE_CATEGORY_COLLAPSE',
'guildId': null, 'expand': false, guildId: a0});
}
@@ -0,0 +1,172 @@
/* Metro module 11846; source: modules/guild_sidebar/native/BaseChannelItem.tsx; dependencies: [31, 27, 10980, 4865, 33, 4501, 697, 4573, 478, 1305, 10957, 8554, 11847, 2] */
function _fun90765(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#90765, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12032:6, offset: 0x020448db, size: 420 bytes, params: 8, frame: 21
const env0_0 = require;
const closure = BaseChannelSubtitle;
const closure2 = useChannelNameTextProps;
const closure3 = getChannelSubtitleTextProps;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const env0_3 = importAll(31) /* metro dependency 31 */;
const env0_4 = (require(27) /* metro dependency 27 */).View;
const env0_5 = (require(10980) /* metro dependency 10980: RedesignChannelListConstants */).CHANNEL_TITLE_LINE_HEIGHT;
const env0_6 = (require(4865) /* metro dependency 4865: ReadStateConstants */).UnreadSetting;
const value = require(33) /* metro dependency 33 */;
const env0_7 = value.jsx;
const env0_8 = value.jsxs;
const env0_9 = (require(4501) /* metro dependency 4501: createStyles */).createStyles(_fun90769);
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/guild_sidebar/native/BaseChannelItem.tsx');
exports.default = BaseChannelItem;
exports.ChannelModes = {SELECTED: 'Selected', LOCKED: 'Locked', MUTED: 'Muted', RELEVANT: 'Relevant',
UNREAD_LESS_IMPORTANT: 'UnreadLessImportant', UNREAD_IMPORTANT: 'UnreadImportant', DEFAULT: 'Default'};
exports.BaseChannelSubtitle = closure;
exports.BaseChannelIcon = BaseChannelIcon;
exports.useChannelNameTextProps = closure2;
exports.getChannelSubtitleTextProps = closure3;
exports.BaseChannelName = BaseChannelName;
}
function BaseChannelSubtitle({mode, subtitle}) { // fn#90766, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12032:1276, offset: 0x02044a7f, size: 133 bytes, params: 2, frame: 19
var r0;
var Text;
var value;
if (subtitle == null) {
r0 = null;
} else {
Text = (require(4573) /* metro dependency 4573: Text */).Text;
value = require(478) /* metro dependency 478: PlatformUtils */;
value = <Text experimental_useNativeText={!value.isAndroid()} lineClamp={1} {...getChannelSubtitleTextProps(mode)}>{subtitle}</Text>;
r0 = value;
}
return r0;
}
function useChannelNameTextProps(a0) { // fn#90767, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12032:1477, offset: 0x02044b04, size: 156 bytes, params: 2, frame: 3
const UNREAD_IMPORTANT = env0_10.UNREAD_IMPORTANT;
return a0 === UNREAD_IMPORTANT || a0 === env0_10.RELEVANT ? {'variant': 'text-md/semibold',
'color': 'redesign-channel-name-text'} : a0 === env0_10.UNREAD_LESS_IMPORTANT ? {'variant': 'text-md/medium',
'color': 'redesign-channel-name-muted-text'} : a0 === env0_10.MUTED ? {'variant': 'text-md/medium',
'color': 'text-muted'} : a0 === env0_10.SELECTED ? {'variant': 'text-md/medium',
'color': 'redesign-channel-name-text'} : {'variant': 'text-md/medium',
'color': 'redesign-channel-name-muted-text'};
}
function getChannelSubtitleTextProps(a0) { // fn#90768, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12032:1922, offset: 0x02044ba0, size: 86 bytes, params: 2, frame: 3
var object;
const UNREAD_IMPORTANT = env0_10.UNREAD_IMPORTANT;
if (a0 === UNREAD_IMPORTANT) {
object = {'variant': 'text-xs/medium', 'color': 'redesign-channel-name-text'};
} else if (a0 === env0_10.RELEVANT) {
object = {'variant': 'text-xs/medium', 'color': 'redesign-channel-name-text'};
} else if (a0 === env0_10.SELECTED) {
object = {'variant': 'text-xs/medium', 'color': 'redesign-channel-name-text'};
} else {
env0_10.MUTED;
object = {'variant': 'text-xs/medium', 'color': 'text-muted'};
}
return object;
}
function _fun90769(a0) { // fn#90769, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12032:232, offset: 0x02044bf6, size: 425 bytes, params: 2, frame: 18
const object2 = {};
object2.rowPaddingNoIcon = {paddingHorizontal: 6};
const object4 = {};
const CHANNEL_ITEM_RADIUS = (importDefault(697) /* metro dependency 697: native */).modules.mobile.CHANNEL_ITEM_RADIUS;
object4.borderRadius = CHANNEL_ITEM_RADIUS;
const MOBILE_CHANNEL_ITEM_BACKGROUND_SELECTED = (importDefault(697) /* metro dependency 697: native */).colors.MOBILE_CHANNEL_ITEM_BACKGROUND_SELECTED;
object4.backgroundColor = MOBILE_CHANNEL_ITEM_BACKGROUND_SELECTED;
object2.rowSelected = object4;
const PX_8 = (importDefault(697) /* metro dependency 697: native */).space.PX_8;
object2.unreadIndicator = {left: -PX_8};
let MUTED = env0_10.MUTED;
const value2 = 1;
object2.channelIcon = {'width': 16, 'height': 16, 'marginRight': 8, opacity: a0 !== MUTED ? value2 : 0.5};
MUTED = env0_10.MUTED;
object2.redesignedChannelIcon = {marginRight: 8, opacity: a0 !== MUTED ? value2 : 0.5};
const CHANNEL_ICON = (importDefault(697) /* metro dependency 697: native */).colors.CHANNEL_ICON;
object2.channelIconNormal = {tintColor: CHANNEL_ICON};
const INTERACTIVE_TEXT_ACTIVE = (importDefault(697) /* metro dependency 697: native */).colors.INTERACTIVE_TEXT_ACTIVE;
object2.channelIconUnread = {tintColor: INTERACTIVE_TEXT_ACTIVE};
const ICON_MUTED = (importDefault(697) /* metro dependency 697: native */).colors.ICON_MUTED;
object2.channelIconMuted = {tintColor: ICON_MUTED};
object2.channel = {'paddingHorizontal': 8, 'paddingVertical': 8, 'flexDirection': 'row', 'alignItems': 'center',
'position': 'relative'};
object2.channelNameContainer = {'flex': 1, 'flexDirection': 'column', 'alignItems': 'stretch',
'justifyContent': 'center'};
MUTED = env0_10.MUTED;
object2.channelName = {'flexGrow': 1, 'textAlign': 'left', lineHeight: CHANNEL_TITLE_LINE_HEIGHT,
opacity: a0 !== MUTED ? value2 : 0.5};
return object2;
}
function BaseChannelItem(a0) { // fn#90770, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12032:2235, offset: 0x02044d9f, size: 407 bytes, params: 2, frame: 30
const icon = a0.icon;
const name = a0.name;
const mode = a0.mode;
const hideIcon = a0.hideIcon;
let disableHighlightOnPress = a0.disableHighlightOnPress;
disableHighlightOnPress = !(disableHighlightOnPress === undefined) && disableHighlightOnPress;
const channelInfo = a0.channelInfo;
const children = a0.children;
let unread = a0.unread;
unread = !(unread === undefined) && unread;
const object2 = {'icon': 0, 'name': 0, 'mode': 0, 'hideIcon': 0, 'disableHighlightOnPress': 0, 'channelInfo': 0,
'children': 0, 'unread': 0};
silentSetPrototypeOf(object2, null, undefined);
const value = copyDataProperties({}, a0, object2, undefined);
const styles = useStyles(mode);
const value3 = env0_3.useMemo(_fun90771, [hideIcon, mode, styles]);
const value4 = !hideIcon;
return ((Component) => <Component {...value}><View style={value3}>{hideIcon ? value4 : ((Component) => <Component style={styles.unreadIndicator} unread={unread} resolvedUnreadSetting={mode === env0_10.UNREAD_LESS_IMPORTANT ? UnreadSetting.ONLY_MENTIONS : UnreadSetting.ALL_MESSAGES} />)(importDefault(10957) /* metro dependency 10957: StaticChannelIndicator */)}{hideIcon ? value4 : icon}{name}{channelInfo}</View>{children}</Component>)(disableHighlightOnPress ? importDefault(11847) /* metro dependency 11847: TouchableBackground */ : (require(8554) /* metro dependency 8554: native */).AnimatedPressableHighlight);
}
function BaseChannelIcon({disableColor, mode, source, IconComponent, style, isChannelLive}) { // fn#90772, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12032:2795, offset: 0x02044f87, size: 332 bytes, params: 2, frame: 26
var r0;
var value;
const styles = useStyles(mode);
const MUTED = env0_10.MUTED;
const value2 = mode === MUTED;
const UNREAD_IMPORTANT = env0_10.UNREAD_IMPORTANT;
const value3 = mode === UNREAD_IMPORTANT;
const SELECTED = env0_10.SELECTED;
const value4 = mode === SELECTED;
const items = [styles.channelIcon];
if (disableColor !== true) {
items.push(value2 ? styles.channelIconMuted : value3 || value4 ? styles.channelIconUnread : styles.channelIconNormal);
}
if (style != null) {
items.push(style);
}
if (IconComponent != null) {
value = 'status-positive';
value = <IconComponent size="sm" style={styles.redesignedChannelIcon} color={isChannelLive ? value : value2 ? 'icon-muted' : value3 || value4 ? 'interactive-text-active' : 'channel-icon'} />;
r0 = value;
} else {
const Icon = (require(1305) /* metro dependency 1305: native */).Icon;
r0 = <Icon disableColor={disableColor} size={(require(1305) /* metro dependency 1305: native */).Icon.Sizes.CUSTOM} style={items} source={source} />;
}
return r0;
}
function BaseChannelName({mode, name, subtitle, textStyle}) { // fn#90773, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12032:3436, offset: 0x020450d3, size: 216 bytes, params: 2, frame: 24
const styles = useStyles(mode);
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
const textProps = {experimental_useNativeText: true, ...useChannelNameTextProps(mode)};
textProps['lineClamp'] = 1;
textProps['style'] = [styles.channelName, textStyle];
return (
<View style={styles.channelNameContainer}>
<Text {...textProps}>
{name}
</Text>
<BaseChannelSubtitle mode={mode} subtitle={subtitle} />
</View>
);
}
function _fun90771() { // fn#90771, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12032:2390, offset: 0x02044f36, size: 81 bytes, params: 1, frame: 4
const hideIconBinding = hideIcon;
const modeBinding = mode;
const SELECTED = env1_10.SELECTED;
return [styles.channel, hideIconBinding && styles.rowPaddingNoIcon, modeBinding === SELECTED && styles.rowSelected];
}
@@ -0,0 +1,89 @@
/* Metro module 14697; source: modules/guild_sidebar/native/ChannelBadge.tsx; dependencies: [31, 27, 1949, 33, 4501, 632, 14698, 11819, 4573, 1856, 2] */
function _fun110877(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#110877, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14894:6, offset: 0x0238acc2, size: 208 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 env0_3 = (require(27) /* metro dependency 27 */).View;
const localeStore = importDefault(1949) /* metro dependency 1949: LocaleStore */;
const env0_5 = (require(33) /* metro dependency 33 */).jsx;
const env0_6 = (require(4501) /* metro dependency 4501: createStyles */).createStyles(function() {
return {channelInfoContainer: {paddingStart: 4}};
});
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/guild_sidebar/native/ChannelBadge.tsx');
exports.default = ChannelBadge;
}
function ChannelBadge({mentionCount, isMentionLowImportance, isNewChannel, postsWithUnreadsCount, muted}) { // fn#110879, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14894:305, offset: 0x0238ada5, size: 394 bytes, params: 2, frame: 25
var r0;
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
var value;
const styles = useStyles();
const locale = (require(632) /* metro dependency 632: useStateFromStores */).useStateFromStores([LocaleStore],
function() {
return LocaleStore.locale;
});
if (mentionCount == null) {
if (isNewChannel) {
var viewBindingProps = {style: styles.channelInfoContainer};
value = importDefault(11819) /* metro dependency 11819: NewBadge */;
value = <View {...viewBindingProps}>{((Component) => <Component />)(value)}</View>;
r0 = value;
} else if (muted != null) {
if (muted) {
r0 = null;
} else if (postsWithUnreadsCount != null) {
if (postsWithUnreadsCount > 0) {
var viewBindingProps = {style: styles.channelInfoContainer};
value = require(1856) /* metro dependency 1856: NumberUtils */;
value = <View {...viewBindingProps}><Text variant="text-xs/semibold" color="text-muted">{value.humanizeValue(postsWithUnreadsCount,
locale)}</Text></View>;
r0 = value;
} else {
r0 = null;
}
} else {
r0 = null;
}
} else {
r0 = null;
}
} else if (mentionCount > 0) {
var viewBindingProps = {style: styles.channelInfoContainer};
value = importDefault(14698) /* metro dependency 14698: MentionsBadge */;
value = <View {...viewBindingProps}>{((Component) => <Component mentionsCount={mentionCount} isMentionLowImportance={isMentionLowImportance} />)(value)}</View>;
r0 = value;
} else if (isNewChannel) {
var viewBindingProps = {style: styles.channelInfoContainer};
value = importDefault(11819) /* metro dependency 11819: NewBadge */;
value = <View {...viewBindingProps}>{((Component) => <Component />)(value)}</View>;
r0 = value;
} else if (muted != null) {
if (muted) {
r0 = null;
} else if (postsWithUnreadsCount != null) {
if (postsWithUnreadsCount > 0) {
var viewBindingProps = {style: styles.channelInfoContainer};
value = require(1856) /* metro dependency 1856: NumberUtils */;
value = <View {...viewBindingProps}><Text variant="text-xs/semibold" color="text-muted">{value.humanizeValue(postsWithUnreadsCount,
locale)}</Text></View>;
r0 = value;
} else {
r0 = null;
}
} else {
r0 = null;
}
} else {
r0 = null;
}
return r0;
}
@@ -0,0 +1,647 @@
/* Metro module 14695; source: modules/guild_sidebar/native/ChannelInfo.tsx; dependencies: [31, 5096, 1867, 3784, 4605, 4297, 661, 33, 4501, 566, 11600, 5102, 9619, 14696, 14697, 4801, 1305, 14699, 14700, 14538, 4809, 11817, 14539, 14701, 10226, 2] */
function _fun110869(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#110869, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14892:6, offset: 0x0238a5a8, size: 337 bytes, params: 8, frame: 20
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
importAll(31) /* metro dependency 31 */;
const newChannelsStore = importDefault(5096) /* metro dependency 5096: NewChannelsStore */;
const guildStore = importDefault(1867) /* metro dependency 1867: GuildStore */;
const permissionStore = importDefault(3784) /* metro dependency 3784: PermissionStore */;
const readStateStore = importDefault(4605) /* metro dependency 4605: ReadStateStore */;
const voiceStateStore = importDefault(4297) /* metro dependency 4297: VoiceStateStore */;
let value = require(661) /* metro dependency 661: Constants */;
const Fonts = value.Fonts;
const env0_8 = value.GuildFeatures;
const env0_9 = value.Permissions;
const env0_10 = (require(33) /* metro dependency 33 */).jsx;
value = require(4501) /* metro dependency 4501: createStyles */;
const createStyles = value.createStyles;
const CODE_NORMAL = Fonts.CODE_NORMAL;
const env0_11 = Reflect.apply(createStyles, value, [{activeTimestamp: {'fontFamily': null, 'fontSize': 12,
'lineHeight': 16, fontFamily: CODE_NORMAL}}]);
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/guild_sidebar/native/ChannelInfo.tsx');
exports.default = ChannelInfo;
}
function LimitAndDurationInfo({channel, voiceStatesCount, selected}) { // fn#110870, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14892:317, offset: 0x0238a6f9, size: 240 bytes, params: 2, frame: 20
const {isLocked, hasVideo,
hasMedia} = (require(566) /* metro dependency 566: flux */).useStateFromStoresObject([VoiceStateStore,
PermissionStore], _fun110871);
if ((importDefault(11817) /* metro dependency 11817: useShowConnectedUserLimit */)({channel: channel,
locked: isLocked, video: hasVideo || hasMedia, selected: selected})) {
const ConnectedUserLimit = (require(14539) /* metro dependency 14539: ConnectedUserLimit */).ConnectedUserLimit;
return (
<ConnectedUserLimit
userCount={voiceStatesCount}
video={hasVideo || hasMedia}
channel={channel}
/>
);
} else {
return <DurationInfo channel={channel} />;
}
}
function DurationInfo({channel}) { // fn#110872, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14892:776, offset: 0x0238a872, size: 122 bytes, params: 2, frame: 17
const styles = useStyles();
const value2 = (require(14701) /* metro dependency 14701: useVoiceChannelStartTime */).useStartTime(channel);
if (value2 != null) {
const ActiveTimestamp = (require(10226) /* metro dependency 10226: Badges */).ActiveTimestamp;
return <ActiveTimestamp entry={{start: value2}} style={styles.activeTimestamp} />;
} else {
return null;
}
}
function ChannelInfo({channel, isChannelSelected, isChannelCollapsed, voiceStates, enableConnectedUserLimit, enableActivities, muted, isSubscriptionGated, needSubscriptionToAccess}) { // fn#110873, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14892:1027, offset: 0x0238a8ec, size: 698 bytes, params: 2, frame: 32
var object2;
var r17;
var r5;
var moduleValue4;
var moduleValue5;
var ChannelBadge;
const {guild, mentionsCount, isMentionLowImportance,
isNewChannel} = (require(566) /* metro dependency 566: flux */).useStateFromStoresObject([GuildStore,
ReadStateStore, NewChannelsStore], function() {
var object = {};
var channelBinding = channel;
object.guild = GuildStore.getGuild(channelBinding.guild_id);
object.mentionsCount = ReadStateStore.getMentionCount(channelBinding.id);
object.isMentionLowImportance = ReadStateStore.getIsMentionLowImportance(channelBinding.id);
object.isNewChannel = NewChannelsStore.shouldIndicateNewChannel(channelBinding.guild_id, channelBinding.id);
return object;
});
const value4 = (importDefault(11600) /* metro dependency 11600: useEmbeddedAppsForChannel */)(channel);
const value5 = (require(5102) /* metro dependency 5102: isOptInEnabled */).useOptInEnabledForGuild(channel.guild_id);
const value6 = (require(9619) /* metro dependency 9619: ForumHooks */).useUnreadThreadsCountForParent(channel.guild_id,
channel.id);
const defaultImport = importDefault(14696) /* metro dependency 14696: showChannelBadge */;
object2 = {mentionsCount: mentionsCount, isNewChannel: isNewChannel, postsWithUnreadsCount: value6, muted: muted};
if (defaultImport(object2)) {
ChannelBadge = importDefault(14697) /* metro dependency 14697: ChannelBadge */;
object2 = {mentionCount: mentionsCount, isMentionLowImportance: isMentionLowImportance};
r5 = isNewChannel && value5;
object2.isNewChannel = r5;
r5 = channel.isForumLikeChannel() ? value6 : null;
object2.postsWithUnreadsCount = r5;
object2.muted = muted;
return <ChannelBadge {...object2} />;
}
if (isChannelCollapsed != null) {
if (isChannelCollapsed) {
r17 = guild == null ? undefined : guild.features.has(GuildFeatures.COMMUNITY);
if (r17 == null) {
if (enableActivities == null) {
if (isSubscriptionGated == null) {
if (enableConnectedUserLimit == null) {
return null;
}
if (enableConnectedUserLimit) {
return (
<LimitAndDurationInfo
channel={channel}
voiceStatesCount={voiceStates?.length ?? 0}
selected={isChannelSelected}
/>
);
}
return null;
}
if (needSubscriptionToAccess == null) {
if (enableConnectedUserLimit == null) {
return null;
}
if (enableConnectedUserLimit) {
return (
<LimitAndDurationInfo
channel={channel}
voiceStatesCount={voiceStates?.length ?? 0}
selected={isChannelSelected}
/>
);
}
return null;
}
if (isSubscriptionGated) {
return ((Component) => <Component locked={needSubscriptionToAccess} />)(importDefault(14538) /* metro dependency 14538: GuildRoleSubscriptionGatedChannelIcon */);
}
if (enableConnectedUserLimit == null) {
return null;
}
if (enableConnectedUserLimit) {
return (
<LimitAndDurationInfo
channel={channel}
voiceStatesCount={voiceStates?.length ?? 0}
selected={isChannelSelected}
/>
);
}
return null;
}
if (enableActivities) {
moduleValue5 = require(14699) /* metro dependency 14699: showChannelItemEmbeddedActivities */;
if (moduleValue5.showChannelItemEmbeddedActivities(value4)) {
return ((Component) => <Component embeddedApps={value4} muted={muted} />)(importDefault(14700) /* metro dependency 14700: ChannelItemEmbeddedActivities */);
}
if (isSubscriptionGated == null) {
if (enableConnectedUserLimit == null) {
return null;
}
if (enableConnectedUserLimit) {
return (
<LimitAndDurationInfo
channel={channel}
voiceStatesCount={voiceStates?.length ?? 0}
selected={isChannelSelected}
/>
);
}
return null;
}
if (needSubscriptionToAccess == null) {
if (enableConnectedUserLimit == null) {
return null;
}
if (enableConnectedUserLimit) {
return (
<LimitAndDurationInfo
channel={channel}
voiceStatesCount={voiceStates?.length ?? 0}
selected={isChannelSelected}
/>
);
}
return null;
}
if (isSubscriptionGated) {
return ((Component) => <Component locked={needSubscriptionToAccess} />)(importDefault(14538) /* metro dependency 14538: GuildRoleSubscriptionGatedChannelIcon */);
}
if (enableConnectedUserLimit == null) {
return null;
}
if (enableConnectedUserLimit) {
return (
<LimitAndDurationInfo
channel={channel}
voiceStatesCount={voiceStates?.length ?? 0}
selected={isChannelSelected}
/>
);
}
return null;
}
if (isSubscriptionGated == null) {
if (enableConnectedUserLimit == null) {
return null;
}
if (enableConnectedUserLimit) {
return (
<LimitAndDurationInfo
channel={channel}
voiceStatesCount={voiceStates?.length ?? 0}
selected={isChannelSelected}
/>
);
}
return null;
}
if (needSubscriptionToAccess == null) {
if (enableConnectedUserLimit == null) {
return null;
}
if (enableConnectedUserLimit) {
return (
<LimitAndDurationInfo
channel={channel}
voiceStatesCount={voiceStates?.length ?? 0}
selected={isChannelSelected}
/>
);
}
return null;
}
if (isSubscriptionGated) {
return ((Component) => <Component locked={needSubscriptionToAccess} />)(importDefault(14538) /* metro dependency 14538: GuildRoleSubscriptionGatedChannelIcon */);
}
if (enableConnectedUserLimit == null) {
return null;
}
if (enableConnectedUserLimit) {
return (
<LimitAndDurationInfo
channel={channel}
voiceStatesCount={voiceStates?.length ?? 0}
selected={isChannelSelected}
/>
);
}
return null;
}
if (r17) {
moduleValue4 = require(4801) /* metro dependency 4801: ChannelListUtils */;
if (moduleValue4.hasStream(voiceStates)) {
const LiveTag = (require(1305) /* metro dependency 1305: native */).LiveTag;
return <LiveTag />;
}
if (enableActivities == null) {
if (isSubscriptionGated == null) {
if (enableConnectedUserLimit == null) {
return null;
}
if (enableConnectedUserLimit) {
return (
<LimitAndDurationInfo
channel={channel}
voiceStatesCount={voiceStates?.length ?? 0}
selected={isChannelSelected}
/>
);
}
return null;
}
if (needSubscriptionToAccess == null) {
if (enableConnectedUserLimit == null) {
return null;
}
if (enableConnectedUserLimit) {
return (
<LimitAndDurationInfo
channel={channel}
voiceStatesCount={voiceStates?.length ?? 0}
selected={isChannelSelected}
/>
);
}
return null;
}
if (isSubscriptionGated) {
return ((Component) => <Component locked={needSubscriptionToAccess} />)(importDefault(14538) /* metro dependency 14538: GuildRoleSubscriptionGatedChannelIcon */);
}
if (enableConnectedUserLimit == null) {
return null;
}
if (enableConnectedUserLimit) {
return (
<LimitAndDurationInfo
channel={channel}
voiceStatesCount={voiceStates?.length ?? 0}
selected={isChannelSelected}
/>
);
}
return null;
}
if (enableActivities) {
moduleValue5 = require(14699) /* metro dependency 14699: showChannelItemEmbeddedActivities */;
if (moduleValue5.showChannelItemEmbeddedActivities(value4)) {
return ((Component) => <Component embeddedApps={value4} muted={muted} />)(importDefault(14700) /* metro dependency 14700: ChannelItemEmbeddedActivities */);
}
if (isSubscriptionGated == null) {
if (enableConnectedUserLimit == null) {
return null;
}
if (enableConnectedUserLimit) {
return (
<LimitAndDurationInfo
channel={channel}
voiceStatesCount={voiceStates?.length ?? 0}
selected={isChannelSelected}
/>
);
}
return null;
}
if (needSubscriptionToAccess == null) {
if (enableConnectedUserLimit == null) {
return null;
}
if (enableConnectedUserLimit) {
return (
<LimitAndDurationInfo
channel={channel}
voiceStatesCount={voiceStates?.length ?? 0}
selected={isChannelSelected}
/>
);
}
return null;
}
if (isSubscriptionGated) {
return ((Component) => <Component locked={needSubscriptionToAccess} />)(importDefault(14538) /* metro dependency 14538: GuildRoleSubscriptionGatedChannelIcon */);
}
if (enableConnectedUserLimit == null) {
return null;
}
if (enableConnectedUserLimit) {
return (
<LimitAndDurationInfo
channel={channel}
voiceStatesCount={voiceStates?.length ?? 0}
selected={isChannelSelected}
/>
);
}
return null;
}
if (isSubscriptionGated == null) {
if (enableConnectedUserLimit == null) {
return null;
}
if (enableConnectedUserLimit) {
return (
<LimitAndDurationInfo
channel={channel}
voiceStatesCount={voiceStates?.length ?? 0}
selected={isChannelSelected}
/>
);
}
return null;
}
if (needSubscriptionToAccess == null) {
if (enableConnectedUserLimit == null) {
return null;
}
if (enableConnectedUserLimit) {
return (
<LimitAndDurationInfo
channel={channel}
voiceStatesCount={voiceStates?.length ?? 0}
selected={isChannelSelected}
/>
);
}
return null;
}
if (isSubscriptionGated) {
return ((Component) => <Component locked={needSubscriptionToAccess} />)(importDefault(14538) /* metro dependency 14538: GuildRoleSubscriptionGatedChannelIcon */);
}
if (enableConnectedUserLimit == null) {
return null;
}
if (enableConnectedUserLimit) {
return (
<LimitAndDurationInfo
channel={channel}
voiceStatesCount={voiceStates?.length ?? 0}
selected={isChannelSelected}
/>
);
}
return null;
}
if (enableActivities == null) {
if (isSubscriptionGated == null) {
if (enableConnectedUserLimit == null) {
return null;
}
if (enableConnectedUserLimit) {
return (
<LimitAndDurationInfo
channel={channel}
voiceStatesCount={voiceStates?.length ?? 0}
selected={isChannelSelected}
/>
);
}
return null;
}
if (needSubscriptionToAccess == null) {
if (enableConnectedUserLimit == null) {
return null;
}
if (enableConnectedUserLimit) {
return (
<LimitAndDurationInfo
channel={channel}
voiceStatesCount={voiceStates?.length ?? 0}
selected={isChannelSelected}
/>
);
}
return null;
}
if (isSubscriptionGated) {
return ((Component) => <Component locked={needSubscriptionToAccess} />)(importDefault(14538) /* metro dependency 14538: GuildRoleSubscriptionGatedChannelIcon */);
}
if (enableConnectedUserLimit == null) {
return null;
}
if (enableConnectedUserLimit) {
return (
<LimitAndDurationInfo
channel={channel}
voiceStatesCount={voiceStates?.length ?? 0}
selected={isChannelSelected}
/>
);
}
return null;
}
if (enableActivities) {
moduleValue5 = require(14699) /* metro dependency 14699: showChannelItemEmbeddedActivities */;
if (moduleValue5.showChannelItemEmbeddedActivities(value4)) {
return ((Component) => <Component embeddedApps={value4} muted={muted} />)(importDefault(14700) /* metro dependency 14700: ChannelItemEmbeddedActivities */);
}
if (isSubscriptionGated == null) {
if (enableConnectedUserLimit == null) {
return null;
}
if (enableConnectedUserLimit) {
return (
<LimitAndDurationInfo
channel={channel}
voiceStatesCount={voiceStates?.length ?? 0}
selected={isChannelSelected}
/>
);
}
return null;
}
if (needSubscriptionToAccess == null) {
if (enableConnectedUserLimit == null) {
return null;
}
if (enableConnectedUserLimit) {
return (
<LimitAndDurationInfo
channel={channel}
voiceStatesCount={voiceStates?.length ?? 0}
selected={isChannelSelected}
/>
);
}
return null;
}
if (isSubscriptionGated) {
return ((Component) => <Component locked={needSubscriptionToAccess} />)(importDefault(14538) /* metro dependency 14538: GuildRoleSubscriptionGatedChannelIcon */);
}
if (enableConnectedUserLimit == null) {
return null;
}
if (enableConnectedUserLimit) {
return (
<LimitAndDurationInfo
channel={channel}
voiceStatesCount={voiceStates?.length ?? 0}
selected={isChannelSelected}
/>
);
}
return null;
}
if (isSubscriptionGated == null) {
if (enableConnectedUserLimit == null) {
return null;
}
if (enableConnectedUserLimit) {
return (
<LimitAndDurationInfo
channel={channel}
voiceStatesCount={voiceStates?.length ?? 0}
selected={isChannelSelected}
/>
);
}
return null;
}
if (needSubscriptionToAccess == null) {
if (enableConnectedUserLimit == null) {
return null;
}
if (enableConnectedUserLimit) {
return (
<LimitAndDurationInfo
channel={channel}
voiceStatesCount={voiceStates?.length ?? 0}
selected={isChannelSelected}
/>
);
}
return null;
}
if (isSubscriptionGated) {
return ((Component) => <Component locked={needSubscriptionToAccess} />)(importDefault(14538) /* metro dependency 14538: GuildRoleSubscriptionGatedChannelIcon */);
}
if (enableConnectedUserLimit == null) {
return null;
}
if (enableConnectedUserLimit) {
return (
<LimitAndDurationInfo
channel={channel}
voiceStatesCount={voiceStates?.length ?? 0}
selected={isChannelSelected}
/>
);
}
return null;
}
}
if (enableActivities != null) {
if (enableActivities) {
moduleValue5 = require(14699) /* metro dependency 14699: showChannelItemEmbeddedActivities */;
if (moduleValue5.showChannelItemEmbeddedActivities(value4)) {
return ((Component) => <Component embeddedApps={value4} muted={muted} />)(importDefault(14700) /* metro dependency 14700: ChannelItemEmbeddedActivities */);
}
if (isSubscriptionGated == null) {
if (enableConnectedUserLimit == null) {
return null;
}
if (enableConnectedUserLimit) {
return (
<LimitAndDurationInfo
channel={channel}
voiceStatesCount={voiceStates?.length ?? 0}
selected={isChannelSelected}
/>
);
}
return null;
}
if (needSubscriptionToAccess == null) {
if (enableConnectedUserLimit == null) {
return null;
}
if (enableConnectedUserLimit) {
return (
<LimitAndDurationInfo
channel={channel}
voiceStatesCount={voiceStates?.length ?? 0}
selected={isChannelSelected}
/>
);
}
return null;
}
if (isSubscriptionGated) {
return ((Component) => <Component locked={needSubscriptionToAccess} />)(importDefault(14538) /* metro dependency 14538: GuildRoleSubscriptionGatedChannelIcon */);
}
if (enableConnectedUserLimit == null) {
return null;
}
if (enableConnectedUserLimit) {
return (
<LimitAndDurationInfo
channel={channel}
voiceStatesCount={voiceStates?.length ?? 0}
selected={isChannelSelected}
/>
);
}
return null;
}
}
if (isSubscriptionGated != null) {
if (needSubscriptionToAccess == null) {
if (enableConnectedUserLimit == null) {
return null;
}
if (enableConnectedUserLimit) {
return (
<LimitAndDurationInfo
channel={channel}
voiceStatesCount={voiceStates?.length ?? 0}
selected={isChannelSelected}
/>
);
}
return null;
}
if (isSubscriptionGated) {
return ((Component) => <Component locked={needSubscriptionToAccess} />)(importDefault(14538) /* metro dependency 14538: GuildRoleSubscriptionGatedChannelIcon */);
}
}
if (enableConnectedUserLimit != null) {
if (enableConnectedUserLimit) {
return (
<LimitAndDurationInfo
channel={channel}
voiceStatesCount={voiceStates?.length ?? 0}
selected={isChannelSelected}
/>
);
}
}
return null;
}
function _fun110871() { // fn#110871, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14892:436, offset: 0x0238a7e9, size: 137 bytes, params: 1, frame: 16
var r1;
var moduleValue;
const hasVideo = VoiceStateStore.hasVideo;
const channelBinding = channel;
const hasVideo2 = Reflect.apply(hasVideo, VoiceStateStore, [channelBinding.id]);
const isGuildStageVoice2 = channelBinding.isGuildStageVoice();
if (isGuildStageVoice2) {
moduleValue = require(4809) /* metro dependency 4809: StageMediaHooks */;
r1 = moduleValue.getStageHasMedia(channel.id);
} else {
r1 = isGuildStageVoice2;
}
const can = PermissionStore.can;
const CONNECT = Permissions.CONNECT;
return {isLocked: !Reflect.apply(can, PermissionStore, [CONNECT, channel]), hasVideo: hasVideo2, hasMedia: r1};
}
@@ -0,0 +1,194 @@
/* Metro module 14536; source: modules/guild_sidebar/native/ChannelItem.tsx; dependencies: [29, 31, 27, 4396, 3793, 1878, 661, 1386, 4865, 33, 4501, 697, 6235, 11846, 1423, 5475, 14537, 6686, 6647, 566, 1305, 6632, 14538, 4805, 1230, 2] */
function _fun109989(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#109989, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14733:6, offset: 0x023647d1, size: 594 bytes, params: 8, frame: 26
var object2;
const env0_0 = require;
const closure = getChannelMode;
const env0_3 = ['channel', 'subtitle', 'hideIcon', 'children', 'textStyle', 'channelInfo', 'onPress'];
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const env0_4 = importDefault(29) /* metro dependency 29 */;
let value = importAll(31) /* metro dependency 31 */;
const env0_5 = (require(27) /* metro dependency 27 */).View;
const presenceStore = importDefault(4396) /* metro dependency 4396: PresenceStore */;
const relationshipStore = importDefault(3793) /* metro dependency 3793: RelationshipStore */;
const userStore = importDefault(1878) /* metro dependency 1878: UserStore */;
const constantsModule = require(661) /* metro dependency 661: Constants */;
const ChannelTypes = constantsModule.ChannelTypes;
const env0_10 = constantsModule.Routes;
const env0_11 = (require(1386) /* metro dependency 1386: ChannelConstants */).StaticChannelRoute;
const env0_12 = (require(4865) /* metro dependency 4865: ReadStateConstants */).UnreadSetting;
const value3 = require(33) /* metro dependency 33 */;
const env0_13 = value3.jsx;
const env0_14 = value3.jsxs;
const Set = global.Set;
const GUILD_VOICE = ChannelTypes.GUILD_VOICE;
const GUILD_STAGE_VOICE = ChannelTypes.GUILD_STAGE_VOICE;
const set = new Set([GUILD_VOICE, GUILD_STAGE_VOICE]);
const createStylesModule = require(4501) /* metro dependency 4501: createStyles */;
const createStyles = createStylesModule.createStyles;
object2 = {};
const GREEN_360 = (importDefault(697) /* metro dependency 697: native */).unsafe_rawColors.GREEN_360;
object2.channelIconLive = {tintColor: GREEN_360};
object2.dmAvatar = {marginRight: 8};
const BACKGROUND_BASE_LOW = (importDefault(697) /* metro dependency 697: native */).colors.BACKGROUND_BASE_LOW;
object2.avatarStatus = {backgroundColor: BACKGROUND_BASE_LOW};
object2.groupDmAvatar = {'width': 20, 'height': 20, 'borderRadius': 10, 'marginRight': 8};
object2.channelInfoContainer = {paddingStart: 4};
const DARK_393C42_LIGHT_DEE0E4 = (require(6235) /* metro dependency 6235: LegacyTokens */).DARK_393C42_LIGHT_DEE0E4;
object2.avatarStatusSelected = {backgroundColor: DARK_393C42_LIGHT_DEE0E4};
const env0_16 = Reflect.apply(createStyles, createStylesModule, [object2]);
value = value.memo(_fun109995);
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/guild_sidebar/native/ChannelItem.tsx');
exports.default = value;
exports.getChannelMode = closure;
}
function getChannelMode(a0) { // fn#109990, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14733:772, offset: 0x02364a23, size: 333 bytes, params: 2, frame: 16
const ChannelModes = (require(11846) /* metro dependency 11846: BaseChannelItem */).ChannelModes;
const muted = a0.muted;
const selected = a0.selected;
const unread = a0.unread;
return selected ? a0.channel.isGuildVocal() ? unread ? ChannelModes.UNREAD_IMPORTANT : ChannelModes.RELEVANT : ChannelModes.SELECTED : a0.locked ? ChannelModes.LOCKED : muted ? ChannelModes.MUTED : unread ? a0.resolvedUnreadSetting === UnreadSetting.ALL_MESSAGES ? ChannelModes.UNREAD_IMPORTANT : ChannelModes.UNREAD_LESS_IMPORTANT : ChannelModes.DEFAULT;
}
function ChannelIcon_109991({channel, locked, isRulesChannel, isChannelLive, selected, mode}) { // fn#109991, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14733:1206, offset: 0x02364b70, size: 495 bytes, params: 2, frame: 26
var r9;
var r11;
var object2;
var channelIcon;
var channelIconComponent;
var defaultImport2;
var BookCheckIcon;
const styles = useStyles();
let type = channel.type;
const DM = ChannelTypes.DM;
if (type === DM) {
return <DMChannelIcon userId={channel.getRecipientId()} selected={selected != null && selected} />;
}
type = channel.type;
const GROUP_DM = ChannelTypes.GROUP_DM;
if (type === GROUP_DM) {
var defaultImport = importDefault(1423) /* metro dependency 1423: AvatarUtils */;
var getChannelIconSource = defaultImport.getChannelIconSource;
object2 = {};
object2.id = channel.id;
object2.icon = channel.icon;
object2.applicationId = channel.getApplicationId();
object2.size = 20;
var value3 = Reflect.apply(getChannelIconSource, defaultImport, [object2]);
if (value3 != null) {
return ((Component) => <Component style={styles.groupDmAvatar} source={value3} />)(importDefault(5475) /* metro dependency 5475: FastImage */);
}
}
if (isRulesChannel) {
defaultImport2 = importDefault(14537) /* metro dependency 14537 */;
BookCheckIcon = (require(6686) /* metro dependency 6686: BookCheckIcon */).BookCheckIcon;
r9 = defaultImport2;
r11 = BookCheckIcon;
} else {
channelIcon = (require(6647) /* metro dependency 6647: ChannelUtils */).getChannelIcon(channel,
{isRulesChannel: false, locked: locked});
channelIconComponent = (require(6647) /* metro dependency 6647: ChannelUtils */).getChannelIconComponent(channel,
{isRulesChannel: false, locked: locked});
r9 = channelIcon;
r11 = channelIconComponent;
}
const BaseChannelIcon = (require(11846) /* metro dependency 11846: BaseChannelItem */).BaseChannelIcon;
return (
<BaseChannelIcon
mode={mode}
source={r9}
isChannelLive={isChannelLive}
style={isChannelLive ? styles.channelIconLive : undefined}
{...r11 != null ? {IconComponent: r11} : {}}
/>
);
}
function DMChannelIcon({userId, selected}) { // fn#109992, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14733:1905, offset: 0x02364d5f, size: 279 bytes, params: 2, frame: 24
const styles = useStyles();
const value2 = (require(566) /* metro dependency 566: flux */).useStateFromStores([UserStore], function() {
return UserStore.getUser(userId);
}, [userId]);
const {status, isMobileOnline,
isVROnline} = (require(566) /* metro dependency 566: flux */).useStateFromStoresObject([PresenceStore],
function() {
var object = {};
var userIdBinding = userId;
object.status = PresenceStore.getStatus(userIdBinding);
object.isMobileOnline = PresenceStore.isMobileOnline(userIdBinding);
object.isVROnline = PresenceStore.isVROnline(userIdBinding);
return object;
}, [userId]);
const Avatar = (require(1305) /* metro dependency 1305: native */).Avatar;
const AvatarSizes = (require(1305) /* metro dependency 1305: native */).AvatarSizes;
const XSMALL_20 = AvatarSizes.XSMALL_20;
return (
<Avatar
user={value2}
guildId={undefined}
size={XSMALL_20}
style={styles.dmAvatar}
status={status}
isMobileOnline={isMobileOnline}
isVROnline={isVROnline}
statusStyle={[styles.avatarStatus, selected && styles.avatarStatusSelected]}
/>
);
}
function _fun109995(a0) { // fn#109995, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14733:2414, offset: 0x02364ebf, size: 506 bytes, params: 2, frame: 32
const styles = useStyles();
const channel = a0.channel;
const subtitle = a0.subtitle;
const hideIcon = a0.hideIcon;
const children = a0.children;
const textStyle = a0.textStyle;
const channelInfo = a0.channelInfo;
const env0_1 = a0.onPress;
const value2 = env0_4(a0, env0_3);
const {isSubscriptionGated,
needSubscriptionToAccess} = (importDefault(6632) /* metro dependency 6632: useChannelRoleSubscriptionStatus */)(channel.id);
const channelMode = getChannelMode(a0);
const value5 = null;
const r7 = value5 != channelInfo || isSubscriptionGated ? <View style={styles.channelInfoContainer}>{channelInfo}{isSubscriptionGated ? ((Component) => <Component locked={needSubscriptionToAccess} />)(importDefault(14538) /* metro dependency 14538: GuildRoleSubscriptionGatedChannelIcon */) : value5}</View> : value5;
const BaseChannelItem = importDefault(11846) /* metro dependency 11846: BaseChannelItem */;
const object2 = {mode: channelMode};
const ChannelModes = (require(11846) /* metro dependency 11846: BaseChannelItem */).ChannelModes;
const UNREAD_IMPORTANT = ChannelModes.UNREAD_IMPORTANT;
object2.unread = channelMode === UNREAD_IMPORTANT || channelMode === (require(11846) /* metro dependency 11846: BaseChannelItem */).ChannelModes.UNREAD_LESS_IMPORTANT;
object2.hideIcon = hideIcon;
const BaseChannelName = (require(11846) /* metro dependency 11846: BaseChannelItem */).BaseChannelName;
const useChannelNameModule = require(4805) /* metro dependency 4805: useChannelName */;
object2.name = <BaseChannelName mode={channelMode} name={useChannelNameModule.computeChannelName(channel, UserStore,
RelationshipStore)} subtitle={subtitle} textStyle={textStyle} />;
object2.icon = <ChannelIcon_109991 {...a0} {...{['mode']: channelMode}} />;
object2.channelInfo = r7;
object2.onPress = onPress_109996;
copyDataProperties(object2, value2, undefined);
return (
<BaseChannelItem {...object2}>
{children}
</BaseChannelItem>
);
}
function onPress_109996(a0) { // fn#109996, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14733:3022, offset: 0x023650b9, size: 137 bytes, params: 2, frame: 15
var value2;
var binding;
var moduleValue;
if (needSubscriptionToAccess) {
value2 = environment.__proto__;
binding = env1_15;
if (binding.has(channel.type)) {
moduleValue = require(1230) /* metro dependency 1230: router_utils */;
moduleValue.transitionTo(Routes.CHANNEL(channel.guild_id, StaticChannelRoute.ROLE_SUBSCRIPTIONS));
} else if (onPress != null) {
onPress(a0);
}
} else if (onPress != null) {
onPress(a0);
}
}
@@ -0,0 +1,56 @@
/* Metro module 14700; source: modules/guild_sidebar/native/ChannelItemEmbeddedActivities.tsx; dependencies: [31, 27, 33, 4501, 697, 6780, 4573, 2] */
function _fun110885(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#110885, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14897:6, offset: 0x0238b04e, size: 328 bytes, params: 8, frame: 22
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
importAll(31) /* metro dependency 31 */;
const env0_3 = (require(27) /* metro dependency 27 */).View;
let value = require(33) /* metro dependency 33 */;
const env0_4 = value.jsx;
const env0_5 = value.jsxs;
value = require(4501) /* metro dependency 4501: createStyles */;
const createStyles = value.createStyles;
const object = {'backgroundColor': null, 'borderRadius': null, 'display': 'flex', 'alignItems': 'center',
'justifyContent': 'center'};
const BACKGROUND_BASE_LOWEST = (importDefault(697) /* metro dependency 697: native */).colors.BACKGROUND_BASE_LOWEST;
object.backgroundColor = BACKGROUND_BASE_LOWEST;
object.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.xs;
const env0_6 = Reflect.apply(createStyles, value, [{overflow: {'lineHeight': 16, 'textAlign': 'center',
'textAlignVertical': 'center', 'padding': 4}, overflowContainer: object, container: {'display': 'flex',
'flexDirection': 'row'}, modeMuted: {opacity: 0.3}}]);
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/guild_sidebar/native/ChannelItemEmbeddedActivities.tsx');
exports.default = ChannelItemEmbeddedActivities;
}
function ChannelItemEmbeddedActivities({embeddedApps, size = require(dependencyMap[5]).GameIconSizes.SIZE_24, muted}) { // fn#110886, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14897:592, offset: 0x0238b196, size: 507 bytes, params: 2, frame: 30
var r11;
var value;
const styles = useStyles();
if (embeddedApps.length <= 0) {
return null;
}
if (embeddedApps.length === 1) {
return ((Component) => <Component game={embeddedApps[0].application} size={size} style={muted && styles.modeMuted} />)(importDefault(6780) /* metro dependency 6780: GameIcon */);
}
const application = embeddedApps[0].application;
const application2 = embeddedApps[1].application;
const value2 = embeddedApps.length - 1;
const GameIconImageSize = (require(6780) /* metro dependency 6780: GameIcon */).GameIconImageSize;
const property = GameIconImageSize[size];
const value3 = ((Component) => <Component game={application} size={size} style={{marginRight: 4}} />)(importDefault(6780) /* metro dependency 6780: GameIcon */);
if (embeddedApps.length === 2) {
value = importDefault(6780) /* metro dependency 6780: GameIcon */;
value = ((Component) => <Component game={application2} size={size} />)(value);
r11 = value;
} else {
r11 = <View style={[styles.overflowContainer, {height: property,
minWidth: property}]}>{((Text) => <Text style={styles.overflow} variant="text-xs/bold">{'+' + value2}</Text>)((require(4573) /* metro dependency 4573: Text */).Text)}</View>;
}
return (
<View style={styles.container}>
{value3}
{r11}
</View>
);
}
@@ -0,0 +1,30 @@
/* Metro module 14539; source: modules/guild_sidebar/native/ConnectedUserLimit.tsx; dependencies: [31, 33, 9234, 14540, 2] */
function _fun110000(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#110000, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14736:6, offset: 0x0236529d, size: 134 bytes, params: 8, frame: 18
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
importAll(31) /* metro dependency 31 */;
const env0_2 = (require(33) /* metro dependency 33 */).jsx;
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/guild_sidebar/native/ConnectedUserLimit.tsx');
exports.ConnectedUserLimit = ConnectedUserLimit;
}
function ConnectedUserLimit({channel, video, userCount}) { // fn#110001, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14736:224, offset: 0x02365323, size: 189 bytes, params: 2, frame: 20
var r2;
var r4;
var r5;
const limit = (importDefault(9234) /* metro dependency 9234: useChannelVideoLimit */)(channel).limit;
let userLimit = channel.userLimit;
userLimit = userLimit > 0 ? channel.userLimit : -1;
let r1 = video && limit > 0;
if (r1) {
r1 = userLimit < 0 || limit < userLimit;
r2 = userLimit > 0 ? global.Math.min(userLimit, limit) : limit;
r4 = r1;
r5 = r2;
} else {
r4 = false;
r5 = userLimit;
}
return ((Component) => <Component users={userCount} total={r5} videoLimit={r4} />)(importDefault(14540) /* metro dependency 14540: VoiceChannelUserLimit */);
}
@@ -0,0 +1,58 @@
/* Metro module 14590; source: modules/guild_sidebar/native/DirectoryChannel.tsx; dependencies: [31, 1379, 1935, 10980, 4865, 33, 4501, 697, 632, 1230, 12129, 14536, 9122, 2] */
function _fun110336(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#110336, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14787:6, offset: 0x02375570, size: 298 bytes, params: 8, frame: 22
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
let value = importAll(31) /* metro dependency 31 */;
const channelStore = importDefault(1379) /* metro dependency 1379: ChannelStore */;
const guildChannelStore = importDefault(1935) /* metro dependency 1935: GuildChannelStore */;
const CHANNEL_MARGIN_VERTICAL = (require(10980) /* metro dependency 10980: RedesignChannelListConstants */).CHANNEL_MARGIN_VERTICAL;
const env0_6 = (require(4865) /* metro dependency 4865: ReadStateConstants */).UnreadSetting;
const env0_7 = (require(33) /* metro dependency 33 */).jsx;
const createStylesModule = require(4501) /* metro dependency 4501: createStyles */;
const createStyles = createStylesModule.createStyles;
const object = {marginVertical: CHANNEL_MARGIN_VERTICAL, marginHorizontal: 8};
object.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.md;
const env0_8 = Reflect.apply(createStyles, createStylesModule, [{container: object}]);
value = value.memo(_fun110337);
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/guild_sidebar/native/DirectoryChannel.tsx');
exports.default = value;
}
function _fun110337({guildId, selectedChannelId, selected}) { // fn#110337, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14787:312, offset: 0x0237569a, size: 329 bytes, params: 2, frame: 22
const styles = useStyles();
const value3 = (require(632) /* metro dependency 632: useStateFromStores */).useStateFromStores([ChannelStore,
GuildChannelStore], _fun110338);
const id = value3?.id;
const r6 = selected || id === selectedChannelId;
const binding = env0_3;
let useCallback = binding.useCallback;
const value6 = Reflect.apply(useCallback, binding, [_fun110339, [guildId, id]]);
useCallback = binding.useCallback;
return value3 == null ? null : ((Component) => <Component onPress={value6} onLongPress={Reflect.apply(useCallback,
binding, [_fun110340,
[id]])} style={styles.container} accessible accessibilityRole="button" accessibilityLabel={(importDefault(9122) /* metro dependency 9122: getChannelA11yLabel */)({channel: value3})} accessibilityState={{selected: r6}} channel={value3} selected={r6} resolvedUnreadSetting={UnreadSetting.ONLY_MENTIONS} />)(importDefault(14536) /* metro dependency 14536: ChannelItem */);
}
function _fun110338() { // fn#110338, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14787:411, offset: 0x023757e3, size: 58 bytes, params: 1, frame: 13
const value = environment.__proto__;
const directoryChannelIds = GuildChannelStore.getDirectoryChannelIds(guildId);
return directoryChannelIds.length === 0 ? null : ChannelStore.getChannel(directoryChannelIds[0]);
}
function _fun110339() { // fn#110339, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14787:547, offset: 0x0237581d, size: 50 bytes, params: 1, frame: 14
let value = environment.__proto__;
value = require(1230) /* metro dependency 1230: router_utils */;
value.transitionToGuild(guildId, id);
}
function _fun110340() { // fn#110340, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14787:609, offset: 0x0237584f, size: 57 bytes, params: 1, frame: 12
var value2;
var moduleValue;
if (id != null) {
value2 = environment.__proto__;
moduleValue = require(12129) /* metro dependency 12129: openChannelLongPressActionSheet */;
moduleValue.openChannelLongPressActionSheet(id);
}
}
@@ -0,0 +1,71 @@
/* Metro module 14589; source: modules/guild_sidebar/native/GuildActionRows.tsx; dependencies: [31, 27, 5096, 4605, 10980, 6600, 4865, 33, 4501, 697, 6941, 3968, 1365, 632, 5092, 5080, 11350, 1962, 11846, 11814, 1244, 12376, 2] */
function _fun110331(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#110331, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14786:6, offset: 0x0237509a, size: 340 bytes, params: 8, frame: 23
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const env0_3 = importAll(31) /* metro dependency 31 */;
const env0_4 = (require(27) /* metro dependency 27 */).View;
const newChannelsStore = importDefault(5096) /* metro dependency 5096: NewChannelsStore */;
const readStateStore = importDefault(4605) /* metro dependency 4605: ReadStateStore */;
const CHANNEL_MARGIN_VERTICAL = (require(10980) /* metro dependency 10980: RedesignChannelListConstants */).CHANNEL_MARGIN_VERTICAL;
const env0_7 = (require(6600) /* metro dependency 6600: GuildOnboardingConstants */).CHANNELS_AND_ROLES_MODAL_KEY;
const env0_8 = (require(4865) /* metro dependency 4865: ReadStateConstants */).ReadStateTypes;
const env0_9 = (require(33) /* metro dependency 33 */).jsx;
const createStylesModule = require(4501) /* metro dependency 4501: createStyles */;
const createStyles = createStylesModule.createStyles;
const object = {marginVertical: CHANNEL_MARGIN_VERTICAL, marginHorizontal: 8};
object.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.md;
const env0_10 = Reflect.apply(createStyles, createStylesModule, [{container: object,
channelInfoContainer: {paddingStart: 4}}]);
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/guild_sidebar/native/GuildActionRows.tsx');
exports.GuildRolesAndChannelsRow = GuildRolesAndChannelsRow;
}
function GuildRolesAndChannelsRow({guild, selected}) { // fn#110332, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14786:505, offset: 0x023751ee, size: 695 bytes, params: 2, frame: 26
const styles = useStyles();
const value2 = (importDefault(6941) /* metro dependency 6941: useGuildOnboardingAvailable */)(guild);
const id = guild.id;
const dismissibleContentUnsafeUtilsModule = require(3968) /* metro dependency 3968: DismissibleContentUnsafeUtils */;
const UNSAFE_useIsDismissibleContentDismissed = dismissibleContentUnsafeUtilsModule.UNSAFE_useIsDismissibleContentDismissed;
const DismissibleContent = (require(1365) /* metro dependency 1365: dismissible_content */).DismissibleContent;
const CHANNEL_BROWSER_NEW_BADGE_NUX = DismissibleContent.CHANNEL_BROWSER_NEW_BADGE_NUX;
const value3 = Reflect.apply(UNSAFE_useIsDismissibleContentDismissed, dismissibleContentUnsafeUtilsModule,
[CHANNEL_BROWSER_NEW_BADGE_NUX]);
const value4 = (require(632) /* metro dependency 632: useStateFromStores */).useStateFromStores([ReadStateStore],
function() {
return ReadStateStore.hasUnread(guild.id, ReadStateTypes.GUILD_ONBOARDING_QUESTION);
});
const value5 = (require(632) /* metro dependency 632: useStateFromStores */).useStateFromStores([NewChannelsStore],
function() {
return NewChannelsStore.getNewChannelIds(guild.id).size > require(dependencyMap[14]).MAX_NEW_CHANNELS_TO_SHOW;
});
const value6 = env0_3.useCallback(function() {
importDefault(dependencyMap[15]).pushLazy(require(dependencyMap[17])(dependencyMap[16], dependencyMap.paths),
{guildId: id}, CHANNELS_AND_ROLES_MODAL_KEY);
}, [id]);
const ChannelModes = (require(11846) /* metro dependency 11846: BaseChannelItem */).ChannelModes;
const DEFAULT = ChannelModes.DEFAULT;
const r8 = selected ? (require(11846) /* metro dependency 11846: BaseChannelItem */).ChannelModes.SELECTED : DEFAULT;
let r0 = value3 ? value4 : !value3;
r0 = !r0 ? value5 : r0;
const r4 = r0 ? <View style={styles.channelInfoContainer}>{((NewBadge) => <NewBadge />)((require(11814) /* metro dependency 11814: components */).NewBadge)}</View> : null;
const BaseChannelItem = importDefault(11846) /* metro dependency 11846: BaseChannelItem */;
const defaultImportProps = {onPress: value6, style: styles.container, accessible: true};
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
let string = intl.string;
const t = (require(1244) /* metro dependency 1244: indexNative */).t;
defaultImportProps.accessibilityLabel = value2 ? Reflect.apply(string, intl, [t.h9mGOP]) : Reflect.apply(string,
intl, [t.et6wav]);
defaultImportProps.accessibilityState = {selected: selected};
defaultImportProps.mode = r8;
const BaseChannelName = (require(11846) /* metro dependency 11846: BaseChannelItem */).BaseChannelName;
string = intl.string;
defaultImportProps.name = <BaseChannelName name={value2 ? Reflect.apply(string, intl,
[t.h9mGOP]) : Reflect.apply(string, intl, [t.et6wav])} mode={r8} />;
const BaseChannelIcon = (require(11846) /* metro dependency 11846: BaseChannelItem */).BaseChannelIcon;
const ChannelListMagnifyingGlassIcon = (require(12376) /* metro dependency 12376: ChannelListMagnifyingGlassIcon */).ChannelListMagnifyingGlassIcon;
defaultImportProps.icon = <BaseChannelIcon mode={r8} IconComponent={ChannelListMagnifyingGlassIcon} />;
defaultImportProps.channelInfo = r4;
return <BaseChannelItem {...defaultImportProps} />;
}
@@ -0,0 +1,89 @@
/* Metro module 14584; source: modules/guild_sidebar/native/GuildMFAWarning.tsx; dependencies: [5, 31, 27, 661, 33, 4501, 697, 8518, 1948, 1962, 3853, 5278, 14585, 4573, 1244, 1305, 2] */
function _fun110312(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#110312, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14781:6, offset: 0x0237434d, size: 385 bytes, params: 8, frame: 23
var object2;
const env0_0 = require;
const handlePress_110313 = function() {
return _handlePress.apply(this, arguments);
};
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const env0_3 = importDefault(5) /* metro dependency 5 */;
importAll(31) /* metro dependency 31 */;
const env0_4 = (require(27) /* metro dependency 27 */).Image;
let value = require(661) /* metro dependency 661: Constants */;
const Fonts = value.Fonts;
const env0_5 = value.HelpdeskArticles;
value = require(33) /* metro dependency 33 */;
const env0_6 = value.jsx;
const env0_7 = value.jsxs;
value = require(4501) /* metro dependency 4501: createStyles */;
const createStyles = value.createStyles;
object2 = {};
const BACKGROUND_BASE_LOW = (importDefault(697) /* metro dependency 697: native */).colors.BACKGROUND_BASE_LOW;
object2.MFAWarning = {'backgroundColor': null, 'padding': 10, 'alignItems': 'center',
backgroundColor: BACKGROUND_BASE_LOW};
object2.MFAWarningIcon = {'marginVertical': 10, 'width': 98, 'height': 53};
const BLUE_345 = (importDefault(697) /* metro dependency 697: native */).unsafe_rawColors.BLUE_345;
const PRIMARY_SEMIBOLD = Fonts.PRIMARY_SEMIBOLD;
object2.MFAWarningLink = {color: BLUE_345, fontFamily: PRIMARY_SEMIBOLD};
const env0_8 = Reflect.apply(createStyles, value, [object2]);
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/guild_sidebar/native/GuildMFAWarning.tsx');
exports.default = GuildMFAWarning;
exports.getScaledGuildMFAWarningHeight = getScaledGuildMFAWarningHeight;
}
function _handlePress() { // fn#110314, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14781:527, offset: 0x023744ce, size: 50 bytes, params: 1, frame: 14
return env0_3(_fun110316).apply(this, arguments);
}
function GuildMFAWarning() { // fn#110317, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14781:808, offset: 0x02374589, size: 341 bytes, params: 1, frame: 24
const styles = useStyles();
const PressableOpacity = (require(5278) /* metro dependency 5278: Pressables */).PressableOpacity;
const handlePress_110313Binding = handlePress_110313;
const items3 = [<Image style={styles.MFAWarningIcon} source={importDefault(14585) /* metro dependency 14585 */} />];
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
const string = intl.string;
const ZIf8Ag = (require(1244) /* metro dependency 1244: indexNative */).t.ZIf8Ag;
const items2 = [Reflect.apply(string, intl, [ZIf8Ag])];
const LegacyText = (require(1305) /* metro dependency 1305: native */).LegacyText;
items2[1] = <LegacyText style={styles.MFAWarningLink}>{' '}{intl.string((require(1244) /* metro dependency 1244: indexNative */).t.hvVgAZ)}</LegacyText>;
items3[1] = <Text variant="text-xs/medium" color="text-default">{items2}</Text>;
return (
<PressableOpacity
accessibilityRole="button"
style={styles.MFAWarning}
onPress={handlePress_110313Binding}
>
{items3}
</PressableOpacity>
);
}
function getScaledGuildMFAWarningHeight(a0) { // fn#110318, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14781:1259, offset: 0x023746de, size: 73 bytes, params: 2, frame: 13
let value = require(8518) /* metro dependency 8518: useScaledTextLineHeightAndroid */;
value = value.scaleTextLineHeight('text-xs/medium', a0);
return 83 + 5 * value + 10 + 10;
}
function* _fun110316() { // fn#110316, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14781:574, offset: 0x0237450b, size: 126 bytes, params: 1, frame: 17
if (true) {
value = environment.__proto__.__proto__;
var binding = env2_0;
var binding2 = env2_2;
var value3 = binding(binding2[9]);
var property = binding2[8];
yield value3(property, binding2.paths);
var value4 = undefined;
if (false) {
return value4;
}
property = value4.default;
var value6 = env2_1(env2_2[10]);
var openURL = value6.openURL;
var getArticleURL = property.getArticleURL;
var SETTING_UP_TWO_FACTOR = env2_5.SETTING_UP_TWO_FACTOR;
Reflect.apply(openURL, value6, [Reflect.apply(getArticleURL, property, [SETTING_UP_TWO_FACTOR])]);
}
}
@@ -0,0 +1,160 @@
/* Metro module 14710; source: modules/guild_sidebar/native/GuildTooltipActionSheets.tsx; dependencies: [57, 31, 1376, 33, 12087, 1962, 14711, 14713, 14716, 14718, 14719, 1365, 14720, 14721, 6579, 14722, 10357, 11088, 4017, 2] */
function _fun110973(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#110973, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14907:6, offset: 0x0238e2dd, size: 280 bytes, params: 8, frame: 20
const env0_0 = require;
const closure = GuildTooltipActionSheets;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const env0_3 = importDefault(57) /* metro dependency 57 */;
const env0_4 = importAll(31) /* metro dependency 31 */;
const env0_5 = (require(1376) /* metro dependency 1376: DismissibleContentConstants */).DismissibleContentGroupName;
const env0_6 = (require(33) /* metro dependency 33 */).jsx;
object = {code: 'function GuildTooltipActionSheetsTsx1(){const{runOnJS,setShouldRender}=this.__closure;return runOnJS(setShouldRender)(true);}'};
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/guild_sidebar/native/GuildTooltipActionSheets.tsx');
exports.default = GuildTooltipActionSheetsGuard;
exports.GuildTooltipActionSheets = closure;
}
function GuildTooltipActionSheets({guild, inRedesign}) { // fn#110974, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14907:552, offset: 0x0238e3f5, size: 475 bytes, params: 2, frame: 18
const id = guild.id;
const items2 = [];
if (inRedesign && (require(14719) /* metro dependency 14719: useCanSeeNUFChannelsForGuild */).useCanSeeNUFChannelsForGuild(id)) {
items2.push((require(1365) /* metro dependency 1365: dismissible_content */).DismissibleContent.NUX_GUILD_CHANNEL_EXPLAINER);
}
const onboardingV2UtilsModule = require(14720) /* metro dependency 14720: OnboardingV2Utils */;
const useCanSeeCreatorMonetizationOnboardingV2Upsell = onboardingV2UtilsModule.useCanSeeCreatorMonetizationOnboardingV2Upsell;
if (Reflect.apply(useCanSeeCreatorMonetizationOnboardingV2Upsell, onboardingV2UtilsModule, [id])) {
items2.push((require(1365) /* metro dependency 1365: dismissible_content */).DismissibleContent.CREATOR_MONETIZATION_ONBOARDING_V2_UPSELL);
}
if ((importDefault(14721) /* metro dependency 14721: useIsGuildEligibleForRoleSubscriptionsUpsell */)(id)) {
items2.push((require(1365) /* metro dependency 1365: dismissible_content */).DismissibleContent.GUILD_HEADER_ROLE_SUBSCRIPTION_UPSELL);
}
const iapEligibilityModule = require(6579) /* metro dependency 6579: IAPEligibility */;
const useCanUseRoleSubscriptionIAP = iapEligibilityModule.useCanUseRoleSubscriptionIAP;
if (Reflect.apply(useCanUseRoleSubscriptionIAP, iapEligibilityModule, [id])) {
items2.push((require(1365) /* metro dependency 1365: dismissible_content */).DismissibleContent.GUILD_ROLE_SUBSCRIPTION_IAP_UPSELL);
}
if ((importDefault(14722) /* metro dependency 14722: useIsEligibleForTierTemplateUpsell */)(id)) {
items2.push((require(1365) /* metro dependency 1365: dismissible_content */).DismissibleContent.SERVER_SUBSCRIPTION_TIER_TEMPLATE_UPSELL);
}
const SelectedDismissibleContent = importDefault(10357) /* metro dependency 10357: SelectedDismissibleContent */;
const GUILD_HEADER_TOOLTIPS = DismissibleContentGroupName.GUILD_HEADER_TOOLTIPS;
return (
<SelectedDismissibleContent contentTypes={items2} groupName={GUILD_HEADER_TOOLTIPS}>
{children_110975}
</SelectedDismissibleContent>
);
}
function NUFChannelsActionSheetImporter() { // fn#110977, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14907:227, offset: 0x0238e80d, size: 45 bytes, params: 1, frame: 13
return require(dependencyMap[5])(dependencyMap[4], dependencyMap.paths);
}
function GuildRoleSubscriptionsUpsellActionSheetImporter() { // fn#110978, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14907:301, offset: 0x0238e83a, size: 45 bytes, params: 1, frame: 13
return require(dependencyMap[5])(dependencyMap[6], dependencyMap.paths);
}
function GuildRoleSubscriptionsIAPUpsellActionSheetImporter() { // fn#110979, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14907:378, offset: 0x0238e867, size: 45 bytes, params: 1, frame: 13
return require(dependencyMap[5])(dependencyMap[7], dependencyMap.paths);
}
function CreatorMonetizationOnboardingV2UpsellActionSheetImporter() { // fn#110980, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14907:461, offset: 0x0238e894, size: 45 bytes, params: 1, frame: 13
return require(dependencyMap[5])(dependencyMap[8], dependencyMap.paths);
}
function TierTemplatesUpsellActionSheetImporter() { // fn#110981, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14907:526, offset: 0x0238e8c1, size: 45 bytes, params: 1, frame: 13
return require(dependencyMap[5])(dependencyMap[9], dependencyMap.paths);
}
function GuildTooltipActionSheetsGuard(a0) { // fn#110982, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14907:2623, offset: 0x0238e8ee, size: 108 bytes, params: 2, frame: 16
const binding = env0_4;
const [property, env0_0] = env0_3(binding.useState(false), 2);
binding.useEffect(_fun110983, []);
return property ? <GuildTooltipActionSheets {...a0} /> : null;
}
function GuildTooltipActionSheetsChildren({visibleContent, markAsDismissed}) { // fn#110975, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14907:1244, owner: GuildTooltipActionSheets.children, offset: 0x0238e5d0, size: 573 bytes, params: 2, frame: 17
const DismissibleContent = (require(1365) /* metro dependency 1365: dismissible_content */).DismissibleContent;
const GUILD_HEADER_ROLE_SUBSCRIPTION_UPSELL = DismissibleContent.GUILD_HEADER_ROLE_SUBSCRIPTION_UPSELL;
if (GUILD_HEADER_ROLE_SUBSCRIPTION_UPSELL === visibleContent) {
const DismissibleActionSheet = (require(11088) /* metro dependency 11088: DismissibleActionSheet */).DismissibleActionSheet;
return (
<DismissibleActionSheet
markAsDismissed={markAsDismissed}
importer={GuildRoleSubscriptionsUpsellActionSheetImporter}
actionSheetKey={env1_7}
guildId={id}
/>
);
}
const GUILD_ROLE_SUBSCRIPTION_IAP_UPSELL = DismissibleContent.GUILD_ROLE_SUBSCRIPTION_IAP_UPSELL;
if (GUILD_ROLE_SUBSCRIPTION_IAP_UPSELL === visibleContent) {
const DismissibleActionSheet2 = (require(11088) /* metro dependency 11088: DismissibleActionSheet */).DismissibleActionSheet;
return (
<DismissibleActionSheet2
markAsDismissed={markAsDismissed}
importer={GuildRoleSubscriptionsIAPUpsellActionSheetImporter}
actionSheetKey={env1_7}
guildId={id}
/>
);
}
const CREATOR_MONETIZATION_ONBOARDING_V2_UPSELL = DismissibleContent.CREATOR_MONETIZATION_ONBOARDING_V2_UPSELL;
if (CREATOR_MONETIZATION_ONBOARDING_V2_UPSELL === visibleContent) {
const DismissibleActionSheet3 = (require(11088) /* metro dependency 11088: DismissibleActionSheet */).DismissibleActionSheet;
return (
<DismissibleActionSheet3
markAsDismissed={markAsDismissed}
importer={CreatorMonetizationOnboardingV2UpsellActionSheetImporter}
actionSheetKey={env1_7}
guildId={id}
/>
);
}
const SERVER_SUBSCRIPTION_TIER_TEMPLATE_UPSELL = DismissibleContent.SERVER_SUBSCRIPTION_TIER_TEMPLATE_UPSELL;
if (SERVER_SUBSCRIPTION_TIER_TEMPLATE_UPSELL === visibleContent) {
const DismissibleActionSheet4 = (require(11088) /* metro dependency 11088: DismissibleActionSheet */).DismissibleActionSheet;
return (
<DismissibleActionSheet4
actionSheetKey={env1_7}
importer={TierTemplatesUpsellActionSheetImporter}
markAsDismissed={markAsDismissed}
guildId={id}
/>
);
}
const NUX_GUILD_CHANNEL_EXPLAINER = DismissibleContent.NUX_GUILD_CHANNEL_EXPLAINER;
if (NUX_GUILD_CHANNEL_EXPLAINER === visibleContent) {
const DismissibleActionSheet5 = (require(11088) /* metro dependency 11088: DismissibleActionSheet */).DismissibleActionSheet;
return (
<DismissibleActionSheet5
markAsDismissed={function(a0) {
return markAsDismissed(a0);
}}
actionSheetKey={env1_7}
importer={NUFChannelsActionSheetImporter}
/>
);
}
return null;
}
function _fun110983() { // fn#110983, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14907:2729, offset: 0x0238e95a, size: 117 bytes, params: 1, frame: 17
const reanimatedRexportModule = require(4017) /* metro dependency 4017: ReanimatedRexport */;
const runOnUI = reanimatedRexportModule.runOnUI;
const closure = s_110984;
const object2 = {};
object2.runOnJS = reanimatedRexportModule.runOnJS;
object2.setShouldRender = env0_0;
closure.__closure = object2;
closure.__workletHash = 6076095421855;
closure.__initData = env1_13;
Reflect.apply(runOnUI, reanimatedRexportModule, [closure])();
}
function s_110984() { // fn#110984, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14907:2761, offset: 0x0238e9cf, size: 51 bytes, params: 1, frame: 12
let value = environment.__proto__.__proto__;
value = require(4017) /* metro dependency 4017: ReanimatedRexport */;
value = value.runOnJS(env1_0);
return value(true);
}
@@ -0,0 +1,30 @@
/* Metro module 11821; source: modules/guild_sidebar/native/InvitesDisabledAlertModal.tsx; dependencies: [31, 33, 4500, 1244, 4500, 2] */
function _fun90547(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#90547, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12007:6, offset: 0x0203decc, size: 131 bytes, params: 8, frame: 18
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
importAll(31) /* metro dependency 31 */;
const env0_2 = (require(33) /* metro dependency 33 */).jsx;
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/guild_sidebar/native/InvitesDisabledAlertModal.tsx');
exports.default = InvitesDisabledAlertModal;
}
function InvitesDisabledAlertModal() { // fn#90548, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12007:220, offset: 0x0203df4f, size: 261 bytes, params: 1, frame: 23
const AlertModal = (require(4500) /* metro dependency 4500: AlertModalNative */).AlertModal;
const object2 = {};
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
let string = intl.string;
const LpUfEt = (require(1244) /* metro dependency 1244: indexNative */).t.LpUfEt;
object2.title = Reflect.apply(string, intl, [LpUfEt]);
string = intl.string;
const QRXqzO = (require(1244) /* metro dependency 1244: indexNative */).t.QRXqzO;
object2.content = Reflect.apply(string, intl, [QRXqzO]);
const AlertActions = (require(4500) /* metro dependency 4500: AlertModalNative */).AlertActions;
const AlertActionButton = (require(4500) /* metro dependency 4500: AlertModalNative */).AlertActionButton;
string = intl.string;
const BddRzS = (require(1244) /* metro dependency 1244: indexNative */).t.BddRzS;
object2.actions = <AlertActions><AlertActionButton text={Reflect.apply(string, intl,
[BddRzS])} key="okay" /></AlertActions>;
return <AlertModal {...object2} />;
}
@@ -0,0 +1,16 @@
/* Metro module 14698; source: modules/guild_sidebar/native/MentionsBadge.tsx; dependencies: [31, 33, 1305, 2] */
function _fun110881(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#110881, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14895:6, offset: 0x0238af2f, size: 131 bytes, params: 8, frame: 18
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
importAll(31) /* metro dependency 31 */;
const env0_2 = (require(33) /* metro dependency 33 */).jsx;
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/guild_sidebar/native/MentionsBadge.tsx');
exports.default = MentionsBadge;
}
function MentionsBadge({mentionsCount, isMentionLowImportance}) { // fn#110882, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14895:208, offset: 0x0238afb2, size: 69 bytes, params: 2, frame: 15
const Badge = (require(1305) /* metro dependency 1305: native */).Badge;
return <Badge value={mentionsCount} isMentionLowImportance={isMentionLowImportance} />;
}
@@ -0,0 +1,57 @@
/* Metro module 14540; source: modules/guild_sidebar/native/VoiceChannelUserLimit.tsx; dependencies: [31, 27, 33, 4501, 697, 1305, 12111, 4573, 2] */
function _fun110002(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#110002, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14737:6, offset: 0x023653e0, size: 486 bytes, params: 8, frame: 23
var object2;
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
let value = importAll(31) /* metro dependency 31 */;
const env0_3 = (require(27) /* metro dependency 27 */).View;
const value2 = require(33) /* metro dependency 33 */;
const env0_4 = value2.jsx;
const env0_5 = value2.jsxs;
const createStylesModule = require(4501) /* metro dependency 4501: createStyles */;
const createStyles = createStylesModule.createStyles;
object2 = {};
const VOICE_CHANNEL_USER_LIMIT_ICON = (importDefault(697) /* metro dependency 697: native */).colors.VOICE_CHANNEL_USER_LIMIT_ICON;
object2.videoIcon = {'height': 16, 'width': 16, 'marginRight': 4, tintColor: VOICE_CHANNEL_USER_LIMIT_ICON};
const object4 = {'backgroundColor': null, 'alignItems': 'center', 'flexDirection': 'row', 'borderRadius': 10,
'borderWidth': null, 'borderColor': null, 'overflow': 'hidden'};
let VOICE_CHANNEL_USER_LIMIT_BACKGROUND = (importDefault(697) /* metro dependency 697: native */).colors.VOICE_CHANNEL_USER_LIMIT_BACKGROUND;
object4.backgroundColor = VOICE_CHANNEL_USER_LIMIT_BACKGROUND;
const VOICE_CHANNEL_USER_LIMIT_BORDER_WIDTH = (importDefault(697) /* metro dependency 697: native */).modules.mobile.VOICE_CHANNEL_USER_LIMIT_BORDER_WIDTH;
object4.borderWidth = VOICE_CHANNEL_USER_LIMIT_BORDER_WIDTH;
const BORDER_SUBTLE = (importDefault(697) /* metro dependency 697: native */).colors.BORDER_SUBTLE;
object4.borderColor = BORDER_SUBTLE;
object2.wrapper = object4;
VOICE_CHANNEL_USER_LIMIT_BACKGROUND = (importDefault(697) /* metro dependency 697: native */).colors.VOICE_CHANNEL_USER_LIMIT_BACKGROUND;
object2.left = {'height': 20, 'flexDirection': 'row', 'paddingLeft': 6, 'alignItems': 'center',
'justifyContent': 'center', backgroundColor: VOICE_CHANNEL_USER_LIMIT_BACKGROUND};
let VOICE_CHANNEL_USER_LIMIT_ACCENT_BACKGROUND = (importDefault(697) /* metro dependency 697: native */).colors.VOICE_CHANNEL_USER_LIMIT_ACCENT_BACKGROUND;
object2.mid = {'borderTopWidth': 20, 'borderBottomWidth': 0, 'borderTopColor': 'transparent',
'borderBottomColor': 'transparent', 'borderRightWidth': 6, 'borderRightColor': null, 'paddingRight': 2,
borderRightColor: VOICE_CHANNEL_USER_LIMIT_ACCENT_BACKGROUND};
VOICE_CHANNEL_USER_LIMIT_ACCENT_BACKGROUND = (importDefault(697) /* metro dependency 697: native */).colors.VOICE_CHANNEL_USER_LIMIT_ACCENT_BACKGROUND;
object2.right = {'height': 20, 'flexDirection': 'row', 'paddingRight': 6, 'paddingLeft': 2, 'alignItems': 'center',
'justifyContent': 'center', backgroundColor: VOICE_CHANNEL_USER_LIMIT_ACCENT_BACKGROUND};
const env0_6 = Reflect.apply(createStyles, createStylesModule, [object2]);
value = value.memo(VoiceChannelUserLimit);
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/guild_sidebar/native/VoiceChannelUserLimit.tsx');
exports.default = value;
}
function VoiceChannelUserLimit({users, total, videoLimit}) { // fn#110003, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14737:1114, offset: 0x023655c6, size: 402 bytes, params: 2, frame: 28
const styles = useStyles();
const r7 = videoLimit ? ((Icon) => <Icon source={importDefault(12111) /* metro dependency 12111 */} size={(require(1305) /* metro dependency 1305: native */).Icon.Sizes.REFRESH_SMALL_16} style={styles.videoIcon} />)((require(1305) /* metro dependency 1305: native */).Icon) : null;
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
const items2 = [<View style={styles.left}>{r7}<Text variant="text-xs/medium" lineClamp={1} color="voice-channel-user-limit-text">{users.toString().padStart(2,
'0')}</Text></View>];
items2[1] = <View style={styles.mid} />;
items2[2] = <View style={styles.right}><Text variant="text-xs/medium" lineClamp={1} color="voice-channel-user-limit-text">{total.toString().padStart(2,
'0')}</Text></View>;
return (
<View style={styles.wrapper}>
{items2}
</View>
);
}
@@ -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);
});
}
@@ -0,0 +1,224 @@
/* Metro module 14543; source: modules/guild_sidebar/native/VoiceUserItem.tsx; dependencies: [31, 27, 4502, 33, 1305, 8518, 4501, 697, 10981, 566, 4017, 4504, 1423, 14544, 9250, 9252, 9246, 9248, 9759, 8379, 9436, 2] */
function _fun110021(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#110021, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14740:6, offset: 0x023662c5, size: 474 bytes, params: 8, frame: 26
var object2;
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
let value = importAll(31) /* metro dependency 31 */;
const env0_3 = (require(27) /* metro dependency 27 */).View;
const accessibilityStore = importDefault(4502) /* metro dependency 4502: AccessibilityStore */;
const value2 = require(33) /* metro dependency 33 */;
const env0_5 = value2.jsx;
const env0_6 = value2.jsxs;
const AvatarSizes = (require(1305) /* metro dependency 1305: native */).AvatarSizes;
const env0_7 = AvatarSizes.XSMALL_20;
const createStylesModule = require(4501) /* metro dependency 4501: createStyles */;
const createStyles = createStylesModule.createStyles;
object2 = {voiceState: {'flex': 1, 'flexDirection': 'row', 'alignItems': 'center', 'paddingVertical': 5}};
object2.disabled = {opacity: 0.5};
const object5 = {'marginTop': 4, 'marginRight': 8, 'width': 32, 'height': 32, 'borderRadius': null,
'borderWidth': 4, 'borderColor': null, 'alignItems': 'center', 'overflow': 'hidden'};
object5.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.lg;
const BACKGROUND_BASE_LOW = (importDefault(697) /* metro dependency 697: native */).colors.BACKGROUND_BASE_LOW;
object5.borderColor = BACKGROUND_BASE_LOW;
object2.voiceStateCollapsed = object5;
const object6 = {marginLeft: 6};
const channelListLayoutModule = require(10981) /* metro dependency 10981: ChannelListLayout */;
copyDataProperties(object6, channelListLayoutModule.makeSizeStyle(14), undefined);
object2.voiceStateIcon = object6;
const REDESIGN_CHANNEL_NAME_MUTED_TEXT = (importDefault(697) /* metro dependency 697: native */).colors.REDESIGN_CHANNEL_NAME_MUTED_TEXT;
object2.legacyVoiceStateIcon = {tintColor: REDESIGN_CHANNEL_NAME_MUTED_TEXT, marginLeft: 6};
const env0_8 = Reflect.apply(createStyles, createStylesModule, [object2]);
object2 = {code: 'function VoiceUserItemTsx1(){const{ringing,shouldAnimate,PULSE_ENDING_OPACITY,withRepeat,withSequence,withDelay,INNER_PULSE_DELAY,withTiming,PULSE_DURATION,Easing,PULSE_STARTING_OPACITY,FADE_DURATION}=this.__closure;if(!ringing){return{opacity:1.0};}else if(!shouldAnimate){return{opacity:PULSE_ENDING_OPACITY};}return{opacity:withRepeat(withSequence(withDelay(INNER_PULSE_DELAY,withTiming(PULSE_ENDING_OPACITY,{duration:PULSE_DURATION,easing:Easing.bezier(0.4,0.0,1,1)})),withDelay(PULSE_DURATION,withTiming(PULSE_STARTING_OPACITY,{duration:FADE_DURATION}))),-1)};}'};
value = value.memo(VoiceUserItem);
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/guild_sidebar/native/VoiceUserItem.tsx');
exports.default = value;
exports.getVoiceUserHeight = getVoiceUserHeight;
}
function VoiceUserItem(a0) { // fn#110022, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14740:1317, offset: 0x0236649f, size: 1462 bytes, params: 2, frame: 35
var object2;
var r10;
var r17;
var view;
var View2;
var items2;
var value5;
const Icon = (require(1305) /* metro dependency 1305: native */).Icon;
var defaultImport2;
var value14;
const env0_0 = a0.member;
const env0_1 = a0.user;
const env0_2 = a0.guildId;
const collapsed = a0.collapsed;
const stream = a0.stream;
const serverMute = a0.serverMute;
const serverDeaf = a0.serverDeaf;
const mute = a0.mute;
const deaf = a0.deaf;
const localMute = a0.localMute;
const video = a0.video;
const disabled = a0.disabled;
const platform = a0.platform;
const isInEmbeddedActivity = a0.isInEmbeddedActivity;
const voicePlatform = a0.voicePlatform;
const ringing = a0.ringing;
const styles = useStyles();
const value2 = (require(566) /* metro dependency 566: flux */).useStateFromStores([AccessibilityStore], function() {
return !AccessibilityStore.useReducedMotion;
});
const reanimatedRexportModule = require(4017) /* metro dependency 4017: ReanimatedRexport */;
const useAnimatedStyle = reanimatedRexportModule.useAnimatedStyle;
let closure = VoiceUserItemC;
object2 = {ringing: ringing, shouldAnimate: value2, PULSE_ENDING_OPACITY: 0.4};
object2.withRepeat = reanimatedRexportModule.withRepeat;
object2.withSequence = reanimatedRexportModule.withSequence;
object2.withDelay = reanimatedRexportModule.withDelay;
object2.INNER_PULSE_DELAY = 100;
object2.withTiming = (require(4504) /* metro dependency 4504: timing */).withTiming;
object2.PULSE_DURATION = 250;
const Easing = reanimatedRexportModule.Easing;
object2.Easing = Easing;
object2.PULSE_STARTING_OPACITY = 0.1;
object2.FADE_DURATION = 500;
closure.__closure = object2;
closure.__workletHash = 9430639809025;
closure.__initData = env0_9;
const value3 = Reflect.apply(useAnimatedStyle, reanimatedRexportModule, [closure]);
closure = source;
if (collapsed) {
view = <View style={styles.voiceStateCollapsed}>{((Avatar) => <Avatar source={closure} size={XSMALL_20} />)((require(1305) /* metro dependency 1305: native */).Avatar)}</View>;
} else {
View2 = (importDefault(4017) /* metro dependency 4017: ReanimatedRexport */).View;
object2 = {};
r10 = disabled && styles.disabled;
object2.style = [styles.voiceState, r10, value3];
items2 = [((Avatar) => <Avatar source={closure} size={XSMALL_20} />)((require(1305) /* metro dependency 1305: native */).Avatar)];
items2[1] = ((Component) => <Component variant="text-sm/medium" color="redesign-channel-name-muted-text" {...a0} />)(importDefault(14544) /* metro dependency 14544: VoiceUserNameItem */);
value5 = null;
if (disabled) {
r10 = value5;
} else if (serverMute) {
const MicrophoneDenyIcon = (require(9250) /* metro dependency 9250: MicrophoneDenyIcon */).MicrophoneDenyIcon;
r10 = <MicrophoneDenyIcon style={styles.voiceStateIcon} color="text-feedback-critical" size="custom" />;
} else if (localMute) {
const MicrophoneDenyIcon2 = (require(9250) /* metro dependency 9250: MicrophoneDenyIcon */).MicrophoneDenyIcon;
r10 = <MicrophoneDenyIcon2 style={styles.voiceStateIcon} size="custom" color="redesign-channel-name-muted-text" />;
} else if (mute) {
const MicrophoneSlashIcon = (require(9252) /* metro dependency 9252: MicrophoneSlashIcon */).MicrophoneSlashIcon;
r10 = <MicrophoneSlashIcon style={styles.voiceStateIcon} size="custom" color="redesign-channel-name-muted-text" />;
} else {
r10 = value5;
}
items2[2] = r10;
if (disabled) {
r10 = value5;
} else if (serverDeaf) {
const HeadphonesDenyIcon = (require(9246) /* metro dependency 9246: HeadphonesDenyIcon */).HeadphonesDenyIcon;
r10 = <HeadphonesDenyIcon style={styles.voiceStateIcon} color="text-feedback-critical" size="custom" />;
} else if (deaf) {
const HeadphonesSlashIcon = (require(9248) /* metro dependency 9248: HeadphonesSlashIcon */).HeadphonesSlashIcon;
r10 = <HeadphonesSlashIcon style={styles.voiceStateIcon} size="custom" color="redesign-channel-name-muted-text" />;
} else {
r10 = value5;
}
items2[3] = r10;
if (video) {
if (disabled) {
r10 = value5;
} else {
const VideoIcon = (require(9759) /* metro dependency 9759: VideoIcon */).VideoIcon;
r10 = <VideoIcon size="custom" color="redesign-channel-name-muted-text" style={styles.voiceStateIcon} />;
}
} else {
r10 = value5;
}
items2[4] = r10;
r10 = isInEmbeddedActivity ? <Icon source={importDefault(8379) /* metro dependency 8379 */} size={(require(1305) /* metro dependency 1305: native */).Icon.Sizes.REFRESH_SMALL_16} style={styles.legacyVoiceStateIcon} /> : value5;
items2[5] = r10;
defaultImport2 = importDefault(9436) /* metro dependency 9436: getConsoleIcon */;
r10 = value5 != platform ? platform : '';
value14 = defaultImport2(r10);
r17 = value5 != value14 ? value14 : (require(9436) /* metro dependency 9436: getConsoleIcon */).getConsoleIconForVoicePlatform(voicePlatform);
r10 = value5 != r17 ? <Icon source={r17} size={(require(1305) /* metro dependency 1305: native */).Icon.Sizes.REFRESH_SMALL_16} style={styles.legacyVoiceStateIcon} /> : value5;
items2[6] = r10;
items2[7] = stream ? ((LiveTag) => <LiveTag style={styles.legacyVoiceStateIcon} />)((require(1305) /* metro dependency 1305: native */).LiveTag) : value5;
view = <View2 {...object2}>{items2}</View2>;
}
return view;
}
function getVoiceUserHeight(a0) { // fn#110026, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14740:3689, offset: 0x02366bfa, size: 100 bytes, params: 2, frame: 17
const value2 = (require(8518) /* metro dependency 8518: useScaledTextLineHeightAndroid */).scaleTextLineHeight('text-sm/medium',
a0);
const AVATAR_SIZE_MAP = (require(1305) /* metro dependency 1305: native */).AVATAR_SIZE_MAP;
const property = AVATAR_SIZE_MAP[XSMALL_20];
const Math = global.Math;
return Math.max(value2, property) + 10;
}
function VoiceUserItemC() { // fn#110024, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14740:1661, owner: VoiceUserItem.c, offset: 0x02366a67, size: 308 bytes, params: 1, frame: 34
var withRepeat;
var moduleValue;
var withSequence;
var moduleValue2;
var withDelay;
var moduleValue3;
var withTiming;
var object3;
var value3;
var moduleValue4;
var moduleValue5;
var value;
const ringingBinding = ringing;
const object4 = {};
if (ringingBinding) {
if (env0_4) {
value = environment.__proto__;
value = require(4017) /* metro dependency 4017: ReanimatedRexport */;
withRepeat = value.withRepeat;
moduleValue = require(4017) /* metro dependency 4017: ReanimatedRexport */;
withSequence = moduleValue.withSequence;
moduleValue2 = require(4017) /* metro dependency 4017: ReanimatedRexport */;
withDelay = moduleValue2.withDelay;
moduleValue3 = require(4504) /* metro dependency 4504: timing */;
withTiming = moduleValue3.withTiming;
object3 = {duration: 250};
object3.easing = (require(4017) /* metro dependency 4017: ReanimatedRexport */).Easing.bezier(0.4, 0, 1, 1);
value3 = Reflect.apply(withDelay, moduleValue2, [100, Reflect.apply(withTiming, moduleValue3, [0.4,
object3])]);
moduleValue4 = require(4017) /* metro dependency 4017: ReanimatedRexport */;
withDelay = moduleValue4.withDelay;
moduleValue5 = require(4504) /* metro dependency 4504: timing */;
withTiming = moduleValue5.withTiming;
object4.opacity = Reflect.apply(withRepeat, value, [Reflect.apply(withSequence, moduleValue, [value3,
Reflect.apply(withDelay, moduleValue4, [250, Reflect.apply(withTiming, moduleValue5, [0.1,
{duration: 500}])])]), -1]);
} else {
object4.opacity = 0.4;
}
} else {
object4.opacity = 1;
}
return object4;
}
function source() { // fn#110025, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14740:2288, owner: VoiceUserItem.source, offset: 0x02366b9b, size: 95 bytes, params: 1, frame: 14
var r0;
var userBinding;
var value2;
var defaultImport;
if (member == null) {
userBinding = user;
r0 = userBinding.getAvatarSource(guildId);
} else if (member.avatar != null) {
value2 = environment.__proto__;
defaultImport = importDefault(1423) /* metro dependency 1423: AvatarUtils */;
r0 = defaultImport.getGuildMemberAvatarSource(member, user);
} else {
userBinding = user;
r0 = userBinding.getAvatarSource(guildId);
}
return r0;
}
@@ -0,0 +1,94 @@
/* Metro module 14544; source: modules/guild_sidebar/native/VoiceUserNameItem.tsx; dependencies: [57, 31, 27, 33, 4501, 4635, 8699, 4573, 3995, 1244, 14545, 2] */
function _fun110027(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#110027, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14741:6, offset: 0x02366c5e, size: 263 bytes, params: 8, frame: 20
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const env0_3 = importDefault(57) /* metro dependency 57 */;
const env0_4 = importAll(31) /* metro dependency 31 */;
const env0_5 = (require(27) /* metro dependency 27 */).View;
const value = require(33) /* metro dependency 33 */;
const env0_6 = value.jsxs;
const env0_7 = value.jsx;
const env0_8 = (require(4501) /* metro dependency 4501: createStyles */).createStyles({container: {'marginLeft': 8,
'flex': 1, 'flexDirection': 'row'}, tag: {'flexDirection': 'row', 'alignItems': 'center', 'paddingLeft': 8},
measuringTag: {opacity: 0}});
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/guild_sidebar/native/VoiceUserNameItem.tsx');
exports.default = VoiceUserNameItem;
}
function VoiceUserNameItem({member, user, guildId, isGuest, color, variant}) { // fn#110028, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14741:416, offset: 0x02366d65, size: 759 bytes, params: 2, frame: 35
var r6;
var r17;
var r5;
var Text2;
var intl;
var value;
const styles = useStyles();
const value4 = (require(8699) /* metro dependency 8699: useDisplayNameStylesFont */).useDisplayNameStylesFont({displayNameStyles: (importDefault(4635) /* metro dependency 4635: useDisplayNameStyles */)({userId: user.id,
guildId: guildId})});
const binding = env0_4;
let useState = binding.useState;
const value5 = Reflect.apply(useState, binding, [0]);
const binding2 = env0_3;
const value6 = binding2(value5, 2);
const property = value6[0];
const env0_0 = value6[1];
useState = binding.useState;
const value7 = binding2(Reflect.apply(useState, binding, [0]), 2);
const property2 = value7[0];
const env0_1 = value7[1];
useState = binding.useState;
const value8 = binding2(Reflect.apply(useState, binding, [true]), 2);
const property3 = value8[0];
const env0_2 = value8[1];
useState = binding.useState;
const value9 = binding2(Reflect.apply(useState, binding, [0]), 2);
const property4 = value9[0];
var env0_3 = value9[1];
const value10 = binding.useCallback(_fun110029, []);
const value11 = binding.useCallback(_fun110030, []);
const value12 = binding.useCallback(_fun110031, []);
const items2 = [styles.container];
items2[1] = property3 && styles.measuringTag;
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
const value13 = value4 != null;
const r19 = member?.nick ?? (importDefault(3995) /* metro dependency 3995: UserUtils */).getName(user);
if (isGuest) {
Text2 = (require(4573) /* metro dependency 4573: Text */).Text;
intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
r17 = <Text2 variant="text-sm/normal" lineClamp={1} color="status-positive">{'\xa0'}{intl.string((require(1244) /* metro dependency 1244: indexNative */).t['pFO/Ph'])}</Text2>;
} else {
r17 = isGuest;
}
const text = <Text variant={variant} color={color} lineClamp={1} onLayout={value11} style={value13 && ({fontFamily: value4})}>{r19}{r17}</Text>;
if (property3) {
r5 = property3;
} else {
r6 = property !== 0 && property2 !== 0;
r6 = r6 && property4 !== 0;
r6 = r6 && property >= property2 + property4;
r5 = r6;
}
if (r5) {
var viewBinding2Props = {onLayout: value12, style: styles.tag};
value = importDefault(14545) /* metro dependency 14545: VoiceGuildTag */;
value = <View {...viewBinding2Props}>{((Component) => <Component userId={user.id} />)(value)}</View>;
r5 = value;
}
return (
<View onLayout={value10} style={items2}>
{text}
{r5}
</View>
);
}
function _fun110030({nativeEvent}) { // fn#110030, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14741:836, offset: 0x0236705c, size: 36 bytes, params: 2, frame: 11
env0_1(nativeEvent.layout.width);
}
function _fun110031({nativeEvent}) { // fn#110031, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14741:893, offset: 0x02367080, size: 47 bytes, params: 2, frame: 12
env0_3(nativeEvent.layout.width);
env0_2(false);
}
@@ -0,0 +1,67 @@
/* Metro module 14547; source: modules/guild_sidebar/native/VoiceUserSummary.tsx; dependencies: [31, 27, 33, 1305, 4501, 7702, 7701, 6707, 6711, 2] */
function _fun110037(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#110037, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14744:6, offset: 0x023674b4, size: 373 bytes, params: 8, frame: 23
const env0_0 = require;
let Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
let value = importAll(31) /* metro dependency 31 */;
const env0_3 = (require(27) /* metro dependency 27 */).View;
const value2 = require(33) /* metro dependency 33 */;
const env0_4 = value2.jsx;
const env0_5 = value2.jsxs;
Object = global.Object;
const freeze = Object.freeze;
const CutoutDirection = (require(1305) /* metro dependency 1305: native */).CutoutDirection;
const RIGHT = CutoutDirection.RIGHT;
const env0_6 = Reflect.apply(freeze, Object, [{direction: RIGHT, inset: -2}]);
const env0_7 = (require(4501) /* metro dependency 4501: createStyles */).createStyles({container: {'flexDirection': 'row',
'alignItems': 'center', 'paddingHorizontal': 16, 'height': 40}, containerNoPadding: {'flexDirection': 'row',
'alignItems': 'center', 'height': 40}, iconContainer: {height: 40}, redesignChannelIcon: {marginRight: 4},
overflow: {'height': 20, 'paddingHorizontal': 4, 'paddingVertical': 0, 'display': 'flex',
'flexDirection': 'row', 'alignItems': 'center'}, transparentBorder: {borderColor: 'transparent'}});
value = value.memo(_fun110038);
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/guild_sidebar/native/VoiceUserSummary.tsx');
exports.default = value;
exports.VOICE_USER_SUMMARY_HEIGHT = 40;
}
function _fun110038({users, max, guildId, renderIcon, noPadding, stageIcon}) { // fn#110038, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14744:628, offset: 0x02367629, size: 404 bytes, params: 2, frame: 26
const styles = useStyles();
const transparentBorder = (importDefault(7702) /* metro dependency 7702: useIsUsingClientTheme */)() ? styles.transparentBorder : null;
const items2 = [noPadding ? styles.containerNoPadding : styles.container,
(require(7701) /* metro dependency 7701: ClientThemesOverrides */).useClientThemesOverride()];
const value5 = ((Component) => <Component size="sm" color="channel-icon" style={styles.redesignChannelIcon} />)(renderIcon && stageIcon ? (require(6707) /* metro dependency 6707: StageIcon */).StageIcon : (require(6711) /* metro dependency 6711: VoiceNormalIcon */).VoiceNormalIcon);
const SummarizedIconRow = (require(1305) /* metro dependency 1305: native */).SummarizedIconRow;
const items3 = [styles.overflow, transparentBorder];
const OverflowTextSmall = (require(1305) /* metro dependency 1305: native */).OverflowTextSmall;
return (
<View style={items2}>
{value5}
<SummarizedIconRow
offsetAmount={-6}
style={styles.iconContainer}
overflowStyle={items3}
overflowComponent={OverflowTextSmall}
items={users}
max={max}
renderItem={renderItem_110039}
/>
</View>
);
}
function renderItem_110039(a0, a1) { // fn#110039, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14744:1127, offset: 0x023677bd, size: 105 bytes, params: 3, frame: 18
const value2 = undefined;
const CutoutableAvatarImage = (require(1305) /* metro dependency 1305: native */).CutoutableAvatarImage;
const guildIdBinding = guildId;
const AvatarSizes = (require(1305) /* metro dependency 1305: native */).AvatarSizes;
const XSMALL_20 = AvatarSizes.XSMALL_20;
return (
<CutoutableAvatarImage
user={a0}
guildId={guildIdBinding}
size={XSMALL_20}
cutout={a1 ? value2 : env1_6}
/>
);
}
@@ -0,0 +1,134 @@
/* Metro module 14541; source: modules/guild_sidebar/native/VoiceUsers.tsx; dependencies: [31, 27, 1945, 33, 4501, 697, 10981, 7702, 566, 14542, 8518, 1244, 10319, 4573, 14546, 2] */
function _fun110004(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#110004, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14738:6, offset: 0x02365758, size: 272 bytes, params: 8, frame: 19
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const value = importAll(31) /* metro dependency 31 */;
const env0_3 = (require(27) /* metro dependency 27 */).View;
const guildMemberStore = importDefault(1945) /* metro dependency 1945: GuildMemberStore */;
const value2 = require(33) /* metro dependency 33 */;
const env0_5 = value2.jsx;
const env0_6 = value2.jsxs;
const env0_8 = (require(4501) /* metro dependency 4501: createStyles */).createStyles(_fun110006);
const env0_9 = value.memo(_fun110007);
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/guild_sidebar/native/VoiceUsers.tsx');
exports.default = VoiceUsers_110009;
exports.getAudienceItemHeight = getAudienceItemHeight;
}
function AudienceItem({audienceCount, collapsed}) { // fn#110005, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14738:1430, offset: 0x02365868, size: 329 bytes, params: 2, frame: 26
var r8;
var intl;
const styles = useStyles((importDefault(7702) /* metro dependency 7702: useIsUsingClientTheme */)());
if (collapsed) {
r8 = audienceCount;
} else {
intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
r8 = intl.formatToPlainString((require(1244) /* metro dependency 1244: indexNative */).t['+v2pN2'],
{count: audienceCount});
}
const r4 = collapsed ? styles.listenersCollapsed : styles.listeners;
const HeadphonesIcon = (require(10319) /* metro dependency 10319: HeadphonesIcon */).HeadphonesIcon;
const view = <View style={styles.listenersIconWrapper}><HeadphonesIcon color="redesign-channel-name-muted-text" size="custom" style={styles.headphonesIcon} /></View>;
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
return (
<View style={r4}>
{view}
<Text
style={styles.listenersText}
variant={env0_7}
color="redesign-channel-name-muted-text"
>
{r8}
</Text>
</View>
);
}
function _fun110006(a0) { // fn#110006, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14738:201, offset: 0x023659b1, size: 258 bytes, params: 2, frame: 19
const colors = (importDefault(697) /* metro dependency 697: native */).colors;
const r8 = a0 ? colors.MOBILE_EXPRESSION_PICKER_BACKGROUND_DEFAULT : colors.BACKGROUND_BASE_LOWEST;
const round = (importDefault(697) /* metro dependency 697: native */).radii.round;
const object2 = {listeners: {'display': 'flex', 'flexDirection': 'row', 'alignItems': 'center', 'padding': 4,
'marginTop': 4, 'marginLeft': -8}};
object2.listenersCollapsed = {'flexDirection': 'row', 'alignItems': 'center', 'backgroundColor': null,
'borderRadius': null, 'marginLeft': -16, 'marginTop': 4, 'paddingLeft': 2, 'paddingRight': 6,
backgroundColor: r8, borderRadius: round};
const object4 = {'alignItems': 'center', 'justifyContent': 'center', 'backgroundColor': null, 'marginRight': 8,
'marginLeft': 4};
object4.backgroundColor = r8;
object4.borderRadius = round;
const value = require(10981) /* metro dependency 10981: ChannelListLayout */;
copyDataProperties(object4, value.makeSizeStyle(20), value);
object2.listenersIconWrapper = object4;
object2.listenersText = {marginRight: 4};
object2.userCollapsedOverlap = {marginLeft: -20};
object2.headphonesIcon = (require(10981) /* metro dependency 10981: ChannelListLayout */).makeSizeStyle(14);
return object2;
}
function _fun110007({voiceState, channel, collapsed, isFirst}) { // fn#110007, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14738:871, offset: 0x02365ab3, size: 362 bytes, params: 2, frame: 27
const user = voiceState.user;
const member = voiceState.member;
voiceState = voiceState.voiceState;
const styles = useStyles((importDefault(7702) /* metro dependency 7702: useIsUsingClientTheme */)());
const {storeMember,
isGuest} = (require(566) /* metro dependency 566: flux */).useStateFromStoresObject([GuildMemberStore],
function() {
var object = {};
var channelBinding = channel;
var guild_id = channelBinding.guild_id;
var userBinding = user;
object.storeMember = GuildMemberStore.getMember(guild_id, userBinding.id);
object.isGuest = GuildMemberStore.isGuestOrLurker(channelBinding.guild_id, userBinding.id);
return object;
}, [channel.guild_id, user.id]);
const userCollapsedOverlap = collapsed ? isFirst ? null : styles.userCollapsedOverlap : null;
return (
<View style={userCollapsedOverlap}>
{((Component) => <Component user={user} member={member ?? storeMember} mute={voiceState.mute} deaf={voiceState.deaf} selfVideo={voiceState.selfVideo} selfMute={voiceState.selfMute} selfDeaf={voiceState.selfDeaf} suppress={voiceState.suppress} collapsed={collapsed} sessionId={voiceState.sessionId} channel={channel} isGuest={isGuest} key={user.id} />)(importDefault(14542) /* metro dependency 14542: VoiceUser */)}
</View>
);
}
function VoiceUsers_110009({collapsed, channel, voiceStates, audienceCount}) { // fn#110009, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14738:1987, offset: 0x02365c69, size: 168 bytes, params: 2, frame: 22
var r6;
var r0;
var VoiceUsersItem;
var object2;
var items2;
const length = voiceStates.length;
let value = null;
if (length === 0) {
r0 = value;
} else {
VoiceUsersItem = importDefault(14546) /* metro dependency 14546: VoiceUsersItem */;
object2 = {collapsed: collapsed};
items2 = [voiceStates.map(_fun110010)];
value = value != audienceCount;
r6 = value && audienceCount > 0;
r6 = r6 && <AudienceItem audienceCount={audienceCount} collapsed={collapsed} />;
items2[1] = r6;
value = <VoiceUsersItem {...object2}>{items2}</VoiceUsersItem>;
r0 = value;
}
return r0;
}
function getAudienceItemHeight(a0) { // fn#110011, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14738:2338, offset: 0x02365d87, size: 75 bytes, params: 2, frame: 13
let value = (require(8518) /* metro dependency 8518: useScaledTextLineHeightAndroid */).scaleTextLineHeight(env0_7,
a0);
const Math = global.Math;
value = Math.max(20, value);
return 8 + value;
}
function _fun110010(a0, a1) { // fn#110010, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14738:2128, offset: 0x02365d11, size: 118 bytes, params: 3, frame: 18
const value = environment.__proto__;
const binding = env1_9;
const channelBinding = channel;
const collapsedBinding = collapsed;
const user = a0.user;
return ((Component) => <Component voiceState={a0} channel={channelBinding} collapsed={collapsedBinding} isFirst={a1 === 0} key={'voice-user-item-' + user.id + '-' + a0.voiceState.sessionId} />)(binding);
}
@@ -0,0 +1,22 @@
/* Metro module 14546; source: modules/guild_sidebar/native/VoiceUsersItem.tsx; dependencies: [31, 27, 33, 4501, 2] */
function _fun110035(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#110035, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14743:6, offset: 0x02367390, size: 206 bytes, params: 8, frame: 20
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
importAll(31) /* metro dependency 31 */;
const env0_0 = (require(27) /* metro dependency 27 */).View;
const env0_1 = (require(33) /* metro dependency 33 */).jsx;
const env0_2 = (require(4501) /* metro dependency 4501: createStyles */).createStyles({voiceStates: {paddingRight: 8},
voiceStatesCollapsed: {'paddingRight': 0, 'flexDirection': 'row', 'flexWrap': 'wrap', 'alignItems': 'center'}});
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/guild_sidebar/native/VoiceUsersItem.tsx');
exports.default = VoiceUsersItem;
}
function VoiceUsersItem({collapsed, children}) { // fn#110036, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14743:288, offset: 0x0236745e, size: 86 bytes, params: 2, frame: 18
const styles = useStyles();
return (
<View style={[!collapsed && styles.voiceStates, collapsed && styles.voiceStatesCollapsed]}>
{children}
</View>
);
}
@@ -0,0 +1,132 @@
/* Metro module 14728; source: modules/guild_sidebar/native/useChannelNoticeRows.tsx; dependencies: [57, 31, 11933, 1935, 1867, 1878, 5101, 661, 1376, 14579, 632, 6772, 6774, 14729, 7013, 1365, 3968, 14567, 14730, 2] */
function _fun111041(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#111041, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14925:6, offset: 0x023912e2, size: 277 bytes, params: 8, frame: 19
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const env0_3 = importDefault(57) /* metro dependency 57 */;
const env0_4 = importAll(31) /* metro dependency 31 */;
const guildProgressStore = importDefault(11933) /* metro dependency 11933: GuildProgressStore */;
const guildChannelStore = importDefault(1935) /* metro dependency 1935: GuildChannelStore */;
const guildStore = importDefault(1867) /* metro dependency 1867: GuildStore */;
const userStore = importDefault(1878) /* metro dependency 1878: UserStore */;
const env0_9 = (require(5101) /* metro dependency 5101: GuildSidebarConstants */).ChannelListChannelNoticeRow;
const env0_10 = (require(661) /* metro dependency 661: Constants */).MFALevels;
const dismissibleContentConstantsModule = require(1376) /* metro dependency 1376: DismissibleContentConstants */;
const env0_11 = dismissibleContentConstantsModule.ContentDismissActionType;
const env0_12 = dismissibleContentConstantsModule.DismissibleContentGroupName;
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/guild_sidebar/native/useChannelNoticeRows.tsx');
exports.default = useChannelNoticeRows;
}
function useChannelNoticeRows(a0) { // fn#111042, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14925:383, offset: 0x023913f7, size: 462 bytes, params: 2, frame: 25
const env0_0 = a0;
const id = a0.id;
const value2 = (require(632) /* metro dependency 632: useStateFromStores */).useStateFromStores([GuildProgressStore],
function() {
return GuildProgressStore.hasProgress(id);
});
const currentUser = UserStore.getCurrentUser();
const env0_3 = currentUser;
const value4 = (require(632) /* metro dependency 632: useStateFromStores */).useStateFromStores([GuildChannelStore],
_fun111044, [currentUser, a0.mfaLevel, id]);
const env0_4 = value4;
const value5 = (require(14567) /* metro dependency 14567: useGuildHasLiveChannelNotice */).useGuildHasLiveChannelNotice(id);
const value6 = (require(14730) /* metro dependency 14730: useGameClaimCoachmark */).useCanShowGameClaimCoachmark(id);
const useSelectedDismissibleContentModule = require(7013) /* metro dependency 7013: useSelectedDismissibleContent */;
const useSelectedSingleUseGuildDismissibleContent = useSelectedDismissibleContentModule.useSelectedSingleUseGuildDismissibleContent;
const r4 = value6 ? [(require(1365) /* metro dependency 1365: dismissible_content */).DismissibleContent.GAME_CLAIM_COACHMARK] : [];
const CHANNEL_NOTICES = DismissibleContentGroupName.CHANNEL_NOTICES;
const value8 = env0_3(Reflect.apply(useSelectedSingleUseGuildDismissibleContent,
useSelectedDismissibleContentModule, [r4, id, CHANNEL_NOTICES, true]), 2);
const property = value8[0];
const property2 = value8[1];
const value9 = property != null;
const {showApplicationAccountLink, applicationAccountLinkMarkAsDismissed, startApplicationAccountLinkAuthorization,
accountLinkApplication} = useMobileAccountLinkRow({guildId: id});
const binding = env0_4;
const useMemo = binding.useMemo;
return {rows: Reflect.apply(useMemo, binding, [_fun111048, [value2, value4, value5, value9,
showApplicationAccountLink]]), gameClaimMarkAsDismissed: property2,
applicationAccountLinkMarkAsDismissed: applicationAccountLinkMarkAsDismissed,
startApplicationAccountLinkAuthorization: startApplicationAccountLinkAuthorization,
accountLinkApplication: accountLinkApplication};
}
function _fun111044() { // fn#111044, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14925:541, offset: 0x023915e2, size: 86 bytes, params: 1, frame: 12
return env0_3 != null && env0_0.mfaLevel === MFALevels.ELEVATED && !env0_3.mfaEnabled && GuildChannelStore.hasElevatedPermissions(id);
}
function useMobileAccountLinkRow({guildId}) { // fn#111045, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14925:897, owner: useChannelNoticeRows.useMobileAccountLinkRow, offset: 0x02391638, size: 514 bytes, params: 2, frame: 26
const defaultImport = importDefault(14579) /* metro dependency 14579: mobileAccountLinkingExperiment */;
const useConfig = defaultImport.useConfig;
const enabled = Reflect.apply(useConfig, defaultImport, [{location: 'useMobileAccountLinkRow'}]).enabled;
const useStateFromStoresModule = require(632) /* metro dependency 632: useStateFromStores */;
const useStateFromStoresArray = useStateFromStoresModule.useStateFromStoresArray;
let property = Reflect.apply(useStateFromStoresArray, useStateFromStoresModule, [[GuildStore], _fun111046])[0];
const applicationActionCreatorsModule = require(6772) /* metro dependency 6772: ApplicationActionCreators */;
const useApplication = applicationActionCreatorsModule.useApplication;
const {fetched, hasAlreadyLinked, canStartAuthorization, startAuthorization,
connectionApp} = (importDefault(6774) /* metro dependency 6774: useStartAuthorize */)(Reflect.apply(useApplication,
applicationActionCreatorsModule, [enabled ? property : null]).data);
const value5 = (require(14729) /* metro dependency 14729: useDefaultAuthorizationNotifiers */).useDefaultAuthorizationNotifiers(startAuthorization,
hasAlreadyLinked);
let r4 = enabled && fetched && !hasAlreadyLinked;
r4 = r4 && canStartAuthorization && connectionApp != null;
r4 = r4 && connectionApp.applicationAccountLinkBenefitConfig != null && connectionApp.applicationAccountLinkBenefitConfig.reward_name != null && connectionApp.applicationAccountLinkBenefitConfig.reward_image != null;
const useSelectedDismissibleContentModule = require(7013) /* metro dependency 7013: useSelectedDismissibleContent */;
const useSelectedSingleUseGuildDismissibleContent = useSelectedDismissibleContentModule.useSelectedSingleUseGuildDismissibleContent;
const r8 = r4 ? [(require(1365) /* metro dependency 1365: dismissible_content */).DismissibleContent.MOBILE_ACCOUNT_LINKING_BANNER] : [];
const CHANNEL_NOTICES = DismissibleContentGroupName.CHANNEL_NOTICES;
const value12 = env1_3(Reflect.apply(useSelectedSingleUseGuildDismissibleContent,
useSelectedDismissibleContentModule, [r8, guildId, CHANNEL_NOTICES, true]), 2);
property = value12[0];
const property2 = value12[1];
env1_4.useEffect(_fun111047, [guildId, hasAlreadyLinked]);
return {showApplicationAccountLink: property != null, applicationAccountLinkMarkAsDismissed: property2,
startApplicationAccountLinkAuthorization: value5, accountLinkApplication: connectionApp};
}
function _fun111048() { // fn#111048, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14925:2261, offset: 0x023918e2, size: 163 bytes, params: 1, frame: 13
const SPACER = ChannelListChannelNoticeRow.SPACER;
const items2 = [SPACER];
if (result) {
items2.push(ChannelListChannelNoticeRow.GAME_CLAIM);
}
if (showApplicationAccountLink) {
items2.push(ChannelListChannelNoticeRow.APPLICATION_ACCOUNT_LINK);
}
if (env0_2) {
items2.push(ChannelListChannelNoticeRow.GUILD_PROGRESS);
} else if (env0_4) {
items2.push(ChannelListChannelNoticeRow.MFA_WARNING);
}
if (env0_5) {
items2.push(ChannelListChannelNoticeRow.LIVE_CHANNEL_NOTICE);
}
return items2;
}
function _fun111046() { // fn#111046, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14925:1053, offset: 0x0239183a, size: 52 bytes, params: 1, frame: 12
const value = environment.__proto__.__proto__;
return GuildStore.getGuild(guildId)?.gameApplicationIds ?? [];
}
function _fun111047() { // fn#111047, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14925:1720, offset: 0x0239186e, size: 116 bytes, params: 1, frame: 18
var value2;
var moduleValue;
var UNSAFE_markSingleUseGuildDismissibleContentAsDismissed;
var MOBILE_ACCOUNT_LINKING_BANNER;
var guildIdBinding;
if (hasAlreadyLinked) {
value2 = environment.__proto__.__proto__;
moduleValue = require(3968) /* metro dependency 3968: DismissibleContentUnsafeUtils */;
UNSAFE_markSingleUseGuildDismissibleContentAsDismissed = moduleValue.UNSAFE_markSingleUseGuildDismissibleContentAsDismissed;
MOBILE_ACCOUNT_LINKING_BANNER = (require(1365) /* metro dependency 1365: dismissible_content */).DismissibleContent.MOBILE_ACCOUNT_LINKING_BANNER;
guildIdBinding = guildId;
Reflect.apply(UNSAFE_markSingleUseGuildDismissibleContentAsDismissed, moduleValue,
[MOBILE_ACCOUNT_LINKING_BANNER,
guildIdBinding, {dismissAction: ContentDismissActionType.INDIRECT_ACTION, guildId: guildIdBinding,
groupName: DismissibleContentGroupName.CHANNEL_NOTICES}]);
}
}
@@ -0,0 +1,92 @@
/* Metro module 14732; source: modules/guild_sidebar/native/useShouldRenderChannelList.tsx; dependencies: [57, 31, 4885, 4257, 661, 4007, 4008, 1239, 2] */
function _fun111059(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#111059, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14929:6, offset: 0x02391e35, size: 193 bytes, params: 8, frame: 19
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const env0_2 = importDefault(57) /* metro dependency 57 */;
const env0_3 = importAll(31) /* metro dependency 31 */;
const cacheStore = importDefault(4885) /* metro dependency 4885: CacheStore */;
const gatewayConnectionStore = importDefault(4257) /* metro dependency 4257: GatewayConnectionStore */;
const env0_6 = (require(661) /* metro dependency 661: Constants */).ComponentActions;
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/guild_sidebar/native/useShouldRenderChannelList.tsx');
exports.useShouldRenderChannelList = useShouldRenderChannelList;
}
function useShouldRenderChannelList() { // fn#111060, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14929:290, offset: 0x02391ef6, size: 87 bytes, params: 1, frame: 15
const binding = env0_3;
const value = env0_2(binding.useState(env0_7), 2);
const property = value[0];
const env0_1 = value[1];
binding.useEffect(_fun111061, [property]);
return property;
}
function _fun111061() { // fn#111061, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14929:391, offset: 0x02391f4d, size: 199 bytes, params: 1, frame: 18
var environment;
const closure = allowRender;
const closure2 = handleGatewayChange;
const closure3 = handleCacheChange;
const closure4 = handleNavigationChange_111065;
if (env0_0) {
return undefined;
}
let value = environment.__proto__;
GatewayConnectionStore.addReactChangeListener(closure2);
CacheStore.addReactChangeListener(closure3);
const ComponentDispatch = (require(1239) /* metro dependency 1239: ComponentDispatchUtils */).ComponentDispatch;
const subscribe = ComponentDispatch.subscribe;
const BOTTOM_CHANNEL_SCREEN_DRAG_START = ComponentActions.BOTTOM_CHANNEL_SCREEN_DRAG_START;
Reflect.apply(subscribe, ComponentDispatch, [BOTTOM_CHANNEL_SCREEN_DRAG_START, closure]);
value = require(4008) /* metro dependency 4008: RootNavigationRefNative */;
value = value.getRootNavigationRef();
if (value != null) {
value.addListener('state', closure4);
}
return _fun111066;
}
function allowRender() { // fn#111062, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14929:959, offset: 0x02392014, size: 25 bytes, params: 1, frame: 11
env1_1(true);
}
function handleGatewayChange() { // fn#111063, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14929:993, offset: 0x0239202d, size: 37 bytes, params: 1, frame: 9
if (GatewayConnectionStore.isConnected()) {
allowRender();
}
}
function handleCacheChange() { // fn#111064, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14929:1055, offset: 0x02392052, size: 44 bytes, params: 1, frame: 9
const value = environment.__proto__.__proto__;
if (CacheStore.getLazyCacheStatus() === 'cache-loaded') {
allowRender();
}
}
function handleNavigationChange_111065() { // fn#111065, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14929:1139, offset: 0x0239207e, size: 96 bytes, params: 1, frame: 15
let value = environment.__proto__.__proto__;
value = undefined;
const navigationRouteUtilsNativeModule = require(4007) /* metro dependency 4007: NavigationRouteUtilsNative */;
const coerceGuildsRoute = navigationRouteUtilsNativeModule.coerceGuildsRoute;
const rootNavigationRef = (require(4008) /* metro dependency 4008: RootNavigationRefNative */).getRootNavigationRef();
if (Reflect.apply(coerceGuildsRoute, navigationRouteUtilsNativeModule,
[rootNavigationRef == null ? value : rootNavigationRef.getCurrentRoute()]) != null) {
allowRender();
}
return value;
}
function _fun111066() { // fn#111066, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14929:677, offset: 0x023920de, size: 148 bytes, params: 1, frame: 17
let value = environment.__proto__.__proto__;
GatewayConnectionStore.removeReactChangeListener(handleGatewayChange);
CacheStore.addReactChangeListener(handleCacheChange);
const ComponentDispatch = (require(1239) /* metro dependency 1239: ComponentDispatchUtils */).ComponentDispatch;
const unsubscribe = ComponentDispatch.unsubscribe;
const BOTTOM_CHANNEL_SCREEN_DRAG_START = ComponentActions.BOTTOM_CHANNEL_SCREEN_DRAG_START;
Reflect.apply(unsubscribe, ComponentDispatch, [BOTTOM_CHANNEL_SCREEN_DRAG_START, allowRender]);
value = require(4008) /* metro dependency 4008: RootNavigationRefNative */;
value = value.getRootNavigationRef();
if (value != null) {
value.removeListener('state', handleNavigationChange_111065);
}
}
@@ -0,0 +1,20 @@
/* Metro module 14696; source: modules/guild_sidebar/showChannelBadge.tsx; dependencies: [2] */
function _fun110875(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#110875, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14893:6, offset: 0x0238ac19, size: 87 bytes, params: 8, frame: 15
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/guild_sidebar/showChannelBadge.tsx');
exports.default = function({mentionsCount, isNewChannel, postsWithUnreadsCount, muted}) {
var r0;
var r1;
r0 = mentionsCount != null && mentionsCount > 0;
r0 = !r0 ? isNewChannel : r0;
if (!r0) {
r1 = muted != null && !muted;
r1 = r1 && postsWithUnreadsCount != null;
r1 = r1 && postsWithUnreadsCount > 0;
r0 = r1;
}
return r0;
};
}
@@ -0,0 +1,10 @@
/* Metro module 14699; source: modules/guild_sidebar/showChannelItemEmbeddedActivities.tsx; dependencies: [2] */
function _fun110883(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#110883, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14896:6, offset: 0x0238aff7, size: 87 bytes, params: 8, frame: 15
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/guild_sidebar/showChannelItemEmbeddedActivities.tsx');
exports.showChannelItemEmbeddedActivities = function(a0) {
return a0.length > 0;
};
}
@@ -0,0 +1,139 @@
/* Metro module 14726; source: modules/guild_sidebar/useGuildActionRows.tsx; dependencies: [57, 4869, 5101, 661, 11839, 6855, 6840, 6853, 6829, 5103, 632, 5104, 11810, 6856, 12310, 14555, 14691, 6858, 6857, 14727, 7013, 1365, 2] */
function _fun111036(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#111036, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14923:6, offset: 0x02390d3b, size: 178 bytes, params: 8, frame: 19
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const env0_3 = importDefault(57) /* metro dependency 57 */;
const guildOnboardingHomeSettingsStore = importDefault(4869) /* metro dependency 4869: GuildOnboardingHomeSettingsStore */;
const env0_5 = (require(5101) /* metro dependency 5101: GuildSidebarConstants */).ChannelListGuildActionRow;
const env0_6 = (require(661) /* metro dependency 661: Constants */).GuildFeatures;
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/guild_sidebar/useGuildActionRows.tsx');
exports.default = useGuildActionRows;
}
function useGuildActionRows(a0) { // fn#111037, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14923:265, offset: 0x02390ded, size: 1079 bytes, params: 2, frame: 36
var r15;
const env0_0 = a0;
const value2 = (importDefault(11839) /* metro dependency 11839: useCanSeeEventsInChannelList */)(a0.id);
const value3 = (require(6855) /* metro dependency 6855: canReviewGuildMemberApplications */).useCanReviewGuildMemberApplications(a0.id);
const value4 = (require(6840) /* metro dependency 6840: useRoleSubscriptionsVisibleInGuild */).useShowRoleSubscriptionsInChannelList(a0.id);
const value5 = (require(6853) /* metro dependency 6853: useGuildShopVisibleInGuild */).useGuildShopVisibleInGuild(a0);
const hasSocialLayerStorefront2 = (require(6829) /* metro dependency 6829: SlayerStorefrontUtils */).hasSocialLayerStorefront(a0);
const value6 = (require(5103) /* metro dependency 5103: OnboardingHomeUtils */).useCanSeeOnboardingHome(a0.id);
const value7 = (require(632) /* metro dependency 632: useStateFromStores */).useStateFromStores([GuildOnboardingHomeSettingsStore],
_fun111038, [a0.id]);
const value8 = (importDefault(5104) /* metro dependency 5104: useIsNewMember */)(a0.id);
const value9 = (require(11810) /* metro dependency 11810: MemberActionUtils */).useAllActionsCompleted(a0.id);
(require(6856) /* metro dependency 6856: MemberSafetyPermissionsUtils */).useCanAccessMemberSafetyPage(a0.id);
items2 = [];
let features = a0.features;
let has = features.has;
const HUB = GuildFeatures.HUB;
const value10 = Reflect.apply(has, features, [HUB]);
features = a0.features;
has = features.has;
const COMMUNITY = GuildFeatures.COMMUNITY;
const value11 = Reflect.apply(has, features, [COMMUNITY]);
features = a0.features;
has = features.has;
const ENABLED_MODERATION_EXPERIENCE_FOR_NON_COMMUNITY = GuildFeatures.ENABLED_MODERATION_EXPERIENCE_FOR_NON_COMMUNITY;
Reflect.apply(has, features, [ENABLED_MODERATION_EXPERIENCE_FOR_NON_COMMUNITY]);
const value12 = (importDefault(12310) /* metro dependency 12310: useHasAllocateBoostPermission */)(a0.id);
const value13 = (require(14555) /* metro dependency 14555: MobileBoostProgressBarExperiment */).useMobileBoostProgressBarEnabled('useGuildActionRows');
const value14 = (importDefault(14691) /* metro dependency 14691: useTotalPossibleBoostCount */)(a0);
const value15 = (require(6858) /* metro dependency 6858: GuildOfficialMessageUtils */).useIsGuildOfficialMessagesEnabled(a0.id,
'useGuildActionRows');
const value16 = (require(6857) /* metro dependency 6857: GameServerExperiment */).useGameServerEnabled(a0.id,
'useGuildActionRows');
features = a0.features;
has = features.has;
const GAME_SERVERS = GuildFeatures.GAME_SERVERS;
const value17 = Reflect.apply(has, features, [GAME_SERVERS]);
const value18 = (require(14727) /* metro dependency 14727: GameServerTabAlwaysOnExperiment */).useIsGameServerTabAlwaysOnEnabled('useGuildActionRows');
const useSelectedDismissibleContentModule = require(7013) /* metro dependency 7013: useSelectedDismissibleContent */;
const useSelectedDismissibleContent = useSelectedDismissibleContentModule.useSelectedDismissibleContent;
const property = env0_3(Reflect.apply(useSelectedDismissibleContent, useSelectedDismissibleContentModule,
[value16 && value18 ? value17 ? [] : [(require(1365) /* metro dependency 1365: dismissible_content */).DismissibleContent.EMPTY_GAME_SERVER_TAB] : [],
undefined, true]), 1)[0];
if (value10) {
items2.push(ChannelListGuildActionRow.GUILD_HUB_HEADER_OPTIONS);
}
if (value9) {
r15 = a0.premiumProgressBarEnabled && value13;
r15 = r15 && value14 > 0;
if (r15) {
items2.push(ChannelListGuildActionRow.GUILD_PREMIUM_PROGRESS_BAR);
}
} else if (value6) {
if (value8) {
if (value7 == null) {
r15 = a0.premiumProgressBarEnabled && value13;
r15 = r15 && value14 > 0;
if (r15) {
items2.push(ChannelListGuildActionRow.GUILD_PREMIUM_PROGRESS_BAR);
}
} else if (value7.length > 0) {
items2.push(ChannelListGuildActionRow.GUILD_NEW_MEMBER_ACTIONS_PROGRESS_BAR);
} else {
r15 = a0.premiumProgressBarEnabled && value13;
r15 = r15 && value14 > 0;
if (r15) {
items2.push(ChannelListGuildActionRow.GUILD_PREMIUM_PROGRESS_BAR);
}
}
} else {
r15 = a0.premiumProgressBarEnabled && value13;
r15 = r15 && value14 > 0;
if (r15) {
items2.push(ChannelListGuildActionRow.GUILD_PREMIUM_PROGRESS_BAR);
}
}
} else {
r15 = a0.premiumProgressBarEnabled && value13;
r15 = r15 && value14 > 0;
if (r15) {
items2.push(ChannelListGuildActionRow.GUILD_PREMIUM_PROGRESS_BAR);
}
}
const value22 = !value10;
if (value10 ? value22 : value6) {
items2.push(ChannelListGuildActionRow.GUILD_HOME);
}
if (value2) {
items2.push(ChannelListGuildActionRow.GUILD_SCHEDULED_EVENTS);
}
if (value10 ? value22 : value11) {
items2.push(ChannelListGuildActionRow.CHANNELS_AND_ROLES);
}
if (value4) {
items2.push(ChannelListGuildActionRow.GUILD_ROLE_SUBSCRIPTIONS);
}
if (value5) {
items2.push(ChannelListGuildActionRow.GUILD_SHOP);
}
if (hasSocialLayerStorefront2) {
items2.push(ChannelListGuildActionRow.GUILD_GAME_SHOP);
}
if (value3 && a0.features.has(GuildFeatures.MEMBER_VERIFICATION_MANUAL_APPROVAL)) {
items2.push(ChannelListGuildActionRow.GUILD_MOD_DASH_MEMBER_SAFETY);
}
if (value12) {
items2.push(ChannelListGuildActionRow.GUILD_BOOSTS);
}
if (value15) {
items2.push(ChannelListGuildActionRow.GUILD_OFFICIAL_MESSAGES);
}
if (value16) {
if (value17) {
items2.push(ChannelListGuildActionRow.GAME_SERVERS);
} else if (property != null) {
items2.push(ChannelListGuildActionRow.GAME_SERVERS_EMPTY);
}
}
return items2;
}
function _fun111038() { // fn#111038, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14923:575, offset: 0x02391224, size: 32 bytes, params: 1, frame: 11
return GuildOnboardingHomeSettingsStore.getNewMemberActions(env0_0.id);
}
@@ -0,0 +1,67 @@
/* Metro module 11817; source: modules/guild_sidebar/useShowConnectedUserLimit.tsx; dependencies: [661, 9234, 2] */
function _fun90525(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#90525, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12003:6, offset: 0x0203cde3, size: 161 bytes, params: 8, frame: 19
const formatNumber = function(a0) {
var r2;
var r0;
var value2;
var value = a1;
r2 = value !== undefined ? value : 1000;
if (a0 >= r2) {
value = global.Math.floor(a0 / r2);
value2 = '';
value = value2 + value + 'k' + (a0 % r2 == 0 ? value2 : '+');
r0 = value;
} else {
value = a0.toFixed(0);
value = value.padStart(2, '0');
r0 = value;
}
return r0;
};
const closure = useConnectedUserLimit;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const env0_2 = (require(661) /* metro dependency 661: Constants */).MAX_STAGE_VOICE_USER_LIMIT;
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/guild_sidebar/useShowConnectedUserLimit.tsx');
exports.default = useShowConnectedUserLimit;
exports.useConnectedUserLimit = closure;
exports.useConnectedUserLimitFormatted = useConnectedUserLimitFormatted;
}
function useConnectedUserLimit({channel, video, considerMaxStageVoiceUserLimit}) { // fn#90527, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12003:243, offset: 0x0203cf04, size: 150 bytes, params: 2, frame: 18
considerMaxStageVoiceUserLimit = considerMaxStageVoiceUserLimit === undefined || considerMaxStageVoiceUserLimit;
const limit = (importDefault(9234) /* metro dependency 9234: useChannelVideoLimit */)(channel).limit;
let userLimit = channel.userLimit;
userLimit = userLimit > 0 ? channel.userLimit : -1;
const r1 = video && limit > 0 ? userLimit > 0 ? global.Math.min(userLimit, limit) : limit : userLimit;
return considerMaxStageVoiceUserLimit && r1 === MAX_STAGE_VOICE_USER_LIMIT ? 0 : r1;
}
function useShowConnectedUserLimit({channel, locked, video, selected}) { // fn#90528, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12003:537, offset: 0x0203cf9a, size: 71 bytes, params: 2, frame: 14
let value = useConnectedUserLimit({channel: channel, video: video});
value = value > 0;
return value && !locked && !selected;
}
function useConnectedUserLimitFormatted({channel, video, userCount}) { // fn#90529, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12003:753, offset: 0x0203cfe1, size: 120 bytes, params: 2, frame: 17
var r1;
var r0;
var formatNumberBinding;
var value;
const value2 = useConnectedUserLimit({channel: channel, video: video});
if (value2 <= 0) {
r0 = null;
} else {
if (userCount != null) {
formatNumberBinding = formatNumber;
value = formatNumberBinding(userCount);
value = '' + value + '/' + formatNumberBinding(value2);
r1 = value;
} else {
r1 = formatNumber(value2);
}
r0 = r1;
}
return r0;
}