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

73 lines
3 KiB
TypeScript
Raw Normal View History

2026-07-24 07:16:23 +00:00
// Module ID: 9556
// Function ID: 74305
2026-07-20 16:05:17 +00:00
// Name: trackOpen
2026-07-24 07:16:23 +00:00
// Dependencies: [31, 9534, 653, 33, 1212, 675, 9557, 9537, 4098, 9559, 1934, 2]
2026-07-20 16:05:17 +00:00
// Exports: default
2026-07-24 07:16:23 +00:00
// Module 9556 (trackOpen)
2026-07-23 10:11:24 +00:00
import "result";
import { NotificationUserFeedbackReasons as closure_3 } from "NotificationUserFeedbackReasons";
import { AnalyticEvents } from "ME";
import { jsx } from "jsxProd";
const require = arg1;
2026-07-20 16:05:17 +00:00
function trackOpen() {
2026-07-23 10:11:24 +00:00
importDefault(675).track(AnalyticEvents.OPEN_POPOUT, { type: "Notification Feedback Sheet", source: "Notification End" });
2026-07-20 16:05:17 +00:00
}
2026-07-23 10:11:24 +00:00
const result = require("ME").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
let dependencyMap;
let importDefault;
let require;
({ notificationType: require, location: importDefault, messageId: dependencyMap } = arg0);
2026-07-20 16:05:17 +00:00
let obj = { value: constants.TOO_MANY };
2026-07-23 10:11:24 +00:00
let intl = require(1212) /* getSystemLocale */.intl;
obj.label = intl.string(require(1212) /* getSystemLocale */.t.pLeQp0);
2026-07-20 16:05:17 +00:00
const items = [obj, , ];
obj = { value: constants.IRRELEVANT };
2026-07-23 10:11:24 +00:00
const intl2 = require(1212) /* getSystemLocale */.intl;
obj.label = intl2.string(require(1212) /* getSystemLocale */.t.tuwPcC);
2026-07-20 16:05:17 +00:00
items[1] = obj;
obj = { value: constants.DISLIKE_CONTENT };
2026-07-23 10:11:24 +00:00
const intl3 = require(1212) /* getSystemLocale */.intl;
obj.label = intl3.string(require(1212) /* getSystemLocale */.t.glUMhg);
2026-07-20 16:05:17 +00:00
items[2] = obj;
2026-07-23 10:11:24 +00:00
const obj1 = { headerLabel: null, showHeaderCloseButton: true, hideDontShowAgainCheckbox: true };
const intl4 = require(1212) /* getSystemLocale */.intl;
obj1.headerLabel = intl4.string(require(1212) /* getSystemLocale */.t.wGioO1);
const intl5 = require(1212) /* getSystemLocale */.intl;
obj1.ratingsBodyLabel = intl5.string(require(1212) /* getSystemLocale */.t.Yzl7Or);
const intl6 = require(1212) /* getSystemLocale */.intl;
obj1.reasonsHeaderLabel = intl6.string(require(1212) /* getSystemLocale */.t.g1q5fr);
2026-07-20 16:05:17 +00:00
obj1.reasons = items;
obj1.trackOpen = trackOpen;
obj1.trackReport = function trackReport(arg0) {
let rating;
let reason;
({ rating, reason } = arg0);
if (null != rating) {
2026-07-23 10:11:24 +00:00
let obj = outer1_1(outer1_2[5]);
2026-07-20 16:05:17 +00:00
obj = {};
let value = null;
if (null != reason) {
value = reason.value;
}
obj.reason = value;
obj.rating = rating;
2026-07-23 10:11:24 +00:00
obj.notification_type = closure_0;
obj.location = closure_1;
obj.message_id = closure_2;
obj.track(outer1_4.NOTIFICATION_REPORT_SUBMITTED, obj);
2026-07-20 16:05:17 +00:00
}
2026-07-23 10:11:24 +00:00
outer1_0(outer1_2[7]).handleSurveyCleanup();
const obj3 = outer1_0(outer1_2[7]);
2026-07-20 16:05:17 +00:00
obj = {};
2026-07-23 10:11:24 +00:00
const obj4 = outer1_1(outer1_2[8]);
const intl = outer1_0(outer1_2[4]).intl;
obj.header = intl.string(outer1_0(outer1_2[4]).t.wGioO1);
obj4.openLazy(outer1_0(outer1_2[10])(outer1_2[9], outer1_2.paths), "UserFeedbackSurvey", obj);
2026-07-20 16:05:17 +00:00
};
2026-07-24 07:16:23 +00:00
return jsx(importDefault(9557), { headerLabel: null, showHeaderCloseButton: true, hideDontShowAgainCheckbox: true });
2026-07-20 16:05:17 +00:00
};