2026-09-17 08:17:09 +00:00
|
|
|
// Module ID: 17158
|
|
|
|
|
// Function ID: 17159
|
2026-09-10 05:38:07 +00:00
|
|
|
// Name: MainShared
|
2026-09-17 08:17:09 +00:00
|
|
|
// Dependencies: [19, 1958, 4663, 21, 504, 9644, 4497, 9832, 17159, 1364, 5058, 1115, 17161, 14558, 2, 17162, 17163, 17164, 17165, 17173, 17174, 17205]
|
2026-07-20 16:05:17 +00:00
|
|
|
// Exports: PictureInPictureGlobalContainer, useAppKeyCommands, useScreenReaderEnabled
|
|
|
|
|
|
2026-09-17 08:17:09 +00:00
|
|
|
// Module 17158 (MainShared)
|
2026-09-05 10:56:28 +00:00
|
|
|
import initialize from "initialize" /* 504 */;
|
2026-09-15 14:23:42 +00:00
|
|
|
import util from "util" /* 1115 */;
|
|
|
|
|
import PlatformUtils from "PlatformUtils" /* 1364 */;
|
2026-09-17 08:17:09 +00:00
|
|
|
import NavigationRouteUtils from "NavigationRouteUtils" /* 4497 */;
|
|
|
|
|
import KeyCommands from "KeyCommands" /* 5058 */;
|
|
|
|
|
import usePipVideoOrStream from "usePipVideoOrStream" /* 9644 */;
|
|
|
|
|
import VoicePanelUtils from "VoicePanelUtils" /* 9832 */;
|
|
|
|
|
import AccessibilityManagerDefault from "AccessibilityManager" /* 14558 */;
|
|
|
|
|
import PictureInPictureGlobalDefault from "PictureInPictureGlobal" /* 17159 */;
|
|
|
|
|
import BurstReactionAnimationContainerDefault from "BurstReactionAnimationContainer" /* 17162 */;
|
|
|
|
|
import NativeMenuPresenterDefault from "NativeMenuPresenter" /* 17163 */;
|
|
|
|
|
import components_ActionSheetPresenterDefault from "components/ActionSheetPresenter" /* 17164 */;
|
|
|
|
|
import AlertsDefault from "Alerts" /* 17165 */;
|
|
|
|
|
import SoundPlayerDefault from "SoundPlayer" /* 17173 */;
|
|
|
|
|
import MainViewTooltipActionSheetsV2Default from "MainViewTooltipActionSheetsV2" /* 17174 */;
|
|
|
|
|
import ToastContainerDefault from "ToastContainer" /* 17205 */;
|
2026-09-10 05:38:07 +00:00
|
|
|
import noop from "module_19" /* 19 */;
|
2026-09-15 14:23:42 +00:00
|
|
|
import ChannelStore from "ChannelStore" /* 1958 */;
|
2026-09-17 08:17:09 +00:00
|
|
|
import RTCConnectionStore from "RTCConnectionStore" /* 4663 */;
|
2026-07-23 10:11:24 +00:00
|
|
|
|
2026-09-10 05:38:07 +00:00
|
|
|
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;
|
2026-07-20 16:05:17 +00:00
|
|
|
export const PictureInPictureGlobalContainer = function PictureInPictureGlobalContainer() {
|
2026-09-10 05:38:07 +00:00
|
|
|
const items = [ChannelStore, RTCConnectionStore];
|
|
|
|
|
const stateFromStores = initialize.useStateFromStores(items, () => channel.getChannel(channelId.getChannelId()));
|
2026-08-24 06:08:38 +00:00
|
|
|
const hasPipParticipant = usePipVideoOrStream.useHasPipParticipant({ isActivityViewFocused: false });
|
2026-09-10 05:38:07 +00:00
|
|
|
const isModalOpen = NavigationRouteUtils.useIsModalOpen();
|
|
|
|
|
VoicePanelUtils;
|
2026-07-29 08:29:29 +00:00
|
|
|
let tmp7 = null;
|
2026-07-20 16:05:17 +00:00
|
|
|
if (null != stateFromStores) {
|
2026-07-29 08:29:29 +00:00
|
|
|
tmp7 = null;
|
2026-07-20 16:05:17 +00:00
|
|
|
if (hasPipParticipant) {
|
2026-07-29 08:29:29 +00:00
|
|
|
tmp7 = null;
|
2026-07-20 16:05:17 +00:00
|
|
|
if (!isModalOpen) {
|
2026-07-29 08:29:29 +00:00
|
|
|
tmp7 = null;
|
|
|
|
|
if (!tmp6) {
|
2026-09-10 05:38:07 +00:00
|
|
|
const obj4 = { channel: stateFromStores };
|
|
|
|
|
tmp7 = jsx(PictureInPictureGlobalDefault, { channel: stateFromStores });
|
2026-07-20 16:05:17 +00:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
2026-07-29 08:29:29 +00:00
|
|
|
return tmp7;
|
2026-07-20 16:05:17 +00:00
|
|
|
};
|
|
|
|
|
export const useAppKeyCommands = function useAppKeyCommands() {
|
2026-09-10 05:38:07 +00:00
|
|
|
const memo = noop.useMemo(() => {
|
2026-09-15 14:23:42 +00:00
|
|
|
const KeyModifierFlags = KeyCommands.KeyModifierFlags;
|
|
|
|
|
const obj2 = { input: "k", modifierFlags: PlatformUtils.isAndroid() ? KeyModifierFlags.keyModifierControl : KeyModifierFlags.keyModifierCommand, eventName: "keyCommandShowQuickSwitcher", discoverabilityTitle: null, onKeyCommand: null };
|
|
|
|
|
const intl = tmp(1115).intl;
|
|
|
|
|
obj2.discoverabilityTitle = intl.string(util.t.yYsRlD);
|
|
|
|
|
obj2.onKeyCommand = function onKeyCommand() {
|
|
|
|
|
closure_1_1(dependencyMap[12])();
|
|
|
|
|
return true;
|
2026-07-20 16:05:17 +00:00
|
|
|
};
|
2026-09-15 14:23:42 +00:00
|
|
|
const items = [obj2];
|
2026-07-20 16:05:17 +00:00
|
|
|
return items;
|
|
|
|
|
}, []);
|
2026-09-12 13:45:10 +00:00
|
|
|
const keyCommands = KeyCommands.useKeyCommands(memo);
|
2026-07-20 16:05:17 +00:00
|
|
|
};
|
|
|
|
|
export const useScreenReaderEnabled = function useScreenReaderEnabled() {
|
2026-09-10 05:38:07 +00:00
|
|
|
const effect = noop.useEffect(() => {
|
|
|
|
|
const result = AccessibilityManagerDefault.checkScreenreaderEnabled();
|
2026-07-20 16:05:17 +00:00
|
|
|
}, []);
|
|
|
|
|
};
|