Files
discord-decomp/sources/modules/people/hooks/useFriendRequestCounts.tsx
T
2026-07-28 01:06:53 +03:00

52 lines
3.5 KiB
TypeScript

/* Metro module 15135; source: modules/people/hooks/useFriendRequestCounts.tsx; dependencies: [57, 5242, 3793, 566, 2] */
import Module00057 from '../../../by-id/module-00057.js'; /* Metro dependency 57 */
import RelationshipStore from '../../../stores/RelationshipStore.tsx'; /* Metro dependency 3793 */
import GameRelationshipStore from '../../game_relationships/GameRelationshipStore.tsx'; /* Metro dependency 5242 */
import * as FileImportTrackerModule from '../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 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 getIncomingFriendRequestCount2 = getIncomingFriendRequestCount;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
(FileImportTrackerModule).fileFinishedImporting('modules/people/hooks/useFriendRequestCounts.tsx');
exports.getIncomingFriendRequestCount = getIncomingFriendRequestCount2;
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 = Module00057(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 _fun115386() { // fn#115386, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15332:507, offset: 0x0245ef95, size: 36 bytes, params: 1, frame: 12
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 = Module00057(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, []);
}
}
global.__d(_fun115383, 15135, [57, 5242, 3793, 566,
2]) /* metro module 15135, dependencies: [57, 5242, 3793, 566, 2] */;