// Module ID: 15848 // Function ID: 15849 // Name: MuteDeafen // Dependencies: [19, 1371, 10478, 4269, 15849, 1376, 4274, 1218, 1372, 1862, 4302, 9639, 4326, 1931, 5089, 4271, 4327, 676, 21, 589, 9665, 4439, 4318, 3873, 1351, 5762, 2] // Exports: default // Module 15848 (MuteDeafen) import initialize from "initialize"; import participantFromServer from "participantFromServer"; import { NO_ACTIVITIES } from "participantFromServer"; import map from "map"; import set from "set"; import handleProjectUpsert from "handleProjectUpsert"; import { SILENT_JOIN_LEAVE_CHANNEL_TYPES as closure_8 } from "createChannelRecord"; import reset from "reset"; import fetchFingerprint from "fetchFingerprint"; import ensureGuildLoaded from "ensureGuildLoaded"; import createGuildRecordFromRust from "createGuildRecordFromRust"; import _detectH265HardwareDecode from "_detectH265HardwareDecode"; import DesktopNotificationTypes from "DesktopNotificationTypes"; import createRTCConnection from "createRTCConnection"; import handleConnectionOpen from "handleConnectionOpen"; import anyoneHasFlagInContext from "anyoneHasFlagInContext"; import updateVoiceState from "updateVoiceState"; import getVoiceStatesForGuild from "getVoiceStatesForGuild"; import ME from "ME"; import jsxProd from "useAudienceRequestToSpeakState"; let closure_20; let closure_21; let closure_22; let closure_23; let closure_24; let closure_25; const require = arg1; function MuteDeafen() { const items = [_detectH265HardwareDecode, handleConnectionOpen]; const f98091 = () => ({ inVoiceChannel: null != voiceChannelId.getVoiceChannelId(), selfMute: _detectH265HardwareDecode.isSelfMute(), selfDeaf: _detectH265HardwareDecode.isSelfDeaf(), audioPermissionReady: _detectH265HardwareDecode.isNativeAudioPermissionReady(), shouldSkipMuteUnmuteSound: _detectH265HardwareDecode.shouldSkipMuteUnmuteSound() }); const f98092 = (selfDeaf) => { let inVoiceChannel; let selfMute; ({ inVoiceChannel, selfMute, selfDeaf } = arg1); if (inVoiceChannel) { if (selfDeaf.selfDeaf !== selfDeaf) { let str2 = "undeafen"; if (selfDeaf) { str2 = "deafen"; } return str2; } else if (tmp) { if (selfDeaf.selfMute !== selfMute) { if (tmp2) { const result = _detectH265HardwareDecode.notifyMuteUnmuteSoundWasSkipped(); } else { let str = "unmute"; if (selfMute) { str = "mute"; } } } } } }; const effect = f98092.useEffect(() => { let closure_0 = batchedStoreListener(); batchedStoreListener = new items(f98109[19]).BatchedStoreListener(closure_0, () => { const tmp = batchedStoreListener(); const tmp2 = outer1_2(closure_0, tmp); let isSoundDisabledResult = null == tmp2; if (!isSoundDisabledResult) { isSoundDisabledResult = outer2_14.isSoundDisabled(tmp2); } if (!isSoundDisabledResult) { items(f98109[20]).playSound(tmp2, 0.4); const obj = items(f98109[20]); } closure_0 = tmp; }); batchedStoreListener.attach("useSound"); return () => batchedStoreListener.detach(); }); return null; } function Camera() { const items = [_detectH265HardwareDecode, handleConnectionOpen]; const f98093 = () => ({ videoEnabled: videoEnabled.isVideoEnabled(), inVoiceChannel: null != voiceChannelId.getVoiceChannelId() }); const f98094 = (videoEnabled, videoEnabled2) => { videoEnabled = videoEnabled2.videoEnabled; if (videoEnabled.videoEnabled !== videoEnabled) { if (videoEnabled.inVoiceChannel) { if (videoEnabled2.inVoiceChannel) { let str = "camera_off"; if (videoEnabled) { str = "camera_on"; } return str; } } } }; const effect = f98094.useEffect(() => { let closure_0 = batchedStoreListener(); batchedStoreListener = new items(f98109[19]).BatchedStoreListener(closure_0, () => { const tmp = batchedStoreListener(); const tmp2 = outer1_2(closure_0, tmp); let isSoundDisabledResult = null == tmp2; if (!isSoundDisabledResult) { isSoundDisabledResult = outer2_14.isSoundDisabled(tmp2); } if (!isSoundDisabledResult) { items(f98109[20]).playSound(tmp2, 0.4); const obj = items(f98109[20]); } closure_0 = tmp; }); batchedStoreListener.attach("useSound"); return () => batchedStoreListener.detach(); }); return null; } function RTCConnect() { const items = [ensureGuildLoaded, createRTCConnection, handleConnectionOpen, set]; const f98095 = () => { channel = channel.getChannel(voiceChannelId.getVoiceChannelId()); let type; if (channel != null) { type = channel.type; } let guildId; if (channel != null) { guildId = channel.getGuildId(); } const wasEverRtcConnected = store2.getWasEverRtcConnected(); const state = store2.getState(); const obj = { channelType: type, guildId, connected: state === constants.RTC_CONNECTED, connectHasStarted: null, awaitingRemote: null, connectedRemote: null }; let tmp6 = !wasEverRtcConnected; if (!wasEverRtcConnected) { tmp6 = state !== tmp5.DISCONNECTED; } if (!tmp6) { tmp6 = state === tmp5.RTC_CONNECTED; } obj[3] = tmp6; obj[4] = null != store.getAwaitingRemoteSessionInfo(); obj[5] = null != store.getRemoteSessionId(); return obj; }; const f98096 = (channelType) => { let connectedRemote; ({ channelType, connectedRemote } = arg1); const channelType2 = channelType.channelType; if (channelType.connectHasStarted) { if (tmp4) { if (!tmp) { if (!tmp3) { if (!connectedRemote) { return "disconnect"; } } } } } return "user_join"; }; const effect = f98096.useEffect(() => { let closure_0 = batchedStoreListener(); batchedStoreListener = new items(f98109[19]).BatchedStoreListener(closure_0, () => { const tmp = batchedStoreListener(); const tmp2 = outer1_2(closure_0, tmp); let isSoundDisabledResult = null == tmp2; if (!isSoundDisabledResult) { isSoundDisabledResult = outer2_14.isSoundDisabled(tmp2); } if (!isSoundDisabledResult) { items(f98109[20]).playSound(tmp2, 0.4); const obj = items(f98109[20]); } closure_0 = tmp; }); batchedStoreListener.attach("useSound"); return () => batchedStoreListener.detach(); }); return null; } function Speaking() { const items = [anyoneHasFlagInContext]; const f98097 = () => currentUserPTTActive.isCurrentUserPTTActive(); const f98098 = (arg0, arg1) => { if (arg0 !== arg1) { if (_detectH265HardwareDecode.getMode() === constants.PUSH_TO_TALK) { if (!isSelfMuteResult) { let str = "ptt_stop"; if (arg1) { str = "ptt_start"; } return str; } } isSelfMuteResult = _detectH265HardwareDecode.isSelfMute(); } }; const effect = f98098.useEffect(() => { let closure_0 = batchedStoreListener(); batchedStoreListener = new items(f98109[19]).BatchedStoreListener(closure_0, () => { const tmp = batchedStoreListener(); const tmp2 = outer1_2(closure_0, tmp); let isSoundDisabledResult = null == tmp2; if (!isSoundDisabledResult) { isSoundDisabledResult = outer2_14.isSoundDisabled(tmp2); } if (!isSoundDisabledResult) { items(f98109[20]).playSound(tmp2, 0.4); const obj = items(f98109[20]); } closure_0 = tmp; }); batchedStoreListener.attach("useSound"); return () => batchedStoreListener.detach(); }); return null; } function SelfMutedTemporarily() { const items = [_detectH265HardwareDecode]; const f98099 = () => _detectH265HardwareDecode.isSelfMutedTemporarily(); const f98100 = (arg0, arg1) => { if (arg0 !== arg1) { if (_detectH265HardwareDecode.getMode() === constants.VOICE_ACTIVITY) { if (!isSelfMuteResult) { let str = "ptt_start"; if (arg1) { str = "ptt_stop"; } return str; } } isSelfMuteResult = _detectH265HardwareDecode.isSelfMute(); } }; const effect = f98100.useEffect(() => { let closure_0 = batchedStoreListener(); batchedStoreListener = new items(f98109[19]).BatchedStoreListener(closure_0, () => { const tmp = batchedStoreListener(); const tmp2 = outer1_2(closure_0, tmp); let isSoundDisabledResult = null == tmp2; if (!isSoundDisabledResult) { isSoundDisabledResult = outer2_14.isSoundDisabled(tmp2); } if (!isSoundDisabledResult) { items(f98109[20]).playSound(tmp2, 0.4); const obj = items(f98109[20]); } closure_0 = tmp; }); batchedStoreListener.attach("useSound"); return () => batchedStoreListener.detach(); }); return null; } function PriorityVAD() { const items = [anyoneHasFlagInContext]; const f98101 = () => currentUserPrioritySpeaker.isCurrentUserPrioritySpeaker(); const f98102 = (arg0, arg1) => { if (arg0 !== arg1) { if (_detectH265HardwareDecode.getMode() === constants.VOICE_ACTIVITY) { if (!isSelfMuteResult) { let str = "ptt_stop"; if (arg1) { str = "ptt_start"; } return str; } } isSelfMuteResult = _detectH265HardwareDecode.isSelfMute(); } }; const effect = f98102.useEffect(() => { let closure_0 = batchedStoreListener(); batchedStoreListener = new items(f98109[19]).BatchedStoreListener(closure_0, () => { const tmp = batchedStoreListener(); const tmp2 = outer1_2(closure_0, tmp); let isSoundDisabledResult = null == tmp2; if (!isSoundDisabledResult) { isSoundDisabledResult = outer2_14.isSoundDisabled(tmp2); } if (!isSoundDisabledResult) { items(f98109[20]).playSound(tmp2, 0.4); const obj = items(f98109[20]); } closure_0 = tmp; }); batchedStoreListener.attach("useSound"); return () => batchedStoreListener.detach(); }); return null; } function UserHasBeenMoved() { const items = [updateVoiceState]; const f98103 = () => obj.userHasBeenMovedVersion; const f98104 = (arg0, arg1) => { if (arg0 !== arg1) { return "user_moved"; } }; const effect = f98104.useEffect(() => { let closure_0 = batchedStoreListener(); batchedStoreListener = new items(f98109[19]).BatchedStoreListener(closure_0, () => { const tmp = batchedStoreListener(); const tmp2 = outer1_2(closure_0, tmp); let isSoundDisabledResult = null == tmp2; if (!isSoundDisabledResult) { isSoundDisabledResult = outer2_14.isSoundDisabled(tmp2); } if (!isSoundDisabledResult) { items(f98109[20]).playSound(tmp2, 0.4); const obj = items(f98109[20]); } closure_0 = tmp; }); batchedStoreListener.attach("useSound"); return () => batchedStoreListener.detach(); }); return null; } function UserInvitedToSpeak() { const items = [handleConnectionOpen, updateVoiceState]; const f98105 = () => { voiceChannelId = voiceChannelId.getVoiceChannelId(); if (null == voiceChannelId) { return items(f98105[21]).RequestToSpeakStates.NONE; } else { voiceStateForChannel = voiceStateForChannel.getVoiceStateForChannel(voiceChannelId); return items(f98105[21]).getAudienceRequestToSpeakState(voiceStateForChannel); } }; const f98106 = (arg0, arg1) => { if (arg0 !== arg1) { if (arg1 === items(f98105[21]).RequestToSpeakStates.REQUESTED_TO_SPEAK_AND_AWAITING_USER_ACK) { return "reconnect"; } } }; const effect = f98106.useEffect(() => { let closure_0 = batchedStoreListener(); batchedStoreListener = new items(f98109[19]).BatchedStoreListener(closure_0, () => { const tmp = batchedStoreListener(); const tmp2 = outer1_2(closure_0, tmp); let isSoundDisabledResult = null == tmp2; if (!isSoundDisabledResult) { isSoundDisabledResult = outer2_14.isSoundDisabled(tmp2); } if (!isSoundDisabledResult) { items(f98109[20]).playSound(tmp2, 0.4); const obj = items(f98109[20]); } closure_0 = tmp; }); batchedStoreListener.attach("useSound"); return () => batchedStoreListener.detach(); }); return null; } function VoiceChannel() { let items = [handleConnectionOpen, reset, fetchFingerprint, updateVoiceState, ensureGuildLoaded]; const f98107 = () => { voiceChannelId = voiceChannelId.getVoiceChannelId(); const currentUserId = id.getId(); const items = []; allActiveStreams = allActiveStreams.getAllActiveStreams(); let streamingUserIds = items; let voiceChannelUserCount; let channelType; if (null != voiceChannelId) { const channel = store.getChannel(voiceChannelId); streamingUserIds = items; if (null != channel) { const result = getVoiceStatesForGuild.countVoiceStatesForChannel(channel.id); let num = 0; if (inChannel.isInChannel(channel.id)) { num = 1; } voiceChannelUserCount = result - num; const allApplicationStreamsForChannel = obj.getAllApplicationStreamsForChannel(channel.id); streamingUserIds = allApplicationStreamsForChannel.map((ownerId) => ownerId.ownerId); channelType = channel.type; } } if (1 === allActiveStreams.length) { let first = allActiveStreams[0]; } else { first = obj.getCurrentUserActiveStream(); } let state; if (first != null) { state = first.state; } if (state === constants.CONNECTING) { first = null; } let singleActiveStreamViewerCount = 0; let singleActiveStreamKey = null; if (null != first) { const encodeStreamKeyResult = currentUserId(f98107[22]).encodeStreamKey(first); const viewerIds = obj.getViewerIds(encodeStreamKeyResult); singleActiveStreamViewerCount = viewerIds.filter((arg0) => arg0 !== currentUserId).length; singleActiveStreamKey = encodeStreamKeyResult; const obj2 = currentUserId(f98107[22]); } return { channelType, voiceChannelId, voiceChannelUserCount, streamingUserIds, singleActiveStreamKey, singleActiveStreamViewerCount, currentUserId, allActiveStreams }; }; const f98108 = (voiceChannelId) => { let channelType; let f98108; let singleActiveStreamKey; let singleActiveStreamViewerCount; let streamingUserIds; let voiceChannelUserCount; let closure_0 = voiceChannelId; ({ channelType, voiceChannelId, voiceChannelUserCount, streamingUserIds } = arg1); ({ singleActiveStreamKey, singleActiveStreamViewerCount, currentUserId: f98108 } = arg1); let participantFromServer; if (voiceChannelId.voiceChannelId === voiceChannelId) { if (null != voiceChannelId) { const channel = store.getChannel(voiceChannelId); let flag = false; if (null != channel) { const guildId = channel.getGuildId(); flag = false; if (null != guildId) { guild = guild.getGuild(guildId); flag = null != guild && guild.afkChannelId === channel.id; const tmp4 = null != guild && guild.afkChannelId === channel.id; } } if (!flag) { const allActiveStreams = voiceChannelId.allActiveStreams; participantFromServer = allActiveStreams.map((ownerId) => ownerId.ownerId); const streamingUserIds2 = voiceChannelId.streamingUserIds; let str = "stream_started"; if (!someResult) { let str2 = "stream_ended"; if (!tmp8) { if (voiceChannelId.singleActiveStreamViewerCount <= 25) { if (tmp6) { let str3 = "stream_user_joined"; } str2 = str3; } if (null != voiceChannelId.voiceChannelUserCount) { if (null != voiceChannelUserCount) { if (voiceChannelId.voiceChannelUserCount <= 25) { let str4 = "user_join"; } str3 = str4; } } if (null != voiceChannelId.voiceChannelUserCount) { if (null != voiceChannelUserCount) { if (voiceChannelId.voiceChannelUserCount <= 25) { let str5 = "user_leave"; } str4 = str5; } } let str6; if (voiceChannelId.singleActiveStreamViewerCount <= 25) { if (tmp6) { if (singleActiveStreamViewerCount < voiceChannelId.singleActiveStreamViewerCount) { str6 = "stream_user_left"; } } } str5 = str6; } str = str2; } return str; } } } }; const effect = f98108.useEffect(() => { let closure_0 = batchedStoreListener(); batchedStoreListener = new items(f98109[19]).BatchedStoreListener(closure_0, () => { const tmp = batchedStoreListener(); const tmp2 = outer1_2(closure_0, tmp); let isSoundDisabledResult = null == tmp2; if (!isSoundDisabledResult) { isSoundDisabledResult = outer2_14.isSoundDisabled(tmp2); } if (!isSoundDisabledResult) { items(f98109[20]).playSound(tmp2, 0.4); const obj = items(f98109[20]); } closure_0 = tmp; }); batchedStoreListener.attach("useSound"); return () => batchedStoreListener.detach(); }); return null; } function ActivitySounds() { const items = [handleConnectionOpen, participantFromServer, map, fetchFingerprint, ensureGuildLoaded, handleProjectUpsert]; const f98109 = () => { const voiceChannelId = store.getVoiceChannelId(); const channelId = store.getChannelId(); let obj = connectedActivityLocation; connectedActivityLocation = connectedActivityLocation.getConnectedActivityLocation(); const embeddedActivityLocationChannelId = items(f98109[23]).getEmbeddedActivityLocationChannelId(connectedActivityLocation); id = id.getId(); const obj2 = items(f98109[23]); if (obj3.isNotNullish(channelId)) { let embeddedActivitiesForChannel = obj.getEmbeddedActivitiesForChannel(channelId); } else { embeddedActivitiesForChannel = closure_4; } let tmp4Result = tmp4(tmp5[24]); if (tmp4Result.isNotNullish(voiceChannelId)) { let embeddedActivitiesForChannel1 = obj.getEmbeddedActivitiesForChannel(voiceChannelId); } else { embeddedActivitiesForChannel1 = closure_4; } tmp4Result = tmp4(tmp5[24]); if (tmp4Result.isNotNullish(embeddedActivityLocationChannelId)) { let embeddedActivitiesForChannel2 = obj.getEmbeddedActivitiesForChannel(embeddedActivityLocationChannelId); } else { embeddedActivitiesForChannel2 = closure_4; } obj3 = items(f98109[24]); let selfEmbeddedActivityForLocation = null; if (tmp4Result1.isNotNullish(connectedActivityLocation)) { selfEmbeddedActivityForLocation = obj.getSelfEmbeddedActivityForLocation(connectedActivityLocation); } connectedFrame = connectedFrame.getConnectedFrame(); let channelId1; if (connectedFrame != null) { channelId1 = connectedFrame.channelId; } let result = null == channelId1; if (result) { let applicationId; if (connectedFrame != null) { applicationId = connectedFrame.applicationId; } result = ownedVibegrationsProjectApplication.isOwnedVibegrationsProjectApplication(applicationId); } obj = { connectedActivityLocation, voiceChannelId, currentUserId: id, channelActivities: embeddedActivitiesForChannel, connectedChannelActivities: embeddedActivitiesForChannel2, userConnectedActivity: selfEmbeddedActivityForLocation, voiceChannelActivities: embeddedActivitiesForChannel1, connectedFrame, inVibegrationsChannel: null }; let channelId2; if (connectedFrame != null) { channelId2 = connectedFrame.channelId; } let result1 = null != channelId2; if (result1) { let channelId3; if (connectedFrame != null) { channelId3 = connectedFrame.channelId; } result1 = tmp4(tmp5[25]).isVibegrationsChannelCandidate(channel.getChannel(channelId3), "ActivitySounds"); const tmp4Result2 = tmp4(tmp5[25]); } if (!result1) { result1 = result; } obj[8] = result1; return obj; }; const f98110 = (voiceChannelActivities) => { let channelActivities; let connectedActivityLocation; let connectedChannelActivities; let connectedFrame; let inVibegrationsChannel; let items; let userConnectedActivity; let voiceChannelId; ({ connectedActivityLocation, currentUserId: items, userConnectedActivity } = arg1); ({ voiceChannelActivities, connectedFrame, voiceChannelId, channelActivities, connectedChannelActivities, inVibegrationsChannel } = arg1); const someResult = voiceChannelActivities.some((applicationId) => { applicationId = undefined; if (userConnectedActivity != null) { applicationId = tmp.applicationId; } return applicationId.applicationId === applicationId && applicationId.launchId === userConnectedActivity.launchId; }); let str; if (obj.isNotNullish(voiceChannelId)) { const prop = voiceChannelActivities.voiceChannelActivities; const found = prop.find((userIds) => { userIds = userIds.userIds; return userIds.has(closure_0); }); const found1 = voiceChannelActivities.find((userIds) => { userIds = userIds.userIds; return userIds.has(closure_0); }); let isNotNullishResult = voiceChannelActivities.voiceChannelActivities.length < voiceChannelActivities.length; if (isNotNullishResult) { let tmp2Result = tmp2(tmp3[24]); isNotNullishResult = tmp2Result.isNotNullish(voiceChannelActivities.voiceChannelId); } let str2; if (isNotNullishResult) { str2 = "activity_launch"; } let isNotNullishResult1 = undefined === found1; if (isNotNullishResult1) { tmp2Result = tmp2(tmp3[24]); isNotNullishResult1 = tmp2Result.isNotNullish(found); } if (isNotNullishResult1) { str2 = "activity_end"; } let isNotNullishResult2 = undefined === found; if (isNotNullishResult2) { isNotNullishResult2 = tmp2(tmp3[24]).isNotNullish(found1); const tmp2Result1 = tmp2(tmp3[24]); } if (isNotNullishResult2) { isNotNullishResult2 = found1.userIds.size > 1; } if (isNotNullishResult2) { str2 = "activity_user_join"; } let isNotNullishResult3 = tmp2(tmp3[24]).isNotNullish(found1); if (isNotNullishResult3) { isNotNullishResult3 = tmp2(tmp3[24]).isNotNullish(found); const tmp2Result3 = tmp2(tmp3[24]); } str = str2; if (isNotNullishResult3) { if (found1.userIds.size > found.userIds.size) { str2 = "activity_user_join"; } if (found1.userIds.size < found.userIds.size) { str2 = "activity_user_left"; } str = str2; } const tmp2Result2 = tmp2(tmp3[24]); } let str3 = str; if (!someResult) { if (tmp10) { str = "activity_launch"; } const userConnectedActivity2 = voiceChannelActivities.userConnectedActivity; let isNotNullishResult4 = null == userConnectedActivity; if (isNotNullishResult4) { isNotNullishResult4 = tmp2(tmp3[24]).isNotNullish(userConnectedActivity2); const tmp2Result4 = tmp2(tmp3[24]); } if (isNotNullishResult4) { str = "activity_end"; } let isNotNullishResult5 = tmp2(tmp3[24]).isNotNullish(userConnectedActivity); if (isNotNullishResult5) { isNotNullishResult5 = tmp2(tmp3[24]).isNotNullish(userConnectedActivity2); const tmp2Result6 = tmp2(tmp3[24]); } str3 = str; if (isNotNullishResult5) { if (userConnectedActivity.userIds.size > userConnectedActivity2.userIds.size) { str = "activity_user_join"; } if (userConnectedActivity.userIds.size < userConnectedActivity2.userIds.size) { str = "activity_user_left"; } str3 = str; } tmp10 = voiceChannelActivities.connectedChannelActivities.length < connectedChannelActivities.length && voiceChannelActivities.channelActivities.length < channelActivities.length; const tmp2Result5 = tmp2(tmp3[24]); } let tmp14 = null != str3; if (!tmp14) { tmp14 = null == voiceChannelActivities.connectedActivityLocation && null == connectedActivityLocation; const tmp15 = null == voiceChannelActivities.connectedActivityLocation && null == connectedActivityLocation; } let str4 = str3; if (!tmp14) { if (null != voiceChannelActivities.connectedActivityLocation) { if (null == voiceChannelActivities.connectedActivityLocation) { let tmp17 = str3; if (tmp16) { let str7 = "activity_user_join"; if (voiceChannelActivities.userConnectedActivity.userIds.size >= userConnectedActivity.userIds.size) { if (voiceChannelActivities.userConnectedActivity.userIds.size > userConnectedActivity.userIds.size) { str3 = "activity_user_leave"; } str7 = str3; } tmp17 = str7; } let str6 = tmp17; tmp16 = null != userConnectedActivity && null != voiceChannelActivities.userConnectedActivity; } else { str6 = "activity_end"; } let str5 = str6; } else { str5 = "activity_launch"; } str4 = str5; } let tmp18 = null != str4; if (!tmp18) { tmp18 = null == voiceChannelActivities.connectedFrame && null == connectedFrame; const tmp19 = null == voiceChannelActivities.connectedFrame && null == connectedFrame; } let tmp20 = str4; if (!tmp18) { if (null == voiceChannelActivities.connectedFrame) { if (null != connectedFrame) { let str8 = "activity_launch"; } tmp20 = str8; } if (!tmp21) { str4 = "activity_end"; } str8 = str4; tmp21 = null == voiceChannelActivities.connectedFrame || null != connectedFrame || voiceChannelActivities.inVibegrationsChannel; } return tmp20; }; const effect = f98110.useEffect(() => { let closure_0 = batchedStoreListener(); batchedStoreListener = new items(f98109[19]).BatchedStoreListener(closure_0, () => { const tmp = batchedStoreListener(); const tmp2 = outer1_2(closure_0, tmp); let isSoundDisabledResult = null == tmp2; if (!isSoundDisabledResult) { isSoundDisabledResult = outer2_14.isSoundDisabled(tmp2); } if (!isSoundDisabledResult) { items(f98109[20]).playSound(tmp2, 0.4); const obj = items(f98109[20]); } closure_0 = tmp; }); batchedStoreListener.attach("useSound"); return () => batchedStoreListener.detach(); }); return null; } ({ InputModes: closure_20, ApplicationStreamStates: closure_21, RTCConnectionStates: closure_22 } = ME); ({ jsx: closure_23, Fragment: closure_24, jsxs: closure_25 } = jsxProd); let result = require("map").fileFinishedImporting("modules/soundplayer/SoundPlayer.tsx"); export default function SoundPlayer() { const obj = { children: null }; const items = [callback(MuteDeafen, {}), callback(Camera, {}), callback(RTCConnect, {}), callback(Speaking, {}), callback(SelfMutedTemporarily, {}), callback(UserHasBeenMoved, {}), callback(VoiceChannel, {}), callback(UserInvitedToSpeak, {}), callback(ActivitySounds, {}), callback(PriorityVAD, {})]; obj[0] = items; return callback2(closure_24, obj); };