Initial commit
This commit is contained in:
commit
af3b49f756
16065 files changed
+2938410
No files matched your search
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user