111 lines
6.3 KiB
TypeScript
111 lines
6.3 KiB
TypeScript
/* Metro module 13087; source: modules/icymi/ICYMIManager.tsx; dependencies: [6, 7, 15, 17, 18, 9580, 672, 694, 9581, 4561, 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 Durations from '../../utils/Durations.tsx'; /* Metro dependency 672 */
|
|
import LifecycleManager from '../../lib/LifecycleManager.tsx'; /* Metro dependency 4561 */
|
|
import ICYMIActionCreators from './ICYMIActionCreators.tsx'; /* Metro dependency 9580 */
|
|
import * as FileImportTrackerModule from '../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
|
|
import * as ICYMIExperimentModule from './ICYMIExperiment.tsx'; /* Metro dependency 9581 */
|
|
|
|
function _fun99996(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#99996, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13277:6, offset: 0x021db75c, size: 247 bytes, params: 8, frame: 19
|
|
const env0_0 = require;
|
|
const Object = global.Object;
|
|
Object.defineProperty(exports, '__esModule', {value: true});
|
|
let value = LifecycleManager;
|
|
value = _fun100002(value);
|
|
value = new value();
|
|
(FileImportTrackerModule).fileFinishedImporting('modules/icymi/ICYMIManager.tsx');
|
|
exports.default = value;
|
|
function _isNativeReflectConstruct_99997() { // fn#99997, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13277:148, offset: 0x021db853, 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_99997_isNativeReflectConstruct = function() {
|
|
return !!result;
|
|
})();
|
|
}
|
|
|
|
function fetchDehydratedData() { // fn#100000, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13277:352, offset: 0x021db8b5, size: 147 bytes, params: 1, frame: 15
|
|
const value = a0;
|
|
const r5 = value !== undefined ? value : false;
|
|
const defaultImport = ICYMIActionCreators;
|
|
defaultImport.fetchDehydrated({isInitialLoad: r5});
|
|
if (env0_8 != null) {
|
|
global.clearTimeout(env0_8);
|
|
}
|
|
const setTimeout = global.setTimeout;
|
|
const Millis = (Durations).Millis;
|
|
const MINUTE = Millis.MINUTE;
|
|
env0_8 = setTimeout(function() {
|
|
fetchDehydratedData();
|
|
}, 15 * MINUTE);
|
|
}
|
|
|
|
function _fun100002(a0) { // fn#100002, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13277:528, offset: 0x021db957, size: 122 bytes, params: 2, frame: 16
|
|
const ICYMIManager2 = ICYMIManager;
|
|
Inherits(ICYMIManager2, a0);
|
|
return CreateClass(ICYMIManager2, [{key: '_initialize', value: value_100004}, {key: '_terminate', value: value_100005},
|
|
{key: 'handlePostConnectionOpen', value: value_100006}]);
|
|
function ICYMIManager() { // fn#100003, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13277:540, offset: 0x00c7c82b, size: 113 bytes, params: 1, frame: 20
|
|
const value = environment.__proto__;
|
|
env1_3(this, ICYMIManager);
|
|
const value3 = env1_6(ICYMIManager);
|
|
return env1_5(this, _isNativeReflectConstruct_99997() ? global.Reflect.construct(value3, arguments,
|
|
env1_6(this).constructor) : value3.apply(this, arguments));
|
|
}
|
|
|
|
function value_100004() { // fn#100004, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13277:819, offset: 0x021db9d1, size: 52 bytes, params: 1, frame: 14
|
|
let value = environment.__proto__;
|
|
value = importDefault(694) /* metro dependency 694: Dispatcher */;
|
|
value.subscribe('POST_CONNECTION_OPEN', this.handlePostConnectionOpen);
|
|
}
|
|
|
|
function value_100005() { // fn#100005, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13277:928, offset: 0x021dba05, size: 52 bytes, params: 1, frame: 14
|
|
let value = environment.__proto__;
|
|
value = importDefault(694) /* metro dependency 694: Dispatcher */;
|
|
value.unsubscribe('POST_CONNECTION_OPEN', this.handlePostConnectionOpen);
|
|
}
|
|
|
|
function value_100006() { // fn#100006, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13277:1053, offset: 0x021dba39, size: 107 bytes, params: 1, frame: 14
|
|
let value = environment.__proto__;
|
|
const getICYMIEnabled = ICYMIExperimentModule.getICYMIEnabled;
|
|
if (Reflect.apply(getICYMIEnabled, ICYMIExperimentModule, ['ICYMIManager'])) {
|
|
fetchDehydratedData(true);
|
|
value = importDefault(9580) /* metro dependency 9580: ICYMIActionCreators */;
|
|
value.getGuildChannelScores();
|
|
value = importDefault(9580) /* metro dependency 9580: ICYMIActionCreators */;
|
|
value.getRecommendedGuilds();
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
global.__d(_fun99996, 13087, [6, 7, 15, 17, 18, 9580, 672, 694, 9581, 4561,
|
|
2]) /* metro module 13087, dependencies: [6, 7, 15, 17, 18, 9580, 672, 694, 9581, 4561, 2] */;
|