Initial commit
This commit is contained in:
commit
af3b49f756
16065 files changed
+2938410
No files matched your search
@@ -0,0 +1,81 @@
|
||||
/* Metro module 11185; source: modules/messages/validateJumpWithAlert.tsx; dependencies: [1379, 3784, 3793, 661, 4647, 1244, 5050, 2] */
|
||||
function _fun85448(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#85448, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11371:6, offset: 0x01f6ef42, size: 172 bytes, params: 8, frame: 19
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
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 env0_6 = (require(661) /* metro dependency 661: Constants */).Permissions;
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/messages/validateJumpWithAlert.tsx');
|
||||
exports.default = validateJumpWithAlert;
|
||||
}
|
||||
|
||||
function validateJumpWithAlert(a0, a1) { // fn#85449, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11371:234, offset: 0x01f6efee, size: 1076 bytes, params: 3, frame: 23
|
||||
var value3;
|
||||
var defaultImport;
|
||||
var show;
|
||||
var object2;
|
||||
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
const t = (require(1244) /* metro dependency 1244: indexNative */).t;
|
||||
var defaultImport2;
|
||||
var defaultImport3;
|
||||
var defaultImport4;
|
||||
if (RelationshipStore.isBlockedForMessage(a0)) {
|
||||
defaultImport4 = importDefault(4647) /* metro dependency 4647: AlertActionCreators */;
|
||||
show = defaultImport4.show;
|
||||
object2 = {};
|
||||
object2.title = intl.string(t['j7eA/g']);
|
||||
object2.body = intl.formatToPlainString(t.dTNNgr, {name: a0.author.username});
|
||||
object2.confirmText = intl.string(t.BddRzS);
|
||||
Reflect.apply(show, defaultImport4, [object2]);
|
||||
return false;
|
||||
}
|
||||
if (RelationshipStore.isIgnoredForMessage(a0)) {
|
||||
defaultImport3 = importDefault(4647) /* metro dependency 4647: AlertActionCreators */;
|
||||
show = defaultImport3.show;
|
||||
object2 = {};
|
||||
object2.title = intl.string(t.XyWoKV);
|
||||
object2.body = intl.formatToPlainString(t['8t8doK'], {name: a0.author.username});
|
||||
object2.confirmText = intl.string(t.BddRzS);
|
||||
Reflect.apply(show, defaultImport3, [object2]);
|
||||
return false;
|
||||
}
|
||||
const value2 = undefined;
|
||||
const isSpamModule = require(5050) /* metro dependency 5050: isSpam */;
|
||||
if (isSpamModule.isSpam(a0)) {
|
||||
value3 = ChannelStore.getChannel(a0.channel_id);
|
||||
if (value3 == null ? value2 : value3.isPrivate()) {
|
||||
defaultImport2 = importDefault(4647) /* metro dependency 4647: AlertActionCreators */;
|
||||
show = defaultImport2.show;
|
||||
object2 = {};
|
||||
object2.title = intl.string(t['cZcG+P']);
|
||||
object2.body = intl.formatToPlainString(t['1YTWty'], {name: a0.author.username});
|
||||
object2.confirmText = intl.string(t['+TSRGD']);
|
||||
object2.cancelText = intl.string(t['ETE/oC']);
|
||||
object2.onConfirm = a1;
|
||||
Reflect.apply(show, defaultImport2, [object2]);
|
||||
} else if (PermissionStore.can(Permissions.MODERATE_MEMBERS, value3)) {
|
||||
defaultImport2 = importDefault(4647) /* metro dependency 4647: AlertActionCreators */;
|
||||
show = defaultImport2.show;
|
||||
object2 = {};
|
||||
object2.title = intl.string(t['cZcG+P']);
|
||||
object2.body = intl.formatToPlainString(t['1YTWty'], {name: a0.author.username});
|
||||
object2.confirmText = intl.string(t['+TSRGD']);
|
||||
object2.cancelText = intl.string(t['ETE/oC']);
|
||||
object2.onConfirm = a1;
|
||||
Reflect.apply(show, defaultImport2, [object2]);
|
||||
} else {
|
||||
defaultImport = importDefault(4647) /* metro dependency 4647: AlertActionCreators */;
|
||||
show = defaultImport.show;
|
||||
object2 = {};
|
||||
object2.title = intl.string(t['6vJKFk']);
|
||||
object2.body = intl.formatToPlainString(t.zKNgPF, {name: a0.author.username});
|
||||
object2.confirmText = intl.string(t.BddRzS);
|
||||
Reflect.apply(show, defaultImport, [object2]);
|
||||
}
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user