2026-09-15 14:23:42 +00:00
|
|
|
// Module ID: 5196
|
|
|
|
|
// Function ID: 5197
|
2026-09-10 05:38:07 +00:00
|
|
|
// Name: utils
|
2026-09-15 14:23:42 +00:00
|
|
|
// Dependencies: [5197, 5199, 2]
|
2026-07-20 16:05:17 +00:00
|
|
|
// Exports: isAgeRestrictedContentClassification
|
|
|
|
|
|
2026-09-15 14:23:42 +00:00
|
|
|
// Module 5196 (utils)
|
|
|
|
|
import ContentClassificationToAgeRestriction from "ContentClassificationToAgeRestriction" /* 5197 */;
|
|
|
|
|
import AgeRestrictionStatus from "AgeRestrictionStatus" /* 5199 */;
|
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;
|
|
|
|
|
};
|