/* Metro module 15886; source: modules/guild_automod/AutomodActionUtils.tsx; dependencies: [11454, 2] */ function _fun122585(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#122585, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16094:6, offset: 0x0256cd60, size: 188 bytes, params: 8, frame: 19 const closure = getDefaultActions; const Object = global.Object; Object.defineProperty(exports, '__esModule', {value: true}); const env0_0 = (require(11454) /* metro dependency 11454: Constants */).AutomodActionType; (require(2) /* metro dependency 2 */).fileFinishedImporting('modules/guild_automod/AutomodActionUtils.tsx'); exports.getRuleDefaultActionsFromConfig = getRuleDefaultActionsFromConfig; exports.isActionFlagToChannel = function({type}) { return type === AutomodActionType.FLAG_TO_CHANNEL; }; exports.isActionUserCommunicationDisabled = function({type}) { return type === AutomodActionType.USER_COMMUNICATION_DISABLED; }; exports.isActionBlockMessage = function({type}) { return type === AutomodActionType.BLOCK_MESSAGE; }; exports.isActionQuarantineUser = function({type}) { return type === AutomodActionType.QUARANTINE_USER; }; exports.getDefaultActions = closure; } function getDefaultActions() { // fn#122586, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16094:124, offset: 0x0256ce1c, size: 178 bytes, params: 1, frame: 7 const BLOCK_MESSAGE = AutomodActionType.BLOCK_MESSAGE; const BLOCK_MESSAGE2 = AutomodActionType.BLOCK_MESSAGE; const FLAG_TO_CHANNEL = AutomodActionType.FLAG_TO_CHANNEL; const FLAG_TO_CHANNEL2 = AutomodActionType.FLAG_TO_CHANNEL; const USER_COMMUNICATION_DISABLED = AutomodActionType.USER_COMMUNICATION_DISABLED; const USER_COMMUNICATION_DISABLED2 = AutomodActionType.USER_COMMUNICATION_DISABLED; const QUARANTINE_USER = AutomodActionType.QUARANTINE_USER; const QUARANTINE_USER2 = AutomodActionType.QUARANTINE_USER; return {[BLOCK_MESSAGE]: {type: BLOCK_MESSAGE2, metadata: {customMessage: undefined}}, [FLAG_TO_CHANNEL]: {type: FLAG_TO_CHANNEL2, metadata: {channelId: undefined}}, [USER_COMMUNICATION_DISABLED]: {type: USER_COMMUNICATION_DISABLED2, metadata: {durationSeconds: 60}}, [QUARANTINE_USER]: {type: QUARANTINE_USER2, metadata: {}}}; } function getRuleDefaultActionsFromConfig({defaultActionTypes}) { // fn#122587, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16094:575, offset: 0x0256cece, size: 65 bytes, params: 2, frame: 12 const env0_0 = getDefaultActions(); const Array = global.Array; return Array.from(defaultActionTypes).map(_fun122588); }