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

65 lines
2.7 KiB
TypeScript
Raw Normal View History

2026-07-24 07:16:23 +00:00
// Module ID: 9533
// Function ID: 74215
2026-07-20 16:05:17 +00:00
// Name: openGuildHighlightNotificationForPush
2026-07-24 07:16:23 +00:00
// Dependencies: [9534, 653, 4098, 9535, 1934, 1212, 675, 2]
2026-07-20 16:05:17 +00:00
// Exports: openGuildHighlightNotificationForPush
2026-07-24 07:16:23 +00:00
// Module 9533 (openGuildHighlightNotificationForPush)
2026-07-23 10:11:24 +00:00
import { NotificationUserFeedbackReasons as closure_3 } from "NotificationUserFeedbackReasons";
import { AnalyticEvents } from "ME";
const result = require("showActionSheet").fileFinishedImporting("modules/notifications/native/GuildHighlightsNotificationsActionCreators.tsx");
2026-07-20 16:05:17 +00:00
export const openGuildHighlightNotificationForPush = function openGuildHighlightNotificationForPush(guild_id1, message, notificationType, MESSAGE_EMBED, arg4) {
2026-07-23 10:11:24 +00:00
const _require = guild_id1;
2026-07-20 16:05:17 +00:00
const importDefault = message;
const dependencyMap = notificationType;
const constants = MESSAGE_EMBED;
2026-07-23 10:11:24 +00:00
let closure_4 = arg4;
let obj = importDefault(4098);
2026-07-20 16:05:17 +00:00
obj = { guildId: guild_id1 };
obj = {};
const obj1 = { value: constants.TOO_MANY };
2026-07-23 10:11:24 +00:00
const intl = _require(1212).intl;
obj1.label = intl.string(_require(1212).t.pLeQp0);
2026-07-20 16:05:17 +00:00
const items = [obj1, , , , ];
const obj2 = { value: constants.IRRELEVANT_CHANNEL };
2026-07-23 10:11:24 +00:00
const intl2 = _require(1212).intl;
obj2.label = intl2.string(_require(1212).t.Lu4n25);
2026-07-20 16:05:17 +00:00
items[1] = obj2;
const obj3 = { value: constants.IRRELEVANT_USER };
2026-07-23 10:11:24 +00:00
const intl3 = _require(1212).intl;
obj3.label = intl3.string(_require(1212).t.TF6AhF);
2026-07-20 16:05:17 +00:00
items[2] = obj3;
const obj4 = { value: constants.IRRELEVANT_TOPIC };
2026-07-23 10:11:24 +00:00
const intl4 = _require(1212).intl;
obj4.label = intl4.string(_require(1212).t["s+8J8f"]);
2026-07-20 16:05:17 +00:00
items[3] = obj4;
const obj5 = { value: constants.SENSITIVE_OR_OFFENSIVE_TOPIC };
2026-07-23 10:11:24 +00:00
const intl5 = _require(1212).intl;
obj5.label = intl5.string(_require(1212).t.fEUR7Y);
2026-07-20 16:05:17 +00:00
items[4] = obj5;
obj.reasons = items;
2026-07-23 10:11:24 +00:00
obj.onFeedbackShown = function onFeedbackShown() {
let obj = message(notificationType[6]);
obj = { type: notificationType, location: closure_3, guild_id: closure_0, channel_id: message.channel_id, message_id: message.id };
const merged = Object.assign(constants);
obj.track(constants.FEEDBACK_FORM_VIEWED, obj);
2026-07-20 16:05:17 +00:00
};
obj.onFeedbackCompleted = function onFeedbackCompleted(rating) {
2026-07-23 10:11:24 +00:00
let obj = message(notificationType[6]);
obj = { type: notificationType, location: closure_3, rating: rating.rating };
2026-07-20 16:05:17 +00:00
let value;
if (null != rating.reason) {
value = iter.value;
}
obj.reason = value;
2026-07-23 10:11:24 +00:00
obj.guild_id = closure_0;
({ channel_id: obj2.channel_id, id: obj2.message_id } = message);
const merged = Object.assign(constants);
obj.track(constants.FEEDBACK_FORM_SUBMITTED, obj);
2026-07-20 16:05:17 +00:00
};
obj.feedbackSettings = obj;
2026-07-24 07:16:23 +00:00
obj.openLazy(_require(1934)(9535, dependencyMap.paths), "GuildHighlightsNotifications", obj);
2026-07-20 16:05:17 +00:00
};