/* 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] */ 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 var object4; const env0_0 = require; const Object = global.Object; Object.defineProperty(exports, '__esModule', {value: true}); const env0_3 = importDefault(5) /* metro dependency 5 */; const env0_4 = importDefault(57) /* metro dependency 57 */; const value = importAll(31) /* metro dependency 31 */; const value2 = require(27) /* metro dependency 27 */; const env0_6 = value2.ActivityIndicator; const env0_7 = value2.Image; const env0_8 = value2.View; const env0_9 = value2.ScrollView; const env0_10 = (require(7042) /* metro dependency 7042: NativeCheckoutStore */).useNativeCheckoutStore; const subscriptionPlanStore = importDefault(3807) /* metro dependency 3807: SubscriptionPlanStore */; const subscriptionStore = importDefault(3808) /* metro dependency 3808: SubscriptionStore */; const iapStoreAndroid = importDefault(5140) /* metro dependency 5140: IAPStoreAndroid */; const premiumPlanSelectStoreModule = require(12270) /* metro dependency 12270: PremiumPlanSelectStore */; const env0_14 = premiumPlanSelectStoreModule.setIsPurchasing; const env0_15 = premiumPlanSelectStoreModule.usePremiumPlanSelectStore; const premiumConstantsModule = require(1880) /* metro dependency 1880: PremiumConstants */; const env0_16 = premiumConstantsModule.NUM_FREE_GUILD_BOOSTS_WITH_PREMIUM; const env0_17 = premiumConstantsModule.PremiumSubscriptionSKUs; const env0_18 = premiumConstantsModule.PremiumTypes; const env0_19 = premiumConstantsModule.SubscriptionIntervalTypes; const env0_20 = premiumConstantsModule.SubscriptionPlans; const constantsModule = require(661) /* metro dependency 661: Constants */; const env0_21 = constantsModule.AnalyticEvents; const env0_22 = constantsModule.AnalyticsObjects; const env0_23 = constantsModule.AnalyticsObjectTypes; const Fonts = constantsModule.Fonts; const env0_24 = constantsModule.HorizontalGradient; const env0_25 = constantsModule.PaymentGateways; const env0_26 = constantsModule.SubscriptionStatusTypes; const USER_SETTINGS_CONTAINER_HORIZONTAL_PADDING = constantsModule.USER_SETTINGS_CONTAINER_HORIZONTAL_PADDING; const colorConstantsModule = require(7047) /* metro dependency 7047: ColorConstants */; const env0_27 = colorConstantsModule.getPremiumGradientColor; const env0_28 = colorConstantsModule.Gradients; const value7 = require(33) /* metro dependency 33 */; const env0_29 = value7.jsx; const env0_30 = value7.jsxs; const env0_31 = value7.Fragment; const createStylesModule = require(4501) /* metro dependency 4501: createStyles */; const createStyles = createStylesModule.createStyles; object4 = {}; const object5 = {}; const textStyles = importDefault(6597) /* metro dependency 6597: TextStyles */; const DISPLAY_EXTRABOLD = Fonts.DISPLAY_EXTRABOLD; copyDataProperties(object5, textStyles(DISPLAY_EXTRABOLD, undefined, 24), undefined); object5['marginTop'] = 16; const DARK_WHITE_500_LIGHT_BLACK_500 = (require(6235) /* metro dependency 6235: LegacyTokens */).DARK_WHITE_500_LIGHT_BLACK_500; object5['color'] = DARK_WHITE_500_LIGHT_BLACK_500; object4.header = object5; const object6 = {'marginTop': 7, 'borderRadius': null, 'flexDirection': 'row', 'alignItems': 'center', 'paddingVertical': 12, 'paddingHorizontal': 12, 'flexWrap': 'wrap'}; object6.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.sm; const DARK_PRIMARY_630_LIGHT_PRIMARY_230 = (require(6235) /* metro dependency 6235: LegacyTokens */).DARK_PRIMARY_630_LIGHT_PRIMARY_230; object6.backgroundColor = DARK_PRIMARY_630_LIGHT_PRIMARY_230; object4.row = object6; object4.imgWumpusNitro = {'height': 40, 'width': 40}; object4.imgBoost = {'height': 40, 'width': 40}; object4.imgWumpusNitroBoost = {'width': 32, 'height': 32}; object4.imgWumpusNitroClassic = {'width': 40, 'height': 40}; object4.imgWumpusNitroClassicBoost = {'width': 32, 'height': 32}; object4.imgWumpusNitroTier0 = {'width': 40, 'height': 40}; object4.rowText = {fontSize: 16, color: DARK_WHITE_500_LIGHT_BLACK_500}; const PRIMARY_SEMIBOLD = Fonts.PRIMARY_SEMIBOLD; object4.rowPlanDescription = {'marginLeft': 12, 'fontFamily': null, 'lineHeight': 20, fontFamily: PRIMARY_SEMIBOLD}; const PRIMARY_MEDIUM = Fonts.PRIMARY_MEDIUM; object4.rowPlanDescriptionSubtext = {'fontSize': 12, 'marginLeft': 5, 'fontFamily': null, 'fontWeight': '400', fontFamily: PRIMARY_MEDIUM}; object4.rowPrice = {marginLeft: 'auto'}; object4.container = {'marginHorizontal': 14.5, 'paddingBottom': 10}; const object7 = {marginTop: 20}; object7.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.sm; object4.currentPlanGradient = object7; object4.currentPlanRow = {'marginTop': 0.5, 'marginRight': 0.5, 'marginLeft': 0.5, 'marginBottom': 0.5}; object4.loadingSpinnerContainer = {'display': 'flex', 'alignItems': 'center', 'justifyContent': 'center', 'height': '100%'}; object4.offPlatformSubscriptionMessage = {'lineHeight': 20, 'marginTop': 40, margin: USER_SETTINGS_CONTAINER_HORIZONTAL_PADDING}; object4.premiumHeaderLabel = {paddingHorizontal: USER_SETTINGS_CONTAINER_HORIZONTAL_PADDING, marginTop: 8}; const env0_32 = Reflect.apply(createStyles, createStylesModule, [object4]); object4 = {}; object4[importDefault(12274) /* metro dependency 12274 */] = 'imgWumpusNitro'; object4[importDefault(12276) /* metro dependency 12276 */] = 'imgWumpusNitroBoost'; object4[importDefault(12273) /* metro dependency 12273 */] = 'imgWumpusNitroClassic'; object4[importDefault(12275) /* metro dependency 12275 */] = 'imgWumpusNitroClassicBoost'; object4[importDefault(12272) /* metro dependency 12272 */] = 'imgWumpusNitroTier0'; object4[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 = value.forwardRef(PremiumPlanSelect); (require(2) /* metro dependency 2 */).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 = (require(1244) /* metro dependency 1244: indexNative */).intl; const t = (require(1244) /* metro dependency 1244: indexNative */).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 var object2; const LegacyText = (require(1305) /* metro dependency 1305: native */).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 fluxModule = require(566) /* metro dependency 566: flux */; const useStateFromStoresArray = fluxModule.useStateFromStoresArray; const value4 = env0_4(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 = (importDefault(4048) /* metro dependency 4048: 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 = (require(5321) /* metro dependency 5321 */).TouchableHighlight; object2 = {'activeOpacity': 0.6, 'underlayColor': null, 'accessibilityRole': 'button'}; const isThemeDark2 = (require(4002) /* metro dependency 4002: shared */).isThemeDark(value8); const value11 = 'none'; object2.underlayColor = isThemeDark2 ? value11 : hasBackground ? (importDefault(697) /* metro dependency 697: native */).unsafe_rawColors.PRIMARY_230 : value11; let r5 = disabled || value2; r5 = !r5 ? property2 : r5; object2.disabled = r5; object2.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 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 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 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 = (require(1305) /* metro dependency 1305: native */).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 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 object5; var r0; var r2; var r1; var moduleValue6; var isValidBundleProductId; var moduleValue7; const Text = (require(4573) /* metro dependency 4573: Text */).Text; const intl = (require(1244) /* metro dependency 1244: indexNative */).intl; var items2; var object3; showCurrentPlan = showCurrentPlan === undefined || showCurrentPlan; let env0_4 = undefined; let env0_5 = undefined; var value; const styles = useStyles(); const analyticsLocations = (importDefault(6771) /* metro dependency 6771: useAnalyticsLocations */)().analyticsLocations; const fluxModule = require(566) /* metro dependency 566: flux */; 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 = (importDefault(6518) /* metro dependency 6518: useInitialValue */)(_fun93786); const premiumAnalyticsUtilsModule = require(7294) /* metro dependency 7294: PremiumAnalyticsUtils */; const getBasePurchaseFlowAnalyticsFields = premiumAnalyticsUtilsModule.getBasePurchaseFlowAnalyticsFields; object5 = {analyticsLoadId: value4}; const object4 = {}; const BUTTON_CTA = AnalyticsObjects.BUTTON_CTA; object4.object = BUTTON_CTA; const BUY = AnalyticsObjectTypes.BUY; object4.object_type = BUY; copyDataProperties(object4, analyticsLocation, undefined); object5.analyticsLocation = object4; object5.analyticsLocations = analyticsLocations; const env0_2 = Reflect.apply(getBasePurchaseFlowAnalyticsFields, premiumAnalyticsUtilsModule, [object5]); const env0_3 = planId != null ? {subscription_plan_id: planId} : {}; (importDefault(4594) /* metro dependency 4594: 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 = (require(7035) /* metro dependency 7035: BlockedPaymentsCountryExperiment */).useIsPaymentsBlocked(); const premiumSubscriptionInvoiceModule = require(7545) /* metro dependency 7545: PremiumSubscriptionInvoice */; const useFetchSubscriptionInvoicePreview = premiumSubscriptionInvoiceModule.useFetchSubscriptionInvoicePreview; if (activeSubscription != null) { object5 = {}; object5.subscriptionId = activeSubscription.id; object5.renewal = true; object5.analyticsLocations = analyticsLocations; object5.analyticsLocation = (importDefault(6789) /* metro dependency 6789: AnalyticsLocation */).PREMIUM_PLAN_SELECT; r0 = object5; } 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) { object3 = {subscription: activeSubscription}; value = require(7027) /* metro dependency 7027: PremiumBundledPlansUtils */; object3.plans = value.getPremiumBundlesWithPredicate(predicate); object3.showCurrentPlan = showCurrentPlan; object3.analyticsLoadId = value4; object3.trackPaymentFlowStep = trackPaymentFlowStep; object3.trackNewPaymentFlow = trackNewPaymentFlow; object3.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)])) { object3 = {subscription: activeSubscription}; value = require(7027) /* metro dependency 7027: PremiumBundledPlansUtils */; object3.plans = value.getPremiumBundlesWithPredicate(predicate); object3.showCurrentPlan = showCurrentPlan; object3.analyticsLoadId = value4; object3.trackPaymentFlowStep = trackPaymentFlowStep; object3.trackNewPaymentFlow = trackNewPaymentFlow; object3.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 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 var object2; const styles = useStyles(); const NitroACOMSubscriptionExperiment = (require(7334) /* metro dependency 7334: ACOMExperiments */).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; object2 = {}; const PREMIUM_YEAR_TIER_2 = SubscriptionPlans.PREMIUM_YEAR_TIER_2; object2.subscriptionPlanId = PREMIUM_YEAR_TIER_2; const premiumUtilsModule = require(3802) /* metro dependency 3802: PremiumUtils */; const castPremiumSubscriptionAsSkuId = premiumUtilsModule.castPremiumSubscriptionAsSkuId; const TIER_2 = PremiumSubscriptionSKUs.TIER_2; object2.skuId = Reflect.apply(castPremiumSubscriptionAsSkuId, premiumUtilsModule, [TIER_2]); object2.quantity = 1; const items2 = [object2]; const value2 = (require(566) /* metro dependency 566: flux */).useStateFromStores([SubscriptionStore], function() { return SubscriptionStore.hasFetchedSubscriptions(); }); env0_5.useEffect(_fun93797, [value2]); return value2 ? ((Component) => {((Component) => )(env0_35)})(importDefault(7335) /* metro dependency 7335: NativeCheckoutStoreProvider */) : ; } 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 = (require(7534) /* metro dependency 7534: PremiumPlanWhatYouLoseActionSheet */).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 _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() { // 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; const PaymentFlowStep = (require(7294) /* metro dependency 7294: PremiumAnalyticsUtils */).PaymentFlowStep; const value = environment.__proto__; const value2 = undefined; const productIdsForBothIntervals = (require(7027) /* metro dependency 7027: PremiumBundledPlansUtils */).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 (env0_6 != null) { if (IAPStoreAndroid.getProduct(env0_6) != null) { trackPaymentFlowStep({fromStep: PaymentFlowStep.PLAN_SELECT, toStep: PaymentFlowStep.EXTERNAL_PAYMENT, productId: env0_6}); r0 = purchase(env0_6, analyticsLoadId); } else { r0 = value2; } } else { r0 = value2; } return r0; } 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 _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 (require(7294) /* metro dependency 7294: PremiumAnalyticsUtils */).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 object2 = {}; copyDataProperties(object2, env0_3, copyDataProperties(object2, env0_2, undefined)); object2['application_id'] = applicationId; Reflect.apply(trackPaymentFlowStartedAnalyticsAndCTP, value, [object2]); } 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 = importDefault(683) /* metro dependency 683: AnalyticsUtils */; const track = defaultImport.track; const PAYMENT_FLOW_STEP = AnalyticEvents.PAYMENT_FLOW_STEP; const object2 = {}; object2.application_id = applicationId; value = require(7294) /* metro dependency 7294: PremiumAnalyticsUtils */; const getPaymentFlowStepAnalyticsFields = value.getPaymentFlowStepAnalyticsFields; copyDataProperties(object2, 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, object2]); } 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 object2 = {}; copyDataProperties(object2, env0_2, productId); object2['subscription_plan_gateway_plan_id'] = productId; object2['load_id'] = newFlowAnalyticsLoadId; object2['application_id'] = applicationId; Reflect.apply(trackPaymentFlowStartedAnalyticsAndCTP, value, [object2]); } 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 _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(); } } 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 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 = (require(7294) /* metro dependency 7294: PremiumAnalyticsUtils */).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 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 _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* _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 object2; 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; object2 = {}; intl = binding(binding4[17]).intl; string = intl.string; t = binding(binding4[17]).t; object2.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; object2.body = Reflect.apply(string, intl, [yyDkbE]); Reflect.apply(show, value10, [object2]); } env3_14(false); return value3; } try { object2 = {}; } 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; object2 = {}; intl = binding(binding4[17]).intl; string = intl.string; t = binding(binding4[17]).t; object2.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; object2.body = Reflect.apply(string, intl, [yyDkbE]); Reflect.apply(show, value10, [object2]); } env3_14(false); return value3; } try { object2.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; object2 = {}; intl = binding(binding4[17]).intl; string = intl.string; t = binding(binding4[17]).t; object2.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; object2.body = Reflect.apply(string, intl, [yyDkbE]); Reflect.apply(show, value10, [object2]); } 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; object2 = {}; intl = binding(binding4[17]).intl; string = intl.string; t = binding(binding4[17]).t; object2.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; object2.body = Reflect.apply(string, intl, [yyDkbE]); Reflect.apply(show, value10, [object2]); } 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; object2 = {}; intl = binding(binding4[17]).intl; string = intl.string; t = binding(binding4[17]).t; object2.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; object2.body = Reflect.apply(string, intl, [yyDkbE]); Reflect.apply(show, value10, [object2]); } env3_14(false); return value3; } try { object2.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; object2 = {}; intl = binding(binding4[17]).intl; string = intl.string; t = binding(binding4[17]).t; object2.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; object2.body = Reflect.apply(string, intl, [yyDkbE]); Reflect.apply(show, value10, [object2]); } env3_14(false); return value3; } try { object2.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; object2 = {}; intl = binding(binding4[17]).intl; string = intl.string; t = binding(binding4[17]).t; object2.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; object2.body = Reflect.apply(string, intl, [yyDkbE]); Reflect.apply(show, value10, [object2]); } 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; object2 = {}; intl = binding(binding4[17]).intl; string = intl.string; t = binding(binding4[17]).t; object2.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; object2.body = Reflect.apply(string, intl, [yyDkbE]); Reflect.apply(show, value10, [object2]); } env3_14(false); return value3; } try { object2.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; object2 = {}; intl = binding(binding4[17]).intl; string = intl.string; t = binding(binding4[17]).t; object2.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; object2.body = Reflect.apply(string, intl, [yyDkbE]); Reflect.apply(show, value10, [object2]); } 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; object2 = {}; intl = binding(binding4[17]).intl; string = intl.string; t = binding(binding4[17]).t; object2.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; object2.body = Reflect.apply(string, intl, [yyDkbE]); Reflect.apply(show, value10, [object2]); } 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; object2 = {}; intl = binding(binding4[17]).intl; string = intl.string; t = binding(binding4[17]).t; object2.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; object2.body = Reflect.apply(string, intl, [yyDkbE]); Reflect.apply(show, value10, [object2]); } env3_14(false); return value3; } if (value5) { try { object2.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; object2 = {}; intl = binding(binding4[17]).intl; string = intl.string; t = binding(binding4[17]).t; object2.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; object2.body = Reflect.apply(string, intl, [yyDkbE]); Reflect.apply(show, value10, [object2]); } env3_14(false); return value3; } try { value6 = binding(object2); } 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; object2 = {}; intl = binding(binding4[17]).intl; string = intl.string; t = binding(binding4[17]).t; object2.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; object2.body = Reflect.apply(string, intl, [yyDkbE]); Reflect.apply(show, value10, [object2]); } 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; object2 = {}; intl = binding(binding4[17]).intl; string = intl.string; t = binding(binding4[17]).t; object2.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; object2.body = Reflect.apply(string, intl, [yyDkbE]); Reflect.apply(show, value10, [object2]); } 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; object2 = {}; intl = binding(binding4[17]).intl; string = intl.string; t = binding(binding4[17]).t; object2.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; object2.body = Reflect.apply(string, intl, [yyDkbE]); Reflect.apply(show, value10, [object2]); } 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; object2 = {}; intl = binding(binding4[17]).intl; string = intl.string; t = binding(binding4[17]).t; object2.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; object2.body = Reflect.apply(string, intl, [yyDkbE]); Reflect.apply(show, value10, [object2]); } env3_14(false); return value3; } try { object2.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; object2 = {}; intl = binding(binding4[17]).intl; string = intl.string; t = binding(binding4[17]).t; object2.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; object2.body = Reflect.apply(string, intl, [yyDkbE]); Reflect.apply(show, value10, [object2]); } env3_14(false); return value3; } try { value6 = binding(object2); } 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; object2 = {}; intl = binding(binding4[17]).intl; string = intl.string; t = binding(binding4[17]).t; object2.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; object2.body = Reflect.apply(string, intl, [yyDkbE]); Reflect.apply(show, value10, [object2]); } 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; object2 = {}; intl = binding(binding4[17]).intl; string = intl.string; t = binding(binding4[17]).t; object2.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; object2.body = Reflect.apply(string, intl, [yyDkbE]); Reflect.apply(show, value10, [object2]); } env3_14(false); return value3; } } if (value8) { return value7; } env3_14(false); return value3; } 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 _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 _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 _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 _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* _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 object2 = {}; var binding = env6_0; var binding2 = env6_2; var PaymentFlowStep = binding(binding2[35]).PaymentFlowStep; var YEARLY_UPSELL = PaymentFlowStep.YEARLY_UPSELL; object2.fromStep = YEARLY_UPSELL; PaymentFlowStep = binding(binding2[35]).PaymentFlowStep; var EXTERNAL_PAYMENT = PaymentFlowStep.EXTERNAL_PAYMENT; object2.toStep = EXTERNAL_PAYMENT; var subscriptionBinding = subscription; object2.productId = subscriptionBinding; importDefault(object2); yield env5_3(subscriptionBinding, env5_4); } } 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 object2 = {}; var binding2 = env7_0; var binding3 = env7_2; var PaymentFlowStep = binding2(binding3[35]).PaymentFlowStep; var YEARLY_UPSELL = PaymentFlowStep.YEARLY_UPSELL; object2.fromStep = YEARLY_UPSELL; PaymentFlowStep = binding2(binding3[35]).PaymentFlowStep; var EXTERNAL_PAYMENT = PaymentFlowStep.EXTERNAL_PAYMENT; object2.toStep = EXTERNAL_PAYMENT; var binding4 = env4_0; object2.productId = binding4; binding(object2); 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); } }