// Module ID: 17217 // Function ID: 17218 // Name: voiceSettings // Dependencies: [19, 4599, 1074, 21, 1114, 17218, 7382, 4527, 4761, 4905, 17215, 1896, 17219, 4612, 17220, 9825, 11595, 10006, 8632, 7, 4259, 8361, 2] // Exports: invite, openHideSelfStreamAndVideoConfirmDialog, reportStreamIssue, rtcDebugPanel, selfVideoHidden, shareActivityLogs, videoParticipantsHidden, voiceSettings // Module 17217 (voiceSettings) import noopAll from "noop" /* 19 */; import getSystemLocale from "getSystemLocale" /* 1114 */; import _modDef4905 from "module_4905" /* 4905 */; import registerAssetDefault from "registerAsset" /* 8632 */; import registerAssetDefault2 from "registerAsset" /* 10006 */; import registerAssetDefault3 from "registerAsset" /* 17218 */; import registerAssetDefault4 from "registerAsset" /* 17219 */; import closure_3 from "initialize" /* 4599 */; import ME from "ME" /* 1074 */; import { jsx } from "jsxProd" /* 21 */; require = arg1; noopAll; ({ UserSettingsSections: c4, AnalyticsPages: c5, InstantInviteSources: closure_6, RPC_APPLICATION_LOGGING_CATEGORY: error } = ME); let result = require("set").fileFinishedImporting("modules/video_calls/native/ChannelCallUtils.tsx"); export const voiceSettings = function voiceSettings() { let obj = { label: null, icon: null, onPress: null }; const intl = getSystemLocale.intl; obj[0] = intl.string(getSystemLocale.t.NiTd0e); obj[1] = registerAssetDefault3; obj[2] = function onPress() { let obj = callback(7382); obj = { screen: constants.VOICE }; obj.openUserSettings(obj); callback2(4527).hideActionSheet(); }; return obj; }; export const videoParticipantsHidden = function videoParticipantsHidden(arg0, arg1) { const _require = arg0; closure_1 = arg1; const obj = { label: null, switchValue: null, onPress: null }; const intl = _require(1114).intl; obj[0] = intl.string(_require(1114).t.hoZYAA); obj[1] = !arg1; obj[2] = function onPress() { const result = callback(closure_1_2[8]).toggleVoiceParticipantsHidden(id.id, !callback); }; return obj; }; export const openHideSelfStreamAndVideoConfirmDialog = function openHideSelfStreamAndVideoConfirmDialog(arg0, arg1) { closure_0 = arg0; importDefault = arg1; let obj = _modDef4905; obj = { importer() { return callback(closure_1_2[11])(closure_1_2[10], closure_1_2.paths).then((arg0) => { closure_0 = arg0.default; return (arg0) => { const obj = {}; const merged = Object.assign(arg0); obj.type = closure_0; obj.onConfirm = closure_1_1; return closure_2_8(closure_0, obj); }; }); } }; obj.openLazy(obj); }; export const selfVideoHidden = function selfVideoHidden(arg0, arg1) { const _require = arg1; const obj = { label: null, switchValue: null, onPress: null }; const intl = _require(1114).intl; obj[0] = intl.string(_require(1114).t.MH8ESU); obj[1] = !arg0; obj[2] = function onPress() { callback(); }; return obj; }; export const reportStreamIssue = function reportStreamIssue(stream) { const _require = stream; let obj = { label: null, icon: null, onPress: null }; const intl = _require(1114).intl; obj[0] = intl.string(_require(1114).t.KHGhHf); obj[1] = registerAssetDefault4; obj[2] = function onPress() { let obj = stream(closure_1_2[13]); const encodeStreamKeyResult = obj.encodeStreamKey(stream); let videoStats = closure_1_3.getVideoStats(encodeStreamKeyResult); if (videoStats == null) { videoStats = {}; } obj = { media_session_id: obj2.getMediaSessionId(encodeStreamKeyResult), rtc_connection_id: obj2.getRtcConnectionId(encodeStreamKeyResult), stream_region: obj2.getRegion(encodeStreamKeyResult), max_viewers: obj2.getMaxViewers(encodeStreamKeyResult) }; const merged = Object.assign(videoStats); const obj5 = closure_1_1(closure_1_2[7]); const tmp = stream; obj5.openLazy(stream(closure_1_2[11])(closure_1_2[14], closure_1_2.paths), "StreamReportProblem" + stream.ownerId, { stream, analyticsData: obj }); }; return obj; }; export const invite = function invite(isPrivate) { const _require = isPrivate; importDefault = arg1; dependencyMap = arg2; if (null != arg1) { function onPress() { let obj = isPrivate(9825); obj = { source: closure_1_6.STREAM, stream: closure_1 }; return obj.showInstantInviteActionSheet(isPrivate, obj); } } else { onPress = function onPress() { let obj = isPrivate(9825); obj = { source: closure_1_6.VOICE_CHANNEL }; return obj.showInstantInviteActionSheet(isPrivate, obj); }; if (null != arg2) { onPress = function onPress() { let obj = isPrivate(9825); obj = { source: closure_1_6.ACTIVITY_INVITE, targetApplicationId: dependencyMap }; return obj.showInstantInviteActionSheet(isPrivate, obj); }; } } if (isPrivate.isPrivate()) { onPress = function onPress() { return callback(11595)(isPrivate.id, closure_1_5.CHANNEL_CALL); }; } let obj = { label: null, icon: null, onPress: null }; const intl = _require(1114).intl; obj[0] = intl.string(_require(1114).t.VINpSK); obj[1] = registerAssetDefault2; obj[2] = onPress; return obj; }; export const rtcDebugPanel = function rtcDebugPanel(arg0) { const _require = arg0; const obj = { label: null, icon: null, onPress: null }; const intl = _require(1114).intl; obj[0] = intl.string(_require(1114).t.X8bCMe); obj[1] = registerAssetDefault; obj[2] = function onPress() { callback(); closure_1_1(closure_1_2[7]).hideActionSheet(); }; return obj; }; export const shareActivityLogs = function shareActivityLogs() { let obj = { label: null, icon: null, onPress: null }; let intl = getSystemLocale.intl; obj[0] = intl.string(getSystemLocale.t.iQzQs3); obj[1] = registerAssetDefault; obj[2] = function onPress() { let obj = callback(table[19]); const items = [closure_7]; const json = obj.stringify(items); if ("" === json) { obj = { key: "EMBEDDED_ACTIVITIES_SHARE_EMPTY_LOGS_ERROR_MESSAGE", content: null }; const intl = tmp(tmp2[4]).intl; obj[1] = intl.string(tmp(tmp2[4]).t["i+9VWy"]); callback2(tmp2[20]).open(obj); const obj4 = callback2(tmp2[20]); } else { obj = { message: null }; obj[0] = json; tmp(tmp2[21]).showShareActionSheet(obj, "Activity Logs"); const tmpResult = tmp(tmp2[21]); } }; return obj; };