Files
2026-07-28 01:06:53 +03:00

53 lines
3.7 KiB
TypeScript

/* Metro module 7026; source: modules/premium/native/launchPremiumPlanSelect.tsx; dependencies: [661, 7027, 5080, 7028, 1962, 7028, 7004, 2] */
import * as FileImportTrackerModule from '../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ConstantsModule from '../../../Constants.tsx'; /* Metro dependency 661 */
import * as PremiumBundledPlansUtilsModule from './PremiumBundledPlansUtils.tsx'; /* Metro dependency 7027 */
function _fun55672(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#55672, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7204:6, offset: 0x013adaa1, size: 122 bytes, params: 8, frame: 18
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
(FileImportTrackerModule).fileFinishedImporting('modules/premium/native/launchPremiumPlanSelect.tsx');
exports.launchPremiumPlanSelect = launchPremiumPlanSelect;
function launchPremiumPlanSelect({predicate, navigation, showCurrentPlan, analyticsLocation, analyticsLocations, planId, applicationId, onBack, onPaymentSuccess, onPaymentDismiss}) { // fn#55673, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7204:237, offset: 0x013adb1b, size: 333 bytes, params: 2, frame: 30
var defaultImport;
showCurrentPlan = showCurrentPlan === undefined || showCurrentPlan;
const predicate_556742 = predicate_55674;
const PREMIUM_PLAN_SELECT = UserSettingsSections.PREMIUM_PLAN_SELECT;
if (navigation != null) {
navigation.push(PREMIUM_PLAN_SELECT, {predicate: predicate_556742, analyticsLocation: analyticsLocation,
analyticsLocations: analyticsLocations, showCurrentPlan: showCurrentPlan, planId: planId,
applicationId: applicationId, onPaymentSuccess: onPaymentSuccess, onPaymentDismiss: onPaymentDismiss});
} else {
defaultImport = importDefault(dependencyMap[2]);
defaultImport.pushLazy(require(dependencyMap[4])(dependencyMap[3], dependencyMap.paths),
{initialRoute: PREMIUM_PLAN_SELECT, analyticsLocation: analyticsLocation,
analyticsLocations: analyticsLocations, predicate: predicate_556742, showCurrentPlan: showCurrentPlan,
planId: planId, applicationId: applicationId, onBack: onBack, onPaymentSuccess: onPaymentSuccess,
onPaymentDismiss: onPaymentDismiss}, require(dependencyMap[5]).PREMIUM_KEY);
}
const moduleValue = require(dependencyMap[6]);
moduleValue.trackUserSettingsPaneViewed({destinationPane: PREMIUM_PLAN_SELECT});
function launchPremiumPlanSelectPredicate(a0) { // fn#55674, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7204:453, owner: launchPremiumPlanSelect.predicate, offset: 0x013adc68, size: 87 bytes, params: 2, frame: 15
var r2;
var r0;
let value = environment.__proto__;
value = undefined;
const shouldAlwaysExcludeFromPlanSelect2 = (PremiumBundledPlansUtilsModule).shouldAlwaysExcludeFromPlanSelect(a0);
if (shouldAlwaysExcludeFromPlanSelect2) {
r0 = !shouldAlwaysExcludeFromPlanSelect2;
} else {
r2 = predicate == null ? value : predicate(a0);
value = r2 == null;
r0 = value || r2;
}
return r0;
}
}
}
global.__d(_fun55672, 7026, [661, 7027, 5080, 7028, 1962, 7028, 7004,
2]) /* metro module 7026, dependencies: [661, 7027, 5080, 7028, 1962, 7028, 7004, 2] */;