77 lines
3.6 KiB
TypeScript
77 lines
3.6 KiB
TypeScript
/* Metro module 7123; source: modules/ads/native/AdUserStore.tsx; dependencies: [6, 7, 15, 17, 18, 566, 694, 2] */
|
|
function _fun56955(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#56955, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7301:6, offset: 0x013d7334, size: 315 bytes, params: 8, frame: 18
|
|
const Object = global.Object;
|
|
Object.defineProperty(exports, '__esModule', {value: true});
|
|
const env0_0 = importDefault(6) /* metro dependency 6 */;
|
|
const env0_1 = importDefault(7) /* metro dependency 7 */;
|
|
const env0_2 = importDefault(15) /* metro dependency 15 */;
|
|
const env0_3 = importDefault(17) /* metro dependency 17 */;
|
|
const env0_4 = importDefault(18) /* metro dependency 18 */;
|
|
const Store = (importDefault(566) /* metro dependency 566: flux */).Store;
|
|
let value = _fun56959(Store);
|
|
value.displayName = 'AdUserStore';
|
|
value = new value(importDefault(694) /* metro dependency 694: Dispatcher */, {POST_CONNECTION_OPEN: function() {
|
|
}, FETCH_AD_USER_START: function() {
|
|
env0_6 = true;
|
|
var Date = global.Date;
|
|
env0_9 = Date.now();
|
|
}, FETCH_AD_USER_SUCCESS: function({advertisingId, isLimitAdTrackingEnabled}) {
|
|
env0_6 = false;
|
|
env0_8 = null;
|
|
env0_5 = {advertisingId: advertisingId, isLimitAdTrackingEnabled: isLimitAdTrackingEnabled};
|
|
env0_7 = false;
|
|
}, FETCH_AD_USER_FAILURE: function() {
|
|
env0_6 = false;
|
|
env0_7 = true;
|
|
env0_8 = null;
|
|
}});
|
|
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/ads/native/AdUserStore.tsx');
|
|
exports.default = value;
|
|
}
|
|
|
|
function _isNativeReflectConstruct_56956() { // fn#56956, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7301:148, offset: 0x013d746f, size: 94 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_56956_isNativeReflectConstruct = function() {
|
|
return !!result;
|
|
})();
|
|
}
|
|
|
|
function _fun56959(a0) { // fn#56959, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7301:377, offset: 0x013d74cd, size: 212 bytes, params: 2, frame: 16
|
|
const closure = AdUserStore;
|
|
env0_4(closure, a0);
|
|
return env0_1(closure, [{key: 'adUser', get: get_56961}, {key: 'isFetching', get: get_56962},
|
|
{key: 'hasFetchFailed', get: get_56963}, {key: 'fetchPromise', get: get_56964}, {key: 'lastFetchedAt',
|
|
get: get_56965}, {key: 'hasFetchedRecently', get: get_56966}, {key: 'setFetchPromise', value: function(a0) {
|
|
env1_8 = a0;
|
|
}}]);
|
|
}
|
|
|
|
function get_56966() { // fn#56966, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7301:893, offset: 0x013d75a1, size: 53 bytes, params: 1, frame: 11
|
|
const value = environment.__proto__;
|
|
return env1_9 != null && global.Date.now() - env1_9 < 21600000;
|
|
}
|
|
|