decord/source/modules/premium/native/UserOfferManager.tsx

51 lines
1.9 KiB
TypeScript
Raw Normal View History

2026-08-24 06:08:38 +00:00
// Module ID: 16815
// Function ID: 16816
2026-07-29 08:29:29 +00:00
// Name: prototype
2026-08-24 06:08:38 +00:00
// Dependencies: [1922, 7459, 505, 5043, 7734, 1945, 7915, 2]
2026-07-20 16:05:17 +00:00
2026-08-24 06:08:38 +00:00
// Module 16815 (prototype)
import initializeDefault from "initialize" /* 5043 */;
import closure_2 from "mergeGuildAvatar" /* 1922 */;
import closure_3 from "emitChanges" /* 7459 */;
import { PaymentGateways } from "sum" /* 505 */;
2026-07-23 10:11:24 +00:00
2026-07-29 08:29:29 +00:00
let require = arg1;
2026-08-24 06:08:38 +00:00
initializeDefault;
2026-07-29 08:29:29 +00:00
let prototype = function UserOfferManager() {
const applyArgumentsResult = HermesBuiltin.applyArguments(new.target, new.target);
2026-08-24 06:08:38 +00:00
require = applyArgumentsResult;
2026-07-29 08:29:29 +00:00
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) {
2026-08-13 17:34:28 +00:00
const obj = { offerId: "Array", paymentGatewayOverride: 0 };
2026-07-29 08:29:29 +00:00
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 {
2026-07-20 16:05:17 +00:00
}
2026-07-29 08:29:29 +00:00
prototype = new prototype();
2026-08-24 06:08:38 +00:00
const result = require("set").fileFinishedImporting("modules/premium/native/UserOfferManager.tsx");
2026-07-20 16:05:17 +00:00
2026-07-29 08:29:29 +00:00
export default prototype;