Initial commit

This commit is contained in:
janisslsm committed 2026-07-27 16:20:00 +03:00
commit af3b49f756
16065 files changed
+2938410

No files matched your search

@@ -0,0 +1,323 @@
/* Metro module 12583; source: modules/shared_space_warnings/native/BlockedUserInGdmActionSheet.tsx; dependencies: [31, 27, 1379, 1878, 12584, 661, 33, 4501, 697, 4573, 4617, 1244, 566, 1360, 1305, 11441, 9719, 4073, 4068, 683, 6805, 11300, 6231, 6238, 4578, 4080, 12585, 4603, 2] */
function _fun96415(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#96415, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12773:6, offset: 0x0215cc55, size: 528 bytes, params: 8, frame: 22
var object3;
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const env0_3 = importAll(31) /* metro dependency 31 */;
let value = require(27) /* metro dependency 27 */;
const env0_4 = value.Image;
const env0_5 = value.View;
const channelStore = importDefault(1379) /* metro dependency 1379: ChannelStore */;
const userStore = importDefault(1878) /* metro dependency 1878: UserStore */;
value = require(12584) /* metro dependency 12584: SharedSpaceWarningConstants */;
const env0_8 = value.BlockWarningEngagements;
const env0_9 = value.GdmWarningMedium;
const env0_10 = (require(661) /* metro dependency 661: Constants */).AnalyticEvents;
value = require(33) /* metro dependency 33 */;
const env0_11 = value.jsx;
const env0_12 = value.Fragment;
const env0_13 = value.jsxs;
value = require(4501) /* metro dependency 4501: createStyles */;
const createStyles = value.createStyles;
object3 = {};
const object4 = {};
const PX_12 = (importDefault(697) /* metro dependency 697: native */).space.PX_12;
object4.paddingTop = PX_12;
const PX_8 = (importDefault(697) /* metro dependency 697: native */).space.PX_8;
object4.gap = PX_8;
object4.textAlign = 'center';
object3.container = object4;
object3.headerImage = {'alignSelf': 'center', 'width': 73, 'height': 86};
object3.title = {'textAlign': 'center', 'alignSelf': 'center'};
object3.description = {'textAlign': 'center', 'alignSelf': 'center'};
const PX_24 = (importDefault(697) /* metro dependency 697: native */).space.PX_24;
object3.tableGroup = {paddingVertical: PX_24};
object3.buttons = {gap: 8};
object3.icon = {'display': 'flex', 'justifyContent': 'center', 'alignItems': 'center', 'minWidth': 32};
const env0_14 = Reflect.apply(createStyles, value, [object3]);
const closure = getUserCalloutRowText;
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/shared_space_warnings/native/BlockedUserInGdmActionSheet.tsx');
exports.default = BlockedUserInGdmActionSheet;
exports.getUserCalloutRowText = closure;
}
function getUserCalloutRowText({calledOutUserIds, totalUsers, guildId, channelId}) { // fn#96416, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12773:705, offset: 0x0215ce65, size: 478 bytes, params: 2, frame: 20
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
const t = (require(1244) /* metro dependency 1244: indexNative */).t;
const items = [];
arraySpread(items, calledOutUserIds, 0, undefined);
const env0_2 = items.map(function(a0) {
return UserStore.getUser(a0);
});
return totalUsers >= 4 ? intl.format(t.qfo6KR, {usernameHook1: usernameHook1_96419,
usernameHook2: usernameHook2_96420,
numberOfOtherUsers: totalUsers - calledOutUserIds.length}) : totalUsers === 3 ? intl.format(t['67ZE+9'],
{usernameHook1: usernameHook1_96421,
usernameHook2: usernameHook2_96422}) : totalUsers === 2 ? intl.format(t.veV4IN, {usernameHook1: usernameHook1,
usernameHook2: usernameHook2}) : intl.format(t['4WHCtq'], {usernameHook: usernameHook_96425});
}
function UserCalloutAvatars({userIds, guildId}) { // fn#96426, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12773:1417, offset: 0x0215d0f2, size: 355 bytes, params: 2, frame: 22
var r1;
var r0;
var Avatar;
const value2 = (require(566) /* metro dependency 566: flux */).useStateFromStoresArray([UserStore], function() {
return userIds.map(_fun96428);
}, [userIds]);
const value3 = value2.filter((require(1360) /* metro dependency 1360: GlobalUtils */).isNotNullish);
if (userIds.length === 1) {
if (UserStore.getUser(userIds[0]) != null) {
Avatar = (require(1305) /* metro dependency 1305: native */).Avatar;
var avatarProps = {user: value3[0], guildId: guildId,
size: (require(1305) /* metro dependency 1305: native */).AvatarSizes.REFRESH_MEDIUM_32};
avatarProps['aria-hidden'] = true;
r1 = <Avatar {...avatarProps} />;
} else {
const UserIcon = (require(11441) /* metro dependency 11441: UserIcon */).UserIcon;
r1 = <UserIcon />;
}
r0 = r1;
} else {
const FacepileGroupDMAvatar = (require(9719) /* metro dependency 9719: GroupDMAvatar */).FacepileGroupDMAvatar;
r0 = <FacepileGroupDMAvatar users={value3} size={(require(1305) /* metro dependency 1305: native */).AvatarSizes.REFRESH_MEDIUM_32} />;
}
return r0;
}
function BlockedUserInGDMDescription({numOfBlockedUsers, numOfIgnoredUsers}) { // fn#96429, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12773:1837, offset: 0x0215d288, size: 520 bytes, params: 2, frame: 23
var r0;
var jsxRuntimeEnv0_12Binding;
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
const t = (require(1244) /* metro dependency 1244: indexNative */).t;
let value = numOfBlockedUsers > 0;
const value2 = numOfIgnoredUsers > 0;
if (value) {
if (value2) {
jsxRuntimeEnv0_12Binding = jsxRuntimeEnv0_12;
value = intl.string(t.xbRNI3);
value = <>{[value, '\n', intl.string(t['Bp2/ni'])]}</>;
r0 = value;
} else if (value) {
jsxRuntimeEnv0_12Binding = jsxRuntimeEnv0_12;
value = intl.format(t.iKtixW, {n: numOfBlockedUsers});
value = <>{[value, '\n', intl.string(t.SN1hrl)]}</>;
r0 = value;
} else {
value = null;
if (value2) {
jsxRuntimeEnv0_12Binding = jsxRuntimeEnv0_12;
value = intl.format(t['6IRwua'], {n: numOfIgnoredUsers});
value = <>{[value, '\n', intl.string(t['6AKLRt'])]}</>;
r0 = value;
} else {
r0 = value;
}
}
} else if (value) {
jsxRuntimeEnv0_12Binding = jsxRuntimeEnv0_12;
value = intl.format(t.iKtixW, {n: numOfBlockedUsers});
value = <>{[value, '\n', intl.string(t.SN1hrl)]}</>;
r0 = value;
} else {
value = null;
if (value2) {
jsxRuntimeEnv0_12Binding = jsxRuntimeEnv0_12;
value = intl.format(t['6IRwua'], {n: numOfIgnoredUsers});
value = <>{[value, '\n', intl.string(t['6AKLRt'])]}</>;
r0 = value;
} else {
r0 = value;
}
}
return r0;
}
function BlockedUserInGdmActionSheet({channelId, blockedUserIds, ignoredUserIds}) { // fn#96430, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12773:2364, offset: 0x0215d490, size: 1330 bytes, params: 2, frame: 35
var r14;
var guild_id;
var unshift;
var getUserCalloutRowTextBinding;
var value8;
var object2;
const styles = useStyles();
styles.useEffect(function() {
var defaultImport = importDefault(dependencyMap[19]);
var GDM_BLOCKED_USER_WARNING_VIEWED = AnalyticEvents.GDM_BLOCKED_USER_WARNING_VIEWED;
defaultImport.track(GDM_BLOCKED_USER_WARNING_VIEWED, {channel_id: channelId,
warning_medium: GdmWarningMedium.ACTION_SHEET, ignored_user_ids: ignoredUserIds,
blocked_user_ids: blockedUserIds});
}, [channelId, blockedUserIds, ignoredUserIds]);
object = {channelId: channelId, blockedUserIds: blockedUserIds, ignoredUserIds: ignoredUserIds};
channelId = object.channelId;
const blockedUserIds2 = object.blockedUserIds;
const ignoredUserIds2 = object.ignoredUserIds;
const channel = ChannelStore.getChannel(channelId);
let length = blockedUserIds2.length;
const value4 = length > 0;
const value5 = ignoredUserIds2.length > 0;
object = {};
const CircleCheckIcon = (require(4073) /* metro dependency 4073: CircleCheckIcon */).CircleCheckIcon;
object.icon = <CircleCheckIcon />;
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
let string = intl.string;
const RIMw54 = (require(1244) /* metro dependency 1244: indexNative */).t.RIMw54;
object.label = Reflect.apply(string, intl, [RIMw54]);
const items3 = [object];
object = {};
const CircleInformationIcon = (require(4068) /* metro dependency 4068: CircleInformationIcon */).CircleInformationIcon;
object.icon = <CircleInformationIcon />;
object.label = intl.string((require(1244) /* metro dependency 1244: indexNative */).t.bejNWN);
items3[1] = object;
if (value4) {
if (value5) {
object = [];
arraySpread(object, ignoredUserIds2, arraySpread(object, blockedUserIds2, 0, undefined), undefined);
value8 = object.slice(0, 2);
unshift = items3.unshift;
object2 = {};
guild_id = channel?.guild_id;
object2.icon = <UserCalloutAvatars userIds={value8} guildId={guild_id} />;
getUserCalloutRowTextBinding = getUserCalloutRowText;
guild_id = channel?.guild_id;
object2.label = getUserCalloutRowTextBinding({calledOutUserIds: value8, totalUsers: object.length,
channelId: channelId, guildId: guild_id});
Reflect.apply(unshift, items3, [object2]);
} else {
object = [];
if (value4) {
arraySpread(object, blockedUserIds2, 0, undefined);
r14 = object.slice(0, 2);
} else {
arraySpread(object, ignoredUserIds2, 0, undefined);
r14 = object.slice(0, 2);
}
length = value4 ? blockedUserIds2.length : ignoredUserIds2.length;
unshift = items3.unshift;
object = {};
guild_id = channel?.guild_id;
object.icon = <UserCalloutAvatars userIds={r14} guildId={guild_id} />;
getUserCalloutRowTextBinding = getUserCalloutRowText;
guild_id = channel?.guild_id;
object.label = getUserCalloutRowTextBinding({calledOutUserIds: r14, totalUsers: length,
channelId: channelId,
guildId: guild_id});
Reflect.apply(unshift, items3, [object]);
}
} else {
object = [];
if (value4) {
arraySpread(object, blockedUserIds2, 0, undefined);
r14 = object.slice(0, 2);
} else {
arraySpread(object, ignoredUserIds2, 0, undefined);
r14 = object.slice(0, 2);
}
length = value4 ? blockedUserIds2.length : ignoredUserIds2.length;
unshift = items3.unshift;
object = {};
guild_id = channel?.guild_id;
object.icon = <UserCalloutAvatars userIds={r14} guildId={guild_id} />;
getUserCalloutRowTextBinding = getUserCalloutRowText;
guild_id = channel?.guild_id;
object.label = getUserCalloutRowTextBinding({calledOutUserIds: r14, totalUsers: length, channelId: channelId,
guildId: guild_id});
Reflect.apply(unshift, items3, [object]);
}
const ActionSheet = (require(6805) /* metro dependency 6805: ActionSheetNative */).ActionSheet;
const items2 = [<Image source={importDefault(11300) /* metro dependency 11300 */} style={styles.headerImage} />];
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
items2[1] = <View><Text variant="heading-xl/bold" color="mobile-text-heading-primary" style={styles.title}>{intl.string((require(1244) /* metro dependency 1244: indexNative */).t['mwJJ+f'])}</Text><Text variant="text-md/medium" color="text-default" style={styles.description}><BlockedUserInGDMDescription numOfBlockedUsers={blockedUserIds.length} numOfIgnoredUsers={ignoredUserIds.length} /></Text></View>;
const TableRowGroup = (require(6231) /* metro dependency 6231: TableRowGroupNative */).TableRowGroup;
items2[2] = <View style={styles.tableGroup}><TableRowGroup hasIcons>{items3.map(_fun96432)}</TableRowGroup></View>;
const Button = (require(4578) /* metro dependency 4578: ButtonNative */).Button;
const object3 = {size: 'lg', onPress: onPress_96433};
string = intl.string;
const I4q1kA = (require(1244) /* metro dependency 1244: indexNative */).t.I4q1kA;
object3.text = Reflect.apply(string, intl, [I4q1kA]);
const button = <Button {...object3} />;
const buttonProps = {'size': 'lg', 'variant': 'secondary', onPress: onPress_96434};
string = intl.string;
const DRJhmT = (require(1244) /* metro dependency 1244: indexNative */).t.DRJhmT;
buttonProps.text = Reflect.apply(string, intl, [DRJhmT]);
items2[3] = <View style={styles.buttons}>{button}<Button {...buttonProps} /></View>;
return (
<ActionSheet startExpanded>
<View style={styles.container}>
{items2}
</View>
</ActionSheet>
);
}
function renderUsername(a0) { // fn#96418, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12773:816, owner: getUserCalloutRowText.renderUsername, offset: 0x0215d05a, size: 99 bytes, params: 2, frame: 19
let value = environment.__proto__;
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
value = importDefault(4617) /* metro dependency 4617: NicknameUtils */;
const getName = value.getName;
return (
<Text variant="text-md/semibold">
{Reflect.apply(getName, value, [guildId, channelId, a0])}
</Text>
);
}
function getUserCalloutRowTextUsernameHook1() { // fn#96419, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12773:963, owner: getUserCalloutRowText.usernameHook1, offset: 0x0215d0bd, size: 26 bytes, params: 1, frame: 11
return renderUsername(env0_2[0]);
}
function getUserCalloutRowTextUsernameHook2() { // fn#96420, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12773:1002, owner: getUserCalloutRowText.usernameHook2, offset: 0x0215d0d7, size: 27 bytes, params: 1, frame: 11
return renderUsername(env0_2[1]);
}
function _fun96427() { // fn#96427, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12773:1487, offset: 0x0215d255, size: 28 bytes, params: 1, frame: 11
return userIds.map(function(a0) {
return UserStore.getUser(a0);
});
}
function _fun96432({icon, label}, a1) { // fn#96432, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12773:4041, offset: 0x0215da20, size: 102 bytes, params: 3, frame: 19
const TableRow = (require(6238) /* metro dependency 6238: TableRowNative */).TableRow;
return (
<TableRow
icon={<View style={styles.icon}>{icon}</View>}
label={label}
key={a1}
/>
);
}
function BlockedUserInGdmActionSheetOnPress() { // fn#96433, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12773:4206, owner: BlockedUserInGdmActionSheet.onPress, offset: 0x0215da86, size: 184 bytes, params: 1, frame: 19
(importDefault(4080) /* metro dependency 4080: ActionSheetActionCreators */).hideActionSheet();
const sharedSpacesWarningActionCreatorsModule = require(12585) /* metro dependency 12585: SharedSpacesWarningActionCreators */;
const dismissGdmBlockedUserWarning = sharedSpacesWarningActionCreatorsModule.dismissGdmBlockedUserWarning;
const channelIdBinding = channelId;
Reflect.apply(dismissGdmBlockedUserWarning, sharedSpacesWarningActionCreatorsModule, [channelIdBinding]);
(importDefault(4603) /* metro dependency 4603: ChannelActionCreators */).closePrivateChannel(channelIdBinding, true,
true);
const defaultImport3 = importDefault(683) /* metro dependency 683: AnalyticsUtils */;
const track = defaultImport3.track;
const GDM_BLOCKED_USER_WARNING_ENGAGEMENT = AnalyticEvents.GDM_BLOCKED_USER_WARNING_ENGAGEMENT;
const CLICK_TO_LEAVE = BlockWarningEngagements.CLICK_TO_LEAVE;
const ACTION_SHEET = GdmWarningMedium.ACTION_SHEET;
Reflect.apply(track, defaultImport3, [GDM_BLOCKED_USER_WARNING_ENGAGEMENT, {action: CLICK_TO_LEAVE,
channel_id: channelIdBinding, warning_medium: ACTION_SHEET, ignored_user_ids: ignoredUserIds,
blocked_user_ids: blockedUserIds}]);
}
function BlockedUserInGdmActionSheetOnPress_96434() { // fn#96434, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12773:4583, owner: BlockedUserInGdmActionSheet.onPress, offset: 0x0215db3e, size: 157 bytes, params: 1, frame: 18
(importDefault(4080) /* metro dependency 4080: ActionSheetActionCreators */).hideActionSheet();
const sharedSpacesWarningActionCreatorsModule = require(12585) /* metro dependency 12585: SharedSpacesWarningActionCreators */;
const dismissGdmBlockedUserWarning = sharedSpacesWarningActionCreatorsModule.dismissGdmBlockedUserWarning;
const channelIdBinding = channelId;
Reflect.apply(dismissGdmBlockedUserWarning, sharedSpacesWarningActionCreatorsModule, [channelIdBinding]);
const defaultImport2 = importDefault(683) /* metro dependency 683: AnalyticsUtils */;
const track = defaultImport2.track;
const GDM_BLOCKED_USER_WARNING_ENGAGEMENT = AnalyticEvents.GDM_BLOCKED_USER_WARNING_ENGAGEMENT;
const CLICK_TO_STAY = BlockWarningEngagements.CLICK_TO_STAY;
const ACTION_SHEET = GdmWarningMedium.ACTION_SHEET;
Reflect.apply(track, defaultImport2, [GDM_BLOCKED_USER_WARNING_ENGAGEMENT, {action: CLICK_TO_STAY,
channel_id: channelIdBinding, warning_medium: ACTION_SHEET, ignored_user_ids: ignoredUserIds,
blocked_user_ids: blockedUserIds}]);
}
@@ -0,0 +1,127 @@
/* Metro module 12587; source: modules/shared_space_warnings/native/BlockedUserInVoiceChannelActionSheet.tsx; dependencies: [31, 27, 1379, 3793, 1878, 12581, 12584, 661, 33, 4501, 697, 566, 1244, 6805, 11300, 4573, 6231, 6238, 1305, 11441, 10280, 4578, 4080, 4796, 683, 2] */
function _fun96440(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#96440, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12777:6, offset: 0x0215df32, size: 524 bytes, params: 8, frame: 23
var object4;
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
importAll(31) /* metro dependency 31 */;
let value = require(27) /* metro dependency 27 */;
const env0_3 = value.Image;
const env0_4 = value.View;
const channelStore = importDefault(1379) /* metro dependency 1379: ChannelStore */;
const relationshipStore = importDefault(3793) /* metro dependency 3793: RelationshipStore */;
const userStore = importDefault(1878) /* metro dependency 1878: UserStore */;
const env0_8 = (require(12581) /* metro dependency 12581: SharedSpacesWarningStore */).setDismissalTimeForUser;
value = require(12584) /* metro dependency 12584: SharedSpaceWarningConstants */;
const env0_9 = value.BlockWarningEngagements;
const env0_10 = value.VoiceChannelWarningSurfaces;
const env0_11 = (require(661) /* metro dependency 661: Constants */).AnalyticEvents;
value = require(33) /* metro dependency 33 */;
const env0_12 = value.Fragment;
const env0_13 = value.jsxs;
const env0_14 = value.jsx;
value = require(4501) /* metro dependency 4501: createStyles */;
const createStyles = value.createStyles;
object4 = {};
const object5 = {};
const PX_12 = (importDefault(697) /* metro dependency 697: native */).space.PX_12;
object5.paddingTop = PX_12;
const PX_8 = (importDefault(697) /* metro dependency 697: native */).space.PX_8;
object5.gap = PX_8;
object4.container = object5;
object4.headerImage = {'alignSelf': 'center', 'width': 73, 'height': 86};
const object6 = {};
const PX_4 = (importDefault(697) /* metro dependency 697: native */).space.PX_4;
object6.gap = PX_4;
let PX_16 = (importDefault(697) /* metro dependency 697: native */).space.PX_16;
object6.marginBottom = PX_16;
object4.headerText = object6;
object4.centerText = {'textAlign': 'center', 'alignSelf': 'center'};
PX_16 = (importDefault(697) /* metro dependency 697: native */).space.PX_16;
object4.buttonGroup = {paddingVertical: PX_16, gap: 8};
const env0_15 = Reflect.apply(createStyles, value, [object4]);
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/shared_space_warnings/native/BlockedUserInVoiceChannelActionSheet.tsx');
exports.default = BlockedUserInVoiceChannelActionSheet;
}
function BlockedUserInVoiceChannelActionSheet({channelId, blockedUserId}) { // fn#96441, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12777:779, offset: 0x0215e13e, size: 1334 bytes, params: 2, frame: 36
var object2;
var items4;
var items2;
const styles = useStyles();
const value3 = (require(566) /* metro dependency 566: flux */).useStateFromStores([RelationshipStore], function() {
return RelationshipStore.isBlocked(blockedUserId);
});
const channel = (require(566) /* metro dependency 566: flux */).useStateFromStores([ChannelStore], function() {
return ChannelStore.getChannel(channelId);
});
const user = UserStore.getUser(blockedUserId);
const jsxRuntimeEnv0_12Binding = jsxRuntimeEnv0_12;
object2 = {};
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
let string = intl.string;
const t = (require(1244) /* metro dependency 1244: indexNative */).t;
if (value3) {
items2 = [Reflect.apply(string, intl, [t.cpgfFk]), '\n'];
string = intl.string;
items2[2] = Reflect.apply(string, intl, [t.UKQ4Cn]);
object2.children = items2;
} else {
items4 = [Reflect.apply(string, intl, [t.xj3j47]), '\n'];
string = intl.string;
items4[2] = Reflect.apply(string, intl, [t.wWueRW]);
object2.children = items4;
}
const fragment = ((Fragment) => <Fragment {...object2} />)(jsxRuntimeEnv0_12Binding);
const ActionSheet = (require(6805) /* metro dependency 6805: ActionSheetNative */).ActionSheet;
const items3 = [<Image source={importDefault(11300) /* metro dependency 11300 */} style={styles.headerImage} />];
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
items3[1] = <View style={styles.headerText}><Text variant="heading-xl/bold" color="mobile-text-heading-primary" style={styles.centerText}>{intl.string((require(1244) /* metro dependency 1244: indexNative */).t['1/gpFh'])}</Text><Text variant="text-md/medium" style={styles.centerText}>{fragment}</Text></View>;
const TableRowGroup = (require(6231) /* metro dependency 6231: TableRowGroupNative */).TableRowGroup;
const TableRow = (require(6238) /* metro dependency 6238: TableRowNative */).TableRow;
const r15 = user != null ? ((Avatar) => <Avatar size={(require(1305) /* metro dependency 1305: native */).AvatarSizes.SMALL} user={user} guildId={channel?.guild_id} />)((require(1305) /* metro dependency 1305: native */).Avatar) : ((UserIcon) => <UserIcon />)((require(11441) /* metro dependency 11441: UserIcon */).UserIcon);
const formatToPlainString = intl.formatToPlainString;
const w0YvUo = (require(1244) /* metro dependency 1244: indexNative */).t.w0YvUo;
const username = user?.username;
const tableRow = <TableRow icon={r15} label={Reflect.apply(formatToPlainString, intl, [w0YvUo,
{userName: username}])} />;
const MicrophoneIcon = (require(10280) /* metro dependency 10280: MicrophoneIcon */).MicrophoneIcon;
items3[2] = <TableRowGroup hasIcons>{tableRow}<TableRow icon={<MicrophoneIcon />} label={intl.string((require(1244) /* metro dependency 1244: indexNative */).t['+4O9nX'])} /></TableRowGroup>;
const Button = (require(4578) /* metro dependency 4578: ButtonNative */).Button;
const button = <Button size="lg" onPress={onPress_96444} text={intl.string((require(1244) /* metro dependency 1244: indexNative */).t['Y56/oK'])} />;
items3[3] = <View style={styles.buttonGroup}>{button}<Button size="lg" variant="secondary" onPress={onPress_96445} text={intl.string((require(1244) /* metro dependency 1244: indexNative */).t.bCcJST)} /></View>;
return (
<ActionSheet startExpanded>
<View style={styles.container}>
{items3}
</View>
</ActionSheet>
);
}
function BlockedUserInVoiceChannelActionSheetOnPress() { // fn#96444, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12777:2075, owner: BlockedUserInVoiceChannelActionSheet.onPress, offset: 0x0215e68f, size: 197 bytes, params: 1, frame: 19
(importDefault(4080) /* metro dependency 4080: ActionSheetActionCreators */).hideActionSheet();
(importDefault(4796) /* metro dependency 4796: SelectedChannelActionCreators */).disconnect();
const defaultImport3 = importDefault(683) /* metro dependency 683: AnalyticsUtils */;
const track = defaultImport3.track;
const VOICE_CHANNEL_BLOCKED_USER_WARNING_ENGAGEMENT = AnalyticEvents.VOICE_CHANNEL_BLOCKED_USER_WARNING_ENGAGEMENT;
const CLICK_TO_LEAVE = BlockWarningEngagements.CLICK_TO_LEAVE;
const POST_JOIN_SHEET = VoiceChannelWarningSurfaces.POST_JOIN_SHEET;
Reflect.apply(track, defaultImport3, [VOICE_CHANNEL_BLOCKED_USER_WARNING_ENGAGEMENT, {action: CLICK_TO_LEAVE,
channel_id: channelId, blocked_user_ids: env0_2 ? [blockedUserId] : [],
ignored_user_ids: env0_2 ? [] : [blockedUserId], warning_surface: POST_JOIN_SHEET}]);
}
function BlockedUserInVoiceChannelActionSheetOnPress_96445() { // fn#96445, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12777:2426, owner: BlockedUserInVoiceChannelActionSheet.onPress, offset: 0x0215e754, size: 188 bytes, params: 1, frame: 19
(importDefault(4080) /* metro dependency 4080: ActionSheetActionCreators */).hideActionSheet();
setDismissalTimeForUser(blockedUserId);
const defaultImport2 = importDefault(683) /* metro dependency 683: AnalyticsUtils */;
const track = defaultImport2.track;
const VOICE_CHANNEL_BLOCKED_USER_WARNING_ENGAGEMENT = AnalyticEvents.VOICE_CHANNEL_BLOCKED_USER_WARNING_ENGAGEMENT;
const CLICK_TO_STAY = BlockWarningEngagements.CLICK_TO_STAY;
const POST_JOIN_SHEET = VoiceChannelWarningSurfaces.POST_JOIN_SHEET;
Reflect.apply(track, defaultImport2, [VOICE_CHANNEL_BLOCKED_USER_WARNING_ENGAGEMENT, {action: CLICK_TO_STAY,
channel_id: channelId, blocked_user_ids: env0_2 ? [blockedUserId] : [],
ignored_user_ids: env0_2 ? [] : [blockedUserId], warning_surface: POST_JOIN_SHEET}]);
}