Initial commit
This commit is contained in:
commit
af3b49f756
16065 files changed
+2938410
No files matched your search
@@ -0,0 +1,43 @@
|
||||
/* Metro module 7258; source: modules/premium/hooks/usePremiumDiscountOffer.android.tsx; dependencies: [5140, 1880, 7259, 5143, 632, 2] */
|
||||
function _fun58304(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#58304, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7436:6, offset: 0x016c4642, size: 168 bytes, params: 8, frame: 19
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const iapStoreAndroid = importDefault(5140) /* metro dependency 5140: IAPStoreAndroid */;
|
||||
const premiumConstantsModule = require(1880) /* metro dependency 1880: PremiumConstants */;
|
||||
const env0_4 = premiumConstantsModule.PREMIUM_TIER_2_LIKELIHOOD_1_MONTH_40_PERCENT_DISCOUNT_ID;
|
||||
const env0_5 = premiumConstantsModule.PREMIUM_TIER_2_REENGAGEMENT_1_MONTH_40_PERCENT_DISCOUNT_ID;
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/premium/hooks/usePremiumDiscountOffer.android.tsx');
|
||||
exports.usePremiumDiscountOffer = usePremiumDiscountOffer;
|
||||
exports.usePremiumGroupDiscountOffer = function() {
|
||||
return null;
|
||||
};
|
||||
}
|
||||
|
||||
function useGetDiscountOffer(a0, a1) { // fn#58305, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7436:240, offset: 0x016c46ea, size: 128 bytes, params: 3, frame: 17
|
||||
const env0_0 = a1;
|
||||
const value2 = (importDefault(7259) /* metro dependency 7259: useDiscountOffer */)(a0);
|
||||
const Object = global.Object;
|
||||
const values = Object.values;
|
||||
const DiscountIdToProductOfferId = (require(5143) /* metro dependency 5143: ProductIdsAndroid */).DiscountIdToProductOfferId;
|
||||
const value = Reflect.apply(values, Object, [DiscountIdToProductOfferId[a0]]);
|
||||
const length = value.length;
|
||||
const value3 = null;
|
||||
return length === 0 ? value3 : value.every(function(a0) {
|
||||
return require.has(a0);
|
||||
}) ? value2 : value3;
|
||||
}
|
||||
|
||||
function usePremiumDiscountOffer() { // fn#58307, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7436:518, offset: 0x016c476a, size: 97 bytes, params: 1, frame: 15
|
||||
const useStateFromStoresModule = require(632) /* metro dependency 632: useStateFromStores */;
|
||||
const useStateFromStoresObject = useStateFromStoresModule.useStateFromStoresObject;
|
||||
const offerIds = Reflect.apply(useStateFromStoresObject, useStateFromStoresModule, [[IAPStoreAndroid], function() {
|
||||
var object = {};
|
||||
object.isFetchingProducts = IAPStoreAndroid.isFetchingProducts();
|
||||
object.offerIds = IAPStoreAndroid.getOfferIds();
|
||||
return object;
|
||||
}]).offerIds;
|
||||
return useGetDiscountOffer(PREMIUM_TIER_2_LIKELIHOOD_1_MONTH_40_PERCENT_DISCOUNT_ID,
|
||||
offerIds) ?? useGetDiscountOffer(PREMIUM_TIER_2_REENGAGEMENT_1_MONTH_40_PERCENT_DISCOUNT_ID, offerIds);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user