Files
discord-decomp/sources/modules/guild_settings/roles/GuildSettingsRoleConstants.tsx
T
2026-07-27 16:20:00 +03:00

178 lines
9.6 KiB
TypeScript

/* Metro module 15946; source: modules/guild_settings/roles/GuildSettingsRoleConstants.tsx; dependencies: [15947, 661, 15949, 483, 3789, 696, 1244, 2] */
function _fun123166(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#123166, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16154:6, offset: 0x025836d6, size: 1133 bytes, params: 8, frame: 47
var object8;
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const RoleColorsStyle = (require(15947) /* metro dependency 15947: GuildSettingsRolesStore */).RoleColorsStyle;
let value = require(661) /* metro dependency 661: Constants */;
const DEFAULT_ROLE_COLOR = value.DEFAULT_ROLE_COLOR;
const Permissions = value.Permissions;
value = require(15949) /* metro dependency 15949: EnhancedRoleColorConstants */;
const DEFAULT_GRADIENT_ROLE_COLORS = value.DEFAULT_GRADIENT_ROLE_COLORS;
const HOLOGRAPHIC_ROLE_COLORS = value.HOLOGRAPHIC_ROLE_COLORS;
object8 = {COSMETIC: 0};
object8[0] = 'COSMETIC';
object8.MEMBER = 1;
object8[1] = 'MEMBER';
object8.MODERATOR = 2;
object8[2] = 'MODERATOR';
object8.MANAGER = 3;
object8[3] = 'MANAGER';
const COSMETIC = object8.COSMETIC;
const remove = (importAll(483) /* metro dependency 483: BigFlagUtils */).remove;
let DEFAULT = (importAll(3789) /* metro dependency 3789: PermissionUtils */).DEFAULT;
const MENTION_EVERYONE = Permissions.MENTION_EVERYONE;
value = Reflect.apply(remove, value, [DEFAULT, MENTION_EVERYONE]);
const bigFlagUtilsModule = importAll(483) /* metro dependency 483: BigFlagUtils */;
let combine = bigFlagUtilsModule.combine;
DEFAULT = (importAll(3789) /* metro dependency 3789: PermissionUtils */).DEFAULT;
const VIEW_AUDIT_LOG = Permissions.VIEW_AUDIT_LOG;
const MANAGE_NICKNAMES = Permissions.MANAGE_NICKNAMES;
const KICK_MEMBERS = Permissions.KICK_MEMBERS;
const BAN_MEMBERS = Permissions.BAN_MEMBERS;
const MANAGE_MESSAGES = Permissions.MANAGE_MESSAGES;
const MUTE_MEMBERS = Permissions.MUTE_MEMBERS;
const DEAFEN_MEMBERS = Permissions.DEAFEN_MEMBERS;
const MOVE_MEMBERS = Permissions.MOVE_MEMBERS;
const PRIORITY_SPEAKER = Permissions.PRIORITY_SPEAKER;
const MODERATE_MEMBERS = Permissions.MODERATE_MEMBERS;
const value3 = Reflect.apply(combine, bigFlagUtilsModule, [DEFAULT, VIEW_AUDIT_LOG, MANAGE_NICKNAMES, KICK_MEMBERS,
BAN_MEMBERS, MANAGE_MESSAGES, MUTE_MEMBERS, DEAFEN_MEMBERS, MOVE_MEMBERS, PRIORITY_SPEAKER, MODERATE_MEMBERS]);
const value4 = bigFlagUtilsModule;
combine = value4.combine;
const MANAGE_CHANNELS = Permissions.MANAGE_CHANNELS;
const MANAGE_THREADS = Permissions.MANAGE_THREADS;
const MANAGE_ROLES = Permissions.MANAGE_ROLES;
const MANAGE_GUILD_EXPRESSIONS = Permissions.MANAGE_GUILD_EXPRESSIONS;
const MANAGE_GUILD = Permissions.MANAGE_GUILD;
const MANAGE_WEBHOOKS = Permissions.MANAGE_WEBHOOKS;
const SEND_TTS_MESSAGES = Permissions.SEND_TTS_MESSAGES;
const value5 = Reflect.apply(combine, value4, [value3, MANAGE_CHANNELS, MANAGE_THREADS, MANAGE_ROLES,
MANAGE_GUILD_EXPRESSIONS, MANAGE_GUILD, MANAGE_WEBHOOKS, SEND_TTS_MESSAGES]);
const value6 = bigFlagUtilsModule;
const add = value6.add;
const VIEW_GUILD_ANALYTICS = Permissions.VIEW_GUILD_ANALYTICS;
const value7 = Reflect.apply(add, value6, [value5, VIEW_GUILD_ANALYTICS]);
const object9 = {};
const COSMETIC2 = object8.COSMETIC;
const object10 = {key: 'template_cosmetic'};
object10.color = (require(696) /* metro dependency 696: shimsNative */).unsafe_getRawColor('BRAND_500');
const NONE = (importAll(3789) /* metro dependency 3789: PermissionUtils */).NONE;
object10.permissions = NONE;
object10.title = function() {
return require(dependencyMap[6]).intl.string(require(dependencyMap[6]).t.M8jQyg);
};
object10.description = function() {
return require(dependencyMap[6]).intl.string(require(dependencyMap[6]).t['7nF/S/']);
};
object10.contents = contents;
object10.contentPreface = function() {
return '';
};
object9[COSMETIC2] = object10;
const MEMBER = object8.MEMBER;
const object11 = {key: 'template_member'};
object11.color = (require(696) /* metro dependency 696: shimsNative */).unsafe_getRawColor('GREEN_360');
DEFAULT = (importAll(3789) /* metro dependency 3789: PermissionUtils */).DEFAULT;
object11.permissions = DEFAULT;
object11.communityPermissions = value;
object11.title = function() {
return require(dependencyMap[6]).intl.string(require(dependencyMap[6]).t['9BsHzh']);
};
object11.description = function() {
return require(dependencyMap[6]).intl.string(require(dependencyMap[6]).t.ywKYtw);
};
object11.contents = contents_123173;
object11.contentPreface = function() {
return '';
};
object9[MEMBER] = object11;
const MODERATOR = object8.MODERATOR;
const object12 = {key: 'template_moderator'};
object12.color = (require(696) /* metro dependency 696: shimsNative */).unsafe_getRawColor('YELLOW_300');
object12.permissions = value3;
object12.title = function() {
return require(dependencyMap[6]).intl.string(require(dependencyMap[6]).t['m/GC8z']);
};
object12.description = function() {
return require(dependencyMap[6]).intl.string(require(dependencyMap[6]).t.ERrMJZ);
};
object12.contents = contents_123177;
object12.contentPreface = function() {
return require(dependencyMap[6]).intl.string(require(dependencyMap[6]).t.amGM7K);
};
object9[MODERATOR] = object12;
const MANAGER = object8.MANAGER;
const object13 = {key: 'template_manager'};
object13.color = (require(696) /* metro dependency 696: shimsNative */).unsafe_getRawColor('RED_400');
object13.permissions = value5;
object13.communityPermissions = value7;
object13.title = function() {
return require(dependencyMap[6]).intl.string(require(dependencyMap[6]).t.qKmu3w);
};
object13.description = function() {
return require(dependencyMap[6]).intl.string(require(dependencyMap[6]).t.WxWPYV);
};
object13.contents = contents_123181;
object13.contentPreface = function() {
return require(dependencyMap[6]).intl.string(require(dependencyMap[6]).t['7Dkb62']);
};
object9[MANAGER] = object13;
const object14 = {};
const SOLID = RoleColorsStyle.SOLID;
object14.id = SOLID;
object14.colors = {'primary_color': null, 'secondary_color': null, 'tertiary_color': null,
primary_color: DEFAULT_ROLE_COLOR};
const t = (require(1244) /* metro dependency 1244: indexNative */).t;
object14.labelString = t['8Qyahn'];
const items2 = [object14];
const GRADIENT = RoleColorsStyle.GRADIENT;
const XpWmJz = t.XpWmJz;
items2[1] = {id: GRADIENT, colors: DEFAULT_GRADIENT_ROLE_COLORS, labelString: XpWmJz};
const HOLOGRAPHIC = RoleColorsStyle.HOLOGRAPHIC;
const QTKppe = t.QTKppe;
items2[2] = {id: HOLOGRAPHIC, colors: HOLOGRAPHIC_ROLE_COLORS, labelString: QTKppe};
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/guild_settings/roles/GuildSettingsRoleConstants.tsx');
exports.CREATE_ROLE_DESKTOP_MODAL_WIDTH = 440;
exports.DEFAULT_HEADER_HEIGHT_PX = 371;
exports.MAX_BULK_ROLE_MEMBERS_ADD = 30;
exports.PermissionTemplateTypes = object8;
exports.DEFAULT_TEMPLATE_TYPE = COSMETIC;
exports.PermissionTemplates = object9;
exports.STYLE_CONFIGS = items2;
}
function contents() { // fn#123169, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16154:1060, offset: 0x02583bc3, size: 122 bytes, params: 1, frame: 15
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
const string = intl.string;
const t = (require(1244) /* metro dependency 1244: indexNative */).t;
return [Reflect.apply(string, intl, [t.uwLDAb]), intl.string(t.gqngN7)];
}
function contents_123173() { // fn#123173, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16154:1410, offset: 0x02583cbd, size: 172 bytes, params: 1, frame: 16
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
const string = intl.string;
const t = (require(1244) /* metro dependency 1244: indexNative */).t;
return [Reflect.apply(string, intl, [t['9Vhbnl']]), intl.string(t['0xn+w1']), intl.string(t.ieWVpB)];
}
function contents_123177() { // fn#123177, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16154:1774, offset: 0x02583de9, size: 222 bytes, params: 1, frame: 16
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
const string = intl.string;
const t = (require(1244) /* metro dependency 1244: indexNative */).t;
const YOSxcd = t.YOSxcd;
return [Reflect.apply(string, intl, [YOSxcd]), intl.string(t.q9H4Fm), intl.string(t['9nHnCj']),
intl.string(t.iqwXvc)];
}
function contents_123181() { // fn#123181, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:16154:2221, offset: 0x02583f87, size: 222 bytes, params: 1, frame: 16
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
const string = intl.string;
const t = (require(1244) /* metro dependency 1244: indexNative */).t;
const Hx1Vox = t.Hx1Vox;
return [Reflect.apply(string, intl, [Hx1Vox]), intl.string(t['aUZ/zD']), intl.string(t['8lQujv']),
intl.string(t.cUP4pl)];
}