77 lines
3.6 KiB
TypeScript
77 lines
3.6 KiB
TypeScript
/* Metro module 12599; source: stores/PremiumPromoStore.tsx; dependencies: [6, 7, 15, 17, 18, 1226, 3793, 672, 21, 566, 694, 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 env0_2 = importDefault(6) /* metro dependency 6 */;
|
|
const env0_3 = importDefault(7) /* metro dependency 7 */;
|
|
const env0_4 = importDefault(15) /* metro dependency 15 */;
|
|
const env0_5 = importDefault(17) /* metro dependency 17 */;
|
|
const env0_6 = importDefault(18) /* metro dependency 18 */;
|
|
const authenticationStore = importDefault(1226) /* metro dependency 1226: AuthenticationStore */;
|
|
const relationshipStore = importDefault(3793) /* metro dependency 3793: RelationshipStore */;
|
|
const Millis = (importDefault(672) /* metro dependency 672: Durations */).Millis;
|
|
const DAY = Millis.DAY;
|
|
const env0_9 = 180 * DAY;
|
|
const Store = (importDefault(566) /* metro dependency 566: flux */).Store;
|
|
let value = _fun96591(Store);
|
|
value.displayName = 'PremiumPromoStore';
|
|
value = new value(importDefault(694) /* metro dependency 694: Dispatcher */,
|
|
{CONNECTION_OPEN: CONNECTION_OPEN_96595});
|
|
(require(2) /* metro dependency 2 */).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 closure = PremiumPromoStore;
|
|
env0_6(closure, a0);
|
|
return env0_3(closure, [{key: 'initialize', value: function() {
|
|
this.waitFor(RelationshipStore, AuthenticationStore);
|
|
}}, {key: 'isEligible', value: value_96594}]);
|
|
}
|
|
|
|
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;
|
|
const binding = env0_10;
|
|
const getFriendIDs = RelationshipStore.getFriendIDs;
|
|
const value2 = Reflect.apply(getFriendIDs, RelationshipStore, []).length >= 10;
|
|
if (value2) {
|
|
defaultImport = importDefault(21) /* metro dependency 21: SnowflakeUtils */;
|
|
r0 = defaultImport.extractTimestamp(AuthenticationStore.getId()) < global.Date.now() - env0_9;
|
|
} else {
|
|
r0 = value2;
|
|
}
|
|
return binding !== r0;
|
|
}
|
|
|