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

74 lines
3.3 KiB
TypeScript
Raw Normal View History

2026-08-24 06:08:38 +00:00
// Module ID: 10870
// Function ID: 10871
2026-07-20 16:05:17 +00:00
// Name: trackOpen
2026-08-24 06:08:38 +00:00
// Dependencies: [19, 10848, 676, 21, 1236, 698, 10871, 10851, 4346, 10873, 2008, 2]
2026-07-20 16:05:17 +00:00
// Exports: default
2026-08-24 06:08:38 +00:00
// Module 10870 (trackOpen)
import noopAll from "noop" /* 19 */;
import expandEventPropertiesDefault from "expandEventProperties" /* 698 */;
import getSystemLocale from "getSystemLocale" /* 1236 */;
import closeActionSheetDefault from "closeActionSheet" /* 10871 */;
import { NotificationUserFeedbackReasons as closure_3 } from "NotificationUserFeedbackReasons" /* 10848 */;
import { AnalyticEvents } from "ME" /* 676 */;
import { jsx } from "jsxProd" /* 21 */;
2026-07-23 10:11:24 +00:00
2026-08-24 06:08:38 +00:00
require = arg1;
2026-07-20 16:05:17 +00:00
function trackOpen() {
2026-08-24 06:08:38 +00:00
expandEventPropertiesDefault.track(AnalyticEvents.OPEN_POPOUT, { type: "Notification Feedback Sheet", source: "Notification End" });
2026-07-20 16:05:17 +00:00
}
2026-08-24 06:08:38 +00:00
noopAll;
const result = require("set").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 };
2026-08-24 06:08:38 +00:00
let intl = getSystemLocale.intl;
obj[1] = intl.string(getSystemLocale.t.pLeQp0);
2026-07-20 16:05:17 +00:00
const items = [obj, , ];
2026-07-29 08:29:29 +00:00
obj = { value: constants.IRRELEVANT, label: null };
2026-08-24 06:08:38 +00:00
const intl2 = getSystemLocale.intl;
obj[1] = intl2.string(getSystemLocale.t.tuwPcC);
2026-07-20 16:05:17 +00:00
items[1] = obj;
2026-07-29 08:29:29 +00:00
obj = { value: constants.DISLIKE_CONTENT, label: null };
2026-08-24 06:08:38 +00:00
const intl3 = getSystemLocale.intl;
obj[1] = intl3.string(getSystemLocale.t.glUMhg);
2026-07-20 16:05:17 +00:00
items[2] = obj;
2026-08-24 06:08:38 +00:00
obj1 = { headerLabel: null, showHeaderCloseButton: true, hideDontShowAgainCheckbox: true, ratingsBodyLabel: null, reasonsHeaderLabel: null, reasons: null, trackOpen: null, trackReport: null };
const intl4 = getSystemLocale.intl;
obj1[0] = intl4.string(getSystemLocale.t.wGioO1);
const intl5 = getSystemLocale.intl;
obj1[3] = intl5.string(getSystemLocale.t.Yzl7Or);
const intl6 = getSystemLocale.intl;
obj1[4] = intl6.string(getSystemLocale.t.g1q5fr);
2026-07-29 08:29:29 +00:00
obj1[5] = items;
obj1[6] = trackOpen;
obj1[7] = function trackReport(arg0) {
2026-07-20 16:05:17 +00:00
({ rating, reason } = arg0);
if (null != rating) {
let value = null;
if (null != reason) {
value = reason.value;
}
2026-07-29 08:29:29 +00:00
let obj = { reason: null, rating: null, notification_type: null, location: null, message_id: null };
obj[0] = value;
obj[1] = rating;
obj[2] = closure_0;
obj[3] = closure_1;
obj[4] = closure_2;
2026-08-24 06:08:38 +00:00
closure_1_1(closure_1_2[5]).track(closure_1_4.NOTIFICATION_REPORT_SUBMITTED, obj);
const obj5 = closure_1_1(closure_1_2[5]);
const tmp10 = closure_1_1;
closure_1_0(closure_1_2[7]).handleSurveyCleanup();
const obj2 = closure_1_0(closure_1_2[7]);
2026-07-29 08:29:29 +00:00
obj = { header: null };
2026-08-24 06:08:38 +00:00
const tmp10Result = tmp10(closure_1_2[8]);
const intl = closure_1_0(tmp11[4]).intl;
obj[0] = intl.string(closure_1_0(closure_1_2[4]).t.wGioO1);
tmp10Result.openLazy(closure_1_0(closure_1_2[10])(closure_1_2[9], closure_1_2.paths), "UserFeedbackSurvey", obj);
const tmp8 = closure_1_0(closure_1_2[10])(closure_1_2[9], closure_1_2.paths);
2026-07-20 16:05:17 +00:00
}
};
2026-08-24 06:08:38 +00:00
return jsx(closeActionSheetDefault, { headerLabel: null, showHeaderCloseButton: true, hideDontShowAgainCheckbox: true, ratingsBodyLabel: null, reasonsHeaderLabel: null, reasons: null, trackOpen: null, trackReport: null });
2026-07-20 16:05:17 +00:00
};