decord/source/modules/notifications/native/GuildHighlightsNotificationsActionCreators.tsx
github-actions 7450227d0b chore: update source for alpha 345.4
Skipped 1 file(s) >100MB (GitHub limit): source/__vendor/09xxx/9596_m.js (380.6 MB)
2026-09-04 17:41:35 +00:00

68 lines
3 KiB
TypeScript

// Module ID: 11555
// Function ID: 11556
// Name: openGuildHighlightNotificationForPush
// Dependencies: [11556, 673, 4448, 11557, 2008, 1233, 695, 2]
// Exports: openGuildHighlightNotificationForPush
// Module 11555 (openGuildHighlightNotificationForPush)
import set from "set" /* 2 */;
import ME from "ME" /* 673 */;
import ACTION_SHEET_HEIGHT_HALFDefault from "ACTION_SHEET_HEIGHT_HALF" /* 4448 */;
import NotificationUserFeedbackReasons from "NotificationUserFeedbackReasons" /* 11556 */;
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, arg4) {
const _require = guild_id1;
importDefault = message;
dependencyMap = notificationType;
const constants = MESSAGE_EMBED;
closure_4 = arg4;
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(constants);
obj.track(constants.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(constants);
obj.track(constants.FEEDBACK_FORM_SUBMITTED, obj);
};
obj[1] = obj;
obj.openLazy(_require(2008)(11557, dependencyMap.paths), "GuildHighlightsNotifications", obj);
};