64 lines
2.8 KiB
TypeScript
64 lines
2.8 KiB
TypeScript
// Module ID: 10808
|
|
// Function ID: 10809
|
|
// Name: openGuildHighlightNotificationForPush
|
|
// Dependencies: [10809, 676, 4342, 10810, 2007, 1236, 698, 2]
|
|
// Exports: openGuildHighlightNotificationForPush
|
|
|
|
// Module 10808 (openGuildHighlightNotificationForPush)
|
|
import { NotificationUserFeedbackReasons as closure_3 } from "NotificationUserFeedbackReasons";
|
|
import { AnalyticEvents } from "ME";
|
|
|
|
const result = require("ACTION_SHEET_HEIGHT_HALF").fileFinishedImporting("modules/notifications/native/GuildHighlightsNotificationsActionCreators.tsx");
|
|
|
|
export const openGuildHighlightNotificationForPush = function openGuildHighlightNotificationForPush(guildId, arg1, TRENDING_CONTENT_PUSH, NOTIFICATION_CENTER, arg4) {
|
|
const _require = guildId;
|
|
const importDefault = arg1;
|
|
const dependencyMap = TRENDING_CONTENT_PUSH;
|
|
const constants = NOTIFICATION_CENTER;
|
|
let closure_4 = arg4;
|
|
let obj = importDefault(4342);
|
|
obj = { guildId, feedbackSettings: null };
|
|
obj = { reasons: null, onFeedbackShown: null, onFeedbackCompleted: null };
|
|
const obj1 = { value: constants.TOO_MANY, label: null };
|
|
const intl = _require(1236).intl;
|
|
obj1[1] = intl.string(_require(1236).t.pLeQp0);
|
|
const items = [obj1, , , , ];
|
|
const obj2 = { value: constants.IRRELEVANT_CHANNEL, label: null };
|
|
const intl2 = _require(1236).intl;
|
|
obj2[1] = intl2.string(_require(1236).t.Lu4n25);
|
|
items[1] = obj2;
|
|
const obj3 = { value: constants.IRRELEVANT_USER, label: null };
|
|
const intl3 = _require(1236).intl;
|
|
obj3[1] = intl3.string(_require(1236).t.TF6AhF);
|
|
items[2] = obj3;
|
|
const obj4 = { value: constants.IRRELEVANT_TOPIC, label: null };
|
|
const intl4 = _require(1236).intl;
|
|
obj4[1] = intl4.string(_require(1236).t["s+8J8f"]);
|
|
items[3] = obj4;
|
|
const obj5 = { value: constants.SENSITIVE_OR_OFFENSIVE_TOPIC, label: null };
|
|
const intl5 = _require(1236).intl;
|
|
obj5[1] = intl5.string(_require(1236).t.fEUR7Y);
|
|
items[4] = obj5;
|
|
obj[0] = items;
|
|
obj[1] = function onFeedbackShown() {
|
|
let obj = lib(TRENDING_CONTENT_PUSH[6]);
|
|
obj = { type: TRENDING_CONTENT_PUSH, location: closure_3, guild_id: closure_0, channel_id: lib.channel_id, message_id: lib.id };
|
|
const merged = Object.assign(constants);
|
|
obj.track(constants.FEEDBACK_FORM_VIEWED, obj);
|
|
};
|
|
obj[2] = function onFeedbackCompleted(rating) {
|
|
let obj = lib(TRENDING_CONTENT_PUSH[6]);
|
|
obj = { type: TRENDING_CONTENT_PUSH, 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] } = lib);
|
|
const merged = Object.assign(constants);
|
|
obj.track(constants.FEEDBACK_FORM_SUBMITTED, obj);
|
|
};
|
|
obj[1] = obj;
|
|
obj.openLazy(_require(2007)(10810, dependencyMap.paths), "GuildHighlightsNotifications", obj);
|
|
};
|