38 lines
2.8 KiB
TypeScript
38 lines
2.8 KiB
TypeScript
/* Metro module 10342; source: modules/game_relationships/hooks/useIsGameFriends.tsx; dependencies: [57, 5242, 661, 566, 6274, 2] */
|
|
import Module00057 from '../../../by-id/module-00057.js'; /* Metro dependency 57 */
|
|
import GameRelationshipStore from '../GameRelationshipStore.tsx'; /* Metro dependency 5242 */
|
|
import * as FileImportTrackerModule from '../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
|
|
import * as FluxModule from '../../../external/discord_common/js/packages/flux/index.tsx'; /* Metro dependency 566 */
|
|
import * as ConstantsModule from '../../../Constants.tsx'; /* Metro dependency 661 */
|
|
import * as SecondaryIndexMapUtilsModule from '../../../utils/SecondaryIndexMapUtils.tsx'; /* Metro dependency 6274 */
|
|
|
|
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});
|
|
(FileImportTrackerModule).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 useStateFromStores = FluxModule.useStateFromStores;
|
|
return Module00057(Reflect.apply(useStateFromStores, FluxModule, [[GameRelationshipStore], _fun80182, [a0],
|
|
(SecondaryIndexMapUtilsModule).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 gameRelationshipStoreBinding = GameRelationshipStore;
|
|
const getGameRelationshipsForUserByType = gameRelationshipStoreBinding.getGameRelationshipsForUserByType;
|
|
const binding = env0_0;
|
|
const FRIEND = RelationshipTypes.FRIEND;
|
|
value = Reflect.apply(getGameRelationshipsForUserByType, gameRelationshipStoreBinding, [binding, FRIEND]);
|
|
const gameRelationshipsVersion = gameRelationshipStoreBinding.getGameRelationshipsVersion();
|
|
value = value.length > 0;
|
|
return [value, gameRelationshipsVersion];
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
global.__d(_fun80180, 10342, [57, 5242, 661, 566, 6274,
|
|
2]) /* metro module 10342, dependencies: [57, 5242, 661, 566, 6274, 2] */;
|