Initial commit
This commit is contained in:
commit
af3b49f756
16065 files changed
+2938410
No files matched your search
@@ -0,0 +1,139 @@
|
||||
/* Metro module 14726; source: modules/guild_sidebar/useGuildActionRows.tsx; dependencies: [57, 4869, 5101, 661, 11839, 6855, 6840, 6853, 6829, 5103, 632, 5104, 11810, 6856, 12310, 14555, 14691, 6858, 6857, 14727, 7013, 1365, 2] */
|
||||
function _fun111036(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#111036, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14923:6, offset: 0x02390d3b, size: 178 bytes, params: 8, frame: 19
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_3 = importDefault(57) /* metro dependency 57 */;
|
||||
const guildOnboardingHomeSettingsStore = importDefault(4869) /* metro dependency 4869: GuildOnboardingHomeSettingsStore */;
|
||||
const env0_5 = (require(5101) /* metro dependency 5101: GuildSidebarConstants */).ChannelListGuildActionRow;
|
||||
const env0_6 = (require(661) /* metro dependency 661: Constants */).GuildFeatures;
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/guild_sidebar/useGuildActionRows.tsx');
|
||||
exports.default = useGuildActionRows;
|
||||
}
|
||||
|
||||
function useGuildActionRows(a0) { // fn#111037, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14923:265, offset: 0x02390ded, size: 1079 bytes, params: 2, frame: 36
|
||||
var r15;
|
||||
const env0_0 = a0;
|
||||
const value2 = (importDefault(11839) /* metro dependency 11839: useCanSeeEventsInChannelList */)(a0.id);
|
||||
const value3 = (require(6855) /* metro dependency 6855: canReviewGuildMemberApplications */).useCanReviewGuildMemberApplications(a0.id);
|
||||
const value4 = (require(6840) /* metro dependency 6840: useRoleSubscriptionsVisibleInGuild */).useShowRoleSubscriptionsInChannelList(a0.id);
|
||||
const value5 = (require(6853) /* metro dependency 6853: useGuildShopVisibleInGuild */).useGuildShopVisibleInGuild(a0);
|
||||
const hasSocialLayerStorefront2 = (require(6829) /* metro dependency 6829: SlayerStorefrontUtils */).hasSocialLayerStorefront(a0);
|
||||
const value6 = (require(5103) /* metro dependency 5103: OnboardingHomeUtils */).useCanSeeOnboardingHome(a0.id);
|
||||
const value7 = (require(632) /* metro dependency 632: useStateFromStores */).useStateFromStores([GuildOnboardingHomeSettingsStore],
|
||||
_fun111038, [a0.id]);
|
||||
const value8 = (importDefault(5104) /* metro dependency 5104: useIsNewMember */)(a0.id);
|
||||
const value9 = (require(11810) /* metro dependency 11810: MemberActionUtils */).useAllActionsCompleted(a0.id);
|
||||
(require(6856) /* metro dependency 6856: MemberSafetyPermissionsUtils */).useCanAccessMemberSafetyPage(a0.id);
|
||||
items2 = [];
|
||||
let features = a0.features;
|
||||
let has = features.has;
|
||||
const HUB = GuildFeatures.HUB;
|
||||
const value10 = Reflect.apply(has, features, [HUB]);
|
||||
features = a0.features;
|
||||
has = features.has;
|
||||
const COMMUNITY = GuildFeatures.COMMUNITY;
|
||||
const value11 = Reflect.apply(has, features, [COMMUNITY]);
|
||||
features = a0.features;
|
||||
has = features.has;
|
||||
const ENABLED_MODERATION_EXPERIENCE_FOR_NON_COMMUNITY = GuildFeatures.ENABLED_MODERATION_EXPERIENCE_FOR_NON_COMMUNITY;
|
||||
Reflect.apply(has, features, [ENABLED_MODERATION_EXPERIENCE_FOR_NON_COMMUNITY]);
|
||||
const value12 = (importDefault(12310) /* metro dependency 12310: useHasAllocateBoostPermission */)(a0.id);
|
||||
const value13 = (require(14555) /* metro dependency 14555: MobileBoostProgressBarExperiment */).useMobileBoostProgressBarEnabled('useGuildActionRows');
|
||||
const value14 = (importDefault(14691) /* metro dependency 14691: useTotalPossibleBoostCount */)(a0);
|
||||
const value15 = (require(6858) /* metro dependency 6858: GuildOfficialMessageUtils */).useIsGuildOfficialMessagesEnabled(a0.id,
|
||||
'useGuildActionRows');
|
||||
const value16 = (require(6857) /* metro dependency 6857: GameServerExperiment */).useGameServerEnabled(a0.id,
|
||||
'useGuildActionRows');
|
||||
features = a0.features;
|
||||
has = features.has;
|
||||
const GAME_SERVERS = GuildFeatures.GAME_SERVERS;
|
||||
const value17 = Reflect.apply(has, features, [GAME_SERVERS]);
|
||||
const value18 = (require(14727) /* metro dependency 14727: GameServerTabAlwaysOnExperiment */).useIsGameServerTabAlwaysOnEnabled('useGuildActionRows');
|
||||
const useSelectedDismissibleContentModule = require(7013) /* metro dependency 7013: useSelectedDismissibleContent */;
|
||||
const useSelectedDismissibleContent = useSelectedDismissibleContentModule.useSelectedDismissibleContent;
|
||||
const property = env0_3(Reflect.apply(useSelectedDismissibleContent, useSelectedDismissibleContentModule,
|
||||
[value16 && value18 ? value17 ? [] : [(require(1365) /* metro dependency 1365: dismissible_content */).DismissibleContent.EMPTY_GAME_SERVER_TAB] : [],
|
||||
undefined, true]), 1)[0];
|
||||
if (value10) {
|
||||
items2.push(ChannelListGuildActionRow.GUILD_HUB_HEADER_OPTIONS);
|
||||
}
|
||||
if (value9) {
|
||||
r15 = a0.premiumProgressBarEnabled && value13;
|
||||
r15 = r15 && value14 > 0;
|
||||
if (r15) {
|
||||
items2.push(ChannelListGuildActionRow.GUILD_PREMIUM_PROGRESS_BAR);
|
||||
}
|
||||
} else if (value6) {
|
||||
if (value8) {
|
||||
if (value7 == null) {
|
||||
r15 = a0.premiumProgressBarEnabled && value13;
|
||||
r15 = r15 && value14 > 0;
|
||||
if (r15) {
|
||||
items2.push(ChannelListGuildActionRow.GUILD_PREMIUM_PROGRESS_BAR);
|
||||
}
|
||||
} else if (value7.length > 0) {
|
||||
items2.push(ChannelListGuildActionRow.GUILD_NEW_MEMBER_ACTIONS_PROGRESS_BAR);
|
||||
} else {
|
||||
r15 = a0.premiumProgressBarEnabled && value13;
|
||||
r15 = r15 && value14 > 0;
|
||||
if (r15) {
|
||||
items2.push(ChannelListGuildActionRow.GUILD_PREMIUM_PROGRESS_BAR);
|
||||
}
|
||||
}
|
||||
} else {
|
||||
r15 = a0.premiumProgressBarEnabled && value13;
|
||||
r15 = r15 && value14 > 0;
|
||||
if (r15) {
|
||||
items2.push(ChannelListGuildActionRow.GUILD_PREMIUM_PROGRESS_BAR);
|
||||
}
|
||||
}
|
||||
} else {
|
||||
r15 = a0.premiumProgressBarEnabled && value13;
|
||||
r15 = r15 && value14 > 0;
|
||||
if (r15) {
|
||||
items2.push(ChannelListGuildActionRow.GUILD_PREMIUM_PROGRESS_BAR);
|
||||
}
|
||||
}
|
||||
const value22 = !value10;
|
||||
if (value10 ? value22 : value6) {
|
||||
items2.push(ChannelListGuildActionRow.GUILD_HOME);
|
||||
}
|
||||
if (value2) {
|
||||
items2.push(ChannelListGuildActionRow.GUILD_SCHEDULED_EVENTS);
|
||||
}
|
||||
if (value10 ? value22 : value11) {
|
||||
items2.push(ChannelListGuildActionRow.CHANNELS_AND_ROLES);
|
||||
}
|
||||
if (value4) {
|
||||
items2.push(ChannelListGuildActionRow.GUILD_ROLE_SUBSCRIPTIONS);
|
||||
}
|
||||
if (value5) {
|
||||
items2.push(ChannelListGuildActionRow.GUILD_SHOP);
|
||||
}
|
||||
if (hasSocialLayerStorefront2) {
|
||||
items2.push(ChannelListGuildActionRow.GUILD_GAME_SHOP);
|
||||
}
|
||||
if (value3 && a0.features.has(GuildFeatures.MEMBER_VERIFICATION_MANUAL_APPROVAL)) {
|
||||
items2.push(ChannelListGuildActionRow.GUILD_MOD_DASH_MEMBER_SAFETY);
|
||||
}
|
||||
if (value12) {
|
||||
items2.push(ChannelListGuildActionRow.GUILD_BOOSTS);
|
||||
}
|
||||
if (value15) {
|
||||
items2.push(ChannelListGuildActionRow.GUILD_OFFICIAL_MESSAGES);
|
||||
}
|
||||
if (value16) {
|
||||
if (value17) {
|
||||
items2.push(ChannelListGuildActionRow.GAME_SERVERS);
|
||||
} else if (property != null) {
|
||||
items2.push(ChannelListGuildActionRow.GAME_SERVERS_EMPTY);
|
||||
}
|
||||
}
|
||||
return items2;
|
||||
}
|
||||
|
||||
function _fun111038() { // fn#111038, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14923:575, offset: 0x02391224, size: 32 bytes, params: 1, frame: 11
|
||||
return GuildOnboardingHomeSettingsStore.getNewMemberActions(env0_0.id);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user