Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4821.js (118.4 MB)
108 lines
5.2 KiB
TypeScript
108 lines
5.2 KiB
TypeScript
// Module ID: 17464
|
|
// Function ID: 17465
|
|
// Name: FeedbackManager
|
|
// Dependencies: [4864, 1957, 4659, 4675, 11759, 17465, 4688, 17468, 1896, 7141, 4603, 4265, 17472, 17475, 17477, 2]
|
|
|
|
// Module 17464 (FeedbackManager)
|
|
import embeddedActivityLocationUtils from "embeddedActivityLocationUtils" /* 4265 */;
|
|
import ActionSheetActionCreatorsDefault from "ActionSheetActionCreators" /* 4603 */;
|
|
import ApplicationStore from "ApplicationStore" /* 4864 */;
|
|
import ChannelStore from "ChannelStore" /* 1957 */;
|
|
import RTCConnectionStore from "RTCConnectionStore" /* 4659 */;
|
|
import StreamRTCConnectionStore from "StreamRTCConnectionStore" /* 4675 */;
|
|
import FeedbackManager from "feedback/FeedbackManager" /* 17465 */;
|
|
|
|
require = fn;
|
|
const FeedbackType = fn(11759).FeedbackType;
|
|
const prototype = function FeedbackManager() {
|
|
const applyArgumentsResult = HermesBuiltin.applyArguments(new.target, new.target);
|
|
require = applyArgumentsResult;
|
|
applyArgumentsResult.actions = {
|
|
VOICE_CHANNEL_SHOW_FEEDBACK(analyticsData) {
|
|
return applyArgumentsResult.handleShowVoiceFeedback(analyticsData);
|
|
},
|
|
STREAM_CLOSE(streamKey) {
|
|
return applyArgumentsResult.handleShowStreamFeedback(streamKey);
|
|
},
|
|
EMBEDDED_ACTIVITY_CLOSE(applicationId) {
|
|
return applyArgumentsResult.handleShowActivityFeedback(applicationId);
|
|
},
|
|
IN_APP_REPORTS_SHOW_FEEDBACK(arg0) {
|
|
return applyArgumentsResult.handleInAppReportsFeedback(arg0);
|
|
}
|
|
};
|
|
applyArgumentsResult.handleShowStreamFeedback = function handleShowStreamFeedback(streamKey) {
|
|
streamKey = streamKey.streamKey;
|
|
if (streamKey.canShowFeedback) {
|
|
const result = applyArgumentsResult.possiblyShowFeedbackModal(FeedbackType.STREAM, () => {
|
|
const decodeStreamKeyResult = streamKey(dependencyMap[6]).decodeStreamKey(streamKey);
|
|
streamKey = decodeStreamKeyResult;
|
|
channel = channel.getChannel(decodeStreamKeyResult.channelId);
|
|
let isGuildStageVoiceResult;
|
|
if (channel != null) {
|
|
isGuildStageVoiceResult = channel.isGuildStageVoice();
|
|
}
|
|
if (!isGuildStageVoiceResult) {
|
|
videoStats = videoStats.getVideoStats(tmp3);
|
|
if (videoStats == null) {
|
|
videoStats = {};
|
|
}
|
|
let obj2 = { media_session_id: videoStats.getMediaSessionId(tmp3), rtc_connection_id: videoStats.getRtcConnectionId(tmp3), stream_region: videoStats.getRegion(tmp3), max_viewers: videoStats.getMaxViewers(tmp3) };
|
|
const merged = Object.assign(videoStats);
|
|
closure_2 = tmp(tmp2[8])(tmp2[7], tmp2.paths);
|
|
tmp(tmp2[9]).runAfterInteractions(() => {
|
|
obj2 = { stream: decodeStreamKeyResult, analyticsData: obj2 };
|
|
ActionSheetActionCreatorsDefault.openLazy(closure_2, "StreamFeedback" + streamKey, obj2);
|
|
});
|
|
const tmpResult = tmp(tmp2[9]);
|
|
}
|
|
});
|
|
}
|
|
};
|
|
applyArgumentsResult.handleShowActivityFeedback = function handleShowActivityFeedback(applicationId) {
|
|
applicationId = applicationId.applicationId;
|
|
const _location = applicationId.location;
|
|
const application = ApplicationStore.getApplication(applicationId);
|
|
const channel = ChannelStore.getChannel(embeddedActivityLocationUtils.getEmbeddedActivityLocationChannelId(_location));
|
|
if (tmp2) {
|
|
const result = applyArgumentsResult.possiblyShowFeedbackModal(FeedbackType.ACTIVITY, () => {
|
|
closure_0 = applicationId(application[8])(application[12], application.paths);
|
|
let analyticsData = { media_session_id: closure_1_5.getMediaSessionId(), rtc_connection_id: closure_1_5.getRTCConnectionId() };
|
|
applicationId(application[9]).runAfterInteractions(() => {
|
|
analyticsData = ActionSheetActionCreatorsDefault;
|
|
analyticsData.openLazy(closure_0, "ActivityFeedback" + _location.id + applicationId, { analyticsData, activityApplication: application, channel, embeddedActivityLocation: _location });
|
|
});
|
|
});
|
|
}
|
|
};
|
|
applyArgumentsResult.handleShowVoiceFeedback = function handleShowVoiceFeedback(analyticsData) {
|
|
analyticsData = analyticsData.analyticsData;
|
|
const result = applyArgumentsResult.possiblyShowFeedbackModal(FeedbackType.VOICE, () => {
|
|
closure_0 = analyticsData(paths[8])(paths[13], paths.paths);
|
|
analyticsData(paths[9]).runAfterInteractions(() => {
|
|
ActionSheetActionCreatorsDefault.openLazy(closure_0, "VoiceFeedback" + analyticsData.channel_id, { analyticsData });
|
|
});
|
|
});
|
|
};
|
|
applyArgumentsResult.handleInAppReportsFeedback = function handleInAppReportsFeedback(arg0) {
|
|
({ reportId: closure_0, reportType: closure_1 } = arg0);
|
|
const result = applyArgumentsResult.possiblyShowFeedbackModal(FeedbackType.IN_APP_REPORTS, () => {
|
|
closure_0 = reportId(paths[8])(paths[14], paths.paths);
|
|
reportId(paths[9]).runAfterInteractions(() => {
|
|
let str = reportId;
|
|
if (reportId == null) {
|
|
str = "";
|
|
}
|
|
ActionSheetActionCreatorsDefault.openLazy(closure_0, "ReportingFeedback" + reportType + str, { reportId, reportType });
|
|
});
|
|
});
|
|
};
|
|
return applyArgumentsResult;
|
|
}.prototype;
|
|
class prototype extends tmp2 {
|
|
}
|
|
const prototype1 = new prototype();
|
|
const size = fn(2);
|
|
let result = size.fileFinishedImporting("modules/feedback/native/FeedbackManager.tsx");
|
|
|
|
export default prototype1;
|