2026-08-24 06:08:38 +00:00
|
|
|
// Module ID: 6939
|
|
|
|
|
// Function ID: 6940
|
2026-07-29 08:29:29 +00:00
|
|
|
// Name: useGameProfileObscured
|
2026-08-24 06:08:38 +00:00
|
|
|
// Dependencies: [1922, 4791, 589, 2]
|
2026-07-29 08:29:29 +00:00
|
|
|
// Exports: default, isGameProfileObscured
|
2026-07-20 16:05:17 +00:00
|
|
|
|
2026-08-24 06:08:38 +00:00
|
|
|
// Module 6939 (useGameProfileObscured)
|
|
|
|
|
import initialize from "initialize" /* 589 */;
|
|
|
|
|
import isAgeRestrictedContentClassification from "isAgeRestrictedContentClassification" /* 4791 */;
|
|
|
|
|
import closure_2 from "mergeGuildAvatar" /* 1922 */;
|
2026-07-23 10:11:24 +00:00
|
|
|
|
2026-08-24 06:08:38 +00:00
|
|
|
require = arg1;
|
|
|
|
|
let result = require("set").fileFinishedImporting("modules/game_profile/hooks/useGameProfileObscured.tsx");
|
2026-07-29 08:29:29 +00:00
|
|
|
|
|
|
|
|
export default function useGameProfileObscured(contentClassification) {
|
2026-08-24 06:08:38 +00:00
|
|
|
initialize;
|
|
|
|
|
[][0] = closure_2;
|
2026-07-29 08:29:29 +00:00
|
|
|
let result = null != contentClassification;
|
|
|
|
|
if (result) {
|
|
|
|
|
result = false === tmp4;
|
|
|
|
|
}
|
|
|
|
|
if (result) {
|
2026-08-24 06:08:38 +00:00
|
|
|
result = isAgeRestrictedContentClassification.isAgeRestrictedContentClassification(contentClassification.contentClassification);
|
|
|
|
|
const tmpResult = isAgeRestrictedContentClassification;
|
2026-07-29 08:29:29 +00:00
|
|
|
}
|
|
|
|
|
return result;
|
|
|
|
|
};
|
|
|
|
|
export const isGameProfileObscured = function isGameProfileObscured(game, nsfwAllowed) {
|
2026-07-20 16:05:17 +00:00
|
|
|
let result = null != game;
|
|
|
|
|
if (result) {
|
|
|
|
|
result = false === nsfwAllowed;
|
|
|
|
|
}
|
|
|
|
|
if (result) {
|
2026-08-24 06:08:38 +00:00
|
|
|
result = isAgeRestrictedContentClassification.isAgeRestrictedContentClassification(game.contentClassification);
|
|
|
|
|
const obj = isAgeRestrictedContentClassification;
|
2026-07-20 16:05:17 +00:00
|
|
|
}
|
|
|
|
|
return result;
|
|
|
|
|
};
|