decord/beta/source/modules/icymi/native/ICYMIFeedbackSheet.tsx
2026-10-12 16:32:48 +00:00

131 lines
5 KiB
TypeScript

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