decord/source/modules/notifications/native/GuildHighlightsNotificationsActionCreators.tsx
2026-09-03 10:05:34 +00:00

68 lines
3 KiB
TypeScript

// Module ID: 11436
// Function ID: 11437
// Name: openGuildHighlightNotificationForPush
// Dependencies: [11437, 673, 4445, 11438, 2008, 1233, 695, 2]
// Exports: openGuildHighlightNotificationForPush
// Module 11436 (openGuildHighlightNotificationForPush)
import set from "set" /* 2 */;
import ME from "ME" /* 673 */;
import ACTION_SHEET_HEIGHT_HALFDefault from "ACTION_SHEET_HEIGHT_HALF" /* 4445 */;
import NotificationUserFeedbackReasons from "NotificationUserFeedbackReasons" /* 11437 */;
let closure_3 = NotificationUserFeedbackReasons.NotificationUserFeedbackReasons;
const AnalyticEvents = ME.AnalyticEvents;
const result = set.fileFinishedImporting("modules/notifications/native/GuildHighlightsNotificationsActionCreators.tsx");
export const openGuildHighlightNotificationForPush = function openGuildHighlightNotificationForPush(guild_id1, message, notificationType, MESSAGE_EMBED, action) {
const _require = guild_id1;
importDefault = message;
dependencyMap = notificationType;
const constants = MESSAGE_EMBED;
closure_4 = action;
let obj = ACTION_SHEET_HEIGHT_HALFDefault;
obj = { guildId: guild_id1, feedbackSettings: null };
obj = { reasons: null, onFeedbackShown: null, onFeedbackCompleted: null };
obj1 = { value: constants.TOO_MANY, label: null };
const intl = _require(1233).intl;
obj1[1] = intl.string(_require(1233).t.pLeQp0);
const items = [obj1, , , , ];
const obj2 = { value: constants.IRRELEVANT_CHANNEL, label: null };
const intl2 = _require(1233).intl;
obj2[1] = intl2.string(_require(1233).t.Lu4n25);
items[1] = obj2;
const obj3 = { value: constants.IRRELEVANT_USER, label: null };
const intl3 = _require(1233).intl;
obj3[1] = intl3.string(_require(1233).t.TF6AhF);
items[2] = obj3;
const obj4 = { value: constants.IRRELEVANT_TOPIC, label: null };
const intl4 = _require(1233).intl;
obj4[1] = intl4.string(_require(1233).t["s+8J8f"]);
items[3] = obj4;
const obj5 = { value: constants.SENSITIVE_OR_OFFENSIVE_TOPIC, label: null };
const intl5 = _require(1233).intl;
obj5[1] = intl5.string(_require(1233).t.fEUR7Y);
items[4] = obj5;
obj[0] = items;
obj[1] = 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(action);
obj.track(action.FEEDBACK_FORM_VIEWED, obj);
};
obj[2] = function onFeedbackCompleted(rating) {
let obj = message(notificationType[6]);
obj = { type: notificationType, location: closure_3, rating: rating.rating, reason: null, guild_id: null, channel_id: null, message_id: null };
let value;
if (rating.reason != null) {
value = iter.value;
}
obj[3] = value;
obj[4] = closure_0;
({ channel_id: obj2[5], id: obj2[6] } = message);
const merged = Object.assign(action);
obj.track(action.FEEDBACK_FORM_SUBMITTED, obj);
};
obj[1] = obj;
obj.openLazy(_require(2008)(11438, dependencyMap.paths), "GuildHighlightsNotifications", obj);
};