99 lines
4.5 KiB
TypeScript
99 lines
4.5 KiB
TypeScript
/* Metro module 15810; source: modules/calls/ParticipantFocusManager.tsx; dependencies: [6, 7, 15, 17, 18, 4294, 4606, 4860, 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});
|
|
const env0_0 = importDefault(6) /* metro dependency 6 */;
|
|
const env0_1 = importDefault(7) /* metro dependency 7 */;
|
|
const env0_2 = importDefault(15) /* metro dependency 15 */;
|
|
const env0_3 = importDefault(17) /* metro dependency 17 */;
|
|
const env0_4 = importDefault(18) /* metro dependency 18 */;
|
|
const rtcConnectionStore = importDefault(4294) /* metro dependency 4294: RTCConnectionStore */;
|
|
const channelRTCStore = importDefault(4606) /* metro dependency 4606: ChannelRTCStore */;
|
|
let value = importDefault(4860) /* metro dependency 4860: AutomaticLifecycleManager */;
|
|
value = _fun121502(value);
|
|
value = new value();
|
|
(require(2) /* metro dependency 2 */).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 closure = ParticipantFocusManager;
|
|
env0_4(closure, a0);
|
|
return env0_1(closure, [{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 videoParticipants;
|
|
let value = environment.__proto__;
|
|
const channelId = RTCConnectionStore.getChannelId();
|
|
if (channelId != null) {
|
|
var env0_0 = ChannelRTCStore.getSelectedParticipantId(channelId);
|
|
videoParticipants = ChannelRTCStore.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;
|
|
}
|
|
|