decord/source/modules/guild_communication_disabled/GuildDisableCommunicationConstants.tsx

64 lines
3 KiB
TypeScript
Raw Normal View History

2026-07-25 08:10:48 +00:00
// Module ID: 1920
2026-07-27 11:26:19 +00:00
// Function ID: 21729
2026-07-20 16:05:17 +00:00
// Name: getFriendlyDurationString
2026-07-25 08:10:48 +00:00
// Dependencies: [653, 1212, 1921, 2]
2026-07-20 16:05:17 +00:00
// Exports: getDisableCommunicationDurationOptions
2026-07-25 08:10:48 +00:00
// Module 1920 (getFriendlyDurationString)
2026-07-23 10:11:24 +00:00
import importDefaultResult from "wrapURL";
const require = arg1;
2026-07-20 16:05:17 +00:00
function getFriendlyDurationString(arg0) {
if (obj.DURATION_60_SEC === arg0) {
2026-07-23 10:11:24 +00:00
const intl6 = require(1212) /* getSystemLocale */.intl;
obj = { secs: 60 };
return intl6.formatToPlainString(require(1212) /* getSystemLocale */.t["4zv/jq"], obj);
2026-07-20 16:05:17 +00:00
} else if (obj.DURATION_5_MIN === arg0) {
2026-07-23 10:11:24 +00:00
const intl5 = require(1212) /* getSystemLocale */.intl;
2026-07-20 16:05:17 +00:00
obj = { mins: 5 };
2026-07-23 10:11:24 +00:00
return intl5.formatToPlainString(require(1212) /* getSystemLocale */.t.opVZ9q, obj);
2026-07-20 16:05:17 +00:00
} else if (obj.DURATION_10_MIN === arg0) {
2026-07-23 10:11:24 +00:00
const intl4 = require(1212) /* getSystemLocale */.intl;
2026-07-20 16:05:17 +00:00
const obj1 = { mins: 10 };
2026-07-23 10:11:24 +00:00
return intl4.formatToPlainString(require(1212) /* getSystemLocale */.t.opVZ9q, obj1);
2026-07-20 16:05:17 +00:00
} else if (obj.DURATION_1_HOUR === arg0) {
2026-07-23 10:11:24 +00:00
const intl3 = require(1212) /* getSystemLocale */.intl;
2026-07-20 16:05:17 +00:00
const obj2 = { hours: 1 };
2026-07-23 10:11:24 +00:00
return intl3.formatToPlainString(require(1212) /* getSystemLocale */.t.xCjYxK, obj2);
2026-07-20 16:05:17 +00:00
} else if (obj.DURATION_1_DAY === arg0) {
2026-07-23 10:11:24 +00:00
const intl2 = require(1212) /* getSystemLocale */.intl;
2026-07-20 16:05:17 +00:00
const obj3 = { days: 1 };
2026-07-23 10:11:24 +00:00
return intl2.formatToPlainString(require(1212) /* getSystemLocale */.t["k2UNz+"], obj3);
2026-07-20 16:05:17 +00:00
} else if (obj.DURATION_1_WEEK === arg0) {
2026-07-23 10:11:24 +00:00
const intl = require(1212) /* getSystemLocale */.intl;
2026-07-20 16:05:17 +00:00
obj = { weeks: 1 };
2026-07-23 10:11:24 +00:00
return intl.formatToPlainString(require(1212) /* getSystemLocale */.t.EmoBD2, obj);
2026-07-20 16:05:17 +00:00
}
}
2026-07-23 10:11:24 +00:00
let obj = { DURATION_60_SEC: 60, [60]: "DURATION_60_SEC", DURATION_5_MIN: 300, [300]: "DURATION_5_MIN", DURATION_10_MIN: 600, [600]: "DURATION_10_MIN", DURATION_1_HOUR: 3600, [3600]: "DURATION_1_HOUR", DURATION_1_DAY: 86400, [86400]: "DURATION_1_DAY", DURATION_1_WEEK: 604800, [604800]: "DURATION_1_WEEK" };
const articleURL = require("wrapURL").getArticleURL(require("ME").HelpdeskArticles.DISABLE_GUILD_COMMUNICATION);
const result = require("wrapURL").fileFinishedImporting("modules/guild_communication_disabled/GuildDisableCommunicationConstants.tsx");
2026-07-20 16:05:17 +00:00
export const DisableCommunicationDuration = obj;
export { getFriendlyDurationString };
export const getDisableCommunicationDurationOptions = () => {
const keys = Object.keys(obj);
const found = keys.filter((arg0) => isNaN(Number(arg0)));
return found.map((id) => {
const obj = { id };
2026-07-23 10:11:24 +00:00
const tmp = outer1_3(outer1_2[id]);
2026-07-20 16:05:17 +00:00
let str = "";
if (null != tmp) {
str = tmp;
}
obj.label = str;
2026-07-23 10:11:24 +00:00
obj.value = outer1_2[id];
2026-07-20 16:05:17 +00:00
return obj;
});
};
export const GUILD_COMMUNICATION_DISABLED_RESOURCE_LINK = articleURL;
export const DISMISSED_COMMUNICATION_DISABLED_NOTIFICATION_GUILDS_KEY = "GuildCommunicationDisabledDismissedGuilds";
export const SET_COMMUNICATION_DISABLED_MODAL_NAME = "Set Communication Disabled Modal";
export const CLEAR_COMMUNICATION_DISABLED_MODAL_NAME = "Clear Communication Disabled Modal";
export const MAX_REASON_LENGTH = 512;