decord/source/components_native/MainShared.tsx

74 lines
3.2 KiB
TypeScript
Raw Normal View History

2026-07-31 08:44:05 +00:00
// Module ID: 15757
// Function ID: 15758
2026-07-20 16:05:17 +00:00
// Name: BurstReactionAnimationContainer
2026-07-31 08:44:05 +00:00
// Dependencies: [19, 17, 1372, 4265, 21, 589, 10536, 4044, 10703, 15758, 500, 13651, 1236, 15760, 13646, 13518, 2, 15761, 15762, 15763, 15764, 15772, 15775, 15802]
2026-07-20 16:05:17 +00:00
// Exports: PictureInPictureGlobalContainer, useAppKeyCommands, useScreenReaderEnabled
2026-07-31 08:44:05 +00:00
// Module 15757 (BurstReactionAnimationContainer)
2026-07-29 08:29:29 +00:00
import ActionSheetPresenter from "ActionSheetPresenter";
import { NativeModules } from "BurstReactionAnimationContainerInner";
import ensureGuildLoaded from "ensureGuildLoaded";
import createRTCConnection from "createRTCConnection";
import { jsx } from "MuteDeafen";
2026-07-20 16:05:17 +00:00
2026-07-23 10:11:24 +00:00
const require = arg1;
2026-07-29 08:29:29 +00:00
let result = require("ensureGuildLoaded").fileFinishedImporting("components_native/MainShared.tsx");
2026-07-23 10:11:24 +00:00
export const BurstReactionAnimationContainer = require("BurstReactionAnimationContainerInner");
export const MenuContainer = require("MenuContainer");
export const ActionSheetContainer = require("ActionSheetPresenter");
2026-07-29 08:29:29 +00:00
export const Alerts = require("StyleSheet");
export const SoundPlayer = require("MuteDeafen");
export const MainViewTooltipActionSheetsV2 = require("trackActionSheetImpression");
2026-07-23 10:11:24 +00:00
export const ToastContainer = require("AnimatedToast");
2026-07-20 16:05:17 +00:00
export const PictureInPictureGlobalContainer = function PictureInPictureGlobalContainer() {
2026-07-29 08:29:29 +00:00
let obj = require(589) /* initialize */;
const items = [ensureGuildLoaded, createRTCConnection];
const stateFromStores = obj.useStateFromStores(items, () => channel.getChannel(channelId.getChannelId()));
2026-07-31 08:44:05 +00:00
const hasPipParticipant = require(10536) /* usePipVideoOrStream */.useHasPipParticipant({ isActivityViewFocused: false });
const obj2 = require(10536) /* usePipVideoOrStream */;
const isModalOpen = require(4044) /* navigationToRootTabHelper */.useIsModalOpen();
require(10703) /* isVoicePanelEnabled */;
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) {
obj = { channel: null };
obj[0] = stateFromStores;
2026-07-31 08:44:05 +00:00
tmp7 = jsx(importDefault(15758), { channel: null });
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() {
const memo = React.useMemo(() => {
2026-07-29 08:29:29 +00:00
let obj = callback(table[10]);
if (obj.isAndroid()) {
let keyModifierCommand = callback2(tmp2[11]).getConstants().keyModifierCommand;
const obj2 = callback2(tmp2[11]);
2026-07-20 16:05:17 +00:00
} else {
2026-07-29 08:29:29 +00:00
keyModifierCommand = KeyCommandsView.KeyCommandsView.keyModifierCommand;
2026-07-20 16:05:17 +00:00
}
2026-07-29 08:29:29 +00:00
obj = { input: "k", modifierFlags: keyModifierCommand, eventName: "keyCommandShowQuickSwitcher", discoverabilityTitle: null, onKeyCommand: null };
const intl = tmp(tmp2[12]).intl;
obj[3] = intl.string(callback(table[12]).t.yYsRlD);
obj[4] = function onKeyCommand() {
callback(table[13])();
2026-07-20 16:05:17 +00:00
};
const items = [obj];
return items;
}, []);
2026-07-31 08:44:05 +00:00
const keyCommands = require(13646) /* KeyCommandsView */.useKeyCommands(memo);
2026-07-20 16:05:17 +00:00
};
export const useScreenReaderEnabled = function useScreenReaderEnabled() {
const effect = React.useEffect(() => {
2026-07-29 08:29:29 +00:00
const result = callback(table[15]).checkScreenreaderEnabled();
2026-07-20 16:05:17 +00:00
}, []);
};