86 lines
5.3 KiB
TypeScript
86 lines
5.3 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] */
|
|
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});
|
|
const env0_3 = importAll(31) /* metro dependency 31 */;
|
|
const env0_4 = (require(27) /* metro dependency 27 */).NativeModules;
|
|
const channelStore = importDefault(1379) /* metro dependency 1379: ChannelStore */;
|
|
const rtcConnectionStore = importDefault(4294) /* metro dependency 4294: RTCConnectionStore */;
|
|
const env0_7 = (require(33) /* metro dependency 33 */).jsx;
|
|
(require(2) /* metro dependency 2 */).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 = (require(7734) /* metro dependency 7734: usePipVideoOrStream */).useHasPipParticipant({isActivityViewFocused: false});
|
|
const value3 = (require(4007) /* metro dependency 4007: NavigationRouteUtilsNative */).useIsModalOpen();
|
|
const value4 = (require(7713) /* metro dependency 7713: VoicePanelUtilsNative */).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
|
|
(require(13115) /* metro dependency 13115: KeyCommandsView */).useKeyCommands(env0_3.useMemo(_fun116687, []));
|
|
}
|
|
|
|
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
|
|
env0_3.useEffect(_fun116690, []);
|
|
}
|
|
|
|
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 object2 = {'input': 'k', 'modifierFlags': null, 'eventName': 'keyCommandShowQuickSwitcher'};
|
|
const platformUtilsModule = require(477) /* metro dependency 477: PlatformUtils */;
|
|
if (platformUtilsModule.isAndroid()) {
|
|
defaultImport = importDefault(13120) /* metro dependency 13120: NativeKeyCommandsModule */;
|
|
keyModifierCommand = defaultImport.getConstants().keyModifierCommand;
|
|
} else {
|
|
keyModifierCommand = NativeModules.KeyCommandsView.keyModifierCommand;
|
|
}
|
|
object2.modifierFlags = keyModifierCommand;
|
|
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
|
object2.discoverabilityTitle = intl.string((require(1244) /* metro dependency 1244: indexNative */).t.yYsRlD);
|
|
object2.onKeyCommand = function() {
|
|
importDefault(dependencyMap[13])();
|
|
};
|
|
return [object2];
|
|
}
|
|
|
|
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__;
|
|
(importDefault(12989) /* metro dependency 12989: AccessibilityManager */).checkScreenreaderEnabled();
|
|
}
|
|
|