2026-09-24 16:03:38 +00:00
|
|
|
// Module ID: 18273
|
|
|
|
|
// Function ID: 18274
|
2026-09-18 19:45:33 +00:00
|
|
|
// Name: VoicePanelManager
|
2026-09-24 16:03:38 +00:00
|
|
|
// Dependencies: [2045, 4813, 4998, 7397, 2]
|
2026-09-18 19:45:33 +00:00
|
|
|
|
2026-09-24 16:03:38 +00:00
|
|
|
// Module 18273 (VoicePanelManager)
|
2026-09-21 19:31:18 +00:00
|
|
|
import ChannelStore from "ChannelStore" /* 2045 */;
|
2026-09-24 16:03:38 +00:00
|
|
|
import RTCConnectionStore from "RTCConnectionStore" /* 4813 */;
|
|
|
|
|
import VoicePanelStore from "VoicePanelStore" /* 4998 */;
|
|
|
|
|
import AutomaticLifecycleManager from "AutomaticLifecycleManager" /* 7397 */;
|
2026-09-18 19:45:33 +00:00
|
|
|
|
|
|
|
|
const prototype = function VoicePanelManager() {
|
|
|
|
|
const applyArgumentsResult = HermesBuiltin.applyArguments(new.target, new.target);
|
|
|
|
|
applyArgumentsResult.actions = {
|
|
|
|
|
VOICE_CHANNEL_SELECT() {
|
|
|
|
|
const channelId = RTCConnectionStore.getChannelId();
|
|
|
|
|
if (null != channelId) {
|
2026-09-21 19:31:18 +00:00
|
|
|
state = VoicePanelStore.getState();
|
2026-09-21 13:40:21 +00:00
|
|
|
const channel = ChannelStore.getChannel(channelId);
|
|
|
|
|
let isGuildStageVoiceResult;
|
|
|
|
|
if (channel != null) {
|
|
|
|
|
isGuildStageVoiceResult = channel.isGuildStageVoice();
|
|
|
|
|
}
|
|
|
|
|
if (isGuildStageVoiceResult) {
|
|
|
|
|
state.closeChannel(channelId);
|
|
|
|
|
} else {
|
|
|
|
|
const channels = state.channels;
|
|
|
|
|
if (!channels.has(channelId)) {
|
|
|
|
|
state.openChannel(channelId);
|
|
|
|
|
}
|
2026-09-18 19:45:33 +00:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
RTC_CONNECTION_STATE() {
|
|
|
|
|
const channelId = RTCConnectionStore.getChannelId();
|
|
|
|
|
if (null != channelId) {
|
2026-09-21 19:31:18 +00:00
|
|
|
state = VoicePanelStore.getState();
|
2026-09-21 13:40:21 +00:00
|
|
|
const channel = ChannelStore.getChannel(channelId);
|
|
|
|
|
let isGuildStageVoiceResult;
|
|
|
|
|
if (channel != null) {
|
|
|
|
|
isGuildStageVoiceResult = channel.isGuildStageVoice();
|
|
|
|
|
}
|
|
|
|
|
if (isGuildStageVoiceResult) {
|
|
|
|
|
state.closeChannel(channelId);
|
|
|
|
|
} else {
|
|
|
|
|
const channels = state.channels;
|
|
|
|
|
if (!channels.has(channelId)) {
|
|
|
|
|
state.openChannel(channelId);
|
|
|
|
|
}
|
2026-09-18 19:45:33 +00:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
};
|
|
|
|
|
return applyArgumentsResult;
|
|
|
|
|
}.prototype;
|
|
|
|
|
class prototype extends tmp2 {
|
|
|
|
|
}
|
|
|
|
|
const prototype1 = new prototype();
|
|
|
|
|
const size = fn(2);
|
|
|
|
|
const result = size.fileFinishedImporting("modules/voice_panel/VoicePanelManager.native.tsx");
|
|
|
|
|
|
|
|
|
|
export default prototype1;
|