decord/source/modules/premium/native/launchPremiumPlanSelect.tsx
github-actions cd74c1f217 chore: update source for alpha 345.5
Skipped 1 file(s) >100MB (GitHub limit): source/__vendor/09xxx/9667_m.js (378 MB)
2026-09-05 10:56:28 +00:00

79 lines
3.1 KiB
TypeScript

// Module ID: 7411
// Function ID: 7412
// Name: launchPremiumPlanSelect
// Dependencies: [1074, 7409, 4763, 7412, 1896, 7412, 6995, 2]
// Exports: launchPremiumPlanSelect
// Module 7411 (launchPremiumPlanSelect)
import set from "set" /* 2 */;
import ME from "ME" /* 1074 */;
import asyncRequireImpl from "asyncRequireImpl" /* 1896 */;
import getSanitizedRestrictedGuilds from "getSanitizedRestrictedGuilds" /* 6995 */;
import PremiumModal from "PremiumModal" /* 7412 */;
const UserSettingsSections = ME.UserSettingsSections;
let result = set.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 = closure_1_0(closure_1_2[1]).shouldAlwaysExcludeFromPlanSelect(isDeprecated, flag2);
let tmp2 = !result;
if (!result) {
let flag;
if (callback != null) {
flag = callback(isDeprecated);
}
if (flag == null) {
flag = true;
}
tmp2 = flag;
}
return tmp2;
}
const PREMIUM_PLAN_SELECT = UserSettingsSections.PREMIUM_PLAN_SELECT;
if (null != navigation) {
let obj = { predicate: null, analyticsLocation: null, analyticsLocations: null, showCurrentPlan: null, isBoostPurchaseFlow: null, planId: null, applicationId: null, guildId: null, onPaymentSuccess: null, onPaymentDismiss: null };
obj[0] = wrappedPredicate;
obj[1] = analyticsLocation;
obj[2] = analyticsLocations;
obj[3] = showCurrentPlan;
obj[4] = flag;
obj[5] = planId;
obj[6] = applicationId;
obj[7] = guildId;
obj[8] = onPaymentSuccess;
obj[9] = onPaymentDismiss;
navigation.push(PREMIUM_PLAN_SELECT, obj);
} else {
obj = { initialRoute: null, analyticsLocation: null, analyticsLocations: null, predicate: null, showCurrentPlan: null, isBoostPurchaseFlow: null, planId: null, applicationId: null, guildId: null, onBack: null, onPaymentSuccess: null, onPaymentDismiss: null };
obj[0] = PREMIUM_PLAN_SELECT;
obj[1] = analyticsLocation;
obj[2] = analyticsLocations;
obj[3] = wrappedPredicate;
obj[4] = showCurrentPlan;
obj[5] = flag;
obj[6] = planId;
obj[7] = applicationId;
obj[8] = guildId;
obj[9] = tmp;
obj[10] = onPaymentSuccess;
obj[11] = onPaymentDismiss;
const obj3 = flag2(4763);
obj3.pushLazy(asyncRequireImpl(7412, dependencyMap.paths), obj, PremiumModal.PREMIUM_KEY);
const tmp7 = asyncRequireImpl(7412, dependencyMap.paths);
}
let result = getSanitizedRestrictedGuilds.trackUserSettingsPaneViewed({ destinationPane: PREMIUM_PLAN_SELECT });
};