2026-10-12 16:32:48 +00:00
|
|
|
// Module ID: 18266
|
|
|
|
|
// Function ID: 18267
|
2026-09-18 19:45:33 +00:00
|
|
|
// Name: UserOfferManager
|
2026-10-12 16:32:48 +00:00
|
|
|
// Dependencies: [1390, 7173, 1096, 6808, 9398, 1989, 8092, 2]
|
2026-09-18 19:45:33 +00:00
|
|
|
|
2026-10-12 16:32:48 +00:00
|
|
|
// Module 18266 (UserOfferManager)
|
2026-10-07 22:43:51 +00:00
|
|
|
import Constants from "Constants" /* 1096 */;
|
2026-10-12 16:32:48 +00:00
|
|
|
import PremiumTypeUtils from "PremiumTypeUtils" /* 1989 */;
|
|
|
|
|
import UserOfferActionCreators from "UserOfferActionCreators" /* 8092 */;
|
|
|
|
|
import ACOMExperiments from "ACOMExperiments" /* 9398 */;
|
|
|
|
|
import UserStore from "UserStore" /* 1390 */;
|
|
|
|
|
import UserOfferStore from "UserOfferStore" /* 7173 */;
|
|
|
|
|
import AutomaticLifecycleManager from "AutomaticLifecycleManager" /* 6808 */;
|
2026-10-01 14:13:23 +00:00
|
|
|
import size from "module_2" /* 2 */;
|
2026-09-18 19:45:33 +00:00
|
|
|
|
2026-10-01 14:13:23 +00:00
|
|
|
let currentUser;
|
|
|
|
|
|
|
|
|
|
const PaymentGateways = Constants.PaymentGateways;
|
|
|
|
|
class UserOfferManager extends AutomaticLifecycleManager {
|
|
|
|
|
constructor() {
|
|
|
|
|
let fetchingOffer;
|
|
|
|
|
const applyArgumentsResult = HermesBuiltin.applyArguments(this, new.target);
|
|
|
|
|
require = applyArgumentsResult;
|
|
|
|
|
applyArgumentsResult.actions = {
|
|
|
|
|
POST_CONNECTION_OPEN() {
|
|
|
|
|
return require.handlePostConnectionOpen();
|
|
|
|
|
}
|
|
|
|
|
};
|
|
|
|
|
applyArgumentsResult.handlePostConnectionOpen = function handlePostConnectionOpen() {
|
|
|
|
|
let tmp4;
|
|
|
|
|
currentUser = currentUser.getCurrentUser();
|
|
|
|
|
const NitroACOMSubscriptionExperiment = ACOMExperiments.NitroACOMSubscriptionExperiment;
|
|
|
|
|
if (NitroACOMSubscriptionExperiment.getConfig({ location: "UserOfferManager.handlePostConnectionOpen" }).enabled) {
|
|
|
|
|
tmp4 = { offerId: "Array", paymentGatewayOverride: constants.APPLE_ADVANCED_COMMERCE };
|
|
|
|
|
}
|
|
|
|
|
let isPremiumResult = null == currentUser || !currentUser.verified;
|
|
|
|
|
if (!isPremiumResult) {
|
|
|
|
|
const tmp2Result = PremiumTypeUtils;
|
|
|
|
|
isPremiumResult = tmp2Result.isPremium(currentUser);
|
|
|
|
|
}
|
|
|
|
|
if (!isPremiumResult) {
|
|
|
|
|
isPremiumResult = fetchingOffer.isFetchingOffer();
|
|
|
|
|
}
|
|
|
|
|
if (!isPremiumResult) {
|
|
|
|
|
const tmp2Result2 = UserOfferActionCreators;
|
|
|
|
|
const userOffer = tmp2Result2.fetchUserOffer("MobilePremiumOfferManager", true, tmp4);
|
|
|
|
|
}
|
|
|
|
|
};
|
|
|
|
|
return applyArgumentsResult;
|
|
|
|
|
}
|
2026-09-18 19:45:33 +00:00
|
|
|
}
|
2026-10-01 14:13:23 +00:00
|
|
|
const userOfferManager = new UserOfferManager();
|
2026-09-18 19:45:33 +00:00
|
|
|
const result = size.fileFinishedImporting("modules/premium/native/UserOfferManager.tsx");
|
|
|
|
|
|
2026-10-01 14:13:23 +00:00
|
|
|
export default userOfferManager;
|