2026-07-24 07:16:23 +00:00
|
|
|
// Module ID: 10986
|
|
|
|
|
// Function ID: 85398
|
2026-07-20 16:05:17 +00:00
|
|
|
// Name: canOpenPremiumPlanDirectlyForReferralTrial
|
2026-07-23 10:11:24 +00:00
|
|
|
// Dependencies: [3782, 6688, 2]
|
2026-07-20 16:05:17 +00:00
|
|
|
// Exports: canOpenPremiumPlanDirectlyForReferralTrial
|
|
|
|
|
|
2026-07-24 07:16:23 +00:00
|
|
|
// Module 10986 (canOpenPremiumPlanDirectlyForReferralTrial)
|
2026-07-23 10:11:24 +00:00
|
|
|
import _isNativeReflectConstruct from "_isNativeReflectConstruct";
|
|
|
|
|
import _createForOfIteratorHelperLoose from "_createForOfIteratorHelperLoose";
|
|
|
|
|
|
|
|
|
|
let result = require("set").fileFinishedImporting("modules/premium/native/referrals/ReferralMessageUtils.tsx");
|
2026-07-20 16:05:17 +00:00
|
|
|
|
|
|
|
|
export const canOpenPremiumPlanDirectlyForReferralTrial = function canOpenPremiumPlanDirectlyForReferralTrial() {
|
2026-07-23 10:11:24 +00:00
|
|
|
const premiumTypeSubscription = _isNativeReflectConstruct.getPremiumTypeSubscription(false);
|
|
|
|
|
let result = _isNativeReflectConstruct.hasFetchedSubscriptions();
|
2026-07-20 16:05:17 +00:00
|
|
|
if (result) {
|
|
|
|
|
result = null == premiumTypeSubscription;
|
|
|
|
|
}
|
|
|
|
|
if (result) {
|
|
|
|
|
result = !isFetchingOfferResult;
|
|
|
|
|
}
|
|
|
|
|
return result;
|
|
|
|
|
};
|