This commit is contained in:
janisslsm committed 2026-07-28 01:06:53 +03:00
1 parent af3b49f756
commit 1781d25a15
22448 files changed
+2731829 -2650550

No files matched your search

@@ -1,89 +1,95 @@
/* Metro module 7259; source: modules/premium/hooks/useDiscountOffer.tsx; dependencies: [57, 31, 1878, 7064, 1880, 566, 3802, 4041, 2] */
import Module00057 from '../../../by-id/module-00057.js'; /* Metro dependency 57 */
import UserStore from '../../../stores/UserStore.tsx'; /* Metro dependency 1878 */
import UserOfferStore from '../../../stores/billing/UserOfferStore.tsx'; /* Metro dependency 7064 */
import * as FileImportTrackerModule from '../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ReactModule from '../../../by-id/module-00031-React.js'; /* Metro dependency 31 */
import * as PremiumConstantsModule from '../PremiumConstants.tsx'; /* Metro dependency 1880 */
function _fun58310(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#58310, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7437:6, offset: 0x016c47f4, size: 195 bytes, params: 8, frame: 19
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const env0_2 = importDefault(57) /* metro dependency 57 */;
const env0_3 = importAll(31) /* metro dependency 31 */;
const userStore = importDefault(1878) /* metro dependency 1878: UserStore */;
const userOfferStore = importDefault(7064) /* metro dependency 7064: UserOfferStore */;
const premiumConstantsModule = require(1880) /* metro dependency 1880: PremiumConstants */;
const env0_6 = premiumConstantsModule.PREMIUM_TIER_2_CHURN_1_MONTH_DISCOUNT_ID;
const env0_7 = premiumConstantsModule.PREMIUM_TIER_2_CHURN_3_MONTH_DISCOUNT_ID;
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/premium/hooks/useDiscountOffer.tsx');
(FileImportTrackerModule).fileFinishedImporting('modules/premium/hooks/useDiscountOffer.tsx');
exports.default = useDiscountOffer;
}
function useDiscountOffer(a0, a1) { // fn#58311, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7437:322, offset: 0x016c48b7, size: 259 bytes, params: 3, frame: 21
const env0_0 = a0;
const value2 = undefined;
const userDiscountOffer = (require(566) /* metro dependency 566: flux */).useStateFromStores([UserOfferStore],
_fun58312);
const binding = env0_3;
const useState = binding.useState;
const value3 = null;
const r10 = value3 == userDiscountOffer ? value2 : userDiscountOffer.hasExpired();
const value6 = env0_2(Reflect.apply(useState, binding, [value3 != r10 && r10]), 2);
const property = value6[0];
var env0_3 = value6[1];
const value7 = (require(566) /* metro dependency 566: flux */).useStateFromStores([UserStore], function() {
return require(dependencyMap[6]).isPremium(UserStore.getCurrentUser());
});
env0_3.useEffect(_fun58314, [property, userDiscountOffer]);
return property ? value3 : value7 ? a1 || a0 === PREMIUM_TIER_2_CHURN_1_MONTH_DISCOUNT_ID ? userDiscountOffer : a0 !== PREMIUM_TIER_2_CHURN_3_MONTH_DISCOUNT_ID ? value3 : userDiscountOffer : userDiscountOffer;
}
function _fun58312() { // fn#58312, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7437:393, offset: 0x016c49ba, size: 29 bytes, params: 1, frame: 11
return UserOfferStore.getUserDiscountOffer(env0_0);
}
function _fun58314() { // fn#58314, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7437:603, offset: 0x016c4a0a, size: 111 bytes, params: 1, frame: 12
var environment;
var timeout;
var value;
let userDiscountOfferBinding = userDiscountOffer;
if (userDiscountOfferBinding != null) {
userDiscountOfferBinding = userDiscountOffer;
if (userDiscountOfferBinding.hasAcknowledged()) {
value = environment.__proto__;
timeout = new (require(4041) /* metro dependency 4041: Timers */).Timeout();
startTimer_58315();
return _fun58317;
function useDiscountOffer(a0, a1) { // fn#58311, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7437:322, offset: 0x016c48b7, size: 259 bytes, params: 3, frame: 21
const env0_0 = a0;
const value2 = undefined;
const userDiscountOffer = (require(566) /* metro dependency 566: flux */).useStateFromStores([UserOfferStore],
_fun58312);
const binding = env0_3;
const useState = binding.useState;
const value3 = null;
const r10 = value3 == userDiscountOffer ? value2 : userDiscountOffer.hasExpired();
const value6 = Module00057(Reflect.apply(useState, binding, [value3 != r10 && r10]), 2);
const property = value6[0];
var env0_3 = value6[1];
const value7 = (require(566) /* metro dependency 566: flux */).useStateFromStores([UserStore], function() {
return require(dependencyMap[6]).isPremium(UserStore.getCurrentUser());
});
env0_3.useEffect(_fun58314, [property, userDiscountOffer]);
return property ? value3 : value7 ? a1 || a0 === PREMIUM_TIER_2_CHURN_1_MONTH_DISCOUNT_ID ? userDiscountOffer : a0 !== PREMIUM_TIER_2_CHURN_3_MONTH_DISCOUNT_ID ? value3 : userDiscountOffer : userDiscountOffer;
function _fun58312() { // fn#58312, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7437:393, offset: 0x016c49ba, size: 29 bytes, params: 1, frame: 11
return UserOfferStore.getUserDiscountOffer(env0_0);
}
}
}
function startTimer_58315() { // fn#58315, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7437:679, offset: 0x016c4a79, size: 102 bytes, params: 1, frame: 14
var environment;
var r3;
var Date;
let value = environment.__proto__;
if (userDiscountOffer.expiresAt != null) {
value = userDiscountOffer.expiresAt.getTime();
Date = global.Date;
value -= Date.now();
r3 = value;
} else {
r3 = 0;
}
if (env0_0 != null) {
env0_0.start(r3, _fun58316);
}
}
function _fun58314() { // fn#58314, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7437:603, offset: 0x016c4a0a, size: 111 bytes, params: 1, frame: 12
var environment;
var timeout;
var value;
let userDiscountOfferBinding = userDiscountOffer;
if (userDiscountOfferBinding != null) {
userDiscountOfferBinding = userDiscountOffer;
if (userDiscountOfferBinding.hasAcknowledged()) {
value = environment.__proto__;
timeout = new (require(4041) /* metro dependency 4041: Timers */).Timeout();
startTimer_58315();
return _fun58317;
}
}
function startTimer_58315() { // fn#58315, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7437:679, offset: 0x016c4a79, size: 102 bytes, params: 1, frame: 14
var environment;
var r3;
var Date;
let value = environment.__proto__;
if (userDiscountOffer.expiresAt != null) {
value = userDiscountOffer.expiresAt.getTime();
Date = global.Date;
value -= Date.now();
r3 = value;
} else {
r3 = 0;
}
if (env0_0 != null) {
env0_0.start(r3, _fun58316);
}
function _fun58316() { // fn#58316, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7437:763, offset: 0x016c4adf, size: 59 bytes, params: 1, frame: 11
var userDiscountOfferBinding;
if (env2_2) {
value = environment.__proto__;
startTimer_58315();
} else {
userDiscountOfferBinding = userDiscountOffer;
if (userDiscountOfferBinding.hasExpired()) {
env2_3(true);
} else {
value = environment.__proto__;
startTimer_58315();
}
}
}
}
function _fun58317() { // fn#58317, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7437:830, offset: 0x00dc92ce, size: 19 bytes, params: 1, frame: 9
return env0_0.stop();
}
function _fun58316() { // fn#58316, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7437:763, offset: 0x016c4adf, size: 59 bytes, params: 1, frame: 11
var userDiscountOfferBinding;
if (env2_2) {
value = environment.__proto__;
startTimer_58315();
} else {
userDiscountOfferBinding = userDiscountOffer;
if (userDiscountOfferBinding.hasExpired()) {
env2_3(true);
} else {
value = environment.__proto__;
startTimer_58315();
}
}
}
global.__d(_fun58310, 7259, [57, 31, 1878, 7064, 1880, 566, 3802, 4041,
2]) /* metro module 7259, dependencies: [57, 31, 1878, 7064, 1880, 566, 3802, 4041, 2] */;
@@ -1,56 +1,62 @@
/* Metro module 7036; source: modules/premium/hooks/useGeoForUser.native.tsx; dependencies: [31, 1226, 3804, 5140, 566, 7033, 4223, 2] */
import AuthenticationStore from '../../../stores/AuthenticationStore.tsx'; /* Metro dependency 1226 */
import BillingInfoStore from '../../../stores/billing/BillingInfoStore.tsx'; /* Metro dependency 3804 */
import IAPStoreAndroid from '../../../stores/native/IAPStore.android.tsx'; /* Metro dependency 5140 */
import * as FileImportTrackerModule from '../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ReactModule from '../../../by-id/module-00031-React.js'; /* Metro dependency 31 */
import * as ProductIdsIosModule from '../native/ProductIds.ios.tsx'; /* Metro dependency 7033 */
function _fun55745(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#55745, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7214:6, offset: 0x013b0bf6, size: 167 bytes, params: 8, frame: 20
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const env0_3 = importAll(31) /* metro dependency 31 */;
const authenticationStore = importDefault(1226) /* metro dependency 1226: AuthenticationStore */;
const billingInfoStore = importDefault(3804) /* metro dependency 3804: BillingInfoStore */;
const iapStoreAndroid = importDefault(5140) /* metro dependency 5140: IAPStoreAndroid */;
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/premium/hooks/useGeoForUser.native.tsx');
(FileImportTrackerModule).fileFinishedImporting('modules/premium/hooks/useGeoForUser.native.tsx');
exports.default = useGeoForUser;
}
function useGeoForUser() { // fn#55746, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7214:226, offset: 0x013b0c9d, size: 218 bytes, params: 1, frame: 20
const value2 = undefined;
const value3 = (require(566) /* metro dependency 566: flux */).useStateFromStores([IAPStoreAndroid], _fun55747);
const ipLocation = (require(566) /* metro dependency 566: flux */).useStateFromStores([BillingInfoStore],
function() {
return BillingInfoStore.ipLocation;
});
ReactModule.useEffect(_fun55750, [ipLocation,
(require(566) /* metro dependency 566: flux */).useStateFromStores([AuthenticationStore], function() {
return AuthenticationStore.isAuthenticated();
})]);
return {defaultBillingCountryCode: value3, ipCountryCode: ipLocation == null ? value2 : ipLocation.countryCode,
ipSubdivisionCode: ipLocation == null ? value2 : ipLocation.subdivisionCode};
function _fun55747() { // fn#55747, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7214:289, offset: 0x013b0d77, size: 69 bytes, params: 1, frame: 13
let value = environment.__proto__;
const iapStoreAndroidBinding = IAPStoreAndroid;
const getProduct = iapStoreAndroidBinding.getProduct;
value = undefined;
const ProductIds = (ProductIdsIosModule).ProductIds;
const PREMIUM_TIER_2_MONTHLY = ProductIds.PREMIUM_TIER_2_MONTHLY;
const value2 = Reflect.apply(getProduct, iapStoreAndroidBinding, [PREMIUM_TIER_2_MONTHLY]);
return value2 == null ? value : value2.countryCode;
}
function useGeoForUser() { // fn#55746, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7214:226, offset: 0x013b0c9d, size: 218 bytes, params: 1, frame: 20
const value2 = undefined;
const value3 = (require(566) /* metro dependency 566: flux */).useStateFromStores([IAPStoreAndroid], _fun55747);
const ipLocation = (require(566) /* metro dependency 566: flux */).useStateFromStores([BillingInfoStore],
function() {
return BillingInfoStore.ipLocation;
});
env0_3.useEffect(_fun55750, [ipLocation,
(require(566) /* metro dependency 566: flux */).useStateFromStores([AuthenticationStore], function() {
return AuthenticationStore.isAuthenticated();
})]);
return {defaultBillingCountryCode: value3, ipCountryCode: ipLocation == null ? value2 : ipLocation.countryCode,
ipSubdivisionCode: ipLocation == null ? value2 : ipLocation.subdivisionCode};
}
function _fun55750() { // fn#55750, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7214:530, offset: 0x013b0de0, size: 70 bytes, params: 1, frame: 11
var r0;
var value;
const binding = env0_0;
if (binding) {
value = environment.__proto__;
value = !BillingInfoStore.ipLocationLoaded;
r0 = value;
} else {
r0 = binding;
}
if (r0) {
value = environment.__proto__;
value = importAll(4223) /* metro dependency 4223: BillingActionCreators */;
value.fetchIpLocation();
}
}
function _fun55747() { // fn#55747, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7214:289, offset: 0x013b0d77, size: 69 bytes, params: 1, frame: 13
let value = environment.__proto__;
const getProduct = IAPStoreAndroid.getProduct;
value = undefined;
const ProductIds = (require(7033) /* metro dependency 7033: ProductIdsIos */).ProductIds;
const PREMIUM_TIER_2_MONTHLY = ProductIds.PREMIUM_TIER_2_MONTHLY;
const value2 = Reflect.apply(getProduct, IAPStoreAndroid, [PREMIUM_TIER_2_MONTHLY]);
return value2 == null ? value : value2.countryCode;
}
function _fun55750() { // fn#55750, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7214:530, offset: 0x013b0de0, size: 70 bytes, params: 1, frame: 11
var r0;
var value;
const binding = env0_0;
if (binding) {
value = environment.__proto__;
value = !BillingInfoStore.ipLocationLoaded;
r0 = value;
} else {
r0 = binding;
}
if (r0) {
value = environment.__proto__;
value = importAll(4223) /* metro dependency 4223: BillingActionCreators */;
value.fetchIpLocation();
}
}
global.__d(_fun55745, 7036, [31, 1226, 3804, 5140, 566, 7033, 4223,
2]) /* metro module 7036, dependencies: [31, 1226, 3804, 5140, 566, 7033, 4223, 2] */;
@@ -1,40 +1,44 @@
/* Metro module 12282; source: modules/premium/hooks/useOutboundPromotionRedemptionEndDate.tsx; dependencies: [31, 3738, 3826, 2] */
import Module03738 from '../../../by-id/module-03738.js'; /* Metro dependency 3738 */
import * as FileImportTrackerModule from '../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ReactModule from '../../../by-id/module-00031-React.js'; /* Metro dependency 31 */
import * as DateUtilsModule from '../../../utils/DateUtils.tsx'; /* Metro dependency 3826 */
function _fun93844(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#93844, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12468:6, offset: 0x020c68ca, size: 155 bytes, params: 8, frame: 19
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const env0_3 = importAll(31) /* metro dependency 31 */;
const env0_4 = (importDefault(3738) /* metro dependency 3738 */).duration(30, 'days');
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/premium/hooks/useOutboundPromotionRedemptionEndDate.tsx');
const env0_4 = (Module03738).duration(30, 'days');
(FileImportTrackerModule).fileFinishedImporting('modules/premium/hooks/useOutboundPromotionRedemptionEndDate.tsx');
exports.default = useOutboundPromotionRedemptionEndDate;
}
function useOutboundPromotionRedemptionEndDate(a0, a1) { // fn#93845, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12468:243, offset: 0x020c6965, size: 55 bytes, params: 3, frame: 15
const env0_0 = a0;
const env0_1 = a1;
return env0_3.useMemo(_fun93846, [a0, a1]);
}
function _fun93846() { // fn#93846, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12468:313, offset: 0x020c699c, size: 195 bytes, params: 1, frame: 18
var r0;
var r1;
let value = environment.__proto__;
const dateUtilsModule = require(3826) /* metro dependency 3826: DateUtils */;
const dateFormat = dateUtilsModule.dateFormat;
if (require) {
if (env0_0.outboundRedemptionEndDate != null) {
value = importDefault(3738) /* metro dependency 3738 */;
value = value(env0_0.outboundRedemptionEndDate);
r0 = value;
} else {
r0 = (importDefault(3738) /* metro dependency 3738 */)(env0_0.endDate).add(env1_4);
function useOutboundPromotionRedemptionEndDate(a0, a1) { // fn#93845, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12468:243, offset: 0x020c6965, size: 55 bytes, params: 3, frame: 15
const env0_0 = a0;
const env0_1 = a1;
return ReactModule.useMemo(_fun93846, [a0, a1]);
function _fun93846() { // fn#93846, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12468:313, offset: 0x020c699c, size: 195 bytes, params: 1, frame: 18
var r0;
var r1;
let value = environment.__proto__;
const dateFormat = DateUtilsModule.dateFormat;
if (require) {
if (env0_0.outboundRedemptionEndDate != null) {
value = importDefault(3738) /* metro dependency 3738 */;
value = value(env0_0.outboundRedemptionEndDate);
r0 = value;
} else {
r0 = (importDefault(3738) /* metro dependency 3738 */)(env0_0.endDate).add(env1_4);
}
r1 = r0;
} else {
value = importDefault(3738) /* metro dependency 3738 */;
value = value(env0_0.endDate);
r1 = value;
}
return Reflect.apply(dateFormat, DateUtilsModule, [r1, 'LL']);
}
r1 = r0;
} else {
value = importDefault(3738) /* metro dependency 3738 */;
value = value(env0_0.endDate);
r1 = value;
}
return Reflect.apply(dateFormat, dateUtilsModule, [r1, 'LL']);
}
global.__d(_fun93844, 12282, [31, 3738, 3826, 2]) /* metro module 12282, dependencies: [31, 3738, 3826, 2] */;
@@ -1,43 +1,48 @@
/* Metro module 7258; source: modules/premium/hooks/usePremiumDiscountOffer.android.tsx; dependencies: [5140, 1880, 7259, 5143, 632, 2] */
import IAPStoreAndroid from '../../../stores/native/IAPStore.android.tsx'; /* Metro dependency 5140 */
import UseDiscountOffer from './useDiscountOffer.tsx'; /* Metro dependency 7259 */
import * as FileImportTrackerModule from '../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as UseStateFromStoresModule from '../../../external/discord_common/js/packages/flux/useStateFromStores.tsx'; /* Metro dependency 632 */
import * as PremiumConstantsModule from '../PremiumConstants.tsx'; /* Metro dependency 1880 */
import * as ProductIdsAndroidModule from '../native/ProductIds.android.tsx'; /* Metro dependency 5143 */
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');
(FileImportTrackerModule).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 = (UseDiscountOffer)(a0);
const Object = global.Object;
const values = Object.values;
const DiscountIdToProductOfferId = (ProductIdsAndroidModule).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 useStateFromStoresObject = UseStateFromStoresModule.useStateFromStoresObject;
const offerIds = Reflect.apply(useStateFromStoresObject, UseStateFromStoresModule, [[IAPStoreAndroid], function() {
var object = {};
var iapStoreAndroidBinding = IAPStoreAndroid;
object.isFetchingProducts = iapStoreAndroidBinding.isFetchingProducts();
object.offerIds = iapStoreAndroidBinding.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);
}
}
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);
}
global.__d(_fun58304, 7258, [5140, 1880, 7259, 5143, 632,
2]) /* metro module 7258, dependencies: [5140, 1880, 7259, 5143, 632, 2] */;
@@ -1,11 +1,14 @@
/* Metro module 7257; source: modules/premium/hooks/usePremiumDiscountOffer.native.tsx; dependencies: [2, 7258] */
import * as FileImportTrackerModule from '../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
function _fun58303(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#58303, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7435:6, offset: 0x016c45c7, size: 123 bytes, params: 8, frame: 22
var propertyName;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/premium/hooks/usePremiumDiscountOffer.native.tsx');
(FileImportTrackerModule).fileFinishedImporting('modules/premium/hooks/usePremiumDiscountOffer.native.tsx');
for (propertyName in require(7258) /* metro dependency 7258: usePremiumDiscountOfferAndroid */) {
exports[propertyName] = (require(7258) /* metro dependency 7258: usePremiumDiscountOfferAndroid */)[propertyName];
}
}
global.__d(_fun58303, 7257, [2, 7258]) /* metro module 7257, dependencies: [2, 7258] */;
@@ -1,50 +1,51 @@
/* Metro module 7062; source: modules/premium/hooks/usePremiumTrialOffer.native.tsx; dependencies: [5140, 1880, 7063, 5143, 632, 2] */
import IAPStoreAndroid from '../../../stores/native/IAPStore.android.tsx'; /* Metro dependency 5140 */
import * as FileImportTrackerModule from '../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as UseStateFromStoresModule from '../../../external/discord_common/js/packages/flux/useStateFromStores.tsx'; /* Metro dependency 632 */
import * as PremiumConstantsModule from '../PremiumConstants.tsx'; /* Metro dependency 1880 */
import * as ProductIdsAndroidModule from '../native/ProductIds.android.tsx'; /* Metro dependency 5143 */
import * as UseTrialOfferModule from '../useTrialOffer.tsx'; /* Metro dependency 7063 */
function _fun55988(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#55988, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7240:6, offset: 0x013ba7e9, size: 193 bytes, params: 8, frame: 18
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_3 = premiumConstantsModule.PREMIUM_TIER_2_LIKELIHOOD_TRIAL_ID;
const env0_4 = premiumConstantsModule.PREMIUM_TIER_2_REACTIVATION_TRIAL_ID;
const env0_5 = premiumConstantsModule.PREMIUM_TIER_0_LIKELIHOOD_TRIAL_ID;
const env0_6 = premiumConstantsModule.PREMIUM_TIER_2_TRIAL_FOR_EVERYONE_TRIAL_ID;
const env0_7 = premiumConstantsModule.PREMIUM_TIER_2_REFERRAL_TRIAL_ID;
const env0_8 = premiumConstantsModule.PREMIUM_TIER_2_HFU_TWO_WEEK_TRIAL_ID;
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/premium/hooks/usePremiumTrialOffer.native.tsx');
(FileImportTrackerModule).fileFinishedImporting('modules/premium/hooks/usePremiumTrialOffer.native.tsx');
exports.usePremiumTrialOffer = usePremiumTrialOffer;
function useGetTrialOffer(a0, a1) { // fn#55989, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7240:360, offset: 0x013ba8aa, size: 114 bytes, params: 3, frame: 17
const env0_0 = a1;
let value = UseTrialOfferModule;
value = value.useTrialOffer(a0);
const Object = global.Object;
const values = Object.values;
const TrialIdToProductOfferId = (ProductIdsAndroidModule).TrialIdToProductOfferId;
return Reflect.apply(values, Object, [TrialIdToProductOfferId[a0]]).every(function(a0) {
return require.has(a0);
}) ? value : null;
}
function usePremiumTrialOffer() { // fn#55991, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7240:617, offset: 0x013ba91c, size: 172 bytes, params: 1, frame: 20
const useStateFromStoresObject = UseStateFromStoresModule.useStateFromStoresObject;
const offerIds = Reflect.apply(useStateFromStoresObject, UseStateFromStoresModule, [[IAPStoreAndroid], function() {
var object = {};
var iapStoreAndroidBinding = IAPStoreAndroid;
object.isFetchingProducts = iapStoreAndroidBinding.isFetchingProducts();
object.offerIds = iapStoreAndroidBinding.getOfferIds();
return object;
}]).offerIds;
const value2 = useGetTrialOffer(PREMIUM_TIER_2_TRIAL_FOR_EVERYONE_TRIAL_ID, offerIds);
const value3 = useGetTrialOffer(PREMIUM_TIER_2_LIKELIHOOD_TRIAL_ID, offerIds);
const value4 = useGetTrialOffer(PREMIUM_TIER_2_REACTIVATION_TRIAL_ID, offerIds);
const value5 = useGetTrialOffer(PREMIUM_TIER_0_LIKELIHOOD_TRIAL_ID, offerIds);
items2 = [useGetTrialOffer(PREMIUM_TIER_2_REFERRAL_TRIAL_ID, offerIds), value2, value3, value4];
items2[4] = useGetTrialOffer(PREMIUM_TIER_2_HFU_TWO_WEEK_TRIAL_ID, offerIds);
items2[5] = value5;
return items2.find(function(a0) {
return a0 != null;
});
}
}
function useGetTrialOffer(a0, a1) { // fn#55989, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7240:360, offset: 0x013ba8aa, size: 114 bytes, params: 3, frame: 17
const env0_0 = a1;
let value = require(7063) /* metro dependency 7063: useTrialOffer */;
value = value.useTrialOffer(a0);
const Object = global.Object;
const values = Object.values;
const TrialIdToProductOfferId = (require(5143) /* metro dependency 5143: ProductIdsAndroid */).TrialIdToProductOfferId;
return Reflect.apply(values, Object, [TrialIdToProductOfferId[a0]]).every(function(a0) {
return require.has(a0);
}) ? value : null;
}
function usePremiumTrialOffer() { // fn#55991, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7240:617, offset: 0x013ba91c, size: 172 bytes, params: 1, frame: 20
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;
const value2 = useGetTrialOffer(PREMIUM_TIER_2_TRIAL_FOR_EVERYONE_TRIAL_ID, offerIds);
const value3 = useGetTrialOffer(PREMIUM_TIER_2_LIKELIHOOD_TRIAL_ID, offerIds);
const value4 = useGetTrialOffer(PREMIUM_TIER_2_REACTIVATION_TRIAL_ID, offerIds);
const value5 = useGetTrialOffer(PREMIUM_TIER_0_LIKELIHOOD_TRIAL_ID, offerIds);
items2 = [useGetTrialOffer(PREMIUM_TIER_2_REFERRAL_TRIAL_ID, offerIds), value2, value3, value4];
items2[4] = useGetTrialOffer(PREMIUM_TIER_2_HFU_TWO_WEEK_TRIAL_ID, offerIds);
items2[5] = value5;
return items2.find(function(a0) {
return a0 != null;
});
}
global.__d(_fun55988, 7062, [5140, 1880, 7063, 5143, 632,
2]) /* metro module 7062, dependencies: [5140, 1880, 7063, 5143, 632, 2] */;
@@ -1,106 +1,120 @@
/* Metro module 7582; source: modules/premium/hooks/usePromotionMarketingComponent.tsx; dependencies: [57, 31, 7064, 7261, 7289, 566, 7263, 2] */
import Module00057 from '../../../by-id/module-00057.js'; /* Metro dependency 57 */
import UserOfferStore from '../../../stores/billing/UserOfferStore.tsx'; /* Metro dependency 7064 */
import PromotionsStore from '../promotions/PromotionsStore.tsx'; /* Metro dependency 7261 */
import * as FileImportTrackerModule from '../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ReactModule from '../../../by-id/module-00031-React.js'; /* Metro dependency 31 */
import * as FluxModule from '../../../external/discord_common/js/packages/flux/index.tsx'; /* Metro dependency 566 */
import * as ConstantsModule from '../promotions/constants.tsx'; /* Metro dependency 7263 */
import * as PromotionsActionCreatorsModule from '../promotions/PromotionsActionCreators.tsx'; /* Metro dependency 7289 */
function _fun60832(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#60832, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7760:6, offset: 0x01710f30, size: 163 bytes, params: 8, frame: 19
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const env0_2 = importDefault(57) /* metro dependency 57 */;
const env0_3 = importAll(31) /* metro dependency 31 */;
const userOfferStore = importDefault(7064) /* metro dependency 7064: UserOfferStore */;
const promotionsStore = importDefault(7261) /* metro dependency 7261: PromotionsStore */;
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/premium/hooks/usePromotionMarketingComponent.tsx');
(FileImportTrackerModule).fileFinishedImporting('modules/premium/hooks/usePromotionMarketingComponent.tsx');
exports.usePromotionMarketingComponent = usePromotionMarketingComponent;
}
function usePromotionMarketingComponent(a0) { // fn#60833, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7760:259, offset: 0x01710fd3, size: 246 bytes, params: 2, frame: 20
const env0_0 = a0;
let binding = env0_3;
binding.useEffect(_fun60834, []);
const value2 = undefined;
const marketingComponentByType = (require(566) /* metro dependency 566: flux */).useStateFromStores([PromotionsStore,
UserOfferStore], _fun60835);
const promotionByTypeAndId = (require(566) /* metro dependency 566: flux */).useStateFromStores([PromotionsStore],
_fun60836);
const value3 = null;
const endDate = value3 == promotionByTypeAndId ? value2 : promotionByTypeAndId.endDate;
const env0_2 = endDate;
binding = env0_3;
const value = env0_2(binding.useState(false), 2);
const property = value[0];
var env0_3 = value[1];
const env0_4 = binding.useRef(value3);
binding.useEffect(_fun60837, [endDate]);
return property ? value3 : marketingComponentByType;
}
function _fun60834() { // fn#60834, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7760:315, offset: 0x017110c9, size: 37 bytes, params: 1, frame: 11
const value = environment.__proto__;
(require(7289) /* metro dependency 7289: PromotionsActionCreators */).maybeFetchActivePromotions();
}
function _fun60835() { // fn#60835, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7760:403, offset: 0x017110ee, size: 192 bytes, params: 1, frame: 18
let value = environment.__proto__;
const marketingComponentByType = PromotionsStore.getMarketingComponentByType(env0_0);
if (marketingComponentByType == null) {
return null;
}
const promotionId = marketingComponentByType.promotionId;
const getPromotionByTypeAndId = PromotionsStore.getPromotionByTypeAndId;
const value4 = undefined;
const PromotionTypes = (require(7263) /* metro dependency 7263: constants */).PromotionTypes;
const MARKETING_MOMENT = PromotionTypes.MARKETING_MOMENT;
const value5 = Reflect.apply(getPromotionByTypeAndId, PromotionsStore, [MARKETING_MOMENT, promotionId]);
if ((value5 == null ? value4 : value5.trialId) == null) {
return marketingComponentByType;
}
value = UserOfferStore.getUserTrialOffer(value5.trialId);
if (value == null) {
return null;
}
if (value.expires_at == null) {
return marketingComponentByType;
}
let Date = global.Date;
value = Date.parse(value.expires_at);
Date = global.Date;
return value < Date.now() ? null : marketingComponentByType;
}
function _fun60836() { // fn#60836, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7760:761, offset: 0x017111ae, size: 95 bytes, params: 1, frame: 16
let value = environment.__proto__;
const getPromotionByTypeAndId = PromotionsStore.getPromotionByTypeAndId;
value = undefined;
const PromotionTypes = (require(7263) /* metro dependency 7263: constants */).PromotionTypes;
const MARKETING_MOMENT = PromotionTypes.MARKETING_MOMENT;
return Reflect.apply(getPromotionByTypeAndId, PromotionsStore, [MARKETING_MOMENT,
(marketingComponentByType == null ? value : marketingComponentByType.promotionId) ?? '']);
}
function _fun60837() { // fn#60837, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7760:997, offset: 0x0171120d, size: 189 bytes, params: 1, frame: 16
var time;
var Date;
var value3;
if (endDate != null) {
time = endDate.getTime();
Date = global.Date;
value3 = time - Date.now();
if (value3 > 0) {
if (value3 < 86400000) {
env0_3(false);
global.clearTimeout(env0_4.current);
env0_4.current = global.setTimeout(_fun60838, value3);
} else if (value3 <= 0) {
env0_3(true);
}
} else if (value3 <= 0) {
env0_3(true);
function usePromotionMarketingComponent(a0) { // fn#60833, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7760:259, offset: 0x01710fd3, size: 246 bytes, params: 2, frame: 20
const env0_0 = a0;
let binding = env0_3;
binding.useEffect(_fun60834, []);
const value2 = undefined;
const useStateFromStores = FluxModule.useStateFromStores;
const promotionsStoreBinding = PromotionsStore;
const marketingComponentByType = Reflect.apply(useStateFromStores, FluxModule, [[promotionsStoreBinding,
UserOfferStore], _fun60835]);
const promotionByTypeAndId = FluxModule.useStateFromStores([promotionsStoreBinding], _fun60836);
const value3 = null;
const endDate = value3 == promotionByTypeAndId ? value2 : promotionByTypeAndId.endDate;
const endDate2 = endDate;
binding = env0_3;
const value = endDate2(binding.useState(false), 2);
const property = value[0];
var env0_3 = value[1];
const env0_4 = binding.useRef(value3);
binding.useEffect(_fun60837, [endDate]);
return property ? value3 : marketingComponentByType;
function _fun60834() { // fn#60834, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7760:315, offset: 0x017110c9, size: 37 bytes, params: 1, frame: 11
const value = environment.__proto__;
(PromotionsActionCreatorsModule).maybeFetchActivePromotions();
}
return _fun60839;
function _fun60835() { // fn#60835, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7760:403, offset: 0x017110ee, size: 192 bytes, params: 1, frame: 18
let value = environment.__proto__;
const marketingComponentByType = PromotionsStore.getMarketingComponentByType(env0_0);
if (marketingComponentByType == null) {
return null;
}
const promotionId = marketingComponentByType.promotionId;
promotionsStoreBinding = PromotionsStore;
const getPromotionByTypeAndId = promotionsStoreBinding.getPromotionByTypeAndId;
const value4 = undefined;
const PromotionTypes = (ConstantsModule).PromotionTypes;
const MARKETING_MOMENT = PromotionTypes.MARKETING_MOMENT;
const value5 = Reflect.apply(getPromotionByTypeAndId, promotionsStoreBinding, [MARKETING_MOMENT, promotionId]);
if ((value5 == null ? value4 : value5.trialId) == null) {
return marketingComponentByType;
}
value = UserOfferStore.getUserTrialOffer(value5.trialId);
if (value == null) {
return null;
}
if (value.expires_at == null) {
return marketingComponentByType;
}
let Date = global.Date;
value = Date.parse(value.expires_at);
Date = global.Date;
return value < Date.now() ? null : marketingComponentByType;
}
function _fun60836() { // fn#60836, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7760:761, offset: 0x017111ae, size: 95 bytes, params: 1, frame: 16
let value = environment.__proto__;
const promotionsStoreBinding = PromotionsStore;
const getPromotionByTypeAndId = promotionsStoreBinding.getPromotionByTypeAndId;
value = undefined;
const PromotionTypes = (ConstantsModule).PromotionTypes;
const MARKETING_MOMENT = PromotionTypes.MARKETING_MOMENT;
return Reflect.apply(getPromotionByTypeAndId, promotionsStoreBinding, [MARKETING_MOMENT,
(marketingComponentByType == null ? value : marketingComponentByType.promotionId) ?? '']);
}
function _fun60837() { // fn#60837, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7760:997, offset: 0x0171120d, size: 189 bytes, params: 1, frame: 16
var time;
var Date;
var value3;
if (endDate != null) {
time = endDate.getTime();
Date = global.Date;
value3 = time - Date.now();
if (value3 > 0) {
if (value3 < 86400000) {
env0_3(false);
global.clearTimeout(env0_4.current);
env0_4.current = global.setTimeout(_fun60838, value3);
} else if (value3 <= 0) {
env0_3(true);
}
} else if (value3 <= 0) {
env0_3(true);
}
return _fun60839;
}
env0_3(false);
global.clearTimeout(env0_4.current);
function _fun60838() { // fn#60838, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7760:1116, offset: 0x017112ca, size: 18 bytes, params: 1, frame: 11
env1_3(true);
}
function _fun60839() { // fn#60839, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7760:1145, offset: 0x017112dc, size: 29 bytes, params: 1, frame: 11
global.clearTimeout(env1_4.current);
}
}
}
env0_3(false);
global.clearTimeout(env0_4.current);
}
function _fun60839() { // fn#60839, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7760:1145, offset: 0x017112dc, size: 29 bytes, params: 1, frame: 11
global.clearTimeout(env1_4.current);
}
global.__d(_fun60832, 7582, [57, 31, 7064, 7261, 7289, 566, 7263,
2]) /* metro module 7582, dependencies: [57, 31, 7064, 7261, 7289, 566, 7263, 2] */;
@@ -1,36 +1,48 @@
/* Metro module 7292; source: modules/premium/hooks/useScheduledForcedUpdate.tsx; dependencies: [31, 7055, 2] */
import * as FileImportTrackerModule from '../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ReactModule from '../../../by-id/module-00031-React.js'; /* Metro dependency 31 */
import * as Module07055Module from '../../../by-id/module-07055.js'; /* Metro dependency 7055 */
function _fun58832(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#58832, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7470:6, offset: 0x016d7d51, size: 112 bytes, params: 8, frame: 18
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const env0_2 = importAll(31) /* metro dependency 31 */;
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/premium/hooks/useScheduledForcedUpdate.tsx');
(FileImportTrackerModule).fileFinishedImporting('modules/premium/hooks/useScheduledForcedUpdate.tsx');
exports.default = useScheduledForcedUpdate;
}
function useScheduledForcedUpdate({delay, disable}) { // fn#58833, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7470:200, offset: 0x016d7dc1, size: 112 bytes, params: 2, frame: 17
disable = !(disable === undefined) && disable;
const value2 = (Module07055Module).useForceUpdate();
value2.useEffect(function() {
if (delay <= 0) {
return undefined;
}
if (disable) {
return undefined;
}
var env0_0 = global.setTimeout(_fun58835, delay);
return _fun58836;
}, [delay, disable, value2]);
function _fun58834() { // fn#58834, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7470:302, offset: 0x016d7e31, size: 62 bytes, params: 1, frame: 14
if (delay <= 0) {
return undefined;
}
if (disable) {
return undefined;
}
const env0_0 = global.setTimeout(_fun58835, delay);
return _fun58836;
function _fun58835() { // fn#58835, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7470:340, offset: 0x016d7e6f, size: 15 bytes, params: 1, frame: 9
env1_2();
}
function _fun58836() { // fn#58836, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7470:360, offset: 0x016d7e7e, size: 24 bytes, params: 1, frame: 11
return global.clearTimeout(env0_0);
}
function useScheduledForcedUpdate({delay, disable}) { // fn#58833, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7470:200, offset: 0x016d7dc1, size: 112 bytes, params: 2, frame: 17
disable = !(disable === undefined) && disable;
const value2 = (require(7055) /* metro dependency 7055 */).useForceUpdate();
value2.useEffect(function() {
if (delay <= 0) {
return undefined;
}
if (disable) {
return undefined;
}
var env0_0 = global.setTimeout(_fun58835, delay);
return _fun58836;
}, [delay, disable, value2]);
}
function _fun58834() { // fn#58834, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7470:302, offset: 0x016d7e31, size: 62 bytes, params: 1, frame: 14
if (delay <= 0) {
return undefined;
}
if (disable) {
return undefined;
}
const env0_0 = global.setTimeout(_fun58835, delay);
return _fun58836;
}
global.__d(_fun58832, 7292, [31, 7055, 2]) /* metro module 7292, dependencies: [31, 7055, 2] */;