// Module ID: 12468 // Function ID: 12469 // Name: validateJumpWithAlert // Dependencies: [1372, 3913, 3922, 676, 4623, 1236, 6875, 2] // Exports: default // Module 12468 (validateJumpWithAlert) import ensureGuildLoaded from "ensureGuildLoaded"; import getUncachedChannelPermissions from "getUncachedChannelPermissions"; import upsertRelationship from "upsertRelationship"; import { Permissions } from "ME"; const require = arg1; const result = require("upsertRelationship").fileFinishedImporting("modules/messages/validateJumpWithAlert.tsx"); export default function validateJumpWithAlert(author) { let obj = blockedForMessage; if (blockedForMessage.isBlockedForMessage(author)) { obj = { title: null, body: null, confirmText: null }; const intl11 = require(1236) /* getSystemLocale */.intl; obj[0] = intl11.string(require(1236) /* getSystemLocale */.t["j7eA/g"]); const intl12 = require(1236) /* getSystemLocale */.intl; obj = { name: null }; obj[0] = author.author.username; obj[1] = intl12.formatToPlainString(require(1236) /* getSystemLocale */.t.dTNNgr, obj); const intl13 = require(1236) /* getSystemLocale */.intl; obj[2] = intl13.string(require(1236) /* getSystemLocale */.t.BddRzS); importDefault(4623).show(obj); return false; } else if (obj.isIgnoredForMessage(author)) { let obj1 = { title: null, body: null, confirmText: null }; const intl8 = require(1236) /* getSystemLocale */.intl; obj1[0] = intl8.string(require(1236) /* getSystemLocale */.t.XyWoKV); const intl9 = require(1236) /* getSystemLocale */.intl; const obj2 = { name: null }; obj2[0] = author.author.username; obj1[1] = intl9.formatToPlainString(require(1236) /* getSystemLocale */.t["8t8doK"], obj2); const intl10 = require(1236) /* getSystemLocale */.intl; obj1[2] = intl10.string(require(1236) /* getSystemLocale */.t.BddRzS); importDefault(4623).show(obj1); return false; } else { obj1 = require(6875) /* isSpamSupported */; if (obj1.isSpam(author)) { channel = channel.getChannel(author.channel_id); let isPrivateResult; if (channel != null) { isPrivateResult = channel.isPrivate(); } if (!isPrivateResult) { if (!getUncachedChannelPermissions.can(Permissions.MODERATE_MEMBERS, channel)) { let obj3 = importDefault(4623); obj3 = { title: null, body: null, confirmText: null }; const intl = tmp(1236).intl; obj3[0] = intl.string(tmp(1236).t["6vJKFk"]); const intl2 = tmp(1236).intl; const obj4 = { name: null }; obj4[0] = author.author.username; obj3[1] = intl2.formatToPlainString(tmp(1236).t.zKNgPF, obj4); const intl3 = tmp(1236).intl; obj3[2] = intl3.string(tmp(1236).t.BddRzS); obj3.show(obj3); } return false; } let obj6 = importDefault(4623); const obj5 = { title: null, body: null, confirmText: null, cancelText: null, onConfirm: null }; const intl4 = tmp(1236).intl; obj5[0] = intl4.string(tmp(1236).t["cZcG+P"]); const intl5 = tmp(1236).intl; obj6 = { name: null }; obj6[0] = author.author.username; obj5[1] = intl5.formatToPlainString(tmp(1236).t["1YTWty"], obj6); const intl6 = tmp(1236).intl; obj5[2] = intl6.string(tmp(1236).t["+TSRGD"]); const intl7 = tmp(1236).intl; obj5[3] = intl7.string(tmp(1236).t["ETE/oC"]); obj5[4] = arg1; obj6.show(obj5); } else { return true; } } };