Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4943.js (118.4 MB)
94 lines
3 KiB
TypeScript
94 lines
3 KiB
TypeScript
// Module ID: 8324
|
|
// Function ID: 8325
|
|
// Name: usePremiumDiscountOffer
|
|
// Dependencies: [7484, 1378, 558, 568, 8325, 7487, 565, 2]
|
|
// Exports: usePremiumGroupDiscountOffer
|
|
|
|
// Module 8324 (usePremiumDiscountOffer)
|
|
import useStateFromStores from "useStateFromStores" /* 565 */;
|
|
import c from "c" /* 568 */;
|
|
import ProductIds from "ProductIds" /* 7487 */;
|
|
import useDiscountOfferDefault from "useDiscountOffer" /* 8325 */;
|
|
import IAPStore from "IAPStore" /* 7484 */;
|
|
|
|
require = fn;
|
|
const PremiumConstants = fn(1378);
|
|
({ PREMIUM_TIER_2_LIKELIHOOD_1_MONTH_40_PERCENT_DISCOUNT_ID: closure_4, PREMIUM_TIER_2_REENGAGEMENT_1_MONTH_40_PERCENT_DISCOUNT_ID: hasOwnProperty } = PremiumConstants);
|
|
let ReactCompilerGating = fn(558);
|
|
let closure_6 = ReactCompilerGating.isReactCompilerEnabled() ? ((arg0, arg1) => {
|
|
const cResult = c.c(4);
|
|
const tmp4 = useDiscountOfferDefault(arg0);
|
|
if (cResult[0] === tmp4) {
|
|
if (cResult[1] === arg0) {
|
|
if (cResult[2] === arg1) {
|
|
let tmp5 = cResult[3];
|
|
}
|
|
const _Symbol = Symbol;
|
|
if (tmp5 !== Symbol.for("react.early_return_sentinel")) {
|
|
return tmp5;
|
|
}
|
|
}
|
|
}
|
|
Symbol.for("react.early_return_sentinel");
|
|
const values = Object.values(ProductIds.DiscountIdToProductOfferId[arg0]);
|
|
let tmp7 = null;
|
|
if (0 !== values.length) {
|
|
let tmp8 = null;
|
|
if (values.every((item) => set.has(item))) {
|
|
tmp8 = tmp4;
|
|
}
|
|
tmp7 = tmp8;
|
|
}
|
|
cResult[0] = tmp4;
|
|
cResult[1] = arg0;
|
|
cResult[2] = arg1;
|
|
cResult[3] = tmp7;
|
|
tmp5 = tmp7;
|
|
}) : ((arg0, arg1) => {
|
|
const values = Object.values(ProductIds.DiscountIdToProductOfferId[arg0]);
|
|
let tmp2 = null;
|
|
if (0 !== values.length) {
|
|
let tmp3 = null;
|
|
if (values.every((item) => set.has(item))) {
|
|
tmp3 = tmp;
|
|
}
|
|
tmp2 = tmp3;
|
|
}
|
|
return tmp2;
|
|
});
|
|
ReactCompilerGating = fn(558);
|
|
const size = fn(2);
|
|
const result = size.fileFinishedImporting("modules/premium/hooks/usePremiumDiscountOffer.android.tsx");
|
|
|
|
export const usePremiumDiscountOffer = ReactCompilerGating.isReactCompilerEnabled() ? (() => {
|
|
const cResult = c.c(2);
|
|
if (cResult[0] === Symbol.for("react.memo_cache_sentinel")) {
|
|
const items = [IAPStore];
|
|
const fn = function c() {
|
|
return { isFetchingProducts: IAPStore.isFetchingProducts(), offerIds: IAPStore.getOfferIds() };
|
|
};
|
|
cResult[0] = items;
|
|
cResult[1] = fn;
|
|
tmp4 = items;
|
|
tmp5 = fn;
|
|
} else {
|
|
[tmp4, tmp5] = cResult;
|
|
}
|
|
const offerIds = useStateFromStores.useStateFromStoresObject(tmp4, tmp5).offerIds;
|
|
let tmp7 = closure_6(React4, offerIds);
|
|
if (tmp7 == null) {
|
|
tmp7 = closure_6(hasOwnProperty, offerIds);
|
|
}
|
|
return tmp7;
|
|
}) : (() => {
|
|
const items = [IAPStore];
|
|
const offerIds = useStateFromStores.useStateFromStoresObject(items, () => ({ isFetchingProducts: IAPStore.isFetchingProducts(), offerIds: IAPStore.getOfferIds() })).offerIds;
|
|
let tmp = closure_6(React4, offerIds);
|
|
if (tmp == null) {
|
|
tmp = closure_6(hasOwnProperty, offerIds);
|
|
}
|
|
return tmp;
|
|
});
|
|
export function usePremiumGroupDiscountOffer() {
|
|
return null;
|
|
}
|