457 lines
41 KiB
TypeScript
457 lines
41 KiB
TypeScript
/* Metro module 6647; source: utils/native/ChannelUtils.tsx; dependencies: [1945, 1867, 1878, 661, 6648, 6649, 6650, 6651, 6652, 6653, 6654, 6655, 6656, 6657, 6658, 6659, 6660, 6661, 6662, 6663, 6664, 6667, 6668, 6669, 5107, 6670, 6671, 6672, 6673, 6674, 6675, 6676, 6677, 6678, 6679, 6680, 6681, 6682, 6683, 6684, 6685, 6686, 6687, 6688, 6689, 6690, 6691, 6692, 6693, 6694, 6695, 6696, 6697, 6698, 6699, 6700, 6701, 6702, 6703, 6704, 6705, 6706, 6707, 6708, 6709, 6710, 6711, 6712, 2] */
|
|
function _fun52587(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#52587, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6825:6, offset: 0x0133153b, size: 259 bytes, params: 8, frame: 22
|
|
const env0_0 = require;
|
|
const closure = function(a0) {
|
|
if (ChannelTypes.PRIVATE_THREAD === a0) {
|
|
return importDefault(dependencyMap[4]);
|
|
}
|
|
if (ChannelTypes.ANNOUNCEMENT_THREAD === a0) {
|
|
return importDefault(dependencyMap[5]);
|
|
}
|
|
if (ChannelTypes.PUBLIC_THREAD === a0) {
|
|
return importDefault(dependencyMap[5]);
|
|
}
|
|
return null;
|
|
};
|
|
const closure2 = getChannelIcon;
|
|
const closure3 = getChannelIconComponent;
|
|
const Object = global.Object;
|
|
Object.defineProperty(exports, '__esModule', {value: true});
|
|
const guildMemberStore = importDefault(1945) /* metro dependency 1945: GuildMemberStore */;
|
|
const guildStore = importDefault(1867) /* metro dependency 1867: GuildStore */;
|
|
const userStore = importDefault(1878) /* metro dependency 1878: UserStore */;
|
|
const env0_6 = (require(661) /* metro dependency 661: Constants */).ChannelTypes;
|
|
(require(2) /* metro dependency 2 */).fileFinishedImporting('utils/native/ChannelUtils.tsx');
|
|
exports.getThreadChannelIcon = closure;
|
|
exports.getSimpleChannelIcon = getSimpleChannelIcon;
|
|
exports.getChannelIconWithGuild = getChannelIconWithGuild;
|
|
exports.getChannelMentionIcon = getChannelMentionIcon;
|
|
exports.getChannelIcon = closure2;
|
|
exports.getChannelIconComponentWithGuild = getChannelIconComponentWithGuild;
|
|
exports.getChannelIconComponent = closure3;
|
|
exports.getSimpleChannelIconComponent = getSimpleChannelIconComponent;
|
|
}
|
|
|
|
function getChannelIcon(a0, a1) { // fn#52589, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6825:313, offset: 0x013316a2, size: 1908 bytes, params: 3, frame: 28
|
|
var r10;
|
|
var r7;
|
|
var r9;
|
|
const value = a1;
|
|
const {isRulesChannel, textFocused, locked} = value ?? ({});
|
|
const moduleValue = require(dependencyMap[20]);
|
|
const shouldShowMembershipVerificationGate2 = moduleValue.shouldShowMembershipVerificationGate(a0.guild_id,
|
|
[GuildStore, UserStore, GuildMemberStore]);
|
|
if (a0.isForumPost()) {
|
|
return importDefault(dependencyMap[16]);
|
|
}
|
|
const getThreadChannelIconBinding = getThreadChannelIcon;
|
|
let type = a0.type;
|
|
const threadChannelIconBinding = getThreadChannelIconBinding(type);
|
|
if (threadChannelIconBinding != null) {
|
|
return threadChannelIconBinding;
|
|
}
|
|
const isMediaChannel2 = a0.isMediaChannel();
|
|
const isNSFW2 = a0.isNSFW();
|
|
type = a0.type;
|
|
const PRIVATE_THREAD = ChannelTypes.PRIVATE_THREAD;
|
|
if (PRIVATE_THREAD === type) {
|
|
return getThreadChannelIcon(a0.type);
|
|
}
|
|
const ANNOUNCEMENT_THREAD = ChannelTypes.ANNOUNCEMENT_THREAD;
|
|
if (ANNOUNCEMENT_THREAD === type) {
|
|
return getThreadChannelIcon(a0.type);
|
|
}
|
|
const PUBLIC_THREAD = ChannelTypes.PUBLIC_THREAD;
|
|
if (PUBLIC_THREAD === type) {
|
|
return getThreadChannelIcon(a0.type);
|
|
}
|
|
const GUILD_CATEGORY = ChannelTypes.GUILD_CATEGORY;
|
|
if (GUILD_CATEGORY === type) {
|
|
return importDefault(dependencyMap[6]);
|
|
}
|
|
const GUILD_TEXT = ChannelTypes.GUILD_TEXT;
|
|
if (GUILD_TEXT === type) {
|
|
return isRulesChannel ? importDefault(dependencyMap[21]) : isNSFW2 ? value == null ? importDefault(dependencyMap[22]) : value.ignoreTraits ? a0.isSpoilerChannel() ? value == null ? importDefault(dependencyMap[23]) : value.ignoreTraits ? importDefault(dependencyMap[24])(a0) ? value == null ? importDefault(dependencyMap[19]) : value.ignoreTraits ? a0.linkedLobby != null ? importDefault(dependencyMap[25]) : importDefault(dependencyMap[7]) : importDefault(dependencyMap[19]) : a0.linkedLobby != null ? importDefault(dependencyMap[25]) : importDefault(dependencyMap[7]) : importDefault(dependencyMap[23]) : importDefault(dependencyMap[24])(a0) ? value == null ? importDefault(dependencyMap[19]) : value.ignoreTraits ? a0.linkedLobby != null ? importDefault(dependencyMap[25]) : importDefault(dependencyMap[7]) : importDefault(dependencyMap[19]) : a0.linkedLobby != null ? importDefault(dependencyMap[25]) : importDefault(dependencyMap[7]) : importDefault(dependencyMap[22]) : a0.isSpoilerChannel() ? value == null ? importDefault(dependencyMap[23]) : value.ignoreTraits ? importDefault(dependencyMap[24])(a0) ? value == null ? importDefault(dependencyMap[19]) : value.ignoreTraits ? a0.linkedLobby != null ? importDefault(dependencyMap[25]) : importDefault(dependencyMap[7]) : importDefault(dependencyMap[19]) : a0.linkedLobby != null ? importDefault(dependencyMap[25]) : importDefault(dependencyMap[7]) : importDefault(dependencyMap[23]) : importDefault(dependencyMap[24])(a0) ? value == null ? importDefault(dependencyMap[19]) : value.ignoreTraits ? a0.linkedLobby != null ? importDefault(dependencyMap[25]) : importDefault(dependencyMap[7]) : importDefault(dependencyMap[19]) : a0.linkedLobby != null ? importDefault(dependencyMap[25]) : importDefault(dependencyMap[7]);
|
|
}
|
|
const GUILD_FORUM = ChannelTypes.GUILD_FORUM;
|
|
if (GUILD_FORUM === type) {
|
|
if (isRulesChannel) {
|
|
r7 = importDefault(dependencyMap[21]);
|
|
} else if (isNSFW2) {
|
|
if (value == null) {
|
|
r7 = isMediaChannel2 ? dependencyMap[26] : dependencyMap[27];
|
|
r7 = importDefault(r7);
|
|
} else if (value.ignoreTraits) {
|
|
if (a0.isSpoilerChannel()) {
|
|
if (value == null) {
|
|
r9 = importDefault(dependencyMap[28]);
|
|
} else if (value.ignoreTraits) {
|
|
if (importDefault(dependencyMap[24])(a0)) {
|
|
if (value == null) {
|
|
r10 = isMediaChannel2 ? dependencyMap[29] : dependencyMap[30];
|
|
r10 = importDefault(r10);
|
|
} else if (value.ignoreTraits) {
|
|
r10 = importDefault(isMediaChannel2 ? dependencyMap[18] : dependencyMap[17]);
|
|
} else {
|
|
r10 = isMediaChannel2 ? dependencyMap[29] : dependencyMap[30];
|
|
r10 = importDefault(r10);
|
|
}
|
|
} else {
|
|
r10 = importDefault(isMediaChannel2 ? dependencyMap[18] : dependencyMap[17]);
|
|
}
|
|
r9 = r10;
|
|
} else {
|
|
r9 = importDefault(dependencyMap[28]);
|
|
}
|
|
} else {
|
|
if (importDefault(dependencyMap[24])(a0)) {
|
|
if (value == null) {
|
|
r10 = isMediaChannel2 ? dependencyMap[29] : dependencyMap[30];
|
|
r10 = importDefault(r10);
|
|
} else if (value.ignoreTraits) {
|
|
r10 = importDefault(isMediaChannel2 ? dependencyMap[18] : dependencyMap[17]);
|
|
} else {
|
|
r10 = isMediaChannel2 ? dependencyMap[29] : dependencyMap[30];
|
|
r10 = importDefault(r10);
|
|
}
|
|
} else {
|
|
r10 = importDefault(isMediaChannel2 ? dependencyMap[18] : dependencyMap[17]);
|
|
}
|
|
r9 = r10;
|
|
}
|
|
r7 = r9;
|
|
} else {
|
|
r7 = isMediaChannel2 ? dependencyMap[26] : dependencyMap[27];
|
|
r7 = importDefault(r7);
|
|
}
|
|
} else {
|
|
if (a0.isSpoilerChannel()) {
|
|
if (value == null) {
|
|
r9 = importDefault(dependencyMap[28]);
|
|
} else if (value.ignoreTraits) {
|
|
if (importDefault(dependencyMap[24])(a0)) {
|
|
if (value == null) {
|
|
r10 = isMediaChannel2 ? dependencyMap[29] : dependencyMap[30];
|
|
r10 = importDefault(r10);
|
|
} else if (value.ignoreTraits) {
|
|
r10 = importDefault(isMediaChannel2 ? dependencyMap[18] : dependencyMap[17]);
|
|
} else {
|
|
r10 = isMediaChannel2 ? dependencyMap[29] : dependencyMap[30];
|
|
r10 = importDefault(r10);
|
|
}
|
|
} else {
|
|
r10 = importDefault(isMediaChannel2 ? dependencyMap[18] : dependencyMap[17]);
|
|
}
|
|
r9 = r10;
|
|
} else {
|
|
r9 = importDefault(dependencyMap[28]);
|
|
}
|
|
} else {
|
|
if (importDefault(dependencyMap[24])(a0)) {
|
|
if (value == null) {
|
|
r10 = isMediaChannel2 ? dependencyMap[29] : dependencyMap[30];
|
|
r10 = importDefault(r10);
|
|
} else if (value.ignoreTraits) {
|
|
r10 = importDefault(isMediaChannel2 ? dependencyMap[18] : dependencyMap[17]);
|
|
} else {
|
|
r10 = isMediaChannel2 ? dependencyMap[29] : dependencyMap[30];
|
|
r10 = importDefault(r10);
|
|
}
|
|
} else {
|
|
r10 = importDefault(isMediaChannel2 ? dependencyMap[18] : dependencyMap[17]);
|
|
}
|
|
r9 = r10;
|
|
}
|
|
r7 = r9;
|
|
}
|
|
return r7;
|
|
}
|
|
const GUILD_MEDIA = ChannelTypes.GUILD_MEDIA;
|
|
if (GUILD_MEDIA === type) {
|
|
return isRulesChannel ? importDefault(dependencyMap[21]) : isNSFW2 ? value == null ? importDefault(dependencyMap[26]) : value.ignoreTraits ? importDefault(dependencyMap[24])(a0) ? value == null ? importDefault(dependencyMap[29]) : value.ignoreTraits ? importDefault(dependencyMap[18]) : importDefault(dependencyMap[29]) : importDefault(dependencyMap[18]) : importDefault(dependencyMap[26]) : importDefault(dependencyMap[24])(a0) ? value == null ? importDefault(dependencyMap[29]) : value.ignoreTraits ? importDefault(dependencyMap[18]) : importDefault(dependencyMap[29]) : importDefault(dependencyMap[18]);
|
|
}
|
|
const GROUP_DM = ChannelTypes.GROUP_DM;
|
|
if (GROUP_DM === type) {
|
|
return importDefault(dependencyMap[8]);
|
|
}
|
|
const DM = ChannelTypes.DM;
|
|
if (DM === type) {
|
|
return importDefault(dependencyMap[9]);
|
|
}
|
|
const GUILD_ANNOUNCEMENT = ChannelTypes.GUILD_ANNOUNCEMENT;
|
|
if (GUILD_ANNOUNCEMENT === type) {
|
|
return isRulesChannel ? importDefault(dependencyMap[21]) : isNSFW2 ? value == null ? importDefault(dependencyMap[31]) : value.ignoreTraits ? a0.isSpoilerChannel() ? value == null ? importDefault(dependencyMap[32]) : value.ignoreTraits ? importDefault(dependencyMap[24])(a0) ? value == null ? importDefault(dependencyMap[33]) : value.ignoreTraits ? importDefault(dependencyMap[10]) : importDefault(dependencyMap[33]) : importDefault(dependencyMap[10]) : importDefault(dependencyMap[32]) : importDefault(dependencyMap[24])(a0) ? value == null ? importDefault(dependencyMap[33]) : value.ignoreTraits ? importDefault(dependencyMap[10]) : importDefault(dependencyMap[33]) : importDefault(dependencyMap[10]) : importDefault(dependencyMap[31]) : a0.isSpoilerChannel() ? value == null ? importDefault(dependencyMap[32]) : value.ignoreTraits ? importDefault(dependencyMap[24])(a0) ? value == null ? importDefault(dependencyMap[33]) : value.ignoreTraits ? importDefault(dependencyMap[10]) : importDefault(dependencyMap[33]) : importDefault(dependencyMap[10]) : importDefault(dependencyMap[32]) : importDefault(dependencyMap[24])(a0) ? value == null ? importDefault(dependencyMap[33]) : value.ignoreTraits ? importDefault(dependencyMap[10]) : importDefault(dependencyMap[33]) : importDefault(dependencyMap[10]);
|
|
}
|
|
const GUILD_STAGE_VOICE = ChannelTypes.GUILD_STAGE_VOICE;
|
|
if (GUILD_STAGE_VOICE === type) {
|
|
return shouldShowMembershipVerificationGate2 ? value == null ? importDefault(dependencyMap[24])(a0) ? importDefault(dependencyMap[34]) : importDefault(dependencyMap[15]) : value.ignoreTraits ? locked ? value == null ? importDefault(dependencyMap[34]) : value.ignoreTraits ? importDefault(dependencyMap[24])(a0) ? value == null ? importDefault(dependencyMap[15]) : value.ignoreTraits ? importDefault(dependencyMap[11]) : importDefault(dependencyMap[15]) : importDefault(dependencyMap[11]) : importDefault(dependencyMap[34]) : importDefault(dependencyMap[24])(a0) ? value == null ? importDefault(dependencyMap[15]) : value.ignoreTraits ? importDefault(dependencyMap[11]) : importDefault(dependencyMap[15]) : importDefault(dependencyMap[11]) : importDefault(dependencyMap[24])(a0) ? importDefault(dependencyMap[34]) : importDefault(dependencyMap[15]) : locked ? value == null ? importDefault(dependencyMap[34]) : value.ignoreTraits ? importDefault(dependencyMap[24])(a0) ? value == null ? importDefault(dependencyMap[15]) : value.ignoreTraits ? importDefault(dependencyMap[11]) : importDefault(dependencyMap[15]) : importDefault(dependencyMap[11]) : importDefault(dependencyMap[34]) : importDefault(dependencyMap[24])(a0) ? value == null ? importDefault(dependencyMap[15]) : value.ignoreTraits ? importDefault(dependencyMap[11]) : importDefault(dependencyMap[15]) : importDefault(dependencyMap[11]);
|
|
}
|
|
const GUILD_VOICE = ChannelTypes.GUILD_VOICE;
|
|
if (GUILD_VOICE === type) {
|
|
return textFocused ? importDefault(dependencyMap[16]) : shouldShowMembershipVerificationGate2 ? value == null ? importDefault(dependencyMap[24])(a0) ? importDefault(dependencyMap[34]) : importDefault(dependencyMap[14]) : value.ignoreTraits ? locked ? value == null ? importDefault(dependencyMap[34]) : value.ignoreTraits ? importDefault(dependencyMap[24])(a0) ? value == null ? importDefault(dependencyMap[14]) : value.ignoreTraits ? isNSFW2 ? value == null ? importDefault(dependencyMap[35]) : value.ignoreTraits ? a0.isSpoilerChannel() ? value == null ? importDefault(dependencyMap[36]) : value.ignoreTraits ? importDefault(dependencyMap[12]) : importDefault(dependencyMap[36]) : importDefault(dependencyMap[12]) : importDefault(dependencyMap[35]) : a0.isSpoilerChannel() ? value == null ? importDefault(dependencyMap[36]) : value.ignoreTraits ? importDefault(dependencyMap[12]) : importDefault(dependencyMap[36]) : importDefault(dependencyMap[12]) : importDefault(dependencyMap[14]) : isNSFW2 ? value == null ? importDefault(dependencyMap[35]) : value.ignoreTraits ? a0.isSpoilerChannel() ? value == null ? importDefault(dependencyMap[36]) : value.ignoreTraits ? importDefault(dependencyMap[12]) : importDefault(dependencyMap[36]) : importDefault(dependencyMap[12]) : importDefault(dependencyMap[35]) : a0.isSpoilerChannel() ? value == null ? importDefault(dependencyMap[36]) : value.ignoreTraits ? importDefault(dependencyMap[12]) : importDefault(dependencyMap[36]) : importDefault(dependencyMap[12]) : importDefault(dependencyMap[34]) : importDefault(dependencyMap[24])(a0) ? value == null ? importDefault(dependencyMap[14]) : value.ignoreTraits ? isNSFW2 ? value == null ? importDefault(dependencyMap[35]) : value.ignoreTraits ? a0.isSpoilerChannel() ? value == null ? importDefault(dependencyMap[36]) : value.ignoreTraits ? importDefault(dependencyMap[12]) : importDefault(dependencyMap[36]) : importDefault(dependencyMap[12]) : importDefault(dependencyMap[35]) : a0.isSpoilerChannel() ? value == null ? importDefault(dependencyMap[36]) : value.ignoreTraits ? importDefault(dependencyMap[12]) : importDefault(dependencyMap[36]) : importDefault(dependencyMap[12]) : importDefault(dependencyMap[14]) : isNSFW2 ? value == null ? importDefault(dependencyMap[35]) : value.ignoreTraits ? a0.isSpoilerChannel() ? value == null ? importDefault(dependencyMap[36]) : value.ignoreTraits ? importDefault(dependencyMap[12]) : importDefault(dependencyMap[36]) : importDefault(dependencyMap[12]) : importDefault(dependencyMap[35]) : a0.isSpoilerChannel() ? value == null ? importDefault(dependencyMap[36]) : value.ignoreTraits ? importDefault(dependencyMap[12]) : importDefault(dependencyMap[36]) : importDefault(dependencyMap[12]) : importDefault(dependencyMap[24])(a0) ? importDefault(dependencyMap[34]) : importDefault(dependencyMap[14]) : locked ? value == null ? importDefault(dependencyMap[34]) : value.ignoreTraits ? importDefault(dependencyMap[24])(a0) ? value == null ? importDefault(dependencyMap[14]) : value.ignoreTraits ? isNSFW2 ? value == null ? importDefault(dependencyMap[35]) : value.ignoreTraits ? a0.isSpoilerChannel() ? value == null ? importDefault(dependencyMap[36]) : value.ignoreTraits ? importDefault(dependencyMap[12]) : importDefault(dependencyMap[36]) : importDefault(dependencyMap[12]) : importDefault(dependencyMap[35]) : a0.isSpoilerChannel() ? value == null ? importDefault(dependencyMap[36]) : value.ignoreTraits ? importDefault(dependencyMap[12]) : importDefault(dependencyMap[36]) : importDefault(dependencyMap[12]) : importDefault(dependencyMap[14]) : isNSFW2 ? value == null ? importDefault(dependencyMap[35]) : value.ignoreTraits ? a0.isSpoilerChannel() ? value == null ? importDefault(dependencyMap[36]) : value.ignoreTraits ? importDefault(dependencyMap[12]) : importDefault(dependencyMap[36]) : importDefault(dependencyMap[12]) : importDefault(dependencyMap[35]) : a0.isSpoilerChannel() ? value == null ? importDefault(dependencyMap[36]) : value.ignoreTraits ? importDefault(dependencyMap[12]) : importDefault(dependencyMap[36]) : importDefault(dependencyMap[12]) : importDefault(dependencyMap[34]) : importDefault(dependencyMap[24])(a0) ? value == null ? importDefault(dependencyMap[14]) : value.ignoreTraits ? isNSFW2 ? value == null ? importDefault(dependencyMap[35]) : value.ignoreTraits ? a0.isSpoilerChannel() ? value == null ? importDefault(dependencyMap[36]) : value.ignoreTraits ? importDefault(dependencyMap[12]) : importDefault(dependencyMap[36]) : importDefault(dependencyMap[12]) : importDefault(dependencyMap[35]) : a0.isSpoilerChannel() ? value == null ? importDefault(dependencyMap[36]) : value.ignoreTraits ? importDefault(dependencyMap[12]) : importDefault(dependencyMap[36]) : importDefault(dependencyMap[12]) : importDefault(dependencyMap[14]) : isNSFW2 ? value == null ? importDefault(dependencyMap[35]) : value.ignoreTraits ? a0.isSpoilerChannel() ? value == null ? importDefault(dependencyMap[36]) : value.ignoreTraits ? importDefault(dependencyMap[12]) : importDefault(dependencyMap[36]) : importDefault(dependencyMap[12]) : importDefault(dependencyMap[35]) : a0.isSpoilerChannel() ? value == null ? importDefault(dependencyMap[36]) : value.ignoreTraits ? importDefault(dependencyMap[12]) : importDefault(dependencyMap[36]) : importDefault(dependencyMap[12]);
|
|
}
|
|
const GUILD_DIRECTORY = ChannelTypes.GUILD_DIRECTORY;
|
|
if (GUILD_DIRECTORY === type) {
|
|
return importDefault(dependencyMap[13]);
|
|
}
|
|
return null;
|
|
}
|
|
|
|
function getChannelIconComponent(a0, a1) { // fn#52590, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6825:2086, offset: 0x01331e16, size: 2198 bytes, params: 3, frame: 27
|
|
const VoiceLockIcon = (require(6708) /* metro dependency 6708: VoiceLockIcon */).VoiceLockIcon;
|
|
const LockIcon = (require(6705) /* metro dependency 6705: LockIcon */).LockIcon;
|
|
const VoiceWarningIcon = (require(6709) /* metro dependency 6709: VoiceWarningIcon */).VoiceWarningIcon;
|
|
const VoiceNormalSpoilerIcon = (require(6710) /* metro dependency 6710: VoiceNormalSpoilerIcon */).VoiceNormalSpoilerIcon;
|
|
const VoiceNormalIcon = (require(6711) /* metro dependency 6711: VoiceNormalIcon */).VoiceNormalIcon;
|
|
const StageLockIcon = (require(6706) /* metro dependency 6706: StageLockIcon */).StageLockIcon;
|
|
const StageIcon = (require(6707) /* metro dependency 6707: StageIcon */).StageIcon;
|
|
const AnnouncementsWarningIcon = (require(6701) /* metro dependency 6701: AnnouncementsWarningIcon */).AnnouncementsWarningIcon;
|
|
const AnnouncementsSpoilerIcon = (require(6702) /* metro dependency 6702: AnnouncementsSpoilerIcon */).AnnouncementsSpoilerIcon;
|
|
const AnnouncementsLockIcon = (require(6703) /* metro dependency 6703: AnnouncementsLockIcon */).AnnouncementsLockIcon;
|
|
const AnnouncementsIcon = (require(6704) /* metro dependency 6704: AnnouncementsIcon */).AnnouncementsIcon;
|
|
const BookCheckIcon = (require(6686) /* metro dependency 6686: BookCheckIcon */).BookCheckIcon;
|
|
const ImageWarningIcon = (require(6692) /* metro dependency 6692: ImageWarningIcon */).ImageWarningIcon;
|
|
const ImageLockIcon = (require(6695) /* metro dependency 6695: ImageLockIcon */).ImageLockIcon;
|
|
const ImageIcon = (require(6697) /* metro dependency 6697: ImageIcon */).ImageIcon;
|
|
const ForumWarningIcon = (require(6693) /* metro dependency 6693: ForumWarningIcon */).ForumWarningIcon;
|
|
const ForumSpoilerIcon = (require(6694) /* metro dependency 6694: ForumSpoilerIcon */).ForumSpoilerIcon;
|
|
const ForumLockIcon = (require(6696) /* metro dependency 6696: ForumLockIcon */).ForumLockIcon;
|
|
const ForumIcon = (require(6698) /* metro dependency 6698: ForumIcon */).ForumIcon;
|
|
const TextWarningIcon = (require(6687) /* metro dependency 6687: TextWarningIcon */).TextWarningIcon;
|
|
const TextSpoilerIcon = (require(6688) /* metro dependency 6688: TextSpoilerIcon */).TextSpoilerIcon;
|
|
const TextLockIcon = (require(6689) /* metro dependency 6689: TextLockIcon */).TextLockIcon;
|
|
const TextIcon = (require(6691) /* metro dependency 6691: TextIcon */).TextIcon;
|
|
const TextControllerIcon = (require(6690) /* metro dependency 6690: TextControllerIcon */).TextControllerIcon;
|
|
const value = a1;
|
|
const {isRulesChannel, textFocused, locked} = value ?? ({});
|
|
const useShowMemberVerificationGateModule = require(6664) /* metro dependency 6664: useShowMemberVerificationGate */;
|
|
const shouldShowMembershipVerificationGate2 = useShowMemberVerificationGateModule.shouldShowMembershipVerificationGate(a0.guild_id,
|
|
[GuildStore, UserStore, GuildMemberStore]);
|
|
if (a0.isForumPost()) {
|
|
return (require(6682) /* metro dependency 6682: ChatIcon */).ChatIcon;
|
|
}
|
|
const isMediaChannel2 = a0.isMediaChannel();
|
|
const isNSFW2 = a0.isNSFW();
|
|
const type = a0.type;
|
|
const PRIVATE_THREAD = ChannelTypes.PRIVATE_THREAD;
|
|
if (PRIVATE_THREAD === type) {
|
|
return (require(6683) /* metro dependency 6683: ThreadLockIcon */).ThreadLockIcon;
|
|
}
|
|
const ANNOUNCEMENT_THREAD = ChannelTypes.ANNOUNCEMENT_THREAD;
|
|
if (ANNOUNCEMENT_THREAD === type) {
|
|
return (require(6684) /* metro dependency 6684: ThreadIcon */).ThreadIcon;
|
|
}
|
|
const PUBLIC_THREAD = ChannelTypes.PUBLIC_THREAD;
|
|
if (PUBLIC_THREAD === type) {
|
|
return (require(6684) /* metro dependency 6684: ThreadIcon */).ThreadIcon;
|
|
}
|
|
const GUILD_CATEGORY = ChannelTypes.GUILD_CATEGORY;
|
|
if (GUILD_CATEGORY === type) {
|
|
return (require(6685) /* metro dependency 6685: FolderIcon */).FolderIcon;
|
|
}
|
|
const GUILD_TEXT = ChannelTypes.GUILD_TEXT;
|
|
if (GUILD_TEXT === type) {
|
|
return isRulesChannel ? BookCheckIcon : isNSFW2 ? value == null ? TextWarningIcon : value.ignoreTraits ? a0.isSpoilerChannel() ? value == null ? TextSpoilerIcon : value.ignoreTraits ? (importDefault(5107) /* metro dependency 5107: isRoleRequired */)(a0) ? value == null ? TextLockIcon : value.ignoreTraits ? a0.linkedLobby != null ? TextControllerIcon : TextIcon : TextLockIcon : a0.linkedLobby != null ? TextControllerIcon : TextIcon : TextSpoilerIcon : (importDefault(5107) /* metro dependency 5107: isRoleRequired */)(a0) ? value == null ? TextLockIcon : value.ignoreTraits ? a0.linkedLobby != null ? TextControllerIcon : TextIcon : TextLockIcon : a0.linkedLobby != null ? TextControllerIcon : TextIcon : TextWarningIcon : a0.isSpoilerChannel() ? value == null ? TextSpoilerIcon : value.ignoreTraits ? (importDefault(5107) /* metro dependency 5107: isRoleRequired */)(a0) ? value == null ? TextLockIcon : value.ignoreTraits ? a0.linkedLobby != null ? TextControllerIcon : TextIcon : TextLockIcon : a0.linkedLobby != null ? TextControllerIcon : TextIcon : TextSpoilerIcon : (importDefault(5107) /* metro dependency 5107: isRoleRequired */)(a0) ? value == null ? TextLockIcon : value.ignoreTraits ? a0.linkedLobby != null ? TextControllerIcon : TextIcon : TextLockIcon : a0.linkedLobby != null ? TextControllerIcon : TextIcon;
|
|
}
|
|
const GUILD_FORUM = ChannelTypes.GUILD_FORUM;
|
|
if (GUILD_FORUM === type) {
|
|
return isRulesChannel ? BookCheckIcon : isNSFW2 ? value == null ? isMediaChannel2 ? ImageWarningIcon : ForumWarningIcon : value.ignoreTraits ? a0.isSpoilerChannel() ? value == null ? ForumSpoilerIcon : value.ignoreTraits ? (importDefault(5107) /* metro dependency 5107: isRoleRequired */)(a0) ? value == null ? isMediaChannel2 ? ImageLockIcon : ForumLockIcon : value.ignoreTraits ? isMediaChannel2 ? ImageIcon : ForumIcon : isMediaChannel2 ? ImageLockIcon : ForumLockIcon : isMediaChannel2 ? ImageIcon : ForumIcon : ForumSpoilerIcon : (importDefault(5107) /* metro dependency 5107: isRoleRequired */)(a0) ? value == null ? isMediaChannel2 ? ImageLockIcon : ForumLockIcon : value.ignoreTraits ? isMediaChannel2 ? ImageIcon : ForumIcon : isMediaChannel2 ? ImageLockIcon : ForumLockIcon : isMediaChannel2 ? ImageIcon : ForumIcon : isMediaChannel2 ? ImageWarningIcon : ForumWarningIcon : a0.isSpoilerChannel() ? value == null ? ForumSpoilerIcon : value.ignoreTraits ? (importDefault(5107) /* metro dependency 5107: isRoleRequired */)(a0) ? value == null ? isMediaChannel2 ? ImageLockIcon : ForumLockIcon : value.ignoreTraits ? isMediaChannel2 ? ImageIcon : ForumIcon : isMediaChannel2 ? ImageLockIcon : ForumLockIcon : isMediaChannel2 ? ImageIcon : ForumIcon : ForumSpoilerIcon : (importDefault(5107) /* metro dependency 5107: isRoleRequired */)(a0) ? value == null ? isMediaChannel2 ? ImageLockIcon : ForumLockIcon : value.ignoreTraits ? isMediaChannel2 ? ImageIcon : ForumIcon : isMediaChannel2 ? ImageLockIcon : ForumLockIcon : isMediaChannel2 ? ImageIcon : ForumIcon;
|
|
}
|
|
const GUILD_MEDIA = ChannelTypes.GUILD_MEDIA;
|
|
if (GUILD_MEDIA === type) {
|
|
return isRulesChannel ? BookCheckIcon : isNSFW2 ? value == null ? ImageWarningIcon : value.ignoreTraits ? (importDefault(5107) /* metro dependency 5107: isRoleRequired */)(a0) ? value == null ? ImageLockIcon : value.ignoreTraits ? ImageIcon : ImageLockIcon : ImageIcon : ImageWarningIcon : (importDefault(5107) /* metro dependency 5107: isRoleRequired */)(a0) ? value == null ? ImageLockIcon : value.ignoreTraits ? ImageIcon : ImageLockIcon : ImageIcon;
|
|
}
|
|
const GROUP_DM = ChannelTypes.GROUP_DM;
|
|
if (GROUP_DM === type) {
|
|
return (require(6699) /* metro dependency 6699: GroupIcon */).GroupIcon;
|
|
}
|
|
const DM = ChannelTypes.DM;
|
|
if (DM === type) {
|
|
return (require(6700) /* metro dependency 6700: AtIcon */).AtIcon;
|
|
}
|
|
const GUILD_ANNOUNCEMENT = ChannelTypes.GUILD_ANNOUNCEMENT;
|
|
if (GUILD_ANNOUNCEMENT === type) {
|
|
return isRulesChannel ? BookCheckIcon : isNSFW2 ? value == null ? AnnouncementsWarningIcon : value.ignoreTraits ? a0.isSpoilerChannel() ? value == null ? AnnouncementsSpoilerIcon : value.ignoreTraits ? (importDefault(5107) /* metro dependency 5107: isRoleRequired */)(a0) ? value == null ? AnnouncementsLockIcon : value.ignoreTraits ? AnnouncementsIcon : AnnouncementsLockIcon : AnnouncementsIcon : AnnouncementsSpoilerIcon : (importDefault(5107) /* metro dependency 5107: isRoleRequired */)(a0) ? value == null ? AnnouncementsLockIcon : value.ignoreTraits ? AnnouncementsIcon : AnnouncementsLockIcon : AnnouncementsIcon : AnnouncementsWarningIcon : a0.isSpoilerChannel() ? value == null ? AnnouncementsSpoilerIcon : value.ignoreTraits ? (importDefault(5107) /* metro dependency 5107: isRoleRequired */)(a0) ? value == null ? AnnouncementsLockIcon : value.ignoreTraits ? AnnouncementsIcon : AnnouncementsLockIcon : AnnouncementsIcon : AnnouncementsSpoilerIcon : (importDefault(5107) /* metro dependency 5107: isRoleRequired */)(a0) ? value == null ? AnnouncementsLockIcon : value.ignoreTraits ? AnnouncementsIcon : AnnouncementsLockIcon : AnnouncementsIcon;
|
|
}
|
|
const GUILD_STAGE_VOICE = ChannelTypes.GUILD_STAGE_VOICE;
|
|
if (GUILD_STAGE_VOICE === type) {
|
|
return shouldShowMembershipVerificationGate2 ? value == null ? (importDefault(5107) /* metro dependency 5107: isRoleRequired */)(a0) ? LockIcon : StageLockIcon : value.ignoreTraits ? locked ? value == null ? LockIcon : value.ignoreTraits ? (importDefault(5107) /* metro dependency 5107: isRoleRequired */)(a0) ? value == null ? StageLockIcon : value.ignoreTraits ? StageIcon : StageLockIcon : StageIcon : LockIcon : (importDefault(5107) /* metro dependency 5107: isRoleRequired */)(a0) ? value == null ? StageLockIcon : value.ignoreTraits ? StageIcon : StageLockIcon : StageIcon : (importDefault(5107) /* metro dependency 5107: isRoleRequired */)(a0) ? LockIcon : StageLockIcon : locked ? value == null ? LockIcon : value.ignoreTraits ? (importDefault(5107) /* metro dependency 5107: isRoleRequired */)(a0) ? value == null ? StageLockIcon : value.ignoreTraits ? StageIcon : StageLockIcon : StageIcon : LockIcon : (importDefault(5107) /* metro dependency 5107: isRoleRequired */)(a0) ? value == null ? StageLockIcon : value.ignoreTraits ? StageIcon : StageLockIcon : StageIcon;
|
|
}
|
|
const GUILD_VOICE = ChannelTypes.GUILD_VOICE;
|
|
if (GUILD_VOICE === type) {
|
|
return textFocused ? (require(6682) /* metro dependency 6682: ChatIcon */).ChatIcon : shouldShowMembershipVerificationGate2 ? value == null ? (importDefault(5107) /* metro dependency 5107: isRoleRequired */)(a0) ? LockIcon : VoiceLockIcon : value.ignoreTraits ? locked ? value == null ? LockIcon : value.ignoreTraits ? (importDefault(5107) /* metro dependency 5107: isRoleRequired */)(a0) ? value == null ? VoiceLockIcon : value.ignoreTraits ? isNSFW2 ? value == null ? VoiceWarningIcon : value.ignoreTraits ? a0.isSpoilerChannel() ? value == null ? VoiceNormalSpoilerIcon : value.ignoreTraits ? VoiceNormalIcon : VoiceNormalSpoilerIcon : VoiceNormalIcon : VoiceWarningIcon : a0.isSpoilerChannel() ? value == null ? VoiceNormalSpoilerIcon : value.ignoreTraits ? VoiceNormalIcon : VoiceNormalSpoilerIcon : VoiceNormalIcon : VoiceLockIcon : isNSFW2 ? value == null ? VoiceWarningIcon : value.ignoreTraits ? a0.isSpoilerChannel() ? value == null ? VoiceNormalSpoilerIcon : value.ignoreTraits ? VoiceNormalIcon : VoiceNormalSpoilerIcon : VoiceNormalIcon : VoiceWarningIcon : a0.isSpoilerChannel() ? value == null ? VoiceNormalSpoilerIcon : value.ignoreTraits ? VoiceNormalIcon : VoiceNormalSpoilerIcon : VoiceNormalIcon : LockIcon : (importDefault(5107) /* metro dependency 5107: isRoleRequired */)(a0) ? value == null ? VoiceLockIcon : value.ignoreTraits ? isNSFW2 ? value == null ? VoiceWarningIcon : value.ignoreTraits ? a0.isSpoilerChannel() ? value == null ? VoiceNormalSpoilerIcon : value.ignoreTraits ? VoiceNormalIcon : VoiceNormalSpoilerIcon : VoiceNormalIcon : VoiceWarningIcon : a0.isSpoilerChannel() ? value == null ? VoiceNormalSpoilerIcon : value.ignoreTraits ? VoiceNormalIcon : VoiceNormalSpoilerIcon : VoiceNormalIcon : VoiceLockIcon : isNSFW2 ? value == null ? VoiceWarningIcon : value.ignoreTraits ? a0.isSpoilerChannel() ? value == null ? VoiceNormalSpoilerIcon : value.ignoreTraits ? VoiceNormalIcon : VoiceNormalSpoilerIcon : VoiceNormalIcon : VoiceWarningIcon : a0.isSpoilerChannel() ? value == null ? VoiceNormalSpoilerIcon : value.ignoreTraits ? VoiceNormalIcon : VoiceNormalSpoilerIcon : VoiceNormalIcon : (importDefault(5107) /* metro dependency 5107: isRoleRequired */)(a0) ? LockIcon : VoiceLockIcon : locked ? value == null ? LockIcon : value.ignoreTraits ? (importDefault(5107) /* metro dependency 5107: isRoleRequired */)(a0) ? value == null ? VoiceLockIcon : value.ignoreTraits ? isNSFW2 ? value == null ? VoiceWarningIcon : value.ignoreTraits ? a0.isSpoilerChannel() ? value == null ? VoiceNormalSpoilerIcon : value.ignoreTraits ? VoiceNormalIcon : VoiceNormalSpoilerIcon : VoiceNormalIcon : VoiceWarningIcon : a0.isSpoilerChannel() ? value == null ? VoiceNormalSpoilerIcon : value.ignoreTraits ? VoiceNormalIcon : VoiceNormalSpoilerIcon : VoiceNormalIcon : VoiceLockIcon : isNSFW2 ? value == null ? VoiceWarningIcon : value.ignoreTraits ? a0.isSpoilerChannel() ? value == null ? VoiceNormalSpoilerIcon : value.ignoreTraits ? VoiceNormalIcon : VoiceNormalSpoilerIcon : VoiceNormalIcon : VoiceWarningIcon : a0.isSpoilerChannel() ? value == null ? VoiceNormalSpoilerIcon : value.ignoreTraits ? VoiceNormalIcon : VoiceNormalSpoilerIcon : VoiceNormalIcon : LockIcon : (importDefault(5107) /* metro dependency 5107: isRoleRequired */)(a0) ? value == null ? VoiceLockIcon : value.ignoreTraits ? isNSFW2 ? value == null ? VoiceWarningIcon : value.ignoreTraits ? a0.isSpoilerChannel() ? value == null ? VoiceNormalSpoilerIcon : value.ignoreTraits ? VoiceNormalIcon : VoiceNormalSpoilerIcon : VoiceNormalIcon : VoiceWarningIcon : a0.isSpoilerChannel() ? value == null ? VoiceNormalSpoilerIcon : value.ignoreTraits ? VoiceNormalIcon : VoiceNormalSpoilerIcon : VoiceNormalIcon : VoiceLockIcon : isNSFW2 ? value == null ? VoiceWarningIcon : value.ignoreTraits ? a0.isSpoilerChannel() ? value == null ? VoiceNormalSpoilerIcon : value.ignoreTraits ? VoiceNormalIcon : VoiceNormalSpoilerIcon : VoiceNormalIcon : VoiceWarningIcon : a0.isSpoilerChannel() ? value == null ? VoiceNormalSpoilerIcon : value.ignoreTraits ? VoiceNormalIcon : VoiceNormalSpoilerIcon : VoiceNormalIcon;
|
|
}
|
|
const GUILD_DIRECTORY = ChannelTypes.GUILD_DIRECTORY;
|
|
if (GUILD_DIRECTORY === type) {
|
|
return (require(6712) /* metro dependency 6712: HubIcon */).HubIcon;
|
|
}
|
|
}
|
|
|
|
function getSimpleChannelIcon(a0) { // fn#52591, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6825:4530, offset: 0x013326ac, size: 441 bytes, params: 2, frame: 15
|
|
const getThreadChannelIconBinding = getThreadChannelIcon;
|
|
let type = a0.type;
|
|
const threadChannelIconBinding = getThreadChannelIconBinding(type);
|
|
if (threadChannelIconBinding != null) {
|
|
return threadChannelIconBinding;
|
|
}
|
|
type = a0.type;
|
|
const PRIVATE_THREAD = ChannelTypes.PRIVATE_THREAD;
|
|
if (PRIVATE_THREAD === type) {
|
|
return getThreadChannelIcon(a0.type);
|
|
}
|
|
const ANNOUNCEMENT_THREAD = ChannelTypes.ANNOUNCEMENT_THREAD;
|
|
if (ANNOUNCEMENT_THREAD === type) {
|
|
return getThreadChannelIcon(a0.type);
|
|
}
|
|
const PUBLIC_THREAD = ChannelTypes.PUBLIC_THREAD;
|
|
if (PUBLIC_THREAD === type) {
|
|
return getThreadChannelIcon(a0.type);
|
|
}
|
|
const GUILD_CATEGORY = ChannelTypes.GUILD_CATEGORY;
|
|
if (GUILD_CATEGORY === type) {
|
|
return importDefault(6650) /* metro dependency 6650 */;
|
|
}
|
|
const GUILD_TEXT = ChannelTypes.GUILD_TEXT;
|
|
if (GUILD_TEXT === type) {
|
|
return importDefault(6651) /* metro dependency 6651 */;
|
|
}
|
|
const GUILD_FORUM = ChannelTypes.GUILD_FORUM;
|
|
if (GUILD_FORUM === type) {
|
|
return importDefault(6651) /* metro dependency 6651 */;
|
|
}
|
|
const GUILD_MEDIA = ChannelTypes.GUILD_MEDIA;
|
|
if (GUILD_MEDIA === type) {
|
|
return importDefault(6651) /* metro dependency 6651 */;
|
|
}
|
|
const GROUP_DM = ChannelTypes.GROUP_DM;
|
|
if (GROUP_DM === type) {
|
|
return importDefault(6652) /* metro dependency 6652 */;
|
|
}
|
|
const DM = ChannelTypes.DM;
|
|
if (DM === type) {
|
|
return importDefault(6653) /* metro dependency 6653 */;
|
|
}
|
|
const GUILD_ANNOUNCEMENT = ChannelTypes.GUILD_ANNOUNCEMENT;
|
|
if (GUILD_ANNOUNCEMENT === type) {
|
|
return importDefault(6654) /* metro dependency 6654 */;
|
|
}
|
|
const GUILD_STAGE_VOICE = ChannelTypes.GUILD_STAGE_VOICE;
|
|
if (GUILD_STAGE_VOICE === type) {
|
|
return importDefault(6655) /* metro dependency 6655 */;
|
|
}
|
|
const GUILD_VOICE = ChannelTypes.GUILD_VOICE;
|
|
if (GUILD_VOICE === type) {
|
|
return importDefault(6656) /* metro dependency 6656 */;
|
|
}
|
|
const GUILD_DIRECTORY = ChannelTypes.GUILD_DIRECTORY;
|
|
if (GUILD_DIRECTORY === type) {
|
|
return importDefault(6657) /* metro dependency 6657 */;
|
|
}
|
|
return null;
|
|
}
|
|
|
|
function getChannelIconWithGuild(a0, a1) { // fn#52592, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6825:5108, offset: 0x01332865, size: 56 bytes, params: 3, frame: 16
|
|
return getChannelIcon(a0, {isRulesChannel: a1?.rulesChannelId === a0.id});
|
|
}
|
|
|
|
function getChannelMentionIcon(a0) { // fn#52593, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6825:5254, offset: 0x0133289d, size: 389 bytes, params: 2, frame: 11
|
|
if (a0 === 'voice') {
|
|
return importDefault(6656) /* metro dependency 6656 */;
|
|
}
|
|
if (a0 === 'voice-locked') {
|
|
return importDefault(6658) /* metro dependency 6658 */;
|
|
}
|
|
if (a0 === 'stage') {
|
|
return importDefault(6655) /* metro dependency 6655 */;
|
|
}
|
|
if (a0 === 'stage-locked') {
|
|
return importDefault(6659) /* metro dependency 6659 */;
|
|
}
|
|
if (a0 === 'text') {
|
|
return importDefault(6651) /* metro dependency 6651 */;
|
|
}
|
|
if (a0 === 'thread') {
|
|
return importDefault(6649) /* metro dependency 6649 */;
|
|
}
|
|
if (a0 === 'post') {
|
|
return importDefault(6660) /* metro dependency 6660 */;
|
|
}
|
|
if (a0 === 'message') {
|
|
return importDefault(6660) /* metro dependency 6660 */;
|
|
}
|
|
if (a0 === 'forum') {
|
|
return importDefault(6661) /* metro dependency 6661 */;
|
|
}
|
|
if (a0 === 'media') {
|
|
return importDefault(6662) /* metro dependency 6662 */;
|
|
}
|
|
if (a0 === 'locked') {
|
|
return importDefault(6663) /* metro dependency 6663 */;
|
|
}
|
|
return null;
|
|
}
|
|
|
|
function getChannelIconComponentWithGuild(a0, a1) { // fn#52594, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6825:5693, offset: 0x01332a22, size: 56 bytes, params: 3, frame: 16
|
|
return getChannelIconComponent(a0, {isRulesChannel: a1?.rulesChannelId === a0.id});
|
|
}
|
|
|
|
function getSimpleChannelIconComponent(a0) { // fn#52595, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6825:5915, offset: 0x01332a5a, size: 592 bytes, params: 2, frame: 13
|
|
const ThreadIcon = (require(6684) /* metro dependency 6684: ThreadIcon */).ThreadIcon;
|
|
const ChatIcon = (require(6682) /* metro dependency 6682: ChatIcon */).ChatIcon;
|
|
const type = a0.type;
|
|
const PRIVATE_THREAD = ChannelTypes.PRIVATE_THREAD;
|
|
if (PRIVATE_THREAD === type) {
|
|
return a0.isForumPost() ? ChatIcon : ThreadIcon;
|
|
}
|
|
const ANNOUNCEMENT_THREAD = ChannelTypes.ANNOUNCEMENT_THREAD;
|
|
if (ANNOUNCEMENT_THREAD === type) {
|
|
return a0.isForumPost() ? ChatIcon : ThreadIcon;
|
|
}
|
|
const PUBLIC_THREAD = ChannelTypes.PUBLIC_THREAD;
|
|
if (PUBLIC_THREAD === type) {
|
|
return a0.isForumPost() ? ChatIcon : ThreadIcon;
|
|
}
|
|
const GUILD_CATEGORY = ChannelTypes.GUILD_CATEGORY;
|
|
if (GUILD_CATEGORY === type) {
|
|
return (require(6685) /* metro dependency 6685: FolderIcon */).FolderIcon;
|
|
}
|
|
const GUILD_TEXT = ChannelTypes.GUILD_TEXT;
|
|
if (GUILD_TEXT === type) {
|
|
return (require(6691) /* metro dependency 6691: TextIcon */).TextIcon;
|
|
}
|
|
const GUILD_FORUM = ChannelTypes.GUILD_FORUM;
|
|
if (GUILD_FORUM === type) {
|
|
return (require(6698) /* metro dependency 6698: ForumIcon */).ForumIcon;
|
|
}
|
|
const GUILD_MEDIA = ChannelTypes.GUILD_MEDIA;
|
|
if (GUILD_MEDIA === type) {
|
|
return (require(6697) /* metro dependency 6697: ImageIcon */).ImageIcon;
|
|
}
|
|
const GROUP_DM = ChannelTypes.GROUP_DM;
|
|
if (GROUP_DM === type) {
|
|
return (require(6699) /* metro dependency 6699: GroupIcon */).GroupIcon;
|
|
}
|
|
const DM = ChannelTypes.DM;
|
|
if (DM === type) {
|
|
return (require(6700) /* metro dependency 6700: AtIcon */).AtIcon;
|
|
}
|
|
const GUILD_ANNOUNCEMENT = ChannelTypes.GUILD_ANNOUNCEMENT;
|
|
if (GUILD_ANNOUNCEMENT === type) {
|
|
return (require(6704) /* metro dependency 6704: AnnouncementsIcon */).AnnouncementsIcon;
|
|
}
|
|
const GUILD_STAGE_VOICE = ChannelTypes.GUILD_STAGE_VOICE;
|
|
if (GUILD_STAGE_VOICE === type) {
|
|
return (require(6707) /* metro dependency 6707: StageIcon */).StageIcon;
|
|
}
|
|
const GUILD_VOICE = ChannelTypes.GUILD_VOICE;
|
|
if (GUILD_VOICE === type) {
|
|
return (require(6711) /* metro dependency 6711: VoiceNormalIcon */).VoiceNormalIcon;
|
|
}
|
|
const GUILD_DIRECTORY = ChannelTypes.GUILD_DIRECTORY;
|
|
if (GUILD_DIRECTORY === type) {
|
|
return (require(6712) /* metro dependency 6712: HubIcon */).HubIcon;
|
|
}
|
|
return null;
|
|
}
|
|
|