// Module ID: 16911 // Function ID: 16912 // Name: BurstReactionAnimationContainer // Dependencies: [19, 17, 1957, 4583, 21, 504, 9495, 4417, 9686, 16912, 1115, 14583, 1114, 16914, 14578, 14437, 2, 16915, 16916, 16917, 16918, 16926, 16927, 16957] // Exports: PictureInPictureGlobalContainer, useAppKeyCommands, useScreenReaderEnabled // Module 16911 (BurstReactionAnimationContainer) import initialize from "initialize" /* 504 */; import coerceMainRoute from "coerceMainRoute" /* 4417 */; import usePipVideoOrStream from "usePipVideoOrStream" /* 9495 */; import isVoicePanelEnabled from "isVoicePanelEnabled" /* 9686 */; import KeyCommandsView from "KeyCommandsView" /* 14578 */; import PictureInPictureGlobalDefault from "PictureInPictureGlobal" /* 16912 */; import BurstReactionAnimationContainerInnerDefault from "BurstReactionAnimationContainerInner" /* 16915 */; import MenuContainerDefault from "MenuContainer" /* 16916 */; import ActionSheetPresenterDefault from "ActionSheetPresenter" /* 16917 */; import StyleSheetDefault from "StyleSheet" /* 16918 */; import MuteDeafenDefault from "MuteDeafen" /* 16926 */; import trackActionSheetImpressionDefault from "trackActionSheetImpression" /* 16927 */; import AnimatedToastDefault from "AnimatedToast" /* 16957 */; import closure_3 from "noop" /* 19 */; import { NativeModules } from "get ActivityIndicator" /* 17 */; import closure_5 from "ensureGuildLoaded" /* 1957 */; import closure_6 from "createRTCConnection" /* 4583 */; import { jsx } from "jsxProd" /* 21 */; require = arg1; let result = require("set").fileFinishedImporting("components_native/MainShared.tsx"); export const BurstReactionAnimationContainer = BurstReactionAnimationContainerInnerDefault; export const MenuContainer = MenuContainerDefault; export const ActionSheetContainer = ActionSheetPresenterDefault; export const Alerts = StyleSheetDefault; export const SoundPlayer = MuteDeafenDefault; export const MainViewTooltipActionSheetsV2 = trackActionSheetImpressionDefault; export const ToastContainer = AnimatedToastDefault; export const PictureInPictureGlobalContainer = function PictureInPictureGlobalContainer() { let obj = initialize; const items = [closure_5, closure_6]; const stateFromStores = obj.useStateFromStores(items, () => channel.getChannel(channelId.getChannelId())); const hasPipParticipant = usePipVideoOrStream.useHasPipParticipant({ isActivityViewFocused: false }); const obj2 = usePipVideoOrStream; const isModalOpen = coerceMainRoute.useIsModalOpen(); isVoicePanelEnabled; let tmp7 = null; if (null != stateFromStores) { tmp7 = null; if (hasPipParticipant) { tmp7 = null; if (!isModalOpen) { tmp7 = null; if (!tmp6) { obj = { channel: null }; obj[0] = stateFromStores; tmp7 = jsx(PictureInPictureGlobalDefault, { channel: null }); } } } } return tmp7; }; export const useAppKeyCommands = function useAppKeyCommands() { const memo = React.useMemo(() => { let obj = callback(table[10]); if (obj.isAndroid()) { let keyModifierCommand = callback2(tmp2[11]).getConstants().keyModifierCommand; const obj2 = callback2(tmp2[11]); } else { keyModifierCommand = KeyCommandsView.KeyCommandsView.keyModifierCommand; } obj = { input: "k", modifierFlags: keyModifierCommand, eventName: "keyCommandShowQuickSwitcher", discoverabilityTitle: null, onKeyCommand: null }; const intl = tmp(tmp2[12]).intl; obj[3] = intl.string(callback(table[12]).t.yYsRlD); obj[4] = function onKeyCommand() { callback(table[13])(); }; const items = [obj]; return items; }, []); const keyCommands = KeyCommandsView.useKeyCommands(memo); }; export const useScreenReaderEnabled = function useScreenReaderEnabled() { const effect = React.useEffect(() => { const result = callback(table[15]).checkScreenreaderEnabled(); }, []); };