Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4791.js (118.4 MB)
68 lines
1.7 KiB
TypeScript
68 lines
1.7 KiB
TypeScript
// Module ID: 13088
|
|
// Function ID: 13089
|
|
// Name: useIsUserProfileObfuscated
|
|
// Dependencies: [7693, 504, 2]
|
|
// Exports: default
|
|
|
|
// Module 13088 (useIsUserProfileObfuscated)
|
|
import UserProfileStore from "UserProfileStore" /* 7693 */;
|
|
|
|
const require = globalThis.__r;
|
|
|
|
const require = fn;
|
|
const size = fn(2);
|
|
const result = size.fileFinishedImporting("modules/user_profile/hooks/useIsUserProfileObfuscated.tsx");
|
|
|
|
export default function useIsUserProfileObfuscated(flags) {
|
|
_require = flags;
|
|
const items = [UserProfileStore];
|
|
const stateFromStores = require("initialize").useStateFromStores(items, () => UserProfileStore.getUserProfile(id.id));
|
|
let bio;
|
|
if (stateFromStores != null) {
|
|
bio = stateFromStores.bio;
|
|
}
|
|
let tmp3 = "" === bio;
|
|
if (tmp3) {
|
|
let pronouns;
|
|
if (stateFromStores != null) {
|
|
pronouns = stateFromStores.pronouns;
|
|
}
|
|
tmp3 = "" === pronouns;
|
|
}
|
|
if (tmp3) {
|
|
let banner;
|
|
if (stateFromStores != null) {
|
|
banner = stateFromStores.banner;
|
|
}
|
|
tmp3 = undefined === banner;
|
|
}
|
|
if (tmp3) {
|
|
let accentColor;
|
|
if (stateFromStores != null) {
|
|
accentColor = stateFromStores.accentColor;
|
|
}
|
|
tmp3 = undefined === accentColor;
|
|
}
|
|
if (tmp3) {
|
|
tmp3 = flags.flags === flags.publicFlags;
|
|
}
|
|
if (tmp3) {
|
|
let badges;
|
|
if (stateFromStores != null) {
|
|
badges = stateFromStores.badges;
|
|
}
|
|
let tmp8 = null == badges;
|
|
if (!tmp8) {
|
|
let length;
|
|
if (stateFromStores != null) {
|
|
const badges1 = stateFromStores.badges;
|
|
if (badges1 != null) {
|
|
length = badges1.length;
|
|
}
|
|
}
|
|
tmp8 = 0 === length;
|
|
}
|
|
tmp3 = tmp8;
|
|
}
|
|
return tmp3;
|
|
};
|