56 lines
2.0 KiB
TypeScript
56 lines
2.0 KiB
TypeScript
// Metro module 9518 (f9519).
|
|
import { NotificationUserFeedbackReasons } from "./Constants";
|
|
import { AnalyticEvents } from "../../../Constants";
|
|
import ActionSheetActionCreators from "../../action_sheet/native/ActionSheetActionCreators";
|
|
import { intl, t } from "../../../intl/index.native";
|
|
import AnalyticsUtils from "../../../utils/AnalyticsUtils";
|
|
export function openGuildHighlightNotificationForPush(a0, c17272_1, type, location2, c17272_4) {
|
|
const guild_id = a0;
|
|
ActionSheetActionCreators.openLazy(import("./GuildHighlightsNotificationsActionSheet"), "GuildHighlightsNotifications", {
|
|
guildId: a0,
|
|
feedbackSettings: {
|
|
reasons: [{
|
|
value: NotificationUserFeedbackReasons.TOO_MANY,
|
|
label: intl.string(t.pLeQp0)
|
|
}, {
|
|
value: NotificationUserFeedbackReasons.IRRELEVANT_CHANNEL,
|
|
label: intl.string(t.Lu4n25)
|
|
}, {
|
|
value: NotificationUserFeedbackReasons.IRRELEVANT_USER,
|
|
label: intl.string(t.TF6AhF)
|
|
}, {
|
|
value: NotificationUserFeedbackReasons.IRRELEVANT_TOPIC,
|
|
label: intl.string(t["s+8J8f"])
|
|
}, {
|
|
value: NotificationUserFeedbackReasons.SENSITIVE_OR_OFFENSIVE_TOPIC,
|
|
label: intl.string(t.fEUR7Y)
|
|
}],
|
|
onFeedbackShown: function onFeedbackShown() {
|
|
const FEEDBACK_FORM_VIEWED = AnalyticEvents.FEEDBACK_FORM_VIEWED;
|
|
AnalyticsUtils.track(FEEDBACK_FORM_VIEWED, {
|
|
type,
|
|
location: location2,
|
|
guild_id,
|
|
channel_id: c17272_1.channel_id,
|
|
message_id: c17272_1.id,
|
|
...c17272_4
|
|
});
|
|
},
|
|
onFeedbackCompleted: function onFeedbackCompleted({ rating, reason }) {
|
|
const FEEDBACK_FORM_SUBMITTED = AnalyticEvents.FEEDBACK_FORM_SUBMITTED;
|
|
const value = reason?.value;
|
|
AnalyticsUtils.track(FEEDBACK_FORM_SUBMITTED, {
|
|
type,
|
|
location: location2,
|
|
rating,
|
|
reason: value,
|
|
guild_id,
|
|
channel_id: c17272_1.channel_id,
|
|
message_id: c17272_1.id,
|
|
...c17272_4
|
|
});
|
|
}
|
|
}
|
|
});
|
|
}
|