2026-08-05 07:35:12 +00:00
// Module ID: 11814
// Function ID: 11815
2026-07-20 16:05:17 +00:00
// Name: GuildPowerupsPerkCard
2026-08-05 07:35:12 +00:00
// Dependencies: [19, 17, 21, 4255, 712, 4191, 4101, 11811, 11768, 4676, 4251, 11769, 1297, 1236, 2]
2026-07-20 16:05:17 +00:00
// Exports: default
2026-08-05 07:35:12 +00:00
// Module 11814 (GuildPowerupsPerkCard)
2026-07-29 08:29:29 +00:00
import "noop" ;
2026-07-23 10:11:24 +00:00
import { View } from "get ActivityIndicator" ;
import jsxProd from "jsxProd" ;
2026-07-29 08:29:29 +00:00
import createCacheKey from "createCacheKey" ;
2026-07-23 10:11:24 +00:00
2026-07-29 08:29:29 +00:00
let c4 ;
let c5 ;
2026-07-23 10:11:24 +00:00
const require = arg1 ;
2026-07-29 08:29:29 +00:00
( { jsx : c4 , jsxs : c5 } = jsxProd ) ;
createCacheKey = { container : null , card : null , contentContainer : null , imageContainer : null , gradient : null , headerContainer : null , badge : null } ;
createCacheKey = { marginHorizontal : require ( "Themes" ) . space . PX_16 } ;
createCacheKey [ 0 ] = createCacheKey ;
createCacheKey [ 1 ] = { padding : 0 , overflow : "hidden" } ;
createCacheKey [ 2 ] = { gap : require ( "Themes" ) . space . PX_16 , padding : require ( "Themes" ) . space . PX_16 } ;
createCacheKey [ 3 ] = { width : "100%" , height : 160 } ;
createCacheKey [ 4 ] = { position : "absolute" , left : 0 , right : 0 , top : 0 , height : "100%" } ;
let obj1 = { gap : require ( "Themes" ) . space . PX_16 , padding : require ( "Themes" ) . space . PX_16 } ;
createCacheKey [ 5 ] = { gap : require ( "Themes" ) . space . PX_4 } ;
const obj2 = { gap : require ( "Themes" ) . space . PX_4 } ;
createCacheKey [ 6 ] = { position : "absolute" , top : require ( "Themes" ) . space . PX_12 , right : require ( "Themes" ) . space . PX_12 } ;
createCacheKey = createCacheKey . createStyles ( createCacheKey ) ;
let obj3 = { position : "absolute" , top : require ( "Themes" ) . space . PX_12 , right : require ( "Themes" ) . space . PX_12 } ;
2026-07-23 10:11:24 +00:00
const result = require ( "jsxProd" ) . fileFinishedImporting ( "modules/premium/powerups/native/GuildPowerupsPerkCard.tsx" ) ;
2026-07-20 16:05:17 +00:00
export default function GuildPowerupsPerkCard ( arg0 ) {
let badge ;
let description ;
let imageUrl ;
let isImageAnimated ;
let onPress ;
let riveComponent ;
let status ;
let style ;
let title ;
( { imageUrl , isImageAnimated } = arg0 ) ;
( { title , description } = arg0 ) ;
if ( isImageAnimated === undefined ) {
isImageAnimated = true ;
}
( { riveComponent , status , badge } = arg0 ) ;
( { style , onPress } = arg0 ) ;
2026-07-29 08:29:29 +00:00
const merged = Object . assign ( arg0 , Object . create ( null ) ) ;
const tmp2 = createCacheKey ( ) ;
2026-08-05 07:35:12 +00:00
let obj = require ( 4101 ) /* AccessibilityAnnouncer */ ;
const tmp5 = importDefault ( 4191 ) ( ) ;
2026-07-29 08:29:29 +00:00
obj = { containerStyle : items , style : tmp2.card , status , onPress , children : null } ;
items = [ tmp2 . container , style ] ;
obj = { style : tmp2.imageContainer , children : null } ;
2026-08-05 07:35:12 +00:00
let tmp3Result = tmp3 ( 11811 ) ;
2026-07-29 08:29:29 +00:00
if ( riveComponent == null ) {
2026-08-05 07:35:12 +00:00
tmp3Result = tmp3 ( 11768 ) ;
2026-07-29 08:29:29 +00:00
if ( imageUrl == null ) {
imageUrl = "" ;
2026-07-20 16:05:17 +00:00
}
2026-07-29 08:29:29 +00:00
const obj1 = { imageUrl : null , isAnimated : null } ;
obj1 [ 0 ] = imageUrl ;
obj1 [ 1 ] = isImageAnimated ;
riveComponent = callback ( tmp3Result , obj1 ) ;
const tmp11 = callback ;
2026-07-20 16:05:17 +00:00
}
2026-07-29 08:29:29 +00:00
const items1 = [ riveComponent , ] ;
2026-08-05 07:35:12 +00:00
const tmp7 = obj . isThemeDark ( importDefault ( 4191 ) ( ) ) ? [ "#0f101100" , "#0f101166" ] : [ "#0f101100" , "#0f10111a" ] ;
items1 [ 1 ] = callback ( importDefault ( 4676 ) , { colors : obj.isThemeDark ( importDefault ( 4191 ) ( ) ) ? [ "#0f101100" , "#0f101166" ] : [ "#0f101100" , "#0f10111a" ] , style : tmp2.gradient } ) ;
2026-07-29 08:29:29 +00:00
obj [ 1 ] = items1 ;
const items2 = [ closure_5 ( View , obj ) , , , ] ;
const obj3 = { style : tmp2.contentContainer , children : null } ;
const obj4 = { style : tmp2.headerContainer , children : null } ;
2026-08-05 07:35:12 +00:00
const items3 = [ callback ( require ( 4251 ) /* Text */ . Text , { variant : "heading-md/bold" , children : title } ) , callback ( require ( 4251 ) /* Text */ . Text , { variant : "text-sm/medium" , children : description } ) ] ;
2026-07-29 08:29:29 +00:00
obj4 [ 1 ] = items3 ;
const items4 = [ closure_5 ( View , obj4 ) , ] ;
2026-07-20 16:05:17 +00:00
const obj5 = { } ;
const merged1 = Object . assign ( merged ) ;
2026-07-29 08:29:29 +00:00
obj5 . status = status ;
2026-08-05 07:35:12 +00:00
items4 [ 1 ] = callback ( require ( 11769 ) /* GuildPowerupCardFooterActive */ . GuildPowerupsCardFooter , obj5 ) ;
2026-07-29 08:29:29 +00:00
obj3 [ 1 ] = items4 ;
items2 [ 1 ] = closure_5 ( View , obj3 ) ;
let tmp13Result = "new" === badge ;
if ( tmp13Result ) {
const obj6 = { text : null , style : null } ;
const intl = tmp6 ( 1236 ) . intl ;
obj6 [ 0 ] = intl . string ( tmp6 ( 1236 ) . t . y2b7CA ) ;
obj6 [ 1 ] = tmp2 . badge ;
tmp13Result = tmp13 ( tmp6 ( 1297 ) . TextBadge , obj6 ) ;
2026-07-20 16:05:17 +00:00
}
2026-07-29 08:29:29 +00:00
items2 [ 2 ] = tmp13Result ;
tmp13Result = "beta" === badge ;
if ( tmp13Result ) {
const obj7 = { text : null , color : null , style : null } ;
const intl2 = tmp6 ( 1236 ) . intl ;
obj7 [ 0 ] = intl2 . string ( tmp6 ( 1236 ) . t . oW0eUd ) ;
obj7 [ 1 ] = tmp6 ( 1297 ) . BadgeColors . BRAND ;
obj7 [ 2 ] = tmp2 . badge ;
tmp13Result = tmp13 ( tmp6 ( 1297 ) . TextBadge , obj7 ) ;
2026-07-20 16:05:17 +00:00
}
2026-07-29 08:29:29 +00:00
items2 [ 3 ] = tmp13Result ;
obj [ 4 ] = items2 ;
return closure_5 ( tmp3Result , obj ) ;
2026-07-20 16:05:17 +00:00
} ;