Initial commit
This commit is contained in:
commit
af3b49f756
16065 files changed
+2938410
No files matched your search
@@ -0,0 +1,32 @@
|
||||
/* Metro module 10486; source: modules/people/hooks/useFriendRequestActions.tsx; dependencies: [31, 8800, 2] */
|
||||
function _fun81144(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#81144, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10672:6, offset: 0x01e9b82e, size: 117 bytes, params: 8, frame: 17
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_2 = importAll(31) /* metro dependency 31 */;
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/people/hooks/useFriendRequestActions.tsx');
|
||||
exports.useFriendRequestActions = useFriendRequestActions;
|
||||
}
|
||||
|
||||
function useFriendRequestActions({userId, applicationId, isGameRelationship, location, onConfirm, onCancel, onFinally}) { // fn#81145, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10672:214, offset: 0x01e9b8a3, size: 181 bytes, params: 2, frame: 22
|
||||
const binding = isGameRelationship;
|
||||
let useCallback = binding.useCallback;
|
||||
const value = Reflect.apply(useCallback, binding, [_fun81146, [applicationId, isGameRelationship, location,
|
||||
userId]]);
|
||||
useCallback = binding.useCallback;
|
||||
return {acceptFriendRequest: Reflect.apply(useCallback, binding, [_fun81147, [applicationId, isGameRelationship,
|
||||
location, onCancel, onConfirm, onFinally, userId]]), cancelFriendRequest: value};
|
||||
}
|
||||
|
||||
function _fun81146() { // fn#81146, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10672:363, offset: 0x01e9b958, size: 76 bytes, params: 1, frame: 15
|
||||
const value = environment.__proto__;
|
||||
(importDefault(8800) /* metro dependency 8800: PeopleUtils */).cancelFriendRequest({userId: userId,
|
||||
applicationId: isGameRelationship ? applicationId : null, location: location});
|
||||
}
|
||||
|
||||
function _fun81147() { // fn#81147, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10672:497, offset: 0x01e9b9a4, size: 103 bytes, params: 1, frame: 15
|
||||
const value = environment.__proto__;
|
||||
(importDefault(8800) /* metro dependency 8800: PeopleUtils */).maybeConfirmFriendRequestAccept({userId: userId,
|
||||
applicationId: isGameRelationship ? applicationId : null, location: location, onConfirm: onConfirm,
|
||||
onCancel: onCancel, onFinally: onFinally});
|
||||
}
|
||||
|
||||
@@ -0,0 +1,43 @@
|
||||
/* Metro module 15135; source: modules/people/hooks/useFriendRequestCounts.tsx; dependencies: [57, 5242, 3793, 566, 2] */
|
||||
function _fun115383(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#115383, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15332:6, offset: 0x0245ee64, size: 178 bytes, params: 8, frame: 20
|
||||
const env0_0 = require;
|
||||
const closure = getIncomingFriendRequestCount;
|
||||
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 relationshipStore = importDefault(3793) /* metro dependency 3793: RelationshipStore */;
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/people/hooks/useFriendRequestCounts.tsx');
|
||||
exports.getIncomingFriendRequestCount = closure;
|
||||
exports.useIncomingFriendRequestCount = function() {
|
||||
return require(dependencyMap[3]).useStateFromStores([RelationshipStore, GameRelationshipStore], _fun115386);
|
||||
};
|
||||
exports.getOutgoingFriendRequestCount = getOutgoingFriendRequestCount;
|
||||
}
|
||||
|
||||
function getIncomingFriendRequestCount(a0) { // fn#115384, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15332:126, offset: 0x0245ef16, size: 60 bytes, params: 2, frame: 13
|
||||
let value = env0_2(a0, 2);
|
||||
const property = value[0];
|
||||
const property2 = value[1];
|
||||
value = property.getPendingCount();
|
||||
const getPendingIncomingCount = property2.getPendingIncomingCount;
|
||||
return value + Reflect.apply(getPendingIncomingCount, property2, []);
|
||||
}
|
||||
|
||||
function useIncomingFriendRequestCount() { // fn#115385, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15332:425, offset: 0x0245ef52, size: 67 bytes, params: 1, frame: 14
|
||||
return (require(566) /* metro dependency 566: flux */).useStateFromStores([RelationshipStore,
|
||||
GameRelationshipStore], function() {
|
||||
return getIncomingFriendRequestCount([RelationshipStore, GameRelationshipStore]);
|
||||
});
|
||||
}
|
||||
|
||||
function getOutgoingFriendRequestCount() { // fn#115387, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15332:583, offset: 0x0245efb9, size: 93 bytes, params: 1, frame: 14
|
||||
let value = a0;
|
||||
value = env0_2(value !== undefined ? value : [global.o, global.s], 2);
|
||||
const property = value[0];
|
||||
const property2 = value[1];
|
||||
value = property.getOutgoingCount();
|
||||
const getPendingOutgoingCount = property2.getPendingOutgoingCount;
|
||||
return value + Reflect.apply(getPendingOutgoingCount, property2, []);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user