text: {"version":3,"sources":["video_strategy.js"],"names":["BX","namespace","Call","VideoStrategy","Type","AllowAll","AllowNone","OnlySpeaker","CurrentlyTalking","HOLD_VIDEO_SECONDS","config","this","call","callView","strategyType","onCallUserVoiceStartedHandler","onCallUserVoiceStarted","bind","onCallUserVoiceStoppedHandler","onCallUserVoiceStopped","onCallViewSetCentralUserHandler","onCallViewSetCentralUser","onCallViewLayoutChangeHandler","onCallViewLayoutChange","users","init","prototype","allowVideoFrom","UserMnemonic","all","none","bindEvents","addEventListener","Event","onUserVoiceStarted","onUserVoiceStopped","subscribe","View","onSetCentralUser","onLayoutChange","removeEvents","removeEventListener","unsubscribe","setType","applyVideoLimit","talkingUsers","getActiveUsers","console","log","length","result","userId","user","active","push","id","onUserActiveChanged","data","User","onActiveChanged","setTalking","event","destroy","hasOwnProperty","talking","sharing","callbacks","type","isFunction","DoNothing","turnOffVideoTimeout","cancelTurnOffVideo","updateActive","scheduleTurnOffVideo","setSharing","newActive","clearTimeout","setTimeout"],"mappings":"CAAC,WAEAA,GAAGC,UAAU,WACb,GAAID,GAAGE,KAAKC,cACZ,CACC,OAGD,IAAIC,GACHC,SAAU,WACVC,UAAW,YACXC,YAAa,cACbC,iBAAkB,oBAGnB,IAAIC,EAAqB,GAEzBT,GAAGE,KAAKC,cAAgB,SAASO,GAGhCC,KAAKC,KAAOF,EAAOE,KAGnBD,KAAKE,SAAWH,EAAOG,SAEvBF,KAAKG,aAAeJ,EAAOI,cAAgBV,EAAKC,SAGhDM,KAAKI,8BAAgCJ,KAAKK,uBAAuBC,KAAKN,MACtEA,KAAKO,8BAAgCP,KAAKQ,uBAAuBF,KAAKN,MACtEA,KAAKS,gCAAkCT,KAAKU,yBAAyBJ,KAAKN,MAC1EA,KAAKW,8BAAgCX,KAAKY,uBAAuBN,KAAKN,MAEtEA,KAAKa,SAELb,KAAKc,QAGNzB,GAAGE,KAAKC,cAAcuB,UAAUD,KAAO,WAEtC,GAAId,KAAKG,eAAiBd,GAAGE,KAA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