Initial commit
This commit is contained in:
commit
af3b49f756
16065 files changed
+2938410
No files matched your search
@@ -0,0 +1,461 @@
|
||||
/* Metro module 5051; source: modules/guild_automod/AutomodMessageUtils.tsx; dependencies: [57, 31, 1379, 3784, 3793, 1878, 661, 5052, 5053, 5054, 1244, 5055, 5056, 5057, 4805, 5058, 5059, 5060, 566, 5061, 2] */
|
||||
function _fun43731(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#43731, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5229:6, offset: 0x0115bf02, size: 443 bytes, params: 8, frame: 20
|
||||
const env0_0 = require;
|
||||
const closure = extractAutomodMessageFields;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_2 = importDefault(57) /* metro dependency 57 */;
|
||||
const env0_3 = importAll(31) /* metro dependency 31 */;
|
||||
const channelStore = importDefault(1379) /* metro dependency 1379: ChannelStore */;
|
||||
const permissionStore = importDefault(3784) /* metro dependency 3784: PermissionStore */;
|
||||
const relationshipStore = importDefault(3793) /* metro dependency 3793: RelationshipStore */;
|
||||
const userStore = importDefault(1878) /* metro dependency 1878: UserStore */;
|
||||
const constantsModule = require(661) /* metro dependency 661: Constants */;
|
||||
const env0_8 = constantsModule.MessageEmbedTypes;
|
||||
const env0_9 = constantsModule.MessageTypes;
|
||||
const env0_10 = constantsModule.NOOP_NULL;
|
||||
const env0_11 = constantsModule.Permissions;
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/guild_automod/AutomodMessageUtils.tsx');
|
||||
exports.default = useAutomodMessageFields;
|
||||
exports.isAutomodMessageRecord = function({type}) {
|
||||
return type === MessageTypes.AUTO_MODERATION_ACTION;
|
||||
};
|
||||
exports.isAutomodNotification = function({embeds}) {
|
||||
return embeds?.some(_fun43748);
|
||||
};
|
||||
exports.getActionHeaderTextMobile = getActionHeaderTextMobile;
|
||||
exports.getActionHeaderText = getActionHeaderText;
|
||||
exports.getQuarantineReasonString = getQuarantineReasonString;
|
||||
exports.extractAutomodNotificationFields = extractAutomodNotificationFields;
|
||||
exports.extractAutomodMessageFields = closure;
|
||||
exports.useAutomodAlertActions = function(a0) {
|
||||
var value = null;
|
||||
if (value == a0) {
|
||||
return value;
|
||||
}
|
||||
var alertActionsExecution = extractAutomodMessageFields(a0).alertActionsExecution;
|
||||
return value != alertActionsExecution ? alertActionsExecution : value;
|
||||
};
|
||||
exports.getRaidAlertResolveCTAText = getRaidAlertResolveCTAText;
|
||||
exports.getUserIdOfAutomodAction = function(a0) {
|
||||
var getEmbedFieldFromMessageBinding = getEmbedFieldFromMessage;
|
||||
var ACTION_BY_USER_ID = require(dependencyMap[16]).AutomodNotificationEmbedKeys.ACTION_BY_USER_ID;
|
||||
return getEmbedFieldFromMessageBinding(a0, ACTION_BY_USER_ID);
|
||||
};
|
||||
exports.IS_BACKWARDS_COMPAT_RAID_TYPE = undefined;
|
||||
}
|
||||
|
||||
function getEmbedFieldFromMessage({embeds}, a1) { // fn#43732, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5229:235, offset: 0x0115c0bd, size: 210 bytes, params: 3, frame: 17
|
||||
const env0_0 = a1;
|
||||
const property = env0_2(embeds ?? [], 1)[0];
|
||||
if (property != null) {
|
||||
var type = property.type;
|
||||
var AUTO_MODERATION_MESSAGE = MessageEmbedTypes.AUTO_MODERATION_MESSAGE;
|
||||
if (type === AUTO_MODERATION_MESSAGE) {
|
||||
return property == null || property.fields == null ? undefined : property.fields.find(function({rawName}) {
|
||||
return rawName === require;
|
||||
})?.rawValue;
|
||||
}
|
||||
type = property.type;
|
||||
var AUTO_MODERATION_NOTIFICATION = MessageEmbedTypes.AUTO_MODERATION_NOTIFICATION;
|
||||
if (type === AUTO_MODERATION_NOTIFICATION) {
|
||||
return property == null || property.fields == null ? undefined : property.fields.find(function({rawName}) {
|
||||
return rawName === require;
|
||||
})?.rawValue;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
function getMessageContentFromEmbed({embeds}) { // fn#43735, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5229:705, offset: 0x0115c1a5, size: 72 bytes, params: 2, frame: 14
|
||||
const r4 = embeds ?? [];
|
||||
const value = undefined;
|
||||
const property = env0_2(r4, 1)[0];
|
||||
return (property == null ? value : property.rawDescription) ?? '';
|
||||
}
|
||||
|
||||
function getDecisionOutcomeFromMessage(a0) { // fn#43736, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5229:844, offset: 0x0115c1ed, size: 60 bytes, params: 2, frame: 13
|
||||
const getEmbedFieldFromMessageBinding = getEmbedFieldFromMessage;
|
||||
const AutomodMessageEmbedKeys = (require(5052) /* metro dependency 5052: AutomodMessageEmbedKeys */).AutomodMessageEmbedKeys;
|
||||
const DECISION_OUTCOME = AutomodMessageEmbedKeys.DECISION_OUTCOME;
|
||||
return getEmbedFieldFromMessageBinding(a0, DECISION_OUTCOME) ?? undefined;
|
||||
}
|
||||
|
||||
function getQuarantineTypeFromMessage(a0) { // fn#43737, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5229:989, offset: 0x0115c229, size: 60 bytes, params: 2, frame: 13
|
||||
const getEmbedFieldFromMessageBinding = getEmbedFieldFromMessage;
|
||||
const AutomodMessageEmbedKeys = (require(5052) /* metro dependency 5052: AutomodMessageEmbedKeys */).AutomodMessageEmbedKeys;
|
||||
const QUARANTINE_USER = AutomodMessageEmbedKeys.QUARANTINE_USER;
|
||||
return getEmbedFieldFromMessageBinding(a0, QUARANTINE_USER) ?? undefined;
|
||||
}
|
||||
|
||||
function getQuarantineActionFromMessage(a0) { // fn#43738, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5229:1132, offset: 0x0115c265, size: 60 bytes, params: 2, frame: 13
|
||||
const getEmbedFieldFromMessageBinding = getEmbedFieldFromMessage;
|
||||
const AutomodMessageEmbedKeys = (require(5052) /* metro dependency 5052: AutomodMessageEmbedKeys */).AutomodMessageEmbedKeys;
|
||||
const QUARANTINE_USER_ACTION = AutomodMessageEmbedKeys.QUARANTINE_USER_ACTION;
|
||||
return getEmbedFieldFromMessageBinding(a0, QUARANTINE_USER_ACTION) ?? undefined;
|
||||
}
|
||||
|
||||
function getProfileUpdateTypeFromMessage(a0) { // fn#43739, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5229:1284, offset: 0x0115c2a1, size: 60 bytes, params: 2, frame: 13
|
||||
const getEmbedFieldFromMessageBinding = getEmbedFieldFromMessage;
|
||||
const AutomodMessageEmbedKeys = (require(5052) /* metro dependency 5052: AutomodMessageEmbedKeys */).AutomodMessageEmbedKeys;
|
||||
const BLOCK_PROFILE_UPDATE_TYPE = AutomodMessageEmbedKeys.BLOCK_PROFILE_UPDATE_TYPE;
|
||||
return getEmbedFieldFromMessageBinding(a0, BLOCK_PROFILE_UPDATE_TYPE) ?? undefined;
|
||||
}
|
||||
|
||||
function getQuarantineEventFromMessage(a0) { // fn#43740, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5229:1440, offset: 0x0115c2dd, size: 60 bytes, params: 2, frame: 13
|
||||
const getEmbedFieldFromMessageBinding = getEmbedFieldFromMessage;
|
||||
const AutomodMessageEmbedKeys = (require(5052) /* metro dependency 5052: AutomodMessageEmbedKeys */).AutomodMessageEmbedKeys;
|
||||
const QUARANTINE_EVENT = AutomodMessageEmbedKeys.QUARANTINE_EVENT;
|
||||
return getEmbedFieldFromMessageBinding(a0, QUARANTINE_EVENT) ?? undefined;
|
||||
}
|
||||
|
||||
function _getUserProfileRuleHeaderText(a0, a1, a2) { // fn#43741, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5229:1585, offset: 0x0115c319, size: 754 bytes, params: 4, frame: 17
|
||||
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
const t = (require(1244) /* metro dependency 1244: indexNative */).t;
|
||||
const AutomodQuarantineEventMessageEmbedKeys = (require(5055) /* metro dependency 5055: AutomodQuarantineEventMessageEmbedKeys */).AutomodQuarantineEventMessageEmbedKeys;
|
||||
const AutomodBlockProfileUpdateMessageEmbedKeys = (require(5054) /* metro dependency 5054: AutomodBlockProfileUpdateMessageEmbedKeys */).AutomodBlockProfileUpdateMessageEmbedKeys;
|
||||
const value2 = undefined;
|
||||
const AutomodQuarantineUserActionMessageEmbedKeys = (require(5053) /* metro dependency 5053: AutomodQuarantineUserActionMessageEmbedKeys */).AutomodQuarantineUserActionMessageEmbedKeys;
|
||||
const BLOCK_PROFILE_UPDATE = AutomodQuarantineUserActionMessageEmbedKeys.BLOCK_PROFILE_UPDATE;
|
||||
if (BLOCK_PROFILE_UPDATE === a1) {
|
||||
return AutomodBlockProfileUpdateMessageEmbedKeys.NICKNAME_UPDATE === a0 ? intl.string(t.t98DPb) : AutomodBlockProfileUpdateMessageEmbedKeys.NICKNAME_RESET !== a0 ? value2 : intl.string(t['7u/rlU']);
|
||||
}
|
||||
const QUARANTINE_USER = AutomodQuarantineUserActionMessageEmbedKeys.QUARANTINE_USER;
|
||||
if (QUARANTINE_USER === a1) {
|
||||
return AutomodQuarantineEventMessageEmbedKeys.MESSAGE_SEND === a2 ? intl.string(t.PmSMMS) : AutomodQuarantineEventMessageEmbedKeys.GUILD_JOIN === a2 ? intl.string(t.m9wWzo) : AutomodQuarantineEventMessageEmbedKeys.USERNAME_UPDATE === a2 ? intl.string(t.KNSkC6) : AutomodQuarantineEventMessageEmbedKeys.CLAN_TAG_UPDATE !== a2 ? value2 : intl.string(t.qV4K6j);
|
||||
}
|
||||
const BLOCK_GUEST_JOIN = AutomodQuarantineUserActionMessageEmbedKeys.BLOCK_GUEST_JOIN;
|
||||
if (BLOCK_GUEST_JOIN === a1) {
|
||||
return intl.string(t.MrYeyS);
|
||||
}
|
||||
return value2;
|
||||
}
|
||||
|
||||
function extractAutomodMessageFields(a0) { // fn#43742, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5229:2812, offset: 0x0115c60b, size: 552 bytes, params: 2, frame: 20
|
||||
const getEmbedFieldFromMessageBinding = getEmbedFieldFromMessage;
|
||||
const value2 = undefined;
|
||||
const AutomodMessageEmbedKeys = (require(5052) /* metro dependency 5052: AutomodMessageEmbedKeys */).AutomodMessageEmbedKeys;
|
||||
const CHANNEL_ID = AutomodMessageEmbedKeys.CHANNEL_ID;
|
||||
const embedFieldFromMessageBinding = getEmbedFieldFromMessageBinding(a0, CHANNEL_ID);
|
||||
const ALERT_ACTIONS_EXECUTION = AutomodMessageEmbedKeys.ALERT_ACTIONS_EXECUTION;
|
||||
const alertActionsExecution = (require(5060) /* metro dependency 5060: AutomodAlert */).parseAlertActionsExecution(getEmbedFieldFromMessageBinding(a0,
|
||||
ALERT_ACTIONS_EXECUTION));
|
||||
const object2 = {};
|
||||
object2.content = getMessageContentFromEmbed(a0);
|
||||
const RULE_NAME = AutomodMessageEmbedKeys.RULE_NAME;
|
||||
object2.ruleName = getEmbedFieldFromMessageBinding(a0, RULE_NAME);
|
||||
const DECISION_ID = AutomodMessageEmbedKeys.DECISION_ID;
|
||||
object2.decisionId = getEmbedFieldFromMessageBinding(a0, DECISION_ID);
|
||||
const KEYWORD = AutomodMessageEmbedKeys.KEYWORD;
|
||||
object2.keyword = getEmbedFieldFromMessageBinding(a0, KEYWORD);
|
||||
const KEYWORD_MATCHED_CONTENT = AutomodMessageEmbedKeys.KEYWORD_MATCHED_CONTENT;
|
||||
object2.keywordMatchedContent = getEmbedFieldFromMessageBinding(a0, KEYWORD_MATCHED_CONTENT);
|
||||
const FLAGGED_MESSAGE_ID = AutomodMessageEmbedKeys.FLAGGED_MESSAGE_ID;
|
||||
object2.flaggedMessageId = getEmbedFieldFromMessageBinding(a0, FLAGGED_MESSAGE_ID);
|
||||
const TIMEOUT_DURATION = AutomodMessageEmbedKeys.TIMEOUT_DURATION;
|
||||
object2.timeoutDuration = getEmbedFieldFromMessageBinding(a0, TIMEOUT_DURATION);
|
||||
const QUARANTINE_USER = AutomodMessageEmbedKeys.QUARANTINE_USER;
|
||||
object2.quarantineType = getEmbedFieldFromMessageBinding(a0, QUARANTINE_USER);
|
||||
const QUARANTINE_USER_ACTION = AutomodMessageEmbedKeys.QUARANTINE_USER_ACTION;
|
||||
object2.quarantineAction = getEmbedFieldFromMessageBinding(a0, QUARANTINE_USER_ACTION);
|
||||
const DECISION_REASON = AutomodMessageEmbedKeys.DECISION_REASON;
|
||||
object2.decisionReason = getEmbedFieldFromMessageBinding(a0, DECISION_REASON);
|
||||
const APPLICATION_NAME = AutomodMessageEmbedKeys.APPLICATION_NAME;
|
||||
object2.applicationName = getEmbedFieldFromMessageBinding(a0, APPLICATION_NAME);
|
||||
const INTERACTION_USER_ID = AutomodMessageEmbedKeys.INTERACTION_USER_ID;
|
||||
object2.interactionUserId = getEmbedFieldFromMessageBinding(a0, INTERACTION_USER_ID);
|
||||
const INTERACTION_CALLBACK_TYPE = AutomodMessageEmbedKeys.INTERACTION_CALLBACK_TYPE;
|
||||
object2.interactionCallbackType = getEmbedFieldFromMessageBinding(a0, INTERACTION_CALLBACK_TYPE);
|
||||
object2.embedChannel = ChannelStore.getChannel(embedFieldFromMessageBinding);
|
||||
object2.embedChannelId = embedFieldFromMessageBinding;
|
||||
object2.alertActionsExecution = alertActionsExecution ?? value2;
|
||||
return object2;
|
||||
}
|
||||
|
||||
function useAutomodMessageFields(a0) { // fn#43743, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5229:4393, offset: 0x0115c833, size: 132 bytes, params: 2, frame: 17
|
||||
var object2;
|
||||
const env0_0 = a0;
|
||||
const value2 = env0_3.useMemo(_fun43744, [a0]);
|
||||
const value = (require(566) /* metro dependency 566: flux */).useStateFromStores([ChannelStore], _fun43745,
|
||||
[value2.embedChannelId]);
|
||||
object2 = {};
|
||||
copyDataProperties(object2, value2, undefined);
|
||||
object2['embedChannel'] = value;
|
||||
return object2;
|
||||
}
|
||||
|
||||
function isAutomodNotification({embeds}) { // fn#43747, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5229:4733, offset: 0x0115c8f2, size: 40 bytes, params: 2, frame: 12
|
||||
return embeds?.some(function({type}) {
|
||||
return type === MessageEmbedTypes.AUTO_MODERATION_NOTIFICATION;
|
||||
});
|
||||
}
|
||||
|
||||
function getActionHeaderTextMobile(a0, a1, a2) { // fn#43749, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5229:4892, offset: 0x0115c935, size: 785 bytes, params: 4, frame: 24
|
||||
var r2;
|
||||
var r1;
|
||||
var decisionOutcomeFromMessage;
|
||||
var getEmbedFieldFromMessageBinding;
|
||||
const AutomodMessageEmbedKeys = (require(5052) /* metro dependency 5052: AutomodMessageEmbedKeys */).AutomodMessageEmbedKeys;
|
||||
var embedFieldFromMessageBinding;
|
||||
var embedFieldFromMessageBinding2;
|
||||
const AutomodDecisionOutcomeEmbedKeys = (require(5057) /* metro dependency 5057: AutomodDecisionOutcomeEmbedKeys */).AutomodDecisionOutcomeEmbedKeys;
|
||||
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
const t = (require(1244) /* metro dependency 1244: indexNative */).t;
|
||||
var user;
|
||||
const AutomodInteractionCallbackTypeEmbedKeys = (require(5056) /* metro dependency 5056: AutomodInteractionCallbackTypeEmbedKeys */).AutomodInteractionCallbackTypeEmbedKeys;
|
||||
var formatToPlainString;
|
||||
var object2;
|
||||
var username;
|
||||
var property;
|
||||
if (getQuarantineTypeFromMessage(a0) == null) {
|
||||
decisionOutcomeFromMessage = getDecisionOutcomeFromMessage(a0);
|
||||
getEmbedFieldFromMessageBinding = getEmbedFieldFromMessage;
|
||||
embedFieldFromMessageBinding = getEmbedFieldFromMessageBinding(a0,
|
||||
AutomodMessageEmbedKeys.INTERACTION_CALLBACK_TYPE);
|
||||
embedFieldFromMessageBinding2 = getEmbedFieldFromMessageBinding(a0, AutomodMessageEmbedKeys.APPLICATION_NAME);
|
||||
if (embedFieldFromMessageBinding2 != null) {
|
||||
user = UserStore.getUser(a2);
|
||||
if (embedFieldFromMessageBinding !== AutomodInteractionCallbackTypeEmbedKeys.MODAL) {
|
||||
r1 = decisionOutcomeFromMessage !== AutomodDecisionOutcomeEmbedKeys.BLOCKED ? intl.formatToPlainString(t['0Kmtr7'],
|
||||
|
||||
|
||||
|
||||
{applicationName: embedFieldFromMessageBinding2,
|
||||
integrationOwner: a1.username}) : intl.formatToPlainString(t.I0FiWp,
|
||||
{applicationName: embedFieldFromMessageBinding2, integrationOwner: a1.username});
|
||||
} else if (user != null) {
|
||||
if (decisionOutcomeFromMessage !== AutomodDecisionOutcomeEmbedKeys.BLOCKED) {
|
||||
formatToPlainString = intl.formatToPlainString;
|
||||
property = t['Xy2Iw+'];
|
||||
object2 = {applicationName: embedFieldFromMessageBinding2};
|
||||
username = user.username;
|
||||
object2.interactionUser = username;
|
||||
username = a1.username;
|
||||
object2.integrationOwner = username;
|
||||
r2 = Reflect.apply(formatToPlainString, intl, [property, object2]);
|
||||
} else {
|
||||
formatToPlainString = intl.formatToPlainString;
|
||||
property = t['MCK/t7'];
|
||||
object2 = {applicationName: embedFieldFromMessageBinding2};
|
||||
username = user.username;
|
||||
object2.interactionUser = username;
|
||||
username = a1.username;
|
||||
object2.integrationOwner = username;
|
||||
r2 = Reflect.apply(formatToPlainString, intl, [property, object2]);
|
||||
}
|
||||
r1 = r2;
|
||||
} else {
|
||||
r1 = decisionOutcomeFromMessage !== AutomodDecisionOutcomeEmbedKeys.BLOCKED ? intl.formatToPlainString(t['0Kmtr7'],
|
||||
|
||||
|
||||
|
||||
{applicationName: embedFieldFromMessageBinding2,
|
||||
integrationOwner: a1.username}) : intl.formatToPlainString(t.I0FiWp,
|
||||
{applicationName: embedFieldFromMessageBinding2, integrationOwner: a1.username});
|
||||
}
|
||||
return r1;
|
||||
}
|
||||
r2 = decisionOutcomeFromMessage !== AutomodDecisionOutcomeEmbedKeys.BLOCKED ? intl.string(t.Oo38tv) : intl.string(t['2kuGkD']);
|
||||
} else {
|
||||
var value6 = _getUserProfileRuleHeaderText(getProfileUpdateTypeFromMessage(a0),
|
||||
getQuarantineActionFromMessage(a0),
|
||||
getQuarantineEventFromMessage(a0));
|
||||
if (value6 != null) {
|
||||
return value6;
|
||||
}
|
||||
decisionOutcomeFromMessage = getDecisionOutcomeFromMessage(a0);
|
||||
getEmbedFieldFromMessageBinding = getEmbedFieldFromMessage;
|
||||
embedFieldFromMessageBinding = getEmbedFieldFromMessageBinding(a0,
|
||||
AutomodMessageEmbedKeys.INTERACTION_CALLBACK_TYPE);
|
||||
embedFieldFromMessageBinding2 = getEmbedFieldFromMessageBinding(a0, AutomodMessageEmbedKeys.APPLICATION_NAME);
|
||||
if (embedFieldFromMessageBinding2 != null) {
|
||||
user = UserStore.getUser(a2);
|
||||
if (embedFieldFromMessageBinding !== AutomodInteractionCallbackTypeEmbedKeys.MODAL) {
|
||||
r1 = decisionOutcomeFromMessage !== AutomodDecisionOutcomeEmbedKeys.BLOCKED ? intl.formatToPlainString(t['0Kmtr7'],
|
||||
|
||||
|
||||
|
||||
{applicationName: embedFieldFromMessageBinding2,
|
||||
integrationOwner: a1.username}) : intl.formatToPlainString(t.I0FiWp,
|
||||
{applicationName: embedFieldFromMessageBinding2, integrationOwner: a1.username});
|
||||
} else if (user != null) {
|
||||
if (decisionOutcomeFromMessage !== AutomodDecisionOutcomeEmbedKeys.BLOCKED) {
|
||||
formatToPlainString = intl.formatToPlainString;
|
||||
property = t['Xy2Iw+'];
|
||||
object2 = {applicationName: embedFieldFromMessageBinding2};
|
||||
username = user.username;
|
||||
object2.interactionUser = username;
|
||||
username = a1.username;
|
||||
object2.integrationOwner = username;
|
||||
r2 = Reflect.apply(formatToPlainString, intl, [property, object2]);
|
||||
} else {
|
||||
formatToPlainString = intl.formatToPlainString;
|
||||
property = t['MCK/t7'];
|
||||
object2 = {applicationName: embedFieldFromMessageBinding2};
|
||||
username = user.username;
|
||||
object2.interactionUser = username;
|
||||
username = a1.username;
|
||||
object2.integrationOwner = username;
|
||||
r2 = Reflect.apply(formatToPlainString, intl, [property, object2]);
|
||||
}
|
||||
r1 = r2;
|
||||
} else {
|
||||
r1 = decisionOutcomeFromMessage !== AutomodDecisionOutcomeEmbedKeys.BLOCKED ? intl.formatToPlainString(t['0Kmtr7'],
|
||||
|
||||
|
||||
|
||||
{applicationName: embedFieldFromMessageBinding2,
|
||||
integrationOwner: a1.username}) : intl.formatToPlainString(t.I0FiWp,
|
||||
{applicationName: embedFieldFromMessageBinding2, integrationOwner: a1.username});
|
||||
}
|
||||
return r1;
|
||||
}
|
||||
r2 = decisionOutcomeFromMessage !== AutomodDecisionOutcomeEmbedKeys.BLOCKED ? intl.string(t.Oo38tv) : intl.string(t['2kuGkD']);
|
||||
}
|
||||
return r2;
|
||||
}
|
||||
|
||||
function getActionHeaderText(a0, a1) { // fn#43750, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5229:6202, offset: 0x0115cc46, size: 1136 bytes, params: 3, frame: 29
|
||||
var r14;
|
||||
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
const t = (require(1244) /* metro dependency 1244: indexNative */).t;
|
||||
var embedFieldFromMessage;
|
||||
const AutomodDecisionOutcomeEmbedKeys = (require(5057) /* metro dependency 5057: AutomodDecisionOutcomeEmbedKeys */).AutomodDecisionOutcomeEmbedKeys;
|
||||
const AutomodInteractionCallbackTypeEmbedKeys = (require(5056) /* metro dependency 5056: AutomodInteractionCallbackTypeEmbedKeys */).AutomodInteractionCallbackTypeEmbedKeys;
|
||||
let value = a2;
|
||||
const r16 = value !== undefined ? value : NOOP_NULL;
|
||||
value = null;
|
||||
const r15 = value != a1 ? (require(4805) /* metro dependency 4805: useChannelName */).computeChannelName(a1,
|
||||
UserStore, RelationshipStore) : intl.string(t.J90oLW);
|
||||
const profileUpdateTypeFromMessage = getProfileUpdateTypeFromMessage(a0);
|
||||
const quarantineActionFromMessage = getQuarantineActionFromMessage(a0);
|
||||
const quarantineEventFromMessage = getQuarantineEventFromMessage(a0);
|
||||
const quarantineTypeFromMessage = getQuarantineTypeFromMessage(a0);
|
||||
const decisionOutcomeFromMessage = getDecisionOutcomeFromMessage(a0);
|
||||
const getEmbedFieldFromMessageBinding = getEmbedFieldFromMessage;
|
||||
const AutomodMessageEmbedKeys = (require(5052) /* metro dependency 5052: AutomodMessageEmbedKeys */).AutomodMessageEmbedKeys;
|
||||
const INTERACTION_CALLBACK_TYPE = AutomodMessageEmbedKeys.INTERACTION_CALLBACK_TYPE;
|
||||
const embedFieldFromMessageBinding = getEmbedFieldFromMessageBinding(a0, INTERACTION_CALLBACK_TYPE);
|
||||
const APPLICATION_NAME = AutomodMessageEmbedKeys.APPLICATION_NAME;
|
||||
const embedFieldFromMessageBinding2 = getEmbedFieldFromMessageBinding(a0, APPLICATION_NAME);
|
||||
if (value == quarantineTypeFromMessage) {
|
||||
r14 = value == a1 ? NOOP_NULL : PermissionStore.can(Permissions.VIEW_CHANNEL, a1) ? r16 : NOOP_NULL;
|
||||
embedFieldFromMessage = getEmbedFieldFromMessage(a0, AutomodMessageEmbedKeys.VOICE_CHANNEL_STATUS_OUTCOME);
|
||||
} else {
|
||||
var value13 = _getUserProfileRuleHeaderText(profileUpdateTypeFromMessage, quarantineActionFromMessage,
|
||||
quarantineEventFromMessage);
|
||||
if (value != value13) {
|
||||
return value13;
|
||||
}
|
||||
r14 = value == a1 ? NOOP_NULL : PermissionStore.can(Permissions.VIEW_CHANNEL, a1) ? r16 : NOOP_NULL;
|
||||
embedFieldFromMessage = getEmbedFieldFromMessage(a0, AutomodMessageEmbedKeys.VOICE_CHANNEL_STATUS_OUTCOME);
|
||||
}
|
||||
let r1 = value == embedFieldFromMessage ? value : intl.format(embedFieldFromMessage === 'blocked' ? t.cLQrqz : t.bma6cs,
|
||||
{channelName: r15, channelHook: r16});
|
||||
r1 = value == r1 ? value != embedFieldFromMessageBinding2 ? embedFieldFromMessageBinding !== AutomodInteractionCallbackTypeEmbedKeys.MODAL ? decisionOutcomeFromMessage !== AutomodDecisionOutcomeEmbedKeys.BLOCKED ? intl.format(t.AXQufN,
|
||||
{applicationName: embedFieldFromMessageBinding2, channelName: r15, channelHook: r14,
|
||||
integrationOwnerHook: a3}) : intl.format(t.s3tjMN, {applicationName: embedFieldFromMessageBinding2,
|
||||
channelName: r15, channelHook: r14,
|
||||
integrationOwnerHook: a3}) : value != a4 ? decisionOutcomeFromMessage !== AutomodDecisionOutcomeEmbedKeys.BLOCKED ? intl.format(t['4xL9Sk'],
|
||||
{applicationName: embedFieldFromMessageBinding2, interactionUserHook: a4,
|
||||
integrationOwnerHook: a3}) : intl.format(t.S3lNIT, {applicationName: embedFieldFromMessageBinding2,
|
||||
interactionUserHook: a4,
|
||||
integrationOwnerHook: a3}) : decisionOutcomeFromMessage !== AutomodDecisionOutcomeEmbedKeys.BLOCKED ? intl.format(t.AXQufN,
|
||||
{applicationName: embedFieldFromMessageBinding2, channelName: r15, channelHook: r14,
|
||||
integrationOwnerHook: a3}) : intl.format(t.s3tjMN, {applicationName: embedFieldFromMessageBinding2,
|
||||
channelName: r15, channelHook: r14,
|
||||
integrationOwnerHook: a3}) : decisionOutcomeFromMessage !== AutomodDecisionOutcomeEmbedKeys.BLOCKED ? intl.format(t.IZg0VQ,
|
||||
{channelName: r15, channelHook: r14}) : intl.format(t.lOIOSK, {channelName: r15, channelHook: r14}) : r1;
|
||||
return r1;
|
||||
}
|
||||
|
||||
function getQuarantineReasonString(a0) { // fn#43751, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5229:7950, offset: 0x0115d0b6, size: 443 bytes, params: 2, frame: 15
|
||||
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
const t = (require(1244) /* metro dependency 1244: indexNative */).t;
|
||||
const AutomodQuarantineUserMessageEmbedKeys = (require(5058) /* metro dependency 5058: AutomodQuarantineUserMessageEmbedKeys */).AutomodQuarantineUserMessageEmbedKeys;
|
||||
const NICKNAME = AutomodQuarantineUserMessageEmbedKeys.NICKNAME;
|
||||
if (NICKNAME === a0) {
|
||||
return intl.string(t['fkBQa/']);
|
||||
}
|
||||
const USERNAME = AutomodQuarantineUserMessageEmbedKeys.USERNAME;
|
||||
if (USERNAME !== a0) {
|
||||
var GLOBAL_NAME = AutomodQuarantineUserMessageEmbedKeys.GLOBAL_NAME;
|
||||
if (GLOBAL_NAME === a0) {
|
||||
return intl.string(t.V9eJ85);
|
||||
}
|
||||
var CLAN_TAG = AutomodQuarantineUserMessageEmbedKeys.CLAN_TAG;
|
||||
if (CLAN_TAG === a0) {
|
||||
return intl.string(t.Rtum01);
|
||||
}
|
||||
}
|
||||
return intl.string(t.pJQVnr);
|
||||
}
|
||||
|
||||
function extractAutomodNotificationFields(a0) { // fn#43752, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5229:8528, offset: 0x0115d271, size: 469 bytes, params: 2, frame: 22
|
||||
var date;
|
||||
const getEmbedFieldFromMessageBinding = getEmbedFieldFromMessage;
|
||||
const value = undefined;
|
||||
const AutomodNotificationEmbedKeys = (require(5059) /* metro dependency 5059: AutomodNotificationEmbedKeys */).AutomodNotificationEmbedKeys;
|
||||
const NOTIFICATION_TYPE = AutomodNotificationEmbedKeys.NOTIFICATION_TYPE;
|
||||
const embedFieldFromMessageBinding = getEmbedFieldFromMessageBinding(a0, NOTIFICATION_TYPE);
|
||||
const JOIN_ATTEMPTS = AutomodNotificationEmbedKeys.JOIN_ATTEMPTS;
|
||||
const embedFieldFromMessageBinding2 = getEmbedFieldFromMessageBinding(a0, JOIN_ATTEMPTS);
|
||||
const RAID_DATETIME = AutomodNotificationEmbedKeys.RAID_DATETIME;
|
||||
const embedFieldFromMessageBinding3 = getEmbedFieldFromMessageBinding(a0, RAID_DATETIME);
|
||||
const DMS_SENT = AutomodNotificationEmbedKeys.DMS_SENT;
|
||||
const embedFieldFromMessageBinding4 = getEmbedFieldFromMessageBinding(a0, DMS_SENT);
|
||||
const RAID_TYPE = AutomodNotificationEmbedKeys.RAID_TYPE;
|
||||
const embedFieldFromMessageBinding5 = getEmbedFieldFromMessageBinding(a0, RAID_TYPE);
|
||||
const RESOLVED_REASON = AutomodNotificationEmbedKeys.RESOLVED_REASON;
|
||||
const embedFieldFromMessageBinding6 = getEmbedFieldFromMessageBinding(a0, RESOLVED_REASON);
|
||||
const DECISION_ID = AutomodNotificationEmbedKeys.DECISION_ID;
|
||||
const embedFieldFromMessageBinding7 = getEmbedFieldFromMessageBinding(a0, DECISION_ID);
|
||||
const SUSPICIOUS_MENTION_ACTIVITY_UNTIL = AutomodNotificationEmbedKeys.SUSPICIOUS_MENTION_ACTIVITY_UNTIL;
|
||||
const embedFieldFromMessageBinding8 = getEmbedFieldFromMessageBinding(a0, SUSPICIOUS_MENTION_ACTIVITY_UNTIL);
|
||||
const object2 = {};
|
||||
const value10 = null;
|
||||
const r8 = value10 == embedFieldFromMessageBinding ? value10 : embedFieldFromMessageBinding;
|
||||
let r3 = value10 != r8 ? r8 : value;
|
||||
object2.notificationType = r3;
|
||||
object2.joinAttempts = value10 != embedFieldFromMessageBinding2 ? global.parseInt(embedFieldFromMessageBinding2) : value;
|
||||
if (value10 != embedFieldFromMessageBinding3) {
|
||||
date = new global.Date(embedFieldFromMessageBinding3);
|
||||
} else {
|
||||
r3 = value;
|
||||
}
|
||||
object2.raidDatetime = r3;
|
||||
object2.dmsSent = value10 != embedFieldFromMessageBinding4 ? global.parseInt(embedFieldFromMessageBinding4) : value;
|
||||
object2.raidType = value10 != embedFieldFromMessageBinding5 ? embedFieldFromMessageBinding5 : value;
|
||||
object2.resolvedReason = value10 != embedFieldFromMessageBinding6 ? embedFieldFromMessageBinding6 : value;
|
||||
object2.decisionId = value10 != embedFieldFromMessageBinding7 ? embedFieldFromMessageBinding7 : value;
|
||||
object2.suspiciousMentionActivityUntil = value10 != embedFieldFromMessageBinding8 ? new global.Date(embedFieldFromMessageBinding8) : value;
|
||||
return object2;
|
||||
}
|
||||
|
||||
function getRaidAlertResolveCTAText(a0) { // fn#43754, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5229:9827, offset: 0x0115d473, size: 423 bytes, params: 2, frame: 15
|
||||
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
const t = (require(1244) /* metro dependency 1244: indexNative */).t;
|
||||
if (a0 == null) {
|
||||
return intl.string(t.Gh3A0O);
|
||||
}
|
||||
const RaidResolutionType = (require(5061) /* metro dependency 5061: AutomodFeedback */).RaidResolutionType;
|
||||
const LEGITIMATE_ACTIVITY = RaidResolutionType.LEGITIMATE_ACTIVITY;
|
||||
if (LEGITIMATE_ACTIVITY === a0) {
|
||||
return intl.string(t['riQ+HH']);
|
||||
}
|
||||
const DM_SPAM = RaidResolutionType.DM_SPAM;
|
||||
if (DM_SPAM === a0) {
|
||||
return intl.string(t.j5V0ij);
|
||||
}
|
||||
const JOIN_RAID = RaidResolutionType.JOIN_RAID;
|
||||
if (JOIN_RAID === a0) {
|
||||
return intl.string(t.qhaRbG);
|
||||
}
|
||||
const string = intl.string;
|
||||
const GPg6JM = t.GPg6JM;
|
||||
return Reflect.apply(string, intl, [GPg6JM]);
|
||||
}
|
||||
|
||||
function _fun43745() { // fn#43745, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5229:4522, offset: 0x0115c8b7, size: 32 bytes, params: 1, frame: 11
|
||||
return ChannelStore.getChannel(env0_1.embedChannelId);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user