110 lines
5.4 KiB
TypeScript
110 lines
5.4 KiB
TypeScript
/* Metro module 7123; source: modules/ads/native/AdUserStore.tsx; dependencies: [6, 7, 15, 17, 18, 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 * as FileImportTrackerModule from '../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 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 Store = (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;
|
|
}});
|
|
(FileImportTrackerModule).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 AdUserStore2 = AdUserStore;
|
|
Inherits(AdUserStore2, a0);
|
|
return CreateClass(AdUserStore2, [{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 AdUserStore() { // fn#56960, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7301:389, offset: 0x0113ed59, size: 113 bytes, params: 1, frame: 20
|
|
const value = environment.__proto__;
|
|
env1_0(this, AdUserStore);
|
|
const value3 = env1_3(AdUserStore);
|
|
return env1_2(this, _isNativeReflectConstruct_56956() ? global.Reflect.construct(value3, arguments,
|
|
env1_3(this).constructor) : value3.apply(this, arguments));
|
|
}
|
|
|
|
function get_56961() { // fn#56961, offset: 0x00e40571, size: 9 bytes, params: 1, frame: 1
|
|
return env1_5;
|
|
}
|
|
|
|
function get_56962() { // fn#56962, offset: 0x00c82288, size: 9 bytes, params: 1, frame: 1
|
|
return env1_6;
|
|
}
|
|
|
|
function get_56963() { // fn#56963, offset: 0x00fbd9cb, size: 9 bytes, params: 1, frame: 1
|
|
return env1_7;
|
|
}
|
|
|
|
function get_56964() { // fn#56964, offset: 0x00fbd9d4, size: 9 bytes, params: 1, frame: 1
|
|
return env1_8;
|
|
}
|
|
|
|
function get_56965() { // fn#56965, offset: 0x00e07a77, size: 9 bytes, params: 1, frame: 1
|
|
return env1_9;
|
|
}
|
|
|
|
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;
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
global.__d(_fun56955, 7123, [6, 7, 15, 17, 18, 566, 694,
|
|
2]) /* metro module 7123, dependencies: [6, 7, 15, 17, 18, 566, 694, 2] */;
|