Initial commit

This commit is contained in:
janisslsm committed 2026-07-27 16:20:00 +03:00
commit af3b49f756
16065 files changed
+2938410

No files matched your search

File diff suppressed because it is too large. Load diff
@@ -0,0 +1,376 @@
/* Metro module 9633; source: modules/directory_channels/GuildDirectoryConstants.tsx; dependencies: [661, 1244, 3789, 483, 2] */
function _fun75568(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#75568, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9819:6, offset: 0x01db0b89, size: 469 bytes, params: 8, frame: 23
var object2;
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const constantsModule = require(661) /* metro dependency 661: Constants */;
const env0_3 = constantsModule.ChannelTypes;
const env0_4 = constantsModule.Permissions;
object2 = {GUILD: 0};
object2[0] = 'GUILD';
object2.GUILD_SCHEDULED_EVENT = 1;
object2[1] = 'GUILD_SCHEDULED_EVENT';
const object3 = {ALL: -1};
object3[-1] = 'ALL';
object3.UNCATEGORIZED = 0;
object3[0] = 'UNCATEGORIZED';
object3.SCHOOL_CLUB = 1;
object3[1] = 'SCHOOL_CLUB';
object3.CLASS = 2;
object3[2] = 'CLASS';
object3.STUDY_SOCIAL = 3;
object3[3] = 'STUDY_SOCIAL';
object3.MISC = 5;
object3[5] = 'MISC';
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/directory_channels/GuildDirectoryConstants.tsx');
exports.DirectoryEntryTypes = object2;
exports.CreateOrAddGuildSlideTypes = {GUILD_TEMPLATES: 'guild-templates',
CUSTOMIZE_NEW_GUILD: 'customize-new-guild', CHOOSE_GUILD: 'choose-guild',
CUSTOMIZE_EXISTING_GUILD: 'customize-existing-guild', CONFIRMATION: 'confirmation'};
exports.HubGuildTemplateId = {CREATE: 'CREATE', HUB_SCHOOL_CLUB: 'HUB_SCHOOL_CLUB', HUB_STUDY: 'HUB_STUDY',
HUB_CLASS: 'HUB_CLASS', HUB_SOCIAL: 'HUB_SOCIAL', HUB_MAJOR: 'HUB_MAJOR', HUB_DORM: 'HUB_DORM'};
exports.DirectoryEntryCategories = object3;
exports.HQ_CHANNEL_ID = '883060064561299456';
exports.getHubCategories = getHubCategories;
exports.getHubGuildTemplatesMap = getHubGuildTemplatesMap;
}
function getHubCategories(a0) { // fn#75569, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9819:1111, offset: 0x01db0d5e, size: 690 bytes, params: 2, frame: 19
var r0;
var object2;
var binding;
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
var string;
const t = (require(1244) /* metro dependency 1244: indexNative */).t;
var items3;
var items2;
if (a0 === '883060064561299456') {
object2 = {id: 'club'};
binding = env0_6;
object2.value = binding.SCHOOL_CLUB;
object2.label = intl.string(t['Z+MPN/']);
items2 = [object2];
string = intl.string;
items2[1] = {id: 'class', value: binding.CLASS, label: Reflect.apply(string, intl, [t.dV9uBr])};
string = intl.string;
items2[2] = {id: 'study', value: binding.STUDY_SOCIAL, label: Reflect.apply(string, intl, [t.xoHQcn])};
string = intl.string;
items2[3] = {id: 'misc', value: binding.MISC, label: Reflect.apply(string, intl, [t.Ao41ri])};
r0 = items2;
} else {
binding = env0_6;
string = intl.string;
items3 = [{id: 'club', value: binding.SCHOOL_CLUB, label: Reflect.apply(string, intl, [t.oNHFUL]),
idealSize: 100}];
string = intl.string;
items3[1] = {id: 'class', value: binding.CLASS, label: Reflect.apply(string, intl, [t.V1i8nS])};
string = intl.string;
items3[2] = {id: 'study', value: binding.STUDY_SOCIAL, label: Reflect.apply(string, intl, [t.Z2ygQt]),
idealSize: 50};
object2 = {id: 'misc'};
object2.value = binding.MISC;
object2.label = intl.string(t['0Bg9La']);
items3[3] = object2;
r0 = items3;
}
return r0;
}
function getHubGuildTemplatesMap() { // fn#75570, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9819:1805, offset: 0x01db1010, size: 5803 bytes, params: 1, frame: 41
const object5 = {};
const binding = env0_5;
const CREATE = binding.CREATE;
const object6 = {};
const CREATE2 = binding.CREATE;
object6.id = CREATE2;
object6.code = '2TffvPucqHkN';
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
let string = intl.string;
const t = (require(1244) /* metro dependency 1244: indexNative */).t;
object6.label = Reflect.apply(string, intl, [t['H3+6BK']]);
object6.channels = [];
object6.system_channel_id = null;
object5[CREATE] = object6;
const HUB_SCHOOL_CLUB = binding.HUB_SCHOOL_CLUB;
const object7 = {};
const HUB_SCHOOL_CLUB2 = binding.HUB_SCHOOL_CLUB;
object7.id = HUB_SCHOOL_CLUB2;
object7.code = 'UMUbvRpRZhS6';
object7.label = intl.string(t.mmFA51);
const object8 = {'id': '00', 'parent_id': null};
object8.name = intl.string(t['VCAA/X']);
let GUILD_CATEGORY = ChannelTypes.GUILD_CATEGORY;
object8.type = GUILD_CATEGORY;
const items8 = [object8];
string = intl.string;
const GHQoEd = t.GHQoEd;
let GUILD_TEXT = ChannelTypes.GUILD_TEXT;
items8[1] = {'id': '01', 'parent_id': '00', name: Reflect.apply(string, intl, [GHQoEd]), type: GUILD_TEXT};
GUILD_TEXT = ChannelTypes.GUILD_TEXT;
items8[2] = {'id': '02', 'parent_id': '00', name: intl.string(t.nSsoSF), type: GUILD_TEXT};
GUILD_TEXT = ChannelTypes.GUILD_TEXT;
items8[3] = {'id': '03', 'parent_id': '00', name: intl.string(t.yZCzMa), type: GUILD_TEXT};
GUILD_CATEGORY = ChannelTypes.GUILD_CATEGORY;
items8[4] = {'id': '10', 'parent_id': null, name: intl.string(t.mobYpC), type: GUILD_CATEGORY};
GUILD_TEXT = ChannelTypes.GUILD_TEXT;
items8[5] = {'id': '11', 'parent_id': '10', name: intl.string(t.pIOigB), type: GUILD_TEXT};
GUILD_TEXT = ChannelTypes.GUILD_TEXT;
items8[6] = {'id': '12', 'parent_id': '10', name: intl.string(t.ao2wxq), type: GUILD_TEXT};
string = intl.string;
let AIszv8 = t.AIszv8;
GUILD_TEXT = ChannelTypes.GUILD_TEXT;
items8[7] = {'id': '13', 'parent_id': '10', name: Reflect.apply(string, intl, [AIszv8]), type: GUILD_TEXT};
GUILD_CATEGORY = ChannelTypes.GUILD_CATEGORY;
items8[8] = {'id': '20', 'parent_id': null, name: intl.string(t.vcKDMv), type: GUILD_CATEGORY};
string = intl.string;
let XS6gcJ = t.XS6gcJ;
let GUILD_VOICE = ChannelTypes.GUILD_VOICE;
items8[9] = {'id': '21', 'parent_id': '20', name: Reflect.apply(string, intl, [XS6gcJ]), type: GUILD_VOICE};
GUILD_VOICE = ChannelTypes.GUILD_VOICE;
items8[10] = {'id': '22', 'parent_id': '20', name: intl.string(t.hi1Ykg), type: GUILD_VOICE};
GUILD_VOICE = ChannelTypes.GUILD_VOICE;
items8[11] = {'id': '22', 'parent_id': '20', name: intl.string(t.vw8oaS), type: GUILD_VOICE};
object7.channels = items8;
let DEFAULT = (importAll(3789) /* metro dependency 3789: PermissionUtils */).DEFAULT;
const items2 = [{'id': '00', 'name': '@everyone', permissions: DEFAULT}];
const bigFlagUtilsModule = importAll(483) /* metro dependency 483: BigFlagUtils */;
const combine = bigFlagUtilsModule.combine;
DEFAULT = (importAll(3789) /* metro dependency 3789: PermissionUtils */).DEFAULT;
const MANAGE_ROLES = Permissions.MANAGE_ROLES;
const MANAGE_CHANNELS = Permissions.MANAGE_CHANNELS;
const KICK_MEMBERS = Permissions.KICK_MEMBERS;
const BAN_MEMBERS = Permissions.BAN_MEMBERS;
const MANAGE_NICKNAMES = Permissions.MANAGE_NICKNAMES;
const MANAGE_GUILD_EXPRESSIONS = Permissions.MANAGE_GUILD_EXPRESSIONS;
const MANAGE_MESSAGES = Permissions.MANAGE_MESSAGES;
const SEND_TTS_MESSAGES = Permissions.SEND_TTS_MESSAGES;
items2[1] = {'id': '01', 'name': 'officers (example)', 'mentionable': true, 'hoist': true, 'permissions': null,
'color': 3066993, permissions: Reflect.apply(combine, bigFlagUtilsModule, [DEFAULT, MANAGE_ROLES,
MANAGE_CHANNELS, KICK_MEMBERS, BAN_MEMBERS, MANAGE_NICKNAMES, MANAGE_GUILD_EXPRESSIONS, MANAGE_MESSAGES,
SEND_TTS_MESSAGES])};
object7.roles = items2;
object7.system_channel_id = '12';
object5[HUB_SCHOOL_CLUB] = object7;
const HUB_STUDY = binding.HUB_STUDY;
const object9 = {};
const HUB_STUDY2 = binding.HUB_STUDY;
object9.id = HUB_STUDY2;
object9.code = '2JBhzzca2vfT';
object9.label = intl.string(t.fYwSi2);
const object10 = {'id': '00', 'parent_id': null};
object10.name = intl.string(t['HY+vdA']);
GUILD_CATEGORY = ChannelTypes.GUILD_CATEGORY;
object10.type = GUILD_CATEGORY;
const items3 = [object10];
const object11 = {'id': '01', 'parent_id': '00'};
object11.name = intl.string(t['3eM+Lh']);
GUILD_TEXT = ChannelTypes.GUILD_TEXT;
object11.type = GUILD_TEXT;
items3[1] = object11;
string = intl.string;
let Qi0D7e = t.Qi0D7e;
GUILD_TEXT = ChannelTypes.GUILD_TEXT;
items3[2] = {'id': '02', 'parent_id': '00', name: Reflect.apply(string, intl, [Qi0D7e]), type: GUILD_TEXT};
GUILD_CATEGORY = ChannelTypes.GUILD_CATEGORY;
items3[3] = {'id': '10', 'parent_id': null, name: intl.string(t.yZIUVx), type: GUILD_CATEGORY};
GUILD_TEXT = ChannelTypes.GUILD_TEXT;
items3[4] = {'id': '11', 'parent_id': '10', name: intl.string(t.pIOigB), type: GUILD_TEXT};
GUILD_TEXT = ChannelTypes.GUILD_TEXT;
items3[5] = {'id': '12', 'parent_id': '10', name: intl.string(t.ao2wxq), type: GUILD_TEXT};
string = intl.string;
AIszv8 = t.AIszv8;
GUILD_TEXT = ChannelTypes.GUILD_TEXT;
items3[6] = {'id': '12', 'parent_id': '10', name: Reflect.apply(string, intl, [AIszv8]), type: GUILD_TEXT};
GUILD_CATEGORY = ChannelTypes.GUILD_CATEGORY;
items3[7] = {'id': '20', 'parent_id': null, name: intl.string(t.vcKDMv), type: GUILD_CATEGORY};
string = intl.string;
XS6gcJ = t.XS6gcJ;
GUILD_VOICE = ChannelTypes.GUILD_VOICE;
items3[8] = {'id': '21', 'parent_id': '20', name: Reflect.apply(string, intl, [XS6gcJ]), type: GUILD_VOICE};
let formatToPlainString = intl.formatToPlainString;
let LuNsNf = t.LuNsNf;
GUILD_VOICE = ChannelTypes.GUILD_VOICE;
items3[9] = {'id': '22', 'parent_id': '20', name: Reflect.apply(formatToPlainString, intl, [LuNsNf, {number: 1}]),
type: GUILD_VOICE};
formatToPlainString = intl.formatToPlainString;
LuNsNf = t.LuNsNf;
GUILD_VOICE = ChannelTypes.GUILD_VOICE;
items3[10] = {'id': '23', 'parent_id': '20', name: Reflect.apply(formatToPlainString, intl, [LuNsNf, {number: 2}]),
type: GUILD_VOICE};
object9.channels = items3;
object9.system_channel_id = '12';
object5[HUB_STUDY] = object9;
const HUB_CLASS = binding.HUB_CLASS;
const object12 = {};
const HUB_CLASS2 = binding.HUB_CLASS;
object12.id = HUB_CLASS2;
object12.code = 'r86WWBwTGspb';
object12.label = intl.string(t.e5gFS3);
const object13 = {'id': '00', 'parent_id': null};
object13.name = intl.string(t['HY+vdA']);
GUILD_CATEGORY = ChannelTypes.GUILD_CATEGORY;
object13.type = GUILD_CATEGORY;
const items4 = [object13];
const object14 = {'id': '01', 'parent_id': '00'};
object14.name = intl.string(t['710tNh']);
GUILD_TEXT = ChannelTypes.GUILD_TEXT;
object14.type = GUILD_TEXT;
items4[1] = object14;
string = intl.string;
Qi0D7e = t.Qi0D7e;
GUILD_TEXT = ChannelTypes.GUILD_TEXT;
items4[2] = {'id': '02', 'parent_id': '00', name: Reflect.apply(string, intl, [Qi0D7e]), type: GUILD_TEXT};
GUILD_CATEGORY = ChannelTypes.GUILD_CATEGORY;
items4[3] = {'id': '10', 'parent_id': null, name: intl.string(t.yZIUVx), type: GUILD_CATEGORY};
GUILD_TEXT = ChannelTypes.GUILD_TEXT;
items4[4] = {'id': '11', 'parent_id': '10', name: intl.string(t.pIOigB), type: GUILD_TEXT};
GUILD_TEXT = ChannelTypes.GUILD_TEXT;
items4[5] = {'id': '12', 'parent_id': '10', name: intl.string(t.ao2wxq), type: GUILD_TEXT};
string = intl.string;
AIszv8 = t.AIszv8;
GUILD_TEXT = ChannelTypes.GUILD_TEXT;
items4[6] = {'id': '13', 'parent_id': '10', name: Reflect.apply(string, intl, [AIszv8]), type: GUILD_TEXT};
GUILD_CATEGORY = ChannelTypes.GUILD_CATEGORY;
items4[7] = {'id': '20', 'parent_id': null, name: intl.string(t.vcKDMv), type: GUILD_CATEGORY};
string = intl.string;
XS6gcJ = t.XS6gcJ;
GUILD_VOICE = ChannelTypes.GUILD_VOICE;
items4[8] = {'id': '21', 'parent_id': '20', name: Reflect.apply(string, intl, [XS6gcJ]), type: GUILD_VOICE};
formatToPlainString = intl.formatToPlainString;
LuNsNf = t.LuNsNf;
GUILD_VOICE = ChannelTypes.GUILD_VOICE;
items4[9] = {'id': '22', 'parent_id': '20', name: Reflect.apply(formatToPlainString, intl, [LuNsNf, {number: 1}]),
type: GUILD_VOICE};
formatToPlainString = intl.formatToPlainString;
LuNsNf = t.LuNsNf;
GUILD_VOICE = ChannelTypes.GUILD_VOICE;
items4[10] = {'id': '23', 'parent_id': '20', name: Reflect.apply(formatToPlainString, intl, [LuNsNf, {number: 2}]),
type: GUILD_VOICE};
object12.channels = items4;
object12.system_channel_id = '12';
object5[HUB_CLASS] = object12;
const HUB_SOCIAL = binding.HUB_SOCIAL;
const object15 = {};
const HUB_SOCIAL2 = binding.HUB_SOCIAL;
object15.id = HUB_SOCIAL2;
object15.code = 'AvvtXE3mfbCR';
object15.label = intl.string(t.oOj7It);
GUILD_CATEGORY = ChannelTypes.GUILD_CATEGORY;
const items5 = [{'id': '00', 'parent_id': null, name: intl.string(t.yZIUVx), type: GUILD_CATEGORY}];
GUILD_TEXT = ChannelTypes.GUILD_TEXT;
items5[1] = {'id': '01', 'parent_id': '00', name: intl.string(t.pIOigB), type: GUILD_TEXT};
GUILD_TEXT = ChannelTypes.GUILD_TEXT;
items5[2] = {'id': '02', 'parent_id': '00', name: intl.string(t.ao2wxq), type: GUILD_TEXT};
string = intl.string;
AIszv8 = t.AIszv8;
GUILD_TEXT = ChannelTypes.GUILD_TEXT;
items5[3] = {'id': '03', 'parent_id': '00', name: Reflect.apply(string, intl, [AIszv8]), type: GUILD_TEXT};
GUILD_TEXT = ChannelTypes.GUILD_TEXT;
items5[4] = {'id': '04', 'parent_id': '00', name: intl.string(t.d4F8gP), type: GUILD_TEXT};
GUILD_CATEGORY = ChannelTypes.GUILD_CATEGORY;
items5[5] = {'id': '10', 'parent_id': null, name: intl.string(t.vcKDMv), type: GUILD_CATEGORY};
string = intl.string;
let CLWKNs = t.CLWKNs;
GUILD_VOICE = ChannelTypes.GUILD_VOICE;
items5[6] = {'id': '11', 'parent_id': '10', name: Reflect.apply(string, intl, [CLWKNs]), type: GUILD_VOICE};
GUILD_VOICE = ChannelTypes.GUILD_VOICE;
items5[7] = {'id': '12', 'parent_id': '10', name: intl.string(t.g3qPRn), type: GUILD_VOICE};
const object16 = {'id': '13', 'parent_id': '10'};
object16.name = intl.string(t['yQZpe/']);
GUILD_VOICE = ChannelTypes.GUILD_VOICE;
object16.type = GUILD_VOICE;
items5[8] = object16;
object15.channels = items5;
object15.system_channel_id = '02';
object5[HUB_SOCIAL] = object15;
const HUB_MAJOR = binding.HUB_MAJOR;
const object17 = {};
const HUB_MAJOR2 = binding.HUB_MAJOR;
object17.id = HUB_MAJOR2;
object17.code = 'FhmfDR6Arvsc';
object17.label = intl.string(t['9kly4U']);
const object21 = {'id': '00', 'parent_id': null};
object21.name = intl.string(t['HY+vdA']);
GUILD_CATEGORY = ChannelTypes.GUILD_CATEGORY;
object21.type = GUILD_CATEGORY;
const items6 = [object21];
GUILD_TEXT = ChannelTypes.GUILD_TEXT;
items6[1] = {'id': '01', 'parent_id': '00', name: intl.string(t.yZCzMa), type: GUILD_TEXT};
string = intl.string;
Qi0D7e = t.Qi0D7e;
GUILD_TEXT = ChannelTypes.GUILD_TEXT;
items6[2] = {'id': '02', 'parent_id': '00', name: Reflect.apply(string, intl, [Qi0D7e]), type: GUILD_TEXT};
GUILD_CATEGORY = ChannelTypes.GUILD_CATEGORY;
items6[3] = {'id': '10', 'parent_id': null, name: intl.string(t.yZIUVx), type: GUILD_CATEGORY};
GUILD_TEXT = ChannelTypes.GUILD_TEXT;
items6[4] = {'id': '11', 'parent_id': '10', name: intl.string(t.pIOigB), type: GUILD_TEXT};
GUILD_TEXT = ChannelTypes.GUILD_TEXT;
items6[5] = {'id': '12', 'parent_id': '10', name: intl.string(t.ao2wxq), type: GUILD_TEXT};
string = intl.string;
AIszv8 = t.AIszv8;
GUILD_TEXT = ChannelTypes.GUILD_TEXT;
items6[6] = {'id': '13', 'parent_id': '10', name: Reflect.apply(string, intl, [AIszv8]), type: GUILD_TEXT};
GUILD_CATEGORY = ChannelTypes.GUILD_CATEGORY;
items6[7] = {'id': '20', 'parent_id': null, name: intl.string(t.vcKDMv), type: GUILD_CATEGORY};
string = intl.string;
XS6gcJ = t.XS6gcJ;
GUILD_VOICE = ChannelTypes.GUILD_VOICE;
items6[8] = {'id': '21', 'parent_id': '20', name: Reflect.apply(string, intl, [XS6gcJ]), type: GUILD_VOICE};
formatToPlainString = intl.formatToPlainString;
LuNsNf = t.LuNsNf;
GUILD_VOICE = ChannelTypes.GUILD_VOICE;
items6[9] = {'id': '22', 'parent_id': '20', name: Reflect.apply(formatToPlainString, intl, [LuNsNf, {number: 1}]),
type: GUILD_VOICE};
formatToPlainString = intl.formatToPlainString;
LuNsNf = t.LuNsNf;
GUILD_VOICE = ChannelTypes.GUILD_VOICE;
items6[10] = {'id': '23', 'parent_id': '20', name: Reflect.apply(formatToPlainString, intl, [LuNsNf, {number: 2}]),
type: GUILD_VOICE};
object17.channels = items6;
object17.system_channel_id = '12';
object5[HUB_MAJOR] = object17;
const HUB_DORM = binding.HUB_DORM;
const object22 = {};
const HUB_DORM2 = binding.HUB_DORM;
object22.id = HUB_DORM2;
object22.code = 'fkq8xHfrGE58';
object22.label = intl.string(t['ppGw/P']);
const object23 = {'id': '00', 'parent_id': null};
object23.name = intl.string(t['HY+vdA']);
GUILD_CATEGORY = ChannelTypes.GUILD_CATEGORY;
object23.type = GUILD_CATEGORY;
const items7 = [object23];
const object24 = {'id': '01', 'parent_id': '00'};
object24.name = intl.string(t['b2+FCc']);
GUILD_TEXT = ChannelTypes.GUILD_TEXT;
object24.type = GUILD_TEXT;
items7[1] = object24;
GUILD_CATEGORY = ChannelTypes.GUILD_CATEGORY;
items7[2] = {'id': '10', 'parent_id': null, name: intl.string(t.yZIUVx), type: GUILD_CATEGORY};
GUILD_TEXT = ChannelTypes.GUILD_TEXT;
items7[3] = {'id': '11', 'parent_id': '10', name: intl.string(t.pIOigB), type: GUILD_TEXT};
GUILD_TEXT = ChannelTypes.GUILD_TEXT;
items7[4] = {'id': '12', 'parent_id': '10', name: intl.string(t.ao2wxq), type: GUILD_TEXT};
string = intl.string;
AIszv8 = t.AIszv8;
GUILD_TEXT = ChannelTypes.GUILD_TEXT;
items7[5] = {'id': '13', 'parent_id': '10', name: Reflect.apply(string, intl, [AIszv8]), type: GUILD_TEXT};
GUILD_CATEGORY = ChannelTypes.GUILD_CATEGORY;
items7[6] = {'id': '20', 'parent_id': null, name: intl.string(t.vcKDMv), type: GUILD_CATEGORY};
string = intl.string;
XS6gcJ = t.XS6gcJ;
GUILD_VOICE = ChannelTypes.GUILD_VOICE;
items7[7] = {'id': '21', 'parent_id': '20', name: Reflect.apply(string, intl, [XS6gcJ]), type: GUILD_VOICE};
GUILD_VOICE = ChannelTypes.GUILD_VOICE;
items7[8] = {'id': '22', 'parent_id': '20', name: intl.string(t.g3qPRn), type: GUILD_VOICE};
string = intl.string;
CLWKNs = t.CLWKNs;
GUILD_VOICE = ChannelTypes.GUILD_VOICE;
items7[9] = {'id': '23', 'parent_id': '20', name: Reflect.apply(string, intl, [CLWKNs]), type: GUILD_VOICE};
object22.channels = items7;
object22.system_channel_id = '12';
object5[HUB_DORM] = object22;
return object5;
}
@@ -0,0 +1,163 @@
/* Metro module 9631; source: modules/directory_channels/GuildDirectorySearchStore.tsx; dependencies: [6, 7, 15, 17, 18, 9632, 566, 694, 2] */
function _fun75542(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#75542, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9817:6, offset: 0x01db0358, size: 363 bytes, params: 8, frame: 19
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const env0_2 = importDefault(6) /* metro dependency 6 */;
const env0_3 = importDefault(7) /* metro dependency 7 */;
const env0_4 = importDefault(15) /* metro dependency 15 */;
const env0_5 = importDefault(17) /* metro dependency 17 */;
const env0_6 = importDefault(18) /* metro dependency 18 */;
const env0_7 = [];
const env0_8 = {};
const env0_9 = {};
const Store = (importDefault(566) /* metro dependency 566: flux */).Store;
let value = _fun75546(Store);
value.displayName = 'GuildDirectorySearchStore';
value = new value(importDefault(694) /* metro dependency 694: Dispatcher */,
{GUILD_DIRECTORY_SEARCH_START: GUILD_DIRECTORY_SEARCH_START,
GUILD_DIRECTORY_SEARCH_SUCCESS: GUILD_DIRECTORY_SEARCH_SUCCESS,
GUILD_DIRECTORY_SEARCH_FAILURE: GUILD_DIRECTORY_SEARCH_FAILURE,
GUILD_DIRECTORY_SEARCH_CLEAR: GUILD_DIRECTORY_SEARCH_CLEAR,
GUILD_DIRECTORY_CACHED_SEARCH: GUILD_DIRECTORY_CACHED_SEARCH,
GUILD_DIRECTORY_ENTRY_DELETE: GUILD_DIRECTORY_ENTRY_DELETE});
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/directory_channels/GuildDirectorySearchStore.tsx');
exports.default = value;
}
function _isNativeReflectConstruct_75543() { // fn#75543, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9817:148, offset: 0x01db04c3, size: 98 bytes, params: 1, frame: 18
var Boolean;
var prototype;
var valueOf;
var call;
var Reflect;
var construct;
var closure;
var value;
var error;
try {
Boolean = global.Boolean;
prototype = Boolean.prototype;
valueOf = prototype.valueOf;
call = valueOf.call;
Reflect = global.Reflect;
construct = Reflect.construct;
Boolean = global.Boolean;
closure = function() {
};
value = Reflect.apply(construct, Reflect, [Boolean, [], closure]);
value = Reflect.apply(call, valueOf, [value]);
var result = !value;
} catch (error) {
}
return (_isNativeReflectConstruct_75543_isNativeReflectConstruct = function() {
return !!result;
})();
}
function _fun75546(a0) { // fn#75546, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9817:366, offset: 0x01db0525, size: 122 bytes, params: 2, frame: 16
const closure = GuildDirectorySearchStore;
env0_6(closure, a0);
return env0_3(closure, [{key: 'getSearchState', value: value_75548}, {key: 'getSearchResults', value: value_75549},
{key: 'shouldFetch', value: value_75550}]);
}
function GUILD_DIRECTORY_SEARCH_START({channelId, query}) { // fn#75551, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9817:1173, offset: 0x01db0653, size: 43 bytes, params: 2, frame: 5
env0_8[channelId] = {fetching: true, mostRecentQuery: query};
}
function GUILD_DIRECTORY_SEARCH_SUCCESS({channelId, query, results}) { // fn#75552, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9817:1292, offset: 0x01db067e, size: 172 bytes, params: 2, frame: 18
let binding = env0_8;
let object = {};
copyDataProperties(object, binding[channelId], undefined);
object['fetching'] = false;
binding[channelId] = object;
object = [];
results.forEach(_fun75553);
binding = env0_9;
const object4 = {};
copyDataProperties(object4, binding[channelId], object);
const object5 = {};
object5.results = (require(9632) /* metro dependency 9632: GuildDirectoryUtils */).orderByTotalMemberCount(object);
const Date = global.Date;
object5.lastSearchedAt = Date.now();
object4[query] = object5;
binding[channelId] = object4;
}
function GUILD_DIRECTORY_SEARCH_FAILURE({channelId}) { // fn#75554, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9817:1587, offset: 0x01db0764, size: 47 bytes, params: 2, frame: 14
const binding = env0_8;
const object2 = {};
copyDataProperties(object2, binding[channelId], undefined);
object2['fetching'] = false;
binding[channelId] = object2;
}
function GUILD_DIRECTORY_SEARCH_CLEAR({channelId}) { // fn#75555, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9817:1688, offset: 0x01db0793, size: 37 bytes, params: 2, frame: 3
env0_8[channelId] = {'fetching': false, 'mostRecentQuery': ''};
}
function GUILD_DIRECTORY_CACHED_SEARCH({channelId, query}) { // fn#75556, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9817:1799, offset: 0x01db07b8, size: 43 bytes, params: 2, frame: 5
env0_8[channelId] = {fetching: false, mostRecentQuery: query};
}
function GUILD_DIRECTORY_ENTRY_DELETE({channelId, guildId}) { // fn#75557, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9817:1916, offset: 0x01db07e3, size: 155 bytes, params: 2, frame: 17
var value3;
var binding;
var object3;
var object4;
let property = env0_8[channelId];
let mostRecentQuery = property?.mostRecentQuery;
if (mostRecentQuery != null) {
property = env0_9[channelId][mostRecentQuery];
if (property != null) {
value3 = property.results.filter(function({guildId}) {
return guildId !== guildId;
});
binding = env0_9;
object3 = {};
copyDataProperties(object3, binding[channelId], value3);
mostRecentQuery = env0_8[channelId].mostRecentQuery;
object4 = {};
copyDataProperties(object4, property, value3);
object4['results'] = value3;
object3[mostRecentQuery] = object4;
binding[channelId] = object3;
}
}
}
function value_75548(a0) { // fn#75548, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9817:725, offset: 0x01db059f, size: 36 bytes, params: 2, frame: 2
return env1_8[a0] ?? ({'mostRecentQuery': '', 'fetching': false});
}
function value_75549(a0, a1) { // fn#75549, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9817:832, offset: 0x01db05c3, size: 57 bytes, params: 3, frame: 6
const property = env1_9[a0];
return (property == null || property[a1] == null ? undefined : property[a1].results) ?? env1_7;
}
function value_75550(a0, a1) { // fn#75550, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9817:950, offset: 0x01db05fc, size: 87 bytes, params: 3, frame: 12
var r0;
var Date;
let value = environment.__proto__;
const property = env1_9[a0];
const lastSearchedAt = property == null || property[a1] == null ? undefined : property[a1].lastSearchedAt;
value = lastSearchedAt == null;
if (value) {
r0 = value;
} else {
Date = global.Date;
value = Date.now() - lastSearchedAt;
value = value > 120000;
r0 = value;
}
return r0;
}
function _fun75553(a0) { // fn#75553, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9817:1401, offset: 0x01db072a, size: 58 bytes, params: 2, frame: 12
let value = environment.__proto__;
value = require(9632) /* metro dependency 9632: GuildDirectoryUtils */;
value = value.guildDirectoryEntryFromServer(a0);
env0_0.push(value);
}
@@ -0,0 +1,313 @@
/* Metro module 9640; source: modules/directory_channels/GuildDirectoryStore.tsx; dependencies: [6, 7, 15, 17, 18, 9633, 9632, 566, 694, 2] */
function _fun75613(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#75613, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9826:6, offset: 0x01db3b30, size: 466 bytes, params: 8, frame: 20
const env0_0 = require;
let Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const env0_2 = importDefault(6) /* metro dependency 6 */;
const env0_3 = importDefault(7) /* metro dependency 7 */;
const env0_4 = importDefault(15) /* metro dependency 15 */;
const env0_5 = importDefault(17) /* metro dependency 17 */;
const env0_6 = importDefault(18) /* metro dependency 18 */;
const env0_7 = (require(9633) /* metro dependency 9633: GuildDirectoryConstants */).DirectoryEntryCategories;
Object = global.Object;
const env0_8 = Object.freeze({});
const env0_10 = {};
const env0_11 = {};
const env0_12 = {};
const env0_13 = {};
const env0_14 = {};
const Store = (importDefault(566) /* metro dependency 566: flux */).Store;
let value = _fun75617(Store);
value.displayName = 'GuildDirectoryStore';
value = new value(importDefault(694) /* metro dependency 694: Dispatcher */,
{GUILD_DIRECTORY_FETCH_START: function() {
env0_9 = true;
}, GUILD_DIRECTORY_FETCH_SUCCESS: GUILD_DIRECTORY_FETCH_SUCCESS, GUILD_DIRECTORY_FETCH_FAILURE: function() {
env0_9 = false;
}, GUILD_DIRECTORY_ENTRY_CREATE: GUILD_DIRECTORY_ENTRY_CREATE,
GUILD_DIRECTORY_ENTRY_DELETE: GUILD_DIRECTORY_ENTRY_DELETE_75631,
GUILD_DIRECTORY_ENTRY_UPDATE: GUILD_DIRECTORY_ENTRY_UPDATE,
GUILD_DIRECTORY_CATEGORY_SELECT: GUILD_DIRECTORY_CATEGORY_SELECT,
GUILD_DIRECTORY_COUNTS_FETCH_SUCCESS: GUILD_DIRECTORY_COUNTS_FETCH_SUCCESS,
GUILD_DIRECTORY_ADMIN_ENTRIES_FETCH_SUCCESS: GUILD_DIRECTORY_ADMIN_ENTRIES_FETCH_SUCCESS});
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/directory_channels/GuildDirectoryStore.tsx');
exports.default = value;
}
function _isNativeReflectConstruct_75614() { // fn#75614, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9826:183, offset: 0x01db3d02, size: 98 bytes, params: 1, frame: 18
var Boolean;
var prototype;
var valueOf;
var call;
var Reflect;
var construct;
var closure;
var value;
var error;
try {
Boolean = global.Boolean;
prototype = Boolean.prototype;
valueOf = prototype.valueOf;
call = valueOf.call;
Reflect = global.Reflect;
construct = Reflect.construct;
Boolean = global.Boolean;
closure = function() {
};
value = Reflect.apply(construct, Reflect, [Boolean, [], closure]);
value = Reflect.apply(call, valueOf, [value]);
var result = !value;
} catch (error) {
}
return (_isNativeReflectConstruct_75614_isNativeReflectConstruct = function() {
return !!result;
})();
}
function _fun75617(a0) { // fn#75617, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9826:436, offset: 0x01db3d64, size: 230 bytes, params: 2, frame: 16
const closure = GuildDirectoryStore;
env0_6(closure, a0);
return env0_3(closure, [{key: 'isFetching', value: value_75619}, {key: 'getCurrentCategoryId', value: value_75620},
{key: 'getDirectoryEntries', value: value_75621}, {key: 'getDirectoryEntry', value: value_75622},
{key: 'getDirectoryAllEntriesCount', value: value_75623}, {key: 'getDirectoryCategoryCounts',
value: value_75624}, {key: 'getAdminGuildEntryIds', value: value_75625}]);
}
function GUILD_DIRECTORY_FETCH_SUCCESS({channelId, entries}) { // fn#75627, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9826:1478, offset: 0x01db3ef6, size: 74 bytes, params: 2, frame: 15
entries.forEach(_fun75628);
env0_10[channelId] = {};
env0_12[channelId] = {};
}
function GUILD_DIRECTORY_ENTRY_CREATE({channelId, entry}) { // fn#75630, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9826:1844, offset: 0x01db3fc0, size: 288 bytes, params: 2, frame: 21
var r2;
var r5;
var r6;
var property;
var guildId;
var binding;
var object3;
var object4;
var value4;
const value3 = (require(9632) /* metro dependency 9632: GuildDirectoryUtils */).guildDirectoryEntryFromServer(entry);
if (value3 != null) {
property = env0_10[channelId];
if (property == null) {
r2 = undefined;
} else {
property = property[value3.guildId];
r2 = property;
}
if (r2 == null) {
binding = env0_10;
object3 = {};
copyDataProperties(object3, binding[channelId], undefined);
guildId = value3.guildId;
object3[guildId] = value3;
binding[channelId] = object3;
r5 = value3.primaryCategoryId ?? DirectoryEntryCategories.UNCATEGORIZED;
binding = env0_12;
object3 = {};
copyDataProperties(object3, binding[channelId], undefined);
object4 = {};
property = binding[channelId];
value4 = property == null;
copyDataProperties(object4, value4 ? undefined : property[r5], value4);
guildId = value3.guildId;
object4[guildId] = value3;
object3[r5] = object4;
binding[channelId] = object3;
if (env0_13[channelId] != null) {
r6 = env0_13[channelId]?.[r5] ?? 0;
binding = env0_13;
object3 = {};
copyDataProperties(object3, binding[channelId], value4);
object3[r5] = r6 + 1;
binding[channelId] = object3;
}
}
}
}
function GUILD_DIRECTORY_ENTRY_DELETE_75631({channelId, guildId}) { // fn#75631, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9826:2272, offset: 0x01db40e0, size: 276 bytes, params: 2, frame: 21
var r5;
var primaryCategoryId;
var Object;
var assign;
var value3;
var binding;
var Set;
var value4;
var set;
var value6;
var object2;
var value7;
var value;
let property = env0_10[channelId];
if (property == null) {
r5 = undefined;
} else {
property = property[guildId];
r5 = property;
}
if (r5 != null) {
primaryCategoryId = r5.primaryCategoryId;
Object = global.Object;
assign = Object.assign;
property = env0_10[channelId];
value3 = Reflect.apply(assign, Object, [{}, property]);
delete value3[guildId];
property = env0_14[channelId];
if (property != null) {
property.delete(guildId);
}
binding = env0_14;
Set = global.Set;
property = binding[channelId];
value4 = Object.create(Set.prototype, {constructor: {value: Set}});
set = new Set(property);
binding[channelId] = set instanceof Object ? set : value4;
env0_10[channelId] = value3;
Object = global.Object;
assign = Object.assign;
binding = env0_12;
property = binding[channelId][primaryCategoryId];
value6 = Reflect.apply(assign, Object, [{}, property]);
delete value6[guildId];
object2 = {};
copyDataProperties(object2, binding[channelId], Set);
object2[primaryCategoryId] = value6;
binding[channelId] = object2;
if (env0_13[channelId] != null) {
binding = env0_13;
value = binding[channelId][primaryCategoryId] - 1;
object2 = {};
copyDataProperties(object2, binding[channelId], Set);
value7 = 0;
object2[primaryCategoryId] = value >= value7 ? value : value7;
binding[channelId] = object2;
}
}
}
function GUILD_DIRECTORY_ENTRY_UPDATE({channelId, entry}) { // fn#75632, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9826:2646, offset: 0x01db41f4, size: 494 bytes, params: 2, frame: 23
var r8;
var value10;
const value3 = (require(9632) /* metro dependency 9632: GuildDirectoryUtils */).guildDirectoryEntryFromServer(entry);
let property = env0_10[channelId];
const r2 = property?.[value3.guildId];
let binding = env0_10;
let object5 = {};
copyDataProperties(object5, binding[channelId], undefined);
let guildId = value3.guildId;
const object6 = {};
copyDataProperties(object6, r2, undefined);
copyDataProperties(object6, value3, undefined);
object5[guildId] = object6;
binding[channelId] = object5;
const r9 = r2?.primaryCategoryId ?? DirectoryEntryCategories.UNCATEGORIZED;
const r5 = value3.primaryCategoryId ?? DirectoryEntryCategories.UNCATEGORIZED;
const Object = global.Object;
const value4 = Object.assign({}, env0_12[channelId]?.[r9]);
if (r2 != null && r9 !== r5) {
delete value4[value3.guildId];
}
binding = env0_12;
object5 = {};
copyDataProperties(object5, binding[channelId], undefined);
object5[r9] = value4;
const object7 = {};
const value7 = binding[channelId] == null;
if (value7) {
r8 = undefined;
} else {
property = property[r5];
r8 = property;
}
copyDataProperties(object7, r8, value7);
guildId = value3.guildId;
const object8 = {};
copyDataProperties(object8, r2, value7);
copyDataProperties(object8, value3, value7);
object7[guildId] = object8;
object5[r5] = object7;
binding[channelId] = object5;
if (r5 !== r9 && env0_13[channelId] != null) {
binding = env0_13;
object5 = {};
copyDataProperties(object5, binding[channelId], value7);
property = binding[channelId];
r8 = property?.[r9];
value10 = 0;
r8 = r8 > value10 ? env0_13[channelId]?.[r9] - 1 : value10;
object5[r9] = r8;
property = env0_13[channelId];
object5[r5] = (property?.[r5] ?? value10) + 1;
binding[channelId] = object5;
}
}
function GUILD_DIRECTORY_CATEGORY_SELECT({channelId, categoryId}) { // fn#75633, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9826:3306, offset: 0x01db43e2, size: 29 bytes, params: 2, frame: 3
env0_11[channelId] = categoryId;
}
function GUILD_DIRECTORY_COUNTS_FETCH_SUCCESS({channelId, counts}) { // fn#75634, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9826:3409, offset: 0x01db43ff, size: 29 bytes, params: 2, frame: 3
env0_13[channelId] = counts;
}
function GUILD_DIRECTORY_ADMIN_ENTRIES_FETCH_SUCCESS({channelId, entries}) { // fn#75635, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9826:3520, offset: 0x01db441c, size: 80 bytes, params: 2, frame: 13
const Set = global.Set;
const set = new Set();
entries.forEach(_fun75636);
env0_14[channelId] = set;
}
function value_75620(a0) { // fn#75620, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9826:817, offset: 0x01db3e4a, size: 32 bytes, params: 2, frame: 3
return env1_11[a0] ?? DirectoryEntryCategories.ALL;
}
function value_75621(a0, a1) { // fn#75621, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9826:900, offset: 0x01db3e6a, size: 54 bytes, params: 3, frame: 5
var r0;
var value;
var property;
if (a1 != null) {
value = environment.__proto__;
property = env1_12[a0];
value = undefined;
r0 = property == null ? value : property[a1];
} else {
value = environment.__proto__;
r0 = env1_10[a0];
}
return r0;
}
function value_75623(a0) { // fn#75623, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9826:1097, offset: 0x01db3ea0, size: 47 bytes, params: 2, frame: 12
const Object = global.Object;
return Object.keys(env1_10[a0] ?? ({})).length;
}
function value_75624(a0) { // fn#75624, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9826:1204, offset: 0x01db3ecf, size: 26 bytes, params: 2, frame: 3
return env1_13[a0] ?? env1_8;
}
function _fun75628(a0) { // fn#75628, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9826:1561, offset: 0x01db3f40, size: 128 bytes, params: 2, frame: 15
let value = environment.__proto__;
value = require(9632) /* metro dependency 9632: GuildDirectoryUtils */;
value = value.guildDirectoryEntryFromServer(a0);
env0_0[value.guildId] = value;
if (env0_1[value.primaryCategoryId] != null) {
env0_1[value.primaryCategoryId][value.guildId] = value;
} else {
env0_1[value.primaryCategoryId] = {[value.guildId]: value};
}
}
function _fun75636(a0) { // fn#75636, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9826:3603, offset: 0x01db446c, size: 63 bytes, params: 2, frame: 12
let value = environment.__proto__;
value = require(9632) /* metro dependency 9632: GuildDirectoryUtils */;
value = value.guildDirectoryEntryFromServer(a0);
const binding = env0_0;
binding.add(value.guildId);
}
@@ -0,0 +1,71 @@
/* Metro module 9632; source: modules/directory_channels/GuildDirectoryUtils.tsx; dependencies: [9633, 44, 22, 2] */
function _fun75559(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#75559, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9818:6, offset: 0x01db0893, size: 191 bytes, params: 8, frame: 20
const closure = orderByTotalMemberCount;
const closure2 = orderByDateAdded;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const env0_2 = (require(9633) /* metro dependency 9633: GuildDirectoryConstants */).DirectoryEntryTypes;
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/directory_channels/GuildDirectoryUtils.tsx');
exports.guildDirectoryEntryFromServer = guildDirectoryEntryFromServer;
exports.MAX_CATEGORY_SERVERS = 5;
exports.orderByTotalMemberCount = closure;
exports.orderByDateAdded = closure2;
exports.rankByDateAdded = rankByDateAdded;
exports.rankGuildEntries = function(a0) {
return orderByTotalMemberCount(a0);
};
}
function orderByTotalMemberCount(a0) { // fn#75560, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9818:126, offset: 0x01db0952, size: 70 bytes, params: 2, frame: 15
return (importDefault(22) /* metro dependency 22 */).orderBy(a0, [function(a0) {
return a0.approximateMemberCount;
}], ['desc']);
}
function orderByDateAdded(a0) { // fn#75562, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9818:227, offset: 0x01db09a3, size: 70 bytes, params: 2, frame: 15
return (importDefault(22) /* metro dependency 22 */).orderBy(a0, [function(a0) {
return a0.createdAt;
}], ['desc']);
}
function guildDirectoryEntryFromServer(a0) { // fn#75564, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9818:424, offset: 0x01db09f4, size: 340 bytes, params: 2, frame: 17
const value2 = undefined;
const defaultImport = importDefault(44) /* metro dependency 44 */;
const type = a0.type;
const GUILD = DirectoryEntryTypes.GUILD;
defaultImport(type === GUILD, 'Directory entries must be connected to a guild!');
const object2 = {};
object2.channelId = a0.directory_channel_id;
object2.guildId = a0.entity_id;
object2.type = a0.type;
object2.authorId = a0.author_id;
object2.createdAt = a0.created_at;
object2.description = a0.description;
object2.primaryCategoryId = a0.primary_category_id;
let guild = a0.guild;
object2.name = guild == null ? value2 : guild.name;
guild = a0.guild;
object2.icon = guild == null ? value2 : guild.icon;
guild = a0.guild;
object2.splash = guild == null ? value2 : guild.splash;
const Set = global.Set;
guild = a0.guild;
object2.features = new Set(guild == null ? value2 : guild.features);
guild = a0.guild;
object2.approximateMemberCount = guild == null ? value2 : guild.approximate_member_count;
guild = a0.guild;
object2.approximatePresenceCount = guild == null ? value2 : guild.approximate_presence_count;
guild = a0.guild;
object2.featurableInDirectory = guild == null ? value2 : guild.featurable_in_directory;
return object2;
}
function rankByDateAdded(a0) { // fn#75565, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9818:1270, offset: 0x01db0b48, size: 54 bytes, params: 2, frame: 13
const orderByDateAddedBinding = orderByDateAdded;
let value = a0.filter(function(a0) {
return a0.featurableInDirectory;
});
value = orderByDateAddedBinding(value);
return value.slice(0, 5);
}
@@ -0,0 +1,14 @@
/* Metro module 9638; source: modules/directory_channels/native/GuildDirectoryConstants.tsx; dependencies: [2] */
function _fun75595(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#75595, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9824:6, offset: 0x01db2ea9, size: 166 bytes, params: 8, frame: 17
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const object = {GUILD_LIST_TOP: 1};
object[1] = 'GUILD_LIST_TOP';
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/directory_channels/native/GuildDirectoryConstants.tsx');
exports.GuildDirectoryCreate = {CREATE_OR_ADD: 'CREATE_OR_ADD', DESCRIPTION: 'DESCRIPTION', TEMPLATES: 'TEMPLATES',
CREATE: 'CREATE'};
exports.GUILD_DIRECTORY_BASE_HEADER_HEIGHT = 300;
exports.GUILD_DIRECTORY_PROGRESS_BAR_HEIGHT = 96;
exports.DirectoryChannelScrollBehavior = object;
}
@@ -0,0 +1,115 @@
/* Metro module 11987; source: modules/directory_channels/native/GuildDirectoryRowGenerator.tsx; dependencies: [9633, 9632, 1244, 2] */
function _fun92027(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#92027, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12173:6, offset: 0x0207aeae, size: 218 bytes, params: 8, frame: 20
var object2;
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const env0_2 = (require(9633) /* metro dependency 9633: GuildDirectoryConstants */).DirectoryEntryCategories;
object2 = {ENTRY: 0};
object2[0] = 'ENTRY';
object2.HEADER = 1;
object2[1] = 'HEADER';
object2.PLACEHOLDER = 2;
object2[2] = 'PLACEHOLDER';
const Array = global.Array;
const value = Array(20);
const fill = value.fill;
const PLACEHOLDER = object2.PLACEHOLDER;
const env0_4 = Reflect.apply(fill, value, [{type: PLACEHOLDER}]);
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/directory_channels/native/GuildDirectoryRowGenerator.tsx');
exports.RowType = object2;
exports.generateDirectoryRows = generateDirectoryRows;
}
function generateDirectoryRows(a0, a1, a2) { // fn#92028, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12173:409, offset: 0x0207af88, size: 514 bytes, params: 4, frame: 24
var r6;
var r2;
var length;
var value;
var items;
var value2;
var Set;
var value3;
var set;
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
const t = (require(1244) /* metro dependency 1244: indexNative */).t;
var value8;
if (a0) {
length = a1.length;
if (length === 0) {
return env0_4;
}
length = a1.length;
if (length === 0) {
return [];
}
if (a2 !== DirectoryEntryCategories.ALL) {
value = require(9632) /* metro dependency 9632: GuildDirectoryUtils */;
value = value.rankGuildEntries(a1);
return value.map(_fun92029);
}
items = [];
value2 = (require(9632) /* metro dependency 9632: GuildDirectoryUtils */).rankByDateAdded(a1);
Set = global.Set;
value3 = value2.map(function(a0) {
return a0.guildId;
});
set = new Set();
length = value2.length;
if (length > 0) {
items.push({type: env0_3.HEADER, header: intl.string(t.CbaapP)});
r6 = items.concat(value2.map(_fun92031));
} else {
r6 = items;
}
value8 = (require(9632) /* metro dependency 9632: GuildDirectoryUtils */).orderByTotalMemberCount(a1.filter(_fun92032));
length = value8.length;
if (length > 0) {
r6.push({type: env0_3.HEADER, header: intl.string(t.wxbhEe)});
r2 = r6.concat(value8.map(_fun92033));
} else {
r2 = r6;
}
} else {
if (a1.length === 0) {
return [];
}
if (a2 !== DirectoryEntryCategories.ALL) {
value = require(9632) /* metro dependency 9632: GuildDirectoryUtils */;
value = value.rankGuildEntries(a1);
return value.map(_fun92029);
}
items = [];
value2 = (require(9632) /* metro dependency 9632: GuildDirectoryUtils */).rankByDateAdded(a1);
Set = global.Set;
value3 = value2.map(function(a0) {
return a0.guildId;
});
set = new Set();
if (value2.length > 0) {
items.push({type: env0_3.HEADER, header: intl.string(t.CbaapP)});
r6 = items.concat(value2.map(_fun92031));
} else {
r6 = items;
}
value8 = (require(9632) /* metro dependency 9632: GuildDirectoryUtils */).orderByTotalMemberCount(a1.filter(_fun92032));
if (value8.length > 0) {
r6.push({type: env0_3.HEADER, header: intl.string(t.wxbhEe)});
r2 = r6.concat(value8.map(_fun92033));
} else {
r2 = r6;
}
}
return r2;
}
function _fun92029(a0) { // fn#92029, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12173:553, offset: 0x0207b18a, size: 29 bytes, params: 2, frame: 2
const ENTRY = env1_3.ENTRY;
return {type: ENTRY, entry: a0};
}
function _fun92032({guildId}) { // fn#92032, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12173:802, offset: 0x0207b1a7, size: 30 bytes, params: 2, frame: 11
const binding = env0_0;
return !binding.has(guildId);
}
@@ -0,0 +1,16 @@
/* Metro module 9654; source: modules/directory_channels/native/GuildDirectoryTemplatesIcons.tsx; dependencies: [9655, 9656, 9657, 9658, 9659, 9660, 9661, 2] */
function _fun75740(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#75740, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9840:6, offset: 0x01db75d9, size: 202 bytes, params: 8, frame: 17
var object2;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
object2 = {CREATE: importDefault(9655) /* metro dependency 9655 */,
HUB_SCHOOL_CLUB: importDefault(9656) /* metro dependency 9656 */,
HUB_STUDY: importDefault(9657) /* metro dependency 9657 */,
HUB_CLASS: importDefault(9658) /* metro dependency 9658 */,
HUB_SOCIAL: importDefault(9659) /* metro dependency 9659 */,
HUB_MAJOR: importDefault(9660) /* metro dependency 9660 */,
HUB_DORM: importDefault(9661) /* metro dependency 9661 */};
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/directory_channels/native/GuildDirectoryTemplatesIcons.tsx');
exports.GUILD_TEMPLATE_ICONS = object2;
}
@@ -0,0 +1,63 @@
/* Metro module 9650; source: modules/directory_channels/native/GuildDirectoryUtils.tsx; dependencies: [5, 31, 33, 9644, 4496, 9651, 1962, 2] */
function _fun75721(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#75721, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9836:6, offset: 0x01db6981, size: 162 bytes, params: 8, frame: 20
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const env0_4 = importDefault(5) /* metro dependency 5 */;
importAll(31) /* metro dependency 31 */;
const env0_5 = (require(33) /* metro dependency 33 */).jsx;
const value = _fun75722();
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/directory_channels/native/GuildDirectoryUtils.tsx');
exports.onAddDirectoryGuildEntry = value;
}
function _fun75722() { // fn#75722, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9836:132, offset: 0x01db6a23, size: 36 bytes, params: 1, frame: 12
const env0_0 = env0_4(_fun75724);
return _fun75728;
}
async function _fun75724({directoryChannelId, directoryGuildName, guild, description, category, onClose}) { // fn#75724, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9836:152, offset: 0x01db6a5b, size: 189 bytes, params: 2, frame: 24
var environment;
if (true) {
await undefined;
if (false) {
return undefined;
}
value = environment.__proto__.__proto__;
var value4 = env2_2(env2_3[3]);
await value4.addDirectoryGuildEntry(directoryChannelId, guild.id, description, category);
if (false) {
return undefined;
}
onClose();
value = env2_1(env2_3[4]);
value.openLazy({importer: importer_75725});
}
}
function importer_75725() { // fn#75725, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9836:330, offset: 0x01db6b18, size: 64 bytes, params: 1, frame: 13
var environment;
let value = environment.__proto__.__proto__.__proto__;
const binding = env3_0;
const binding2 = env3_3;
value = binding(binding2[6]);
value = value(binding2[5], binding2.paths);
return value.then(function({default: env0_0}) {
return _fun75727;
});
}
function _fun75726({default: env0_0}) { // fn#75726, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9836:362, offset: 0x01db6b58, size: 23 bytes, params: 2, frame: 2
return _fun75727;
}
function _fun75727(a0) { // fn#75727, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9836:377, offset: 0x01db6b6f, size: 65 bytes, params: 2, frame: 15
const binding = env5_5;
const binding2 = env0_0;
const object2 = {};
copyDataProperties(object2, a0, undefined);
object2['guild'] = guild;
object2['directoryGuildName'] = directoryGuildName;
return binding(binding2, object2);
}
@@ -0,0 +1,364 @@
/* Metro module 11985; source: modules/directory_channels/native/components/GuildDirectory.tsx; dependencies: [31, 27, 1867, 4605, 9640, 9633, 9638, 661, 33, 4501, 697, 11986, 11987, 9669, 9670, 4573, 11988, 1244, 4578, 6998, 9871, 11989, 9635, 5278, 9636, 10375, 566, 1585, 4884, 14, 5097, 3980, 9644, 683, 12050, 9628, 12054, 2] */
function _fun91991(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#91991, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12171:6, offset: 0x020796c4, size: 742 bytes, params: 8, frame: 23
var object3;
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const env0_4 = importAll(31) /* metro dependency 31 */;
let value = require(27) /* metro dependency 27 */;
const env0_5 = value.View;
const env0_6 = value.Image;
const StyleSheet = value.StyleSheet;
const env0_7 = value.SectionList;
const guildStore = importDefault(1867) /* metro dependency 1867: GuildStore */;
const readStateStore = importDefault(4605) /* metro dependency 4605: ReadStateStore */;
const guildDirectoryStore = importDefault(9640) /* metro dependency 9640: GuildDirectoryStore */;
const env0_11 = (require(9633) /* metro dependency 9633: GuildDirectoryConstants */).DirectoryEntryCategories;
value = require(9638) /* metro dependency 9638: GuildDirectoryConstants */;
const GUILD_DIRECTORY_BASE_HEADER_HEIGHT = value.GUILD_DIRECTORY_BASE_HEADER_HEIGHT;
const env0_13 = value.GUILD_DIRECTORY_PROGRESS_BAR_HEIGHT;
const env0_14 = value.DirectoryChannelScrollBehavior;
value = require(661) /* metro dependency 661: Constants */;
const env0_15 = value.AnalyticsObjectTypes;
const env0_16 = value.AnalyticsObjects;
const env0_17 = value.AnalyticEvents;
const env0_18 = value.GuildFeatures;
value = require(33) /* metro dependency 33 */;
const env0_19 = value.jsx;
const env0_20 = value.jsxs;
const env0_21 = value.Fragment;
const Array = global.Array;
const env0_22 = Array(20).fill(null);
value = require(4501) /* metro dependency 4501: createStyles */;
const createStyles = value.createStyles;
object3 = {};
const object4 = {};
object4.height = StyleSheet.hairlineWidth;
let BACKGROUND_BASE_LOWEST = (importDefault(697) /* metro dependency 697: native */).colors.BACKGROUND_BASE_LOWEST;
object4.backgroundColor = BACKGROUND_BASE_LOWEST;
object3.border = object4;
const BACKGROUND_BASE_LOW = (importDefault(697) /* metro dependency 697: native */).colors.BACKGROUND_BASE_LOW;
object3.list = {backgroundColor: BACKGROUND_BASE_LOW};
object3.headerWrapper = {overflow: 'hidden', height: GUILD_DIRECTORY_BASE_HEADER_HEIGHT};
object3.backgroundImage = {'resizeMode': 'cover', 'width': '100%'};
object3.textWrapper = {'position': 'absolute', 'bottom': 0, 'left': 0, 'right': 0, 'padding': 16,
'alignContent': 'center'};
object3.headerTitle = {'textAlign': 'center', 'marginBottom': 8};
object3.headerDescription = {'lineHeight': 18, 'textAlign': 'center', 'paddingHorizontal': 20, 'marginBottom': 72};
object3.footer = {'flexDirection': 'row', 'padding': 16, 'alignItems': 'center'};
BACKGROUND_BASE_LOWEST = (importDefault(697) /* metro dependency 697: native */).colors.BACKGROUND_BASE_LOWEST;
object3.addIcon = {'marginRight': 16, 'height': 40, 'width': 40, 'alignItems': 'center', 'justifyContent': 'center',
'borderRadius': 20, backgroundColor: BACKGROUND_BASE_LOWEST};
object3.categorySectionText = {'padding': 16, 'paddingBottom': 4};
const env0_23 = Reflect.apply(createStyles, value, [object3]);
const keyExtractor_91993 = function(a0, a1) {
var r4;
var r0;
var value = undefined;
if ((a0 == null ? value : a0.type) === require(dependencyMap[12]).RowType.ENTRY) {
r0 = a0.entry.guildId;
} else {
r4 = a0 == null ? value : a0.type;
value = a1.toString();
value = '' + r4 + value;
r0 = value;
}
return r0;
};
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/directory_channels/native/components/GuildDirectory.tsx');
exports.default = _default_91998;
}
function GuildDirectoryHeaderRowItem({children}) { // fn#91992, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12171:1640, offset: 0x020799aa, size: 88 bytes, params: 2, frame: 16
const styles = useStyles();
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
return (
<Text
style={styles.categorySectionText}
variant="text-md/semibold"
color="mobile-text-heading-primary"
>
{children}
</Text>
);
}
function renderItem({item}) { // fn#91994, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12171:1415, offset: 0x02079a7e, size: 204 bytes, params: 2, frame: 16
const type = item?.type;
const RowType = (require(11987) /* metro dependency 11987: GuildDirectoryRowGenerator */).RowType;
const HEADER = RowType.HEADER;
if (HEADER === type) {
return (
<GuildDirectoryHeaderRowItem>
{item.header}
</GuildDirectoryHeaderRowItem>
);
}
const ENTRY = RowType.ENTRY;
if (ENTRY === type) {
return ((Component) => <Component entry={item.entry} />)(importDefault(9669) /* metro dependency 9669: GuildDirectoryRow */);
}
return ((Component) => <Component />)(importDefault(9670) /* metro dependency 9670: GuildDirectoryPlaceholderRow */);
}
function GuildDirectoryHeader({guild, onPressSearch}) { // fn#91995, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12171:1854, offset: 0x02079b4a, size: 656 bytes, params: 2, frame: 32
var r5;
var value;
const styles = useStyles();
const features = guild.features;
const has = features.has;
const HUB = GuildFeatures.HUB;
const value2 = Reflect.apply(has, features, [HUB]);
const jsxRuntimeEnv0_21Binding = jsxRuntimeEnv0_21;
const image = <Image source={require(11988) /* metro dependency 11988 */} style={styles.backgroundImage} />;
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
const string = intl.string;
const IT7qoC = (require(1244) /* metro dependency 1244: indexNative */).t.IT7qoC;
const items2 = [<Text style={styles.headerTitle} variant="heading-xl/extrabold" color="always-white">{Reflect.apply(string,
intl, [IT7qoC])}</Text>];
items2[1] = <Text style={[styles.headerDescription]} variant="text-sm/medium" color="always-white">{intl.string((require(1244) /* metro dependency 1244: indexNative */).t['5PoYts'])}</Text>;
const Button = (require(4578) /* metro dependency 4578: ButtonNative */).Button;
const MagnifyingGlassIcon = (require(6998) /* metro dependency 6998: MagnifyingGlassIcon */).MagnifyingGlassIcon;
items2[2] = <Button variant="primary-overlay" icon={<MagnifyingGlassIcon size="sm" color="text-strong" />} text={intl.string((require(1244) /* metro dependency 1244: indexNative */).t.nL2wKD)} onPress={onPressSearch} />;
const TTIFirstContentfulPaint = (require(9871) /* metro dependency 9871: TTIFirstContentfulPaint */).TTIFirstContentfulPaint;
items2[3] = <TTIFirstContentfulPaint label="hub_directory" />;
const view = <View style={styles.headerWrapper}>{image}<View style={styles.textWrapper}>{items2}</View></View>;
if (value2) {
value = importDefault(11989) /* metro dependency 11989: HubProgressHeader */;
value = ((Component) => <Component guild={guild} onDirectoryPage />)(value);
r5 = value;
} else {
r5 = null;
}
return (
<>
{view}
{r5}
</>
);
}
function GuildDirectoryFooter({guild, channel, hideFooter}) { // fn#91996, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12171:2654, offset: 0x02079dda, size: 386 bytes, params: 2, frame: 26
var r0;
var PressableOpacity;
var object2;
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
var string;
const t = (require(1244) /* metro dependency 1244: indexNative */).t;
var H9jxS1;
var items2;
var Text;
const styles = useStyles();
if ((require(9635) /* metro dependency 9635: useCanManageGuildDirectoryEntry */).useCanCreateOrAddGuildInDirectory(channel)) {
if (hideFooter) {
r0 = null;
} else {
PressableOpacity = (require(5278) /* metro dependency 5278: Pressables */).PressableOpacity;
object2 = {accessibilityRole: 'button'};
string = intl.string;
H9jxS1 = t.H9jxS1;
object2.accessibilityLabel = Reflect.apply(string, intl, [H9jxS1]);
object2.onPress = onPress_91997;
var viewBindingProps = {style: styles.footer};
items2 = [<View style={styles.addIcon}>{((PlusMediumIcon) => <PlusMediumIcon />)((require(10375) /* metro dependency 10375: PlusMediumIcon */).PlusMediumIcon)}</View>];
Text = (require(4573) /* metro dependency 4573: Text */).Text;
string = intl.string;
H9jxS1 = t.H9jxS1;
items2[1] = <Text variant="text-md/semibold" color="mobile-text-heading-primary">{Reflect.apply(string,
intl,
[H9jxS1])}</Text>;
r0 = <PressableOpacity {...object2}><View {...viewBindingProps}>{items2}</View></PressableOpacity>;
}
} else {
r0 = null;
}
return r0;
}
function _default_91998({channel, guildId}) { // fn#91998, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12171:3225, offset: 0x02079fad, size: 1020 bytes, params: 2, frame: 29
const styles = useStyles();
const guild = (require(566) /* metro dependency 566: flux */).useStateFromStores([GuildStore], function() {
return GuildStore.getGuild(guildId);
});
const binding = env0_4;
const env0_3 = binding.useRef(null);
const bottom = (importDefault(1585) /* metro dependency 1585: useSafeAreaInsetsNative */)().bottom;
const value4 = (require(11986) /* metro dependency 11986: HubProgressBarUtils */).useHubProgressBarCompletedSteps(guild);
const hubProgressBarUtilsModule = require(11986) /* metro dependency 11986: HubProgressBarUtils */;
const getNextHubProgressStep = hubProgressBarUtilsModule.getNextHubProgressStep;
var env0_4 = Reflect.apply(getNextHubProgressStep, hubProgressBarUtilsModule,
[value4]) == null ? GUILD_DIRECTORY_BASE_HEADER_HEIGHT : GUILD_DIRECTORY_PROGRESS_BAR_HEIGHT + GUILD_DIRECTORY_BASE_HEADER_HEIGHT;
const value6 = (require(566) /* metro dependency 566: flux */).useStateFromStoresObject([GuildDirectoryStore],
_fun92000);
const currentCategoryId = value6.currentCategoryId;
const directoryEntries = value6.directoryEntries;
const directoryIsFetching = value6.directoryIsFetching;
const allEntriesCount = value6.allEntriesCount;
const env0_9 = value6.categoryCounts;
binding.useEffect(_fun92001, [directoryEntries, directoryIsFetching]);
binding.useEffect(function() {
return _fun92003;
}, [channel.id]);
const value7 = binding.useMemo(_fun92004, [directoryIsFetching, directoryEntries, currentCategoryId]);
const value8 = binding.useRef(null);
const env0_11 = binding.useRef(0);
binding.useEffect(_fun92005, [(require(3980) /* metro dependency 3980 */).useLocation(),
(require(3980) /* metro dependency 3980 */).useHistory()]);
binding.useEffect(_fun92006, [channel.id]);
binding.useEffect(function() {
var value2 = undefined;
var defaultImport = importDefault(dependencyMap[33]);
var track = defaultImport.track;
var GUILD_DIRECTORY_CHANNEL_VIEWED = AnalyticEvents.GUILD_DIRECTORY_CHANNEL_VIEWED;
Reflect.apply(track, defaultImport, [GUILD_DIRECTORY_CHANNEL_VIEWED, {directory_channel_id: channel.id,
directory_guild_id: guild == null ? value2 : guild.id, primary_category_id: currentCategoryId}]);
return value2;
}, [guild?.id, channel.id, currentCategoryId]);
env0_4.useEffect(_fun92008, [value7]);
return guild == null ? null : directoryIsFetching || allEntriesCount !== 0 ? <View><SectionList ref={value8} onScroll={onScroll_92010} scrollEventThrottle={16} contentContainerStyle={{paddingBottom: bottom}} windowSize={10} ListHeaderComponent={<GuildDirectoryHeader guild={guild} onPressSearch={onPressSearch} />} sections={[{data: value7}]} stickySectionHeadersEnabled style={styles.list} scrollIndicatorInsets={{right: 1}} keyExtractor={keyExtractor_91993} renderItem={renderItem} renderSectionHeader={renderSectionHeader_92012} ListFooterComponent={ListFooterComponent} /></View> : <View style={{paddingBottom: bottom}}><View style={styles.border} />{((Component) => <Component guild={guild} channel={channel} />)(importDefault(12050) /* metro dependency 12050: GuildDirectoryEmpty */)}{((TTIFirstContentfulPaint) => <TTIFirstContentfulPaint label="guild_directory_empty" />)((require(9871) /* metro dependency 9871: TTIFirstContentfulPaint */).TTIFirstContentfulPaint)}</View>;
}
function GuildDirectoryFooterOnPress() { // fn#91997, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12171:2885, owner: GuildDirectoryFooter.onPress, offset: 0x02079f5c, size: 81 bytes, params: 1, frame: 14
let value = environment.__proto__;
value = importDefault(9636) /* metro dependency 9636: GuildDirectoryAddModalActionCreators */;
const open = value.open;
const guildBinding = guild;
return Reflect.apply(open, value, [{directoryGuildName: guildBinding.name, directoryGuildId: guildBinding.id,
directoryChannelId: channel.id}]);
}
function _fun92000() { // fn#92000, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12171:3536, offset: 0x0207a3c4, size: 168 bytes, params: 1, frame: 18
let value = environment.__proto__;
const getCurrentCategoryId = GuildDirectoryStore.getCurrentCategoryId;
let channelBinding = channel;
let id = channelBinding.id;
const value3 = Reflect.apply(getCurrentCategoryId, GuildDirectoryStore, [id]);
const getDirectoryEntries = GuildDirectoryStore.getDirectoryEntries;
id = channelBinding.id;
const ALL = DirectoryEntryCategories.ALL;
const value4 = null;
const value5 = Reflect.apply(getDirectoryEntries, GuildDirectoryStore, [id, value3 === ALL ? value4 : value3]);
const getDirectoryAllEntriesCount = GuildDirectoryStore.getDirectoryAllEntriesCount;
channelBinding = channel;
value = Reflect.apply(getDirectoryAllEntriesCount, GuildDirectoryStore, [channelBinding.id]);
const directoryCategoryCounts = GuildDirectoryStore.getDirectoryCategoryCounts(channelBinding.id);
const object2 = {currentCategoryId: value3, directoryEntries: value5};
object2.directoryIsFetching = GuildDirectoryStore.isFetching() || value4 === value3 && value4 == value5;
object2.allEntriesCount = value;
object2.categoryCounts = directoryCategoryCounts;
return object2;
}
function _fun92001() { // fn#92001, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12171:3956, offset: 0x0207a46c, size: 116 bytes, params: 1, frame: 17
let value = environment.__proto__;
(require(4884) /* metro dependency 4884: TTIAnalyticsUtils */).trackAppUIViewed();
value = importDefault(14) /* metro dependency 14: TTITracker */;
const recordRender = value.recordRender;
const Object = global.Object;
Reflect.apply(recordRender, value, [Object.keys(directoryEntries ?? ({})).length, !directoryIsFetching]);
}
function _fun92002() { // fn#92002, offset: 0x0207a4e0, size: 11 bytes, params: 1, frame: 1
return function() {
var value3 = ReadStateStore.lastMessageId(channel.id);
if (value3 != null) {
require(dependencyMap[30]).ack(channel.id, {object: AnalyticsObjects.ACK_GUILD_DIRECTORY_CHANNEL_VIEWED,
objectType: AnalyticsObjectTypes.ACK_AUTOMATIC}, true, true, value3);
}
};
}
function _fun92004() { // fn#92004, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12171:4243, offset: 0x0207a569, size: 105 bytes, params: 1, frame: 18
var r0;
var value2;
var moduleValue;
var generateDirectoryRows;
var Object;
var value;
let directoryIsFetchingBinding = directoryIsFetching;
if (directoryIsFetchingBinding) {
value = environment.__proto__;
r0 = env1_22;
} else if (directoryEntries != null) {
value2 = environment.__proto__;
moduleValue = require(11987) /* metro dependency 11987: GuildDirectoryRowGenerator */;
generateDirectoryRows = moduleValue.generateDirectoryRows;
directoryIsFetchingBinding = directoryIsFetching;
Object = global.Object;
r0 = Reflect.apply(generateDirectoryRows, moduleValue, [directoryIsFetchingBinding,
Object.values(directoryEntries),
currentCategoryId]);
} else {
r0 = [];
}
return r0;
}
function _fun92005() { // fn#92005, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12171:4418, offset: 0x0207a5d2, size: 110 bytes, params: 1, frame: 14
var current;
const state = env0_12.state;
const value2 = undefined;
const scrollBehavior = state == null ? value2 : state.scrollBehavior;
const GUILD_LIST_TOP = DirectoryChannelScrollBehavior.GUILD_LIST_TOP;
if (scrollBehavior === GUILD_LIST_TOP) {
current = env0_10.current;
if (current != null) {
current.scrollToLocation({'sectionIndex': 0, 'itemIndex': 0, 'animated': true, 'viewOffset': 0});
}
env0_13.replace({state: {}});
}
return value2;
}
function _fun92006() { // fn#92006, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12171:4634, offset: 0x0207a640, size: 75 bytes, params: 1, frame: 16
let value = environment.__proto__;
value = importAll(9644) /* metro dependency 9644: GuildDirectoryActionCreators */;
const fetchDirectoryEntries = value.fetchDirectoryEntries;
const channelBinding = channel;
Reflect.apply(fetchDirectoryEntries, value, [channelBinding.id]);
value = importAll(9644) /* metro dependency 9644: GuildDirectoryActionCreators */;
value.fetchDirectoryCounts(channelBinding.id);
}
function _fun92008() { // fn#92008, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12171:4923, offset: 0x0207a6f4, size: 69 bytes, params: 1, frame: 13
let current = env0_3.current;
if (current) {
current = env0_10.current;
if (current != null) {
current.scrollToLocation({'sectionIndex': 0, 'itemIndex': 0, 'animated': true, 'viewOffset': 0});
}
env0_3.current = null;
}
}
function handleTapCategory() { // fn#92009, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12171:5086, owner: _default_91998.handleTapCategory, offset: 0x0207a739, size: 36 bytes, params: 1, frame: 3
if (env0_11.current >= env0_4) {
env0_3.current = true;
}
}
function _default_91998OnScroll({nativeEvent}) { // fn#92010, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12171:5184, owner: _default_91998.onScroll, offset: 0x0207a75d, size: 37 bytes, params: 2, frame: 2
env0_11.current = nativeEvent.contentOffset.y;
}
function onPressSearch() { // fn#92011, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12171:5380, owner: _default_91998.onPressSearch, offset: 0x0207a782, size: 51 bytes, params: 1, frame: 13
const value = environment.__proto__;
(importDefault(9628) /* metro dependency 9628: GuildDirectorySearchModalActionCreators */).open({channel: channel});
}
function _default_91998RenderSectionHeader() { // fn#92012, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12171:5579, owner: _default_91998.renderSectionHeader, offset: 0x0207a7b5, size: 77 bytes, params: 1, frame: 15
const value = environment.__proto__;
return ((Component) => <Component onCategorySelected={handleTapCategory} channel={channel} categoryCounts={categoryCounts} allEntriesCount={allEntriesCount} />)(importDefault(12054) /* metro dependency 12054: GuildDirectoryCategorySelector */);
}
function _default_91998ListFooterComponent() { // fn#92013, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12171:5699, owner: _default_91998.ListFooterComponent, offset: 0x0207a802, size: 49 bytes, params: 1, frame: 14
return (
<GuildDirectoryFooter
guild={guild}
channel={channel}
hideFooter={false}
/>
);
}
@@ -0,0 +1,53 @@
/* Metro module 9651; source: modules/directory_channels/native/components/GuildDirectoryAddAlert.tsx; dependencies: [31, 27, 33, 4501, 697, 4596, 1244, 6819, 4573, 2] */
function _fun75729(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#75729, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9837:6, offset: 0x01db6bb0, size: 283 bytes, params: 8, frame: 21
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
importAll(31) /* metro dependency 31 */;
const env0_3 = (require(27) /* metro dependency 27 */).View;
let value = require(33) /* metro dependency 33 */;
const env0_4 = value.jsx;
const env0_5 = value.jsxs;
value = require(4501) /* metro dependency 4501: createStyles */;
const createStyles = value.createStyles;
const object = {marginBottom: 16};
object.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.sm;
const env0_6 = Reflect.apply(createStyles, value, [{guildIcon: object, title: {'marginBottom': 8,
'textAlign': 'center'}, description: {textAlign: 'center'}, container: {'alignItems': 'center',
'justifyContent': 'center'}}]);
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/directory_channels/native/components/GuildDirectoryAddAlert.tsx');
exports.default = _default_75730;
}
function _default_75730({onClose, guild, directoryGuildName}) { // fn#75730, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9837:370, offset: 0x01db6ccb, size: 439 bytes, params: 2, frame: 28
const styles = useStyles();
const Alert = importDefault(4596) /* metro dependency 4596: Alert */;
const object2 = {};
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
let string = intl.string;
object2.confirmText = Reflect.apply(string, intl,
[(require(1244) /* metro dependency 1244: indexNative */).t['X0WK+6']]);
object2.onConfirm = onClose;
let value = importDefault(6819) /* metro dependency 6819: GuildIcon */;
const GuildIconSizes = (require(6819) /* metro dependency 6819: GuildIcon */).GuildIconSizes;
const XLARGE = GuildIconSizes.XLARGE;
value = ((Component) => <Component style={styles.guildIcon} guild={guild} size={XLARGE} />)(value);
const items2 = [value];
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
string = intl.string;
const CueiPY = (require(1244) /* metro dependency 1244: indexNative */).t.CueiPY;
items2[1] = <Text style={styles.title} accessibilityRole="header" variant="text-lg/bold" color="mobile-text-heading-primary">{Reflect.apply(string,
intl, [CueiPY])}</Text>;
const format = intl.format;
const R7Pqn5 = (require(1244) /* metro dependency 1244: indexNative */).t.R7Pqn5;
items2[2] = <Text style={styles.description} variant="text-sm/medium" color="text-default">{Reflect.apply(format,
intl, [R7Pqn5, {guildName: directoryGuildName}])}</Text>;
return (
<Alert {...object2}>
<View style={styles.container}>
{items2}
</View>
</Alert>
);
}
@@ -0,0 +1,99 @@
/* Metro module 9637; source: modules/directory_channels/native/components/GuildDirectoryAddModal.tsx; dependencies: [31, 9638, 33, 4501, 5314, 480, 5282, 9636, 9639, 9648, 9652, 9662, 6618, 6518, 5280, 1244, 2] */
function _fun75583(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#75583, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9823:6, offset: 0x01db2a7b, size: 234 bytes, params: 8, frame: 21
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
importAll(31) /* metro dependency 31 */;
const env0_3 = (require(9638) /* metro dependency 9638: GuildDirectoryConstants */).GuildDirectoryCreate;
const env0_4 = (require(33) /* metro dependency 33 */).jsx;
const createStylesModule = require(4501) /* metro dependency 4501: createStyles */;
const createStyles = createStylesModule.createStyles;
const NAV_BAR_HEIGHT = (require(5314) /* metro dependency 5314: NavigatorConstantsNative */).NAV_BAR_HEIGHT;
const env0_5 = Reflect.apply(createStyles, createStylesModule, [{safeArea: {marginTop: NAV_BAR_HEIGHT, flex: 1}}]);
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/directory_channels/native/components/GuildDirectoryAddModal.tsx');
exports.default = GuildDirectoryAddModal;
exports.GuildDirectoryAddModalScreen = GuildDirectoryAddModalScreen;
}
function GuildDirectoryAddModal(a0) { // fn#75584, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9823:342, offset: 0x01db2b65, size: 156 bytes, params: 2, frame: 18
const env0_0 = a0;
const {screens, initialStack} = (importDefault(6518) /* metro dependency 6518: useInitialValue */)(_fun75585);
const Navigator = (require(5280) /* metro dependency 5280: NavigatorNative */).Navigator;
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
return (
<Navigator
screens={screens}
initialRouteStack={initialStack}
headerBackTitle={intl.string((require(1244) /* metro dependency 1244: indexNative */).t['13/7kX'])}
/>
);
}
function GuildDirectoryAddModalScreen({children}) { // fn#75594, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9823:1298, offset: 0x01db2e58, size: 81 bytes, params: 2, frame: 16
const styles = useStyles();
const SafeAreaPaddingView = (require(6618) /* metro dependency 6618: SafeAreaView */).SafeAreaPaddingView;
return (
<SafeAreaPaddingView top style={styles.safeArea}>
{children}
</SafeAreaPaddingView>
);
}
function _fun75585() { // fn#75585, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9823:393, offset: 0x01db2c01, size: 403 bytes, params: 1, frame: 25
const object5 = {};
let CREATE_OR_ADD = GuildDirectoryCreate.CREATE_OR_ADD;
object5.name = CREATE_OR_ADD;
const object6 = {};
copyDataProperties(object6, env0_0, undefined);
object5.params = object6;
const items2 = [object5];
const object7 = {};
CREATE_OR_ADD = GuildDirectoryCreate.CREATE_OR_ADD;
const object8 = {fullscreen: true};
const ImpressionNames = (require(480) /* metro dependency 480: AnalyticsUtils */).ImpressionNames;
const HUB_EXISTING_GUILD_CHOOSE = ImpressionNames.HUB_EXISTING_GUILD_CHOOSE;
object8.impressionName = HUB_EXISTING_GUILD_CHOOSE;
object8.headerLeft = (require(5282) /* metro dependency 5282: NavigatorHeaderNative */).getHeaderCloseButton((importDefault(9636) /* metro dependency 9636: GuildDirectoryAddModalActionCreators */).close);
object8.headerTitle = function() {
return null;
};
object8.render = render_75587;
object7[CREATE_OR_ADD] = object8;
const DESCRIPTION = GuildDirectoryCreate.DESCRIPTION;
let HUB_CREATE_GUILD_CUSTOMIZE = ImpressionNames.HUB_CREATE_GUILD_CUSTOMIZE;
object7[DESCRIPTION] = {fullscreen: true, impressionName: HUB_CREATE_GUILD_CUSTOMIZE, headerTitle: function() {
return null;
}, render: render_75589};
const TEMPLATES = GuildDirectoryCreate.TEMPLATES;
const HUB_CREATE_GUILD_TEMPLATE = ImpressionNames.HUB_CREATE_GUILD_TEMPLATE;
object7[TEMPLATES] = {fullscreen: true, impressionName: HUB_CREATE_GUILD_TEMPLATE, headerTitle: function() {
return null;
}, render: render_75591};
const CREATE = GuildDirectoryCreate.CREATE;
HUB_CREATE_GUILD_CUSTOMIZE = ImpressionNames.HUB_CREATE_GUILD_CUSTOMIZE;
object7[CREATE] = {headerTitle: function() {
return null;
}, fullscreen: true, impressionName: HUB_CREATE_GUILD_CUSTOMIZE, render: render_75593};
return {screens: object7, initialStack: items2};
}
function render_75587(a0) { // fn#75587, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9823:640, offset: 0x01db2d94, size: 49 bytes, params: 2, frame: 14
const value = environment.__proto__.__proto__;
return ((Component) => <Component {...a0} />)(importDefault(9639) /* metro dependency 9639: GuildDirectoryCreateOrAdd */);
}
function render_75589(a0) { // fn#75589, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9823:787, offset: 0x01db2dc5, size: 49 bytes, params: 2, frame: 14
const value = environment.__proto__.__proto__;
return ((Component) => <Component {...a0} />)(importDefault(9648) /* metro dependency 9648: GuildDirectoryCreateOrAddDescription */);
}
function render_75591(a0) { // fn#75591, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9823:931, offset: 0x01db2df6, size: 49 bytes, params: 2, frame: 14
const value = environment.__proto__.__proto__;
return ((Component) => <Component {...a0} />)(importDefault(9652) /* metro dependency 9652: GuildDirectoryTemplates */);
}
function render_75593(a0) { // fn#75593, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9823:1074, offset: 0x01db2e27, size: 49 bytes, params: 2, frame: 14
const value = environment.__proto__.__proto__;
return ((Component) => <Component {...a0} />)(importDefault(9662) /* metro dependency 9662: CreateGuildContainer */);
}
@@ -0,0 +1,23 @@
/* Metro module 9636; source: modules/directory_channels/native/components/GuildDirectoryAddModalActionCreators.tsx; dependencies: [5080, 9637, 1962, 2] */
function _fun75580(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#75580, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9822:6, offset: 0x01db2984, size: 122 bytes, params: 8, frame: 18
var object2;
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
object2 = {open: open_75581, close: close_75582};
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/directory_channels/native/components/GuildDirectoryAddModalActionCreators.tsx');
exports.default = object2;
}
function open_75581(a0) { // fn#75581, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9822:133, offset: 0x01db29fe, size: 82 bytes, params: 2, frame: 16
const defaultImport = importDefault(dependencyMap[0]);
const pushLazy = defaultImport.pushLazy;
let value = require(dependencyMap[2]);
value = value(dependencyMap[1], dependencyMap.paths);
Reflect.apply(pushLazy, defaultImport, [value, a0, 'GUILD_DIRECTORY_ADD_MODAL_KEY']);
}
function close_75582() { // fn#75582, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9822:186, offset: 0x01db2a50, size: 43 bytes, params: 1, frame: 12
(importDefault(5080) /* metro dependency 5080: ModalActionCreators */).popWithKey('GUILD_DIRECTORY_ADD_MODAL_KEY');
}
@@ -0,0 +1,101 @@
/* Metro module 12054; source: modules/directory_channels/native/components/GuildDirectoryCategorySelector.tsx; dependencies: [57, 31, 27, 9640, 9633, 33, 4501, 697, 1244, 3860, 674, 566, 8853, 9644, 8859, 12055, 2] */
function _fun92583(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#92583, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12240:6, offset: 0x02090863, size: 310 bytes, params: 8, frame: 21
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const env0_4 = importDefault(57) /* metro dependency 57 */;
const env0_5 = importAll(31) /* metro dependency 31 */;
const env0_6 = (require(27) /* metro dependency 27 */).View;
const guildDirectoryStore = importDefault(9640) /* metro dependency 9640: GuildDirectoryStore */;
let value = require(9633) /* metro dependency 9633: GuildDirectoryConstants */;
const env0_8 = value.DirectoryEntryCategories;
const env0_9 = value.getHubCategories;
value = require(33) /* metro dependency 33 */;
const env0_10 = value.jsx;
const env0_11 = value.jsxs;
value = require(4501) /* metro dependency 4501: createStyles */;
const createStyles = value.createStyles;
const BACKGROUND_SURFACE_HIGH = (importDefault(697) /* metro dependency 697: native */).colors.BACKGROUND_SURFACE_HIGH;
const env0_12 = Reflect.apply(createStyles, value,
[{categoriesListWrapper: {backgroundColor: BACKGROUND_SURFACE_HIGH, paddingTop: 12}}]);
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/directory_channels/native/components/GuildDirectoryCategorySelector.tsx');
exports.default = _default_92584;
}
function _default_92584({channel, onCategorySelected, categoryCounts, allEntriesCount}) { // fn#92584, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12240:360, offset: 0x02090999, size: 539 bytes, params: 2, frame: 26
const styles = useStyles();
const binding = env0_5;
const [property, env0_4] = env0_4Binding(binding.useState(0), 2);
const value4 = binding.useCallback(_fun92585, []);
const currentCategoryId = (require(566) /* metro dependency 566: flux */).useStateFromStores([GuildDirectoryStore],
function() {
return GuildDirectoryStore.getCurrentCategoryId(channel.id);
});
const value5 = binding.useMemo(_fun92587, [channel.id]);
const value8 = (require(8853) /* metro dependency 8853: SegmentedControlStateNative */).useSegmentedControlState({items: binding.useMemo(_fun92588,
[value5, categoryCounts, allEntriesCount]), defaultIndex: binding.useMemo(_fun92590, [value5,
currentCategoryId]), onSetActiveIndex: onSetActiveIndex_92592, pageWidth: property});
const useTokenModule = require(3860) /* metro dependency 3860: useToken */;
const useToken = useTokenModule.useToken;
const BACKGROUND_BASE_LOW = (importDefault(697) /* metro dependency 697: native */).colors.BACKGROUND_BASE_LOW;
const value9 = Reflect.apply(useToken, useTokenModule, [BACKGROUND_BASE_LOW]);
items = [value9];
const value11 = (importDefault(674) /* metro dependency 674 */)(value9).alpha(0);
items[1] = value11.hex();
const Tabs = (require(8859) /* metro dependency 8859: TabsNative */).Tabs;
return (
<View style={styles.categoriesListWrapper} onLayout={value4}>
<Tabs state={value8} />
{((Component) => <Component state={value8} colors={items} />)(importDefault(12055) /* metro dependency 12055: TabsGradientNative */)}
</View>
);
}
function _fun92587() { // fn#92587, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12240:629, offset: 0x02090bd4, size: 131 bytes, params: 1, frame: 19
const id = channel.id;
const object2 = {};
const value = environment.__proto__;
const ALL = DirectoryEntryCategories.ALL;
object2.value = ALL;
const intl = require(dependencyMap[8]).intl;
object2.label = intl.string(require(dependencyMap[8]).t.hEAa2a);
object2.idealSize = 70;
const items2 = [object2];
arraySpread(items2, getHubCategories(id), 1, dependencyMap);
return items2;
}
function _fun92588() { // fn#92588, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12240:775, offset: 0x02090c57, size: 28 bytes, params: 1, frame: 11
return env0_6.map(function(a0) {
var object = {label: a0.label};
var property = global.String;
var value = undefined;
object.id = property(a0.value);
object.count = a0.value === DirectoryEntryCategories.ALL ? allEntriesCount : categoryCounts == null ? value : categoryCounts[a0.value];
object.page = null;
return object;
});
}
function _fun92590() { // fn#92590, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12240:911, offset: 0x02090ce4, size: 44 bytes, params: 1, frame: 11
const index = env0_6.findIndex(function({value}) {
return value === currentCategoryId;
});
return index === -1 ? 0 : index;
}
function _default_92584OnSetActiveIndex(a0) { // fn#92592, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12240:1055, owner: _default_92584.onSetActiveIndex, offset: 0x02090d25, size: 94 bytes, params: 2, frame: 15
var value4;
var moduleValue;
const property = env0_6[a0];
const value2 = undefined;
const r5 = property == null ? value2 : property.value;
if (r5 !== currentCategoryId) {
value4 = environment.__proto__;
moduleValue = importAll(9644) /* metro dependency 9644: GuildDirectoryActionCreators */;
moduleValue.selectDirectoryCategory(channel.id, r5);
onCategorySelected();
}
return value2;
}
@@ -0,0 +1,229 @@
/* Metro module 9639; source: modules/directory_channels/native/components/GuildDirectoryCreateOrAdd.tsx; dependencies: [57, 31, 27, 9640, 9638, 33, 4501, 697, 566, 6238, 6819, 9641, 8853, 1244, 4573, 9221, 1585, 4578, 1484, 6619, 9647, 9637, 2] */
function _fun75596(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#75596, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9825:6, offset: 0x01db2f4f, size: 575 bytes, params: 8, frame: 24
var object2;
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const env0_3 = importDefault(57) /* metro dependency 57 */;
const value = importAll(31) /* metro dependency 31 */;
const value2 = require(27) /* metro dependency 27 */;
const env0_5 = value2.View;
const env0_6 = value2.ActivityIndicator;
const env0_7 = value2.FlatList;
const guildDirectoryStore = importDefault(9640) /* metro dependency 9640: GuildDirectoryStore */;
const env0_9 = (require(9638) /* metro dependency 9638: GuildDirectoryConstants */).GuildDirectoryCreate;
const value3 = require(33) /* metro dependency 33 */;
const env0_10 = value3.jsx;
const env0_11 = value3.jsxs;
const createStylesModule = require(4501) /* metro dependency 4501: createStyles */;
const createStyles = createStylesModule.createStyles;
object2 = {loadingContainer: {'flex': 1, 'alignItems': 'center', 'justifyContent': 'center'}};
object2.container = {flex: 1};
const object4 = {};
object4.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.sm;
object2.guildIcon = object4;
object2.header = {'padding': 16, 'alignItems': 'center', 'justifyContent': 'center'};
object2.title = {'marginBottom': 8, 'textAlign': 'center'};
object2.description = {textAlign: 'center'};
const BACKGROUND_BASE_LOW = (importDefault(697) /* metro dependency 697: native */).colors.BACKGROUND_BASE_LOW;
object2.footerSafeAreaContainer = {'backgroundColor': null, 'position': 'absolute', 'bottom': 0, 'width': '100%',
backgroundColor: BACKGROUND_BASE_LOW};
object2.footerContainer = {'paddingHorizontal': 16, 'height': 110, 'justifyContent': 'center'};
object2.footerTitle = {'alignSelf': 'center', 'textAlign': 'center', 'marginBottom': 16};
const PX_12 = (importDefault(697) /* metro dependency 697: native */).space.PX_12;
object2.segmentedControl = {'paddingHorizontal': null, 'width': '100%', 'marginTop': 18, paddingHorizontal: PX_12};
const env0_12 = Reflect.apply(createStyles, createStylesModule, [object2]);
const env0_13 = value.memo(_fun75597);
const env0_14 = value.memo(_fun75599);
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/directory_channels/native/components/GuildDirectoryCreateOrAdd.tsx');
exports.default = GuildDirectoryCreateOrAdd;
}
function _fun75597({guild, directoryChannelId, start, end}) { // fn#75597, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9825:888, offset: 0x01db318e, size: 218 bytes, params: 2, frame: 22
const styles = useStyles();
const directoryEntry = (require(566) /* metro dependency 566: flux */).useStateFromStores([GuildDirectoryStore],
function() {
return GuildDirectoryStore.getDirectoryEntry(directoryChannelId, guild.id);
});
const TableRow = (require(6238) /* metro dependency 6238: TableRowNative */).TableRow;
return (
<TableRow
label={guild.name}
icon={((Component) => <Component style={styles.guildIcon} guild={guild} />)(importDefault(6819) /* metro dependency 6819: GuildIcon */)}
trailing={((Component) => <Component entry={directoryEntry} />)(importDefault(9641) /* metro dependency 9641: GuildDirectoryMoreMenu */)}
start={start}
end={end}
/>
);
}
function _fun75599({guild, handleItemPress, start, end}) { // fn#75599, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9825:1166, offset: 0x01db328f, size: 193 bytes, params: 2, frame: 22
const styles = useStyles();
const TableRow = (require(6238) /* metro dependency 6238: TableRowNative */).TableRow;
const tableRowProps = {onPress: function() {
return handleItemPress(guild);
}, label: guild.name,
icon: ((Component) => <Component style={styles.guildIcon} guild={guild} />)(importDefault(6819) /* metro dependency 6819: GuildIcon */)};
const TableRow2 = (require(6238) /* metro dependency 6238: TableRowNative */).TableRow;
const Arrow = TableRow2.Arrow;
tableRowProps.trailing = <Arrow />;
tableRowProps.start = start;
tableRowProps.end = end;
return <TableRow {...tableRowProps} />;
}
function GuildDirectoryCreateOrAddHeader({directoryGuildName, tabIndex, setTabIndex}) { // fn#75601, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9825:1419, offset: 0x01db3364, size: 519 bytes, params: 2, frame: 27
const styles = useStyles();
const segmentedControlStateNativeModule = require(8853) /* metro dependency 8853: SegmentedControlStateNative */;
const useSegmentedControlState = segmentedControlStateNativeModule.useSegmentedControlState;
const object2 = {pageWidth: 0, defaultIndex: tabIndex, onSetActiveIndex: setTabIndex};
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
const string = intl.string;
const FTe8HS = (require(1244) /* metro dependency 1244: indexNative */).t.FTe8HS;
const items3 = [Reflect.apply(string, intl, [FTe8HS])];
items3[1] = intl.string((require(1244) /* metro dependency 1244: indexNative */).t.epOumr);
object2.items = items3.map(function(a0) {
return {id: a0, label: a0, page: null};
});
const value3 = Reflect.apply(useSegmentedControlState, segmentedControlStateNativeModule, [object2]);
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
const items2 = [<Text style={styles.title} accessibilityRole="header" variant="heading-xl/extrabold" color="mobile-text-heading-primary">{intl.format((require(1244) /* metro dependency 1244: indexNative */).t['9SKJdF'],
{guildName: directoryGuildName})}</Text>];
items2[1] = <Text style={styles.description} variant="text-sm/medium" color="text-default">{intl.string((require(1244) /* metro dependency 1244: indexNative */).t.pYFZ9p)}</Text>;
const SegmentedControl = (require(9221) /* metro dependency 9221: SegmentedControlNative */).SegmentedControl;
items2[2] = <View style={styles.segmentedControl}><SegmentedControl state={value3} /></View>;
return (
<View style={styles.header}>
{items2}
</View>
);
}
function GuildDirectoryCreateOrAddFooter({handleFooterPress}) { // fn#75603, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9825:2171, offset: 0x01db3581, size: 331 bytes, params: 2, frame: 24
const styles = useStyles();
const bottom = (importDefault(1585) /* metro dependency 1585: useSafeAreaInsetsNative */)().bottom;
const items2 = [styles.footerSafeAreaContainer];
items2[1] = {paddingBottom: bottom};
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
let string = intl.string;
const text = <Text style={styles.footerTitle} variant="heading-lg/semibold" color="mobile-text-heading-primary">{Reflect.apply(string,
intl, [(require(1244) /* metro dependency 1244: indexNative */).t.pgCZRP])}</Text>;
const Button = (require(4578) /* metro dependency 4578: ButtonNative */).Button;
string = intl.string;
const WqJbLi = (require(1244) /* metro dependency 1244: indexNative */).t.WqJbLi;
return (
<View style={items2}>
<View style={styles.footerContainer}>
{text}
<Button
variant="secondary"
text={Reflect.apply(string, intl, [WqJbLi])}
onPress={handleFooterPress}
/>
</View>
</View>
);
}
function GuildDirectoryCreateOrAdd(a0) { // fn#75604, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9825:2714, offset: 0x01db36cc, size: 571 bytes, params: 2, frame: 25
const env0_0 = a0;
const styles = useStyles();
const value2 = (require(1484) /* metro dependency 1484: useNavigationNative */).useNavigation();
const binding = env0_4;
const value4 = (importDefault(6619) /* metro dependency 6619: useRefValue */)(binding.useRef(a0));
binding.useEffect(_fun75605);
const value5 = (importDefault(9647) /* metro dependency 9647: useAvailableAndAddedGuilds */)(value4.directoryGuildId,
value4.directoryChannelId);
const availableGuilds = value5.availableGuilds;
const env0_3 = availableGuilds;
const addedGuilds = value5.addedGuilds;
const loading = value5.loading;
const bottom = (importDefault(1585) /* metro dependency 1585: useSafeAreaInsetsNative */)().bottom;
const [property, env0_7] = env0_3(binding.useState(0), 2);
const value8 = binding.useMemo(_fun75606, [addedGuilds, availableGuilds, property]);
if (loading) {
return (
<View style={styles.loadingContainer}>
<ActivityIndicator />
</View>
);
} else {
const GuildDirectoryAddModalScreen = (require(9637) /* metro dependency 9637: GuildDirectoryAddModal */).GuildDirectoryAddModalScreen;
return (
<GuildDirectoryAddModalScreen>
<View style={styles.container}>
<FlatList
data={value8}
ListHeaderComponent={binding.useCallback(_fun75611, [property])}
renderItem={binding.useCallback(_fun75609, [value8.length, value2, property])}
contentContainerStyle={binding.useMemo(function() {
return {paddingHorizontal: 16, paddingBottom: 110 + bottom + 8};
}, [bottom])}
/>
<GuildDirectoryCreateOrAddFooter handleFooterPress={binding.useCallback(_fun75607, [value2])} />
</View>
</GuildDirectoryAddModalScreen>
);
}
}
function _fun75606() { // fn#75606, offset: 0x01db3907, size: 25 bytes, params: 1, frame: 3
return env0_6 === 0 ? availableGuilds : addedGuilds;
}
function _fun75607() { // fn#75607, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9825:3067, offset: 0x01db3920, size: 71 bytes, params: 1, frame: 14
const binding = env0_1;
const push = binding.push;
const TEMPLATES = GuildDirectoryCreate.TEMPLATES;
Reflect.apply(push, binding, [TEMPLATES, {directoryGuildName: env0_2.current.directoryGuildName,
onHubGuildInfoSet: onHubGuildInfoSet}]);
}
function _fun75609({item, index}) { // fn#75609, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9825:3354, offset: 0x01db39cd, size: 174 bytes, params: 2, frame: 16
var environment;
var r0;
var value2;
const object2 = {guild: item, start: index === 0};
var value;
object2.end = index === env0_8.length - 1;
if (env0_6 === 1) {
value2 = environment.__proto__;
r0 = ((Component) => <Component {...object2} {...{['directoryChannelId']: env0_2.current.directoryChannelId}} />)(env1_13);
} else {
value = environment.__proto__;
value = ((Component) => <Component {...object2} {...{['handleItemPress']: handleItemPress}} />)(env1_14);
r0 = value;
}
return r0;
}
function _fun75611() { // fn#75611, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9825:3691, offset: 0x01db3acb, size: 64 bytes, params: 1, frame: 14
return (
<GuildDirectoryCreateOrAddHeader
directoryGuildName={env0_2.current.directoryGuildName}
tabIndex={env0_6}
setTabIndex={env0_7}
/>
);
}
function onHubGuildInfoSet(a0, a1, a2) { // fn#75608, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9825:3158, offset: 0x01db3967, size: 102 bytes, params: 4, frame: 16
const binding = env1_1;
const push = binding.push;
const DESCRIPTION = GuildDirectoryCreate.DESCRIPTION;
const binding2 = env1_2;
Reflect.apply(push, binding, [DESCRIPTION, {createGuild: {name: a0, icon: a1, template: a2},
directoryChannelId: binding2.current.directoryChannelId,
directoryGuildName: binding2.current.directoryGuildName}]);
}
function handleItemPress(a0) { // fn#75610, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9825:3521, offset: 0x01db3a7b, size: 80 bytes, params: 2, frame: 15
const binding = env1_1;
const push = binding.push;
const DESCRIPTION = GuildDirectoryCreate.DESCRIPTION;
const binding2 = env1_2;
Reflect.apply(push, binding, [DESCRIPTION, {guild: a0, directoryChannelId: binding2.current.directoryChannelId,
directoryGuildName: binding2.current.directoryGuildName}]);
}
@@ -0,0 +1,101 @@
/* Metro module 9648; source: modules/directory_channels/native/components/GuildDirectoryCreateOrAddDescription.tsx; dependencies: [5, 31, 27, 33, 4501, 9649, 1418, 9650, 9636, 9637, 4573, 1244, 9645, 2] */
function _fun75710(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#75710, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9834:6, offset: 0x01db6332, size: 282 bytes, params: 8, frame: 20
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const env0_3 = importDefault(5) /* metro dependency 5 */;
importAll(31) /* metro dependency 31 */;
let value = require(27) /* metro dependency 27 */;
const env0_4 = value.View;
const env0_5 = value.ScrollView;
value = require(33) /* metro dependency 33 */;
const env0_6 = value.jsx;
const env0_7 = value.jsxs;
const env0_8 = (require(4501) /* metro dependency 4501: createStyles */).createStyles({container: {flex: 1},
title: {'marginBottom': 8, 'textAlign': 'center'}, description: {textAlign: 'center'},
header: {'alignItems': 'center', 'justifyContent': 'center', 'padding': 16}});
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/directory_channels/native/components/GuildDirectoryCreateOrAddDescription.tsx');
exports.default = GuildDirectoryCreateOrAddDescription;
}
function GuildDirectoryCreateOrAddDescription({directoryChannelId, directoryGuildName, guild, createGuild}) { // fn#75711, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9834:491, offset: 0x01db644c, size: 478 bytes, params: 2, frame: 31
const styles = useStyles();
const value2 = _fun75712();
const GuildDirectoryAddModalScreen = (require(9637) /* metro dependency 9637: GuildDirectoryAddModal */).GuildDirectoryAddModalScreen;
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
let string = intl.string;
const text = <Text style={styles.title} accessibilityRole="header" variant="heading-xl/extrabold" color="mobile-text-heading-primary">{Reflect.apply(string,
intl, [(require(1244) /* metro dependency 1244: indexNative */).t['5bQcoa']])}</Text>;
string = intl.string;
const Ie60Wc = (require(1244) /* metro dependency 1244: indexNative */).t.Ie60Wc;
const view = <View style={styles.header}>{text}<Text style={styles.description} variant="text-sm/medium" color="text-default">{Reflect.apply(string,
intl, [Ie60Wc])}</Text></View>;
const guildDirectoryEditDescriptionTemplate = importDefault(9645) /* metro dependency 9645: GuildDirectoryEditDescriptionTemplate */;
string = intl.string;
const H9jxS1 = (require(1244) /* metro dependency 1244: indexNative */).t.H9jxS1;
return (
<GuildDirectoryAddModalScreen>
<ScrollView style={styles.container} keyboardShouldPersistTaps="handled">
{view}
{((Component) => <Component onSubmit={value2} buttonLabel={Reflect.apply(string, intl,
[H9jxS1])} directoryChannelId={directoryChannelId} />)(guildDirectoryEditDescriptionTemplate)}
</ScrollView>
</GuildDirectoryAddModalScreen>
);
}
function _fun75712() { // fn#75712, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9834:616, offset: 0x01db662a, size: 36 bytes, params: 1, frame: 12
const env0_0 = env1_3(_fun75714);
return _fun75715;
}
function* _fun75714(a0, a1) { // fn#75714, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9834:636, offset: 0x01db6659, size: 278 bytes, params: 3, frame: 20
var binding;
var value8;
if (true) {
value = environment.__proto__.__proto__;
if (env2_3 == null) {
if (dependencyMap == null) {
return undefined;
}
value8 = environment.__proto__.__proto__.__proto__;
} else {
binding = env2_3;
var name = binding.name;
var icon = binding.icon;
var template = binding.template;
if (template == null) {
return undefined;
}
binding = env3_1;
var value4 = binding(env3_2[5]);
yield value4.createGuildFromTemplate(name, icon, template);
var value5 = undefined;
if (false) {
return value5;
}
binding = env3_0;
env2_2 = binding(env3_2[6]).fromGuild(value5);
if (dependencyMap == null) {
return undefined;
}
}
binding = env3_0;
var binding2 = env3_2;
var value9 = binding(binding2[7]);
var onAddDirectoryGuildEntry = value9.onAddDirectoryGuildEntry;
var object2 = {};
object2.directoryChannelId = require;
object2.directoryGuildName = importDefault;
object2.guild = dependencyMap;
object2.description = a0;
object2.category = a1;
object2.onClose = env3_1(binding2[8]).close;
yield Reflect.apply(onAddDirectoryGuildEntry, value9, [object2]);
if (false) {
return undefined;
}
}
}
@@ -0,0 +1,87 @@
/* Metro module 9643; source: modules/directory_channels/native/components/GuildDirectoryEditDescriptionModal.tsx; dependencies: [5, 31, 27, 33, 4501, 5314, 9644, 9642, 6618, 4573, 1244, 9645, 5282, 5280, 2] */
function _fun75648(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#75648, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9829:6, offset: 0x01db4afa, size: 337 bytes, params: 8, frame: 21
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const env0_4 = importDefault(5) /* metro dependency 5 */;
importAll(31) /* metro dependency 31 */;
let value = require(27) /* metro dependency 27 */;
const env0_5 = value.View;
const env0_6 = value.ScrollView;
value = require(33) /* metro dependency 33 */;
const env0_7 = value.jsx;
const env0_8 = value.jsxs;
value = require(4501) /* metro dependency 4501: createStyles */;
const createStyles = value.createStyles;
const NAV_BAR_HEIGHT = (require(5314) /* metro dependency 5314: NavigatorConstantsNative */).NAV_BAR_HEIGHT;
const env0_9 = Reflect.apply(createStyles, value, [{safeArea: {marginTop: NAV_BAR_HEIGHT, flex: 1},
container: {flex: 1}, title: {'marginBottom': 8, 'textAlign': 'center'}, header: {'alignItems': 'center',
'justifyContent': 'center', 'padding': 16}}]);
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/directory_channels/native/components/GuildDirectoryEditDescriptionModal.tsx');
exports.default = GuildDirectoryEditDescriptionModal;
}
function GuildDirectoryEditDescription({entry}) { // fn#75649, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9829:379, offset: 0x01db4c4b, size: 393 bytes, params: 2, frame: 33
const styles = useStyles();
const value2 = _fun75650();
const SafeAreaPaddingView = (require(6618) /* metro dependency 6618: SafeAreaView */).SafeAreaPaddingView;
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
return (
<SafeAreaPaddingView top style={styles.safeArea}>
<ScrollView style={styles.container} keyboardShouldPersistTaps="handled">
<View style={styles.header}>
<Text
style={styles.title}
accessibilityRole="header"
variant="heading-xl/extrabold"
color="mobile-text-heading-primary"
>
{intl.format((require(1244) /* metro dependency 1244: indexNative */).t.w9tsNk,
{guildName: entry.name})}
</Text>
</View>
{((Component) => <Component onSubmit={value2} buttonLabel={intl.string((require(1244) /* metro dependency 1244: indexNative */).t['R3BPH+'])} entry={entry} directoryChannelId={entry.channelId} />)(importDefault(9645) /* metro dependency 9645: GuildDirectoryEditDescriptionTemplate */)}
</ScrollView>
</SafeAreaPaddingView>
);
}
function getScreens_75654(a0) { // fn#75654, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9829:1124, offset: 0x01db4e78, size: 118 bytes, params: 2, frame: 18
const env0_0 = a0;
const binding = env0_10;
const object = {fullscreen: true};
object.headerLeft = (require(5282) /* metro dependency 5282: NavigatorHeaderNative */).getHeaderCloseButton((importDefault(9642) /* metro dependency 9642: GuildDirectoryEditDescriptionModalActionCreators */).close);
object.headerTitle = function() {
return null;
};
object.render = render_75656;
return {[binding]: object};
}
function GuildDirectoryEditDescriptionModal(a0) { // fn#75657, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9829:1431, offset: 0x01db4f13, size: 71 bytes, params: 2, frame: 16
const Navigator = (require(5280) /* metro dependency 5280: NavigatorNative */).Navigator;
return <Navigator screens={getScreens_75654(a0)} initialRouteName={env0_10} />;
}
function _fun75650() { // fn#75650, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9829:441, offset: 0x01db4dd4, size: 36 bytes, params: 1, frame: 12
const env0_0 = env1_4(_fun75652);
return _fun75653;
}
function getScreens_75654Render() { // fn#75656, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9829:1257, owner: getScreens_75654.render, offset: 0x01db4eee, size: 37 bytes, params: 1, frame: 13
return <GuildDirectoryEditDescription {...env0_0} />;
}
function* _fun75652(a0, a1) { // fn#75652, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9829:461, offset: 0x01db4e03, size: 117 bytes, params: 3, frame: 20
if (true) {
value = environment.__proto__.__proto__.__proto__;
var value3 = env3_2(env3_3[6]);
yield value3.updateDirectoryEntry(require.channelId, require.guildId, a0, a1);
if (false) {
return undefined;
}
env3_1(env3_3[7]).close();
}
}
@@ -0,0 +1,23 @@
/* Metro module 9642; source: modules/directory_channels/native/components/GuildDirectoryEditDescriptionModalActionCreators.tsx; dependencies: [5080, 9643, 1962, 2] */
function _fun75645(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#75645, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9828:6, offset: 0x01db4a03, size: 122 bytes, params: 8, frame: 18
var object2;
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
object2 = {open: open_75646, close: close_75647};
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/directory_channels/native/components/GuildDirectoryEditDescriptionModalActionCreators.tsx');
exports.default = object2;
}
function open_75646(a0) { // fn#75646, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9828:146, offset: 0x01db4a7d, size: 82 bytes, params: 2, frame: 16
const defaultImport = importDefault(dependencyMap[0]);
const pushLazy = defaultImport.pushLazy;
let value = require(dependencyMap[2]);
value = value(dependencyMap[1], dependencyMap.paths);
Reflect.apply(pushLazy, defaultImport, [value, a0, 'GUILD_DIRECTORY_EDIT_DESCRIPTION_MODAL_KEY']);
}
function close_75647() { // fn#75647, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9828:199, offset: 0x01db4acf, size: 43 bytes, params: 1, frame: 12
(importDefault(5080) /* metro dependency 5080: ModalActionCreators */).popWithKey('GUILD_DIRECTORY_EDIT_DESCRIPTION_MODAL_KEY');
}
@@ -0,0 +1,245 @@
/* Metro module 9645; source: modules/directory_channels/native/components/GuildDirectoryEditDescriptionTemplate.tsx; dependencies: [5, 57, 31, 27, 9640, 9633, 33, 4501, 566, 4132, 7681, 1244, 7988, 7987, 4578, 2] */
function _fun75686(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#75686, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9831:6, offset: 0x01db58cd, size: 308 bytes, params: 8, frame: 19
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const env0_3 = importDefault(5) /* metro dependency 5 */;
const env0_4 = importDefault(57) /* metro dependency 57 */;
const env0_5 = importAll(31) /* metro dependency 31 */;
let value = require(27) /* metro dependency 27 */;
const env0_6 = value.View;
const env0_7 = value.Keyboard;
const guildDirectoryStore = importDefault(9640) /* metro dependency 9640: GuildDirectoryStore */;
value = require(9633) /* metro dependency 9633: GuildDirectoryConstants */;
const env0_9 = value.DirectoryEntryCategories;
const env0_10 = value.getHubCategories;
value = require(33) /* metro dependency 33 */;
const env0_11 = value.jsx;
const env0_12 = value.jsxs;
const env0_13 = (require(4501) /* metro dependency 4501: createStyles */).createStyles({container: {'marginHorizontal': 16,
'gap': 24}});
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/directory_channels/native/components/GuildDirectoryEditDescriptionTemplate.tsx');
exports.default = _default_75687;
}
function _default_75687({onSubmit, buttonLabel, entry, directoryChannelId}) { // fn#75687, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9831:331, offset: 0x01db5a01, size: 864 bytes, params: 2, frame: 35
const env0_4 = undefined;
let env0_5 = undefined;
const styles = useStyles();
const hubCategories = getHubCategories(directoryChannelId);
const currentCategoryId = (require(566) /* metro dependency 566: flux */).useStateFromStores([GuildDirectoryStore],
function() {
return GuildDirectoryStore.getCurrentCategoryId(directoryChannelId);
});
let binding = env0_5;
let useState = binding.useState;
const value5 = env0_4(Reflect.apply(useState, binding, [entry?.primaryCategoryId ?? currentCategoryId]), 2);
const property = value5[0];
const env0_3 = value5[1];
const value7 = env0_5.useState(entry?.description ?? '');
binding = env0_4;
const value8 = binding(value7, 2);
const property2 = value8[0];
const property3 = value8[1];
const binding2 = env0_5;
useState = binding2.useState;
const value9 = binding(Reflect.apply(useState, binding2, [false]), 2);
const property4 = value9[0];
env0_5 = value9[1];
useState = binding2.useState;
const value10 = binding(Reflect.apply(useState, binding2, [null]), 2);
const property5 = value10[0];
const env0_6 = value10[1];
const value11 = _fun75689();
const TextArea = (require(7681) /* metro dependency 7681: TextAreaNative */).TextArea;
const object = {};
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
let string = intl.string;
const FFFAGt = (require(1244) /* metro dependency 1244: indexNative */).t.FFFAGt;
object.label = Reflect.apply(string, intl, [FFFAGt]);
object.description = intl.string((require(1244) /* metro dependency 1244: indexNative */).t['/zbXqm']);
object.value = property2;
object.onChange = property3;
string = intl.string;
const VzuITC = (require(1244) /* metro dependency 1244: indexNative */).t.VzuITC;
object.placeholder = Reflect.apply(string, intl, [VzuITC]);
object.maxLength = 200;
object.status = property5 != null ? 'error' : 'default';
object.errorMessage = property5?.getAnyErrorMessage();
object.submitBehavior = 'blurAndSubmit';
object.returnKeyType = 'done';
const items2 = [<TextArea {...object} />];
const TableRadioGroup = (require(7988) /* metro dependency 7988: TableRadioGroupNative */).TableRadioGroup;
string = intl.string;
const Olo8FB = (require(1244) /* metro dependency 1244: indexNative */).t.Olo8FB;
items2[1] = <TableRadioGroup title={Reflect.apply(string, intl,
[Olo8FB])} defaultValue={property} onChange={onChange_75693} hasIcons={false}>{hubCategories.map(_fun75694)}</TableRadioGroup>;
const Button = (require(4578) /* metro dependency 4578: ButtonNative */).Button;
items2[2] = <Button disabled={property2.length === 0 || property === DirectoryEntryCategories.ALL} onPress={value11} loading={property4} text={buttonLabel} size="lg" />;
return (
<View style={styles.container}>
{items2}
</View>
);
}
function _fun75689() { // fn#75689, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9831:729, offset: 0x01db5d7c, size: 36 bytes, params: 1, frame: 12
const env0_0 = env1_3(_fun75691);
return _fun75692;
}
function _default_75687OnChange(a0) { // fn#75693, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9831:1366, owner: _default_75687.onChange, offset: 0x01db5e4a, size: 36 bytes, params: 2, frame: 11
Keyboard.dismiss();
env0_3(a0);
}
function _fun75694(a0) { // fn#75694, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9831:1416, offset: 0x01db5e6e, size: 72 bytes, params: 2, frame: 16
const value = environment.__proto__;
const TableRadioRow = (require(7987) /* metro dependency 7987: TableRadioRowNative */).TableRadioRow;
return (
<TableRadioRow
label={a0.label}
value={a0.value}
key={a0.value}
/>
);
}
function* _fun75691() { // fn#75691, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9831:749, offset: 0x01db5dab, size: 159 bytes, params: 1, frame: 17
var value;
var value2;
var binding;
var moduleValue;
var value3;
var value4;
var error;
var value5;
var binding2;
var property;
var value6;
var prototype;
var value8;
var value9;
exceptionLanding26: while (true) {
value = undefined;
value2 = false;
if (value2) {
return value;
}
value = environment.__proto__.__proto__;
env2_5(true);
reducibleJoin3: while (true) {
reduciblePort25: while (true) {
exceptionLanding11: while (true) {
try {
try {
} catch (error) {
break exceptionLanding11;
}
} catch (error) {
break exceptionLanding26;
}
break reducibleJoin3;
}
try {
} catch (error) {
break exceptionLanding26;
}
value5 = environment.__proto__.__proto__.__proto__;
try {
binding = env3_1;
} catch (error) {
break exceptionLanding26;
}
try {
binding2 = env3_2;
} catch (error) {
break exceptionLanding26;
}
try {
property = binding2[9];
} catch (error) {
break exceptionLanding26;
}
try {
value6 = binding(property);
} catch (error) {
break exceptionLanding26;
}
try {
prototype = value6.prototype;
} catch (error) {
break exceptionLanding26;
}
try {
} catch (error) {
break exceptionLanding26;
}
try {
value8 = new value6();
} catch (error) {
break exceptionLanding26;
}
try {
value9 = value8 instanceof Object ? value8 : undefined;
} catch (error) {
break exceptionLanding26;
}
try {
View(value9);
} catch (error) {
break exceptionLanding26;
}
break reduciblePort25;
}
env2_5(false);
return undefined;
}
try {
try {
binding = env2_4;
} catch (error) {
break exceptionLanding11;
}
} catch (error) {
break exceptionLanding26;
}
try {
try {
} catch (error) {
break exceptionLanding11;
}
} catch (error) {
break exceptionLanding26;
}
try {
try {
moduleValue = require(binding, dependencyMap);
} catch (error) {
break exceptionLanding11;
}
} catch (error) {
break exceptionLanding26;
}
yield moduleValue;
try {
try {
value3 = undefined;
value4 = false;
} catch (error) {
break exceptionLanding11;
}
} catch (error) {
break exceptionLanding26;
}
if (value4) {
env2_5(false);
return value3;
}
env2_5(false);
return undefined;
}
env2_5(false);
throw error;
}
@@ -0,0 +1,88 @@
/* Metro module 12050; source: modules/directory_channels/native/components/GuildDirectoryEmpty.tsx; dependencies: [31, 27, 1935, 661, 33, 4501, 697, 1585, 566, 9635, 12051, 1305, 1244, 4573, 7972, 9636, 12052, 9151, 12053, 2] */
function _fun92575(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#92575, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12236:6, offset: 0x0209028b, size: 402 bytes, params: 8, frame: 23
var object2;
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
importAll(31) /* metro dependency 31 */;
let value = require(27) /* metro dependency 27 */;
const env0_3 = value.Image;
const env0_4 = value.ScrollView;
const guildChannelStore = importDefault(1935) /* metro dependency 1935: GuildChannelStore */;
value = require(661) /* metro dependency 661: Constants */;
const Fonts = value.Fonts;
const env0_6 = value.InstantInviteSources;
value = require(33) /* metro dependency 33 */;
const env0_7 = value.jsx;
const env0_8 = value.jsxs;
value = require(4501) /* metro dependency 4501: createStyles */;
const createStyles = value.createStyles;
object2 = {};
const BACKGROUND_BASE_LOW = (importDefault(697) /* metro dependency 697: native */).colors.BACKGROUND_BASE_LOW;
object2.container = {'flex': 1, 'justifyContent': 'flex-end', 'padding': 16, backgroundColor: BACKGROUND_BASE_LOW};
object2.header = {'marginBottom': 16, 'alignSelf': 'center'};
const object4 = {'fontFamily': null, 'color': null, 'fontSize': 24, 'textAlign': 'center', 'marginBottom': 8,
'alignSelf': 'center'};
const PRIMARY_BOLD = Fonts.PRIMARY_BOLD;
object4.fontFamily = PRIMARY_BOLD;
const MOBILE_TEXT_HEADING_PRIMARY = (importDefault(697) /* metro dependency 697: native */).colors.MOBILE_TEXT_HEADING_PRIMARY;
object4.color = MOBILE_TEXT_HEADING_PRIMARY;
object2.title = object4;
object2.description = {'textAlign': 'center', 'alignSelf': 'center', 'marginBottom': 24};
object2.ctaContainer = {marginBottom: 8};
const env0_9 = Reflect.apply(createStyles, value, [object2]);
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/directory_channels/native/components/GuildDirectoryEmpty.tsx');
exports.default = _default_92576;
}
function _default_92576({guild, channel}) { // fn#92576, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12236:653, offset: 0x0209041d, size: 733 bytes, params: 2, frame: 30
var r5;
const FormCTA = (require(7972) /* metro dependency 7972: native */).FormCTA;
const styles = useStyles();
const bottom = (importDefault(1585) /* metro dependency 1585: useSafeAreaInsetsNative */)().bottom;
const env0_2 = (require(566) /* metro dependency 566: flux */).useStateFromStores([GuildChannelStore], function() {
return GuildChannelStore.getChannels(guild.id);
});
const value2 = (require(9635) /* metro dependency 9635: useCanManageGuildDirectoryEntry */).useCanCreateOrAddGuildInDirectory(channel);
const items3 = [styles.container];
items3[1] = {paddingBottom: bottom + 16};
const items2 = [<Image source={importDefault(12051) /* metro dependency 12051 */} style={styles.header} />];
const LegacyText = (require(1305) /* metro dependency 1305: native */).LegacyText;
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
items2[1] = <LegacyText style={styles.title} accessibilityRole="header">{intl.format((require(1244) /* metro dependency 1244: indexNative */).t.vyvrpC,
{guildName: guild.name})}</LegacyText>;
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
let string = intl.string;
const WypE0i = (require(1244) /* metro dependency 1244: indexNative */).t.WypE0i;
items2[2] = <Text style={styles.description} variant="text-sm/medium" color="text-default">{Reflect.apply(string,
intl, [WypE0i])}</Text>;
if (value2) {
r5 = <FormCTA style={styles.ctaContainer} onPress={onPress_92578} iconSource={importDefault(12052) /* metro dependency 12052 */} title={intl.string((require(1244) /* metro dependency 1244: indexNative */).t.hyK15i)} />;
} else {
r5 = null;
}
items2[3] = r5;
const formCTAProps2 = {style: styles.ctaContainer, onPress: function() {
return require(dependencyMap[17]).handleOpenInviteActionsheet(guild, channel.id, channels,
InstantInviteSources.HUB_EMPTY_STATE);
}, iconSource: importDefault(12053) /* metro dependency 12053 */};
string = intl.string;
const L4bwJ9 = (require(1244) /* metro dependency 1244: indexNative */).t.L4bwJ9;
formCTAProps2.title = Reflect.apply(string, intl, [L4bwJ9]);
items2[4] = <FormCTA {...formCTAProps2} />;
return (
<ScrollView contentContainerStyle={items3}>
{items2}
</ScrollView>
);
}
function _default_92576OnPress() { // fn#92578, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12236:1249, owner: _default_92576.onPress, offset: 0x020906fa, size: 81 bytes, params: 1, frame: 14
let value = environment.__proto__;
value = importDefault(9636) /* metro dependency 9636: GuildDirectoryAddModalActionCreators */;
const open = value.open;
const guildBinding = guild;
return Reflect.apply(open, value, [{directoryGuildName: guildBinding.name, directoryGuildId: guildBinding.id,
directoryChannelId: channel.id}]);
}
@@ -0,0 +1,123 @@
/* Metro module 9641; source: modules/directory_channels/native/components/GuildDirectoryMoreMenu.tsx; dependencies: [31, 33, 9635, 9642, 4496, 1244, 9644, 1305, 8153, 9646, 4071, 8665, 8811, 8341, 8638, 697, 2] */
function _fun75637(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#75637, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9827:6, offset: 0x01db44ab, size: 142 bytes, params: 8, frame: 19
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
importAll(31) /* metro dependency 31 */;
const env0_4 = (require(33) /* metro dependency 33 */).jsx;
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/directory_channels/native/components/GuildDirectoryMoreMenu.tsx');
exports.default = _default_75638;
}
function _default_75638({entry}) { // fn#75638, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9827:127, offset: 0x01db4539, size: 479 bytes, params: 2, frame: 22
var push;
var object4;
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
var object5;
var object6;
const {isEntryAdmin, canEdit,
canRemove} = (importDefault(9635) /* metro dependency 9635: useCanManageGuildDirectoryEntry */)(entry);
const items2 = [];
if (canEdit) {
push = items2.push;
object4 = {};
object4.label = intl.string((require(1244) /* metro dependency 1244: indexNative */).t.XnuOvN);
object4.IconComponent = (require(9646) /* metro dependency 9646: PencilIcon */).PencilIcon;
object4.action = action_75639;
Reflect.apply(push, items2, [object4]);
}
if (canRemove) {
push = items2.push;
object5 = {};
object5.label = intl.string((require(1244) /* metro dependency 1244: indexNative */).t.KUxYWH);
object5.IconComponent = (require(4071) /* metro dependency 4071: TrashIcon */).TrashIcon;
object5.variant = 'destructive';
object5.action = action_75640;
Reflect.apply(push, items2, [object5]);
}
if (!isEntryAdmin) {
push = items2.push;
object6 = {};
object6.label = intl.string((require(1244) /* metro dependency 1244: indexNative */).t.Aen9eh);
object6.IconComponent = (require(8665) /* metro dependency 8665: FlagIcon */).FlagIcon;
object6.variant = 'destructive';
object6.action = action_75643;
Reflect.apply(push, items2, [object6]);
}
if (items2.length === 0) {
return null;
} else {
const ContextMenu = (require(8811) /* metro dependency 8811: ContextMenuNative */).ContextMenu;
return (
<ContextMenu items={items2}>
{children_75644}
</ContextMenu>
);
}
}
function _default_75638Action() { // fn#75639, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9827:308, owner: _default_75638.action, offset: 0x01db4718, size: 52 bytes, params: 1, frame: 13
const value = environment.__proto__;
(importDefault(9642) /* metro dependency 9642: GuildDirectoryEditDescriptionModalActionCreators */).open({entry: entry});
}
function _default_75638Action_75640() { // fn#75640, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9827:457, owner: _default_75638.action, offset: 0x01db474c, size: 318 bytes, params: 1, frame: 22
const defaultImport = importDefault(4496) /* metro dependency 4496: AlertActionCreators */;
const show = defaultImport.show;
const object2 = {};
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
let string = intl.string;
const t = (require(1244) /* metro dependency 1244: indexNative */).t;
const KUxYWH = t.KUxYWH;
object2.title = Reflect.apply(string, intl, [KUxYWH]);
object2.body = intl.formatToPlainString(t['/5y0uV'], {guildName: entry.name});
object2.onConfirm = onConfirm_75641;
const ButtonColors = (require(1305) /* metro dependency 1305: native */).ButtonColors;
const RED = ButtonColors.RED;
object2.confirmColor = RED;
string = intl.string;
const N86XcP = t.N86XcP;
object2.confirmText = Reflect.apply(string, intl, [N86XcP]);
object2.cancelText = intl.string(t['ETE/oC']);
object2.onCancel = onCancel_75642;
Reflect.apply(show, defaultImport, [object2]);
}
function _default_75638Action_75643() { // fn#75643, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9827:963, owner: _default_75638.action, offset: 0x01db48e7, size: 45 bytes, params: 1, frame: 12
let value = environment.__proto__;
value = require(8153) /* metro dependency 8153: ReportModals */;
value.showReportModalForGuildDirectoryEntry(entry);
}
function _default_75638Children(a0) { // fn#75644, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9827:1079, owner: _default_75638.children, offset: 0x01db4914, size: 239 bytes, params: 2, frame: 21
const ref = a0.ref;
const value = Object.create(null);
value.ref = 0;
const value2 = copyDataProperties({}, a0, value, undefined);
const IconButton = (require(8341) /* metro dependency 8341: IconButtonNative */).IconButton;
const iconButtonProps = {ref: ref, ...value2};
iconButtonProps['size'] = 'sm';
iconButtonProps['variant'] = 'secondary';
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
const string = intl.string;
const PdRCRg = (require(1244) /* metro dependency 1244: indexNative */).t.PdRCRg;
iconButtonProps['accessibilityLabel'] = Reflect.apply(string, intl, [PdRCRg]);
const MoreHorizontalIcon = (require(8638) /* metro dependency 8638: MoreHorizontalIcon */).MoreHorizontalIcon;
const WHITE = (importDefault(697) /* metro dependency 697: native */).colors.WHITE;
iconButtonProps['icon'] = <MoreHorizontalIcon size="sm" color={WHITE} />;
return <IconButton {...iconButtonProps} />;
}
function actionOnConfirm() { // fn#75641, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9827:608, owner: _default_75638.action.onConfirm, offset: 0x01db488a, size: 56 bytes, params: 1, frame: 14
let value = environment.__proto__.__proto__;
value = importAll(9644) /* metro dependency 9644: GuildDirectoryActionCreators */;
const removeDirectoryGuildEntry = value.removeDirectoryGuildEntry;
const entryBinding = entry;
Reflect.apply(removeDirectoryGuildEntry, value, [entryBinding.channelId, entryBinding.guildId]);
}
function actionOnCancel() { // fn#75642, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9827:820, owner: _default_75638.action.onCancel, offset: 0x01db48c2, size: 37 bytes, params: 1, frame: 11
const value = environment.__proto__.__proto__;
(importDefault(4496) /* metro dependency 4496: AlertActionCreators */).close();
}
@@ -0,0 +1,337 @@
/* Metro module 11979; source: modules/directory_channels/native/components/GuildDirectoryNicknameUpsellModal.tsx; dependencies: [5, 57, 31, 27, 1867, 11968, 33, 4501, 5314, 697, 566, 5463, 6614, 4131, 6819, 4573, 1244, 8967, 1305, 4578, 11969, 11978, 5282, 5280, 6518, 2] */
function _fun91952(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#91952, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12165:6, offset: 0x02077a78, size: 512 bytes, params: 8, frame: 23
var object2;
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const env0_3 = importDefault(5) /* metro dependency 5 */;
const env0_4 = importDefault(57) /* metro dependency 57 */;
const env0_5 = importAll(31) /* metro dependency 31 */;
let value = require(27) /* metro dependency 27 */;
const env0_6 = value.View;
const env0_7 = value.ScrollView;
const guildStore = importDefault(1867) /* metro dependency 1867: GuildStore */;
const env0_9 = (require(11968) /* metro dependency 11968: Constants */).GuildPrompts;
value = require(33) /* metro dependency 33 */;
const env0_10 = value.jsx;
const env0_11 = value.jsxs;
value = require(4501) /* metro dependency 4501: createStyles */;
const createStyles = value.createStyles;
object2 = {};
const NAV_BAR_HEIGHT = (require(5314) /* metro dependency 5314: NavigatorConstantsNative */).NAV_BAR_HEIGHT;
object2.container = {'flex': 1, 'flexGrow': 2, marginTop: NAV_BAR_HEIGHT};
object2.guildIcon = {'alignSelf': 'center', 'marginTop': 16};
object2.title = {'marginBottom': 8, 'textAlign': 'center'};
object2.description = {textAlign: 'center'};
object2.header = {'alignItems': 'center', 'justifyContent': 'center', 'padding': 16};
object2.input = {marginHorizontal: 16};
const object3 = {};
object3.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.lg;
object2.redesignTextInput = object3;
const PX_24 = (importDefault(697) /* metro dependency 697: native */).space.PX_24;
object2.redesignGrowSpacing = {flexGrow: 2, minHeight: PX_24};
const PX_16 = (importDefault(697) /* metro dependency 697: native */).space.PX_16;
object2.redesignButtonContainer = {paddingHorizontal: PX_16};
const env0_12 = Reflect.apply(createStyles, value, [object2]);
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/directory_channels/native/components/GuildDirectoryNicknameUpsellModal.tsx');
exports.default = GuildDirectoryNicknameUpsellModal;
}
function GuildDirectoryNicknameUpsell({guildId, handleClose}) { // fn#91953, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12165:697, offset: 0x02077c78, size: 1081 bytes, params: 2, frame: 37
const styles = useStyles();
const guild = (require(566) /* metro dependency 566: flux */).useStateFromStores([GuildStore], function() {
return GuildStore.getGuild(guildId);
});
const insets = (importDefault(5463) /* metro dependency 5463: useSafeAreaInsetsKeyboardAwareNative */)().insets;
const [property, env0_2] = env0_4(env0_5.useState(null), 2);
const [property2, property3] = env0_4(env0_5.useState(''), 2);
const value7 = env0_5.useRef(null);
const value8 = _fun91955();
const items3 = [styles.container];
const bottom = insets.bottom;
const PX_16 = (importDefault(697) /* metro dependency 697: native */).space.PX_16;
items3[1] = {paddingBottom: bottom + PX_16, paddingTop: insets.top};
const GuildIcon = importDefault(6819) /* metro dependency 6819: GuildIcon */;
const GuildIconSizes = (require(6819) /* metro dependency 6819: GuildIcon */).GuildIconSizes;
const XLARGE = GuildIconSizes.XLARGE;
const items2 = [<GuildIcon style={styles.guildIcon} guild={guild} size={XLARGE} />];
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
const text = <Text style={styles.title} accessibilityRole="header" variant="heading-xl/extrabold" color="mobile-text-heading-primary">{intl.format((require(1244) /* metro dependency 1244: indexNative */).t['d+6kzl'],
{guildName: guild?.name})}</Text>;
let string = intl.string;
items2[1] = <View style={styles.header}>{text}<Text style={styles.description} variant="text-sm/medium" color="text-default">{Reflect.apply(string,
intl, [(require(1244) /* metro dependency 1244: indexNative */).t.b3L8yx])}</Text></View>;
const FreeFormInputGroup = importDefault(8967) /* metro dependency 8967: FreeFormInputGroup */;
const freeFormInputGroupProps = {label: intl.string((require(1244) /* metro dependency 1244: indexNative */).t.ilDlmW)};
string = intl.string;
const RfWvWI = (require(1244) /* metro dependency 1244: indexNative */).t.RfWvWI;
freeFormInputGroupProps.placeholder = Reflect.apply(string, intl, [RfWvWI]);
freeFormInputGroupProps.value = property2;
freeFormInputGroupProps.onChangeText = property3;
freeFormInputGroupProps.style = styles.input;
freeFormInputGroupProps.textStyle = styles.redesignTextInput;
const ClearButtonVisibility = (require(1305) /* metro dependency 1305: native */).ClearButtonVisibility;
const WITH_CONTENT = ClearButtonVisibility.WITH_CONTENT;
freeFormInputGroupProps.clearButtonVisibility = WITH_CONTENT;
freeFormInputGroupProps.error = property?.getFirstFieldErrorMessage('name');
freeFormInputGroupProps.onFocus = function() {
global.setTimeout(_fun91960, 100);
};
freeFormInputGroupProps.onBlur = function() {
global.setTimeout(_fun91962, 100);
};
items2[2] = <FreeFormInputGroup {...freeFormInputGroupProps} />;
items2[3] = <View style={styles.redesignGrowSpacing} />;
const Button = (require(4578) /* metro dependency 4578: ButtonNative */).Button;
string = intl.string;
const Np4yXU = (require(1244) /* metro dependency 1244: indexNative */).t.Np4yXU;
items2[4] = <View style={styles.redesignButtonContainer}><Button size="lg" text={Reflect.apply(string, intl,
[Np4yXU])} onPress={value8} /></View>;
return (
<ScrollView ref={value7} contentContainerStyle={items3}>
{items2}
</ScrollView>
);
}
function GuildDirectoryNicknameUpsellModal(a0) { // fn#91963, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12165:2510, offset: 0x020781e4, size: 98 bytes, params: 2, frame: 17
const env0_0 = a0;
const Navigator = (require(5280) /* metro dependency 5280: NavigatorNative */).Navigator;
return (
<Navigator
screens={(importDefault(6518) /* metro dependency 6518: useInitialValue */)(_fun91964)}
initialRouteName="UPSELL_SCREEN_KEY"
/>
);
}
function _fun91955() { // fn#91955, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12165:948, offset: 0x020780b1, size: 36 bytes, params: 1, frame: 12
const env0_0 = env1_3(_fun91957);
return _fun91958;
}
function GuildDirectoryNicknameUpsellOnFocus() { // fn#91959, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12165:2030, owner: GuildDirectoryNicknameUpsell.onFocus, offset: 0x02078188, size: 30 bytes, params: 1, frame: 13
global.setTimeout(_fun91960, 100);
}
function GuildDirectoryNicknameUpsellOnBlur() { // fn#91961, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12165:2110, owner: GuildDirectoryNicknameUpsell.onBlur, offset: 0x020781c6, size: 30 bytes, params: 1, frame: 13
global.setTimeout(_fun91962, 100);
}
function _fun91964() { // fn#91964, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12165:2603, offset: 0x02078246, size: 25 bytes, params: 1, frame: 11
return getScreens_91965(env0_0);
}
function* _fun91957() { // fn#91957, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12165:968, offset: 0x020780e0, size: 168 bytes, params: 1, frame: 17
var binding;
var binding2;
var property;
var value4;
var updateGuildSelfMember;
var object2;
var value5;
var value6;
var value7;
var error;
var APIError;
var prototype;
var aPIError;
if (true) {
value = environment.__proto__.__proto__;
dependencyMap(null);
try {
binding = env3_0;
} catch (error) {
binding = env3_0;
APIError = binding(env3_2[13]).APIError;
prototype = APIError.prototype;
value = Object.create(prototype, {constructor: {value: APIError}});
aPIError = new APIError();
value = aPIError instanceof Object ? aPIError : value;
dependencyMap(value);
return undefined;
}
try {
binding2 = env3_2;
} catch (error) {
binding = env3_0;
APIError = binding(env3_2[13]).APIError;
prototype = APIError.prototype;
value = Object.create(prototype, {constructor: {value: APIError}});
aPIError = new APIError();
value = aPIError instanceof Object ? aPIError : value;
dependencyMap(value);
return undefined;
}
try {
property = binding2[12];
} catch (error) {
binding = env3_0;
APIError = binding(env3_2[13]).APIError;
prototype = APIError.prototype;
value = Object.create(prototype, {constructor: {value: APIError}});
aPIError = new APIError();
value = aPIError instanceof Object ? aPIError : value;
dependencyMap(value);
return undefined;
}
try {
value4 = binding(property);
} catch (error) {
binding = env3_0;
APIError = binding(env3_2[13]).APIError;
prototype = APIError.prototype;
value = Object.create(prototype, {constructor: {value: APIError}});
aPIError = new APIError();
value = aPIError instanceof Object ? aPIError : value;
dependencyMap(value);
return undefined;
}
try {
updateGuildSelfMember = value4.updateGuildSelfMember;
} catch (error) {
binding = env3_0;
APIError = binding(env3_2[13]).APIError;
prototype = APIError.prototype;
value = Object.create(prototype, {constructor: {value: APIError}});
aPIError = new APIError();
value = aPIError instanceof Object ? aPIError : value;
dependencyMap(value);
return undefined;
}
try {
} catch (error) {
binding = env3_0;
APIError = binding(env3_2[13]).APIError;
prototype = APIError.prototype;
value = Object.create(prototype, {constructor: {value: APIError}});
aPIError = new APIError();
value = aPIError instanceof Object ? aPIError : value;
dependencyMap(value);
return undefined;
}
try {
object2 = {};
} catch (error) {
binding = env3_0;
APIError = binding(env3_2[13]).APIError;
prototype = APIError.prototype;
value = Object.create(prototype, {constructor: {value: APIError}});
aPIError = new APIError();
value = aPIError instanceof Object ? aPIError : value;
dependencyMap(value);
return undefined;
}
try {
binding = env2_3;
} catch (error) {
binding = env3_0;
APIError = binding(env3_2[13]).APIError;
prototype = APIError.prototype;
value = Object.create(prototype, {constructor: {value: APIError}});
aPIError = new APIError();
value = aPIError instanceof Object ? aPIError : value;
dependencyMap(value);
return undefined;
}
try {
object2.nick = binding;
} catch (error) {
binding = env3_0;
APIError = binding(env3_2[13]).APIError;
prototype = APIError.prototype;
value = Object.create(prototype, {constructor: {value: APIError}});
aPIError = new APIError();
value = aPIError instanceof Object ? aPIError : value;
dependencyMap(value);
return undefined;
}
try {
value5 = Reflect.apply(updateGuildSelfMember, value4, [require, object2]);
} catch (error) {
binding = env3_0;
APIError = binding(env3_2[13]).APIError;
prototype = APIError.prototype;
value = Object.create(prototype, {constructor: {value: APIError}});
aPIError = new APIError();
value = aPIError instanceof Object ? aPIError : value;
dependencyMap(value);
return undefined;
}
yield value5;
try {
value6 = undefined;
value7 = false;
} catch (error) {
binding = env3_0;
APIError = binding(env3_2[13]).APIError;
prototype = APIError.prototype;
value = Object.create(prototype, {constructor: {value: APIError}});
aPIError = new APIError();
value = aPIError instanceof Object ? aPIError : value;
dependencyMap(value);
return undefined;
}
if (value7) {
return value6;
}
try {
} catch (error) {
binding = env3_0;
APIError = binding(env3_2[13]).APIError;
prototype = APIError.prototype;
value = Object.create(prototype, {constructor: {value: APIError}});
aPIError = new APIError();
value = aPIError instanceof Object ? aPIError : value;
dependencyMap(value);
return undefined;
}
try {
importDefault();
} catch (error) {
binding = env3_0;
APIError = binding(env3_2[13]).APIError;
prototype = APIError.prototype;
value = Object.create(prototype, {constructor: {value: APIError}});
aPIError = new APIError();
value = aPIError instanceof Object ? aPIError : value;
dependencyMap(value);
}
}
}
function _fun91960() { // fn#91960, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12165:2047, offset: 0x020781a6, size: 32 bytes, params: 1, frame: 9
const current = env1_4.current;
if (current != null) {
current.scrollToEnd();
}
}
function getScreens_91965({guildId, onHide}) { // fn#91965, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12165:2607, offset: 0x0207825f, size: 124 bytes, params: 2, frame: 15
var environment;
const closure = getScreens_91965HandleClose;
const object = {fullscreen: true};
const value = environment.__proto__.__proto__;
object.headerLeft = (require(5282) /* metro dependency 5282: NavigatorHeaderNative */).getHeaderCloseButton(closure);
object.headerTitle = function() {
return null;
};
object.render = render_91968;
return {['UPSELL_SCREEN_KEY']: object};
}
function getScreens_91965HandleClose() { // fn#91966, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12165:2665, owner: getScreens_91965.handleClose, offset: 0x020782db, size: 86 bytes, params: 1, frame: 17
const value = environment.__proto__.__proto__.__proto__;
const defaultImport = importDefault(11969) /* metro dependency 11969: GuildPromptsActionCreators */;
const viewPrompt = defaultImport.viewPrompt;
const REAL_NAME_PROMPT = GuildPrompts.REAL_NAME_PROMPT;
Reflect.apply(viewPrompt, defaultImport, [REAL_NAME_PROMPT, guildId]);
onHide();
(importDefault(11978) /* metro dependency 11978: GuildDirectoryNicknameUpsellModalActionCreators */).close();
}
function getScreens_91965Render() { // fn#91968, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12165:2842, owner: getScreens_91965.render, offset: 0x02078331, size: 43 bytes, params: 1, frame: 14
return <GuildDirectoryNicknameUpsell guildId={guildId} handleClose={getScreens_91965HandleClose} />;
}
@@ -0,0 +1,23 @@
/* Metro module 11978; source: modules/directory_channels/native/components/GuildDirectoryNicknameUpsellModalActionCreators.tsx; dependencies: [5080, 11979, 1962, 2] */
function _fun91949(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#91949, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12164:6, offset: 0x02077981, size: 122 bytes, params: 8, frame: 18
var object2;
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
object2 = {open: open_91950, close: close_91951};
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/directory_channels/native/components/GuildDirectoryNicknameUpsellModalActionCreators.tsx');
exports.default = object2;
}
function open_91950(a0) { // fn#91950, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12164:145, offset: 0x020779fb, size: 82 bytes, params: 2, frame: 16
const defaultImport = importDefault(dependencyMap[0]);
const pushLazy = defaultImport.pushLazy;
let value = require(dependencyMap[2]);
value = value(dependencyMap[1], dependencyMap.paths);
Reflect.apply(pushLazy, defaultImport, [value, a0, 'GUILD_DIRECTORY_NICKNAME_UPSELL_MODAL_KEY']);
}
function close_91951() { // fn#91951, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12164:198, offset: 0x02077a4d, size: 43 bytes, params: 1, frame: 12
(importDefault(5080) /* metro dependency 5080: ModalActionCreators */).popWithKey('GUILD_DIRECTORY_NICKNAME_UPSELL_MODAL_KEY');
}
@@ -0,0 +1,62 @@
/* Metro module 9670; source: modules/directory_channels/native/components/GuildDirectoryPlaceholderRow.tsx; dependencies: [31, 27, 33, 4501, 697, 6235, 9671, 2] */
function _fun75778(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#75778, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9856:6, offset: 0x01db96b0, size: 359 bytes, params: 8, frame: 22
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
let value = importAll(31) /* metro dependency 31 */;
const env0_2 = (require(27) /* metro dependency 27 */).View;
const value2 = require(33) /* metro dependency 33 */;
const env0_3 = value2.jsx;
const env0_4 = value2.jsxs;
const createStylesModule = require(4501) /* metro dependency 4501: createStyles */;
const createStyles = createStylesModule.createStyles;
const object = {'width': 40, 'height': 40, 'borderRadius': null, 'overflow': 'hidden', 'marginRight': 16};
object.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.sm;
const DARK_PRIMARY_500_LIGHT_PRIMARY_230 = (require(6235) /* metro dependency 6235: LegacyTokens */).DARK_PRIMARY_500_LIGHT_PRIMARY_230;
object.backgroundColor = DARK_PRIMARY_500_LIGHT_PRIMARY_230;
const env0_5 = Reflect.apply(createStyles, createStylesModule, [{row: {'flexDirection': 'row', 'padding': 16},
rowInner: {flex: 1}, placeholderAvatar: object, placeholderText: {'height': 15, 'borderRadius': 5,
backgroundColor: DARK_PRIMARY_500_LIGHT_PRIMARY_230}, placeholderBody: {'width': '100%', 'marginTop': 10}}]);
value = value.memo(_fun75779);
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/directory_channels/native/components/GuildDirectoryPlaceholderRow.tsx');
exports.default = value;
}
function _fun75779() { // fn#75779, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9856:546, offset: 0x01db9817, size: 371 bytes, params: 1, frame: 26
const styles = useStyles();
let Math = global.Math;
let floor = Math.floor;
const Math2 = global.Math;
const value3 = Reflect.apply(floor, Math, [2 * Math2.random()]) + 2;
Math = global.Math;
floor = Math.floor;
const Math3 = global.Math;
const env0_1 = Reflect.apply(floor, Math, [10 * Math3.random()]);
Math = global.Math;
floor = Math.floor;
const Math4 = global.Math;
const value6 = Reflect.apply(floor, Math, [50 * Math4.random()]) + 10;
const items2 = [<View style={styles.placeholderAvatar} />];
const items3 = [<View style={[styles.placeholderText, {width: '' + value6 + '%'}]} />];
const Array = global.Array;
let array = new Array(value3);
array = array.fill(undefined);
items3[1] = array.map(_fun75780);
items2[1] = <View style={styles.rowInner}>{items3}</View>;
return (
<View style={styles.row}>
{items2}
</View>
);
}
function _fun75780(a0, a1) { // fn#75780, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9856:837, offset: 0x01db998a, size: 132 bytes, params: 3, frame: 21
let value = environment.__proto__;
const stylesBinding = styles;
const items2 = [stylesBinding.placeholderText];
items2[1] = stylesBinding.placeholderBody;
value = importDefault(9671) /* metro dependency 9671: getChatPlaceholderRowWidth */;
value = value(env0_1 + a1);
items2[2] = {width: '' + value + '%'};
return <View style={items2} key={a1} />;
}
@@ -0,0 +1,434 @@
/* Metro module 9669; source: modules/directory_channels/native/components/GuildDirectoryRow.tsx; dependencies: [5, 57, 31, 27, 1379, 1867, 661, 33, 4501, 697, 566, 6947, 6593, 6927, 1314, 1423, 1244, 6239, 6819, 1418, 4573, 9641, 4578, 2] */
function _fun75771(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#75771, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9855:6, offset: 0x01db8d8b, size: 628 bytes, params: 8, frame: 25
var object3;
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const env0_3 = importDefault(5) /* metro dependency 5 */;
const env0_4 = importDefault(57) /* metro dependency 57 */;
let value = importAll(31) /* metro dependency 31 */;
const env0_6 = (require(27) /* metro dependency 27 */).View;
const channelStore = importDefault(1379) /* metro dependency 1379: ChannelStore */;
const guildStore = importDefault(1867) /* metro dependency 1867: GuildStore */;
const env0_9 = (require(661) /* metro dependency 661: Constants */).JoinGuildSources;
const value2 = require(33) /* metro dependency 33 */;
const env0_10 = value2.jsx;
const env0_11 = value2.Fragment;
const env0_12 = value2.jsxs;
const createStylesModule = require(4501) /* metro dependency 4501: createStyles */;
const createStyles = createStylesModule.createStyles;
object3 = {container: {'flexDirection': 'row', 'padding': 16, 'marginVertical': 6, 'marginHorizontal': 8},
guildInfoContainer: {'flexDirection': 'column', 'flex': 1}};
const object6 = {};
object6.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.sm;
object6.marginRight = 16;
object3.guildIcon = object6;
object3.guildWrapper = {flex: 1};
object3.guildDescription = {'flexShrink': 1, 'marginBottom': 8};
object3.memberInfo = {'flexDirection': 'row', 'alignItems': 'center', 'marginBottom': 8};
const object7 = {'width': 8, 'height': 8, 'borderRadius': null, 'marginRight': 4};
object7.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.sm;
const GREEN_360 = (importDefault(697) /* metro dependency 697: native */).unsafe_rawColors.GREEN_360;
object7.backgroundColor = GREEN_360;
object3.dotOnline = object7;
const object8 = {'width': 8, 'height': 8, 'borderRadius': null, 'marginRight': 4, 'marginLeft': 16};
object8.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.sm;
const PRIMARY_400 = (importDefault(697) /* metro dependency 697: native */).unsafe_rawColors.PRIMARY_400;
object8.backgroundColor = PRIMARY_400;
object3.dotOffline = object8;
object3.headerContainer = {'flexDirection': 'row', 'marginBottom': 4, 'justifyContent': 'space-between'};
object3.titleContainer = {'flexDirection': 'row', 'flex': 1};
object3.flex = {'flex': 1, 'height': 4};
const env0_13 = Reflect.apply(createStyles, createStylesModule, [object3]);
value = value.memo(_fun75772);
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/directory_channels/native/components/GuildDirectoryRow.tsx');
exports.default = value;
}
function _fun75772({entry}) { // fn#75772, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9855:1004, offset: 0x01db8fff, size: 1286 bytes, params: 2, frame: 49
var r26;
var jsxRuntimeEnv0_11Binding;
var items3;
var items5;
const styles = useStyles();
const name = entry.name;
const description = entry.description;
const approximateMemberCount = entry.approximateMemberCount;
const approximatePresenceCount = entry.approximatePresenceCount;
const fluxModule = require(566) /* metro dependency 566: flux */;
const useStateFromStores = fluxModule.useStateFromStores;
const value4 = Reflect.apply(useStateFromStores, fluxModule, [[GuildStore], function() {
return GuildStore.getGuild(entry.guildId);
}]) != null;
const [property, env0_2] = env0_4(env0_5.useState(false), 2);
const value7 = _fun75774();
let r20 = (importDefault(1423) /* metro dependency 1423: AvatarUtils */).getGuildIconURL({id: entry.guildId,
icon: entry.icon, size: 40}) ?? undefined;
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
const string = intl.string;
const VJlc0S = (require(1244) /* metro dependency 1244: indexNative */).t.VJlc0S;
const r11 = value4 ? intl.string((require(1244) /* metro dependency 1244: indexNative */).t.cqWE2Z) : Reflect.apply(string,
intl, [VJlc0S]);
const Card = (require(6239) /* metro dependency 6239: CardNative */).Card;
const GuildIcon = importDefault(6819) /* metro dependency 6819: GuildIcon */;
const defaultImport2Props = {style: styles.guildIcon, icon: r20};
r20 = r20 == null ? (require(1418) /* metro dependency 1418: GuildRecordUtils */).fromGuildDirectoryEntry(entry) : undefined;
defaultImport2Props.guild = r20;
defaultImport2Props.selected = false;
const guildIcon = <GuildIcon {...defaultImport2Props} />;
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
const text = <Text variant="text-md/semibold" color="mobile-text-heading-primary" lineClamp={1}>{name}</Text>;
if (approximatePresenceCount != null) {
jsxRuntimeEnv0_11Binding = jsxRuntimeEnv0_11;
items3 = [<View style={styles.dotOnline} />];
items3[1] = <Text variant="text-xs/medium" color="text-default">{intl.format((require(1244) /* metro dependency 1244: indexNative */).t['LC+S+m'],
{membersOnline: approximatePresenceCount})}</Text>;
r26 = <>{items3}</>;
} else {
r26 = null;
}
const items4 = [r26];
if (approximateMemberCount != null) {
jsxRuntimeEnv0_11Binding = jsxRuntimeEnv0_11;
items5 = [<View style={styles.dotOffline} />];
items5[1] = <Text variant="text-xs/medium" color="text-default">{intl.format((require(1244) /* metro dependency 1244: indexNative */).t.zRl6XR,
{count: approximateMemberCount})}</Text>;
r26 = <>{items5}</>;
} else {
r26 = null;
}
items4[1] = r26;
const items7 = [<View style={styles.headerContainer}><View style={styles.titleContainer}>{guildIcon}<View style={styles.guildInfoContainer}>{text}<View style={styles.memberInfo}>{items4}</View></View></View><View>{((Component) => <Component entry={entry} />)(importDefault(9641) /* metro dependency 9641: GuildDirectoryMoreMenu */)}</View></View>];
items7[1] = description != null && description !== '' && <Text lineClamp={3} style={styles.guildDescription} variant="text-sm/medium" color="text-default">{description}</Text>;
items7[2] = <View style={styles.flex} />;
const Button = (require(4578) /* metro dependency 4578: ButtonNative */).Button;
items7[3] = <Button loading={property} onPress={value7} variant={value4 ? 'secondary' : 'active'} text={r11} />;
return (
<Card style={styles.container}>
<View style={styles.guildWrapper}>
{items7}
</View>
</Card>
);
}
function _fun75774() { // fn#75774, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9855:1222, offset: 0x01db9525, size: 36 bytes, params: 1, frame: 12
const env0_0 = env1_3(_fun75776);
return _fun75777;
}
function* _fun75776() { // fn#75776, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9855:1242, offset: 0x01db9554, size: 348 bytes, params: 1, frame: 20
var r6;
var binding;
var binding2;
var property;
var value5;
var joinGuild;
var guildId;
var object2;
var DIRECTORY_ENTRY;
var value6;
var value7;
var value8;
var getChannel;
var channelId;
var value9;
var value10;
var binding3;
var value11;
var setHubProgressActionComplete;
var value12;
var getGuildId;
var value13;
var binding4;
var value14;
var HubProgressStep;
var JOIN_GUILD;
var binding5;
var value15;
var transitionToGuild;
var error;
let value = undefined;
if (true) {
value = undefined;
dependencyMap(true);
try {
} catch (error) {
dependencyMap(false);
throw error;
}
if (importDefault) {
try {
binding = env3_0;
} catch (error) {
dependencyMap(false);
throw error;
}
try {
binding5 = env3_2;
} catch (error) {
dependencyMap(false);
throw error;
}
try {
property = binding5[11];
} catch (error) {
dependencyMap(false);
throw error;
}
try {
value15 = binding(property);
} catch (error) {
dependencyMap(false);
throw error;
}
try {
transitionToGuild = value15.transitionToGuild;
} catch (error) {
dependencyMap(false);
throw error;
}
try {
} catch (error) {
dependencyMap(false);
throw error;
}
try {
guildId = require.guildId;
} catch (error) {
dependencyMap(false);
throw error;
}
try {
Reflect.apply(transitionToGuild, value15, [guildId]);
} catch (error) {
dependencyMap(false);
throw error;
}
dependencyMap(false);
return value;
}
try {
binding = env3_1;
} catch (error) {
dependencyMap(false);
throw error;
}
try {
binding2 = env3_2;
} catch (error) {
dependencyMap(false);
throw error;
}
try {
property = binding2[12];
} catch (error) {
dependencyMap(false);
throw error;
}
try {
value5 = binding(property);
} catch (error) {
dependencyMap(false);
throw error;
}
try {
joinGuild = value5.joinGuild;
} catch (error) {
dependencyMap(false);
throw error;
}
try {
} catch (error) {
dependencyMap(false);
throw error;
}
try {
guildId = require.guildId;
} catch (error) {
dependencyMap(false);
throw error;
}
try {
object2 = {};
} catch (error) {
dependencyMap(false);
throw error;
}
try {
binding = env3_9;
} catch (error) {
dependencyMap(false);
throw error;
}
try {
DIRECTORY_ENTRY = binding.DIRECTORY_ENTRY;
} catch (error) {
dependencyMap(false);
throw error;
}
try {
object2.source = DIRECTORY_ENTRY;
} catch (error) {
dependencyMap(false);
throw error;
}
try {
value6 = Reflect.apply(joinGuild, value5, [guildId, object2]);
} catch (error) {
dependencyMap(false);
throw error;
}
yield value6;
try {
value7 = undefined;
value8 = false;
} catch (error) {
dependencyMap(false);
throw error;
}
if (value8) {
dependencyMap(false);
return value7;
}
try {
binding = env3_7;
} catch (error) {
dependencyMap(false);
throw error;
}
try {
getChannel = binding.getChannel;
} catch (error) {
dependencyMap(false);
throw error;
}
try {
} catch (error) {
dependencyMap(false);
throw error;
}
try {
channelId = require.channelId;
} catch (error) {
dependencyMap(false);
throw error;
}
try {
value9 = Reflect.apply(getChannel, binding, [channelId]);
} catch (error) {
dependencyMap(false);
throw error;
}
try {
value10 = value9 == null;
} catch (error) {
dependencyMap(false);
throw error;
}
if (value10) {
dependencyMap(false);
return value;
}
try {
binding = env3_0;
} catch (error) {
dependencyMap(false);
throw error;
}
try {
binding3 = env3_2;
} catch (error) {
dependencyMap(false);
throw error;
}
try {
property = binding3[13];
} catch (error) {
dependencyMap(false);
throw error;
}
try {
value11 = binding(property);
} catch (error) {
dependencyMap(false);
throw error;
}
try {
setHubProgressActionComplete = value11.setHubProgressActionComplete;
} catch (error) {
dependencyMap(false);
throw error;
}
try {
value12 = value9 == null;
} catch (error) {
dependencyMap(false);
throw error;
}
if (value12) {
r6 = value;
} else {
try {
getGuildId = value9.getGuildId;
} catch (error) {
dependencyMap(false);
throw error;
}
try {
value13 = Reflect.apply(getGuildId, value9, []);
} catch (error) {
dependencyMap(false);
throw error;
}
r6 = value13;
}
try {
binding = env3_0;
} catch (error) {
dependencyMap(false);
throw error;
}
try {
binding4 = env3_2;
} catch (error) {
dependencyMap(false);
throw error;
}
try {
property = binding4[14];
} catch (error) {
dependencyMap(false);
throw error;
}
try {
value14 = binding(property);
} catch (error) {
dependencyMap(false);
throw error;
}
try {
HubProgressStep = value14.HubProgressStep;
} catch (error) {
dependencyMap(false);
throw error;
}
try {
JOIN_GUILD = HubProgressStep.JOIN_GUILD;
} catch (error) {
dependencyMap(false);
throw error;
}
try {
Reflect.apply(setHubProgressActionComplete, value11, [r6, JOIN_GUILD]);
} catch (error) {
dependencyMap(false);
throw error;
}
dependencyMap(false);
}
return value;
}
@@ -0,0 +1,231 @@
/* Metro module 9630; source: modules/directory_channels/native/components/GuildDirectorySearch.tsx; dependencies: [57, 31, 27, 1867, 9631, 661, 33, 4501, 697, 9634, 4573, 1244, 1305, 566, 9635, 9636, 1585, 9669, 9670, 5282, 6983, 9644, 9628, 683, 2] */
function _fun75527(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#75527, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9816:6, offset: 0x01daf963, size: 543 bytes, params: 8, frame: 26
var object2;
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const env0_4 = importDefault(57) /* metro dependency 57 */;
const env0_5 = importAll(31) /* metro dependency 31 */;
let value = require(27) /* metro dependency 27 */;
const env0_6 = value.View;
const env0_7 = value.Image;
const env0_8 = value.FlatList;
const guildStore = importDefault(1867) /* metro dependency 1867: GuildStore */;
const guildDirectorySearchStore = importDefault(9631) /* metro dependency 9631: GuildDirectorySearchStore */;
value = require(661) /* metro dependency 661: Constants */;
const Fonts = value.Fonts;
const env0_11 = value.AnalyticEvents;
value = require(33) /* metro dependency 33 */;
const env0_12 = value.jsx;
const env0_13 = value.jsxs;
value = require(4501) /* metro dependency 4501: createStyles */;
const createStyles = value.createStyles;
object2 = {flex: {'flex': 1, 'height': '100%'}};
object2.fauxHeader = {paddingHorizontal: 0};
const BACKGROUND_BASE_LOW = (importDefault(697) /* metro dependency 697: native */).colors.BACKGROUND_BASE_LOW;
object2.scrollContainer = {'flex': 1, 'width': '100%', backgroundColor: BACKGROUND_BASE_LOW};
object2.emptyWrapper = {'flex': 1, 'alignItems': 'center', 'justifyContent': 'center', 'paddingHorizontal': 16};
object2.emptyStateImage = {marginBottom: 24};
object2.emptyStateText = {textAlign: 'center'};
object2.emptyStateTitle = {'marginBottom': 4, 'textAlign': 'center'};
const object3 = {};
const PRIMARY_BOLD = Fonts.PRIMARY_BOLD;
object3.fontFamily = PRIMARY_BOLD;
const GREEN_360 = (importDefault(697) /* metro dependency 697: native */).unsafe_rawColors.GREEN_360;
object3.color = GREEN_360;
object3.textTransform = 'uppercase';
object2.proTip = object3;
const env0_14 = Reflect.apply(createStyles, value, [object2]);
const Array = global.Array;
const env0_17 = Array(20).fill(null);
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/directory_channels/native/components/GuildDirectorySearch.tsx');
exports.default = GuildDirectorySearch;
}
function DefaultState() { // fn#75528, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9816:744, offset: 0x01dafb82, size: 234 bytes, params: 1, frame: 23
const styles = useStyles();
const image = <Image style={styles.emptyStateImage} source={importDefault(9634) /* metro dependency 9634 */} />;
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
return (
<View style={styles.emptyWrapper}>
{image}
<Text
style={styles.emptyStateText}
variant="text-sm/medium"
color="text-default"
>
{intl.format((require(1244) /* metro dependency 1244: indexNative */).t.aYLd8O,
{protipHook: protipHook})}
</Text>
</View>
);
}
function EmptyState_75530({channel}) { // fn#75530, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9816:1076, offset: 0x01dafcb6, size: 464 bytes, params: 2, frame: 25
const styles = useStyles();
const env0_1 = (require(566) /* metro dependency 566: flux */).useStateFromStores([GuildStore], function() {
return GuildStore.getGuild(channel.getGuildId());
});
const value2 = (require(9635) /* metro dependency 9635: useCanManageGuildDirectoryEntry */).useCanCreateOrAddGuildInDirectory(channel);
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
const r8 = value2 ? intl.format((require(1244) /* metro dependency 1244: indexNative */).t.ZxNVMy,
{addServerHook: addServerHook}) : intl.string((require(1244) /* metro dependency 1244: indexNative */).t.vYyEnv);
const items2 = [<Image style={styles.emptyStateImage} source={importDefault(9634) /* metro dependency 9634 */} />];
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
items2[1] = <Text style={styles.emptyStateTitle} variant="text-sm/semibold" color="mobile-text-heading-primary">{intl.string((require(1244) /* metro dependency 1244: indexNative */).t['6HXiuE'])}</Text>;
items2[2] = <Text style={styles.emptyStateText} variant="text-sm/medium" color="text-default">{r8}</Text>;
return (
<View style={styles.emptyWrapper}>
{items2}
</View>
);
}
function GuildDirectorySearch({channel}) { // fn#75533, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9816:1896, offset: 0x01dafefc, size: 583 bytes, params: 2, frame: 26
const styles = useStyles();
const binding = env0_5;
let useState = binding.useState;
const value2 = Reflect.apply(useState, binding, [false]);
const binding2 = env0_4;
const value3 = binding2(value2, 2);
const property = value3[0];
const env0_1 = value3[1];
useState = binding.useState;
const value4 = binding2(Reflect.apply(useState, binding, ['']), 2);
const env0_2 = value4[0];
const property2 = value4[1];
const {searchFetching,
searchResults} = (require(566) /* metro dependency 566: flux */).useStateFromStoresObject([GuildDirectorySearchStore],
_fun75534);
const value6 = binding.useMemo(_fun75535, [searchResults, searchFetching]);
const bottom = (importDefault(1585) /* metro dependency 1585: useSafeAreaInsetsNative */)().bottom;
const r5 = property ? searchResults.length !== 0 ? <FlatList data={value6} renderItem={renderItem_75536} keyExtractor={function(a0,
a1) {
return a0 != null ? a0.guildId : a1.toString();
}} ListEmptyComponent={ListEmptyComponent} scrollIndicatorInsets={{right: 0}} style={styles.scrollContainer} contentContainerStyle={{paddingBottom: bottom + 16}} /> : searchFetching ? <FlatList data={value6} renderItem={renderItem_75536} keyExtractor={keyExtractor_75537} ListEmptyComponent={ListEmptyComponent} scrollIndicatorInsets={{right: 0}} style={styles.scrollContainer} contentContainerStyle={{paddingBottom: bottom + 16}} /> : <EmptyState_75530 channel={channel} /> : <DefaultState />;
const FauxHeader = (require(5282) /* metro dependency 5282: NavigatorHeaderNative */).FauxHeader;
let value = importDefault(6983) /* metro dependency 6983: SearchBarNav */;
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
value = <FauxHeader style={styles.fauxHeader}>{((Component) => <Component placeholder={intl.string((require(1244) /* metro dependency 1244: indexNative */).t.nL2wKD)} onChange={property2} onClose={onClose_75539} onSubmitEditing={onSubmitEditing_75540} />)(value)}</FauxHeader>;
return (
<View style={styles.flex}>
{value}
{r5}
</View>
);
}
function DefaultStateProtipHook(a0) { // fn#75529, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9816:994, owner: DefaultState.protipHook, offset: 0x01dafc6c, size: 74 bytes, params: 2, frame: 15
const LegacyText = (require(1305) /* metro dependency 1305: native */).LegacyText;
return (
<LegacyText style={styles.proTip} key="protip">
{a0}
</LegacyText>
);
}
function addServerHook() { // fn#75532, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9816:1272, owner: EmptyState_75530.addServerHook, offset: 0x01dafeab, size: 81 bytes, params: 1, frame: 15
let value = environment.__proto__;
value = importDefault(9636) /* metro dependency 9636: GuildDirectoryAddModalActionCreators */;
const open = value.open;
const guildBinding = guild;
Reflect.apply(open, value, [{directoryGuildName: guildBinding.name, directoryGuildId: guildBinding.id,
directoryChannelId: channel.id}]);
}
function _fun75534() { // fn#75534, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9816:2070, offset: 0x01db0143, size: 73 bytes, params: 1, frame: 14
let value = environment.__proto__;
const getSearchState = GuildDirectorySearchStore.getSearchState;
const channelBinding = channel;
value = Reflect.apply(getSearchState, GuildDirectorySearchStore, [channelBinding.id]);
const mostRecentQuery = value.mostRecentQuery;
const getSearchResults = GuildDirectorySearchStore.getSearchResults;
return {searchFetching: value.fetching, searchResults: Reflect.apply(getSearchResults, GuildDirectorySearchStore,
[channelBinding.id, mostRecentQuery])};
}
function _fun75535() { // fn#75535, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9816:2252, offset: 0x01db018c, size: 36 bytes, params: 1, frame: 12
var r0;
var concat;
var value;
const searchResultsBinding = searchResults;
if (searchFetching) {
concat = searchResultsBinding.concat;
value = environment.__proto__;
value = Reflect.apply(concat, searchResultsBinding, [env1_17]);
r0 = value;
} else {
r0 = searchResultsBinding;
}
return r0;
}
function GuildDirectorySearchRenderItem({item}) { // fn#75536, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9816:2395, owner: GuildDirectorySearch.renderItem, offset: 0x01db01b0, size: 97 bytes, params: 2, frame: 15
var r0;
var value;
if (item != null) {
value = environment.__proto__;
value = importDefault(9669) /* metro dependency 9669: GuildDirectoryRow */;
value = ((Component) => <Component entry={item} />)(value);
r0 = value;
} else {
value = environment.__proto__;
value = importDefault(9670) /* metro dependency 9670: GuildDirectoryPlaceholderRow */;
value = ((Component) => <Component />)(value);
r0 = value;
}
return r0;
}
function GuildDirectorySearchKeyExtractor(a0, a1) { // fn#75537, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9816:2465, owner: GuildDirectorySearch.keyExtractor, offset: 0x01db0211, size: 30 bytes, params: 3, frame: 10
return a0 != null ? a0.guildId : a1.toString();
}
function GuildDirectorySearchListEmptyComponent() { // fn#75538, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9816:2522, owner: GuildDirectorySearch.ListEmptyComponent, offset: 0x01db022f, size: 34 bytes, params: 1, frame: 13
return <EmptyState_75530 channel={channel} />;
}
function GuildDirectorySearchOnClose() { // fn#75539, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9816:2842, owner: GuildDirectorySearch.onClose, offset: 0x01db0251, size: 76 bytes, params: 1, frame: 14
const value = environment.__proto__;
const guildDirectoryActionCreatorsModule = importAll(9644) /* metro dependency 9644: GuildDirectoryActionCreators */;
guildDirectoryActionCreatorsModule.clearDirectorySearch(channel.id);
(importDefault(9628) /* metro dependency 9628: GuildDirectorySearchModalActionCreators */).close();
}
function GuildDirectorySearchOnSubmitEditing() { // fn#75540, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9816:2917, owner: GuildDirectorySearch.onSubmitEditing, offset: 0x01db029d, size: 187 bytes, params: 1, frame: 18
var environment;
var value2;
var moduleValue;
var searchDirectoryEntries;
var channelBinding;
var id;
var value3;
var defaultImport;
var track;
var GUILD_DIRECTORY_SEARCH;
var object2;
const binding = env0_2;
if (binding.trim().length !== 0) {
value2 = environment.__proto__;
moduleValue = importAll(9644) /* metro dependency 9644: GuildDirectoryActionCreators */;
searchDirectoryEntries = moduleValue.searchDirectoryEntries;
channelBinding = channel;
id = channelBinding.id;
value3 = Reflect.apply(searchDirectoryEntries, moduleValue, [id, env0_2]);
defaultImport = importDefault(683) /* metro dependency 683: AnalyticsUtils */;
track = defaultImport.track;
GUILD_DIRECTORY_SEARCH = AnalyticEvents.GUILD_DIRECTORY_SEARCH;
object2 = {};
id = channelBinding.id;
object2.directory_channel_id = id;
object2.directory_guild_id = channelBinding.getGuildId();
Reflect.apply(track, defaultImport, [GUILD_DIRECTORY_SEARCH, object2]);
if (value3 != null) {
value3.then(_fun75541);
} else {
env0_1(true);
}
}
}
@@ -0,0 +1,39 @@
/* Metro module 9629; source: modules/directory_channels/native/components/GuildDirectorySearchModal.tsx; dependencies: [31, 33, 9630, 5280, 6518, 2] */
function _fun75522(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#75522, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9815:6, offset: 0x01daf7f7, size: 138 bytes, params: 8, frame: 18
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
importAll(31) /* metro dependency 31 */;
const env0_3 = (require(33) /* metro dependency 33 */).jsx;
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/directory_channels/native/components/GuildDirectorySearchModal.tsx');
exports.default = GuildDirectorySearchModal;
}
function GuildDirectorySearchModal(a0) { // fn#75523, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9815:258, offset: 0x01daf881, size: 98 bytes, params: 2, frame: 17
const env0_0 = a0;
const Navigator = (require(5280) /* metro dependency 5280: NavigatorNative */).Navigator;
return (
<Navigator
screens={(importDefault(6518) /* metro dependency 6518: useInitialValue */)(_fun75524)}
initialRouteName="SEARCH_SCREEN_KEY"
/>
);
}
function _fun75524() { // fn#75524, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9815:341, offset: 0x01daf8e3, size: 25 bytes, params: 1, frame: 11
return ((a0) => {
var env0_0 = a0;
return {['SEARCH_SCREEN_KEY']: {'fullscreen': true, 'headerShown': false, render: _fun75526}};
})(env0_0);
}
function getScreens_75525(a0) { // fn#75525, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9815:345, offset: 0x01daf8fc, size: 50 bytes, params: 2, frame: 3
const env0_0 = a0;
return {['SEARCH_SCREEN_KEY']: {'fullscreen': true, 'headerShown': false, render: render_75526}};
}
function getScreens_75525Render() { // fn#75526, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9815:416, owner: getScreens_75525.render, offset: 0x01daf92e, size: 53 bytes, params: 1, frame: 14
const value = environment.__proto__.__proto__.__proto__;
return ((Component) => <Component {...env0_0} />)(importDefault(9630) /* metro dependency 9630: GuildDirectorySearch */);
}
@@ -0,0 +1,23 @@
/* Metro module 9628; source: modules/directory_channels/native/components/GuildDirectorySearchModalActionCreators.tsx; dependencies: [5080, 9629, 1962, 2] */
function _fun75519(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#75519, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9814:6, offset: 0x01daf6f5, size: 122 bytes, params: 8, frame: 18
var object2;
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
object2 = {open: open_75520, close: close_75521};
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/directory_channels/native/components/GuildDirectorySearchModalActionCreators.tsx');
exports.default = object2;
}
function open_75520({channel}) { // fn#75520, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9814:136, offset: 0x01daf76f, size: 93 bytes, params: 2, frame: 17
const defaultImport = importDefault(dependencyMap[0]);
const pushLazy = defaultImport.pushLazy;
let value = require(dependencyMap[2]);
value = value(dependencyMap[1], dependencyMap.paths);
Reflect.apply(pushLazy, defaultImport, [value, {channel: channel}, 'GUILD_DIRECTORY_SEARCH_MODAL_KEY']);
}
function close_75521() { // fn#75521, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9814:209, offset: 0x01daf7cc, size: 43 bytes, params: 1, frame: 12
(importDefault(5080) /* metro dependency 5080: ModalActionCreators */).popWithKey('GUILD_DIRECTORY_SEARCH_MODAL_KEY');
}
@@ -0,0 +1,102 @@
/* Metro module 9652; source: modules/directory_channels/native/components/GuildDirectoryTemplates.tsx; dependencies: [31, 27, 9633, 9638, 33, 4501, 9653, 1305, 9654, 1484, 1585, 9637, 4573, 1244, 6231, 8968, 2] */
function _fun75731(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#75731, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9838:6, offset: 0x01db6e82, size: 363 bytes, params: 8, frame: 22
const env0_0 = require;
const closure = GuildTemplatesItem;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const env0_3 = importAll(31) /* metro dependency 31 */;
let value = require(27) /* metro dependency 27 */;
const env0_4 = value.View;
const env0_5 = value.ScrollView;
value = require(9633) /* metro dependency 9633: GuildDirectoryConstants */;
const env0_6 = value.getHubGuildTemplatesMap;
const env0_7 = value.HubGuildTemplateId;
const env0_8 = (require(9638) /* metro dependency 9638: GuildDirectoryConstants */).GuildDirectoryCreate;
value = require(33) /* metro dependency 33 */;
const env0_9 = value.jsx;
const env0_10 = value.jsxs;
const env0_11 = (require(4501) /* metro dependency 4501: createStyles */).createStyles({label: {'marginTop': 16,
'marginLeft': 16, 'marginBottom': 8}, title: {'marginBottom': 8, 'textAlign': 'center'},
description: {textAlign: 'center'}, header: {'alignItems': 'center', 'justifyContent': 'center', 'padding': 16},
templateGroup: {marginHorizontal: 16}});
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/directory_channels/native/components/GuildDirectoryTemplates.tsx');
exports.default = _default_75735;
exports.GuildTemplatesItem = closure;
}
function GuildTemplatesItem({guildTemplate, onGuildTemplatePress}) { // fn#75732, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9838:510, offset: 0x01db6fed, size: 95 bytes, params: 2, frame: 16
return ((Component) => <Component Icon={Icon_75733} message={guildTemplate.label} onPress={function() {
return onGuildTemplatePress(guildTemplate);
}} />)(importDefault(9653) /* metro dependency 9653: ListSelectionItem */);
}
function _default_75735(a0) { // fn#75735, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9838:758, offset: 0x01db70b7, size: 1028 bytes, params: 2, frame: 41
const env0_0 = a0;
const styles = useStyles();
const binding = env0_3;
const env0_1 = binding.useRef(a0);
const value2 = (require(1484) /* metro dependency 1484: useNavigationNative */).useNavigation();
const hubGuildTemplatesMap = getHubGuildTemplatesMap();
const bottom = (importDefault(1585) /* metro dependency 1585: useSafeAreaInsetsNative */)().bottom;
binding.useEffect(_fun75736);
const value4 = binding.useCallback(_fun75737, [value2]);
const GuildDirectoryAddModalScreen = (require(9637) /* metro dependency 9637: GuildDirectoryAddModal */).GuildDirectoryAddModalScreen;
const object = {paddingBottom: bottom + 16};
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
const format = intl.format;
const T7aLYT = (require(1244) /* metro dependency 1244: indexNative */).t.T7aLYT;
const text = <Text style={styles.title} accessibilityRole="header" variant="heading-xl/extrabold" color="mobile-text-heading-primary">{Reflect.apply(format,
intl, [T7aLYT, {guildName: a0.directoryGuildName}])}</Text>;
let string = intl.string;
const items2 = [<View style={styles.header}>{text}<Text style={styles.description} variant="text-sm/medium" color="text-default">{Reflect.apply(string,
intl, [(require(1244) /* metro dependency 1244: indexNative */).t['RA+St6']])}</Text></View>];
let templateGroup = styles.templateGroup;
const TableRowGroup = (require(6231) /* metro dependency 6231: TableRowGroupNative */).TableRowGroup;
const object2 = {};
const CREATE = HubGuildTemplateId.CREATE;
copyDataProperties(object2, hubGuildTemplatesMap[CREATE], undefined);
string = intl.string;
const WqJbLi = (require(1244) /* metro dependency 1244: indexNative */).t.WqJbLi;
object2['label'] = Reflect.apply(string, intl, [WqJbLi]);
items2[1] = <View style={templateGroup}><TableRowGroup hasIcons><GuildTemplatesItem guildTemplate={object2} onGuildTemplatePress={value4} /></TableRowGroup></View>;
const FreeFormLabel = importDefault(8968) /* metro dependency 8968: FreeFormLabel */;
string = intl.string;
const JGDkfg = (require(1244) /* metro dependency 1244: indexNative */).t.JGDkfg;
items2[2] = <FreeFormLabel style={styles.label}>{Reflect.apply(string, intl, [JGDkfg])}</FreeFormLabel>;
templateGroup = styles.templateGroup;
const HUB_STUDY = HubGuildTemplateId.HUB_STUDY;
const HUB_SCHOOL_CLUB = HubGuildTemplateId.HUB_SCHOOL_CLUB;
const HUB_CLASS = HubGuildTemplateId.HUB_CLASS;
const HUB_SOCIAL = HubGuildTemplateId.HUB_SOCIAL;
const HUB_MAJOR = HubGuildTemplateId.HUB_MAJOR;
const HUB_DORM = HubGuildTemplateId.HUB_DORM;
items2[3] = <View style={templateGroup}><TableRowGroup hasIcons><GuildTemplatesItem guildTemplate={hubGuildTemplatesMap[HUB_STUDY]} onGuildTemplatePress={value4} /><GuildTemplatesItem guildTemplate={hubGuildTemplatesMap[HUB_SCHOOL_CLUB]} onGuildTemplatePress={value4} /><GuildTemplatesItem guildTemplate={hubGuildTemplatesMap[HUB_CLASS]} onGuildTemplatePress={value4} /><GuildTemplatesItem guildTemplate={hubGuildTemplatesMap[HUB_SOCIAL]} onGuildTemplatePress={value4} /><GuildTemplatesItem guildTemplate={hubGuildTemplatesMap[HUB_MAJOR]} onGuildTemplatePress={value4} /><GuildTemplatesItem guildTemplate={hubGuildTemplatesMap[HUB_DORM]} onGuildTemplatePress={value4} /></TableRowGroup></View>;
return (
<GuildDirectoryAddModalScreen>
<ScrollView contentContainerStyle={object}>
{items2}
</ScrollView>
</GuildDirectoryAddModalScreen>
);
}
function GuildTemplatesItemIcon() { // fn#75733, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9838:603, owner: GuildTemplatesItem.Icon, offset: 0x01db704c, size: 107 bytes, params: 1, frame: 16
const Icon = (require(1305) /* metro dependency 1305: native */).Icon;
const GUILD_TEMPLATE_ICONS = (require(9654) /* metro dependency 9654: GuildDirectoryTemplatesIcons */).GUILD_TEMPLATE_ICONS;
return (
<Icon
source={GUILD_TEMPLATE_ICONS[guildTemplate.id]}
disableColor
style={{'width': 48, 'height': 48}}
/>
);
}
function _fun75737(a0) { // fn#75737, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9838:892, offset: 0x01db74bb, size: 65 bytes, params: 2, frame: 14
const binding = env0_2;
const push = binding.push;
const CREATE = GuildDirectoryCreate.CREATE;
Reflect.apply(push, binding, [CREATE, {onHubGuildInfoSet: env0_1.current.onHubGuildInfoSet, guildTemplate: a0}]);
}
@@ -0,0 +1,101 @@
/* Metro module 9647; source: modules/directory_channels/useAvailableAndAddedGuilds.tsx; dependencies: [5, 57, 31, 1867, 3784, 4896, 9640, 661, 566, 4594, 9644, 2] */
function _fun75697(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#75697, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9833:6, offset: 0x01db5f40, size: 243 bytes, params: 8, frame: 20
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const env0_4 = importDefault(5) /* metro dependency 5 */;
const env0_5 = importDefault(57) /* metro dependency 57 */;
const env0_6 = importAll(31) /* metro dependency 31 */;
const guildStore = importDefault(1867) /* metro dependency 1867: GuildStore */;
const permissionStore = importDefault(3784) /* metro dependency 3784: PermissionStore */;
const sortedGuildStore = importDefault(4896) /* metro dependency 4896: SortedGuildStore */;
const guildDirectoryStore = importDefault(9640) /* metro dependency 9640: GuildDirectoryStore */;
const env0_11 = (require(661) /* metro dependency 661: Constants */).Permissions;
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/directory_channels/useAvailableAndAddedGuilds.tsx');
exports.default = _default_75698;
}
function _default_75698(a0, a1) { // fn#75698, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9833:197, offset: 0x01db6033, size: 297 bytes, params: 3, frame: 23
var object2;
const env0_0 = a0;
const env0_1 = a1;
const binding = env0_6;
const [property, env0_2] = env0_5(binding.useState(false), 2);
const adminGuildEntryIds = (require(566) /* metro dependency 566: flux */).useStateFromStores([GuildDirectoryStore],
function() {
return GuildDirectoryStore.getAdminGuildEntryIds(require);
});
const value4 = (require(566) /* metro dependency 566: flux */).useStateFromStoresArray([SortedGuildStore,
GuildStore, PermissionStore], _fun75700, [a0]);
(importDefault(4594) /* metro dependency 4594: useMountEffect */)(_fun75702);
object2 = {};
object2.availableGuilds = binding.useMemo(_fun75706, [value4, adminGuildEntryIds]);
object2.addedGuilds = binding.useMemo(_fun75708, [value4, adminGuildEntryIds]);
object2.loading = property;
return object2;
}
function _fun75700() { // fn#75700, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9833:359, offset: 0x01db6179, size: 46 bytes, params: 1, frame: 12
var environment;
const value = environment.__proto__;
SortedGuildStore.getFlattenedGuildIds().forEach(_fun75701);
return [];
}
function _fun75702() { // fn#75702, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9833:525, offset: 0x01db620a, size: 29 bytes, params: 1, frame: 11
env1_4(_fun75704)();
}
function _fun75706() { // fn#75706, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9833:652, offset: 0x01db62a5, size: 28 bytes, params: 1, frame: 11
return env0_4.filter(_fun75707);
}
function _fun75708() { // fn#75708, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9833:726, offset: 0x01db62ec, size: 28 bytes, params: 1, frame: 11
return env0_4.filter(_fun75709);
}
function _fun75701(a0) { // fn#75701, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9833:418, offset: 0x01db61a7, size: 99 bytes, params: 2, frame: 14
var id;
let value = environment.__proto__.__proto__;
const guild = GuildStore.getGuild(a0);
let r0 = guild != null && PermissionStore.can(Permissions.ADMINISTRATOR, guild);
if (r0) {
id = guild.id;
value = environment.__proto__;
value = id !== env1_0;
r0 = value;
}
if (r0) {
env0_0.push(guild);
}
}
function* _fun75704() { // fn#75704, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9833:533, offset: 0x01db6232, size: 115 bytes, params: 1, frame: 18
var environment;
if (true) {
value = environment.__proto__.__proto__;
importAll(true);
var binding = env3_2;
var value4 = binding(env3_3[10]);
var fetchGuildEntriesForIds = value4.fetchGuildEntriesForIds;
binding = env2_4;
yield Reflect.apply(fetchGuildEntriesForIds, value4, [importDefault, binding.map(function(a0) {
return a0.id;
})]);
if (false) {
return undefined;
}
importAll(false);
}
}
function _fun75707(a0) { // fn#75707, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9833:666, offset: 0x01db62c1, size: 43 bytes, params: 2, frame: 12
const value = environment.__proto__;
return !(adminGuildEntryIds != null && adminGuildEntryIds.has(a0.id));
}
function _fun75709(a0) { // fn#75709, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9833:740, offset: 0x01db6308, size: 42 bytes, params: 2, frame: 12
const value = environment.__proto__;
return adminGuildEntryIds?.has(a0.id);
}
@@ -0,0 +1,51 @@
/* Metro module 9635; source: modules/directory_channels/useCanManageGuildDirectoryEntry.tsx; dependencies: [1379, 1867, 3784, 661, 566, 2] */
function _fun75572(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#75572, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9821:6, offset: 0x01db2701, size: 181 bytes, params: 8, frame: 19
let env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const channelStore = importDefault(1379) /* metro dependency 1379: ChannelStore */;
const guildStore = importDefault(1867) /* metro dependency 1867: GuildStore */;
const permissionStore = importDefault(3784) /* metro dependency 3784: PermissionStore */;
const env0_5 = (require(661) /* metro dependency 661: Constants */).Permissions;
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/directory_channels/useCanManageGuildDirectoryEntry.tsx');
exports.default = useCanManageGuildDirectoryEntry;
exports.useCanCreateOrAddGuildInDirectory = function(a0) {
var env0_0 = a0;
return require(dependencyMap[4]).useStateFromStores([PermissionStore], _fun75579);
};
}
function useCanManageGuildDirectoryEntry(a0) { // fn#75573, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9821:254, offset: 0x01db27b6, size: 219 bytes, params: 2, frame: 19
const env0_0 = a0;
const env0_1 = (require(566) /* metro dependency 566: flux */).useStateFromStores([GuildStore], _fun75574);
const env0_2 = (require(566) /* metro dependency 566: flux */).useStateFromStores([ChannelStore], _fun75575);
const value = (require(566) /* metro dependency 566: flux */).useStateFromStores([PermissionStore], function() {
var ADMINISTRATOR = Permissions.ADMINISTRATOR;
return PermissionStore.can(ADMINISTRATOR, guild);
});
const value2 = (require(566) /* metro dependency 566: flux */).useStateFromStores([PermissionStore], function() {
var MANAGE_MESSAGES = Permissions.MANAGE_MESSAGES;
return PermissionStore.can(MANAGE_MESSAGES, channel);
});
return {isEntryAdmin: value, canEdit: value || value2, canRemove: value || value2};
}
function useCanCreateOrAddGuildInDirectory(a0) { // fn#75578, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9821:650, offset: 0x01db291c, size: 66 bytes, params: 2, frame: 14
const env0_0 = a0;
return (require(566) /* metro dependency 566: flux */).useStateFromStores([PermissionStore], _fun75579);
}
function _fun75574() { // fn#75574, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9821:336, offset: 0x01db2891, size: 32 bytes, params: 1, frame: 11
return GuildStore.getGuild(env0_0.guildId);
}
function _fun75575() { // fn#75575, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9821:398, offset: 0x01db28b1, size: 31 bytes, params: 1, frame: 11
return ChannelStore.getChannel(env0_0.channelId);
}
function _fun75579() { // fn#75579, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9821:735, offset: 0x01db295e, size: 38 bytes, params: 1, frame: 13
const can = PermissionStore.can;
const SEND_MESSAGES = Permissions.SEND_MESSAGES;
return Reflect.apply(can, PermissionStore, [SEND_MESSAGES, env0_0]);
}