Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4943.js (118.4 MB)
94 lines
3.6 KiB
TypeScript
94 lines
3.6 KiB
TypeScript
// Module ID: 7695
|
|
// Function ID: 7696
|
|
// Name: useAndroidAndLegacyIOSPremiumTrialOfferCandidates
|
|
// Dependencies: [7484, 1378, 558, 7696, 7487, 568, 565, 2]
|
|
|
|
// Module 7695 (useAndroidAndLegacyIOSPremiumTrialOfferCandidates)
|
|
import useStateFromStores from "useStateFromStores" /* 565 */;
|
|
import c from "c" /* 568 */;
|
|
import ProductIds from "ProductIds" /* 7487 */;
|
|
import useTrialOffer from "useTrialOffer" /* 7696 */;
|
|
import IAPStore from "IAPStore" /* 7484 */;
|
|
|
|
require = fn;
|
|
const PremiumConstants = fn(1378);
|
|
({ PREMIUM_TIER_2_LIKELIHOOD_TRIAL_ID: c3, PREMIUM_TIER_2_REACTIVATION_TRIAL_ID: closure_4, PREMIUM_TIER_0_LIKELIHOOD_TRIAL_ID: hasOwnProperty, PREMIUM_TIER_2_TRIAL_FOR_EVERYONE_TRIAL_ID: metroRequire, PREMIUM_TIER_2_REFERRAL_TRIAL_ID: closure_7, PREMIUM_TIER_2_HFU_TWO_WEEK_TRIAL_ID: closure_8 } = PremiumConstants);
|
|
let ReactCompilerGating = fn(558);
|
|
let closure_9 = ReactCompilerGating.isReactCompilerEnabled() ? ((arg0, arg1) => {
|
|
const trialOffer = useTrialOffer.useTrialOffer(arg0);
|
|
const values = Object.values(ProductIds.TrialIdToProductOfferId[arg0]);
|
|
let tmp2 = null;
|
|
if (values.every((item) => set.has(item))) {
|
|
tmp2 = trialOffer;
|
|
}
|
|
return tmp2;
|
|
}) : ((arg0, arg1) => {
|
|
const trialOffer = useTrialOffer.useTrialOffer(arg0);
|
|
const values = Object.values(ProductIds.TrialIdToProductOfferId[arg0]);
|
|
let tmp2 = null;
|
|
if (values.every((item) => set.has(item))) {
|
|
tmp2 = trialOffer;
|
|
}
|
|
return tmp2;
|
|
});
|
|
ReactCompilerGating = fn(558);
|
|
const size = fn(2);
|
|
const result = size.fileFinishedImporting("modules/premium/hooks/useAndroidAndLegacyIOSPremiumTrialOfferCandidates.native.tsx");
|
|
|
|
export const useAndroidAndLegacyIOSPremiumTrialOfferCandidates = ReactCompilerGating.isReactCompilerEnabled() ? (() => {
|
|
const cResult = c.c(9);
|
|
if (cResult[0] === Symbol.for("react.memo_cache_sentinel")) {
|
|
const items = [IAPStore];
|
|
class R {
|
|
constructor() {
|
|
obj = { isFetchingProducts: closure_1_2.isFetchingProducts(), offerIds: closure_1_2.getOfferIds() };
|
|
return obj;
|
|
}
|
|
}
|
|
cResult[0] = items;
|
|
cResult[1] = R;
|
|
tmp4 = items;
|
|
tmp5 = R;
|
|
} else {
|
|
[tmp4, tmp5] = cResult;
|
|
}
|
|
const offerIds = useStateFromStores.useStateFromStoresObject(tmp4, tmp5).offerIds;
|
|
const tmp7 = closure_9(timestampProducer, offerIds);
|
|
const tmp8 = closure_9(React3, offerIds);
|
|
const tmp9 = closure_9(React4, offerIds);
|
|
const tmp10 = closure_9(hasOwnProperty, offerIds);
|
|
const tmp11 = closure_9(React5, offerIds);
|
|
const tmp12 = closure_9(closure_1_8, offerIds);
|
|
if (cResult[2] === tmp9) {
|
|
if (cResult[3] === tmp10) {
|
|
if (cResult[4] === tmp12) {
|
|
if (cResult[5] === tmp8) {
|
|
if (cResult[6] === tmp11) {
|
|
if (cResult[7] === tmp7) {
|
|
let tmp13 = cResult[8];
|
|
}
|
|
return tmp13;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
const items1 = [tmp11, tmp7, tmp8, tmp9, tmp12, tmp10];
|
|
const found = items1.find((item) => null != item);
|
|
cResult[2] = tmp9;
|
|
cResult[3] = tmp10;
|
|
cResult[4] = tmp12;
|
|
cResult[5] = tmp8;
|
|
cResult[6] = tmp11;
|
|
cResult[7] = tmp7;
|
|
cResult[8] = found;
|
|
tmp13 = found;
|
|
}) : (() => {
|
|
const items = [IAPStore];
|
|
const offerIds = useStateFromStores.useStateFromStoresObject(items, () => ({ isFetchingProducts: IAPStore.isFetchingProducts(), offerIds: IAPStore.getOfferIds() })).offerIds;
|
|
const tmp = closure_9(timestampProducer, offerIds);
|
|
const tmp2 = closure_9(React3, offerIds);
|
|
const tmp3 = closure_9(React4, offerIds);
|
|
const items1 = [closure_9(React5, offerIds), tmp, tmp2, tmp3, closure_9(closure_1_8, offerIds), closure_9(hasOwnProperty, offerIds)];
|
|
return items1.find((item) => null != item);
|
|
});
|