decord/source/modules/premium/native/launchPremiumPlanSelect.tsx

56 lines
2.3 KiB
TypeScript
Raw Normal View History

2026-07-25 08:10:48 +00:00
// Module ID: 6489
2026-07-27 11:26:19 +00:00
// Function ID: 58013
2026-07-20 16:05:17 +00:00
// Name: launchPremiumPlanSelect
2026-07-25 08:10:48 +00:00
// Dependencies: [653, 6195, 4338, 6269, 1935, 6269, 6449, 2]
2026-07-20 16:05:17 +00:00
// Exports: launchPremiumPlanSelect
2026-07-25 08:10:48 +00:00
// Module 6489 (launchPremiumPlanSelect)
2026-07-23 10:11:24 +00:00
import { UserSettingsSections } from "ME";
2026-07-25 08:10:48 +00:00
let result = require("module_4338").fileFinishedImporting("modules/premium/native/launchPremiumPlanSelect.tsx");
2026-07-20 16:05:17 +00:00
export const launchPremiumPlanSelect = function launchPremiumPlanSelect(isBoostPurchaseFlow) {
let analyticsLocation;
let analyticsLocations;
let applicationId;
let guildId;
let navigation;
let onPaymentDismiss;
let onPaymentSuccess;
let planId;
2026-07-23 10:11:24 +00:00
let require;
2026-07-20 16:05:17 +00:00
let showCurrentPlan;
2026-07-23 10:11:24 +00:00
({ predicate: require, navigation, showCurrentPlan } = isBoostPurchaseFlow);
2026-07-20 16:05:17 +00:00
if (showCurrentPlan === undefined) {
showCurrentPlan = true;
}
let flag = isBoostPurchaseFlow.isBoostPurchaseFlow;
if (flag === undefined) {
flag = false;
}
({ analyticsLocation, analyticsLocations, planId, applicationId, guildId, onPaymentSuccess, onPaymentDismiss } = isBoostPurchaseFlow);
function wrappedPredicate(isDeprecated) {
2026-07-23 10:11:24 +00:00
let tmp = !outer1_0(outer1_2[1]).shouldAlwaysExcludeFromPlanSelect(isDeprecated);
2026-07-20 16:05:17 +00:00
if (tmp) {
let tmp4;
if (null != callback) {
tmp4 = callback(isDeprecated);
}
tmp = null == tmp4 || tmp4;
const tmp6 = null == tmp4 || tmp4;
}
return tmp;
}
const PREMIUM_PLAN_SELECT = UserSettingsSections.PREMIUM_PLAN_SELECT;
if (null != navigation) {
let obj = { predicate: wrappedPredicate, analyticsLocation, analyticsLocations, showCurrentPlan, isBoostPurchaseFlow: flag, planId, applicationId, guildId, onPaymentSuccess, onPaymentDismiss };
navigation.push(PREMIUM_PLAN_SELECT, obj);
} else {
obj = { initialRoute: PREMIUM_PLAN_SELECT, analyticsLocation, analyticsLocations, predicate: wrappedPredicate, showCurrentPlan, isBoostPurchaseFlow: flag, planId, applicationId, guildId, onBack: tmp, onPaymentSuccess, onPaymentDismiss };
2026-07-25 08:10:48 +00:00
const obj3 = importDefault(4338);
obj3.pushLazy(require(1935) /* maybeLoadBundle */(6269, dependencyMap.paths), obj, require(6269) /* getScreens */.PREMIUM_KEY);
const tmp7 = require(1935) /* maybeLoadBundle */(6269, dependencyMap.paths);
2026-07-20 16:05:17 +00:00
}
2026-07-25 08:10:48 +00:00
const result = require(6449) /* getSanitizedRestrictedGuilds */.trackUserSettingsPaneViewed({ destinationPane: PREMIUM_PLAN_SELECT });
2026-07-20 16:05:17 +00:00
};