// Module ID: 7514 // Function ID: 7515 // Name: launchPremiumPlanSelect // Dependencies: [1074, 7512, 4839, 7515, 1896, 7515, 7098, 2] // Exports: launchPremiumPlanSelect // Module 7514 (launchPremiumPlanSelect) import Constants from "Constants" /* 1074 */; import asyncRequireImpl from "asyncRequireImpl" /* 1896 */; import UserSettingsUtils from "UserSettingsUtils" /* 7098 */; import PremiumBundledPlansUtils from "PremiumBundledPlansUtils" /* 7512 */; import PremiumModal from "PremiumModal" /* 7515 */; import size from "module_2" /* 2 */; const UserSettingsSections = Constants.UserSettingsSections; let result = size.fileFinishedImporting("modules/premium/native/launchPremiumPlanSelect.tsx"); export const launchPremiumPlanSelect = function launchPremiumPlanSelect(isBoostPurchaseFlow) { ({ predicate: require, navigation, showCurrentPlan } = isBoostPurchaseFlow); if (showCurrentPlan === undefined) { showCurrentPlan = true; } let flag = isBoostPurchaseFlow.isBoostPurchaseFlow; if (flag === undefined) { flag = false; } let flag2 = isBoostPurchaseFlow.allowYearlyBundles; if (flag2 === undefined) { flag2 = false; } ({ analyticsLocation, analyticsLocations, planId, applicationId, guildId, onPaymentSuccess, onPaymentDismiss } = isBoostPurchaseFlow); function wrappedPredicate(isDeprecated) { const result = PremiumBundledPlansUtils.shouldAlwaysExcludeFromPlanSelect(isDeprecated, flag2); let tmp2 = !result; if (!result) { let flag; if (closure_1_0 != null) { flag = closure_1_0(isDeprecated); } if (flag == null) { flag = true; } tmp2 = flag; } return tmp2; } const PREMIUM_PLAN_SELECT = UserSettingsSections.PREMIUM_PLAN_SELECT; if (null != navigation) { const obj = { predicate: wrappedPredicate, analyticsLocation, analyticsLocations, showCurrentPlan, isBoostPurchaseFlow: flag, planId, applicationId, guildId, onPaymentSuccess, onPaymentDismiss }; navigation.push(PREMIUM_PLAN_SELECT, obj); } else { const obj4 = { initialRoute: PREMIUM_PLAN_SELECT, analyticsLocation, analyticsLocations, predicate: wrappedPredicate, showCurrentPlan, isBoostPurchaseFlow: flag, planId, applicationId, guildId, onBack: tmp, onPaymentSuccess, onPaymentDismiss }; const obj3 = flag2(4839); obj3.pushLazy(asyncRequireImpl(7515, dependencyMap.paths), obj4, PremiumModal.PREMIUM_KEY); const tmp7 = asyncRequireImpl(7515, dependencyMap.paths); } let result = UserSettingsUtils.trackUserSettingsPaneViewed({ destinationPane: PREMIUM_PLAN_SELECT }); };