106 lines
5.6 KiB
TypeScript
106 lines
5.6 KiB
TypeScript
/* Metro module 15810; source: modules/calls/ParticipantFocusManager.tsx; dependencies: [6, 7, 15, 17, 18, 4294, 4606, 4860, 2] */
|
|
import ClassCallCheck from '../../by-id/module-00006-ClassCallCheck.js'; /* Metro dependency 6 */
|
|
import CreateClass from '../../by-id/module-00007-CreateClass.js'; /* Metro dependency 7 */
|
|
import PossibleConstructorReturn from '../../by-id/module-00015-PossibleConstructorReturn.js'; /* Metro dependency 15 */
|
|
import Module00017 from '../../by-id/module-00017.js'; /* Metro dependency 17 */
|
|
import Inherits from '../../by-id/module-00018-Inherits.js'; /* Metro dependency 18 */
|
|
import RTCConnectionStore from '../../stores/RTCConnectionStore.tsx'; /* Metro dependency 4294 */
|
|
import ChannelRTCStore from './ChannelRTCStore.tsx'; /* Metro dependency 4606 */
|
|
import AutomaticLifecycleManager from '../../lib/AutomaticLifecycleManager.tsx'; /* Metro dependency 4860 */
|
|
import * as FileImportTrackerModule from '../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
|
|
|
|
function _fun121498(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#121498, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16018:6, offset: 0x0254979e, size: 250 bytes, params: 8, frame: 18
|
|
const Object = global.Object;
|
|
Object.defineProperty(exports, '__esModule', {value: true});
|
|
let value = AutomaticLifecycleManager;
|
|
value = _fun121502(value);
|
|
value = new value();
|
|
(FileImportTrackerModule).fileFinishedImporting('modules/calls/ParticipantFocusManager.tsx');
|
|
exports.default = value;
|
|
function _isNativeReflectConstruct_121499() { // fn#121499, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16018:168, offset: 0x02549898, size: 98 bytes, params: 1, frame: 18
|
|
var Boolean;
|
|
var prototype;
|
|
var valueOf;
|
|
var call;
|
|
var Reflect;
|
|
var construct;
|
|
var closure;
|
|
var value;
|
|
var error;
|
|
try {
|
|
Boolean = global.Boolean;
|
|
prototype = Boolean.prototype;
|
|
valueOf = prototype.valueOf;
|
|
call = valueOf.call;
|
|
Reflect = global.Reflect;
|
|
construct = Reflect.construct;
|
|
Boolean = global.Boolean;
|
|
closure = function() {
|
|
};
|
|
value = Reflect.apply(construct, Reflect, [Boolean, [], closure]);
|
|
value = Reflect.apply(call, valueOf, [value]);
|
|
var result = !value;
|
|
} catch (error) {
|
|
}
|
|
return (_isNativeReflectConstruct_121499_isNativeReflectConstruct = function() {
|
|
return !!result;
|
|
})();
|
|
}
|
|
|
|
function _fun121502(a0) { // fn#121502, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16018:371, offset: 0x025498fa, size: 74 bytes, params: 2, frame: 15
|
|
const ParticipantFocusManager2 = ParticipantFocusManager;
|
|
Inherits(ParticipantFocusManager2, a0);
|
|
return CreateClass(ParticipantFocusManager2, [{key: 'handleFocusParticipant', value: value_121504}]);
|
|
function ParticipantFocusManager(a0) { // fn#121503, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16018:383, offset: 0x02549944, size: 183 bytes, params: 2, frame: 20
|
|
var r0;
|
|
var Reflect;
|
|
let value = copyRestArgs(0, undefined);
|
|
let binding = env1_0;
|
|
binding(this, ParticipantFocusManager);
|
|
const items2 = [];
|
|
arraySpread(items2, value, 0, items2);
|
|
value = env1_3(ParticipantFocusManager);
|
|
binding = env1_2;
|
|
if (_isNativeReflectConstruct_121499()) {
|
|
Reflect = global.Reflect;
|
|
value = Reflect.construct(value, items2, env1_3(this).constructor);
|
|
r0 = value;
|
|
} else {
|
|
value = value.apply(this, items2);
|
|
r0 = value;
|
|
}
|
|
value = binding(this, r0);
|
|
const Map = global.Map;
|
|
const map = new Map();
|
|
value.stores = map.set(ChannelRTCStore, value.handleFocusParticipant);
|
|
return value;
|
|
}
|
|
|
|
function value_121504() { // fn#121504, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16018:790, offset: 0x025499fb, size: 120 bytes, params: 1, frame: 14
|
|
var environment;
|
|
var channelRTCStoreBinding;
|
|
var videoParticipants;
|
|
let value = environment.__proto__;
|
|
const channelId = RTCConnectionStore.getChannelId();
|
|
if (channelId != null) {
|
|
channelRTCStoreBinding = ChannelRTCStore;
|
|
var env0_0 = channelRTCStoreBinding.getSelectedParticipantId(channelId);
|
|
videoParticipants = channelRTCStoreBinding.getVideoParticipants(channelId);
|
|
value = RTCConnectionStore.getRTCConnection();
|
|
if (value != null) {
|
|
value.setSelectedParticipant(videoParticipants.find(_fun121505)?.id);
|
|
}
|
|
}
|
|
function _fun121505(a0) { // fn#121505, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16018:978, offset: 0x02549a73, size: 33 bytes, params: 2, frame: 3
|
|
return a0.id === env0_0 && !a0.localVideoDisabled;
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
global.__d(_fun121498, 15810, [6, 7, 15, 17, 18, 4294, 4606, 4860,
|
|
2]) /* metro module 15810, dependencies: [6, 7, 15, 17, 18, 4294, 4606, 4860, 2] */;
|