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,9 @@
/* Metro module 15267; source: modules/action_sheet/native/components/ActionSheetPresenter.tsx; dependencies: [2, 12766] */
function _fun116728(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#116728, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15464:6, offset: 0x02495046, size: 96 bytes, params: 8, frame: 17
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/action_sheet/native/components/ActionSheetPresenter.tsx');
const ActionSheetPresenter = (require(12766) /* metro dependency 12766: ActionSheetPresenterNative */).ActionSheetPresenter;
exports.default = ActionSheetPresenter;
}
@@ -0,0 +1,9 @@
/* Metro module 11710; source: modules/action_sheet/native/components/BottomSheetTextInput.tsx; dependencies: [2, 9101] */
function _fun89775(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#89775, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11896:6, offset: 0x0201dd0d, size: 96 bytes, params: 8, frame: 17
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/action_sheet/native/components/BottomSheetTextInput.tsx');
const BottomSheetTextInput = (require(9101) /* metro dependency 9101: BottomSheetTextInputNative */).BottomSheetTextInput;
exports.default = BottomSheetTextInput;
}
@@ -0,0 +1,29 @@
/* Metro module 11205; source: modules/action_sheet/native/components/ContextMenuSubmenuActionSheetHeader.tsx; dependencies: [31, 27, 33, 4501, 9067, 1244, 2] */
function _fun85621(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#85621, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11391:6, offset: 0x01f75f5b, size: 199 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_2 = (require(27) /* metro dependency 27 */).View;
const env0_3 = (require(33) /* metro dependency 33 */).jsx;
const env0_4 = (require(4501) /* metro dependency 4501: createStyles */).createStyles({headerContainer: {'paddingVertical': 12,
'paddingHorizontal': 16, 'alignItems': 'flex-start'}});
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/action_sheet/native/components/ContextMenuSubmenuActionSheetHeader.tsx');
exports.default = ContextMenuSubmenuActionSheetHeader;
}
function ContextMenuSubmenuActionSheetHeader({onBack}) { // fn#85622, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11391:363, offset: 0x01f76022, size: 158 bytes, params: 2, frame: 21
const styles = useStyles();
const ActionSheetHeaderPressableText = (require(9067) /* metro dependency 9067: ActionSheetHeaderPressableTextNative */).ActionSheetHeaderPressableText;
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
return (
<View style={styles.headerContainer}>
<ActionSheetHeaderPressableText
label={intl.string((require(1244) /* metro dependency 1244: indexNative */).t['13/7kX'])}
onPress={onBack ?? (function() {
})}
/>
</View>
);
}
@@ -0,0 +1,110 @@
/* Metro module 11409; source: modules/action_sheet/native/components/EmojiRow.tsx; dependencies: [31, 27, 6276, 33, 4501, 4080, 4081, 7151, 3795, 7067, 8217, 3860, 697, 10998, 11000, 9837, 11410, 6789, 2] */
function _fun87405(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#87405, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11595:6, offset: 0x01fbd6cb, size: 252 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 env0_4 = (require(6276) /* metro dependency 6276: ActionSheetConstants */).ACTION_SHEET_MAX_WIDTH;
const value = require(33) /* metro dependency 33 */;
const env0_5 = value.jsx;
const env0_6 = value.jsxs;
const env0_7 = (require(4501) /* metro dependency 4501: createStyles */).createStyles({emojiRowContainer: {'flexDirection': 'column',
'justifyContent': 'center', 'alignItems': 'center'}, emojiRow: {'height': 52, 'alignSelf': 'stretch',
'flexDirection': 'row', 'justifyContent': 'space-between', 'alignItems': 'center', 'marginTop': 0,
'marginBottom': 0}});
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/action_sheet/native/components/EmojiRow.tsx');
exports.default = _default_87406;
}
function _default_87406({message, channel}) { // fn#87406, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11595:440, offset: 0x01fbd7c7, size: 527 bytes, params: 2, frame: 24
const useTokenModule = require(3860) /* metro dependency 3860: useToken */;
let useToken = useTokenModule.useToken;
const EMOJI_ROW_EMOJI_SIZE = (importDefault(697) /* metro dependency 697: native */).modules.mobile.EMOJI_ROW_EMOJI_SIZE;
const env0_2 = Reflect.apply(useToken, useTokenModule, [EMOJI_ROW_EMOJI_SIZE]);
const moduleValue2 = useTokenModule;
useToken = moduleValue2.useToken;
const EMOJI_ROW_EMOJI_FONT_SIZE = (importDefault(697) /* metro dependency 697: native */).modules.mobile.EMOJI_ROW_EMOJI_FONT_SIZE;
const env0_3 = Reflect.apply(useToken, moduleValue2, [EMOJI_ROW_EMOJI_FONT_SIZE]);
const moduleValue3 = useTokenModule;
useToken = moduleValue3.useToken;
const EMOJI_ROW_EMOJI_LINE_HEIGHT = (importDefault(697) /* metro dependency 697: native */).modules.mobile.EMOJI_ROW_EMOJI_LINE_HEIGHT;
const env0_4 = Reflect.apply(useToken, moduleValue3, [EMOJI_ROW_EMOJI_LINE_HEIGHT]);
const moduleValue4 = useTokenModule;
useToken = moduleValue4.useToken;
const EMOJI_ROW_EMOJI_CONTAINER_SIZE = (importDefault(697) /* metro dependency 697: native */).modules.mobile.EMOJI_ROW_EMOJI_CONTAINER_SIZE;
const value2 = Reflect.apply(useToken, moduleValue4, [EMOJI_ROW_EMOJI_CONTAINER_SIZE]);
const moduleValue5 = useTokenModule;
useToken = moduleValue5.useToken;
const EMOJI_ROW_EMOJI_MIN_SPACING = (importDefault(697) /* metro dependency 697: native */).modules.mobile.EMOJI_ROW_EMOJI_MIN_SPACING;
const value4 = (require(10998) /* metro dependency 10998: useEmojisForReactionRow */).useEmojisForReactionRow(channel,
ACTION_SHEET_MAX_WIDTH, value2 + Reflect.apply(useToken, moduleValue5, [EMOJI_ROW_EMOJI_MIN_SPACING]));
const styles = useStyles();
const value5 = value4.map(_fun87407);
const EmojiPickerRowButton = (require(11000) /* metro dependency 11000: EmojiReactionRowButton */).EmojiPickerRowButton;
const view = <View style={styles.emojiRow}>{value5}<EmojiPickerRowButton emojiContainerSize={value2} onPress={onPress_87409} /></View>;
const DoubleTapEmojiEditNudge = (require(11410) /* metro dependency 11410: DoubleTapEmojiEditNudge */).DoubleTapEmojiEditNudge;
const MESSAGE_LONG_PRESS_MENU = (importDefault(6789) /* metro dependency 6789: AnalyticsLocation */).MESSAGE_LONG_PRESS_MENU;
return (
<View style={styles.emojiRowContainer}>
{view}
<DoubleTapEmojiEditNudge location={MESSAGE_LONG_PRESS_MENU} />
</View>
);
}
function _fun87407(a0, a1) { // fn#87407, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11595:966, offset: 0x01fbd9d6, size: 134 bytes, params: 3, frame: 20
var environment;
const env0_0 = a0;
let value = environment.__proto__;
const EmojiReactionRowButton = (require(11000) /* metro dependency 11000: EmojiReactionRowButton */).EmojiReactionRowButton;
const emojiReactionRowButtonProps = {emoji: a0, onPress: onPress_87408, emojiSize: env0_2, emojiFontSize: env0_3,
emojiLineHeight: env0_4, emojiContainerSize: env0_5};
value = require(11000) /* metro dependency 11000: EmojiReactionRowButton */;
const getEmojiKey = value.getEmojiKey;
return <EmojiReactionRowButton {...emojiReactionRowButtonProps} key={Reflect.apply(getEmojiKey, value, [a0, a1])} />;
}
function _default_87406OnPress() { // fn#87409, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11595:1486, owner: _default_87406.onPress, offset: 0x01fbdb4c, size: 80 bytes, params: 1, frame: 18
let value = environment.__proto__;
value = require(9837) /* metro dependency 9837: ReactionUtils */;
const handleAddNewReactions = value.handleAddNewReactions;
const channelBinding = channel;
const id = message.id;
const ReactionLocations = (require(7151) /* metro dependency 7151: ReactionActionCreators */).ReactionLocations;
const MESSAGE = ReactionLocations.MESSAGE;
return Reflect.apply(handleAddNewReactions, value, [channelBinding, id, MESSAGE]);
}
function onPress_87408() { // fn#87408, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11595:1024, offset: 0x01fbda5c, size: 240 bytes, params: 1, frame: 22
var moduleValue;
var moduleValue2;
var addReaction;
var channel_id;
var id;
var moduleValue3;
var focusMessage;
let value = environment.__proto__;
const messageBinding = message;
const binding = env0_0;
value = environment.__proto__.__proto__;
(importDefault(4080) /* metro dependency 4080: ActionSheetActionCreators */).hideActionSheet();
if (binding != null) {
moduleValue = require(4081) /* metro dependency 4081: HapticUtilsNative */;
moduleValue.triggerHapticFeedback((require(4081) /* metro dependency 4081: HapticUtilsNative */).HapticFeedbackTypes.IMPACT_LIGHT);
moduleValue2 = require(7151) /* metro dependency 7151: ReactionActionCreators */;
addReaction = moduleValue2.addReaction;
channel_id = messageBinding.channel_id;
id = messageBinding.id;
moduleValue3 = require(3795) /* metro dependency 3795: ReactionUtils */;
Reflect.apply(addReaction, moduleValue2, [channel_id, id, moduleValue3.toReactionEmoji(binding)]);
value = importDefault(7067) /* metro dependency 7067: MessageActionCreators */;
focusMessage = value.focusMessage;
channel_id = messageBinding.channel_id;
id = messageBinding.id;
Reflect.apply(focusMessage, value, [{channelId: channel_id, messageId: id}]);
value = require(8217) /* metro dependency 8217: DoubleTapToReactUtils */;
value.initializeDoubleTapEmojiAndUpsell(binding);
}
}
@@ -0,0 +1,24 @@
/* Metro module 11408; source: modules/action_sheet/native/components/EmojiRowUtils.tsx; dependencies: [661, 1391, 2] */
function _fun87403(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#87403, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11594:6, offset: 0x01fbd5ac, size: 137 bytes, params: 8, frame: 18
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const constantsModule = require(661) /* metro dependency 661: Constants */;
const env0_2 = constantsModule.MessageFlags;
const env0_3 = constantsModule.MessageStates;
const env0_4 = constantsModule.MessageTypes;
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/action_sheet/native/components/EmojiRowUtils.tsx');
exports.shouldShowEmojiRow = shouldShowEmojiRow;
}
function shouldShowEmojiRow(a0, a1, a2) { // fn#87404, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11594:269, offset: 0x01fbd635, size: 150 bytes, params: 4, frame: 15
var moduleValue;
let r0 = a0 && a2 && a1.state !== MessageStates.SEND_FAILED;
r0 = r0 && a1.state !== MessageStates.SENDING && a1.type !== MessageTypes.THREAD_STARTER_MESSAGE;
if (r0) {
moduleValue = require(1391) /* metro dependency 1391: FlagUtils */;
r0 = !moduleValue.hasFlag(a1.flags, MessageFlags.EPHEMERAL);
}
return r0;
}
@@ -0,0 +1,527 @@
/* Metro module 11233; source: modules/action_sheet/native/components/LongPressForumPostActionSheet.tsx; dependencies: [31, 3785, 3786, 6898, 1226, 1867, 661, 1386, 33, 11234, 1244, 8999, 5097, 4054, 7153, 9216, 4076, 4066, 11237, 6705, 9646, 11007, 21, 6789, 7002, 8148, 11239, 4080, 11161, 1962, 4056, 9835, 10629, 10936, 11241, 11243, 11245, 4647, 4071, 7067, 1305, 8772, 6797, 3856, 566, 6896, 6860, 9619, 3829, 4805, 11247, 6819, 6805, 1581, 11251, 6807, 2] */
function _fun85864(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#85864, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11419:6, offset: 0x01f7f806, size: 292 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 lurkingStore = importDefault(3785) /* metro dependency 3785: LurkingStore */;
const joinedThreadsStore = importDefault(3786) /* metro dependency 3786: JoinedThreadsStore */;
const threadMessageStore = importDefault(6898) /* metro dependency 6898: ThreadMessageStore */;
const authenticationStore = importDefault(1226) /* metro dependency 1226: AuthenticationStore */;
const guildStore = importDefault(1867) /* metro dependency 1867: GuildStore */;
const constantsModule = require(661) /* metro dependency 661: Constants */;
const env0_8 = constantsModule.AnalyticsObjectTypes;
const env0_9 = constantsModule.AnalyticsObjects;
const env0_10 = constantsModule.AnalyticsSections;
const env0_11 = constantsModule.ChannelSettingsSections;
const env0_12 = (require(1386) /* metro dependency 1386: ChannelConstants */).ChannelFlags;
const env0_13 = (require(33) /* metro dependency 33 */).jsx;
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/action_sheet/native/components/LongPressForumPostActionSheet.tsx');
exports.default = ForumPostLongPressActionSheet;
}
function ForumPostLongPressActionSheet({thread, parentChannel, onClose}) { // fn#85865, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11419:420, offset: 0x01f7f92a, size: 860 bytes, params: 2, frame: 35
const env0_2 = thread.getGuildId();
const guild = (require(566) /* metro dependency 566: flux */).useStateFromStores([GuildStore], _fun85866);
const value3 = (require(566) /* metro dependency 566: flux */).useStateFromStores([JoinedThreadsStore], function() {
return JoinedThreadsStore.hasJoined(thread.id);
});
const value4 = (require(566) /* metro dependency 566: flux */).useStateFromStores([JoinedThreadsStore], function() {
return JoinedThreadsStore.isMuted(thread.id);
});
const value5 = (require(566) /* metro dependency 566: flux */).useStateFromStores([LurkingStore], _fun85869);
const forumPostDataLoaderModule = require(6896) /* metro dependency 6896: ForumPostDataLoader */;
const useFirstForumPostMessage = forumPostDataLoaderModule.useFirstForumPostMessage;
const firstMessage = Reflect.apply(useFirstForumPostMessage, forumPostDataLoaderModule, [thread]).firstMessage;
const value6 = (require(6860) /* metro dependency 6860: ThreadHooks */).useIsThreadModerator(parentChannel);
const value7 = (require(6860) /* metro dependency 6860: ThreadHooks */).useCanManageThread(thread);
const value8 = (require(6860) /* metro dependency 6860: ThreadHooks */).useCanUnarchiveThread(thread);
const value9 = (require(9619) /* metro dependency 9619: ForumHooks */).useExistingPin(thread);
const value10 = (require(566) /* metro dependency 566: flux */).useStateFromStores([ThreadMessageStore], _fun85870);
const DeveloperMode = (require(3829) /* metro dependency 3829: UserSettings */).DeveloperMode;
const value11 = DeveloperMode.useSetting();
const id2 = (require(566) /* metro dependency 566: flux */).useStateFromStores([AuthenticationStore], function() {
return AuthenticationStore.getId();
});
const id = firstMessage == null ? undefined : firstMessage.author.id;
const value12 = (importDefault(4805) /* metro dependency 4805: useChannelName */)(thread, true);
const value13 = (importDefault(11247) /* metro dependency 11247: useMobileChannelFavoriteActions */)(thread,
'ForumPostLongPressActionSheet');
const r8 = guild != null ? ((Component) => <Component guild={guild} size={(require(6819) /* metro dependency 6819: GuildIcon */).GuildIconSizes.LARGE} />)(importDefault(6819) /* metro dependency 6819: GuildIcon */) : ((Avatar) => <Avatar size={(require(1305) /* metro dependency 1305: native */).AvatarSizes.LARGE} channel={thread} />)((require(1305) /* metro dependency 1305: native */).Avatar);
const value16 = _fun85872({thread: thread, parentChannel: parentChannel, hasJoinedPost: value3, muted: value4,
isModerator: value6, isAuthor: id2 === id, canManageThread: value7, developerModeEnabled: value11,
existingPin: value9, messageCount: value10, canUnarchiveThread: value8, isLurking: value5, favorites: value13});
const ActionSheet = (require(6805) /* metro dependency 6805: ActionSheetNative */).ActionSheet;
const actionSheetProps = {showGradient: true,
startExpanded: (require(1581) /* metro dependency 1581: MetaQuestUtilsAndroid */).isMetaQuest()};
const ActionSheetIconHeader = (require(11251) /* metro dependency 11251: ActionSheetIconHeaderNative */).ActionSheetIconHeader;
actionSheetProps.header = <ActionSheetIconHeader title={value12} icon={r8} />;
return (
<ActionSheet {...actionSheetProps}>
{value16.map(_fun85893)}
</ActionSheet>
);
}
function _fun85866() { // fn#85866, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11419:555, offset: 0x01f7fc86, size: 27 bytes, params: 1, frame: 11
return GuildStore.getGuild(env0_2);
}
function _fun85869() { // fn#85869, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11419:726, offset: 0x01f7fce1, size: 40 bytes, params: 1, frame: 12
return env0_2 != null && LurkingStore.isLurking(env0_2);
}
function _fun85870() { // fn#85870, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11419:976, offset: 0x01f7fd09, size: 46 bytes, params: 1, frame: 11
const value = environment.__proto__;
return ThreadMessageStore.getCount(thread.id) ?? 0;
}
function _fun85872({thread, hasJoinedPost, muted, isModerator, isAuthor, canManageThread, developerModeEnabled, existingPin, parentChannel, messageCount, canUnarchiveThread, isLurking, favorites}) { // fn#85872, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11419:1351, offset: 0x01f7fd37, size: 2281 bytes, params: 2, frame: 36
var r10;
var buttons;
var object;
const BellIcon = (require(9216) /* metro dependency 9216: BellIcon */).BellIcon;
var object2;
var object18;
var object19;
var object21;
var object22;
var object23;
var object24;
var object25;
var object26;
var object27;
const PinIcon = (require(11245) /* metro dependency 11245: PinIcon */).PinIcon;
const TrashIcon = (require(4071) /* metro dependency 4071: TrashIcon */).TrashIcon;
var object28;
const items2 = [];
const archived = thread.threadMetadata?.archived;
const locked = thread.threadMetadata?.locked;
const hasFlag = thread.hasFlag;
const PINNED = ChannelFlags.PINNED;
const hasFlag2 = Reflect.apply(hasFlag, thread, [PINNED]);
const value3 = (importDefault(11234) /* metro dependency 11234: buildFavoritesSectionButtonsNative */)(favorites);
if (value3 != null) {
items2.push({sectionKey: 'favorites', buttons: [value3]});
}
let push = items2.push;
const object29 = {};
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
let string = intl.string;
const t = (require(1244) /* metro dependency 1244: indexNative */).t;
object29.label = Reflect.apply(string, intl, [t.e6RscS]);
const EyeIcon = (require(8999) /* metro dependency 8999: EyeIcon */).EyeIcon;
object29.IconComponent = EyeIcon;
object29.onPress = function() {
require(dependencyMap[12]).ack(thread.id, {object: AnalyticsObjects.MARK_FORUM_POST_AS_READ_BUTTON,
objectType: AnalyticsObjectTypes.ACK_MANUAL}, true, true);
};
Reflect.apply(push, items2, [{sectionKey: 'mark-as-read', buttons: [object29]}]);
const object30 = {sectionKey: 'channel-actions', buttons: []};
if (!isLurking) {
buttons = object30.buttons;
push = buttons.push;
object = {};
string = intl.string;
if (hasJoinedPost) {
object.label = Reflect.apply(string, intl, [t['2LsZdT']]);
object.IconComponent = (require(4054) /* metro dependency 4054: UserMinusIcon */).UserMinusIcon;
object.onPress = onPress_85874;
Reflect.apply(push, buttons, [object]);
} else {
object.label = Reflect.apply(string, intl, [t.ihLPiO]);
object.IconComponent = BellIcon;
object.onPress = onPress_85875;
Reflect.apply(push, buttons, [object]);
}
}
if (archived) {
if (canUnarchiveThread) {
buttons = object30.buttons;
push = buttons.push;
object18 = {};
object18.label = intl.string(t.cnRubV);
object18.IconComponent = (require(4076) /* metro dependency 4076: ClockIcon */).ClockIcon;
object18.onPress = onPress_85876;
Reflect.apply(push, buttons, [object18]);
}
} else if (canManageThread) {
buttons = object30.buttons;
push = buttons.push;
object2 = {};
object2.label = intl.string(t.BTs4Kb);
object2.IconComponent = (require(4066) /* metro dependency 4066: XLargeIcon */).XLargeIcon;
object2.onPress = onPress_85877;
Reflect.apply(push, buttons, [object2]);
}
if (canManageThread) {
buttons = object30.buttons;
push = buttons.push;
object19 = {};
string = intl.string;
if (locked) {
object19.label = Reflect.apply(string, intl, [t['/OKSxp']]);
object19.IconComponent = (require(11237) /* metro dependency 11237: LockUnlockedIcon */).LockUnlockedIcon;
object19.onPress = onPress_85878;
Reflect.apply(push, buttons, [object19]);
} else {
object19.label = Reflect.apply(string, intl, [t['Ur/0Na']]);
object19.IconComponent = (require(6705) /* metro dependency 6705: LockIcon */).LockIcon;
object19.onPress = onPress_85879;
Reflect.apply(push, buttons, [object19]);
}
}
const value4 = !isModerator;
if (isAuthor && !(isModerator ? value4 : thread.isLockedThread())) {
buttons = object30.buttons;
push = buttons.push;
object21 = {};
object21.label = intl.string(t.NP1yHG);
object21.IconComponent = (require(9646) /* metro dependency 9646: PencilIcon */).PencilIcon;
object21.onPress = onPress_85880;
Reflect.apply(push, buttons, [object21]);
}
if (canManageThread) {
buttons = object30.buttons;
push = buttons.push;
object22 = {};
object22.label = intl.string(t.SGuVbR);
object22.IconComponent = (require(7002) /* metro dependency 7002: SettingsIcon */).SettingsIcon;
object22.onPress = onPress_85881;
Reflect.apply(push, buttons, [object22]);
if (parentChannel.availableTags.length > 0) {
buttons = object30.buttons;
push = buttons.push;
object23 = {};
object23.label = intl.string(t['436ZFw']);
object23.IconComponent = (require(11239) /* metro dependency 11239: TagsIcon */).TagsIcon;
object23.onPress = onPress_85882;
Reflect.apply(push, buttons, [object23]);
}
}
buttons = object30.buttons;
push = buttons.push;
const object31 = {};
string = intl.string;
const WqhZss = t.WqhZss;
object31.label = Reflect.apply(string, intl, [WqhZss]);
const LinkIcon = (require(4056) /* metro dependency 4056: LinkIcon */).LinkIcon;
object31.IconComponent = LinkIcon;
object31.onPress = function() {
var moduleValue = require(dependencyMap[31]);
var {guild_id, id} = thread;
moduleValue.handleCopyLinkForumPost(guild_id, id, {section: AnalyticsSections.CONTEXT_MENU});
};
Reflect.apply(push, buttons, [object31]);
items2.push(object30);
if (!isLurking) {
object24 = {sectionKey: 'notifications', buttons: []};
buttons = object24.buttons;
push = buttons.push;
object25 = {};
string = intl.string;
if (muted) {
object25.label = Reflect.apply(string, intl, [t['0JQfsP']]);
object25.IconComponent = BellIcon;
object25.onPress = onPress_85884;
Reflect.apply(push, buttons, [object25]);
} else {
object25.label = Reflect.apply(string, intl, [t['nP+Ykd']]);
object25.IconComponent = (require(10629) /* metro dependency 10629: BellSlashIcon */).BellSlashIcon;
object25.onPress = onPress_85885;
Reflect.apply(push, buttons, [object25]);
}
buttons = object24.buttons;
push = buttons.push;
object26 = {};
object26.label = intl.string(t.HcoRu0);
object26.IconComponent = (require(11241) /* metro dependency 11241: ChannelNotificationIcon */).ChannelNotificationIcon;
object26.onPress = onPress_85886;
object26.disableColor = true;
Reflect.apply(push, buttons, [object26]);
items2.push(object24);
}
const object32 = {sectionKey: 'admin-actions', buttons: []};
if (isModerator) {
buttons = object32.buttons;
push = buttons.push;
object27 = {};
string = intl.string;
if (hasFlag2) {
object27.label = Reflect.apply(string, intl, [t.trD8ao]);
object27.IconComponent = PinIcon;
object27.onPress = onPress_85887;
Reflect.apply(push, buttons, [object27]);
} else {
object27.label = Reflect.apply(string, intl, [t.EnaWhu]);
object27.IconComponent = PinIcon;
object27.onPress = onPress_85888;
Reflect.apply(push, buttons, [object27]);
}
}
if (isModerator) {
r10 = isAuthor && value4;
r10 = r10 && messageCount > 0;
buttons = object32.buttons;
push = buttons.push;
string = intl.string;
r10 = r10 ? Reflect.apply(string, intl, [t.xwMqD7]) : Reflect.apply(string, intl, [t.nEOg1N]);
Reflect.apply(push, buttons, [{label: r10, IconComponent: TrashIcon, onPress: onPress_85890}]);
} else if (isAuthor) {
r10 = isAuthor && value4;
r10 = r10 && messageCount > 0;
buttons = object32.buttons;
push = buttons.push;
string = intl.string;
r10 = r10 ? Reflect.apply(string, intl, [t.xwMqD7]) : Reflect.apply(string, intl, [t.nEOg1N]);
Reflect.apply(push, buttons, [{label: r10, IconComponent: TrashIcon, onPress: onPress_85890}]);
}
items2.push(object32);
if (developerModeEnabled) {
push = items2.push;
object28 = {};
object28.label = intl.string(t.DQ797g);
object28.IconComponent = (require(8772) /* metro dependency 8772: IdIcon */).IdIcon;
object28.onPress = onPress_85892;
Reflect.apply(push, items2, [{sectionKey: 'developer-actions', buttons: [object28]}]);
}
return items2;
}
function _fun85893({sectionKey, buttons}) { // fn#85893, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11419:6486, offset: 0x01f80efc, size: 97 bytes, params: 2, frame: 18
const ActionSheetRow = (require(6807) /* metro dependency 6807: ActionSheetRowNative */).ActionSheetRow;
const Group = ActionSheetRow.Group;
return (
<Group hasIcons key={sectionKey}>
{buttons.map(_fun85894)}
</Group>
);
}
function onPress_85874() { // fn#85874, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11419:2132, offset: 0x01f8067b, size: 52 bytes, params: 1, frame: 13
let value = environment.__proto__.__proto__;
value = importDefault(7153) /* metro dependency 7153: ThreadActionCreators */;
return value.leaveThread(thread, 'Context Menu');
}
function onPress_85875() { // fn#85875, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11419:2280, offset: 0x01f806af, size: 52 bytes, params: 1, frame: 13
let value = environment.__proto__.__proto__;
value = importDefault(7153) /* metro dependency 7153: ThreadActionCreators */;
return value.joinThread(thread, 'Context Menu');
}
function onPress_85876() { // fn#85876, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11419:2426, offset: 0x01f806e3, size: 48 bytes, params: 1, frame: 14
let value = environment.__proto__.__proto__;
value = importDefault(7153) /* metro dependency 7153: ThreadActionCreators */;
value.unarchiveThread(thread, false);
}
function onPress_85877() { // fn#85877, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11419:2570, offset: 0x01f80713, size: 48 bytes, params: 1, frame: 14
let value = environment.__proto__.__proto__;
value = importDefault(7153) /* metro dependency 7153: ThreadActionCreators */;
value.archiveThread(thread, false);
}
function onPress_85878() { // fn#85878, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11419:2724, offset: 0x01f80743, size: 45 bytes, params: 1, frame: 12
let value = environment.__proto__.__proto__;
value = importDefault(7153) /* metro dependency 7153: ThreadActionCreators */;
value.unlockThread(thread);
}
function onPress_85879() { // fn#85879, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11419:2860, offset: 0x01f80770, size: 45 bytes, params: 1, frame: 12
let value = environment.__proto__.__proto__;
value = importDefault(7153) /* metro dependency 7153: ThreadActionCreators */;
value.lockThread(thread);
}
function onPress_85880() { // fn#85880, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11419:3041, offset: 0x01f8079d, size: 210 bytes, params: 1, frame: 18
const forumComposerModalActionCreatorsModule = require(11007) /* metro dependency 11007: ForumComposerModalActionCreators */;
const openCreateForumPostModal = forumComposerModalActionCreatorsModule.openCreateForumPostModal;
const object2 = {};
const parentChannelBinding = parentChannel;
object2.guildId = parentChannelBinding.guild_id;
object2.parentChannelId = parentChannelBinding.id;
const threadBinding = thread;
object2.threadId = threadBinding.id;
const defaultImport = importDefault(21) /* metro dependency 21: SnowflakeUtils */;
object2.messageId = defaultImport.castChannelIdAsMessageId(threadBinding.id);
object2.isEdit = true;
const FORUM_CHANNEL = (importDefault(6789) /* metro dependency 6789: AnalyticsLocation */).FORUM_CHANNEL;
const items2 = [FORUM_CHANNEL];
const GUILD_CHANNEL = (importDefault(6789) /* metro dependency 6789: AnalyticsLocation */).GUILD_CHANNEL;
items2[1] = GUILD_CHANNEL;
object2.analyticsLocations = items2;
const CHANNEL_LIST = AnalyticsSections.CHANNEL_LIST;
const CONTEXT_MENU = AnalyticsObjects.CONTEXT_MENU;
object2.analyticsLocationObject = {section: CHANNEL_LIST, object: CONTEXT_MENU};
Reflect.apply(openCreateForumPostModal, forumComposerModalActionCreatorsModule, [object2]);
}
function onPress_85881() { // fn#85881, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11419:3451, offset: 0x01f8086f, size: 80 bytes, params: 1, frame: 15
let value = environment.__proto__.__proto__;
const defaultImport = importDefault(8148) /* metro dependency 8148: ChannelSettingsActionCreators */;
const setSection = defaultImport.setSection;
const OVERVIEW = ChannelSettingsSections.OVERVIEW;
Reflect.apply(setSection, defaultImport, [OVERVIEW]);
value = defaultImport;
value.open(thread.id);
}
function onPress_85882() { // fn#85882, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11419:3644, offset: 0x01f808bf, size: 112 bytes, params: 1, frame: 17
let value = environment.__proto__.__proto__;
const defaultImport = importDefault(dependencyMap[27]);
const openLazy = defaultImport.openLazy;
value = require(dependencyMap[29]);
value = value(dependencyMap[28], dependencyMap.paths);
Reflect.apply(openLazy, defaultImport, [value, 'ForumPostTagsActionSheet', {thread: thread,
parentChannel: parentChannel, canManageThread: canManageThread}]);
}
function onPress_85884() { // fn#85884, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11419:4121, offset: 0x01f80979, size: 60 bytes, params: 1, frame: 14
let value = environment.__proto__.__proto__;
value = importDefault(7153) /* metro dependency 7153: ThreadActionCreators */;
return value.setNotificationSettings(thread, {muted: !muted});
}
function onPress_85885() { // fn#85885, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11419:4285, offset: 0x01f809b5, size: 135 bytes, params: 1, frame: 18
let value = environment.__proto__.__proto__;
const defaultImport = importDefault(dependencyMap[27]);
const openLazy = defaultImport.openLazy;
value = require(dependencyMap[29]);
value = value(dependencyMap[33], dependencyMap.paths);
const threadBinding = thread;
const value3 = 'muteSettings' + threadBinding.id;
const object2 = {};
object2.guildId = threadBinding.getGuildId();
object2.channelId = threadBinding.id;
Reflect.apply(openLazy, defaultImport, [value, value3, object2]);
}
function onPress_85886() { // fn#85886, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11419:4516, offset: 0x01f80a3c, size: 45 bytes, params: 1, frame: 11
let value = environment.__proto__.__proto__;
value = require(11243) /* metro dependency 11243: threadActionSheets */;
return value.showThreadNotificationsBottomSheet(thread);
}
function onPress_85887() { // fn#85887, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11419:4751, offset: 0x01f80a69, size: 45 bytes, params: 1, frame: 11
let value = environment.__proto__.__proto__;
value = importDefault(7153) /* metro dependency 7153: ThreadActionCreators */;
return value.unpin(thread);
}
function onPress_85888() { // fn#85888, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11419:4877, offset: 0x01f80a96, size: 319 bytes, params: 1, frame: 18
var environment;
var value2;
var defaultImport;
var defaultImport2;
var show;
var object2;
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
const t = (require(1244) /* metro dependency 1244: indexNative */).t;
if (existingPin != null) {
value = environment.__proto__.__proto__;
defaultImport2 = importDefault(4647) /* metro dependency 4647: AlertActionCreators */;
show = defaultImport2.show;
object2 = {};
object2.title = intl.string(t.IMbjxo);
object2.body = intl.string(t['mi5+Vl']);
object2.cancelText = intl.string(t.gm1Vej);
object2.confirmText = intl.string(t.p89ACt);
object2.onConfirm = onConfirm_85889;
Reflect.apply(show, defaultImport2, [object2]);
} else {
value2 = environment.__proto__.__proto__;
defaultImport = importDefault(7153) /* metro dependency 7153: ThreadActionCreators */;
defaultImport.pin(thread);
}
}
function onPress_85890() { // fn#85890, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11419:5336, offset: 0x01f80c07, size: 561 bytes, params: 1, frame: 22
var r7;
var r8;
var value7;
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
const string = intl.string;
const t = (require(1244) /* metro dependency 1244: indexNative */).t;
const value2 = Reflect.apply(string, intl, [t.nEOg1N]);
const format = intl.format;
const su3voL = t.su3voL;
let object2 = {};
object2.postName = '"' + thread.name + '"';
if (env0_7) {
value7 = intl.string(t.xwMqD7);
r7 = intl.string(t.RUHcyk);
r8 = value7;
} else if (isAuthor && !isModerator) {
r7 = intl.format(t['6/pY2+'], {postName: '"' + thread.name + '"'});
r8 = value2;
} else {
r7 = Reflect.apply(format, intl, [su3voL, object2]);
r8 = value2;
}
const defaultImport = importDefault(4647) /* metro dependency 4647: AlertActionCreators */;
const show = defaultImport.show;
object2 = {title: r8, body: r7};
object2.cancelText = intl.string(t.gm1Vej);
object2.confirmText = intl.string(t.p89ACt);
object2.onConfirm = onConfirm_85891;
const ButtonColors = (require(1305) /* metro dependency 1305: native */).ButtonColors;
const RED = ButtonColors.RED;
object2.confirmColor = RED;
Reflect.apply(show, defaultImport, [object2]);
}
function onPress_85892() { // fn#85892, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11419:6071, offset: 0x01f80eb4, size: 72 bytes, params: 1, frame: 14
let value = environment.__proto__.__proto__;
value = require(6797) /* metro dependency 6797: ClipboardUtilsNative */;
value.copy(thread.id);
(require(3856) /* metro dependency 3856: ToastUtils */).presentPostIdCopied();
}
function _fun85894({label, IconComponent, onPress, disableColor, isDestructive}, a1) { // fn#85894, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11419:6575, offset: 0x01f80f5d, size: 290 bytes, params: 3, frame: 23
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
let r7 = label === intl.string((require(1244) /* metro dependency 1244: indexNative */).t.nEOg1N) || label === intl.string((require(1244) /* metro dependency 1244: indexNative */).t.xwMqD7);
const ActionSheetRow = (require(6807) /* metro dependency 6807: ActionSheetRowNative */).ActionSheetRow;
r7 = r7 ? 'danger' : isDestructive !== true ? undefined : 'danger';
const ActionSheetRow2 = (require(6807) /* metro dependency 6807: ActionSheetRowNative */).ActionSheetRow;
const Icon = ActionSheetRow2.Icon;
return (
<ActionSheetRow
variant={r7}
icon={<Icon IconComponent={IconComponent} disableColor={disableColor} />}
label={label}
onPress={function() {
onPress();
onClose();
}}
key={a1}
/>
);
}
function onPress_85888OnConfirm() { // fn#85889, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11419:5113, owner: onPress_85888.onConfirm, offset: 0x01f80bd5, size: 50 bytes, params: 1, frame: 14
let value = environment.__proto__.__proto__.__proto__;
value = importDefault(7153) /* metro dependency 7153: ThreadActionCreators */;
value.replacePin(existingPin, thread);
}
function onPress_85890OnConfirm() { // fn#85891, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11419:5765, owner: onPress_85890.onConfirm, offset: 0x01f80e38, size: 124 bytes, params: 1, frame: 17
var defaultImport;
var threadBinding;
var id;
var defaultImport2;
var deleteMessage;
let value = environment.__proto__;
if (env1_7) {
defaultImport2 = importDefault(7067) /* metro dependency 7067: MessageActionCreators */;
deleteMessage = defaultImport2.deleteMessage;
threadBinding = thread;
id = threadBinding.id;
value = importDefault(21) /* metro dependency 21: SnowflakeUtils */;
Reflect.apply(deleteMessage, defaultImport2, [id, value.castChannelIdAsMessageId(threadBinding.id)]);
} else {
defaultImport = importDefault(8148) /* metro dependency 8148: ChannelSettingsActionCreators */;
defaultImport.deleteChannel(thread.id);
}
}
@@ -0,0 +1,49 @@
/* Metro module 11163; source: modules/action_sheet/native/components/PublishModal.tsx; dependencies: [57, 31, 27, 33, 4501, 6235, 11164, 1305, 1244, 2] */
function _fun85239(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#85239, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11349:6, offset: 0x01f6886c, size: 288 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 */;
importAll(31) /* metro dependency 31 */;
let value = require(27) /* metro dependency 27 */;
const env0_4 = value.View;
const env0_5 = value.ActivityIndicator;
const env0_6 = (require(33) /* metro dependency 33 */).jsx;
value = require(4501) /* metro dependency 4501: createStyles */;
const createStyles = value.createStyles;
const DARK_PRIMARY_300_LIGHT_PRIMARY_400 = (require(6235) /* metro dependency 6235: LegacyTokens */).DARK_PRIMARY_300_LIGHT_PRIMARY_400;
const env0_7 = Reflect.apply(createStyles, value, [{alertContainer: {paddingTop: 16},
alertLoading: {'paddingTop': 62, 'paddingBottom': 46}, alertBodyText: {'marginBottom': 16, 'fontSize': 16,
'lineHeight': 24, color: DARK_PRIMARY_300_LIGHT_PRIMARY_400}}]);
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/action_sheet/native/components/PublishModal.tsx');
exports.default = PublishModal;
}
function PublishModal({channelId}) { // fn#85240, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11349:480, offset: 0x01f6898c, size: 393 bytes, params: 2, frame: 27
const styles = useStyles();
const value4 = env0_3((importDefault(11164) /* metro dependency 11164: useChannelFollowerStats */)(channelId), 2);
const property = value4[0];
if (value4[1]) {
return (
<View style={styles.alertLoading}>
<ActivityIndicator animating />
</View>
);
}
const r6 = property?.guildsFollowing != null && property?.guildsFollowing > 0;
const LegacyText = (require(1305) /* metro dependency 1305: native */).LegacyText;
const legacyTextProps = {style: styles.alertBodyText};
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
if (r6) {
legacyTextProps.children = intl.format((require(1244) /* metro dependency 1244: indexNative */).t.GCGrNP,
{numGuildsFollowing: property?.guildsFollowing ?? 0});
} else {
legacyTextProps.children = intl.string((require(1244) /* metro dependency 1244: indexNative */).t['8FpqOs']);
}
return (
<View style={styles.alertContainer}>
<LegacyText {...legacyTextProps} />
</View>
);
}
@@ -0,0 +1,20 @@
/* Metro module 11232; source: modules/action_sheet/native/components/showLongPressForumPostActionSheet.tsx; dependencies: [4080, 11233, 1962, 2] */
function _fun85862(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#85862, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11418:6, offset: 0x01f7f716, size: 103 bytes, params: 8, frame: 18
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/action_sheet/native/components/showLongPressForumPostActionSheet.tsx');
exports.default = showLongPressForumPostActionSheet;
}
function showLongPressForumPostActionSheet(a0, a1) { // fn#85863, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11418:212, offset: 0x01f7f77d, size: 137 bytes, params: 3, frame: 17
let value = a2;
const r1 = value !== undefined ? value : importDefault(dependencyMap[0]).hideActionSheet;
const defaultImport = importDefault(dependencyMap[0]);
const openLazy = defaultImport.openLazy;
value = require(dependencyMap[2]);
value = value(dependencyMap[1], dependencyMap.paths);
Reflect.apply(openLazy, defaultImport, [value, 'ForumPostLongPressActionSheet', {thread: a0, parentChannel: a1,
onClose: r1}]);
}