decord/beta/source/modules/icymi/native/ICYMIFeedbackSheet.tsx
github-actions 6fbb1b046c chore: update source for beta 347.8
Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4943.js (118.4 MB)
2026-09-22 14:21:44 +00:00

160 lines
6.1 KiB
TypeScript

// Module ID: 16818
// Function ID: 16819
// Name: ICYMIFeedbackSheet
// Dependencies: [19, 21, 558, 568, 1119, 11769, 8635, 8627, 2]
// Module 16818 (ICYMIFeedbackSheet)
import c from "c" /* 568 */;
import util from "util" /* 1119 */;
import ICYMIActionCreatorsDefault from "ICYMIActionCreators" /* 8627 */;
import ICYMIAnalytics2 from "ICYMIAnalytics" /* 8635 */;
import FeedbackActionSheetDefault from "FeedbackActionSheet" /* 11769 */;
import noop from "module_19" /* 19 */;
require = fn;
const jsx = fn(21).jsx;
const ReactCompilerGating = fn(558);
const size = fn(2);
let result = size.fileFinishedImporting("modules/icymi/native/ICYMIFeedbackSheet.tsx");
export default ReactCompilerGating.isReactCompilerEnabled() ? (() => {
const cResult = c.c(5);
if (cResult[0] === Symbol.for("react.memo_cache_sentinel")) {
const intl = tmp(1119).intl;
const stringResult = intl.string(tmp(1119).t["ppfH9+"]);
cResult[0] = stringResult;
let first = stringResult;
} else {
first = cResult[0];
}
if (cResult[1] === Symbol.for("react.memo_cache_sentinel")) {
const intl2 = tmp(1119).intl;
const stringResult1 = intl2.string(tmp(1119).t["ePk/Cf"]);
const intl3 = tmp(1119).intl;
const stringResult2 = intl3.string(tmp(1119).t.sBOuOf);
let obj2 = { label: null, value: "irrelevant_content" };
const intl4 = tmp(1119).intl;
obj2.label = intl4.string(tmp(1119).t.F6TmZA);
let items = [obj2, , , , ];
const obj3 = { label: null, value: "not_enough_content" };
const intl5 = tmp(1119).intl;
obj3.label = intl5.string(tmp(1119).t.voWAzi);
items[1] = obj3;
const obj4 = { label: null, value: "too_much_content" };
const intl6 = tmp(1119).intl;
obj4.label = intl6.string(tmp(1119).t.Ay8iwx);
items[2] = obj4;
const obj5 = { label: null, value: "laggy" };
const intl7 = tmp(1119).intl;
obj5.label = intl7.string(tmp(1119).t["Yu+52W"]);
items[3] = obj5;
items[4] = { label: "Other", value: "other" };
cResult[1] = stringResult1;
cResult[2] = stringResult2;
cResult[3] = items;
let tmp8 = items;
let tmp7 = stringResult2;
let tmp6 = stringResult1;
} else {
tmp6 = cResult[1];
tmp7 = cResult[2];
tmp8 = cResult[3];
}
if (cResult[4] === Symbol.for("react.memo_cache_sentinel")) {
const obj6 = {
headerLabel: first,
showHeaderCloseButton: true,
hideDontShowAgainCheckbox: true,
ratingsBodyLabel: tmp6,
reasonsHeaderLabel: tmp7,
reasons: tmp8,
otherKey: "other",
trackOpen: tmp(8635).ICYMIAnalytics.trackFeedFeedbackPromptViewed,
feedbackReasons: ["other"],
trackReport(reason) {
ICYMIActionCreatorsDefault.giveFeedback();
const ICYMIAnalytics = ICYMIAnalytics2.ICYMIAnalytics;
let tmp2;
if (null != reason.reason) {
const items = [reason.reason.value];
tmp2 = items;
}
const obj2 = { reason_descriptions: tmp2, rating: null, user_feedback: reason.feedback };
const rating = reason.rating;
obj2.rating = rating;
const result = ICYMIAnalytics.trackFeedFeedbackSubmitted(obj2);
}
};
const tmp15 = jsx(FeedbackActionSheetDefault, {
headerLabel: first,
showHeaderCloseButton: true,
hideDontShowAgainCheckbox: true,
ratingsBodyLabel: tmp6,
reasonsHeaderLabel: tmp7,
reasons: tmp8,
otherKey: "other",
trackOpen: tmp(8635).ICYMIAnalytics.trackFeedFeedbackPromptViewed,
feedbackReasons: ["other"],
trackReport(reason) {
ICYMIActionCreatorsDefault.giveFeedback();
const ICYMIAnalytics = ICYMIAnalytics2.ICYMIAnalytics;
let tmp2;
if (null != reason.reason) {
const items = [reason.reason.value];
tmp2 = items;
}
const obj2 = { reason_descriptions: tmp2, rating: null, user_feedback: reason.feedback };
const rating = reason.rating;
obj2.rating = rating;
const result = ICYMIAnalytics.trackFeedFeedbackSubmitted(obj2);
}
});
cResult[4] = tmp15;
let tmp11 = tmp15;
} else {
tmp11 = cResult[4];
}
return tmp11;
}) : (() => {
const obj = { headerLabel: null, showHeaderCloseButton: true, hideDontShowAgainCheckbox: true, ratingsBodyLabel: null, reasonsHeaderLabel: null, reasons: null, otherKey: "other", trackOpen: null, feedbackReasons: null, trackReport: null };
const intl = util.intl;
obj.headerLabel = intl.string(util.t["ppfH9+"]);
const intl2 = util.intl;
obj.ratingsBodyLabel = intl2.string(util.t["ePk/Cf"]);
const intl3 = util.intl;
obj.reasonsHeaderLabel = intl3.string(util.t.sBOuOf);
let obj2 = { label: null, value: "irrelevant_content" };
const intl4 = util.intl;
obj2.label = intl4.string(util.t.F6TmZA);
let items = [obj2, , , , ];
const obj3 = { label: null, value: "not_enough_content" };
const intl5 = util.intl;
obj3.label = intl5.string(util.t.voWAzi);
items[1] = obj3;
const obj4 = { label: null, value: "too_much_content" };
const intl6 = util.intl;
obj4.label = intl6.string(util.t.Ay8iwx);
items[2] = obj4;
const obj5 = { label: null, value: "laggy" };
const intl7 = util.intl;
obj5.label = intl7.string(util.t["Yu+52W"]);
items[3] = obj5;
items[4] = { label: "Other", value: "other" };
obj.reasons = items;
obj.trackOpen = ICYMIAnalytics2.ICYMIAnalytics.trackFeedFeedbackPromptViewed;
obj.feedbackReasons = ["other"];
obj.trackReport = function trackReport(reason) {
ICYMIActionCreatorsDefault.giveFeedback();
const ICYMIAnalytics = ICYMIAnalytics2.ICYMIAnalytics;
let tmp2;
if (null != reason.reason) {
const items = [reason.reason.value];
tmp2 = items;
}
const obj2 = { reason_descriptions: tmp2, rating: null, user_feedback: reason.feedback };
const rating = reason.rating;
obj2.rating = rating;
const result = ICYMIAnalytics.trackFeedFeedbackSubmitted(obj2);
};
return jsx(FeedbackActionSheetDefault, { headerLabel: null, showHeaderCloseButton: true, hideDontShowAgainCheckbox: true, ratingsBodyLabel: null, reasonsHeaderLabel: null, reasons: null, otherKey: "other", trackOpen: null, feedbackReasons: null, trackReport: null });
});