This commit is contained in:
janisslsm committed 2026-07-28 01:06:53 +03:00
1 parent af3b49f756
commit 1781d25a15
22448 files changed
+2731829 -2650550

No files matched your search

@@ -1,9 +1,13 @@
/* Metro module 15267; source: modules/action_sheet/native/components/ActionSheetPresenter.tsx; dependencies: [2, 12766] */
import * as FileImportTrackerModule from '../../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ActionSheetPresenterNativeModule from '../../../../design/components/Sheet/native/ActionSheetPresenter.native.tsx'; /* Metro dependency 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;
(FileImportTrackerModule).fileFinishedImporting('modules/action_sheet/native/components/ActionSheetPresenter.tsx');
const ActionSheetPresenter = (ActionSheetPresenterNativeModule).ActionSheetPresenter;
exports.default = ActionSheetPresenter;
}
global.__d(_fun116728, 15267, [2, 12766]) /* metro module 15267, dependencies: [2, 12766] */;
@@ -1,9 +1,13 @@
/* Metro module 11710; source: modules/action_sheet/native/components/BottomSheetTextInput.tsx; dependencies: [2, 9101] */
import * as FileImportTrackerModule from '../../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as BottomSheetTextInputNativeModule from '../../../../design/components/Sheet/native/BottomSheetTextInput.native.tsx'; /* Metro dependency 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;
(FileImportTrackerModule).fileFinishedImporting('modules/action_sheet/native/components/BottomSheetTextInput.tsx');
const BottomSheetTextInput = (BottomSheetTextInputNativeModule).BottomSheetTextInput;
exports.default = BottomSheetTextInput;
}
global.__d(_fun89775, 11710, [2, 9101]) /* metro module 11710, dependencies: [2, 9101] */;
@@ -1,29 +1,36 @@
/* Metro module 11205; source: modules/action_sheet/native/components/ContextMenuSubmenuActionSheetHeader.tsx; dependencies: [31, 27, 33, 4501, 9067, 1244, 2] */
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 JsxRuntimeModule from '../../../../by-id/module-00033-JsxRuntime.js'; /* Metro dependency 33 */
import * as CreateStylesModule from '../../../../design/components/Styles/native/createStyles.tsx'; /* Metro dependency 4501 */
import * as ActionSheetHeaderPressableTextNativeModule from '../../../../design/components/Sheet/native/ActionSheetHeaderPressableText.native.tsx'; /* Metro dependency 9067 */
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,
ReactModule;
const env0_4 = (CreateStylesModule).createStyles({headerContainer: {'paddingVertical': 12,
'paddingHorizontal': 16, 'alignItems': 'flex-start'}});
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/action_sheet/native/components/ContextMenuSubmenuActionSheetHeader.tsx');
(FileImportTrackerModule).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 = (ActionSheetHeaderPressableTextNativeModule).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>
);
}
}
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>
);
}
global.__d(_fun85621, 11205, [31, 27, 33, 4501, 9067, 1244,
2]) /* metro module 11205, dependencies: [31, 27, 33, 4501, 9067, 1244, 2] */;
@@ -1,110 +1,123 @@
/* 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] */
import Native from '../../../../external/discord_common/js/packages/tokens/native.tsx'; /* Metro dependency 697 */
import ActionSheetActionCreators from '../ActionSheetActionCreators.tsx'; /* Metro dependency 4080 */
import AnalyticsLocation from '../../../app_analytics/AnalyticsLocation.tsx'; /* Metro dependency 6789 */
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 JsxRuntimeModule from '../../../../by-id/module-00033-JsxRuntime.js'; /* Metro dependency 33 */
import * as UseTokenModule from '../../../../design/tokens/native/useToken.tsx'; /* Metro dependency 3860 */
import * as CreateStylesModule from '../../../../design/components/Styles/native/createStyles.tsx'; /* Metro dependency 4501 */
import * as ActionSheetConstantsModule from '../ActionSheetConstants.tsx'; /* Metro dependency 6276 */
import * as ReactionActionCreatorsModule from '../../../reactions/ReactionActionCreators.tsx'; /* Metro dependency 7151 */
import * as UseEmojisForReactionRowModule from '../../../reactions/native/useEmojisForReactionRow.tsx'; /* Metro dependency 10998 */
import * as EmojiReactionRowButtonModule from '../../../reactions/native/EmojiReactionRowButton.tsx'; /* Metro dependency 11000 */
import * as DoubleTapEmojiEditNudgeModule from '../../../double_tap_to_react/native/DoubleTapEmojiEditNudge.tsx'; /* Metro dependency 11410 */
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',
ReactModule;
const env0_7 = (CreateStylesModule).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');
(FileImportTrackerModule).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
let useToken = UseTokenModule.useToken;
const EMOJI_ROW_EMOJI_SIZE = (Native).modules.mobile.EMOJI_ROW_EMOJI_SIZE;
const env0_2 = Reflect.apply(useToken, UseTokenModule, [EMOJI_ROW_EMOJI_SIZE]);
useToken = UseTokenModule.useToken;
const EMOJI_ROW_EMOJI_FONT_SIZE = (Native).modules.mobile.EMOJI_ROW_EMOJI_FONT_SIZE;
const env0_3 = Reflect.apply(useToken, UseTokenModule, [EMOJI_ROW_EMOJI_FONT_SIZE]);
useToken = UseTokenModule.useToken;
const EMOJI_ROW_EMOJI_LINE_HEIGHT = (Native).modules.mobile.EMOJI_ROW_EMOJI_LINE_HEIGHT;
const env0_4 = Reflect.apply(useToken, UseTokenModule, [EMOJI_ROW_EMOJI_LINE_HEIGHT]);
useToken = UseTokenModule.useToken;
const EMOJI_ROW_EMOJI_CONTAINER_SIZE = (Native).modules.mobile.EMOJI_ROW_EMOJI_CONTAINER_SIZE;
const value2 = Reflect.apply(useToken, UseTokenModule, [EMOJI_ROW_EMOJI_CONTAINER_SIZE]);
useToken = UseTokenModule.useToken;
const EMOJI_ROW_EMOJI_MIN_SPACING = (Native).modules.mobile.EMOJI_ROW_EMOJI_MIN_SPACING;
const value4 = (UseEmojisForReactionRowModule).useEmojisForReactionRow(channel,
ACTION_SHEET_MAX_WIDTH, value2 + Reflect.apply(useToken, UseTokenModule, [EMOJI_ROW_EMOJI_MIN_SPACING]));
const styles = useStyles();
const value5 = value4.map(_fun87407);
const EmojiPickerRowButton = (EmojiReactionRowButtonModule).EmojiPickerRowButton;
const view = (
<View style={styles.emojiRow}>
{value5}
<EmojiPickerRowButton emojiContainerSize={value2} onPress={onPress_87409} />
</View>
);
const DoubleTapEmojiEditNudge = (DoubleTapEmojiEditNudgeModule).DoubleTapEmojiEditNudge;
const MESSAGE_LONG_PRESS_MENU = (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: JsxRuntimeModule.jsx};
value = require(11000) /* metro dependency 11000: EmojiReactionRowButton */;
const getEmojiKey = value.getEmojiKey;
return <EmojiReactionRowButton {...emojiReactionRowButtonProps} key={Reflect.apply(getEmojiKey, value, [a0, a1])} />;
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__;
(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);
}
}
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 = (ReactionActionCreatorsModule).ReactionLocations;
const MESSAGE = ReactionLocations.MESSAGE;
return Reflect.apply(handleAddNewReactions, value, [channelBinding, id, MESSAGE]);
}
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);
}
}
global.__d(_fun87405, 11409, [31, 27, 6276, 33, 4501, 4080, 4081, 7151, 3795, 7067, 8217, 3860, 697, 10998, 11000,
9837, 11410, 6789,
2]) /* metro module 11409, dependencies: [31, 27, 6276, 33, 4501, 4080, 4081, 7151, 3795, 7067, 8217, 3860, 697, 10998, 11000, 9837, 11410, 6789, 2] */;
@@ -1,24 +1,24 @@
/* Metro module 11408; source: modules/action_sheet/native/components/EmojiRowUtils.tsx; dependencies: [661, 1391, 2] */
import * as FileImportTrackerModule from '../../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ConstantsModule from '../../../../Constants.tsx'; /* Metro dependency 661 */
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');
(FileImportTrackerModule).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);
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;
}
return r0;
}
global.__d(_fun87403, 11408, [661, 1391, 2]) /* metro module 11408, dependencies: [661, 1391, 2] */;
File diff suppressed because it is too large. Load diff
@@ -1,49 +1,58 @@
/* Metro module 11163; source: modules/action_sheet/native/components/PublishModal.tsx; dependencies: [57, 31, 27, 33, 4501, 6235, 11164, 1305, 1244, 2] */
import Module00057 from '../../../../by-id/module-00057.js'; /* Metro dependency 57 */
import UseChannelFollowerStats from '../../../channel_following/useChannelFollowerStats.tsx'; /* Metro dependency 11164 */
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 JsxRuntimeModule from '../../../../by-id/module-00033-JsxRuntime.js'; /* Metro dependency 33 */
import * as NativeModule from '../../../../design/void/native.tsx'; /* Metro dependency 1305 */
import * as LegacyTokensModule from '../../../../design/migrations/native/LegacyTokens.tsx'; /* Metro dependency 6235 */
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 */;
ReactModule;
let value = ReactNativeModule;
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 DARK_PRIMARY_300_LIGHT_PRIMARY_400 = (LegacyTokensModule).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');
(FileImportTrackerModule).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]) {
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 = Module00057((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 = (NativeModule).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.alertLoading}>
<ActivityIndicator animating />
<View style={styles.alertContainer}>
<LegacyText {...legacyTextProps} />
</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>
);
}
global.__d(_fun85239, 11163, [57, 31, 27, 33, 4501, 6235, 11164, 1305, 1244,
2]) /* metro module 11163, dependencies: [57, 31, 27, 33, 4501, 6235, 11164, 1305, 1244, 2] */;
@@ -1,20 +1,23 @@
/* Metro module 11232; source: modules/action_sheet/native/components/showLongPressForumPostActionSheet.tsx; dependencies: [4080, 11233, 1962, 2] */
import * as FileImportTrackerModule from '../../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 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');
(FileImportTrackerModule).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}]);
}
}
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}]);
}
global.__d(_fun85862, 11232, [4080, 11233, 1962, 2]) /* metro module 11232, dependencies: [4080, 11233, 1962, 2] */;