Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4745.js (118.4 MB)
87 lines
3.9 KiB
TypeScript
87 lines
3.9 KiB
TypeScript
// Module ID: 16911
|
|
// Function ID: 16912
|
|
// Name: MainShared
|
|
// Dependencies: [19, 17, 1957, 4583, 21, 504, 9496, 4417, 9687, 16912, 1115, 14583, 1114, 16914, 14578, 14437, 2, 16915, 16916, 16917, 16918, 16926, 16927, 16957]
|
|
// Exports: PictureInPictureGlobalContainer, useAppKeyCommands, useScreenReaderEnabled
|
|
|
|
// Module 16911 (MainShared)
|
|
import initialize from "initialize" /* 504 */;
|
|
import util from "util" /* 1114 */;
|
|
import NavigationRouteUtils from "NavigationRouteUtils" /* 4417 */;
|
|
import usePipVideoOrStream from "usePipVideoOrStream" /* 9496 */;
|
|
import VoicePanelUtils from "VoicePanelUtils" /* 9687 */;
|
|
import AccessibilityManagerDefault from "AccessibilityManager" /* 14437 */;
|
|
import KeyCommandsView from "KeyCommandsView" /* 14578 */;
|
|
import PictureInPictureGlobalDefault from "PictureInPictureGlobal" /* 16912 */;
|
|
import BurstReactionAnimationContainerDefault from "BurstReactionAnimationContainer" /* 16915 */;
|
|
import NativeMenuPresenterDefault from "NativeMenuPresenter" /* 16916 */;
|
|
import components_ActionSheetPresenterDefault from "components/ActionSheetPresenter" /* 16917 */;
|
|
import AlertsDefault from "Alerts" /* 16918 */;
|
|
import SoundPlayerDefault from "SoundPlayer" /* 16926 */;
|
|
import MainViewTooltipActionSheetsV2Default from "MainViewTooltipActionSheetsV2" /* 16927 */;
|
|
import ToastContainerDefault from "ToastContainer" /* 16957 */;
|
|
import noop from "module_19" /* 19 */;
|
|
import ChannelStore from "ChannelStore" /* 1957 */;
|
|
import RTCConnectionStore from "RTCConnectionStore" /* 4583 */;
|
|
|
|
const require = globalThis.__r;
|
|
|
|
require = fn;
|
|
const NativeModules = fn(17).NativeModules;
|
|
const jsx = fn(21).jsx;
|
|
const size = fn(2);
|
|
let result = size.fileFinishedImporting("components_native/MainShared.tsx");
|
|
|
|
export const BurstReactionAnimationContainer = BurstReactionAnimationContainerDefault;
|
|
export const MenuContainer = NativeMenuPresenterDefault;
|
|
export const ActionSheetContainer = components_ActionSheetPresenterDefault;
|
|
export const Alerts = AlertsDefault;
|
|
export const SoundPlayer = SoundPlayerDefault;
|
|
export const MainViewTooltipActionSheetsV2 = MainViewTooltipActionSheetsV2Default;
|
|
export const ToastContainer = ToastContainerDefault;
|
|
export const PictureInPictureGlobalContainer = function PictureInPictureGlobalContainer() {
|
|
const items = [ChannelStore, RTCConnectionStore];
|
|
const stateFromStores = initialize.useStateFromStores(items, () => channel.getChannel(channelId.getChannelId()));
|
|
const hasPipParticipant = usePipVideoOrStream.useHasPipParticipant({ isActivityViewFocused: false });
|
|
const isModalOpen = NavigationRouteUtils.useIsModalOpen();
|
|
VoicePanelUtils;
|
|
let tmp7 = null;
|
|
if (null != stateFromStores) {
|
|
tmp7 = null;
|
|
if (hasPipParticipant) {
|
|
tmp7 = null;
|
|
if (!isModalOpen) {
|
|
tmp7 = null;
|
|
if (!tmp6) {
|
|
const obj4 = { channel: stateFromStores };
|
|
tmp7 = jsx(PictureInPictureGlobalDefault, { channel: stateFromStores });
|
|
}
|
|
}
|
|
}
|
|
}
|
|
return tmp7;
|
|
};
|
|
export const useAppKeyCommands = function useAppKeyCommands() {
|
|
const memo = noop.useMemo(() => {
|
|
if (obj.isAndroid()) {
|
|
let keyModifierCommand = require("NativeKeyCommandsModule").getConstants().keyModifierCommand;
|
|
const obj2 = require("NativeKeyCommandsModule");
|
|
} else {
|
|
keyModifierCommand = KeyCommandsView.KeyCommandsView.keyModifierCommand;
|
|
}
|
|
const obj3 = { input: "k", modifierFlags: keyModifierCommand, eventName: "keyCommandShowQuickSwitcher", discoverabilityTitle: null, onKeyCommand: null };
|
|
const intl = tmp(tmp2[12]).intl;
|
|
obj3.discoverabilityTitle = intl.string(util.t.yYsRlD);
|
|
obj3.onKeyCommand = function onKeyCommand() {
|
|
closure_1_1(closure_1_2[13])();
|
|
};
|
|
const items = [obj3];
|
|
return items;
|
|
}, []);
|
|
const keyCommands = KeyCommandsView.useKeyCommands(memo);
|
|
};
|
|
export const useScreenReaderEnabled = function useScreenReaderEnabled() {
|
|
const effect = noop.useEffect(() => {
|
|
const result = AccessibilityManagerDefault.checkScreenreaderEnabled();
|
|
}, []);
|
|
};
|