49 lines
1.6 KiB
TypeScript
49 lines
1.6 KiB
TypeScript
// Module ID: 7381
|
|
// Function ID: 7382
|
|
// Name: usePremiumDiscountOffer
|
|
// Dependencies: [5897, 1924, 7382, 5900, 647, 2]
|
|
// Exports: usePremiumDiscountOffer, usePremiumGroupDiscountOffer
|
|
|
|
// Module 7381 (usePremiumDiscountOffer)
|
|
import updateProduct from "updateProduct";
|
|
import GuildFeatures from "GuildFeatures";
|
|
|
|
let c4;
|
|
let c5;
|
|
const require = arg1;
|
|
({ PREMIUM_TIER_2_LIKELIHOOD_1_MONTH_40_PERCENT_DISCOUNT_ID: c4, PREMIUM_TIER_2_REENGAGEMENT_1_MONTH_40_PERCENT_DISCOUNT_ID: c5 } = GuildFeatures);
|
|
const result = require("useDiscountOffer").fileFinishedImporting("modules/premium/hooks/usePremiumDiscountOffer.android.tsx");
|
|
|
|
export const usePremiumDiscountOffer = function usePremiumDiscountOffer() {
|
|
const items = [updateProduct];
|
|
offerIds = offerIds(647).useStateFromStoresObject(items, () => ({ isFetchingProducts: updateProduct.isFetchingProducts(), offerIds: updateProduct.getOfferIds() })).offerIds;
|
|
const obj = offerIds(647);
|
|
const tmp = offerIds;
|
|
const tmp3 = importDefault;
|
|
let values = Object.values(offerIds(5900).DiscountIdToProductOfferId[closure_4]);
|
|
let tmp5 = null;
|
|
if (0 !== values.length) {
|
|
let tmp6 = null;
|
|
if (values.every((arg0) => offerIds.has(arg0))) {
|
|
tmp6 = tmp4;
|
|
}
|
|
tmp5 = tmp6;
|
|
}
|
|
tmp4 = importDefault(7382)(closure_4);
|
|
values = Object.values(tmp(5900).DiscountIdToProductOfferId[closure_5]);
|
|
let tmp8 = null;
|
|
if (0 !== values.length) {
|
|
let tmp9 = null;
|
|
if (values.every((arg0) => offerIds.has(arg0))) {
|
|
tmp9 = tmp7;
|
|
}
|
|
tmp8 = tmp9;
|
|
}
|
|
if (tmp5 == null) {
|
|
tmp5 = tmp8;
|
|
}
|
|
return tmp5;
|
|
};
|
|
export function usePremiumGroupDiscountOffer() {
|
|
return null;
|
|
}
|