/* Metro module 12269; source: modules/premium/native/PremiumPlanSelect.tsx; dependencies: [5, 57, 31, 27, 7042, 3807, 3808, 5140, 12270, 1880, 661, 7047, 33, 4501, 6597, 6235, 697, 1244, 3802, 12271, 12272, 12273, 12274, 12275, 12276, 566, 7253, 4048, 1305, 5321, 4002, 7533, 7534, 478, 7027, 7294, 4496, 12277, 1962, 4589, 6771, 6847, 6518, 4594, 7295, 7254, 7035, 7545, 6789, 7327, 4573, 7509, 7022, 683, 7256, 4223, 7334, 7335, 2] */ import Module00005 from '../../../by-id/module-00005.js'; /* Metro dependency 5 */ import Module00057 from '../../../by-id/module-00057.js'; /* Metro dependency 57 */ import AnalyticsUtils from '../../../utils/AnalyticsUtils.tsx'; /* Metro dependency 683 */ import SubscriptionPlanStore from '../../../stores/billing/SubscriptionPlanStore.tsx'; /* Metro dependency 3807 */ import SubscriptionStore from '../../../stores/billing/SubscriptionStore.tsx'; /* Metro dependency 3808 */ import UseTheme from '../../../hooks/useTheme.tsx'; /* Metro dependency 4048 */ import UseMountEffect from '../../../hooks/useMountEffect.tsx'; /* Metro dependency 4594 */ import IAPStoreAndroid from '../../../stores/native/IAPStore.android.tsx'; /* Metro dependency 5140 */ import UseInitialValue from '../../../hooks/useInitialValue.tsx'; /* Metro dependency 6518 */ import TextStyles from '../../rebrand/native/TextStyles.tsx'; /* Metro dependency 6597 */ import UseAnalyticsLocations from '../../app_analytics/useAnalyticsLocations.tsx'; /* Metro dependency 6771 */ import * as FileImportTrackerModule from '../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */ import * as ReactNativeModule from '../../../by-id/module-00027-ReactNative.js'; /* Metro dependency 27 */ import * as ReactModule from '../../../by-id/module-00031-React.js'; /* Metro dependency 31 */ import * as JsxRuntimeModule from '../../../by-id/module-00033-JsxRuntime.js'; /* Metro dependency 33 */ import * as FluxModule from '../../../external/discord_common/js/packages/flux/index.tsx'; /* Metro dependency 566 */ import * as ConstantsModule from '../../../Constants.tsx'; /* Metro dependency 661 */ import * as IndexNativeModule from '../../../intl/index.native.tsx'; /* Metro dependency 1244 */ import * as NativeModule from '../../../design/void/native.tsx'; /* Metro dependency 1305 */ import * as PremiumConstantsModule from '../PremiumConstants.tsx'; /* Metro dependency 1880 */ import * as PremiumUtilsModule from '../../../utils/PremiumUtils.tsx'; /* Metro dependency 3802 */ import * as SharedModule from '../../../design/shared.tsx'; /* Metro dependency 4002 */ import * as CreateStylesModule from '../../../design/components/Styles/native/createStyles.tsx'; /* Metro dependency 4501 */ import * as TextModule from '../../../design/components/Text/native/Text.tsx'; /* Metro dependency 4573 */ import * as Module05321Module from '../../../by-id/module-05321.js'; /* Metro dependency 5321 */ import * as LegacyTokensModule from '../../../design/migrations/native/LegacyTokens.tsx'; /* Metro dependency 6235 */ import * as PremiumBundledPlansUtilsModule from './PremiumBundledPlansUtils.tsx'; /* Metro dependency 7027 */ import * as BlockedPaymentsCountryExperimentModule from '../../billing/experiments/BlockedPaymentsCountryExperiment.tsx'; /* Metro dependency 7035 */ import * as NativeCheckoutStoreModule from '../../checkout/native/NativeCheckoutStore.tsx'; /* Metro dependency 7042 */ import * as ColorConstantsModule from '../../colors/native/ColorConstants.tsx'; /* Metro dependency 7047 */ import * as PremiumAnalyticsUtilsModule from './PremiumAnalyticsUtils.tsx'; /* Metro dependency 7294 */ import * as ACOMExperimentsModule from '../../billing/native/ACOMExperiments.tsx'; /* Metro dependency 7334 */ import * as PremiumPlanWhatYouLoseActionSheetModule from './PremiumPlanWhatYouLoseActionSheet.tsx'; /* Metro dependency 7534 */ import * as PremiumSubscriptionInvoiceModule from '../PremiumSubscriptionInvoice.tsx'; /* Metro dependency 7545 */ import * as PremiumPlanSelectStoreModule from './PremiumPlanSelectStore.tsx'; /* Metro dependency 12270 */ function _fun93745(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#93745, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12455:6, offset: 0x020c1f20, size: 1388 bytes, params: 8, frame: 29 const env0_0 = require; const Object = global.Object; Object.defineProperty(exports, '__esModule', {value: true}); const Fonts = ConstantsModule.Fonts; const USER_SETTINGS_CONTAINER_HORIZONTAL_PADDING = ConstantsModule.USER_SETTINGS_CONTAINER_HORIZONTAL_PADDING; const createStyles = CreateStylesModule.createStyles; object = {}; const object2 = {}; const DISPLAY_EXTRABOLD = Fonts.DISPLAY_EXTRABOLD; copyDataProperties(object2, TextStyles(DISPLAY_EXTRABOLD, undefined, 24), undefined); object2['marginTop'] = 16; const DARK_WHITE_500_LIGHT_BLACK_500 = (LegacyTokensModule).DARK_WHITE_500_LIGHT_BLACK_500; object2['color'] = DARK_WHITE_500_LIGHT_BLACK_500; object.header = object2; const object3 = {'marginTop': 7, 'borderRadius': null, 'flexDirection': 'row', 'alignItems': 'center', 'paddingVertical': 12, 'paddingHorizontal': 12, 'flexWrap': 'wrap'}; object3.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.sm; const DARK_PRIMARY_630_LIGHT_PRIMARY_230 = (LegacyTokensModule).DARK_PRIMARY_630_LIGHT_PRIMARY_230; object3.backgroundColor = DARK_PRIMARY_630_LIGHT_PRIMARY_230; object.row = object3; object.imgWumpusNitro = {'height': 40, 'width': 40}; object.imgBoost = {'height': 40, 'width': 40}; object.imgWumpusNitroBoost = {'width': 32, 'height': 32}; object.imgWumpusNitroClassic = {'width': 40, 'height': 40}; object.imgWumpusNitroClassicBoost = {'width': 32, 'height': 32}; object.imgWumpusNitroTier0 = {'width': 40, 'height': 40}; object.rowText = {fontSize: 16, color: DARK_WHITE_500_LIGHT_BLACK_500}; const PRIMARY_SEMIBOLD = Fonts.PRIMARY_SEMIBOLD; object.rowPlanDescription = {'marginLeft': 12, 'fontFamily': null, 'lineHeight': 20, fontFamily: PRIMARY_SEMIBOLD}; const PRIMARY_MEDIUM = Fonts.PRIMARY_MEDIUM; object.rowPlanDescriptionSubtext = {'fontSize': 12, 'marginLeft': 5, 'fontFamily': null, 'fontWeight': '400', fontFamily: PRIMARY_MEDIUM}; object.rowPrice = {marginLeft: 'auto'}; object.container = {'marginHorizontal': 14.5, 'paddingBottom': 10}; const object8 = {marginTop: 20}; object8.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.sm; object.currentPlanGradient = object8; object.currentPlanRow = {'marginTop': 0.5, 'marginRight': 0.5, 'marginLeft': 0.5, 'marginBottom': 0.5}; object.loadingSpinnerContainer = {'display': 'flex', 'alignItems': 'center', 'justifyContent': 'center', 'height': '100%'}; object.offPlatformSubscriptionMessage = {'lineHeight': 20, 'marginTop': 40, margin: USER_SETTINGS_CONTAINER_HORIZONTAL_PADDING}; object.premiumHeaderLabel = {paddingHorizontal: USER_SETTINGS_CONTAINER_HORIZONTAL_PADDING, marginTop: 8}; const env0_32 = Reflect.apply(createStyles, CreateStylesModule, [object]); object = {}; object[importDefault(12274) /* metro dependency 12274 */] = 'imgWumpusNitro'; object[importDefault(12276) /* metro dependency 12276 */] = 'imgWumpusNitroBoost'; object[importDefault(12273) /* metro dependency 12273 */] = 'imgWumpusNitroClassic'; object[importDefault(12275) /* metro dependency 12275 */] = 'imgWumpusNitroClassicBoost'; object[importDefault(12272) /* metro dependency 12272 */] = 'imgWumpusNitroTier0'; object[importDefault(12271) /* metro dependency 12271 */] = 'imgBoost'; const items2 = [{getLabel: function() { return require(dependencyMap[17]).intl.string(require(dependencyMap[17]).t.A4BfLn); }, predicate: function(a0) { return a0.premiumTier != null && a0.numPremiumGuild === 0; }}]; items2[1] = {getLabel: function() { return require(dependencyMap[17]).intl.string(require(dependencyMap[17]).t.lyXyD0); }, predicate: function(a0) { return a0.premiumTier != null && a0.numPremiumGuild !== 0; }}; items2[2] = {getLabel: function() { return require(dependencyMap[17]).intl.string(require(dependencyMap[17]).t.rPoOQW); }, predicate: function(a0) { return a0.premiumTier == null && a0.numPremiumGuild !== 0; }}; const env0_35 = ReactModule.forwardRef(PremiumPlanSelect); (FileImportTrackerModule).fileFinishedImporting('modules/premium/native/PremiumPlanSelect.tsx'); exports.default = PremiumPlanSelectWithOrderCTX; function getPlanDescription_93746(a0) { // fn#93746, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12455:2030, offset: 0x020c248c, size: 291 bytes, params: 2, frame: 17 var r0; var value; const intl = (IndexNativeModule).intl; const t = (IndexNativeModule).t; if (a0.premiumTier == null) { r0 = intl.formatToPlainString(t.gDsyB9, {numSubscriptions: a0.numPremiumGuild}); } else if (a0.numPremiumGuild === 0) { value = require(3802) /* metro dependency 3802: PremiumUtils */; value = value.getPremiumTypeDisplayName(a0.premiumTier); r0 = value; } else { r0 = intl.formatToPlainString(a0.premiumTier === PremiumTypes.TIER_1 ? t.sexoHq : t.u6dBsN, {num: a0.numPremiumGuild}); } return r0; } function PlanRow({plan, purchase, style, subscription, disabled, hasBackground}) { // fn#93747, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12455:2569, offset: 0x020c25af, size: 1192 bytes, params: 2, frame: 33 const LegacyText = (NativeModule).LegacyText; const intl = (require(1244) /* metro dependency 1244: indexNative */).intl; disabled = !(disabled === undefined) && disabled; hasBackground = !(hasBackground === undefined) && hasBackground; const styles = useStyles(); const value2 = usePremiumPlanSelectStore(function(a0) { return a0.isPurchasing; }); const useStateFromStoresArray = FluxModule.useStateFromStoresArray; const value4 = Module00057(Reflect.apply(useStateFromStoresArray, FluxModule, [[IAPStoreAndroid], function() { var items = [IAPStoreAndroid.getProduct(plan.productId)]; items[1] = IAPStoreAndroid.isBusy(); return items; }]), 2); const property = value4[0]; const property2 = value4[1]; const r15 = (require(7253) /* metro dependency 7253: useCheckoutPlanPriceString */).useCheckoutPlanPriceString(plan.productId, property) ?? '$...'; const value8 = (UseTheme)(); const premiumTier = plan.premiumTier; const TIER_2 = PremiumTypes.TIER_2; const r9 = ( premiumTier !== TIER_2 || plan.numPremiumGuild !== 0 ? null : ( {intl.format((require(1244) /* metro dependency 1244: indexNative */).t.he52LA, {num: NUM_FREE_GUILD_BOOSTS_WITH_PREMIUM})} ) ); const r13 = plan.premiumTier == null ? importDefault(12271) /* metro dependency 12271 */ : plan.numPremiumGuild !== 0 ? plan.premiumTier === PremiumTypes.TIER_1 ? importDefault(12275) /* metro dependency 12275 */ : importDefault(12276) /* metro dependency 12276 */ : PremiumTypes.TIER_0 === plan.premiumTier ? importDefault(12272) /* metro dependency 12272 */ : PremiumTypes.TIER_1 === plan.premiumTier ? importDefault(12273) /* metro dependency 12273 */ : PremiumTypes.TIER_2 === plan.premiumTier ? importDefault(12274) /* metro dependency 12274 */ : plan.premiumTier === PremiumTypes.TIER_1 ? importDefault(12275) /* metro dependency 12275 */ : importDefault(12276) /* metro dependency 12276 */; const env0_3 = subscription != null ? (require(3802) /* metro dependency 3802: PremiumUtils */).getPremiumTypeFromSubscription(subscription) : null; const TouchableHighlight = (Module05321Module).TouchableHighlight; object = {'activeOpacity': 0.6, 'underlayColor': null, 'accessibilityRole': 'button'}; const isThemeDark2 = (SharedModule).isThemeDark(value8); const value11 = 'none'; object.underlayColor = isThemeDark2 ? value11 : hasBackground ? (importDefault(697) /* metro dependency 697: native */).unsafe_rawColors.PRIMARY_230 : value11; let r5 = disabled || value2; r5 = !r5 ? property2 : r5; object.disabled = r5; object.onPress = onPress_93750; const items2 = [styles.row, style]; const items3 = [ , ]; items3[1] = ( {getPlanDescription_93746(plan)} ); items3[2] = r9; const format = intl.format; const interval = plan.interval; const MONTH = SubscriptionIntervalTypes.MONTH; items3[3] = ( {Reflect.apply(format, intl, [interval === MONTH ? (require(1244) /* metro dependency 1244: indexNative */).t.AbOLNu : (require(1244) /* metro dependency 1244: indexNative */).t['rS8FA+'], {price: r15}])} ); return ( {items3} ); function PlanRowOnPress() { // fn#93750, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12455:3584, owner: PlanRow.onPress, offset: 0x020c2a9d, size: 190 bytes, params: 1, frame: 15 var environment; var binding; var value2; const WhatYouLoseMode = (PremiumPlanWhatYouLoseActionSheetModule).WhatYouLoseMode; if (subscription == null) { purchase(plan.productId); } else { binding = env0_3; value2 = environment.__proto__; if (binding === PremiumTypes.TIER_2) { if (plan.premiumTier !== PremiumTypes.TIER_0) { purchase(plan.productId); } else { (importDefault(7533) /* metro dependency 7533: openPremiumPlanWhatYouLoseActionSheet */)({subscription: subscription, mode: WhatYouLoseMode.DOWNGRADE, onContinue: function() { return purchase(plan.productId); }}); } } else if (env0_3 !== PremiumTypes.TIER_1) { purchase(plan.productId); } else if (plan.premiumTier !== PremiumTypes.TIER_0) { purchase(plan.productId); } else { (importDefault(7533) /* metro dependency 7533: openPremiumPlanWhatYouLoseActionSheet */)({subscription: subscription, mode: WhatYouLoseMode.DOWNGRADE, onContinue: onContinue_93751}); } } function onPressOnContinue() { // fn#93751, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12455:3742, owner: PlanRow.onPress.onContinue, offset: 0x020c2b5b, size: 26 bytes, params: 1, frame: 11 return purchase(plan.productId); } } } function PlanSection({plans, purchase, analyticsLoadId, trackNewPaymentFlow, trackPaymentFlowStep, subscription}) { // fn#93752, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12455:4091, offset: 0x020c2b75, size: 172 bytes, params: 2, frame: 17 const env0_6 = (require(478) /* metro dependency 478: PlatformUtils */).isIOS() && useNativeCheckoutStore(function(a0) { return a0.getCheckoutContextRecord(); }) != null; return ( {plans.map(_fun93754)} ); function _fun93754(a0) { // fn#93754, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12455:4311, offset: 0x020c2c21, size: 64 bytes, params: 2, frame: 15 return ( ); function purchase_93755(a0) { // fn#93755, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12455:4356, offset: 0x020c2c61, size: 426 bytes, params: 2, frame: 23 var environment; var r1; var r8; var binding; var getAvailablePlanForItems; var moduleValue2; const PaymentFlowStep = (PremiumAnalyticsUtilsModule).PaymentFlowStep; const env0_0 = a0; const value = environment.__proto__.__proto__; const value2 = undefined; const toggledIntervalProduct = (require(7027) /* metro dependency 7027: PremiumBundledPlansUtils */).getToggledIntervalProduct(a0); const value5 = null; if (env1_6) { if (value5 != toggledIntervalProduct) { if (value5 == env1_5) { r1 = value2; } else { binding = env1_5; getAvailablePlanForItems = binding.getAvailablePlanForItems; moduleValue2 = require(7027) /* metro dependency 7027: PremiumBundledPlansUtils */; r1 = Reflect.apply(getAvailablePlanForItems, binding, [moduleValue2.getSubscriptionItemsForProduct(toggledIntervalProduct)]); } r8 = value5 != r1 ? r1 : value5; } else { r8 = value5; } } else { r8 = value5; } if (value5 != toggledIntervalProduct) { if (env1_6 ? value5 != r8 : value5 != toggledIntervalProduct && value5 != IAPStoreAndroid.getProduct(toggledIntervalProduct)) { trackPaymentFlowStep({fromStep: PaymentFlowStep.PLAN_SELECT, toStep: PaymentFlowStep.YEARLY_UPSELL, productId: a0}); (importDefault(4496) /* metro dependency 4496: AlertActionCreators */).openLazy({'importer': null, 'hideActionSheet': true, 'isDismissable': true, importer: importer_93756}); return value2; } } const trackPaymentFlowStepBinding = trackPaymentFlowStep; const PLAN_SELECT = PaymentFlowStep.PLAN_SELECT; const EXTERNAL_PAYMENT = PaymentFlowStep.EXTERNAL_PAYMENT; trackPaymentFlowStepBinding({fromStep: PLAN_SELECT, toStep: EXTERNAL_PAYMENT, productId: a0}); return purchase(a0, analyticsLoadId); function purchase_93755Importer() { // fn#93756, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12455:4844, owner: purchase_93755.importer, offset: 0x020c2e0b, size: 64 bytes, params: 1, frame: 13 var environment; let value = environment.__proto__.__proto__.__proto__; value = require(dependencyMap[38]); value = value(dependencyMap[37], dependencyMap.paths); return value.then(function({default: env0_0}) { return _fun93758; }); function _fun93757({default: env0_0}) { // fn#93757, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12455:4878, offset: 0x020c2e4b, size: 23 bytes, params: 2, frame: 2 return _fun93758; function _fun93758(a0) { // fn#93758, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12455:4893, offset: 0x020c2e62, size: 160 bytes, params: 2, frame: 19 var environment; const value = environment.__proto__.__proto__.__proto__.__proto__.__proto__; const binding = env0_0; const bindingProps = {...a0}; bindingProps['productId'] = env2_1; const value4 = null; const r6 = value4 == env2_2 ? undefined : env2_2.getPriceString(); bindingProps['orderPriceString'] = value4 != r6 ? r6 : value4; bindingProps['continueWithDefault'] = env5_3(_fun93760); bindingProps['continueWithUpsell'] = env5_3(_fun93762); return ((Component) => )(binding); function* _fun93760() { // fn#93760, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12455:5023, offset: 0x020c2f0d, size: 137 bytes, params: 1, frame: 18 if (true) { value = environment.__proto__.__proto__.__proto__.__proto__.__proto__.__proto__; var binding = env6_3; var object = {}; var binding2 = env7_0; var binding3 = env7_2; var PaymentFlowStep = binding2(binding3[35]).PaymentFlowStep; var YEARLY_UPSELL = PaymentFlowStep.YEARLY_UPSELL; object.fromStep = YEARLY_UPSELL; PaymentFlowStep = binding2(binding3[35]).PaymentFlowStep; var EXTERNAL_PAYMENT = PaymentFlowStep.EXTERNAL_PAYMENT; object.toStep = EXTERNAL_PAYMENT; var binding4 = env4_0; object.productId = binding4; binding(object); yield require(binding4, importDefault); } } function* _fun93762() { // fn#93762, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12455:5187, offset: 0x020c2fa1, size: 102 bytes, params: 1, frame: 17 if (true) { value = environment.__proto__.__proto__.__proto__.__proto__.__proto__.__proto__.__proto__; var binding = env7_0; value = binding(env7_2[35]); value = value.getNewAnalyticsLoadId(); binding = env4_1; dependencyMap({newFlowAnalyticsLoadId: value, productId: binding}); yield require(binding, value); } } } } } } } } function CurrentPlanRow({subscription, trackPaymentFlowStep, trackNewPaymentFlow, purchase, analyticsLoadId, showCurrentPlan}) { // fn#93763, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12455:5358, offset: 0x020c3007, size: 381 bytes, params: 2, frame: 24 var productIdFromSubscription; var premiumBundledItemsFromProductId; var premiumTier; const styles = useStyles(); if (showCurrentPlan) { if (subscription == null) { return null; } productIdFromSubscription = (require(7027) /* metro dependency 7027: PremiumBundledPlansUtils */).getProductIdFromSubscription(subscription, true); premiumBundledItemsFromProductId = (require(7027) /* metro dependency 7027: PremiumBundledPlansUtils */).getPremiumBundledItemsFromProductId(productIdFromSubscription); premiumTier = premiumBundledItemsFromProductId.premiumTier; return ((Component) => )(importDefault(4589) /* metro dependency 4589 */); } return null; function purchase() { // fn#93764, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12455:5904, owner: CurrentPlanRow.purchase, offset: 0x020c3184, size: 510 bytes, params: 1, frame: 22 var environment; var r0; var r1; var iapStoreAndroidBinding; const PaymentFlowStep = (PremiumAnalyticsUtilsModule).PaymentFlowStep; const value = environment.__proto__; const value2 = undefined; const productIdsForBothIntervals = (PremiumBundledPlansUtilsModule).getProductIdsForBothIntervals(env0_5); const env0_0 = productIdsForBothIntervals.monthly; const yearly = productIdsForBothIntervals.yearly; const status = subscription == null ? value2 : subscription.status; const CANCELED = SubscriptionStatusTypes.CANCELED; if (status === CANCELED) { if (yearly == null) { trackPaymentFlowStep({fromStep: PaymentFlowStep.PLAN_SELECT, toStep: PaymentFlowStep.EXTERNAL_PAYMENT, productId: env0_5}); r1 = purchase(env0_5, analyticsLoadId); } else { trackPaymentFlowStep({fromStep: PaymentFlowStep.PLAN_SELECT, toStep: PaymentFlowStep.YEARLY_UPSELL, productId: env0_5}); (importDefault(4496) /* metro dependency 4496: AlertActionCreators */).openLazy({'importer': null, 'hideActionSheet': true, 'isDismissable': true, importer: importer_93765}); r1 = value2; } r0 = r1; } else if (ReactNativeModule.ActivityIndicator != null) { iapStoreAndroidBinding = IAPStoreAndroid; if (iapStoreAndroidBinding.getProduct(ReactNativeModule.ActivityIndicator) != null) { trackPaymentFlowStep({fromStep: PaymentFlowStep.PLAN_SELECT, toStep: PaymentFlowStep.EXTERNAL_PAYMENT, productId: ReactNativeModule.ActivityIndicator}); r0 = purchase(ReactNativeModule.ActivityIndicator, analyticsLoadId); } else { r0 = value2; } } else { r0 = value2; } return r0; function purchaseImporter() { // fn#93765, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12455:6297, owner: CurrentPlanRow.purchase.importer, offset: 0x020c3382, size: 64 bytes, params: 1, frame: 13 var environment; let value = environment.__proto__.__proto__; value = require(dependencyMap[38]); value = value(dependencyMap[37], dependencyMap.paths); return value.then(function({default: env0_0}) { return _fun93767; }); function _fun93766({default: env0_0}) { // fn#93766, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12455:6331, offset: 0x020c33c2, size: 23 bytes, params: 2, frame: 2 return _fun93767; function _fun93767(a0) { // fn#93767, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12455:6346, offset: 0x020c33d9, size: 108 bytes, params: 2, frame: 17 var environment; const value = environment.__proto__.__proto__.__proto__.__proto__; const binding = env0_0; const bindingProps = {...a0}; bindingProps['productId'] = yearly; bindingProps['continueWithUpsell'] = env4_3(_fun93769); bindingProps['continueWithDefault'] = env4_3(_fun93771); return ((Component) => )(binding); function* _fun93769() { // fn#93769, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12455:6393, offset: 0x020c3450, size: 102 bytes, params: 1, frame: 17 if (true) { value = environment.__proto__.__proto__.__proto__.__proto__.__proto__.__proto__; value = env6_0(env6_2[35]); value = value.getNewAnalyticsLoadId(); var trackPaymentFlowStepBinding = trackPaymentFlowStep; dependencyMap({newFlowAnalyticsLoadId: value, productId: trackPaymentFlowStepBinding}); yield env5_3(trackPaymentFlowStepBinding, value); } } function* _fun93771() { // fn#93771, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12455:6525, offset: 0x020c34c1, size: 137 bytes, params: 1, frame: 18 if (true) { value = environment.__proto__.__proto__.__proto__.__proto__.__proto__; var object = {}; var binding = env6_0; var binding2 = env6_2; var PaymentFlowStep = binding(binding2[35]).PaymentFlowStep; var YEARLY_UPSELL = PaymentFlowStep.YEARLY_UPSELL; object.fromStep = YEARLY_UPSELL; PaymentFlowStep = binding(binding2[35]).PaymentFlowStep; var EXTERNAL_PAYMENT = PaymentFlowStep.EXTERNAL_PAYMENT; object.toStep = EXTERNAL_PAYMENT; var subscriptionBinding = subscription; object.productId = subscriptionBinding; importDefault(object); yield env5_3(subscriptionBinding, env5_4); } } } } } } } function PlanSectionHeader({string}) { // fn#93772, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12455:7238, offset: 0x020c354a, size: 74 bytes, params: 2, frame: 16 const styles = useStyles(); const LegacyText = (NativeModule).LegacyText; return ( {string} ); } function PlanSections({plans, subscription, showCurrentPlan, analyticsLoadId, trackPaymentFlowStep, trackNewPaymentFlow, purchase}) { // fn#93773, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12455:7345, offset: 0x020c3594, size: 265 bytes, params: 2, frame: 24 const styles = useStyles(); const env0_6 = useNativeCheckoutStore(function(a0) { return a0.getCheckoutContextRecord(); }); const env0_7 = subscription != null ? (require(7027) /* metro dependency 7027: PremiumBundledPlansUtils */).getProductIdFromSubscription(subscription, false) : null; const items2 = [ , ]; const binding = env0_34; items2[1] = binding.map(_fun93775); return ( {items2} ); function _fun93775({getLabel, predicate}) { // fn#93775, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12455:7767, offset: 0x020c369d, size: 193 bytes, params: 2, frame: 22 const value2 = plans.filter(_fun93776); if (value2.length === 0) { return null; } const label = getLabel(); return ( ); function _fun93776(a0) { // fn#93776, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12455:7812, offset: 0x020c375e, size: 236 bytes, params: 2, frame: 18 var r0; var r1; var value3; var moduleValue; var value9; var isIOS2; var binding; var getAvailablePlanForItems; const productId = a0.productId; let value = environment.__proto__; const value2 = productId !== env1_7; if (value2) { value3 = environment.__proto__.__proto__; moduleValue = require(7027) /* metro dependency 7027: PremiumBundledPlansUtils */; r0 = !moduleValue.productsHaveSamePerks(a0.productId, env1_7); } else { r0 = value2; } r0 = r0 && predicate(a0) && a0.premiumTier !== PremiumTypes.TIER_1; if (r0) { value9 = environment.__proto__.__proto__; isIOS2 = (require(478) /* metro dependency 478: PlatformUtils */).isIOS(); r1 = isIOS2 ? env1_6 == null : !isIOS2; if (!r1) { binding = env1_6; getAvailablePlanForItems = binding.getAvailablePlanForItems; value = require(7027) /* metro dependency 7027: PremiumBundledPlansUtils */; value = Reflect.apply(getAvailablePlanForItems, binding, [value.getSubscriptionItemsForProduct(a0.productId)]); value = value != null; r1 = value; } r0 = r1; } return r0; } } } function PremiumPlanSelect({predicate, showCurrentPlan, analyticsLocation, planId, applicationId}, a1) { // fn#93783, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12455:8274, offset: 0x020c396a, size: 1272 bytes, params: 3, frame: 37 var object6; var r0; var r2; var r1; var moduleValue6; var isValidBundleProductId; var moduleValue7; const Text = (TextModule).Text; const intl = (require(1244) /* metro dependency 1244: indexNative */).intl; var items2; var object; showCurrentPlan = showCurrentPlan === undefined || showCurrentPlan; let env0_4 = undefined; let env0_5 = undefined; var value; const styles = useStyles(); const analyticsLocations = (UseAnalyticsLocations)().analyticsLocations; const useStateFromStoresArray = FluxModule.useStateFromStoresArray; const value3 = env0_4(Reflect.apply(useStateFromStoresArray, FluxModule, [[SubscriptionStore, SubscriptionPlanStore], function() { var items = [SubscriptionStore.hasFetchedSubscriptions()]; items[1] = SubscriptionPlanStore.isLoadedForPremiumSKUs(); return items; }]), 2); const property = value3[0]; const property2 = value3[1]; env0_5.useEffect(_fun93785, [property2]); const value4 = (UseInitialValue)(_fun93786); const getBasePurchaseFlowAnalyticsFields = PremiumAnalyticsUtilsModule.getBasePurchaseFlowAnalyticsFields; object6 = {analyticsLoadId: value4}; const object2 = {}; const BUTTON_CTA = AnalyticsObjects.BUTTON_CTA; object2.object = BUTTON_CTA; const BUY = AnalyticsObjectTypes.BUY; object2.object_type = BUY; copyDataProperties(object2, analyticsLocation, undefined); object6.analyticsLocation = object2; object6.analyticsLocations = analyticsLocations; const env0_2 = Reflect.apply(getBasePurchaseFlowAnalyticsFields, PremiumAnalyticsUtilsModule, [object6]); const env0_3 = planId != null ? {subscription_plan_id: planId} : {}; (UseMountEffect)(_fun93787); const value6 = useNativeCheckoutStore(function(a0) { return {activeSubscription: a0.checkoutInitParameters.activeSubscription, order: a0.orderRecord}; }); const activeSubscription = value6.activeSubscription; env0_4 = value6.order; env0_5 = (require(7254) /* metro dependency 7254: handlePremiumPurchaseAndroid */).useHandlePremiumPurchase(); const value7 = (BlockedPaymentsCountryExperimentModule).useIsPaymentsBlocked(); const useFetchSubscriptionInvoicePreview = PremiumSubscriptionInvoiceModule.useFetchSubscriptionInvoicePreview; if (activeSubscription != null) { object6 = {}; object6.subscriptionId = activeSubscription.id; object6.renewal = true; object6.analyticsLocations = analyticsLocations; object6.analyticsLocation = (importDefault(6789) /* metro dependency 6789: AnalyticsLocation */).PREMIUM_PLAN_SELECT; r0 = object6; } else { r0 = {}; } const property3 = env0_4(Reflect.apply(useFetchSubscriptionInvoicePreview, PremiumSubscriptionInvoiceModule, [r0]), 1)[0]; if (predicate == null) { r0 = null; } else { if (property) { if (property2) { if (value7) { value = importDefault(7327) /* metro dependency 7327: BlockedPaymentsCountryDisplay */; value = ( {((Component) => )(value)} ); r2 = value; } else if (activeSubscription == null) { object = {subscription: activeSubscription}; value = require(7027) /* metro dependency 7027: PremiumBundledPlansUtils */; object.plans = value.getPremiumBundlesWithPredicate(predicate); object.showCurrentPlan = showCurrentPlan; object.analyticsLoadId = value4; object.trackPaymentFlowStep = trackPaymentFlowStep; object.trackNewPaymentFlow = trackNewPaymentFlow; object.purchase = _fun93791(); value = ( ); r2 = value; } else if (activeSubscription.isOnPlatformMatchingExternalPaymentGateway) { moduleValue6 = require(7027) /* metro dependency 7027: PremiumBundledPlansUtils */; isValidBundleProductId = moduleValue6.isValidBundleProductId; moduleValue7 = require(7027) /* metro dependency 7027: PremiumBundledPlansUtils */; if (Reflect.apply(isValidBundleProductId, moduleValue6, [moduleValue7.getProductIdFromSubscription(activeSubscription, false)])) { object = {subscription: activeSubscription}; value = require(7027) /* metro dependency 7027: PremiumBundledPlansUtils */; object.plans = value.getPremiumBundlesWithPredicate(predicate); object.showCurrentPlan = showCurrentPlan; object.analyticsLoadId = value4; object.trackPaymentFlowStep = trackPaymentFlowStep; object.trackNewPaymentFlow = trackNewPaymentFlow; object.purchase = _fun93791(); value = ( ); r2 = value; } else { items2 = [ property3 != null && <>{intl.string((require(1244) /* metro dependency 1244: indexNative */).t.ITurwY)}{((PremiumSubscriptionHeader) => )((require(7509) /* metro dependency 7509: PremiumSubscriptionDetails */).PremiumSubscriptionHeader)}, ]; var textProps2 = {style: styles.offPlatformSubscriptionMessage, variant: 'text-md/semibold'}; value = require(7022) /* metro dependency 7022: PremiumManagementUtils */; items2[1] = ( {value.getExternalManagementMessage(activeSubscription, {shouldAllowExternalManagement: true})} ); value = ( {items2} ); r2 = value; } } else { items2 = [ property3 != null && <>{intl.string((require(1244) /* metro dependency 1244: indexNative */).t.ITurwY)}{((PremiumSubscriptionHeader) => )((require(7509) /* metro dependency 7509: PremiumSubscriptionDetails */).PremiumSubscriptionHeader)}, ]; var textProps2 = {style: styles.offPlatformSubscriptionMessage, variant: 'text-md/semibold'}; value = require(7022) /* metro dependency 7022: PremiumManagementUtils */; items2[1] = ( {value.getExternalManagementMessage(activeSubscription, {shouldAllowExternalManagement: true})} ); value = ( {items2} ); r2 = value; } r1 = r2; } else { r1 = ( ); } } else { r1 = ( ); } r0 = r1; } return r0; function _fun93785() { // fn#93785, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12455:8567, offset: 0x020c3e8f, size: 49 bytes, params: 1, frame: 11 var value; if (!env0_1) { value = environment.__proto__; value = require(6847) /* metro dependency 6847: SubscriptionPlanActionCreators */; value.fetchPremiumSubscriptionPlans(); } } function _fun93786() { // fn#93786, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12455:8639, offset: 0x020c3ec0, size: 37 bytes, params: 1, frame: 11 const value = environment.__proto__; return (PremiumAnalyticsUtilsModule).getNewAnalyticsLoadId(); } function _fun93787() { // fn#93787, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12455:8877, offset: 0x020c3ee5, size: 78 bytes, params: 1, frame: 15 let value = environment.__proto__; value = require(7295) /* metro dependency 7295: PaymentFlowStartedTriggerPoint */; const trackPaymentFlowStartedAnalyticsAndCTP = value.trackPaymentFlowStartedAnalyticsAndCTP; const object = {}; copyDataProperties(object, env0_3, copyDataProperties(object, env0_2, undefined)); object['application_id'] = applicationId; Reflect.apply(trackPaymentFlowStartedAnalyticsAndCTP, value, [object]); } function trackPaymentFlowStep({productId, fromStep, toStep}) { // fn#93789, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12455:9715, owner: PremiumPlanSelect.trackPaymentFlowStep, offset: 0x020c3f56, size: 139 bytes, params: 2, frame: 21 let value = environment.__proto__; const defaultImport = AnalyticsUtils; const track = defaultImport.track; const PAYMENT_FLOW_STEP = AnalyticEvents.PAYMENT_FLOW_STEP; const object = {}; object.application_id = applicationId; value = require(7294) /* metro dependency 7294: PremiumAnalyticsUtils */; const getPaymentFlowStepAnalyticsFields = value.getPaymentFlowStepAnalyticsFields; copyDataProperties(object, Reflect.apply(getPaymentFlowStepAnalyticsFields, value, [env0_2, {from_step: fromStep, to_step: toStep, subscription_plan_gateway_plan_id: productId}]), fromStep); Reflect.apply(track, defaultImport, [PAYMENT_FLOW_STEP, object]); } function trackNewPaymentFlow({newFlowAnalyticsLoadId, productId}) { // fn#93790, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12455:9938, owner: PremiumPlanSelect.trackNewPaymentFlow, offset: 0x020c3fe1, size: 100 bytes, params: 2, frame: 17 let value = environment.__proto__; value = require(7295) /* metro dependency 7295: PaymentFlowStartedTriggerPoint */; const trackPaymentFlowStartedAnalyticsAndCTP = value.trackPaymentFlowStartedAnalyticsAndCTP; const object = {}; copyDataProperties(object, env0_2, productId); object['subscription_plan_gateway_plan_id'] = productId; object['load_id'] = newFlowAnalyticsLoadId; object['application_id'] = applicationId; Reflect.apply(trackPaymentFlowStartedAnalyticsAndCTP, value, [object]); } function _fun93791() { // fn#93791, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12455:10110, offset: 0x020c4045, size: 36 bytes, params: 1, frame: 12 const env0_0 = env1_3(_fun93793); return _fun93794; function* _fun93793(a0, a1) { // fn#93793, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12455:10130, offset: 0x020c4074, size: 334 bytes, params: 3, frame: 20 var id; var binding; var object; var location; var binding2; var value5; var binding3; var value6; var value7; var value8; var error; var binding4; var value9; var binding5; var value10; var show; var intl; var string; var t; var yyDkbE; if (false) { return undefined; } value = environment.__proto__.__proto__.__proto__; const value3 = undefined; env3_14(true); try { binding = env2_5; } catch (error) { binding = env3_1; if (error instanceof binding(env3_2[54])) { binding = env3_0; binding4 = env3_2; value9 = binding(binding4[55]); value9.fetchSubscriptions(); binding5 = env3_1; value10 = binding5(binding4[36]); show = value10.show; object = {}; intl = binding(binding4[17]).intl; string = intl.string; t = binding(binding4[17]).t; object.title = Reflect.apply(string, intl, [t['U+H+kd']]); intl = binding(binding4[17]).intl; string = intl.string; t = binding(binding4[17]).t; yyDkbE = t.yyDkbE; object.body = Reflect.apply(string, intl, [yyDkbE]); Reflect.apply(show, value10, [object]); } env3_14(false); return value3; } try { object = {}; } catch (error) { binding = env3_1; if (error instanceof binding(env3_2[54])) { binding = env3_0; binding4 = env3_2; value9 = binding(binding4[55]); value9.fetchSubscriptions(); binding5 = env3_1; value10 = binding5(binding4[36]); show = value10.show; object = {}; intl = binding(binding4[17]).intl; string = intl.string; t = binding(binding4[17]).t; object.title = Reflect.apply(string, intl, [t['U+H+kd']]); intl = binding(binding4[17]).intl; string = intl.string; t = binding(binding4[17]).t; yyDkbE = t.yyDkbE; object.body = Reflect.apply(string, intl, [yyDkbE]); Reflect.apply(show, value10, [object]); } env3_14(false); return value3; } try { object.productId = a0; } catch (error) { binding = env3_1; if (error instanceof binding(env3_2[54])) { binding = env3_0; binding4 = env3_2; value9 = binding(binding4[55]); value9.fetchSubscriptions(); binding5 = env3_1; value10 = binding5(binding4[36]); show = value10.show; object = {}; intl = binding(binding4[17]).intl; string = intl.string; t = binding(binding4[17]).t; object.title = Reflect.apply(string, intl, [t['U+H+kd']]); intl = binding(binding4[17]).intl; string = intl.string; t = binding(binding4[17]).t; yyDkbE = t.yyDkbE; object.body = Reflect.apply(string, intl, [yyDkbE]); Reflect.apply(show, value10, [object]); } env3_14(false); return value3; } try { } catch (error) { binding = env3_1; if (error instanceof binding(env3_2[54])) { binding = env3_0; binding4 = env3_2; value9 = binding(binding4[55]); value9.fetchSubscriptions(); binding5 = env3_1; value10 = binding5(binding4[36]); show = value10.show; object = {}; intl = binding(binding4[17]).intl; string = intl.string; t = binding(binding4[17]).t; object.title = Reflect.apply(string, intl, [t['U+H+kd']]); intl = binding(binding4[17]).intl; string = intl.string; t = binding(binding4[17]).t; yyDkbE = t.yyDkbE; object.body = Reflect.apply(string, intl, [yyDkbE]); Reflect.apply(show, value10, [object]); } env3_14(false); return value3; } try { location = dependencyMap.location; } catch (error) { binding = env3_1; if (error instanceof binding(env3_2[54])) { binding = env3_0; binding4 = env3_2; value9 = binding(binding4[55]); value9.fetchSubscriptions(); binding5 = env3_1; value10 = binding5(binding4[36]); show = value10.show; object = {}; intl = binding(binding4[17]).intl; string = intl.string; t = binding(binding4[17]).t; object.title = Reflect.apply(string, intl, [t['U+H+kd']]); intl = binding(binding4[17]).intl; string = intl.string; t = binding(binding4[17]).t; yyDkbE = t.yyDkbE; object.body = Reflect.apply(string, intl, [yyDkbE]); Reflect.apply(show, value10, [object]); } env3_14(false); return value3; } try { object.analyticsLocation = location; } catch (error) { binding = env3_1; if (error instanceof binding(env3_2[54])) { binding = env3_0; binding4 = env3_2; value9 = binding(binding4[55]); value9.fetchSubscriptions(); binding5 = env3_1; value10 = binding5(binding4[36]); show = value10.show; object = {}; intl = binding(binding4[17]).intl; string = intl.string; t = binding(binding4[17]).t; object.title = Reflect.apply(string, intl, [t['U+H+kd']]); intl = binding(binding4[17]).intl; string = intl.string; t = binding(binding4[17]).t; yyDkbE = t.yyDkbE; object.body = Reflect.apply(string, intl, [yyDkbE]); Reflect.apply(show, value10, [object]); } env3_14(false); return value3; } try { object.analyticsLoadId = a1; } catch (error) { binding = env3_1; if (error instanceof binding(env3_2[54])) { binding = env3_0; binding4 = env3_2; value9 = binding(binding4[55]); value9.fetchSubscriptions(); binding5 = env3_1; value10 = binding5(binding4[36]); show = value10.show; object = {}; intl = binding(binding4[17]).intl; string = intl.string; t = binding(binding4[17]).t; object.title = Reflect.apply(string, intl, [t['U+H+kd']]); intl = binding(binding4[17]).intl; string = intl.string; t = binding(binding4[17]).t; yyDkbE = t.yyDkbE; object.body = Reflect.apply(string, intl, [yyDkbE]); Reflect.apply(show, value10, [object]); } env3_14(false); return value3; } try { } catch (error) { binding = env3_1; if (error instanceof binding(env3_2[54])) { binding = env3_0; binding4 = env3_2; value9 = binding(binding4[55]); value9.fetchSubscriptions(); binding5 = env3_1; value10 = binding5(binding4[36]); show = value10.show; object = {}; intl = binding(binding4[17]).intl; string = intl.string; t = binding(binding4[17]).t; object.title = Reflect.apply(string, intl, [t['U+H+kd']]); intl = binding(binding4[17]).intl; string = intl.string; t = binding(binding4[17]).t; yyDkbE = t.yyDkbE; object.body = Reflect.apply(string, intl, [yyDkbE]); Reflect.apply(show, value10, [object]); } env3_14(false); return value3; } try { object.applicationId = require; } catch (error) { binding = env3_1; if (error instanceof binding(env3_2[54])) { binding = env3_0; binding4 = env3_2; value9 = binding(binding4[55]); value9.fetchSubscriptions(); binding5 = env3_1; value10 = binding5(binding4[36]); show = value10.show; object = {}; intl = binding(binding4[17]).intl; string = intl.string; t = binding(binding4[17]).t; object.title = Reflect.apply(string, intl, [t['U+H+kd']]); intl = binding(binding4[17]).intl; string = intl.string; t = binding(binding4[17]).t; yyDkbE = t.yyDkbE; object.body = Reflect.apply(string, intl, [yyDkbE]); Reflect.apply(show, value10, [object]); } env3_14(false); return value3; } try { binding2 = env2_4; } catch (error) { binding = env3_1; if (error instanceof binding(env3_2[54])) { binding = env3_0; binding4 = env3_2; value9 = binding(binding4[55]); value9.fetchSubscriptions(); binding5 = env3_1; value10 = binding5(binding4[36]); show = value10.show; object = {}; intl = binding(binding4[17]).intl; string = intl.string; t = binding(binding4[17]).t; object.title = Reflect.apply(string, intl, [t['U+H+kd']]); intl = binding(binding4[17]).intl; string = intl.string; t = binding(binding4[17]).t; yyDkbE = t.yyDkbE; object.body = Reflect.apply(string, intl, [yyDkbE]); Reflect.apply(show, value10, [object]); } env3_14(false); return value3; } try { value5 = binding2 == null; } catch (error) { binding = env3_1; if (error instanceof binding(env3_2[54])) { binding = env3_0; binding4 = env3_2; value9 = binding(binding4[55]); value9.fetchSubscriptions(); binding5 = env3_1; value10 = binding5(binding4[36]); show = value10.show; object = {}; intl = binding(binding4[17]).intl; string = intl.string; t = binding(binding4[17]).t; object.title = Reflect.apply(string, intl, [t['U+H+kd']]); intl = binding(binding4[17]).intl; string = intl.string; t = binding(binding4[17]).t; yyDkbE = t.yyDkbE; object.body = Reflect.apply(string, intl, [yyDkbE]); Reflect.apply(show, value10, [object]); } env3_14(false); return value3; } if (value5) { try { object.orderId = value3; } catch (error) { binding = env3_1; if (error instanceof binding(env3_2[54])) { binding = env3_0; binding4 = env3_2; value9 = binding(binding4[55]); value9.fetchSubscriptions(); binding5 = env3_1; value10 = binding5(binding4[36]); show = value10.show; object = {}; intl = binding(binding4[17]).intl; string = intl.string; t = binding(binding4[17]).t; object.title = Reflect.apply(string, intl, [t['U+H+kd']]); intl = binding(binding4[17]).intl; string = intl.string; t = binding(binding4[17]).t; yyDkbE = t.yyDkbE; object.body = Reflect.apply(string, intl, [yyDkbE]); Reflect.apply(show, value10, [object]); } env3_14(false); return value3; } try { value6 = binding(object); } catch (error) { binding = env3_1; if (error instanceof binding(env3_2[54])) { binding = env3_0; binding4 = env3_2; value9 = binding(binding4[55]); value9.fetchSubscriptions(); binding5 = env3_1; value10 = binding5(binding4[36]); show = value10.show; object = {}; intl = binding(binding4[17]).intl; string = intl.string; t = binding(binding4[17]).t; object.title = Reflect.apply(string, intl, [t['U+H+kd']]); intl = binding(binding4[17]).intl; string = intl.string; t = binding(binding4[17]).t; yyDkbE = t.yyDkbE; object.body = Reflect.apply(string, intl, [yyDkbE]); Reflect.apply(show, value10, [object]); } env3_14(false); return value3; } yield value6; try { value7 = undefined; value8 = false; } catch (error) { binding = env3_1; if (error instanceof binding(env3_2[54])) { binding = env3_0; binding4 = env3_2; value9 = binding(binding4[55]); value9.fetchSubscriptions(); binding5 = env3_1; value10 = binding5(binding4[36]); show = value10.show; object = {}; intl = binding(binding4[17]).intl; string = intl.string; t = binding(binding4[17]).t; object.title = Reflect.apply(string, intl, [t['U+H+kd']]); intl = binding(binding4[17]).intl; string = intl.string; t = binding(binding4[17]).t; yyDkbE = t.yyDkbE; object.body = Reflect.apply(string, intl, [yyDkbE]); Reflect.apply(show, value10, [object]); } env3_14(false); return value3; } } else { try { binding3 = env2_4; } catch (error) { binding = env3_1; if (error instanceof binding(env3_2[54])) { binding = env3_0; binding4 = env3_2; value9 = binding(binding4[55]); value9.fetchSubscriptions(); binding5 = env3_1; value10 = binding5(binding4[36]); show = value10.show; object = {}; intl = binding(binding4[17]).intl; string = intl.string; t = binding(binding4[17]).t; object.title = Reflect.apply(string, intl, [t['U+H+kd']]); intl = binding(binding4[17]).intl; string = intl.string; t = binding(binding4[17]).t; yyDkbE = t.yyDkbE; object.body = Reflect.apply(string, intl, [yyDkbE]); Reflect.apply(show, value10, [object]); } env3_14(false); return value3; } try { id = binding3.id; } catch (error) { binding = env3_1; if (error instanceof binding(env3_2[54])) { binding = env3_0; binding4 = env3_2; value9 = binding(binding4[55]); value9.fetchSubscriptions(); binding5 = env3_1; value10 = binding5(binding4[36]); show = value10.show; object = {}; intl = binding(binding4[17]).intl; string = intl.string; t = binding(binding4[17]).t; object.title = Reflect.apply(string, intl, [t['U+H+kd']]); intl = binding(binding4[17]).intl; string = intl.string; t = binding(binding4[17]).t; yyDkbE = t.yyDkbE; object.body = Reflect.apply(string, intl, [yyDkbE]); Reflect.apply(show, value10, [object]); } env3_14(false); return value3; } try { object.orderId = id; } catch (error) { binding = env3_1; if (error instanceof binding(env3_2[54])) { binding = env3_0; binding4 = env3_2; value9 = binding(binding4[55]); value9.fetchSubscriptions(); binding5 = env3_1; value10 = binding5(binding4[36]); show = value10.show; object = {}; intl = binding(binding4[17]).intl; string = intl.string; t = binding(binding4[17]).t; object.title = Reflect.apply(string, intl, [t['U+H+kd']]); intl = binding(binding4[17]).intl; string = intl.string; t = binding(binding4[17]).t; yyDkbE = t.yyDkbE; object.body = Reflect.apply(string, intl, [yyDkbE]); Reflect.apply(show, value10, [object]); } env3_14(false); return value3; } try { value6 = binding(object); } catch (error) { binding = env3_1; if (error instanceof binding(env3_2[54])) { binding = env3_0; binding4 = env3_2; value9 = binding(binding4[55]); value9.fetchSubscriptions(); binding5 = env3_1; value10 = binding5(binding4[36]); show = value10.show; object = {}; intl = binding(binding4[17]).intl; string = intl.string; t = binding(binding4[17]).t; object.title = Reflect.apply(string, intl, [t['U+H+kd']]); intl = binding(binding4[17]).intl; string = intl.string; t = binding(binding4[17]).t; yyDkbE = t.yyDkbE; object.body = Reflect.apply(string, intl, [yyDkbE]); Reflect.apply(show, value10, [object]); } env3_14(false); return value3; } yield value6; try { value7 = undefined; value8 = false; } catch (error) { binding = env3_1; if (error instanceof binding(env3_2[54])) { binding = env3_0; binding4 = env3_2; value9 = binding(binding4[55]); value9.fetchSubscriptions(); binding5 = env3_1; value10 = binding5(binding4[36]); show = value10.show; object = {}; intl = binding(binding4[17]).intl; string = intl.string; t = binding(binding4[17]).t; object.title = Reflect.apply(string, intl, [t['U+H+kd']]); intl = binding(binding4[17]).intl; string = intl.string; t = binding(binding4[17]).t; yyDkbE = t.yyDkbE; object.body = Reflect.apply(string, intl, [yyDkbE]); Reflect.apply(show, value10, [object]); } env3_14(false); return value3; } } if (value8) { return value7; } env3_14(false); return value3; } function _fun93794() { // fn#93794, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12455:10460, offset: 0x00c3945f, size: 30 bytes, params: 1, frame: 13 return env0_0.apply(this, arguments); } } } function PremiumPlanSelectWithOrderCTX(a0) { // fn#93795, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12455:11028, offset: 0x020c41c2, size: 488 bytes, params: 2, frame: 24 const styles = useStyles(); const NitroACOMSubscriptionExperiment = (ACOMExperimentsModule).NitroACOMSubscriptionExperiment; const useConfig = NitroACOMSubscriptionExperiment.useConfig; const r9 = (require(478) /* metro dependency 478: PlatformUtils */).isIOS() ? Reflect.apply(useConfig, NitroACOMSubscriptionExperiment, [{location: 'PremiumPlanSelectWithOrderCTX'}]).enabled ? PaymentGateways.APPLE_ADVANCED_COMMERCE : PaymentGateways.APPLE : PaymentGateways.GOOGLE; object = {}; const PREMIUM_YEAR_TIER_2 = SubscriptionPlans.PREMIUM_YEAR_TIER_2; object.subscriptionPlanId = PREMIUM_YEAR_TIER_2; const castPremiumSubscriptionAsSkuId = PremiumUtilsModule.castPremiumSubscriptionAsSkuId; const TIER_2 = PremiumSubscriptionSKUs.TIER_2; object.skuId = Reflect.apply(castPremiumSubscriptionAsSkuId, PremiumUtilsModule, [TIER_2]); object.quantity = 1; const items2 = [object]; const useStateFromStores = FluxModule.useStateFromStores; const subscriptionStoreBinding = SubscriptionStore; const value2 = Reflect.apply(useStateFromStores, FluxModule, [[subscriptionStoreBinding], function() { return SubscriptionStore.hasFetchedSubscriptions(); }]); env0_5.useEffect(_fun93797, [value2]); return ( value2 ? ((Component) => {((Component) => )(env0_35)})(importDefault(7335) /* metro dependency 7335: NativeCheckoutStoreProvider */) : ( ) ); function _fun93797() { // fn#93797, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12455:11451, offset: 0x020c43bd, size: 49 bytes, params: 1, frame: 11 var value; if (!env0_0) { value = environment.__proto__; value = require(4223) /* metro dependency 4223: BillingActionCreators */; value.fetchSubscriptions(); } } } } global.__d(_fun93745, 12269, [5, 57, 31, 27, 7042, 3807, 3808, 5140, 12270, 1880, 661, 7047, 33, 4501, 6597, 6235, 697, 1244, 3802, 12271, 12272, 12273, 12274, 12275, 12276, 566, 7253, 4048, 1305, 5321, 4002, 7533, 7534, 478, 7027, 7294, 4496, 12277, 1962, 4589, 6771, 6847, 6518, 4594, 7295, 7254, 7035, 7545, 6789, 7327, 4573, 7509, 7022, 683, 7256, 4223, 7334, 7335, 2]) /* metro module 12269, dependencies: [5, 57, 31, 27, 7042, 3807, 3808, 5140, 12270, 1880, 661, 7047, 33, 4501, 6597, 6235, 697, 1244, 3802, 12271, 12272, 12273, 12274, 12275, 12276, 566, 7253, 4048, 1305, 5321, 4002, 7533, 7534, 478, 7027, 7294, 4496, 12277, 1962, 4589, 6771, 6847, 6518, 4594, 7295, 7254, 7035, 7545, 6789, 7327, 4573, 7509, 7022, 683, 7256, 4223, 7334, 7335, 2] */;