/* Metro module 11790; source: components_native/chat/JumpToPresentButton.tsx; dependencies: [31, 27, 7729, 4257, 4814, 33, 4501, 697, 477, 566, 7713, 8341, 1244, 11791, 11792, 2] */ import GatewayConnectionStore from '../../modules/gateway/GatewayConnectionStore.tsx'; /* Metro dependency 4257 */ import MessageStore from '../../stores/MessageStore.tsx'; /* Metro dependency 4814 */ import UseChatBottomManagerUIStore from '../../modules/chat_input/native/useChatBottomManagerUIStore.tsx'; /* Metro dependency 7729 */ 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 IndexNativeModule from '../../intl/index.native.tsx'; /* Metro dependency 1244 */ import * as CreateStylesModule from '../../design/components/Styles/native/createStyles.tsx'; /* Metro dependency 4501 */ import * as VoicePanelUtilsNativeModule from '../../modules/voice_panel/VoicePanelUtils.native.tsx'; /* Metro dependency 7713 */ import * as UseChatBottomManagerUIStoreModule from '../../modules/chat_input/native/useChatBottomManagerUIStore.tsx'; /* Metro dependency 7729 */ import * as IconButtonNativeModule from '../../design/components/Button/native/IconButton.native.tsx'; /* Metro dependency 8341 */ function _fun90300(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#90300, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11976:6, offset: 0x02033c5c, size: 364 bytes, params: 8, frame: 21 const env0_0 = require; const Object = global.Object; Object.defineProperty(exports, '__esModule', {value: true}); ReactModule; let value = CreateStylesModule; const createStyles = value.createStyles; const object2 = {'borderRadius': null, 'position': 'absolute', 'right': 12}; object2.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.round; const env0_9 = Reflect.apply(createStyles, value, [{container: object2, containerIOS: {'bottom': '100%', 'marginBottom': 12, 'pointerEvents': 'box-none'}}]); value = require(477) /* metro dependency 477: PlatformUtils */; const env0_10 = value.isIOS() ? function() { return null; } : _fun90302; (FileImportTrackerModule).fileFinishedImporting('components_native/chat/JumpToPresentButton.tsx'); exports.default = JumpToPresentButton; function _fun90302(a0) { // fn#90302, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11976:398, offset: 0x02033dc8, size: 32 bytes, params: 2, frame: 12 const object = {}; object.bottom = useChatInputContainerHeight(a0) + 12; return object; } function JumpToPresentButton({channelId, screenIndex, onJumpToPresent}) { // fn#90303, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11976:511, offset: 0x02033de8, size: 469 bytes, params: 2, frame: 26 const IconButton = (IconButtonNativeModule).IconButton; const intl = (IndexNativeModule).intl; const t = (IndexNativeModule).t; const styles = useStyles(); const value2 = env0_10(screenIndex); const env0_2 = (require(566) /* metro dependency 566: flux */).useStateFromStores([GatewayConnectionStore], function() { return GatewayConnectionStore.isConnected(); }, []); const value3 = UseChatBottomManagerUIStore(_fun90305); const value4 = (VoicePanelUtilsNativeModule).useIsVoicePanelMounted(channelId); const value5 = (VoicePanelUtilsNativeModule).useIsVoicePanelOpen(channelId); const value6 = (require(566) /* metro dependency 566: flux */).useStateFromStores([MessageStore], function() { return MessageStore.getMessages(channelId).jumpReturnTargetId != null; }); if (value3) { return ( { value3 ? ( ) : ((MemoedVoicePanelDismissChatButton) => )((require(11792) /* metro dependency 11792: VoicePanelChatView */).MemoedVoicePanelDismissChatButton) } ); } if (value4) { if (value5) { return ( { value3 ? ( ) : ((MemoedVoicePanelDismissChatButton) => )((require(11792) /* metro dependency 11792: VoicePanelChatView */).MemoedVoicePanelDismissChatButton) } ); } } return null; function _fun90305(a0) { // fn#90305, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11976:668, offset: 0x02033fd0, size: 78 bytes, params: 2, frame: 14 const binding = env0_2; return binding ? !a0.showingAutoComplete.get(screenIndex) && a0.showJumpToPresentButtonChannelId.get(screenIndex) === channelId : !!binding; } } } global.__d(_fun90300, 11790, [31, 27, 7729, 4257, 4814, 33, 4501, 697, 477, 566, 7713, 8341, 1244, 11791, 11792, 2]) /* metro module 11790, dependencies: [31, 27, 7729, 4257, 4814, 33, 4501, 697, 477, 566, 7713, 8341, 1244, 11791, 11792, 2] */;