// Module ID: 16657 // Function ID: 16658 // Name: prototype // Dependencies: [4482, 1391, 4544, 4563, 10850, 16658, 4536, 16661, 2008, 6579, 4346, 4014, 16665, 16668, 16670, 2] // Module 16657 (prototype) import optOutEligibilityCheckDefault from "optOutEligibilityCheck" /* 16658 */; import closure_3 from "addApplication" /* 4482 */; import closure_4 from "ensureGuildLoaded" /* 1391 */; import closure_5 from "createRTCConnection" /* 4544 */; import closure_6 from "initialize" /* 4563 */; import { FeedbackType } from "FeedbackRating" /* 10850 */; let require = arg1; optOutEligibilityCheckDefault; let 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 = streamKey.possiblyShowFeedbackModal(closure_1_7.STREAM, () => { let obj = streamKey(closure_1_2[6]); const decodeStreamKeyResult = obj.decodeStreamKey(streamKey); streamKey = decodeStreamKeyResult; const channel = closure_1_4.getChannel(decodeStreamKeyResult.channelId); let isGuildStageVoiceResult; if (channel != null) { isGuildStageVoiceResult = channel.isGuildStageVoice(); } if (!isGuildStageVoiceResult) { let videoStats = closure_1_6.getVideoStats(tmp3); if (videoStats == null) { videoStats = {}; } obj = { media_session_id: null, rtc_connection_id: null, stream_region: null, max_viewers: null }; obj[0] = closure_1_6.getMediaSessionId(tmp3); obj[1] = closure_1_6.getRtcConnectionId(tmp3); obj[2] = closure_1_6.getRegion(tmp3); obj[3] = closure_1_6.getMaxViewers(tmp3); const merged = Object.assign(videoStats); closure_2 = tmp(tmp2[8])(tmp2[7], tmp2.paths); tmp(tmp2[9]).runAfterInteractions(() => { obj = closure_2_1(closure_2_2[10]); obj = { stream: closure_0, analyticsData: obj }; obj.openLazy(closure_2, "StreamFeedback" + decodeStreamKeyResult, obj); }); const tmpResult = tmp(tmp2[9]); } }); } }; applyArgumentsResult.handleShowActivityFeedback = function handleShowActivityFeedback(applicationId) { applicationId = applicationId.applicationId; const _location = applicationId.location; let application; let channel; application = closure_1_3.getApplication(applicationId); channel = closure_1_4.getChannel(applyArgumentsResult(closure_1_2[11]).getEmbeddedActivityLocationChannelId(_location)); if (tmp2) { const result = applicationId.possiblyShowFeedbackModal(closure_1_7.ACTIVITY, () => { closure_0 = applicationId(application[8])(application[12], application.paths); let obj = { media_session_id: closure_1_5.getMediaSessionId(), rtc_connection_id: closure_1_5.getRTCConnectionId() }; applicationId(application[9]).runAfterInteractions(() => { obj = _location(application[10]); obj = { analyticsData: obj, activityApplication: closure_1_2, channel: closure_1_3, embeddedActivityLocation: obj }; obj.openLazy(closure_0, "ActivityFeedback" + obj.id + closure_0, obj); }); }); } }; applyArgumentsResult.handleShowVoiceFeedback = function handleShowVoiceFeedback(analyticsData) { analyticsData = analyticsData.analyticsData; const result = analyticsData.possiblyShowFeedbackModal(closure_1_7.VOICE, () => { closure_0 = analyticsData(closure_1_2[8])(closure_1_2[13], closure_1_2.paths); analyticsData(closure_1_2[9]).runAfterInteractions(() => { let obj = closure_2_1(closure_2_2[10]); obj = { analyticsData: channel_id }; obj.openLazy(channel_id, "VoiceFeedback" + channel_id.channel_id, obj); }); }); }; applyArgumentsResult.handleInAppReportsFeedback = function handleInAppReportsFeedback(arg0) { ({ reportId: closure_0, reportType: closure_1 } = arg0); const result = applyArgumentsResult.possiblyShowFeedbackModal(closure_1_7.IN_APP_REPORTS, () => { closure_0 = closure_1_0(closure_1_2[8])(closure_1_2[14], closure_1_2.paths); closure_1_0(closure_1_2[9]).runAfterInteractions(() => { let str = closure_0; if (closure_0 == null) { str = ""; } closure_2_1(closure_2_2[10]).openLazy(closure_0, "ReportingFeedback" + closure_1_1 + str, { reportId: closure_0, reportType: closure_1_1 }); }); }); }; return applyArgumentsResult; }.prototype; class prototype extends tmp2 { } prototype = new prototype(); let result = require("set").fileFinishedImporting("modules/feedback/native/FeedbackManager.tsx"); export default prototype;