decord/alpha/source/modules/notifications/native/NotificationSurveyActionSheet.tsx

63 lines
2.7 KiB
TypeScript
Raw Normal View History

// Module ID: 11354
// Function ID: 11355
// Name: NotificationSurveyActionSheet
// Dependencies: [19, 11332, 1074, 21, 1115, 1241, 11355, 11335, 4556, 2]
2026-07-20 16:05:17 +00:00
// Exports: default
// Module 11354 (NotificationSurveyActionSheet)
import util from "util" /* 1115 */;
import AnalyticsUtilsDefault from "AnalyticsUtils" /* 1241 */;
import ToastUtils from "ToastUtils" /* 4556 */;
import PushFeedbackActions from "PushFeedbackActions" /* 11335 */;
import FeedbackActionSheetDefault from "FeedbackActionSheet" /* 11355 */;
import noop from "module_19" /* 19 */;
2026-07-23 10:11:24 +00:00
require = fn;
2026-07-20 16:05:17 +00:00
function trackOpen() {
AnalyticsUtilsDefault.track(AnalyticEvents.OPEN_POPOUT, { type: "Notification Feedback Sheet", source: "Notification End" });
2026-07-20 16:05:17 +00:00
}
const constants = fn(11332).NotificationUserFeedbackReasons;
const AnalyticEvents = fn(1074).AnalyticEvents;
const jsx = fn(21).jsx;
const size = fn(2);
const result = size.fileFinishedImporting("modules/notifications/native/NotificationSurveyActionSheet.tsx");
2026-07-20 16:05:17 +00:00
export default function NotificationSurveyActionSheet(arg0) {
2026-07-23 10:11:24 +00:00
({ notificationType: require, location: importDefault, messageId: dependencyMap } = arg0);
2026-07-29 08:29:29 +00:00
let obj = { value: constants.TOO_MANY, label: null };
const intl = util.intl;
obj.label = intl.string(util.t.pLeQp0);
2026-07-20 16:05:17 +00:00
const items = [obj, , ];
let obj2 = { value: constants.IRRELEVANT, label: null };
const intl2 = util.intl;
obj2.label = intl2.string(util.t.tuwPcC);
items[1] = obj2;
let obj3 = { value: constants.DISLIKE_CONTENT, label: null };
const intl3 = util.intl;
obj3.label = intl3.string(util.t.glUMhg);
items[2] = obj3;
let obj4 = { headerLabel: null, showHeaderCloseButton: true, hideDontShowAgainCheckbox: true, ratingsBodyLabel: null, reasonsHeaderLabel: null, reasons: null, trackOpen: null, trackReport: null };
const intl4 = util.intl;
obj4.headerLabel = intl4.string(util.t.wGioO1);
const intl5 = util.intl;
obj4.ratingsBodyLabel = intl5.string(util.t.Yzl7Or);
const intl6 = util.intl;
obj4.reasonsHeaderLabel = intl6.string(util.t.g1q5fr);
obj4.reasons = items;
obj4.trackOpen = trackOpen;
obj4.trackReport = function trackReport(arg0) {
2026-07-20 16:05:17 +00:00
({ rating, reason } = arg0);
if (null != rating) {
value = null;
2026-07-20 16:05:17 +00:00
if (null != reason) {
value = reason.value;
}
const obj = { reason: value, rating, notification_type, location: _location, message_id };
AnalyticsUtilsDefault.track(AnalyticEvents.NOTIFICATION_REPORT_SUBMITTED, obj);
PushFeedbackActions.handleSurveyCleanup();
ToastUtils.presentFeedbackSent();
2026-07-20 16:05:17 +00:00
}
};
return jsx(FeedbackActionSheetDefault, { headerLabel: null, showHeaderCloseButton: true, hideDontShowAgainCheckbox: true, ratingsBodyLabel: null, reasonsHeaderLabel: null, reasons: null, trackOpen: null, trackReport: null });
2026-07-20 16:05:17 +00:00
};