Files
2026-07-28 01:06:53 +03:00

275 lines
17 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] */
import ActionSheetActionCreators from '../../action_sheet/native/ActionSheetActionCreators.tsx'; /* Metro dependency 4080 */
import StreamRTCConnectionStore from '../../../stores/StreamRTCConnectionStore.tsx'; /* Metro dependency 4395 */
import AlertActionCreators from '../../../actions/native/AlertActionCreators.tsx'; /* Metro dependency 4496 */
import * as FileImportTrackerModule from '../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as LogAggregatorModule from '../../debug/LogAggregator.tsx'; /* Metro dependency 12 */
import * as ReactModule from '../../../by-id/module-00031-React.js'; /* Metro dependency 31 */
import * as JsxRuntimeModule from '../../../by-id/module-00033-JsxRuntime.js'; /* Metro dependency 33 */
import * as ConstantsModule from '../../../Constants.tsx'; /* Metro dependency 661 */
import * as IndexNativeModule from '../../../intl/index.native.tsx'; /* Metro dependency 1244 */
import * as NavigationRouteUtilsNativeModule from '../../main_tabs_v2/helpers/NavigationRouteUtils.native.tsx'; /* Metro dependency 4007 */
import * as OpenUserSettingsModule from '../../user_settings/core/native/openUserSettings.tsx'; /* Metro dependency 7007 */
import * as InstantInviteUtilsModule from '../../instant_invite/native/InstantInviteUtils.tsx'; /* Metro dependency 9151 */
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});
ReactModule;
(FileImportTrackerModule).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 object = {};
const intl = (IndexNativeModule).intl;
const string = intl.string;
const NiTd0e = (IndexNativeModule).t.NiTd0e;
object.label = Reflect.apply(string, intl, [NiTd0e]);
object.icon = importDefault(15556) /* metro dependency 15556 */;
object.onPress = onPress_119069;
return object;
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 openUserSettings = OpenUserSettingsModule.openUserSettings;
const VOICE = UserSettingsSections.VOICE;
Reflect.apply(openUserSettings, OpenUserSettingsModule, [{screen: VOICE}]);
(ActionSheetActionCreators).hideActionSheet();
}
}
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 object = {};
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
object.label = intl.string((require(1244) /* metro dependency 1244: indexNative */).t.hoZYAA);
object.switchValue = !a1;
object.onPress = onPress_119071;
return object;
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 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;
AlertActionCreators.openLazy({importer: importer_119073});
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 _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);
}
}
}
}
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 = (IndexNativeModule).intl;
const string = intl.string;
const MH8ESU = (IndexNativeModule).t.MH8ESU;
return {label: Reflect.apply(string, intl, [MH8ESU]), switchValue: !a0, onPress: function() {
require();
}};
function selfVideoHiddenOnPress() { // fn#119077, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15752:952, owner: selfVideoHidden.onPress, offset: 0x00da750c, size: 15 bytes, params: 1, frame: 9
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 object = {};
const intl = (IndexNativeModule).intl;
const string = intl.string;
const KHGhHf = (IndexNativeModule).t.KHGhHf;
object.label = Reflect.apply(string, intl, [KHGhHf]);
object.icon = importDefault(15557) /* metro dependency 15557 */;
object.onPress = onPress_119079;
return object;
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 object = {};
streamRTCConnectionStoreBinding = StreamRTCConnectionStore;
object.media_session_id = streamRTCConnectionStoreBinding.getMediaSessionId(value3);
object.rtc_connection_id = streamRTCConnectionStoreBinding.getRtcConnectionId(value3);
object.stream_region = streamRTCConnectionStoreBinding.getRegion(value3);
object.max_viewers = streamRTCConnectionStoreBinding.getMaxViewers(value3);
copyDataProperties(object, 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: object}]);
}
}
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 object = {};
const intl = (IndexNativeModule).intl;
const string = intl.string;
const VINpSK = (IndexNativeModule).t.VINpSK;
object.label = Reflect.apply(string, intl, [VINpSK]);
object.icon = importDefault(10832) /* metro dependency 10832 */;
object.onPress = r1;
return object;
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 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 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 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 navigateToNewGroupDM = NavigationRouteUtilsNativeModule.navigateToNewGroupDM;
const id = env0_0.id;
const CHANNEL_CALL = AnalyticsPages.CHANNEL_CALL;
return Reflect.apply(navigateToNewGroupDM, NavigationRouteUtilsNativeModule, [id, CHANNEL_CALL]);
}
}
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 object = {};
const intl = (IndexNativeModule).intl;
const string = intl.string;
const X8bCMe = (IndexNativeModule).t.X8bCMe;
object.label = Reflect.apply(string, intl, [X8bCMe]);
object.icon = importDefault(8151) /* metro dependency 8151 */;
object.onPress = onPress_119086;
return object;
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__;
(ActionSheetActionCreators).hideActionSheet();
}
}
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 object = {};
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
object.label = intl.string((require(1244) /* metro dependency 1244: indexNative */).t.iQzQs3);
object.icon = importDefault(8151) /* metro dependency 8151 */;
object.onPress = onPress_119088;
return object;
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 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');
}
}
}
}
global.__d(_fun119067, 15555, [31, 4395, 661, 33, 1244, 15556, 7007, 4080, 7712, 4496, 15553, 1962, 15557, 4285,
15558, 9151, 4007, 10832, 8151, 12, 3857, 9212,
2]) /* metro module 15555, dependencies: [31, 4395, 661, 33, 1244, 15556, 7007, 4080, 7712, 4496, 15553, 1962, 15557, 4285, 15558, 9151, 4007, 10832, 8151, 12, 3857, 9212, 2] */;