268 lines
16 KiB
TypeScript
268 lines
16 KiB
TypeScript
/* Metro module 15555; source: modules/video_calls/native/ChannelCallUtils.tsx; dependencies: [31, 4395, 661, 33, 1244, 15556, 7007, 4080, 7712, 4496, 15553, 1962, 15557, 4285, 15558, 9151, 4007, 10832, 8151, 12, 3857, 9212, 2] */
|
|
function _fun119067(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#119067, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15752:6, offset: 0x024fb6c5, size: 303 bytes, params: 8, frame: 19
|
|
let env0_0 = require;
|
|
const Object = global.Object;
|
|
Object.defineProperty(exports, '__esModule', {value: true});
|
|
importAll(31) /* metro dependency 31 */;
|
|
const streamRTCConnectionStore = importDefault(4395) /* metro dependency 4395: StreamRTCConnectionStore */;
|
|
const constantsModule = require(661) /* metro dependency 661: Constants */;
|
|
const env0_4 = constantsModule.UserSettingsSections;
|
|
const env0_5 = constantsModule.AnalyticsPages;
|
|
const env0_6 = constantsModule.InstantInviteSources;
|
|
const env0_7 = constantsModule.RPC_APPLICATION_LOGGING_CATEGORY;
|
|
const env0_8 = (require(33) /* metro dependency 33 */).jsx;
|
|
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/video_calls/native/ChannelCallUtils.tsx');
|
|
exports.voiceSettings = function() {
|
|
var object = {};
|
|
object.label = require(dependencyMap[4]).intl.string(require(dependencyMap[4]).t.NiTd0e);
|
|
object.icon = importDefault(dependencyMap[5]);
|
|
object.onPress = _fun119069;
|
|
return object;
|
|
};
|
|
exports.videoParticipantsHidden = function(a0, a1) {
|
|
var env0_0 = a0;
|
|
var env0_1 = a1;
|
|
var object = {};
|
|
object.label = require(dependencyMap[4]).intl.string(require(dependencyMap[4]).t.hoZYAA);
|
|
object.switchValue = !a1;
|
|
object.onPress = _fun119071;
|
|
return object;
|
|
};
|
|
exports.openHideSelfStreamAndVideoConfirmDialog = openHideSelfStreamAndVideoConfirmDialog;
|
|
exports.selfVideoHidden = function(a0, a1) {
|
|
var env0_0 = a1;
|
|
var object = {};
|
|
object.label = require(dependencyMap[4]).intl.string(require(dependencyMap[4]).t.MH8ESU);
|
|
object.switchValue = !a0;
|
|
object.onPress = _fun119077;
|
|
return object;
|
|
};
|
|
exports.reportStreamIssue = function(a0) {
|
|
var env0_0 = a0;
|
|
var object = {};
|
|
object.label = require(dependencyMap[4]).intl.string(require(dependencyMap[4]).t.KHGhHf);
|
|
object.icon = importDefault(dependencyMap[12]);
|
|
object.onPress = _fun119079;
|
|
return object;
|
|
};
|
|
exports.invite = invite;
|
|
exports.rtcDebugPanel = function(a0) {
|
|
var env0_0 = a0;
|
|
var object = {};
|
|
object.label = require(dependencyMap[4]).intl.string(require(dependencyMap[4]).t.X8bCMe);
|
|
object.icon = importDefault(dependencyMap[18]);
|
|
object.onPress = _fun119086;
|
|
return object;
|
|
};
|
|
exports.shareActivityLogs = function() {
|
|
var object = {};
|
|
object.label = require(dependencyMap[4]).intl.string(require(dependencyMap[4]).t.iQzQs3);
|
|
object.icon = importDefault(dependencyMap[18]);
|
|
object.onPress = _fun119088;
|
|
return object;
|
|
};
|
|
}
|
|
|
|
function voiceSettings() { // fn#119068, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15752:342, offset: 0x024fb7f4, size: 101 bytes, params: 1, frame: 16
|
|
const object2 = {};
|
|
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
|
const string = intl.string;
|
|
const NiTd0e = (require(1244) /* metro dependency 1244: indexNative */).t.NiTd0e;
|
|
object2.label = Reflect.apply(string, intl, [NiTd0e]);
|
|
object2.icon = importDefault(15556) /* metro dependency 15556 */;
|
|
object2.onPress = onPress_119069;
|
|
return object2;
|
|
}
|
|
|
|
function videoParticipantsHidden(a0, a1) { // fn#119070, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15752:516, offset: 0x024fb8aa, size: 105 bytes, params: 3, frame: 17
|
|
const env0_0 = a0;
|
|
const env0_1 = a1;
|
|
const object2 = {};
|
|
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
|
object2.label = intl.string((require(1244) /* metro dependency 1244: indexNative */).t.hoZYAA);
|
|
object2.switchValue = !a1;
|
|
object2.onPress = onPress_119071;
|
|
return object2;
|
|
}
|
|
|
|
function openHideSelfStreamAndVideoConfirmDialog(a0, a1) { // fn#119072, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15752:689, offset: 0x024fb94d, size: 68 bytes, params: 3, frame: 13
|
|
const env0_0 = a0;
|
|
const env0_1 = a1;
|
|
const value = importDefault(4496) /* metro dependency 4496: AlertActionCreators */;
|
|
value.openLazy({importer: importer_119073});
|
|
}
|
|
|
|
function selfVideoHidden(a0, a1) { // fn#119076, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15752:876, offset: 0x024fba29, size: 99 bytes, params: 3, frame: 16
|
|
const env0_0 = a1;
|
|
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
|
const string = intl.string;
|
|
const MH8ESU = (require(1244) /* metro dependency 1244: indexNative */).t.MH8ESU;
|
|
return {label: Reflect.apply(string, intl, [MH8ESU]), switchValue: !a0, onPress: function() {
|
|
require();
|
|
}};
|
|
}
|
|
|
|
function reportStreamIssue(a0) { // fn#119078, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15752:984, offset: 0x024fba8c, size: 110 bytes, params: 2, frame: 17
|
|
const env0_0 = a0;
|
|
const object2 = {};
|
|
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
|
const string = intl.string;
|
|
const KHGhHf = (require(1244) /* metro dependency 1244: indexNative */).t.KHGhHf;
|
|
object2.label = Reflect.apply(string, intl, [KHGhHf]);
|
|
object2.icon = importDefault(15557) /* metro dependency 15557 */;
|
|
object2.onPress = onPress_119079;
|
|
return object2;
|
|
}
|
|
|
|
function invite(a0, a1, a2) { // fn#119080, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15752:1398, offset: 0x024fbbff, size: 168 bytes, params: 4, frame: 17
|
|
const env0_0 = a0;
|
|
const env0_1 = a1;
|
|
const env0_2 = a2;
|
|
let r1 = a1 != null ? inviteOnPress_119082 : a2 == null ? inviteOnPress : inviteOnPress_119083;
|
|
r1 = a0.isPrivate() ? inviteOnPress_119084 : r1;
|
|
const object2 = {};
|
|
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
|
const string = intl.string;
|
|
const VINpSK = (require(1244) /* metro dependency 1244: indexNative */).t.VINpSK;
|
|
object2.label = Reflect.apply(string, intl, [VINpSK]);
|
|
object2.icon = importDefault(10832) /* metro dependency 10832 */;
|
|
object2.onPress = r1;
|
|
return object2;
|
|
}
|
|
|
|
function rtcDebugPanel(a0) { // fn#119085, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15752:1871, offset: 0x024fbdb0, size: 108 bytes, params: 2, frame: 17
|
|
const env0_0 = a0;
|
|
const object2 = {};
|
|
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
|
const string = intl.string;
|
|
const X8bCMe = (require(1244) /* metro dependency 1244: indexNative */).t.X8bCMe;
|
|
object2.label = Reflect.apply(string, intl, [X8bCMe]);
|
|
object2.icon = importDefault(8151) /* metro dependency 8151 */;
|
|
object2.onPress = onPress_119086;
|
|
return object2;
|
|
}
|
|
|
|
function shareActivityLogs() { // fn#119087, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15752:2000, offset: 0x024fbe4c, size: 101 bytes, params: 1, frame: 16
|
|
const object2 = {};
|
|
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
|
object2.label = intl.string((require(1244) /* metro dependency 1244: indexNative */).t.iQzQs3);
|
|
object2.icon = importDefault(8151) /* metro dependency 8151 */;
|
|
object2.onPress = onPress_119088;
|
|
return object2;
|
|
}
|
|
|
|
function voiceSettingsOnPress() { // fn#119069, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15752:413, owner: voiceSettings.onPress, offset: 0x024fb859, size: 81 bytes, params: 1, frame: 15
|
|
const value = environment.__proto__;
|
|
const openUserSettingsModule = require(7007) /* metro dependency 7007: openUserSettings */;
|
|
const openUserSettings = openUserSettingsModule.openUserSettings;
|
|
const VOICE = UserSettingsSections.VOICE;
|
|
Reflect.apply(openUserSettings, openUserSettingsModule, [{screen: VOICE}]);
|
|
(importDefault(4080) /* metro dependency 4080: ActionSheetActionCreators */).hideActionSheet();
|
|
}
|
|
|
|
function videoParticipantsHiddenOnPress() { // fn#119071, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15752:592, owner: videoParticipantsHidden.onPress, offset: 0x024fb913, size: 58 bytes, params: 1, frame: 14
|
|
let value = environment.__proto__;
|
|
value = importDefault(7712) /* metro dependency 7712: ChannelRTCActionCreators */;
|
|
value.toggleVoiceParticipantsHidden(env0_0.id, !require);
|
|
}
|
|
|
|
function openHideSelfStreamAndVideoConfirmDialogImporter() { // fn#119073, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15752:770, owner: openHideSelfStreamAndVideoConfirmDialog.importer, offset: 0x024fb991, size: 64 bytes, params: 1, frame: 13
|
|
var environment;
|
|
let value = environment.__proto__;
|
|
value = require(dependencyMap[11]);
|
|
value = value(dependencyMap[10], dependencyMap.paths);
|
|
return value.then(function({default: env0_0}) {
|
|
return _fun119075;
|
|
});
|
|
}
|
|
|
|
function reportStreamIssueOnPress() { // fn#119079, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15752:1055, owner: reportStreamIssue.onPress, offset: 0x024fbafa, size: 261 bytes, params: 1, frame: 19
|
|
let value = environment.__proto__;
|
|
const value3 = require(dependencyMap[13]).encodeStreamKey(env0_0);
|
|
const r2 = StreamRTCConnectionStore.getVideoStats(value3) ?? ({});
|
|
const object2 = {};
|
|
object2.media_session_id = StreamRTCConnectionStore.getMediaSessionId(value3);
|
|
object2.rtc_connection_id = StreamRTCConnectionStore.getRtcConnectionId(value3);
|
|
object2.stream_region = StreamRTCConnectionStore.getRegion(value3);
|
|
object2.max_viewers = StreamRTCConnectionStore.getMaxViewers(value3);
|
|
copyDataProperties(object2, r2, undefined);
|
|
const defaultImport = importDefault(dependencyMap[7]);
|
|
const openLazy = defaultImport.openLazy;
|
|
value = require(dependencyMap[11]);
|
|
value = value(dependencyMap[14], dependencyMap.paths);
|
|
const binding = env0_0;
|
|
Reflect.apply(openLazy, defaultImport, [value, 'StreamReportProblem' + binding.ownerId, {stream: binding,
|
|
analyticsData: object2}]);
|
|
}
|
|
|
|
function inviteOnPress() { // fn#119081, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15752:1420, owner: invite.onPress, offset: 0x024fbca7, size: 62 bytes, params: 1, frame: 14
|
|
const instantInviteUtilsModule = require(9151) /* metro dependency 9151: InstantInviteUtils */;
|
|
const showInstantInviteActionSheet = instantInviteUtilsModule.showInstantInviteActionSheet;
|
|
const binding = env0_0;
|
|
const VOICE_CHANNEL = InstantInviteSources.VOICE_CHANNEL;
|
|
return Reflect.apply(showInstantInviteActionSheet, instantInviteUtilsModule, [binding, {source: VOICE_CHANNEL}]);
|
|
}
|
|
|
|
function inviteOnPress_119082() { // fn#119082, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15752:1513, owner: invite.onPress, offset: 0x024fbce5, size: 71 bytes, params: 1, frame: 15
|
|
const instantInviteUtilsModule = require(9151) /* metro dependency 9151: InstantInviteUtils */;
|
|
const showInstantInviteActionSheet = instantInviteUtilsModule.showInstantInviteActionSheet;
|
|
const binding = env0_0;
|
|
const STREAM = InstantInviteSources.STREAM;
|
|
return Reflect.apply(showInstantInviteActionSheet, instantInviteUtilsModule, [binding, {source: STREAM,
|
|
stream: require}]);
|
|
}
|
|
|
|
function inviteOnPress_119083() { // fn#119083, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15752:1603, owner: invite.onPress, offset: 0x024fbd2c, size: 71 bytes, params: 1, frame: 15
|
|
const instantInviteUtilsModule = require(9151) /* metro dependency 9151: InstantInviteUtils */;
|
|
const showInstantInviteActionSheet = instantInviteUtilsModule.showInstantInviteActionSheet;
|
|
const binding = env0_0;
|
|
const ACTIVITY_INVITE = InstantInviteSources.ACTIVITY_INVITE;
|
|
return Reflect.apply(showInstantInviteActionSheet, instantInviteUtilsModule, [binding, {source: ACTIVITY_INVITE,
|
|
targetApplicationId: importDefault}]);
|
|
}
|
|
|
|
function inviteOnPress_119084() { // fn#119084, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15752:1722, owner: invite.onPress, offset: 0x024fbd73, size: 61 bytes, params: 1, frame: 13
|
|
const navigationRouteUtilsNativeModule = require(4007) /* metro dependency 4007: NavigationRouteUtilsNative */;
|
|
const navigateToNewGroupDM = navigationRouteUtilsNativeModule.navigateToNewGroupDM;
|
|
const id = env0_0.id;
|
|
const CHANNEL_CALL = AnalyticsPages.CHANNEL_CALL;
|
|
return Reflect.apply(navigateToNewGroupDM, navigationRouteUtilsNativeModule, [id, CHANNEL_CALL]);
|
|
}
|
|
|
|
function rtcDebugPanelOnPress() { // fn#119086, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15752:1942, owner: rtcDebugPanel.onPress, offset: 0x024fbe1c, size: 48 bytes, params: 1, frame: 12
|
|
env0_0();
|
|
const value = environment.__proto__;
|
|
(importDefault(4080) /* metro dependency 4080: ActionSheetActionCreators */).hideActionSheet();
|
|
}
|
|
|
|
function shareActivityLogsOnPress() { // fn#119088, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15752:2072, owner: shareActivityLogs.onPress, offset: 0x024fbeb1, size: 202 bytes, params: 1, frame: 18
|
|
var defaultImport;
|
|
var open;
|
|
var intl;
|
|
let value = environment.__proto__;
|
|
const logAggregatorModule = require(12) /* metro dependency 12: LogAggregator */;
|
|
const stringify = logAggregatorModule.stringify;
|
|
let object = [RPC_APPLICATION_LOGGING_CATEGORY];
|
|
const value2 = Reflect.apply(stringify, logAggregatorModule, [object]);
|
|
if (value2 === '') {
|
|
defaultImport = importDefault(3857) /* metro dependency 3857: ToastActionCreators */;
|
|
open = defaultImport.open;
|
|
object = {key: 'EMBEDDED_ACTIVITIES_SHARE_EMPTY_LOGS_ERROR_MESSAGE'};
|
|
intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
|
object.content = intl.string((require(1244) /* metro dependency 1244: indexNative */).t['i+9VWy']);
|
|
Reflect.apply(open, defaultImport, [object]);
|
|
} else {
|
|
value = require(9212) /* metro dependency 9212: showShareActionSheetAndroid */;
|
|
value.showShareActionSheet({message: value2}, 'Activity Logs');
|
|
}
|
|
}
|
|
|
|
function _fun119074({default: env0_0}) { // fn#119074, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15752:804, offset: 0x024fb9d1, size: 23 bytes, params: 2, frame: 2
|
|
return _fun119075;
|
|
}
|
|
|
|
function _fun119075(a0) { // fn#119075, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15752:819, offset: 0x024fb9e8, size: 65 bytes, params: 2, frame: 15
|
|
return ((Component) => <Component {...a0} {...{['type']: env2_0}} {...{['onConfirm']: require}} />)(env0_0);
|
|
}
|
|
|