96 lines
4.8 KiB
TypeScript
96 lines
4.8 KiB
TypeScript
/* Metro module 13087; source: modules/icymi/ICYMIManager.tsx; dependencies: [6, 7, 15, 17, 18, 9580, 672, 694, 9581, 4561, 2] */
|
|
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});
|
|
const env0_3 = importDefault(6) /* metro dependency 6 */;
|
|
const env0_4 = importDefault(7) /* metro dependency 7 */;
|
|
const env0_5 = importDefault(15) /* metro dependency 15 */;
|
|
const env0_6 = importDefault(17) /* metro dependency 17 */;
|
|
const env0_7 = importDefault(18) /* metro dependency 18 */;
|
|
let value = importDefault(4561) /* metro dependency 4561: LifecycleManager */;
|
|
value = _fun100002(value);
|
|
value = new value();
|
|
(require(2) /* metro dependency 2 */).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 = importDefault(9580) /* metro dependency 9580: ICYMIActionCreators */;
|
|
defaultImport.fetchDehydrated({isInitialLoad: r5});
|
|
if (env0_8 != null) {
|
|
global.clearTimeout(env0_8);
|
|
}
|
|
const setTimeout = global.setTimeout;
|
|
const Millis = (importDefault(672) /* metro dependency 672: 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 closure = ICYMIManager;
|
|
env0_7(closure, a0);
|
|
return env0_4(closure, [{key: '_initialize', value: value_100004}, {key: '_terminate', value: value_100005},
|
|
{key: 'handlePostConnectionOpen', value: value_100006}]);
|
|
}
|
|
|
|
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 icymiExperimentModule = require(9581) /* metro dependency 9581: ICYMIExperiment */;
|
|
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();
|
|
}
|
|
}
|
|
|