2026-09-12 13:45:10 +00:00
|
|
|
// Module ID: 5193
|
|
|
|
|
// Function ID: 5194
|
2026-09-10 05:38:07 +00:00
|
|
|
// Name: utils
|
2026-09-12 13:45:10 +00:00
|
|
|
// Dependencies: [5194, 5196, 2]
|
2026-07-20 16:05:17 +00:00
|
|
|
// Exports: isAgeRestrictedContentClassification
|
|
|
|
|
|
2026-09-12 13:45:10 +00:00
|
|
|
// Module 5193 (utils)
|
|
|
|
|
import ContentClassificationToAgeRestriction from "ContentClassificationToAgeRestriction" /* 5194 */;
|
|
|
|
|
import AgeRestrictionStatus from "AgeRestrictionStatus" /* 5196 */;
|
2026-09-10 05:38:07 +00:00
|
|
|
import size from "module_2" /* 2 */;
|
2026-08-24 06:08:38 +00:00
|
|
|
|
2026-09-10 05:38:07 +00:00
|
|
|
let result = size.fileFinishedImporting("modules/content_classification/utils.tsx");
|
2026-07-20 16:05:17 +00:00
|
|
|
|
|
|
|
|
export const isAgeRestrictedContentClassification = function isAgeRestrictedContentClassification(contentClassification) {
|
|
|
|
|
let tmp = null != contentClassification;
|
|
|
|
|
if (tmp) {
|
2026-09-10 05:38:07 +00:00
|
|
|
const obj2 = { type: ContentClassificationToAgeRestriction.ContentClassificationVariant.MINIMAL, data: contentClassification };
|
|
|
|
|
const result = ContentClassificationToAgeRestriction.contentClassificationToAgeRestriction(obj2);
|
2026-08-24 06:08:38 +00:00
|
|
|
tmp = result === AgeRestrictionStatus.AgeRestrictionStatus.ADULT;
|
2026-07-20 16:05:17 +00:00
|
|
|
}
|
|
|
|
|
return tmp;
|
|
|
|
|
};
|