/* Metro module 11926; source: components_native/chat/ChatBeginningRow.tsx; dependencies: [57, 5, 31, 27, 4502, 1378, 6865, 9113, 5189, 1383, 1422, 5109, 1379, 1935, 1945, 1867, 3784, 3793, 4864, 1878, 661, 1386, 11927, 11899, 8781, 33, 4501, 697, 6682, 1244, 6684, 6689, 6691, 4559, 4573, 3853, 3860, 5278, 11392, 1305, 11928, 8148, 9646, 566, 3995, 8206, 4020, 4805, 9088, 6863, 11089, 4048, 6622, 11929, 11930, 44, 21, 11932, 3856, 9112, 4660, 11936, 5586, 9151, 5930, 1948, 11937, 11940, 8153, 4603, 4578, 11944, 4497, 11945, 6779, 8092, 683, 10630, 8194, 6613, 6610, 3857, 4080, 11947, 1962, 6771, 11948, 8491, 8743, 6797, 8822, 8515, 6947, 5080, 8863, 6819, 8783, 8800, 8796, 8794, 10348, 7975, 4007, 8879, 3968, 1365, 11388, 5225, 9719, 10859, 4056, 11949, 11953, 2] */
import Module00005 from '../../by-id/module-00005.js'; /* Metro dependency 5 */
import SnowflakeUtils from '../../utils/SnowflakeUtils.tsx'; /* Metro dependency 21 */
import Module00044 from '../../by-id/module-00044.js'; /* Metro dependency 44 */
import Module00057 from '../../by-id/module-00057.js'; /* Metro dependency 57 */
import AnalyticsUtils from '../../utils/AnalyticsUtils.tsx'; /* Metro dependency 683 */
import Native from '../../external/discord_common/js/packages/tokens/native.tsx'; /* Metro dependency 697 */
import EmbeddedActivitiesStore from '../../modules/activities/EmbeddedActivitiesStore.tsx'; /* Metro dependency 1378 */
import ChannelStore from '../../stores/ChannelStore.tsx'; /* Metro dependency 1379 */
import GuildStore from '../../stores/GuildStore.tsx'; /* Metro dependency 1867 */
import UserStore from '../../stores/UserStore.tsx'; /* Metro dependency 1878 */
import GuildChannelStore from '../../stores/GuildChannelStore.tsx'; /* Metro dependency 1935 */
import GuildMemberStore from '../../stores/GuildMemberStore.tsx'; /* Metro dependency 1945 */
import HelpdeskUtils from '../../utils/HelpdeskUtils.tsx'; /* Metro dependency 1948 */
import PermissionStore from '../../stores/PermissionStore.tsx'; /* Metro dependency 3784 */
import RelationshipStore from '../../stores/RelationshipStore.tsx'; /* Metro dependency 3793 */
import UserUtils from '../../utils/UserUtils.tsx'; /* Metro dependency 3995 */
import UseTheme from '../../hooks/useTheme.tsx'; /* Metro dependency 4048 */
import ActionSheetActionCreators from '../../modules/action_sheet/native/ActionSheetActionCreators.tsx'; /* Metro dependency 4080 */
import AccessibilityStore from '../../modules/a11y/AccessibilityStore.tsx'; /* Metro dependency 4502 */
import UseChannelName from '../../modules/channel/useChannelName.tsx'; /* Metro dependency 4805 */
import UserGuildSettingsStore from '../../stores/UserGuildSettingsStore.tsx'; /* Metro dependency 4864 */
import ModalActionCreators from '../../actions/ModalActionCreators.tsx'; /* Metro dependency 5080 */
import AuthorizedAppsStore from '../../stores/AuthorizedAppsStore.tsx'; /* Metro dependency 5109 */
import UserProfileStore from '../../modules/user_profile/UserProfileStore.tsx'; /* Metro dependency 5189 */
import UseAnalyticsLocations from '../../modules/app_analytics/useAnalyticsLocations.tsx'; /* Metro dependency 6771 */
import AuthorizedAppsActionCreators from '../../actions/AuthorizedAppsActionCreators.tsx'; /* Metro dependency 6779 */
import GuildIcon from '../../modules/guild/native/GuildIcon.tsx'; /* Metro dependency 6819 */
import ForumPostMessagesStore from '../../modules/forums/ForumPostMessagesStore.tsx'; /* Metro dependency 6865 */
import ChannelSettingsActionCreators from '../../actions/ChannelSettingsActionCreators.tsx'; /* Metro dependency 8148 */
import Module08194 from '../../by-id/module-08194.js'; /* Metro dependency 8194 */
import ShowUserProfileActionSheet from '../../modules/user_profile/native/showUserProfileActionSheet.tsx'; /* Metro dependency 8743 */
import RelationshipActionCreators from '../../actions/RelationshipActionCreators.tsx'; /* Metro dependency 8783 */
import GuildSettingsStore from '../../modules/guild_settings/GuildSettingsStore.tsx'; /* Metro dependency 9113 */
import GroupDMAvatar from '../../modules/group_dm/native/GroupDMAvatar.tsx'; /* Metro dependency 9719 */
import UserSettingsAuthedAppDeleteWarningModal from '../../modules/user_settings/authorized_apps/native/UserSettingsAuthedAppDeleteWarningModal.tsx'; /* Metro dependency 11945 */
import * as FileImportTrackerModule from '../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ReactNativeModule from '../../by-id/module-00027-ReactNative.js'; /* Metro dependency 27 */
import * as ReactModule from '../../by-id/module-00031-React.js'; /* Metro dependency 31 */
import * as FluxModule from '../../external/discord_common/js/packages/flux/index.tsx'; /* Metro dependency 566 */
import * as IndexNativeModule from '../../intl/index.native.tsx'; /* Metro dependency 1244 */
import * as NativeModule from '../../design/void/native.tsx'; /* Metro dependency 1305 */
import * as Dismissible_contentModule from '../../external/discord_common/js/packages/protos/discord_protos/discord_users/v1/dismissible_content.tsx'; /* Metro dependency 1365 */
import * as ChannelRecordModule from '../../records/ChannelRecord.tsx'; /* Metro dependency 1383 */
import * as ChannelConstantsModule from '../../modules/channel/ChannelConstants.tsx'; /* Metro dependency 1386 */
import * as GuildRecordModule from '../../records/GuildRecord.tsx'; /* Metro dependency 1422 */
import * as ToastUtilsModule from '../../modules/toast/native/ToastUtils.tsx'; /* Metro dependency 3856 */
import * as UseTokenModule from '../../design/tokens/native/useToken.tsx'; /* Metro dependency 3860 */
import * as DismissibleContentUnsafeUtilsModule from '../../modules/dismissible_content/DismissibleContentUnsafeUtils.tsx'; /* Metro dependency 3968 */
import * as UseAlertStoreNativeModule from '../../design/components/AlertModal/native/useAlertStore.native.tsx'; /* Metro dependency 4497 */
import * as TextModule from '../../design/components/Text/native/Text.tsx'; /* Metro dependency 4573 */
import * as ButtonNativeModule from '../../design/components/Button/native/Button.native.tsx'; /* Metro dependency 4578 */
import * as AuthorizedAppsStoreModule from '../../stores/AuthorizedAppsStore.tsx'; /* Metro dependency 5109 */
import * as FakePlaceholderPrivateChannelModule from '../../modules/channel/FakePlaceholderPrivateChannel.tsx'; /* Metro dependency 5225 */
import * as PressablesModule from '../../design/void/Pressables/native/Pressables.tsx'; /* Metro dependency 5278 */
import * as ClipboardUtilsNativeModule from '../../utils/ClipboardUtils.native.tsx'; /* Metro dependency 6797 */
import * as GuildIconModule from '../../modules/guild/native/GuildIcon.tsx'; /* Metro dependency 6819 */
import * as ForumTagHooksModule from '../../modules/forums/ForumTagHooks.tsx'; /* Metro dependency 6863 */
import * as TransitionToGuildNativeModule from '../../modules/routing/transitionToGuild.native.tsx'; /* Metro dependency 6947 */
import * as RowButtonNativeModule from '../../design/components/TableRow/native/RowButton.native.tsx'; /* Metro dependency 7975 */
import * as EnhancedRoleColorUtilsModule from '../../modules/premium/enhanced_role_colors/native/EnhancedRoleColorUtils.tsx'; /* Metro dependency 8206 */
import * as UserProfileAnalyticsUtilsModule from '../../modules/user_profile/UserProfileAnalyticsUtils.tsx'; /* Metro dependency 8515 */
import * as RestrictionConfirmationConstantsModule from '../../modules/relationships/native/RestrictionConfirmationConstants.tsx'; /* Metro dependency 8781 */
import * as UserProfileAlertUtilsModule from '../../modules/user_profile/native/UserProfileAlertUtils.tsx'; /* Metro dependency 8796 */
import * as GuildIconPileNativeModule from '../../design/components/Pile/native/GuildIconPile.native.tsx'; /* Metro dependency 8863 */
import * as ChannelPermissionsUtilsModule from '../../modules/channel_permissions/ChannelPermissionsUtils.tsx'; /* Metro dependency 9088 */
import * as AppliedForumTagModule from '../../modules/forums/native/AppliedForumTag.tsx'; /* Metro dependency 11089 */
import * as MessageRequestConstantsModule from '../../modules/message_request/MessageRequestConstants.tsx'; /* Metro dependency 11899 */
import * as GuildProgressHooksModule from '../../modules/guild_progress/GuildProgressHooks.tsx'; /* Metro dependency 11930 */
import * as GuildProgressUtilsModule from '../../modules/guild_progress/native/GuildProgressUtils.tsx'; /* Metro dependency 11932 */
import * as UseDMMessageToReportModule from '../../modules/messages/useDMMessageToReport.tsx'; /* Metro dependency 11940 */
function _fun91451(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#91451, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12112:6, offset: 0x02064c66, size: 1569 bytes, params: 8, frame: 28
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
let value = ReactNativeModule;
const env0_6 = value.ActivityIndicator;
const env0_7 = value.View;
value = require(661) /* metro dependency 661: Constants */;
const env0_25 = value.AnalyticEvents;
const env0_26 = value.AnalyticsPages;
const env0_27 = value.AnalyticsSections;
const env0_28 = value.ChannelSettingsSections;
const env0_29 = value.EMPTY_STRING_SNOWFLAKE_ID;
const env0_30 = value.GuildSettingsSections;
const env0_31 = value.HelpdeskArticles;
const env0_32 = value.InstantInviteSources;
const env0_33 = value.Permissions;
const env0_34 = value.RelationshipTypes;
const env0_35 = value.UPLOAD_MEDIUM_SIZE;
const env0_36 = value.WELCOME_OLD_GUILD_AGE_THRESHOLD;
value = require(11927) /* metro dependency 11927: GuildProgressConstants */;
const env0_38 = value.AnalyticsActions;
const env0_39 = value.AnalyticsSetupTypes;
value = require(33) /* metro dependency 33 */;
const env0_42 = value.jsx;
const env0_43 = value.Fragment;
const env0_44 = value.jsxs;
value = require(4501) /* metro dependency 4501: createStyles */;
const createStyles = value.createStyles;
object = {container: {'position': 'absolute', 'paddingVertical': 8, 'paddingHorizontal': 12, 'width': '100%'}};
object.title = {marginTop: 16};
object.subtitle = {'marginBottom': 16, 'lineHeight': 20};
const object3 = {'borderRadius': null, 'marginTop': 16, 'width': '100%'};
object3.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.lg;
object.gdmInviteFriends = object3;
const object4 = {'borderRadius': null, 'marginTop': 8, 'width': '100%'};
object4.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.lg;
object.gdmShareInviteLink = object4;
object.gdmShareInviteLinkNoRelationships = {marginTop: 16};
object.ctaLabel = {marginLeft: 8};
object.ctaContainer = {'flexDirection': 'row', 'flexWrap': 'wrap'};
object.ctaButton = {'flexDirection': 'row', 'alignItems': 'center'};
object.ctaAddRoles = {paddingRight: 24};
object.avatar = {marginBottom: 16};
object.avatarRedesign = {marginBottom: 16};
object.centerHeader = {'paddingHorizontal': 8, 'alignItems': 'center'};
object.gdmText = {textAlign: 'center'};
object.dmTitle = {'marginBottom': 8, 'textAlign': 'center'};
object.dmBeginningMessage = {marginTop: 8};
object.provisionalAccountExplainer = {marginTop: 12};
object.mutualGuildsLabel = {'marginTop': 8, 'marginLeft': 8, 'height': 26};
object.mutualGuildsContainer = {'flexDirection': 'row', 'alignItems': 'center', 'marginTop': 6};
const object9 = {'width': 64, 'height': 64, 'borderRadius': null, 'backgroundColor': null,
'justifyContent': 'center', 'alignItems': 'center'};
object9.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.xxl;
const BACKGROUND_MOD_MUTED = (importDefault(697) /* metro dependency 697: native */).colors.BACKGROUND_MOD_MUTED;
object9.backgroundColor = BACKGROUND_MOD_MUTED;
object.iconContainer = object9;
object.threadDetails = {lineHeight: 20};
object.threadCreatorRoleDot = {'paddingRight': 4, 'paddingTop': 2};
object.tagContainer = {'marginTop': 8, 'display': 'flex', 'flexDirection': 'row', 'flexWrap': 'wrap'};
const object10 = {'borderRadius': null, 'backgroundColor': null, 'height': 24, 'width': 24, 'padding': 4,
'alignContent': 'center'};
object10.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.round;
const STATUS_POSITIVE = (importDefault(697) /* metro dependency 697: native */).colors.STATUS_POSITIVE;
object10.backgroundColor = STATUS_POSITIVE;
object.unmutedNotificationContainer = object10;
object.unmutedNotification = {'width': 16, 'height': 16};
object.dmButtonRow = {'marginTop': 16, 'flexDirection': 'row', 'flexWrap': 'wrap', 'alignItems': 'center', 'gap': 8};
object.pendingIncoming = {'flexDirection': 'column', 'gap': 8};
object.pendingIncomingButtons = {'flexDirection': 'row', 'flexWrap': 'wrap', 'gap': 8};
object.appDMButtonIcon = {marginRight: 2};
object.formCtaIcon = {'width': 32, 'height': 32};
const env0_45 = Reflect.apply(createStyles, value, [object]);
(FileImportTrackerModule).fileFinishedImporting('components_native/chat/ChatBeginningRow.tsx');
exports.default = ChatBeginningRow;
function ChatBeginningRowIcon(a0) { // fn#91452, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12112:2625, offset: 0x02065287, size: 383 bytes, params: 2, frame: 20
const isPrivate = a0.isPrivate;
const isThread = a0.isThread;
a0.isNSFW;
const isForumPost = a0.isForumPost;
const styles = useStyles();
const object = {};
if (isForumPost) {
object.IconComponent = (require(6682) /* metro dependency 6682: ChatIcon */).ChatIcon;
object.label = (require(1244) /* metro dependency 1244: indexNative */).t.Y4REmB;
} else if (isThread) {
object.IconComponent = (require(6684) /* metro dependency 6684: ThreadIcon */).ThreadIcon;
object.label = (require(1244) /* metro dependency 1244: indexNative */).t['7Xm5QI'];
} else if (isPrivate) {
object.IconComponent = (require(6689) /* metro dependency 6689: TextLockIcon */).TextLockIcon;
object.label = (require(1244) /* metro dependency 1244: indexNative */).t.GK18KJ;
} else {
object.IconComponent = (require(6691) /* metro dependency 6691: TextIcon */).TextIcon;
object.label = (require(1244) /* metro dependency 1244: indexNative */).t.GK18KJ;
}
const IconComponent = object.IconComponent;
return (
);
}
function ChatBeginningRowHeader({title, subtitle, isPrivate, isThread, isNSFW, isForumPost, subtitleLink}) { // fn#91453, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12112:3116, offset: 0x02065406, size: 371 bytes, params: 2, frame: 29
var r11;
var r5;
var object2;
const styles = useStyles();
const r13 = subtitleLink != null && (require(4559) /* metro dependency 4559: useIsScreenReaderEnabledNative */).useIsScreenReaderEnabled();
const jsxRuntimeEnv0_43Binding = jsxRuntimeEnv0_43;
const items2 = [
,
];
const Text = (TextModule).Text;
items2[1] = (
{title}
);
const value8 = subtitle != null;
if (value8) {
object2 = {};
r11 = r13 ? 'link' : undefined;
object2.accessibilityRole = r11;
r11 = r13 ? _fun91454 : undefined;
object2.onPress = r11;
object2.style = styles.subtitle;
object2.variant = 'text-md/medium';
object2.color = 'text-default';
r5 = (
{subtitle}
);
} else {
r5 = value8;
}
items2[2] = r5;
return (
<>
{items2}
>
);
function _fun91454() { // fn#91454, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12112:3617, offset: 0x02065579, size: 45 bytes, params: 1, frame: 11
let value = environment.__proto__;
value = importDefault(3853) /* metro dependency 3853: Linking */;
return value.openURL(subtitleLink);
}
}
function LinkManageButtons({canManageRoles, canEdit, isPrivate, channel, theme}) { // fn#91455, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12112:3727, offset: 0x020655a6, size: 730 bytes, params: 2, frame: 31
var r5;
const PressableOpacity = (PressablesModule).PressableOpacity;
var object;
var items2;
const Text = (TextModule).Text;
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
var object3;
var items6;
const styles = useStyles();
const useToken = UseTokenModule.useToken;
const TEXT_LINK = (Native).colors.TEXT_LINK;
const value2 = Reflect.apply(useToken, UseTokenModule, [TEXT_LINK, theme]);
let r6 = isPrivate && canManageRoles;
if (r6) {
var pressableOpacityProps = {accessibilityRole: 'button', onPress: onPress_91456, style: [styles.ctaButton,
styles.subtitle]};
const Icon = (require(1305) /* metro dependency 1305: native */).Icon;
items2 = [
,
];
items2[1] = (
{intl.string((require(1244) /* metro dependency 1244: indexNative */).t.dMJ3Y6)}
);
r6 = (
{items2}
);
}
if (canEdit) {
var pressableOpacityProps = {accessibilityRole: 'button', onPress: onPress_91457, style: [styles.ctaButton,
styles.subtitle]};
const PencilIcon = (require(9646) /* metro dependency 9646: PencilIcon */).PencilIcon;
items6 = [
,
];
items6[1] = (
{intl.string((require(1244) /* metro dependency 1244: indexNative */).t.GE1Tlo)}
);
r5 = (
{items6}
);
} else {
r5 = canEdit;
}
return (
{r6}
{r5}
);
function LinkManageButtonsOnPress() { // fn#91456, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12112:3986, owner: LinkManageButtons.onPress, offset: 0x02065880, size: 45 bytes, params: 1, frame: 11
let value = environment.__proto__;
value = require(11392) /* metro dependency 11392: ChannelPermissionsUtils */;
return value.openAddMembersActionSheet(channel);
}
function LinkManageButtonsOnPress_91457() { // fn#91457, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12112:4367, owner: LinkManageButtons.onPress, offset: 0x020658ad, size: 80 bytes, params: 1, frame: 15
let value = environment.__proto__;
const defaultImport = ChannelSettingsActionCreators;
const setSection = defaultImport.setSection;
const OVERVIEW = ChannelSettingsSections.OVERVIEW;
Reflect.apply(setSection, defaultImport, [OVERVIEW]);
value = defaultImport;
value.open(channel.id);
}
}
function ThreadOwner({userId, guildId}) { // fn#91458, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12112:4645, offset: 0x020658fd, size: 667 bytes, params: 2, frame: 28
const Text = (TextModule).Text;
var value;
const styles = useStyles();
const user = (require(566) /* metro dependency 566: flux */).useStateFromStores([UserStore], function() {
return UserStore.getUser(userId);
});
const value3 = (require(566) /* metro dependency 566: flux */).useStateFromStores([GuildMemberStore], _fun91460);
const roleStyle = (require(566) /* metro dependency 566: flux */).useStateFromStores([AccessibilityStore],
function() {
return AccessibilityStore.roleStyle;
});
let r2 = value3?.nick ?? (importDefault(3995) /* metro dependency 3995: UserUtils */).getName(user);
const r4 = r2 ?? '???';
r2 = value3?.colorString ?? null;
let r5 = value3?.colorStrings ?? null;
const value7 = (EnhancedRoleColorUtilsModule).useProcessColorStringsArray(r5);
const useIsRoleStyleAndRoleColorsEligibleForERC = EnhancedRoleColorUtilsModule.useIsRoleStyleAndRoleColorsEligibleForERC;
if (roleStyle === 'username') {
r5 = r2 != null ? {color: r2} : undefined;
value = require(4020) /* metro dependency 4020: FabricUtils */;
return (
{r4}
);
}
return (
<>
{roleStyle === 'dot' && r2 != null && ((RoleDot) => )((require(1305) /* metro dependency 1305: native */).RoleDot)}
{r4}
>
);
function _fun91460() { // fn#91460, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12112:4795, offset: 0x02065bb3, size: 45 bytes, params: 1, frame: 14
const userIdBinding = userId;
const value2 = null;
return value2 != userIdBinding ? GuildMemberStore.getMember(guildId, userId) : value2;
}
}
function ChatBeginningRowThread({channel}) { // fn#91462, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12112:5595, offset: 0x02065bef, size: 635 bytes, params: 2, frame: 30
var r6;
var r0;
var jsxRuntimeEnv0_43Binding;
var isForumPost;
var items2;
const Text = (TextModule).Text;
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
const styles = useStyles();
const value2 = (UseChannelName)(channel);
const isPrivateGuildChannel2 = (ChannelPermissionsUtilsModule).isPrivateGuildChannel(channel);
const value3 = (ForumTagHooksModule).useAppliedTags(channel);
const useStateFromStoresObject = FluxModule.useStateFromStoresObject;
if (channel.threadMetadata == null) {
r0 = null;
} else {
jsxRuntimeEnv0_43Binding = jsxRuntimeEnv0_43;
items2 = [
,
];
isForumPost = channel.isForumPost;
r6 = (
Reflect.apply(isForumPost, channel, []) && value3.length > 0
? (
{value3.map(_fun91464)}
)
: null
);
items2[1] = r6;
r6 = !channel.isForumPost() && {intl.format((require(1244) /* metro dependency 1244: indexNative */).t.imPXd5,
{usernameHook: usernameHook_91465})};
items2[2] = r6;
isForumPost = channel.isForumPost;
r6 = (
Reflect.apply(isForumPost, channel, []) && Reflect.apply(useStateFromStoresObject, FluxModule,
[[ForumPostMessagesStore], function() {
return ForumPostMessagesStore.getMessage(channel.id);
}]).firstMessage == null
? (
{intl.string((require(1244) /* metro dependency 1244: indexNative */).t.mE3KJN)}
)
: null
);
items2[3] = r6;
r0 = (
<>
{items2}
>
);
}
return r0;
function _fun91464(a0) { // fn#91464, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12112:6034, offset: 0x02065e8a, size: 58 bytes, params: 2, frame: 16
const AppliedForumTagPill = (AppliedForumTagModule).AppliedForumTagPill;
return ;
}
function ChatBeginningRowThreadUsernameHook(a0, a1) { // fn#91465, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12112:6256, owner: ChatBeginningRowThread.usernameHook, offset: 0x02065ec4, size: 53 bytes, params: 3, frame: 15
const channelBinding = channel;
return (
);
}
}
function ChatBeginningRowGuildNonDefaultChannel({guild, channel}) { // fn#91466, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12112:6491, offset: 0x02065ef9, size: 571 bytes, params: 2, frame: 29
var r5;
var value;
const value2 = (UseChannelName)(channel, true);
const value3 = (UseChannelName)(channel, false);
let permissionStoreBinding = PermissionStore;
let can = permissionStoreBinding.can;
const MANAGE_CHANNELS = Permissions.MANAGE_CHANNELS;
const value4 = Reflect.apply(can, permissionStoreBinding, [MANAGE_CHANNELS, channel]);
permissionStoreBinding = PermissionStore;
can = permissionStoreBinding.can;
const MANAGE_ROLES = Permissions.MANAGE_ROLES;
const value5 = Reflect.apply(can, permissionStoreBinding, [MANAGE_ROLES, channel]);
permissionStoreBinding = PermissionStore;
can = permissionStoreBinding.can;
const READ_MESSAGE_HISTORY = Permissions.READ_MESSAGE_HISTORY;
const value6 = Reflect.apply(can, permissionStoreBinding, [READ_MESSAGE_HISTORY, channel]);
const isPrivateGuildChannel2 = (ChannelPermissionsUtilsModule).isPrivateGuildChannel(channel);
const value7 = (UseTheme)();
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
const value8 = intl.formatToPlainString((require(1244) /* metro dependency 1244: indexNative */).t.q0tgLe,
{channelName: value2});
const r12 = isPrivateGuildChannel2 ? intl.format((require(1244) /* metro dependency 1244: indexNative */).t.QuwqjG,
{channelName: value2,
topicHook: topicHook}) : value6 ? intl.formatToPlainString((require(1244) /* metro dependency 1244: indexNative */).t.JHKUGB,
{channelName: value2}) : intl.format((require(1244) /* metro dependency 1244: indexNative */).t.hPVEQG,
{channelName: value3});
const jsxRuntimeEnv0_43Binding = jsxRuntimeEnv0_43;
const items2 = [
,
];
items2[1] = (
);
if (isPrivateGuildChannel2) {
if (value4) {
value = importDefault(11929) /* metro dependency 11929: ChannelAccessInfo */;
value = ((Component) => )(value);
r5 = value;
} else {
r5 = null;
}
} else {
r5 = null;
}
items2[2] = r5;
return (
<>
{items2}
>
);
function topicHook() { // fn#91467, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12112:6875, owner: ChatBeginningRowGuildNonDefaultChannel.topicHook, offset: 0x02066134, size: 66 bytes, params: 1, frame: 15
let value = environment.__proto__;
value = importDefault(6622) /* metro dependency 6622: MarkupUtils */;
const parseTopic = value.parseTopic;
const channelBinding = channel;
return Reflect.apply(parseTopic, value, [channelBinding.topic, true, {channelId: channelBinding.id}]);
}
}
function ChatBeginningRowGuild({guild, channel}) { // fn#91468, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12112:7263, offset: 0x02066176, size: 180 bytes, params: 2, frame: 18
const defaultChannel = (require(566) /* metro dependency 566: flux */).useStateFromStores([GuildChannelStore],
function() {
return GuildChannelStore.getDefaultChannel(guild.id);
});
const permissionStoreBinding = PermissionStore;
const can = permissionStoreBinding.can;
const READ_MESSAGE_HISTORY = Permissions.READ_MESSAGE_HISTORY;
return (
Reflect.apply(can, permissionStoreBinding, [READ_MESSAGE_HISTORY, channel]) && defaultChannel?.id === channel.id
? (
)
: (
)
);
}
function DMSpamButton({channel, user, showingSpamBanner}) { // fn#91470, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12112:9802, offset: 0x0206624a, size: 247 bytes, params: 2, frame: 22
const Button = (ButtonNativeModule).Button;
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
const value2 = (UseDMMessageToReportModule).useDMMessageToReport(channel,
user.id, user.bot === true);
const message = value2.message;
if (!showingSpamBanner) {
if (value2.isReportable) {
if (message != null) {
return (
);
}
if (value2.isLoaded) {
return null;
}
return (
);
}
}
return null;
function DMSpamButtonOnPress() { // fn#91471, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12112:10122, owner: DMSpamButton.onPress, offset: 0x02066341, size: 67 bytes, params: 1, frame: 13
var environment;
var value2;
var moduleValue;
if (message != null) {
value2 = environment.__proto__;
moduleValue = require(8153) /* metro dependency 8153: ReportModals */;
moduleValue.showReportModalForFirstDM(message, _fun91472);
}
function _fun91472() { // fn#91472, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12112:10174, offset: 0x02066384, size: 53 bytes, params: 1, frame: 14
let value = environment.__proto__.__proto__;
value = importDefault(4603) /* metro dependency 4603: ChannelActionCreators */;
value.closePrivateChannel(channel.id, true);
}
}
}
function ManageAppButton({user, application, channel, oauth2Token}) { // fn#91473, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12112:10223, offset: 0x020663b9, size: 341 bytes, params: 2, frame: 23
var r0;
var Button;
var intl;
const styles = useStyles();
const env0_3 = (require(566) /* metro dependency 566: flux */).useStateFromStores([EmbeddedActivitiesStore],
function() {
return EmbeddedActivitiesStore.getSelfEmbeddedActivities();
});
if (user.bot) {
if (application != null) {
Button = (require(4578) /* metro dependency 4578: ButtonNative */).Button;
intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
r0 = (