decord/source/modules/guild_settings/roles/GuildSettingsRoleConstants.tsx

145 lines
6.9 KiB
TypeScript
Raw Normal View History

2026-08-24 06:08:38 +00:00
// Module ID: 16923
// Function ID: 16924
2026-07-20 16:05:17 +00:00
// Name: title
2026-08-24 06:08:38 +00:00
// Dependencies: [16924, 676, 16926, 506, 4029, 711, 1236, 2]
2026-07-23 10:11:24 +00:00
2026-08-24 06:08:38 +00:00
// Module 16923 (title)
import set from "set" /* 2 */;
import getSystemLocale from "getSystemLocale" /* 1236 */;
import applyOverwritesAll from "applyOverwrites" /* 4029 */;
import handleSetSection from "handleSetSection" /* 16924 */;
import ME from "ME" /* 676 */;
import HOLOGRAPHIC_ROLE_COLORS from "HOLOGRAPHIC_ROLE_COLORS" /* 16926 */;
import importAllResult from "fromString" /* 506 */;
import unsafe_getRawColor from "unsafe_getRawColor" /* 711 */;
2026-07-20 16:05:17 +00:00
2026-08-24 06:08:38 +00:00
const RoleColorsStyle = handleSetSection.RoleColorsStyle;
2026-07-29 08:29:29 +00:00
({ Permissions, DEFAULT_ROLE_COLOR } = ME);
2026-07-20 16:05:17 +00:00
let obj = { COSMETIC: 0, [0]: "COSMETIC", MEMBER: 1, [1]: "MEMBER", MODERATOR: 2, [2]: "MODERATOR", MANAGER: 3, [3]: "MANAGER" };
2026-07-23 10:11:24 +00:00
({ DEFAULT_GRADIENT_ROLE_COLORS, HOLOGRAPHIC_ROLE_COLORS } = HOLOGRAPHIC_ROLE_COLORS);
2026-08-24 06:08:38 +00:00
const removeResult = importAllResult.remove(applyOverwritesAll.DEFAULT, Permissions.MENTION_EVERYONE);
const combineResult = importAllResult.combine(applyOverwritesAll.DEFAULT, Permissions.VIEW_AUDIT_LOG, Permissions.MANAGE_NICKNAMES, Permissions.KICK_MEMBERS, Permissions.BAN_MEMBERS, Permissions.MANAGE_MESSAGES, Permissions.MUTE_MEMBERS, Permissions.DEAFEN_MEMBERS, Permissions.MOVE_MEMBERS, Permissions.PRIORITY_SPEAKER, Permissions.MODERATE_MEMBERS);
const importAllResult1 = importAllResult;
const combineResult1 = importAllResult.combine(combineResult, Permissions.MANAGE_CHANNELS, Permissions.MANAGE_THREADS, Permissions.MANAGE_ROLES, Permissions.MANAGE_GUILD_EXPRESSIONS, Permissions.MANAGE_GUILD, Permissions.MANAGE_WEBHOOKS, Permissions.SEND_TTS_MESSAGES);
const importAllResult2 = importAllResult;
2026-07-20 16:05:17 +00:00
obj = {};
2026-07-29 08:29:29 +00:00
obj = { key: "template_cosmetic", color: null, permissions: null, title: null, description: null, contents: null, contentPreface: null };
2026-08-24 06:08:38 +00:00
const importAllResult3 = importAllResult;
2026-07-29 08:29:29 +00:00
obj[1] = unsafe_getRawColor.unsafe_getRawColor("BRAND_500");
2026-08-24 06:08:38 +00:00
obj[2] = applyOverwritesAll.NONE;
2026-07-29 08:29:29 +00:00
obj[3] = function title() {
2026-08-24 06:08:38 +00:00
const intl = getSystemLocale.intl;
return intl.string(getSystemLocale.t.M8jQyg);
2026-07-29 08:29:29 +00:00
};
obj[4] = function description() {
2026-08-24 06:08:38 +00:00
const intl = getSystemLocale.intl;
return intl.string(getSystemLocale.t["7nF/S/"]);
2026-07-29 08:29:29 +00:00
};
obj[5] = function contents() {
2026-08-24 06:08:38 +00:00
const intl = getSystemLocale.intl;
const items = [intl.string(getSystemLocale.t.uwLDAb), ];
const intl2 = getSystemLocale.intl;
items[1] = intl2.string(getSystemLocale.t.gqngN7);
2026-07-20 16:05:17 +00:00
return items;
};
2026-07-29 08:29:29 +00:00
obj[6] = function contentPreface() {
2026-07-20 16:05:17 +00:00
return "";
};
obj[obj.COSMETIC] = obj;
2026-07-29 08:29:29 +00:00
const obj1 = { key: "template_member", color: null, permissions: null, communityPermissions: null, title: null, description: null, contents: null, contentPreface: null };
obj1[1] = unsafe_getRawColor.unsafe_getRawColor("GREEN_360");
2026-08-24 06:08:38 +00:00
obj1[2] = applyOverwritesAll.DEFAULT;
2026-07-29 08:29:29 +00:00
obj1[3] = removeResult;
obj1[4] = function title() {
2026-08-24 06:08:38 +00:00
const intl = getSystemLocale.intl;
return intl.string(getSystemLocale.t["9BsHzh"]);
2026-07-29 08:29:29 +00:00
};
obj1[5] = function description() {
2026-08-24 06:08:38 +00:00
const intl = getSystemLocale.intl;
return intl.string(getSystemLocale.t.ywKYtw);
2026-07-29 08:29:29 +00:00
};
obj1[6] = function contents() {
2026-08-24 06:08:38 +00:00
const intl = getSystemLocale.intl;
const items = [intl.string(getSystemLocale.t["9Vhbnl"]), , ];
const intl2 = getSystemLocale.intl;
items[1] = intl2.string(getSystemLocale.t["0xn+w1"]);
const intl3 = getSystemLocale.intl;
items[2] = intl3.string(getSystemLocale.t.ieWVpB);
2026-07-20 16:05:17 +00:00
return items;
};
2026-07-29 08:29:29 +00:00
obj1[7] = function contentPreface() {
2026-07-20 16:05:17 +00:00
return "";
};
obj[obj.MEMBER] = obj1;
2026-07-29 08:29:29 +00:00
const obj2 = { key: "template_moderator", color: null, permissions: null, title: null, description: null, contents: null, contentPreface: null };
obj2[1] = unsafe_getRawColor.unsafe_getRawColor("YELLOW_300");
obj2[2] = combineResult;
obj2[3] = function title() {
2026-08-24 06:08:38 +00:00
const intl = getSystemLocale.intl;
return intl.string(getSystemLocale.t["m/GC8z"]);
2026-07-29 08:29:29 +00:00
};
obj2[4] = function description() {
2026-08-24 06:08:38 +00:00
const intl = getSystemLocale.intl;
return intl.string(getSystemLocale.t.ERrMJZ);
2026-07-29 08:29:29 +00:00
};
obj2[5] = function contents() {
2026-08-24 06:08:38 +00:00
const intl = getSystemLocale.intl;
const items = [intl.string(getSystemLocale.t.YOSxcd), , , ];
const intl2 = getSystemLocale.intl;
items[1] = intl2.string(getSystemLocale.t.q9H4Fm);
const intl3 = getSystemLocale.intl;
items[2] = intl3.string(getSystemLocale.t["9nHnCj"]);
const intl4 = getSystemLocale.intl;
items[3] = intl4.string(getSystemLocale.t.iqwXvc);
2026-07-20 16:05:17 +00:00
return items;
};
2026-07-29 08:29:29 +00:00
obj2[6] = function contentPreface() {
2026-08-24 06:08:38 +00:00
const intl = getSystemLocale.intl;
return intl.string(getSystemLocale.t.amGM7K);
2026-07-20 16:05:17 +00:00
};
obj[obj.MODERATOR] = obj2;
2026-07-29 08:29:29 +00:00
const obj3 = { key: "template_manager", color: null, permissions: null, communityPermissions: null, title: null, description: null, contents: null, contentPreface: null };
obj3[1] = unsafe_getRawColor.unsafe_getRawColor("RED_400");
obj3[2] = combineResult1;
2026-08-24 06:08:38 +00:00
obj3[3] = importAllResult.add(combineResult1, Permissions.VIEW_GUILD_ANALYTICS);
2026-07-29 08:29:29 +00:00
obj3[4] = function title() {
2026-08-24 06:08:38 +00:00
const intl = getSystemLocale.intl;
return intl.string(getSystemLocale.t.qKmu3w);
2026-07-29 08:29:29 +00:00
};
obj3[5] = function description() {
2026-08-24 06:08:38 +00:00
const intl = getSystemLocale.intl;
return intl.string(getSystemLocale.t.WxWPYV);
2026-07-29 08:29:29 +00:00
};
obj3[6] = function contents() {
2026-08-24 06:08:38 +00:00
const intl = getSystemLocale.intl;
const items = [intl.string(getSystemLocale.t.Hx1Vox), , , ];
const intl2 = getSystemLocale.intl;
items[1] = intl2.string(getSystemLocale.t["aUZ/zD"]);
const intl3 = getSystemLocale.intl;
items[2] = intl3.string(getSystemLocale.t["8lQujv"]);
const intl4 = getSystemLocale.intl;
items[3] = intl4.string(getSystemLocale.t.cUP4pl);
2026-07-20 16:05:17 +00:00
return items;
};
2026-07-29 08:29:29 +00:00
obj3[7] = function contentPreface() {
2026-08-24 06:08:38 +00:00
const intl = getSystemLocale.intl;
return intl.string(getSystemLocale.t["7Dkb62"]);
2026-07-20 16:05:17 +00:00
};
obj[obj.MANAGER] = obj3;
2026-08-24 06:08:38 +00:00
const addResult = importAllResult.add(combineResult1, Permissions.VIEW_GUILD_ANALYTICS);
let items = [{ id: RoleColorsStyle.SOLID, colors: { primary_color: DEFAULT_ROLE_COLOR, secondary_color: null, tertiary_color: null }, labelString: getSystemLocale.t["8Qyahn"] }, , ];
const obj4 = { id: RoleColorsStyle.SOLID, colors: { primary_color: DEFAULT_ROLE_COLOR, secondary_color: null, tertiary_color: null }, labelString: getSystemLocale.t["8Qyahn"] };
items[1] = { id: RoleColorsStyle.GRADIENT, colors: DEFAULT_GRADIENT_ROLE_COLORS, labelString: getSystemLocale.t.XpWmJz };
const obj5 = { id: RoleColorsStyle.GRADIENT, colors: DEFAULT_GRADIENT_ROLE_COLORS, labelString: getSystemLocale.t.XpWmJz };
items[2] = { id: RoleColorsStyle.HOLOGRAPHIC, colors: HOLOGRAPHIC_ROLE_COLORS, labelString: getSystemLocale.t.QTKppe };
const obj6 = { id: RoleColorsStyle.HOLOGRAPHIC, colors: HOLOGRAPHIC_ROLE_COLORS, labelString: getSystemLocale.t.QTKppe };
const result = set.fileFinishedImporting("modules/guild_settings/roles/GuildSettingsRoleConstants.tsx");
2026-07-20 16:05:17 +00:00
export const CREATE_ROLE_DESKTOP_MODAL_WIDTH = 440;
export const DEFAULT_HEADER_HEIGHT_PX = 371;
export const MAX_BULK_ROLE_MEMBERS_ADD = 30;
export const PermissionTemplateTypes = obj;
export const DEFAULT_TEMPLATE_TYPE = obj.COSMETIC;
export const PermissionTemplates = obj;
export const STYLE_CONFIGS = items;