52 lines
3.3 KiB
TypeScript
52 lines
3.3 KiB
TypeScript
/* Metro module 15886; source: modules/guild_automod/AutomodActionUtils.tsx; dependencies: [11454, 2] */
|
|
import * as FileImportTrackerModule from '../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
|
|
import * as ConstantsModule from './Constants.tsx'; /* Metro dependency 11454 */
|
|
|
|
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 getDefaultActions2 = getDefaultActions;
|
|
const Object = global.Object;
|
|
Object.defineProperty(exports, '__esModule', {value: true});
|
|
(FileImportTrackerModule).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 = getDefaultActions2;
|
|
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);
|
|
function _fun122588(a0) { // fn#122588, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16094:690, offset: 0x00c3fbaf, size: 16 bytes, params: 2, frame: 2
|
|
return env0_0[a0];
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
global.__d(_fun122585, 15886, [11454, 2]) /* metro module 15886, dependencies: [11454, 2] */;
|