77 lines
3.9 KiB
TypeScript
77 lines
3.9 KiB
TypeScript
/* Metro module 6265; source: modules/safety_common/SafetyToastsUtils.tsx; dependencies: [1379, 1878, 6263, 4617, 3995, 1244, 2324, 2] */
|
|
function _fun49458(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#49458, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6443:6, offset: 0x011fa4eb, size: 154 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 userStore = importDefault(1878) /* metro dependency 1878: UserStore */;
|
|
const env0_5 = (require(6263) /* metro dependency 6263: Constants */).SafetyToastType;
|
|
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/safety_common/SafetyToastsUtils.tsx');
|
|
exports.getSafetyToastTypeContent = getSafetyToastTypeContent;
|
|
}
|
|
|
|
function getSafetyToastTypeContent(a0, a1, a2) { // fn#49459, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6443:247, offset: 0x011fa585, size: 1239 bytes, params: 4, frame: 21
|
|
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
|
const t = (require(1244) /* metro dependency 1244: indexNative */).t;
|
|
const user = UserStore.getUser(a1);
|
|
const channel = ChannelStore.getChannel(a2);
|
|
const value4 = undefined;
|
|
const r4 = (importDefault(4617) /* metro dependency 4617: NicknameUtils */).getName(channel == null ? value4 : channel.guild_id,
|
|
channel == null ? value4 : channel.id,
|
|
user) ?? (importDefault(3995) /* metro dependency 3995: UserUtils */).getGlobalName(user);
|
|
const IGNORE_SUCCESS = SafetyToastType.IGNORE_SUCCESS;
|
|
if (IGNORE_SUCCESS === a0) {
|
|
return intl.formatToPlainString(t['+joqrP'], {username: r4});
|
|
}
|
|
const UNIGNORE_SUCCESS = SafetyToastType.UNIGNORE_SUCCESS;
|
|
if (UNIGNORE_SUCCESS === a0) {
|
|
return intl.formatToPlainString(t.THExKa, {username: r4});
|
|
}
|
|
const BLOCK_SUCCESS = SafetyToastType.BLOCK_SUCCESS;
|
|
if (BLOCK_SUCCESS === a0) {
|
|
return intl.formatToPlainString(t.XXPrIs, {username: r4});
|
|
}
|
|
const UNBLOCK_SUCCESS = SafetyToastType.UNBLOCK_SUCCESS;
|
|
if (UNBLOCK_SUCCESS === a0) {
|
|
return intl.formatToPlainString(t.uExcGX, {username: r4});
|
|
}
|
|
const MUTE_SUCCESS = SafetyToastType.MUTE_SUCCESS;
|
|
if (MUTE_SUCCESS === a0) {
|
|
return intl.formatToPlainString(t.X4NtYb, {username: r4});
|
|
}
|
|
const UNMUTE_SUCCESS = SafetyToastType.UNMUTE_SUCCESS;
|
|
if (UNMUTE_SUCCESS === a0) {
|
|
return intl.formatToPlainString(t.tRaBfY, {username: r4});
|
|
}
|
|
const REPORT_SUCCESS = SafetyToastType.REPORT_SUCCESS;
|
|
if (REPORT_SUCCESS === a0) {
|
|
return intl.formatToPlainString(t.FOptFU, {username: r4});
|
|
}
|
|
const TIGGER_PAWTECT_ERROR = SafetyToastType.TIGGER_PAWTECT_ERROR;
|
|
if (TIGGER_PAWTECT_ERROR === a0) {
|
|
return intl.string(t.c6kn6F);
|
|
}
|
|
const TIGGER_PAWTECT_VERIFIED = SafetyToastType.TIGGER_PAWTECT_VERIFIED;
|
|
if (TIGGER_PAWTECT_VERIFIED === a0) {
|
|
return intl.string(t['7nKAXx']);
|
|
}
|
|
const GENERIC_ERROR = SafetyToastType.GENERIC_ERROR;
|
|
if (GENERIC_ERROR === a0) {
|
|
return intl.string(t.zBpoc7);
|
|
}
|
|
const REPORT_TO_MOD_SUCCESS = SafetyToastType.REPORT_TO_MOD_SUCCESS;
|
|
if (REPORT_TO_MOD_SUCCESS === a0) {
|
|
return intl.string((importDefault(2324) /* metro dependency 2324: ReportToModMessages */).iBypeZ);
|
|
}
|
|
const SAFETY_FEEDBACK_SUCCESS = SafetyToastType.SAFETY_FEEDBACK_SUCCESS;
|
|
if (SAFETY_FEEDBACK_SUCCESS === a0) {
|
|
return intl.string(t.TcFR5k);
|
|
}
|
|
const EXISTING_USER_AGE_GATE_SUCCESS = SafetyToastType.EXISTING_USER_AGE_GATE_SUCCESS;
|
|
if (EXISTING_USER_AGE_GATE_SUCCESS === a0) {
|
|
return intl.string(t['susqq/']);
|
|
}
|
|
return intl.string(t['+c5xtT']);
|
|
}
|
|
|