Files
discord-decomp/sources/modules/notifications/native/GuildHighlightsNotificationsActionCreators.tsx
T
2026-07-28 01:06:53 +03:00

86 lines
5.3 KiB
TypeScript

/* Metro module 9903; source: modules/notifications/native/GuildHighlightsNotificationsActionCreators.tsx; dependencies: [9904, 661, 4080, 9905, 1962, 1244, 683, 2] */
import AnalyticsUtils from '../../../utils/AnalyticsUtils.tsx'; /* Metro dependency 683 */
import * as FileImportTrackerModule from '../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ConstantsModule from '../../../Constants.tsx'; /* Metro dependency 661 */
import * as ConstantsModule2 from './Constants.tsx'; /* Metro dependency 9904 */
function _fun77619(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#77619, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10089:6, offset: 0x01e0427a, size: 146 bytes, params: 8, frame: 18
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
(FileImportTrackerModule).fileFinishedImporting('modules/notifications/native/GuildHighlightsNotificationsActionCreators.tsx');
exports.openGuildHighlightNotificationForPush = openGuildHighlightNotificationForPush;
function openGuildHighlightNotificationForPush(a0, a1, a2, a3, a4) { // fn#77620, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10089:312, offset: 0x01e0430c, size: 498 bytes, params: 6, frame: 26
const env0_0 = a0;
const env0_1 = a1;
const env0_2 = a2;
const env0_3 = a3;
const env0_4 = a4;
const defaultImport = importDefault(dependencyMap[2]);
const openLazy = defaultImport.openLazy;
const value2 = require(dependencyMap[4])(dependencyMap[3], dependencyMap.paths);
const object3 = {};
const TOO_MANY = NotificationUserFeedbackReasons.TOO_MANY;
object3.value = TOO_MANY;
const intl = require(dependencyMap[5]).intl;
let string = intl.string;
const t = require(dependencyMap[5]).t;
object3.label = Reflect.apply(string, intl, [t.pLeQp0]);
const items2 = [object3];
const IRRELEVANT_CHANNEL = NotificationUserFeedbackReasons.IRRELEVANT_CHANNEL;
string = intl.string;
const Lu4n25 = t.Lu4n25;
items2[1] = {value: IRRELEVANT_CHANNEL, label: Reflect.apply(string, intl, [Lu4n25])};
const IRRELEVANT_USER = NotificationUserFeedbackReasons.IRRELEVANT_USER;
string = intl.string;
const TF6AhF = t.TF6AhF;
items2[2] = {value: IRRELEVANT_USER, label: Reflect.apply(string, intl, [TF6AhF])};
const object4 = {};
const IRRELEVANT_TOPIC = NotificationUserFeedbackReasons.IRRELEVANT_TOPIC;
object4.value = IRRELEVANT_TOPIC;
object4.label = intl.string(t['s+8J8f']);
items2[3] = object4;
const SENSITIVE_OR_OFFENSIVE_TOPIC = NotificationUserFeedbackReasons.SENSITIVE_OR_OFFENSIVE_TOPIC;
items2[4] = {value: SENSITIVE_OR_OFFENSIVE_TOPIC, label: intl.string(t.fEUR7Y)};
Reflect.apply(openLazy, defaultImport, [value2, 'GuildHighlightsNotifications', {guildId: a0,
feedbackSettings: {reasons: items2, onFeedbackShown: onFeedbackShown,
onFeedbackCompleted: onFeedbackCompleted}}]);
function onFeedbackShown() { // fn#77621, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10089:858, owner: openGuildHighlightNotificationForPush.onFeedbackShown, offset: 0x01e044fe, size: 111 bytes, params: 1, frame: 17
const defaultImport = AnalyticsUtils;
const track = defaultImport.track;
const FEEDBACK_FORM_VIEWED = AnalyticEvents.FEEDBACK_FORM_VIEWED;
const object = {};
object.type = importDefault;
object.location = importAll;
object.guild_id = env0_0;
const channel_id = require.channel_id;
object.channel_id = channel_id;
object.message_id = require.id;
copyDataProperties(object, env0_4, channel_id);
Reflect.apply(track, defaultImport, [FEEDBACK_FORM_VIEWED, object]);
}
function onFeedbackCompleted({rating, reason}) { // fn#77622, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10089:998, owner: openGuildHighlightNotificationForPush.onFeedbackCompleted, offset: 0x01e0456d, size: 152 bytes, params: 2, frame: 18
const defaultImport = AnalyticsUtils;
const track = defaultImport.track;
const FEEDBACK_FORM_SUBMITTED = AnalyticEvents.FEEDBACK_FORM_SUBMITTED;
const object = {};
object.type = importDefault;
object.location = importAll;
object.rating = rating;
const value3 = reason == null;
object.reason = value3 ? undefined : reason.value;
object.guild_id = env0_0;
object.channel_id = require.channel_id;
object.message_id = require.id;
copyDataProperties(object, env0_4, value3);
Reflect.apply(track, defaultImport, [FEEDBACK_FORM_SUBMITTED, object]);
}
}
}
global.__d(_fun77619, 9903, [9904, 661, 4080, 9905, 1962, 1244, 683,
2]) /* metro module 9903, dependencies: [9904, 661, 4080, 9905, 1962, 1244, 683, 2] */;