201 lines
9.6 KiB
TypeScript
201 lines
9.6 KiB
TypeScript
/* Metro module 4860; source: lib/AutomaticLifecycleManager.tsx; dependencies: [6, 7, 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 Dispatcher from '../Dispatcher.tsx'; /* Metro dependency 694 */
|
|
import * as FileImportTrackerModule from '../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
|
|
|
|
function _fun42445(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#42445, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5038:6, offset: 0x011399e0, size: 132 bytes, params: 8, frame: 18
|
|
const Object = global.Object;
|
|
Object.defineProperty(exports, '__esModule', {value: true});
|
|
const value = _fun42446();
|
|
(FileImportTrackerModule).fileFinishedImporting('lib/AutomaticLifecycleManager.tsx');
|
|
exports.default = value;
|
|
function _fun42446() { // fn#42446, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5038:118, offset: 0x01139a64, size: 124 bytes, params: 1, frame: 15
|
|
return CreateClass(AutomaticLifecycleManager, [{key: 'initialize', value: function() {
|
|
var property = this.initializedCount;
|
|
this.initializedCount = typeof property === 'bigint' ? property + 1n : +property + 1;
|
|
if (!(this.initializedCount > 1)) {
|
|
this._initialize();
|
|
property = global.Object;
|
|
property.entries(this.actions).forEach(_fun42449);
|
|
property = this.stores;
|
|
property.forEach(_fun42450);
|
|
}
|
|
}}, {key: 'terminate', value: value_42451}, {key: '_initialize', value: function() {
|
|
}}, {key: '_terminate', value: function() {
|
|
}}]);
|
|
function AutomaticLifecycleManager() { // fn#42447, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5038:139, offset: 0x01139ae0, size: 77 bytes, params: 1, frame: 13
|
|
const value = environment.__proto__;
|
|
env1_2(this, AutomaticLifecycleManager);
|
|
this.initializedCount = 0;
|
|
this.actions = {};
|
|
const Map = global.Map;
|
|
this.stores = new Map();
|
|
}
|
|
|
|
function value_42448() { // fn#42448, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5038:297, offset: 0x01139b2d, size: 108 bytes, params: 1, frame: 13
|
|
var Object;
|
|
const initializedCount = this.initializedCount;
|
|
this.initializedCount = typeof initializedCount === 'bigint' ? initializedCount + 1n : +initializedCount + 1;
|
|
if (!(this.initializedCount > 1)) {
|
|
this._initialize();
|
|
Object = global.Object;
|
|
Object.entries(this.actions).forEach(function(a0) {
|
|
var r1;
|
|
var r2;
|
|
var r5;
|
|
var item3;
|
|
var value3;
|
|
var iterator = a0[Symbol.iterator]();
|
|
var iterator2 = iterator.next;
|
|
var item2 = Reflect.apply(iterator2, iterator, []);
|
|
var item = item2.value;
|
|
item2 = item2.done ? undefined : iterator;
|
|
var value = undefined;
|
|
var value2 = item2 === value;
|
|
var r4 = value2 ? value : item;
|
|
if (value2) {
|
|
r1 = item2;
|
|
r2 = value2;
|
|
r5 = value;
|
|
} else {
|
|
item3 = Reflect.apply(iterator2, item2, []);
|
|
item = item3.value;
|
|
item3 = item3.done ? undefined : item2;
|
|
value3 = item3 === value;
|
|
if (value3) {
|
|
r1 = item3;
|
|
r2 = value3;
|
|
r5 = value;
|
|
} else {
|
|
r1 = item3;
|
|
r2 = value3;
|
|
r5 = item;
|
|
}
|
|
}
|
|
if (!r2) {
|
|
r1.return();
|
|
}
|
|
var defaultImport = importDefault(dependencyMap[2]);
|
|
defaultImport.subscribe(r4, typeof r5 === 'function' ? r5 : r5.callback);
|
|
return value;
|
|
});
|
|
this.stores.forEach(_fun42450);
|
|
}
|
|
function _fun42449(a0) { // fn#42449, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5038:415, offset: 0x01139b99, size: 120 bytes, params: 2, frame: 17
|
|
var r1;
|
|
var r2;
|
|
var r5;
|
|
var item3;
|
|
var value3;
|
|
const iterator = a0[Symbol.iterator]();
|
|
const iterator2 = iterator.next;
|
|
let item2 = Reflect.apply(iterator2, iterator, []);
|
|
let item = item2.value;
|
|
item2 = item2.done ? undefined : iterator;
|
|
const value = undefined;
|
|
const value2 = item2 === value;
|
|
const r4 = value2 ? value : item;
|
|
if (value2) {
|
|
r1 = item2;
|
|
r2 = value2;
|
|
r5 = value;
|
|
} else {
|
|
item3 = Reflect.apply(iterator2, item2, []);
|
|
item = item3.value;
|
|
item3 = item3.done ? undefined : item2;
|
|
value3 = item3 === value;
|
|
if (value3) {
|
|
r1 = item3;
|
|
r2 = value3;
|
|
r5 = value;
|
|
} else {
|
|
r1 = item3;
|
|
r2 = value3;
|
|
r5 = item;
|
|
}
|
|
}
|
|
if (!r2) {
|
|
r1.return();
|
|
}
|
|
const defaultImport = Dispatcher;
|
|
defaultImport.subscribe(r4, typeof r5 === 'function' ? r5 : r5.callback);
|
|
return value;
|
|
}
|
|
|
|
}
|
|
|
|
function value_42451(a0) { // fn#42451, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5038:568, offset: 0x01139c2a, size: 131 bytes, params: 2, frame: 13
|
|
var Object;
|
|
let initializedCount = this.initializedCount;
|
|
if (!(initializedCount <= 0)) {
|
|
if (a0) {
|
|
this.initializedCount = 0;
|
|
} else {
|
|
initializedCount = this.initializedCount;
|
|
this.initializedCount = typeof initializedCount === 'bigint' ? initializedCount - 1n : +initializedCount - 1;
|
|
}
|
|
initializedCount = this.initializedCount;
|
|
if (initializedCount === 0) {
|
|
this._terminate();
|
|
Object = global.Object;
|
|
Object.entries(this.actions).forEach(function(a0) {
|
|
var r1;
|
|
var r2;
|
|
var r5;
|
|
var item3;
|
|
var value3;
|
|
var iterator = a0[Symbol.iterator]();
|
|
var iterator2 = iterator.next;
|
|
var item2 = Reflect.apply(iterator2, iterator, []);
|
|
var item = item2.value;
|
|
item2 = item2.done ? undefined : iterator;
|
|
var value = undefined;
|
|
var value2 = item2 === value;
|
|
var r4 = value2 ? value : item;
|
|
if (value2) {
|
|
r1 = item2;
|
|
r2 = value2;
|
|
r5 = value;
|
|
} else {
|
|
item3 = Reflect.apply(iterator2, item2, []);
|
|
item = item3.value;
|
|
item3 = item3.done ? undefined : item2;
|
|
value3 = item3 === value;
|
|
if (value3) {
|
|
r1 = item3;
|
|
r2 = value3;
|
|
r5 = value;
|
|
} else {
|
|
r1 = item3;
|
|
r2 = value3;
|
|
r5 = item;
|
|
}
|
|
}
|
|
if (!r2) {
|
|
r1.return();
|
|
}
|
|
var defaultImport = importDefault(dependencyMap[2]);
|
|
defaultImport.unsubscribe(r4, typeof r5 === 'function' ? r5 : r5.callback);
|
|
return value;
|
|
});
|
|
this.stores.forEach(_fun42453);
|
|
}
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
function _fun42450(a0, a1) { // fn#42450, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5038:504, offset: 0x01139c11, size: 25 bytes, params: 3, frame: 11
|
|
a1.addChangeListener(a0);
|
|
a0();
|
|
}
|
|
|
|
function _fun42453(a0, a1) { // fn#42453, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5038:832, offset: 0x01139d25, size: 21 bytes, params: 3, frame: 11
|
|
a1.removeChangeListener(a0);
|
|
}
|
|
|
|
global.__d(_fun42445, 4860, [6, 7, 694, 2]) /* metro module 4860, dependencies: [6, 7, 694, 2] */;
|