Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4821.js (118.4 MB)
78 lines
3.6 KiB
TypeScript
78 lines
3.6 KiB
TypeScript
// Module ID: 17023
|
|
// Function ID: 17024
|
|
// Name: MainShared
|
|
// Dependencies: [19, 1957, 4659, 21, 504, 9620, 4494, 9811, 17024, 14667, 1114, 17026, 14523, 2, 17027, 17028, 17029, 17030, 17038, 17039, 17071]
|
|
// Exports: PictureInPictureGlobalContainer, useAppKeyCommands, useScreenReaderEnabled
|
|
|
|
// Module 17023 (MainShared)
|
|
import initialize from "initialize" /* 504 */;
|
|
import util from "util" /* 1114 */;
|
|
import NavigationRouteUtils from "NavigationRouteUtils" /* 4494 */;
|
|
import usePipVideoOrStream from "usePipVideoOrStream" /* 9620 */;
|
|
import VoicePanelUtils from "VoicePanelUtils" /* 9811 */;
|
|
import AccessibilityManagerDefault from "AccessibilityManager" /* 14523 */;
|
|
import KeyCommands from "KeyCommands" /* 14667 */;
|
|
import PictureInPictureGlobalDefault from "PictureInPictureGlobal" /* 17024 */;
|
|
import BurstReactionAnimationContainerDefault from "BurstReactionAnimationContainer" /* 17027 */;
|
|
import NativeMenuPresenterDefault from "NativeMenuPresenter" /* 17028 */;
|
|
import components_ActionSheetPresenterDefault from "components/ActionSheetPresenter" /* 17029 */;
|
|
import AlertsDefault from "Alerts" /* 17030 */;
|
|
import SoundPlayerDefault from "SoundPlayer" /* 17038 */;
|
|
import MainViewTooltipActionSheetsV2Default from "MainViewTooltipActionSheetsV2" /* 17039 */;
|
|
import ToastContainerDefault from "ToastContainer" /* 17071 */;
|
|
import noop from "module_19" /* 19 */;
|
|
import ChannelStore from "ChannelStore" /* 1957 */;
|
|
import RTCConnectionStore from "RTCConnectionStore" /* 4659 */;
|
|
|
|
require = fn;
|
|
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(() => {
|
|
const obj = { input: "k", modifierFlags: KeyCommands.KeyModifierFlags.keyModifierCommand, eventName: "keyCommandShowQuickSwitcher", discoverabilityTitle: null, onKeyCommand: null };
|
|
const intl = util.intl;
|
|
obj.discoverabilityTitle = intl.string(util.t.yYsRlD);
|
|
obj.onKeyCommand = function onKeyCommand() {
|
|
closure_1_1(dependencyMap[11])();
|
|
};
|
|
const items = [obj];
|
|
return items;
|
|
}, []);
|
|
const keyCommands = KeyCommands.useKeyCommands(memo);
|
|
};
|
|
export const useScreenReaderEnabled = function useScreenReaderEnabled() {
|
|
const effect = noop.useEffect(() => {
|
|
const result = AccessibilityManagerDefault.checkScreenreaderEnabled();
|
|
}, []);
|
|
};
|