2026-07-27 11:26:19 +00:00
// Module ID: 10461
// Function ID: 81179
2026-07-20 16:05:17 +00:00
// Name: _isNativeReflectConstruct
2026-07-25 08:10:48 +00:00
// Dependencies: [6, 7, 15, 17, 18, 4150, 1194, 4178, 4953, 4144, 4149, 4195, 22, 566, 686, 2]
2026-07-20 16:05:17 +00:00
2026-07-27 11:26:19 +00:00
// Module 10461 (_isNativeReflectConstruct)
2026-07-23 10:11:24 +00:00
import _isNativeReflectConstruct from "_isNativeReflectConstruct" ;
import closure_5 from "_isNativeReflectConstruct" ;
import set from "set" ;
import _getPrototypeOf from "_getPrototypeOf" ;
import _inherits from "_inherits" ;
import closure_9 from "_isNativeReflectConstruct" ;
import closure_10 from "_isNativeReflectConstruct" ;
import closure_11 from "_isNativeReflectConstruct" ;
import closure_12 from "_isNativeReflectConstruct" ;
import closure_13 from "_isNativeReflectConstruct" ;
import { ParticipantTypes } from "ParticipantTypes" ;
import importDefaultResult from "apply" ;
const require = arg1 ;
2026-07-20 16:05:17 +00:00
function _isNativeReflectConstruct() {
let closure_0 = ! valueOf . call ( Reflect . construct ( Boolean , [ ] , ( ) = > {
} ) ) ;
function _isNativeReflectConstruct() {
return closure_0 ;
}
const result = _isNativeReflectConstruct ( ) ;
}
2026-07-23 10:11:24 +00:00
function _createForOfIteratorHelperLoose ( iterable ) {
let closure_0 = iterable ;
iterable = "undefined" !== typeof Symbol ;
if ( iterable ) {
2026-07-20 16:05:17 +00:00
const _Symbol = Symbol ;
2026-07-23 10:11:24 +00:00
iterable = iterable [ Symbol . iterator ] ;
2026-07-20 16:05:17 +00:00
}
2026-07-23 10:11:24 +00:00
if ( ! iterable ) {
iterable = iterable [ Symbol . iterator ] ;
2026-07-20 16:05:17 +00:00
}
2026-07-23 10:11:24 +00:00
if ( iterable ) {
const iter = iterable . call ( iterable ) ;
2026-07-20 16:05:17 +00:00
const next = iter . next ;
return next . bind ( iter ) ;
} else {
const _Array = Array ;
2026-07-23 10:11:24 +00:00
let tmp = iterable ;
if ( ! Array . isArray ( iterable ) ) {
2026-07-20 16:05:17 +00:00
let tmp2 ;
2026-07-23 10:11:24 +00:00
if ( iterable ) {
if ( "string" === typeof iterable ) {
tmp2 = _arrayLikeToArray ( iterable , undefined ) ;
2026-07-20 16:05:17 +00:00
} else {
const toString = { } . toString ;
2026-07-23 10:11:24 +00:00
const substr = toString . call ( iterable ) . slice ( 8 , - 1 ) ;
2026-07-20 16:05:17 +00:00
let name = substr ;
if ( tmp3 ) {
2026-07-23 10:11:24 +00:00
name = iterable . constructor . name ;
2026-07-20 16:05:17 +00:00
}
if ( "Map" !== name ) {
if ( "Set" !== name ) {
if ( "Arguments" === name ) {
2026-07-23 10:11:24 +00:00
let arr = _arrayLikeToArray ( iterable , undefined ) ;
2026-07-20 16:05:17 +00:00
} else {
2026-07-23 10:11:24 +00:00
let obj = /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/ ;
2026-07-20 16:05:17 +00:00
}
}
tmp2 = arr ;
}
const _Array2 = Array ;
2026-07-23 10:11:24 +00:00
arr = Array . from ( iterable ) ;
const callResult = toString . call ( iterable ) ;
tmp3 = "Object" === substr && iterable . constructor ;
2026-07-20 16:05:17 +00:00
}
}
tmp = tmp2 ;
if ( ! tmp2 ) {
const _TypeError = TypeError ;
const typeError = new TypeError ( "Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method." ) ;
throw typeError ;
}
}
if ( tmp ) {
2026-07-23 10:11:24 +00:00
closure_0 = tmp ;
2026-07-20 16:05:17 +00:00
}
2026-07-23 10:11:24 +00:00
let c1 = 0 ;
2026-07-20 16:05:17 +00:00
return ( ) = > {
2026-07-23 10:11:24 +00:00
if ( closure_1 >= length . length ) {
2026-07-20 16:05:17 +00:00
let obj = { done : true } ;
} else {
obj = { done : false } ;
closure_1 = tmp3 + 1 ;
2026-07-23 10:11:24 +00:00
obj . value = length [ + closure_1 ] ;
2026-07-20 16:05:17 +00:00
}
return obj ;
} ;
}
}
function _arrayLikeToArray ( arg0 , arg1 ) {
let length ;
if ( tmp ) {
length = arg0 . length ;
}
const ArrayResult = Array ( length ) ;
for ( let num = 0 ; num < length ; num = num + 1 ) {
ArrayResult [ num ] = arg0 [ num ] ;
}
return ArrayResult ;
}
function updateSpeaker() {
let iter ;
let flag = arg0 ;
if ( arg0 === undefined ) {
flag = true ;
}
let tmp = null ;
if ( null != closure_2 ) {
let selectedParticipantId = store . getSelectedParticipantId ( closure_2 ) ;
let result = null != selectedParticipantId ;
if ( result ) {
result = store . isParticipantPoppedOut ( closure_2 , selectedParticipantId ) ;
}
if ( result ) {
selectedParticipantId = null ;
}
2026-07-23 10:11:24 +00:00
lastActiveStream = lastActiveStream . getLastActiveStream ( ) ;
2026-07-20 16:05:17 +00:00
let participant = null ;
if ( null != selectedParticipantId ) {
participant = store . getParticipant ( closure_2 , selectedParticipantId ) ;
}
let type ;
if ( null != participant ) {
type = participant . type ;
}
let tmp15 = type !== ParticipantTypes . ACTIVITY ;
if ( tmp15 ) {
let type1 ;
if ( null != participant ) {
type1 = participant . type ;
}
let tmp18 = type1 !== ParticipantTypes . USER ;
if ( ! tmp18 ) {
const voiceState = participant . voiceState ;
tmp18 = null != voiceState && voiceState . selfVideo ;
const tmp19 = null != voiceState && voiceState . selfVideo ;
}
tmp15 = tmp18 ;
}
let tmp20 = selectedParticipantId ;
if ( ! tmp15 ) {
tmp20 = null ;
}
let tmp21 = tmp20 ;
if ( null != lastActiveStream ) {
tmp21 = tmp20 ;
if ( null == tmp20 ) {
2026-07-25 08:10:48 +00:00
let obj = require ( 4195 ) /* isStreamKey */ ;
2026-07-20 16:05:17 +00:00
const participant1 = store . getParticipant ( closure_2 , obj . encodeStreamKey ( lastActiveStream ) ) ;
let id ;
if ( null != participant1 ) {
id = participant1 . id ;
}
let result1 = null == id ;
if ( ! result1 ) {
result1 = store . isParticipantPoppedOut ( closure_2 , id ) ;
}
tmp21 = tmp20 ;
if ( ! result1 ) {
tmp21 = id ;
}
}
}
tmp = tmp21 ;
if ( null == tmp21 ) {
const _Date = Date ;
const id1 = id . getId ( ) ;
const items = [ ] ;
const items1 = [ ] ;
const timestamp = Date . now ( ) ;
const tmp56 = _createForOfIteratorHelperLoose ( store . getVideoParticipants ( closure_2 ) ) ;
const iter3 = tmp56 ( ) ;
let iter2 = iter3 ;
if ( ! iter3 . done ) {
do {
let value = iter2 . value ;
let tmp31 = tmp38 ;
if ( value . user . id !== id1 ) {
2026-07-23 10:11:24 +00:00
let tmp57 = localVideoDisabled ;
2026-07-20 16:05:17 +00:00
tmp31 = tmp38 ;
2026-07-23 10:11:24 +00:00
if ( ! localVideoDisabled . isLocalVideoDisabled ( value . user . id ) ) {
let tmp32 = store ;
2026-07-20 16:05:17 +00:00
let tmp33 = closure_2 ;
tmp31 = tmp38 ;
2026-07-23 10:11:24 +00:00
if ( ! store . isParticipantPoppedOut ( closure_2 , value . id ) ) {
2026-07-20 16:05:17 +00:00
let arr = items . push ( value . user . id ) ;
2026-07-23 10:11:24 +00:00
let tmp35 = speakingDuration ;
speakingDuration = speakingDuration . getSpeakingDuration ( value . user . id , timestamp ) ;
2026-07-20 16:05:17 +00:00
tmp31 = speakingDuration ;
if ( 0 !== speakingDuration ) {
obj = { userId : value.user.id , duration : speakingDuration } ;
arr = items1 . push ( obj ) ;
tmp31 = speakingDuration ;
}
}
}
}
iter = tmp56 ( ) ;
2026-07-23 10:11:24 +00:00
tmp38 = tmp31 ;
2026-07-20 16:05:17 +00:00
iter2 = iter ;
} while ( ! iter . done ) ;
}
let num2 = 0 ;
let tmp40 ;
if ( 0 < items1 . length ) {
do {
let tmp41 = items1 [ num2 ] ;
let duration = tmp41 . duration ;
let tmp42 = null == tmp39 ;
if ( ! tmp42 ) {
tmp42 = duration < tmp39 ;
}
if ( tmp42 ) {
let userId = tmp41 . userId ;
2026-07-23 10:11:24 +00:00
tmp39 = duration ;
2026-07-20 16:05:17 +00:00
}
num2 = num2 + 1 ;
tmp40 = userId ;
} while ( num2 < items1 . length ) ;
}
tmp = tmp40 ;
if ( null == tmp40 ) {
2026-07-23 10:11:24 +00:00
if ( null == closure_3 ) {
2026-07-20 16:05:17 +00:00
const first = items [ 0 ] ;
}
}
}
}
2026-07-23 10:11:24 +00:00
if ( closure_3 !== tmp ) {
closure_3 = tmp ;
2026-07-20 16:05:17 +00:00
if ( flag ) {
tmp2 . emitChange ( ) ;
}
}
}
function handleChannelRTCUpdate() {
callback3 ( ) ;
return false ;
}
2026-07-23 10:11:24 +00:00
let closure_15 = require ( "apply" ) . throttle ( updateSpeaker , 300 , { trailing : true } ) ;
let tmp2 = ( ( Store ) = > {
2026-07-20 16:05:17 +00:00
class VideoSpeakerStoreClass {
constructor ( ) {
self = this ;
2026-07-23 10:11:24 +00:00
tmp = outer1_4 ( this , VideoSpeakerStoreClass ) ;
obj = outer1_7 ( VideoSpeakerStoreClass ) ;
tmp2 = outer1_6 ;
if ( outer1_17 ( ) ) {
2026-07-20 16:05:17 +00:00
tmp6 = globalThis ;
_Reflect = Reflect ;
2026-07-23 10:11:24 +00:00
tmp7 = outer1_7 ;
2026-07-20 16:05:17 +00:00
tmp8 = arguments ;
2026-07-23 10:11:24 +00:00
constructResult = Reflect . construct ( obj , arguments , outer1_7 ( self ) . constructor ) ;
2026-07-20 16:05:17 +00:00
} else {
tmp3 = arguments ;
tmp4 = arguments ;
constructResult = obj ( . . . arguments ) ;
}
return tmp2 ( self , constructResult ) ;
}
}
callback2 ( VideoSpeakerStoreClass , Store ) ;
let obj = {
key : "initialize" ,
value() {
2026-07-23 10:11:24 +00:00
this . waitFor ( outer1_13 , outer1_10 , outer1_12 , outer1_9 , outer1_11 ) ;
const items = [ outer1_13 , outer1_9 ] ;
this . syncWith ( items , outer1_21 ) ;
2026-07-20 16:05:17 +00:00
}
} ;
2026-07-23 10:11:24 +00:00
let items = [ obj , ] ;
2026-07-20 16:05:17 +00:00
obj = {
key : "getSpeaker" ,
value ( arg0 ) {
2026-07-23 10:11:24 +00:00
if ( outer1_2 !== arg0 ) {
outer1_2 = arg0 ;
const outer1_3 = null ;
outer1_20 ( false ) ;
2026-07-20 16:05:17 +00:00
}
2026-07-23 10:11:24 +00:00
if ( null != outer1_3 ) {
let id = outer1_3 ;
2026-07-20 16:05:17 +00:00
} else {
2026-07-23 10:11:24 +00:00
id = outer1_10 . getId ( ) ;
2026-07-20 16:05:17 +00:00
}
return id ;
}
} ;
items [ 1 ] = obj ;
return callback ( VideoSpeakerStoreClass , items ) ;
2026-07-23 10:11:24 +00:00
} ) ( require ( "initialize" ) . Store ) ;
2026-07-20 16:05:17 +00:00
tmp2 . displayName = "VideoSpeakerStore" ;
2026-07-23 10:11:24 +00:00
tmp2 = new tmp2 ( require ( "dispatcher" ) , { AUDIO_SET_LOCAL_VIDEO_DISABLED : handleChannelRTCUpdate } ) ;
let closure_16 = tmp2 ;
let obj = { AUDIO_SET_LOCAL_VIDEO_DISABLED : handleChannelRTCUpdate } ;
let result = require ( "_possibleConstructorReturn" ) . fileFinishedImporting ( "modules/calls/VideoSpeakerStore.tsx" ) ;
2026-07-20 16:05:17 +00:00
export default tmp2 ;