decord/source/modules/safety_common/SafetyToastsUtils.tsx

102 lines
4.7 KiB
TypeScript
Raw Normal View History

2026-08-15 05:55:55 +00:00
// Module ID: 6554
// Function ID: 6555
2026-07-20 16:05:17 +00:00
// Name: getSafetyToastTypeContent
2026-08-15 05:55:55 +00:00
// Dependencies: [1391, 1922, 5430, 4796, 4219, 1236, 2853, 2435, 2]
2026-07-20 16:05:17 +00:00
// Exports: getSafetyToastTypeContent
2026-08-15 05:55:55 +00:00
// Module 6554 (getSafetyToastTypeContent)
2026-07-29 08:29:29 +00:00
import ensureGuildLoaded from "ensureGuildLoaded";
import mergeGuildAvatar from "mergeGuildAvatar";
2026-07-23 10:11:24 +00:00
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
2026-07-29 08:29:29 +00:00
export const getSafetyToastTypeContent = function getSafetyToastTypeContent(BLOCK_SUCCESS, closure_0, c1) {
user = user.getUser(closure_0);
channel = channel.getChannel(c1);
2026-08-15 05:55:55 +00:00
let obj = importDefault(4796);
2026-07-20 16:05:17 +00:00
let guild_id;
2026-07-29 08:29:29 +00:00
if (channel != null) {
2026-07-20 16:05:17 +00:00
guild_id = channel.guild_id;
}
2026-07-29 08:29:29 +00:00
let id;
if (channel != null) {
2026-07-20 16:05:17 +00:00
id = channel.id;
}
let name = obj.getName(guild_id, id, user);
2026-07-29 08:29:29 +00:00
if (name == null) {
2026-08-15 05:55:55 +00:00
name = tmp3(4219).getGlobalName(user);
const tmp3Result = tmp3(4219);
2026-07-20 16:05:17 +00:00
}
if (SafetyToastType.IGNORE_SUCCESS === BLOCK_SUCCESS) {
2026-08-07 06:50:47 +00:00
const intl18 = require(1236) /* getSystemLocale */.intl;
2026-07-29 08:29:29 +00:00
obj = { username: null };
obj[0] = name;
2026-08-07 06:50:47 +00:00
return intl18.formatToPlainString(require(1236) /* getSystemLocale */.t["+joqrP"], obj);
2026-07-29 08:29:29 +00:00
} else if (tmp8.UNIGNORE_SUCCESS === BLOCK_SUCCESS) {
2026-08-07 06:50:47 +00:00
const intl17 = require(1236) /* getSystemLocale */.intl;
2026-07-29 08:29:29 +00:00
obj = { username: null };
obj[0] = name;
2026-08-07 06:50:47 +00:00
return intl17.formatToPlainString(require(1236) /* getSystemLocale */.t.THExKa, obj);
2026-07-29 08:29:29 +00:00
} else if (tmp8.BLOCK_SUCCESS === BLOCK_SUCCESS) {
2026-08-07 06:50:47 +00:00
const intl16 = require(1236) /* getSystemLocale */.intl;
2026-07-29 08:29:29 +00:00
const obj1 = { username: null };
obj1[0] = name;
2026-08-07 06:50:47 +00:00
return intl16.formatToPlainString(require(1236) /* getSystemLocale */.t.XXPrIs, obj1);
2026-07-29 08:29:29 +00:00
} else if (tmp8.UNBLOCK_SUCCESS === BLOCK_SUCCESS) {
2026-08-07 06:50:47 +00:00
const intl15 = require(1236) /* getSystemLocale */.intl;
2026-07-29 08:29:29 +00:00
const obj2 = { username: null };
obj2[0] = name;
2026-08-07 06:50:47 +00:00
return intl15.formatToPlainString(require(1236) /* getSystemLocale */.t.uExcGX, obj2);
2026-07-29 08:29:29 +00:00
} else if (tmp8.MUTE_SUCCESS === BLOCK_SUCCESS) {
2026-08-07 06:50:47 +00:00
const intl14 = require(1236) /* getSystemLocale */.intl;
2026-07-29 08:29:29 +00:00
const obj3 = { username: null };
obj3[0] = name;
2026-08-07 06:50:47 +00:00
return intl14.formatToPlainString(require(1236) /* getSystemLocale */.t.X4NtYb, obj3);
2026-07-29 08:29:29 +00:00
} else if (tmp8.UNMUTE_SUCCESS === BLOCK_SUCCESS) {
2026-08-07 06:50:47 +00:00
const intl13 = require(1236) /* getSystemLocale */.intl;
2026-07-29 08:29:29 +00:00
const obj4 = { username: null };
obj4[0] = name;
2026-08-07 06:50:47 +00:00
return intl13.formatToPlainString(require(1236) /* getSystemLocale */.t.tRaBfY, obj4);
2026-07-29 08:29:29 +00:00
} else if (tmp8.REPORT_SUCCESS === BLOCK_SUCCESS) {
2026-08-07 06:50:47 +00:00
const intl12 = require(1236) /* getSystemLocale */.intl;
2026-07-29 08:29:29 +00:00
const obj5 = { username: null };
obj5[0] = name;
2026-08-07 06:50:47 +00:00
return intl12.formatToPlainString(require(1236) /* getSystemLocale */.t.FOptFU, obj5);
2026-07-29 08:29:29 +00:00
} else if (tmp8.TIGGER_PAWTECT_ERROR === BLOCK_SUCCESS) {
2026-08-07 06:50:47 +00:00
const intl11 = require(1236) /* getSystemLocale */.intl;
return intl11.string(require(1236) /* getSystemLocale */.t.c6kn6F);
} else if (tmp8.AGE_VERIFICATION_FAE_FAILED === BLOCK_SUCCESS) {
const intl10 = require(1236) /* getSystemLocale */.intl;
2026-08-15 05:55:55 +00:00
return intl10.string(tmp3(2853)["9F2y52"]);
2026-08-07 06:50:47 +00:00
} else if (tmp8.AGE_VERIFICATION_ID_FAILED === BLOCK_SUCCESS) {
const intl9 = require(1236) /* getSystemLocale */.intl;
2026-08-15 05:55:55 +00:00
return intl9.string(tmp3(2853)["40UKek"]);
2026-08-07 06:50:47 +00:00
} else if (tmp8.AGE_VERIFICATION_UNDERAGE === BLOCK_SUCCESS) {
2026-08-06 08:05:19 +00:00
const intl8 = require(1236) /* getSystemLocale */.intl;
2026-08-15 05:55:55 +00:00
return intl8.string(tmp3(2853).XBGt7g);
2026-07-29 08:29:29 +00:00
} else if (tmp8.TIGGER_PAWTECT_VERIFIED === BLOCK_SUCCESS) {
2026-08-06 08:05:19 +00:00
const intl7 = require(1236) /* getSystemLocale */.intl;
return intl7.string(require(1236) /* getSystemLocale */.t["7nKAXx"]);
2026-07-29 08:29:29 +00:00
} else if (tmp8.GENERIC_ERROR === BLOCK_SUCCESS) {
2026-08-06 08:05:19 +00:00
const intl6 = require(1236) /* getSystemLocale */.intl;
return intl6.string(require(1236) /* getSystemLocale */.t.zBpoc7);
2026-07-29 08:29:29 +00:00
} else if (tmp8.REPORT_TO_MOD_SUCCESS === BLOCK_SUCCESS) {
2026-08-06 08:05:19 +00:00
const intl5 = require(1236) /* getSystemLocale */.intl;
2026-08-15 05:55:55 +00:00
return intl5.string(tmp3(2435).iBypeZ);
2026-07-29 08:29:29 +00:00
} else if (tmp8.SAFETY_FEEDBACK_SUCCESS === BLOCK_SUCCESS) {
2026-08-06 08:05:19 +00:00
const intl4 = require(1236) /* getSystemLocale */.intl;
return intl4.string(require(1236) /* getSystemLocale */.t.TcFR5k);
2026-07-29 08:29:29 +00:00
} else if (tmp8.EXISTING_USER_AGE_GATE_SUCCESS === BLOCK_SUCCESS) {
2026-08-06 08:05:19 +00:00
const intl3 = require(1236) /* getSystemLocale */.intl;
return intl3.string(require(1236) /* getSystemLocale */.t["susqq/"]);
} else if (tmp8.AGE_VERIFICATION_METHOD_UNAVAILABLE === BLOCK_SUCCESS) {
2026-07-29 08:29:29 +00:00
const intl2 = require(1236) /* getSystemLocale */.intl;
2026-08-15 05:55:55 +00:00
return intl2.string(tmp3(2853).vVwFCK);
2026-07-20 16:05:17 +00:00
} else {
2026-07-29 08:29:29 +00:00
const intl = require(1236) /* getSystemLocale */.intl;
return intl.string(require(1236) /* getSystemLocale */.t["+c5xtT"]);
2026-07-20 16:05:17 +00:00
}
};