125 lines
7.2 KiB
TypeScript
125 lines
7.2 KiB
TypeScript
/* Metro module 13088; source: modules/game_relationships/GameRelationshipManager.tsx; dependencies: [6, 7, 15, 17, 18, 5242, 661, 6772, 694, 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 LifecycleManager from '../../lib/LifecycleManager.tsx'; /* Metro dependency 4561 */
|
|
import GameRelationshipStore from './GameRelationshipStore.tsx'; /* Metro dependency 5242 */
|
|
import * as FileImportTrackerModule from '../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
|
|
import * as ConstantsModule from '../../Constants.tsx'; /* Metro dependency 661 */
|
|
|
|
function _fun100007(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#100007, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13278:6, offset: 0x021dbaa4, size: 264 bytes, params: 8, frame: 19
|
|
const Object = global.Object;
|
|
Object.defineProperty(exports, '__esModule', {value: true});
|
|
let value = LifecycleManager;
|
|
value = _fun100011(value);
|
|
value = new value();
|
|
(FileImportTrackerModule).fileFinishedImporting('modules/game_relationships/GameRelationshipManager.tsx');
|
|
exports.default = value;
|
|
function _isNativeReflectConstruct_100008() { // fn#100008, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13278:186, offset: 0x021dbbac, 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_100008_isNativeReflectConstruct = function() {
|
|
return !!result;
|
|
})();
|
|
}
|
|
|
|
function _fun100011(a0) { // fn#100011, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13278:389, offset: 0x021dbc0e, size: 122 bytes, params: 2, frame: 16
|
|
const GameRelationshipManager2 = GameRelationshipManager;
|
|
Inherits(GameRelationshipManager2, a0);
|
|
return CreateClass(GameRelationshipManager2, [{key: '_initialize', value: value_100015}, {key: '_terminate',
|
|
value: value_100016}, {key: 'destroy', value: value_100017}]);
|
|
function GameRelationshipManager(a0) { // fn#100012, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13278:401, offset: 0x021dbc88, size: 141 bytes, params: 2, frame: 19
|
|
var r0;
|
|
var Reflect;
|
|
let value = copyRestArgs(0, undefined);
|
|
let binding = env1_2;
|
|
binding(this, GameRelationshipManager);
|
|
const items2 = [];
|
|
arraySpread(items2, value, 0, items2);
|
|
value = env1_5(GameRelationshipManager);
|
|
binding = env1_4;
|
|
if (_isNativeReflectConstruct_100008()) {
|
|
Reflect = global.Reflect;
|
|
value = Reflect.construct(value, items2, env1_5(this).constructor);
|
|
r0 = value;
|
|
} else {
|
|
value = value.apply(this, items2);
|
|
r0 = value;
|
|
}
|
|
value = binding(this, r0);
|
|
value.handlePostConnectionOpen = handlePostConnectionOpen_100013;
|
|
return value;
|
|
function GameRelationshipManagerHandlePostConnectionOpen() { // fn#100013, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13278:683, owner: GameRelationshipManager.handlePostConnectionOpen, offset: 0x021dbd15, size: 128 bytes, params: 1, frame: 14
|
|
var environment;
|
|
let value = environment.__proto__.__proto__;
|
|
const gameRelationships = GameRelationshipStore.getGameRelationships();
|
|
const Set = global.Set;
|
|
const set = new Set();
|
|
gameRelationships.values().forEach(_fun100014);
|
|
value = importDefault(6772) /* metro dependency 6772: ApplicationActionCreators */;
|
|
const fetchApplications = value.fetchApplications;
|
|
const Array = global.Array;
|
|
Reflect.apply(fetchApplications, value, [Array.from(set)]);
|
|
function _fun100014(a0) { // fn#100014, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13278:749, offset: 0x021dbd95, size: 51 bytes, params: 2, frame: 11
|
|
var binding;
|
|
const type = a0.type;
|
|
const PENDING_INCOMING = RelationshipTypes.PENDING_INCOMING;
|
|
if (type === PENDING_INCOMING) {
|
|
binding = env0_0;
|
|
binding.add(a0.applicationId);
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
function value_100015() { // fn#100015, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13278:940, offset: 0x021dbdc8, 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_100016() { // fn#100016, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13278:1049, offset: 0x021dbdfc, 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_100017() { // fn#100017, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13278:1157, offset: 0x021dbdfc, 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);
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
global.__d(_fun100007, 13088, [6, 7, 15, 17, 18, 5242, 661, 6772, 694, 4561,
|
|
2]) /* metro module 13088, dependencies: [6, 7, 15, 17, 18, 5242, 661, 6772, 694, 4561, 2] */;
|