decord/source/modules/safety_common/SafetyToastsUtils.tsx

83 lines
4 KiB
TypeScript
Raw Normal View History

2026-07-24 07:16:23 +00:00
// Module ID: 7569
// Function ID: 60356
2026-07-20 16:05:17 +00:00
// Name: getSafetyToastTypeContent
2026-07-24 07:16:23 +00:00
// Dependencies: [1348, 1849, 7563, 4319, 3969, 1212, 2298, 2]
2026-07-20 16:05:17 +00:00
// Exports: getSafetyToastTypeContent
2026-07-24 07:16:23 +00:00
// Module 7569 (getSafetyToastTypeContent)
2026-07-23 10:11:24 +00:00
import _isNativeReflectConstruct from "_isNativeReflectConstruct";
import closure_4 from "_isNativeReflectConstruct";
import { SafetyToastType } from "SafetyToastType";
const require = arg1;
const result = require("SafetyToastType").fileFinishedImporting("modules/safety_common/SafetyToastsUtils.tsx");
2026-07-20 16:05:17 +00:00
export const getSafetyToastTypeContent = function getSafetyToastTypeContent(BLOCK_SUCCESS, id, channelId) {
2026-07-23 10:11:24 +00:00
user = user.getUser(id);
channel = channel.getChannel(channelId);
let obj = importDefault(4319);
2026-07-20 16:05:17 +00:00
let guild_id;
if (null != channel) {
guild_id = channel.guild_id;
}
id = undefined;
if (null != channel) {
id = channel.id;
}
let name = obj.getName(guild_id, id, user);
if (null == name) {
2026-07-23 10:11:24 +00:00
let obj1 = importDefault(3969);
2026-07-20 16:05:17 +00:00
name = obj1.getGlobalName(user);
}
if (SafetyToastType.IGNORE_SUCCESS === BLOCK_SUCCESS) {
2026-07-23 10:11:24 +00:00
const intl14 = require(1212) /* getSystemLocale */.intl;
2026-07-20 16:05:17 +00:00
obj = { username: name };
2026-07-23 10:11:24 +00:00
return intl14.formatToPlainString(require(1212) /* getSystemLocale */.t["+joqrP"], obj);
2026-07-20 16:05:17 +00:00
} else if (SafetyToastType.UNIGNORE_SUCCESS === BLOCK_SUCCESS) {
2026-07-23 10:11:24 +00:00
const intl13 = require(1212) /* getSystemLocale */.intl;
2026-07-20 16:05:17 +00:00
obj = { username: name };
2026-07-23 10:11:24 +00:00
return intl13.formatToPlainString(require(1212) /* getSystemLocale */.t.THExKa, obj);
2026-07-20 16:05:17 +00:00
} else if (SafetyToastType.BLOCK_SUCCESS === BLOCK_SUCCESS) {
2026-07-23 10:11:24 +00:00
const intl12 = require(1212) /* getSystemLocale */.intl;
2026-07-20 16:05:17 +00:00
obj1 = { username: name };
2026-07-23 10:11:24 +00:00
return intl12.formatToPlainString(require(1212) /* getSystemLocale */.t.XXPrIs, obj1);
2026-07-20 16:05:17 +00:00
} else if (SafetyToastType.UNBLOCK_SUCCESS === BLOCK_SUCCESS) {
2026-07-23 10:11:24 +00:00
const intl11 = require(1212) /* getSystemLocale */.intl;
2026-07-20 16:05:17 +00:00
const obj2 = { username: name };
2026-07-23 10:11:24 +00:00
return intl11.formatToPlainString(require(1212) /* getSystemLocale */.t.uExcGX, obj2);
2026-07-20 16:05:17 +00:00
} else if (SafetyToastType.MUTE_SUCCESS === BLOCK_SUCCESS) {
2026-07-23 10:11:24 +00:00
const intl10 = require(1212) /* getSystemLocale */.intl;
2026-07-20 16:05:17 +00:00
const obj3 = { username: name };
2026-07-23 10:11:24 +00:00
return intl10.formatToPlainString(require(1212) /* getSystemLocale */.t.X4NtYb, obj3);
2026-07-20 16:05:17 +00:00
} else if (SafetyToastType.UNMUTE_SUCCESS === BLOCK_SUCCESS) {
2026-07-23 10:11:24 +00:00
const intl9 = require(1212) /* getSystemLocale */.intl;
2026-07-20 16:05:17 +00:00
const obj4 = { username: name };
2026-07-23 10:11:24 +00:00
return intl9.formatToPlainString(require(1212) /* getSystemLocale */.t.tRaBfY, obj4);
2026-07-20 16:05:17 +00:00
} else if (SafetyToastType.REPORT_SUCCESS === BLOCK_SUCCESS) {
2026-07-23 10:11:24 +00:00
const intl8 = require(1212) /* getSystemLocale */.intl;
2026-07-20 16:05:17 +00:00
const obj5 = { username: name };
2026-07-23 10:11:24 +00:00
return intl8.formatToPlainString(require(1212) /* getSystemLocale */.t.FOptFU, obj5);
2026-07-20 16:05:17 +00:00
} else if (SafetyToastType.TIGGER_PAWTECT_ERROR === BLOCK_SUCCESS) {
2026-07-23 10:11:24 +00:00
const intl7 = require(1212) /* getSystemLocale */.intl;
return intl7.string(require(1212) /* getSystemLocale */.t.c6kn6F);
2026-07-20 16:05:17 +00:00
} else if (SafetyToastType.TIGGER_PAWTECT_VERIFIED === BLOCK_SUCCESS) {
2026-07-23 10:11:24 +00:00
const intl6 = require(1212) /* getSystemLocale */.intl;
return intl6.string(require(1212) /* getSystemLocale */.t["7nKAXx"]);
2026-07-20 16:05:17 +00:00
} else if (SafetyToastType.GENERIC_ERROR === BLOCK_SUCCESS) {
2026-07-23 10:11:24 +00:00
const intl5 = require(1212) /* getSystemLocale */.intl;
return intl5.string(require(1212) /* getSystemLocale */.t.zBpoc7);
2026-07-20 16:05:17 +00:00
} else if (SafetyToastType.REPORT_TO_MOD_SUCCESS === BLOCK_SUCCESS) {
2026-07-23 10:11:24 +00:00
const intl4 = require(1212) /* getSystemLocale */.intl;
return intl4.string(importDefault(2298).iBypeZ);
2026-07-20 16:05:17 +00:00
} else if (SafetyToastType.SAFETY_FEEDBACK_SUCCESS === BLOCK_SUCCESS) {
2026-07-23 10:11:24 +00:00
const intl3 = require(1212) /* getSystemLocale */.intl;
return intl3.string(require(1212) /* getSystemLocale */.t.TcFR5k);
2026-07-20 16:05:17 +00:00
} else if (SafetyToastType.EXISTING_USER_AGE_GATE_SUCCESS === BLOCK_SUCCESS) {
2026-07-23 10:11:24 +00:00
const intl2 = require(1212) /* getSystemLocale */.intl;
return intl2.string(require(1212) /* getSystemLocale */.t["susqq/"]);
2026-07-20 16:05:17 +00:00
} else {
2026-07-23 10:11:24 +00:00
const intl = require(1212) /* getSystemLocale */.intl;
return intl.string(require(1212) /* getSystemLocale */.t["+c5xtT"]);
2026-07-20 16:05:17 +00:00
}
};