2026-09-28 16:18:32 +00:00
|
|
|
// Module ID: 5424
|
|
|
|
|
// Function ID: 5425
|
2026-09-18 19:45:33 +00:00
|
|
|
// Name: utils
|
2026-09-28 16:18:32 +00:00
|
|
|
// Dependencies: [5425, 5427, 2]
|
2026-09-18 19:45:33 +00:00
|
|
|
// Exports: isAgeRestrictedContentClassification
|
|
|
|
|
|
2026-09-28 16:18:32 +00:00
|
|
|
// Module 5424 (utils)
|
|
|
|
|
import ContentClassificationToAgeRestriction from "ContentClassificationToAgeRestriction" /* 5425 */;
|
|
|
|
|
import AgeRestrictionStatus from "AgeRestrictionStatus" /* 5427 */;
|
2026-09-18 19:45:33 +00:00
|
|
|
import size from "module_2" /* 2 */;
|
|
|
|
|
|
|
|
|
|
let result = size.fileFinishedImporting("modules/content_classification/utils.tsx");
|
|
|
|
|
|
|
|
|
|
export const isAgeRestrictedContentClassification = function isAgeRestrictedContentClassification(contentClassification) {
|
|
|
|
|
let tmp = null != contentClassification;
|
|
|
|
|
if (tmp) {
|
|
|
|
|
const obj2 = { type: ContentClassificationToAgeRestriction.ContentClassificationVariant.MINIMAL, data: contentClassification };
|
|
|
|
|
const result = ContentClassificationToAgeRestriction.contentClassificationToAgeRestriction(obj2);
|
|
|
|
|
tmp = result === AgeRestrictionStatus.AgeRestrictionStatus.ADULT;
|
|
|
|
|
}
|
|
|
|
|
return tmp;
|
|
|
|
|
};
|