2026-08-06 08:05:19 +00:00
// Module ID: 12727
// Function ID: 12728
2026-07-23 10:11:24 +00:00
// Name: BoostPurchaseNitroBanner
2026-08-06 08:05:19 +00:00
// Dependencies: [5, 32, 19, 17, 6809, 1891, 3935, 3936, 5779, 12728, 1905, 676, 6817, 4268, 21, 4285, 5219, 5140, 712, 4693, 5948, 4281, 1236, 3930, 12729, 12730, 12731, 12732, 12733, 12734, 7625, 3988, 589, 12735, 7253, 4221, 1297, 7541, 7542, 5354, 12736, 5744, 5407, 4130, 501, 6792, 7295, 4624, 12737, 1988, 5688, 4706, 6793, 5782, 3945, 4490, 6795, 7300, 5649, 5798, 5637, 4711, 7296, 7254, 1480, 6802, 7553, 5669, 7256, 4604, 7326, 7517, 6787, 698, 7333, 7334, 2]
2026-07-20 16:05:17 +00:00
// Exports: default
2026-08-06 08:05:19 +00:00
// Module 12727 (BoostPurchaseNitroBanner)
2026-07-29 08:29:29 +00:00
import createGuildRecordFromRust from "createGuildRecordFromRust" ;
import initialize from "initialize" ;
import importAllResult from "Stack" ;
import get_ActivityIndicator from "result" ;
2026-07-23 10:11:24 +00:00
import { useNativeCheckoutStore } from "context" ;
2026-07-29 08:29:29 +00:00
import closure_10 from "createGuildRecordFromRust" ;
import addSubscriptionPlan from "addSubscriptionPlan" ;
import reset from "reset" ;
import updateProduct from "updateProduct" ;
2026-07-23 10:11:24 +00:00
import usePremiumPlanSelectStore from "usePremiumPlanSelectStore" ;
import GuildFeatures from "GuildFeatures" ;
import ME from "ME" ;
import items from "items" ;
import { ItemPurchaseType } from "CustomCheckoutFlow" ;
2026-07-29 08:29:29 +00:00
import jsxProd from "Text" ;
import createCacheKey from "createCacheKey" ;
2026-07-23 10:11:24 +00:00
2026-07-20 16:05:17 +00:00
let Fonts ;
let USER_SETTINGS_CONTAINER_HORIZONTAL_PADDING ;
2026-07-23 10:11:24 +00:00
let closure_14 ;
let closure_15 ;
let closure_16 ;
let closure_17 ;
let closure_18 ;
let closure_19 ;
let closure_20 ;
let closure_21 ;
let closure_22 ;
let closure_23 ;
let closure_24 ;
let closure_25 ;
let closure_26 ;
let closure_27 ;
let closure_28 ;
let closure_29 ;
2026-07-24 07:16:23 +00:00
let closure_30 ;
2026-07-23 10:11:24 +00:00
let closure_32 ;
let closure_33 ;
2026-07-24 07:16:23 +00:00
let closure_34 ;
2026-07-23 10:11:24 +00:00
let closure_6 ;
2026-07-29 08:29:29 +00:00
let error ;
let metroImportAll ;
2026-07-23 10:11:24 +00:00
const require = arg1 ;
function BoostPurchaseNitroBanner() {
const tmp = callback5 ( ) ;
2026-07-29 08:29:29 +00:00
let obj = { align : "center" , spacing : null , style : null , children : null } ;
obj [ 1 ] = importDefault ( 712 ) . space . PX_12 ;
obj [ 2 ] = tmp . nitroBanner ;
2026-08-06 08:05:19 +00:00
const items = [ callback3 ( require ( 5948 ) /* AccountAgeTier10LargeBadge */ . TreasureChestBannerSpotIllustration , { width : 117 , height : 93 , accessible : false } ) , ] ;
2026-07-29 08:29:29 +00:00
obj = { align : "center" , spacing : null , children : null } ;
obj [ 1 ] = importDefault ( 712 ) . space . PX_4 ;
obj = { variant : "text-md/semibold" , color : "text-default" , style : tmp.nitroBannerText , children : null } ;
const intl = require ( 1236 ) /* getSystemLocale */ . intl ;
const obj1 = { discount : null } ;
const obj2 = { variant : "text-md/semibold" , color : "text-feedback-positive" , children : null } ;
const intl2 = require ( 1236 ) /* getSystemLocale */ . intl ;
obj2 [ 2 ] = intl2 . format ( require ( 1236 ) /* getSystemLocale */ . t . RmVM19 , { percentageOff : closure_16 } ) ;
2026-08-06 08:05:19 +00:00
obj1 [ 0 ] = callback3 ( require ( 4281 ) /* Text */ . Text , obj2 , "discount" ) ;
2026-07-29 08:29:29 +00:00
obj [ 3 ] = intl . format ( require ( 1236 ) /* getSystemLocale */ . t . jbrHpT , obj1 ) ;
2026-08-06 08:05:19 +00:00
const items1 = [ callback3 ( require ( 4281 ) /* Text */ . Text , obj ) , ] ;
2026-07-29 08:29:29 +00:00
const obj4 = { variant : "text-sm/medium" , color : "text-muted" , style : tmp.nitroBannerText , children : null } ;
const intl3 = require ( 1236 ) /* getSystemLocale */ . intl ;
obj4 [ 3 ] = intl3 . format ( require ( 1236 ) /* getSystemLocale */ . t . HYpETY , { boostCount : closure_17 } ) ;
2026-08-06 08:05:19 +00:00
items1 [ 1 ] = callback3 ( require ( 4281 ) /* Text */ . Text , obj4 ) ;
2026-07-29 08:29:29 +00:00
obj [ 2 ] = items1 ;
2026-08-06 08:05:19 +00:00
items [ 1 ] = callback4 ( require ( 4693 ) /* Stack */ . Stack , obj ) ;
2026-07-29 08:29:29 +00:00
obj [ 3 ] = items ;
2026-08-06 08:05:19 +00:00
return callback4 ( require ( 4693 ) /* Stack */ . Stack , obj ) ;
2026-07-23 10:11:24 +00:00
}
2026-07-20 16:05:17 +00:00
function getPlanDescription ( premiumTier ) {
2026-07-23 10:11:24 +00:00
let flag = arg1 ;
if ( arg1 === undefined ) {
flag = false ;
}
2026-07-20 16:05:17 +00:00
if ( null == premiumTier . premiumTier ) {
2026-07-29 08:29:29 +00:00
const intl = require ( 1236 ) /* getSystemLocale */ . intl ;
let obj = { numSubscriptions : null } ;
obj [ 0 ] = premiumTier . numPremiumGuild ;
let formatToPlainStringResult = intl . formatToPlainString ( require ( 1236 ) /* getSystemLocale */ . t . gDsyB9 , obj ) ;
2026-07-20 16:05:17 +00:00
} else if ( 0 === premiumTier . numPremiumGuild ) {
2026-08-06 08:05:19 +00:00
formatToPlainStringResult = require ( 3930 ) /* getPremiumPlanItem */ . getPremiumTypeDisplayName ( premiumTier . premiumTier ) ;
const obj3 = require ( 3930 ) /* getPremiumPlanItem */ ;
2026-07-20 16:05:17 +00:00
} else {
2026-07-29 08:29:29 +00:00
const intl2 = require ( 1236 ) /* getSystemLocale */ . intl ;
2026-07-23 10:11:24 +00:00
const formatToPlainString = intl2 . formatToPlainString ;
if ( flag ) {
2026-07-29 08:29:29 +00:00
obj = { numSubscriptions : null } ;
obj [ 0 ] = premiumTier . numPremiumGuild ;
formatToPlainStringResult = formatToPlainString ( tmp7 ( 1236 ) . t . gDsyB9 , obj ) ;
2026-07-20 16:05:17 +00:00
} else {
2026-07-24 07:16:23 +00:00
if ( premiumTier . premiumTier === closure_20 . TIER_1 ) {
2026-07-29 08:29:29 +00:00
let u6dBsN = tmp7 ( 1236 ) . t . sexoHq ;
2026-07-23 10:11:24 +00:00
} else {
2026-07-29 08:29:29 +00:00
u6dBsN = tmp7 ( 1236 ) . t . u6dBsN ;
2026-07-23 10:11:24 +00:00
}
2026-07-29 08:29:29 +00:00
obj = { num : null } ;
obj [ 0 ] = premiumTier . numPremiumGuild ;
2026-07-23 10:11:24 +00:00
formatToPlainStringResult = formatToPlainString ( u6dBsN , obj ) ;
2026-07-20 16:05:17 +00:00
}
}
return formatToPlainStringResult ;
}
2026-07-21 22:01:30 +00:00
function BoostDeltaPriceTrailing ( arg0 ) {
let interval ;
let price ;
( { price , interval } = arg0 ) ;
2026-07-29 08:29:29 +00:00
let obj = { direction : "horizontal" , align : "center" , spacing : null , children : null } ;
obj [ 2 ] = importDefault ( 712 ) . space . PX_4 ;
obj = { size : "xs" , color : null } ;
obj [ 1 ] = importDefault ( 712 ) . colors . ICON_FEEDBACK_POSITIVE ;
2026-08-06 08:05:19 +00:00
const items = [ callback3 ( require ( 7625 ) /* NitroWheelIcon */ . NitroWheelIcon , obj ) , ] ;
2026-07-29 08:29:29 +00:00
const intl = require ( 1236 ) /* getSystemLocale */ . intl ;
2026-07-21 22:01:30 +00:00
if ( interval === constants . MONTH ) {
2026-07-29 08:29:29 +00:00
rS8FA_ = tmp2 ( 1236 ) . t . AbOLNu ;
2026-07-21 22:01:30 +00:00
} else {
2026-07-29 08:29:29 +00:00
rS8FA_ = tmp2 ( 1236 ) . t [ "rS8FA+" ] ;
2026-07-21 22:01:30 +00:00
}
2026-07-29 08:29:29 +00:00
obj = { variant : "text-sm/medium" , color : "text-muted" , children : null } ;
2026-08-06 08:05:19 +00:00
obj [ 2 ] = intl . format ( rS8FA_ , { price : callback3 ( require ( 4281 ) /* Text */ . Text , { variant : "text-sm/semibold" , color : "text-feedback-positive" , children : price } , "price" ) } ) ;
items [ 1 ] = callback3 ( require ( 4281 ) /* Text */ . Text , obj ) ;
2026-07-29 08:29:29 +00:00
obj [ 3 ] = items ;
2026-08-06 08:05:19 +00:00
return closure_33 ( require ( 4693 ) /* Stack */ . Stack , obj ) ;
2026-07-21 22:01:30 +00:00
}
2026-07-20 16:05:17 +00:00
function PlanRow ( plan ) {
2026-07-23 10:11:24 +00:00
let importDefault ;
2026-07-20 16:05:17 +00:00
let subscription ;
plan = plan . plan ;
2026-07-23 10:11:24 +00:00
( { purchase : importDefault , subscription } = plan ) ;
2026-07-20 16:05:17 +00:00
let flag = plan . disabled ;
if ( flag === undefined ) {
flag = false ;
}
let flag2 = plan . hasBackground ;
if ( flag2 === undefined ) {
flag2 = false ;
}
let flag3 = plan . shouldShowModernBoostFlow ;
if ( flag3 === undefined ) {
flag3 = false ;
}
2026-07-23 10:11:24 +00:00
let flag4 = plan . showBoostOnlyLabels ;
if ( flag4 === undefined ) {
flag4 = false ;
}
2026-07-24 07:16:23 +00:00
let prop = plan . recommendedBoostCount ;
if ( prop === undefined ) {
prop = null ;
}
2026-07-23 10:11:24 +00:00
let premiumTypeFromSubscription ;
flag = undefined ;
2026-07-24 07:16:23 +00:00
const tmp2 = callback5 ( ) ;
const tmp4 = callback ( ( purchasingProductId ) = > purchasingProductId . purchasingProductId === plan . productId ) ;
2026-07-23 10:11:24 +00:00
let obj = plan ( subscription [ 31 ] ) ;
const token = obj . useToken ( importDefault ( subscription [ 18 ] ) . colors . ACTIVITY_TIMEBAR_PROGRESS_BACKGROUND ) ;
let obj1 = plan ( subscription [ 32 ] ) ;
2026-07-29 08:29:29 +00:00
let items = [ updateProduct ] ;
const tmp9 = flag ( obj1 . useStateFromStoresArray ( items , ( ) = > {
2026-07-23 10:11:24 +00:00
const items = [ outer1_13 . getProduct ( plan . productId ) , outer1_13 . isBusy ( ) ] ;
2026-07-20 16:05:17 +00:00
return items ;
} ) , 2 ) ;
2026-07-29 08:29:29 +00:00
const first = tmp9 [ 0 ] ;
2026-07-24 07:16:23 +00:00
const tmp3 = callback ( ( isPurchasing ) = > isPurchasing . isPurchasing ) ;
2026-07-23 10:11:24 +00:00
let obj2 = plan ( subscription [ 33 ] ) ;
2026-07-21 22:01:30 +00:00
const premiumTier2DeltaPriceString = obj2 . usePremiumTier2DeltaPriceString ( plan , subscription , first , flag3 ) ;
2026-07-23 10:11:24 +00:00
let obj3 = plan ( subscription [ 34 ] ) ;
2026-07-29 08:29:29 +00:00
const checkoutPlanPriceString = obj3 . useCheckoutPlanPriceString ( plan . productId , first ) ;
let tmp16 = plan . premiumTier === closure_20 . TIER_2 ;
const tmp11 = useNativeCheckoutStore ( ( isPatchOrderLoading ) = > isPatchOrderLoading . isPatchOrderLoading || isPatchOrderLoading . isCreateOrderLoading ) ;
if ( tmp16 ) {
tmp16 = 0 === plan . numPremiumGuild ;
2026-07-20 16:05:17 +00:00
}
2026-07-29 08:29:29 +00:00
let tmp17 = null ;
if ( tmp16 ) {
obj = { style : null , children : null } ;
2026-07-20 16:05:17 +00:00
const items1 = [ , ] ;
2026-07-24 07:16:23 +00:00
( { rowText : arr2 [ 0 ] , rowPlanDescriptionSubtext : arr2 [ 1 ] } = tmp2 ) ;
2026-07-29 08:29:29 +00:00
obj [ 0 ] = items1 ;
const intl = tmp5 ( tmp6 [ 22 ] ) . intl ;
obj = { num : null } ;
obj [ 0 ] = closure_17 ;
obj [ 1 ] = intl . format ( tmp5 ( tmp6 [ 22 ] ) . t . he52LA , obj ) ;
tmp17 = callback3 ( tmp5 ( tmp6 [ 36 ] ) . LegacyText , obj ) ;
}
let tmp20 = null == plan . premiumTier ;
if ( ! tmp20 ) {
tmp20 = 0 !== plan . numPremiumGuild ;
2026-07-20 16:05:17 +00:00
}
if ( null == plan . premiumTier ) {
2026-07-29 08:29:29 +00:00
let tmp7Result = tmp7 ( tmp6 [ 24 ] ) ;
2026-07-20 16:05:17 +00:00
} else if ( 0 !== plan . numPremiumGuild ) {
2026-07-29 08:29:29 +00:00
if ( plan . premiumTier === tmp15 . TIER_1 ) {
tmp7Result = tmp7 ( tmp6 [ 28 ] ) ;
2026-07-20 16:05:17 +00:00
} else {
2026-07-29 08:29:29 +00:00
tmp7Result = tmp7 ( tmp6 [ 29 ] ) ;
2026-07-20 16:05:17 +00:00
}
} else {
const premiumTier = plan . premiumTier ;
2026-07-29 08:29:29 +00:00
if ( tmp15 . TIER_0 === premiumTier ) {
tmp7Result = tmp7 ( tmp6 [ 25 ] ) ;
} else if ( tmp15 . TIER_1 === premiumTier ) {
tmp7Result = tmp7 ( tmp6 [ 26 ] ) ;
} else if ( tmp15 . TIER_2 === premiumTier ) {
tmp7Result = tmp7 ( tmp6 [ 27 ] ) ;
2026-07-20 16:05:17 +00:00
}
}
2026-07-29 08:29:29 +00:00
const intl2 = tmp5 ( tmp6 [ 22 ] ) . intl ;
2026-07-20 16:05:17 +00:00
if ( plan . interval === constants . MONTH ) {
2026-07-29 08:29:29 +00:00
rS8FA_ = tmp5 ( tmp6 [ 22 ] ) . t . AbOLNu ;
2026-07-20 16:05:17 +00:00
} else {
2026-07-29 08:29:29 +00:00
rS8FA_ = tmp5 ( tmp6 [ 22 ] ) . t [ "rS8FA+" ] ;
}
let tmp22 = premiumTier2DeltaPriceString ;
if ( premiumTier2DeltaPriceString == null ) {
tmp22 = checkoutPlanPriceString ;
}
if ( tmp22 == null ) {
tmp22 = closure_18 ;
2026-07-20 16:05:17 +00:00
}
2026-07-29 08:29:29 +00:00
const formatToPlainStringResult = intl2 . formatToPlainString ( rS8FA_ , { price : tmp22 } ) ;
if ( tmp16 ) {
const intl3 = tmp5 ( tmp6 [ 22 ] ) . intl ;
obj1 = { num : null } ;
obj1 [ 0 ] = closure_17 ;
let formatToPlainStringResult1 = intl3 . formatToPlainString ( tmp5 ( tmp6 [ 22 ] ) . t . RTaZb4 , obj1 ) ;
2026-07-20 16:05:17 +00:00
}
2026-07-23 10:11:24 +00:00
premiumTypeFromSubscription = null ;
2026-07-20 16:05:17 +00:00
if ( null != subscription ) {
2026-07-29 08:29:29 +00:00
let tmp5Result = tmp5 ( tmp6 [ 23 ] ) ;
premiumTypeFromSubscription = tmp5Result . getPremiumTypeFromSubscription ( subscription ) ;
2026-07-20 16:05:17 +00:00
}
if ( ! flag ) {
2026-07-24 07:16:23 +00:00
flag = tmp3 ;
2026-07-20 16:05:17 +00:00
}
if ( ! flag ) {
2026-07-29 08:29:29 +00:00
flag = tmp9 [ 1 ] ;
2026-07-20 16:05:17 +00:00
}
if ( ! flag ) {
2026-07-29 08:29:29 +00:00
flag = tmp11 ;
2026-07-20 16:05:17 +00:00
}
2026-07-29 08:29:29 +00:00
function onPress() {
if ( ! flag ) {
if ( null != subscription ) {
if ( premiumTypeFromSubscription === outer1_20 . TIER_2 ) {
if ( plan . premiumTier === tmp13 . TIER_0 ) {
const obj = { subscription : null , mode : null , onContinue : null } ;
obj [ 0 ] = tmp ;
obj [ 1 ] = plan ( subscription [ 38 ] ) . WhatYouLoseMode . DOWNGRADE ;
obj [ 2 ] = function onContinue() {
return callback ( productId . productId ) ;
} ;
outer1_1 ( subscription [ 37 ] ) ( obj ) ;
const tmp6 = outer1_1 ( subscription [ 37 ] ) ;
}
}
}
callback ( plan . productId ) ;
2026-07-24 07:16:23 +00:00
}
2026-07-29 08:29:29 +00:00
}
if ( flag3 ) {
if ( tmp20 ) {
let tmp35Result = tmp35 ( tmp7 ( tmp6 [ 40 ] ) , { width : 32 , height : 32 } ) ;
} else if ( tmp16 ) {
2026-07-31 08:44:05 +00:00
obj2 = { size : "lg" , color : null } ;
2026-07-29 08:29:29 +00:00
obj2 [ 1 ] = tmp7 ( tmp6 [ 18 ] ) . colors . ICON_DEFAULT ;
tmp35Result = tmp35 ( tmp5 ( tmp6 [ 30 ] ) . NitroWheelIcon , obj2 ) ;
2026-07-20 16:05:17 +00:00
} else {
2026-07-29 08:29:29 +00:00
obj3 = { style : null , source : null } ;
obj3 [ 0 ] = tmp2 . boostRowIcon ;
obj3 [ 1 ] = tmp7Result ;
tmp35Result = tmp35 ( closure_6 , obj3 ) ;
2026-07-20 16:05:17 +00:00
}
2026-07-29 08:29:29 +00:00
const obj4 = { icon : null , label : null , subLabel : null , trailing : null , arrow : true , disabled : null , onPress : null } ;
obj4 [ 0 ] = tmp35Result ;
obj4 [ 1 ] = getPlanDescription ( plan , flag4 ) ;
if ( tmp34 ) {
const obj5 = { variant : "text-xs/semibold" , color : "none" , style : null , children : null } ;
obj5 [ 2 ] = tmp2 . recommendedText ;
const intl4 = tmp5 ( tmp6 [ 22 ] ) . intl ;
obj5 [ 3 ] = intl4 . string ( tmp5 ( tmp6 [ 22 ] ) . t . WThgAR ) ;
formatToPlainStringResult1 = tmp35 ( tmp5 ( tmp6 [ 21 ] ) . Text , obj5 ) ;
2026-07-24 07:16:23 +00:00
}
2026-07-29 08:29:29 +00:00
obj4 [ 2 ] = formatToPlainStringResult1 ;
2026-07-24 07:16:23 +00:00
if ( tmp4 ) {
2026-07-29 08:29:29 +00:00
const obj6 = { animating : true , size : "small" , color : null } ;
obj6 [ 2 ] = token ;
tmp35Result = tmp35 ( tmp5 ( tmp6 [ 41 ] ) . ActivityIndicator , obj6 ) ;
2026-07-21 22:01:30 +00:00
} else if ( null != premiumTier2DeltaPriceString ) {
2026-07-29 08:29:29 +00:00
const obj7 = { price : null , interval : null } ;
obj7 [ 0 ] = premiumTier2DeltaPriceString ;
obj7 [ 1 ] = plan . interval ;
tmp35Result = tmp35 ( BoostDeltaPriceTrailing , obj7 ) ;
2026-07-20 16:05:17 +00:00
} else {
2026-07-29 08:29:29 +00:00
const obj8 = { variant : "text-sm/medium" , color : "text-muted" , lineClamp : 1 , children : null } ;
obj8 [ 3 ] = formatToPlainStringResult ;
tmp35Result = tmp35 ( tmp5 ( tmp6 [ 21 ] ) . Text , obj8 ) ;
2026-07-20 16:05:17 +00:00
}
2026-07-29 08:29:29 +00:00
obj4 [ 3 ] = tmp35Result ;
2026-07-20 16:05:17 +00:00
if ( flag ) {
2026-07-24 07:16:23 +00:00
flag = ! tmp4 ;
2026-07-20 16:05:17 +00:00
}
2026-07-29 08:29:29 +00:00
obj4 [ 5 ] = flag ;
obj4 [ 6 ] = onPress ;
return callback3 ( tmp5 ( tmp6 [ 39 ] ) . TableRow , obj4 ) ;
2026-07-20 16:05:17 +00:00
} else {
2026-07-29 08:29:29 +00:00
tmp5Result = tmp5 ( tmp6 [ 43 ] ) ;
2026-07-24 07:16:23 +00:00
let str2 = "none" ;
2026-07-29 08:29:29 +00:00
if ( ! tmp5Result . isThemeDark ( tmp14 ) ) {
2026-07-24 07:16:23 +00:00
str2 = "none" ;
2026-07-20 16:05:17 +00:00
if ( flag2 ) {
2026-07-29 08:29:29 +00:00
str2 = tmp7 ( tmp6 [ 18 ] ) . unsafe_rawColors . PRIMARY_230 ;
2026-07-20 16:05:17 +00:00
}
}
2026-07-29 08:29:29 +00:00
const obj9 = { activeOpacity : 0.6 , underlayColor : null , accessibilityRole : "button" , disabled : null , onPress : null , children : null } ;
obj9 [ 1 ] = str2 ;
obj9 [ 3 ] = flag ;
obj9 [ 4 ] = onPress ;
2026-07-24 07:16:23 +00:00
const items2 = [ tmp2 . row , plan . style , ] ;
2026-07-20 16:05:17 +00:00
let rowDisabled = flag ;
if ( flag ) {
2026-07-24 07:16:23 +00:00
rowDisabled = ! tmp4 ;
2026-07-20 16:05:17 +00:00
}
if ( rowDisabled ) {
2026-07-24 07:16:23 +00:00
rowDisabled = tmp2 . rowDisabled ;
2026-07-20 16:05:17 +00:00
}
2026-07-29 08:29:29 +00:00
const obj10 = { style : null , children : null } ;
2026-07-20 16:05:17 +00:00
items2 [ 2 ] = rowDisabled ;
2026-07-29 08:29:29 +00:00
obj10 [ 0 ] = items2 ;
const obj11 = { style : null , source : null } ;
obj11 [ 0 ] = tmp2 [ table [ tmp7Result ] ] ;
obj11 [ 1 ] = tmp7Result ;
const items3 = [ callback3 ( closure_6 , obj11 ) , , , , ] ;
const obj12 = { style : null , children : null } ;
2026-07-24 07:16:23 +00:00
const items4 = [ , ] ;
( { rowText : arr5 [ 0 ] , rowPlanDescription : arr5 [ 1 ] } = tmp2 ) ;
2026-07-29 08:29:29 +00:00
obj12 [ 0 ] = items4 ;
obj12 [ 1 ] = getPlanDescription ( plan , flag4 ) ;
items3 [ 1 ] = callback3 ( tmp5 ( tmp6 [ 36 ] ) . LegacyText , obj12 ) ;
items3 [ 2 ] = tmp17 ;
const obj13 = { style : null , children : null } ;
2026-07-20 16:05:17 +00:00
const items5 = [ , ] ;
2026-07-24 07:16:23 +00:00
( { rowText : arr6 [ 0 ] , rowPrice : arr6 [ 1 ] } = tmp2 ) ;
2026-07-29 08:29:29 +00:00
obj13 [ 0 ] = items5 ;
obj13 [ 1 ] = formatToPlainStringResult ;
items3 [ 3 ] = callback3 ( tmp5 ( tmp6 [ 36 ] ) . LegacyText , obj13 ) ;
let tmp27Result = null ;
2026-07-24 07:16:23 +00:00
if ( tmp4 ) {
2026-07-29 08:29:29 +00:00
const obj14 = { animating : true , size : "small" , style : null , color : null } ;
obj14 [ 2 ] = tmp2 . purchasingSpinner ;
obj14 [ 3 ] = token ;
tmp27Result = tmp27 ( tmp5 ( tmp6 [ 41 ] ) . ActivityIndicator , obj14 ) ;
2026-07-20 16:05:17 +00:00
}
2026-07-29 08:29:29 +00:00
items3 [ 4 ] = tmp27Result ;
obj10 [ 1 ] = items3 ;
obj9 [ 5 ] = closure_33 ( closure_7 , obj10 ) ;
return callback3 ( tmp5 ( tmp6 [ 42 ] ) . TouchableHighlight , obj9 ) ;
2026-07-20 16:05:17 +00:00
}
2026-07-29 08:29:29 +00:00
tmp14 = importDefault ( subscription [ 35 ] ) ( ) ;
2026-07-20 16:05:17 +00:00
}
2026-07-23 10:11:24 +00:00
function PlanSection ( showBoostOnlyLabels ) {
2026-07-29 08:29:29 +00:00
let createGuildRecordFromRust ;
let initialize ;
2026-07-23 10:11:24 +00:00
let closure_5 ;
let closure_6 ;
let closure_7 ;
2026-07-24 07:16:23 +00:00
let closure_8 ;
2026-07-23 10:11:24 +00:00
let dependencyMap ;
2026-07-20 16:05:17 +00:00
let plans ;
let shouldShowModernBoostFlow ;
2026-07-23 10:11:24 +00:00
( { plans , shouldShowModernBoostFlow } = showBoostOnlyLabels ) ;
2026-07-20 16:05:17 +00:00
if ( shouldShowModernBoostFlow === undefined ) {
shouldShowModernBoostFlow = false ;
}
2026-07-23 10:11:24 +00:00
let flag = showBoostOnlyLabels . showBoostOnlyLabels ;
if ( flag === undefined ) {
flag = false ;
}
2026-07-29 08:29:29 +00:00
( { recommendedBoostCount : dependencyMap , purchase : createGuildRecordFromRust , analyticsLoadId : initialize , trackNewPaymentFlow : closure_5 , trackPaymentFlowStep : closure_6 , subscription : closure_7 , shouldRemoveYearlyUpsell : closure_8 } = showBoostOnlyLabels ) ;
2026-07-23 10:11:24 +00:00
let useNativeCheckoutStore ;
2026-07-24 07:16:23 +00:00
let c10 ;
2026-07-23 10:11:24 +00:00
const tmp = useNativeCheckoutStore ( ( getCheckoutContextRecord ) = > getCheckoutContextRecord . getCheckoutContextRecord ( ) ) ;
2026-07-24 07:16:23 +00:00
useNativeCheckoutStore = tmp ;
2026-07-29 08:29:29 +00:00
let obj = shouldShowModernBoostFlow ( 501 ) ;
2026-07-23 10:11:24 +00:00
let isIOSResult = obj . isIOS ( ) ;
2026-07-20 16:05:17 +00:00
if ( isIOSResult ) {
isIOSResult = null != tmp ;
}
2026-07-24 07:16:23 +00:00
c10 = isIOSResult ;
2026-07-29 08:29:29 +00:00
const mapped = plans . map ( ( plan ) = > outer1_32 ( outer1_40 , {
2026-07-20 16:05:17 +00:00
plan ,
2026-07-24 07:16:23 +00:00
subscription : closure_7 ,
2026-07-20 16:05:17 +00:00
shouldShowModernBoostFlow ,
2026-07-23 10:11:24 +00:00
showBoostOnlyLabels : flag ,
2026-07-24 07:16:23 +00:00
recommendedBoostCount : closure_2 ,
2026-07-20 16:05:17 +00:00
purchase ( productId ) {
2026-07-23 10:11:24 +00:00
let closure_0 = productId ;
2026-07-29 08:29:29 +00:00
let obj = outer1_0 ( outer1_2 [ 45 ] ) ;
2026-07-20 16:05:17 +00:00
const toggledIntervalProduct = obj . getToggledIntervalProduct ( productId ) ;
2026-07-29 08:29:29 +00:00
let tmp5 = null ;
if ( closure_10 ) {
tmp5 = null ;
2026-07-20 16:05:17 +00:00
if ( null != toggledIntervalProduct ) {
2026-07-29 08:29:29 +00:00
let obj1 = closure_9 ;
2026-07-20 16:05:17 +00:00
let availablePlanForItems ;
2026-07-29 08:29:29 +00:00
if ( closure_9 != null ) {
2026-07-31 08:44:05 +00:00
let tmpResult = tmp ( tmp2 [ 45 ] ) ;
availablePlanForItems = obj1 . getAvailablePlanForItems ( tmpResult . getSubscriptionItemsForProduct ( toggledIntervalProduct ) ) ;
2026-07-20 16:05:17 +00:00
}
2026-07-29 08:29:29 +00:00
if ( availablePlanForItems == null ) {
availablePlanForItems = null ;
2026-07-20 16:05:17 +00:00
}
2026-07-29 08:29:29 +00:00
tmp5 = availablePlanForItems ;
2026-07-20 16:05:17 +00:00
}
}
2026-07-29 08:29:29 +00:00
let closure_2 = tmp5 ;
if ( closure_10 ) {
let tmp7 = null != tmp5 ;
2026-07-20 16:05:17 +00:00
} else {
2026-07-29 08:29:29 +00:00
tmp7 = null != toggledIntervalProduct ;
if ( tmp7 ) {
tmp7 = null != outer1_13 . getProduct ( toggledIntervalProduct ) ;
2026-07-20 16:05:17 +00:00
}
}
2026-07-31 08:44:05 +00:00
tmpResult = tmp ( tmp2 [ 45 ] ) ;
2026-07-20 16:05:17 +00:00
if ( null != toggledIntervalProduct ) {
2026-07-29 08:29:29 +00:00
if ( tmp7 ) {
if ( ! closure_8 ) {
2026-07-31 08:44:05 +00:00
if ( tmp10 !== tmp11 ) {
obj = { fromStep : null , toStep : null , productId : null } ;
obj [ 0 ] = tmp ( tmp2 [ 46 ] ) . PaymentFlowStep . PLAN_SELECT ;
obj [ 1 ] = tmp ( tmp2 [ 46 ] ) . PaymentFlowStep . YEARLY_UPSELL ;
obj [ 2 ] = productId ;
callback2 ( obj ) ;
obj = { importer : null , hideActionSheet : true , isDismissable : true } ;
obj [ 0 ] = function importer() {
return outer2_0 ( outer2_2 [ 49 ] ) ( outer2_2 [ 48 ] , outer2_2 . paths ) . then ( ( arg0 ) = > {
let closure_0 = arg0 . default ;
return ( ) = > { . . . } ;
} ) ;
} ;
outer1_1 ( tmp2 [ 47 ] ) . openLazy ( obj ) ;
}
2026-07-20 16:05:17 +00:00
}
}
}
2026-07-29 08:29:29 +00:00
obj1 = { fromStep : tmp ( tmp2 [ 46 ] ) . PaymentFlowStep . PLAN_SELECT , toStep : tmp ( tmp2 [ 46 ] ) . PaymentFlowStep . EXTERNAL_PAYMENT , productId } ;
callback2 ( obj1 ) ;
return callback ( productId , initialize ) ;
2026-07-20 16:05:17 +00:00
}
} , plan . productId ) ) ;
if ( shouldShowModernBoostFlow ) {
2026-07-29 08:29:29 +00:00
obj = { title : null , hasIcons : true , children : null } ;
obj [ 0 ] = showBoostOnlyLabels . label ;
obj [ 2 ] = mapped ;
2026-08-06 08:05:19 +00:00
let tmp7Result = tmp7 ( shouldShowModernBoostFlow ( 5688 ) . TableRowGroup , obj ) ;
2026-07-20 16:05:17 +00:00
} else {
2026-07-29 08:29:29 +00:00
obj = { children : null } ;
obj [ 0 ] = mapped ;
tmp7Result = tmp7 ( closure_7 , obj ) ;
2026-07-20 16:05:17 +00:00
}
2026-07-29 08:29:29 +00:00
return tmp7Result ;
2026-07-20 16:05:17 +00:00
}
function CurrentPlanRow ( subscription ) {
2026-07-29 08:29:29 +00:00
let createGuildRecordFromRust ;
let initialize ;
2026-07-23 10:11:24 +00:00
let closure_5 ;
let dependencyMap ;
let importDefault ;
2026-07-20 16:05:17 +00:00
subscription = subscription . subscription ;
2026-07-29 08:29:29 +00:00
( { trackPaymentFlowStep : importDefault , trackNewPaymentFlow : dependencyMap , purchase : createGuildRecordFromRust , analyticsLoadId : initialize , shouldRemoveYearlyUpsell : closure_5 } = subscription ) ;
2026-07-20 16:05:17 +00:00
let productIdFromSubscription ;
let toggledIntervalProduct ;
2026-07-23 10:11:24 +00:00
const tmp = callback5 ( ) ;
2026-07-20 16:05:17 +00:00
if ( subscription . showCurrentPlan ) {
if ( null != subscription ) {
2026-08-06 08:05:19 +00:00
productIdFromSubscription = subscription ( 6792 ) . getProductIdFromSubscription ( subscription , true ) ;
let obj4 = subscription ( 6792 ) ;
2026-07-29 08:29:29 +00:00
const tmp13 = subscription ;
2026-08-06 08:05:19 +00:00
const premiumBundledItemsFromProductId = subscription ( 6792 ) . getPremiumBundledItemsFromProductId ( productIdFromSubscription ) ;
2026-07-20 16:05:17 +00:00
const premiumTier = premiumBundledItemsFromProductId . premiumTier ;
if ( null != premiumTier ) {
2026-07-23 10:11:24 +00:00
let PREMIUM_GUILD = callback2 ( premiumTier ) ;
2026-07-20 16:05:17 +00:00
} else {
2026-07-29 08:29:29 +00:00
PREMIUM_GUILD = constants5 . PREMIUM_GUILD ;
2026-07-20 16:05:17 +00:00
}
2026-08-06 08:05:19 +00:00
const obj5 = subscription ( 6792 ) ;
toggledIntervalProduct = tmp13 ( 6792 ) . getToggledIntervalProduct ( productIdFromSubscription ) ;
2026-07-29 08:29:29 +00:00
let obj = { style : null , colors : null , start : null , end : null , children : null } ;
obj [ 0 ] = tmp . currentPlanGradient ;
obj [ 1 ] = PREMIUM_GUILD ;
( { START : obj2 [ 2 ] , END : obj2 [ 3 ] } = closure_26 ) ;
obj = { plan : null , subscription : null , disabled : null , hasBackground : true , purchase : null , style : null } ;
obj [ 0 ] = premiumBundledItemsFromProductId ;
obj [ 1 ] = subscription ;
let tmp11 = null == toggledIntervalProduct ;
2026-08-06 08:05:19 +00:00
const tmp13Result = tmp13 ( 6792 ) ;
2026-07-29 08:29:29 +00:00
if ( tmp11 ) {
tmp11 = subscription . status !== constants4 . CANCELED ;
2026-07-20 16:05:17 +00:00
}
2026-07-29 08:29:29 +00:00
obj [ 2 ] = tmp11 ;
obj [ 4 ] = function purchase() {
2026-07-23 10:11:24 +00:00
let subscription ;
2026-07-20 16:05:17 +00:00
let yearly ;
2026-07-29 08:29:29 +00:00
let EXTERNAL_PAYMENT = outer1_2 ;
2026-07-23 10:11:24 +00:00
let obj = subscription ( outer1_2 [ 45 ] ) ;
2026-07-20 16:05:17 +00:00
const productIdsForBothIntervals = obj . getProductIdsForBothIntervals ( productIdFromSubscription ) ;
2026-07-23 10:11:24 +00:00
( { monthly : subscription , yearly } = productIdsForBothIntervals ) ;
2026-07-20 16:05:17 +00:00
let status ;
2026-07-29 08:29:29 +00:00
if ( subscription != null ) {
2026-07-20 16:05:17 +00:00
status = subscription . status ;
}
2026-07-24 07:16:23 +00:00
if ( status === outer1_28 . CANCELED ) {
2026-07-20 16:05:17 +00:00
if ( null != yearly ) {
if ( ! closure_5 ) {
2026-07-29 08:29:29 +00:00
obj = { fromStep : null , toStep : null , productId : null } ;
obj [ 0 ] = tmp ( EXTERNAL_PAYMENT [ 46 ] ) . PaymentFlowStep . PLAN_SELECT ;
obj [ 1 ] = tmp ( EXTERNAL_PAYMENT [ 46 ] ) . PaymentFlowStep . YEARLY_UPSELL ;
obj [ 2 ] = tmp2 ;
2026-07-20 16:05:17 +00:00
yearly ( obj ) ;
2026-07-29 08:29:29 +00:00
obj = { importer : null , hideActionSheet : true , isDismissable : true } ;
obj [ 0 ] = function importer() {
return subscription ( outer2_2 [ 49 ] ) ( outer2_2 [ 48 ] , outer2_2 . paths ) . then ( ( arg0 ) = > {
let closure_0 = arg0 . default ;
return ( arg0 ) = > {
let obj = { } ;
const merged = Object . assign ( arg0 ) ;
obj . productId = outer1_1 ;
2026-08-06 08:05:19 +00:00
obj . continueWithUpsell = outer3_3 ( /* F119694 */ function ( ) { . . . } ) ;
obj . continueWithDefault = outer3_3 ( /* F119695 */ function ( ) { . . . } ) ;
2026-07-29 08:29:29 +00:00
return outer3_32 ( closure_0 , obj ) ;
} ;
} ) ;
2026-07-20 16:05:17 +00:00
} ;
2026-07-29 08:29:29 +00:00
outer1_1 ( EXTERNAL_PAYMENT [ 47 ] ) . openLazy ( obj ) ;
const obj4 = outer1_1 ( EXTERNAL_PAYMENT [ 47 ] ) ;
2026-07-20 16:05:17 +00:00
}
}
2026-07-29 08:29:29 +00:00
let obj1 = { fromStep : null , toStep : null , productId : null } ;
obj1 [ 0 ] = tmp ( EXTERNAL_PAYMENT [ 46 ] ) . PaymentFlowStep . PLAN_SELECT ;
EXTERNAL_PAYMENT = tmp ( EXTERNAL_PAYMENT [ 46 ] ) . PaymentFlowStep . EXTERNAL_PAYMENT ;
obj1 [ 1 ] = EXTERNAL_PAYMENT ;
obj1 [ 2 ] = tmp2 ;
2026-07-20 16:05:17 +00:00
yearly ( obj1 ) ;
2026-07-29 08:29:29 +00:00
const tmp15 = callback ( tmp2 , initialize ) ;
2026-07-20 16:05:17 +00:00
} else {
let tmp6 ;
if ( null != toggledIntervalProduct ) {
2026-07-29 08:29:29 +00:00
if ( null != outer1_13 . getProduct ( tmp21 ) ) {
let obj2 = { fromStep : null , toStep : null , productId : null } ;
obj2 [ 0 ] = tmp ( EXTERNAL_PAYMENT [ 46 ] ) . PaymentFlowStep . PLAN_SELECT ;
obj2 [ 1 ] = tmp ( EXTERNAL_PAYMENT [ 46 ] ) . PaymentFlowStep . EXTERNAL_PAYMENT ;
obj2 [ 2 ] = tmp21 ;
2026-07-20 16:05:17 +00:00
yearly ( obj2 ) ;
2026-07-29 08:29:29 +00:00
tmp6 = callback ( tmp21 , initialize ) ;
2026-07-20 16:05:17 +00:00
}
}
return tmp6 ;
}
} ;
2026-07-29 08:29:29 +00:00
obj [ 5 ] = tmp . currentPlanRow ;
obj [ 4 ] = closure_32 ( PlanRow , obj ) ;
2026-08-06 08:05:19 +00:00
return closure_32 ( importDefault ( 4706 ) , obj ) ;
2026-07-20 16:05:17 +00:00
}
}
return null ;
}
function PlanSectionHeader ( children ) {
2026-07-23 10:11:24 +00:00
const tmp = callback5 ( ) ;
2026-07-29 08:29:29 +00:00
return callback3 ( require ( 1297 ) /* Button */ . LegacyText , { style : callback5 ( ) . header , accessibilityRole : "header" , children : children.string } ) ;
2026-07-20 16:05:17 +00:00
}
function PlanSections ( showCurrentPlan ) {
let analyticsLoadId ;
let isBoostPurchaseFlow ;
2026-07-31 08:44:05 +00:00
let plans ;
2026-07-20 16:05:17 +00:00
let subscription ;
2026-07-31 08:44:05 +00:00
( { plans , subscription } = showCurrentPlan ) ;
2026-07-20 16:05:17 +00:00
( { isBoostPurchaseFlow , analyticsLoadId } = showCurrentPlan ) ;
const trackPaymentFlowStep = showCurrentPlan . trackPaymentFlowStep ;
const trackNewPaymentFlow = showCurrentPlan . trackNewPaymentFlow ;
const purchase = showCurrentPlan . purchase ;
2026-07-31 08:44:05 +00:00
let closure_5 ;
2026-07-20 16:05:17 +00:00
let productIdFromSubscription ;
let shouldRemoveYearlyUpsell ;
2026-07-23 10:11:24 +00:00
isBoostPurchaseFlow = undefined ;
2026-07-31 08:44:05 +00:00
let useNativeCheckoutStore ;
2026-07-24 07:16:23 +00:00
let recommendedBoostCount ;
2026-07-31 08:44:05 +00:00
let addSubscriptionPlan ;
2026-07-23 10:11:24 +00:00
const tmp = callback5 ( ) ;
2026-07-31 08:44:05 +00:00
closure_5 = useNativeCheckoutStore ( ( getCheckoutContextRecord ) = > getCheckoutContextRecord . getCheckoutContextRecord ( ) ) ;
2026-07-20 16:05:17 +00:00
productIdFromSubscription = null ;
if ( null != subscription ) {
2026-07-31 08:44:05 +00:00
let obj = subscription ( trackPaymentFlowStep [ 45 ] ) ;
2026-07-20 16:05:17 +00:00
productIdFromSubscription = obj . getProductIdFromSubscription ( subscription , false ) ;
}
shouldRemoveYearlyUpsell = isBoostPurchaseFlow ;
if ( isBoostPurchaseFlow ) {
2026-07-31 08:44:05 +00:00
shouldRemoveYearlyUpsell = subscription ( trackPaymentFlowStep [ 52 ] ) . getShouldRemoveYearlyUpsell ( "PremiumPlanSelect" ) ;
let obj2 = subscription ( trackPaymentFlowStep [ 52 ] ) ;
2026-07-20 16:05:17 +00:00
}
if ( isBoostPurchaseFlow ) {
2026-07-31 08:44:05 +00:00
isBoostPurchaseFlow = subscription ( trackPaymentFlowStep [ 52 ] ) . getMobileBoostingEnabled ( "PremiumPlanSelect" ) ;
let obj3 = subscription ( trackPaymentFlowStep [ 52 ] ) ;
2026-07-20 16:05:17 +00:00
}
2026-07-23 10:11:24 +00:00
let tmp10 = null != subscription ;
if ( tmp10 ) {
2026-07-31 08:44:05 +00:00
tmp10 = subscription ( trackPaymentFlowStep [ 23 ] ) . getPremiumTypeFromSubscription ( subscription ) === closure_20 . TIER_2 ;
const obj4 = subscription ( trackPaymentFlowStep [ 23 ] ) ;
2026-07-23 10:11:24 +00:00
}
let tmp14 = isBoostPurchaseFlow ;
2026-07-20 16:05:17 +00:00
if ( isBoostPurchaseFlow ) {
2026-07-23 10:11:24 +00:00
tmp14 = tmp10 ;
2026-07-20 16:05:17 +00:00
}
2026-07-31 08:44:05 +00:00
useNativeCheckoutStore = tmp14 ;
2026-07-24 07:16:23 +00:00
recommendedBoostCount = null ;
if ( isBoostPurchaseFlow ) {
recommendedBoostCount = null ;
if ( ! tmp10 ) {
2026-07-31 08:44:05 +00:00
recommendedBoostCount = subscription ( trackPaymentFlowStep [ 52 ] ) . getRecommendedBoostCount ( "PremiumPlanSelect" ) ;
const obj5 = subscription ( trackPaymentFlowStep [ 52 ] ) ;
2026-07-24 07:16:23 +00:00
}
}
2026-07-31 08:44:05 +00:00
addSubscriptionPlan = plans . map ( ( interval ) = > {
if ( interval . interval === outer1_21 . YEAR ) {
const isIOSResult = subscription ( trackPaymentFlowStep [ 44 ] ) . isIOS ( ) ;
let tmp3 = ! isIOSResult ;
if ( isIOSResult ) {
tmp3 = null == store ;
}
if ( ! tmp3 ) {
let tmp14Result = tmp14 ( tmp15 [ 45 ] ) ;
tmp3 = null != store . getAvailablePlanForItems ( tmp14Result . getSubscriptionItemsForProduct ( interval . productId ) ) ;
}
if ( ! tmp3 ) {
tmp14Result = tmp14 ( tmp15 [ 45 ] ) ;
const toggledIntervalProduct = tmp14Result . getToggledIntervalProduct ( interval . productId ) ;
let premiumBundledItemsFromProductId = null ;
if ( null != toggledIntervalProduct ) {
premiumBundledItemsFromProductId = tmp14 ( tmp15 [ 45 ] ) . getPremiumBundledItemsFromProductId ( toggledIntervalProduct ) ;
const tmp14Result1 = tmp14 ( tmp15 [ 45 ] ) ;
}
let tmp9 = interval ;
if ( null != premiumBundledItemsFromProductId ) {
const isIOSResult1 = tmp14 ( tmp15 [ 44 ] ) . isIOS ( ) ;
let tmp11 = ! isIOSResult1 ;
if ( isIOSResult1 ) {
tmp11 = null == store ;
}
if ( ! tmp11 ) {
tmp11 = null != store . getAvailablePlanForItems ( tmp14 ( tmp15 [ 45 ] ) . getSubscriptionItemsForProduct ( premiumBundledItemsFromProductId . productId ) ) ;
const tmp14Result3 = tmp14 ( tmp15 [ 45 ] ) ;
}
tmp9 = interval ;
if ( tmp11 ) {
tmp9 = premiumBundledItemsFromProductId ;
}
const tmp14Result2 = tmp14 ( tmp15 [ 44 ] ) ;
}
return tmp9 ;
}
const obj6 = subscription ( trackPaymentFlowStep [ 44 ] ) ;
}
return interval ;
} ) ;
2026-07-23 10:11:24 +00:00
const mapped = items . map ( ( section ) = > {
let closure_0 = section ;
return {
section ,
2026-07-31 08:44:05 +00:00
plansInSection : addSubscriptionPlan.filter ( ( productId ) = > {
let predicateResult = productId . productId !== outer1_6 ;
2026-07-23 10:11:24 +00:00
if ( predicateResult ) {
2026-07-31 08:44:05 +00:00
predicateResult = ! subscription ( trackPaymentFlowStep [ 45 ] ) . productsHaveSamePerks ( productId . productId , tmp ) ;
const obj = subscription ( trackPaymentFlowStep [ 45 ] ) ;
2026-07-20 16:05:17 +00:00
}
2026-07-23 10:11:24 +00:00
if ( predicateResult ) {
predicateResult = section . predicate ( productId ) ;
2026-07-20 16:05:17 +00:00
}
2026-07-23 10:11:24 +00:00
if ( predicateResult ) {
2026-07-24 07:16:23 +00:00
predicateResult = productId . premiumTier !== outer2_20 . TIER_1 ;
2026-07-20 16:05:17 +00:00
}
2026-07-23 10:11:24 +00:00
if ( predicateResult ) {
2026-07-31 08:44:05 +00:00
const isIOSResult = section ( outer1_2 [ 44 ] ) . isIOS ( ) ;
2026-07-29 08:29:29 +00:00
let tmp10 = ! isIOSResult ;
if ( isIOSResult ) {
2026-07-31 08:44:05 +00:00
tmp10 = null == outer1_5 ;
2026-07-20 16:05:17 +00:00
}
2026-07-29 08:29:29 +00:00
if ( ! tmp10 ) {
2026-07-31 08:44:05 +00:00
tmp10 = null != outer1_5 . getAvailablePlanForItems ( section ( outer1_2 [ 45 ] ) . getSubscriptionItemsForProduct ( productId . productId ) ) ;
const obj3 = section ( outer1_2 [ 45 ] ) ;
2026-07-20 16:05:17 +00:00
}
2026-07-29 08:29:29 +00:00
predicateResult = tmp10 ;
2026-07-31 08:44:05 +00:00
const obj2 = section ( outer1_2 [ 44 ] ) ;
2026-07-20 16:05:17 +00:00
}
2026-07-23 10:11:24 +00:00
if ( predicateResult ) {
2026-07-20 16:05:17 +00:00
let flag = true ;
2026-07-29 08:29:29 +00:00
if ( null != tmp ) {
2026-07-31 08:44:05 +00:00
const tmp20 = subscription ( trackPaymentFlowStep [ 53 ] ) . AppStorePremiumProductIdsToPremiumBundledItems [ tmp ] ;
2026-07-20 16:05:17 +00:00
flag = null != tmp20 . premiumTier || productId . numPremiumGuild >= tmp20 . numPremiumGuild ;
const tmp21 = null != tmp20 . premiumTier || productId . numPremiumGuild >= tmp20 . numPremiumGuild ;
}
2026-07-23 10:11:24 +00:00
predicateResult = flag ;
2026-07-20 16:05:17 +00:00
}
2026-07-23 10:11:24 +00:00
return predicateResult ;
} )
} ;
} ) ;
const found = mapped . filter ( ( plansInSection ) = > plansInSection . plansInSection . length > 0 ) ;
let found1 = found ;
if ( tmp14 ) {
found1 = found ;
2026-07-24 07:16:23 +00:00
if ( tmp18 ) {
2026-07-23 10:11:24 +00:00
found1 = found . filter ( ( section ) = > "premium-guild" !== section . section . id ) ;
}
}
items = [ tmp . container , ] ;
if ( isBoostPurchaseFlow ) {
isBoostPurchaseFlow = tmp . boostContainer ;
}
2026-07-29 08:29:29 +00:00
obj = { style : items , children : null } ;
2026-07-23 10:11:24 +00:00
items [ 1 ] = isBoostPurchaseFlow ;
if ( tmp14 ) {
tmp14 = callback3 ( BoostPurchaseNitroBanner , { } ) ;
}
2026-07-29 08:29:29 +00:00
const items1 = [
tmp14 ,
callback3 ( CurrentPlanRow , { subscription , analyticsLoadId , purchase , trackPaymentFlowStep , trackNewPaymentFlow , showCurrentPlan : showCurrentPlan.showCurrentPlan , shouldRemoveYearlyUpsell } ) ,
found1 . map ( ( plans ) = > {
const section = plans . section ;
2026-07-31 08:44:05 +00:00
const label = section . getLabel ( c9 ) ;
2026-07-29 08:29:29 +00:00
let tmp6 = ! isBoostPurchaseFlow ;
if ( ! isBoostPurchaseFlow ) {
let obj = { string : null } ;
obj [ 0 ] = label ;
tmp6 = outer1_32 ( outer1_44 , obj ) ;
}
obj = { children : null } ;
const items = [ tmp6 , ] ;
2026-07-31 08:44:05 +00:00
obj = { trackPaymentFlowStep , trackNewPaymentFlow , analyticsLoadId , plans : plans.plansInSection , label , shouldShowModernBoostFlow : isBoostPurchaseFlow , showBoostOnlyLabels : c9 , recommendedBoostCount , purchase , subscription , shouldRemoveYearlyUpsell } ;
2026-07-29 08:29:29 +00:00
items [ 1 ] = outer1_32 ( outer1_41 , obj ) ;
obj [ 0 ] = items ;
2026-07-31 08:44:05 +00:00
return outer1_33 ( shouldRemoveYearlyUpsell , obj , section . id ) ;
2026-07-29 08:29:29 +00:00
} )
] ;
obj [ 1 ] = items1 ;
2026-07-31 08:44:05 +00:00
return closure_33 ( shouldRemoveYearlyUpsell , obj ) ;
2026-07-20 16:05:17 +00:00
}
2026-07-29 08:29:29 +00:00
let c5 = importAllResult ;
( { Image : closure_6 , View : error , ScrollView : metroImportAll } = get_ActivityIndicator ) ;
2026-07-23 10:11:24 +00:00
( { setIsPurchasing : closure_14 , usePremiumPlanSelectStore : closure_15 } = usePremiumPlanSelectStore ) ;
2026-07-24 07:16:23 +00:00
( { GUILD_BOOST_COST_FOR_PREMIUM_USER_DISCOUNT_PERCENT : closure_16 , NUM_FREE_GUILD_BOOSTS_WITH_PREMIUM : closure_17 , PRICE_PLACEHOLDER : closure_18 , PremiumSubscriptionSKUs : closure_19 , PremiumTypes : closure_20 , SubscriptionIntervalTypes : closure_21 , SubscriptionPlans : closure_22 } = GuildFeatures ) ;
( { AnalyticEvents : closure_23 , AnalyticsObjects : closure_24 , AnalyticsObjectTypes : closure_25 , Fonts , HorizontalGradient : closure_26 , PaymentGateways : closure_27 , SubscriptionStatusTypes : closure_28 , USER_SETTINGS_CONTAINER_HORIZONTAL_PADDING } = ME ) ;
( { getPremiumGradientColor : closure_29 , Gradients : closure_30 } = items ) ;
( { jsx : closure_32 , jsxs : closure_33 , Fragment : closure_34 } = jsxProd ) ;
2026-07-29 08:29:29 +00:00
let obj = { header : null , row : null , rowDisabled : null , imgWumpusNitro : null , imgBoost : null , imgWumpusNitroBoost : null , imgWumpusNitroClassic : null , imgWumpusNitroClassicBoost : null , imgWumpusNitroTier0 : null , rowText : null , rowPlanDescription : null , rowPlanDescriptionSubtext : null , rowPrice : null , purchasingSpinner : null , container : null , currentPlanGradient : null , currentPlanRow : null , loadingSpinnerContainer : null , offPlatformSubscriptionMessage : null , premiumHeaderLabel : null , boostContainer : null , boostRowIcon : null , nitroBanner : null , nitroBannerText : null , recommendedText : null } ;
2026-07-20 16:05:17 +00:00
obj = { } ;
2026-07-23 10:11:24 +00:00
let merged = Object . assign ( require ( "createTextStyle" ) ( Fonts . DISPLAY_EXTRABOLD , undefined , 24 ) ) ;
2026-07-29 08:29:29 +00:00
obj . marginTop = 16 ;
obj . color = require ( "result" ) . DARK_WHITE_500_LIGHT_BLACK_500 ;
obj [ 0 ] = obj ;
createCacheKey = { marginTop : 7 , borderRadius : require ( "Themes" ) . radii . sm , flexDirection : "row" , alignItems : "center" , paddingVertical : 12 , paddingHorizontal : 12 , flexWrap : "wrap" , backgroundColor : require ( "result" ) . DARK_PRIMARY_630_LIGHT_PRIMARY_230 } ;
obj [ 1 ] = createCacheKey ;
obj [ 2 ] = { opacity : 0.5 } ;
obj [ 3 ] = { height : 40 , width : 40 } ;
obj [ 4 ] = { height : 40 , width : 40 } ;
obj [ 5 ] = { width : 32 , height : 32 } ;
obj [ 6 ] = { width : 40 , height : 40 } ;
obj [ 7 ] = { width : 32 , height : 32 } ;
obj [ 8 ] = { width : 40 , height : 40 } ;
obj [ 9 ] = { fontSize : 16 , color : require ( "result" ) . DARK_WHITE_500_LIGHT_BLACK_500 } ;
obj [ 10 ] = { marginLeft : 12 , fontFamily : Fonts.PRIMARY_SEMIBOLD , lineHeight : 20 } ;
obj [ 11 ] = { fontSize : 12 , marginLeft : 5 , fontFamily : Fonts.PRIMARY_MEDIUM , fontWeight : "400" } ;
obj [ 12 ] = { marginLeft : "auto" } ;
obj [ 13 ] = { position : "absolute" , top : 0 , bottom : 0 , left : 0 , right : 0 , alignItems : "center" , justifyContent : "center" } ;
obj [ 14 ] = { marginHorizontal : 14.5 , paddingBottom : 10 } ;
2026-07-23 10:11:24 +00:00
let obj2 = { fontSize : 16 , color : require ( "result" ) . DARK_WHITE_500_LIGHT_BLACK_500 } ;
2026-07-29 08:29:29 +00:00
obj [ 15 ] = { marginTop : 20 , borderRadius : require ( "Themes" ) . radii . sm } ;
obj [ 16 ] = { marginTop : 0.5 , marginRight : 0.5 , marginLeft : 0.5 , marginBottom : 0.5 } ;
obj [ 17 ] = { display : "flex" , alignItems : "center" , justifyContent : "center" , height : "100%" } ;
obj [ 18 ] = { lineHeight : 20 , marginTop : 40 , margin : USER_SETTINGS_CONTAINER_HORIZONTAL_PADDING } ;
obj [ 19 ] = { paddingHorizontal : USER_SETTINGS_CONTAINER_HORIZONTAL_PADDING , marginTop : 8 } ;
let obj3 = { marginTop : 20 , borderRadius : require ( "Themes" ) . radii . sm } ;
obj [ 20 ] = { rowGap : require ( "Themes" ) . space . PX_24 } ;
obj [ 21 ] = { width : 32 , height : 32 } ;
let obj4 = { rowGap : require ( "Themes" ) . space . PX_24 } ;
obj [ 22 ] = { alignItems : "center" , paddingTop : require ( "Themes" ) . space . PX_16 , paddingHorizontal : USER_SETTINGS_CONTAINER_HORIZONTAL_PADDING } ;
obj [ 23 ] = { textAlign : "center" } ;
let obj5 = { alignItems : "center" , paddingTop : require ( "Themes" ) . space . PX_16 , paddingHorizontal : USER_SETTINGS_CONTAINER_HORIZONTAL_PADDING } ;
obj [ 24 ] = { color : require ( "Themes" ) . unsafe_rawColors . GUILD_BOOSTING_PINK } ;
let closure_35 = createCacheKey . createStyles ( obj ) ;
2026-08-06 08:05:19 +00:00
let closure_38 = { [ importDefault ( 12732 ) ] : "imgWumpusNitro" , [ importDefault ( 12734 ) ] : "imgWumpusNitroBoost" , [ importDefault ( 12731 ) ] : "imgWumpusNitroClassic" , [ importDefault ( 12733 ) ] : "imgWumpusNitroClassicBoost" , [ importDefault ( 12730 ) ] : "imgWumpusNitroTier0" , [ importDefault ( 12729 ) ] : "imgBoost" } ;
2026-07-23 10:11:24 +00:00
items = [
2026-07-20 16:05:17 +00:00
{
2026-07-23 10:11:24 +00:00
id : "premium" ,
2026-07-20 16:05:17 +00:00
getLabel() {
2026-07-29 08:29:29 +00:00
const intl = require ( 1236 ) /* getSystemLocale */ . intl ;
return intl . string ( require ( 1236 ) /* getSystemLocale */ . t . A4BfLn ) ;
2026-07-20 16:05:17 +00:00
} ,
predicate ( premiumTier ) {
let tmp = null != premiumTier . premiumTier ;
if ( tmp ) {
tmp = 0 === premiumTier . numPremiumGuild ;
}
return tmp ;
}
} ,
{
2026-07-23 10:11:24 +00:00
id : "premium-and-premium-guild" ,
getLabel ( arg0 ) {
2026-07-29 08:29:29 +00:00
const intl = require ( 1236 ) /* getSystemLocale */ . intl ;
const t = require ( 1236 ) /* getSystemLocale */ . t ;
2026-07-23 10:11:24 +00:00
return intl . string ( arg0 ? t.rPoOQW : t.lyXyD0 ) ;
2026-07-20 16:05:17 +00:00
} ,
predicate ( premiumTier ) {
let tmp = null != premiumTier . premiumTier ;
if ( tmp ) {
tmp = 0 !== premiumTier . numPremiumGuild ;
}
return tmp ;
}
} ,
{
2026-07-23 10:11:24 +00:00
id : "premium-guild" ,
2026-07-20 16:05:17 +00:00
getLabel() {
2026-07-29 08:29:29 +00:00
const intl = require ( 1236 ) /* getSystemLocale */ . intl ;
return intl . string ( require ( 1236 ) /* getSystemLocale */ . t . rPoOQW ) ;
2026-07-20 16:05:17 +00:00
} ,
predicate ( premiumTier ) {
let tmp = null == premiumTier . premiumTier ;
if ( tmp ) {
tmp = 0 !== premiumTier . numPremiumGuild ;
}
return tmp ;
}
}
] ;
2026-07-29 08:29:29 +00:00
let closure_46 = importAllResult . forwardRef ( function PremiumPlanSelect ( isBoostPurchaseFlow ) {
2026-07-20 16:05:17 +00:00
let analyticsLocation ;
let applicationId ;
let planId ;
let predicate ;
let showCurrentPlan ;
( { predicate , showCurrentPlan } = isBoostPurchaseFlow ) ;
if ( showCurrentPlan === undefined ) {
showCurrentPlan = true ;
}
let flag = isBoostPurchaseFlow . isBoostPurchaseFlow ;
if ( flag === undefined ) {
flag = false ;
}
( { analyticsLocation , planId , applicationId } = isBoostPurchaseFlow ) ;
2026-07-29 08:29:29 +00:00
let _require = applicationId ;
2026-07-20 16:05:17 +00:00
let importDefault ;
2026-07-23 10:11:24 +00:00
let basePurchaseFlowAnalyticsFields ;
let obj2 ;
let handlePremiumPurchase ;
let navigation ;
2026-07-20 16:05:17 +00:00
let patchOrderLineItems ;
let orderRequired ;
let stateFromStores ;
2026-07-29 08:29:29 +00:00
const tmp = callback5 ( ) ;
let tmp2 = importDefault ;
let tmp3 = basePurchaseFlowAnalyticsFields ;
2026-07-23 10:11:24 +00:00
const analyticsLocations = importDefault ( basePurchaseFlowAnalyticsFields [ 58 ] ) ( ) . analyticsLocations ;
2026-07-29 08:29:29 +00:00
let obj = _require ( basePurchaseFlowAnalyticsFields [ 32 ] ) ;
let items = [ reset , addSubscriptionPlan ] ;
const tmp7 = handlePremiumPurchase ( obj . useStateFromStoresArray ( items , ( ) = > {
const items = [ reset . hasFetchedSubscriptions ( ) , loadedForPremiumSKUs . isLoadedForPremiumSKUs ( ) ] ;
2026-07-20 16:05:17 +00:00
return items ;
} ) , 2 ) ;
2026-07-29 08:29:29 +00:00
importDefault = tmp8 ;
const items1 = [ tmp7 [ 1 ] ] ;
2026-07-23 10:11:24 +00:00
const effect = navigation . useEffect ( ( ) = > {
if ( ! c1 ) {
2026-07-29 08:29:29 +00:00
const premiumSubscriptionPlans = callback ( basePurchaseFlowAnalyticsFields [ 59 ] ) . fetchPremiumSubscriptionPlans ( ) ;
const obj = callback ( basePurchaseFlowAnalyticsFields [ 59 ] ) ;
2026-07-20 16:05:17 +00:00
}
} , items1 ) ;
2026-07-29 08:29:29 +00:00
const tmp11 = importDefault ( basePurchaseFlowAnalyticsFields [ 60 ] ) ( ( ) = > callback ( basePurchaseFlowAnalyticsFields [ 46 ] ) . getNewAnalyticsLoadId ( ) ) ;
let obj1 = _require ( basePurchaseFlowAnalyticsFields [ 46 ] ) ;
obj = { analyticsLoadId : tmp11 , analyticsLocation : null , analyticsLocations : null } ;
2026-07-20 16:05:17 +00:00
obj = { object : constants2 . BUTTON_CTA , object_type : constants3.BUY } ;
2026-07-23 10:11:24 +00:00
let merged = Object . assign ( analyticsLocation ) ;
2026-07-29 08:29:29 +00:00
obj [ 1 ] = obj ;
obj [ 2 ] = analyticsLocations ;
2026-07-23 10:11:24 +00:00
basePurchaseFlowAnalyticsFields = obj1 . getBasePurchaseFlowAnalyticsFields ( obj ) ;
2026-07-20 16:05:17 +00:00
if ( null != planId ) {
2026-07-29 08:29:29 +00:00
obj1 = { subscription_plan_id : null } ;
obj1 [ 0 ] = planId ;
2026-07-23 10:11:24 +00:00
obj2 = obj1 ;
2026-07-20 16:05:17 +00:00
} else {
obj2 = { } ;
}
2026-07-29 08:29:29 +00:00
tmp2 ( tmp3 [ 61 ] ) ( ( ) = > {
let obj = callback ( basePurchaseFlowAnalyticsFields [ 62 ] ) ;
2026-07-20 16:05:17 +00:00
obj = { } ;
const merged = Object . assign ( basePurchaseFlowAnalyticsFields ) ;
const merged1 = Object . assign ( obj2 ) ;
2026-07-29 08:29:29 +00:00
obj . application_id = callback ;
2026-07-20 16:05:17 +00:00
const result = obj . trackPaymentFlowStartedAnalyticsAndCTP ( obj ) ;
} ) ;
const activeSubscription = useNativeCheckoutStore ( ( activeSubscription ) = > ( { activeSubscription : activeSubscription.checkoutInitParameters.activeSubscription , order : activeSubscription.orderRecord } ) ) . activeSubscription ;
2026-07-29 08:29:29 +00:00
let tmp4Result = tmp4 ( tmp3 [ 63 ] ) ;
handlePremiumPurchase = tmp4Result . useHandlePremiumPurchase ( ) ;
tmp4Result = tmp4 ( tmp3 [ 64 ] ) ;
navigation = tmp4Result . useNavigation ( ) ;
const isPaymentsBlocked = _require ( tmp3 [ 65 ] ) . useIsPaymentsBlocked ( ) ;
const tmp15 = useNativeCheckoutStore ;
const tmp4Result1 = _require ( tmp3 [ 65 ] ) ;
const tmp5 = reset ;
const tmp6 = handlePremiumPurchase ;
2026-07-20 16:05:17 +00:00
if ( null != activeSubscription ) {
2026-07-29 08:29:29 +00:00
let obj3 = { subscriptionId : null , renewal : true , analyticsLocations : null , analyticsLocation : null } ;
obj3 [ 0 ] = activeSubscription . id ;
obj3 [ 2 ] = analyticsLocations ;
obj3 [ 3 ] = tmp2 ( tmp3 [ 67 ] ) . PREMIUM_PLAN_SELECT ;
2026-07-20 16:05:17 +00:00
let obj4 = obj3 ;
} else {
obj4 = { } ;
}
2026-07-29 08:29:29 +00:00
const first = tmp6 ( _require ( tmp3 [ 66 ] ) . useFetchSubscriptionInvoicePreview ( obj4 ) , 1 ) [ 0 ] ;
const tmp15Result = tmp15 ( ( patchOrderLineItems ) = > ( { patchOrderLineItems : patchOrderLineItems.patchOrderLineItems , isPatchOrderLoading : patchOrderLineItems.isPatchOrderLoading , orderRequired : patchOrderLineItems.orderRequired } ) ) ;
patchOrderLineItems = tmp15Result . patchOrderLineItems ;
orderRequired = tmp15Result . orderRequired ;
const tmp4Result2 = _require ( tmp3 [ 66 ] ) ;
const items2 = [ tmp5 ] ;
stateFromStores = _require ( tmp3 [ 32 ] ) . useStateFromStores ( items2 , ( ) = > reset . getPremiumTypeSubscription ( ) ) ;
_require = undefined ;
_require = obj2 ( ( arg0 , arg1 ) = > {
let closure_0 = arg0 ;
let closure_1 = arg1 ;
let c6 = 0 ;
let c7 = 0 ;
let c5 = 0 ;
return ( function * ( arg0 , arg1 ) {
if ( c7 === 2 ) {
c7 = 3 ;
HermesBuiltin . throwTypeError ( ) ;
} else if ( tmp6 === 3 ) {
if ( arg0 === 1 ) {
throw arg1 ;
} else if ( arg0 === 2 ) {
let obj = { value : null , done : true } ;
obj [ 0 ] = arg1 ;
return obj ;
} else {
2026-08-05 07:35:12 +00:00
return { value : "T" , done : null } ;
2026-07-29 08:29:29 +00:00
}
} else {
try {
c7 = 2 ;
if ( 0 === v0 ) {
if ( arg0 === 1 ) {
c7 = 3 ;
throw arg1 ;
} else if ( arg0 === 2 ) {
c7 = 3 ;
obj = { value : null , done : true } ;
obj [ 0 ] = arg1 ;
return obj ;
} else {
let createGuildRecordFromRust = tmp3 ;
let id = tmp7 ;
id = undefined ;
outer2_14 ( true , callback ) ;
if ( null != outer1_8 ) {
let modifySubscriptionItemsForProduct = callback ( basePurchaseFlowAnalyticsFields [ 45 ] ) . getModifySubscriptionItemsForProduct ( tmp70 , tmp74 ) ;
const obj9 = callback ( basePurchaseFlowAnalyticsFields [ 45 ] ) ;
} else {
modifySubscriptionItemsForProduct = callback ( basePurchaseFlowAnalyticsFields [ 45 ] ) . getSubscriptionItemsForProduct ( tmp70 ) ;
const obj8 = callback ( basePurchaseFlowAnalyticsFields [ 45 ] ) ;
}
id = undefined ;
if ( c7 ) {
v0 = 2 ;
c7 = 1 ;
const obj1 = { value : null , done : false } ;
obj1 [ 0 ] = v0 ( modifySubscriptionItemsForProduct . map ( ( planId ) = > {
const obj = { sku_id : null , subscription_plan_id : null , quantity : null , purchase_type : null } ;
2026-08-06 08:05:19 +00:00
const obj2 = callback ( 3930 ) ;
obj [ 0 ] = obj2 . castPremiumSubscriptionAsSkuId ( callback2 ( 3930 ) . getSkuIdForPlan ( planId . planId ) ) ;
2026-07-29 08:29:29 +00:00
( { planId : obj [ 1 ] , quantity : obj [ 2 ] } = planId ) ;
obj [ 3 ] = constants . SUBSCRIPTION ;
return obj ;
} ) ) ;
return obj1 ;
}
}
} else {
if ( 1 === tmp7 ) {
let c5 = 0 ;
if ( initialize instanceof callback2 ( basePurchaseFlowAnalyticsFields [ 68 ] ) ) {
let obj4 = callback ( basePurchaseFlowAnalyticsFields [ 69 ] ) ;
const subscriptions = obj4 . fetchSubscriptions ( ) ;
let obj5 = callback2 ( basePurchaseFlowAnalyticsFields [ 47 ] ) ;
let obj2 = { title : null , body : null } ;
const intl3 = callback ( basePurchaseFlowAnalyticsFields [ 22 ] ) . intl ;
obj2 [ 0 ] = intl3 . string ( callback ( basePurchaseFlowAnalyticsFields [ 22 ] ) . t [ "U+H+kd" ] ) ;
const intl4 = callback ( basePurchaseFlowAnalyticsFields [ 22 ] ) . intl ;
obj2 [ 1 ] = intl4 . string ( callback ( basePurchaseFlowAnalyticsFields [ 22 ] ) . t . yyDkbE ) ;
obj5 . show ( obj2 ) ;
} else {
obj2 = callback2 ( basePurchaseFlowAnalyticsFields [ 47 ] ) ;
const obj3 = { title : null , body : null , isDismissable : true } ;
const intl = callback ( basePurchaseFlowAnalyticsFields [ 22 ] ) . intl ;
obj3 [ 0 ] = intl . string ( callback ( basePurchaseFlowAnalyticsFields [ 22 ] ) . t . zrhHH3 ) ;
const intl2 = callback ( basePurchaseFlowAnalyticsFields [ 22 ] ) . intl ;
obj3 [ 1 ] = intl2 . string ( callback ( basePurchaseFlowAnalyticsFields [ 22 ] ) . t . PjfUXe ) ;
obj2 . show ( obj3 ) ;
}
outer2_14 ( false ) ;
} else if ( 2 === tmp7 ) {
if ( arg0 === 1 ) {
c7 = 3 ;
throw arg1 ;
} else {
if ( arg0 !== 2 ) {
id = arg1 ;
if ( null == arg1 ) {
outer2_14 ( false ) ;
c7 = 3 ;
}
}
c7 = 3 ;
obj4 = { value : null , done : true } ;
obj4 [ 0 ] = arg1 ;
return obj4 ;
}
} else if ( arg0 === 1 ) {
c7 = 3 ;
throw arg1 ;
} else if ( arg0 !== 2 ) {
c5 = 0 ;
}
c5 = 0 ;
c7 = 3 ;
obj = { value : null , done : true } ;
obj [ 0 ] = arg1 ;
return obj ;
}
c5 = 1 ;
obj5 = { productId : null , analyticsLocation : null , analyticsLoadId : null , applicationId : null , orderId : null , onPurchaseComplete : null } ;
obj5 [ 0 ] = callback ;
obj5 [ 1 ] = outer1_2 . location ;
obj5 [ 2 ] = closure_1 ;
obj5 [ 3 ] = callback ;
id = undefined ;
if ( id != null ) {
id = id . id ;
}
obj5 [ 4 ] = id ;
obj5 [ 5 ] = function onPurchaseComplete ( paymentGateway ) {
let obj = callback2 ( outer2_2 [ 47 ] ) ;
obj . close ( ) ;
if ( paymentGateway . paymentGateway === outer2_27 . APPLE_ADVANCED_COMMERCE ) {
const premiumTypeSubscription = outer2_12 . getPremiumTypeSubscription ( ) ;
if ( null == premiumTypeSubscription ) {
const _Error = Error ;
const error = new Error ( "PremiumActivatedAlert: no premium subscription in store post-activation" ) ;
obj = { tags : null } ;
obj [ 0 ] = { source : "showPremiumActivatedAlert.nullSubscription" } ;
const result = callback ( tmp2 [ 54 ] ) . captureBillingException ( error , obj ) ;
let tmpResult = tmp ( tmp2 [ 55 ] ) ;
tmpResult . popWithKey ( callback ( tmp2 [ 56 ] ) . PREMIUM_KEY ) ;
if ( c5 . canGoBack ( ) ) {
obj7 . goBack ( ) ;
}
const obj4 = callback ( tmp2 [ 54 ] ) ;
obj7 = c5 ;
} else {
tmpResult = tmp ( tmp2 [ 47 ] ) ;
obj = { importer : null } ;
obj [ 0 ] = function importer() {
return premiumTypeSubscription ( outer3_2 [ 49 ] ) ( outer3_2 [ 57 ] , outer3_2 . paths ) . then ( ( ) = > { . . . } ) ;
} ;
tmpResult . openLazy ( obj ) ;
}
}
} ;
v0 = 3 ;
c7 = 1 ;
const obj6 = { value : null , done : false } ;
obj6 [ 0 ] = outer1_4 ( obj5 ) ;
return obj6 ;
} catch ( tmp58 ) {
initialize = tmp58 ;
if ( tmp4 === c5 ) {
c7 = tmp2 ;
throw tmp58 ;
} else {
v0 = tmp ;
}
}
}
} ) ( ) ;
} ) ;
2026-07-20 16:05:17 +00:00
const items3 = [ basePurchaseFlowAnalyticsFields . location , applicationId , handlePremiumPurchase , navigation , patchOrderLineItems , orderRequired , stateFromStores ] ;
if ( null == predicate ) {
return null ;
} else {
2026-07-29 08:29:29 +00:00
if ( ! tmp7 [ 0 ] ) {
let obj5 = { style : null , children : null } ;
obj5 [ 0 ] = tmp . loadingSpinnerContainer ;
obj5 [ 1 ] = callback3 ( tmp4 ( tmp3 [ 41 ] ) . ActivityIndicator , { animating : true , size : "large" } ) ;
2026-07-23 10:11:24 +00:00
callback3 ( orderRequired , obj5 ) ;
2026-07-20 16:05:17 +00:00
}
2026-07-29 08:29:29 +00:00
let obj7 = arg1 ;
2026-07-20 16:05:17 +00:00
if ( isPaymentsBlocked ) {
2026-07-29 08:29:29 +00:00
let obj6 = { ref : null , contentInset : null , children : null } ;
obj6 [ 0 ] = obj7 ;
2026-07-20 16:05:17 +00:00
obj7 = { top : 40 } ;
2026-07-29 08:29:29 +00:00
obj6 [ 1 ] = obj7 ;
tmp2 = tmp2 ( tmp3 [ 70 ] ) ;
tmp3 = callback3 ( tmp2 , { } ) ;
obj6 [ 2 ] = tmp3 ;
let tmp25Result = callback3 ( stateFromStores , obj6 ) ;
2026-07-20 16:05:17 +00:00
} else {
if ( null != activeSubscription ) {
if ( activeSubscription . isOnPlatformMatchingExternalPaymentGateway ) {
2026-07-29 08:29:29 +00:00
const tmp4Result4 = tmp4 ( tmp3 [ 45 ] ) ;
const tmp4Result5 = tmp4 ( tmp3 [ 45 ] ) ;
2026-07-20 16:05:17 +00:00
}
2026-07-29 08:29:29 +00:00
tmp25Result = null != first ;
if ( tmp25Result ) {
let obj8 = { children : null } ;
let obj9 = { style : null , variant : "eyebrow" , color : "text-default" , accessibilityRole : "header" , children : null } ;
obj9 [ 0 ] = tmp . premiumHeaderLabel ;
let intl = tmp4 ( tmp3 [ 22 ] ) . intl ;
obj9 [ 4 ] = intl . string ( tmp4 ( tmp3 [ 22 ] ) . t . ITurwY ) ;
const items4 = [ callback3 ( tmp4 ( tmp3 [ 21 ] ) . Text , obj9 ) , ] ;
const obj10 = { subscription : null , renewalInvoicePreview : null } ;
obj10 [ 0 ] = activeSubscription ;
obj10 [ 1 ] = first ;
items4 [ 1 ] = callback3 ( tmp4 ( tmp3 [ 71 ] ) . PremiumSubscriptionHeader , obj10 ) ;
obj8 [ 0 ] = items4 ;
tmp25Result = tmp25 ( closure_34 , obj8 ) ;
2026-07-20 16:05:17 +00:00
}
2026-07-29 08:29:29 +00:00
const obj11 = { children : null } ;
const items5 = [ tmp25Result , ] ;
const obj12 = { style : null , variant : "text-md/semibold" , children : null } ;
obj12 [ 0 ] = tmp . offPlatformSubscriptionMessage ;
obj12 [ 2 ] = tmp4 ( tmp3 [ 72 ] ) . getExternalManagementMessage ( activeSubscription , { shouldAllowExternalManagement : true } ) ;
items5 [ 1 ] = callback3 ( tmp4 ( tmp3 [ 21 ] ) . Text , obj12 ) ;
obj11 [ 0 ] = items5 ;
tmp25Result = tmp25 ( stateFromStores , obj11 ) ;
const tmp26 = stateFromStores ;
const tmp4Result6 = tmp4 ( tmp3 [ 72 ] ) ;
2026-07-20 16:05:17 +00:00
}
2026-07-29 08:29:29 +00:00
const obj13 = { ref : null , children : null } ;
obj13 [ 0 ] = obj7 ;
const obj14 = { subscription : null , plans : null , showCurrentPlan : null , isBoostPurchaseFlow : null , analyticsLoadId : null , trackPaymentFlowStep : null , trackNewPaymentFlow : null , purchase : null } ;
obj14 [ 0 ] = activeSubscription ;
obj14 [ 1 ] = tmp4 ( tmp3 [ 45 ] ) . getPremiumBundlesWithPredicate ( predicate ) ;
obj14 [ 2 ] = showCurrentPlan ;
obj14 [ 3 ] = flag ;
obj14 [ 4 ] = tmp11 ;
obj14 [ 5 ] = function trackPaymentFlowStep ( arg0 ) {
let fromStep ;
let productId ;
let toStep ;
( { productId , fromStep , toStep } = arg0 ) ;
let obj = _undefined ( basePurchaseFlowAnalyticsFields [ 73 ] ) ;
obj = { application_id : callback } ;
const merged = Object . assign ( callback ( basePurchaseFlowAnalyticsFields [ 46 ] ) . getPaymentFlowStepAnalyticsFields ( basePurchaseFlowAnalyticsFields , { from_step : fromStep , to_step : toStep , subscription_plan_gateway_plan_id : productId } ) ) ;
obj . track ( outer1_23 . PAYMENT_FLOW_STEP , obj ) ;
} ;
obj14 [ 6 ] = function trackNewPaymentFlow ( arg0 ) {
let newFlowAnalyticsLoadId ;
let productId ;
( { newFlowAnalyticsLoadId , productId } = arg0 ) ;
let obj = callback ( basePurchaseFlowAnalyticsFields [ 62 ] ) ;
obj = { } ;
const merged = Object . assign ( basePurchaseFlowAnalyticsFields ) ;
obj . subscription_plan_gateway_plan_id = productId ;
obj . load_id = newFlowAnalyticsLoadId ;
obj . application_id = callback ;
const result = obj . trackPaymentFlowStartedAnalyticsAndCTP ( obj ) ;
2026-07-20 16:05:17 +00:00
} ;
2026-07-29 08:29:29 +00:00
obj14 [ 7 ] = tmp22 ;
obj13 [ 1 ] = callback3 ( PlanSections , obj14 ) ;
tmp25Result = callback3 ( stateFromStores , obj13 ) ;
const tmp4Result7 = tmp4 ( tmp3 [ 45 ] ) ;
2026-07-20 16:05:17 +00:00
}
}
} ) ;
2026-07-29 08:29:29 +00:00
let obj6 = { color : require ( "Themes" ) . unsafe_rawColors . GUILD_BOOSTING_PINK } ;
let obj7 = {
2026-07-24 07:16:23 +00:00
id : "premium" ,
getLabel() {
2026-07-29 08:29:29 +00:00
const intl = require ( 1236 ) /* getSystemLocale */ . intl ;
return intl . string ( require ( 1236 ) /* getSystemLocale */ . t . A4BfLn ) ;
2026-07-23 10:11:24 +00:00
} ,
predicate ( premiumTier ) {
let tmp = null != premiumTier . premiumTier ;
if ( tmp ) {
2026-07-24 07:16:23 +00:00
tmp = 0 === premiumTier . numPremiumGuild ;
2026-07-23 10:11:24 +00:00
}
return tmp ;
}
} ;
2026-07-29 08:29:29 +00:00
let result = require ( "noop" ) . fileFinishedImporting ( "modules/premium/native/PremiumPlanSelect.tsx" ) ;
2026-07-20 16:05:17 +00:00
export default function PremiumPlanSelectWithOrderCTX ( isBoostPurchaseFlow ) {
2026-07-23 10:11:24 +00:00
const _require = isBoostPurchaseFlow ;
let obj = _require ( stateFromStores1 [ 64 ] ) ;
2026-07-20 16:05:17 +00:00
const navigation = obj . useNavigation ( ) ;
2026-07-23 10:11:24 +00:00
let obj1 = _require ( stateFromStores1 [ 32 ] ) ;
2026-07-29 08:29:29 +00:00
const items = [ reset ] ;
const stateFromStores = obj1 . useStateFromStores ( items , ( ) = > reset . getPremiumTypeSubscription ( ) ) ;
2026-07-23 10:11:24 +00:00
const NitroACOMSubscriptionExperiment = _require ( stateFromStores1 [ 74 ] ) . NitroACOMSubscriptionExperiment ;
let obj2 = _require ( stateFromStores1 [ 44 ] ) ;
2026-07-20 16:05:17 +00:00
if ( obj2 . isIOS ( ) ) {
2026-07-29 08:29:29 +00:00
if ( NitroACOMSubscriptionExperiment . useConfig ( { location : "PremiumPlanSelectWithOrderCTX" } ) . enabled ) {
let APPLE = tmp7 . APPLE_ADVANCED_COMMERCE ;
let tmp9 = tmp7 ;
} else {
APPLE = tmp7 . APPLE ;
tmp9 = tmp7 ;
}
2026-07-20 16:05:17 +00:00
} else {
2026-07-29 08:29:29 +00:00
let paymentGateway = tmp7 . GOOGLE ;
2026-07-20 16:05:17 +00:00
if ( null != stateFromStores ) {
paymentGateway = stateFromStores . paymentGateway ;
}
2026-07-29 08:29:29 +00:00
obj = { subscriptionPlanId : null , skuId : null , quantity : 1 } ;
obj [ 0 ] = PREMIUM_YEAR_TIER_2 . PREMIUM_YEAR_TIER_2 ;
let tmp2Result = tmp2 ( tmp3 [ 23 ] ) ;
obj [ 1 ] = tmp2Result . castPremiumSubscriptionAsSkuId ( TIER_2 . TIER_2 ) ;
2026-07-20 16:05:17 +00:00
const items1 = [ obj ] ;
2026-07-29 08:29:29 +00:00
tmp2Result = tmp2 ( tmp3 [ 32 ] ) ;
const items2 = [ reset ] ;
stateFromStores1 = tmp2Result . useStateFromStores ( items2 , ( ) = > reset . hasFetchedSubscriptions ( ) ) ;
2026-07-20 16:05:17 +00:00
const items3 = [ stateFromStores1 ] ;
const effect = importAllResult . useEffect ( ( ) = > {
if ( ! stateFromStores1 ) {
2026-07-23 10:11:24 +00:00
const subscriptions = isBoostPurchaseFlow ( stateFromStores1 [ 69 ] ) . fetchSubscriptions ( ) ;
const obj = isBoostPurchaseFlow ( stateFromStores1 [ 69 ] ) ;
2026-07-20 16:05:17 +00:00
}
} , items3 ) ;
const items4 = [ closure_10 ] ;
2026-07-29 08:29:29 +00:00
const stateFromStores2 = tmp2 ( tmp3 [ 32 ] ) . useStateFromStores ( items4 , ( ) = > {
let tmp2 ;
2026-07-23 10:11:24 +00:00
if ( null != isBoostPurchaseFlow . guildId ) {
2026-07-29 08:29:29 +00:00
const guild = outer1_10 . getGuild ( tmp . guildId ) ;
2026-07-20 16:05:17 +00:00
let name ;
2026-07-29 08:29:29 +00:00
if ( guild != null ) {
2026-07-20 16:05:17 +00:00
name = guild . name ;
}
2026-07-29 08:29:29 +00:00
tmp2 = name ;
2026-07-20 16:05:17 +00:00
}
2026-07-29 08:29:29 +00:00
return tmp2 ;
2026-07-20 16:05:17 +00:00
} ) ;
let mobileBoostingEnabled = true === isBoostPurchaseFlow . isBoostPurchaseFlow ;
if ( mobileBoostingEnabled ) {
2026-07-29 08:29:29 +00:00
mobileBoostingEnabled = tmp2 ( tmp3 [ 52 ] ) . getMobileBoostingEnabled ( "PremiumPlanSelect" ) ;
const tmp2Result2 = tmp2 ( tmp3 [ 52 ] ) ;
2026-07-20 16:05:17 +00:00
}
const items5 = [ navigation , mobileBoostingEnabled , stateFromStores2 ] ;
const layoutEffect = importAllResult . useLayoutEffect ( ( ) = > {
if ( mobileBoostingEnabled ) {
if ( null != stateFromStores2 ) {
2026-07-23 10:11:24 +00:00
const intl2 = isBoostPurchaseFlow ( stateFromStores1 [ 22 ] ) . intl ;
2026-07-29 08:29:29 +00:00
let obj = { server : null } ;
obj [ 0 ] = tmp3 ;
2026-07-23 10:11:24 +00:00
let formatToPlainStringResult = intl2 . formatToPlainString ( isBoostPurchaseFlow ( stateFromStores1 [ 22 ] ) . t . LcefAL , obj ) ;
2026-07-20 16:05:17 +00:00
}
2026-07-29 08:29:29 +00:00
obj = { title : null } ;
obj [ 0 ] = formatToPlainStringResult ;
2026-07-20 16:05:17 +00:00
tmp2 ( obj ) ;
}
2026-07-23 10:11:24 +00:00
const intl = isBoostPurchaseFlow ( stateFromStores1 [ 22 ] ) . intl ;
formatToPlainStringResult = intl . string ( isBoostPurchaseFlow ( stateFromStores1 [ 22 ] ) . t . u95Dt4 ) ;
2026-07-20 16:05:17 +00:00
} , items5 ) ;
if ( stateFromStores1 ) {
if ( null != paymentGateway ) {
2026-07-29 08:29:29 +00:00
obj = { paymentGateway : null , orderRequired : null , skuIds : null , defaultPlans : null , isGift : false , activeSubscription : null , onOrderRetryCancellation : null , children : null } ;
obj [ 0 ] = paymentGateway ;
obj [ 1 ] = paymentGateway === tmp7 . APPLE_ADVANCED_COMMERCE ;
obj [ 2 ] = [ ] ;
obj [ 3 ] = items1 ;
obj [ 5 ] = stateFromStores ;
obj [ 6 ] = function onOrderRetryCancellation() {
let arr = navigation ;
if ( navigation . canGoBack ( ) ) {
arr . goBack ( ) ;
} else {
arr = arr . pop ( ) ;
}
2026-07-20 16:05:17 +00:00
} ;
obj1 = { } ;
const merged = Object . assign ( isBoostPurchaseFlow ) ;
2026-07-29 08:29:29 +00:00
obj [ 7 ] = callback3 ( closure_46 , obj1 ) ;
return callback3 ( navigation ( tmp3 [ 75 ] ) , obj ) ;
2026-07-20 16:05:17 +00:00
}
let str2 = "Android" ;
2026-07-29 08:29:29 +00:00
if ( tmp2Result3 . isIOS ( ) ) {
2026-07-20 16:05:17 +00:00
str2 = "iOS" ;
}
2026-07-29 08:29:29 +00:00
obj2 = { children : null } ;
const obj3 = { variant : "display-md" , children : null } ;
let intl = tmp2 ( tmp3 [ 22 ] ) . intl ;
const obj4 = { mobilePlatform : null } ;
obj4 [ 0 ] = str2 ;
obj3 [ 1 ] = intl . format ( tmp2 ( tmp3 [ 22 ] ) . t . CnoyAN , obj4 ) ;
obj2 [ 0 ] = callback3 ( tmp2 ( tmp3 [ 21 ] ) . Text , obj3 ) ;
2026-07-23 10:11:24 +00:00
return callback3 ( closure_7 , obj2 ) ;
2026-07-20 16:05:17 +00:00
} else {
2026-07-29 08:29:29 +00:00
const obj5 = { style : null , children : null } ;
obj5 [ 0 ] = tmp . loadingSpinnerContainer ;
obj5 [ 1 ] = callback3 ( tmp2 ( tmp3 [ 41 ] ) . ActivityIndicator , { animating : true , size : "large" } ) ;
2026-07-23 10:11:24 +00:00
return callback3 ( closure_7 , obj5 ) ;
2026-07-20 16:05:17 +00:00
}
2026-07-29 08:29:29 +00:00
const obj7 = importAllResult ;
const tmp2Result1 = tmp2 ( tmp3 [ 32 ] ) ;
2026-07-20 16:05:17 +00:00
}
} ;