49 lines
1.8 KiB
TypeScript
49 lines
1.8 KiB
TypeScript
// Module ID: 16435
|
|
// Function ID: 16436
|
|
// Name: prototype
|
|
// Dependencies: [1874, 6808, 505, 5214, 7305, 1897, 7485, 2]
|
|
|
|
// Module 16435 (prototype)
|
|
import mergeGuildAvatar from "mergeGuildAvatar";
|
|
import emitChanges from "emitChanges";
|
|
import { PaymentGateways } from "sum";
|
|
import "initialize";
|
|
|
|
let require = arg1;
|
|
let prototype = function UserOfferManager() {
|
|
const applyArgumentsResult = HermesBuiltin.applyArguments(new.target, new.target);
|
|
const require = applyArgumentsResult;
|
|
applyArgumentsResult.actions = {
|
|
POST_CONNECTION_OPEN() {
|
|
return applyArgumentsResult.handlePostConnectionOpen();
|
|
}
|
|
};
|
|
applyArgumentsResult.handlePostConnectionOpen = function handlePostConnectionOpen() {
|
|
currentUser = currentUser.getCurrentUser();
|
|
const NitroACOMSubscriptionExperiment = applyArgumentsResult(table[4]).NitroACOMSubscriptionExperiment;
|
|
if (NitroACOMSubscriptionExperiment.getConfig({ location: "UserOfferManager.handlePostConnectionOpen" }).enabled) {
|
|
const obj = { offerId: "Array", paymentGatewayOverride: 0 };
|
|
obj[1] = constants.APPLE_ADVANCED_COMMERCE;
|
|
const tmp4 = obj;
|
|
}
|
|
let isPremiumResult = null == currentUser || !currentUser.verified;
|
|
if (!isPremiumResult) {
|
|
let tmp2Result = tmp2(tmp3[5]);
|
|
isPremiumResult = tmp2Result.isPremium(currentUser);
|
|
}
|
|
if (!isPremiumResult) {
|
|
isPremiumResult = fetchingOffer.isFetchingOffer();
|
|
}
|
|
if (!isPremiumResult) {
|
|
tmp2Result = tmp2(tmp3[6]);
|
|
const userOffer = tmp2Result.fetchUserOffer("MobilePremiumOfferManager", true, tmp4);
|
|
}
|
|
};
|
|
return applyArgumentsResult;
|
|
}.prototype;
|
|
class prototype extends tmp2 {
|
|
}
|
|
prototype = new prototype();
|
|
const result = require("sum").fileFinishedImporting("modules/premium/native/UserOfferManager.tsx");
|
|
|
|
export default prototype;
|