decord/source/modules/user_profile/hooks/useIsUserProfileObfuscated.tsx

66 lines
1.6 KiB
TypeScript
Raw Normal View History

2026-07-27 11:26:19 +00:00
// Module ID: 11919
// Function ID: 92237
2026-07-20 16:05:17 +00:00
// Name: useIsUserProfileObfuscated
2026-07-25 08:10:48 +00:00
// Dependencies: [5630, 566, 2]
2026-07-20 16:05:17 +00:00
// Exports: default
2026-07-27 11:26:19 +00:00
// Module 11919 (useIsUserProfileObfuscated)
2026-07-23 10:11:24 +00:00
import _isNativeReflectConstruct from "_isNativeReflectConstruct";
const require = arg1;
const result = require("set").fileFinishedImporting("modules/user_profile/hooks/useIsUserProfileObfuscated.tsx");
2026-07-20 16:05:17 +00:00
export default function useIsUserProfileObfuscated(flags) {
2026-07-23 10:11:24 +00:00
const _require = flags;
const items = [_isNativeReflectConstruct];
const stateFromStores = _require(566).useStateFromStores(items, () => outer1_2.getUserProfile(id.id));
2026-07-20 16:05:17 +00:00
let bio;
if (null != stateFromStores) {
bio = stateFromStores.bio;
}
let tmp3 = "" === bio;
if (tmp3) {
let pronouns;
if (null != stateFromStores) {
pronouns = stateFromStores.pronouns;
}
tmp3 = "" === pronouns;
}
if (tmp3) {
let banner;
if (null != stateFromStores) {
banner = stateFromStores.banner;
}
tmp3 = undefined === banner;
}
if (tmp3) {
let accentColor;
if (null != stateFromStores) {
accentColor = stateFromStores.accentColor;
}
tmp3 = undefined === accentColor;
}
if (tmp3) {
tmp3 = flags.flags === flags.publicFlags;
}
if (tmp3) {
let badges;
if (null != stateFromStores) {
badges = stateFromStores.badges;
}
let tmp8 = null == badges;
if (!tmp8) {
let length;
if (null != stateFromStores) {
const badges1 = stateFromStores.badges;
if (null != badges1) {
length = badges1.length;
}
}
tmp8 = 0 === length;
}
tmp3 = tmp8;
}
return tmp3;
};