65 lines
4.4 KiB
TypeScript
65 lines
4.4 KiB
TypeScript
/* Metro module 10866; source: actions/RTCDebugActionCreators.tsx; dependencies: [10865, 694, 8903, 3767, 2] */
|
|
import Dispatcher from '../Dispatcher.tsx'; /* Metro dependency 694 */
|
|
import DiscordNative from '../lib/DiscordNative.tsx'; /* Metro dependency 3767 */
|
|
import TrackVoiceAndVideoSettingsUpdate from '../modules/user_settings/voice/trackVoiceAndVideoSettingsUpdate.tsx'; /* Metro dependency 8903 */
|
|
import RTCDebugStore from '../stores/RTCDebugStore.tsx'; /* Metro dependency 10865 */
|
|
import * as FileImportTrackerModule from '../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
|
|
|
|
function _fun83272(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#83272, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11052:6, offset: 0x01f13061, size: 194 bytes, params: 8, frame: 18
|
|
const Object = global.Object;
|
|
Object.defineProperty(exports, '__esModule', {value: true});
|
|
(FileImportTrackerModule).fileFinishedImporting('actions/RTCDebugActionCreators.tsx');
|
|
exports.open = open_83273;
|
|
exports.close = close_83274;
|
|
exports.openReplay = openReplay;
|
|
exports.setSection = setSection_83276;
|
|
exports.setShouldRecordNextConnection = setShouldRecordNextConnection;
|
|
exports.setSimulcastDebugOverride = setSimulcastDebugOverride;
|
|
exports.chooseReplayPath = chooseReplayPath;
|
|
function open_83273(a0) { // fn#83273, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11052:181, offset: 0x01f13123, size: 88 bytes, params: 2, frame: 16
|
|
(Dispatcher).dispatch({type: 'RTC_DEBUG_MODAL_OPEN', section: a0});
|
|
(Dispatcher).dispatch({type: 'RTC_DEBUG_POPOUT_WINDOW_OPEN'});
|
|
}
|
|
|
|
function close_83274() { // fn#83274, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11052:321, offset: 0x01f1317b, size: 49 bytes, params: 1, frame: 13
|
|
(Dispatcher).dispatch({type: 'RTC_DEBUG_MODAL_CLOSE'});
|
|
}
|
|
|
|
function openReplay() { // fn#83275, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11052:401, offset: 0x01f131ac, size: 49 bytes, params: 1, frame: 13
|
|
(Dispatcher).dispatch({type: 'RTC_DEBUG_MODAL_OPEN_REPLAY'});
|
|
}
|
|
|
|
function setSection_83276(a0) { // fn#83276, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11052:492, offset: 0x01f131dd, size: 57 bytes, params: 2, frame: 13
|
|
(Dispatcher).dispatch({type: 'RTC_DEBUG_MODAL_SET_SECTION',
|
|
section: a0});
|
|
}
|
|
|
|
function setShouldRecordNextConnection(a0) { // fn#83277, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11052:613, offset: 0x01f13216, size: 95 bytes, params: 2, frame: 17
|
|
(TrackVoiceAndVideoSettingsUpdate)('connection_replay_log_enabled',
|
|
a0, RTCDebugStore.shouldRecordNextConnection());
|
|
(Dispatcher).dispatch({type: 'RTC_DEBUG_SET_RECORDING_FLAG',
|
|
value: a0});
|
|
}
|
|
|
|
function setSimulcastDebugOverride(a0, a1, a2) { // fn#83278, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11052:822, offset: 0x01f13275, size: 69 bytes, params: 4, frame: 13
|
|
(Dispatcher).dispatch({type: 'RTC_DEBUG_SET_SIMULCAST_OVERRIDE',
|
|
userId: a0, context: a1, quality: a2});
|
|
}
|
|
|
|
function chooseReplayPath() { // fn#83279, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11052:973, offset: 0x01f132ba, size: 105 bytes, params: 1, frame: 14
|
|
const fileManager = (DiscordNative).fileManager;
|
|
fileManager.showOpenDialog({filters: [{name: 'All Files', extensions: ['*']}]}).then(_fun83280);
|
|
function _fun83280(a0) { // fn#83280, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11052:1091, offset: 0x01f13323, size: 76 bytes, params: 2, frame: 14
|
|
const r4 = a0.length === 0 ? '' : a0[0];
|
|
value = environment.__proto__;
|
|
value = importDefault(694) /* metro dependency 694: Dispatcher */;
|
|
value.dispatch({type: 'RTC_DEBUG_MODAL_OPEN_REPLAY_AT_PATH', path: r4});
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
global.__d(_fun83272, 10866, [10865, 694, 8903, 3767,
|
|
2]) /* metro module 10866, dependencies: [10865, 694, 8903, 3767, 2] */;
|