93 lines
5.0 KiB
TypeScript
93 lines
5.0 KiB
TypeScript
/* Metro module 8423; source: modules/calls/native/VideoBackgroundManager.tsx; dependencies: [7, 6, 15, 17, 18, 1934, 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 SelectedChannelStore from '../../../stores/SelectedChannelStore.tsx'; /* Metro dependency 1934 */
|
|
import AutomaticLifecycleManager from '../../../lib/AutomaticLifecycleManager.tsx'; /* Metro dependency 4860 */
|
|
import * as FileImportTrackerModule from '../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
|
|
|
|
function _fun66891(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#66891, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8608:6, offset: 0x01c0e2bd, size: 234 bytes, params: 8, frame: 18
|
|
const Object = global.Object;
|
|
Object.defineProperty(exports, '__esModule', {value: true});
|
|
let value = AutomaticLifecycleManager;
|
|
value = _fun66895(value);
|
|
value = new value();
|
|
(FileImportTrackerModule).fileFinishedImporting('modules/calls/native/VideoBackgroundManager.tsx');
|
|
exports.default = value;
|
|
function _isNativeReflectConstruct_66892() { // fn#66892, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8608:158, offset: 0x01c0e3a7, 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_66892_isNativeReflectConstruct = function() {
|
|
return !!result;
|
|
})();
|
|
}
|
|
|
|
function _fun66895(a0) { // fn#66895, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8608:361, offset: 0x01c0e409, size: 42 bytes, params: 2, frame: 14
|
|
const VideoBackgroundManager2 = VideoBackgroundManager;
|
|
Inherits(VideoBackgroundManager2, a0);
|
|
return CreateClass(VideoBackgroundManager2);
|
|
function VideoBackgroundManager(a0) { // fn#66896, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8608:373, offset: 0x01c0e433, size: 192 bytes, params: 2, frame: 21
|
|
var r0;
|
|
var Reflect;
|
|
let value = copyRestArgs(0, undefined);
|
|
let binding = env1_1;
|
|
binding(this, VideoBackgroundManager);
|
|
const items2 = [];
|
|
arraySpread(items2, value, 0, items2);
|
|
value = env1_3(VideoBackgroundManager);
|
|
binding = env1_2;
|
|
if (_isNativeReflectConstruct_66892()) {
|
|
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);
|
|
value.previousSelectedVoiceChannelId = SelectedChannelStore.getVoiceChannelId();
|
|
value.cachedDominantColors = {};
|
|
value._handleSelectVoiceChannel = _handleSelectVoiceChannel;
|
|
var _handleSelectVoiceChannel = value._handleSelectVoiceChannel;
|
|
value.actions = {VOICE_CHANNEL_SELECT: _handleSelectVoiceChannel};
|
|
return value;
|
|
function _handleSelectVoiceChannel({channelId}) { // fn#66897, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8608:734, owner: VideoBackgroundManager._handleSelectVoiceChannel, offset: 0x01c0e4f3, size: 51 bytes, params: 2, frame: 4
|
|
if (CreateClass.previousSelectedVoiceChannelId !== channelId) {
|
|
CreateClass.cachedDominantColors = {};
|
|
}
|
|
CreateClass.previousSelectedVoiceChannelId = channelId;
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
global.__d(_fun66891, 8423, [7, 6, 15, 17, 18, 1934, 4860,
|
|
2]) /* metro module 8423, dependencies: [7, 6, 15, 17, 18, 1934, 4860, 2] */;
|