decord/source/modules/premium/hooks/usePremiumDiscountOffer.android.tsx

49 lines
1.7 KiB
TypeScript
Raw Normal View History

2026-08-24 06:08:38 +00:00
// Module ID: 7663
// Function ID: 7664
2026-07-29 08:29:29 +00:00
// Name: usePremiumDiscountOffer
2026-08-24 06:08:38 +00:00
// Dependencies: [5324, 1924, 7664, 5327, 647, 2]
2026-07-20 16:05:17 +00:00
// Exports: usePremiumDiscountOffer, usePremiumGroupDiscountOffer
2026-08-24 06:08:38 +00:00
// Module 7663 (usePremiumDiscountOffer)
import useDiscountOfferDefault from "useDiscountOffer" /* 7664 */;
import closure_3 from "updateProduct" /* 5324 */;
import GuildFeatures from "GuildFeatures" /* 1924 */;
2026-07-23 10:11:24 +00:00
const require = arg1;
2026-07-29 08:29:29 +00:00
({ PREMIUM_TIER_2_LIKELIHOOD_1_MONTH_40_PERCENT_DISCOUNT_ID: c4, PREMIUM_TIER_2_REENGAGEMENT_1_MONTH_40_PERCENT_DISCOUNT_ID: c5 } = GuildFeatures);
2026-08-24 06:08:38 +00:00
const result = require("set").fileFinishedImporting("modules/premium/hooks/usePremiumDiscountOffer.android.tsx");
2026-07-29 08:29:29 +00:00
export const usePremiumDiscountOffer = function usePremiumDiscountOffer() {
2026-08-24 06:08:38 +00:00
const items = [closure_3];
offerIds = offerIds(647).useStateFromStoresObject(items, () => ({ isFetchingProducts: closure_3.isFetchingProducts(), offerIds: closure_3.getOfferIds() })).offerIds;
2026-07-29 08:29:29 +00:00
const obj = offerIds(647);
const tmp = offerIds;
const tmp3 = importDefault;
2026-08-24 06:08:38 +00:00
let values = Object.values(offerIds(5327).DiscountIdToProductOfferId[closure_4]);
2026-07-29 08:29:29 +00:00
let tmp5 = null;
2026-07-20 16:05:17 +00:00
if (0 !== values.length) {
2026-07-29 08:29:29 +00:00
let tmp6 = null;
2026-07-23 10:11:24 +00:00
if (values.every((arg0) => offerIds.has(arg0))) {
2026-07-29 08:29:29 +00:00
tmp6 = tmp4;
2026-07-20 16:05:17 +00:00
}
2026-07-29 08:29:29 +00:00
tmp5 = tmp6;
2026-07-20 16:05:17 +00:00
}
2026-08-24 06:08:38 +00:00
tmp4 = useDiscountOfferDefault(closure_4);
values = Object.values(tmp(5327).DiscountIdToProductOfferId[closure_5]);
2026-07-29 08:29:29 +00:00
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;
2026-07-20 16:05:17 +00:00
}
2026-07-29 08:29:29 +00:00
return tmp5;
2026-07-20 16:05:17 +00:00
};
export function usePremiumGroupDiscountOffer() {
return null;
}