decord/source/modules/connectivity/native/useGlobalStatusIndicatorState.tsx

102 lines
3.2 KiB
TypeScript
Raw Normal View History

2026-07-28 08:39:19 +00:00
// Module ID: 10663
// Function ID: 82908
2026-07-20 16:05:17 +00:00
// Name: useGlobalStatusIndicatorState
2026-07-28 08:39:19 +00:00
// Dependencies: [1348, 4237, 10664, 653, 10498, 8905, 566, 10662, 10660, 4016, 4376, 10665, 10666, 2]
2026-07-20 16:05:17 +00:00
// Exports: useGlobalStatusIndicatorState
2026-07-28 08:39:19 +00:00
// Module 10663 (useGlobalStatusIndicatorState)
2026-07-23 10:11:24 +00:00
import _isNativeReflectConstruct from "_isNativeReflectConstruct";
import closure_4 from "_isNativeReflectConstruct";
import { RTC_PANEL_HEIGHT } from "RTC_PANEL_HEIGHT";
import { EMPTY_STRING_SNOWFLAKE_ID } from "ME";
const require = arg1;
const result = require("RTC_PANEL_HEIGHT").fileFinishedImporting("modules/connectivity/native/useGlobalStatusIndicatorState.tsx");
2026-07-20 16:05:17 +00:00
export const useGlobalStatusIndicatorState = function useGlobalStatusIndicatorState(flag) {
let hasPipParticipant;
let voicePanelEnabled;
if (flag === undefined) {
flag = false;
}
2026-07-23 10:11:24 +00:00
let stateFromStores;
2026-07-20 16:05:17 +00:00
let importDefault;
2026-07-28 08:39:19 +00:00
let obj = stateFromStores(10498);
2026-07-20 16:05:17 +00:00
hasPipParticipant = obj.useHasPipParticipant({ isActivityViewFocused: false });
2026-07-28 08:39:19 +00:00
const tmp2 = importDefault(8905)();
2026-07-20 16:05:17 +00:00
const items = [closure_4];
2026-07-23 10:11:24 +00:00
stateFromStores = stateFromStores(566).useStateFromStores(items, () => outer1_4.getChannelId());
2026-07-28 08:39:19 +00:00
const tmp4 = importDefault(10662)();
2026-07-20 16:05:17 +00:00
importDefault = tmp4;
2026-07-23 10:11:24 +00:00
const obj2 = stateFromStores(566);
const items1 = [_isNativeReflectConstruct];
2026-07-20 16:05:17 +00:00
const items2 = [stateFromStores, tmp4];
2026-07-23 10:11:24 +00:00
const stateFromStores1 = stateFromStores(566).useStateFromStores(items1, () => {
const channel = outer1_3.getChannel(stateFromStores);
2026-07-20 16:05:17 +00:00
let isGuildStageVoiceResult;
if (null != channel) {
isGuildStageVoiceResult = channel.isGuildStageVoice();
}
if (isGuildStageVoiceResult) {
2026-07-23 10:11:24 +00:00
isGuildStageVoiceResult = !c1;
2026-07-20 16:05:17 +00:00
}
return isGuildStageVoiceResult;
}, items2);
2026-07-23 10:11:24 +00:00
const obj3 = stateFromStores(566);
2026-07-28 08:39:19 +00:00
let num = stateFromStores(10660).useGetStageRTCPanelHeight(stateFromStores);
stateFromStores(4016);
2026-07-20 16:05:17 +00:00
let tmp9 = null != tmp2;
if (tmp9) {
let channelId = tmp2.channelId;
if (null == channelId) {
channelId = EMPTY_STRING_SNOWFLAKE_ID;
}
2026-07-28 08:39:19 +00:00
tmp9 = stateFromStores(4376).getVoiceChannelKey(channelId) !== tmp8;
const obj5 = stateFromStores(4376);
2026-07-20 16:05:17 +00:00
}
obj = {};
2026-07-28 08:39:19 +00:00
const obj4 = stateFromStores(10660);
obj.voicePanelEnabled = stateFromStores(10665).useIsVoicePanelShowing();
2026-07-20 16:05:17 +00:00
obj.isRemoteVisible = tmp9;
obj.isVoiceChannelSelected = null != stateFromStores;
obj.hasPipParticipant = hasPipParticipant;
obj.showWhenParticipantOnScreen = flag;
2026-07-28 08:39:19 +00:00
obj.isConnectedToStageChannel = null != importDefault(10666)();
2026-07-20 16:05:17 +00:00
obj.isInvitedToSpeak = tmp4;
({ voicePanelEnabled, hasPipParticipant } = obj);
if (!voicePanelEnabled) {
let tmp16 = !obj.isRemoteVisible;
if (tmp16) {
tmp16 = !tmp14 || !tmp15;
const tmp17 = !tmp14 || !tmp15;
}
if (tmp16) {
let tmp18 = !tmp12;
if (!tmp18) {
if (hasPipParticipant) {
hasPipParticipant = !tmp13;
}
tmp18 = hasPipParticipant;
}
tmp16 = tmp18;
}
voicePanelEnabled = tmp16;
}
let tmp19 = !voicePanelEnabled;
if (!tmp19) {
num = 0;
if (tmp19) {
num = RTC_PANEL_HEIGHT;
}
}
obj = { height: num, isVisible: tmp19 };
if (tmp19) {
tmp19 = tmp6;
}
if (tmp19) {
tmp19 = !stateFromStores1;
}
obj.isCustomBackground = tmp19;
return obj;
};