96 lines
6.6 KiB
TypeScript
96 lines
6.6 KiB
TypeScript
/* Metro module 15261; source: components_native/MainShared.tsx; dependencies: [31, 27, 1379, 4294, 33, 566, 7734, 4007, 7713, 15262, 477, 13120, 1244, 15264, 13115, 12989, 2, 15265, 15266, 15267, 15268, 15276, 15277, 15307] */
|
|
import ChannelStore from '../stores/ChannelStore.tsx'; /* Metro dependency 1379 */
|
|
import RTCConnectionStore from '../stores/RTCConnectionStore.tsx'; /* Metro dependency 4294 */
|
|
import AccessibilityManager from '../modules/a11y/native/AccessibilityManager.tsx'; /* Metro dependency 12989 */
|
|
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 PlatformUtilsModule from '../utils/PlatformUtils.tsx'; /* Metro dependency 477 */
|
|
import * as NavigationRouteUtilsNativeModule from '../modules/main_tabs_v2/helpers/NavigationRouteUtils.native.tsx'; /* Metro dependency 4007 */
|
|
import * as VoicePanelUtilsNativeModule from '../modules/voice_panel/VoicePanelUtils.native.tsx'; /* Metro dependency 7713 */
|
|
import * as UsePipVideoOrStreamModule from '../modules/video_calls/native/usePipVideoOrStream.tsx'; /* Metro dependency 7734 */
|
|
import * as KeyCommandsViewModule from '../modules/keyboard/native/KeyCommandsView.tsx'; /* Metro dependency 13115 */
|
|
|
|
function _fun116683(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#116683, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15458:6, offset: 0x0249332e, size: 350 bytes, params: 8, frame: 19
|
|
const env0_0 = require;
|
|
const Object = global.Object;
|
|
Object.defineProperty(exports, '__esModule', {value: true});
|
|
(FileImportTrackerModule).fileFinishedImporting('components_native/MainShared.tsx');
|
|
exports.BurstReactionAnimationContainer = importDefault(15265) /* metro dependency 15265: BurstReactionAnimationContainer */;
|
|
exports.MenuContainer = importDefault(15266) /* metro dependency 15266: NativeMenuPresenter */;
|
|
exports.ActionSheetContainer = importDefault(15267) /* metro dependency 15267: ActionSheetPresenter */;
|
|
exports.Alerts = importDefault(15268) /* metro dependency 15268: Alerts */;
|
|
exports.SoundPlayer = importDefault(15276) /* metro dependency 15276: SoundPlayer */;
|
|
exports.MainViewTooltipActionSheetsV2 = importDefault(15277) /* metro dependency 15277: MainViewTooltipActionSheetsV2 */;
|
|
exports.ToastContainer = importDefault(15307) /* metro dependency 15307: ToastContainer */;
|
|
exports.PictureInPictureGlobalContainer = PictureInPictureGlobalContainer;
|
|
exports.useAppKeyCommands = useAppKeyCommands;
|
|
exports.useScreenReaderEnabled = useScreenReaderEnabled;
|
|
function PictureInPictureGlobalContainer() { // fn#116684, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15458:473, offset: 0x0249348c, size: 205 bytes, params: 1, frame: 18
|
|
var r0;
|
|
var value;
|
|
const channel = (require(566) /* metro dependency 566: flux */).useStateFromStores([ChannelStore,
|
|
RTCConnectionStore], function() {
|
|
return ChannelStore.getChannel(RTCConnectionStore.getChannelId());
|
|
});
|
|
const value2 = (UsePipVideoOrStreamModule).useHasPipParticipant({isActivityViewFocused: false});
|
|
const value3 = (NavigationRouteUtilsNativeModule).useIsModalOpen();
|
|
const value4 = (VoicePanelUtilsNativeModule).useIsVoicePanelShowing();
|
|
const value5 = null;
|
|
if (value5 == channel) {
|
|
r0 = value5;
|
|
} else if (value2) {
|
|
if (value3) {
|
|
r0 = value5;
|
|
} else if (value4) {
|
|
r0 = value5;
|
|
} else {
|
|
value = importDefault(15262) /* metro dependency 15262: PictureInPictureGlobal */;
|
|
value = ((Component) => <Component channel={channel} />)(value);
|
|
r0 = value;
|
|
}
|
|
} else {
|
|
r0 = value5;
|
|
}
|
|
return r0;
|
|
}
|
|
|
|
function useAppKeyCommands() { // fn#116686, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15458:788, offset: 0x0249357a, size: 66 bytes, params: 1, frame: 14
|
|
(KeyCommandsViewModule).useKeyCommands(ReactModule.useMemo(_fun116687, []));
|
|
function _fun116687() { // fn#116687, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15458:834, offset: 0x024935bc, size: 198 bytes, params: 1, frame: 15
|
|
var keyModifierCommand;
|
|
var defaultImport;
|
|
const object = {'input': 'k', 'modifierFlags': null, 'eventName': 'keyCommandShowQuickSwitcher'};
|
|
if (PlatformUtilsModule.isAndroid()) {
|
|
defaultImport = importDefault(13120) /* metro dependency 13120: NativeKeyCommandsModule */;
|
|
keyModifierCommand = defaultImport.getConstants().keyModifierCommand;
|
|
} else {
|
|
keyModifierCommand = NativeModules.KeyCommandsView.keyModifierCommand;
|
|
}
|
|
object.modifierFlags = keyModifierCommand;
|
|
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
|
object.discoverabilityTitle = intl.string((require(1244) /* metro dependency 1244: indexNative */).t.yYsRlD);
|
|
object.onKeyCommand = function() {
|
|
importDefault(dependencyMap[13])();
|
|
};
|
|
return [object];
|
|
}
|
|
|
|
}
|
|
|
|
function useScreenReaderEnabled() { // fn#116689, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15458:1153, offset: 0x024936a1, size: 35 bytes, params: 1, frame: 13
|
|
ReactModule.useEffect(_fun116690, []);
|
|
function _fun116690() { // fn#116690, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15458:1200, offset: 0x024936c4, size: 37 bytes, params: 1, frame: 11
|
|
const value = environment.__proto__;
|
|
(AccessibilityManager).checkScreenreaderEnabled();
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
global.__d(_fun116683, 15261, [31, 27, 1379, 4294, 33, 566, 7734, 4007, 7713, 15262, 477, 13120, 1244, 15264, 13115,
|
|
12989, 2, 15265, 15266, 15267, 15268, 15276, 15277,
|
|
15307]) /* metro module 15261, dependencies: [31, 27, 1379, 4294, 33, 566, 7734, 4007, 7713, 15262, 477, 13120, 1244, 15264, 13115, 12989, 2, 15265, 15266, 15267, 15268, 15276, 15277, 15307] */;
|