decord/source/components_native/calls/stream/StreamFeedbackActionSheet.tsx

137 lines
4.8 KiB
TypeScript
Raw Normal View History

2026-08-24 06:08:38 +00:00
// Module ID: 16661
// Function ID: 16662
2026-07-20 16:05:17 +00:00
// Name: StreamFeedbackActionSheet
2026-08-24 06:08:38 +00:00
// Dependencies: [19, 1218, 676, 10850, 21, 7525, 589, 1236, 2566, 10853, 16662, 698, 16526, 16663, 4346, 16664, 2008, 4096, 2]
2026-07-20 16:05:17 +00:00
// Exports: default
2026-08-24 06:08:38 +00:00
// Module 16661 (StreamFeedbackActionSheet)
import noopAll from "noop" /* 19 */;
import closure_3 from "fetchFingerprint" /* 1218 */;
import { AnalyticEvents } from "ME" /* 676 */;
import FeedbackRating from "FeedbackRating" /* 10850 */;
import { jsx } from "jsxProd" /* 21 */;
2026-07-23 10:11:24 +00:00
const require = arg1;
2026-08-24 06:08:38 +00:00
noopAll;
2026-07-29 08:29:29 +00:00
({ FeedbackCategory: c5, FeedbackType: closure_6, StreamFeedbackOption: error } = FeedbackRating);
2026-08-24 06:08:38 +00:00
const result = require("set").fileFinishedImporting("components_native/calls/stream/StreamFeedbackActionSheet.tsx");
2026-07-20 16:05:17 +00:00
export default function StreamFeedbackActionSheet(stream) {
stream = stream.stream;
2026-07-23 10:11:24 +00:00
const analyticsData = stream.analyticsData;
2026-08-24 06:08:38 +00:00
dependencyMap = undefined;
let obj = stream(7525);
2026-07-29 08:29:29 +00:00
dependencyMap = obj.useGetStreamApplication(stream);
2026-08-24 06:08:38 +00:00
obj1 = stream(589);
const items = [closure_3];
const stateFromStores = obj1.useStateFromStores(items, () => closure_1_3.getId() === stream.ownerId);
2026-07-29 08:29:29 +00:00
const intl = stream(1236).intl;
const intl2 = stream(1236).intl;
const stringResult = intl.string(stream(1236).t["5smP3R"]);
const intl3 = stream(1236).intl;
let stringResult2 = intl3.string(stream(1236).t.CqjnLN);
obj = { value: stateFromStores ? tmp7.STREAMING : tmp7.STREAM_WATCHING, label: null, problemsHeader: null, problemOptions: null, freeformConfig: null };
const intl4 = tmp(1236).intl;
2026-08-24 06:08:38 +00:00
let tmp9 = analyticsData(2566);
2026-07-29 08:29:29 +00:00
if (stateFromStores) {
let TVTIT1 = tmp9["0ZBLiZ"];
let tmp10 = tmp8;
} else {
TVTIT1 = tmp9.TVTIT1;
tmp10 = tmp8;
}
obj[1] = intl4.string(TVTIT1);
const intl5 = tmp(1236).intl;
obj[2] = intl5.string(stream(1236).t["6Y1t5P"]);
const stringResult1 = intl2.string(stream(1236).t["0uxA2V"]);
2026-08-24 06:08:38 +00:00
obj[3] = stream(10853).getStreamFeedbackOptions({ isStreamer: stateFromStores });
2026-07-29 08:29:29 +00:00
obj = { value: constants.FREEFORM, label: null };
const intl6 = tmp(1236).intl;
obj[1] = intl6.string(stream(1236).t.emlT91);
obj[4] = obj;
obj1 = { headerLabel: stringResult, showHeaderCloseButton: true, ratingBody: null, categoriesHeader: null, optionsTree: null, trackOpen: null, trackReport: null };
const tmp11 = jsx;
2026-08-24 06:08:38 +00:00
const tmpResult = stream(10853);
2026-07-20 16:05:17 +00:00
if (stateFromStores) {
stringResult2 = stringResult1;
}
2026-07-29 08:29:29 +00:00
obj1[2] = stringResult2;
const intl7 = tmp(1236).intl;
2026-08-24 06:08:38 +00:00
obj1[3] = intl7.string(tmp10(2566).tq8598);
2026-07-20 16:05:17 +00:00
const items1 = [obj];
2026-07-29 08:29:29 +00:00
obj1[4] = items1;
obj1[5] = function trackOpen() {
let obj = analyticsData(paths[11]);
obj = { type: "Stream Feedback Sheet", other_user_id: stream.ownerId, application_id: null, application_name: null, game_id: null };
2026-07-20 16:05:17 +00:00
let id = null;
2026-07-29 08:29:29 +00:00
if (null != paths) {
id = tmp.id;
2026-07-20 16:05:17 +00:00
}
2026-07-29 08:29:29 +00:00
obj[2] = id;
2026-07-20 16:05:17 +00:00
let name = null;
2026-07-29 08:29:29 +00:00
if (null != paths) {
name = tmp.name;
2026-07-20 16:05:17 +00:00
}
2026-07-29 08:29:29 +00:00
obj[3] = name;
2026-07-20 16:05:17 +00:00
let id1 = null;
2026-07-29 08:29:29 +00:00
if (null != paths) {
id1 = tmp.id;
2026-07-20 16:05:17 +00:00
}
2026-07-29 08:29:29 +00:00
obj[4] = id1;
2026-08-24 06:08:38 +00:00
obj.track(closure_1_4.OPEN_POPOUT, obj);
2026-07-20 16:05:17 +00:00
};
2026-07-29 08:29:29 +00:00
obj1[6] = function trackReport(dontShowAgain) {
2026-07-20 16:05:17 +00:00
({ rating, category, reason, feedback } = dontShowAgain);
if (dontShowAgain.dontShowAgain) {
2026-07-29 08:29:29 +00:00
let obj = stream(paths[9]);
obj = { feedbackType: null, location: "StreamFeedbackActionSheet" };
2026-08-24 06:08:38 +00:00
obj[0] = closure_1_6.STREAM;
2026-07-20 16:05:17 +00:00
obj.processOptOut(obj);
}
if (null != rating) {
2026-07-29 08:29:29 +00:00
obj = { category: null, problem: null, variant: null, stream: null, feedback: null, streamApplication: null, analyticsData: null, location: "Stream End", rating: null };
obj[0] = category;
2026-07-20 16:05:17 +00:00
let value;
2026-07-29 08:29:29 +00:00
if (reason != null) {
2026-07-20 16:05:17 +00:00
value = reason.value;
}
2026-07-29 08:29:29 +00:00
if (value == null) {
value = null;
2026-07-20 16:05:17 +00:00
}
2026-07-29 08:29:29 +00:00
obj[1] = value;
2026-07-20 16:05:17 +00:00
let variant;
2026-07-29 08:29:29 +00:00
if (reason != null) {
2026-07-20 16:05:17 +00:00
variant = reason.variant;
}
2026-07-29 08:29:29 +00:00
if (variant == null) {
variant = null;
2026-07-20 16:05:17 +00:00
}
2026-07-29 08:29:29 +00:00
obj[2] = variant;
obj[3] = stream;
if (feedback == null) {
feedback = "";
2026-07-20 16:05:17 +00:00
}
2026-07-29 08:29:29 +00:00
obj[4] = feedback;
obj[5] = paths;
obj[6] = analyticsData;
obj[8] = rating;
analyticsData(paths[12])(obj);
2026-07-20 16:05:17 +00:00
if (null != reason) {
if (obj3.shouldShowLogUploadForCategory(rating, category, reason)) {
2026-07-29 08:29:29 +00:00
({ media_session_id: obj6[0], rtc_connection_id: obj6[1] } = tmp9);
tmp22(paths[14]).openLazy(stream(paths[16])(paths[15], paths.paths), "UploadLogs", { mediaSessionId: null, rtcConnectionId: null });
2026-08-24 06:08:38 +00:00
obj1 = { mediaSessionId: null, rtcConnectionId: null };
2026-07-29 08:29:29 +00:00
const tmp22Result = tmp22(paths[14]);
2026-07-20 16:05:17 +00:00
}
2026-07-29 08:29:29 +00:00
obj3 = stream(paths[13]);
2026-07-20 16:05:17 +00:00
}
2026-07-29 08:29:29 +00:00
tmp22 = analyticsData;
const tmp24 = analyticsData(paths[12]);
tmp9 = analyticsData;
stream(paths[17]).presentFeedbackSent();
const obj4 = stream(paths[17]);
2026-07-20 16:05:17 +00:00
}
};
2026-08-24 06:08:38 +00:00
return tmp11(tmp10(16662), obj1);
2026-07-20 16:05:17 +00:00
};