Initial commit
This commit is contained in:
commit
af3b49f756
16065 files changed
+2938410
No files matched your search
@@ -0,0 +1,233 @@
|
||||
/* Metro module 8801; source: modules/game_relationships/GameRelationshipActionCreators.tsx; dependencies: [5, 661, 4131, 4647, 1244, 507, 4002, 2] */
|
||||
function _fun68819(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#68819, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8986:6, offset: 0x01c5e699, size: 236 bytes, params: 8, frame: 19
|
||||
const env0_0 = require;
|
||||
const deleteGameRelationship = function() {
|
||||
return _deleteGameRelationship.apply(this, arguments);
|
||||
};
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_3 = importDefault(5) /* metro dependency 5 */;
|
||||
const constantsModule = require(661) /* metro dependency 661: Constants */;
|
||||
const env0_4 = constantsModule.Endpoints;
|
||||
const env0_5 = constantsModule.RelationshipTypes;
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/game_relationships/GameRelationshipActionCreators.tsx');
|
||||
exports.default = {removeGameFriend: function() {
|
||||
return _removeGameFriend.apply(this, arguments);
|
||||
}, acceptGameFriendRequest: function({userId, applicationId}) {
|
||||
return _fun68835({userId: userId, applicationId: applicationId, type: RelationshipTypes.FRIEND,
|
||||
onSuccess: _fun68838});
|
||||
}, cancelGameFriendRequest: function() {
|
||||
return _cancelGameFriendRequest.apply(this, arguments);
|
||||
}};
|
||||
}
|
||||
|
||||
function showRequestFailedAlert(a0) { // fn#68820, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8986:154, offset: 0x01c5e785, size: 210 bytes, params: 2, frame: 19
|
||||
const APIError = (require(4131) /* metro dependency 4131: errors */).APIError;
|
||||
const value2 = Object.create(APIError.prototype, {constructor: {value: APIError}});
|
||||
const aPIError = new APIError(a0);
|
||||
const anyErrorMessage = (aPIError instanceof Object ? aPIError : value2).getAnyErrorMessage();
|
||||
const defaultImport = importDefault(4647) /* metro dependency 4647: AlertActionCreators */;
|
||||
const show = defaultImport.show;
|
||||
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
const string = intl.string;
|
||||
const t = (require(1244) /* metro dependency 1244: indexNative */).t;
|
||||
Reflect.apply(show, defaultImport, [{title: Reflect.apply(string, intl, [t['328j/I']]),
|
||||
body: anyErrorMessage ?? intl.string(t.fEptJP)}]);
|
||||
}
|
||||
|
||||
function _deleteGameRelationship() { // fn#68822, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8986:444, offset: 0x01c5e857, size: 50 bytes, params: 1, frame: 14
|
||||
return env0_3(_fun68824).apply(this, arguments);
|
||||
}
|
||||
|
||||
function _removeGameFriend() { // fn#68825, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8986:729, offset: 0x01c5e937, size: 50 bytes, params: 1, frame: 14
|
||||
return env0_3(_fun68827).apply(this, arguments);
|
||||
}
|
||||
|
||||
function _cancelGameFriendRequest() { // fn#68829, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8986:1002, offset: 0x01c5ea34, size: 50 bytes, params: 1, frame: 14
|
||||
return env0_3(_fun68831).apply(this, arguments);
|
||||
}
|
||||
|
||||
function acceptGameFriendRequest({userId, applicationId}) { // fn#68834, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8986:1413, offset: 0x01c5eb31, size: 70 bytes, params: 2, frame: 12
|
||||
const FRIEND = RelationshipTypes.FRIEND;
|
||||
return addGameRelationship({userId: userId, applicationId: applicationId, type: FRIEND, onSuccess: function() {
|
||||
var AccessibilityAnnouncer = require(dependencyMap[6]).AccessibilityAnnouncer;
|
||||
AccessibilityAnnouncer.announce(require(dependencyMap[4]).intl.string(require(dependencyMap[4]).t.taJiuc));
|
||||
}});
|
||||
}
|
||||
|
||||
async function _fun68824({userId, applicationId, onSuccess}) { // fn#68824, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8986:513, offset: 0x01c5e89d, size: 154 bytes, params: 2, frame: 20
|
||||
var binding;
|
||||
var binding2;
|
||||
var property;
|
||||
var value4;
|
||||
var HTTP;
|
||||
var del;
|
||||
var object2;
|
||||
var USER_GAME_RELATIONSHIP;
|
||||
var value5;
|
||||
var value6;
|
||||
var value7;
|
||||
var value8;
|
||||
var error;
|
||||
if (true) {
|
||||
await undefined;
|
||||
if (false) {
|
||||
return undefined;
|
||||
}
|
||||
value = environment.__proto__.__proto__;
|
||||
try {
|
||||
binding = env2_0;
|
||||
} catch (error) {
|
||||
env2_6(error);
|
||||
return undefined;
|
||||
}
|
||||
try {
|
||||
binding2 = env2_2;
|
||||
} catch (error) {
|
||||
env2_6(error);
|
||||
return undefined;
|
||||
}
|
||||
try {
|
||||
property = binding2[5];
|
||||
} catch (error) {
|
||||
env2_6(error);
|
||||
return undefined;
|
||||
}
|
||||
try {
|
||||
value4 = binding(property);
|
||||
} catch (error) {
|
||||
env2_6(error);
|
||||
return undefined;
|
||||
}
|
||||
try {
|
||||
HTTP = value4.HTTP;
|
||||
} catch (error) {
|
||||
env2_6(error);
|
||||
return undefined;
|
||||
}
|
||||
try {
|
||||
del = HTTP.del;
|
||||
} catch (error) {
|
||||
env2_6(error);
|
||||
return undefined;
|
||||
}
|
||||
try {
|
||||
object2 = {'url': null, 'oldFormErrors': true, 'rejectWithError': false};
|
||||
} catch (error) {
|
||||
env2_6(error);
|
||||
return undefined;
|
||||
}
|
||||
try {
|
||||
binding = env2_4;
|
||||
} catch (error) {
|
||||
env2_6(error);
|
||||
return undefined;
|
||||
}
|
||||
try {
|
||||
USER_GAME_RELATIONSHIP = binding.USER_GAME_RELATIONSHIP;
|
||||
} catch (error) {
|
||||
env2_6(error);
|
||||
return undefined;
|
||||
}
|
||||
try {
|
||||
value5 = Reflect.apply(USER_GAME_RELATIONSHIP, binding, [userId, applicationId]);
|
||||
} catch (error) {
|
||||
env2_6(error);
|
||||
return undefined;
|
||||
}
|
||||
try {
|
||||
object2.url = value5;
|
||||
} catch (error) {
|
||||
env2_6(error);
|
||||
return undefined;
|
||||
}
|
||||
try {
|
||||
value6 = Reflect.apply(del, HTTP, [object2]);
|
||||
} catch (error) {
|
||||
env2_6(error);
|
||||
return undefined;
|
||||
}
|
||||
await value6;
|
||||
try {
|
||||
value7 = undefined;
|
||||
value8 = false;
|
||||
} catch (error) {
|
||||
env2_6(error);
|
||||
return undefined;
|
||||
}
|
||||
if (value8) {
|
||||
return value7;
|
||||
}
|
||||
try {
|
||||
onSuccess();
|
||||
} catch (error) {
|
||||
env2_6(error);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
async function _fun68827({userId, applicationId}) { // fn#68827, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8986:786, offset: 0x01c5e97d, size: 90 bytes, params: 2, frame: 15
|
||||
var environment;
|
||||
if (true) {
|
||||
await undefined;
|
||||
if (false) {
|
||||
return undefined;
|
||||
}
|
||||
value = environment.__proto__.__proto__;
|
||||
await env2_7({userId: userId, applicationId: applicationId, onSuccess: onSuccess_68828});
|
||||
}
|
||||
}
|
||||
|
||||
async function _fun68831({userId, applicationId}) { // fn#68831, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8986:1073, offset: 0x01c5ea7a, size: 90 bytes, params: 2, frame: 15
|
||||
var environment;
|
||||
if (true) {
|
||||
await undefined;
|
||||
if (false) {
|
||||
return undefined;
|
||||
}
|
||||
value = environment.__proto__.__proto__;
|
||||
await env2_7({userId: userId, applicationId: applicationId, onSuccess: onSuccess_68832});
|
||||
}
|
||||
}
|
||||
|
||||
function addGameRelationship({userId, applicationId, onSuccess, type}) { // fn#68835, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8986:1481, owner: acceptGameFriendRequest.addGameRelationship, offset: 0x01c5eb77, size: 153 bytes, params: 2, frame: 18
|
||||
var environment;
|
||||
let value = environment.__proto__;
|
||||
const HTTP = (require(507) /* metro dependency 507: HTTPUtils */).HTTP;
|
||||
const put = HTTP.put;
|
||||
const object2 = {};
|
||||
object2.url = Endpoints.USER_GAME_RELATIONSHIP(userId, applicationId);
|
||||
object2.body = {type: type};
|
||||
object2.oldFormErrors = true;
|
||||
object2.rejectWithError = false;
|
||||
value = Reflect.apply(put, HTTP, [object2]);
|
||||
value = value.then(function() {
|
||||
onSuccess();
|
||||
});
|
||||
return value.catch(function(a0) {
|
||||
showRequestFailedAlert(a0);
|
||||
var Promise = global.Promise;
|
||||
return Promise.reject(a0);
|
||||
});
|
||||
}
|
||||
|
||||
function onSuccess_68828() { // fn#68828, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8986:889, offset: 0x01c5e9d7, size: 93 bytes, params: 1, frame: 16
|
||||
const binding = env3_0;
|
||||
const binding2 = env3_2;
|
||||
const AccessibilityAnnouncer = binding(binding2[6]).AccessibilityAnnouncer;
|
||||
const announce = AccessibilityAnnouncer.announce;
|
||||
const intl = binding(binding2[4]).intl;
|
||||
Reflect.apply(announce, AccessibilityAnnouncer, [intl.string(binding(binding2[4]).t.zRf8cO)]);
|
||||
}
|
||||
|
||||
function onSuccess_68832() { // fn#68832, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8986:1176, offset: 0x01c5ead4, size: 93 bytes, params: 1, frame: 16
|
||||
const binding = env3_0;
|
||||
const binding2 = env3_2;
|
||||
const AccessibilityAnnouncer = binding(binding2[6]).AccessibilityAnnouncer;
|
||||
const announce = AccessibilityAnnouncer.announce;
|
||||
const intl = binding(binding2[4]).intl;
|
||||
const string = intl.string;
|
||||
const XMf21q = binding(binding2[4]).t.XMf21q;
|
||||
Reflect.apply(announce, AccessibilityAnnouncer, [Reflect.apply(string, intl, [XMf21q])]);
|
||||
}
|
||||
|
||||
@@ -0,0 +1,113 @@
|
||||
/* Metro module 13088; source: modules/game_relationships/GameRelationshipManager.tsx; dependencies: [6, 7, 15, 17, 18, 5242, 661, 6772, 694, 4561, 2] */
|
||||
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});
|
||||
const env0_2 = importDefault(6) /* metro dependency 6 */;
|
||||
const env0_3 = importDefault(7) /* metro dependency 7 */;
|
||||
const env0_4 = importDefault(15) /* metro dependency 15 */;
|
||||
const env0_5 = importDefault(17) /* metro dependency 17 */;
|
||||
const env0_6 = importDefault(18) /* metro dependency 18 */;
|
||||
const gameRelationshipStore = importDefault(5242) /* metro dependency 5242: GameRelationshipStore */;
|
||||
const env0_8 = (require(661) /* metro dependency 661: Constants */).RelationshipTypes;
|
||||
let value = importDefault(4561) /* metro dependency 4561: LifecycleManager */;
|
||||
value = _fun100011(value);
|
||||
value = new value();
|
||||
(require(2) /* metro dependency 2 */).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 closure = GameRelationshipManager;
|
||||
env0_6(closure, a0);
|
||||
return env0_3(closure, [{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 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 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);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,366 @@
|
||||
/* Metro module 5242; source: modules/game_relationships/GameRelationshipStore.tsx; dependencies: [6, 7, 15, 17, 18, 3793, 661, 3780, 566, 694, 2] */
|
||||
function _fun46622(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#46622, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5420:6, offset: 0x011ac006, size: 472 bytes, params: 8, frame: 21
|
||||
const _arrayLikeToArray_46628 = function(a0, a1) {
|
||||
var r0;
|
||||
var r1;
|
||||
var r2;
|
||||
var value3;
|
||||
var length;
|
||||
var value5;
|
||||
var value = undefined;
|
||||
var value2 = value == null;
|
||||
reducibleJoin2: while (true) {
|
||||
if (value2) {
|
||||
r0 = value2;
|
||||
break reducibleJoin2;
|
||||
}
|
||||
value3 = value > a0.length;
|
||||
r0 = value3;
|
||||
break reducibleJoin2;
|
||||
}
|
||||
reducibleJoin4: while (true) {
|
||||
if (r0) {
|
||||
length = a0.length;
|
||||
r1 = length;
|
||||
break reducibleJoin4;
|
||||
}
|
||||
r1 = value;
|
||||
break reducibleJoin4;
|
||||
}
|
||||
value = (0, global.Array)(r1);
|
||||
var value4 = 0;
|
||||
if (value4 < r1) {
|
||||
r2 = value4;
|
||||
reducibleLoop5: while (true) {
|
||||
value[r2] = a0[r2];
|
||||
value5 = typeof r2 === 'bigint' ? r2 + 1n : +r2 + 1;
|
||||
if (value5 < r1) {
|
||||
r2 = value5;
|
||||
continue reducibleLoop5;
|
||||
}
|
||||
break reducibleLoop5;
|
||||
}
|
||||
}
|
||||
return value;
|
||||
};
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_0 = importDefault(6) /* metro dependency 6 */;
|
||||
const env0_1 = importDefault(7) /* metro dependency 7 */;
|
||||
const env0_2 = importDefault(15) /* metro dependency 15 */;
|
||||
const env0_3 = importDefault(17) /* metro dependency 17 */;
|
||||
const env0_4 = importDefault(18) /* metro dependency 18 */;
|
||||
const relationshipStore = importDefault(3793) /* metro dependency 3793: RelationshipStore */;
|
||||
const env0_6 = (require(661) /* metro dependency 661: Constants */).RelationshipTypes;
|
||||
const GAME_RELATIONSHIP_KEY = function(a0, a1) {
|
||||
return '' + a1 + '-' + a0;
|
||||
};
|
||||
const GameRelationshipIndexes_BY_APPLICATION_ID = function(a0) {
|
||||
return 'application-id-' + a0;
|
||||
};
|
||||
const GameRelationshipIndexes_BY_USER_ID = function(a0) {
|
||||
return 'user-id-' + a0;
|
||||
};
|
||||
const GameRelationshipIndexes_BY_RELATIONSHIP_TYPE = function(a0) {
|
||||
return 'relationship-type-' + a0;
|
||||
};
|
||||
const SecondaryIndexMap = (require(3780) /* metro dependency 3780: SecondaryIndexMap */).SecondaryIndexMap;
|
||||
let secondaryIndexMap = new SecondaryIndexMap(function(a0) {
|
||||
var items = [];
|
||||
items.push(GameRelationshipIndexes_BY_APPLICATION_ID(a0.applicationId));
|
||||
items.push(GameRelationshipIndexes_BY_USER_ID(a0.id));
|
||||
items.push(GameRelationshipIndexes_BY_RELATIONSHIP_TYPE(a0.type));
|
||||
return items;
|
||||
}, function({since}) {
|
||||
return '' + since;
|
||||
});
|
||||
const Store = (importDefault(566) /* metro dependency 566: flux */).Store;
|
||||
_fun46639(Store).displayName = 'GameRelationshipStore';
|
||||
secondaryIndexMap = new secondaryIndexMap(importDefault(694) /* metro dependency 694: Dispatcher */,
|
||||
{CONNECTION_OPEN: CONNECTION_OPEN_46655, GAME_RELATIONSHIP_ADD: function(a0) {
|
||||
upsert(a0.gameRelationship);
|
||||
recountRelationshipTypes();
|
||||
}, GAME_RELATIONSHIP_REMOVE: function(a0) {
|
||||
var remove_46632Binding = remove_46632;
|
||||
var userId = a0.userId;
|
||||
remove_46632Binding(userId, a0.applicationId);
|
||||
recountRelationshipTypes();
|
||||
}, APPLICATIONS_FETCH_SUCCESS: APPLICATIONS_FETCH_SUCCESS_46659});
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/game_relationships/GameRelationshipStore.tsx');
|
||||
exports.default = secondaryIndexMap;
|
||||
}
|
||||
|
||||
function _isNativeReflectConstruct_46623() { // fn#46623, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5420:189, offset: 0x011ac1de, 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_46623_isNativeReflectConstruct = function() {
|
||||
return !!result;
|
||||
})();
|
||||
}
|
||||
|
||||
function _createForOfIteratorHelperLoose_46626(a0, a1) { // fn#46626, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5420:382, offset: 0x011ac23c, size: 370 bytes, params: 3, frame: 20
|
||||
var r6;
|
||||
var r9;
|
||||
var r5;
|
||||
var value3;
|
||||
var regexp;
|
||||
const env0_0 = a0;
|
||||
const Symbol = global.Symbol;
|
||||
let value = typeof Symbol !== 'undefined';
|
||||
let r1 = value && a0[global.Symbol.iterator];
|
||||
r1 = !r1 ? a0['@@iterator'] : r1;
|
||||
if (r1) {
|
||||
value = r1.call(a0);
|
||||
return value.next.bind(value);
|
||||
}
|
||||
const Array = global.Array;
|
||||
if (Array.isArray(a0)) {
|
||||
if (r1) {
|
||||
}
|
||||
return _fun46627;
|
||||
}
|
||||
value = undefined;
|
||||
if (a0) {
|
||||
if (typeof a0 === 'string') {
|
||||
value = _arrayLikeToArray_46628(a0, value);
|
||||
r5 = value;
|
||||
} else {
|
||||
value3 = ({}).toString.call(a0).slice(8, -1);
|
||||
r6 = value3 === 'Object' && a0.constructor;
|
||||
r9 = r6 ? a0.constructor.name : value3;
|
||||
if (r9 === 'Map') {
|
||||
r6 = global.Array.from(a0);
|
||||
} else if (r9 === 'Set') {
|
||||
r6 = global.Array.from(a0);
|
||||
} else if (r9 === 'Arguments') {
|
||||
value = _arrayLikeToArray_46628(a0, value);
|
||||
r6 = value;
|
||||
} else {
|
||||
regexp = RegExp('^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$', '');
|
||||
if (regexp.test(r9)) {
|
||||
value = _arrayLikeToArray_46628(a0, value);
|
||||
r6 = value;
|
||||
} else {
|
||||
r6 = value;
|
||||
}
|
||||
}
|
||||
r5 = r6;
|
||||
}
|
||||
} else {
|
||||
r5 = value;
|
||||
}
|
||||
if (r5) {
|
||||
if (r5) {
|
||||
}
|
||||
return _fun46627;
|
||||
}
|
||||
const TypeError = global.TypeError;
|
||||
throw new TypeError('Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.');
|
||||
}
|
||||
|
||||
function recountRelationshipTypes() { // fn#46629, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5420:1832, offset: 0x011ac3ae, size: 75 bytes, params: 1, frame: 13
|
||||
env0_11.values().forEach(_fun46630);
|
||||
}
|
||||
|
||||
function upsert(a0) { // fn#46631, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5420:2070, offset: 0x011ac499, size: 45 bytes, params: 2, frame: 16
|
||||
const binding = env0_11;
|
||||
binding.set(GAME_RELATIONSHIP_KEY(a0.id, a0.applicationId), a0);
|
||||
}
|
||||
|
||||
function remove_46632(a0, a1) { // fn#46632, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5420:2142, offset: 0x011ac4c6, size: 37 bytes, params: 3, frame: 15
|
||||
env0_11.delete(GAME_RELATIONSHIP_KEY(a0, a1));
|
||||
}
|
||||
|
||||
function _fun46639(a0) { // fn#46639, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5420:2206, offset: 0x011ac5dd, size: 327 bytes, params: 2, frame: 16
|
||||
const closure = GameRelationshipStore;
|
||||
env0_4(closure, a0);
|
||||
return env0_1(closure, [{key: 'initialize', value: function() {
|
||||
this.waitFor(RelationshipStore);
|
||||
}}, {key: 'getPendingIncomingCount', value: value_46642}, {key: 'getPendingOutgoingCount', value: value_46643},
|
||||
{key: 'getGameFriendCount', value: value_46644}, {key: 'getGameFriendsForApplication', value: value_46645},
|
||||
{key: 'getGameRelationshipsForUser', value: value_46647}, {key: 'getGameRelationshipsForUserByType',
|
||||
value: function(a0, a1) {
|
||||
var env0_0 = a1;
|
||||
return this.getGameRelationshipsForUser(a0).filter(_fun46649);
|
||||
}}, {key: 'getGameFriendsForUser', value: function(a0) {
|
||||
return this.getGameRelationshipsForUserByType(a0, RelationshipTypes.FRIEND);
|
||||
}}, {key: 'getGameRelationshipCount', value: value_46651}, {key: 'getGameRelationships', value: value_46652},
|
||||
{key: 'getGameRelationshipsByType', value: value_46653}, {key: 'getGameRelationshipsVersion',
|
||||
value: value_46654}]);
|
||||
}
|
||||
|
||||
function CONNECTION_OPEN_46655({gameRelationships}) { // fn#46655, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5420:3653, offset: 0x011ac829, size: 55 bytes, params: 2, frame: 12
|
||||
env0_11.clear();
|
||||
gameRelationships.forEach(function(a0) {
|
||||
upsert({id: a0.id, applicationId: a0.application_id, type: a0.type, since: a0.since,
|
||||
dmAccessType: a0.dm_access_type});
|
||||
});
|
||||
recountRelationshipTypes();
|
||||
}
|
||||
|
||||
function APPLICATIONS_FETCH_SUCCESS_46659({unknownApplicationIds}) { // fn#46659, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5420:4183, offset: 0x011ac8ee, size: 213 bytes, params: 2, frame: 21
|
||||
var r4;
|
||||
var r6;
|
||||
var r2;
|
||||
var _createForOfIteratorHelperLoose_46626Binding;
|
||||
var value2;
|
||||
var value3;
|
||||
var done;
|
||||
var value4;
|
||||
var binding;
|
||||
var values;
|
||||
var value5;
|
||||
var value6;
|
||||
var value7;
|
||||
var type;
|
||||
var PENDING_INCOMING;
|
||||
var value8;
|
||||
var PENDING_OUTGOING;
|
||||
var value9;
|
||||
var remove_46632Binding;
|
||||
var id;
|
||||
var value10;
|
||||
var value11;
|
||||
if (unknownApplicationIds != null) {
|
||||
value2 = _createForOfIteratorHelperLoose_46626(unknownApplicationIds);
|
||||
value3 = value2();
|
||||
done = value3.done;
|
||||
if (!done) {
|
||||
r4 = value3;
|
||||
while (true) {
|
||||
value4 = r4.value;
|
||||
_createForOfIteratorHelperLoose_46626Binding = _createForOfIteratorHelperLoose_46626;
|
||||
binding = env0_11;
|
||||
values = binding.values;
|
||||
value5 = _createForOfIteratorHelperLoose_46626Binding(Reflect.apply(values, binding,
|
||||
[GameRelationshipIndexes_BY_APPLICATION_ID(value4)]));
|
||||
value6 = value5();
|
||||
done = value6.done;
|
||||
if (!done) {
|
||||
r6 = value6;
|
||||
while (true) {
|
||||
value7 = r6.value;
|
||||
type = value7.type;
|
||||
PENDING_INCOMING = RelationshipTypes.PENDING_INCOMING;
|
||||
value8 = type !== PENDING_INCOMING;
|
||||
if (value8) {
|
||||
type = value7.type;
|
||||
PENDING_OUTGOING = RelationshipTypes.PENDING_OUTGOING;
|
||||
value9 = type !== PENDING_OUTGOING;
|
||||
r2 = value9;
|
||||
} else {
|
||||
r2 = value8;
|
||||
}
|
||||
if (r2) {
|
||||
continue;
|
||||
}
|
||||
remove_46632Binding = remove_46632;
|
||||
id = value7.id;
|
||||
remove_46632Binding(id, value4);
|
||||
value10 = value5();
|
||||
done = value10.done;
|
||||
if (done) {
|
||||
break;
|
||||
}
|
||||
r6 = value10;
|
||||
continue;
|
||||
}
|
||||
}
|
||||
value11 = value2();
|
||||
done = value11.done;
|
||||
if (done) {
|
||||
break;
|
||||
}
|
||||
r4 = value11;
|
||||
continue;
|
||||
}
|
||||
}
|
||||
recountRelationshipTypes();
|
||||
}
|
||||
}
|
||||
|
||||
function _fun46630({type, id}) { // fn#46630, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5420:1904, offset: 0x011ac3f9, size: 160 bytes, params: 2, frame: 12
|
||||
const FRIEND = RelationshipTypes.FRIEND;
|
||||
if (type === FRIEND) {
|
||||
env0_2 += 1;
|
||||
} else {
|
||||
var PENDING_OUTGOING = RelationshipTypes.PENDING_OUTGOING;
|
||||
if (type === PENDING_OUTGOING) {
|
||||
env0_1 += 1;
|
||||
return undefined;
|
||||
}
|
||||
var PENDING_INCOMING = RelationshipTypes.PENDING_INCOMING;
|
||||
if (type !== PENDING_INCOMING) {
|
||||
return undefined;
|
||||
}
|
||||
if (RelationshipStore.isSpam(id)) {
|
||||
return undefined;
|
||||
}
|
||||
if (RelationshipStore.isIgnored(id)) {
|
||||
return undefined;
|
||||
}
|
||||
env0_0 += 1;
|
||||
}
|
||||
}
|
||||
|
||||
function value_46645(a0) { // fn#46645, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5420:2784, offset: 0x011ac724, size: 53 bytes, params: 2, frame: 14
|
||||
var environment;
|
||||
let value = environment.__proto__;
|
||||
const binding = env1_11;
|
||||
const values = binding.values;
|
||||
value = GameRelationshipIndexes_BY_APPLICATION_ID(a0);
|
||||
value = Reflect.apply(values, binding, [value, true]);
|
||||
return value.filter(function({type}) {
|
||||
return type === RelationshipTypes.FRIEND;
|
||||
});
|
||||
}
|
||||
|
||||
function value_46647(a0) { // fn#46647, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5420:2935, offset: 0x011ac774, size: 36 bytes, params: 2, frame: 14
|
||||
const value = environment.__proto__;
|
||||
const binding = env1_11;
|
||||
return binding.values(GameRelationshipIndexes_BY_USER_ID(a0), true);
|
||||
}
|
||||
|
||||
function value_46648(a0, a1) { // fn#46648, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5420:3054, offset: 0x011ac798, size: 43 bytes, params: 3, frame: 12
|
||||
const env0_0 = a1;
|
||||
return this.getGameRelationshipsForUser(a0).filter(function({type}) {
|
||||
return type === require;
|
||||
});
|
||||
}
|
||||
|
||||
function value_46651() { // fn#46651, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5420:3282, offset: 0x011ac7e4, size: 18 bytes, params: 1, frame: 9
|
||||
return env1_11.size();
|
||||
}
|
||||
|
||||
function value_46653(a0) { // fn#46653, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5420:3407, offset: 0x011ac7f6, size: 36 bytes, params: 2, frame: 14
|
||||
const value = environment.__proto__;
|
||||
const binding = env1_11;
|
||||
return binding.values(GameRelationshipIndexes_BY_RELATIONSHIP_TYPE(a0), true);
|
||||
}
|
||||
|
||||
function value_46654() { // fn#46654, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5420:3530, offset: 0x011ac81a, size: 15 bytes, params: 1, frame: 1
|
||||
return env1_11.version;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,81 @@
|
||||
/* Metro module 10341; source: modules/game_relationships/GameRelationshipStoreHooks.tsx; dependencies: [57, 5242, 661, 566, 6274, 2] */
|
||||
function _fun80169(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#80169, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10527:6, offset: 0x01e700b4, size: 219 bytes, params: 8, frame: 19
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_2 = importDefault(57) /* metro dependency 57 */;
|
||||
const gameRelationshipStore = importDefault(5242) /* metro dependency 5242: GameRelationshipStore */;
|
||||
const env0_4 = (require(661) /* metro dependency 661: Constants */).RelationshipTypes;
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/game_relationships/GameRelationshipStoreHooks.tsx');
|
||||
exports.useGameRelationshipsByType = useGameRelationshipsByType;
|
||||
exports.useGameFriendsForUser = function(a0) {
|
||||
return useGameRelationshipsForUserByType(a0, RelationshipTypes.FRIEND);
|
||||
};
|
||||
exports.useIncomingGameRelationshipsForUser = function(a0) {
|
||||
return useGameRelationshipsForUserByType(a0, RelationshipTypes.PENDING_INCOMING);
|
||||
};
|
||||
exports.useHasGameRelationshipsForUser = useHasGameRelationshipsForUser;
|
||||
exports.useHasGameRelationshipsForUserByType = useHasGameRelationshipsForUserByType;
|
||||
}
|
||||
|
||||
function useGameRelationshipsForUserByType(a0, a1) { // fn#80170, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10527:144, offset: 0x01e7018f, size: 129 bytes, params: 3, frame: 22
|
||||
const env0_0 = a0;
|
||||
const env0_1 = a1;
|
||||
const fluxModule = require(566) /* metro dependency 566: flux */;
|
||||
const useStateFromStores = fluxModule.useStateFromStores;
|
||||
return env0_2(Reflect.apply(useStateFromStores, fluxModule, [[GameRelationshipStore], _fun80171, [a1, a0],
|
||||
(require(6274) /* metro dependency 6274: SecondaryIndexMapUtils */).isVersionEqual]), 1)[0];
|
||||
}
|
||||
|
||||
function useGameRelationshipsByType(a0) { // fn#80172, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10527:477, offset: 0x01e7024a, size: 118 bytes, params: 2, frame: 21
|
||||
const env0_0 = a0;
|
||||
const fluxModule = require(566) /* metro dependency 566: flux */;
|
||||
const useStateFromStores = fluxModule.useStateFromStores;
|
||||
return env0_2(Reflect.apply(useStateFromStores, fluxModule, [[GameRelationshipStore], _fun80173, [a0],
|
||||
(require(6274) /* metro dependency 6274: SecondaryIndexMapUtils */).isVersionEqual]), 1)[0];
|
||||
}
|
||||
|
||||
function useHasGameRelationshipsForUser(a0) { // fn#80176, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10527:966, offset: 0x01e70331, size: 118 bytes, params: 2, frame: 21
|
||||
const env0_0 = a0;
|
||||
const fluxModule = require(566) /* metro dependency 566: flux */;
|
||||
const useStateFromStores = fluxModule.useStateFromStores;
|
||||
return env0_2(Reflect.apply(useStateFromStores, fluxModule, [[GameRelationshipStore], _fun80177, [a0],
|
||||
(require(6274) /* metro dependency 6274: SecondaryIndexMapUtils */).isVersionEqual]), 1)[0];
|
||||
}
|
||||
|
||||
function useHasGameRelationshipsForUserByType(a0, a1) { // fn#80178, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10527:1233, offset: 0x01e703e7, size: 129 bytes, params: 3, frame: 22
|
||||
const env0_0 = a0;
|
||||
const env0_1 = a1;
|
||||
const fluxModule = require(566) /* metro dependency 566: flux */;
|
||||
const useStateFromStores = fluxModule.useStateFromStores;
|
||||
return env0_2(Reflect.apply(useStateFromStores, fluxModule, [[GameRelationshipStore], _fun80179, [a1, a0],
|
||||
(require(6274) /* metro dependency 6274: SecondaryIndexMapUtils */).isVersionEqual]), 1)[0];
|
||||
}
|
||||
|
||||
function _fun80171() { // fn#80171, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10527:230, offset: 0x01e70210, size: 58 bytes, params: 1, frame: 14
|
||||
const getGameRelationshipsForUserByType = GameRelationshipStore.getGameRelationshipsForUserByType;
|
||||
const getGameRelationshipsVersion = GameRelationshipStore.getGameRelationshipsVersion;
|
||||
return [Reflect.apply(getGameRelationshipsForUserByType, GameRelationshipStore, [env0_0, require]),
|
||||
Reflect.apply(getGameRelationshipsVersion, GameRelationshipStore, [])];
|
||||
}
|
||||
|
||||
function _fun80173() { // fn#80173, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10527:554, offset: 0x01e702c0, size: 53 bytes, params: 1, frame: 12
|
||||
const items2 = [GameRelationshipStore.getGameRelationshipsByType(env0_0)];
|
||||
const getGameRelationshipsVersion = GameRelationshipStore.getGameRelationshipsVersion;
|
||||
items2[1] = Reflect.apply(getGameRelationshipsVersion, GameRelationshipStore, []);
|
||||
return items2;
|
||||
}
|
||||
|
||||
function _fun80177() { // fn#80177, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10527:1047, offset: 0x01e703a7, size: 64 bytes, params: 1, frame: 12
|
||||
const value = environment.__proto__;
|
||||
return [GameRelationshipStore.getGameRelationshipsForUser(env0_0).length > 0,
|
||||
GameRelationshipStore.getGameRelationshipsVersion()];
|
||||
}
|
||||
|
||||
function _fun80179() { // fn#80179, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10527:1322, offset: 0x01e70468, size: 69 bytes, params: 1, frame: 14
|
||||
const value = environment.__proto__;
|
||||
const getGameRelationshipsForUserByType = GameRelationshipStore.getGameRelationshipsForUserByType;
|
||||
return [Reflect.apply(getGameRelationshipsForUserByType, GameRelationshipStore, [env0_0, require]).length > 0,
|
||||
GameRelationshipStore.getGameRelationshipsVersion()];
|
||||
}
|
||||
|
||||
@@ -0,0 +1,31 @@
|
||||
/* Metro module 10342; source: modules/game_relationships/hooks/useIsGameFriends.tsx; dependencies: [57, 5242, 661, 566, 6274, 2] */
|
||||
function _fun80180(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#80180, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10528:6, offset: 0x01e704ad, size: 152 bytes, params: 8, frame: 19
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_2 = importDefault(57) /* metro dependency 57 */;
|
||||
const gameRelationshipStore = importDefault(5242) /* metro dependency 5242: GameRelationshipStore */;
|
||||
const env0_4 = (require(661) /* metro dependency 661: Constants */).RelationshipTypes;
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/game_relationships/hooks/useIsGameFriends.tsx');
|
||||
exports.useIsGameFriends = useIsGameFriends;
|
||||
}
|
||||
|
||||
function useIsGameFriends(a0) { // fn#80181, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10528:250, offset: 0x01e70545, size: 118 bytes, params: 2, frame: 21
|
||||
const env0_0 = a0;
|
||||
const fluxModule = require(566) /* metro dependency 566: flux */;
|
||||
const useStateFromStores = fluxModule.useStateFromStores;
|
||||
return env0_2(Reflect.apply(useStateFromStores, fluxModule, [[GameRelationshipStore], _fun80182, [a0],
|
||||
(require(6274) /* metro dependency 6274: SecondaryIndexMapUtils */).isVersionEqual]), 1)[0];
|
||||
}
|
||||
|
||||
function _fun80182() { // fn#80182, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10528:317, offset: 0x01e705bb, size: 71 bytes, params: 1, frame: 13
|
||||
let value = environment.__proto__;
|
||||
const getGameRelationshipsForUserByType = GameRelationshipStore.getGameRelationshipsForUserByType;
|
||||
const binding = env0_0;
|
||||
const FRIEND = RelationshipTypes.FRIEND;
|
||||
value = Reflect.apply(getGameRelationshipsForUserByType, GameRelationshipStore, [binding, FRIEND]);
|
||||
const gameRelationshipsVersion = GameRelationshipStore.getGameRelationshipsVersion();
|
||||
value = value.length > 0;
|
||||
return [value, gameRelationshipsVersion];
|
||||
}
|
||||
|
||||
@@ -0,0 +1,31 @@
|
||||
/* Metro module 10343; source: modules/game_relationships/hooks/useUserProfileGameFriendApplicationIds.tsx; dependencies: [31, 3793, 1878, 566, 10341, 2] */
|
||||
function _fun80183(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#80183, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10529:6, offset: 0x01e70602, size: 157 bytes, params: 8, frame: 19
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_2 = importAll(31) /* metro dependency 31 */;
|
||||
const relationshipStore = importDefault(3793) /* metro dependency 3793: RelationshipStore */;
|
||||
const userStore = importDefault(1878) /* metro dependency 1878: UserStore */;
|
||||
const env0_5 = [];
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/game_relationships/hooks/useUserProfileGameFriendApplicationIds.tsx');
|
||||
exports.useUserProfileGameFriendApplicationIds = useUserProfileGameFriendApplicationIds;
|
||||
}
|
||||
|
||||
function useUserProfileGameFriendApplicationIds({userId}) { // fn#80184, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10529:281, offset: 0x01e7069f, size: 144 bytes, params: 2, frame: 19
|
||||
const value2 = (require(566) /* metro dependency 566: flux */).useStateFromStores([RelationshipStore, UserStore],
|
||||
_fun80185);
|
||||
const value3 = (require(10341) /* metro dependency 10341: GameRelationshipStoreHooks */).useGameFriendsForUser(userId);
|
||||
return value3.useMemo(_fun80186, [value3, value2]);
|
||||
}
|
||||
|
||||
function _fun80185() { // fn#80185, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10529:381, offset: 0x01e7072f, size: 69 bytes, params: 1, frame: 13
|
||||
const value = environment.__proto__;
|
||||
return RelationshipStore.isFriend(userId) || UserStore.getUser(userId)?.isProvisional;
|
||||
}
|
||||
|
||||
function _fun80186() { // fn#80186, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10529:518, offset: 0x01e70774, size: 44 bytes, params: 1, frame: 11
|
||||
return env0_1 ? env1_5 : env0_2.map(function(a0) {
|
||||
return a0.applicationId;
|
||||
});
|
||||
}
|
||||
|
||||
@@ -0,0 +1,21 @@
|
||||
/* Metro module 14119; source: modules/game_relationships/settings/useIsAllowGameFriendDMsSettingVisible.tsx; dependencies: [5242, 566, 2] */
|
||||
function _fun106913(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#106913, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14316:6, offset: 0x022ee0db, size: 114 bytes, params: 8, frame: 18
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const gameRelationshipStore = importDefault(5242) /* metro dependency 5242: GameRelationshipStore */;
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/game_relationships/settings/useIsAllowGameFriendDMsSettingVisible.tsx');
|
||||
exports.useIsAllowGameFriendDMsSettingVisible = function() {
|
||||
return require(dependencyMap[1]).useStateFromStores([GameRelationshipStore], _fun106915);
|
||||
};
|
||||
}
|
||||
|
||||
function useIsAllowGameFriendDMsSettingVisible() { // fn#106914, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14316:257, offset: 0x022ee14d, size: 59 bytes, params: 1, frame: 13
|
||||
return (require(566) /* metro dependency 566: flux */).useStateFromStores([GameRelationshipStore], _fun106915);
|
||||
}
|
||||
|
||||
function _fun106915() { // fn#106915, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14316:345, offset: 0x022ee188, size: 27 bytes, params: 1, frame: 9
|
||||
const value = environment.__proto__;
|
||||
return GameRelationshipStore.getGameRelationshipCount() > 0;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user