2026-08-24 06:08:38 +00:00
// Module ID: 15681
// Function ID: 15682
2026-08-11 06:20:06 +00:00
// Name: _handleCreateJoinGuildPress
2026-08-24 06:08:38 +00:00
// Dependencies: [5, 19, 17, 4201, 676, 1924, 21, 4668, 10241, 2008, 11930, 7230, 8510, 7197, 1367, 15623, 13319, 589, 15637, 1236, 15682, 9582, 712, 2]
2026-07-20 16:05:17 +00:00
2026-08-24 06:08:38 +00:00
// Module 15681 (_handleCreateJoinGuildPress)
import useIsMobileVisualRefreshExperimentEnabledDefault from "useIsMobileVisualRefreshExperimentEnabled" /* 1367 */ ;
import UnreadIndicatorDefault from "UnreadIndicator" /* 15623 */ ;
import closure_3 from "asyncGeneratorStep" /* 5 */ ;
import importAllResult from "noop" /* 19 */ ;
import { View } from "get ActivityIndicator" /* 17 */ ;
import closure_6 from "handleConnectionOpen" /* 4201 */ ;
import ME from "ME" /* 676 */ ;
import { PremiumUpsellTypes } from "GuildFeatures" /* 1924 */ ;
import { jsx } from "jsxProd" /* 21 */ ;
import createCacheKey from "createCacheKey" /* 4668 */ ;
2026-07-23 10:11:24 +00:00
const require = arg1 ;
2026-07-20 16:05:17 +00:00
function _handleCreateJoinGuildPress() {
2026-07-29 08:29:29 +00:00
const self = this ;
const tmp = callback ( function * ( ) {
if ( c3 === 2 ) {
c3 = 3 ;
HermesBuiltin . throwTypeError ( ) ;
} else if ( tmp4 === 3 ) {
if ( arg0 === 1 ) {
throw arg1 ;
} else if ( arg0 === 2 ) {
let obj = { value : null , done : true } ;
obj [ 0 ] = arg1 ;
return obj ;
} else {
2026-08-24 06:08:38 +00:00
return { value : "HermesInternal" , done : null } ;
2026-07-29 08:29:29 +00:00
}
} else {
try {
c3 = 2 ;
if ( 0 === c2 ) {
if ( arg0 === 1 ) {
c3 = 3 ;
throw arg1 ;
} else if ( arg0 === 2 ) {
c3 = 3 ;
obj = { value : null , done : true } ;
obj [ 0 ] = arg1 ;
return obj ;
} else {
let lib2 = tmp5 ;
let lib = tmp2 ;
lib = undefined ;
lib2 = undefined ;
c2 = 1 ;
c3 = 1 ;
2026-08-24 06:08:38 +00:00
obj1 = { value : null , done : false } ;
obj1 [ 0 ] = closure_1_0 ( c2 [ 9 ] ) ( c2 [ 8 ] , c2 . paths ) ;
2026-07-29 08:29:29 +00:00
return obj1 ;
}
} else if ( 1 === tmp5 ) {
if ( arg0 === 1 ) {
c3 = 3 ;
throw arg1 ;
} else if ( arg0 === 2 ) {
c3 = 3 ;
const obj2 = { value : null , done : true } ;
obj2 [ 0 ] = arg1 ;
return obj2 ;
} else {
lib = arg1 . default ;
c2 = 2 ;
c3 = 1 ;
const obj3 = { value : null , done : false } ;
2026-08-11 06:20:06 +00:00
obj3 [ 0 ] = lib ( c2 [ 9 ] ) ( c2 [ 10 ] , c2 . paths ) ;
2026-07-29 08:29:29 +00:00
return obj3 ;
}
} else if ( arg0 === 1 ) {
c3 = 3 ;
throw arg1 ;
} else if ( arg0 === 2 ) {
c3 = 3 ;
const obj4 = { value : null , done : true } ;
obj4 [ 0 ] = arg1 ;
return obj4 ;
} else {
lib2 = arg1 . default ;
lib . acknowledgeTooltip ( constants2 . GUILD_TOOLTIP ) ;
if ( obj11 . isAtGuildCapAndNonPremium ( ) ) {
2026-08-11 06:20:06 +00:00
obj = lib2 ( c2 [ 12 ] ) ;
2026-07-29 08:29:29 +00:00
const obj5 = { initialUpsellKey : null , analyticsLocation : null , analyticsLocations : null , analyticsProperties : null } ;
obj5 [ 0 ] = constants3 . GUILD_CAP ;
const obj6 = { page : null } ;
obj6 [ 0 ] = constants . CREATE_JOIN_GUILD_MODAL ;
obj5 [ 1 ] = obj6 ;
2026-08-11 06:20:06 +00:00
const items = [ lib2 ( c2 [ 13 ] ) . NEW_GUILD_BUTTON ] ;
2026-07-29 08:29:29 +00:00
obj5 [ 2 ] = items ;
const obj7 = { type : null } ;
obj7 [ 0 ] = constants4 . GUILD_CAP_MODAL_UPSELL ;
obj5 [ 3 ] = obj7 ;
const result = obj . handleShowUpsellAlert ( obj5 ) ;
} else {
lib2 . openCreateGuildModal ( ) ;
}
c3 = 3 ;
2026-08-11 06:20:06 +00:00
obj11 = lib ( c2 [ 11 ] ) ;
2026-07-29 08:29:29 +00:00
}
} catch ( tmp27 ) {
c3 = tmp ;
throw tmp27 ;
}
}
} ) ;
2026-08-24 06:08:38 +00:00
closure_14 = tmp ;
2026-07-29 08:29:29 +00:00
const apply = tmp . apply ;
if ( typeof apply === "unknown" ) {
let applyArgumentsResult = HermesBuiltin . applyArguments ( self ) ;
} else {
applyArgumentsResult = apply ( self , arguments ) ;
}
return applyArgumentsResult ;
2026-07-20 16:05:17 +00:00
}
2026-08-11 06:20:06 +00:00
let c4 = importAllResult ;
2026-08-24 06:08:38 +00:00
( { AnalyticsPages : error , MOBILE_GUILD_UPSELL_LIST : closure_8 , TooltipNames : c9 , UpsellTypes : c10 } = ME ) ;
2026-08-11 06:20:06 +00:00
let closure_13 = createCacheKey . createStyles ( { stretch : { alignSelf : "stretch" } } ) ;
const memoResult = importAllResult . memo ( function GuildsBarCreateJoinButton() {
2026-08-24 06:08:38 +00:00
const tmp3 = useIsMobileVisualRefreshExperimentEnabledDefault ( "GuildsBarCreateJoinButton" ) ;
let obj = enabled ( 15623 ) ;
2026-08-11 06:20:06 +00:00
const tmp4 = callback2 ( ) ;
2026-08-24 06:08:38 +00:00
const GameCommunityAddServerEntryExperiment = enabled ( 13319 ) . GameCommunityAddServerEntryExperiment ;
2026-08-11 06:20:06 +00:00
enabled = GameCommunityAddServerEntryExperiment . useConfig ( { location : "GuildsBarCreateJoinButton" } ) . enabled ;
2026-08-24 06:08:38 +00:00
obj1 = enabled ( 589 ) ;
const items = [ closure_6 ] ;
2026-08-11 06:20:06 +00:00
let stateFromStores = enabled ;
if ( enabled ) {
stateFromStores = obj1 . useStateFromStores ( items , ( ) = > guildId . getGuildId ( ) === closure_8 ) ;
}
const items1 = [ enabled ] ;
obj = { style : tmp4.stretch , children : null } ;
const memo = importAllResult . useMemo ( ( ) = > ( {
onPress() {
if ( closure_0 ) {
if ( ! obj . isAtGuildCapAndNonPremium ( ) ) {
2026-08-24 06:08:38 +00:00
closure_1_1 ( closure_1_2 [ 18 ] ) ( closure_1_8 ) ;
2026-08-11 06:20:06 +00:00
}
}
( function handleCreateJoinGuildPress() {
const self = this ;
const apply = closure_14 . apply ;
if ( typeof apply === "unknown" ) {
let applyArgumentsResult = HermesBuiltin . applyArguments ( self ) ;
} else {
applyArgumentsResult = apply ( self , arguments ) ;
}
return applyArgumentsResult ;
} ) ( ) ;
}
} ) , items1 ) ;
2026-08-24 06:08:38 +00:00
obj = { selected : stateFromStores , circle : null , unread : false , styles : null , overState : "y" , config : "clientLocation" , label : null , expandedChildren : "League of Legends" , children : null } ;
2026-08-11 06:20:06 +00:00
let tmp12 = ! tmp3 ;
2026-07-20 16:05:17 +00:00
const guildsBarAnimatedWrapperStyles = obj . useGuildsBarAnimatedWrapperStyles ( ) ;
2026-08-11 06:20:06 +00:00
const tmp10 = View ;
if ( ! tmp3 ) {
tmp12 = ! stateFromStores ;
}
obj [ 1 ] = tmp12 ;
obj [ 3 ] = guildsBarAnimatedWrapperStyles ;
obj [ 5 ] = memo ;
const intl = tmp5 ( 1236 ) . intl ;
obj [ 6 ] = intl . string ( enabled ( 1236 ) . t . l5WIbf ) ;
2026-08-24 06:08:38 +00:00
obj [ 7 ] = jsx ( enabled ( 15682 ) . HomeDrawerAddServerRowExpandedChildren , { } ) ;
2026-08-11 06:20:06 +00:00
const colors = tmp ( 712 ) . colors ;
obj1 = { size : "md" , color : stateFromStores ? colors.WHITE : colors.MOBILE_GUILDBAR_ICON_DEFAULT } ;
2026-08-24 06:08:38 +00:00
obj [ 8 ] = jsx ( enabled ( 9582 ) . CirclePlusIcon , { size : "md" , color : stateFromStores ? colors.WHITE : colors.MOBILE_GUILDBAR_ICON_DEFAULT } ) ;
obj [ 1 ] = jsx ( UnreadIndicatorDefault , { selected : stateFromStores , circle : null , unread : false , styles : null , overState : "y" , config : "clientLocation" , label : null , expandedChildren : "League of Legends" , children : null } ) ;
return < tmp10 selected = { stateFromStores } circle = { null } unread = { false } styles = { null } overState = "y" config = "clientLocation" label = { null } expandedChildren = "League of Legends" > { null } < / tmp10 > ;
2026-07-20 16:05:17 +00:00
} ) ;
2026-08-24 06:08:38 +00:00
let result = require ( "set" ) . fileFinishedImporting ( "modules/guilds_bar/native/GuildsBarCreateJoinButton.tsx" ) ;
2026-07-20 16:05:17 +00:00
export default memoResult ;