/* Metro module 12599; source: stores/PremiumPromoStore.tsx; dependencies: [6, 7, 15, 17, 18, 1226, 3793, 672, 21, 566, 694, 2] */ import ClassCallCheck from '../by-id/module-00006-ClassCallCheck.js'; /* Metro dependency 6 */ import CreateClass from '../by-id/module-00007-CreateClass.js'; /* Metro dependency 7 */ import PossibleConstructorReturn from '../by-id/module-00015-PossibleConstructorReturn.js'; /* Metro dependency 15 */ import Module00017 from '../by-id/module-00017.js'; /* Metro dependency 17 */ import Inherits from '../by-id/module-00018-Inherits.js'; /* Metro dependency 18 */ import Flux from '../external/discord_common/js/packages/flux/index.tsx'; /* Metro dependency 566 */ import Durations from '../utils/Durations.tsx'; /* Metro dependency 672 */ import AuthenticationStore from './AuthenticationStore.tsx'; /* Metro dependency 1226 */ import RelationshipStore from './RelationshipStore.tsx'; /* Metro dependency 3793 */ import * as FileImportTrackerModule from '../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */ function _fun96587(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#96587, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12789:6, offset: 0x021611cd, size: 346 bytes, params: 8, frame: 18 const Object = global.Object; Object.defineProperty(exports, '__esModule', {value: true}); const Millis = (Durations).Millis; const DAY = Millis.DAY; const env0_9 = 180 * DAY; const Store = (Flux).Store; let value = _fun96591(Store); value.displayName = 'PremiumPromoStore'; value = new value(importDefault(694) /* metro dependency 694: Dispatcher */, {CONNECTION_OPEN: CONNECTION_OPEN_96595}); (FileImportTrackerModule).fileFinishedImporting('stores/PremiumPromoStore.tsx'); exports.default = value; function _isNativeReflectConstruct_96588() { // fn#96588, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12789:168, offset: 0x02161327, size: 98 bytes, params: 1, frame: 18 var Boolean; var prototype; var valueOf; var call; var Reflect; var construct; var closure; var value; var error; try { Boolean = global.Boolean; prototype = Boolean.prototype; valueOf = prototype.valueOf; call = valueOf.call; Reflect = global.Reflect; construct = Reflect.construct; Boolean = global.Boolean; closure = function() { }; value = Reflect.apply(construct, Reflect, [Boolean, [], closure]); value = Reflect.apply(call, valueOf, [value]); var result = !value; } catch (error) { } return (_isNativeReflectConstruct_96588_isNativeReflectConstruct = function() { return !!result; })(); } function _fun96591(a0) { // fn#96591, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12789:401, offset: 0x02161389, size: 97 bytes, params: 2, frame: 16 const PremiumPromoStore2 = PremiumPromoStore; Inherits(PremiumPromoStore2, a0); return CreateClass(PremiumPromoStore2, [{key: 'initialize', value: function() { this.waitFor(RelationshipStore, AuthenticationStore); }}, {key: 'isEligible', value: value_96594}]); function PremiumPromoStore() { // fn#96592, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12789:413, offset: 0x00ff71a7, size: 113 bytes, params: 1, frame: 20 const value = environment.__proto__; env1_2(this, PremiumPromoStore); const value3 = env1_5(PremiumPromoStore); return env1_4(this, _isNativeReflectConstruct_96588() ? global.Reflect.construct(value3, arguments, env1_5(this).constructor) : value3.apply(this, arguments)); } function value_96594() { // fn#96594, offset: 0x00fbd9ec, size: 9 bytes, params: 1, frame: 1 return env1_10; } } function CONNECTION_OPEN_96595() { // fn#96595, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12789:883, offset: 0x02161408, size: 122 bytes, params: 1, frame: 15 var r0; var defaultImport; var extractTimestamp; var authenticationStoreBinding; const binding = env0_10; const relationshipStoreBinding = RelationshipStore; const getFriendIDs = relationshipStoreBinding.getFriendIDs; const value2 = Reflect.apply(getFriendIDs, relationshipStoreBinding, []).length >= 10; if (value2) { defaultImport = importDefault(21) /* metro dependency 21: SnowflakeUtils */; extractTimestamp = defaultImport.extractTimestamp; authenticationStoreBinding = AuthenticationStore; r0 = Reflect.apply(extractTimestamp, defaultImport, [authenticationStoreBinding.getId()]) < global.Date.now() - env0_9; } else { r0 = value2; } return binding !== r0; } } global.__d(_fun96587, 12599, [6, 7, 15, 17, 18, 1226, 3793, 672, 21, 566, 694, 2]) /* metro module 12599, dependencies: [6, 7, 15, 17, 18, 1226, 3793, 672, 21, 566, 694, 2] */;