99 lines
7.0 KiB
TypeScript
99 lines
7.0 KiB
TypeScript
/* Metro module 7712; source: actions/ChannelRTCActionCreators.tsx; dependencies: [661, 694, 683, 4863, 1239, 2] */
|
|
function _fun61639(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#61639, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7890:6, offset: 0x01b46f42, size: 261 bytes, params: 8, frame: 18
|
|
var object2;
|
|
const env0_0 = require;
|
|
const Object = global.Object;
|
|
Object.defineProperty(exports, '__esModule', {value: true});
|
|
const constantsModule = require(661) /* metro dependency 661: Constants */;
|
|
const env0_3 = constantsModule.AppContext;
|
|
const env0_4 = constantsModule.AnalyticEvents;
|
|
const env0_5 = constantsModule.ComponentActions;
|
|
object2 = {rebuildRTCActiveChannels: rebuildRTCActiveChannels, selectParticipant: selectParticipant,
|
|
popoutParticipant: popoutParticipant, returnParticipant: returnParticipant, updateLayout: updateLayout,
|
|
toggleParticipants: toggleParticipants, toggleVoiceParticipantsHidden: toggleVoiceParticipantsHidden,
|
|
updateStageStreamSize: updateStageStreamSize,
|
|
updateStageVideoLimitBoostUpsellDismissed: updateStageVideoLimitBoostUpsellDismissed,
|
|
updateChatOpen: updateChatOpen, jumpToVoiceChannelMessage: jumpToVoiceChannelMessage};
|
|
(require(2) /* metro dependency 2 */).fileFinishedImporting('actions/ChannelRTCActionCreators.tsx');
|
|
exports.default = object2;
|
|
}
|
|
|
|
function rebuildRTCActiveChannels() { // fn#61640, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7890:164, offset: 0x01b47047, size: 49 bytes, params: 1, frame: 13
|
|
(importDefault(694) /* metro dependency 694: Dispatcher */).dispatch({type: 'CHANNEL_RTC_ACTIVE_CHANNELS'});
|
|
}
|
|
|
|
function selectParticipant(a0, a1) { // fn#61641, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7890:247, offset: 0x01b47078, size: 61 bytes, params: 3, frame: 13
|
|
(importDefault(694) /* metro dependency 694: Dispatcher */).dispatch({type: 'CHANNEL_RTC_SELECT_PARTICIPANT',
|
|
channelId: a0, id: a1});
|
|
}
|
|
|
|
function popoutParticipant(a0, a1) { // fn#61642, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7890:346, offset: 0x01b470b5, size: 64 bytes, params: 3, frame: 13
|
|
(importDefault(694) /* metro dependency 694: Dispatcher */).dispatch({type: 'CHANNEL_RTC_POPOUT_PARTICIPANT',
|
|
channelId: a0, participantId: a1});
|
|
}
|
|
|
|
function returnParticipant(a0, a1) { // fn#61643, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7890:456, offset: 0x01b470f5, size: 64 bytes, params: 3, frame: 13
|
|
(importDefault(694) /* metro dependency 694: Dispatcher */).dispatch({type: 'CHANNEL_RTC_RETURN_PARTICIPANT',
|
|
channelId: a0, participantId: a1});
|
|
}
|
|
|
|
function updateLayout(a0, a1) { // fn#61644, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7890:566, offset: 0x01b47135, size: 163 bytes, params: 3, frame: 21
|
|
let value = a2;
|
|
const r4 = value !== undefined ? value : AppContext.APP;
|
|
const defaultImport = importDefault(683) /* metro dependency 683: AnalyticsUtils */;
|
|
const track = defaultImport.track;
|
|
const VIDEO_LAYOUT_TOGGLED = AnalyticEvents.VIDEO_LAYOUT_TOGGLED;
|
|
const object2 = {video_layout: a1};
|
|
value = require(4863) /* metro dependency 4863: AppAnalyticsUtils */;
|
|
copyDataProperties(object2, value.collectVoiceAnalyticsMetadata(a0), value);
|
|
Reflect.apply(track, defaultImport, [VIDEO_LAYOUT_TOGGLED, object2]);
|
|
value = importDefault(694) /* metro dependency 694: Dispatcher */;
|
|
value.dispatch({type: 'CHANNEL_RTC_UPDATE_LAYOUT', channelId: a0, layout: a1, appContext: r4});
|
|
}
|
|
|
|
function toggleParticipants(a0, a1) { // fn#61645, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7890:779, offset: 0x01b471d8, size: 64 bytes, params: 3, frame: 13
|
|
(importDefault(694) /* metro dependency 694: Dispatcher */).dispatch({type: 'CHANNEL_RTC_UPDATE_PARTICIPANTS_OPEN',
|
|
channelId: a0, participantsOpen: a1});
|
|
}
|
|
|
|
function toggleVoiceParticipantsHidden(a0, a1) { // fn#61646, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7890:899, offset: 0x01b47218, size: 64 bytes, params: 3, frame: 13
|
|
(importDefault(694) /* metro dependency 694: Dispatcher */).dispatch({type: 'CHANNEL_RTC_UPDATE_VOICE_PARTICIPANTS_HIDDEN',
|
|
channelId: a0, voiceParticipantsHidden: a1});
|
|
}
|
|
|
|
function updateStageStreamSize(a0, a1) { // fn#61647, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7890:1045, offset: 0x01b47258, size: 64 bytes, params: 3, frame: 13
|
|
(importDefault(694) /* metro dependency 694: Dispatcher */).dispatch({type: 'CHANNEL_RTC_UPDATE_STAGE_STREAM_SIZE',
|
|
channelId: a0, large: a1});
|
|
}
|
|
|
|
function updateStageVideoLimitBoostUpsellDismissed(a0, a1) { // fn#61648, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7890:1157, offset: 0x01b47298, size: 64 bytes, params: 3, frame: 13
|
|
(importDefault(694) /* metro dependency 694: Dispatcher */).dispatch({type: 'CHANNEL_RTC_UPDATE_STAGE_VIDEO_LIMIT_BOOST_UPSELL_DISMISSED',
|
|
channelId: a0, dismissed: a1});
|
|
}
|
|
|
|
function updateChatOpen(a0, a1) { // fn#61649, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7890:1316, offset: 0x01b472d8, size: 140 bytes, params: 3, frame: 18
|
|
var ComponentDispatch;
|
|
const env0_0 = a0;
|
|
(importDefault(694) /* metro dependency 694: Dispatcher */).dispatch({type: 'CHANNEL_RTC_UPDATE_CHAT_OPEN',
|
|
channelId: a0, chatOpen: a1});
|
|
if (a1) {
|
|
global.setTimeout(_fun61650, 0);
|
|
} else {
|
|
ComponentDispatch = (require(1239) /* metro dependency 1239: ComponentDispatchUtils */).ComponentDispatch;
|
|
ComponentDispatch.dispatch(ComponentActions.FOCUS_CHAT_BUTTON);
|
|
}
|
|
}
|
|
|
|
function jumpToVoiceChannelMessage(a0, a1, a2, a3) { // fn#61651, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7890:1572, offset: 0x01b473a7, size: 78 bytes, params: 5, frame: 13
|
|
(importDefault(694) /* metro dependency 694: Dispatcher */).dispatch({type: 'CHANNEL_RTC_JUMP_TO_VOICE_CHANNEL_MESSAGE',
|
|
guildId: a0, channelId: a1, messageId: a2, jumpType: a3});
|
|
}
|
|
|
|
function _fun61650() { // fn#61650, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7890:1429, offset: 0x01b47364, size: 67 bytes, params: 1, frame: 15
|
|
const ComponentDispatch = (require(1239) /* metro dependency 1239: ComponentDispatchUtils */).ComponentDispatch;
|
|
const dispatch = ComponentDispatch.dispatch;
|
|
const FOCUS_CHANNEL_TEXT_AREA = ComponentActions.FOCUS_CHANNEL_TEXT_AREA;
|
|
Reflect.apply(dispatch, ComponentDispatch, [FOCUS_CHANNEL_TEXT_AREA, {channelId: env0_0}]);
|
|
}
|
|
|