Initial commit
This commit is contained in:
commit
af3b49f756
16065 files changed
+2938410
No files matched your search
@@ -0,0 +1,593 @@
|
||||
/* Metro module 16192; source: modules/go_live/ApplicationStreamingManager.tsx; dependencies: [7, 6, 15, 17, 18, 4492, 1226, 1379, 4111, 4402, 1934, 4395, 1878, 4286, 661, 22, 8913, 672, 4285, 4041, 694, 9235, 16170, 4860, 2] */
|
||||
function _fun125095(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#125095, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16400:6, offset: 0x025cddf4, size: 623 bytes, params: 8, frame: 23
|
||||
const env0_0 = require;
|
||||
const _arrayLikeToArray_125098 = function(a0, a1) {
|
||||
var r0;
|
||||
var r1;
|
||||
var r2;
|
||||
var value3;
|
||||
var length;
|
||||
var value5;
|
||||
var value = undefined;
|
||||
var value2 = value == null;
|
||||
reducibleJoin2: while (true) {
|
||||
if (value2) {
|
||||
r0 = value2;
|
||||
break reducibleJoin2;
|
||||
}
|
||||
value3 = value > a0.length;
|
||||
r0 = value3;
|
||||
break reducibleJoin2;
|
||||
}
|
||||
reducibleJoin4: while (true) {
|
||||
if (r0) {
|
||||
length = a0.length;
|
||||
r1 = length;
|
||||
break reducibleJoin4;
|
||||
}
|
||||
r1 = value;
|
||||
break reducibleJoin4;
|
||||
}
|
||||
value = (0, global.Array)(r1);
|
||||
var value4 = 0;
|
||||
if (value4 < r1) {
|
||||
r2 = value4;
|
||||
reducibleLoop5: while (true) {
|
||||
value[r2] = a0[r2];
|
||||
value5 = typeof r2 === 'bigint' ? r2 + 1n : +r2 + 1;
|
||||
if (value5 < r1) {
|
||||
r2 = value5;
|
||||
continue reducibleLoop5;
|
||||
}
|
||||
break reducibleLoop5;
|
||||
}
|
||||
}
|
||||
return value;
|
||||
};
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_3 = importDefault(7) /* metro dependency 7 */;
|
||||
const env0_4 = importDefault(6) /* metro dependency 6 */;
|
||||
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 applicationStreamingStore = importDefault(4492) /* metro dependency 4492: ApplicationStreamingStore */;
|
||||
const authenticationStore = importDefault(1226) /* metro dependency 1226: AuthenticationStore */;
|
||||
const channelStore = importDefault(1379) /* metro dependency 1379: ChannelStore */;
|
||||
const guildMemberCountStore = importDefault(4111) /* metro dependency 4111: GuildMemberCountStore */;
|
||||
const rtcRegionStore = importDefault(4402) /* metro dependency 4402: RTCRegionStore */;
|
||||
const selectedChannelStore = importDefault(1934) /* metro dependency 1934: SelectedChannelStore */;
|
||||
const streamRTCConnectionStore = importDefault(4395) /* metro dependency 4395: StreamRTCConnectionStore */;
|
||||
importDefault(1878) /* metro dependency 1878: UserStore */;
|
||||
let value = require(4286) /* metro dependency 4286: Constants */;
|
||||
value.GO_LIVE_NOTIFY_FRIENDS_MIN_MEMBER_COUNT;
|
||||
value.STREAM_NOTIFY_GUILD_MAX_SIZE;
|
||||
value = require(661) /* metro dependency 661: Constants */;
|
||||
const env0_15 = value.ApplicationStreamDeleteReasons;
|
||||
const env0_16 = value.ApplicationStreamStates;
|
||||
value = require(22) /* metro dependency 22 */;
|
||||
value.debounce((require(8913) /* metro dependency 8913: StreamActionCreators */).notifyStreamStart, 1000);
|
||||
const env0_17 = {};
|
||||
const env0_18 = {};
|
||||
let Millis = (importDefault(672) /* metro dependency 672: Durations */).Millis;
|
||||
const MINUTE = Millis.MINUTE;
|
||||
const env0_19 = 3 * MINUTE;
|
||||
Millis = (importDefault(672) /* metro dependency 672: Durations */).Millis;
|
||||
let SECOND = Millis.SECOND;
|
||||
const env0_20 = 5 * SECOND;
|
||||
Millis = (importDefault(672) /* metro dependency 672: Durations */).Millis;
|
||||
SECOND = Millis.SECOND;
|
||||
const env0_21 = 12 * SECOND;
|
||||
value = importDefault(4860) /* metro dependency 4860: AutomaticLifecycleManager */;
|
||||
value = _fun125108(value);
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/go_live/ApplicationStreamingManager.tsx');
|
||||
exports.default = value;
|
||||
}
|
||||
|
||||
function _createForOfIteratorHelperLoose_125096(a0, a1) { // fn#125096, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16400:395, offset: 0x025ce063, 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)) {
|
||||
if (r1) {
|
||||
}
|
||||
return _fun125097;
|
||||
}
|
||||
value = undefined;
|
||||
if (a0) {
|
||||
if (typeof a0 === 'string') {
|
||||
value = _arrayLikeToArray_125098(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') {
|
||||
value = _arrayLikeToArray_125098(a0, value);
|
||||
r6 = value;
|
||||
} else {
|
||||
regexp = RegExp('^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$', '');
|
||||
if (regexp.test(r9)) {
|
||||
value = _arrayLikeToArray_125098(a0, value);
|
||||
r6 = value;
|
||||
} else {
|
||||
r6 = value;
|
||||
}
|
||||
}
|
||||
r5 = r6;
|
||||
}
|
||||
} else {
|
||||
r5 = value;
|
||||
}
|
||||
if (r5) {
|
||||
if (r5) {
|
||||
}
|
||||
return _fun125097;
|
||||
}
|
||||
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 _isNativeReflectConstruct_125099() { // fn#125099, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16400:1305, offset: 0x025ce1d7, 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_125099_isNativeReflectConstruct = function() {
|
||||
return !!result;
|
||||
})();
|
||||
}
|
||||
|
||||
function clearSpectatorReconnectionTimer(a0) { // fn#125102, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16400:1653, offset: 0x025ce239, size: 42 bytes, params: 2, frame: 11
|
||||
const property = env0_17[a0];
|
||||
if (property != null) {
|
||||
property.stop();
|
||||
}
|
||||
delete env0_17[a0];
|
||||
}
|
||||
|
||||
function clearConnectTimeout(a0) { // fn#125103, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16400:1740, offset: 0x025ce263, size: 42 bytes, params: 2, frame: 11
|
||||
const property = env0_18[a0];
|
||||
if (property != null) {
|
||||
property.stop();
|
||||
}
|
||||
delete env0_18[a0];
|
||||
}
|
||||
|
||||
function maybeAutowatchStream(a0, a1) { // fn#125104, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16400:1815, offset: 0x025ce28d, size: 255 bytes, params: 3, frame: 16
|
||||
var r0;
|
||||
var getActiveStreamForUser;
|
||||
var getGuildId;
|
||||
var getStreamForUser;
|
||||
var value3;
|
||||
var value4;
|
||||
var value5;
|
||||
var value6;
|
||||
var value;
|
||||
const getVoiceChannelId = SelectedChannelStore.getVoiceChannelId;
|
||||
if (Reflect.apply(getVoiceChannelId, SelectedChannelStore, []) === a0) {
|
||||
var channel = ChannelStore.getChannel(a0);
|
||||
if (channel == null) {
|
||||
return false;
|
||||
}
|
||||
if (channel.isDM()) {
|
||||
getActiveStreamForUser = ApplicationStreamingStore.getActiveStreamForUser;
|
||||
getGuildId = channel.getGuildId;
|
||||
if (Reflect.apply(getActiveStreamForUser, ApplicationStreamingStore, [a1, Reflect.apply(getGuildId, channel,
|
||||
[])]) != null) {
|
||||
return false;
|
||||
}
|
||||
getStreamForUser = ApplicationStreamingStore.getStreamForUser;
|
||||
getGuildId = channel.getGuildId;
|
||||
value3 = Reflect.apply(getStreamForUser, ApplicationStreamingStore, [a1, Reflect.apply(getGuildId, channel,
|
||||
[])]);
|
||||
if (value3 == null) {
|
||||
return false;
|
||||
}
|
||||
value4 = (require(4285) /* metro dependency 4285: StreamKeyUtils */).encodeStreamKey(value3);
|
||||
value5 = value4 !== env0_22;
|
||||
if (value5) {
|
||||
env0_22 = value4;
|
||||
value = require(8913) /* metro dependency 8913: StreamActionCreators */;
|
||||
value6 = true;
|
||||
value.watchStream(value3, {noFocus: value6});
|
||||
r0 = value6;
|
||||
} else {
|
||||
r0 = value5;
|
||||
}
|
||||
return r0;
|
||||
}
|
||||
if (channel.isGuildStageVoice()) {
|
||||
getActiveStreamForUser = ApplicationStreamingStore.getActiveStreamForUser;
|
||||
getGuildId = channel.getGuildId;
|
||||
if (Reflect.apply(getActiveStreamForUser, ApplicationStreamingStore, [a1, Reflect.apply(getGuildId, channel,
|
||||
[])]) != null) {
|
||||
return false;
|
||||
}
|
||||
getStreamForUser = ApplicationStreamingStore.getStreamForUser;
|
||||
getGuildId = channel.getGuildId;
|
||||
value3 = Reflect.apply(getStreamForUser, ApplicationStreamingStore, [a1, Reflect.apply(getGuildId, channel,
|
||||
[])]);
|
||||
if (value3 == null) {
|
||||
return false;
|
||||
}
|
||||
value5 = (require(4285) /* metro dependency 4285: StreamKeyUtils */).encodeStreamKey(value3) !== env0_22;
|
||||
if (value5) {
|
||||
value = require(8913) /* metro dependency 8913: StreamActionCreators */;
|
||||
value6 = true;
|
||||
value.watchStream(value3, {noFocus: value6});
|
||||
r0 = value6;
|
||||
} else {
|
||||
r0 = value5;
|
||||
}
|
||||
return r0;
|
||||
}
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
function updateRegion(a0, a1) { // fn#125105, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16400:2196, offset: 0x025ce38c, size: 117 bytes, params: 3, frame: 16
|
||||
const r2 = a1 ?? RTCRegionStore.getPreferredRegion();
|
||||
if (r2 != null && r2 !== RTCRegionStore.getRegion(StreamRTCConnectionStore.getHostname(a0))) {
|
||||
(require(8913) /* metro dependency 8913: StreamActionCreators */).changeStreamRegion(a0, r2);
|
||||
}
|
||||
}
|
||||
|
||||
function maybeStartConnectTimeout(a0, a1) { // fn#125106, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16400:2340, offset: 0x025ce401, size: 147 bytes, params: 3, frame: 16
|
||||
var r3;
|
||||
var property;
|
||||
var timeout;
|
||||
const env0_0 = a0;
|
||||
const allActiveStreamKeys = StreamRTCConnectionStore.getAllActiveStreamKeys();
|
||||
if (!allActiveStreamKeys.includes(a0)) {
|
||||
property = env0_18[a0];
|
||||
if (property != null) {
|
||||
r3 = property;
|
||||
} else {
|
||||
timeout = new (require(4041) /* metro dependency 4041: Timers */).Timeout();
|
||||
}
|
||||
env0_18[a0] = r3;
|
||||
r3.start(a1 ? env0_21 : env0_20, _fun125107);
|
||||
}
|
||||
}
|
||||
|
||||
function _fun125108(a0) { // fn#125108, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16400:2569, offset: 0x025ce4d1, size: 42 bytes, params: 2, frame: 14
|
||||
const closure = BaseApplicationStreamingManager;
|
||||
env0_7(closure, a0);
|
||||
return env0_3(closure);
|
||||
}
|
||||
|
||||
function _fun125107() { // fn#125107, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16400:2497, offset: 0x025ce494, size: 61 bytes, params: 1, frame: 13
|
||||
const value = environment.__proto__;
|
||||
(importDefault(694) /* metro dependency 694: Dispatcher */).dispatch({type: 'STREAM_TIMED_OUT', streamKey: env0_0});
|
||||
}
|
||||
|
||||
function BaseApplicationStreamingManager(a0) { // fn#125109, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16400:2581, offset: 0x025ce4fb, size: 380 bytes, params: 2, frame: 20
|
||||
var environment;
|
||||
var r0;
|
||||
var Reflect;
|
||||
let value = copyRestArgs(0, undefined);
|
||||
let value2 = environment.__proto__;
|
||||
let binding = env1_4;
|
||||
binding(this, BaseApplicationStreamingManager);
|
||||
const items = [];
|
||||
arraySpread(items, value, 0, items);
|
||||
value = env1_6(BaseApplicationStreamingManager);
|
||||
binding = env1_5;
|
||||
if (_isNativeReflectConstruct_125099()) {
|
||||
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);
|
||||
value.handleStreamWatch = handleStreamWatch;
|
||||
value.handleStreamStart = handleStreamStart;
|
||||
value.handleStreamCreate = function({streamKey}) {
|
||||
clearConnectTimeout(streamKey);
|
||||
var value2 = require(dependencyMap[18]).decodeStreamKey(streamKey);
|
||||
value2.ownerId;
|
||||
GuildMemberCountStore.getMemberCount(value2.guildId);
|
||||
};
|
||||
value.handleStreamUpdate = function({streamKey}) {
|
||||
clearConnectTimeout(streamKey);
|
||||
};
|
||||
value.handleStreamDelete = handleStreamDelete;
|
||||
value.handleStreamClose = function({streamKey}) {
|
||||
clearSpectatorReconnectionTimer(streamKey);
|
||||
clearConnectTimeout(streamKey);
|
||||
};
|
||||
value.handleVoiceChannelSelect = handleVoiceChannelSelect_125117;
|
||||
value.handleVoiceStateUpdates = function({voiceStates}) {
|
||||
voiceStates.forEach(_fun125120);
|
||||
};
|
||||
value.handleCallUpdate = handleCallUpdate;
|
||||
value.handleChannelUpdates = handleChannelUpdates_125123;
|
||||
var handleStreamWatch = value.handleStreamWatch;
|
||||
var handleStreamStart = value.handleStreamStart;
|
||||
var handleStreamDelete = value.handleStreamDelete;
|
||||
var handleCallUpdate = value.handleCallUpdate;
|
||||
value.actions = {STREAM_WATCH: handleStreamWatch, STREAM_START: handleStreamStart,
|
||||
STREAM_CREATE: value.handleStreamCreate, STREAM_UPDATE: value.handleStreamUpdate,
|
||||
STREAM_DELETE: handleStreamDelete, STREAM_CLOSE: value.handleStreamClose, CALL_UPDATE: handleCallUpdate,
|
||||
CHANNEL_UPDATES: value.handleChannelUpdates, VOICE_CHANNEL_SELECT: value.handleVoiceChannelSelect,
|
||||
VOICE_STATE_UPDATES: value.handleVoiceStateUpdates};
|
||||
return value;
|
||||
}
|
||||
|
||||
function handleStreamWatch({streamKey, allowMultiple}) { // fn#125110, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16400:2880, owner: BaseApplicationStreamingManager.handleStreamWatch, offset: 0x025ce677, size: 152 bytes, params: 2, frame: 18
|
||||
var environment;
|
||||
const value = environment.__proto__.__proto__;
|
||||
const streamKeyUtilsModule = require(4285) /* metro dependency 4285: StreamKeyUtils */;
|
||||
maybeStartConnectTimeout(streamKey,
|
||||
ChannelStore.getChannel(streamKeyUtilsModule.decodeStreamKey(streamKey).channelId)?.isGuildStageVoice());
|
||||
clearSpectatorReconnectionTimer(streamKey);
|
||||
if (!allowMultiple) {
|
||||
ApplicationStreamingStore.getAllActiveStreams().forEach(_fun125111);
|
||||
}
|
||||
}
|
||||
|
||||
function handleStreamStart(a0) { // fn#125112, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16400:3233, owner: BaseApplicationStreamingManager.handleStreamStart, offset: 0x025ce783, size: 156 bytes, params: 2, frame: 20
|
||||
const channelId = a0.channelId;
|
||||
const streamType = a0.streamType;
|
||||
const guildId = a0.guildId;
|
||||
const value = environment.__proto__.__proto__;
|
||||
const channel = ChannelStore.getChannel(channelId);
|
||||
const maybeStartConnectTimeoutBinding = maybeStartConnectTimeout;
|
||||
const value3 = undefined;
|
||||
const streamKeyUtilsModule = require(4285) /* metro dependency 4285: StreamKeyUtils */;
|
||||
const encodeStreamKey = streamKeyUtilsModule.encodeStreamKey;
|
||||
const object2 = {streamType: streamType, guildId: guildId, channelId: channelId};
|
||||
object2.ownerId = AuthenticationStore.getId();
|
||||
maybeStartConnectTimeoutBinding(Reflect.apply(encodeStreamKey, streamKeyUtilsModule, [object2]),
|
||||
channel == null ? value3 : channel.isGuildStageVoice());
|
||||
env0_0.platformHandleStreamStart(a0);
|
||||
return value3;
|
||||
}
|
||||
|
||||
function handleStreamDelete({reason, streamKey}) { // fn#125115, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16400:3703, owner: BaseApplicationStreamingManager.handleStreamDelete, offset: 0x025ce88a, size: 152 bytes, params: 2, frame: 17
|
||||
var reportAVError;
|
||||
var object2;
|
||||
var moduleValue;
|
||||
let value = environment.__proto__.__proto__;
|
||||
clearConnectTimeout(streamKey);
|
||||
const STREAM_FULL = ApplicationStreamDeleteReasons.STREAM_FULL;
|
||||
if (reason === STREAM_FULL) {
|
||||
value = require(dependencyMap[21]);
|
||||
reportAVError = value.reportAVError;
|
||||
object2 = {};
|
||||
object2.type = require(dependencyMap[21]).AVError.STREAM_FULL;
|
||||
moduleValue = require(dependencyMap[22]);
|
||||
copyDataProperties(object2, moduleValue.getStreamErrorContext(streamKey), dependencyMap);
|
||||
Reflect.apply(reportAVError, value, [object2]);
|
||||
env0_0.platformShowStreamFull();
|
||||
}
|
||||
}
|
||||
|
||||
function BaseApplicationStreamingManagerHandleVoiceChannelSelect({channelId}) { // fn#125117, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16400:4026, owner: BaseApplicationStreamingManager.handleVoiceChannelSelect, offset: 0x025ce944, size: 87 bytes, params: 2, frame: 15
|
||||
var environment;
|
||||
var value;
|
||||
var property;
|
||||
if (channelId != null) {
|
||||
value = environment.__proto__.__proto__;
|
||||
property = ApplicationStreamingStore.getAllApplicationStreamsForChannel(channelId).filter(function({ownerId}) {
|
||||
return ownerId !== AuthenticationStore.getId();
|
||||
})[0];
|
||||
if (property != null) {
|
||||
maybeAutowatchStream(channelId, property.ownerId);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
function BaseApplicationStreamingManagerHandleVoiceStateUpdates({voiceStates}) { // fn#125119, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16400:4222, owner: BaseApplicationStreamingManager.handleVoiceStateUpdates, offset: 0x025ce9bb, size: 32 bytes, params: 2, frame: 11
|
||||
voiceStates.forEach(_fun125120);
|
||||
}
|
||||
|
||||
function BaseApplicationStreamingManagerHandleCallUpdate({channelId, region}) { // fn#125122, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16400:4823, owner: BaseApplicationStreamingManager.handleCallUpdate, offset: 0x025ceba6, size: 96 bytes, params: 2, frame: 16
|
||||
var updateRegionBinding;
|
||||
let value = environment.__proto__.__proto__;
|
||||
const currentUserActiveStream = ApplicationStreamingStore.getCurrentUserActiveStream();
|
||||
const channelId = currentUserActiveStream?.channelId;
|
||||
if (channelId === channelId) {
|
||||
updateRegionBinding = updateRegion;
|
||||
value = require(4285) /* metro dependency 4285: StreamKeyUtils */;
|
||||
updateRegionBinding(value.encodeStreamKey(currentUserActiveStream), region);
|
||||
}
|
||||
}
|
||||
|
||||
function BaseApplicationStreamingManagerHandleChannelUpdates({channels}) { // fn#125123, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16400:4990, owner: BaseApplicationStreamingManager.handleChannelUpdates, offset: 0x025cec06, size: 140 bytes, params: 2, frame: 19
|
||||
var r1;
|
||||
var value3;
|
||||
var value4;
|
||||
var done;
|
||||
var value5;
|
||||
var channelId;
|
||||
var id;
|
||||
var updateRegionBinding;
|
||||
var moduleValue;
|
||||
var value6;
|
||||
var rtcRegion;
|
||||
var value7;
|
||||
const currentUserActiveStream = ApplicationStreamingStore.getCurrentUserActiveStream();
|
||||
if (currentUserActiveStream != null) {
|
||||
value3 = _createForOfIteratorHelperLoose_125096(channels);
|
||||
value4 = value3();
|
||||
done = value4.done;
|
||||
if (!done) {
|
||||
r1 = value4;
|
||||
while (true) {
|
||||
value5 = r1.value;
|
||||
channelId = currentUserActiveStream.channelId;
|
||||
id = value5.id;
|
||||
if (channelId === id) {
|
||||
updateRegionBinding = updateRegion;
|
||||
moduleValue = require(4285) /* metro dependency 4285: StreamKeyUtils */;
|
||||
value6 = moduleValue.encodeStreamKey(currentUserActiveStream);
|
||||
rtcRegion = value5.rtcRegion;
|
||||
updateRegionBinding(value6, rtcRegion);
|
||||
}
|
||||
value7 = value3();
|
||||
done = value7.done;
|
||||
if (done) {
|
||||
break;
|
||||
}
|
||||
r1 = value7;
|
||||
continue;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
function _fun125111(a0) { // fn#125111, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16400:3113, offset: 0x025ce70f, size: 116 bytes, params: 2, frame: 15
|
||||
const value = environment.__proto__.__proto__.__proto__;
|
||||
const value2 = (require(4285) /* metro dependency 4285: StreamKeyUtils */).encodeStreamKey(a0);
|
||||
const ownerId = a0.ownerId;
|
||||
const getId = AuthenticationStore.getId;
|
||||
if (ownerId !== Reflect.apply(getId, AuthenticationStore, []) && value2 !== streamKey) {
|
||||
(require(8913) /* metro dependency 8913: StreamActionCreators */).stopStream(value2, false);
|
||||
}
|
||||
}
|
||||
|
||||
function _fun125120(a0) { // fn#125120, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16400:4253, offset: 0x025ce9db, size: 411 bytes, params: 2, frame: 23
|
||||
var environment;
|
||||
var r5;
|
||||
var activeStreamForUser;
|
||||
var value3;
|
||||
var property;
|
||||
const Timeout = (require(4041) /* metro dependency 4041: Timers */).Timeout;
|
||||
var timeout;
|
||||
var clearSpectatorReconnectionTimerBinding;
|
||||
var moduleValue2;
|
||||
var streamForUser;
|
||||
const userId = a0.userId;
|
||||
const channelId = a0.channelId;
|
||||
const guildId = a0.guildId;
|
||||
const selfStream = a0.selfStream;
|
||||
let value = environment.__proto__;
|
||||
env1_0.platformHandleVoiceStateUpdate(a0);
|
||||
value = environment.__proto__.__proto__.__proto__;
|
||||
const getId = AuthenticationStore.getId;
|
||||
if (userId !== Reflect.apply(getId, AuthenticationStore, [])) {
|
||||
if (channelId == null) {
|
||||
return undefined;
|
||||
}
|
||||
if (selfStream) {
|
||||
if (maybeAutowatchStream(channelId, userId)) {
|
||||
return undefined;
|
||||
}
|
||||
activeStreamForUser = ApplicationStreamingStore.getActiveStreamForUser(userId, guildId);
|
||||
if (activeStreamForUser == null) {
|
||||
return undefined;
|
||||
}
|
||||
if (activeStreamForUser.channelId !== channelId) {
|
||||
return undefined;
|
||||
}
|
||||
if (!selfStream) {
|
||||
if (activeStreamForUser.state !== ApplicationStreamStates.ENDED) {
|
||||
value3 = (require(4285) /* metro dependency 4285: StreamKeyUtils */).encodeStreamKey(activeStreamForUser);
|
||||
property = env3_17[value3];
|
||||
if (property != null) {
|
||||
r5 = property;
|
||||
} else {
|
||||
timeout = new Timeout();
|
||||
}
|
||||
r5.start(env3_19, _fun125121);
|
||||
env3_17[value3] = r5;
|
||||
}
|
||||
}
|
||||
if (selfStream) {
|
||||
if (activeStreamForUser.state !== ApplicationStreamStates.ENDED) {
|
||||
return undefined;
|
||||
}
|
||||
clearSpectatorReconnectionTimerBinding = clearSpectatorReconnectionTimer;
|
||||
moduleValue2 = require(4285) /* metro dependency 4285: StreamKeyUtils */;
|
||||
clearSpectatorReconnectionTimerBinding(moduleValue2.encodeStreamKey(activeStreamForUser));
|
||||
streamForUser = ApplicationStreamingStore.getStreamForUser(userId, guildId);
|
||||
if (streamForUser == null) {
|
||||
return undefined;
|
||||
}
|
||||
(require(8913) /* metro dependency 8913: StreamActionCreators */).watchStream(streamForUser);
|
||||
return undefined;
|
||||
}
|
||||
return undefined;
|
||||
}
|
||||
activeStreamForUser = ApplicationStreamingStore.getActiveStreamForUser(userId, guildId);
|
||||
if (activeStreamForUser == null) {
|
||||
return undefined;
|
||||
}
|
||||
if (activeStreamForUser.channelId !== channelId) {
|
||||
return undefined;
|
||||
}
|
||||
if (!selfStream) {
|
||||
if (activeStreamForUser.state !== ApplicationStreamStates.ENDED) {
|
||||
value3 = (require(4285) /* metro dependency 4285: StreamKeyUtils */).encodeStreamKey(activeStreamForUser);
|
||||
property = env3_17[value3];
|
||||
if (property != null) {
|
||||
r5 = property;
|
||||
} else {
|
||||
timeout = new Timeout();
|
||||
}
|
||||
r5.start(env3_19, _fun125121);
|
||||
env3_17[value3] = r5;
|
||||
}
|
||||
}
|
||||
if (selfStream) {
|
||||
if (activeStreamForUser.state !== ApplicationStreamStates.ENDED) {
|
||||
return undefined;
|
||||
}
|
||||
clearSpectatorReconnectionTimerBinding = clearSpectatorReconnectionTimer;
|
||||
moduleValue2 = require(4285) /* metro dependency 4285: StreamKeyUtils */;
|
||||
clearSpectatorReconnectionTimerBinding(moduleValue2.encodeStreamKey(activeStreamForUser));
|
||||
streamForUser = ApplicationStreamingStore.getStreamForUser(userId, guildId);
|
||||
if (streamForUser == null) {
|
||||
return undefined;
|
||||
}
|
||||
(require(8913) /* metro dependency 8913: StreamActionCreators */).watchStream(streamForUser);
|
||||
return undefined;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
function _fun125121() { // fn#125121, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16400:4596, offset: 0x025ceb76, size: 48 bytes, params: 1, frame: 13
|
||||
const value = environment.__proto__.__proto__.__proto__.__proto__;
|
||||
return (require(8913) /* metro dependency 8913: StreamActionCreators */).closeStream(env0_0, false);
|
||||
}
|
||||
|
||||
@@ -0,0 +1,29 @@
|
||||
/* Metro module 4286; source: modules/go_live/Constants.tsx; dependencies: [4287, 2] */
|
||||
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 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');
|
||||
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'};
|
||||
exports.DARWIN_SOUNDSHARE_VERSION = '>=19.0.0';
|
||||
exports.DARWIN_SCKIT_VERSION = '>=22.0.0';
|
||||
exports.DARWIN_SCKIT_AUDIO_VERSION = '>=22.0.0';
|
||||
exports.DARWIN_SCKIT_SINGLE_TYPE_VERSION = '>=24.0.0';
|
||||
exports.WINDOWS_SOUNDSHARE_NONHOOK_VERSION = '>=10.0.17763';
|
||||
exports.WINDOWS_SOUNDSHARE_HOOK_VERSION = '<10.0.22000';
|
||||
exports.WINDOWS_GRAPHICS_CAPTURE_NEW_APIS_SEMVER = '>=10.0.26100';
|
||||
exports.WINDOWS_SETTINGS_SOUND_DEVICE_DEEPLINK_SEMVER = '>=10.0.26100';
|
||||
exports.WINDOWS_GRAPHICS_CAPTURE_NEW_APIS_BUILD = 26100;
|
||||
exports.WINDOWS_GRAPHICS_CAPTURE_SEMVER = '>=10.0.22000';
|
||||
exports.WINDOWS_GRAPHICS_CAPTURE_BUILD = 22000;
|
||||
exports.StreamTypes = {GUILD: 'guild', CALL: 'call'};
|
||||
exports.STREAM_NOTIFY_GUILD_MAX_SIZE = StreamNotificationsGuildMaxSize;
|
||||
exports.GO_LIVE_NOTIFY_FRIENDS_MIN_MEMBER_COUNT = 30;
|
||||
exports.BROWSER_EXECUTABLES = set;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,69 @@
|
||||
/* Metro module 10799; source: modules/go_live/GoLiveAutoQualityExperiment.tsx; dependencies: [1220, 4399, 4282, 1358, 566, 587, 8913, 2] */
|
||||
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 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;
|
||||
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 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);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,15 @@
|
||||
/* Metro module 13893; source: modules/go_live/GoLiveNotificationUtils.tsx; dependencies: [661, 3796, 3829, 683, 2] */
|
||||
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');
|
||||
exports.onGoLiveNotificationSettingsChanged = function(a0) {
|
||||
require(dependencyMap[2]).StreamNotificationsEnabled.updateSetting(a0);
|
||||
importDefault(dependencyMap[3]).track(AnalyticEvents.NOTIFICATION_SETTINGS_UPDATED,
|
||||
{update_type: NotificationSettingsUpdateType.ACCOUNT, go_live_notifications: a0});
|
||||
};
|
||||
}
|
||||
|
||||
@@ -0,0 +1,175 @@
|
||||
/* Metro module 12391; source: modules/go_live/GoLiveQualityManager.tsx; dependencies: [6, 7, 15, 17, 18, 3, 4041, 4479, 2] */
|
||||
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 */;
|
||||
value = _fun94415(value);
|
||||
(require(2) /* metro dependency 2 */).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) {
|
||||
}
|
||||
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;
|
||||
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;
|
||||
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]);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,22 @@
|
||||
/* Metro module 10797; source: modules/go_live/GoLiveVideoPresetResolutionExperiment.tsx; dependencies: [4282, 1358, 2] */
|
||||
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 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);
|
||||
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');
|
||||
exports.default = value;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,289 @@
|
||||
/* 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] */
|
||||
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');
|
||||
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 = 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};
|
||||
});
|
||||
}
|
||||
|
||||
@@ -0,0 +1,27 @@
|
||||
/* Metro module 15453; source: modules/go_live/MobileGoLiveEntrypointExperiment.tsx; dependencies: [1854, 2] */
|
||||
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 */;
|
||||
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;
|
||||
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');
|
||||
exports.default = value;
|
||||
exports.MobileGoLiveEntrypointTreatment = object2;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,892 @@
|
||||
/* Metro module 4398; source: modules/go_live/StreamRTCConnection.tsx; dependencies: [15, 17, 102, 18, 6, 7, 4265, 4289, 4399, 1226, 1379, 4400, 4259, 4401, 4294, 4402, 661, 4291, 672, 4285, 4403, 4041, 4404, 22, 694, 4405, 4406, 4482, 683, 4488, 4489, 4303, 4490, 4491, 12382, 5252, 4301, 2] */
|
||||
function _fun37323(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#37323, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4570:6, offset: 0x010a16c5, size: 605 bytes, params: 8, frame: 24
|
||||
var object2;
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_3 = importDefault(15) /* metro dependency 15 */;
|
||||
const env0_4 = importDefault(17) /* metro dependency 17 */;
|
||||
const env0_5 = importDefault(102) /* metro dependency 102 */;
|
||||
const env0_6 = importDefault(18) /* metro dependency 18 */;
|
||||
const env0_7 = importDefault(6) /* metro dependency 6 */;
|
||||
const env0_8 = importDefault(7) /* metro dependency 7 */;
|
||||
const clipsStore = importDefault(4265) /* metro dependency 4265: ClipsStore */;
|
||||
const env0_10 = (require(4289) /* metro dependency 4289: SystemAnalyticsStoreNative */).getSystemAnalyticsInfo;
|
||||
const applicationStreamingSettingsStore = importDefault(4399) /* metro dependency 4399: ApplicationStreamingSettingsStore */;
|
||||
const authenticationStore = importDefault(1226) /* metro dependency 1226: AuthenticationStore */;
|
||||
const channelStore = importDefault(1379) /* metro dependency 1379: ChannelStore */;
|
||||
const hookErrorStore = importDefault(4400) /* metro dependency 4400: HookErrorStore */;
|
||||
const mediaEngineStore = importDefault(4259) /* metro dependency 4259: MediaEngineStore */;
|
||||
const networkStore = importDefault(4401) /* metro dependency 4401: NetworkStore */;
|
||||
const rtcConnectionStore = importDefault(4294) /* metro dependency 4294: RTCConnectionStore */;
|
||||
const rtcRegionStore = importDefault(4402) /* metro dependency 4402: RTCRegionStore */;
|
||||
let value = require(661) /* metro dependency 661: Constants */;
|
||||
const env0_19 = value.AnalyticEvents;
|
||||
const env0_20 = value.MediaEngineHookTypes;
|
||||
const env0_21 = value.RTCConnectionStates;
|
||||
const env0_22 = (require(4291) /* metro dependency 4291: Constants */).MediaEngineContextTypes;
|
||||
const Millis = (importDefault(672) /* metro dependency 672: Durations */).Millis;
|
||||
const SECOND = Millis.SECOND;
|
||||
const env0_23 = 5 * SECOND;
|
||||
object2 = {DETACHED: 0};
|
||||
object2[0] = 'DETACHED';
|
||||
object2.WAITING = 1;
|
||||
object2[1] = 'WAITING';
|
||||
object2.ATTACHED = 2;
|
||||
object2[2] = 'ATTACHED';
|
||||
object2.STARTED = 3;
|
||||
object2[3] = 'STARTED';
|
||||
object2.PLAYING = 4;
|
||||
object2[4] = 'PLAYING';
|
||||
object2.SILENCE = 5;
|
||||
object2[5] = 'SILENCE';
|
||||
value = _fun37327();
|
||||
const value3 = _fun37338(importDefault(4301) /* metro dependency 4301: RTCConnection */);
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/go_live/StreamRTCConnection.tsx');
|
||||
exports.default = value3;
|
||||
exports.StreamRTCAnalyticsContext = value;
|
||||
}
|
||||
|
||||
function _isNativeReflectConstruct_37324() { // fn#37324, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4570:405, offset: 0x010a1922, 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_37324_isNativeReflectConstruct = function() {
|
||||
return !!result;
|
||||
})();
|
||||
}
|
||||
|
||||
function _fun37327() { // fn#37327, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4570:816, offset: 0x010a1980, size: 251 bytes, params: 1, frame: 15
|
||||
return env0_8(StreamRTCAnalyticsContext, [{key: 'setActionContext', value: function(a0) {
|
||||
this.actionContext = a0;
|
||||
}}, {key: 'updateStreamApplication', value: function(a0) {
|
||||
var r4;
|
||||
this.streamApplication = a0;
|
||||
var streamApplicationHistory = this.streamApplicationHistory;
|
||||
var items = [];
|
||||
var value = arraySpread(items, streamApplicationHistory, 0, r4);
|
||||
items[value] = a0;
|
||||
value + 1;
|
||||
this.streamApplicationHistory = items;
|
||||
}}, {key: 'setAnalyticsLocations', value: function(a0) {
|
||||
this.analyticsLocations = a0;
|
||||
}}, {key: 'trackViewerCount', value: function(a0) {
|
||||
var Math = global.Math;
|
||||
this.maxViewers = Math.max(a0, this.maxViewers);
|
||||
this.numViewers = a0;
|
||||
}}, {key: 'setNativePickerStyleUsed', value: function(a0) {
|
||||
this.nativePickerStyleUsed = a0;
|
||||
}}, {key: 'trackStart', value: function() {
|
||||
this.startTime = global.performance.now();
|
||||
}}, {key: 'trackEnd', value: function() {
|
||||
this.endTime = global.performance.now();
|
||||
}}, {key: 'getStreamApplicationFromHistory', value: function(a0) {
|
||||
return this.streamApplicationHistory[a0];
|
||||
}}, {key: 'getDuration', value: function() {
|
||||
if (this.startTime == null) {
|
||||
return null;
|
||||
}
|
||||
return (this.endTime ?? global.performance.now()) - this.startTime;
|
||||
}}]);
|
||||
}
|
||||
|
||||
function _fun37338(a0) { // fn#37338, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4570:2132, offset: 0x010a1c28, size: 425 bytes, params: 2, frame: 16
|
||||
const closure = StreamRTCConnection;
|
||||
env0_6(closure, a0);
|
||||
return env0_8(closure, [{key: 'isOwner', get: function() {
|
||||
return AuthenticationStore.getId() === this.streamContext.ownerId;
|
||||
}}, {key: 'destroy', value: value_37342}, {key: 'streamUpdate', value: function(a0) {
|
||||
var _videoQuality = this._videoQuality;
|
||||
if (_videoQuality != null) {
|
||||
if (a0) {
|
||||
_videoQuality.pause();
|
||||
} else {
|
||||
_videoQuality.resume();
|
||||
}
|
||||
}
|
||||
}}, {key: 'layoutChange', value: function(a0) {
|
||||
this.videoStreamStats.layoutChange(a0);
|
||||
}}, {key: 'autoQualityChange', value: function() {
|
||||
this.videoStreamStats.autoQualityChange();
|
||||
}}, {key: 'getVideoStats', value: value_37348}, {key: 'getRegion', value: function() {
|
||||
return this.analyticsContext.streamRegion;
|
||||
}}, {key: 'getMaxViewers', value: function() {
|
||||
return this.analyticsContext.maxViewers;
|
||||
}}, {key: 'getVoiceParticipantType', value: function() {
|
||||
return this.isOwner ? 'streamer' : 'receiver';
|
||||
}}, {key: 'initializeEvents', value: value_37352}, {key: 'reportSoundshareFailure', value: value_37368},
|
||||
{key: 'getStreamAnalyticsProperties', value: value_37369}, {key: 'getSoundshareAnalyticsProperties',
|
||||
value: function() {
|
||||
var object = {rtc_connection_id: this.getRTCConnectionId()};
|
||||
object.soundshare_experimental = MediaEngineStore.getExperimentalSoundshare();
|
||||
return object;
|
||||
}}, {key: 'trackVideoStartStats', value: value_37371}, {key: 'trackVideoEndStats', value: value_37372},
|
||||
{key: 'getExtraConnectionOptions', value: value_37375}]);
|
||||
}
|
||||
|
||||
function StreamRTCAnalyticsContext({streamRegion, streamApplication, streamSourceType, actionContext, numViewers, goLiveModalDurationMs, analyticsLocations}) { // fn#37328, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4570:837, offset: 0x010a1a7b, size: 144 bytes, params: 2, frame: 20
|
||||
env1_7(this, StreamRTCAnalyticsContext);
|
||||
this.streamRegion = streamRegion;
|
||||
this.streamApplication = streamApplication;
|
||||
this.streamApplicationHistory = [streamApplication];
|
||||
this.streamSourceType = streamSourceType;
|
||||
this.actionContext = actionContext;
|
||||
this.maxViewers = numViewers;
|
||||
this.goLiveModalDurationMs = goLiveModalDurationMs;
|
||||
this.numViewers = numViewers;
|
||||
this.analyticsLocations = analyticsLocations ?? [];
|
||||
}
|
||||
|
||||
function StreamRTCConnection({sessionId, streamKey, serverId, initialLayout, analyticsContext, parentMediaSessionId, channelId}) { // fn#37339, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4570:2144, offset: 0x010a1dd1, size: 512 bytes, params: 2, frame: 30
|
||||
var environment;
|
||||
let value = environment.__proto__;
|
||||
env1_7(this, StreamRTCConnection);
|
||||
const value3 = (require(4285) /* metro dependency 4285: StreamKeyUtils */).decodeStreamKey(streamKey);
|
||||
const guildId = value3.guildId;
|
||||
const channelId2 = value3.channelId;
|
||||
const object2 = {};
|
||||
object2.userId = AuthenticationStore.getId();
|
||||
object2.sessionId = sessionId;
|
||||
object2.guildId = guildId;
|
||||
object2.channelId = channelId2;
|
||||
const STREAM = MediaEngineContextTypes.STREAM;
|
||||
object2.context = STREAM;
|
||||
object2.streamServerId = serverId;
|
||||
object2.streamChannelId = channelId;
|
||||
object2.parentMediaSessionId = parentMediaSessionId;
|
||||
object2.joinVoiceId = null;
|
||||
const items2 = [object2];
|
||||
const value4 = env1_4(StreamRTCConnection);
|
||||
const value7 = env1_3(this, _isNativeReflectConstruct_37324() ? global.Reflect.construct(value4, items2,
|
||||
env1_4(this).constructor) : value4.apply(this, items2));
|
||||
value = importDefault(4403) /* metro dependency 4403: SoundshareStatsAggregator */;
|
||||
value = new value();
|
||||
value7.soundshareStats = value;
|
||||
value7._firstFrameDelivered = false;
|
||||
value7.screenshareFinishedCount = 0;
|
||||
value7.soundshareFailuresReported = {};
|
||||
const Timeout = (require(4041) /* metro dependency 4041: Timers */).Timeout;
|
||||
let timeout = new Timeout();
|
||||
value7.errorTimer = timeout;
|
||||
value7.streamContext = value3;
|
||||
value7.streamKey = streamKey;
|
||||
timeout = importDefault(4404) /* metro dependency 4404: VideoStreamStats */;
|
||||
timeout = new timeout(initialLayout, value7.isOwner);
|
||||
value7.videoStreamStats = timeout;
|
||||
value7.analyticsContext = analyticsContext;
|
||||
value7.updateVideoStreamId = (importDefault(22) /* metro dependency 22 */).debounce(_fun37340, 200);
|
||||
value7.videoStreamStats.start();
|
||||
value7.initializeEvents();
|
||||
return value7;
|
||||
}
|
||||
|
||||
function value_37342(a0) { // fn#37342, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4570:3471, offset: 0x010a2097, size: 140 bytes, params: 2, frame: 17
|
||||
this.videoStreamStats.stop();
|
||||
this.trackVideoEndStats(a0);
|
||||
this.updateVideoStreamId.cancel();
|
||||
this.updateVideoStreamId(null, null);
|
||||
this.updateVideoStreamId.flush();
|
||||
this.errorTimer.stop();
|
||||
value_37342_superPropGet(StreamRTCConnection, 'destroy', this, 3)([]);
|
||||
}
|
||||
|
||||
function value_37348() { // fn#37348, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4570:4134, offset: 0x010a21ea, size: 139 bytes, params: 1, frame: 13
|
||||
var r1;
|
||||
const ownerId = this.streamContext.ownerId;
|
||||
const _videoQuality = this._videoQuality;
|
||||
if (_videoQuality != null) {
|
||||
r1 = this.isOwner ? _videoQuality.getOutboundStats()[0] ?? ({}) : _videoQuality.getInboundStats(ownerId) ?? ({});
|
||||
return {duration: r1.duration, avg_bitrate: r1.avg_bitrate, avg_fps: r1.avg_fps,
|
||||
avg_resolution: r1.avg_resolution,
|
||||
inbound_bitrate_estimate_percentile99: r1.inbound_bitrate_estimate_percentile99};
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
function value_37352() { // fn#37352, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4570:4785, offset: 0x010a22b1, size: 223 bytes, params: 1, frame: 18
|
||||
let on = this.on;
|
||||
const RTCConnectionEvent = (require(4405) /* metro dependency 4405: RTCConnectionEvent */).RTCConnectionEvent;
|
||||
const State = RTCConnectionEvent.State;
|
||||
Reflect.apply(on, this, [State, _fun37353]);
|
||||
on = this.on;
|
||||
const Video = RTCConnectionEvent.Video;
|
||||
Reflect.apply(on, this, [Video, _fun37364]);
|
||||
on = this.on;
|
||||
const VideoSourceQualityChanged = RTCConnectionEvent.VideoSourceQualityChanged;
|
||||
Reflect.apply(on, this, [VideoSourceQualityChanged, _fun37365]);
|
||||
on = this.on;
|
||||
const SecureFramesUpdate = RTCConnectionEvent.SecureFramesUpdate;
|
||||
Reflect.apply(on, this, [SecureFramesUpdate, _fun37366]);
|
||||
on = this.on;
|
||||
const RosterMapUpdate = RTCConnectionEvent.RosterMapUpdate;
|
||||
Reflect.apply(on, this, [RosterMapUpdate, _fun37367]);
|
||||
}
|
||||
|
||||
function value_37368(a0, a1, a2, a3) { // fn#37368, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4570:12982, offset: 0x010a3468, size: 276 bytes, params: 5, frame: 19
|
||||
var Set;
|
||||
var value3;
|
||||
var set;
|
||||
var value8;
|
||||
var defaultImport;
|
||||
var track;
|
||||
var SOUNDSHARE_FAILED;
|
||||
var object2;
|
||||
const value = undefined;
|
||||
const r4 = (a0 == null ? value : a0.soundshareSession) ?? '';
|
||||
let soundshareFailuresReported = this.soundshareFailuresReported;
|
||||
if (soundshareFailuresReported[r4] == null) {
|
||||
soundshareFailuresReported = this.soundshareFailuresReported;
|
||||
Set = global.Set;
|
||||
value3 = Object.create(Set.prototype, {constructor: {value: Set}});
|
||||
set = new Set();
|
||||
soundshareFailuresReported[r4] = set instanceof Object ? set : value3;
|
||||
}
|
||||
const r2 = a1 != null && !this.soundshareFailuresReported[r4].has(a1);
|
||||
if (r2) {
|
||||
this.soundshareFailuresReported[r4].add(a1);
|
||||
}
|
||||
if (a1 == null || r2) {
|
||||
value8 = environment.__proto__;
|
||||
defaultImport = importDefault(dependencyMap[28]);
|
||||
track = defaultImport.track;
|
||||
SOUNDSHARE_FAILED = AnalyticEvents.SOUNDSHARE_FAILED;
|
||||
object2 = {soundshare_failure_code: a1, soundshare_failure_reason: a2, soundshare_failure_will_retry: a3};
|
||||
copyDataProperties(object2, importDefault(dependencyMap[30])(a0), dependencyMap);
|
||||
copyDataProperties(object2, this.getSoundshareAnalyticsProperties(), dependencyMap);
|
||||
Reflect.apply(track, defaultImport, [SOUNDSHARE_FAILED, object2]);
|
||||
}
|
||||
return value;
|
||||
}
|
||||
|
||||
function value_37369() { // fn#37369, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4570:13488, offset: 0x010a357c, size: 351 bytes, params: 1, frame: 24
|
||||
const {streamRegion, streamApplication, streamSourceType, actionContext} = this.analyticsContext;
|
||||
const {ownerId, guildId} = this.streamContext;
|
||||
const value = environment.__proto__;
|
||||
const getRegion = RTCRegionStore.getRegion;
|
||||
const getHostname = RTCConnectionStore.getHostname;
|
||||
const value2 = Reflect.apply(getRegion, RTCRegionStore, [Reflect.apply(getHostname, RTCConnectionStore, [])]);
|
||||
const {gameName, gameId, exe, distributor, sku,
|
||||
gameMetadata} = (require(4482) /* metro dependency 4482: GameAnalyticsUtils */).getRunningGameAnalytics(streamApplication);
|
||||
const object2 = {};
|
||||
object2.channel_id = this.channelId;
|
||||
object2.rtc_connection_id = this.getRTCConnectionId();
|
||||
object2.media_session_id = this.getMediaSessionId();
|
||||
object2.parent_media_session_id = this.parentMediaSessionId;
|
||||
object2.sender_user_id = ownerId;
|
||||
const STREAM = MediaEngineContextTypes.STREAM;
|
||||
object2.context = STREAM;
|
||||
object2.guild_id = guildId;
|
||||
object2.stream_region = streamRegion;
|
||||
object2.stream_source_type = streamSourceType;
|
||||
object2.guild_region = value2;
|
||||
object2.participant_type = this.isOwner ? 'streamer' : 'receiver';
|
||||
object2.share_application_name = gameName;
|
||||
object2.share_application_id = gameId;
|
||||
object2.share_application_executable = exe;
|
||||
object2.share_application_distributor = distributor;
|
||||
object2.share_application_distributor_game_id = sku;
|
||||
object2.share_application_game_metadata = gameMetadata;
|
||||
object2.video_layout = this.videoStreamStats.getLayout();
|
||||
object2.client_event_source = actionContext;
|
||||
object2.voice_backend_version = this.voiceVersion;
|
||||
object2.rtc_worker_backend_version = this.rtcWorkerVersion;
|
||||
return object2;
|
||||
}
|
||||
|
||||
function value_37371() { // fn#37371, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4570:14656, offset: 0x010a3709, size: 227 bytes, params: 1, frame: 18
|
||||
var r7;
|
||||
const isOwner = this.isOwner;
|
||||
let value = null;
|
||||
if (isOwner) {
|
||||
value = environment.__proto__;
|
||||
value = (importDefault(4490) /* metro dependency 4490: getStreamSourceMetadataNative */)();
|
||||
r7 = value;
|
||||
} else {
|
||||
r7 = value;
|
||||
}
|
||||
value = environment.__proto__;
|
||||
const defaultImport = importDefault(683) /* metro dependency 683: AnalyticsUtils */;
|
||||
const track = defaultImport.track;
|
||||
const VIDEO_STREAM_STARTED = AnalyticEvents.VIDEO_STREAM_STARTED;
|
||||
const object2 = {};
|
||||
const getStreamAnalyticsProperties = this.getStreamAnalyticsProperties;
|
||||
copyDataProperties(object2, r7, copyDataProperties(object2, Reflect.apply(getStreamAnalyticsProperties, this, []),
|
||||
getStreamAnalyticsProperties));
|
||||
object2['connection_type'] = NetworkStore.getType();
|
||||
object2['effective_connection_speed'] = NetworkStore.getEffectiveConnectionSpeed();
|
||||
object2['service_provider'] = NetworkStore.getServiceProvider();
|
||||
object2['duration_go_live_modal'] = this.analyticsContext.goLiveModalDurationMs;
|
||||
object2['source_location_stack'] = this.analyticsContext.analyticsLocations;
|
||||
Reflect.apply(track, defaultImport, [VIDEO_STREAM_STARTED, object2]);
|
||||
}
|
||||
|
||||
function value_37372(a0) { // fn#37372, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4570:15078, offset: 0x010a37ec, size: 382 bytes, params: 2, frame: 19
|
||||
var environment;
|
||||
var r1;
|
||||
var isOwner;
|
||||
var getCodecUsageStats;
|
||||
var property;
|
||||
var object2;
|
||||
var settings;
|
||||
const env0_1 = a0;
|
||||
let value = environment.__proto__;
|
||||
const channel = ChannelStore.getChannel(this.channelId);
|
||||
const value3 = null;
|
||||
const env0_4 = value3 != channel ? channel.type : value3;
|
||||
const ownerId = this.streamContext.ownerId;
|
||||
const _videoQuality = this._videoQuality;
|
||||
if (value3 != _videoQuality) {
|
||||
var env0_2 = _videoQuality.getNetworkStats();
|
||||
isOwner = this.isOwner;
|
||||
getCodecUsageStats = _videoQuality.getCodecUsageStats;
|
||||
r1 = isOwner ? Reflect.apply(getCodecUsageStats, _videoQuality, ['streamer',
|
||||
this.userId]) : Reflect.apply(getCodecUsageStats, _videoQuality, ['receiver', ownerId]);
|
||||
property = (require(4491) /* metro dependency 4491: VoiceEngineStreamingManager */).default;
|
||||
object2 = {};
|
||||
object2.stream_application_name = property.getApplicationNames();
|
||||
settings = ClipsStore.getSettings();
|
||||
isOwner = this.isOwner;
|
||||
if (isOwner) {
|
||||
object2 = {};
|
||||
object2.clips_enabled = (require(12382) /* metro dependency 12382: isClipsEnabled */).isClipsEnabled();
|
||||
object2.clips_buffer_length = settings.clipsLength;
|
||||
} else {
|
||||
object2 = {};
|
||||
}
|
||||
isOwner = this.isOwner;
|
||||
if (isOwner) {
|
||||
({}).bandwidth_estimation_experiment = this.getBandwidthEstimationExperiment();
|
||||
} else {
|
||||
object2 = {};
|
||||
}
|
||||
value = _videoQuality.getOutboundStats();
|
||||
value.forEach(_fun37373);
|
||||
value = _videoQuality.getInboundParticipants();
|
||||
value.forEach(_fun37374);
|
||||
}
|
||||
}
|
||||
|
||||
function value_37375() { // fn#37375, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4570:16884, offset: 0x010a3ce0, size: 60 bytes, params: 1, frame: 12
|
||||
let value = environment.__proto__;
|
||||
value = require(4285) /* metro dependency 4285: StreamKeyUtils */;
|
||||
return {streamUserId: value.decodeStreamKey(this.streamKey).ownerId};
|
||||
}
|
||||
|
||||
function _fun37340(a0, a1) { // fn#37340, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4570:2984, offset: 0x010a1fd1, size: 160 bytes, params: 3, frame: 18
|
||||
const streamKeyUtilsModule = require(4285) /* metro dependency 4285: StreamKeyUtils */;
|
||||
const decodeStreamKey = streamKeyUtilsModule.decodeStreamKey;
|
||||
const binding = env0_0;
|
||||
const {guildId, channelId, ownerId} = Reflect.apply(decodeStreamKey, streamKeyUtilsModule, [binding.streamKey]);
|
||||
const defaultImport = importDefault(694) /* metro dependency 694: Dispatcher */;
|
||||
const dispatch = defaultImport.dispatch;
|
||||
const object2 = {type: 'RTC_CONNECTION_VIDEO', guildId: guildId, channelId: channelId, userId: ownerId,
|
||||
streamId: a0, rtcServerId: a1};
|
||||
object2.mediaEngineConnectionId = binding.getMediaEngineConnectionId();
|
||||
const STREAM = MediaEngineContextTypes.STREAM;
|
||||
object2.context = STREAM;
|
||||
Reflect.apply(dispatch, defaultImport, [object2]);
|
||||
}
|
||||
|
||||
function value_37342_superPropGet(a0, a1, a2, a3) { // fn#37343, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4570:3665, owner: value_37342._superPropGet, offset: 0x010a2123, size: 100 bytes, params: 5, frame: 18
|
||||
let value = a0;
|
||||
const env0_0 = a2;
|
||||
const binding = env2_5;
|
||||
value = env2_4(1 & 3 ? value.prototype : value);
|
||||
value = binding(value, 'destroy', a2);
|
||||
return 2 & 3 ? typeof value !== 'function' ? value : _fun37344 : value;
|
||||
}
|
||||
|
||||
function _fun37353(a0, a1, a2) { // fn#37353, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4570:4849, offset: 0x010a2390, size: 621 bytes, params: 4, frame: 19
|
||||
var _connection;
|
||||
const BaseConnectionEvent = (require(4406) /* metro dependency 4406: mediaEngine */).BaseConnectionEvent;
|
||||
const defaultImport = importDefault(694) /* metro dependency 694: Dispatcher */;
|
||||
const dispatch = defaultImport.dispatch;
|
||||
const object2 = {type: 'RTC_CONNECTION_STATE', state: a0};
|
||||
copyDataProperties(object2, a1, undefined);
|
||||
copyDataProperties(object2, a2, undefined);
|
||||
object2['streamKey'] = env0_0.streamKey;
|
||||
Reflect.apply(dispatch, defaultImport, [object2]);
|
||||
const RTC_CONNECTED = RTCConnectionStates.RTC_CONNECTED;
|
||||
if (a0 === RTC_CONNECTED) {
|
||||
_connection = env0_0._connection;
|
||||
if (_connection != null) {
|
||||
_connection.on(BaseConnectionEvent.ScreenshareFinish, _fun37354);
|
||||
}
|
||||
_connection = env0_0._connection;
|
||||
if (_connection != null) {
|
||||
_connection.on(BaseConnectionEvent.SoundshareAttached, _fun37356);
|
||||
}
|
||||
_connection = env0_0._connection;
|
||||
if (_connection != null) {
|
||||
_connection.on(BaseConnectionEvent.SoundshareFailed, _fun37357);
|
||||
}
|
||||
_connection = env0_0._connection;
|
||||
if (_connection != null) {
|
||||
_connection.on(BaseConnectionEvent.SoundshareSpeaking, _fun37358);
|
||||
}
|
||||
_connection = env0_0._connection;
|
||||
if (_connection != null) {
|
||||
_connection.on(BaseConnectionEvent.SoundshareTrace, _fun37359);
|
||||
}
|
||||
_connection = env0_0._connection;
|
||||
if (_connection != null) {
|
||||
_connection.on(BaseConnectionEvent.FirstFrameStats, _fun37361);
|
||||
}
|
||||
_connection = env0_0._connection;
|
||||
if (_connection != null) {
|
||||
_connection.on(BaseConnectionEvent.FirstFrameEncryptedStats, _fun37362);
|
||||
}
|
||||
_connection = env0_0._connection;
|
||||
if (_connection != null) {
|
||||
_connection.on(BaseConnectionEvent.Destroy, _fun37363);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
function _fun37364(a0, a1, a2, a3, a4) { // fn#37364, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4570:12237, offset: 0x010a32f7, size: 171 bytes, params: 6, frame: 15
|
||||
var binding;
|
||||
let value = environment.__proto__.__proto__;
|
||||
value = Reflect.apply((require(4285) /* metro dependency 4285: StreamKeyUtils */).decodeStreamKey, value,
|
||||
[env0_0.streamKey]);
|
||||
let r2 = value.guildId === a0 && value.channelId === a1;
|
||||
if (r2) {
|
||||
value = value.ownerId === a2;
|
||||
r2 = value;
|
||||
}
|
||||
if (r2) {
|
||||
binding = env0_0;
|
||||
value = binding.getMediaSessionId();
|
||||
value = value == null;
|
||||
if (!(value || env0_1)) {
|
||||
env0_0.trackVideoStartStats();
|
||||
}
|
||||
binding = env0_0;
|
||||
binding.updateVideoStreamId(a3, a4);
|
||||
}
|
||||
}
|
||||
|
||||
function _fun37365(a0, a1, a2, a3, a4, a5) { // fn#37365, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4570:12515, offset: 0x010a33a2, size: 94 bytes, params: 7, frame: 13
|
||||
const value = environment.__proto__.__proto__;
|
||||
(importDefault(694) /* metro dependency 694: Dispatcher */).dispatch({type: 'MEDIA_ENGINE_VIDEO_SOURCE_QUALITY_CHANGED',
|
||||
guildId: a0, channelId: a1, senderUserId: a2, maxResolution: a3, maxFrameRate: a4, context: a5});
|
||||
}
|
||||
|
||||
function _fun37366() { // fn#37366, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4570:12739, offset: 0x010a3400, size: 47 bytes, params: 1, frame: 13
|
||||
const value = environment.__proto__.__proto__;
|
||||
(importDefault(694) /* metro dependency 694: Dispatcher */).dispatch({type: 'RTC_CONNECTION_SECURE_FRAMES_UPDATE'});
|
||||
}
|
||||
|
||||
function _fun37367(a0) { // fn#37367, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4570:12865, offset: 0x010a342f, size: 57 bytes, params: 2, frame: 13
|
||||
const value = environment.__proto__.__proto__;
|
||||
(importDefault(694) /* metro dependency 694: Dispatcher */).dispatch({type: 'RTC_CONNECTION_ROSTER_MAP_UPDATE',
|
||||
userIds: a0});
|
||||
}
|
||||
|
||||
function _fun37373(a0) { // fn#37373, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4570:15647, offset: 0x010a396a, size: 479 bytes, params: 2, frame: 23
|
||||
var value3;
|
||||
var defaultImport;
|
||||
var track;
|
||||
var VIDEO_STREAM_ENDED;
|
||||
var object2;
|
||||
var binding;
|
||||
var videoStreamStats;
|
||||
var getStats;
|
||||
var soundshareStats;
|
||||
const num_frames = a0.num_frames;
|
||||
let value = null;
|
||||
const value2 = 0;
|
||||
if ((value != num_frames ? num_frames : value2) > value2) {
|
||||
value3 = environment.__proto__.__proto__;
|
||||
defaultImport = importDefault(683) /* metro dependency 683: AnalyticsUtils */;
|
||||
track = defaultImport.track;
|
||||
VIDEO_STREAM_ENDED = AnalyticEvents.VIDEO_STREAM_ENDED;
|
||||
object2 = {};
|
||||
copyDataProperties(object2, env0_3, undefined);
|
||||
copyDataProperties(object2, env0_2, undefined);
|
||||
copyDataProperties(object2, env0_6, undefined);
|
||||
binding = env0_0;
|
||||
videoStreamStats = binding.videoStreamStats;
|
||||
getStats = videoStreamStats.getStats;
|
||||
copyDataProperties(object2, Reflect.apply(getStats, videoStreamStats, []), videoStreamStats);
|
||||
copyDataProperties(object2, a0, videoStreamStats);
|
||||
soundshareStats = binding.soundshareStats;
|
||||
getStats = soundshareStats.getStats;
|
||||
copyDataProperties(object2, Reflect.apply(getStats, soundshareStats, []), videoStreamStats);
|
||||
copyDataProperties(object2, binding.getStreamAnalyticsProperties(), videoStreamStats);
|
||||
copyDataProperties(object2, env0_7, videoStreamStats);
|
||||
copyDataProperties(object2, env0_8, videoStreamStats);
|
||||
object2['app_hardware_acceleration_enabled'] = (importDefault(4488) /* metro dependency 4488: CrossPlatformNativeUtilsNative */).getAppHardwareAccelerationEnabled();
|
||||
object2['channel_type'] = type;
|
||||
object2['reason'] = env0_1;
|
||||
object2['max_viewers'] = binding.analyticsContext.maxViewers;
|
||||
object2['hostname'] = binding.hostname;
|
||||
object2['hardware_enabled'] = MediaEngineStore.getHardwareEncoding();
|
||||
object2['device_performance_class'] = binding.isOwner ? (importDefault(5252) /* metro dependency 5252: getMediaPerformanceClassAndroid */)() : value;
|
||||
value = MediaEngineStore.getExperimentalSoundshare();
|
||||
object2['soundshare_experimental'] = value;
|
||||
object2['quality_preset'] = ApplicationStreamingSettingsStore.getState().preset;
|
||||
value = importDefault(4488) /* metro dependency 4488: CrossPlatformNativeUtilsNative */;
|
||||
value = value.getDiscordIsElevated();
|
||||
object2['discord_is_elevated'] = value;
|
||||
Reflect.apply(track, defaultImport, [VIDEO_STREAM_ENDED, object2]);
|
||||
}
|
||||
}
|
||||
|
||||
function _fun37374(a0) { // fn#37374, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4570:16314, offset: 0x010a3b49, size: 407 bytes, params: 2, frame: 23
|
||||
var value6;
|
||||
var defaultImport;
|
||||
var track;
|
||||
var VIDEO_STREAM_ENDED;
|
||||
var object2;
|
||||
var binding;
|
||||
var videoStreamStats;
|
||||
var getStats;
|
||||
var soundshareStats;
|
||||
const inboundStats = _videoQuality.getInboundStats(a0);
|
||||
const value3 = null;
|
||||
const value4 = undefined;
|
||||
const num_frames = value3 == inboundStats ? value4 : inboundStats.num_frames;
|
||||
const value5 = 0;
|
||||
if ((value3 != num_frames ? num_frames : value5) > value5) {
|
||||
value6 = environment.__proto__.__proto__;
|
||||
defaultImport = importDefault(683) /* metro dependency 683: AnalyticsUtils */;
|
||||
track = defaultImport.track;
|
||||
VIDEO_STREAM_ENDED = AnalyticEvents.VIDEO_STREAM_ENDED;
|
||||
object2 = {};
|
||||
copyDataProperties(object2, env0_3, undefined);
|
||||
copyDataProperties(object2, env0_2, undefined);
|
||||
copyDataProperties(object2, env0_6, undefined);
|
||||
binding = env0_0;
|
||||
videoStreamStats = binding.videoStreamStats;
|
||||
getStats = videoStreamStats.getStats;
|
||||
copyDataProperties(object2, Reflect.apply(getStats, videoStreamStats, []), videoStreamStats);
|
||||
copyDataProperties(object2, inboundStats, videoStreamStats);
|
||||
soundshareStats = binding.soundshareStats;
|
||||
getStats = soundshareStats.getStats;
|
||||
copyDataProperties(object2, Reflect.apply(getStats, soundshareStats, []), videoStreamStats);
|
||||
copyDataProperties(object2, binding.getStreamAnalyticsProperties(), videoStreamStats);
|
||||
copyDataProperties(object2, env0_7, videoStreamStats);
|
||||
copyDataProperties(object2, env0_8, videoStreamStats);
|
||||
object2['app_hardware_acceleration_enabled'] = (importDefault(4488) /* metro dependency 4488: CrossPlatformNativeUtilsNative */).getAppHardwareAccelerationEnabled();
|
||||
object2['channel_type'] = type;
|
||||
object2['reason'] = env0_1;
|
||||
object2['max_viewers'] = binding.analyticsContext.maxViewers;
|
||||
object2['hostname'] = binding.hostname;
|
||||
object2['hardware_enabled'] = MediaEngineStore.getHardwareEncoding();
|
||||
object2['device_performance_class'] = binding.isOwner ? (importDefault(5252) /* metro dependency 5252: getMediaPerformanceClassAndroid */)() : value3;
|
||||
Reflect.apply(track, defaultImport, [VIDEO_STREAM_ENDED, object2]);
|
||||
}
|
||||
return value4;
|
||||
}
|
||||
|
||||
function _fun37354(a0, a1, a2, a3, a4, a5, a6, a7, a8, a9, a10, a11, a12, a13, a14, a15, a16, a17, a18, a19, a20, a21, a22, a23, a24, a25) { // fn#37354, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4570:5077, offset: 0x010a25fd, size: 442 bytes, params: 27, frame: 20
|
||||
let value = a9;
|
||||
const value2 = a10;
|
||||
const value3 = a11;
|
||||
const value4 = a12;
|
||||
const value5 = a13;
|
||||
const env0_0 = a0;
|
||||
const env0_1 = a1;
|
||||
const env0_2 = a2;
|
||||
const env0_3 = a3;
|
||||
const env0_4 = a4;
|
||||
const env0_5 = a5;
|
||||
const env0_6 = a6;
|
||||
const env0_7 = a7;
|
||||
const env0_8 = a8;
|
||||
const env0_14 = a14;
|
||||
const env0_15 = a15;
|
||||
const env0_16 = a16;
|
||||
const env0_17 = a17;
|
||||
const env0_18 = a18;
|
||||
const env0_19 = a19;
|
||||
const env0_20 = a20;
|
||||
const env0_21 = a21;
|
||||
const env0_22 = a22;
|
||||
const env0_23 = a23;
|
||||
const env0_24 = a24;
|
||||
const env0_25 = a25;
|
||||
const binding = env1_0;
|
||||
const analyticsContext = binding.analyticsContext;
|
||||
const getStreamApplicationFromHistory = analyticsContext.getStreamApplicationFromHistory;
|
||||
let screenshareFinishedCount = binding.screenshareFinishedCount;
|
||||
const value7 = Reflect.apply(getStreamApplicationFromHistory, analyticsContext, [screenshareFinishedCount]);
|
||||
screenshareFinishedCount = binding.screenshareFinishedCount;
|
||||
binding.screenshareFinishedCount = typeof screenshareFinishedCount === 'bigint' ? screenshareFinishedCount + 1n : +screenshareFinishedCount + 1;
|
||||
const runningGameAnalytics = (require(4482) /* metro dependency 4482: GameAnalyticsUtils */).getRunningGameAnalytics(value7);
|
||||
const env0_26 = runningGameAnalytics.gameName;
|
||||
const env0_27 = runningGameAnalytics.gameId;
|
||||
const env0_28 = runningGameAnalytics.exe;
|
||||
const env0_29 = runningGameAnalytics.distributor;
|
||||
const env0_30 = binding.getMediaSessionId();
|
||||
const env0_31 = binding.getRTCConnectionId();
|
||||
const value10 = 0;
|
||||
value = (value ?? value10) + (value2 ?? value10);
|
||||
value += value3 ?? value10;
|
||||
value += value4 ?? value10;
|
||||
const env0_32 = value + (value5 ?? value10);
|
||||
getSystemAnalyticsInfo().then(_fun37355);
|
||||
}
|
||||
|
||||
function _fun37356() { // fn#37356, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4570:6981, offset: 0x010a2b18, size: 148 bytes, params: 1, frame: 19
|
||||
var defaultImport;
|
||||
var track;
|
||||
var SOUNDSHARE_ATTACHED;
|
||||
var object2;
|
||||
var binding;
|
||||
let value = environment.__proto__.__proto__.__proto__;
|
||||
const goLiveSource = MediaEngineStore.getGoLiveSource();
|
||||
const value3 = undefined;
|
||||
if ((goLiveSource == null ? value3 : goLiveSource.desktopSource) != null) {
|
||||
defaultImport = importDefault(dependencyMap[28]);
|
||||
track = defaultImport.track;
|
||||
SOUNDSHARE_ATTACHED = AnalyticEvents.SOUNDSHARE_ATTACHED;
|
||||
object2 = {};
|
||||
value = importDefault(dependencyMap[30]);
|
||||
copyDataProperties(object2, value(goLiveSource == null ? value3 : goLiveSource.desktopSource), dependencyMap);
|
||||
value = environment.__proto__;
|
||||
binding = env1_0;
|
||||
copyDataProperties(object2, binding.getSoundshareAnalyticsProperties(), dependencyMap);
|
||||
Reflect.apply(track, defaultImport, [SOUNDSHARE_ATTACHED, object2]);
|
||||
}
|
||||
return value3;
|
||||
}
|
||||
|
||||
function _fun37357({failureCode, failureReason, willRetry}) { // fn#37357, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4570:7263, offset: 0x010a2bac, size: 91 bytes, params: 2, frame: 20
|
||||
let value = environment.__proto__.__proto__.__proto__;
|
||||
value = MediaEngineStore.getGoLiveSource();
|
||||
const binding = env1_0;
|
||||
binding.reportSoundshareFailure(value?.desktopSource, failureCode, failureReason, willRetry);
|
||||
}
|
||||
|
||||
function _fun37358() { // fn#37358, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4570:7490, offset: 0x010a2c07, size: 222 bytes, params: 1, frame: 20
|
||||
var defaultImport;
|
||||
var track;
|
||||
var SOUNDSHARE_TRANSMITTING;
|
||||
var object2;
|
||||
var defaultImport2;
|
||||
var value4;
|
||||
var value5;
|
||||
var binding;
|
||||
const value = environment.__proto__.__proto__.__proto__;
|
||||
const goLiveSource = MediaEngineStore.getGoLiveSource();
|
||||
const value3 = undefined;
|
||||
if ((goLiveSource == null ? value3 : goLiveSource.desktopSource) != null) {
|
||||
defaultImport = importDefault(683) /* metro dependency 683: AnalyticsUtils */;
|
||||
track = defaultImport.track;
|
||||
SOUNDSHARE_TRANSMITTING = AnalyticEvents.SOUNDSHARE_TRANSMITTING;
|
||||
object2 = {};
|
||||
defaultImport2 = importDefault(4489) /* metro dependency 4489: getSoundshareAnalyticsContext */;
|
||||
value4 = goLiveSource == null;
|
||||
copyDataProperties(object2, defaultImport2(value4 ? value3 : goLiveSource.desktopSource), value4);
|
||||
value5 = environment.__proto__;
|
||||
binding = env1_0;
|
||||
copyDataProperties(object2, binding.getSoundshareAnalyticsProperties(), value4);
|
||||
Reflect.apply(track, defaultImport, [SOUNDSHARE_TRANSMITTING, object2]);
|
||||
if (HookErrorStore.getHookError(MediaEngineHookTypes.SOUND) != null) {
|
||||
(importDefault(694) /* metro dependency 694: Dispatcher */).dispatch({type: 'MEDIA_ENGINE_SOUNDSHARE_TRANSMITTING'});
|
||||
}
|
||||
}
|
||||
return value3;
|
||||
}
|
||||
|
||||
function _fun37359(a0) { // fn#37359, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4570:7873, offset: 0x010a2ce5, size: 404 bytes, params: 2, frame: 22
|
||||
var environment;
|
||||
var errorTimer;
|
||||
var reason;
|
||||
var code;
|
||||
var retry;
|
||||
var binding;
|
||||
let value = environment.__proto__.__proto__.__proto__;
|
||||
const goLiveSource = MediaEngineStore.getGoLiveSource();
|
||||
const soundshareStats = env1_0.soundshareStats;
|
||||
const value4 = undefined;
|
||||
soundshareStats.traceEvent(goLiveSource == null || goLiveSource.desktopSource == null ? value4 : goLiveSource.desktopSource.soundshareSession,
|
||||
a0);
|
||||
const type = a0.type;
|
||||
if (type === 'soundshare_attach_requested') {
|
||||
errorTimer = env1_0.errorTimer;
|
||||
errorTimer.start(env3_23, _fun37360);
|
||||
} else if (type === 'soundshare_recv_failed') {
|
||||
reason = a0.reason;
|
||||
code = a0.code;
|
||||
retry = a0.retry;
|
||||
if ((goLiveSource == null ? value4 : goLiveSource.desktopSource) != null) {
|
||||
binding = env1_0;
|
||||
binding.reportSoundshareFailure(goLiveSource == null ? value4 : goLiveSource.desktopSource, code, reason,
|
||||
retry);
|
||||
if (!retry) {
|
||||
env1_0.errorTimer.stop();
|
||||
value = importDefault(694) /* metro dependency 694: Dispatcher */;
|
||||
value.dispatch({type: 'MEDIA_ENGINE_SOUNDSHARE_FAILED', errorMessage: reason, errorCode: code});
|
||||
}
|
||||
}
|
||||
} else if (type === 'soundshare_state_transition') {
|
||||
if (a0.newState === env3_24.PLAYING) {
|
||||
env1_0.errorTimer.stop();
|
||||
(importDefault(694) /* metro dependency 694: Dispatcher */).dispatch({type: 'MEDIA_ENGINE_SOUNDSHARE_TRANSMITTING'});
|
||||
}
|
||||
}
|
||||
return value4;
|
||||
}
|
||||
|
||||
function _fun37361(a0) { // fn#37361, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4570:8706, offset: 0x010a2eac, size: 651 bytes, params: 2, frame: 20
|
||||
var r4;
|
||||
var binding;
|
||||
var value2;
|
||||
var defaultImport;
|
||||
var track;
|
||||
var RECEIVER_FIRST_FRAME_DELIVERED;
|
||||
var object2;
|
||||
var remoteVideoStreamCreatedTimestamp;
|
||||
let value = environment.__proto__;
|
||||
if (!env1_0._firstFrameDelivered) {
|
||||
binding = env1_0;
|
||||
binding._firstFrameDelivered = true;
|
||||
value = binding.getStreamAnalyticsProperties();
|
||||
value2 = environment.__proto__.__proto__.__proto__;
|
||||
defaultImport = importDefault(683) /* metro dependency 683: AnalyticsUtils */;
|
||||
track = defaultImport.track;
|
||||
RECEIVER_FIRST_FRAME_DELIVERED = AnalyticEvents.RECEIVER_FIRST_FRAME_DELIVERED;
|
||||
object2 = {};
|
||||
object2.guild_id = value.guild_id;
|
||||
object2.channel_id = value.channel_id;
|
||||
object2.rtc_connection_id = value.rtc_connection_id;
|
||||
object2.media_session_id = value.media_session_id;
|
||||
object2.parent_media_session_id = value.parent_media_session_id;
|
||||
object2.num_viewers = binding.analyticsContext.numViewers;
|
||||
object2.time_connected_to_first_frame_delivered = binding.getDuration();
|
||||
value = require(4303) /* metro dependency 4303: TimeUtils */;
|
||||
value = value.now();
|
||||
object2.time_total_to_first_frame = value - binding.getCreatedTime();
|
||||
remoteVideoStreamCreatedTimestamp = a0.remoteVideoStreamCreatedTimestamp;
|
||||
value = null;
|
||||
r4 = remoteVideoStreamCreatedTimestamp === undefined || a0.remoteUserCreatedTimestamp === undefined ? value : global.Number(a0.remoteVideoStreamCreatedTimestamp - a0.remoteUserCreatedTimestamp);
|
||||
object2.time_remote_user_to_video_stream_created = r4;
|
||||
r4 = a0.videoDataReceivedTimestamp === undefined || a0.remoteVideoStreamCreatedTimestamp === undefined ? value : global.Number(a0.videoDataReceivedTimestamp - a0.remoteVideoStreamCreatedTimestamp);
|
||||
object2.time_video_stream_created_to_video_data_received = r4;
|
||||
r4 = a0.videoSourceDeliveredFrameTimestamp === undefined || a0.videoDataReceivedTimestamp === undefined ? value : global.Number(a0.videoSourceDeliveredFrameTimestamp - a0.videoDataReceivedTimestamp);
|
||||
object2.time_video_data_received_to_video_source_delivered_frame = r4;
|
||||
r4 = a0.updateMLSExternalSenderTimestamp === undefined || a0.remoteUserCreatedTimestamp === undefined ? value : global.Number(a0.updateMLSExternalSenderTimestamp - a0.remoteUserCreatedTimestamp);
|
||||
object2.time_remote_user_to_mls_external_sender_updated = r4;
|
||||
r4 = a0.setRemoteSecureFrameKeyRatchetTimestamp === undefined || a0.remoteUserCreatedTimestamp === undefined ? value : global.Number(a0.setRemoteSecureFrameKeyRatchetTimestamp - a0.remoteUserCreatedTimestamp);
|
||||
object2.time_remote_user_to_secure_frame_remote_key_ratchet_set = r4;
|
||||
r4 = a0.setLocalSecureFrameKeyRatchetTimestamp === undefined || a0.remoteUserCreatedTimestamp === undefined ? value : global.Number(a0.setLocalSecureFrameKeyRatchetTimestamp - a0.remoteUserCreatedTimestamp);
|
||||
object2.time_remote_user_to_secure_frame_local_key_ratchet_set = r4;
|
||||
r4 = a0.firstFrameDecryptedTimestamp === undefined || a0.remoteUserCreatedTimestamp === undefined ? value : global.Number(a0.firstFrameDecryptedTimestamp - a0.remoteUserCreatedTimestamp);
|
||||
object2.time_remote_user_to_first_frame_decrypted = r4;
|
||||
Reflect.apply(track, defaultImport, [RECEIVER_FIRST_FRAME_DELIVERED, object2]);
|
||||
}
|
||||
}
|
||||
|
||||
function _fun37362(a0) { // fn#37362, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4570:10786, offset: 0x010a3137, size: 421 bytes, params: 2, frame: 20
|
||||
let value = environment.__proto__;
|
||||
value = env1_0.getStreamAnalyticsProperties();
|
||||
const defaultImport = importDefault(683) /* metro dependency 683: AnalyticsUtils */;
|
||||
const track = defaultImport.track;
|
||||
const STREAMER_FIRST_FRAME_ENCRYPTED = AnalyticEvents.STREAMER_FIRST_FRAME_ENCRYPTED;
|
||||
const object2 = {};
|
||||
object2.guild_id = value.guild_id;
|
||||
object2.channel_id = value.channel_id;
|
||||
object2.rtc_connection_id = value.rtc_connection_id;
|
||||
object2.media_session_id = value.media_session_id;
|
||||
object2.parent_media_session_id = value.parent_media_session_id;
|
||||
const videoReceiversSetTimestamp = a0.videoReceiversSetTimestamp;
|
||||
value = null;
|
||||
object2.time_local_user_to_video_receivers_set = videoReceiversSetTimestamp === undefined || a0.localUserCreatedTimestamp === undefined ? value : global.Number(a0.videoReceiversSetTimestamp - a0.localUserCreatedTimestamp);
|
||||
object2.time_local_user_to_mls_external_sender_updated = a0.updateMLSExternalSenderTimestamp === undefined || a0.localUserCreatedTimestamp === undefined ? value : global.Number(a0.updateMLSExternalSenderTimestamp - a0.localUserCreatedTimestamp);
|
||||
object2.time_local_user_to_secure_frame_remote_key_ratchet_set = a0.setRemoteSecureFrameKeyRatchetTimestamp === undefined || a0.localUserCreatedTimestamp === undefined ? value : global.Number(a0.setRemoteSecureFrameKeyRatchetTimestamp - a0.localUserCreatedTimestamp);
|
||||
object2.time_local_user_to_secure_frame_local_key_ratchet_set = a0.setLocalSecureFrameKeyRatchetTimestamp === undefined || a0.localUserCreatedTimestamp === undefined ? value : global.Number(a0.setLocalSecureFrameKeyRatchetTimestamp - a0.localUserCreatedTimestamp);
|
||||
object2.time_local_user_to_first_frame_encrypted = a0.firstFrameEncryptedTimestamp === undefined || a0.localUserCreatedTimestamp === undefined ? value : global.Number(a0.firstFrameEncryptedTimestamp - a0.localUserCreatedTimestamp);
|
||||
Reflect.apply(track, defaultImport, [STREAMER_FIRST_FRAME_ENCRYPTED, object2]);
|
||||
}
|
||||
|
||||
function _fun37363() { // fn#37363, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4570:12158, offset: 0x010a32dc, size: 27 bytes, params: 1, frame: 9
|
||||
env1_0.errorTimer.stop();
|
||||
}
|
||||
|
||||
function _fun37355(a0) { // fn#37355, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4570:5484, offset: 0x010a27b7, size: 865 bytes, params: 2, frame: 22
|
||||
let value = null;
|
||||
const r5 = value != a0 ? {cpu_brand: a0.cpu_brand, cpu_vendor: a0.cpu_vendor, cpu_memory: a0.cpu_memory,
|
||||
gpu_brand: a0.gpu_brand, gpu_memory: a0.gpu_memory} : value;
|
||||
const value3 = 0;
|
||||
const value13 = (value != env0_0 ? env0_0 : value3) + (value != require ? require : value3) + (value != importDefault ? importDefault : value3) + (value != importAll ? importAll : value3) + (value != env0_4 ? env0_4 : value3) + (value != env0_5 ? env0_5 : value3) + (value != env0_15 ? env0_15 : value3) + (value != env0_19 ? env0_19 : value3) + (value != env0_18 ? env0_18 : value3) + (value != env0_24 ? env0_24 : value3) + (value != env0_23 ? env0_23 : value3);
|
||||
const defaultImport = importDefault(dependencyMap[28]);
|
||||
const track = defaultImport.track;
|
||||
const SCREENSHARE_FINISHED = AnalyticEvents.SCREENSHARE_FINISHED;
|
||||
const object2 = {screenshare_frames: env0_0};
|
||||
object2.videohook_frames = require;
|
||||
object2.hybrid_dxgi_frames = importDefault;
|
||||
object2.hybrid_gdi_frames = importAll;
|
||||
object2.hybrid_videohook_frames = env0_4;
|
||||
object2.hybrid_graphics_capture_frames = env0_5;
|
||||
object2.hybrid_capture_method_switches = dependencyMap;
|
||||
object2.hybrid_gdi_bitblt_frames = env0_7;
|
||||
object2.hybrid_gdi_printwindow_frames = env0_8;
|
||||
object2.hybrid_graphics_capture_frames_unique = env0_9;
|
||||
object2.hybrid_dxgi_frames_unique = env0_10;
|
||||
object2.hybrid_videohook_frames_unique = env0_11;
|
||||
object2.hybrid_gdi_bitblt_frames_unique = env0_12;
|
||||
object2.hybrid_gdi_printwindow_frames_unique = env0_13;
|
||||
object2.skip_history_json = env0_14;
|
||||
object2.quartz_frames = env0_15;
|
||||
object2.screencapturekit_frames = env0_19;
|
||||
object2.go_live_camera_frames = env0_18;
|
||||
object2.total_frames = value13;
|
||||
object2.total_frames_unique = env0_32;
|
||||
object2.desktop_capturer_type = env0_16;
|
||||
object2.media_session_id = env0_30;
|
||||
object2.rtc_connection_id = env0_31;
|
||||
const STREAM = MediaEngineContextTypes.STREAM;
|
||||
object2.context = STREAM;
|
||||
object2.activity = env0_17;
|
||||
const binding = env2_0;
|
||||
const soundshareStats = binding.soundshareStats;
|
||||
const getStats = soundshareStats.getStats;
|
||||
object2.soundshare_session = Reflect.apply(getStats, soundshareStats, []).soundshare_last_session;
|
||||
const nativePickerStyleUsed = binding.analyticsContext.nativePickerStyleUsed;
|
||||
value = 'internal';
|
||||
object2.picker_type_used = value != nativePickerStyleUsed ? 'native' : value;
|
||||
object2.duration = env2_0.analyticsContext.getDuration();
|
||||
object2.share_game_name = gameName;
|
||||
object2.share_game_id = gameId;
|
||||
object2.share_game_exe = exe;
|
||||
object2.share_game_distributor = distributor;
|
||||
object2.hdr_frames_capable = env0_20;
|
||||
object2.hdr_frames = env0_21;
|
||||
object2.discord_is_elevated = importDefault(dependencyMap[29]).getDiscordIsElevated();
|
||||
object2.target_window_elevated = env0_22;
|
||||
object2.pipewire_frames = env0_23;
|
||||
object2.x11_frames = env0_24;
|
||||
object2.videohook_backend = env0_25;
|
||||
copyDataProperties(object2, r5, soundshareStats);
|
||||
Reflect.apply(track, defaultImport, [SCREENSHARE_FINISHED, object2]);
|
||||
}
|
||||
|
||||
function _fun37360() { // fn#37360, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4570:8076, offset: 0x010a2e79, size: 51 bytes, params: 1, frame: 12
|
||||
const value = environment.__proto__.__proto__.__proto__.__proto__;
|
||||
(importDefault(694) /* metro dependency 694: Dispatcher */).dispatch({'type': 'MEDIA_ENGINE_SOUNDSHARE_FAILED',
|
||||
'errorMessage': 'Sound Hook Failed'});
|
||||
}
|
||||
|
||||
@@ -0,0 +1,307 @@
|
||||
/* Metro module 4282; source: modules/go_live/StreamSettingsConstants.tsx; dependencies: [661, 1880, 1244, 2] */
|
||||
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;
|
||||
var env0_1 = a1;
|
||||
var 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;
|
||||
};
|
||||
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;
|
||||
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;
|
||||
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;
|
||||
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;
|
||||
items7[3] = {resolution: RESOLUTION_SOURCE, fps: FPS_5, preset: PRESET_DOCUMENTS};
|
||||
let RESOLUTION_1440 = object4.RESOLUTION_1440;
|
||||
FPS_60 = object5.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;
|
||||
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;
|
||||
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;
|
||||
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;
|
||||
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;
|
||||
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 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;
|
||||
items7[11] = {resolution: RESOLUTION_720, fps: FPS_30};
|
||||
RESOLUTION_720 = object4.RESOLUTION_720;
|
||||
FPS_15 = object5.FPS_15;
|
||||
items7[12] = {resolution: RESOLUTION_720, fps: FPS_15};
|
||||
RESOLUTION_720 = object4.RESOLUTION_720;
|
||||
FPS_5 = object5.FPS_5;
|
||||
items7[13] = {resolution: RESOLUTION_720, fps: FPS_5};
|
||||
let RESOLUTION_480 = object4.RESOLUTION_480;
|
||||
FPS_60 = object5.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;
|
||||
items7[15] = {resolution: RESOLUTION_480, fps: FPS_30};
|
||||
RESOLUTION_480 = object4.RESOLUTION_480;
|
||||
FPS_15 = object5.FPS_15;
|
||||
items7[16] = {resolution: RESOLUTION_480, fps: FPS_15};
|
||||
RESOLUTION_480 = object4.RESOLUTION_480;
|
||||
FPS_5 = object5.FPS_5;
|
||||
items7[17] = {resolution: RESOLUTION_480, fps: FPS_5};
|
||||
RESOLUTION_720 = object4.RESOLUTION_720;
|
||||
const items2 = [closure(RESOLUTION_720)];
|
||||
RESOLUTION_1080 = object4.RESOLUTION_1080;
|
||||
items2[1] = closure(RESOLUTION_1080);
|
||||
RESOLUTION_1440 = object4.RESOLUTION_1440;
|
||||
items2[2] = closure(RESOLUTION_1440);
|
||||
RESOLUTION_SOURCE = object4.RESOLUTION_SOURCE;
|
||||
items2[3] = closure(RESOLUTION_SOURCE, function() {
|
||||
return require(dependencyMap[2]).intl.string(require(dependencyMap[2]).t.XjXqzh);
|
||||
});
|
||||
RESOLUTION_720 = object4.RESOLUTION_720;
|
||||
const items3 = [closure(RESOLUTION_720)];
|
||||
RESOLUTION_1080 = object4.RESOLUTION_1080;
|
||||
items3[1] = closure(RESOLUTION_1080);
|
||||
RESOLUTION_1440 = object4.RESOLUTION_1440;
|
||||
items3[2] = closure(RESOLUTION_1440);
|
||||
const closure2 = makeResolutionLabel;
|
||||
RESOLUTION_480 = object4.RESOLUTION_480;
|
||||
const items4 = [closure(RESOLUTION_480, _fun36320)];
|
||||
RESOLUTION_720 = object4.RESOLUTION_720;
|
||||
items4[1] = closure(RESOLUTION_720, _fun36321);
|
||||
RESOLUTION_1080 = object4.RESOLUTION_1080;
|
||||
items4[2] = closure(RESOLUTION_1080, _fun36322);
|
||||
RESOLUTION_1440 = object4.RESOLUTION_1440;
|
||||
items4[3] = closure(RESOLUTION_1440, _fun36323);
|
||||
RESOLUTION_SOURCE = object4.RESOLUTION_SOURCE;
|
||||
items4[4] = closure(RESOLUTION_SOURCE, _fun36324);
|
||||
FPS_15 = object5.FPS_15;
|
||||
const items5 = [closure(FPS_15)];
|
||||
FPS_30 = object5.FPS_30;
|
||||
items5[1] = closure(FPS_30);
|
||||
FPS_60 = object5.FPS_60;
|
||||
items5[2] = closure(FPS_60);
|
||||
FPS_15 = object5.FPS_15;
|
||||
const items6 = [closure(FPS_15, _fun36325)];
|
||||
FPS_30 = object5.FPS_30;
|
||||
items6[1] = closure(FPS_30, _fun36326);
|
||||
FPS_60 = object5.FPS_60;
|
||||
items6[2] = closure(FPS_60, _fun36327);
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/go_live/StreamSettingsConstants.tsx');
|
||||
exports.ApplicationStreamResolutions = object4;
|
||||
exports.getApplicationResolution = getApplicationResolution;
|
||||
exports.ApplicationStreamFPS = object5;
|
||||
exports.ApplicationStreamPresets = object6;
|
||||
exports.getApplicationFramerate = getApplicationFramerate;
|
||||
exports.ApplicationStreamSettingRequirements = items7;
|
||||
exports.ApplicationStreamResolutionButtons = items2;
|
||||
exports.GoLiveDeviceResolutionButtons = items3;
|
||||
exports.makeResolutionLabel = closure2;
|
||||
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 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 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;
|
||||
}
|
||||
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;
|
||||
}
|
||||
|
||||
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?.();
|
||||
}
|
||||
|
||||
@@ -0,0 +1,142 @@
|
||||
/* Metro module 4404; source: modules/go_live/VideoStreamStats.tsx; dependencies: [6, 7, 4399, 661, 4041, 4303, 2] */
|
||||
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) {
|
||||
var r0;
|
||||
var value = a1;
|
||||
r0 = value !== undefined ? value : 0;
|
||||
r0 = a0 != null ? global.Math.round(a0) : r0;
|
||||
return r0;
|
||||
};
|
||||
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');
|
||||
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;
|
||||
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 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;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,11 @@
|
||||
/* Metro module 15485; source: modules/go_live/native/AndroidAudioCaptureBugWarningExperiment.tsx; dependencies: [1854, 2] */
|
||||
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 */;
|
||||
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');
|
||||
exports.default = value;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,109 @@
|
||||
/* 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] */
|
||||
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 */;
|
||||
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');
|
||||
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) {
|
||||
}
|
||||
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 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_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);
|
||||
}
|
||||
|
||||
@@ -0,0 +1,349 @@
|
||||
/* 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] */
|
||||
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]);
|
||||
const PRESET_MOBILE_DEFAULT = ApplicationStreamPresets.PRESET_MOBILE_DEFAULT;
|
||||
const items2 = [{preset: PRESET_MOBILE_DEFAULT, enabled: true}];
|
||||
object2 = {};
|
||||
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;
|
||||
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) {
|
||||
return a0.enabled;
|
||||
}).map(function(a0) {
|
||||
return a0.preset;
|
||||
});
|
||||
value = value.memo(MobileGoLiveActionSheet);
|
||||
(require(2) /* metro dependency 2 */).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 = (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 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 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 _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};
|
||||
}
|
||||
(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');
|
||||
}
|
||||
} 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 = (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();
|
||||
}
|
||||
|
||||
@@ -0,0 +1,12 @@
|
||||
/* Metro module 10801; source: modules/go_live/native/MobileGoLiveUpsellExperiment.tsx; dependencies: [1854, 2] */
|
||||
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 */;
|
||||
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');
|
||||
exports.default = value;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,198 @@
|
||||
/* 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] */
|
||||
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 */;
|
||||
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,
|
||||
'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;
|
||||
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'};
|
||||
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');
|
||||
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 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]);
|
||||
}
|
||||
|
||||
@@ -0,0 +1,414 @@
|
||||
/* 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] */
|
||||
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');
|
||||
(logger2 instanceof Object ? logger2 : value5).enableNativeLogger(true);
|
||||
const Timeout = (require(4041) /* metro dependency 4041: Timers */).Timeout;
|
||||
let timeout = new Timeout();
|
||||
timeout = new Timeout();
|
||||
const env0_23 = [];
|
||||
const env0_24 = _fun38265();
|
||||
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');
|
||||
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) {
|
||||
}
|
||||
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, [])) {
|
||||
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);
|
||||
}
|
||||
if (currentAppIntent != null) {
|
||||
Linking.openURL(getAppIntentScheme(currentAppIntent));
|
||||
}
|
||||
}
|
||||
} 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 _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 = 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);
|
||||
}
|
||||
|
||||
@@ -0,0 +1,61 @@
|
||||
/* Metro module 10271; source: modules/go_live/useFetchStreamPreview.tsx; dependencies: [31, 8914, 1379, 3784, 1934, 482, 566, 8913, 2] */
|
||||
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');
|
||||
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 _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 _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);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,67 @@
|
||||
/* Metro module 10690; source: modules/go_live/useStreamError.tsx; dependencies: [10672, 9235, 566, 2] */
|
||||
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;
|
||||
const STREAM_SOUNDSHARE_FAILED = AVError.STREAM_SOUNDSHARE_FAILED;
|
||||
object2[STREAM_SOUNDSHARE_FAILED] = 0;
|
||||
const STREAM_SEND_HIGH_PACKET_LOSS = AVError.STREAM_SEND_HIGH_PACKET_LOSS;
|
||||
object2[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;
|
||||
const STREAM_SEND_LOW_FPS = AVError.STREAM_SEND_LOW_FPS;
|
||||
object2[STREAM_SEND_LOW_FPS] = 2;
|
||||
const STREAM_VIEW_LOW_FPS = AVError.STREAM_VIEW_LOW_FPS;
|
||||
object2[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');
|
||||
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 (require(566) /* metro dependency 566: flux */).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 _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);
|
||||
}
|
||||
|
||||
@@ -0,0 +1,50 @@
|
||||
/* Metro module 4285; source: modules/go_live/utils/StreamKeyUtils.tsx; dependencies: [57, 4286, 2] */
|
||||
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');
|
||||
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 = 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;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,265 @@
|
||||
/* Metro module 7118; source: modules/go_live/utils/StreamPermissionUtils.tsx; dependencies: [4295, 1383, 1935, 1867, 3784, 4297, 661, 4808, 1244, 4800, 5072, 566, 2] */
|
||||
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;
|
||||
var r1;
|
||||
var r2;
|
||||
var value3;
|
||||
var length;
|
||||
var value5;
|
||||
var value = undefined;
|
||||
var value2 = value == null;
|
||||
reducibleJoin2: while (true) {
|
||||
if (value2) {
|
||||
r0 = value2;
|
||||
break reducibleJoin2;
|
||||
}
|
||||
value3 = value > a0.length;
|
||||
r0 = value3;
|
||||
break reducibleJoin2;
|
||||
}
|
||||
reducibleJoin4: while (true) {
|
||||
if (r0) {
|
||||
length = a0.length;
|
||||
r1 = length;
|
||||
break reducibleJoin4;
|
||||
}
|
||||
r1 = value;
|
||||
break reducibleJoin4;
|
||||
}
|
||||
value = (0, global.Array)(r1);
|
||||
var value4 = 0;
|
||||
if (value4 < r1) {
|
||||
r2 = value4;
|
||||
reducibleLoop5: while (true) {
|
||||
value[r2] = a0[r2];
|
||||
value5 = typeof r2 === 'bigint' ? r2 + 1n : +r2 + 1;
|
||||
if (value5 < r1) {
|
||||
r2 = value5;
|
||||
continue reducibleLoop5;
|
||||
}
|
||||
break reducibleLoop5;
|
||||
}
|
||||
}
|
||||
return value;
|
||||
};
|
||||
const closure = canStreamInChannel;
|
||||
const closure2 = 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;
|
||||
exports.getStreamCTAString = getStreamCTAString;
|
||||
exports.getStreamCTAAriaLabel = getStreamCTAAriaLabel;
|
||||
exports.StreamUnavailableReasons = object2;
|
||||
exports.canWatchStream = closure2;
|
||||
exports.useCanWatchStream = function(a0) {
|
||||
var env0_0 = a0;
|
||||
return require(dependencyMap[11]).useStateFromStoresArray([VoiceStateStore, GuildStore, PermissionStore,
|
||||
GameConsoleStore], _fun56936);
|
||||
};
|
||||
exports.getStreamEligibleChannels = function(a0, a1, a2) {
|
||||
var r2;
|
||||
var channel;
|
||||
var value4;
|
||||
var items = [];
|
||||
var value2 = _createForOfIteratorHelperLoose_56928(a0[GUILD_VOCAL_CHANNELS_KEY]);
|
||||
var value3 = value2();
|
||||
if (!value3.done) {
|
||||
r2 = value3;
|
||||
while (true) {
|
||||
channel = r2.value.channel;
|
||||
if (canStreamInChannel(channel, a1, a2)) {
|
||||
items.push(channel);
|
||||
}
|
||||
value4 = value2();
|
||||
if (value4.done) {
|
||||
break;
|
||||
}
|
||||
r2 = value4;
|
||||
continue;
|
||||
}
|
||||
}
|
||||
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)) {
|
||||
if (r1) {
|
||||
}
|
||||
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') {
|
||||
value = _arrayLikeToArray_56930(a0, value);
|
||||
r6 = value;
|
||||
} else {
|
||||
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;
|
||||
}
|
||||
} else {
|
||||
r5 = value;
|
||||
}
|
||||
if (r5) {
|
||||
if (r5) {
|
||||
}
|
||||
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 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;
|
||||
}
|
||||
|
||||
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;
|
||||
}
|
||||
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);
|
||||
}
|
||||
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']);
|
||||
}
|
||||
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 _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);
|
||||
}
|
||||
|
||||
@@ -0,0 +1,61 @@
|
||||
/* Metro module 7128; source: modules/go_live/utils/StreamerApplicationSelectors.tsx; dependencies: [4396, 661, 6885, 628, 566, 2] */
|
||||
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 closure3 = function(a0, a1) {
|
||||
var value = null;
|
||||
if (value == a0) {
|
||||
return value;
|
||||
}
|
||||
var value3 = getStreamerActivity(a0, a1);
|
||||
return value == value3 ? value : {id: value3.application_id, name: value3.name};
|
||||
};
|
||||
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');
|
||||
exports.getStreamerActivityByUserId = closure;
|
||||
exports.getStreamerActivity = closure2;
|
||||
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 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 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);
|
||||
}
|
||||
|
||||
@@ -0,0 +1,11 @@
|
||||
/* Metro module 12381; source: modules/go_live/utils/canSpectate.tsx; dependencies: [4291, 2] */
|
||||
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');
|
||||
exports.default = function(a0) {
|
||||
return true;
|
||||
};
|
||||
}
|
||||
|
||||
@@ -0,0 +1,176 @@
|
||||
/* Metro module 10798; source: modules/go_live/utils/canStreamWithSettings.tsx; dependencies: [4282, 10799, 10800, 2] */
|
||||
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) {
|
||||
var r0;
|
||||
var r1;
|
||||
var r2;
|
||||
var value3;
|
||||
var length;
|
||||
var value5;
|
||||
var value = undefined;
|
||||
var value2 = value == null;
|
||||
reducibleJoin2: while (true) {
|
||||
if (value2) {
|
||||
r0 = value2;
|
||||
break reducibleJoin2;
|
||||
}
|
||||
value3 = value > a0.length;
|
||||
r0 = value3;
|
||||
break reducibleJoin2;
|
||||
}
|
||||
reducibleJoin4: while (true) {
|
||||
if (r0) {
|
||||
length = a0.length;
|
||||
r1 = length;
|
||||
break reducibleJoin4;
|
||||
}
|
||||
r1 = value;
|
||||
break reducibleJoin4;
|
||||
}
|
||||
value = (0, global.Array)(r1);
|
||||
var value4 = 0;
|
||||
if (value4 < r1) {
|
||||
r2 = value4;
|
||||
reducibleLoop5: while (true) {
|
||||
value[r2] = a0[r2];
|
||||
value5 = typeof r2 === 'bigint' ? r2 + 1n : +r2 + 1;
|
||||
if (value5 < r1) {
|
||||
r2 = value5;
|
||||
continue reducibleLoop5;
|
||||
}
|
||||
break reducibleLoop5;
|
||||
}
|
||||
}
|
||||
return value;
|
||||
};
|
||||
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');
|
||||
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)) {
|
||||
if (r1) {
|
||||
}
|
||||
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') {
|
||||
value = _arrayLikeToArray_82950(a0, value);
|
||||
r6 = value;
|
||||
} else {
|
||||
regexp = RegExp('^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$', '');
|
||||
if (regexp.test(r9)) {
|
||||
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;
|
||||
}
|
||||
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;
|
||||
}
|
||||
}
|
||||
value5 = value2();
|
||||
done = value5.done;
|
||||
if (done) {
|
||||
return false;
|
||||
}
|
||||
r2 = value5;
|
||||
continue reducibleLoop2;
|
||||
}
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,63 @@
|
||||
/* Metro module 10800; source: modules/go_live/utils/canUseStreamSetting.tsx; dependencies: [1880, 3802, 8249, 2] */
|
||||
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');
|
||||
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) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
quality = a0.quality;
|
||||
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 {
|
||||
r3 = value;
|
||||
}
|
||||
if (a0.guildPremiumTier == null) {
|
||||
r0 = r3;
|
||||
} else {
|
||||
if (r3) {
|
||||
r1 = r3;
|
||||
} else {
|
||||
value = require(8249) /* metro dependency 8249: GuildBoostingUtils */;
|
||||
value = value.isGuildBoostedAtLeast(a2, a0.guildPremiumTier);
|
||||
r1 = value;
|
||||
}
|
||||
r0 = r1;
|
||||
}
|
||||
return r0;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,31 @@
|
||||
/* Metro module 4489; source: modules/go_live/utils/getSoundshareAnalyticsContext.tsx; dependencies: [4266, 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');
|
||||
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};
|
||||
}
|
||||
|
||||
@@ -0,0 +1,51 @@
|
||||
/* Metro module 15560; source: modules/go_live/utils/getStreamIssueReportOptions.tsx; dependencies: [4286, 1244, 2] */
|
||||
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');
|
||||
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 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;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,216 @@
|
||||
/* Metro module 10796; source: modules/go_live/utils/getStreamSettingsForPreset.tsx; dependencies: [4282, 10797, 10798, 2] */
|
||||
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;
|
||||
var r1;
|
||||
var r2;
|
||||
var value3;
|
||||
var length;
|
||||
var value5;
|
||||
var value = undefined;
|
||||
var value2 = value == null;
|
||||
reducibleJoin2: while (true) {
|
||||
if (value2) {
|
||||
r0 = value2;
|
||||
break reducibleJoin2;
|
||||
}
|
||||
value3 = value > a0.length;
|
||||
r0 = value3;
|
||||
break reducibleJoin2;
|
||||
}
|
||||
reducibleJoin4: while (true) {
|
||||
if (r0) {
|
||||
length = a0.length;
|
||||
r1 = length;
|
||||
break reducibleJoin4;
|
||||
}
|
||||
r1 = value;
|
||||
break reducibleJoin4;
|
||||
}
|
||||
value = (0, global.Array)(r1);
|
||||
var value4 = 0;
|
||||
if (value4 < r1) {
|
||||
r2 = value4;
|
||||
reducibleLoop5: while (true) {
|
||||
value[r2] = a0[r2];
|
||||
value5 = typeof r2 === 'bigint' ? r2 + 1n : +r2 + 1;
|
||||
if (value5 < r1) {
|
||||
r2 = value5;
|
||||
continue reducibleLoop5;
|
||||
}
|
||||
break reducibleLoop5;
|
||||
}
|
||||
}
|
||||
return value;
|
||||
};
|
||||
const closure = getApplicationStreamPresetValues;
|
||||
const closure2 = 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;
|
||||
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)) {
|
||||
if (r1) {
|
||||
}
|
||||
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') {
|
||||
value = _arrayLikeToArray_82941(a0, value);
|
||||
r6 = value;
|
||||
} else {
|
||||
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;
|
||||
}
|
||||
} else {
|
||||
r5 = value;
|
||||
}
|
||||
if (r5) {
|
||||
if (r5) {
|
||||
}
|
||||
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;
|
||||
}
|
||||
value5 = value2();
|
||||
done = value5.done;
|
||||
if (done) {
|
||||
return null;
|
||||
}
|
||||
r3 = value5;
|
||||
continue;
|
||||
}
|
||||
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 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;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,10 @@
|
||||
/* Metro module 4490; source: modules/go_live/utils/getStreamSourceMetadata.native.tsx; dependencies: [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');
|
||||
exports.default = function() {
|
||||
return {};
|
||||
};
|
||||
}
|
||||
|
||||
@@ -0,0 +1,32 @@
|
||||
/* Metro module 4494; source: modules/go_live/utils/getTitleFromPickedStreamContent.tsx; dependencies: [1244, 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');
|
||||
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;
|
||||
}
|
||||
return r0;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,28 @@
|
||||
/* Metro module 15559; source: modules/go_live/utils/trackStreamProblem.tsx; dependencies: [661, 683, 2] */
|
||||
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');
|
||||
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 = 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]);
|
||||
}
|
||||
|
||||
@@ -0,0 +1,19 @@
|
||||
/* Metro module 8915; source: modules/go_live/utils/transitionToStream.native.tsx; dependencies: [1379, 4080, 5080, 7709, 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');
|
||||
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');
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,19 @@
|
||||
/* Metro module 4493; source: modules/go_live/utils/windowSourceMatches.tsx; dependencies: [57, 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');
|
||||
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;
|
||||
}
|
||||
let value = a0.split(':');
|
||||
value = env0_0(value, 2);
|
||||
value = value[0] === 'window';
|
||||
return value && value[1] === a1;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,289 @@
|
||||
/* 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] */
|
||||
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');
|
||||
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 = 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};
|
||||
});
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user