182 lines
9.8 KiB
TypeScript
182 lines
9.8 KiB
TypeScript
/* Metro module 15946; source: modules/guild_settings/roles/GuildSettingsRoleConstants.tsx; dependencies: [15947, 661, 15949, 483, 3789, 696, 1244, 2] */
|
|
import * as FileImportTrackerModule from '../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
|
|
import * as BigFlagUtilsModule from '../../../external/discord_common/js/shared/utils/BigFlagUtils.tsx'; /* Metro dependency 483 */
|
|
import * as ConstantsModule from '../../../Constants.tsx'; /* Metro dependency 661 */
|
|
import * as IndexNativeModule from '../../../intl/index.native.tsx'; /* Metro dependency 1244 */
|
|
import * as GuildSettingsRolesStoreModule from './GuildSettingsRolesStore.tsx'; /* Metro dependency 15947 */
|
|
|
|
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
|
|
const env0_0 = require;
|
|
const Object = global.Object;
|
|
Object.defineProperty(exports, '__esModule', {value: true});
|
|
const RoleColorsStyle = (GuildSettingsRolesStoreModule).RoleColorsStyle;
|
|
let value = ConstantsModule;
|
|
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;
|
|
object = {COSMETIC: 0};
|
|
object[0] = 'COSMETIC';
|
|
object.MEMBER = 1;
|
|
object[1] = 'MEMBER';
|
|
object.MODERATOR = 2;
|
|
object[2] = 'MODERATOR';
|
|
object.MANAGER = 3;
|
|
object[3] = 'MANAGER';
|
|
const COSMETIC = object.COSMETIC;
|
|
const remove = (BigFlagUtilsModule).remove;
|
|
let DEFAULT = (importAll(3789) /* metro dependency 3789: PermissionUtils */).DEFAULT;
|
|
const MENTION_EVERYONE = Permissions.MENTION_EVERYONE;
|
|
value = Reflect.apply(remove, value, [DEFAULT, MENTION_EVERYONE]);
|
|
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]);
|
|
combine = BigFlagUtilsModule.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, BigFlagUtilsModule, [value3, MANAGE_CHANNELS, MANAGE_THREADS, MANAGE_ROLES,
|
|
MANAGE_GUILD_EXPRESSIONS, MANAGE_GUILD, MANAGE_WEBHOOKS, SEND_TTS_MESSAGES]);
|
|
const add = BigFlagUtilsModule.add;
|
|
const VIEW_GUILD_ANALYTICS = Permissions.VIEW_GUILD_ANALYTICS;
|
|
const value7 = Reflect.apply(add, BigFlagUtilsModule, [value5, VIEW_GUILD_ANALYTICS]);
|
|
const object2 = {};
|
|
const COSMETIC2 = object.COSMETIC;
|
|
const object3 = {key: 'template_cosmetic'};
|
|
object3.color = (require(696) /* metro dependency 696: shimsNative */).unsafe_getRawColor('BRAND_500');
|
|
const NONE = (importAll(3789) /* metro dependency 3789: PermissionUtils */).NONE;
|
|
object3.permissions = NONE;
|
|
object3.title = function() {
|
|
return require(dependencyMap[6]).intl.string(require(dependencyMap[6]).t.M8jQyg);
|
|
};
|
|
object3.description = function() {
|
|
return require(dependencyMap[6]).intl.string(require(dependencyMap[6]).t['7nF/S/']);
|
|
};
|
|
object3.contents = contents;
|
|
object3.contentPreface = function() {
|
|
return '';
|
|
};
|
|
object2[COSMETIC2] = object3;
|
|
const MEMBER = object.MEMBER;
|
|
const object4 = {key: 'template_member'};
|
|
object4.color = (require(696) /* metro dependency 696: shimsNative */).unsafe_getRawColor('GREEN_360');
|
|
DEFAULT = (importAll(3789) /* metro dependency 3789: PermissionUtils */).DEFAULT;
|
|
object4.permissions = DEFAULT;
|
|
object4.communityPermissions = value;
|
|
object4.title = function() {
|
|
return require(dependencyMap[6]).intl.string(require(dependencyMap[6]).t['9BsHzh']);
|
|
};
|
|
object4.description = function() {
|
|
return require(dependencyMap[6]).intl.string(require(dependencyMap[6]).t.ywKYtw);
|
|
};
|
|
object4.contents = contents_123173;
|
|
object4.contentPreface = function() {
|
|
return '';
|
|
};
|
|
object2[MEMBER] = object4;
|
|
const MODERATOR = object.MODERATOR;
|
|
const object5 = {key: 'template_moderator'};
|
|
object5.color = (require(696) /* metro dependency 696: shimsNative */).unsafe_getRawColor('YELLOW_300');
|
|
object5.permissions = value3;
|
|
object5.title = function() {
|
|
return require(dependencyMap[6]).intl.string(require(dependencyMap[6]).t['m/GC8z']);
|
|
};
|
|
object5.description = function() {
|
|
return require(dependencyMap[6]).intl.string(require(dependencyMap[6]).t.ERrMJZ);
|
|
};
|
|
object5.contents = contents_123177;
|
|
object5.contentPreface = function() {
|
|
return require(dependencyMap[6]).intl.string(require(dependencyMap[6]).t.amGM7K);
|
|
};
|
|
object2[MODERATOR] = object5;
|
|
const MANAGER = object.MANAGER;
|
|
const object6 = {key: 'template_manager'};
|
|
object6.color = (require(696) /* metro dependency 696: shimsNative */).unsafe_getRawColor('RED_400');
|
|
object6.permissions = value5;
|
|
object6.communityPermissions = value7;
|
|
object6.title = function() {
|
|
return require(dependencyMap[6]).intl.string(require(dependencyMap[6]).t.qKmu3w);
|
|
};
|
|
object6.description = function() {
|
|
return require(dependencyMap[6]).intl.string(require(dependencyMap[6]).t.WxWPYV);
|
|
};
|
|
object6.contents = contents_123181;
|
|
object6.contentPreface = function() {
|
|
return require(dependencyMap[6]).intl.string(require(dependencyMap[6]).t['7Dkb62']);
|
|
};
|
|
object2[MANAGER] = object6;
|
|
const object7 = {};
|
|
const SOLID = RoleColorsStyle.SOLID;
|
|
object7.id = SOLID;
|
|
object7.colors = {'primary_color': null, 'secondary_color': null, 'tertiary_color': null,
|
|
primary_color: DEFAULT_ROLE_COLOR};
|
|
const t = (IndexNativeModule).t;
|
|
object7.labelString = t['8Qyahn'];
|
|
const items2 = [object7];
|
|
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};
|
|
(FileImportTrackerModule).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 = object;
|
|
exports.DEFAULT_TEMPLATE_TYPE = COSMETIC;
|
|
exports.PermissionTemplates = object2;
|
|
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 = (IndexNativeModule).intl;
|
|
const string = intl.string;
|
|
const t = (IndexNativeModule).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 = (IndexNativeModule).intl;
|
|
const string = intl.string;
|
|
const t = (IndexNativeModule).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 = (IndexNativeModule).intl;
|
|
const string = intl.string;
|
|
const t = (IndexNativeModule).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 = (IndexNativeModule).intl;
|
|
const string = intl.string;
|
|
const t = (IndexNativeModule).t;
|
|
const Hx1Vox = t.Hx1Vox;
|
|
return [Reflect.apply(string, intl, [Hx1Vox]), intl.string(t['aUZ/zD']), intl.string(t['8lQujv']),
|
|
intl.string(t.cUP4pl)];
|
|
}
|
|
|
|
}
|
|
|
|
global.__d(_fun123166, 15946, [15947, 661, 15949, 483, 3789, 696, 1244,
|
|
2]) /* metro module 15946, dependencies: [15947, 661, 15949, 483, 3789, 696, 1244, 2] */;
|