// Module ID: 16780 // Function ID: 16781 // Name: handleFocusParticipant // Dependencies: [4544, 4778, 5043, 2] // Module 16780 (handleFocusParticipant) import initializeDefault from "initialize" /* 5043 */; import closure_0 from "createRTCConnection" /* 4544 */; import closure_1 from "getParticipants" /* 4778 */; initializeDefault; class ParticipantFocusManager extends tmp2 { constructor() { applyArgumentsResult = HermesBuiltin.applyArguments(new.target, new.target); map = new Map(); applyArgumentsResult.stores = map.set(closure_1, applyArgumentsResult.handleFocusParticipant); return applyArgumentsResult; } } ParticipantFocusManager.prototype["handleFocusParticipant"] = function handleFocusParticipant() { channelId = channelId.getChannelId(); if (null != channelId) { channelId = store.getSelectedParticipantId(channelId); const videoParticipants = store.getVideoParticipants(channelId); const rTCConnection = channelId.getRTCConnection(); if (rTCConnection != null) { const found = videoParticipants.find((id) => id.id === closure_0 && !id.localVideoDisabled); let id; if (found != null) { id = found.id; } const result = rTCConnection.setSelectedParticipant(id); } } }; const participantFocusManager = new ParticipantFocusManager(); let result = require("set").fileFinishedImporting("modules/calls/ParticipantFocusManager.tsx"); export default participantFocusManager;