// Metro module 16378 (f16379). import { AutomodActionType } from "./Constants"; export function getRuleDefaultActionsFromConfig(a0) { const r1 = {}; r1[AutomodActionType.BLOCK_MESSAGE] = { type: AutomodActionType.BLOCK_MESSAGE, metadata: { customMessage: void 0 } }; r1[AutomodActionType.FLAG_TO_CHANNEL] = { type: AutomodActionType.FLAG_TO_CHANNEL, metadata: { channelId: void 0 } }; r1[AutomodActionType.USER_COMMUNICATION_DISABLED] = { type: AutomodActionType.USER_COMMUNICATION_DISABLED, metadata: { durationSeconds: 60 } }; r1[AutomodActionType.QUARANTINE_USER] = { type: AutomodActionType.QUARANTINE_USER, metadata: {} }; let c23119_0 = r1; return Array.from(a0.defaultActionTypes).map((item) => c23119_0[item]); } export function isActionFlagToChannel(a0) { return a0.type === AutomodActionType.FLAG_TO_CHANNEL; } export function isActionUserCommunicationDisabled(a0) { return a0.type === AutomodActionType.USER_COMMUNICATION_DISABLED; } export function isActionBlockMessage(a0) { return a0.type === AutomodActionType.BLOCK_MESSAGE; } export function isActionQuarantineUser(a0) { return a0.type === AutomodActionType.QUARANTINE_USER; } export function getDefaultActions() { const r0 = {}; r0[AutomodActionType.BLOCK_MESSAGE] = { type: AutomodActionType.BLOCK_MESSAGE, metadata: { customMessage: void 0 } }; r0[AutomodActionType.FLAG_TO_CHANNEL] = { type: AutomodActionType.FLAG_TO_CHANNEL, metadata: { channelId: void 0 } }; r0[AutomodActionType.USER_COMMUNICATION_DISABLED] = { type: AutomodActionType.USER_COMMUNICATION_DISABLED, metadata: { durationSeconds: 60 } }; r0[AutomodActionType.QUARANTINE_USER] = { type: AutomodActionType.QUARANTINE_USER, metadata: {} }; return r0; }