This commit is contained in:
janisslsm committed 2026-07-28 01:06:53 +03:00
1 parent af3b49f756
commit 1781d25a15
22448 files changed
+2731829 -2650550

No files matched your search

File diff suppressed because it is too large. Load diff
+6 -2
View File
@@ -1,12 +1,15 @@
/* Metro module 4286; source: modules/go_live/Constants.tsx; dependencies: [4287, 2] */
import * as FileImportTrackerModule from '../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as NotificationsModule from '../../external/discord_common/js/shared/shared-constants/Notifications.tsx'; /* Metro dependency 4287 */
function _fun36340(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#36340, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4458:6, offset: 0x010899a2, size: 433 bytes, params: 8, frame: 20
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const Notifications = (require(4287) /* metro dependency 4287: Notifications */).Notifications;
const Notifications = (NotificationsModule).Notifications;
const StreamNotificationsGuildMaxSize = Notifications.StreamNotificationsGuildMaxSize;
const Set = global.Set;
const set = new Set(['chrome.exe', 'opera.exe', 'firefox.exe', 'brave.exe', 'msedge.exe']);
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/go_live/Constants.tsx');
(FileImportTrackerModule).fileFinishedImporting('modules/go_live/Constants.tsx');
exports.StreamIssueReportReasons = {BLACK_SCREEN: 'BLACK_SCREEN', BLURRY: 'BLURRY', LAGGING: 'LAGGING',
OUT_OF_SYNC: 'OUT_OF_SYNC', AUDIO_MISSING: 'AUDIO_MISSING', AUDIO_POOR: 'AUDIO_POOR', GAME_ISSUE: 'GAME_ISSUE',
STREAM_STOPPED: 'STREAM_STOPPED', NO_ISSUE: 'NO_ISSUE', OTHER: 'OTHER', VIBES_OFF: 'VIBES_OFF'};
@@ -27,3 +30,4 @@ function _fun36340(global, require, importDefault, importAll, module, exports, d
exports.BROWSER_EXECUTABLES = set;
}
global.__d(_fun36340, 4286, [4287, 2]) /* metro module 4286, dependencies: [4287, 2] */;
@@ -1,69 +1,77 @@
/* Metro module 10799; source: modules/go_live/GoLiveAutoQualityExperiment.tsx; dependencies: [1220, 4399, 4282, 1358, 566, 587, 8913, 2] */
import ApexExperimentStore from '../experiments/apex/ApexExperimentStore.tsx'; /* Metro dependency 1220 */
import ApexExperiment from '../experiments/apex/ApexExperiment.tsx'; /* Metro dependency 1358 */
import ApplicationStreamingSettingsStore from '../../stores/ApplicationStreamingSettingsStore.tsx'; /* Metro dependency 4399 */
import * as FileImportTrackerModule from '../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as StorageModule from '../../external/discord_common/js/packages/storage/Storage.tsx'; /* Metro dependency 587 */
import * as StreamSettingsConstantsModule from './StreamSettingsConstants.tsx'; /* Metro dependency 4282 */
function _fun82952(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#82952, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10985:6, offset: 0x01f07cd7, size: 313 bytes, params: 8, frame: 24
var object6;
const env0_0 = require;
const closure = getGoLiveAutoQualityExperimentConfig;
const getGoLiveAutoQualityExperimentConfig2 = getGoLiveAutoQualityExperimentConfig;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const apexExperimentStore = importDefault(1220) /* metro dependency 1220: ApexExperimentStore */;
const applicationStreamingSettingsStore = importDefault(4399) /* metro dependency 4399: ApplicationStreamingSettingsStore */;
const env0_4 = (require(4282) /* metro dependency 4282: StreamSettingsConstants */).ApplicationStreamPresets;
object6 = {'allowAutoQuality': false, 'defaultAutoQuality': false, 'migrateAutoQuality': false};
const apexExperiment = importDefault(1358) /* metro dependency 1358: ApexExperiment */;
const object7 = {'name': '2025-10-go-live-auto-quality', 'kind': 'user'};
object7.defaultConfig = object6;
const object8 = {};
const object9 = {};
copyDataProperties(object9, object6, undefined);
object9['allowAutoQuality'] = true;
object9['migrateAutoQuality'] = true;
object8[1] = object9;
const object10 = {};
copyDataProperties(object10, object6, undefined);
object10['allowAutoQuality'] = true;
object10['defaultAutoQuality'] = true;
object8[2] = object10;
object7.variations = object8;
const env0_5 = apexExperiment(object7);
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/go_live/GoLiveAutoQualityExperiment.tsx');
exports.getGoLiveAutoQualityExperimentConfig = closure;
object = {'allowAutoQuality': false, 'defaultAutoQuality': false, 'migrateAutoQuality': false};
const object2 = {'name': '2025-10-go-live-auto-quality', 'kind': 'user'};
object2.defaultConfig = object;
const object3 = {};
const object4 = {};
copyDataProperties(object4, object, undefined);
object4['allowAutoQuality'] = true;
object4['migrateAutoQuality'] = true;
object3[1] = object4;
const object5 = {};
copyDataProperties(object5, object, undefined);
object5['allowAutoQuality'] = true;
object5['defaultAutoQuality'] = true;
object3[2] = object5;
object2.variations = object3;
const env0_5 = ApexExperiment(object2);
(FileImportTrackerModule).fileFinishedImporting('modules/go_live/GoLiveAutoQualityExperiment.tsx');
exports.getGoLiveAutoQualityExperimentConfig = getGoLiveAutoQualityExperimentConfig2;
exports.useGoLiveAutoQualityExperimentConfig = function({location}) {
return require(dependencyMap[4]).useStateFromStores([ApexExperimentStore], _fun82955);
};
exports.maybeMigrateToAutoQuality = maybeMigrateToAutoQuality;
}
function getGoLiveAutoQualityExperimentConfig({location}) { // fn#82953, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10985:449, offset: 0x01f07e10, size: 34 bytes, params: 2, frame: 12
return env0_5.getConfig({location: location});
}
function getGoLiveAutoQualityExperimentConfig({location}) { // fn#82953, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10985:449, offset: 0x01f07e10, size: 34 bytes, params: 2, frame: 12
return env0_5.getConfig({location: location});
}
function useGoLiveAutoQualityExperimentConfig({location}) { // fn#82954, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10985:738, offset: 0x01f07e32, size: 71 bytes, params: 2, frame: 14
return (require(566) /* metro dependency 566: flux */).useStateFromStores([ApexExperimentStore], function() {
return getGoLiveAutoQualityExperimentConfig({location: location});
});
function _fun82955() { // fn#82955, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10985:837, offset: 0x01f07e79, size: 29 bytes, params: 1, frame: 11
return getGoLiveAutoQualityExperimentConfig({location: location});
}
function useGoLiveAutoQualityExperimentConfig({location}) { // fn#82954, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10985:738, offset: 0x01f07e32, size: 71 bytes, params: 2, frame: 14
return (require(566) /* metro dependency 566: flux */).useStateFromStores([ApexExperimentStore], function() {
return getGoLiveAutoQualityExperimentConfig({location: location});
});
}
}
function maybeMigrateToAutoQuality() { // fn#82956, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10985:923, offset: 0x01f07e96, size: 273 bytes, params: 1, frame: 20
var state;
const binding = env0_5;
const getConfig = binding.getConfig;
const migrateAutoQuality = Reflect.apply(getConfig, binding,
[{location: 'maybeMigrateToAutoQuality'}]).migrateAutoQuality;
const Number = global.Number;
const Storage = (require(587) /* metro dependency 587: Storage */).Storage;
if (migrateAutoQuality) {
if (!(Number(Storage.get('GoLiveAutoQualityMigrationVersion') ?? 0) >= 1)) {
state = ApplicationStreamingSettingsStore.getState();
if (state.preset !== ApplicationStreamPresets.PRESET_CUSTOM) {
(require(8913) /* metro dependency 8913: StreamActionCreators */).updateStreamSettings({preset: ApplicationStreamPresets.PRESET_AUTO,
resolution: state.resolution, frameRate: state.fps, soundshareEnabled: state.soundshareEnabled,
noTrack: true});
Storage.set('GoLiveAutoQualityMigrationVersion', 1);
function maybeMigrateToAutoQuality() { // fn#82956, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10985:923, offset: 0x01f07e96, size: 273 bytes, params: 1, frame: 20
var state;
const binding = env0_5;
const getConfig = binding.getConfig;
const migrateAutoQuality = Reflect.apply(getConfig, binding,
[{location: 'maybeMigrateToAutoQuality'}]).migrateAutoQuality;
const Number = global.Number;
const Storage = (StorageModule).Storage;
if (migrateAutoQuality) {
if (!(Number(Storage.get('GoLiveAutoQualityMigrationVersion') ?? 0) >= 1)) {
state = ApplicationStreamingSettingsStore.getState();
if (state.preset !== ApplicationStreamPresets.PRESET_CUSTOM) {
(require(8913) /* metro dependency 8913: StreamActionCreators */).updateStreamSettings({preset: ApplicationStreamPresets.PRESET_AUTO,
resolution: state.resolution, frameRate: state.fps, soundshareEnabled: state.soundshareEnabled,
noTrack: true});
Storage.set('GoLiveAutoQualityMigrationVersion', 1);
}
}
}
}
}
global.__d(_fun82952, 10799, [1220, 4399, 4282, 1358, 566, 587, 8913,
2]) /* metro module 10799, dependencies: [1220, 4399, 4282, 1358, 566, 587, 8913, 2] */;
@@ -1,11 +1,13 @@
/* Metro module 13893; source: modules/go_live/GoLiveNotificationUtils.tsx; dependencies: [661, 3796, 3829, 683, 2] */
import * as FileImportTrackerModule from '../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ConstantsModule from '../../Constants.tsx'; /* Metro dependency 661 */
import * as NotificationConstantsModule from '../notifications/NotificationConstants.tsx'; /* Metro dependency 3796 */
function _fun105565(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#105565, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14090:6, offset: 0x022bcc44, size: 146 bytes, params: 8, frame: 18
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const env0_3 = (require(661) /* metro dependency 661: Constants */).AnalyticEvents;
const env0_4 = (require(3796) /* metro dependency 3796: NotificationConstants */).NotificationSettingsUpdateType;
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/go_live/GoLiveNotificationUtils.tsx');
(FileImportTrackerModule).fileFinishedImporting('modules/go_live/GoLiveNotificationUtils.tsx');
exports.onGoLiveNotificationSettingsChanged = function(a0) {
require(dependencyMap[2]).StreamNotificationsEnabled.updateSetting(a0);
importDefault(dependencyMap[3]).track(AnalyticEvents.NOTIFICATION_SETTINGS_UPDATED,
@@ -13,3 +15,5 @@ function _fun105565(global, require, importDefault, importAll, module, exports,
};
}
global.__d(_fun105565, 13893, [661, 3796, 3829, 683,
2]) /* metro module 13893, dependencies: [661, 3796, 3829, 683, 2] */;
+172 -153
View File
@@ -1,175 +1,194 @@
/* Metro module 12391; source: modules/go_live/GoLiveQualityManager.tsx; dependencies: [6, 7, 15, 17, 18, 3, 4041, 4479, 2] */
import Logger from '../debug/Logger.tsx'; /* Metro dependency 3 */
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 TypedEventEmitter from '../../external/discord_common/js/shared/utils/TypedEventEmitter.tsx'; /* Metro dependency 4479 */
import * as FileImportTrackerModule from '../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as TimersModule from '../../external/discord_common/js/packages/timers/Timers.tsx'; /* Metro dependency 4041 */
function _fun94411(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#94411, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12577:6, offset: 0x02117121, size: 246 bytes, params: 8, frame: 19
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const env0_3 = importDefault(6) /* metro dependency 6 */;
const env0_4 = importDefault(7) /* metro dependency 7 */;
const env0_5 = importDefault(15) /* metro dependency 15 */;
const env0_6 = importDefault(17) /* metro dependency 17 */;
const env0_7 = importDefault(18) /* metro dependency 18 */;
let value = importDefault(4479) /* metro dependency 4479: TypedEventEmitter */;
let value = TypedEventEmitter;
value = _fun94415(value);
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/go_live/GoLiveQualityManager.tsx');
(FileImportTrackerModule).fileFinishedImporting('modules/go_live/GoLiveQualityManager.tsx');
exports.default = value;
exports.GoLiveQualityManagerEvent = {RequestedSSRCsUpdate: 'requested-ssrcs-update',
RequestedStreamsUpdate: 'requested-streams-update'};
}
function _isNativeReflectConstruct_94412() { // fn#94412, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12577:148, offset: 0x02117217, 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) {
function _isNativeReflectConstruct_94412() { // fn#94412, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12577:148, offset: 0x02117217, 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_94412_isNativeReflectConstruct = function() {
return !!result;
})();
}
return (_isNativeReflectConstruct_94412_isNativeReflectConstruct = function() {
return !!result;
})();
}
function _fun94415(a0) { // fn#94415, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12577:475, offset: 0x02117279, size: 307 bytes, params: 2, frame: 16
const closure = GoLiveQualityManager;
env0_7(closure, a0);
return env0_4(closure, [{key: 'setUserID', value: function(a0) {
this.userId = a0;
}}, {key: 'getUserID', value: function() {
return this.userId;
}}, {key: 'updateAudioAndVideoStreamInfo', value: function(a0, a1) {
this.audioSSRC = a0;
this.videoStream = a1.find(_fun94422);
this.update();
}}, {key: 'onIncomingVideoEnabled', value: function(a0) {
if (this.incomingVideoEnabled !== a0) {
this.logger.info('onIncomingVideoEnabled', a0);
this.incomingVideoEnabled = a0;
function _fun94415(a0) { // fn#94415, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12577:475, offset: 0x02117279, size: 307 bytes, params: 2, frame: 16
const GoLiveQualityManager2 = GoLiveQualityManager;
Inherits(GoLiveQualityManager2, a0);
return CreateClass(GoLiveQualityManager2, [{key: 'setUserID', value: function(a0) {
this.userId = a0;
}}, {key: 'getUserID', value: function() {
return this.userId;
}}, {key: 'updateAudioAndVideoStreamInfo', value: function(a0, a1) {
this.audioSSRC = a0;
this.videoStream = a1.find(_fun94422);
this.update();
}}, {key: 'onIncomingVideoEnabled', value: function(a0) {
if (this.incomingVideoEnabled !== a0) {
this.logger.info('onIncomingVideoEnabled', a0);
this.incomingVideoEnabled = a0;
this.update();
}
}}, {key: 'update', value: function() {
if (this.userId != null && this.videoStream != null) {
if (this.incomingVideoEnabled) {
this.requestStream();
} else {
this.stopStream();
}
}
}}, {key: 'requestStream', value: function() {
if (this.videoStream != null) {
this.request({[this.videoStream.ssrc]: 100}, [this.videoStream.ssrc]);
}
}}, {key: 'stopStream', value: function() {
if (this.videoStream != null) {
this.request({[this.videoStream.ssrc]: 0}, []);
}
}}, {key: 'request', value: value_94427}, {key: 'setVideoSize', value: function(a0, a1, a2) {
if (this.streamId === a0) {
if (a1 != null) {
this.resolutionWidth = a1.width;
this.resolutionHeight = a1.height;
}
if (a2 != null) {
this.zoom = a2;
}
this.delayedUpdate();
}
}}, {key: 'setStreamId', value: function(a0) {
if (this.streamId !== a0) {
this.streamId = a0;
this.resolutionWidth = 0;
this.resolutionHeight = 0;
this.zoom = 1;
this.delayedUpdate();
}
}}]);
function GoLiveQualityManager() { // fn#94416, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12577:487, offset: 0x021173ac, size: 302 bytes, params: 1, frame: 21
var environment;
const value = environment.__proto__;
env1_3(this, GoLiveQualityManager);
const value3 = env1_6(GoLiveQualityManager);
const value6 = env1_5(this, _isNativeReflectConstruct_94412() ? global.Reflect.construct(value3, [],
env1_6(this).constructor) : value3.apply(this, undefined));
value6.streamId = null;
value6.resolutionWidth = 0;
value6.resolutionHeight = 0;
value6.zoom = 1;
value6.audioSSRC = 0;
value6.incomingVideoEnabled = true;
value6.delayedUpdate = delayedUpdate_94417;
const defaultImport = Logger;
const value7 = Object.create(defaultImport.prototype, {constructor: {value: defaultImport}});
const defaultImport2 = new defaultImport('GoLiveQualityManager');
value6.logger = defaultImport2 instanceof Object ? defaultImport2 : value7;
value6.logger.enableNativeLogger(true);
const DelayedCall = (TimersModule).DelayedCall;
value6.delayedCall = new DelayedCall(500, _fun94418);
return value6;
function GoLiveQualityManagerDelayedUpdate() { // fn#94417, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12577:844, owner: GoLiveQualityManager.delayedUpdate, offset: 0x02115cbe, size: 27 bytes, params: 1, frame: 9
env0_0.delayedCall.delay();
}
function _fun94418() { // fn#94418, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12577:994, offset: 0x02115fc6, size: 21 bytes, params: 1, frame: 9
env0_0.update();
}
}
function value_94421(a0, a1) { // fn#94421, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12577:1221, offset: 0x021174f4, size: 55 bytes, params: 3, frame: 12
this.audioSSRC = a0;
this.videoStream = a1.find(function(a0) {
return a0.active;
});
this.update();
}
}}, {key: 'update', value: function() {
if (this.userId != null && this.videoStream != null) {
if (this.incomingVideoEnabled) {
this.requestStream();
} else {
this.stopStream();
function value_94427(a0, a1) { // fn#94427, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12577:1887, offset: 0x0211762b, size: 107 bytes, params: 3, frame: 20
var environment;
var emit;
var value;
var binding;
const userId = this.userId;
if (userId !== undefined) {
var env0_1 = a0;
a1.forEach(_fun94428);
emit = this.emit;
value = environment.__proto__;
binding = env1_8;
Reflect.apply(emit, this, [binding.RequestedSSRCsUpdate, this.userId, this.audioSSRC, a1]);
this.emit(binding.RequestedStreamsUpdate, a0);
}
}
}}, {key: 'requestStream', value: function() {
if (this.videoStream != null) {
this.request({[this.videoStream.ssrc]: 100}, [this.videoStream.ssrc]);
}
}}, {key: 'stopStream', value: function() {
if (this.videoStream != null) {
this.request({[this.videoStream.ssrc]: 0}, []);
}
}}, {key: 'request', value: value_94427}, {key: 'setVideoSize', value: function(a0, a1, a2) {
if (this.streamId === a0) {
if (a1 != null) {
this.resolutionWidth = a1.width;
this.resolutionHeight = a1.height;
function _fun94428(a0) { // fn#94428, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12577:1945, offset: 0x02117696, size: 125 bytes, params: 2, frame: 15
var binding;
var Math;
var floor;
var zoom;
var value;
let pixelCounts = env0_1.pixelCounts;
if (pixelCounts == null) {
env0_1.pixelCounts = {};
}
if (env0_1[a0] > 0) {
pixelCounts = env0_1.pixelCounts;
Math = global.Math;
floor = Math.floor;
binding = env0_0;
value = binding.resolutionWidth * binding.resolutionHeight;
zoom = binding.zoom;
value *= zoom;
zoom = binding.zoom;
pixelCounts[a0] = Reflect.apply(floor, Math, [value * zoom]);
}
}
if (a2 != null) {
this.zoom = a2;
}
this.delayedUpdate();
}
}}, {key: 'setStreamId', value: function(a0) {
if (this.streamId !== a0) {
this.streamId = a0;
this.resolutionWidth = 0;
this.resolutionHeight = 0;
this.zoom = 1;
this.delayedUpdate();
}
}}]);
}
function GoLiveQualityManager() { // fn#94416, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12577:487, offset: 0x021173ac, size: 302 bytes, params: 1, frame: 21
var environment;
const value = environment.__proto__;
env1_3(this, GoLiveQualityManager);
const value3 = env1_6(GoLiveQualityManager);
const value6 = env1_5(this, _isNativeReflectConstruct_94412() ? global.Reflect.construct(value3, [],
env1_6(this).constructor) : value3.apply(this, undefined));
value6.streamId = null;
value6.resolutionWidth = 0;
value6.resolutionHeight = 0;
value6.zoom = 1;
value6.audioSSRC = 0;
value6.incomingVideoEnabled = true;
value6.delayedUpdate = delayedUpdate;
const defaultImport = importDefault(3) /* metro dependency 3: Logger */;
const value7 = Object.create(defaultImport.prototype, {constructor: {value: defaultImport}});
const defaultImport2 = new defaultImport('GoLiveQualityManager');
value6.logger = defaultImport2 instanceof Object ? defaultImport2 : value7;
value6.logger.enableNativeLogger(true);
const DelayedCall = (require(4041) /* metro dependency 4041: Timers */).DelayedCall;
value6.delayedCall = new DelayedCall(500, _fun94418);
return value6;
}
function value_94421(a0, a1) { // fn#94421, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12577:1221, offset: 0x021174f4, size: 55 bytes, params: 3, frame: 12
this.audioSSRC = a0;
this.videoStream = a1.find(function(a0) {
return a0.active;
});
this.update();
}
function value_94427(a0, a1) { // fn#94427, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12577:1887, offset: 0x0211762b, size: 107 bytes, params: 3, frame: 20
var environment;
var emit;
var value;
var binding;
const userId = this.userId;
if (userId !== undefined) {
var env0_1 = a0;
a1.forEach(_fun94428);
emit = this.emit;
value = environment.__proto__;
binding = env1_8;
Reflect.apply(emit, this, [binding.RequestedSSRCsUpdate, this.userId, this.audioSSRC, a1]);
this.emit(binding.RequestedStreamsUpdate, a0);
}
}
function _fun94428(a0) { // fn#94428, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12577:1945, offset: 0x02117696, size: 125 bytes, params: 2, frame: 15
var binding;
var Math;
var floor;
var zoom;
var value;
let pixelCounts = env0_1.pixelCounts;
if (pixelCounts == null) {
env0_1.pixelCounts = {};
}
if (env0_1[a0] > 0) {
pixelCounts = env0_1.pixelCounts;
Math = global.Math;
floor = Math.floor;
binding = env0_0;
value = binding.resolutionWidth * binding.resolutionHeight;
zoom = binding.zoom;
value *= zoom;
zoom = binding.zoom;
pixelCounts[a0] = Reflect.apply(floor, Math, [value * zoom]);
}
function _fun94422(a0) { // fn#94422, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12577:1266, offset: 0x0108d973, size: 11 bytes, params: 2, frame: 1
return a0.active;
}
global.__d(_fun94411, 12391, [6, 7, 15, 17, 18, 3, 4041, 4479,
2]) /* metro module 12391, dependencies: [6, 7, 15, 17, 18, 3, 4041, 4479, 2] */;
@@ -1,22 +1,26 @@
/* Metro module 10797; source: modules/go_live/GoLiveVideoPresetResolutionExperiment.tsx; dependencies: [4282, 1358, 2] */
import ApexExperiment from '../experiments/apex/ApexExperiment.tsx'; /* Metro dependency 1358 */
import * as FileImportTrackerModule from '../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as StreamSettingsConstantsModule from './StreamSettingsConstants.tsx'; /* Metro dependency 4282 */
function _fun82946(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#82946, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10983:6, offset: 0x01f07926, size: 186 bytes, params: 8, frame: 20
var object3;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const ApplicationStreamResolutions = (require(4282) /* metro dependency 4282: StreamSettingsConstants */).ApplicationStreamResolutions;
object3 = {};
const ApplicationStreamResolutions = (StreamSettingsConstantsModule).ApplicationStreamResolutions;
object = {};
const RESOLUTION_1440 = ApplicationStreamResolutions.RESOLUTION_1440;
object3.videoPresetResolutionMax = RESOLUTION_1440;
let value = importDefault(1358) /* metro dependency 1358: ApexExperiment */;
const object5 = {'name': '2026-02-go-live-video-preset-resolution', 'kind': 'user'};
object5.defaultConfig = object3;
const object6 = {};
copyDataProperties(object6, object3, undefined);
object.videoPresetResolutionMax = RESOLUTION_1440;
let value = ApexExperiment;
const object2 = {'name': '2026-02-go-live-video-preset-resolution', 'kind': 'user'};
object2.defaultConfig = object;
const object4 = {};
copyDataProperties(object4, object, undefined);
const RESOLUTION_1080 = ApplicationStreamResolutions.RESOLUTION_1080;
object6['videoPresetResolutionMax'] = RESOLUTION_1080;
object5.variations = {[1]: object6};
value = value(object5);
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/go_live/GoLiveVideoPresetResolutionExperiment.tsx');
object4['videoPresetResolutionMax'] = RESOLUTION_1080;
object2.variations = {[1]: object4};
value = value(object2);
(FileImportTrackerModule).fileFinishedImporting('modules/go_live/GoLiveVideoPresetResolutionExperiment.tsx');
exports.default = value;
}
global.__d(_fun82946, 10797, [4282, 1358, 2]) /* metro module 10797, dependencies: [4282, 1358, 2] */;
@@ -1,289 +1,296 @@
/* Metro module 2096; source: modules/go_live/MobileGoLiveActionSheet.messages.js; dependencies: [1247, 2097, 2098, 2099, 2100, 2101, 2102, 2103, 2104, 2105, 2106, 2107, 2108, 2109, 2110, 2111, 2112, 2113, 2114, 2115, 2116, 2117, 2118, 2119, 2120, 2121, 2122, 2123, 2124, 2125, 2126, 2127, 1282, 2] */
import * as FileImportTrackerModule from '../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as AssetJsonUtilsModule from '../asset_json/native/AssetJsonUtils.tsx'; /* Metro dependency 1247 */
import * as Module01282Module from '../../by-id/module-01282.js'; /* Metro dependency 1282 */
function _fun22258(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#22258, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2223:6, offset: 0x00effb98, size: 453 bytes, params: 8, frame: 19
var object2;
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
object2 = {bg: bg_22259, cs: cs_22261, da: da_22263, de: de_22265, el: el_22267};
object2['en-GB'] = _fun22269;
object2['es-419'] = _fun22271;
object2['es-ES'] = _fun22273;
object2.fi = fi_22275;
object2.fr = fr_22277;
object2.hi = hi_22279;
object2.hr = hr_22281;
object2.hu = hu_22283;
object2.it = it_22285;
object2.ja = ja_22287;
object2.ko = ko_22289;
object2.lt = lt_22291;
object2.nl = nl_22293;
object2.no = no_22295;
object2.pl = pl_22297;
object2['pt-BR'] = _fun22299;
object2.ro = ro_22301;
object2.ru = ru_22303;
object2['sv-SE'] = _fun22305;
object2.th = th_22307;
object2.tr = tr_22309;
object2.uk = uk_22311;
object2.vi = vi_22313;
object2['zh-CN'] = _fun22315;
object2['zh-TW'] = _fun22317;
object2['en-US'] = _fun22319;
let value = require(1282) /* metro dependency 1282 */;
value = value.createLoader(object2, 'en-US');
const messagesProxy = (require(1282) /* metro dependency 1282 */).makeMessagesProxy(value);
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/go_live/MobileGoLiveActionSheet.messages.js');
object = {bg: bg_22259, cs: cs_22261, da: da_22263, de: de_22265, el: el_22267};
object['en-GB'] = _fun22269;
object['es-419'] = _fun22271;
object['es-ES'] = _fun22273;
object.fi = fi_22275;
object.fr = fr_22277;
object.hi = hi_22279;
object.hr = hr_22281;
object.hu = hu_22283;
object.it = it_22285;
object.ja = ja_22287;
object.ko = ko_22289;
object.lt = lt_22291;
object.nl = nl_22293;
object.no = no_22295;
object.pl = pl_22297;
object['pt-BR'] = _fun22299;
object.ro = ro_22301;
object.ru = ru_22303;
object['sv-SE'] = _fun22305;
object.th = th_22307;
object.tr = tr_22309;
object.uk = uk_22311;
object.vi = vi_22313;
object['zh-CN'] = _fun22315;
object['zh-TW'] = _fun22317;
object['en-US'] = _fun22319;
let value = Module01282Module;
value = value.createLoader(object, 'en-US');
const messagesProxy = (Module01282Module).makeMessagesProxy(value);
(FileImportTrackerModule).fileFinishedImporting('modules/go_live/MobileGoLiveActionSheet.messages.js');
exports.default = messagesProxy;
exports.messagesLoader = value;
function bg_22259() { // fn#22259, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2223:102, offset: 0x00effd5d, size: 65 bytes, params: 1, frame: 14
let value = AssetJsonUtilsModule;
value = value.loadJsonAsset(require(2097) /* metro dependency 2097 */);
return value.then(function(a0) {
return {default: a0};
});
}
function cs_22261() { // fn#22261, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2223:165, offset: 0x00effd9e, size: 65 bytes, params: 1, frame: 14
let value = AssetJsonUtilsModule;
value = value.loadJsonAsset(require(2098) /* metro dependency 2098 */);
return value.then(function(a0) {
return {default: a0};
});
}
function da_22263() { // fn#22263, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2223:228, offset: 0x00effddf, size: 65 bytes, params: 1, frame: 14
let value = AssetJsonUtilsModule;
value = value.loadJsonAsset(require(2099) /* metro dependency 2099 */);
return value.then(function(a0) {
return {default: a0};
});
}
function de_22265() { // fn#22265, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2223:291, offset: 0x00effe20, size: 65 bytes, params: 1, frame: 14
let value = AssetJsonUtilsModule;
value = value.loadJsonAsset(require(2100) /* metro dependency 2100 */);
return value.then(function(a0) {
return {default: a0};
});
}
function el_22267() { // fn#22267, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2223:354, offset: 0x00effe61, size: 65 bytes, params: 1, frame: 14
let value = AssetJsonUtilsModule;
value = value.loadJsonAsset(require(2101) /* metro dependency 2101 */);
return value.then(function(a0) {
return {default: a0};
});
}
function _fun22269() { // fn#22269, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2223:422, offset: 0x00effea2, size: 65 bytes, params: 1, frame: 14
let value = AssetJsonUtilsModule;
value = value.loadJsonAsset(require(2102) /* metro dependency 2102 */);
return value.then(function(a0) {
return {default: a0};
});
}
function _fun22271() { // fn#22271, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2223:491, offset: 0x00effee3, size: 65 bytes, params: 1, frame: 14
let value = AssetJsonUtilsModule;
value = value.loadJsonAsset(require(2103) /* metro dependency 2103 */);
return value.then(function(a0) {
return {default: a0};
});
}
function _fun22273() { // fn#22273, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2223:559, offset: 0x00efff24, size: 65 bytes, params: 1, frame: 14
let value = AssetJsonUtilsModule;
value = value.loadJsonAsset(require(2104) /* metro dependency 2104 */);
return value.then(function(a0) {
return {default: a0};
});
}
function fi_22275() { // fn#22275, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2223:622, offset: 0x00efff65, size: 65 bytes, params: 1, frame: 14
let value = AssetJsonUtilsModule;
value = value.loadJsonAsset(require(2105) /* metro dependency 2105 */);
return value.then(function(a0) {
return {default: a0};
});
}
function fr_22277() { // fn#22277, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2223:685, offset: 0x00efffa6, size: 65 bytes, params: 1, frame: 14
let value = AssetJsonUtilsModule;
value = value.loadJsonAsset(require(2106) /* metro dependency 2106 */);
return value.then(function(a0) {
return {default: a0};
});
}
function hi_22279() { // fn#22279, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2223:749, offset: 0x00efffe7, size: 65 bytes, params: 1, frame: 14
let value = AssetJsonUtilsModule;
value = value.loadJsonAsset(require(2107) /* metro dependency 2107 */);
return value.then(function(a0) {
return {default: a0};
});
}
function hr_22281() { // fn#22281, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2223:813, offset: 0x00f00028, size: 65 bytes, params: 1, frame: 14
let value = AssetJsonUtilsModule;
value = value.loadJsonAsset(require(2108) /* metro dependency 2108 */);
return value.then(function(a0) {
return {default: a0};
});
}
function hu_22283() { // fn#22283, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2223:877, offset: 0x00f00069, size: 65 bytes, params: 1, frame: 14
let value = AssetJsonUtilsModule;
value = value.loadJsonAsset(require(2109) /* metro dependency 2109 */);
return value.then(function(a0) {
return {default: a0};
});
}
function it_22285() { // fn#22285, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2223:941, offset: 0x00f000aa, size: 65 bytes, params: 1, frame: 14
let value = AssetJsonUtilsModule;
value = value.loadJsonAsset(require(2110) /* metro dependency 2110 */);
return value.then(function(a0) {
return {default: a0};
});
}
function ja_22287() { // fn#22287, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2223:1005, offset: 0x00f000eb, size: 65 bytes, params: 1, frame: 14
let value = AssetJsonUtilsModule;
value = value.loadJsonAsset(require(2111) /* metro dependency 2111 */);
return value.then(function(a0) {
return {default: a0};
});
}
function ko_22289() { // fn#22289, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2223:1069, offset: 0x00f0012c, size: 65 bytes, params: 1, frame: 14
let value = AssetJsonUtilsModule;
value = value.loadJsonAsset(require(2112) /* metro dependency 2112 */);
return value.then(function(a0) {
return {default: a0};
});
}
function lt_22291() { // fn#22291, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2223:1133, offset: 0x00f0016d, size: 65 bytes, params: 1, frame: 14
let value = AssetJsonUtilsModule;
value = value.loadJsonAsset(require(2113) /* metro dependency 2113 */);
return value.then(function(a0) {
return {default: a0};
});
}
function nl_22293() { // fn#22293, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2223:1197, offset: 0x00f001ae, size: 65 bytes, params: 1, frame: 14
let value = AssetJsonUtilsModule;
value = value.loadJsonAsset(require(2114) /* metro dependency 2114 */);
return value.then(function(a0) {
return {default: a0};
});
}
function no_22295() { // fn#22295, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2223:1261, offset: 0x00f001ef, size: 65 bytes, params: 1, frame: 14
let value = AssetJsonUtilsModule;
value = value.loadJsonAsset(require(2115) /* metro dependency 2115 */);
return value.then(function(a0) {
return {default: a0};
});
}
function pl_22297() { // fn#22297, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2223:1325, offset: 0x00f00230, size: 65 bytes, params: 1, frame: 14
let value = AssetJsonUtilsModule;
value = value.loadJsonAsset(require(2116) /* metro dependency 2116 */);
return value.then(function(a0) {
return {default: a0};
});
}
function _fun22299() { // fn#22299, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2223:1394, offset: 0x00f00271, size: 65 bytes, params: 1, frame: 14
let value = AssetJsonUtilsModule;
value = value.loadJsonAsset(require(2117) /* metro dependency 2117 */);
return value.then(function(a0) {
return {default: a0};
});
}
function ro_22301() { // fn#22301, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2223:1458, offset: 0x00f002b2, size: 65 bytes, params: 1, frame: 14
let value = AssetJsonUtilsModule;
value = value.loadJsonAsset(require(2118) /* metro dependency 2118 */);
return value.then(function(a0) {
return {default: a0};
});
}
function ru_22303() { // fn#22303, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2223:1522, offset: 0x00f002f3, size: 65 bytes, params: 1, frame: 14
let value = AssetJsonUtilsModule;
value = value.loadJsonAsset(require(2119) /* metro dependency 2119 */);
return value.then(function(a0) {
return {default: a0};
});
}
function _fun22305() { // fn#22305, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2223:1591, offset: 0x00f00334, size: 65 bytes, params: 1, frame: 14
let value = AssetJsonUtilsModule;
value = value.loadJsonAsset(require(2120) /* metro dependency 2120 */);
return value.then(function(a0) {
return {default: a0};
});
}
function th_22307() { // fn#22307, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2223:1655, offset: 0x00f00375, size: 65 bytes, params: 1, frame: 14
let value = AssetJsonUtilsModule;
value = value.loadJsonAsset(require(2121) /* metro dependency 2121 */);
return value.then(function(a0) {
return {default: a0};
});
}
function tr_22309() { // fn#22309, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2223:1719, offset: 0x00f003b6, size: 65 bytes, params: 1, frame: 14
let value = AssetJsonUtilsModule;
value = value.loadJsonAsset(require(2122) /* metro dependency 2122 */);
return value.then(function(a0) {
return {default: a0};
});
}
function uk_22311() { // fn#22311, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2223:1783, offset: 0x00f003f7, size: 65 bytes, params: 1, frame: 14
let value = AssetJsonUtilsModule;
value = value.loadJsonAsset(require(2123) /* metro dependency 2123 */);
return value.then(function(a0) {
return {default: a0};
});
}
function vi_22313() { // fn#22313, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2223:1847, offset: 0x00f00438, size: 65 bytes, params: 1, frame: 14
let value = AssetJsonUtilsModule;
value = value.loadJsonAsset(require(2124) /* metro dependency 2124 */);
return value.then(function(a0) {
return {default: a0};
});
}
function _fun22315() { // fn#22315, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2223:1916, offset: 0x00f00479, size: 65 bytes, params: 1, frame: 14
let value = AssetJsonUtilsModule;
value = value.loadJsonAsset(require(2125) /* metro dependency 2125 */);
return value.then(function(a0) {
return {default: a0};
});
}
function _fun22317() { // fn#22317, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2223:1985, offset: 0x00f004ba, size: 65 bytes, params: 1, frame: 14
let value = AssetJsonUtilsModule;
value = value.loadJsonAsset(require(2126) /* metro dependency 2126 */);
return value.then(function(a0) {
return {default: a0};
});
}
function _fun22319() { // fn#22319, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2223:2054, offset: 0x00f004fb, size: 65 bytes, params: 1, frame: 14
let value = AssetJsonUtilsModule;
value = value.loadJsonAsset(require(2127) /* metro dependency 2127 */);
return value.then(function(a0) {
return {default: a0};
});
}
}
function bg_22259() { // fn#22259, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2223:102, offset: 0x00effd5d, size: 65 bytes, params: 1, frame: 14
let value = require(1247) /* metro dependency 1247: AssetJsonUtils */;
value = value.loadJsonAsset(require(2097) /* metro dependency 2097 */);
return value.then(function(a0) {
return {default: a0};
});
}
function cs_22261() { // fn#22261, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2223:165, offset: 0x00effd9e, size: 65 bytes, params: 1, frame: 14
let value = require(1247) /* metro dependency 1247: AssetJsonUtils */;
value = value.loadJsonAsset(require(2098) /* metro dependency 2098 */);
return value.then(function(a0) {
return {default: a0};
});
}
function da_22263() { // fn#22263, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2223:228, offset: 0x00effddf, size: 65 bytes, params: 1, frame: 14
let value = require(1247) /* metro dependency 1247: AssetJsonUtils */;
value = value.loadJsonAsset(require(2099) /* metro dependency 2099 */);
return value.then(function(a0) {
return {default: a0};
});
}
function de_22265() { // fn#22265, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2223:291, offset: 0x00effe20, size: 65 bytes, params: 1, frame: 14
let value = require(1247) /* metro dependency 1247: AssetJsonUtils */;
value = value.loadJsonAsset(require(2100) /* metro dependency 2100 */);
return value.then(function(a0) {
return {default: a0};
});
}
function el_22267() { // fn#22267, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2223:354, offset: 0x00effe61, size: 65 bytes, params: 1, frame: 14
let value = require(1247) /* metro dependency 1247: AssetJsonUtils */;
value = value.loadJsonAsset(require(2101) /* metro dependency 2101 */);
return value.then(function(a0) {
return {default: a0};
});
}
function _fun22269() { // fn#22269, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2223:422, offset: 0x00effea2, size: 65 bytes, params: 1, frame: 14
let value = require(1247) /* metro dependency 1247: AssetJsonUtils */;
value = value.loadJsonAsset(require(2102) /* metro dependency 2102 */);
return value.then(function(a0) {
return {default: a0};
});
}
function _fun22271() { // fn#22271, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2223:491, offset: 0x00effee3, size: 65 bytes, params: 1, frame: 14
let value = require(1247) /* metro dependency 1247: AssetJsonUtils */;
value = value.loadJsonAsset(require(2103) /* metro dependency 2103 */);
return value.then(function(a0) {
return {default: a0};
});
}
function _fun22273() { // fn#22273, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2223:559, offset: 0x00efff24, size: 65 bytes, params: 1, frame: 14
let value = require(1247) /* metro dependency 1247: AssetJsonUtils */;
value = value.loadJsonAsset(require(2104) /* metro dependency 2104 */);
return value.then(function(a0) {
return {default: a0};
});
}
function fi_22275() { // fn#22275, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2223:622, offset: 0x00efff65, size: 65 bytes, params: 1, frame: 14
let value = require(1247) /* metro dependency 1247: AssetJsonUtils */;
value = value.loadJsonAsset(require(2105) /* metro dependency 2105 */);
return value.then(function(a0) {
return {default: a0};
});
}
function fr_22277() { // fn#22277, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2223:685, offset: 0x00efffa6, size: 65 bytes, params: 1, frame: 14
let value = require(1247) /* metro dependency 1247: AssetJsonUtils */;
value = value.loadJsonAsset(require(2106) /* metro dependency 2106 */);
return value.then(function(a0) {
return {default: a0};
});
}
function hi_22279() { // fn#22279, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2223:749, offset: 0x00efffe7, size: 65 bytes, params: 1, frame: 14
let value = require(1247) /* metro dependency 1247: AssetJsonUtils */;
value = value.loadJsonAsset(require(2107) /* metro dependency 2107 */);
return value.then(function(a0) {
return {default: a0};
});
}
function hr_22281() { // fn#22281, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2223:813, offset: 0x00f00028, size: 65 bytes, params: 1, frame: 14
let value = require(1247) /* metro dependency 1247: AssetJsonUtils */;
value = value.loadJsonAsset(require(2108) /* metro dependency 2108 */);
return value.then(function(a0) {
return {default: a0};
});
}
function hu_22283() { // fn#22283, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2223:877, offset: 0x00f00069, size: 65 bytes, params: 1, frame: 14
let value = require(1247) /* metro dependency 1247: AssetJsonUtils */;
value = value.loadJsonAsset(require(2109) /* metro dependency 2109 */);
return value.then(function(a0) {
return {default: a0};
});
}
function it_22285() { // fn#22285, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2223:941, offset: 0x00f000aa, size: 65 bytes, params: 1, frame: 14
let value = require(1247) /* metro dependency 1247: AssetJsonUtils */;
value = value.loadJsonAsset(require(2110) /* metro dependency 2110 */);
return value.then(function(a0) {
return {default: a0};
});
}
function ja_22287() { // fn#22287, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2223:1005, offset: 0x00f000eb, size: 65 bytes, params: 1, frame: 14
let value = require(1247) /* metro dependency 1247: AssetJsonUtils */;
value = value.loadJsonAsset(require(2111) /* metro dependency 2111 */);
return value.then(function(a0) {
return {default: a0};
});
}
function ko_22289() { // fn#22289, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2223:1069, offset: 0x00f0012c, size: 65 bytes, params: 1, frame: 14
let value = require(1247) /* metro dependency 1247: AssetJsonUtils */;
value = value.loadJsonAsset(require(2112) /* metro dependency 2112 */);
return value.then(function(a0) {
return {default: a0};
});
}
function lt_22291() { // fn#22291, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2223:1133, offset: 0x00f0016d, size: 65 bytes, params: 1, frame: 14
let value = require(1247) /* metro dependency 1247: AssetJsonUtils */;
value = value.loadJsonAsset(require(2113) /* metro dependency 2113 */);
return value.then(function(a0) {
return {default: a0};
});
}
function nl_22293() { // fn#22293, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2223:1197, offset: 0x00f001ae, size: 65 bytes, params: 1, frame: 14
let value = require(1247) /* metro dependency 1247: AssetJsonUtils */;
value = value.loadJsonAsset(require(2114) /* metro dependency 2114 */);
return value.then(function(a0) {
return {default: a0};
});
}
function no_22295() { // fn#22295, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2223:1261, offset: 0x00f001ef, size: 65 bytes, params: 1, frame: 14
let value = require(1247) /* metro dependency 1247: AssetJsonUtils */;
value = value.loadJsonAsset(require(2115) /* metro dependency 2115 */);
return value.then(function(a0) {
return {default: a0};
});
}
function pl_22297() { // fn#22297, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2223:1325, offset: 0x00f00230, size: 65 bytes, params: 1, frame: 14
let value = require(1247) /* metro dependency 1247: AssetJsonUtils */;
value = value.loadJsonAsset(require(2116) /* metro dependency 2116 */);
return value.then(function(a0) {
return {default: a0};
});
}
function _fun22299() { // fn#22299, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2223:1394, offset: 0x00f00271, size: 65 bytes, params: 1, frame: 14
let value = require(1247) /* metro dependency 1247: AssetJsonUtils */;
value = value.loadJsonAsset(require(2117) /* metro dependency 2117 */);
return value.then(function(a0) {
return {default: a0};
});
}
function ro_22301() { // fn#22301, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2223:1458, offset: 0x00f002b2, size: 65 bytes, params: 1, frame: 14
let value = require(1247) /* metro dependency 1247: AssetJsonUtils */;
value = value.loadJsonAsset(require(2118) /* metro dependency 2118 */);
return value.then(function(a0) {
return {default: a0};
});
}
function ru_22303() { // fn#22303, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2223:1522, offset: 0x00f002f3, size: 65 bytes, params: 1, frame: 14
let value = require(1247) /* metro dependency 1247: AssetJsonUtils */;
value = value.loadJsonAsset(require(2119) /* metro dependency 2119 */);
return value.then(function(a0) {
return {default: a0};
});
}
function _fun22305() { // fn#22305, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2223:1591, offset: 0x00f00334, size: 65 bytes, params: 1, frame: 14
let value = require(1247) /* metro dependency 1247: AssetJsonUtils */;
value = value.loadJsonAsset(require(2120) /* metro dependency 2120 */);
return value.then(function(a0) {
return {default: a0};
});
}
function th_22307() { // fn#22307, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2223:1655, offset: 0x00f00375, size: 65 bytes, params: 1, frame: 14
let value = require(1247) /* metro dependency 1247: AssetJsonUtils */;
value = value.loadJsonAsset(require(2121) /* metro dependency 2121 */);
return value.then(function(a0) {
return {default: a0};
});
}
function tr_22309() { // fn#22309, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2223:1719, offset: 0x00f003b6, size: 65 bytes, params: 1, frame: 14
let value = require(1247) /* metro dependency 1247: AssetJsonUtils */;
value = value.loadJsonAsset(require(2122) /* metro dependency 2122 */);
return value.then(function(a0) {
return {default: a0};
});
}
function uk_22311() { // fn#22311, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2223:1783, offset: 0x00f003f7, size: 65 bytes, params: 1, frame: 14
let value = require(1247) /* metro dependency 1247: AssetJsonUtils */;
value = value.loadJsonAsset(require(2123) /* metro dependency 2123 */);
return value.then(function(a0) {
return {default: a0};
});
}
function vi_22313() { // fn#22313, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2223:1847, offset: 0x00f00438, size: 65 bytes, params: 1, frame: 14
let value = require(1247) /* metro dependency 1247: AssetJsonUtils */;
value = value.loadJsonAsset(require(2124) /* metro dependency 2124 */);
return value.then(function(a0) {
return {default: a0};
});
}
function _fun22315() { // fn#22315, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2223:1916, offset: 0x00f00479, size: 65 bytes, params: 1, frame: 14
let value = require(1247) /* metro dependency 1247: AssetJsonUtils */;
value = value.loadJsonAsset(require(2125) /* metro dependency 2125 */);
return value.then(function(a0) {
return {default: a0};
});
}
function _fun22317() { // fn#22317, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2223:1985, offset: 0x00f004ba, size: 65 bytes, params: 1, frame: 14
let value = require(1247) /* metro dependency 1247: AssetJsonUtils */;
value = value.loadJsonAsset(require(2126) /* metro dependency 2126 */);
return value.then(function(a0) {
return {default: a0};
});
}
function _fun22319() { // fn#22319, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2223:2054, offset: 0x00f004fb, size: 65 bytes, params: 1, frame: 14
let value = require(1247) /* metro dependency 1247: AssetJsonUtils */;
value = value.loadJsonAsset(require(2127) /* metro dependency 2127 */);
return value.then(function(a0) {
return {default: a0};
});
}
global.__d(_fun22258, 2096, [1247, 2097, 2098, 2099, 2100, 2101, 2102, 2103, 2104, 2105, 2106, 2107, 2108, 2109,
2110, 2111, 2112, 2113, 2114, 2115, 2116, 2117, 2118, 2119, 2120, 2121, 2122, 2123, 2124, 2125, 2126, 2127,
1282,
2]) /* metro module 2096, dependencies: [1247, 2097, 2098, 2099, 2100, 2101, 2102, 2103, 2104, 2105, 2106, 2107, 2108, 2109, 2110, 2111, 2112, 2113, 2114, 2115, 2116, 2117, 2118, 2119, 2120, 2121, 2122, 2123, 2124, 2125, 2126, 2127, 1282, 2] */;
@@ -1,27 +1,30 @@
/* Metro module 15453; source: modules/go_live/MobileGoLiveEntrypointExperiment.tsx; dependencies: [1854, 2] */
import * as FileImportTrackerModule from '../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ApexModule from '../experiments/apex/index.tsx'; /* Metro dependency 1854 */
function _fun118295(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#118295, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15650:6, offset: 0x024d5799, size: 241 bytes, params: 8, frame: 23
var object2;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
object2 = {CONTROL: 0};
object2[0] = 'CONTROL';
object2.SCREENSHARE_REPLACES_CHAT = 1;
object2[1] = 'SCREENSHARE_REPLACES_CHAT';
object2.SCREENSHARE_REPLACES_SOUNDBOARD = 2;
object2[2] = 'SCREENSHARE_REPLACES_SOUNDBOARD';
let value = require(1854) /* metro dependency 1854: apex */;
object = {CONTROL: 0};
object[0] = 'CONTROL';
object.SCREENSHARE_REPLACES_CHAT = 1;
object[1] = 'SCREENSHARE_REPLACES_CHAT';
object.SCREENSHARE_REPLACES_SOUNDBOARD = 2;
object[2] = 'SCREENSHARE_REPLACES_SOUNDBOARD';
let value = ApexModule;
const createApexExperiment = value.createApexExperiment;
const CONTROL = object2.CONTROL;
const SCREENSHARE_REPLACES_CHAT = object2.SCREENSHARE_REPLACES_CHAT;
const SCREENSHARE_REPLACES_CHAT2 = object2.SCREENSHARE_REPLACES_CHAT;
const SCREENSHARE_REPLACES_SOUNDBOARD = object2.SCREENSHARE_REPLACES_SOUNDBOARD;
const SCREENSHARE_REPLACES_SOUNDBOARD2 = object2.SCREENSHARE_REPLACES_SOUNDBOARD;
const CONTROL = object.CONTROL;
const SCREENSHARE_REPLACES_CHAT = object.SCREENSHARE_REPLACES_CHAT;
const SCREENSHARE_REPLACES_CHAT2 = object.SCREENSHARE_REPLACES_CHAT;
const SCREENSHARE_REPLACES_SOUNDBOARD = object.SCREENSHARE_REPLACES_SOUNDBOARD;
const SCREENSHARE_REPLACES_SOUNDBOARD2 = object.SCREENSHARE_REPLACES_SOUNDBOARD;
value = Reflect.apply(createApexExperiment, value, [{'name': '2026-01-mobile-go-live-entrypoint', 'kind': 'user',
defaultConfig: {treatment: CONTROL},
variations: {[SCREENSHARE_REPLACES_CHAT]: {treatment: SCREENSHARE_REPLACES_CHAT2},
[SCREENSHARE_REPLACES_SOUNDBOARD]: {treatment: SCREENSHARE_REPLACES_SOUNDBOARD2}}}]);
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/go_live/MobileGoLiveEntrypointExperiment.tsx');
(FileImportTrackerModule).fileFinishedImporting('modules/go_live/MobileGoLiveEntrypointExperiment.tsx');
exports.default = value;
exports.MobileGoLiveEntrypointTreatment = object2;
exports.MobileGoLiveEntrypointTreatment = object;
}
global.__d(_fun118295, 15453, [1854, 2]) /* metro module 15453, dependencies: [1854, 2] */;
File diff suppressed because it is too large. Load diff
@@ -1,6 +1,10 @@
/* Metro module 4282; source: modules/go_live/StreamSettingsConstants.tsx; dependencies: [661, 1880, 1244, 2] */
import * as FileImportTrackerModule from '../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ConstantsModule from '../../Constants.tsx'; /* Metro dependency 661 */
import * as IndexNativeModule from '../../intl/index.native.tsx'; /* Metro dependency 1244 */
import * as PremiumConstantsModule from '../premium/PremiumConstants.tsx'; /* Metro dependency 1880 */
function _fun36314(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#36314, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4454:6, offset: 0x01088918, size: 1584 bytes, params: 8, frame: 29
var object4;
let env0_0 = require;
const closure = function(a0, a1, a2) {
var env0_0 = a0;
@@ -13,295 +17,296 @@ function _fun36314(global, require, importDefault, importAll, module, exports, d
};
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const BoostedGuildTiers = (require(661) /* metro dependency 661: Constants */).BoostedGuildTiers;
const StreamQualities = (require(1880) /* metro dependency 1880: PremiumConstants */).StreamQualities;
object4 = {RESOLUTION_480: 480};
object4[480] = 'RESOLUTION_480';
object4.RESOLUTION_720 = 720;
object4[720] = 'RESOLUTION_720';
object4.RESOLUTION_1080 = 1080;
object4[1080] = 'RESOLUTION_1080';
object4.RESOLUTION_1440 = 1440;
object4[1440] = 'RESOLUTION_1440';
object4.RESOLUTION_SOURCE = 0;
object4[0] = 'RESOLUTION_SOURCE';
const object5 = {FPS_5: 5};
object5[5] = 'FPS_5';
object5.FPS_15 = 15;
object5[15] = 'FPS_15';
object5.FPS_30 = 30;
object5[30] = 'FPS_30';
object5.FPS_60 = 60;
object5[60] = 'FPS_60';
const object6 = {PRESET_VIDEO: 1};
object6[1] = 'PRESET_VIDEO';
object6.PRESET_DOCUMENTS = 2;
object6[2] = 'PRESET_DOCUMENTS';
object6.PRESET_CUSTOM = 3;
object6[3] = 'PRESET_CUSTOM';
object6.PRESET_AUTO = 4;
object6[4] = 'PRESET_AUTO';
object6.PRESET_MOBILE_DEFAULT = 5;
object6[5] = 'PRESET_MOBILE_DEFAULT';
object6.PRESET_MOBILE_PERFORMANCE = 6;
object6[6] = 'PRESET_MOBILE_PERFORMANCE';
object6.PRESET_MOBILE_HIGH_QUALITY = 7;
object6[7] = 'PRESET_MOBILE_HIGH_QUALITY';
let RESOLUTION_SOURCE = object4.RESOLUTION_SOURCE;
let FPS_60 = object5.FPS_60;
const BoostedGuildTiers = (ConstantsModule).BoostedGuildTiers;
const StreamQualities = (PremiumConstantsModule).StreamQualities;
object = {RESOLUTION_480: 480};
object[480] = 'RESOLUTION_480';
object.RESOLUTION_720 = 720;
object[720] = 'RESOLUTION_720';
object.RESOLUTION_1080 = 1080;
object[1080] = 'RESOLUTION_1080';
object.RESOLUTION_1440 = 1440;
object[1440] = 'RESOLUTION_1440';
object.RESOLUTION_SOURCE = 0;
object[0] = 'RESOLUTION_SOURCE';
const object2 = {FPS_5: 5};
object2[5] = 'FPS_5';
object2.FPS_15 = 15;
object2[15] = 'FPS_15';
object2.FPS_30 = 30;
object2[30] = 'FPS_30';
object2.FPS_60 = 60;
object2[60] = 'FPS_60';
const object3 = {PRESET_VIDEO: 1};
object3[1] = 'PRESET_VIDEO';
object3.PRESET_DOCUMENTS = 2;
object3[2] = 'PRESET_DOCUMENTS';
object3.PRESET_CUSTOM = 3;
object3[3] = 'PRESET_CUSTOM';
object3.PRESET_AUTO = 4;
object3[4] = 'PRESET_AUTO';
object3.PRESET_MOBILE_DEFAULT = 5;
object3[5] = 'PRESET_MOBILE_DEFAULT';
object3.PRESET_MOBILE_PERFORMANCE = 6;
object3[6] = 'PRESET_MOBILE_PERFORMANCE';
object3.PRESET_MOBILE_HIGH_QUALITY = 7;
object3[7] = 'PRESET_MOBILE_HIGH_QUALITY';
let RESOLUTION_SOURCE = object.RESOLUTION_SOURCE;
let FPS_60 = object2.FPS_60;
let HIGH_STREAMING_QUALITY = StreamQualities.HIGH_STREAMING_QUALITY;
const items7 = [{resolution: RESOLUTION_SOURCE, fps: FPS_60, quality: HIGH_STREAMING_QUALITY}];
RESOLUTION_SOURCE = object4.RESOLUTION_SOURCE;
let FPS_30 = object5.FPS_30;
RESOLUTION_SOURCE = object.RESOLUTION_SOURCE;
let FPS_30 = object2.FPS_30;
HIGH_STREAMING_QUALITY = StreamQualities.HIGH_STREAMING_QUALITY;
items7[1] = {resolution: RESOLUTION_SOURCE, fps: FPS_30, quality: HIGH_STREAMING_QUALITY};
RESOLUTION_SOURCE = object4.RESOLUTION_SOURCE;
let FPS_15 = object5.FPS_15;
RESOLUTION_SOURCE = object.RESOLUTION_SOURCE;
let FPS_15 = object2.FPS_15;
HIGH_STREAMING_QUALITY = StreamQualities.HIGH_STREAMING_QUALITY;
items7[2] = {resolution: RESOLUTION_SOURCE, fps: FPS_15, quality: HIGH_STREAMING_QUALITY};
RESOLUTION_SOURCE = object4.RESOLUTION_SOURCE;
let FPS_5 = object5.FPS_5;
const PRESET_DOCUMENTS = object6.PRESET_DOCUMENTS;
RESOLUTION_SOURCE = object.RESOLUTION_SOURCE;
let FPS_5 = object2.FPS_5;
const PRESET_DOCUMENTS = object3.PRESET_DOCUMENTS;
items7[3] = {resolution: RESOLUTION_SOURCE, fps: FPS_5, preset: PRESET_DOCUMENTS};
let RESOLUTION_1440 = object4.RESOLUTION_1440;
FPS_60 = object5.FPS_60;
let RESOLUTION_1440 = object.RESOLUTION_1440;
FPS_60 = object2.FPS_60;
let TIER_2 = BoostedGuildTiers.TIER_2;
let MID_STREAMING_QUALITY = StreamQualities.MID_STREAMING_QUALITY;
items7[4] = {resolution: RESOLUTION_1440, fps: FPS_60, guildPremiumTier: TIER_2, quality: MID_STREAMING_QUALITY};
RESOLUTION_1440 = object4.RESOLUTION_1440;
FPS_30 = object5.FPS_30;
RESOLUTION_1440 = object.RESOLUTION_1440;
FPS_30 = object2.FPS_30;
TIER_2 = BoostedGuildTiers.TIER_2;
MID_STREAMING_QUALITY = StreamQualities.MID_STREAMING_QUALITY;
items7[5] = {resolution: RESOLUTION_1440, fps: FPS_30, guildPremiumTier: TIER_2, quality: MID_STREAMING_QUALITY};
RESOLUTION_1440 = object4.RESOLUTION_1440;
FPS_15 = object5.FPS_15;
RESOLUTION_1440 = object.RESOLUTION_1440;
FPS_15 = object2.FPS_15;
TIER_2 = BoostedGuildTiers.TIER_2;
MID_STREAMING_QUALITY = StreamQualities.MID_STREAMING_QUALITY;
items7[6] = {resolution: RESOLUTION_1440, fps: FPS_15, guildPremiumTier: TIER_2, quality: MID_STREAMING_QUALITY};
let RESOLUTION_1080 = object4.RESOLUTION_1080;
FPS_60 = object5.FPS_60;
let RESOLUTION_1080 = object.RESOLUTION_1080;
FPS_60 = object2.FPS_60;
TIER_2 = BoostedGuildTiers.TIER_2;
MID_STREAMING_QUALITY = StreamQualities.MID_STREAMING_QUALITY;
items7[7] = {resolution: RESOLUTION_1080, fps: FPS_60, guildPremiumTier: TIER_2, quality: MID_STREAMING_QUALITY};
RESOLUTION_1080 = object4.RESOLUTION_1080;
FPS_30 = object5.FPS_30;
RESOLUTION_1080 = object.RESOLUTION_1080;
FPS_30 = object2.FPS_30;
TIER_2 = BoostedGuildTiers.TIER_2;
MID_STREAMING_QUALITY = StreamQualities.MID_STREAMING_QUALITY;
items7[8] = {resolution: RESOLUTION_1080, fps: FPS_30, guildPremiumTier: TIER_2, quality: MID_STREAMING_QUALITY};
RESOLUTION_1080 = object4.RESOLUTION_1080;
FPS_15 = object5.FPS_15;
RESOLUTION_1080 = object.RESOLUTION_1080;
FPS_15 = object2.FPS_15;
TIER_2 = BoostedGuildTiers.TIER_2;
MID_STREAMING_QUALITY = StreamQualities.MID_STREAMING_QUALITY;
items7[9] = {resolution: RESOLUTION_1080, fps: FPS_15, guildPremiumTier: TIER_2, quality: MID_STREAMING_QUALITY};
let RESOLUTION_720 = object4.RESOLUTION_720;
FPS_60 = object5.FPS_60;
let RESOLUTION_720 = object.RESOLUTION_720;
FPS_60 = object2.FPS_60;
let TIER_1 = BoostedGuildTiers.TIER_1;
MID_STREAMING_QUALITY = StreamQualities.MID_STREAMING_QUALITY;
items7[10] = {resolution: RESOLUTION_720, fps: FPS_60, guildPremiumTier: TIER_1, quality: MID_STREAMING_QUALITY};
RESOLUTION_720 = object4.RESOLUTION_720;
FPS_30 = object5.FPS_30;
RESOLUTION_720 = object.RESOLUTION_720;
FPS_30 = object2.FPS_30;
items7[11] = {resolution: RESOLUTION_720, fps: FPS_30};
RESOLUTION_720 = object4.RESOLUTION_720;
FPS_15 = object5.FPS_15;
RESOLUTION_720 = object.RESOLUTION_720;
FPS_15 = object2.FPS_15;
items7[12] = {resolution: RESOLUTION_720, fps: FPS_15};
RESOLUTION_720 = object4.RESOLUTION_720;
FPS_5 = object5.FPS_5;
RESOLUTION_720 = object.RESOLUTION_720;
FPS_5 = object2.FPS_5;
items7[13] = {resolution: RESOLUTION_720, fps: FPS_5};
let RESOLUTION_480 = object4.RESOLUTION_480;
FPS_60 = object5.FPS_60;
let RESOLUTION_480 = object.RESOLUTION_480;
FPS_60 = object2.FPS_60;
TIER_1 = BoostedGuildTiers.TIER_1;
MID_STREAMING_QUALITY = StreamQualities.MID_STREAMING_QUALITY;
items7[14] = {resolution: RESOLUTION_480, fps: FPS_60, guildPremiumTier: TIER_1, quality: MID_STREAMING_QUALITY};
RESOLUTION_480 = object4.RESOLUTION_480;
FPS_30 = object5.FPS_30;
RESOLUTION_480 = object.RESOLUTION_480;
FPS_30 = object2.FPS_30;
items7[15] = {resolution: RESOLUTION_480, fps: FPS_30};
RESOLUTION_480 = object4.RESOLUTION_480;
FPS_15 = object5.FPS_15;
RESOLUTION_480 = object.RESOLUTION_480;
FPS_15 = object2.FPS_15;
items7[16] = {resolution: RESOLUTION_480, fps: FPS_15};
RESOLUTION_480 = object4.RESOLUTION_480;
FPS_5 = object5.FPS_5;
RESOLUTION_480 = object.RESOLUTION_480;
FPS_5 = object2.FPS_5;
items7[17] = {resolution: RESOLUTION_480, fps: FPS_5};
RESOLUTION_720 = object4.RESOLUTION_720;
RESOLUTION_720 = object.RESOLUTION_720;
const items2 = [closure(RESOLUTION_720)];
RESOLUTION_1080 = object4.RESOLUTION_1080;
RESOLUTION_1080 = object.RESOLUTION_1080;
items2[1] = closure(RESOLUTION_1080);
RESOLUTION_1440 = object4.RESOLUTION_1440;
RESOLUTION_1440 = object.RESOLUTION_1440;
items2[2] = closure(RESOLUTION_1440);
RESOLUTION_SOURCE = object4.RESOLUTION_SOURCE;
RESOLUTION_SOURCE = object.RESOLUTION_SOURCE;
items2[3] = closure(RESOLUTION_SOURCE, function() {
return require(dependencyMap[2]).intl.string(require(dependencyMap[2]).t.XjXqzh);
});
RESOLUTION_720 = object4.RESOLUTION_720;
RESOLUTION_720 = object.RESOLUTION_720;
const items3 = [closure(RESOLUTION_720)];
RESOLUTION_1080 = object4.RESOLUTION_1080;
RESOLUTION_1080 = object.RESOLUTION_1080;
items3[1] = closure(RESOLUTION_1080);
RESOLUTION_1440 = object4.RESOLUTION_1440;
RESOLUTION_1440 = object.RESOLUTION_1440;
items3[2] = closure(RESOLUTION_1440);
const closure2 = makeResolutionLabel;
RESOLUTION_480 = object4.RESOLUTION_480;
const makeResolutionLabel2 = makeResolutionLabel;
RESOLUTION_480 = object.RESOLUTION_480;
const items4 = [closure(RESOLUTION_480, _fun36320)];
RESOLUTION_720 = object4.RESOLUTION_720;
RESOLUTION_720 = object.RESOLUTION_720;
items4[1] = closure(RESOLUTION_720, _fun36321);
RESOLUTION_1080 = object4.RESOLUTION_1080;
RESOLUTION_1080 = object.RESOLUTION_1080;
items4[2] = closure(RESOLUTION_1080, _fun36322);
RESOLUTION_1440 = object4.RESOLUTION_1440;
RESOLUTION_1440 = object.RESOLUTION_1440;
items4[3] = closure(RESOLUTION_1440, _fun36323);
RESOLUTION_SOURCE = object4.RESOLUTION_SOURCE;
RESOLUTION_SOURCE = object.RESOLUTION_SOURCE;
items4[4] = closure(RESOLUTION_SOURCE, _fun36324);
FPS_15 = object5.FPS_15;
FPS_15 = object2.FPS_15;
const items5 = [closure(FPS_15)];
FPS_30 = object5.FPS_30;
FPS_30 = object2.FPS_30;
items5[1] = closure(FPS_30);
FPS_60 = object5.FPS_60;
FPS_60 = object2.FPS_60;
items5[2] = closure(FPS_60);
FPS_15 = object5.FPS_15;
FPS_15 = object2.FPS_15;
const items6 = [closure(FPS_15, _fun36325)];
FPS_30 = object5.FPS_30;
FPS_30 = object2.FPS_30;
items6[1] = closure(FPS_30, _fun36326);
FPS_60 = object5.FPS_60;
FPS_60 = object2.FPS_60;
items6[2] = closure(FPS_60, _fun36327);
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/go_live/StreamSettingsConstants.tsx');
exports.ApplicationStreamResolutions = object4;
(FileImportTrackerModule).fileFinishedImporting('modules/go_live/StreamSettingsConstants.tsx');
exports.ApplicationStreamResolutions = object;
exports.getApplicationResolution = getApplicationResolution;
exports.ApplicationStreamFPS = object5;
exports.ApplicationStreamPresets = object6;
exports.ApplicationStreamFPS = object2;
exports.ApplicationStreamPresets = object3;
exports.getApplicationFramerate = getApplicationFramerate;
exports.ApplicationStreamSettingRequirements = items7;
exports.ApplicationStreamResolutionButtons = items2;
exports.GoLiveDeviceResolutionButtons = items3;
exports.makeResolutionLabel = closure2;
exports.makeResolutionLabel = makeResolutionLabel2;
exports.ApplicationStreamResolutionButtonsWithSuffixLabel = items4;
exports.ApplicationStreamFPSButtons = items5;
exports.ApplicationStreamFPSButtonsWithSuffixLabel = items6;
}
function makeButton(a0, a1, a2) { // fn#36315, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4454:2257, offset: 0x01088f48, size: 56 bytes, params: 4, frame: 5
const env0_0 = a0;
const env0_1 = a1;
const object = {value: a0};
Object.defineProperty(object, 'label', {get: _fun36316, set: undefined, enumerable: true, configurable: true});
Object.defineProperty(object, 'subtext', {get: _fun36317, set: undefined, enumerable: true, configurable: true});
return object;
function _fun36316() { // fn#36316, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4454:2299, offset: 0x01088f80, size: 46 bytes, params: 1, frame: 12
return require != null ? require() : global.String(env0_0);
}
function makeButton(a0, a1, a2) { // fn#36315, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4454:2257, offset: 0x01088f48, size: 56 bytes, params: 4, frame: 5
const env0_0 = a0;
const env0_1 = a1;
const object2 = {value: a0};
Object.defineProperty(object2, 'label', {get: _fun36316, set: undefined, enumerable: true, configurable: true});
Object.defineProperty(object2, 'subtext', {get: _fun36317, set: undefined, enumerable: true, configurable: true});
return object2;
}
function _fun36317() { // fn#36317, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4454:2341, offset: 0x01088fae, size: 30 bytes, params: 1, frame: 11
return env0_2?.();
}
function makeResolutionLabel(a0) { // fn#36319, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4454:2669, offset: 0x0108900a, size: 146 bytes, params: 2, frame: 17
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
const t = (require(1244) /* metro dependency 1244: indexNative */).t;
const RESOLUTION_SOURCE = env0_2.RESOLUTION_SOURCE;
return a0 === RESOLUTION_SOURCE ? intl.string(t.XjXqzh) : intl.formatToPlainString(t.TEOC0I, {resolution: a0});
}
function _fun36320() { // fn#36320, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4454:2832, offset: 0x0108909c, size: 26 bytes, params: 1, frame: 11
const makeResolutionLabelBinding = makeResolutionLabel;
const RESOLUTION_480 = env0_2.RESOLUTION_480;
return makeResolutionLabelBinding(RESOLUTION_480);
}
function _fun36321() { // fn#36321, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4454:2905, offset: 0x010890b6, size: 26 bytes, params: 1, frame: 11
const makeResolutionLabelBinding = makeResolutionLabel;
const RESOLUTION_720 = env0_2.RESOLUTION_720;
return makeResolutionLabelBinding(RESOLUTION_720);
}
function _fun36322() { // fn#36322, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4454:2979, offset: 0x010890d0, size: 26 bytes, params: 1, frame: 11
const makeResolutionLabelBinding = makeResolutionLabel;
const RESOLUTION_1080 = env0_2.RESOLUTION_1080;
return makeResolutionLabelBinding(RESOLUTION_1080);
}
function _fun36323() { // fn#36323, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4454:3054, offset: 0x010890ea, size: 26 bytes, params: 1, frame: 11
const makeResolutionLabelBinding = makeResolutionLabel;
const RESOLUTION_1440 = env0_2.RESOLUTION_1440;
return makeResolutionLabelBinding(RESOLUTION_1440);
}
function _fun36324() { // fn#36324, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4454:3131, offset: 0x01089104, size: 26 bytes, params: 1, frame: 11
const makeResolutionLabelBinding = makeResolutionLabel;
const RESOLUTION_SOURCE = env0_2.RESOLUTION_SOURCE;
return makeResolutionLabelBinding(RESOLUTION_SOURCE);
}
function _fun36325() { // fn#36325, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4454:3270, offset: 0x0108911e, size: 79 bytes, params: 1, frame: 16
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
const formatToPlainString = intl.formatToPlainString;
const property = (require(1244) /* metro dependency 1244: indexNative */).t['bW+JCW'];
const FPS_15 = env0_3.FPS_15;
return Reflect.apply(formatToPlainString, intl, [property, {value: FPS_15}]);
}
function _fun36326() { // fn#36326, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4454:3368, offset: 0x0108916d, size: 79 bytes, params: 1, frame: 16
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
const formatToPlainString = intl.formatToPlainString;
const property = (require(1244) /* metro dependency 1244: indexNative */).t['bW+JCW'];
const FPS_30 = env0_3.FPS_30;
return Reflect.apply(formatToPlainString, intl, [property, {value: FPS_30}]);
}
function _fun36327() { // fn#36327, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4454:3466, offset: 0x010891bc, size: 79 bytes, params: 1, frame: 16
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
const formatToPlainString = intl.formatToPlainString;
const property = (require(1244) /* metro dependency 1244: indexNative */).t['bW+JCW'];
const FPS_60 = env0_3.FPS_60;
return Reflect.apply(formatToPlainString, intl, [property, {value: FPS_60}]);
}
function getApplicationResolution(a0) { // fn#36328, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4454:3681, offset: 0x0108920b, size: 194 bytes, params: 2, frame: 13
const RESOLUTION_480 = env0_2.RESOLUTION_480;
if (RESOLUTION_480 === a0) {
return env0_2.RESOLUTION_480;
}
const RESOLUTION_720 = env0_2.RESOLUTION_720;
if (RESOLUTION_720 === a0) {
return env0_2.RESOLUTION_720;
function makeResolutionLabel(a0) { // fn#36319, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4454:2669, offset: 0x0108900a, size: 146 bytes, params: 2, frame: 17
const intl = (IndexNativeModule).intl;
const t = (IndexNativeModule).t;
const RESOLUTION_SOURCE = env0_2.RESOLUTION_SOURCE;
return a0 === RESOLUTION_SOURCE ? intl.string(t.XjXqzh) : intl.formatToPlainString(t.TEOC0I, {resolution: a0});
}
const RESOLUTION_1080 = env0_2.RESOLUTION_1080;
if (RESOLUTION_1080 === a0) {
return env0_2.RESOLUTION_1080;
function _fun36320() { // fn#36320, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4454:2832, offset: 0x0108909c, size: 26 bytes, params: 1, frame: 11
const makeResolutionLabelBinding = makeResolutionLabel;
const RESOLUTION_480 = env0_2.RESOLUTION_480;
return makeResolutionLabelBinding(RESOLUTION_480);
}
const RESOLUTION_1440 = env0_2.RESOLUTION_1440;
if (RESOLUTION_1440 === a0) {
return env0_2.RESOLUTION_1440;
function _fun36321() { // fn#36321, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4454:2905, offset: 0x010890b6, size: 26 bytes, params: 1, frame: 11
const makeResolutionLabelBinding = makeResolutionLabel;
const RESOLUTION_720 = env0_2.RESOLUTION_720;
return makeResolutionLabelBinding(RESOLUTION_720);
}
const RESOLUTION_SOURCE = env0_2.RESOLUTION_SOURCE;
if (RESOLUTION_SOURCE === a0) {
return env0_2.RESOLUTION_SOURCE;
function _fun36322() { // fn#36322, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4454:2979, offset: 0x010890d0, size: 26 bytes, params: 1, frame: 11
const makeResolutionLabelBinding = makeResolutionLabel;
const RESOLUTION_1080 = env0_2.RESOLUTION_1080;
return makeResolutionLabelBinding(RESOLUTION_1080);
}
const Error = global.Error;
const value = 'Unknown resolution: ' + a0;
const value2 = Object.create(Error.prototype, {constructor: {value: Error}});
const error = new Error();
throw error instanceof Object ? error : value2;
}
function getApplicationFramerate(a0) { // fn#36329, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4454:4102, offset: 0x010892cd, size: 165 bytes, params: 2, frame: 13
const FPS_5 = env0_3.FPS_5;
if (FPS_5 === a0) {
return env0_3.FPS_5;
function _fun36323() { // fn#36323, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4454:3054, offset: 0x010890ea, size: 26 bytes, params: 1, frame: 11
const makeResolutionLabelBinding = makeResolutionLabel;
const RESOLUTION_1440 = env0_2.RESOLUTION_1440;
return makeResolutionLabelBinding(RESOLUTION_1440);
}
function _fun36324() { // fn#36324, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4454:3131, offset: 0x01089104, size: 26 bytes, params: 1, frame: 11
const makeResolutionLabelBinding = makeResolutionLabel;
const RESOLUTION_SOURCE = env0_2.RESOLUTION_SOURCE;
return makeResolutionLabelBinding(RESOLUTION_SOURCE);
}
const FPS_15 = env0_3.FPS_15;
if (FPS_15 === a0) {
return env0_3.FPS_15;
function _fun36325() { // fn#36325, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4454:3270, offset: 0x0108911e, size: 79 bytes, params: 1, frame: 16
const intl = (IndexNativeModule).intl;
const formatToPlainString = intl.formatToPlainString;
const property = (IndexNativeModule).t['bW+JCW'];
const FPS_15 = env0_3.FPS_15;
return Reflect.apply(formatToPlainString, intl, [property, {value: FPS_15}]);
}
const FPS_30 = env0_3.FPS_30;
if (FPS_30 === a0) {
return env0_3.FPS_30;
function _fun36326() { // fn#36326, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4454:3368, offset: 0x0108916d, size: 79 bytes, params: 1, frame: 16
const intl = (IndexNativeModule).intl;
const formatToPlainString = intl.formatToPlainString;
const property = (IndexNativeModule).t['bW+JCW'];
const FPS_30 = env0_3.FPS_30;
return Reflect.apply(formatToPlainString, intl, [property, {value: FPS_30}]);
}
const FPS_60 = env0_3.FPS_60;
if (FPS_60 === a0) {
return env0_3.FPS_60;
function _fun36327() { // fn#36327, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4454:3466, offset: 0x010891bc, size: 79 bytes, params: 1, frame: 16
const intl = (IndexNativeModule).intl;
const formatToPlainString = intl.formatToPlainString;
const property = (IndexNativeModule).t['bW+JCW'];
const FPS_60 = env0_3.FPS_60;
return Reflect.apply(formatToPlainString, intl, [property, {value: FPS_60}]);
}
const Error = global.Error;
const value = 'Unknown frame rate: ' + a0;
const value2 = Object.create(Error.prototype, {constructor: {value: Error}});
const error = new Error();
throw error instanceof Object ? error : value2;
}
function _fun36316() { // fn#36316, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4454:2299, offset: 0x01088f80, size: 46 bytes, params: 1, frame: 12
return require != null ? require() : global.String(env0_0);
}
function _fun36317() { // fn#36317, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4454:2341, offset: 0x01088fae, size: 30 bytes, params: 1, frame: 11
return env0_2?.();
function getApplicationResolution(a0) { // fn#36328, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4454:3681, offset: 0x0108920b, size: 194 bytes, params: 2, frame: 13
const RESOLUTION_480 = env0_2.RESOLUTION_480;
if (RESOLUTION_480 === a0) {
return env0_2.RESOLUTION_480;
}
const RESOLUTION_720 = env0_2.RESOLUTION_720;
if (RESOLUTION_720 === a0) {
return env0_2.RESOLUTION_720;
}
const RESOLUTION_1080 = env0_2.RESOLUTION_1080;
if (RESOLUTION_1080 === a0) {
return env0_2.RESOLUTION_1080;
}
const RESOLUTION_1440 = env0_2.RESOLUTION_1440;
if (RESOLUTION_1440 === a0) {
return env0_2.RESOLUTION_1440;
}
const RESOLUTION_SOURCE = env0_2.RESOLUTION_SOURCE;
if (RESOLUTION_SOURCE === a0) {
return env0_2.RESOLUTION_SOURCE;
}
const Error = global.Error;
const value = 'Unknown resolution: ' + a0;
const value2 = Object.create(Error.prototype, {constructor: {value: Error}});
const error = new Error();
throw error instanceof Object ? error : value2;
}
function getApplicationFramerate(a0) { // fn#36329, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4454:4102, offset: 0x010892cd, size: 165 bytes, params: 2, frame: 13
const FPS_5 = env0_3.FPS_5;
if (FPS_5 === a0) {
return env0_3.FPS_5;
}
const FPS_15 = env0_3.FPS_15;
if (FPS_15 === a0) {
return env0_3.FPS_15;
}
const FPS_30 = env0_3.FPS_30;
if (FPS_30 === a0) {
return env0_3.FPS_30;
}
const FPS_60 = env0_3.FPS_60;
if (FPS_60 === a0) {
return env0_3.FPS_60;
}
const Error = global.Error;
const value = 'Unknown frame rate: ' + a0;
const value2 = Object.create(Error.prototype, {constructor: {value: Error}});
const error = new Error();
throw error instanceof Object ? error : value2;
}
}
global.__d(_fun36314, 4282, [661, 1880, 1244, 2]) /* metro module 4282, dependencies: [661, 1880, 1244, 2] */;
+128 -123
View File
@@ -1,4 +1,11 @@
/* Metro module 4404; source: modules/go_live/VideoStreamStats.tsx; dependencies: [6, 7, 4399, 661, 4041, 4303, 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 ApplicationStreamingSettingsStore from '../../stores/ApplicationStreamingSettingsStore.tsx'; /* Metro dependency 4399 */
import * as FileImportTrackerModule from '../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ConstantsModule from '../../Constants.tsx'; /* Metro dependency 661 */
import * as TimersModule from '../../external/discord_common/js/packages/timers/Timers.tsx'; /* Metro dependency 4041 */
function _fun37427(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#37427, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4576:6, offset: 0x010a4d15, size: 179 bytes, params: 8, frame: 19
const env0_0 = require;
const round = function(a0) {
@@ -10,133 +17,131 @@ function _fun37427(global, require, importDefault, importAll, module, exports, d
};
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const env0_2 = importDefault(6) /* metro dependency 6 */;
const env0_3 = importDefault(7) /* metro dependency 7 */;
const applicationStreamingSettingsStore = importDefault(4399) /* metro dependency 4399: ApplicationStreamingSettingsStore */;
const env0_5 = (require(661) /* metro dependency 661: Constants */).StreamLayouts;
let value = _fun37429();
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/go_live/VideoStreamStats.tsx');
(FileImportTrackerModule).fileFinishedImporting('modules/go_live/VideoStreamStats.tsx');
exports.default = value;
}
function _fun37429() { // fn#37429, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4576:209, offset: 0x010a4df0, size: 172 bytes, params: 1, frame: 15
return env0_3(VideoStreamStats, [{key: 'start', value: value_37433}, {key: 'stop', value: value_37434},
{key: 'autoQualityChange', value: function() {
this._automaticQualityChanges += 1;
}}, {key: 'layoutChange', value: value_37436}, {key: 'getLayout', value: function() {
return this._lastLayout;
}}, {key: 'getStats', value: value_37438}]);
}
function VideoStreamStats(a0, a1) { // fn#37430, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4576:230, offset: 0x010a4e9c, size: 173 bytes, params: 3, frame: 15
var environment;
const value = environment.__proto__;
env1_2(this, VideoStreamStats);
this._targetResolution = 0;
this._targetFPS = 0;
this._streamSettingsChanged = false;
this._lastLayoutChanged = 0;
this._layoutChanges = 0;
this._automaticQualityChanges = 0;
this._incrementLayout = _incrementLayout;
this._sampleStats = _sampleStats;
this._isSender = a1;
const Interval = (require(4041) /* metro dependency 4041: Timers */).Interval;
this._statInterval = new Interval();
this._lastLayout = a0;
this._layoutBuckets = {};
}
function value_37433() { // fn#37433, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4576:818, offset: 0x010a4fd9, size: 112 bytes, params: 1, frame: 15
let value = environment.__proto__;
const {resolution, fps} = ApplicationStreamingSettingsStore.getState();
this._targetResolution = resolution;
this._targetFPS = fps;
const _statInterval = this._statInterval;
_statInterval.start(1000, this._sampleStats);
value = require(4303) /* metro dependency 4303: TimeUtils */;
this._lastLayoutChanged = value.now();
}
function value_37434() { // fn#37434, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4576:1020, offset: 0x010a5049, size: 105 bytes, params: 1, frame: 15
this._statInterval.stop();
let value = environment.__proto__;
value = require(4303) /* metro dependency 4303: TimeUtils */;
this._streamEnd = value.now();
this._incrementLayout(this._lastLayout, (this._streamEnd - this._lastLayoutChanged) / 1000);
}
function value_37436(a0) { // fn#37436, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4576:1278, offset: 0x010a50cc, size: 131 bytes, params: 2, frame: 16
var value;
var _layoutChanges;
if (a0 !== this._lastLayout) {
if (this._streamEnd == null) {
value = environment.__proto__;
value = require(4303) /* metro dependency 4303: TimeUtils */;
value = value.now();
this._incrementLayout(this._lastLayout, (value - this._lastLayoutChanged) / 1000);
_layoutChanges = this._layoutChanges;
this._layoutChanges = typeof _layoutChanges === 'bigint' ? _layoutChanges + 1n : +_layoutChanges + 1;
function _fun37429() { // fn#37429, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4576:209, offset: 0x010a4df0, size: 172 bytes, params: 1, frame: 15
return CreateClass(VideoStreamStats, [{key: 'start', value: value_37433}, {key: 'stop', value: value_37434},
{key: 'autoQualityChange', value: function() {
this._automaticQualityChanges += 1;
}}, {key: 'layoutChange', value: value_37436}, {key: 'getLayout', value: function() {
return this._lastLayout;
}}, {key: 'getStats', value: value_37438}]);
function VideoStreamStats(a0, a1) { // fn#37430, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4576:230, offset: 0x010a4e9c, size: 173 bytes, params: 3, frame: 15
var environment;
const value = environment.__proto__;
env1_2(this, VideoStreamStats);
this._targetResolution = 0;
this._targetFPS = 0;
this._streamSettingsChanged = false;
this._lastLayoutChanged = 0;
this._layoutChanges = 0;
this._automaticQualityChanges = 0;
this._incrementLayout = _incrementLayout;
this._sampleStats = _sampleStats;
this._isSender = a1;
const Interval = (TimersModule).Interval;
this._statInterval = new Interval();
this._lastLayout = a0;
this._lastLayoutChanged = value;
this._layoutBuckets = {};
function _incrementLayout(a0, a1) { // fn#37431, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4576:462, owner: VideoStreamStats._incrementLayout, offset: 0x010a4f49, size: 71 bytes, params: 3, frame: 4
if (env0_0._layoutBuckets[a0] == null) {
env0_0._layoutBuckets[a0] = 0;
}
env0_0._layoutBuckets[a0] += a1;
}
function _sampleStats() { // fn#37432, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4576:572, owner: VideoStreamStats._sampleStats, offset: 0x010a4f90, size: 73 bytes, params: 1, frame: 12
let value = environment.__proto__.__proto__;
value = ApplicationStreamingSettingsStore.getState();
const resolution = value.resolution;
const fps = value.fps;
const binding = env0_0;
binding._streamSettingsChanged = resolution !== binding._targetResolution || fps !== env0_0._targetFPS;
}
}
function value_37433() { // fn#37433, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4576:818, offset: 0x010a4fd9, size: 112 bytes, params: 1, frame: 15
let value = environment.__proto__;
const {resolution, fps} = ApplicationStreamingSettingsStore.getState();
this._targetResolution = resolution;
this._targetFPS = fps;
const _statInterval = this._statInterval;
_statInterval.start(1000, this._sampleStats);
value = require(4303) /* metro dependency 4303: TimeUtils */;
this._lastLayoutChanged = value.now();
}
function value_37434() { // fn#37434, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4576:1020, offset: 0x010a5049, size: 105 bytes, params: 1, frame: 15
this._statInterval.stop();
let value = environment.__proto__;
value = require(4303) /* metro dependency 4303: TimeUtils */;
this._streamEnd = value.now();
this._incrementLayout(this._lastLayout, (this._streamEnd - this._lastLayoutChanged) / 1000);
}
function value_37436(a0) { // fn#37436, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4576:1278, offset: 0x010a50cc, size: 131 bytes, params: 2, frame: 16
var value;
var _layoutChanges;
if (a0 !== this._lastLayout) {
if (this._streamEnd == null) {
value = environment.__proto__;
value = require(4303) /* metro dependency 4303: TimeUtils */;
value = value.now();
this._incrementLayout(this._lastLayout, (value - this._lastLayoutChanged) / 1000);
_layoutChanges = this._layoutChanges;
this._layoutChanges = typeof _layoutChanges === 'bigint' ? _layoutChanges + 1n : +_layoutChanges + 1;
this._lastLayout = a0;
this._lastLayoutChanged = value;
}
}
}
function value_37438() { // fn#37438, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4576:1582, offset: 0x010a515a, size: 324 bytes, params: 1, frame: 16
var r0;
var object;
const object2 = {};
object2.num_layout_changes = this._layoutChanges;
const roundBinding = round;
let _layoutBuckets = this._layoutBuckets;
const FULL_SCREEN = StreamLayouts.FULL_SCREEN;
object2.duration_layout_fullscreen = roundBinding(_layoutBuckets[FULL_SCREEN]);
_layoutBuckets = this._layoutBuckets;
const THEATRE = StreamLayouts.THEATRE;
object2.duration_layout_theatre = roundBinding(_layoutBuckets[THEATRE]);
_layoutBuckets = this._layoutBuckets;
const PIP = StreamLayouts.PIP;
object2.duration_layout_pip = roundBinding(_layoutBuckets[PIP]);
_layoutBuckets = this._layoutBuckets;
const POPOUT = StreamLayouts.POPOUT;
object2.duration_layout_popout = roundBinding(_layoutBuckets[POPOUT]);
_layoutBuckets = this._layoutBuckets;
const PORTRAIT = StreamLayouts.PORTRAIT;
object2.duration_layout_portrait = roundBinding(_layoutBuckets[PORTRAIT]);
_layoutBuckets = this._layoutBuckets;
const LANDSCAPE = StreamLayouts.LANDSCAPE;
object2.duration_layout_landscape = roundBinding(_layoutBuckets[LANDSCAPE]);
const _layoutBuckets2 = this._layoutBuckets;
const MINIMIZED = StreamLayouts.MINIMIZED;
object2.duration_layout_minimized = roundBinding(_layoutBuckets2[MINIMIZED]);
if (this._isSender) {
object = {};
copyDataProperties(object, object2, _layoutBuckets);
object['target_fps'] = this._targetFPS;
object['target_resolution_height'] = this._targetResolution;
object['stream_settings_changed'] = this._streamSettingsChanged;
object['num_auto_quality_changes'] = this._automaticQualityChanges;
r0 = object;
} else {
r0 = object2;
}
return r0;
}
}
}
function value_37438() { // fn#37438, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4576:1582, offset: 0x010a515a, size: 324 bytes, params: 1, frame: 16
var r0;
var object3;
const object4 = {};
object4.num_layout_changes = this._layoutChanges;
const roundBinding = round;
let _layoutBuckets = this._layoutBuckets;
const FULL_SCREEN = StreamLayouts.FULL_SCREEN;
object4.duration_layout_fullscreen = roundBinding(_layoutBuckets[FULL_SCREEN]);
_layoutBuckets = this._layoutBuckets;
const THEATRE = StreamLayouts.THEATRE;
object4.duration_layout_theatre = roundBinding(_layoutBuckets[THEATRE]);
_layoutBuckets = this._layoutBuckets;
const PIP = StreamLayouts.PIP;
object4.duration_layout_pip = roundBinding(_layoutBuckets[PIP]);
_layoutBuckets = this._layoutBuckets;
const POPOUT = StreamLayouts.POPOUT;
object4.duration_layout_popout = roundBinding(_layoutBuckets[POPOUT]);
_layoutBuckets = this._layoutBuckets;
const PORTRAIT = StreamLayouts.PORTRAIT;
object4.duration_layout_portrait = roundBinding(_layoutBuckets[PORTRAIT]);
_layoutBuckets = this._layoutBuckets;
const LANDSCAPE = StreamLayouts.LANDSCAPE;
object4.duration_layout_landscape = roundBinding(_layoutBuckets[LANDSCAPE]);
const _layoutBuckets2 = this._layoutBuckets;
const MINIMIZED = StreamLayouts.MINIMIZED;
object4.duration_layout_minimized = roundBinding(_layoutBuckets2[MINIMIZED]);
if (this._isSender) {
object3 = {};
copyDataProperties(object3, object4, _layoutBuckets);
object3['target_fps'] = this._targetFPS;
object3['target_resolution_height'] = this._targetResolution;
object3['stream_settings_changed'] = this._streamSettingsChanged;
object3['num_auto_quality_changes'] = this._automaticQualityChanges;
r0 = object3;
} else {
r0 = object4;
}
return r0;
}
function _incrementLayout(a0, a1) { // fn#37431, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4576:462, owner: VideoStreamStats._incrementLayout, offset: 0x010a4f49, size: 71 bytes, params: 3, frame: 4
if (env0_0._layoutBuckets[a0] == null) {
env0_0._layoutBuckets[a0] = 0;
}
env0_0._layoutBuckets[a0] += a1;
}
function _sampleStats() { // fn#37432, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4576:572, owner: VideoStreamStats._sampleStats, offset: 0x010a4f90, size: 73 bytes, params: 1, frame: 12
let value = environment.__proto__.__proto__;
value = ApplicationStreamingSettingsStore.getState();
const resolution = value.resolution;
const fps = value.fps;
const binding = env0_0;
binding._streamSettingsChanged = resolution !== binding._targetResolution || fps !== env0_0._targetFPS;
}
global.__d(_fun37427, 4404, [6, 7, 4399, 661, 4041, 4303,
2]) /* metro module 4404, dependencies: [6, 7, 4399, 661, 4041, 4303, 2] */;
@@ -1,11 +1,15 @@
/* Metro module 15485; source: modules/go_live/native/AndroidAudioCaptureBugWarningExperiment.tsx; dependencies: [1854, 2] */
import * as FileImportTrackerModule from '../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ApexModule from '../../experiments/apex/index.tsx'; /* Metro dependency 1854 */
function _fun118550(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#118550, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15682:6, offset: 0x024e15f0, size: 147 bytes, params: 8, frame: 20
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
let value = require(1854) /* metro dependency 1854: apex */;
let value = ApexModule;
value = value.createApexExperiment({'name': '2026-05-android-audio-capture-bug-warning', 'kind': 'user',
defaultConfig: {showAudioCaptureBugWarning: false}, variations: {[1]: {showAudioCaptureBugWarning: true}}});
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/go_live/native/AndroidAudioCaptureBugWarningExperiment.tsx');
(FileImportTrackerModule).fileFinishedImporting('modules/go_live/native/AndroidAudioCaptureBugWarningExperiment.tsx');
exports.default = value;
}
global.__d(_fun118550, 15485, [1854, 2]) /* metro module 15485, dependencies: [1854, 2] */;
@@ -1,109 +1,124 @@
/* Metro module 16189; source: modules/go_live/native/ApplicationStreamingManager.tsx; dependencies: [6, 7, 15, 17, 18, 31, 4399, 4282, 4291, 33, 3, 4496, 16190, 1962, 10801, 8899, 16192, 2] */
import Logger from '../../debug/Logger.tsx'; /* Metro dependency 3 */
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 ApplicationStreamingSettingsStore from '../../../stores/ApplicationStreamingSettingsStore.tsx'; /* Metro dependency 4399 */
import * as FileImportTrackerModule from '../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ReactModule from '../../../by-id/module-00031-React.js'; /* Metro dependency 31 */
import * as JsxRuntimeModule from '../../../by-id/module-00033-JsxRuntime.js'; /* Metro dependency 33 */
import * as StreamSettingsConstantsModule from '../StreamSettingsConstants.tsx'; /* Metro dependency 4282 */
import * as ConstantsModule from '../../../external/discord_common/js/packages/media-engine/Constants.tsx'; /* Metro dependency 4291 */
function _fun125080(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#125080, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16397:6, offset: 0x025cd6f8, size: 379 bytes, params: 8, frame: 20
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const env0_3 = importDefault(6) /* metro dependency 6 */;
const env0_4 = importDefault(7) /* metro dependency 7 */;
const env0_5 = importDefault(15) /* metro dependency 15 */;
const env0_6 = importDefault(17) /* metro dependency 17 */;
const env0_7 = importDefault(18) /* metro dependency 18 */;
importAll(31) /* metro dependency 31 */;
const applicationStreamingSettingsStore = importDefault(4399) /* metro dependency 4399: ApplicationStreamingSettingsStore */;
const env0_9 = (require(4282) /* metro dependency 4282: StreamSettingsConstants */).ApplicationStreamPresets;
const env0_10 = (require(4291) /* metro dependency 4291: Constants */).MediaEngineContextTypes;
const env0_11 = (require(33) /* metro dependency 33 */).jsx;
let value = importDefault(3) /* metro dependency 3: Logger */;
ReactModule;
let value = Logger;
value = new value('ApplicationStreamingManager');
value.enableNativeLogger(true);
value = importDefault(16192) /* metro dependency 16192: ApplicationStreamingManager */;
value = _fun125084(value);
value = new value();
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/go_live/native/ApplicationStreamingManager.tsx');
(FileImportTrackerModule).fileFinishedImporting('modules/go_live/native/ApplicationStreamingManager.tsx');
exports.default = value;
}
function _isNativeReflectConstruct_125081() { // fn#125081, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16397:251, offset: 0x025cd873, 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) {
function _isNativeReflectConstruct_125081() { // fn#125081, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16397:251, offset: 0x025cd873, 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_125081_isNativeReflectConstruct = function() {
return !!result;
})();
}
return (_isNativeReflectConstruct_125081_isNativeReflectConstruct = function() {
return !!result;
})();
}
function _fun125084(a0) { // fn#125084, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16397:526, offset: 0x025cd8d5, size: 128 bytes, params: 2, frame: 16
const closure = ApplicationStreamingManager;
env0_7(closure, a0);
return env0_4(closure, [{key: 'platformShowStreamFull', value: value_125086}, {key: 'platformHandleStreamStart',
value: value_125090}, {key: 'platformHandleVoiceStateUpdate', value: function() {
}}]);
}
function _fun125084(a0) { // fn#125084, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16397:526, offset: 0x025cd8d5, size: 128 bytes, params: 2, frame: 16
const ApplicationStreamingManager2 = ApplicationStreamingManager;
Inherits(ApplicationStreamingManager2, a0);
return CreateClass(ApplicationStreamingManager2, [{key: 'platformShowStreamFull', value: value_125086},
{key: 'platformHandleStreamStart', value: value_125090}, {key: 'platformHandleVoiceStateUpdate',
value: function() {
}}]);
function ApplicationStreamingManager() { // fn#125085, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16397:538, offset: 0x00ef83e3, size: 113 bytes, params: 1, frame: 20
const value = environment.__proto__;
env1_3(this, ApplicationStreamingManager);
const value3 = env1_6(ApplicationStreamingManager);
return env1_5(this, _isNativeReflectConstruct_125081() ? global.Reflect.construct(value3, arguments,
env1_6(this).constructor) : value3.apply(this, arguments));
}
function value_125086() { // fn#125086, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16397:903, offset: 0x025cd955, size: 54 bytes, params: 1, frame: 13
var environment;
let value = environment.__proto__;
value = importDefault(4496) /* metro dependency 4496: AlertActionCreators */;
value.openLazy({importer: importer_125087});
}
function value_125086() { // fn#125086, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16397:903, offset: 0x025cd955, size: 54 bytes, params: 1, frame: 13
var environment;
let value = environment.__proto__;
value = importDefault(4496) /* metro dependency 4496: AlertActionCreators */;
value.openLazy({importer: importer_125087});
function value_125086Importer() { // fn#125087, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16397:942, owner: value_125086.importer, offset: 0x025cd98b, size: 64 bytes, params: 1, frame: 13
var environment;
let value = environment.__proto__.__proto__;
value = require(dependencyMap[13]);
value = value(dependencyMap[12], dependencyMap.paths);
return value.then(function({default: env0_0}) {
return _fun125089;
});
function _fun125088({default: env0_0}) { // fn#125088, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16397:976, offset: 0x025cd9cb, size: 23 bytes, params: 2, frame: 2
return _fun125089;
function _fun125089(a0) { // fn#125089, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16397:991, offset: 0x025cd9e2, size: 36 bytes, params: 2, frame: 13
return ((Component) => <Component {...a0} />)(env0_0);
}
}
}
}
function value_125090({sourceId}) { // fn#125090, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16397:1051, offset: 0x025cda06, size: 285 bytes, params: 2, frame: 19
var r0;
var value;
var defaultImport;
if (sourceId != null) {
value = environment.__proto__;
defaultImport = importDefault(10801) /* metro dependency 10801: MobileGoLiveUpsellExperiment */;
r0 = defaultImport.getConfig({location: 'platformHandleStreamStart'}).showMobileGoLiveUpsell ? ApplicationStreamingSettingsStore.getState() : {'preset': null,
'resolution': 720, 'fps': 30, 'soundshareEnabled': true, preset: ApplicationStreamPresets.PRESET_CUSTOM};
(importDefault(8899) /* metro dependency 8899: AudioActionCreators */).setGoLiveSource({desktopSettings: {sourceId: sourceId,
sound: r0.soundshareEnabled}, qualityOptions: {preset: r0.preset, resolution: r0.resolution,
frameRate: r0.fps},
context: MediaEngineContextTypes.STREAM});
} else {
value = environment.__proto__;
env1_12.warn('invalid start_stream: both application + display modes were specified (source-id: ' + sourceId + ')');
}
}
function value_125090({sourceId}) { // fn#125090, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16397:1051, offset: 0x025cda06, size: 285 bytes, params: 2, frame: 19
var r0;
var value;
var defaultImport;
if (sourceId != null) {
value = environment.__proto__;
defaultImport = importDefault(10801) /* metro dependency 10801: MobileGoLiveUpsellExperiment */;
r0 = defaultImport.getConfig({location: 'platformHandleStreamStart'}).showMobileGoLiveUpsell ? ApplicationStreamingSettingsStore.getState() : {'preset': null,
'resolution': 720, 'fps': 30, 'soundshareEnabled': true, preset: ApplicationStreamPresets.PRESET_CUSTOM};
(importDefault(8899) /* metro dependency 8899: AudioActionCreators */).setGoLiveSource({desktopSettings: {sourceId: sourceId,
sound: r0.soundshareEnabled}, qualityOptions: {preset: r0.preset, resolution: r0.resolution,
frameRate: r0.fps},
context: MediaEngineContextTypes.STREAM});
} else {
value = environment.__proto__;
env1_12.warn('invalid start_stream: both application + display modes were specified (source-id: ' + sourceId + ')');
}
}
function value_125086Importer() { // fn#125087, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16397:942, owner: value_125086.importer, offset: 0x025cd98b, size: 64 bytes, params: 1, frame: 13
var environment;
let value = environment.__proto__.__proto__;
value = require(dependencyMap[13]);
value = value(dependencyMap[12], dependencyMap.paths);
return value.then(function({default: env0_0}) {
return _fun125089;
});
}
function _fun125088({default: env0_0}) { // fn#125088, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16397:976, offset: 0x025cd9cb, size: 23 bytes, params: 2, frame: 2
return _fun125089;
}
function _fun125089(a0) { // fn#125089, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16397:991, offset: 0x025cd9e2, size: 36 bytes, params: 2, frame: 13
return ((Component) => <Component {...a0} />)(env0_0);
}
global.__d(_fun125080, 16189, [6, 7, 15, 17, 18, 31, 4399, 4282, 4291, 33, 3, 4496, 16190, 1962, 10801, 8899, 16192,
2]) /* metro module 16189, dependencies: [6, 7, 15, 17, 18, 31, 4399, 4282, 4291, 33, 3, 4496, 16190, 1962, 10801, 8899, 16192, 2] */;
@@ -1,44 +1,69 @@
/* Metro module 10795; source: modules/go_live/native/MobileGoLiveActionSheet.tsx; dependencies: [57, 31, 4502, 4399, 4492, 1379, 1867, 1934, 1878, 4282, 661, 4291, 33, 4501, 697, 478, 4080, 10795, 1962, 480, 566, 10796, 10801, 6771, 6789, 4017, 8913, 8899, 8990, 1244, 2096, 10802, 10804, 6821, 4573, 3859, 8619, 6275, 6277, 6618, 6231, 7988, 7882, 676, 7987, 8617, 7892, 4578, 7954, 6808, 10794, 2] */
import Module00057 from '../../../by-id/module-00057.js'; /* Metro dependency 57 */
import Native from '../../../external/discord_common/js/packages/tokens/native.tsx'; /* Metro dependency 697 */
import ChannelStore from '../../../stores/ChannelStore.tsx'; /* Metro dependency 1379 */
import GuildStore from '../../../stores/GuildStore.tsx'; /* Metro dependency 1867 */
import UserStore from '../../../stores/UserStore.tsx'; /* Metro dependency 1878 */
import SelectedChannelStore from '../../../stores/SelectedChannelStore.tsx'; /* Metro dependency 1934 */
import ActionSheetActionCreators from '../../action_sheet/native/ActionSheetActionCreators.tsx'; /* Metro dependency 4080 */
import ApplicationStreamingSettingsStore from '../../../stores/ApplicationStreamingSettingsStore.tsx'; /* Metro dependency 4399 */
import ApplicationStreamingStore from '../../../stores/ApplicationStreamingStore.tsx'; /* Metro dependency 4492 */
import AccessibilityStore from '../../a11y/AccessibilityStore.tsx'; /* Metro dependency 4502 */
import UseAnalyticsLocations from '../../app_analytics/useAnalyticsLocations.tsx'; /* Metro dependency 6771 */
import AnalyticsLocation from '../../app_analytics/AnalyticsLocation.tsx'; /* Metro dependency 6789 */
import NativeView2 from '../../core/native/NativeView.tsx'; /* Metro dependency 6821 */
import MobileGoLiveUpsellExperiment from './MobileGoLiveUpsellExperiment.tsx'; /* Metro dependency 10801 */
import * as FileImportTrackerModule from '../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ReactModule from '../../../by-id/module-00031-React.js'; /* Metro dependency 31 */
import * as JsxRuntimeModule from '../../../by-id/module-00033-JsxRuntime.js'; /* Metro dependency 33 */
import * as PlatformUtilsModule from '../../../external/discord_common/js/shared/utils/PlatformUtils.tsx'; /* Metro dependency 478 */
import * as ConstantsModule from '../../../Constants.tsx'; /* Metro dependency 661 */
import * as IndexNativeModule from '../../../intl/index.native.tsx'; /* Metro dependency 1244 */
import * as BaseIconImageModule from '../../../design/components/Icon/native/BaseIconImage.tsx'; /* Metro dependency 3859 */
import * as ReanimatedRexportModule from '../../reanimated/ReanimatedRexport.tsx'; /* Metro dependency 4017 */
import * as StreamSettingsConstantsModule from '../StreamSettingsConstants.tsx'; /* Metro dependency 4282 */
import * as ConstantsModule2 from '../../../external/discord_common/js/packages/media-engine/Constants.tsx'; /* Metro dependency 4291 */
import * as CreateStylesModule from '../../../design/components/Styles/native/createStyles.tsx'; /* Metro dependency 4501 */
import * as TextModule from '../../../design/components/Text/native/Text.tsx'; /* Metro dependency 4573 */
import * as ButtonNativeModule from '../../../design/components/Button/native/Button.native.tsx'; /* Metro dependency 4578 */
import * as TableRowGroupNativeModule from '../../../design/components/TableRow/native/TableRowGroup.native.tsx'; /* Metro dependency 6231 */
import * as BottomSheetNativeModule from '../../../design/components/Sheet/native/BottomSheet.native.tsx'; /* Metro dependency 6275 */
import * as Module06277Module from '../../../by-id/module-06277.js'; /* Metro dependency 6277 */
import * as SafeAreaViewModule from '../../../components_native/common/SafeAreaView.tsx'; /* Metro dependency 6618 */
import * as UseAnalyticsLocationsModule from '../../app_analytics/useAnalyticsLocations.tsx'; /* Metro dependency 6771 */
import * as TableSwitchRowNativeModule from '../../../design/components/TableRow/native/TableSwitchRow.native.tsx'; /* Metro dependency 6808 */
import * as TableRadioRowNativeModule from '../../../design/components/TableRow/native/TableRadioRow.native.tsx'; /* Metro dependency 7987 */
import * as TableRadioGroupNativeModule from '../../../design/components/TableRow/native/TableRadioGroup.native.tsx'; /* Metro dependency 7988 */
import * as MobilePhoneIconModule from '../../../design/components/Icon/native/redesign/generated/MobilePhoneIcon.tsx'; /* Metro dependency 8990 */
import * as UseScreenshareUtilsModule from '../../video_calls/native/useScreenshareUtils.tsx'; /* Metro dependency 10794 */
import * as GetStreamSettingsForPresetModule from '../utils/getStreamSettingsForPreset.tsx'; /* Metro dependency 10796 */
import * as SpeedometerIconModule from '../../../design/components/Icon/native/redesign/generated/SpeedometerIcon.tsx'; /* Metro dependency 10802 */
import * as ImageSparkleIconModule from '../../../design/components/Icon/native/redesign/generated/ImageSparkleIcon.tsx'; /* Metro dependency 10804 */
function _fun82920(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#82920, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10981:6, offset: 0x01f06203, size: 667 bytes, params: 8, frame: 25
var object2;
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const env0_3 = importDefault(57) /* metro dependency 57 */;
let value = importAll(31) /* metro dependency 31 */;
const accessibilityStore = importDefault(4502) /* metro dependency 4502: AccessibilityStore */;
const applicationStreamingSettingsStore = importDefault(4399) /* metro dependency 4399: ApplicationStreamingSettingsStore */;
const applicationStreamingStore = importDefault(4492) /* metro dependency 4492: ApplicationStreamingStore */;
const channelStore = importDefault(1379) /* metro dependency 1379: ChannelStore */;
const guildStore = importDefault(1867) /* metro dependency 1867: GuildStore */;
const selectedChannelStore = importDefault(1934) /* metro dependency 1934: SelectedChannelStore */;
const userStore = importDefault(1878) /* metro dependency 1878: UserStore */;
const ApplicationStreamPresets = (require(4282) /* metro dependency 4282: StreamSettingsConstants */).ApplicationStreamPresets;
const env0_13 = (require(661) /* metro dependency 661: Constants */).ApplicationStreamStates;
const env0_14 = (require(4291) /* metro dependency 4291: Constants */).MediaEngineContextTypes;
const value2 = require(33) /* metro dependency 33 */;
const env0_15 = value2.jsx;
const env0_16 = value2.jsxs;
const createStylesModule = require(4501) /* metro dependency 4501: createStyles */;
const createStyles = createStylesModule.createStyles;
object2 = {};
const PX_24 = (importDefault(697) /* metro dependency 697: native */).space.PX_24;
object2.wrapper = {gap: PX_24};
object2.header = {textAlign: 'center'};
const PX_16 = (importDefault(697) /* metro dependency 697: native */).space.PX_16;
object2.section = {marginHorizontal: PX_16};
const PX_4 = (importDefault(697) /* metro dependency 697: native */).space.PX_4;
object2.highQualityLabel = {'flexDirection': 'row', 'alignItems': 'center', gap: PX_4};
object2.nitroWheelIcon = {'bottom': -1, 'width': 22, 'height': 16};
const env0_17 = Reflect.apply(createStyles, createStylesModule, [object2]);
let value = ReactModule;
const ApplicationStreamPresets = (StreamSettingsConstantsModule).ApplicationStreamPresets;
const createStyles = CreateStylesModule.createStyles;
object = {};
const PX_24 = (Native).space.PX_24;
object.wrapper = {gap: PX_24};
object.header = {textAlign: 'center'};
const PX_16 = (Native).space.PX_16;
object.section = {marginHorizontal: PX_16};
const PX_4 = (Native).space.PX_4;
object.highQualityLabel = {'flexDirection': 'row', 'alignItems': 'center', gap: PX_4};
object.nitroWheelIcon = {'bottom': -1, 'width': 22, 'height': 16};
const env0_17 = Reflect.apply(createStyles, CreateStylesModule, [object]);
const PRESET_MOBILE_DEFAULT = ApplicationStreamPresets.PRESET_MOBILE_DEFAULT;
const items2 = [{preset: PRESET_MOBILE_DEFAULT, enabled: true}];
object2 = {};
object = {};
const PRESET_MOBILE_PERFORMANCE = ApplicationStreamPresets.PRESET_MOBILE_PERFORMANCE;
object2.preset = PRESET_MOBILE_PERFORMANCE;
const platformUtilsModule = require(478) /* metro dependency 478: PlatformUtils */;
object2.enabled = !platformUtilsModule.isIOS();
items2[1] = object2;
object.preset = PRESET_MOBILE_PERFORMANCE;
object.enabled = !PlatformUtilsModule.isIOS();
items2[1] = object;
const PRESET_MOBILE_HIGH_QUALITY = ApplicationStreamPresets.PRESET_MOBILE_HIGH_QUALITY;
items2[2] = {preset: PRESET_MOBILE_HIGH_QUALITY, enabled: true};
const env0_18 = items2.filter(function(a0) {
@@ -47,303 +72,347 @@ function _fun82920(global, require, importDefault, importAll, module, exports, d
return a0.preset;
});
value = value.memo(MobileGoLiveActionSheet);
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/go_live/native/MobileGoLiveActionSheet.tsx');
(FileImportTrackerModule).fileFinishedImporting('modules/go_live/native/MobileGoLiveActionSheet.tsx');
exports.default = value;
exports.showMobileGoLiveActionSheet = showMobileGoLiveActionSheet;
}
function MobileGoLiveActionSheet() { // fn#82923, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10981:842, offset: 0x01f064a9, size: 1951 bytes, params: 1, frame: 45
var r15;
var NativeView;
const Button = (ButtonNativeModule).Button;
var object;
var object4;
var object5;
const {preset,
soundshareEnabled} = (require(566) /* metro dependency 566: flux */).useStateFromStoresObject([ApplicationStreamingSettingsStore],
function() {
return ApplicationStreamingSettingsStore.getState();
});
const {user,
guildPremiumTier} = (require(566) /* metro dependency 566: flux */).useStateFromStoresObject([UserStore,
SelectedChannelStore, ChannelStore, GuildStore], _fun82926);
let binding = activeSourceId2;
const value4 = binding.useCallback(_fun82927, [user, guildPremiumTier]);
const value5 = (require(566) /* metro dependency 566: flux */).useStateFromStoresObject([ApplicationStreamingStore],
_fun82928);
const isStreaming = value5.isStreaming;
const isStreaming2 = isStreaming;
const activeSourceId = value5.activeSourceId;
var activeSourceId2 = activeSourceId;
const useReducedMotion = (require(566) /* metro dependency 566: flux */).useStateFromStores([AccessibilityStore],
function() {
return AccessibilityStore.useReducedMotion;
});
let defaultImport = MobileGoLiveUpsellExperiment;
const useConfig = defaultImport.useConfig;
const goLiveUpsellVariant = Reflect.apply(useConfig, defaultImport,
[{location: 'MobileGoLiveActionSheet'}]).goLiveUpsellVariant;
const defaultImport2 = UseAnalyticsLocations;
const MOBILE_GO_LIVE_ACTION_SHEET = (AnalyticsLocation).MOBILE_GO_LIVE_ACTION_SHEET;
const analyticsLocations = defaultImport2(MOBILE_GO_LIVE_ACTION_SHEET).analyticsLocations;
const styles = useStyles();
let useState = binding.useState;
const PRESET_MOBILE_DEFAULT = ApplicationStreamPresets.PRESET_MOBILE_DEFAULT;
let r9 = preset === PRESET_MOBILE_DEFAULT || preset === ApplicationStreamPresets.PRESET_MOBILE_PERFORMANCE;
r9 = !r9 ? preset === ApplicationStreamPresets.PRESET_MOBILE_HIGH_QUALITY : r9;
const value9 = Reflect.apply(useState, binding,
[r9 && env0_18.includes(preset) && value4(preset) ? preset : ApplicationStreamPresets.PRESET_MOBILE_DEFAULT]);
binding = isStreaming2;
const value10 = binding(value9, 2);
const property = value10[0];
const env0_8 = value10[1];
const binding3 = activeSourceId2;
useState = binding3.useState;
const value11 = binding(Reflect.apply(useState, binding3, [soundshareEnabled]), 2);
const property2 = value11[0];
const env0_10 = value11[1];
const useSharedValue = ReanimatedRexportModule.useSharedValue;
const PRESET_MOBILE_HIGH_QUALITY = ApplicationStreamPresets.PRESET_MOBILE_HIGH_QUALITY;
const value12 = Reflect.apply(useSharedValue, ReanimatedRexportModule, [!value4(PRESET_MOBILE_HIGH_QUALITY)]);
const env0_11 = binding3.useCallback(_fun82930, [user, guildPremiumTier, activeSourceId, isStreaming]);
const AnalyticsLocationProvider = (UseAnalyticsLocationsModule).AnalyticsLocationProvider;
const BottomSheet = (BottomSheetNativeModule).BottomSheet;
const BottomSheetScrollView = (Module06277Module).BottomSheetScrollView;
const SafeAreaPaddingView = (SafeAreaViewModule).SafeAreaPaddingView;
const Text = (TextModule).Text;
const intl = (IndexNativeModule).intl;
const string = intl.string;
const CrNjqp = (importDefault(2096) /* metro dependency 2096: MobileGoLiveActionSheetMessages */).CrNjqp;
const items2 = [
<Text
style={styles.header}
variant="redesign/heading-18/bold"
color="text-strong"
accessibilityRole="header"
>
{Reflect.apply(string, intl, [CrNjqp])}
</Text>,
];
let section = styles.section;
const TableRowGroup = (TableRowGroupNativeModule).TableRowGroup;
const tableRowGroupProps = {title: (IndexNativeModule).intl.string((importDefault(2096) /* metro dependency 2096: MobileGoLiveActionSheetMessages */)['/XSr8v']),
hasIcons: false};
const TableRadioGroup = (TableRadioGroupNativeModule).TableRadioGroup;
items2[1] = (
<NativeView2 style={section}>
<TableRowGroup {...tableRowGroupProps}>
<TableRadioGroup
value={property}
onChange={onChange_82931}
hasIcons
>
{env0_18.map(_fun82932)}
</TableRadioGroup>
</TableRowGroup>
</NativeView2>
);
let r13 = goLiveUpsellVariant === 'one-step' && value12.get() && <NativeView2 style={styles.section}>{((Component) => <Component featureName={(require(7892) /* metro dependency 7892: EntitlementFeatureNames */).EntitlementFeatureNames.STREAM_HIGH_QUALITY} shouldShow={value12} />)(importDefault(8617) /* metro dependency 8617: PremiumFeatureUpsell */)}</NativeView2>;
items2[2] = r13;
r13 = goLiveUpsellVariant === 'two-step' && value12.get();
if (r13) {
NativeView = NativeView2;
r13 = (
<NativeView style={styles.section}>
<Button
text={intl.string((importDefault(2096) /* metro dependency 2096: MobileGoLiveActionSheetMessages */).u72Prd)}
size="lg"
onPress={function() {
var defaultImport = importDefault(dependencyMap[42]);
var object = {};
object.initialUpsellKey = require(dependencyMap[43]).UpsellTypes.STREAM_HIGH_QUALITY;
object.analyticsLocations = analyticsLocations;
defaultImport.handleShowUpsellAlert(object);
}}
icon={((NitroWheelIcon) => <NitroWheelIcon style={styles.nitroWheelIcon} color={(importDefault(697) /* metro dependency 697: native */).colors.WHITE} size="custom" />)((require(7954) /* metro dependency 7954: NitroWheelIcon */).NitroWheelIcon)}
iconPosition="start"
variant="experimental_premium-primary"
shiny={!useReducedMotion}
/>
</NativeView>
);
}
items2[3] = r13;
const defaultImport7 = NativeView2;
section = styles.section;
const tableRowGroupProps2 = {title: (IndexNativeModule).intl.string((importDefault(2096) /* metro dependency 2096: MobileGoLiveActionSheetMessages */)['j+eAMQ']),
hasIcons: false};
const TableSwitchRow = (TableSwitchRowNativeModule).TableSwitchRow;
items2[4] = ((Component) => <Component style={section}><TableRowGroup {...tableRowGroupProps2}><TableSwitchRow label={intl.string((importDefault(2096) /* metro dependency 2096: MobileGoLiveActionSheetMessages */).uwMBDo)} value={property2} onValueChange={onValueChange_82934} /></TableRowGroup></Component>)(defaultImport7);
const defaultImport8 = NativeView2;
section = styles.section;
if (isStreaming) {
object5 = {'size': 'lg', 'variant': 'destructive'};
object5.text = intl.string((importDefault(2096) /* metro dependency 2096: MobileGoLiveActionSheetMessages */).OsS9Ll);
object5.onPress = onPress_82935;
r15 = object5;
} else {
object4 = {'size': 'lg', 'variant': 'primary'};
object4.text = intl.string((importDefault(2096) /* metro dependency 2096: MobileGoLiveActionSheetMessages */)['3wwZ/Q']);
object4.onPress = onPress_82936;
r15 = object4;
}
items2[5] = ((Component) => <Component style={section}><Button {...r15} /></Component>)(defaultImport8);
return (
<AnalyticsLocationProvider value={analyticsLocations}>
<BottomSheet startExpanded>
<BottomSheetScrollView>
<SafeAreaPaddingView bottom style={styles.wrapper}>
{items2}
</SafeAreaPaddingView>
</BottomSheetScrollView>
</BottomSheet>
</AnalyticsLocationProvider>
);
function getTableRadioRowConfig(a0) { // fn#82924, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10981:2465, owner: MobileGoLiveActionSheet.getTableRadioRowConfig, offset: 0x01f06c48, size: 798 bytes, params: 2, frame: 33
var r5;
var intl2;
const value = environment.__proto__;
let getMaxSettingsForPreset = GetStreamSettingsForPresetModule.getMaxSettingsForPreset;
let PRESET_MOBILE_DEFAULT = ApplicationStreamPresets.PRESET_MOBILE_DEFAULT;
const value2 = Reflect.apply(getMaxSettingsForPreset, GetStreamSettingsForPresetModule, [PRESET_MOBILE_DEFAULT]);
getMaxSettingsForPreset = GetStreamSettingsForPresetModule.getMaxSettingsForPreset;
let PRESET_MOBILE_PERFORMANCE = ApplicationStreamPresets.PRESET_MOBILE_PERFORMANCE;
const value3 = Reflect.apply(getMaxSettingsForPreset, GetStreamSettingsForPresetModule, [PRESET_MOBILE_PERFORMANCE]);
getMaxSettingsForPreset = GetStreamSettingsForPresetModule.getMaxSettingsForPreset;
let PRESET_MOBILE_HIGH_QUALITY = ApplicationStreamPresets.PRESET_MOBILE_HIGH_QUALITY;
const value4 = Reflect.apply(getMaxSettingsForPreset, GetStreamSettingsForPresetModule, [PRESET_MOBILE_HIGH_QUALITY]);
const object = {value: a0};
const object2 = {};
PRESET_MOBILE_DEFAULT = ApplicationStreamPresets.PRESET_MOBILE_DEFAULT;
const object3 = {};
const MobilePhoneIcon = (MobilePhoneIconModule).MobilePhoneIcon;
object3.icon = <MobilePhoneIcon />;
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
object3.label = intl.string((importDefault(2096) /* metro dependency 2096: MobileGoLiveActionSheetMessages */)['2qmQ8N']);
const value5 = '';
object3.subLabel = value2 != null ? intl.formatToPlainString((importDefault(2096) /* metro dependency 2096: MobileGoLiveActionSheetMessages */).ibH7vy,
value2) : value5;
object2[PRESET_MOBILE_DEFAULT] = object3;
PRESET_MOBILE_PERFORMANCE = ApplicationStreamPresets.PRESET_MOBILE_PERFORMANCE;
const object4 = {};
const SpeedometerIcon = (SpeedometerIconModule).SpeedometerIcon;
object4.icon = <SpeedometerIcon />;
object4.label = intl.string((importDefault(2096) /* metro dependency 2096: MobileGoLiveActionSheetMessages */)['5eO4/m']);
object4.subLabel = value3 != null ? intl.formatToPlainString((importDefault(2096) /* metro dependency 2096: MobileGoLiveActionSheetMessages */).fN0UQY,
value3) : value5;
object2[PRESET_MOBILE_PERFORMANCE] = object4;
PRESET_MOBILE_HIGH_QUALITY = ApplicationStreamPresets.PRESET_MOBILE_HIGH_QUALITY;
const object5 = {};
const ImageSparkleIcon = (ImageSparkleIconModule).ImageSparkleIcon;
object5.icon = <ImageSparkleIcon />;
const NativeView = NativeView2;
const Text = (TextModule).Text;
const text = (
<Text variant="text-md/semibold" color="text-strong">
{intl.string((importDefault(2096) /* metro dependency 2096: MobileGoLiveActionSheetMessages */).nMcXo1)}
</Text>
);
const BaseIconImage = (BaseIconImageModule).BaseIconImage;
object5.label = (
<NativeView style={styles.highQualityLabel}>
{text}
<BaseIconImage source={importDefault(8619) /* metro dependency 8619 */} size="xs" />
</NativeView>
);
if (value4 != null) {
intl2 = (require(1244) /* metro dependency 1244: indexNative */).intl;
r5 = intl2.formatToPlainString((importDefault(2096) /* metro dependency 2096: MobileGoLiveActionSheetMessages */).q4gYBi,
value4);
} else {
r5 = value5;
}
object5.subLabel = r5;
object2[PRESET_MOBILE_HIGH_QUALITY] = object5;
copyDataProperties(object, object2[a0], intl);
return object;
}
function MobileGoLiveActionSheet() { // fn#82923, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10981:842, offset: 0x01f064a9, size: 1951 bytes, params: 1, frame: 45
var r15;
var NativeView;
const Button = (require(4578) /* metro dependency 4578: ButtonNative */).Button;
var object12;
var object;
var object2;
const {preset,
soundshareEnabled} = (require(566) /* metro dependency 566: flux */).useStateFromStoresObject([ApplicationStreamingSettingsStore],
function() {
return ApplicationStreamingSettingsStore.getState();
});
const {user,
guildPremiumTier} = (require(566) /* metro dependency 566: flux */).useStateFromStoresObject([UserStore,
SelectedChannelStore, ChannelStore, GuildStore], _fun82926);
let binding = env0_4;
const value4 = binding.useCallback(_fun82927, [user, guildPremiumTier]);
const value5 = (require(566) /* metro dependency 566: flux */).useStateFromStoresObject([ApplicationStreamingStore],
_fun82928);
const isStreaming = value5.isStreaming;
const env0_3 = isStreaming;
const activeSourceId = value5.activeSourceId;
var env0_4 = activeSourceId;
const useReducedMotion = (require(566) /* metro dependency 566: flux */).useStateFromStores([AccessibilityStore],
function() {
return AccessibilityStore.useReducedMotion;
});
let defaultImport = importDefault(10801) /* metro dependency 10801: MobileGoLiveUpsellExperiment */;
const useConfig = defaultImport.useConfig;
const goLiveUpsellVariant = Reflect.apply(useConfig, defaultImport,
[{location: 'MobileGoLiveActionSheet'}]).goLiveUpsellVariant;
const defaultImport2 = importDefault(6771) /* metro dependency 6771: useAnalyticsLocations */;
const MOBILE_GO_LIVE_ACTION_SHEET = (importDefault(6789) /* metro dependency 6789: AnalyticsLocation */).MOBILE_GO_LIVE_ACTION_SHEET;
const analyticsLocations = defaultImport2(MOBILE_GO_LIVE_ACTION_SHEET).analyticsLocations;
const styles = useStyles();
let useState = binding.useState;
const PRESET_MOBILE_DEFAULT = ApplicationStreamPresets.PRESET_MOBILE_DEFAULT;
let r9 = preset === PRESET_MOBILE_DEFAULT || preset === ApplicationStreamPresets.PRESET_MOBILE_PERFORMANCE;
r9 = !r9 ? preset === ApplicationStreamPresets.PRESET_MOBILE_HIGH_QUALITY : r9;
const value9 = Reflect.apply(useState, binding,
[r9 && env0_18.includes(preset) && value4(preset) ? preset : ApplicationStreamPresets.PRESET_MOBILE_DEFAULT]);
binding = env0_3;
const value10 = binding(value9, 2);
const property = value10[0];
const env0_8 = value10[1];
const binding3 = env0_4;
useState = binding3.useState;
const value11 = binding(Reflect.apply(useState, binding3, [soundshareEnabled]), 2);
const property2 = value11[0];
const env0_10 = value11[1];
const reanimatedRexportModule = require(4017) /* metro dependency 4017: ReanimatedRexport */;
const useSharedValue = reanimatedRexportModule.useSharedValue;
const PRESET_MOBILE_HIGH_QUALITY = ApplicationStreamPresets.PRESET_MOBILE_HIGH_QUALITY;
const value12 = Reflect.apply(useSharedValue, reanimatedRexportModule, [!value4(PRESET_MOBILE_HIGH_QUALITY)]);
const env0_11 = binding3.useCallback(_fun82930, [user, guildPremiumTier, activeSourceId, isStreaming]);
const AnalyticsLocationProvider = (require(6771) /* metro dependency 6771: useAnalyticsLocations */).AnalyticsLocationProvider;
const BottomSheet = (require(6275) /* metro dependency 6275: BottomSheetNative */).BottomSheet;
const BottomSheetScrollView = (require(6277) /* metro dependency 6277 */).BottomSheetScrollView;
const SafeAreaPaddingView = (require(6618) /* metro dependency 6618: SafeAreaView */).SafeAreaPaddingView;
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
const string = intl.string;
const CrNjqp = (importDefault(2096) /* metro dependency 2096: MobileGoLiveActionSheetMessages */).CrNjqp;
const items2 = [<Text style={styles.header} variant="redesign/heading-18/bold" color="text-strong" accessibilityRole="header">{Reflect.apply(string,
intl, [CrNjqp])}</Text>];
const NativeView2 = importDefault(6821) /* metro dependency 6821: NativeView */;
let section = styles.section;
const TableRowGroup = (require(6231) /* metro dependency 6231: TableRowGroupNative */).TableRowGroup;
const tableRowGroupProps = {title: (require(1244) /* metro dependency 1244: indexNative */).intl.string((importDefault(2096) /* metro dependency 2096: MobileGoLiveActionSheetMessages */)['/XSr8v']),
hasIcons: false};
const TableRadioGroup = (require(7988) /* metro dependency 7988: TableRadioGroupNative */).TableRadioGroup;
items2[1] = <NativeView2 style={section}><TableRowGroup {...tableRowGroupProps}><TableRadioGroup value={property} onChange={onChange_82931} hasIcons>{env0_18.map(_fun82932)}</TableRadioGroup></TableRowGroup></NativeView2>;
let r13 = goLiveUpsellVariant === 'one-step' && value12.get() && <NativeView2 style={styles.section}>{((Component) => <Component featureName={(require(7892) /* metro dependency 7892: EntitlementFeatureNames */).EntitlementFeatureNames.STREAM_HIGH_QUALITY} shouldShow={value12} />)(importDefault(8617) /* metro dependency 8617: PremiumFeatureUpsell */)}</NativeView2>;
items2[2] = r13;
r13 = goLiveUpsellVariant === 'two-step' && value12.get();
if (r13) {
NativeView = NativeView2;
r13 = <NativeView style={styles.section}><Button text={intl.string((importDefault(2096) /* metro dependency 2096: MobileGoLiveActionSheetMessages */).u72Prd)} size="lg" onPress={function() {
var defaultImport = importDefault(dependencyMap[42]);
var object = {};
object.initialUpsellKey = require(dependencyMap[43]).UpsellTypes.STREAM_HIGH_QUALITY;
object.analyticsLocations = analyticsLocations;
defaultImport.handleShowUpsellAlert(object);
}} icon={((NitroWheelIcon) => <NitroWheelIcon style={styles.nitroWheelIcon} color={(importDefault(697) /* metro dependency 697: native */).colors.WHITE} size="custom" />)((require(7954) /* metro dependency 7954: NitroWheelIcon */).NitroWheelIcon)} iconPosition="start" variant="experimental_premium-primary" shiny={!useReducedMotion} /></NativeView>;
}
items2[3] = r13;
const defaultImport7 = NativeView2;
section = styles.section;
const tableRowGroupProps2 = {title: (require(1244) /* metro dependency 1244: indexNative */).intl.string((importDefault(2096) /* metro dependency 2096: MobileGoLiveActionSheetMessages */)['j+eAMQ']),
hasIcons: false};
const TableSwitchRow = (require(6808) /* metro dependency 6808: TableSwitchRowNative */).TableSwitchRow;
items2[4] = ((Component) => <Component style={section}><TableRowGroup {...tableRowGroupProps2}><TableSwitchRow label={intl.string((importDefault(2096) /* metro dependency 2096: MobileGoLiveActionSheetMessages */).uwMBDo)} value={property2} onValueChange={onValueChange_82934} /></TableRowGroup></Component>)(defaultImport7);
const defaultImport8 = NativeView2;
section = styles.section;
if (isStreaming) {
object2 = {'size': 'lg', 'variant': 'destructive'};
object2.text = intl.string((importDefault(2096) /* metro dependency 2096: MobileGoLiveActionSheetMessages */).OsS9Ll);
object2.onPress = onPress_82935;
r15 = object2;
} else {
object = {'size': 'lg', 'variant': 'primary'};
object.text = intl.string((importDefault(2096) /* metro dependency 2096: MobileGoLiveActionSheetMessages */)['3wwZ/Q']);
object.onPress = onPress_82936;
r15 = object;
}
items2[5] = ((Component) => <Component style={section}><Button {...r15} /></Component>)(defaultImport8);
return (
<AnalyticsLocationProvider value={analyticsLocations}>
<BottomSheet startExpanded>
<BottomSheetScrollView>
<SafeAreaPaddingView bottom style={styles.wrapper}>
{items2}
</SafeAreaPaddingView>
</BottomSheetScrollView>
</BottomSheet>
</AnalyticsLocationProvider>
);
}
function _fun82926() { // fn#82926, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10981:1021, offset: 0x01f06f79, size: 108 bytes, params: 1, frame: 16
let value = environment.__proto__;
const currentUser = UserStore.getCurrentUser();
const channelStoreBinding = ChannelStore;
const getChannel = channelStoreBinding.getChannel;
const selectedChannelStoreBinding = SelectedChannelStore;
const getVoiceChannelId = selectedChannelStoreBinding.getVoiceChannelId;
const value3 = Reflect.apply(getChannel, channelStoreBinding, [Reflect.apply(getVoiceChannelId,
selectedChannelStoreBinding, [])]);
const object = {user: currentUser};
const guildStoreBinding = GuildStore;
value = undefined;
const guild = guildStoreBinding.getGuild(value3 == null ? value : value3.getGuildId());
object.guildPremiumTier = guild == null ? value : guild.premiumTier;
return object;
}
function showMobileGoLiveActionSheet(a0) { // fn#82937, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10981:5605, offset: 0x01f07375, size: 126 bytes, params: 2, frame: 18
const defaultImport = importDefault(dependencyMap[16]);
const openLazy = defaultImport.openLazy;
let value = require(dependencyMap[18]);
value = value(dependencyMap[17], dependencyMap.paths);
const ImpressionNames = require(dependencyMap[19]).ImpressionNames;
const MOBILE_GO_LIVE_ACTION_SHEET = ImpressionNames.MOBILE_GO_LIVE_ACTION_SHEET;
Reflect.apply(openLazy, defaultImport, [value, 'MobileGoLiveActionSheet',
{impressionName: MOBILE_GO_LIVE_ACTION_SHEET, impressionProperties: {location_stack: a0}}]);
}
function _fun82927(a0) { // fn#82927, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10981:1246, offset: 0x01f06fe5, size: 54 bytes, params: 2, frame: 15
let value = environment.__proto__;
value = require(10796) /* metro dependency 10796: getStreamSettingsForPreset */;
return value.canStreamWithPreset(a0, user, guildPremiumTier);
}
function getTableRadioRowConfig(a0) { // fn#82924, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10981:2465, owner: MobileGoLiveActionSheet.getTableRadioRowConfig, offset: 0x01f06c48, size: 798 bytes, params: 2, frame: 33
var r5;
var intl2;
const value = environment.__proto__;
const getStreamSettingsForPresetModule = require(10796) /* metro dependency 10796: getStreamSettingsForPreset */;
let getMaxSettingsForPreset = getStreamSettingsForPresetModule.getMaxSettingsForPreset;
let PRESET_MOBILE_DEFAULT = ApplicationStreamPresets.PRESET_MOBILE_DEFAULT;
const value2 = Reflect.apply(getMaxSettingsForPreset, getStreamSettingsForPresetModule, [PRESET_MOBILE_DEFAULT]);
const moduleValue2 = getStreamSettingsForPresetModule;
getMaxSettingsForPreset = moduleValue2.getMaxSettingsForPreset;
let PRESET_MOBILE_PERFORMANCE = ApplicationStreamPresets.PRESET_MOBILE_PERFORMANCE;
const value3 = Reflect.apply(getMaxSettingsForPreset, moduleValue2, [PRESET_MOBILE_PERFORMANCE]);
const moduleValue3 = getStreamSettingsForPresetModule;
getMaxSettingsForPreset = moduleValue3.getMaxSettingsForPreset;
let PRESET_MOBILE_HIGH_QUALITY = ApplicationStreamPresets.PRESET_MOBILE_HIGH_QUALITY;
const value4 = Reflect.apply(getMaxSettingsForPreset, moduleValue3, [PRESET_MOBILE_HIGH_QUALITY]);
const object6 = {value: a0};
const object7 = {};
PRESET_MOBILE_DEFAULT = ApplicationStreamPresets.PRESET_MOBILE_DEFAULT;
const object8 = {};
const MobilePhoneIcon = (require(8990) /* metro dependency 8990: MobilePhoneIcon */).MobilePhoneIcon;
object8.icon = <MobilePhoneIcon />;
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
object8.label = intl.string((importDefault(2096) /* metro dependency 2096: MobileGoLiveActionSheetMessages */)['2qmQ8N']);
const value5 = '';
object8.subLabel = value2 != null ? intl.formatToPlainString((importDefault(2096) /* metro dependency 2096: MobileGoLiveActionSheetMessages */).ibH7vy,
value2) : value5;
object7[PRESET_MOBILE_DEFAULT] = object8;
PRESET_MOBILE_PERFORMANCE = ApplicationStreamPresets.PRESET_MOBILE_PERFORMANCE;
const object9 = {};
const SpeedometerIcon = (require(10802) /* metro dependency 10802: SpeedometerIcon */).SpeedometerIcon;
object9.icon = <SpeedometerIcon />;
object9.label = intl.string((importDefault(2096) /* metro dependency 2096: MobileGoLiveActionSheetMessages */)['5eO4/m']);
object9.subLabel = value3 != null ? intl.formatToPlainString((importDefault(2096) /* metro dependency 2096: MobileGoLiveActionSheetMessages */).fN0UQY,
value3) : value5;
object7[PRESET_MOBILE_PERFORMANCE] = object9;
PRESET_MOBILE_HIGH_QUALITY = ApplicationStreamPresets.PRESET_MOBILE_HIGH_QUALITY;
const object10 = {};
const ImageSparkleIcon = (require(10804) /* metro dependency 10804: ImageSparkleIcon */).ImageSparkleIcon;
object10.icon = <ImageSparkleIcon />;
const NativeView = importDefault(6821) /* metro dependency 6821: NativeView */;
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
const text = <Text variant="text-md/semibold" color="text-strong">{intl.string((importDefault(2096) /* metro dependency 2096: MobileGoLiveActionSheetMessages */).nMcXo1)}</Text>;
const BaseIconImage = (require(3859) /* metro dependency 3859: BaseIconImage */).BaseIconImage;
object10.label = <NativeView style={styles.highQualityLabel}>{text}<BaseIconImage source={importDefault(8619) /* metro dependency 8619 */} size="xs" /></NativeView>;
if (value4 != null) {
intl2 = (require(1244) /* metro dependency 1244: indexNative */).intl;
r5 = intl2.formatToPlainString((importDefault(2096) /* metro dependency 2096: MobileGoLiveActionSheetMessages */).q4gYBi,
value4);
} else {
r5 = value5;
}
object10.subLabel = r5;
object7[PRESET_MOBILE_HIGH_QUALITY] = object10;
copyDataProperties(object6, object7[a0], intl);
return object6;
}
function _fun82928() { // fn#82928, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10981:1334, offset: 0x01f0701b, size: 100 bytes, params: 1, frame: 13
let value = environment.__proto__;
const currentUserActiveStream = ApplicationStreamingStore.getCurrentUserActiveStream();
const object = {};
const value3 = null;
object.isStreaming = value3 != currentUserActiveStream && currentUserActiveStream.state === ApplicationStreamStates.ACTIVE;
value = ApplicationStreamingStore.getStreamerActiveStreamMetadata();
const sourceId = value3 == value ? undefined : value.sourceId;
object.activeSourceId = value3 != sourceId ? sourceId : value3;
return object;
}
function _fun82926() { // fn#82926, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10981:1021, offset: 0x01f06f79, size: 108 bytes, params: 1, frame: 16
let value = environment.__proto__;
const currentUser = UserStore.getCurrentUser();
const getChannel = ChannelStore.getChannel;
const getVoiceChannelId = SelectedChannelStore.getVoiceChannelId;
const value3 = Reflect.apply(getChannel, ChannelStore, [Reflect.apply(getVoiceChannelId, SelectedChannelStore, [])]);
const object2 = {user: currentUser};
value = undefined;
const guild = GuildStore.getGuild(value3 == null ? value : value3.getGuildId());
object2.guildPremiumTier = guild == null ? value : guild.premiumTier;
return object2;
}
function _fun82927(a0) { // fn#82927, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10981:1246, offset: 0x01f06fe5, size: 54 bytes, params: 2, frame: 15
let value = environment.__proto__;
value = require(10796) /* metro dependency 10796: getStreamSettingsForPreset */;
return value.canStreamWithPreset(a0, user, guildPremiumTier);
}
function _fun82928() { // fn#82928, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10981:1334, offset: 0x01f0701b, size: 100 bytes, params: 1, frame: 13
let value = environment.__proto__;
const currentUserActiveStream = ApplicationStreamingStore.getCurrentUserActiveStream();
const object2 = {};
const value3 = null;
object2.isStreaming = value3 != currentUserActiveStream && currentUserActiveStream.state === ApplicationStreamStates.ACTIVE;
value = ApplicationStreamingStore.getStreamerActiveStreamMetadata();
const sourceId = value3 == value ? undefined : value.sourceId;
object2.activeSourceId = value3 != sourceId ? sourceId : value3;
return object2;
}
function _fun82930(a0, a1) { // fn#82930, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10981:2114, offset: 0x01f0707f, size: 260 bytes, params: 3, frame: 22
var object2;
var moduleValue;
var updateStreamSettings;
const value = environment.__proto__;
const value4 = env1_3((importDefault(10796) /* metro dependency 10796: getStreamSettingsForPreset */)(a0, user,
guildPremiumTier) ?? [], 2);
const property = value4[0];
const property2 = value4[1];
if (property != null) {
if (property2 != null) {
moduleValue = require(8913) /* metro dependency 8913: StreamActionCreators */;
updateStreamSettings = moduleValue.updateStreamSettings;
object2 = {preset: a0, resolution: property, frameRate: property2, soundshareEnabled: a1};
Reflect.apply(updateStreamSettings, moduleValue, [object2]);
if (isStreaming) {
object2 = {};
object2.qualityOptions = {preset: a0, resolution: property, frameRate: property2};
object2.context = MediaEngineContextTypes.STREAM;
if (activeSourceId != null) {
object2.desktopSettings = {sourceId: activeSourceId, sound: a1};
function _fun82930(a0, a1) { // fn#82930, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10981:2114, offset: 0x01f0707f, size: 260 bytes, params: 3, frame: 22
var object;
var moduleValue;
var updateStreamSettings;
const value = environment.__proto__;
const value4 = env1_3((importDefault(10796) /* metro dependency 10796: getStreamSettingsForPreset */)(a0, user,
guildPremiumTier) ?? [], 2);
const property = value4[0];
const property2 = value4[1];
if (property != null) {
if (property2 != null) {
moduleValue = require(8913) /* metro dependency 8913: StreamActionCreators */;
updateStreamSettings = moduleValue.updateStreamSettings;
object = {preset: a0, resolution: property, frameRate: property2, soundshareEnabled: a1};
Reflect.apply(updateStreamSettings, moduleValue, [object]);
if (isStreaming) {
object = {};
object.qualityOptions = {preset: a0, resolution: property, frameRate: property2};
object.context = MediaEngineContextTypes.STREAM;
if (activeSourceId != null) {
object.desktopSettings = {sourceId: activeSourceId, sound: a1};
}
(importDefault(8899) /* metro dependency 8899: AudioActionCreators */).setGoLiveSource(object);
}
}
(importDefault(8899) /* metro dependency 8899: AudioActionCreators */).setGoLiveSource(object2);
}
}
}
}
function MobileGoLiveActionSheetOnChange(a0) { // fn#82931, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10981:4017, owner: MobileGoLiveActionSheet.onChange, offset: 0x01f07183, size: 172 bytes, params: 2, frame: 18
var value2;
var defaultImport;
var handleShowUpsellAlert;
var object2;
var value;
if (env0_2(a0)) {
env0_8(a0);
env0_11(a0, env0_9);
if (isStreaming) {
value = environment.__proto__;
value = importDefault(4080) /* metro dependency 4080: ActionSheetActionCreators */;
value.hideActionSheet('MobileGoLiveActionSheet');
function MobileGoLiveActionSheetOnChange(a0) { // fn#82931, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10981:4017, owner: MobileGoLiveActionSheet.onChange, offset: 0x01f07183, size: 172 bytes, params: 2, frame: 18
var value2;
var defaultImport;
var handleShowUpsellAlert;
var object;
var value;
if (env0_2(a0)) {
env0_8(a0);
env0_11(a0, env0_9);
if (isStreaming) {
value = environment.__proto__;
value = importDefault(4080) /* metro dependency 4080: ActionSheetActionCreators */;
value.hideActionSheet('MobileGoLiveActionSheet');
}
} else {
value2 = environment.__proto__;
defaultImport = importDefault(7882) /* metro dependency 7882: PremiumUpsellUtils */;
handleShowUpsellAlert = defaultImport.handleShowUpsellAlert;
object = {};
object.initialUpsellKey = (require(676) /* metro dependency 676: ConstantsIOS */).UpsellTypes.STREAM_HIGH_QUALITY;
object.analyticsLocations = analyticsLocations;
Reflect.apply(handleShowUpsellAlert, defaultImport, [object]);
}
}
} else {
value2 = environment.__proto__;
defaultImport = importDefault(7882) /* metro dependency 7882: PremiumUpsellUtils */;
handleShowUpsellAlert = defaultImport.handleShowUpsellAlert;
object2 = {};
object2.initialUpsellKey = (require(676) /* metro dependency 676: ConstantsIOS */).UpsellTypes.STREAM_HIGH_QUALITY;
object2.analyticsLocations = analyticsLocations;
Reflect.apply(handleShowUpsellAlert, defaultImport, [object2]);
function _fun82932(a0) { // fn#82932, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10981:4213, offset: 0x01f0722f, size: 68 bytes, params: 2, frame: 16
const TableRadioRow = (TableRadioRowNativeModule).TableRadioRow;
return <TableRadioRow {...getTableRadioRowConfig(a0)} key={a0} />;
}
function MobileGoLiveActionSheetOnValueChange(a0) { // fn#82934, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10981:5096, owner: MobileGoLiveActionSheet.onValueChange, offset: 0x01f072c8, size: 33 bytes, params: 2, frame: 13
env0_10(a0);
env0_11(env0_7, a0);
}
function MobileGoLiveActionSheetOnPress_82935() { // fn#82935, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10981:5260, owner: MobileGoLiveActionSheet.onPress, offset: 0x01f072e9, size: 70 bytes, params: 1, frame: 13
const value = environment.__proto__;
(UseScreenshareUtilsModule).stopScreenshare();
(ActionSheetActionCreators).hideActionSheet('MobileGoLiveActionSheet');
}
function MobileGoLiveActionSheetOnPress_82936() { // fn#82936, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10981:5405, owner: MobileGoLiveActionSheet.onPress, offset: 0x01f0732f, size: 70 bytes, params: 1, frame: 14
const value = environment.__proto__;
(ActionSheetActionCreators).hideActionSheet('MobileGoLiveActionSheet');
(UseScreenshareUtilsModule).startStream();
}
}
function showMobileGoLiveActionSheet(a0) { // fn#82937, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10981:5605, offset: 0x01f07375, size: 126 bytes, params: 2, frame: 18
const defaultImport = importDefault(dependencyMap[16]);
const openLazy = defaultImport.openLazy;
let value = require(dependencyMap[18]);
value = value(dependencyMap[17], dependencyMap.paths);
const ImpressionNames = require(dependencyMap[19]).ImpressionNames;
const MOBILE_GO_LIVE_ACTION_SHEET = ImpressionNames.MOBILE_GO_LIVE_ACTION_SHEET;
Reflect.apply(openLazy, defaultImport, [value, 'MobileGoLiveActionSheet',
{impressionName: MOBILE_GO_LIVE_ACTION_SHEET, impressionProperties: {location_stack: a0}}]);
}
}
function _fun82932(a0) { // fn#82932, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10981:4213, offset: 0x01f0722f, size: 68 bytes, params: 2, frame: 16
const TableRadioRow = (require(7987) /* metro dependency 7987: TableRadioRowNative */).TableRadioRow;
return <TableRadioRow {...getTableRadioRowConfig(a0)} key={a0} />;
}
function MobileGoLiveActionSheetOnValueChange(a0) { // fn#82934, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10981:5096, owner: MobileGoLiveActionSheet.onValueChange, offset: 0x01f072c8, size: 33 bytes, params: 2, frame: 13
env0_10(a0);
env0_11(env0_7, a0);
}
function MobileGoLiveActionSheetOnPress_82935() { // fn#82935, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10981:5260, owner: MobileGoLiveActionSheet.onPress, offset: 0x01f072e9, size: 70 bytes, params: 1, frame: 13
const value = environment.__proto__;
(require(10794) /* metro dependency 10794: useScreenshareUtils */).stopScreenshare();
(importDefault(4080) /* metro dependency 4080: ActionSheetActionCreators */).hideActionSheet('MobileGoLiveActionSheet');
}
function MobileGoLiveActionSheetOnPress_82936() { // fn#82936, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10981:5405, owner: MobileGoLiveActionSheet.onPress, offset: 0x01f0732f, size: 70 bytes, params: 1, frame: 14
const value = environment.__proto__;
(importDefault(4080) /* metro dependency 4080: ActionSheetActionCreators */).hideActionSheet('MobileGoLiveActionSheet');
(require(10794) /* metro dependency 10794: useScreenshareUtils */).startStream();
}
global.__d(_fun82920, 10795, [57, 31, 4502, 4399, 4492, 1379, 1867, 1934, 1878, 4282, 661, 4291, 33, 4501, 697, 478,
4080, 10795, 1962, 480, 566, 10796, 10801, 6771, 6789, 4017, 8913, 8899, 8990, 1244, 2096, 10802, 10804, 6821,
4573, 3859, 8619, 6275, 6277, 6618, 6231, 7988, 7882, 676, 7987, 8617, 7892, 4578, 7954, 6808, 10794,
2]) /* metro module 10795, dependencies: [57, 31, 4502, 4399, 4492, 1379, 1867, 1934, 1878, 4282, 661, 4291, 33, 4501, 697, 478, 4080, 10795, 1962, 480, 566, 10796, 10801, 6771, 6789, 4017, 8913, 8899, 8990, 1244, 2096, 10802, 10804, 6821, 4573, 3859, 8619, 6275, 6277, 6618, 6231, 7988, 7882, 676, 7987, 8617, 7892, 4578, 7954, 6808, 10794, 2] */;
@@ -1,12 +1,16 @@
/* Metro module 10801; source: modules/go_live/native/MobileGoLiveUpsellExperiment.tsx; dependencies: [1854, 2] */
import * as FileImportTrackerModule from '../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ApexModule from '../../experiments/apex/index.tsx'; /* Metro dependency 1854 */
function _fun82959(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#82959, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10987:6, offset: 0x01f08144, size: 172 bytes, params: 8, frame: 19
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
let value = require(1854) /* metro dependency 1854: apex */;
let value = ApexModule;
value = value.createApexExperiment({'name': '2026-04-mobile-go-live-upsell', 'kind': 'user',
defaultConfig: {showMobileGoLiveUpsell: false}, variations: {[1]: {'showMobileGoLiveUpsell': true,
'goLiveUpsellVariant': 'one-step'}, [2]: {'showMobileGoLiveUpsell': true, 'goLiveUpsellVariant': 'two-step'}}});
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/go_live/native/MobileGoLiveUpsellExperiment.tsx');
(FileImportTrackerModule).fileFinishedImporting('modules/go_live/native/MobileGoLiveUpsellExperiment.tsx');
exports.default = value;
}
global.__d(_fun82959, 10801, [1854, 2]) /* metro module 10801, dependencies: [1854, 2] */;
@@ -1,198 +1,220 @@
/* Metro module 10689; source: modules/go_live/native/StreamQualityLiveIndicator.tsx; dependencies: [57, 31, 27, 661, 1880, 4291, 33, 4501, 697, 7723, 8620, 6771, 4017, 4504, 1305, 8912, 10690, 683, 5080, 7028, 1962, 7940, 3802, 5278, 5475, 7938, 2] */
import Module00057 from '../../../by-id/module-00057.js'; /* Metro dependency 57 */
import * as FileImportTrackerModule from '../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ReactNativeModule from '../../../by-id/module-00027-ReactNative.js'; /* Metro dependency 27 */
import * as ReactModule from '../../../by-id/module-00031-React.js'; /* Metro dependency 31 */
import * as ConstantsModule from '../../../Constants.tsx'; /* Metro dependency 661 */
import * as PremiumConstantsModule from '../../premium/PremiumConstants.tsx'; /* Metro dependency 1880 */
import * as ConstantsModule2 from '../../../external/discord_common/js/packages/media-engine/Constants.tsx'; /* Metro dependency 4291 */
function _fun82165(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#82165, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10875:6, offset: 0x01eed06a, size: 568 bytes, params: 8, frame: 24
var object4;
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const env0_3 = importDefault(57) /* metro dependency 57 */;
const env0_4 = importAll(31) /* metro dependency 31 */;
const env0_5 = (require(27) /* metro dependency 27 */).View;
const env0_6 = (require(661) /* metro dependency 661: Constants */).AnalyticEvents;
let value = require(1880) /* metro dependency 1880: PremiumConstants */;
let value = PremiumConstantsModule;
const env0_7 = value.PremiumTypes;
const env0_8 = value.PremiumUpsellTypes;
const env0_9 = (require(4291) /* metro dependency 4291: Constants */).ResolutionTypes;
value = require(33) /* metro dependency 33 */;
const env0_10 = value.jsx;
const env0_11 = value.jsxs;
value = require(4501) /* metro dependency 4501: createStyles */;
const createStyles = value.createStyles;
object4 = {liveIndicator: {'flexDirection': 'row', 'alignItems': 'center', 'height': 18}};
const object5 = {};
object5.borderBottomLeftRadius = (importDefault(697) /* metro dependency 697: native */).radii.none;
object5.borderTopLeftRadius = (importDefault(697) /* metro dependency 697: native */).radii.none;
object5.height = 18;
object5.textAlign = 'center';
object4.liveTag = object5;
const object6 = {'borderBottomLeftRadius': null, 'borderTopLeftRadius': null, 'backgroundColor': null,
object = {liveIndicator: {'flexDirection': 'row', 'alignItems': 'center', 'height': 18}};
const object2 = {};
object2.borderBottomLeftRadius = (importDefault(697) /* metro dependency 697: native */).radii.none;
object2.borderTopLeftRadius = (importDefault(697) /* metro dependency 697: native */).radii.none;
object2.height = 18;
object2.textAlign = 'center';
object.liveTag = object2;
const object3 = {'borderBottomLeftRadius': null, 'borderTopLeftRadius': null, 'backgroundColor': null,
'opacity': 0.8, 'paddingLeft': 8, 'paddingRight': 4, 'flexDirection': 'row', 'alignItems': 'center',
'height': 18};
object6.borderBottomLeftRadius = (importDefault(697) /* metro dependency 697: native */).radii.sm;
object6.borderTopLeftRadius = (importDefault(697) /* metro dependency 697: native */).radii.sm;
object3.borderBottomLeftRadius = (importDefault(697) /* metro dependency 697: native */).radii.sm;
object3.borderTopLeftRadius = (importDefault(697) /* metro dependency 697: native */).radii.sm;
const PRIMARY_800 = (importDefault(697) /* metro dependency 697: native */).unsafe_rawColors.PRIMARY_800;
object6.backgroundColor = PRIMARY_800;
object4.qualityTag = object6;
object4.qualityTagText = {'color': '#fff', 'textAlign': 'center', 'fontWeight': '700'};
object3.backgroundColor = PRIMARY_800;
object.qualityTag = object3;
object.qualityTagText = {'color': '#fff', 'textAlign': 'center', 'fontWeight': '700'};
const PRIMARY_300 = (importDefault(697) /* metro dependency 697: native */).unsafe_rawColors.PRIMARY_300;
object4.reducedQualityTagText = {color: PRIMARY_300};
object4.nitroWheel = {'width': 20, 'marginLeft': -4};
const env0_12 = Reflect.apply(createStyles, value, [object4]);
object4 = {code: 'function StreamQualityLiveIndicatorTsx1(){const{withTiming,reveal,STANDARD_EASING}=this.__closure;return{opacity:withTiming(reveal?1:0,{easing:STANDARD_EASING,duration:250})};}'};
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/go_live/native/StreamQualityLiveIndicator.tsx');
object.reducedQualityTagText = {color: PRIMARY_300};
object.nitroWheel = {'width': 20, 'marginLeft': -4};
const env0_12 = Reflect.apply(createStyles, value, [object]);
object = {code: 'function StreamQualityLiveIndicatorTsx1(){const{withTiming,reveal,STANDARD_EASING}=this.__closure;return{opacity:withTiming(reveal?1:0,{easing:STANDARD_EASING,duration:250})};}'};
(FileImportTrackerModule).fileFinishedImporting('modules/go_live/native/StreamQualityLiveIndicator.tsx');
exports.default = _default_82166;
function _default_82166({participant, style}) { // fn#82166, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10875:1072, offset: 0x01eed2a2, size: 1381 bytes, params: 2, frame: 40
var r23;
var r3;
var r0;
var r02;
var property2;
var moduleValue4;
var isPremiumFPS2;
var error;
var property3;
var moduleValue5;
var isPremiumResolution2;
var defaultImport2;
var defaultImport4;
var View2;
var PressableOpacity;
var items3;
var LegacyText;
var object2;
var moduleValue6;
var value19;
var moduleValue7;
var env0_0;
var env0_1;
const styles = useStyles();
let binding = analyticsLocations2;
const useContext = binding.useContext;
const RevealContext = require(dependencyMap[9]).RevealContext;
const reveal = Reflect.apply(useContext, binding, [RevealContext]).reveal;
let moduleValue = require(dependencyMap[10]);
const useAnalyticsContext = moduleValue.useAnalyticsContext;
const location = Reflect.apply(useAnalyticsContext, moduleValue, []).location;
const location2 = location;
const analyticsLocations = importDefault(dependencyMap[11])().analyticsLocations;
var analyticsLocations2 = analyticsLocations;
const [property, env0_6] = location2(binding.useState(false), 2);
const moduleValue2 = require(dependencyMap[12]);
const useAnimatedStyle = moduleValue2.useAnimatedStyle;
const closure = function() {
var r2;
var moduleValue = require(dependencyMap[13]);
var withTiming = moduleValue.withTiming;
r2 = reveal ? 1 : 0;
var object2 = {};
object2.easing = require(dependencyMap[14]).STANDARD_EASING;
object2.duration = 250;
return {opacity: Reflect.apply(withTiming, moduleValue, [r2, object2])};
};
const object = {};
object.withTiming = require(dependencyMap[13]).withTiming;
object.reveal = reveal;
const STANDARD_EASING = require(dependencyMap[14]).STANDARD_EASING;
object.STANDARD_EASING = STANDARD_EASING;
closure.__closure = object;
closure.__workletHash = 14676679064575;
closure.__initData = env0_13;
const value6 = Reflect.apply(useAnimatedStyle, moduleValue2, [closure]);
const value7 = require(dependencyMap[15]).useMaxQuality(participant);
const value10 = importDefault(dependencyMap[16])(participant) != null;
try {
property2 = dependencyMap[15];
moduleValue4 = require(property2);
isPremiumFPS2 = moduleValue4.isPremiumFPS(value7);
env0_0 = isPremiumFPS2;
r23 = isPremiumFPS2;
} catch (error) {
env0_0 = false;
r23 = false;
}
try {
property3 = dependencyMap[15];
moduleValue5 = require(property3);
isPremiumResolution2 = moduleValue5.isPremiumResolution(value7);
env0_1 = isPremiumResolution2;
r3 = isPremiumResolution2;
} catch (error) {
env0_1 = false;
r3 = false;
}
const r14 = r23 || r3;
binding = analyticsLocations2;
binding.useEffect(_fun82168, [analyticsLocations, property, r14, r23, r3]);
const value11 = binding.useCallback(_fun82169, [location, analyticsLocations]);
const defaultImport = importDefault(dependencyMap[22]);
const isPremium = defaultImport.isPremium;
let user = participant.user;
let TIER_1 = PremiumTypes.TIER_1;
const isPremium2 = Reflect.apply(isPremium, defaultImport, [user, TIER_1]);
if (isPremium2) {
r0 = !isPremium2;
} else {
defaultImport2 = importDefault(dependencyMap[22]);
r0 = !defaultImport2.canStreamQuality(importDefault(dependencyMap[22]).StreamQuality.MID, participant.user);
}
const defaultImport3 = importDefault(dependencyMap[22]);
const isPremiumExactly = defaultImport3.isPremiumExactly;
user = participant.user;
TIER_1 = PremiumTypes.TIER_1;
const r1 = Reflect.apply(isPremiumExactly, defaultImport3, [user,
TIER_1]) && (value7 == null ? undefined : value7.maxResolution.type) === ResolutionTypes.SOURCE;
if (r1) {
defaultImport4 = importDefault(dependencyMap[22]);
r02 = !defaultImport4.canStreamQuality(importDefault(dependencyMap[22]).StreamQuality.HIGH);
} else {
r02 = r1;
}
if (value7 == null) {
r0 = null;
} else {
View2 = importDefault(dependencyMap[12]).View;
var view2Props = {pointerEvents: r14 && (r0 || r02) ? 'auto' : 'none', style: [style, value6]};
PressableOpacity = require(dependencyMap[23]).PressableOpacity;
var pressableOpacityProps = {accessibilityRole: 'button', style: [styles.liveIndicator, style],
onPress: value11};
var viewBindingProps = {style: styles.qualityTag};
items3 = [
r14 && ((Component) => <Component source={importDefault(dependencyMap[25])} style={styles.nitroWheel} resizeMode="contain" />)(importDefault(dependencyMap[24])),
];
LegacyText = require(dependencyMap[14]).LegacyText;
var legacyTextProps = {style: [styles.qualityTagText, value10 ? styles.reducedQualityTagText : null]};
moduleValue6 = require(dependencyMap[15]);
value19 = moduleValue6.getResolutionText(value7.maxResolution);
moduleValue7 = require(dependencyMap[15]);
items3[1] = (
<LegacyText {...legacyTextProps}>
{'' + value19 + ' ' + moduleValue7.getFPSText(value7.maxFrameRate)}
</LegacyText>
);
r0 = (
<View2 {...view2Props}>
<PressableOpacity {...pressableOpacityProps}>
<View {...viewBindingProps}>
{items3}
</View>
{((LiveTag) => <LiveTag style={styles.liveTag} />)(require(dependencyMap[14]).LiveTag)}
</PressableOpacity>
</View2>
);
}
return r0;
function _fun82168() { // fn#82168, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10875:1721, offset: 0x01eed86a, size: 128 bytes, params: 1, frame: 16
var value3;
var defaultImport;
if (!ReactNativeModule.View && env0_7) {
value3 = environment.__proto__;
defaultImport = importDefault(683) /* metro dependency 683: AnalyticsUtils */;
defaultImport.track(AnalyticEvents.PREMIUM_UPSELL_VIEWED, {type: PremiumUpsellTypes.STREAM_QUALITY_INDICATOR,
has_premium_stream_fps: env0_0, has_premium_stream_resolution: env0_1, location_stack: analyticsLocations});
env0_6(true);
}
}
function _fun82169() { // fn#82169, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10875:1925, offset: 0x01eed8ea, size: 125 bytes, params: 1, frame: 18
let value = environment.__proto__;
const defaultImport = importDefault(dependencyMap[18]);
const pushLazy = defaultImport.pushLazy;
value = require(dependencyMap[20]);
value = value(dependencyMap[19], dependencyMap.paths);
const object = {};
object.analyticsLocation = location;
object.analyticsLocations = analyticsLocations;
const PremiumFeatureCardOrder = require(dependencyMap[21]).PremiumFeatureCardOrder;
const TIER_0_LEADING = PremiumFeatureCardOrder.TIER_0_LEADING;
object.premiumFeatureCardOrder = TIER_0_LEADING;
Reflect.apply(pushLazy, defaultImport, [value, object]);
}
}
}
function _default_82166({participant, style}) { // fn#82166, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10875:1072, offset: 0x01eed2a2, size: 1381 bytes, params: 2, frame: 40
var r23;
var r3;
var r0;
var r02;
var property2;
var moduleValue4;
var isPremiumFPS2;
var error;
var property3;
var moduleValue5;
var isPremiumResolution2;
var defaultImport2;
var defaultImport4;
var View2;
var PressableOpacity;
var items3;
var LegacyText;
var object5;
var moduleValue6;
var value19;
var moduleValue7;
var env0_0;
var env0_1;
const styles = useStyles();
let binding = env0_4;
const useContext = binding.useContext;
const RevealContext = require(dependencyMap[9]).RevealContext;
const reveal = Reflect.apply(useContext, binding, [RevealContext]).reveal;
let moduleValue = require(dependencyMap[10]);
const useAnalyticsContext = moduleValue.useAnalyticsContext;
const location = Reflect.apply(useAnalyticsContext, moduleValue, []).location;
const env0_3 = location;
const analyticsLocations = importDefault(dependencyMap[11])().analyticsLocations;
var env0_4 = analyticsLocations;
const [property, env0_6] = env0_3(binding.useState(false), 2);
const moduleValue2 = require(dependencyMap[12]);
const useAnimatedStyle = moduleValue2.useAnimatedStyle;
const closure = function() {
var r2;
var moduleValue = require(dependencyMap[13]);
var withTiming = moduleValue.withTiming;
r2 = reveal ? 1 : 0;
var object2 = {};
object2.easing = require(dependencyMap[14]).STANDARD_EASING;
object2.duration = 250;
return {opacity: Reflect.apply(withTiming, moduleValue, [r2, object2])};
};
let object2 = {};
object2.withTiming = require(dependencyMap[13]).withTiming;
object2.reveal = reveal;
const STANDARD_EASING = require(dependencyMap[14]).STANDARD_EASING;
object2.STANDARD_EASING = STANDARD_EASING;
closure.__closure = object2;
closure.__workletHash = 14676679064575;
closure.__initData = env0_13;
const value6 = Reflect.apply(useAnimatedStyle, moduleValue2, [closure]);
const value7 = require(dependencyMap[15]).useMaxQuality(participant);
const value10 = importDefault(dependencyMap[16])(participant) != null;
try {
property2 = dependencyMap[15];
moduleValue4 = require(property2);
isPremiumFPS2 = moduleValue4.isPremiumFPS(value7);
env0_0 = isPremiumFPS2;
r23 = isPremiumFPS2;
} catch (error) {
env0_0 = false;
r23 = false;
}
try {
property3 = dependencyMap[15];
moduleValue5 = require(property3);
isPremiumResolution2 = moduleValue5.isPremiumResolution(value7);
env0_1 = isPremiumResolution2;
r3 = isPremiumResolution2;
} catch (error) {
env0_1 = false;
r3 = false;
}
const r14 = r23 || r3;
binding = env0_4;
binding.useEffect(_fun82168, [analyticsLocations, property, r14, r23, r3]);
const value11 = binding.useCallback(_fun82169, [location, analyticsLocations]);
const defaultImport = importDefault(dependencyMap[22]);
const isPremium = defaultImport.isPremium;
let user = participant.user;
let TIER_1 = PremiumTypes.TIER_1;
const isPremium2 = Reflect.apply(isPremium, defaultImport, [user, TIER_1]);
if (isPremium2) {
r0 = !isPremium2;
} else {
defaultImport2 = importDefault(dependencyMap[22]);
r0 = !defaultImport2.canStreamQuality(importDefault(dependencyMap[22]).StreamQuality.MID, participant.user);
}
const defaultImport3 = importDefault(dependencyMap[22]);
const isPremiumExactly = defaultImport3.isPremiumExactly;
user = participant.user;
TIER_1 = PremiumTypes.TIER_1;
const r1 = Reflect.apply(isPremiumExactly, defaultImport3, [user,
TIER_1]) && (value7 == null ? undefined : value7.maxResolution.type) === ResolutionTypes.SOURCE;
if (r1) {
defaultImport4 = importDefault(dependencyMap[22]);
r02 = !defaultImport4.canStreamQuality(importDefault(dependencyMap[22]).StreamQuality.HIGH);
} else {
r02 = r1;
}
if (value7 == null) {
r0 = null;
} else {
View2 = importDefault(dependencyMap[12]).View;
var view2Props = {pointerEvents: r14 && (r0 || r02) ? 'auto' : 'none', style: [style, value6]};
PressableOpacity = require(dependencyMap[23]).PressableOpacity;
var pressableOpacityProps = {accessibilityRole: 'button', style: [styles.liveIndicator, style],
onPress: value11};
var viewBindingProps = {style: styles.qualityTag};
items3 = [r14 && ((Component) => <Component source={importDefault(dependencyMap[25])} style={styles.nitroWheel} resizeMode="contain" />)(importDefault(dependencyMap[24]))];
LegacyText = require(dependencyMap[14]).LegacyText;
var legacyTextProps = {style: [styles.qualityTagText, value10 ? styles.reducedQualityTagText : null]};
moduleValue6 = require(dependencyMap[15]);
value19 = moduleValue6.getResolutionText(value7.maxResolution);
moduleValue7 = require(dependencyMap[15]);
items3[1] = <LegacyText {...legacyTextProps}>{'' + value19 + ' ' + moduleValue7.getFPSText(value7.maxFrameRate)}</LegacyText>;
r0 = <View2 {...view2Props}><PressableOpacity {...pressableOpacityProps}><View {...viewBindingProps}>{items3}</View>{((LiveTag) => <LiveTag style={styles.liveTag} />)(require(dependencyMap[14]).LiveTag)}</PressableOpacity></View2>;
}
return r0;
}
function _fun82168() { // fn#82168, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10875:1721, offset: 0x01eed86a, size: 128 bytes, params: 1, frame: 16
var value3;
var defaultImport;
if (!env0_5 && env0_7) {
value3 = environment.__proto__;
defaultImport = importDefault(683) /* metro dependency 683: AnalyticsUtils */;
defaultImport.track(AnalyticEvents.PREMIUM_UPSELL_VIEWED, {type: PremiumUpsellTypes.STREAM_QUALITY_INDICATOR,
has_premium_stream_fps: env0_0, has_premium_stream_resolution: env0_1, location_stack: analyticsLocations});
env0_6(true);
}
}
function _fun82169() { // fn#82169, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10875:1925, offset: 0x01eed8ea, size: 125 bytes, params: 1, frame: 18
let value = environment.__proto__;
const defaultImport = importDefault(dependencyMap[18]);
const pushLazy = defaultImport.pushLazy;
value = require(dependencyMap[20]);
value = value(dependencyMap[19], dependencyMap.paths);
const object2 = {};
object2.analyticsLocation = location;
object2.analyticsLocations = analyticsLocations;
const PremiumFeatureCardOrder = require(dependencyMap[21]).PremiumFeatureCardOrder;
const TIER_0_LEADING = PremiumFeatureCardOrder.TIER_0_LEADING;
object2.premiumFeatureCardOrder = TIER_0_LEADING;
Reflect.apply(pushLazy, defaultImport, [value, object2]);
}
global.__d(_fun82165, 10689, [57, 31, 27, 661, 1880, 4291, 33, 4501, 697, 7723, 8620, 6771, 4017, 4504, 1305, 8912,
10690, 683, 5080, 7028, 1962, 7940, 3802, 5278, 5475, 7938,
2]) /* metro module 10689, dependencies: [57, 31, 27, 661, 1880, 4291, 33, 4501, 697, 7723, 8620, 6771, 4017, 4504, 1305, 8912, 10690, 683, 5080, 7028, 1962, 7940, 3802, 5278, 5475, 7938, 2] */;
@@ -1,414 +1,432 @@
/* Metro module 4491; source: modules/go_live/native/VoiceEngineStreamingManager.tsx; dependencies: [6, 7, 15, 17, 18, 99, 100, 5, 27, 4492, 1379, 1934, 661, 4237, 3, 4041, 3829, 694, 507, 4285, 8913, 4261, 44, 7712, 1478, 10794, 10741, 1244, 4561, 2] */
import Logger from '../../debug/Logger.tsx'; /* Metro dependency 3 */
import Module00005 from '../../../by-id/module-00005.js'; /* Metro dependency 5 */
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 Module00044 from '../../../by-id/module-00044.js'; /* Metro dependency 44 */
import Module00099 from '../../../by-id/module-00099.js'; /* Metro dependency 99 */
import Module00100 from '../../../by-id/module-00100.js'; /* Metro dependency 100 */
import Dispatcher from '../../../Dispatcher.tsx'; /* Metro dependency 694 */
import ChannelStore from '../../../stores/ChannelStore.tsx'; /* Metro dependency 1379 */
import SelectedChannelStore from '../../../stores/SelectedChannelStore.tsx'; /* Metro dependency 1934 */
import ApplicationStreamingStore from '../../../stores/ApplicationStreamingStore.tsx'; /* Metro dependency 4492 */
import PushNotification from '../../../lib/pushnotification/PushNotification.tsx'; /* Metro dependency 10741 */
import * as FileImportTrackerModule from '../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ReactNativeModule from '../../../by-id/module-00027-ReactNative.js'; /* Metro dependency 27 */
import * as ConstantsModule from '../../../Constants.tsx'; /* Metro dependency 661 */
import * as UseWindowDimensionsNativeModule from '../../screen/useWindowDimensions.native.tsx'; /* Metro dependency 1478 */
import * as TimersModule from '../../../external/discord_common/js/packages/timers/Timers.tsx'; /* Metro dependency 4041 */
import * as ConstantsModule2 from '../../activities/Constants.tsx'; /* Metro dependency 4237 */
import * as InjectModule from '../../../external/discord_common/js/packages/media-engine/native/inject.tsx'; /* Metro dependency 4261 */
import * as StreamKeyUtilsModule from '../utils/StreamKeyUtils.tsx'; /* Metro dependency 4285 */
import * as UseScreenshareUtilsModule from '../../video_calls/native/useScreenshareUtils.tsx'; /* Metro dependency 10794 */
function _fun38261(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#38261, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4669:6, offset: 0x010bb011, size: 596 bytes, params: 8, frame: 22
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const env0_3 = importDefault(6) /* metro dependency 6 */;
const env0_4 = importDefault(7) /* metro dependency 7 */;
const env0_5 = importDefault(15) /* metro dependency 15 */;
const env0_6 = importDefault(17) /* metro dependency 17 */;
const env0_7 = importDefault(18) /* metro dependency 18 */;
const env0_8 = importDefault(99) /* metro dependency 99 */;
let value = importDefault(100) /* metro dependency 100 */;
const env0_9 = importDefault(5) /* metro dependency 5 */;
const env0_10 = (require(27) /* metro dependency 27 */).Linking;
const applicationStreamingStore = importDefault(4492) /* metro dependency 4492: ApplicationStreamingStore */;
const channelStore = importDefault(1379) /* metro dependency 1379: ChannelStore */;
const selectedChannelStore = importDefault(1934) /* metro dependency 1934: SelectedChannelStore */;
const constantsModule = require(661) /* metro dependency 661: Constants */;
const env0_14 = constantsModule.Base64JPEGPrefix;
const env0_15 = constantsModule.Endpoints;
const env0_16 = constantsModule.NOOP_NULL;
const env0_17 = constantsModule.IOS_BUNDLE_ID;
const env0_18 = (require(4237) /* metro dependency 4237: Constants */).getAppIntentScheme;
const logger = importDefault(3) /* metro dependency 3: Logger */;
const value5 = Object.create(logger.prototype, {constructor: {value: logger}});
const logger2 = new logger('VoiceEngineStreamingManager');
let value = Module00100;
const value5 = Object.create(Logger.prototype, {constructor: {value: Logger}});
const logger2 = new Logger('VoiceEngineStreamingManager');
(logger2 instanceof Object ? logger2 : value5).enableNativeLogger(true);
const Timeout = (require(4041) /* metro dependency 4041: Timers */).Timeout;
const Timeout = (TimersModule).Timeout;
let timeout = new Timeout();
timeout = new Timeout();
const env0_23 = [];
const env0_24 = _fun38265();
const env0_25 = selectedChannelStore.getVoiceChannelId();
const env0_25 = SelectedChannelStore.getVoiceChannelId();
const env0_26 = value('handleVoiceChannelSelect');
value = importDefault(4561) /* metro dependency 4561: LifecycleManager */;
value = _fun38270(value);
value = new value();
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/go_live/native/VoiceEngineStreamingManager.tsx');
(FileImportTrackerModule).fileFinishedImporting('modules/go_live/native/VoiceEngineStreamingManager.tsx');
exports.default = value;
}
function _isNativeReflectConstruct_38262() { // fn#38262, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4669:336, offset: 0x010bb265, size: 94 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) {
function _isNativeReflectConstruct_38262() { // fn#38262, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4669:336, offset: 0x010bb265, size: 94 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_38262_isNativeReflectConstruct = function() {
return !!result;
})();
}
return (_isNativeReflectConstruct_38262_isNativeReflectConstruct = function() {
return !!result;
})();
}
function _fun38265() { // fn#38265, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4669:666, offset: 0x010bb2c3, size: 32 bytes, params: 1, frame: 12
const env0_0 = env0_9(_fun38267);
return _fun38269;
}
function _fun38270(a0) { // fn#38270, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4669:1167, offset: 0x010bb456, size: 116 bytes, params: 2, frame: 16
const closure = VoiceEngineStreamingManager;
env0_7(closure, a0);
return env0_4(closure, [{key: '_initialize', value: value_38274}, {key: '_terminate', value: value_38281},
{key: 'getApplicationNames', value: value_38282}]);
}
function* _fun38267(a0, a1) { // fn#38267, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4669:686, offset: 0x010bb2ec, size: 334 bytes, params: 3, frame: 20
var environment;
var binding;
var DisableStreamPreviews;
var getSetting;
var stop;
var HermesInternal;
var concat;
var value3;
var value4;
var dispatch;
var object3;
var binding2;
var property;
var value5;
var HTTP;
var post;
var STREAM_PREVIEW;
var value6;
var object4;
var value7;
var value8;
var value9;
var error;
var error2;
var start;
if (true) {
reduciblePort28: while (true) {
exceptionLanding27: while (true) {
var env0_0 = a0;
var env0_1 = a1;
value = environment.__proto__.__proto__;
binding = env2_0;
DisableStreamPreviews = binding(env2_2[16]).DisableStreamPreviews;
getSetting = DisableStreamPreviews.getSetting;
if (Reflect.apply(getSetting, DisableStreamPreviews, [])) {
function _fun38265() { // fn#38265, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4669:666, offset: 0x010bb2c3, size: 32 bytes, params: 1, frame: 12
const env0_0 = Module00005(_fun38267);
return _fun38269;
function* _fun38267(a0, a1) { // fn#38267, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4669:686, offset: 0x010bb2ec, size: 334 bytes, params: 3, frame: 20
var environment;
var binding;
var DisableStreamPreviews;
var getSetting;
var stop;
var HermesInternal;
var concat;
var value3;
var value4;
var dispatch;
var object;
var binding2;
var property;
var value5;
var HTTP;
var post;
var STREAM_PREVIEW;
var value6;
var object2;
var value7;
var value8;
var value9;
var error;
var error2;
var start;
if (true) {
reduciblePort28: while (true) {
exceptionLanding27: while (true) {
var env0_0 = a0;
var env0_1 = a1;
value = environment.__proto__.__proto__;
binding = env2_0;
DisableStreamPreviews = binding(env2_2[16]).DisableStreamPreviews;
getSetting = DisableStreamPreviews.getSetting;
if (Reflect.apply(getSetting, DisableStreamPreviews, [])) {
break reduciblePort28;
}
binding = env2_21;
stop = binding.stop;
Reflect.apply(stop, binding, []);
binding = env2_14;
HermesInternal = global.HermesInternal;
concat = HermesInternal.concat;
value3 = '' + binding + a1;
binding = env2_1;
value4 = binding(env2_2[17]);
dispatch = value4.dispatch;
Reflect.apply(dispatch, value4, [{type: 'STREAM_PREVIEW_FETCH_SUCCESS', streamKey: a0,
previewURL: value3}]);
try {
binding = env2_0;
} catch (error) {
break exceptionLanding27;
}
try {
binding2 = env2_2;
} catch (error) {
break exceptionLanding27;
}
try {
property = binding2[18];
} catch (error) {
break exceptionLanding27;
}
try {
value5 = binding(property);
} catch (error) {
break exceptionLanding27;
}
try {
HTTP = value5.HTTP;
} catch (error) {
break exceptionLanding27;
}
try {
post = HTTP.post;
} catch (error) {
break exceptionLanding27;
}
try {
object = {};
} catch (error) {
break exceptionLanding27;
}
try {
binding = env2_15;
} catch (error) {
break exceptionLanding27;
}
try {
STREAM_PREVIEW = binding.STREAM_PREVIEW;
} catch (error) {
break exceptionLanding27;
}
try {
value6 = Reflect.apply(STREAM_PREVIEW, binding, [a0]);
} catch (error) {
break exceptionLanding27;
}
try {
object.url = value6;
} catch (error) {
break exceptionLanding27;
}
try {
object2 = {};
} catch (error) {
break exceptionLanding27;
}
try {
object2.thumbnail = value3;
} catch (error) {
break exceptionLanding27;
}
try {
object.body = object2;
} catch (error) {
break exceptionLanding27;
}
try {
object.oldFormErrors = true;
} catch (error) {
break exceptionLanding27;
}
try {
object.rejectWithError = false;
} catch (error) {
break exceptionLanding27;
}
try {
value7 = Reflect.apply(post, HTTP, [object]);
} catch (error) {
break exceptionLanding27;
}
yield value7;
try {
value8 = undefined;
value9 = false;
} catch (error) {
break exceptionLanding27;
}
if (value9) {
return value8;
}
break reduciblePort28;
}
binding = env2_19;
error2 = binding.error;
Reflect.apply(error2, binding, ['Failed to post stream preview', error]);
binding = env2_21;
start = binding.start;
Reflect.apply(start, binding, [60000, _fun38268]);
break reduciblePort28;
}
binding = env2_21;
stop = binding.stop;
Reflect.apply(stop, binding, []);
binding = env2_14;
HermesInternal = global.HermesInternal;
concat = HermesInternal.concat;
value3 = '' + binding + a1;
binding = env2_1;
value4 = binding(env2_2[17]);
dispatch = value4.dispatch;
Reflect.apply(dispatch, value4, [{type: 'STREAM_PREVIEW_FETCH_SUCCESS', streamKey: a0,
previewURL: value3}]);
try {
binding = env2_0;
} catch (error) {
break exceptionLanding27;
}
try {
binding2 = env2_2;
} catch (error) {
break exceptionLanding27;
}
try {
property = binding2[18];
} catch (error) {
break exceptionLanding27;
}
try {
value5 = binding(property);
} catch (error) {
break exceptionLanding27;
}
try {
HTTP = value5.HTTP;
} catch (error) {
break exceptionLanding27;
}
try {
post = HTTP.post;
} catch (error) {
break exceptionLanding27;
}
try {
object3 = {};
} catch (error) {
break exceptionLanding27;
}
try {
binding = env2_15;
} catch (error) {
break exceptionLanding27;
}
try {
STREAM_PREVIEW = binding.STREAM_PREVIEW;
} catch (error) {
break exceptionLanding27;
}
try {
value6 = Reflect.apply(STREAM_PREVIEW, binding, [a0]);
} catch (error) {
break exceptionLanding27;
}
try {
object3.url = value6;
} catch (error) {
break exceptionLanding27;
}
try {
object4 = {};
} catch (error) {
break exceptionLanding27;
}
try {
object4.thumbnail = value3;
} catch (error) {
break exceptionLanding27;
}
try {
object3.body = object4;
} catch (error) {
break exceptionLanding27;
}
try {
object3.oldFormErrors = true;
} catch (error) {
break exceptionLanding27;
}
try {
object3.rejectWithError = false;
} catch (error) {
break exceptionLanding27;
}
try {
value7 = Reflect.apply(post, HTTP, [object3]);
} catch (error) {
break exceptionLanding27;
}
yield value7;
try {
value8 = undefined;
value9 = false;
} catch (error) {
break exceptionLanding27;
}
if (value9) {
return value8;
}
break reduciblePort28;
}
binding = env2_19;
error2 = binding.error;
Reflect.apply(error2, binding, ['Failed to post stream preview', error]);
binding = env2_21;
start = binding.start;
Reflect.apply(start, binding, [60000, _fun38268]);
break reduciblePort28;
}
}
}
function VoiceEngineStreamingManager(a0) { // fn#38271, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4669:1179, offset: 0x010bb4ca, size: 170 bytes, params: 2, frame: 20
var r0;
var Reflect;
let value = copyRestArgs(0, undefined);
let binding = env1_3;
binding(this, VoiceEngineStreamingManager);
const items = [];
arraySpread(items, value, 0, items);
value = env1_6(VoiceEngineStreamingManager);
binding = env1_5;
if (_isNativeReflectConstruct_38262()) {
Reflect = global.Reflect;
value = Reflect.construct(value, items, env1_6(this).constructor);
r0 = value;
} else {
value = value.apply(this, items);
r0 = value;
}
value = binding(this, r0);
const Object = global.Object;
Object.defineProperty(value, env1_26, {writable: true, value: value_38272});
return value;
}
function value_38274() { // fn#38274, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4669:1781, offset: 0x010bb61b, size: 172 bytes, params: 1, frame: 16
const voiceEngine = (require(4261) /* metro dependency 4261: inject */).getVoiceEngine();
env1_20 = voiceEngine;
voiceEngine.setBroadcastRequestCallback(_fun38275);
let binding = env1_20;
binding.setBroadcastFinishedCallback(_fun38278);
env1_20.setBroadcastAnnotatedCallback(_fun38279);
env1_20.setBroadcastBlockedCallback(_fun38280);
const defaultImport = importDefault(694) /* metro dependency 694: Dispatcher */;
const subscribe = defaultImport.subscribe;
binding = env1_8;
const binding2 = env1_26;
Reflect.apply(subscribe, defaultImport, ['VOICE_CHANNEL_SELECT', binding(this, binding2)[binding2]]);
}
function value_38281() { // fn#38281, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4669:3164, offset: 0x010bba7b, size: 176 bytes, params: 1, frame: 15
const voiceEngine = (require(4261) /* metro dependency 4261: inject */).getVoiceEngine();
if (voiceEngine != null) {
voiceEngine.setBroadcastRequestCallback(NOOP_NULL);
voiceEngine.setBroadcastFinishedCallback(NOOP_NULL);
voiceEngine.setBroadcastAnnotatedCallback(NOOP_NULL);
voiceEngine.setBroadcastBlockedCallback(NOOP_NULL);
}
let binding = env1_21;
binding.stop();
env1_22.stop();
const defaultImport = importDefault(694) /* metro dependency 694: Dispatcher */;
const unsubscribe = defaultImport.unsubscribe;
binding = env1_8;
const binding2 = env1_26;
Reflect.apply(unsubscribe, defaultImport, ['VOICE_CHANNEL_SELECT', binding(this, binding2)[binding2]]);
}
function _fun38268() { // fn#38268, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4669:1034, offset: 0x010bb43a, size: 28 bytes, params: 1, frame: 13
return env3_24(env0_0, require);
}
function VoiceEngineStreamingManagerValue({channelId}) { // fn#38272, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4669:1491, owner: VoiceEngineStreamingManager.value, offset: 0x010bb574, size: 82 bytes, params: 2, frame: 13
var binding;
if (env2_25 !== channelId) {
binding = env2_20;
if (binding != null) {
binding.stopBroadcast();
}
ApplicationStreamingStore.getAllActiveStreams().forEach(_fun38273);
}
}
function _fun38275() { // fn#38275, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4669:1851, offset: 0x010bb6c7, size: 385 bytes, params: 1, frame: 22
var guildId;
var moduleValue;
var startStream;
var id;
var currentUserActiveStream;
var defaultImport2;
var selectParticipant;
var moduleValue2;
env2_19.log('Broadcast Requested');
(importDefault(44) /* metro dependency 44 */)(env2_20 != null, 'Voice Engine should be initialized in callback');
env2_23 = [];
const channel = ChannelStore.getChannel(SelectedChannelStore.getVoiceChannelId());
const currentAppIntent = ApplicationStreamingStore.getCurrentAppIntent();
if (channel != null) {
guildId = channel.getGuildId();
moduleValue = require(8913) /* metro dependency 8913: StreamActionCreators */;
startStream = moduleValue.startStream;
id = channel.id;
Reflect.apply(startStream, moduleValue, [guildId, id, {sourceId: 'screen:0'}]);
currentUserActiveStream = ApplicationStreamingStore.getCurrentUserActiveStream();
if (currentUserActiveStream != null) {
defaultImport2 = importDefault(7712) /* metro dependency 7712: ChannelRTCActionCreators */;
selectParticipant = defaultImport2.selectParticipant;
id = channel.id;
moduleValue2 = require(4285) /* metro dependency 4285: StreamKeyUtils */;
Reflect.apply(selectParticipant, defaultImport2, [id,
moduleValue2.encodeStreamKey(currentUserActiveStream)]);
if (env2_20.platform === 'android') {
env2_22.start(15000, _fun38276);
function _fun38268() { // fn#38268, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4669:1034, offset: 0x010bb43a, size: 28 bytes, params: 1, frame: 13
return env3_24(env0_0, require);
}
if (currentAppIntent != null) {
Linking.openURL(getAppIntentScheme(currentAppIntent));
}
function _fun38269() { // fn#38269, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4669:1059, offset: 0x00c3945f, size: 30 bytes, params: 1, frame: 13
return env0_0.apply(this, arguments);
}
}
function _fun38270(a0) { // fn#38270, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4669:1167, offset: 0x010bb456, size: 116 bytes, params: 2, frame: 16
const VoiceEngineStreamingManager2 = VoiceEngineStreamingManager;
Inherits(VoiceEngineStreamingManager2, a0);
return CreateClass(VoiceEngineStreamingManager2, [{key: '_initialize', value: value_38274}, {key: '_terminate',
value: value_38281}, {key: 'getApplicationNames', value: value_38282}]);
function VoiceEngineStreamingManager(a0) { // fn#38271, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4669:1179, offset: 0x010bb4ca, size: 170 bytes, params: 2, frame: 20
var r0;
var Reflect;
let value = copyRestArgs(0, undefined);
let binding = env1_3;
binding(this, VoiceEngineStreamingManager);
const items2 = [];
arraySpread(items2, value, 0, items2);
value = env1_6(VoiceEngineStreamingManager);
binding = env1_5;
if (_isNativeReflectConstruct_38262()) {
Reflect = global.Reflect;
value = Reflect.construct(value, items2, env1_6(this).constructor);
r0 = value;
} else {
value = value.apply(this, items2);
r0 = value;
}
value = binding(this, r0);
const Object = global.Object;
Object.defineProperty(value, env1_26, {writable: true, value: value_38272});
return value;
function VoiceEngineStreamingManagerValue({channelId}) { // fn#38272, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4669:1491, owner: VoiceEngineStreamingManager.value, offset: 0x010bb574, size: 82 bytes, params: 2, frame: 13
var binding;
if (env2_25 !== channelId) {
binding = env2_20;
if (binding != null) {
binding.stopBroadcast();
}
ApplicationStreamingStore.getAllActiveStreams().forEach(_fun38273);
}
function _fun38273(a0) { // fn#38273, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4669:1587, offset: 0x010bb5c6, size: 85 bytes, params: 2, frame: 15
const channelId2 = a0.channelId;
var value;
if (channelId2 !== channelId) {
value = environment.__proto__.__proto__.__proto__;
value = require(4285) /* metro dependency 4285: StreamKeyUtils */;
value = value.encodeStreamKey(a0);
(require(8913) /* metro dependency 8913: StreamActionCreators */).stopStream(value, false);
}
}
}
}
} else {
env2_20.stopBroadcastWithError(-1, 'Not currently in a voice channel');
}
}
function _fun38278() { // fn#38278, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4669:2707, offset: 0x010bb949, size: 86 bytes, params: 1, frame: 12
const value = environment.__proto__.__proto__;
env2_19.log('Broadcast Finished');
env2_21.stop();
env2_22.stop();
(require(10794) /* metro dependency 10794: useScreenshareUtils */).handleCloseScreenshare();
}
function value_38274() { // fn#38274, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4669:1781, offset: 0x010bb61b, size: 172 bytes, params: 1, frame: 16
const voiceEngine = (InjectModule).getVoiceEngine();
voiceEngine2 = voiceEngine;
voiceEngine.setBroadcastRequestCallback(_fun38275);
let binding = voiceEngine2;
binding.setBroadcastFinishedCallback(_fun38278);
voiceEngine2.setBroadcastAnnotatedCallback(_fun38279);
voiceEngine2.setBroadcastBlockedCallback(_fun38280);
const defaultImport = Dispatcher;
const subscribe = defaultImport.subscribe;
binding = env1_8;
const binding2 = env1_26;
Reflect.apply(subscribe, defaultImport, ['VOICE_CHANNEL_SELECT', binding(this, binding2)[binding2]]);
function _fun38275() { // fn#38275, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4669:1851, offset: 0x010bb6c7, size: 385 bytes, params: 1, frame: 22
var guildId;
var moduleValue;
var startStream;
var id;
var currentUserActiveStream;
var defaultImport2;
var selectParticipant;
var moduleValue2;
env2_19.log('Broadcast Requested');
(Module00044)(env2_20 != null, 'Voice Engine should be initialized in callback');
env2_23 = [];
const channel = ChannelStore.getChannel(SelectedChannelStore.getVoiceChannelId());
const currentAppIntent = ApplicationStreamingStore.getCurrentAppIntent();
if (channel != null) {
guildId = channel.getGuildId();
moduleValue = require(8913) /* metro dependency 8913: StreamActionCreators */;
startStream = moduleValue.startStream;
id = channel.id;
Reflect.apply(startStream, moduleValue, [guildId, id, {sourceId: 'screen:0'}]);
currentUserActiveStream = ApplicationStreamingStore.getCurrentUserActiveStream();
if (currentUserActiveStream != null) {
defaultImport2 = importDefault(7712) /* metro dependency 7712: ChannelRTCActionCreators */;
selectParticipant = defaultImport2.selectParticipant;
id = channel.id;
moduleValue2 = require(4285) /* metro dependency 4285: StreamKeyUtils */;
Reflect.apply(selectParticipant, defaultImport2, [id,
moduleValue2.encodeStreamKey(currentUserActiveStream)]);
if (env2_20.platform === 'android') {
env2_22.start(15000, _fun38276);
}
if (currentAppIntent != null) {
Linking.openURL(getAppIntentScheme(currentAppIntent));
}
}
} else {
env2_20.stopBroadcastWithError(-1, 'Not currently in a voice channel');
}
function _fun38276() { // fn#38276, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4669:2260, offset: 0x010bb848, size: 172 bytes, params: 1, frame: 18
(Module00044)(env3_20 != null, 'Voice Engine should be initialized in callback');
const windowDimensions = (UseWindowDimensionsNativeModule).getWindowDimensions();
const value3 = 512 / windowDimensions.width;
const value4 = 288 / windowDimensions.height;
const Math = global.Math;
const value5 = Math.min(value3, value4);
env3_20.setBroadcastThumbnailCallback(windowDimensions.width * value5, windowDimensions.height * value5, 300,
_fun38277);
function _fun38277(a0) { // fn#38277, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4669:2480, offset: 0x010bb8f4, size: 85 bytes, params: 2, frame: 15
const binding = env4_19;
binding.log('Broadcast thumbnail of size:', a0.length);
env4_24((StreamKeyUtilsModule).encodeStreamKey(env1_0), a0);
}
}
}
function _fun38278() { // fn#38278, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4669:2707, offset: 0x010bb949, size: 86 bytes, params: 1, frame: 12
const value = environment.__proto__.__proto__;
env2_19.log('Broadcast Finished');
env2_21.stop();
env2_22.stop();
(UseScreenshareUtilsModule).handleCloseScreenshare();
}
function _fun38279(a0) { // fn#38279, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4669:2828, offset: 0x010bb99f, size: 101 bytes, params: 2, frame: 15
var value2;
let binding = env2_19;
binding.log('Broadcast Annotated:', a0);
if (a0 !== IOS_BUNDLE_ID) {
binding = env2_23;
value2 = binding.indexOf(a0, 0);
if (value2 > -1) {
env2_23.splice(value2, 1);
}
binding = env2_23;
binding.push(a0);
}
}
function _fun38280() { // fn#38280, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4669:2960, offset: 0x010bba04, size: 119 bytes, params: 1, frame: 17
env2_19.log('Broadcast Blocked');
const defaultImport = PushNotification;
const presentLocalNotification = defaultImport.presentLocalNotification;
const object = {};
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
object.alertBody = intl.string((require(1244) /* metro dependency 1244: indexNative */).t.iYQlwv);
Reflect.apply(presentLocalNotification, defaultImport, [object]);
}
function _fun38279(a0) { // fn#38279, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4669:2828, offset: 0x010bb99f, size: 101 bytes, params: 2, frame: 15
var value2;
let binding = env2_19;
binding.log('Broadcast Annotated:', a0);
if (a0 !== IOS_BUNDLE_ID) {
binding = env2_23;
value2 = binding.indexOf(a0, 0);
if (value2 > -1) {
env2_23.splice(value2, 1);
}
binding = env2_23;
binding.push(a0);
function value_38281() { // fn#38281, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4669:3164, offset: 0x010bba7b, size: 176 bytes, params: 1, frame: 15
const voiceEngine = (InjectModule).getVoiceEngine();
if (voiceEngine != null) {
voiceEngine.setBroadcastRequestCallback(NOOP_NULL);
voiceEngine.setBroadcastFinishedCallback(NOOP_NULL);
voiceEngine.setBroadcastAnnotatedCallback(NOOP_NULL);
voiceEngine.setBroadcastBlockedCallback(NOOP_NULL);
}
let binding = env1_21;
binding.stop();
env1_22.stop();
const defaultImport = Dispatcher;
const unsubscribe = defaultImport.unsubscribe;
binding = env1_8;
const binding2 = env1_26;
Reflect.apply(unsubscribe, defaultImport, ['VOICE_CHANNEL_SELECT', binding(this, binding2)[binding2]]);
}
function value_38282() { // fn#38282, offset: 0x00df3ac4, size: 9 bytes, params: 1, frame: 1
return env1_23;
}
}
}
function _fun38280() { // fn#38280, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4669:2960, offset: 0x010bba04, size: 119 bytes, params: 1, frame: 17
env2_19.log('Broadcast Blocked');
const defaultImport = importDefault(10741) /* metro dependency 10741: PushNotification */;
const presentLocalNotification = defaultImport.presentLocalNotification;
const object2 = {};
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
object2.alertBody = intl.string((require(1244) /* metro dependency 1244: indexNative */).t.iYQlwv);
Reflect.apply(presentLocalNotification, defaultImport, [object2]);
}
function _fun38273(a0) { // fn#38273, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4669:1587, offset: 0x010bb5c6, size: 85 bytes, params: 2, frame: 15
const channelId2 = a0.channelId;
var value;
if (channelId2 !== channelId) {
value = environment.__proto__.__proto__.__proto__;
value = require(4285) /* metro dependency 4285: StreamKeyUtils */;
value = value.encodeStreamKey(a0);
(require(8913) /* metro dependency 8913: StreamActionCreators */).stopStream(value, false);
}
}
function _fun38276() { // fn#38276, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4669:2260, offset: 0x010bb848, size: 172 bytes, params: 1, frame: 18
(importDefault(44) /* metro dependency 44 */)(env3_20 != null, 'Voice Engine should be initialized in callback');
const windowDimensions = (require(1478) /* metro dependency 1478: useWindowDimensionsNative */).getWindowDimensions();
const value3 = 512 / windowDimensions.width;
const value4 = 288 / windowDimensions.height;
const Math = global.Math;
const value5 = Math.min(value3, value4);
env3_20.setBroadcastThumbnailCallback(windowDimensions.width * value5, windowDimensions.height * value5, 300,
_fun38277);
}
function _fun38277(a0) { // fn#38277, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4669:2480, offset: 0x010bb8f4, size: 85 bytes, params: 2, frame: 15
const binding = env4_19;
binding.log('Broadcast thumbnail of size:', a0.length);
env4_24((require(4285) /* metro dependency 4285: StreamKeyUtils */).encodeStreamKey(env1_0), a0);
}
global.__d(_fun38261, 4491, [6, 7, 15, 17, 18, 99, 100, 5, 27, 4492, 1379, 1934, 661, 4237, 3, 4041, 3829, 694, 507,
4285, 8913, 4261, 44, 7712, 1478, 10794, 10741, 1244, 4561,
2]) /* metro module 4491, dependencies: [6, 7, 15, 17, 18, 99, 100, 5, 27, 4492, 1379, 1934, 661, 4237, 3, 4041, 3829, 694, 507, 4285, 8913, 4261, 44, 7712, 1478, 10794, 10741, 1244, 4561, 2] */;
@@ -1,61 +1,65 @@
/* Metro module 10271; source: modules/go_live/useFetchStreamPreview.tsx; dependencies: [31, 8914, 1379, 3784, 1934, 482, 566, 8913, 2] */
import ChannelStore from '../../stores/ChannelStore.tsx'; /* Metro dependency 1379 */
import SelectedChannelStore from '../../stores/SelectedChannelStore.tsx'; /* Metro dependency 1934 */
import PermissionStore from '../../stores/PermissionStore.tsx'; /* Metro dependency 3784 */
import ApplicationStreamPreviewStore from '../../stores/ApplicationStreamPreviewStore.tsx'; /* Metro dependency 8914 */
import * as FileImportTrackerModule from '../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ReactModule from '../../by-id/module-00031-React.js'; /* Metro dependency 31 */
import * as ConstantsModule from '../../external/discord_common/js/shared/Constants.tsx'; /* Metro dependency 482 */
function _fun79708(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#79708, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10457:6, offset: 0x01e5ed61, size: 203 bytes, params: 8, frame: 19
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const env0_2 = importAll(31) /* metro dependency 31 */;
const applicationStreamPreviewStore = importDefault(8914) /* metro dependency 8914: ApplicationStreamPreviewStore */;
const channelStore = importDefault(1379) /* metro dependency 1379: ChannelStore */;
const permissionStore = importDefault(3784) /* metro dependency 3784: PermissionStore */;
const selectedChannelStore = importDefault(1934) /* metro dependency 1934: SelectedChannelStore */;
const env0_7 = (require(482) /* metro dependency 482: Constants */).BasicPermissions;
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/go_live/useFetchStreamPreview.tsx');
(FileImportTrackerModule).fileFinishedImporting('modules/go_live/useFetchStreamPreview.tsx');
exports.default = useFetchStreamPreview;
}
function useFetchStreamPreview(a0, a1, a2) { // fn#79709, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10457:258, offset: 0x01e5ee2c, size: 338 bytes, params: 4, frame: 24
const env0_0 = a0;
const env0_1 = a1;
const env0_2 = a2;
const r4 = a1 == null || a2 == null;
const env0_4 = (require(566) /* metro dependency 566: flux */).useStateFromStores([ChannelStore], function() {
return ChannelStore.getChannel(require);
});
const value2 = (require(566) /* metro dependency 566: flux */).useStateFromStores([PermissionStore], _fun79711);
const value3 = (require(566) /* metro dependency 566: flux */).useStateFromStores([SelectedChannelStore], _fun79712);
const {shouldFetchPreview, previewUrl,
isLoading} = (require(566) /* metro dependency 566: flux */).useStateFromStoresObject([ApplicationStreamPreviewStore],
_fun79713);
let r0 = value2 || value3;
env0_2.useEffect(_fun79714, [shouldFetchPreview, a1, a0, a2, r4, r0]);
r0 = r4 ? {previewUrl: undefined, isLoading: false} : r0 ? {previewUrl: previewUrl,
isLoading: isLoading} : {previewUrl: undefined, isLoading: false};
return r0;
function _fun79711() { // fn#79711, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10457:409, offset: 0x01e5ef98, size: 51 bytes, params: 1, frame: 14
return channel != null && PermissionStore.canBasicChannel(BasicPermissions.CONNECT, channel);
}
function useFetchStreamPreview(a0, a1, a2) { // fn#79709, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10457:258, offset: 0x01e5ee2c, size: 338 bytes, params: 4, frame: 24
const env0_0 = a0;
const env0_1 = a1;
const env0_2 = a2;
const r4 = a1 == null || a2 == null;
const env0_4 = (require(566) /* metro dependency 566: flux */).useStateFromStores([ChannelStore], function() {
return ChannelStore.getChannel(require);
});
const value2 = (require(566) /* metro dependency 566: flux */).useStateFromStores([PermissionStore], _fun79711);
const value3 = (require(566) /* metro dependency 566: flux */).useStateFromStores([SelectedChannelStore], _fun79712);
const {shouldFetchPreview, previewUrl,
isLoading} = (require(566) /* metro dependency 566: flux */).useStateFromStoresObject([ApplicationStreamPreviewStore],
_fun79713);
let r0 = value2 || value3;
env0_2.useEffect(_fun79714, [shouldFetchPreview, a1, a0, a2, r4, r0]);
r0 = r4 ? {previewUrl: undefined, isLoading: false} : r0 ? {previewUrl: previewUrl,
isLoading: isLoading} : {previewUrl: undefined, isLoading: false};
return r0;
}
function _fun79712() { // fn#79712, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10457:489, offset: 0x01e5efcb, size: 30 bytes, params: 1, frame: 9
const value = environment.__proto__;
return SelectedChannelStore.getVoiceChannelId() === require;
}
function _fun79711() { // fn#79711, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10457:409, offset: 0x01e5ef98, size: 51 bytes, params: 1, frame: 14
return channel != null && PermissionStore.canBasicChannel(BasicPermissions.CONNECT, channel);
}
function _fun79713() { // fn#79713, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10457:561, offset: 0x01e5efe9, size: 149 bytes, params: 1, frame: 18
return {shouldFetchPreview: !env0_3 && ApplicationStreamPreviewStore.shouldFetchPreview(env0_0, require,
importDefault), previewUrl: env0_3 ? null : ApplicationStreamPreviewStore.getPreviewURL(env0_0, require,
importDefault), isLoading: !env0_3 && ApplicationStreamPreviewStore.getIsPreviewLoading(env0_0, require,
importDefault)};
}
function _fun79712() { // fn#79712, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10457:489, offset: 0x01e5efcb, size: 30 bytes, params: 1, frame: 9
const value = environment.__proto__;
return SelectedChannelStore.getVoiceChannelId() === require;
}
function _fun79714() { // fn#79714, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10457:785, offset: 0x01e5f07e, size: 81 bytes, params: 1, frame: 15
var value3;
var moduleValue;
if (shouldFetchPreview && !env0_3 && env0_6) {
value3 = environment.__proto__;
moduleValue = require(8913) /* metro dependency 8913: StreamActionCreators */;
moduleValue.fetchStreamPreview(env0_0, require, importDefault);
}
}
function _fun79713() { // fn#79713, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10457:561, offset: 0x01e5efe9, size: 149 bytes, params: 1, frame: 18
return {shouldFetchPreview: !env0_3 && ApplicationStreamPreviewStore.shouldFetchPreview(env0_0, require,
importDefault), previewUrl: env0_3 ? null : ApplicationStreamPreviewStore.getPreviewURL(env0_0, require,
importDefault), isLoading: !env0_3 && ApplicationStreamPreviewStore.getIsPreviewLoading(env0_0, require,
importDefault)};
}
function _fun79714() { // fn#79714, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10457:785, offset: 0x01e5f07e, size: 81 bytes, params: 1, frame: 15
var value3;
var moduleValue;
if (shouldFetchPreview && !env0_3 && env0_6) {
value3 = environment.__proto__;
moduleValue = require(8913) /* metro dependency 8913: StreamActionCreators */;
moduleValue.fetchStreamPreview(env0_0, require, importDefault);
}
}
global.__d(_fun79708, 10271, [31, 8914, 1379, 3784, 1934, 482, 566, 8913,
2]) /* metro module 10271, dependencies: [31, 8914, 1379, 3784, 1934, 482, 566, 8913, 2] */;
+49 -45
View File
@@ -1,67 +1,71 @@
/* Metro module 10690; source: modules/go_live/useStreamError.tsx; dependencies: [10672, 9235, 566, 2] */
import AVErrorStore from '../errors/av_errors/AVErrorStore.tsx'; /* Metro dependency 10672 */
import * as FileImportTrackerModule from '../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as FluxModule from '../../external/discord_common/js/packages/flux/index.tsx'; /* Metro dependency 566 */
import * as AVErrorModule from '../errors/av_errors/AVError.tsx'; /* Metro dependency 9235 */
function _fun82170(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#82170, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10876:6, offset: 0x01eed967, size: 282 bytes, params: 8, frame: 19
var object2;
let env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const avErrorStore = importDefault(10672) /* metro dependency 10672: AVErrorStore */;
object2 = {};
const AVError = (require(9235) /* metro dependency 9235: AVError */).AVError;
object = {};
const AVError = (AVErrorModule).AVError;
const STREAM_SOUNDSHARE_FAILED = AVError.STREAM_SOUNDSHARE_FAILED;
object2[STREAM_SOUNDSHARE_FAILED] = 0;
object[STREAM_SOUNDSHARE_FAILED] = 0;
const STREAM_SEND_HIGH_PACKET_LOSS = AVError.STREAM_SEND_HIGH_PACKET_LOSS;
object2[STREAM_SEND_HIGH_PACKET_LOSS] = 1;
object[STREAM_SEND_HIGH_PACKET_LOSS] = 1;
const STREAM_VIEW_HIGH_PACKET_LOSS = AVError.STREAM_VIEW_HIGH_PACKET_LOSS;
object2[STREAM_VIEW_HIGH_PACKET_LOSS] = 1;
object[STREAM_VIEW_HIGH_PACKET_LOSS] = 1;
const STREAM_SEND_LOW_FPS = AVError.STREAM_SEND_LOW_FPS;
object2[STREAM_SEND_LOW_FPS] = 2;
object[STREAM_SEND_LOW_FPS] = 2;
const STREAM_VIEW_LOW_FPS = AVError.STREAM_VIEW_LOW_FPS;
object2[STREAM_VIEW_LOW_FPS] = 2;
object[STREAM_VIEW_LOW_FPS] = 2;
const STREAM_BAD_NETWORK_QUALITY = AVError.STREAM_BAD_NETWORK_QUALITY;
object2[STREAM_BAD_NETWORK_QUALITY] = 3;
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/go_live/useStreamError.tsx');
object[STREAM_BAD_NETWORK_QUALITY] = 3;
(FileImportTrackerModule).fileFinishedImporting('modules/go_live/useStreamError.tsx');
exports.default = function({id}) {
var env0_0 = id;
return require(dependencyMap[2]).useStateFromStores([AVErrorStore], _fun82172, [id]);
};
}
function useStreamError({id}) { // fn#82171, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10876:458, offset: 0x01eeda81, size: 80 bytes, params: 2, frame: 16
return (FluxModule).useStateFromStores([AVErrorStore], _fun82172, [id]);
function _fun82172() { // fn#82172, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10876:535, offset: 0x01eedad1, size: 105 bytes, params: 1, frame: 13
var environment;
let value = environment.__proto__;
value = AVErrorStore.getActiveErrors();
const Array = global.Array;
value = Array.from(value.values());
value = value.filter(_fun82173);
value = value.sort(_fun82174);
return value[0]?.type;
function _fun82173(a0) { // fn#82173, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10876:599, offset: 0x01eedb3a, size: 58 bytes, params: 2, frame: 4
var r0;
var streamKey;
let value = 'streamKey' in a0;
if (value) {
streamKey = a0.streamKey;
value = environment.__proto__;
value = streamKey === id;
r0 = value;
} else {
r0 = value;
}
if (r0) {
value = environment.__proto__.__proto__;
value = env2_3[a0.type] != null;
r0 = value;
}
return r0;
}
function useStreamError({id}) { // fn#82171, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10876:458, offset: 0x01eeda81, size: 80 bytes, params: 2, frame: 16
return (require(566) /* metro dependency 566: flux */).useStateFromStores([AVErrorStore], _fun82172, [id]);
}
function _fun82174({type}, {type}) { // fn#82174, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10876:660, offset: 0x01eedb74, size: 67 bytes, params: 3, frame: 6
return (env2_3[type] ?? 0) - (env2_3[type] ?? 0);
}
function _fun82172() { // fn#82172, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10876:535, offset: 0x01eedad1, size: 105 bytes, params: 1, frame: 13
var environment;
let value = environment.__proto__;
value = AVErrorStore.getActiveErrors();
const Array = global.Array;
value = Array.from(value.values());
value = value.filter(_fun82173);
value = value.sort(_fun82174);
return value[0]?.type;
}
}
function _fun82173(a0) { // fn#82173, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10876:599, offset: 0x01eedb3a, size: 58 bytes, params: 2, frame: 4
var r0;
var streamKey;
let value = 'streamKey' in a0;
if (value) {
streamKey = a0.streamKey;
value = environment.__proto__;
value = streamKey === id;
r0 = value;
} else {
r0 = value;
}
if (r0) {
value = environment.__proto__.__proto__;
value = env2_3[a0.type] != null;
r0 = value;
}
return r0;
}
function _fun82174({type}, {type}) { // fn#82174, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10876:660, offset: 0x01eedb74, size: 67 bytes, params: 3, frame: 6
return (env2_3[type] ?? 0) - (env2_3[type] ?? 0);
}
global.__d(_fun82170, 10690, [10672, 9235, 566, 2]) /* metro module 10690, dependencies: [10672, 9235, 566, 2] */;
@@ -1,50 +1,53 @@
/* Metro module 4285; source: modules/go_live/utils/StreamKeyUtils.tsx; dependencies: [57, 4286, 2] */
import Module00057 from '../../../by-id/module-00057.js'; /* Metro dependency 57 */
import * as FileImportTrackerModule from '../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ConstantsModule from '../Constants.tsx'; /* Metro dependency 4286 */
function _fun36336(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#36336, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4457:6, offset: 0x01089742, size: 148 bytes, params: 8, frame: 18
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const env0_0 = importDefault(57) /* metro dependency 57 */;
const env0_1 = (require(4286) /* metro dependency 4286: Constants */).StreamTypes;
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/go_live/utils/StreamKeyUtils.tsx');
(FileImportTrackerModule).fileFinishedImporting('modules/go_live/utils/StreamKeyUtils.tsx');
exports.isStreamKey = function(a0) {
return a0 != null && (a0.startsWith(StreamTypes.GUILD) || a0.startsWith(StreamTypes.CALL));
};
exports.decodeStreamKey = decodeStreamKey;
exports.encodeStreamKey = encodeStreamKey;
function decodeStreamKey(a0) { // fn#36338, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4457:321, offset: 0x01089817, size: 219 bytes, params: 2, frame: 16
let value = a0.split(':');
const property = value[0];
const GUILD = StreamTypes.GUILD;
if (GUILD === property) {
value = Module00057(value, 4);
return {streamType: value[0], guildId: value[1], channelId: value[2], ownerId: value[3]};
}
const CALL = StreamTypes.CALL;
if (CALL === property) {
value = Module00057(value, 3);
return {streamType: value[0], channelId: value[1], ownerId: value[2]};
}
const Error = global.Error;
value = 'Unknown stream type ' + property;
const value3 = Object.create(Error.prototype, {constructor: {value: Error}});
const error = new Error(value);
throw error instanceof Object ? error : value3;
}
function encodeStreamKey({streamType, guildId, channelId, ownerId}) { // fn#36339, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4457:625, offset: 0x010898f2, size: 176 bytes, params: 2, frame: 15
const GUILD = StreamTypes.GUILD;
if (GUILD === streamType) {
return [streamType, guildId, channelId, ownerId].join(':');
}
const CALL = StreamTypes.CALL;
if (CALL === streamType) {
return [streamType, channelId, ownerId].join(':');
}
const Error = global.Error;
const value = 'Unknown stream type ' + streamType;
const value2 = Object.create(Error.prototype, {constructor: {value: Error}});
const error = new Error(value);
throw error instanceof Object ? error : value2;
}
}
function decodeStreamKey(a0) { // fn#36338, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4457:321, offset: 0x01089817, size: 219 bytes, params: 2, frame: 16
let value = a0.split(':');
const property = value[0];
const GUILD = StreamTypes.GUILD;
if (GUILD === property) {
value = env0_0(value, 4);
return {streamType: value[0], guildId: value[1], channelId: value[2], ownerId: value[3]};
}
const CALL = StreamTypes.CALL;
if (CALL === property) {
value = env0_0(value, 3);
return {streamType: value[0], channelId: value[1], ownerId: value[2]};
}
const Error = global.Error;
value = 'Unknown stream type ' + property;
const value3 = Object.create(Error.prototype, {constructor: {value: Error}});
const error = new Error(value);
throw error instanceof Object ? error : value3;
}
function encodeStreamKey({streamType, guildId, channelId, ownerId}) { // fn#36339, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4457:625, offset: 0x010898f2, size: 176 bytes, params: 2, frame: 15
const GUILD = StreamTypes.GUILD;
if (GUILD === streamType) {
return [streamType, guildId, channelId, ownerId].join(':');
}
const CALL = StreamTypes.CALL;
if (CALL === streamType) {
return [streamType, channelId, ownerId].join(':');
}
const Error = global.Error;
const value = 'Unknown stream type ' + streamType;
const value2 = Object.create(Error.prototype, {constructor: {value: Error}});
const error = new Error(value);
throw error instanceof Object ? error : value2;
}
global.__d(_fun36336, 4285, [57, 4286, 2]) /* metro module 4285, dependencies: [57, 4286, 2] */;
@@ -1,6 +1,17 @@
/* Metro module 7118; source: modules/go_live/utils/StreamPermissionUtils.tsx; dependencies: [4295, 1383, 1935, 1867, 3784, 4297, 661, 4808, 1244, 4800, 5072, 566, 2] */
import GuildStore from '../../../stores/GuildStore.tsx'; /* Metro dependency 1867 */
import PermissionStore from '../../../stores/PermissionStore.tsx'; /* Metro dependency 3784 */
import GameConsoleStore from '../../game_console/GameConsoleStore.tsx'; /* Metro dependency 4295 */
import VoiceStateStore from '../../../stores/VoiceStateStore.tsx'; /* Metro dependency 4297 */
import CanJoinVoiceChannel from '../../channel/canJoinVoiceChannel.tsx'; /* Metro dependency 4808 */
import * as FileImportTrackerModule from '../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as FluxModule from '../../../external/discord_common/js/packages/flux/index.tsx'; /* Metro dependency 566 */
import * as ConstantsModule from '../../../Constants.tsx'; /* Metro dependency 661 */
import * as IndexNativeModule from '../../../intl/index.native.tsx'; /* Metro dependency 1244 */
import * as ChannelRecordModule from '../../../records/ChannelRecord.tsx'; /* Metro dependency 1383 */
import * as GuildChannelStoreModule from '../../../stores/GuildChannelStore.tsx'; /* Metro dependency 1935 */
function _fun56927(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#56927, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7296:6, offset: 0x013d5f45, size: 387 bytes, params: 8, frame: 23
var object2;
let env0_0 = require;
const _arrayLikeToArray_56930 = function(a0, a1) {
var r0;
@@ -45,31 +56,24 @@ function _fun56927(global, require, importDefault, importAll, module, exports, d
}
return value;
};
const closure = canStreamInChannel;
const closure2 = canWatchStream;
const canStreamInChannel2 = canStreamInChannel;
const canWatchStream2 = canWatchStream;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const gameConsoleStore = importDefault(4295) /* metro dependency 4295: GameConsoleStore */;
const env0_4 = (require(1383) /* metro dependency 1383: ChannelRecord */).ChannelRecordBase;
const env0_5 = (require(1935) /* metro dependency 1935: GuildChannelStore */).GUILD_VOCAL_CHANNELS_KEY;
const guildStore = importDefault(1867) /* metro dependency 1867: GuildStore */;
const permissionStore = importDefault(3784) /* metro dependency 3784: PermissionStore */;
const voiceStateStore = importDefault(4297) /* metro dependency 4297: VoiceStateStore */;
const env0_9 = (require(661) /* metro dependency 661: Constants */).Permissions;
object2 = {REMOTE_MODE: 0};
object2[0] = 'REMOTE_MODE';
object2.CHANNEL_FULL = 1;
object2[1] = 'CHANNEL_FULL';
object2.NO_PERMISSION = 2;
object2[2] = 'NO_PERMISSION';
object2.AGE_RESTRICTED = 3;
object2[3] = 'AGE_RESTRICTED';
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/go_live/utils/StreamPermissionUtils.tsx');
exports.canStreamInChannel = closure;
object = {REMOTE_MODE: 0};
object[0] = 'REMOTE_MODE';
object.CHANNEL_FULL = 1;
object[1] = 'CHANNEL_FULL';
object.NO_PERMISSION = 2;
object[2] = 'NO_PERMISSION';
object.AGE_RESTRICTED = 3;
object[3] = 'AGE_RESTRICTED';
(FileImportTrackerModule).fileFinishedImporting('modules/go_live/utils/StreamPermissionUtils.tsx');
exports.canStreamInChannel = canStreamInChannel2;
exports.getStreamCTAString = getStreamCTAString;
exports.getStreamCTAAriaLabel = getStreamCTAAriaLabel;
exports.StreamUnavailableReasons = object2;
exports.canWatchStream = closure2;
exports.StreamUnavailableReasons = object;
exports.canWatchStream = canWatchStream2;
exports.useCanWatchStream = function(a0) {
var env0_0 = a0;
return require(dependencyMap[11]).useStateFromStoresArray([VoiceStateStore, GuildStore, PermissionStore,
@@ -99,167 +103,174 @@ function _fun56927(global, require, importDefault, importAll, module, exports, d
}
return items;
};
}
function _createForOfIteratorHelperLoose_56928(a0, a1) { // fn#56928, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7296:228, offset: 0x013d60c8, size: 370 bytes, params: 3, frame: 20
var r6;
var r9;
var r5;
var value3;
var regexp;
const env0_0 = a0;
const Symbol = global.Symbol;
let value = typeof Symbol !== 'undefined';
let r1 = value && a0[global.Symbol.iterator];
r1 = !r1 ? a0['@@iterator'] : r1;
if (r1) {
value = r1.call(a0);
return value.next.bind(value);
}
const Array = global.Array;
if (Array.isArray(a0)) {
function _createForOfIteratorHelperLoose_56928(a0, a1) { // fn#56928, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7296:228, offset: 0x013d60c8, size: 370 bytes, params: 3, frame: 20
var r6;
var r9;
var r5;
var value3;
var regexp;
const env0_0 = a0;
const Symbol = global.Symbol;
let value = typeof Symbol !== 'undefined';
let r1 = value && a0[global.Symbol.iterator];
r1 = !r1 ? a0['@@iterator'] : r1;
if (r1) {
value = r1.call(a0);
return value.next.bind(value);
}
return _fun56929;
}
value = undefined;
if (a0) {
if (typeof a0 === 'string') {
value = _arrayLikeToArray_56930(a0, value);
r5 = value;
} else {
value3 = ({}).toString.call(a0).slice(8, -1);
r6 = value3 === 'Object' && a0.constructor;
r9 = r6 ? a0.constructor.name : value3;
if (r9 === 'Map') {
r6 = global.Array.from(a0);
} else if (r9 === 'Set') {
r6 = global.Array.from(a0);
} else if (r9 === 'Arguments') {
const Array = global.Array;
if (Array.isArray(a0)) {
if (r1) {
}
return _fun56929;
}
value = undefined;
if (a0) {
if (typeof a0 === 'string') {
value = _arrayLikeToArray_56930(a0, value);
r6 = value;
r5 = value;
} else {
regexp = RegExp('^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$', '');
if (regexp.test(r9)) {
value3 = ({}).toString.call(a0).slice(8, -1);
r6 = value3 === 'Object' && a0.constructor;
r9 = r6 ? a0.constructor.name : value3;
if (r9 === 'Map') {
r6 = global.Array.from(a0);
} else if (r9 === 'Set') {
r6 = global.Array.from(a0);
} else if (r9 === 'Arguments') {
value = _arrayLikeToArray_56930(a0, value);
r6 = value;
} else {
r6 = value;
regexp = RegExp('^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$', '');
if (regexp.test(r9)) {
value = _arrayLikeToArray_56930(a0, value);
r6 = value;
} else {
r6 = value;
}
}
r5 = r6;
}
r5 = r6;
} else {
r5 = value;
}
} else {
r5 = value;
}
if (r5) {
if (r5) {
if (r5) {
}
return _fun56929;
}
return _fun56929;
const TypeError = global.TypeError;
throw new TypeError('Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.');
function _fun56929() { // fn#56929, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7296:799, offset: 0x00c39d73, size: 69 bytes, params: 1, frame: 5
return env0_1 >= env0_0.length ? {done: true} : {done: false,
value: env0_0[typeof env0_1 === 'bigint' ? env0_1 : +env0_1]};
}
}
const TypeError = global.TypeError;
throw new TypeError('Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.');
}
function canStreamInChannel(a0, a1, a2) { // fn#56931, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7296:1138, offset: 0x013d623a, size: 223 bytes, params: 4, frame: 19
let value = a3;
const value2 = undefined;
let r1 = !(value !== value2) || value;
if (a0.isPrivate()) {
return true;
function canStreamInChannel(a0, a1, a2) { // fn#56931, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7296:1138, offset: 0x013d623a, size: 223 bytes, params: 4, frame: 19
let value = a3;
const value2 = undefined;
let r1 = !(value !== value2) || value;
if (a0.isPrivate()) {
return true;
}
const getGuild = a1.getGuild;
const getGuildId = a0.getGuildId;
value = Reflect.apply(getGuild, a1, [Reflect.apply(getGuildId, a0, [])]);
const maxStageVideoChannelUsers = value == null ? value2 : value.maxStageVideoChannelUsers;
const value3 = 0;
let r0 = a0.isGuildStageVoice() && (maxStageVideoChannelUsers ?? value3) <= value3;
if (r0) {
r0 = !r0;
} else {
r1 = r1 && !(importDefault(4808) /* metro dependency 4808: canJoinVoiceChannel */)(a0, a2);
r1 = !r1 && (a2.can(Permissions.STREAM,
a0) ? value != null && value.afkChannelId !== a0.id : !!a2.can(Permissions.STREAM, a0));
r0 = r1;
}
return r0;
}
const getGuild = a1.getGuild;
const getGuildId = a0.getGuildId;
value = Reflect.apply(getGuild, a1, [Reflect.apply(getGuildId, a0, [])]);
const maxStageVideoChannelUsers = value == null ? value2 : value.maxStageVideoChannelUsers;
const value3 = 0;
let r0 = a0.isGuildStageVoice() && (maxStageVideoChannelUsers ?? value3) <= value3;
if (r0) {
r0 = !r0;
} else {
r1 = r1 && !(importDefault(4808) /* metro dependency 4808: canJoinVoiceChannel */)(a0, a2);
r1 = !r1 && (a2.can(Permissions.STREAM,
a0) ? value != null && value.afkChannelId !== a0.id : !!a2.can(Permissions.STREAM, a0));
r0 = r1;
}
return r0;
}
function canWatchStream(a0, a1, a2, a3, a4) { // fn#56932, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7296:1595, offset: 0x013d6319, size: 356 bytes, params: 6, frame: 21
var r5;
var moduleValue3;
if (a0 == null) {
return [false, env0_10.NO_PERMISSION];
}
const value = a1.isInChannel(a0.id);
const r4 = a0 instanceof ChannelRecordBase && (require(4800) /* metro dependency 4800: ChannelUtils */).isChannelFull(a0,
a1, a2);
const value4 = undefined;
const value5 = (importDefault(4808) /* metro dependency 4808: canJoinVoiceChannel */)(a0, a3);
const getAwaitingRemoteSessionInfo = a4.getAwaitingRemoteSessionInfo;
const r6 = Reflect.apply(getAwaitingRemoteSessionInfo, a4, []) != null || a4.getRemoteSessionId() != null;
const shouldAgeVerifyForAgeGate2 = (require(5072) /* metro dependency 5072: AgeGateUtils */).shouldAgeVerifyForAgeGate();
if (shouldAgeVerifyForAgeGate2) {
moduleValue3 = require(5072) /* metro dependency 5072: AgeGateUtils */;
r5 = moduleValue3.shouldShowAgeGateForChannelId(a0.id);
} else {
r5 = shouldAgeVerifyForAgeGate2;
function canWatchStream(a0, a1, a2, a3, a4) { // fn#56932, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7296:1595, offset: 0x013d6319, size: 356 bytes, params: 6, frame: 21
var r5;
var moduleValue3;
if (a0 == null) {
return [false, env0_10.NO_PERMISSION];
}
const value = a1.isInChannel(a0.id);
const r4 = a0 instanceof ChannelRecordBase && (require(4800) /* metro dependency 4800: ChannelUtils */).isChannelFull(a0,
a1, a2);
const value4 = undefined;
const value5 = (CanJoinVoiceChannel)(a0, a3);
const getAwaitingRemoteSessionInfo = a4.getAwaitingRemoteSessionInfo;
const r6 = Reflect.apply(getAwaitingRemoteSessionInfo, a4, []) != null || a4.getRemoteSessionId() != null;
const shouldAgeVerifyForAgeGate2 = (require(5072) /* metro dependency 5072: AgeGateUtils */).shouldAgeVerifyForAgeGate();
if (shouldAgeVerifyForAgeGate2) {
moduleValue3 = require(5072) /* metro dependency 5072: AgeGateUtils */;
r5 = moduleValue3.shouldShowAgeGateForChannelId(a0.id);
} else {
r5 = shouldAgeVerifyForAgeGate2;
}
return [!r6 && !r5 && (value || value5 && !r4),
r6 ? env0_10.REMOTE_MODE : r5 ? env0_10.AGE_RESTRICTED : value5 || value ? r4 && !value ? env0_10.CHANNEL_FULL : value4 : env0_10.NO_PERMISSION];
}
return [!r6 && !r5 && (value || value5 && !r4),
r6 ? env0_10.REMOTE_MODE : r5 ? env0_10.AGE_RESTRICTED : value5 || value ? r4 && !value ? env0_10.CHANNEL_FULL : value4 : env0_10.NO_PERMISSION];
}
function getStreamCTAString(a0) { // fn#56933, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7296:2185, offset: 0x013d647d, size: 366 bytes, params: 2, frame: 15
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
const t = (require(1244) /* metro dependency 1244: indexNative */).t;
const REMOTE_MODE = env0_10.REMOTE_MODE;
if (REMOTE_MODE === a0) {
return intl.string(t['1i3tSY']);
}
const CHANNEL_FULL = env0_10.CHANNEL_FULL;
if (CHANNEL_FULL === a0) {
return intl.string(t.elyVbv);
}
const NO_PERMISSION = env0_10.NO_PERMISSION;
if (NO_PERMISSION === a0) {
return intl.string(t.pgUTZC);
}
const AGE_RESTRICTED = env0_10.AGE_RESTRICTED;
if (AGE_RESTRICTED === a0) {
return intl.string(t.b5FqhF);
function getStreamCTAString(a0) { // fn#56933, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7296:2185, offset: 0x013d647d, size: 366 bytes, params: 2, frame: 15
const intl = (IndexNativeModule).intl;
const t = (IndexNativeModule).t;
const REMOTE_MODE = env0_10.REMOTE_MODE;
if (REMOTE_MODE === a0) {
return intl.string(t['1i3tSY']);
}
const CHANNEL_FULL = env0_10.CHANNEL_FULL;
if (CHANNEL_FULL === a0) {
return intl.string(t.elyVbv);
}
const NO_PERMISSION = env0_10.NO_PERMISSION;
if (NO_PERMISSION === a0) {
return intl.string(t.pgUTZC);
}
const AGE_RESTRICTED = env0_10.AGE_RESTRICTED;
if (AGE_RESTRICTED === a0) {
return intl.string(t.b5FqhF);
}
return intl.string(t['7Xq/nV']);
}
return intl.string(t['7Xq/nV']);
}
function getStreamCTAAriaLabel(a0) { // fn#56934, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7296:2584, offset: 0x013d65eb, size: 739 bytes, params: 2, frame: 18
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
const t = (require(1244) /* metro dependency 1244: indexNative */).t;
const REMOTE_MODE = env0_10.REMOTE_MODE;
if (REMOTE_MODE === a0) {
return '' + intl.string(t['7Xq/nV']) + ': ' + intl.string(t['1i3tSY']);
function getStreamCTAAriaLabel(a0) { // fn#56934, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7296:2584, offset: 0x013d65eb, size: 739 bytes, params: 2, frame: 18
const intl = (IndexNativeModule).intl;
const t = (IndexNativeModule).t;
const REMOTE_MODE = env0_10.REMOTE_MODE;
if (REMOTE_MODE === a0) {
return '' + intl.string(t['7Xq/nV']) + ': ' + intl.string(t['1i3tSY']);
}
const CHANNEL_FULL = env0_10.CHANNEL_FULL;
if (CHANNEL_FULL === a0) {
return '' + intl.string(t['7Xq/nV']) + ': ' + intl.string(t.elyVbv);
}
const NO_PERMISSION = env0_10.NO_PERMISSION;
if (NO_PERMISSION === a0) {
return '' + intl.string(t['7Xq/nV']) + ': ' + intl.string(t.pgUTZC);
}
const AGE_RESTRICTED = env0_10.AGE_RESTRICTED;
if (AGE_RESTRICTED === a0) {
return '' + intl.string(t['7Xq/nV']) + ': ' + intl.string(t.b5FqhF);
}
return '' + intl.string(t['7Xq/nV']) + ': ' + intl.string(t['9C444m']);
}
const CHANNEL_FULL = env0_10.CHANNEL_FULL;
if (CHANNEL_FULL === a0) {
return '' + intl.string(t['7Xq/nV']) + ': ' + intl.string(t.elyVbv);
}
const NO_PERMISSION = env0_10.NO_PERMISSION;
if (NO_PERMISSION === a0) {
return '' + intl.string(t['7Xq/nV']) + ': ' + intl.string(t.pgUTZC);
}
const AGE_RESTRICTED = env0_10.AGE_RESTRICTED;
if (AGE_RESTRICTED === a0) {
return '' + intl.string(t['7Xq/nV']) + ': ' + intl.string(t.b5FqhF);
}
return '' + intl.string(t['7Xq/nV']) + ': ' + intl.string(t['9C444m']);
}
function useCanWatchStream(a0) { // fn#56935, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7296:3300, offset: 0x013d68ce, size: 89 bytes, params: 2, frame: 15
const env0_0 = a0;
return (require(566) /* metro dependency 566: flux */).useStateFromStoresArray([VoiceStateStore, GuildStore,
PermissionStore, GameConsoleStore], _fun56936);
}
function useCanWatchStream(a0) { // fn#56935, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7296:3300, offset: 0x013d68ce, size: 89 bytes, params: 2, frame: 15
const env0_0 = a0;
return (FluxModule).useStateFromStoresArray([VoiceStateStore, GuildStore,
PermissionStore, GameConsoleStore], _fun56936);
function _fun56936() { // fn#56936, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7296:3382, offset: 0x013d6927, size: 38 bytes, params: 1, frame: 19
return canWatchStream(env0_0, VoiceStateStore, GuildStore, PermissionStore, GameConsoleStore);
}
}
function _fun56936() { // fn#56936, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7296:3382, offset: 0x013d6927, size: 38 bytes, params: 1, frame: 19
return canWatchStream(env0_0, VoiceStateStore, GuildStore, PermissionStore, GameConsoleStore);
}
global.__d(_fun56927, 7118, [4295, 1383, 1935, 1867, 3784, 4297, 661, 4808, 1244, 4800, 5072, 566,
2]) /* metro module 7118, dependencies: [4295, 1383, 1935, 1867, 3784, 4297, 661, 4808, 1244, 4800, 5072, 566, 2] */;
@@ -1,10 +1,15 @@
/* Metro module 7128; source: modules/go_live/utils/StreamerApplicationSelectors.tsx; dependencies: [4396, 661, 6885, 628, 566, 2] */
import PresenceStore from '../../../stores/PresenceStore.tsx'; /* Metro dependency 4396 */
import * as FileImportTrackerModule from '../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as FluxModule from '../../../external/discord_common/js/packages/flux/index.tsx'; /* Metro dependency 566 */
import * as ConstantsModule from '../../../Constants.tsx'; /* Metro dependency 661 */
function _fun56983(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#56983, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7306:6, offset: 0x013d7c26, size: 203 bytes, params: 8, frame: 22
let env0_0 = require;
const closure = function(a0, a1) {
return a1.findActivity(a0, _findPlayingActivity);
};
const closure2 = getStreamerActivity;
const getStreamerActivity2 = getStreamerActivity;
const closure3 = function(a0, a1) {
var value = null;
if (value == a0) {
@@ -15,47 +20,51 @@ function _fun56983(global, require, importDefault, importAll, module, exports, d
};
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const presenceStore = importDefault(4396) /* metro dependency 4396: PresenceStore */;
const env0_4 = (require(661) /* metro dependency 661: Constants */).ActivityTypes;
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/go_live/utils/StreamerApplicationSelectors.tsx');
(FileImportTrackerModule).fileFinishedImporting('modules/go_live/utils/StreamerApplicationSelectors.tsx');
exports.getStreamerActivityByUserId = closure;
exports.getStreamerActivity = closure2;
exports.getStreamerActivity = getStreamerActivity2;
exports.getStreamerApplication = closure3;
exports.useGetStreamApplication = function(a0) {
var env0_0 = a0;
return require(dependencyMap[4]).useStateFromStores([PresenceStore], _fun56990, [a0],
streamApplicationEqualityCheck);
};
}
function _findPlayingActivity(a0) { // fn#56984, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7306:131, offset: 0x013d7cf1, size: 60 bytes, params: 2, frame: 13
const type = a0.type;
const PLAYING = ActivityTypes.PLAYING;
return type === PLAYING && !(importDefault(6885) /* metro dependency 6885: isEmbeddedActivity */)(a0);
}
function _findPlayingActivity(a0) { // fn#56984, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7306:131, offset: 0x013d7cf1, size: 60 bytes, params: 2, frame: 13
const type = a0.type;
const PLAYING = ActivityTypes.PLAYING;
return type === PLAYING && !(importDefault(6885) /* metro dependency 6885: isEmbeddedActivity */)(a0);
}
function getStreamerActivity(a0, a1) { // fn#56986, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7306:291, offset: 0x013d7d48, size: 38 bytes, params: 3, frame: 14
const value = null;
return value != a0 ? getStreamerActivityByUserId(a0.ownerId, a1) : value;
}
function getStreamerActivity(a0, a1) { // fn#56986, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7306:291, offset: 0x013d7d48, size: 38 bytes, params: 3, frame: 14
const value = null;
return value != a0 ? getStreamerActivityByUserId(a0.ownerId, a1) : value;
}
function streamApplicationEqualityCheck(a0, a1) { // fn#56988, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7306:531, offset: 0x013d7dae, size: 65 bytes, params: 3, frame: 16
var r1;
var r0;
const value = a0 === a1;
if (value) {
r0 = value;
} else {
r1 = a0 != null && a1 != null;
r1 = r1 && (importDefault(628) /* metro dependency 628: shallowEqual */)(a0, a1);
r0 = r1;
}
return r0;
}
function streamApplicationEqualityCheck(a0, a1) { // fn#56988, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7306:531, offset: 0x013d7dae, size: 65 bytes, params: 3, frame: 16
var r1;
var r0;
const value = a0 === a1;
if (value) {
r0 = value;
} else {
r1 = a0 != null && a1 != null;
r1 = r1 && (importDefault(628) /* metro dependency 628: shallowEqual */)(a0, a1);
r0 = r1;
function useGetStreamApplication(a0) { // fn#56989, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7306:883, offset: 0x013d7def, size: 83 bytes, params: 2, frame: 18
const env0_0 = a0;
return (FluxModule).useStateFromStores([PresenceStore], _fun56990, [a0],
streamApplicationEqualityCheck);
function _fun56990() { // fn#56990, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7306:958, offset: 0x013d7e42, size: 28 bytes, params: 1, frame: 13
return getStreamerApplication(env0_0, PresenceStore);
}
}
return r0;
}
function useGetStreamApplication(a0) { // fn#56989, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7306:883, offset: 0x013d7def, size: 83 bytes, params: 2, frame: 18
const env0_0 = a0;
return (require(566) /* metro dependency 566: flux */).useStateFromStores([PresenceStore], _fun56990, [a0],
streamApplicationEqualityCheck);
}
global.__d(_fun56983, 7128, [4396, 661, 6885, 628, 566,
2]) /* metro module 7128, dependencies: [4396, 661, 6885, 628, 566, 2] */;
@@ -1,11 +1,15 @@
/* Metro module 12381; source: modules/go_live/utils/canSpectate.tsx; dependencies: [4291, 2] */
import * as FileImportTrackerModule from '../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ConstantsModule from '../../../external/discord_common/js/packages/media-engine/Constants.tsx'; /* Metro dependency 4291 */
function _fun94330(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#94330, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12567:6, offset: 0x0211425c, size: 105 bytes, params: 8, frame: 17
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
(require(4291) /* metro dependency 4291: Constants */).Features;
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/go_live/utils/canSpectate.tsx');
(ConstantsModule).Features;
(FileImportTrackerModule).fileFinishedImporting('modules/go_live/utils/canSpectate.tsx');
exports.default = function(a0) {
return true;
};
}
global.__d(_fun94330, 12381, [4291, 2]) /* metro module 12381, dependencies: [4291, 2] */;
@@ -1,4 +1,7 @@
/* Metro module 10798; source: modules/go_live/utils/canStreamWithSettings.tsx; dependencies: [4282, 10799, 10800, 2] */
import * as FileImportTrackerModule from '../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as StreamSettingsConstantsModule from '../StreamSettingsConstants.tsx'; /* Metro dependency 4282 */
function _fun82947(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#82947, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10984:6, offset: 0x01f079e0, size: 156 bytes, params: 8, frame: 18
const env0_0 = require;
const _arrayLikeToArray_82950 = function(a0, a1) {
@@ -46,131 +49,135 @@ function _fun82947(global, require, importDefault, importAll, module, exports, d
};
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const streamSettingsConstantsModule = require(4282) /* metro dependency 4282: StreamSettingsConstants */;
const env0_3 = streamSettingsConstantsModule.ApplicationStreamSettingRequirements;
const env0_4 = streamSettingsConstantsModule.ApplicationStreamPresets;
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/go_live/utils/canStreamWithSettings.tsx');
(FileImportTrackerModule).fileFinishedImporting('modules/go_live/utils/canStreamWithSettings.tsx');
exports.default = canStreamWithSettings;
}
function _createForOfIteratorHelperLoose_82948(a0, a1) { // fn#82948, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10984:181, offset: 0x01f07a7c, size: 372 bytes, params: 3, frame: 20
var r6;
var r9;
var r5;
var value3;
var regexp;
const env0_0 = a0;
const Symbol = global.Symbol;
let value = typeof Symbol !== 'undefined';
let r1 = value && a0[global.Symbol.iterator];
r1 = !r1 ? a0['@@iterator'] : r1;
if (r1) {
value = r1.call(a0);
return value.next.bind(value);
}
const Array = global.Array;
if (Array.isArray(a0)) {
function _createForOfIteratorHelperLoose_82948(a0, a1) { // fn#82948, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10984:181, offset: 0x01f07a7c, size: 372 bytes, params: 3, frame: 20
var r6;
var r9;
var r5;
var value3;
var regexp;
const env0_0 = a0;
const Symbol = global.Symbol;
let value = typeof Symbol !== 'undefined';
let r1 = value && a0[global.Symbol.iterator];
r1 = !r1 ? a0['@@iterator'] : r1;
if (r1) {
value = r1.call(a0);
return value.next.bind(value);
}
return _fun82949;
}
value = undefined;
if (a0) {
if (typeof a0 === 'string') {
value = _arrayLikeToArray_82950(a0, value);
r5 = value;
} else {
value3 = ({}).toString.call(a0).slice(8, -1);
r6 = value3 === 'Object' && a0.constructor;
r9 = r6 ? a0.constructor.name : value3;
if (r9 === 'Map') {
r6 = global.Array.from(a0);
} else if (r9 === 'Set') {
r6 = global.Array.from(a0);
} else if (r9 === 'Arguments') {
const Array = global.Array;
if (Array.isArray(a0)) {
if (r1) {
}
return _fun82949;
}
value = undefined;
if (a0) {
if (typeof a0 === 'string') {
value = _arrayLikeToArray_82950(a0, value);
r6 = value;
r5 = value;
} else {
regexp = RegExp('^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$', '');
if (regexp.test(r9)) {
value3 = ({}).toString.call(a0).slice(8, -1);
r6 = value3 === 'Object' && a0.constructor;
r9 = r6 ? a0.constructor.name : value3;
if (r9 === 'Map') {
r6 = global.Array.from(a0);
} else if (r9 === 'Set') {
r6 = global.Array.from(a0);
} else if (r9 === 'Arguments') {
value = _arrayLikeToArray_82950(a0, value);
r6 = value;
} else {
r6 = value;
}
}
r5 = r6;
}
} else {
r5 = value;
}
if (r5) {
if (r5) {
}
return _fun82949;
}
const TypeError = global.TypeError;
throw new TypeError('Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.');
}
function canStreamWithSettings(a0, a1, a2, a3, a4, a5) { // fn#82951, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10984:1184, offset: 0x01f07bf0, size: 231 bytes, params: 7, frame: 26
var r2;
var value4;
var preset;
var resolution;
var fps;
var value5;
var value;
const PRESET_AUTO = ApplicationStreamPresets.PRESET_AUTO;
if (a0 === PRESET_AUTO) {
value = require(10799) /* metro dependency 10799: GoLiveAutoQualityExperiment */;
return value.getGoLiveAutoQualityExperimentConfig({location: 'canStreamWithSettings'}).allowAutoQuality;
}
const value2 = _createForOfIteratorHelperLoose_82948(ApplicationStreamSettingRequirements);
const value3 = value2();
let done = value3.done;
if (!done) {
r2 = value3;
reducibleLoop2: while (true) {
value4 = r2.value;
preset = value4.preset;
if (preset != null) {
preset = value4.preset;
reducibleJoin4: while (true) {
if (a0 !== preset) {
value5 = value2();
done = value5.done;
if (done) {
return false;
}
r2 = value5;
continue reducibleLoop2;
regexp = RegExp('^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$', '');
if (regexp.test(r9)) {
value = _arrayLikeToArray_82950(a0, value);
r6 = value;
} else {
r6 = value;
}
break reducibleJoin4;
}
r5 = r6;
}
resolution = value4.resolution;
if (a1 === resolution) {
fps = value4.fps;
reducibleJoin7: while (true) {
if (a2 !== fps) {
} else {
r5 = value;
}
if (r5) {
if (r5) {
}
return _fun82949;
}
const TypeError = global.TypeError;
throw new TypeError('Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.');
function _fun82949() { // fn#82949, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10984:752, offset: 0x00c39d73, size: 69 bytes, params: 1, frame: 5
return env0_1 >= env0_0.length ? {done: true} : {done: false,
value: env0_0[typeof env0_1 === 'bigint' ? env0_1 : +env0_1]};
}
}
function canStreamWithSettings(a0, a1, a2, a3, a4, a5) { // fn#82951, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10984:1184, offset: 0x01f07bf0, size: 231 bytes, params: 7, frame: 26
var r2;
var value4;
var preset;
var resolution;
var fps;
var value5;
var value;
const PRESET_AUTO = ApplicationStreamPresets.PRESET_AUTO;
if (a0 === PRESET_AUTO) {
value = require(10799) /* metro dependency 10799: GoLiveAutoQualityExperiment */;
return value.getGoLiveAutoQualityExperimentConfig({location: 'canStreamWithSettings'}).allowAutoQuality;
}
const value2 = _createForOfIteratorHelperLoose_82948(ApplicationStreamSettingRequirements);
const value3 = value2();
let done = value3.done;
if (!done) {
r2 = value3;
reducibleLoop2: while (true) {
value4 = r2.value;
preset = value4.preset;
if (preset != null) {
preset = value4.preset;
reducibleJoin4: while (true) {
if (a0 !== preset) {
value5 = value2();
done = value5.done;
if (done) {
return false;
}
r2 = value5;
continue reducibleLoop2;
}
break reducibleJoin4;
}
}
resolution = value4.resolution;
if (a1 === resolution) {
fps = value4.fps;
reducibleJoin7: while (true) {
if (a2 !== fps) {
break reducibleJoin7;
}
if ((importDefault(10800) /* metro dependency 10800: canUseStreamSetting */)(value4, a3, a4, a5)) {
return true;
}
break reducibleJoin7;
}
if ((importDefault(10800) /* metro dependency 10800: canUseStreamSetting */)(value4, a3, a4, a5)) {
return true;
}
break reducibleJoin7;
}
value5 = value2();
done = value5.done;
if (done) {
return false;
}
r2 = value5;
continue reducibleLoop2;
}
value5 = value2();
done = value5.done;
if (done) {
return false;
}
r2 = value5;
continue reducibleLoop2;
}
return false;
}
return false;
}
global.__d(_fun82947, 10798, [4282, 10799, 10800,
2]) /* metro module 10798, dependencies: [4282, 10799, 10800, 2] */;
@@ -1,63 +1,66 @@
/* Metro module 10800; source: modules/go_live/utils/canUseStreamSetting.tsx; dependencies: [1880, 3802, 8249, 2] */
import * as FileImportTrackerModule from '../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as PremiumConstantsModule from '../../premium/PremiumConstants.tsx'; /* Metro dependency 1880 */
function _fun82957(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#82957, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10986:6, offset: 0x01f07fa7, size: 124 bytes, params: 8, frame: 18
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const env0_3 = (require(1880) /* metro dependency 1880: PremiumConstants */).StreamQualities;
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/go_live/utils/canUseStreamSetting.tsx');
(FileImportTrackerModule).fileFinishedImporting('modules/go_live/utils/canUseStreamSetting.tsx');
exports.default = canUseStreamSetting;
}
function canUseStreamSetting(a0, a1, a2) { // fn#82958, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10986:211, offset: 0x01f08023, size: 289 bytes, params: 4, frame: 20
var r3;
var r1;
var r0;
if (a0 == null) {
return true;
}
let quality = a0.quality;
if (quality == null) {
if (a0.guildPremiumTier == null) {
function canUseStreamSetting(a0, a1, a2) { // fn#82958, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10986:211, offset: 0x01f08023, size: 289 bytes, params: 4, frame: 20
var r3;
var r1;
var r0;
if (a0 == null) {
return true;
}
}
quality = a0.quality;
let value = false;
if (quality != null) {
let quality = a0.quality;
if (quality == null) {
if (a0.guildPremiumTier == null) {
return true;
}
}
quality = a0.quality;
if (StreamQualities.HIGH_STREAMING_QUALITY === quality) {
value = importDefault(3802) /* metro dependency 3802: PremiumUtils */;
value = value.canStreamQuality((importDefault(3802) /* metro dependency 3802: PremiumUtils */).StreamQuality.HIGH,
a1);
r3 = value;
} else if (StreamQualities.MID_STREAMING_QUALITY === quality) {
value = importDefault(3802) /* metro dependency 3802: PremiumUtils */;
value = value.canStreamQuality((importDefault(3802) /* metro dependency 3802: PremiumUtils */).StreamQuality.MID,
a1);
r3 = value;
let value = false;
if (quality != null) {
quality = a0.quality;
if (StreamQualities.HIGH_STREAMING_QUALITY === quality) {
value = importDefault(3802) /* metro dependency 3802: PremiumUtils */;
value = value.canStreamQuality((importDefault(3802) /* metro dependency 3802: PremiumUtils */).StreamQuality.HIGH,
a1);
r3 = value;
} else if (StreamQualities.MID_STREAMING_QUALITY === quality) {
value = importDefault(3802) /* metro dependency 3802: PremiumUtils */;
value = value.canStreamQuality((importDefault(3802) /* metro dependency 3802: PremiumUtils */).StreamQuality.MID,
a1);
r3 = value;
} else {
a0.quality;
r3 = value;
}
} else {
a0.quality;
r3 = value;
}
} else {
r3 = value;
}
if (a0.guildPremiumTier == null) {
r0 = r3;
} else {
if (r3) {
r1 = r3;
if (a0.guildPremiumTier == null) {
r0 = r3;
} else {
value = require(8249) /* metro dependency 8249: GuildBoostingUtils */;
value = value.isGuildBoostedAtLeast(a2, a0.guildPremiumTier);
r1 = value;
if (r3) {
r1 = r3;
} else {
value = require(8249) /* metro dependency 8249: GuildBoostingUtils */;
value = value.isGuildBoostedAtLeast(a2, a0.guildPremiumTier);
r1 = value;
}
r0 = r1;
}
r0 = r1;
return r0;
}
return r0;
}
global.__d(_fun82957, 10800, [1880, 3802, 8249, 2]) /* metro module 10800, dependencies: [1880, 3802, 8249, 2] */;
@@ -1,31 +1,34 @@
/* Metro module 4489; source: modules/go_live/utils/getSoundshareAnalyticsContext.tsx; dependencies: [4266, 2] */
import RunningGameStoreNative from '../../game_detection/RunningGameStore.native.tsx'; /* Metro dependency 4266 */
import * as FileImportTrackerModule from '../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
function _fun38257(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#38257, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4667:6, offset: 0x010baee9, size: 104 bytes, params: 8, frame: 17
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const runningGameStoreNative = importDefault(4266) /* metro dependency 4266: RunningGameStoreNative */;
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/go_live/utils/getSoundshareAnalyticsContext.tsx');
(FileImportTrackerModule).fileFinishedImporting('modules/go_live/utils/getSoundshareAnalyticsContext.tsx');
exports.default = getSoundshareAnalyticsContext;
function getSoundshareAnalyticsContext(a0) { // fn#38258, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4667:205, offset: 0x010baf51, size: 107 bytes, params: 2, frame: 16
var name;
var r1;
var r2;
var gameForPID;
if (a0 == null) {
return {};
}
const sourcePid = a0.sourcePid;
const value = undefined;
if (sourcePid != null) {
gameForPID = RunningGameStoreNative.getGameForPID(sourcePid);
name = gameForPID == null ? value : gameForPID.name;
r1 = gameForPID == null ? value : gameForPID.id;
r2 = name;
} else {
r1 = value;
r2 = value;
}
return {soundshare_session: a0.soundshareSession, share_game_name: r2, share_game_id: r1};
}
}
function getSoundshareAnalyticsContext(a0) { // fn#38258, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4667:205, offset: 0x010baf51, size: 107 bytes, params: 2, frame: 16
var name;
var r1;
var r2;
var gameForPID;
if (a0 == null) {
return {};
}
const sourcePid = a0.sourcePid;
const value = undefined;
if (sourcePid != null) {
gameForPID = RunningGameStoreNative.getGameForPID(sourcePid);
name = gameForPID == null ? value : gameForPID.name;
r1 = gameForPID == null ? value : gameForPID.id;
r2 = name;
} else {
r1 = value;
r2 = value;
}
return {soundshare_session: a0.soundshareSession, share_game_name: r2, share_game_id: r1};
}
global.__d(_fun38257, 4489, [4266, 2]) /* metro module 4489, dependencies: [4266, 2] */;
@@ -1,51 +1,55 @@
/* Metro module 15560; source: modules/go_live/utils/getStreamIssueReportOptions.tsx; dependencies: [4286, 1244, 2] */
import * as FileImportTrackerModule from '../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as IndexNativeModule from '../../../intl/index.native.tsx'; /* Metro dependency 1244 */
import * as ConstantsModule from '../Constants.tsx'; /* Metro dependency 4286 */
function _fun119098(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#119098, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15757:6, offset: 0x024fc543, size: 117 bytes, params: 8, frame: 18
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const env0_2 = (require(4286) /* metro dependency 4286: Constants */).StreamIssueReportReasons;
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/go_live/utils/getStreamIssueReportOptions.tsx');
(FileImportTrackerModule).fileFinishedImporting('modules/go_live/utils/getStreamIssueReportOptions.tsx');
exports.default = getStreamIssueReportOptions;
function getStreamIssueReportOptions({isEndStream}) { // fn#119099, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15757:228, offset: 0x024fc5b8, size: 895 bytes, params: 2, frame: 19
let object = {id: 'black-screen'};
const BLACK_SCREEN = StreamIssueReportReasons.BLACK_SCREEN;
object.value = BLACK_SCREEN;
const intl = (IndexNativeModule).intl;
let string = intl.string;
const t = (IndexNativeModule).t;
object.label = isEndStream ? Reflect.apply(string, intl, [t['0X5Zbq']]) : Reflect.apply(string, intl, [t.fxiRNr]);
const items2 = [object];
const BLURRY = StreamIssueReportReasons.BLURRY;
string = intl.string;
items2[1] = {id: 'blurry', value: BLURRY, label: isEndStream ? Reflect.apply(string, intl,
[t.VVPQyy]) : Reflect.apply(string, intl, [t.E8jTMN])};
const LAGGING = StreamIssueReportReasons.LAGGING;
string = intl.string;
items2[2] = {id: 'lagging', value: LAGGING, label: isEndStream ? Reflect.apply(string, intl,
[t.ObEHd4]) : Reflect.apply(string, intl, [t.VoSJEQ])};
const OUT_OF_SYNC = StreamIssueReportReasons.OUT_OF_SYNC;
string = intl.string;
items2[3] = {id: 'out-of-sync', value: OUT_OF_SYNC, label: isEndStream ? Reflect.apply(string, intl,
[t.mYmwD3]) : Reflect.apply(string, intl, [t['+NluQm']])};
const AUDIO_MISSING = StreamIssueReportReasons.AUDIO_MISSING;
string = intl.string;
items2[4] = {id: 'audio-missing', value: AUDIO_MISSING, label: isEndStream ? Reflect.apply(string, intl,
[t['Xwv41+']]) : Reflect.apply(string, intl, [t.G2egzT])};
const AUDIO_POOR = StreamIssueReportReasons.AUDIO_POOR;
string = intl.string;
items2[5] = {id: 'audio-poor', value: AUDIO_POOR, label: isEndStream ? Reflect.apply(string, intl,
[t['fHey+d']]) : Reflect.apply(string, intl, [t.aHOfIo])};
const STREAM_STOPPED = StreamIssueReportReasons.STREAM_STOPPED;
items2[6] = {id: 'stream-stopped', value: STREAM_STOPPED, label: intl.string(t.uEoqQp)};
object = {id: 'vibes-off'};
const VIBES_OFF = StreamIssueReportReasons.VIBES_OFF;
object.value = VIBES_OFF;
object.label = intl.string(t['++JLL0']);
items2[7] = object;
const OTHER = StreamIssueReportReasons.OTHER;
items2[8] = {id: 'other', value: OTHER, label: intl.string(t.emlT91)};
return items2;
}
}
function getStreamIssueReportOptions({isEndStream}) { // fn#119099, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15757:228, offset: 0x024fc5b8, size: 895 bytes, params: 2, frame: 19
let object2 = {id: 'black-screen'};
const BLACK_SCREEN = StreamIssueReportReasons.BLACK_SCREEN;
object2.value = BLACK_SCREEN;
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
let string = intl.string;
const t = (require(1244) /* metro dependency 1244: indexNative */).t;
object2.label = isEndStream ? Reflect.apply(string, intl, [t['0X5Zbq']]) : Reflect.apply(string, intl, [t.fxiRNr]);
const items2 = [object2];
const BLURRY = StreamIssueReportReasons.BLURRY;
string = intl.string;
items2[1] = {id: 'blurry', value: BLURRY, label: isEndStream ? Reflect.apply(string, intl,
[t.VVPQyy]) : Reflect.apply(string, intl, [t.E8jTMN])};
const LAGGING = StreamIssueReportReasons.LAGGING;
string = intl.string;
items2[2] = {id: 'lagging', value: LAGGING, label: isEndStream ? Reflect.apply(string, intl,
[t.ObEHd4]) : Reflect.apply(string, intl, [t.VoSJEQ])};
const OUT_OF_SYNC = StreamIssueReportReasons.OUT_OF_SYNC;
string = intl.string;
items2[3] = {id: 'out-of-sync', value: OUT_OF_SYNC, label: isEndStream ? Reflect.apply(string, intl,
[t.mYmwD3]) : Reflect.apply(string, intl, [t['+NluQm']])};
const AUDIO_MISSING = StreamIssueReportReasons.AUDIO_MISSING;
string = intl.string;
items2[4] = {id: 'audio-missing', value: AUDIO_MISSING, label: isEndStream ? Reflect.apply(string, intl,
[t['Xwv41+']]) : Reflect.apply(string, intl, [t.G2egzT])};
const AUDIO_POOR = StreamIssueReportReasons.AUDIO_POOR;
string = intl.string;
items2[5] = {id: 'audio-poor', value: AUDIO_POOR, label: isEndStream ? Reflect.apply(string, intl,
[t['fHey+d']]) : Reflect.apply(string, intl, [t.aHOfIo])};
const STREAM_STOPPED = StreamIssueReportReasons.STREAM_STOPPED;
items2[6] = {id: 'stream-stopped', value: STREAM_STOPPED, label: intl.string(t.uEoqQp)};
object2 = {id: 'vibes-off'};
const VIBES_OFF = StreamIssueReportReasons.VIBES_OFF;
object2.value = VIBES_OFF;
object2.label = intl.string(t['++JLL0']);
items2[7] = object2;
const OTHER = StreamIssueReportReasons.OTHER;
items2[8] = {id: 'other', value: OTHER, label: intl.string(t.emlT91)};
return items2;
}
global.__d(_fun119098, 15560, [4286, 1244, 2]) /* metro module 15560, dependencies: [4286, 1244, 2] */;
@@ -1,4 +1,8 @@
/* Metro module 10796; source: modules/go_live/utils/getStreamSettingsForPreset.tsx; dependencies: [4282, 10797, 10798, 2] */
import GoLiveVideoPresetResolutionExperiment from '../GoLiveVideoPresetResolutionExperiment.tsx'; /* Metro dependency 10797 */
import * as FileImportTrackerModule from '../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as StreamSettingsConstantsModule from '../StreamSettingsConstants.tsx'; /* Metro dependency 4282 */
function _fun82938(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#82938, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10982:6, offset: 0x01f073f3, size: 211 bytes, params: 8, frame: 20
const _arrayLikeToArray_82941 = function(a0, a1) {
var r0;
@@ -43,174 +47,176 @@ function _fun82938(global, require, importDefault, importAll, module, exports, d
}
return value;
};
const closure = getApplicationStreamPresetValues;
const closure2 = getStreamSettingsForPreset;
const getApplicationStreamPresetValues2 = getApplicationStreamPresetValues;
const getStreamSettingsForPreset2 = getStreamSettingsForPreset;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const streamSettingsConstantsModule = require(4282) /* metro dependency 4282: StreamSettingsConstants */;
const env0_2 = streamSettingsConstantsModule.ApplicationStreamFPS;
const env0_3 = streamSettingsConstantsModule.ApplicationStreamPresets;
const env0_4 = streamSettingsConstantsModule.ApplicationStreamResolutions;
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/go_live/utils/getStreamSettingsForPreset.tsx');
exports.default = closure2;
exports.getApplicationStreamPresetValues = closure;
(FileImportTrackerModule).fileFinishedImporting('modules/go_live/utils/getStreamSettingsForPreset.tsx');
exports.default = getStreamSettingsForPreset2;
exports.getApplicationStreamPresetValues = getApplicationStreamPresetValues2;
exports.getMaxSettingsForPreset = getMaxSettingsForPreset;
exports.canStreamWithPreset = canStreamWithPreset;
}
function _createForOfIteratorHelperLoose_82939(a0, a1) { // fn#82939, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10982:198, offset: 0x01f074c6, size: 372 bytes, params: 3, frame: 20
var r6;
var r9;
var r5;
var value3;
var regexp;
const env0_0 = a0;
const Symbol = global.Symbol;
let value = typeof Symbol !== 'undefined';
let r1 = value && a0[global.Symbol.iterator];
r1 = !r1 ? a0['@@iterator'] : r1;
if (r1) {
value = r1.call(a0);
return value.next.bind(value);
}
const Array = global.Array;
if (Array.isArray(a0)) {
function _createForOfIteratorHelperLoose_82939(a0, a1) { // fn#82939, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10982:198, offset: 0x01f074c6, size: 372 bytes, params: 3, frame: 20
var r6;
var r9;
var r5;
var value3;
var regexp;
const env0_0 = a0;
const Symbol = global.Symbol;
let value = typeof Symbol !== 'undefined';
let r1 = value && a0[global.Symbol.iterator];
r1 = !r1 ? a0['@@iterator'] : r1;
if (r1) {
value = r1.call(a0);
return value.next.bind(value);
}
return _fun82940;
}
value = undefined;
if (a0) {
if (typeof a0 === 'string') {
value = _arrayLikeToArray_82941(a0, value);
r5 = value;
} else {
value3 = ({}).toString.call(a0).slice(8, -1);
r6 = value3 === 'Object' && a0.constructor;
r9 = r6 ? a0.constructor.name : value3;
if (r9 === 'Map') {
r6 = global.Array.from(a0);
} else if (r9 === 'Set') {
r6 = global.Array.from(a0);
} else if (r9 === 'Arguments') {
const Array = global.Array;
if (Array.isArray(a0)) {
if (r1) {
}
return _fun82940;
}
value = undefined;
if (a0) {
if (typeof a0 === 'string') {
value = _arrayLikeToArray_82941(a0, value);
r6 = value;
r5 = value;
} else {
regexp = RegExp('^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$', '');
if (regexp.test(r9)) {
value3 = ({}).toString.call(a0).slice(8, -1);
r6 = value3 === 'Object' && a0.constructor;
r9 = r6 ? a0.constructor.name : value3;
if (r9 === 'Map') {
r6 = global.Array.from(a0);
} else if (r9 === 'Set') {
r6 = global.Array.from(a0);
} else if (r9 === 'Arguments') {
value = _arrayLikeToArray_82941(a0, value);
r6 = value;
} else {
r6 = value;
regexp = RegExp('^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$', '');
if (regexp.test(r9)) {
value = _arrayLikeToArray_82941(a0, value);
r6 = value;
} else {
r6 = value;
}
}
r5 = r6;
}
r5 = r6;
} else {
r5 = value;
}
} else {
r5 = value;
}
if (r5) {
if (r5) {
if (r5) {
}
return _fun82940;
}
return _fun82940;
}
const TypeError = global.TypeError;
throw new TypeError('Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.');
}
function getApplicationStreamPresetValues() { // fn#82942, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10982:1108, offset: 0x01f0763a, size: 505 bytes, params: 1, frame: 15
var object2;
const defaultImport = importDefault(10797) /* metro dependency 10797: GoLiveVideoPresetResolutionExperiment */;
const getConfig = defaultImport.getConfig;
const videoPresetResolutionMax = Reflect.apply(getConfig, defaultImport,
[{location: 'getApplicationStreamPresetValues'}]).videoPresetResolutionMax;
object2 = {};
const PRESET_DOCUMENTS = ApplicationStreamPresets.PRESET_DOCUMENTS;
let RESOLUTION_SOURCE = ApplicationStreamResolutions.RESOLUTION_SOURCE;
const FPS_15 = ApplicationStreamFPS.FPS_15;
const items3 = [{resolution: RESOLUTION_SOURCE, fps: FPS_15}];
RESOLUTION_SOURCE = ApplicationStreamResolutions.RESOLUTION_SOURCE;
const FPS_5 = ApplicationStreamFPS.FPS_5;
items3[1] = {resolution: RESOLUTION_SOURCE, fps: FPS_5};
object2[PRESET_DOCUMENTS] = items3;
const PRESET_VIDEO = ApplicationStreamPresets.PRESET_VIDEO;
let FPS_60 = ApplicationStreamFPS.FPS_60;
const items2 = [{resolution: videoPresetResolutionMax, fps: FPS_60}];
let RESOLUTION_1080 = ApplicationStreamResolutions.RESOLUTION_1080;
FPS_60 = ApplicationStreamFPS.FPS_60;
items2[1] = {resolution: RESOLUTION_1080, fps: FPS_60};
let RESOLUTION_720 = ApplicationStreamResolutions.RESOLUTION_720;
FPS_60 = ApplicationStreamFPS.FPS_60;
items2[2] = {resolution: RESOLUTION_720, fps: FPS_60};
RESOLUTION_720 = ApplicationStreamResolutions.RESOLUTION_720;
let FPS_30 = ApplicationStreamFPS.FPS_30;
items2[3] = {resolution: RESOLUTION_720, fps: FPS_30};
object2[PRESET_VIDEO] = items2;
const PRESET_AUTO = ApplicationStreamPresets.PRESET_AUTO;
object2[PRESET_AUTO] = [];
const PRESET_CUSTOM = ApplicationStreamPresets.PRESET_CUSTOM;
object2[PRESET_CUSTOM] = [];
const PRESET_MOBILE_DEFAULT = ApplicationStreamPresets.PRESET_MOBILE_DEFAULT;
RESOLUTION_720 = ApplicationStreamResolutions.RESOLUTION_720;
FPS_30 = ApplicationStreamFPS.FPS_30;
object2[PRESET_MOBILE_DEFAULT] = [{resolution: RESOLUTION_720, fps: FPS_30}];
const PRESET_MOBILE_PERFORMANCE = ApplicationStreamPresets.PRESET_MOBILE_PERFORMANCE;
const RESOLUTION_480 = ApplicationStreamResolutions.RESOLUTION_480;
FPS_30 = ApplicationStreamFPS.FPS_30;
object2[PRESET_MOBILE_PERFORMANCE] = [{resolution: RESOLUTION_480, fps: FPS_30}];
const PRESET_MOBILE_HIGH_QUALITY = ApplicationStreamPresets.PRESET_MOBILE_HIGH_QUALITY;
RESOLUTION_1080 = ApplicationStreamResolutions.RESOLUTION_1080;
FPS_60 = ApplicationStreamFPS.FPS_60;
object2[PRESET_MOBILE_HIGH_QUALITY] = [{resolution: RESOLUTION_1080, fps: FPS_60}];
return object2;
}
function getStreamSettingsForPreset(a0, a1, a2) { // fn#82943, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10982:1810, offset: 0x01f07833, size: 161 bytes, params: 4, frame: 25
var value4;
var defaultImport;
var resolution;
var fps;
var value5;
const property = getApplicationStreamPresetValues()[a0];
if (property == null) {
return null;
}
const value2 = _createForOfIteratorHelperLoose_82939(property);
const value3 = value2();
let done = value3.done;
if (done) {
return null;
}
let r3 = value3;
loopExit2: while (true) {
value4 = r3.value;
defaultImport = importDefault(10798) /* metro dependency 10798: canStreamWithSettings */;
resolution = value4.resolution;
fps = value4.fps;
if (defaultImport(a0, resolution, fps, a1, a2)) {
break loopExit2;
const TypeError = global.TypeError;
throw new TypeError('Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.');
function _fun82940() { // fn#82940, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10982:769, offset: 0x00c39d73, size: 69 bytes, params: 1, frame: 5
return env0_1 >= env0_0.length ? {done: true} : {done: false,
value: env0_0[typeof env0_1 === 'bigint' ? env0_1 : +env0_1]};
}
value5 = value2();
done = value5.done;
}
function getApplicationStreamPresetValues() { // fn#82942, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10982:1108, offset: 0x01f0763a, size: 505 bytes, params: 1, frame: 15
const defaultImport = GoLiveVideoPresetResolutionExperiment;
const getConfig = defaultImport.getConfig;
const videoPresetResolutionMax = Reflect.apply(getConfig, defaultImport,
[{location: 'getApplicationStreamPresetValues'}]).videoPresetResolutionMax;
object = {};
const PRESET_DOCUMENTS = ApplicationStreamPresets.PRESET_DOCUMENTS;
let RESOLUTION_SOURCE = ApplicationStreamResolutions.RESOLUTION_SOURCE;
const FPS_15 = ApplicationStreamFPS.FPS_15;
const items3 = [{resolution: RESOLUTION_SOURCE, fps: FPS_15}];
RESOLUTION_SOURCE = ApplicationStreamResolutions.RESOLUTION_SOURCE;
const FPS_5 = ApplicationStreamFPS.FPS_5;
items3[1] = {resolution: RESOLUTION_SOURCE, fps: FPS_5};
object[PRESET_DOCUMENTS] = items3;
const PRESET_VIDEO = ApplicationStreamPresets.PRESET_VIDEO;
let FPS_60 = ApplicationStreamFPS.FPS_60;
const items2 = [{resolution: videoPresetResolutionMax, fps: FPS_60}];
let RESOLUTION_1080 = ApplicationStreamResolutions.RESOLUTION_1080;
FPS_60 = ApplicationStreamFPS.FPS_60;
items2[1] = {resolution: RESOLUTION_1080, fps: FPS_60};
let RESOLUTION_720 = ApplicationStreamResolutions.RESOLUTION_720;
FPS_60 = ApplicationStreamFPS.FPS_60;
items2[2] = {resolution: RESOLUTION_720, fps: FPS_60};
RESOLUTION_720 = ApplicationStreamResolutions.RESOLUTION_720;
let FPS_30 = ApplicationStreamFPS.FPS_30;
items2[3] = {resolution: RESOLUTION_720, fps: FPS_30};
object[PRESET_VIDEO] = items2;
const PRESET_AUTO = ApplicationStreamPresets.PRESET_AUTO;
object[PRESET_AUTO] = [];
const PRESET_CUSTOM = ApplicationStreamPresets.PRESET_CUSTOM;
object[PRESET_CUSTOM] = [];
const PRESET_MOBILE_DEFAULT = ApplicationStreamPresets.PRESET_MOBILE_DEFAULT;
RESOLUTION_720 = ApplicationStreamResolutions.RESOLUTION_720;
FPS_30 = ApplicationStreamFPS.FPS_30;
object[PRESET_MOBILE_DEFAULT] = [{resolution: RESOLUTION_720, fps: FPS_30}];
const PRESET_MOBILE_PERFORMANCE = ApplicationStreamPresets.PRESET_MOBILE_PERFORMANCE;
const RESOLUTION_480 = ApplicationStreamResolutions.RESOLUTION_480;
FPS_30 = ApplicationStreamFPS.FPS_30;
object[PRESET_MOBILE_PERFORMANCE] = [{resolution: RESOLUTION_480, fps: FPS_30}];
const PRESET_MOBILE_HIGH_QUALITY = ApplicationStreamPresets.PRESET_MOBILE_HIGH_QUALITY;
RESOLUTION_1080 = ApplicationStreamResolutions.RESOLUTION_1080;
FPS_60 = ApplicationStreamFPS.FPS_60;
object[PRESET_MOBILE_HIGH_QUALITY] = [{resolution: RESOLUTION_1080, fps: FPS_60}];
return object;
}
function getStreamSettingsForPreset(a0, a1, a2) { // fn#82943, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10982:1810, offset: 0x01f07833, size: 161 bytes, params: 4, frame: 25
var value4;
var defaultImport;
var resolution;
var fps;
var value5;
const property = getApplicationStreamPresetValues()[a0];
if (property == null) {
return null;
}
const value2 = _createForOfIteratorHelperLoose_82939(property);
const value3 = value2();
let done = value3.done;
if (done) {
return null;
}
r3 = value5;
continue;
let r3 = value3;
loopExit2: while (true) {
value4 = r3.value;
defaultImport = importDefault(10798) /* metro dependency 10798: canStreamWithSettings */;
resolution = value4.resolution;
fps = value4.fps;
if (defaultImport(a0, resolution, fps, a1, a2)) {
break loopExit2;
}
value5 = value2();
done = value5.done;
if (done) {
return null;
}
r3 = value5;
continue;
}
return [value4.resolution, value4.fps];
}
return [value4.resolution, value4.fps];
}
function getMaxSettingsForPreset(a0) { // fn#82944, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10982:2294, offset: 0x01f078d4, size: 49 bytes, params: 2, frame: 11
const getApplicationStreamPresetValuesBinding = getApplicationStreamPresetValues;
const value = undefined;
const property = getApplicationStreamPresetValuesBinding()[a0];
const value3 = null;
const r1 = value3 == property ? value : property[0];
return value3 != r1 ? r1 : value3;
}
function getMaxSettingsForPreset(a0) { // fn#82944, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10982:2294, offset: 0x01f078d4, size: 49 bytes, params: 2, frame: 11
const getApplicationStreamPresetValuesBinding = getApplicationStreamPresetValues;
const value = undefined;
const property = getApplicationStreamPresetValuesBinding()[a0];
const value3 = null;
const r1 = value3 == property ? value : property[0];
return value3 != r1 ? r1 : value3;
}
function canStreamWithPreset(a0, a1, a2) { // fn#82945, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10982:2446, offset: 0x01f07905, size: 33 bytes, params: 4, frame: 15
return getStreamSettingsForPreset(a0, a1, a2) != null;
}
function canStreamWithPreset(a0, a1, a2) { // fn#82945, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10982:2446, offset: 0x01f07905, size: 33 bytes, params: 4, frame: 15
return getStreamSettingsForPreset(a0, a1, a2) != null;
}
global.__d(_fun82938, 10796, [4282, 10797, 10798,
2]) /* metro module 10796, dependencies: [4282, 10797, 10798, 2] */;
@@ -1,10 +1,13 @@
/* Metro module 4490; source: modules/go_live/utils/getStreamSourceMetadata.native.tsx; dependencies: [2] */
import * as FileImportTrackerModule from '../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
function _fun38259(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#38259, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4668:6, offset: 0x010bafbc, size: 85 bytes, params: 8, frame: 15
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/go_live/utils/getStreamSourceMetadata.native.tsx');
(FileImportTrackerModule).fileFinishedImporting('modules/go_live/utils/getStreamSourceMetadata.native.tsx');
exports.default = function() {
return {};
};
}
global.__d(_fun38259, 4490, [2]) /* metro module 4490, dependencies: [2] */;
@@ -1,32 +1,39 @@
/* Metro module 4494; source: modules/go_live/utils/getTitleFromPickedStreamContent.tsx; dependencies: [1244, 2] */
import * as FileImportTrackerModule from '../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
function _fun38347(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#38347, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4672:6, offset: 0x010bd86d, size: 94 bytes, params: 8, frame: 18
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/go_live/utils/getTitleFromPickedStreamContent.tsx');
(FileImportTrackerModule).fileFinishedImporting('modules/go_live/utils/getTitleFromPickedStreamContent.tsx');
exports.default = getTitleFromPickedStreamContent;
}
function getTitleFromPickedStreamContent(a0) { // fn#38348, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4672:193, offset: 0x010bd8cb, size: 201 bytes, params: 2, frame: 17
var r0;
var value;
var intl;
if (a0.windows.length > 0) {
value = a0.windows.map(function(a0) {
return a0.title;
});
value = value.join(', ');
r0 = value;
} else if (a0.applications.length > 0) {
value = a0.applications.map(_fun38350);
value = value.join(', ');
r0 = value;
} else if (a0.displays.length > 0) {
intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
r0 = intl.string((require(1244) /* metro dependency 1244: indexNative */).t.R4wpLN);
} else {
r0 = null;
function getTitleFromPickedStreamContent(a0) { // fn#38348, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4672:193, offset: 0x010bd8cb, size: 201 bytes, params: 2, frame: 17
var r0;
var value;
var intl;
if (a0.windows.length > 0) {
value = a0.windows.map(function(a0) {
return a0.title;
});
value = value.join(', ');
r0 = value;
} else if (a0.applications.length > 0) {
value = a0.applications.map(_fun38350);
value = value.join(', ');
r0 = value;
} else if (a0.displays.length > 0) {
intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
r0 = intl.string((require(1244) /* metro dependency 1244: indexNative */).t.R4wpLN);
} else {
r0 = null;
}
return r0;
}
return r0;
}
function _fun38350(a0) { // fn#38350, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4672:346, offset: 0x00d68953, size: 10 bytes, params: 2, frame: 1
return a0.name;
}
global.__d(_fun38347, 4494, [1244, 2]) /* metro module 4494, dependencies: [1244, 2] */;
@@ -1,28 +1,32 @@
/* Metro module 15559; source: modules/go_live/utils/trackStreamProblem.tsx; dependencies: [661, 683, 2] */
import AnalyticsUtils from '../../../utils/AnalyticsUtils.tsx'; /* Metro dependency 683 */
import * as FileImportTrackerModule from '../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ConstantsModule from '../../../Constants.tsx'; /* Metro dependency 661 */
function _fun119096(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#119096, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15756:6, offset: 0x024fc3ed, size: 120 bytes, params: 8, frame: 18
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const env0_2 = (require(661) /* metro dependency 661: Constants */).AnalyticEvents;
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/go_live/utils/trackStreamProblem.tsx');
(FileImportTrackerModule).fileFinishedImporting('modules/go_live/utils/trackStreamProblem.tsx');
exports.default = trackStreamProblem;
function trackStreamProblem({problem, stream, feedback, streamApplication, analyticsData, location, rating, category, variant}) { // fn#119097, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15756:209, offset: 0x024fc465, size: 222 bytes, params: 2, frame: 23
rating = rating === undefined ? null : rating;
const defaultImport = AnalyticsUtils;
const track = defaultImport.track;
const STREAM_REPORT_PROBLEM = AnalyticEvents.STREAM_REPORT_PROBLEM;
const object = {reason: problem, category: category, reason_variant: variant};
object.streamer_user_id = stream.ownerId;
object.stream_channel_id = stream.channelId;
object.guild_id = stream.guildId;
const value = null;
object.application_id = value != streamApplication ? streamApplication.id : value;
object.application_name = value != streamApplication ? streamApplication.name : value;
object.location = location;
object.rating = rating;
object.feedback = feedback;
copyDataProperties(object, analyticsData, problem);
Reflect.apply(track, defaultImport, [STREAM_REPORT_PROBLEM, object]);
}
}
function trackStreamProblem({problem, stream, feedback, streamApplication, analyticsData, location, rating, category, variant}) { // fn#119097, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15756:209, offset: 0x024fc465, size: 222 bytes, params: 2, frame: 23
rating = rating === undefined ? null : rating;
const defaultImport = importDefault(683) /* metro dependency 683: AnalyticsUtils */;
const track = defaultImport.track;
const STREAM_REPORT_PROBLEM = AnalyticEvents.STREAM_REPORT_PROBLEM;
const object2 = {reason: problem, category: category, reason_variant: variant};
object2.streamer_user_id = stream.ownerId;
object2.stream_channel_id = stream.channelId;
object2.guild_id = stream.guildId;
const value = null;
object2.application_id = value != streamApplication ? streamApplication.id : value;
object2.application_name = value != streamApplication ? streamApplication.name : value;
object2.location = location;
object2.rating = rating;
object2.feedback = feedback;
copyDataProperties(object2, analyticsData, problem);
Reflect.apply(track, defaultImport, [STREAM_REPORT_PROBLEM, object2]);
}
global.__d(_fun119096, 15559, [661, 683, 2]) /* metro module 15559, dependencies: [661, 683, 2] */;
@@ -1,19 +1,23 @@
/* Metro module 8915; source: modules/go_live/utils/transitionToStream.native.tsx; dependencies: [1379, 4080, 5080, 7709, 2] */
import ChannelStore from '../../../stores/ChannelStore.tsx'; /* Metro dependency 1379 */
import * as FileImportTrackerModule from '../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
function _fun69580(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#69580, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9100:6, offset: 0x01c77451, size: 118 bytes, params: 8, frame: 19
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const channelStore = importDefault(1379) /* metro dependency 1379: ChannelStore */;
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/go_live/utils/transitionToStream.native.tsx');
(FileImportTrackerModule).fileFinishedImporting('modules/go_live/utils/transitionToStream.native.tsx');
exports.default = transitionToStream;
}
function transitionToStream({channelId}) { // fn#69581, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9100:201, offset: 0x01c774c7, size: 123 bytes, params: 2, frame: 16
const channel = ChannelStore.getChannel(channelId);
if (channel != null) {
(importDefault(4080) /* metro dependency 4080: ActionSheetActionCreators */).hideActionSheet();
(importDefault(5080) /* metro dependency 5080: ModalActionCreators */).popAll();
(require(7709) /* metro dependency 7709: PrivateChannelCallUtils */).openGuildVoiceModal(channel, 'Go Live');
function transitionToStream({channelId}) { // fn#69581, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9100:201, offset: 0x01c774c7, size: 123 bytes, params: 2, frame: 16
const channel = ChannelStore.getChannel(channelId);
if (channel != null) {
(importDefault(4080) /* metro dependency 4080: ActionSheetActionCreators */).hideActionSheet();
(importDefault(5080) /* metro dependency 5080: ModalActionCreators */).popAll();
(require(7709) /* metro dependency 7709: PrivateChannelCallUtils */).openGuildVoiceModal(channel, 'Go Live');
}
}
}
global.__d(_fun69580, 8915, [1379, 4080, 5080, 7709,
2]) /* metro module 8915, dependencies: [1379, 4080, 5080, 7709, 2] */;
@@ -1,19 +1,22 @@
/* Metro module 4493; source: modules/go_live/utils/windowSourceMatches.tsx; dependencies: [57, 2] */
import Module00057 from '../../../by-id/module-00057.js'; /* Metro dependency 57 */
import * as FileImportTrackerModule from '../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
function _fun38345(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#38345, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4671:6, offset: 0x010bd7b7, size: 104 bytes, params: 8, frame: 17
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const env0_0 = importDefault(57) /* metro dependency 57 */;
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/go_live/utils/windowSourceMatches.tsx');
(FileImportTrackerModule).fileFinishedImporting('modules/go_live/utils/windowSourceMatches.tsx');
exports.default = windowSourceMatches;
}
function windowSourceMatches(a0, a1) { // fn#38346, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4671:195, offset: 0x010bd81f, size: 78 bytes, params: 3, frame: 14
if (a1 == null) {
return false;
function windowSourceMatches(a0, a1) { // fn#38346, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4671:195, offset: 0x010bd81f, size: 78 bytes, params: 3, frame: 14
if (a1 == null) {
return false;
}
let value = a0.split(':');
value = Module00057(value, 2);
value = value[0] === 'window';
return value && value[1] === a1;
}
let value = a0.split(':');
value = env0_0(value, 2);
value = value[0] === 'window';
return value && value[1] === a1;
}
global.__d(_fun38345, 4493, [57, 2]) /* metro module 4493, dependencies: [57, 2] */;
@@ -1,289 +1,296 @@
/* Metro module 2064; source: modules/go_live/web/modal/GoLiveModal.messages.js; dependencies: [1247, 2065, 2066, 2067, 2068, 2069, 2070, 2071, 2072, 2073, 2074, 2075, 2076, 2077, 2078, 2079, 2080, 2081, 2082, 2083, 2084, 2085, 2086, 2087, 2088, 2089, 2090, 2091, 2092, 2093, 2094, 2095, 1282, 2] */
import * as FileImportTrackerModule from '../../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as AssetJsonUtilsModule from '../../../asset_json/native/AssetJsonUtils.tsx'; /* Metro dependency 1247 */
import * as Module01282Module from '../../../../by-id/module-01282.js'; /* Metro dependency 1282 */
function _fun22164(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#22164, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2191:6, offset: 0x00efe97a, size: 453 bytes, params: 8, frame: 19
var object2;
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
object2 = {bg: bg_22165, cs: cs_22167, da: da_22169, de: de_22171, el: el_22173};
object2['en-GB'] = _fun22175;
object2['es-419'] = _fun22177;
object2['es-ES'] = _fun22179;
object2.fi = fi_22181;
object2.fr = fr_22183;
object2.hi = hi_22185;
object2.hr = hr_22187;
object2.hu = hu_22189;
object2.it = it_22191;
object2.ja = ja_22193;
object2.ko = ko_22195;
object2.lt = lt_22197;
object2.nl = nl_22199;
object2.no = no_22201;
object2.pl = pl_22203;
object2['pt-BR'] = _fun22205;
object2.ro = ro_22207;
object2.ru = ru_22209;
object2['sv-SE'] = _fun22211;
object2.th = th_22213;
object2.tr = tr_22215;
object2.uk = uk_22217;
object2.vi = vi_22219;
object2['zh-CN'] = _fun22221;
object2['zh-TW'] = _fun22223;
object2['en-US'] = _fun22225;
let value = require(1282) /* metro dependency 1282 */;
value = value.createLoader(object2, 'en-US');
const messagesProxy = (require(1282) /* metro dependency 1282 */).makeMessagesProxy(value);
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/go_live/web/modal/GoLiveModal.messages.js');
object = {bg: bg_22165, cs: cs_22167, da: da_22169, de: de_22171, el: el_22173};
object['en-GB'] = _fun22175;
object['es-419'] = _fun22177;
object['es-ES'] = _fun22179;
object.fi = fi_22181;
object.fr = fr_22183;
object.hi = hi_22185;
object.hr = hr_22187;
object.hu = hu_22189;
object.it = it_22191;
object.ja = ja_22193;
object.ko = ko_22195;
object.lt = lt_22197;
object.nl = nl_22199;
object.no = no_22201;
object.pl = pl_22203;
object['pt-BR'] = _fun22205;
object.ro = ro_22207;
object.ru = ru_22209;
object['sv-SE'] = _fun22211;
object.th = th_22213;
object.tr = tr_22215;
object.uk = uk_22217;
object.vi = vi_22219;
object['zh-CN'] = _fun22221;
object['zh-TW'] = _fun22223;
object['en-US'] = _fun22225;
let value = Module01282Module;
value = value.createLoader(object, 'en-US');
const messagesProxy = (Module01282Module).makeMessagesProxy(value);
(FileImportTrackerModule).fileFinishedImporting('modules/go_live/web/modal/GoLiveModal.messages.js');
exports.default = messagesProxy;
exports.messagesLoader = value;
function bg_22165() { // fn#22165, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2191:102, offset: 0x00efeb3f, size: 65 bytes, params: 1, frame: 14
let value = AssetJsonUtilsModule;
value = value.loadJsonAsset(require(2065) /* metro dependency 2065 */);
return value.then(function(a0) {
return {default: a0};
});
}
function cs_22167() { // fn#22167, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2191:165, offset: 0x00efeb80, size: 65 bytes, params: 1, frame: 14
let value = AssetJsonUtilsModule;
value = value.loadJsonAsset(require(2066) /* metro dependency 2066 */);
return value.then(function(a0) {
return {default: a0};
});
}
function da_22169() { // fn#22169, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2191:228, offset: 0x00efebc1, size: 65 bytes, params: 1, frame: 14
let value = AssetJsonUtilsModule;
value = value.loadJsonAsset(require(2067) /* metro dependency 2067 */);
return value.then(function(a0) {
return {default: a0};
});
}
function de_22171() { // fn#22171, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2191:291, offset: 0x00efec02, size: 65 bytes, params: 1, frame: 14
let value = AssetJsonUtilsModule;
value = value.loadJsonAsset(require(2068) /* metro dependency 2068 */);
return value.then(function(a0) {
return {default: a0};
});
}
function el_22173() { // fn#22173, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2191:354, offset: 0x00efec43, size: 65 bytes, params: 1, frame: 14
let value = AssetJsonUtilsModule;
value = value.loadJsonAsset(require(2069) /* metro dependency 2069 */);
return value.then(function(a0) {
return {default: a0};
});
}
function _fun22175() { // fn#22175, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2191:422, offset: 0x00efec84, size: 65 bytes, params: 1, frame: 14
let value = AssetJsonUtilsModule;
value = value.loadJsonAsset(require(2070) /* metro dependency 2070 */);
return value.then(function(a0) {
return {default: a0};
});
}
function _fun22177() { // fn#22177, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2191:491, offset: 0x00efecc5, size: 65 bytes, params: 1, frame: 14
let value = AssetJsonUtilsModule;
value = value.loadJsonAsset(require(2071) /* metro dependency 2071 */);
return value.then(function(a0) {
return {default: a0};
});
}
function _fun22179() { // fn#22179, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2191:559, offset: 0x00efed06, size: 65 bytes, params: 1, frame: 14
let value = AssetJsonUtilsModule;
value = value.loadJsonAsset(require(2072) /* metro dependency 2072 */);
return value.then(function(a0) {
return {default: a0};
});
}
function fi_22181() { // fn#22181, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2191:622, offset: 0x00efed47, size: 65 bytes, params: 1, frame: 14
let value = AssetJsonUtilsModule;
value = value.loadJsonAsset(require(2073) /* metro dependency 2073 */);
return value.then(function(a0) {
return {default: a0};
});
}
function fr_22183() { // fn#22183, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2191:685, offset: 0x00efed88, size: 65 bytes, params: 1, frame: 14
let value = AssetJsonUtilsModule;
value = value.loadJsonAsset(require(2074) /* metro dependency 2074 */);
return value.then(function(a0) {
return {default: a0};
});
}
function hi_22185() { // fn#22185, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2191:749, offset: 0x00efedc9, size: 65 bytes, params: 1, frame: 14
let value = AssetJsonUtilsModule;
value = value.loadJsonAsset(require(2075) /* metro dependency 2075 */);
return value.then(function(a0) {
return {default: a0};
});
}
function hr_22187() { // fn#22187, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2191:813, offset: 0x00efee0a, size: 65 bytes, params: 1, frame: 14
let value = AssetJsonUtilsModule;
value = value.loadJsonAsset(require(2076) /* metro dependency 2076 */);
return value.then(function(a0) {
return {default: a0};
});
}
function hu_22189() { // fn#22189, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2191:877, offset: 0x00efee4b, size: 65 bytes, params: 1, frame: 14
let value = AssetJsonUtilsModule;
value = value.loadJsonAsset(require(2077) /* metro dependency 2077 */);
return value.then(function(a0) {
return {default: a0};
});
}
function it_22191() { // fn#22191, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2191:941, offset: 0x00efee8c, size: 65 bytes, params: 1, frame: 14
let value = AssetJsonUtilsModule;
value = value.loadJsonAsset(require(2078) /* metro dependency 2078 */);
return value.then(function(a0) {
return {default: a0};
});
}
function ja_22193() { // fn#22193, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2191:1005, offset: 0x00efeecd, size: 65 bytes, params: 1, frame: 14
let value = AssetJsonUtilsModule;
value = value.loadJsonAsset(require(2079) /* metro dependency 2079 */);
return value.then(function(a0) {
return {default: a0};
});
}
function ko_22195() { // fn#22195, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2191:1069, offset: 0x00efef0e, size: 65 bytes, params: 1, frame: 14
let value = AssetJsonUtilsModule;
value = value.loadJsonAsset(require(2080) /* metro dependency 2080 */);
return value.then(function(a0) {
return {default: a0};
});
}
function lt_22197() { // fn#22197, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2191:1133, offset: 0x00efef4f, size: 65 bytes, params: 1, frame: 14
let value = AssetJsonUtilsModule;
value = value.loadJsonAsset(require(2081) /* metro dependency 2081 */);
return value.then(function(a0) {
return {default: a0};
});
}
function nl_22199() { // fn#22199, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2191:1197, offset: 0x00efef90, size: 65 bytes, params: 1, frame: 14
let value = AssetJsonUtilsModule;
value = value.loadJsonAsset(require(2082) /* metro dependency 2082 */);
return value.then(function(a0) {
return {default: a0};
});
}
function no_22201() { // fn#22201, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2191:1261, offset: 0x00efefd1, size: 65 bytes, params: 1, frame: 14
let value = AssetJsonUtilsModule;
value = value.loadJsonAsset(require(2083) /* metro dependency 2083 */);
return value.then(function(a0) {
return {default: a0};
});
}
function pl_22203() { // fn#22203, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2191:1325, offset: 0x00eff012, size: 65 bytes, params: 1, frame: 14
let value = AssetJsonUtilsModule;
value = value.loadJsonAsset(require(2084) /* metro dependency 2084 */);
return value.then(function(a0) {
return {default: a0};
});
}
function _fun22205() { // fn#22205, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2191:1394, offset: 0x00eff053, size: 65 bytes, params: 1, frame: 14
let value = AssetJsonUtilsModule;
value = value.loadJsonAsset(require(2085) /* metro dependency 2085 */);
return value.then(function(a0) {
return {default: a0};
});
}
function ro_22207() { // fn#22207, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2191:1458, offset: 0x00eff094, size: 65 bytes, params: 1, frame: 14
let value = AssetJsonUtilsModule;
value = value.loadJsonAsset(require(2086) /* metro dependency 2086 */);
return value.then(function(a0) {
return {default: a0};
});
}
function ru_22209() { // fn#22209, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2191:1522, offset: 0x00eff0d5, size: 65 bytes, params: 1, frame: 14
let value = AssetJsonUtilsModule;
value = value.loadJsonAsset(require(2087) /* metro dependency 2087 */);
return value.then(function(a0) {
return {default: a0};
});
}
function _fun22211() { // fn#22211, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2191:1591, offset: 0x00eff116, size: 65 bytes, params: 1, frame: 14
let value = AssetJsonUtilsModule;
value = value.loadJsonAsset(require(2088) /* metro dependency 2088 */);
return value.then(function(a0) {
return {default: a0};
});
}
function th_22213() { // fn#22213, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2191:1655, offset: 0x00eff157, size: 65 bytes, params: 1, frame: 14
let value = AssetJsonUtilsModule;
value = value.loadJsonAsset(require(2089) /* metro dependency 2089 */);
return value.then(function(a0) {
return {default: a0};
});
}
function tr_22215() { // fn#22215, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2191:1719, offset: 0x00eff198, size: 65 bytes, params: 1, frame: 14
let value = AssetJsonUtilsModule;
value = value.loadJsonAsset(require(2090) /* metro dependency 2090 */);
return value.then(function(a0) {
return {default: a0};
});
}
function uk_22217() { // fn#22217, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2191:1783, offset: 0x00eff1d9, size: 65 bytes, params: 1, frame: 14
let value = AssetJsonUtilsModule;
value = value.loadJsonAsset(require(2091) /* metro dependency 2091 */);
return value.then(function(a0) {
return {default: a0};
});
}
function vi_22219() { // fn#22219, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2191:1847, offset: 0x00eff21a, size: 65 bytes, params: 1, frame: 14
let value = AssetJsonUtilsModule;
value = value.loadJsonAsset(require(2092) /* metro dependency 2092 */);
return value.then(function(a0) {
return {default: a0};
});
}
function _fun22221() { // fn#22221, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2191:1916, offset: 0x00eff25b, size: 65 bytes, params: 1, frame: 14
let value = AssetJsonUtilsModule;
value = value.loadJsonAsset(require(2093) /* metro dependency 2093 */);
return value.then(function(a0) {
return {default: a0};
});
}
function _fun22223() { // fn#22223, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2191:1985, offset: 0x00eff29c, size: 65 bytes, params: 1, frame: 14
let value = AssetJsonUtilsModule;
value = value.loadJsonAsset(require(2094) /* metro dependency 2094 */);
return value.then(function(a0) {
return {default: a0};
});
}
function _fun22225() { // fn#22225, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2191:2054, offset: 0x00eff2dd, size: 65 bytes, params: 1, frame: 14
let value = AssetJsonUtilsModule;
value = value.loadJsonAsset(require(2095) /* metro dependency 2095 */);
return value.then(function(a0) {
return {default: a0};
});
}
}
function bg_22165() { // fn#22165, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2191:102, offset: 0x00efeb3f, size: 65 bytes, params: 1, frame: 14
let value = require(1247) /* metro dependency 1247: AssetJsonUtils */;
value = value.loadJsonAsset(require(2065) /* metro dependency 2065 */);
return value.then(function(a0) {
return {default: a0};
});
}
function cs_22167() { // fn#22167, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2191:165, offset: 0x00efeb80, size: 65 bytes, params: 1, frame: 14
let value = require(1247) /* metro dependency 1247: AssetJsonUtils */;
value = value.loadJsonAsset(require(2066) /* metro dependency 2066 */);
return value.then(function(a0) {
return {default: a0};
});
}
function da_22169() { // fn#22169, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2191:228, offset: 0x00efebc1, size: 65 bytes, params: 1, frame: 14
let value = require(1247) /* metro dependency 1247: AssetJsonUtils */;
value = value.loadJsonAsset(require(2067) /* metro dependency 2067 */);
return value.then(function(a0) {
return {default: a0};
});
}
function de_22171() { // fn#22171, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2191:291, offset: 0x00efec02, size: 65 bytes, params: 1, frame: 14
let value = require(1247) /* metro dependency 1247: AssetJsonUtils */;
value = value.loadJsonAsset(require(2068) /* metro dependency 2068 */);
return value.then(function(a0) {
return {default: a0};
});
}
function el_22173() { // fn#22173, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2191:354, offset: 0x00efec43, size: 65 bytes, params: 1, frame: 14
let value = require(1247) /* metro dependency 1247: AssetJsonUtils */;
value = value.loadJsonAsset(require(2069) /* metro dependency 2069 */);
return value.then(function(a0) {
return {default: a0};
});
}
function _fun22175() { // fn#22175, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2191:422, offset: 0x00efec84, size: 65 bytes, params: 1, frame: 14
let value = require(1247) /* metro dependency 1247: AssetJsonUtils */;
value = value.loadJsonAsset(require(2070) /* metro dependency 2070 */);
return value.then(function(a0) {
return {default: a0};
});
}
function _fun22177() { // fn#22177, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2191:491, offset: 0x00efecc5, size: 65 bytes, params: 1, frame: 14
let value = require(1247) /* metro dependency 1247: AssetJsonUtils */;
value = value.loadJsonAsset(require(2071) /* metro dependency 2071 */);
return value.then(function(a0) {
return {default: a0};
});
}
function _fun22179() { // fn#22179, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2191:559, offset: 0x00efed06, size: 65 bytes, params: 1, frame: 14
let value = require(1247) /* metro dependency 1247: AssetJsonUtils */;
value = value.loadJsonAsset(require(2072) /* metro dependency 2072 */);
return value.then(function(a0) {
return {default: a0};
});
}
function fi_22181() { // fn#22181, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2191:622, offset: 0x00efed47, size: 65 bytes, params: 1, frame: 14
let value = require(1247) /* metro dependency 1247: AssetJsonUtils */;
value = value.loadJsonAsset(require(2073) /* metro dependency 2073 */);
return value.then(function(a0) {
return {default: a0};
});
}
function fr_22183() { // fn#22183, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2191:685, offset: 0x00efed88, size: 65 bytes, params: 1, frame: 14
let value = require(1247) /* metro dependency 1247: AssetJsonUtils */;
value = value.loadJsonAsset(require(2074) /* metro dependency 2074 */);
return value.then(function(a0) {
return {default: a0};
});
}
function hi_22185() { // fn#22185, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2191:749, offset: 0x00efedc9, size: 65 bytes, params: 1, frame: 14
let value = require(1247) /* metro dependency 1247: AssetJsonUtils */;
value = value.loadJsonAsset(require(2075) /* metro dependency 2075 */);
return value.then(function(a0) {
return {default: a0};
});
}
function hr_22187() { // fn#22187, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2191:813, offset: 0x00efee0a, size: 65 bytes, params: 1, frame: 14
let value = require(1247) /* metro dependency 1247: AssetJsonUtils */;
value = value.loadJsonAsset(require(2076) /* metro dependency 2076 */);
return value.then(function(a0) {
return {default: a0};
});
}
function hu_22189() { // fn#22189, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2191:877, offset: 0x00efee4b, size: 65 bytes, params: 1, frame: 14
let value = require(1247) /* metro dependency 1247: AssetJsonUtils */;
value = value.loadJsonAsset(require(2077) /* metro dependency 2077 */);
return value.then(function(a0) {
return {default: a0};
});
}
function it_22191() { // fn#22191, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2191:941, offset: 0x00efee8c, size: 65 bytes, params: 1, frame: 14
let value = require(1247) /* metro dependency 1247: AssetJsonUtils */;
value = value.loadJsonAsset(require(2078) /* metro dependency 2078 */);
return value.then(function(a0) {
return {default: a0};
});
}
function ja_22193() { // fn#22193, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2191:1005, offset: 0x00efeecd, size: 65 bytes, params: 1, frame: 14
let value = require(1247) /* metro dependency 1247: AssetJsonUtils */;
value = value.loadJsonAsset(require(2079) /* metro dependency 2079 */);
return value.then(function(a0) {
return {default: a0};
});
}
function ko_22195() { // fn#22195, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2191:1069, offset: 0x00efef0e, size: 65 bytes, params: 1, frame: 14
let value = require(1247) /* metro dependency 1247: AssetJsonUtils */;
value = value.loadJsonAsset(require(2080) /* metro dependency 2080 */);
return value.then(function(a0) {
return {default: a0};
});
}
function lt_22197() { // fn#22197, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2191:1133, offset: 0x00efef4f, size: 65 bytes, params: 1, frame: 14
let value = require(1247) /* metro dependency 1247: AssetJsonUtils */;
value = value.loadJsonAsset(require(2081) /* metro dependency 2081 */);
return value.then(function(a0) {
return {default: a0};
});
}
function nl_22199() { // fn#22199, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2191:1197, offset: 0x00efef90, size: 65 bytes, params: 1, frame: 14
let value = require(1247) /* metro dependency 1247: AssetJsonUtils */;
value = value.loadJsonAsset(require(2082) /* metro dependency 2082 */);
return value.then(function(a0) {
return {default: a0};
});
}
function no_22201() { // fn#22201, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2191:1261, offset: 0x00efefd1, size: 65 bytes, params: 1, frame: 14
let value = require(1247) /* metro dependency 1247: AssetJsonUtils */;
value = value.loadJsonAsset(require(2083) /* metro dependency 2083 */);
return value.then(function(a0) {
return {default: a0};
});
}
function pl_22203() { // fn#22203, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2191:1325, offset: 0x00eff012, size: 65 bytes, params: 1, frame: 14
let value = require(1247) /* metro dependency 1247: AssetJsonUtils */;
value = value.loadJsonAsset(require(2084) /* metro dependency 2084 */);
return value.then(function(a0) {
return {default: a0};
});
}
function _fun22205() { // fn#22205, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2191:1394, offset: 0x00eff053, size: 65 bytes, params: 1, frame: 14
let value = require(1247) /* metro dependency 1247: AssetJsonUtils */;
value = value.loadJsonAsset(require(2085) /* metro dependency 2085 */);
return value.then(function(a0) {
return {default: a0};
});
}
function ro_22207() { // fn#22207, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2191:1458, offset: 0x00eff094, size: 65 bytes, params: 1, frame: 14
let value = require(1247) /* metro dependency 1247: AssetJsonUtils */;
value = value.loadJsonAsset(require(2086) /* metro dependency 2086 */);
return value.then(function(a0) {
return {default: a0};
});
}
function ru_22209() { // fn#22209, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2191:1522, offset: 0x00eff0d5, size: 65 bytes, params: 1, frame: 14
let value = require(1247) /* metro dependency 1247: AssetJsonUtils */;
value = value.loadJsonAsset(require(2087) /* metro dependency 2087 */);
return value.then(function(a0) {
return {default: a0};
});
}
function _fun22211() { // fn#22211, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2191:1591, offset: 0x00eff116, size: 65 bytes, params: 1, frame: 14
let value = require(1247) /* metro dependency 1247: AssetJsonUtils */;
value = value.loadJsonAsset(require(2088) /* metro dependency 2088 */);
return value.then(function(a0) {
return {default: a0};
});
}
function th_22213() { // fn#22213, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2191:1655, offset: 0x00eff157, size: 65 bytes, params: 1, frame: 14
let value = require(1247) /* metro dependency 1247: AssetJsonUtils */;
value = value.loadJsonAsset(require(2089) /* metro dependency 2089 */);
return value.then(function(a0) {
return {default: a0};
});
}
function tr_22215() { // fn#22215, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2191:1719, offset: 0x00eff198, size: 65 bytes, params: 1, frame: 14
let value = require(1247) /* metro dependency 1247: AssetJsonUtils */;
value = value.loadJsonAsset(require(2090) /* metro dependency 2090 */);
return value.then(function(a0) {
return {default: a0};
});
}
function uk_22217() { // fn#22217, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2191:1783, offset: 0x00eff1d9, size: 65 bytes, params: 1, frame: 14
let value = require(1247) /* metro dependency 1247: AssetJsonUtils */;
value = value.loadJsonAsset(require(2091) /* metro dependency 2091 */);
return value.then(function(a0) {
return {default: a0};
});
}
function vi_22219() { // fn#22219, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2191:1847, offset: 0x00eff21a, size: 65 bytes, params: 1, frame: 14
let value = require(1247) /* metro dependency 1247: AssetJsonUtils */;
value = value.loadJsonAsset(require(2092) /* metro dependency 2092 */);
return value.then(function(a0) {
return {default: a0};
});
}
function _fun22221() { // fn#22221, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2191:1916, offset: 0x00eff25b, size: 65 bytes, params: 1, frame: 14
let value = require(1247) /* metro dependency 1247: AssetJsonUtils */;
value = value.loadJsonAsset(require(2093) /* metro dependency 2093 */);
return value.then(function(a0) {
return {default: a0};
});
}
function _fun22223() { // fn#22223, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2191:1985, offset: 0x00eff29c, size: 65 bytes, params: 1, frame: 14
let value = require(1247) /* metro dependency 1247: AssetJsonUtils */;
value = value.loadJsonAsset(require(2094) /* metro dependency 2094 */);
return value.then(function(a0) {
return {default: a0};
});
}
function _fun22225() { // fn#22225, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2191:2054, offset: 0x00eff2dd, size: 65 bytes, params: 1, frame: 14
let value = require(1247) /* metro dependency 1247: AssetJsonUtils */;
value = value.loadJsonAsset(require(2095) /* metro dependency 2095 */);
return value.then(function(a0) {
return {default: a0};
});
}
global.__d(_fun22164, 2064, [1247, 2065, 2066, 2067, 2068, 2069, 2070, 2071, 2072, 2073, 2074, 2075, 2076, 2077,
2078, 2079, 2080, 2081, 2082, 2083, 2084, 2085, 2086, 2087, 2088, 2089, 2090, 2091, 2092, 2093, 2094, 2095,
1282,
2]) /* metro module 2064, dependencies: [1247, 2065, 2066, 2067, 2068, 2069, 2070, 2071, 2072, 2073, 2074, 2075, 2076, 2077, 2078, 2079, 2080, 2081, 2082, 2083, 2084, 2085, 2086, 2087, 2088, 2089, 2090, 2091, 2092, 2093, 2094, 2095, 1282, 2] */;